@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230830.0 → 0.0.0-nightly-20230831.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/lang/translations/ar.po +1 -0
- package/lang/translations/az.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/tt.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f32=['addSuggestionData','getDataWithDiscardedSuggestions','discardAllSuggestions','TrackChangesData','plugins','config','getRootNames','useAnonymousUser','create','Pagination','getUser','result','CommentsRepository','init','trackChangesData.editorCreator','getFullData','createElement','TrackChangesDataGetter','rootsAttributes','Users','reduce','document','data','users','function','createDocumentFragment','acceptAllSuggestions','trackChangesData','getSuggestions','destroy','end','TrackChangesEditing','requires','editor','model','push','editorCreator','getRootsAttributes','get','div','execute','name','appendChild'];(function(_0x471188,_0x2f322e){const _0x2d6017=function(_0x46975e){while(--_0x46975e){_0x471188['push'](_0x471188['shift']());}};_0x2d6017(++_0x2f322e);}(_0x2f32,0x18e));const _0x2d60=function(_0x471188,_0x2f322e){_0x471188=_0x471188-0x0;let _0x2d6017=_0x2f32[_0x471188];return _0x2d6017;};import{Plugin as _0x5a69ca}from'ckeditor5/src/core';import{CKEditorError as _0x58bf6c}from'ckeditor5/src/utils';import _0x36d4bb from'./trackchangesediting';import{sanitizeEditorConfig as _0x272d9c}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x2d60('0x29')];export default class T extends _0x5a69ca{static get[_0x2d60('0x15')](){return[_0x36d4bb];}static get['pluginName'](){return _0x2d60('0x23');}[_0x2d60('0x2')](){const _0x481dba=this['editor'];if(_0x481dba[_0x2d60('0x25')]['define'](_0x2d60('0x3'),_0x1cb49a=>{const _0x37eb15=_0x481dba[_0x2d60('0x17')][_0x2d60('0xa')][_0x2d60('0x26')]()[_0x2d60('0x9')]((_0x58c4fb,_0x1a6e4d)=>(_0x58c4fb[_0x1a6e4d]='',_0x58c4fb),{});return _0x481dba['constructor'][_0x2d60('0x28')](_0x37eb15,_0x1cb49a);}),_0x2d60('0xd')!=typeof _0x481dba[_0x2d60('0x25')][_0x2d60('0x1b')]('trackChangesData')[_0x2d60('0x19')])throw new _0x58bf6c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x56df52){return v(this[_0x2d60('0x16')],!0x0,_0x56df52);}[_0x2d60('0x21')](_0x511846){return v(this[_0x2d60('0x16')],!0x1,_0x511846);}}class P extends _0x5a69ca{static get['pluginName'](){return _0x2d60('0x6');}constructor(_0x2d5ddd){super(_0x2d5ddd),this[_0x2d60('0x0')]=_0x2d60('0x13');}['init'](){this[_0x2d60('0x16')][_0x2d60('0x24')][_0x2d60('0x1b')](_0x2d60('0x1'))['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x2d60('0x16')][_0x2d60('0x24')][_0x2d60('0x1b')]('TrackChangesEditing')['_adapter']=null;}}function D(_0x1bdc71){return void 0x0!==_0x1bdc71[_0x2d60('0x1a')];}async function v(_0xa388ed,_0x3f2fb8,_0x15c331){const _0x770140=_0x272d9c(_0xa388ed,w);_0x770140['plugins'][_0x2d60('0x18')](_0x36d4bb,P),_0x770140[_0x2d60('0x7')]=D(_0xa388ed)?_0xa388ed['getRootsAttributes']():void 0x0;const _0x957b4d=document[_0x2d60('0xe')](),_0x4517d2=_0xa388ed[_0x2d60('0x25')][_0x2d60('0x1b')](_0x2d60('0x10'))[_0x2d60('0x19')],_0x219381=await _0x4517d2(_0x770140,()=>function(_0x1e5fbb){const _0x555a9a=document[_0x2d60('0x5')](_0x2d60('0x1c'));return _0x1e5fbb[_0x2d60('0x1f')](_0x555a9a),_0x555a9a;}(_0x957b4d));!function(_0x282ebe,_0x1a6e77){const _0x4172d3=_0x282ebe[_0x2d60('0x17')]['document'][_0x2d60('0x26')]()['reduce']((_0x1e2229,_0x43af76)=>(_0x1e2229[_0x43af76]=_0x282ebe[_0x2d60('0xb')][_0x2d60('0x1b')]({'rootName':_0x43af76}),_0x1e2229),{}),_0x43fe1c=_0x282ebe[_0x2d60('0x24')][_0x2d60('0x1b')]('Users')[_0x2d60('0xc')]['map'](_0x2b7fd8=>({'id':_0x2b7fd8['id'],'name':_0x2b7fd8[_0x2d60('0x1e')]})),_0x3c037c=_0x282ebe[_0x2d60('0x24')][_0x2d60('0x1b')](_0x2d60('0x14'))[_0x2d60('0x11')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5e7ecb=_0x1a6e77['plugins'][_0x2d60('0x1b')](_0x2d60('0x8')),_0x329160=_0x1a6e77[_0x2d60('0x24')][_0x2d60('0x1b')]('TrackChangesEditing');for(const _0x44d517 of _0x43fe1c)_0x5e7ecb[_0x2d60('0x2a')](_0x44d517['id'])||_0x5e7ecb['addUser'](_0x44d517);_0x5e7ecb['me']||_0x5e7ecb[_0x2d60('0x27')]();for(const _0x2407ed of _0x3c037c)_0x329160[_0x2d60('0x20')](_0x2407ed);_0x1a6e77[_0x2d60('0xb')]['set'](_0x4172d3);}(_0xa388ed,_0x219381),_0x219381[_0x2d60('0x1d')](_0x3f2fb8?_0x2d60('0xf'):_0x2d60('0x22'));const _0x30301f=D(_0x219381)?_0x219381[_0x2d60('0x4')](_0x15c331):_0x219381['data'][_0x2d60('0x1b')](_0x15c331);return await _0x219381[_0x2d60('0x12')](),_0x30301f;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2d78=['deletion:','trackChanges.trackFormatChanges','splice','TrackChangesEditing','isTouching','schema','enableCommand','writer','refresh','execute','_saved','isAfter','addMarker:suggestion:formatBlock','CommentsRepository','normal','_addThreadToSuggestion','discard','stop','nodeAfter','containsPosition','containsRangeInObject','_trackFormatChanges','multipleBlocks','differ','add','markMultiRangeInsertion','track-changes-adapter-missing-getsuggestion','deletion','applyOperation','type','join','_suggestionState','trackChanges','name','_addSuggestionMarker','markers','acceptAllSuggestions','getItems','getSuggestions','_checkSuggestionCorrectness','plugins','deletion:chain','reconvertMarker','_rangeIsInLocalUserInsertion','skipNestingCheck','editing','mapper','isBlock','_joinWithAdjacentSuggestions','define','createSelection','stopListening','discardSuggestion','addSuggestionData','clear','suggestion','delete','isEqual','value','_findSuggestions','commentThread','PENDING_ACTION_SUGGESTION','isDocumentOperation','model','fromRange','after','updateMarker','commands','createElement','root','createRange','enqueueChange','track-changes-adapter-already-set','batch','before','formatInline','getWalker','acceptSuggestion','upcast','map','deletion:discard','formatBlock','isMultiRange','backward','createdAt','markerToData','return','_enabledCommands','lowest','previous','formatGroupId','isRemovable','_adapter','never','sort','_isDataLoaded','fire','high','commandName','size','end','subType','isInContent','for','widget','insertion:accept','ck-suggestion-marker-','isCollapsed','_suggestions','formatBlock:chain','data-suggestion','_getExternalAuthor','filter','removeMarker:suggestion:formatBlock','deletion:accept','suggestionUnloaded','setTo','markMultiRangeDeletion','track-changes-suggestion-data-mismatch','markerName','unbindElementFromMarkerName','formatBlock:discard','_joinSuggestions','split','notReady','always','adapter','containsRange','editor','getShiftedBy','document','removeMarker','acceptSelectedSuggestions','_cutOutSuggestionMarker','insert','markInlineFormat','Users','splitPosition','attributes','getUser','targetPosition','set','getAttribute','removeMarkers','isOwn','_breakSuggestionMarker','formatBlock:accept','_onDiscard','data','addMarkerName','substr','_customCallbacks','markMultiRangeBlockFormat','keys','addCommentThread','$marker','_handleNewSuggestionMarker','creator','markerReady','ck-suggestion-marker-formatBlock','range','getLastMatchingPosition','change','insertContent','_editor','deleteContent','remove','@external','isObject','rootName','formatInline:chain','options','trackChangesCommand','from','toViewElement','next','author','markBlockFormat','track-changes-user-not-found','change:activeMarkers','getRanges','isAtStart','formatBlock:','start','getSuggestionCallback','change:data','every','pluginName','_updateSuggestionData','rethrowUnexpectedError','element','ready','formatInline:join','_mergeNestedSuggestions','isArray','getFirstRange','_registerDefaultCallbacks','discardSelectedSuggestions','getSuggestion','getMultiRangeId','default','buildSuggestion','isLimit','formatInline:discard','addMarker:suggestion','ck-suggestion-marker','_getAuthorFromId','isBefore','ck-suggestion-marker--active','bindElementToMarker','insertion','selection','accept','addHighlight','getCommentThread','getMarkers','hasComments','setAttribute','suggestion-type','includes','howMany','then','activeMarkers','fetchCommentThread','isSelectable','suggestionLoaded','getDifference','isIntersectingWithRange','addComment','parent','_splitMarkerName','_commentsRepository','multi','locale','nodeBefore','insertion:discard','hasSuggestion','addClass','moveTargetPosition','getChangedMarkers','requires','track-changes-suggestion-not-found','authoredAt','addRange','collaboration.channelId','dataToMarker','discardAllSuggestions','insertion:chain','newRange','consume','registerCustomCallback','_defaultCallbacks','createPositionAt','chain','accepted','isNextTo','_setSuggestionRange','config','consumable','has','createRangeIn','detach','_model','listenTo','low','updateSuggestion','formatBlock:join','removed','addMarker','dataDowncast','removeClass','_removeSuggestion','suggestionChanged','rejected','oldRange','markInsertion','isAtEnd','getRange','showSuggestionHighlights','getFirstMarker','elementStart','position','getCustomProperty','$graveyard','addSuggestion','push','_createSuggestion','_isForcedDefaultExecutionBlock','forceDefaultExecution','formatInline:','getNearestSelectionRange','_setSuggestionData','fromCharCode','isUndo','editingDowncast','registerPostFixer','_getSuggestionData','elementToElement','item','conversion','clone','markerToHighlight','getIntersection','some','suggestion:','_suggestionFactory','_refreshSuggestionsChain','markDeletion','getAllAdjacentSuggestions','get','assign','_descriptionFactory','setSelection','trackChanges.mergeNestedSuggestions','external:','length','isInsideObject'];(function(_0xb38c49,_0x2d78f5){const _0x5ae370=function(_0x6e0cd9){while(--_0x6e0cd9){_0xb38c49['push'](_0xb38c49['shift']());}};_0x5ae370(++_0x2d78f5);}(_0x2d78,0x93));const _0x5ae3=function(_0xb38c49,_0x2d78f5){_0xb38c49=_0xb38c49-0x0;let _0x5ae370=_0x2d78[_0xb38c49];return _0x5ae370;};import{Plugin as _0x5da0cc,PendingActions as _0x497a88}from'ckeditor5/src/core';import{LiveRange as _0x2cf0d0}from'ckeditor5/src/engine';import{CKEditorError as _0x425364,uid as _0x4a761c,priorities as _0xa2e847,logWarning as _0x39bac1}from'ckeditor5/src/utils';import{toWidget as _0x261bcd}from'ckeditor5/src/widget';import{Users as _0x4134b6,hashObject as _0x4d43c3}from'ckeditor5-collaboration/src/collaboration-core';import _0x28d121 from'./commands/trackchangescommand';import _0x14ddd3 from'./commands/acceptsuggestioncommand';import _0x2f3e9f from'./commands/discardsuggestioncommand';import _0x44ba91 from'./commands/executeonallsuggestionscommand';import _0x17823a from'./commands/executeonselectedsuggestionscommand';import _0xaf17ea from'./suggestion';import _0x42a5bb from'./suggestiondescriptionfactory';import _0x26601e from'./integrations/alignment';import _0x201324 from'./integrations/basicstyles';import _0x360a24 from'./integrations/blockquote';import _0x2b6b34 from'./integrations/ckbox';import _0x4b34b8 from'./integrations/codeblock';import _0x51084b from'./integrations/comments';import _0x8a616c from'./integrations/deletecommand';import _0x4c3151 from'./integrations/documentlist';import _0x3c94f4 from'./integrations/entercommand';import _0x4d62c6 from'./integrations/findandreplace';import _0x168b68 from'./integrations/font';import _0x21610e from'./integrations/formatpainter';import _0x196b31 from'./integrations/heading';import _0x3cc413 from'./integrations/highlight';import _0x41df89 from'./integrations/horizontalline';import _0x2aa11d from'./integrations/htmlembed';import _0x397e4b from'./integrations/image';import _0x18982d from'./integrations/imagereplace';import _0xc7e632 from'./integrations/importword';import _0x3cd9f9 from'./integrations/indent';import _0x471f7e from'./integrations/inputcommand';import _0x294959 from'./integrations/link';import _0x294656 from'./integrations/list';import _0x51c2f6 from'./integrations/listproperties';import _0x20aece from'./integrations/mediaembed';import _0x11e5de from'./integrations/mention';import _0x24311d from'./integrations/pagebreak';import _0x2386f9 from'./integrations/paragraph';import _0x3d5502 from'./integrations/removeformat';import _0x105d6e from'./integrations/restrictededitingmode';import _0x4c43f8 from'./integrations/shiftentercommand';import _0x2eb8f1 from'./integrations/standardeditingmode';import _0x462f1b from'./integrations/style';import _0x422f38 from'./integrations/table';import _0x1cd61b from'./integrations/tablemergesplit';import _0x5017a6 from'./integrations/tableheadings';import _0x35d348 from'./integrations/tableclipboard';import _0x444341 from'./integrations/tablecolumnresize';import _0xded890 from'./integrations/template';import _0x45b1f5 from'./integrations/tableofcontents';import _0x5ccf9b from'./integrations/title';import _0x5b6fc1 from'./integrations/undo';import{getTranslation as _0x2aa019}from'./utils/common-translations';import _0x27790b from'./integrations/tablecaption';import _0x26df8a from'./integrations/documentlistproperties';import _0x30e6b1 from'./integrations/tableproperties';import{isEqual as _0x4938dc}from'lodash-es';export default class p extends _0x5da0cc{static get[_0x5ae3('0x5d')](){return[_0x5ae3('0xb7'),_0x4134b6,_0x497a88,_0x26601e,_0x201324,_0x360a24,_0x2b6b34,_0x4b34b8,_0x51084b,_0x8a616c,_0x4c3151,_0x26df8a,_0x3c94f4,_0x4d62c6,_0x168b68,_0x21610e,_0x196b31,_0x3cc413,_0x41df89,_0x2aa11d,_0x397e4b,_0x18982d,_0xc7e632,_0x3cd9f9,_0x471f7e,_0x294959,_0x294656,_0x51c2f6,_0x20aece,_0x11e5de,_0x24311d,_0x2386f9,_0x3d5502,_0x105d6e,_0x4c43f8,_0x2eb8f1,_0x462f1b,_0x422f38,_0x1cd61b,_0x5017a6,_0x27790b,_0x35d348,_0x444341,_0x45b1f5,_0x30e6b1,_0xded890,_0x5ccf9b,_0x5b6fc1];}static get[_0x5ae3('0x28')](){return _0x5ae3('0xad');}constructor(_0x38037d){function _0x197038(_0x51334d){return _0x51334d[_0x5ae3('0xf9')](_0x2486fb=>String[_0x5ae3('0x91')](_0x2486fb))[_0x5ae3('0xc8')]('');}super(_0x38037d),this[_0x5ae3('0x137')](_0x5ae3('0x4b'),[]),this['on'](_0x5ae3('0x20'),(_0x23f7c8,_0x22d3fc,_0x3456ef,_0x13455b)=>{this[_0x5ae3('0x73')][_0x5ae3('0xf')](()=>{for(const _0x4d18ad of[..._0x13455b,..._0x3456ef])this[_0x5ae3('0x73')][_0x5ae3('0xcd')]['has'](_0x4d18ad)&&_0x38037d[_0x5ae3('0xd7')][_0x5ae3('0xd4')](_0x4d18ad);});}),this[_0x5ae3('0xa4')]=new _0x42a5bb(this[_0x5ae3('0x12a')][_0x5ae3('0xe9')]['schema'],this[_0x5ae3('0x12a')][_0x5ae3('0x56')]),this[_0x5ae3('0x106')]=null,this[_0x5ae3('0x9e')]=new Dt(this[_0x5ae3('0x12a')]),this[_0x5ae3('0x116')]=new Map(),this[_0x5ae3('0x54')]=_0x38037d[_0x5ae3('0xd2')]['get'](_0x5ae3('0xb7')),this[_0x5ae3('0x101')]=new Set(),this[_0x5ae3('0x73')]=this[_0x5ae3('0x12a')]['model'],this['_suggestionState']=new WeakMap(),this[_0x5ae3('0x8c')]=!0x1,_0x38037d[_0x5ae3('0x6e')][_0x5ae3('0xdb')](_0x5ae3('0xab'),_0x5ae3('0x35')),this['_trackFormatChanges']=_0x38037d['config'][_0x5ae3('0xa2')](_0x5ae3('0xab')),_0x38037d[_0x5ae3('0x6e')][_0x5ae3('0xdb')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x5ae3('0x2e')]=_0x38037d[_0x5ae3('0x6e')][_0x5ae3('0xa2')](_0x5ae3('0xa6')),this[_0x5ae3('0x19')]=new _0x28d121(_0x38037d,this[_0x5ae3('0x101')]),this[_0x197038([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x197038([0x34,0x30,0x34,0x36,0x31,0x36,0x36,0x30]);}['init'](){const _0x358591=this[_0x5ae3('0x12a')];_0x358591['conversion']['for'](_0x5ae3('0x93'))[_0x5ae3('0x9a')]({'model':_0x5ae3('0xe1'),'view':_0x4638b5=>{const {id:_0xbecdc9,type:_0x86c107}=this[_0x5ae3('0x53')](_0x4638b5[_0x5ae3('0x121')]),_0x28362e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x86c107];let _0x43ff02=0xbb8;return this[_0x5ae3('0x4b')][_0x5ae3('0x48')](_0x4638b5[_0x5ae3('0x121')])&&(_0x28362e['push'](_0x5ae3('0x3d')),_0x43ff02=0xbc2),_0x5ae3('0xc5')==_0x86c107&&(_0x43ff02+=0x5),{'classes':_0x28362e,'attributes':{'data-suggestion':_0xbecdc9},'priority':_0x43ff02};}}),_0x358591[_0x5ae3('0x98')][_0x5ae3('0x111')](_0x5ae3('0x7a'))[_0x5ae3('0xc2')](_0x3c457c=>{_0x3c457c['on'](_0x5ae3('0x39'),(_0x1e8f23,_0x4bccbe,_0x14ea64)=>{if(!_0x14ea64[_0x5ae3('0x18')][_0x5ae3('0x83')])return;const _0x2bc0e0=_0x4bccbe[_0x5ae3('0x97')];if(!_0x2bc0e0)return;const _0x57fb5a=_0x14ea64[_0x5ae3('0xd8')]['toViewElement'](_0x2bc0e0);_0x358591['model'][_0x5ae3('0xaf')]['isObject'](_0x2bc0e0)&&_0x57fb5a&&!_0x57fb5a[_0x5ae3('0x87')](_0x5ae3('0x112'))&&_0x57fb5a['is']('containerElement')&&_0x261bcd(_0x57fb5a,_0x14ea64[_0x5ae3('0xb1')]);},{'priority':_0x5ae3('0x10b')});}),_0x358591['conversion'][_0x5ae3('0x111')](_0x5ae3('0x7a'))['markerToHighlight']({'model':'suggestion','view':(_0x3b45a6,_0x2344dc)=>{if(!_0x2344dc[_0x5ae3('0x18')]['showSuggestionHighlights'])return null;const {type:_0x278ea2}=this[_0x5ae3('0x53')](_0x3b45a6[_0x5ae3('0x121')]);return{'classes':[_0x5ae3('0x3a'),_0x5ae3('0x114')+_0x278ea2],'priority':0xbb8};}});const _0x19d06d=({showActiveMarkers:_0x3617de=!0x0}={})=>(_0x1c7a37,_0x3d5bbe,_0x571c73)=>{if(!_0x3d5bbe[_0x5ae3('0x97')])return;if(_0x3d5bbe[_0x5ae3('0x97')]['is']('selection'))return void _0x571c73['consumable'][_0x5ae3('0x66')](_0x3d5bbe[_0x5ae3('0x97')],_0x1c7a37[_0x5ae3('0xcb')]);const _0x4885cf=_0x571c73[_0x5ae3('0xd8')][_0x5ae3('0x1b')](_0x3d5bbe[_0x5ae3('0x97')]);if(!(_0x3d5bbe['item']['is'](_0x5ae3('0x2b'))&&_0x358591['model'][_0x5ae3('0xaf')][_0x5ae3('0xd9')](_0x3d5bbe['item'])&&!_0x4885cf[_0x5ae3('0x87')]('addHighlight')))return;const {id:_0x66be44}=this[_0x5ae3('0x53')](_0x3d5bbe[_0x5ae3('0x121')]);_0x571c73[_0x5ae3('0xb1')][_0x5ae3('0x5a')]([_0x5ae3('0x3a'),_0x5ae3('0xc')],_0x4885cf),_0x571c73['writer'][_0x5ae3('0x46')](_0x5ae3('0x118'),_0x66be44,_0x4885cf),_0x571c73[_0x5ae3('0xd8')][_0x5ae3('0x3e')](_0x4885cf,_0x3d5bbe[_0x5ae3('0x121')]),_0x3617de&&(this[_0x5ae3('0x4b')][_0x5ae3('0x48')](_0x3d5bbe[_0x5ae3('0x121')])?_0x571c73[_0x5ae3('0xb1')]['addClass'](_0x5ae3('0x3d'),_0x4885cf):_0x571c73[_0x5ae3('0xb1')][_0x5ae3('0x7b')](_0x5ae3('0x3d'),_0x4885cf));for(const _0x3dfeec of _0x358591[_0x5ae3('0xe9')][_0x5ae3('0x71')](_0x3d5bbe[_0x5ae3('0x97')])[_0x5ae3('0xcf')]())_0x571c73[_0x5ae3('0x6f')][_0x5ae3('0x66')](_0x3dfeec,_0x1c7a37[_0x5ae3('0xcb')]);_0x571c73[_0x5ae3('0x6f')][_0x5ae3('0x66')](_0x3d5bbe['item'],_0x1c7a37[_0x5ae3('0xcb')]);};_0x358591[_0x5ae3('0x98')][_0x5ae3('0x111')]('dataDowncast')[_0x5ae3('0xc2')](_0x30cd09=>{_0x30cd09['on'](_0x5ae3('0xb6'),(_0x105e21,_0xc5dbb3,_0x30a79d)=>{_0x30a79d['options'][_0x5ae3('0x83')]&&_0x19d06d({'showActiveMarkers':!0x1})(_0x105e21,_0xc5dbb3,_0x30a79d);},{'priority':'highest'});}),_0x358591[_0x5ae3('0x98')][_0x5ae3('0x111')](_0x5ae3('0x7a'))[_0x5ae3('0xff')]({'model':_0x5ae3('0xe1'),'view':(_0x15ed70,_0xd0520d)=>_0xd0520d[_0x5ae3('0x18')][_0x5ae3('0x83')]?null:{'group':_0x5ae3('0xe1'),'name':_0x15ed70[_0x5ae3('0x3')](0xb)}}),_0x358591[_0x5ae3('0x98')]['for'](_0x5ae3('0xf8'))[_0x5ae3('0x96')]({'view':{'name':_0x5ae3('0xe1'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x34dda6,{writer:_0x51f930})=>{let _0x5a7747=_0x5ae3('0x9d')+_0x34dda6[_0x5ae3('0x138')](_0x5ae3('0x47'))+':'+_0x34dda6[_0x5ae3('0x138')]('id');return _0x34dda6[_0x5ae3('0x138')]('marker-count')&&(_0x5a7747+=':'+_0x34dda6[_0x5ae3('0x138')]('marker-count')),_0x51f930[_0x5ae3('0xee')](_0x5ae3('0x8'),{'data-name':_0x5a7747});}}),_0x358591[_0x5ae3('0x98')]['for'](_0x5ae3('0xf8'))[_0x5ae3('0x62')]({'view':_0x5ae3('0xe1')}),_0x358591['conversion'][_0x5ae3('0x111')](_0x5ae3('0x93'))[_0x5ae3('0xc2')](_0x4446b2=>{_0x4446b2['on']('addMarker:suggestion:formatBlock',_0x19d06d(),{'priority':_0x5ae3('0x10b')});}),_0x358591[_0x5ae3('0x98')][_0x5ae3('0x111')](_0x5ae3('0x93'))['add'](_0x1688b4=>{_0x1688b4['on'](_0x5ae3('0x11b'),(_0x2d7101,_0x524d1f,_0x403ddf)=>{const _0x51759e=_0x403ddf[_0x5ae3('0xd8')]['markerNameToElements'](_0x524d1f['markerName']);if(_0x51759e)for(const _0x7e5514 of _0x51759e)_0x7e5514[_0x5ae3('0x87')](_0x5ae3('0x42'))||(_0x403ddf[_0x5ae3('0xb1')][_0x5ae3('0x7b')]([_0x5ae3('0x3a'),'ck-suggestion-marker-formatBlock',_0x5ae3('0x3d')],_0x7e5514),_0x403ddf[_0x5ae3('0xb1')]['removeAttribute'](_0x5ae3('0x118'),_0x7e5514),_0x403ddf[_0x5ae3('0xd8')][_0x5ae3('0x122')](_0x7e5514,_0x524d1f[_0x5ae3('0x121')]));},{'priority':_0x5ae3('0x10b')});}),_0x358591[_0x5ae3('0xe9')]['document'][_0x5ae3('0x94')](_0x39b18a=>{let _0x5d32fa=!0x1;const _0xb21d91=Array[_0x5ae3('0x1a')](_0x358591['model'][_0x5ae3('0x12c')][_0x5ae3('0xc1')][_0x5ae3('0x5c')]()),_0x494593=new Set();for(const {name:_0x5ab2de,data:_0x3806da}of _0xb21d91){const {group:_0x37d2c5,type:_0x156271,id:_0x16b179}=this['_splitMarkerName'](_0x5ab2de);if(_0x5ae3('0xe1')!==_0x37d2c5)continue;const _0x255599=this['_suggestions'][_0x5ae3('0xa2')](_0x16b179);if(null!=_0x3806da[_0x5ae3('0x65')]){_0x5ae3('0xf5')==_0x156271&&(_0x5d32fa=_0x5d32fa||Mt(_0x3806da[_0x5ae3('0x65')],_0x5ab2de,_0x39b18a,_0x358591['model'][_0x5ae3('0xaf')]));if(_0x3806da[_0x5ae3('0x65')]['isCollapsed']||_0x5ae3('0x88')==_0x3806da[_0x5ae3('0x65')][_0x5ae3('0xef')][_0x5ae3('0x16')]||_0x5ae3('0xfb')==_0x156271&&!Nt(_0x3806da['newRange'])||_0x5ae3('0xc5')==_0x156271&&!(!_t(_0xbe2d69=_0x3806da[_0x5ae3('0x65')])&&!function(_0x4ce050){return _0x4ce050['start']['parent']==_0x4ce050['end'][_0x5ae3('0x57')]&&_0x4ce050[_0x5ae3('0x24')][_0x5ae3('0x81')];}(_0xbe2d69)))_0x39b18a['removeMarker'](_0x5ab2de),_0x5d32fa=!0x0;else{if(!_0x255599||!_0x255599['isInContent'])continue;_0x494593[_0x5ae3('0xc2')](_0x255599);}}}var _0xbe2d69;return _0x494593[_0x5ae3('0x10d')]>0x0&&(_0x5d32fa=!!this[_0x5ae3('0xda')](_0x494593)||_0x5d32fa),_0x5d32fa;}),_0x358591['model'][_0x5ae3('0x12c')]['registerPostFixer'](_0x43c38a=>{let _0x25d65c=!0x1;for(const _0x15a911 of _0x358591[_0x5ae3('0xe9')][_0x5ae3('0x12c')][_0x5ae3('0xc1')]['getChanges']()){if(_0x5ae3('0x130')!=_0x15a911[_0x5ae3('0xc7')])continue;const _0x59a3dc=_0x15a911[_0x5ae3('0x86')][_0x5ae3('0x12b')](_0x15a911[_0x5ae3('0xa8')]);if(_0x59a3dc[_0x5ae3('0x81')])for(const _0x53da82 of this['_suggestions']['values']()){if(_0x53da82[_0x5ae3('0xfc')]||!_0x53da82[_0x5ae3('0x110')])continue;if(_0x5ae3('0xfb')!=_0x53da82[_0x5ae3('0xc7')])continue;const _0x197c0d=_0x53da82[_0x5ae3('0x30')]();if(_0x197c0d[_0x5ae3('0x24')]['parent']!=_0x197c0d['end']['parent']&&_0x197c0d['end']['isEqual'](_0x15a911[_0x5ae3('0x86')])){const _0x5484eb=_0x358591[_0x5ae3('0xe9')][_0x5ae3('0xf0')](_0x197c0d[_0x5ae3('0x24')],_0x59a3dc);_0x43c38a[_0x5ae3('0xec')](_0x53da82[_0x5ae3('0x84')](),{'range':_0x5484eb}),_0x25d65c=!0x0;}}}return _0x25d65c;}),_0x358591['model']['markers']['on']('update:suggestion',(_0x3b4668,_0x56663a,_0x52525d)=>{if(null==_0x52525d){const {id:_0x398d1a}=this[_0x5ae3('0x53')](_0x56663a[_0x5ae3('0xcb')]),_0x428446=this[_0x5ae3('0x116')][_0x5ae3('0xa2')](_0x398d1a);_0x428446&&_0x428446[_0x5ae3('0x2')](_0x56663a[_0x5ae3('0xcb')]);}}),_0x358591[_0x5ae3('0xe9')][_0x5ae3('0x12c')]['on'](_0x5ae3('0x26'),()=>{const _0xda0a93=Array[_0x5ae3('0x1a')](_0x358591[_0x5ae3('0xe9')]['document'][_0x5ae3('0xc1')][_0x5ae3('0x5c')]())[_0x5ae3('0x11a')](_0x3945bf=>_0x5ae3('0xe1')===this[_0x5ae3('0x53')](_0x3945bf[_0x5ae3('0xcb')])['group']);if(0x0===_0xda0a93['length'])return;_0xda0a93[_0x5ae3('0x108')]((_0x21c051,_0x28f3a9)=>{const _0x5b5a8f=_0x21c051[_0x5ae3('0x1')][_0x5ae3('0x7f')],_0x34b1de=_0x28f3a9[_0x5ae3('0x1')][_0x5ae3('0x7f')];return null===_0x5b5a8f&&null===_0x34b1de?0x0:null===_0x5b5a8f&&null!==_0x34b1de?-0x1:null!==_0x5b5a8f&&null===_0x34b1de?0x1:_0x5b5a8f[_0x5ae3('0x24')][_0x5ae3('0x3c')](_0x34b1de[_0x5ae3('0x24')])?-0x1:0x1;});const _0x15d787=new Set(),_0x5d5a17=new Set();for(const {name:_0x4ce546,data:_0x57b7f0}of _0xda0a93){const {id:_0x5be5ac}=this[_0x5ae3('0x53')](_0x4ce546);if(null===_0x57b7f0[_0x5ae3('0x7f')]){const _0xf763d5=this[_0x5ae3('0x9')](_0x4ce546);_0x5d5a17[_0x5ae3('0xc2')](_0xf763d5);}else{const _0x39b998=this[_0x5ae3('0x116')][_0x5ae3('0xa2')](_0x5be5ac);null!==_0x57b7f0[_0x5ae3('0x65')]||_0x39b998['isInContent']?(_0x15d787[_0x5ae3('0xc2')](_0x39b998['head']),_0x5d5a17[_0x5ae3('0xc2')](_0x39b998)):this[_0x5ae3('0x7c')](_0x39b998);}}_0x5d5a17[_0x5ae3('0x10d')]>0x0&&this['_refreshSuggestionsChain'](_0x5d5a17);for(const _0xb80123 of _0x15d787)this[_0x5ae3('0x10a')](_0x5ae3('0x7d'),_0xb80123);}),_0x358591[_0x5ae3('0xe9')]['on'](_0x5ae3('0xc6'),(_0x371f9e,_0x33ed42)=>{const _0x1421d3=_0x33ed42[0x0];if(!this['_suggestions']['size'])return;if(!_0x1421d3[_0x5ae3('0xe8')])return;if(_0x1421d3[_0x5ae3('0xf3')][_0x5ae3('0x92')]||!_0x1421d3[_0x5ae3('0xf3')]['isLocal'])return;let _0x3d17d9,_0x3cd2b9;switch(_0x1421d3[_0x5ae3('0xc7')]){case _0x5ae3('0x130'):_0x3d17d9=_0x358591[_0x5ae3('0xe9')][_0x5ae3('0x69')](_0x1421d3['position']),_0x3cd2b9=_0x3d17d9['getShiftedBy'](_0x1421d3[_0x5ae3('0x49')]);break;case _0x5ae3('0x125'):_0x3d17d9=_0x358591[_0x5ae3('0xe9')][_0x5ae3('0x69')](_0x1421d3[_0x5ae3('0x133')]),_0x3cd2b9=_0x358591[_0x5ae3('0xe9')][_0x5ae3('0x69')](_0x1421d3[_0x5ae3('0x5b')]);break;case'move':_0x3d17d9=_0x358591[_0x5ae3('0xe9')][_0x5ae3('0x69')](_0x1421d3[_0x5ae3('0x136')]),_0x3cd2b9=_0x3d17d9['getShiftedBy'](_0x1421d3[_0x5ae3('0x49')]);break;default:return;}const _0x3a90a9=_0x358591['model'][_0x5ae3('0xf0')](_0x3d17d9,_0x3cd2b9);_0x358591[_0x5ae3('0xe9')][_0x5ae3('0xf')](()=>{for(const {suggestion:_0x1d6ce8,meta:_0x7ea45b}of this['_findSuggestions'](_0x3a90a9)){if(_0x1d6ce8[_0x5ae3('0xfc')])continue;if(_0x5ae3('0xf5')==_0x1d6ce8[_0x5ae3('0xc7')])continue;const _0x3af06b=_0x1d6ce8[_0x5ae3('0x1')]&&_0x1d6ce8[_0x5ae3('0x1')][_0x5ae3('0xc0')];(_0x5ae3('0xfb')!=_0x1d6ce8[_0x5ae3('0xc7')]||_0x5ae3('0x125')==_0x1421d3[_0x5ae3('0xc7')]&&!_0x3af06b)&&(_0x7ea45b[_0x5ae3('0xbe')]||_0x5ae3('0x3f')==_0x1d6ce8['type']&&_0x7ea45b[_0x5ae3('0x13a')]||_0x1d6ce8[_0x5ae3('0x30')]()[_0x5ae3('0x129')](_0x3a90a9)&&this['_breakSuggestionMarker'](_0x1d6ce8,_0x3d17d9,_0x3cd2b9));}});},{'priority':_0x5ae3('0x102')}),_0x358591[_0x5ae3('0xe9')]['on'](_0x5ae3('0x12'),(_0x30c6ec,_0x17c116)=>{const _0x38202c=_0x17c116[0x0],_0x1e0c6d=_0x17c116[0x1];if(_0x1e0c6d&&_0x1e0c6d[_0x5ae3('0x8d')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x5ae3('0x19')][_0x5ae3('0xe4')])return;if(_0x38202c[_0x5ae3('0x115')])return;const _0x512703=_0x358591[_0x5ae3('0xe9')][_0x5ae3('0xaf')],{start:_0x5d7b90,end:_0x1bb267}=_0x38202c[_0x5ae3('0x30')](),_0x319563=_0x5d7b90['nodeAfter']&&_0x512703[_0x5ae3('0x37')](_0x5d7b90[_0x5ae3('0xbc')])?null:_0x512703['getNearestSelectionRange'](_0x5d7b90,'forward'),_0x63c15f=_0x1bb267[_0x5ae3('0x57')]&&_0x512703['isLimit'](_0x1bb267[_0x5ae3('0x57')])?null:_0x512703[_0x5ae3('0x8f')](_0x1bb267,_0x5ae3('0xfd')),_0x12d418=_0x358591[_0x5ae3('0xe9')][_0x5ae3('0xf0')](_0x319563?_0x319563[_0x5ae3('0x24')]:_0x5d7b90,_0x63c15f?_0x63c15f[_0x5ae3('0x10e')]:_0x1bb267);_0x358591[_0x5ae3('0xe9')][_0x5ae3('0xf')](_0x245da0=>{this['markDeletion'](_0x12d418);const _0x15de8a=_0x358591[_0x5ae3('0xe9')][_0x5ae3('0xaf')][_0x5ae3('0x8f')](_0x12d418['start']);_0x38202c['is']('documentSelection')?_0x245da0[_0x5ae3('0xa5')](_0x15de8a):_0x38202c[_0x5ae3('0x11e')](_0x15de8a);}),_0x30c6ec[_0x5ae3('0xbb')]();},{'priority':_0xa2e847[_0x5ae3('0xb8')]+0xa}),_0x358591[_0x5ae3('0xe9')]['on'](_0x5ae3('0x10'),(_0x48fbd7,_0x580ac6)=>{const _0x4c18e4=_0x580ac6[_0x580ac6[_0x5ae3('0xa8')]-0x1];_0x4c18e4&&_0x4c18e4[_0x5ae3('0x8d')]||this[_0x5ae3('0x8c')]||this[_0x5ae3('0x19')][_0x5ae3('0xe4')]&&(_0x358591[_0x5ae3('0xe9')]['change'](()=>{let _0x1251ee=_0x358591[_0x5ae3('0xe9')][_0x5ae3('0x10')](_0x580ac6[0x0],_0x580ac6[0x1],_0x580ac6[0x2],{'forceDefaultExecution':!0x0});if(!_0x1251ee)return;_0x48fbd7[_0x5ae3('0x100')]=_0x1251ee[_0x5ae3('0x99')]();const _0x26ea49=_0x1251ee[_0x5ae3('0x10e')][_0x5ae3('0x57')],_0x47eb1c=_0x358591['model'][_0x5ae3('0xaf')];_0x26ea49&&_0x47eb1c[_0x5ae3('0xd9')](_0x26ea49)&&!_0x47eb1c[_0x5ae3('0x15')](_0x26ea49)&&(_0x1251ee=_0x358591[_0x5ae3('0xe9')][_0x5ae3('0xf0')](_0x1251ee['start'],_0x358591['model'][_0x5ae3('0x69')](_0x26ea49,_0x5ae3('0x10e')))),this['markInsertion'](_0x1251ee);}),_0x48fbd7[_0x5ae3('0xbb')]());},{'priority':_0x5ae3('0x10b')}),this['editor'][_0x5ae3('0xed')][_0x5ae3('0xc2')]('trackChanges',this[_0x5ae3('0x19')]),this[_0x5ae3('0xb0')](_0x5ae3('0xca'));const _0x31483b=new _0x14ddd3(_0x358591,this[_0x5ae3('0x116')]);_0x358591[_0x5ae3('0xed')]['add']('acceptSuggestion',_0x31483b),this['enableCommand'](_0x5ae3('0xf7'));const _0x25ab59=new _0x2f3e9f(_0x358591,this[_0x5ae3('0x116')]);_0x358591[_0x5ae3('0xed')][_0x5ae3('0xc2')](_0x5ae3('0xde'),_0x25ab59),this[_0x5ae3('0xb0')](_0x5ae3('0xde')),_0x358591[_0x5ae3('0xed')]['add'](_0x5ae3('0xce'),new _0x44ba91(_0x358591,_0x31483b,this[_0x5ae3('0x116')])),this['enableCommand'](_0x5ae3('0xce')),_0x358591[_0x5ae3('0xed')][_0x5ae3('0xc2')]('discardAllSuggestions',new _0x44ba91(_0x358591,_0x25ab59,this[_0x5ae3('0x116')])),this[_0x5ae3('0xb0')](_0x5ae3('0x63')),_0x358591[_0x5ae3('0xed')][_0x5ae3('0xc2')](_0x5ae3('0x12e'),new _0x17823a(_0x358591,_0x31483b,this[_0x5ae3('0x116')])),this['enableCommand'](_0x5ae3('0x12e')),_0x358591[_0x5ae3('0xed')][_0x5ae3('0xc2')](_0x5ae3('0x32'),new _0x17823a(_0x358591,_0x25ab59,this[_0x5ae3('0x116')])),this[_0x5ae3('0xb0')](_0x5ae3('0x32'));const _0x48dfeb=_0x358591[_0x5ae3('0xd2')][_0x5ae3('0xa2')](_0x5ae3('0xb7'));this['listenTo'](_0x48dfeb,_0x5ae3('0x51'),(_0x2d3d1c,{threadId:_0x411f79})=>{const _0x49b88b=this[_0x5ae3('0x116')][_0x5ae3('0xa2')](_0x411f79);_0x49b88b&&_0x49b88b[_0x5ae3('0xe6')]&&0x1===_0x49b88b['commentThread'][_0x5ae3('0xa8')]&&this[_0x5ae3('0x29')](_0x411f79,{'hasComments':!0x0});},{'priority':_0x5ae3('0x75')}),this[_0x5ae3('0x74')](_0x48dfeb,'removeComment',(_0x1ce685,{threadId:_0x2a52d8})=>{const _0x5d9b1c=this[_0x5ae3('0x116')]['get'](_0x2a52d8);_0x5d9b1c&&_0x5d9b1c[_0x5ae3('0xe6')]&&!_0x5d9b1c[_0x5ae3('0xe6')]['length']&&this[_0x5ae3('0x29')](_0x2a52d8,{'hasComments':!0x1});},{'priority':_0x5ae3('0x75')});}set[_0x5ae3('0x128')](_0x49aa07){if(this[_0x5ae3('0x106')])throw new _0x425364(_0x5ae3('0xf2'),this);this[_0x5ae3('0x106')]=_0x49aa07;}get[_0x5ae3('0x128')](){return this[_0x5ae3('0x106')];}[_0x5ae3('0xd0')]({skipNotAttached:_0x4a0e82=!0x1,toJSON:_0x322851=!0x1}={}){const _0x3a305e=[];for(const _0x3dfc42 of this['_suggestions']['values']())_0x4a0e82&&!_0x3dfc42['isInContent']||_0x3a305e[_0x5ae3('0x8a')](_0x3dfc42);return _0x322851?_0x3a305e[_0x5ae3('0xf9')](_0x5be0dc=>_0x5be0dc['toJSON']()):_0x3a305e;}[_0x5ae3('0x33')](_0x50a768){const _0x294c8f=this[_0x5ae3('0x116')]['get'](_0x50a768);if(!_0x294c8f)throw new _0x425364(_0x5ae3('0x5e'),this);return _0x294c8f;}[_0x5ae3('0x59')](_0x483858){return this[_0x5ae3('0x116')][_0x5ae3('0x70')](_0x483858);}[_0x5ae3('0xdf')](_0x49deaa){const {authorId:_0x433c76,id:_0x4a8e12,attributes:_0x59e623}=_0x49deaa,[_0xd3492b,_0x17086f]=_0x49deaa[_0x5ae3('0xc7')][_0x5ae3('0x125')](':'),_0x1959e3=this[_0x5ae3('0x116')][_0x5ae3('0xa2')](_0x4a8e12)||this[_0x5ae3('0x8b')](_0xd3492b,_0x17086f,_0x4a8e12,_0x433c76,_0x59e623);if(this[_0x5ae3('0xb9')](_0x1959e3),this[_0x5ae3('0xd1')](_0x1959e3,_0xd3492b,_0x17086f||null,_0x433c76),_0x1959e3[_0x5ae3('0xfe')]=_0x49deaa[_0x5ae3('0xfe')],_0x1959e3[_0x5ae3('0x109')]=!0x0,_0x59e623&&_0x59e623[_0x5ae3('0x14')]){const _0x19299a=_0x59e623['@external'],_0x44129b=this[_0x5ae3('0x119')](_0x19299a['authorName']);_0x1959e3[_0x5ae3('0x5f')]=_0x19299a[_0x5ae3('0xfe')],_0x1959e3[_0x5ae3('0x1d')]=_0x44129b,_0x1959e3['isExternal']=!0x0;}else _0x1959e3['authoredAt']=_0x49deaa[_0x5ae3('0xfe')];switch(_0x49deaa[_0x5ae3('0x1')]&&(_0x1959e3['data']=_0x49deaa[_0x5ae3('0x1')]),_0x49deaa[_0x5ae3('0x134')]&&(_0x1959e3[_0x5ae3('0x134')]=_0x49deaa[_0x5ae3('0x134')]),this[_0x5ae3('0x106')]&&this['_adapter'][_0x5ae3('0x89')]||(_0x1959e3[_0x5ae3('0xb4')]=!0x0),this[_0x5ae3('0xc9')][_0x5ae3('0xa2')](_0x1959e3)){case _0x5ae3('0x126'):this[_0x5ae3('0xc9')][_0x5ae3('0x137')](_0x1959e3,'dataReady');break;case _0x5ae3('0xb'):_0x1959e3[_0x5ae3('0x110')]?(this['_refreshSuggestionsChain'](new Set([_0x1959e3])),this[_0x5ae3('0xda')](new Set([_0x1959e3])),this[_0x5ae3('0xc9')]['set'](_0x1959e3,_0x5ae3('0x2c')),this['fire'](_0x5ae3('0x4e'),_0x1959e3)):this[_0x5ae3('0xc9')][_0x5ae3('0x137')](_0x1959e3,'removed');}return _0x1959e3;}['acceptSuggestion'](_0x255215){this['forceDefaultExecution'](()=>{this['editor'][_0x5ae3('0xe9')][_0x5ae3('0xf')](()=>{for(const _0x5377ae of _0x255215[_0x5ae3('0xa1')]())_0x5377ae[_0x5ae3('0x41')]();});});}[_0x5ae3('0xde')](_0x1aaff0){this[_0x5ae3('0x8d')](()=>{this[_0x5ae3('0x12a')]['model'][_0x5ae3('0xf')](()=>{for(const _0x222194 of _0x1aaff0[_0x5ae3('0xa1')]())_0x222194[_0x5ae3('0xba')]();});});}['enableCommand'](_0x22c289,_0x17701c){const _0x23c599=this[_0x5ae3('0x12a')][_0x5ae3('0xed')][_0x5ae3('0xa2')](_0x22c289);if(!_0x23c599)throw new _0x425364('track-changes-command-not-found',this,{'commandName':_0x22c289});this[_0x5ae3('0x101')][_0x5ae3('0xc2')](_0x23c599),_0x17701c&&_0x23c599['on'](_0x5ae3('0xb3'),(_0x1e0bdd,_0x370124)=>{this[_0x5ae3('0x19')][_0x5ae3('0xe4')]&&(this[_0x5ae3('0x8c')]||_0x370124['length']>0x0&&_0x370124[_0x370124[_0x5ae3('0xa8')]-0x1]&&_0x370124[_0x370124[_0x5ae3('0xa8')]-0x1]['forceDefaultExecution']||(_0x17701c((..._0x64f2f3)=>_0x23c599[_0x5ae3('0xb3')](..._0x64f2f3,{'forceDefaultExecution':!0x0}),..._0x370124),_0x1e0bdd[_0x5ae3('0xbb')]()));},{'priority':_0x5ae3('0x10b')});}[_0x5ae3('0x8d')](_0x3bb094){let _0x51df82,_0x229a81;const _0xfe6246=this[_0x5ae3('0x8c')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x51df82=_0x3bb094();}catch(_0x40032a){_0x229a81=_0x40032a;}return _0xfe6246||(this[_0x5ae3('0x8c')]=!0x1),_0x229a81&&_0x425364[_0x5ae3('0x2a')](_0x229a81,this),_0x51df82;}[_0x5ae3('0x80')](_0x453629,_0x44a619=null,_0x468fc3={}){if(_0x453629[_0x5ae3('0x115')])return null;const _0x40d21a=this[_0x5ae3('0x12a')][_0x5ae3('0xd2')][_0x5ae3('0xa2')]('Users')['me'];for(const {suggestion:_0x38fa0b,meta:_0x23b17b}of this[_0x5ae3('0xe5')](_0x453629,'insertion'))if(_0x23b17b[_0x5ae3('0x13a')]){if(!_0x23b17b[_0x5ae3('0x6c')]){if(_0x23b17b[_0x5ae3('0xbe')]){if(!this[_0x5ae3('0x2e')]||!Ut(_0x38fa0b,_0x468fc3))continue;return _0x38fa0b;}if(Ut(_0x38fa0b,_0x468fc3))return _0x38fa0b;this[_0x5ae3('0x13b')](_0x38fa0b,_0x453629[_0x5ae3('0x24')],_0x453629['end']);break;}if(_0x44a619==_0x38fa0b['subType']&&Ut(_0x38fa0b,_0x468fc3)){const _0x2670c9=_0x38fa0b[_0x5ae3('0x30')]();return _0x2670c9[_0x5ae3('0x24')][_0x5ae3('0xe3')](_0x453629['end'])?this[_0x5ae3('0x6d')](_0x38fa0b,this[_0x5ae3('0x73')][_0x5ae3('0xf0')](_0x453629[_0x5ae3('0x24')],_0x2670c9[_0x5ae3('0x10e')])):this['_setSuggestionRange'](_0x38fa0b,this[_0x5ae3('0x73')][_0x5ae3('0xf0')](_0x2670c9[_0x5ae3('0x24')],_0x453629[_0x5ae3('0x10e')])),_0x38fa0b;}}const _0x2f11f6=_0x4a761c(),_0x40ea50=_0x40d21a['id'],_0x30ef37=_0x44a619?'insertion:'+_0x44a619:'insertion',_0x59793c=this[_0x5ae3('0x90')]({'id':_0x2f11f6,'type':_0x30ef37,'createdAt':new Date(),'authorId':_0x40ea50,'attributes':_0x468fc3});return this[_0x5ae3('0xcc')](_0x30ef37,_0x2f11f6,_0x40ea50,_0x453629),_0x59793c;}[_0x5ae3('0xc3')](_0xc1367e,_0x39be73=_0x5ae3('0x55'),_0x1f34c4={}){const _0x202146=this[_0x5ae3('0x12a')][_0x5ae3('0xd2')][_0x5ae3('0xa2')](_0x5ae3('0x132'))['me'],_0x36e6f8=this[_0x5ae3('0x9e')][_0x5ae3('0x25')](_0x5ae3('0x3f'),_0x39be73,_0x5ae3('0xc8'));for(const _0x4fbe80 of this[_0x5ae3('0xd0')]())if(_0x4fbe80[_0x5ae3('0x1d')]['id']==_0x202146['id']&&_0x5ae3('0x3f')==_0x4fbe80['type']&&_0x4fbe80[_0x5ae3('0x10f')]==_0x39be73&&Ut(_0x4fbe80,_0x1f34c4)&&(_0x36e6f8(_0x4fbe80[_0x5ae3('0x21')](),_0xc1367e)||_0x36e6f8(_0xc1367e,_0x4fbe80['getRanges']()))){for(const _0x5494f0 of _0xc1367e)_0x4fbe80[_0x5ae3('0x60')](_0x5494f0);return _0x4fbe80;}for(const {suggestion:_0x46303a,meta:_0x4406e7}of this['_findSuggestions'](_0xc1367e,_0x5ae3('0x3f'))){if(!_0x4406e7[_0x5ae3('0x13a')])continue;if(!this[_0x5ae3('0x2e')]&&_0x4406e7[_0x5ae3('0xbe')])continue;if(!Ut(_0x46303a,_0x1f34c4))continue;let _0x1e6ba0=!0x0;for(const _0x579f3f of _0x46303a[_0x5ae3('0x21')]())for(const _0x4c59e7 of _0xc1367e)if(!_0x579f3f[_0x5ae3('0x129')](_0x4c59e7)){_0x1e6ba0=!0x1;break;}if(_0x1e6ba0)return _0x46303a;}const _0x4caa97=_0x4a761c(),_0x5f2e77=_0x202146['id'],_0x211a6d='insertion:'+_0x39be73,_0x2d5a9c=this[_0x5ae3('0x90')]({'id':_0x4caa97,'type':_0x211a6d,'createdAt':new Date(),'authorId':_0x5f2e77,'attributes':_0x1f34c4});for(const _0x21c347 of _0xc1367e)this[_0x5ae3('0xcc')](_0x211a6d,_0x4caa97,_0x5f2e77,_0x21c347,_0xaf17ea[_0x5ae3('0x34')]());return _0x2d5a9c;}[_0x5ae3('0x131')](_0x41a782,_0x3e68f4,_0x44ee82=null,_0x69dfd0={}){if(_0x44ee82=_0x44ee82||$t(_0x3e68f4),_0x41a782[_0x5ae3('0x115')])return null;if('never'===this['_trackFormatChanges']){const _0x200730=this[_0x5ae3('0x9e')][_0x5ae3('0x25')](_0x5ae3('0xf5'),_0x44ee82,_0x5ae3('0x41'));return this[_0x5ae3('0x8d')](()=>_0x200730([_0x41a782],_0x3e68f4,_0x69dfd0)),null;}const _0x378b96=this['editor'][_0x5ae3('0xd2')]['get'](_0x5ae3('0x132'))['me'],_0x42ff22=[];if(_0x5ae3('0x127')!==this[_0x5ae3('0xbf')])for(const {suggestion:_0x2f3884,meta:_0x181888}of this[_0x5ae3('0xe5')](_0x41a782,_0x5ae3('0x3f')))_0x181888[_0x5ae3('0x13a')]&&!_0x181888[_0x5ae3('0xa9')]&&_0x42ff22[_0x5ae3('0x8a')](..._0x2f3884['getRanges']());const _0x556656=function(_0x411371,_0x12e72f){const _0x11f200=[];for(const _0xc3615c of _0x12e72f){const _0x5a490c=_0x411371[_0x5ae3('0x9b')](_0xc3615c);_0x5a490c&&_0x11f200['push'](_0x5a490c);}return _0x11f200;}(_0x41a782,_0x42ff22),_0x1c3e23=function(_0x62ff37,_0x1c70a1){const _0x30661a=[_0x62ff37];for(const _0x296db9 of _0x1c70a1){let _0x34dc9d=0x0;for(;_0x34dc9d<_0x30661a[_0x5ae3('0xa8')];){const _0x5df0b2=_0x30661a[_0x34dc9d]['getDifference'](_0x296db9);_0x30661a['splice'](_0x34dc9d,0x1,..._0x5df0b2),_0x34dc9d+=_0x5df0b2[_0x5ae3('0xa8')];}}return _0x30661a;}(_0x41a782,_0x42ff22);_0x556656[_0x5ae3('0xa8')]&&this[_0x5ae3('0x73')][_0x5ae3('0xf')](()=>{for(const _0x543eed of _0x556656){const _0x2086f1=this[_0x5ae3('0x9e')]['getSuggestionCallback'](_0x5ae3('0xf5'),_0x44ee82,'accept');this[_0x5ae3('0x8d')](()=>_0x2086f1([_0x543eed],_0x3e68f4,_0x69dfd0));}});for(const _0x2a595b of _0x1c3e23){let _0x379a9b=null,_0x3ac566=_0x2a595b[_0x5ae3('0x24')],_0x6c919d=_0x2a595b[_0x5ae3('0x10e')];for(const {suggestion:_0x2618ed,meta:_0x56febb}of this[_0x5ae3('0xe5')](_0x2a595b,_0x5ae3('0xf5'))){if(!_0x56febb[_0x5ae3('0x13a')])continue;if(_0x2618ed[_0x5ae3('0x10f')]!=_0x44ee82)continue;if(!Ut(_0x2618ed,_0x69dfd0))continue;const _0x1e5e99=_0x2618ed[_0x5ae3('0x30')]();if(_0x1e5e99['containsRange'](_0x2a595b,!0x0))return null;_0x3ac566=_0x3ac566[_0x5ae3('0x3c')](_0x1e5e99[_0x5ae3('0x24')])?_0x3ac566:_0x1e5e99['start'],_0x6c919d=_0x6c919d['isAfter'](_0x1e5e99[_0x5ae3('0x10e')])?_0x6c919d:_0x1e5e99[_0x5ae3('0x10e')],_0x379a9b?_0x1e5e99[_0x5ae3('0x24')][_0x5ae3('0x3c')](_0x379a9b[_0x5ae3('0x30')]()[_0x5ae3('0x24')])?(_0x379a9b[_0x5ae3('0x139')](),_0x379a9b=_0x2618ed):_0x2618ed[_0x5ae3('0x139')]():_0x379a9b=_0x2618ed;}const _0x1df155=this[_0x5ae3('0x73')][_0x5ae3('0xf0')](_0x3ac566,_0x6c919d);if(_0x379a9b)this[_0x5ae3('0x6d')](_0x379a9b,_0x1df155);else{const _0xf0f5b4=_0x4a761c(),_0x22d005=_0x378b96['id'];this['_setSuggestionData']({'id':_0xf0f5b4,'type':_0x5ae3('0x8e')+_0x44ee82,'data':_0x3e68f4,'createdAt':new Date(),'authorId':_0x22d005,'attributes':_0x69dfd0}),this['_addSuggestionMarker'](_0x5ae3('0x8e')+_0x44ee82,_0xf0f5b4,_0x22d005,_0x1df155);}}return null;}[_0x5ae3('0x1e')](_0x200cd4,_0x4dbaf9,_0x38a55b=[],_0x5c9ce5=null,_0x18b6a0={}){_0x4dbaf9[_0x5ae3('0x104')]||(_0x4dbaf9[_0x5ae3('0x104')]=_0x4dbaf9['commandName']),_0x4dbaf9[_0x5ae3('0xc0')]=_0x200cd4['is'](_0x5ae3('0xd')),_0x5c9ce5=_0x5c9ce5||$t(_0x4dbaf9);const _0xc5611e=_0x38a55b[_0x5ae3('0xf9')](_0x55870f=>Rt(_0x55870f,this[_0x5ae3('0x73')])),_0x4edda7=_0x200cd4['is'](_0x5ae3('0xd'))?_0x200cd4:Rt(_0x200cd4,this[_0x5ae3('0x73')]);if(_0x5ae3('0x107')===this[_0x5ae3('0xbf')]){const _0x38312d=this[_0x5ae3('0x9e')][_0x5ae3('0x25')](_0x5ae3('0xfb'),_0x5c9ce5,'accept');return this[_0x5ae3('0x8d')](()=>_0x38312d([_0x4edda7],_0x4dbaf9,_0x18b6a0)),null;}_0xc5611e[_0x5ae3('0x8a')](_0x4edda7);let _0x48121c=!0x0;for(const _0x276d5c of _0xc5611e)if(!this['_rangeIsInLocalUserInsertion'](_0x276d5c)){_0x48121c=!0x1;break;}if(_0x48121c&&_0x5ae3('0x127')!==this['_trackFormatChanges']){const _0x30c588=this[_0x5ae3('0x9e')][_0x5ae3('0x25')](_0x5ae3('0xfb'),_0x5c9ce5,_0x5ae3('0x41'));return this['forceDefaultExecution'](()=>_0x30c588([_0x4edda7],_0x4dbaf9,_0x18b6a0)),null;}let _0x1e57f1=null,_0x40b310=_0x4edda7[_0x5ae3('0x24')],_0x56c27b=_0x4edda7[_0x5ae3('0x10e')];for(const {suggestion:_0x414c83,meta:_0x2cbfa3}of this[_0x5ae3('0xe5')](_0x4edda7,_0x5ae3('0xfb'))){if(!_0x2cbfa3['isOwn'])continue;if(_0x2cbfa3['isNextTo']||_0x2cbfa3[_0x5ae3('0xbe')]||_0x2cbfa3[_0x5ae3('0xa9')])continue;if(_0x414c83[_0x5ae3('0x1')][_0x5ae3('0x104')]!=_0x4dbaf9[_0x5ae3('0x104')])continue;if(!Ut(_0x414c83,_0x18b6a0))continue;const _0xbbd9cf=_0x414c83[_0x5ae3('0x30')]();if(_0x414c83[_0x5ae3('0x10f')]==_0x5c9ce5){if(_0xbbd9cf[_0x5ae3('0x129')](_0x4edda7,!0x0))return null;_0x40b310=_0x40b310[_0x5ae3('0x3c')](_0xbbd9cf[_0x5ae3('0x24')])?_0x40b310:_0xbbd9cf['start'],_0x56c27b=_0x56c27b[_0x5ae3('0xb5')](_0xbbd9cf[_0x5ae3('0x10e')])?_0x56c27b:_0xbbd9cf['end'],_0x1e57f1?_0xbbd9cf[_0x5ae3('0x24')][_0x5ae3('0x3c')](_0x1e57f1[_0x5ae3('0x30')]()[_0x5ae3('0x24')])?(_0x1e57f1[_0x5ae3('0x139')](),_0x1e57f1=_0x414c83):_0x414c83[_0x5ae3('0x139')]():_0x1e57f1=_0x414c83;}else{const _0x1dca55=_0x4edda7[_0x5ae3('0x9b')](_0xbbd9cf);this[_0x5ae3('0x12f')](_0x414c83,_0x1dca55);}}const _0x328541=this[_0x5ae3('0x12a')]['plugins'][_0x5ae3('0xa2')](_0x5ae3('0x132'))['me'],_0x134a3c=_0x4a761c(),_0x5bb0ce=_0x328541['id'];if(_0x1e57f1)return this[_0x5ae3('0x6d')](_0x1e57f1,this[_0x5ae3('0x73')][_0x5ae3('0xf0')](_0x40b310,_0x56c27b)),_0x1e57f1;{const _0x4d3165=this[_0x5ae3('0x90')]({'id':_0x134a3c,'type':'formatBlock:'+_0x5c9ce5,'data':_0x4dbaf9,'createdAt':new Date(),'authorId':_0x5bb0ce,'attributes':_0x18b6a0});return this[_0x5ae3('0xcc')]('formatBlock:'+_0x5c9ce5,_0x134a3c,_0x5bb0ce,this['_model'][_0x5ae3('0xf0')](_0x40b310,_0x56c27b)),_0x4d3165;}}[_0x5ae3('0x5')](_0x4bc8ed,_0xd5d1ab,_0x3d6155=[],_0x1bde65=null,_0x2fe91c={}){_0xd5d1ab['formatGroupId']||(_0xd5d1ab['formatGroupId']=_0xd5d1ab[_0x5ae3('0x10c')]);const _0x5af2b0=_0x4bc8ed[0x0];_0xd5d1ab[_0x5ae3('0xc0')]=_0x5af2b0['is']('range'),_0x1bde65=_0x1bde65||$t(_0xd5d1ab);const _0x1fdc78=_0x3d6155['map'](_0x2a624b=>Rt(_0x2a624b,this[_0x5ae3('0x73')])),_0x5c184a=_0x5af2b0['is'](_0x5ae3('0xd'))?_0x4bc8ed:_0x4bc8ed['map'](_0x5770e6=>Rt(_0x5770e6,this['_model']));if(_0x5ae3('0x107')===this[_0x5ae3('0xbf')]){const _0x3eb228=this[_0x5ae3('0x9e')][_0x5ae3('0x25')](_0x5ae3('0xfb'),_0x1bde65,_0x5ae3('0x41'));return this['forceDefaultExecution'](()=>_0x3eb228(_0x5c184a,_0xd5d1ab,_0x2fe91c)),null;}_0x1fdc78[_0x5ae3('0x8a')](..._0x5c184a);let _0x1ee3bd=!0x0;for(const _0x2cb65c of _0x1fdc78)if(!this[_0x5ae3('0xd5')](_0x2cb65c)){_0x1ee3bd=!0x1;break;}if(_0x1ee3bd&&_0x5ae3('0x127')!==this['_trackFormatChanges']){const _0x48adba=this['_suggestionFactory'][_0x5ae3('0x25')](_0x5ae3('0xfb'),_0x1bde65,_0x5ae3('0x41'));return this[_0x5ae3('0x8d')](()=>_0x48adba(_0x5c184a,_0xd5d1ab,_0x2fe91c)),null;}const _0xc346c9=this['editor']['plugins'][_0x5ae3('0xa2')](_0x5ae3('0x132'))['me'];for(const _0x3d37a3 of this[_0x5ae3('0xd0')]()){if(_0x3d37a3[_0x5ae3('0x1d')]['id']!=_0xc346c9['id'])continue;if(_0x5ae3('0xfb')!=_0x3d37a3[_0x5ae3('0xc7')]||_0x3d37a3[_0x5ae3('0x1')]['formatGroupId']!=_0xd5d1ab[_0x5ae3('0x104')])continue;if(!Ut(_0x3d37a3,_0x2fe91c))continue;const _0x22fb45=_0x3d37a3[_0x5ae3('0x10f')]==_0x1bde65;for(let _0x36c8a6=0x0;_0x36c8a6<_0x5c184a[_0x5ae3('0xa8')];_0x36c8a6++){const _0x16f825=_0x5c184a[_0x36c8a6];for(const _0x5c748f of _0x3d37a3[_0x5ae3('0x44')]()){const _0x2fd14f=_0x5c748f[_0x5ae3('0x82')]();if(_0x16f825[_0x5ae3('0xe3')](_0x2fd14f)){_0x22fb45?(_0x5c184a[_0x5ae3('0xac')](_0x36c8a6,0x1),_0x36c8a6--):_0x3d37a3[_0x5ae3('0x12d')](_0x5c748f[_0x5ae3('0xcb')]);break;}}}}if(0x0==_0x5c184a[_0x5ae3('0xa8')])return null;const _0x4c40a8=this[_0x5ae3('0x9e')][_0x5ae3('0x25')]('formatBlock',_0x1bde65,_0x5ae3('0xc8'));for(const _0x291c33 of this[_0x5ae3('0xd0')]())if(_0x291c33[_0x5ae3('0x1d')]['id']==_0xc346c9['id']&&_0x5ae3('0xfb')==_0x291c33[_0x5ae3('0xc7')]&&_0x291c33['data'][_0x5ae3('0x104')]==_0xd5d1ab[_0x5ae3('0x104')]&&_0x291c33[_0x5ae3('0x10f')]==_0x1bde65&&Ut(_0x291c33,_0x2fe91c)&&(_0x4c40a8(_0x291c33['getRanges'](),_0x5c184a)||_0x4c40a8(_0x5c184a,_0x291c33[_0x5ae3('0x21')]()))){for(const _0x178729 of _0x5c184a)_0x291c33[_0x5ae3('0x60')](_0x178729);return _0x291c33;}const _0x2b2cc7=_0x4a761c(),_0x550b27=_0xc346c9['id'],_0x4723f6=_0x5ae3('0x23')+_0x1bde65,_0x3da826=this[_0x5ae3('0x90')]({'id':_0x2b2cc7,'type':_0x4723f6,'data':_0xd5d1ab,'createdAt':new Date(),'authorId':_0x550b27,'attributes':_0x2fe91c});for(const _0x4a9b00 of _0x5c184a)this['_addSuggestionMarker'](_0x4723f6,_0x2b2cc7,_0x550b27,_0x4a9b00,_0xaf17ea[_0x5ae3('0x34')]());return _0x3da826;}[_0x5ae3('0xa0')](_0x3cfdb8,_0x3e1687=null,_0x3437d5={}){if(_0x3cfdb8[_0x5ae3('0x115')])return null;const _0x2117b4=this['editor'][_0x5ae3('0xd2')][_0x5ae3('0xa2')](_0x5ae3('0x132'))['me'],_0x42a11b=new _0x2cf0d0(_0x3cfdb8['start'],_0x3cfdb8[_0x5ae3('0x10e')]);for(const {suggestion:_0x3edb3d,meta:_0x989cd0}of this[_0x5ae3('0xe5')](_0x42a11b,'insertion'))if(_0x989cd0[_0x5ae3('0x13a')]&&!_0x989cd0[_0x5ae3('0x6c')]){if(_0x3edb3d[_0x5ae3('0xfc')]){const _0x8d885a=_0x3edb3d['getRanges']()[_0x5ae3('0x11a')](_0x4ced24=>_0x5ae3('0x88')!=_0x4ced24[_0x5ae3('0xef')]['rootName']);_0x8d885a['every'](_0x4c0e17=>_0x42a11b['containsRange'](_0x4c0e17,!0x0))&&_0x3edb3d['discard']();if(_0x8d885a['some'](_0x5a118a=>_0x5a118a[_0x5ae3('0x129')](_0x42a11b,!0x0))){const _0x4a076e=this['_suggestionFactory'][_0x5ae3('0x25')](_0x5ae3('0xc5'),_0x3e1687,_0x5ae3('0x41'));return this[_0x5ae3('0x8d')](()=>_0x4a076e([_0x42a11b],null,_0x3437d5)),null;}}else{const _0x197b1d=_0x42a11b[_0x5ae3('0x9b')](_0x3edb3d['getFirstRange']());null!==_0x197b1d&&_0x3edb3d[_0x5ae3('0x0')]([_0x197b1d],null,_0x3437d5);}}if(_0x42a11b[_0x5ae3('0x72')](),_0x42a11b['isCollapsed']||_0x5ae3('0x88')==_0x42a11b[_0x5ae3('0xef')][_0x5ae3('0x16')])return null;let _0x13f424=null,_0x10f879=_0x42a11b[_0x5ae3('0x24')],_0x2f93fc=_0x42a11b[_0x5ae3('0x10e')];const _0x5cac46=this[_0x5ae3('0xe5')](_0x42a11b,_0x5ae3('0xc5'));for(const {suggestion:_0x160e3d,meta:_0x5a272f}of _0x5cac46){const _0x357d3e=this[_0x5ae3('0x73')][_0x5ae3('0xf0')](_0x10f879,_0x2f93fc);if(_0x5a272f[_0x5ae3('0x13a')]&&(this['_mergeNestedSuggestions']||!_0x5a272f['containsRangeInObject']&&!_0x5a272f[_0x5ae3('0xa9')])){if(_0x160e3d[_0x5ae3('0xfc')]){if(!Ut(_0x160e3d,_0x3437d5))continue;let _0x572bc9=!0x0;for(const _0x4a1394 of _0x160e3d[_0x5ae3('0x21')]()){if(_0x4a1394[_0x5ae3('0x129')](_0x357d3e,!0x0))return _0x160e3d;_0x357d3e[_0x5ae3('0x129')](_0x4a1394)||(_0x572bc9=!0x1);}_0x572bc9&&_0x160e3d['discard']();}else{const _0x39a37f=_0x160e3d['getFirstRange']();if(_0x39a37f[_0x5ae3('0x129')](_0x357d3e,!0x0))return _0x160e3d;if(!Ut(_0x160e3d,_0x3437d5)){_0x357d3e[_0x5ae3('0x129')](_0x39a37f)?_0x160e3d['removeMarkers']():_0x39a37f[_0x5ae3('0xbd')](_0x10f879)?_0x10f879=_0x39a37f[_0x5ae3('0x10e')]:_0x39a37f[_0x5ae3('0xbd')](_0x2f93fc)&&(_0x2f93fc=_0x39a37f['start']);continue;}_0x10f879=_0x10f879[_0x5ae3('0x3c')](_0x39a37f[_0x5ae3('0x24')])?_0x10f879:_0x39a37f[_0x5ae3('0x24')],_0x2f93fc=_0x2f93fc[_0x5ae3('0xb5')](_0x39a37f[_0x5ae3('0x10e')])?_0x2f93fc:_0x39a37f[_0x5ae3('0x10e')],_0x3437d5=Object[_0x5ae3('0xa3')]({},_0x160e3d[_0x5ae3('0x134')]),_0x13f424?_0x39a37f[_0x5ae3('0x24')]['isBefore'](_0x13f424[_0x5ae3('0x30')]()[_0x5ae3('0x24')])?(_0x13f424[_0x5ae3('0x139')](),_0x13f424=_0x160e3d):_0x160e3d[_0x5ae3('0x139')]():_0x13f424=_0x160e3d;}}}if(_0x13f424)return this['_setSuggestionRange'](_0x13f424,this[_0x5ae3('0x73')]['createRange'](_0x10f879,_0x2f93fc)),_0x13f424;{const _0x50a82c=_0x4a761c(),_0x542680=this['_model'][_0x5ae3('0xf0')](_0x10f879,_0x2f93fc),_0x25a7e9=_0x2117b4['id'],_0x261fdf=_0x3e1687?_0x5ae3('0xaa')+_0x3e1687:_0x5ae3('0xc5'),_0x17c9ce=this['_setSuggestionData']({'id':_0x50a82c,'type':_0x261fdf,'createdAt':new Date(),'authorId':_0x25a7e9,'attributes':_0x3437d5});return this[_0x5ae3('0xcc')](_0x261fdf,_0x50a82c,_0x25a7e9,_0x542680),_0x17c9ce;}}[_0x5ae3('0x11f')](_0x2a3e9e,_0x306181='multi',_0x257a06={}){const _0x562596=this[_0x5ae3('0x12a')][_0x5ae3('0xd2')][_0x5ae3('0xa2')](_0x5ae3('0x132'))['me'],_0x526fbf=_0x2a3e9e[_0x5ae3('0xf9')](_0x352696=>new _0x2cf0d0(_0x352696[_0x5ae3('0x24')],_0x352696[_0x5ae3('0x10e')])),_0x37180d=new Set();for(const {suggestion:_0x19d0d0,meta:_0x5e2798}of this[_0x5ae3('0xe5')](_0x526fbf,_0x5ae3('0x3f')))_0x5e2798[_0x5ae3('0x13a')]&&!_0x5e2798[_0x5ae3('0x6c')]&&_0x37180d[_0x5ae3('0xc2')](_0x19d0d0);for(const _0x3f2667 of _0x37180d)if(_0x3f2667['isMultiRange']){const _0x1b58a3=_0x3f2667[_0x5ae3('0x21')]();(!_0x3f2667['attributes']||!_0x3f2667[_0x5ae3('0x134')][_0x5ae3('0xd6')])&&(_0x1b58a3[_0x5ae3('0x27')](_0x4d8c75=>_0x526fbf[_0x5ae3('0x9c')](_0x32e3e9=>_0x32e3e9[_0x5ae3('0x129')](_0x4d8c75,!0x0)))&&_0x3f2667[_0x5ae3('0xba')]());if(_0x526fbf[_0x5ae3('0x27')](_0x24a17b=>_0x1b58a3[_0x5ae3('0x9c')](_0x225839=>_0x225839[_0x5ae3('0x129')](_0x24a17b,!0x0)))){const _0x2df48a=this[_0x5ae3('0x9e')][_0x5ae3('0x25')](_0x5ae3('0xc5'),_0x306181,'accept');return this[_0x5ae3('0x8d')](()=>_0x2df48a(_0x2a3e9e,null,_0x257a06)),null;}}else{const _0x2c5ca3=_0x3f2667['getFirstRange']();_0x526fbf[_0x5ae3('0x9c')](_0x2558b2=>_0x2558b2[_0x5ae3('0x129')](_0x2c5ca3,!0x0))&&_0x3f2667[_0x5ae3('0xba')]();if(_0x526fbf[_0x5ae3('0x27')](_0x2dc39a=>_0x2c5ca3['containsRange'](_0x2dc39a,!0x0))){const _0x17e0b0=this[_0x5ae3('0x9e')][_0x5ae3('0x25')](_0x5ae3('0xc5'),_0x306181,'accept');return this[_0x5ae3('0x8d')](()=>_0x17e0b0(_0x526fbf,null,_0x257a06)),null;}}const _0x35f644=this[_0x5ae3('0x9e')][_0x5ae3('0x25')]('deletion',_0x306181,_0x5ae3('0xc8'));let _0x3abad1=null;for(const _0xd91d2b of this[_0x5ae3('0xd0')]())if(_0xd91d2b[_0x5ae3('0x1d')]['id']==_0x562596['id']&&_0xd91d2b[_0x5ae3('0x110')]&&_0x5ae3('0xc5')==_0xd91d2b[_0x5ae3('0xc7')]&&_0xd91d2b[_0x5ae3('0x10f')]==_0x306181&&Ut(_0xd91d2b,_0x257a06)&&(_0x35f644(_0xd91d2b[_0x5ae3('0x21')](),_0x526fbf)||_0x35f644(_0x526fbf,_0xd91d2b[_0x5ae3('0x21')]()))){if(_0x3abad1){if(_0xd91d2b[_0x5ae3('0xe6')]&&_0xd91d2b[_0x5ae3('0xe6')][_0x5ae3('0xa8')])continue;for(const _0x4de22a of _0xd91d2b[_0x5ae3('0x21')]())_0x3abad1[_0x5ae3('0x50')](_0x4de22a)||_0x3abad1['addRange'](_0x4de22a);_0xd91d2b[_0x5ae3('0x139')]();}else{_0x3abad1=_0xd91d2b;for(const _0x9147d5 of _0x526fbf)_0xd91d2b[_0x5ae3('0x50')](_0x9147d5)||_0xd91d2b[_0x5ae3('0x60')](_0x9147d5);}}if(_0x3abad1)return _0x3abad1;_0x37180d[_0x5ae3('0xe0')]();for(const {suggestion:_0x3c7778,meta:_0x1ad704}of this[_0x5ae3('0xe5')](_0x526fbf,_0x5ae3('0xc5')))_0x1ad704['isOwn']&&(this[_0x5ae3('0x2e')]||!_0x1ad704['containsRangeInObject']&&!_0x1ad704[_0x5ae3('0xa9')])&&Ut(_0x3c7778,_0x257a06)&&_0x37180d['add'](_0x3c7778);for(const _0x1b4291 of _0x37180d){const _0xe4c3f4=_0x1b4291['getRanges']();if(!_0x257a06||!_0x257a06[_0x5ae3('0xd6')]){if(_0x526fbf[_0x5ae3('0x27')](_0x452977=>_0xe4c3f4[_0x5ae3('0x9c')](_0x46165e=>_0x46165e[_0x5ae3('0x129')](_0x452977,!0x0))))return _0x1b4291;}(!_0x1b4291[_0x5ae3('0x134')]||!_0x1b4291[_0x5ae3('0x134')]['skipNestingCheck'])&&(_0xe4c3f4[_0x5ae3('0x27')](_0x24eb9d=>_0x526fbf[_0x5ae3('0x9c')](_0x4cbacb=>_0x4cbacb['containsRange'](_0x24eb9d,!0x0)))&&_0x1b4291[_0x5ae3('0xba')]());}const _0x26a2bf=_0x4a761c(),_0x63ca5e=_0x562596['id'],_0x172d7c=_0x5ae3('0xaa')+_0x306181,_0x2fa3ed=this['_setSuggestionData']({'id':_0x26a2bf,'type':_0x172d7c,'createdAt':new Date(),'authorId':_0x63ca5e,'attributes':_0x257a06});for(const _0x1941d3 of _0x526fbf)_0x1941d3[_0x5ae3('0x72')](),_0x1941d3[_0x5ae3('0x115')]||_0x5ae3('0x88')==_0x1941d3[_0x5ae3('0xef')][_0x5ae3('0x16')]||this['_addSuggestionMarker'](_0x172d7c,_0x26a2bf,_0x63ca5e,_0x1941d3,_0xaf17ea[_0x5ae3('0x34')]());return _0x2fa3ed;}[_0x5ae3('0x6d')](_0x2ed934,_0x2ec427){const _0x40a6fd=_0x2ed934[_0x5ae3('0x84')]();this[_0x5ae3('0x73')]['change'](_0x28cdde=>{_0x28cdde[_0x5ae3('0xec')](_0x40a6fd,{'range':_0x2ec427});});}[_0x5ae3('0xb9')](_0x2fd2f3){const _0x34ea48=_0x2fd2f3['id'],_0x22e6f8=this[_0x5ae3('0x12a')][_0x5ae3('0x6e')][_0x5ae3('0xa2')](_0x5ae3('0x61'));this[_0x5ae3('0x54')]['hasCommentThread'](_0x34ea48)||this[_0x5ae3('0x54')][_0x5ae3('0x7')]({'channelId':_0x22e6f8,'threadId':_0x34ea48,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x14e38c=this[_0x5ae3('0x54')][_0x5ae3('0x43')](_0x34ea48);_0x14e38c['unbind']('isRemovable'),_0x14e38c[_0x5ae3('0x105')]=!0x1,_0x2fd2f3['commentThread']=_0x14e38c;}[_0x5ae3('0xd1')](_0x1e11d0,_0x457b62,_0x29e02f,_0xff47cb){if(_0x1e11d0[_0x5ae3('0xc7')]!=_0x457b62||_0x1e11d0[_0x5ae3('0x10f')]!=_0x29e02f||_0x1e11d0[_0x5ae3('0xa')]['id']!=_0xff47cb)throw this[_0x5ae3('0x12a')]['enableReadOnlyMode'](_0x5ae3('0x120')),new _0x425364(_0x5ae3('0x120'),this);}[_0x5ae3('0x12f')](_0x18ef34,_0x5a72d1){const _0x39211b=_0x18ef34['getFirstRange']();if(_0x5a72d1[_0x5ae3('0xe3')](_0x39211b))_0x18ef34['removeMarkers']();else{if(_0x39211b[_0x5ae3('0x129')](_0x5a72d1)){const _0x1d2425=this['_model'][_0x5ae3('0x69')](_0x5a72d1['start'][_0x5ae3('0x57')],'end');this[_0x5ae3('0x6d')](_0x18ef34,this[_0x5ae3('0x73')][_0x5ae3('0xf0')](_0x39211b[_0x5ae3('0x24')],_0x1d2425));const _0x31e21b=_0x4a761c(),_0x3fa52d=_0x18ef34[_0x5ae3('0xa')]['id'],_0x9af823=_0x18ef34[_0x5ae3('0xc7')]+':'+_0x18ef34[_0x5ae3('0x10f')];this[_0x5ae3('0x90')]({'id':_0x31e21b,'type':_0x9af823,'createdAt':new Date(),'authorId':_0x3fa52d,'data':_0x18ef34['data'],'attributes':_0x18ef34[_0x5ae3('0x134')]});const _0x2f8fc7=this[_0x5ae3('0x73')][_0x5ae3('0x69')](_0x5a72d1['end']['parent'],'after'),_0x4d037c=this['_model'][_0x5ae3('0xf0')](_0x2f8fc7,_0x39211b[_0x5ae3('0x10e')]);this[_0x5ae3('0xcc')](_0x9af823,_0x31e21b,_0x3fa52d,_0x4d037c);}else{if(_0x39211b['containsPosition'](_0x5a72d1[_0x5ae3('0x24')])){const _0x90fe32=this[_0x5ae3('0x73')]['createPositionAt'](_0x5a72d1[_0x5ae3('0x24')]['nodeBefore'],_0x5ae3('0x10e'));this['_setSuggestionRange'](_0x18ef34,this[_0x5ae3('0x73')][_0x5ae3('0xf0')](_0x39211b[_0x5ae3('0x24')],_0x90fe32));}else{const _0x3b3406=this['_model'][_0x5ae3('0x69')](_0x5a72d1['end'][_0x5ae3('0x52')],_0x5ae3('0xeb'));this[_0x5ae3('0x6d')](_0x18ef34,this[_0x5ae3('0x73')][_0x5ae3('0xf0')](_0x3b3406,_0x39211b[_0x5ae3('0x10e')]));}}}}[_0x5ae3('0xd5')](_0x6dd639){for(const {suggestion:_0x296133,meta:_0xe8e51b}of this[_0x5ae3('0xe5')](_0x6dd639,_0x5ae3('0x3f'))){if(!_0xe8e51b[_0x5ae3('0x13a')])continue;const _0x243db7=_0x296133[_0x5ae3('0x21')]();for(const _0x38d7f8 of _0x243db7)if(!_0x6dd639[_0x5ae3('0x4f')](_0x38d7f8)[_0x5ae3('0xa8')])return!0x0;}return!0x1;}[_0x5ae3('0x3b')](_0x58c8aa){const _0x4521ab=this[_0x5ae3('0x12a')][_0x5ae3('0xd2')]['get'](_0x5ae3('0x132'))[_0x5ae3('0x135')](_0x58c8aa);if(!_0x4521ab)throw new _0x425364(_0x5ae3('0x1f'),this);return _0x4521ab;}[_0x5ae3('0x119')](_0x2bc4bf){const _0x23e2d1=this[_0x5ae3('0x12a')]['plugins'][_0x5ae3('0xa2')](_0x5ae3('0x132')),_0x28f157=_0x4d43c3(_0x5ae3('0xa7')+_0x2bc4bf),_0x16d1db=_0x23e2d1[_0x5ae3('0x135')](_0x28f157);return _0x16d1db||_0x23e2d1['addUser']({'id':_0x28f157,'name':_0x2bc4bf});}[_0x5ae3('0x8b')](_0x900f98,_0x1bab93,_0x30baaf,_0x38102a,_0x294a0b){const _0x5b76f2=this[_0x5ae3('0x3b')](_0x38102a),_0x31a1ea=this[_0x5ae3('0x9e')][_0x5ae3('0x36')](_0x900f98,_0x1bab93,_0x30baaf,_0x5b76f2,_0x294a0b,_0x51e7bd=>this[_0x5ae3('0x29')](_0x30baaf,{'attributes':_0x51e7bd}));return this[_0x5ae3('0x74')](_0x31a1ea,_0x5ae3('0x41'),()=>{this[_0x5ae3('0x29')](_0x30baaf,{'state':_0x5ae3('0x6b')});},{'priority':_0x5ae3('0x10b')}),this[_0x5ae3('0x74')](_0x31a1ea,_0x5ae3('0xba'),()=>{this[_0x5ae3('0x29')](_0x30baaf,{'state':_0x5ae3('0x7e')});},{'priority':'high'}),this['_suggestions']['set'](_0x30baaf,_0x31a1ea),this[_0x5ae3('0xc9')]['set'](_0x31a1ea,_0x5ae3('0x126')),_0x31a1ea;}[_0x5ae3('0x53')](_0x21fe6c){const _0x1e97e1=_0x21fe6c[_0x5ae3('0x125')](':');return{'group':_0x1e97e1[0x0],'type':_0x1e97e1[0x1],'subType':_0x1e97e1['length']>=0x5?_0x1e97e1[0x2]:null,'id':_0x1e97e1[_0x5ae3('0xa8')]<0x5?_0x1e97e1[0x2]:_0x1e97e1[0x3],'authorId':_0x1e97e1['length']<0x5?_0x1e97e1[0x3]:_0x1e97e1[0x4],'markerCount':0x6==_0x1e97e1[_0x5ae3('0xa8')]?_0x1e97e1[0x5]:null};}[_0x5ae3('0x13b')](_0x3a7df7,_0x406eb8,_0x15ce91){const _0x1b3de7=_0x3a7df7[_0x5ae3('0x30')](),_0x24648f=_0x1b3de7[_0x5ae3('0x24')],_0x1ff145=_0x1b3de7[_0x5ae3('0x10e')];this[_0x5ae3('0x6d')](_0x3a7df7,this[_0x5ae3('0x73')][_0x5ae3('0xf0')](_0x24648f,_0x406eb8));const _0x3d69ad=_0x4a761c(),_0x99da6e=_0x3a7df7[_0x5ae3('0xa')]['id'],_0x4b583d=_0x3a7df7['type']+(_0x3a7df7[_0x5ae3('0x10f')]?':'+_0x3a7df7[_0x5ae3('0x10f')]:'');this[_0x5ae3('0x90')]({'id':_0x3d69ad,'type':_0x4b583d,'createdAt':new Date(),'authorId':_0x99da6e,'originalSuggestionId':_0x3a7df7['id'],'attributes':_0x3a7df7[_0x5ae3('0x134')],'data':_0x3a7df7[_0x5ae3('0x1')]}),_0x5ae3('0xfb')==_0x3a7df7[_0x5ae3('0xc7')]&&(_0x15ce91=this[_0x5ae3('0x73')]['createPositionBefore'](_0x15ce91[_0x5ae3('0x52')])),this[_0x5ae3('0xcc')](_0x4b583d,_0x3d69ad,_0x99da6e,this[_0x5ae3('0x73')]['createRange'](_0x15ce91,_0x1ff145));}['_findSuggestions'](_0x2c808f,_0x3bb15b=null){const _0x30fb9c=[],_0x38942e=this[_0x5ae3('0x12a')][_0x5ae3('0xd2')][_0x5ae3('0xa2')](_0x5ae3('0x132'))['me'];Array[_0x5ae3('0x2f')](_0x2c808f)||(_0x2c808f=[_0x2c808f]);for(const _0x572121 of this[_0x5ae3('0xd0')]()){if(!_0x572121['isInContent'])continue;if(_0x3bb15b&&_0x572121['type']!=_0x3bb15b)continue;let _0x2ff60d=!0x1;for(const _0xc2342e of _0x572121[_0x5ae3('0x21')]()){for(const _0x23c7e4 of _0x2c808f){const _0x4a7c87=_0x23c7e4[_0x5ae3('0x24')][_0x5ae3('0xe3')](_0xc2342e[_0x5ae3('0x10e')])||_0x23c7e4[_0x5ae3('0x10e')][_0x5ae3('0xe3')](_0xc2342e['start']);if(_0x4a7c87||_0x23c7e4[_0x5ae3('0x9b')](_0xc2342e)){const _0x56fc81=_0x23c7e4[_0x5ae3('0x129')](_0xc2342e)&&Bt(this[_0x5ae3('0x73')][_0x5ae3('0xaf')],_0xc2342e[_0x5ae3('0x24')],_0x23c7e4),_0x1242ab=_0xc2342e[_0x5ae3('0x129')](_0x23c7e4)&&Bt(this[_0x5ae3('0x73')][_0x5ae3('0xaf')],_0x23c7e4[_0x5ae3('0x24')],_0xc2342e);_0x30fb9c[_0x5ae3('0x8a')]({'suggestion':_0x572121,'meta':{'isOwn':_0x38942e==_0x572121[_0x5ae3('0x1d')],'isNextTo':_0x4a7c87,'isInsideObject':_0x56fc81,'containsRangeInObject':_0x1242ab}}),_0x2ff60d=!0x0;break;}}if(_0x2ff60d)break;}}return _0x30fb9c;}[_0x5ae3('0xcc')](_0x1e2005,_0x3bc009,_0x4c4727,_0x2c506f,_0x42a93a){this[_0x5ae3('0x73')]['change'](_0x14d6c0=>{let _0x1a53ce='suggestion:'+_0x1e2005+':'+_0x3bc009+':'+_0x4c4727;_0x42a93a&&(_0x1a53ce=_0x1a53ce+':'+_0x42a93a),_0x14d6c0[_0x5ae3('0x79')](_0x1a53ce,{'range':_0x2c506f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2985e5){const _0x816244=_0x2985e5[_0x5ae3('0x103')],_0x1452e3=_0x2985e5[_0x5ae3('0x1c')];_0x2985e5[_0x5ae3('0x103')]=null,null!=_0x816244&&(_0x816244[_0x5ae3('0x1c')]=null),_0x2985e5[_0x5ae3('0x1c')]=null,null!=_0x1452e3&&(_0x1452e3[_0x5ae3('0x103')]=null),_0x5ae3('0x2c')==this[_0x5ae3('0xc9')][_0x5ae3('0xa2')](_0x2985e5)&&(this[_0x5ae3('0xc9')][_0x5ae3('0x137')](_0x2985e5,_0x5ae3('0x78')),this[_0x5ae3('0x10a')](_0x5ae3('0x11d'),_0x2985e5,_0x816244,_0x1452e3));}['_setSuggestionData'](_0x49b76d){const _0x56c441=_0x49b76d['id'],_0x43e017=this[_0x5ae3('0xdf')](_0x49b76d);if(this[_0x5ae3('0x106')]&&this[_0x5ae3('0x106')][_0x5ae3('0x89')]){const _0x1620ce=this[_0x5ae3('0x12a')][_0x5ae3('0xd2')][_0x5ae3('0xa2')]('PendingActions'),_0x399fcf=_0x43e017[_0x5ae3('0x45')],_0xcde656=_0x43e017[_0x5ae3('0x10f')]?_0x43e017[_0x5ae3('0xc7')]+':'+_0x43e017[_0x5ae3('0x10f')]:_0x43e017[_0x5ae3('0xc7')],_0x3b6338=this[_0x5ae3('0x12a')][_0x5ae3('0x56')],_0x42493c=_0x1620ce[_0x5ae3('0xc2')](_0x2aa019(_0x3b6338,_0x5ae3('0xe7'))),_0x587fb9={'id':_0x56c441,'type':_0xcde656,'hasComments':_0x399fcf,'data':_0x49b76d['data']||null,'originalSuggestionId':_0x49b76d['originalSuggestionId']||null,'attributes':_0x43e017['attributes']};this[_0x5ae3('0x106')][_0x5ae3('0x89')](_0x587fb9)[_0x5ae3('0x4a')](_0x23b16c=>{_0x43e017[_0x5ae3('0xb4')]=!0x0,_0x1620ce[_0x5ae3('0x13')](_0x42493c),_0x23b16c&&_0x23b16c[_0x5ae3('0xfe')]&&(this[_0x5ae3('0x116')][_0x5ae3('0xa2')](_0x56c441)[_0x5ae3('0xfe')]=_0x23b16c[_0x5ae3('0xfe')]);})['catch'](_0x92cf11=>{throw _0x39bac1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model'][_0x5ae3('0xf1')]({'isUndoable':!0x1},()=>{_0x43e017['discard']();}),_0x43e017[_0x5ae3('0xdd')](),this[_0x5ae3('0x116')][_0x5ae3('0xe2')](_0x43e017['id']),this[_0x5ae3('0xc9')]['delete'](_0x43e017),_0x92cf11;});}return _0x43e017;}['_updateSuggestionData'](_0x44c19e,_0xb8e106){const _0x27ebea=this['editor'][_0x5ae3('0xd2')][_0x5ae3('0xa2')]('PendingActions'),_0x290a61=this[_0x5ae3('0x33')](_0x44c19e);if(this[_0x5ae3('0x106')]&&this[_0x5ae3('0x106')][_0x5ae3('0x76')]){if(_0x290a61[_0x5ae3('0xb4')]){const _0x3db442=_0x27ebea[_0x5ae3('0xc2')](_0x2aa019(this['editor'][_0x5ae3('0x56')],_0x5ae3('0xe7')));this['_adapter'][_0x5ae3('0x76')](_0x44c19e,_0xb8e106)['then'](()=>{_0x27ebea[_0x5ae3('0x13')](_0x3db442);});}else _0x290a61['on']('change:_saved',()=>{this[_0x5ae3('0x29')](_0x44c19e,_0xb8e106);});}}[_0x5ae3('0x95')](_0x4abfc8){if(!this[_0x5ae3('0x106')]||!this[_0x5ae3('0x106')][_0x5ae3('0x33')])throw new _0x425364(_0x5ae3('0xc4'),this);return this[_0x5ae3('0x106')][_0x5ae3('0x33')](_0x4abfc8);}[_0x5ae3('0x9')](_0x5c6453){const {id:_0x16e569,type:_0x224b2c,subType:_0xfa6622,authorId:_0x2f6c9e}=this['_splitMarkerName'](_0x5c6453),_0xc36954=this[_0x5ae3('0x116')]['get'](_0x16e569)||this[_0x5ae3('0x8b')](_0x224b2c,_0xfa6622,_0x16e569,_0x2f6c9e,{});switch(this[_0x5ae3('0xd1')](_0xc36954,_0x224b2c,_0xfa6622,_0x2f6c9e),this[_0x5ae3('0xc9')]['get'](_0xc36954)){case'notReady':this[_0x5ae3('0x95')](_0x16e569)[_0x5ae3('0x4a')](_0x49f752=>{let _0x422582=Promise['resolve']();_0x49f752[_0x5ae3('0x45')]&&(_0x422582=this['_commentsRepository'][_0x5ae3('0x4c')]({'channelId':this[_0x5ae3('0x12a')][_0x5ae3('0x6e')][_0x5ae3('0xa2')]('collaboration.channelId'),'threadId':_0x16e569})),_0x422582['then'](()=>{this[_0x5ae3('0xdf')](_0x49f752)['_saved']=!0x0;});}),this[_0x5ae3('0xc9')]['set'](_0xc36954,_0x5ae3('0xb'));break;case'removed':this[_0x5ae3('0x29')](_0x16e569,{'state':'open'});case'dataReady':this[_0x5ae3('0xc9')][_0x5ae3('0x137')](_0xc36954,_0x5ae3('0x2c')),this[_0x5ae3('0x10a')](_0x5ae3('0x4e'),_0xc36954);break;case _0x5ae3('0x2c'):this[_0x5ae3('0x10a')](_0x5ae3('0x7d'),_0xc36954);}return _0xc36954[_0x5ae3('0x2')](_0x5c6453),_0xc36954;}[_0x5ae3('0x9f')](_0x92fc16){const _0x1383c3=Array['from'](_0x92fc16)[_0x5ae3('0x11a')](_0x31d944=>!_0x31d944['isMultiRange']),_0xc308a4=this[_0x5ae3('0xd0')]({'skipNotAttached':!0x0})[_0x5ae3('0x11a')](_0x3b186b=>!_0x3b186b[_0x5ae3('0xfc')]),_0x34e8cc=_0xc308a4[_0x5ae3('0x11a')](_0x30dbda=>!_0x92fc16[_0x5ae3('0x70')](_0x30dbda)),_0x165ba7=new Map(_0xc308a4['map'](_0x305703=>[_0x305703,this[_0x5ae3('0x9e')][_0x5ae3('0x25')](_0x305703[_0x5ae3('0xc7')],_0x305703[_0x5ae3('0x10f')],_0x5ae3('0x6a'))])),_0x4913c2=new Map(_0xc308a4[_0x5ae3('0xf9')](_0xd6a418=>[_0xd6a418,_0xd6a418[_0x5ae3('0x30')]()])),_0x2dd81e=new Set(),_0x240114=new Set();for(let _0x3dcb9e=0x0;_0x3dcb9e<_0x1383c3[_0x5ae3('0xa8')];_0x3dcb9e++)_0x1d89d0(_0x1383c3[_0x3dcb9e],_0x1383c3,_0x3dcb9e+0x1);for(let _0xfeca01=0x0;_0xfeca01<_0x1383c3[_0x5ae3('0xa8')];_0xfeca01++)_0x1d89d0(_0x1383c3[_0xfeca01],_0x34e8cc,0x0);for(let _0x543bce=0x0;_0x543bce<_0x1383c3['length'];_0x543bce++){const _0x2a24e0=_0x1383c3[_0x543bce];!_0x240114[_0x5ae3('0x70')](_0x2a24e0)&&_0x2a24e0[_0x5ae3('0x103')]&&(_0x2a24e0['previous'][_0x5ae3('0x1c')]===_0x2a24e0&&(_0x2a24e0['previous'][_0x5ae3('0x1c')]=null),_0x2a24e0[_0x5ae3('0x103')]=null),!_0x2dd81e[_0x5ae3('0x70')](_0x2a24e0)&&_0x2a24e0[_0x5ae3('0x1c')]&&(_0x2a24e0[_0x5ae3('0x1c')][_0x5ae3('0x103')]===_0x2a24e0&&(_0x2a24e0[_0x5ae3('0x1c')][_0x5ae3('0x103')]=null),_0x2a24e0[_0x5ae3('0x1c')]=null);}function _0x1d89d0(_0x14acf6,_0x385b08,_0x14b1dc){for(let _0x101731=_0x14b1dc;_0x101731<_0x385b08['length'];_0x101731++){const _0x20d12a=_0x3a9771(_0x14acf6,_0x385b08[_0x101731]);_0x20d12a&&(_0x20d12a[0x0][_0x5ae3('0x1c')]=_0x20d12a[0x1],_0x20d12a[0x1]['previous']=_0x20d12a[0x0],_0x2dd81e['add'](_0x20d12a[0x0]),_0x240114[_0x5ae3('0xc2')](_0x20d12a[0x1]));}}function _0x3a9771(_0x417d56,_0x2afc54){if(_0x417d56[_0x5ae3('0x1d')]['id']!==_0x2afc54[_0x5ae3('0x1d')]['id'])return null;const _0x3f29e7=_0x165ba7['get'](_0x417d56)(_0x417d56,_0x2afc54,_0x4913c2[_0x5ae3('0xa2')](_0x417d56),_0x4913c2[_0x5ae3('0xa2')](_0x2afc54));if(!_0x3f29e7)return null;return _0x165ba7[_0x5ae3('0xa2')](_0x2afc54)(_0x417d56,_0x2afc54,_0x4913c2[_0x5ae3('0xa2')](_0x417d56),_0x4913c2['get'](_0x2afc54))?_0x3f29e7[0x1]['commentThread']&&_0x3f29e7[0x1][_0x5ae3('0xe6')][_0x5ae3('0xa8')]?null:_0x3f29e7:null;}}[_0x5ae3('0xda')](_0x58e91c){const _0x426c40=Array['from'](_0x58e91c),_0x2cf1b7=this[_0x5ae3('0xd0')]({'skipNotAttached':!0x0}),_0x1da209=_0x2cf1b7[_0x5ae3('0x11a')](_0x295071=>!_0x58e91c['has'](_0x295071)),_0x4b69e4=new Map(_0x426c40['map'](_0x2d6f1f=>[_0x2d6f1f,this['_suggestionFactory']['getSuggestionCallback'](_0x2d6f1f[_0x5ae3('0xc7')],_0x2d6f1f[_0x5ae3('0x10f')],_0x5ae3('0xc8'))])),_0x227290=new Map(_0x2cf1b7[_0x5ae3('0xf9')](_0x238bd1=>[_0x238bd1,_0x238bd1['getRanges']()]));for(let _0xa8a72e=0x0;_0xa8a72e<_0x426c40['length'];_0xa8a72e++){if(_0x305cac(this,_0x426c40[_0xa8a72e],_0x426c40,_0xa8a72e+0x1))return!0x0;}for(let _0x4f652d=0x0;_0x4f652d<_0x426c40[_0x5ae3('0xa8')];_0x4f652d++){if(_0x305cac(this,_0x426c40[_0x4f652d],_0x1da209,0x0))return!0x0;}return!0x1;function _0x305cac(_0xa054d4,_0x2daac6,_0x42e493,_0x4e0eb4){for(let _0x247f16=_0x4e0eb4;_0x247f16<_0x42e493['length'];_0x247f16++){const _0x186e69=_0x42e493[_0x247f16];if(_0x186e69[_0x5ae3('0xc7')]!==_0x2daac6[_0x5ae3('0xc7')]||_0x186e69[_0x5ae3('0x1d')]['id']!==_0x2daac6['author']['id']||_0x186e69['subType']!==_0x2daac6[_0x5ae3('0x10f')])continue;if(!xt(_0x2daac6,_0x186e69))continue;const _0xd7156b=_0x4b69e4['get'](_0x2daac6),_0x5091e=_0x227290[_0x5ae3('0xa2')](_0x2daac6),_0x4b5201=_0x227290[_0x5ae3('0xa2')](_0x186e69),_0x35f42f=_0x2daac6[_0x5ae3('0xe6')]&&_0x2daac6[_0x5ae3('0xe6')][_0x5ae3('0xa8')],_0x525aef=_0x186e69[_0x5ae3('0xe6')]&&_0x186e69[_0x5ae3('0xe6')][_0x5ae3('0xa8')];if(!_0x35f42f&&_0xd7156b(_0x4b5201,_0x5091e))return _0xa054d4[_0x5ae3('0x124')](_0x186e69,_0x2daac6),_0x227290[_0x5ae3('0xe2')](_0x2daac6),!0x0;if(!_0x525aef&&_0xd7156b(_0x5091e,_0x4b5201))return _0xa054d4[_0x5ae3('0x124')](_0x2daac6,_0x186e69),_0x227290[_0x5ae3('0xe2')](_0x186e69),!0x0;}return!0x1;}}[_0x5ae3('0x124')](_0x22f7e9,_0x17b75b){if(_0x22f7e9[_0x5ae3('0xfc')])for(const _0x2fc30f of _0x17b75b['getRanges']())_0x22f7e9[_0x5ae3('0x60')](_0x2fc30f);else{const _0x4ddfd4=_0x17b75b[_0x5ae3('0x30')]()[_0x5ae3('0x10e')];this[_0x5ae3('0x6d')](_0x22f7e9,this[_0x5ae3('0x73')][_0x5ae3('0xf0')](_0x22f7e9['getFirstRange']()['start'],_0x4ddfd4));}_0x17b75b['removeMarkers']();}}class Dt{constructor(_0x459a43){this[_0x5ae3('0x11')]=_0x459a43,this[_0x5ae3('0x73')]=_0x459a43[_0x5ae3('0xe9')],this[_0x5ae3('0x4')]=new Map(),this[_0x5ae3('0x68')]=new Map(),this['_registerDefaultCallbacks']();}[_0x5ae3('0x36')](_0x1eb93b,_0x4ef9c6,_0x53fa11,_0x17e6db,_0x572375,_0x3404ac){return new _0xaf17ea(this['_model'],{'type':_0x1eb93b,'subType':_0x4ef9c6,'id':_0x53fa11,'author':_0x17e6db,'creator':_0x17e6db,'attributes':_0x572375,'onAttributesChange':_0x3404ac,'onAccept':(..._0x46379e)=>this['getSuggestionCallback'](_0x1eb93b,_0x4ef9c6,_0x5ae3('0x41'))(..._0x46379e),'onDiscard':(..._0x5d6802)=>this[_0x5ae3('0x25')](_0x1eb93b,_0x4ef9c6,'discard')(..._0x5d6802)});}[_0x5ae3('0x67')](_0x3f329a,_0x212579,_0x56e2b9,_0x22838d){const _0x2a9078=_0x3f329a+':'+_0x212579+':'+_0x56e2b9;this['_customCallbacks']['set'](_0x2a9078,_0x22838d);}[_0x5ae3('0x25')](_0x37be83,_0x5710fe,_0x3cadc3){const _0x489be4=_0x37be83+':'+_0x5710fe+':'+_0x3cadc3;return this[_0x5ae3('0x4')][_0x5ae3('0xa2')](_0x489be4)||this[_0x5ae3('0x68')]['get'](_0x37be83+':'+_0x3cadc3);}[_0x5ae3('0x31')](){const _0x5aa477=()=>!0x1,_0x17f3e1=_0x33fe2e=>{_0x33fe2e[_0x5ae3('0x108')]((_0x31bf74,_0x4673f4)=>_0x31bf74[_0x5ae3('0x24')][_0x5ae3('0x3c')](_0x4673f4[_0x5ae3('0x24')])?0x1:-0x1),this[_0x5ae3('0x73')][_0x5ae3('0xf')](_0x348487=>{for(const _0x716a5a of _0x33fe2e){let _0x28f292;_0x28f292=_0x716a5a[_0x5ae3('0x10e')][_0x5ae3('0x81')]&&_0x716a5a['end'][_0x5ae3('0x52')]==_0x716a5a[_0x5ae3('0x24')][_0x5ae3('0xbc')]?_0x348487[_0x5ae3('0xdc')](_0x716a5a[_0x5ae3('0x24')]['nodeAfter'],'on'):_0x348487['createSelection'](_0x716a5a),this[_0x5ae3('0x73')][_0x5ae3('0x12')](_0x28f292,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3ab29b=(_0x2a1ef8,_0x91c557)=>{this['_model'][_0x5ae3('0xf')](_0x5270cf=>{const {commandName:_0x26a07c,commandParams:_0x501f53=[]}=_0x91c557,_0x54ca93=_0x2a1ef8[_0x5ae3('0xf9')](_0xcf6d46=>(_t(_0xcf6d46)&&(_0xcf6d46=this[_0x5ae3('0x73')][_0x5ae3('0xf0')](_0xcf6d46[_0x5ae3('0x10e')])),_0xcf6d46))['filter'](_0x3342a6=>_0x5ae3('0x88')!==_0x3342a6[_0x5ae3('0xef')][_0x5ae3('0x16')]);if(_0x54ca93[_0x5ae3('0xa8')]<0x1)return;const _0x2607f0=Array['from'](this['_model']['document'][_0x5ae3('0x40')]['getRanges']())[_0x5ae3('0xf9')](_0x37d032=>_0x2cf0d0[_0x5ae3('0xea')](_0x37d032));_0x5270cf[_0x5ae3('0xa5')](_0x54ca93);for(const _0x4541ca of this[_0x5ae3('0x11')][_0x5ae3('0xed')]['commands']())_0x4541ca[_0x5ae3('0xb2')]();_0x501f53[_0x5ae3('0x8a')]({'forceDefaultExecution':!0x0}),this[_0x5ae3('0x11')]['execute'](_0x26a07c,..._0x501f53);const _0xa4d580=_0x2607f0[_0x5ae3('0x11a')](_0x19ba82=>'$graveyard'!=_0x19ba82[_0x5ae3('0xef')][_0x5ae3('0x16')]);_0xa4d580[_0x5ae3('0xa8')]>0x0&&_0x5270cf[_0x5ae3('0xa5')](_0xa4d580);for(const _0x5c1849 of _0x2607f0)_0x5c1849[_0x5ae3('0x72')]();});},_0x290dc1=(_0x10d783,_0x32dc4a)=>0x1==_0x10d783['length']&&0x1==_0x32dc4a[_0x5ae3('0xa8')]&&_0x10d783[0x0][_0x5ae3('0x10e')][_0x5ae3('0xe3')](_0x32dc4a[0x0][_0x5ae3('0x24')]),_0x2a8cc4=(_0x64035c,_0x104ef6,_0x5d55aa,_0x14db3e)=>jt(_0x64035c,_0x104ef6,_0x5d55aa,_0x14db3e,this[_0x5ae3('0x73')])?[_0x64035c,_0x104ef6]:jt(_0x104ef6,_0x64035c,_0x14db3e,_0x5d55aa,this['_model'])?[_0x104ef6,_0x64035c]:null;this[_0x5ae3('0x68')][_0x5ae3('0x137')](_0x5ae3('0x113'),_0x5aa477),this[_0x5ae3('0x68')][_0x5ae3('0x137')](_0x5ae3('0x58'),_0x17f3e1),this['_defaultCallbacks']['set']('insertion:join',_0x290dc1),this[_0x5ae3('0x68')][_0x5ae3('0x137')](_0x5ae3('0x64'),_0x2a8cc4),this[_0x5ae3('0x68')]['set'](_0x5ae3('0x11c'),_0x17f3e1),this['_defaultCallbacks'][_0x5ae3('0x137')](_0x5ae3('0xfa'),_0x5aa477),this[_0x5ae3('0x68')][_0x5ae3('0x137')]('deletion:join',_0x290dc1),this[_0x5ae3('0x68')][_0x5ae3('0x137')](_0x5ae3('0xd3'),_0x2a8cc4),this[_0x5ae3('0x68')][_0x5ae3('0x137')]('formatInline:accept',_0x3ab29b),this['_defaultCallbacks']['set'](_0x5ae3('0x38'),_0x5aa477),this[_0x5ae3('0x68')]['set'](_0x5ae3('0x2d'),_0x290dc1),this[_0x5ae3('0x68')][_0x5ae3('0x137')](_0x5ae3('0x17'),_0x5aa477),this[_0x5ae3('0x68')][_0x5ae3('0x137')](_0x5ae3('0x13c'),_0x3ab29b),this[_0x5ae3('0x68')][_0x5ae3('0x137')](_0x5ae3('0x123'),_0x5aa477),this[_0x5ae3('0x68')]['set'](_0x5ae3('0x77'),_0x290dc1),this['_defaultCallbacks'][_0x5ae3('0x137')](_0x5ae3('0x117'),_0x5aa477);}}function Bt(_0x1df446,_0x94e584,_0x3176ab){for(const _0x6145a2 of _0x94e584[_0x5ae3('0x52')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x6145a2[_0x5ae3('0xef')]==_0x6145a2)return!0x1;if(!_0x3176ab['containsItem'](_0x6145a2))return!0x1;if(_0x1df446[_0x5ae3('0x15')](_0x6145a2)||_0x1df446[_0x5ae3('0x37')](_0x6145a2))return!0x0;}return!0x1;}function _t(_0x29946f){return _0x29946f[_0x5ae3('0x10e')][_0x5ae3('0x52')]==_0x29946f[_0x5ae3('0x24')]['nodeAfter']&&_0x29946f[_0x5ae3('0x10e')][_0x5ae3('0x22')];}function Mt(_0x1d4730,_0x3fd33f,_0x163321,_0x56be8c){const _0x47b835=_0x4f052b=>!_0x4f052b['item']['is']('$textProxy')&&!_0x56be8c[_0x5ae3('0x15')](_0x4f052b['item']),_0x583730=_0x1d4730[_0x5ae3('0x24')][_0x5ae3('0xe')](_0x47b835),_0x26ffa3=_0x1d4730['end'][_0x5ae3('0xe')](_0x47b835,{'direction':_0x5ae3('0xfd')});return(!_0x1d4730['start'][_0x5ae3('0xe3')](_0x583730)||!_0x1d4730['end'][_0x5ae3('0xe3')](_0x26ffa3))&&(_0x583730[_0x5ae3('0x3c')](_0x26ffa3)?_0x163321['updateMarker'](_0x3fd33f,{'range':_0x163321['createRange'](_0x583730,_0x26ffa3)}):_0x163321['removeMarker'](_0x3fd33f),!0x0);}function $t(_0x175587){return _0x4d43c3(_0x175587);}function Nt(_0x59097f){const _0x4b8448=_0x59097f[_0x5ae3('0x24')][_0x5ae3('0xbc')];return _0x4b8448&&_0x4b8448['is'](_0x5ae3('0x2b'));}function Rt(_0x83fc7e,_0x28af3e){const _0x5012cf=_0x28af3e[_0x5ae3('0xaf')][_0x5ae3('0x15')](_0x83fc7e)||_0x28af3e[_0x5ae3('0xaf')][_0x5ae3('0x4d')](_0x83fc7e);return _0x28af3e['createRange'](_0x28af3e['createPositionAt'](_0x83fc7e,_0x5ae3('0xf4')),_0x5012cf?_0x28af3e['createPositionAfter'](_0x83fc7e):_0x28af3e[_0x5ae3('0x69')](_0x83fc7e,'end'));}function jt(_0x4cfe1e,_0x104040,_0x4ff5e4,_0x366c67,_0x130e35){if(!xt(_0x4cfe1e,_0x104040))return!0x1;if(_0x4ff5e4['end'][_0x5ae3('0xe3')](_0x366c67[_0x5ae3('0x24')]))return!0x0;if(_0x4cfe1e['type']!=_0x104040['type'])return!0x1;if(!_0x4ff5e4['end'][_0x5ae3('0xae')](_0x366c67[_0x5ae3('0x24')]))return!0x1;const _0x1bd277=_0x130e35[_0x5ae3('0xf0')](_0x4ff5e4['end'],_0x366c67[_0x5ae3('0x24')])[_0x5ae3('0xf6')]();for(const _0x3512e9 of _0x1bd277)if([_0x5ae3('0x85'),'elementEnd']['includes'](_0x3512e9[_0x5ae3('0xc7')])&&_0x130e35[_0x5ae3('0xaf')]['isLimit'](_0x3512e9[_0x5ae3('0x97')]))return!0x1;return!0x0;}function xt(_0x4fb70e,_0x30348f){return!(!_0x4fb70e[_0x5ae3('0x109')]||!_0x30348f[_0x5ae3('0x109')])&&_0x4938dc(_0x4fb70e[_0x5ae3('0x134')],_0x30348f['attributes']);}function Ut(_0x1242f9,_0xe68c82){const _0x1f1f76=Ot(_0x1242f9[_0x5ae3('0x134')]),_0x15a95e=Ot(_0xe68c82);if(!_0x1242f9[_0x5ae3('0x109')])return!0x1;for(const _0x38305b of Object[_0x5ae3('0x6')](_0x15a95e))if(!_0x4938dc(_0x1f1f76[_0x38305b],_0x15a95e[_0x38305b]))return!0x1;return!0x0;}function Ot(_0x2de6c9){const _0x3d6068=Object[_0x5ae3('0xa3')]({},_0x2de6c9);return delete _0x3d6068[_0x5ae3('0xd6')],delete _0x3d6068['tablePasteChainId'],_0x3d6068;}
|
|
23
|
+
const _0x2983=['data','isExternal','head','createPositionAt','never','_joinSuggestions','isOwn','sort','containsRangeInObject','createdAt','rootName','pluginName','size','addSuggestionData','change:data','catch','oldRange','deletion:','consume','requires','trackChanges.trackFormatChanges','accepted','_commentsRepository','dataDowncast','writer','formatInline:chain','$marker','ready','isIntersectingWithRange','insertion:discard','editingDowncast','_setSuggestionData','push','always','editing','fetchCommentThread','addSuggestion','suggestion:','_mergeNestedSuggestions','_updateSuggestionData','getCommentThread','markerReady','getSuggestions','move','_isDataLoaded','update:suggestion','hasComments','_getExternalAuthor','_cutOutSuggestionMarker','highest','plugins','delete','removed','length','track-changes-adapter-missing-getsuggestion','isUndo','stopListening','formatBlock:discard','markerToHighlight','updateSuggestion','set','containsRange','ck-suggestion-marker-formatBlock','_saved','accept','commentThread','track-changes-user-not-found','fromRange','_joinWithAdjacentSuggestions','isBlock','has','suggestionLoaded','value','insertion','differ','ck-suggestion-marker-','isEqual','_onDiscard','CommentsRepository','createPositionAfter','createPositionBefore','formatInline:join','getNearestSelectionRange','suggestion-type','deletion:join','change:_saved','options','suggestion','createRangeIn','consumable','addMarker:suggestion:formatBlock','isNextTo','isCollapsed','dataReady','get','mapper','type','forward','_getAuthorFromId','then','discardSuggestion','for','formatBlock:accept','open','from','assign','hasSuggestion','bindElementToMarker','author','forceDefaultExecution','addMarkerName','root','insert','markMultiRangeDeletion','getMarkers','markInsertion','deletion:accept','_defaultCallbacks','targetPosition','some','setSelection','nodeAfter','schema','addMarker','isRemovable','getLastMatchingPosition','listenTo','acceptAllSuggestions','values','getIntersection','elementStart','newRange','track-changes-adapter-already-set','getShiftedBy','locale','formatInline:accept','markInlineFormat','subType','getSuggestionCallback','suggestionChanged','_removeSuggestion','buildSuggestion','isObject','addUser','includes','@external','isInContent','collaboration.channelId','removeMarkers','track-changes-suggestion-not-found','editor','getChanges','removeComment','_suggestionState','filter','stop','previous','isAtStart','batch','external:','PENDING_ACTION_SUGGESTION','getCustomProperty','formatGroupId','toViewElement','keys','$graveyard','lowest','element','getFirstRange','_handleNewSuggestionMarker','name','addComment','removeMarker:suggestion:formatBlock','_trackFormatChanges','next','authoredAt','originalSuggestionId','attributes','containsItem','markerNameToElements','widget','clone','moveTargetPosition','default','resolve','_setSuggestionRange','trackChanges','isInsideObject','isLocal','_isForcedDefaultExecutionBlock','model','track-changes-suggestion-data-mismatch','execute','creator','getFirstMarker','_addSuggestionMarker','discard','_getSuggestionData','addRange','backward','upcast','add','remove','deletion','fire','getRanges','_rangeIsInLocalUserInsertion','multipleBlocks','item','formatBlock:join','getSuggestion','getDifference','detach','authorName','activeMarkers','end','change:activeMarkers','data-suggestion','_suggestionFactory','formatBlock','_customCallbacks','isAfter','multi','suggestionUnloaded','map','_model','updateMarker','parent','_enabledCommands','ck-suggestion-marker--active','getUser','_editor','split','before','markers','documentSelection','high','formatInline','splice','isMultiRange','conversion','getMultiRangeId','trackChangesCommand','_refreshSuggestionsChain','formatInline:discard','getAttribute','_breakSuggestionMarker','addHighlight','init','unbind','isBefore','TrackChangesEditing','markMultiRangeInsertion','rejected','insertion:','showSuggestionHighlights','_adapter','containsPosition','discardAllSuggestions','deletion:chain','low','createRange','getRange','splitPosition','hasCommentThread','registerPostFixer','_createSuggestion','isLimit','$textProxy','enableCommand','markerName','enableReadOnlyMode','unbindElementFromMarkerName','PendingActions','_addThreadToSuggestion','formatBlock:chain','Users','document','start','addClass','ck-suggestion-marker','skipNestingCheck','substr','refresh','insertContent','createSelection','_suggestions','notReady','howMany','nodeBefore','getAllAdjacentSuggestions','acceptSuggestion','join','removeAttribute','_splitMarkerName','_registerDefaultCallbacks','acceptSelectedSuggestions','marker-count','commandName','containerElement','_findSuggestions','markDeletion','range','change','insertion:join','trackChanges.mergeNestedSuggestions','chain','dataToMarker','config','createElement','_checkSuggestionCorrectness','position','every','commands','getChangedMarkers','addMarker:suggestion'];(function(_0x32f40c,_0x2983aa){const _0x3f7800=function(_0x4840ee){while(--_0x4840ee){_0x32f40c['push'](_0x32f40c['shift']());}};_0x3f7800(++_0x2983aa);}(_0x2983,0x13a));const _0x3f78=function(_0x32f40c,_0x2983aa){_0x32f40c=_0x32f40c-0x0;let _0x3f7800=_0x2983[_0x32f40c];return _0x3f7800;};import{Plugin as _0x5d2f4f,PendingActions as _0x2320a5}from'ckeditor5/src/core';import{LiveRange as _0x4b8f82}from'ckeditor5/src/engine';import{CKEditorError as _0x400b29,uid as _0x418993,priorities as _0x372a5a,logWarning as _0x46fa9c}from'ckeditor5/src/utils';import{toWidget as _0x3228a9}from'ckeditor5/src/widget';import{Users as _0x11ba72,hashObject as _0x3abb0f}from'ckeditor5-collaboration/src/collaboration-core';import _0x22766f from'./commands/trackchangescommand';import _0x14c77f from'./commands/acceptsuggestioncommand';import _0x522ba1 from'./commands/discardsuggestioncommand';import _0x5f4998 from'./commands/executeonallsuggestionscommand';import _0x1686f1 from'./commands/executeonselectedsuggestionscommand';import _0x49aee1 from'./suggestion';import _0x52f1c8 from'./suggestiondescriptionfactory';import _0x24ae3c from'./integrations/alignment';import _0x2625f9 from'./integrations/basicstyles';import _0x2b6359 from'./integrations/blockquote';import _0x598ab2 from'./integrations/ckbox';import _0x3e7f4c from'./integrations/codeblock';import _0x1494f2 from'./integrations/comments';import _0x421aaf from'./integrations/deletecommand';import _0xf0e564 from'./integrations/documentlist';import _0x3d35c6 from'./integrations/entercommand';import _0x3532db from'./integrations/findandreplace';import _0x4d2acc from'./integrations/font';import _0x3e7b86 from'./integrations/formatpainter';import _0x3a9734 from'./integrations/heading';import _0x103cee from'./integrations/highlight';import _0x40a8bb from'./integrations/horizontalline';import _0x515eac from'./integrations/htmlembed';import _0x828745 from'./integrations/image';import _0x147183 from'./integrations/imagereplace';import _0x5a0945 from'./integrations/importword';import _0x41316e from'./integrations/indent';import _0x3ab921 from'./integrations/inputcommand';import _0x9242aa from'./integrations/link';import _0x1f3be7 from'./integrations/list';import _0xd287f2 from'./integrations/listproperties';import _0x1b9a09 from'./integrations/mediaembed';import _0x5478b3 from'./integrations/mention';import _0x49a53c from'./integrations/pagebreak';import _0x4048f4 from'./integrations/paragraph';import _0x5432b5 from'./integrations/removeformat';import _0x9e98f3 from'./integrations/restrictededitingmode';import _0x29c26f from'./integrations/shiftentercommand';import _0x3ee5d9 from'./integrations/standardeditingmode';import _0xb84f99 from'./integrations/style';import _0x4c22a3 from'./integrations/table';import _0x2c5488 from'./integrations/tablemergesplit';import _0x53b72d from'./integrations/tableheadings';import _0x48a740 from'./integrations/tableclipboard';import _0x1274a3 from'./integrations/tablecolumnresize';import _0x5756fb from'./integrations/template';import _0x37faca from'./integrations/tableofcontents';import _0x4a416c from'./integrations/title';import _0x56f780 from'./integrations/undo';import{getTranslation as _0x304cd0}from'./utils/common-translations';import _0x4d9eda from'./integrations/tablecaption';import _0x548624 from'./integrations/documentlistproperties';import _0x4fcfbc from'./integrations/tableproperties';import{isEqual as _0x4b2408}from'lodash-es';export default class p extends _0x5d2f4f{static get[_0x3f78('0x15')](){return[_0x3f78('0x50'),_0x11ba72,_0x2320a5,_0x24ae3c,_0x2625f9,_0x2b6359,_0x598ab2,_0x3e7f4c,_0x1494f2,_0x421aaf,_0xf0e564,_0x548624,_0x3d35c6,_0x3532db,_0x4d2acc,_0x3e7b86,_0x3a9734,_0x103cee,_0x40a8bb,_0x515eac,_0x828745,_0x147183,_0x5a0945,_0x41316e,_0x3ab921,_0x9242aa,_0x1f3be7,_0xd287f2,_0x1b9a09,_0x5478b3,_0x49a53c,_0x4048f4,_0x5432b5,_0x9e98f3,_0x29c26f,_0x3ee5d9,_0xb84f99,_0x4c22a3,_0x2c5488,_0x53b72d,_0x4d9eda,_0x48a740,_0x1274a3,_0x37faca,_0x4fcfbc,_0x5756fb,_0x4a416c,_0x56f780];}static get[_0x3f78('0xd')](){return _0x3f78('0xfd');}constructor(_0x76f12b){function _0xec8596(_0x28c917){return _0x28c917[_0x3f78('0xe2')](_0x4c4647=>String['fromCharCode'](_0x4c4647))[_0x3f78('0x126')]('');}super(_0x76f12b),this[_0x3f78('0x3e')](_0x3f78('0xd8'),[]),this['on'](_0x3f78('0xda'),(_0x1026aa,_0x476d56,_0x2a3a02,_0x3b6e37)=>{this[_0x3f78('0xe3')][_0x3f78('0x131')](()=>{for(const _0x43c157 of[..._0x3b6e37,..._0x2a3a02])this[_0x3f78('0xe3')]['markers']['has'](_0x43c157)&&_0x76f12b[_0x3f78('0x24')]['reconvertMarker'](_0x43c157);});}),this['_descriptionFactory']=new _0x52f1c8(this[_0x3f78('0x98')][_0x3f78('0xc0')][_0x3f78('0x7c')],this[_0x3f78('0x98')][_0x3f78('0x88')]),this[_0x3f78('0x102')]=null,this[_0x3f78('0xdc')]=new Dt(this[_0x3f78('0x98')]),this[_0x3f78('0x120')]=new Map(),this[_0x3f78('0x18')]=_0x76f12b[_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x50')),this[_0x3f78('0xe6')]=new Set(),this['_model']=this[_0x3f78('0x98')][_0x3f78('0xc0')],this[_0x3f78('0x9b')]=new WeakMap(),this[_0x3f78('0xbf')]=!0x1,_0x76f12b[_0x3f78('0x136')]['define'](_0x3f78('0x16'),_0x3f78('0xb9')),this[_0x3f78('0xaf')]=_0x76f12b[_0x3f78('0x136')][_0x3f78('0x60')](_0x3f78('0x16')),_0x76f12b[_0x3f78('0x136')]['define'](_0x3f78('0x133'),!0x0),this[_0x3f78('0x28')]=_0x76f12b['config'][_0x3f78('0x60')](_0x3f78('0x133')),this[_0x3f78('0xf4')]=new _0x22766f(_0x76f12b,this['_enabledCommands']),this[_0xec8596([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xec8596([0x34,0x30,0x34,0x36,0x31,0x36,0x36,0x32]);}[_0x3f78('0xfa')](){const _0x48add5=this[_0x3f78('0x98')];_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')](_0x3f78('0x20'))['markerToHighlight']({'model':_0x3f78('0x59'),'view':_0x1998e0=>{const {id:_0x54f821,type:_0x2009c0}=this[_0x3f78('0x128')](_0x1998e0[_0x3f78('0x110')]),_0x2f929a=[_0x3f78('0x11a'),_0x3f78('0x4d')+_0x2009c0];let _0x26093a=0xbb8;return this[_0x3f78('0xd8')]['includes'](_0x1998e0['markerName'])&&(_0x2f929a[_0x3f78('0x22')](_0x3f78('0xe7')),_0x26093a=0xbc2),_0x3f78('0xcd')==_0x2009c0&&(_0x26093a+=0x5),{'classes':_0x2f929a,'attributes':{'data-suggestion':_0x54f821},'priority':_0x26093a};}}),_0x48add5['conversion'][_0x3f78('0x67')](_0x3f78('0x19'))['add'](_0x8a9f9f=>{_0x8a9f9f['on'](_0x3f78('0x1'),(_0x3be6c1,_0x2c1463,_0x5cd680)=>{if(!_0x5cd680['options'][_0x3f78('0x101')])return;const _0x195611=_0x2c1463['item'];if(!_0x195611)return;const _0xdab9ed=_0x5cd680[_0x3f78('0x61')][_0x3f78('0xa5')](_0x195611);_0x48add5[_0x3f78('0xc0')][_0x3f78('0x7c')][_0x3f78('0x90')](_0x195611)&&_0xdab9ed&&!_0xdab9ed[_0x3f78('0xa3')](_0x3f78('0xb6'))&&_0xdab9ed['is'](_0x3f78('0x12d'))&&_0x3228a9(_0xdab9ed,_0x5cd680['writer']);},{'priority':_0x3f78('0xee')});}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')]('dataDowncast')[_0x3f78('0x3c')]({'model':_0x3f78('0x59'),'view':(_0x152f69,_0xbf5be8)=>{if(!_0xbf5be8[_0x3f78('0x58')][_0x3f78('0x101')])return null;const {type:_0x53a5d7}=this[_0x3f78('0x128')](_0x152f69['markerName']);return{'classes':[_0x3f78('0x11a'),'ck-suggestion-marker-'+_0x53a5d7],'priority':0xbb8};}});const _0x151bc8=({showActiveMarkers:_0x442768=!0x0}={})=>(_0x1871b2,_0x1f49fb,_0x368a8f)=>{if(!_0x1f49fb[_0x3f78('0xd2')])return;if(_0x1f49fb['item']['is']('selection'))return void _0x368a8f['consumable']['consume'](_0x1f49fb['item'],_0x1871b2[_0x3f78('0xac')]);const _0x1a6d20=_0x368a8f[_0x3f78('0x61')][_0x3f78('0xa5')](_0x1f49fb[_0x3f78('0xd2')]);if(!(_0x1f49fb[_0x3f78('0xd2')]['is']('element')&&_0x48add5[_0x3f78('0xc0')][_0x3f78('0x7c')]['isBlock'](_0x1f49fb['item'])&&!_0x1a6d20[_0x3f78('0xa3')](_0x3f78('0xf9'))))return;const {id:_0x3aff99}=this[_0x3f78('0x128')](_0x1f49fb['markerName']);_0x368a8f['writer'][_0x3f78('0x119')](['ck-suggestion-marker',_0x3f78('0x40')],_0x1a6d20),_0x368a8f[_0x3f78('0x1a')]['setAttribute'](_0x3f78('0xdb'),_0x3aff99,_0x1a6d20),_0x368a8f[_0x3f78('0x61')][_0x3f78('0x6d')](_0x1a6d20,_0x1f49fb[_0x3f78('0x110')]),_0x442768&&(this[_0x3f78('0xd8')][_0x3f78('0x92')](_0x1f49fb['markerName'])?_0x368a8f[_0x3f78('0x1a')][_0x3f78('0x119')](_0x3f78('0xe7'),_0x1a6d20):_0x368a8f[_0x3f78('0x1a')]['removeClass']('ck-suggestion-marker--active',_0x1a6d20));for(const _0x507db5 of _0x48add5[_0x3f78('0xc0')][_0x3f78('0x5a')](_0x1f49fb['item'])['getItems']())_0x368a8f[_0x3f78('0x5b')][_0x3f78('0x14')](_0x507db5,_0x1871b2[_0x3f78('0xac')]);_0x368a8f[_0x3f78('0x5b')]['consume'](_0x1f49fb[_0x3f78('0xd2')],_0x1871b2[_0x3f78('0xac')]);};_0x48add5['conversion'][_0x3f78('0x67')](_0x3f78('0x19'))[_0x3f78('0xcb')](_0x24ef8d=>{_0x24ef8d['on'](_0x3f78('0x5c'),(_0x5f3a89,_0x174cf8,_0x39087f)=>{_0x39087f[_0x3f78('0x58')][_0x3f78('0x101')]&&_0x151bc8({'showActiveMarkers':!0x1})(_0x5f3a89,_0x174cf8,_0x39087f);},{'priority':_0x3f78('0x33')});}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')](_0x3f78('0x19'))['markerToData']({'model':'suggestion','view':(_0x2f01ff,_0x4043a7)=>_0x4043a7[_0x3f78('0x58')][_0x3f78('0x101')]?null:{'group':'suggestion','name':_0x2f01ff[_0x3f78('0x11c')](0xb)}}),_0x48add5[_0x3f78('0xf2')]['for'](_0x3f78('0xca'))['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xeec12e,{writer:_0x165ae3})=>{let _0x193666=_0x3f78('0x27')+_0xeec12e[_0x3f78('0xf7')](_0x3f78('0x55'))+':'+_0xeec12e[_0x3f78('0xf7')]('id');return _0xeec12e[_0x3f78('0xf7')]('marker-count')&&(_0x193666+=':'+_0xeec12e[_0x3f78('0xf7')](_0x3f78('0x12b'))),_0x165ae3[_0x3f78('0x137')](_0x3f78('0x1c'),{'data-name':_0x193666});}}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')](_0x3f78('0xca'))[_0x3f78('0x135')]({'view':'suggestion'}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')](_0x3f78('0x20'))[_0x3f78('0xcb')](_0x354c46=>{_0x354c46['on']('addMarker:suggestion:formatBlock',_0x151bc8(),{'priority':_0x3f78('0xee')});}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')]('editingDowncast')[_0x3f78('0xcb')](_0x4192a1=>{_0x4192a1['on'](_0x3f78('0xae'),(_0x3781de,_0x101623,_0x53cff0)=>{const _0x4a9a34=_0x53cff0['mapper'][_0x3f78('0xb5')](_0x101623[_0x3f78('0x110')]);if(_0x4a9a34)for(const _0x5e12e3 of _0x4a9a34)_0x5e12e3['getCustomProperty'](_0x3f78('0xf9'))||(_0x53cff0[_0x3f78('0x1a')]['removeClass']([_0x3f78('0x11a'),_0x3f78('0x40'),'ck-suggestion-marker--active'],_0x5e12e3),_0x53cff0[_0x3f78('0x1a')][_0x3f78('0x127')](_0x3f78('0xdb'),_0x5e12e3),_0x53cff0[_0x3f78('0x61')][_0x3f78('0x112')](_0x5e12e3,_0x101623[_0x3f78('0x110')]));},{'priority':_0x3f78('0xee')});}),_0x48add5['model'][_0x3f78('0x117')][_0x3f78('0x10b')](_0x3887b8=>{let _0x3d0968=!0x1;const _0x3fd563=Array[_0x3f78('0x6a')](_0x48add5[_0x3f78('0xc0')]['document']['differ'][_0x3f78('0x0')]()),_0xabe217=new Set();for(const {name:_0x4a5222,data:_0x33fcff}of _0x3fd563){const {group:_0xf1e615,type:_0x3ad08a,id:_0x464253}=this['_splitMarkerName'](_0x4a5222);if(_0x3f78('0x59')!==_0xf1e615)continue;const _0x34f53f=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x464253);if(null!=_0x33fcff[_0x3f78('0x85')]){_0x3f78('0xef')==_0x3ad08a&&(_0x3d0968=_0x3d0968||Mt(_0x33fcff[_0x3f78('0x85')],_0x4a5222,_0x3887b8,_0x48add5[_0x3f78('0xc0')]['schema']));if(_0x33fcff[_0x3f78('0x85')]['isCollapsed']||'$graveyard'==_0x33fcff[_0x3f78('0x85')]['root']['rootName']||'formatBlock'==_0x3ad08a&&!Nt(_0x33fcff[_0x3f78('0x85')])||_0x3f78('0xcd')==_0x3ad08a&&!(!_t(_0xf96b01=_0x33fcff[_0x3f78('0x85')])&&!function(_0x3023ad){return _0x3023ad[_0x3f78('0x118')][_0x3f78('0xe5')]==_0x3023ad[_0x3f78('0xd9')][_0x3f78('0x123')]&&_0x3023ad[_0x3f78('0x118')]['isAtEnd'];}(_0xf96b01)))_0x3887b8['removeMarker'](_0x4a5222),_0x3d0968=!0x0;else{if(!_0x34f53f||!_0x34f53f[_0x3f78('0x94')])continue;_0xabe217[_0x3f78('0xcb')](_0x34f53f);}}}var _0xf96b01;return _0xabe217[_0x3f78('0xe')]>0x0&&(_0x3d0968=!!this[_0x3f78('0x46')](_0xabe217)||_0x3d0968),_0x3d0968;}),_0x48add5[_0x3f78('0xc0')][_0x3f78('0x117')][_0x3f78('0x10b')](_0xb4e143=>{let _0x49b52c=!0x1;for(const _0x5d1fcf of _0x48add5['model'][_0x3f78('0x117')][_0x3f78('0x4c')][_0x3f78('0x99')]()){if(_0x3f78('0x72')!=_0x5d1fcf[_0x3f78('0x62')])continue;const _0x288495=_0x5d1fcf[_0x3f78('0x139')]['getShiftedBy'](_0x5d1fcf[_0x3f78('0x37')]);if(_0x288495['isAtEnd'])for(const _0x23d958 of this['_suggestions'][_0x3f78('0x82')]()){if(_0x23d958[_0x3f78('0xf1')]||!_0x23d958[_0x3f78('0x94')])continue;if(_0x3f78('0xdd')!=_0x23d958['type'])continue;const _0x1fe70d=_0x23d958[_0x3f78('0xaa')]();if(_0x1fe70d[_0x3f78('0x118')][_0x3f78('0xe5')]!=_0x1fe70d[_0x3f78('0xd9')][_0x3f78('0xe5')]&&_0x1fe70d['end'][_0x3f78('0x4e')](_0x5d1fcf['position'])){const _0x4cf601=_0x48add5['model'][_0x3f78('0x107')](_0x1fe70d[_0x3f78('0x118')],_0x288495);_0xb4e143[_0x3f78('0xe4')](_0x23d958[_0x3f78('0xc4')](),{'range':_0x4cf601}),_0x49b52c=!0x0;}}}return _0x49b52c;}),_0x48add5[_0x3f78('0xc0')][_0x3f78('0xec')]['on'](_0x3f78('0x2f'),(_0x20ba08,_0x18bb10,_0x112382)=>{if(null==_0x112382){const {id:_0x1a7ea7}=this['_splitMarkerName'](_0x18bb10['name']),_0x933994=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x1a7ea7);_0x933994&&_0x933994[_0x3f78('0x70')](_0x18bb10[_0x3f78('0xac')]);}}),_0x48add5[_0x3f78('0xc0')][_0x3f78('0x117')]['on'](_0x3f78('0x10'),()=>{const _0x482723=Array[_0x3f78('0x6a')](_0x48add5[_0x3f78('0xc0')][_0x3f78('0x117')]['differ'][_0x3f78('0x0')]())[_0x3f78('0x9c')](_0x487135=>_0x3f78('0x59')===this[_0x3f78('0x128')](_0x487135['name'])['group']);if(0x0===_0x482723['length'])return;_0x482723[_0x3f78('0x9')]((_0xdc5519,_0x53a4de)=>{const _0x1f8099=_0xdc5519[_0x3f78('0x2')][_0x3f78('0x12')],_0xd21b26=_0x53a4de['data']['oldRange'];return null===_0x1f8099&&null===_0xd21b26?0x0:null===_0x1f8099&&null!==_0xd21b26?-0x1:null!==_0x1f8099&&null===_0xd21b26?0x1:_0x1f8099[_0x3f78('0x118')]['isBefore'](_0xd21b26[_0x3f78('0x118')])?-0x1:0x1;});const _0x3230df=new Set(),_0x3e6be8=new Set();for(const {name:_0x3de78c,data:_0x134078}of _0x482723){const {id:_0x4f67e6}=this[_0x3f78('0x128')](_0x3de78c);if(null===_0x134078[_0x3f78('0x12')]){const _0x4e4923=this[_0x3f78('0xab')](_0x3de78c);_0x3e6be8[_0x3f78('0xcb')](_0x4e4923);}else{const _0x22306b=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x4f67e6);null!==_0x134078[_0x3f78('0x85')]||_0x22306b[_0x3f78('0x94')]?(_0x3230df[_0x3f78('0xcb')](_0x22306b[_0x3f78('0x4')]),_0x3e6be8[_0x3f78('0xcb')](_0x22306b)):this[_0x3f78('0x8e')](_0x22306b);}}_0x3e6be8[_0x3f78('0xe')]>0x0&&this[_0x3f78('0xf5')](_0x3e6be8);for(const _0x1c69d7 of _0x3230df)this['fire']('suggestionChanged',_0x1c69d7);}),_0x48add5['model']['on']('applyOperation',(_0xa37e2e,_0x2f6e36)=>{const _0xb58e36=_0x2f6e36[0x0];if(!this[_0x3f78('0x120')][_0x3f78('0xe')])return;if(!_0xb58e36['isDocumentOperation'])return;if(_0xb58e36[_0x3f78('0xa0')][_0x3f78('0x39')]||!_0xb58e36['batch'][_0x3f78('0xbe')])return;let _0x4f7b56,_0x5281c6;switch(_0xb58e36[_0x3f78('0x62')]){case'insert':_0x4f7b56=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x5')](_0xb58e36[_0x3f78('0x139')]),_0x5281c6=_0x4f7b56[_0x3f78('0x87')](_0xb58e36[_0x3f78('0x122')]);break;case _0x3f78('0xea'):_0x4f7b56=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x5')](_0xb58e36[_0x3f78('0x109')]),_0x5281c6=_0x48add5['model'][_0x3f78('0x5')](_0xb58e36[_0x3f78('0xb8')]);break;case _0x3f78('0x2d'):_0x4f7b56=_0x48add5['model'][_0x3f78('0x5')](_0xb58e36[_0x3f78('0x78')]),_0x5281c6=_0x4f7b56[_0x3f78('0x87')](_0xb58e36['howMany']);break;default:return;}const _0x588a9e=_0x48add5['model'][_0x3f78('0x107')](_0x4f7b56,_0x5281c6);_0x48add5['model'][_0x3f78('0x131')](()=>{for(const {suggestion:_0x1f0762,meta:_0x6c07b7}of this[_0x3f78('0x12e')](_0x588a9e)){if(_0x1f0762[_0x3f78('0xf1')])continue;if(_0x3f78('0xef')==_0x1f0762[_0x3f78('0x62')])continue;const _0x2840e7=_0x1f0762[_0x3f78('0x2')]&&_0x1f0762[_0x3f78('0x2')][_0x3f78('0xd1')];(_0x3f78('0xdd')!=_0x1f0762['type']||_0x3f78('0xea')==_0xb58e36[_0x3f78('0x62')]&&!_0x2840e7)&&(_0x6c07b7[_0x3f78('0xa')]||_0x3f78('0x4b')==_0x1f0762[_0x3f78('0x62')]&&_0x6c07b7[_0x3f78('0x8')]||_0x1f0762[_0x3f78('0xaa')]()[_0x3f78('0x3f')](_0x588a9e)&&this['_breakSuggestionMarker'](_0x1f0762,_0x4f7b56,_0x5281c6));}});},{'priority':_0x3f78('0xa8')}),_0x48add5[_0x3f78('0xc0')]['on']('deleteContent',(_0x5a3f4b,_0x587955)=>{const _0x3e97b9=_0x587955[0x0],_0x3f7cae=_0x587955[0x1];if(_0x3f7cae&&_0x3f7cae[_0x3f78('0x6f')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand'][_0x3f78('0x4a')])return;if(_0x3e97b9[_0x3f78('0x5e')])return;const _0x4aa9f8=_0x48add5[_0x3f78('0xc0')]['schema'],{start:_0x428226,end:_0x52ac3e}=_0x3e97b9['getFirstRange'](),_0x5d1907=_0x428226[_0x3f78('0x7b')]&&_0x4aa9f8[_0x3f78('0x10d')](_0x428226[_0x3f78('0x7b')])?null:_0x4aa9f8[_0x3f78('0x54')](_0x428226,_0x3f78('0x63')),_0x330d49=_0x52ac3e[_0x3f78('0x123')]&&_0x4aa9f8['isLimit'](_0x52ac3e[_0x3f78('0x123')])?null:_0x4aa9f8[_0x3f78('0x54')](_0x52ac3e,_0x3f78('0xc9')),_0x40e439=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x107')](_0x5d1907?_0x5d1907['start']:_0x428226,_0x330d49?_0x330d49['end']:_0x52ac3e);_0x48add5[_0x3f78('0xc0')]['change'](_0x4e857d=>{this[_0x3f78('0x12f')](_0x40e439);const _0x335049=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x7c')]['getNearestSelectionRange'](_0x40e439[_0x3f78('0x118')]);_0x3e97b9['is'](_0x3f78('0xed'))?_0x4e857d[_0x3f78('0x7a')](_0x335049):_0x3e97b9['setTo'](_0x335049);}),_0x5a3f4b[_0x3f78('0x9d')]();},{'priority':_0x372a5a['normal']+0xa}),_0x48add5[_0x3f78('0xc0')]['on'](_0x3f78('0x11e'),(_0x3c2084,_0x3e2ff5)=>{const _0x182567=_0x3e2ff5[_0x3e2ff5[_0x3f78('0x37')]-0x1];_0x182567&&_0x182567[_0x3f78('0x6f')]||this['_isForcedDefaultExecutionBlock']||this[_0x3f78('0xf4')][_0x3f78('0x4a')]&&(_0x48add5['model'][_0x3f78('0x131')](()=>{let _0x252b2a=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x11e')](_0x3e2ff5[0x0],_0x3e2ff5[0x1],_0x3e2ff5[0x2],{'forceDefaultExecution':!0x0});if(!_0x252b2a)return;_0x3c2084['return']=_0x252b2a[_0x3f78('0xb7')]();const _0x3b45d7=_0x252b2a[_0x3f78('0xd9')][_0x3f78('0x123')],_0x1dd888=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x7c')];_0x3b45d7&&_0x1dd888[_0x3f78('0x47')](_0x3b45d7)&&!_0x1dd888[_0x3f78('0x90')](_0x3b45d7)&&(_0x252b2a=_0x48add5[_0x3f78('0xc0')]['createRange'](_0x252b2a[_0x3f78('0x118')],_0x48add5['model'][_0x3f78('0x5')](_0x3b45d7,_0x3f78('0xd9')))),this[_0x3f78('0x75')](_0x252b2a);}),_0x3c2084[_0x3f78('0x9d')]());},{'priority':'high'}),this['editor'][_0x3f78('0x13b')][_0x3f78('0xcb')](_0x3f78('0xbc'),this[_0x3f78('0xf4')]),this[_0x3f78('0x10f')]('trackChanges');const _0x2a7225=new _0x14c77f(_0x48add5,this[_0x3f78('0x120')]);_0x48add5[_0x3f78('0x13b')][_0x3f78('0xcb')](_0x3f78('0x125'),_0x2a7225),this[_0x3f78('0x10f')](_0x3f78('0x125'));const _0x3e1c08=new _0x522ba1(_0x48add5,this['_suggestions']);_0x48add5[_0x3f78('0x13b')]['add']('discardSuggestion',_0x3e1c08),this[_0x3f78('0x10f')]('discardSuggestion'),_0x48add5[_0x3f78('0x13b')][_0x3f78('0xcb')](_0x3f78('0x81'),new _0x5f4998(_0x48add5,_0x2a7225,this[_0x3f78('0x120')])),this[_0x3f78('0x10f')](_0x3f78('0x81')),_0x48add5['commands'][_0x3f78('0xcb')](_0x3f78('0x104'),new _0x5f4998(_0x48add5,_0x3e1c08,this[_0x3f78('0x120')])),this['enableCommand'](_0x3f78('0x104')),_0x48add5['commands'][_0x3f78('0xcb')](_0x3f78('0x12a'),new _0x1686f1(_0x48add5,_0x2a7225,this['_suggestions'])),this[_0x3f78('0x10f')]('acceptSelectedSuggestions'),_0x48add5[_0x3f78('0x13b')]['add']('discardSelectedSuggestions',new _0x1686f1(_0x48add5,_0x3e1c08,this[_0x3f78('0x120')])),this[_0x3f78('0x10f')]('discardSelectedSuggestions');const _0x36c241=_0x48add5[_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x50'));this[_0x3f78('0x80')](_0x36c241,_0x3f78('0xad'),(_0x2f5e3a,{threadId:_0x3c72ad})=>{const _0x166037=this['_suggestions'][_0x3f78('0x60')](_0x3c72ad);_0x166037&&_0x166037[_0x3f78('0x43')]&&0x1===_0x166037[_0x3f78('0x43')]['length']&&this['_updateSuggestionData'](_0x3c72ad,{'hasComments':!0x0});},{'priority':_0x3f78('0x106')}),this[_0x3f78('0x80')](_0x36c241,_0x3f78('0x9a'),(_0x4ed059,{threadId:_0x2fc3dc})=>{const _0x243da3=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x2fc3dc);_0x243da3&&_0x243da3[_0x3f78('0x43')]&&!_0x243da3[_0x3f78('0x43')][_0x3f78('0x37')]&&this['_updateSuggestionData'](_0x2fc3dc,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5e0b47){if(this[_0x3f78('0x102')])throw new _0x400b29(_0x3f78('0x86'),this);this[_0x3f78('0x102')]=_0x5e0b47;}get['adapter'](){return this[_0x3f78('0x102')];}[_0x3f78('0x2c')]({skipNotAttached:_0x19a845=!0x1,toJSON:_0x547551=!0x1}={}){const _0x571e59=[];for(const _0xaba4ae of this[_0x3f78('0x120')][_0x3f78('0x82')]())_0x19a845&&!_0xaba4ae[_0x3f78('0x94')]||_0x571e59[_0x3f78('0x22')](_0xaba4ae);return _0x547551?_0x571e59['map'](_0x21cac1=>_0x21cac1['toJSON']()):_0x571e59;}[_0x3f78('0xd4')](_0x318bfc){const _0xa8e94=this['_suggestions'][_0x3f78('0x60')](_0x318bfc);if(!_0xa8e94)throw new _0x400b29(_0x3f78('0x97'),this);return _0xa8e94;}[_0x3f78('0x6c')](_0x1bbae5){return this[_0x3f78('0x120')][_0x3f78('0x48')](_0x1bbae5);}[_0x3f78('0xf')](_0x3efd7d){const {authorId:_0x1b0916,id:_0x3b3842,attributes:_0x452c52}=_0x3efd7d,[_0x1c16bb,_0x328ec8]=_0x3efd7d[_0x3f78('0x62')][_0x3f78('0xea')](':'),_0x575a0b=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x3b3842)||this[_0x3f78('0x10c')](_0x1c16bb,_0x328ec8,_0x3b3842,_0x1b0916,_0x452c52);if(this[_0x3f78('0x114')](_0x575a0b),this[_0x3f78('0x138')](_0x575a0b,_0x1c16bb,_0x328ec8||null,_0x1b0916),_0x575a0b[_0x3f78('0xb')]=_0x3efd7d['createdAt'],_0x575a0b['_isDataLoaded']=!0x0,_0x452c52&&_0x452c52[_0x3f78('0x93')]){const _0x567cfd=_0x452c52[_0x3f78('0x93')],_0x31020b=this[_0x3f78('0x31')](_0x567cfd[_0x3f78('0xd7')]);_0x575a0b[_0x3f78('0xb1')]=_0x567cfd[_0x3f78('0xb')],_0x575a0b['author']=_0x31020b,_0x575a0b[_0x3f78('0x3')]=!0x0;}else _0x575a0b[_0x3f78('0xb1')]=_0x3efd7d[_0x3f78('0xb')];switch(_0x3efd7d[_0x3f78('0x2')]&&(_0x575a0b[_0x3f78('0x2')]=_0x3efd7d['data']),_0x3efd7d[_0x3f78('0xb3')]&&(_0x575a0b[_0x3f78('0xb3')]=_0x3efd7d[_0x3f78('0xb3')]),this[_0x3f78('0x102')]&&this[_0x3f78('0x102')][_0x3f78('0x26')]||(_0x575a0b[_0x3f78('0x41')]=!0x0),this['_suggestionState'][_0x3f78('0x60')](_0x575a0b)){case _0x3f78('0x121'):this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x575a0b,_0x3f78('0x5f'));break;case _0x3f78('0x2b'):_0x575a0b['isInContent']?(this[_0x3f78('0xf5')](new Set([_0x575a0b])),this['_joinWithAdjacentSuggestions'](new Set([_0x575a0b])),this['_suggestionState'][_0x3f78('0x3e')](_0x575a0b,_0x3f78('0x1d')),this['fire'](_0x3f78('0x49'),_0x575a0b)):this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x575a0b,_0x3f78('0x36'));}return _0x575a0b;}[_0x3f78('0x125')](_0x53b904){this[_0x3f78('0x6f')](()=>{this['editor'][_0x3f78('0xc0')]['change'](()=>{for(const _0x78636a of _0x53b904[_0x3f78('0x124')]())_0x78636a[_0x3f78('0x42')]();});});}[_0x3f78('0x66')](_0x54950f){this[_0x3f78('0x6f')](()=>{this['editor'][_0x3f78('0xc0')]['change'](()=>{for(const _0x5dc9a5 of _0x54950f[_0x3f78('0x124')]())_0x5dc9a5[_0x3f78('0xc6')]();});});}[_0x3f78('0x10f')](_0x3e086a,_0x5643f3){const _0x274fb6=this['editor'][_0x3f78('0x13b')][_0x3f78('0x60')](_0x3e086a);if(!_0x274fb6)throw new _0x400b29('track-changes-command-not-found',this,{'commandName':_0x3e086a});this[_0x3f78('0xe6')][_0x3f78('0xcb')](_0x274fb6),_0x5643f3&&_0x274fb6['on'](_0x3f78('0xc2'),(_0x296d78,_0x49dcdd)=>{this[_0x3f78('0xf4')]['value']&&(this[_0x3f78('0xbf')]||_0x49dcdd[_0x3f78('0x37')]>0x0&&_0x49dcdd[_0x49dcdd[_0x3f78('0x37')]-0x1]&&_0x49dcdd[_0x49dcdd[_0x3f78('0x37')]-0x1][_0x3f78('0x6f')]||(_0x5643f3((..._0x1930d5)=>_0x274fb6[_0x3f78('0xc2')](..._0x1930d5,{'forceDefaultExecution':!0x0}),..._0x49dcdd),_0x296d78[_0x3f78('0x9d')]()));},{'priority':_0x3f78('0xee')});}[_0x3f78('0x6f')](_0x1e9d89){let _0x111958,_0x2dd5d1;const _0x299e50=this[_0x3f78('0xbf')];this[_0x3f78('0xbf')]=!0x0;try{_0x111958=_0x1e9d89();}catch(_0x281ddf){_0x2dd5d1=_0x281ddf;}return _0x299e50||(this[_0x3f78('0xbf')]=!0x1),_0x2dd5d1&&_0x400b29['rethrowUnexpectedError'](_0x2dd5d1,this),_0x111958;}[_0x3f78('0x75')](_0x335542,_0x59d657=null,_0x581854={}){if(_0x335542[_0x3f78('0x5e')])return null;const _0x4d321b=this[_0x3f78('0x98')]['plugins'][_0x3f78('0x60')](_0x3f78('0x116'))['me'];for(const {suggestion:_0x422822,meta:_0x31fcee}of this['_findSuggestions'](_0x335542,_0x3f78('0x4b')))if(_0x31fcee[_0x3f78('0x8')]){if(!_0x31fcee['isNextTo']){if(_0x31fcee[_0x3f78('0xa')]){if(!this[_0x3f78('0x28')]||!Ut(_0x422822,_0x581854))continue;return _0x422822;}if(Ut(_0x422822,_0x581854))return _0x422822;this[_0x3f78('0xf8')](_0x422822,_0x335542[_0x3f78('0x118')],_0x335542['end']);break;}if(_0x59d657==_0x422822[_0x3f78('0x8b')]&&Ut(_0x422822,_0x581854)){const _0x3abe75=_0x422822[_0x3f78('0xaa')]();return _0x3abe75[_0x3f78('0x118')]['isEqual'](_0x335542[_0x3f78('0xd9')])?this[_0x3f78('0xbb')](_0x422822,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0x335542[_0x3f78('0x118')],_0x3abe75['end'])):this['_setSuggestionRange'](_0x422822,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0x3abe75['start'],_0x335542[_0x3f78('0xd9')])),_0x422822;}}const _0x1a80fe=_0x418993(),_0x5da009=_0x4d321b['id'],_0x2eb922=_0x59d657?_0x3f78('0x100')+_0x59d657:_0x3f78('0x4b'),_0x2d5a67=this[_0x3f78('0x21')]({'id':_0x1a80fe,'type':_0x2eb922,'createdAt':new Date(),'authorId':_0x5da009,'attributes':_0x581854});return this['_addSuggestionMarker'](_0x2eb922,_0x1a80fe,_0x5da009,_0x335542),_0x2d5a67;}[_0x3f78('0xfe')](_0x5d3302,_0x216a27=_0x3f78('0xe0'),_0x4c703c={}){const _0xe0905b=this[_0x3f78('0x98')][_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x116'))['me'],_0x23b355=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0x4b'),_0x216a27,_0x3f78('0x126'));for(const _0x49a831 of this[_0x3f78('0x2c')]())if(_0x49a831['author']['id']==_0xe0905b['id']&&_0x3f78('0x4b')==_0x49a831[_0x3f78('0x62')]&&_0x49a831[_0x3f78('0x8b')]==_0x216a27&&Ut(_0x49a831,_0x4c703c)&&(_0x23b355(_0x49a831[_0x3f78('0xcf')](),_0x5d3302)||_0x23b355(_0x5d3302,_0x49a831[_0x3f78('0xcf')]()))){for(const _0x549fc2 of _0x5d3302)_0x49a831[_0x3f78('0xc8')](_0x549fc2);return _0x49a831;}for(const {suggestion:_0x460fe6,meta:_0x2a6f51}of this['_findSuggestions'](_0x5d3302,_0x3f78('0x4b'))){if(!_0x2a6f51[_0x3f78('0x8')])continue;if(!this[_0x3f78('0x28')]&&_0x2a6f51[_0x3f78('0xa')])continue;if(!Ut(_0x460fe6,_0x4c703c))continue;let _0x3aa11f=!0x0;for(const _0x2ca876 of _0x460fe6[_0x3f78('0xcf')]())for(const _0x5438ca of _0x5d3302)if(!_0x2ca876['containsRange'](_0x5438ca)){_0x3aa11f=!0x1;break;}if(_0x3aa11f)return _0x460fe6;}const _0xcc833a=_0x418993(),_0x412348=_0xe0905b['id'],_0x2a3b53=_0x3f78('0x100')+_0x216a27,_0x2d4d37=this[_0x3f78('0x21')]({'id':_0xcc833a,'type':_0x2a3b53,'createdAt':new Date(),'authorId':_0x412348,'attributes':_0x4c703c});for(const _0x100807 of _0x5d3302)this[_0x3f78('0xc5')](_0x2a3b53,_0xcc833a,_0x412348,_0x100807,_0x49aee1['getMultiRangeId']());return _0x2d4d37;}[_0x3f78('0x8a')](_0x4c3146,_0x363bd1,_0x4dd6c8=null,_0x2508fc={}){if(_0x4dd6c8=_0x4dd6c8||$t(_0x363bd1),_0x4c3146[_0x3f78('0x5e')])return null;if(_0x3f78('0x6')===this[_0x3f78('0xaf')]){const _0x4f8977=this[_0x3f78('0xdc')]['getSuggestionCallback']('formatInline',_0x4dd6c8,'accept');return this[_0x3f78('0x6f')](()=>_0x4f8977([_0x4c3146],_0x363bd1,_0x2508fc)),null;}const _0x5713b4=this[_0x3f78('0x98')][_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x116'))['me'],_0x43f808=[];if(_0x3f78('0x23')!==this[_0x3f78('0xaf')])for(const {suggestion:_0x12b3a3,meta:_0x509877}of this[_0x3f78('0x12e')](_0x4c3146,_0x3f78('0x4b')))_0x509877[_0x3f78('0x8')]&&!_0x509877[_0x3f78('0xbd')]&&_0x43f808['push'](..._0x12b3a3[_0x3f78('0xcf')]());const _0x1a0327=function(_0x429c7c,_0x10cde5){const _0xb03ec3=[];for(const _0x231a6d of _0x10cde5){const _0xc9c6d5=_0x429c7c[_0x3f78('0x83')](_0x231a6d);_0xc9c6d5&&_0xb03ec3[_0x3f78('0x22')](_0xc9c6d5);}return _0xb03ec3;}(_0x4c3146,_0x43f808),_0x1ed82f=function(_0x4353aa,_0x233fb5){const _0x42ce89=[_0x4353aa];for(const _0x2d8443 of _0x233fb5){let _0x49a476=0x0;for(;_0x49a476<_0x42ce89[_0x3f78('0x37')];){const _0x42e6d5=_0x42ce89[_0x49a476][_0x3f78('0xd5')](_0x2d8443);_0x42ce89[_0x3f78('0xf0')](_0x49a476,0x1,..._0x42e6d5),_0x49a476+=_0x42e6d5[_0x3f78('0x37')];}}return _0x42ce89;}(_0x4c3146,_0x43f808);_0x1a0327['length']&&this['_model'][_0x3f78('0x131')](()=>{for(const _0x13773f of _0x1a0327){const _0x3b6a6d=this['_suggestionFactory'][_0x3f78('0x8c')](_0x3f78('0xef'),_0x4dd6c8,'accept');this[_0x3f78('0x6f')](()=>_0x3b6a6d([_0x13773f],_0x363bd1,_0x2508fc));}});for(const _0x2c1f37 of _0x1ed82f){let _0x4cff7c=null,_0x4a09f2=_0x2c1f37[_0x3f78('0x118')],_0x46f7a2=_0x2c1f37[_0x3f78('0xd9')];for(const {suggestion:_0x2788a9,meta:_0x21c2c7}of this[_0x3f78('0x12e')](_0x2c1f37,_0x3f78('0xef'))){if(!_0x21c2c7[_0x3f78('0x8')])continue;if(_0x2788a9['subType']!=_0x4dd6c8)continue;if(!Ut(_0x2788a9,_0x2508fc))continue;const _0x3c8086=_0x2788a9['getFirstRange']();if(_0x3c8086[_0x3f78('0x3f')](_0x2c1f37,!0x0))return null;_0x4a09f2=_0x4a09f2['isBefore'](_0x3c8086[_0x3f78('0x118')])?_0x4a09f2:_0x3c8086[_0x3f78('0x118')],_0x46f7a2=_0x46f7a2[_0x3f78('0xdf')](_0x3c8086[_0x3f78('0xd9')])?_0x46f7a2:_0x3c8086[_0x3f78('0xd9')],_0x4cff7c?_0x3c8086[_0x3f78('0x118')][_0x3f78('0xfc')](_0x4cff7c['getFirstRange']()[_0x3f78('0x118')])?(_0x4cff7c[_0x3f78('0x96')](),_0x4cff7c=_0x2788a9):_0x2788a9[_0x3f78('0x96')]():_0x4cff7c=_0x2788a9;}const _0x34b8b2=this[_0x3f78('0xe3')]['createRange'](_0x4a09f2,_0x46f7a2);if(_0x4cff7c)this[_0x3f78('0xbb')](_0x4cff7c,_0x34b8b2);else{const _0x412a8c=_0x418993(),_0x3363b8=_0x5713b4['id'];this['_setSuggestionData']({'id':_0x412a8c,'type':'formatInline:'+_0x4dd6c8,'data':_0x363bd1,'createdAt':new Date(),'authorId':_0x3363b8,'attributes':_0x2508fc}),this[_0x3f78('0xc5')]('formatInline:'+_0x4dd6c8,_0x412a8c,_0x3363b8,_0x34b8b2);}}return null;}['markBlockFormat'](_0x3c4e60,_0x4ce830,_0x36d718=[],_0x109238=null,_0x143b1f={}){_0x4ce830[_0x3f78('0xa4')]||(_0x4ce830[_0x3f78('0xa4')]=_0x4ce830['commandName']),_0x4ce830[_0x3f78('0xd1')]=_0x3c4e60['is'](_0x3f78('0x130')),_0x109238=_0x109238||$t(_0x4ce830);const _0x29f1bb=_0x36d718[_0x3f78('0xe2')](_0x1d7e58=>Rt(_0x1d7e58,this[_0x3f78('0xe3')])),_0x35a3bf=_0x3c4e60['is']('range')?_0x3c4e60:Rt(_0x3c4e60,this['_model']);if(_0x3f78('0x6')===this[_0x3f78('0xaf')]){const _0x568bb0=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xdd'),_0x109238,_0x3f78('0x42'));return this['forceDefaultExecution'](()=>_0x568bb0([_0x35a3bf],_0x4ce830,_0x143b1f)),null;}_0x29f1bb['push'](_0x35a3bf);let _0x54ef25=!0x0;for(const _0x59771d of _0x29f1bb)if(!this[_0x3f78('0xd0')](_0x59771d)){_0x54ef25=!0x1;break;}if(_0x54ef25&&_0x3f78('0x23')!==this['_trackFormatChanges']){const _0x9d6da3=this['_suggestionFactory']['getSuggestionCallback'](_0x3f78('0xdd'),_0x109238,_0x3f78('0x42'));return this[_0x3f78('0x6f')](()=>_0x9d6da3([_0x35a3bf],_0x4ce830,_0x143b1f)),null;}let _0x4c67d4=null,_0x130bba=_0x35a3bf[_0x3f78('0x118')],_0x46462c=_0x35a3bf[_0x3f78('0xd9')];for(const {suggestion:_0x3545cd,meta:_0x18c58f}of this[_0x3f78('0x12e')](_0x35a3bf,_0x3f78('0xdd'))){if(!_0x18c58f[_0x3f78('0x8')])continue;if(_0x18c58f[_0x3f78('0x5d')]||_0x18c58f[_0x3f78('0xa')]||_0x18c58f['isInsideObject'])continue;if(_0x3545cd[_0x3f78('0x2')][_0x3f78('0xa4')]!=_0x4ce830[_0x3f78('0xa4')])continue;if(!Ut(_0x3545cd,_0x143b1f))continue;const _0x27be74=_0x3545cd['getFirstRange']();if(_0x3545cd['subType']==_0x109238){if(_0x27be74['containsRange'](_0x35a3bf,!0x0))return null;_0x130bba=_0x130bba[_0x3f78('0xfc')](_0x27be74[_0x3f78('0x118')])?_0x130bba:_0x27be74[_0x3f78('0x118')],_0x46462c=_0x46462c[_0x3f78('0xdf')](_0x27be74['end'])?_0x46462c:_0x27be74[_0x3f78('0xd9')],_0x4c67d4?_0x27be74['start'][_0x3f78('0xfc')](_0x4c67d4[_0x3f78('0xaa')]()[_0x3f78('0x118')])?(_0x4c67d4[_0x3f78('0x96')](),_0x4c67d4=_0x3545cd):_0x3545cd[_0x3f78('0x96')]():_0x4c67d4=_0x3545cd;}else{const _0x11bf5b=_0x35a3bf[_0x3f78('0x83')](_0x27be74);this[_0x3f78('0x32')](_0x3545cd,_0x11bf5b);}}const _0x510f71=this['editor']['plugins'][_0x3f78('0x60')](_0x3f78('0x116'))['me'],_0x5f5053=_0x418993(),_0x5d2651=_0x510f71['id'];if(_0x4c67d4)return this[_0x3f78('0xbb')](_0x4c67d4,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0x130bba,_0x46462c)),_0x4c67d4;{const _0xf86234=this[_0x3f78('0x21')]({'id':_0x5f5053,'type':'formatBlock:'+_0x109238,'data':_0x4ce830,'createdAt':new Date(),'authorId':_0x5d2651,'attributes':_0x143b1f});return this[_0x3f78('0xc5')]('formatBlock:'+_0x109238,_0x5f5053,_0x5d2651,this['_model'][_0x3f78('0x107')](_0x130bba,_0x46462c)),_0xf86234;}}['markMultiRangeBlockFormat'](_0x33af54,_0x25940c,_0x9df773=[],_0x1f5f00=null,_0x30c9c5={}){_0x25940c['formatGroupId']||(_0x25940c[_0x3f78('0xa4')]=_0x25940c[_0x3f78('0x12c')]);const _0x17ea3f=_0x33af54[0x0];_0x25940c[_0x3f78('0xd1')]=_0x17ea3f['is'](_0x3f78('0x130')),_0x1f5f00=_0x1f5f00||$t(_0x25940c);const _0x18fced=_0x9df773[_0x3f78('0xe2')](_0x6b313d=>Rt(_0x6b313d,this[_0x3f78('0xe3')])),_0x17a797=_0x17ea3f['is'](_0x3f78('0x130'))?_0x33af54:_0x33af54[_0x3f78('0xe2')](_0x184f70=>Rt(_0x184f70,this['_model']));if(_0x3f78('0x6')===this[_0x3f78('0xaf')]){const _0x319f28=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xdd'),_0x1f5f00,_0x3f78('0x42'));return this[_0x3f78('0x6f')](()=>_0x319f28(_0x17a797,_0x25940c,_0x30c9c5)),null;}_0x18fced[_0x3f78('0x22')](..._0x17a797);let _0x8903f7=!0x0;for(const _0x38f797 of _0x18fced)if(!this[_0x3f78('0xd0')](_0x38f797)){_0x8903f7=!0x1;break;}if(_0x8903f7&&_0x3f78('0x23')!==this[_0x3f78('0xaf')]){const _0x10c716=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xdd'),_0x1f5f00,_0x3f78('0x42'));return this[_0x3f78('0x6f')](()=>_0x10c716(_0x17a797,_0x25940c,_0x30c9c5)),null;}const _0x2f3a85=this['editor'][_0x3f78('0x34')][_0x3f78('0x60')]('Users')['me'];for(const _0x3f8a47 of this[_0x3f78('0x2c')]()){if(_0x3f8a47['author']['id']!=_0x2f3a85['id'])continue;if(_0x3f78('0xdd')!=_0x3f8a47[_0x3f78('0x62')]||_0x3f8a47[_0x3f78('0x2')][_0x3f78('0xa4')]!=_0x25940c[_0x3f78('0xa4')])continue;if(!Ut(_0x3f8a47,_0x30c9c5))continue;const _0x2e4553=_0x3f8a47[_0x3f78('0x8b')]==_0x1f5f00;for(let _0x9aad5a=0x0;_0x9aad5a<_0x17a797[_0x3f78('0x37')];_0x9aad5a++){const _0x3372dc=_0x17a797[_0x9aad5a];for(const _0x136bb8 of _0x3f8a47[_0x3f78('0x74')]()){const _0x146cb1=_0x136bb8[_0x3f78('0x108')]();if(_0x3372dc[_0x3f78('0x4e')](_0x146cb1)){_0x2e4553?(_0x17a797[_0x3f78('0xf0')](_0x9aad5a,0x1),_0x9aad5a--):_0x3f8a47['removeMarker'](_0x136bb8[_0x3f78('0xac')]);break;}}}}if(0x0==_0x17a797[_0x3f78('0x37')])return null;const _0x2913ff=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xdd'),_0x1f5f00,_0x3f78('0x126'));for(const _0xf25cac of this['getSuggestions']())if(_0xf25cac['author']['id']==_0x2f3a85['id']&&'formatBlock'==_0xf25cac['type']&&_0xf25cac[_0x3f78('0x2')][_0x3f78('0xa4')]==_0x25940c[_0x3f78('0xa4')]&&_0xf25cac[_0x3f78('0x8b')]==_0x1f5f00&&Ut(_0xf25cac,_0x30c9c5)&&(_0x2913ff(_0xf25cac[_0x3f78('0xcf')](),_0x17a797)||_0x2913ff(_0x17a797,_0xf25cac['getRanges']()))){for(const _0x101db0 of _0x17a797)_0xf25cac['addRange'](_0x101db0);return _0xf25cac;}const _0x62f1ee=_0x418993(),_0x4ebe2e=_0x2f3a85['id'],_0x3973b3='formatBlock:'+_0x1f5f00,_0x40e13b=this[_0x3f78('0x21')]({'id':_0x62f1ee,'type':_0x3973b3,'data':_0x25940c,'createdAt':new Date(),'authorId':_0x4ebe2e,'attributes':_0x30c9c5});for(const _0x1d0671 of _0x17a797)this['_addSuggestionMarker'](_0x3973b3,_0x62f1ee,_0x4ebe2e,_0x1d0671,_0x49aee1[_0x3f78('0xf3')]());return _0x40e13b;}['markDeletion'](_0x57c9db,_0x11b815=null,_0x42a425={}){if(_0x57c9db['isCollapsed'])return null;const _0x496d37=this[_0x3f78('0x98')]['plugins'][_0x3f78('0x60')](_0x3f78('0x116'))['me'],_0x329d3e=new _0x4b8f82(_0x57c9db[_0x3f78('0x118')],_0x57c9db[_0x3f78('0xd9')]);for(const {suggestion:_0x428acf,meta:_0x447275}of this[_0x3f78('0x12e')](_0x329d3e,_0x3f78('0x4b')))if(_0x447275[_0x3f78('0x8')]&&!_0x447275[_0x3f78('0x5d')]){if(_0x428acf[_0x3f78('0xf1')]){const _0x20b47a=_0x428acf[_0x3f78('0xcf')]()[_0x3f78('0x9c')](_0x35487e=>_0x3f78('0xa7')!=_0x35487e[_0x3f78('0x71')]['rootName']);_0x20b47a[_0x3f78('0x13a')](_0x8684b2=>_0x329d3e[_0x3f78('0x3f')](_0x8684b2,!0x0))&&_0x428acf['discard']();if(_0x20b47a[_0x3f78('0x79')](_0x5f1efa=>_0x5f1efa[_0x3f78('0x3f')](_0x329d3e,!0x0))){const _0x102c9b=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xcd'),_0x11b815,'accept');return this['forceDefaultExecution'](()=>_0x102c9b([_0x329d3e],null,_0x42a425)),null;}}else{const _0x216869=_0x329d3e[_0x3f78('0x83')](_0x428acf[_0x3f78('0xaa')]());null!==_0x216869&&_0x428acf[_0x3f78('0x4f')]([_0x216869],null,_0x42a425);}}if(_0x329d3e['detach'](),_0x329d3e[_0x3f78('0x5e')]||_0x3f78('0xa7')==_0x329d3e['root']['rootName'])return null;let _0x2cdd3b=null,_0xfec3d8=_0x329d3e[_0x3f78('0x118')],_0x23576e=_0x329d3e[_0x3f78('0xd9')];const _0x296106=this[_0x3f78('0x12e')](_0x329d3e,_0x3f78('0xcd'));for(const {suggestion:_0x4792a5,meta:_0x3cb365}of _0x296106){const _0x28cf7d=this['_model'][_0x3f78('0x107')](_0xfec3d8,_0x23576e);if(_0x3cb365[_0x3f78('0x8')]&&(this[_0x3f78('0x28')]||!_0x3cb365[_0x3f78('0xa')]&&!_0x3cb365[_0x3f78('0xbd')])){if(_0x4792a5['isMultiRange']){if(!Ut(_0x4792a5,_0x42a425))continue;let _0x39611c=!0x0;for(const _0xc3a7e1 of _0x4792a5[_0x3f78('0xcf')]()){if(_0xc3a7e1[_0x3f78('0x3f')](_0x28cf7d,!0x0))return _0x4792a5;_0x28cf7d[_0x3f78('0x3f')](_0xc3a7e1)||(_0x39611c=!0x1);}_0x39611c&&_0x4792a5[_0x3f78('0xc6')]();}else{const _0x2d05ff=_0x4792a5[_0x3f78('0xaa')]();if(_0x2d05ff[_0x3f78('0x3f')](_0x28cf7d,!0x0))return _0x4792a5;if(!Ut(_0x4792a5,_0x42a425)){_0x28cf7d[_0x3f78('0x3f')](_0x2d05ff)?_0x4792a5[_0x3f78('0x96')]():_0x2d05ff['containsPosition'](_0xfec3d8)?_0xfec3d8=_0x2d05ff[_0x3f78('0xd9')]:_0x2d05ff[_0x3f78('0x103')](_0x23576e)&&(_0x23576e=_0x2d05ff[_0x3f78('0x118')]);continue;}_0xfec3d8=_0xfec3d8[_0x3f78('0xfc')](_0x2d05ff['start'])?_0xfec3d8:_0x2d05ff[_0x3f78('0x118')],_0x23576e=_0x23576e[_0x3f78('0xdf')](_0x2d05ff[_0x3f78('0xd9')])?_0x23576e:_0x2d05ff['end'],_0x42a425=Object[_0x3f78('0x6b')]({},_0x4792a5[_0x3f78('0xb3')]),_0x2cdd3b?_0x2d05ff[_0x3f78('0x118')][_0x3f78('0xfc')](_0x2cdd3b[_0x3f78('0xaa')]()[_0x3f78('0x118')])?(_0x2cdd3b[_0x3f78('0x96')](),_0x2cdd3b=_0x4792a5):_0x4792a5[_0x3f78('0x96')]():_0x2cdd3b=_0x4792a5;}}}if(_0x2cdd3b)return this[_0x3f78('0xbb')](_0x2cdd3b,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0xfec3d8,_0x23576e)),_0x2cdd3b;{const _0x8be7dd=_0x418993(),_0x4a8782=this[_0x3f78('0xe3')][_0x3f78('0x107')](_0xfec3d8,_0x23576e),_0x24d8dc=_0x496d37['id'],_0x1f72cc=_0x11b815?_0x3f78('0x13')+_0x11b815:_0x3f78('0xcd'),_0x272abc=this[_0x3f78('0x21')]({'id':_0x8be7dd,'type':_0x1f72cc,'createdAt':new Date(),'authorId':_0x24d8dc,'attributes':_0x42a425});return this[_0x3f78('0xc5')](_0x1f72cc,_0x8be7dd,_0x24d8dc,_0x4a8782),_0x272abc;}}[_0x3f78('0x73')](_0xd7244,_0x1ebd98=_0x3f78('0xe0'),_0x36ca5d={}){const _0x4674f2=this['editor'][_0x3f78('0x34')][_0x3f78('0x60')]('Users')['me'],_0x205ea2=_0xd7244[_0x3f78('0xe2')](_0x5df00c=>new _0x4b8f82(_0x5df00c[_0x3f78('0x118')],_0x5df00c[_0x3f78('0xd9')])),_0x5bd86f=new Set();for(const {suggestion:_0x2b7201,meta:_0x28ceec}of this[_0x3f78('0x12e')](_0x205ea2,_0x3f78('0x4b')))_0x28ceec[_0x3f78('0x8')]&&!_0x28ceec['isNextTo']&&_0x5bd86f[_0x3f78('0xcb')](_0x2b7201);for(const _0x16dbf2 of _0x5bd86f)if(_0x16dbf2[_0x3f78('0xf1')]){const _0x78aeb=_0x16dbf2[_0x3f78('0xcf')]();(!_0x16dbf2[_0x3f78('0xb3')]||!_0x16dbf2['attributes']['skipNestingCheck'])&&(_0x78aeb[_0x3f78('0x13a')](_0x46ce90=>_0x205ea2['some'](_0x26ea9a=>_0x26ea9a['containsRange'](_0x46ce90,!0x0)))&&_0x16dbf2[_0x3f78('0xc6')]());if(_0x205ea2[_0x3f78('0x13a')](_0x4fa6fe=>_0x78aeb[_0x3f78('0x79')](_0x527ef1=>_0x527ef1[_0x3f78('0x3f')](_0x4fa6fe,!0x0)))){const _0x139c48=this[_0x3f78('0xdc')][_0x3f78('0x8c')]('deletion',_0x1ebd98,'accept');return this['forceDefaultExecution'](()=>_0x139c48(_0xd7244,null,_0x36ca5d)),null;}}else{const _0x2771f6=_0x16dbf2[_0x3f78('0xaa')]();_0x205ea2[_0x3f78('0x79')](_0x368989=>_0x368989['containsRange'](_0x2771f6,!0x0))&&_0x16dbf2[_0x3f78('0xc6')]();if(_0x205ea2['every'](_0x20a42f=>_0x2771f6[_0x3f78('0x3f')](_0x20a42f,!0x0))){const _0x8db062=this['_suggestionFactory'][_0x3f78('0x8c')]('deletion',_0x1ebd98,_0x3f78('0x42'));return this[_0x3f78('0x6f')](()=>_0x8db062(_0x205ea2,null,_0x36ca5d)),null;}}const _0x2abf22=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xcd'),_0x1ebd98,'join');let _0x2051a3=null;for(const _0x56c534 of this[_0x3f78('0x2c')]())if(_0x56c534[_0x3f78('0x6e')]['id']==_0x4674f2['id']&&_0x56c534[_0x3f78('0x94')]&&_0x3f78('0xcd')==_0x56c534[_0x3f78('0x62')]&&_0x56c534[_0x3f78('0x8b')]==_0x1ebd98&&Ut(_0x56c534,_0x36ca5d)&&(_0x2abf22(_0x56c534['getRanges'](),_0x205ea2)||_0x2abf22(_0x205ea2,_0x56c534[_0x3f78('0xcf')]()))){if(_0x2051a3){if(_0x56c534[_0x3f78('0x43')]&&_0x56c534[_0x3f78('0x43')][_0x3f78('0x37')])continue;for(const _0x313404 of _0x56c534[_0x3f78('0xcf')]())_0x2051a3[_0x3f78('0x1e')](_0x313404)||_0x2051a3[_0x3f78('0xc8')](_0x313404);_0x56c534[_0x3f78('0x96')]();}else{_0x2051a3=_0x56c534;for(const _0x50c67c of _0x205ea2)_0x56c534['isIntersectingWithRange'](_0x50c67c)||_0x56c534['addRange'](_0x50c67c);}}if(_0x2051a3)return _0x2051a3;_0x5bd86f['clear']();for(const {suggestion:_0x3ae4c4,meta:_0x34257a}of this[_0x3f78('0x12e')](_0x205ea2,_0x3f78('0xcd')))_0x34257a[_0x3f78('0x8')]&&(this[_0x3f78('0x28')]||!_0x34257a['containsRangeInObject']&&!_0x34257a[_0x3f78('0xbd')])&&Ut(_0x3ae4c4,_0x36ca5d)&&_0x5bd86f[_0x3f78('0xcb')](_0x3ae4c4);for(const _0x4ae299 of _0x5bd86f){const _0x108f8e=_0x4ae299[_0x3f78('0xcf')]();if(!_0x36ca5d||!_0x36ca5d[_0x3f78('0x11b')]){if(_0x205ea2[_0x3f78('0x13a')](_0x5231f9=>_0x108f8e['some'](_0x5e3ac4=>_0x5e3ac4[_0x3f78('0x3f')](_0x5231f9,!0x0))))return _0x4ae299;}(!_0x4ae299['attributes']||!_0x4ae299['attributes'][_0x3f78('0x11b')])&&(_0x108f8e[_0x3f78('0x13a')](_0xb05d56=>_0x205ea2[_0x3f78('0x79')](_0x516ca7=>_0x516ca7[_0x3f78('0x3f')](_0xb05d56,!0x0)))&&_0x4ae299[_0x3f78('0xc6')]());}const _0x43bfbe=_0x418993(),_0x3c1503=_0x4674f2['id'],_0x4501a6=_0x3f78('0x13')+_0x1ebd98,_0x5d44b0=this[_0x3f78('0x21')]({'id':_0x43bfbe,'type':_0x4501a6,'createdAt':new Date(),'authorId':_0x3c1503,'attributes':_0x36ca5d});for(const _0x253b6b of _0x205ea2)_0x253b6b['detach'](),_0x253b6b['isCollapsed']||'$graveyard'==_0x253b6b[_0x3f78('0x71')]['rootName']||this['_addSuggestionMarker'](_0x4501a6,_0x43bfbe,_0x3c1503,_0x253b6b,_0x49aee1[_0x3f78('0xf3')]());return _0x5d44b0;}[_0x3f78('0xbb')](_0x77f6f9,_0x2e0813){const _0x29df6d=_0x77f6f9['getFirstMarker']();this[_0x3f78('0xe3')]['change'](_0x5d1821=>{_0x5d1821[_0x3f78('0xe4')](_0x29df6d,{'range':_0x2e0813});});}['_addThreadToSuggestion'](_0x4d872e){const _0xe9c359=_0x4d872e['id'],_0x373d9d=this[_0x3f78('0x98')][_0x3f78('0x136')][_0x3f78('0x60')](_0x3f78('0x95'));this[_0x3f78('0x18')][_0x3f78('0x10a')](_0xe9c359)||this['_commentsRepository']['addCommentThread']({'channelId':_0x373d9d,'threadId':_0xe9c359,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x15fa5a=this[_0x3f78('0x18')][_0x3f78('0x2a')](_0xe9c359);_0x15fa5a[_0x3f78('0xfb')]('isRemovable'),_0x15fa5a[_0x3f78('0x7e')]=!0x1,_0x4d872e[_0x3f78('0x43')]=_0x15fa5a;}[_0x3f78('0x138')](_0x39d072,_0x2a7846,_0x5160ef,_0xf159cf){if(_0x39d072[_0x3f78('0x62')]!=_0x2a7846||_0x39d072[_0x3f78('0x8b')]!=_0x5160ef||_0x39d072[_0x3f78('0xc3')]['id']!=_0xf159cf)throw this['editor'][_0x3f78('0x111')](_0x3f78('0xc1')),new _0x400b29(_0x3f78('0xc1'),this);}[_0x3f78('0x32')](_0x42e82c,_0x5270ee){const _0x514634=_0x42e82c[_0x3f78('0xaa')]();if(_0x5270ee[_0x3f78('0x4e')](_0x514634))_0x42e82c[_0x3f78('0x96')]();else{if(_0x514634['containsRange'](_0x5270ee)){const _0x3be3e3=this['_model'][_0x3f78('0x5')](_0x5270ee[_0x3f78('0x118')][_0x3f78('0x123')],_0x3f78('0xd9'));this[_0x3f78('0xbb')](_0x42e82c,this[_0x3f78('0xe3')]['createRange'](_0x514634['start'],_0x3be3e3));const _0x30250b=_0x418993(),_0x2485c5=_0x42e82c[_0x3f78('0xc3')]['id'],_0x3b8f56=_0x42e82c[_0x3f78('0x62')]+':'+_0x42e82c[_0x3f78('0x8b')];this['_setSuggestionData']({'id':_0x30250b,'type':_0x3b8f56,'createdAt':new Date(),'authorId':_0x2485c5,'data':_0x42e82c[_0x3f78('0x2')],'attributes':_0x42e82c[_0x3f78('0xb3')]});const _0x3ede23=this[_0x3f78('0xe3')][_0x3f78('0x5')](_0x5270ee[_0x3f78('0xd9')][_0x3f78('0xe5')],'after'),_0x1cb952=this['_model'][_0x3f78('0x107')](_0x3ede23,_0x514634[_0x3f78('0xd9')]);this[_0x3f78('0xc5')](_0x3b8f56,_0x30250b,_0x2485c5,_0x1cb952);}else{if(_0x514634[_0x3f78('0x103')](_0x5270ee[_0x3f78('0x118')])){const _0x461ce1=this[_0x3f78('0xe3')][_0x3f78('0x5')](_0x5270ee[_0x3f78('0x118')][_0x3f78('0x123')],_0x3f78('0xd9'));this[_0x3f78('0xbb')](_0x42e82c,this[_0x3f78('0xe3')]['createRange'](_0x514634['start'],_0x461ce1));}else{const _0x1be8e3=this[_0x3f78('0xe3')]['createPositionAt'](_0x5270ee[_0x3f78('0xd9')][_0x3f78('0xe5')],'after');this[_0x3f78('0xbb')](_0x42e82c,this['_model'][_0x3f78('0x107')](_0x1be8e3,_0x514634[_0x3f78('0xd9')]));}}}}['_rangeIsInLocalUserInsertion'](_0x58f11b){for(const {suggestion:_0x26b983,meta:_0x51f48a}of this[_0x3f78('0x12e')](_0x58f11b,_0x3f78('0x4b'))){if(!_0x51f48a['isOwn'])continue;const _0x306839=_0x26b983[_0x3f78('0xcf')]();for(const _0x1953bf of _0x306839)if(!_0x58f11b[_0x3f78('0xd5')](_0x1953bf)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x44c33d){const _0x57915c=this[_0x3f78('0x98')][_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x116'))[_0x3f78('0xe8')](_0x44c33d);if(!_0x57915c)throw new _0x400b29(_0x3f78('0x44'),this);return _0x57915c;}[_0x3f78('0x31')](_0x4f5e3d){const _0x192c08=this['editor'][_0x3f78('0x34')][_0x3f78('0x60')]('Users'),_0x10acda=_0x3abb0f(_0x3f78('0xa1')+_0x4f5e3d),_0x16b4b1=_0x192c08[_0x3f78('0xe8')](_0x10acda);return _0x16b4b1||_0x192c08[_0x3f78('0x91')]({'id':_0x10acda,'name':_0x4f5e3d});}[_0x3f78('0x10c')](_0x4ab6a7,_0x2a4889,_0x1f1801,_0x5eb878,_0x2d5b3f){const _0x54e67b=this[_0x3f78('0x64')](_0x5eb878),_0x5dd636=this[_0x3f78('0xdc')][_0x3f78('0x8f')](_0x4ab6a7,_0x2a4889,_0x1f1801,_0x54e67b,_0x2d5b3f,_0x46dcc8=>this[_0x3f78('0x29')](_0x1f1801,{'attributes':_0x46dcc8}));return this['listenTo'](_0x5dd636,'accept',()=>{this[_0x3f78('0x29')](_0x1f1801,{'state':_0x3f78('0x17')});},{'priority':_0x3f78('0xee')}),this[_0x3f78('0x80')](_0x5dd636,_0x3f78('0xc6'),()=>{this['_updateSuggestionData'](_0x1f1801,{'state':_0x3f78('0xff')});},{'priority':_0x3f78('0xee')}),this[_0x3f78('0x120')][_0x3f78('0x3e')](_0x1f1801,_0x5dd636),this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x5dd636,'notReady'),_0x5dd636;}[_0x3f78('0x128')](_0x5ad0f1){const _0x410dc9=_0x5ad0f1[_0x3f78('0xea')](':');return{'group':_0x410dc9[0x0],'type':_0x410dc9[0x1],'subType':_0x410dc9[_0x3f78('0x37')]>=0x5?_0x410dc9[0x2]:null,'id':_0x410dc9[_0x3f78('0x37')]<0x5?_0x410dc9[0x2]:_0x410dc9[0x3],'authorId':_0x410dc9[_0x3f78('0x37')]<0x5?_0x410dc9[0x3]:_0x410dc9[0x4],'markerCount':0x6==_0x410dc9[_0x3f78('0x37')]?_0x410dc9[0x5]:null};}[_0x3f78('0xf8')](_0x54b35f,_0x48e259,_0xbdcea7){const _0x31ccb8=_0x54b35f['getFirstRange'](),_0x370b7a=_0x31ccb8['start'],_0x35384f=_0x31ccb8[_0x3f78('0xd9')];this[_0x3f78('0xbb')](_0x54b35f,this[_0x3f78('0xe3')]['createRange'](_0x370b7a,_0x48e259));const _0x1d91a1=_0x418993(),_0x40eb6f=_0x54b35f[_0x3f78('0xc3')]['id'],_0x2b09d8=_0x54b35f[_0x3f78('0x62')]+(_0x54b35f['subType']?':'+_0x54b35f[_0x3f78('0x8b')]:'');this[_0x3f78('0x21')]({'id':_0x1d91a1,'type':_0x2b09d8,'createdAt':new Date(),'authorId':_0x40eb6f,'originalSuggestionId':_0x54b35f['id'],'attributes':_0x54b35f[_0x3f78('0xb3')],'data':_0x54b35f[_0x3f78('0x2')]}),_0x3f78('0xdd')==_0x54b35f[_0x3f78('0x62')]&&(_0xbdcea7=this['_model'][_0x3f78('0x52')](_0xbdcea7['parent'])),this[_0x3f78('0xc5')](_0x2b09d8,_0x1d91a1,_0x40eb6f,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0xbdcea7,_0x35384f));}[_0x3f78('0x12e')](_0x5b6057,_0x25e0e8=null){const _0x306b95=[],_0x1cc226=this[_0x3f78('0x98')]['plugins'][_0x3f78('0x60')](_0x3f78('0x116'))['me'];Array['isArray'](_0x5b6057)||(_0x5b6057=[_0x5b6057]);for(const _0x44c347 of this[_0x3f78('0x2c')]()){if(!_0x44c347['isInContent'])continue;if(_0x25e0e8&&_0x44c347[_0x3f78('0x62')]!=_0x25e0e8)continue;let _0x10680a=!0x1;for(const _0x4a6187 of _0x44c347['getRanges']()){for(const _0x204891 of _0x5b6057){const _0x5a66ff=_0x204891[_0x3f78('0x118')][_0x3f78('0x4e')](_0x4a6187[_0x3f78('0xd9')])||_0x204891[_0x3f78('0xd9')][_0x3f78('0x4e')](_0x4a6187['start']);if(_0x5a66ff||_0x204891[_0x3f78('0x83')](_0x4a6187)){const _0x1b8a1d=_0x204891[_0x3f78('0x3f')](_0x4a6187)&&Bt(this['_model'][_0x3f78('0x7c')],_0x4a6187[_0x3f78('0x118')],_0x204891),_0x424719=_0x4a6187[_0x3f78('0x3f')](_0x204891)&&Bt(this[_0x3f78('0xe3')][_0x3f78('0x7c')],_0x204891[_0x3f78('0x118')],_0x4a6187);_0x306b95[_0x3f78('0x22')]({'suggestion':_0x44c347,'meta':{'isOwn':_0x1cc226==_0x44c347[_0x3f78('0x6e')],'isNextTo':_0x5a66ff,'isInsideObject':_0x1b8a1d,'containsRangeInObject':_0x424719}}),_0x10680a=!0x0;break;}}if(_0x10680a)break;}}return _0x306b95;}['_addSuggestionMarker'](_0x179ed6,_0x3da8a5,_0x3dc42c,_0x55424,_0x213d4b){this[_0x3f78('0xe3')]['change'](_0x4a0da7=>{let _0x367f6c=_0x3f78('0x27')+_0x179ed6+':'+_0x3da8a5+':'+_0x3dc42c;_0x213d4b&&(_0x367f6c=_0x367f6c+':'+_0x213d4b),_0x4a0da7[_0x3f78('0x7d')](_0x367f6c,{'range':_0x55424,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3f78('0x8e')](_0x18a893){const _0xdf386b=_0x18a893['previous'],_0xa6caba=_0x18a893[_0x3f78('0xb0')];_0x18a893[_0x3f78('0x9e')]=null,null!=_0xdf386b&&(_0xdf386b[_0x3f78('0xb0')]=null),_0x18a893['next']=null,null!=_0xa6caba&&(_0xa6caba[_0x3f78('0x9e')]=null),'ready'==this[_0x3f78('0x9b')][_0x3f78('0x60')](_0x18a893)&&(this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x18a893,_0x3f78('0x36')),this['fire'](_0x3f78('0xe1'),_0x18a893,_0xdf386b,_0xa6caba));}[_0x3f78('0x21')](_0x2822f9){const _0x12c42a=_0x2822f9['id'],_0x498d07=this[_0x3f78('0xf')](_0x2822f9);if(this['_adapter']&&this[_0x3f78('0x102')][_0x3f78('0x26')]){const _0xeb7cc9=this['editor']['plugins'][_0x3f78('0x60')](_0x3f78('0x113')),_0x36bd38=_0x498d07['hasComments'],_0x590047=_0x498d07['subType']?_0x498d07['type']+':'+_0x498d07[_0x3f78('0x8b')]:_0x498d07[_0x3f78('0x62')],_0xccff6f=this[_0x3f78('0x98')][_0x3f78('0x88')],_0x435965=_0xeb7cc9[_0x3f78('0xcb')](_0x304cd0(_0xccff6f,'PENDING_ACTION_SUGGESTION')),_0x45fa87={'id':_0x12c42a,'type':_0x590047,'hasComments':_0x36bd38,'data':_0x2822f9['data']||null,'originalSuggestionId':_0x2822f9[_0x3f78('0xb2')]||null,'attributes':_0x498d07[_0x3f78('0xb3')]};this[_0x3f78('0x102')]['addSuggestion'](_0x45fa87)[_0x3f78('0x65')](_0x4006b5=>{_0x498d07['_saved']=!0x0,_0xeb7cc9[_0x3f78('0xcc')](_0x435965),_0x4006b5&&_0x4006b5[_0x3f78('0xb')]&&(this['_suggestions'][_0x3f78('0x60')](_0x12c42a)[_0x3f78('0xb')]=_0x4006b5[_0x3f78('0xb')]);})[_0x3f78('0x11')](_0x598398=>{throw _0x46fa9c('error-saving-suggestion-data-suggestion-discarded'),this['editor'][_0x3f78('0xc0')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x498d07[_0x3f78('0xc6')]();}),_0x498d07[_0x3f78('0x3a')](),this['_suggestions']['delete'](_0x498d07['id']),this[_0x3f78('0x9b')][_0x3f78('0x35')](_0x498d07),_0x598398;});}return _0x498d07;}[_0x3f78('0x29')](_0xf3ba2e,_0x1d0fe9){const _0x1e57b0=this[_0x3f78('0x98')]['plugins']['get']('PendingActions'),_0x21f104=this['getSuggestion'](_0xf3ba2e);if(this[_0x3f78('0x102')]&&this['_adapter'][_0x3f78('0x3d')]){if(_0x21f104[_0x3f78('0x41')]){const _0x40937f=_0x1e57b0[_0x3f78('0xcb')](_0x304cd0(this['editor'][_0x3f78('0x88')],_0x3f78('0xa2')));this[_0x3f78('0x102')][_0x3f78('0x3d')](_0xf3ba2e,_0x1d0fe9)['then'](()=>{_0x1e57b0[_0x3f78('0xcc')](_0x40937f);});}else _0x21f104['on'](_0x3f78('0x57'),()=>{this['_updateSuggestionData'](_0xf3ba2e,_0x1d0fe9);});}}['_getSuggestionData'](_0x28f1ba){if(!this['_adapter']||!this[_0x3f78('0x102')][_0x3f78('0xd4')])throw new _0x400b29(_0x3f78('0x38'),this);return this[_0x3f78('0x102')][_0x3f78('0xd4')](_0x28f1ba);}[_0x3f78('0xab')](_0x220d07){const {id:_0x289923,type:_0x4c8b32,subType:_0xc2b56a,authorId:_0x4958bb}=this[_0x3f78('0x128')](_0x220d07),_0x5b0a37=this[_0x3f78('0x120')]['get'](_0x289923)||this[_0x3f78('0x10c')](_0x4c8b32,_0xc2b56a,_0x289923,_0x4958bb,{});switch(this['_checkSuggestionCorrectness'](_0x5b0a37,_0x4c8b32,_0xc2b56a,_0x4958bb),this['_suggestionState']['get'](_0x5b0a37)){case _0x3f78('0x121'):this[_0x3f78('0xc7')](_0x289923)[_0x3f78('0x65')](_0x23349a=>{let _0x442cb2=Promise[_0x3f78('0xba')]();_0x23349a[_0x3f78('0x30')]&&(_0x442cb2=this[_0x3f78('0x18')][_0x3f78('0x25')]({'channelId':this['editor'][_0x3f78('0x136')]['get'](_0x3f78('0x95')),'threadId':_0x289923})),_0x442cb2[_0x3f78('0x65')](()=>{this[_0x3f78('0xf')](_0x23349a)[_0x3f78('0x41')]=!0x0;});}),this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x5b0a37,_0x3f78('0x2b'));break;case'removed':this['_updateSuggestionData'](_0x289923,{'state':_0x3f78('0x69')});case _0x3f78('0x5f'):this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x5b0a37,_0x3f78('0x1d')),this['fire'](_0x3f78('0x49'),_0x5b0a37);break;case _0x3f78('0x1d'):this[_0x3f78('0xce')](_0x3f78('0x8d'),_0x5b0a37);}return _0x5b0a37[_0x3f78('0x70')](_0x220d07),_0x5b0a37;}[_0x3f78('0xf5')](_0x11c698){const _0x4d28a1=Array[_0x3f78('0x6a')](_0x11c698)[_0x3f78('0x9c')](_0x578933=>!_0x578933[_0x3f78('0xf1')]),_0x1d16b9=this[_0x3f78('0x2c')]({'skipNotAttached':!0x0})['filter'](_0x4b1dfd=>!_0x4b1dfd['isMultiRange']),_0x20d5d0=_0x1d16b9['filter'](_0x345553=>!_0x11c698[_0x3f78('0x48')](_0x345553)),_0x1a455e=new Map(_0x1d16b9[_0x3f78('0xe2')](_0x5a46b1=>[_0x5a46b1,this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x5a46b1['type'],_0x5a46b1['subType'],_0x3f78('0x134'))])),_0x4a423e=new Map(_0x1d16b9[_0x3f78('0xe2')](_0x432264=>[_0x432264,_0x432264[_0x3f78('0xaa')]()])),_0x1c9b48=new Set(),_0x25fd43=new Set();for(let _0x4d7529=0x0;_0x4d7529<_0x4d28a1[_0x3f78('0x37')];_0x4d7529++)_0x21fd4d(_0x4d28a1[_0x4d7529],_0x4d28a1,_0x4d7529+0x1);for(let _0x1b86f1=0x0;_0x1b86f1<_0x4d28a1['length'];_0x1b86f1++)_0x21fd4d(_0x4d28a1[_0x1b86f1],_0x20d5d0,0x0);for(let _0x1b5140=0x0;_0x1b5140<_0x4d28a1[_0x3f78('0x37')];_0x1b5140++){const _0x3a929b=_0x4d28a1[_0x1b5140];!_0x25fd43[_0x3f78('0x48')](_0x3a929b)&&_0x3a929b[_0x3f78('0x9e')]&&(_0x3a929b[_0x3f78('0x9e')]['next']===_0x3a929b&&(_0x3a929b[_0x3f78('0x9e')][_0x3f78('0xb0')]=null),_0x3a929b['previous']=null),!_0x1c9b48[_0x3f78('0x48')](_0x3a929b)&&_0x3a929b[_0x3f78('0xb0')]&&(_0x3a929b['next'][_0x3f78('0x9e')]===_0x3a929b&&(_0x3a929b['next'][_0x3f78('0x9e')]=null),_0x3a929b['next']=null);}function _0x21fd4d(_0x2f98be,_0x2b58aa,_0x2d6c0e){for(let _0x42c234=_0x2d6c0e;_0x42c234<_0x2b58aa[_0x3f78('0x37')];_0x42c234++){const _0x575093=_0x345040(_0x2f98be,_0x2b58aa[_0x42c234]);_0x575093&&(_0x575093[0x0][_0x3f78('0xb0')]=_0x575093[0x1],_0x575093[0x1][_0x3f78('0x9e')]=_0x575093[0x0],_0x1c9b48[_0x3f78('0xcb')](_0x575093[0x0]),_0x25fd43[_0x3f78('0xcb')](_0x575093[0x1]));}}function _0x345040(_0x101541,_0x5f517f){if(_0x101541[_0x3f78('0x6e')]['id']!==_0x5f517f[_0x3f78('0x6e')]['id'])return null;const _0x2a34a3=_0x1a455e[_0x3f78('0x60')](_0x101541)(_0x101541,_0x5f517f,_0x4a423e[_0x3f78('0x60')](_0x101541),_0x4a423e[_0x3f78('0x60')](_0x5f517f));if(!_0x2a34a3)return null;return _0x1a455e[_0x3f78('0x60')](_0x5f517f)(_0x101541,_0x5f517f,_0x4a423e[_0x3f78('0x60')](_0x101541),_0x4a423e[_0x3f78('0x60')](_0x5f517f))?_0x2a34a3[0x1][_0x3f78('0x43')]&&_0x2a34a3[0x1][_0x3f78('0x43')][_0x3f78('0x37')]?null:_0x2a34a3:null;}}[_0x3f78('0x46')](_0x5da3c8){const _0x582bb8=Array[_0x3f78('0x6a')](_0x5da3c8),_0x555ef3=this[_0x3f78('0x2c')]({'skipNotAttached':!0x0}),_0x1a479e=_0x555ef3[_0x3f78('0x9c')](_0x3043c0=>!_0x5da3c8[_0x3f78('0x48')](_0x3043c0)),_0x38c053=new Map(_0x582bb8['map'](_0x25814a=>[_0x25814a,this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x25814a[_0x3f78('0x62')],_0x25814a[_0x3f78('0x8b')],_0x3f78('0x126'))])),_0x57e407=new Map(_0x555ef3[_0x3f78('0xe2')](_0x742cf0=>[_0x742cf0,_0x742cf0[_0x3f78('0xcf')]()]));for(let _0x15bf0c=0x0;_0x15bf0c<_0x582bb8['length'];_0x15bf0c++){if(_0x51d5f3(this,_0x582bb8[_0x15bf0c],_0x582bb8,_0x15bf0c+0x1))return!0x0;}for(let _0x29556a=0x0;_0x29556a<_0x582bb8[_0x3f78('0x37')];_0x29556a++){if(_0x51d5f3(this,_0x582bb8[_0x29556a],_0x1a479e,0x0))return!0x0;}return!0x1;function _0x51d5f3(_0x3fd78f,_0x3691ab,_0x3d12fe,_0x29f7dd){for(let _0x402cf1=_0x29f7dd;_0x402cf1<_0x3d12fe[_0x3f78('0x37')];_0x402cf1++){const _0x25164e=_0x3d12fe[_0x402cf1];if(_0x25164e[_0x3f78('0x62')]!==_0x3691ab[_0x3f78('0x62')]||_0x25164e['author']['id']!==_0x3691ab['author']['id']||_0x25164e[_0x3f78('0x8b')]!==_0x3691ab[_0x3f78('0x8b')])continue;if(!xt(_0x3691ab,_0x25164e))continue;const _0x2323a2=_0x38c053[_0x3f78('0x60')](_0x3691ab),_0x2553fa=_0x57e407[_0x3f78('0x60')](_0x3691ab),_0x9c9e99=_0x57e407[_0x3f78('0x60')](_0x25164e),_0x18d3fa=_0x3691ab[_0x3f78('0x43')]&&_0x3691ab[_0x3f78('0x43')][_0x3f78('0x37')],_0x324b1f=_0x25164e['commentThread']&&_0x25164e[_0x3f78('0x43')][_0x3f78('0x37')];if(!_0x18d3fa&&_0x2323a2(_0x9c9e99,_0x2553fa))return _0x3fd78f[_0x3f78('0x7')](_0x25164e,_0x3691ab),_0x57e407['delete'](_0x3691ab),!0x0;if(!_0x324b1f&&_0x2323a2(_0x2553fa,_0x9c9e99))return _0x3fd78f[_0x3f78('0x7')](_0x3691ab,_0x25164e),_0x57e407[_0x3f78('0x35')](_0x25164e),!0x0;}return!0x1;}}[_0x3f78('0x7')](_0xc0a22c,_0x1ba28c){if(_0xc0a22c[_0x3f78('0xf1')])for(const _0x2e83e2 of _0x1ba28c[_0x3f78('0xcf')]())_0xc0a22c['addRange'](_0x2e83e2);else{const _0x480801=_0x1ba28c['getFirstRange']()['end'];this[_0x3f78('0xbb')](_0xc0a22c,this[_0x3f78('0xe3')]['createRange'](_0xc0a22c['getFirstRange']()[_0x3f78('0x118')],_0x480801));}_0x1ba28c[_0x3f78('0x96')]();}}class Dt{constructor(_0x528fea){this['_editor']=_0x528fea,this[_0x3f78('0xe3')]=_0x528fea[_0x3f78('0xc0')],this[_0x3f78('0xde')]=new Map(),this[_0x3f78('0x77')]=new Map(),this[_0x3f78('0x129')]();}[_0x3f78('0x8f')](_0x3c5efa,_0x20dec6,_0x330eb5,_0x71fe91,_0x117515,_0xb9b740){return new _0x49aee1(this[_0x3f78('0xe3')],{'type':_0x3c5efa,'subType':_0x20dec6,'id':_0x330eb5,'author':_0x71fe91,'creator':_0x71fe91,'attributes':_0x117515,'onAttributesChange':_0xb9b740,'onAccept':(..._0x108fd8)=>this[_0x3f78('0x8c')](_0x3c5efa,_0x20dec6,'accept')(..._0x108fd8),'onDiscard':(..._0x3a6fe5)=>this['getSuggestionCallback'](_0x3c5efa,_0x20dec6,'discard')(..._0x3a6fe5)});}['registerCustomCallback'](_0x153479,_0x40f9a5,_0x5ebcee,_0x315469){const _0x10fa4f=_0x153479+':'+_0x40f9a5+':'+_0x5ebcee;this['_customCallbacks']['set'](_0x10fa4f,_0x315469);}[_0x3f78('0x8c')](_0x4e4706,_0x472852,_0x44175b){const _0xc24567=_0x4e4706+':'+_0x472852+':'+_0x44175b;return this[_0x3f78('0xde')]['get'](_0xc24567)||this[_0x3f78('0x77')]['get'](_0x4e4706+':'+_0x44175b);}[_0x3f78('0x129')](){const _0x36d9bd=()=>!0x1,_0x446313=_0x31f30b=>{_0x31f30b['sort']((_0x38e636,_0x3e6166)=>_0x38e636['start']['isBefore'](_0x3e6166[_0x3f78('0x118')])?0x1:-0x1),this[_0x3f78('0xe3')][_0x3f78('0x131')](_0x1ee8ad=>{for(const _0x46f333 of _0x31f30b){let _0x2a4947;_0x2a4947=_0x46f333[_0x3f78('0xd9')]['isAtEnd']&&_0x46f333[_0x3f78('0xd9')][_0x3f78('0xe5')]==_0x46f333['start'][_0x3f78('0x7b')]?_0x1ee8ad[_0x3f78('0x11f')](_0x46f333[_0x3f78('0x118')][_0x3f78('0x7b')],'on'):_0x1ee8ad['createSelection'](_0x46f333),this['_model']['deleteContent'](_0x2a4947,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5cdfee=(_0x3f5ac1,_0x36642b)=>{this[_0x3f78('0xe3')][_0x3f78('0x131')](_0x2133ee=>{const {commandName:_0x40fbee,commandParams:_0x5a580=[]}=_0x36642b,_0x2628e0=_0x3f5ac1[_0x3f78('0xe2')](_0xe0c9da=>(_t(_0xe0c9da)&&(_0xe0c9da=this[_0x3f78('0xe3')][_0x3f78('0x107')](_0xe0c9da['end'])),_0xe0c9da))[_0x3f78('0x9c')](_0x46f9bc=>_0x3f78('0xa7')!==_0x46f9bc[_0x3f78('0x71')][_0x3f78('0xc')]);if(_0x2628e0['length']<0x1)return;const _0x214087=Array[_0x3f78('0x6a')](this[_0x3f78('0xe3')]['document']['selection']['getRanges']())[_0x3f78('0xe2')](_0x2fb243=>_0x4b8f82[_0x3f78('0x45')](_0x2fb243));_0x2133ee['setSelection'](_0x2628e0);for(const _0x2590fe of this[_0x3f78('0xe9')]['commands'][_0x3f78('0x13b')]())_0x2590fe[_0x3f78('0x11d')]();_0x5a580['push']({'forceDefaultExecution':!0x0}),this[_0x3f78('0xe9')]['execute'](_0x40fbee,..._0x5a580);const _0x3f74c0=_0x214087[_0x3f78('0x9c')](_0xe24fa3=>_0x3f78('0xa7')!=_0xe24fa3[_0x3f78('0x71')][_0x3f78('0xc')]);_0x3f74c0[_0x3f78('0x37')]>0x0&&_0x2133ee[_0x3f78('0x7a')](_0x3f74c0);for(const _0x1f9a4f of _0x214087)_0x1f9a4f[_0x3f78('0xd6')]();});},_0x357c00=(_0x212404,_0x21acf3)=>0x1==_0x212404[_0x3f78('0x37')]&&0x1==_0x21acf3['length']&&_0x212404[0x0]['end'][_0x3f78('0x4e')](_0x21acf3[0x0][_0x3f78('0x118')]),_0x31ad18=(_0x2ba0ee,_0x21cd34,_0x1d074a,_0xcfe02d)=>jt(_0x2ba0ee,_0x21cd34,_0x1d074a,_0xcfe02d,this[_0x3f78('0xe3')])?[_0x2ba0ee,_0x21cd34]:jt(_0x21cd34,_0x2ba0ee,_0xcfe02d,_0x1d074a,this['_model'])?[_0x21cd34,_0x2ba0ee]:null;this[_0x3f78('0x77')][_0x3f78('0x3e')]('insertion:accept',_0x36d9bd),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x1f'),_0x446313),this[_0x3f78('0x77')]['set'](_0x3f78('0x132'),_0x357c00),this['_defaultCallbacks'][_0x3f78('0x3e')]('insertion:chain',_0x31ad18),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x76'),_0x446313),this[_0x3f78('0x77')]['set']('deletion:discard',_0x36d9bd),this[_0x3f78('0x77')][_0x3f78('0x3e')](_0x3f78('0x56'),_0x357c00),this[_0x3f78('0x77')][_0x3f78('0x3e')](_0x3f78('0x105'),_0x31ad18),this[_0x3f78('0x77')]['set'](_0x3f78('0x89'),_0x5cdfee),this[_0x3f78('0x77')]['set'](_0x3f78('0xf6'),_0x36d9bd),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x53'),_0x357c00),this[_0x3f78('0x77')]['set'](_0x3f78('0x1b'),_0x36d9bd),this[_0x3f78('0x77')][_0x3f78('0x3e')](_0x3f78('0x68'),_0x5cdfee),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x3b'),_0x36d9bd),this[_0x3f78('0x77')][_0x3f78('0x3e')](_0x3f78('0xd3'),_0x357c00),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x115'),_0x36d9bd);}}function Bt(_0x22ff8e,_0x3feb97,_0x1572f4){for(const _0x52c3bc of _0x3feb97[_0x3f78('0xe5')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x52c3bc[_0x3f78('0x71')]==_0x52c3bc)return!0x1;if(!_0x1572f4[_0x3f78('0xb4')](_0x52c3bc))return!0x1;if(_0x22ff8e[_0x3f78('0x90')](_0x52c3bc)||_0x22ff8e[_0x3f78('0x10d')](_0x52c3bc))return!0x0;}return!0x1;}function _t(_0x188a7b){return _0x188a7b[_0x3f78('0xd9')][_0x3f78('0xe5')]==_0x188a7b[_0x3f78('0x118')][_0x3f78('0x7b')]&&_0x188a7b['end'][_0x3f78('0x9f')];}function Mt(_0x439e71,_0x17b806,_0x404635,_0x100f10){const _0x33fb9c=_0x1c5879=>!_0x1c5879[_0x3f78('0xd2')]['is'](_0x3f78('0x10e'))&&!_0x100f10[_0x3f78('0x90')](_0x1c5879[_0x3f78('0xd2')]),_0x4af227=_0x439e71['start'][_0x3f78('0x7f')](_0x33fb9c),_0x3609f1=_0x439e71['end'][_0x3f78('0x7f')](_0x33fb9c,{'direction':_0x3f78('0xc9')});return(!_0x439e71[_0x3f78('0x118')][_0x3f78('0x4e')](_0x4af227)||!_0x439e71[_0x3f78('0xd9')]['isEqual'](_0x3609f1))&&(_0x4af227[_0x3f78('0xfc')](_0x3609f1)?_0x404635[_0x3f78('0xe4')](_0x17b806,{'range':_0x404635[_0x3f78('0x107')](_0x4af227,_0x3609f1)}):_0x404635['removeMarker'](_0x17b806),!0x0);}function $t(_0xcdb461){return _0x3abb0f(_0xcdb461);}function Nt(_0x5d29c9){const _0xc044b2=_0x5d29c9[_0x3f78('0x118')][_0x3f78('0x7b')];return _0xc044b2&&_0xc044b2['is'](_0x3f78('0xa9'));}function Rt(_0x14ca12,_0x589dad){const _0x109dcb=_0x589dad[_0x3f78('0x7c')][_0x3f78('0x90')](_0x14ca12)||_0x589dad['schema']['isSelectable'](_0x14ca12);return _0x589dad[_0x3f78('0x107')](_0x589dad['createPositionAt'](_0x14ca12,_0x3f78('0xeb')),_0x109dcb?_0x589dad[_0x3f78('0x51')](_0x14ca12):_0x589dad[_0x3f78('0x5')](_0x14ca12,_0x3f78('0xd9')));}function jt(_0x3597d8,_0x31dd78,_0x4b39b8,_0x4f465a,_0xf2ef83){if(!xt(_0x3597d8,_0x31dd78))return!0x1;if(_0x4b39b8['end'][_0x3f78('0x4e')](_0x4f465a['start']))return!0x0;if(_0x3597d8['type']!=_0x31dd78[_0x3f78('0x62')])return!0x1;if(!_0x4b39b8[_0x3f78('0xd9')]['isTouching'](_0x4f465a[_0x3f78('0x118')]))return!0x1;const _0x320cde=_0xf2ef83['createRange'](_0x4b39b8[_0x3f78('0xd9')],_0x4f465a['start'])['getWalker']();for(const _0x51c56c of _0x320cde)if([_0x3f78('0x84'),'elementEnd'][_0x3f78('0x92')](_0x51c56c[_0x3f78('0x62')])&&_0xf2ef83[_0x3f78('0x7c')][_0x3f78('0x10d')](_0x51c56c['item']))return!0x1;return!0x0;}function xt(_0x59e6f1,_0x390e2f){return!(!_0x59e6f1[_0x3f78('0x2e')]||!_0x390e2f[_0x3f78('0x2e')])&&_0x4b2408(_0x59e6f1[_0x3f78('0xb3')],_0x390e2f['attributes']);}function Ut(_0x1d68b1,_0x466d9e){const _0x1c1259=Ot(_0x1d68b1[_0x3f78('0xb3')]),_0x1fe3d0=Ot(_0x466d9e);if(!_0x1d68b1[_0x3f78('0x2e')])return!0x1;for(const _0x22ad86 of Object[_0x3f78('0xa6')](_0x1fe3d0))if(!_0x4b2408(_0x1c1259[_0x22ad86],_0x1fe3d0[_0x22ad86]))return!0x1;return!0x0;}function Ot(_0x4928d8){const _0xdbf634=Object[_0x3f78('0x6b')]({},_0x4928d8);return delete _0xdbf634[_0x3f78('0x11b')],delete _0xdbf634['tablePasteChainId'],_0xdbf634;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x41db=['getByInnerView','discardAllSuggestions','activeMarkers','length','Discard\x20all\x20selected\x20suggestions','add','_updateController','isDirty','execute','locale','registerAnnotation','CommentsRepository','_refreshActiveMarkers','_handleSuggestionControllerDelayed','bind','values','separator','getSuggestion','comments.maxCommentsWhenCollapsed','trackChanges.disableComments','requires','trackChanges','hasSuggestion','suggestionLoaded','isOn','commandName','createAnnotationView','view','suggestionUnloaded','comments.maxCommentCharsWhenCollapsed','buttonView','refreshSelectedViews','suggestion-','isInContent','editing','destroy','get','arrowView','getJoined','acceptAllSuggestions','acceptSelectedSuggestions','_initializeController','focus','descriptionParts','comments.maxThreadTotalWeight','_viewToController','_disableComments','componentFactory','TrackChangesEditing','keys','map','SuggestionThreadView','unbind','getMarkerNames','clear','push','addComment','set','mainView','plugins','_destroyController','_createUIButton','_annotationViews','EditorAnnotations','reduce','filter','Annotations','value','commands','button','discardSelectedSuggestions','from','createAnnotation','innerView','commentThread','delete','size','config','_bindAnnotationToEditors','switchbutton','getFirstRange','has','model','editor','isMultiRange','lowest','_descriptionFactory','activeAnnotations','CommentView','change:activeAnnotations','suggestionChanged','source','head','pluginName','getRanges','listenTo','change:previous','discardButton','getMarkers','actionView','isEnabled','getAllAdjacentSuggestions','_handleControllerBuffer','type','trackChanges.SuggestionThreadView','_suggestionToController','Accept\x20all\x20suggestions','createCommentThreadController'];(function(_0x477f1c,_0x41db90){const _0x238753=function(_0x2c95bb){while(--_0x2c95bb){_0x477f1c['push'](_0x477f1c['shift']());}};_0x238753(++_0x41db90);}(_0x41db,0x190));const _0x2387=function(_0x477f1c,_0x41db90){_0x477f1c=_0x477f1c-0x0;let _0x238753=_0x41db[_0x477f1c];return _0x238753;};import{Plugin as _0x3b90f9}from'ckeditor5/src/core';import{Collection as _0x3b10e7}from'ckeditor5/src/utils';import{Model as _0x47d4b4,SplitButtonView as _0x5a627a,createDropdown as _0x39bfa8,addListToDropdown as _0x3ac346}from'ckeditor5/src/ui';import{Users as _0xd58a9,getDateTimeFormatter as _0x50be31,getAllMarkersDomElementsSorted as _0x4b73f5}from'ckeditor5-collaboration/src/collaboration-core';import _0x1511d4 from'./trackchangesediting';import _0x302437 from'./ui/suggestioncontroller';import _0x292e06 from'./ui/view/suggestionthreadview';import{getTranslation as _0x1e3975}from'./utils/common-translations';import _0x860fdd from'../theme/icons/track-changes.svg';export default class d extends _0x3b90f9{static get[_0x2387('0x34')](){return[_0x1511d4,_0xd58a9,_0x2387('0x2b'),_0x2387('0x62'),_0x2387('0x5f')];}static get[_0x2387('0x11')](){return'TrackChangesUI';}constructor(_0x2719cb){super(_0x2719cb),this[_0x2387('0x1d')]=new Map(),this[_0x2387('0x4d')]=new Map(),this[_0x2387('0x5e')]=new Map(),this[_0x2387('0x1a')]=new Map();const _0x2da3db=this[_0x2387('0x7')][_0x2387('0x1')];_0x2da3db['define'](_0x2387('0x1c'),_0x292e06),_0x2da3db['define']('trackChanges.disableComments',!0x1),this[_0x2387('0x4e')]=_0x2da3db[_0x2387('0x44')](_0x2387('0x33'));}[_0x2387('0x2d')](_0x112e7c,_0x516df2){0x0===this[_0x2387('0x1a')][_0x2387('0x0')]&&setTimeout(()=>{for(const [_0x5c57cf,_0x5313a9]of this[_0x2387('0x1a')]){const _0x1a1eaa=this[_0x2387('0x1d')][_0x2387('0x5')](_0x5c57cf);_0x1a1eaa||_0x5313a9?_0x1a1eaa&&_0x5313a9&&this['_destroyController'](_0x5c57cf):this[_0x2387('0x49')](_0x5c57cf);}this[_0x2387('0x7')][_0x2387('0x5b')][_0x2387('0x44')]('EditorAnnotations')[_0x2387('0x3f')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0x2387('0x56')]();},0xa),this[_0x2387('0x1a')][_0x2387('0x59')](_0x112e7c,_0x516df2);}['init'](){const _0x1989bc=this['editor'],_0x5c60da=_0x1989bc[_0x2387('0x5b')]['get']('TrackChangesEditing'),_0x508d85=_0x1989bc[_0x2387('0x5b')][_0x2387('0x44')](_0x2387('0x62')),_0x3a5255=_0x1989bc['plugins'][_0x2387('0x44')]('EditorAnnotations'),_0x391d2f=_0x1989bc[_0x2387('0x5b')][_0x2387('0x44')](_0x2387('0x2b'));_0x1989bc['ui'][_0x2387('0x4f')][_0x2387('0x25')]('trackChanges',_0x2ffdc4=>this[_0x2387('0x5d')](_0x2ffdc4)),_0x3a5255['addSourceCollector'](()=>{const _0x5f4602=[];for(const [_0x34586d,_0x23560a]of Array[_0x2387('0x67')](this[_0x2387('0x1d')])){const _0x54a474=_0x34586d[_0x2387('0x19')](),_0x598b8c=[];for(const _0x66dff6 of _0x54a474){if(!_0x66dff6[_0x2387('0x41')])continue;if(_0x66dff6[_0x2387('0x8')]){_0x598b8c[_0x2387('0x57')](..._0x66dff6[_0x2387('0x12')]());continue;}const _0x2fc448=_0x66dff6[_0x2387('0x4')]();if(_0x598b8c[_0x2387('0x23')]>0x0){const _0x279bb0=_0x598b8c[0x0][_0x2387('0x46')](_0x2fc448);if(_0x279bb0){_0x598b8c[0x0]=_0x279bb0;continue;}}_0x598b8c[_0x2387('0x57')](_0x2fc448);}_0x5f4602[_0x2387('0x57')]([_0x23560a['view'],_0x598b8c]);}return _0x5f4602;}),this[_0x2387('0x13')](_0x5c60da,_0x2387('0x37'),(_0x56d23b,_0x350a53)=>{this[_0x2387('0x13')](_0x350a53,_0x2387('0x14'),(_0x47ab55,_0x35b8b1,_0xc415f5,_0x50f465)=>{_0x350a53['isInContent']&&(null==_0xc415f5?(this[_0x2387('0x26')](_0x50f465[_0x2387('0x10')]),this[_0x2387('0x2d')](_0x350a53,!0x1)):(this[_0x2387('0x26')](_0xc415f5['head']),this[_0x2387('0x2d')](_0x350a53,!0x0)));}),null===_0x350a53['previous']?this['_handleSuggestionControllerDelayed'](_0x350a53,!0x1):this[_0x2387('0x26')](_0x350a53[_0x2387('0x10')]);}),this[_0x2387('0x13')](_0x5c60da,_0x2387('0x3c'),(_0x2158d0,_0x2fd79b,_0x14a446)=>{this['stopListening'](_0x2fd79b,'change:previous'),this[_0x2387('0x1a')][_0x2387('0x6b')](_0x2fd79b);const _0x1b5c59=_0x14a446?_0x14a446['head']:_0x2fd79b,_0x5e66a3=this['_suggestionToController'][_0x2387('0x44')](_0x1b5c59);null!==_0x14a446&&this[_0x2387('0x26')](_0x1b5c59),null===_0x14a446&&_0x5e66a3&&this[_0x2387('0x5c')](_0x2fd79b);}),this[_0x2387('0x13')](_0x5c60da,_0x2387('0xe'),(_0x42a0ba,_0x2e6be4)=>{this[_0x2387('0x26')](_0x2e6be4);}),this[_0x2387('0x13')](_0x508d85,_0x2387('0xd'),()=>{this[_0x2387('0x2c')]();}),this[_0x2387('0x13')](_0x391d2f,_0x2387('0x58'),(_0x3d5e69,{threadId:_0x23a431,isFromAdapter:_0x56895c})=>{if(_0x56895c||!_0x5c60da[_0x2387('0x36')](_0x23a431))return;const _0x4166b5=_0x5c60da[_0x2387('0x31')](_0x23a431);this[_0x2387('0x1d')]['get'](_0x4166b5)[_0x2387('0x3b')]['focus']();},{'priority':_0x2387('0x9')});}['_refreshActiveMarkers'](){const _0x3a4f58=this[_0x2387('0x7')]['plugins'][_0x2387('0x44')]('Annotations'),_0x18c721=this['editor'][_0x2387('0x5b')]['get'](_0x2387('0x50')),_0x259013=Array[_0x2387('0x67')](_0x3a4f58[_0x2387('0xb')],_0x40eb40=>_0x40eb40[_0x2387('0x69')])[_0x2387('0x61')](_0x271b5d=>this['_viewToController'][_0x2387('0x5')](_0x271b5d)),_0x688ecf=[];for(const _0x4328e8 of _0x259013){const _0x54804b=this[_0x2387('0x4d')][_0x2387('0x44')](_0x4328e8)['model'][_0x2387('0x19')]();_0x688ecf[_0x2387('0x57')](..._0x54804b[_0x2387('0x60')]((_0x3e8a7c,_0x1beb8a)=>[..._0x3e8a7c,..._0x1beb8a[_0x2387('0x55')]()],[]));}_0x18c721[_0x2387('0x22')]=_0x688ecf;}['_createUIButton'](_0x5e84d6){const _0x37606b=_0x39bfa8(_0x5e84d6,_0x5a627a),_0x3b8746=this[_0x2387('0x7')][_0x2387('0x64')][_0x2387('0x44')](_0x2387('0x35')),_0x188e38=_0x1e3975(_0x5e84d6,'Track\x20changes');_0x37606b[_0x2387('0x3e')][_0x2387('0x59')]({'tooltip':_0x188e38,'label':_0x188e38,'icon':_0x860fdd}),_0x37606b[_0x2387('0x3e')]['bind'](_0x2387('0x38'))['to'](_0x3b8746,_0x2387('0x63')),_0x37606b[_0x2387('0x3e')]['on'](_0x2387('0x28'),()=>{_0x3b8746['execute'](),this[_0x2387('0x7')]['editing']['view'][_0x2387('0x4a')]();});const _0xfa86da=new _0x3b10e7(),_0x182c5e=[{'type':_0x2387('0x3'),'model':{'withText':!0x0,'label':_0x188e38,'commandName':'trackChanges'}},{'type':_0x2387('0x30')},{'type':'button','model':{'withText':!0x0,'label':_0x1e3975(_0x5e84d6,_0x2387('0x1e')),'commandName':_0x2387('0x47')}},{'type':_0x2387('0x65'),'model':{'withText':!0x0,'label':_0x1e3975(_0x5e84d6,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x2387('0x48')}},{'type':'button','model':{'withText':!0x0,'label':_0x1e3975(_0x5e84d6,'Discard\x20all\x20suggestions'),'commandName':_0x2387('0x21')}},{'type':'button','model':{'withText':!0x0,'label':_0x1e3975(_0x5e84d6,_0x2387('0x24')),'commandName':_0x2387('0x66')}}];for(const _0x350b73 of _0x182c5e){let _0x290ae0={'type':_0x2387('0x30')};if(_0x350b73[_0x2387('0x6')]){const _0x50db4d=new _0x47d4b4(_0x350b73[_0x2387('0x6')]),_0x182fdb=this[_0x2387('0x7')][_0x2387('0x64')]['get'](_0x50db4d['commandName']);_0x50db4d[_0x2387('0x2e')](_0x2387('0x38'),_0x2387('0x18'))['to'](_0x182fdb,_0x2387('0x63'),_0x2387('0x18')),_0x290ae0={'type':_0x350b73[_0x2387('0x1b')],'model':_0x50db4d};}_0xfa86da[_0x2387('0x25')](_0x290ae0);}_0x3ac346(_0x37606b,_0xfa86da);const _0x5b3876=_0x182c5e[_0x2387('0x61')](_0x225856=>null!=_0x225856[_0x2387('0x6')])[_0x2387('0x52')](_0x5c80fa=>this[_0x2387('0x7')]['commands'][_0x2387('0x44')](_0x5c80fa[_0x2387('0x6')][_0x2387('0x39')])),_0x330bf6=_0x37606b[_0x2387('0x3e')];return _0x330bf6[_0x2387('0x17')][_0x2387('0x54')]('isEnabled'),_0x330bf6[_0x2387('0x45')][_0x2387('0x54')](_0x2387('0x18')),_0x330bf6[_0x2387('0x17')][_0x2387('0x2e')](_0x2387('0x18'))['to'](_0x3b8746,_0x2387('0x18')),_0x330bf6[_0x2387('0x45')][_0x2387('0x2e')](_0x2387('0x18'))['toMany'](_0x5b3876,_0x2387('0x18'),(..._0x4357a3)=>_0x4357a3['some'](_0x5de933=>_0x5de933)),_0x37606b['on'](_0x2387('0x28'),_0x3d4827=>{this[_0x2387('0x7')][_0x2387('0x28')](_0x3d4827[_0x2387('0xf')][_0x2387('0x39')]),this[_0x2387('0x7')][_0x2387('0x42')][_0x2387('0x3b')][_0x2387('0x4a')]();}),_0x37606b;}['_initializeController'](_0x1323b3){const _0x59d5e1=this[_0x2387('0x7')],_0x4a900e=_0x59d5e1[_0x2387('0x1')],_0x1ab2d3=_0x59d5e1[_0x2387('0x5b')][_0x2387('0x44')](_0x2387('0x62')),_0x17e335=_0x59d5e1['plugins'][_0x2387('0x44')](_0x2387('0x2b')),_0x2ae24c=_0x59d5e1[_0x2387('0x5b')]['get'](_0x2387('0x5f')),_0x3d3889=_0x59d5e1[_0x2387('0x5b')]['get'](_0xd58a9)['me'],_0xbb42c1=_0x4a900e[_0x2387('0x44')](_0x2387('0x35'))[_0x2387('0x53')],{CommentsListView:_0x2013d0,CommentThreadInputView:_0x4cc8d1}=_0x59d5e1[_0x2387('0x5b')][_0x2387('0x44')]('CommentsUI');let _0x3c7883,_0x2f95bd;this[_0x2387('0x5e')]['has'](_0x1323b3['id'])?(_0x2f95bd=this[_0x2387('0x5e')][_0x2387('0x44')](_0x1323b3['id']),_0x3c7883=_0x2f95bd['mainView']):(_0x3c7883=new _0xbb42c1(_0x59d5e1['locale'],_0x1323b3,_0x3d3889,{'disableComments':this[_0x2387('0x4e')],'editorConfig':_0x4a900e[_0x2387('0x44')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4a900e[_0x2387('0x44')](_0x2387('0x32')),'maxThreadTotalWeight':_0x4a900e[_0x2387('0x44')](_0x2387('0x4c')),'maxCommentCharsWhenCollapsed':_0x4a900e[_0x2387('0x44')](_0x2387('0x3d')),'formatDateTime':_0x50be31(_0x4a900e[_0x2387('0x44')](_0x2387('0x29'))),'CommentView':_0x4a900e[_0x2387('0x44')]('comments')[_0x2387('0xc')],'CommentsListView':_0x2013d0,'CommentThreadInputView':_0x4cc8d1}),_0x3c7883['acceptButton']['on'](_0x2387('0x28'),()=>{_0x59d5e1[_0x2387('0x42')][_0x2387('0x3b')][_0x2387('0x4a')]();}),_0x3c7883[_0x2387('0x15')]['on'](_0x2387('0x28'),()=>{_0x59d5e1[_0x2387('0x42')][_0x2387('0x3b')][_0x2387('0x4a')]();}),_0x2f95bd=_0x1ab2d3[_0x2387('0x3a')](this[_0x2387('0x7')][_0x2387('0x29')],_0x3c7883),_0x2f95bd[_0x2387('0x2e')](_0x2387('0x27'))['to'](_0x3c7883,'isDirty'),_0x2f95bd[_0x2387('0x2e')](_0x2387('0x23'))['to'](_0x3c7883),_0x2f95bd[_0x2387('0x2e')](_0x2387('0x1b'))['to'](_0x3c7883,_0x2387('0x1b'),_0x4ef87a=>_0x2387('0x40')+_0x4ef87a),this[_0x2387('0x5e')][_0x2387('0x59')](_0x1323b3['id'],_0x2f95bd));const _0x4e6158=_0x17e335[_0x2387('0x1f')](_0x1323b3[_0x2387('0x6a')],_0x3c7883),_0x306428=new _0x302437(_0x59d5e1,_0x1323b3,_0x3c7883,_0x4e6158),_0x6bf0cb=_0x1323b3['getAllAdjacentSuggestions']()['filter'](_0x52fd51=>_0x52fd51[_0x2387('0x41')]);_0x3c7883[_0x2387('0x4b')]=_0x59d5e1[_0x2387('0x5b')][_0x2387('0x44')](_0x2387('0x50'))[_0x2387('0xa')]['getDescriptions'](_0x6bf0cb),this[_0x2387('0x1d')][_0x2387('0x59')](_0x1323b3,_0x306428),this[_0x2387('0x4d')][_0x2387('0x59')](_0x3c7883,_0x306428);const _0x40e077=_0x1ab2d3[_0x2387('0x68')]({'view':_0x2f95bd,'target':()=>{const _0x491588=[],_0x5331b2=_0x1323b3[_0x2387('0x19')]()[_0x2387('0x61')](_0x1f7b65=>_0x1f7b65[_0x2387('0x41')]);for(const _0x32b8d2 of _0x5331b2)_0x491588[_0x2387('0x57')](..._0x32b8d2[_0x2387('0x16')]());return _0x4b73f5(_0x59d5e1['editing'],_0x491588);},'type':()=>_0x2387('0x40')+_0x306428[_0x2387('0x3b')][_0x2387('0x1b')]});_0x17e335[_0x2387('0x2')](_0x3c7883,_0x40e077),_0x1ab2d3[_0x2387('0x25')](_0x40e077),_0x2ae24c[_0x2387('0x2a')](_0x40e077);}[_0x2387('0x5c')](_0x5c3eec){const _0x3e29ae=this['editor'][_0x2387('0x5b')][_0x2387('0x44')](_0x2387('0x62')),_0x2475b4=this[_0x2387('0x1d')][_0x2387('0x44')](_0x5c3eec),_0x2c0a69=_0x2475b4['view'],_0x55dec7=_0x3e29ae[_0x2387('0x20')](_0x2c0a69);_0x55dec7&&_0x3e29ae['remove'](_0x55dec7),this[_0x2387('0x1d')]['delete'](_0x5c3eec),this[_0x2387('0x4d')]['delete'](_0x2c0a69),_0x2475b4[_0x2387('0x43')]();}[_0x2387('0x26')](_0x4224c3){if(!_0x4224c3[_0x2387('0x41')]||!this[_0x2387('0x1d')][_0x2387('0x5')](_0x4224c3))return;const _0x141faa=this[_0x2387('0x7')][_0x2387('0x5b')][_0x2387('0x44')](_0x2387('0x50')),_0x45c068=this[_0x2387('0x1d')][_0x2387('0x44')](_0x4224c3),_0x3c1a0d=_0x4224c3[_0x2387('0x19')]();_0x45c068[_0x2387('0x3b')][_0x2387('0x4b')]=_0x141faa[_0x2387('0xa')]['getDescriptions'](_0x3c1a0d);}[_0x2387('0x43')](){for(const _0x3b6808 of this['_suggestionToController'][_0x2387('0x51')]())this[_0x2387('0x5c')](_0x3b6808);for(const _0x43100c of this[_0x2387('0x5e')][_0x2387('0x2f')]())_0x43100c[_0x2387('0x5a')][_0x2387('0x43')]();super[_0x2387('0x43')]();}}
|
|
23
|
+
const _0x3dfe=['CommentsUI','innerView','length','set','execute','Annotations','isDirty','locale','actionView','from','addSourceCollector','_bindAnnotationToEditors','previous','isInContent','model','change:previous','commands','acceptSelectedSuggestions','add','_annotationViews','comments','CommentView','Accept\x20all\x20selected\x20suggestions','head','suggestionLoaded','_suggestionToController','_descriptionFactory','type','bind','activeAnnotations','_updateController','toMany','createAnnotation','Accept\x20all\x20suggestions','remove','createCommentThreadController','arrowView','pluginName','acceptAllSuggestions','separator','switchbutton','view','init','suggestionChanged','define','getAllAdjacentSuggestions','Track\x20changes','_handleControllerBuffer','plugins','CommentsRepository','trackChanges.disableComments','isMultiRange','activeMarkers','comments.maxThreadTotalWeight','getByInnerView','_viewToController','commandName','editor','buttonView','keys','Discard\x20all\x20suggestions','discardSelectedSuggestions','stopListening','destroy','editing','suggestion-','trackChanges','unbind','get','getSuggestion','getDescriptions','delete','_disableComments','focus','button','getMarkers','mainView','EditorAnnotations','Discard\x20all\x20selected\x20suggestions','reduce','isOn','lowest','refreshSelectedViews','comments.editorConfig','listenTo','_destroyController','push','isEnabled','source','_refreshActiveMarkers','filter','trackChanges.SuggestionThreadView','value','TrackChangesEditing','_createUIButton','comments.maxCommentsWhenCollapsed','acceptButton','has','getFirstRange','change:activeAnnotations','requires','hasSuggestion','_handleSuggestionControllerDelayed','componentFactory','descriptionParts','size'];(function(_0x5c644f,_0x3dfecd){const _0x5d01aa=function(_0x510228){while(--_0x510228){_0x5c644f['push'](_0x5c644f['shift']());}};_0x5d01aa(++_0x3dfecd);}(_0x3dfe,0x1e8));const _0x5d01=function(_0x5c644f,_0x3dfecd){_0x5c644f=_0x5c644f-0x0;let _0x5d01aa=_0x3dfe[_0x5c644f];return _0x5d01aa;};import{Plugin as _0xa84909}from'ckeditor5/src/core';import{Collection as _0x199267}from'ckeditor5/src/utils';import{Model as _0x31fa69,SplitButtonView as _0x2ede9c,createDropdown as _0x500b77,addListToDropdown as _0x4dc9b1}from'ckeditor5/src/ui';import{Users as _0x212378,getDateTimeFormatter as _0x26d530,getAllMarkersDomElementsSorted as _0x2e1fc5}from'ckeditor5-collaboration/src/collaboration-core';import _0x313b0a from'./trackchangesediting';import _0x4bf90f from'./ui/suggestioncontroller';import _0x107e2a from'./ui/view/suggestionthreadview';import{getTranslation as _0x22c608}from'./utils/common-translations';import _0x188be6 from'../theme/icons/track-changes.svg';export default class d extends _0xa84909{static get[_0x5d01('0x24')](){return[_0x313b0a,_0x212378,_0x5d01('0x5b'),_0x5d01('0x2f'),_0x5d01('0xd')];}static get[_0x5d01('0x4f')](){return'TrackChangesUI';}constructor(_0x144d09){super(_0x144d09),this[_0x5d01('0x43')]=new Map(),this[_0x5d01('0x61')]=new Map(),this[_0x5d01('0x3d')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x31252f=this[_0x5d01('0x63')]['config'];_0x31252f['define'](_0x5d01('0x1b'),_0x107e2a),_0x31252f[_0x5d01('0x56')](_0x5d01('0x5c'),!0x1),this[_0x5d01('0x8')]=_0x31252f[_0x5d01('0x4')]('trackChanges.disableComments');}[_0x5d01('0x26')](_0x4950e8,_0x49848a){0x0===this[_0x5d01('0x59')][_0x5d01('0x29')]&&setTimeout(()=>{for(const [_0x1e7f86,_0x200404]of this['_handleControllerBuffer']){const _0x198b4f=this[_0x5d01('0x43')][_0x5d01('0x21')](_0x1e7f86);_0x198b4f||_0x200404?_0x198b4f&&_0x200404&&this[_0x5d01('0x15')](_0x1e7f86):this['_initializeController'](_0x1e7f86);}this[_0x5d01('0x63')]['plugins'][_0x5d01('0x4')](_0x5d01('0xd'))[_0x5d01('0x12')](),this[_0x5d01('0x19')](),this[_0x5d01('0x59')]['clear']();},0xa),this[_0x5d01('0x59')]['set'](_0x4950e8,_0x49848a);}[_0x5d01('0x54')](){const _0x3b6fec=this[_0x5d01('0x63')],_0x12d2f6=_0x3b6fec[_0x5d01('0x5a')][_0x5d01('0x4')](_0x5d01('0x1d')),_0x1117c4=_0x3b6fec['plugins']['get'](_0x5d01('0x2f')),_0x168f68=_0x3b6fec[_0x5d01('0x5a')][_0x5d01('0x4')](_0x5d01('0xd')),_0xc6c41f=_0x3b6fec[_0x5d01('0x5a')][_0x5d01('0x4')](_0x5d01('0x5b'));_0x3b6fec['ui'][_0x5d01('0x27')]['add'](_0x5d01('0x2'),_0x286700=>this[_0x5d01('0x1e')](_0x286700)),_0x168f68[_0x5d01('0x34')](()=>{const _0x2b2a2=[];for(const [_0x2a28dc,_0x3edc2e]of Array[_0x5d01('0x33')](this['_suggestionToController'])){const _0x32ed1d=_0x2a28dc[_0x5d01('0x57')](),_0x287ba3=[];for(const _0x4732cc of _0x32ed1d){if(!_0x4732cc['isInContent'])continue;if(_0x4732cc[_0x5d01('0x5d')]){_0x287ba3[_0x5d01('0x16')](..._0x4732cc['getRanges']());continue;}const _0x24259c=_0x4732cc[_0x5d01('0x22')]();if(_0x287ba3[_0x5d01('0x2c')]>0x0){const _0x1dfee7=_0x287ba3[0x0]['getJoined'](_0x24259c);if(_0x1dfee7){_0x287ba3[0x0]=_0x1dfee7;continue;}}_0x287ba3['push'](_0x24259c);}_0x2b2a2[_0x5d01('0x16')]([_0x3edc2e['view'],_0x287ba3]);}return _0x2b2a2;}),this[_0x5d01('0x14')](_0x12d2f6,_0x5d01('0x42'),(_0x26ff5c,_0x2cf2f4)=>{this[_0x5d01('0x14')](_0x2cf2f4,_0x5d01('0x39'),(_0x5971e7,_0x8b5268,_0x51cddb,_0x2618bf)=>{_0x2cf2f4['isInContent']&&(null==_0x51cddb?(this[_0x5d01('0x48')](_0x2618bf['head']),this[_0x5d01('0x26')](_0x2cf2f4,!0x1)):(this[_0x5d01('0x48')](_0x51cddb[_0x5d01('0x41')]),this[_0x5d01('0x26')](_0x2cf2f4,!0x0)));}),null===_0x2cf2f4[_0x5d01('0x36')]?this['_handleSuggestionControllerDelayed'](_0x2cf2f4,!0x1):this['_updateController'](_0x2cf2f4[_0x5d01('0x41')]);}),this[_0x5d01('0x14')](_0x12d2f6,'suggestionUnloaded',(_0x15b28c,_0x339544,_0x2e3239)=>{this[_0x5d01('0x68')](_0x339544,_0x5d01('0x39')),this[_0x5d01('0x59')][_0x5d01('0x7')](_0x339544);const _0x27cddc=_0x2e3239?_0x2e3239[_0x5d01('0x41')]:_0x339544,_0x5a6829=this[_0x5d01('0x43')][_0x5d01('0x4')](_0x27cddc);null!==_0x2e3239&&this['_updateController'](_0x27cddc),null===_0x2e3239&&_0x5a6829&&this[_0x5d01('0x15')](_0x339544);}),this['listenTo'](_0x12d2f6,_0x5d01('0x55'),(_0x56780c,_0xb29059)=>{this[_0x5d01('0x48')](_0xb29059);}),this[_0x5d01('0x14')](_0x1117c4,_0x5d01('0x23'),()=>{this['_refreshActiveMarkers']();}),this[_0x5d01('0x14')](_0xc6c41f,'addComment',(_0x10a034,{threadId:_0x56c1f0,isFromAdapter:_0x1c3496})=>{if(_0x1c3496||!_0x12d2f6[_0x5d01('0x25')](_0x56c1f0))return;const _0x44f2ee=_0x12d2f6[_0x5d01('0x5')](_0x56c1f0);this[_0x5d01('0x43')][_0x5d01('0x4')](_0x44f2ee)['view']['focus']();},{'priority':_0x5d01('0x11')});}[_0x5d01('0x19')](){const _0x715cbe=this['editor'][_0x5d01('0x5a')][_0x5d01('0x4')](_0x5d01('0x2f')),_0x1d467b=this[_0x5d01('0x63')][_0x5d01('0x5a')][_0x5d01('0x4')]('TrackChangesEditing'),_0x3d3c7f=Array[_0x5d01('0x33')](_0x715cbe[_0x5d01('0x47')],_0x202ee6=>_0x202ee6[_0x5d01('0x2b')])[_0x5d01('0x1a')](_0x4d54d5=>this[_0x5d01('0x61')][_0x5d01('0x21')](_0x4d54d5)),_0x182f88=[];for(const _0x15ac73 of _0x3d3c7f){const _0x5f37d1=this[_0x5d01('0x61')][_0x5d01('0x4')](_0x15ac73)[_0x5d01('0x38')][_0x5d01('0x57')]();_0x182f88[_0x5d01('0x16')](..._0x5f37d1[_0x5d01('0xf')]((_0x384614,_0x1ad9e4)=>[..._0x384614,..._0x1ad9e4['getMarkerNames']()],[]));}_0x1d467b[_0x5d01('0x5e')]=_0x182f88;}[_0x5d01('0x1e')](_0x1d693b){const _0x11e7c9=_0x500b77(_0x1d693b,_0x2ede9c),_0xd77e98=this['editor'][_0x5d01('0x3a')][_0x5d01('0x4')]('trackChanges'),_0x443497=_0x22c608(_0x1d693b,_0x5d01('0x58'));_0x11e7c9[_0x5d01('0x64')][_0x5d01('0x2d')]({'tooltip':_0x443497,'label':_0x443497,'icon':_0x188be6}),_0x11e7c9[_0x5d01('0x64')]['bind'](_0x5d01('0x10'))['to'](_0xd77e98,_0x5d01('0x1c')),_0x11e7c9['buttonView']['on'](_0x5d01('0x2e'),()=>{_0xd77e98['execute'](),this['editor'][_0x5d01('0x0')][_0x5d01('0x53')][_0x5d01('0x9')]();});const _0xc7ac6f=new _0x199267(),_0x2d8446=[{'type':_0x5d01('0x52'),'model':{'withText':!0x0,'label':_0x443497,'commandName':_0x5d01('0x2')}},{'type':_0x5d01('0x51')},{'type':_0x5d01('0xa'),'model':{'withText':!0x0,'label':_0x22c608(_0x1d693b,_0x5d01('0x4b')),'commandName':_0x5d01('0x50')}},{'type':_0x5d01('0xa'),'model':{'withText':!0x0,'label':_0x22c608(_0x1d693b,_0x5d01('0x40')),'commandName':_0x5d01('0x3b')}},{'type':_0x5d01('0xa'),'model':{'withText':!0x0,'label':_0x22c608(_0x1d693b,_0x5d01('0x66')),'commandName':'discardAllSuggestions'}},{'type':_0x5d01('0xa'),'model':{'withText':!0x0,'label':_0x22c608(_0x1d693b,_0x5d01('0xe')),'commandName':_0x5d01('0x67')}}];for(const _0x1aec46 of _0x2d8446){let _0x5e1203={'type':'separator'};if(_0x1aec46[_0x5d01('0x38')]){const _0x1a5359=new _0x31fa69(_0x1aec46['model']),_0x2fbdfb=this[_0x5d01('0x63')][_0x5d01('0x3a')]['get'](_0x1a5359[_0x5d01('0x62')]);_0x1a5359['bind'](_0x5d01('0x10'),_0x5d01('0x17'))['to'](_0x2fbdfb,_0x5d01('0x1c'),'isEnabled'),_0x5e1203={'type':_0x1aec46[_0x5d01('0x45')],'model':_0x1a5359};}_0xc7ac6f['add'](_0x5e1203);}_0x4dc9b1(_0x11e7c9,_0xc7ac6f);const _0x46a172=_0x2d8446['filter'](_0x166051=>null!=_0x166051[_0x5d01('0x38')])['map'](_0x313c88=>this[_0x5d01('0x63')][_0x5d01('0x3a')]['get'](_0x313c88[_0x5d01('0x38')][_0x5d01('0x62')])),_0x7fa68=_0x11e7c9[_0x5d01('0x64')];return _0x7fa68[_0x5d01('0x32')][_0x5d01('0x3')](_0x5d01('0x17')),_0x7fa68[_0x5d01('0x4e')][_0x5d01('0x3')](_0x5d01('0x17')),_0x7fa68[_0x5d01('0x32')]['bind']('isEnabled')['to'](_0xd77e98,_0x5d01('0x17')),_0x7fa68[_0x5d01('0x4e')][_0x5d01('0x46')](_0x5d01('0x17'))[_0x5d01('0x49')](_0x46a172,_0x5d01('0x17'),(..._0x2b36c5)=>_0x2b36c5['some'](_0xd34a97=>_0xd34a97)),_0x11e7c9['on'](_0x5d01('0x2e'),_0x4d8a83=>{this[_0x5d01('0x63')][_0x5d01('0x2e')](_0x4d8a83[_0x5d01('0x18')]['commandName']),this[_0x5d01('0x63')][_0x5d01('0x0')][_0x5d01('0x53')]['focus']();}),_0x11e7c9;}['_initializeController'](_0x5eafae){const _0x3e71b4=this[_0x5d01('0x63')],_0xf3d7f1=_0x3e71b4['config'],_0x155f5b=_0x3e71b4['plugins'][_0x5d01('0x4')](_0x5d01('0x2f')),_0x17ce0d=_0x3e71b4['plugins'][_0x5d01('0x4')](_0x5d01('0x5b')),_0xe99a43=_0x3e71b4[_0x5d01('0x5a')][_0x5d01('0x4')]('EditorAnnotations'),_0x50f35c=_0x3e71b4[_0x5d01('0x5a')][_0x5d01('0x4')](_0x212378)['me'],_0x2f4cfe=_0xf3d7f1['get'](_0x5d01('0x2'))['SuggestionThreadView'],{CommentsListView:_0x22abf5,CommentThreadInputView:_0x1873ba}=_0x3e71b4[_0x5d01('0x5a')]['get'](_0x5d01('0x2a'));let _0x1d8276,_0x517d0d;this[_0x5d01('0x3d')][_0x5d01('0x21')](_0x5eafae['id'])?(_0x517d0d=this['_annotationViews']['get'](_0x5eafae['id']),_0x1d8276=_0x517d0d[_0x5d01('0xc')]):(_0x1d8276=new _0x2f4cfe(_0x3e71b4[_0x5d01('0x31')],_0x5eafae,_0x50f35c,{'disableComments':this[_0x5d01('0x8')],'editorConfig':_0xf3d7f1['get'](_0x5d01('0x13')),'maxCommentsWhenCollapsed':_0xf3d7f1[_0x5d01('0x4')](_0x5d01('0x1f')),'maxThreadTotalWeight':_0xf3d7f1[_0x5d01('0x4')](_0x5d01('0x5f')),'maxCommentCharsWhenCollapsed':_0xf3d7f1[_0x5d01('0x4')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x26d530(_0xf3d7f1[_0x5d01('0x4')](_0x5d01('0x31'))),'CommentView':_0xf3d7f1[_0x5d01('0x4')](_0x5d01('0x3e'))[_0x5d01('0x3f')],'CommentsListView':_0x22abf5,'CommentThreadInputView':_0x1873ba}),_0x1d8276[_0x5d01('0x20')]['on'](_0x5d01('0x2e'),()=>{_0x3e71b4[_0x5d01('0x0')]['view'][_0x5d01('0x9')]();}),_0x1d8276['discardButton']['on'](_0x5d01('0x2e'),()=>{_0x3e71b4['editing'][_0x5d01('0x53')]['focus']();}),_0x517d0d=_0x155f5b['createAnnotationView'](this[_0x5d01('0x63')]['locale'],_0x1d8276),_0x517d0d['bind'](_0x5d01('0x30'))['to'](_0x1d8276,_0x5d01('0x30')),_0x517d0d['bind'](_0x5d01('0x2c'))['to'](_0x1d8276),_0x517d0d[_0x5d01('0x46')](_0x5d01('0x45'))['to'](_0x1d8276,_0x5d01('0x45'),_0x2940e5=>_0x5d01('0x1')+_0x2940e5),this['_annotationViews'][_0x5d01('0x2d')](_0x5eafae['id'],_0x517d0d));const _0x4c1c4c=_0x17ce0d[_0x5d01('0x4d')](_0x5eafae['commentThread'],_0x1d8276),_0x2d395f=new _0x4bf90f(_0x3e71b4,_0x5eafae,_0x1d8276,_0x4c1c4c),_0x3ca3e7=_0x5eafae[_0x5d01('0x57')]()[_0x5d01('0x1a')](_0x40e83f=>_0x40e83f[_0x5d01('0x37')]);_0x1d8276[_0x5d01('0x28')]=_0x3e71b4['plugins'][_0x5d01('0x4')](_0x5d01('0x1d'))[_0x5d01('0x44')]['getDescriptions'](_0x3ca3e7),this[_0x5d01('0x43')][_0x5d01('0x2d')](_0x5eafae,_0x2d395f),this[_0x5d01('0x61')][_0x5d01('0x2d')](_0x1d8276,_0x2d395f);const _0x3b68a7=_0x155f5b[_0x5d01('0x4a')]({'view':_0x517d0d,'target':()=>{const _0x11cd9c=[],_0x12b3ba=_0x5eafae[_0x5d01('0x57')]()[_0x5d01('0x1a')](_0x20e528=>_0x20e528['isInContent']);for(const _0x5cda34 of _0x12b3ba)_0x11cd9c['push'](..._0x5cda34[_0x5d01('0xb')]());return _0x2e1fc5(_0x3e71b4['editing'],_0x11cd9c);},'type':()=>_0x5d01('0x1')+_0x2d395f[_0x5d01('0x53')][_0x5d01('0x45')]});_0x17ce0d[_0x5d01('0x35')](_0x1d8276,_0x3b68a7),_0x155f5b[_0x5d01('0x3c')](_0x3b68a7),_0xe99a43['registerAnnotation'](_0x3b68a7);}['_destroyController'](_0x455df0){const _0x14d2d5=this[_0x5d01('0x63')][_0x5d01('0x5a')]['get'](_0x5d01('0x2f')),_0x1bdeb5=this['_suggestionToController'][_0x5d01('0x4')](_0x455df0),_0x5d3148=_0x1bdeb5[_0x5d01('0x53')],_0x1e3c9e=_0x14d2d5[_0x5d01('0x60')](_0x5d3148);_0x1e3c9e&&_0x14d2d5[_0x5d01('0x4c')](_0x1e3c9e),this[_0x5d01('0x43')][_0x5d01('0x7')](_0x455df0),this[_0x5d01('0x61')]['delete'](_0x5d3148),_0x1bdeb5[_0x5d01('0x69')]();}[_0x5d01('0x48')](_0x59bcdd){if(!_0x59bcdd['isInContent']||!this[_0x5d01('0x43')][_0x5d01('0x21')](_0x59bcdd))return;const _0x4508a3=this[_0x5d01('0x63')]['plugins']['get'](_0x5d01('0x1d')),_0x55a6f7=this[_0x5d01('0x43')]['get'](_0x59bcdd),_0x514a51=_0x59bcdd['getAllAdjacentSuggestions']();_0x55a6f7[_0x5d01('0x53')]['descriptionParts']=_0x4508a3[_0x5d01('0x44')][_0x5d01('0x6')](_0x514a51);}[_0x5d01('0x69')](){for(const _0x1f3d4e of this[_0x5d01('0x43')][_0x5d01('0x65')]())this[_0x5d01('0x15')](_0x1f3d4e);for(const _0x229e66 of this[_0x5d01('0x3d')]['values']())_0x229e66[_0x5d01('0xc')]['destroy']();super[_0x5d01('0x69')]();}}
|