@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231211.0 → 0.0.0-nightly-20231213.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/build/translations/ar.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/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/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.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/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5e7d=['setSelection','containsRange','_getMarkerAnnouncementText','subType','$text','oldValue','dataReady','authorName','_isBlockAttribute','getWalker','_processAttributeSuggestions','attributeNewValue','createRange','addSuggestionData','isOwn','addMarker','removeMarker','LEAVE','enableCommand','tablePasteChainId','removed','rename','unbindElementFromMarkerName','ready','widget','createRangeOn','hasSuggestion','dataToMarker','@external','rootName','getIntersection','createRangeIn','isLocal','clone','after','push','_rangeIsInLocalUserInsertion','updateSuggestion','containsRangeInObject','discardAllSuggestions','showSuggestionHighlights','removeComment','collaboration.channelId','removeMarker:suggestion:attribute','commentThread','pop','author','_trackFormatChanges','ENTER','commandName','every','isIntersectingWithRange','deletion:accept','attribute:join','updateMarker','consumable','_defaultCallbacks','_onDiscard','createPositionBefore','getSuggestionCallback','marker-count','insertion','$graveyard','isNextTo','_saved','formatInline:join','group','_refreshSuggestionsChain','markers','_addSuggestionMarker','insert','find','_getSuggestionData','addMarker:suggestion:formatBlock','_registerBlockAttribute','length','removeMarker:suggestion:formatBlock','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.','ck-suggestion-marker','isAtEnd','set','format','ck-suggestion-marker-','_handleNewSuggestionMarker','CommentsRepository','deletion:chain','attribute','startsWith','enqueueChange','concat','getChanges','warn','track-changes-suggestion-data-mismatch','fromCharCode','markerToData','root','has','isEqual','isAtStart','groupId','moveTargetPosition','skipNestingCheck','isIntersecting','change:data','getContainedElement','suggestionChanged','forEach','formatInline:accept','writer','end','next','item','track-changes-enable-command-twice','formatBlock:discard','return','map','_model','getItems','fetchCommentThread','options','adapter','mapper','reconvertMarker','data-suggestion','_initAriaMarkerChangeAnnouncements','markDeletion','createSelection','open','consume','trackChangesCommand','history','formatInline:','ck-suggestion-marker--active','getCommentThread','_enableDefaultAttributesIntegration','key','newValue','_suggestions','getSuggestion','oldRange','track-changes-user-not-found','external:','lowest','createPositionAt','filter','markAttributeChange','isInContent','_SUGGESTION_ANNOUNCEMENT','keys','differ','never','_breakSuggestionMarker','change:_saved','remove','conversion','creator','discardSuggestion','accept','_blockAttributeKeys','ck-suggestion-marker-formatBlock','formatInline','containerElement','$marker','acceptSelectedSuggestions','type','init','_joinWithAdjacentSuggestions','formatInline:discard','formatBlock:chain','getSuggestions','_commentsRepository','editor','getCustomProperty','upcast','highest','_recordAttributeChanges','getFirstRange','suggestion:','insertion:accept','addHighlight','values','_processAttributeChanges','markMultiRangeBlockFormat','head','change:activeMarkers','addClass','enableReadOnlyMode','fire','_adapter','formatGroupId','_createSuggestion','_splitMarkerName','default','toViewElement','getOperations','name','_registerDefaultCallbacks','isCollapsed','markerReady','trackChanges.mergeNestedSuggestions','range','removeAttribute','isObject','delete','editing','dataDowncast','_editor','$elementName','locale','_isForcedDefaultExecutionBlock','_checkSuggestionCorrectness','notReady','getShiftedBy','resolve','normal','acceptAllSuggestions','formatBlock:join','getNearestSelectionRange','comments','markerNameToElements','markInsertion','plugins','element','editingDowncast','chain','nodeBefore','_enabledCommands','_mergeNestedSuggestions','suggestion','$textProxy','_cutOutSuggestionMarker','includes','_inlineAttributeKeys','isExternal','targetPosition','_reduceSuggestionAttributeRange','_descriptionFactory','config','deleteContent','_suggestionFactory','listenTo','_isDataLoaded','size','deletion:discard','for','isSelectable','getChangedMarkers','createPositionAfter','containsPosition','batch','isRemovable','_joinSuggestions','elementToElement','start','ariaLiveAnnouncer','_addThreadToSuggestion','deletion','formatBlock:','isTouching','isMultiRange','move','removeClass','authoredAt','getMultiRangeId','splice','data','setTo','substring','track-changes-adapter-missing-getsuggestion','_setSuggestionRange','PendingActions','getFirstMarker','isBlock','document','_getExternalAuthor','multi','version','hasComments','accepted','previous','_updateSuggestionData','change','attribute:discard','markerName','documentSelection','deletion:','_findSuggestions','markInlineFormat','execute','attributes','isDocumentOperation','trackChanges','add','backward','multipleBlocks','addMarker:suggestion','detach','_suggestionState','_removeSuggestion','define','getAllAdjacentSuggestions','setAttribute','track-changes-command-not-found','suggestion-type','split','rejected','always','removeMarkers','clear','then','addCommentThread','getRanges','Users','TrackChangesEditing','isAfter','schema','some','low','formatBlock','insertion:','_refreshAttributeSuggestionsChain','suggestionLoaded','deletion:join','position','requires','unshift','addComment','toJSON','isInsideObject','elementEnd','getAttribute','addSuggestion','nodeAfter','_setSuggestionData','unbind','parent','get','high','getRange','acceptSuggestion','model','activeMarkers','discard','substr','trackChanges.trackFormatChanges','isUndo','stop','catch','forceDefaultExecution','isArray','track-changes-adapter-already-set','getDifference','isBefore','splitPosition','suggestionUnloaded','changeAttribute','value','_recordAttributeSuggestionsFromVersion','rethrowUnexpectedError','_registerInlineAttribute','addRange','_customCallbacks','addUser','getUser','createdAt','buildSuggestion','getLastMatchingPosition','howMany','join','_reduceExistingSuggestions','insertion:discard','from','formatBlock:accept','sort','newRange','discardSelectedSuggestions','markBlockFormat','PENDING_ACTION_SUGGESTION','registerPostFixer','markMultiRangeInsertion','commands','selection','isLimit','insertContent'];(function(_0x1046dc,_0x5e7d6d){const _0x11961c=function(_0x409697){while(--_0x409697){_0x1046dc['push'](_0x1046dc['shift']());}};_0x11961c(++_0x5e7d6d);}(_0x5e7d,0xa8));const _0x1196=function(_0x1046dc,_0x5e7d6d){_0x1046dc=_0x1046dc-0x0;let _0x11961c=_0x5e7d[_0x1046dc];return _0x11961c;};import{Plugin as _0x30db1b,PendingActions as _0x60f01b}from'ckeditor5/src/core';import{LiveRange as _0x284da0}from'ckeditor5/src/engine';import{CKEditorError as _0x37a2ae,uid as _0x1449d0,priorities as _0x3da3c6,logWarning as _0x3e1932}from'ckeditor5/src/utils';import{toWidget as _0x50b2b8}from'ckeditor5/src/widget';import{Users as _0x2abd57,hashObject as _0x5501a2,surroundingMarkersDetector as _0x1d2ead}from'ckeditor5-collaboration/src/collaboration-core';import _0x4076c7 from'./commands/trackchangescommand';import _0x1c93ba from'./commands/acceptsuggestioncommand';import _0x44643a from'./commands/discardsuggestioncommand';import _0x5968fc from'./commands/executeonallsuggestionscommand';import _0x1d0abf from'./commands/executeonselectedsuggestionscommand';import _0x32d5d1 from'./suggestion';import _0x41d522 from'./suggestiondescriptionfactory';import _0x422f29 from'./integrations/aiassistant';import _0x3cfc78 from'./integrations/alignment';import _0x5aa47c from'./integrations/basicstyles';import _0x5e41e6 from'./integrations/blockquote';import _0x2a67dd from'./integrations/ckbox';import _0x1f44a0 from'./integrations/codeblock';import _0x2dcf82 from'./integrations/comments';import _0x3de965 from'./integrations/deletecommand';import _0x2decbf from'./integrations/documentlist';import _0x486a98 from'./integrations/documentlistproperties';import _0x53997f from'./integrations/entercommand';import _0x34dfb2 from'./integrations/findandreplace';import _0xdc7bea from'./integrations/font';import _0x5833f1 from'./integrations/formatpainter';import _0x4a4855 from'./integrations/heading';import _0x437b2d from'./integrations/highlight';import _0x4d3d1e from'./integrations/horizontalline';import _0x1ec439 from'./integrations/htmlembed';import _0x77ac95 from'./integrations/image';import _0x11b40c from'./integrations/imagereplace';import _0xca1846 from'./integrations/imagestyle';import _0x19643a from'./integrations/importword';import _0x308bf9 from'./integrations/indent';import _0x1ac6f7 from'./integrations/inputcommand';import _0x2144d7 from'./integrations/link';import _0x4cfe6b from'./integrations/list';import _0x48761c from'./integrations/listproperties';import _0x38689c from'./integrations/mediaembed';import _0x2fea12 from'./integrations/mention';import _0x450fe8 from'./integrations/pagebreak';import _0x118319 from'./integrations/paragraph';import _0x1342c8 from'./integrations/removeformat';import _0x554e5e from'./integrations/restrictededitingmode';import _0x279740 from'./integrations/shiftentercommand';import _0x61c65d from'./integrations/standardeditingmode';import _0x42e368 from'./integrations/style';import _0x2b1cd7 from'./integrations/table';import _0x1adce5 from'./integrations/tablemergesplit';import _0x29e86d from'./integrations/tableheadings';import _0x58e711 from'./integrations/tableclipboard';import _0x402c88 from'./integrations/tablecolumnresize';import _0x189063 from'./integrations/template';import _0x11fcc7 from'./integrations/tableofcontents';import _0x443a19 from'./integrations/title';import _0x1c3e6d from'./integrations/undo';import _0x2f3e5b from'./integrations/tablecaption';import _0x104c99 from'./integrations/tableproperties';import{getTranslation as _0x53252c}from'./utils/common-translations';import{isEqual as _0x3f301d,omit as _0x4ce505}from'lodash-es';export const renameAttributeKey=_0x1196('0x27');export default class p extends _0x30db1b{static get[_0x1196('0x9c')](){return[_0x1196('0x12c'),_0x2abd57,_0x60f01b,_0x422f29,_0x3cfc78,_0x5aa47c,_0x5e41e6,_0x2a67dd,_0x1f44a0,_0x2dcf82,_0x3de965,_0x2decbf,_0x486a98,_0x53997f,_0x34dfb2,_0xdc7bea,_0x5833f1,_0x4a4855,_0x437b2d,_0x4d3d1e,_0x1ec439,_0x77ac95,_0xca1846,_0x11b40c,_0x19643a,_0x308bf9,_0x1ac6f7,_0x2144d7,_0x4cfe6b,_0x48761c,_0x38689c,_0x2fea12,_0x450fe8,_0x118319,_0x1342c8,_0x554e5e,_0x279740,_0x61c65d,_0x42e368,_0x2b1cd7,_0x1adce5,_0x29e86d,_0x2f3e5b,_0x58e711,_0x402c88,_0x11fcc7,_0x104c99,_0x189063,_0x443a19,_0x1c3e6d];}static get['pluginName'](){return _0x1196('0x91');}constructor(_0x2dc18f){function _0x4c1cdc(_0xb1ca54){return _0xb1ca54[_0x1196('0x14b')](_0x58acc4=>String[_0x1196('0x135')](_0x58acc4))[_0x1196('0xc8')]('');}super(_0x2dc18f),this[_0x1196('0xbd')]=null,this['set'](_0x1196('0xad'),[]),this['on'](_0x1196('0x10'),(_0x409298,_0x405141,_0x10edc9,_0x12c365)=>{this['_model'][_0x1196('0x71')](()=>{for(const _0x439471 of[..._0x12c365,..._0x10edc9])this[_0x1196('0x14c')][_0x1196('0x11c')][_0x1196('0x138')](_0x439471)&&_0x2dc18f[_0x1196('0x24')][_0x1196('0x152')](_0x439471);});}),this[_0x1196('0x44')]=new _0x41d522(this[_0x1196('0x3')][_0x1196('0xac')][_0x1196('0x93')],this[_0x1196('0x3')][_0x1196('0x28')]),this[_0x1196('0x14')]=null,this[_0x1196('0x47')]=new Bt(this['editor']),this[_0x1196('0x161')]=new Map(),this[_0x1196('0x2')]=_0x2dc18f[_0x1196('0x35')]['get'](_0x1196('0x12c')),this['_enabledCommands']=new Set(),this[_0x1196('0x14c')]=this[_0x1196('0x3')][_0x1196('0xac')],this['_suggestionState']=new WeakMap(),this[_0x1196('0x29')]=!0x1,this[_0x1196('0x176')]=new Set([_0x1196('0x27')]),this['_inlineAttributeKeys']=new Set(),_0x2dc18f[_0x1196('0x45')][_0x1196('0x83')](_0x1196('0xb0'),_0x1196('0x18')),this[_0x1196('0x107')]=_0x2dc18f[_0x1196('0x45')][_0x1196('0xa8')](_0x1196('0xb0')),_0x2dc18f[_0x1196('0x45')][_0x1196('0x83')]('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2dc18f[_0x1196('0x45')][_0x1196('0xa8')](_0x1196('0x1f')),this[_0x1196('0x159')]=new _0x4076c7(_0x2dc18f,this[_0x1196('0x3a')]),this[_0x1196('0x154')](),this[_0x4c1cdc([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4c1cdc([0x34,0x30,0x34,0x36,0x32,0x34,0x32,0x32]);}[_0x1196('0x17d')](){const _0x56b329=this['editor'],_0x1d2de2=(_0x3dd529,_0x4a4bca)=>{if(_0x1196('0x12e')!=_0x3dd529)return _0x1196('0x12a')+_0x3dd529;const _0x2875de=_0x4a4bca[_0x1196('0x88')]('|')[0x0];return this[_0x1196('0xe0')](_0x2875de)?_0x1196('0x177'):'ck-suggestion-marker-formatInline';};_0x56b329[_0x1196('0x172')][_0x1196('0x4c')](_0x1196('0x37'))['markerToHighlight']({'model':_0x1196('0x3c'),'view':_0x393285=>{const {id:_0x373a3b,type:_0x1002bd,subType:_0x5265a7}=this['_splitMarkerName'](_0x393285[_0x1196('0x73')]),_0x33f5d4=[_0x1196('0x126'),_0x1d2de2(_0x1002bd,_0x5265a7)];let _0x35905c=0xbb8;return this['activeMarkers'][_0x1196('0x3f')](_0x393285[_0x1196('0x73')])&&(_0x33f5d4['push']('ck-suggestion-marker--active'),_0x35905c=0xbc2),_0x1196('0x58')==_0x1002bd&&(_0x35905c+=0x5),{'classes':_0x33f5d4,'attributes':{'data-suggestion':_0x373a3b},'priority':_0x35905c};}}),_0x56b329[_0x1196('0x172')][_0x1196('0x4c')](_0x1196('0x25'))[_0x1196('0x7c')](_0x423d22=>{_0x423d22['on'](_0x1196('0x7f'),(_0x4b0620,_0x323888,_0x473289)=>{if(!_0x473289['options'][_0x1196('0x100')])return;const _0x2ccd13=_0x323888[_0x1196('0x147')];if(!_0x2ccd13)return;const _0x3ff022=_0x473289[_0x1196('0x151')][_0x1196('0x19')](_0x2ccd13);_0x56b329['model'][_0x1196('0x93')][_0x1196('0x22')](_0x2ccd13)&&_0x3ff022&&!_0x3ff022[_0x1196('0x4')](_0x1196('0xf0'))&&_0x3ff022['is'](_0x1196('0x179'))&&_0x50b2b8(_0x3ff022,_0x473289[_0x1196('0x144')]);},{'priority':'high'});}),_0x56b329[_0x1196('0x172')][_0x1196('0x4c')]('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2d8a6b,_0x42b90d)=>{if(!_0x42b90d['options'][_0x1196('0x100')])return null;const {type:_0x17bc04,subType:_0x21721d}=this[_0x1196('0x17')](_0x2d8a6b[_0x1196('0x73')]);return{'classes':[_0x1196('0x126'),_0x1d2de2(_0x17bc04,_0x21721d)],'priority':0xbb8};}});const _0x55b114=({showActiveMarkers:_0x1560bd=!0x0,isAttributeSuggestion:_0x2328c9=!0x1}={})=>(_0x1f9d47,_0x142815,_0x4f2a9a)=>{if(!_0x142815[_0x1196('0x147')])return;const {id:_0x2ff838}=this['_splitMarkerName'](_0x142815['markerName']);if(_0x2328c9){const _0x2cc482=Pt(this[_0x1196('0x161')][_0x1196('0xa8')](_0x2ff838));if(!this[_0x1196('0xe0')](_0x2cc482))return;}if(_0x142815['item']['is'](_0x1196('0xd5')))return void _0x4f2a9a[_0x1196('0x10f')][_0x1196('0x158')](_0x142815[_0x1196('0x147')],_0x1f9d47['name']);const _0x3280e8=_0x4f2a9a['mapper']['toViewElement'](_0x142815[_0x1196('0x147')]);if(_0x142815['item']['is']('element')&&_0x56b329[_0x1196('0xac')]['schema'][_0x1196('0x68')](_0x142815[_0x1196('0x147')])&&!_0x3280e8[_0x1196('0x4')](_0x1196('0xb'))){_0x4f2a9a[_0x1196('0x144')]['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3280e8),_0x4f2a9a['writer']['setAttribute'](_0x1196('0x153'),_0x2ff838,_0x3280e8),_0x4f2a9a[_0x1196('0x151')]['bindElementToMarker'](_0x3280e8,_0x142815[_0x1196('0x73')]),_0x1560bd&&(this[_0x1196('0xad')]['includes'](_0x142815[_0x1196('0x73')])?_0x4f2a9a['writer'][_0x1196('0x11')](_0x1196('0x15c'),_0x3280e8):_0x4f2a9a['writer'][_0x1196('0x5d')](_0x1196('0x15c'),_0x3280e8));for(const _0xa8e224 of _0x56b329['model'][_0x1196('0xf7')](_0x142815['item'])[_0x1196('0x14d')]())_0x4f2a9a['consumable'][_0x1196('0x158')](_0xa8e224,_0x1f9d47[_0x1196('0x1b')]);_0x4f2a9a[_0x1196('0x10f')][_0x1196('0x158')](_0x142815['item'],_0x1f9d47[_0x1196('0x1b')]);}};_0x56b329[_0x1196('0x172')][_0x1196('0x4c')](_0x1196('0x25'))[_0x1196('0x7c')](_0x2af786=>{_0x2af786['on'](_0x1196('0x121'),(_0x5d896c,_0x1cfacf,_0x342dc5)=>{_0x342dc5[_0x1196('0x14f')][_0x1196('0x100')]&&_0x55b114({'showActiveMarkers':!0x1})(_0x5d896c,_0x1cfacf,_0x342dc5);},{'priority':'highest'});}),_0x56b329[_0x1196('0x172')][_0x1196('0x4c')](_0x1196('0x25'))[_0x1196('0x7c')](_0x5d3de0=>{_0x5d3de0['on']('addMarker:suggestion:attribute',(_0x5216b6,_0x261de8,_0x4b8328)=>{_0x4b8328[_0x1196('0x14f')][_0x1196('0x100')]&&_0x55b114({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5216b6,_0x261de8,_0x4b8328);},{'priority':_0x1196('0x6')});}),_0x56b329['conversion'][_0x1196('0x4c')](_0x1196('0x25'))[_0x1196('0x136')]({'model':_0x1196('0x3c'),'view':(_0xa8cf9f,_0x207b04)=>_0x207b04['options'][_0x1196('0x100')]?null:{'group':_0x1196('0x3c'),'name':_0xa8cf9f[_0x1196('0xaf')](0xb)}}),_0x56b329[_0x1196('0x172')]['for']('upcast')[_0x1196('0x54')]({'view':{'name':_0x1196('0x3c'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x780e65,{writer:_0x443f77})=>{let _0x11fe32=_0x1196('0x9')+_0x780e65[_0x1196('0xa2')](_0x1196('0x87'))+':'+_0x780e65['getAttribute']('id');return _0x780e65[_0x1196('0xa2')](_0x1196('0x114'))&&(_0x11fe32+=':'+_0x780e65[_0x1196('0xa2')](_0x1196('0x114'))),_0x443f77['createElement'](_0x1196('0x17a'),{'data-name':_0x11fe32});}}),_0x56b329['conversion']['for'](_0x1196('0x5'))[_0x1196('0xf3')]({'view':'suggestion'}),_0x56b329['conversion'][_0x1196('0x4c')](_0x1196('0x37'))[_0x1196('0x7c')](_0x1df3ac=>{_0x1df3ac['on'](_0x1196('0x121'),_0x55b114(),{'priority':_0x1196('0xa9')});}),_0x56b329[_0x1196('0x172')][_0x1196('0x4c')](_0x1196('0x37'))[_0x1196('0x7c')](_0x59416a=>{_0x59416a['on']('addMarker:suggestion:attribute',_0x55b114({'isAttributeSuggestion':!0x0}),{'priority':_0x1196('0xa9')});}),_0x56b329['conversion'][_0x1196('0x4c')]('editingDowncast')[_0x1196('0x7c')](_0x35d9de=>{_0x35d9de['on'](_0x1196('0x124'),(_0x52324c,_0x12bb58,_0x95e2e9)=>{const _0x36e9a0=_0x95e2e9[_0x1196('0x151')]['markerNameToElements'](_0x12bb58[_0x1196('0x73')]);if(_0x36e9a0)for(const _0x1daa95 of _0x36e9a0)_0x1daa95[_0x1196('0x4')](_0x1196('0xb'))||(_0x95e2e9[_0x1196('0x144')][_0x1196('0x5d')]([_0x1196('0x126'),_0x1196('0x177'),'ck-suggestion-marker--active'],_0x1daa95),_0x95e2e9[_0x1196('0x144')][_0x1196('0x21')]('data-suggestion',_0x1daa95),_0x95e2e9[_0x1196('0x151')][_0x1196('0xee')](_0x1daa95,_0x12bb58[_0x1196('0x73')]));},{'priority':_0x1196('0xa9')});}),_0x56b329['conversion'][_0x1196('0x4c')](_0x1196('0x37'))['add'](_0x567361=>{_0x567361['on'](_0x1196('0x103'),(_0x30af79,_0x3e222b,_0x551904)=>{const _0x1d7616=_0x551904[_0x1196('0x151')][_0x1196('0x33')](_0x3e222b['markerName']);if(!_0x1d7616)return;const {id:_0x56698e}=this[_0x1196('0x17')](_0x3e222b['markerName']),_0x25c1c6=Pt(this[_0x1196('0x161')][_0x1196('0xa8')](_0x56698e));if(this[_0x1196('0xe0')](_0x25c1c6))for(const _0x4121bd of _0x1d7616)_0x4121bd['getCustomProperty']('addHighlight')||(_0x551904[_0x1196('0x144')][_0x1196('0x5d')](['ck-suggestion-marker',_0x1196('0x177'),_0x1196('0x15c')],_0x4121bd),_0x551904[_0x1196('0x144')][_0x1196('0x21')](_0x1196('0x153'),_0x4121bd),_0x551904[_0x1196('0x151')][_0x1196('0xee')](_0x4121bd,_0x3e222b[_0x1196('0x73')]));},{'priority':_0x1196('0xa9')});}),_0x56b329['model'][_0x1196('0x69')][_0x1196('0xd2')](_0x3b0c43=>{let _0x1d5590=!0x1;const _0x18232f=Array[_0x1196('0xcb')](_0x56b329[_0x1196('0xac')][_0x1196('0x69')][_0x1196('0x16d')][_0x1196('0x4e')]()),_0x53ce30=new Set();for(const {name:_0x24a0f6,data:_0x24c5e9}of _0x18232f){const {group:_0x3cd6c3,type:_0x42b1e4,subType:_0x139efc,id:_0x4adc31}=this['_splitMarkerName'](_0x24a0f6);if(_0x1196('0x3c')!==_0x3cd6c3)continue;const _0x28606e=this['_suggestions'][_0x1196('0xa8')](_0x4adc31);if(null!=_0x24c5e9[_0x1196('0xce')]){'formatInline'==_0x42b1e4&&(_0x1d5590=_0x1d5590||Et(_0x24c5e9['newRange'],_0x24a0f6,_0x3b0c43,_0x56b329[_0x1196('0xac')][_0x1196('0x93')]));const _0x323de3='attribute'==_0x42b1e4&&this[_0x1196('0xe0')](_0x139efc[_0x1196('0x88')]('|')[0x0]);if(_0x24c5e9[_0x1196('0xce')][_0x1196('0x1d')]||'$graveyard'==_0x24c5e9[_0x1196('0xce')][_0x1196('0x137')][_0x1196('0xf5')]||_0x1196('0x96')==_0x42b1e4&&!jt(_0x24c5e9[_0x1196('0xce')])||_0x323de3&&!jt(_0x24c5e9['newRange'])||_0x1196('0x58')==_0x42b1e4&&!(!xt(_0x7299f8=_0x24c5e9[_0x1196('0xce')])&&!function(_0x53f241){return _0x53f241['start'][_0x1196('0xa7')]==_0x53f241[_0x1196('0x145')]['nodeBefore']&&_0x53f241[_0x1196('0x55')][_0x1196('0x127')];}(_0x7299f8)))_0x3b0c43[_0x1196('0xe8')](_0x24a0f6),_0x1d5590=!0x0;else{if(!_0x28606e||!_0x28606e[_0x1196('0x16a')])continue;_0x53ce30[_0x1196('0x7c')](_0x28606e);}}}var _0x7299f8;return _0x53ce30[_0x1196('0x4a')]>0x0&&(_0x1d5590=!!this[_0x1196('0x17e')](_0x53ce30)||_0x1d5590),_0x1d5590;}),_0x56b329[_0x1196('0xac')][_0x1196('0x69')][_0x1196('0xd2')](_0x381e07=>{let _0xabc1b2=!0x1;for(const _0x1f789a of _0x56b329[_0x1196('0xac')][_0x1196('0x69')][_0x1196('0x16d')][_0x1196('0x132')]())if(_0x1196('0x11e')==_0x1f789a[_0x1196('0x17c')])for(const _0x14d9d0 of this['_suggestions'][_0x1196('0xc')]()){if(_0x14d9d0[_0x1196('0x5b')]||!_0x14d9d0[_0x1196('0x16a')])continue;const _0x1e4c6e=_0x1196('0x96')==_0x14d9d0[_0x1196('0x17c')],_0x159eb9=Pt(_0x14d9d0),_0x58efa2=_0x159eb9&&this[_0x1196('0xe0')](_0x159eb9);if(!_0x1e4c6e&&!_0x58efa2)continue;const _0x29e30c=_0x14d9d0['getFirstRange']();if(_0x29e30c[_0x1196('0x55')]['parent']!=_0x29e30c['end'][_0x1196('0xa7')]&&!_0x29e30c['end'][_0x1196('0x127')]){const _0x25cd63=_0x56b329['model'][_0x1196('0x167')](_0x29e30c[_0x1196('0x55')][_0x1196('0xa4')],'end'),_0x1538a4=_0x56b329[_0x1196('0xac')][_0x1196('0xe4')](_0x29e30c[_0x1196('0x55')],_0x25cd63);_0x381e07['updateMarker'](_0x14d9d0[_0x1196('0x67')](),{'range':_0x1538a4}),_0xabc1b2=!0x0;}}return _0xabc1b2;}),_0x56b329['model'][_0x1196('0x69')][_0x1196('0xd2')](_0x237879=>this[_0x1196('0xd')](_0x237879)),_0x56b329[_0x1196('0xac')][_0x1196('0x69')][_0x1196('0xd2')](_0xa1a063=>!_0xa1a063['batch'][_0x1196('0xf8')]&&this['_processAttributeSuggestions'](_0xa1a063)),_0x56b329[_0x1196('0xac')][_0x1196('0x11c')]['on']('update:suggestion',(_0x3c7019,_0xcaf43e,_0x129b21)=>{if(null==_0x129b21){const {id:_0x2eacaa}=this['_splitMarkerName'](_0xcaf43e['name']),_0x24bdec=this[_0x1196('0x161')][_0x1196('0xa8')](_0x2eacaa);_0x24bdec&&_0x24bdec['addMarkerName'](_0xcaf43e['name']);}}),_0x56b329[_0x1196('0xac')][_0x1196('0x69')]['on'](_0x1196('0x13f'),()=>{const _0x507f20=Array[_0x1196('0xcb')](_0x56b329[_0x1196('0xac')]['document'][_0x1196('0x16d')][_0x1196('0x4e')]())[_0x1196('0x168')](_0x4f11f3=>_0x1196('0x3c')===this[_0x1196('0x17')](_0x4f11f3[_0x1196('0x1b')])[_0x1196('0x11a')]);if(0x0===_0x507f20[_0x1196('0x123')])return;_0x507f20[_0x1196('0xcd')]((_0x38835e,_0x369a3b)=>{const _0x439878=_0x38835e[_0x1196('0x61')]['oldRange'],_0x1c5312=_0x369a3b[_0x1196('0x61')][_0x1196('0x163')];return null===_0x439878&&null===_0x1c5312?0x0:null===_0x439878&&null!==_0x1c5312?-0x1:null!==_0x439878&&null===_0x1c5312?0x1:_0x439878[_0x1196('0x55')][_0x1196('0xb8')](_0x1c5312['start'])?-0x1:0x1;});const _0x36315f=new Set(),_0x101c41=new Set();for(const {name:_0xb8c66,data:_0xc322e6}of _0x507f20){const {id:_0x49c498}=this[_0x1196('0x17')](_0xb8c66);if(null===_0xc322e6[_0x1196('0x163')]){const _0x2df0e6=this['_handleNewSuggestionMarker'](_0xb8c66);_0x101c41[_0x1196('0x7c')](_0x2df0e6);}else{const _0x5d8a39=this['_suggestions']['get'](_0x49c498);null!==_0xc322e6[_0x1196('0xce')]||_0x5d8a39[_0x1196('0x16a')]?(_0x36315f[_0x1196('0x7c')](_0x5d8a39[_0x1196('0xf')]),_0x101c41[_0x1196('0x7c')](_0x5d8a39)):this[_0x1196('0x82')](_0x5d8a39);}}_0x101c41[_0x1196('0x4a')]>0x0&&this['_refreshSuggestionsChain'](_0x101c41);for(const _0x4677f4 of _0x36315f)this[_0x1196('0x13')](_0x1196('0x141'),_0x4677f4);}),_0x56b329['model']['on']('applyOperation',(_0x3128fe,_0x52dcdc)=>{const _0x3a077b=_0x52dcdc[0x0];if(!this[_0x1196('0x161')][_0x1196('0x4a')])return;if(!_0x3a077b[_0x1196('0x7a')])return;if(_0x3a077b['batch'][_0x1196('0xb1')]||!_0x3a077b[_0x1196('0x51')]['isLocal'])return;let _0x333b5a,_0xe3146;switch(_0x3a077b['type']){case _0x1196('0x11e'):_0x333b5a=_0x56b329['model'][_0x1196('0x167')](_0x3a077b[_0x1196('0x9b')]),_0xe3146=_0x333b5a[_0x1196('0x2c')](_0x3a077b[_0x1196('0xc7')]);break;case _0x1196('0x88'):_0x333b5a=_0x56b329[_0x1196('0xac')]['createPositionAt'](_0x3a077b[_0x1196('0xb9')]),_0xe3146=_0x56b329[_0x1196('0xac')][_0x1196('0x167')](_0x3a077b[_0x1196('0x13c')]);break;case _0x1196('0x5c'):_0x333b5a=_0x56b329[_0x1196('0xac')][_0x1196('0x167')](_0x3a077b[_0x1196('0x42')]),_0xe3146=_0x333b5a[_0x1196('0x2c')](_0x3a077b[_0x1196('0xc7')]);break;default:return;}const _0x31dcf8=_0x56b329[_0x1196('0xac')][_0x1196('0xe4')](_0x333b5a,_0xe3146);_0x56b329[_0x1196('0xac')][_0x1196('0x71')](()=>{for(const {suggestion:_0x24419c,meta:_0x527e3d}of this[_0x1196('0x76')](_0x31dcf8)){if(_0x24419c['isMultiRange'])continue;if(_0x1196('0x178')==_0x24419c[_0x1196('0x17c')])continue;const _0x507d7f=Pt(_0x24419c);if(_0x507d7f&&this[_0x1196('0xe0')](_0x507d7f)&&_0x1196('0x88')!=_0x3a077b['type'])continue;const _0x556d72=_0x24419c['data']&&_0x24419c[_0x1196('0x61')][_0x1196('0x7e')];(_0x1196('0x96')!=_0x24419c[_0x1196('0x17c')]||_0x1196('0x88')==_0x3a077b[_0x1196('0x17c')]&&!_0x556d72)&&(_0x527e3d[_0x1196('0xfe')]||_0x1196('0x115')==_0x24419c['type']&&_0x527e3d['isOwn']||_0x24419c['getFirstRange']()[_0x1196('0xd9')](_0x31dcf8)&&this[_0x1196('0x16f')](_0x24419c,_0x333b5a,_0xe3146));}});},{'priority':_0x1196('0x166')}),_0x56b329[_0x1196('0xac')]['on']('deleteContent',(_0x15a7eb,_0xd43e4a)=>{const _0x10f4a8=_0xd43e4a[0x0],_0xc9e37b=_0xd43e4a[0x1];if(_0xc9e37b&&_0xc9e37b[_0x1196('0xb4')])return;if(this[_0x1196('0x29')])return;if(!this[_0x1196('0x159')][_0x1196('0xbc')])return;if(_0x10f4a8[_0x1196('0x1d')])return;const _0x429388=_0x56b329[_0x1196('0xac')]['schema'],{start:_0x52b68c,end:_0x2ce519}=_0x10f4a8[_0x1196('0x8')](),_0x32cfd8=_0x52b68c['nodeAfter']&&_0x429388['isLimit'](_0x52b68c[_0x1196('0xa4')])?null:_0x429388[_0x1196('0x31')](_0x52b68c,'forward'),_0xb55e17=_0x2ce519[_0x1196('0x39')]&&_0x429388[_0x1196('0xd6')](_0x2ce519[_0x1196('0x39')])?null:_0x429388['getNearestSelectionRange'](_0x2ce519,'backward'),_0x102bbc=_0x56b329[_0x1196('0xac')]['createRange'](_0x32cfd8?_0x32cfd8['start']:_0x52b68c,_0xb55e17?_0xb55e17[_0x1196('0x145')]:_0x2ce519);_0x56b329[_0x1196('0xac')]['change'](_0x277b55=>{this[_0x1196('0x155')](_0x102bbc);const _0x741f35=_0x56b329[_0x1196('0xac')][_0x1196('0x93')][_0x1196('0x31')](_0x102bbc['start']);_0x10f4a8['is'](_0x1196('0x74'))?_0x277b55['setSelection'](_0x741f35):_0x10f4a8[_0x1196('0x62')](_0x741f35);}),_0x15a7eb['stop']();},{'priority':_0x3da3c6[_0x1196('0x2e')]+0xa}),_0x56b329[_0x1196('0xac')]['on'](_0x1196('0xd7'),(_0x515085,_0x57b5ef)=>{const _0x2aed0e=_0x57b5ef[_0x57b5ef[_0x1196('0x123')]-0x1];_0x2aed0e&&_0x2aed0e[_0x1196('0xb4')]||this[_0x1196('0x29')]||this[_0x1196('0x159')][_0x1196('0xbc')]&&(_0x56b329['model'][_0x1196('0x71')](()=>{let _0x225c9b=_0x56b329[_0x1196('0xac')][_0x1196('0xd7')](_0x57b5ef[0x0],_0x57b5ef[0x1],_0x57b5ef[0x2],{'forceDefaultExecution':!0x0});if(!_0x225c9b)return;_0x515085[_0x1196('0x14a')]=_0x225c9b[_0x1196('0xf9')]();const _0x417399=_0x225c9b[_0x1196('0x145')]['nodeBefore'],_0x1a7ff7=_0x56b329[_0x1196('0xac')][_0x1196('0x93')];_0x417399&&_0x1a7ff7[_0x1196('0x68')](_0x417399)&&!_0x1a7ff7[_0x1196('0x22')](_0x417399)&&(_0x225c9b=_0x56b329[_0x1196('0xac')][_0x1196('0xe4')](_0x225c9b[_0x1196('0x55')],_0x56b329['model'][_0x1196('0x167')](_0x417399,'end'))),this[_0x1196('0x34')](_0x225c9b);}),_0x515085[_0x1196('0xb2')]());},{'priority':_0x1196('0xa9')}),this[_0x1196('0x3')][_0x1196('0xd4')][_0x1196('0x7c')](_0x1196('0x7b'),this[_0x1196('0x159')]),this[_0x1196('0xea')]('trackChanges');const _0x3badf6=new _0x1c93ba(_0x56b329,this[_0x1196('0x161')]);_0x56b329[_0x1196('0xd4')]['add']('acceptSuggestion',_0x3badf6),this['enableCommand']('acceptSuggestion');const _0x3c8dcf=new _0x44643a(_0x56b329,this[_0x1196('0x161')]);_0x56b329[_0x1196('0xd4')]['add'](_0x1196('0x174'),_0x3c8dcf),this['enableCommand'](_0x1196('0x174')),_0x56b329['commands'][_0x1196('0x7c')](_0x1196('0x2f'),new _0x5968fc(_0x56b329,_0x3badf6,this[_0x1196('0x161')])),this['enableCommand'](_0x1196('0x2f')),_0x56b329[_0x1196('0xd4')][_0x1196('0x7c')](_0x1196('0xff'),new _0x5968fc(_0x56b329,_0x3c8dcf,this[_0x1196('0x161')])),this['enableCommand'](_0x1196('0xff')),_0x56b329[_0x1196('0xd4')][_0x1196('0x7c')](_0x1196('0x17b'),new _0x1d0abf(_0x56b329,_0x3badf6,this[_0x1196('0x161')])),this[_0x1196('0xea')](_0x1196('0x17b')),_0x56b329[_0x1196('0xd4')][_0x1196('0x7c')](_0x1196('0xcf'),new _0x1d0abf(_0x56b329,_0x3c8dcf,this[_0x1196('0x161')])),this[_0x1196('0xea')]('discardSelectedSuggestions');const _0x5c687e=_0x56b329['plugins'][_0x1196('0xa8')](_0x1196('0x12c'));this[_0x1196('0x48')](_0x5c687e,_0x1196('0x9e'),(_0x590529,{threadId:_0x299f90})=>{const _0x57f38f=this[_0x1196('0x161')][_0x1196('0xa8')](_0x299f90);_0x57f38f&&_0x57f38f[_0x1196('0x104')]&&0x1===_0x57f38f[_0x1196('0x104')][_0x1196('0x123')]&&this[_0x1196('0x70')](_0x299f90,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5c687e,_0x1196('0x101'),(_0x105f9f,{threadId:_0x3200fc})=>{const _0x3ec6c1=this[_0x1196('0x161')][_0x1196('0xa8')](_0x3200fc);_0x3ec6c1&&_0x3ec6c1[_0x1196('0x104')]&&!_0x3ec6c1['commentThread'][_0x1196('0x123')]&&this['_updateSuggestionData'](_0x3200fc,{'hasComments':!0x1});},{'priority':_0x1196('0x95')});}set['adapter'](_0x4dfdef){if(this[_0x1196('0x14')])throw new _0x37a2ae(_0x1196('0xb6'),this);this[_0x1196('0x14')]=_0x4dfdef;}get[_0x1196('0x150')](){return this[_0x1196('0x14')];}[_0x1196('0x1')]({skipNotAttached:_0x1888ab=!0x1,toJSON:_0x526d88=!0x1}={}){const _0x128dfb=[];for(const _0x434927 of this[_0x1196('0x161')]['values']())_0x1888ab&&!_0x434927['isInContent']||_0x128dfb[_0x1196('0xfb')](_0x434927);return _0x526d88?_0x128dfb[_0x1196('0x14b')](_0x21de37=>_0x21de37[_0x1196('0x9f')]()):_0x128dfb;}[_0x1196('0x162')](_0x6c257b){const _0x3d5f7d=this[_0x1196('0x161')][_0x1196('0xa8')](_0x6c257b);if(!_0x3d5f7d)throw new _0x37a2ae('track-changes-suggestion-not-found',this);return _0x3d5f7d;}[_0x1196('0xf2')](_0x4773e2){return this['_suggestions'][_0x1196('0x138')](_0x4773e2);}['addSuggestionData'](_0x1269aa){const {authorId:_0x4de512,id:_0x1c8852,attributes:_0x260d54}=_0x1269aa,[_0x4e6b0c,_0x201b66]=_0x1269aa[_0x1196('0x17c')][_0x1196('0x88')](':'),_0xfb84e0=this['_suggestions'][_0x1196('0xa8')](_0x1c8852)||this[_0x1196('0x16')](_0x4e6b0c,_0x201b66,_0x1c8852,_0x4de512,_0x260d54);if(this[_0x1196('0x57')](_0xfb84e0),this[_0x1196('0x2a')](_0xfb84e0,_0x4e6b0c,_0x201b66||null,_0x4de512),_0xfb84e0[_0x1196('0xc4')]=_0x1269aa[_0x1196('0xc4')],_0xfb84e0[_0x1196('0x49')]=!0x0,_0x260d54&&_0x260d54[_0x1196('0xf4')]){const _0x3a75b8=_0x260d54[_0x1196('0xf4')],_0x1d9c83=this[_0x1196('0x6a')](_0x3a75b8[_0x1196('0xdf')]);_0xfb84e0[_0x1196('0x5e')]=_0x3a75b8[_0x1196('0xc4')],_0xfb84e0['author']=_0x1d9c83,_0xfb84e0[_0x1196('0x41')]=!0x0;}else _0xfb84e0[_0x1196('0x5e')]=_0x1269aa[_0x1196('0xc4')];switch(_0x1269aa[_0x1196('0x61')]&&(_0xfb84e0[_0x1196('0x61')]=_0x1269aa[_0x1196('0x61')]),_0x1269aa[_0x1196('0x79')]&&(_0xfb84e0['attributes']=_0x1269aa[_0x1196('0x79')]),this[_0x1196('0x14')]&&this[_0x1196('0x14')][_0x1196('0xa3')]||(_0xfb84e0['_saved']=!0x0),this[_0x1196('0x81')][_0x1196('0xa8')](_0xfb84e0)){case'notReady':this[_0x1196('0x81')][_0x1196('0x128')](_0xfb84e0,_0x1196('0xde'));break;case _0x1196('0x1e'):_0xfb84e0[_0x1196('0x16a')]?(this[_0x1196('0x11b')](new Set([_0xfb84e0])),this[_0x1196('0x17e')](new Set([_0xfb84e0])),this[_0x1196('0x81')]['set'](_0xfb84e0,_0x1196('0xef')),this[_0x1196('0x13')](_0x1196('0x99'),_0xfb84e0)):this[_0x1196('0x81')][_0x1196('0x128')](_0xfb84e0,'removed');}return _0xfb84e0;}[_0x1196('0xab')](_0x2f9957){this[_0x1196('0xb4')](()=>{this[_0x1196('0x3')]['model']['change'](()=>{for(const _0x106548 of _0x2f9957['getAllAdjacentSuggestions']())_0x106548[_0x1196('0x175')]();});});}[_0x1196('0x174')](_0x1975ea){this[_0x1196('0xb4')](()=>{this[_0x1196('0x3')]['model']['change'](()=>{for(const _0x1319cd of _0x1975ea[_0x1196('0x84')]())_0x1319cd['discard']();});});}['enableCommand'](_0x103cad,_0x5c61ee){const _0x4da5a4=this[_0x1196('0x3')][_0x1196('0xd4')][_0x1196('0xa8')](_0x103cad);if(!_0x4da5a4)throw new _0x37a2ae(_0x1196('0x86'),this,{'commandName':_0x103cad});if(this['_enabledCommands']['has'](_0x4da5a4))throw new _0x37a2ae(_0x1196('0x148'),this,{'commandName':_0x103cad});this['_enabledCommands']['add'](_0x4da5a4),_0x5c61ee&&_0x4da5a4['on'](_0x1196('0x78'),(_0x2ed599,_0x39436f)=>{this[_0x1196('0x159')][_0x1196('0xbc')]&&(this[_0x1196('0x29')]||(_0x39436f[_0x1196('0x123')]>0x0&&_0x39436f[_0x39436f[_0x1196('0x123')]-0x1]&&_0x39436f[_0x39436f['length']-0x1][_0x1196('0xb4')]?_0x39436f[_0x1196('0x105')]():(_0x2ed599[_0x1196('0x14a')]=_0x5c61ee((..._0x3b6ff5)=>_0x4da5a4[_0x1196('0x78')](..._0x3b6ff5,{'forceDefaultExecution':!0x0}),..._0x39436f),_0x2ed599[_0x1196('0xb2')]())));},{'priority':_0x1196('0xa9')});}[_0x1196('0xb4')](_0x471942){let _0x5baabd,_0x5f2dbc;const _0x1a0485=this['_isForcedDefaultExecutionBlock'];this[_0x1196('0x29')]=!0x0;try{_0x5baabd=_0x471942();}catch(_0x50c9c6){_0x5f2dbc=_0x50c9c6;}return _0x1a0485||(this[_0x1196('0x29')]=!0x1),_0x5f2dbc&&_0x37a2ae[_0x1196('0xbe')](_0x5f2dbc,this),_0x5baabd;}[_0x1196('0x34')](_0x1e45d,_0x655ff0=null,_0x513b4d={}){if(_0x1e45d['isCollapsed'])return null;const _0x119e1b=this[_0x1196('0x3')]['plugins'][_0x1196('0xa8')](_0x1196('0x90'))['me'];for(const {suggestion:_0x30454a,meta:_0x487aa7}of this[_0x1196('0x76')](_0x1e45d,_0x1196('0x115')))if(_0x487aa7[_0x1196('0xe6')]){if(!_0x487aa7[_0x1196('0x117')]){if(_0x487aa7['containsRangeInObject']){if(!this[_0x1196('0x3b')]||!Gt(_0x30454a,_0x513b4d))continue;return _0x30454a;}if(Gt(_0x30454a,_0x513b4d))return _0x30454a;this[_0x1196('0x16f')](_0x30454a,_0x1e45d[_0x1196('0x55')],_0x1e45d[_0x1196('0x145')]);break;}if(_0x655ff0==_0x30454a[_0x1196('0xdb')]&&Gt(_0x30454a,_0x513b4d)){const _0x3a1869=_0x30454a[_0x1196('0x8')]();return _0x3a1869[_0x1196('0x55')][_0x1196('0x139')](_0x1e45d[_0x1196('0x145')])?this[_0x1196('0x65')](_0x30454a,this[_0x1196('0x14c')][_0x1196('0xe4')](_0x1e45d['start'],_0x3a1869[_0x1196('0x145')])):this[_0x1196('0x65')](_0x30454a,this[_0x1196('0x14c')][_0x1196('0xe4')](_0x3a1869[_0x1196('0x55')],_0x1e45d[_0x1196('0x145')])),_0x30454a;}}const _0x3a8ef5=_0x1449d0(),_0x3ede01=_0x119e1b['id'],_0x1ca432=_0x655ff0?_0x1196('0x97')+_0x655ff0:_0x1196('0x115'),_0x4e3472=this[_0x1196('0xa5')]({'id':_0x3a8ef5,'type':_0x1ca432,'createdAt':new Date(),'authorId':_0x3ede01,'attributes':_0x513b4d});return this[_0x1196('0x11d')](_0x1ca432,_0x3a8ef5,_0x3ede01,_0x1e45d),_0x4e3472;}[_0x1196('0xd3')](_0x53dd7c,_0x12df69=_0x1196('0x6b'),_0x1732b7={}){const _0x1e1b1b=this['editor'][_0x1196('0x35')][_0x1196('0xa8')](_0x1196('0x90'))['me'],_0x5b8163=this[_0x1196('0x47')][_0x1196('0x113')](_0x1196('0x115'),_0x12df69,_0x1196('0xc8'));for(const _0x91c250 of this[_0x1196('0x1')]())if(_0x91c250[_0x1196('0x106')]['id']==_0x1e1b1b['id']&&_0x1196('0x115')==_0x91c250[_0x1196('0x17c')]&&_0x91c250['subType']==_0x12df69&&Gt(_0x91c250,_0x1732b7)&&(_0x5b8163(_0x91c250['getRanges'](),_0x53dd7c)||_0x5b8163(_0x53dd7c,_0x91c250[_0x1196('0x8f')]()))){for(const _0x42b391 of _0x53dd7c)_0x91c250[_0x1196('0xc0')](_0x42b391);return _0x91c250;}for(const {suggestion:_0x1c5c4f,meta:_0x550bd8}of this['_findSuggestions'](_0x53dd7c,_0x1196('0x115'))){if(!_0x550bd8[_0x1196('0xe6')])continue;if(!this[_0x1196('0x3b')]&&_0x550bd8[_0x1196('0xfe')])continue;if(!Gt(_0x1c5c4f,_0x1732b7))continue;let _0x58c3fb=!0x0;for(const _0x71a182 of _0x1c5c4f['getRanges']())for(const _0x5ad959 of _0x53dd7c)if(!_0x71a182[_0x1196('0xd9')](_0x5ad959)){_0x58c3fb=!0x1;break;}if(_0x58c3fb)return _0x1c5c4f;}const _0x17edde=_0x1449d0(),_0x4f2634=_0x1e1b1b['id'],_0x455285=_0x1196('0x97')+_0x12df69,_0xad99ed=this['_setSuggestionData']({'id':_0x17edde,'type':_0x455285,'createdAt':new Date(),'authorId':_0x4f2634,'attributes':_0x1732b7});for(const _0x134e00 of _0x53dd7c)this[_0x1196('0x11d')](_0x455285,_0x17edde,_0x4f2634,_0x134e00,_0x32d5d1[_0x1196('0x5f')]());return _0xad99ed;}[_0x1196('0x77')](_0x41f430,_0x4740df,_0x472e59=null,_0x393b49={}){if(_0x472e59=_0x472e59||Rt(_0x4740df),_0x41f430[_0x1196('0x1d')])return null;if(_0x1196('0x16e')===this[_0x1196('0x107')]){const _0x3af03b=this[_0x1196('0x47')][_0x1196('0x113')](_0x1196('0x178'),_0x472e59,_0x1196('0x175'));return this[_0x1196('0xb4')](()=>_0x3af03b([_0x41f430],_0x4740df,_0x393b49)),null;}const _0x156ea4=this['editor'][_0x1196('0x35')][_0x1196('0xa8')](_0x1196('0x90'))['me'],_0x4158c8=[];if(_0x1196('0x8a')!==this[_0x1196('0x107')])for(const {suggestion:_0x281c28,meta:_0x1409a0}of this['_findSuggestions'](_0x41f430,_0x1196('0x115')))_0x1409a0[_0x1196('0xe6')]&&!_0x1409a0['isInsideObject']&&_0x4158c8[_0x1196('0xfb')](..._0x281c28[_0x1196('0x8f')]());const _0x4665ca=function(_0x3d2cc0,_0x3b9141){const _0x98a4e8=[];for(const _0x28bec8 of _0x3b9141){const _0x47c28c=_0x3d2cc0['getIntersection'](_0x28bec8);_0x47c28c&&_0x98a4e8['push'](_0x47c28c);}return _0x98a4e8;}(_0x41f430,_0x4158c8),_0x3bc696=function(_0x453983,_0x4ef2e2){const _0xb919dd=[_0x453983];for(const _0x9a9740 of _0x4ef2e2){let _0x47b3b3=0x0;for(;_0x47b3b3<_0xb919dd[_0x1196('0x123')];){const _0xe9f289=_0xb919dd[_0x47b3b3]['getDifference'](_0x9a9740);_0xb919dd[_0x1196('0x60')](_0x47b3b3,0x1,..._0xe9f289),_0x47b3b3+=_0xe9f289[_0x1196('0x123')];}}return _0xb919dd;}(_0x41f430,_0x4158c8);_0x4665ca[_0x1196('0x123')]&&this[_0x1196('0x14c')][_0x1196('0x71')](()=>{for(const _0x4b076c of _0x4665ca){const _0x2bc0fc=this[_0x1196('0x47')][_0x1196('0x113')](_0x1196('0x178'),_0x472e59,'accept');this[_0x1196('0xb4')](()=>_0x2bc0fc([_0x4b076c],_0x4740df,_0x393b49));}});for(const _0x5d5e96 of _0x3bc696){let _0x27836e=null,_0x5ef867=_0x5d5e96[_0x1196('0x55')],_0x192bc7=_0x5d5e96[_0x1196('0x145')];for(const {suggestion:_0xead023,meta:_0x2e3793}of this[_0x1196('0x76')](_0x5d5e96,'formatInline')){if(!_0x2e3793[_0x1196('0xe6')])continue;if(_0xead023[_0x1196('0xdb')]!=_0x472e59)continue;if(!Gt(_0xead023,_0x393b49))continue;const _0x28cc4d=_0xead023['getFirstRange']();if(_0x28cc4d[_0x1196('0xd9')](_0x5d5e96,!0x0))return null;_0x5ef867=_0x5ef867[_0x1196('0xb8')](_0x28cc4d[_0x1196('0x55')])?_0x5ef867:_0x28cc4d[_0x1196('0x55')],_0x192bc7=_0x192bc7['isAfter'](_0x28cc4d[_0x1196('0x145')])?_0x192bc7:_0x28cc4d[_0x1196('0x145')],_0x27836e?_0x28cc4d[_0x1196('0x55')][_0x1196('0xb8')](_0x27836e['getFirstRange']()['start'])?(_0x27836e[_0x1196('0x8b')](),_0x27836e=_0xead023):_0xead023['removeMarkers']():_0x27836e=_0xead023;}const _0x3c92bb=this[_0x1196('0x14c')][_0x1196('0xe4')](_0x5ef867,_0x192bc7);if(_0x27836e)this[_0x1196('0x65')](_0x27836e,_0x3c92bb);else{const _0x5b8e87=_0x1449d0(),_0xab5ae0=_0x156ea4['id'];this[_0x1196('0xa5')]({'id':_0x5b8e87,'type':_0x1196('0x15b')+_0x472e59,'data':_0x4740df,'createdAt':new Date(),'authorId':_0xab5ae0,'attributes':_0x393b49}),this[_0x1196('0x11d')](_0x1196('0x15b')+_0x472e59,_0x5b8e87,_0xab5ae0,_0x3c92bb);}}return null;}[_0x1196('0xd0')](_0x42b0fd,_0x1b9f81,_0x29afcf=[],_0x314e60=null,_0x5f99e1={}){_0x1b9f81['formatGroupId']||(_0x1b9f81[_0x1196('0x15')]=_0x1b9f81['commandName']),_0x1b9f81['multipleBlocks']=_0x42b0fd['is'](_0x1196('0x20')),_0x314e60=_0x314e60||Rt(_0x1b9f81);const _0x5a90db=_0x29afcf[_0x1196('0x14b')](_0x191eb0=>Ut(_0x191eb0,this['_model'])),_0x43f8dd=_0x42b0fd['is'](_0x1196('0x20'))?_0x42b0fd:Ut(_0x42b0fd,this['_model']);if(_0x1196('0x16e')===this['_trackFormatChanges']){const _0x44e01c=this[_0x1196('0x47')][_0x1196('0x113')](_0x1196('0x96'),_0x314e60,_0x1196('0x175'));return this['forceDefaultExecution'](()=>_0x44e01c([_0x43f8dd],_0x1b9f81,_0x5f99e1)),null;}_0x5a90db[_0x1196('0xfb')](_0x43f8dd);let _0x1b431e=!0x0;for(const _0x1d86cd of _0x5a90db)if(!this[_0x1196('0xfc')](_0x1d86cd)){_0x1b431e=!0x1;break;}if(_0x1b431e&&_0x1196('0x8a')!==this[_0x1196('0x107')]){const _0x67a267=this['_suggestionFactory'][_0x1196('0x113')](_0x1196('0x96'),_0x314e60,_0x1196('0x175'));return this[_0x1196('0xb4')](()=>_0x67a267([_0x43f8dd],_0x1b9f81,_0x5f99e1)),null;}let _0x46e921=null,_0x4d01f7=_0x43f8dd['start'],_0xd3d2cb=_0x43f8dd[_0x1196('0x145')];for(const {suggestion:_0x35600a,meta:_0x22a148}of this[_0x1196('0x76')](_0x43f8dd,_0x1196('0x96'))){if(!_0x22a148[_0x1196('0xe6')])continue;if(_0x22a148[_0x1196('0x117')]||_0x22a148[_0x1196('0xfe')]||_0x22a148['isInsideObject'])continue;if(_0x35600a['data'][_0x1196('0x15')]!=_0x1b9f81['formatGroupId'])continue;if(!Gt(_0x35600a,_0x5f99e1))continue;const _0x5ebfb7=_0x35600a[_0x1196('0x8')]();if(_0x35600a[_0x1196('0xdb')]==_0x314e60){if(_0x5ebfb7[_0x1196('0xd9')](_0x43f8dd,!0x0))return null;_0x4d01f7=_0x4d01f7[_0x1196('0xb8')](_0x5ebfb7['start'])?_0x4d01f7:_0x5ebfb7[_0x1196('0x55')],_0xd3d2cb=_0xd3d2cb[_0x1196('0x92')](_0x5ebfb7['end'])?_0xd3d2cb:_0x5ebfb7[_0x1196('0x145')],_0x46e921?_0x5ebfb7[_0x1196('0x55')][_0x1196('0xb8')](_0x46e921[_0x1196('0x8')]()['start'])?(_0x46e921[_0x1196('0x8b')](),_0x46e921=_0x35600a):_0x35600a[_0x1196('0x8b')]():_0x46e921=_0x35600a;}else{const _0x37bba8=_0x43f8dd[_0x1196('0xf6')](_0x5ebfb7);this['_cutOutSuggestionMarker'](_0x35600a,_0x37bba8);}}const _0x4d4168=this[_0x1196('0x3')][_0x1196('0x35')][_0x1196('0xa8')](_0x1196('0x90'))['me'],_0x3d1132=_0x1449d0(),_0x4b8a89=_0x4d4168['id'];if(_0x46e921)return this[_0x1196('0x65')](_0x46e921,this[_0x1196('0x14c')]['createRange'](_0x4d01f7,_0xd3d2cb)),_0x46e921;{const _0x56d92a=this[_0x1196('0xa5')]({'id':_0x3d1132,'type':_0x1196('0x59')+_0x314e60,'data':_0x1b9f81,'createdAt':new Date(),'authorId':_0x4b8a89,'attributes':_0x5f99e1});return this[_0x1196('0x11d')](_0x1196('0x59')+_0x314e60,_0x3d1132,_0x4b8a89,this[_0x1196('0x14c')][_0x1196('0xe4')](_0x4d01f7,_0xd3d2cb)),_0x56d92a;}}[_0x1196('0xe')](_0x475a39,_0x30fc50,_0x55867e=[],_0x2d63d0=null,_0x5449bb={}){_0x30fc50[_0x1196('0x15')]||(_0x30fc50['formatGroupId']=_0x30fc50[_0x1196('0x109')]);const _0x4b9aa2=_0x475a39[0x0];_0x30fc50[_0x1196('0x7e')]=_0x4b9aa2['is']('range'),_0x2d63d0=_0x2d63d0||Rt(_0x30fc50);const _0x32ae15=_0x55867e[_0x1196('0x14b')](_0x3ee49c=>Ut(_0x3ee49c,this[_0x1196('0x14c')])),_0x30ed59=_0x4b9aa2['is'](_0x1196('0x20'))?_0x475a39:_0x475a39[_0x1196('0x14b')](_0x203c66=>Ut(_0x203c66,this[_0x1196('0x14c')]));if('never'===this[_0x1196('0x107')]){const _0x1171f2=this[_0x1196('0x47')]['getSuggestionCallback'](_0x1196('0x96'),_0x2d63d0,_0x1196('0x175'));return this[_0x1196('0xb4')](()=>_0x1171f2(_0x30ed59,_0x30fc50,_0x5449bb)),null;}_0x32ae15[_0x1196('0xfb')](..._0x30ed59);let _0x177fc5=!0x0;for(const _0x40fcd0 of _0x32ae15)if(!this['_rangeIsInLocalUserInsertion'](_0x40fcd0)){_0x177fc5=!0x1;break;}if(_0x177fc5&&_0x1196('0x8a')!==this[_0x1196('0x107')]){const _0x3bb4fc=this[_0x1196('0x47')][_0x1196('0x113')](_0x1196('0x96'),_0x2d63d0,'accept');return this['forceDefaultExecution'](()=>_0x3bb4fc(_0x30ed59,_0x30fc50,_0x5449bb)),null;}const _0x361a14=this['editor'][_0x1196('0x35')]['get'](_0x1196('0x90'))['me'];for(const _0x3784a4 of this[_0x1196('0x1')]()){if(_0x3784a4[_0x1196('0x106')]['id']!=_0x361a14['id'])continue;if('formatBlock'!=_0x3784a4[_0x1196('0x17c')]||_0x3784a4[_0x1196('0x61')]['formatGroupId']!=_0x30fc50[_0x1196('0x15')])continue;if(!Gt(_0x3784a4,_0x5449bb))continue;const _0x1b9519=_0x3784a4[_0x1196('0xdb')]==_0x2d63d0;for(let _0x35c2e7=0x0;_0x35c2e7<_0x30ed59[_0x1196('0x123')];_0x35c2e7++){const _0x4c70b7=_0x30ed59[_0x35c2e7];for(const _0x3ae401 of _0x3784a4['getMarkers']()){const _0x5ddf73=_0x3ae401[_0x1196('0xaa')]();if(_0x4c70b7[_0x1196('0x139')](_0x5ddf73)){_0x1b9519?(_0x30ed59['splice'](_0x35c2e7,0x1),_0x35c2e7--):_0x3784a4[_0x1196('0xe8')](_0x3ae401[_0x1196('0x1b')]);break;}}}}if(0x0==_0x30ed59[_0x1196('0x123')])return null;const _0x5e593d=this['_suggestionFactory'][_0x1196('0x113')]('formatBlock',_0x2d63d0,_0x1196('0xc8'));for(const _0x164d9b of this[_0x1196('0x1')]())if(_0x164d9b[_0x1196('0x106')]['id']==_0x361a14['id']&&'formatBlock'==_0x164d9b[_0x1196('0x17c')]&&_0x164d9b[_0x1196('0x61')][_0x1196('0x15')]==_0x30fc50[_0x1196('0x15')]&&_0x164d9b[_0x1196('0xdb')]==_0x2d63d0&&Gt(_0x164d9b,_0x5449bb)&&(_0x5e593d(_0x164d9b['getRanges'](),_0x30ed59)||_0x5e593d(_0x30ed59,_0x164d9b[_0x1196('0x8f')]()))){for(const _0x4bb94c of _0x30ed59)_0x164d9b[_0x1196('0xc0')](_0x4bb94c);return _0x164d9b;}const _0xfdc263=_0x1449d0(),_0x5c175e=_0x361a14['id'],_0x289e01=_0x1196('0x59')+_0x2d63d0,_0x2b3da5=this[_0x1196('0xa5')]({'id':_0xfdc263,'type':_0x289e01,'data':_0x30fc50,'createdAt':new Date(),'authorId':_0x5c175e,'attributes':_0x5449bb});for(const _0x4ea075 of _0x30ed59)this[_0x1196('0x11d')](_0x289e01,_0xfdc263,_0x5c175e,_0x4ea075,_0x32d5d1[_0x1196('0x5f')]());return _0x2b3da5;}[_0x1196('0x155')](_0x38f5fa,_0x5de77d=null,_0x4fd08e={}){if(_0x38f5fa['isCollapsed'])return null;const _0x3b9947=this[_0x1196('0x3')][_0x1196('0x35')][_0x1196('0xa8')](_0x1196('0x90'))['me'],_0x552968=new _0x284da0(_0x38f5fa[_0x1196('0x55')],_0x38f5fa[_0x1196('0x145')]);for(const {suggestion:_0x40d73a,meta:_0x354853}of this['_findSuggestions'](_0x552968,'insertion'))if(_0x354853[_0x1196('0xe6')]&&!_0x354853[_0x1196('0x117')]){if(_0x40d73a[_0x1196('0x5b')]){const _0x2700c0=_0x40d73a[_0x1196('0x8f')]()[_0x1196('0x168')](_0xf5e506=>_0x1196('0x116')!=_0xf5e506[_0x1196('0x137')][_0x1196('0xf5')]);_0x2700c0[_0x1196('0x10a')](_0x5983c1=>_0x552968[_0x1196('0xd9')](_0x5983c1,!0x0))&&_0x40d73a['discard']();if(_0x2700c0['some'](_0xc91fa5=>_0xc91fa5[_0x1196('0xd9')](_0x552968,!0x0))){const _0x389faf=this[_0x1196('0x47')][_0x1196('0x113')](_0x1196('0x58'),_0x5de77d,'accept');return this[_0x1196('0xb4')](()=>_0x389faf([_0x552968],null,_0x4fd08e)),null;}}else{const _0x298f7f=_0x552968[_0x1196('0xf6')](_0x40d73a[_0x1196('0x8')]());null!==_0x298f7f&&_0x40d73a[_0x1196('0x111')]([_0x298f7f],null,_0x4fd08e);}}if(_0x552968[_0x1196('0x80')](),_0x552968[_0x1196('0x1d')]||_0x1196('0x116')==_0x552968[_0x1196('0x137')][_0x1196('0xf5')])return null;let _0x31ef12=null,_0x3d2c3e=_0x552968[_0x1196('0x55')],_0x56a2f8=_0x552968[_0x1196('0x145')];const _0x54c0ee=this[_0x1196('0x76')](_0x552968,_0x1196('0x58'));for(const {suggestion:_0x4d628f,meta:_0x297c47}of _0x54c0ee){const _0x20e074=this[_0x1196('0x14c')]['createRange'](_0x3d2c3e,_0x56a2f8);if(_0x297c47[_0x1196('0xe6')]&&(this['_mergeNestedSuggestions']||!_0x297c47[_0x1196('0xfe')]&&!_0x297c47[_0x1196('0xa0')])){if(_0x4d628f[_0x1196('0x5b')]){if(!Gt(_0x4d628f,_0x4fd08e))continue;let _0xcdddaa=!0x0;for(const _0x449227 of _0x4d628f[_0x1196('0x8f')]()){if(_0x449227['containsRange'](_0x20e074,!0x0))return _0x4d628f;_0x20e074['containsRange'](_0x449227)||(_0xcdddaa=!0x1);}_0xcdddaa&&_0x4d628f[_0x1196('0xae')]();}else{const _0x303ab6=_0x4d628f[_0x1196('0x8')]();if(_0x303ab6['containsRange'](_0x20e074,!0x0))return _0x4d628f;if(!Gt(_0x4d628f,_0x4fd08e)){_0x20e074[_0x1196('0xd9')](_0x303ab6)?_0x4d628f[_0x1196('0x8b')]():_0x303ab6[_0x1196('0x50')](_0x3d2c3e)?_0x3d2c3e=_0x303ab6['end']:_0x303ab6[_0x1196('0x50')](_0x56a2f8)&&(_0x56a2f8=_0x303ab6[_0x1196('0x55')]);continue;}_0x3d2c3e=_0x3d2c3e[_0x1196('0xb8')](_0x303ab6[_0x1196('0x55')])?_0x3d2c3e:_0x303ab6[_0x1196('0x55')],_0x56a2f8=_0x56a2f8[_0x1196('0x92')](_0x303ab6[_0x1196('0x145')])?_0x56a2f8:_0x303ab6[_0x1196('0x145')],_0x4fd08e=Object['assign']({},_0x4d628f[_0x1196('0x79')]),_0x31ef12?_0x303ab6['start'][_0x1196('0xb8')](_0x31ef12[_0x1196('0x8')]()[_0x1196('0x55')])?(_0x31ef12[_0x1196('0x8b')](),_0x31ef12=_0x4d628f):_0x4d628f[_0x1196('0x8b')]():_0x31ef12=_0x4d628f;}}}if(_0x31ef12)return this[_0x1196('0x65')](_0x31ef12,this[_0x1196('0x14c')][_0x1196('0xe4')](_0x3d2c3e,_0x56a2f8)),_0x31ef12;{const _0x34ee95=_0x1449d0(),_0xe569cf=this[_0x1196('0x14c')]['createRange'](_0x3d2c3e,_0x56a2f8),_0x40d551=_0x3b9947['id'],_0x43e2fa=_0x5de77d?_0x1196('0x75')+_0x5de77d:_0x1196('0x58'),_0x401ede=this['_setSuggestionData']({'id':_0x34ee95,'type':_0x43e2fa,'createdAt':new Date(),'authorId':_0x40d551,'attributes':_0x4fd08e});return this[_0x1196('0x11d')](_0x43e2fa,_0x34ee95,_0x40d551,_0xe569cf),_0x401ede;}}['markMultiRangeDeletion'](_0x11bc22,_0x398410=_0x1196('0x6b'),_0x2e6dc0={}){const _0x73de5e=this[_0x1196('0x3')][_0x1196('0x35')][_0x1196('0xa8')](_0x1196('0x90'))['me'],_0x224267=_0x11bc22['map'](_0x28c416=>new _0x284da0(_0x28c416['start'],_0x28c416[_0x1196('0x145')])),_0x760be6=new Set();for(const {suggestion:_0x1906fa,meta:_0x1ad5c6}of this[_0x1196('0x76')](_0x224267,_0x1196('0x115')))_0x1ad5c6[_0x1196('0xe6')]&&!_0x1ad5c6[_0x1196('0x117')]&&_0x760be6[_0x1196('0x7c')](_0x1906fa);for(const _0xe3b006 of _0x760be6)if(_0xe3b006[_0x1196('0x5b')]){const _0x5a3ba3=_0xe3b006[_0x1196('0x8f')]();(!_0xe3b006[_0x1196('0x79')]||!_0xe3b006[_0x1196('0x79')][_0x1196('0x13d')])&&(_0x5a3ba3[_0x1196('0x10a')](_0x3daf6b=>_0x224267[_0x1196('0x94')](_0x18db4f=>_0x18db4f[_0x1196('0xd9')](_0x3daf6b,!0x0)))&&_0xe3b006[_0x1196('0xae')]());if(_0x224267[_0x1196('0x10a')](_0x3364e8=>_0x5a3ba3['some'](_0x240a3a=>_0x240a3a[_0x1196('0xd9')](_0x3364e8,!0x0)))){const _0x186780=this[_0x1196('0x47')][_0x1196('0x113')]('deletion',_0x398410,_0x1196('0x175'));return this[_0x1196('0xb4')](()=>_0x186780(_0x11bc22,null,_0x2e6dc0)),null;}}else{const _0x34428d=_0xe3b006[_0x1196('0x8')]();_0x224267[_0x1196('0x94')](_0x5a9266=>_0x5a9266[_0x1196('0xd9')](_0x34428d,!0x0))&&_0xe3b006['discard']();if(_0x224267[_0x1196('0x10a')](_0x35d88e=>_0x34428d[_0x1196('0xd9')](_0x35d88e,!0x0))){const _0x4c3b7a=this[_0x1196('0x47')]['getSuggestionCallback'](_0x1196('0x58'),_0x398410,'accept');return this['forceDefaultExecution'](()=>_0x4c3b7a(_0x224267,null,_0x2e6dc0)),null;}}const _0x4950d5=this['_suggestionFactory'][_0x1196('0x113')]('deletion',_0x398410,_0x1196('0xc8'));let _0xc3e663=null;for(const _0x30a1d6 of this[_0x1196('0x1')]())if(_0x30a1d6[_0x1196('0x106')]['id']==_0x73de5e['id']&&_0x30a1d6[_0x1196('0x16a')]&&_0x1196('0x58')==_0x30a1d6[_0x1196('0x17c')]&&_0x30a1d6[_0x1196('0xdb')]==_0x398410&&Gt(_0x30a1d6,_0x2e6dc0)&&(_0x4950d5(_0x30a1d6[_0x1196('0x8f')](),_0x224267)||_0x4950d5(_0x224267,_0x30a1d6[_0x1196('0x8f')]()))){if(_0xc3e663){if(_0x30a1d6[_0x1196('0x104')]&&_0x30a1d6[_0x1196('0x104')][_0x1196('0x123')])continue;for(const _0x47c94f of _0x30a1d6[_0x1196('0x8f')]())_0xc3e663[_0x1196('0x10b')](_0x47c94f)||_0xc3e663['addRange'](_0x47c94f);_0x30a1d6[_0x1196('0x8b')]();}else{_0xc3e663=_0x30a1d6;for(const _0x45040d of _0x224267)_0x30a1d6[_0x1196('0x10b')](_0x45040d)||_0x30a1d6[_0x1196('0xc0')](_0x45040d);}}if(_0xc3e663)return _0xc3e663;_0x760be6[_0x1196('0x8c')]();for(const {suggestion:_0x52be36,meta:_0x5c3be4}of this[_0x1196('0x76')](_0x224267,_0x1196('0x58')))_0x5c3be4[_0x1196('0xe6')]&&(this[_0x1196('0x3b')]||!_0x5c3be4[_0x1196('0xfe')]&&!_0x5c3be4[_0x1196('0xa0')])&&Gt(_0x52be36,_0x2e6dc0)&&_0x760be6['add'](_0x52be36);for(const _0x315cac of _0x760be6){const _0x23d210=_0x315cac[_0x1196('0x8f')]();if(!_0x2e6dc0||!_0x2e6dc0[_0x1196('0x13d')]){if(_0x224267[_0x1196('0x10a')](_0x3a86b5=>_0x23d210['some'](_0x45eb28=>_0x45eb28[_0x1196('0xd9')](_0x3a86b5,!0x0))))return _0x315cac;}(!_0x315cac[_0x1196('0x79')]||!_0x315cac[_0x1196('0x79')][_0x1196('0x13d')])&&(_0x23d210[_0x1196('0x10a')](_0x39b7e8=>_0x224267[_0x1196('0x94')](_0x11ddd4=>_0x11ddd4[_0x1196('0xd9')](_0x39b7e8,!0x0)))&&_0x315cac[_0x1196('0xae')]());}const _0x3d6f16=_0x1449d0(),_0x1b641d=_0x73de5e['id'],_0x5979a2='deletion:'+_0x398410,_0x36c75a=this['_setSuggestionData']({'id':_0x3d6f16,'type':_0x5979a2,'createdAt':new Date(),'authorId':_0x1b641d,'attributes':_0x2e6dc0});for(const _0x15b90d of _0x224267)_0x15b90d['detach'](),_0x15b90d['isCollapsed']||_0x1196('0x116')==_0x15b90d[_0x1196('0x137')]['rootName']||this['_addSuggestionMarker'](_0x5979a2,_0x3d6f16,_0x1b641d,_0x15b90d,_0x32d5d1[_0x1196('0x5f')]());return _0x36c75a;}[_0x1196('0x169')](_0x3e8dfb,_0x1aa7a8,_0x1a7945,_0xa1435a,_0x3b012e){if(_0x3e8dfb[_0x1196('0x1d')])return[];if(_0x1196('0x16e')===this[_0x1196('0x107')])return[];const _0x42cfbe=this[_0x1196('0x3')]['plugins']['get'](_0x1196('0x90'))['me']['id'],_0x36644a=Array[_0x1196('0xcb')](this[_0x1196('0x161')][_0x1196('0xc')]())['filter'](_0x59e03d=>_0x1196('0x12e')==_0x59e03d[_0x1196('0x17c')]&&_0x59e03d[_0x1196('0x61')][_0x1196('0x15f')]==_0x1aa7a8&&_0x59e03d['isIntersectingWithRange'](_0x3e8dfb));if(_0x1196('0x18')===this[_0x1196('0x107')]){const _0x292f82=this[_0x1196('0x76')](_0x3e8dfb,_0x1196('0x115'))['filter'](({meta:_0x229024})=>_0x229024[_0x1196('0xe6')]&&!_0x229024[_0x1196('0xa0')]&&!_0x229024[_0x1196('0x117')])[_0x1196('0x14b')](({suggestion:_0x562c2b})=>_0x562c2b);_0x36644a[_0x1196('0x9d')](..._0x292f82);}const _0x434150=new Map([[_0x3e8dfb,_0x1a7945]]);for(const _0x53df7b of _0x36644a){const _0x33ab55=_0x1196('0x12e')==_0x53df7b[_0x1196('0x17c')]?_0x53df7b[_0x1196('0x61')][_0x1196('0xdd')]:void 0x0,_0x3fa958=_0x53df7b['getFirstRange'](),_0x3fbb37=Array['from'](_0x434150[_0x1196('0x16c')]())[_0x1196('0x11f')](_0x4a832e=>_0x4a832e[_0x1196('0x13e')](_0x3fa958));if(!_0x3fbb37)continue;const _0x3f51f9=_0x3fbb37['getDifference'](_0x3fa958);this['_isBlockAttribute'](_0x1aa7a8)&&_0x1196('0x115')==_0x53df7b[_0x1196('0x17c')]&&0x0!=_0x3f51f9['length']||(_0x434150[_0x1196('0x23')](_0x3fbb37),_0x3f51f9[_0x1196('0x142')](_0x307ba8=>{_0x434150[_0x1196('0x128')](_0x307ba8,_0x1a7945);}),_0x1196('0x115')!=_0x53df7b[_0x1196('0x17c')]&&_0x33ab55!=_0xa1435a&&_0x434150[_0x1196('0x128')](_0x3fbb37[_0x1196('0xf6')](_0x3fa958),_0x33ab55));}const _0x32d86a=[];for(const [_0x463190,_0x1e2ae4]of _0x434150){const _0x288c30=_0x1449d0(),_0x153574={'key':_0x1aa7a8,'oldValue':_0x1e2ae4,'newValue':_0xa1435a};_0x1aa7a8[_0x1196('0x123')]>0x25&&console[_0x1196('0x133')](_0x1196('0x125'),{'key':_0x1aa7a8});const _0xa1559=('attribute:'+(_0x1aa7a8+'|'+Rt({'newValue':_0xa1435a})))[_0x1196('0x63')](0x0,0x3c),_0x34d7d4=this[_0x1196('0xa5')]({'id':_0x288c30,'type':_0xa1559,'data':_0x153574,'createdAt':new Date(),'authorId':_0x42cfbe,'attributes':_0x3b012e});_0x32d86a[_0x1196('0xfb')](_0x34d7d4),this[_0x1196('0x11d')](_0xa1559,_0x288c30,_0x42cfbe,_0x463190);}return _0x32d86a;}[_0x1196('0x122')](_0x182239){this[_0x1196('0x176')][_0x1196('0x7c')](_0x182239);}['_registerInlineAttribute'](_0x1c5920){this['_inlineAttributeKeys'][_0x1196('0x7c')](_0x1c5920);}[_0x1196('0x15e')](_0x5980e1,_0xf000ec=[],_0x24b2e8=[]){this[_0x1196('0xea')](_0x5980e1,(_0x5ef72d,..._0xac8a19)=>{this[_0x1196('0x7')](()=>{_0x5ef72d(..._0xac8a19);});});for(const _0x2e8e97 of _0xf000ec)this[_0x1196('0xbf')](_0x2e8e97);for(const _0x19e388 of _0x24b2e8)this['_registerBlockAttribute'](_0x19e388);}[_0x1196('0x65')](_0x54c0bc,_0x385062){const _0x2f81bd=_0x54c0bc[_0x1196('0x67')]();this['_model'][_0x1196('0x71')](_0x217e3d=>{_0x217e3d[_0x1196('0x10e')](_0x2f81bd,{'range':_0x385062});});}[_0x1196('0x57')](_0x441686){const _0x39871f=_0x441686['id'],_0x48b1a1=this[_0x1196('0x3')][_0x1196('0x45')]['get'](_0x1196('0x102'));this['_commentsRepository']['hasCommentThread'](_0x39871f)||this[_0x1196('0x2')][_0x1196('0x8e')]({'channelId':_0x48b1a1,'threadId':_0x39871f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1961b9=this[_0x1196('0x2')][_0x1196('0x15d')](_0x39871f);_0x1961b9[_0x1196('0xa6')](_0x1196('0x52')),_0x1961b9['isRemovable']=!0x1,_0x441686[_0x1196('0x104')]=_0x1961b9;}['_checkSuggestionCorrectness'](_0x5a5b94,_0x18ecd1,_0x228af1,_0x18be1c){if(_0x5a5b94['type']!=_0x18ecd1||_0x5a5b94[_0x1196('0xdb')]!=_0x228af1||_0x5a5b94[_0x1196('0x173')]['id']!=_0x18be1c)throw this[_0x1196('0x3')][_0x1196('0x12')]('track-changes-suggestion-data-mismatch'),new _0x37a2ae(_0x1196('0x134'),this);}[_0x1196('0x3e')](_0x199aa1,_0xaa30e7){const _0x116328=_0x199aa1['getFirstRange']();if(_0xaa30e7[_0x1196('0x139')](_0x116328))_0x199aa1['removeMarkers']();else{if(_0x116328['containsRange'](_0xaa30e7)){const _0x47f06e=this[_0x1196('0x14c')][_0x1196('0x167')](_0xaa30e7[_0x1196('0x55')][_0x1196('0x39')],_0x1196('0x145'));this[_0x1196('0x65')](_0x199aa1,this[_0x1196('0x14c')][_0x1196('0xe4')](_0x116328[_0x1196('0x55')],_0x47f06e));const _0x58bb18=_0x1449d0(),_0x1bbb4c=_0x199aa1[_0x1196('0x173')]['id'],_0x10877d=_0x199aa1[_0x1196('0x17c')]+':'+_0x199aa1[_0x1196('0xdb')];this[_0x1196('0xa5')]({'id':_0x58bb18,'type':_0x10877d,'createdAt':new Date(),'authorId':_0x1bbb4c,'data':_0x199aa1[_0x1196('0x61')],'attributes':_0x199aa1[_0x1196('0x79')]});const _0x59fae9=this[_0x1196('0x14c')][_0x1196('0x167')](_0xaa30e7['end']['parent'],_0x1196('0xfa')),_0x21b39e=this[_0x1196('0x14c')][_0x1196('0xe4')](_0x59fae9,_0x116328[_0x1196('0x145')]);this[_0x1196('0x11d')](_0x10877d,_0x58bb18,_0x1bbb4c,_0x21b39e);}else{if(_0x116328[_0x1196('0x50')](_0xaa30e7[_0x1196('0x55')])){const _0x1facca=this['_model']['createPositionAt'](_0xaa30e7[_0x1196('0x55')][_0x1196('0x39')],_0x1196('0x145'));this['_setSuggestionRange'](_0x199aa1,this[_0x1196('0x14c')][_0x1196('0xe4')](_0x116328[_0x1196('0x55')],_0x1facca));}else{const _0x47f16f=this[_0x1196('0x14c')][_0x1196('0x167')](_0xaa30e7['end'][_0x1196('0xa7')],'after');this[_0x1196('0x65')](_0x199aa1,this[_0x1196('0x14c')]['createRange'](_0x47f16f,_0x116328['end']));}}}}[_0x1196('0xfc')](_0x58e626){for(const {suggestion:_0x5e5ac1,meta:_0x3ef480}of this['_findSuggestions'](_0x58e626,_0x1196('0x115'))){if(!_0x3ef480[_0x1196('0xe6')])continue;const _0x2ab656=_0x5e5ac1[_0x1196('0x8f')]();for(const _0x4a1ece of _0x2ab656)if(!_0x58e626[_0x1196('0xb7')](_0x4a1ece)[_0x1196('0x123')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1f6144){const _0x5a8da7=this['editor'][_0x1196('0x35')][_0x1196('0xa8')]('Users')[_0x1196('0xc3')](_0x1f6144);if(!_0x5a8da7)throw new _0x37a2ae(_0x1196('0x164'),this);return _0x5a8da7;}[_0x1196('0x6a')](_0xd0a522){const _0xbdda43=this[_0x1196('0x3')]['plugins'][_0x1196('0xa8')]('Users'),_0x41be5a=_0x5501a2(_0x1196('0x165')+_0xd0a522),_0x5f1bab=_0xbdda43[_0x1196('0xc3')](_0x41be5a);return _0x5f1bab||_0xbdda43[_0x1196('0xc2')]({'id':_0x41be5a,'name':_0xd0a522});}['_createSuggestion'](_0x2e3da0,_0x340b52,_0x17e9c3,_0x4092e8,_0x1288f4){const _0xffb7a=this['_getAuthorFromId'](_0x4092e8),_0x597c36=this[_0x1196('0x47')]['buildSuggestion'](_0x2e3da0,_0x340b52,_0x17e9c3,_0xffb7a,_0x1288f4,_0x898544=>this[_0x1196('0x70')](_0x17e9c3,{'attributes':_0x898544}));return this[_0x1196('0x48')](_0x597c36,'accept',()=>{this['_updateSuggestionData'](_0x17e9c3,{'state':_0x1196('0x6e')});},{'priority':'high'}),this[_0x1196('0x48')](_0x597c36,_0x1196('0xae'),()=>{this[_0x1196('0x70')](_0x17e9c3,{'state':_0x1196('0x89')});},{'priority':_0x1196('0xa9')}),this['_suggestions'][_0x1196('0x128')](_0x17e9c3,_0x597c36),this['_suggestionState'][_0x1196('0x128')](_0x597c36,_0x1196('0x2b')),_0x597c36;}[_0x1196('0x17')](_0x41bbce){const _0xe174ce=_0x41bbce[_0x1196('0x88')](':');return{'group':_0xe174ce[0x0],'type':_0xe174ce[0x1],'subType':_0xe174ce['length']>=0x5?_0xe174ce[0x2]:null,'id':_0xe174ce['length']<0x5?_0xe174ce[0x2]:_0xe174ce[0x3],'authorId':_0xe174ce[_0x1196('0x123')]<0x5?_0xe174ce[0x3]:_0xe174ce[0x4],'markerCount':0x6==_0xe174ce['length']?_0xe174ce[0x5]:null};}['_breakSuggestionMarker'](_0x53ab89,_0x16190a,_0x4356ab){const _0x417797=_0x53ab89[_0x1196('0x8')](),_0x269c47=_0x417797['start'],_0x3249eb=_0x417797[_0x1196('0x145')];this[_0x1196('0x65')](_0x53ab89,this[_0x1196('0x14c')][_0x1196('0xe4')](_0x269c47,_0x16190a));const _0x15ea69=_0x1449d0(),_0x4ed3f9=_0x53ab89[_0x1196('0x173')]['id'],_0x4c7e92=_0x53ab89[_0x1196('0x17c')]+(_0x53ab89[_0x1196('0xdb')]?':'+_0x53ab89['subType']:'');this['_setSuggestionData']({'id':_0x15ea69,'type':_0x4c7e92,'createdAt':new Date(),'authorId':_0x4ed3f9,'originalSuggestionId':_0x53ab89['id'],'attributes':_0x53ab89['attributes'],'data':_0x53ab89['data']});const _0xc7509e=Pt(_0x53ab89);(_0x1196('0x96')==_0x53ab89[_0x1196('0x17c')]||_0xc7509e&&this[_0x1196('0xe0')](_0xc7509e))&&(_0x4356ab=this[_0x1196('0x14c')][_0x1196('0x112')](_0x4356ab['parent'])),this[_0x1196('0x11d')](_0x4c7e92,_0x15ea69,_0x4ed3f9,this[_0x1196('0x14c')]['createRange'](_0x4356ab,_0x3249eb));}['_findSuggestions'](_0x5a0292,_0x2a5187=null){const _0x59b613=[],_0x42a068=this['editor'][_0x1196('0x35')][_0x1196('0xa8')](_0x1196('0x90'))['me'];Array[_0x1196('0xb5')](_0x5a0292)||(_0x5a0292=[_0x5a0292]);for(const _0x5a86f0 of this[_0x1196('0x1')]()){if(!_0x5a86f0[_0x1196('0x16a')])continue;if(_0x2a5187&&_0x5a86f0[_0x1196('0x17c')]!=_0x2a5187)continue;let _0x38f439=!0x1;for(const _0x582e96 of _0x5a86f0[_0x1196('0x8f')]()){for(const _0x35f001 of _0x5a0292){const _0x1671da=_0x35f001[_0x1196('0x55')]['isEqual'](_0x582e96['end'])||_0x35f001[_0x1196('0x145')][_0x1196('0x139')](_0x582e96['start']);if(_0x1671da||_0x35f001[_0x1196('0xf6')](_0x582e96)){const _0x34a34b=_0x35f001[_0x1196('0xd9')](_0x582e96)&&Tt(this[_0x1196('0x14c')][_0x1196('0x93')],_0x582e96['start'],_0x35f001),_0x45e51a=_0x582e96[_0x1196('0xd9')](_0x35f001)&&Tt(this[_0x1196('0x14c')][_0x1196('0x93')],_0x35f001['start'],_0x582e96);_0x59b613[_0x1196('0xfb')]({'suggestion':_0x5a86f0,'meta':{'isOwn':_0x42a068==_0x5a86f0[_0x1196('0x106')],'isNextTo':_0x1671da,'isInsideObject':_0x34a34b,'containsRangeInObject':_0x45e51a}}),_0x38f439=!0x0;break;}}if(_0x38f439)break;}}return _0x59b613;}[_0x1196('0x11d')](_0x5060fe,_0x207e60,_0x15c5f3,_0x393a27,_0x1723a7){this[_0x1196('0x14c')][_0x1196('0x71')](_0x428922=>{let _0x450801=_0x1196('0x9')+_0x5060fe+':'+_0x207e60+':'+_0x15c5f3;_0x1723a7&&(_0x450801=_0x450801+':'+_0x1723a7),_0x428922[_0x1196('0xe7')](_0x450801,{'range':_0x393a27,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1196('0x82')](_0x551325){const _0x3011da=_0x551325[_0x1196('0x6f')],_0x11e3c8=_0x551325[_0x1196('0x146')];_0x551325['previous']=null,_0x551325[_0x1196('0x146')]=null,null!=_0x3011da&&(_0x3011da[_0x1196('0x146')]=_0x11e3c8),null!=_0x11e3c8&&(_0x11e3c8[_0x1196('0x6f')]=_0x3011da),_0x1196('0xef')==this[_0x1196('0x81')][_0x1196('0xa8')](_0x551325)&&(this[_0x1196('0x81')][_0x1196('0x128')](_0x551325,'removed'),this['fire'](_0x1196('0xba'),_0x551325,_0x3011da,_0x11e3c8));}['_setSuggestionData'](_0x15c2ad){const _0x262b7f=_0x15c2ad['id'],_0x3f666a=this[_0x1196('0xe5')](_0x15c2ad);if(this[_0x1196('0x14')]&&this['_adapter'][_0x1196('0xa3')]){const _0x40b63f=this[_0x1196('0x3')][_0x1196('0x35')][_0x1196('0xa8')](_0x1196('0x66')),_0x31953a=_0x3f666a[_0x1196('0x6d')],_0x42ed66=_0x3f666a[_0x1196('0xdb')]?_0x3f666a[_0x1196('0x17c')]+':'+_0x3f666a[_0x1196('0xdb')]:_0x3f666a[_0x1196('0x17c')],_0x4ad164=this[_0x1196('0x3')][_0x1196('0x28')],_0x3608ab=_0x40b63f['add'](_0x53252c(_0x4ad164,_0x1196('0xd1'))),_0x1c0ca8={'id':_0x262b7f,'type':_0x42ed66,'hasComments':_0x31953a,'data':_0x15c2ad[_0x1196('0x61')]||null,'originalSuggestionId':_0x15c2ad['originalSuggestionId']||null,'attributes':_0x3f666a[_0x1196('0x79')]};this[_0x1196('0x14')]['addSuggestion'](_0x1c0ca8)[_0x1196('0x8d')](_0x2d89ba=>{_0x3f666a['_saved']=!0x0,_0x40b63f['remove'](_0x3608ab),_0x2d89ba&&_0x2d89ba[_0x1196('0xc4')]&&(this[_0x1196('0x161')][_0x1196('0xa8')](_0x262b7f)['createdAt']=_0x2d89ba['createdAt']);})[_0x1196('0xb3')](_0x2e36b1=>{throw _0x3e1932('error-saving-suggestion-data-suggestion-discarded'),this[_0x1196('0x3')]['model'][_0x1196('0x130')]({'isUndoable':!0x1},()=>{_0x3f666a[_0x1196('0xae')]();}),_0x3f666a['stopListening'](),this[_0x1196('0x161')][_0x1196('0x23')](_0x3f666a['id']),this[_0x1196('0x81')][_0x1196('0x23')](_0x3f666a),_0x2e36b1;});}return _0x3f666a;}[_0x1196('0xe0')](_0xac158f){return this['_blockAttributeKeys']['has'](_0xac158f);}[_0x1196('0x70')](_0x3d23bf,_0x4e2f3c){const _0xfbb96c=this[_0x1196('0x3')]['plugins'][_0x1196('0xa8')](_0x1196('0x66')),_0x451d37=this[_0x1196('0x162')](_0x3d23bf);if(this[_0x1196('0x14')]&&this['_adapter'][_0x1196('0xfd')]){if(_0x451d37[_0x1196('0x118')]){const _0x2f3246=_0xfbb96c[_0x1196('0x7c')](_0x53252c(this[_0x1196('0x3')][_0x1196('0x28')],_0x1196('0xd1')));this['_adapter'][_0x1196('0xfd')](_0x3d23bf,_0x4e2f3c)['then'](()=>{_0xfbb96c[_0x1196('0x171')](_0x2f3246);});}else _0x451d37['on'](_0x1196('0x170'),()=>{this[_0x1196('0x70')](_0x3d23bf,_0x4e2f3c);});}}[_0x1196('0x120')](_0x4f0c3){if(!this[_0x1196('0x14')]||!this[_0x1196('0x14')][_0x1196('0x162')])throw new _0x37a2ae(_0x1196('0x64'),this);return this[_0x1196('0x14')][_0x1196('0x162')](_0x4f0c3);}[_0x1196('0x12b')](_0x2edcbf){const {id:_0x391772,type:_0x5a2a6c,subType:_0x249b86,authorId:_0x3cc489}=this['_splitMarkerName'](_0x2edcbf),_0x27ecb0=this[_0x1196('0x161')][_0x1196('0xa8')](_0x391772)||this[_0x1196('0x16')](_0x5a2a6c,_0x249b86,_0x391772,_0x3cc489,{});switch(this[_0x1196('0x2a')](_0x27ecb0,_0x5a2a6c,_0x249b86,_0x3cc489),this[_0x1196('0x81')][_0x1196('0xa8')](_0x27ecb0)){case _0x1196('0x2b'):this[_0x1196('0x120')](_0x391772)[_0x1196('0x8d')](_0x411248=>{let _0x479400=Promise[_0x1196('0x2d')]();_0x411248[_0x1196('0x6d')]&&(_0x479400=this[_0x1196('0x2')][_0x1196('0x14e')]({'channelId':this['editor']['config'][_0x1196('0xa8')]('collaboration.channelId'),'threadId':_0x391772})),_0x479400[_0x1196('0x8d')](()=>{this[_0x1196('0xe5')](_0x411248)[_0x1196('0x118')]=!0x0;});}),this[_0x1196('0x81')]['set'](_0x27ecb0,_0x1196('0x1e'));break;case _0x1196('0xec'):this[_0x1196('0x70')](_0x391772,{'state':_0x1196('0x157')});case _0x1196('0xde'):this[_0x1196('0x81')][_0x1196('0x128')](_0x27ecb0,_0x1196('0xef')),this['fire'](_0x1196('0x99'),_0x27ecb0);break;case _0x1196('0xef'):this[_0x1196('0x13')](_0x1196('0x141'),_0x27ecb0);}return _0x27ecb0['addMarkerName'](_0x2edcbf),_0x27ecb0;}['_refreshSuggestionsChain'](_0x4c7228){const _0x17b08e=Array[_0x1196('0xcb')](_0x4c7228),_0x131ee4=_0x17b08e[_0x1196('0x168')](_0x332b6f=>_0x1196('0x12e')==_0x332b6f['type']);this[_0x1196('0x98')](_0x131ee4);const _0x4406a9=_0x17b08e[_0x1196('0x168')](_0x5644e2=>!_0x5644e2[_0x1196('0x5b')]&&_0x1196('0x12e')!=_0x5644e2[_0x1196('0x17c')]),_0x1265d9=this[_0x1196('0x1')]({'skipNotAttached':!0x0})[_0x1196('0x168')](_0x1def36=>!_0x1def36[_0x1196('0x5b')]&&_0x1196('0x12e')!=_0x1def36[_0x1196('0x17c')]),_0x3f2bc5=_0x1265d9['filter'](_0x35e8a2=>!_0x4c7228['has'](_0x35e8a2)),_0x5efeba=new Map(_0x1265d9['map'](_0x1ec9f1=>[_0x1ec9f1,this[_0x1196('0x47')][_0x1196('0x113')](_0x1ec9f1[_0x1196('0x17c')],_0x1ec9f1[_0x1196('0xdb')],_0x1196('0x38'))])),_0x225ca4=new Map(_0x1265d9[_0x1196('0x14b')](_0x16e3b1=>[_0x16e3b1,_0x16e3b1[_0x1196('0x8')]()])),_0x353322=new Set(),_0x1c5c8a=new Set();for(let _0x261619=0x0;_0x261619<_0x4406a9[_0x1196('0x123')];_0x261619++)_0x29da4d(_0x4406a9[_0x261619],_0x4406a9,_0x261619+0x1);for(let _0x6bee6f=0x0;_0x6bee6f<_0x4406a9[_0x1196('0x123')];_0x6bee6f++)_0x29da4d(_0x4406a9[_0x6bee6f],_0x3f2bc5,0x0);const _0x3c4b87=new Set();for(let _0x230480=0x0;_0x230480<_0x4406a9[_0x1196('0x123')];_0x230480++){const _0x43976c=_0x4406a9[_0x230480];!_0x1c5c8a[_0x1196('0x138')](_0x43976c)&&_0x43976c['previous']&&(_0x3c4b87[_0x1196('0x7c')](_0x43976c['previous']),_0x43976c[_0x1196('0x6f')][_0x1196('0x146')]===_0x43976c&&(_0x43976c[_0x1196('0x6f')][_0x1196('0x146')]=null),_0x43976c[_0x1196('0x6f')]=null),!_0x353322[_0x1196('0x138')](_0x43976c)&&_0x43976c['next']&&(_0x3c4b87[_0x1196('0x7c')](_0x43976c['next']),_0x43976c[_0x1196('0x146')][_0x1196('0x6f')]===_0x43976c&&(_0x43976c[_0x1196('0x146')][_0x1196('0x6f')]=null),_0x43976c[_0x1196('0x146')]=null);}function _0x29da4d(_0x1c398d,_0xd2cf2c,_0xeb3b40){for(let _0x1e7da6=_0xeb3b40;_0x1e7da6<_0xd2cf2c[_0x1196('0x123')];_0x1e7da6++){const _0x4a668f=_0x31442e(_0x1c398d,_0xd2cf2c[_0x1e7da6]);_0x4a668f&&(_0x4a668f[0x0][_0x1196('0x146')]=_0x4a668f[0x1],_0x4a668f[0x1][_0x1196('0x6f')]=_0x4a668f[0x0],_0x353322[_0x1196('0x7c')](_0x4a668f[0x0]),_0x1c5c8a[_0x1196('0x7c')](_0x4a668f[0x1]));}}function _0x31442e(_0x1f5cd0,_0x1e01ef){if(_0x1f5cd0[_0x1196('0x106')]['id']!==_0x1e01ef[_0x1196('0x106')]['id'])return null;const _0xba0d99=_0x5efeba['get'](_0x1f5cd0)(_0x1f5cd0,_0x1e01ef,_0x225ca4[_0x1196('0xa8')](_0x1f5cd0),_0x225ca4[_0x1196('0xa8')](_0x1e01ef));if(!_0xba0d99)return null;return _0x5efeba['get'](_0x1e01ef)(_0x1f5cd0,_0x1e01ef,_0x225ca4[_0x1196('0xa8')](_0x1f5cd0),_0x225ca4[_0x1196('0xa8')](_0x1e01ef))?_0xba0d99[0x1]['commentThread']&&_0xba0d99[0x1][_0x1196('0x104')]['length']?null:_0xba0d99:null;}_0x3c4b87[_0x1196('0x4a')]&&this['_refreshSuggestionsChain'](_0x3c4b87);}[_0x1196('0x98')](_0x48e413){if(0x0==_0x48e413[_0x1196('0x123')])return;const _0x2b4876=this[_0x1196('0x1')]({'skipNotAttached':!0x0})['filter'](_0x960ab9=>'attribute'==_0x960ab9[_0x1196('0x17c')]&&_0x960ab9['_isDataLoaded']),_0x530434=[],_0x17cf36=new Map();for(const _0x3c3338 of _0x2b4876){const _0x808997=_0x5501a2(_0x3c3338[_0x1196('0x79')]);_0x17cf36[_0x1196('0x138')](_0x808997)||(_0x17cf36[_0x1196('0x128')](_0x808997,_0x530434[_0x1196('0x123')]),_0x530434['push']([]));const _0x65dc4c=_0x17cf36[_0x1196('0xa8')](_0x808997);_0x530434[_0x65dc4c]['push'](_0x3c3338);}!function(){_0x530434[_0x1196('0xcd')]((_0x16df9b,_0x3366bb)=>{const _0xfb912c=_0x16df9b[0x0][_0x1196('0xc4')],_0x1d13f0=_0x3366bb[0x0][_0x1196('0xc4')];return _0xfb912c==_0x1d13f0?_0x16df9b[0x0][_0x1196('0x79')]['groupId']<_0x3366bb[0x0][_0x1196('0x79')][_0x1196('0x13b')]?-0x1:0x1:_0xfb912c<_0x1d13f0?-0x1:0x1;});for(const _0x126a5c of _0x530434)_0x126a5c[_0x1196('0xcd')]((_0x3f33d8,_0x30b1d5)=>_0x3f33d8['id']<_0x30b1d5['id']?-0x1:0x1);}();for(let _0xac83b1=0x0;_0xac83b1<_0x530434[_0x1196('0x123')];_0xac83b1++){if(0x0==_0x530434[_0xac83b1][_0x1196('0x123')])continue;const _0x23c4bb=[];for(let _0x1dd60c=_0xac83b1+0x1;_0x1dd60c<_0x530434['length'];_0x1dd60c++)0x0!=_0x530434[_0x1dd60c][_0x1196('0x123')]&&_0x4568e3(_0x530434[_0xac83b1],_0x530434[_0x1dd60c])&&_0x23c4bb[_0x1196('0xfb')](_0x1dd60c);for(const _0x4e2161 of _0x23c4bb)_0x530434[_0xac83b1]=_0x530434[_0xac83b1][_0x1196('0x131')](_0x530434[_0x4e2161]),_0x530434[_0x4e2161]=[];}for(const _0x5c05f1 of _0x530434)for(let _0x5709a6=0x0;_0x5709a6<_0x5c05f1[_0x1196('0x123')];_0x5709a6++)_0x5c05f1[_0x5709a6]['next']=_0x5c05f1[_0x5709a6+0x1]||null;for(const _0x2b07aa of _0x530434)for(let _0x3adfcf=0x0;_0x3adfcf<_0x2b07aa[_0x1196('0x123')];_0x3adfcf++)_0x2b07aa[_0x3adfcf]['previous']=_0x2b07aa[_0x3adfcf-0x1]||null;function _0x4568e3(_0x27abb7,_0x458764){if(_0x27abb7[0x0][_0x1196('0x106')]!==_0x458764[0x0][_0x1196('0x106')])return!0x1;if(!function(_0x3b258f,_0x546263){if(!_0x3b258f[_0x1196('0x6d')]&&!_0x546263[_0x1196('0x6d')])return!0x0;if(_0x3b258f[_0x1196('0x6d')]&&_0x546263['hasComments'])return!0x1;if(_0x3b258f['hasComments']&&_0x546263[_0x1196('0xc4')]<_0x3b258f[_0x1196('0x104')][_0x1196('0x32')]['get'](0x0)['createdAt'])return!0x0;if(_0x546263[_0x1196('0x6d')]&&_0x3b258f[_0x1196('0xc4')]<_0x546263['commentThread'][_0x1196('0x32')][_0x1196('0xa8')](0x0)[_0x1196('0xc4')])return!0x0;return!0x1;}(_0x27abb7[0x0],_0x458764[0x0]))return!0x1;const _0x23a518=_0x4ce505(_0x27abb7[0x0][_0x1196('0x79')],'groupId'),_0x290082=_0x4ce505(_0x458764[0x0][_0x1196('0x79')],_0x1196('0x13b'));if(!_0x3f301d(_0x23a518,_0x290082))return!0x1;return!!_0x27abb7[_0x1196('0x10a')](_0x3593ae=>_0x458764['some'](_0x3335ba=>_0x3593ae[_0x1196('0x8')]()[_0x1196('0x139')](_0x3335ba[_0x1196('0x8')]())))&&_0x458764[_0x1196('0x10a')](_0x5a3c31=>_0x27abb7[_0x1196('0x94')](_0x530f92=>_0x5a3c31[_0x1196('0x8')]()['isEqual'](_0x530f92[_0x1196('0x8')]())));}}[_0x1196('0x17e')](_0x19b73d){const _0x5ebb7f=Array[_0x1196('0xcb')](_0x19b73d),_0x5c814c=this[_0x1196('0x1')]({'skipNotAttached':!0x0}),_0x2657f0=_0x5c814c[_0x1196('0x168')](_0x491127=>!_0x19b73d[_0x1196('0x138')](_0x491127)),_0x271c22=new Map(_0x5ebb7f[_0x1196('0x14b')](_0x54ced2=>[_0x54ced2,this['_suggestionFactory'][_0x1196('0x113')](_0x54ced2[_0x1196('0x17c')],_0x54ced2[_0x1196('0xdb')],'join')])),_0x68bf32=new Map(_0x5c814c['map'](_0x560522=>[_0x560522,_0x560522[_0x1196('0x8f')]()]));for(let _0x4b7b34=0x0;_0x4b7b34<_0x5ebb7f[_0x1196('0x123')];_0x4b7b34++){if(_0x32a7f0(this,_0x5ebb7f[_0x4b7b34],_0x5ebb7f,_0x4b7b34+0x1))return!0x0;}for(let _0x299d16=0x0;_0x299d16<_0x5ebb7f[_0x1196('0x123')];_0x299d16++){if(_0x32a7f0(this,_0x5ebb7f[_0x299d16],_0x2657f0,0x0))return!0x0;}return!0x1;function _0x32a7f0(_0x5c4145,_0x51096f,_0x44903b,_0x12697e){for(let _0x4dcb0e=_0x12697e;_0x4dcb0e<_0x44903b['length'];_0x4dcb0e++){const _0x4839c6=_0x44903b[_0x4dcb0e];if(_0x4839c6['type']!==_0x51096f[_0x1196('0x17c')]||_0x4839c6[_0x1196('0x106')]['id']!==_0x51096f[_0x1196('0x106')]['id']||_0x4839c6[_0x1196('0xdb')]!==_0x51096f['subType'])continue;if(!Vt(_0x51096f,_0x4839c6))continue;if(_0x1196('0x12e')==_0x51096f[_0x1196('0x17c')]&&_0x51096f['data'][_0x1196('0xdd')]!=_0x4839c6[_0x1196('0x61')][_0x1196('0xdd')])continue;if(_0x1196('0x12e')==_0x51096f[_0x1196('0x17c')]&&_0x5c4145[_0x1196('0xe0')](_0x51096f['data'][_0x1196('0x15f')]))continue;if(_0x1196('0x96')==_0x51096f[_0x1196('0x17c')]){const _0x23ca99=_0x5c4145[_0x1196('0x3')][_0x1196('0xac')],_0x3fcc16=_0x51096f[_0x1196('0x140')]();if(_0x3fcc16&&(_0x23ca99[_0x1196('0x93')]['isObject'](_0x3fcc16)||_0x23ca99[_0x1196('0x93')][_0x1196('0xd6')](_0x3fcc16)))continue;}const _0x52d513=_0x271c22[_0x1196('0xa8')](_0x51096f),_0x32ee57=_0x68bf32['get'](_0x51096f),_0x33e272=_0x68bf32[_0x1196('0xa8')](_0x4839c6),_0x536218=_0x51096f[_0x1196('0x104')]&&_0x51096f[_0x1196('0x104')][_0x1196('0x123')],_0x57f028=_0x4839c6[_0x1196('0x104')]&&_0x4839c6['commentThread'][_0x1196('0x123')];if(!_0x536218&&_0x52d513(_0x33e272,_0x32ee57))return _0x5c4145[_0x1196('0x53')](_0x4839c6,_0x51096f),_0x68bf32[_0x1196('0x23')](_0x51096f),!0x0;if(!_0x57f028&&_0x52d513(_0x32ee57,_0x33e272))return _0x5c4145['_joinSuggestions'](_0x51096f,_0x4839c6),_0x68bf32[_0x1196('0x23')](_0x4839c6),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1dc78b,_0x5a4ec2){if(_0x1dc78b[_0x1196('0x5b')])for(const _0x47ef99 of _0x5a4ec2[_0x1196('0x8f')]())_0x1dc78b[_0x1196('0xc0')](_0x47ef99);else{const _0x44258d=_0x5a4ec2[_0x1196('0x8')]()['end'];this[_0x1196('0x65')](_0x1dc78b,this[_0x1196('0x14c')][_0x1196('0xe4')](_0x1dc78b[_0x1196('0x8')]()[_0x1196('0x55')],_0x44258d));}_0x5a4ec2[_0x1196('0x8b')]();}[_0x1196('0xda')](_0x286577,_0x5e2f4f){const _0x323d6a=_0x286577[_0x1196('0x12f')](_0x1196('0x129'))||_0x286577['startsWith'](_0x1196('0x12e'))?'FORMATTING':_0x286577['toUpperCase']();return _0x53252c(this[_0x1196('0x3')]['locale'],_0x5e2f4f+'_'+_0x323d6a+_0x1196('0x16b'));}[_0x1196('0x154')](){const _0x3737b5=this[_0x1196('0x3')];_0x1d2ead(this['_model'],({left:_0x409da3,entered:_0x6a23e})=>{const _0x508bb1=[];for(const _0x3b1403 of _0x409da3){const {group:_0x8d3765,type:_0x546842}=this[_0x1196('0x17')](_0x3b1403[_0x1196('0x1b')]);if(_0x1196('0x3c')===_0x8d3765){_0x508bb1[_0x1196('0xfb')](this[_0x1196('0xda')](_0x546842,_0x1196('0xe9')));break;}}for(const _0x2abc80 of _0x6a23e){const {group:_0x3d3fcb,type:_0x59a2e0}=this[_0x1196('0x17')](_0x2abc80[_0x1196('0x1b')]);if('suggestion'===_0x3d3fcb){_0x508bb1[_0x1196('0xfb')](this[_0x1196('0xda')](_0x59a2e0,_0x1196('0x108')));break;}}_0x508bb1[_0x1196('0x123')]&&_0x3737b5['ui'][_0x1196('0x56')]['announce'](_0x1196('0x7b'),_0x508bb1[_0x1196('0xc8')]('\x20'));});}[_0x1196('0xd')](_0x28e6d0){if(null!==this[_0x1196('0xbd')])return!0x1;const _0x942b2d=this[_0x1196('0x3')],_0x235d05=_0x942b2d[_0x1196('0xac')][_0x1196('0x69')][_0x1196('0x16d')][_0x1196('0x132')]();if(0x0==_0x235d05[_0x1196('0x123')])return!0x1;const _0xe1b1e8=[],_0x37f1c2=_0x235d05['filter'](_0xc1bc5a=>'attribute'==_0xc1bc5a[_0x1196('0x17c')]),_0x13867f=_0x235d05[_0x1196('0x168')](_0x462f5a=>_0x1196('0x11e')==_0x462f5a[_0x1196('0x17c')]&&_0x1196('0xdc')!=_0x462f5a[_0x1196('0x1b')]),_0x1eb8c7=_0x235d05[_0x1196('0x168')](_0x3fa61f=>_0x1196('0x171')==_0x3fa61f[_0x1196('0x17c')]&&_0x1196('0xdc')!=_0x3fa61f['name']);for(const _0x2da96b of _0x37f1c2)_0xe1b1e8[_0x1196('0xfb')]({'key':_0x2da96b['attributeKey'],'newValue':_0x2da96b[_0x1196('0xe3')],'oldValue':_0x2da96b['attributeOldValue'],'range':_0x118010(_0x2da96b['range'])});for(const _0x1130fb of _0x13867f){const _0x34ab00=_0x1eb8c7[_0x1196('0x11f')](_0x424ea9=>_0x424ea9['position'][_0x1196('0x139')](_0x1130fb[_0x1196('0x9b')]));_0x34ab00&&_0xe1b1e8[_0x1196('0xfb')]({'key':_0x1196('0x27'),'newValue':_0x1130fb[_0x1196('0x1b')],'oldValue':_0x34ab00['name'],'range':_0x942b2d[_0x1196('0xac')][_0x1196('0xf1')](_0x1130fb['position'][_0x1196('0xa4')])});}return 0x0!=_0xe1b1e8['length']&&this[_0x1196('0xc9')](_0x28e6d0,_0xe1b1e8);function _0x118010(_0x138899){return null==_0x138899['end'][_0x1196('0x39')]&&_0x138899[_0x1196('0x145')][_0x1196('0xa7')]==_0x138899['start']['nodeAfter']?Ut(_0x138899[_0x1196('0x55')]['nodeAfter'],_0x942b2d[_0x1196('0xac')]):_0x138899;}}[_0x1196('0xe2')](_0x3682f2){let _0xea7bad=!0x1;const _0x970d72=this[_0x1196('0x3')][_0x1196('0xac')]['document'][_0x1196('0x16d')]['getChangedMarkers']()[_0x1196('0x168')](_0x2deefa=>_0x2deefa['data'][_0x1196('0xce')]&&_0x2deefa[_0x1196('0x1b')][_0x1196('0x12f')]('suggestion:attribute:'));for(const _0x268454 of _0x970d72){const {subType:_0x50e954,id:_0x145212}=this['_splitMarkerName'](_0x268454[_0x1196('0x1b')]),_0x1c080a=_0x50e954['split']('|')[0x0];for(const _0xaa5609 of this[_0x1196('0x1')]({'skipNotAttached':!0x0}))_0xaa5609['id']!=_0x145212&&'attribute'==_0xaa5609[_0x1196('0x17c')]&&_0xaa5609[_0x1196('0x61')]&&_0xaa5609[_0x1196('0x61')][_0x1196('0x15f')]==_0x1c080a&&_0xaa5609[_0x1196('0x8')]()['isIntersecting'](_0x268454[_0x1196('0x61')][_0x1196('0xce')])&&(this['_reduceSuggestionAttributeRange'](_0xaa5609,_0x268454[_0x1196('0x61')]['newRange'],_0x3682f2),_0xea7bad=!0x0);}return _0xea7bad;}[_0x1196('0x7')](_0x45ea05){if(null!==this['_recordAttributeSuggestionsFromVersion'])return void _0x45ea05();const _0x1d534e=this[_0x1196('0x3')];this[_0x1196('0xbd')]=_0x1d534e[_0x1196('0xac')][_0x1196('0x69')][_0x1196('0x6c')],_0x45ea05();const _0x146977=new Map();for(const _0x2af4ac of _0x1d534e[_0x1196('0xac')][_0x1196('0x69')][_0x1196('0x15a')][_0x1196('0x1a')](this['_recordAttributeSuggestionsFromVersion']))if([_0x1196('0xed'),'addAttribute',_0x1196('0x21'),_0x1196('0xbb')][_0x1196('0x3f')](_0x2af4ac[_0x1196('0x17c')])){const _0x207cdf=_0x2af4ac[_0x1196('0x51')],_0x5f53a7=_0x146977[_0x1196('0xa8')](_0x207cdf)||[];_0x5f53a7[_0x1196('0xfb')](_0x2af4ac),_0x146977[_0x1196('0x128')](_0x207cdf,_0x5f53a7);}this[_0x1196('0xbd')]=null;for(const [_0x2f76f6,_0x49ea7f]of _0x146977){const _0x29b9ea=_0x1449d0();_0x1d534e[_0x1196('0xac')][_0x1196('0x130')](_0x2f76f6,_0x4d32f2=>{const _0x5bb1fc=[];for(const _0x36e632 of _0x49ea7f){let _0x3f30d3,_0x4592bc,_0x4f5fae,_0x40c39a;if('rename'==_0x36e632[_0x1196('0x17c')]){const _0x10746e=_0x36e632;_0x3f30d3=Ut(_0x10746e['position'][_0x1196('0xa4')],_0x1d534e[_0x1196('0xac')]),_0x4592bc='$elementName',_0x4f5fae=_0x10746e['newName'],_0x40c39a=_0x10746e['oldName'];}else{const _0x4ea8a0=_0x36e632,_0x2e867b=this[_0x1196('0xe0')](_0x4ea8a0['key']),_0x245569=this[_0x1196('0x40')][_0x1196('0x138')](_0x4ea8a0[_0x1196('0x15f')]);if(!_0x2e867b&&!_0x245569)continue;_0x3f30d3=_0x2e867b?Ut(_0x4ea8a0['range'][_0x1196('0x55')]['nodeAfter'],_0x1d534e['model']):_0x4ea8a0[_0x1196('0x20')],_0x4592bc=_0x4ea8a0['key'],_0x4f5fae='removeAttribute'==_0x36e632[_0x1196('0x17c')]?void 0x0:_0x4ea8a0[_0x1196('0x160')],_0x40c39a=_0x4ea8a0['oldValue'];}this['markAttributeChange'](_0x3f30d3,_0x4592bc,_0x40c39a,_0x4f5fae,{'groupId':_0x29b9ea}),_0x5bb1fc[_0x1196('0xfb')]({'range':_0x3f30d3,'key':_0x4592bc,'newValue':_0x4f5fae,'oldValue':_0x40c39a});}this[_0x1196('0xc9')](_0x4d32f2,_0x5bb1fc);});}}['_reduceExistingSuggestions'](_0x59c3e6,_0x530733){if(0x0==_0x530733[_0x1196('0x123')])return!0x1;let _0x2d0ab7=!0x1;for(const _0x2604d2 of _0x530733){const _0x282747=this[_0x1196('0x76')](_0x2604d2['range'],_0x1196('0x12e'))[_0x1196('0x168')](_0x3dd2f9=>!_0x3dd2f9['meta'][_0x1196('0x117')])[_0x1196('0x14b')](_0x35c4ca=>_0x35c4ca[_0x1196('0x3c')]),_0x32953a=_0x5501a2({'newValue':_0x2604d2['newValue']});_0x282747[_0x1196('0x168')](_0x266a3d=>{const [_0x3ccfb9,_0x44e69b]=_0x266a3d[_0x1196('0xdb')][_0x1196('0x88')]('|');return _0x3ccfb9==_0x2604d2[_0x1196('0x15f')]&&_0x44e69b!=_0x32953a;})['forEach'](_0x3a9fcb=>{this[_0x1196('0x43')](_0x3a9fcb,_0x2604d2[_0x1196('0x20')],_0x59c3e6),_0x2d0ab7=!0x0;});}return _0x2d0ab7;}[_0x1196('0x43')](_0x4729cb,_0x335e8f,_0xacd53d){const _0x1d811b=_0x4729cb[_0x1196('0x8')]()[_0x1196('0xb7')](_0x335e8f);0x0!==_0x1d811b[_0x1196('0x123')]?0x1!==_0x1d811b[_0x1196('0x123')]?this[_0x1196('0x16f')](_0x4729cb,_0x335e8f[_0x1196('0x55')],_0x335e8f[_0x1196('0x145')]):this['_setSuggestionRange'](_0x4729cb,_0x1d811b[0x0]):_0xacd53d[_0x1196('0xe8')](_0x4729cb[_0x1196('0x67')]());}}class Bt{constructor(_0x3f5ece){this['_editor']=_0x3f5ece,this[_0x1196('0x14c')]=_0x3f5ece[_0x1196('0xac')],this['_customCallbacks']=new Map(),this[_0x1196('0x110')]=new Map(),this[_0x1196('0x1c')]();}[_0x1196('0xc5')](_0x32519f,_0x1225c4,_0x2941dc,_0x631e7a,_0x30b0fc,_0x1d5cbc){return new _0x32d5d1(this[_0x1196('0x14c')],{'type':_0x32519f,'subType':_0x1225c4,'id':_0x2941dc,'author':_0x631e7a,'creator':_0x631e7a,'attributes':_0x30b0fc,'onAttributesChange':_0x1d5cbc,'onAccept':(..._0x519947)=>this[_0x1196('0x113')](_0x32519f,_0x1225c4,_0x1196('0x175'))(..._0x519947),'onDiscard':(..._0x5c5568)=>this[_0x1196('0x113')](_0x32519f,_0x1225c4,_0x1196('0xae'))(..._0x5c5568)});}['registerCustomCallback'](_0x5ceaa4,_0x3c8733,_0x153db1,_0x39f482){const _0x2281de=_0x5ceaa4+':'+_0x3c8733+':'+_0x153db1;this[_0x1196('0xc1')][_0x1196('0x128')](_0x2281de,_0x39f482);}[_0x1196('0x113')](_0x241b21,_0x2b87d8,_0x3bb9b1){const _0x30209a=_0x241b21+':'+_0x2b87d8+':'+_0x3bb9b1;return this[_0x1196('0xc1')][_0x1196('0xa8')](_0x30209a)||this[_0x1196('0x110')][_0x1196('0xa8')](_0x241b21+':'+_0x3bb9b1);}[_0x1196('0x1c')](){const _0xf6427c=()=>!0x1,_0x3e3258=_0x1a294c=>{_0x1a294c[_0x1196('0xcd')]((_0x1f67cd,_0x52fbc7)=>_0x1f67cd['start'][_0x1196('0xb8')](_0x52fbc7[_0x1196('0x55')])?0x1:-0x1),this[_0x1196('0x14c')][_0x1196('0x71')](_0x5acae2=>{for(const _0x451844 of _0x1a294c){let _0x11037b;_0x11037b=_0x451844[_0x1196('0x145')][_0x1196('0x127')]&&_0x451844['end']['parent']==_0x451844[_0x1196('0x55')][_0x1196('0xa4')]?_0x5acae2[_0x1196('0x156')](_0x451844[_0x1196('0x55')][_0x1196('0xa4')],'on'):_0x5acae2[_0x1196('0x156')](_0x451844),this[_0x1196('0x14c')][_0x1196('0x46')](_0x11037b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x35761b=(_0x2d4670,_0x7b574d)=>{_0x7b574d&&this[_0x1196('0x14c')][_0x1196('0x71')](_0x3bc145=>{const {commandName:_0x9157c3,commandParams:_0x547698=[]}=_0x7b574d,_0x28be53=_0x2d4670['map'](_0x5c0b11=>(xt(_0x5c0b11)&&(_0x5c0b11=this[_0x1196('0x14c')][_0x1196('0xe4')](_0x5c0b11['end'])),_0x5c0b11))['filter'](_0x1821fa=>_0x1196('0x116')!==_0x1821fa['root'][_0x1196('0xf5')]);if(_0x28be53[_0x1196('0x123')]<0x1)return;const _0x5e95c9=Array['from'](this[_0x1196('0x14c')][_0x1196('0x69')][_0x1196('0xd5')]['getRanges']())[_0x1196('0x14b')](_0x2e8144=>_0x284da0['fromRange'](_0x2e8144));_0x3bc145[_0x1196('0xd8')](_0x28be53);for(const _0x1cbbec of this['_editor'][_0x1196('0xd4')]['commands']())_0x1cbbec['refresh']();_0x547698[_0x1196('0xfb')]({'forceDefaultExecution':!0x0}),this[_0x1196('0x26')]['execute'](_0x9157c3,..._0x547698);const _0x4ccffc=_0x5e95c9[_0x1196('0x168')](_0x322874=>_0x1196('0x116')!=_0x322874[_0x1196('0x137')][_0x1196('0xf5')]);_0x4ccffc['length']>0x0&&_0x3bc145[_0x1196('0xd8')](_0x4ccffc);for(const _0xb4bf70 of _0x5e95c9)_0xb4bf70[_0x1196('0x80')]();});},_0xbfca62=(_0x1c80e6,_0x1a95b5)=>0x1==_0x1c80e6[_0x1196('0x123')]&&0x1==_0x1a95b5[_0x1196('0x123')]&&_0x1c80e6[0x0][_0x1196('0x145')]['isEqual'](_0x1a95b5[0x0][_0x1196('0x55')]),_0x150703=(_0x5417cc,_0x895588,_0x266d06,_0x208c05)=>Ot(_0x5417cc,_0x895588,_0x266d06,_0x208c05,this[_0x1196('0x14c')])?[_0x5417cc,_0x895588]:Ot(_0x895588,_0x5417cc,_0x208c05,_0x266d06,this[_0x1196('0x14c')])?[_0x895588,_0x5417cc]:null;this['_defaultCallbacks']['set'](_0x1196('0xa'),_0xf6427c),this['_defaultCallbacks'][_0x1196('0x128')](_0x1196('0xca'),_0x3e3258),this[_0x1196('0x110')][_0x1196('0x128')]('insertion:join',_0xbfca62),this['_defaultCallbacks'][_0x1196('0x128')]('insertion:chain',_0x150703),this['_defaultCallbacks'][_0x1196('0x128')](_0x1196('0x10c'),_0x3e3258),this[_0x1196('0x110')][_0x1196('0x128')](_0x1196('0x4b'),_0xf6427c),this[_0x1196('0x110')][_0x1196('0x128')](_0x1196('0x9a'),_0xbfca62),this[_0x1196('0x110')]['set'](_0x1196('0x12d'),_0x150703),this[_0x1196('0x110')][_0x1196('0x128')](_0x1196('0x143'),_0x35761b),this[_0x1196('0x110')][_0x1196('0x128')](_0x1196('0x17f'),_0xf6427c),this['_defaultCallbacks'][_0x1196('0x128')](_0x1196('0x119'),_0xbfca62),this[_0x1196('0x110')][_0x1196('0x128')]('formatInline:chain',_0xf6427c),this[_0x1196('0x110')]['set'](_0x1196('0xcc'),_0x35761b),this[_0x1196('0x110')][_0x1196('0x128')](_0x1196('0x149'),_0xf6427c),this[_0x1196('0x110')][_0x1196('0x128')](_0x1196('0x30'),_0xbfca62),this['_defaultCallbacks'][_0x1196('0x128')](_0x1196('0x0'),_0xf6427c),this[_0x1196('0x110')][_0x1196('0x128')]('attribute:accept',_0xf6427c),this[_0x1196('0x110')]['set'](_0x1196('0x72'),(_0x3a718d,_0x50166f)=>{if(!_0x50166f)return;const _0x43349f=this[_0x1196('0x26')][_0x1196('0x35')][_0x1196('0xa8')](p);this[_0x1196('0x14c')][_0x1196('0x71')](_0x594872=>{if(_0x1196('0x27')==_0x50166f['key'])for(const _0x5316ea of _0x3a718d){const _0x41df41=_0x5316ea[_0x1196('0x55')]['nodeAfter'],_0x3741c4=_0x50166f['oldValue'];_0x594872[_0x1196('0xed')](_0x41df41,_0x3741c4);}else{if(_0x43349f[_0x1196('0xe0')](_0x50166f[_0x1196('0x15f')]))for(const _0x5f4224 of _0x3a718d)void 0x0!==_0x50166f[_0x1196('0xdd')]?_0x594872[_0x1196('0x85')](_0x50166f[_0x1196('0x15f')],_0x50166f[_0x1196('0xdd')],_0x5f4224[_0x1196('0x55')]['nodeAfter']):_0x594872[_0x1196('0x21')](_0x50166f[_0x1196('0x15f')],_0x5f4224['start'][_0x1196('0xa4')]);else for(const _0x5bab3e of _0x3a718d)_0x50166f['oldValue']?_0x594872[_0x1196('0x85')](_0x50166f[_0x1196('0x15f')],_0x50166f[_0x1196('0xdd')],_0x5bab3e):_0x594872[_0x1196('0x21')](_0x50166f[_0x1196('0x15f')],_0x5bab3e);}});}),this[_0x1196('0x110')][_0x1196('0x128')](_0x1196('0x10d'),_0xbfca62);}}function Tt(_0x5f0e62,_0x21e5e3,_0x5e9efd){for(const _0x2c0369 of _0x21e5e3[_0x1196('0xa7')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2c0369[_0x1196('0x137')]==_0x2c0369)return!0x1;if(!_0x5e9efd['containsItem'](_0x2c0369))return!0x1;if(_0x5f0e62[_0x1196('0x22')](_0x2c0369)||_0x5f0e62[_0x1196('0xd6')](_0x2c0369))return!0x0;}return!0x1;}function xt(_0x20b4bf){return _0x20b4bf[_0x1196('0x145')]['parent']==_0x20b4bf[_0x1196('0x55')][_0x1196('0xa4')]&&_0x20b4bf['end'][_0x1196('0x13a')];}function Et(_0x3af5d5,_0x903f6e,_0x3866e9,_0x31f5c9){const _0x54a3dd=_0x5ddabd=>!_0x5ddabd[_0x1196('0x147')]['is'](_0x1196('0x3d'))&&!_0x31f5c9['isObject'](_0x5ddabd[_0x1196('0x147')]),_0x38c865=_0x3af5d5[_0x1196('0x55')]['getLastMatchingPosition'](_0x54a3dd),_0x14b69c=_0x3af5d5[_0x1196('0x145')][_0x1196('0xc6')](_0x54a3dd,{'direction':_0x1196('0x7d')});return(!_0x3af5d5[_0x1196('0x55')]['isEqual'](_0x38c865)||!_0x3af5d5['end'][_0x1196('0x139')](_0x14b69c))&&(_0x38c865['isBefore'](_0x14b69c)?_0x3866e9[_0x1196('0x10e')](_0x903f6e,{'range':_0x3866e9[_0x1196('0xe4')](_0x38c865,_0x14b69c)}):_0x3866e9[_0x1196('0xe8')](_0x903f6e),!0x0);}function Rt(_0x44d9ee){return _0x5501a2(_0x44d9ee);}function jt(_0x1d60ea){const _0x533676=_0x1d60ea[_0x1196('0x55')]['nodeAfter'];return _0x533676&&_0x533676['is'](_0x1196('0x36'));}function Ut(_0x78ea9,_0x5750f3){const _0x2489b1=_0x5750f3[_0x1196('0x93')][_0x1196('0x22')](_0x78ea9)||_0x5750f3[_0x1196('0x93')][_0x1196('0x4d')](_0x78ea9);return _0x5750f3['createRange'](_0x5750f3[_0x1196('0x167')](_0x78ea9,'before'),_0x2489b1?_0x5750f3[_0x1196('0x4f')](_0x78ea9):_0x5750f3['createPositionAt'](_0x78ea9,_0x1196('0x145')));}function Ot(_0x553f2b,_0x57c160,_0x34b7c8,_0xeb028c,_0x34c19a){if(!Vt(_0x553f2b,_0x57c160))return!0x1;if(_0x34b7c8[_0x1196('0x145')][_0x1196('0x139')](_0xeb028c[_0x1196('0x55')]))return!0x0;if(_0x553f2b[_0x1196('0x17c')]!=_0x57c160[_0x1196('0x17c')])return!0x1;if(!_0x34b7c8['end'][_0x1196('0x5a')](_0xeb028c[_0x1196('0x55')]))return!0x1;const _0x44b857=_0x34c19a[_0x1196('0xe4')](_0x34b7c8['end'],_0xeb028c[_0x1196('0x55')])[_0x1196('0xe1')]();for(const _0x1f680f of _0x44b857)if(['elementStart',_0x1196('0xa1')][_0x1196('0x3f')](_0x1f680f[_0x1196('0x17c')])&&_0x34c19a[_0x1196('0x93')][_0x1196('0xd6')](_0x1f680f[_0x1196('0x147')]))return!0x1;return!0x0;}function Vt(_0x17d253,_0x73480e){return!(!_0x17d253[_0x1196('0x49')]||!_0x73480e[_0x1196('0x49')])&&_0x3f301d(_0x17d253[_0x1196('0x79')],_0x73480e[_0x1196('0x79')]);}function Gt(_0x37c75c,_0x5d5da7){const _0x23bfeb=Ft(_0x37c75c['attributes']),_0x2056fe=Ft(_0x5d5da7);if(!_0x37c75c[_0x1196('0x49')])return!0x1;for(const _0x286799 of Object[_0x1196('0x16c')](_0x2056fe))if(!_0x3f301d(_0x23bfeb[_0x286799],_0x2056fe[_0x286799]))return!0x1;return!0x0;}function Ft(_0x2feabf){const _0x12494a=Object['assign']({},_0x2feabf);return delete _0x12494a[_0x1196('0x13d')],delete _0x12494a[_0x1196('0xeb')],_0x12494a;}function Pt(_0x20ebd7){return'attribute'==_0x20ebd7[_0x1196('0x17c')]?_0x20ebd7['subType']['split']('|')[0x0]:null;}
|
|
23
|
+
const _0x205d=['CommentsRepository','insertion:discard','originalSuggestionId','removeMarkers','documentSelection','assign','editing','delete','containerElement','createPositionAfter','_createSuggestion','isNextTo','_descriptionFactory','end','requires','hasCommentThread','removed','key','_reduceSuggestionAttributeRange','locale','change:data','data-suggestion','getAttribute','chain','isUndo','getShiftedBy','markMultiRangeBlockFormat','_findSuggestions','removeMarker','consumable','editingDowncast','insertion:','format','substr','addMarker','stopListening','trackChanges','rootName','high','mapper','markers','_editor','getChangedMarkers','createdAt','normal','ck-suggestion-marker-formatInline','_enabledCommands','insertion:chain','forEach','formatInline:','length','announce','nodeAfter','toViewElement','parent','deletion:accept','values','suggestion:attribute:','containsRangeInObject','addHighlight','unbindElementFromMarkerName','_inlineAttributeKeys','_getMarkerAnnouncementText','plugins','update:suggestion','_setSuggestionData','enableReadOnlyMode','suggestionChanged','getDifference','enableCommand','formatBlock:','_reduceExistingSuggestions','addMarker:suggestion:formatBlock','from','join','markInlineFormat','multipleBlocks','rejected','attribute','_saved','open','_setSuggestionRange','_breakSuggestionMarker','keys','name','trackChanges.mergeNestedSuggestions','isEqual','track-changes-enable-command-twice','$graveyard','acceptSuggestion','newRange','_trackFormatChanges','_registerBlockAttribute','_registerInlineAttribute','_getAuthorFromId','_SUGGESTION_ANNOUNCEMENT','isDocumentOperation','stop','find','some','getChanges','PendingActions','isExternal','filter','start','attributeOldValue','isOwn','return','isInsideObject','getAllAdjacentSuggestions','forward','formatBlock:join','suggestionLoaded','upcast','size','remove','isCollapsed','_blockAttributeKeys','formatGroupId','acceptSelectedSuggestions','_recordAttributeSuggestionsFromVersion','formatInline:discard','oldValue','$text','groupId','addSuggestionData','highest','formatBlock','push','isIntersecting','startsWith','_checkSuggestionCorrectness','notReady','ready','lowest','conversion','never','howMany','addSuggestion','_recordAttributeChanges','accept','_isForcedDefaultExecutionBlock','getUser','reconvertMarker','deletion:join','commandName','_addSuggestionMarker','markerToHighlight','markerReady','group','marker-count','TrackChangesEditing','always','schema','_removeSuggestion','substring','getIntersection','fromCharCode','includes','_suggestionFactory','discardSuggestion','adapter','execute','every','attribute:discard','collaboration.channelId','isAtEnd','getMultiRangeId','containsRange','enqueueChange','batch','markMultiRangeDeletion','previous','subType','isIntersectingWithRange','editor','$textProxy','changeAttribute','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.','showSuggestionHighlights','_isBlockAttribute','_refreshAttributeSuggestionsChain','change:activeMarkers','suggestion','_mergeNestedSuggestions','accepted','after','track-changes-user-not-found','warn','config','low','markInsertion','multi','createPositionAt','createRange','deletion:','version','buildSuggestion','isLimit','insertContent','addAttribute','document','track-changes-suggestion-data-mismatch','removeAttribute','_updateSuggestionData','elementStart','skipNestingCheck','addCommentThread','getCommentThread','isLocal','getSuggestions','set','forceDefaultExecution','elementToElement','isInContent','getContainedElement','comments','get','formatInline:join','selection','attributeNewValue','commentThread','element','_joinSuggestions','nodeBefore','insertion:accept','elementEnd','map','ck-suggestion-marker-','addRange','then','_processAttributeChanges','catch','setAttribute','bindElementToMarker','addComment','addClass','type','PENDING_ACTION_SUGGESTION','item','getSuggestion','isObject','tablePasteChainId','markAttributeChange','removeMarker:suggestion:formatBlock','removeClass','removeMarker:suggestion:attribute','addMarkerName','discard','position','ck-suggestion-marker--active','attributes','track-changes-adapter-already-set','default','_isDataLoaded','has','_joinWithAdjacentSuggestions','_handleNewSuggestionMarker','authoredAt','_splitMarkerName','_commentsRepository','attributeKey','_getSuggestionData','trackChangesCommand','_enableDefaultAttributesIntegration','isAfter','next','attribute:accept','_customCallbacks','_defaultCallbacks','splice','hasComments','getFirstRange','range','isBefore','differ','detach','getItems','hasSuggestion','addMarker:suggestion:attribute','createRangeOn','createRangeIn','markerToData','newValue','writer','value','_registerDefaultCallbacks','model','for','insertion','_onDiscard','getFirstMarker','add','_refreshSuggestionsChain','sort','ck-suggestion-marker','trackChanges.trackFormatChanges','listenTo','formatBlock:discard','isRemovable','getAncestors','formatInline','rename','change:_saved','containsItem','activeMarkers','refresh','_getExternalAuthor','$elementName','markBlockFormat','isMultiRange','addUser','clear','_initAriaMarkerChangeAnnouncements','_cutOutSuggestionMarker','discardSelectedSuggestions','consume','rethrowUnexpectedError','split','getRanges','commands','_suggestions','_adapter','getSuggestionCallback','setTo','authorName','_model','creator','_addThreadToSuggestion','getCustomProperty','author','Users','pop','fetchCommentThread','deletion:chain','getLastMatchingPosition','widget','markerName','updateSuggestion','unbind','updateMarker','acceptAllSuggestions','options','define','isArray','_processAttributeSuggestions','track-changes-adapter-missing-getsuggestion','_rangeIsInLocalUserInsertion','createElement','fire','unshift','applyOperation','markDeletion','data','_suggestionState','ariaLiveAnnouncer','registerPostFixer','toJSON','suggestion:','getWalker','head','fromRange','attribute:','discardAllSuggestions','isBlock','suggestion-type','ck-suggestion-marker-formatBlock','meta','deleteContent','root','removeComment','deletion:discard','backward','createSelection','getOperations','deletion','setSelection','insert','move','dataDowncast','@external','change'];(function(_0x28bf39,_0x205d0e){const _0x23ae50=function(_0x2dc45f){while(--_0x2dc45f){_0x28bf39['push'](_0x28bf39['shift']());}};_0x23ae50(++_0x205d0e);}(_0x205d,0x10f));const _0x23ae=function(_0x28bf39,_0x205d0e){_0x28bf39=_0x28bf39-0x0;let _0x23ae50=_0x205d[_0x28bf39];return _0x23ae50;};import{Plugin as _0x216f6f,PendingActions as _0x405604}from'ckeditor5/src/core';import{LiveRange as _0x384459}from'ckeditor5/src/engine';import{CKEditorError as _0x3918ce,uid as _0x4e6c1e,priorities as _0x40a7cb,logWarning as _0x444db6}from'ckeditor5/src/utils';import{toWidget as _0x2e7c38}from'ckeditor5/src/widget';import{Users as _0x44bfef,hashObject as _0x39bb41,surroundingMarkersDetector as _0x1dcf72}from'ckeditor5-collaboration/src/collaboration-core';import _0xb55a6b from'./commands/trackchangescommand';import _0x556d61 from'./commands/acceptsuggestioncommand';import _0x5fa051 from'./commands/discardsuggestioncommand';import _0x223d2a from'./commands/executeonallsuggestionscommand';import _0x215d49 from'./commands/executeonselectedsuggestionscommand';import _0x3d27b9 from'./suggestion';import _0x470454 from'./suggestiondescriptionfactory';import _0x140010 from'./integrations/aiassistant';import _0xadfb14 from'./integrations/alignment';import _0x39fcf2 from'./integrations/basicstyles';import _0xbc95d4 from'./integrations/blockquote';import _0x3c4cee from'./integrations/ckbox';import _0x143901 from'./integrations/codeblock';import _0x2f0bdc from'./integrations/comments';import _0x5043ca from'./integrations/deletecommand';import _0x282d6d from'./integrations/documentlist';import _0x414e8c from'./integrations/documentlistproperties';import _0x1865ac from'./integrations/entercommand';import _0x197c10 from'./integrations/findandreplace';import _0x528686 from'./integrations/font';import _0xbb737b from'./integrations/formatpainter';import _0x4cd5a4 from'./integrations/heading';import _0x21595d from'./integrations/highlight';import _0x545042 from'./integrations/horizontalline';import _0x311469 from'./integrations/htmlembed';import _0x362682 from'./integrations/image';import _0x2ae6b5 from'./integrations/imagereplace';import _0x406963 from'./integrations/imagestyle';import _0x1a80f4 from'./integrations/importword';import _0x586307 from'./integrations/indent';import _0x31f4ab from'./integrations/inputcommand';import _0x4dece8 from'./integrations/link';import _0x36c70b from'./integrations/list';import _0x3230df from'./integrations/listproperties';import _0x24ec03 from'./integrations/mediaembed';import _0x48a527 from'./integrations/mention';import _0x16a9c8 from'./integrations/pagebreak';import _0x498b54 from'./integrations/paragraph';import _0x17abce from'./integrations/removeformat';import _0x1e018f from'./integrations/restrictededitingmode';import _0x373dd4 from'./integrations/shiftentercommand';import _0x41ca50 from'./integrations/standardeditingmode';import _0x374716 from'./integrations/style';import _0x543aa8 from'./integrations/table';import _0x1ac2f7 from'./integrations/tablemergesplit';import _0x47b6a2 from'./integrations/tableheadings';import _0x17ed86 from'./integrations/tableclipboard';import _0x29398c from'./integrations/tablecolumnresize';import _0x37b38d from'./integrations/template';import _0x1348a5 from'./integrations/tableofcontents';import _0x5774dd from'./integrations/title';import _0x19e092 from'./integrations/undo';import _0x2c6ae8 from'./integrations/tablecaption';import _0x4547fc from'./integrations/tableproperties';import{getTranslation as _0x1d5e1f}from'./utils/common-translations';import{isEqual as _0xaf05e6,omit as _0x1b4521}from'lodash-es';export const renameAttributeKey=_0x23ae('0x25');export default class p extends _0x216f6f{static get[_0x23ae('0x7d')](){return['CommentsRepository',_0x44bfef,_0x405604,_0x140010,_0xadfb14,_0x39fcf2,_0xbc95d4,_0x3c4cee,_0x143901,_0x2f0bdc,_0x5043ca,_0x282d6d,_0x414e8c,_0x1865ac,_0x197c10,_0x528686,_0xbb737b,_0x4cd5a4,_0x21595d,_0x545042,_0x311469,_0x362682,_0x406963,_0x2ae6b5,_0x1a80f4,_0x586307,_0x31f4ab,_0x4dece8,_0x36c70b,_0x3230df,_0x24ec03,_0x48a527,_0x16a9c8,_0x498b54,_0x17abce,_0x1e018f,_0x373dd4,_0x41ca50,_0x374716,_0x543aa8,_0x1ac2f7,_0x47b6a2,_0x2c6ae8,_0x17ed86,_0x29398c,_0x1348a5,_0x4547fc,_0x37b38d,_0x5774dd,_0x19e092];}static get['pluginName'](){return _0x23ae('0x106');}constructor(_0x548b4b){function _0x41419c(_0x5d13c1){return _0x5d13c1['map'](_0x5490fd=>String[_0x23ae('0x10c')](_0x5490fd))[_0x23ae('0xb9')]('');}super(_0x548b4b),this[_0x23ae('0xe7')]=null,this['set'](_0x23ae('0x22'),[]),this['on'](_0x23ae('0x125'),(_0x16a4e2,_0x5f1324,_0xcd9fc9,_0x204ea5)=>{this[_0x23ae('0x37')]['change'](()=>{for(const _0x3e0659 of[..._0x204ea5,..._0xcd9fc9])this[_0x23ae('0x37')]['markers'][_0x23ae('0x16e')](_0x3e0659)&&_0x548b4b[_0x23ae('0x75')][_0x23ae('0xfe')](_0x3e0659);});}),this[_0x23ae('0x7b')]=new _0x470454(this[_0x23ae('0x11e')]['model'][_0x23ae('0x108')],this['editor'][_0x23ae('0x82')]),this['_adapter']=null,this[_0x23ae('0x10e')]=new Bt(this[_0x23ae('0x11e')]),this[_0x23ae('0x32')]=new Map(),this['_commentsRepository']=_0x548b4b[_0x23ae('0xae')][_0x23ae('0x148')](_0x23ae('0x6f')),this[_0x23ae('0x9d')]=new Set(),this[_0x23ae('0x37')]=this[_0x23ae('0x11e')][_0x23ae('0x10')],this[_0x23ae('0x53')]=new WeakMap(),this[_0x23ae('0xfc')]=!0x1,this['_blockAttributeKeys']=new Set([_0x23ae('0x25')]),this[_0x23ae('0xac')]=new Set(),_0x548b4b[_0x23ae('0x12c')]['define']('trackChanges.trackFormatChanges',_0x23ae('0x16c')),this[_0x23ae('0xca')]=_0x548b4b[_0x23ae('0x12c')][_0x23ae('0x148')](_0x23ae('0x19')),_0x548b4b[_0x23ae('0x12c')][_0x23ae('0x48')](_0x23ae('0xc4'),!0x0),this['_mergeNestedSuggestions']=_0x548b4b[_0x23ae('0x12c')]['get'](_0x23ae('0xc4')),this[_0x23ae('0x176')]=new _0xb55a6b(_0x548b4b,this['_enabledCommands']),this[_0x23ae('0x2a')](),this[_0x41419c([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x41419c([0x34,0x30,0x34,0x36,0x32,0x34,0x32,0x36]);}['init'](){const _0x3cf3e5=this[_0x23ae('0x11e')],_0x39866d=(_0x57bdf6,_0xffad8e)=>{if(_0x23ae('0xbd')!=_0x57bdf6)return _0x23ae('0x153')+_0x57bdf6;const _0x1a74c2=_0xffad8e['split']('|')[0x0];return this[_0x23ae('0x123')](_0x1a74c2)?_0x23ae('0x5f'):_0x23ae('0x9c');};_0x3cf3e5[_0x23ae('0xf6')]['for'](_0x23ae('0x8d'))[_0x23ae('0x102')]({'model':_0x23ae('0x126'),'view':_0x346287=>{const {id:_0x33be80,type:_0x51cf11,subType:_0x70ea3a}=this[_0x23ae('0x172')](_0x346287[_0x23ae('0x42')]),_0x2f8d96=[_0x23ae('0x18'),_0x39866d(_0x51cf11,_0x70ea3a)];let _0x5304fd=0xbb8;return this[_0x23ae('0x22')][_0x23ae('0x10d')](_0x346287[_0x23ae('0x42')])&&(_0x2f8d96['push'](_0x23ae('0x169')),_0x5304fd=0xbc2),_0x23ae('0x68')==_0x51cf11&&(_0x5304fd+=0x5),{'classes':_0x2f8d96,'attributes':{'data-suggestion':_0x33be80},'priority':_0x5304fd};}}),_0x3cf3e5[_0x23ae('0xf6')][_0x23ae('0x11')](_0x23ae('0x6c'))[_0x23ae('0x15')](_0x5111c1=>{_0x5111c1['on']('addMarker:suggestion',(_0x7466b0,_0x563b99,_0x2a36ad)=>{if(!_0x2a36ad[_0x23ae('0x47')]['showSuggestionHighlights'])return;const _0x395641=_0x563b99['item'];if(!_0x395641)return;const _0x24bfa1=_0x2a36ad[_0x23ae('0x96')]['toViewElement'](_0x395641);_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x108')][_0x23ae('0x160')](_0x395641)&&_0x24bfa1&&!_0x24bfa1[_0x23ae('0x3a')](_0x23ae('0x41'))&&_0x24bfa1['is'](_0x23ae('0x77'))&&_0x2e7c38(_0x24bfa1,_0x2a36ad[_0x23ae('0xd')]);},{'priority':_0x23ae('0x95')});}),_0x3cf3e5[_0x23ae('0xf6')][_0x23ae('0x11')](_0x23ae('0x6c'))[_0x23ae('0x102')]({'model':_0x23ae('0x126'),'view':(_0x57c8d4,_0x38fdc0)=>{if(!_0x38fdc0[_0x23ae('0x47')][_0x23ae('0x122')])return null;const {type:_0x535221,subType:_0x92037d}=this[_0x23ae('0x172')](_0x57c8d4[_0x23ae('0x42')]);return{'classes':[_0x23ae('0x18'),_0x39866d(_0x535221,_0x92037d)],'priority':0xbb8};}});const _0x23a25b=({showActiveMarkers:_0x579e24=!0x0,isAttributeSuggestion:_0xb2405f=!0x1}={})=>(_0x5b1965,_0x1c8327,_0x4d26de)=>{if(!_0x1c8327['item'])return;const {id:_0x3e2706}=this[_0x23ae('0x172')](_0x1c8327[_0x23ae('0x42')]);if(_0xb2405f){const _0x564665=Pt(this['_suggestions'][_0x23ae('0x148')](_0x3e2706));if(!this[_0x23ae('0x123')](_0x564665))return;}if(_0x1c8327[_0x23ae('0x15e')]['is'](_0x23ae('0x14a')))return void _0x4d26de['consumable']['consume'](_0x1c8327['item'],_0x5b1965['name']);const _0x437074=_0x4d26de[_0x23ae('0x96')][_0x23ae('0xa4')](_0x1c8327[_0x23ae('0x15e')]);if(_0x1c8327['item']['is'](_0x23ae('0x14d'))&&_0x3cf3e5['model']['schema'][_0x23ae('0x5d')](_0x1c8327['item'])&&!_0x437074[_0x23ae('0x3a')]('addHighlight')){_0x4d26de[_0x23ae('0xd')][_0x23ae('0x15b')]([_0x23ae('0x18'),_0x23ae('0x5f')],_0x437074),_0x4d26de[_0x23ae('0xd')]['setAttribute']('data-suggestion',_0x3e2706,_0x437074),_0x4d26de[_0x23ae('0x96')][_0x23ae('0x159')](_0x437074,_0x1c8327[_0x23ae('0x42')]),_0x579e24&&(this[_0x23ae('0x22')][_0x23ae('0x10d')](_0x1c8327['markerName'])?_0x4d26de[_0x23ae('0xd')]['addClass'](_0x23ae('0x169'),_0x437074):_0x4d26de[_0x23ae('0xd')]['removeClass']('ck-suggestion-marker--active',_0x437074));for(const _0x5a0ab2 of _0x3cf3e5['model'][_0x23ae('0xa')](_0x1c8327['item'])[_0x23ae('0x6')]())_0x4d26de[_0x23ae('0x8c')]['consume'](_0x5a0ab2,_0x5b1965[_0x23ae('0xc3')]);_0x4d26de['consumable'][_0x23ae('0x2d')](_0x1c8327[_0x23ae('0x15e')],_0x5b1965[_0x23ae('0xc3')]);}};_0x3cf3e5[_0x23ae('0xf6')][_0x23ae('0x11')]('dataDowncast')[_0x23ae('0x15')](_0x5e05a3=>{_0x5e05a3['on'](_0x23ae('0xb7'),(_0x1d60c2,_0x8f3e5b,_0x1f6cc4)=>{_0x1f6cc4[_0x23ae('0x47')][_0x23ae('0x122')]&&_0x23a25b({'showActiveMarkers':!0x1})(_0x1d60c2,_0x8f3e5b,_0x1f6cc4);},{'priority':_0x23ae('0xed')});}),_0x3cf3e5[_0x23ae('0xf6')][_0x23ae('0x11')](_0x23ae('0x6c'))[_0x23ae('0x15')](_0x2a0417=>{_0x2a0417['on'](_0x23ae('0x8'),(_0x134f02,_0x6bafc1,_0x507245)=>{_0x507245['options']['showSuggestionHighlights']&&_0x23a25b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x134f02,_0x6bafc1,_0x507245);},{'priority':_0x23ae('0xed')});}),_0x3cf3e5['conversion']['for']('dataDowncast')[_0x23ae('0xb')]({'model':'suggestion','view':(_0x61d1c,_0x3ff80f)=>_0x3ff80f[_0x23ae('0x47')]['showSuggestionHighlights']?null:{'group':_0x23ae('0x126'),'name':_0x61d1c[_0x23ae('0x90')](0xb)}}),_0x3cf3e5['conversion'][_0x23ae('0x11')](_0x23ae('0xe0'))[_0x23ae('0x144')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x342d05,{writer:_0x38ab7c})=>{let _0x4efddb=_0x23ae('0x57')+_0x342d05['getAttribute'](_0x23ae('0x5e'))+':'+_0x342d05[_0x23ae('0x85')]('id');return _0x342d05[_0x23ae('0x85')](_0x23ae('0x105'))&&(_0x4efddb+=':'+_0x342d05[_0x23ae('0x85')](_0x23ae('0x105'))),_0x38ab7c[_0x23ae('0x4d')]('$marker',{'data-name':_0x4efddb});}}),_0x3cf3e5[_0x23ae('0xf6')]['for'](_0x23ae('0xe0'))['dataToMarker']({'view':_0x23ae('0x126')}),_0x3cf3e5[_0x23ae('0xf6')][_0x23ae('0x11')](_0x23ae('0x8d'))['add'](_0x28338e=>{_0x28338e['on'](_0x23ae('0xb7'),_0x23a25b(),{'priority':_0x23ae('0x95')});}),_0x3cf3e5[_0x23ae('0xf6')][_0x23ae('0x11')](_0x23ae('0x8d'))['add'](_0x578f7b=>{_0x578f7b['on']('addMarker:suggestion:attribute',_0x23a25b({'isAttributeSuggestion':!0x0}),{'priority':_0x23ae('0x95')});}),_0x3cf3e5[_0x23ae('0xf6')][_0x23ae('0x11')]('editingDowncast')['add'](_0x123b96=>{_0x123b96['on'](_0x23ae('0x163'),(_0x2c5752,_0x22d676,_0x56e6df)=>{const _0x2d9cf4=_0x56e6df[_0x23ae('0x96')]['markerNameToElements'](_0x22d676[_0x23ae('0x42')]);if(_0x2d9cf4)for(const _0x403df8 of _0x2d9cf4)_0x403df8[_0x23ae('0x3a')](_0x23ae('0xaa'))||(_0x56e6df[_0x23ae('0xd')][_0x23ae('0x164')]([_0x23ae('0x18'),_0x23ae('0x5f'),'ck-suggestion-marker--active'],_0x403df8),_0x56e6df['writer']['removeAttribute'](_0x23ae('0x84'),_0x403df8),_0x56e6df[_0x23ae('0x96')]['unbindElementFromMarkerName'](_0x403df8,_0x22d676[_0x23ae('0x42')]));},{'priority':_0x23ae('0x95')});}),_0x3cf3e5[_0x23ae('0xf6')][_0x23ae('0x11')](_0x23ae('0x8d'))[_0x23ae('0x15')](_0x77d27b=>{_0x77d27b['on'](_0x23ae('0x165'),(_0x462788,_0x10f8b1,_0x1d00c7)=>{const _0x3a2eee=_0x1d00c7[_0x23ae('0x96')]['markerNameToElements'](_0x10f8b1[_0x23ae('0x42')]);if(!_0x3a2eee)return;const {id:_0x2714b8}=this[_0x23ae('0x172')](_0x10f8b1[_0x23ae('0x42')]),_0x54e021=Pt(this[_0x23ae('0x32')]['get'](_0x2714b8));if(this[_0x23ae('0x123')](_0x54e021))for(const _0x28605d of _0x3a2eee)_0x28605d[_0x23ae('0x3a')]('addHighlight')||(_0x1d00c7[_0x23ae('0xd')][_0x23ae('0x164')]([_0x23ae('0x18'),_0x23ae('0x5f'),'ck-suggestion-marker--active'],_0x28605d),_0x1d00c7[_0x23ae('0xd')][_0x23ae('0x13a')]('data-suggestion',_0x28605d),_0x1d00c7[_0x23ae('0x96')][_0x23ae('0xab')](_0x28605d,_0x10f8b1['markerName']));},{'priority':_0x23ae('0x95')});}),_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x138')][_0x23ae('0x55')](_0x23106a=>{let _0x18c27c=!0x1;const _0xd43e98=Array[_0x23ae('0xb8')](_0x3cf3e5[_0x23ae('0x10')]['document'][_0x23ae('0x4')][_0x23ae('0x99')]()),_0x596f30=new Set();for(const {name:_0x52732e,data:_0xc5972e}of _0xd43e98){const {group:_0x196d69,type:_0x377fbb,subType:_0xda2cf0,id:_0x2d129b}=this[_0x23ae('0x172')](_0x52732e);if(_0x23ae('0x126')!==_0x196d69)continue;const _0x1d6012=this[_0x23ae('0x32')][_0x23ae('0x148')](_0x2d129b);if(null!=_0xc5972e['newRange']){_0x23ae('0x1e')==_0x377fbb&&(_0x18c27c=_0x18c27c||Et(_0xc5972e[_0x23ae('0xc9')],_0x52732e,_0x23106a,_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x108')]));const _0x2a0218=_0x23ae('0xbd')==_0x377fbb&&this[_0x23ae('0x123')](_0xda2cf0[_0x23ae('0x2f')]('|')[0x0]);if(_0xc5972e[_0x23ae('0xc9')][_0x23ae('0xe3')]||'$graveyard'==_0xc5972e[_0x23ae('0xc9')][_0x23ae('0x62')][_0x23ae('0x94')]||_0x23ae('0xee')==_0x377fbb&&!jt(_0xc5972e[_0x23ae('0xc9')])||_0x2a0218&&!jt(_0xc5972e['newRange'])||_0x23ae('0x68')==_0x377fbb&&!(!xt(_0x5aebf8=_0xc5972e[_0x23ae('0xc9')])&&!function(_0x34c496){return _0x34c496['start'][_0x23ae('0xa5')]==_0x34c496['end']['nodeBefore']&&_0x34c496[_0x23ae('0xd7')]['isAtEnd'];}(_0x5aebf8)))_0x23106a[_0x23ae('0x8b')](_0x52732e),_0x18c27c=!0x0;else{if(!_0x1d6012||!_0x1d6012[_0x23ae('0x145')])continue;_0x596f30[_0x23ae('0x15')](_0x1d6012);}}}var _0x5aebf8;return _0x596f30['size']>0x0&&(_0x18c27c=!!this[_0x23ae('0x16f')](_0x596f30)||_0x18c27c),_0x18c27c;}),_0x3cf3e5['model'][_0x23ae('0x138')][_0x23ae('0x55')](_0x5f3055=>{let _0x23a806=!0x1;for(const _0x103b19 of _0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x138')][_0x23ae('0x4')][_0x23ae('0xd3')]())if(_0x23ae('0x6a')==_0x103b19[_0x23ae('0x15c')])for(const _0x490038 of this[_0x23ae('0x32')][_0x23ae('0xa7')]()){if(_0x490038[_0x23ae('0x27')]||!_0x490038['isInContent'])continue;const _0x53a3b8=_0x23ae('0xee')==_0x490038[_0x23ae('0x15c')],_0x13d581=Pt(_0x490038),_0x31aed3=_0x13d581&&this[_0x23ae('0x123')](_0x13d581);if(!_0x53a3b8&&!_0x31aed3)continue;const _0x5db6f7=_0x490038[_0x23ae('0x1')]();if(_0x5db6f7['start'][_0x23ae('0xa5')]!=_0x5db6f7[_0x23ae('0x7c')][_0x23ae('0xa5')]&&!_0x5db6f7[_0x23ae('0x7c')][_0x23ae('0x115')]){const _0x45295f=_0x3cf3e5[_0x23ae('0x10')]['createPositionAt'](_0x5db6f7[_0x23ae('0xd7')][_0x23ae('0xa3')],_0x23ae('0x7c')),_0x4159b8=_0x3cf3e5[_0x23ae('0x10')]['createRange'](_0x5db6f7[_0x23ae('0xd7')],_0x45295f);_0x5f3055[_0x23ae('0x45')](_0x490038['getFirstMarker'](),{'range':_0x4159b8}),_0x23a806=!0x0;}}return _0x23a806;}),_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x138')][_0x23ae('0x55')](_0x28bfd8=>this[_0x23ae('0x156')](_0x28bfd8)),_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x138')]['registerPostFixer'](_0x2871d2=>!_0x2871d2[_0x23ae('0x119')][_0x23ae('0x140')]&&this[_0x23ae('0x4a')](_0x2871d2)),_0x3cf3e5['model'][_0x23ae('0x97')]['on'](_0x23ae('0xaf'),(_0x3380e8,_0x2cd94c,_0x4b4123)=>{if(null==_0x4b4123){const {id:_0x8d07c2}=this[_0x23ae('0x172')](_0x2cd94c[_0x23ae('0xc3')]),_0x149bbe=this[_0x23ae('0x32')][_0x23ae('0x148')](_0x8d07c2);_0x149bbe&&_0x149bbe[_0x23ae('0x166')](_0x2cd94c['name']);}}),_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x138')]['on'](_0x23ae('0x83'),()=>{const _0x23c48e=Array[_0x23ae('0xb8')](_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x138')][_0x23ae('0x4')][_0x23ae('0x99')]())['filter'](_0x215c36=>_0x23ae('0x126')===this[_0x23ae('0x172')](_0x215c36[_0x23ae('0xc3')])[_0x23ae('0x104')]);if(0x0===_0x23c48e[_0x23ae('0xa1')])return;_0x23c48e[_0x23ae('0x17')]((_0x5cf903,_0x333e81)=>{const _0x5e0402=_0x5cf903[_0x23ae('0x52')]['oldRange'],_0x1d6232=_0x333e81[_0x23ae('0x52')]['oldRange'];return null===_0x5e0402&&null===_0x1d6232?0x0:null===_0x5e0402&&null!==_0x1d6232?-0x1:null!==_0x5e0402&&null===_0x1d6232?0x1:_0x5e0402[_0x23ae('0xd7')][_0x23ae('0x3')](_0x1d6232['start'])?-0x1:0x1;});const _0x4e44ea=new Set(),_0x2ceb1a=new Set();for(const {name:_0x345169,data:_0x1e3f6d}of _0x23c48e){const {id:_0x449a12}=this[_0x23ae('0x172')](_0x345169);if(null===_0x1e3f6d['oldRange']){const _0xf250ac=this[_0x23ae('0x170')](_0x345169);_0x2ceb1a[_0x23ae('0x15')](_0xf250ac);}else{const _0xec0a01=this[_0x23ae('0x32')][_0x23ae('0x148')](_0x449a12);null!==_0x1e3f6d[_0x23ae('0xc9')]||_0xec0a01['isInContent']?(_0x4e44ea[_0x23ae('0x15')](_0xec0a01[_0x23ae('0x59')]),_0x2ceb1a['add'](_0xec0a01)):this[_0x23ae('0x109')](_0xec0a01);}}_0x2ceb1a['size']>0x0&&this[_0x23ae('0x16')](_0x2ceb1a);for(const _0x282877 of _0x4e44ea)this[_0x23ae('0x4e')](_0x23ae('0xb2'),_0x282877);}),_0x3cf3e5[_0x23ae('0x10')]['on'](_0x23ae('0x50'),(_0xf5ae74,_0x4a7048)=>{const _0x5dcd19=_0x4a7048[0x0];if(!this[_0x23ae('0x32')][_0x23ae('0xe1')])return;if(!_0x5dcd19[_0x23ae('0xcf')])return;if(_0x5dcd19[_0x23ae('0x119')][_0x23ae('0x87')]||!_0x5dcd19['batch']['isLocal'])return;let _0x45c146,_0x16f7ea;switch(_0x5dcd19[_0x23ae('0x15c')]){case'insert':_0x45c146=_0x3cf3e5[_0x23ae('0x10')]['createPositionAt'](_0x5dcd19['position']),_0x16f7ea=_0x45c146['getShiftedBy'](_0x5dcd19[_0x23ae('0xf8')]);break;case'split':_0x45c146=_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x130')](_0x5dcd19['splitPosition']),_0x16f7ea=_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x130')](_0x5dcd19['moveTargetPosition']);break;case _0x23ae('0x6b'):_0x45c146=_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x130')](_0x5dcd19['targetPosition']),_0x16f7ea=_0x45c146[_0x23ae('0x88')](_0x5dcd19[_0x23ae('0xf8')]);break;default:return;}const _0xdf35b7=_0x3cf3e5[_0x23ae('0x10')]['createRange'](_0x45c146,_0x16f7ea);_0x3cf3e5[_0x23ae('0x10')]['change'](()=>{for(const {suggestion:_0x395b3e,meta:_0x42906f}of this['_findSuggestions'](_0xdf35b7)){if(_0x395b3e[_0x23ae('0x27')])continue;if(_0x23ae('0x1e')==_0x395b3e[_0x23ae('0x15c')])continue;const _0xa205d4=Pt(_0x395b3e);if(_0xa205d4&&this[_0x23ae('0x123')](_0xa205d4)&&'split'!=_0x5dcd19[_0x23ae('0x15c')])continue;const _0x1cbd28=_0x395b3e[_0x23ae('0x52')]&&_0x395b3e[_0x23ae('0x52')][_0x23ae('0xbb')];('formatBlock'!=_0x395b3e[_0x23ae('0x15c')]||_0x23ae('0x2f')==_0x5dcd19[_0x23ae('0x15c')]&&!_0x1cbd28)&&(_0x42906f[_0x23ae('0xa9')]||_0x23ae('0x12')==_0x395b3e[_0x23ae('0x15c')]&&_0x42906f[_0x23ae('0xd9')]||_0x395b3e['getFirstRange']()[_0x23ae('0x117')](_0xdf35b7)&&this[_0x23ae('0xc1')](_0x395b3e,_0x45c146,_0x16f7ea));}});},{'priority':_0x23ae('0xf5')}),_0x3cf3e5[_0x23ae('0x10')]['on'](_0x23ae('0x61'),(_0x3a80b8,_0x4ded1e)=>{const _0x493c7c=_0x4ded1e[0x0],_0x58b20c=_0x4ded1e[0x1];if(_0x58b20c&&_0x58b20c[_0x23ae('0x143')])return;if(this[_0x23ae('0xfc')])return;if(!this['trackChangesCommand']['value'])return;if(_0x493c7c['isCollapsed'])return;const _0x4d6dca=_0x3cf3e5['model'][_0x23ae('0x108')],{start:_0x531fcf,end:_0x720a08}=_0x493c7c[_0x23ae('0x1')](),_0x26f989=_0x531fcf[_0x23ae('0xa3')]&&_0x4d6dca['isLimit'](_0x531fcf[_0x23ae('0xa3')])?null:_0x4d6dca['getNearestSelectionRange'](_0x531fcf,_0x23ae('0xdd')),_0x1b1e4c=_0x720a08[_0x23ae('0x14f')]&&_0x4d6dca[_0x23ae('0x135')](_0x720a08[_0x23ae('0x14f')])?null:_0x4d6dca['getNearestSelectionRange'](_0x720a08,_0x23ae('0x65')),_0x240be8=_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x131')](_0x26f989?_0x26f989[_0x23ae('0xd7')]:_0x531fcf,_0x1b1e4c?_0x1b1e4c[_0x23ae('0x7c')]:_0x720a08);_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x6e')](_0x2cca27=>{this['markDeletion'](_0x240be8);const _0x3ca066=_0x3cf3e5['model'][_0x23ae('0x108')]['getNearestSelectionRange'](_0x240be8['start']);_0x493c7c['is'](_0x23ae('0x73'))?_0x2cca27[_0x23ae('0x69')](_0x3ca066):_0x493c7c[_0x23ae('0x35')](_0x3ca066);}),_0x3a80b8[_0x23ae('0xd0')]();},{'priority':_0x40a7cb[_0x23ae('0x9b')]+0xa}),_0x3cf3e5[_0x23ae('0x10')]['on'](_0x23ae('0x136'),(_0xbc757,_0x39b26a)=>{const _0x18fdb2=_0x39b26a[_0x39b26a[_0x23ae('0xa1')]-0x1];_0x18fdb2&&_0x18fdb2['forceDefaultExecution']||this[_0x23ae('0xfc')]||this[_0x23ae('0x176')][_0x23ae('0xe')]&&(_0x3cf3e5['model'][_0x23ae('0x6e')](()=>{let _0x5a1696=_0x3cf3e5[_0x23ae('0x10')]['insertContent'](_0x39b26a[0x0],_0x39b26a[0x1],_0x39b26a[0x2],{'forceDefaultExecution':!0x0});if(!_0x5a1696)return;_0xbc757[_0x23ae('0xda')]=_0x5a1696['clone']();const _0x47ff7d=_0x5a1696[_0x23ae('0x7c')]['nodeBefore'],_0x26a7c8=_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x108')];_0x47ff7d&&_0x26a7c8['isBlock'](_0x47ff7d)&&!_0x26a7c8[_0x23ae('0x160')](_0x47ff7d)&&(_0x5a1696=_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x131')](_0x5a1696[_0x23ae('0xd7')],_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x130')](_0x47ff7d,_0x23ae('0x7c')))),this[_0x23ae('0x12e')](_0x5a1696);}),_0xbc757[_0x23ae('0xd0')]());},{'priority':'high'}),this[_0x23ae('0x11e')][_0x23ae('0x31')][_0x23ae('0x15')](_0x23ae('0x93'),this[_0x23ae('0x176')]),this[_0x23ae('0xb4')](_0x23ae('0x93'));const _0xfe6dfb=new _0x556d61(_0x3cf3e5,this['_suggestions']);_0x3cf3e5['commands']['add']('acceptSuggestion',_0xfe6dfb),this['enableCommand'](_0x23ae('0xc8'));const _0x2a13b8=new _0x5fa051(_0x3cf3e5,this[_0x23ae('0x32')]);_0x3cf3e5[_0x23ae('0x31')][_0x23ae('0x15')](_0x23ae('0x10f'),_0x2a13b8),this[_0x23ae('0xb4')](_0x23ae('0x10f')),_0x3cf3e5[_0x23ae('0x31')][_0x23ae('0x15')](_0x23ae('0x46'),new _0x223d2a(_0x3cf3e5,_0xfe6dfb,this[_0x23ae('0x32')])),this['enableCommand'](_0x23ae('0x46')),_0x3cf3e5[_0x23ae('0x31')][_0x23ae('0x15')](_0x23ae('0x5c'),new _0x223d2a(_0x3cf3e5,_0x2a13b8,this['_suggestions'])),this[_0x23ae('0xb4')](_0x23ae('0x5c')),_0x3cf3e5['commands']['add'](_0x23ae('0xe6'),new _0x215d49(_0x3cf3e5,_0xfe6dfb,this[_0x23ae('0x32')])),this['enableCommand']('acceptSelectedSuggestions'),_0x3cf3e5[_0x23ae('0x31')][_0x23ae('0x15')](_0x23ae('0x2c'),new _0x215d49(_0x3cf3e5,_0x2a13b8,this[_0x23ae('0x32')])),this[_0x23ae('0xb4')](_0x23ae('0x2c'));const _0x28b5e9=_0x3cf3e5[_0x23ae('0xae')]['get']('CommentsRepository');this[_0x23ae('0x1a')](_0x28b5e9,_0x23ae('0x15a'),(_0xe087a5,{threadId:_0x2bc337})=>{const _0x530fd5=this[_0x23ae('0x32')][_0x23ae('0x148')](_0x2bc337);_0x530fd5&&_0x530fd5[_0x23ae('0x14c')]&&0x1===_0x530fd5[_0x23ae('0x14c')][_0x23ae('0xa1')]&&this[_0x23ae('0x13b')](_0x2bc337,{'hasComments':!0x0});},{'priority':_0x23ae('0x12d')}),this[_0x23ae('0x1a')](_0x28b5e9,_0x23ae('0x63'),(_0x510bb9,{threadId:_0x4bb2d4})=>{const _0xf1ce5c=this[_0x23ae('0x32')][_0x23ae('0x148')](_0x4bb2d4);_0xf1ce5c&&_0xf1ce5c[_0x23ae('0x14c')]&&!_0xf1ce5c[_0x23ae('0x14c')][_0x23ae('0xa1')]&&this['_updateSuggestionData'](_0x4bb2d4,{'hasComments':!0x1});},{'priority':_0x23ae('0x12d')});}set[_0x23ae('0x110')](_0x9ff434){if(this[_0x23ae('0x33')])throw new _0x3918ce(_0x23ae('0x16b'),this);this[_0x23ae('0x33')]=_0x9ff434;}get[_0x23ae('0x110')](){return this[_0x23ae('0x33')];}[_0x23ae('0x141')]({skipNotAttached:_0x51296d=!0x1,toJSON:_0xdcc0b7=!0x1}={}){const _0x243fa4=[];for(const _0x44968d of this[_0x23ae('0x32')][_0x23ae('0xa7')]())_0x51296d&&!_0x44968d[_0x23ae('0x145')]||_0x243fa4[_0x23ae('0xef')](_0x44968d);return _0xdcc0b7?_0x243fa4[_0x23ae('0x152')](_0x4b5ec4=>_0x4b5ec4[_0x23ae('0x56')]()):_0x243fa4;}[_0x23ae('0x15f')](_0x1cf48d){const _0x12d877=this[_0x23ae('0x32')][_0x23ae('0x148')](_0x1cf48d);if(!_0x12d877)throw new _0x3918ce('track-changes-suggestion-not-found',this);return _0x12d877;}[_0x23ae('0x7')](_0x2ff503){return this[_0x23ae('0x32')]['has'](_0x2ff503);}[_0x23ae('0xec')](_0x42b881){const {authorId:_0x597427,id:_0x2f059d,attributes:_0x2d6f6b}=_0x42b881,[_0x5e58e3,_0x1c7e53]=_0x42b881[_0x23ae('0x15c')][_0x23ae('0x2f')](':'),_0x2d6757=this['_suggestions'][_0x23ae('0x148')](_0x2f059d)||this[_0x23ae('0x79')](_0x5e58e3,_0x1c7e53,_0x2f059d,_0x597427,_0x2d6f6b);if(this[_0x23ae('0x39')](_0x2d6757),this[_0x23ae('0xf2')](_0x2d6757,_0x5e58e3,_0x1c7e53||null,_0x597427),_0x2d6757['createdAt']=_0x42b881[_0x23ae('0x9a')],_0x2d6757[_0x23ae('0x16d')]=!0x0,_0x2d6f6b&&_0x2d6f6b['@external']){const _0x52fe45=_0x2d6f6b[_0x23ae('0x6d')],_0x57cb8d=this[_0x23ae('0x24')](_0x52fe45[_0x23ae('0x36')]);_0x2d6757[_0x23ae('0x171')]=_0x52fe45['createdAt'],_0x2d6757[_0x23ae('0x3b')]=_0x57cb8d,_0x2d6757[_0x23ae('0xd5')]=!0x0;}else _0x2d6757[_0x23ae('0x171')]=_0x42b881[_0x23ae('0x9a')];switch(_0x42b881[_0x23ae('0x52')]&&(_0x2d6757['data']=_0x42b881[_0x23ae('0x52')]),_0x42b881['attributes']&&(_0x2d6757['attributes']=_0x42b881[_0x23ae('0x16a')]),this[_0x23ae('0x33')]&&this[_0x23ae('0x33')][_0x23ae('0xf9')]||(_0x2d6757[_0x23ae('0xbe')]=!0x0),this[_0x23ae('0x53')]['get'](_0x2d6757)){case _0x23ae('0xf3'):this[_0x23ae('0x53')][_0x23ae('0x142')](_0x2d6757,'dataReady');break;case'markerReady':_0x2d6757['isInContent']?(this[_0x23ae('0x16')](new Set([_0x2d6757])),this[_0x23ae('0x16f')](new Set([_0x2d6757])),this[_0x23ae('0x53')][_0x23ae('0x142')](_0x2d6757,'ready'),this[_0x23ae('0x4e')](_0x23ae('0xdf'),_0x2d6757)):this[_0x23ae('0x53')][_0x23ae('0x142')](_0x2d6757,_0x23ae('0x7f'));}return _0x2d6757;}['acceptSuggestion'](_0x49a89f){this[_0x23ae('0x143')](()=>{this[_0x23ae('0x11e')]['model'][_0x23ae('0x6e')](()=>{for(const _0x23007f of _0x49a89f[_0x23ae('0xdc')]())_0x23007f[_0x23ae('0xfb')]();});});}['discardSuggestion'](_0x5bd19b){this[_0x23ae('0x143')](()=>{this['editor']['model'][_0x23ae('0x6e')](()=>{for(const _0x4845cc of _0x5bd19b[_0x23ae('0xdc')]())_0x4845cc[_0x23ae('0x167')]();});});}[_0x23ae('0xb4')](_0x316206,_0x504681){const _0x4d34fb=this[_0x23ae('0x11e')][_0x23ae('0x31')]['get'](_0x316206);if(!_0x4d34fb)throw new _0x3918ce('track-changes-command-not-found',this,{'commandName':_0x316206});if(this[_0x23ae('0x9d')][_0x23ae('0x16e')](_0x4d34fb))throw new _0x3918ce(_0x23ae('0xc6'),this,{'commandName':_0x316206});this[_0x23ae('0x9d')][_0x23ae('0x15')](_0x4d34fb),_0x504681&&_0x4d34fb['on'](_0x23ae('0x111'),(_0x324e90,_0xd12324)=>{this[_0x23ae('0x176')][_0x23ae('0xe')]&&(this[_0x23ae('0xfc')]||(_0xd12324[_0x23ae('0xa1')]>0x0&&_0xd12324[_0xd12324[_0x23ae('0xa1')]-0x1]&&_0xd12324[_0xd12324['length']-0x1]['forceDefaultExecution']?_0xd12324[_0x23ae('0x3d')]():(_0x324e90[_0x23ae('0xda')]=_0x504681((..._0x1be989)=>_0x4d34fb[_0x23ae('0x111')](..._0x1be989,{'forceDefaultExecution':!0x0}),..._0xd12324),_0x324e90[_0x23ae('0xd0')]())));},{'priority':_0x23ae('0x95')});}[_0x23ae('0x143')](_0x21aebf){let _0x228304,_0x4ba350;const _0x4fe864=this[_0x23ae('0xfc')];this[_0x23ae('0xfc')]=!0x0;try{_0x228304=_0x21aebf();}catch(_0x2c86ef){_0x4ba350=_0x2c86ef;}return _0x4fe864||(this[_0x23ae('0xfc')]=!0x1),_0x4ba350&&_0x3918ce[_0x23ae('0x2e')](_0x4ba350,this),_0x228304;}[_0x23ae('0x12e')](_0x18126a,_0x327763=null,_0x27ce78={}){if(_0x18126a[_0x23ae('0xe3')])return null;const _0x32d496=this[_0x23ae('0x11e')][_0x23ae('0xae')]['get'](_0x23ae('0x3c'))['me'];for(const {suggestion:_0x2e8230,meta:_0x46f914}of this['_findSuggestions'](_0x18126a,_0x23ae('0x12')))if(_0x46f914[_0x23ae('0xd9')]){if(!_0x46f914[_0x23ae('0x7a')]){if(_0x46f914[_0x23ae('0xa9')]){if(!this[_0x23ae('0x127')]||!Gt(_0x2e8230,_0x27ce78))continue;return _0x2e8230;}if(Gt(_0x2e8230,_0x27ce78))return _0x2e8230;this['_breakSuggestionMarker'](_0x2e8230,_0x18126a[_0x23ae('0xd7')],_0x18126a[_0x23ae('0x7c')]);break;}if(_0x327763==_0x2e8230[_0x23ae('0x11c')]&&Gt(_0x2e8230,_0x27ce78)){const _0x818d3e=_0x2e8230['getFirstRange']();return _0x818d3e['start'][_0x23ae('0xc5')](_0x18126a[_0x23ae('0x7c')])?this['_setSuggestionRange'](_0x2e8230,this[_0x23ae('0x37')][_0x23ae('0x131')](_0x18126a['start'],_0x818d3e[_0x23ae('0x7c')])):this['_setSuggestionRange'](_0x2e8230,this[_0x23ae('0x37')][_0x23ae('0x131')](_0x818d3e[_0x23ae('0xd7')],_0x18126a['end'])),_0x2e8230;}}const _0x48e85e=_0x4e6c1e(),_0xe166bd=_0x32d496['id'],_0x19cc00=_0x327763?_0x23ae('0x8e')+_0x327763:'insertion',_0x32c181=this[_0x23ae('0xb0')]({'id':_0x48e85e,'type':_0x19cc00,'createdAt':new Date(),'authorId':_0xe166bd,'attributes':_0x27ce78});return this[_0x23ae('0x101')](_0x19cc00,_0x48e85e,_0xe166bd,_0x18126a),_0x32c181;}['markMultiRangeInsertion'](_0x611fbb,_0x3416c5=_0x23ae('0x12f'),_0x4a8c1d={}){const _0x31cd2b=this[_0x23ae('0x11e')][_0x23ae('0xae')]['get']('Users')['me'],_0xce1db5=this[_0x23ae('0x10e')]['getSuggestionCallback'](_0x23ae('0x12'),_0x3416c5,_0x23ae('0xb9'));for(const _0x2e3aa9 of this[_0x23ae('0x141')]())if(_0x2e3aa9['author']['id']==_0x31cd2b['id']&&'insertion'==_0x2e3aa9[_0x23ae('0x15c')]&&_0x2e3aa9['subType']==_0x3416c5&&Gt(_0x2e3aa9,_0x4a8c1d)&&(_0xce1db5(_0x2e3aa9[_0x23ae('0x30')](),_0x611fbb)||_0xce1db5(_0x611fbb,_0x2e3aa9[_0x23ae('0x30')]()))){for(const _0xb21ae7 of _0x611fbb)_0x2e3aa9[_0x23ae('0x154')](_0xb21ae7);return _0x2e3aa9;}for(const {suggestion:_0x2a9ec4,meta:_0x51012c}of this[_0x23ae('0x8a')](_0x611fbb,_0x23ae('0x12'))){if(!_0x51012c[_0x23ae('0xd9')])continue;if(!this[_0x23ae('0x127')]&&_0x51012c[_0x23ae('0xa9')])continue;if(!Gt(_0x2a9ec4,_0x4a8c1d))continue;let _0x45fb2c=!0x0;for(const _0x4bb207 of _0x2a9ec4[_0x23ae('0x30')]())for(const _0x288d3d of _0x611fbb)if(!_0x4bb207[_0x23ae('0x117')](_0x288d3d)){_0x45fb2c=!0x1;break;}if(_0x45fb2c)return _0x2a9ec4;}const _0x408723=_0x4e6c1e(),_0x127567=_0x31cd2b['id'],_0x4627a1=_0x23ae('0x8e')+_0x3416c5,_0x23369f=this[_0x23ae('0xb0')]({'id':_0x408723,'type':_0x4627a1,'createdAt':new Date(),'authorId':_0x127567,'attributes':_0x4a8c1d});for(const _0x54cc7a of _0x611fbb)this[_0x23ae('0x101')](_0x4627a1,_0x408723,_0x127567,_0x54cc7a,_0x3d27b9[_0x23ae('0x116')]());return _0x23369f;}[_0x23ae('0xba')](_0x5b751a,_0x1a9caa,_0x58c7ae=null,_0x2c77e9={}){if(_0x58c7ae=_0x58c7ae||Rt(_0x1a9caa),_0x5b751a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x42340d=this[_0x23ae('0x10e')]['getSuggestionCallback'](_0x23ae('0x1e'),_0x58c7ae,'accept');return this[_0x23ae('0x143')](()=>_0x42340d([_0x5b751a],_0x1a9caa,_0x2c77e9)),null;}const _0x30816a=this['editor']['plugins'][_0x23ae('0x148')](_0x23ae('0x3c'))['me'],_0x5b206a=[];if(_0x23ae('0x107')!==this[_0x23ae('0xca')])for(const {suggestion:_0x27b0a4,meta:_0x439329}of this['_findSuggestions'](_0x5b751a,_0x23ae('0x12')))_0x439329[_0x23ae('0xd9')]&&!_0x439329[_0x23ae('0xdb')]&&_0x5b206a[_0x23ae('0xef')](..._0x27b0a4[_0x23ae('0x30')]());const _0x513eab=function(_0x2235bd,_0x359d23){const _0x727c8=[];for(const _0x251926 of _0x359d23){const _0x41db47=_0x2235bd['getIntersection'](_0x251926);_0x41db47&&_0x727c8[_0x23ae('0xef')](_0x41db47);}return _0x727c8;}(_0x5b751a,_0x5b206a),_0x1e64ce=function(_0x32450f,_0x34b571){const _0x575b8a=[_0x32450f];for(const _0x45748c of _0x34b571){let _0x2d2b54=0x0;for(;_0x2d2b54<_0x575b8a[_0x23ae('0xa1')];){const _0x2ccfb6=_0x575b8a[_0x2d2b54][_0x23ae('0xb3')](_0x45748c);_0x575b8a[_0x23ae('0x17d')](_0x2d2b54,0x1,..._0x2ccfb6),_0x2d2b54+=_0x2ccfb6[_0x23ae('0xa1')];}}return _0x575b8a;}(_0x5b751a,_0x5b206a);_0x513eab['length']&&this[_0x23ae('0x37')][_0x23ae('0x6e')](()=>{for(const _0x5902b9 of _0x513eab){const _0x2859c8=this[_0x23ae('0x10e')][_0x23ae('0x34')](_0x23ae('0x1e'),_0x58c7ae,_0x23ae('0xfb'));this['forceDefaultExecution'](()=>_0x2859c8([_0x5902b9],_0x1a9caa,_0x2c77e9));}});for(const _0x54e2ed of _0x1e64ce){let _0x52d4fd=null,_0x4193e4=_0x54e2ed[_0x23ae('0xd7')],_0x55486b=_0x54e2ed[_0x23ae('0x7c')];for(const {suggestion:_0x45b755,meta:_0x3ba75d}of this[_0x23ae('0x8a')](_0x54e2ed,_0x23ae('0x1e'))){if(!_0x3ba75d[_0x23ae('0xd9')])continue;if(_0x45b755[_0x23ae('0x11c')]!=_0x58c7ae)continue;if(!Gt(_0x45b755,_0x2c77e9))continue;const _0x1eccdb=_0x45b755[_0x23ae('0x1')]();if(_0x1eccdb['containsRange'](_0x54e2ed,!0x0))return null;_0x4193e4=_0x4193e4[_0x23ae('0x3')](_0x1eccdb[_0x23ae('0xd7')])?_0x4193e4:_0x1eccdb[_0x23ae('0xd7')],_0x55486b=_0x55486b[_0x23ae('0x178')](_0x1eccdb['end'])?_0x55486b:_0x1eccdb['end'],_0x52d4fd?_0x1eccdb[_0x23ae('0xd7')][_0x23ae('0x3')](_0x52d4fd[_0x23ae('0x1')]()[_0x23ae('0xd7')])?(_0x52d4fd[_0x23ae('0x72')](),_0x52d4fd=_0x45b755):_0x45b755[_0x23ae('0x72')]():_0x52d4fd=_0x45b755;}const _0x67d3af=this[_0x23ae('0x37')][_0x23ae('0x131')](_0x4193e4,_0x55486b);if(_0x52d4fd)this[_0x23ae('0xc0')](_0x52d4fd,_0x67d3af);else{const _0x54cfe0=_0x4e6c1e(),_0x52502c=_0x30816a['id'];this[_0x23ae('0xb0')]({'id':_0x54cfe0,'type':_0x23ae('0xa0')+_0x58c7ae,'data':_0x1a9caa,'createdAt':new Date(),'authorId':_0x52502c,'attributes':_0x2c77e9}),this[_0x23ae('0x101')](_0x23ae('0xa0')+_0x58c7ae,_0x54cfe0,_0x52502c,_0x67d3af);}}return null;}[_0x23ae('0x26')](_0x14fbce,_0xd5458f,_0x310622=[],_0x17a161=null,_0xd2119e={}){_0xd5458f['formatGroupId']||(_0xd5458f['formatGroupId']=_0xd5458f[_0x23ae('0x100')]),_0xd5458f[_0x23ae('0xbb')]=_0x14fbce['is'](_0x23ae('0x2')),_0x17a161=_0x17a161||Rt(_0xd5458f);const _0x102f20=_0x310622[_0x23ae('0x152')](_0x2e2cdf=>Ut(_0x2e2cdf,this[_0x23ae('0x37')])),_0x107863=_0x14fbce['is']('range')?_0x14fbce:Ut(_0x14fbce,this[_0x23ae('0x37')]);if(_0x23ae('0xf7')===this[_0x23ae('0xca')]){const _0x329b4f=this[_0x23ae('0x10e')][_0x23ae('0x34')](_0x23ae('0xee'),_0x17a161,'accept');return this[_0x23ae('0x143')](()=>_0x329b4f([_0x107863],_0xd5458f,_0xd2119e)),null;}_0x102f20[_0x23ae('0xef')](_0x107863);let _0x1a5c2e=!0x0;for(const _0x466fbe of _0x102f20)if(!this[_0x23ae('0x4c')](_0x466fbe)){_0x1a5c2e=!0x1;break;}if(_0x1a5c2e&&_0x23ae('0x107')!==this['_trackFormatChanges']){const _0x42cbe7=this[_0x23ae('0x10e')][_0x23ae('0x34')](_0x23ae('0xee'),_0x17a161,_0x23ae('0xfb'));return this[_0x23ae('0x143')](()=>_0x42cbe7([_0x107863],_0xd5458f,_0xd2119e)),null;}let _0x2e618c=null,_0x39a164=_0x107863['start'],_0xdc1ffb=_0x107863['end'];for(const {suggestion:_0x22352c,meta:_0x39f99f}of this[_0x23ae('0x8a')](_0x107863,_0x23ae('0xee'))){if(!_0x39f99f[_0x23ae('0xd9')])continue;if(_0x39f99f[_0x23ae('0x7a')]||_0x39f99f['containsRangeInObject']||_0x39f99f['isInsideObject'])continue;if(_0x22352c[_0x23ae('0x52')][_0x23ae('0xe5')]!=_0xd5458f[_0x23ae('0xe5')])continue;if(!Gt(_0x22352c,_0xd2119e))continue;const _0x401b49=_0x22352c[_0x23ae('0x1')]();if(_0x22352c['subType']==_0x17a161){if(_0x401b49[_0x23ae('0x117')](_0x107863,!0x0))return null;_0x39a164=_0x39a164[_0x23ae('0x3')](_0x401b49[_0x23ae('0xd7')])?_0x39a164:_0x401b49[_0x23ae('0xd7')],_0xdc1ffb=_0xdc1ffb[_0x23ae('0x178')](_0x401b49[_0x23ae('0x7c')])?_0xdc1ffb:_0x401b49[_0x23ae('0x7c')],_0x2e618c?_0x401b49[_0x23ae('0xd7')]['isBefore'](_0x2e618c[_0x23ae('0x1')]()[_0x23ae('0xd7')])?(_0x2e618c[_0x23ae('0x72')](),_0x2e618c=_0x22352c):_0x22352c['removeMarkers']():_0x2e618c=_0x22352c;}else{const _0x3da7f4=_0x107863[_0x23ae('0x10b')](_0x401b49);this[_0x23ae('0x2b')](_0x22352c,_0x3da7f4);}}const _0x2ec6d0=this[_0x23ae('0x11e')][_0x23ae('0xae')]['get'](_0x23ae('0x3c'))['me'],_0x3443dd=_0x4e6c1e(),_0x504699=_0x2ec6d0['id'];if(_0x2e618c)return this['_setSuggestionRange'](_0x2e618c,this['_model'][_0x23ae('0x131')](_0x39a164,_0xdc1ffb)),_0x2e618c;{const _0x145b5c=this[_0x23ae('0xb0')]({'id':_0x3443dd,'type':'formatBlock:'+_0x17a161,'data':_0xd5458f,'createdAt':new Date(),'authorId':_0x504699,'attributes':_0xd2119e});return this[_0x23ae('0x101')](_0x23ae('0xb5')+_0x17a161,_0x3443dd,_0x504699,this[_0x23ae('0x37')][_0x23ae('0x131')](_0x39a164,_0xdc1ffb)),_0x145b5c;}}[_0x23ae('0x89')](_0x19e73a,_0x4ef8c5,_0x1561ad=[],_0x1bbdbe=null,_0x5e7e1b={}){_0x4ef8c5[_0x23ae('0xe5')]||(_0x4ef8c5['formatGroupId']=_0x4ef8c5[_0x23ae('0x100')]);const _0x58e407=_0x19e73a[0x0];_0x4ef8c5[_0x23ae('0xbb')]=_0x58e407['is'](_0x23ae('0x2')),_0x1bbdbe=_0x1bbdbe||Rt(_0x4ef8c5);const _0x1903fc=_0x1561ad[_0x23ae('0x152')](_0x595f26=>Ut(_0x595f26,this[_0x23ae('0x37')])),_0x30db23=_0x58e407['is'](_0x23ae('0x2'))?_0x19e73a:_0x19e73a['map'](_0x5e5dfc=>Ut(_0x5e5dfc,this[_0x23ae('0x37')]));if('never'===this[_0x23ae('0xca')]){const _0x41fea8=this[_0x23ae('0x10e')]['getSuggestionCallback'](_0x23ae('0xee'),_0x1bbdbe,_0x23ae('0xfb'));return this[_0x23ae('0x143')](()=>_0x41fea8(_0x30db23,_0x4ef8c5,_0x5e7e1b)),null;}_0x1903fc[_0x23ae('0xef')](..._0x30db23);let _0x104641=!0x0;for(const _0x456a65 of _0x1903fc)if(!this[_0x23ae('0x4c')](_0x456a65)){_0x104641=!0x1;break;}if(_0x104641&&_0x23ae('0x107')!==this[_0x23ae('0xca')]){const _0x35f3c0=this[_0x23ae('0x10e')]['getSuggestionCallback'](_0x23ae('0xee'),_0x1bbdbe,_0x23ae('0xfb'));return this[_0x23ae('0x143')](()=>_0x35f3c0(_0x30db23,_0x4ef8c5,_0x5e7e1b)),null;}const _0x5ae80a=this['editor'][_0x23ae('0xae')][_0x23ae('0x148')](_0x23ae('0x3c'))['me'];for(const _0x475ef3 of this[_0x23ae('0x141')]()){if(_0x475ef3[_0x23ae('0x3b')]['id']!=_0x5ae80a['id'])continue;if(_0x23ae('0xee')!=_0x475ef3[_0x23ae('0x15c')]||_0x475ef3[_0x23ae('0x52')]['formatGroupId']!=_0x4ef8c5[_0x23ae('0xe5')])continue;if(!Gt(_0x475ef3,_0x5e7e1b))continue;const _0x3fa9c1=_0x475ef3['subType']==_0x1bbdbe;for(let _0x5bbc8f=0x0;_0x5bbc8f<_0x30db23[_0x23ae('0xa1')];_0x5bbc8f++){const _0x46f3f7=_0x30db23[_0x5bbc8f];for(const _0x3bef50 of _0x475ef3['getMarkers']()){const _0x237066=_0x3bef50['getRange']();if(_0x46f3f7[_0x23ae('0xc5')](_0x237066)){_0x3fa9c1?(_0x30db23[_0x23ae('0x17d')](_0x5bbc8f,0x1),_0x5bbc8f--):_0x475ef3[_0x23ae('0x8b')](_0x3bef50[_0x23ae('0xc3')]);break;}}}}if(0x0==_0x30db23['length'])return null;const _0x1bce40=this[_0x23ae('0x10e')][_0x23ae('0x34')](_0x23ae('0xee'),_0x1bbdbe,'join');for(const _0x4c76da of this[_0x23ae('0x141')]())if(_0x4c76da[_0x23ae('0x3b')]['id']==_0x5ae80a['id']&&_0x23ae('0xee')==_0x4c76da[_0x23ae('0x15c')]&&_0x4c76da[_0x23ae('0x52')][_0x23ae('0xe5')]==_0x4ef8c5[_0x23ae('0xe5')]&&_0x4c76da['subType']==_0x1bbdbe&&Gt(_0x4c76da,_0x5e7e1b)&&(_0x1bce40(_0x4c76da['getRanges'](),_0x30db23)||_0x1bce40(_0x30db23,_0x4c76da[_0x23ae('0x30')]()))){for(const _0x14c8d2 of _0x30db23)_0x4c76da['addRange'](_0x14c8d2);return _0x4c76da;}const _0x27246a=_0x4e6c1e(),_0x193588=_0x5ae80a['id'],_0x3719e4=_0x23ae('0xb5')+_0x1bbdbe,_0x1e9c22=this[_0x23ae('0xb0')]({'id':_0x27246a,'type':_0x3719e4,'data':_0x4ef8c5,'createdAt':new Date(),'authorId':_0x193588,'attributes':_0x5e7e1b});for(const _0x7225f9 of _0x30db23)this['_addSuggestionMarker'](_0x3719e4,_0x27246a,_0x193588,_0x7225f9,_0x3d27b9[_0x23ae('0x116')]());return _0x1e9c22;}[_0x23ae('0x51')](_0x28c054,_0x228f91=null,_0x11a849={}){if(_0x28c054[_0x23ae('0xe3')])return null;const _0x2cafe4=this['editor'][_0x23ae('0xae')][_0x23ae('0x148')]('Users')['me'],_0x4539c3=new _0x384459(_0x28c054['start'],_0x28c054[_0x23ae('0x7c')]);for(const {suggestion:_0x556362,meta:_0x3af90b}of this['_findSuggestions'](_0x4539c3,'insertion'))if(_0x3af90b['isOwn']&&!_0x3af90b[_0x23ae('0x7a')]){if(_0x556362[_0x23ae('0x27')]){const _0x3f1326=_0x556362[_0x23ae('0x30')]()[_0x23ae('0xd6')](_0xc2623f=>_0x23ae('0xc7')!=_0xc2623f[_0x23ae('0x62')][_0x23ae('0x94')]);_0x3f1326[_0x23ae('0x112')](_0x250c33=>_0x4539c3[_0x23ae('0x117')](_0x250c33,!0x0))&&_0x556362['discard']();if(_0x3f1326[_0x23ae('0xd2')](_0x57bb82=>_0x57bb82[_0x23ae('0x117')](_0x4539c3,!0x0))){const _0x56e9c3=this[_0x23ae('0x10e')]['getSuggestionCallback'](_0x23ae('0x68'),_0x228f91,_0x23ae('0xfb'));return this[_0x23ae('0x143')](()=>_0x56e9c3([_0x4539c3],null,_0x11a849)),null;}}else{const _0x37a4c6=_0x4539c3[_0x23ae('0x10b')](_0x556362['getFirstRange']());null!==_0x37a4c6&&_0x556362[_0x23ae('0x13')]([_0x37a4c6],null,_0x11a849);}}if(_0x4539c3[_0x23ae('0x5')](),_0x4539c3[_0x23ae('0xe3')]||_0x23ae('0xc7')==_0x4539c3['root']['rootName'])return null;let _0x5e2f9e=null,_0x564f22=_0x4539c3[_0x23ae('0xd7')],_0xfee17c=_0x4539c3[_0x23ae('0x7c')];const _0x15e6c6=this[_0x23ae('0x8a')](_0x4539c3,_0x23ae('0x68'));for(const {suggestion:_0x86db35,meta:_0x4ece58}of _0x15e6c6){const _0x32758d=this[_0x23ae('0x37')][_0x23ae('0x131')](_0x564f22,_0xfee17c);if(_0x4ece58[_0x23ae('0xd9')]&&(this[_0x23ae('0x127')]||!_0x4ece58[_0x23ae('0xa9')]&&!_0x4ece58[_0x23ae('0xdb')])){if(_0x86db35[_0x23ae('0x27')]){if(!Gt(_0x86db35,_0x11a849))continue;let _0x46b4b9=!0x0;for(const _0x38d501 of _0x86db35[_0x23ae('0x30')]()){if(_0x38d501[_0x23ae('0x117')](_0x32758d,!0x0))return _0x86db35;_0x32758d[_0x23ae('0x117')](_0x38d501)||(_0x46b4b9=!0x1);}_0x46b4b9&&_0x86db35['discard']();}else{const _0x158d51=_0x86db35[_0x23ae('0x1')]();if(_0x158d51[_0x23ae('0x117')](_0x32758d,!0x0))return _0x86db35;if(!Gt(_0x86db35,_0x11a849)){_0x32758d[_0x23ae('0x117')](_0x158d51)?_0x86db35[_0x23ae('0x72')]():_0x158d51['containsPosition'](_0x564f22)?_0x564f22=_0x158d51[_0x23ae('0x7c')]:_0x158d51['containsPosition'](_0xfee17c)&&(_0xfee17c=_0x158d51[_0x23ae('0xd7')]);continue;}_0x564f22=_0x564f22['isBefore'](_0x158d51[_0x23ae('0xd7')])?_0x564f22:_0x158d51['start'],_0xfee17c=_0xfee17c[_0x23ae('0x178')](_0x158d51[_0x23ae('0x7c')])?_0xfee17c:_0x158d51[_0x23ae('0x7c')],_0x11a849=Object[_0x23ae('0x74')]({},_0x86db35[_0x23ae('0x16a')]),_0x5e2f9e?_0x158d51[_0x23ae('0xd7')][_0x23ae('0x3')](_0x5e2f9e['getFirstRange']()['start'])?(_0x5e2f9e[_0x23ae('0x72')](),_0x5e2f9e=_0x86db35):_0x86db35[_0x23ae('0x72')]():_0x5e2f9e=_0x86db35;}}}if(_0x5e2f9e)return this[_0x23ae('0xc0')](_0x5e2f9e,this[_0x23ae('0x37')][_0x23ae('0x131')](_0x564f22,_0xfee17c)),_0x5e2f9e;{const _0x197616=_0x4e6c1e(),_0x5ecc9f=this[_0x23ae('0x37')][_0x23ae('0x131')](_0x564f22,_0xfee17c),_0x2f36b5=_0x2cafe4['id'],_0x5cdff1=_0x228f91?_0x23ae('0x132')+_0x228f91:'deletion',_0x2df89f=this[_0x23ae('0xb0')]({'id':_0x197616,'type':_0x5cdff1,'createdAt':new Date(),'authorId':_0x2f36b5,'attributes':_0x11a849});return this[_0x23ae('0x101')](_0x5cdff1,_0x197616,_0x2f36b5,_0x5ecc9f),_0x2df89f;}}[_0x23ae('0x11a')](_0x1e0fc9,_0x48a99d='multi',_0x2b008c={}){const _0x2fa62d=this[_0x23ae('0x11e')]['plugins']['get'](_0x23ae('0x3c'))['me'],_0x4011c5=_0x1e0fc9['map'](_0x92d74d=>new _0x384459(_0x92d74d['start'],_0x92d74d[_0x23ae('0x7c')])),_0x9f090d=new Set();for(const {suggestion:_0x27285b,meta:_0x553ac0}of this[_0x23ae('0x8a')](_0x4011c5,_0x23ae('0x12')))_0x553ac0[_0x23ae('0xd9')]&&!_0x553ac0[_0x23ae('0x7a')]&&_0x9f090d[_0x23ae('0x15')](_0x27285b);for(const _0x17e7c1 of _0x9f090d)if(_0x17e7c1[_0x23ae('0x27')]){const _0xcb4a65=_0x17e7c1[_0x23ae('0x30')]();(!_0x17e7c1[_0x23ae('0x16a')]||!_0x17e7c1[_0x23ae('0x16a')][_0x23ae('0x13d')])&&(_0xcb4a65[_0x23ae('0x112')](_0x252437=>_0x4011c5[_0x23ae('0xd2')](_0x5dcded=>_0x5dcded[_0x23ae('0x117')](_0x252437,!0x0)))&&_0x17e7c1['discard']());if(_0x4011c5[_0x23ae('0x112')](_0x431923=>_0xcb4a65[_0x23ae('0xd2')](_0x541fa2=>_0x541fa2[_0x23ae('0x117')](_0x431923,!0x0)))){const _0x4aa569=this[_0x23ae('0x10e')]['getSuggestionCallback'](_0x23ae('0x68'),_0x48a99d,'accept');return this[_0x23ae('0x143')](()=>_0x4aa569(_0x1e0fc9,null,_0x2b008c)),null;}}else{const _0x44ed7b=_0x17e7c1['getFirstRange']();_0x4011c5[_0x23ae('0xd2')](_0x77095b=>_0x77095b[_0x23ae('0x117')](_0x44ed7b,!0x0))&&_0x17e7c1[_0x23ae('0x167')]();if(_0x4011c5['every'](_0x52fb0b=>_0x44ed7b[_0x23ae('0x117')](_0x52fb0b,!0x0))){const _0xa9c338=this['_suggestionFactory'][_0x23ae('0x34')](_0x23ae('0x68'),_0x48a99d,_0x23ae('0xfb'));return this[_0x23ae('0x143')](()=>_0xa9c338(_0x4011c5,null,_0x2b008c)),null;}}const _0x4f5421=this[_0x23ae('0x10e')][_0x23ae('0x34')]('deletion',_0x48a99d,_0x23ae('0xb9'));let _0x2c66c5=null;for(const _0x5612f3 of this[_0x23ae('0x141')]())if(_0x5612f3[_0x23ae('0x3b')]['id']==_0x2fa62d['id']&&_0x5612f3['isInContent']&&_0x23ae('0x68')==_0x5612f3[_0x23ae('0x15c')]&&_0x5612f3[_0x23ae('0x11c')]==_0x48a99d&&Gt(_0x5612f3,_0x2b008c)&&(_0x4f5421(_0x5612f3[_0x23ae('0x30')](),_0x4011c5)||_0x4f5421(_0x4011c5,_0x5612f3['getRanges']()))){if(_0x2c66c5){if(_0x5612f3['commentThread']&&_0x5612f3[_0x23ae('0x14c')]['length'])continue;for(const _0x93e5f6 of _0x5612f3[_0x23ae('0x30')]())_0x2c66c5[_0x23ae('0x11d')](_0x93e5f6)||_0x2c66c5['addRange'](_0x93e5f6);_0x5612f3[_0x23ae('0x72')]();}else{_0x2c66c5=_0x5612f3;for(const _0x1dee94 of _0x4011c5)_0x5612f3[_0x23ae('0x11d')](_0x1dee94)||_0x5612f3[_0x23ae('0x154')](_0x1dee94);}}if(_0x2c66c5)return _0x2c66c5;_0x9f090d[_0x23ae('0x29')]();for(const {suggestion:_0x53c4ff,meta:_0x53dcbd}of this[_0x23ae('0x8a')](_0x4011c5,_0x23ae('0x68')))_0x53dcbd[_0x23ae('0xd9')]&&(this[_0x23ae('0x127')]||!_0x53dcbd[_0x23ae('0xa9')]&&!_0x53dcbd[_0x23ae('0xdb')])&&Gt(_0x53c4ff,_0x2b008c)&&_0x9f090d[_0x23ae('0x15')](_0x53c4ff);for(const _0x38efa2 of _0x9f090d){const _0x308e0f=_0x38efa2[_0x23ae('0x30')]();if(!_0x2b008c||!_0x2b008c[_0x23ae('0x13d')]){if(_0x4011c5[_0x23ae('0x112')](_0x21263a=>_0x308e0f['some'](_0x1fe3e5=>_0x1fe3e5[_0x23ae('0x117')](_0x21263a,!0x0))))return _0x38efa2;}(!_0x38efa2[_0x23ae('0x16a')]||!_0x38efa2['attributes'][_0x23ae('0x13d')])&&(_0x308e0f[_0x23ae('0x112')](_0x45ceef=>_0x4011c5[_0x23ae('0xd2')](_0x3ecb8b=>_0x3ecb8b[_0x23ae('0x117')](_0x45ceef,!0x0)))&&_0x38efa2[_0x23ae('0x167')]());}const _0x1df5b0=_0x4e6c1e(),_0x370aa3=_0x2fa62d['id'],_0x1b5a03=_0x23ae('0x132')+_0x48a99d,_0x1da7e6=this[_0x23ae('0xb0')]({'id':_0x1df5b0,'type':_0x1b5a03,'createdAt':new Date(),'authorId':_0x370aa3,'attributes':_0x2b008c});for(const _0x768a76 of _0x4011c5)_0x768a76['detach'](),_0x768a76[_0x23ae('0xe3')]||'$graveyard'==_0x768a76[_0x23ae('0x62')][_0x23ae('0x94')]||this[_0x23ae('0x101')](_0x1b5a03,_0x1df5b0,_0x370aa3,_0x768a76,_0x3d27b9[_0x23ae('0x116')]());return _0x1da7e6;}['markAttributeChange'](_0x4961d5,_0x3789c9,_0x3f0017,_0x50dccc,_0xa10779){if(_0x4961d5[_0x23ae('0xe3')])return[];if(_0x23ae('0xf7')===this[_0x23ae('0xca')])return[];const _0xb61767=this['editor'][_0x23ae('0xae')][_0x23ae('0x148')](_0x23ae('0x3c'))['me']['id'],_0x5e5bdf=Array['from'](this['_suggestions'][_0x23ae('0xa7')]())[_0x23ae('0xd6')](_0x6e0ebb=>_0x23ae('0xbd')==_0x6e0ebb[_0x23ae('0x15c')]&&_0x6e0ebb[_0x23ae('0x52')][_0x23ae('0x80')]==_0x3789c9&&_0x6e0ebb[_0x23ae('0x11d')](_0x4961d5));if(_0x23ae('0x16c')===this[_0x23ae('0xca')]){const _0x471dde=this[_0x23ae('0x8a')](_0x4961d5,_0x23ae('0x12'))[_0x23ae('0xd6')](({meta:_0x55a5cf})=>_0x55a5cf[_0x23ae('0xd9')]&&!_0x55a5cf['isInsideObject']&&!_0x55a5cf[_0x23ae('0x7a')])[_0x23ae('0x152')](({suggestion:_0x10b367})=>_0x10b367);_0x5e5bdf[_0x23ae('0x4f')](..._0x471dde);}const _0xf6672=new Map([[_0x4961d5,_0x3f0017]]);for(const _0x57ac9b of _0x5e5bdf){const _0x5441e8=_0x23ae('0xbd')==_0x57ac9b[_0x23ae('0x15c')]?_0x57ac9b[_0x23ae('0x52')][_0x23ae('0xe9')]:void 0x0,_0x3f50bb=_0x57ac9b[_0x23ae('0x1')](),_0x20d737=Array[_0x23ae('0xb8')](_0xf6672['keys']())[_0x23ae('0xd1')](_0x2095aa=>_0x2095aa[_0x23ae('0xf0')](_0x3f50bb));if(!_0x20d737)continue;const _0x23435c=_0x20d737[_0x23ae('0xb3')](_0x3f50bb);this['_isBlockAttribute'](_0x3789c9)&&_0x23ae('0x12')==_0x57ac9b['type']&&0x0!=_0x23435c[_0x23ae('0xa1')]||(_0xf6672['delete'](_0x20d737),_0x23435c['forEach'](_0x30ff16=>{_0xf6672[_0x23ae('0x142')](_0x30ff16,_0x3f0017);}),_0x23ae('0x12')!=_0x57ac9b[_0x23ae('0x15c')]&&_0x5441e8!=_0x50dccc&&_0xf6672['set'](_0x20d737['getIntersection'](_0x3f50bb),_0x5441e8));}const _0x3c0ead=[];for(const [_0x15d9d4,_0x38924f]of _0xf6672){const _0x268303=_0x4e6c1e(),_0x16680e={'key':_0x3789c9,'oldValue':_0x38924f,'newValue':_0x50dccc};_0x3789c9[_0x23ae('0xa1')]>0x25&&console[_0x23ae('0x12b')](_0x23ae('0x121'),{'key':_0x3789c9});const _0x228a7e=(_0x23ae('0x5b')+(_0x3789c9+'|'+Rt({'newValue':_0x50dccc})))[_0x23ae('0x10a')](0x0,0x3c),_0x50a513=this[_0x23ae('0xb0')]({'id':_0x268303,'type':_0x228a7e,'data':_0x16680e,'createdAt':new Date(),'authorId':_0xb61767,'attributes':_0xa10779});_0x3c0ead[_0x23ae('0xef')](_0x50a513),this['_addSuggestionMarker'](_0x228a7e,_0x268303,_0xb61767,_0x15d9d4);}return _0x3c0ead;}[_0x23ae('0xcb')](_0xa5a0f7){this[_0x23ae('0xe4')][_0x23ae('0x15')](_0xa5a0f7);}['_registerInlineAttribute'](_0x592268){this[_0x23ae('0xac')][_0x23ae('0x15')](_0x592268);}[_0x23ae('0x177')](_0x21055a,_0x41664e=[],_0xf3fbae=[]){this[_0x23ae('0xb4')](_0x21055a,(_0x44ac61,..._0x5c9495)=>{this[_0x23ae('0xfa')](()=>{_0x44ac61(..._0x5c9495);});});for(const _0x1c11c2 of _0x41664e)this[_0x23ae('0xcc')](_0x1c11c2);for(const _0xfc4cb9 of _0xf3fbae)this[_0x23ae('0xcb')](_0xfc4cb9);}[_0x23ae('0xc0')](_0x4f7132,_0x5db20e){const _0x2a0b2d=_0x4f7132[_0x23ae('0x14')]();this[_0x23ae('0x37')]['change'](_0x1bead4=>{_0x1bead4[_0x23ae('0x45')](_0x2a0b2d,{'range':_0x5db20e});});}['_addThreadToSuggestion'](_0x565eb7){const _0x8bfb57=_0x565eb7['id'],_0x5ee2c9=this[_0x23ae('0x11e')][_0x23ae('0x12c')]['get'](_0x23ae('0x114'));this[_0x23ae('0x173')][_0x23ae('0x7e')](_0x8bfb57)||this[_0x23ae('0x173')][_0x23ae('0x13e')]({'channelId':_0x5ee2c9,'threadId':_0x8bfb57,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2ce857=this[_0x23ae('0x173')][_0x23ae('0x13f')](_0x8bfb57);_0x2ce857[_0x23ae('0x44')](_0x23ae('0x1c')),_0x2ce857[_0x23ae('0x1c')]=!0x1,_0x565eb7[_0x23ae('0x14c')]=_0x2ce857;}['_checkSuggestionCorrectness'](_0x486b3b,_0x908d34,_0x39bcee,_0x5c2719){if(_0x486b3b[_0x23ae('0x15c')]!=_0x908d34||_0x486b3b[_0x23ae('0x11c')]!=_0x39bcee||_0x486b3b['creator']['id']!=_0x5c2719)throw this[_0x23ae('0x11e')][_0x23ae('0xb1')](_0x23ae('0x139')),new _0x3918ce(_0x23ae('0x139'),this);}[_0x23ae('0x2b')](_0x2f984c,_0x235db0){const _0xd2d4bf=_0x2f984c['getFirstRange']();if(_0x235db0[_0x23ae('0xc5')](_0xd2d4bf))_0x2f984c[_0x23ae('0x72')]();else{if(_0xd2d4bf[_0x23ae('0x117')](_0x235db0)){const _0xe5835b=this[_0x23ae('0x37')][_0x23ae('0x130')](_0x235db0[_0x23ae('0xd7')]['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f984c,this[_0x23ae('0x37')][_0x23ae('0x131')](_0xd2d4bf['start'],_0xe5835b));const _0x8e543f=_0x4e6c1e(),_0x2a181f=_0x2f984c[_0x23ae('0x38')]['id'],_0x277ad4=_0x2f984c[_0x23ae('0x15c')]+':'+_0x2f984c[_0x23ae('0x11c')];this[_0x23ae('0xb0')]({'id':_0x8e543f,'type':_0x277ad4,'createdAt':new Date(),'authorId':_0x2a181f,'data':_0x2f984c['data'],'attributes':_0x2f984c['attributes']});const _0x4b7982=this[_0x23ae('0x37')]['createPositionAt'](_0x235db0[_0x23ae('0x7c')][_0x23ae('0xa5')],_0x23ae('0x129')),_0x49cb42=this[_0x23ae('0x37')]['createRange'](_0x4b7982,_0xd2d4bf[_0x23ae('0x7c')]);this[_0x23ae('0x101')](_0x277ad4,_0x8e543f,_0x2a181f,_0x49cb42);}else{if(_0xd2d4bf['containsPosition'](_0x235db0[_0x23ae('0xd7')])){const _0x8516dd=this[_0x23ae('0x37')][_0x23ae('0x130')](_0x235db0[_0x23ae('0xd7')][_0x23ae('0x14f')],_0x23ae('0x7c'));this[_0x23ae('0xc0')](_0x2f984c,this[_0x23ae('0x37')][_0x23ae('0x131')](_0xd2d4bf[_0x23ae('0xd7')],_0x8516dd));}else{const _0x2ec882=this[_0x23ae('0x37')]['createPositionAt'](_0x235db0[_0x23ae('0x7c')][_0x23ae('0xa5')],'after');this['_setSuggestionRange'](_0x2f984c,this['_model'][_0x23ae('0x131')](_0x2ec882,_0xd2d4bf[_0x23ae('0x7c')]));}}}}[_0x23ae('0x4c')](_0x25e6b6){for(const {suggestion:_0x30beaa,meta:_0x12c9a6}of this[_0x23ae('0x8a')](_0x25e6b6,_0x23ae('0x12'))){if(!_0x12c9a6[_0x23ae('0xd9')])continue;const _0x2abb80=_0x30beaa[_0x23ae('0x30')]();for(const _0x1ba7f8 of _0x2abb80)if(!_0x25e6b6[_0x23ae('0xb3')](_0x1ba7f8)[_0x23ae('0xa1')])return!0x0;}return!0x1;}[_0x23ae('0xcd')](_0x1bb207){const _0x19ac6e=this['editor'][_0x23ae('0xae')][_0x23ae('0x148')](_0x23ae('0x3c'))[_0x23ae('0xfd')](_0x1bb207);if(!_0x19ac6e)throw new _0x3918ce(_0x23ae('0x12a'),this);return _0x19ac6e;}['_getExternalAuthor'](_0x43df78){const _0x23dfe3=this[_0x23ae('0x11e')][_0x23ae('0xae')][_0x23ae('0x148')](_0x23ae('0x3c')),_0x9dcd95=_0x39bb41('external:'+_0x43df78),_0x460e1a=_0x23dfe3[_0x23ae('0xfd')](_0x9dcd95);return _0x460e1a||_0x23dfe3[_0x23ae('0x28')]({'id':_0x9dcd95,'name':_0x43df78});}[_0x23ae('0x79')](_0x53a965,_0x4372bb,_0x24fabd,_0xc30a6d,_0x3f6303){const _0x2bf0fa=this[_0x23ae('0xcd')](_0xc30a6d),_0x5ce6ff=this[_0x23ae('0x10e')][_0x23ae('0x134')](_0x53a965,_0x4372bb,_0x24fabd,_0x2bf0fa,_0x3f6303,_0x1385b4=>this[_0x23ae('0x13b')](_0x24fabd,{'attributes':_0x1385b4}));return this['listenTo'](_0x5ce6ff,_0x23ae('0xfb'),()=>{this['_updateSuggestionData'](_0x24fabd,{'state':_0x23ae('0x128')});},{'priority':_0x23ae('0x95')}),this[_0x23ae('0x1a')](_0x5ce6ff,'discard',()=>{this[_0x23ae('0x13b')](_0x24fabd,{'state':_0x23ae('0xbc')});},{'priority':'high'}),this[_0x23ae('0x32')][_0x23ae('0x142')](_0x24fabd,_0x5ce6ff),this[_0x23ae('0x53')][_0x23ae('0x142')](_0x5ce6ff,_0x23ae('0xf3')),_0x5ce6ff;}[_0x23ae('0x172')](_0x585b1d){const _0x485770=_0x585b1d[_0x23ae('0x2f')](':');return{'group':_0x485770[0x0],'type':_0x485770[0x1],'subType':_0x485770['length']>=0x5?_0x485770[0x2]:null,'id':_0x485770['length']<0x5?_0x485770[0x2]:_0x485770[0x3],'authorId':_0x485770[_0x23ae('0xa1')]<0x5?_0x485770[0x3]:_0x485770[0x4],'markerCount':0x6==_0x485770[_0x23ae('0xa1')]?_0x485770[0x5]:null};}[_0x23ae('0xc1')](_0x5a7dc1,_0x12820b,_0x9f323a){const _0x1259f2=_0x5a7dc1[_0x23ae('0x1')](),_0x4686c3=_0x1259f2[_0x23ae('0xd7')],_0x417f98=_0x1259f2['end'];this[_0x23ae('0xc0')](_0x5a7dc1,this[_0x23ae('0x37')][_0x23ae('0x131')](_0x4686c3,_0x12820b));const _0x45265a=_0x4e6c1e(),_0x4f8f90=_0x5a7dc1['creator']['id'],_0x94448d=_0x5a7dc1[_0x23ae('0x15c')]+(_0x5a7dc1[_0x23ae('0x11c')]?':'+_0x5a7dc1[_0x23ae('0x11c')]:'');this[_0x23ae('0xb0')]({'id':_0x45265a,'type':_0x94448d,'createdAt':new Date(),'authorId':_0x4f8f90,'originalSuggestionId':_0x5a7dc1['id'],'attributes':_0x5a7dc1[_0x23ae('0x16a')],'data':_0x5a7dc1[_0x23ae('0x52')]});const _0x5d843b=Pt(_0x5a7dc1);(_0x23ae('0xee')==_0x5a7dc1[_0x23ae('0x15c')]||_0x5d843b&&this[_0x23ae('0x123')](_0x5d843b))&&(_0x9f323a=this['_model']['createPositionBefore'](_0x9f323a[_0x23ae('0xa5')])),this[_0x23ae('0x101')](_0x94448d,_0x45265a,_0x4f8f90,this[_0x23ae('0x37')][_0x23ae('0x131')](_0x9f323a,_0x417f98));}[_0x23ae('0x8a')](_0x112cd0,_0x448773=null){const _0x3ce530=[],_0x229623=this['editor'][_0x23ae('0xae')][_0x23ae('0x148')](_0x23ae('0x3c'))['me'];Array[_0x23ae('0x49')](_0x112cd0)||(_0x112cd0=[_0x112cd0]);for(const _0xecda06 of this[_0x23ae('0x141')]()){if(!_0xecda06[_0x23ae('0x145')])continue;if(_0x448773&&_0xecda06['type']!=_0x448773)continue;let _0x4f39b1=!0x1;for(const _0x24ce33 of _0xecda06[_0x23ae('0x30')]()){for(const _0x2295b9 of _0x112cd0){const _0x22d7f6=_0x2295b9[_0x23ae('0xd7')][_0x23ae('0xc5')](_0x24ce33[_0x23ae('0x7c')])||_0x2295b9[_0x23ae('0x7c')][_0x23ae('0xc5')](_0x24ce33[_0x23ae('0xd7')]);if(_0x22d7f6||_0x2295b9[_0x23ae('0x10b')](_0x24ce33)){const _0x31fc0a=_0x2295b9[_0x23ae('0x117')](_0x24ce33)&&Tt(this[_0x23ae('0x37')][_0x23ae('0x108')],_0x24ce33[_0x23ae('0xd7')],_0x2295b9),_0x4abd5c=_0x24ce33[_0x23ae('0x117')](_0x2295b9)&&Tt(this[_0x23ae('0x37')][_0x23ae('0x108')],_0x2295b9['start'],_0x24ce33);_0x3ce530[_0x23ae('0xef')]({'suggestion':_0xecda06,'meta':{'isOwn':_0x229623==_0xecda06['author'],'isNextTo':_0x22d7f6,'isInsideObject':_0x31fc0a,'containsRangeInObject':_0x4abd5c}}),_0x4f39b1=!0x0;break;}}if(_0x4f39b1)break;}}return _0x3ce530;}['_addSuggestionMarker'](_0xbf371e,_0x59b4cf,_0x545d01,_0x7694c3,_0x2076cf){this[_0x23ae('0x37')][_0x23ae('0x6e')](_0x2911b5=>{let _0x49e98f=_0x23ae('0x57')+_0xbf371e+':'+_0x59b4cf+':'+_0x545d01;_0x2076cf&&(_0x49e98f=_0x49e98f+':'+_0x2076cf),_0x2911b5[_0x23ae('0x91')](_0x49e98f,{'range':_0x7694c3,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x23ae('0x109')](_0x52c5e3){const _0x2f92a0=_0x52c5e3[_0x23ae('0x11b')],_0x2d3d7c=_0x52c5e3[_0x23ae('0x179')];_0x52c5e3[_0x23ae('0x11b')]=null,_0x52c5e3['next']=null,null!=_0x2f92a0&&(_0x2f92a0[_0x23ae('0x179')]=_0x2d3d7c),null!=_0x2d3d7c&&(_0x2d3d7c[_0x23ae('0x11b')]=_0x2f92a0),_0x23ae('0xf4')==this[_0x23ae('0x53')][_0x23ae('0x148')](_0x52c5e3)&&(this[_0x23ae('0x53')][_0x23ae('0x142')](_0x52c5e3,_0x23ae('0x7f')),this[_0x23ae('0x4e')]('suggestionUnloaded',_0x52c5e3,_0x2f92a0,_0x2d3d7c));}[_0x23ae('0xb0')](_0x3be391){const _0x90096a=_0x3be391['id'],_0x13a496=this['addSuggestionData'](_0x3be391);if(this[_0x23ae('0x33')]&&this[_0x23ae('0x33')][_0x23ae('0xf9')]){const _0x24b22e=this[_0x23ae('0x11e')]['plugins']['get'](_0x23ae('0xd4')),_0x3442c1=_0x13a496[_0x23ae('0x0')],_0x24478a=_0x13a496[_0x23ae('0x11c')]?_0x13a496[_0x23ae('0x15c')]+':'+_0x13a496[_0x23ae('0x11c')]:_0x13a496['type'],_0x4ed196=this[_0x23ae('0x11e')][_0x23ae('0x82')],_0x18c721=_0x24b22e[_0x23ae('0x15')](_0x1d5e1f(_0x4ed196,_0x23ae('0x15d'))),_0xa411a7={'id':_0x90096a,'type':_0x24478a,'hasComments':_0x3442c1,'data':_0x3be391['data']||null,'originalSuggestionId':_0x3be391[_0x23ae('0x71')]||null,'attributes':_0x13a496[_0x23ae('0x16a')]};this[_0x23ae('0x33')][_0x23ae('0xf9')](_0xa411a7)[_0x23ae('0x155')](_0x5d0fe9=>{_0x13a496[_0x23ae('0xbe')]=!0x0,_0x24b22e['remove'](_0x18c721),_0x5d0fe9&&_0x5d0fe9['createdAt']&&(this[_0x23ae('0x32')][_0x23ae('0x148')](_0x90096a)[_0x23ae('0x9a')]=_0x5d0fe9['createdAt']);})[_0x23ae('0x157')](_0x58a6aa=>{throw _0x444db6('error-saving-suggestion-data-suggestion-discarded'),this[_0x23ae('0x11e')][_0x23ae('0x10')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x13a496[_0x23ae('0x167')]();}),_0x13a496[_0x23ae('0x92')](),this[_0x23ae('0x32')][_0x23ae('0x76')](_0x13a496['id']),this[_0x23ae('0x53')][_0x23ae('0x76')](_0x13a496),_0x58a6aa;});}return _0x13a496;}['_isBlockAttribute'](_0x2e05e5){return this[_0x23ae('0xe4')][_0x23ae('0x16e')](_0x2e05e5);}[_0x23ae('0x13b')](_0x2f640b,_0x27bcc8){const _0x501a27=this[_0x23ae('0x11e')][_0x23ae('0xae')][_0x23ae('0x148')]('PendingActions'),_0x5add81=this[_0x23ae('0x15f')](_0x2f640b);if(this[_0x23ae('0x33')]&&this[_0x23ae('0x33')][_0x23ae('0x43')]){if(_0x5add81[_0x23ae('0xbe')]){const _0x78a9=_0x501a27['add'](_0x1d5e1f(this[_0x23ae('0x11e')][_0x23ae('0x82')],'PENDING_ACTION_SUGGESTION'));this[_0x23ae('0x33')][_0x23ae('0x43')](_0x2f640b,_0x27bcc8)[_0x23ae('0x155')](()=>{_0x501a27[_0x23ae('0xe2')](_0x78a9);});}else _0x5add81['on'](_0x23ae('0x20'),()=>{this[_0x23ae('0x13b')](_0x2f640b,_0x27bcc8);});}}[_0x23ae('0x175')](_0x7a8ef3){if(!this['_adapter']||!this['_adapter'][_0x23ae('0x15f')])throw new _0x3918ce(_0x23ae('0x4b'),this);return this[_0x23ae('0x33')][_0x23ae('0x15f')](_0x7a8ef3);}['_handleNewSuggestionMarker'](_0x4592fa){const {id:_0x593c0e,type:_0xf269f7,subType:_0x4327b6,authorId:_0x1e8dff}=this[_0x23ae('0x172')](_0x4592fa),_0x76e57b=this[_0x23ae('0x32')][_0x23ae('0x148')](_0x593c0e)||this[_0x23ae('0x79')](_0xf269f7,_0x4327b6,_0x593c0e,_0x1e8dff,{});switch(this[_0x23ae('0xf2')](_0x76e57b,_0xf269f7,_0x4327b6,_0x1e8dff),this[_0x23ae('0x53')][_0x23ae('0x148')](_0x76e57b)){case'notReady':this[_0x23ae('0x175')](_0x593c0e)[_0x23ae('0x155')](_0x4ac2b2=>{let _0x1093cc=Promise['resolve']();_0x4ac2b2[_0x23ae('0x0')]&&(_0x1093cc=this[_0x23ae('0x173')][_0x23ae('0x3e')]({'channelId':this[_0x23ae('0x11e')][_0x23ae('0x12c')]['get'](_0x23ae('0x114')),'threadId':_0x593c0e})),_0x1093cc[_0x23ae('0x155')](()=>{this[_0x23ae('0xec')](_0x4ac2b2)[_0x23ae('0xbe')]=!0x0;});}),this['_suggestionState'][_0x23ae('0x142')](_0x76e57b,_0x23ae('0x103'));break;case _0x23ae('0x7f'):this['_updateSuggestionData'](_0x593c0e,{'state':_0x23ae('0xbf')});case'dataReady':this['_suggestionState']['set'](_0x76e57b,_0x23ae('0xf4')),this[_0x23ae('0x4e')](_0x23ae('0xdf'),_0x76e57b);break;case _0x23ae('0xf4'):this['fire'](_0x23ae('0xb2'),_0x76e57b);}return _0x76e57b['addMarkerName'](_0x4592fa),_0x76e57b;}[_0x23ae('0x16')](_0x338968){const _0x5930b9=Array[_0x23ae('0xb8')](_0x338968),_0x14ab23=_0x5930b9[_0x23ae('0xd6')](_0x3a58e3=>_0x23ae('0xbd')==_0x3a58e3[_0x23ae('0x15c')]);this[_0x23ae('0x124')](_0x14ab23);const _0x279438=_0x5930b9[_0x23ae('0xd6')](_0x3682e5=>!_0x3682e5['isMultiRange']&&'attribute'!=_0x3682e5[_0x23ae('0x15c')]),_0x444357=this['getSuggestions']({'skipNotAttached':!0x0})[_0x23ae('0xd6')](_0x727ca0=>!_0x727ca0[_0x23ae('0x27')]&&_0x23ae('0xbd')!=_0x727ca0[_0x23ae('0x15c')]),_0x3c75f2=_0x444357[_0x23ae('0xd6')](_0xb26cb4=>!_0x338968[_0x23ae('0x16e')](_0xb26cb4)),_0x2b062d=new Map(_0x444357[_0x23ae('0x152')](_0x51f706=>[_0x51f706,this[_0x23ae('0x10e')][_0x23ae('0x34')](_0x51f706['type'],_0x51f706['subType'],_0x23ae('0x86'))])),_0x28f6b9=new Map(_0x444357[_0x23ae('0x152')](_0x1062e6=>[_0x1062e6,_0x1062e6[_0x23ae('0x1')]()])),_0x3dbf8f=new Set(),_0x2585be=new Set();for(let _0x58eaf4=0x0;_0x58eaf4<_0x279438[_0x23ae('0xa1')];_0x58eaf4++)_0x58a21f(_0x279438[_0x58eaf4],_0x279438,_0x58eaf4+0x1);for(let _0x37c150=0x0;_0x37c150<_0x279438[_0x23ae('0xa1')];_0x37c150++)_0x58a21f(_0x279438[_0x37c150],_0x3c75f2,0x0);const _0x524754=new Set();for(let _0x31a836=0x0;_0x31a836<_0x279438[_0x23ae('0xa1')];_0x31a836++){const _0x6e10c8=_0x279438[_0x31a836];!_0x2585be['has'](_0x6e10c8)&&_0x6e10c8[_0x23ae('0x11b')]&&(_0x524754[_0x23ae('0x15')](_0x6e10c8[_0x23ae('0x11b')]),_0x6e10c8['previous'][_0x23ae('0x179')]===_0x6e10c8&&(_0x6e10c8[_0x23ae('0x11b')]['next']=null),_0x6e10c8['previous']=null),!_0x3dbf8f['has'](_0x6e10c8)&&_0x6e10c8[_0x23ae('0x179')]&&(_0x524754[_0x23ae('0x15')](_0x6e10c8[_0x23ae('0x179')]),_0x6e10c8[_0x23ae('0x179')][_0x23ae('0x11b')]===_0x6e10c8&&(_0x6e10c8[_0x23ae('0x179')][_0x23ae('0x11b')]=null),_0x6e10c8[_0x23ae('0x179')]=null);}function _0x58a21f(_0x51e11f,_0x3a8866,_0x3800da){for(let _0x4536e1=_0x3800da;_0x4536e1<_0x3a8866['length'];_0x4536e1++){const _0x567059=_0x22ff86(_0x51e11f,_0x3a8866[_0x4536e1]);_0x567059&&(_0x567059[0x0][_0x23ae('0x179')]=_0x567059[0x1],_0x567059[0x1][_0x23ae('0x11b')]=_0x567059[0x0],_0x3dbf8f[_0x23ae('0x15')](_0x567059[0x0]),_0x2585be[_0x23ae('0x15')](_0x567059[0x1]));}}function _0x22ff86(_0x5e8229,_0x4b8814){if(_0x5e8229[_0x23ae('0x3b')]['id']!==_0x4b8814[_0x23ae('0x3b')]['id'])return null;const _0xe942a0=_0x2b062d[_0x23ae('0x148')](_0x5e8229)(_0x5e8229,_0x4b8814,_0x28f6b9['get'](_0x5e8229),_0x28f6b9[_0x23ae('0x148')](_0x4b8814));if(!_0xe942a0)return null;return _0x2b062d[_0x23ae('0x148')](_0x4b8814)(_0x5e8229,_0x4b8814,_0x28f6b9[_0x23ae('0x148')](_0x5e8229),_0x28f6b9['get'](_0x4b8814))?_0xe942a0[0x1][_0x23ae('0x14c')]&&_0xe942a0[0x1]['commentThread'][_0x23ae('0xa1')]?null:_0xe942a0:null;}_0x524754[_0x23ae('0xe1')]&&this[_0x23ae('0x16')](_0x524754);}[_0x23ae('0x124')](_0x368e0d){if(0x0==_0x368e0d[_0x23ae('0xa1')])return;const _0x5bc703=this['getSuggestions']({'skipNotAttached':!0x0})[_0x23ae('0xd6')](_0x14eb6d=>'attribute'==_0x14eb6d['type']&&_0x14eb6d['_isDataLoaded']),_0x29190b=[],_0x128e9a=new Map();for(const _0x34d851 of _0x5bc703){const _0x119669=_0x39bb41(_0x34d851['attributes']);_0x128e9a[_0x23ae('0x16e')](_0x119669)||(_0x128e9a['set'](_0x119669,_0x29190b[_0x23ae('0xa1')]),_0x29190b[_0x23ae('0xef')]([]));const _0x444f68=_0x128e9a['get'](_0x119669);_0x29190b[_0x444f68][_0x23ae('0xef')](_0x34d851);}!function(){_0x29190b[_0x23ae('0x17')]((_0x21f5da,_0x2e2c46)=>{const _0x39dca1=_0x21f5da[0x0][_0x23ae('0x9a')],_0x300dbe=_0x2e2c46[0x0][_0x23ae('0x9a')];return _0x39dca1==_0x300dbe?_0x21f5da[0x0][_0x23ae('0x16a')]['groupId']<_0x2e2c46[0x0]['attributes'][_0x23ae('0xeb')]?-0x1:0x1:_0x39dca1<_0x300dbe?-0x1:0x1;});for(const _0x541dd6 of _0x29190b)_0x541dd6[_0x23ae('0x17')]((_0x459dfe,_0x2ee8ff)=>_0x459dfe['id']<_0x2ee8ff['id']?-0x1:0x1);}();for(let _0x1631ee=0x0;_0x1631ee<_0x29190b[_0x23ae('0xa1')];_0x1631ee++){if(0x0==_0x29190b[_0x1631ee][_0x23ae('0xa1')])continue;const _0x34b8c9=[];for(let _0x3358b5=_0x1631ee+0x1;_0x3358b5<_0x29190b[_0x23ae('0xa1')];_0x3358b5++)0x0!=_0x29190b[_0x3358b5]['length']&&_0x2bcbba(_0x29190b[_0x1631ee],_0x29190b[_0x3358b5])&&_0x34b8c9[_0x23ae('0xef')](_0x3358b5);for(const _0x5e19cd of _0x34b8c9)_0x29190b[_0x1631ee]=_0x29190b[_0x1631ee]['concat'](_0x29190b[_0x5e19cd]),_0x29190b[_0x5e19cd]=[];}for(const _0x4cd00c of _0x29190b)for(let _0x3018e5=0x0;_0x3018e5<_0x4cd00c[_0x23ae('0xa1')];_0x3018e5++)_0x4cd00c[_0x3018e5][_0x23ae('0x179')]=_0x4cd00c[_0x3018e5+0x1]||null;for(const _0x5f21f8 of _0x29190b)for(let _0x12c9df=0x0;_0x12c9df<_0x5f21f8['length'];_0x12c9df++)_0x5f21f8[_0x12c9df][_0x23ae('0x11b')]=_0x5f21f8[_0x12c9df-0x1]||null;function _0x2bcbba(_0x75191b,_0x7f08af){if(_0x75191b[0x0][_0x23ae('0x3b')]!==_0x7f08af[0x0][_0x23ae('0x3b')])return!0x1;if(!function(_0x56eb1b,_0x4ed153){if(!_0x56eb1b[_0x23ae('0x0')]&&!_0x4ed153['hasComments'])return!0x0;if(_0x56eb1b[_0x23ae('0x0')]&&_0x4ed153[_0x23ae('0x0')])return!0x1;if(_0x56eb1b[_0x23ae('0x0')]&&_0x4ed153[_0x23ae('0x9a')]<_0x56eb1b['commentThread'][_0x23ae('0x147')][_0x23ae('0x148')](0x0)['createdAt'])return!0x0;if(_0x4ed153[_0x23ae('0x0')]&&_0x56eb1b[_0x23ae('0x9a')]<_0x4ed153[_0x23ae('0x14c')][_0x23ae('0x147')][_0x23ae('0x148')](0x0)['createdAt'])return!0x0;return!0x1;}(_0x75191b[0x0],_0x7f08af[0x0]))return!0x1;const _0x383bb6=_0x1b4521(_0x75191b[0x0][_0x23ae('0x16a')],_0x23ae('0xeb')),_0x92fa4a=_0x1b4521(_0x7f08af[0x0][_0x23ae('0x16a')],_0x23ae('0xeb'));if(!_0xaf05e6(_0x383bb6,_0x92fa4a))return!0x1;return!!_0x75191b['every'](_0x38ee25=>_0x7f08af[_0x23ae('0xd2')](_0x3d7913=>_0x38ee25[_0x23ae('0x1')]()[_0x23ae('0xc5')](_0x3d7913[_0x23ae('0x1')]())))&&_0x7f08af['every'](_0x4a8c5e=>_0x75191b['some'](_0x3cf6e1=>_0x4a8c5e[_0x23ae('0x1')]()[_0x23ae('0xc5')](_0x3cf6e1[_0x23ae('0x1')]())));}}['_joinWithAdjacentSuggestions'](_0x2f68ba){const _0x5c5482=Array['from'](_0x2f68ba),_0x2a4bea=this[_0x23ae('0x141')]({'skipNotAttached':!0x0}),_0x2c9206=_0x2a4bea['filter'](_0x146cfd=>!_0x2f68ba[_0x23ae('0x16e')](_0x146cfd)),_0x58b6b0=new Map(_0x5c5482['map'](_0x1608f8=>[_0x1608f8,this[_0x23ae('0x10e')][_0x23ae('0x34')](_0x1608f8[_0x23ae('0x15c')],_0x1608f8[_0x23ae('0x11c')],_0x23ae('0xb9'))])),_0x27463d=new Map(_0x2a4bea['map'](_0xd81b52=>[_0xd81b52,_0xd81b52[_0x23ae('0x30')]()]));for(let _0x68ce53=0x0;_0x68ce53<_0x5c5482[_0x23ae('0xa1')];_0x68ce53++){if(_0x2edff2(this,_0x5c5482[_0x68ce53],_0x5c5482,_0x68ce53+0x1))return!0x0;}for(let _0x407e98=0x0;_0x407e98<_0x5c5482[_0x23ae('0xa1')];_0x407e98++){if(_0x2edff2(this,_0x5c5482[_0x407e98],_0x2c9206,0x0))return!0x0;}return!0x1;function _0x2edff2(_0x3de653,_0x28370c,_0x59345b,_0x1179b1){for(let _0x591778=_0x1179b1;_0x591778<_0x59345b['length'];_0x591778++){const _0x13ab64=_0x59345b[_0x591778];if(_0x13ab64[_0x23ae('0x15c')]!==_0x28370c[_0x23ae('0x15c')]||_0x13ab64[_0x23ae('0x3b')]['id']!==_0x28370c[_0x23ae('0x3b')]['id']||_0x13ab64[_0x23ae('0x11c')]!==_0x28370c[_0x23ae('0x11c')])continue;if(!Vt(_0x28370c,_0x13ab64))continue;if('attribute'==_0x28370c[_0x23ae('0x15c')]&&_0x28370c[_0x23ae('0x52')]['oldValue']!=_0x13ab64[_0x23ae('0x52')]['oldValue'])continue;if('attribute'==_0x28370c[_0x23ae('0x15c')]&&_0x3de653['_isBlockAttribute'](_0x28370c[_0x23ae('0x52')]['key']))continue;if(_0x23ae('0xee')==_0x28370c[_0x23ae('0x15c')]){const _0x309afc=_0x3de653[_0x23ae('0x11e')][_0x23ae('0x10')],_0x35e09f=_0x28370c[_0x23ae('0x146')]();if(_0x35e09f&&(_0x309afc[_0x23ae('0x108')]['isObject'](_0x35e09f)||_0x309afc[_0x23ae('0x108')][_0x23ae('0x135')](_0x35e09f)))continue;}const _0x5b0e1a=_0x58b6b0[_0x23ae('0x148')](_0x28370c),_0x23af90=_0x27463d[_0x23ae('0x148')](_0x28370c),_0x527eb1=_0x27463d['get'](_0x13ab64),_0x586878=_0x28370c['commentThread']&&_0x28370c['commentThread']['length'],_0x235a4c=_0x13ab64['commentThread']&&_0x13ab64[_0x23ae('0x14c')][_0x23ae('0xa1')];if(!_0x586878&&_0x5b0e1a(_0x527eb1,_0x23af90))return _0x3de653[_0x23ae('0x14e')](_0x13ab64,_0x28370c),_0x27463d[_0x23ae('0x76')](_0x28370c),!0x0;if(!_0x235a4c&&_0x5b0e1a(_0x23af90,_0x527eb1))return _0x3de653[_0x23ae('0x14e')](_0x28370c,_0x13ab64),_0x27463d[_0x23ae('0x76')](_0x13ab64),!0x0;}return!0x1;}}[_0x23ae('0x14e')](_0xda2aeb,_0x12e50b){if(_0xda2aeb[_0x23ae('0x27')])for(const _0x517889 of _0x12e50b[_0x23ae('0x30')]())_0xda2aeb[_0x23ae('0x154')](_0x517889);else{const _0x509a45=_0x12e50b[_0x23ae('0x1')]()['end'];this[_0x23ae('0xc0')](_0xda2aeb,this[_0x23ae('0x37')][_0x23ae('0x131')](_0xda2aeb[_0x23ae('0x1')]()[_0x23ae('0xd7')],_0x509a45));}_0x12e50b['removeMarkers']();}[_0x23ae('0xad')](_0xf5c8c6,_0x4604a9){const _0x498982=_0xf5c8c6['startsWith'](_0x23ae('0x8f'))||_0xf5c8c6[_0x23ae('0xf1')]('attribute')?'FORMATTING':_0xf5c8c6['toUpperCase']();return _0x1d5e1f(this[_0x23ae('0x11e')]['locale'],_0x4604a9+'_'+_0x498982+_0x23ae('0xce'));}[_0x23ae('0x2a')](){const _0x36a88c=this[_0x23ae('0x11e')];_0x1dcf72(this[_0x23ae('0x37')],({left:_0x3bf7b7,entered:_0x387b3a})=>{const _0x5937f4=[];for(const _0x1332a4 of _0x3bf7b7){const {group:_0x349068,type:_0x54be96}=this[_0x23ae('0x172')](_0x1332a4[_0x23ae('0xc3')]);if(_0x23ae('0x126')===_0x349068){_0x5937f4[_0x23ae('0xef')](this[_0x23ae('0xad')](_0x54be96,'LEAVE'));break;}}for(const _0x44cc2a of _0x387b3a){const {group:_0x12adc1,type:_0x322107}=this[_0x23ae('0x172')](_0x44cc2a[_0x23ae('0xc3')]);if(_0x23ae('0x126')===_0x12adc1){_0x5937f4[_0x23ae('0xef')](this['_getMarkerAnnouncementText'](_0x322107,'ENTER'));break;}}_0x5937f4[_0x23ae('0xa1')]&&_0x36a88c['ui'][_0x23ae('0x54')][_0x23ae('0xa2')]('trackChanges',_0x5937f4[_0x23ae('0xb9')]('\x20'));});}[_0x23ae('0x156')](_0x2756da){if(null!==this[_0x23ae('0xe7')])return!0x1;const _0x412e97=this[_0x23ae('0x11e')],_0x5eb696=_0x412e97[_0x23ae('0x10')][_0x23ae('0x138')]['differ'][_0x23ae('0xd3')]();if(0x0==_0x5eb696[_0x23ae('0xa1')])return!0x1;const _0x51fd7c=[],_0x43693a=_0x5eb696[_0x23ae('0xd6')](_0x2cb1c7=>'attribute'==_0x2cb1c7[_0x23ae('0x15c')]),_0x48d223=_0x5eb696[_0x23ae('0xd6')](_0x16447e=>_0x23ae('0x6a')==_0x16447e['type']&&_0x23ae('0xea')!=_0x16447e[_0x23ae('0xc3')]),_0x471006=_0x5eb696[_0x23ae('0xd6')](_0x377b4a=>_0x23ae('0xe2')==_0x377b4a[_0x23ae('0x15c')]&&_0x23ae('0xea')!=_0x377b4a[_0x23ae('0xc3')]);for(const _0x406f42 of _0x43693a)_0x51fd7c[_0x23ae('0xef')]({'key':_0x406f42[_0x23ae('0x174')],'newValue':_0x406f42[_0x23ae('0x14b')],'oldValue':_0x406f42[_0x23ae('0xd8')],'range':_0x4e0ce6(_0x406f42[_0x23ae('0x2')])});for(const _0x656f41 of _0x48d223){const _0x3654df=_0x471006[_0x23ae('0xd1')](_0xf1b033=>_0xf1b033[_0x23ae('0x168')][_0x23ae('0xc5')](_0x656f41[_0x23ae('0x168')]));_0x3654df&&_0x51fd7c['push']({'key':_0x23ae('0x25'),'newValue':_0x656f41[_0x23ae('0xc3')],'oldValue':_0x3654df[_0x23ae('0xc3')],'range':_0x412e97['model'][_0x23ae('0x9')](_0x656f41[_0x23ae('0x168')][_0x23ae('0xa3')])});}return 0x0!=_0x51fd7c[_0x23ae('0xa1')]&&this['_reduceExistingSuggestions'](_0x2756da,_0x51fd7c);function _0x4e0ce6(_0x20fbc6){return null==_0x20fbc6[_0x23ae('0x7c')][_0x23ae('0x14f')]&&_0x20fbc6[_0x23ae('0x7c')]['parent']==_0x20fbc6[_0x23ae('0xd7')][_0x23ae('0xa3')]?Ut(_0x20fbc6['start'][_0x23ae('0xa3')],_0x412e97[_0x23ae('0x10')]):_0x20fbc6;}}[_0x23ae('0x4a')](_0x142e30){let _0x293401=!0x1;const _0x27f74b=this[_0x23ae('0x11e')][_0x23ae('0x10')][_0x23ae('0x138')][_0x23ae('0x4')][_0x23ae('0x99')]()['filter'](_0x3dbd33=>_0x3dbd33[_0x23ae('0x52')][_0x23ae('0xc9')]&&_0x3dbd33['name'][_0x23ae('0xf1')](_0x23ae('0xa8')));for(const _0x4b835f of _0x27f74b){const {subType:_0x20e835,id:_0x4bad5c}=this[_0x23ae('0x172')](_0x4b835f[_0x23ae('0xc3')]),_0x54a11a=_0x20e835['split']('|')[0x0];for(const _0x1dd7bf of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1dd7bf['id']!=_0x4bad5c&&_0x23ae('0xbd')==_0x1dd7bf['type']&&_0x1dd7bf[_0x23ae('0x52')]&&_0x1dd7bf['data']['key']==_0x54a11a&&_0x1dd7bf[_0x23ae('0x1')]()[_0x23ae('0xf0')](_0x4b835f[_0x23ae('0x52')][_0x23ae('0xc9')])&&(this[_0x23ae('0x81')](_0x1dd7bf,_0x4b835f[_0x23ae('0x52')][_0x23ae('0xc9')],_0x142e30),_0x293401=!0x0);}return _0x293401;}[_0x23ae('0xfa')](_0x33d5aa){if(null!==this[_0x23ae('0xe7')])return void _0x33d5aa();const _0x1ab13c=this[_0x23ae('0x11e')];this[_0x23ae('0xe7')]=_0x1ab13c[_0x23ae('0x10')]['document'][_0x23ae('0x133')],_0x33d5aa();const _0x4f0bcf=new Map();for(const _0x4aa3fe of _0x1ab13c[_0x23ae('0x10')][_0x23ae('0x138')]['history'][_0x23ae('0x67')](this[_0x23ae('0xe7')]))if([_0x23ae('0x1f'),_0x23ae('0x137'),_0x23ae('0x13a'),_0x23ae('0x120')][_0x23ae('0x10d')](_0x4aa3fe[_0x23ae('0x15c')])){const _0x259db6=_0x4aa3fe[_0x23ae('0x119')],_0x110944=_0x4f0bcf[_0x23ae('0x148')](_0x259db6)||[];_0x110944[_0x23ae('0xef')](_0x4aa3fe),_0x4f0bcf[_0x23ae('0x142')](_0x259db6,_0x110944);}this[_0x23ae('0xe7')]=null;for(const [_0x42ed21,_0x257ccb]of _0x4f0bcf){const _0x285928=_0x4e6c1e();_0x1ab13c[_0x23ae('0x10')][_0x23ae('0x118')](_0x42ed21,_0x2eab66=>{const _0x1cf52f=[];for(const _0x22ca4e of _0x257ccb){let _0x2a09f3,_0x16c94e,_0x420d5b,_0x54f352;if(_0x23ae('0x1f')==_0x22ca4e['type']){const _0x5ce6cc=_0x22ca4e;_0x2a09f3=Ut(_0x5ce6cc[_0x23ae('0x168')][_0x23ae('0xa3')],_0x1ab13c[_0x23ae('0x10')]),_0x16c94e=_0x23ae('0x25'),_0x420d5b=_0x5ce6cc['newName'],_0x54f352=_0x5ce6cc['oldName'];}else{const _0xce2f42=_0x22ca4e,_0x586956=this[_0x23ae('0x123')](_0xce2f42[_0x23ae('0x80')]),_0x2b4cd2=this[_0x23ae('0xac')][_0x23ae('0x16e')](_0xce2f42['key']);if(!_0x586956&&!_0x2b4cd2)continue;_0x2a09f3=_0x586956?Ut(_0xce2f42[_0x23ae('0x2')][_0x23ae('0xd7')][_0x23ae('0xa3')],_0x1ab13c[_0x23ae('0x10')]):_0xce2f42[_0x23ae('0x2')],_0x16c94e=_0xce2f42[_0x23ae('0x80')],_0x420d5b=_0x23ae('0x13a')==_0x22ca4e[_0x23ae('0x15c')]?void 0x0:_0xce2f42[_0x23ae('0xc')],_0x54f352=_0xce2f42[_0x23ae('0xe9')];}this[_0x23ae('0x162')](_0x2a09f3,_0x16c94e,_0x54f352,_0x420d5b,{'groupId':_0x285928}),_0x1cf52f[_0x23ae('0xef')]({'range':_0x2a09f3,'key':_0x16c94e,'newValue':_0x420d5b,'oldValue':_0x54f352});}this[_0x23ae('0xb6')](_0x2eab66,_0x1cf52f);});}}['_reduceExistingSuggestions'](_0x1c27b8,_0x5a3bb5){if(0x0==_0x5a3bb5[_0x23ae('0xa1')])return!0x1;let _0x3f4787=!0x1;for(const _0x5da1e9 of _0x5a3bb5){const _0x2c9b00=this[_0x23ae('0x8a')](_0x5da1e9[_0x23ae('0x2')],_0x23ae('0xbd'))['filter'](_0x21b184=>!_0x21b184[_0x23ae('0x60')][_0x23ae('0x7a')])[_0x23ae('0x152')](_0x37b4e1=>_0x37b4e1['suggestion']),_0xaf50d9=_0x39bb41({'newValue':_0x5da1e9[_0x23ae('0xc')]});_0x2c9b00['filter'](_0x573581=>{const [_0x4de316,_0x22d43c]=_0x573581[_0x23ae('0x11c')][_0x23ae('0x2f')]('|');return _0x4de316==_0x5da1e9[_0x23ae('0x80')]&&_0x22d43c!=_0xaf50d9;})[_0x23ae('0x9f')](_0x49a4ca=>{this['_reduceSuggestionAttributeRange'](_0x49a4ca,_0x5da1e9[_0x23ae('0x2')],_0x1c27b8),_0x3f4787=!0x0;});}return _0x3f4787;}['_reduceSuggestionAttributeRange'](_0x2c6b4c,_0x1acb0c,_0x490bac){const _0x1666e3=_0x2c6b4c[_0x23ae('0x1')]()[_0x23ae('0xb3')](_0x1acb0c);0x0!==_0x1666e3[_0x23ae('0xa1')]?0x1!==_0x1666e3[_0x23ae('0xa1')]?this['_breakSuggestionMarker'](_0x2c6b4c,_0x1acb0c[_0x23ae('0xd7')],_0x1acb0c[_0x23ae('0x7c')]):this[_0x23ae('0xc0')](_0x2c6b4c,_0x1666e3[0x0]):_0x490bac[_0x23ae('0x8b')](_0x2c6b4c['getFirstMarker']());}}class Bt{constructor(_0x4613ac){this['_editor']=_0x4613ac,this[_0x23ae('0x37')]=_0x4613ac['model'],this[_0x23ae('0x17b')]=new Map(),this[_0x23ae('0x17c')]=new Map(),this[_0x23ae('0xf')]();}[_0x23ae('0x134')](_0x1a55fa,_0x56f54b,_0x43062f,_0x38512e,_0x1919ec,_0x42dd0a){return new _0x3d27b9(this[_0x23ae('0x37')],{'type':_0x1a55fa,'subType':_0x56f54b,'id':_0x43062f,'author':_0x38512e,'creator':_0x38512e,'attributes':_0x1919ec,'onAttributesChange':_0x42dd0a,'onAccept':(..._0x3fa7de)=>this['getSuggestionCallback'](_0x1a55fa,_0x56f54b,_0x23ae('0xfb'))(..._0x3fa7de),'onDiscard':(..._0x9e0e62)=>this[_0x23ae('0x34')](_0x1a55fa,_0x56f54b,_0x23ae('0x167'))(..._0x9e0e62)});}['registerCustomCallback'](_0x285262,_0x4abd11,_0x18c957,_0x39cc22){const _0x5a18d4=_0x285262+':'+_0x4abd11+':'+_0x18c957;this[_0x23ae('0x17b')][_0x23ae('0x142')](_0x5a18d4,_0x39cc22);}[_0x23ae('0x34')](_0x199fa9,_0x27f0e1,_0x28c0f6){const _0x53fb1c=_0x199fa9+':'+_0x27f0e1+':'+_0x28c0f6;return this[_0x23ae('0x17b')]['get'](_0x53fb1c)||this[_0x23ae('0x17c')]['get'](_0x199fa9+':'+_0x28c0f6);}[_0x23ae('0xf')](){const _0x44244a=()=>!0x1,_0x46c350=_0x4e3cad=>{_0x4e3cad[_0x23ae('0x17')]((_0x26464c,_0xbfa81)=>_0x26464c[_0x23ae('0xd7')][_0x23ae('0x3')](_0xbfa81['start'])?0x1:-0x1),this[_0x23ae('0x37')][_0x23ae('0x6e')](_0x519d38=>{for(const _0x2c834c of _0x4e3cad){let _0x5090c5;_0x5090c5=_0x2c834c[_0x23ae('0x7c')]['isAtEnd']&&_0x2c834c['end'][_0x23ae('0xa5')]==_0x2c834c[_0x23ae('0xd7')]['nodeAfter']?_0x519d38[_0x23ae('0x66')](_0x2c834c[_0x23ae('0xd7')][_0x23ae('0xa3')],'on'):_0x519d38[_0x23ae('0x66')](_0x2c834c),this['_model']['deleteContent'](_0x5090c5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x13aea4=(_0x3f9bde,_0x262cd2)=>{_0x262cd2&&this[_0x23ae('0x37')][_0x23ae('0x6e')](_0x55e135=>{const {commandName:_0x3af67d,commandParams:_0x2119ce=[]}=_0x262cd2,_0x475b06=_0x3f9bde[_0x23ae('0x152')](_0x8b0c2=>(xt(_0x8b0c2)&&(_0x8b0c2=this['_model'][_0x23ae('0x131')](_0x8b0c2[_0x23ae('0x7c')])),_0x8b0c2))['filter'](_0x321c6b=>_0x23ae('0xc7')!==_0x321c6b[_0x23ae('0x62')][_0x23ae('0x94')]);if(_0x475b06['length']<0x1)return;const _0x4ee9b5=Array[_0x23ae('0xb8')](this[_0x23ae('0x37')][_0x23ae('0x138')][_0x23ae('0x14a')][_0x23ae('0x30')]())[_0x23ae('0x152')](_0x3e0f9b=>_0x384459[_0x23ae('0x5a')](_0x3e0f9b));_0x55e135['setSelection'](_0x475b06);for(const _0x573d1b of this[_0x23ae('0x98')][_0x23ae('0x31')][_0x23ae('0x31')]())_0x573d1b[_0x23ae('0x23')]();_0x2119ce['push']({'forceDefaultExecution':!0x0}),this[_0x23ae('0x98')][_0x23ae('0x111')](_0x3af67d,..._0x2119ce);const _0x536641=_0x4ee9b5[_0x23ae('0xd6')](_0x406ec5=>'$graveyard'!=_0x406ec5[_0x23ae('0x62')][_0x23ae('0x94')]);_0x536641['length']>0x0&&_0x55e135[_0x23ae('0x69')](_0x536641);for(const _0x4c9d56 of _0x4ee9b5)_0x4c9d56[_0x23ae('0x5')]();});},_0x584109=(_0x1bbfca,_0x29dddd)=>0x1==_0x1bbfca['length']&&0x1==_0x29dddd[_0x23ae('0xa1')]&&_0x1bbfca[0x0]['end']['isEqual'](_0x29dddd[0x0][_0x23ae('0xd7')]),_0x29c5a6=(_0x59b3ef,_0x611c2b,_0x2bc752,_0x38fed1)=>Ot(_0x59b3ef,_0x611c2b,_0x2bc752,_0x38fed1,this[_0x23ae('0x37')])?[_0x59b3ef,_0x611c2b]:Ot(_0x611c2b,_0x59b3ef,_0x38fed1,_0x2bc752,this[_0x23ae('0x37')])?[_0x611c2b,_0x59b3ef]:null;this['_defaultCallbacks']['set'](_0x23ae('0x150'),_0x44244a),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0x70'),_0x46c350),this[_0x23ae('0x17c')][_0x23ae('0x142')]('insertion:join',_0x584109),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0x9e'),_0x29c5a6),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0xa6'),_0x46c350),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0x64'),_0x44244a),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0xff'),_0x584109),this['_defaultCallbacks'][_0x23ae('0x142')](_0x23ae('0x3f'),_0x29c5a6),this[_0x23ae('0x17c')][_0x23ae('0x142')]('formatInline:accept',_0x13aea4),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0xe8'),_0x44244a),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0x149'),_0x584109),this[_0x23ae('0x17c')]['set']('formatInline:chain',_0x44244a),this[_0x23ae('0x17c')][_0x23ae('0x142')]('formatBlock:accept',_0x13aea4),this['_defaultCallbacks'][_0x23ae('0x142')](_0x23ae('0x1b'),_0x44244a),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0xde'),_0x584109),this[_0x23ae('0x17c')][_0x23ae('0x142')]('formatBlock:chain',_0x44244a),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0x17a'),_0x44244a),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0x113'),(_0x5eb9fb,_0x2329f6)=>{if(!_0x2329f6)return;const _0x165524=this['_editor']['plugins'][_0x23ae('0x148')](p);this[_0x23ae('0x37')]['change'](_0x1e1092=>{if('$elementName'==_0x2329f6[_0x23ae('0x80')])for(const _0xfe668a of _0x5eb9fb){const _0x14da27=_0xfe668a[_0x23ae('0xd7')][_0x23ae('0xa3')],_0x2f32f6=_0x2329f6[_0x23ae('0xe9')];_0x1e1092[_0x23ae('0x1f')](_0x14da27,_0x2f32f6);}else{if(_0x165524[_0x23ae('0x123')](_0x2329f6[_0x23ae('0x80')]))for(const _0x1c904e of _0x5eb9fb)void 0x0!==_0x2329f6[_0x23ae('0xe9')]?_0x1e1092[_0x23ae('0x158')](_0x2329f6['key'],_0x2329f6['oldValue'],_0x1c904e[_0x23ae('0xd7')]['nodeAfter']):_0x1e1092[_0x23ae('0x13a')](_0x2329f6[_0x23ae('0x80')],_0x1c904e[_0x23ae('0xd7')]['nodeAfter']);else for(const _0x51637b of _0x5eb9fb)_0x2329f6[_0x23ae('0xe9')]?_0x1e1092[_0x23ae('0x158')](_0x2329f6[_0x23ae('0x80')],_0x2329f6['oldValue'],_0x51637b):_0x1e1092[_0x23ae('0x13a')](_0x2329f6[_0x23ae('0x80')],_0x51637b);}});}),this[_0x23ae('0x17c')]['set']('attribute:join',_0x584109);}}function Tt(_0x597d0f,_0x55b7d3,_0x461ee7){for(const _0x2a53ae of _0x55b7d3[_0x23ae('0xa5')][_0x23ae('0x1d')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2a53ae[_0x23ae('0x62')]==_0x2a53ae)return!0x1;if(!_0x461ee7[_0x23ae('0x21')](_0x2a53ae))return!0x1;if(_0x597d0f[_0x23ae('0x160')](_0x2a53ae)||_0x597d0f[_0x23ae('0x135')](_0x2a53ae))return!0x0;}return!0x1;}function xt(_0x3e3791){return _0x3e3791['end'][_0x23ae('0xa5')]==_0x3e3791[_0x23ae('0xd7')][_0x23ae('0xa3')]&&_0x3e3791[_0x23ae('0x7c')]['isAtStart'];}function Et(_0x5e1fba,_0x257f3b,_0x31a9c9,_0x5ef8f8){const _0x35e031=_0x339015=>!_0x339015[_0x23ae('0x15e')]['is'](_0x23ae('0x11f'))&&!_0x5ef8f8['isObject'](_0x339015['item']),_0x594400=_0x5e1fba[_0x23ae('0xd7')][_0x23ae('0x40')](_0x35e031),_0x27b356=_0x5e1fba['end']['getLastMatchingPosition'](_0x35e031,{'direction':_0x23ae('0x65')});return(!_0x5e1fba['start'][_0x23ae('0xc5')](_0x594400)||!_0x5e1fba[_0x23ae('0x7c')]['isEqual'](_0x27b356))&&(_0x594400[_0x23ae('0x3')](_0x27b356)?_0x31a9c9[_0x23ae('0x45')](_0x257f3b,{'range':_0x31a9c9['createRange'](_0x594400,_0x27b356)}):_0x31a9c9[_0x23ae('0x8b')](_0x257f3b),!0x0);}function Rt(_0x3efd13){return _0x39bb41(_0x3efd13);}function jt(_0x584c5c){const _0x5c6ebb=_0x584c5c[_0x23ae('0xd7')][_0x23ae('0xa3')];return _0x5c6ebb&&_0x5c6ebb['is']('element');}function Ut(_0x6c7d88,_0x2d80fe){const _0x377f91=_0x2d80fe[_0x23ae('0x108')]['isObject'](_0x6c7d88)||_0x2d80fe[_0x23ae('0x108')]['isSelectable'](_0x6c7d88);return _0x2d80fe[_0x23ae('0x131')](_0x2d80fe[_0x23ae('0x130')](_0x6c7d88,'before'),_0x377f91?_0x2d80fe[_0x23ae('0x78')](_0x6c7d88):_0x2d80fe[_0x23ae('0x130')](_0x6c7d88,_0x23ae('0x7c')));}function Ot(_0x168108,_0x1690bc,_0x19a128,_0x48b557,_0x3bb97b){if(!Vt(_0x168108,_0x1690bc))return!0x1;if(_0x19a128[_0x23ae('0x7c')][_0x23ae('0xc5')](_0x48b557[_0x23ae('0xd7')]))return!0x0;if(_0x168108[_0x23ae('0x15c')]!=_0x1690bc['type'])return!0x1;if(!_0x19a128[_0x23ae('0x7c')]['isTouching'](_0x48b557[_0x23ae('0xd7')]))return!0x1;const _0x467585=_0x3bb97b['createRange'](_0x19a128[_0x23ae('0x7c')],_0x48b557[_0x23ae('0xd7')])[_0x23ae('0x58')]();for(const _0x115694 of _0x467585)if([_0x23ae('0x13c'),_0x23ae('0x151')]['includes'](_0x115694[_0x23ae('0x15c')])&&_0x3bb97b[_0x23ae('0x108')][_0x23ae('0x135')](_0x115694[_0x23ae('0x15e')]))return!0x1;return!0x0;}function Vt(_0x39278e,_0x1c2c0a){return!(!_0x39278e[_0x23ae('0x16d')]||!_0x1c2c0a[_0x23ae('0x16d')])&&_0xaf05e6(_0x39278e[_0x23ae('0x16a')],_0x1c2c0a[_0x23ae('0x16a')]);}function Gt(_0x52ed10,_0x2b3859){const _0x5a11e0=Ft(_0x52ed10[_0x23ae('0x16a')]),_0x503cb0=Ft(_0x2b3859);if(!_0x52ed10[_0x23ae('0x16d')])return!0x1;for(const _0x1a6d50 of Object[_0x23ae('0xc2')](_0x503cb0))if(!_0xaf05e6(_0x5a11e0[_0x1a6d50],_0x503cb0[_0x1a6d50]))return!0x1;return!0x0;}function Ft(_0x1fc619){const _0x279416=Object['assign']({},_0x1fc619);return delete _0x279416['skipNestingCheck'],delete _0x279416[_0x23ae('0x161')],_0x279416;}function Pt(_0x47131d){return'attribute'==_0x47131d['type']?_0x47131d[_0x23ae('0x11c')][_0x23ae('0x2f')]('|')[0x0]:null;}
|