@ckeditor/ckeditor5-track-changes 39.0.2 → 40.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +3 -3
- package/README.md +1 -1
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +20 -1
- package/lang/translations/ar.po +76 -0
- package/lang/translations/az.po +76 -0
- package/lang/translations/bg.po +76 -0
- package/lang/translations/bn.po +76 -0
- package/lang/translations/ca.po +76 -0
- package/lang/translations/cs.po +76 -0
- package/lang/translations/da.po +76 -0
- package/lang/translations/de.po +76 -0
- package/lang/translations/el.po +76 -0
- package/lang/translations/en-au.po +76 -0
- package/lang/translations/en.po +76 -0
- package/lang/translations/es.po +76 -0
- package/lang/translations/et.po +76 -0
- package/lang/translations/fi.po +76 -0
- package/lang/translations/fr.po +76 -0
- package/lang/translations/gl.po +76 -0
- package/lang/translations/he.po +76 -0
- package/lang/translations/hi.po +76 -0
- package/lang/translations/hr.po +76 -0
- package/lang/translations/hu.po +76 -0
- package/lang/translations/id.po +76 -0
- package/lang/translations/it.po +76 -0
- package/lang/translations/ja.po +76 -0
- package/lang/translations/ko.po +76 -0
- package/lang/translations/lt.po +76 -0
- package/lang/translations/lv.po +76 -0
- package/lang/translations/ms.po +76 -0
- package/lang/translations/nl.po +76 -0
- package/lang/translations/no.po +76 -0
- package/lang/translations/pl.po +76 -0
- package/lang/translations/pt-br.po +94 -18
- package/lang/translations/pt.po +76 -0
- package/lang/translations/ro.po +76 -0
- package/lang/translations/ru.po +76 -0
- package/lang/translations/sk.po +76 -0
- package/lang/translations/sq.po +76 -0
- package/lang/translations/sr-latn.po +76 -0
- package/lang/translations/sr.po +76 -0
- package/lang/translations/sv.po +76 -0
- package/lang/translations/th.po +76 -0
- package/lang/translations/tk.po +76 -0
- package/lang/translations/tr.po +76 -0
- package/lang/translations/tt.po +76 -0
- package/lang/translations/uk.po +76 -0
- package/lang/translations/ur.po +76 -0
- package/lang/translations/vi.po +76 -0
- package/lang/translations/zh-cn.po +76 -0
- package/lang/translations/zh.po +76 -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/index.d.ts +1 -1
- package/src/integrations/aiassistant.d.ts +17 -0
- package/src/integrations/aiassistant.js +23 -0
- 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.d.ts +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.d.ts +0 -6
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.d.ts +17 -0
- package/src/integrations/imagestyle.js +23 -0
- 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.d.ts +0 -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.d.ts +26 -11
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +25 -5
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +5 -69
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +22 -19
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +59 -2
- 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.d.ts +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/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1333=['config','createSelection','previous','removeMarker','change:_saved','addMarker','update:suggestion','getMultiRangeId','Users','addCommentThread','reconvertMarker','isRemovable','getCustomProperty','registerPostFixer','root','commentThread','stop','_defaultCallbacks','differ','commandName','activeMarkers','length','options','ready','multi','setSelection','suggestion:','howMany','error-saving-suggestion-data-suggestion-discarded','_breakSuggestionMarker','item','_splitMarkerName','containsItem','getSuggestion','_joinSuggestions','markerName','containsRange','formatInline','getMarkers','before','requires','_setSuggestionRange','getRange','markInsertion','createdAt','_getSuggestionData','CommentsRepository','removeClass','removed','isAtEnd','updateMarker','pluginName','element','start','_rangeIsInLocalUserInsertion','buildSuggestion','_cutOutSuggestionMarker','fetchCommentThread','sort','end','getIntersection','track-changes-user-not-found','listenTo','discardAllSuggestions','getLastMatchingPosition','getAttribute','isBlock','change','getFirstMarker','suggestion','formatInline:chain','targetPosition','values','createRangeIn','createElement','_getExternalAuthor','marker-count','getDifference','getShiftedBy','split','mapper','dataReady','createPositionAt','getAncestors','_suggestions','author','_addSuggestionMarker','change:data','external:','tablePasteChainId','insertion:accept','createRange','isDocumentOperation','_addThreadToSuggestion','_joinWithAdjacentSuggestions','acceptSuggestion','trackChangesCommand','moveTargetPosition','detach','acceptAllSuggestions','suggestion-type','keys','addComment','newRange','getSuggestions','value','track-changes-suggestion-not-found','consume','insert','removeComment','getWalker','always','formatBlock:accept','schema','size','authoredAt','deletion:discard','getFirstRange','formatInline:accept','splice','_adapter','_registerDefaultCallbacks','ck-suggestion-marker','markerNameToElements','deletion:chain','catch','remove','trackChanges','rootName','_handleNewSuggestionMarker','_model','addMarkerName','for','getRanges','isObject','containsPosition','name','markBlockFormat','authorName','_enabledCommands','_createSuggestion','TrackChangesEditing','bindElementToMarker','lowest','isIntersectingWithRange','join','markMultiRangeBlockFormat','formatBlock:join','addMarker:suggestion','widget','define','markerToData','enableReadOnlyMode','add','addHighlight','isLocal','$graveyard','getItems','_isForcedDefaultExecutionBlock','_removeSuggestion','track-changes-adapter-already-set','rejected','deletion','updateSuggestion','@external','has','return','formatBlock:','removeMarkers','selection','isTouching','unbindElementFromMarkerName','insertion:','get','data-suggestion','unbind','markInlineFormat','setAttribute','document','insertContent','isSelectable','high','isLimit','createPositionBefore','range','_mergeNestedSuggestions','isEqual','init','getAllAdjacentSuggestions','insertion:join','highest','adapter','editing','formatInline:discard','push','discardSelectedSuggestions','multipleBlocks','dataToMarker','_isDataLoaded','discardSuggestion','conversion','execute','consumable','isAfter','model','_findSuggestions','_setSuggestionData','discard','from','PendingActions','suggestionUnloaded','move','writer','insertion:discard','ck-suggestion-marker--active','clear','applyOperation','group','fromRange','_suggestionState','isBefore','nodeBefore','suggestionLoaded','isMultiRange','toJSON','delete','commands','isArray','addUser','enableCommand','track-changes-adapter-missing-getsuggestion','markers','fromCharCode','skipNestingCheck','_refreshSuggestionsChain','upcast','formatGroupId','ck-suggestion-marker-formatBlock','trackChanges.trackFormatChanges','parent','isOwn','containerElement','nodeAfter','_updateSuggestionData','position','addRange','never','_getAuthorFromId','_editor','oldRange','_trackFormatChanges','_saved','_customCallbacks','addSuggestion','after','deletion:join','then','originalSuggestionId','set','insertion:chain','getNearestSelectionRange','editingDowncast','assign','ck-suggestion-marker-','some','markerReady','_checkSuggestionCorrectness','markMultiRangeDeletion','isInContent','forward','deletion:','insertion','suggestionChanged','showSuggestionHighlights','formatInline:','data','getSuggestionCallback','formatBlock:chain','getChangedMarkers','isExternal','trackChanges.mergeNestedSuggestions','locale','_suggestionFactory','next','isUndo','every','hasSuggestion','forceDefaultExecution','track-changes-suggestion-data-mismatch','hasCommentThread','$textProxy','containsRangeInObject','isNextTo','subType','_commentsRepository','enqueueChange','editor','head','addMarker:suggestion:formatBlock','dataDowncast','low','plugins','filter','batch','markDeletion','clone','toViewElement','creator','getUser','isCollapsed','accept','formatBlock','markMultiRangeInsertion','deleteContent','notReady','fire','backward','isInsideObject','getCommentThread','collaboration.channelId','attributes','change:activeMarkers','type','map','acceptSelectedSuggestions'];(function(_0x2f421e,_0x1333db){const _0x3a7f6e=function(_0xb39919){while(--_0xb39919){_0x2f421e['push'](_0x2f421e['shift']());}};_0x3a7f6e(++_0x1333db);}(_0x1333,0x12a));const _0x3a7f=function(_0x2f421e,_0x1333db){_0x2f421e=_0x2f421e-0x0;let _0x3a7f6e=_0x1333[_0x2f421e];return _0x3a7f6e;};import{Plugin as _0xfde1a2,PendingActions as _0x1aa3d4}from'ckeditor5/src/core';import{LiveRange as _0x55d7ae}from'ckeditor5/src/engine';import{CKEditorError as _0x4c734e,uid as _0x5147c7,priorities as _0x59479e,logWarning as _0x272082}from'ckeditor5/src/utils';import{toWidget as _0x1d8390}from'ckeditor5/src/widget';import{Users as _0x10aa56,hashObject as _0xf1b0e5}from'ckeditor5-collaboration/src/collaboration-core';import _0x4b4497 from'./commands/trackchangescommand';import _0x5b84cd from'./commands/acceptsuggestioncommand';import _0x51fa7a from'./commands/discardsuggestioncommand';import _0x1a0ece from'./commands/executeonallsuggestionscommand';import _0x2face2 from'./commands/executeonselectedsuggestionscommand';import _0x28c196 from'./suggestion';import _0x320eb6 from'./suggestiondescriptionfactory';import _0x42d9b4 from'./integrations/alignment';import _0x4d7172 from'./integrations/basicstyles';import _0x178dd2 from'./integrations/blockquote';import _0x46a047 from'./integrations/ckbox';import _0x4df194 from'./integrations/codeblock';import _0x25fef0 from'./integrations/comments';import _0x848063 from'./integrations/deletecommand';import _0x355aaa from'./integrations/documentlist';import _0x5dce16 from'./integrations/entercommand';import _0x4a1f33 from'./integrations/findandreplace';import _0x3bc82c from'./integrations/font';import _0x7883f9 from'./integrations/formatpainter';import _0x53c9ec from'./integrations/heading';import _0x30d6ab from'./integrations/highlight';import _0x43a405 from'./integrations/horizontalline';import _0x55cc4b from'./integrations/htmlembed';import _0x131c21 from'./integrations/image';import _0x3aeed9 from'./integrations/imagereplace';import _0x2a24cf from'./integrations/importword';import _0x500703 from'./integrations/indent';import _0x721833 from'./integrations/inputcommand';import _0x5b5d65 from'./integrations/link';import _0x364142 from'./integrations/list';import _0x3a0a3f from'./integrations/listproperties';import _0x3cee98 from'./integrations/mediaembed';import _0x59614e from'./integrations/mention';import _0x59c80d from'./integrations/pagebreak';import _0x407e02 from'./integrations/paragraph';import _0x504087 from'./integrations/removeformat';import _0x41fdab from'./integrations/restrictededitingmode';import _0x2f963d from'./integrations/shiftentercommand';import _0x2018e7 from'./integrations/standardeditingmode';import _0xa91553 from'./integrations/style';import _0x1a63f8 from'./integrations/table';import _0x3321d2 from'./integrations/tablemergesplit';import _0x2293f6 from'./integrations/tableheadings';import _0x12a3ae from'./integrations/tableclipboard';import _0x630b90 from'./integrations/tablecolumnresize';import _0x4941dc from'./integrations/template';import _0x4e64be from'./integrations/tableofcontents';import _0x1fa256 from'./integrations/title';import _0x3d9781 from'./integrations/undo';import{getTranslation as _0xdce868}from'./utils/common-translations';import _0x599b2c from'./integrations/tablecaption';import _0x2192dc from'./integrations/documentlistproperties';import _0x59b524 from'./integrations/tableproperties';import{isEqual as _0x36a598}from'lodash-es';export default class p extends _0xfde1a2{static get[_0x3a7f('0x43')](){return[_0x3a7f('0x49'),_0x10aa56,_0x1aa3d4,_0x42d9b4,_0x4d7172,_0x178dd2,_0x46a047,_0x4df194,_0x25fef0,_0x848063,_0x355aaa,_0x2192dc,_0x5dce16,_0x4a1f33,_0x3bc82c,_0x7883f9,_0x53c9ec,_0x30d6ab,_0x43a405,_0x55cc4b,_0x131c21,_0x3aeed9,_0x2a24cf,_0x500703,_0x721833,_0x5b5d65,_0x364142,_0x3a0a3f,_0x3cee98,_0x59614e,_0x59c80d,_0x407e02,_0x504087,_0x41fdab,_0x2f963d,_0x2018e7,_0xa91553,_0x1a63f8,_0x3321d2,_0x2293f6,_0x599b2c,_0x12a3ae,_0x630b90,_0x4e64be,_0x59b524,_0x4941dc,_0x1fa256,_0x3d9781];}static get[_0x3a7f('0x4e')](){return _0x3a7f('0xa8');}constructor(_0xf596a2){function _0x55345d(_0x531c3b){return _0x531c3b[_0x3a7f('0x19')](_0x3be567=>String[_0x3a7f('0x103')](_0x3be567))[_0x3a7f('0xac')]('');}super(_0xf596a2),this[_0x3a7f('0x11d')](_0x3a7f('0x2f'),[]),this['on'](_0x3a7f('0x17'),(_0x56ff5e,_0xe651a8,_0x50d675,_0x147a77)=>{this[_0x3a7f('0x9d')][_0x3a7f('0x5e')](()=>{for(const _0x2241d7 of[..._0x147a77,..._0x50d675])this[_0x3a7f('0x9d')][_0x3a7f('0x102')][_0x3a7f('0xc0')](_0x2241d7)&&_0xf596a2[_0x3a7f('0xdb')][_0x3a7f('0x25')](_0x2241d7);});}),this['_descriptionFactory']=new _0x320eb6(this[_0x3a7f('0x143')][_0x3a7f('0xe7')][_0x3a7f('0x8c')],this[_0x3a7f('0x143')][_0x3a7f('0x134')]),this[_0x3a7f('0x93')]=null,this[_0x3a7f('0x135')]=new Dt(this[_0x3a7f('0x143')]),this[_0x3a7f('0x6f')]=new Map(),this[_0x3a7f('0x141')]=_0xf596a2['plugins']['get'](_0x3a7f('0x49')),this[_0x3a7f('0xa6')]=new Set(),this['_model']=this[_0x3a7f('0x143')][_0x3a7f('0xe7')],this[_0x3a7f('0xf6')]=new WeakMap(),this[_0x3a7f('0xb9')]=!0x1,_0xf596a2[_0x3a7f('0x1b')][_0x3a7f('0xb1')]('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xf596a2[_0x3a7f('0x1b')][_0x3a7f('0xc8')](_0x3a7f('0x109')),_0xf596a2[_0x3a7f('0x1b')][_0x3a7f('0xb1')](_0x3a7f('0x133'),!0x0),this['_mergeNestedSuggestions']=_0xf596a2[_0x3a7f('0x1b')]['get'](_0x3a7f('0x133')),this['trackChangesCommand']=new _0x4b4497(_0xf596a2,this[_0x3a7f('0xa6')]),this[_0x55345d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x55345d([0x34,0x30,0x34,0x36,0x31,0x38,0x31,0x32]);}[_0x3a7f('0xd6')](){const _0xc13a8a=this['editor'];_0xc13a8a[_0x3a7f('0xe3')][_0x3a7f('0x9f')](_0x3a7f('0x120'))['markerToHighlight']({'model':_0x3a7f('0x60'),'view':_0x42d765=>{const {id:_0x55e234,type:_0x446560}=this[_0x3a7f('0x3a')](_0x42d765[_0x3a7f('0x3e')]),_0x1871fe=[_0x3a7f('0x95'),'ck-suggestion-marker-'+_0x446560];let _0x15459c=0xbb8;return this[_0x3a7f('0x2f')]['includes'](_0x42d765[_0x3a7f('0x3e')])&&(_0x1871fe[_0x3a7f('0xdd')](_0x3a7f('0xf1')),_0x15459c=0xbc2),_0x3a7f('0xbd')==_0x446560&&(_0x15459c+=0x5),{'classes':_0x1871fe,'attributes':{'data-suggestion':_0x55e234},'priority':_0x15459c};}}),_0xc13a8a[_0x3a7f('0xe3')][_0x3a7f('0x9f')]('dataDowncast')['add'](_0x513a0f=>{_0x513a0f['on'](_0x3a7f('0xaf'),(_0x3eeb9d,_0xbaffbc,_0x8632c5)=>{if(!_0x8632c5[_0x3a7f('0x31')][_0x3a7f('0x12c')])return;const _0x511fe9=_0xbaffbc[_0x3a7f('0x39')];if(!_0x511fe9)return;const _0x2e742f=_0x8632c5['mapper'][_0x3a7f('0x8')](_0x511fe9);_0xc13a8a[_0x3a7f('0xe7')]['schema'][_0x3a7f('0xa1')](_0x511fe9)&&_0x2e742f&&!_0x2e742f[_0x3a7f('0x27')](_0x3a7f('0xb0'))&&_0x2e742f['is'](_0x3a7f('0x10c'))&&_0x1d8390(_0x2e742f,_0x8632c5[_0x3a7f('0xef')]);},{'priority':_0x3a7f('0xd0')});}),_0xc13a8a[_0x3a7f('0xe3')][_0x3a7f('0x9f')](_0x3a7f('0x1'))['markerToHighlight']({'model':'suggestion','view':(_0x23e111,_0x2bb5e0)=>{if(!_0x2bb5e0['options'][_0x3a7f('0x12c')])return null;const {type:_0x2bbe68}=this[_0x3a7f('0x3a')](_0x23e111['markerName']);return{'classes':[_0x3a7f('0x95'),_0x3a7f('0x122')+_0x2bbe68],'priority':0xbb8};}});const _0x573c8b=({showActiveMarkers:_0x4c42e2=!0x0}={})=>(_0x4fb6ad,_0x5d4f1c,_0xcacfd4)=>{if(!_0x5d4f1c[_0x3a7f('0x39')])return;if(_0x5d4f1c[_0x3a7f('0x39')]['is'](_0x3a7f('0xc4')))return void _0xcacfd4[_0x3a7f('0xe5')][_0x3a7f('0x86')](_0x5d4f1c[_0x3a7f('0x39')],_0x4fb6ad[_0x3a7f('0xa3')]);const _0x41bc61=_0xcacfd4[_0x3a7f('0x6b')][_0x3a7f('0x8')](_0x5d4f1c['item']);if(!(_0x5d4f1c['item']['is']('element')&&_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x8c')][_0x3a7f('0x5d')](_0x5d4f1c[_0x3a7f('0x39')])&&!_0x41bc61[_0x3a7f('0x27')](_0x3a7f('0xb5'))))return;const {id:_0x49be0a}=this[_0x3a7f('0x3a')](_0x5d4f1c[_0x3a7f('0x3e')]);_0xcacfd4[_0x3a7f('0xef')]['addClass']([_0x3a7f('0x95'),_0x3a7f('0x108')],_0x41bc61),_0xcacfd4[_0x3a7f('0xef')][_0x3a7f('0xcc')](_0x3a7f('0xc9'),_0x49be0a,_0x41bc61),_0xcacfd4[_0x3a7f('0x6b')][_0x3a7f('0xa9')](_0x41bc61,_0x5d4f1c[_0x3a7f('0x3e')]),_0x4c42e2&&(this[_0x3a7f('0x2f')]['includes'](_0x5d4f1c['markerName'])?_0xcacfd4[_0x3a7f('0xef')]['addClass'](_0x3a7f('0xf1'),_0x41bc61):_0xcacfd4[_0x3a7f('0xef')]['removeClass'](_0x3a7f('0xf1'),_0x41bc61));for(const _0x166357 of _0xc13a8a['model'][_0x3a7f('0x64')](_0x5d4f1c[_0x3a7f('0x39')])[_0x3a7f('0xb8')]())_0xcacfd4[_0x3a7f('0xe5')][_0x3a7f('0x86')](_0x166357,_0x4fb6ad[_0x3a7f('0xa3')]);_0xcacfd4[_0x3a7f('0xe5')][_0x3a7f('0x86')](_0x5d4f1c['item'],_0x4fb6ad[_0x3a7f('0xa3')]);};_0xc13a8a[_0x3a7f('0xe3')][_0x3a7f('0x9f')]('dataDowncast')[_0x3a7f('0xb4')](_0x420085=>{_0x420085['on'](_0x3a7f('0x0'),(_0x3a21a3,_0x52fb3b,_0x345ac8)=>{_0x345ac8[_0x3a7f('0x31')]['showSuggestionHighlights']&&_0x573c8b({'showActiveMarkers':!0x1})(_0x3a21a3,_0x52fb3b,_0x345ac8);},{'priority':_0x3a7f('0xd9')});}),_0xc13a8a[_0x3a7f('0xe3')][_0x3a7f('0x9f')](_0x3a7f('0x1'))[_0x3a7f('0xb2')]({'model':_0x3a7f('0x60'),'view':(_0x3b710b,_0x317cd0)=>_0x317cd0[_0x3a7f('0x31')][_0x3a7f('0x12c')]?null:{'group':_0x3a7f('0x60'),'name':_0x3b710b['substr'](0xb)}}),_0xc13a8a[_0x3a7f('0xe3')][_0x3a7f('0x9f')](_0x3a7f('0x106'))['elementToElement']({'view':{'name':_0x3a7f('0x60'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5ec603,{writer:_0x356355})=>{let _0x120228='suggestion:'+_0x5ec603['getAttribute'](_0x3a7f('0x7f'))+':'+_0x5ec603[_0x3a7f('0x5c')]('id');return _0x5ec603[_0x3a7f('0x5c')](_0x3a7f('0x67'))&&(_0x120228+=':'+_0x5ec603[_0x3a7f('0x5c')](_0x3a7f('0x67'))),_0x356355[_0x3a7f('0x65')]('$marker',{'data-name':_0x120228});}}),_0xc13a8a[_0x3a7f('0xe3')][_0x3a7f('0x9f')](_0x3a7f('0x106'))[_0x3a7f('0xe0')]({'view':_0x3a7f('0x60')}),_0xc13a8a[_0x3a7f('0xe3')]['for']('editingDowncast')['add'](_0x430458=>{_0x430458['on'](_0x3a7f('0x0'),_0x573c8b(),{'priority':'high'});}),_0xc13a8a[_0x3a7f('0xe3')][_0x3a7f('0x9f')]('editingDowncast')[_0x3a7f('0xb4')](_0x5b15b6=>{_0x5b15b6['on']('removeMarker:suggestion:formatBlock',(_0x266d5c,_0x240351,_0x4fa405)=>{const _0x305d6f=_0x4fa405[_0x3a7f('0x6b')][_0x3a7f('0x96')](_0x240351[_0x3a7f('0x3e')]);if(_0x305d6f)for(const _0x4374d1 of _0x305d6f)_0x4374d1[_0x3a7f('0x27')](_0x3a7f('0xb5'))||(_0x4fa405[_0x3a7f('0xef')][_0x3a7f('0x4a')](['ck-suggestion-marker',_0x3a7f('0x108'),_0x3a7f('0xf1')],_0x4374d1),_0x4fa405[_0x3a7f('0xef')]['removeAttribute'](_0x3a7f('0xc9'),_0x4374d1),_0x4fa405[_0x3a7f('0x6b')][_0x3a7f('0xc6')](_0x4374d1,_0x240351[_0x3a7f('0x3e')]));},{'priority':_0x3a7f('0xd0')});}),_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0xcd')][_0x3a7f('0x28')](_0x3b9afd=>{let _0x3ea55a=!0x1;const _0x2cbde9=Array[_0x3a7f('0xeb')](_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0xcd')][_0x3a7f('0x2d')][_0x3a7f('0x131')]()),_0x2dc679=new Set();for(const {name:_0x2d3feb,data:_0x48d12d}of _0x2cbde9){const {group:_0x5d2200,type:_0x26c0ed,id:_0x5b2264}=this[_0x3a7f('0x3a')](_0x2d3feb);if('suggestion'!==_0x5d2200)continue;const _0x6004b4=this[_0x3a7f('0x6f')][_0x3a7f('0xc8')](_0x5b2264);if(null!=_0x48d12d[_0x3a7f('0x82')]){'formatInline'==_0x26c0ed&&(_0x3ea55a=_0x3ea55a||Mt(_0x48d12d[_0x3a7f('0x82')],_0x2d3feb,_0x3b9afd,_0xc13a8a['model'][_0x3a7f('0x8c')]));if(_0x48d12d[_0x3a7f('0x82')]['isCollapsed']||_0x3a7f('0xb7')==_0x48d12d['newRange']['root'][_0x3a7f('0x9b')]||_0x3a7f('0xd')==_0x26c0ed&&!Nt(_0x48d12d[_0x3a7f('0x82')])||_0x3a7f('0xbd')==_0x26c0ed&&!(!_t(_0x24ae18=_0x48d12d['newRange'])&&!function(_0x36e71b){return _0x36e71b[_0x3a7f('0x50')][_0x3a7f('0x10a')]==_0x36e71b[_0x3a7f('0x56')][_0x3a7f('0xf8')]&&_0x36e71b[_0x3a7f('0x50')][_0x3a7f('0x4c')];}(_0x24ae18)))_0x3b9afd[_0x3a7f('0x1e')](_0x2d3feb),_0x3ea55a=!0x0;else{if(!_0x6004b4||!_0x6004b4['isInContent'])continue;_0x2dc679[_0x3a7f('0xb4')](_0x6004b4);}}}var _0x24ae18;return _0x2dc679[_0x3a7f('0x8d')]>0x0&&(_0x3ea55a=!!this[_0x3a7f('0x79')](_0x2dc679)||_0x3ea55a),_0x3ea55a;}),_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0xcd')][_0x3a7f('0x28')](_0x350337=>{let _0x519374=!0x1;for(const _0x208e9e of _0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0xcd')]['differ']['getChanges']()){if(_0x3a7f('0x87')!=_0x208e9e[_0x3a7f('0x18')])continue;const _0x459c52=_0x208e9e[_0x3a7f('0x10f')][_0x3a7f('0x69')](_0x208e9e[_0x3a7f('0x30')]);if(_0x459c52[_0x3a7f('0x4c')])for(const _0x179e24 of this[_0x3a7f('0x6f')][_0x3a7f('0x63')]()){if(_0x179e24[_0x3a7f('0xfa')]||!_0x179e24[_0x3a7f('0x127')])continue;if(_0x3a7f('0xd')!=_0x179e24['type'])continue;const _0x1ee6d6=_0x179e24['getFirstRange']();if(_0x1ee6d6['start'][_0x3a7f('0x10a')]!=_0x1ee6d6[_0x3a7f('0x56')][_0x3a7f('0x10a')]&&_0x1ee6d6[_0x3a7f('0x56')][_0x3a7f('0xd5')](_0x208e9e[_0x3a7f('0x10f')])){const _0x15fffe=_0xc13a8a['model']['createRange'](_0x1ee6d6[_0x3a7f('0x50')],_0x459c52);_0x350337[_0x3a7f('0x4d')](_0x179e24[_0x3a7f('0x5f')](),{'range':_0x15fffe}),_0x519374=!0x0;}}}return _0x519374;}),_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x102')]['on'](_0x3a7f('0x21'),(_0xc25e43,_0x365c3e,_0x2f440f)=>{if(null==_0x2f440f){const {id:_0x13082a}=this['_splitMarkerName'](_0x365c3e[_0x3a7f('0xa3')]),_0x5d7560=this[_0x3a7f('0x6f')][_0x3a7f('0xc8')](_0x13082a);_0x5d7560&&_0x5d7560[_0x3a7f('0x9e')](_0x365c3e[_0x3a7f('0xa3')]);}}),_0xc13a8a[_0x3a7f('0xe7')]['document']['on'](_0x3a7f('0x72'),()=>{const _0x32fa9d=Array['from'](_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0xcd')][_0x3a7f('0x2d')][_0x3a7f('0x131')]())[_0x3a7f('0x4')](_0x2a7e20=>'suggestion'===this[_0x3a7f('0x3a')](_0x2a7e20['name'])[_0x3a7f('0xf4')]);if(0x0===_0x32fa9d[_0x3a7f('0x30')])return;_0x32fa9d['sort']((_0x45be58,_0x3b5a1d)=>{const _0x56f2aa=_0x45be58[_0x3a7f('0x12e')][_0x3a7f('0x114')],_0x38b91e=_0x3b5a1d[_0x3a7f('0x12e')][_0x3a7f('0x114')];return null===_0x56f2aa&&null===_0x38b91e?0x0:null===_0x56f2aa&&null!==_0x38b91e?-0x1:null!==_0x56f2aa&&null===_0x38b91e?0x1:_0x56f2aa[_0x3a7f('0x50')][_0x3a7f('0xf7')](_0x38b91e[_0x3a7f('0x50')])?-0x1:0x1;});const _0x5ea026=new Set(),_0x37598e=new Set();for(const {name:_0x8a4cf,data:_0x4169df}of _0x32fa9d){const {id:_0x24e4d4}=this[_0x3a7f('0x3a')](_0x8a4cf);if(null===_0x4169df[_0x3a7f('0x114')]){const _0x2c079a=this[_0x3a7f('0x9c')](_0x8a4cf);_0x37598e[_0x3a7f('0xb4')](_0x2c079a);}else{const _0x1d034b=this['_suggestions'][_0x3a7f('0xc8')](_0x24e4d4);null!==_0x4169df[_0x3a7f('0x82')]||_0x1d034b[_0x3a7f('0x127')]?(_0x5ea026[_0x3a7f('0xb4')](_0x1d034b[_0x3a7f('0x144')]),_0x37598e[_0x3a7f('0xb4')](_0x1d034b)):this[_0x3a7f('0xba')](_0x1d034b);}}_0x37598e['size']>0x0&&this['_refreshSuggestionsChain'](_0x37598e);for(const _0x4a140f of _0x5ea026)this[_0x3a7f('0x11')](_0x3a7f('0x12b'),_0x4a140f);}),_0xc13a8a[_0x3a7f('0xe7')]['on'](_0x3a7f('0xf3'),(_0x18a0c2,_0x13196c)=>{const _0x4c8a7c=_0x13196c[0x0];if(!this[_0x3a7f('0x6f')][_0x3a7f('0x8d')])return;if(!_0x4c8a7c[_0x3a7f('0x77')])return;if(_0x4c8a7c[_0x3a7f('0x5')][_0x3a7f('0x137')]||!_0x4c8a7c[_0x3a7f('0x5')][_0x3a7f('0xb6')])return;let _0x269bfc,_0x559c34;switch(_0x4c8a7c['type']){case _0x3a7f('0x87'):_0x269bfc=_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x6d')](_0x4c8a7c['position']),_0x559c34=_0x269bfc[_0x3a7f('0x69')](_0x4c8a7c[_0x3a7f('0x36')]);break;case'split':_0x269bfc=_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x6d')](_0x4c8a7c['splitPosition']),_0x559c34=_0xc13a8a[_0x3a7f('0xe7')]['createPositionAt'](_0x4c8a7c[_0x3a7f('0x7c')]);break;case _0x3a7f('0xee'):_0x269bfc=_0xc13a8a[_0x3a7f('0xe7')]['createPositionAt'](_0x4c8a7c[_0x3a7f('0x62')]),_0x559c34=_0x269bfc[_0x3a7f('0x69')](_0x4c8a7c[_0x3a7f('0x36')]);break;default:return;}const _0x1a391d=_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x76')](_0x269bfc,_0x559c34);_0xc13a8a[_0x3a7f('0xe7')]['change'](()=>{for(const {suggestion:_0x3bfe36,meta:_0x263aaf}of this['_findSuggestions'](_0x1a391d)){if(_0x3bfe36[_0x3a7f('0xfa')])continue;if('formatInline'==_0x3bfe36['type'])continue;const _0x43128b=_0x3bfe36[_0x3a7f('0x12e')]&&_0x3bfe36[_0x3a7f('0x12e')][_0x3a7f('0xdf')];(_0x3a7f('0xd')!=_0x3bfe36['type']||_0x3a7f('0x6a')==_0x4c8a7c[_0x3a7f('0x18')]&&!_0x43128b)&&(_0x263aaf[_0x3a7f('0x13e')]||_0x3a7f('0x12a')==_0x3bfe36[_0x3a7f('0x18')]&&_0x263aaf[_0x3a7f('0x10b')]||_0x3bfe36[_0x3a7f('0x90')]()[_0x3a7f('0x3f')](_0x1a391d)&&this[_0x3a7f('0x38')](_0x3bfe36,_0x269bfc,_0x559c34));}});},{'priority':_0x3a7f('0xaa')}),_0xc13a8a[_0x3a7f('0xe7')]['on']('deleteContent',(_0x3c4629,_0x4cdfac)=>{const _0x582ec8=_0x4cdfac[0x0],_0x535f96=_0x4cdfac[0x1];if(_0x535f96&&_0x535f96[_0x3a7f('0x13a')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand'][_0x3a7f('0x84')])return;if(_0x582ec8['isCollapsed'])return;const _0x5dd219=_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x8c')],{start:_0x3083d9,end:_0x247c88}=_0x582ec8[_0x3a7f('0x90')](),_0x333fb2=_0x3083d9['nodeAfter']&&_0x5dd219[_0x3a7f('0xd1')](_0x3083d9[_0x3a7f('0x10d')])?null:_0x5dd219[_0x3a7f('0x11f')](_0x3083d9,_0x3a7f('0x128')),_0x25a84d=_0x247c88[_0x3a7f('0xf8')]&&_0x5dd219[_0x3a7f('0xd1')](_0x247c88[_0x3a7f('0xf8')])?null:_0x5dd219[_0x3a7f('0x11f')](_0x247c88,'backward'),_0x3c55b7=_0xc13a8a['model'][_0x3a7f('0x76')](_0x333fb2?_0x333fb2['start']:_0x3083d9,_0x25a84d?_0x25a84d[_0x3a7f('0x56')]:_0x247c88);_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x5e')](_0x1abfd5=>{this[_0x3a7f('0x6')](_0x3c55b7);const _0xf0c4c9=_0xc13a8a['model']['schema'][_0x3a7f('0x11f')](_0x3c55b7[_0x3a7f('0x50')]);_0x582ec8['is']('documentSelection')?_0x1abfd5[_0x3a7f('0x34')](_0xf0c4c9):_0x582ec8['setTo'](_0xf0c4c9);}),_0x3c4629['stop']();},{'priority':_0x59479e['normal']+0xa}),_0xc13a8a[_0x3a7f('0xe7')]['on'](_0x3a7f('0xce'),(_0x57cc4e,_0x5bf2d8)=>{const _0x1e4476=_0x5bf2d8[_0x5bf2d8[_0x3a7f('0x30')]-0x1];_0x1e4476&&_0x1e4476['forceDefaultExecution']||this[_0x3a7f('0xb9')]||this['trackChangesCommand'][_0x3a7f('0x84')]&&(_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x5e')](()=>{let _0x5b9ee1=_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0xce')](_0x5bf2d8[0x0],_0x5bf2d8[0x1],_0x5bf2d8[0x2],{'forceDefaultExecution':!0x0});if(!_0x5b9ee1)return;_0x57cc4e[_0x3a7f('0xc1')]=_0x5b9ee1[_0x3a7f('0x7')]();const _0xe8d2d3=_0x5b9ee1[_0x3a7f('0x56')][_0x3a7f('0xf8')],_0x17bc7b=_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x8c')];_0xe8d2d3&&_0x17bc7b[_0x3a7f('0x5d')](_0xe8d2d3)&&!_0x17bc7b['isObject'](_0xe8d2d3)&&(_0x5b9ee1=_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x76')](_0x5b9ee1[_0x3a7f('0x50')],_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x6d')](_0xe8d2d3,_0x3a7f('0x56')))),this[_0x3a7f('0x46')](_0x5b9ee1);}),_0x57cc4e[_0x3a7f('0x2b')]());},{'priority':_0x3a7f('0xd0')}),this[_0x3a7f('0x143')][_0x3a7f('0xfd')][_0x3a7f('0xb4')](_0x3a7f('0x9a'),this[_0x3a7f('0x7b')]),this[_0x3a7f('0x100')](_0x3a7f('0x9a'));const _0x2da903=new _0x5b84cd(_0xc13a8a,this['_suggestions']);_0xc13a8a[_0x3a7f('0xfd')][_0x3a7f('0xb4')](_0x3a7f('0x7a'),_0x2da903),this[_0x3a7f('0x100')](_0x3a7f('0x7a'));const _0xec36c3=new _0x51fa7a(_0xc13a8a,this[_0x3a7f('0x6f')]);_0xc13a8a['commands'][_0x3a7f('0xb4')](_0x3a7f('0xe2'),_0xec36c3),this[_0x3a7f('0x100')](_0x3a7f('0xe2')),_0xc13a8a[_0x3a7f('0xfd')][_0x3a7f('0xb4')]('acceptAllSuggestions',new _0x1a0ece(_0xc13a8a,_0x2da903,this[_0x3a7f('0x6f')])),this[_0x3a7f('0x100')](_0x3a7f('0x7e')),_0xc13a8a[_0x3a7f('0xfd')][_0x3a7f('0xb4')](_0x3a7f('0x5a'),new _0x1a0ece(_0xc13a8a,_0xec36c3,this[_0x3a7f('0x6f')])),this[_0x3a7f('0x100')](_0x3a7f('0x5a')),_0xc13a8a[_0x3a7f('0xfd')]['add'](_0x3a7f('0x1a'),new _0x2face2(_0xc13a8a,_0x2da903,this[_0x3a7f('0x6f')])),this['enableCommand'](_0x3a7f('0x1a')),_0xc13a8a[_0x3a7f('0xfd')][_0x3a7f('0xb4')]('discardSelectedSuggestions',new _0x2face2(_0xc13a8a,_0xec36c3,this['_suggestions'])),this['enableCommand'](_0x3a7f('0xde'));const _0x138315=_0xc13a8a[_0x3a7f('0x3')][_0x3a7f('0xc8')](_0x3a7f('0x49'));this[_0x3a7f('0x59')](_0x138315,_0x3a7f('0x81'),(_0x5f22fd,{threadId:_0x292c02})=>{const _0x2de148=this[_0x3a7f('0x6f')][_0x3a7f('0xc8')](_0x292c02);_0x2de148&&_0x2de148[_0x3a7f('0x2a')]&&0x1===_0x2de148['commentThread'][_0x3a7f('0x30')]&&this[_0x3a7f('0x10e')](_0x292c02,{'hasComments':!0x0});},{'priority':_0x3a7f('0x2')}),this['listenTo'](_0x138315,_0x3a7f('0x88'),(_0x242138,{threadId:_0x16ddb3})=>{const _0x3bf4c3=this[_0x3a7f('0x6f')][_0x3a7f('0xc8')](_0x16ddb3);_0x3bf4c3&&_0x3bf4c3[_0x3a7f('0x2a')]&&!_0x3bf4c3[_0x3a7f('0x2a')]['length']&&this[_0x3a7f('0x10e')](_0x16ddb3,{'hasComments':!0x1});},{'priority':_0x3a7f('0x2')});}set[_0x3a7f('0xda')](_0x5a5d3e){if(this[_0x3a7f('0x93')])throw new _0x4c734e(_0x3a7f('0xbb'),this);this[_0x3a7f('0x93')]=_0x5a5d3e;}get[_0x3a7f('0xda')](){return this[_0x3a7f('0x93')];}[_0x3a7f('0x83')]({skipNotAttached:_0x561bf9=!0x1,toJSON:_0x3e08db=!0x1}={}){const _0x2f6dc7=[];for(const _0x775eed of this[_0x3a7f('0x6f')][_0x3a7f('0x63')]())_0x561bf9&&!_0x775eed['isInContent']||_0x2f6dc7['push'](_0x775eed);return _0x3e08db?_0x2f6dc7['map'](_0x52942f=>_0x52942f[_0x3a7f('0xfb')]()):_0x2f6dc7;}[_0x3a7f('0x3c')](_0xe8b9b4){const _0x25a9ae=this['_suggestions'][_0x3a7f('0xc8')](_0xe8b9b4);if(!_0x25a9ae)throw new _0x4c734e(_0x3a7f('0x85'),this);return _0x25a9ae;}[_0x3a7f('0x139')](_0x53c75b){return this['_suggestions'][_0x3a7f('0xc0')](_0x53c75b);}['addSuggestionData'](_0x33d4c0){const {authorId:_0x27d764,id:_0x2c213c,attributes:_0x47332d}=_0x33d4c0,[_0x5f5440,_0x1bd7d6]=_0x33d4c0[_0x3a7f('0x18')][_0x3a7f('0x6a')](':'),_0x58176a=this['_suggestions'][_0x3a7f('0xc8')](_0x2c213c)||this[_0x3a7f('0xa7')](_0x5f5440,_0x1bd7d6,_0x2c213c,_0x27d764,_0x47332d);if(this[_0x3a7f('0x78')](_0x58176a),this['_checkSuggestionCorrectness'](_0x58176a,_0x5f5440,_0x1bd7d6||null,_0x27d764),_0x58176a[_0x3a7f('0x47')]=_0x33d4c0[_0x3a7f('0x47')],_0x58176a[_0x3a7f('0xe1')]=!0x0,_0x47332d&&_0x47332d[_0x3a7f('0xbf')]){const _0x5e4b04=_0x47332d['@external'],_0x53e41b=this[_0x3a7f('0x66')](_0x5e4b04[_0x3a7f('0xa5')]);_0x58176a[_0x3a7f('0x8e')]=_0x5e4b04['createdAt'],_0x58176a[_0x3a7f('0x70')]=_0x53e41b,_0x58176a[_0x3a7f('0x132')]=!0x0;}else _0x58176a[_0x3a7f('0x8e')]=_0x33d4c0[_0x3a7f('0x47')];switch(_0x33d4c0['data']&&(_0x58176a['data']=_0x33d4c0[_0x3a7f('0x12e')]),_0x33d4c0['attributes']&&(_0x58176a[_0x3a7f('0x16')]=_0x33d4c0['attributes']),this[_0x3a7f('0x93')]&&this['_adapter']['addSuggestion']||(_0x58176a[_0x3a7f('0x116')]=!0x0),this['_suggestionState'][_0x3a7f('0xc8')](_0x58176a)){case _0x3a7f('0x10'):this[_0x3a7f('0xf6')][_0x3a7f('0x11d')](_0x58176a,_0x3a7f('0x6c'));break;case _0x3a7f('0x124'):_0x58176a[_0x3a7f('0x127')]?(this[_0x3a7f('0x105')](new Set([_0x58176a])),this[_0x3a7f('0x79')](new Set([_0x58176a])),this[_0x3a7f('0xf6')]['set'](_0x58176a,_0x3a7f('0x32')),this[_0x3a7f('0x11')](_0x3a7f('0xf9'),_0x58176a)):this['_suggestionState']['set'](_0x58176a,_0x3a7f('0x4b'));}return _0x58176a;}[_0x3a7f('0x7a')](_0x3e8b3d){this[_0x3a7f('0x13a')](()=>{this[_0x3a7f('0x143')][_0x3a7f('0xe7')][_0x3a7f('0x5e')](()=>{for(const _0x203417 of _0x3e8b3d['getAllAdjacentSuggestions']())_0x203417[_0x3a7f('0xc')]();});});}['discardSuggestion'](_0xf91ca6){this[_0x3a7f('0x13a')](()=>{this[_0x3a7f('0x143')][_0x3a7f('0xe7')][_0x3a7f('0x5e')](()=>{for(const _0x3f1b99 of _0xf91ca6[_0x3a7f('0xd7')]())_0x3f1b99['discard']();});});}['enableCommand'](_0x1264fe,_0x5610bd){const _0xffd3b7=this[_0x3a7f('0x143')][_0x3a7f('0xfd')]['get'](_0x1264fe);if(!_0xffd3b7)throw new _0x4c734e('track-changes-command-not-found',this,{'commandName':_0x1264fe});this[_0x3a7f('0xa6')][_0x3a7f('0xb4')](_0xffd3b7),_0x5610bd&&_0xffd3b7['on'](_0x3a7f('0xe4'),(_0xbd1680,_0x446368)=>{this['trackChangesCommand'][_0x3a7f('0x84')]&&(this[_0x3a7f('0xb9')]||_0x446368[_0x3a7f('0x30')]>0x0&&_0x446368[_0x446368[_0x3a7f('0x30')]-0x1]&&_0x446368[_0x446368['length']-0x1][_0x3a7f('0x13a')]||(_0x5610bd((..._0x4a247e)=>_0xffd3b7[_0x3a7f('0xe4')](..._0x4a247e,{'forceDefaultExecution':!0x0}),..._0x446368),_0xbd1680[_0x3a7f('0x2b')]()));},{'priority':_0x3a7f('0xd0')});}['forceDefaultExecution'](_0x427bae){let _0x4e7933,_0x2d804c;const _0x1efef9=this[_0x3a7f('0xb9')];this[_0x3a7f('0xb9')]=!0x0;try{_0x4e7933=_0x427bae();}catch(_0x42fc12){_0x2d804c=_0x42fc12;}return _0x1efef9||(this[_0x3a7f('0xb9')]=!0x1),_0x2d804c&&_0x4c734e['rethrowUnexpectedError'](_0x2d804c,this),_0x4e7933;}[_0x3a7f('0x46')](_0x3b4463,_0x4a4c79=null,_0xdf3144={}){if(_0x3b4463[_0x3a7f('0xb')])return null;const _0x19365=this[_0x3a7f('0x143')][_0x3a7f('0x3')]['get'](_0x3a7f('0x23'))['me'];for(const {suggestion:_0x1a6856,meta:_0x25eada}of this[_0x3a7f('0xe8')](_0x3b4463,_0x3a7f('0x12a')))if(_0x25eada[_0x3a7f('0x10b')]){if(!_0x25eada[_0x3a7f('0x13f')]){if(_0x25eada['containsRangeInObject']){if(!this[_0x3a7f('0xd4')]||!Ut(_0x1a6856,_0xdf3144))continue;return _0x1a6856;}if(Ut(_0x1a6856,_0xdf3144))return _0x1a6856;this[_0x3a7f('0x38')](_0x1a6856,_0x3b4463[_0x3a7f('0x50')],_0x3b4463[_0x3a7f('0x56')]);break;}if(_0x4a4c79==_0x1a6856[_0x3a7f('0x140')]&&Ut(_0x1a6856,_0xdf3144)){const _0x534e05=_0x1a6856[_0x3a7f('0x90')]();return _0x534e05[_0x3a7f('0x50')][_0x3a7f('0xd5')](_0x3b4463[_0x3a7f('0x56')])?this[_0x3a7f('0x44')](_0x1a6856,this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x3b4463[_0x3a7f('0x50')],_0x534e05[_0x3a7f('0x56')])):this[_0x3a7f('0x44')](_0x1a6856,this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x534e05[_0x3a7f('0x50')],_0x3b4463[_0x3a7f('0x56')])),_0x1a6856;}}const _0x1ebb7e=_0x5147c7(),_0x39e0c5=_0x19365['id'],_0x4a071f=_0x4a4c79?_0x3a7f('0xc7')+_0x4a4c79:_0x3a7f('0x12a'),_0x3b0372=this[_0x3a7f('0xe9')]({'id':_0x1ebb7e,'type':_0x4a071f,'createdAt':new Date(),'authorId':_0x39e0c5,'attributes':_0xdf3144});return this[_0x3a7f('0x71')](_0x4a071f,_0x1ebb7e,_0x39e0c5,_0x3b4463),_0x3b0372;}[_0x3a7f('0xe')](_0x1f2695,_0x2a6acb=_0x3a7f('0x33'),_0x569e41={}){const _0x1f54cd=this[_0x3a7f('0x143')]['plugins'][_0x3a7f('0xc8')]('Users')['me'],_0x21479e=this[_0x3a7f('0x135')][_0x3a7f('0x12f')](_0x3a7f('0x12a'),_0x2a6acb,_0x3a7f('0xac'));for(const _0x110ac1 of this[_0x3a7f('0x83')]())if(_0x110ac1['author']['id']==_0x1f54cd['id']&&_0x3a7f('0x12a')==_0x110ac1[_0x3a7f('0x18')]&&_0x110ac1[_0x3a7f('0x140')]==_0x2a6acb&&Ut(_0x110ac1,_0x569e41)&&(_0x21479e(_0x110ac1['getRanges'](),_0x1f2695)||_0x21479e(_0x1f2695,_0x110ac1['getRanges']()))){for(const _0x535287 of _0x1f2695)_0x110ac1[_0x3a7f('0x110')](_0x535287);return _0x110ac1;}for(const {suggestion:_0x86e517,meta:_0x405f6f}of this[_0x3a7f('0xe8')](_0x1f2695,_0x3a7f('0x12a'))){if(!_0x405f6f[_0x3a7f('0x10b')])continue;if(!this[_0x3a7f('0xd4')]&&_0x405f6f[_0x3a7f('0x13e')])continue;if(!Ut(_0x86e517,_0x569e41))continue;let _0x2ff66a=!0x0;for(const _0x2b5efe of _0x86e517[_0x3a7f('0xa0')]())for(const _0x11601f of _0x1f2695)if(!_0x2b5efe[_0x3a7f('0x3f')](_0x11601f)){_0x2ff66a=!0x1;break;}if(_0x2ff66a)return _0x86e517;}const _0x64ac2e=_0x5147c7(),_0x578b13=_0x1f54cd['id'],_0x5ccf1e=_0x3a7f('0xc7')+_0x2a6acb,_0x328a99=this['_setSuggestionData']({'id':_0x64ac2e,'type':_0x5ccf1e,'createdAt':new Date(),'authorId':_0x578b13,'attributes':_0x569e41});for(const _0xb39dd2 of _0x1f2695)this[_0x3a7f('0x71')](_0x5ccf1e,_0x64ac2e,_0x578b13,_0xb39dd2,_0x28c196[_0x3a7f('0x22')]());return _0x328a99;}[_0x3a7f('0xcb')](_0x63e4eb,_0x39baaa,_0x54f5ae=null,_0x5272c0={}){if(_0x54f5ae=_0x54f5ae||$t(_0x39baaa),_0x63e4eb[_0x3a7f('0xb')])return null;if(_0x3a7f('0x111')===this['_trackFormatChanges']){const _0x57b347=this[_0x3a7f('0x135')][_0x3a7f('0x12f')](_0x3a7f('0x40'),_0x54f5ae,_0x3a7f('0xc'));return this[_0x3a7f('0x13a')](()=>_0x57b347([_0x63e4eb],_0x39baaa,_0x5272c0)),null;}const _0x1f4c10=this['editor'][_0x3a7f('0x3')]['get']('Users')['me'],_0xc48e4a=[];if('always'!==this[_0x3a7f('0x115')])for(const {suggestion:_0x24c502,meta:_0x260543}of this['_findSuggestions'](_0x63e4eb,_0x3a7f('0x12a')))_0x260543[_0x3a7f('0x10b')]&&!_0x260543['isInsideObject']&&_0xc48e4a[_0x3a7f('0xdd')](..._0x24c502[_0x3a7f('0xa0')]());const _0x4be88c=function(_0xae60b9,_0x431721){const _0x3e9184=[];for(const _0x4fc25d of _0x431721){const _0x2ce881=_0xae60b9[_0x3a7f('0x57')](_0x4fc25d);_0x2ce881&&_0x3e9184[_0x3a7f('0xdd')](_0x2ce881);}return _0x3e9184;}(_0x63e4eb,_0xc48e4a),_0x39ba23=function(_0x38e8da,_0xc3faef){const _0xf8e97b=[_0x38e8da];for(const _0x11182e of _0xc3faef){let _0xe0b8cf=0x0;for(;_0xe0b8cf<_0xf8e97b['length'];){const _0x282cc6=_0xf8e97b[_0xe0b8cf]['getDifference'](_0x11182e);_0xf8e97b[_0x3a7f('0x92')](_0xe0b8cf,0x1,..._0x282cc6),_0xe0b8cf+=_0x282cc6[_0x3a7f('0x30')];}}return _0xf8e97b;}(_0x63e4eb,_0xc48e4a);_0x4be88c['length']&&this[_0x3a7f('0x9d')][_0x3a7f('0x5e')](()=>{for(const _0xf73497 of _0x4be88c){const _0x5f1568=this[_0x3a7f('0x135')][_0x3a7f('0x12f')]('formatInline',_0x54f5ae,_0x3a7f('0xc'));this[_0x3a7f('0x13a')](()=>_0x5f1568([_0xf73497],_0x39baaa,_0x5272c0));}});for(const _0x52cf60 of _0x39ba23){let _0x263ee5=null,_0x5e306b=_0x52cf60[_0x3a7f('0x50')],_0x483bc8=_0x52cf60['end'];for(const {suggestion:_0x187e51,meta:_0x10a591}of this[_0x3a7f('0xe8')](_0x52cf60,_0x3a7f('0x40'))){if(!_0x10a591[_0x3a7f('0x10b')])continue;if(_0x187e51[_0x3a7f('0x140')]!=_0x54f5ae)continue;if(!Ut(_0x187e51,_0x5272c0))continue;const _0x25db4c=_0x187e51[_0x3a7f('0x90')]();if(_0x25db4c['containsRange'](_0x52cf60,!0x0))return null;_0x5e306b=_0x5e306b['isBefore'](_0x25db4c[_0x3a7f('0x50')])?_0x5e306b:_0x25db4c['start'],_0x483bc8=_0x483bc8['isAfter'](_0x25db4c[_0x3a7f('0x56')])?_0x483bc8:_0x25db4c[_0x3a7f('0x56')],_0x263ee5?_0x25db4c[_0x3a7f('0x50')][_0x3a7f('0xf7')](_0x263ee5[_0x3a7f('0x90')]()['start'])?(_0x263ee5['removeMarkers'](),_0x263ee5=_0x187e51):_0x187e51[_0x3a7f('0xc3')]():_0x263ee5=_0x187e51;}const _0x5f1b0b=this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x5e306b,_0x483bc8);if(_0x263ee5)this[_0x3a7f('0x44')](_0x263ee5,_0x5f1b0b);else{const _0x191801=_0x5147c7(),_0x252332=_0x1f4c10['id'];this[_0x3a7f('0xe9')]({'id':_0x191801,'type':_0x3a7f('0x12d')+_0x54f5ae,'data':_0x39baaa,'createdAt':new Date(),'authorId':_0x252332,'attributes':_0x5272c0}),this[_0x3a7f('0x71')](_0x3a7f('0x12d')+_0x54f5ae,_0x191801,_0x252332,_0x5f1b0b);}}return null;}[_0x3a7f('0xa4')](_0x443829,_0x13d2e2,_0x4c5de2=[],_0x197e1c=null,_0xcb3ade={}){_0x13d2e2[_0x3a7f('0x107')]||(_0x13d2e2['formatGroupId']=_0x13d2e2[_0x3a7f('0x2e')]),_0x13d2e2[_0x3a7f('0xdf')]=_0x443829['is'](_0x3a7f('0xd3')),_0x197e1c=_0x197e1c||$t(_0x13d2e2);const _0x4b1711=_0x4c5de2[_0x3a7f('0x19')](_0x30bf5a=>Rt(_0x30bf5a,this[_0x3a7f('0x9d')])),_0x1c3ce9=_0x443829['is'](_0x3a7f('0xd3'))?_0x443829:Rt(_0x443829,this[_0x3a7f('0x9d')]);if(_0x3a7f('0x111')===this[_0x3a7f('0x115')]){const _0x4b1d9e=this[_0x3a7f('0x135')][_0x3a7f('0x12f')](_0x3a7f('0xd'),_0x197e1c,_0x3a7f('0xc'));return this[_0x3a7f('0x13a')](()=>_0x4b1d9e([_0x1c3ce9],_0x13d2e2,_0xcb3ade)),null;}_0x4b1711[_0x3a7f('0xdd')](_0x1c3ce9);let _0x57b987=!0x0;for(const _0x1404ae of _0x4b1711)if(!this[_0x3a7f('0x51')](_0x1404ae)){_0x57b987=!0x1;break;}if(_0x57b987&&_0x3a7f('0x8a')!==this['_trackFormatChanges']){const _0x229fdc=this['_suggestionFactory'][_0x3a7f('0x12f')](_0x3a7f('0xd'),_0x197e1c,_0x3a7f('0xc'));return this['forceDefaultExecution'](()=>_0x229fdc([_0x1c3ce9],_0x13d2e2,_0xcb3ade)),null;}let _0x4211fa=null,_0x28b230=_0x1c3ce9[_0x3a7f('0x50')],_0x5e5710=_0x1c3ce9['end'];for(const {suggestion:_0x49b426,meta:_0x27183e}of this['_findSuggestions'](_0x1c3ce9,_0x3a7f('0xd'))){if(!_0x27183e['isOwn'])continue;if(_0x27183e[_0x3a7f('0x13f')]||_0x27183e[_0x3a7f('0x13e')]||_0x27183e[_0x3a7f('0x13')])continue;if(_0x49b426[_0x3a7f('0x12e')]['formatGroupId']!=_0x13d2e2['formatGroupId'])continue;if(!Ut(_0x49b426,_0xcb3ade))continue;const _0x270b81=_0x49b426['getFirstRange']();if(_0x49b426['subType']==_0x197e1c){if(_0x270b81[_0x3a7f('0x3f')](_0x1c3ce9,!0x0))return null;_0x28b230=_0x28b230[_0x3a7f('0xf7')](_0x270b81[_0x3a7f('0x50')])?_0x28b230:_0x270b81['start'],_0x5e5710=_0x5e5710[_0x3a7f('0xe6')](_0x270b81[_0x3a7f('0x56')])?_0x5e5710:_0x270b81[_0x3a7f('0x56')],_0x4211fa?_0x270b81['start'][_0x3a7f('0xf7')](_0x4211fa[_0x3a7f('0x90')]()[_0x3a7f('0x50')])?(_0x4211fa['removeMarkers'](),_0x4211fa=_0x49b426):_0x49b426[_0x3a7f('0xc3')]():_0x4211fa=_0x49b426;}else{const _0x1c9fdf=_0x1c3ce9[_0x3a7f('0x57')](_0x270b81);this[_0x3a7f('0x53')](_0x49b426,_0x1c9fdf);}}const _0x37cfe5=this[_0x3a7f('0x143')][_0x3a7f('0x3')]['get'](_0x3a7f('0x23'))['me'],_0x16ac0e=_0x5147c7(),_0x3e1fcb=_0x37cfe5['id'];if(_0x4211fa)return this['_setSuggestionRange'](_0x4211fa,this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x28b230,_0x5e5710)),_0x4211fa;{const _0x9d6e78=this[_0x3a7f('0xe9')]({'id':_0x16ac0e,'type':'formatBlock:'+_0x197e1c,'data':_0x13d2e2,'createdAt':new Date(),'authorId':_0x3e1fcb,'attributes':_0xcb3ade});return this[_0x3a7f('0x71')]('formatBlock:'+_0x197e1c,_0x16ac0e,_0x3e1fcb,this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x28b230,_0x5e5710)),_0x9d6e78;}}[_0x3a7f('0xad')](_0x465f92,_0x58dd7e,_0x16c9ad=[],_0x138610=null,_0xd8985b={}){_0x58dd7e[_0x3a7f('0x107')]||(_0x58dd7e[_0x3a7f('0x107')]=_0x58dd7e[_0x3a7f('0x2e')]);const _0x51b9ad=_0x465f92[0x0];_0x58dd7e[_0x3a7f('0xdf')]=_0x51b9ad['is'](_0x3a7f('0xd3')),_0x138610=_0x138610||$t(_0x58dd7e);const _0x1341b9=_0x16c9ad[_0x3a7f('0x19')](_0x4d8518=>Rt(_0x4d8518,this[_0x3a7f('0x9d')])),_0x5bab58=_0x51b9ad['is'](_0x3a7f('0xd3'))?_0x465f92:_0x465f92[_0x3a7f('0x19')](_0x58c3f8=>Rt(_0x58c3f8,this[_0x3a7f('0x9d')]));if(_0x3a7f('0x111')===this[_0x3a7f('0x115')]){const _0x43252a=this[_0x3a7f('0x135')][_0x3a7f('0x12f')]('formatBlock',_0x138610,_0x3a7f('0xc'));return this[_0x3a7f('0x13a')](()=>_0x43252a(_0x5bab58,_0x58dd7e,_0xd8985b)),null;}_0x1341b9['push'](..._0x5bab58);let _0x49ab5a=!0x0;for(const _0x4b4d46 of _0x1341b9)if(!this['_rangeIsInLocalUserInsertion'](_0x4b4d46)){_0x49ab5a=!0x1;break;}if(_0x49ab5a&&_0x3a7f('0x8a')!==this[_0x3a7f('0x115')]){const _0x2e2cfd=this['_suggestionFactory'][_0x3a7f('0x12f')](_0x3a7f('0xd'),_0x138610,_0x3a7f('0xc'));return this['forceDefaultExecution'](()=>_0x2e2cfd(_0x5bab58,_0x58dd7e,_0xd8985b)),null;}const _0x4d5428=this[_0x3a7f('0x143')]['plugins']['get'](_0x3a7f('0x23'))['me'];for(const _0x19dd92 of this[_0x3a7f('0x83')]()){if(_0x19dd92['author']['id']!=_0x4d5428['id'])continue;if(_0x3a7f('0xd')!=_0x19dd92[_0x3a7f('0x18')]||_0x19dd92['data'][_0x3a7f('0x107')]!=_0x58dd7e[_0x3a7f('0x107')])continue;if(!Ut(_0x19dd92,_0xd8985b))continue;const _0x3169ba=_0x19dd92[_0x3a7f('0x140')]==_0x138610;for(let _0x5bab00=0x0;_0x5bab00<_0x5bab58['length'];_0x5bab00++){const _0x3a840a=_0x5bab58[_0x5bab00];for(const _0x1bde27 of _0x19dd92[_0x3a7f('0x41')]()){const _0x2a5ab3=_0x1bde27[_0x3a7f('0x45')]();if(_0x3a840a[_0x3a7f('0xd5')](_0x2a5ab3)){_0x3169ba?(_0x5bab58[_0x3a7f('0x92')](_0x5bab00,0x1),_0x5bab00--):_0x19dd92[_0x3a7f('0x1e')](_0x1bde27[_0x3a7f('0xa3')]);break;}}}}if(0x0==_0x5bab58['length'])return null;const _0x224926=this[_0x3a7f('0x135')][_0x3a7f('0x12f')]('formatBlock',_0x138610,_0x3a7f('0xac'));for(const _0x352fdb of this[_0x3a7f('0x83')]())if(_0x352fdb['author']['id']==_0x4d5428['id']&&_0x3a7f('0xd')==_0x352fdb[_0x3a7f('0x18')]&&_0x352fdb[_0x3a7f('0x12e')][_0x3a7f('0x107')]==_0x58dd7e['formatGroupId']&&_0x352fdb['subType']==_0x138610&&Ut(_0x352fdb,_0xd8985b)&&(_0x224926(_0x352fdb[_0x3a7f('0xa0')](),_0x5bab58)||_0x224926(_0x5bab58,_0x352fdb[_0x3a7f('0xa0')]()))){for(const _0x44758e of _0x5bab58)_0x352fdb[_0x3a7f('0x110')](_0x44758e);return _0x352fdb;}const _0x227b74=_0x5147c7(),_0xb89b53=_0x4d5428['id'],_0x1db54a=_0x3a7f('0xc2')+_0x138610,_0x215bd2=this[_0x3a7f('0xe9')]({'id':_0x227b74,'type':_0x1db54a,'data':_0x58dd7e,'createdAt':new Date(),'authorId':_0xb89b53,'attributes':_0xd8985b});for(const _0x35a2de of _0x5bab58)this[_0x3a7f('0x71')](_0x1db54a,_0x227b74,_0xb89b53,_0x35a2de,_0x28c196[_0x3a7f('0x22')]());return _0x215bd2;}[_0x3a7f('0x6')](_0x500ea6,_0x19213d=null,_0x4e71a9={}){if(_0x500ea6['isCollapsed'])return null;const _0xa6d572=this['editor']['plugins'][_0x3a7f('0xc8')](_0x3a7f('0x23'))['me'],_0x2295b4=new _0x55d7ae(_0x500ea6[_0x3a7f('0x50')],_0x500ea6[_0x3a7f('0x56')]);for(const {suggestion:_0x21c6e4,meta:_0x2e51f0}of this['_findSuggestions'](_0x2295b4,_0x3a7f('0x12a')))if(_0x2e51f0[_0x3a7f('0x10b')]&&!_0x2e51f0[_0x3a7f('0x13f')]){if(_0x21c6e4[_0x3a7f('0xfa')]){const _0x5ad611=_0x21c6e4['getRanges']()[_0x3a7f('0x4')](_0x8ba84a=>'$graveyard'!=_0x8ba84a[_0x3a7f('0x29')][_0x3a7f('0x9b')]);_0x5ad611[_0x3a7f('0x138')](_0x66db34=>_0x2295b4[_0x3a7f('0x3f')](_0x66db34,!0x0))&&_0x21c6e4[_0x3a7f('0xea')]();if(_0x5ad611[_0x3a7f('0x123')](_0x3f9044=>_0x3f9044[_0x3a7f('0x3f')](_0x2295b4,!0x0))){const _0x5ba60e=this[_0x3a7f('0x135')][_0x3a7f('0x12f')](_0x3a7f('0xbd'),_0x19213d,_0x3a7f('0xc'));return this['forceDefaultExecution'](()=>_0x5ba60e([_0x2295b4],null,_0x4e71a9)),null;}}else{const _0x1eae3d=_0x2295b4[_0x3a7f('0x57')](_0x21c6e4['getFirstRange']());null!==_0x1eae3d&&_0x21c6e4['_onDiscard']([_0x1eae3d],null,_0x4e71a9);}}if(_0x2295b4[_0x3a7f('0x7d')](),_0x2295b4[_0x3a7f('0xb')]||_0x3a7f('0xb7')==_0x2295b4[_0x3a7f('0x29')][_0x3a7f('0x9b')])return null;let _0x5b27dd=null,_0x4b41dd=_0x2295b4[_0x3a7f('0x50')],_0x2b0107=_0x2295b4[_0x3a7f('0x56')];const _0xcf15e0=this[_0x3a7f('0xe8')](_0x2295b4,_0x3a7f('0xbd'));for(const {suggestion:_0x92c52d,meta:_0x293a15}of _0xcf15e0){const _0x5ebf61=this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x4b41dd,_0x2b0107);if(_0x293a15['isOwn']&&(this['_mergeNestedSuggestions']||!_0x293a15['containsRangeInObject']&&!_0x293a15[_0x3a7f('0x13')])){if(_0x92c52d[_0x3a7f('0xfa')]){if(!Ut(_0x92c52d,_0x4e71a9))continue;let _0x55e2d3=!0x0;for(const _0x75f2bd of _0x92c52d[_0x3a7f('0xa0')]()){if(_0x75f2bd[_0x3a7f('0x3f')](_0x5ebf61,!0x0))return _0x92c52d;_0x5ebf61['containsRange'](_0x75f2bd)||(_0x55e2d3=!0x1);}_0x55e2d3&&_0x92c52d['discard']();}else{const _0x4f4f9c=_0x92c52d[_0x3a7f('0x90')]();if(_0x4f4f9c[_0x3a7f('0x3f')](_0x5ebf61,!0x0))return _0x92c52d;if(!Ut(_0x92c52d,_0x4e71a9)){_0x5ebf61[_0x3a7f('0x3f')](_0x4f4f9c)?_0x92c52d['removeMarkers']():_0x4f4f9c['containsPosition'](_0x4b41dd)?_0x4b41dd=_0x4f4f9c['end']:_0x4f4f9c[_0x3a7f('0xa2')](_0x2b0107)&&(_0x2b0107=_0x4f4f9c[_0x3a7f('0x50')]);continue;}_0x4b41dd=_0x4b41dd['isBefore'](_0x4f4f9c['start'])?_0x4b41dd:_0x4f4f9c['start'],_0x2b0107=_0x2b0107[_0x3a7f('0xe6')](_0x4f4f9c[_0x3a7f('0x56')])?_0x2b0107:_0x4f4f9c[_0x3a7f('0x56')],_0x4e71a9=Object[_0x3a7f('0x121')]({},_0x92c52d['attributes']),_0x5b27dd?_0x4f4f9c['start'][_0x3a7f('0xf7')](_0x5b27dd[_0x3a7f('0x90')]()[_0x3a7f('0x50')])?(_0x5b27dd['removeMarkers'](),_0x5b27dd=_0x92c52d):_0x92c52d['removeMarkers']():_0x5b27dd=_0x92c52d;}}}if(_0x5b27dd)return this[_0x3a7f('0x44')](_0x5b27dd,this['_model']['createRange'](_0x4b41dd,_0x2b0107)),_0x5b27dd;{const _0x5ed151=_0x5147c7(),_0x24325d=this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x4b41dd,_0x2b0107),_0x285deb=_0xa6d572['id'],_0x4b14e0=_0x19213d?'deletion:'+_0x19213d:'deletion',_0x1f3ac2=this[_0x3a7f('0xe9')]({'id':_0x5ed151,'type':_0x4b14e0,'createdAt':new Date(),'authorId':_0x285deb,'attributes':_0x4e71a9});return this[_0x3a7f('0x71')](_0x4b14e0,_0x5ed151,_0x285deb,_0x24325d),_0x1f3ac2;}}[_0x3a7f('0x126')](_0x3b0f33,_0x41dbd6=_0x3a7f('0x33'),_0x4c8f0f={}){const _0xd1664=this['editor'][_0x3a7f('0x3')][_0x3a7f('0xc8')](_0x3a7f('0x23'))['me'],_0x39ce19=_0x3b0f33['map'](_0x44fb47=>new _0x55d7ae(_0x44fb47[_0x3a7f('0x50')],_0x44fb47[_0x3a7f('0x56')])),_0x797442=new Set();for(const {suggestion:_0x20aac6,meta:_0x2e0a32}of this['_findSuggestions'](_0x39ce19,_0x3a7f('0x12a')))_0x2e0a32[_0x3a7f('0x10b')]&&!_0x2e0a32[_0x3a7f('0x13f')]&&_0x797442[_0x3a7f('0xb4')](_0x20aac6);for(const _0x287752 of _0x797442)if(_0x287752[_0x3a7f('0xfa')]){const _0x3e0d5f=_0x287752['getRanges']();(!_0x287752[_0x3a7f('0x16')]||!_0x287752[_0x3a7f('0x16')][_0x3a7f('0x104')])&&(_0x3e0d5f[_0x3a7f('0x138')](_0x5c6c3a=>_0x39ce19[_0x3a7f('0x123')](_0x34e796=>_0x34e796[_0x3a7f('0x3f')](_0x5c6c3a,!0x0)))&&_0x287752[_0x3a7f('0xea')]());if(_0x39ce19['every'](_0x4bfb44=>_0x3e0d5f[_0x3a7f('0x123')](_0xec12f3=>_0xec12f3[_0x3a7f('0x3f')](_0x4bfb44,!0x0)))){const _0x350f83=this[_0x3a7f('0x135')][_0x3a7f('0x12f')](_0x3a7f('0xbd'),_0x41dbd6,_0x3a7f('0xc'));return this[_0x3a7f('0x13a')](()=>_0x350f83(_0x3b0f33,null,_0x4c8f0f)),null;}}else{const _0x41a24f=_0x287752[_0x3a7f('0x90')]();_0x39ce19[_0x3a7f('0x123')](_0x52563e=>_0x52563e['containsRange'](_0x41a24f,!0x0))&&_0x287752['discard']();if(_0x39ce19[_0x3a7f('0x138')](_0x27243a=>_0x41a24f['containsRange'](_0x27243a,!0x0))){const _0x2215f1=this[_0x3a7f('0x135')]['getSuggestionCallback'](_0x3a7f('0xbd'),_0x41dbd6,'accept');return this[_0x3a7f('0x13a')](()=>_0x2215f1(_0x39ce19,null,_0x4c8f0f)),null;}}const _0x3eb8fa=this[_0x3a7f('0x135')]['getSuggestionCallback'](_0x3a7f('0xbd'),_0x41dbd6,_0x3a7f('0xac'));let _0x10a1c4=null;for(const _0x5d7c1e of this[_0x3a7f('0x83')]())if(_0x5d7c1e[_0x3a7f('0x70')]['id']==_0xd1664['id']&&_0x5d7c1e[_0x3a7f('0x127')]&&_0x3a7f('0xbd')==_0x5d7c1e[_0x3a7f('0x18')]&&_0x5d7c1e[_0x3a7f('0x140')]==_0x41dbd6&&Ut(_0x5d7c1e,_0x4c8f0f)&&(_0x3eb8fa(_0x5d7c1e[_0x3a7f('0xa0')](),_0x39ce19)||_0x3eb8fa(_0x39ce19,_0x5d7c1e['getRanges']()))){if(_0x10a1c4){if(_0x5d7c1e[_0x3a7f('0x2a')]&&_0x5d7c1e[_0x3a7f('0x2a')][_0x3a7f('0x30')])continue;for(const _0x98c0d of _0x5d7c1e[_0x3a7f('0xa0')]())_0x10a1c4[_0x3a7f('0xab')](_0x98c0d)||_0x10a1c4[_0x3a7f('0x110')](_0x98c0d);_0x5d7c1e['removeMarkers']();}else{_0x10a1c4=_0x5d7c1e;for(const _0x115935 of _0x39ce19)_0x5d7c1e[_0x3a7f('0xab')](_0x115935)||_0x5d7c1e[_0x3a7f('0x110')](_0x115935);}}if(_0x10a1c4)return _0x10a1c4;_0x797442[_0x3a7f('0xf2')]();for(const {suggestion:_0x1b4388,meta:_0x58f668}of this[_0x3a7f('0xe8')](_0x39ce19,'deletion'))_0x58f668[_0x3a7f('0x10b')]&&(this['_mergeNestedSuggestions']||!_0x58f668['containsRangeInObject']&&!_0x58f668[_0x3a7f('0x13')])&&Ut(_0x1b4388,_0x4c8f0f)&&_0x797442['add'](_0x1b4388);for(const _0x42599a of _0x797442){const _0x4d278e=_0x42599a['getRanges']();if(!_0x4c8f0f||!_0x4c8f0f[_0x3a7f('0x104')]){if(_0x39ce19[_0x3a7f('0x138')](_0x197eaf=>_0x4d278e[_0x3a7f('0x123')](_0x440c8f=>_0x440c8f[_0x3a7f('0x3f')](_0x197eaf,!0x0))))return _0x42599a;}(!_0x42599a['attributes']||!_0x42599a[_0x3a7f('0x16')][_0x3a7f('0x104')])&&(_0x4d278e[_0x3a7f('0x138')](_0xecd2e6=>_0x39ce19[_0x3a7f('0x123')](_0x2c2503=>_0x2c2503['containsRange'](_0xecd2e6,!0x0)))&&_0x42599a[_0x3a7f('0xea')]());}const _0x2d6adc=_0x5147c7(),_0x1db6ee=_0xd1664['id'],_0x3a5cdf=_0x3a7f('0x129')+_0x41dbd6,_0x1de80b=this[_0x3a7f('0xe9')]({'id':_0x2d6adc,'type':_0x3a5cdf,'createdAt':new Date(),'authorId':_0x1db6ee,'attributes':_0x4c8f0f});for(const _0x4a82a5 of _0x39ce19)_0x4a82a5[_0x3a7f('0x7d')](),_0x4a82a5[_0x3a7f('0xb')]||_0x3a7f('0xb7')==_0x4a82a5[_0x3a7f('0x29')][_0x3a7f('0x9b')]||this['_addSuggestionMarker'](_0x3a5cdf,_0x2d6adc,_0x1db6ee,_0x4a82a5,_0x28c196['getMultiRangeId']());return _0x1de80b;}[_0x3a7f('0x44')](_0x11225f,_0x473d1f){const _0x3635d3=_0x11225f[_0x3a7f('0x5f')]();this[_0x3a7f('0x9d')][_0x3a7f('0x5e')](_0x38cc08=>{_0x38cc08[_0x3a7f('0x4d')](_0x3635d3,{'range':_0x473d1f});});}[_0x3a7f('0x78')](_0x31e657){const _0x2158ba=_0x31e657['id'],_0x1139fa=this[_0x3a7f('0x143')]['config'][_0x3a7f('0xc8')](_0x3a7f('0x15'));this['_commentsRepository'][_0x3a7f('0x13c')](_0x2158ba)||this[_0x3a7f('0x141')][_0x3a7f('0x24')]({'channelId':_0x1139fa,'threadId':_0x2158ba,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x20abd6=this['_commentsRepository'][_0x3a7f('0x14')](_0x2158ba);_0x20abd6[_0x3a7f('0xca')]('isRemovable'),_0x20abd6[_0x3a7f('0x26')]=!0x1,_0x31e657[_0x3a7f('0x2a')]=_0x20abd6;}['_checkSuggestionCorrectness'](_0x3b2c8d,_0x18e190,_0x2d924e,_0x4ff1c3){if(_0x3b2c8d[_0x3a7f('0x18')]!=_0x18e190||_0x3b2c8d[_0x3a7f('0x140')]!=_0x2d924e||_0x3b2c8d[_0x3a7f('0x9')]['id']!=_0x4ff1c3)throw this['editor'][_0x3a7f('0xb3')](_0x3a7f('0x13b')),new _0x4c734e(_0x3a7f('0x13b'),this);}['_cutOutSuggestionMarker'](_0x34df23,_0x33fe0d){const _0x3d887c=_0x34df23['getFirstRange']();if(_0x33fe0d[_0x3a7f('0xd5')](_0x3d887c))_0x34df23[_0x3a7f('0xc3')]();else{if(_0x3d887c[_0x3a7f('0x3f')](_0x33fe0d)){const _0x358d80=this[_0x3a7f('0x9d')]['createPositionAt'](_0x33fe0d['start'][_0x3a7f('0xf8')],'end');this[_0x3a7f('0x44')](_0x34df23,this[_0x3a7f('0x9d')]['createRange'](_0x3d887c[_0x3a7f('0x50')],_0x358d80));const _0x160f4f=_0x5147c7(),_0x1bc05f=_0x34df23['creator']['id'],_0x21c429=_0x34df23['type']+':'+_0x34df23['subType'];this['_setSuggestionData']({'id':_0x160f4f,'type':_0x21c429,'createdAt':new Date(),'authorId':_0x1bc05f,'data':_0x34df23[_0x3a7f('0x12e')],'attributes':_0x34df23[_0x3a7f('0x16')]});const _0x17cdff=this[_0x3a7f('0x9d')][_0x3a7f('0x6d')](_0x33fe0d['end'][_0x3a7f('0x10a')],_0x3a7f('0x119')),_0x15d492=this['_model']['createRange'](_0x17cdff,_0x3d887c[_0x3a7f('0x56')]);this[_0x3a7f('0x71')](_0x21c429,_0x160f4f,_0x1bc05f,_0x15d492);}else{if(_0x3d887c[_0x3a7f('0xa2')](_0x33fe0d[_0x3a7f('0x50')])){const _0x259dd6=this['_model']['createPositionAt'](_0x33fe0d[_0x3a7f('0x50')][_0x3a7f('0xf8')],_0x3a7f('0x56'));this[_0x3a7f('0x44')](_0x34df23,this[_0x3a7f('0x9d')]['createRange'](_0x3d887c[_0x3a7f('0x50')],_0x259dd6));}else{const _0x112340=this['_model'][_0x3a7f('0x6d')](_0x33fe0d['end'][_0x3a7f('0x10a')],_0x3a7f('0x119'));this['_setSuggestionRange'](_0x34df23,this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x112340,_0x3d887c[_0x3a7f('0x56')]));}}}}[_0x3a7f('0x51')](_0x238507){for(const {suggestion:_0x5320b6,meta:_0x513543}of this['_findSuggestions'](_0x238507,_0x3a7f('0x12a'))){if(!_0x513543[_0x3a7f('0x10b')])continue;const _0x3595f6=_0x5320b6['getRanges']();for(const _0x2650b0 of _0x3595f6)if(!_0x238507[_0x3a7f('0x68')](_0x2650b0)[_0x3a7f('0x30')])return!0x0;}return!0x1;}[_0x3a7f('0x112')](_0x4e27e9){const _0x22dbdf=this[_0x3a7f('0x143')][_0x3a7f('0x3')]['get'](_0x3a7f('0x23'))[_0x3a7f('0xa')](_0x4e27e9);if(!_0x22dbdf)throw new _0x4c734e(_0x3a7f('0x58'),this);return _0x22dbdf;}[_0x3a7f('0x66')](_0x59dbaf){const _0x20d040=this['editor'][_0x3a7f('0x3')]['get'](_0x3a7f('0x23')),_0x17648d=_0xf1b0e5(_0x3a7f('0x73')+_0x59dbaf),_0x53bef9=_0x20d040[_0x3a7f('0xa')](_0x17648d);return _0x53bef9||_0x20d040[_0x3a7f('0xff')]({'id':_0x17648d,'name':_0x59dbaf});}[_0x3a7f('0xa7')](_0x35dd96,_0x5b9f84,_0xb3369f,_0x19d4de,_0x33785a){const _0x28a9f9=this[_0x3a7f('0x112')](_0x19d4de),_0x197c2b=this['_suggestionFactory'][_0x3a7f('0x52')](_0x35dd96,_0x5b9f84,_0xb3369f,_0x28a9f9,_0x33785a,_0x4fc1bc=>this[_0x3a7f('0x10e')](_0xb3369f,{'attributes':_0x4fc1bc}));return this[_0x3a7f('0x59')](_0x197c2b,_0x3a7f('0xc'),()=>{this[_0x3a7f('0x10e')](_0xb3369f,{'state':'accepted'});},{'priority':_0x3a7f('0xd0')}),this[_0x3a7f('0x59')](_0x197c2b,_0x3a7f('0xea'),()=>{this[_0x3a7f('0x10e')](_0xb3369f,{'state':_0x3a7f('0xbc')});},{'priority':_0x3a7f('0xd0')}),this[_0x3a7f('0x6f')][_0x3a7f('0x11d')](_0xb3369f,_0x197c2b),this[_0x3a7f('0xf6')][_0x3a7f('0x11d')](_0x197c2b,_0x3a7f('0x10')),_0x197c2b;}[_0x3a7f('0x3a')](_0x43b24d){const _0x49402e=_0x43b24d[_0x3a7f('0x6a')](':');return{'group':_0x49402e[0x0],'type':_0x49402e[0x1],'subType':_0x49402e[_0x3a7f('0x30')]>=0x5?_0x49402e[0x2]:null,'id':_0x49402e[_0x3a7f('0x30')]<0x5?_0x49402e[0x2]:_0x49402e[0x3],'authorId':_0x49402e[_0x3a7f('0x30')]<0x5?_0x49402e[0x3]:_0x49402e[0x4],'markerCount':0x6==_0x49402e['length']?_0x49402e[0x5]:null};}[_0x3a7f('0x38')](_0x1d45cb,_0x42fb59,_0x13e328){const _0x13d7e9=_0x1d45cb[_0x3a7f('0x90')](),_0x1fda96=_0x13d7e9[_0x3a7f('0x50')],_0x5f14cc=_0x13d7e9[_0x3a7f('0x56')];this[_0x3a7f('0x44')](_0x1d45cb,this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x1fda96,_0x42fb59));const _0x39058f=_0x5147c7(),_0x5553fd=_0x1d45cb[_0x3a7f('0x9')]['id'],_0x4d6f08=_0x1d45cb[_0x3a7f('0x18')]+(_0x1d45cb['subType']?':'+_0x1d45cb[_0x3a7f('0x140')]:'');this[_0x3a7f('0xe9')]({'id':_0x39058f,'type':_0x4d6f08,'createdAt':new Date(),'authorId':_0x5553fd,'originalSuggestionId':_0x1d45cb['id'],'attributes':_0x1d45cb[_0x3a7f('0x16')],'data':_0x1d45cb[_0x3a7f('0x12e')]}),_0x3a7f('0xd')==_0x1d45cb[_0x3a7f('0x18')]&&(_0x13e328=this[_0x3a7f('0x9d')][_0x3a7f('0xd2')](_0x13e328[_0x3a7f('0x10a')])),this['_addSuggestionMarker'](_0x4d6f08,_0x39058f,_0x5553fd,this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x13e328,_0x5f14cc));}[_0x3a7f('0xe8')](_0x20a168,_0x1f81a2=null){const _0x6383f3=[],_0x443ee8=this[_0x3a7f('0x143')][_0x3a7f('0x3')][_0x3a7f('0xc8')](_0x3a7f('0x23'))['me'];Array[_0x3a7f('0xfe')](_0x20a168)||(_0x20a168=[_0x20a168]);for(const _0x524901 of this[_0x3a7f('0x83')]()){if(!_0x524901['isInContent'])continue;if(_0x1f81a2&&_0x524901[_0x3a7f('0x18')]!=_0x1f81a2)continue;let _0x3a0d61=!0x1;for(const _0x33430c of _0x524901[_0x3a7f('0xa0')]()){for(const _0x38d7df of _0x20a168){const _0x99ae99=_0x38d7df[_0x3a7f('0x50')]['isEqual'](_0x33430c[_0x3a7f('0x56')])||_0x38d7df['end'][_0x3a7f('0xd5')](_0x33430c[_0x3a7f('0x50')]);if(_0x99ae99||_0x38d7df[_0x3a7f('0x57')](_0x33430c)){const _0x4affd2=_0x38d7df[_0x3a7f('0x3f')](_0x33430c)&&Bt(this['_model'][_0x3a7f('0x8c')],_0x33430c['start'],_0x38d7df),_0x349721=_0x33430c[_0x3a7f('0x3f')](_0x38d7df)&&Bt(this['_model']['schema'],_0x38d7df['start'],_0x33430c);_0x6383f3[_0x3a7f('0xdd')]({'suggestion':_0x524901,'meta':{'isOwn':_0x443ee8==_0x524901[_0x3a7f('0x70')],'isNextTo':_0x99ae99,'isInsideObject':_0x4affd2,'containsRangeInObject':_0x349721}}),_0x3a0d61=!0x0;break;}}if(_0x3a0d61)break;}}return _0x6383f3;}[_0x3a7f('0x71')](_0x56f27d,_0xf7cae4,_0x14d113,_0x312d0a,_0x28cffe){this[_0x3a7f('0x9d')][_0x3a7f('0x5e')](_0x3beef5=>{let _0x8b0113=_0x3a7f('0x35')+_0x56f27d+':'+_0xf7cae4+':'+_0x14d113;_0x28cffe&&(_0x8b0113=_0x8b0113+':'+_0x28cffe),_0x3beef5[_0x3a7f('0x20')](_0x8b0113,{'range':_0x312d0a,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3a7f('0xba')](_0x480f56){const _0x11764c=_0x480f56[_0x3a7f('0x1d')],_0x586bc5=_0x480f56[_0x3a7f('0x136')];_0x480f56[_0x3a7f('0x1d')]=null,null!=_0x11764c&&(_0x11764c[_0x3a7f('0x136')]=null),_0x480f56[_0x3a7f('0x136')]=null,null!=_0x586bc5&&(_0x586bc5[_0x3a7f('0x1d')]=null),'ready'==this[_0x3a7f('0xf6')][_0x3a7f('0xc8')](_0x480f56)&&(this[_0x3a7f('0xf6')][_0x3a7f('0x11d')](_0x480f56,_0x3a7f('0x4b')),this[_0x3a7f('0x11')](_0x3a7f('0xed'),_0x480f56,_0x11764c,_0x586bc5));}['_setSuggestionData'](_0x45a1e4){const _0x2ebb3d=_0x45a1e4['id'],_0x4ea73c=this['addSuggestionData'](_0x45a1e4);if(this[_0x3a7f('0x93')]&&this[_0x3a7f('0x93')][_0x3a7f('0x118')]){const _0x10106a=this[_0x3a7f('0x143')][_0x3a7f('0x3')][_0x3a7f('0xc8')](_0x3a7f('0xec')),_0x3b5ae1=_0x4ea73c['hasComments'],_0x19c27e=_0x4ea73c[_0x3a7f('0x140')]?_0x4ea73c[_0x3a7f('0x18')]+':'+_0x4ea73c['subType']:_0x4ea73c[_0x3a7f('0x18')],_0x28019b=this[_0x3a7f('0x143')][_0x3a7f('0x134')],_0x3def2e=_0x10106a[_0x3a7f('0xb4')](_0xdce868(_0x28019b,'PENDING_ACTION_SUGGESTION')),_0x488f35={'id':_0x2ebb3d,'type':_0x19c27e,'hasComments':_0x3b5ae1,'data':_0x45a1e4[_0x3a7f('0x12e')]||null,'originalSuggestionId':_0x45a1e4[_0x3a7f('0x11c')]||null,'attributes':_0x4ea73c[_0x3a7f('0x16')]};this[_0x3a7f('0x93')][_0x3a7f('0x118')](_0x488f35)[_0x3a7f('0x11b')](_0x57503b=>{_0x4ea73c[_0x3a7f('0x116')]=!0x0,_0x10106a[_0x3a7f('0x99')](_0x3def2e),_0x57503b&&_0x57503b['createdAt']&&(this['_suggestions'][_0x3a7f('0xc8')](_0x2ebb3d)[_0x3a7f('0x47')]=_0x57503b[_0x3a7f('0x47')]);})[_0x3a7f('0x98')](_0xee5d1a=>{throw _0x272082(_0x3a7f('0x37')),this[_0x3a7f('0x143')][_0x3a7f('0xe7')][_0x3a7f('0x142')]({'isUndoable':!0x1},()=>{_0x4ea73c['discard']();}),_0x4ea73c['stopListening'](),this[_0x3a7f('0x6f')][_0x3a7f('0xfc')](_0x4ea73c['id']),this[_0x3a7f('0xf6')][_0x3a7f('0xfc')](_0x4ea73c),_0xee5d1a;});}return _0x4ea73c;}[_0x3a7f('0x10e')](_0x5e428f,_0x46f8d7){const _0xeca181=this[_0x3a7f('0x143')][_0x3a7f('0x3')][_0x3a7f('0xc8')](_0x3a7f('0xec')),_0x5a3d1a=this[_0x3a7f('0x3c')](_0x5e428f);if(this[_0x3a7f('0x93')]&&this[_0x3a7f('0x93')][_0x3a7f('0xbe')]){if(_0x5a3d1a['_saved']){const _0x4ce78d=_0xeca181[_0x3a7f('0xb4')](_0xdce868(this[_0x3a7f('0x143')][_0x3a7f('0x134')],'PENDING_ACTION_SUGGESTION'));this[_0x3a7f('0x93')][_0x3a7f('0xbe')](_0x5e428f,_0x46f8d7)[_0x3a7f('0x11b')](()=>{_0xeca181['remove'](_0x4ce78d);});}else _0x5a3d1a['on'](_0x3a7f('0x1f'),()=>{this[_0x3a7f('0x10e')](_0x5e428f,_0x46f8d7);});}}[_0x3a7f('0x48')](_0x351ec8){if(!this[_0x3a7f('0x93')]||!this[_0x3a7f('0x93')][_0x3a7f('0x3c')])throw new _0x4c734e(_0x3a7f('0x101'),this);return this[_0x3a7f('0x93')][_0x3a7f('0x3c')](_0x351ec8);}[_0x3a7f('0x9c')](_0x44b453){const {id:_0x2f40f9,type:_0x12f3d6,subType:_0x26d087,authorId:_0x199448}=this['_splitMarkerName'](_0x44b453),_0x512ef7=this[_0x3a7f('0x6f')][_0x3a7f('0xc8')](_0x2f40f9)||this['_createSuggestion'](_0x12f3d6,_0x26d087,_0x2f40f9,_0x199448,{});switch(this[_0x3a7f('0x125')](_0x512ef7,_0x12f3d6,_0x26d087,_0x199448),this['_suggestionState'][_0x3a7f('0xc8')](_0x512ef7)){case _0x3a7f('0x10'):this[_0x3a7f('0x48')](_0x2f40f9)[_0x3a7f('0x11b')](_0x2322c7=>{let _0x326ddc=Promise['resolve']();_0x2322c7['hasComments']&&(_0x326ddc=this[_0x3a7f('0x141')][_0x3a7f('0x54')]({'channelId':this[_0x3a7f('0x143')][_0x3a7f('0x1b')]['get']('collaboration.channelId'),'threadId':_0x2f40f9})),_0x326ddc[_0x3a7f('0x11b')](()=>{this['addSuggestionData'](_0x2322c7)['_saved']=!0x0;});}),this[_0x3a7f('0xf6')][_0x3a7f('0x11d')](_0x512ef7,_0x3a7f('0x124'));break;case _0x3a7f('0x4b'):this[_0x3a7f('0x10e')](_0x2f40f9,{'state':'open'});case _0x3a7f('0x6c'):this[_0x3a7f('0xf6')][_0x3a7f('0x11d')](_0x512ef7,_0x3a7f('0x32')),this[_0x3a7f('0x11')](_0x3a7f('0xf9'),_0x512ef7);break;case _0x3a7f('0x32'):this[_0x3a7f('0x11')](_0x3a7f('0x12b'),_0x512ef7);}return _0x512ef7[_0x3a7f('0x9e')](_0x44b453),_0x512ef7;}['_refreshSuggestionsChain'](_0x57ecaf){const _0x42f4e5=Array[_0x3a7f('0xeb')](_0x57ecaf)[_0x3a7f('0x4')](_0x5db7ae=>!_0x5db7ae[_0x3a7f('0xfa')]),_0x182e44=this[_0x3a7f('0x83')]({'skipNotAttached':!0x0})[_0x3a7f('0x4')](_0x4407d8=>!_0x4407d8['isMultiRange']),_0x3708fd=_0x182e44[_0x3a7f('0x4')](_0x50f978=>!_0x57ecaf['has'](_0x50f978)),_0x49f6d8=new Map(_0x182e44[_0x3a7f('0x19')](_0x20941c=>[_0x20941c,this['_suggestionFactory'][_0x3a7f('0x12f')](_0x20941c[_0x3a7f('0x18')],_0x20941c['subType'],'chain')])),_0x4fcd36=new Map(_0x182e44[_0x3a7f('0x19')](_0x4da365=>[_0x4da365,_0x4da365[_0x3a7f('0x90')]()])),_0x4153b1=new Set(),_0x1a051a=new Set();for(let _0x3965f1=0x0;_0x3965f1<_0x42f4e5[_0x3a7f('0x30')];_0x3965f1++)_0x51e9ca(_0x42f4e5[_0x3965f1],_0x42f4e5,_0x3965f1+0x1);for(let _0x27b759=0x0;_0x27b759<_0x42f4e5[_0x3a7f('0x30')];_0x27b759++)_0x51e9ca(_0x42f4e5[_0x27b759],_0x3708fd,0x0);for(let _0x11d41a=0x0;_0x11d41a<_0x42f4e5[_0x3a7f('0x30')];_0x11d41a++){const _0x4dfbdc=_0x42f4e5[_0x11d41a];!_0x1a051a['has'](_0x4dfbdc)&&_0x4dfbdc[_0x3a7f('0x1d')]&&(_0x4dfbdc[_0x3a7f('0x1d')][_0x3a7f('0x136')]===_0x4dfbdc&&(_0x4dfbdc[_0x3a7f('0x1d')][_0x3a7f('0x136')]=null),_0x4dfbdc[_0x3a7f('0x1d')]=null),!_0x4153b1[_0x3a7f('0xc0')](_0x4dfbdc)&&_0x4dfbdc[_0x3a7f('0x136')]&&(_0x4dfbdc[_0x3a7f('0x136')][_0x3a7f('0x1d')]===_0x4dfbdc&&(_0x4dfbdc[_0x3a7f('0x136')][_0x3a7f('0x1d')]=null),_0x4dfbdc[_0x3a7f('0x136')]=null);}function _0x51e9ca(_0x2fa61e,_0x19ab4a,_0x207a33){for(let _0x4f30b7=_0x207a33;_0x4f30b7<_0x19ab4a[_0x3a7f('0x30')];_0x4f30b7++){const _0x23a6b7=_0x535df5(_0x2fa61e,_0x19ab4a[_0x4f30b7]);_0x23a6b7&&(_0x23a6b7[0x0][_0x3a7f('0x136')]=_0x23a6b7[0x1],_0x23a6b7[0x1][_0x3a7f('0x1d')]=_0x23a6b7[0x0],_0x4153b1[_0x3a7f('0xb4')](_0x23a6b7[0x0]),_0x1a051a['add'](_0x23a6b7[0x1]));}}function _0x535df5(_0x49a714,_0x59b719){if(_0x49a714[_0x3a7f('0x70')]['id']!==_0x59b719[_0x3a7f('0x70')]['id'])return null;const _0x511f0d=_0x49f6d8[_0x3a7f('0xc8')](_0x49a714)(_0x49a714,_0x59b719,_0x4fcd36[_0x3a7f('0xc8')](_0x49a714),_0x4fcd36[_0x3a7f('0xc8')](_0x59b719));if(!_0x511f0d)return null;return _0x49f6d8['get'](_0x59b719)(_0x49a714,_0x59b719,_0x4fcd36[_0x3a7f('0xc8')](_0x49a714),_0x4fcd36[_0x3a7f('0xc8')](_0x59b719))?_0x511f0d[0x1][_0x3a7f('0x2a')]&&_0x511f0d[0x1][_0x3a7f('0x2a')][_0x3a7f('0x30')]?null:_0x511f0d:null;}}[_0x3a7f('0x79')](_0x3fbc87){const _0x5e21bb=Array[_0x3a7f('0xeb')](_0x3fbc87),_0x12d642=this[_0x3a7f('0x83')]({'skipNotAttached':!0x0}),_0x2d2d04=_0x12d642[_0x3a7f('0x4')](_0x3f4157=>!_0x3fbc87[_0x3a7f('0xc0')](_0x3f4157)),_0xa6a014=new Map(_0x5e21bb['map'](_0xf31de2=>[_0xf31de2,this[_0x3a7f('0x135')][_0x3a7f('0x12f')](_0xf31de2[_0x3a7f('0x18')],_0xf31de2['subType'],_0x3a7f('0xac'))])),_0x591cee=new Map(_0x12d642[_0x3a7f('0x19')](_0x51ceb4=>[_0x51ceb4,_0x51ceb4[_0x3a7f('0xa0')]()]));for(let _0x3bc538=0x0;_0x3bc538<_0x5e21bb[_0x3a7f('0x30')];_0x3bc538++){if(_0x1e09d1(this,_0x5e21bb[_0x3bc538],_0x5e21bb,_0x3bc538+0x1))return!0x0;}for(let _0x48a00f=0x0;_0x48a00f<_0x5e21bb[_0x3a7f('0x30')];_0x48a00f++){if(_0x1e09d1(this,_0x5e21bb[_0x48a00f],_0x2d2d04,0x0))return!0x0;}return!0x1;function _0x1e09d1(_0x484699,_0x1c79f3,_0x4695ee,_0x51cfd1){for(let _0x5c45e7=_0x51cfd1;_0x5c45e7<_0x4695ee['length'];_0x5c45e7++){const _0x101b34=_0x4695ee[_0x5c45e7];if(_0x101b34['type']!==_0x1c79f3[_0x3a7f('0x18')]||_0x101b34['author']['id']!==_0x1c79f3[_0x3a7f('0x70')]['id']||_0x101b34[_0x3a7f('0x140')]!==_0x1c79f3[_0x3a7f('0x140')])continue;if(!xt(_0x1c79f3,_0x101b34))continue;const _0xa0b8a3=_0xa6a014[_0x3a7f('0xc8')](_0x1c79f3),_0xf0e575=_0x591cee[_0x3a7f('0xc8')](_0x1c79f3),_0x51e610=_0x591cee[_0x3a7f('0xc8')](_0x101b34),_0x23737a=_0x1c79f3[_0x3a7f('0x2a')]&&_0x1c79f3['commentThread']['length'],_0x38dd3a=_0x101b34[_0x3a7f('0x2a')]&&_0x101b34[_0x3a7f('0x2a')]['length'];if(!_0x23737a&&_0xa0b8a3(_0x51e610,_0xf0e575))return _0x484699[_0x3a7f('0x3d')](_0x101b34,_0x1c79f3),_0x591cee[_0x3a7f('0xfc')](_0x1c79f3),!0x0;if(!_0x38dd3a&&_0xa0b8a3(_0xf0e575,_0x51e610))return _0x484699[_0x3a7f('0x3d')](_0x1c79f3,_0x101b34),_0x591cee[_0x3a7f('0xfc')](_0x101b34),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4f3706,_0x52a3a2){if(_0x4f3706['isMultiRange'])for(const _0x52795c of _0x52a3a2[_0x3a7f('0xa0')]())_0x4f3706[_0x3a7f('0x110')](_0x52795c);else{const _0x14badb=_0x52a3a2[_0x3a7f('0x90')]()[_0x3a7f('0x56')];this[_0x3a7f('0x44')](_0x4f3706,this['_model'][_0x3a7f('0x76')](_0x4f3706[_0x3a7f('0x90')]()[_0x3a7f('0x50')],_0x14badb));}_0x52a3a2[_0x3a7f('0xc3')]();}}class Dt{constructor(_0x479831){this['_editor']=_0x479831,this[_0x3a7f('0x9d')]=_0x479831['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this[_0x3a7f('0x94')]();}[_0x3a7f('0x52')](_0x36a770,_0x5c3e73,_0x2a06dc,_0x392193,_0x4954a4,_0x2d2b71){return new _0x28c196(this[_0x3a7f('0x9d')],{'type':_0x36a770,'subType':_0x5c3e73,'id':_0x2a06dc,'author':_0x392193,'creator':_0x392193,'attributes':_0x4954a4,'onAttributesChange':_0x2d2b71,'onAccept':(..._0x5a0069)=>this[_0x3a7f('0x12f')](_0x36a770,_0x5c3e73,'accept')(..._0x5a0069),'onDiscard':(..._0x5a640d)=>this['getSuggestionCallback'](_0x36a770,_0x5c3e73,'discard')(..._0x5a640d)});}['registerCustomCallback'](_0x4026dd,_0x1a8d32,_0x44e465,_0x41039c){const _0x3becf2=_0x4026dd+':'+_0x1a8d32+':'+_0x44e465;this[_0x3a7f('0x117')][_0x3a7f('0x11d')](_0x3becf2,_0x41039c);}[_0x3a7f('0x12f')](_0x10ab19,_0x102b59,_0x2a6883){const _0x417d42=_0x10ab19+':'+_0x102b59+':'+_0x2a6883;return this[_0x3a7f('0x117')]['get'](_0x417d42)||this[_0x3a7f('0x2c')]['get'](_0x10ab19+':'+_0x2a6883);}[_0x3a7f('0x94')](){const _0x2580ae=()=>!0x1,_0x2d14bc=_0x284c69=>{_0x284c69[_0x3a7f('0x55')]((_0x3ca27d,_0x318592)=>_0x3ca27d['start']['isBefore'](_0x318592[_0x3a7f('0x50')])?0x1:-0x1),this['_model']['change'](_0x1e1f7f=>{for(const _0x44dcc8 of _0x284c69){let _0xe7ba11;_0xe7ba11=_0x44dcc8[_0x3a7f('0x56')][_0x3a7f('0x4c')]&&_0x44dcc8[_0x3a7f('0x56')][_0x3a7f('0x10a')]==_0x44dcc8[_0x3a7f('0x50')][_0x3a7f('0x10d')]?_0x1e1f7f[_0x3a7f('0x1c')](_0x44dcc8[_0x3a7f('0x50')][_0x3a7f('0x10d')],'on'):_0x1e1f7f['createSelection'](_0x44dcc8),this[_0x3a7f('0x9d')][_0x3a7f('0xf')](_0xe7ba11,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2562c2=(_0x10fe28,_0x59dd69)=>{this[_0x3a7f('0x9d')][_0x3a7f('0x5e')](_0x23b2f4=>{const {commandName:_0x52f368,commandParams:_0x3e2ba0=[]}=_0x59dd69,_0x4364cb=_0x10fe28[_0x3a7f('0x19')](_0x319cb1=>(_t(_0x319cb1)&&(_0x319cb1=this[_0x3a7f('0x9d')]['createRange'](_0x319cb1[_0x3a7f('0x56')])),_0x319cb1))[_0x3a7f('0x4')](_0x283e21=>_0x3a7f('0xb7')!==_0x283e21[_0x3a7f('0x29')][_0x3a7f('0x9b')]);if(_0x4364cb[_0x3a7f('0x30')]<0x1)return;const _0x20cd9b=Array[_0x3a7f('0xeb')](this[_0x3a7f('0x9d')][_0x3a7f('0xcd')]['selection']['getRanges']())['map'](_0x11f069=>_0x55d7ae[_0x3a7f('0xf5')](_0x11f069));_0x23b2f4[_0x3a7f('0x34')](_0x4364cb);for(const _0x387d4b of this[_0x3a7f('0x113')][_0x3a7f('0xfd')]['commands']())_0x387d4b['refresh']();_0x3e2ba0['push']({'forceDefaultExecution':!0x0}),this[_0x3a7f('0x113')][_0x3a7f('0xe4')](_0x52f368,..._0x3e2ba0);const _0x27cf09=_0x20cd9b[_0x3a7f('0x4')](_0x5c06cd=>_0x3a7f('0xb7')!=_0x5c06cd[_0x3a7f('0x29')]['rootName']);_0x27cf09[_0x3a7f('0x30')]>0x0&&_0x23b2f4[_0x3a7f('0x34')](_0x27cf09);for(const _0xd98b0 of _0x20cd9b)_0xd98b0[_0x3a7f('0x7d')]();});},_0xc2b325=(_0x56733e,_0xd6b78f)=>0x1==_0x56733e[_0x3a7f('0x30')]&&0x1==_0xd6b78f['length']&&_0x56733e[0x0]['end']['isEqual'](_0xd6b78f[0x0][_0x3a7f('0x50')]),_0x461e13=(_0x5de5c4,_0xc54a54,_0x498096,_0x2aefb5)=>jt(_0x5de5c4,_0xc54a54,_0x498096,_0x2aefb5,this[_0x3a7f('0x9d')])?[_0x5de5c4,_0xc54a54]:jt(_0xc54a54,_0x5de5c4,_0x2aefb5,_0x498096,this[_0x3a7f('0x9d')])?[_0xc54a54,_0x5de5c4]:null;this[_0x3a7f('0x2c')][_0x3a7f('0x11d')](_0x3a7f('0x75'),_0x2580ae),this[_0x3a7f('0x2c')]['set'](_0x3a7f('0xf0'),_0x2d14bc),this[_0x3a7f('0x2c')]['set'](_0x3a7f('0xd8'),_0xc2b325),this['_defaultCallbacks'][_0x3a7f('0x11d')](_0x3a7f('0x11e'),_0x461e13),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')]('deletion:accept',_0x2d14bc),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')](_0x3a7f('0x8f'),_0x2580ae),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')](_0x3a7f('0x11a'),_0xc2b325),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')](_0x3a7f('0x97'),_0x461e13),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')](_0x3a7f('0x91'),_0x2562c2),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')](_0x3a7f('0xdc'),_0x2580ae),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')]('formatInline:join',_0xc2b325),this['_defaultCallbacks'][_0x3a7f('0x11d')](_0x3a7f('0x61'),_0x2580ae),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')](_0x3a7f('0x8b'),_0x2562c2),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')]('formatBlock:discard',_0x2580ae),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')](_0x3a7f('0xae'),_0xc2b325),this['_defaultCallbacks'][_0x3a7f('0x11d')](_0x3a7f('0x130'),_0x2580ae);}}function Bt(_0x2f6fb0,_0x5cd76f,_0x206552){for(const _0x216aa8 of _0x5cd76f[_0x3a7f('0x10a')][_0x3a7f('0x6e')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x216aa8[_0x3a7f('0x29')]==_0x216aa8)return!0x1;if(!_0x206552[_0x3a7f('0x3b')](_0x216aa8))return!0x1;if(_0x2f6fb0[_0x3a7f('0xa1')](_0x216aa8)||_0x2f6fb0[_0x3a7f('0xd1')](_0x216aa8))return!0x0;}return!0x1;}function _t(_0x123e73){return _0x123e73[_0x3a7f('0x56')][_0x3a7f('0x10a')]==_0x123e73[_0x3a7f('0x50')][_0x3a7f('0x10d')]&&_0x123e73[_0x3a7f('0x56')]['isAtStart'];}function Mt(_0xeb7ce3,_0x350e1d,_0x4cd676,_0x440ca7){const _0x4503a3=_0x4ad7ea=>!_0x4ad7ea[_0x3a7f('0x39')]['is'](_0x3a7f('0x13d'))&&!_0x440ca7['isObject'](_0x4ad7ea[_0x3a7f('0x39')]),_0x526e18=_0xeb7ce3['start']['getLastMatchingPosition'](_0x4503a3),_0x33f9c8=_0xeb7ce3[_0x3a7f('0x56')][_0x3a7f('0x5b')](_0x4503a3,{'direction':_0x3a7f('0x12')});return(!_0xeb7ce3['start'][_0x3a7f('0xd5')](_0x526e18)||!_0xeb7ce3[_0x3a7f('0x56')][_0x3a7f('0xd5')](_0x33f9c8))&&(_0x526e18[_0x3a7f('0xf7')](_0x33f9c8)?_0x4cd676[_0x3a7f('0x4d')](_0x350e1d,{'range':_0x4cd676['createRange'](_0x526e18,_0x33f9c8)}):_0x4cd676[_0x3a7f('0x1e')](_0x350e1d),!0x0);}function $t(_0xa893cf){return _0xf1b0e5(_0xa893cf);}function Nt(_0x31b920){const _0x518915=_0x31b920[_0x3a7f('0x50')][_0x3a7f('0x10d')];return _0x518915&&_0x518915['is'](_0x3a7f('0x4f'));}function Rt(_0x3509ca,_0x2b697b){const _0x37f633=_0x2b697b[_0x3a7f('0x8c')][_0x3a7f('0xa1')](_0x3509ca)||_0x2b697b[_0x3a7f('0x8c')][_0x3a7f('0xcf')](_0x3509ca);return _0x2b697b[_0x3a7f('0x76')](_0x2b697b['createPositionAt'](_0x3509ca,_0x3a7f('0x42')),_0x37f633?_0x2b697b['createPositionAfter'](_0x3509ca):_0x2b697b['createPositionAt'](_0x3509ca,_0x3a7f('0x56')));}function jt(_0x2798f7,_0x30a42d,_0x4e553f,_0x49b2b0,_0xb62de8){if(!xt(_0x2798f7,_0x30a42d))return!0x1;if(_0x4e553f[_0x3a7f('0x56')][_0x3a7f('0xd5')](_0x49b2b0[_0x3a7f('0x50')]))return!0x0;if(_0x2798f7[_0x3a7f('0x18')]!=_0x30a42d['type'])return!0x1;if(!_0x4e553f['end'][_0x3a7f('0xc5')](_0x49b2b0[_0x3a7f('0x50')]))return!0x1;const _0xf98f07=_0xb62de8[_0x3a7f('0x76')](_0x4e553f[_0x3a7f('0x56')],_0x49b2b0[_0x3a7f('0x50')])[_0x3a7f('0x89')]();for(const _0x3cb3bf of _0xf98f07)if(['elementStart','elementEnd']['includes'](_0x3cb3bf['type'])&&_0xb62de8['schema'][_0x3a7f('0xd1')](_0x3cb3bf[_0x3a7f('0x39')]))return!0x1;return!0x0;}function xt(_0x16e4f6,_0x204805){return!(!_0x16e4f6[_0x3a7f('0xe1')]||!_0x204805[_0x3a7f('0xe1')])&&_0x36a598(_0x16e4f6[_0x3a7f('0x16')],_0x204805['attributes']);}function Ut(_0x2018aa,_0x45e1b1){const _0x3c5db4=Ot(_0x2018aa[_0x3a7f('0x16')]),_0x35c76a=Ot(_0x45e1b1);if(!_0x2018aa[_0x3a7f('0xe1')])return!0x1;for(const _0x296ba0 of Object[_0x3a7f('0x80')](_0x35c76a))if(!_0x36a598(_0x3c5db4[_0x296ba0],_0x35c76a[_0x296ba0]))return!0x1;return!0x0;}function Ot(_0x3de5d1){const _0x5e1c3a=Object[_0x3a7f('0x121')]({},_0x3de5d1);return delete _0x5e1c3a[_0x3a7f('0x104')],delete _0x5e1c3a[_0x3a7f('0x74')],_0x5e1c3a;}
|
|
23
|
+
const _0x2891=['track-changes-command-not-found','batch','_updateSuggestionData','setAttribute','_findSuggestions','markAttributeChange','getCustomProperty','_recordAttributeChanges','getUser','createRange','getFirstRange','previous','rootName','model','formatBlock:','getAncestors','markInlineFormat','originalSuggestionId','item','removeAttribute','_saved','consumable','options','getSuggestions','markerName','@external','removeMarker','values','discardSelectedSuggestions','isNextTo','_recordAttributeSuggestionsFromVersion','commandName','addSuggestionData','getSuggestion','warn','markMultiRangeBlockFormat','track-changes-adapter-missing-getsuggestion','isInsideObject','getShiftedBy','deletion:','detach','fromRange','_inlineAttributeKeys','containsItem','suggestion:attribute:','formatBlock:accept','_enabledCommands','isBefore','suggestionUnloaded','nodeBefore','backward','never','_getMarkerAnnouncementText','deletion:chain','addAttribute','differ','track-changes-enable-command-twice','high','deletion:join','_setSuggestionData','before','addHighlight','selection','acceptSuggestion','activeMarkers','external:','formatBlock','isEqual','suggestionChanged','containerElement','isIntersecting','_suggestionState','ENTER','commands','update:suggestion','trackChanges','_isForcedDefaultExecutionBlock','CommentsRepository','_onDiscard','change:_saved','ready','resolve','getOperations','filter','hasCommentThread','setTo','suggestionLoaded','announce','unshift','comments','fetchCommentThread','toUpperCase','define','isAtStart','discardSuggestion','track-changes-suggestion-not-found','PENDING_ACTION_SUGGESTION','push','isAfter','remove','rethrowUnexpectedError','_getAuthorFromId','_removeSuggestion','collaboration.channelId','some','registerCustomCallback','trackChanges.mergeNestedSuggestions','track-changes-suggestion-data-mismatch','change:data','_createSuggestion','elementEnd','startsWith','size','isObject','consume','createElement','map','reconvertMarker','addCommentThread','root','removed','_breakSuggestionMarker','splitPosition','enqueueChange','attributes','accept','_handleNewSuggestionMarker','_commentsRepository','containsRangeInObject','author','removeMarker:suggestion:formatBlock','_suggestionFactory','value','formatInline','removeMarkers','_registerInlineAttribute','commentThread','editingDowncast','then','addRange','dataReady','authorName','addMarker:suggestion:attribute','forEach','name','removeClass','getNearestSelectionRange','rename','_suggestions','_splitMarkerName','data','_addThreadToSuggestion','config','default','widget','_refreshAttributeSuggestionsChain','delete','history','acceptSelectedSuggestions','ck-suggestion-marker','start','_registerDefaultCallbacks','rejected','after','_getAttributeKeyFromSubType','notReady','getWalker','createPositionAt','writer','isMultiRange','FORMATTING','isLocal','buildSuggestion','get','isUndo','_registerBlockAttribute','trackChangesCommand','_blockAttributeKeys','updateMarker','element','_checkSuggestionCorrectness','formatInline:chain','createSelection','createRangeOn','isOwn','containsPosition','key','listenTo','elementStart','suggestion','addMarkerName','plugins','_model','moveTargetPosition','$graveyard','requires','assign','formatBlock:discard','stop','_reduceSuggestionAttributeRange','getMultiRangeId','has','creator','mapper','position','_addSuggestionMarker','includes','PendingActions','nodeAfter','_getExternalAuthor','isLimit','version','dataDowncast','getCommentThread','hasSuggestion','chain','isCollapsed','fire','$textProxy','isIntersectingWithRange','targetPosition','discardAllSuggestions','highest','upcast','deletion:accept','markDeletion','hasComments','getRange','markBlockFormat','discard','deletion:discard','execute','_defaultCallbacks','clone','_adapter','always','attribute','addUser','enableReadOnlyMode','meta','_processAttributeSuggestions','adapter','concat','open','keys','attributeKey','unbind','format','add','conversion','getChanges','_reduceExistingSuggestions','length','set','TrackChangesEditing','attribute:discard','substring','formatInline:','documentSelection','addMarker:suggestion:formatBlock','oldRange','getChangedMarkers','_refreshSuggestionsChain','updateSuggestion','_editor','enableCommand','isRemovable','isExternal','markInsertion','getAttribute','suggestion:','move','multipleBlocks','document','fromCharCode','setSelection','schema','toViewElement','markerToData','change:activeMarkers','dataToMarker','_cutOutSuggestionMarker','insertion:discard','getIntersection','attributeNewValue','addMarker','_joinSuggestions','split','type','multi','createRangeIn','addSuggestion','insert','addClass','$marker','applyOperation','insertion:join','locale','forceDefaultExecution','_trackFormatChanges','createPositionBefore','pluginName','lowest','newValue','markMultiRangeDeletion','skipNestingCheck','attribute:join','deletion','parent','oldValue','ck-suggestion-marker-formatInline','acceptAllSuggestions','ck-suggestion-marker--active','$text','every','removeComment','sort','_customCallbacks','low','_isDataLoaded','getDifference','elementToElement','init','attributeOldValue','insertion','addComment','markerNameToElements','return','pop','isInContent','_getSuggestionData','isAtEnd','end','_initAriaMarkerChangeAnnouncements','createdAt','$elementName','marker-count','attribute:accept','ariaLiveAnnouncer','markerToHighlight','groupId','Users','_joinWithAdjacentSuggestions','isTouching','formatInline:accept','ck-suggestion-marker-formatBlock','getFirstMarker','getSuggestionCallback','howMany','isBlock','for','subType','formatInline:join','getRanges','_isBlockAttribute','containsRange','getAllAdjacentSuggestions','editor','toJSON','formatGroupId','showSuggestionHighlights','registerPostFixer','_rangeIsInLocalUserInsertion','getLastMatchingPosition','find','change','next','catch','_setSuggestionRange','changeAttribute','normal','join','_mergeNestedSuggestions','addMarker:suggestion','formatBlock:chain','_enableDefaultAttributesIntegration','markMultiRangeInsertion','splice','newName','from','authoredAt','clear','newRange','range','_processAttributeChanges','Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.'];(function(_0xc3c85d,_0x28912f){const _0x439e9d=function(_0x241bd1){while(--_0x241bd1){_0xc3c85d['push'](_0xc3c85d['shift']());}};_0x439e9d(++_0x28912f);}(_0x2891,0x97));const _0x439e=function(_0xc3c85d,_0x28912f){_0xc3c85d=_0xc3c85d-0x0;let _0x439e9d=_0x2891[_0xc3c85d];return _0x439e9d;};import{Plugin as _0xb5740b,PendingActions as _0x48b18f}from'ckeditor5/src/core';import{LiveRange as _0x5d4469}from'ckeditor5/src/engine';import{CKEditorError as _0x316ab1,uid as _0x1990b4,priorities as _0x121d4a,logWarning as _0x189efa}from'ckeditor5/src/utils';import{toWidget as _0x2ba5c7}from'ckeditor5/src/widget';import{Users as _0x27ca29,hashObject as _0xf5555,surroundingMarkersDetector as _0x56de40}from'ckeditor5-collaboration/src/collaboration-core';import _0x140afb from'./commands/trackchangescommand';import _0x51a034 from'./commands/acceptsuggestioncommand';import _0x284540 from'./commands/discardsuggestioncommand';import _0x7353a0 from'./commands/executeonallsuggestionscommand';import _0x51fe86 from'./commands/executeonselectedsuggestionscommand';import _0x5b5191 from'./suggestion';import _0x4c2e37 from'./suggestiondescriptionfactory';import _0xff436d from'./integrations/aiassistant';import _0x3779c6 from'./integrations/alignment';import _0x3f3199 from'./integrations/basicstyles';import _0x3a1bd3 from'./integrations/blockquote';import _0x40e4e8 from'./integrations/ckbox';import _0x194967 from'./integrations/codeblock';import _0x455dee from'./integrations/comments';import _0x496034 from'./integrations/deletecommand';import _0x458830 from'./integrations/documentlist';import _0x44773f from'./integrations/documentlistproperties';import _0x5943d9 from'./integrations/entercommand';import _0x246de8 from'./integrations/findandreplace';import _0x4295a8 from'./integrations/font';import _0x21e31f from'./integrations/formatpainter';import _0x2321f3 from'./integrations/heading';import _0x5e7e0e from'./integrations/highlight';import _0x58f566 from'./integrations/horizontalline';import _0x19d6b9 from'./integrations/htmlembed';import _0x50a6b4 from'./integrations/image';import _0x2be66d from'./integrations/imagereplace';import _0x414b62 from'./integrations/imagestyle';import _0x10f290 from'./integrations/importword';import _0x210cf6 from'./integrations/indent';import _0x6dee9d from'./integrations/inputcommand';import _0x1f99a1 from'./integrations/link';import _0x2f5d38 from'./integrations/list';import _0x50b71b from'./integrations/listproperties';import _0x4928eb from'./integrations/mediaembed';import _0x334590 from'./integrations/mention';import _0x4196b8 from'./integrations/pagebreak';import _0x3ce299 from'./integrations/paragraph';import _0x521475 from'./integrations/removeformat';import _0x368ea9 from'./integrations/restrictededitingmode';import _0x357818 from'./integrations/shiftentercommand';import _0xcdcfa3 from'./integrations/standardeditingmode';import _0x388006 from'./integrations/style';import _0x23da1c from'./integrations/table';import _0x4b84e7 from'./integrations/tablemergesplit';import _0x340a03 from'./integrations/tableheadings';import _0x439cc8 from'./integrations/tableclipboard';import _0xfc6d3 from'./integrations/tablecolumnresize';import _0x2bf240 from'./integrations/template';import _0x3a2c3a from'./integrations/tableofcontents';import _0x49b43a from'./integrations/title';import _0x1e1584 from'./integrations/undo';import _0x465142 from'./integrations/tablecaption';import _0x342e07 from'./integrations/tableproperties';import{getTranslation as _0x1027b4}from'./utils/common-translations';import{isEqual as _0x42d7a6,omit as _0x2e307b}from'lodash-es';export const renameAttributeKey=_0x439e('0xb8');export default class p extends _0xb5740b{static get[_0x439e('0x2c')](){return[_0x439e('0x138'),_0x27ca29,_0x48b18f,_0xff436d,_0x3779c6,_0x3f3199,_0x3a1bd3,_0x40e4e8,_0x194967,_0x455dee,_0x496034,_0x458830,_0x44773f,_0x5943d9,_0x246de8,_0x4295a8,_0x21e31f,_0x2321f3,_0x5e7e0e,_0x58f566,_0x19d6b9,_0x50a6b4,_0x414b62,_0x2be66d,_0x10f290,_0x210cf6,_0x6dee9d,_0x1f99a1,_0x2f5d38,_0x50b71b,_0x4928eb,_0x334590,_0x4196b8,_0x3ce299,_0x521475,_0x368ea9,_0x357818,_0xcdcfa3,_0x388006,_0x23da1c,_0x4b84e7,_0x340a03,_0x465142,_0x439cc8,_0xfc6d3,_0x3a2c3a,_0x342e07,_0x2bf240,_0x49b43a,_0x1e1584];}static get[_0x439e('0x96')](){return _0x439e('0x67');}constructor(_0x4a5c11){function _0x2ecdd4(_0x275789){return _0x275789[_0x439e('0x15f')](_0x29340d=>String[_0x439e('0x7b')](_0x29340d))[_0x439e('0xdc')]('');}super(_0x4a5c11),this[_0x439e('0x109')]=null,this[_0x439e('0x66')](_0x439e('0x12b'),[]),this['on'](_0x439e('0x80'),(_0x43f0d5,_0x4a4ac6,_0x564759,_0x4071c3)=>{this[_0x439e('0x29')][_0x439e('0xd6')](()=>{for(const _0x488b2e of[..._0x4071c3,..._0x564759])this[_0x439e('0x29')]['markers']['has'](_0x488b2e)&&_0x4a5c11['editing'][_0x439e('0x160')](_0x488b2e);});}),this['_descriptionFactory']=new _0x4c2e37(this[_0x439e('0xce')][_0x439e('0xf8')][_0x439e('0x7d')],this[_0x439e('0xce')][_0x439e('0x92')]),this[_0x439e('0x53')]=null,this[_0x439e('0x16e')]=new Bt(this[_0x439e('0xce')]),this[_0x439e('0x17f')]=new Map(),this[_0x439e('0x16a')]=_0x4a5c11[_0x439e('0x28')][_0x439e('0x16')]('CommentsRepository'),this[_0x439e('0x119')]=new Set(),this[_0x439e('0x29')]=this[_0x439e('0xce')][_0x439e('0xf8')],this['_suggestionState']=new WeakMap(),this[_0x439e('0x137')]=!0x1,this['_blockAttributeKeys']=new Set([_0x439e('0xb8')]),this[_0x439e('0x115')]=new Set(),_0x4a5c11[_0x439e('0x1')]['define']('trackChanges.trackFormatChanges',_0x439e('0x2')),this[_0x439e('0x94')]=_0x4a5c11['config'][_0x439e('0x16')]('trackChanges.trackFormatChanges'),_0x4a5c11[_0x439e('0x1')][_0x439e('0x147')](_0x439e('0x155'),!0x0),this[_0x439e('0xdd')]=_0x4a5c11['config']['get'](_0x439e('0x155')),this['trackChangesCommand']=new _0x140afb(_0x4a5c11,this[_0x439e('0x119')]),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2ecdd4([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2ecdd4([0x34,0x30,0x34,0x36,0x32,0x32,0x33,0x30]);}[_0x439e('0xab')](){const _0x332b58=this[_0x439e('0xce')],_0x91a2bc=(_0x45f3f0,_0x30b344)=>{if('attribute'!=_0x45f3f0)return'ck-suggestion-marker-'+_0x45f3f0;const _0x28c7b1=_0x30b344[_0x439e('0x88')]('|')[0x0];return this[_0x439e('0xcb')](_0x28c7b1)?_0x439e('0xc2'):_0x439e('0x9f');};_0x332b58[_0x439e('0x62')][_0x439e('0xc7')](_0x439e('0x174'))['markerToHighlight']({'model':_0x439e('0x26'),'view':_0x4e95b4=>{const {id:_0x132278,type:_0x2a1926,subType:_0x542348}=this[_0x439e('0x180')](_0x4e95b4[_0x439e('0x103')]),_0x1713fd=[_0x439e('0x8'),_0x91a2bc(_0x2a1926,_0x542348)];let _0x479e71=0xbb8;return this['activeMarkers'][_0x439e('0x37')](_0x4e95b4['markerName'])&&(_0x1713fd[_0x439e('0x14c')](_0x439e('0xa1')),_0x479e71=0xbc2),_0x439e('0x9c')==_0x2a1926&&(_0x479e71+=0x5),{'classes':_0x1713fd,'attributes':{'data-suggestion':_0x132278},'priority':_0x479e71};}}),_0x332b58[_0x439e('0x62')][_0x439e('0xc7')](_0x439e('0x3d'))[_0x439e('0x61')](_0x5c1b86=>{_0x5c1b86['on'](_0x439e('0xde'),(_0x4ee577,_0x17cad3,_0x25b21c)=>{if(!_0x25b21c[_0x439e('0x101')]['showSuggestionHighlights'])return;const _0x1c5d2e=_0x17cad3[_0x439e('0xfd')];if(!_0x1c5d2e)return;const _0x1f5c8d=_0x25b21c[_0x439e('0x34')]['toViewElement'](_0x1c5d2e);_0x332b58['model'][_0x439e('0x7d')]['isObject'](_0x1c5d2e)&&_0x1f5c8d&&!_0x1f5c8d[_0x439e('0xf1')](_0x439e('0x3'))&&_0x1f5c8d['is'](_0x439e('0x130'))&&_0x2ba5c7(_0x1f5c8d,_0x25b21c[_0x439e('0x11')]);},{'priority':_0x439e('0x124')});}),_0x332b58['conversion'][_0x439e('0xc7')](_0x439e('0x3d'))[_0x439e('0xbc')]({'model':'suggestion','view':(_0x1ccda0,_0x5b2f81)=>{if(!_0x5b2f81[_0x439e('0x101')][_0x439e('0xd1')])return null;const {type:_0x255ce8,subType:_0x169533}=this[_0x439e('0x180')](_0x1ccda0[_0x439e('0x103')]);return{'classes':['ck-suggestion-marker',_0x91a2bc(_0x255ce8,_0x169533)],'priority':0xbb8};}});const _0x92fc44=({showActiveMarkers:_0x38acd7=!0x0,isAttributeSuggestion:_0x51319e=!0x1}={})=>(_0x5c842d,_0x34889d,_0x3faa94)=>{if(!_0x34889d[_0x439e('0xfd')])return;const {id:_0x2a7262}=this['_splitMarkerName'](_0x34889d[_0x439e('0x103')]);if(_0x51319e){const _0x5d0c96=this[_0x439e('0x17f')][_0x439e('0x16')](_0x2a7262),_0x315570=this['_getAttributeKeyFromSubType'](_0x5d0c96);if(!this[_0x439e('0xcb')](_0x315570))return;}if(_0x34889d[_0x439e('0xfd')]['is'](_0x439e('0x129')))return void _0x3faa94['consumable'][_0x439e('0x15d')](_0x34889d[_0x439e('0xfd')],_0x5c842d['name']);const _0x355e70=_0x3faa94[_0x439e('0x34')][_0x439e('0x7e')](_0x34889d[_0x439e('0xfd')]);if(_0x34889d[_0x439e('0xfd')]['is'](_0x439e('0x1c'))&&_0x332b58[_0x439e('0xf8')][_0x439e('0x7d')][_0x439e('0xc6')](_0x34889d[_0x439e('0xfd')])&&!_0x355e70['getCustomProperty'](_0x439e('0x128'))){_0x3faa94['writer'][_0x439e('0x8e')]([_0x439e('0x8'),_0x439e('0xc2')],_0x355e70),_0x3faa94[_0x439e('0x11')][_0x439e('0xee')]('data-suggestion',_0x2a7262,_0x355e70),_0x3faa94[_0x439e('0x34')]['bindElementToMarker'](_0x355e70,_0x34889d[_0x439e('0x103')]),_0x38acd7&&(this[_0x439e('0x12b')][_0x439e('0x37')](_0x34889d[_0x439e('0x103')])?_0x3faa94[_0x439e('0x11')]['addClass'](_0x439e('0xa1'),_0x355e70):_0x3faa94[_0x439e('0x11')][_0x439e('0x17c')](_0x439e('0xa1'),_0x355e70));for(const _0x2577f3 of _0x332b58[_0x439e('0xf8')][_0x439e('0x8b')](_0x34889d[_0x439e('0xfd')])['getItems']())_0x3faa94[_0x439e('0x100')][_0x439e('0x15d')](_0x2577f3,_0x5c842d[_0x439e('0x17b')]);_0x3faa94['consumable'][_0x439e('0x15d')](_0x34889d[_0x439e('0xfd')],_0x5c842d[_0x439e('0x17b')]);}};_0x332b58[_0x439e('0x62')][_0x439e('0xc7')](_0x439e('0x3d'))[_0x439e('0x61')](_0x399bba=>{_0x399bba['on'](_0x439e('0x6c'),(_0x5a5b7d,_0x3f0afa,_0x480842)=>{_0x480842[_0x439e('0x101')][_0x439e('0xd1')]&&_0x92fc44({'showActiveMarkers':!0x1})(_0x5a5b7d,_0x3f0afa,_0x480842);},{'priority':_0x439e('0x47')});}),_0x332b58[_0x439e('0x62')][_0x439e('0xc7')](_0x439e('0x3d'))['add'](_0x59a787=>{_0x59a787['on']('addMarker:suggestion:attribute',(_0x4c6160,_0x19582d,_0x5574bc)=>{_0x5574bc[_0x439e('0x101')][_0x439e('0xd1')]&&_0x92fc44({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4c6160,_0x19582d,_0x5574bc);},{'priority':_0x439e('0x47')});}),_0x332b58[_0x439e('0x62')][_0x439e('0xc7')](_0x439e('0x3d'))[_0x439e('0x7f')]({'model':_0x439e('0x26'),'view':(_0x34f734,_0xc2c52d)=>_0xc2c52d[_0x439e('0x101')][_0x439e('0xd1')]?null:{'group':_0x439e('0x26'),'name':_0x34f734['substr'](0xb)}}),_0x332b58['conversion']['for'](_0x439e('0x48'))[_0x439e('0xaa')]({'view':{'name':_0x439e('0x26'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x10b3a2,{writer:_0x481913})=>{let _0x48f19e=_0x439e('0x77')+_0x10b3a2[_0x439e('0x76')]('suggestion-type')+':'+_0x10b3a2['getAttribute']('id');return _0x10b3a2[_0x439e('0x76')]('marker-count')&&(_0x48f19e+=':'+_0x10b3a2[_0x439e('0x76')](_0x439e('0xb9'))),_0x481913[_0x439e('0x15e')](_0x439e('0x8f'),{'data-name':_0x48f19e});}}),_0x332b58['conversion']['for'](_0x439e('0x48'))[_0x439e('0x81')]({'view':_0x439e('0x26')}),_0x332b58['conversion'][_0x439e('0xc7')]('editingDowncast')['add'](_0x45706f=>{_0x45706f['on'](_0x439e('0x6c'),_0x92fc44(),{'priority':_0x439e('0x124')});}),_0x332b58[_0x439e('0x62')][_0x439e('0xc7')]('editingDowncast')[_0x439e('0x61')](_0x3ca407=>{_0x3ca407['on'](_0x439e('0x179'),_0x92fc44({'isAttributeSuggestion':!0x0}),{'priority':_0x439e('0x124')});}),_0x332b58[_0x439e('0x62')]['for'](_0x439e('0x174'))[_0x439e('0x61')](_0x18b7a9=>{_0x18b7a9['on'](_0x439e('0x16d'),(_0x36efe1,_0x423d7f,_0x2471b8)=>{const _0x8039f8=_0x2471b8[_0x439e('0x34')][_0x439e('0xaf')](_0x423d7f['markerName']);if(_0x8039f8)for(const _0x399f33 of _0x8039f8)_0x399f33['getCustomProperty'](_0x439e('0x128'))||(_0x2471b8['writer'][_0x439e('0x17c')]([_0x439e('0x8'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x399f33),_0x2471b8[_0x439e('0x11')][_0x439e('0xfe')]('data-suggestion',_0x399f33),_0x2471b8['mapper']['unbindElementFromMarkerName'](_0x399f33,_0x423d7f[_0x439e('0x103')]));},{'priority':_0x439e('0x124')});}),_0x332b58['conversion'][_0x439e('0xc7')](_0x439e('0x174'))[_0x439e('0x61')](_0x3212ad=>{_0x3212ad['on']('removeMarker:suggestion:attribute',(_0x1932fe,_0x5314ee,_0x314a05)=>{const _0x193ae3=_0x314a05[_0x439e('0x34')][_0x439e('0xaf')](_0x5314ee['markerName']);if(!_0x193ae3)return;const {id:_0x3572cc}=this[_0x439e('0x180')](_0x5314ee[_0x439e('0x103')]),_0xf7d0ee=this[_0x439e('0x17f')]['get'](_0x3572cc),_0x2956b3=this[_0x439e('0xd')](_0xf7d0ee);if(this[_0x439e('0xcb')](_0x2956b3))for(const _0x4e469e of _0x193ae3)_0x4e469e[_0x439e('0xf1')]('addHighlight')||(_0x314a05['writer'][_0x439e('0x17c')]([_0x439e('0x8'),_0x439e('0xc2'),_0x439e('0xa1')],_0x4e469e),_0x314a05[_0x439e('0x11')][_0x439e('0xfe')]('data-suggestion',_0x4e469e),_0x314a05[_0x439e('0x34')]['unbindElementFromMarkerName'](_0x4e469e,_0x5314ee[_0x439e('0x103')]));},{'priority':'high'});}),_0x332b58[_0x439e('0xf8')]['document']['registerPostFixer'](_0x1ed4fc=>{let _0x1f5b88=!0x1;const _0x58ff62=Array[_0x439e('0xe4')](_0x332b58[_0x439e('0xf8')]['document'][_0x439e('0x122')]['getChangedMarkers']()),_0x7f7df=new Set();for(const {name:_0x161503,data:_0x483547}of _0x58ff62){const {group:_0x475325,type:_0x15195a,subType:_0x685b4d,id:_0x13e707}=this[_0x439e('0x180')](_0x161503);if(_0x439e('0x26')!==_0x475325)continue;const _0x513d0c=this[_0x439e('0x17f')]['get'](_0x13e707);if(null!=_0x483547['newRange']){_0x439e('0x170')==_0x15195a&&(_0x1f5b88=_0x1f5b88||Et(_0x483547[_0x439e('0xe7')],_0x161503,_0x1ed4fc,_0x332b58[_0x439e('0xf8')]['schema']));const _0x12f29a=_0x439e('0x55')==_0x15195a&&this[_0x439e('0xcb')](_0x685b4d['split']('|')[0x0]);if(_0x483547[_0x439e('0xe7')][_0x439e('0x41')]||_0x439e('0x2b')==_0x483547[_0x439e('0xe7')][_0x439e('0x162')][_0x439e('0xf7')]||_0x439e('0x12d')==_0x15195a&&!jt(_0x483547[_0x439e('0xe7')])||_0x12f29a&&!jt(_0x483547[_0x439e('0xe7')])||'deletion'==_0x15195a&&!(!xt(_0x4e93f4=_0x483547['newRange'])&&!function(_0x1aedd5){return _0x1aedd5[_0x439e('0x9')]['parent']==_0x1aedd5[_0x439e('0xb5')][_0x439e('0x11c')]&&_0x1aedd5[_0x439e('0x9')]['isAtEnd'];}(_0x4e93f4)))_0x1ed4fc['removeMarker'](_0x161503),_0x1f5b88=!0x0;else{if(!_0x513d0c||!_0x513d0c[_0x439e('0xb2')])continue;_0x7f7df[_0x439e('0x61')](_0x513d0c);}}}var _0x4e93f4;return _0x7f7df[_0x439e('0x15b')]>0x0&&(_0x1f5b88=!!this[_0x439e('0xbf')](_0x7f7df)||_0x1f5b88),_0x1f5b88;}),_0x332b58[_0x439e('0xf8')]['document'][_0x439e('0xd2')](_0x2b126e=>{let _0xc3902b=!0x1;for(const _0x23a666 of _0x332b58[_0x439e('0xf8')][_0x439e('0x7a')][_0x439e('0x122')]['getChanges']())if(_0x439e('0x8d')==_0x23a666['type'])for(const _0x5433f8 of this[_0x439e('0x17f')][_0x439e('0x106')]()){if(_0x5433f8[_0x439e('0x12')]||!_0x5433f8[_0x439e('0xb2')])continue;const _0xb5c9c9=_0x439e('0x12d')==_0x5433f8[_0x439e('0x89')],_0x45d341=this[_0x439e('0xd')](_0x5433f8),_0x47a90e=_0x45d341&&this[_0x439e('0xcb')](_0x45d341);if(!_0xb5c9c9&&!_0x47a90e)continue;const _0x4b8117=_0x5433f8[_0x439e('0xf5')]();if(_0x4b8117[_0x439e('0x9')]['parent']!=_0x4b8117[_0x439e('0xb5')]['parent']&&!_0x4b8117[_0x439e('0xb5')][_0x439e('0xb4')]){const _0x1d439c=_0x332b58['model'][_0x439e('0x10')](_0x4b8117[_0x439e('0x9')][_0x439e('0x39')],'end'),_0xc1d44a=_0x332b58[_0x439e('0xf8')][_0x439e('0xf4')](_0x4b8117[_0x439e('0x9')],_0x1d439c);_0x2b126e['updateMarker'](_0x5433f8[_0x439e('0xc3')](),{'range':_0xc1d44a}),_0xc3902b=!0x0;}}return _0xc3902b;}),_0x332b58[_0x439e('0xf8')][_0x439e('0x7a')]['registerPostFixer'](_0x873eb3=>this[_0x439e('0xe9')](_0x873eb3)),_0x332b58['model'][_0x439e('0x7a')][_0x439e('0xd2')](_0x10e8bd=>!_0x10e8bd[_0x439e('0xec')][_0x439e('0x14')]&&this[_0x439e('0x59')](_0x10e8bd)),_0x332b58['model']['markers']['on'](_0x439e('0x135'),(_0x44a9c7,_0xa82a95,_0x2aed27)=>{if(null==_0x2aed27){const {id:_0x56df16}=this['_splitMarkerName'](_0xa82a95[_0x439e('0x17b')]),_0x36f175=this['_suggestions'][_0x439e('0x16')](_0x56df16);_0x36f175&&_0x36f175['addMarkerName'](_0xa82a95[_0x439e('0x17b')]);}}),_0x332b58[_0x439e('0xf8')][_0x439e('0x7a')]['on'](_0x439e('0x157'),()=>{const _0x22d0a5=Array['from'](_0x332b58[_0x439e('0xf8')][_0x439e('0x7a')]['differ'][_0x439e('0x6e')]())['filter'](_0x42e52b=>_0x439e('0x26')===this['_splitMarkerName'](_0x42e52b[_0x439e('0x17b')])['group']);if(0x0===_0x22d0a5['length'])return;_0x22d0a5[_0x439e('0xa5')]((_0x3c5397,_0x5c1a78)=>{const _0x4c3b5a=_0x3c5397[_0x439e('0x181')]['oldRange'],_0x562d99=_0x5c1a78[_0x439e('0x181')][_0x439e('0x6d')];return null===_0x4c3b5a&&null===_0x562d99?0x0:null===_0x4c3b5a&&null!==_0x562d99?-0x1:null!==_0x4c3b5a&&null===_0x562d99?0x1:_0x4c3b5a[_0x439e('0x9')][_0x439e('0x11a')](_0x562d99['start'])?-0x1:0x1;});const _0x582371=new Set(),_0x53ac68=new Set();for(const {name:_0x58e5c5,data:_0x4cf6f0}of _0x22d0a5){const {id:_0x1514e3}=this[_0x439e('0x180')](_0x58e5c5);if(null===_0x4cf6f0[_0x439e('0x6d')]){const _0xcc2cb2=this[_0x439e('0x169')](_0x58e5c5);_0x53ac68[_0x439e('0x61')](_0xcc2cb2);}else{const _0x4f5f84=this[_0x439e('0x17f')][_0x439e('0x16')](_0x1514e3);null!==_0x4cf6f0[_0x439e('0xe7')]||_0x4f5f84[_0x439e('0xb2')]?(_0x582371[_0x439e('0x61')](_0x4f5f84['head']),_0x53ac68[_0x439e('0x61')](_0x4f5f84)):this['_removeSuggestion'](_0x4f5f84);}}_0x53ac68[_0x439e('0x15b')]>0x0&&this[_0x439e('0x6f')](_0x53ac68);for(const _0x4c1bc4 of _0x582371)this[_0x439e('0x42')](_0x439e('0x12f'),_0x4c1bc4);}),_0x332b58[_0x439e('0xf8')]['on'](_0x439e('0x90'),(_0xd814d9,_0x297d5c)=>{const _0x119f95=_0x297d5c[0x0];if(!this[_0x439e('0x17f')][_0x439e('0x15b')])return;if(!_0x119f95['isDocumentOperation'])return;if(_0x119f95[_0x439e('0xec')][_0x439e('0x17')]||!_0x119f95[_0x439e('0xec')][_0x439e('0x14')])return;let _0x912aab,_0x230bb8;switch(_0x119f95[_0x439e('0x89')]){case _0x439e('0x8d'):_0x912aab=_0x332b58[_0x439e('0xf8')][_0x439e('0x10')](_0x119f95['position']),_0x230bb8=_0x912aab['getShiftedBy'](_0x119f95[_0x439e('0xc5')]);break;case _0x439e('0x88'):_0x912aab=_0x332b58['model'][_0x439e('0x10')](_0x119f95[_0x439e('0x165')]),_0x230bb8=_0x332b58[_0x439e('0xf8')][_0x439e('0x10')](_0x119f95[_0x439e('0x2a')]);break;case _0x439e('0x78'):_0x912aab=_0x332b58[_0x439e('0xf8')][_0x439e('0x10')](_0x119f95[_0x439e('0x45')]),_0x230bb8=_0x912aab[_0x439e('0x111')](_0x119f95['howMany']);break;default:return;}const _0xe31760=_0x332b58['model'][_0x439e('0xf4')](_0x912aab,_0x230bb8);_0x332b58[_0x439e('0xf8')]['change'](()=>{for(const {suggestion:_0x3e1924,meta:_0x151e50}of this['_findSuggestions'](_0xe31760)){if(_0x3e1924['isMultiRange'])continue;if('formatInline'==_0x3e1924[_0x439e('0x89')])continue;const _0x212b05=this[_0x439e('0xd')](_0x3e1924);if(_0x212b05&&this['_isBlockAttribute'](_0x212b05)&&_0x439e('0x88')!=_0x119f95[_0x439e('0x89')])continue;const _0x18cea0=_0x3e1924[_0x439e('0x181')]&&_0x3e1924[_0x439e('0x181')][_0x439e('0x79')];(_0x439e('0x12d')!=_0x3e1924[_0x439e('0x89')]||_0x439e('0x88')==_0x119f95[_0x439e('0x89')]&&!_0x18cea0)&&(_0x151e50[_0x439e('0x16b')]||_0x439e('0xad')==_0x3e1924['type']&&_0x151e50[_0x439e('0x21')]||_0x3e1924[_0x439e('0xf5')]()[_0x439e('0xcc')](_0xe31760)&&this[_0x439e('0x164')](_0x3e1924,_0x912aab,_0x230bb8));}});},{'priority':_0x439e('0x97')}),_0x332b58[_0x439e('0xf8')]['on']('deleteContent',(_0x7d2170,_0x5e6182)=>{const _0x45d277=_0x5e6182[0x0],_0x236e3a=_0x5e6182[0x1];if(_0x236e3a&&_0x236e3a['forceDefaultExecution'])return;if(this[_0x439e('0x137')])return;if(!this['trackChangesCommand'][_0x439e('0x16f')])return;if(_0x45d277['isCollapsed'])return;const _0x56e457=_0x332b58['model'][_0x439e('0x7d')],{start:_0x1373dc,end:_0x5836d8}=_0x45d277[_0x439e('0xf5')](),_0x139b7f=_0x1373dc['nodeAfter']&&_0x56e457[_0x439e('0x3b')](_0x1373dc[_0x439e('0x39')])?null:_0x56e457[_0x439e('0x17d')](_0x1373dc,'forward'),_0xb03ef1=_0x5836d8['nodeBefore']&&_0x56e457[_0x439e('0x3b')](_0x5836d8['nodeBefore'])?null:_0x56e457[_0x439e('0x17d')](_0x5836d8,_0x439e('0x11d')),_0x4b721e=_0x332b58['model']['createRange'](_0x139b7f?_0x139b7f[_0x439e('0x9')]:_0x1373dc,_0xb03ef1?_0xb03ef1['end']:_0x5836d8);_0x332b58[_0x439e('0xf8')][_0x439e('0xd6')](_0x4ef398=>{this[_0x439e('0x4a')](_0x4b721e);const _0x39907a=_0x332b58[_0x439e('0xf8')][_0x439e('0x7d')]['getNearestSelectionRange'](_0x4b721e[_0x439e('0x9')]);_0x45d277['is'](_0x439e('0x6b'))?_0x4ef398[_0x439e('0x7c')](_0x39907a):_0x45d277[_0x439e('0x140')](_0x39907a);}),_0x7d2170[_0x439e('0x2f')]();},{'priority':_0x121d4a[_0x439e('0xdb')]+0xa}),_0x332b58['model']['on']('insertContent',(_0x18aad8,_0x41973e)=>{const _0x4522a3=_0x41973e[_0x41973e[_0x439e('0x65')]-0x1];_0x4522a3&&_0x4522a3[_0x439e('0x93')]||this[_0x439e('0x137')]||this['trackChangesCommand'][_0x439e('0x16f')]&&(_0x332b58[_0x439e('0xf8')][_0x439e('0xd6')](()=>{let _0x303a54=_0x332b58[_0x439e('0xf8')]['insertContent'](_0x41973e[0x0],_0x41973e[0x1],_0x41973e[0x2],{'forceDefaultExecution':!0x0});if(!_0x303a54)return;_0x18aad8[_0x439e('0xb0')]=_0x303a54[_0x439e('0x52')]();const _0x28b76d=_0x303a54[_0x439e('0xb5')]['nodeBefore'],_0x51811e=_0x332b58['model'][_0x439e('0x7d')];_0x28b76d&&_0x51811e['isBlock'](_0x28b76d)&&!_0x51811e[_0x439e('0x15c')](_0x28b76d)&&(_0x303a54=_0x332b58[_0x439e('0xf8')][_0x439e('0xf4')](_0x303a54[_0x439e('0x9')],_0x332b58[_0x439e('0xf8')]['createPositionAt'](_0x28b76d,'end'))),this[_0x439e('0x75')](_0x303a54);}),_0x18aad8['stop']());},{'priority':_0x439e('0x124')}),this[_0x439e('0xce')][_0x439e('0x134')][_0x439e('0x61')](_0x439e('0x136'),this[_0x439e('0x19')]),this[_0x439e('0x72')](_0x439e('0x136'));const _0x2bbda2=new _0x51a034(_0x332b58,this[_0x439e('0x17f')]);_0x332b58[_0x439e('0x134')][_0x439e('0x61')]('acceptSuggestion',_0x2bbda2),this['enableCommand'](_0x439e('0x12a'));const _0x37c4a3=new _0x284540(_0x332b58,this[_0x439e('0x17f')]);_0x332b58['commands'][_0x439e('0x61')](_0x439e('0x149'),_0x37c4a3),this[_0x439e('0x72')](_0x439e('0x149')),_0x332b58['commands'][_0x439e('0x61')](_0x439e('0xa0'),new _0x7353a0(_0x332b58,_0x2bbda2,this[_0x439e('0x17f')])),this[_0x439e('0x72')](_0x439e('0xa0')),_0x332b58[_0x439e('0x134')][_0x439e('0x61')](_0x439e('0x46'),new _0x7353a0(_0x332b58,_0x37c4a3,this[_0x439e('0x17f')])),this[_0x439e('0x72')](_0x439e('0x46')),_0x332b58[_0x439e('0x134')]['add'](_0x439e('0x7'),new _0x51fe86(_0x332b58,_0x2bbda2,this[_0x439e('0x17f')])),this[_0x439e('0x72')]('acceptSelectedSuggestions'),_0x332b58[_0x439e('0x134')][_0x439e('0x61')](_0x439e('0x107'),new _0x51fe86(_0x332b58,_0x37c4a3,this[_0x439e('0x17f')])),this[_0x439e('0x72')](_0x439e('0x107'));const _0x502463=_0x332b58[_0x439e('0x28')][_0x439e('0x16')](_0x439e('0x138'));this[_0x439e('0x24')](_0x502463,_0x439e('0xae'),(_0x3069b6,{threadId:_0x406804})=>{const _0x4255d9=this[_0x439e('0x17f')][_0x439e('0x16')](_0x406804);_0x4255d9&&_0x4255d9[_0x439e('0x173')]&&0x1===_0x4255d9[_0x439e('0x173')][_0x439e('0x65')]&&this[_0x439e('0xed')](_0x406804,{'hasComments':!0x0});},{'priority':_0x439e('0xa7')}),this[_0x439e('0x24')](_0x502463,_0x439e('0xa4'),(_0x45c29b,{threadId:_0x4ede74})=>{const _0x180c66=this[_0x439e('0x17f')][_0x439e('0x16')](_0x4ede74);_0x180c66&&_0x180c66[_0x439e('0x173')]&&!_0x180c66['commentThread']['length']&&this[_0x439e('0xed')](_0x4ede74,{'hasComments':!0x1});},{'priority':_0x439e('0xa7')});}set[_0x439e('0x5a')](_0x9fbdb){if(this[_0x439e('0x53')])throw new _0x316ab1('track-changes-adapter-already-set',this);this[_0x439e('0x53')]=_0x9fbdb;}get['adapter'](){return this[_0x439e('0x53')];}[_0x439e('0x102')]({skipNotAttached:_0x20df3e=!0x1,toJSON:_0xa1a949=!0x1}={}){const _0x2b72df=[];for(const _0x4da944 of this[_0x439e('0x17f')][_0x439e('0x106')]())_0x20df3e&&!_0x4da944[_0x439e('0xb2')]||_0x2b72df['push'](_0x4da944);return _0xa1a949?_0x2b72df[_0x439e('0x15f')](_0x57dd64=>_0x57dd64[_0x439e('0xcf')]()):_0x2b72df;}[_0x439e('0x10c')](_0x18c286){const _0x1b55d7=this[_0x439e('0x17f')][_0x439e('0x16')](_0x18c286);if(!_0x1b55d7)throw new _0x316ab1(_0x439e('0x14a'),this);return _0x1b55d7;}[_0x439e('0x3f')](_0x2a2c56){return this[_0x439e('0x17f')][_0x439e('0x32')](_0x2a2c56);}[_0x439e('0x10b')](_0x54e8ed){const {authorId:_0x117788,id:_0x3b31c2,attributes:_0x5ef0e2}=_0x54e8ed,[_0x3a0b76,_0xb5c64b]=_0x54e8ed[_0x439e('0x89')][_0x439e('0x88')](':'),_0x41ea07=this[_0x439e('0x17f')]['get'](_0x3b31c2)||this[_0x439e('0x158')](_0x3a0b76,_0xb5c64b,_0x3b31c2,_0x117788,_0x5ef0e2);if(this[_0x439e('0x0')](_0x41ea07),this[_0x439e('0x1d')](_0x41ea07,_0x3a0b76,_0xb5c64b||null,_0x117788),_0x41ea07[_0x439e('0xb7')]=_0x54e8ed['createdAt'],_0x41ea07['_isDataLoaded']=!0x0,_0x5ef0e2&&_0x5ef0e2[_0x439e('0x104')]){const _0x18893e=_0x5ef0e2[_0x439e('0x104')],_0x345859=this[_0x439e('0x3a')](_0x18893e[_0x439e('0x178')]);_0x41ea07[_0x439e('0xe5')]=_0x18893e[_0x439e('0xb7')],_0x41ea07[_0x439e('0x16c')]=_0x345859,_0x41ea07[_0x439e('0x74')]=!0x0;}else _0x41ea07[_0x439e('0xe5')]=_0x54e8ed[_0x439e('0xb7')];switch(_0x54e8ed[_0x439e('0x181')]&&(_0x41ea07[_0x439e('0x181')]=_0x54e8ed[_0x439e('0x181')]),_0x54e8ed[_0x439e('0x167')]&&(_0x41ea07[_0x439e('0x167')]=_0x54e8ed[_0x439e('0x167')]),this[_0x439e('0x53')]&&this[_0x439e('0x53')][_0x439e('0x8c')]||(_0x41ea07[_0x439e('0xff')]=!0x0),this['_suggestionState']['get'](_0x41ea07)){case _0x439e('0xe'):this[_0x439e('0x132')][_0x439e('0x66')](_0x41ea07,'dataReady');break;case'markerReady':_0x41ea07[_0x439e('0xb2')]?(this[_0x439e('0x6f')](new Set([_0x41ea07])),this[_0x439e('0xbf')](new Set([_0x41ea07])),this[_0x439e('0x132')][_0x439e('0x66')](_0x41ea07,_0x439e('0x13b')),this[_0x439e('0x42')](_0x439e('0x141'),_0x41ea07)):this[_0x439e('0x132')][_0x439e('0x66')](_0x41ea07,_0x439e('0x163'));}return _0x41ea07;}[_0x439e('0x12a')](_0x20f616){this[_0x439e('0x93')](()=>{this[_0x439e('0xce')]['model'][_0x439e('0xd6')](()=>{for(const _0x1be62b of _0x20f616['getAllAdjacentSuggestions']())_0x1be62b[_0x439e('0x168')]();});});}['discardSuggestion'](_0x5b4ec4){this['forceDefaultExecution'](()=>{this[_0x439e('0xce')]['model'][_0x439e('0xd6')](()=>{for(const _0x23c695 of _0x5b4ec4[_0x439e('0xcd')]())_0x23c695[_0x439e('0x4e')]();});});}['enableCommand'](_0x53bbcd,_0x56abde){const _0x45960f=this[_0x439e('0xce')][_0x439e('0x134')][_0x439e('0x16')](_0x53bbcd);if(!_0x45960f)throw new _0x316ab1(_0x439e('0xeb'),this,{'commandName':_0x53bbcd});if(this['_enabledCommands']['has'](_0x45960f))throw new _0x316ab1(_0x439e('0x123'),this,{'commandName':_0x53bbcd});this['_enabledCommands'][_0x439e('0x61')](_0x45960f),_0x56abde&&_0x45960f['on'](_0x439e('0x50'),(_0x3723e2,_0x348e00)=>{this['trackChangesCommand'][_0x439e('0x16f')]&&(this[_0x439e('0x137')]||(_0x348e00['length']>0x0&&_0x348e00[_0x348e00[_0x439e('0x65')]-0x1]&&_0x348e00[_0x348e00[_0x439e('0x65')]-0x1][_0x439e('0x93')]?_0x348e00[_0x439e('0xb1')]():(_0x3723e2[_0x439e('0xb0')]=_0x56abde((..._0x55cdc6)=>_0x45960f[_0x439e('0x50')](..._0x55cdc6,{'forceDefaultExecution':!0x0}),..._0x348e00),_0x3723e2[_0x439e('0x2f')]())));},{'priority':'high'});}[_0x439e('0x93')](_0x333f65){let _0x162711,_0x2390e4;const _0x3fb903=this[_0x439e('0x137')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x162711=_0x333f65();}catch(_0x5a6328){_0x2390e4=_0x5a6328;}return _0x3fb903||(this[_0x439e('0x137')]=!0x1),_0x2390e4&&_0x316ab1[_0x439e('0x14f')](_0x2390e4,this),_0x162711;}[_0x439e('0x75')](_0x5a00d6,_0x577c2b=null,_0x16f3db={}){if(_0x5a00d6['isCollapsed'])return null;const _0xa63d2c=this[_0x439e('0xce')][_0x439e('0x28')]['get'](_0x439e('0xbe'))['me'];for(const {suggestion:_0x39c345,meta:_0x598600}of this['_findSuggestions'](_0x5a00d6,_0x439e('0xad')))if(_0x598600[_0x439e('0x21')]){if(!_0x598600['isNextTo']){if(_0x598600[_0x439e('0x16b')]){if(!this[_0x439e('0xdd')]||!Ft(_0x39c345,_0x16f3db))continue;return _0x39c345;}if(Ft(_0x39c345,_0x16f3db))return _0x39c345;this[_0x439e('0x164')](_0x39c345,_0x5a00d6[_0x439e('0x9')],_0x5a00d6[_0x439e('0xb5')]);break;}if(_0x577c2b==_0x39c345[_0x439e('0xc8')]&&Ft(_0x39c345,_0x16f3db)){const _0x2e9c85=_0x39c345[_0x439e('0xf5')]();return _0x2e9c85[_0x439e('0x9')][_0x439e('0x12e')](_0x5a00d6['end'])?this[_0x439e('0xd9')](_0x39c345,this[_0x439e('0x29')][_0x439e('0xf4')](_0x5a00d6[_0x439e('0x9')],_0x2e9c85[_0x439e('0xb5')])):this[_0x439e('0xd9')](_0x39c345,this[_0x439e('0x29')]['createRange'](_0x2e9c85[_0x439e('0x9')],_0x5a00d6[_0x439e('0xb5')])),_0x39c345;}}const _0x510fcc=_0x1990b4(),_0x2997bd=_0xa63d2c['id'],_0x277985=_0x577c2b?'insertion:'+_0x577c2b:_0x439e('0xad'),_0xbf2e65=this[_0x439e('0x126')]({'id':_0x510fcc,'type':_0x277985,'createdAt':new Date(),'authorId':_0x2997bd,'attributes':_0x16f3db});return this['_addSuggestionMarker'](_0x277985,_0x510fcc,_0x2997bd,_0x5a00d6),_0xbf2e65;}[_0x439e('0xe1')](_0x36e5c6,_0x4325bc=_0x439e('0x8a'),_0x4b40f4={}){const _0x505442=this[_0x439e('0xce')][_0x439e('0x28')]['get'](_0x439e('0xbe'))['me'],_0x574675=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0xad'),_0x4325bc,_0x439e('0xdc'));for(const _0x31f632 of this[_0x439e('0x102')]())if(_0x31f632[_0x439e('0x16c')]['id']==_0x505442['id']&&_0x439e('0xad')==_0x31f632[_0x439e('0x89')]&&_0x31f632[_0x439e('0xc8')]==_0x4325bc&&Ft(_0x31f632,_0x4b40f4)&&(_0x574675(_0x31f632['getRanges'](),_0x36e5c6)||_0x574675(_0x36e5c6,_0x31f632[_0x439e('0xca')]()))){for(const _0x361ad2 of _0x36e5c6)_0x31f632[_0x439e('0x176')](_0x361ad2);return _0x31f632;}for(const {suggestion:_0x2294a1,meta:_0x88f9c6}of this[_0x439e('0xef')](_0x36e5c6,_0x439e('0xad'))){if(!_0x88f9c6[_0x439e('0x21')])continue;if(!this[_0x439e('0xdd')]&&_0x88f9c6[_0x439e('0x16b')])continue;if(!Ft(_0x2294a1,_0x4b40f4))continue;let _0x1c78d8=!0x0;for(const _0x239485 of _0x2294a1[_0x439e('0xca')]())for(const _0x3a3a5a of _0x36e5c6)if(!_0x239485[_0x439e('0xcc')](_0x3a3a5a)){_0x1c78d8=!0x1;break;}if(_0x1c78d8)return _0x2294a1;}const _0x5aae96=_0x1990b4(),_0x3d295a=_0x505442['id'],_0x346e23='insertion:'+_0x4325bc,_0x3c807d=this[_0x439e('0x126')]({'id':_0x5aae96,'type':_0x346e23,'createdAt':new Date(),'authorId':_0x3d295a,'attributes':_0x4b40f4});for(const _0x2ce9fa of _0x36e5c6)this[_0x439e('0x36')](_0x346e23,_0x5aae96,_0x3d295a,_0x2ce9fa,_0x5b5191[_0x439e('0x31')]());return _0x3c807d;}[_0x439e('0xfb')](_0x6c3a93,_0x569327,_0x172ed9=null,_0x385f1f={}){if(_0x172ed9=_0x172ed9||Rt(_0x569327),_0x6c3a93[_0x439e('0x41')])return null;if(_0x439e('0x11e')===this['_trackFormatChanges']){const _0x4e9550=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0x170'),_0x172ed9,'accept');return this['forceDefaultExecution'](()=>_0x4e9550([_0x6c3a93],_0x569327,_0x385f1f)),null;}const _0x5ce8e4=this[_0x439e('0xce')][_0x439e('0x28')][_0x439e('0x16')]('Users')['me'],_0x18ec3f=[];if(_0x439e('0x54')!==this[_0x439e('0x94')])for(const {suggestion:_0x5af049,meta:_0x2ee26e}of this['_findSuggestions'](_0x6c3a93,_0x439e('0xad')))_0x2ee26e[_0x439e('0x21')]&&!_0x2ee26e['isInsideObject']&&_0x18ec3f[_0x439e('0x14c')](..._0x5af049[_0x439e('0xca')]());const _0x28e32c=function(_0x22b32a,_0x5f5ce6){const _0x2e630d=[];for(const _0x1d55d4 of _0x5f5ce6){const _0x2276a3=_0x22b32a['getIntersection'](_0x1d55d4);_0x2276a3&&_0x2e630d['push'](_0x2276a3);}return _0x2e630d;}(_0x6c3a93,_0x18ec3f),_0x11a7b8=function(_0x48a76f,_0x11f567){const _0xac9e3a=[_0x48a76f];for(const _0x29bee3 of _0x11f567){let _0x2b266b=0x0;for(;_0x2b266b<_0xac9e3a[_0x439e('0x65')];){const _0x58cb78=_0xac9e3a[_0x2b266b][_0x439e('0xa9')](_0x29bee3);_0xac9e3a[_0x439e('0xe2')](_0x2b266b,0x1,..._0x58cb78),_0x2b266b+=_0x58cb78[_0x439e('0x65')];}}return _0xac9e3a;}(_0x6c3a93,_0x18ec3f);_0x28e32c[_0x439e('0x65')]&&this['_model']['change'](()=>{for(const _0x2c4a6e of _0x28e32c){const _0x191908=this['_suggestionFactory'][_0x439e('0xc4')](_0x439e('0x170'),_0x172ed9,_0x439e('0x168'));this['forceDefaultExecution'](()=>_0x191908([_0x2c4a6e],_0x569327,_0x385f1f));}});for(const _0x168efd of _0x11a7b8){let _0x3915c5=null,_0x462fa7=_0x168efd[_0x439e('0x9')],_0x38293f=_0x168efd['end'];for(const {suggestion:_0x4280fd,meta:_0x5aaadd}of this['_findSuggestions'](_0x168efd,_0x439e('0x170'))){if(!_0x5aaadd[_0x439e('0x21')])continue;if(_0x4280fd[_0x439e('0xc8')]!=_0x172ed9)continue;if(!Ft(_0x4280fd,_0x385f1f))continue;const _0x5b87e4=_0x4280fd['getFirstRange']();if(_0x5b87e4[_0x439e('0xcc')](_0x168efd,!0x0))return null;_0x462fa7=_0x462fa7['isBefore'](_0x5b87e4[_0x439e('0x9')])?_0x462fa7:_0x5b87e4['start'],_0x38293f=_0x38293f[_0x439e('0x14d')](_0x5b87e4[_0x439e('0xb5')])?_0x38293f:_0x5b87e4[_0x439e('0xb5')],_0x3915c5?_0x5b87e4[_0x439e('0x9')][_0x439e('0x11a')](_0x3915c5['getFirstRange']()['start'])?(_0x3915c5[_0x439e('0x171')](),_0x3915c5=_0x4280fd):_0x4280fd['removeMarkers']():_0x3915c5=_0x4280fd;}const _0x3ea219=this[_0x439e('0x29')]['createRange'](_0x462fa7,_0x38293f);if(_0x3915c5)this[_0x439e('0xd9')](_0x3915c5,_0x3ea219);else{const _0x32dc8e=_0x1990b4(),_0x376454=_0x5ce8e4['id'];this[_0x439e('0x126')]({'id':_0x32dc8e,'type':'formatInline:'+_0x172ed9,'data':_0x569327,'createdAt':new Date(),'authorId':_0x376454,'attributes':_0x385f1f}),this[_0x439e('0x36')](_0x439e('0x6a')+_0x172ed9,_0x32dc8e,_0x376454,_0x3ea219);}}return null;}[_0x439e('0x4d')](_0x5ecf47,_0x2c3cef,_0x314efe=[],_0x4a5bfc=null,_0x121fa7={}){_0x2c3cef[_0x439e('0xd0')]||(_0x2c3cef[_0x439e('0xd0')]=_0x2c3cef[_0x439e('0x10a')]),_0x2c3cef[_0x439e('0x79')]=_0x5ecf47['is'](_0x439e('0xe8')),_0x4a5bfc=_0x4a5bfc||Rt(_0x2c3cef);const _0x48c407=_0x314efe[_0x439e('0x15f')](_0x46b628=>Ut(_0x46b628,this[_0x439e('0x29')])),_0x191e73=_0x5ecf47['is'](_0x439e('0xe8'))?_0x5ecf47:Ut(_0x5ecf47,this[_0x439e('0x29')]);if('never'===this[_0x439e('0x94')]){const _0x19cbec=this['_suggestionFactory'][_0x439e('0xc4')](_0x439e('0x12d'),_0x4a5bfc,_0x439e('0x168'));return this[_0x439e('0x93')](()=>_0x19cbec([_0x191e73],_0x2c3cef,_0x121fa7)),null;}_0x48c407[_0x439e('0x14c')](_0x191e73);let _0x315ea6=!0x0;for(const _0x823dc7 of _0x48c407)if(!this[_0x439e('0xd3')](_0x823dc7)){_0x315ea6=!0x1;break;}if(_0x315ea6&&_0x439e('0x54')!==this[_0x439e('0x94')]){const _0x13f483=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0x12d'),_0x4a5bfc,_0x439e('0x168'));return this[_0x439e('0x93')](()=>_0x13f483([_0x191e73],_0x2c3cef,_0x121fa7)),null;}let _0x3b8278=null,_0x1c0a2b=_0x191e73['start'],_0x57f904=_0x191e73[_0x439e('0xb5')];for(const {suggestion:_0x224c05,meta:_0x49bb3a}of this['_findSuggestions'](_0x191e73,'formatBlock')){if(!_0x49bb3a[_0x439e('0x21')])continue;if(_0x49bb3a[_0x439e('0x108')]||_0x49bb3a[_0x439e('0x16b')]||_0x49bb3a[_0x439e('0x110')])continue;if(_0x224c05[_0x439e('0x181')][_0x439e('0xd0')]!=_0x2c3cef[_0x439e('0xd0')])continue;if(!Ft(_0x224c05,_0x121fa7))continue;const _0x58b7d7=_0x224c05['getFirstRange']();if(_0x224c05['subType']==_0x4a5bfc){if(_0x58b7d7[_0x439e('0xcc')](_0x191e73,!0x0))return null;_0x1c0a2b=_0x1c0a2b[_0x439e('0x11a')](_0x58b7d7[_0x439e('0x9')])?_0x1c0a2b:_0x58b7d7[_0x439e('0x9')],_0x57f904=_0x57f904[_0x439e('0x14d')](_0x58b7d7[_0x439e('0xb5')])?_0x57f904:_0x58b7d7[_0x439e('0xb5')],_0x3b8278?_0x58b7d7[_0x439e('0x9')][_0x439e('0x11a')](_0x3b8278[_0x439e('0xf5')]()['start'])?(_0x3b8278[_0x439e('0x171')](),_0x3b8278=_0x224c05):_0x224c05[_0x439e('0x171')]():_0x3b8278=_0x224c05;}else{const _0x20da2b=_0x191e73['getIntersection'](_0x58b7d7);this[_0x439e('0x82')](_0x224c05,_0x20da2b);}}const _0x52c946=this[_0x439e('0xce')][_0x439e('0x28')]['get'](_0x439e('0xbe'))['me'],_0x8e7589=_0x1990b4(),_0x5c001b=_0x52c946['id'];if(_0x3b8278)return this[_0x439e('0xd9')](_0x3b8278,this['_model']['createRange'](_0x1c0a2b,_0x57f904)),_0x3b8278;{const _0x18efcb=this[_0x439e('0x126')]({'id':_0x8e7589,'type':'formatBlock:'+_0x4a5bfc,'data':_0x2c3cef,'createdAt':new Date(),'authorId':_0x5c001b,'attributes':_0x121fa7});return this[_0x439e('0x36')](_0x439e('0xf9')+_0x4a5bfc,_0x8e7589,_0x5c001b,this[_0x439e('0x29')][_0x439e('0xf4')](_0x1c0a2b,_0x57f904)),_0x18efcb;}}[_0x439e('0x10e')](_0x55cec7,_0x47ee97,_0x2902f4=[],_0x65e828=null,_0x23babf={}){_0x47ee97[_0x439e('0xd0')]||(_0x47ee97[_0x439e('0xd0')]=_0x47ee97[_0x439e('0x10a')]);const _0xc0a93a=_0x55cec7[0x0];_0x47ee97['multipleBlocks']=_0xc0a93a['is'](_0x439e('0xe8')),_0x65e828=_0x65e828||Rt(_0x47ee97);const _0x435136=_0x2902f4[_0x439e('0x15f')](_0x420a0a=>Ut(_0x420a0a,this['_model'])),_0x571c97=_0xc0a93a['is'](_0x439e('0xe8'))?_0x55cec7:_0x55cec7[_0x439e('0x15f')](_0x4b3506=>Ut(_0x4b3506,this['_model']));if(_0x439e('0x11e')===this[_0x439e('0x94')]){const _0x64683c=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0x12d'),_0x65e828,'accept');return this[_0x439e('0x93')](()=>_0x64683c(_0x571c97,_0x47ee97,_0x23babf)),null;}_0x435136[_0x439e('0x14c')](..._0x571c97);let _0x30ebca=!0x0;for(const _0xa2e78a of _0x435136)if(!this[_0x439e('0xd3')](_0xa2e78a)){_0x30ebca=!0x1;break;}if(_0x30ebca&&_0x439e('0x54')!==this[_0x439e('0x94')]){const _0xeab250=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0x12d'),_0x65e828,_0x439e('0x168'));return this[_0x439e('0x93')](()=>_0xeab250(_0x571c97,_0x47ee97,_0x23babf)),null;}const _0x5a2ac1=this[_0x439e('0xce')][_0x439e('0x28')][_0x439e('0x16')](_0x439e('0xbe'))['me'];for(const _0x3d78a5 of this[_0x439e('0x102')]()){if(_0x3d78a5[_0x439e('0x16c')]['id']!=_0x5a2ac1['id'])continue;if('formatBlock'!=_0x3d78a5[_0x439e('0x89')]||_0x3d78a5[_0x439e('0x181')][_0x439e('0xd0')]!=_0x47ee97[_0x439e('0xd0')])continue;if(!Ft(_0x3d78a5,_0x23babf))continue;const _0x59f44f=_0x3d78a5['subType']==_0x65e828;for(let _0x5e076e=0x0;_0x5e076e<_0x571c97['length'];_0x5e076e++){const _0x2520ab=_0x571c97[_0x5e076e];for(const _0x1ab24f of _0x3d78a5['getMarkers']()){const _0x3dda5c=_0x1ab24f[_0x439e('0x4c')]();if(_0x2520ab[_0x439e('0x12e')](_0x3dda5c)){_0x59f44f?(_0x571c97['splice'](_0x5e076e,0x1),_0x5e076e--):_0x3d78a5['removeMarker'](_0x1ab24f[_0x439e('0x17b')]);break;}}}}if(0x0==_0x571c97['length'])return null;const _0x4983c2=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0x12d'),_0x65e828,_0x439e('0xdc'));for(const _0x1a9ee1 of this[_0x439e('0x102')]())if(_0x1a9ee1[_0x439e('0x16c')]['id']==_0x5a2ac1['id']&&_0x439e('0x12d')==_0x1a9ee1[_0x439e('0x89')]&&_0x1a9ee1['data']['formatGroupId']==_0x47ee97[_0x439e('0xd0')]&&_0x1a9ee1[_0x439e('0xc8')]==_0x65e828&&Ft(_0x1a9ee1,_0x23babf)&&(_0x4983c2(_0x1a9ee1[_0x439e('0xca')](),_0x571c97)||_0x4983c2(_0x571c97,_0x1a9ee1[_0x439e('0xca')]()))){for(const _0x4df071 of _0x571c97)_0x1a9ee1['addRange'](_0x4df071);return _0x1a9ee1;}const _0x2e1a6e=_0x1990b4(),_0x163a03=_0x5a2ac1['id'],_0x29020b=_0x439e('0xf9')+_0x65e828,_0x51c4f0=this['_setSuggestionData']({'id':_0x2e1a6e,'type':_0x29020b,'data':_0x47ee97,'createdAt':new Date(),'authorId':_0x163a03,'attributes':_0x23babf});for(const _0x2e58e1 of _0x571c97)this[_0x439e('0x36')](_0x29020b,_0x2e1a6e,_0x163a03,_0x2e58e1,_0x5b5191[_0x439e('0x31')]());return _0x51c4f0;}[_0x439e('0x4a')](_0x1a484c,_0x555456=null,_0x36b132={}){if(_0x1a484c['isCollapsed'])return null;const _0x1b0ac7=this['editor'][_0x439e('0x28')][_0x439e('0x16')]('Users')['me'],_0x31c849=new _0x5d4469(_0x1a484c[_0x439e('0x9')],_0x1a484c[_0x439e('0xb5')]);for(const {suggestion:_0x38bf8c,meta:_0x3188da}of this[_0x439e('0xef')](_0x31c849,_0x439e('0xad')))if(_0x3188da['isOwn']&&!_0x3188da[_0x439e('0x108')]){if(_0x38bf8c[_0x439e('0x12')]){const _0x31cb36=_0x38bf8c['getRanges']()[_0x439e('0x13e')](_0x1ddd4f=>_0x439e('0x2b')!=_0x1ddd4f[_0x439e('0x162')][_0x439e('0xf7')]);_0x31cb36[_0x439e('0xa3')](_0x58017f=>_0x31c849[_0x439e('0xcc')](_0x58017f,!0x0))&&_0x38bf8c[_0x439e('0x4e')]();if(_0x31cb36[_0x439e('0x153')](_0x27062c=>_0x27062c[_0x439e('0xcc')](_0x31c849,!0x0))){const _0x54712c=this['_suggestionFactory'][_0x439e('0xc4')](_0x439e('0x9c'),_0x555456,_0x439e('0x168'));return this['forceDefaultExecution'](()=>_0x54712c([_0x31c849],null,_0x36b132)),null;}}else{const _0xfa809c=_0x31c849[_0x439e('0x84')](_0x38bf8c[_0x439e('0xf5')]());null!==_0xfa809c&&_0x38bf8c[_0x439e('0x139')]([_0xfa809c],null,_0x36b132);}}if(_0x31c849[_0x439e('0x113')](),_0x31c849[_0x439e('0x41')]||_0x439e('0x2b')==_0x31c849[_0x439e('0x162')][_0x439e('0xf7')])return null;let _0x2ebaad=null,_0x48ba44=_0x31c849[_0x439e('0x9')],_0x4838ff=_0x31c849[_0x439e('0xb5')];const _0x5635a5=this[_0x439e('0xef')](_0x31c849,'deletion');for(const {suggestion:_0x2e001f,meta:_0x1d14fb}of _0x5635a5){const _0x456d1e=this[_0x439e('0x29')][_0x439e('0xf4')](_0x48ba44,_0x4838ff);if(_0x1d14fb[_0x439e('0x21')]&&(this[_0x439e('0xdd')]||!_0x1d14fb['containsRangeInObject']&&!_0x1d14fb['isInsideObject'])){if(_0x2e001f[_0x439e('0x12')]){if(!Ft(_0x2e001f,_0x36b132))continue;let _0x4dc7d2=!0x0;for(const _0x2024e8 of _0x2e001f[_0x439e('0xca')]()){if(_0x2024e8[_0x439e('0xcc')](_0x456d1e,!0x0))return _0x2e001f;_0x456d1e[_0x439e('0xcc')](_0x2024e8)||(_0x4dc7d2=!0x1);}_0x4dc7d2&&_0x2e001f[_0x439e('0x4e')]();}else{const _0x382710=_0x2e001f[_0x439e('0xf5')]();if(_0x382710[_0x439e('0xcc')](_0x456d1e,!0x0))return _0x2e001f;if(!Ft(_0x2e001f,_0x36b132)){_0x456d1e[_0x439e('0xcc')](_0x382710)?_0x2e001f['removeMarkers']():_0x382710[_0x439e('0x22')](_0x48ba44)?_0x48ba44=_0x382710[_0x439e('0xb5')]:_0x382710['containsPosition'](_0x4838ff)&&(_0x4838ff=_0x382710[_0x439e('0x9')]);continue;}_0x48ba44=_0x48ba44[_0x439e('0x11a')](_0x382710['start'])?_0x48ba44:_0x382710[_0x439e('0x9')],_0x4838ff=_0x4838ff[_0x439e('0x14d')](_0x382710[_0x439e('0xb5')])?_0x4838ff:_0x382710[_0x439e('0xb5')],_0x36b132=Object['assign']({},_0x2e001f[_0x439e('0x167')]),_0x2ebaad?_0x382710[_0x439e('0x9')][_0x439e('0x11a')](_0x2ebaad[_0x439e('0xf5')]()[_0x439e('0x9')])?(_0x2ebaad[_0x439e('0x171')](),_0x2ebaad=_0x2e001f):_0x2e001f[_0x439e('0x171')]():_0x2ebaad=_0x2e001f;}}}if(_0x2ebaad)return this['_setSuggestionRange'](_0x2ebaad,this['_model'][_0x439e('0xf4')](_0x48ba44,_0x4838ff)),_0x2ebaad;{const _0x2305dd=_0x1990b4(),_0x364b01=this['_model'][_0x439e('0xf4')](_0x48ba44,_0x4838ff),_0x45713a=_0x1b0ac7['id'],_0x2aaef=_0x555456?_0x439e('0x112')+_0x555456:'deletion',_0x542653=this[_0x439e('0x126')]({'id':_0x2305dd,'type':_0x2aaef,'createdAt':new Date(),'authorId':_0x45713a,'attributes':_0x36b132});return this['_addSuggestionMarker'](_0x2aaef,_0x2305dd,_0x45713a,_0x364b01),_0x542653;}}[_0x439e('0x99')](_0x5d11c7,_0x464f92=_0x439e('0x8a'),_0x41b464={}){const _0x47ba67=this['editor']['plugins'][_0x439e('0x16')](_0x439e('0xbe'))['me'],_0x404cdf=_0x5d11c7[_0x439e('0x15f')](_0x57fafb=>new _0x5d4469(_0x57fafb[_0x439e('0x9')],_0x57fafb[_0x439e('0xb5')])),_0x4239ec=new Set();for(const {suggestion:_0x5e67d9,meta:_0x20d877}of this['_findSuggestions'](_0x404cdf,_0x439e('0xad')))_0x20d877[_0x439e('0x21')]&&!_0x20d877[_0x439e('0x108')]&&_0x4239ec['add'](_0x5e67d9);for(const _0x331ba5 of _0x4239ec)if(_0x331ba5[_0x439e('0x12')]){const _0x1690ee=_0x331ba5['getRanges']();(!_0x331ba5[_0x439e('0x167')]||!_0x331ba5['attributes'][_0x439e('0x9a')])&&(_0x1690ee[_0x439e('0xa3')](_0x1b78d6=>_0x404cdf['some'](_0x44832b=>_0x44832b[_0x439e('0xcc')](_0x1b78d6,!0x0)))&&_0x331ba5[_0x439e('0x4e')]());if(_0x404cdf['every'](_0x14ee5b=>_0x1690ee[_0x439e('0x153')](_0x172715=>_0x172715[_0x439e('0xcc')](_0x14ee5b,!0x0)))){const _0x5677e7=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0x9c'),_0x464f92,_0x439e('0x168'));return this[_0x439e('0x93')](()=>_0x5677e7(_0x5d11c7,null,_0x41b464)),null;}}else{const _0x1587b3=_0x331ba5[_0x439e('0xf5')]();_0x404cdf[_0x439e('0x153')](_0x1a601f=>_0x1a601f['containsRange'](_0x1587b3,!0x0))&&_0x331ba5['discard']();if(_0x404cdf[_0x439e('0xa3')](_0xba9ae0=>_0x1587b3['containsRange'](_0xba9ae0,!0x0))){const _0x1c651a=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0x9c'),_0x464f92,_0x439e('0x168'));return this['forceDefaultExecution'](()=>_0x1c651a(_0x404cdf,null,_0x41b464)),null;}}const _0xdba20=this[_0x439e('0x16e')][_0x439e('0xc4')](_0x439e('0x9c'),_0x464f92,'join');let _0x384764=null;for(const _0x2a56e7 of this[_0x439e('0x102')]())if(_0x2a56e7[_0x439e('0x16c')]['id']==_0x47ba67['id']&&_0x2a56e7[_0x439e('0xb2')]&&_0x439e('0x9c')==_0x2a56e7['type']&&_0x2a56e7[_0x439e('0xc8')]==_0x464f92&&Ft(_0x2a56e7,_0x41b464)&&(_0xdba20(_0x2a56e7['getRanges'](),_0x404cdf)||_0xdba20(_0x404cdf,_0x2a56e7[_0x439e('0xca')]()))){if(_0x384764){if(_0x2a56e7[_0x439e('0x173')]&&_0x2a56e7['commentThread'][_0x439e('0x65')])continue;for(const _0x3265e0 of _0x2a56e7[_0x439e('0xca')]())_0x384764[_0x439e('0x44')](_0x3265e0)||_0x384764['addRange'](_0x3265e0);_0x2a56e7['removeMarkers']();}else{_0x384764=_0x2a56e7;for(const _0x44703f of _0x404cdf)_0x2a56e7['isIntersectingWithRange'](_0x44703f)||_0x2a56e7[_0x439e('0x176')](_0x44703f);}}if(_0x384764)return _0x384764;_0x4239ec[_0x439e('0xe6')]();for(const {suggestion:_0xf96c82,meta:_0xdc1c2e}of this['_findSuggestions'](_0x404cdf,_0x439e('0x9c')))_0xdc1c2e['isOwn']&&(this[_0x439e('0xdd')]||!_0xdc1c2e[_0x439e('0x16b')]&&!_0xdc1c2e[_0x439e('0x110')])&&Ft(_0xf96c82,_0x41b464)&&_0x4239ec[_0x439e('0x61')](_0xf96c82);for(const _0x4825e0 of _0x4239ec){const _0x57f742=_0x4825e0[_0x439e('0xca')]();if(!_0x41b464||!_0x41b464[_0x439e('0x9a')]){if(_0x404cdf[_0x439e('0xa3')](_0xb61195=>_0x57f742[_0x439e('0x153')](_0x419e4d=>_0x419e4d['containsRange'](_0xb61195,!0x0))))return _0x4825e0;}(!_0x4825e0[_0x439e('0x167')]||!_0x4825e0[_0x439e('0x167')][_0x439e('0x9a')])&&(_0x57f742[_0x439e('0xa3')](_0x9890d=>_0x404cdf[_0x439e('0x153')](_0x39eec0=>_0x39eec0[_0x439e('0xcc')](_0x9890d,!0x0)))&&_0x4825e0[_0x439e('0x4e')]());}const _0x1746d5=_0x1990b4(),_0x4b59f1=_0x47ba67['id'],_0x434bba=_0x439e('0x112')+_0x464f92,_0x2c1e06=this[_0x439e('0x126')]({'id':_0x1746d5,'type':_0x434bba,'createdAt':new Date(),'authorId':_0x4b59f1,'attributes':_0x41b464});for(const _0xc1bcc8 of _0x404cdf)_0xc1bcc8[_0x439e('0x113')](),_0xc1bcc8[_0x439e('0x41')]||'$graveyard'==_0xc1bcc8[_0x439e('0x162')]['rootName']||this['_addSuggestionMarker'](_0x434bba,_0x1746d5,_0x4b59f1,_0xc1bcc8,_0x5b5191[_0x439e('0x31')]());return _0x2c1e06;}[_0x439e('0xf0')](_0x46ff33,_0x204f30,_0x529f31,_0x1f06a0,_0x5d680b){if(_0x46ff33[_0x439e('0x41')])return[];if('never'===this['_trackFormatChanges'])return[];const _0xc57bb0=this[_0x439e('0xce')][_0x439e('0x28')][_0x439e('0x16')](_0x439e('0xbe'))['me']['id'],_0x390db2=Array[_0x439e('0xe4')](this[_0x439e('0x17f')]['values']())[_0x439e('0x13e')](_0x2aeb55=>_0x439e('0x55')==_0x2aeb55[_0x439e('0x89')]&&_0x2aeb55[_0x439e('0x181')][_0x439e('0x23')]==_0x204f30&&_0x2aeb55[_0x439e('0x44')](_0x46ff33));if(_0x439e('0x2')===this[_0x439e('0x94')]){const _0x2ea816=this[_0x439e('0xef')](_0x46ff33,'insertion')[_0x439e('0x13e')](({meta:_0x2412fb})=>_0x2412fb[_0x439e('0x21')]&&!_0x2412fb[_0x439e('0x110')]&&!_0x2412fb[_0x439e('0x108')])['map'](({suggestion:_0x2dd3bc})=>_0x2dd3bc);_0x390db2[_0x439e('0x143')](..._0x2ea816);}const _0x160ef9=new Map([[_0x46ff33,_0x529f31]]);for(const _0x2ec390 of _0x390db2){const _0x5b277d=_0x439e('0x55')==_0x2ec390[_0x439e('0x89')]?_0x2ec390[_0x439e('0x181')][_0x439e('0x9e')]:void 0x0,_0x1368af=_0x2ec390[_0x439e('0xf5')](),_0x291c53=Array[_0x439e('0xe4')](_0x160ef9[_0x439e('0x5d')]())[_0x439e('0xd5')](_0x2c5551=>_0x2c5551['isIntersecting'](_0x1368af));_0x291c53&&(_0x160ef9[_0x439e('0x5')](_0x291c53),_0x291c53[_0x439e('0xa9')](_0x1368af)[_0x439e('0x17a')](_0xcfc9d6=>{_0x160ef9[_0x439e('0x66')](_0xcfc9d6,_0x529f31);}),'insertion'!=_0x2ec390['type']&&_0x5b277d!=_0x1f06a0&&_0x160ef9[_0x439e('0x66')](_0x291c53[_0x439e('0x84')](_0x1368af),_0x5b277d));}const _0x5649c9=[];for(const [_0x24a14,_0x28c0ec]of _0x160ef9){const _0x542350=_0x1990b4(),_0x408fe9={'key':_0x204f30,'oldValue':_0x28c0ec,'newValue':_0x1f06a0};_0x204f30[_0x439e('0x65')]>0x25&&console[_0x439e('0x10d')](_0x439e('0xea'),{'key':_0x204f30});const _0x3b5349=('attribute:'+(_0x204f30+'|'+Rt({'newValue':_0x1f06a0})))[_0x439e('0x69')](0x0,0x3c),_0x130cf1=this[_0x439e('0x126')]({'id':_0x542350,'type':_0x3b5349,'data':_0x408fe9,'createdAt':new Date(),'authorId':_0xc57bb0,'attributes':_0x5d680b});_0x5649c9['push'](_0x130cf1),this[_0x439e('0x36')](_0x3b5349,_0x542350,_0xc57bb0,_0x24a14);}return _0x5649c9;}[_0x439e('0x18')](_0x5925d3){this['_blockAttributeKeys'][_0x439e('0x61')](_0x5925d3);}[_0x439e('0x172')](_0x52e065){this[_0x439e('0x115')][_0x439e('0x61')](_0x52e065);}[_0x439e('0xe0')](_0x38e0af,_0x4074b5=[],_0x460c5b=[]){this['enableCommand'](_0x38e0af,(_0x374d98,..._0x166422)=>{this['_recordAttributeChanges'](()=>{_0x374d98(..._0x166422);});});for(const _0xd2c3e2 of _0x4074b5)this[_0x439e('0x172')](_0xd2c3e2);for(const _0x82ad5d of _0x460c5b)this['_registerBlockAttribute'](_0x82ad5d);}[_0x439e('0xd9')](_0x1b5e79,_0x3049bd){const _0x2ef680=_0x1b5e79['getFirstMarker']();this[_0x439e('0x29')]['change'](_0x18760b=>{_0x18760b[_0x439e('0x1b')](_0x2ef680,{'range':_0x3049bd});});}[_0x439e('0x0')](_0x40beeb){const _0x33657a=_0x40beeb['id'],_0x5ebfd7=this[_0x439e('0xce')]['config']['get'](_0x439e('0x152'));this[_0x439e('0x16a')][_0x439e('0x13f')](_0x33657a)||this[_0x439e('0x16a')][_0x439e('0x161')]({'channelId':_0x5ebfd7,'threadId':_0x33657a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x451071=this[_0x439e('0x16a')][_0x439e('0x3e')](_0x33657a);_0x451071[_0x439e('0x5f')](_0x439e('0x73')),_0x451071[_0x439e('0x73')]=!0x1,_0x40beeb[_0x439e('0x173')]=_0x451071;}['_checkSuggestionCorrectness'](_0x5f080a,_0x353a28,_0xe7049f,_0x35015f){if(_0x5f080a[_0x439e('0x89')]!=_0x353a28||_0x5f080a[_0x439e('0xc8')]!=_0xe7049f||_0x5f080a[_0x439e('0x33')]['id']!=_0x35015f)throw this[_0x439e('0xce')][_0x439e('0x57')](_0x439e('0x156')),new _0x316ab1(_0x439e('0x156'),this);}[_0x439e('0x82')](_0x5732b3,_0x5f3dae){const _0x3b4cbf=_0x5732b3[_0x439e('0xf5')]();if(_0x5f3dae[_0x439e('0x12e')](_0x3b4cbf))_0x5732b3[_0x439e('0x171')]();else{if(_0x3b4cbf['containsRange'](_0x5f3dae)){const _0x42808a=this[_0x439e('0x29')]['createPositionAt'](_0x5f3dae[_0x439e('0x9')]['nodeBefore'],_0x439e('0xb5'));this[_0x439e('0xd9')](_0x5732b3,this[_0x439e('0x29')]['createRange'](_0x3b4cbf['start'],_0x42808a));const _0x455a43=_0x1990b4(),_0x89102=_0x5732b3[_0x439e('0x33')]['id'],_0x97d361=_0x5732b3[_0x439e('0x89')]+':'+_0x5732b3[_0x439e('0xc8')];this['_setSuggestionData']({'id':_0x455a43,'type':_0x97d361,'createdAt':new Date(),'authorId':_0x89102,'data':_0x5732b3[_0x439e('0x181')],'attributes':_0x5732b3[_0x439e('0x167')]});const _0xb1fa50=this['_model']['createPositionAt'](_0x5f3dae[_0x439e('0xb5')][_0x439e('0x9d')],_0x439e('0xc')),_0x5c83bd=this[_0x439e('0x29')][_0x439e('0xf4')](_0xb1fa50,_0x3b4cbf[_0x439e('0xb5')]);this[_0x439e('0x36')](_0x97d361,_0x455a43,_0x89102,_0x5c83bd);}else{if(_0x3b4cbf[_0x439e('0x22')](_0x5f3dae[_0x439e('0x9')])){const _0x1469ff=this[_0x439e('0x29')][_0x439e('0x10')](_0x5f3dae[_0x439e('0x9')][_0x439e('0x11c')],_0x439e('0xb5'));this[_0x439e('0xd9')](_0x5732b3,this[_0x439e('0x29')][_0x439e('0xf4')](_0x3b4cbf[_0x439e('0x9')],_0x1469ff));}else{const _0xb0e1e6=this['_model'][_0x439e('0x10')](_0x5f3dae[_0x439e('0xb5')][_0x439e('0x9d')],'after');this[_0x439e('0xd9')](_0x5732b3,this['_model']['createRange'](_0xb0e1e6,_0x3b4cbf[_0x439e('0xb5')]));}}}}[_0x439e('0xd3')](_0x35855a){for(const {suggestion:_0x5171bf,meta:_0x43f620}of this[_0x439e('0xef')](_0x35855a,_0x439e('0xad'))){if(!_0x43f620[_0x439e('0x21')])continue;const _0x580632=_0x5171bf[_0x439e('0xca')]();for(const _0x54d592 of _0x580632)if(!_0x35855a[_0x439e('0xa9')](_0x54d592)[_0x439e('0x65')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x520c5d){const _0x3b0920=this[_0x439e('0xce')][_0x439e('0x28')][_0x439e('0x16')](_0x439e('0xbe'))[_0x439e('0xf3')](_0x520c5d);if(!_0x3b0920)throw new _0x316ab1('track-changes-user-not-found',this);return _0x3b0920;}[_0x439e('0x3a')](_0x57f6b3){const _0x23e71a=this[_0x439e('0xce')][_0x439e('0x28')][_0x439e('0x16')](_0x439e('0xbe')),_0x191237=_0xf5555(_0x439e('0x12c')+_0x57f6b3),_0x511eb7=_0x23e71a['getUser'](_0x191237);return _0x511eb7||_0x23e71a[_0x439e('0x56')]({'id':_0x191237,'name':_0x57f6b3});}['_createSuggestion'](_0x1b7497,_0x42b070,_0x266348,_0x18bd98,_0x37555c){const _0x3ef560=this[_0x439e('0x150')](_0x18bd98),_0x16aeb1=this['_suggestionFactory'][_0x439e('0x15')](_0x1b7497,_0x42b070,_0x266348,_0x3ef560,_0x37555c,_0x3c89d8=>this[_0x439e('0xed')](_0x266348,{'attributes':_0x3c89d8}));return this[_0x439e('0x24')](_0x16aeb1,_0x439e('0x168'),()=>{this[_0x439e('0xed')](_0x266348,{'state':'accepted'});},{'priority':_0x439e('0x124')}),this[_0x439e('0x24')](_0x16aeb1,_0x439e('0x4e'),()=>{this[_0x439e('0xed')](_0x266348,{'state':_0x439e('0xb')});},{'priority':_0x439e('0x124')}),this[_0x439e('0x17f')][_0x439e('0x66')](_0x266348,_0x16aeb1),this[_0x439e('0x132')][_0x439e('0x66')](_0x16aeb1,_0x439e('0xe')),_0x16aeb1;}[_0x439e('0x180')](_0x5af011){const _0x253eaf=_0x5af011[_0x439e('0x88')](':');return{'group':_0x253eaf[0x0],'type':_0x253eaf[0x1],'subType':_0x253eaf['length']>=0x5?_0x253eaf[0x2]:null,'id':_0x253eaf['length']<0x5?_0x253eaf[0x2]:_0x253eaf[0x3],'authorId':_0x253eaf[_0x439e('0x65')]<0x5?_0x253eaf[0x3]:_0x253eaf[0x4],'markerCount':0x6==_0x253eaf[_0x439e('0x65')]?_0x253eaf[0x5]:null};}[_0x439e('0x164')](_0x13ef03,_0xedfb72,_0x41bafa){const _0x963091=_0x13ef03[_0x439e('0xf5')](),_0x48e50a=_0x963091[_0x439e('0x9')],_0x55a3a6=_0x963091['end'];this[_0x439e('0xd9')](_0x13ef03,this[_0x439e('0x29')][_0x439e('0xf4')](_0x48e50a,_0xedfb72));const _0x3df39b=_0x1990b4(),_0x4e1a06=_0x13ef03[_0x439e('0x33')]['id'],_0x82b40=_0x13ef03['type']+(_0x13ef03[_0x439e('0xc8')]?':'+_0x13ef03[_0x439e('0xc8')]:'');this['_setSuggestionData']({'id':_0x3df39b,'type':_0x82b40,'createdAt':new Date(),'authorId':_0x4e1a06,'originalSuggestionId':_0x13ef03['id'],'attributes':_0x13ef03[_0x439e('0x167')],'data':_0x13ef03[_0x439e('0x181')]});const _0x596795=this[_0x439e('0xd')](_0x13ef03);(_0x439e('0x12d')==_0x13ef03['type']||_0x596795&&this[_0x439e('0xcb')](_0x596795))&&(_0x41bafa=this[_0x439e('0x29')][_0x439e('0x95')](_0x41bafa[_0x439e('0x9d')])),this[_0x439e('0x36')](_0x82b40,_0x3df39b,_0x4e1a06,this['_model'][_0x439e('0xf4')](_0x41bafa,_0x55a3a6));}[_0x439e('0xef')](_0x15ec08,_0x4aad48=null){const _0x32759f=[],_0x4bd7d5=this[_0x439e('0xce')][_0x439e('0x28')]['get'](_0x439e('0xbe'))['me'];Array['isArray'](_0x15ec08)||(_0x15ec08=[_0x15ec08]);for(const _0x13b926 of this['getSuggestions']()){if(!_0x13b926['isInContent'])continue;if(_0x4aad48&&_0x13b926[_0x439e('0x89')]!=_0x4aad48)continue;let _0x3dce60=!0x1;for(const _0x5d8f29 of _0x13b926[_0x439e('0xca')]()){for(const _0x37a3ad of _0x15ec08){const _0x31443c=_0x37a3ad['start'][_0x439e('0x12e')](_0x5d8f29[_0x439e('0xb5')])||_0x37a3ad[_0x439e('0xb5')][_0x439e('0x12e')](_0x5d8f29[_0x439e('0x9')]);if(_0x31443c||_0x37a3ad[_0x439e('0x84')](_0x5d8f29)){const _0x3324e4=_0x37a3ad[_0x439e('0xcc')](_0x5d8f29)&&Tt(this[_0x439e('0x29')][_0x439e('0x7d')],_0x5d8f29[_0x439e('0x9')],_0x37a3ad),_0x5660a0=_0x5d8f29[_0x439e('0xcc')](_0x37a3ad)&&Tt(this[_0x439e('0x29')][_0x439e('0x7d')],_0x37a3ad[_0x439e('0x9')],_0x5d8f29);_0x32759f[_0x439e('0x14c')]({'suggestion':_0x13b926,'meta':{'isOwn':_0x4bd7d5==_0x13b926['author'],'isNextTo':_0x31443c,'isInsideObject':_0x3324e4,'containsRangeInObject':_0x5660a0}}),_0x3dce60=!0x0;break;}}if(_0x3dce60)break;}}return _0x32759f;}[_0x439e('0x36')](_0x3148ed,_0x320d6b,_0x5090e6,_0x1b04bb,_0x3ac91d){this[_0x439e('0x29')][_0x439e('0xd6')](_0x253520=>{let _0x51c873='suggestion:'+_0x3148ed+':'+_0x320d6b+':'+_0x5090e6;_0x3ac91d&&(_0x51c873=_0x51c873+':'+_0x3ac91d),_0x253520[_0x439e('0x86')](_0x51c873,{'range':_0x1b04bb,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x439e('0x151')](_0x42971b){const _0x3897ed=_0x42971b[_0x439e('0xf6')],_0x2aeeae=_0x42971b[_0x439e('0xd7')];_0x42971b[_0x439e('0xf6')]=null,_0x42971b[_0x439e('0xd7')]=null,null!=_0x3897ed&&(_0x3897ed['next']=_0x2aeeae),null!=_0x2aeeae&&(_0x2aeeae['previous']=_0x3897ed),_0x439e('0x13b')==this[_0x439e('0x132')]['get'](_0x42971b)&&(this[_0x439e('0x132')][_0x439e('0x66')](_0x42971b,_0x439e('0x163')),this[_0x439e('0x42')](_0x439e('0x11b'),_0x42971b,_0x3897ed,_0x2aeeae));}[_0x439e('0x126')](_0x54f73d){const _0x21bffd=_0x54f73d['id'],_0x1a0cc4=this[_0x439e('0x10b')](_0x54f73d);if(this[_0x439e('0x53')]&&this['_adapter'][_0x439e('0x8c')]){const _0x151547=this[_0x439e('0xce')][_0x439e('0x28')][_0x439e('0x16')](_0x439e('0x38')),_0x130255=_0x1a0cc4[_0x439e('0x4b')],_0x3e1509=_0x1a0cc4[_0x439e('0xc8')]?_0x1a0cc4[_0x439e('0x89')]+':'+_0x1a0cc4[_0x439e('0xc8')]:_0x1a0cc4[_0x439e('0x89')],_0x338ea2=this[_0x439e('0xce')][_0x439e('0x92')],_0x408ae3=_0x151547[_0x439e('0x61')](_0x1027b4(_0x338ea2,_0x439e('0x14b'))),_0x11890f={'id':_0x21bffd,'type':_0x3e1509,'hasComments':_0x130255,'data':_0x54f73d['data']||null,'originalSuggestionId':_0x54f73d[_0x439e('0xfc')]||null,'attributes':_0x1a0cc4[_0x439e('0x167')]};this[_0x439e('0x53')][_0x439e('0x8c')](_0x11890f)[_0x439e('0x175')](_0x7efeb9=>{_0x1a0cc4[_0x439e('0xff')]=!0x0,_0x151547[_0x439e('0x14e')](_0x408ae3),_0x7efeb9&&_0x7efeb9[_0x439e('0xb7')]&&(this[_0x439e('0x17f')]['get'](_0x21bffd)['createdAt']=_0x7efeb9[_0x439e('0xb7')]);})[_0x439e('0xd8')](_0x332449=>{throw _0x189efa('error-saving-suggestion-data-suggestion-discarded'),this['editor'][_0x439e('0xf8')][_0x439e('0x166')]({'isUndoable':!0x1},()=>{_0x1a0cc4[_0x439e('0x4e')]();}),_0x1a0cc4['stopListening'](),this[_0x439e('0x17f')][_0x439e('0x5')](_0x1a0cc4['id']),this['_suggestionState'][_0x439e('0x5')](_0x1a0cc4),_0x332449;});}return _0x1a0cc4;}[_0x439e('0xcb')](_0x7baf0d){return this[_0x439e('0x1a')]['has'](_0x7baf0d);}['_getAttributeKeyFromSubType'](_0x463cba){return _0x439e('0x55')==_0x463cba[_0x439e('0x89')]&&_0x463cba[_0x439e('0xc8')]['split']('|')[0x0];}['_updateSuggestionData'](_0x34de02,_0x2dc190){const _0x571397=this[_0x439e('0xce')]['plugins'][_0x439e('0x16')](_0x439e('0x38')),_0x21e75d=this[_0x439e('0x10c')](_0x34de02);if(this[_0x439e('0x53')]&&this['_adapter'][_0x439e('0x70')]){if(_0x21e75d[_0x439e('0xff')]){const _0x1e76e9=_0x571397[_0x439e('0x61')](_0x1027b4(this['editor'][_0x439e('0x92')],_0x439e('0x14b')));this[_0x439e('0x53')][_0x439e('0x70')](_0x34de02,_0x2dc190)[_0x439e('0x175')](()=>{_0x571397[_0x439e('0x14e')](_0x1e76e9);});}else _0x21e75d['on'](_0x439e('0x13a'),()=>{this[_0x439e('0xed')](_0x34de02,_0x2dc190);});}}['_getSuggestionData'](_0x458999){if(!this['_adapter']||!this[_0x439e('0x53')][_0x439e('0x10c')])throw new _0x316ab1(_0x439e('0x10f'),this);return this[_0x439e('0x53')]['getSuggestion'](_0x458999);}['_handleNewSuggestionMarker'](_0x544a1f){const {id:_0x1d11ee,type:_0x13acb9,subType:_0x21837d,authorId:_0x540e13}=this[_0x439e('0x180')](_0x544a1f),_0x1ae29e=this[_0x439e('0x17f')][_0x439e('0x16')](_0x1d11ee)||this[_0x439e('0x158')](_0x13acb9,_0x21837d,_0x1d11ee,_0x540e13,{});switch(this[_0x439e('0x1d')](_0x1ae29e,_0x13acb9,_0x21837d,_0x540e13),this[_0x439e('0x132')][_0x439e('0x16')](_0x1ae29e)){case'notReady':this[_0x439e('0xb3')](_0x1d11ee)[_0x439e('0x175')](_0x26db17=>{let _0x379135=Promise[_0x439e('0x13c')]();_0x26db17[_0x439e('0x4b')]&&(_0x379135=this[_0x439e('0x16a')][_0x439e('0x145')]({'channelId':this[_0x439e('0xce')]['config']['get'](_0x439e('0x152')),'threadId':_0x1d11ee})),_0x379135[_0x439e('0x175')](()=>{this[_0x439e('0x10b')](_0x26db17)[_0x439e('0xff')]=!0x0;});}),this[_0x439e('0x132')][_0x439e('0x66')](_0x1ae29e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1d11ee,{'state':_0x439e('0x5c')});case _0x439e('0x177'):this['_suggestionState'][_0x439e('0x66')](_0x1ae29e,'ready'),this['fire'](_0x439e('0x141'),_0x1ae29e);break;case _0x439e('0x13b'):this[_0x439e('0x42')](_0x439e('0x12f'),_0x1ae29e);}return _0x1ae29e[_0x439e('0x27')](_0x544a1f),_0x1ae29e;}['_refreshSuggestionsChain'](_0x9315fa){const _0x181674=Array[_0x439e('0xe4')](_0x9315fa),_0x9e650=_0x181674['filter'](_0x5eeb91=>_0x439e('0x55')==_0x5eeb91[_0x439e('0x89')]);this['_refreshAttributeSuggestionsChain'](_0x9e650);const _0x4a80ea=_0x181674[_0x439e('0x13e')](_0xed3a95=>!_0xed3a95[_0x439e('0x12')]&&_0x439e('0x55')!=_0xed3a95['type']),_0x5efd89=this['getSuggestions']({'skipNotAttached':!0x0})[_0x439e('0x13e')](_0x40b571=>!_0x40b571[_0x439e('0x12')]&&_0x439e('0x55')!=_0x40b571['type']),_0x5ca9a7=_0x5efd89[_0x439e('0x13e')](_0x5aaca2=>!_0x9315fa['has'](_0x5aaca2)),_0x5602b0=new Map(_0x5efd89[_0x439e('0x15f')](_0x32b320=>[_0x32b320,this[_0x439e('0x16e')][_0x439e('0xc4')](_0x32b320[_0x439e('0x89')],_0x32b320[_0x439e('0xc8')],_0x439e('0x40'))])),_0x55973c=new Map(_0x5efd89[_0x439e('0x15f')](_0x4b153f=>[_0x4b153f,_0x4b153f[_0x439e('0xf5')]()])),_0x4afc4e=new Set(),_0x3e94b0=new Set();for(let _0x4794b0=0x0;_0x4794b0<_0x4a80ea['length'];_0x4794b0++)_0xb672a2(_0x4a80ea[_0x4794b0],_0x4a80ea,_0x4794b0+0x1);for(let _0x59a9de=0x0;_0x59a9de<_0x4a80ea[_0x439e('0x65')];_0x59a9de++)_0xb672a2(_0x4a80ea[_0x59a9de],_0x5ca9a7,0x0);const _0x27331c=new Set();for(let _0x48fe09=0x0;_0x48fe09<_0x4a80ea['length'];_0x48fe09++){const _0x4c7d7f=_0x4a80ea[_0x48fe09];!_0x3e94b0[_0x439e('0x32')](_0x4c7d7f)&&_0x4c7d7f[_0x439e('0xf6')]&&(_0x27331c[_0x439e('0x61')](_0x4c7d7f['previous']),_0x4c7d7f[_0x439e('0xf6')][_0x439e('0xd7')]===_0x4c7d7f&&(_0x4c7d7f[_0x439e('0xf6')][_0x439e('0xd7')]=null),_0x4c7d7f[_0x439e('0xf6')]=null),!_0x4afc4e['has'](_0x4c7d7f)&&_0x4c7d7f[_0x439e('0xd7')]&&(_0x27331c['add'](_0x4c7d7f[_0x439e('0xd7')]),_0x4c7d7f[_0x439e('0xd7')]['previous']===_0x4c7d7f&&(_0x4c7d7f['next'][_0x439e('0xf6')]=null),_0x4c7d7f[_0x439e('0xd7')]=null);}function _0xb672a2(_0x3d51dd,_0x2ac2ee,_0x373f05){for(let _0xf19ee2=_0x373f05;_0xf19ee2<_0x2ac2ee['length'];_0xf19ee2++){const _0x6f5fd5=_0x54f82a(_0x3d51dd,_0x2ac2ee[_0xf19ee2]);_0x6f5fd5&&(_0x6f5fd5[0x0][_0x439e('0xd7')]=_0x6f5fd5[0x1],_0x6f5fd5[0x1]['previous']=_0x6f5fd5[0x0],_0x4afc4e['add'](_0x6f5fd5[0x0]),_0x3e94b0[_0x439e('0x61')](_0x6f5fd5[0x1]));}}function _0x54f82a(_0x14171e,_0x5b6fdd){if(_0x14171e[_0x439e('0x16c')]['id']!==_0x5b6fdd[_0x439e('0x16c')]['id'])return null;const _0x38c340=_0x5602b0[_0x439e('0x16')](_0x14171e)(_0x14171e,_0x5b6fdd,_0x55973c['get'](_0x14171e),_0x55973c[_0x439e('0x16')](_0x5b6fdd));if(!_0x38c340)return null;return _0x5602b0[_0x439e('0x16')](_0x5b6fdd)(_0x14171e,_0x5b6fdd,_0x55973c[_0x439e('0x16')](_0x14171e),_0x55973c[_0x439e('0x16')](_0x5b6fdd))?_0x38c340[0x1][_0x439e('0x173')]&&_0x38c340[0x1][_0x439e('0x173')][_0x439e('0x65')]?null:_0x38c340:null;}_0x27331c[_0x439e('0x15b')]&&this[_0x439e('0x6f')](_0x27331c);}[_0x439e('0x4')](_0x4f38f9){if(0x0==_0x4f38f9[_0x439e('0x65')])return;const _0x5eebc6=this[_0x439e('0x102')]({'skipNotAttached':!0x0})[_0x439e('0x13e')](_0x42f822=>_0x439e('0x55')==_0x42f822[_0x439e('0x89')]&&_0x42f822['_isDataLoaded']),_0x12d6c5=[],_0x240d47=new Map();for(const _0x455926 of _0x5eebc6){const _0x2af183=_0xf5555(_0x455926[_0x439e('0x167')]);_0x240d47[_0x439e('0x32')](_0x2af183)||(_0x240d47[_0x439e('0x66')](_0x2af183,_0x12d6c5['length']),_0x12d6c5['push']([]));const _0x3ea60c=_0x240d47[_0x439e('0x16')](_0x2af183);_0x12d6c5[_0x3ea60c]['push'](_0x455926);}!function(){_0x12d6c5[_0x439e('0xa5')]((_0x59ca70,_0x51b74e)=>{const _0x1e648d=_0x59ca70[0x0]['createdAt'],_0x3b8618=_0x51b74e[0x0]['createdAt'];return _0x1e648d==_0x3b8618?_0x59ca70[0x0][_0x439e('0x167')]['groupId']<_0x51b74e[0x0][_0x439e('0x167')]['groupId']?-0x1:0x1:_0x1e648d<_0x3b8618?-0x1:0x1;});for(const _0x577ca6 of _0x12d6c5)_0x577ca6['sort']((_0x235eff,_0x137e0d)=>_0x235eff['id']<_0x137e0d['id']?-0x1:0x1);}();for(let _0x4d56c6=0x0;_0x4d56c6<_0x12d6c5['length'];_0x4d56c6++){if(0x0==_0x12d6c5[_0x4d56c6][_0x439e('0x65')])continue;const _0x273924=[];for(let _0x4805cc=_0x4d56c6+0x1;_0x4805cc<_0x12d6c5['length'];_0x4805cc++)0x0!=_0x12d6c5[_0x4805cc][_0x439e('0x65')]&&_0x2974b0(_0x12d6c5[_0x4d56c6],_0x12d6c5[_0x4805cc])&&_0x273924[_0x439e('0x14c')](_0x4805cc);for(const _0x4c6d9b of _0x273924)_0x12d6c5[_0x4d56c6]=_0x12d6c5[_0x4d56c6][_0x439e('0x5b')](_0x12d6c5[_0x4c6d9b]),_0x12d6c5[_0x4c6d9b]=[];}for(const _0x3d718d of _0x12d6c5)for(let _0x299260=0x0;_0x299260<_0x3d718d['length'];_0x299260++)_0x3d718d[_0x299260][_0x439e('0xd7')]=_0x3d718d[_0x299260+0x1]||null;for(const _0x387b7f of _0x12d6c5)for(let _0x45631=0x0;_0x45631<_0x387b7f[_0x439e('0x65')];_0x45631++)_0x387b7f[_0x45631]['previous']=_0x387b7f[_0x45631-0x1]||null;function _0x2974b0(_0x3e1d06,_0xb4378a){if(_0x3e1d06[0x0]['author']!==_0xb4378a[0x0][_0x439e('0x16c')])return!0x1;if(!function(_0x406d2a,_0xf0aec7){if(!_0x406d2a[_0x439e('0x4b')]&&!_0xf0aec7[_0x439e('0x4b')])return!0x0;if(_0x406d2a[_0x439e('0x4b')]&&_0xf0aec7['hasComments'])return!0x1;if(_0x406d2a['hasComments']&&_0xf0aec7['createdAt']<_0x406d2a['commentThread'][_0x439e('0x144')]['get'](0x0)['createdAt'])return!0x0;if(_0xf0aec7['hasComments']&&_0x406d2a[_0x439e('0xb7')]<_0xf0aec7[_0x439e('0x173')][_0x439e('0x144')][_0x439e('0x16')](0x0)[_0x439e('0xb7')])return!0x0;return!0x1;}(_0x3e1d06[0x0],_0xb4378a[0x0]))return!0x1;const _0x2eac05=_0x2e307b(_0x3e1d06[0x0][_0x439e('0x167')],_0x439e('0xbd')),_0x58633d=_0x2e307b(_0xb4378a[0x0][_0x439e('0x167')],_0x439e('0xbd'));if(!_0x42d7a6(_0x2eac05,_0x58633d))return!0x1;return!!_0x3e1d06[_0x439e('0xa3')](_0x12a54e=>_0xb4378a[_0x439e('0x153')](_0x2f9ca7=>_0x12a54e[_0x439e('0xf5')]()['isEqual'](_0x2f9ca7['getFirstRange']())))&&_0xb4378a[_0x439e('0xa3')](_0x440892=>_0x3e1d06[_0x439e('0x153')](_0x5a7164=>_0x440892['getFirstRange']()['isEqual'](_0x5a7164['getFirstRange']())));}}[_0x439e('0xbf')](_0xf5df91){const _0x47971c=Array[_0x439e('0xe4')](_0xf5df91),_0x597677=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4efa0e=_0x597677['filter'](_0x16d7e2=>!_0xf5df91[_0x439e('0x32')](_0x16d7e2)),_0x265b6c=new Map(_0x47971c['map'](_0x3073a9=>[_0x3073a9,this['_suggestionFactory'][_0x439e('0xc4')](_0x3073a9[_0x439e('0x89')],_0x3073a9[_0x439e('0xc8')],'join')])),_0x5d915f=new Map(_0x597677['map'](_0x25ac10=>[_0x25ac10,_0x25ac10[_0x439e('0xca')]()]));for(let _0x589b2f=0x0;_0x589b2f<_0x47971c[_0x439e('0x65')];_0x589b2f++){if(_0x7ef5ca(this,_0x47971c[_0x589b2f],_0x47971c,_0x589b2f+0x1))return!0x0;}for(let _0x46feb=0x0;_0x46feb<_0x47971c[_0x439e('0x65')];_0x46feb++){if(_0x7ef5ca(this,_0x47971c[_0x46feb],_0x4efa0e,0x0))return!0x0;}return!0x1;function _0x7ef5ca(_0x4a4915,_0x28ac73,_0x381865,_0x126a05){for(let _0x46436e=_0x126a05;_0x46436e<_0x381865[_0x439e('0x65')];_0x46436e++){const _0x2d735f=_0x381865[_0x46436e];if(_0x2d735f[_0x439e('0x89')]!==_0x28ac73['type']||_0x2d735f['author']['id']!==_0x28ac73[_0x439e('0x16c')]['id']||_0x2d735f['subType']!==_0x28ac73[_0x439e('0xc8')])continue;if(!Vt(_0x28ac73,_0x2d735f))continue;if(_0x439e('0x55')==_0x28ac73[_0x439e('0x89')]&&_0x28ac73[_0x439e('0x181')][_0x439e('0x9e')]!=_0x2d735f[_0x439e('0x181')][_0x439e('0x9e')])continue;if(_0x439e('0x55')==_0x28ac73['type']&&_0x4a4915[_0x439e('0xcb')](_0x28ac73[_0x439e('0x181')][_0x439e('0x23')]))continue;const _0x4f7c60=_0x265b6c[_0x439e('0x16')](_0x28ac73),_0x42a8e8=_0x5d915f['get'](_0x28ac73),_0x39978a=_0x5d915f[_0x439e('0x16')](_0x2d735f),_0x3f5a1d=_0x28ac73['commentThread']&&_0x28ac73[_0x439e('0x173')]['length'],_0x4dbee6=_0x2d735f[_0x439e('0x173')]&&_0x2d735f[_0x439e('0x173')][_0x439e('0x65')];if(!_0x3f5a1d&&_0x4f7c60(_0x39978a,_0x42a8e8))return _0x4a4915[_0x439e('0x87')](_0x2d735f,_0x28ac73),_0x5d915f['delete'](_0x28ac73),!0x0;if(!_0x4dbee6&&_0x4f7c60(_0x42a8e8,_0x39978a))return _0x4a4915[_0x439e('0x87')](_0x28ac73,_0x2d735f),_0x5d915f['delete'](_0x2d735f),!0x0;}return!0x1;}}[_0x439e('0x87')](_0x35b6e1,_0x5ca312){if(_0x35b6e1[_0x439e('0x12')])for(const _0x7a41b of _0x5ca312[_0x439e('0xca')]())_0x35b6e1[_0x439e('0x176')](_0x7a41b);else{const _0x2767c=_0x5ca312['getFirstRange']()['end'];this['_setSuggestionRange'](_0x35b6e1,this[_0x439e('0x29')][_0x439e('0xf4')](_0x35b6e1['getFirstRange']()[_0x439e('0x9')],_0x2767c));}_0x5ca312['removeMarkers']();}[_0x439e('0x11f')](_0x581459,_0x74de6d){const _0x232817=_0x581459[_0x439e('0x15a')](_0x439e('0x60'))||_0x581459['startsWith'](_0x439e('0x55'))?_0x439e('0x13'):_0x581459[_0x439e('0x146')]();return _0x1027b4(this['editor'][_0x439e('0x92')],_0x74de6d+'_'+_0x232817+'_SUGGESTION_ANNOUNCEMENT');}[_0x439e('0xb6')](){const _0x3e9fb7=this[_0x439e('0xce')];_0x56de40(this[_0x439e('0x29')],({left:_0x744e28,entered:_0x12dec2})=>{const _0x44f12e=[];for(const _0x48b5d5 of _0x744e28){const {group:_0x5ead15,type:_0x138e20}=this[_0x439e('0x180')](_0x48b5d5['name']);if('suggestion'===_0x5ead15){_0x44f12e['push'](this[_0x439e('0x11f')](_0x138e20,'LEAVE'));break;}}for(const _0x56075c of _0x12dec2){const {group:_0x15eacf,type:_0x3eadf4}=this['_splitMarkerName'](_0x56075c[_0x439e('0x17b')]);if('suggestion'===_0x15eacf){_0x44f12e[_0x439e('0x14c')](this['_getMarkerAnnouncementText'](_0x3eadf4,_0x439e('0x133')));break;}}_0x44f12e[_0x439e('0x65')]&&_0x3e9fb7['ui'][_0x439e('0xbb')][_0x439e('0x142')](_0x439e('0x136'),_0x44f12e[_0x439e('0xdc')]('\x20'));});}[_0x439e('0xe9')](_0x1b1028){if(null!==this[_0x439e('0x109')])return!0x1;const _0x29ad8c=this[_0x439e('0xce')],_0x2243be=_0x29ad8c[_0x439e('0xf8')][_0x439e('0x7a')]['differ'][_0x439e('0x63')]();if(0x0==_0x2243be[_0x439e('0x65')])return!0x1;const _0x3c5c3d=[],_0xa93262=_0x2243be[_0x439e('0x13e')](_0x6ad1b3=>_0x439e('0x55')==_0x6ad1b3[_0x439e('0x89')]),_0x238c8c=_0x2243be[_0x439e('0x13e')](_0x42b362=>_0x439e('0x8d')==_0x42b362[_0x439e('0x89')]&&'$text'!=_0x42b362[_0x439e('0x17b')]),_0x15690c=_0x2243be[_0x439e('0x13e')](_0x36f824=>'remove'==_0x36f824[_0x439e('0x89')]&&_0x439e('0xa2')!=_0x36f824[_0x439e('0x17b')]);for(const _0x167ebb of _0xa93262)_0x3c5c3d[_0x439e('0x14c')]({'key':_0x167ebb[_0x439e('0x5e')],'newValue':_0x167ebb[_0x439e('0x85')],'oldValue':_0x167ebb[_0x439e('0xac')],'range':_0x157e2c(_0x167ebb[_0x439e('0xe8')])});for(const _0x59f89a of _0x238c8c){const _0x53106=_0x15690c[_0x439e('0xd5')](_0xcfa012=>_0xcfa012['position']['isEqual'](_0x59f89a[_0x439e('0x35')]));_0x53106&&_0x3c5c3d[_0x439e('0x14c')]({'key':_0x439e('0xb8'),'newValue':_0x59f89a[_0x439e('0x17b')],'oldValue':_0x53106[_0x439e('0x17b')],'range':_0x29ad8c['model'][_0x439e('0x20')](_0x59f89a['position'][_0x439e('0x39')])});}return 0x0!=_0x3c5c3d['length']&&this[_0x439e('0x64')](_0x1b1028,_0x3c5c3d);function _0x157e2c(_0x1310aa){return null==_0x1310aa[_0x439e('0xb5')][_0x439e('0x11c')]&&_0x1310aa['end'][_0x439e('0x9d')]==_0x1310aa[_0x439e('0x9')][_0x439e('0x39')]?Ut(_0x1310aa['start'][_0x439e('0x39')],_0x29ad8c[_0x439e('0xf8')]):_0x1310aa;}}[_0x439e('0x59')](_0x44d5ff){let _0x3f0582=!0x1;const _0x2723bb=this[_0x439e('0xce')][_0x439e('0xf8')][_0x439e('0x7a')][_0x439e('0x122')][_0x439e('0x6e')]()['filter'](_0x50dda3=>_0x50dda3[_0x439e('0x181')][_0x439e('0xe7')]&&_0x50dda3[_0x439e('0x17b')]['startsWith'](_0x439e('0x117')));for(const _0x4f0cf0 of _0x2723bb){const {subType:_0x1d539a,id:_0x2d5f91}=this[_0x439e('0x180')](_0x4f0cf0[_0x439e('0x17b')]),_0x288e24=_0x1d539a[_0x439e('0x88')]('|')[0x0];for(const _0x24c51a of this[_0x439e('0x102')]({'skipNotAttached':!0x0}))_0x24c51a['id']!=_0x2d5f91&&_0x439e('0x55')==_0x24c51a[_0x439e('0x89')]&&_0x24c51a[_0x439e('0x181')]&&_0x24c51a['data'][_0x439e('0x23')]==_0x288e24&&_0x24c51a[_0x439e('0xf5')]()[_0x439e('0x131')](_0x4f0cf0['data'][_0x439e('0xe7')])&&(this[_0x439e('0x30')](_0x24c51a,_0x4f0cf0[_0x439e('0x181')][_0x439e('0xe7')],_0x44d5ff),_0x3f0582=!0x0);}return _0x3f0582;}[_0x439e('0xf2')](_0x49c01d){if(null!==this[_0x439e('0x109')])return void _0x49c01d();const _0x3ee421=this[_0x439e('0xce')];this[_0x439e('0x109')]=_0x3ee421[_0x439e('0xf8')][_0x439e('0x7a')][_0x439e('0x3c')],_0x49c01d();const _0x93589=new Map();for(const _0x47de51 of _0x3ee421[_0x439e('0xf8')][_0x439e('0x7a')][_0x439e('0x6')][_0x439e('0x13d')](this[_0x439e('0x109')]))if([_0x439e('0x17e'),_0x439e('0x121'),_0x439e('0xfe'),_0x439e('0xda')][_0x439e('0x37')](_0x47de51[_0x439e('0x89')])){const _0x596634=_0x47de51[_0x439e('0xec')],_0x123cca=_0x93589[_0x439e('0x16')](_0x596634)||[];_0x123cca[_0x439e('0x14c')](_0x47de51),_0x93589[_0x439e('0x66')](_0x596634,_0x123cca);}this[_0x439e('0x109')]=null;for(const [_0x20cee6,_0x2c26a5]of _0x93589){const _0x2a88a7=_0x1990b4();_0x3ee421[_0x439e('0xf8')]['enqueueChange'](_0x20cee6,_0x416b1b=>{const _0x14501b=[];for(const _0x46558b of _0x2c26a5){let _0x35792d,_0x1f74d7,_0x1b239e,_0x30da6c;if(_0x439e('0x17e')==_0x46558b[_0x439e('0x89')]){const _0x5e1f05=_0x46558b;_0x35792d=Ut(_0x5e1f05[_0x439e('0x35')][_0x439e('0x39')],_0x3ee421[_0x439e('0xf8')]),_0x1f74d7=_0x439e('0xb8'),_0x1b239e=_0x5e1f05[_0x439e('0xe3')],_0x30da6c=_0x5e1f05['oldName'];}else{const _0x1bdf82=_0x46558b,_0x5d8cf9=this[_0x439e('0xcb')](_0x1bdf82['key']),_0x5c86e4=this[_0x439e('0x115')][_0x439e('0x32')](_0x1bdf82[_0x439e('0x23')]);if(!_0x5d8cf9&&!_0x5c86e4)continue;_0x35792d=_0x5d8cf9?Ut(_0x1bdf82[_0x439e('0xe8')]['start'][_0x439e('0x39')],_0x3ee421[_0x439e('0xf8')]):_0x1bdf82['range'],_0x1f74d7=_0x1bdf82[_0x439e('0x23')],_0x1b239e=_0x439e('0xfe')==_0x46558b[_0x439e('0x89')]?void 0x0:_0x1bdf82[_0x439e('0x98')],_0x30da6c=_0x1bdf82['oldValue'];}this[_0x439e('0xf0')](_0x35792d,_0x1f74d7,_0x30da6c,_0x1b239e,{'groupId':_0x2a88a7}),_0x14501b[_0x439e('0x14c')]({'range':_0x35792d,'key':_0x1f74d7,'newValue':_0x1b239e,'oldValue':_0x30da6c});}this[_0x439e('0x64')](_0x416b1b,_0x14501b);});}}[_0x439e('0x64')](_0x54dd30,_0x282a43){if(0x0==_0x282a43[_0x439e('0x65')])return!0x1;let _0x5e959c=!0x1;for(const _0x37774c of _0x282a43){const _0x241261=this[_0x439e('0xef')](_0x37774c[_0x439e('0xe8')],_0x439e('0x55'))[_0x439e('0x13e')](_0x10438e=>!_0x10438e[_0x439e('0x58')][_0x439e('0x108')])[_0x439e('0x15f')](_0x130623=>_0x130623[_0x439e('0x26')]),_0x27c5a9=_0xf5555({'newValue':_0x37774c[_0x439e('0x98')]});_0x241261['filter'](_0x23f0d5=>{const [_0x4e3b1d,_0x865120]=_0x23f0d5[_0x439e('0xc8')]['split']('|');return _0x4e3b1d==_0x37774c[_0x439e('0x23')]&&_0x865120!=_0x27c5a9;})[_0x439e('0x17a')](_0x21334f=>{this[_0x439e('0x30')](_0x21334f,_0x37774c['range'],_0x54dd30),_0x5e959c=!0x0;});}return _0x5e959c;}['_reduceSuggestionAttributeRange'](_0x375a29,_0x571cde,_0x269221){const _0x156267=_0x375a29[_0x439e('0xf5')]()['getDifference'](_0x571cde);0x0!==_0x156267['length']?0x1!==_0x156267[_0x439e('0x65')]?this[_0x439e('0x164')](_0x375a29,_0x571cde[_0x439e('0x9')],_0x571cde[_0x439e('0xb5')]):this[_0x439e('0xd9')](_0x375a29,_0x156267[0x0]):_0x269221[_0x439e('0x105')](_0x375a29[_0x439e('0xc3')]());}}class Bt{constructor(_0x3b6b58){this[_0x439e('0x71')]=_0x3b6b58,this['_model']=_0x3b6b58['model'],this[_0x439e('0xa6')]=new Map(),this[_0x439e('0x51')]=new Map(),this['_registerDefaultCallbacks']();}[_0x439e('0x15')](_0x733284,_0xd759f4,_0x1b921d,_0x58fcc1,_0x16a4c7,_0xe9ceea){return new _0x5b5191(this[_0x439e('0x29')],{'type':_0x733284,'subType':_0xd759f4,'id':_0x1b921d,'author':_0x58fcc1,'creator':_0x58fcc1,'attributes':_0x16a4c7,'onAttributesChange':_0xe9ceea,'onAccept':(..._0x1776cb)=>this['getSuggestionCallback'](_0x733284,_0xd759f4,'accept')(..._0x1776cb),'onDiscard':(..._0x22118f)=>this[_0x439e('0xc4')](_0x733284,_0xd759f4,_0x439e('0x4e'))(..._0x22118f)});}[_0x439e('0x154')](_0x478e2a,_0xf8d2aa,_0x5f3450,_0x5826af){const _0x20683d=_0x478e2a+':'+_0xf8d2aa+':'+_0x5f3450;this[_0x439e('0xa6')][_0x439e('0x66')](_0x20683d,_0x5826af);}['getSuggestionCallback'](_0x25b1c0,_0x49f2c2,_0x1930d2){const _0x2ea77d=_0x25b1c0+':'+_0x49f2c2+':'+_0x1930d2;return this['_customCallbacks'][_0x439e('0x16')](_0x2ea77d)||this['_defaultCallbacks'][_0x439e('0x16')](_0x25b1c0+':'+_0x1930d2);}[_0x439e('0xa')](){const _0x3fe1f2=()=>!0x1,_0x3c5434=_0x58f995=>{_0x58f995[_0x439e('0xa5')]((_0x1476fc,_0x144efe)=>_0x1476fc[_0x439e('0x9')][_0x439e('0x11a')](_0x144efe[_0x439e('0x9')])?0x1:-0x1),this['_model'][_0x439e('0xd6')](_0x5a3db5=>{for(const _0x395891 of _0x58f995){let _0x36372e;_0x36372e=_0x395891[_0x439e('0xb5')][_0x439e('0xb4')]&&_0x395891['end'][_0x439e('0x9d')]==_0x395891[_0x439e('0x9')][_0x439e('0x39')]?_0x5a3db5[_0x439e('0x1f')](_0x395891[_0x439e('0x9')][_0x439e('0x39')],'on'):_0x5a3db5['createSelection'](_0x395891),this['_model']['deleteContent'](_0x36372e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xfd33b8=(_0x32cacb,_0x448759)=>{_0x448759&&this['_model']['change'](_0x217ad1=>{const {commandName:_0x1da7d8,commandParams:_0x24f75e=[]}=_0x448759,_0x9301a7=_0x32cacb[_0x439e('0x15f')](_0x2c56e8=>(xt(_0x2c56e8)&&(_0x2c56e8=this['_model'][_0x439e('0xf4')](_0x2c56e8[_0x439e('0xb5')])),_0x2c56e8))[_0x439e('0x13e')](_0x44f795=>'$graveyard'!==_0x44f795[_0x439e('0x162')][_0x439e('0xf7')]);if(_0x9301a7['length']<0x1)return;const _0xb4331=Array[_0x439e('0xe4')](this['_model'][_0x439e('0x7a')][_0x439e('0x129')][_0x439e('0xca')]())['map'](_0x15f6c2=>_0x5d4469[_0x439e('0x114')](_0x15f6c2));_0x217ad1[_0x439e('0x7c')](_0x9301a7);for(const _0x13ab47 of this[_0x439e('0x71')][_0x439e('0x134')]['commands']())_0x13ab47['refresh']();_0x24f75e['push']({'forceDefaultExecution':!0x0}),this[_0x439e('0x71')][_0x439e('0x50')](_0x1da7d8,..._0x24f75e);const _0x20454d=_0xb4331['filter'](_0x44a35a=>_0x439e('0x2b')!=_0x44a35a['root']['rootName']);_0x20454d[_0x439e('0x65')]>0x0&&_0x217ad1[_0x439e('0x7c')](_0x20454d);for(const _0x1af951 of _0xb4331)_0x1af951[_0x439e('0x113')]();});},_0x50417d=(_0x2157b5,_0x3e9111)=>0x1==_0x2157b5[_0x439e('0x65')]&&0x1==_0x3e9111[_0x439e('0x65')]&&_0x2157b5[0x0][_0x439e('0xb5')][_0x439e('0x12e')](_0x3e9111[0x0][_0x439e('0x9')]),_0x11909b=(_0xec5420,_0x37eb7f,_0x5b47ec,_0x2bf9b3)=>Ot(_0xec5420,_0x37eb7f,_0x5b47ec,_0x2bf9b3,this[_0x439e('0x29')])?[_0xec5420,_0x37eb7f]:Ot(_0x37eb7f,_0xec5420,_0x2bf9b3,_0x5b47ec,this[_0x439e('0x29')])?[_0x37eb7f,_0xec5420]:null;this[_0x439e('0x51')][_0x439e('0x66')]('insertion:accept',_0x3fe1f2),this['_defaultCallbacks'][_0x439e('0x66')](_0x439e('0x83'),_0x3c5434),this[_0x439e('0x51')]['set'](_0x439e('0x91'),_0x50417d),this[_0x439e('0x51')][_0x439e('0x66')]('insertion:chain',_0x11909b),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0x49'),_0x3c5434),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0x4f'),_0x3fe1f2),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0x125'),_0x50417d),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0x120'),_0x11909b),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0xc1'),_0xfd33b8),this[_0x439e('0x51')][_0x439e('0x66')]('formatInline:discard',_0x3fe1f2),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0xc9'),_0x50417d),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0x1e'),_0x3fe1f2),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0x118'),_0xfd33b8),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0x2e'),_0x3fe1f2),this[_0x439e('0x51')][_0x439e('0x66')]('formatBlock:join',_0x50417d),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0xdf'),_0x3fe1f2),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0xba'),_0x3fe1f2),this[_0x439e('0x51')][_0x439e('0x66')](_0x439e('0x68'),(_0xc3fe57,_0x2b9b08)=>{if(!_0x2b9b08)return;const _0x3ce1e6=this[_0x439e('0x71')][_0x439e('0x28')][_0x439e('0x16')](p);this[_0x439e('0x29')][_0x439e('0xd6')](_0x262837=>{if(_0x439e('0xb8')==_0x2b9b08[_0x439e('0x23')])for(const _0x127473 of _0xc3fe57){const _0x562e02=_0x127473[_0x439e('0x9')][_0x439e('0x39')],_0x34b92b=_0x2b9b08[_0x439e('0x9e')];_0x262837[_0x439e('0x17e')](_0x562e02,_0x34b92b);}else{if(_0x3ce1e6[_0x439e('0xcb')](_0x2b9b08['key']))for(const _0xda6cfd of _0xc3fe57)void 0x0!==_0x2b9b08[_0x439e('0x9e')]?_0x262837[_0x439e('0xee')](_0x2b9b08[_0x439e('0x23')],_0x2b9b08[_0x439e('0x9e')],_0xda6cfd[_0x439e('0x9')]['nodeAfter']):_0x262837[_0x439e('0xfe')](_0x2b9b08['key'],_0xda6cfd[_0x439e('0x9')]['nodeAfter']);else for(const _0x1447e of _0xc3fe57)_0x2b9b08[_0x439e('0x9e')]?_0x262837[_0x439e('0xee')](_0x2b9b08[_0x439e('0x23')],_0x2b9b08[_0x439e('0x9e')],_0x1447e):_0x262837['removeAttribute'](_0x2b9b08[_0x439e('0x23')],_0x1447e);}});}),this[_0x439e('0x51')]['set'](_0x439e('0x9b'),_0x50417d);}}function Tt(_0x1fff19,_0x625bd4,_0x5296fe){for(const _0x3c4fa9 of _0x625bd4['parent'][_0x439e('0xfa')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3c4fa9[_0x439e('0x162')]==_0x3c4fa9)return!0x1;if(!_0x5296fe[_0x439e('0x116')](_0x3c4fa9))return!0x1;if(_0x1fff19['isObject'](_0x3c4fa9)||_0x1fff19[_0x439e('0x3b')](_0x3c4fa9))return!0x0;}return!0x1;}function xt(_0x1ffba0){return _0x1ffba0[_0x439e('0xb5')]['parent']==_0x1ffba0[_0x439e('0x9')][_0x439e('0x39')]&&_0x1ffba0[_0x439e('0xb5')][_0x439e('0x148')];}function Et(_0x19a469,_0x137c92,_0x466802,_0x3bce56){const _0x1af504=_0x4fc904=>!_0x4fc904[_0x439e('0xfd')]['is'](_0x439e('0x43'))&&!_0x3bce56[_0x439e('0x15c')](_0x4fc904[_0x439e('0xfd')]),_0x269049=_0x19a469[_0x439e('0x9')]['getLastMatchingPosition'](_0x1af504),_0x58cb7b=_0x19a469[_0x439e('0xb5')][_0x439e('0xd4')](_0x1af504,{'direction':_0x439e('0x11d')});return(!_0x19a469[_0x439e('0x9')][_0x439e('0x12e')](_0x269049)||!_0x19a469[_0x439e('0xb5')][_0x439e('0x12e')](_0x58cb7b))&&(_0x269049[_0x439e('0x11a')](_0x58cb7b)?_0x466802['updateMarker'](_0x137c92,{'range':_0x466802[_0x439e('0xf4')](_0x269049,_0x58cb7b)}):_0x466802[_0x439e('0x105')](_0x137c92),!0x0);}function Rt(_0x4c3866){return _0xf5555(_0x4c3866);}function jt(_0x1beb5f){const _0x46b554=_0x1beb5f[_0x439e('0x9')][_0x439e('0x39')];return _0x46b554&&_0x46b554['is'](_0x439e('0x1c'));}function Ut(_0x2c4116,_0x299515){const _0x593481=_0x299515['schema']['isObject'](_0x2c4116)||_0x299515[_0x439e('0x7d')]['isSelectable'](_0x2c4116);return _0x299515[_0x439e('0xf4')](_0x299515[_0x439e('0x10')](_0x2c4116,_0x439e('0x127')),_0x593481?_0x299515['createPositionAfter'](_0x2c4116):_0x299515[_0x439e('0x10')](_0x2c4116,_0x439e('0xb5')));}function Ot(_0x2ad377,_0x40c0e7,_0x25c207,_0x2e429c,_0x221d9a){if(!Vt(_0x2ad377,_0x40c0e7))return!0x1;if(_0x25c207['end']['isEqual'](_0x2e429c[_0x439e('0x9')]))return!0x0;if(_0x2ad377['type']!=_0x40c0e7[_0x439e('0x89')])return!0x1;if(!_0x25c207[_0x439e('0xb5')][_0x439e('0xc0')](_0x2e429c['start']))return!0x1;const _0x4841db=_0x221d9a[_0x439e('0xf4')](_0x25c207[_0x439e('0xb5')],_0x2e429c[_0x439e('0x9')])[_0x439e('0xf')]();for(const _0x3d5d1a of _0x4841db)if([_0x439e('0x25'),_0x439e('0x159')][_0x439e('0x37')](_0x3d5d1a[_0x439e('0x89')])&&_0x221d9a[_0x439e('0x7d')][_0x439e('0x3b')](_0x3d5d1a[_0x439e('0xfd')]))return!0x1;return!0x0;}function Vt(_0x26b52f,_0xe56fd0){return!(!_0x26b52f['_isDataLoaded']||!_0xe56fd0[_0x439e('0xa8')])&&_0x42d7a6(_0x26b52f[_0x439e('0x167')],_0xe56fd0[_0x439e('0x167')]);}function Ft(_0x434106,_0x1ab8e8){const _0x56e9d4=Gt(_0x434106['attributes']),_0x7fa22b=Gt(_0x1ab8e8);if(!_0x434106[_0x439e('0xa8')])return!0x1;for(const _0x363bea of Object['keys'](_0x7fa22b))if(!_0x42d7a6(_0x56e9d4[_0x363bea],_0x7fa22b[_0x363bea]))return!0x1;return!0x0;}function Gt(_0x2749e5){const _0x167466=Object[_0x439e('0x2d')]({},_0x2749e5);return delete _0x167466[_0x439e('0x9a')],delete _0x167466['tablePasteChainId'],_0x167466;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x8d8a=['some','addComment','arrowView','size','listenTo','CommentsUI','TrackChangesEditing','Discard\x20all\x20suggestions','getDescriptions','switchbutton','mainView','plugins','_unbindEditors','getMarkerNames','editing','getByInnerView','stopListening','push','createAnnotation','isInContent','Discard\x20all\x20selected\x20suggestions','getRanges','SuggestionThreadView','_handleSuggestionControllerDelayed','hasSuggestion','isDirty','suggestion-','suggestionLoaded','bind','_handleControllerBuffer','destroy','suggestionChanged','buttonView','EditorAnnotations','length','config','_suggestionToController','comments.editorConfig','delete','Track\x20changes','_annotationViews','activeAnnotations','define','lowest','focus','view','_updateController','actionView','type','_initializeController','commands','innerView','value','add','comments','head','map','toMany','separator','execute','acceptSelectedSuggestions','change:previous','TrackChangesUI','isOn','descriptionParts','addSourceCollector','createCommentThreadController','has','editor','discardButton','discardAllSuggestions','discardSelectedSuggestions','from','comments.maxThreadTotalWeight','unbind','commentThread','Accept\x20all\x20selected\x20suggestions','source','Annotations','get','CommentsRepository','trackChanges.disableComments','trackChanges','getJoined','_destroyController','_refreshActiveMarkers','keys','filter','locale','_descriptionFactory','componentFactory','refreshSelectedViews','registerAnnotation','getAllAdjacentSuggestions','model','button','getMarkers','commandName','_viewToController','activeMarkers','set','previous','isEnabled','_createUIButton'];(function(_0x37bf01,_0x8d8ad5){const _0x4ee02d=function(_0x263487){while(--_0x263487){_0x37bf01['push'](_0x37bf01['shift']());}};_0x4ee02d(++_0x8d8ad5);}(_0x8d8a,0x14e));const _0x4ee0=function(_0x37bf01,_0x8d8ad5){_0x37bf01=_0x37bf01-0x0;let _0x4ee02d=_0x8d8a[_0x37bf01];return _0x4ee02d;};import{Plugin as _0xbaaed1}from'ckeditor5/src/core';import{Collection as _0x3cf74f}from'ckeditor5/src/utils';import{Model as _0x326b34,SplitButtonView as _0x525d9f,createDropdown as _0x5373c7,addListToDropdown as _0x329a8a}from'ckeditor5/src/ui';import{Users as _0xf90181,getDateTimeFormatter as _0x5e25f7,getAllMarkersDomElementsSorted as _0x3ccda7}from'ckeditor5-collaboration/src/collaboration-core';import _0x5afaf1 from'./trackchangesediting';import _0x5e206b from'./ui/suggestioncontroller';import _0x55a6e2 from'./ui/view/suggestionthreadview';import{getTranslation as _0x5a85b5}from'./utils/common-translations';import _0x2365d0 from'../theme/icons/track-changes.svg';export default class d extends _0xbaaed1{static get['requires'](){return[_0x5afaf1,_0xf90181,_0x4ee0('0x3a'),_0x4ee0('0x38'),_0x4ee0('0xb')];}static get['pluginName'](){return _0x4ee0('0x28');}constructor(_0x460511){super(_0x460511),this[_0x4ee0('0xe')]=new Map(),this[_0x4ee0('0x4c')]=new Map(),this[_0x4ee0('0x12')]=new Map(),this[_0x4ee0('0x7')]=new Map();const _0x188681=this[_0x4ee0('0x2e')][_0x4ee0('0xd')];_0x188681[_0x4ee0('0x14')]('trackChanges.SuggestionThreadView',_0x55a6e2),_0x188681[_0x4ee0('0x14')](_0x4ee0('0x3b'),!0x1),this['_disableComments']=_0x188681[_0x4ee0('0x39')](_0x4ee0('0x3b'));}['_handleSuggestionControllerDelayed'](_0x559e4c,_0xe3dab0){0x0===this[_0x4ee0('0x7')][_0x4ee0('0x55')]&&setTimeout(()=>{for(const [_0x6713fb,_0x228290]of this['_handleControllerBuffer']){const _0x20b590=this['_suggestionToController'][_0x4ee0('0x2d')](_0x6713fb);_0x20b590||_0x228290?_0x20b590&&_0x228290&&this['_destroyController'](_0x6713fb):this[_0x4ee0('0x1b')](_0x6713fb);}this[_0x4ee0('0x2e')][_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0xb'))[_0x4ee0('0x45')](),this[_0x4ee0('0x3f')](),this[_0x4ee0('0x7')]['clear']();},0xa),this[_0x4ee0('0x7')]['set'](_0x559e4c,_0xe3dab0);}['init'](){const _0x20c4f8=this[_0x4ee0('0x2e')],_0x48f899=_0x20c4f8[_0x4ee0('0x5d')]['get'](_0x4ee0('0x58')),_0x5d486f=_0x20c4f8[_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0x38')),_0x257be5=_0x20c4f8['plugins'][_0x4ee0('0x39')](_0x4ee0('0xb')),_0x4d3c42=_0x20c4f8[_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0x3a'));_0x20c4f8['ui'][_0x4ee0('0x44')][_0x4ee0('0x1f')](_0x4ee0('0x3c'),_0x8cce95=>this[_0x4ee0('0x51')](_0x8cce95)),_0x257be5[_0x4ee0('0x2b')](()=>{const _0x1df0f7=[];for(const [_0x1f0008,_0x496d3b]of Array[_0x4ee0('0x32')](this[_0x4ee0('0xe')])){const _0x27ecfc=_0x1f0008['getAllAdjacentSuggestions'](),_0x8f12e6=[];for(const _0x5c30dd of _0x27ecfc){if(!_0x5c30dd[_0x4ee0('0x65')])continue;if(_0x5c30dd['isMultiRange']){_0x8f12e6['push'](..._0x5c30dd[_0x4ee0('0x67')]());continue;}const _0x58a724=_0x5c30dd['getFirstRange']();if(_0x8f12e6['length']>0x0){const _0x5f5ac0=_0x8f12e6[0x0][_0x4ee0('0x3d')](_0x58a724);if(_0x5f5ac0){_0x8f12e6[0x0]=_0x5f5ac0;continue;}}_0x8f12e6[_0x4ee0('0x63')](_0x58a724);}_0x1df0f7[_0x4ee0('0x63')]([_0x496d3b[_0x4ee0('0x17')],_0x8f12e6]);}return _0x1df0f7;}),this[_0x4ee0('0x56')](_0x48f899,_0x4ee0('0x5'),(_0x6586f4,_0x21192e)=>{this[_0x4ee0('0x56')](_0x21192e,_0x4ee0('0x27'),(_0x30a7b0,_0xae2e66,_0x3aacde,_0x510c64)=>{_0x21192e['isInContent']&&(null==_0x3aacde?(this['_updateController'](_0x510c64[_0x4ee0('0x21')]),this[_0x4ee0('0x1')](_0x21192e,!0x1)):(this[_0x4ee0('0x18')](_0x3aacde['head']),this['_handleSuggestionControllerDelayed'](_0x21192e,!0x0)));}),null===_0x21192e[_0x4ee0('0x4f')]?this['_handleSuggestionControllerDelayed'](_0x21192e,!0x1):this[_0x4ee0('0x18')](_0x21192e[_0x4ee0('0x21')]);}),this[_0x4ee0('0x56')](_0x48f899,'suggestionUnloaded',(_0x23a6fc,_0x1fac39,_0xa9d706)=>{this[_0x4ee0('0x62')](_0x1fac39,_0x4ee0('0x27')),this[_0x4ee0('0x7')][_0x4ee0('0x10')](_0x1fac39);const _0x2a5278=_0xa9d706?_0xa9d706[_0x4ee0('0x21')]:_0x1fac39,_0x1e0c21=this[_0x4ee0('0xe')][_0x4ee0('0x39')](_0x2a5278);null!==_0xa9d706&&this[_0x4ee0('0x18')](_0x2a5278),null===_0xa9d706&&_0x1e0c21&&this[_0x4ee0('0x3e')](_0x1fac39);}),this['listenTo'](_0x48f899,_0x4ee0('0x9'),(_0x42c964,_0x1c5c2a)=>{this[_0x4ee0('0x18')](_0x1c5c2a);}),this[_0x4ee0('0x56')](_0x5d486f,'change:activeAnnotations',()=>{this[_0x4ee0('0x3f')]();}),this[_0x4ee0('0x56')](_0x4d3c42,_0x4ee0('0x53'),(_0x470bfe,{threadId:_0x38be82,isFromAdapter:_0x1cc0b5})=>{if(_0x1cc0b5||!_0x48f899[_0x4ee0('0x2')](_0x38be82))return;const _0x3ba74b=_0x48f899['getSuggestion'](_0x38be82);this['_suggestionToController'][_0x4ee0('0x39')](_0x3ba74b)['view'][_0x4ee0('0x16')]();},{'priority':_0x4ee0('0x15')});}[_0x4ee0('0x3f')](){const _0x2851e6=this[_0x4ee0('0x2e')]['plugins'][_0x4ee0('0x39')](_0x4ee0('0x38')),_0x64fa03=this[_0x4ee0('0x2e')][_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0x58')),_0x2a4822=Array['from'](_0x2851e6[_0x4ee0('0x13')],_0xd6dd4=>_0xd6dd4[_0x4ee0('0x1d')])[_0x4ee0('0x41')](_0x2d227e=>this[_0x4ee0('0x4c')][_0x4ee0('0x2d')](_0x2d227e)),_0x1373cf=[];for(const _0x241bee of _0x2a4822){const _0x4730d2=this['_viewToController']['get'](_0x241bee)[_0x4ee0('0x48')][_0x4ee0('0x47')]();_0x1373cf['push'](..._0x4730d2['reduce']((_0x129f2c,_0x32b8fa)=>[..._0x129f2c,..._0x32b8fa[_0x4ee0('0x5f')]()],[]));}_0x64fa03[_0x4ee0('0x4d')]=_0x1373cf;}[_0x4ee0('0x51')](_0x2a3630){const _0x571220=_0x5373c7(_0x2a3630,_0x525d9f),_0x5de9a8=this['editor'][_0x4ee0('0x1c')][_0x4ee0('0x39')]('trackChanges'),_0x6549ff=_0x5a85b5(_0x2a3630,_0x4ee0('0x11'));_0x571220['buttonView']['set']({'tooltip':_0x6549ff,'label':_0x6549ff,'icon':_0x2365d0}),_0x571220[_0x4ee0('0xa')]['bind'](_0x4ee0('0x29'))['to'](_0x5de9a8,_0x4ee0('0x1e')),_0x571220[_0x4ee0('0xa')]['on']('execute',()=>{_0x5de9a8['execute'](),this[_0x4ee0('0x2e')][_0x4ee0('0x60')][_0x4ee0('0x17')]['focus']();});const _0x16085b=new _0x3cf74f(),_0x59a733=[{'type':_0x4ee0('0x5b'),'model':{'withText':!0x0,'label':_0x6549ff,'commandName':'trackChanges'}},{'type':_0x4ee0('0x24')},{'type':_0x4ee0('0x49'),'model':{'withText':!0x0,'label':_0x5a85b5(_0x2a3630,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':_0x4ee0('0x49'),'model':{'withText':!0x0,'label':_0x5a85b5(_0x2a3630,_0x4ee0('0x36')),'commandName':_0x4ee0('0x26')}},{'type':'button','model':{'withText':!0x0,'label':_0x5a85b5(_0x2a3630,_0x4ee0('0x59')),'commandName':_0x4ee0('0x30')}},{'type':_0x4ee0('0x49'),'model':{'withText':!0x0,'label':_0x5a85b5(_0x2a3630,_0x4ee0('0x66')),'commandName':_0x4ee0('0x31')}}];for(const _0x28463e of _0x59a733){let _0x368197={'type':_0x4ee0('0x24')};if(_0x28463e[_0x4ee0('0x48')]){const _0x4af64f=new _0x326b34(_0x28463e[_0x4ee0('0x48')]),_0x50ade5=this[_0x4ee0('0x2e')][_0x4ee0('0x1c')][_0x4ee0('0x39')](_0x4af64f['commandName']);_0x4af64f['bind'](_0x4ee0('0x29'),_0x4ee0('0x50'))['to'](_0x50ade5,_0x4ee0('0x1e'),_0x4ee0('0x50')),_0x368197={'type':_0x28463e[_0x4ee0('0x1a')],'model':_0x4af64f};}_0x16085b[_0x4ee0('0x1f')](_0x368197);}_0x329a8a(_0x571220,_0x16085b);const _0x4ebc6e=_0x59a733[_0x4ee0('0x41')](_0x26a363=>null!=_0x26a363[_0x4ee0('0x48')])[_0x4ee0('0x22')](_0x51008a=>this['editor']['commands'][_0x4ee0('0x39')](_0x51008a[_0x4ee0('0x48')][_0x4ee0('0x4b')])),_0x4e7223=_0x571220[_0x4ee0('0xa')];return _0x4e7223[_0x4ee0('0x19')]['unbind'](_0x4ee0('0x50')),_0x4e7223['arrowView'][_0x4ee0('0x34')](_0x4ee0('0x50')),_0x4e7223['actionView']['bind'](_0x4ee0('0x50'))['to'](_0x5de9a8,_0x4ee0('0x50')),_0x4e7223[_0x4ee0('0x54')][_0x4ee0('0x6')](_0x4ee0('0x50'))[_0x4ee0('0x23')](_0x4ebc6e,_0x4ee0('0x50'),(..._0xb93840)=>_0xb93840[_0x4ee0('0x52')](_0xce44ce=>_0xce44ce)),_0x571220['on'](_0x4ee0('0x25'),_0x484897=>{this['editor'][_0x4ee0('0x25')](_0x484897[_0x4ee0('0x37')][_0x4ee0('0x4b')]),this[_0x4ee0('0x2e')][_0x4ee0('0x60')]['view']['focus']();}),_0x571220;}[_0x4ee0('0x1b')](_0x505b18){const _0x34da10=this[_0x4ee0('0x2e')],_0x2c6b29=_0x34da10['config'],_0x5d61ed=_0x34da10[_0x4ee0('0x5d')]['get'](_0x4ee0('0x38')),_0x255c42=_0x34da10['plugins'][_0x4ee0('0x39')]('CommentsRepository'),_0x36a63c=_0x34da10[_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0xb')),_0x4d9b92=_0x34da10[_0x4ee0('0x5d')][_0x4ee0('0x39')](_0xf90181)['me'],_0x2888d4=_0x2c6b29[_0x4ee0('0x39')]('trackChanges')[_0x4ee0('0x0')],{CommentsListView:_0x278154,CommentThreadInputView:_0x430d92}=_0x34da10['plugins'][_0x4ee0('0x39')](_0x4ee0('0x57'));let _0x1cf409,_0x1091f4;this[_0x4ee0('0x12')]['has'](_0x505b18['id'])?(_0x1091f4=this[_0x4ee0('0x12')][_0x4ee0('0x39')](_0x505b18['id']),_0x1cf409=_0x1091f4[_0x4ee0('0x5c')]):(_0x1cf409=new _0x2888d4(_0x34da10[_0x4ee0('0x42')],_0x505b18,_0x4d9b92,{'disableComments':this['_disableComments'],'editorConfig':_0x2c6b29[_0x4ee0('0x39')](_0x4ee0('0xf')),'maxCommentsWhenCollapsed':_0x2c6b29[_0x4ee0('0x39')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2c6b29[_0x4ee0('0x39')](_0x4ee0('0x33')),'maxCommentCharsWhenCollapsed':_0x2c6b29[_0x4ee0('0x39')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5e25f7(_0x2c6b29[_0x4ee0('0x39')](_0x4ee0('0x42'))),'CommentView':_0x2c6b29[_0x4ee0('0x39')](_0x4ee0('0x20'))['CommentView'],'CommentsListView':_0x278154,'CommentThreadInputView':_0x430d92}),_0x1cf409['acceptButton']['on'](_0x4ee0('0x25'),()=>{_0x34da10[_0x4ee0('0x60')][_0x4ee0('0x17')]['focus']();}),_0x1cf409[_0x4ee0('0x2f')]['on']('execute',()=>{_0x34da10[_0x4ee0('0x60')][_0x4ee0('0x17')][_0x4ee0('0x16')]();}),_0x1091f4=_0x5d61ed['createAnnotationView'](this['editor'][_0x4ee0('0x42')],_0x1cf409),_0x1091f4['bind'](_0x4ee0('0x3'))['to'](_0x1cf409,'isDirty'),_0x1091f4[_0x4ee0('0x6')](_0x4ee0('0xc'))['to'](_0x1cf409),_0x1091f4[_0x4ee0('0x6')]('type')['to'](_0x1cf409,_0x4ee0('0x1a'),_0x367f54=>_0x4ee0('0x4')+_0x367f54),this[_0x4ee0('0x12')]['set'](_0x505b18['id'],_0x1091f4));const _0x79c1b8=_0x255c42[_0x4ee0('0x2c')](_0x505b18[_0x4ee0('0x35')],_0x1cf409),_0x72d30b=new _0x5e206b(_0x34da10,_0x505b18,_0x1cf409,_0x79c1b8),_0x22e066=_0x505b18[_0x4ee0('0x47')]()[_0x4ee0('0x41')](_0x39e136=>_0x39e136[_0x4ee0('0x65')]);_0x1cf409[_0x4ee0('0x2a')]=_0x34da10['plugins'][_0x4ee0('0x39')]('TrackChangesEditing')[_0x4ee0('0x43')][_0x4ee0('0x5a')](_0x22e066),this[_0x4ee0('0xe')][_0x4ee0('0x4e')](_0x505b18,_0x72d30b),this[_0x4ee0('0x4c')][_0x4ee0('0x4e')](_0x1cf409,_0x72d30b);const _0x1940e8=_0x5d61ed[_0x4ee0('0x64')]({'view':_0x1091f4,'target':()=>{const _0x296fde=[],_0x38a0dd=_0x505b18[_0x4ee0('0x47')]()['filter'](_0x4e2a8e=>_0x4e2a8e[_0x4ee0('0x65')]);for(const _0x5af694 of _0x38a0dd)_0x296fde[_0x4ee0('0x63')](..._0x5af694[_0x4ee0('0x4a')]());return _0x3ccda7(_0x34da10[_0x4ee0('0x60')],_0x296fde);},'type':()=>_0x4ee0('0x4')+_0x72d30b[_0x4ee0('0x17')]['type']});_0x255c42['_bindAnnotationToEditors'](_0x1cf409,_0x1940e8),_0x5d61ed[_0x4ee0('0x1f')](_0x1940e8),_0x36a63c[_0x4ee0('0x46')](_0x1940e8);}[_0x4ee0('0x3e')](_0x195488){const _0x44db2b=this[_0x4ee0('0x2e')][_0x4ee0('0x5d')][_0x4ee0('0x39')](_0x4ee0('0x3a')),_0x119bc6=this[_0x4ee0('0x2e')][_0x4ee0('0x5d')]['get'](_0x4ee0('0x38')),_0x2e4b18=this['_suggestionToController'][_0x4ee0('0x39')](_0x195488),_0x3d1b52=_0x2e4b18[_0x4ee0('0x17')],_0x2dd69c=_0x119bc6[_0x4ee0('0x61')](_0x3d1b52);_0x44db2b[_0x4ee0('0x5e')](_0x3d1b52),_0x2dd69c&&_0x119bc6['remove'](_0x2dd69c),this[_0x4ee0('0xe')][_0x4ee0('0x10')](_0x195488),this['_viewToController'][_0x4ee0('0x10')](_0x3d1b52),_0x2e4b18[_0x4ee0('0x8')]();}[_0x4ee0('0x18')](_0x27df8a){if(!_0x27df8a[_0x4ee0('0x65')]||!this[_0x4ee0('0xe')][_0x4ee0('0x2d')](_0x27df8a))return;const _0x164afa=this[_0x4ee0('0x2e')][_0x4ee0('0x5d')][_0x4ee0('0x39')]('TrackChangesEditing'),_0x56d3f=this[_0x4ee0('0xe')][_0x4ee0('0x39')](_0x27df8a),_0x36277c=_0x27df8a[_0x4ee0('0x47')]();_0x56d3f[_0x4ee0('0x17')][_0x4ee0('0x2a')]=_0x164afa[_0x4ee0('0x43')][_0x4ee0('0x5a')](_0x36277c);}[_0x4ee0('0x8')](){for(const _0x23a002 of this[_0x4ee0('0xe')][_0x4ee0('0x40')]())this['_destroyController'](_0x23a002);for(const _0x2cc824 of this['_annotationViews']['values']())_0x2cc824[_0x4ee0('0x5c')][_0x4ee0('0x8')]();super[_0x4ee0('0x8')]();}}
|
|
23
|
+
const _0x4ef8=['createAnnotation','push','execute','locale','separator','define','SuggestionThreadView','type','acceptSelectedSuggestions','componentFactory','TrackChangesEditing','Annotations','acceptAllSuggestions','acceptButton','EditorAnnotations','Discard\x20all\x20suggestions','getSuggestion','set','CommentsRepository','some','refreshSelectedViews','buttonView','_disableComments','addSourceCollector','isDirty','bind','editing','_initializeController','change:previous','head','discardSelectedSuggestions','_descriptionFactory','_viewToController','Accept\x20all\x20selected\x20suggestions','commands','add','button','editor','plugins','reduce','values','isMultiRange','focus','_handleControllerBuffer','createAnnotationView','trackChanges.SuggestionThreadView','source','keys','TrackChangesUI','CommentsUI','previous','length','_bindAnnotationToEditors','suggestionUnloaded','trackChanges','suggestionLoaded','get','commandName','_updateController','map','getRanges','_suggestionToController','model','remove','config','isInContent','clear','destroy','_createUIButton','size','lowest','view','value','_unbindEditors','getAllAdjacentSuggestions','Accept\x20all\x20suggestions','has','switchbutton','hasSuggestion','change:activeAnnotations','suggestion-','createCommentThreadController','arrowView','discardAllSuggestions','delete','activeAnnotations','_refreshActiveMarkers','filter','comments.maxCommentCharsWhenCollapsed','requires','getMarkers','isEnabled','comments.maxThreadTotalWeight','suggestionChanged','_annotationViews','comments.editorConfig','unbind','trackChanges.disableComments','mainView','commentThread','_destroyController','_handleSuggestionControllerDelayed','listenTo','init','from','actionView','innerView','toMany','descriptionParts','discardButton','getDescriptions','getMarkerNames'];(function(_0x15a6bc,_0x4ef8be){const _0x11d050=function(_0x5b168a){while(--_0x5b168a){_0x15a6bc['push'](_0x15a6bc['shift']());}};_0x11d050(++_0x4ef8be);}(_0x4ef8,0xbf));const _0x11d0=function(_0x15a6bc,_0x4ef8be){_0x15a6bc=_0x15a6bc-0x0;let _0x11d050=_0x4ef8[_0x15a6bc];return _0x11d050;};import{Plugin as _0x57140e}from'ckeditor5/src/core';import{Collection as _0x2f5dc9}from'ckeditor5/src/utils';import{Model as _0x988443,SplitButtonView as _0x5323c1,createDropdown as _0x5d1d5f,addListToDropdown as _0x2284d9}from'ckeditor5/src/ui';import{Users as _0x4272aa,getDateTimeFormatter as _0x32e184,getAllMarkersDomElementsSorted as _0x240d7a}from'ckeditor5-collaboration/src/collaboration-core';import _0x24cd78 from'./trackchangesediting';import _0x52ca5b from'./ui/suggestioncontroller';import _0x42fe38 from'./ui/view/suggestionthreadview';import{getTranslation as _0x57d9ab}from'./utils/common-translations';import _0x12c1dc from'../theme/icons/track-changes.svg';export default class d extends _0x57140e{static get[_0x11d0('0xa')](){return[_0x24cd78,_0x4272aa,_0x11d0('0x33'),_0x11d0('0x2c'),'EditorAnnotations'];}static get['pluginName'](){return _0x11d0('0x51');}constructor(_0x962bf2){super(_0x962bf2),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this[_0x11d0('0xf')]=new Map(),this[_0x11d0('0x4c')]=new Map();const _0x271309=this[_0x11d0('0x46')][_0x11d0('0x61')];_0x271309[_0x11d0('0x26')](_0x11d0('0x4e'),_0x42fe38),_0x271309[_0x11d0('0x26')](_0x11d0('0x12'),!0x1),this[_0x11d0('0x37')]=_0x271309[_0x11d0('0x59')](_0x11d0('0x12'));}[_0x11d0('0x16')](_0x2663b1,_0x9ec40a){0x0===this[_0x11d0('0x4c')][_0x11d0('0x66')]&&setTimeout(()=>{for(const [_0x2c43fa,_0xbfaa2b]of this[_0x11d0('0x4c')]){const _0x4f24a8=this[_0x11d0('0x5e')]['has'](_0x2c43fa);_0x4f24a8||_0xbfaa2b?_0x4f24a8&&_0xbfaa2b&&this[_0x11d0('0x15')](_0x2c43fa):this[_0x11d0('0x3c')](_0x2c43fa);}this[_0x11d0('0x46')][_0x11d0('0x47')]['get']('EditorAnnotations')[_0x11d0('0x35')](),this[_0x11d0('0x7')](),this['_handleControllerBuffer'][_0x11d0('0x63')]();},0xa),this[_0x11d0('0x4c')][_0x11d0('0x32')](_0x2663b1,_0x9ec40a);}[_0x11d0('0x18')](){const _0x2331e6=this[_0x11d0('0x46')],_0x3b896d=_0x2331e6[_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x2b')),_0x356779=_0x2331e6[_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x2c')),_0x2643d9=_0x2331e6[_0x11d0('0x47')]['get'](_0x11d0('0x2f')),_0x3a9d9e=_0x2331e6[_0x11d0('0x47')]['get']('CommentsRepository');_0x2331e6['ui'][_0x11d0('0x2a')][_0x11d0('0x44')]('trackChanges',_0x8081e9=>this[_0x11d0('0x65')](_0x8081e9)),_0x2643d9[_0x11d0('0x38')](()=>{const _0x230de6=[];for(const [_0x2536e7,_0x1631c0]of Array[_0x11d0('0x19')](this[_0x11d0('0x5e')])){const _0x3cd721=_0x2536e7[_0x11d0('0x6b')](),_0x35e33c=[];for(const _0x2c62e9 of _0x3cd721){if(!_0x2c62e9[_0x11d0('0x62')])continue;if(_0x2c62e9[_0x11d0('0x4a')]){_0x35e33c[_0x11d0('0x22')](..._0x2c62e9[_0x11d0('0x5d')]());continue;}const _0x2d7337=_0x2c62e9['getFirstRange']();if(_0x35e33c[_0x11d0('0x54')]>0x0){const _0x234816=_0x35e33c[0x0]['getJoined'](_0x2d7337);if(_0x234816){_0x35e33c[0x0]=_0x234816;continue;}}_0x35e33c[_0x11d0('0x22')](_0x2d7337);}_0x230de6['push']([_0x1631c0[_0x11d0('0x68')],_0x35e33c]);}return _0x230de6;}),this[_0x11d0('0x17')](_0x3b896d,_0x11d0('0x58'),(_0x594123,_0x1ef054)=>{this[_0x11d0('0x17')](_0x1ef054,_0x11d0('0x3d'),(_0x3e915c,_0x55448a,_0x9d23f2,_0x1e898e)=>{_0x1ef054['isInContent']&&(null==_0x9d23f2?(this['_updateController'](_0x1e898e[_0x11d0('0x3e')]),this[_0x11d0('0x16')](_0x1ef054,!0x1)):(this['_updateController'](_0x9d23f2[_0x11d0('0x3e')]),null==_0x1e898e&&this[_0x11d0('0x16')](_0x1ef054,!0x0)));}),null!==_0x1ef054[_0x11d0('0x53')]?this['_updateController'](_0x1ef054[_0x11d0('0x3e')]):this[_0x11d0('0x16')](_0x1ef054,!0x1);}),this[_0x11d0('0x17')](_0x3b896d,_0x11d0('0x56'),(_0x3c0fe8,_0x2f2d6b,_0x5789b0)=>{this['stopListening'](_0x2f2d6b,_0x11d0('0x3d')),this[_0x11d0('0x4c')]['delete'](_0x2f2d6b),this[_0x11d0('0x5e')][_0x11d0('0x6d')](_0x2f2d6b)&&this[_0x11d0('0x15')](_0x2f2d6b),_0x5789b0&&this[_0x11d0('0x5b')](_0x5789b0[_0x11d0('0x3e')]);}),this[_0x11d0('0x17')](_0x3b896d,_0x11d0('0xe'),(_0x32d525,_0x30e48d)=>{this['_updateController'](_0x30e48d);}),this['listenTo'](_0x356779,_0x11d0('0x0'),()=>{this[_0x11d0('0x7')]();}),this[_0x11d0('0x17')](_0x3a9d9e,'addComment',(_0x48423b,{threadId:_0x4ec39c,isFromAdapter:_0xedea6d})=>{if(_0xedea6d||!_0x3b896d[_0x11d0('0x6f')](_0x4ec39c))return;const _0x50cc52=_0x3b896d[_0x11d0('0x31')](_0x4ec39c);this[_0x11d0('0x5e')][_0x11d0('0x59')](_0x50cc52)['view']['focus']();},{'priority':_0x11d0('0x67')});}[_0x11d0('0x7')](){const _0x2a299e=this[_0x11d0('0x46')][_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x2c')),_0x1b6595=this[_0x11d0('0x46')]['plugins'][_0x11d0('0x59')](_0x11d0('0x2b')),_0x47d7d8=Array['from'](_0x2a299e[_0x11d0('0x6')],_0x37c922=>_0x37c922[_0x11d0('0x1b')])['filter'](_0x3362ac=>this[_0x11d0('0x41')][_0x11d0('0x6d')](_0x3362ac)),_0x2fc59e=[];for(const _0x2d10f4 of _0x47d7d8){const _0x3d9698=this[_0x11d0('0x41')][_0x11d0('0x59')](_0x2d10f4)[_0x11d0('0x5f')][_0x11d0('0x6b')]();_0x2fc59e[_0x11d0('0x22')](..._0x3d9698[_0x11d0('0x48')]((_0x4aa9e9,_0x4c1854)=>[..._0x4aa9e9,..._0x4c1854[_0x11d0('0x20')]()],[]));}_0x1b6595['activeMarkers']=_0x2fc59e;}[_0x11d0('0x65')](_0x2d3a32){const _0x14669c=_0x5d1d5f(_0x2d3a32,_0x5323c1),_0x4a8e8d=this[_0x11d0('0x46')][_0x11d0('0x43')][_0x11d0('0x59')](_0x11d0('0x57')),_0x9fb8ab=_0x57d9ab(_0x2d3a32,'Track\x20changes');_0x14669c['buttonView']['set']({'tooltip':_0x9fb8ab,'label':_0x9fb8ab,'icon':_0x12c1dc}),_0x14669c[_0x11d0('0x36')][_0x11d0('0x3a')]('isOn')['to'](_0x4a8e8d,_0x11d0('0x69')),_0x14669c[_0x11d0('0x36')]['on']('execute',()=>{_0x4a8e8d[_0x11d0('0x23')](),this[_0x11d0('0x46')][_0x11d0('0x3b')][_0x11d0('0x68')]['focus']();});const _0xf0450e=new _0x2f5dc9(),_0x2f9063=[{'type':_0x11d0('0x6e'),'model':{'withText':!0x0,'label':_0x9fb8ab,'commandName':_0x11d0('0x57')}},{'type':_0x11d0('0x25')},{'type':_0x11d0('0x45'),'model':{'withText':!0x0,'label':_0x57d9ab(_0x2d3a32,_0x11d0('0x6c')),'commandName':_0x11d0('0x2d')}},{'type':'button','model':{'withText':!0x0,'label':_0x57d9ab(_0x2d3a32,_0x11d0('0x42')),'commandName':_0x11d0('0x29')}},{'type':_0x11d0('0x45'),'model':{'withText':!0x0,'label':_0x57d9ab(_0x2d3a32,_0x11d0('0x30')),'commandName':_0x11d0('0x4')}},{'type':_0x11d0('0x45'),'model':{'withText':!0x0,'label':_0x57d9ab(_0x2d3a32,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x11d0('0x3f')}}];for(const _0x34ebd8 of _0x2f9063){let _0x1624dc={'type':_0x11d0('0x25')};if(_0x34ebd8[_0x11d0('0x5f')]){const _0x2ce9ad=new _0x988443(_0x34ebd8[_0x11d0('0x5f')]),_0x184b57=this[_0x11d0('0x46')][_0x11d0('0x43')]['get'](_0x2ce9ad[_0x11d0('0x5a')]);_0x2ce9ad['bind']('isOn','isEnabled')['to'](_0x184b57,'value',_0x11d0('0xc')),_0x1624dc={'type':_0x34ebd8[_0x11d0('0x28')],'model':_0x2ce9ad};}_0xf0450e['add'](_0x1624dc);}_0x2284d9(_0x14669c,_0xf0450e);const _0x4a5572=_0x2f9063['filter'](_0x25d7e8=>null!=_0x25d7e8[_0x11d0('0x5f')])[_0x11d0('0x5c')](_0x53c3c4=>this['editor'][_0x11d0('0x43')][_0x11d0('0x59')](_0x53c3c4[_0x11d0('0x5f')][_0x11d0('0x5a')])),_0x3e64ae=_0x14669c[_0x11d0('0x36')];return _0x3e64ae[_0x11d0('0x1a')][_0x11d0('0x11')](_0x11d0('0xc')),_0x3e64ae[_0x11d0('0x3')][_0x11d0('0x11')](_0x11d0('0xc')),_0x3e64ae[_0x11d0('0x1a')][_0x11d0('0x3a')](_0x11d0('0xc'))['to'](_0x4a8e8d,'isEnabled'),_0x3e64ae['arrowView'][_0x11d0('0x3a')](_0x11d0('0xc'))[_0x11d0('0x1c')](_0x4a5572,_0x11d0('0xc'),(..._0x2df0a0)=>_0x2df0a0[_0x11d0('0x34')](_0x3cd8e6=>_0x3cd8e6)),_0x14669c['on']('execute',_0x1ad835=>{this[_0x11d0('0x46')][_0x11d0('0x23')](_0x1ad835[_0x11d0('0x4f')][_0x11d0('0x5a')]),this[_0x11d0('0x46')]['editing']['view'][_0x11d0('0x4b')]();}),_0x14669c;}['_initializeController'](_0x4c960d){const _0x35de1f=this[_0x11d0('0x46')],_0x186dc1=_0x35de1f['config'],_0x44a9ee=_0x35de1f[_0x11d0('0x47')]['get']('Annotations'),_0x4bef0a=_0x35de1f[_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x33')),_0x2f258c=_0x35de1f['plugins'][_0x11d0('0x59')](_0x11d0('0x2f')),_0x133ec2=_0x35de1f[_0x11d0('0x47')][_0x11d0('0x59')](_0x4272aa)['me'],_0x46a48c=_0x186dc1[_0x11d0('0x59')](_0x11d0('0x57'))[_0x11d0('0x27')],{CommentsListView:_0x5105b4,CommentThreadInputView:_0x4b213b}=_0x35de1f[_0x11d0('0x47')]['get'](_0x11d0('0x52'));let _0x547f9f,_0x3c7b38;this[_0x11d0('0xf')][_0x11d0('0x6d')](_0x4c960d['id'])?(_0x3c7b38=this[_0x11d0('0xf')][_0x11d0('0x59')](_0x4c960d['id']),_0x547f9f=_0x3c7b38[_0x11d0('0x13')]):(_0x547f9f=new _0x46a48c(_0x35de1f[_0x11d0('0x24')],_0x4c960d,_0x133ec2,{'disableComments':this[_0x11d0('0x37')],'editorConfig':_0x186dc1[_0x11d0('0x59')](_0x11d0('0x10')),'maxCommentsWhenCollapsed':_0x186dc1[_0x11d0('0x59')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x186dc1[_0x11d0('0x59')](_0x11d0('0xd')),'maxCommentCharsWhenCollapsed':_0x186dc1[_0x11d0('0x59')](_0x11d0('0x9')),'formatDateTime':_0x32e184(_0x186dc1[_0x11d0('0x59')](_0x11d0('0x24'))),'CommentView':_0x186dc1[_0x11d0('0x59')]('comments')['CommentView'],'CommentsListView':_0x5105b4,'CommentThreadInputView':_0x4b213b}),_0x547f9f[_0x11d0('0x2e')]['on'](_0x11d0('0x23'),()=>{_0x35de1f[_0x11d0('0x3b')][_0x11d0('0x68')][_0x11d0('0x4b')]();}),_0x547f9f[_0x11d0('0x1e')]['on'](_0x11d0('0x23'),()=>{_0x35de1f[_0x11d0('0x3b')][_0x11d0('0x68')]['focus']();}),_0x3c7b38=_0x44a9ee[_0x11d0('0x4d')](this[_0x11d0('0x46')][_0x11d0('0x24')],_0x547f9f),_0x3c7b38['bind'](_0x11d0('0x39'))['to'](_0x547f9f,'isDirty'),_0x3c7b38[_0x11d0('0x3a')](_0x11d0('0x54'))['to'](_0x547f9f),_0x3c7b38[_0x11d0('0x3a')](_0x11d0('0x28'))['to'](_0x547f9f,_0x11d0('0x28'),_0x11b978=>'suggestion-'+_0x11b978),this['_annotationViews'][_0x11d0('0x32')](_0x4c960d['id'],_0x3c7b38));const _0xc7d8bf=_0x4bef0a[_0x11d0('0x2')](_0x4c960d[_0x11d0('0x14')],_0x547f9f),_0x54f9cd=new _0x52ca5b(_0x35de1f,_0x4c960d,_0x547f9f,_0xc7d8bf),_0x4d5d5e=_0x4c960d['getAllAdjacentSuggestions']()['filter'](_0x4240b2=>_0x4240b2[_0x11d0('0x62')]);_0x547f9f[_0x11d0('0x1d')]=_0x35de1f['plugins']['get'](_0x11d0('0x2b'))[_0x11d0('0x40')]['getDescriptions'](_0x4d5d5e),this[_0x11d0('0x5e')][_0x11d0('0x32')](_0x4c960d,_0x54f9cd),this['_viewToController'][_0x11d0('0x32')](_0x547f9f,_0x54f9cd);const _0x2e24d3=_0x44a9ee[_0x11d0('0x21')]({'view':_0x3c7b38,'target':()=>{const _0x167dd1=[],_0x2bed70=_0x4c960d[_0x11d0('0x6b')]()[_0x11d0('0x8')](_0x451bfa=>_0x451bfa[_0x11d0('0x62')]);for(const _0x124122 of _0x2bed70)_0x167dd1[_0x11d0('0x22')](..._0x124122[_0x11d0('0xb')]());return _0x240d7a(_0x35de1f[_0x11d0('0x3b')],_0x167dd1);},'type':()=>_0x11d0('0x1')+_0x54f9cd['view'][_0x11d0('0x28')]});_0x4bef0a[_0x11d0('0x55')](_0x547f9f,_0x2e24d3),_0x44a9ee[_0x11d0('0x44')](_0x2e24d3),_0x2f258c['registerAnnotation'](_0x2e24d3);}['_destroyController'](_0x2d8791){const _0x228e03=this[_0x11d0('0x46')][_0x11d0('0x47')][_0x11d0('0x59')]('CommentsRepository'),_0x8c2f9=this[_0x11d0('0x46')][_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x2c')),_0x28433c=this[_0x11d0('0x5e')]['get'](_0x2d8791),_0xaf5c50=_0x28433c[_0x11d0('0x68')],_0x38a0fb=_0x8c2f9['getByInnerView'](_0xaf5c50);_0x228e03[_0x11d0('0x6a')](_0xaf5c50),_0x38a0fb&&_0x8c2f9[_0x11d0('0x60')](_0x38a0fb),this[_0x11d0('0x5e')][_0x11d0('0x5')](_0x2d8791),this['_viewToController'][_0x11d0('0x5')](_0xaf5c50),_0x28433c[_0x11d0('0x64')]();}[_0x11d0('0x5b')](_0x3c0671){if(!_0x3c0671[_0x11d0('0x62')]||!this['_suggestionToController']['has'](_0x3c0671))return;const _0x248762=this[_0x11d0('0x46')][_0x11d0('0x47')][_0x11d0('0x59')](_0x11d0('0x2b')),_0x5c7d18=this[_0x11d0('0x5e')][_0x11d0('0x59')](_0x3c0671),_0x287fff=_0x3c0671[_0x11d0('0x6b')]();_0x5c7d18[_0x11d0('0x68')][_0x11d0('0x1d')]=_0x248762[_0x11d0('0x40')][_0x11d0('0x1f')](_0x287fff);}['destroy'](){for(const _0x48bd4d of this[_0x11d0('0x5e')][_0x11d0('0x50')]())this[_0x11d0('0x15')](_0x48bd4d);for(const _0x283d40 of this['_annotationViews'][_0x11d0('0x49')]())_0x283d40[_0x11d0('0x13')]['destroy']();super[_0x11d0('0x64')]();}}
|