@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231101.0 → 0.0.0-nightly-20231103.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-20231101.0",
3
+ "version": "0.0.0-nightly-20231103.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-20231101.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20231101.0",
42
+ "ckeditor5": "0.0.0-nightly-20231103.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20231103.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 _0xd641=['enableReadOnlyMode','value','markBlockFormat','backward','acceptAllSuggestions','discardSelectedSuggestions','_suggestionFactory','_refreshSuggestionsChain','insertContent','never','createPositionAt','map','oldRange','discard','formatBlock:chain','acceptSuggestion','documentSelection','containsRange','_getExternalAuthor','_descriptionFactory','plugins','isCollapsed','_adapter','targetPosition','author','group','containsItem','createRangeIn','fromCharCode','markerNameToElements','position','markers','formatInline:','isTouching','size','_createSuggestion','showSuggestionHighlights','_updateSuggestionData','isEqual','elementEnd','track-changes-suggestion-not-found','every','_suggestions','conversion','nodeAfter','formatGroupId','change:data','rethrowUnexpectedError','markMultiRangeDeletion','containsRangeInObject','upcast','addComment','clear','reconvertMarker','stop','track-changes-user-not-found','getAttribute','splice','_model','root','head','resolve','skipNestingCheck','isDocumentOperation','addHighlight','isBefore','remove','commands','previous','isOwn','trackChanges.mergeNestedSuggestions','data','markInsertion','addMarker','deleteContent','_getAuthorFromId','containerElement','init','ck-suggestion-marker','listenTo','next','getChanges','formatBlock:accept','_suggestionState','filter','low','_findSuggestions','setSelection','set','sort','createPositionAfter','removed','@external','hasSuggestion','PendingActions','addMarkerName','addSuggestionData','buildSuggestion','isAfter','createSelection','trackChanges','length','selection','for','always','getRange','ck-suggestion-marker--active','adapter','attributes','model','config','add','push','mapper','delete','getFirstMarker','deletion:join','before','editor','track-changes-adapter-missing-getsuggestion','writer','moveTargetPosition','dataDowncast','insertion:join','track-changes-suggestion-data-mismatch','collaboration.channelId','range','rootName','_commentsRepository','registerCustomCallback','_registerDefaultCallbacks','_handleNewSuggestionMarker','subType','getUser','requires','_addThreadToSuggestion','define','_onDiscard','editingDowncast','then','rejected','fire','formatBlock:discard','change','insertion:','insertion:discard','_editor','activeMarkers','$marker','addCommentThread','addMarker:suggestion','trackChangesCommand','markDeletion','discardAllSuggestions','formatBlock:','isIntersectingWithRange','discardSuggestion','suggestion-type','_isForcedDefaultExecutionBlock','isAtEnd','creator','values','_setSuggestionData','fetchCommentThread','lowest','_cutOutSuggestionMarker','PENDING_ACTION_SUGGESTION','isInsideObject','_checkSuggestionCorrectness','isMultiRange','insertion','_addSuggestionMarker','_joinWithAdjacentSuggestions','isBlock','containsPosition','from','isObject','getSuggestionCallback','getItems','removeMarkers','pluginName','markInlineFormat','_joinSuggestions','_mergeNestedSuggestions','enableCommand','removeComment','updateSuggestion','_isDataLoaded','isRemovable','split','insert','originalSuggestionId','assign','suggestion:','addSuggestion','getAllAdjacentSuggestions','createRange','insertion:accept','dataToMarker','deletion','markerToData','notReady','TrackChangesEditing','setTo','_enabledCommands','_rangeIsInLocalUserInsertion','multi','isInContent','getShiftedBy','_setSuggestionRange','deletion:accept','marker-count','removeClass','toJSON','chain','ready','suggestion','suggestionLoaded','addMarker:suggestion:formatBlock','name','isLimit','$graveyard','getCustomProperty','formatBlock','getFirstRange','_trackFormatChanges','default','getSuggestion','applyOperation','forceDefaultExecution','Users','createdAt','document','newRange','_breakSuggestionMarker','options','removeAttribute','commentThread','deletion:chain','track-changes-adapter-already-set','isArray','suggestionUnloaded','removeMarker:suggestion:formatBlock','_getSuggestionData','commandName','detach','open','_defaultCallbacks','getNearestSelectionRange','ck-suggestion-marker-formatBlock','consume','_splitMarkerName','getRanges','schema','end','addRange','markerName','getWalker','addClass','differ','markMultiRangeBlockFormat','registerPostFixer','getMultiRangeId','get','execute','consumable','type','getIntersection','unbindElementFromMarkerName','after','external:','deletion:discard','return','accept','$textProxy','howMany','authoredAt','insertion:chain','high','deletion:','removeMarker','hasCommentThread','normal','CommentsRepository','catch','isNextTo','substr','unbind','getLastMatchingPosition','updateMarker','_removeSuggestion','formatInline:discard','has','forward','start','markerReady','getSuggestions','markerToHighlight','acceptSelectedSuggestions','multipleBlocks','isUndo','getDifference','setAttribute','_saved','change:activeMarkers','item','formatInline','parent','dataReady','authorName','toViewElement','_customCallbacks','hasComments','nodeBefore','some','suggestionChanged','join','element','trackChanges.trackFormatChanges','locale'];(function(_0x350de5,_0xd641a4){const _0x114e44=function(_0x2ba1c7){while(--_0x2ba1c7){_0x350de5['push'](_0x350de5['shift']());}};_0x114e44(++_0xd641a4);}(_0xd641,0x143));const _0x114e=function(_0x350de5,_0xd641a4){_0x350de5=_0x350de5-0x0;let _0x114e44=_0xd641[_0x350de5];return _0x114e44;};import{Plugin as _0x4d72b7,PendingActions as _0x3b6a4d}from'ckeditor5/src/core';import{LiveRange as _0x530730}from'ckeditor5/src/engine';import{CKEditorError as _0x15851b,uid as _0x5a1519,priorities as _0x59a07f,logWarning as _0xf83ce1}from'ckeditor5/src/utils';import{toWidget as _0x5a8a51}from'ckeditor5/src/widget';import{Users as _0x12f1de,hashObject as _0x58e119}from'ckeditor5-collaboration/src/collaboration-core';import _0x5e088a from'./commands/trackchangescommand';import _0x315f95 from'./commands/acceptsuggestioncommand';import _0x12b1e3 from'./commands/discardsuggestioncommand';import _0x388314 from'./commands/executeonallsuggestionscommand';import _0x404060 from'./commands/executeonselectedsuggestionscommand';import _0x35ac80 from'./suggestion';import _0x5e3f03 from'./suggestiondescriptionfactory';import _0x3d9b54 from'./integrations/aiassistant';import _0x20efad from'./integrations/alignment';import _0x29fe3b from'./integrations/basicstyles';import _0x190fc6 from'./integrations/blockquote';import _0x161000 from'./integrations/ckbox';import _0x1b0eec from'./integrations/codeblock';import _0x4af025 from'./integrations/comments';import _0x25798e from'./integrations/deletecommand';import _0x4b80f0 from'./integrations/documentlist';import _0x16bbbb from'./integrations/entercommand';import _0x2d08b4 from'./integrations/findandreplace';import _0x4ddd89 from'./integrations/font';import _0x58d298 from'./integrations/formatpainter';import _0x3fade1 from'./integrations/heading';import _0x1bd02a from'./integrations/highlight';import _0x589d48 from'./integrations/horizontalline';import _0x2ab2d4 from'./integrations/htmlembed';import _0x2119d3 from'./integrations/image';import _0xc227d5 from'./integrations/imagereplace';import _0x262473 from'./integrations/importword';import _0x1bb4f4 from'./integrations/indent';import _0x4d50b6 from'./integrations/inputcommand';import _0x4054ee from'./integrations/link';import _0x5c7a55 from'./integrations/list';import _0x26d1fd from'./integrations/listproperties';import _0x42fc57 from'./integrations/mediaembed';import _0x3c0ebe from'./integrations/mention';import _0x23c227 from'./integrations/pagebreak';import _0x406a5d from'./integrations/paragraph';import _0x42ef49 from'./integrations/removeformat';import _0x2c7bc7 from'./integrations/restrictededitingmode';import _0x56dd53 from'./integrations/shiftentercommand';import _0x478c8d from'./integrations/standardeditingmode';import _0x307226 from'./integrations/style';import _0x2608d0 from'./integrations/table';import _0x1b6375 from'./integrations/tablemergesplit';import _0x5402f6 from'./integrations/tableheadings';import _0x414c72 from'./integrations/tableclipboard';import _0x2ec647 from'./integrations/tablecolumnresize';import _0xe2c354 from'./integrations/template';import _0x6a3eb2 from'./integrations/tableofcontents';import _0x40e854 from'./integrations/title';import _0x3ae35c from'./integrations/undo';import{getTranslation as _0x2741c6}from'./utils/common-translations';import _0x455c5c from'./integrations/tablecaption';import _0x56e6f8 from'./integrations/documentlistproperties';import _0x2408a8 from'./integrations/tableproperties';import{isEqual as _0x1cfd91}from'lodash-es';export default class p extends _0x4d72b7{static get[_0x114e('0x83')](){return['CommentsRepository',_0x12f1de,_0x3b6a4d,_0x3d9b54,_0x20efad,_0x29fe3b,_0x190fc6,_0x161000,_0x1b0eec,_0x4af025,_0x25798e,_0x4b80f0,_0x56e6f8,_0x16bbbb,_0x2d08b4,_0x4ddd89,_0x58d298,_0x3fade1,_0x1bd02a,_0x589d48,_0x2ab2d4,_0x2119d3,_0xc227d5,_0x262473,_0x1bb4f4,_0x4d50b6,_0x4054ee,_0x5c7a55,_0x26d1fd,_0x42fc57,_0x3c0ebe,_0x23c227,_0x406a5d,_0x42ef49,_0x2c7bc7,_0x56dd53,_0x478c8d,_0x307226,_0x2608d0,_0x1b6375,_0x5402f6,_0x455c5c,_0x414c72,_0x2ec647,_0x6a3eb2,_0x2408a8,_0xe2c354,_0x40e854,_0x3ae35c];}static get[_0x114e('0xb1')](){return _0x114e('0xc7');}constructor(_0x25d007){function _0x1d5bf9(_0x1feda9){return _0x1feda9[_0x114e('0x8')](_0x49572f=>String[_0x114e('0x19')](_0x49572f))['join']('');}super(_0x25d007),this[_0x114e('0x55')](_0x114e('0x90'),[]),this['on'](_0x114e('0x12d'),(_0x1ce119,_0x30eb24,_0x230e8e,_0x204536)=>{this[_0x114e('0x37')][_0x114e('0x8c')](()=>{for(const _0x3b6889 of[..._0x204536,..._0x230e8e])this['_model'][_0x114e('0x1c')][_0x114e('0x121')](_0x3b6889)&&_0x25d007['editing'][_0x114e('0x32')](_0x3b6889);});}),this[_0x114e('0x10')]=new _0x5e3f03(this[_0x114e('0x73')][_0x114e('0x6a')][_0x114e('0xfa')],this[_0x114e('0x73')][_0x114e('0x13c')]),this['_adapter']=null,this[_0x114e('0x3')]=new Bt(this[_0x114e('0x73')]),this['_suggestions']=new Map(),this[_0x114e('0x7d')]=_0x25d007['plugins'][_0x114e('0x104')](_0x114e('0x118')),this['_enabledCommands']=new Set(),this[_0x114e('0x37')]=this[_0x114e('0x73')]['model'],this[_0x114e('0x50')]=new WeakMap(),this[_0x114e('0x9b')]=!0x1,_0x25d007[_0x114e('0x6b')][_0x114e('0x85')](_0x114e('0x13b'),_0x114e('0xdf')),this[_0x114e('0xde')]=_0x25d007['config'][_0x114e('0x104')]('trackChanges.trackFormatChanges'),_0x25d007[_0x114e('0x6b')][_0x114e('0x85')](_0x114e('0x43'),!0x0),this['_mergeNestedSuggestions']=_0x25d007['config'][_0x114e('0x104')]('trackChanges.mergeNestedSuggestions'),this[_0x114e('0x94')]=new _0x5e088a(_0x25d007,this[_0x114e('0xc9')]),this[_0x1d5bf9([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1d5bf9([0x34,0x30,0x34,0x36,0x32,0x32,0x30,0x32]);}[_0x114e('0x4a')](){const _0x2d4a5a=this[_0x114e('0x73')];_0x2d4a5a[_0x114e('0x28')][_0x114e('0x64')](_0x114e('0x87'))[_0x114e('0x126')]({'model':_0x114e('0xd5'),'view':_0x12506b=>{const {id:_0x2525e1,type:_0x52a522}=this[_0x114e('0xf8')](_0x12506b['markerName']),_0x4e4db7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x52a522];let _0x3c0bb3=0xbb8;return this[_0x114e('0x90')]['includes'](_0x12506b[_0x114e('0xfd')])&&(_0x4e4db7[_0x114e('0x6d')](_0x114e('0x67')),_0x3c0bb3=0xbc2),_0x114e('0xc4')==_0x52a522&&(_0x3c0bb3+=0x5),{'classes':_0x4e4db7,'attributes':{'data-suggestion':_0x2525e1},'priority':_0x3c0bb3};}}),_0x2d4a5a['conversion'][_0x114e('0x64')]('dataDowncast')[_0x114e('0x6c')](_0x1cefbd=>{_0x1cefbd['on'](_0x114e('0x93'),(_0x2366b4,_0x3c4a08,_0x6e948d)=>{if(!_0x6e948d['options'][_0x114e('0x21')])return;const _0x4aa73d=_0x3c4a08['item'];if(!_0x4aa73d)return;const _0x4b26fc=_0x6e948d[_0x114e('0x6e')][_0x114e('0x133')](_0x4aa73d);_0x2d4a5a['model'][_0x114e('0xfa')][_0x114e('0xad')](_0x4aa73d)&&_0x4b26fc&&!_0x4b26fc[_0x114e('0xdb')]('widget')&&_0x4b26fc['is'](_0x114e('0x49'))&&_0x5a8a51(_0x4b26fc,_0x6e948d[_0x114e('0x75')]);},{'priority':_0x114e('0x113')});}),_0x2d4a5a[_0x114e('0x28')][_0x114e('0x64')](_0x114e('0x77'))[_0x114e('0x126')]({'model':_0x114e('0xd5'),'view':(_0x2698c4,_0x532d20)=>{if(!_0x532d20[_0x114e('0xe8')][_0x114e('0x21')])return null;const {type:_0x3c756c}=this[_0x114e('0xf8')](_0x2698c4[_0x114e('0xfd')]);return{'classes':[_0x114e('0x4b'),'ck-suggestion-marker-'+_0x3c756c],'priority':0xbb8};}});const _0x13ec75=({showActiveMarkers:_0x4a68f2=!0x0}={})=>(_0x5877f2,_0x39e3c7,_0x14bb7c)=>{if(!_0x39e3c7[_0x114e('0x12e')])return;if(_0x39e3c7[_0x114e('0x12e')]['is'](_0x114e('0x63')))return void _0x14bb7c[_0x114e('0x106')][_0x114e('0xf7')](_0x39e3c7[_0x114e('0x12e')],_0x5877f2[_0x114e('0xd8')]);const _0x34ab07=_0x14bb7c[_0x114e('0x6e')][_0x114e('0x133')](_0x39e3c7[_0x114e('0x12e')]);if(!(_0x39e3c7[_0x114e('0x12e')]['is'](_0x114e('0x13a'))&&_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xfa')][_0x114e('0xaa')](_0x39e3c7[_0x114e('0x12e')])&&!_0x34ab07[_0x114e('0xdb')](_0x114e('0x3d'))))return;const {id:_0x2db841}=this[_0x114e('0xf8')](_0x39e3c7[_0x114e('0xfd')]);_0x14bb7c[_0x114e('0x75')][_0x114e('0xff')]([_0x114e('0x4b'),_0x114e('0xf6')],_0x34ab07),_0x14bb7c[_0x114e('0x75')][_0x114e('0x12b')]('data-suggestion',_0x2db841,_0x34ab07),_0x14bb7c['mapper']['bindElementToMarker'](_0x34ab07,_0x39e3c7[_0x114e('0xfd')]),_0x4a68f2&&(this[_0x114e('0x90')]['includes'](_0x39e3c7[_0x114e('0xfd')])?_0x14bb7c[_0x114e('0x75')][_0x114e('0xff')](_0x114e('0x67'),_0x34ab07):_0x14bb7c[_0x114e('0x75')][_0x114e('0xd1')](_0x114e('0x67'),_0x34ab07));for(const _0x3f6553 of _0x2d4a5a['model'][_0x114e('0x18')](_0x39e3c7[_0x114e('0x12e')])[_0x114e('0xaf')]())_0x14bb7c[_0x114e('0x106')][_0x114e('0xf7')](_0x3f6553,_0x5877f2[_0x114e('0xd8')]);_0x14bb7c['consumable']['consume'](_0x39e3c7[_0x114e('0x12e')],_0x5877f2[_0x114e('0xd8')]);};_0x2d4a5a['conversion']['for'](_0x114e('0x77'))[_0x114e('0x6c')](_0x17d1e2=>{_0x17d1e2['on'](_0x114e('0xd7'),(_0x383e7c,_0x561ff8,_0x56fc21)=>{_0x56fc21[_0x114e('0xe8')]['showSuggestionHighlights']&&_0x13ec75({'showActiveMarkers':!0x1})(_0x383e7c,_0x561ff8,_0x56fc21);},{'priority':'highest'});}),_0x2d4a5a[_0x114e('0x28')][_0x114e('0x64')]('dataDowncast')[_0x114e('0xc5')]({'model':_0x114e('0xd5'),'view':(_0x52d2a4,_0x3bfae5)=>_0x3bfae5[_0x114e('0xe8')]['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x52d2a4[_0x114e('0x11b')](0xb)}}),_0x2d4a5a[_0x114e('0x28')][_0x114e('0x64')](_0x114e('0x2f'))['elementToElement']({'view':{'name':_0x114e('0xd5'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x283404,{writer:_0x3d80a2})=>{let _0x1edb0a=_0x114e('0xbe')+_0x283404[_0x114e('0x35')](_0x114e('0x9a'))+':'+_0x283404[_0x114e('0x35')]('id');return _0x283404['getAttribute']('marker-count')&&(_0x1edb0a+=':'+_0x283404[_0x114e('0x35')](_0x114e('0xd0'))),_0x3d80a2['createElement'](_0x114e('0x91'),{'data-name':_0x1edb0a});}}),_0x2d4a5a[_0x114e('0x28')][_0x114e('0x64')](_0x114e('0x2f'))[_0x114e('0xc3')]({'view':_0x114e('0xd5')}),_0x2d4a5a[_0x114e('0x28')][_0x114e('0x64')](_0x114e('0x87'))[_0x114e('0x6c')](_0x250df4=>{_0x250df4['on']('addMarker:suggestion:formatBlock',_0x13ec75(),{'priority':'high'});}),_0x2d4a5a[_0x114e('0x28')][_0x114e('0x64')]('editingDowncast')[_0x114e('0x6c')](_0x22009b=>{_0x22009b['on'](_0x114e('0xef'),(_0x3b5c18,_0x49e5c8,_0x5f5754)=>{const _0xba5e42=_0x5f5754[_0x114e('0x6e')][_0x114e('0x1a')](_0x49e5c8[_0x114e('0xfd')]);if(_0xba5e42)for(const _0x39f86b of _0xba5e42)_0x39f86b[_0x114e('0xdb')](_0x114e('0x3d'))||(_0x5f5754[_0x114e('0x75')][_0x114e('0xd1')]([_0x114e('0x4b'),_0x114e('0xf6'),_0x114e('0x67')],_0x39f86b),_0x5f5754['writer'][_0x114e('0xe9')]('data-suggestion',_0x39f86b),_0x5f5754[_0x114e('0x6e')][_0x114e('0x109')](_0x39f86b,_0x49e5c8['markerName']));},{'priority':_0x114e('0x113')});}),_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xe5')][_0x114e('0x102')](_0x2df629=>{let _0x49fc8b=!0x1;const _0x566cd8=Array[_0x114e('0xac')](_0x2d4a5a['model'][_0x114e('0xe5')][_0x114e('0x100')]['getChangedMarkers']()),_0x36869d=new Set();for(const {name:_0x14baa9,data:_0x34fcc0}of _0x566cd8){const {group:_0x15b79f,type:_0x4c3d4e,id:_0x4b10ef}=this['_splitMarkerName'](_0x14baa9);if('suggestion'!==_0x15b79f)continue;const _0x55ff5=this[_0x114e('0x27')][_0x114e('0x104')](_0x4b10ef);if(null!=_0x34fcc0['newRange']){'formatInline'==_0x4c3d4e&&(_0x49fc8b=_0x49fc8b||$t(_0x34fcc0[_0x114e('0xe6')],_0x14baa9,_0x2df629,_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xfa')]));if(_0x34fcc0[_0x114e('0xe6')][_0x114e('0x12')]||_0x114e('0xda')==_0x34fcc0[_0x114e('0xe6')][_0x114e('0x38')]['rootName']||_0x114e('0xdc')==_0x4c3d4e&&!Rt(_0x34fcc0[_0x114e('0xe6')])||'deletion'==_0x4c3d4e&&!(!Mt(_0x40b9ba=_0x34fcc0[_0x114e('0xe6')])&&!function(_0x5f033b){return _0x5f033b['start'][_0x114e('0x130')]==_0x5f033b['end'][_0x114e('0x136')]&&_0x5f033b['start'][_0x114e('0x9c')];}(_0x40b9ba)))_0x2df629[_0x114e('0x115')](_0x14baa9),_0x49fc8b=!0x0;else{if(!_0x55ff5||!_0x55ff5[_0x114e('0xcc')])continue;_0x36869d['add'](_0x55ff5);}}}var _0x40b9ba;return _0x36869d[_0x114e('0x1f')]>0x0&&(_0x49fc8b=!!this[_0x114e('0xa9')](_0x36869d)||_0x49fc8b),_0x49fc8b;}),_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xe5')]['registerPostFixer'](_0x2f836e=>{let _0x9b63a7=!0x1;for(const _0x413664 of _0x2d4a5a['model']['document'][_0x114e('0x100')][_0x114e('0x4e')]()){if(_0x114e('0xbb')!=_0x413664[_0x114e('0x107')])continue;const _0x3dd32d=_0x413664[_0x114e('0x1b')][_0x114e('0xcd')](_0x413664[_0x114e('0x62')]);if(_0x3dd32d[_0x114e('0x9c')])for(const _0xc4c997 of this['_suggestions'][_0x114e('0x9e')]()){if(_0xc4c997[_0x114e('0xa6')]||!_0xc4c997['isInContent'])continue;if(_0x114e('0xdc')!=_0xc4c997[_0x114e('0x107')])continue;const _0x28f996=_0xc4c997['getFirstRange']();if(_0x28f996[_0x114e('0x123')]['parent']!=_0x28f996[_0x114e('0xfb')][_0x114e('0x130')]&&_0x28f996[_0x114e('0xfb')]['isEqual'](_0x413664[_0x114e('0x1b')])){const _0xd82dbe=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xc1')](_0x28f996['start'],_0x3dd32d);_0x2f836e[_0x114e('0x11e')](_0xc4c997[_0x114e('0x70')](),{'range':_0xd82dbe}),_0x9b63a7=!0x0;}}}return _0x9b63a7;}),_0x2d4a5a[_0x114e('0x6a')][_0x114e('0x1c')]['on']('update:suggestion',(_0x168f05,_0x39a089,_0x2c12ff)=>{if(null==_0x2c12ff){const {id:_0x5221d1}=this[_0x114e('0xf8')](_0x39a089[_0x114e('0xd8')]),_0x16c02f=this[_0x114e('0x27')][_0x114e('0x104')](_0x5221d1);_0x16c02f&&_0x16c02f[_0x114e('0x5c')](_0x39a089[_0x114e('0xd8')]);}}),_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xe5')]['on'](_0x114e('0x2b'),()=>{const _0x20fcae=Array['from'](_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xe5')][_0x114e('0x100')]['getChangedMarkers']())['filter'](_0x43ff91=>_0x114e('0xd5')===this[_0x114e('0xf8')](_0x43ff91[_0x114e('0xd8')])[_0x114e('0x16')]);if(0x0===_0x20fcae[_0x114e('0x62')])return;_0x20fcae[_0x114e('0x56')]((_0x533fdd,_0x6f8745)=>{const _0x2ba99d=_0x533fdd[_0x114e('0x44')][_0x114e('0x9')],_0x4babd6=_0x6f8745[_0x114e('0x44')][_0x114e('0x9')];return null===_0x2ba99d&&null===_0x4babd6?0x0:null===_0x2ba99d&&null!==_0x4babd6?-0x1:null!==_0x2ba99d&&null===_0x4babd6?0x1:_0x2ba99d[_0x114e('0x123')][_0x114e('0x3e')](_0x4babd6[_0x114e('0x123')])?-0x1:0x1;});const _0x3256c5=new Set(),_0xf7588e=new Set();for(const {name:_0x3f13a8,data:_0x3475a7}of _0x20fcae){const {id:_0x2c98e5}=this[_0x114e('0xf8')](_0x3f13a8);if(null===_0x3475a7['oldRange']){const _0x5f0612=this[_0x114e('0x80')](_0x3f13a8);_0xf7588e[_0x114e('0x6c')](_0x5f0612);}else{const _0xbc11ef=this[_0x114e('0x27')][_0x114e('0x104')](_0x2c98e5);null!==_0x3475a7[_0x114e('0xe6')]||_0xbc11ef[_0x114e('0xcc')]?(_0x3256c5[_0x114e('0x6c')](_0xbc11ef[_0x114e('0x39')]),_0xf7588e[_0x114e('0x6c')](_0xbc11ef)):this[_0x114e('0x11f')](_0xbc11ef);}}_0xf7588e[_0x114e('0x1f')]>0x0&&this[_0x114e('0x4')](_0xf7588e);for(const _0x15d6e8 of _0x3256c5)this[_0x114e('0x8a')]('suggestionChanged',_0x15d6e8);}),_0x2d4a5a[_0x114e('0x6a')]['on'](_0x114e('0xe1'),(_0x56c62c,_0x5c2f95)=>{const _0x4610df=_0x5c2f95[0x0];if(!this[_0x114e('0x27')]['size'])return;if(!_0x4610df[_0x114e('0x3c')])return;if(_0x4610df['batch'][_0x114e('0x129')]||!_0x4610df['batch']['isLocal'])return;let _0x455ff6,_0x189107;switch(_0x4610df[_0x114e('0x107')]){case _0x114e('0xbb'):_0x455ff6=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0x7')](_0x4610df[_0x114e('0x1b')]),_0x189107=_0x455ff6[_0x114e('0xcd')](_0x4610df[_0x114e('0x110')]);break;case'split':_0x455ff6=_0x2d4a5a['model'][_0x114e('0x7')](_0x4610df['splitPosition']),_0x189107=_0x2d4a5a['model'][_0x114e('0x7')](_0x4610df[_0x114e('0x76')]);break;case'move':_0x455ff6=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0x7')](_0x4610df[_0x114e('0x14')]),_0x189107=_0x455ff6[_0x114e('0xcd')](_0x4610df['howMany']);break;default:return;}const _0x3dcd79=_0x2d4a5a[_0x114e('0x6a')]['createRange'](_0x455ff6,_0x189107);_0x2d4a5a[_0x114e('0x6a')]['change'](()=>{for(const {suggestion:_0x4b1fbf,meta:_0x4426b3}of this[_0x114e('0x53')](_0x3dcd79)){if(_0x4b1fbf[_0x114e('0xa6')])continue;if(_0x114e('0x12f')==_0x4b1fbf[_0x114e('0x107')])continue;const _0x71c361=_0x4b1fbf[_0x114e('0x44')]&&_0x4b1fbf['data']['multipleBlocks'];(_0x114e('0xdc')!=_0x4b1fbf[_0x114e('0x107')]||_0x114e('0xba')==_0x4610df['type']&&!_0x71c361)&&(_0x4426b3[_0x114e('0x2e')]||_0x114e('0xa7')==_0x4b1fbf[_0x114e('0x107')]&&_0x4426b3[_0x114e('0x42')]||_0x4b1fbf[_0x114e('0xdd')]()[_0x114e('0xe')](_0x3dcd79)&&this[_0x114e('0xe7')](_0x4b1fbf,_0x455ff6,_0x189107));}});},{'priority':_0x114e('0xa1')}),_0x2d4a5a[_0x114e('0x6a')]['on'](_0x114e('0x47'),(_0x2f09c2,_0x41d898)=>{const _0x58478b=_0x41d898[0x0],_0x3adfd0=_0x41d898[0x1];if(_0x3adfd0&&_0x3adfd0[_0x114e('0xe2')])return;if(this[_0x114e('0x9b')])return;if(!this['trackChangesCommand']['value'])return;if(_0x58478b['isCollapsed'])return;const _0x716f1=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xfa')],{start:_0x1c68f0,end:_0x2d3e11}=_0x58478b[_0x114e('0xdd')](),_0x35b0c1=_0x1c68f0[_0x114e('0x29')]&&_0x716f1[_0x114e('0xd9')](_0x1c68f0[_0x114e('0x29')])?null:_0x716f1['getNearestSelectionRange'](_0x1c68f0,_0x114e('0x122')),_0x172856=_0x2d3e11['nodeBefore']&&_0x716f1[_0x114e('0xd9')](_0x2d3e11[_0x114e('0x136')])?null:_0x716f1[_0x114e('0xf5')](_0x2d3e11,'backward'),_0x722ded=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xc1')](_0x35b0c1?_0x35b0c1[_0x114e('0x123')]:_0x1c68f0,_0x172856?_0x172856[_0x114e('0xfb')]:_0x2d3e11);_0x2d4a5a['model'][_0x114e('0x8c')](_0x137620=>{this[_0x114e('0x95')](_0x722ded);const _0x43d667=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xfa')]['getNearestSelectionRange'](_0x722ded[_0x114e('0x123')]);_0x58478b['is'](_0x114e('0xd'))?_0x137620[_0x114e('0x54')](_0x43d667):_0x58478b[_0x114e('0xc8')](_0x43d667);}),_0x2f09c2[_0x114e('0x33')]();},{'priority':_0x59a07f[_0x114e('0x117')]+0xa}),_0x2d4a5a[_0x114e('0x6a')]['on'](_0x114e('0x5'),(_0x3ce108,_0x2ddd30)=>{const _0x4fcd7d=_0x2ddd30[_0x2ddd30['length']-0x1];_0x4fcd7d&&_0x4fcd7d[_0x114e('0xe2')]||this[_0x114e('0x9b')]||this['trackChangesCommand'][_0x114e('0x13e')]&&(_0x2d4a5a[_0x114e('0x6a')][_0x114e('0x8c')](()=>{let _0x1854ac=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0x5')](_0x2ddd30[0x0],_0x2ddd30[0x1],_0x2ddd30[0x2],{'forceDefaultExecution':!0x0});if(!_0x1854ac)return;_0x3ce108[_0x114e('0x10d')]=_0x1854ac['clone']();const _0x5a981a=_0x1854ac[_0x114e('0xfb')][_0x114e('0x136')],_0x426c11=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xfa')];_0x5a981a&&_0x426c11[_0x114e('0xaa')](_0x5a981a)&&!_0x426c11[_0x114e('0xad')](_0x5a981a)&&(_0x1854ac=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xc1')](_0x1854ac[_0x114e('0x123')],_0x2d4a5a[_0x114e('0x6a')][_0x114e('0x7')](_0x5a981a,_0x114e('0xfb')))),this[_0x114e('0x45')](_0x1854ac);}),_0x3ce108[_0x114e('0x33')]());},{'priority':'high'}),this[_0x114e('0x73')][_0x114e('0x40')][_0x114e('0x6c')](_0x114e('0x61'),this['trackChangesCommand']),this[_0x114e('0xb5')](_0x114e('0x61'));const _0x25efd7=new _0x315f95(_0x2d4a5a,this[_0x114e('0x27')]);_0x2d4a5a[_0x114e('0x40')][_0x114e('0x6c')]('acceptSuggestion',_0x25efd7),this[_0x114e('0xb5')](_0x114e('0xc'));const _0x4a10a2=new _0x12b1e3(_0x2d4a5a,this[_0x114e('0x27')]);_0x2d4a5a[_0x114e('0x40')]['add'](_0x114e('0x99'),_0x4a10a2),this[_0x114e('0xb5')]('discardSuggestion'),_0x2d4a5a[_0x114e('0x40')][_0x114e('0x6c')](_0x114e('0x1'),new _0x388314(_0x2d4a5a,_0x25efd7,this[_0x114e('0x27')])),this['enableCommand'](_0x114e('0x1')),_0x2d4a5a[_0x114e('0x40')][_0x114e('0x6c')](_0x114e('0x96'),new _0x388314(_0x2d4a5a,_0x4a10a2,this[_0x114e('0x27')])),this[_0x114e('0xb5')](_0x114e('0x96')),_0x2d4a5a[_0x114e('0x40')]['add'](_0x114e('0x127'),new _0x404060(_0x2d4a5a,_0x25efd7,this[_0x114e('0x27')])),this[_0x114e('0xb5')](_0x114e('0x127')),_0x2d4a5a[_0x114e('0x40')]['add']('discardSelectedSuggestions',new _0x404060(_0x2d4a5a,_0x4a10a2,this[_0x114e('0x27')])),this['enableCommand'](_0x114e('0x2'));const _0x184a08=_0x2d4a5a['plugins'][_0x114e('0x104')](_0x114e('0x118'));this['listenTo'](_0x184a08,_0x114e('0x30'),(_0x56cd6e,{threadId:_0x4f379b})=>{const _0x473823=this[_0x114e('0x27')][_0x114e('0x104')](_0x4f379b);_0x473823&&_0x473823[_0x114e('0xea')]&&0x1===_0x473823['commentThread'][_0x114e('0x62')]&&this[_0x114e('0x22')](_0x4f379b,{'hasComments':!0x0});},{'priority':_0x114e('0x52')}),this[_0x114e('0x4c')](_0x184a08,_0x114e('0xb6'),(_0x56d7ab,{threadId:_0x238c03})=>{const _0x33a5f5=this[_0x114e('0x27')][_0x114e('0x104')](_0x238c03);_0x33a5f5&&_0x33a5f5[_0x114e('0xea')]&&!_0x33a5f5[_0x114e('0xea')][_0x114e('0x62')]&&this[_0x114e('0x22')](_0x238c03,{'hasComments':!0x1});},{'priority':_0x114e('0x52')});}set['adapter'](_0x3cfb17){if(this[_0x114e('0x13')])throw new _0x15851b(_0x114e('0xec'),this);this[_0x114e('0x13')]=_0x3cfb17;}get[_0x114e('0x68')](){return this[_0x114e('0x13')];}[_0x114e('0x125')]({skipNotAttached:_0x17ef2d=!0x1,toJSON:_0x4671b6=!0x1}={}){const _0x2e21fb=[];for(const _0x230b94 of this['_suggestions'][_0x114e('0x9e')]())_0x17ef2d&&!_0x230b94[_0x114e('0xcc')]||_0x2e21fb[_0x114e('0x6d')](_0x230b94);return _0x4671b6?_0x2e21fb[_0x114e('0x8')](_0x2cc88d=>_0x2cc88d[_0x114e('0xd2')]()):_0x2e21fb;}[_0x114e('0xe0')](_0x5a39e6){const _0x50fcb5=this[_0x114e('0x27')][_0x114e('0x104')](_0x5a39e6);if(!_0x50fcb5)throw new _0x15851b(_0x114e('0x25'),this);return _0x50fcb5;}[_0x114e('0x5a')](_0x4756b9){return this[_0x114e('0x27')][_0x114e('0x121')](_0x4756b9);}[_0x114e('0x5d')](_0x8f52f4){const {authorId:_0x1f93ab,id:_0x92d18b,attributes:_0x42d8fc}=_0x8f52f4,[_0x4f97cf,_0x5ce116]=_0x8f52f4[_0x114e('0x107')]['split'](':'),_0x280c94=this['_suggestions'][_0x114e('0x104')](_0x92d18b)||this[_0x114e('0x20')](_0x4f97cf,_0x5ce116,_0x92d18b,_0x1f93ab,_0x42d8fc);if(this['_addThreadToSuggestion'](_0x280c94),this[_0x114e('0xa5')](_0x280c94,_0x4f97cf,_0x5ce116||null,_0x1f93ab),_0x280c94['createdAt']=_0x8f52f4['createdAt'],_0x280c94['_isDataLoaded']=!0x0,_0x42d8fc&&_0x42d8fc[_0x114e('0x59')]){const _0x5e3d66=_0x42d8fc['@external'],_0x7dd0d0=this['_getExternalAuthor'](_0x5e3d66[_0x114e('0x132')]);_0x280c94[_0x114e('0x111')]=_0x5e3d66['createdAt'],_0x280c94['author']=_0x7dd0d0,_0x280c94['isExternal']=!0x0;}else _0x280c94['authoredAt']=_0x8f52f4[_0x114e('0xe4')];switch(_0x8f52f4['data']&&(_0x280c94[_0x114e('0x44')]=_0x8f52f4[_0x114e('0x44')]),_0x8f52f4['attributes']&&(_0x280c94[_0x114e('0x69')]=_0x8f52f4['attributes']),this[_0x114e('0x13')]&&this[_0x114e('0x13')][_0x114e('0xbf')]||(_0x280c94[_0x114e('0x12c')]=!0x0),this['_suggestionState'][_0x114e('0x104')](_0x280c94)){case _0x114e('0xc6'):this[_0x114e('0x50')]['set'](_0x280c94,_0x114e('0x131'));break;case _0x114e('0x124'):_0x280c94['isInContent']?(this[_0x114e('0x4')](new Set([_0x280c94])),this['_joinWithAdjacentSuggestions'](new Set([_0x280c94])),this['_suggestionState'][_0x114e('0x55')](_0x280c94,'ready'),this[_0x114e('0x8a')]('suggestionLoaded',_0x280c94)):this['_suggestionState'][_0x114e('0x55')](_0x280c94,_0x114e('0x58'));}return _0x280c94;}[_0x114e('0xc')](_0x5c2213){this[_0x114e('0xe2')](()=>{this[_0x114e('0x73')][_0x114e('0x6a')][_0x114e('0x8c')](()=>{for(const _0x568149 of _0x5c2213[_0x114e('0xc0')]())_0x568149['accept']();});});}['discardSuggestion'](_0x154762){this['forceDefaultExecution'](()=>{this['editor'][_0x114e('0x6a')][_0x114e('0x8c')](()=>{for(const _0x188ee4 of _0x154762[_0x114e('0xc0')]())_0x188ee4[_0x114e('0xa')]();});});}[_0x114e('0xb5')](_0x51f438,_0xa4152a){const _0x24cab9=this[_0x114e('0x73')]['commands']['get'](_0x51f438);if(!_0x24cab9)throw new _0x15851b('track-changes-command-not-found',this,{'commandName':_0x51f438});this[_0x114e('0xc9')][_0x114e('0x6c')](_0x24cab9),_0xa4152a&&_0x24cab9['on']('execute',(_0x59a947,_0x5a39c0)=>{this['trackChangesCommand'][_0x114e('0x13e')]&&(this[_0x114e('0x9b')]||_0x5a39c0['length']>0x0&&_0x5a39c0[_0x5a39c0[_0x114e('0x62')]-0x1]&&_0x5a39c0[_0x5a39c0[_0x114e('0x62')]-0x1]['forceDefaultExecution']||(_0x59a947['return']=_0xa4152a((..._0x7b21a2)=>_0x24cab9[_0x114e('0x105')](..._0x7b21a2,{'forceDefaultExecution':!0x0}),..._0x5a39c0),_0x59a947[_0x114e('0x33')]()));},{'priority':_0x114e('0x113')});}[_0x114e('0xe2')](_0x274b3d){let _0x2d0cdc,_0x21256f;const _0x5bd12c=this['_isForcedDefaultExecutionBlock'];this[_0x114e('0x9b')]=!0x0;try{_0x2d0cdc=_0x274b3d();}catch(_0xa2ecb8){_0x21256f=_0xa2ecb8;}return _0x5bd12c||(this[_0x114e('0x9b')]=!0x1),_0x21256f&&_0x15851b[_0x114e('0x2c')](_0x21256f,this),_0x2d0cdc;}[_0x114e('0x45')](_0x17bc92,_0x3c29c9=null,_0x151294={}){if(_0x17bc92[_0x114e('0x12')])return null;const _0x5bac35=this[_0x114e('0x73')][_0x114e('0x11')][_0x114e('0x104')](_0x114e('0xe3'))['me'];for(const {suggestion:_0x17e3c5,meta:_0x515358}of this[_0x114e('0x53')](_0x17bc92,_0x114e('0xa7')))if(_0x515358[_0x114e('0x42')]){if(!_0x515358[_0x114e('0x11a')]){if(_0x515358[_0x114e('0x2e')]){if(!this[_0x114e('0xb4')]||!Ot(_0x17e3c5,_0x151294))continue;return _0x17e3c5;}if(Ot(_0x17e3c5,_0x151294))return _0x17e3c5;this['_breakSuggestionMarker'](_0x17e3c5,_0x17bc92[_0x114e('0x123')],_0x17bc92[_0x114e('0xfb')]);break;}if(_0x3c29c9==_0x17e3c5[_0x114e('0x81')]&&Ot(_0x17e3c5,_0x151294)){const _0x3c4ca4=_0x17e3c5[_0x114e('0xdd')]();return _0x3c4ca4[_0x114e('0x123')]['isEqual'](_0x17bc92[_0x114e('0xfb')])?this[_0x114e('0xce')](_0x17e3c5,this[_0x114e('0x37')][_0x114e('0xc1')](_0x17bc92['start'],_0x3c4ca4['end'])):this['_setSuggestionRange'](_0x17e3c5,this[_0x114e('0x37')][_0x114e('0xc1')](_0x3c4ca4[_0x114e('0x123')],_0x17bc92['end'])),_0x17e3c5;}}const _0x80c137=_0x5a1519(),_0x35e5f4=_0x5bac35['id'],_0x5117b1=_0x3c29c9?_0x114e('0x8d')+_0x3c29c9:_0x114e('0xa7'),_0x38ee54=this['_setSuggestionData']({'id':_0x80c137,'type':_0x5117b1,'createdAt':new Date(),'authorId':_0x35e5f4,'attributes':_0x151294});return this[_0x114e('0xa8')](_0x5117b1,_0x80c137,_0x35e5f4,_0x17bc92),_0x38ee54;}['markMultiRangeInsertion'](_0x3eddfb,_0x1091d0=_0x114e('0xcb'),_0x546f78={}){const _0x94952b=this[_0x114e('0x73')]['plugins'][_0x114e('0x104')](_0x114e('0xe3'))['me'],_0x52b91e=this['_suggestionFactory'][_0x114e('0xae')](_0x114e('0xa7'),_0x1091d0,'join');for(const _0x377ce3 of this['getSuggestions']())if(_0x377ce3[_0x114e('0x15')]['id']==_0x94952b['id']&&'insertion'==_0x377ce3['type']&&_0x377ce3[_0x114e('0x81')]==_0x1091d0&&Ot(_0x377ce3,_0x546f78)&&(_0x52b91e(_0x377ce3[_0x114e('0xf9')](),_0x3eddfb)||_0x52b91e(_0x3eddfb,_0x377ce3[_0x114e('0xf9')]()))){for(const _0x3de896 of _0x3eddfb)_0x377ce3[_0x114e('0xfc')](_0x3de896);return _0x377ce3;}for(const {suggestion:_0x32f7a9,meta:_0x1092a4}of this[_0x114e('0x53')](_0x3eddfb,_0x114e('0xa7'))){if(!_0x1092a4[_0x114e('0x42')])continue;if(!this['_mergeNestedSuggestions']&&_0x1092a4[_0x114e('0x2e')])continue;if(!Ot(_0x32f7a9,_0x546f78))continue;let _0x5d970b=!0x0;for(const _0x244a04 of _0x32f7a9['getRanges']())for(const _0x4d7100 of _0x3eddfb)if(!_0x244a04[_0x114e('0xe')](_0x4d7100)){_0x5d970b=!0x1;break;}if(_0x5d970b)return _0x32f7a9;}const _0x4c7f7f=_0x5a1519(),_0xaf33c3=_0x94952b['id'],_0x5a018b=_0x114e('0x8d')+_0x1091d0,_0x5e5b66=this[_0x114e('0x9f')]({'id':_0x4c7f7f,'type':_0x5a018b,'createdAt':new Date(),'authorId':_0xaf33c3,'attributes':_0x546f78});for(const _0xc666aa of _0x3eddfb)this[_0x114e('0xa8')](_0x5a018b,_0x4c7f7f,_0xaf33c3,_0xc666aa,_0x35ac80[_0x114e('0x103')]());return _0x5e5b66;}[_0x114e('0xb2')](_0xc89bef,_0x15a231,_0x6dd93c=null,_0x7fd1b5={}){if(_0x6dd93c=_0x6dd93c||Nt(_0x15a231),_0xc89bef[_0x114e('0x12')])return null;if(_0x114e('0x6')===this[_0x114e('0xde')]){const _0x361f23=this['_suggestionFactory'][_0x114e('0xae')](_0x114e('0x12f'),_0x6dd93c,_0x114e('0x10e'));return this['forceDefaultExecution'](()=>_0x361f23([_0xc89bef],_0x15a231,_0x7fd1b5)),null;}const _0x57f821=this[_0x114e('0x73')][_0x114e('0x11')]['get'](_0x114e('0xe3'))['me'],_0x57e706=[];if('always'!==this[_0x114e('0xde')])for(const {suggestion:_0x37eb58,meta:_0x2b6a23}of this[_0x114e('0x53')](_0xc89bef,_0x114e('0xa7')))_0x2b6a23[_0x114e('0x42')]&&!_0x2b6a23[_0x114e('0xa4')]&&_0x57e706[_0x114e('0x6d')](..._0x37eb58[_0x114e('0xf9')]());const _0x1a9bc2=function(_0xd05237,_0x5925ef){const _0x4e3a0e=[];for(const _0x19b384 of _0x5925ef){const _0x36c3d6=_0xd05237[_0x114e('0x108')](_0x19b384);_0x36c3d6&&_0x4e3a0e['push'](_0x36c3d6);}return _0x4e3a0e;}(_0xc89bef,_0x57e706),_0x50fbc4=function(_0x203f37,_0x348b44){const _0x2a80be=[_0x203f37];for(const _0x3c1bb1 of _0x348b44){let _0x3f05c6=0x0;for(;_0x3f05c6<_0x2a80be[_0x114e('0x62')];){const _0x577552=_0x2a80be[_0x3f05c6][_0x114e('0x12a')](_0x3c1bb1);_0x2a80be[_0x114e('0x36')](_0x3f05c6,0x1,..._0x577552),_0x3f05c6+=_0x577552[_0x114e('0x62')];}}return _0x2a80be;}(_0xc89bef,_0x57e706);_0x1a9bc2[_0x114e('0x62')]&&this[_0x114e('0x37')][_0x114e('0x8c')](()=>{for(const _0x31c881 of _0x1a9bc2){const _0x47bd59=this[_0x114e('0x3')][_0x114e('0xae')](_0x114e('0x12f'),_0x6dd93c,'accept');this['forceDefaultExecution'](()=>_0x47bd59([_0x31c881],_0x15a231,_0x7fd1b5));}});for(const _0x3b3a38 of _0x50fbc4){let _0x24adcd=null,_0x48f70e=_0x3b3a38[_0x114e('0x123')],_0x520011=_0x3b3a38['end'];for(const {suggestion:_0x5a6173,meta:_0x4d49d3}of this[_0x114e('0x53')](_0x3b3a38,'formatInline')){if(!_0x4d49d3[_0x114e('0x42')])continue;if(_0x5a6173[_0x114e('0x81')]!=_0x6dd93c)continue;if(!Ot(_0x5a6173,_0x7fd1b5))continue;const _0x17f522=_0x5a6173['getFirstRange']();if(_0x17f522[_0x114e('0xe')](_0x3b3a38,!0x0))return null;_0x48f70e=_0x48f70e[_0x114e('0x3e')](_0x17f522['start'])?_0x48f70e:_0x17f522[_0x114e('0x123')],_0x520011=_0x520011[_0x114e('0x5f')](_0x17f522['end'])?_0x520011:_0x17f522['end'],_0x24adcd?_0x17f522[_0x114e('0x123')][_0x114e('0x3e')](_0x24adcd['getFirstRange']()[_0x114e('0x123')])?(_0x24adcd[_0x114e('0xb0')](),_0x24adcd=_0x5a6173):_0x5a6173[_0x114e('0xb0')]():_0x24adcd=_0x5a6173;}const _0x572cb8=this[_0x114e('0x37')][_0x114e('0xc1')](_0x48f70e,_0x520011);if(_0x24adcd)this[_0x114e('0xce')](_0x24adcd,_0x572cb8);else{const _0x3888c4=_0x5a1519(),_0x5ece09=_0x57f821['id'];this['_setSuggestionData']({'id':_0x3888c4,'type':_0x114e('0x1d')+_0x6dd93c,'data':_0x15a231,'createdAt':new Date(),'authorId':_0x5ece09,'attributes':_0x7fd1b5}),this['_addSuggestionMarker'](_0x114e('0x1d')+_0x6dd93c,_0x3888c4,_0x5ece09,_0x572cb8);}}return null;}[_0x114e('0x13f')](_0x51c7f2,_0xf65c13,_0x1cfc26=[],_0x5acc2c=null,_0x24b62f={}){_0xf65c13[_0x114e('0x2a')]||(_0xf65c13[_0x114e('0x2a')]=_0xf65c13[_0x114e('0xf1')]),_0xf65c13[_0x114e('0x128')]=_0x51c7f2['is'](_0x114e('0x7b')),_0x5acc2c=_0x5acc2c||Nt(_0xf65c13);const _0x159c25=_0x1cfc26[_0x114e('0x8')](_0x139b90=>jt(_0x139b90,this['_model'])),_0x1cd72a=_0x51c7f2['is'](_0x114e('0x7b'))?_0x51c7f2:jt(_0x51c7f2,this[_0x114e('0x37')]);if(_0x114e('0x6')===this[_0x114e('0xde')]){const _0xe43228=this['_suggestionFactory'][_0x114e('0xae')](_0x114e('0xdc'),_0x5acc2c,_0x114e('0x10e'));return this['forceDefaultExecution'](()=>_0xe43228([_0x1cd72a],_0xf65c13,_0x24b62f)),null;}_0x159c25[_0x114e('0x6d')](_0x1cd72a);let _0x1f6c13=!0x0;for(const _0x2ece7e of _0x159c25)if(!this[_0x114e('0xca')](_0x2ece7e)){_0x1f6c13=!0x1;break;}if(_0x1f6c13&&_0x114e('0x65')!==this[_0x114e('0xde')]){const _0x46a7cf=this['_suggestionFactory'][_0x114e('0xae')](_0x114e('0xdc'),_0x5acc2c,_0x114e('0x10e'));return this[_0x114e('0xe2')](()=>_0x46a7cf([_0x1cd72a],_0xf65c13,_0x24b62f)),null;}let _0x28bc63=null,_0x5ea030=_0x1cd72a['start'],_0x2bfa08=_0x1cd72a['end'];for(const {suggestion:_0x4b11d9,meta:_0x173d95}of this[_0x114e('0x53')](_0x1cd72a,'formatBlock')){if(!_0x173d95[_0x114e('0x42')])continue;if(_0x173d95[_0x114e('0x11a')]||_0x173d95[_0x114e('0x2e')]||_0x173d95[_0x114e('0xa4')])continue;if(_0x4b11d9[_0x114e('0x44')][_0x114e('0x2a')]!=_0xf65c13['formatGroupId'])continue;if(!Ot(_0x4b11d9,_0x24b62f))continue;const _0xcfd70=_0x4b11d9[_0x114e('0xdd')]();if(_0x4b11d9[_0x114e('0x81')]==_0x5acc2c){if(_0xcfd70[_0x114e('0xe')](_0x1cd72a,!0x0))return null;_0x5ea030=_0x5ea030[_0x114e('0x3e')](_0xcfd70[_0x114e('0x123')])?_0x5ea030:_0xcfd70[_0x114e('0x123')],_0x2bfa08=_0x2bfa08[_0x114e('0x5f')](_0xcfd70['end'])?_0x2bfa08:_0xcfd70['end'],_0x28bc63?_0xcfd70[_0x114e('0x123')]['isBefore'](_0x28bc63[_0x114e('0xdd')]()[_0x114e('0x123')])?(_0x28bc63[_0x114e('0xb0')](),_0x28bc63=_0x4b11d9):_0x4b11d9[_0x114e('0xb0')]():_0x28bc63=_0x4b11d9;}else{const _0x2c5242=_0x1cd72a[_0x114e('0x108')](_0xcfd70);this['_cutOutSuggestionMarker'](_0x4b11d9,_0x2c5242);}}const _0x3b398d=this[_0x114e('0x73')][_0x114e('0x11')][_0x114e('0x104')]('Users')['me'],_0x4aef03=_0x5a1519(),_0x5f08e8=_0x3b398d['id'];if(_0x28bc63)return this[_0x114e('0xce')](_0x28bc63,this[_0x114e('0x37')][_0x114e('0xc1')](_0x5ea030,_0x2bfa08)),_0x28bc63;{const _0x1fc8a6=this['_setSuggestionData']({'id':_0x4aef03,'type':_0x114e('0x97')+_0x5acc2c,'data':_0xf65c13,'createdAt':new Date(),'authorId':_0x5f08e8,'attributes':_0x24b62f});return this[_0x114e('0xa8')]('formatBlock:'+_0x5acc2c,_0x4aef03,_0x5f08e8,this[_0x114e('0x37')][_0x114e('0xc1')](_0x5ea030,_0x2bfa08)),_0x1fc8a6;}}[_0x114e('0x101')](_0x31f191,_0x494657,_0x166d14=[],_0x46216f=null,_0x143530={}){_0x494657['formatGroupId']||(_0x494657[_0x114e('0x2a')]=_0x494657['commandName']);const _0x58d325=_0x31f191[0x0];_0x494657[_0x114e('0x128')]=_0x58d325['is'](_0x114e('0x7b')),_0x46216f=_0x46216f||Nt(_0x494657);const _0x42317a=_0x166d14['map'](_0x3b9838=>jt(_0x3b9838,this[_0x114e('0x37')])),_0x3639a7=_0x58d325['is'](_0x114e('0x7b'))?_0x31f191:_0x31f191[_0x114e('0x8')](_0x405932=>jt(_0x405932,this[_0x114e('0x37')]));if(_0x114e('0x6')===this['_trackFormatChanges']){const _0x4752c1=this[_0x114e('0x3')]['getSuggestionCallback']('formatBlock',_0x46216f,_0x114e('0x10e'));return this[_0x114e('0xe2')](()=>_0x4752c1(_0x3639a7,_0x494657,_0x143530)),null;}_0x42317a[_0x114e('0x6d')](..._0x3639a7);let _0xe81a27=!0x0;for(const _0x51be55 of _0x42317a)if(!this[_0x114e('0xca')](_0x51be55)){_0xe81a27=!0x1;break;}if(_0xe81a27&&_0x114e('0x65')!==this['_trackFormatChanges']){const _0x7536d0=this[_0x114e('0x3')][_0x114e('0xae')](_0x114e('0xdc'),_0x46216f,'accept');return this[_0x114e('0xe2')](()=>_0x7536d0(_0x3639a7,_0x494657,_0x143530)),null;}const _0x2a6d74=this[_0x114e('0x73')][_0x114e('0x11')][_0x114e('0x104')](_0x114e('0xe3'))['me'];for(const _0x213acd of this[_0x114e('0x125')]()){if(_0x213acd[_0x114e('0x15')]['id']!=_0x2a6d74['id'])continue;if(_0x114e('0xdc')!=_0x213acd[_0x114e('0x107')]||_0x213acd['data']['formatGroupId']!=_0x494657[_0x114e('0x2a')])continue;if(!Ot(_0x213acd,_0x143530))continue;const _0x39e40b=_0x213acd[_0x114e('0x81')]==_0x46216f;for(let _0x15ca2b=0x0;_0x15ca2b<_0x3639a7[_0x114e('0x62')];_0x15ca2b++){const _0x3d86a=_0x3639a7[_0x15ca2b];for(const _0x4a7e89 of _0x213acd['getMarkers']()){const _0x5292a6=_0x4a7e89[_0x114e('0x66')]();if(_0x3d86a[_0x114e('0x23')](_0x5292a6)){_0x39e40b?(_0x3639a7[_0x114e('0x36')](_0x15ca2b,0x1),_0x15ca2b--):_0x213acd[_0x114e('0x115')](_0x4a7e89['name']);break;}}}}if(0x0==_0x3639a7[_0x114e('0x62')])return null;const _0x272c7f=this['_suggestionFactory'][_0x114e('0xae')](_0x114e('0xdc'),_0x46216f,_0x114e('0x139'));for(const _0x1e075e of this[_0x114e('0x125')]())if(_0x1e075e[_0x114e('0x15')]['id']==_0x2a6d74['id']&&_0x114e('0xdc')==_0x1e075e['type']&&_0x1e075e[_0x114e('0x44')][_0x114e('0x2a')]==_0x494657[_0x114e('0x2a')]&&_0x1e075e[_0x114e('0x81')]==_0x46216f&&Ot(_0x1e075e,_0x143530)&&(_0x272c7f(_0x1e075e[_0x114e('0xf9')](),_0x3639a7)||_0x272c7f(_0x3639a7,_0x1e075e[_0x114e('0xf9')]()))){for(const _0x6aadee of _0x3639a7)_0x1e075e['addRange'](_0x6aadee);return _0x1e075e;}const _0x2f2f47=_0x5a1519(),_0x4d71fc=_0x2a6d74['id'],_0xecbe98=_0x114e('0x97')+_0x46216f,_0x36811b=this['_setSuggestionData']({'id':_0x2f2f47,'type':_0xecbe98,'data':_0x494657,'createdAt':new Date(),'authorId':_0x4d71fc,'attributes':_0x143530});for(const _0x2807fc of _0x3639a7)this['_addSuggestionMarker'](_0xecbe98,_0x2f2f47,_0x4d71fc,_0x2807fc,_0x35ac80[_0x114e('0x103')]());return _0x36811b;}[_0x114e('0x95')](_0x1018cd,_0x54fba7=null,_0x2feb8b={}){if(_0x1018cd[_0x114e('0x12')])return null;const _0x4facae=this[_0x114e('0x73')][_0x114e('0x11')][_0x114e('0x104')](_0x114e('0xe3'))['me'],_0x1b3571=new _0x530730(_0x1018cd['start'],_0x1018cd['end']);for(const {suggestion:_0x493b2c,meta:_0x445ec6}of this[_0x114e('0x53')](_0x1b3571,_0x114e('0xa7')))if(_0x445ec6[_0x114e('0x42')]&&!_0x445ec6[_0x114e('0x11a')]){if(_0x493b2c[_0x114e('0xa6')]){const _0x1f1a93=_0x493b2c[_0x114e('0xf9')]()['filter'](_0x2dfc1f=>_0x114e('0xda')!=_0x2dfc1f[_0x114e('0x38')][_0x114e('0x7c')]);_0x1f1a93['every'](_0x1f5767=>_0x1b3571[_0x114e('0xe')](_0x1f5767,!0x0))&&_0x493b2c[_0x114e('0xa')]();if(_0x1f1a93[_0x114e('0x137')](_0x27baf0=>_0x27baf0[_0x114e('0xe')](_0x1b3571,!0x0))){const _0x15d93a=this[_0x114e('0x3')][_0x114e('0xae')](_0x114e('0xc4'),_0x54fba7,_0x114e('0x10e'));return this[_0x114e('0xe2')](()=>_0x15d93a([_0x1b3571],null,_0x2feb8b)),null;}}else{const _0x1c2787=_0x1b3571[_0x114e('0x108')](_0x493b2c[_0x114e('0xdd')]());null!==_0x1c2787&&_0x493b2c[_0x114e('0x86')]([_0x1c2787],null,_0x2feb8b);}}if(_0x1b3571[_0x114e('0xf2')](),_0x1b3571['isCollapsed']||_0x114e('0xda')==_0x1b3571[_0x114e('0x38')][_0x114e('0x7c')])return null;let _0x281e8f=null,_0x43edc6=_0x1b3571[_0x114e('0x123')],_0x4cf19d=_0x1b3571[_0x114e('0xfb')];const _0x19c25d=this['_findSuggestions'](_0x1b3571,'deletion');for(const {suggestion:_0xb5bddf,meta:_0x506011}of _0x19c25d){const _0x3e6f8e=this['_model'][_0x114e('0xc1')](_0x43edc6,_0x4cf19d);if(_0x506011[_0x114e('0x42')]&&(this[_0x114e('0xb4')]||!_0x506011[_0x114e('0x2e')]&&!_0x506011['isInsideObject'])){if(_0xb5bddf['isMultiRange']){if(!Ot(_0xb5bddf,_0x2feb8b))continue;let _0x1c2f2f=!0x0;for(const _0x1cb499 of _0xb5bddf[_0x114e('0xf9')]()){if(_0x1cb499[_0x114e('0xe')](_0x3e6f8e,!0x0))return _0xb5bddf;_0x3e6f8e[_0x114e('0xe')](_0x1cb499)||(_0x1c2f2f=!0x1);}_0x1c2f2f&&_0xb5bddf[_0x114e('0xa')]();}else{const _0x47b593=_0xb5bddf[_0x114e('0xdd')]();if(_0x47b593[_0x114e('0xe')](_0x3e6f8e,!0x0))return _0xb5bddf;if(!Ot(_0xb5bddf,_0x2feb8b)){_0x3e6f8e[_0x114e('0xe')](_0x47b593)?_0xb5bddf[_0x114e('0xb0')]():_0x47b593[_0x114e('0xab')](_0x43edc6)?_0x43edc6=_0x47b593[_0x114e('0xfb')]:_0x47b593[_0x114e('0xab')](_0x4cf19d)&&(_0x4cf19d=_0x47b593[_0x114e('0x123')]);continue;}_0x43edc6=_0x43edc6['isBefore'](_0x47b593[_0x114e('0x123')])?_0x43edc6:_0x47b593[_0x114e('0x123')],_0x4cf19d=_0x4cf19d[_0x114e('0x5f')](_0x47b593[_0x114e('0xfb')])?_0x4cf19d:_0x47b593[_0x114e('0xfb')],_0x2feb8b=Object[_0x114e('0xbd')]({},_0xb5bddf[_0x114e('0x69')]),_0x281e8f?_0x47b593[_0x114e('0x123')][_0x114e('0x3e')](_0x281e8f[_0x114e('0xdd')]()[_0x114e('0x123')])?(_0x281e8f[_0x114e('0xb0')](),_0x281e8f=_0xb5bddf):_0xb5bddf['removeMarkers']():_0x281e8f=_0xb5bddf;}}}if(_0x281e8f)return this['_setSuggestionRange'](_0x281e8f,this[_0x114e('0x37')][_0x114e('0xc1')](_0x43edc6,_0x4cf19d)),_0x281e8f;{const _0x26666c=_0x5a1519(),_0x2fef24=this[_0x114e('0x37')][_0x114e('0xc1')](_0x43edc6,_0x4cf19d),_0x17b8fc=_0x4facae['id'],_0x23f0a8=_0x54fba7?_0x114e('0x114')+_0x54fba7:_0x114e('0xc4'),_0x240f86=this[_0x114e('0x9f')]({'id':_0x26666c,'type':_0x23f0a8,'createdAt':new Date(),'authorId':_0x17b8fc,'attributes':_0x2feb8b});return this[_0x114e('0xa8')](_0x23f0a8,_0x26666c,_0x17b8fc,_0x2fef24),_0x240f86;}}[_0x114e('0x2d')](_0x58e0d5,_0x1484ac=_0x114e('0xcb'),_0x156a31={}){const _0x34757c=this['editor'][_0x114e('0x11')][_0x114e('0x104')](_0x114e('0xe3'))['me'],_0x23b651=_0x58e0d5['map'](_0x4b9a74=>new _0x530730(_0x4b9a74[_0x114e('0x123')],_0x4b9a74[_0x114e('0xfb')])),_0x43cabd=new Set();for(const {suggestion:_0x29c8ff,meta:_0x571707}of this[_0x114e('0x53')](_0x23b651,'insertion'))_0x571707[_0x114e('0x42')]&&!_0x571707[_0x114e('0x11a')]&&_0x43cabd[_0x114e('0x6c')](_0x29c8ff);for(const _0x210df6 of _0x43cabd)if(_0x210df6['isMultiRange']){const _0x4c1f2f=_0x210df6[_0x114e('0xf9')]();(!_0x210df6[_0x114e('0x69')]||!_0x210df6[_0x114e('0x69')][_0x114e('0x3b')])&&(_0x4c1f2f[_0x114e('0x26')](_0x5c81b1=>_0x23b651[_0x114e('0x137')](_0x4037a7=>_0x4037a7['containsRange'](_0x5c81b1,!0x0)))&&_0x210df6['discard']());if(_0x23b651['every'](_0x4f66da=>_0x4c1f2f[_0x114e('0x137')](_0x160657=>_0x160657[_0x114e('0xe')](_0x4f66da,!0x0)))){const _0x54a7db=this[_0x114e('0x3')][_0x114e('0xae')](_0x114e('0xc4'),_0x1484ac,_0x114e('0x10e'));return this[_0x114e('0xe2')](()=>_0x54a7db(_0x58e0d5,null,_0x156a31)),null;}}else{const _0x12ec4a=_0x210df6[_0x114e('0xdd')]();_0x23b651[_0x114e('0x137')](_0x3f84ef=>_0x3f84ef['containsRange'](_0x12ec4a,!0x0))&&_0x210df6[_0x114e('0xa')]();if(_0x23b651[_0x114e('0x26')](_0x290d14=>_0x12ec4a[_0x114e('0xe')](_0x290d14,!0x0))){const _0x491cc8=this['_suggestionFactory']['getSuggestionCallback'](_0x114e('0xc4'),_0x1484ac,_0x114e('0x10e'));return this['forceDefaultExecution'](()=>_0x491cc8(_0x23b651,null,_0x156a31)),null;}}const _0x53df48=this[_0x114e('0x3')][_0x114e('0xae')](_0x114e('0xc4'),_0x1484ac,_0x114e('0x139'));let _0xd7adb=null;for(const _0x489e of this[_0x114e('0x125')]())if(_0x489e[_0x114e('0x15')]['id']==_0x34757c['id']&&_0x489e[_0x114e('0xcc')]&&'deletion'==_0x489e[_0x114e('0x107')]&&_0x489e[_0x114e('0x81')]==_0x1484ac&&Ot(_0x489e,_0x156a31)&&(_0x53df48(_0x489e['getRanges'](),_0x23b651)||_0x53df48(_0x23b651,_0x489e['getRanges']()))){if(_0xd7adb){if(_0x489e[_0x114e('0xea')]&&_0x489e[_0x114e('0xea')][_0x114e('0x62')])continue;for(const _0x33fb21 of _0x489e[_0x114e('0xf9')]())_0xd7adb['isIntersectingWithRange'](_0x33fb21)||_0xd7adb['addRange'](_0x33fb21);_0x489e[_0x114e('0xb0')]();}else{_0xd7adb=_0x489e;for(const _0x32290b of _0x23b651)_0x489e[_0x114e('0x98')](_0x32290b)||_0x489e[_0x114e('0xfc')](_0x32290b);}}if(_0xd7adb)return _0xd7adb;_0x43cabd[_0x114e('0x31')]();for(const {suggestion:_0x2d3b2e,meta:_0x2c1998}of this[_0x114e('0x53')](_0x23b651,_0x114e('0xc4')))_0x2c1998['isOwn']&&(this[_0x114e('0xb4')]||!_0x2c1998[_0x114e('0x2e')]&&!_0x2c1998['isInsideObject'])&&Ot(_0x2d3b2e,_0x156a31)&&_0x43cabd[_0x114e('0x6c')](_0x2d3b2e);for(const _0x5168f5 of _0x43cabd){const _0x502258=_0x5168f5[_0x114e('0xf9')]();if(!_0x156a31||!_0x156a31[_0x114e('0x3b')]){if(_0x23b651[_0x114e('0x26')](_0x40ccb9=>_0x502258[_0x114e('0x137')](_0x52462e=>_0x52462e[_0x114e('0xe')](_0x40ccb9,!0x0))))return _0x5168f5;}(!_0x5168f5[_0x114e('0x69')]||!_0x5168f5[_0x114e('0x69')][_0x114e('0x3b')])&&(_0x502258[_0x114e('0x26')](_0x3cf7d0=>_0x23b651['some'](_0x2c4679=>_0x2c4679[_0x114e('0xe')](_0x3cf7d0,!0x0)))&&_0x5168f5[_0x114e('0xa')]());}const _0x12267d=_0x5a1519(),_0x2b887e=_0x34757c['id'],_0x364721=_0x114e('0x114')+_0x1484ac,_0x1a14e9=this['_setSuggestionData']({'id':_0x12267d,'type':_0x364721,'createdAt':new Date(),'authorId':_0x2b887e,'attributes':_0x156a31});for(const _0x201cd8 of _0x23b651)_0x201cd8[_0x114e('0xf2')](),_0x201cd8['isCollapsed']||_0x114e('0xda')==_0x201cd8[_0x114e('0x38')][_0x114e('0x7c')]||this[_0x114e('0xa8')](_0x364721,_0x12267d,_0x2b887e,_0x201cd8,_0x35ac80[_0x114e('0x103')]());return _0x1a14e9;}[_0x114e('0xce')](_0xf10de3,_0x39caed){const _0xb7c7a4=_0xf10de3[_0x114e('0x70')]();this['_model'][_0x114e('0x8c')](_0x4f3b98=>{_0x4f3b98[_0x114e('0x11e')](_0xb7c7a4,{'range':_0x39caed});});}[_0x114e('0x84')](_0x198cd9){const _0x407a95=_0x198cd9['id'],_0xc9664c=this[_0x114e('0x73')][_0x114e('0x6b')][_0x114e('0x104')](_0x114e('0x7a'));this[_0x114e('0x7d')][_0x114e('0x116')](_0x407a95)||this[_0x114e('0x7d')][_0x114e('0x92')]({'channelId':_0xc9664c,'threadId':_0x407a95,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4e9092=this[_0x114e('0x7d')]['getCommentThread'](_0x407a95);_0x4e9092[_0x114e('0x11c')](_0x114e('0xb9')),_0x4e9092[_0x114e('0xb9')]=!0x1,_0x198cd9[_0x114e('0xea')]=_0x4e9092;}['_checkSuggestionCorrectness'](_0x444e69,_0x4d70fd,_0x20c655,_0x8b7450){if(_0x444e69[_0x114e('0x107')]!=_0x4d70fd||_0x444e69[_0x114e('0x81')]!=_0x20c655||_0x444e69[_0x114e('0x9d')]['id']!=_0x8b7450)throw this['editor'][_0x114e('0x13d')](_0x114e('0x79')),new _0x15851b('track-changes-suggestion-data-mismatch',this);}[_0x114e('0xa2')](_0x85a31,_0x524de2){const _0x424844=_0x85a31[_0x114e('0xdd')]();if(_0x524de2[_0x114e('0x23')](_0x424844))_0x85a31[_0x114e('0xb0')]();else{if(_0x424844['containsRange'](_0x524de2)){const _0x5ac5f9=this['_model'][_0x114e('0x7')](_0x524de2[_0x114e('0x123')]['nodeBefore'],_0x114e('0xfb'));this['_setSuggestionRange'](_0x85a31,this[_0x114e('0x37')]['createRange'](_0x424844[_0x114e('0x123')],_0x5ac5f9));const _0x54d5a2=_0x5a1519(),_0x22d9c3=_0x85a31[_0x114e('0x9d')]['id'],_0x438278=_0x85a31[_0x114e('0x107')]+':'+_0x85a31[_0x114e('0x81')];this[_0x114e('0x9f')]({'id':_0x54d5a2,'type':_0x438278,'createdAt':new Date(),'authorId':_0x22d9c3,'data':_0x85a31[_0x114e('0x44')],'attributes':_0x85a31[_0x114e('0x69')]});const _0x124c38=this[_0x114e('0x37')]['createPositionAt'](_0x524de2['end'][_0x114e('0x130')],_0x114e('0x10a')),_0x4f8131=this[_0x114e('0x37')][_0x114e('0xc1')](_0x124c38,_0x424844[_0x114e('0xfb')]);this['_addSuggestionMarker'](_0x438278,_0x54d5a2,_0x22d9c3,_0x4f8131);}else{if(_0x424844[_0x114e('0xab')](_0x524de2[_0x114e('0x123')])){const _0x4a3c3e=this[_0x114e('0x37')]['createPositionAt'](_0x524de2[_0x114e('0x123')][_0x114e('0x136')],'end');this[_0x114e('0xce')](_0x85a31,this[_0x114e('0x37')][_0x114e('0xc1')](_0x424844[_0x114e('0x123')],_0x4a3c3e));}else{const _0x305774=this[_0x114e('0x37')][_0x114e('0x7')](_0x524de2[_0x114e('0xfb')][_0x114e('0x130')],'after');this['_setSuggestionRange'](_0x85a31,this['_model'][_0x114e('0xc1')](_0x305774,_0x424844[_0x114e('0xfb')]));}}}}['_rangeIsInLocalUserInsertion'](_0x75667a){for(const {suggestion:_0x2e67b9,meta:_0x2a253b}of this[_0x114e('0x53')](_0x75667a,_0x114e('0xa7'))){if(!_0x2a253b['isOwn'])continue;const _0x223052=_0x2e67b9['getRanges']();for(const _0x49b9bb of _0x223052)if(!_0x75667a[_0x114e('0x12a')](_0x49b9bb)['length'])return!0x0;}return!0x1;}[_0x114e('0x48')](_0x310719){const _0x4694e8=this[_0x114e('0x73')]['plugins'][_0x114e('0x104')](_0x114e('0xe3'))[_0x114e('0x82')](_0x310719);if(!_0x4694e8)throw new _0x15851b(_0x114e('0x34'),this);return _0x4694e8;}[_0x114e('0xf')](_0x53f9f7){const _0x4cd4bb=this[_0x114e('0x73')][_0x114e('0x11')][_0x114e('0x104')]('Users'),_0x2c299d=_0x58e119(_0x114e('0x10b')+_0x53f9f7),_0x4bcb8f=_0x4cd4bb[_0x114e('0x82')](_0x2c299d);return _0x4bcb8f||_0x4cd4bb['addUser']({'id':_0x2c299d,'name':_0x53f9f7});}[_0x114e('0x20')](_0x59a921,_0x3efd7f,_0x444f29,_0x4ff9bd,_0x130049){const _0xdad9a8=this['_getAuthorFromId'](_0x4ff9bd),_0x4c0648=this[_0x114e('0x3')][_0x114e('0x5e')](_0x59a921,_0x3efd7f,_0x444f29,_0xdad9a8,_0x130049,_0x310a5d=>this[_0x114e('0x22')](_0x444f29,{'attributes':_0x310a5d}));return this['listenTo'](_0x4c0648,'accept',()=>{this['_updateSuggestionData'](_0x444f29,{'state':'accepted'});},{'priority':_0x114e('0x113')}),this['listenTo'](_0x4c0648,_0x114e('0xa'),()=>{this[_0x114e('0x22')](_0x444f29,{'state':_0x114e('0x89')});},{'priority':_0x114e('0x113')}),this[_0x114e('0x27')][_0x114e('0x55')](_0x444f29,_0x4c0648),this['_suggestionState'][_0x114e('0x55')](_0x4c0648,_0x114e('0xc6')),_0x4c0648;}[_0x114e('0xf8')](_0x2c14d4){const _0x29704e=_0x2c14d4['split'](':');return{'group':_0x29704e[0x0],'type':_0x29704e[0x1],'subType':_0x29704e[_0x114e('0x62')]>=0x5?_0x29704e[0x2]:null,'id':_0x29704e[_0x114e('0x62')]<0x5?_0x29704e[0x2]:_0x29704e[0x3],'authorId':_0x29704e[_0x114e('0x62')]<0x5?_0x29704e[0x3]:_0x29704e[0x4],'markerCount':0x6==_0x29704e[_0x114e('0x62')]?_0x29704e[0x5]:null};}[_0x114e('0xe7')](_0x28f6da,_0x13c8fe,_0x1c623b){const _0x391a72=_0x28f6da[_0x114e('0xdd')](),_0x125405=_0x391a72[_0x114e('0x123')],_0x48592e=_0x391a72[_0x114e('0xfb')];this[_0x114e('0xce')](_0x28f6da,this[_0x114e('0x37')]['createRange'](_0x125405,_0x13c8fe));const _0x37ea28=_0x5a1519(),_0x4614ae=_0x28f6da['creator']['id'],_0x34955e=_0x28f6da[_0x114e('0x107')]+(_0x28f6da[_0x114e('0x81')]?':'+_0x28f6da[_0x114e('0x81')]:'');this[_0x114e('0x9f')]({'id':_0x37ea28,'type':_0x34955e,'createdAt':new Date(),'authorId':_0x4614ae,'originalSuggestionId':_0x28f6da['id'],'attributes':_0x28f6da[_0x114e('0x69')],'data':_0x28f6da[_0x114e('0x44')]}),_0x114e('0xdc')==_0x28f6da[_0x114e('0x107')]&&(_0x1c623b=this['_model']['createPositionBefore'](_0x1c623b[_0x114e('0x130')])),this['_addSuggestionMarker'](_0x34955e,_0x37ea28,_0x4614ae,this[_0x114e('0x37')][_0x114e('0xc1')](_0x1c623b,_0x48592e));}[_0x114e('0x53')](_0x26debc,_0x24e69a=null){const _0x228665=[],_0x6b821b=this[_0x114e('0x73')][_0x114e('0x11')][_0x114e('0x104')]('Users')['me'];Array[_0x114e('0xed')](_0x26debc)||(_0x26debc=[_0x26debc]);for(const _0x28d1e4 of this[_0x114e('0x125')]()){if(!_0x28d1e4[_0x114e('0xcc')])continue;if(_0x24e69a&&_0x28d1e4[_0x114e('0x107')]!=_0x24e69a)continue;let _0x57d8ca=!0x1;for(const _0x1420a1 of _0x28d1e4[_0x114e('0xf9')]()){for(const _0x35ea51 of _0x26debc){const _0x14b4d9=_0x35ea51['start']['isEqual'](_0x1420a1['end'])||_0x35ea51[_0x114e('0xfb')][_0x114e('0x23')](_0x1420a1[_0x114e('0x123')]);if(_0x14b4d9||_0x35ea51[_0x114e('0x108')](_0x1420a1)){const _0x492c7c=_0x35ea51['containsRange'](_0x1420a1)&&_t(this[_0x114e('0x37')][_0x114e('0xfa')],_0x1420a1[_0x114e('0x123')],_0x35ea51),_0x2094de=_0x1420a1[_0x114e('0xe')](_0x35ea51)&&_t(this[_0x114e('0x37')][_0x114e('0xfa')],_0x35ea51[_0x114e('0x123')],_0x1420a1);_0x228665[_0x114e('0x6d')]({'suggestion':_0x28d1e4,'meta':{'isOwn':_0x6b821b==_0x28d1e4[_0x114e('0x15')],'isNextTo':_0x14b4d9,'isInsideObject':_0x492c7c,'containsRangeInObject':_0x2094de}}),_0x57d8ca=!0x0;break;}}if(_0x57d8ca)break;}}return _0x228665;}[_0x114e('0xa8')](_0x272cc0,_0x10b4e1,_0x164087,_0x26062a,_0x3927df){this[_0x114e('0x37')][_0x114e('0x8c')](_0x5b3829=>{let _0x3d09ee=_0x114e('0xbe')+_0x272cc0+':'+_0x10b4e1+':'+_0x164087;_0x3927df&&(_0x3d09ee=_0x3d09ee+':'+_0x3927df),_0x5b3829[_0x114e('0x46')](_0x3d09ee,{'range':_0x26062a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1cde1e){const _0x1228e2=_0x1cde1e[_0x114e('0x41')],_0x45232c=_0x1cde1e[_0x114e('0x4d')];_0x1cde1e[_0x114e('0x41')]=null,null!=_0x1228e2&&(_0x1228e2['next']=null),_0x1cde1e[_0x114e('0x4d')]=null,null!=_0x45232c&&(_0x45232c[_0x114e('0x41')]=null),'ready'==this[_0x114e('0x50')][_0x114e('0x104')](_0x1cde1e)&&(this[_0x114e('0x50')]['set'](_0x1cde1e,_0x114e('0x58')),this[_0x114e('0x8a')](_0x114e('0xee'),_0x1cde1e,_0x1228e2,_0x45232c));}[_0x114e('0x9f')](_0x3a3499){const _0x2426a6=_0x3a3499['id'],_0x1d2278=this[_0x114e('0x5d')](_0x3a3499);if(this[_0x114e('0x13')]&&this['_adapter']['addSuggestion']){const _0xc2242a=this[_0x114e('0x73')][_0x114e('0x11')][_0x114e('0x104')](_0x114e('0x5b')),_0x5085ac=_0x1d2278[_0x114e('0x135')],_0x2aa9f7=_0x1d2278[_0x114e('0x81')]?_0x1d2278[_0x114e('0x107')]+':'+_0x1d2278[_0x114e('0x81')]:_0x1d2278['type'],_0x2df7a9=this[_0x114e('0x73')][_0x114e('0x13c')],_0x3c0011=_0xc2242a[_0x114e('0x6c')](_0x2741c6(_0x2df7a9,_0x114e('0xa3'))),_0x42862b={'id':_0x2426a6,'type':_0x2aa9f7,'hasComments':_0x5085ac,'data':_0x3a3499['data']||null,'originalSuggestionId':_0x3a3499[_0x114e('0xbc')]||null,'attributes':_0x1d2278[_0x114e('0x69')]};this['_adapter'][_0x114e('0xbf')](_0x42862b)[_0x114e('0x88')](_0xeca93a=>{_0x1d2278['_saved']=!0x0,_0xc2242a[_0x114e('0x3f')](_0x3c0011),_0xeca93a&&_0xeca93a[_0x114e('0xe4')]&&(this[_0x114e('0x27')]['get'](_0x2426a6)['createdAt']=_0xeca93a['createdAt']);})[_0x114e('0x119')](_0x30fa1f=>{throw _0xf83ce1('error-saving-suggestion-data-suggestion-discarded'),this[_0x114e('0x73')]['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1d2278['discard']();}),_0x1d2278['stopListening'](),this[_0x114e('0x27')]['delete'](_0x1d2278['id']),this[_0x114e('0x50')][_0x114e('0x6f')](_0x1d2278),_0x30fa1f;});}return _0x1d2278;}['_updateSuggestionData'](_0x49fd40,_0x403666){const _0x2e45bc=this[_0x114e('0x73')]['plugins'][_0x114e('0x104')](_0x114e('0x5b')),_0x1d5c46=this[_0x114e('0xe0')](_0x49fd40);if(this['_adapter']&&this[_0x114e('0x13')]['updateSuggestion']){if(_0x1d5c46[_0x114e('0x12c')]){const _0x4b107a=_0x2e45bc[_0x114e('0x6c')](_0x2741c6(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this[_0x114e('0x13')][_0x114e('0xb7')](_0x49fd40,_0x403666)[_0x114e('0x88')](()=>{_0x2e45bc[_0x114e('0x3f')](_0x4b107a);});}else _0x1d5c46['on']('change:_saved',()=>{this[_0x114e('0x22')](_0x49fd40,_0x403666);});}}[_0x114e('0xf0')](_0x254730){if(!this[_0x114e('0x13')]||!this[_0x114e('0x13')][_0x114e('0xe0')])throw new _0x15851b(_0x114e('0x74'),this);return this[_0x114e('0x13')]['getSuggestion'](_0x254730);}['_handleNewSuggestionMarker'](_0x5223bc){const {id:_0x4acd4c,type:_0x31f90b,subType:_0xc94c47,authorId:_0xb2727e}=this[_0x114e('0xf8')](_0x5223bc),_0x441469=this[_0x114e('0x27')][_0x114e('0x104')](_0x4acd4c)||this[_0x114e('0x20')](_0x31f90b,_0xc94c47,_0x4acd4c,_0xb2727e,{});switch(this['_checkSuggestionCorrectness'](_0x441469,_0x31f90b,_0xc94c47,_0xb2727e),this[_0x114e('0x50')]['get'](_0x441469)){case _0x114e('0xc6'):this[_0x114e('0xf0')](_0x4acd4c)[_0x114e('0x88')](_0x546493=>{let _0x343a92=Promise[_0x114e('0x3a')]();_0x546493[_0x114e('0x135')]&&(_0x343a92=this[_0x114e('0x7d')][_0x114e('0xa0')]({'channelId':this['editor'][_0x114e('0x6b')][_0x114e('0x104')](_0x114e('0x7a')),'threadId':_0x4acd4c})),_0x343a92['then'](()=>{this[_0x114e('0x5d')](_0x546493)[_0x114e('0x12c')]=!0x0;});}),this[_0x114e('0x50')][_0x114e('0x55')](_0x441469,'markerReady');break;case _0x114e('0x58'):this[_0x114e('0x22')](_0x4acd4c,{'state':_0x114e('0xf3')});case _0x114e('0x131'):this[_0x114e('0x50')][_0x114e('0x55')](_0x441469,_0x114e('0xd4')),this[_0x114e('0x8a')](_0x114e('0xd6'),_0x441469);break;case _0x114e('0xd4'):this['fire'](_0x114e('0x138'),_0x441469);}return _0x441469[_0x114e('0x5c')](_0x5223bc),_0x441469;}['_refreshSuggestionsChain'](_0x160c55){const _0x125711=Array[_0x114e('0xac')](_0x160c55)['filter'](_0x5f58fe=>!_0x5f58fe[_0x114e('0xa6')]),_0x2ce3dd=this[_0x114e('0x125')]({'skipNotAttached':!0x0})[_0x114e('0x51')](_0x3c08c6=>!_0x3c08c6['isMultiRange']),_0x1c7f7a=_0x2ce3dd[_0x114e('0x51')](_0x4c139=>!_0x160c55[_0x114e('0x121')](_0x4c139)),_0x108091=new Map(_0x2ce3dd['map'](_0x12a087=>[_0x12a087,this['_suggestionFactory'][_0x114e('0xae')](_0x12a087[_0x114e('0x107')],_0x12a087['subType'],_0x114e('0xd3'))])),_0x5bf09d=new Map(_0x2ce3dd[_0x114e('0x8')](_0x4791d7=>[_0x4791d7,_0x4791d7[_0x114e('0xdd')]()])),_0x1a4935=new Set(),_0xc5ab6d=new Set();for(let _0x26c90a=0x0;_0x26c90a<_0x125711[_0x114e('0x62')];_0x26c90a++)_0x182ed0(_0x125711[_0x26c90a],_0x125711,_0x26c90a+0x1);for(let _0x2d40b8=0x0;_0x2d40b8<_0x125711[_0x114e('0x62')];_0x2d40b8++)_0x182ed0(_0x125711[_0x2d40b8],_0x1c7f7a,0x0);for(let _0x1c6014=0x0;_0x1c6014<_0x125711[_0x114e('0x62')];_0x1c6014++){const _0x2cab20=_0x125711[_0x1c6014];!_0xc5ab6d[_0x114e('0x121')](_0x2cab20)&&_0x2cab20['previous']&&(_0x2cab20[_0x114e('0x41')][_0x114e('0x4d')]===_0x2cab20&&(_0x2cab20[_0x114e('0x41')][_0x114e('0x4d')]=null),_0x2cab20[_0x114e('0x41')]=null),!_0x1a4935[_0x114e('0x121')](_0x2cab20)&&_0x2cab20[_0x114e('0x4d')]&&(_0x2cab20[_0x114e('0x4d')][_0x114e('0x41')]===_0x2cab20&&(_0x2cab20[_0x114e('0x4d')]['previous']=null),_0x2cab20[_0x114e('0x4d')]=null);}function _0x182ed0(_0x58e7a8,_0x3120e4,_0x2fb086){for(let _0x5d320a=_0x2fb086;_0x5d320a<_0x3120e4[_0x114e('0x62')];_0x5d320a++){const _0x597b8d=_0x1f79dc(_0x58e7a8,_0x3120e4[_0x5d320a]);_0x597b8d&&(_0x597b8d[0x0]['next']=_0x597b8d[0x1],_0x597b8d[0x1][_0x114e('0x41')]=_0x597b8d[0x0],_0x1a4935[_0x114e('0x6c')](_0x597b8d[0x0]),_0xc5ab6d[_0x114e('0x6c')](_0x597b8d[0x1]));}}function _0x1f79dc(_0x513228,_0x363b11){if(_0x513228[_0x114e('0x15')]['id']!==_0x363b11[_0x114e('0x15')]['id'])return null;const _0x343d37=_0x108091[_0x114e('0x104')](_0x513228)(_0x513228,_0x363b11,_0x5bf09d[_0x114e('0x104')](_0x513228),_0x5bf09d['get'](_0x363b11));if(!_0x343d37)return null;return _0x108091['get'](_0x363b11)(_0x513228,_0x363b11,_0x5bf09d[_0x114e('0x104')](_0x513228),_0x5bf09d[_0x114e('0x104')](_0x363b11))?_0x343d37[0x1][_0x114e('0xea')]&&_0x343d37[0x1][_0x114e('0xea')]['length']?null:_0x343d37:null;}}['_joinWithAdjacentSuggestions'](_0x345326){const _0x3d2a7a=Array[_0x114e('0xac')](_0x345326),_0x46f9ee=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5bbd3c=_0x46f9ee[_0x114e('0x51')](_0x2a7b16=>!_0x345326[_0x114e('0x121')](_0x2a7b16)),_0x190d7d=new Map(_0x3d2a7a[_0x114e('0x8')](_0x3a4938=>[_0x3a4938,this[_0x114e('0x3')][_0x114e('0xae')](_0x3a4938[_0x114e('0x107')],_0x3a4938[_0x114e('0x81')],_0x114e('0x139'))])),_0x3cb367=new Map(_0x46f9ee[_0x114e('0x8')](_0x1627a0=>[_0x1627a0,_0x1627a0[_0x114e('0xf9')]()]));for(let _0x5412e4=0x0;_0x5412e4<_0x3d2a7a[_0x114e('0x62')];_0x5412e4++){if(_0xa38312(this,_0x3d2a7a[_0x5412e4],_0x3d2a7a,_0x5412e4+0x1))return!0x0;}for(let _0x1d8a8a=0x0;_0x1d8a8a<_0x3d2a7a[_0x114e('0x62')];_0x1d8a8a++){if(_0xa38312(this,_0x3d2a7a[_0x1d8a8a],_0x5bbd3c,0x0))return!0x0;}return!0x1;function _0xa38312(_0x1cfd3b,_0x81ab64,_0x5507a6,_0x50bfc6){for(let _0x29fe48=_0x50bfc6;_0x29fe48<_0x5507a6[_0x114e('0x62')];_0x29fe48++){const _0x59470e=_0x5507a6[_0x29fe48];if(_0x59470e['type']!==_0x81ab64['type']||_0x59470e[_0x114e('0x15')]['id']!==_0x81ab64[_0x114e('0x15')]['id']||_0x59470e[_0x114e('0x81')]!==_0x81ab64[_0x114e('0x81')])continue;if(!Ut(_0x81ab64,_0x59470e))continue;const _0x940e2=_0x190d7d[_0x114e('0x104')](_0x81ab64),_0x3eac2c=_0x3cb367[_0x114e('0x104')](_0x81ab64),_0x39a879=_0x3cb367['get'](_0x59470e),_0x40724d=_0x81ab64[_0x114e('0xea')]&&_0x81ab64[_0x114e('0xea')][_0x114e('0x62')],_0x646235=_0x59470e[_0x114e('0xea')]&&_0x59470e['commentThread']['length'];if(!_0x40724d&&_0x940e2(_0x39a879,_0x3eac2c))return _0x1cfd3b[_0x114e('0xb3')](_0x59470e,_0x81ab64),_0x3cb367['delete'](_0x81ab64),!0x0;if(!_0x646235&&_0x940e2(_0x3eac2c,_0x39a879))return _0x1cfd3b[_0x114e('0xb3')](_0x81ab64,_0x59470e),_0x3cb367[_0x114e('0x6f')](_0x59470e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5ea17b,_0x111d1){if(_0x5ea17b[_0x114e('0xa6')])for(const _0x4600c7 of _0x111d1[_0x114e('0xf9')]())_0x5ea17b['addRange'](_0x4600c7);else{const _0x43ffea=_0x111d1[_0x114e('0xdd')]()[_0x114e('0xfb')];this[_0x114e('0xce')](_0x5ea17b,this[_0x114e('0x37')][_0x114e('0xc1')](_0x5ea17b[_0x114e('0xdd')]()['start'],_0x43ffea));}_0x111d1[_0x114e('0xb0')]();}}class Bt{constructor(_0x23e41c){this[_0x114e('0x8f')]=_0x23e41c,this['_model']=_0x23e41c[_0x114e('0x6a')],this[_0x114e('0x134')]=new Map(),this[_0x114e('0xf4')]=new Map(),this[_0x114e('0x7f')]();}['buildSuggestion'](_0x5b371f,_0x542dba,_0x1d13a4,_0x307bcd,_0x1cd3f1,_0x57cb5f){return new _0x35ac80(this[_0x114e('0x37')],{'type':_0x5b371f,'subType':_0x542dba,'id':_0x1d13a4,'author':_0x307bcd,'creator':_0x307bcd,'attributes':_0x1cd3f1,'onAttributesChange':_0x57cb5f,'onAccept':(..._0x358282)=>this[_0x114e('0xae')](_0x5b371f,_0x542dba,_0x114e('0x10e'))(..._0x358282),'onDiscard':(..._0x28d214)=>this[_0x114e('0xae')](_0x5b371f,_0x542dba,_0x114e('0xa'))(..._0x28d214)});}[_0x114e('0x7e')](_0x430442,_0x2a8502,_0x487d9f,_0x2c639b){const _0x48b5cb=_0x430442+':'+_0x2a8502+':'+_0x487d9f;this[_0x114e('0x134')][_0x114e('0x55')](_0x48b5cb,_0x2c639b);}[_0x114e('0xae')](_0x7b0015,_0x4036ab,_0xd1949a){const _0x51501e=_0x7b0015+':'+_0x4036ab+':'+_0xd1949a;return this['_customCallbacks'][_0x114e('0x104')](_0x51501e)||this[_0x114e('0xf4')]['get'](_0x7b0015+':'+_0xd1949a);}[_0x114e('0x7f')](){const _0x2b37d8=()=>!0x1,_0x45e1c4=_0x6a40ba=>{_0x6a40ba[_0x114e('0x56')]((_0x5b9406,_0x3cada2)=>_0x5b9406['start']['isBefore'](_0x3cada2[_0x114e('0x123')])?0x1:-0x1),this[_0x114e('0x37')][_0x114e('0x8c')](_0x17874f=>{for(const _0x178911 of _0x6a40ba){let _0x2b70a2;_0x2b70a2=_0x178911[_0x114e('0xfb')][_0x114e('0x9c')]&&_0x178911[_0x114e('0xfb')]['parent']==_0x178911[_0x114e('0x123')][_0x114e('0x29')]?_0x17874f[_0x114e('0x60')](_0x178911[_0x114e('0x123')]['nodeAfter'],'on'):_0x17874f['createSelection'](_0x178911),this[_0x114e('0x37')]['deleteContent'](_0x2b70a2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x58a0ce=(_0x39805a,_0x302eec)=>{this[_0x114e('0x37')][_0x114e('0x8c')](_0x595658=>{const {commandName:_0x4baf6f,commandParams:_0x2caf98=[]}=_0x302eec,_0x156620=_0x39805a[_0x114e('0x8')](_0x1cae31=>(Mt(_0x1cae31)&&(_0x1cae31=this[_0x114e('0x37')][_0x114e('0xc1')](_0x1cae31['end'])),_0x1cae31))[_0x114e('0x51')](_0x268a93=>_0x114e('0xda')!==_0x268a93[_0x114e('0x38')][_0x114e('0x7c')]);if(_0x156620[_0x114e('0x62')]<0x1)return;const _0x2e216d=Array[_0x114e('0xac')](this[_0x114e('0x37')][_0x114e('0xe5')]['selection'][_0x114e('0xf9')]())['map'](_0x3f4436=>_0x530730['fromRange'](_0x3f4436));_0x595658[_0x114e('0x54')](_0x156620);for(const _0x5571e3 of this[_0x114e('0x8f')][_0x114e('0x40')][_0x114e('0x40')]())_0x5571e3['refresh']();_0x2caf98['push']({'forceDefaultExecution':!0x0}),this[_0x114e('0x8f')][_0x114e('0x105')](_0x4baf6f,..._0x2caf98);const _0x42f1ed=_0x2e216d[_0x114e('0x51')](_0x5df764=>'$graveyard'!=_0x5df764[_0x114e('0x38')]['rootName']);_0x42f1ed[_0x114e('0x62')]>0x0&&_0x595658[_0x114e('0x54')](_0x42f1ed);for(const _0x44449e of _0x2e216d)_0x44449e['detach']();});},_0x35bf10=(_0x455b21,_0x2ae547)=>0x1==_0x455b21[_0x114e('0x62')]&&0x1==_0x2ae547[_0x114e('0x62')]&&_0x455b21[0x0][_0x114e('0xfb')]['isEqual'](_0x2ae547[0x0][_0x114e('0x123')]),_0x45eb93=(_0x56cacb,_0x2a0d09,_0x590682,_0x5d1dc1)=>xt(_0x56cacb,_0x2a0d09,_0x590682,_0x5d1dc1,this[_0x114e('0x37')])?[_0x56cacb,_0x2a0d09]:xt(_0x2a0d09,_0x56cacb,_0x5d1dc1,_0x590682,this[_0x114e('0x37')])?[_0x2a0d09,_0x56cacb]:null;this['_defaultCallbacks']['set'](_0x114e('0xc2'),_0x2b37d8),this['_defaultCallbacks']['set'](_0x114e('0x8e'),_0x45e1c4),this[_0x114e('0xf4')][_0x114e('0x55')](_0x114e('0x78'),_0x35bf10),this[_0x114e('0xf4')][_0x114e('0x55')](_0x114e('0x112'),_0x45eb93),this[_0x114e('0xf4')][_0x114e('0x55')](_0x114e('0xcf'),_0x45e1c4),this[_0x114e('0xf4')][_0x114e('0x55')](_0x114e('0x10c'),_0x2b37d8),this[_0x114e('0xf4')][_0x114e('0x55')](_0x114e('0x71'),_0x35bf10),this['_defaultCallbacks'][_0x114e('0x55')](_0x114e('0xeb'),_0x45eb93),this[_0x114e('0xf4')][_0x114e('0x55')]('formatInline:accept',_0x58a0ce),this[_0x114e('0xf4')]['set'](_0x114e('0x120'),_0x2b37d8),this[_0x114e('0xf4')][_0x114e('0x55')]('formatInline:join',_0x35bf10),this[_0x114e('0xf4')]['set']('formatInline:chain',_0x2b37d8),this[_0x114e('0xf4')][_0x114e('0x55')](_0x114e('0x4f'),_0x58a0ce),this[_0x114e('0xf4')]['set'](_0x114e('0x8b'),_0x2b37d8),this[_0x114e('0xf4')][_0x114e('0x55')]('formatBlock:join',_0x35bf10),this[_0x114e('0xf4')]['set'](_0x114e('0xb'),_0x2b37d8);}}function _t(_0x29c4bf,_0x29c759,_0x2c1c1d){for(const _0x202521 of _0x29c759[_0x114e('0x130')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x202521[_0x114e('0x38')]==_0x202521)return!0x1;if(!_0x2c1c1d[_0x114e('0x17')](_0x202521))return!0x1;if(_0x29c4bf['isObject'](_0x202521)||_0x29c4bf['isLimit'](_0x202521))return!0x0;}return!0x1;}function Mt(_0x5286ad){return _0x5286ad[_0x114e('0xfb')][_0x114e('0x130')]==_0x5286ad['start']['nodeAfter']&&_0x5286ad[_0x114e('0xfb')]['isAtStart'];}function $t(_0x44168d,_0x31e457,_0x101452,_0x114ffe){const _0x4d87ba=_0x2ec96b=>!_0x2ec96b[_0x114e('0x12e')]['is'](_0x114e('0x10f'))&&!_0x114ffe['isObject'](_0x2ec96b[_0x114e('0x12e')]),_0x156b28=_0x44168d[_0x114e('0x123')][_0x114e('0x11d')](_0x4d87ba),_0x200998=_0x44168d['end'][_0x114e('0x11d')](_0x4d87ba,{'direction':_0x114e('0x0')});return(!_0x44168d['start'][_0x114e('0x23')](_0x156b28)||!_0x44168d['end'][_0x114e('0x23')](_0x200998))&&(_0x156b28[_0x114e('0x3e')](_0x200998)?_0x101452[_0x114e('0x11e')](_0x31e457,{'range':_0x101452[_0x114e('0xc1')](_0x156b28,_0x200998)}):_0x101452[_0x114e('0x115')](_0x31e457),!0x0);}function Nt(_0x38baa9){return _0x58e119(_0x38baa9);}function Rt(_0x188407){const _0x4f47cf=_0x188407['start'][_0x114e('0x29')];return _0x4f47cf&&_0x4f47cf['is'](_0x114e('0x13a'));}function jt(_0x5875fe,_0x533b06){const _0x5d5322=_0x533b06[_0x114e('0xfa')][_0x114e('0xad')](_0x5875fe)||_0x533b06[_0x114e('0xfa')]['isSelectable'](_0x5875fe);return _0x533b06['createRange'](_0x533b06[_0x114e('0x7')](_0x5875fe,_0x114e('0x72')),_0x5d5322?_0x533b06[_0x114e('0x57')](_0x5875fe):_0x533b06[_0x114e('0x7')](_0x5875fe,_0x114e('0xfb')));}function xt(_0x32fb9d,_0x73e681,_0x28de39,_0x4e8958,_0x2dc4f9){if(!Ut(_0x32fb9d,_0x73e681))return!0x1;if(_0x28de39[_0x114e('0xfb')][_0x114e('0x23')](_0x4e8958[_0x114e('0x123')]))return!0x0;if(_0x32fb9d[_0x114e('0x107')]!=_0x73e681[_0x114e('0x107')])return!0x1;if(!_0x28de39[_0x114e('0xfb')][_0x114e('0x1e')](_0x4e8958[_0x114e('0x123')]))return!0x1;const _0x59301c=_0x2dc4f9[_0x114e('0xc1')](_0x28de39[_0x114e('0xfb')],_0x4e8958[_0x114e('0x123')])[_0x114e('0xfe')]();for(const _0x275bf0 of _0x59301c)if(['elementStart',_0x114e('0x24')]['includes'](_0x275bf0[_0x114e('0x107')])&&_0x2dc4f9[_0x114e('0xfa')]['isLimit'](_0x275bf0[_0x114e('0x12e')]))return!0x1;return!0x0;}function Ut(_0x373049,_0x4fe599){return!(!_0x373049[_0x114e('0xb8')]||!_0x4fe599[_0x114e('0xb8')])&&_0x1cfd91(_0x373049[_0x114e('0x69')],_0x4fe599[_0x114e('0x69')]);}function Ot(_0x1cd0e3,_0x5bc677){const _0xfd562c=Et(_0x1cd0e3[_0x114e('0x69')]),_0x453099=Et(_0x5bc677);if(!_0x1cd0e3[_0x114e('0xb8')])return!0x1;for(const _0x32a2c4 of Object['keys'](_0x453099))if(!_0x1cfd91(_0xfd562c[_0x32a2c4],_0x453099[_0x32a2c4]))return!0x1;return!0x0;}function Et(_0x50f208){const _0x18825a=Object[_0x114e('0xbd')]({},_0x50f208);return delete _0x18825a[_0x114e('0x3b')],delete _0x18825a['tablePasteChainId'],_0x18825a;}
23
+ const _0xffcc=['containsRange','_breakSuggestionMarker','getAncestors','change:data','$textProxy','editingDowncast','formatInline:accept','nodeAfter','isIntersectingWithRange','markerToData','_getAuthorFromId','parent','insertion:chain','creator','move','skipNestingCheck','getFirstMarker','getUser','addRange','rootName','addUser','authorName','fromRange','trackChanges','adapter','update:suggestion','formatBlock:discard','every','_addThreadToSuggestion','consume','rejected','catch','track-changes-command-not-found','editing','fetchCommentThread','moveTargetPosition','createSelection','markMultiRangeBlockFormat','commands','hasCommentThread','buildSuggestion','_customCallbacks','high','start','isMultiRange','push','_checkSuggestionCorrectness','ck-suggestion-marker-','toViewElement','removeClass','marker-count','formatInline','updateMarker','_model','_joinSuggestions','_suggestions','containsRangeInObject','return','registerPostFixer','differ','plugins','getAllAdjacentSuggestions','sort','getItems','markInlineFormat','getIntersection','deletion:chain','_trackFormatChanges','formatInline:','enableCommand','isLocal','track-changes-user-not-found','filter','map','insertion:join','has','forward','batch','isAtStart','markBlockFormat','splice','_createSuggestion','suggestion-type','getAttribute','targetPosition','get','trackChangesCommand','elementStart','createElement','_suggestionState','formatInline:chain','insertion','isNextTo','join','ready','never','commentThread','documentSelection','conversion','applyOperation','authoredAt','keys','createPositionAt','change:activeMarkers','getCustomProperty','_joinWithAdjacentSuggestions','accepted','_registerDefaultCallbacks','getRange','group','CommentsRepository','updateSuggestion','_mergeNestedSuggestions','listenTo','showSuggestionHighlights','containerElement','split','getDifference','before','insertion:','_rangeIsInLocalUserInsertion','_getExternalAuthor','createPositionBefore','name','getRanges','isInsideObject','isUndo','accept','refresh','isAtEnd','addSuggestionData','deletion:join','removeMarkers','formatBlock:chain','isLimit','rethrowUnexpectedError','length','deletion','getSuggestionCallback','fromCharCode','_saved','_isDataLoaded','deleteContent','model','addMarker','writer','getNearestSelectionRange','editor','markerReady','size','containsItem','activeMarkers','substr','oldRange','hasSuggestion','discardSelectedSuggestions','$graveyard','forceDefaultExecution','value','multi','detach','from','_onDiscard','_getSuggestionData','toJSON','getShiftedBy','previous','position','removed','add','subType','markInsertion','mapper','stop','resolve','insertion:accept','createdAt','multipleBlocks','markMultiRangeDeletion','Users','addClass','includes','formatBlock:','removeMarker:suggestion:formatBlock','execute','discardAllSuggestions','formatGroupId','then','howMany','unbind','_refreshSuggestionsChain','ck-suggestion-marker-formatBlock','getCommentThread','discardSuggestion','for','type','addMarkerName','insertContent','formatBlock:join','suggestionLoaded','enqueueChange','getLastMatchingPosition','author','notReady','markers','$marker','ck-suggestion-marker','root','suggestion:','trackChanges.mergeNestedSuggestions','track-changes-suggestion-data-mismatch','discard','_isForcedDefaultExecutionBlock','options','deletion:discard','widget','unbindElementFromMarkerName','change','_findSuggestions','document','attributes','hasComments','containsPosition','formatBlock:accept','set','after','removeMarker','locale','TrackChangesEditing','enableReadOnlyMode','_updateSuggestionData','external:','selection','getWalker','formatInline:join','fire','_cutOutSuggestionMarker','newRange','acceptSelectedSuggestions','isObject','next','dataToMarker','getMultiRangeId','createRangeIn','elementToElement','stopListening','suggestionChanged','getFirstRange','removeAttribute','addComment','clone','upcast','commandName','isBefore','init','deletion:','define','getSuggestion','isInContent','getSuggestions','addMarker:suggestion:formatBlock','isBlock','suggestion','registerCustomCallback','remove','item','setSelection','trackChanges.trackFormatChanges','collaboration.channelId','isArray','markerNameToElements','some','data','_setSuggestionData','isRemovable','formatInline:discard','_commentsRepository','PENDING_ACTION_SUGGESTION','tablePasteChainId','isAfter','@external','acceptAllSuggestions','assign','config','deletion:accept','markerToHighlight','error-saving-suggestion-data-suggestion-discarded','markerName','nodeBefore','_defaultCallbacks','backward','always','delete','splitPosition','values','default','dataDowncast','_removeSuggestion','acceptSuggestion','setAttribute','addCommentThread','_suggestionFactory','isCollapsed','createRange','markDeletion','addSuggestion','open','data-suggestion','formatBlock','getMarkers','end','_editor','setTo','requires','createPositionAfter','isEqual','addHighlight','isOwn','_splitMarkerName','_adapter','dataReady','_enabledCommands','track-changes-adapter-already-set','_addSuggestionMarker','ck-suggestion-marker--active','getChangedMarkers','range','schema','_handleNewSuggestionMarker','insert','consumable','elementEnd','getChanges','_setSuggestionRange'];(function(_0x194e0b,_0xffcca9){const _0x321b28=function(_0x55609b){while(--_0x55609b){_0x194e0b['push'](_0x194e0b['shift']());}};_0x321b28(++_0xffcca9);}(_0xffcc,0xce));const _0x321b=function(_0x194e0b,_0xffcca9){_0x194e0b=_0x194e0b-0x0;let _0x321b28=_0xffcc[_0x194e0b];return _0x321b28;};import{Plugin as _0x2cd239,PendingActions as _0x2055bb}from'ckeditor5/src/core';import{LiveRange as _0x236dbf}from'ckeditor5/src/engine';import{CKEditorError as _0x5e6c46,uid as _0xb98dc5,priorities as _0xf44b92,logWarning as _0x3f53b3}from'ckeditor5/src/utils';import{toWidget as _0x543618}from'ckeditor5/src/widget';import{Users as _0x3f1302,hashObject as _0x487437}from'ckeditor5-collaboration/src/collaboration-core';import _0x42ceef from'./commands/trackchangescommand';import _0x370df1 from'./commands/acceptsuggestioncommand';import _0xa5d566 from'./commands/discardsuggestioncommand';import _0xe34cb9 from'./commands/executeonallsuggestionscommand';import _0x19ada6 from'./commands/executeonselectedsuggestionscommand';import _0x33435c from'./suggestion';import _0x185919 from'./suggestiondescriptionfactory';import _0x92d1c6 from'./integrations/aiassistant';import _0x48b6a5 from'./integrations/alignment';import _0x29a793 from'./integrations/basicstyles';import _0x4575c2 from'./integrations/blockquote';import _0x3e82eb from'./integrations/ckbox';import _0x507b88 from'./integrations/codeblock';import _0x171059 from'./integrations/comments';import _0x30f92e from'./integrations/deletecommand';import _0x590c18 from'./integrations/documentlist';import _0x3857ee from'./integrations/entercommand';import _0x46c679 from'./integrations/findandreplace';import _0x10c004 from'./integrations/font';import _0x27c2a9 from'./integrations/formatpainter';import _0x4fe678 from'./integrations/heading';import _0x55a08f from'./integrations/highlight';import _0x5b7654 from'./integrations/horizontalline';import _0x3c1dc1 from'./integrations/htmlembed';import _0x2a1b9e from'./integrations/image';import _0x5a2511 from'./integrations/imagereplace';import _0x16e924 from'./integrations/importword';import _0x793ebb from'./integrations/indent';import _0x76141c from'./integrations/inputcommand';import _0x4fb0af from'./integrations/link';import _0xb29adc from'./integrations/list';import _0x5f22dc from'./integrations/listproperties';import _0x100e77 from'./integrations/mediaembed';import _0x25e199 from'./integrations/mention';import _0x125de4 from'./integrations/pagebreak';import _0x25cb85 from'./integrations/paragraph';import _0x185f9c from'./integrations/removeformat';import _0x31f282 from'./integrations/restrictededitingmode';import _0x4f797f from'./integrations/shiftentercommand';import _0x16e9f6 from'./integrations/standardeditingmode';import _0x1e8959 from'./integrations/style';import _0xd9aee from'./integrations/table';import _0x241b11 from'./integrations/tablemergesplit';import _0x3e0ff5 from'./integrations/tableheadings';import _0x1286d7 from'./integrations/tableclipboard';import _0x339950 from'./integrations/tablecolumnresize';import _0x3cc567 from'./integrations/template';import _0x12f9e6 from'./integrations/tableofcontents';import _0xa0adc6 from'./integrations/title';import _0x5b7a43 from'./integrations/undo';import{getTranslation as _0x7e15ee}from'./utils/common-translations';import _0x7432d9 from'./integrations/tablecaption';import _0x15d513 from'./integrations/documentlistproperties';import _0xf0527e from'./integrations/tableproperties';import{isEqual as _0x49a32e}from'lodash-es';export default class p extends _0x2cd239{static get[_0x321b('0x6b')](){return[_0x321b('0xee'),_0x3f1302,_0x2055bb,_0x92d1c6,_0x48b6a5,_0x29a793,_0x4575c2,_0x3e82eb,_0x507b88,_0x171059,_0x30f92e,_0x590c18,_0x15d513,_0x3857ee,_0x46c679,_0x10c004,_0x27c2a9,_0x4fe678,_0x55a08f,_0x5b7654,_0x3c1dc1,_0x2a1b9e,_0x5a2511,_0x16e924,_0x793ebb,_0x76141c,_0x4fb0af,_0xb29adc,_0x5f22dc,_0x100e77,_0x25e199,_0x125de4,_0x25cb85,_0x185f9c,_0x31f282,_0x4f797f,_0x16e9f6,_0x1e8959,_0xd9aee,_0x241b11,_0x3e0ff5,_0x7432d9,_0x1286d7,_0x339950,_0x12f9e6,_0xf0527e,_0x3cc567,_0xa0adc6,_0x5b7a43];}static get['pluginName'](){return _0x321b('0x16');}constructor(_0x4ba8f5){function _0x3cbbfb(_0x5110be){return _0x5110be[_0x321b('0xc9')](_0x45959a=>String[_0x321b('0x10b')](_0x45959a))[_0x321b('0xdd')]('');}super(_0x4ba8f5),this[_0x321b('0x12')](_0x321b('0x117'),[]),this['on'](_0x321b('0xe7'),(_0x27d693,_0x36d1ee,_0x4b20e2,_0x136ae5)=>{this[_0x321b('0xb5')]['change'](()=>{for(const _0xb3d981 of[..._0x136ae5,..._0x4b20e2])this[_0x321b('0xb5')][_0x321b('0x14c')][_0x321b('0xcb')](_0xb3d981)&&_0x4ba8f5[_0x321b('0xa1')]['reconvertMarker'](_0xb3d981);});}),this['_descriptionFactory']=new _0x185919(this[_0x321b('0x113')][_0x321b('0x10f')]['schema'],this['editor'][_0x321b('0x15')]),this['_adapter']=null,this[_0x321b('0x5f')]=new Bt(this['editor']),this['_suggestions']=new Map(),this[_0x321b('0x46')]=_0x4ba8f5[_0x321b('0xbc')][_0x321b('0xd5')](_0x321b('0xee')),this['_enabledCommands']=new Set(),this[_0x321b('0xb5')]=this['editor']['model'],this[_0x321b('0xd9')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4ba8f5['config'][_0x321b('0x32')](_0x321b('0x3d'),_0x321b('0x59')),this[_0x321b('0xc3')]=_0x4ba8f5[_0x321b('0x4d')]['get'](_0x321b('0x3d')),_0x4ba8f5[_0x321b('0x4d')][_0x321b('0x32')]('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4ba8f5[_0x321b('0x4d')][_0x321b('0xd5')](_0x321b('0x3')),this[_0x321b('0xd6')]=new _0x42ceef(_0x4ba8f5,this[_0x321b('0x73')]),this[_0x3cbbfb([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3cbbfb([0x34,0x30,0x34,0x36,0x32,0x32,0x30,0x36]);}[_0x321b('0x30')](){const _0x12c880=this[_0x321b('0x113')];_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x85'))[_0x321b('0x4f')]({'model':_0x321b('0x38'),'view':_0xb1f4e7=>{const {id:_0x1af2a1,type:_0x842b14}=this[_0x321b('0x70')](_0xb1f4e7[_0x321b('0x51')]),_0x48a631=[_0x321b('0x0'),_0x321b('0xaf')+_0x842b14];let _0x24d429=0xbb8;return this[_0x321b('0x117')][_0x321b('0x135')](_0xb1f4e7[_0x321b('0x51')])&&(_0x48a631[_0x321b('0xad')]('ck-suggestion-marker--active'),_0x24d429=0xbc2),_0x321b('0x109')==_0x842b14&&(_0x24d429+=0x5),{'classes':_0x48a631,'attributes':{'data-suggestion':_0x1af2a1},'priority':_0x24d429};}}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x5a'))[_0x321b('0x129')](_0x54df98=>{_0x54df98['on']('addMarker:suggestion',(_0x215342,_0x3dc4d7,_0x334ca0)=>{if(!_0x334ca0[_0x321b('0x7')][_0x321b('0xf2')])return;const _0x4da399=_0x3dc4d7[_0x321b('0x3b')];if(!_0x4da399)return;const _0x10c9a7=_0x334ca0['mapper'][_0x321b('0xb0')](_0x4da399);_0x12c880['model'][_0x321b('0x79')][_0x321b('0x21')](_0x4da399)&&_0x10c9a7&&!_0x10c9a7['getCustomProperty'](_0x321b('0x9'))&&_0x10c9a7['is'](_0x321b('0xf3'))&&_0x543618(_0x10c9a7,_0x334ca0[_0x321b('0x111')]);},{'priority':_0x321b('0xaa')});}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x5a'))[_0x321b('0x4f')]({'model':_0x321b('0x38'),'view':(_0x349e84,_0x19a1a0)=>{if(!_0x19a1a0['options'][_0x321b('0xf2')])return null;const {type:_0x7dc83e}=this[_0x321b('0x70')](_0x349e84[_0x321b('0x51')]);return{'classes':[_0x321b('0x0'),_0x321b('0xaf')+_0x7dc83e],'priority':0xbb8};}});const _0x4dfd08=({showActiveMarkers:_0x4c0347=!0x0}={})=>(_0x293539,_0x41a7a0,_0x348aef)=>{if(!_0x41a7a0[_0x321b('0x3b')])return;if(_0x41a7a0['item']['is'](_0x321b('0x1a')))return void _0x348aef['consumable'][_0x321b('0x9d')](_0x41a7a0[_0x321b('0x3b')],_0x293539[_0x321b('0xfb')]);const _0x544560=_0x348aef[_0x321b('0x12c')][_0x321b('0xb0')](_0x41a7a0[_0x321b('0x3b')]);if(!(_0x41a7a0[_0x321b('0x3b')]['is']('element')&&_0x12c880['model'][_0x321b('0x79')][_0x321b('0x37')](_0x41a7a0[_0x321b('0x3b')])&&!_0x544560[_0x321b('0xe8')](_0x321b('0x6e'))))return;const {id:_0x35764d}=this['_splitMarkerName'](_0x41a7a0['markerName']);_0x348aef[_0x321b('0x111')][_0x321b('0x134')]([_0x321b('0x0'),_0x321b('0x13f')],_0x544560),_0x348aef[_0x321b('0x111')][_0x321b('0x5d')](_0x321b('0x65'),_0x35764d,_0x544560),_0x348aef['mapper']['bindElementToMarker'](_0x544560,_0x41a7a0[_0x321b('0x51')]),_0x4c0347&&(this[_0x321b('0x117')][_0x321b('0x135')](_0x41a7a0[_0x321b('0x51')])?_0x348aef[_0x321b('0x111')][_0x321b('0x134')]('ck-suggestion-marker--active',_0x544560):_0x348aef[_0x321b('0x111')][_0x321b('0xb1')](_0x321b('0x76'),_0x544560));for(const _0x2c179d of _0x12c880['model'][_0x321b('0x25')](_0x41a7a0[_0x321b('0x3b')])[_0x321b('0xbf')]())_0x348aef[_0x321b('0x7c')][_0x321b('0x9d')](_0x2c179d,_0x293539[_0x321b('0xfb')]);_0x348aef['consumable'][_0x321b('0x9d')](_0x41a7a0[_0x321b('0x3b')],_0x293539[_0x321b('0xfb')]);};_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x5a'))[_0x321b('0x129')](_0x33ba2a=>{_0x33ba2a['on'](_0x321b('0x36'),(_0x4e43d6,_0x4d63f1,_0x38bf9d)=>{_0x38bf9d[_0x321b('0x7')]['showSuggestionHighlights']&&_0x4dfd08({'showActiveMarkers':!0x1})(_0x4e43d6,_0x4d63f1,_0x38bf9d);},{'priority':'highest'});}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')]('dataDowncast')[_0x321b('0x89')]({'model':'suggestion','view':(_0x1cd11e,_0x1eca44)=>_0x1eca44[_0x321b('0x7')][_0x321b('0xf2')]?null:{'group':_0x321b('0x38'),'name':_0x1cd11e[_0x321b('0x118')](0xb)}}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x2d'))[_0x321b('0x26')]({'view':{'name':_0x321b('0x38'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5289c0,{writer:_0x26f6f8})=>{let _0x108ec8='suggestion:'+_0x5289c0[_0x321b('0xd3')](_0x321b('0xd2'))+':'+_0x5289c0[_0x321b('0xd3')]('id');return _0x5289c0['getAttribute']('marker-count')&&(_0x108ec8+=':'+_0x5289c0['getAttribute'](_0x321b('0xb2'))),_0x26f6f8[_0x321b('0xd8')](_0x321b('0x14d'),{'data-name':_0x108ec8});}}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x2d'))[_0x321b('0x23')]({'view':'suggestion'}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x85'))['add'](_0x4c6f6d=>{_0x4c6f6d['on']('addMarker:suggestion:formatBlock',_0x4dfd08(),{'priority':_0x321b('0xaa')});}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')]('editingDowncast')[_0x321b('0x129')](_0x237742=>{_0x237742['on'](_0x321b('0x137'),(_0x152dbd,_0x362871,_0x397339)=>{const _0x339ad1=_0x397339[_0x321b('0x12c')][_0x321b('0x40')](_0x362871[_0x321b('0x51')]);if(_0x339ad1)for(const _0x31f2dd of _0x339ad1)_0x31f2dd[_0x321b('0xe8')](_0x321b('0x6e'))||(_0x397339[_0x321b('0x111')]['removeClass']([_0x321b('0x0'),_0x321b('0x13f'),'ck-suggestion-marker--active'],_0x31f2dd),_0x397339[_0x321b('0x111')][_0x321b('0x2a')](_0x321b('0x65'),_0x31f2dd),_0x397339[_0x321b('0x12c')][_0x321b('0xa')](_0x31f2dd,_0x362871['markerName']));},{'priority':'high'});}),_0x12c880[_0x321b('0x10f')][_0x321b('0xd')][_0x321b('0xba')](_0x4d1685=>{let _0x461285=!0x1;const _0x35ebce=Array[_0x321b('0x121')](_0x12c880[_0x321b('0x10f')][_0x321b('0xd')][_0x321b('0xbb')]['getChangedMarkers']()),_0x3c8c45=new Set();for(const {name:_0x2b207f,data:_0x237520}of _0x35ebce){const {group:_0x5b8635,type:_0x5e770f,id:_0x41f17e}=this['_splitMarkerName'](_0x2b207f);if('suggestion'!==_0x5b8635)continue;const _0x3801c5=this[_0x321b('0xb7')][_0x321b('0xd5')](_0x41f17e);if(null!=_0x237520[_0x321b('0x1f')]){_0x321b('0xb3')==_0x5e770f&&(_0x461285=_0x461285||$t(_0x237520[_0x321b('0x1f')],_0x2b207f,_0x4d1685,_0x12c880[_0x321b('0x10f')][_0x321b('0x79')]));if(_0x237520[_0x321b('0x1f')]['isCollapsed']||_0x321b('0x11c')==_0x237520[_0x321b('0x1f')][_0x321b('0x1')][_0x321b('0x93')]||_0x321b('0x66')==_0x5e770f&&!Rt(_0x237520['newRange'])||'deletion'==_0x5e770f&&!(!Mt(_0x4450bb=_0x237520[_0x321b('0x1f')])&&!function(_0x43c168){return _0x43c168[_0x321b('0xab')][_0x321b('0x8b')]==_0x43c168[_0x321b('0x68')][_0x321b('0x52')]&&_0x43c168['start'][_0x321b('0x101')];}(_0x4450bb)))_0x4d1685[_0x321b('0x14')](_0x2b207f),_0x461285=!0x0;else{if(!_0x3801c5||!_0x3801c5[_0x321b('0x34')])continue;_0x3c8c45[_0x321b('0x129')](_0x3801c5);}}}var _0x4450bb;return _0x3c8c45['size']>0x0&&(_0x461285=!!this[_0x321b('0xe9')](_0x3c8c45)||_0x461285),_0x461285;}),_0x12c880[_0x321b('0x10f')][_0x321b('0xd')]['registerPostFixer'](_0x3be2ca=>{let _0x9d8a43=!0x1;for(const _0x20f262 of _0x12c880[_0x321b('0x10f')][_0x321b('0xd')]['differ'][_0x321b('0x7e')]()){if(_0x321b('0x7b')!=_0x20f262[_0x321b('0x143')])continue;const _0x520b0a=_0x20f262['position']['getShiftedBy'](_0x20f262['length']);if(_0x520b0a[_0x321b('0x101')])for(const _0x3196fc of this[_0x321b('0xb7')][_0x321b('0x58')]()){if(_0x3196fc[_0x321b('0xac')]||!_0x3196fc['isInContent'])continue;if(_0x321b('0x66')!=_0x3196fc['type'])continue;const _0x33600b=_0x3196fc['getFirstRange']();if(_0x33600b['start'][_0x321b('0x8b')]!=_0x33600b[_0x321b('0x68')][_0x321b('0x8b')]&&_0x33600b[_0x321b('0x68')][_0x321b('0x6d')](_0x20f262['position'])){const _0x487857=_0x12c880['model'][_0x321b('0x61')](_0x33600b[_0x321b('0xab')],_0x520b0a);_0x3be2ca['updateMarker'](_0x3196fc[_0x321b('0x90')](),{'range':_0x487857}),_0x9d8a43=!0x0;}}}return _0x9d8a43;}),_0x12c880['model'][_0x321b('0x14c')]['on'](_0x321b('0x99'),(_0xe4988f,_0x156ce1,_0x4ae3ea)=>{if(null==_0x4ae3ea){const {id:_0x1ce47c}=this['_splitMarkerName'](_0x156ce1[_0x321b('0xfb')]),_0x3809ea=this[_0x321b('0xb7')][_0x321b('0xd5')](_0x1ce47c);_0x3809ea&&_0x3809ea[_0x321b('0x144')](_0x156ce1[_0x321b('0xfb')]);}}),_0x12c880[_0x321b('0x10f')][_0x321b('0xd')]['on'](_0x321b('0x83'),()=>{const _0x51a909=Array[_0x321b('0x121')](_0x12c880[_0x321b('0x10f')]['document'][_0x321b('0xbb')][_0x321b('0x77')]())['filter'](_0x12d979=>_0x321b('0x38')===this[_0x321b('0x70')](_0x12d979[_0x321b('0xfb')])[_0x321b('0xed')]);if(0x0===_0x51a909[_0x321b('0x108')])return;_0x51a909[_0x321b('0xbe')]((_0x4aa0bf,_0x3bebc2)=>{const _0x5067c1=_0x4aa0bf['data'][_0x321b('0x119')],_0x2eaef7=_0x3bebc2['data']['oldRange'];return null===_0x5067c1&&null===_0x2eaef7?0x0:null===_0x5067c1&&null!==_0x2eaef7?-0x1:null!==_0x5067c1&&null===_0x2eaef7?0x1:_0x5067c1[_0x321b('0xab')]['isBefore'](_0x2eaef7['start'])?-0x1:0x1;});const _0x5c5fa0=new Set(),_0x52a605=new Set();for(const {name:_0x2b761c,data:_0x2e74b2}of _0x51a909){const {id:_0x144958}=this['_splitMarkerName'](_0x2b761c);if(null===_0x2e74b2[_0x321b('0x119')]){const _0x535497=this['_handleNewSuggestionMarker'](_0x2b761c);_0x52a605[_0x321b('0x129')](_0x535497);}else{const _0x5229c7=this[_0x321b('0xb7')]['get'](_0x144958);null!==_0x2e74b2['newRange']||_0x5229c7[_0x321b('0x34')]?(_0x5c5fa0[_0x321b('0x129')](_0x5229c7['head']),_0x52a605[_0x321b('0x129')](_0x5229c7)):this[_0x321b('0x5b')](_0x5229c7);}}_0x52a605[_0x321b('0x115')]>0x0&&this[_0x321b('0x13e')](_0x52a605);for(const _0x17c3a2 of _0x5c5fa0)this[_0x321b('0x1d')](_0x321b('0x28'),_0x17c3a2);}),_0x12c880['model']['on'](_0x321b('0xe3'),(_0x12822b,_0x1f661f)=>{const _0x389e75=_0x1f661f[0x0];if(!this[_0x321b('0xb7')][_0x321b('0x115')])return;if(!_0x389e75['isDocumentOperation'])return;if(_0x389e75[_0x321b('0xcd')][_0x321b('0xfe')]||!_0x389e75[_0x321b('0xcd')][_0x321b('0xc6')])return;let _0x5a22b6,_0x5c41ed;switch(_0x389e75['type']){case _0x321b('0x7b'):_0x5a22b6=_0x12c880[_0x321b('0x10f')][_0x321b('0xe6')](_0x389e75[_0x321b('0x127')]),_0x5c41ed=_0x5a22b6[_0x321b('0x125')](_0x389e75[_0x321b('0x13c')]);break;case _0x321b('0xf4'):_0x5a22b6=_0x12c880['model'][_0x321b('0xe6')](_0x389e75[_0x321b('0x57')]),_0x5c41ed=_0x12c880[_0x321b('0x10f')][_0x321b('0xe6')](_0x389e75[_0x321b('0xa3')]);break;case _0x321b('0x8e'):_0x5a22b6=_0x12c880[_0x321b('0x10f')][_0x321b('0xe6')](_0x389e75[_0x321b('0xd4')]),_0x5c41ed=_0x5a22b6[_0x321b('0x125')](_0x389e75[_0x321b('0x13c')]);break;default:return;}const _0x18dd55=_0x12c880[_0x321b('0x10f')][_0x321b('0x61')](_0x5a22b6,_0x5c41ed);_0x12c880[_0x321b('0x10f')][_0x321b('0xb')](()=>{for(const {suggestion:_0x4c59b0,meta:_0x48d2c5}of this['_findSuggestions'](_0x18dd55)){if(_0x4c59b0['isMultiRange'])continue;if(_0x321b('0xb3')==_0x4c59b0[_0x321b('0x143')])continue;const _0x4de206=_0x4c59b0[_0x321b('0x42')]&&_0x4c59b0['data'][_0x321b('0x131')];('formatBlock'!=_0x4c59b0[_0x321b('0x143')]||_0x321b('0xf4')==_0x389e75['type']&&!_0x4de206)&&(_0x48d2c5[_0x321b('0xb8')]||_0x321b('0xdb')==_0x4c59b0[_0x321b('0x143')]&&_0x48d2c5[_0x321b('0x6f')]||_0x4c59b0[_0x321b('0x29')]()[_0x321b('0x80')](_0x18dd55)&&this[_0x321b('0x81')](_0x4c59b0,_0x5a22b6,_0x5c41ed));}});},{'priority':'lowest'}),_0x12c880[_0x321b('0x10f')]['on'](_0x321b('0x10e'),(_0x17f46e,_0x4ebf7e)=>{const _0x56ce1a=_0x4ebf7e[0x0],_0x56e4cc=_0x4ebf7e[0x1];if(_0x56e4cc&&_0x56e4cc['forceDefaultExecution'])return;if(this[_0x321b('0x6')])return;if(!this[_0x321b('0xd6')][_0x321b('0x11e')])return;if(_0x56ce1a[_0x321b('0x60')])return;const _0x3d1ed0=_0x12c880['model'][_0x321b('0x79')],{start:_0x4cf7c0,end:_0x2a0601}=_0x56ce1a[_0x321b('0x29')](),_0x54fb61=_0x4cf7c0['nodeAfter']&&_0x3d1ed0[_0x321b('0x106')](_0x4cf7c0['nodeAfter'])?null:_0x3d1ed0[_0x321b('0x112')](_0x4cf7c0,_0x321b('0xcc')),_0x18258f=_0x2a0601[_0x321b('0x52')]&&_0x3d1ed0['isLimit'](_0x2a0601[_0x321b('0x52')])?null:_0x3d1ed0[_0x321b('0x112')](_0x2a0601,_0x321b('0x54')),_0x31253e=_0x12c880['model'][_0x321b('0x61')](_0x54fb61?_0x54fb61[_0x321b('0xab')]:_0x4cf7c0,_0x18258f?_0x18258f[_0x321b('0x68')]:_0x2a0601);_0x12c880['model'][_0x321b('0xb')](_0x388d57=>{this[_0x321b('0x62')](_0x31253e);const _0x4edcce=_0x12c880['model'][_0x321b('0x79')]['getNearestSelectionRange'](_0x31253e[_0x321b('0xab')]);_0x56ce1a['is'](_0x321b('0xe1'))?_0x388d57[_0x321b('0x3c')](_0x4edcce):_0x56ce1a[_0x321b('0x6a')](_0x4edcce);}),_0x17f46e[_0x321b('0x12d')]();},{'priority':_0xf44b92['normal']+0xa}),_0x12c880[_0x321b('0x10f')]['on'](_0x321b('0x145'),(_0x3999ab,_0x519037)=>{const _0x296c00=_0x519037[_0x519037[_0x321b('0x108')]-0x1];_0x296c00&&_0x296c00[_0x321b('0x11d')]||this[_0x321b('0x6')]||this[_0x321b('0xd6')][_0x321b('0x11e')]&&(_0x12c880['model']['change'](()=>{let _0x2d2448=_0x12c880['model']['insertContent'](_0x519037[0x0],_0x519037[0x1],_0x519037[0x2],{'forceDefaultExecution':!0x0});if(!_0x2d2448)return;_0x3999ab[_0x321b('0xb9')]=_0x2d2448[_0x321b('0x2c')]();const _0x376a3b=_0x2d2448['end'][_0x321b('0x52')],_0x1b198d=_0x12c880[_0x321b('0x10f')][_0x321b('0x79')];_0x376a3b&&_0x1b198d[_0x321b('0x37')](_0x376a3b)&&!_0x1b198d[_0x321b('0x21')](_0x376a3b)&&(_0x2d2448=_0x12c880['model'][_0x321b('0x61')](_0x2d2448[_0x321b('0xab')],_0x12c880['model'][_0x321b('0xe6')](_0x376a3b,_0x321b('0x68')))),this[_0x321b('0x12b')](_0x2d2448);}),_0x3999ab[_0x321b('0x12d')]());},{'priority':'high'}),this[_0x321b('0x113')][_0x321b('0xa6')][_0x321b('0x129')](_0x321b('0x97'),this[_0x321b('0xd6')]),this['enableCommand'](_0x321b('0x97'));const _0x694a20=new _0x370df1(_0x12c880,this[_0x321b('0xb7')]);_0x12c880[_0x321b('0xa6')][_0x321b('0x129')]('acceptSuggestion',_0x694a20),this[_0x321b('0xc5')]('acceptSuggestion');const _0x2c68e0=new _0xa5d566(_0x12c880,this[_0x321b('0xb7')]);_0x12c880[_0x321b('0xa6')][_0x321b('0x129')](_0x321b('0x141'),_0x2c68e0),this['enableCommand'](_0x321b('0x141')),_0x12c880[_0x321b('0xa6')][_0x321b('0x129')](_0x321b('0x4b'),new _0xe34cb9(_0x12c880,_0x694a20,this[_0x321b('0xb7')])),this['enableCommand']('acceptAllSuggestions'),_0x12c880['commands'][_0x321b('0x129')](_0x321b('0x139'),new _0xe34cb9(_0x12c880,_0x2c68e0,this[_0x321b('0xb7')])),this['enableCommand'](_0x321b('0x139')),_0x12c880[_0x321b('0xa6')][_0x321b('0x129')](_0x321b('0x20'),new _0x19ada6(_0x12c880,_0x694a20,this['_suggestions'])),this[_0x321b('0xc5')](_0x321b('0x20')),_0x12c880[_0x321b('0xa6')][_0x321b('0x129')]('discardSelectedSuggestions',new _0x19ada6(_0x12c880,_0x2c68e0,this['_suggestions'])),this[_0x321b('0xc5')](_0x321b('0x11b'));const _0xf8ca85=_0x12c880[_0x321b('0xbc')][_0x321b('0xd5')]('CommentsRepository');this[_0x321b('0xf1')](_0xf8ca85,_0x321b('0x2b'),(_0x49d399,{threadId:_0x399feb})=>{const _0xe1cf48=this['_suggestions'][_0x321b('0xd5')](_0x399feb);_0xe1cf48&&_0xe1cf48['commentThread']&&0x1===_0xe1cf48['commentThread'][_0x321b('0x108')]&&this['_updateSuggestionData'](_0x399feb,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xf8ca85,'removeComment',(_0x23196d,{threadId:_0x58a73a})=>{const _0x502ae5=this[_0x321b('0xb7')]['get'](_0x58a73a);_0x502ae5&&_0x502ae5[_0x321b('0xe0')]&&!_0x502ae5['commentThread']['length']&&this[_0x321b('0x18')](_0x58a73a,{'hasComments':!0x1});},{'priority':'low'});}set[_0x321b('0x98')](_0x289486){if(this[_0x321b('0x71')])throw new _0x5e6c46(_0x321b('0x74'),this);this[_0x321b('0x71')]=_0x289486;}get[_0x321b('0x98')](){return this[_0x321b('0x71')];}[_0x321b('0x35')]({skipNotAttached:_0x4cd955=!0x1,toJSON:_0x5d6ee1=!0x1}={}){const _0x41eb91=[];for(const _0x3759f7 of this[_0x321b('0xb7')]['values']())_0x4cd955&&!_0x3759f7[_0x321b('0x34')]||_0x41eb91[_0x321b('0xad')](_0x3759f7);return _0x5d6ee1?_0x41eb91['map'](_0x45e36a=>_0x45e36a[_0x321b('0x124')]()):_0x41eb91;}[_0x321b('0x33')](_0x4ea26e){const _0x46c275=this[_0x321b('0xb7')][_0x321b('0xd5')](_0x4ea26e);if(!_0x46c275)throw new _0x5e6c46('track-changes-suggestion-not-found',this);return _0x46c275;}[_0x321b('0x11a')](_0x7fccb){return this[_0x321b('0xb7')]['has'](_0x7fccb);}[_0x321b('0x102')](_0x1c2eec){const {authorId:_0x5b66bb,id:_0x301655,attributes:_0x4ecded}=_0x1c2eec,[_0x3272cd,_0x510d25]=_0x1c2eec['type']['split'](':'),_0x5e24d1=this[_0x321b('0xb7')][_0x321b('0xd5')](_0x301655)||this['_createSuggestion'](_0x3272cd,_0x510d25,_0x301655,_0x5b66bb,_0x4ecded);if(this[_0x321b('0x9c')](_0x5e24d1),this[_0x321b('0xae')](_0x5e24d1,_0x3272cd,_0x510d25||null,_0x5b66bb),_0x5e24d1[_0x321b('0x130')]=_0x1c2eec['createdAt'],_0x5e24d1[_0x321b('0x10d')]=!0x0,_0x4ecded&&_0x4ecded['@external']){const _0x519b4=_0x4ecded[_0x321b('0x4a')],_0x53385f=this[_0x321b('0xf9')](_0x519b4[_0x321b('0x95')]);_0x5e24d1[_0x321b('0xe4')]=_0x519b4['createdAt'],_0x5e24d1[_0x321b('0x14a')]=_0x53385f,_0x5e24d1['isExternal']=!0x0;}else _0x5e24d1[_0x321b('0xe4')]=_0x1c2eec[_0x321b('0x130')];switch(_0x1c2eec[_0x321b('0x42')]&&(_0x5e24d1[_0x321b('0x42')]=_0x1c2eec['data']),_0x1c2eec[_0x321b('0xe')]&&(_0x5e24d1[_0x321b('0xe')]=_0x1c2eec['attributes']),this[_0x321b('0x71')]&&this[_0x321b('0x71')]['addSuggestion']||(_0x5e24d1[_0x321b('0x10c')]=!0x0),this[_0x321b('0xd9')]['get'](_0x5e24d1)){case _0x321b('0x14b'):this[_0x321b('0xd9')][_0x321b('0x12')](_0x5e24d1,_0x321b('0x72'));break;case _0x321b('0x114'):_0x5e24d1[_0x321b('0x34')]?(this[_0x321b('0x13e')](new Set([_0x5e24d1])),this['_joinWithAdjacentSuggestions'](new Set([_0x5e24d1])),this[_0x321b('0xd9')][_0x321b('0x12')](_0x5e24d1,_0x321b('0xde')),this['fire']('suggestionLoaded',_0x5e24d1)):this[_0x321b('0xd9')][_0x321b('0x12')](_0x5e24d1,'removed');}return _0x5e24d1;}[_0x321b('0x5c')](_0x3599a7){this[_0x321b('0x11d')](()=>{this[_0x321b('0x113')][_0x321b('0x10f')]['change'](()=>{for(const _0x439d74 of _0x3599a7[_0x321b('0xbd')]())_0x439d74[_0x321b('0xff')]();});});}['discardSuggestion'](_0x3ebc8f){this['forceDefaultExecution'](()=>{this[_0x321b('0x113')][_0x321b('0x10f')][_0x321b('0xb')](()=>{for(const _0x1ab2a6 of _0x3ebc8f['getAllAdjacentSuggestions']())_0x1ab2a6['discard']();});});}[_0x321b('0xc5')](_0x1c7db5,_0x2ef838){const _0x36411e=this[_0x321b('0x113')]['commands'][_0x321b('0xd5')](_0x1c7db5);if(!_0x36411e)throw new _0x5e6c46(_0x321b('0xa0'),this,{'commandName':_0x1c7db5});this['_enabledCommands']['add'](_0x36411e),_0x2ef838&&_0x36411e['on'](_0x321b('0x138'),(_0x1d96f6,_0xce073a)=>{this[_0x321b('0xd6')]['value']&&(this[_0x321b('0x6')]||_0xce073a['length']>0x0&&_0xce073a[_0xce073a[_0x321b('0x108')]-0x1]&&_0xce073a[_0xce073a[_0x321b('0x108')]-0x1][_0x321b('0x11d')]||(_0x1d96f6[_0x321b('0xb9')]=_0x2ef838((..._0x4cbabb)=>_0x36411e[_0x321b('0x138')](..._0x4cbabb,{'forceDefaultExecution':!0x0}),..._0xce073a),_0x1d96f6[_0x321b('0x12d')]()));},{'priority':_0x321b('0xaa')});}[_0x321b('0x11d')](_0x5ef69b){let _0x3f29df,_0x1d6c3d;const _0x33b785=this[_0x321b('0x6')];this[_0x321b('0x6')]=!0x0;try{_0x3f29df=_0x5ef69b();}catch(_0x4f541e){_0x1d6c3d=_0x4f541e;}return _0x33b785||(this[_0x321b('0x6')]=!0x1),_0x1d6c3d&&_0x5e6c46[_0x321b('0x107')](_0x1d6c3d,this),_0x3f29df;}[_0x321b('0x12b')](_0x3127be,_0x26c23d=null,_0x5728f1={}){if(_0x3127be['isCollapsed'])return null;const _0xd484b7=this[_0x321b('0x113')]['plugins'][_0x321b('0xd5')](_0x321b('0x133'))['me'];for(const {suggestion:_0x4b5483,meta:_0x180efc}of this[_0x321b('0xc')](_0x3127be,_0x321b('0xdb')))if(_0x180efc[_0x321b('0x6f')]){if(!_0x180efc[_0x321b('0xdc')]){if(_0x180efc[_0x321b('0xb8')]){if(!this[_0x321b('0xf0')]||!Ot(_0x4b5483,_0x5728f1))continue;return _0x4b5483;}if(Ot(_0x4b5483,_0x5728f1))return _0x4b5483;this[_0x321b('0x81')](_0x4b5483,_0x3127be[_0x321b('0xab')],_0x3127be[_0x321b('0x68')]);break;}if(_0x26c23d==_0x4b5483[_0x321b('0x12a')]&&Ot(_0x4b5483,_0x5728f1)){const _0x275b2c=_0x4b5483[_0x321b('0x29')]();return _0x275b2c[_0x321b('0xab')][_0x321b('0x6d')](_0x3127be[_0x321b('0x68')])?this['_setSuggestionRange'](_0x4b5483,this[_0x321b('0xb5')]['createRange'](_0x3127be[_0x321b('0xab')],_0x275b2c[_0x321b('0x68')])):this[_0x321b('0x7f')](_0x4b5483,this['_model'][_0x321b('0x61')](_0x275b2c[_0x321b('0xab')],_0x3127be[_0x321b('0x68')])),_0x4b5483;}}const _0x2d251b=_0xb98dc5(),_0x34ccee=_0xd484b7['id'],_0x43870a=_0x26c23d?_0x321b('0xf7')+_0x26c23d:_0x321b('0xdb'),_0x45dbda=this[_0x321b('0x43')]({'id':_0x2d251b,'type':_0x43870a,'createdAt':new Date(),'authorId':_0x34ccee,'attributes':_0x5728f1});return this[_0x321b('0x75')](_0x43870a,_0x2d251b,_0x34ccee,_0x3127be),_0x45dbda;}['markMultiRangeInsertion'](_0x4961fc,_0x1a7e74=_0x321b('0x11f'),_0x5e3c75={}){const _0x297e10=this[_0x321b('0x113')][_0x321b('0xbc')]['get'](_0x321b('0x133'))['me'],_0x2b4e5a=this[_0x321b('0x5f')][_0x321b('0x10a')]('insertion',_0x1a7e74,_0x321b('0xdd'));for(const _0x559b44 of this[_0x321b('0x35')]())if(_0x559b44[_0x321b('0x14a')]['id']==_0x297e10['id']&&_0x321b('0xdb')==_0x559b44[_0x321b('0x143')]&&_0x559b44[_0x321b('0x12a')]==_0x1a7e74&&Ot(_0x559b44,_0x5e3c75)&&(_0x2b4e5a(_0x559b44[_0x321b('0xfc')](),_0x4961fc)||_0x2b4e5a(_0x4961fc,_0x559b44['getRanges']()))){for(const _0x1da16c of _0x4961fc)_0x559b44[_0x321b('0x92')](_0x1da16c);return _0x559b44;}for(const {suggestion:_0x3da43c,meta:_0xb0a542}of this[_0x321b('0xc')](_0x4961fc,_0x321b('0xdb'))){if(!_0xb0a542[_0x321b('0x6f')])continue;if(!this[_0x321b('0xf0')]&&_0xb0a542[_0x321b('0xb8')])continue;if(!Ot(_0x3da43c,_0x5e3c75))continue;let _0x369958=!0x0;for(const _0x556bce of _0x3da43c[_0x321b('0xfc')]())for(const _0xbe1b89 of _0x4961fc)if(!_0x556bce['containsRange'](_0xbe1b89)){_0x369958=!0x1;break;}if(_0x369958)return _0x3da43c;}const _0x53f180=_0xb98dc5(),_0x1de3b7=_0x297e10['id'],_0x3d5865=_0x321b('0xf7')+_0x1a7e74,_0x10badd=this[_0x321b('0x43')]({'id':_0x53f180,'type':_0x3d5865,'createdAt':new Date(),'authorId':_0x1de3b7,'attributes':_0x5e3c75});for(const _0x2d7e7a of _0x4961fc)this['_addSuggestionMarker'](_0x3d5865,_0x53f180,_0x1de3b7,_0x2d7e7a,_0x33435c[_0x321b('0x24')]());return _0x10badd;}[_0x321b('0xc0')](_0x310286,_0x4b6ee1,_0x2a3ed6=null,_0x2f31d6={}){if(_0x2a3ed6=_0x2a3ed6||Nt(_0x4b6ee1),_0x310286[_0x321b('0x60')])return null;if(_0x321b('0xdf')===this['_trackFormatChanges']){const _0x27a221=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0xb3'),_0x2a3ed6,_0x321b('0xff'));return this['forceDefaultExecution'](()=>_0x27a221([_0x310286],_0x4b6ee1,_0x2f31d6)),null;}const _0x4c0c77=this[_0x321b('0x113')]['plugins'][_0x321b('0xd5')](_0x321b('0x133'))['me'],_0x4c6ce4=[];if(_0x321b('0x55')!==this[_0x321b('0xc3')])for(const {suggestion:_0x387463,meta:_0x28b859}of this['_findSuggestions'](_0x310286,_0x321b('0xdb')))_0x28b859[_0x321b('0x6f')]&&!_0x28b859['isInsideObject']&&_0x4c6ce4[_0x321b('0xad')](..._0x387463['getRanges']());const _0x31df50=function(_0x4ca75a,_0x5d4aba){const _0x3dae9a=[];for(const _0x180d1b of _0x5d4aba){const _0x2059f6=_0x4ca75a[_0x321b('0xc1')](_0x180d1b);_0x2059f6&&_0x3dae9a[_0x321b('0xad')](_0x2059f6);}return _0x3dae9a;}(_0x310286,_0x4c6ce4),_0x24512d=function(_0x177d6c,_0x3f3128){const _0x490546=[_0x177d6c];for(const _0x47878d of _0x3f3128){let _0x3cff14=0x0;for(;_0x3cff14<_0x490546[_0x321b('0x108')];){const _0x132271=_0x490546[_0x3cff14][_0x321b('0xf5')](_0x47878d);_0x490546['splice'](_0x3cff14,0x1,..._0x132271),_0x3cff14+=_0x132271[_0x321b('0x108')];}}return _0x490546;}(_0x310286,_0x4c6ce4);_0x31df50[_0x321b('0x108')]&&this[_0x321b('0xb5')][_0x321b('0xb')](()=>{for(const _0x49483a of _0x31df50){const _0x26c9c8=this[_0x321b('0x5f')][_0x321b('0x10a')]('formatInline',_0x2a3ed6,_0x321b('0xff'));this[_0x321b('0x11d')](()=>_0x26c9c8([_0x49483a],_0x4b6ee1,_0x2f31d6));}});for(const _0x2ea0e7 of _0x24512d){let _0x2c13ff=null,_0x5d11c6=_0x2ea0e7[_0x321b('0xab')],_0x50c97e=_0x2ea0e7['end'];for(const {suggestion:_0x3d073c,meta:_0x54984b}of this[_0x321b('0xc')](_0x2ea0e7,_0x321b('0xb3'))){if(!_0x54984b[_0x321b('0x6f')])continue;if(_0x3d073c['subType']!=_0x2a3ed6)continue;if(!Ot(_0x3d073c,_0x2f31d6))continue;const _0x29db7d=_0x3d073c[_0x321b('0x29')]();if(_0x29db7d['containsRange'](_0x2ea0e7,!0x0))return null;_0x5d11c6=_0x5d11c6[_0x321b('0x2f')](_0x29db7d[_0x321b('0xab')])?_0x5d11c6:_0x29db7d[_0x321b('0xab')],_0x50c97e=_0x50c97e[_0x321b('0x49')](_0x29db7d[_0x321b('0x68')])?_0x50c97e:_0x29db7d[_0x321b('0x68')],_0x2c13ff?_0x29db7d[_0x321b('0xab')]['isBefore'](_0x2c13ff[_0x321b('0x29')]()[_0x321b('0xab')])?(_0x2c13ff['removeMarkers'](),_0x2c13ff=_0x3d073c):_0x3d073c[_0x321b('0x104')]():_0x2c13ff=_0x3d073c;}const _0x4e096e=this[_0x321b('0xb5')][_0x321b('0x61')](_0x5d11c6,_0x50c97e);if(_0x2c13ff)this[_0x321b('0x7f')](_0x2c13ff,_0x4e096e);else{const _0x522470=_0xb98dc5(),_0x8a133e=_0x4c0c77['id'];this[_0x321b('0x43')]({'id':_0x522470,'type':_0x321b('0xc4')+_0x2a3ed6,'data':_0x4b6ee1,'createdAt':new Date(),'authorId':_0x8a133e,'attributes':_0x2f31d6}),this['_addSuggestionMarker'](_0x321b('0xc4')+_0x2a3ed6,_0x522470,_0x8a133e,_0x4e096e);}}return null;}[_0x321b('0xcf')](_0x555bc0,_0x56ced0,_0x11087e=[],_0x4b7cdf=null,_0x6ca28a={}){_0x56ced0[_0x321b('0x13a')]||(_0x56ced0[_0x321b('0x13a')]=_0x56ced0[_0x321b('0x2e')]),_0x56ced0[_0x321b('0x131')]=_0x555bc0['is'](_0x321b('0x78')),_0x4b7cdf=_0x4b7cdf||Nt(_0x56ced0);const _0x4808e2=_0x11087e[_0x321b('0xc9')](_0x5c201c=>jt(_0x5c201c,this[_0x321b('0xb5')])),_0x16f7a0=_0x555bc0['is'](_0x321b('0x78'))?_0x555bc0:jt(_0x555bc0,this[_0x321b('0xb5')]);if(_0x321b('0xdf')===this[_0x321b('0xc3')]){const _0x14bebf=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0x66'),_0x4b7cdf,_0x321b('0xff'));return this['forceDefaultExecution'](()=>_0x14bebf([_0x16f7a0],_0x56ced0,_0x6ca28a)),null;}_0x4808e2[_0x321b('0xad')](_0x16f7a0);let _0x2bd18b=!0x0;for(const _0xb2c402 of _0x4808e2)if(!this['_rangeIsInLocalUserInsertion'](_0xb2c402)){_0x2bd18b=!0x1;break;}if(_0x2bd18b&&_0x321b('0x55')!==this[_0x321b('0xc3')]){const _0x372859=this[_0x321b('0x5f')][_0x321b('0x10a')]('formatBlock',_0x4b7cdf,_0x321b('0xff'));return this[_0x321b('0x11d')](()=>_0x372859([_0x16f7a0],_0x56ced0,_0x6ca28a)),null;}let _0x4a6de3=null,_0x1f0b8f=_0x16f7a0[_0x321b('0xab')],_0x385921=_0x16f7a0[_0x321b('0x68')];for(const {suggestion:_0x488f36,meta:_0x29cc27}of this['_findSuggestions'](_0x16f7a0,_0x321b('0x66'))){if(!_0x29cc27['isOwn'])continue;if(_0x29cc27['isNextTo']||_0x29cc27[_0x321b('0xb8')]||_0x29cc27[_0x321b('0xfd')])continue;if(_0x488f36[_0x321b('0x42')][_0x321b('0x13a')]!=_0x56ced0['formatGroupId'])continue;if(!Ot(_0x488f36,_0x6ca28a))continue;const _0x2e2247=_0x488f36[_0x321b('0x29')]();if(_0x488f36[_0x321b('0x12a')]==_0x4b7cdf){if(_0x2e2247['containsRange'](_0x16f7a0,!0x0))return null;_0x1f0b8f=_0x1f0b8f[_0x321b('0x2f')](_0x2e2247[_0x321b('0xab')])?_0x1f0b8f:_0x2e2247['start'],_0x385921=_0x385921[_0x321b('0x49')](_0x2e2247[_0x321b('0x68')])?_0x385921:_0x2e2247[_0x321b('0x68')],_0x4a6de3?_0x2e2247[_0x321b('0xab')]['isBefore'](_0x4a6de3[_0x321b('0x29')]()[_0x321b('0xab')])?(_0x4a6de3['removeMarkers'](),_0x4a6de3=_0x488f36):_0x488f36['removeMarkers']():_0x4a6de3=_0x488f36;}else{const _0x3e73af=_0x16f7a0[_0x321b('0xc1')](_0x2e2247);this[_0x321b('0x1e')](_0x488f36,_0x3e73af);}}const _0x5501fc=this[_0x321b('0x113')][_0x321b('0xbc')][_0x321b('0xd5')]('Users')['me'],_0x20ba8c=_0xb98dc5(),_0x42746c=_0x5501fc['id'];if(_0x4a6de3)return this[_0x321b('0x7f')](_0x4a6de3,this[_0x321b('0xb5')][_0x321b('0x61')](_0x1f0b8f,_0x385921)),_0x4a6de3;{const _0x5d8ef4=this[_0x321b('0x43')]({'id':_0x20ba8c,'type':_0x321b('0x136')+_0x4b7cdf,'data':_0x56ced0,'createdAt':new Date(),'authorId':_0x42746c,'attributes':_0x6ca28a});return this[_0x321b('0x75')](_0x321b('0x136')+_0x4b7cdf,_0x20ba8c,_0x42746c,this[_0x321b('0xb5')]['createRange'](_0x1f0b8f,_0x385921)),_0x5d8ef4;}}[_0x321b('0xa5')](_0x5d18c5,_0x18cf81,_0x38ae6e=[],_0x57461d=null,_0x1612f0={}){_0x18cf81[_0x321b('0x13a')]||(_0x18cf81[_0x321b('0x13a')]=_0x18cf81[_0x321b('0x2e')]);const _0x1034d4=_0x5d18c5[0x0];_0x18cf81[_0x321b('0x131')]=_0x1034d4['is'](_0x321b('0x78')),_0x57461d=_0x57461d||Nt(_0x18cf81);const _0x29f1a2=_0x38ae6e[_0x321b('0xc9')](_0xc29970=>jt(_0xc29970,this['_model'])),_0x2424f2=_0x1034d4['is'](_0x321b('0x78'))?_0x5d18c5:_0x5d18c5[_0x321b('0xc9')](_0x2a7d7e=>jt(_0x2a7d7e,this['_model']));if(_0x321b('0xdf')===this[_0x321b('0xc3')]){const _0xea790b=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0x66'),_0x57461d,_0x321b('0xff'));return this[_0x321b('0x11d')](()=>_0xea790b(_0x2424f2,_0x18cf81,_0x1612f0)),null;}_0x29f1a2['push'](..._0x2424f2);let _0x102118=!0x0;for(const _0x5733de of _0x29f1a2)if(!this[_0x321b('0xf8')](_0x5733de)){_0x102118=!0x1;break;}if(_0x102118&&_0x321b('0x55')!==this['_trackFormatChanges']){const _0x597efe=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0x66'),_0x57461d,_0x321b('0xff'));return this[_0x321b('0x11d')](()=>_0x597efe(_0x2424f2,_0x18cf81,_0x1612f0)),null;}const _0x353fe3=this['editor'][_0x321b('0xbc')][_0x321b('0xd5')](_0x321b('0x133'))['me'];for(const _0x290041 of this['getSuggestions']()){if(_0x290041[_0x321b('0x14a')]['id']!=_0x353fe3['id'])continue;if(_0x321b('0x66')!=_0x290041[_0x321b('0x143')]||_0x290041['data'][_0x321b('0x13a')]!=_0x18cf81[_0x321b('0x13a')])continue;if(!Ot(_0x290041,_0x1612f0))continue;const _0x5b945b=_0x290041[_0x321b('0x12a')]==_0x57461d;for(let _0x2fb82d=0x0;_0x2fb82d<_0x2424f2[_0x321b('0x108')];_0x2fb82d++){const _0x372330=_0x2424f2[_0x2fb82d];for(const _0xcf7ee7 of _0x290041[_0x321b('0x67')]()){const _0x446cc7=_0xcf7ee7[_0x321b('0xec')]();if(_0x372330['isEqual'](_0x446cc7)){_0x5b945b?(_0x2424f2[_0x321b('0xd0')](_0x2fb82d,0x1),_0x2fb82d--):_0x290041[_0x321b('0x14')](_0xcf7ee7[_0x321b('0xfb')]);break;}}}}if(0x0==_0x2424f2[_0x321b('0x108')])return null;const _0x211774=this['_suggestionFactory'][_0x321b('0x10a')](_0x321b('0x66'),_0x57461d,_0x321b('0xdd'));for(const _0x11ccf7 of this[_0x321b('0x35')]())if(_0x11ccf7['author']['id']==_0x353fe3['id']&&_0x321b('0x66')==_0x11ccf7['type']&&_0x11ccf7['data'][_0x321b('0x13a')]==_0x18cf81['formatGroupId']&&_0x11ccf7[_0x321b('0x12a')]==_0x57461d&&Ot(_0x11ccf7,_0x1612f0)&&(_0x211774(_0x11ccf7[_0x321b('0xfc')](),_0x2424f2)||_0x211774(_0x2424f2,_0x11ccf7['getRanges']()))){for(const _0x11e043 of _0x2424f2)_0x11ccf7[_0x321b('0x92')](_0x11e043);return _0x11ccf7;}const _0xa7ac84=_0xb98dc5(),_0x1662b8=_0x353fe3['id'],_0x1b0d6c=_0x321b('0x136')+_0x57461d,_0x2737a3=this[_0x321b('0x43')]({'id':_0xa7ac84,'type':_0x1b0d6c,'data':_0x18cf81,'createdAt':new Date(),'authorId':_0x1662b8,'attributes':_0x1612f0});for(const _0x38959f of _0x2424f2)this['_addSuggestionMarker'](_0x1b0d6c,_0xa7ac84,_0x1662b8,_0x38959f,_0x33435c[_0x321b('0x24')]());return _0x2737a3;}[_0x321b('0x62')](_0x1029ec,_0x395991=null,_0x46b03a={}){if(_0x1029ec[_0x321b('0x60')])return null;const _0x56b9ed=this[_0x321b('0x113')][_0x321b('0xbc')]['get'](_0x321b('0x133'))['me'],_0x1abdff=new _0x236dbf(_0x1029ec['start'],_0x1029ec[_0x321b('0x68')]);for(const {suggestion:_0x45cddd,meta:_0x5f3d80}of this[_0x321b('0xc')](_0x1abdff,_0x321b('0xdb')))if(_0x5f3d80[_0x321b('0x6f')]&&!_0x5f3d80['isNextTo']){if(_0x45cddd['isMultiRange']){const _0x2d6516=_0x45cddd[_0x321b('0xfc')]()[_0x321b('0xc8')](_0x332483=>_0x321b('0x11c')!=_0x332483[_0x321b('0x1')][_0x321b('0x93')]);_0x2d6516[_0x321b('0x9b')](_0x2331c8=>_0x1abdff['containsRange'](_0x2331c8,!0x0))&&_0x45cddd[_0x321b('0x5')]();if(_0x2d6516[_0x321b('0x41')](_0x38bb8a=>_0x38bb8a[_0x321b('0x80')](_0x1abdff,!0x0))){const _0x598ead=this['_suggestionFactory'][_0x321b('0x10a')](_0x321b('0x109'),_0x395991,_0x321b('0xff'));return this[_0x321b('0x11d')](()=>_0x598ead([_0x1abdff],null,_0x46b03a)),null;}}else{const _0x49b331=_0x1abdff[_0x321b('0xc1')](_0x45cddd[_0x321b('0x29')]());null!==_0x49b331&&_0x45cddd[_0x321b('0x122')]([_0x49b331],null,_0x46b03a);}}if(_0x1abdff['detach'](),_0x1abdff['isCollapsed']||_0x321b('0x11c')==_0x1abdff['root'][_0x321b('0x93')])return null;let _0x32433e=null,_0x23fcaf=_0x1abdff[_0x321b('0xab')],_0x23ce3d=_0x1abdff[_0x321b('0x68')];const _0x1d25d2=this[_0x321b('0xc')](_0x1abdff,_0x321b('0x109'));for(const {suggestion:_0x15c6fd,meta:_0x3b8bde}of _0x1d25d2){const _0x61b470=this[_0x321b('0xb5')]['createRange'](_0x23fcaf,_0x23ce3d);if(_0x3b8bde[_0x321b('0x6f')]&&(this[_0x321b('0xf0')]||!_0x3b8bde[_0x321b('0xb8')]&&!_0x3b8bde[_0x321b('0xfd')])){if(_0x15c6fd[_0x321b('0xac')]){if(!Ot(_0x15c6fd,_0x46b03a))continue;let _0x1a251f=!0x0;for(const _0x3d3af9 of _0x15c6fd[_0x321b('0xfc')]()){if(_0x3d3af9['containsRange'](_0x61b470,!0x0))return _0x15c6fd;_0x61b470['containsRange'](_0x3d3af9)||(_0x1a251f=!0x1);}_0x1a251f&&_0x15c6fd[_0x321b('0x5')]();}else{const _0x5b2ef6=_0x15c6fd[_0x321b('0x29')]();if(_0x5b2ef6[_0x321b('0x80')](_0x61b470,!0x0))return _0x15c6fd;if(!Ot(_0x15c6fd,_0x46b03a)){_0x61b470[_0x321b('0x80')](_0x5b2ef6)?_0x15c6fd[_0x321b('0x104')]():_0x5b2ef6[_0x321b('0x10')](_0x23fcaf)?_0x23fcaf=_0x5b2ef6[_0x321b('0x68')]:_0x5b2ef6[_0x321b('0x10')](_0x23ce3d)&&(_0x23ce3d=_0x5b2ef6['start']);continue;}_0x23fcaf=_0x23fcaf[_0x321b('0x2f')](_0x5b2ef6['start'])?_0x23fcaf:_0x5b2ef6['start'],_0x23ce3d=_0x23ce3d['isAfter'](_0x5b2ef6[_0x321b('0x68')])?_0x23ce3d:_0x5b2ef6['end'],_0x46b03a=Object[_0x321b('0x4c')]({},_0x15c6fd[_0x321b('0xe')]),_0x32433e?_0x5b2ef6[_0x321b('0xab')][_0x321b('0x2f')](_0x32433e[_0x321b('0x29')]()['start'])?(_0x32433e[_0x321b('0x104')](),_0x32433e=_0x15c6fd):_0x15c6fd['removeMarkers']():_0x32433e=_0x15c6fd;}}}if(_0x32433e)return this[_0x321b('0x7f')](_0x32433e,this[_0x321b('0xb5')]['createRange'](_0x23fcaf,_0x23ce3d)),_0x32433e;{const _0x3f4b57=_0xb98dc5(),_0x23e7e7=this[_0x321b('0xb5')][_0x321b('0x61')](_0x23fcaf,_0x23ce3d),_0x2be176=_0x56b9ed['id'],_0x2aa436=_0x395991?_0x321b('0x31')+_0x395991:_0x321b('0x109'),_0x492812=this[_0x321b('0x43')]({'id':_0x3f4b57,'type':_0x2aa436,'createdAt':new Date(),'authorId':_0x2be176,'attributes':_0x46b03a});return this['_addSuggestionMarker'](_0x2aa436,_0x3f4b57,_0x2be176,_0x23e7e7),_0x492812;}}[_0x321b('0x132')](_0x4d6684,_0x3e3e12=_0x321b('0x11f'),_0xddbe0f={}){const _0x257e44=this[_0x321b('0x113')][_0x321b('0xbc')][_0x321b('0xd5')](_0x321b('0x133'))['me'],_0x4c6588=_0x4d6684[_0x321b('0xc9')](_0x30421c=>new _0x236dbf(_0x30421c[_0x321b('0xab')],_0x30421c[_0x321b('0x68')])),_0x533360=new Set();for(const {suggestion:_0x42a219,meta:_0x5b4fda}of this[_0x321b('0xc')](_0x4c6588,_0x321b('0xdb')))_0x5b4fda['isOwn']&&!_0x5b4fda[_0x321b('0xdc')]&&_0x533360['add'](_0x42a219);for(const _0x302565 of _0x533360)if(_0x302565['isMultiRange']){const _0x127962=_0x302565[_0x321b('0xfc')]();(!_0x302565['attributes']||!_0x302565[_0x321b('0xe')][_0x321b('0x8f')])&&(_0x127962['every'](_0x13965b=>_0x4c6588[_0x321b('0x41')](_0x364582=>_0x364582[_0x321b('0x80')](_0x13965b,!0x0)))&&_0x302565[_0x321b('0x5')]());if(_0x4c6588[_0x321b('0x9b')](_0x59ed5d=>_0x127962[_0x321b('0x41')](_0x317654=>_0x317654[_0x321b('0x80')](_0x59ed5d,!0x0)))){const _0x5b3a31=this[_0x321b('0x5f')]['getSuggestionCallback'](_0x321b('0x109'),_0x3e3e12,_0x321b('0xff'));return this['forceDefaultExecution'](()=>_0x5b3a31(_0x4d6684,null,_0xddbe0f)),null;}}else{const _0x1da255=_0x302565[_0x321b('0x29')]();_0x4c6588[_0x321b('0x41')](_0x4de98a=>_0x4de98a[_0x321b('0x80')](_0x1da255,!0x0))&&_0x302565[_0x321b('0x5')]();if(_0x4c6588[_0x321b('0x9b')](_0x3e647f=>_0x1da255['containsRange'](_0x3e647f,!0x0))){const _0xe04808=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0x109'),_0x3e3e12,_0x321b('0xff'));return this[_0x321b('0x11d')](()=>_0xe04808(_0x4c6588,null,_0xddbe0f)),null;}}const _0x504ce7=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0x109'),_0x3e3e12,_0x321b('0xdd'));let _0x27611a=null;for(const _0x12cf91 of this[_0x321b('0x35')]())if(_0x12cf91[_0x321b('0x14a')]['id']==_0x257e44['id']&&_0x12cf91[_0x321b('0x34')]&&_0x321b('0x109')==_0x12cf91['type']&&_0x12cf91[_0x321b('0x12a')]==_0x3e3e12&&Ot(_0x12cf91,_0xddbe0f)&&(_0x504ce7(_0x12cf91[_0x321b('0xfc')](),_0x4c6588)||_0x504ce7(_0x4c6588,_0x12cf91['getRanges']()))){if(_0x27611a){if(_0x12cf91[_0x321b('0xe0')]&&_0x12cf91['commentThread'][_0x321b('0x108')])continue;for(const _0x54518a of _0x12cf91[_0x321b('0xfc')]())_0x27611a['isIntersectingWithRange'](_0x54518a)||_0x27611a[_0x321b('0x92')](_0x54518a);_0x12cf91[_0x321b('0x104')]();}else{_0x27611a=_0x12cf91;for(const _0x4c7eb7 of _0x4c6588)_0x12cf91[_0x321b('0x88')](_0x4c7eb7)||_0x12cf91[_0x321b('0x92')](_0x4c7eb7);}}if(_0x27611a)return _0x27611a;_0x533360['clear']();for(const {suggestion:_0x382f84,meta:_0x3c0552}of this['_findSuggestions'](_0x4c6588,_0x321b('0x109')))_0x3c0552['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3c0552['containsRangeInObject']&&!_0x3c0552[_0x321b('0xfd')])&&Ot(_0x382f84,_0xddbe0f)&&_0x533360[_0x321b('0x129')](_0x382f84);for(const _0x1978fd of _0x533360){const _0x484553=_0x1978fd[_0x321b('0xfc')]();if(!_0xddbe0f||!_0xddbe0f['skipNestingCheck']){if(_0x4c6588[_0x321b('0x9b')](_0x307787=>_0x484553[_0x321b('0x41')](_0x1a76e4=>_0x1a76e4[_0x321b('0x80')](_0x307787,!0x0))))return _0x1978fd;}(!_0x1978fd['attributes']||!_0x1978fd[_0x321b('0xe')][_0x321b('0x8f')])&&(_0x484553[_0x321b('0x9b')](_0x1040bc=>_0x4c6588[_0x321b('0x41')](_0x3f4390=>_0x3f4390[_0x321b('0x80')](_0x1040bc,!0x0)))&&_0x1978fd[_0x321b('0x5')]());}const _0x256117=_0xb98dc5(),_0x5a527f=_0x257e44['id'],_0x51ee98=_0x321b('0x31')+_0x3e3e12,_0xe685b2=this['_setSuggestionData']({'id':_0x256117,'type':_0x51ee98,'createdAt':new Date(),'authorId':_0x5a527f,'attributes':_0xddbe0f});for(const _0x2256f5 of _0x4c6588)_0x2256f5['detach'](),_0x2256f5[_0x321b('0x60')]||_0x321b('0x11c')==_0x2256f5['root'][_0x321b('0x93')]||this[_0x321b('0x75')](_0x51ee98,_0x256117,_0x5a527f,_0x2256f5,_0x33435c[_0x321b('0x24')]());return _0xe685b2;}[_0x321b('0x7f')](_0x12967f,_0x45fc6e){const _0x23b6f3=_0x12967f[_0x321b('0x90')]();this[_0x321b('0xb5')][_0x321b('0xb')](_0x5e2426=>{_0x5e2426[_0x321b('0xb4')](_0x23b6f3,{'range':_0x45fc6e});});}[_0x321b('0x9c')](_0x53b48e){const _0x2eb982=_0x53b48e['id'],_0x24a1e2=this[_0x321b('0x113')][_0x321b('0x4d')][_0x321b('0xd5')](_0x321b('0x3e'));this['_commentsRepository'][_0x321b('0xa7')](_0x2eb982)||this[_0x321b('0x46')][_0x321b('0x5e')]({'channelId':_0x24a1e2,'threadId':_0x2eb982,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x71a6d4=this[_0x321b('0x46')][_0x321b('0x140')](_0x2eb982);_0x71a6d4[_0x321b('0x13d')]('isRemovable'),_0x71a6d4[_0x321b('0x44')]=!0x1,_0x53b48e[_0x321b('0xe0')]=_0x71a6d4;}['_checkSuggestionCorrectness'](_0x3d85aa,_0x7001a4,_0x28dd31,_0x218563){if(_0x3d85aa[_0x321b('0x143')]!=_0x7001a4||_0x3d85aa['subType']!=_0x28dd31||_0x3d85aa['creator']['id']!=_0x218563)throw this[_0x321b('0x113')][_0x321b('0x17')](_0x321b('0x4')),new _0x5e6c46('track-changes-suggestion-data-mismatch',this);}[_0x321b('0x1e')](_0x34fb89,_0x1975be){const _0x504b26=_0x34fb89['getFirstRange']();if(_0x1975be[_0x321b('0x6d')](_0x504b26))_0x34fb89[_0x321b('0x104')]();else{if(_0x504b26['containsRange'](_0x1975be)){const _0x114f63=this[_0x321b('0xb5')][_0x321b('0xe6')](_0x1975be[_0x321b('0xab')]['nodeBefore'],_0x321b('0x68'));this['_setSuggestionRange'](_0x34fb89,this[_0x321b('0xb5')][_0x321b('0x61')](_0x504b26['start'],_0x114f63));const _0x34c4e9=_0xb98dc5(),_0x1fd7df=_0x34fb89[_0x321b('0x8d')]['id'],_0x47c5b0=_0x34fb89[_0x321b('0x143')]+':'+_0x34fb89['subType'];this[_0x321b('0x43')]({'id':_0x34c4e9,'type':_0x47c5b0,'createdAt':new Date(),'authorId':_0x1fd7df,'data':_0x34fb89[_0x321b('0x42')],'attributes':_0x34fb89[_0x321b('0xe')]});const _0x4d0e31=this[_0x321b('0xb5')][_0x321b('0xe6')](_0x1975be[_0x321b('0x68')]['parent'],_0x321b('0x13')),_0x27124e=this['_model'][_0x321b('0x61')](_0x4d0e31,_0x504b26[_0x321b('0x68')]);this[_0x321b('0x75')](_0x47c5b0,_0x34c4e9,_0x1fd7df,_0x27124e);}else{if(_0x504b26['containsPosition'](_0x1975be[_0x321b('0xab')])){const _0x2835d1=this[_0x321b('0xb5')][_0x321b('0xe6')](_0x1975be[_0x321b('0xab')][_0x321b('0x52')],_0x321b('0x68'));this[_0x321b('0x7f')](_0x34fb89,this['_model'][_0x321b('0x61')](_0x504b26['start'],_0x2835d1));}else{const _0x1587dc=this[_0x321b('0xb5')][_0x321b('0xe6')](_0x1975be[_0x321b('0x68')]['parent'],_0x321b('0x13'));this[_0x321b('0x7f')](_0x34fb89,this['_model'][_0x321b('0x61')](_0x1587dc,_0x504b26[_0x321b('0x68')]));}}}}[_0x321b('0xf8')](_0x2acac6){for(const {suggestion:_0x185f63,meta:_0x42bb0a}of this[_0x321b('0xc')](_0x2acac6,_0x321b('0xdb'))){if(!_0x42bb0a[_0x321b('0x6f')])continue;const _0x5a7ff5=_0x185f63[_0x321b('0xfc')]();for(const _0x147023 of _0x5a7ff5)if(!_0x2acac6[_0x321b('0xf5')](_0x147023)['length'])return!0x0;}return!0x1;}[_0x321b('0x8a')](_0xfc1ede){const _0x25747f=this[_0x321b('0x113')][_0x321b('0xbc')]['get'](_0x321b('0x133'))[_0x321b('0x91')](_0xfc1ede);if(!_0x25747f)throw new _0x5e6c46(_0x321b('0xc7'),this);return _0x25747f;}['_getExternalAuthor'](_0x2b326f){const _0x46066d=this[_0x321b('0x113')][_0x321b('0xbc')]['get'](_0x321b('0x133')),_0x37cb79=_0x487437(_0x321b('0x19')+_0x2b326f),_0x5c592f=_0x46066d[_0x321b('0x91')](_0x37cb79);return _0x5c592f||_0x46066d[_0x321b('0x94')]({'id':_0x37cb79,'name':_0x2b326f});}[_0x321b('0xd1')](_0x40c7fb,_0x3342ec,_0x3d843d,_0x4b4dd8,_0x5ab4b9){const _0x107ca3=this[_0x321b('0x8a')](_0x4b4dd8),_0x5222ca=this['_suggestionFactory']['buildSuggestion'](_0x40c7fb,_0x3342ec,_0x3d843d,_0x107ca3,_0x5ab4b9,_0x2baa09=>this[_0x321b('0x18')](_0x3d843d,{'attributes':_0x2baa09}));return this[_0x321b('0xf1')](_0x5222ca,_0x321b('0xff'),()=>{this[_0x321b('0x18')](_0x3d843d,{'state':_0x321b('0xea')});},{'priority':_0x321b('0xaa')}),this['listenTo'](_0x5222ca,_0x321b('0x5'),()=>{this[_0x321b('0x18')](_0x3d843d,{'state':_0x321b('0x9e')});},{'priority':'high'}),this[_0x321b('0xb7')][_0x321b('0x12')](_0x3d843d,_0x5222ca),this[_0x321b('0xd9')][_0x321b('0x12')](_0x5222ca,_0x321b('0x14b')),_0x5222ca;}[_0x321b('0x70')](_0x3298bc){const _0x250c30=_0x3298bc[_0x321b('0xf4')](':');return{'group':_0x250c30[0x0],'type':_0x250c30[0x1],'subType':_0x250c30[_0x321b('0x108')]>=0x5?_0x250c30[0x2]:null,'id':_0x250c30[_0x321b('0x108')]<0x5?_0x250c30[0x2]:_0x250c30[0x3],'authorId':_0x250c30[_0x321b('0x108')]<0x5?_0x250c30[0x3]:_0x250c30[0x4],'markerCount':0x6==_0x250c30[_0x321b('0x108')]?_0x250c30[0x5]:null};}[_0x321b('0x81')](_0x56823e,_0x30c64d,_0x4c550d){const _0x4c8410=_0x56823e[_0x321b('0x29')](),_0x155b0d=_0x4c8410[_0x321b('0xab')],_0x10ee49=_0x4c8410[_0x321b('0x68')];this[_0x321b('0x7f')](_0x56823e,this[_0x321b('0xb5')]['createRange'](_0x155b0d,_0x30c64d));const _0x44df37=_0xb98dc5(),_0x2a6266=_0x56823e['creator']['id'],_0x43ce7c=_0x56823e['type']+(_0x56823e['subType']?':'+_0x56823e['subType']:'');this[_0x321b('0x43')]({'id':_0x44df37,'type':_0x43ce7c,'createdAt':new Date(),'authorId':_0x2a6266,'originalSuggestionId':_0x56823e['id'],'attributes':_0x56823e['attributes'],'data':_0x56823e[_0x321b('0x42')]}),_0x321b('0x66')==_0x56823e[_0x321b('0x143')]&&(_0x4c550d=this[_0x321b('0xb5')][_0x321b('0xfa')](_0x4c550d[_0x321b('0x8b')])),this[_0x321b('0x75')](_0x43ce7c,_0x44df37,_0x2a6266,this[_0x321b('0xb5')][_0x321b('0x61')](_0x4c550d,_0x10ee49));}[_0x321b('0xc')](_0x518264,_0x5eb1c4=null){const _0x5b27ca=[],_0x2bc4c9=this[_0x321b('0x113')][_0x321b('0xbc')][_0x321b('0xd5')](_0x321b('0x133'))['me'];Array[_0x321b('0x3f')](_0x518264)||(_0x518264=[_0x518264]);for(const _0x29e18b of this[_0x321b('0x35')]()){if(!_0x29e18b[_0x321b('0x34')])continue;if(_0x5eb1c4&&_0x29e18b['type']!=_0x5eb1c4)continue;let _0x1cea67=!0x1;for(const _0x4e5ceb of _0x29e18b[_0x321b('0xfc')]()){for(const _0x159285 of _0x518264){const _0x597960=_0x159285[_0x321b('0xab')][_0x321b('0x6d')](_0x4e5ceb[_0x321b('0x68')])||_0x159285[_0x321b('0x68')][_0x321b('0x6d')](_0x4e5ceb[_0x321b('0xab')]);if(_0x597960||_0x159285[_0x321b('0xc1')](_0x4e5ceb)){const _0x34ff63=_0x159285[_0x321b('0x80')](_0x4e5ceb)&&_t(this[_0x321b('0xb5')][_0x321b('0x79')],_0x4e5ceb[_0x321b('0xab')],_0x159285),_0x25f2d9=_0x4e5ceb[_0x321b('0x80')](_0x159285)&&_t(this['_model']['schema'],_0x159285[_0x321b('0xab')],_0x4e5ceb);_0x5b27ca[_0x321b('0xad')]({'suggestion':_0x29e18b,'meta':{'isOwn':_0x2bc4c9==_0x29e18b[_0x321b('0x14a')],'isNextTo':_0x597960,'isInsideObject':_0x34ff63,'containsRangeInObject':_0x25f2d9}}),_0x1cea67=!0x0;break;}}if(_0x1cea67)break;}}return _0x5b27ca;}[_0x321b('0x75')](_0x49927a,_0x515fe3,_0x13934a,_0x3f21d4,_0x120c0c){this['_model'][_0x321b('0xb')](_0x2aaebb=>{let _0x344a43=_0x321b('0x2')+_0x49927a+':'+_0x515fe3+':'+_0x13934a;_0x120c0c&&(_0x344a43=_0x344a43+':'+_0x120c0c),_0x2aaebb[_0x321b('0x110')](_0x344a43,{'range':_0x3f21d4,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x321b('0x5b')](_0x3b70eb){const _0x54573e=_0x3b70eb['previous'],_0x5c0a6b=_0x3b70eb[_0x321b('0x22')];_0x3b70eb[_0x321b('0x126')]=null,null!=_0x54573e&&(_0x54573e[_0x321b('0x22')]=null),_0x3b70eb[_0x321b('0x22')]=null,null!=_0x5c0a6b&&(_0x5c0a6b[_0x321b('0x126')]=null),'ready'==this[_0x321b('0xd9')][_0x321b('0xd5')](_0x3b70eb)&&(this[_0x321b('0xd9')][_0x321b('0x12')](_0x3b70eb,_0x321b('0x128')),this[_0x321b('0x1d')]('suggestionUnloaded',_0x3b70eb,_0x54573e,_0x5c0a6b));}['_setSuggestionData'](_0x3f683f){const _0x4a693e=_0x3f683f['id'],_0x39bbd8=this[_0x321b('0x102')](_0x3f683f);if(this[_0x321b('0x71')]&&this[_0x321b('0x71')][_0x321b('0x63')]){const _0xb68a44=this[_0x321b('0x113')][_0x321b('0xbc')]['get']('PendingActions'),_0x2ec882=_0x39bbd8[_0x321b('0xf')],_0x1adde4=_0x39bbd8[_0x321b('0x12a')]?_0x39bbd8['type']+':'+_0x39bbd8[_0x321b('0x12a')]:_0x39bbd8[_0x321b('0x143')],_0x3d9ed6=this['editor'][_0x321b('0x15')],_0xfd133d=_0xb68a44[_0x321b('0x129')](_0x7e15ee(_0x3d9ed6,_0x321b('0x47'))),_0x5afb66={'id':_0x4a693e,'type':_0x1adde4,'hasComments':_0x2ec882,'data':_0x3f683f[_0x321b('0x42')]||null,'originalSuggestionId':_0x3f683f['originalSuggestionId']||null,'attributes':_0x39bbd8[_0x321b('0xe')]};this[_0x321b('0x71')][_0x321b('0x63')](_0x5afb66)[_0x321b('0x13b')](_0xaa09b1=>{_0x39bbd8[_0x321b('0x10c')]=!0x0,_0xb68a44['remove'](_0xfd133d),_0xaa09b1&&_0xaa09b1[_0x321b('0x130')]&&(this[_0x321b('0xb7')]['get'](_0x4a693e)['createdAt']=_0xaa09b1['createdAt']);})[_0x321b('0x9f')](_0x3980ef=>{throw _0x3f53b3(_0x321b('0x50')),this[_0x321b('0x113')][_0x321b('0x10f')][_0x321b('0x148')]({'isUndoable':!0x1},()=>{_0x39bbd8[_0x321b('0x5')]();}),_0x39bbd8[_0x321b('0x27')](),this['_suggestions'][_0x321b('0x56')](_0x39bbd8['id']),this[_0x321b('0xd9')][_0x321b('0x56')](_0x39bbd8),_0x3980ef;});}return _0x39bbd8;}[_0x321b('0x18')](_0x570907,_0x4ec627){const _0x5297ee=this[_0x321b('0x113')]['plugins'][_0x321b('0xd5')]('PendingActions'),_0xeeb20f=this[_0x321b('0x33')](_0x570907);if(this[_0x321b('0x71')]&&this['_adapter'][_0x321b('0xef')]){if(_0xeeb20f['_saved']){const _0x5efcce=_0x5297ee[_0x321b('0x129')](_0x7e15ee(this[_0x321b('0x113')][_0x321b('0x15')],_0x321b('0x47')));this[_0x321b('0x71')]['updateSuggestion'](_0x570907,_0x4ec627)['then'](()=>{_0x5297ee[_0x321b('0x3a')](_0x5efcce);});}else _0xeeb20f['on']('change:_saved',()=>{this[_0x321b('0x18')](_0x570907,_0x4ec627);});}}[_0x321b('0x123')](_0x42eefa){if(!this[_0x321b('0x71')]||!this['_adapter'][_0x321b('0x33')])throw new _0x5e6c46('track-changes-adapter-missing-getsuggestion',this);return this[_0x321b('0x71')][_0x321b('0x33')](_0x42eefa);}[_0x321b('0x7a')](_0x584829){const {id:_0x5b8ec3,type:_0x50c098,subType:_0x5884d3,authorId:_0x107b08}=this['_splitMarkerName'](_0x584829),_0x95e370=this[_0x321b('0xb7')]['get'](_0x5b8ec3)||this[_0x321b('0xd1')](_0x50c098,_0x5884d3,_0x5b8ec3,_0x107b08,{});switch(this[_0x321b('0xae')](_0x95e370,_0x50c098,_0x5884d3,_0x107b08),this[_0x321b('0xd9')][_0x321b('0xd5')](_0x95e370)){case'notReady':this[_0x321b('0x123')](_0x5b8ec3)['then'](_0x24aa13=>{let _0x18630a=Promise[_0x321b('0x12e')]();_0x24aa13['hasComments']&&(_0x18630a=this['_commentsRepository'][_0x321b('0xa2')]({'channelId':this[_0x321b('0x113')]['config'][_0x321b('0xd5')](_0x321b('0x3e')),'threadId':_0x5b8ec3})),_0x18630a[_0x321b('0x13b')](()=>{this[_0x321b('0x102')](_0x24aa13)[_0x321b('0x10c')]=!0x0;});}),this[_0x321b('0xd9')][_0x321b('0x12')](_0x95e370,_0x321b('0x114'));break;case _0x321b('0x128'):this[_0x321b('0x18')](_0x5b8ec3,{'state':_0x321b('0x64')});case _0x321b('0x72'):this[_0x321b('0xd9')][_0x321b('0x12')](_0x95e370,_0x321b('0xde')),this['fire'](_0x321b('0x147'),_0x95e370);break;case'ready':this[_0x321b('0x1d')](_0x321b('0x28'),_0x95e370);}return _0x95e370[_0x321b('0x144')](_0x584829),_0x95e370;}[_0x321b('0x13e')](_0x1ac5c4){const _0x223635=Array[_0x321b('0x121')](_0x1ac5c4)[_0x321b('0xc8')](_0x4324e2=>!_0x4324e2[_0x321b('0xac')]),_0x186ecc=this[_0x321b('0x35')]({'skipNotAttached':!0x0})['filter'](_0x53ca10=>!_0x53ca10[_0x321b('0xac')]),_0x5e1f5e=_0x186ecc['filter'](_0x2b732d=>!_0x1ac5c4[_0x321b('0xcb')](_0x2b732d)),_0x175bfb=new Map(_0x186ecc['map'](_0x55851d=>[_0x55851d,this[_0x321b('0x5f')][_0x321b('0x10a')](_0x55851d[_0x321b('0x143')],_0x55851d[_0x321b('0x12a')],'chain')])),_0x194a92=new Map(_0x186ecc[_0x321b('0xc9')](_0x56d841=>[_0x56d841,_0x56d841[_0x321b('0x29')]()])),_0x1dbf61=new Set(),_0x3fd80f=new Set();for(let _0x19a116=0x0;_0x19a116<_0x223635['length'];_0x19a116++)_0x22ccef(_0x223635[_0x19a116],_0x223635,_0x19a116+0x1);for(let _0x53c5ec=0x0;_0x53c5ec<_0x223635[_0x321b('0x108')];_0x53c5ec++)_0x22ccef(_0x223635[_0x53c5ec],_0x5e1f5e,0x0);for(let _0x5b95b0=0x0;_0x5b95b0<_0x223635[_0x321b('0x108')];_0x5b95b0++){const _0x38f8c6=_0x223635[_0x5b95b0];!_0x3fd80f[_0x321b('0xcb')](_0x38f8c6)&&_0x38f8c6['previous']&&(_0x38f8c6[_0x321b('0x126')][_0x321b('0x22')]===_0x38f8c6&&(_0x38f8c6[_0x321b('0x126')][_0x321b('0x22')]=null),_0x38f8c6[_0x321b('0x126')]=null),!_0x1dbf61[_0x321b('0xcb')](_0x38f8c6)&&_0x38f8c6[_0x321b('0x22')]&&(_0x38f8c6[_0x321b('0x22')][_0x321b('0x126')]===_0x38f8c6&&(_0x38f8c6[_0x321b('0x22')][_0x321b('0x126')]=null),_0x38f8c6['next']=null);}function _0x22ccef(_0x700805,_0x174a5f,_0x2de987){for(let _0x112f3d=_0x2de987;_0x112f3d<_0x174a5f[_0x321b('0x108')];_0x112f3d++){const _0x1b0e5c=_0x134c0d(_0x700805,_0x174a5f[_0x112f3d]);_0x1b0e5c&&(_0x1b0e5c[0x0][_0x321b('0x22')]=_0x1b0e5c[0x1],_0x1b0e5c[0x1][_0x321b('0x126')]=_0x1b0e5c[0x0],_0x1dbf61[_0x321b('0x129')](_0x1b0e5c[0x0]),_0x3fd80f['add'](_0x1b0e5c[0x1]));}}function _0x134c0d(_0x5b673d,_0x2c7712){if(_0x5b673d[_0x321b('0x14a')]['id']!==_0x2c7712[_0x321b('0x14a')]['id'])return null;const _0x5d65e4=_0x175bfb[_0x321b('0xd5')](_0x5b673d)(_0x5b673d,_0x2c7712,_0x194a92[_0x321b('0xd5')](_0x5b673d),_0x194a92[_0x321b('0xd5')](_0x2c7712));if(!_0x5d65e4)return null;return _0x175bfb['get'](_0x2c7712)(_0x5b673d,_0x2c7712,_0x194a92[_0x321b('0xd5')](_0x5b673d),_0x194a92[_0x321b('0xd5')](_0x2c7712))?_0x5d65e4[0x1]['commentThread']&&_0x5d65e4[0x1]['commentThread']['length']?null:_0x5d65e4:null;}}[_0x321b('0xe9')](_0x275845){const _0x4505a9=Array[_0x321b('0x121')](_0x275845),_0xcf4e19=this['getSuggestions']({'skipNotAttached':!0x0}),_0x36e415=_0xcf4e19[_0x321b('0xc8')](_0x3c2f7d=>!_0x275845['has'](_0x3c2f7d)),_0x4778a0=new Map(_0x4505a9['map'](_0x406738=>[_0x406738,this[_0x321b('0x5f')][_0x321b('0x10a')](_0x406738[_0x321b('0x143')],_0x406738[_0x321b('0x12a')],_0x321b('0xdd'))])),_0x2c2126=new Map(_0xcf4e19[_0x321b('0xc9')](_0x287879=>[_0x287879,_0x287879[_0x321b('0xfc')]()]));for(let _0x4aa469=0x0;_0x4aa469<_0x4505a9[_0x321b('0x108')];_0x4aa469++){if(_0x3df4cd(this,_0x4505a9[_0x4aa469],_0x4505a9,_0x4aa469+0x1))return!0x0;}for(let _0x32664e=0x0;_0x32664e<_0x4505a9['length'];_0x32664e++){if(_0x3df4cd(this,_0x4505a9[_0x32664e],_0x36e415,0x0))return!0x0;}return!0x1;function _0x3df4cd(_0x7bf89,_0x335d00,_0x4856ab,_0x530fae){for(let _0x4b9d95=_0x530fae;_0x4b9d95<_0x4856ab[_0x321b('0x108')];_0x4b9d95++){const _0x3852fa=_0x4856ab[_0x4b9d95];if(_0x3852fa[_0x321b('0x143')]!==_0x335d00[_0x321b('0x143')]||_0x3852fa[_0x321b('0x14a')]['id']!==_0x335d00[_0x321b('0x14a')]['id']||_0x3852fa['subType']!==_0x335d00[_0x321b('0x12a')])continue;if(!Ut(_0x335d00,_0x3852fa))continue;const _0x49d622=_0x4778a0[_0x321b('0xd5')](_0x335d00),_0x4b7ae1=_0x2c2126[_0x321b('0xd5')](_0x335d00),_0x149270=_0x2c2126[_0x321b('0xd5')](_0x3852fa),_0x4fb6c1=_0x335d00[_0x321b('0xe0')]&&_0x335d00[_0x321b('0xe0')][_0x321b('0x108')],_0x4eafe2=_0x3852fa[_0x321b('0xe0')]&&_0x3852fa['commentThread'][_0x321b('0x108')];if(!_0x4fb6c1&&_0x49d622(_0x149270,_0x4b7ae1))return _0x7bf89[_0x321b('0xb6')](_0x3852fa,_0x335d00),_0x2c2126[_0x321b('0x56')](_0x335d00),!0x0;if(!_0x4eafe2&&_0x49d622(_0x4b7ae1,_0x149270))return _0x7bf89[_0x321b('0xb6')](_0x335d00,_0x3852fa),_0x2c2126[_0x321b('0x56')](_0x3852fa),!0x0;}return!0x1;}}[_0x321b('0xb6')](_0x50b471,_0x2ec12e){if(_0x50b471[_0x321b('0xac')])for(const _0x10ccc4 of _0x2ec12e['getRanges']())_0x50b471['addRange'](_0x10ccc4);else{const _0x580aca=_0x2ec12e[_0x321b('0x29')]()[_0x321b('0x68')];this[_0x321b('0x7f')](_0x50b471,this[_0x321b('0xb5')]['createRange'](_0x50b471[_0x321b('0x29')]()['start'],_0x580aca));}_0x2ec12e['removeMarkers']();}}class Bt{constructor(_0x1cc07e){this['_editor']=_0x1cc07e,this[_0x321b('0xb5')]=_0x1cc07e[_0x321b('0x10f')],this['_customCallbacks']=new Map(),this[_0x321b('0x53')]=new Map(),this[_0x321b('0xeb')]();}[_0x321b('0xa8')](_0x3892d8,_0xce5b06,_0x5b75d7,_0x260ac4,_0x11bd57,_0x573b7a){return new _0x33435c(this[_0x321b('0xb5')],{'type':_0x3892d8,'subType':_0xce5b06,'id':_0x5b75d7,'author':_0x260ac4,'creator':_0x260ac4,'attributes':_0x11bd57,'onAttributesChange':_0x573b7a,'onAccept':(..._0x283b92)=>this[_0x321b('0x10a')](_0x3892d8,_0xce5b06,_0x321b('0xff'))(..._0x283b92),'onDiscard':(..._0x4942c9)=>this[_0x321b('0x10a')](_0x3892d8,_0xce5b06,'discard')(..._0x4942c9)});}[_0x321b('0x39')](_0xb633c7,_0x2e6b33,_0x2ef2aa,_0x11461e){const _0x2301c2=_0xb633c7+':'+_0x2e6b33+':'+_0x2ef2aa;this['_customCallbacks'][_0x321b('0x12')](_0x2301c2,_0x11461e);}[_0x321b('0x10a')](_0x9189da,_0x5b9ea7,_0x1cfe81){const _0x3ba4bf=_0x9189da+':'+_0x5b9ea7+':'+_0x1cfe81;return this[_0x321b('0xa9')][_0x321b('0xd5')](_0x3ba4bf)||this['_defaultCallbacks'][_0x321b('0xd5')](_0x9189da+':'+_0x1cfe81);}[_0x321b('0xeb')](){const _0xfcf486=()=>!0x1,_0x11498b=_0x26a31f=>{_0x26a31f['sort']((_0x586620,_0x636366)=>_0x586620[_0x321b('0xab')]['isBefore'](_0x636366[_0x321b('0xab')])?0x1:-0x1),this['_model'][_0x321b('0xb')](_0x34eaae=>{for(const _0x191b1f of _0x26a31f){let _0x1c5ea7;_0x1c5ea7=_0x191b1f[_0x321b('0x68')][_0x321b('0x101')]&&_0x191b1f[_0x321b('0x68')][_0x321b('0x8b')]==_0x191b1f[_0x321b('0xab')]['nodeAfter']?_0x34eaae[_0x321b('0xa4')](_0x191b1f[_0x321b('0xab')][_0x321b('0x87')],'on'):_0x34eaae[_0x321b('0xa4')](_0x191b1f),this[_0x321b('0xb5')][_0x321b('0x10e')](_0x1c5ea7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5eb918=(_0x4e79c9,_0x8e2124)=>{this[_0x321b('0xb5')][_0x321b('0xb')](_0x45d5a3=>{const {commandName:_0x1cd4dc,commandParams:_0x4c4579=[]}=_0x8e2124,_0x4d0da0=_0x4e79c9[_0x321b('0xc9')](_0x403a06=>(Mt(_0x403a06)&&(_0x403a06=this[_0x321b('0xb5')][_0x321b('0x61')](_0x403a06['end'])),_0x403a06))[_0x321b('0xc8')](_0x3dc2de=>_0x321b('0x11c')!==_0x3dc2de[_0x321b('0x1')]['rootName']);if(_0x4d0da0[_0x321b('0x108')]<0x1)return;const _0x43be94=Array['from'](this[_0x321b('0xb5')][_0x321b('0xd')]['selection'][_0x321b('0xfc')]())[_0x321b('0xc9')](_0x4fd7c6=>_0x236dbf[_0x321b('0x96')](_0x4fd7c6));_0x45d5a3[_0x321b('0x3c')](_0x4d0da0);for(const _0x33fc5e of this[_0x321b('0x69')]['commands']['commands']())_0x33fc5e[_0x321b('0x100')]();_0x4c4579[_0x321b('0xad')]({'forceDefaultExecution':!0x0}),this[_0x321b('0x69')][_0x321b('0x138')](_0x1cd4dc,..._0x4c4579);const _0x2f9cbe=_0x43be94['filter'](_0x5e776b=>_0x321b('0x11c')!=_0x5e776b['root'][_0x321b('0x93')]);_0x2f9cbe[_0x321b('0x108')]>0x0&&_0x45d5a3['setSelection'](_0x2f9cbe);for(const _0x45a5c6 of _0x43be94)_0x45a5c6[_0x321b('0x120')]();});},_0xdfec37=(_0x10b74a,_0x4aaab0)=>0x1==_0x10b74a[_0x321b('0x108')]&&0x1==_0x4aaab0[_0x321b('0x108')]&&_0x10b74a[0x0]['end'][_0x321b('0x6d')](_0x4aaab0[0x0][_0x321b('0xab')]),_0x10cf8a=(_0x59f181,_0x204a12,_0x2fbe0a,_0x2308b9)=>xt(_0x59f181,_0x204a12,_0x2fbe0a,_0x2308b9,this[_0x321b('0xb5')])?[_0x59f181,_0x204a12]:xt(_0x204a12,_0x59f181,_0x2308b9,_0x2fbe0a,this['_model'])?[_0x204a12,_0x59f181]:null;this[_0x321b('0x53')]['set'](_0x321b('0x12f'),_0xfcf486),this[_0x321b('0x53')]['set']('insertion:discard',_0x11498b),this['_defaultCallbacks'][_0x321b('0x12')](_0x321b('0xca'),_0xdfec37),this[_0x321b('0x53')]['set'](_0x321b('0x8c'),_0x10cf8a),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x4e'),_0x11498b),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x8'),_0xfcf486),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x103'),_0xdfec37),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0xc2'),_0x10cf8a),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x86'),_0x5eb918),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x45'),_0xfcf486),this[_0x321b('0x53')]['set'](_0x321b('0x1c'),_0xdfec37),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0xda'),_0xfcf486),this[_0x321b('0x53')]['set'](_0x321b('0x11'),_0x5eb918),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x9a'),_0xfcf486),this['_defaultCallbacks'][_0x321b('0x12')](_0x321b('0x146'),_0xdfec37),this['_defaultCallbacks'][_0x321b('0x12')](_0x321b('0x105'),_0xfcf486);}}function _t(_0x36ee35,_0x5b912c,_0x33b634){for(const _0x30ff29 of _0x5b912c['parent'][_0x321b('0x82')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x30ff29[_0x321b('0x1')]==_0x30ff29)return!0x1;if(!_0x33b634[_0x321b('0x116')](_0x30ff29))return!0x1;if(_0x36ee35['isObject'](_0x30ff29)||_0x36ee35[_0x321b('0x106')](_0x30ff29))return!0x0;}return!0x1;}function Mt(_0x45674f){return _0x45674f['end'][_0x321b('0x8b')]==_0x45674f[_0x321b('0xab')][_0x321b('0x87')]&&_0x45674f[_0x321b('0x68')][_0x321b('0xce')];}function $t(_0x3e2b87,_0x4fd034,_0x2d271c,_0x2201ad){const _0x470ce9=_0x58da4d=>!_0x58da4d[_0x321b('0x3b')]['is'](_0x321b('0x84'))&&!_0x2201ad[_0x321b('0x21')](_0x58da4d[_0x321b('0x3b')]),_0x174b21=_0x3e2b87[_0x321b('0xab')][_0x321b('0x149')](_0x470ce9),_0x4f7a66=_0x3e2b87['end'][_0x321b('0x149')](_0x470ce9,{'direction':_0x321b('0x54')});return(!_0x3e2b87[_0x321b('0xab')][_0x321b('0x6d')](_0x174b21)||!_0x3e2b87['end']['isEqual'](_0x4f7a66))&&(_0x174b21[_0x321b('0x2f')](_0x4f7a66)?_0x2d271c[_0x321b('0xb4')](_0x4fd034,{'range':_0x2d271c['createRange'](_0x174b21,_0x4f7a66)}):_0x2d271c[_0x321b('0x14')](_0x4fd034),!0x0);}function Nt(_0x3fe3ef){return _0x487437(_0x3fe3ef);}function Rt(_0x434dd1){const _0x11277c=_0x434dd1[_0x321b('0xab')]['nodeAfter'];return _0x11277c&&_0x11277c['is']('element');}function jt(_0x60e410,_0x4bfd18){const _0xdf0b36=_0x4bfd18[_0x321b('0x79')][_0x321b('0x21')](_0x60e410)||_0x4bfd18[_0x321b('0x79')]['isSelectable'](_0x60e410);return _0x4bfd18['createRange'](_0x4bfd18[_0x321b('0xe6')](_0x60e410,_0x321b('0xf6')),_0xdf0b36?_0x4bfd18[_0x321b('0x6c')](_0x60e410):_0x4bfd18[_0x321b('0xe6')](_0x60e410,_0x321b('0x68')));}function xt(_0x922478,_0x39fbc9,_0x3005a1,_0xda2e92,_0x4b85ca){if(!Ut(_0x922478,_0x39fbc9))return!0x1;if(_0x3005a1[_0x321b('0x68')]['isEqual'](_0xda2e92[_0x321b('0xab')]))return!0x0;if(_0x922478[_0x321b('0x143')]!=_0x39fbc9[_0x321b('0x143')])return!0x1;if(!_0x3005a1[_0x321b('0x68')]['isTouching'](_0xda2e92[_0x321b('0xab')]))return!0x1;const _0x593af3=_0x4b85ca[_0x321b('0x61')](_0x3005a1[_0x321b('0x68')],_0xda2e92['start'])[_0x321b('0x1b')]();for(const _0x42e0b6 of _0x593af3)if([_0x321b('0xd7'),_0x321b('0x7d')][_0x321b('0x135')](_0x42e0b6['type'])&&_0x4b85ca[_0x321b('0x79')]['isLimit'](_0x42e0b6[_0x321b('0x3b')]))return!0x1;return!0x0;}function Ut(_0x30b66d,_0x2fb977){return!(!_0x30b66d[_0x321b('0x10d')]||!_0x2fb977['_isDataLoaded'])&&_0x49a32e(_0x30b66d['attributes'],_0x2fb977[_0x321b('0xe')]);}function Ot(_0x1b2866,_0x31db03){const _0x5515f6=Et(_0x1b2866[_0x321b('0xe')]),_0x5173d9=Et(_0x31db03);if(!_0x1b2866[_0x321b('0x10d')])return!0x1;for(const _0x2ea665 of Object[_0x321b('0xe5')](_0x5173d9))if(!_0x49a32e(_0x5515f6[_0x2ea665],_0x5173d9[_0x2ea665]))return!0x1;return!0x0;}function Et(_0x569fc3){const _0x4d47c9=Object[_0x321b('0x4c')]({},_0x569fc3);return delete _0x4d47c9[_0x321b('0x8f')],delete _0x4d47c9[_0x321b('0x48')],_0x4d47c9;}