@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231014.0 → 0.0.0-nightly-20231016.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-track-changes",
3
- "version": "0.0.0-nightly-20231014.0",
3
+ "version": "0.0.0-nightly-20231016.0",
4
4
  "description": "CKEditor 5 track changes plugin.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -39,8 +39,8 @@
39
39
  "CHANGELOG.md"
40
40
  ],
41
41
  "dependencies": {
42
- "ckeditor5": "0.0.0-nightly-20231014.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20231014.0",
42
+ "ckeditor5": "0.0.0-nightly-20231016.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20231016.0",
44
44
  "lodash-es": "4.17.21"
45
45
  },
46
46
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1092=['getIntersection','highest','isAfter','deletion:join','addClass','originalSuggestionId','containsRange','_createSuggestion','external:','addSuggestion','deleteContent','assign','error-saving-suggestion-data-suggestion-discarded','getSuggestion','formatInline:chain','for','length','hasComments','subType','lowest','isBefore','trackChanges.mergeNestedSuggestions','newRange','formatInline:discard','markMultiRangeBlockFormat','elementStart','isExternal','map','define','values','isIntersectingWithRange','attributes','addCommentThread','addMarker:suggestion','unbindElementFromMarkerName','batch','marker-count','setSelection','removeMarkers','refresh','get','_getAuthorFromId','_addSuggestionMarker','formatInline:','addSuggestionData','deletion','nodeBefore','isCollapsed','suggestionUnloaded','data-suggestion','_breakSuggestionMarker','deletion:accept','creator','change:activeMarkers','insertion:accept','_trackFormatChanges','forceDefaultExecution','_enabledCommands','markers','formatBlock:join','push','removed','never','discardSelectedSuggestions','multi','oldRange','_getSuggestionData','multipleBlocks','Users','fromRange','getAllAdjacentSuggestions','data','suggestion-type','buildSuggestion','_model','getMarkers','stopListening','showSuggestionHighlights','start','markMultiRangeDeletion','_removeSuggestion','_setSuggestionRange','formatInline','remove','change:_saved','rejected','getUser','join','toJSON','getAttribute','markerReady','_registerDefaultCallbacks','locale','init','track-changes-suggestion-data-mismatch','root','trackChanges.trackFormatChanges','updateSuggestion','document','_addThreadToSuggestion','getAncestors','createPositionBefore','insertion:chain','stop','trackChanges','activeMarkers','always','authoredAt','isBlock','consume','_suggestionState','editor','_adapter','insert','after','range','formatBlock:chain','moveTargetPosition','open','_joinSuggestions','$textProxy','isInsideObject','getChanges','_refreshSuggestionsChain','_suggestions','addMarker','_findSuggestions','_updateSuggestionData','removeAttribute','elementToElement','split','accept','getCustomProperty','suggestion','addHighlight','isLimit','registerPostFixer','splitPosition','mapper','isArray','addComment','track-changes-command-not-found','getCommentThread','formatGroupId','deletion:','addRange','name','set','discardAllSuggestions','tablePasteChainId','acceptSelectedSuggestions','add','conversion','authorName','hasSuggestion','markMultiRangeInsertion','getRange','change','track-changes-adapter-missing-getsuggestion','unbind','ready','filter','includes','editingDowncast','options','chain','_editor','createdAt','skipNestingCheck','registerCustomCallback','formatInline:join','reconvertMarker','rethrowUnexpectedError','_onDiscard','_isDataLoaded','type','_saved','consumable','markerName','markBlockFormat','createRangeIn','end','isUndo','return','markerToHighlight','clear','listenTo','formatBlock:accept','_cutOutSuggestionMarker','previous','bindElementToMarker','next','some','suggestionLoaded','TrackChangesEditing','isAtEnd','high','delete','isEqual','enableCommand','createSelection','ck-suggestion-marker-','dataDowncast','element','requires','nodeAfter','head','howMany','addMarkerName','substr','addMarker:suggestion:formatBlock','selection','position','commands','_customCallbacks','getNearestSelectionRange','has','parent','forward','rootName','ck-suggestion-marker--active','getRanges','change:data','$graveyard','insertion','keys','acceptAllSuggestions','schema','updateMarker','removeMarker','discard','isDocumentOperation','config','dataReady','suggestionChanged','CommentsRepository','author','setAttribute','isSelectable','markInsertion','accepted','adapter','ck-suggestion-marker-formatBlock','_commentsRepository','enqueueChange','widget','plugins','_joinWithAdjacentSuggestions','markDeletion','createPositionAt','getSuggestions','createRange','getFirstMarker','track-changes-adapter-already-set','track-changes-suggestion-not-found','getMultiRangeId','default','commandName','_getExternalAuthor','_checkSuggestionCorrectness','formatBlock:','discardSuggestion','getSuggestionCallback','setTo','differ','getFirstRange','markerNameToElements','execute','value','_suggestionFactory','_isForcedDefaultExecutionBlock','isInContent','isMultiRange','formatBlock','from','containsRangeInObject','isNextTo','trackChangesCommand','catch','getShiftedBy','splice','collaboration.channelId','documentSelection','targetPosition','ck-suggestion-marker','insertContent','item','every','notReady','sort','suggestion:','clone','_defaultCallbacks','_setSuggestionData','getChangedMarkers','acceptSuggestion','size','containsPosition','PENDING_ACTION_SUGGESTION','fire','containsItem','_rangeIsInLocalUserInsertion','upcast','PendingActions','detach','backward','writer','_mergeNestedSuggestions','createElement','pluginName','removeClass','commentThread','isOwn','toViewElement','model','$marker','_splitMarkerName','isObject','isAtStart','fromCharCode'];(function(_0x4639bc,_0x109226){const _0x389e41=function(_0x355ccc){while(--_0x355ccc){_0x4639bc['push'](_0x4639bc['shift']());}};_0x389e41(++_0x109226);}(_0x1092,0x18b));const _0x389e=function(_0x4639bc,_0x109226){_0x4639bc=_0x4639bc-0x0;let _0x389e41=_0x1092[_0x4639bc];return _0x389e41;};import{Plugin as _0x2757f2,PendingActions as _0xb80bda}from'ckeditor5/src/core';import{LiveRange as _0x2b7e22}from'ckeditor5/src/engine';import{CKEditorError as _0x446f02,uid as _0x2d3e82,priorities as _0x38c21e,logWarning as _0x4001e4}from'ckeditor5/src/utils';import{toWidget as _0x15c174}from'ckeditor5/src/widget';import{Users as _0x19c95a,hashObject as _0x220e2f}from'ckeditor5-collaboration/src/collaboration-core';import _0x151d22 from'./commands/trackchangescommand';import _0x5f41e6 from'./commands/acceptsuggestioncommand';import _0x4a102b from'./commands/discardsuggestioncommand';import _0x20932d from'./commands/executeonallsuggestionscommand';import _0x1a8e13 from'./commands/executeonselectedsuggestionscommand';import _0x516b3f from'./suggestion';import _0xd83b2d from'./suggestiondescriptionfactory';import _0x4510dc from'./integrations/aiassistant';import _0x56604e from'./integrations/alignment';import _0x57a516 from'./integrations/basicstyles';import _0x4b1799 from'./integrations/blockquote';import _0x8bb5d8 from'./integrations/ckbox';import _0x896723 from'./integrations/codeblock';import _0x3ac185 from'./integrations/comments';import _0x55264f from'./integrations/deletecommand';import _0x4141d4 from'./integrations/documentlist';import _0x505942 from'./integrations/entercommand';import _0xb169f1 from'./integrations/findandreplace';import _0xd91cd1 from'./integrations/font';import _0xe90ff2 from'./integrations/formatpainter';import _0x4f0251 from'./integrations/heading';import _0x313a0f from'./integrations/highlight';import _0x4aa7d5 from'./integrations/horizontalline';import _0x478e53 from'./integrations/htmlembed';import _0x1527b7 from'./integrations/image';import _0x588e16 from'./integrations/imagereplace';import _0x11f366 from'./integrations/importword';import _0x4d9cc7 from'./integrations/indent';import _0x4ee7f7 from'./integrations/inputcommand';import _0x3930ce from'./integrations/link';import _0x2bce1f from'./integrations/list';import _0x2074b4 from'./integrations/listproperties';import _0x53f9a2 from'./integrations/mediaembed';import _0x341004 from'./integrations/mention';import _0x409ea6 from'./integrations/pagebreak';import _0x4770f7 from'./integrations/paragraph';import _0x2bba10 from'./integrations/removeformat';import _0x2f5620 from'./integrations/restrictededitingmode';import _0x27fae9 from'./integrations/shiftentercommand';import _0x52f0b8 from'./integrations/standardeditingmode';import _0x500fcd from'./integrations/style';import _0x318a80 from'./integrations/table';import _0x164c7a from'./integrations/tablemergesplit';import _0x479b08 from'./integrations/tableheadings';import _0xd38b35 from'./integrations/tableclipboard';import _0x6e6d3d from'./integrations/tablecolumnresize';import _0x329cfe from'./integrations/template';import _0x4f74a7 from'./integrations/tableofcontents';import _0x5cb570 from'./integrations/title';import _0x13f099 from'./integrations/undo';import{getTranslation as _0x1789a5}from'./utils/common-translations';import _0x6e8a22 from'./integrations/tablecaption';import _0x541bd7 from'./integrations/documentlistproperties';import _0x588970 from'./integrations/tableproperties';import{isEqual as _0x499793}from'lodash-es';export default class p extends _0x2757f2{static get[_0x389e('0x81')](){return['CommentsRepository',_0x19c95a,_0xb80bda,_0x4510dc,_0x56604e,_0x57a516,_0x4b1799,_0x8bb5d8,_0x896723,_0x3ac185,_0x55264f,_0x4141d4,_0x541bd7,_0x505942,_0xb169f1,_0xd91cd1,_0xe90ff2,_0x4f0251,_0x313a0f,_0x4aa7d5,_0x478e53,_0x1527b7,_0x588e16,_0x11f366,_0x4d9cc7,_0x4ee7f7,_0x3930ce,_0x2bce1f,_0x2074b4,_0x53f9a2,_0x341004,_0x409ea6,_0x4770f7,_0x2bba10,_0x2f5620,_0x27fae9,_0x52f0b8,_0x500fcd,_0x318a80,_0x164c7a,_0x479b08,_0x6e8a22,_0xd38b35,_0x6e6d3d,_0x4f74a7,_0x588970,_0x329cfe,_0x5cb570,_0x13f099];}static get[_0x389e('0xea')](){return _0x389e('0x77');}constructor(_0x47879a){function _0x1de6b2(_0x410d33){return _0x410d33[_0x389e('0x110')](_0x16b277=>String[_0x389e('0xf4')](_0x16b277))[_0x389e('0xc')]('');}super(_0x47879a),this[_0x389e('0x48')](_0x389e('0x1e'),[]),this['on'](_0x389e('0x12a'),(_0x4380bc,_0x5508bf,_0x8690ce,_0x524ed7)=>{this[_0x389e('0x13f')]['change'](()=>{for(const _0x1db8d1 of[..._0x524ed7,..._0x8690ce])this[_0x389e('0x13f')][_0x389e('0x12f')]['has'](_0x1db8d1)&&_0x47879a['editing'][_0x389e('0x60')](_0x1db8d1);});}),this['_descriptionFactory']=new _0xd83b2d(this[_0x389e('0x24')][_0x389e('0xef')][_0x389e('0x98')],this[_0x389e('0x24')][_0x389e('0x11')]),this[_0x389e('0x25')]=null,this[_0x389e('0xc2')]=new Bt(this[_0x389e('0x24')]),this[_0x389e('0x31')]=new Map(),this[_0x389e('0xa8')]=_0x47879a[_0x389e('0xab')][_0x389e('0x11d')](_0x389e('0xa0')),this[_0x389e('0x12e')]=new Set(),this['_model']=this[_0x389e('0x24')]['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x47879a[_0x389e('0x9d')][_0x389e('0x111')]('trackChanges.trackFormatChanges',_0x389e('0xb5')),this[_0x389e('0x12c')]=_0x47879a[_0x389e('0x9d')][_0x389e('0x11d')](_0x389e('0x15')),_0x47879a[_0x389e('0x9d')][_0x389e('0x111')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x389e('0xe8')]=_0x47879a[_0x389e('0x9d')][_0x389e('0x11d')](_0x389e('0x10a')),this['trackChangesCommand']=new _0x151d22(_0x47879a,this[_0x389e('0x12e')]),this[_0x1de6b2([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1de6b2([0x34,0x30,0x34,0x36,0x32,0x30,0x32,0x38]);}[_0x389e('0x12')](){const _0x2df8a1=this[_0x389e('0x24')];_0x2df8a1[_0x389e('0x4d')][_0x389e('0x104')](_0x389e('0x58'))[_0x389e('0x6d')]({'model':_0x389e('0x3a'),'view':_0x412303=>{const {id:_0x4bc993,type:_0x5d9a34}=this[_0x389e('0xf1')](_0x412303['markerName']),_0x505b3a=['ck-suggestion-marker',_0x389e('0x7e')+_0x5d9a34];let _0xe3957a=0xbb8;return this['activeMarkers']['includes'](_0x412303['markerName'])&&(_0x505b3a[_0x389e('0x131')]('ck-suggestion-marker--active'),_0xe3957a=0xbc2),'deletion'==_0x5d9a34&&(_0xe3957a+=0x5),{'classes':_0x505b3a,'attributes':{'data-suggestion':_0x4bc993},'priority':_0xe3957a};}}),_0x2df8a1['conversion'][_0x389e('0x104')]('dataDowncast')[_0x389e('0x4c')](_0x17c07=>{_0x17c07['on'](_0x389e('0x116'),(_0x31ff29,_0x46975b,_0xd4b0a5)=>{if(!_0xd4b0a5['options'][_0x389e('0x2')])return;const _0x23134e=_0x46975b['item'];if(!_0x23134e)return;const _0x1f7433=_0xd4b0a5[_0x389e('0x3f')][_0x389e('0xee')](_0x23134e);_0x2df8a1['model'][_0x389e('0x98')][_0x389e('0xf2')](_0x23134e)&&_0x1f7433&&!_0x1f7433[_0x389e('0x39')](_0x389e('0xaa'))&&_0x1f7433['is']('containerElement')&&_0x15c174(_0x1f7433,_0xd4b0a5[_0x389e('0xe7')]);},{'priority':_0x389e('0x79')});}),_0x2df8a1[_0x389e('0x4d')][_0x389e('0x104')](_0x389e('0x7f'))[_0x389e('0x6d')]({'model':_0x389e('0x3a'),'view':(_0x56e295,_0xc0d023)=>{if(!_0xc0d023[_0x389e('0x59')][_0x389e('0x2')])return null;const {type:_0x55671d}=this['_splitMarkerName'](_0x56e295[_0x389e('0x67')]);return{'classes':[_0x389e('0xd1'),'ck-suggestion-marker-'+_0x55671d],'priority':0xbb8};}});const _0x337dbc=({showActiveMarkers:_0x28da72=!0x0}={})=>(_0x413cd3,_0x454448,_0x3959ef)=>{if(!_0x454448['item'])return;if(_0x454448[_0x389e('0xd3')]['is'](_0x389e('0x88')))return void _0x3959ef[_0x389e('0x66')]['consume'](_0x454448[_0x389e('0xd3')],_0x413cd3[_0x389e('0x47')]);const _0xe73bb9=_0x3959ef[_0x389e('0x3f')][_0x389e('0xee')](_0x454448[_0x389e('0xd3')]);if(!(_0x454448['item']['is']('element')&&_0x2df8a1[_0x389e('0xef')][_0x389e('0x98')][_0x389e('0x21')](_0x454448['item'])&&!_0xe73bb9[_0x389e('0x39')](_0x389e('0x3b'))))return;const {id:_0x64fe3a}=this[_0x389e('0xf1')](_0x454448['markerName']);_0x3959ef[_0x389e('0xe7')][_0x389e('0xf9')]([_0x389e('0xd1'),_0x389e('0xa7')],_0xe73bb9),_0x3959ef['writer'][_0x389e('0xa2')](_0x389e('0x126'),_0x64fe3a,_0xe73bb9),_0x3959ef[_0x389e('0x3f')][_0x389e('0x73')](_0xe73bb9,_0x454448[_0x389e('0x67')]),_0x28da72&&(this[_0x389e('0x1e')][_0x389e('0x57')](_0x454448[_0x389e('0x67')])?_0x3959ef['writer'][_0x389e('0xf9')](_0x389e('0x91'),_0xe73bb9):_0x3959ef[_0x389e('0xe7')]['removeClass'](_0x389e('0x91'),_0xe73bb9));for(const _0x3c47f0 of _0x2df8a1[_0x389e('0xef')][_0x389e('0x69')](_0x454448['item'])['getItems']())_0x3959ef[_0x389e('0x66')][_0x389e('0x22')](_0x3c47f0,_0x413cd3['name']);_0x3959ef[_0x389e('0x66')][_0x389e('0x22')](_0x454448[_0x389e('0xd3')],_0x413cd3[_0x389e('0x47')]);};_0x2df8a1['conversion'][_0x389e('0x104')](_0x389e('0x7f'))[_0x389e('0x4c')](_0x523658=>{_0x523658['on']('addMarker:suggestion:formatBlock',(_0x43172d,_0x54e976,_0x485d0f)=>{_0x485d0f[_0x389e('0x59')]['showSuggestionHighlights']&&_0x337dbc({'showActiveMarkers':!0x1})(_0x43172d,_0x54e976,_0x485d0f);},{'priority':_0x389e('0xf6')});}),_0x2df8a1[_0x389e('0x4d')][_0x389e('0x104')](_0x389e('0x7f'))['markerToData']({'model':_0x389e('0x3a'),'view':(_0xc26d97,_0x2c3203)=>_0x2c3203['options'][_0x389e('0x2')]?null:{'group':'suggestion','name':_0xc26d97[_0x389e('0x86')](0xb)}}),_0x2df8a1[_0x389e('0x4d')][_0x389e('0x104')](_0x389e('0xe3'))[_0x389e('0x36')]({'view':{'name':_0x389e('0x3a'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5b077a,{writer:_0x116ef4})=>{let _0x3c01ae='suggestion:'+_0x5b077a['getAttribute'](_0x389e('0x13d'))+':'+_0x5b077a['getAttribute']('id');return _0x5b077a[_0x389e('0xe')](_0x389e('0x119'))&&(_0x3c01ae+=':'+_0x5b077a[_0x389e('0xe')](_0x389e('0x119'))),_0x116ef4[_0x389e('0xe9')](_0x389e('0xf0'),{'data-name':_0x3c01ae});}}),_0x2df8a1['conversion'][_0x389e('0x104')](_0x389e('0xe3'))['dataToMarker']({'view':_0x389e('0x3a')}),_0x2df8a1[_0x389e('0x4d')][_0x389e('0x104')](_0x389e('0x58'))[_0x389e('0x4c')](_0x4b4772=>{_0x4b4772['on'](_0x389e('0x87'),_0x337dbc(),{'priority':'high'});}),_0x2df8a1[_0x389e('0x4d')][_0x389e('0x104')]('editingDowncast')['add'](_0x3889bb=>{_0x3889bb['on']('removeMarker:suggestion:formatBlock',(_0x3c8589,_0x1863b5,_0x590d8c)=>{const _0x129416=_0x590d8c[_0x389e('0x3f')][_0x389e('0xbf')](_0x1863b5[_0x389e('0x67')]);if(_0x129416)for(const _0xd02327 of _0x129416)_0xd02327[_0x389e('0x39')]('addHighlight')||(_0x590d8c[_0x389e('0xe7')][_0x389e('0xeb')]([_0x389e('0xd1'),_0x389e('0xa7'),'ck-suggestion-marker--active'],_0xd02327),_0x590d8c[_0x389e('0xe7')][_0x389e('0x35')](_0x389e('0x126'),_0xd02327),_0x590d8c['mapper'][_0x389e('0x117')](_0xd02327,_0x1863b5[_0x389e('0x67')]));},{'priority':_0x389e('0x79')});}),_0x2df8a1[_0x389e('0xef')]['document'][_0x389e('0x3d')](_0x41edeb=>{let _0x43e587=!0x1;const _0x100fbe=Array['from'](_0x2df8a1[_0x389e('0xef')][_0x389e('0x17')][_0x389e('0xbd')][_0x389e('0xdb')]()),_0x377cf4=new Set();for(const {name:_0x25b30c,data:_0x396fd3}of _0x100fbe){const {group:_0x45c9df,type:_0x275048,id:_0xdbe36c}=this[_0x389e('0xf1')](_0x25b30c);if(_0x389e('0x3a')!==_0x45c9df)continue;const _0x49566f=this[_0x389e('0x31')]['get'](_0xdbe36c);if(null!=_0x396fd3[_0x389e('0x10b')]){'formatInline'==_0x275048&&(_0x43e587=_0x43e587||$t(_0x396fd3[_0x389e('0x10b')],_0x25b30c,_0x41edeb,_0x2df8a1['model'][_0x389e('0x98')]));if(_0x396fd3[_0x389e('0x10b')][_0x389e('0x124')]||_0x389e('0x94')==_0x396fd3[_0x389e('0x10b')][_0x389e('0x14')][_0x389e('0x90')]||_0x389e('0xc6')==_0x275048&&!Rt(_0x396fd3[_0x389e('0x10b')])||_0x389e('0x122')==_0x275048&&!(!Mt(_0x113abf=_0x396fd3[_0x389e('0x10b')])&&!function(_0x4956cb){return _0x4956cb[_0x389e('0x3')]['parent']==_0x4956cb[_0x389e('0x6a')][_0x389e('0x123')]&&_0x4956cb[_0x389e('0x3')][_0x389e('0x78')];}(_0x113abf)))_0x41edeb[_0x389e('0x9a')](_0x25b30c),_0x43e587=!0x0;else{if(!_0x49566f||!_0x49566f['isInContent'])continue;_0x377cf4['add'](_0x49566f);}}}var _0x113abf;return _0x377cf4[_0x389e('0xdd')]>0x0&&(_0x43e587=!!this[_0x389e('0xac')](_0x377cf4)||_0x43e587),_0x43e587;}),_0x2df8a1[_0x389e('0xef')][_0x389e('0x17')]['registerPostFixer'](_0xb4cf2=>{let _0x2c57d6=!0x1;for(const _0x40b64a of _0x2df8a1[_0x389e('0xef')][_0x389e('0x17')][_0x389e('0xbd')][_0x389e('0x2f')]()){if(_0x389e('0x26')!=_0x40b64a[_0x389e('0x64')])continue;const _0x442b8f=_0x40b64a[_0x389e('0x89')][_0x389e('0xcc')](_0x40b64a[_0x389e('0x105')]);if(_0x442b8f[_0x389e('0x78')])for(const _0x287a38 of this['_suggestions'][_0x389e('0x112')]()){if(_0x287a38['isMultiRange']||!_0x287a38['isInContent'])continue;if(_0x389e('0xc6')!=_0x287a38[_0x389e('0x64')])continue;const _0x247ed8=_0x287a38[_0x389e('0xbe')]();if(_0x247ed8[_0x389e('0x3')][_0x389e('0x8e')]!=_0x247ed8[_0x389e('0x6a')][_0x389e('0x8e')]&&_0x247ed8[_0x389e('0x6a')]['isEqual'](_0x40b64a['position'])){const _0x323c16=_0x2df8a1[_0x389e('0xef')][_0x389e('0xb0')](_0x247ed8[_0x389e('0x3')],_0x442b8f);_0xb4cf2[_0x389e('0x99')](_0x287a38[_0x389e('0xb1')](),{'range':_0x323c16}),_0x2c57d6=!0x0;}}}return _0x2c57d6;}),_0x2df8a1[_0x389e('0xef')][_0x389e('0x12f')]['on']('update:suggestion',(_0x38cc12,_0x3a7614,_0x18f571)=>{if(null==_0x18f571){const {id:_0x18a051}=this['_splitMarkerName'](_0x3a7614[_0x389e('0x47')]),_0x42a57e=this[_0x389e('0x31')][_0x389e('0x11d')](_0x18a051);_0x42a57e&&_0x42a57e[_0x389e('0x85')](_0x3a7614[_0x389e('0x47')]);}}),_0x2df8a1[_0x389e('0xef')][_0x389e('0x17')]['on'](_0x389e('0x93'),()=>{const _0x4030b7=Array['from'](_0x2df8a1[_0x389e('0xef')]['document']['differ']['getChangedMarkers']())[_0x389e('0x56')](_0x27150a=>_0x389e('0x3a')===this[_0x389e('0xf1')](_0x27150a[_0x389e('0x47')])['group']);if(0x0===_0x4030b7[_0x389e('0x105')])return;_0x4030b7['sort']((_0x41d160,_0x22400e)=>{const _0x5ac6e3=_0x41d160[_0x389e('0x13c')][_0x389e('0x136')],_0x46bae7=_0x22400e[_0x389e('0x13c')][_0x389e('0x136')];return null===_0x5ac6e3&&null===_0x46bae7?0x0:null===_0x5ac6e3&&null!==_0x46bae7?-0x1:null!==_0x5ac6e3&&null===_0x46bae7?0x1:_0x5ac6e3['start'][_0x389e('0x109')](_0x46bae7[_0x389e('0x3')])?-0x1:0x1;});const _0x4d9e6c=new Set(),_0x29acd7=new Set();for(const {name:_0x12c7c2,data:_0x29ef5a}of _0x4030b7){const {id:_0x557add}=this[_0x389e('0xf1')](_0x12c7c2);if(null===_0x29ef5a[_0x389e('0x136')]){const _0x5034bd=this['_handleNewSuggestionMarker'](_0x12c7c2);_0x29acd7['add'](_0x5034bd);}else{const _0x4780b6=this[_0x389e('0x31')]['get'](_0x557add);null!==_0x29ef5a[_0x389e('0x10b')]||_0x4780b6[_0x389e('0xc4')]?(_0x4d9e6c[_0x389e('0x4c')](_0x4780b6[_0x389e('0x83')]),_0x29acd7[_0x389e('0x4c')](_0x4780b6)):this['_removeSuggestion'](_0x4780b6);}}_0x29acd7['size']>0x0&&this[_0x389e('0x30')](_0x29acd7);for(const _0x1557d9 of _0x4d9e6c)this[_0x389e('0xe0')](_0x389e('0x9f'),_0x1557d9);}),_0x2df8a1[_0x389e('0xef')]['on']('applyOperation',(_0x4b6968,_0x41c214)=>{const _0x338578=_0x41c214[0x0];if(!this['_suggestions']['size'])return;if(!_0x338578[_0x389e('0x9c')])return;if(_0x338578[_0x389e('0x118')][_0x389e('0x6b')]||!_0x338578['batch']['isLocal'])return;let _0x25e43e,_0x4e8c55;switch(_0x338578[_0x389e('0x64')]){case'insert':_0x25e43e=_0x2df8a1[_0x389e('0xef')][_0x389e('0xae')](_0x338578[_0x389e('0x89')]),_0x4e8c55=_0x25e43e[_0x389e('0xcc')](_0x338578[_0x389e('0x84')]);break;case _0x389e('0x37'):_0x25e43e=_0x2df8a1[_0x389e('0xef')][_0x389e('0xae')](_0x338578[_0x389e('0x3e')]),_0x4e8c55=_0x2df8a1['model'][_0x389e('0xae')](_0x338578[_0x389e('0x2a')]);break;case'move':_0x25e43e=_0x2df8a1['model'][_0x389e('0xae')](_0x338578[_0x389e('0xd0')]),_0x4e8c55=_0x25e43e[_0x389e('0xcc')](_0x338578[_0x389e('0x84')]);break;default:return;}const _0x5f05b1=_0x2df8a1[_0x389e('0xef')][_0x389e('0xb0')](_0x25e43e,_0x4e8c55);_0x2df8a1[_0x389e('0xef')][_0x389e('0x52')](()=>{for(const {suggestion:_0x5af63d,meta:_0x38f502}of this[_0x389e('0x33')](_0x5f05b1)){if(_0x5af63d[_0x389e('0xc5')])continue;if('formatInline'==_0x5af63d[_0x389e('0x64')])continue;const _0x1cb9d0=_0x5af63d[_0x389e('0x13c')]&&_0x5af63d[_0x389e('0x13c')][_0x389e('0x138')];(_0x389e('0xc6')!=_0x5af63d[_0x389e('0x64')]||_0x389e('0x37')==_0x338578[_0x389e('0x64')]&&!_0x1cb9d0)&&(_0x38f502[_0x389e('0xc8')]||_0x389e('0x95')==_0x5af63d[_0x389e('0x64')]&&_0x38f502[_0x389e('0xed')]||_0x5af63d['getFirstRange']()[_0x389e('0xfb')](_0x5f05b1)&&this[_0x389e('0x127')](_0x5af63d,_0x25e43e,_0x4e8c55));}});},{'priority':_0x389e('0x108')}),_0x2df8a1[_0x389e('0xef')]['on'](_0x389e('0xff'),(_0x5a7e09,_0x1cc91b)=>{const _0x1d78d4=_0x1cc91b[0x0],_0x5f0cd0=_0x1cc91b[0x1];if(_0x5f0cd0&&_0x5f0cd0[_0x389e('0x12d')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x389e('0xca')][_0x389e('0xc1')])return;if(_0x1d78d4['isCollapsed'])return;const _0x4764a6=_0x2df8a1['model'][_0x389e('0x98')],{start:_0x42b16a,end:_0x58c4e3}=_0x1d78d4['getFirstRange'](),_0x26db5a=_0x42b16a[_0x389e('0x82')]&&_0x4764a6[_0x389e('0x3c')](_0x42b16a[_0x389e('0x82')])?null:_0x4764a6['getNearestSelectionRange'](_0x42b16a,_0x389e('0x8f')),_0x3ef862=_0x58c4e3[_0x389e('0x123')]&&_0x4764a6[_0x389e('0x3c')](_0x58c4e3[_0x389e('0x123')])?null:_0x4764a6[_0x389e('0x8c')](_0x58c4e3,_0x389e('0xe6')),_0x57200c=_0x2df8a1[_0x389e('0xef')][_0x389e('0xb0')](_0x26db5a?_0x26db5a[_0x389e('0x3')]:_0x42b16a,_0x3ef862?_0x3ef862['end']:_0x58c4e3);_0x2df8a1['model'][_0x389e('0x52')](_0x454d62=>{this[_0x389e('0xad')](_0x57200c);const _0x31b96a=_0x2df8a1['model'][_0x389e('0x98')][_0x389e('0x8c')](_0x57200c[_0x389e('0x3')]);_0x1d78d4['is'](_0x389e('0xcf'))?_0x454d62['setSelection'](_0x31b96a):_0x1d78d4[_0x389e('0xbc')](_0x31b96a);}),_0x5a7e09['stop']();},{'priority':_0x38c21e['normal']+0xa}),_0x2df8a1[_0x389e('0xef')]['on'](_0x389e('0xd2'),(_0x5d09d0,_0x4b4721)=>{const _0x5daef8=_0x4b4721[_0x4b4721['length']-0x1];_0x5daef8&&_0x5daef8['forceDefaultExecution']||this[_0x389e('0xc3')]||this['trackChangesCommand'][_0x389e('0xc1')]&&(_0x2df8a1[_0x389e('0xef')]['change'](()=>{let _0x4dc5b9=_0x2df8a1['model'][_0x389e('0xd2')](_0x4b4721[0x0],_0x4b4721[0x1],_0x4b4721[0x2],{'forceDefaultExecution':!0x0});if(!_0x4dc5b9)return;_0x5d09d0['return']=_0x4dc5b9[_0x389e('0xd8')]();const _0x3fe654=_0x4dc5b9[_0x389e('0x6a')]['nodeBefore'],_0x3cd362=_0x2df8a1[_0x389e('0xef')][_0x389e('0x98')];_0x3fe654&&_0x3cd362['isBlock'](_0x3fe654)&&!_0x3cd362[_0x389e('0xf2')](_0x3fe654)&&(_0x4dc5b9=_0x2df8a1[_0x389e('0xef')][_0x389e('0xb0')](_0x4dc5b9['start'],_0x2df8a1[_0x389e('0xef')]['createPositionAt'](_0x3fe654,_0x389e('0x6a')))),this[_0x389e('0xa4')](_0x4dc5b9);}),_0x5d09d0[_0x389e('0x1c')]());},{'priority':_0x389e('0x79')}),this[_0x389e('0x24')]['commands'][_0x389e('0x4c')]('trackChanges',this[_0x389e('0xca')]),this[_0x389e('0x7c')](_0x389e('0x1d'));const _0x58322d=new _0x5f41e6(_0x2df8a1,this[_0x389e('0x31')]);_0x2df8a1[_0x389e('0x8a')][_0x389e('0x4c')](_0x389e('0xdc'),_0x58322d),this[_0x389e('0x7c')](_0x389e('0xdc'));const _0x4cc450=new _0x4a102b(_0x2df8a1,this[_0x389e('0x31')]);_0x2df8a1['commands']['add']('discardSuggestion',_0x4cc450),this[_0x389e('0x7c')](_0x389e('0xba')),_0x2df8a1[_0x389e('0x8a')]['add'](_0x389e('0x97'),new _0x20932d(_0x2df8a1,_0x58322d,this[_0x389e('0x31')])),this[_0x389e('0x7c')]('acceptAllSuggestions'),_0x2df8a1[_0x389e('0x8a')][_0x389e('0x4c')](_0x389e('0x49'),new _0x20932d(_0x2df8a1,_0x4cc450,this[_0x389e('0x31')])),this[_0x389e('0x7c')](_0x389e('0x49')),_0x2df8a1[_0x389e('0x8a')][_0x389e('0x4c')](_0x389e('0x4b'),new _0x1a8e13(_0x2df8a1,_0x58322d,this[_0x389e('0x31')])),this[_0x389e('0x7c')]('acceptSelectedSuggestions'),_0x2df8a1[_0x389e('0x8a')]['add'](_0x389e('0x134'),new _0x1a8e13(_0x2df8a1,_0x4cc450,this[_0x389e('0x31')])),this[_0x389e('0x7c')](_0x389e('0x134'));const _0x211df0=_0x2df8a1['plugins'][_0x389e('0x11d')]('CommentsRepository');this['listenTo'](_0x211df0,_0x389e('0x41'),(_0x1b6a97,{threadId:_0x55d490})=>{const _0x1daacf=this['_suggestions'][_0x389e('0x11d')](_0x55d490);_0x1daacf&&_0x1daacf[_0x389e('0xec')]&&0x1===_0x1daacf[_0x389e('0xec')]['length']&&this[_0x389e('0x34')](_0x55d490,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x211df0,'removeComment',(_0x18b100,{threadId:_0x1c96b3})=>{const _0x30ea70=this[_0x389e('0x31')]['get'](_0x1c96b3);_0x30ea70&&_0x30ea70['commentThread']&&!_0x30ea70[_0x389e('0xec')]['length']&&this[_0x389e('0x34')](_0x1c96b3,{'hasComments':!0x1});},{'priority':'low'});}set[_0x389e('0xa6')](_0x417f8b){if(this[_0x389e('0x25')])throw new _0x446f02(_0x389e('0xb2'),this);this[_0x389e('0x25')]=_0x417f8b;}get[_0x389e('0xa6')](){return this[_0x389e('0x25')];}[_0x389e('0xaf')]({skipNotAttached:_0x220ae4=!0x1,toJSON:_0x5c0a93=!0x1}={}){const _0x37229d=[];for(const _0x4aab58 of this[_0x389e('0x31')][_0x389e('0x112')]())_0x220ae4&&!_0x4aab58['isInContent']||_0x37229d[_0x389e('0x131')](_0x4aab58);return _0x5c0a93?_0x37229d[_0x389e('0x110')](_0xabf341=>_0xabf341[_0x389e('0xd')]()):_0x37229d;}[_0x389e('0x102')](_0xdd37d0){const _0x10f69c=this[_0x389e('0x31')][_0x389e('0x11d')](_0xdd37d0);if(!_0x10f69c)throw new _0x446f02(_0x389e('0xb3'),this);return _0x10f69c;}[_0x389e('0x4f')](_0x481c43){return this[_0x389e('0x31')]['has'](_0x481c43);}['addSuggestionData'](_0x52ebbf){const {authorId:_0x271a5a,id:_0x179344,attributes:_0x5a3886}=_0x52ebbf,[_0x45cdc5,_0x1619d6]=_0x52ebbf[_0x389e('0x64')]['split'](':'),_0xa63e2=this['_suggestions']['get'](_0x179344)||this['_createSuggestion'](_0x45cdc5,_0x1619d6,_0x179344,_0x271a5a,_0x5a3886);if(this[_0x389e('0x18')](_0xa63e2),this['_checkSuggestionCorrectness'](_0xa63e2,_0x45cdc5,_0x1619d6||null,_0x271a5a),_0xa63e2[_0x389e('0x5c')]=_0x52ebbf[_0x389e('0x5c')],_0xa63e2[_0x389e('0x63')]=!0x0,_0x5a3886&&_0x5a3886['@external']){const _0x166655=_0x5a3886['@external'],_0x12fdf8=this[_0x389e('0xb7')](_0x166655[_0x389e('0x4e')]);_0xa63e2[_0x389e('0x20')]=_0x166655['createdAt'],_0xa63e2[_0x389e('0xa1')]=_0x12fdf8,_0xa63e2[_0x389e('0x10f')]=!0x0;}else _0xa63e2[_0x389e('0x20')]=_0x52ebbf[_0x389e('0x5c')];switch(_0x52ebbf[_0x389e('0x13c')]&&(_0xa63e2[_0x389e('0x13c')]=_0x52ebbf[_0x389e('0x13c')]),_0x52ebbf[_0x389e('0x114')]&&(_0xa63e2[_0x389e('0x114')]=_0x52ebbf[_0x389e('0x114')]),this[_0x389e('0x25')]&&this[_0x389e('0x25')][_0x389e('0xfe')]||(_0xa63e2[_0x389e('0x65')]=!0x0),this[_0x389e('0x23')][_0x389e('0x11d')](_0xa63e2)){case _0x389e('0xd5'):this[_0x389e('0x23')][_0x389e('0x48')](_0xa63e2,'dataReady');break;case'markerReady':_0xa63e2[_0x389e('0xc4')]?(this['_refreshSuggestionsChain'](new Set([_0xa63e2])),this[_0x389e('0xac')](new Set([_0xa63e2])),this[_0x389e('0x23')][_0x389e('0x48')](_0xa63e2,_0x389e('0x55')),this[_0x389e('0xe0')](_0x389e('0x76'),_0xa63e2)):this[_0x389e('0x23')][_0x389e('0x48')](_0xa63e2,'removed');}return _0xa63e2;}[_0x389e('0xdc')](_0x1511db){this[_0x389e('0x12d')](()=>{this[_0x389e('0x24')][_0x389e('0xef')][_0x389e('0x52')](()=>{for(const _0x473d15 of _0x1511db[_0x389e('0x13b')]())_0x473d15[_0x389e('0x38')]();});});}['discardSuggestion'](_0x3e41a6){this[_0x389e('0x12d')](()=>{this['editor'][_0x389e('0xef')][_0x389e('0x52')](()=>{for(const _0x1d5201 of _0x3e41a6[_0x389e('0x13b')]())_0x1d5201[_0x389e('0x9b')]();});});}[_0x389e('0x7c')](_0x589292,_0x3743cf){const _0x21a98f=this[_0x389e('0x24')]['commands'][_0x389e('0x11d')](_0x589292);if(!_0x21a98f)throw new _0x446f02(_0x389e('0x42'),this,{'commandName':_0x589292});this[_0x389e('0x12e')][_0x389e('0x4c')](_0x21a98f),_0x3743cf&&_0x21a98f['on'](_0x389e('0xc0'),(_0x3622fb,_0x3b6a3a)=>{this[_0x389e('0xca')][_0x389e('0xc1')]&&(this[_0x389e('0xc3')]||_0x3b6a3a[_0x389e('0x105')]>0x0&&_0x3b6a3a[_0x3b6a3a[_0x389e('0x105')]-0x1]&&_0x3b6a3a[_0x3b6a3a[_0x389e('0x105')]-0x1][_0x389e('0x12d')]||(_0x3622fb[_0x389e('0x6c')]=_0x3743cf((..._0x140214)=>_0x21a98f[_0x389e('0xc0')](..._0x140214,{'forceDefaultExecution':!0x0}),..._0x3b6a3a),_0x3622fb['stop']()));},{'priority':'high'});}[_0x389e('0x12d')](_0x1a33bc){let _0x41d564,_0x28700b;const _0x435f29=this[_0x389e('0xc3')];this[_0x389e('0xc3')]=!0x0;try{_0x41d564=_0x1a33bc();}catch(_0x2dda93){_0x28700b=_0x2dda93;}return _0x435f29||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x28700b&&_0x446f02[_0x389e('0x61')](_0x28700b,this),_0x41d564;}[_0x389e('0xa4')](_0x2afdec,_0x2d45d7=null,_0x38bdac={}){if(_0x2afdec['isCollapsed'])return null;const _0x30f321=this[_0x389e('0x24')][_0x389e('0xab')][_0x389e('0x11d')](_0x389e('0x139'))['me'];for(const {suggestion:_0x407e02,meta:_0x5d9840}of this['_findSuggestions'](_0x2afdec,_0x389e('0x95')))if(_0x5d9840[_0x389e('0xed')]){if(!_0x5d9840[_0x389e('0xc9')]){if(_0x5d9840[_0x389e('0xc8')]){if(!this[_0x389e('0xe8')]||!Ot(_0x407e02,_0x38bdac))continue;return _0x407e02;}if(Ot(_0x407e02,_0x38bdac))return _0x407e02;this['_breakSuggestionMarker'](_0x407e02,_0x2afdec[_0x389e('0x3')],_0x2afdec[_0x389e('0x6a')]);break;}if(_0x2d45d7==_0x407e02[_0x389e('0x107')]&&Ot(_0x407e02,_0x38bdac)){const _0x19173b=_0x407e02['getFirstRange']();return _0x19173b['start'][_0x389e('0x7b')](_0x2afdec[_0x389e('0x6a')])?this[_0x389e('0x6')](_0x407e02,this['_model'][_0x389e('0xb0')](_0x2afdec['start'],_0x19173b[_0x389e('0x6a')])):this[_0x389e('0x6')](_0x407e02,this['_model'][_0x389e('0xb0')](_0x19173b[_0x389e('0x3')],_0x2afdec[_0x389e('0x6a')])),_0x407e02;}}const _0x1979c8=_0x2d3e82(),_0x195d6a=_0x30f321['id'],_0x5f4546=_0x2d45d7?'insertion:'+_0x2d45d7:_0x389e('0x95'),_0x2d24dd=this[_0x389e('0xda')]({'id':_0x1979c8,'type':_0x5f4546,'createdAt':new Date(),'authorId':_0x195d6a,'attributes':_0x38bdac});return this[_0x389e('0x11f')](_0x5f4546,_0x1979c8,_0x195d6a,_0x2afdec),_0x2d24dd;}[_0x389e('0x50')](_0x4fa24c,_0xe297ca=_0x389e('0x135'),_0x5bfd85={}){const _0x4ab07a=this['editor'][_0x389e('0xab')][_0x389e('0x11d')]('Users')['me'],_0x43d26f=this[_0x389e('0xc2')][_0x389e('0xbb')](_0x389e('0x95'),_0xe297ca,_0x389e('0xc'));for(const _0x4be408 of this[_0x389e('0xaf')]())if(_0x4be408[_0x389e('0xa1')]['id']==_0x4ab07a['id']&&'insertion'==_0x4be408[_0x389e('0x64')]&&_0x4be408['subType']==_0xe297ca&&Ot(_0x4be408,_0x5bfd85)&&(_0x43d26f(_0x4be408['getRanges'](),_0x4fa24c)||_0x43d26f(_0x4fa24c,_0x4be408['getRanges']()))){for(const _0x4c2fb9 of _0x4fa24c)_0x4be408['addRange'](_0x4c2fb9);return _0x4be408;}for(const {suggestion:_0x398ea6,meta:_0x1ea96b}of this[_0x389e('0x33')](_0x4fa24c,_0x389e('0x95'))){if(!_0x1ea96b[_0x389e('0xed')])continue;if(!this[_0x389e('0xe8')]&&_0x1ea96b[_0x389e('0xc8')])continue;if(!Ot(_0x398ea6,_0x5bfd85))continue;let _0x54246a=!0x0;for(const _0x411293 of _0x398ea6['getRanges']())for(const _0x167a53 of _0x4fa24c)if(!_0x411293[_0x389e('0xfb')](_0x167a53)){_0x54246a=!0x1;break;}if(_0x54246a)return _0x398ea6;}const _0x1ee0c9=_0x2d3e82(),_0x4868d0=_0x4ab07a['id'],_0x2e2381='insertion:'+_0xe297ca,_0x195317=this[_0x389e('0xda')]({'id':_0x1ee0c9,'type':_0x2e2381,'createdAt':new Date(),'authorId':_0x4868d0,'attributes':_0x5bfd85});for(const _0x2e8bcc of _0x4fa24c)this['_addSuggestionMarker'](_0x2e2381,_0x1ee0c9,_0x4868d0,_0x2e8bcc,_0x516b3f[_0x389e('0xb4')]());return _0x195317;}['markInlineFormat'](_0x895111,_0x52c863,_0x4ee902=null,_0x403f65={}){if(_0x4ee902=_0x4ee902||Nt(_0x52c863),_0x895111[_0x389e('0x124')])return null;if(_0x389e('0x133')===this[_0x389e('0x12c')]){const _0x1969b0=this[_0x389e('0xc2')]['getSuggestionCallback'](_0x389e('0x7'),_0x4ee902,_0x389e('0x38'));return this[_0x389e('0x12d')](()=>_0x1969b0([_0x895111],_0x52c863,_0x403f65)),null;}const _0x30d393=this[_0x389e('0x24')][_0x389e('0xab')][_0x389e('0x11d')](_0x389e('0x139'))['me'],_0x4ae664=[];if(_0x389e('0x1f')!==this[_0x389e('0x12c')])for(const {suggestion:_0x2484d6,meta:_0x3066b0}of this[_0x389e('0x33')](_0x895111,_0x389e('0x95')))_0x3066b0['isOwn']&&!_0x3066b0[_0x389e('0x2e')]&&_0x4ae664['push'](..._0x2484d6[_0x389e('0x92')]());const _0x3f257b=function(_0x47febc,_0x18b3ff){const _0x530cc1=[];for(const _0x3a8b69 of _0x18b3ff){const _0x2f9125=_0x47febc[_0x389e('0xf5')](_0x3a8b69);_0x2f9125&&_0x530cc1[_0x389e('0x131')](_0x2f9125);}return _0x530cc1;}(_0x895111,_0x4ae664),_0x3946f6=function(_0x317736,_0x1a7b49){const _0x20a185=[_0x317736];for(const _0x46080f of _0x1a7b49){let _0x1cc566=0x0;for(;_0x1cc566<_0x20a185['length'];){const _0x2a8d35=_0x20a185[_0x1cc566]['getDifference'](_0x46080f);_0x20a185[_0x389e('0xcd')](_0x1cc566,0x1,..._0x2a8d35),_0x1cc566+=_0x2a8d35['length'];}}return _0x20a185;}(_0x895111,_0x4ae664);_0x3f257b[_0x389e('0x105')]&&this['_model'][_0x389e('0x52')](()=>{for(const _0x2dbfb1 of _0x3f257b){const _0x86d8c0=this[_0x389e('0xc2')][_0x389e('0xbb')](_0x389e('0x7'),_0x4ee902,'accept');this[_0x389e('0x12d')](()=>_0x86d8c0([_0x2dbfb1],_0x52c863,_0x403f65));}});for(const _0x3b10b4 of _0x3946f6){let _0xd5d7ae=null,_0x41efd9=_0x3b10b4[_0x389e('0x3')],_0x32f710=_0x3b10b4[_0x389e('0x6a')];for(const {suggestion:_0x37ee33,meta:_0x38d810}of this[_0x389e('0x33')](_0x3b10b4,_0x389e('0x7'))){if(!_0x38d810[_0x389e('0xed')])continue;if(_0x37ee33[_0x389e('0x107')]!=_0x4ee902)continue;if(!Ot(_0x37ee33,_0x403f65))continue;const _0xa1161a=_0x37ee33[_0x389e('0xbe')]();if(_0xa1161a[_0x389e('0xfb')](_0x3b10b4,!0x0))return null;_0x41efd9=_0x41efd9[_0x389e('0x109')](_0xa1161a[_0x389e('0x3')])?_0x41efd9:_0xa1161a['start'],_0x32f710=_0x32f710[_0x389e('0xf7')](_0xa1161a[_0x389e('0x6a')])?_0x32f710:_0xa1161a[_0x389e('0x6a')],_0xd5d7ae?_0xa1161a[_0x389e('0x3')][_0x389e('0x109')](_0xd5d7ae[_0x389e('0xbe')]()[_0x389e('0x3')])?(_0xd5d7ae[_0x389e('0x11b')](),_0xd5d7ae=_0x37ee33):_0x37ee33['removeMarkers']():_0xd5d7ae=_0x37ee33;}const _0x3c6c02=this[_0x389e('0x13f')][_0x389e('0xb0')](_0x41efd9,_0x32f710);if(_0xd5d7ae)this[_0x389e('0x6')](_0xd5d7ae,_0x3c6c02);else{const _0x464f66=_0x2d3e82(),_0x251cc3=_0x30d393['id'];this[_0x389e('0xda')]({'id':_0x464f66,'type':'formatInline:'+_0x4ee902,'data':_0x52c863,'createdAt':new Date(),'authorId':_0x251cc3,'attributes':_0x403f65}),this['_addSuggestionMarker'](_0x389e('0x120')+_0x4ee902,_0x464f66,_0x251cc3,_0x3c6c02);}}return null;}[_0x389e('0x68')](_0x3bdbf9,_0x3f9545,_0x2520d4=[],_0x287c72=null,_0x409bec={}){_0x3f9545[_0x389e('0x44')]||(_0x3f9545[_0x389e('0x44')]=_0x3f9545[_0x389e('0xb6')]),_0x3f9545['multipleBlocks']=_0x3bdbf9['is']('range'),_0x287c72=_0x287c72||Nt(_0x3f9545);const _0x5cc2d8=_0x2520d4[_0x389e('0x110')](_0x16322e=>jt(_0x16322e,this['_model'])),_0xe57ee=_0x3bdbf9['is'](_0x389e('0x28'))?_0x3bdbf9:jt(_0x3bdbf9,this[_0x389e('0x13f')]);if('never'===this['_trackFormatChanges']){const _0x4f54ee=this[_0x389e('0xc2')][_0x389e('0xbb')]('formatBlock',_0x287c72,_0x389e('0x38'));return this['forceDefaultExecution'](()=>_0x4f54ee([_0xe57ee],_0x3f9545,_0x409bec)),null;}_0x5cc2d8[_0x389e('0x131')](_0xe57ee);let _0x49c39f=!0x0;for(const _0x5863a3 of _0x5cc2d8)if(!this[_0x389e('0xe2')](_0x5863a3)){_0x49c39f=!0x1;break;}if(_0x49c39f&&_0x389e('0x1f')!==this[_0x389e('0x12c')]){const _0x5b963a=this['_suggestionFactory'][_0x389e('0xbb')](_0x389e('0xc6'),_0x287c72,_0x389e('0x38'));return this['forceDefaultExecution'](()=>_0x5b963a([_0xe57ee],_0x3f9545,_0x409bec)),null;}let _0x81d8fb=null,_0x19adbf=_0xe57ee[_0x389e('0x3')],_0x25895e=_0xe57ee['end'];for(const {suggestion:_0x3c9dae,meta:_0x36d8f3}of this[_0x389e('0x33')](_0xe57ee,'formatBlock')){if(!_0x36d8f3[_0x389e('0xed')])continue;if(_0x36d8f3[_0x389e('0xc9')]||_0x36d8f3[_0x389e('0xc8')]||_0x36d8f3[_0x389e('0x2e')])continue;if(_0x3c9dae[_0x389e('0x13c')][_0x389e('0x44')]!=_0x3f9545[_0x389e('0x44')])continue;if(!Ot(_0x3c9dae,_0x409bec))continue;const _0x30918f=_0x3c9dae['getFirstRange']();if(_0x3c9dae[_0x389e('0x107')]==_0x287c72){if(_0x30918f[_0x389e('0xfb')](_0xe57ee,!0x0))return null;_0x19adbf=_0x19adbf[_0x389e('0x109')](_0x30918f[_0x389e('0x3')])?_0x19adbf:_0x30918f[_0x389e('0x3')],_0x25895e=_0x25895e[_0x389e('0xf7')](_0x30918f[_0x389e('0x6a')])?_0x25895e:_0x30918f[_0x389e('0x6a')],_0x81d8fb?_0x30918f['start']['isBefore'](_0x81d8fb[_0x389e('0xbe')]()[_0x389e('0x3')])?(_0x81d8fb['removeMarkers'](),_0x81d8fb=_0x3c9dae):_0x3c9dae[_0x389e('0x11b')]():_0x81d8fb=_0x3c9dae;}else{const _0x4e9d68=_0xe57ee['getIntersection'](_0x30918f);this['_cutOutSuggestionMarker'](_0x3c9dae,_0x4e9d68);}}const _0x3fcd7e=this['editor'][_0x389e('0xab')]['get'](_0x389e('0x139'))['me'],_0x462d49=_0x2d3e82(),_0x7ccc5e=_0x3fcd7e['id'];if(_0x81d8fb)return this[_0x389e('0x6')](_0x81d8fb,this[_0x389e('0x13f')][_0x389e('0xb0')](_0x19adbf,_0x25895e)),_0x81d8fb;{const _0x39a20f=this[_0x389e('0xda')]({'id':_0x462d49,'type':'formatBlock:'+_0x287c72,'data':_0x3f9545,'createdAt':new Date(),'authorId':_0x7ccc5e,'attributes':_0x409bec});return this['_addSuggestionMarker']('formatBlock:'+_0x287c72,_0x462d49,_0x7ccc5e,this[_0x389e('0x13f')][_0x389e('0xb0')](_0x19adbf,_0x25895e)),_0x39a20f;}}[_0x389e('0x10d')](_0x6a5726,_0x5e9c34,_0x125225=[],_0x38c80c=null,_0x6b912f={}){_0x5e9c34['formatGroupId']||(_0x5e9c34[_0x389e('0x44')]=_0x5e9c34['commandName']);const _0x490746=_0x6a5726[0x0];_0x5e9c34[_0x389e('0x138')]=_0x490746['is'](_0x389e('0x28')),_0x38c80c=_0x38c80c||Nt(_0x5e9c34);const _0x1e8581=_0x125225['map'](_0x4b20bf=>jt(_0x4b20bf,this[_0x389e('0x13f')])),_0x5e4812=_0x490746['is'](_0x389e('0x28'))?_0x6a5726:_0x6a5726[_0x389e('0x110')](_0x59c11a=>jt(_0x59c11a,this['_model']));if(_0x389e('0x133')===this[_0x389e('0x12c')]){const _0x4c5370=this[_0x389e('0xc2')]['getSuggestionCallback'](_0x389e('0xc6'),_0x38c80c,'accept');return this[_0x389e('0x12d')](()=>_0x4c5370(_0x5e4812,_0x5e9c34,_0x6b912f)),null;}_0x1e8581[_0x389e('0x131')](..._0x5e4812);let _0x4247fe=!0x0;for(const _0x3e17fd of _0x1e8581)if(!this[_0x389e('0xe2')](_0x3e17fd)){_0x4247fe=!0x1;break;}if(_0x4247fe&&_0x389e('0x1f')!==this[_0x389e('0x12c')]){const _0x3fa55e=this[_0x389e('0xc2')][_0x389e('0xbb')](_0x389e('0xc6'),_0x38c80c,'accept');return this[_0x389e('0x12d')](()=>_0x3fa55e(_0x5e4812,_0x5e9c34,_0x6b912f)),null;}const _0x18fcde=this[_0x389e('0x24')][_0x389e('0xab')][_0x389e('0x11d')](_0x389e('0x139'))['me'];for(const _0x14b077 of this['getSuggestions']()){if(_0x14b077[_0x389e('0xa1')]['id']!=_0x18fcde['id'])continue;if(_0x389e('0xc6')!=_0x14b077['type']||_0x14b077['data'][_0x389e('0x44')]!=_0x5e9c34[_0x389e('0x44')])continue;if(!Ot(_0x14b077,_0x6b912f))continue;const _0x101077=_0x14b077[_0x389e('0x107')]==_0x38c80c;for(let _0x7a989=0x0;_0x7a989<_0x5e4812[_0x389e('0x105')];_0x7a989++){const _0x580d27=_0x5e4812[_0x7a989];for(const _0x5d9944 of _0x14b077[_0x389e('0x0')]()){const _0x4d0446=_0x5d9944[_0x389e('0x51')]();if(_0x580d27[_0x389e('0x7b')](_0x4d0446)){_0x101077?(_0x5e4812['splice'](_0x7a989,0x1),_0x7a989--):_0x14b077[_0x389e('0x9a')](_0x5d9944[_0x389e('0x47')]);break;}}}}if(0x0==_0x5e4812[_0x389e('0x105')])return null;const _0x26dde9=this[_0x389e('0xc2')][_0x389e('0xbb')](_0x389e('0xc6'),_0x38c80c,_0x389e('0xc'));for(const _0x3bd5aa of this[_0x389e('0xaf')]())if(_0x3bd5aa['author']['id']==_0x18fcde['id']&&_0x389e('0xc6')==_0x3bd5aa[_0x389e('0x64')]&&_0x3bd5aa[_0x389e('0x13c')][_0x389e('0x44')]==_0x5e9c34[_0x389e('0x44')]&&_0x3bd5aa[_0x389e('0x107')]==_0x38c80c&&Ot(_0x3bd5aa,_0x6b912f)&&(_0x26dde9(_0x3bd5aa[_0x389e('0x92')](),_0x5e4812)||_0x26dde9(_0x5e4812,_0x3bd5aa['getRanges']()))){for(const _0x10dc0c of _0x5e4812)_0x3bd5aa[_0x389e('0x46')](_0x10dc0c);return _0x3bd5aa;}const _0x17f2f5=_0x2d3e82(),_0x4f84f1=_0x18fcde['id'],_0x5b3369=_0x389e('0xb9')+_0x38c80c,_0x1c875b=this[_0x389e('0xda')]({'id':_0x17f2f5,'type':_0x5b3369,'data':_0x5e9c34,'createdAt':new Date(),'authorId':_0x4f84f1,'attributes':_0x6b912f});for(const _0x3129d4 of _0x5e4812)this['_addSuggestionMarker'](_0x5b3369,_0x17f2f5,_0x4f84f1,_0x3129d4,_0x516b3f[_0x389e('0xb4')]());return _0x1c875b;}['markDeletion'](_0x2317bc,_0x4bfc0f=null,_0x25cab1={}){if(_0x2317bc['isCollapsed'])return null;const _0x412870=this['editor']['plugins']['get']('Users')['me'],_0x39c6a6=new _0x2b7e22(_0x2317bc[_0x389e('0x3')],_0x2317bc['end']);for(const {suggestion:_0x109d32,meta:_0x525404}of this[_0x389e('0x33')](_0x39c6a6,_0x389e('0x95')))if(_0x525404[_0x389e('0xed')]&&!_0x525404['isNextTo']){if(_0x109d32['isMultiRange']){const _0x23b7c3=_0x109d32[_0x389e('0x92')]()[_0x389e('0x56')](_0x3a49f7=>_0x389e('0x94')!=_0x3a49f7[_0x389e('0x14')][_0x389e('0x90')]);_0x23b7c3[_0x389e('0xd4')](_0x1eb89b=>_0x39c6a6[_0x389e('0xfb')](_0x1eb89b,!0x0))&&_0x109d32[_0x389e('0x9b')]();if(_0x23b7c3[_0x389e('0x75')](_0x41bdb6=>_0x41bdb6[_0x389e('0xfb')](_0x39c6a6,!0x0))){const _0x1e05f2=this[_0x389e('0xc2')][_0x389e('0xbb')](_0x389e('0x122'),_0x4bfc0f,_0x389e('0x38'));return this[_0x389e('0x12d')](()=>_0x1e05f2([_0x39c6a6],null,_0x25cab1)),null;}}else{const _0x386a1b=_0x39c6a6[_0x389e('0xf5')](_0x109d32[_0x389e('0xbe')]());null!==_0x386a1b&&_0x109d32[_0x389e('0x62')]([_0x386a1b],null,_0x25cab1);}}if(_0x39c6a6[_0x389e('0xe5')](),_0x39c6a6['isCollapsed']||'$graveyard'==_0x39c6a6[_0x389e('0x14')][_0x389e('0x90')])return null;let _0x4cb005=null,_0x1b0a3a=_0x39c6a6[_0x389e('0x3')],_0x1a4c5f=_0x39c6a6[_0x389e('0x6a')];const _0x103f9e=this[_0x389e('0x33')](_0x39c6a6,_0x389e('0x122'));for(const {suggestion:_0x4e3f32,meta:_0x2517dd}of _0x103f9e){const _0x3b81cc=this[_0x389e('0x13f')][_0x389e('0xb0')](_0x1b0a3a,_0x1a4c5f);if(_0x2517dd[_0x389e('0xed')]&&(this[_0x389e('0xe8')]||!_0x2517dd[_0x389e('0xc8')]&&!_0x2517dd[_0x389e('0x2e')])){if(_0x4e3f32['isMultiRange']){if(!Ot(_0x4e3f32,_0x25cab1))continue;let _0x4d8fcc=!0x0;for(const _0x3b9c7e of _0x4e3f32[_0x389e('0x92')]()){if(_0x3b9c7e[_0x389e('0xfb')](_0x3b81cc,!0x0))return _0x4e3f32;_0x3b81cc[_0x389e('0xfb')](_0x3b9c7e)||(_0x4d8fcc=!0x1);}_0x4d8fcc&&_0x4e3f32[_0x389e('0x9b')]();}else{const _0x871ae2=_0x4e3f32['getFirstRange']();if(_0x871ae2[_0x389e('0xfb')](_0x3b81cc,!0x0))return _0x4e3f32;if(!Ot(_0x4e3f32,_0x25cab1)){_0x3b81cc[_0x389e('0xfb')](_0x871ae2)?_0x4e3f32['removeMarkers']():_0x871ae2[_0x389e('0xde')](_0x1b0a3a)?_0x1b0a3a=_0x871ae2['end']:_0x871ae2[_0x389e('0xde')](_0x1a4c5f)&&(_0x1a4c5f=_0x871ae2[_0x389e('0x3')]);continue;}_0x1b0a3a=_0x1b0a3a[_0x389e('0x109')](_0x871ae2[_0x389e('0x3')])?_0x1b0a3a:_0x871ae2[_0x389e('0x3')],_0x1a4c5f=_0x1a4c5f[_0x389e('0xf7')](_0x871ae2['end'])?_0x1a4c5f:_0x871ae2[_0x389e('0x6a')],_0x25cab1=Object[_0x389e('0x100')]({},_0x4e3f32[_0x389e('0x114')]),_0x4cb005?_0x871ae2[_0x389e('0x3')][_0x389e('0x109')](_0x4cb005[_0x389e('0xbe')]()['start'])?(_0x4cb005['removeMarkers'](),_0x4cb005=_0x4e3f32):_0x4e3f32['removeMarkers']():_0x4cb005=_0x4e3f32;}}}if(_0x4cb005)return this[_0x389e('0x6')](_0x4cb005,this['_model'][_0x389e('0xb0')](_0x1b0a3a,_0x1a4c5f)),_0x4cb005;{const _0x1a42dc=_0x2d3e82(),_0x5ad361=this[_0x389e('0x13f')][_0x389e('0xb0')](_0x1b0a3a,_0x1a4c5f),_0x2cb93f=_0x412870['id'],_0x2016a4=_0x4bfc0f?_0x389e('0x45')+_0x4bfc0f:_0x389e('0x122'),_0x5ca9ac=this[_0x389e('0xda')]({'id':_0x1a42dc,'type':_0x2016a4,'createdAt':new Date(),'authorId':_0x2cb93f,'attributes':_0x25cab1});return this[_0x389e('0x11f')](_0x2016a4,_0x1a42dc,_0x2cb93f,_0x5ad361),_0x5ca9ac;}}[_0x389e('0x4')](_0x45ad6f,_0x2e3ef7='multi',_0x5421f0={}){const _0x4a7a57=this[_0x389e('0x24')][_0x389e('0xab')][_0x389e('0x11d')](_0x389e('0x139'))['me'],_0x25fb3c=_0x45ad6f['map'](_0x315abe=>new _0x2b7e22(_0x315abe[_0x389e('0x3')],_0x315abe[_0x389e('0x6a')])),_0x2ea77e=new Set();for(const {suggestion:_0x5979fc,meta:_0x3c5f08}of this['_findSuggestions'](_0x25fb3c,_0x389e('0x95')))_0x3c5f08['isOwn']&&!_0x3c5f08[_0x389e('0xc9')]&&_0x2ea77e[_0x389e('0x4c')](_0x5979fc);for(const _0x1e46d1 of _0x2ea77e)if(_0x1e46d1[_0x389e('0xc5')]){const _0x5d3415=_0x1e46d1[_0x389e('0x92')]();(!_0x1e46d1['attributes']||!_0x1e46d1[_0x389e('0x114')][_0x389e('0x5d')])&&(_0x5d3415['every'](_0x1cb929=>_0x25fb3c[_0x389e('0x75')](_0x20f45a=>_0x20f45a[_0x389e('0xfb')](_0x1cb929,!0x0)))&&_0x1e46d1[_0x389e('0x9b')]());if(_0x25fb3c[_0x389e('0xd4')](_0x552752=>_0x5d3415[_0x389e('0x75')](_0x3575f5=>_0x3575f5[_0x389e('0xfb')](_0x552752,!0x0)))){const _0x4d6e37=this[_0x389e('0xc2')][_0x389e('0xbb')](_0x389e('0x122'),_0x2e3ef7,_0x389e('0x38'));return this['forceDefaultExecution'](()=>_0x4d6e37(_0x45ad6f,null,_0x5421f0)),null;}}else{const _0x21e0d2=_0x1e46d1[_0x389e('0xbe')]();_0x25fb3c['some'](_0x222611=>_0x222611[_0x389e('0xfb')](_0x21e0d2,!0x0))&&_0x1e46d1['discard']();if(_0x25fb3c[_0x389e('0xd4')](_0x1e4c0c=>_0x21e0d2[_0x389e('0xfb')](_0x1e4c0c,!0x0))){const _0x4fdbb1=this[_0x389e('0xc2')]['getSuggestionCallback'](_0x389e('0x122'),_0x2e3ef7,_0x389e('0x38'));return this['forceDefaultExecution'](()=>_0x4fdbb1(_0x25fb3c,null,_0x5421f0)),null;}}const _0x28be74=this[_0x389e('0xc2')][_0x389e('0xbb')](_0x389e('0x122'),_0x2e3ef7,'join');let _0x52fdcd=null;for(const _0x540283 of this['getSuggestions']())if(_0x540283[_0x389e('0xa1')]['id']==_0x4a7a57['id']&&_0x540283['isInContent']&&_0x389e('0x122')==_0x540283[_0x389e('0x64')]&&_0x540283[_0x389e('0x107')]==_0x2e3ef7&&Ot(_0x540283,_0x5421f0)&&(_0x28be74(_0x540283[_0x389e('0x92')](),_0x25fb3c)||_0x28be74(_0x25fb3c,_0x540283[_0x389e('0x92')]()))){if(_0x52fdcd){if(_0x540283[_0x389e('0xec')]&&_0x540283[_0x389e('0xec')][_0x389e('0x105')])continue;for(const _0x201d08 of _0x540283[_0x389e('0x92')]())_0x52fdcd[_0x389e('0x113')](_0x201d08)||_0x52fdcd[_0x389e('0x46')](_0x201d08);_0x540283[_0x389e('0x11b')]();}else{_0x52fdcd=_0x540283;for(const _0x3bc33c of _0x25fb3c)_0x540283[_0x389e('0x113')](_0x3bc33c)||_0x540283[_0x389e('0x46')](_0x3bc33c);}}if(_0x52fdcd)return _0x52fdcd;_0x2ea77e[_0x389e('0x6e')]();for(const {suggestion:_0x328439,meta:_0x4b7e9c}of this[_0x389e('0x33')](_0x25fb3c,'deletion'))_0x4b7e9c[_0x389e('0xed')]&&(this['_mergeNestedSuggestions']||!_0x4b7e9c[_0x389e('0xc8')]&&!_0x4b7e9c['isInsideObject'])&&Ot(_0x328439,_0x5421f0)&&_0x2ea77e[_0x389e('0x4c')](_0x328439);for(const _0x1c6af0 of _0x2ea77e){const _0x3184f2=_0x1c6af0[_0x389e('0x92')]();if(!_0x5421f0||!_0x5421f0[_0x389e('0x5d')]){if(_0x25fb3c[_0x389e('0xd4')](_0x5cfc5b=>_0x3184f2[_0x389e('0x75')](_0x260882=>_0x260882[_0x389e('0xfb')](_0x5cfc5b,!0x0))))return _0x1c6af0;}(!_0x1c6af0[_0x389e('0x114')]||!_0x1c6af0[_0x389e('0x114')][_0x389e('0x5d')])&&(_0x3184f2['every'](_0x3fed5b=>_0x25fb3c['some'](_0x49c9b4=>_0x49c9b4[_0x389e('0xfb')](_0x3fed5b,!0x0)))&&_0x1c6af0['discard']());}const _0x8fac09=_0x2d3e82(),_0x146d73=_0x4a7a57['id'],_0x5ba542=_0x389e('0x45')+_0x2e3ef7,_0x44f48d=this['_setSuggestionData']({'id':_0x8fac09,'type':_0x5ba542,'createdAt':new Date(),'authorId':_0x146d73,'attributes':_0x5421f0});for(const _0x24b2b9 of _0x25fb3c)_0x24b2b9['detach'](),_0x24b2b9[_0x389e('0x124')]||_0x389e('0x94')==_0x24b2b9['root'][_0x389e('0x90')]||this['_addSuggestionMarker'](_0x5ba542,_0x8fac09,_0x146d73,_0x24b2b9,_0x516b3f[_0x389e('0xb4')]());return _0x44f48d;}['_setSuggestionRange'](_0x4e01cf,_0x1a09b4){const _0x4e3fb1=_0x4e01cf['getFirstMarker']();this[_0x389e('0x13f')][_0x389e('0x52')](_0x2ba14d=>{_0x2ba14d[_0x389e('0x99')](_0x4e3fb1,{'range':_0x1a09b4});});}['_addThreadToSuggestion'](_0x374bc9){const _0x149f77=_0x374bc9['id'],_0x39b1ef=this[_0x389e('0x24')][_0x389e('0x9d')][_0x389e('0x11d')]('collaboration.channelId');this[_0x389e('0xa8')]['hasCommentThread'](_0x149f77)||this['_commentsRepository'][_0x389e('0x115')]({'channelId':_0x39b1ef,'threadId':_0x149f77,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x299dfd=this[_0x389e('0xa8')][_0x389e('0x43')](_0x149f77);_0x299dfd[_0x389e('0x54')]('isRemovable'),_0x299dfd['isRemovable']=!0x1,_0x374bc9[_0x389e('0xec')]=_0x299dfd;}[_0x389e('0xb8')](_0x38dce6,_0x33b762,_0x56afd7,_0x3261ed){if(_0x38dce6[_0x389e('0x64')]!=_0x33b762||_0x38dce6[_0x389e('0x107')]!=_0x56afd7||_0x38dce6[_0x389e('0x129')]['id']!=_0x3261ed)throw this['editor']['enableReadOnlyMode'](_0x389e('0x13')),new _0x446f02(_0x389e('0x13'),this);}[_0x389e('0x71')](_0x1c2d28,_0x36163c){const _0x1e6ecd=_0x1c2d28['getFirstRange']();if(_0x36163c[_0x389e('0x7b')](_0x1e6ecd))_0x1c2d28[_0x389e('0x11b')]();else{if(_0x1e6ecd['containsRange'](_0x36163c)){const _0x1c5fe3=this[_0x389e('0x13f')][_0x389e('0xae')](_0x36163c[_0x389e('0x3')][_0x389e('0x123')],'end');this[_0x389e('0x6')](_0x1c2d28,this[_0x389e('0x13f')][_0x389e('0xb0')](_0x1e6ecd[_0x389e('0x3')],_0x1c5fe3));const _0x2809c3=_0x2d3e82(),_0x178063=_0x1c2d28[_0x389e('0x129')]['id'],_0x429301=_0x1c2d28['type']+':'+_0x1c2d28['subType'];this[_0x389e('0xda')]({'id':_0x2809c3,'type':_0x429301,'createdAt':new Date(),'authorId':_0x178063,'data':_0x1c2d28[_0x389e('0x13c')],'attributes':_0x1c2d28[_0x389e('0x114')]});const _0x400ea6=this['_model'][_0x389e('0xae')](_0x36163c[_0x389e('0x6a')]['parent'],'after'),_0x2a7db7=this[_0x389e('0x13f')][_0x389e('0xb0')](_0x400ea6,_0x1e6ecd[_0x389e('0x6a')]);this[_0x389e('0x11f')](_0x429301,_0x2809c3,_0x178063,_0x2a7db7);}else{if(_0x1e6ecd['containsPosition'](_0x36163c['start'])){const _0x57923e=this[_0x389e('0x13f')][_0x389e('0xae')](_0x36163c['start'][_0x389e('0x123')],_0x389e('0x6a'));this['_setSuggestionRange'](_0x1c2d28,this[_0x389e('0x13f')][_0x389e('0xb0')](_0x1e6ecd[_0x389e('0x3')],_0x57923e));}else{const _0x34233d=this[_0x389e('0x13f')]['createPositionAt'](_0x36163c[_0x389e('0x6a')][_0x389e('0x8e')],_0x389e('0x27'));this[_0x389e('0x6')](_0x1c2d28,this[_0x389e('0x13f')][_0x389e('0xb0')](_0x34233d,_0x1e6ecd[_0x389e('0x6a')]));}}}}[_0x389e('0xe2')](_0x595691){for(const {suggestion:_0x116cf8,meta:_0x3ac9b3}of this[_0x389e('0x33')](_0x595691,'insertion')){if(!_0x3ac9b3[_0x389e('0xed')])continue;const _0x221356=_0x116cf8['getRanges']();for(const _0x5bb099 of _0x221356)if(!_0x595691['getDifference'](_0x5bb099)['length'])return!0x0;}return!0x1;}[_0x389e('0x11e')](_0x1b1e96){const _0x21d198=this[_0x389e('0x24')][_0x389e('0xab')][_0x389e('0x11d')]('Users')[_0x389e('0xb')](_0x1b1e96);if(!_0x21d198)throw new _0x446f02('track-changes-user-not-found',this);return _0x21d198;}[_0x389e('0xb7')](_0x2fcd4e){const _0x29b9cc=this[_0x389e('0x24')][_0x389e('0xab')][_0x389e('0x11d')](_0x389e('0x139')),_0x391f78=_0x220e2f(_0x389e('0xfd')+_0x2fcd4e),_0x16762a=_0x29b9cc[_0x389e('0xb')](_0x391f78);return _0x16762a||_0x29b9cc['addUser']({'id':_0x391f78,'name':_0x2fcd4e});}[_0x389e('0xfc')](_0x325d37,_0x83fc8b,_0x3464c2,_0x3b46e0,_0x40498a){const _0x1c1047=this[_0x389e('0x11e')](_0x3b46e0),_0x2de47c=this[_0x389e('0xc2')][_0x389e('0x13e')](_0x325d37,_0x83fc8b,_0x3464c2,_0x1c1047,_0x40498a,_0xe5e05c=>this[_0x389e('0x34')](_0x3464c2,{'attributes':_0xe5e05c}));return this[_0x389e('0x6f')](_0x2de47c,_0x389e('0x38'),()=>{this[_0x389e('0x34')](_0x3464c2,{'state':_0x389e('0xa5')});},{'priority':_0x389e('0x79')}),this[_0x389e('0x6f')](_0x2de47c,'discard',()=>{this[_0x389e('0x34')](_0x3464c2,{'state':_0x389e('0xa')});},{'priority':'high'}),this[_0x389e('0x31')]['set'](_0x3464c2,_0x2de47c),this['_suggestionState']['set'](_0x2de47c,'notReady'),_0x2de47c;}[_0x389e('0xf1')](_0x14c450){const _0x1e594c=_0x14c450['split'](':');return{'group':_0x1e594c[0x0],'type':_0x1e594c[0x1],'subType':_0x1e594c[_0x389e('0x105')]>=0x5?_0x1e594c[0x2]:null,'id':_0x1e594c[_0x389e('0x105')]<0x5?_0x1e594c[0x2]:_0x1e594c[0x3],'authorId':_0x1e594c[_0x389e('0x105')]<0x5?_0x1e594c[0x3]:_0x1e594c[0x4],'markerCount':0x6==_0x1e594c[_0x389e('0x105')]?_0x1e594c[0x5]:null};}['_breakSuggestionMarker'](_0x62f6a6,_0x349da0,_0x4efaa9){const _0xcc2d08=_0x62f6a6[_0x389e('0xbe')](),_0x1b345f=_0xcc2d08['start'],_0x3ba174=_0xcc2d08[_0x389e('0x6a')];this[_0x389e('0x6')](_0x62f6a6,this['_model'][_0x389e('0xb0')](_0x1b345f,_0x349da0));const _0x3f1ece=_0x2d3e82(),_0x1ff233=_0x62f6a6[_0x389e('0x129')]['id'],_0x6be643=_0x62f6a6[_0x389e('0x64')]+(_0x62f6a6['subType']?':'+_0x62f6a6[_0x389e('0x107')]:'');this[_0x389e('0xda')]({'id':_0x3f1ece,'type':_0x6be643,'createdAt':new Date(),'authorId':_0x1ff233,'originalSuggestionId':_0x62f6a6['id'],'attributes':_0x62f6a6[_0x389e('0x114')],'data':_0x62f6a6[_0x389e('0x13c')]}),_0x389e('0xc6')==_0x62f6a6[_0x389e('0x64')]&&(_0x4efaa9=this[_0x389e('0x13f')][_0x389e('0x1a')](_0x4efaa9[_0x389e('0x8e')])),this[_0x389e('0x11f')](_0x6be643,_0x3f1ece,_0x1ff233,this[_0x389e('0x13f')][_0x389e('0xb0')](_0x4efaa9,_0x3ba174));}[_0x389e('0x33')](_0x1e80c6,_0x44240f=null){const _0x142c00=[],_0x7ac116=this[_0x389e('0x24')][_0x389e('0xab')][_0x389e('0x11d')](_0x389e('0x139'))['me'];Array[_0x389e('0x40')](_0x1e80c6)||(_0x1e80c6=[_0x1e80c6]);for(const _0x227251 of this[_0x389e('0xaf')]()){if(!_0x227251['isInContent'])continue;if(_0x44240f&&_0x227251[_0x389e('0x64')]!=_0x44240f)continue;let _0x4a097b=!0x1;for(const _0x1c4360 of _0x227251[_0x389e('0x92')]()){for(const _0xcbee5d of _0x1e80c6){const _0x1cc9de=_0xcbee5d['start'][_0x389e('0x7b')](_0x1c4360[_0x389e('0x6a')])||_0xcbee5d[_0x389e('0x6a')][_0x389e('0x7b')](_0x1c4360[_0x389e('0x3')]);if(_0x1cc9de||_0xcbee5d[_0x389e('0xf5')](_0x1c4360)){const _0x3954fb=_0xcbee5d[_0x389e('0xfb')](_0x1c4360)&&_t(this[_0x389e('0x13f')][_0x389e('0x98')],_0x1c4360[_0x389e('0x3')],_0xcbee5d),_0x273243=_0x1c4360[_0x389e('0xfb')](_0xcbee5d)&&_t(this[_0x389e('0x13f')][_0x389e('0x98')],_0xcbee5d[_0x389e('0x3')],_0x1c4360);_0x142c00[_0x389e('0x131')]({'suggestion':_0x227251,'meta':{'isOwn':_0x7ac116==_0x227251['author'],'isNextTo':_0x1cc9de,'isInsideObject':_0x3954fb,'containsRangeInObject':_0x273243}}),_0x4a097b=!0x0;break;}}if(_0x4a097b)break;}}return _0x142c00;}['_addSuggestionMarker'](_0xff6b40,_0x344d18,_0xcd54fb,_0x6a9b1c,_0x48bec8){this[_0x389e('0x13f')][_0x389e('0x52')](_0x1541e1=>{let _0x753a05=_0x389e('0xd7')+_0xff6b40+':'+_0x344d18+':'+_0xcd54fb;_0x48bec8&&(_0x753a05=_0x753a05+':'+_0x48bec8),_0x1541e1[_0x389e('0x32')](_0x753a05,{'range':_0x6a9b1c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x389e('0x5')](_0x84f56d){const _0x3bd1b7=_0x84f56d[_0x389e('0x72')],_0xd85da2=_0x84f56d['next'];_0x84f56d['previous']=null,null!=_0x3bd1b7&&(_0x3bd1b7[_0x389e('0x74')]=null),_0x84f56d[_0x389e('0x74')]=null,null!=_0xd85da2&&(_0xd85da2[_0x389e('0x72')]=null),_0x389e('0x55')==this[_0x389e('0x23')][_0x389e('0x11d')](_0x84f56d)&&(this[_0x389e('0x23')][_0x389e('0x48')](_0x84f56d,_0x389e('0x132')),this[_0x389e('0xe0')](_0x389e('0x125'),_0x84f56d,_0x3bd1b7,_0xd85da2));}[_0x389e('0xda')](_0x40ad53){const _0x445b62=_0x40ad53['id'],_0x581a2d=this[_0x389e('0x121')](_0x40ad53);if(this[_0x389e('0x25')]&&this[_0x389e('0x25')][_0x389e('0xfe')]){const _0x5c75dd=this['editor'][_0x389e('0xab')][_0x389e('0x11d')](_0x389e('0xe4')),_0x452140=_0x581a2d[_0x389e('0x106')],_0x3ef7c1=_0x581a2d[_0x389e('0x107')]?_0x581a2d['type']+':'+_0x581a2d[_0x389e('0x107')]:_0x581a2d[_0x389e('0x64')],_0x1150ca=this[_0x389e('0x24')][_0x389e('0x11')],_0x3ce131=_0x5c75dd['add'](_0x1789a5(_0x1150ca,_0x389e('0xdf'))),_0x148666={'id':_0x445b62,'type':_0x3ef7c1,'hasComments':_0x452140,'data':_0x40ad53[_0x389e('0x13c')]||null,'originalSuggestionId':_0x40ad53[_0x389e('0xfa')]||null,'attributes':_0x581a2d[_0x389e('0x114')]};this[_0x389e('0x25')][_0x389e('0xfe')](_0x148666)['then'](_0x45a63c=>{_0x581a2d[_0x389e('0x65')]=!0x0,_0x5c75dd[_0x389e('0x8')](_0x3ce131),_0x45a63c&&_0x45a63c[_0x389e('0x5c')]&&(this[_0x389e('0x31')]['get'](_0x445b62)[_0x389e('0x5c')]=_0x45a63c[_0x389e('0x5c')]);})[_0x389e('0xcb')](_0x49458b=>{throw _0x4001e4(_0x389e('0x101')),this[_0x389e('0x24')][_0x389e('0xef')][_0x389e('0xa9')]({'isUndoable':!0x1},()=>{_0x581a2d[_0x389e('0x9b')]();}),_0x581a2d[_0x389e('0x1')](),this[_0x389e('0x31')][_0x389e('0x7a')](_0x581a2d['id']),this[_0x389e('0x23')][_0x389e('0x7a')](_0x581a2d),_0x49458b;});}return _0x581a2d;}[_0x389e('0x34')](_0x4cc2f4,_0x481e54){const _0xac8131=this[_0x389e('0x24')][_0x389e('0xab')]['get'](_0x389e('0xe4')),_0x44b100=this[_0x389e('0x102')](_0x4cc2f4);if(this['_adapter']&&this[_0x389e('0x25')]['updateSuggestion']){if(_0x44b100[_0x389e('0x65')]){const _0x3f57a9=_0xac8131[_0x389e('0x4c')](_0x1789a5(this[_0x389e('0x24')][_0x389e('0x11')],_0x389e('0xdf')));this[_0x389e('0x25')][_0x389e('0x16')](_0x4cc2f4,_0x481e54)['then'](()=>{_0xac8131[_0x389e('0x8')](_0x3f57a9);});}else _0x44b100['on'](_0x389e('0x9'),()=>{this[_0x389e('0x34')](_0x4cc2f4,_0x481e54);});}}[_0x389e('0x137')](_0x148b4e){if(!this[_0x389e('0x25')]||!this[_0x389e('0x25')]['getSuggestion'])throw new _0x446f02(_0x389e('0x53'),this);return this['_adapter']['getSuggestion'](_0x148b4e);}['_handleNewSuggestionMarker'](_0x5be4a2){const {id:_0x1ff509,type:_0x40e6ad,subType:_0x4ff871,authorId:_0x43cfa0}=this['_splitMarkerName'](_0x5be4a2),_0x2a649b=this[_0x389e('0x31')][_0x389e('0x11d')](_0x1ff509)||this[_0x389e('0xfc')](_0x40e6ad,_0x4ff871,_0x1ff509,_0x43cfa0,{});switch(this[_0x389e('0xb8')](_0x2a649b,_0x40e6ad,_0x4ff871,_0x43cfa0),this[_0x389e('0x23')][_0x389e('0x11d')](_0x2a649b)){case _0x389e('0xd5'):this['_getSuggestionData'](_0x1ff509)['then'](_0x462c8b=>{let _0xad6459=Promise['resolve']();_0x462c8b[_0x389e('0x106')]&&(_0xad6459=this['_commentsRepository']['fetchCommentThread']({'channelId':this[_0x389e('0x24')][_0x389e('0x9d')]['get'](_0x389e('0xce')),'threadId':_0x1ff509})),_0xad6459['then'](()=>{this[_0x389e('0x121')](_0x462c8b)[_0x389e('0x65')]=!0x0;});}),this['_suggestionState']['set'](_0x2a649b,_0x389e('0xf'));break;case'removed':this['_updateSuggestionData'](_0x1ff509,{'state':_0x389e('0x2b')});case _0x389e('0x9e'):this[_0x389e('0x23')]['set'](_0x2a649b,_0x389e('0x55')),this[_0x389e('0xe0')](_0x389e('0x76'),_0x2a649b);break;case _0x389e('0x55'):this[_0x389e('0xe0')]('suggestionChanged',_0x2a649b);}return _0x2a649b[_0x389e('0x85')](_0x5be4a2),_0x2a649b;}[_0x389e('0x30')](_0x508502){const _0x5236cb=Array[_0x389e('0xc7')](_0x508502)[_0x389e('0x56')](_0x4428fd=>!_0x4428fd[_0x389e('0xc5')]),_0x175b0c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x296e24=>!_0x296e24[_0x389e('0xc5')]),_0xea41ad=_0x175b0c[_0x389e('0x56')](_0x140b9d=>!_0x508502['has'](_0x140b9d)),_0x545d71=new Map(_0x175b0c[_0x389e('0x110')](_0x313448=>[_0x313448,this[_0x389e('0xc2')][_0x389e('0xbb')](_0x313448[_0x389e('0x64')],_0x313448[_0x389e('0x107')],_0x389e('0x5a'))])),_0x15d553=new Map(_0x175b0c[_0x389e('0x110')](_0x1bba0c=>[_0x1bba0c,_0x1bba0c[_0x389e('0xbe')]()])),_0x31ad58=new Set(),_0x3b061e=new Set();for(let _0x5db838=0x0;_0x5db838<_0x5236cb[_0x389e('0x105')];_0x5db838++)_0x878db6(_0x5236cb[_0x5db838],_0x5236cb,_0x5db838+0x1);for(let _0x293acc=0x0;_0x293acc<_0x5236cb[_0x389e('0x105')];_0x293acc++)_0x878db6(_0x5236cb[_0x293acc],_0xea41ad,0x0);for(let _0x4669e4=0x0;_0x4669e4<_0x5236cb['length'];_0x4669e4++){const _0x28f0aa=_0x5236cb[_0x4669e4];!_0x3b061e[_0x389e('0x8d')](_0x28f0aa)&&_0x28f0aa[_0x389e('0x72')]&&(_0x28f0aa['previous']['next']===_0x28f0aa&&(_0x28f0aa[_0x389e('0x72')][_0x389e('0x74')]=null),_0x28f0aa[_0x389e('0x72')]=null),!_0x31ad58[_0x389e('0x8d')](_0x28f0aa)&&_0x28f0aa[_0x389e('0x74')]&&(_0x28f0aa[_0x389e('0x74')]['previous']===_0x28f0aa&&(_0x28f0aa[_0x389e('0x74')][_0x389e('0x72')]=null),_0x28f0aa['next']=null);}function _0x878db6(_0x21c480,_0x17b747,_0x4c67f1){for(let _0x2cd840=_0x4c67f1;_0x2cd840<_0x17b747[_0x389e('0x105')];_0x2cd840++){const _0x15afd2=_0x924da4(_0x21c480,_0x17b747[_0x2cd840]);_0x15afd2&&(_0x15afd2[0x0][_0x389e('0x74')]=_0x15afd2[0x1],_0x15afd2[0x1][_0x389e('0x72')]=_0x15afd2[0x0],_0x31ad58[_0x389e('0x4c')](_0x15afd2[0x0]),_0x3b061e[_0x389e('0x4c')](_0x15afd2[0x1]));}}function _0x924da4(_0x145b11,_0x13a9c8){if(_0x145b11['author']['id']!==_0x13a9c8[_0x389e('0xa1')]['id'])return null;const _0x2c79e1=_0x545d71[_0x389e('0x11d')](_0x145b11)(_0x145b11,_0x13a9c8,_0x15d553['get'](_0x145b11),_0x15d553['get'](_0x13a9c8));if(!_0x2c79e1)return null;return _0x545d71[_0x389e('0x11d')](_0x13a9c8)(_0x145b11,_0x13a9c8,_0x15d553[_0x389e('0x11d')](_0x145b11),_0x15d553['get'](_0x13a9c8))?_0x2c79e1[0x1][_0x389e('0xec')]&&_0x2c79e1[0x1][_0x389e('0xec')][_0x389e('0x105')]?null:_0x2c79e1:null;}}[_0x389e('0xac')](_0x1dddfa){const _0x42d6c9=Array[_0x389e('0xc7')](_0x1dddfa),_0x1a5811=this['getSuggestions']({'skipNotAttached':!0x0}),_0xff26de=_0x1a5811['filter'](_0x101f30=>!_0x1dddfa[_0x389e('0x8d')](_0x101f30)),_0x3eda4d=new Map(_0x42d6c9[_0x389e('0x110')](_0x538bf9=>[_0x538bf9,this[_0x389e('0xc2')][_0x389e('0xbb')](_0x538bf9[_0x389e('0x64')],_0x538bf9[_0x389e('0x107')],'join')])),_0x17da7c=new Map(_0x1a5811['map'](_0x55b073=>[_0x55b073,_0x55b073[_0x389e('0x92')]()]));for(let _0xa745ac=0x0;_0xa745ac<_0x42d6c9[_0x389e('0x105')];_0xa745ac++){if(_0x2e7951(this,_0x42d6c9[_0xa745ac],_0x42d6c9,_0xa745ac+0x1))return!0x0;}for(let _0x2ab98a=0x0;_0x2ab98a<_0x42d6c9[_0x389e('0x105')];_0x2ab98a++){if(_0x2e7951(this,_0x42d6c9[_0x2ab98a],_0xff26de,0x0))return!0x0;}return!0x1;function _0x2e7951(_0x572d90,_0x5bf87e,_0x2fb895,_0x49306a){for(let _0x426bcf=_0x49306a;_0x426bcf<_0x2fb895[_0x389e('0x105')];_0x426bcf++){const _0x1edeff=_0x2fb895[_0x426bcf];if(_0x1edeff['type']!==_0x5bf87e[_0x389e('0x64')]||_0x1edeff[_0x389e('0xa1')]['id']!==_0x5bf87e[_0x389e('0xa1')]['id']||_0x1edeff[_0x389e('0x107')]!==_0x5bf87e[_0x389e('0x107')])continue;if(!Ut(_0x5bf87e,_0x1edeff))continue;const _0x517d1e=_0x3eda4d['get'](_0x5bf87e),_0x191c7e=_0x17da7c[_0x389e('0x11d')](_0x5bf87e),_0x4c9a16=_0x17da7c[_0x389e('0x11d')](_0x1edeff),_0x5365ec=_0x5bf87e['commentThread']&&_0x5bf87e['commentThread']['length'],_0x46a5f9=_0x1edeff[_0x389e('0xec')]&&_0x1edeff[_0x389e('0xec')][_0x389e('0x105')];if(!_0x5365ec&&_0x517d1e(_0x4c9a16,_0x191c7e))return _0x572d90[_0x389e('0x2c')](_0x1edeff,_0x5bf87e),_0x17da7c[_0x389e('0x7a')](_0x5bf87e),!0x0;if(!_0x46a5f9&&_0x517d1e(_0x191c7e,_0x4c9a16))return _0x572d90[_0x389e('0x2c')](_0x5bf87e,_0x1edeff),_0x17da7c[_0x389e('0x7a')](_0x1edeff),!0x0;}return!0x1;}}[_0x389e('0x2c')](_0x548ab8,_0x53f88e){if(_0x548ab8[_0x389e('0xc5')])for(const _0x5dcca9 of _0x53f88e[_0x389e('0x92')]())_0x548ab8[_0x389e('0x46')](_0x5dcca9);else{const _0x2e4bde=_0x53f88e[_0x389e('0xbe')]()[_0x389e('0x6a')];this[_0x389e('0x6')](_0x548ab8,this[_0x389e('0x13f')][_0x389e('0xb0')](_0x548ab8['getFirstRange']()[_0x389e('0x3')],_0x2e4bde));}_0x53f88e['removeMarkers']();}}class Bt{constructor(_0x298d52){this[_0x389e('0x5b')]=_0x298d52,this[_0x389e('0x13f')]=_0x298d52['model'],this[_0x389e('0x8b')]=new Map(),this[_0x389e('0xd9')]=new Map(),this[_0x389e('0x10')]();}[_0x389e('0x13e')](_0x5dc942,_0x357258,_0x566374,_0x2cf4e6,_0x39dfd8,_0x1d7354){return new _0x516b3f(this['_model'],{'type':_0x5dc942,'subType':_0x357258,'id':_0x566374,'author':_0x2cf4e6,'creator':_0x2cf4e6,'attributes':_0x39dfd8,'onAttributesChange':_0x1d7354,'onAccept':(..._0x23344f)=>this[_0x389e('0xbb')](_0x5dc942,_0x357258,_0x389e('0x38'))(..._0x23344f),'onDiscard':(..._0x4fafda)=>this['getSuggestionCallback'](_0x5dc942,_0x357258,_0x389e('0x9b'))(..._0x4fafda)});}[_0x389e('0x5e')](_0x55d046,_0x384919,_0x2d1017,_0x5d669d){const _0x54d33a=_0x55d046+':'+_0x384919+':'+_0x2d1017;this[_0x389e('0x8b')][_0x389e('0x48')](_0x54d33a,_0x5d669d);}[_0x389e('0xbb')](_0x4f4393,_0x3783fd,_0x4d5ddf){const _0x26efc4=_0x4f4393+':'+_0x3783fd+':'+_0x4d5ddf;return this[_0x389e('0x8b')][_0x389e('0x11d')](_0x26efc4)||this['_defaultCallbacks']['get'](_0x4f4393+':'+_0x4d5ddf);}[_0x389e('0x10')](){const _0x2bebf9=()=>!0x1,_0x40fa5c=_0xdf46f6=>{_0xdf46f6[_0x389e('0xd6')]((_0x25070b,_0x3fb407)=>_0x25070b[_0x389e('0x3')]['isBefore'](_0x3fb407[_0x389e('0x3')])?0x1:-0x1),this[_0x389e('0x13f')][_0x389e('0x52')](_0x12bbe8=>{for(const _0x3dec5c of _0xdf46f6){let _0x1cbf83;_0x1cbf83=_0x3dec5c[_0x389e('0x6a')][_0x389e('0x78')]&&_0x3dec5c[_0x389e('0x6a')][_0x389e('0x8e')]==_0x3dec5c[_0x389e('0x3')][_0x389e('0x82')]?_0x12bbe8[_0x389e('0x7d')](_0x3dec5c[_0x389e('0x3')][_0x389e('0x82')],'on'):_0x12bbe8[_0x389e('0x7d')](_0x3dec5c),this[_0x389e('0x13f')][_0x389e('0xff')](_0x1cbf83,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x518d74=(_0x202948,_0xab34a3)=>{this[_0x389e('0x13f')][_0x389e('0x52')](_0x51fd02=>{const {commandName:_0x3149a8,commandParams:_0x113a1d=[]}=_0xab34a3,_0x32b361=_0x202948[_0x389e('0x110')](_0x284d9f=>(Mt(_0x284d9f)&&(_0x284d9f=this[_0x389e('0x13f')]['createRange'](_0x284d9f[_0x389e('0x6a')])),_0x284d9f))['filter'](_0x5a2d90=>_0x389e('0x94')!==_0x5a2d90[_0x389e('0x14')][_0x389e('0x90')]);if(_0x32b361['length']<0x1)return;const _0x1a01b8=Array[_0x389e('0xc7')](this[_0x389e('0x13f')]['document'][_0x389e('0x88')]['getRanges']())[_0x389e('0x110')](_0x40ecf8=>_0x2b7e22[_0x389e('0x13a')](_0x40ecf8));_0x51fd02[_0x389e('0x11a')](_0x32b361);for(const _0x505352 of this[_0x389e('0x5b')]['commands']['commands']())_0x505352[_0x389e('0x11c')]();_0x113a1d[_0x389e('0x131')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x389e('0xc0')](_0x3149a8,..._0x113a1d);const _0x1038f4=_0x1a01b8[_0x389e('0x56')](_0x39ae73=>'$graveyard'!=_0x39ae73[_0x389e('0x14')][_0x389e('0x90')]);_0x1038f4[_0x389e('0x105')]>0x0&&_0x51fd02[_0x389e('0x11a')](_0x1038f4);for(const _0xa37d3a of _0x1a01b8)_0xa37d3a['detach']();});},_0x4bdab6=(_0x4ff19c,_0x34f40d)=>0x1==_0x4ff19c[_0x389e('0x105')]&&0x1==_0x34f40d[_0x389e('0x105')]&&_0x4ff19c[0x0]['end']['isEqual'](_0x34f40d[0x0][_0x389e('0x3')]),_0x469b22=(_0x2bc123,_0x32c2df,_0x463ae1,_0x2cafbf)=>xt(_0x2bc123,_0x32c2df,_0x463ae1,_0x2cafbf,this[_0x389e('0x13f')])?[_0x2bc123,_0x32c2df]:xt(_0x32c2df,_0x2bc123,_0x2cafbf,_0x463ae1,this['_model'])?[_0x32c2df,_0x2bc123]:null;this[_0x389e('0xd9')]['set'](_0x389e('0x12b'),_0x2bebf9),this[_0x389e('0xd9')][_0x389e('0x48')]('insertion:discard',_0x40fa5c),this[_0x389e('0xd9')][_0x389e('0x48')]('insertion:join',_0x4bdab6),this['_defaultCallbacks']['set'](_0x389e('0x1b'),_0x469b22),this[_0x389e('0xd9')][_0x389e('0x48')](_0x389e('0x128'),_0x40fa5c),this[_0x389e('0xd9')][_0x389e('0x48')]('deletion:discard',_0x2bebf9),this[_0x389e('0xd9')][_0x389e('0x48')](_0x389e('0xf8'),_0x4bdab6),this['_defaultCallbacks'][_0x389e('0x48')]('deletion:chain',_0x469b22),this[_0x389e('0xd9')]['set']('formatInline:accept',_0x518d74),this[_0x389e('0xd9')][_0x389e('0x48')](_0x389e('0x10c'),_0x2bebf9),this[_0x389e('0xd9')][_0x389e('0x48')](_0x389e('0x5f'),_0x4bdab6),this['_defaultCallbacks']['set'](_0x389e('0x103'),_0x2bebf9),this[_0x389e('0xd9')][_0x389e('0x48')](_0x389e('0x70'),_0x518d74),this[_0x389e('0xd9')][_0x389e('0x48')]('formatBlock:discard',_0x2bebf9),this[_0x389e('0xd9')][_0x389e('0x48')](_0x389e('0x130'),_0x4bdab6),this['_defaultCallbacks']['set'](_0x389e('0x29'),_0x2bebf9);}}function _t(_0x5775af,_0x374f2b,_0x22fc59){for(const _0x19ae42 of _0x374f2b['parent'][_0x389e('0x19')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x19ae42[_0x389e('0x14')]==_0x19ae42)return!0x1;if(!_0x22fc59[_0x389e('0xe1')](_0x19ae42))return!0x1;if(_0x5775af[_0x389e('0xf2')](_0x19ae42)||_0x5775af[_0x389e('0x3c')](_0x19ae42))return!0x0;}return!0x1;}function Mt(_0x19daa4){return _0x19daa4[_0x389e('0x6a')][_0x389e('0x8e')]==_0x19daa4[_0x389e('0x3')][_0x389e('0x82')]&&_0x19daa4[_0x389e('0x6a')][_0x389e('0xf3')];}function $t(_0x28334d,_0x43daf7,_0x111210,_0x5af18d){const _0x5a0cbb=_0x21b51e=>!_0x21b51e['item']['is'](_0x389e('0x2d'))&&!_0x5af18d['isObject'](_0x21b51e[_0x389e('0xd3')]),_0x1286e1=_0x28334d['start']['getLastMatchingPosition'](_0x5a0cbb),_0x93546b=_0x28334d[_0x389e('0x6a')]['getLastMatchingPosition'](_0x5a0cbb,{'direction':'backward'});return(!_0x28334d[_0x389e('0x3')][_0x389e('0x7b')](_0x1286e1)||!_0x28334d[_0x389e('0x6a')]['isEqual'](_0x93546b))&&(_0x1286e1[_0x389e('0x109')](_0x93546b)?_0x111210[_0x389e('0x99')](_0x43daf7,{'range':_0x111210['createRange'](_0x1286e1,_0x93546b)}):_0x111210[_0x389e('0x9a')](_0x43daf7),!0x0);}function Nt(_0x31a00b){return _0x220e2f(_0x31a00b);}function Rt(_0x557bef){const _0x193548=_0x557bef['start'][_0x389e('0x82')];return _0x193548&&_0x193548['is'](_0x389e('0x80'));}function jt(_0x2156d8,_0x4e5904){const _0x3750e8=_0x4e5904[_0x389e('0x98')][_0x389e('0xf2')](_0x2156d8)||_0x4e5904['schema'][_0x389e('0xa3')](_0x2156d8);return _0x4e5904[_0x389e('0xb0')](_0x4e5904[_0x389e('0xae')](_0x2156d8,'before'),_0x3750e8?_0x4e5904['createPositionAfter'](_0x2156d8):_0x4e5904['createPositionAt'](_0x2156d8,'end'));}function xt(_0x2ffa2a,_0x13d7cf,_0x1c7135,_0x494a9c,_0x4d3a5c){if(!Ut(_0x2ffa2a,_0x13d7cf))return!0x1;if(_0x1c7135[_0x389e('0x6a')][_0x389e('0x7b')](_0x494a9c['start']))return!0x0;if(_0x2ffa2a[_0x389e('0x64')]!=_0x13d7cf[_0x389e('0x64')])return!0x1;if(!_0x1c7135[_0x389e('0x6a')]['isTouching'](_0x494a9c[_0x389e('0x3')]))return!0x1;const _0x2c9f18=_0x4d3a5c[_0x389e('0xb0')](_0x1c7135[_0x389e('0x6a')],_0x494a9c[_0x389e('0x3')])['getWalker']();for(const _0x21ece0 of _0x2c9f18)if([_0x389e('0x10e'),'elementEnd'][_0x389e('0x57')](_0x21ece0[_0x389e('0x64')])&&_0x4d3a5c[_0x389e('0x98')]['isLimit'](_0x21ece0[_0x389e('0xd3')]))return!0x1;return!0x0;}function Ut(_0x1f455a,_0x31bc75){return!(!_0x1f455a['_isDataLoaded']||!_0x31bc75['_isDataLoaded'])&&_0x499793(_0x1f455a[_0x389e('0x114')],_0x31bc75['attributes']);}function Ot(_0x1cec6c,_0x7ae529){const _0x849269=Et(_0x1cec6c[_0x389e('0x114')]),_0x331e1c=Et(_0x7ae529);if(!_0x1cec6c[_0x389e('0x63')])return!0x1;for(const _0x26342e of Object[_0x389e('0x96')](_0x331e1c))if(!_0x499793(_0x849269[_0x26342e],_0x331e1c[_0x26342e]))return!0x1;return!0x0;}function Et(_0x2f94e3){const _0x5512c8=Object[_0x389e('0x100')]({},_0x2f94e3);return delete _0x5512c8[_0x389e('0x5d')],delete _0x5512c8[_0x389e('0x4a')],_0x5512c8;}
23
+ const _0x1d99=['_getExternalAuthor','formatGroupId','rethrowUnexpectedError','track-changes-suggestion-data-mismatch','_createSuggestion','insertion:','getNearestSelectionRange','includes','nodeAfter','split','isNextTo','commentThread','acceptSuggestion','markBlockFormat','getMultiRangeId','trackChanges','ck-suggestion-marker','_suggestions','dataReady','formatInline:join','_registerDefaultCallbacks','addSuggestionData','discard','getSuggestion','insertion:discard','tablePasteChainId','moveTargetPosition','change','_suggestionState','isBlock','_customCallbacks','createRange','formatInline:chain','_isDataLoaded','markerToHighlight','getFirstRange','$textProxy','previous','getItems','document','map','listenTo','isCollapsed','removeClass','push','for','backward','addMarkerName','clear','attributes','discardAllSuggestions','isSelectable','insertion:join','ready','toViewElement','after','default','isRemovable','addRange','change:_saved','markDeletion','plugins','addUser','trackChanges.mergeNestedSuggestions','_getSuggestionData','config','locale','TrackChangesEditing','return','suggestion','addMarker:suggestion:formatBlock','trackChangesCommand','_adapter','requires','_editor','isUndo','addComment','setTo','deletion:chain','suggestionLoaded','containsPosition','commandName','createSelection','getRange','_handleNewSuggestionMarker','writer','model','isOwn','nodeBefore','batch','markInlineFormat','formatBlock:accept','insertContent','showSuggestionHighlights','chain','activeMarkers','registerPostFixer','markers','getChangedMarkers','Users','markerName','forward','accept','containerElement','consumable','lowest','next','from','skipNestingCheck','isInsideObject','toJSON','root','getAllAdjacentSuggestions','collaboration.channelId','rootName','fromRange','execute','_addThreadToSuggestion','removeMarker:suggestion:formatBlock','set','parent','documentSelection','isExternal','getAttribute','has','normal','unbindElementFromMarkerName','marker-count','addSuggestion','end','editingDowncast','forceDefaultExecution','containsRangeInObject','catch','createElement','formatInline:discard','deletion','bindElementToMarker','size','insertion','track-changes-adapter-already-set','detach','multi','CommentsRepository','stop','getChanges','isAtEnd','some','deletion:discard','removed','authoredAt','insertion:accept','addMarker:suggestion','move','formatBlock:','hasComments','getDifference','fetchCommentThread','getCustomProperty','getLastMatchingPosition','createPositionBefore','markerReady','clone','data-suggestion','highest','getFirstMarker','_rangeIsInLocalUserInsertion','_setSuggestionData','_breakSuggestionMarker','isMultiRange','suggestion:','createPositionAt','_removeSuggestion','formatBlock:discard','acceptAllSuggestions','removeComment','mapper','enqueueChange','removeMarker','external:','buildSuggestion','get','delete','_cutOutSuggestionMarker','_refreshSuggestionsChain','insertion:chain','name','_setSuggestionRange','formatInline:','enableCommand','updateMarker','ck-suggestion-marker-formatBlock','join','consume','oldRange','_enabledCommands','formatInline','dataDowncast','_suggestionFactory','_addSuggestionMarker','define','fromCharCode','reconvertMarker','deletion:join','_saved','_mergeNestedSuggestions','commands','schema','ck-suggestion-marker-','value','addHighlight','PENDING_ACTION_SUGGESTION','setSelection','isAfter','isBefore','splice','containsRange','deleteContent','multipleBlocks','setAttribute','authorName','always','_defaultCallbacks','_joinWithAdjacentSuggestions','getWalker','author','markMultiRangeDeletion','getSuggestionCallback','isTouching','suggestionChanged','_trackFormatChanges','formatBlock','deletion:accept','_joinSuggestions','_splitMarkerName','upcast','isEqual','_isForcedDefaultExecutionBlock','creator','getUser','discardSuggestion','fire','position','isLimit','remove','$graveyard','_onDiscard','change:data','addCommentThread','_getAuthorFromId','deletion:','start','subType','acceptSelectedSuggestions','never','update:suggestion','low','widget','getCommentThread','formatBlock:join','refresh','options','item','data','values','trackChanges.trackFormatChanges','howMany','change:activeMarkers','substr','adapter','markerNameToElements','isObject','range','then','add','discardSelectedSuggestions','notReady','_checkSuggestionCorrectness','keys','getMarkers','_updateSuggestionData','_findSuggestions','type','length','sort','hasSuggestion','head','removeMarkers','addClass','updateSuggestion','_commentsRepository','PendingActions','filter','_model','getSuggestions','isIntersectingWithRange','hasCommentThread','elementEnd','high','selection','conversion','group','@external','markMultiRangeInsertion','ck-suggestion-marker--active','getRanges','every','init','isDocumentOperation','isInContent','newRange','editing','unbind','targetPosition','createdAt','insert','$marker','containsItem','error-saving-suggestion-data-suggestion-discarded','getIntersection','editor','rejected','isLocal','getShiftedBy','element','formatBlock:chain'];(function(_0x4bf525,_0x1d99ba){const _0x42d886=function(_0x2b3725){while(--_0x2b3725){_0x4bf525['push'](_0x4bf525['shift']());}};_0x42d886(++_0x1d99ba);}(_0x1d99,0x1a3));const _0x42d8=function(_0x4bf525,_0x1d99ba){_0x4bf525=_0x4bf525-0x0;let _0x42d886=_0x1d99[_0x4bf525];return _0x42d886;};import{Plugin as _0xbc3f7,PendingActions as _0x4073c2}from'ckeditor5/src/core';import{LiveRange as _0x2cba86}from'ckeditor5/src/engine';import{CKEditorError as _0x2738aa,uid as _0x2cd2d9,priorities as _0x18e5b9,logWarning as _0x3f8d05}from'ckeditor5/src/utils';import{toWidget as _0x469ac6}from'ckeditor5/src/widget';import{Users as _0x306a92,hashObject as _0x29222a}from'ckeditor5-collaboration/src/collaboration-core';import _0x188116 from'./commands/trackchangescommand';import _0x355bc6 from'./commands/acceptsuggestioncommand';import _0x140eea from'./commands/discardsuggestioncommand';import _0x110945 from'./commands/executeonallsuggestionscommand';import _0x165605 from'./commands/executeonselectedsuggestionscommand';import _0x20918a from'./suggestion';import _0x3d1903 from'./suggestiondescriptionfactory';import _0x120ca3 from'./integrations/aiassistant';import _0x1e8fe3 from'./integrations/alignment';import _0x55e128 from'./integrations/basicstyles';import _0x497588 from'./integrations/blockquote';import _0x496c85 from'./integrations/ckbox';import _0x5acc40 from'./integrations/codeblock';import _0x3544fa from'./integrations/comments';import _0x2efcb9 from'./integrations/deletecommand';import _0x251c34 from'./integrations/documentlist';import _0x2c270d from'./integrations/entercommand';import _0x210548 from'./integrations/findandreplace';import _0x517af6 from'./integrations/font';import _0x4f00f7 from'./integrations/formatpainter';import _0x5d64d9 from'./integrations/heading';import _0x5a7af8 from'./integrations/highlight';import _0x17bf8a from'./integrations/horizontalline';import _0x3b5e0a from'./integrations/htmlembed';import _0x448ef7 from'./integrations/image';import _0x3b09e0 from'./integrations/imagereplace';import _0x4bdafd from'./integrations/importword';import _0x9f961f from'./integrations/indent';import _0x2cbbd8 from'./integrations/inputcommand';import _0x1b5041 from'./integrations/link';import _0x5d5251 from'./integrations/list';import _0x78647e from'./integrations/listproperties';import _0x4222bc from'./integrations/mediaembed';import _0xb7e9e6 from'./integrations/mention';import _0x3737c0 from'./integrations/pagebreak';import _0x496c60 from'./integrations/paragraph';import _0x521456 from'./integrations/removeformat';import _0x198d4f from'./integrations/restrictededitingmode';import _0x5d5d57 from'./integrations/shiftentercommand';import _0x40a438 from'./integrations/standardeditingmode';import _0x120a6a from'./integrations/style';import _0x3f50d8 from'./integrations/table';import _0x531684 from'./integrations/tablemergesplit';import _0xcfaace from'./integrations/tableheadings';import _0x36ee22 from'./integrations/tableclipboard';import _0xdbc438 from'./integrations/tablecolumnresize';import _0x959815 from'./integrations/template';import _0x5a4abf from'./integrations/tableofcontents';import _0x57d7bd from'./integrations/title';import _0x22b43e from'./integrations/undo';import{getTranslation as _0x34bbba}from'./utils/common-translations';import _0x429c54 from'./integrations/tablecaption';import _0x101c5d from'./integrations/documentlistproperties';import _0x498b64 from'./integrations/tableproperties';import{isEqual as _0x41c63c}from'lodash-es';export default class p extends _0xbc3f7{static get[_0x42d8('0x132')](){return[_0x42d8('0x32'),_0x306a92,_0x4073c2,_0x120ca3,_0x1e8fe3,_0x55e128,_0x497588,_0x496c85,_0x5acc40,_0x3544fa,_0x2efcb9,_0x251c34,_0x101c5d,_0x2c270d,_0x210548,_0x517af6,_0x4f00f7,_0x5d64d9,_0x5a7af8,_0x17bf8a,_0x3b5e0a,_0x448ef7,_0x3b09e0,_0x4bdafd,_0x9f961f,_0x2cbbd8,_0x1b5041,_0x5d5251,_0x78647e,_0x4222bc,_0xb7e9e6,_0x3737c0,_0x496c60,_0x521456,_0x198d4f,_0x5d5d57,_0x40a438,_0x120a6a,_0x3f50d8,_0x531684,_0xcfaace,_0x429c54,_0x36ee22,_0xdbc438,_0x5a4abf,_0x498b64,_0x959815,_0x57d7bd,_0x22b43e];}static get['pluginName'](){return _0x42d8('0x12c');}constructor(_0x1fb4ef){function _0x2466b4(_0x208d02){return _0x208d02['map'](_0xe2dd32=>String[_0x42d8('0x6c')](_0xe2dd32))['join']('');}super(_0x1fb4ef),this[_0x42d8('0x1a')]('activeMarkers',[]),this['on'](_0x42d8('0xae'),(_0x293d3b,_0x1d26fc,_0x4e7fd2,_0x2be395)=>{this[_0x42d8('0xc8')]['change'](()=>{for(const _0x5da8c4 of[..._0x2be395,..._0x4e7fd2])this[_0x42d8('0xc8')][_0x42d8('0x4')][_0x42d8('0x1f')](_0x5da8c4)&&_0x1fb4ef[_0x42d8('0xda')][_0x42d8('0x6d')](_0x5da8c4);});}),this['_descriptionFactory']=new _0x3d1903(this[_0x42d8('0xe3')][_0x42d8('0x13f')]['schema'],this[_0x42d8('0xe3')][_0x42d8('0x12b')]),this[_0x42d8('0x131')]=null,this[_0x42d8('0x69')]=new Bt(this[_0x42d8('0xe3')]),this['_suggestions']=new Map(),this[_0x42d8('0xc5')]=_0x1fb4ef[_0x42d8('0x126')]['get'](_0x42d8('0x32')),this['_enabledCommands']=new Set(),this['_model']=this[_0x42d8('0xe3')][_0x42d8('0x13f')],this[_0x42d8('0x105')]=new WeakMap(),this[_0x42d8('0x90')]=!0x1,_0x1fb4ef[_0x42d8('0x12a')][_0x42d8('0x6b')]('trackChanges.trackFormatChanges',_0x42d8('0x121')),this['_trackFormatChanges']=_0x1fb4ef[_0x42d8('0x12a')]['get'](_0x42d8('0xac')),_0x1fb4ef[_0x42d8('0x12a')][_0x42d8('0x6b')](_0x42d8('0x128'),!0x0),this[_0x42d8('0x70')]=_0x1fb4ef[_0x42d8('0x12a')]['get'](_0x42d8('0x128')),this[_0x42d8('0x130')]=new _0x188116(_0x1fb4ef,this[_0x42d8('0x66')]),this[_0x2466b4([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2466b4([0x34,0x30,0x34,0x36,0x32,0x30,0x33,0x32]);}[_0x42d8('0xd6')](){const _0x4f06f1=this[_0x42d8('0xe3')];_0x4f06f1[_0x42d8('0xcf')][_0x42d8('0x116')](_0x42d8('0x25'))[_0x42d8('0x10b')]({'model':_0x42d8('0x12e'),'view':_0x2454da=>{const {id:_0x1f94a0,type:_0xd1d1e4}=this[_0x42d8('0x8d')](_0x2454da[_0x42d8('0x7')]),_0x2f4985=[_0x42d8('0xf9'),_0x42d8('0x73')+_0xd1d1e4];let _0x5cd298=0xbb8;return this[_0x42d8('0x2')]['includes'](_0x2454da[_0x42d8('0x7')])&&(_0x2f4985['push'](_0x42d8('0xd3')),_0x5cd298=0xbc2),'deletion'==_0xd1d1e4&&(_0x5cd298+=0x5),{'classes':_0x2f4985,'attributes':{'data-suggestion':_0x1f94a0},'priority':_0x5cd298};}}),_0x4f06f1[_0x42d8('0xcf')][_0x42d8('0x116')](_0x42d8('0x68'))[_0x42d8('0xb5')](_0x530a73=>{_0x530a73['on'](_0x42d8('0x3b'),(_0x189759,_0x3d2e22,_0x5b3a5d)=>{if(!_0x5b3a5d[_0x42d8('0xa8')][_0x42d8('0x0')])return;const _0x2226ac=_0x3d2e22[_0x42d8('0xa9')];if(!_0x2226ac)return;const _0x1f8a29=_0x5b3a5d['mapper'][_0x42d8('0x11f')](_0x2226ac);_0x4f06f1[_0x42d8('0x13f')]['schema']['isObject'](_0x2226ac)&&_0x1f8a29&&!_0x1f8a29[_0x42d8('0x41')](_0x42d8('0xa4'))&&_0x1f8a29['is'](_0x42d8('0xa'))&&_0x469ac6(_0x1f8a29,_0x5b3a5d[_0x42d8('0x13e')]);},{'priority':'high'});}),_0x4f06f1[_0x42d8('0xcf')][_0x42d8('0x116')](_0x42d8('0x68'))[_0x42d8('0x10b')]({'model':_0x42d8('0x12e'),'view':(_0x485c17,_0x3e40f5)=>{if(!_0x3e40f5[_0x42d8('0xa8')]['showSuggestionHighlights'])return null;const {type:_0x9aeed0}=this[_0x42d8('0x8d')](_0x485c17['markerName']);return{'classes':[_0x42d8('0xf9'),_0x42d8('0x73')+_0x9aeed0],'priority':0xbb8};}});const _0x15718d=({showActiveMarkers:_0x31217a=!0x0}={})=>(_0x6669ef,_0x4917e6,_0x5a24d6)=>{if(!_0x4917e6[_0x42d8('0xa9')])return;if(_0x4917e6[_0x42d8('0xa9')]['is'](_0x42d8('0xce')))return void _0x5a24d6[_0x42d8('0xb')][_0x42d8('0x64')](_0x4917e6['item'],_0x6669ef[_0x42d8('0x5d')]);const _0x183fab=_0x5a24d6[_0x42d8('0x53')][_0x42d8('0x11f')](_0x4917e6[_0x42d8('0xa9')]);if(!(_0x4917e6[_0x42d8('0xa9')]['is']('element')&&_0x4f06f1['model'][_0x42d8('0x72')][_0x42d8('0x106')](_0x4917e6[_0x42d8('0xa9')])&&!_0x183fab[_0x42d8('0x41')](_0x42d8('0x75'))))return;const {id:_0x37a07d}=this['_splitMarkerName'](_0x4917e6[_0x42d8('0x7')]);_0x5a24d6[_0x42d8('0x13e')][_0x42d8('0xc3')]([_0x42d8('0xf9'),'ck-suggestion-marker-formatBlock'],_0x183fab),_0x5a24d6[_0x42d8('0x13e')][_0x42d8('0x7e')](_0x42d8('0x46'),_0x37a07d,_0x183fab),_0x5a24d6[_0x42d8('0x53')][_0x42d8('0x2c')](_0x183fab,_0x4917e6[_0x42d8('0x7')]),_0x31217a&&(this['activeMarkers'][_0x42d8('0xf0')](_0x4917e6[_0x42d8('0x7')])?_0x5a24d6['writer']['addClass'](_0x42d8('0xd3'),_0x183fab):_0x5a24d6[_0x42d8('0x13e')][_0x42d8('0x114')](_0x42d8('0xd3'),_0x183fab));for(const _0x27b849 of _0x4f06f1[_0x42d8('0x13f')]['createRangeIn'](_0x4917e6[_0x42d8('0xa9')])[_0x42d8('0x10f')]())_0x5a24d6['consumable'][_0x42d8('0x64')](_0x27b849,_0x6669ef['name']);_0x5a24d6[_0x42d8('0xb')]['consume'](_0x4917e6[_0x42d8('0xa9')],_0x6669ef[_0x42d8('0x5d')]);};_0x4f06f1[_0x42d8('0xcf')][_0x42d8('0x116')](_0x42d8('0x68'))[_0x42d8('0xb5')](_0x224ab5=>{_0x224ab5['on']('addMarker:suggestion:formatBlock',(_0x52ae05,_0x2a566b,_0x1ce503)=>{_0x1ce503[_0x42d8('0xa8')]['showSuggestionHighlights']&&_0x15718d({'showActiveMarkers':!0x1})(_0x52ae05,_0x2a566b,_0x1ce503);},{'priority':_0x42d8('0x47')});}),_0x4f06f1[_0x42d8('0xcf')][_0x42d8('0x116')](_0x42d8('0x68'))['markerToData']({'model':_0x42d8('0x12e'),'view':(_0x5bf594,_0x281c76)=>_0x281c76[_0x42d8('0xa8')][_0x42d8('0x0')]?null:{'group':_0x42d8('0x12e'),'name':_0x5bf594[_0x42d8('0xaf')](0xb)}}),_0x4f06f1[_0x42d8('0xcf')]['for']('upcast')['elementToElement']({'view':{'name':_0x42d8('0x12e'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1e5f93,{writer:_0x1fa5c8})=>{let _0x103ac0='suggestion:'+_0x1e5f93['getAttribute']('suggestion-type')+':'+_0x1e5f93['getAttribute']('id');return _0x1e5f93[_0x42d8('0x1e')](_0x42d8('0x22'))&&(_0x103ac0+=':'+_0x1e5f93['getAttribute']('marker-count')),_0x1fa5c8[_0x42d8('0x29')](_0x42d8('0xdf'),{'data-name':_0x103ac0});}}),_0x4f06f1['conversion'][_0x42d8('0x116')](_0x42d8('0x8e'))['dataToMarker']({'view':_0x42d8('0x12e')}),_0x4f06f1[_0x42d8('0xcf')][_0x42d8('0x116')](_0x42d8('0x25'))[_0x42d8('0xb5')](_0x21a768=>{_0x21a768['on'](_0x42d8('0x12f'),_0x15718d(),{'priority':_0x42d8('0xcd')});}),_0x4f06f1[_0x42d8('0xcf')]['for'](_0x42d8('0x25'))[_0x42d8('0xb5')](_0x1cd6fb=>{_0x1cd6fb['on'](_0x42d8('0x19'),(_0x35e89b,_0x434f30,_0x2fc1e7)=>{const _0x83d2e2=_0x2fc1e7['mapper'][_0x42d8('0xb1')](_0x434f30['markerName']);if(_0x83d2e2)for(const _0x1746bb of _0x83d2e2)_0x1746bb['getCustomProperty'](_0x42d8('0x75'))||(_0x2fc1e7['writer']['removeClass']([_0x42d8('0xf9'),_0x42d8('0x62'),_0x42d8('0xd3')],_0x1746bb),_0x2fc1e7[_0x42d8('0x13e')]['removeAttribute'](_0x42d8('0x46'),_0x1746bb),_0x2fc1e7['mapper'][_0x42d8('0x21')](_0x1746bb,_0x434f30[_0x42d8('0x7')]));},{'priority':_0x42d8('0xcd')});}),_0x4f06f1[_0x42d8('0x13f')][_0x42d8('0x110')][_0x42d8('0x3')](_0x332705=>{let _0x3666be=!0x1;const _0x211927=Array[_0x42d8('0xe')](_0x4f06f1[_0x42d8('0x13f')][_0x42d8('0x110')]['differ'][_0x42d8('0x5')]()),_0x401a7d=new Set();for(const {name:_0x28216e,data:_0x5c6a6f}of _0x211927){const {group:_0x40fd47,type:_0x44181a,id:_0x36663d}=this[_0x42d8('0x8d')](_0x28216e);if(_0x42d8('0x12e')!==_0x40fd47)continue;const _0x2ac0fe=this[_0x42d8('0xfa')]['get'](_0x36663d);if(null!=_0x5c6a6f[_0x42d8('0xd9')]){_0x42d8('0x67')==_0x44181a&&(_0x3666be=_0x3666be||$t(_0x5c6a6f['newRange'],_0x28216e,_0x332705,_0x4f06f1['model'][_0x42d8('0x72')]));if(_0x5c6a6f[_0x42d8('0xd9')][_0x42d8('0x113')]||_0x42d8('0x98')==_0x5c6a6f[_0x42d8('0xd9')][_0x42d8('0x12')][_0x42d8('0x15')]||_0x42d8('0x8a')==_0x44181a&&!Rt(_0x5c6a6f['newRange'])||_0x42d8('0x2b')==_0x44181a&&!(!Mt(_0x252acc=_0x5c6a6f[_0x42d8('0xd9')])&&!function(_0x574be1){return _0x574be1[_0x42d8('0x9e')][_0x42d8('0x1b')]==_0x574be1[_0x42d8('0x24')][_0x42d8('0x141')]&&_0x574be1[_0x42d8('0x9e')][_0x42d8('0x35')];}(_0x252acc)))_0x332705[_0x42d8('0x55')](_0x28216e),_0x3666be=!0x0;else{if(!_0x2ac0fe||!_0x2ac0fe[_0x42d8('0xd8')])continue;_0x401a7d[_0x42d8('0xb5')](_0x2ac0fe);}}}var _0x252acc;return _0x401a7d[_0x42d8('0x2d')]>0x0&&(_0x3666be=!!this[_0x42d8('0x82')](_0x401a7d)||_0x3666be),_0x3666be;}),_0x4f06f1[_0x42d8('0x13f')]['document'][_0x42d8('0x3')](_0x273392=>{let _0x55af80=!0x1;for(const _0x1d3fbf of _0x4f06f1[_0x42d8('0x13f')][_0x42d8('0x110')]['differ'][_0x42d8('0x34')]()){if(_0x42d8('0xde')!=_0x1d3fbf['type'])continue;const _0x416e2d=_0x1d3fbf[_0x42d8('0x95')]['getShiftedBy'](_0x1d3fbf['length']);if(_0x416e2d[_0x42d8('0x35')])for(const _0x4ac201 of this['_suggestions'][_0x42d8('0xab')]()){if(_0x4ac201['isMultiRange']||!_0x4ac201['isInContent'])continue;if('formatBlock'!=_0x4ac201[_0x42d8('0xbd')])continue;const _0x3dbae4=_0x4ac201['getFirstRange']();if(_0x3dbae4['start'][_0x42d8('0x1b')]!=_0x3dbae4['end'][_0x42d8('0x1b')]&&_0x3dbae4[_0x42d8('0x24')]['isEqual'](_0x1d3fbf[_0x42d8('0x95')])){const _0x11af7b=_0x4f06f1['model']['createRange'](_0x3dbae4[_0x42d8('0x9e')],_0x416e2d);_0x273392['updateMarker'](_0x4ac201[_0x42d8('0x48')](),{'range':_0x11af7b}),_0x55af80=!0x0;}}}return _0x55af80;}),_0x4f06f1[_0x42d8('0x13f')][_0x42d8('0x4')]['on'](_0x42d8('0xa2'),(_0x35cd39,_0x2bd908,_0x1c5065)=>{if(null==_0x1c5065){const {id:_0x278c28}=this[_0x42d8('0x8d')](_0x2bd908[_0x42d8('0x5d')]),_0x455e7a=this[_0x42d8('0xfa')]['get'](_0x278c28);_0x455e7a&&_0x455e7a['addMarkerName'](_0x2bd908['name']);}}),_0x4f06f1[_0x42d8('0x13f')][_0x42d8('0x110')]['on'](_0x42d8('0x9a'),()=>{const _0x4a5071=Array['from'](_0x4f06f1[_0x42d8('0x13f')]['document']['differ'][_0x42d8('0x5')]())['filter'](_0x1b5f5e=>_0x42d8('0x12e')===this[_0x42d8('0x8d')](_0x1b5f5e[_0x42d8('0x5d')])[_0x42d8('0xd0')]);if(0x0===_0x4a5071[_0x42d8('0xbe')])return;_0x4a5071[_0x42d8('0xbf')]((_0x31a0dc,_0x2c2f08)=>{const _0x14f1fe=_0x31a0dc['data'][_0x42d8('0x65')],_0x47cab2=_0x2c2f08[_0x42d8('0xaa')]['oldRange'];return null===_0x14f1fe&&null===_0x47cab2?0x0:null===_0x14f1fe&&null!==_0x47cab2?-0x1:null!==_0x14f1fe&&null===_0x47cab2?0x1:_0x14f1fe[_0x42d8('0x9e')][_0x42d8('0x79')](_0x47cab2[_0x42d8('0x9e')])?-0x1:0x1;});const _0x5e6649=new Set(),_0x46f068=new Set();for(const {name:_0x1af7cb,data:_0x4e836f}of _0x4a5071){const {id:_0x47bffe}=this[_0x42d8('0x8d')](_0x1af7cb);if(null===_0x4e836f[_0x42d8('0x65')]){const _0x5bf655=this[_0x42d8('0x13d')](_0x1af7cb);_0x46f068[_0x42d8('0xb5')](_0x5bf655);}else{const _0x18c3d1=this['_suggestions'][_0x42d8('0x58')](_0x47bffe);null!==_0x4e836f[_0x42d8('0xd9')]||_0x18c3d1['isInContent']?(_0x5e6649[_0x42d8('0xb5')](_0x18c3d1[_0x42d8('0xc1')]),_0x46f068[_0x42d8('0xb5')](_0x18c3d1)):this[_0x42d8('0x4f')](_0x18c3d1);}}_0x46f068[_0x42d8('0x2d')]>0x0&&this[_0x42d8('0x5b')](_0x46f068);for(const _0x3ea137 of _0x5e6649)this[_0x42d8('0x94')](_0x42d8('0x88'),_0x3ea137);}),_0x4f06f1[_0x42d8('0x13f')]['on']('applyOperation',(_0x4870d0,_0x250c72)=>{const _0x406bad=_0x250c72[0x0];if(!this[_0x42d8('0xfa')][_0x42d8('0x2d')])return;if(!_0x406bad[_0x42d8('0xd7')])return;if(_0x406bad[_0x42d8('0x142')][_0x42d8('0x134')]||!_0x406bad[_0x42d8('0x142')][_0x42d8('0xe5')])return;let _0x1ea5c6,_0x31d6fa;switch(_0x406bad['type']){case _0x42d8('0xde'):_0x1ea5c6=_0x4f06f1[_0x42d8('0x13f')][_0x42d8('0x4e')](_0x406bad[_0x42d8('0x95')]),_0x31d6fa=_0x1ea5c6[_0x42d8('0xe6')](_0x406bad[_0x42d8('0xad')]);break;case'split':_0x1ea5c6=_0x4f06f1[_0x42d8('0x13f')]['createPositionAt'](_0x406bad['splitPosition']),_0x31d6fa=_0x4f06f1[_0x42d8('0x13f')]['createPositionAt'](_0x406bad[_0x42d8('0x103')]);break;case _0x42d8('0x3c'):_0x1ea5c6=_0x4f06f1[_0x42d8('0x13f')][_0x42d8('0x4e')](_0x406bad[_0x42d8('0xdc')]),_0x31d6fa=_0x1ea5c6[_0x42d8('0xe6')](_0x406bad[_0x42d8('0xad')]);break;default:return;}const _0x15c24c=_0x4f06f1[_0x42d8('0x13f')][_0x42d8('0x108')](_0x1ea5c6,_0x31d6fa);_0x4f06f1[_0x42d8('0x13f')][_0x42d8('0x104')](()=>{for(const {suggestion:_0x347c7c,meta:_0x29f08a}of this[_0x42d8('0xbc')](_0x15c24c)){if(_0x347c7c[_0x42d8('0x4c')])continue;if(_0x42d8('0x67')==_0x347c7c[_0x42d8('0xbd')])continue;const _0x4708ce=_0x347c7c[_0x42d8('0xaa')]&&_0x347c7c[_0x42d8('0xaa')][_0x42d8('0x7d')];(_0x42d8('0x8a')!=_0x347c7c[_0x42d8('0xbd')]||'split'==_0x406bad[_0x42d8('0xbd')]&&!_0x4708ce)&&(_0x29f08a['containsRangeInObject']||_0x42d8('0x2e')==_0x347c7c[_0x42d8('0xbd')]&&_0x29f08a[_0x42d8('0x140')]||_0x347c7c[_0x42d8('0x10c')]()[_0x42d8('0x7b')](_0x15c24c)&&this[_0x42d8('0x4b')](_0x347c7c,_0x1ea5c6,_0x31d6fa));}});},{'priority':_0x42d8('0xc')}),_0x4f06f1[_0x42d8('0x13f')]['on']('deleteContent',(_0x5823a4,_0x38134b)=>{const _0x16d0b2=_0x38134b[0x0],_0x3ffdaf=_0x38134b[0x1];if(_0x3ffdaf&&_0x3ffdaf[_0x42d8('0x26')])return;if(this[_0x42d8('0x90')])return;if(!this[_0x42d8('0x130')][_0x42d8('0x74')])return;if(_0x16d0b2[_0x42d8('0x113')])return;const _0x4aa391=_0x4f06f1[_0x42d8('0x13f')]['schema'],{start:_0x2fdfb9,end:_0x45e4ca}=_0x16d0b2[_0x42d8('0x10c')](),_0xba8ba=_0x2fdfb9[_0x42d8('0xf1')]&&_0x4aa391['isLimit'](_0x2fdfb9['nodeAfter'])?null:_0x4aa391['getNearestSelectionRange'](_0x2fdfb9,_0x42d8('0x8')),_0x4f15ab=_0x45e4ca[_0x42d8('0x141')]&&_0x4aa391[_0x42d8('0x96')](_0x45e4ca[_0x42d8('0x141')])?null:_0x4aa391[_0x42d8('0xef')](_0x45e4ca,_0x42d8('0x117')),_0x276b6b=_0x4f06f1[_0x42d8('0x13f')]['createRange'](_0xba8ba?_0xba8ba[_0x42d8('0x9e')]:_0x2fdfb9,_0x4f15ab?_0x4f15ab[_0x42d8('0x24')]:_0x45e4ca);_0x4f06f1[_0x42d8('0x13f')]['change'](_0x385253=>{this[_0x42d8('0x125')](_0x276b6b);const _0x9c0f8c=_0x4f06f1[_0x42d8('0x13f')][_0x42d8('0x72')]['getNearestSelectionRange'](_0x276b6b['start']);_0x16d0b2['is'](_0x42d8('0x1c'))?_0x385253[_0x42d8('0x77')](_0x9c0f8c):_0x16d0b2[_0x42d8('0x136')](_0x9c0f8c);}),_0x5823a4['stop']();},{'priority':_0x18e5b9[_0x42d8('0x20')]+0xa}),_0x4f06f1[_0x42d8('0x13f')]['on'](_0x42d8('0x145'),(_0x44dd07,_0x459738)=>{const _0x55dea6=_0x459738[_0x459738[_0x42d8('0xbe')]-0x1];_0x55dea6&&_0x55dea6[_0x42d8('0x26')]||this[_0x42d8('0x90')]||this[_0x42d8('0x130')][_0x42d8('0x74')]&&(_0x4f06f1[_0x42d8('0x13f')][_0x42d8('0x104')](()=>{let _0x3aa792=_0x4f06f1['model']['insertContent'](_0x459738[0x0],_0x459738[0x1],_0x459738[0x2],{'forceDefaultExecution':!0x0});if(!_0x3aa792)return;_0x44dd07[_0x42d8('0x12d')]=_0x3aa792[_0x42d8('0x45')]();const _0x396f9e=_0x3aa792[_0x42d8('0x24')]['nodeBefore'],_0x5edc48=_0x4f06f1[_0x42d8('0x13f')][_0x42d8('0x72')];_0x396f9e&&_0x5edc48['isBlock'](_0x396f9e)&&!_0x5edc48['isObject'](_0x396f9e)&&(_0x3aa792=_0x4f06f1[_0x42d8('0x13f')]['createRange'](_0x3aa792[_0x42d8('0x9e')],_0x4f06f1[_0x42d8('0x13f')][_0x42d8('0x4e')](_0x396f9e,_0x42d8('0x24')))),this['markInsertion'](_0x3aa792);}),_0x44dd07[_0x42d8('0x33')]());},{'priority':_0x42d8('0xcd')}),this[_0x42d8('0xe3')][_0x42d8('0x71')][_0x42d8('0xb5')](_0x42d8('0xf8'),this[_0x42d8('0x130')]),this[_0x42d8('0x60')](_0x42d8('0xf8'));const _0x17aa65=new _0x355bc6(_0x4f06f1,this[_0x42d8('0xfa')]);_0x4f06f1[_0x42d8('0x71')][_0x42d8('0xb5')]('acceptSuggestion',_0x17aa65),this[_0x42d8('0x60')]('acceptSuggestion');const _0x2fbf0e=new _0x140eea(_0x4f06f1,this['_suggestions']);_0x4f06f1[_0x42d8('0x71')][_0x42d8('0xb5')](_0x42d8('0x93'),_0x2fbf0e),this[_0x42d8('0x60')](_0x42d8('0x93')),_0x4f06f1[_0x42d8('0x71')][_0x42d8('0xb5')](_0x42d8('0x51'),new _0x110945(_0x4f06f1,_0x17aa65,this[_0x42d8('0xfa')])),this[_0x42d8('0x60')](_0x42d8('0x51')),_0x4f06f1[_0x42d8('0x71')][_0x42d8('0xb5')](_0x42d8('0x11b'),new _0x110945(_0x4f06f1,_0x2fbf0e,this[_0x42d8('0xfa')])),this[_0x42d8('0x60')](_0x42d8('0x11b')),_0x4f06f1['commands']['add'](_0x42d8('0xa0'),new _0x165605(_0x4f06f1,_0x17aa65,this['_suggestions'])),this[_0x42d8('0x60')](_0x42d8('0xa0')),_0x4f06f1['commands'][_0x42d8('0xb5')](_0x42d8('0xb6'),new _0x165605(_0x4f06f1,_0x2fbf0e,this['_suggestions'])),this[_0x42d8('0x60')]('discardSelectedSuggestions');const _0x46fbd6=_0x4f06f1['plugins'][_0x42d8('0x58')]('CommentsRepository');this[_0x42d8('0x112')](_0x46fbd6,_0x42d8('0x135'),(_0x46b06a,{threadId:_0x579d4a})=>{const _0x30954f=this[_0x42d8('0xfa')][_0x42d8('0x58')](_0x579d4a);_0x30954f&&_0x30954f[_0x42d8('0xf4')]&&0x1===_0x30954f[_0x42d8('0xf4')][_0x42d8('0xbe')]&&this[_0x42d8('0xbb')](_0x579d4a,{'hasComments':!0x0});},{'priority':_0x42d8('0xa3')}),this['listenTo'](_0x46fbd6,_0x42d8('0x52'),(_0x549e6c,{threadId:_0x57f7e2})=>{const _0x343587=this[_0x42d8('0xfa')][_0x42d8('0x58')](_0x57f7e2);_0x343587&&_0x343587['commentThread']&&!_0x343587['commentThread']['length']&&this[_0x42d8('0xbb')](_0x57f7e2,{'hasComments':!0x1});},{'priority':_0x42d8('0xa3')});}set[_0x42d8('0xb0')](_0x3395de){if(this[_0x42d8('0x131')])throw new _0x2738aa(_0x42d8('0x2f'),this);this[_0x42d8('0x131')]=_0x3395de;}get[_0x42d8('0xb0')](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x218352=!0x1,toJSON:_0x54e095=!0x1}={}){const _0x173305=[];for(const _0x54f58e of this[_0x42d8('0xfa')][_0x42d8('0xab')]())_0x218352&&!_0x54f58e[_0x42d8('0xd8')]||_0x173305[_0x42d8('0x115')](_0x54f58e);return _0x54e095?_0x173305[_0x42d8('0x111')](_0x5e648b=>_0x5e648b[_0x42d8('0x11')]()):_0x173305;}['getSuggestion'](_0x2c67e2){const _0x2b2a2a=this[_0x42d8('0xfa')]['get'](_0x2c67e2);if(!_0x2b2a2a)throw new _0x2738aa('track-changes-suggestion-not-found',this);return _0x2b2a2a;}[_0x42d8('0xc0')](_0x2f510d){return this[_0x42d8('0xfa')][_0x42d8('0x1f')](_0x2f510d);}[_0x42d8('0xfe')](_0x41c56e){const {authorId:_0x25bb5,id:_0x16dd40,attributes:_0x5df1b4}=_0x41c56e,[_0x1d6906,_0x5e289f]=_0x41c56e[_0x42d8('0xbd')][_0x42d8('0xf2')](':'),_0x20b416=this[_0x42d8('0xfa')][_0x42d8('0x58')](_0x16dd40)||this['_createSuggestion'](_0x1d6906,_0x5e289f,_0x16dd40,_0x25bb5,_0x5df1b4);if(this['_addThreadToSuggestion'](_0x20b416),this[_0x42d8('0xb8')](_0x20b416,_0x1d6906,_0x5e289f||null,_0x25bb5),_0x20b416['createdAt']=_0x41c56e[_0x42d8('0xdd')],_0x20b416['_isDataLoaded']=!0x0,_0x5df1b4&&_0x5df1b4['@external']){const _0x540cd0=_0x5df1b4[_0x42d8('0xd1')],_0x25194e=this[_0x42d8('0xe9')](_0x540cd0[_0x42d8('0x7f')]);_0x20b416[_0x42d8('0x39')]=_0x540cd0['createdAt'],_0x20b416[_0x42d8('0x84')]=_0x25194e,_0x20b416[_0x42d8('0x1d')]=!0x0;}else _0x20b416[_0x42d8('0x39')]=_0x41c56e['createdAt'];switch(_0x41c56e[_0x42d8('0xaa')]&&(_0x20b416['data']=_0x41c56e[_0x42d8('0xaa')]),_0x41c56e[_0x42d8('0x11a')]&&(_0x20b416[_0x42d8('0x11a')]=_0x41c56e[_0x42d8('0x11a')]),this[_0x42d8('0x131')]&&this[_0x42d8('0x131')]['addSuggestion']||(_0x20b416[_0x42d8('0x6f')]=!0x0),this[_0x42d8('0x105')][_0x42d8('0x58')](_0x20b416)){case'notReady':this[_0x42d8('0x105')]['set'](_0x20b416,_0x42d8('0xfb'));break;case _0x42d8('0x44'):_0x20b416[_0x42d8('0xd8')]?(this[_0x42d8('0x5b')](new Set([_0x20b416])),this[_0x42d8('0x82')](new Set([_0x20b416])),this[_0x42d8('0x105')][_0x42d8('0x1a')](_0x20b416,_0x42d8('0x11e')),this[_0x42d8('0x94')](_0x42d8('0x138'),_0x20b416)):this[_0x42d8('0x105')]['set'](_0x20b416,_0x42d8('0x38'));}return _0x20b416;}[_0x42d8('0xf5')](_0x1b3b04){this[_0x42d8('0x26')](()=>{this['editor']['model'][_0x42d8('0x104')](()=>{for(const _0x1ae619 of _0x1b3b04[_0x42d8('0x13')]())_0x1ae619['accept']();});});}[_0x42d8('0x93')](_0x5cef7a){this['forceDefaultExecution'](()=>{this['editor'][_0x42d8('0x13f')][_0x42d8('0x104')](()=>{for(const _0x1cbc7a of _0x5cef7a[_0x42d8('0x13')]())_0x1cbc7a['discard']();});});}[_0x42d8('0x60')](_0x225874,_0x5c0560){const _0x36ae48=this['editor'][_0x42d8('0x71')][_0x42d8('0x58')](_0x225874);if(!_0x36ae48)throw new _0x2738aa('track-changes-command-not-found',this,{'commandName':_0x225874});this[_0x42d8('0x66')][_0x42d8('0xb5')](_0x36ae48),_0x5c0560&&_0x36ae48['on'](_0x42d8('0x17'),(_0x342d13,_0x470e1c)=>{this['trackChangesCommand']['value']&&(this[_0x42d8('0x90')]||_0x470e1c['length']>0x0&&_0x470e1c[_0x470e1c['length']-0x1]&&_0x470e1c[_0x470e1c[_0x42d8('0xbe')]-0x1][_0x42d8('0x26')]||(_0x342d13[_0x42d8('0x12d')]=_0x5c0560((..._0xfd1759)=>_0x36ae48[_0x42d8('0x17')](..._0xfd1759,{'forceDefaultExecution':!0x0}),..._0x470e1c),_0x342d13['stop']()));},{'priority':_0x42d8('0xcd')});}[_0x42d8('0x26')](_0x379d58){let _0x48e8d6,_0x1897c2;const _0x509c09=this['_isForcedDefaultExecutionBlock'];this[_0x42d8('0x90')]=!0x0;try{_0x48e8d6=_0x379d58();}catch(_0x451313){_0x1897c2=_0x451313;}return _0x509c09||(this[_0x42d8('0x90')]=!0x1),_0x1897c2&&_0x2738aa[_0x42d8('0xeb')](_0x1897c2,this),_0x48e8d6;}['markInsertion'](_0x357146,_0x2d9922=null,_0x952c43={}){if(_0x357146[_0x42d8('0x113')])return null;const _0x31b1a7=this[_0x42d8('0xe3')][_0x42d8('0x126')][_0x42d8('0x58')]('Users')['me'];for(const {suggestion:_0x36a790,meta:_0x5a6dfd}of this[_0x42d8('0xbc')](_0x357146,'insertion'))if(_0x5a6dfd[_0x42d8('0x140')]){if(!_0x5a6dfd[_0x42d8('0xf3')]){if(_0x5a6dfd[_0x42d8('0x27')]){if(!this[_0x42d8('0x70')]||!Ot(_0x36a790,_0x952c43))continue;return _0x36a790;}if(Ot(_0x36a790,_0x952c43))return _0x36a790;this[_0x42d8('0x4b')](_0x36a790,_0x357146[_0x42d8('0x9e')],_0x357146[_0x42d8('0x24')]);break;}if(_0x2d9922==_0x36a790[_0x42d8('0x9f')]&&Ot(_0x36a790,_0x952c43)){const _0x3639f1=_0x36a790[_0x42d8('0x10c')]();return _0x3639f1['start'][_0x42d8('0x8f')](_0x357146[_0x42d8('0x24')])?this[_0x42d8('0x5e')](_0x36a790,this[_0x42d8('0xc8')][_0x42d8('0x108')](_0x357146[_0x42d8('0x9e')],_0x3639f1[_0x42d8('0x24')])):this[_0x42d8('0x5e')](_0x36a790,this[_0x42d8('0xc8')][_0x42d8('0x108')](_0x3639f1[_0x42d8('0x9e')],_0x357146[_0x42d8('0x24')])),_0x36a790;}}const _0x67cebe=_0x2cd2d9(),_0x2f00fc=_0x31b1a7['id'],_0x1b976e=_0x2d9922?_0x42d8('0xee')+_0x2d9922:'insertion',_0x34d405=this[_0x42d8('0x4a')]({'id':_0x67cebe,'type':_0x1b976e,'createdAt':new Date(),'authorId':_0x2f00fc,'attributes':_0x952c43});return this[_0x42d8('0x6a')](_0x1b976e,_0x67cebe,_0x2f00fc,_0x357146),_0x34d405;}[_0x42d8('0xd2')](_0x1d8aa6,_0x390ebf='multi',_0x1d9abc={}){const _0xbf8103=this['editor']['plugins'][_0x42d8('0x58')](_0x42d8('0x6'))['me'],_0x4feef9=this[_0x42d8('0x69')][_0x42d8('0x86')](_0x42d8('0x2e'),_0x390ebf,_0x42d8('0x63'));for(const _0x396b52 of this[_0x42d8('0xc9')]())if(_0x396b52[_0x42d8('0x84')]['id']==_0xbf8103['id']&&_0x42d8('0x2e')==_0x396b52[_0x42d8('0xbd')]&&_0x396b52[_0x42d8('0x9f')]==_0x390ebf&&Ot(_0x396b52,_0x1d9abc)&&(_0x4feef9(_0x396b52[_0x42d8('0xd4')](),_0x1d8aa6)||_0x4feef9(_0x1d8aa6,_0x396b52[_0x42d8('0xd4')]()))){for(const _0x115edd of _0x1d8aa6)_0x396b52[_0x42d8('0x123')](_0x115edd);return _0x396b52;}for(const {suggestion:_0x472aa6,meta:_0x55d459}of this[_0x42d8('0xbc')](_0x1d8aa6,'insertion')){if(!_0x55d459[_0x42d8('0x140')])continue;if(!this[_0x42d8('0x70')]&&_0x55d459[_0x42d8('0x27')])continue;if(!Ot(_0x472aa6,_0x1d9abc))continue;let _0x585945=!0x0;for(const _0x4bbfa7 of _0x472aa6[_0x42d8('0xd4')]())for(const _0x1e58d3 of _0x1d8aa6)if(!_0x4bbfa7['containsRange'](_0x1e58d3)){_0x585945=!0x1;break;}if(_0x585945)return _0x472aa6;}const _0x16a444=_0x2cd2d9(),_0x3deca1=_0xbf8103['id'],_0x2c8320=_0x42d8('0xee')+_0x390ebf,_0x181097=this[_0x42d8('0x4a')]({'id':_0x16a444,'type':_0x2c8320,'createdAt':new Date(),'authorId':_0x3deca1,'attributes':_0x1d9abc});for(const _0x483695 of _0x1d8aa6)this[_0x42d8('0x6a')](_0x2c8320,_0x16a444,_0x3deca1,_0x483695,_0x20918a[_0x42d8('0xf7')]());return _0x181097;}[_0x42d8('0x143')](_0x2ff7b9,_0x2d3fba,_0x102b55=null,_0x13c135={}){if(_0x102b55=_0x102b55||Nt(_0x2d3fba),_0x2ff7b9[_0x42d8('0x113')])return null;if('never'===this[_0x42d8('0x89')]){const _0x4b97d3=this[_0x42d8('0x69')][_0x42d8('0x86')](_0x42d8('0x67'),_0x102b55,_0x42d8('0x9'));return this['forceDefaultExecution'](()=>_0x4b97d3([_0x2ff7b9],_0x2d3fba,_0x13c135)),null;}const _0x1e1401=this[_0x42d8('0xe3')][_0x42d8('0x126')][_0x42d8('0x58')](_0x42d8('0x6'))['me'],_0x74e49f=[];if('always'!==this[_0x42d8('0x89')])for(const {suggestion:_0x458a90,meta:_0x2d4b35}of this[_0x42d8('0xbc')](_0x2ff7b9,_0x42d8('0x2e')))_0x2d4b35['isOwn']&&!_0x2d4b35[_0x42d8('0x10')]&&_0x74e49f['push'](..._0x458a90[_0x42d8('0xd4')]());const _0x424df8=function(_0x3c92f3,_0x24d7c4){const _0x473609=[];for(const _0xa5c8c1 of _0x24d7c4){const _0x248d61=_0x3c92f3['getIntersection'](_0xa5c8c1);_0x248d61&&_0x473609[_0x42d8('0x115')](_0x248d61);}return _0x473609;}(_0x2ff7b9,_0x74e49f),_0x132a40=function(_0x13c8aa,_0x50a539){const _0x17312e=[_0x13c8aa];for(const _0x12d033 of _0x50a539){let _0x41f9d7=0x0;for(;_0x41f9d7<_0x17312e['length'];){const _0x317997=_0x17312e[_0x41f9d7][_0x42d8('0x3f')](_0x12d033);_0x17312e[_0x42d8('0x7a')](_0x41f9d7,0x1,..._0x317997),_0x41f9d7+=_0x317997[_0x42d8('0xbe')];}}return _0x17312e;}(_0x2ff7b9,_0x74e49f);_0x424df8[_0x42d8('0xbe')]&&this[_0x42d8('0xc8')][_0x42d8('0x104')](()=>{for(const _0x1de42f of _0x424df8){const _0x110b71=this[_0x42d8('0x69')][_0x42d8('0x86')](_0x42d8('0x67'),_0x102b55,_0x42d8('0x9'));this[_0x42d8('0x26')](()=>_0x110b71([_0x1de42f],_0x2d3fba,_0x13c135));}});for(const _0x496c78 of _0x132a40){let _0x26ae24=null,_0x380e44=_0x496c78[_0x42d8('0x9e')],_0x41162c=_0x496c78[_0x42d8('0x24')];for(const {suggestion:_0x44ebd9,meta:_0x4da399}of this[_0x42d8('0xbc')](_0x496c78,_0x42d8('0x67'))){if(!_0x4da399[_0x42d8('0x140')])continue;if(_0x44ebd9[_0x42d8('0x9f')]!=_0x102b55)continue;if(!Ot(_0x44ebd9,_0x13c135))continue;const _0xae373a=_0x44ebd9[_0x42d8('0x10c')]();if(_0xae373a['containsRange'](_0x496c78,!0x0))return null;_0x380e44=_0x380e44[_0x42d8('0x79')](_0xae373a[_0x42d8('0x9e')])?_0x380e44:_0xae373a['start'],_0x41162c=_0x41162c[_0x42d8('0x78')](_0xae373a[_0x42d8('0x24')])?_0x41162c:_0xae373a[_0x42d8('0x24')],_0x26ae24?_0xae373a['start'][_0x42d8('0x79')](_0x26ae24[_0x42d8('0x10c')]()[_0x42d8('0x9e')])?(_0x26ae24[_0x42d8('0xc2')](),_0x26ae24=_0x44ebd9):_0x44ebd9[_0x42d8('0xc2')]():_0x26ae24=_0x44ebd9;}const _0x1595fb=this['_model'][_0x42d8('0x108')](_0x380e44,_0x41162c);if(_0x26ae24)this[_0x42d8('0x5e')](_0x26ae24,_0x1595fb);else{const _0x44e7c3=_0x2cd2d9(),_0x285968=_0x1e1401['id'];this[_0x42d8('0x4a')]({'id':_0x44e7c3,'type':_0x42d8('0x5f')+_0x102b55,'data':_0x2d3fba,'createdAt':new Date(),'authorId':_0x285968,'attributes':_0x13c135}),this[_0x42d8('0x6a')](_0x42d8('0x5f')+_0x102b55,_0x44e7c3,_0x285968,_0x1595fb);}}return null;}[_0x42d8('0xf6')](_0x4a01b4,_0x59e4ae,_0x160376=[],_0x12fd7b=null,_0xb14aab={}){_0x59e4ae[_0x42d8('0xea')]||(_0x59e4ae[_0x42d8('0xea')]=_0x59e4ae[_0x42d8('0x13a')]),_0x59e4ae['multipleBlocks']=_0x4a01b4['is'](_0x42d8('0xb3')),_0x12fd7b=_0x12fd7b||Nt(_0x59e4ae);const _0x36be72=_0x160376[_0x42d8('0x111')](_0xf2cf7d=>jt(_0xf2cf7d,this[_0x42d8('0xc8')])),_0x1832b4=_0x4a01b4['is'](_0x42d8('0xb3'))?_0x4a01b4:jt(_0x4a01b4,this[_0x42d8('0xc8')]);if('never'===this[_0x42d8('0x89')]){const _0xdc0da5=this[_0x42d8('0x69')][_0x42d8('0x86')](_0x42d8('0x8a'),_0x12fd7b,_0x42d8('0x9'));return this[_0x42d8('0x26')](()=>_0xdc0da5([_0x1832b4],_0x59e4ae,_0xb14aab)),null;}_0x36be72['push'](_0x1832b4);let _0x10bf5a=!0x0;for(const _0x4aefb0 of _0x36be72)if(!this[_0x42d8('0x49')](_0x4aefb0)){_0x10bf5a=!0x1;break;}if(_0x10bf5a&&_0x42d8('0x80')!==this[_0x42d8('0x89')]){const _0x5092e9=this[_0x42d8('0x69')][_0x42d8('0x86')](_0x42d8('0x8a'),_0x12fd7b,_0x42d8('0x9'));return this[_0x42d8('0x26')](()=>_0x5092e9([_0x1832b4],_0x59e4ae,_0xb14aab)),null;}let _0x379b4d=null,_0x5588cd=_0x1832b4['start'],_0x2914ab=_0x1832b4[_0x42d8('0x24')];for(const {suggestion:_0x3126e7,meta:_0x346546}of this[_0x42d8('0xbc')](_0x1832b4,'formatBlock')){if(!_0x346546[_0x42d8('0x140')])continue;if(_0x346546[_0x42d8('0xf3')]||_0x346546['containsRangeInObject']||_0x346546[_0x42d8('0x10')])continue;if(_0x3126e7[_0x42d8('0xaa')][_0x42d8('0xea')]!=_0x59e4ae[_0x42d8('0xea')])continue;if(!Ot(_0x3126e7,_0xb14aab))continue;const _0x2f3108=_0x3126e7['getFirstRange']();if(_0x3126e7[_0x42d8('0x9f')]==_0x12fd7b){if(_0x2f3108[_0x42d8('0x7b')](_0x1832b4,!0x0))return null;_0x5588cd=_0x5588cd[_0x42d8('0x79')](_0x2f3108['start'])?_0x5588cd:_0x2f3108['start'],_0x2914ab=_0x2914ab[_0x42d8('0x78')](_0x2f3108[_0x42d8('0x24')])?_0x2914ab:_0x2f3108[_0x42d8('0x24')],_0x379b4d?_0x2f3108['start'][_0x42d8('0x79')](_0x379b4d['getFirstRange']()[_0x42d8('0x9e')])?(_0x379b4d['removeMarkers'](),_0x379b4d=_0x3126e7):_0x3126e7[_0x42d8('0xc2')]():_0x379b4d=_0x3126e7;}else{const _0x1b85cb=_0x1832b4[_0x42d8('0xe2')](_0x2f3108);this['_cutOutSuggestionMarker'](_0x3126e7,_0x1b85cb);}}const _0x7ea53c=this[_0x42d8('0xe3')][_0x42d8('0x126')][_0x42d8('0x58')](_0x42d8('0x6'))['me'],_0x46d2a5=_0x2cd2d9(),_0x4ab1a2=_0x7ea53c['id'];if(_0x379b4d)return this['_setSuggestionRange'](_0x379b4d,this[_0x42d8('0xc8')][_0x42d8('0x108')](_0x5588cd,_0x2914ab)),_0x379b4d;{const _0x49b99f=this['_setSuggestionData']({'id':_0x46d2a5,'type':'formatBlock:'+_0x12fd7b,'data':_0x59e4ae,'createdAt':new Date(),'authorId':_0x4ab1a2,'attributes':_0xb14aab});return this[_0x42d8('0x6a')](_0x42d8('0x3d')+_0x12fd7b,_0x46d2a5,_0x4ab1a2,this[_0x42d8('0xc8')][_0x42d8('0x108')](_0x5588cd,_0x2914ab)),_0x49b99f;}}['markMultiRangeBlockFormat'](_0xd2b18a,_0x527209,_0x177f37=[],_0x1bd74c=null,_0x53c8f3={}){_0x527209['formatGroupId']||(_0x527209[_0x42d8('0xea')]=_0x527209[_0x42d8('0x13a')]);const _0x4effed=_0xd2b18a[0x0];_0x527209['multipleBlocks']=_0x4effed['is'](_0x42d8('0xb3')),_0x1bd74c=_0x1bd74c||Nt(_0x527209);const _0x4fe1c3=_0x177f37['map'](_0x5dbfeb=>jt(_0x5dbfeb,this['_model'])),_0x5d6bae=_0x4effed['is'](_0x42d8('0xb3'))?_0xd2b18a:_0xd2b18a[_0x42d8('0x111')](_0x1d5936=>jt(_0x1d5936,this['_model']));if(_0x42d8('0xa1')===this['_trackFormatChanges']){const _0x4baa3d=this[_0x42d8('0x69')][_0x42d8('0x86')](_0x42d8('0x8a'),_0x1bd74c,_0x42d8('0x9'));return this[_0x42d8('0x26')](()=>_0x4baa3d(_0x5d6bae,_0x527209,_0x53c8f3)),null;}_0x4fe1c3[_0x42d8('0x115')](..._0x5d6bae);let _0x5033f1=!0x0;for(const _0x1926d4 of _0x4fe1c3)if(!this[_0x42d8('0x49')](_0x1926d4)){_0x5033f1=!0x1;break;}if(_0x5033f1&&_0x42d8('0x80')!==this[_0x42d8('0x89')]){const _0x3cb984=this[_0x42d8('0x69')][_0x42d8('0x86')](_0x42d8('0x8a'),_0x1bd74c,_0x42d8('0x9'));return this[_0x42d8('0x26')](()=>_0x3cb984(_0x5d6bae,_0x527209,_0x53c8f3)),null;}const _0x43af93=this[_0x42d8('0xe3')][_0x42d8('0x126')][_0x42d8('0x58')](_0x42d8('0x6'))['me'];for(const _0x44a358 of this[_0x42d8('0xc9')]()){if(_0x44a358[_0x42d8('0x84')]['id']!=_0x43af93['id'])continue;if(_0x42d8('0x8a')!=_0x44a358[_0x42d8('0xbd')]||_0x44a358[_0x42d8('0xaa')]['formatGroupId']!=_0x527209['formatGroupId'])continue;if(!Ot(_0x44a358,_0x53c8f3))continue;const _0x41861e=_0x44a358[_0x42d8('0x9f')]==_0x1bd74c;for(let _0x3d9044=0x0;_0x3d9044<_0x5d6bae[_0x42d8('0xbe')];_0x3d9044++){const _0x5459fc=_0x5d6bae[_0x3d9044];for(const _0x5655b1 of _0x44a358[_0x42d8('0xba')]()){const _0x3bbd6a=_0x5655b1[_0x42d8('0x13c')]();if(_0x5459fc[_0x42d8('0x8f')](_0x3bbd6a)){_0x41861e?(_0x5d6bae[_0x42d8('0x7a')](_0x3d9044,0x1),_0x3d9044--):_0x44a358['removeMarker'](_0x5655b1[_0x42d8('0x5d')]);break;}}}}if(0x0==_0x5d6bae[_0x42d8('0xbe')])return null;const _0x22606b=this[_0x42d8('0x69')][_0x42d8('0x86')](_0x42d8('0x8a'),_0x1bd74c,'join');for(const _0x2fa5e9 of this['getSuggestions']())if(_0x2fa5e9[_0x42d8('0x84')]['id']==_0x43af93['id']&&_0x42d8('0x8a')==_0x2fa5e9['type']&&_0x2fa5e9[_0x42d8('0xaa')]['formatGroupId']==_0x527209['formatGroupId']&&_0x2fa5e9[_0x42d8('0x9f')]==_0x1bd74c&&Ot(_0x2fa5e9,_0x53c8f3)&&(_0x22606b(_0x2fa5e9[_0x42d8('0xd4')](),_0x5d6bae)||_0x22606b(_0x5d6bae,_0x2fa5e9[_0x42d8('0xd4')]()))){for(const _0x2c06d9 of _0x5d6bae)_0x2fa5e9[_0x42d8('0x123')](_0x2c06d9);return _0x2fa5e9;}const _0xc0a2e5=_0x2cd2d9(),_0x50e6ac=_0x43af93['id'],_0x4167cb='formatBlock:'+_0x1bd74c,_0x5048c4=this['_setSuggestionData']({'id':_0xc0a2e5,'type':_0x4167cb,'data':_0x527209,'createdAt':new Date(),'authorId':_0x50e6ac,'attributes':_0x53c8f3});for(const _0x442338 of _0x5d6bae)this['_addSuggestionMarker'](_0x4167cb,_0xc0a2e5,_0x50e6ac,_0x442338,_0x20918a[_0x42d8('0xf7')]());return _0x5048c4;}[_0x42d8('0x125')](_0x54d72f,_0x915ef7=null,_0x1f60a1={}){if(_0x54d72f['isCollapsed'])return null;const _0x484349=this[_0x42d8('0xe3')][_0x42d8('0x126')]['get'](_0x42d8('0x6'))['me'],_0x177843=new _0x2cba86(_0x54d72f['start'],_0x54d72f[_0x42d8('0x24')]);for(const {suggestion:_0x42efba,meta:_0x5c1441}of this[_0x42d8('0xbc')](_0x177843,_0x42d8('0x2e')))if(_0x5c1441[_0x42d8('0x140')]&&!_0x5c1441['isNextTo']){if(_0x42efba[_0x42d8('0x4c')]){const _0x2e1ce6=_0x42efba[_0x42d8('0xd4')]()[_0x42d8('0xc7')](_0x2b6536=>_0x42d8('0x98')!=_0x2b6536[_0x42d8('0x12')][_0x42d8('0x15')]);_0x2e1ce6['every'](_0x5230ad=>_0x177843[_0x42d8('0x7b')](_0x5230ad,!0x0))&&_0x42efba[_0x42d8('0xff')]();if(_0x2e1ce6['some'](_0x234d4d=>_0x234d4d[_0x42d8('0x7b')](_0x177843,!0x0))){const _0xc3e4ed=this['_suggestionFactory'][_0x42d8('0x86')](_0x42d8('0x2b'),_0x915ef7,'accept');return this[_0x42d8('0x26')](()=>_0xc3e4ed([_0x177843],null,_0x1f60a1)),null;}}else{const _0x450aa6=_0x177843[_0x42d8('0xe2')](_0x42efba[_0x42d8('0x10c')]());null!==_0x450aa6&&_0x42efba[_0x42d8('0x99')]([_0x450aa6],null,_0x1f60a1);}}if(_0x177843[_0x42d8('0x30')](),_0x177843['isCollapsed']||'$graveyard'==_0x177843['root'][_0x42d8('0x15')])return null;let _0x4ee7d7=null,_0xb015d=_0x177843[_0x42d8('0x9e')],_0x4c695a=_0x177843[_0x42d8('0x24')];const _0x4cea5f=this[_0x42d8('0xbc')](_0x177843,_0x42d8('0x2b'));for(const {suggestion:_0x3ac548,meta:_0xc02c3f}of _0x4cea5f){const _0x161836=this[_0x42d8('0xc8')]['createRange'](_0xb015d,_0x4c695a);if(_0xc02c3f[_0x42d8('0x140')]&&(this[_0x42d8('0x70')]||!_0xc02c3f[_0x42d8('0x27')]&&!_0xc02c3f['isInsideObject'])){if(_0x3ac548[_0x42d8('0x4c')]){if(!Ot(_0x3ac548,_0x1f60a1))continue;let _0xf3dbc9=!0x0;for(const _0x3753dd of _0x3ac548[_0x42d8('0xd4')]()){if(_0x3753dd[_0x42d8('0x7b')](_0x161836,!0x0))return _0x3ac548;_0x161836[_0x42d8('0x7b')](_0x3753dd)||(_0xf3dbc9=!0x1);}_0xf3dbc9&&_0x3ac548['discard']();}else{const _0x2e4861=_0x3ac548['getFirstRange']();if(_0x2e4861[_0x42d8('0x7b')](_0x161836,!0x0))return _0x3ac548;if(!Ot(_0x3ac548,_0x1f60a1)){_0x161836[_0x42d8('0x7b')](_0x2e4861)?_0x3ac548['removeMarkers']():_0x2e4861[_0x42d8('0x139')](_0xb015d)?_0xb015d=_0x2e4861[_0x42d8('0x24')]:_0x2e4861[_0x42d8('0x139')](_0x4c695a)&&(_0x4c695a=_0x2e4861[_0x42d8('0x9e')]);continue;}_0xb015d=_0xb015d[_0x42d8('0x79')](_0x2e4861[_0x42d8('0x9e')])?_0xb015d:_0x2e4861[_0x42d8('0x9e')],_0x4c695a=_0x4c695a[_0x42d8('0x78')](_0x2e4861[_0x42d8('0x24')])?_0x4c695a:_0x2e4861[_0x42d8('0x24')],_0x1f60a1=Object['assign']({},_0x3ac548[_0x42d8('0x11a')]),_0x4ee7d7?_0x2e4861['start'][_0x42d8('0x79')](_0x4ee7d7[_0x42d8('0x10c')]()[_0x42d8('0x9e')])?(_0x4ee7d7[_0x42d8('0xc2')](),_0x4ee7d7=_0x3ac548):_0x3ac548[_0x42d8('0xc2')]():_0x4ee7d7=_0x3ac548;}}}if(_0x4ee7d7)return this[_0x42d8('0x5e')](_0x4ee7d7,this[_0x42d8('0xc8')][_0x42d8('0x108')](_0xb015d,_0x4c695a)),_0x4ee7d7;{const _0x16901=_0x2cd2d9(),_0x2344bf=this[_0x42d8('0xc8')][_0x42d8('0x108')](_0xb015d,_0x4c695a),_0x30a052=_0x484349['id'],_0x3b8aa3=_0x915ef7?_0x42d8('0x9d')+_0x915ef7:'deletion',_0x529137=this[_0x42d8('0x4a')]({'id':_0x16901,'type':_0x3b8aa3,'createdAt':new Date(),'authorId':_0x30a052,'attributes':_0x1f60a1});return this[_0x42d8('0x6a')](_0x3b8aa3,_0x16901,_0x30a052,_0x2344bf),_0x529137;}}[_0x42d8('0x85')](_0x2842db,_0x5d4ddd=_0x42d8('0x31'),_0x4229ca={}){const _0x235f46=this[_0x42d8('0xe3')][_0x42d8('0x126')][_0x42d8('0x58')](_0x42d8('0x6'))['me'],_0x5b9b8f=_0x2842db[_0x42d8('0x111')](_0x21a831=>new _0x2cba86(_0x21a831[_0x42d8('0x9e')],_0x21a831[_0x42d8('0x24')])),_0x147515=new Set();for(const {suggestion:_0x538e1e,meta:_0x5b50a3}of this['_findSuggestions'](_0x5b9b8f,_0x42d8('0x2e')))_0x5b50a3[_0x42d8('0x140')]&&!_0x5b50a3[_0x42d8('0xf3')]&&_0x147515['add'](_0x538e1e);for(const _0xc4f61e of _0x147515)if(_0xc4f61e['isMultiRange']){const _0x1f3cf4=_0xc4f61e['getRanges']();(!_0xc4f61e['attributes']||!_0xc4f61e[_0x42d8('0x11a')][_0x42d8('0xf')])&&(_0x1f3cf4[_0x42d8('0xd5')](_0x3cf5bf=>_0x5b9b8f['some'](_0x4e83b4=>_0x4e83b4[_0x42d8('0x7b')](_0x3cf5bf,!0x0)))&&_0xc4f61e[_0x42d8('0xff')]());if(_0x5b9b8f['every'](_0x2b4d5b=>_0x1f3cf4[_0x42d8('0x36')](_0xcf1164=>_0xcf1164[_0x42d8('0x7b')](_0x2b4d5b,!0x0)))){const _0x1b6abd=this['_suggestionFactory'][_0x42d8('0x86')](_0x42d8('0x2b'),_0x5d4ddd,_0x42d8('0x9'));return this[_0x42d8('0x26')](()=>_0x1b6abd(_0x2842db,null,_0x4229ca)),null;}}else{const _0x2767f9=_0xc4f61e['getFirstRange']();_0x5b9b8f[_0x42d8('0x36')](_0x593be4=>_0x593be4[_0x42d8('0x7b')](_0x2767f9,!0x0))&&_0xc4f61e[_0x42d8('0xff')]();if(_0x5b9b8f[_0x42d8('0xd5')](_0x2fff2c=>_0x2767f9['containsRange'](_0x2fff2c,!0x0))){const _0x4dedbd=this['_suggestionFactory'][_0x42d8('0x86')]('deletion',_0x5d4ddd,_0x42d8('0x9'));return this[_0x42d8('0x26')](()=>_0x4dedbd(_0x5b9b8f,null,_0x4229ca)),null;}}const _0x41aa1b=this[_0x42d8('0x69')][_0x42d8('0x86')](_0x42d8('0x2b'),_0x5d4ddd,_0x42d8('0x63'));let _0x5b8b2e=null;for(const _0x195001 of this['getSuggestions']())if(_0x195001[_0x42d8('0x84')]['id']==_0x235f46['id']&&_0x195001[_0x42d8('0xd8')]&&_0x42d8('0x2b')==_0x195001[_0x42d8('0xbd')]&&_0x195001['subType']==_0x5d4ddd&&Ot(_0x195001,_0x4229ca)&&(_0x41aa1b(_0x195001[_0x42d8('0xd4')](),_0x5b9b8f)||_0x41aa1b(_0x5b9b8f,_0x195001[_0x42d8('0xd4')]()))){if(_0x5b8b2e){if(_0x195001[_0x42d8('0xf4')]&&_0x195001[_0x42d8('0xf4')][_0x42d8('0xbe')])continue;for(const _0xe0b72a of _0x195001['getRanges']())_0x5b8b2e[_0x42d8('0xca')](_0xe0b72a)||_0x5b8b2e[_0x42d8('0x123')](_0xe0b72a);_0x195001[_0x42d8('0xc2')]();}else{_0x5b8b2e=_0x195001;for(const _0x4a007a of _0x5b9b8f)_0x195001[_0x42d8('0xca')](_0x4a007a)||_0x195001[_0x42d8('0x123')](_0x4a007a);}}if(_0x5b8b2e)return _0x5b8b2e;_0x147515[_0x42d8('0x119')]();for(const {suggestion:_0x49df36,meta:_0x544e3a}of this['_findSuggestions'](_0x5b9b8f,_0x42d8('0x2b')))_0x544e3a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x544e3a[_0x42d8('0x27')]&&!_0x544e3a[_0x42d8('0x10')])&&Ot(_0x49df36,_0x4229ca)&&_0x147515[_0x42d8('0xb5')](_0x49df36);for(const _0x5e77f1 of _0x147515){const _0x39e1c9=_0x5e77f1[_0x42d8('0xd4')]();if(!_0x4229ca||!_0x4229ca['skipNestingCheck']){if(_0x5b9b8f[_0x42d8('0xd5')](_0x38d955=>_0x39e1c9['some'](_0x2fe47b=>_0x2fe47b[_0x42d8('0x7b')](_0x38d955,!0x0))))return _0x5e77f1;}(!_0x5e77f1[_0x42d8('0x11a')]||!_0x5e77f1[_0x42d8('0x11a')][_0x42d8('0xf')])&&(_0x39e1c9[_0x42d8('0xd5')](_0x150846=>_0x5b9b8f[_0x42d8('0x36')](_0x73470b=>_0x73470b[_0x42d8('0x7b')](_0x150846,!0x0)))&&_0x5e77f1[_0x42d8('0xff')]());}const _0x10bfec=_0x2cd2d9(),_0x435eff=_0x235f46['id'],_0x3d246d=_0x42d8('0x9d')+_0x5d4ddd,_0x389b4c=this[_0x42d8('0x4a')]({'id':_0x10bfec,'type':_0x3d246d,'createdAt':new Date(),'authorId':_0x435eff,'attributes':_0x4229ca});for(const _0xdf5287 of _0x5b9b8f)_0xdf5287['detach'](),_0xdf5287[_0x42d8('0x113')]||_0x42d8('0x98')==_0xdf5287['root'][_0x42d8('0x15')]||this[_0x42d8('0x6a')](_0x3d246d,_0x10bfec,_0x435eff,_0xdf5287,_0x20918a[_0x42d8('0xf7')]());return _0x389b4c;}[_0x42d8('0x5e')](_0x362352,_0x32f9ba){const _0x3256ba=_0x362352[_0x42d8('0x48')]();this[_0x42d8('0xc8')]['change'](_0x5ac370=>{_0x5ac370[_0x42d8('0x61')](_0x3256ba,{'range':_0x32f9ba});});}[_0x42d8('0x18')](_0x3f1f25){const _0xf7e020=_0x3f1f25['id'],_0x204857=this[_0x42d8('0xe3')][_0x42d8('0x12a')]['get'](_0x42d8('0x14'));this[_0x42d8('0xc5')][_0x42d8('0xcb')](_0xf7e020)||this['_commentsRepository'][_0x42d8('0x9b')]({'channelId':_0x204857,'threadId':_0xf7e020,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x14baf7=this[_0x42d8('0xc5')][_0x42d8('0xa5')](_0xf7e020);_0x14baf7[_0x42d8('0xdb')](_0x42d8('0x122')),_0x14baf7['isRemovable']=!0x1,_0x3f1f25[_0x42d8('0xf4')]=_0x14baf7;}[_0x42d8('0xb8')](_0xabec01,_0x3aecc6,_0x5e1f13,_0x10c18e){if(_0xabec01[_0x42d8('0xbd')]!=_0x3aecc6||_0xabec01['subType']!=_0x5e1f13||_0xabec01[_0x42d8('0x91')]['id']!=_0x10c18e)throw this[_0x42d8('0xe3')]['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2738aa(_0x42d8('0xec'),this);}[_0x42d8('0x5a')](_0x43a373,_0x457928){const _0x3b170f=_0x43a373['getFirstRange']();if(_0x457928[_0x42d8('0x8f')](_0x3b170f))_0x43a373['removeMarkers']();else{if(_0x3b170f[_0x42d8('0x7b')](_0x457928)){const _0x4c5f63=this[_0x42d8('0xc8')][_0x42d8('0x4e')](_0x457928[_0x42d8('0x9e')][_0x42d8('0x141')],'end');this[_0x42d8('0x5e')](_0x43a373,this[_0x42d8('0xc8')][_0x42d8('0x108')](_0x3b170f[_0x42d8('0x9e')],_0x4c5f63));const _0x166c31=_0x2cd2d9(),_0x1a9649=_0x43a373['creator']['id'],_0x1c43ad=_0x43a373['type']+':'+_0x43a373[_0x42d8('0x9f')];this[_0x42d8('0x4a')]({'id':_0x166c31,'type':_0x1c43ad,'createdAt':new Date(),'authorId':_0x1a9649,'data':_0x43a373[_0x42d8('0xaa')],'attributes':_0x43a373[_0x42d8('0x11a')]});const _0x27f868=this['_model'][_0x42d8('0x4e')](_0x457928[_0x42d8('0x24')][_0x42d8('0x1b')],'after'),_0x5aa798=this[_0x42d8('0xc8')]['createRange'](_0x27f868,_0x3b170f[_0x42d8('0x24')]);this[_0x42d8('0x6a')](_0x1c43ad,_0x166c31,_0x1a9649,_0x5aa798);}else{if(_0x3b170f[_0x42d8('0x139')](_0x457928[_0x42d8('0x9e')])){const _0x43f49d=this[_0x42d8('0xc8')][_0x42d8('0x4e')](_0x457928[_0x42d8('0x9e')][_0x42d8('0x141')],_0x42d8('0x24'));this['_setSuggestionRange'](_0x43a373,this['_model']['createRange'](_0x3b170f[_0x42d8('0x9e')],_0x43f49d));}else{const _0x361dee=this[_0x42d8('0xc8')][_0x42d8('0x4e')](_0x457928[_0x42d8('0x24')]['parent'],_0x42d8('0x120'));this[_0x42d8('0x5e')](_0x43a373,this['_model']['createRange'](_0x361dee,_0x3b170f[_0x42d8('0x24')]));}}}}['_rangeIsInLocalUserInsertion'](_0x15da66){for(const {suggestion:_0x7d283,meta:_0x57380b}of this[_0x42d8('0xbc')](_0x15da66,_0x42d8('0x2e'))){if(!_0x57380b['isOwn'])continue;const _0x35b34a=_0x7d283[_0x42d8('0xd4')]();for(const _0x3bf811 of _0x35b34a)if(!_0x15da66['getDifference'](_0x3bf811)[_0x42d8('0xbe')])return!0x0;}return!0x1;}[_0x42d8('0x9c')](_0x15edd0){const _0x23db4e=this[_0x42d8('0xe3')][_0x42d8('0x126')][_0x42d8('0x58')](_0x42d8('0x6'))[_0x42d8('0x92')](_0x15edd0);if(!_0x23db4e)throw new _0x2738aa('track-changes-user-not-found',this);return _0x23db4e;}[_0x42d8('0xe9')](_0x58cbb1){const _0x2da3b2=this[_0x42d8('0xe3')][_0x42d8('0x126')][_0x42d8('0x58')](_0x42d8('0x6')),_0x1f7d73=_0x29222a(_0x42d8('0x56')+_0x58cbb1),_0x540532=_0x2da3b2['getUser'](_0x1f7d73);return _0x540532||_0x2da3b2[_0x42d8('0x127')]({'id':_0x1f7d73,'name':_0x58cbb1});}[_0x42d8('0xed')](_0x122f80,_0x598cd5,_0x4733ed,_0x1d4958,_0xb910b2){const _0x37e4c3=this[_0x42d8('0x9c')](_0x1d4958),_0xe89580=this[_0x42d8('0x69')][_0x42d8('0x57')](_0x122f80,_0x598cd5,_0x4733ed,_0x37e4c3,_0xb910b2,_0x323dcb=>this['_updateSuggestionData'](_0x4733ed,{'attributes':_0x323dcb}));return this[_0x42d8('0x112')](_0xe89580,_0x42d8('0x9'),()=>{this['_updateSuggestionData'](_0x4733ed,{'state':'accepted'});},{'priority':_0x42d8('0xcd')}),this[_0x42d8('0x112')](_0xe89580,'discard',()=>{this[_0x42d8('0xbb')](_0x4733ed,{'state':_0x42d8('0xe4')});},{'priority':_0x42d8('0xcd')}),this[_0x42d8('0xfa')][_0x42d8('0x1a')](_0x4733ed,_0xe89580),this[_0x42d8('0x105')][_0x42d8('0x1a')](_0xe89580,'notReady'),_0xe89580;}[_0x42d8('0x8d')](_0x588464){const _0x3a8bc5=_0x588464['split'](':');return{'group':_0x3a8bc5[0x0],'type':_0x3a8bc5[0x1],'subType':_0x3a8bc5[_0x42d8('0xbe')]>=0x5?_0x3a8bc5[0x2]:null,'id':_0x3a8bc5[_0x42d8('0xbe')]<0x5?_0x3a8bc5[0x2]:_0x3a8bc5[0x3],'authorId':_0x3a8bc5[_0x42d8('0xbe')]<0x5?_0x3a8bc5[0x3]:_0x3a8bc5[0x4],'markerCount':0x6==_0x3a8bc5[_0x42d8('0xbe')]?_0x3a8bc5[0x5]:null};}[_0x42d8('0x4b')](_0x49b4b0,_0x5bc7a6,_0x3584a5){const _0x420357=_0x49b4b0[_0x42d8('0x10c')](),_0x367709=_0x420357[_0x42d8('0x9e')],_0x1d513d=_0x420357[_0x42d8('0x24')];this[_0x42d8('0x5e')](_0x49b4b0,this[_0x42d8('0xc8')][_0x42d8('0x108')](_0x367709,_0x5bc7a6));const _0x612316=_0x2cd2d9(),_0x43aa66=_0x49b4b0[_0x42d8('0x91')]['id'],_0x4e3e6f=_0x49b4b0[_0x42d8('0xbd')]+(_0x49b4b0[_0x42d8('0x9f')]?':'+_0x49b4b0[_0x42d8('0x9f')]:'');this[_0x42d8('0x4a')]({'id':_0x612316,'type':_0x4e3e6f,'createdAt':new Date(),'authorId':_0x43aa66,'originalSuggestionId':_0x49b4b0['id'],'attributes':_0x49b4b0[_0x42d8('0x11a')],'data':_0x49b4b0[_0x42d8('0xaa')]}),_0x42d8('0x8a')==_0x49b4b0[_0x42d8('0xbd')]&&(_0x3584a5=this[_0x42d8('0xc8')][_0x42d8('0x43')](_0x3584a5[_0x42d8('0x1b')])),this[_0x42d8('0x6a')](_0x4e3e6f,_0x612316,_0x43aa66,this[_0x42d8('0xc8')][_0x42d8('0x108')](_0x3584a5,_0x1d513d));}[_0x42d8('0xbc')](_0xbec6a,_0x4a1b5c=null){const _0xc38a7f=[],_0x53a474=this['editor'][_0x42d8('0x126')][_0x42d8('0x58')](_0x42d8('0x6'))['me'];Array['isArray'](_0xbec6a)||(_0xbec6a=[_0xbec6a]);for(const _0x4a9f90 of this['getSuggestions']()){if(!_0x4a9f90[_0x42d8('0xd8')])continue;if(_0x4a1b5c&&_0x4a9f90['type']!=_0x4a1b5c)continue;let _0x425035=!0x1;for(const _0x2ed990 of _0x4a9f90['getRanges']()){for(const _0x3a628d of _0xbec6a){const _0x172dde=_0x3a628d[_0x42d8('0x9e')][_0x42d8('0x8f')](_0x2ed990[_0x42d8('0x24')])||_0x3a628d['end'][_0x42d8('0x8f')](_0x2ed990[_0x42d8('0x9e')]);if(_0x172dde||_0x3a628d[_0x42d8('0xe2')](_0x2ed990)){const _0x11ef56=_0x3a628d[_0x42d8('0x7b')](_0x2ed990)&&_t(this[_0x42d8('0xc8')][_0x42d8('0x72')],_0x2ed990[_0x42d8('0x9e')],_0x3a628d),_0x5ec492=_0x2ed990['containsRange'](_0x3a628d)&&_t(this[_0x42d8('0xc8')][_0x42d8('0x72')],_0x3a628d[_0x42d8('0x9e')],_0x2ed990);_0xc38a7f[_0x42d8('0x115')]({'suggestion':_0x4a9f90,'meta':{'isOwn':_0x53a474==_0x4a9f90[_0x42d8('0x84')],'isNextTo':_0x172dde,'isInsideObject':_0x11ef56,'containsRangeInObject':_0x5ec492}}),_0x425035=!0x0;break;}}if(_0x425035)break;}}return _0xc38a7f;}[_0x42d8('0x6a')](_0x2234a0,_0xf34c0d,_0x10bf2d,_0x20bf3d,_0x422055){this[_0x42d8('0xc8')][_0x42d8('0x104')](_0x4ff408=>{let _0x697df6=_0x42d8('0x4d')+_0x2234a0+':'+_0xf34c0d+':'+_0x10bf2d;_0x422055&&(_0x697df6=_0x697df6+':'+_0x422055),_0x4ff408['addMarker'](_0x697df6,{'range':_0x20bf3d,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x42d8('0x4f')](_0x3d2f0f){const _0x5c065f=_0x3d2f0f[_0x42d8('0x10e')],_0x4bbc96=_0x3d2f0f[_0x42d8('0xd')];_0x3d2f0f[_0x42d8('0x10e')]=null,null!=_0x5c065f&&(_0x5c065f[_0x42d8('0xd')]=null),_0x3d2f0f[_0x42d8('0xd')]=null,null!=_0x4bbc96&&(_0x4bbc96[_0x42d8('0x10e')]=null),_0x42d8('0x11e')==this[_0x42d8('0x105')]['get'](_0x3d2f0f)&&(this['_suggestionState'][_0x42d8('0x1a')](_0x3d2f0f,'removed'),this[_0x42d8('0x94')]('suggestionUnloaded',_0x3d2f0f,_0x5c065f,_0x4bbc96));}[_0x42d8('0x4a')](_0x46db69){const _0x82e388=_0x46db69['id'],_0x5edfbb=this[_0x42d8('0xfe')](_0x46db69);if(this[_0x42d8('0x131')]&&this[_0x42d8('0x131')]['addSuggestion']){const _0x4be421=this[_0x42d8('0xe3')][_0x42d8('0x126')][_0x42d8('0x58')](_0x42d8('0xc6')),_0x1e4cba=_0x5edfbb[_0x42d8('0x3e')],_0x39c842=_0x5edfbb['subType']?_0x5edfbb[_0x42d8('0xbd')]+':'+_0x5edfbb[_0x42d8('0x9f')]:_0x5edfbb[_0x42d8('0xbd')],_0x582f2e=this[_0x42d8('0xe3')][_0x42d8('0x12b')],_0x52ed21=_0x4be421[_0x42d8('0xb5')](_0x34bbba(_0x582f2e,_0x42d8('0x76'))),_0x1a6daa={'id':_0x82e388,'type':_0x39c842,'hasComments':_0x1e4cba,'data':_0x46db69[_0x42d8('0xaa')]||null,'originalSuggestionId':_0x46db69['originalSuggestionId']||null,'attributes':_0x5edfbb[_0x42d8('0x11a')]};this[_0x42d8('0x131')][_0x42d8('0x23')](_0x1a6daa)[_0x42d8('0xb4')](_0xc8b54=>{_0x5edfbb[_0x42d8('0x6f')]=!0x0,_0x4be421['remove'](_0x52ed21),_0xc8b54&&_0xc8b54[_0x42d8('0xdd')]&&(this[_0x42d8('0xfa')]['get'](_0x82e388)[_0x42d8('0xdd')]=_0xc8b54['createdAt']);})[_0x42d8('0x28')](_0x446d2c=>{throw _0x3f8d05(_0x42d8('0xe1')),this[_0x42d8('0xe3')][_0x42d8('0x13f')][_0x42d8('0x54')]({'isUndoable':!0x1},()=>{_0x5edfbb[_0x42d8('0xff')]();}),_0x5edfbb['stopListening'](),this[_0x42d8('0xfa')]['delete'](_0x5edfbb['id']),this[_0x42d8('0x105')][_0x42d8('0x59')](_0x5edfbb),_0x446d2c;});}return _0x5edfbb;}[_0x42d8('0xbb')](_0x2e3511,_0x21e888){const _0xa96f64=this[_0x42d8('0xe3')][_0x42d8('0x126')]['get'](_0x42d8('0xc6')),_0x305a34=this[_0x42d8('0x100')](_0x2e3511);if(this[_0x42d8('0x131')]&&this[_0x42d8('0x131')][_0x42d8('0xc4')]){if(_0x305a34[_0x42d8('0x6f')]){const _0x3e30ed=_0xa96f64['add'](_0x34bbba(this['editor'][_0x42d8('0x12b')],_0x42d8('0x76')));this[_0x42d8('0x131')][_0x42d8('0xc4')](_0x2e3511,_0x21e888)[_0x42d8('0xb4')](()=>{_0xa96f64[_0x42d8('0x97')](_0x3e30ed);});}else _0x305a34['on'](_0x42d8('0x124'),()=>{this['_updateSuggestionData'](_0x2e3511,_0x21e888);});}}[_0x42d8('0x129')](_0x54b627){if(!this[_0x42d8('0x131')]||!this[_0x42d8('0x131')]['getSuggestion'])throw new _0x2738aa('track-changes-adapter-missing-getsuggestion',this);return this[_0x42d8('0x131')]['getSuggestion'](_0x54b627);}[_0x42d8('0x13d')](_0x54eb69){const {id:_0x1b6c5e,type:_0x173d3f,subType:_0x68e0ef,authorId:_0x11ebd1}=this[_0x42d8('0x8d')](_0x54eb69),_0x2f093d=this[_0x42d8('0xfa')][_0x42d8('0x58')](_0x1b6c5e)||this[_0x42d8('0xed')](_0x173d3f,_0x68e0ef,_0x1b6c5e,_0x11ebd1,{});switch(this[_0x42d8('0xb8')](_0x2f093d,_0x173d3f,_0x68e0ef,_0x11ebd1),this[_0x42d8('0x105')]['get'](_0x2f093d)){case _0x42d8('0xb7'):this[_0x42d8('0x129')](_0x1b6c5e)[_0x42d8('0xb4')](_0x12699a=>{let _0x1976b8=Promise['resolve']();_0x12699a[_0x42d8('0x3e')]&&(_0x1976b8=this[_0x42d8('0xc5')][_0x42d8('0x40')]({'channelId':this[_0x42d8('0xe3')][_0x42d8('0x12a')][_0x42d8('0x58')](_0x42d8('0x14')),'threadId':_0x1b6c5e})),_0x1976b8[_0x42d8('0xb4')](()=>{this[_0x42d8('0xfe')](_0x12699a)['_saved']=!0x0;});}),this[_0x42d8('0x105')][_0x42d8('0x1a')](_0x2f093d,_0x42d8('0x44'));break;case _0x42d8('0x38'):this['_updateSuggestionData'](_0x1b6c5e,{'state':'open'});case _0x42d8('0xfb'):this[_0x42d8('0x105')][_0x42d8('0x1a')](_0x2f093d,_0x42d8('0x11e')),this[_0x42d8('0x94')](_0x42d8('0x138'),_0x2f093d);break;case _0x42d8('0x11e'):this[_0x42d8('0x94')]('suggestionChanged',_0x2f093d);}return _0x2f093d[_0x42d8('0x118')](_0x54eb69),_0x2f093d;}[_0x42d8('0x5b')](_0x1f6c4d){const _0x38908a=Array[_0x42d8('0xe')](_0x1f6c4d)[_0x42d8('0xc7')](_0x327049=>!_0x327049[_0x42d8('0x4c')]),_0x50dcba=this[_0x42d8('0xc9')]({'skipNotAttached':!0x0})[_0x42d8('0xc7')](_0x40d64d=>!_0x40d64d[_0x42d8('0x4c')]),_0xb78e38=_0x50dcba['filter'](_0x523838=>!_0x1f6c4d[_0x42d8('0x1f')](_0x523838)),_0x13d702=new Map(_0x50dcba[_0x42d8('0x111')](_0xc8b965=>[_0xc8b965,this[_0x42d8('0x69')][_0x42d8('0x86')](_0xc8b965[_0x42d8('0xbd')],_0xc8b965[_0x42d8('0x9f')],_0x42d8('0x1'))])),_0x12d7f9=new Map(_0x50dcba[_0x42d8('0x111')](_0x463837=>[_0x463837,_0x463837[_0x42d8('0x10c')]()])),_0x2119d8=new Set(),_0x4482fd=new Set();for(let _0xde3e7f=0x0;_0xde3e7f<_0x38908a[_0x42d8('0xbe')];_0xde3e7f++)_0x1f1bb0(_0x38908a[_0xde3e7f],_0x38908a,_0xde3e7f+0x1);for(let _0xeef075=0x0;_0xeef075<_0x38908a[_0x42d8('0xbe')];_0xeef075++)_0x1f1bb0(_0x38908a[_0xeef075],_0xb78e38,0x0);for(let _0x5b6740=0x0;_0x5b6740<_0x38908a['length'];_0x5b6740++){const _0xaf5b4b=_0x38908a[_0x5b6740];!_0x4482fd['has'](_0xaf5b4b)&&_0xaf5b4b[_0x42d8('0x10e')]&&(_0xaf5b4b[_0x42d8('0x10e')][_0x42d8('0xd')]===_0xaf5b4b&&(_0xaf5b4b[_0x42d8('0x10e')][_0x42d8('0xd')]=null),_0xaf5b4b['previous']=null),!_0x2119d8[_0x42d8('0x1f')](_0xaf5b4b)&&_0xaf5b4b['next']&&(_0xaf5b4b[_0x42d8('0xd')][_0x42d8('0x10e')]===_0xaf5b4b&&(_0xaf5b4b[_0x42d8('0xd')][_0x42d8('0x10e')]=null),_0xaf5b4b[_0x42d8('0xd')]=null);}function _0x1f1bb0(_0x39bc4a,_0x166852,_0x5465ba){for(let _0x4b9a24=_0x5465ba;_0x4b9a24<_0x166852[_0x42d8('0xbe')];_0x4b9a24++){const _0x2dda24=_0x4cfcdb(_0x39bc4a,_0x166852[_0x4b9a24]);_0x2dda24&&(_0x2dda24[0x0]['next']=_0x2dda24[0x1],_0x2dda24[0x1]['previous']=_0x2dda24[0x0],_0x2119d8[_0x42d8('0xb5')](_0x2dda24[0x0]),_0x4482fd[_0x42d8('0xb5')](_0x2dda24[0x1]));}}function _0x4cfcdb(_0x35169a,_0x1a2472){if(_0x35169a['author']['id']!==_0x1a2472[_0x42d8('0x84')]['id'])return null;const _0x22d434=_0x13d702[_0x42d8('0x58')](_0x35169a)(_0x35169a,_0x1a2472,_0x12d7f9['get'](_0x35169a),_0x12d7f9['get'](_0x1a2472));if(!_0x22d434)return null;return _0x13d702[_0x42d8('0x58')](_0x1a2472)(_0x35169a,_0x1a2472,_0x12d7f9[_0x42d8('0x58')](_0x35169a),_0x12d7f9['get'](_0x1a2472))?_0x22d434[0x1]['commentThread']&&_0x22d434[0x1]['commentThread']['length']?null:_0x22d434:null;}}['_joinWithAdjacentSuggestions'](_0xa70699){const _0x4851d0=Array['from'](_0xa70699),_0x1addd0=this[_0x42d8('0xc9')]({'skipNotAttached':!0x0}),_0x19e387=_0x1addd0['filter'](_0xb23f76=>!_0xa70699[_0x42d8('0x1f')](_0xb23f76)),_0x5443be=new Map(_0x4851d0[_0x42d8('0x111')](_0x29de0d=>[_0x29de0d,this['_suggestionFactory'][_0x42d8('0x86')](_0x29de0d[_0x42d8('0xbd')],_0x29de0d[_0x42d8('0x9f')],'join')])),_0x1951ac=new Map(_0x1addd0[_0x42d8('0x111')](_0x5ad27a=>[_0x5ad27a,_0x5ad27a[_0x42d8('0xd4')]()]));for(let _0xe11e8=0x0;_0xe11e8<_0x4851d0[_0x42d8('0xbe')];_0xe11e8++){if(_0x16f101(this,_0x4851d0[_0xe11e8],_0x4851d0,_0xe11e8+0x1))return!0x0;}for(let _0x3e6ea4=0x0;_0x3e6ea4<_0x4851d0[_0x42d8('0xbe')];_0x3e6ea4++){if(_0x16f101(this,_0x4851d0[_0x3e6ea4],_0x19e387,0x0))return!0x0;}return!0x1;function _0x16f101(_0x45c124,_0x3aae39,_0x55d6c2,_0x271e3b){for(let _0x1361df=_0x271e3b;_0x1361df<_0x55d6c2[_0x42d8('0xbe')];_0x1361df++){const _0x2cdc98=_0x55d6c2[_0x1361df];if(_0x2cdc98['type']!==_0x3aae39[_0x42d8('0xbd')]||_0x2cdc98[_0x42d8('0x84')]['id']!==_0x3aae39[_0x42d8('0x84')]['id']||_0x2cdc98[_0x42d8('0x9f')]!==_0x3aae39[_0x42d8('0x9f')])continue;if(!Ut(_0x3aae39,_0x2cdc98))continue;const _0xf90dec=_0x5443be[_0x42d8('0x58')](_0x3aae39),_0x5b5625=_0x1951ac[_0x42d8('0x58')](_0x3aae39),_0x760c3f=_0x1951ac['get'](_0x2cdc98),_0x321920=_0x3aae39['commentThread']&&_0x3aae39['commentThread'][_0x42d8('0xbe')],_0x1a9ddf=_0x2cdc98['commentThread']&&_0x2cdc98['commentThread'][_0x42d8('0xbe')];if(!_0x321920&&_0xf90dec(_0x760c3f,_0x5b5625))return _0x45c124['_joinSuggestions'](_0x2cdc98,_0x3aae39),_0x1951ac[_0x42d8('0x59')](_0x3aae39),!0x0;if(!_0x1a9ddf&&_0xf90dec(_0x5b5625,_0x760c3f))return _0x45c124[_0x42d8('0x8c')](_0x3aae39,_0x2cdc98),_0x1951ac[_0x42d8('0x59')](_0x2cdc98),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1673cc,_0x3c05ee){if(_0x1673cc[_0x42d8('0x4c')])for(const _0x41a181 of _0x3c05ee[_0x42d8('0xd4')]())_0x1673cc['addRange'](_0x41a181);else{const _0x49fa45=_0x3c05ee[_0x42d8('0x10c')]()[_0x42d8('0x24')];this['_setSuggestionRange'](_0x1673cc,this['_model'][_0x42d8('0x108')](_0x1673cc[_0x42d8('0x10c')]()[_0x42d8('0x9e')],_0x49fa45));}_0x3c05ee[_0x42d8('0xc2')]();}}class Bt{constructor(_0x39790b){this[_0x42d8('0x133')]=_0x39790b,this[_0x42d8('0xc8')]=_0x39790b[_0x42d8('0x13f')],this['_customCallbacks']=new Map(),this[_0x42d8('0x81')]=new Map(),this[_0x42d8('0xfd')]();}['buildSuggestion'](_0x54fb39,_0x28c6e0,_0x306d6b,_0x50fe2b,_0x2a2d73,_0x305bb4){return new _0x20918a(this[_0x42d8('0xc8')],{'type':_0x54fb39,'subType':_0x28c6e0,'id':_0x306d6b,'author':_0x50fe2b,'creator':_0x50fe2b,'attributes':_0x2a2d73,'onAttributesChange':_0x305bb4,'onAccept':(..._0xf8c8d0)=>this['getSuggestionCallback'](_0x54fb39,_0x28c6e0,_0x42d8('0x9'))(..._0xf8c8d0),'onDiscard':(..._0x1a1718)=>this[_0x42d8('0x86')](_0x54fb39,_0x28c6e0,_0x42d8('0xff'))(..._0x1a1718)});}['registerCustomCallback'](_0x17a770,_0x14aa71,_0x1d863c,_0x16c677){const _0x191ddc=_0x17a770+':'+_0x14aa71+':'+_0x1d863c;this[_0x42d8('0x107')][_0x42d8('0x1a')](_0x191ddc,_0x16c677);}['getSuggestionCallback'](_0x164c38,_0x4e346a,_0x4b41f2){const _0xf3fa80=_0x164c38+':'+_0x4e346a+':'+_0x4b41f2;return this['_customCallbacks'][_0x42d8('0x58')](_0xf3fa80)||this[_0x42d8('0x81')]['get'](_0x164c38+':'+_0x4b41f2);}[_0x42d8('0xfd')](){const _0x4fc3d3=()=>!0x1,_0x177059=_0x4e12ea=>{_0x4e12ea[_0x42d8('0xbf')]((_0x145c59,_0x43535e)=>_0x145c59['start'][_0x42d8('0x79')](_0x43535e[_0x42d8('0x9e')])?0x1:-0x1),this[_0x42d8('0xc8')][_0x42d8('0x104')](_0x12ef8a=>{for(const _0x266b77 of _0x4e12ea){let _0xc27c4;_0xc27c4=_0x266b77[_0x42d8('0x24')][_0x42d8('0x35')]&&_0x266b77['end'][_0x42d8('0x1b')]==_0x266b77[_0x42d8('0x9e')]['nodeAfter']?_0x12ef8a[_0x42d8('0x13b')](_0x266b77['start'][_0x42d8('0xf1')],'on'):_0x12ef8a[_0x42d8('0x13b')](_0x266b77),this['_model'][_0x42d8('0x7c')](_0xc27c4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x582a5a=(_0x2648bd,_0x73799c)=>{this[_0x42d8('0xc8')][_0x42d8('0x104')](_0x16e87c=>{const {commandName:_0x129c55,commandParams:_0x8d3aa9=[]}=_0x73799c,_0x9be02e=_0x2648bd[_0x42d8('0x111')](_0x132fea=>(Mt(_0x132fea)&&(_0x132fea=this[_0x42d8('0xc8')][_0x42d8('0x108')](_0x132fea[_0x42d8('0x24')])),_0x132fea))[_0x42d8('0xc7')](_0x5101db=>_0x42d8('0x98')!==_0x5101db[_0x42d8('0x12')]['rootName']);if(_0x9be02e[_0x42d8('0xbe')]<0x1)return;const _0x57c1b2=Array['from'](this['_model']['document'][_0x42d8('0xce')][_0x42d8('0xd4')]())['map'](_0x14e0f3=>_0x2cba86[_0x42d8('0x16')](_0x14e0f3));_0x16e87c['setSelection'](_0x9be02e);for(const _0x485e34 of this[_0x42d8('0x133')]['commands'][_0x42d8('0x71')]())_0x485e34[_0x42d8('0xa7')]();_0x8d3aa9['push']({'forceDefaultExecution':!0x0}),this[_0x42d8('0x133')][_0x42d8('0x17')](_0x129c55,..._0x8d3aa9);const _0x31a45c=_0x57c1b2['filter'](_0xde0e9d=>_0x42d8('0x98')!=_0xde0e9d['root'][_0x42d8('0x15')]);_0x31a45c['length']>0x0&&_0x16e87c[_0x42d8('0x77')](_0x31a45c);for(const _0x597174 of _0x57c1b2)_0x597174[_0x42d8('0x30')]();});},_0x8639c0=(_0x11cc9a,_0x30cf71)=>0x1==_0x11cc9a['length']&&0x1==_0x30cf71['length']&&_0x11cc9a[0x0][_0x42d8('0x24')][_0x42d8('0x8f')](_0x30cf71[0x0]['start']),_0x282ab=(_0x473b49,_0x172734,_0x21b908,_0x518f42)=>xt(_0x473b49,_0x172734,_0x21b908,_0x518f42,this['_model'])?[_0x473b49,_0x172734]:xt(_0x172734,_0x473b49,_0x518f42,_0x21b908,this[_0x42d8('0xc8')])?[_0x172734,_0x473b49]:null;this[_0x42d8('0x81')][_0x42d8('0x1a')](_0x42d8('0x3a'),_0x4fc3d3),this[_0x42d8('0x81')][_0x42d8('0x1a')](_0x42d8('0x101'),_0x177059),this['_defaultCallbacks'][_0x42d8('0x1a')](_0x42d8('0x11d'),_0x8639c0),this[_0x42d8('0x81')][_0x42d8('0x1a')](_0x42d8('0x5c'),_0x282ab),this[_0x42d8('0x81')][_0x42d8('0x1a')](_0x42d8('0x8b'),_0x177059),this['_defaultCallbacks'][_0x42d8('0x1a')](_0x42d8('0x37'),_0x4fc3d3),this[_0x42d8('0x81')][_0x42d8('0x1a')](_0x42d8('0x6e'),_0x8639c0),this[_0x42d8('0x81')][_0x42d8('0x1a')](_0x42d8('0x137'),_0x282ab),this[_0x42d8('0x81')][_0x42d8('0x1a')]('formatInline:accept',_0x582a5a),this[_0x42d8('0x81')][_0x42d8('0x1a')](_0x42d8('0x2a'),_0x4fc3d3),this['_defaultCallbacks'][_0x42d8('0x1a')](_0x42d8('0xfc'),_0x8639c0),this[_0x42d8('0x81')][_0x42d8('0x1a')](_0x42d8('0x109'),_0x4fc3d3),this['_defaultCallbacks'][_0x42d8('0x1a')](_0x42d8('0x144'),_0x582a5a),this[_0x42d8('0x81')][_0x42d8('0x1a')](_0x42d8('0x50'),_0x4fc3d3),this[_0x42d8('0x81')][_0x42d8('0x1a')](_0x42d8('0xa6'),_0x8639c0),this[_0x42d8('0x81')][_0x42d8('0x1a')](_0x42d8('0xe8'),_0x4fc3d3);}}function _t(_0xb5d6fb,_0x159be9,_0x1a3045){for(const _0x1d130b of _0x159be9[_0x42d8('0x1b')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1d130b['root']==_0x1d130b)return!0x1;if(!_0x1a3045[_0x42d8('0xe0')](_0x1d130b))return!0x1;if(_0xb5d6fb[_0x42d8('0xb2')](_0x1d130b)||_0xb5d6fb[_0x42d8('0x96')](_0x1d130b))return!0x0;}return!0x1;}function Mt(_0x3714c2){return _0x3714c2[_0x42d8('0x24')]['parent']==_0x3714c2[_0x42d8('0x9e')]['nodeAfter']&&_0x3714c2[_0x42d8('0x24')]['isAtStart'];}function $t(_0x4198d9,_0x2f2306,_0x541b72,_0x1449ff){const _0x2b4040=_0x2a54ab=>!_0x2a54ab['item']['is'](_0x42d8('0x10d'))&&!_0x1449ff[_0x42d8('0xb2')](_0x2a54ab['item']),_0x2c7d3e=_0x4198d9[_0x42d8('0x9e')][_0x42d8('0x42')](_0x2b4040),_0x3bd59a=_0x4198d9[_0x42d8('0x24')][_0x42d8('0x42')](_0x2b4040,{'direction':_0x42d8('0x117')});return(!_0x4198d9[_0x42d8('0x9e')]['isEqual'](_0x2c7d3e)||!_0x4198d9[_0x42d8('0x24')][_0x42d8('0x8f')](_0x3bd59a))&&(_0x2c7d3e['isBefore'](_0x3bd59a)?_0x541b72[_0x42d8('0x61')](_0x2f2306,{'range':_0x541b72['createRange'](_0x2c7d3e,_0x3bd59a)}):_0x541b72[_0x42d8('0x55')](_0x2f2306),!0x0);}function Nt(_0x367df0){return _0x29222a(_0x367df0);}function Rt(_0x23bcd7){const _0x2b80af=_0x23bcd7[_0x42d8('0x9e')][_0x42d8('0xf1')];return _0x2b80af&&_0x2b80af['is'](_0x42d8('0xe7'));}function jt(_0xfb2789,_0x97f7a1){const _0x1ac06f=_0x97f7a1['schema']['isObject'](_0xfb2789)||_0x97f7a1[_0x42d8('0x72')][_0x42d8('0x11c')](_0xfb2789);return _0x97f7a1[_0x42d8('0x108')](_0x97f7a1['createPositionAt'](_0xfb2789,'before'),_0x1ac06f?_0x97f7a1['createPositionAfter'](_0xfb2789):_0x97f7a1[_0x42d8('0x4e')](_0xfb2789,_0x42d8('0x24')));}function xt(_0x4485bc,_0x3b3fad,_0x29db2e,_0x2fb23a,_0x2996df){if(!Ut(_0x4485bc,_0x3b3fad))return!0x1;if(_0x29db2e[_0x42d8('0x24')][_0x42d8('0x8f')](_0x2fb23a['start']))return!0x0;if(_0x4485bc['type']!=_0x3b3fad[_0x42d8('0xbd')])return!0x1;if(!_0x29db2e[_0x42d8('0x24')][_0x42d8('0x87')](_0x2fb23a[_0x42d8('0x9e')]))return!0x1;const _0x182b6a=_0x2996df['createRange'](_0x29db2e['end'],_0x2fb23a[_0x42d8('0x9e')])[_0x42d8('0x83')]();for(const _0x4a1cd3 of _0x182b6a)if(['elementStart',_0x42d8('0xcc')]['includes'](_0x4a1cd3[_0x42d8('0xbd')])&&_0x2996df['schema'][_0x42d8('0x96')](_0x4a1cd3[_0x42d8('0xa9')]))return!0x1;return!0x0;}function Ut(_0x1ca6b0,_0x227831){return!(!_0x1ca6b0[_0x42d8('0x10a')]||!_0x227831['_isDataLoaded'])&&_0x41c63c(_0x1ca6b0['attributes'],_0x227831[_0x42d8('0x11a')]);}function Ot(_0x5a4c09,_0x4936f4){const _0x16b2b5=Et(_0x5a4c09['attributes']),_0x4ec321=Et(_0x4936f4);if(!_0x5a4c09[_0x42d8('0x10a')])return!0x1;for(const _0x9c7fd0 of Object[_0x42d8('0xb9')](_0x4ec321))if(!_0x41c63c(_0x16b2b5[_0x9c7fd0],_0x4ec321[_0x9c7fd0]))return!0x1;return!0x0;}function Et(_0x108e52){const _0x27d1e6=Object['assign']({},_0x108e52);return delete _0x27d1e6[_0x42d8('0xf')],delete _0x27d1e6[_0x42d8('0x102')],_0x27d1e6;}