@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230704.0 → 0.0.0-nightly-20230706.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-
|
|
3
|
+
"version": "0.0.0-nightly-20230706.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-
|
|
43
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
42
|
+
"ckeditor5": "0.0.0-nightly-20230706.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230706.0",
|
|
44
44
|
"lodash-es": "^4.17.11"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3e51=['getLastMatchingPosition','updateSuggestion','position','insertion','getFirstRange','deletion','every','$graveyard','map','multipleBlocks','rethrowUnexpectedError','detach','formatInline:accept','suggestionChanged','getCustomProperty','_checkSuggestionCorrectness','originalSuggestionId','formatGroupId','track-changes-adapter-already-set','getCommentThread','addSuggestionData','_suggestions','isNextTo','range','insertion:chain','element','markMultiRangeDeletion','formatBlock:','getAllAdjacentSuggestions','getUser','moveTargetPosition','size','_saved','_editor','forceDefaultExecution','unbindElementFromMarkerName','PENDING_ACTION_SUGGESTION','getSuggestionCallback','applyOperation','isOwn','getSuggestions','markers','_adapter','isBlock','getMarkers','formatBlock:join','ck-suggestion-marker','name','substr','fromCharCode','execute','formatBlock','getChanges','enableReadOnlyMode','isEqual','isObject','addMarker:suggestion:formatBlock','locale','containsRangeInObject','_getAuthorFromId','trackChanges.trackFormatChanges','lowest','ck-suggestion-marker-formatBlock','ck-suggestion-marker-','schema','discardAllSuggestions','CommentsRepository','elementToElement','_updateSuggestionData','activeMarkers','model','TrackChangesEditing','attributes','getDifference','get','registerPostFixer','discard','track-changes-suggestion-data-mismatch','root','define','_joinSuggestions','_suggestionState','setAttribute','newRange','commands','deletion:','formatInline:','createdAt','add','item','has','creator','never','acceptSelectedSuggestions','toViewElement','discardSuggestion','markInsertion','splice','updateMarker','backward','removeMarker','split','length','insertion:discard','multi','plugins','init','oldRange','dataDowncast','markDeletion','editor','ck-suggestion-marker--active','addRange','addClass','commentThread','values','options','notReady','next','then','commandName','splitPosition','_getExternalAuthor','getAncestors','nodeBefore','formatInline:discard','addCommentThread','buildSuggestion','containsRange','change:_saved','_handleNewSuggestionMarker','isAtEnd','mapper','rejected','document','some','authoredAt','catch','batch','hasComments','markerReady','setSelection','getSuggestion','markerToHighlight','_breakSuggestionMarker','accept','push','move','insert','join','@external','createPositionAt','listenTo','data-suggestion','_rangeIsInLocalUserInsertion','getAttribute','error-saving-suggestion-data-suggestion-discarded','addMarkerName','_setSuggestionData','removeClass','removeMarker:suggestion:formatBlock','start','deletion:chain','_refreshSuggestionsChain','getIntersection','_descriptionFactory','trackChanges.mergeNestedSuggestions','type','_createSuggestion','_joinWithAdjacentSuggestions','_defaultCallbacks','hasCommentThread','subType','formatInline:chain','removeMarkers','fetchCommentThread','adapter','upcast','containerElement','differ','$textProxy','_commentsRepository','_suggestionFactory','isAtStart','_onDiscard','stopListening','createPositionBefore','widget','suggestion','always','isDocumentOperation','rootName','suggestionUnloaded','formatInline:join','deletion:discard','ready','isCollapsed','isAfter','formatBlock:accept','config','createElement','markInlineFormat','_getSuggestionData','suggestionLoaded','from','getFirstMarker','filter','isExternal','conversion','showSuggestionHighlights','_mergeNestedSuggestions','requires','discardSelectedSuggestions','before','removed','trackChangesCommand','containsPosition','_enabledCommands','getShiftedBy','_splitMarkerName','skipNestingCheck','author','getChangedMarkers','chain','return','addUser','_setSuggestionRange','addHighlight','isMultiRange','fire','deleteContent','set','_registerDefaultCallbacks','suggestion:','high','insertion:join','consume','_model','_customCallbacks','Users','update:suggestion','acceptSuggestion','pluginName','track-changes-suggestion-not-found','change:activeMarkers','formatInline','previous','_findSuggestions','PendingActions','getMultiRangeId','reconvertMarker','marker-count','writer','collaboration.channelId','includes','unbind','remove','acceptAllSuggestions','selection','createPositionAfter','markerToData','howMany','editingDowncast','isInContent','track-changes-user-not-found','isRemovable','getRange','_addSuggestionMarker','enableCommand','toJSON','nodeAfter','data','formatBlock:discard','for','enqueueChange','value','trackChanges','elementStart','getRanges','highest','$marker','_trackFormatChanges','insertContent','addSuggestion','dataReady','isLimit','hasSuggestion','low','targetPosition','authorName','addMarker:suggestion','removeAttribute','_removeSuggestion','_cutOutSuggestionMarker','isBefore','track-changes-command-not-found','deletion:accept','markMultiRangeInsertion','stop','end','isUndo','createRange','normal','group','default','markerName','parent','editing','change','_isForcedDefaultExecutionBlock','consumable','getNearestSelectionRange','open','delete'];(function(_0x803033,_0x3e516b){const _0x256147=function(_0x46fd2e){while(--_0x46fd2e){_0x803033['push'](_0x803033['shift']());}};_0x256147(++_0x3e516b);}(_0x3e51,0x85));const _0x2561=function(_0x803033,_0x3e516b){_0x803033=_0x803033-0x0;let _0x256147=_0x3e51[_0x803033];return _0x256147;};import{Plugin as _0x5bf3c1,PendingActions as _0x5af4cb}from'ckeditor5/src/core';import{LiveRange as _0x5d92ab}from'ckeditor5/src/engine';import{CKEditorError as _0x17f068,uid as _0x38ee88,priorities as _0x50f35b,logWarning as _0x189a2d}from'ckeditor5/src/utils';import{toWidget as _0x28d3f2}from'ckeditor5/src/widget';import{Users as _0xe89e71,hashObject as _0x1cec4d}from'ckeditor5-collaboration/src/collaboration-core';import _0x37d138 from'./commands/trackchangescommand';import _0x187854 from'./commands/acceptsuggestioncommand';import _0x40c7fb from'./commands/discardsuggestioncommand';import _0x231c14 from'./commands/executeonallsuggestionscommand';import _0x4b7490 from'./commands/executeonselectedsuggestionscommand';import _0x2c377e from'./suggestion';import _0x4634ae from'./suggestiondescriptionfactory';import _0x160498 from'./integrations/alignment';import _0x43a859 from'./integrations/basicstyles';import _0x18e5e6 from'./integrations/blockquote';import _0x17a921 from'./integrations/ckbox';import _0x4945ff from'./integrations/codeblock';import _0x215336 from'./integrations/comments';import _0xc2439 from'./integrations/deletecommand';import _0x388754 from'./integrations/documentlist';import _0x50a94f from'./integrations/entercommand';import _0x4ff208 from'./integrations/findandreplace';import _0x2c3283 from'./integrations/font';import _0x12c705 from'./integrations/formatpainter';import _0x1cdc30 from'./integrations/heading';import _0x19a542 from'./integrations/highlight';import _0x35e3f2 from'./integrations/horizontalline';import _0x1bdafa from'./integrations/htmlembed';import _0x18de58 from'./integrations/image';import _0xe17976 from'./integrations/imagereplace';import _0x4a1a93 from'./integrations/importword';import _0x399790 from'./integrations/indent';import _0x4a3055 from'./integrations/inputcommand';import _0x1f9349 from'./integrations/link';import _0x3f8704 from'./integrations/list';import _0x24942d from'./integrations/listproperties';import _0x50f99c from'./integrations/mediaembed';import _0x52d529 from'./integrations/mention';import _0x36ee64 from'./integrations/pagebreak';import _0x1170c4 from'./integrations/paragraph';import _0x5de46e from'./integrations/removeformat';import _0x2c5c08 from'./integrations/restrictededitingmode';import _0x1c7a82 from'./integrations/shiftentercommand';import _0x5c7f28 from'./integrations/standardeditingmode';import _0x354d2c from'./integrations/style';import _0x1bdd50 from'./integrations/table';import _0x2ef876 from'./integrations/tablemergesplit';import _0x13a393 from'./integrations/tableheadings';import _0x4610ab from'./integrations/tableclipboard';import _0x907425 from'./integrations/tablecolumnresize';import _0x4f945c from'./integrations/template';import _0x5c643a from'./integrations/tableofcontents';import _0x34a45d from'./integrations/title';import _0xe7efb6 from'./integrations/undo';import{getTranslation as _0x22120c}from'./utils/common-translations';import _0x56aa2d from'./integrations/tablecaption';import _0x3fd98b from'./integrations/documentlistproperties';import _0x97de4c from'./integrations/tableproperties';export default class p extends _0x5bf3c1{static get[_0x2561('0x4e')](){return[_0x2561('0xf7'),_0xe89e71,_0x5af4cb,_0x160498,_0x43a859,_0x18e5e6,_0x17a921,_0x4945ff,_0x215336,_0xc2439,_0x388754,_0x3fd98b,_0x50a94f,_0x4ff208,_0x2c3283,_0x12c705,_0x1cdc30,_0x19a542,_0x35e3f2,_0x1bdafa,_0x18de58,_0xe17976,_0x4a1a93,_0x399790,_0x4a3055,_0x1f9349,_0x3f8704,_0x24942d,_0x50f99c,_0x52d529,_0x36ee64,_0x1170c4,_0x5de46e,_0x2c5c08,_0x1c7a82,_0x5c7f28,_0x354d2c,_0x1bdd50,_0x2ef876,_0x13a393,_0x56aa2d,_0x4610ab,_0x907425,_0x5c643a,_0x97de4c,_0x4f945c,_0x34a45d,_0xe7efb6];}static get[_0x2561('0x6d')](){return _0x2561('0xfc');}constructor(_0x2c247a){function _0x5c8741(_0x4a7a08){return _0x4a7a08[_0x2561('0xbd')](_0x37a523=>String[_0x2561('0xe6')](_0x37a523))[_0x2561('0x10')]('');}super(_0x2c247a),this[_0x2561('0x62')](_0x2561('0xfa'),[]),this['on'](_0x2561('0x6f'),(_0x5df133,_0x52280c,_0x42f97f,_0x3c46f2)=>{this[_0x2561('0x68')][_0x2561('0xaf')](()=>{for(const _0x303544 of[..._0x3c46f2,..._0x42f97f])this[_0x2561('0x68')][_0x2561('0xde')][_0x2561('0x10f')](_0x303544)&&_0x2c247a[_0x2561('0xae')][_0x2561('0x75')](_0x303544);});}),this[_0x2561('0x20')]=new _0x4634ae(this[_0x2561('0x123')]['model'][_0x2561('0xf5')],this[_0x2561('0x123')][_0x2561('0xee')]),this[_0x2561('0xdf')]=null,this[_0x2561('0x31')]=new Dt(this[_0x2561('0x123')]),this['_suggestions']=new Map(),this[_0x2561('0x30')]=_0x2c247a[_0x2561('0x11e')][_0x2561('0xff')](_0x2561('0xf7')),this[_0x2561('0x54')]=new Set(),this['_model']=this[_0x2561('0x123')]['model'],this[_0x2561('0x106')]=new WeakMap(),this[_0x2561('0xb0')]=!0x1,_0x2c247a[_0x2561('0x42')][_0x2561('0x104')](_0x2561('0xf1'),_0x2561('0xab')),this[_0x2561('0x94')]=_0x2c247a[_0x2561('0x42')][_0x2561('0xff')](_0x2561('0xf1')),_0x2c247a[_0x2561('0x42')][_0x2561('0x104')](_0x2561('0x21'),!0x0),this[_0x2561('0x4d')]=_0x2c247a[_0x2561('0x42')][_0x2561('0xff')]('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _0x37d138(_0x2c247a,this[_0x2561('0x54')]),this[_0x5c8741([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5c8741([0x34,0x30,0x34,0x36,0x31,0x34,0x30,0x38]);}[_0x2561('0x11f')](){const _0x3ae490=this[_0x2561('0x123')];_0x3ae490[_0x2561('0x4b')][_0x2561('0x8c')]('editingDowncast')[_0x2561('0xa')]({'model':_0x2561('0x37'),'view':_0x279802=>{const {id:_0x2c76f6,type:_0x3413a1}=this[_0x2561('0x56')](_0x279802[_0x2561('0xac')]),_0x5b9765=[_0x2561('0xe3'),_0x2561('0xf4')+_0x3413a1];let _0x52b866=0xbb8;return this[_0x2561('0xfa')][_0x2561('0x79')](_0x279802[_0x2561('0xac')])&&(_0x5b9765[_0x2561('0xd')](_0x2561('0x124')),_0x52b866=0xbc2),_0x2561('0xba')==_0x3413a1&&(_0x52b866+=0x5),{'classes':_0x5b9765,'attributes':{'data-suggestion':_0x2c76f6},'priority':_0x52b866};}}),_0x3ae490[_0x2561('0x4b')][_0x2561('0x8c')](_0x2561('0x121'))[_0x2561('0x10d')](_0x3f7683=>{_0x3f7683['on'](_0x2561('0x9d'),(_0x5bf25b,_0x30b95b,_0x23d7d8)=>{if(!_0x23d7d8['options'][_0x2561('0x4c')])return;const _0x36514d=_0x30b95b[_0x2561('0x10e')];if(!_0x36514d)return;const _0x679263=_0x23d7d8['mapper'][_0x2561('0x113')](_0x36514d);_0x3ae490[_0x2561('0xfb')]['schema']['isObject'](_0x36514d)&&_0x679263&&!_0x679263[_0x2561('0xc3')](_0x2561('0x36'))&&_0x679263['is'](_0x2561('0x2d'))&&_0x28d3f2(_0x679263,_0x23d7d8[_0x2561('0x77')]);},{'priority':_0x2561('0x65')});}),_0x3ae490[_0x2561('0x4b')][_0x2561('0x8c')]('dataDowncast')[_0x2561('0xa')]({'model':'suggestion','view':(_0xc53bf1,_0x266c48)=>{if(!_0x266c48[_0x2561('0x129')][_0x2561('0x4c')])return null;const {type:_0x289669}=this[_0x2561('0x56')](_0xc53bf1[_0x2561('0xac')]);return{'classes':[_0x2561('0xe3'),'ck-suggestion-marker-'+_0x289669],'priority':0xbb8};}});const _0x1b7ca8=({showActiveMarkers:_0x26ba2f=!0x0}={})=>(_0x476733,_0x3f82de,_0x49e5fb)=>{if(!_0x3f82de['item'])return;if(_0x3f82de[_0x2561('0x10e')]['is'](_0x2561('0x7d')))return void _0x49e5fb[_0x2561('0xb1')][_0x2561('0x67')](_0x3f82de[_0x2561('0x10e')],_0x476733[_0x2561('0xe4')]);const _0x55b040=_0x49e5fb[_0x2561('0x139')][_0x2561('0x113')](_0x3f82de[_0x2561('0x10e')]);if(!(_0x3f82de[_0x2561('0x10e')]['is']('element')&&_0x3ae490[_0x2561('0xfb')]['schema'][_0x2561('0xe0')](_0x3f82de[_0x2561('0x10e')])&&!_0x55b040[_0x2561('0xc3')](_0x2561('0x5e'))))return;const {id:_0xca7912}=this[_0x2561('0x56')](_0x3f82de['markerName']);_0x49e5fb[_0x2561('0x77')][_0x2561('0x126')]([_0x2561('0xe3'),_0x2561('0xf3')],_0x55b040),_0x49e5fb[_0x2561('0x77')][_0x2561('0x107')](_0x2561('0x14'),_0xca7912,_0x55b040),_0x49e5fb['mapper']['bindElementToMarker'](_0x55b040,_0x3f82de[_0x2561('0xac')]),_0x26ba2f&&(this[_0x2561('0xfa')][_0x2561('0x79')](_0x3f82de['markerName'])?_0x49e5fb[_0x2561('0x77')]['addClass'](_0x2561('0x124'),_0x55b040):_0x49e5fb[_0x2561('0x77')][_0x2561('0x1a')](_0x2561('0x124'),_0x55b040));for(const _0x550a63 of _0x3ae490['model']['createRangeIn'](_0x3f82de[_0x2561('0x10e')])['getItems']())_0x49e5fb['consumable'][_0x2561('0x67')](_0x550a63,_0x476733[_0x2561('0xe4')]);_0x49e5fb['consumable'][_0x2561('0x67')](_0x3f82de[_0x2561('0x10e')],_0x476733['name']);};_0x3ae490[_0x2561('0x4b')][_0x2561('0x8c')](_0x2561('0x121'))[_0x2561('0x10d')](_0x5cd63e=>{_0x5cd63e['on'](_0x2561('0xed'),(_0x417839,_0x47add1,_0x40274a)=>{_0x40274a[_0x2561('0x129')]['showSuggestionHighlights']&&_0x1b7ca8({'showActiveMarkers':!0x1})(_0x417839,_0x47add1,_0x40274a);},{'priority':_0x2561('0x92')});}),_0x3ae490[_0x2561('0x4b')]['for']('dataDowncast')[_0x2561('0x7f')]({'model':_0x2561('0x37'),'view':(_0x4f6845,_0x42dc8d)=>_0x42dc8d['options']['showSuggestionHighlights']?null:{'group':_0x2561('0x37'),'name':_0x4f6845[_0x2561('0xe5')](0xb)}}),_0x3ae490[_0x2561('0x4b')][_0x2561('0x8c')]('upcast')[_0x2561('0xf8')]({'view':{'name':_0x2561('0x37'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2e97ff,{writer:_0x23d091})=>{let _0x2749b8=_0x2561('0x64')+_0x2e97ff[_0x2561('0x16')]('suggestion-type')+':'+_0x2e97ff[_0x2561('0x16')]('id');return _0x2e97ff[_0x2561('0x16')]('marker-count')&&(_0x2749b8+=':'+_0x2e97ff[_0x2561('0x16')](_0x2561('0x76'))),_0x23d091[_0x2561('0x43')](_0x2561('0x93'),{'data-name':_0x2749b8});}}),_0x3ae490[_0x2561('0x4b')][_0x2561('0x8c')](_0x2561('0x2c'))['dataToMarker']({'view':'suggestion'}),_0x3ae490[_0x2561('0x4b')][_0x2561('0x8c')]('editingDowncast')['add'](_0x407376=>{_0x407376['on'](_0x2561('0xed'),_0x1b7ca8(),{'priority':'high'});}),_0x3ae490['conversion'][_0x2561('0x8c')](_0x2561('0x81'))[_0x2561('0x10d')](_0x3356e2=>{_0x3356e2['on'](_0x2561('0x1b'),(_0x162cb5,_0x942569,_0x5288a8)=>{const _0x2b4935=_0x5288a8['mapper']['markerNameToElements'](_0x942569[_0x2561('0xac')]);if(_0x2b4935)for(const _0x2386af of _0x2b4935)_0x2386af['getCustomProperty'](_0x2561('0x5e'))||(_0x5288a8[_0x2561('0x77')]['removeClass'](['ck-suggestion-marker',_0x2561('0xf3'),'ck-suggestion-marker--active'],_0x2386af),_0x5288a8[_0x2561('0x77')][_0x2561('0x9e')](_0x2561('0x14'),_0x2386af),_0x5288a8[_0x2561('0x139')][_0x2561('0xd8')](_0x2386af,_0x942569['markerName']));},{'priority':_0x2561('0x65')});}),_0x3ae490[_0x2561('0xfb')][_0x2561('0x1')][_0x2561('0x100')](_0x49228a=>{let _0x8f84d1=!0x1;const _0x4cc301=Array[_0x2561('0x47')](_0x3ae490[_0x2561('0xfb')]['document'][_0x2561('0x2e')][_0x2561('0x59')]()),_0x3b6e7e=new Set();for(const {name:_0x62f443,data:_0x97eed0}of _0x4cc301){const {group:_0x1b70b9,type:_0x5a3e5e,id:_0x506802}=this[_0x2561('0x56')](_0x62f443);if(_0x2561('0x37')!==_0x1b70b9)continue;const _0x45815a=this[_0x2561('0xca')]['get'](_0x506802);if(null!=_0x97eed0['newRange']){_0x2561('0x70')==_0x5a3e5e&&(_0x8f84d1=_0x8f84d1||Mt(_0x97eed0[_0x2561('0x108')],_0x62f443,_0x49228a,_0x3ae490[_0x2561('0xfb')][_0x2561('0xf5')]));if(_0x97eed0[_0x2561('0x108')][_0x2561('0x3f')]||'$graveyard'==_0x97eed0[_0x2561('0x108')]['root'][_0x2561('0x3a')]||_0x2561('0xe8')==_0x5a3e5e&&!Nt(_0x97eed0[_0x2561('0x108')])||'deletion'==_0x5a3e5e&&!(!_t(_0x36fb2f=_0x97eed0[_0x2561('0x108')])&&!function(_0xb3579d){return _0xb3579d[_0x2561('0x1c')][_0x2561('0xad')]==_0xb3579d[_0x2561('0xa6')][_0x2561('0x131')]&&_0xb3579d[_0x2561('0x1c')][_0x2561('0x138')];}(_0x36fb2f)))_0x49228a[_0x2561('0x119')](_0x62f443),_0x8f84d1=!0x0;else{if(!_0x45815a||!_0x45815a['isInContent'])continue;_0x3b6e7e[_0x2561('0x10d')](_0x45815a);}}}var _0x36fb2f;return _0x3b6e7e[_0x2561('0xd4')]>0x0&&(_0x8f84d1=!!this[_0x2561('0x24')](_0x3b6e7e)||_0x8f84d1),_0x8f84d1;}),_0x3ae490[_0x2561('0xfb')][_0x2561('0x1')][_0x2561('0x100')](_0x599200=>{let _0x4fc441=!0x1;for(const _0xad616f of _0x3ae490[_0x2561('0xfb')][_0x2561('0x1')][_0x2561('0x2e')][_0x2561('0xe9')]()){if(_0x2561('0xf')!=_0xad616f['type'])continue;const _0x22712b=_0xad616f[_0x2561('0xb7')][_0x2561('0x55')](_0xad616f['length']);if(_0x22712b[_0x2561('0x138')])for(const _0x393832 of this['_suggestions'][_0x2561('0x128')]()){if(_0x393832[_0x2561('0x5f')]||!_0x393832[_0x2561('0x82')])continue;if('formatBlock'!=_0x393832['type'])continue;const _0x527479=_0x393832[_0x2561('0xb9')]();if(_0x527479[_0x2561('0x1c')][_0x2561('0xad')]!=_0x527479['end']['parent']&&_0x527479[_0x2561('0xa6')][_0x2561('0xeb')](_0xad616f[_0x2561('0xb7')])){const _0x520a3a=_0x3ae490[_0x2561('0xfb')][_0x2561('0xa8')](_0x527479[_0x2561('0x1c')],_0x22712b);_0x599200[_0x2561('0x117')](_0x393832['getFirstMarker'](),{'range':_0x520a3a}),_0x4fc441=!0x0;}}}return _0x4fc441;}),_0x3ae490[_0x2561('0xfb')][_0x2561('0xde')]['on'](_0x2561('0x6b'),(_0x1fef6b,_0x5a277c,_0x478f7f)=>{if(null==_0x478f7f){const {id:_0x514943}=this[_0x2561('0x56')](_0x5a277c[_0x2561('0xe4')]),_0x20b581=this[_0x2561('0xca')][_0x2561('0xff')](_0x514943);_0x20b581&&_0x20b581[_0x2561('0x18')](_0x5a277c[_0x2561('0xe4')]);}}),_0x3ae490[_0x2561('0xfb')][_0x2561('0x1')]['on']('change:data',()=>{const _0x6e51d3=Array[_0x2561('0x47')](_0x3ae490['model'][_0x2561('0x1')][_0x2561('0x2e')][_0x2561('0x59')]())[_0x2561('0x49')](_0x3b37b8=>_0x2561('0x37')===this[_0x2561('0x56')](_0x3b37b8[_0x2561('0xe4')])[_0x2561('0xaa')]);if(0x0===_0x6e51d3[_0x2561('0x11b')])return;_0x6e51d3['sort']((_0x44c488,_0x5e4a5c)=>{const _0x3ed7ed=_0x44c488[_0x2561('0x8a')][_0x2561('0x120')],_0x5f27ff=_0x5e4a5c[_0x2561('0x8a')][_0x2561('0x120')];return null===_0x3ed7ed&&null===_0x5f27ff?0x0:null===_0x3ed7ed&&null!==_0x5f27ff?-0x1:null!==_0x3ed7ed&&null===_0x5f27ff?0x1:_0x3ed7ed[_0x2561('0x1c')][_0x2561('0xa1')](_0x5f27ff[_0x2561('0x1c')])?-0x1:0x1;});const _0x4795ca=new Set(),_0x28244b=new Set();for(const {name:_0x5e4cb7,data:_0x2bca4e}of _0x6e51d3){const {id:_0x221f07}=this[_0x2561('0x56')](_0x5e4cb7);if(null===_0x2bca4e['oldRange']){const _0xe1b235=this[_0x2561('0x137')](_0x5e4cb7);_0x28244b[_0x2561('0x10d')](_0xe1b235);}else{const _0x3b0b6c=this['_suggestions'][_0x2561('0xff')](_0x221f07);null!==_0x2bca4e['newRange']||_0x3b0b6c[_0x2561('0x82')]?(_0x4795ca[_0x2561('0x10d')](_0x3b0b6c['head']),_0x28244b[_0x2561('0x10d')](_0x3b0b6c)):this['_removeSuggestion'](_0x3b0b6c);}}_0x28244b[_0x2561('0xd4')]>0x0&&this['_refreshSuggestionsChain'](_0x28244b);for(const _0x4bb784 of _0x4795ca)this[_0x2561('0x60')]('suggestionChanged',_0x4bb784);}),_0x3ae490[_0x2561('0xfb')]['on'](_0x2561('0xdb'),(_0x558240,_0x1df899)=>{const _0x61ae9c=_0x1df899[0x0];if(!this[_0x2561('0xca')][_0x2561('0xd4')])return;if(!_0x61ae9c[_0x2561('0x39')])return;if(_0x61ae9c[_0x2561('0x5')][_0x2561('0xa7')]||!_0x61ae9c[_0x2561('0x5')]['isLocal'])return;let _0x2bdf4d,_0x46f2ba;switch(_0x61ae9c[_0x2561('0x22')]){case'insert':_0x2bdf4d=_0x3ae490['model'][_0x2561('0x12')](_0x61ae9c[_0x2561('0xb7')]),_0x46f2ba=_0x2bdf4d[_0x2561('0x55')](_0x61ae9c[_0x2561('0x80')]);break;case'split':_0x2bdf4d=_0x3ae490[_0x2561('0xfb')][_0x2561('0x12')](_0x61ae9c[_0x2561('0x12e')]),_0x46f2ba=_0x3ae490['model'][_0x2561('0x12')](_0x61ae9c[_0x2561('0xd3')]);break;case _0x2561('0xe'):_0x2bdf4d=_0x3ae490[_0x2561('0xfb')]['createPositionAt'](_0x61ae9c[_0x2561('0x9b')]),_0x46f2ba=_0x2bdf4d['getShiftedBy'](_0x61ae9c['howMany']);break;default:return;}const _0x5a413e=_0x3ae490[_0x2561('0xfb')]['createRange'](_0x2bdf4d,_0x46f2ba);_0x3ae490[_0x2561('0xfb')]['change'](()=>{for(const {suggestion:_0x225c70,meta:_0x5e64e5}of this[_0x2561('0x72')](_0x5a413e)){if(_0x225c70['isMultiRange'])continue;if('formatInline'==_0x225c70[_0x2561('0x22')])continue;const _0x29471a=_0x225c70[_0x2561('0x8a')]&&_0x225c70[_0x2561('0x8a')]['multipleBlocks'];('formatBlock'!=_0x225c70['type']||'split'==_0x61ae9c['type']&&!_0x29471a)&&(_0x5e64e5['containsRangeInObject']||_0x2561('0xb8')==_0x225c70[_0x2561('0x22')]&&_0x5e64e5[_0x2561('0xdc')]||_0x225c70[_0x2561('0xb9')]()['containsRange'](_0x5a413e)&&this['_breakSuggestionMarker'](_0x225c70,_0x2bdf4d,_0x46f2ba));}});},{'priority':_0x2561('0xf2')}),_0x3ae490[_0x2561('0xfb')]['on'](_0x2561('0x61'),(_0x5b079b,_0x5397fc)=>{const _0x119402=_0x5397fc[0x0],_0x85aae5=_0x5397fc[0x1];if(_0x85aae5&&_0x85aae5[_0x2561('0xd7')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x2561('0x52')][_0x2561('0x8e')])return;if(_0x119402[_0x2561('0x3f')])return;const _0x4bc9a7=_0x3ae490[_0x2561('0xfb')][_0x2561('0xf5')],{start:_0x303d5b,end:_0x1db9d4}=_0x119402[_0x2561('0xb9')](),_0x4b8d94=_0x303d5b[_0x2561('0x89')]&&_0x4bc9a7['isLimit'](_0x303d5b[_0x2561('0x89')])?null:_0x4bc9a7[_0x2561('0xb2')](_0x303d5b,'forward'),_0x55178c=_0x1db9d4[_0x2561('0x131')]&&_0x4bc9a7['isLimit'](_0x1db9d4[_0x2561('0x131')])?null:_0x4bc9a7[_0x2561('0xb2')](_0x1db9d4,_0x2561('0x118')),_0x25b100=_0x3ae490[_0x2561('0xfb')][_0x2561('0xa8')](_0x4b8d94?_0x4b8d94[_0x2561('0x1c')]:_0x303d5b,_0x55178c?_0x55178c[_0x2561('0xa6')]:_0x1db9d4);_0x3ae490[_0x2561('0xfb')][_0x2561('0xaf')](_0x52ad37=>{this[_0x2561('0x122')](_0x25b100);const _0x223140=_0x3ae490['model'][_0x2561('0xf5')][_0x2561('0xb2')](_0x25b100[_0x2561('0x1c')]);_0x119402['is']('documentSelection')?_0x52ad37[_0x2561('0x8')](_0x223140):_0x119402['setTo'](_0x223140);}),_0x5b079b[_0x2561('0xa5')]();},{'priority':_0x50f35b[_0x2561('0xa9')]+0xa}),_0x3ae490[_0x2561('0xfb')]['on'](_0x2561('0x95'),(_0x5ad741,_0xbbe548)=>{const _0x58fb3a=_0xbbe548[_0xbbe548[_0x2561('0x11b')]-0x1];_0x58fb3a&&_0x58fb3a[_0x2561('0xd7')]||this[_0x2561('0xb0')]||this['trackChangesCommand'][_0x2561('0x8e')]&&(_0x3ae490[_0x2561('0xfb')][_0x2561('0xaf')](()=>{let _0x5e07aa=_0x3ae490[_0x2561('0xfb')][_0x2561('0x95')](_0xbbe548[0x0],_0xbbe548[0x1],_0xbbe548[0x2],{'forceDefaultExecution':!0x0});if(!_0x5e07aa)return;_0x5ad741[_0x2561('0x5b')]=_0x5e07aa['clone']();const _0x36b170=_0x5e07aa[_0x2561('0xa6')]['nodeBefore'],_0x10404f=_0x3ae490['model']['schema'];_0x36b170&&_0x10404f[_0x2561('0xe0')](_0x36b170)&&!_0x10404f[_0x2561('0xec')](_0x36b170)&&(_0x5e07aa=_0x3ae490[_0x2561('0xfb')]['createRange'](_0x5e07aa[_0x2561('0x1c')],_0x3ae490[_0x2561('0xfb')][_0x2561('0x12')](_0x36b170,_0x2561('0xa6')))),this['markInsertion'](_0x5e07aa);}),_0x5ad741['stop']());},{'priority':_0x2561('0x65')}),this['editor'][_0x2561('0x109')][_0x2561('0x10d')](_0x2561('0x8f'),this[_0x2561('0x52')]),this[_0x2561('0x87')](_0x2561('0x8f'));const _0x2efddc=new _0x187854(_0x3ae490,this[_0x2561('0xca')]);_0x3ae490[_0x2561('0x109')][_0x2561('0x10d')](_0x2561('0x6c'),_0x2efddc),this[_0x2561('0x87')](_0x2561('0x6c'));const _0x1cbc55=new _0x40c7fb(_0x3ae490,this[_0x2561('0xca')]);_0x3ae490['commands']['add'](_0x2561('0x114'),_0x1cbc55),this[_0x2561('0x87')](_0x2561('0x114')),_0x3ae490[_0x2561('0x109')][_0x2561('0x10d')]('acceptAllSuggestions',new _0x231c14(_0x3ae490,_0x2efddc,this[_0x2561('0xca')])),this[_0x2561('0x87')](_0x2561('0x7c')),_0x3ae490[_0x2561('0x109')][_0x2561('0x10d')]('discardAllSuggestions',new _0x231c14(_0x3ae490,_0x1cbc55,this[_0x2561('0xca')])),this[_0x2561('0x87')](_0x2561('0xf6')),_0x3ae490[_0x2561('0x109')][_0x2561('0x10d')]('acceptSelectedSuggestions',new _0x4b7490(_0x3ae490,_0x2efddc,this['_suggestions'])),this[_0x2561('0x87')](_0x2561('0x112')),_0x3ae490[_0x2561('0x109')]['add'](_0x2561('0x4f'),new _0x4b7490(_0x3ae490,_0x1cbc55,this[_0x2561('0xca')])),this[_0x2561('0x87')](_0x2561('0x4f'));const _0x96eec9=_0x3ae490[_0x2561('0x11e')]['get']('CommentsRepository');this[_0x2561('0x13')](_0x96eec9,'addComment',(_0x5ce28b,{threadId:_0x2297e3})=>{const _0x47d360=this[_0x2561('0xca')]['get'](_0x2297e3);_0x47d360&&_0x47d360[_0x2561('0x127')]&&0x1===_0x47d360[_0x2561('0x127')]['length']&&this[_0x2561('0xf9')](_0x2297e3,{'hasComments':!0x0});},{'priority':_0x2561('0x9a')}),this[_0x2561('0x13')](_0x96eec9,'removeComment',(_0x202541,{threadId:_0x1cb5f1})=>{const _0x1d2e07=this[_0x2561('0xca')][_0x2561('0xff')](_0x1cb5f1);_0x1d2e07&&_0x1d2e07[_0x2561('0x127')]&&!_0x1d2e07[_0x2561('0x127')][_0x2561('0x11b')]&&this[_0x2561('0xf9')](_0x1cb5f1,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5a380d){if(this[_0x2561('0xdf')])throw new _0x17f068(_0x2561('0xc7'),this);this[_0x2561('0xdf')]=_0x5a380d;}get[_0x2561('0x2b')](){return this[_0x2561('0xdf')];}[_0x2561('0xdd')]({skipNotAttached:_0x13faf2=!0x1,toJSON:_0x34a7f1=!0x1}={}){const _0x1dad4c=[];for(const _0x89aac6 of this[_0x2561('0xca')][_0x2561('0x128')]())_0x13faf2&&!_0x89aac6[_0x2561('0x82')]||_0x1dad4c['push'](_0x89aac6);return _0x34a7f1?_0x1dad4c['map'](_0x350a1e=>_0x350a1e[_0x2561('0x88')]()):_0x1dad4c;}['getSuggestion'](_0x2e026f){const _0x22dbbe=this[_0x2561('0xca')][_0x2561('0xff')](_0x2e026f);if(!_0x22dbbe)throw new _0x17f068(_0x2561('0x6e'),this);return _0x22dbbe;}[_0x2561('0x99')](_0x5ddd9e){return this[_0x2561('0xca')][_0x2561('0x10f')](_0x5ddd9e);}[_0x2561('0xc9')](_0x32225a){const {authorId:_0x4df581,id:_0x1e5b79,attributes:_0x2b2000}=_0x32225a,[_0x370906,_0x5b3d83]=_0x32225a['type'][_0x2561('0x11a')](':'),_0x241ed6=this['_suggestions'][_0x2561('0xff')](_0x1e5b79)||this['_createSuggestion'](_0x370906,_0x5b3d83,_0x1e5b79,_0x4df581,_0x2b2000);if(this['_addThreadToSuggestion'](_0x241ed6),this[_0x2561('0xc4')](_0x241ed6,_0x370906,_0x5b3d83||null,_0x4df581),_0x241ed6['createdAt']=_0x32225a[_0x2561('0x10c')],_0x2b2000&&_0x2b2000[_0x2561('0x11')]){const _0x531870=_0x2b2000[_0x2561('0x11')],_0x52e467=this[_0x2561('0x12f')](_0x531870[_0x2561('0x9c')]);_0x241ed6[_0x2561('0x3')]=_0x531870[_0x2561('0x10c')],_0x241ed6[_0x2561('0x58')]=_0x52e467,_0x241ed6[_0x2561('0x4a')]=!0x0;}else _0x241ed6[_0x2561('0x3')]=_0x32225a[_0x2561('0x10c')];switch(_0x32225a[_0x2561('0x8a')]&&(_0x241ed6[_0x2561('0x8a')]=_0x32225a[_0x2561('0x8a')]),_0x32225a[_0x2561('0xfd')]&&(_0x241ed6['attributes']=_0x32225a['attributes']),this[_0x2561('0xdf')]&&this[_0x2561('0xdf')][_0x2561('0x96')]||(_0x241ed6['_saved']=!0x0),this[_0x2561('0x106')][_0x2561('0xff')](_0x241ed6)){case _0x2561('0x12a'):this[_0x2561('0x106')][_0x2561('0x62')](_0x241ed6,_0x2561('0x97'));break;case _0x2561('0x7'):_0x241ed6[_0x2561('0x82')]?(this[_0x2561('0x106')][_0x2561('0x62')](_0x241ed6,_0x2561('0x3e')),this['fire'](_0x2561('0x46'),_0x241ed6)):this[_0x2561('0x106')][_0x2561('0x62')](_0x241ed6,'removed');}return _0x241ed6;}[_0x2561('0x6c')](_0x4475e5){this[_0x2561('0xd7')](()=>{this[_0x2561('0x123')]['model'][_0x2561('0xaf')](()=>{for(const _0x17da7c of _0x4475e5[_0x2561('0xd1')]())_0x17da7c['accept']();});});}['discardSuggestion'](_0x229aef){this[_0x2561('0xd7')](()=>{this[_0x2561('0x123')]['model'][_0x2561('0xaf')](()=>{for(const _0x39e353 of _0x229aef[_0x2561('0xd1')]())_0x39e353[_0x2561('0x101')]();});});}[_0x2561('0x87')](_0x285647,_0x3d5e07){const _0x1a3b73=this['editor'][_0x2561('0x109')][_0x2561('0xff')](_0x285647);if(!_0x1a3b73)throw new _0x17f068(_0x2561('0xa2'),this,{'commandName':_0x285647});this[_0x2561('0x54')][_0x2561('0x10d')](_0x1a3b73),_0x3d5e07&&_0x1a3b73['on']('execute',(_0x5bae50,_0x5c0ee4)=>{this[_0x2561('0x52')][_0x2561('0x8e')]&&(this[_0x2561('0xb0')]||_0x5c0ee4['length']>0x0&&_0x5c0ee4[_0x5c0ee4[_0x2561('0x11b')]-0x1]&&_0x5c0ee4[_0x5c0ee4[_0x2561('0x11b')]-0x1]['forceDefaultExecution']||(_0x3d5e07((..._0x1f08ce)=>_0x1a3b73[_0x2561('0xe7')](..._0x1f08ce,{'forceDefaultExecution':!0x0}),..._0x5c0ee4),_0x5bae50['stop']()));},{'priority':_0x2561('0x65')});}['forceDefaultExecution'](_0x4ddbc0){let _0x34372a,_0x26633d;const _0x4cce0a=this[_0x2561('0xb0')];this[_0x2561('0xb0')]=!0x0;try{_0x34372a=_0x4ddbc0();}catch(_0x4d8d46){_0x26633d=_0x4d8d46;}return _0x4cce0a||(this[_0x2561('0xb0')]=!0x1),_0x26633d&&_0x17f068[_0x2561('0xbf')](_0x26633d,this),_0x34372a;}[_0x2561('0x115')](_0x31490,_0x31da61=null,_0x338bda={}){if(_0x31490[_0x2561('0x3f')])return null;const _0x3dce68=this[_0x2561('0x123')][_0x2561('0x11e')][_0x2561('0xff')](_0x2561('0x6a'))['me'];for(const {suggestion:_0x32701f,meta:_0x224654}of this[_0x2561('0x72')](_0x31490,_0x2561('0xb8')))if(_0x224654[_0x2561('0xdc')]){if(!_0x224654[_0x2561('0xcb')]){if(!this['_mergeNestedSuggestions']&&_0x224654[_0x2561('0xef')])continue;return _0x32701f;}if(_0x31da61==_0x32701f[_0x2561('0x27')]){const _0x43f72c=_0x32701f[_0x2561('0xb9')]();return _0x43f72c['start']['isEqual'](_0x31490['end'])?this['_setSuggestionRange'](_0x32701f,this[_0x2561('0x68')][_0x2561('0xa8')](_0x31490[_0x2561('0x1c')],_0x43f72c[_0x2561('0xa6')])):this['_setSuggestionRange'](_0x32701f,this['_model'][_0x2561('0xa8')](_0x43f72c[_0x2561('0x1c')],_0x31490[_0x2561('0xa6')])),_0x32701f;}}const _0x2cc324=_0x38ee88(),_0x78b1e8=_0x3dce68['id'],_0x5c4fcb=_0x31da61?'insertion:'+_0x31da61:_0x2561('0xb8'),_0x29b6c1=this[_0x2561('0x19')]({'id':_0x2cc324,'type':_0x5c4fcb,'createdAt':new Date(),'authorId':_0x78b1e8,'attributes':_0x338bda});return this['_addSuggestionMarker'](_0x5c4fcb,_0x2cc324,_0x78b1e8,_0x31490),_0x29b6c1;}[_0x2561('0xa4')](_0x296b01,_0x11854c=_0x2561('0x11d'),_0x3d0b20={}){const _0x484c6d=this[_0x2561('0x123')][_0x2561('0x11e')][_0x2561('0xff')](_0x2561('0x6a'))['me'],_0x5bc351=this[_0x2561('0x31')]['getSuggestionCallback'](_0x2561('0xb8'),_0x11854c,_0x2561('0x10'));for(const _0x6b37b of this[_0x2561('0xdd')]())if(_0x6b37b[_0x2561('0x58')]['id']==_0x484c6d['id']&&_0x2561('0xb8')==_0x6b37b[_0x2561('0x22')]&&_0x6b37b[_0x2561('0x27')]==_0x11854c&&(_0x5bc351(_0x6b37b['getRanges'](),_0x296b01)||_0x5bc351(_0x296b01,_0x6b37b['getRanges']()))){for(const _0x228860 of _0x296b01)_0x6b37b[_0x2561('0x125')](_0x228860);return _0x6b37b;}if(this[_0x2561('0x4d')])for(const _0x499db8 of _0x296b01)for(const {suggestion:_0x2582ef,meta:_0x97eab4}of this[_0x2561('0x72')](_0x499db8,'insertion')){if(!_0x97eab4[_0x2561('0xdc')])continue;let _0x253f0c=!0x0;for(const _0x267d9f of _0x2582ef[_0x2561('0x91')]())for(const _0x55045e of _0x296b01)if(!_0x267d9f[_0x2561('0x135')](_0x55045e)){_0x253f0c=!0x1;break;}if(_0x253f0c)return _0x2582ef;}const _0x247dcc=_0x38ee88(),_0x16cf3a=_0x484c6d['id'],_0x518ff0='insertion:'+_0x11854c,_0x21aa7e=this[_0x2561('0x19')]({'id':_0x247dcc,'type':_0x518ff0,'createdAt':new Date(),'authorId':_0x16cf3a,'attributes':_0x3d0b20});for(const _0x29396c of _0x296b01)this[_0x2561('0x86')](_0x518ff0,_0x247dcc,_0x16cf3a,_0x29396c,_0x2c377e[_0x2561('0x74')]());return _0x21aa7e;}[_0x2561('0x44')](_0x10cb15,_0x315657,_0x1fc574=null,_0x3a826f={}){if(_0x1fc574=_0x1fc574||$t(_0x315657),_0x10cb15[_0x2561('0x3f')])return null;if(_0x2561('0x111')===this['_trackFormatChanges']){const _0x5a08fe=this[_0x2561('0x31')][_0x2561('0xda')]('formatInline',_0x1fc574,'accept');return this['forceDefaultExecution'](()=>_0x5a08fe([_0x10cb15],_0x315657,_0x3a826f)),null;}const _0x4658de=this[_0x2561('0x123')][_0x2561('0x11e')][_0x2561('0xff')](_0x2561('0x6a'))['me'],_0x43a2df=[];if(_0x2561('0x38')!==this[_0x2561('0x94')])for(const {suggestion:_0x479d58,meta:_0x3cdb8a}of this['_findSuggestions'](_0x10cb15,_0x2561('0xb8')))_0x3cdb8a[_0x2561('0xdc')]&&!_0x3cdb8a['isInsideObject']&&_0x43a2df[_0x2561('0xd')](..._0x479d58[_0x2561('0x91')]());const _0x337964=function(_0x187b20,_0x4be5a2){const _0x334be6=[];for(const _0x1587a8 of _0x4be5a2){const _0x2097e8=_0x187b20[_0x2561('0x1f')](_0x1587a8);_0x2097e8&&_0x334be6['push'](_0x2097e8);}return _0x334be6;}(_0x10cb15,_0x43a2df),_0x325cdc=function(_0x5b1725,_0x58c344){const _0x4ba2b3=[_0x5b1725];for(const _0x17f7c8 of _0x58c344){let _0x2bb480=0x0;for(;_0x2bb480<_0x4ba2b3[_0x2561('0x11b')];){const _0x2bad97=_0x4ba2b3[_0x2bb480]['getDifference'](_0x17f7c8);_0x4ba2b3[_0x2561('0x116')](_0x2bb480,0x1,..._0x2bad97),_0x2bb480+=_0x2bad97[_0x2561('0x11b')];}}return _0x4ba2b3;}(_0x10cb15,_0x43a2df);_0x337964[_0x2561('0x11b')]&&this['_model']['change'](()=>{for(const _0x28903 of _0x337964){const _0x22b8d5=this[_0x2561('0x31')][_0x2561('0xda')](_0x2561('0x70'),_0x1fc574,_0x2561('0xc'));this[_0x2561('0xd7')](()=>_0x22b8d5([_0x28903],_0x315657,_0x3a826f));}});for(const _0x1d510b of _0x325cdc){let _0x2a57fd=null,_0x27e20b=_0x1d510b[_0x2561('0x1c')],_0x247fd8=_0x1d510b[_0x2561('0xa6')];for(const {suggestion:_0x31ddfd,meta:_0x293afd}of this[_0x2561('0x72')](_0x1d510b,_0x2561('0x70'))){if(!_0x293afd['isOwn'])continue;if(_0x31ddfd['subType']!=_0x1fc574)continue;const _0xd19fe7=_0x31ddfd[_0x2561('0xb9')]();if(_0xd19fe7[_0x2561('0x135')](_0x1d510b,!0x0))return null;_0x27e20b=_0x27e20b['isBefore'](_0xd19fe7[_0x2561('0x1c')])?_0x27e20b:_0xd19fe7['start'],_0x247fd8=_0x247fd8[_0x2561('0x40')](_0xd19fe7['end'])?_0x247fd8:_0xd19fe7[_0x2561('0xa6')],_0x2a57fd?_0xd19fe7[_0x2561('0x1c')][_0x2561('0xa1')](_0x2a57fd[_0x2561('0xb9')]()[_0x2561('0x1c')])?(_0x2a57fd['removeMarkers'](),_0x2a57fd=_0x31ddfd):_0x31ddfd[_0x2561('0x29')]():_0x2a57fd=_0x31ddfd;}const _0xca846c=this['_model']['createRange'](_0x27e20b,_0x247fd8);if(_0x2a57fd)this[_0x2561('0x5d')](_0x2a57fd,_0xca846c);else{const _0x3bcc40=_0x38ee88(),_0x464405=_0x4658de['id'];this[_0x2561('0x19')]({'id':_0x3bcc40,'type':_0x2561('0x10b')+_0x1fc574,'data':_0x315657,'createdAt':new Date(),'authorId':_0x464405,'attributes':_0x3a826f}),this['_addSuggestionMarker'](_0x2561('0x10b')+_0x1fc574,_0x3bcc40,_0x464405,_0xca846c);}}return null;}['markBlockFormat'](_0x6fdc28,_0x23f771,_0x54d09b=[],_0x20dd98=null,_0x16a9b1={}){_0x23f771[_0x2561('0xc6')]||(_0x23f771[_0x2561('0xc6')]=_0x23f771[_0x2561('0x12d')]),_0x23f771[_0x2561('0xbe')]=_0x6fdc28['is']('range'),_0x20dd98=_0x20dd98||$t(_0x23f771);const _0x50b2e4=_0x54d09b[_0x2561('0xbd')](_0x4ee01a=>Rt(_0x4ee01a,this[_0x2561('0x68')])),_0x212174=_0x6fdc28['is'](_0x2561('0xcc'))?_0x6fdc28:Rt(_0x6fdc28,this[_0x2561('0x68')]);if(_0x2561('0x111')===this[_0x2561('0x94')]){const _0x3b3cca=this['_suggestionFactory']['getSuggestionCallback'](_0x2561('0xe8'),_0x20dd98,_0x2561('0xc'));return this['forceDefaultExecution'](()=>_0x3b3cca([_0x212174],_0x23f771,_0x16a9b1)),null;}_0x50b2e4[_0x2561('0xd')](_0x212174);let _0x38173b=!0x0;for(const _0x12e971 of _0x50b2e4)if(!this[_0x2561('0x15')](_0x12e971)){_0x38173b=!0x1;break;}if(_0x38173b&&_0x2561('0x38')!==this[_0x2561('0x94')]){const _0x1dcc3f=this[_0x2561('0x31')][_0x2561('0xda')](_0x2561('0xe8'),_0x20dd98,_0x2561('0xc'));return this[_0x2561('0xd7')](()=>_0x1dcc3f([_0x212174],_0x23f771,_0x16a9b1)),null;}let _0x36486d=null,_0x5d9b57=_0x212174[_0x2561('0x1c')],_0x20741c=_0x212174['end'];for(const {suggestion:_0x4ffa9e,meta:_0x145bdc}of this[_0x2561('0x72')](_0x212174,_0x2561('0xe8'))){if(!_0x145bdc[_0x2561('0xdc')]||_0x145bdc[_0x2561('0xcb')]||_0x145bdc['containsRangeInObject']||_0x145bdc['isInsideObject'])continue;if(_0x4ffa9e[_0x2561('0x8a')][_0x2561('0xc6')]!=_0x23f771['formatGroupId'])continue;const _0x5e1c0a=_0x4ffa9e[_0x2561('0xb9')]();if(_0x4ffa9e[_0x2561('0x27')]==_0x20dd98){if(_0x5e1c0a[_0x2561('0x135')](_0x212174,!0x0))return null;_0x5d9b57=_0x5d9b57[_0x2561('0xa1')](_0x5e1c0a['start'])?_0x5d9b57:_0x5e1c0a[_0x2561('0x1c')],_0x20741c=_0x20741c[_0x2561('0x40')](_0x5e1c0a['end'])?_0x20741c:_0x5e1c0a[_0x2561('0xa6')],_0x36486d?_0x5e1c0a['start'][_0x2561('0xa1')](_0x36486d[_0x2561('0xb9')]()[_0x2561('0x1c')])?(_0x36486d[_0x2561('0x29')](),_0x36486d=_0x4ffa9e):_0x4ffa9e['removeMarkers']():_0x36486d=_0x4ffa9e;}else{const _0xfa739d=_0x212174['getIntersection'](_0x5e1c0a);this[_0x2561('0xa0')](_0x4ffa9e,_0xfa739d);}}const _0x58dd53=this['editor'][_0x2561('0x11e')][_0x2561('0xff')](_0x2561('0x6a'))['me'],_0x60190f=_0x38ee88(),_0x396476=_0x58dd53['id'];if(_0x36486d)return this['_setSuggestionRange'](_0x36486d,this[_0x2561('0x68')]['createRange'](_0x5d9b57,_0x20741c)),_0x36486d;{const _0x419e1a=this[_0x2561('0x19')]({'id':_0x60190f,'type':_0x2561('0xd0')+_0x20dd98,'data':_0x23f771,'createdAt':new Date(),'authorId':_0x396476,'attributes':_0x16a9b1});return this[_0x2561('0x86')](_0x2561('0xd0')+_0x20dd98,_0x60190f,_0x396476,this[_0x2561('0x68')][_0x2561('0xa8')](_0x5d9b57,_0x20741c)),_0x419e1a;}}['markMultiRangeBlockFormat'](_0x644600,_0x1dc0bf,_0x40daeb=[],_0x10da90=null,_0x1e0af0={}){_0x1dc0bf[_0x2561('0xc6')]||(_0x1dc0bf[_0x2561('0xc6')]=_0x1dc0bf[_0x2561('0x12d')]);const _0x243287=_0x644600[0x0];_0x1dc0bf[_0x2561('0xbe')]=_0x243287['is'](_0x2561('0xcc')),_0x10da90=_0x10da90||$t(_0x1dc0bf);const _0x2d6fab=_0x40daeb[_0x2561('0xbd')](_0x1db8fc=>Rt(_0x1db8fc,this[_0x2561('0x68')])),_0x1354cd=_0x243287['is'](_0x2561('0xcc'))?_0x644600:_0x644600[_0x2561('0xbd')](_0x100c7c=>Rt(_0x100c7c,this[_0x2561('0x68')]));if(_0x2561('0x111')===this['_trackFormatChanges']){const _0x21f634=this[_0x2561('0x31')][_0x2561('0xda')](_0x2561('0xe8'),_0x10da90,_0x2561('0xc'));return this['forceDefaultExecution'](()=>_0x21f634(_0x1354cd,_0x1dc0bf,_0x1e0af0)),null;}_0x2d6fab[_0x2561('0xd')](..._0x1354cd);let _0x51721f=!0x0;for(const _0x574647 of _0x2d6fab)if(!this['_rangeIsInLocalUserInsertion'](_0x574647)){_0x51721f=!0x1;break;}if(_0x51721f&&_0x2561('0x38')!==this[_0x2561('0x94')]){const _0x249a2a=this[_0x2561('0x31')][_0x2561('0xda')]('formatBlock',_0x10da90,_0x2561('0xc'));return this['forceDefaultExecution'](()=>_0x249a2a(_0x1354cd,_0x1dc0bf,_0x1e0af0)),null;}const _0x446ad2=this[_0x2561('0x123')][_0x2561('0x11e')][_0x2561('0xff')](_0x2561('0x6a'))['me'];for(const _0x53f47e of this[_0x2561('0xdd')]()){if(_0x53f47e[_0x2561('0x58')]['id']!=_0x446ad2['id'])continue;if(_0x2561('0xe8')!=_0x53f47e[_0x2561('0x22')]||_0x53f47e[_0x2561('0x8a')][_0x2561('0xc6')]!=_0x1dc0bf[_0x2561('0xc6')])continue;const _0x2d451e=_0x53f47e['subType']==_0x10da90;for(let _0x11e87d=0x0;_0x11e87d<_0x1354cd[_0x2561('0x11b')];_0x11e87d++){const _0x38b147=_0x1354cd[_0x11e87d];for(const _0x23ec9d of _0x53f47e[_0x2561('0xe1')]()){const _0x59f5e8=_0x23ec9d[_0x2561('0x85')]();if(_0x38b147[_0x2561('0xeb')](_0x59f5e8)){_0x2d451e?(_0x1354cd[_0x2561('0x116')](_0x11e87d,0x1),_0x11e87d--):_0x53f47e['removeMarker'](_0x23ec9d[_0x2561('0xe4')]);break;}}}}if(0x0==_0x1354cd[_0x2561('0x11b')])return null;const _0x3c1f99=this[_0x2561('0x31')][_0x2561('0xda')]('formatBlock',_0x10da90,_0x2561('0x10'));for(const _0x3dbfc2 of this[_0x2561('0xdd')]())if(_0x3dbfc2['author']['id']==_0x446ad2['id']&&'formatBlock'==_0x3dbfc2[_0x2561('0x22')]&&_0x3dbfc2[_0x2561('0x8a')][_0x2561('0xc6')]==_0x1dc0bf['formatGroupId']&&_0x3dbfc2[_0x2561('0x27')]==_0x10da90&&(_0x3c1f99(_0x3dbfc2['getRanges'](),_0x1354cd)||_0x3c1f99(_0x1354cd,_0x3dbfc2[_0x2561('0x91')]()))){for(const _0x1f7f81 of _0x1354cd)_0x3dbfc2[_0x2561('0x125')](_0x1f7f81);return _0x3dbfc2;}const _0x569dcc=_0x38ee88(),_0x34f350=_0x446ad2['id'],_0x2f5dd2=_0x2561('0xd0')+_0x10da90,_0x4a3d32=this[_0x2561('0x19')]({'id':_0x569dcc,'type':_0x2f5dd2,'data':_0x1dc0bf,'createdAt':new Date(),'authorId':_0x34f350,'attributes':_0x1e0af0});for(const _0x10fa31 of _0x1354cd)this[_0x2561('0x86')](_0x2f5dd2,_0x569dcc,_0x34f350,_0x10fa31,_0x2c377e[_0x2561('0x74')]());return _0x4a3d32;}[_0x2561('0x122')](_0x450cd9,_0x3c829b=null,_0x31b4ff={}){if(_0x450cd9[_0x2561('0x3f')])return null;const _0x543bba=this[_0x2561('0x123')][_0x2561('0x11e')][_0x2561('0xff')](_0x2561('0x6a'))['me'],_0x86a6ac=new _0x5d92ab(_0x450cd9[_0x2561('0x1c')],_0x450cd9[_0x2561('0xa6')]);for(const {suggestion:_0x3f30da,meta:_0x5a796a}of this[_0x2561('0x72')](_0x86a6ac,_0x2561('0xb8')))if(_0x5a796a[_0x2561('0xdc')]&&!_0x5a796a['isNextTo']){if(_0x3f30da['isMultiRange']){const _0x21751c=_0x3f30da[_0x2561('0x91')]()[_0x2561('0x49')](_0xed924f=>_0x2561('0xbc')!=_0xed924f[_0x2561('0x103')][_0x2561('0x3a')]);_0x21751c[_0x2561('0xbb')](_0x3a9108=>_0x86a6ac[_0x2561('0x135')](_0x3a9108,!0x0))&&_0x3f30da['discard']();if(_0x21751c[_0x2561('0x2')](_0x5b718d=>_0x5b718d['containsRange'](_0x86a6ac,!0x0))){const _0x106b47=this[_0x2561('0x31')][_0x2561('0xda')]('deletion',_0x3c829b,_0x2561('0xc'));return this[_0x2561('0xd7')](()=>_0x106b47([_0x86a6ac],null,_0x31b4ff)),null;}}else{const _0x1c8550=_0x86a6ac[_0x2561('0x1f')](_0x3f30da[_0x2561('0xb9')]());null!==_0x1c8550&&_0x3f30da[_0x2561('0x33')]([_0x1c8550],null,_0x31b4ff);}}if(_0x86a6ac[_0x2561('0xc0')](),_0x86a6ac[_0x2561('0x3f')]||'$graveyard'==_0x86a6ac['root']['rootName'])return null;let _0x39ce92=null,_0x5f37b8=_0x86a6ac['start'],_0x2ed292=_0x86a6ac['end'];for(const {suggestion:_0x5b45f2,meta:_0x18edcf}of this['_findSuggestions'](_0x86a6ac,_0x2561('0xba')))if(_0x18edcf[_0x2561('0xdc')]){if(_0x5b45f2[_0x2561('0x5f')]&&this[_0x2561('0x4d')]){let _0x5d8ffb=!0x0;for(const _0x12d96d of _0x5b45f2[_0x2561('0x91')]()){if(_0x12d96d[_0x2561('0x135')](_0x86a6ac,!0x0))return _0x5b45f2;_0x86a6ac['containsRange'](_0x12d96d)||(_0x5d8ffb=!0x1);}_0x5d8ffb&&_0x5b45f2['discard']();}else{const _0x34fdcc=_0x5b45f2[_0x2561('0xb9')]();if(_0x34fdcc['containsRange'](_0x86a6ac,!0x0)){if(!this[_0x2561('0x4d')]&&_0x18edcf[_0x2561('0xef')])continue;return _0x5b45f2;}_0x5f37b8=_0x5f37b8[_0x2561('0xa1')](_0x34fdcc[_0x2561('0x1c')])?_0x5f37b8:_0x34fdcc[_0x2561('0x1c')],_0x2ed292=_0x2ed292[_0x2561('0x40')](_0x34fdcc[_0x2561('0xa6')])?_0x2ed292:_0x34fdcc[_0x2561('0xa6')],_0x39ce92?_0x34fdcc['start'][_0x2561('0xa1')](_0x39ce92[_0x2561('0xb9')]()[_0x2561('0x1c')])?(_0x39ce92[_0x2561('0x29')](),_0x39ce92=_0x5b45f2):_0x5b45f2[_0x2561('0x29')]():_0x39ce92=_0x5b45f2;}}if(_0x39ce92)return this[_0x2561('0x5d')](_0x39ce92,this[_0x2561('0x68')][_0x2561('0xa8')](_0x5f37b8,_0x2ed292)),_0x39ce92;{const _0x32bb35=_0x38ee88(),_0x417200=this[_0x2561('0x68')]['createRange'](_0x5f37b8,_0x2ed292),_0x121b3c=_0x543bba['id'],_0x23f86e=_0x3c829b?_0x2561('0x10a')+_0x3c829b:'deletion',_0x205b73=this[_0x2561('0x19')]({'id':_0x32bb35,'type':_0x23f86e,'createdAt':new Date(),'authorId':_0x121b3c,'attributes':_0x31b4ff});return this[_0x2561('0x86')](_0x23f86e,_0x32bb35,_0x121b3c,_0x417200),_0x205b73;}}[_0x2561('0xcf')](_0x300378,_0x3c3418=_0x2561('0x11d'),_0x12502b={}){const _0x553b71=this[_0x2561('0x123')][_0x2561('0x11e')][_0x2561('0xff')](_0x2561('0x6a'))['me'],_0x35ec96=_0x300378[_0x2561('0xbd')](_0x55ad4f=>new _0x5d92ab(_0x55ad4f['start'],_0x55ad4f['end'])),_0x18e506=new Set();for(const _0x517ce2 of _0x35ec96)for(const {suggestion:_0x46d77c,meta:_0x4c1af0}of this[_0x2561('0x72')](_0x517ce2,'insertion'))_0x4c1af0[_0x2561('0xdc')]&&!_0x4c1af0[_0x2561('0xcb')]&&_0x18e506[_0x2561('0x10d')](_0x46d77c);for(const _0x2a5b78 of _0x18e506)if(_0x2a5b78[_0x2561('0x5f')]){const _0x2a14ac=_0x2a5b78[_0x2561('0x91')]();(!_0x2a5b78[_0x2561('0xfd')]||!_0x2a5b78[_0x2561('0xfd')][_0x2561('0x57')])&&(_0x2a14ac[_0x2561('0xbb')](_0x7c4bc5=>_0x35ec96[_0x2561('0x2')](_0x15979c=>_0x15979c[_0x2561('0x135')](_0x7c4bc5,!0x0)))&&_0x2a5b78[_0x2561('0x101')]());if(_0x35ec96[_0x2561('0xbb')](_0x18a8eb=>_0x2a14ac[_0x2561('0x2')](_0x5dd136=>_0x5dd136[_0x2561('0x135')](_0x18a8eb,!0x0)))){const _0x525f15=this[_0x2561('0x31')][_0x2561('0xda')]('deletion',_0x3c3418,_0x2561('0xc'));return this[_0x2561('0xd7')](()=>_0x525f15(_0x300378,null,_0x12502b)),null;}}else{const _0x42de00=_0x2a5b78[_0x2561('0xb9')]();_0x35ec96[_0x2561('0x2')](_0x4fed1a=>_0x4fed1a[_0x2561('0x135')](_0x42de00,!0x0))&&_0x2a5b78[_0x2561('0x101')]();if(_0x35ec96['every'](_0x7be6ef=>_0x42de00[_0x2561('0x135')](_0x7be6ef,!0x0))){const _0x4ba890=this[_0x2561('0x31')]['getSuggestionCallback']('deletion',_0x3c3418,_0x2561('0xc'));return this[_0x2561('0xd7')](()=>_0x4ba890(_0x35ec96,null,_0x12502b)),null;}}const _0x12f0d0=this[_0x2561('0x31')][_0x2561('0xda')](_0x2561('0xba'),_0x3c3418,_0x2561('0x10'));let _0x41f43c=null;for(const _0x144846 of this[_0x2561('0xdd')]())if(_0x144846[_0x2561('0x58')]['id']==_0x553b71['id']&&_0x144846['isInContent']&&_0x2561('0xba')==_0x144846[_0x2561('0x22')]&&_0x144846[_0x2561('0x27')]==_0x3c3418&&(_0x12f0d0(_0x144846['getRanges'](),_0x35ec96)||_0x12f0d0(_0x35ec96,_0x144846[_0x2561('0x91')]()))){if(_0x41f43c){if(_0x144846['commentThread']&&_0x144846[_0x2561('0x127')]['length'])continue;for(const _0x3b2a44 of _0x144846[_0x2561('0x91')]())_0x41f43c['isIntersectingWithRange'](_0x3b2a44)||_0x41f43c[_0x2561('0x125')](_0x3b2a44);_0x144846[_0x2561('0x29')]();}else{_0x41f43c=_0x144846;for(const _0x1bd4ab of _0x35ec96)_0x144846['isIntersectingWithRange'](_0x1bd4ab)||_0x144846['addRange'](_0x1bd4ab);}}if(_0x41f43c)return _0x41f43c;_0x18e506['clear']();for(const _0x2ba173 of _0x35ec96)for(const {suggestion:_0x342e98,meta:_0x4131b7}of this['_findSuggestions'](_0x2ba173,_0x2561('0xba')))_0x4131b7['isOwn']&&_0x18e506[_0x2561('0x10d')](_0x342e98);for(const _0x470e01 of _0x18e506){const _0xcfac72=_0x470e01[_0x2561('0x91')]();if(!_0x12502b||!_0x12502b[_0x2561('0x57')]){if(_0x35ec96['every'](_0x453e51=>_0xcfac72[_0x2561('0x2')](_0x16a818=>_0x16a818[_0x2561('0x135')](_0x453e51,!0x0))))return _0x470e01;}(!_0x470e01[_0x2561('0xfd')]||!_0x470e01[_0x2561('0xfd')]['skipNestingCheck'])&&(_0xcfac72[_0x2561('0xbb')](_0x1495be=>_0x35ec96[_0x2561('0x2')](_0x3db340=>_0x3db340['containsRange'](_0x1495be,!0x0)))&&_0x470e01[_0x2561('0x101')]());}const _0x432d3e=_0x38ee88(),_0x3c5220=_0x553b71['id'],_0x5db5ed=_0x2561('0x10a')+_0x3c3418,_0x11bfff=this[_0x2561('0x19')]({'id':_0x432d3e,'type':_0x5db5ed,'createdAt':new Date(),'authorId':_0x3c5220,'attributes':_0x12502b});for(const _0x4b685e of _0x35ec96)_0x4b685e['detach'](),_0x4b685e[_0x2561('0x3f')]||'$graveyard'==_0x4b685e[_0x2561('0x103')][_0x2561('0x3a')]||this[_0x2561('0x86')](_0x5db5ed,_0x432d3e,_0x3c5220,_0x4b685e,_0x2c377e['getMultiRangeId']());return _0x11bfff;}[_0x2561('0x5d')](_0x5b97b9,_0x395cb2){const _0x511d36=_0x5b97b9[_0x2561('0x48')]();this['_model'][_0x2561('0xaf')](_0x157e9c=>{_0x157e9c[_0x2561('0x117')](_0x511d36,{'range':_0x395cb2});});}['_addThreadToSuggestion'](_0x2a1777){const _0x56024f=_0x2a1777['id'],_0x30e467=this['editor']['config'][_0x2561('0xff')](_0x2561('0x78'));this[_0x2561('0x30')][_0x2561('0x26')](_0x56024f)||this[_0x2561('0x30')][_0x2561('0x133')]({'channelId':_0x30e467,'threadId':_0x56024f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x113031=this[_0x2561('0x30')][_0x2561('0xc8')](_0x56024f);_0x113031[_0x2561('0x7a')](_0x2561('0x84')),_0x113031[_0x2561('0x84')]=!0x1,_0x2a1777['commentThread']=_0x113031;}[_0x2561('0xc4')](_0x3705f2,_0x543146,_0x3fda04,_0x3fa2e1){if(_0x3705f2[_0x2561('0x22')]!=_0x543146||_0x3705f2[_0x2561('0x27')]!=_0x3fda04||_0x3705f2[_0x2561('0x110')]['id']!=_0x3fa2e1)throw this['editor'][_0x2561('0xea')](_0x2561('0x102')),new _0x17f068(_0x2561('0x102'),this);}['_cutOutSuggestionMarker'](_0x4246db,_0x82087){const _0x418b31=_0x4246db['getFirstRange']();if(_0x82087[_0x2561('0xeb')](_0x418b31))_0x4246db[_0x2561('0x29')]();else{if(_0x418b31[_0x2561('0x135')](_0x82087)){const _0x534044=this[_0x2561('0x68')]['createPositionAt'](_0x82087[_0x2561('0x1c')][_0x2561('0x131')],_0x2561('0xa6'));this['_setSuggestionRange'](_0x4246db,this[_0x2561('0x68')][_0x2561('0xa8')](_0x418b31[_0x2561('0x1c')],_0x534044));const _0xe0eff4=_0x38ee88(),_0x4fe42f=_0x4246db['creator']['id'],_0x116ff3=_0x4246db[_0x2561('0x22')]+':'+_0x4246db[_0x2561('0x27')];this['_setSuggestionData']({'id':_0xe0eff4,'type':_0x116ff3,'createdAt':new Date(),'authorId':_0x4fe42f,'data':_0x4246db[_0x2561('0x8a')],'attributes':_0x4246db[_0x2561('0xfd')]});const _0x54d155=this['_model'][_0x2561('0x12')](_0x82087[_0x2561('0xa6')]['parent'],'after'),_0x4d5444=this[_0x2561('0x68')][_0x2561('0xa8')](_0x54d155,_0x418b31[_0x2561('0xa6')]);this[_0x2561('0x86')](_0x116ff3,_0xe0eff4,_0x4fe42f,_0x4d5444);}else{if(_0x418b31[_0x2561('0x53')](_0x82087['start'])){const _0x4d1742=this['_model']['createPositionAt'](_0x82087['start'][_0x2561('0x131')],_0x2561('0xa6'));this['_setSuggestionRange'](_0x4246db,this[_0x2561('0x68')][_0x2561('0xa8')](_0x418b31['start'],_0x4d1742));}else{const _0x38091c=this[_0x2561('0x68')]['createPositionAt'](_0x82087[_0x2561('0xa6')][_0x2561('0xad')],'after');this['_setSuggestionRange'](_0x4246db,this[_0x2561('0x68')][_0x2561('0xa8')](_0x38091c,_0x418b31[_0x2561('0xa6')]));}}}}[_0x2561('0x15')](_0x5b8949){for(const {suggestion:_0x3caba8,meta:_0x23ea1f}of this[_0x2561('0x72')](_0x5b8949,_0x2561('0xb8'))){if(!_0x23ea1f['isOwn'])continue;const _0x262aa8=_0x3caba8[_0x2561('0x91')]();for(const _0x3458c1 of _0x262aa8)if(!_0x5b8949[_0x2561('0xfe')](_0x3458c1)[_0x2561('0x11b')])return!0x0;}return!0x1;}[_0x2561('0xf0')](_0x3a0cbe){const _0x250c79=this[_0x2561('0x123')]['plugins']['get'](_0x2561('0x6a'))[_0x2561('0xd2')](_0x3a0cbe);if(!_0x250c79)throw new _0x17f068(_0x2561('0x83'),this);return _0x250c79;}[_0x2561('0x12f')](_0x5458ca){const _0x998656=this[_0x2561('0x123')][_0x2561('0x11e')][_0x2561('0xff')](_0x2561('0x6a')),_0x89432b=_0x1cec4d('external:'+_0x5458ca),_0x379489=_0x998656['getUser'](_0x89432b);return _0x379489||_0x998656[_0x2561('0x5c')]({'id':_0x89432b,'name':_0x5458ca});}['_createSuggestion'](_0x43271a,_0x4a26d7,_0x41bc29,_0x2ed7cc,_0x326f70){const _0x3a471c=this[_0x2561('0xf0')](_0x2ed7cc),_0x57d79f=this[_0x2561('0x31')][_0x2561('0x134')](_0x43271a,_0x4a26d7,_0x41bc29,_0x3a471c,_0x326f70,_0x8b0914=>this[_0x2561('0xf9')](_0x41bc29,{'attributes':_0x8b0914}));return this[_0x2561('0x13')](_0x57d79f,_0x2561('0xc'),()=>{this[_0x2561('0xf9')](_0x41bc29,{'state':'accepted'});},{'priority':_0x2561('0x65')}),this[_0x2561('0x13')](_0x57d79f,_0x2561('0x101'),()=>{this[_0x2561('0xf9')](_0x41bc29,{'state':_0x2561('0x0')});},{'priority':_0x2561('0x65')}),this['_suggestions'][_0x2561('0x62')](_0x41bc29,_0x57d79f),this[_0x2561('0x106')][_0x2561('0x62')](_0x57d79f,_0x2561('0x12a')),_0x57d79f;}[_0x2561('0x56')](_0x510c84){const _0x5b8afd=_0x510c84[_0x2561('0x11a')](':');return{'group':_0x5b8afd[0x0],'type':_0x5b8afd[0x1],'subType':_0x5b8afd['length']>=0x5?_0x5b8afd[0x2]:null,'id':_0x5b8afd[_0x2561('0x11b')]<0x5?_0x5b8afd[0x2]:_0x5b8afd[0x3],'authorId':_0x5b8afd['length']<0x5?_0x5b8afd[0x3]:_0x5b8afd[0x4],'markerCount':0x6==_0x5b8afd[_0x2561('0x11b')]?_0x5b8afd[0x5]:null};}[_0x2561('0xb')](_0x3d2522,_0x34da8e,_0x4978a2){const _0x15adb9=_0x3d2522[_0x2561('0xb9')](),_0x5e26a8=_0x15adb9[_0x2561('0x1c')],_0x1b93e2=_0x15adb9[_0x2561('0xa6')];this[_0x2561('0x5d')](_0x3d2522,this[_0x2561('0x68')][_0x2561('0xa8')](_0x5e26a8,_0x34da8e));const _0x479f75=_0x38ee88(),_0x4103a5=_0x3d2522[_0x2561('0x110')]['id'],_0x281810=_0x3d2522[_0x2561('0x22')]+(_0x3d2522['subType']?':'+_0x3d2522['subType']:'');this[_0x2561('0x19')]({'id':_0x479f75,'type':_0x281810,'createdAt':new Date(),'authorId':_0x4103a5,'originalSuggestionId':_0x3d2522['id'],'attributes':_0x3d2522['attributes'],'data':_0x3d2522[_0x2561('0x8a')]}),'formatBlock'==_0x3d2522[_0x2561('0x22')]&&(_0x4978a2=this['_model'][_0x2561('0x35')](_0x4978a2['parent'])),this['_addSuggestionMarker'](_0x281810,_0x479f75,_0x4103a5,this[_0x2561('0x68')][_0x2561('0xa8')](_0x4978a2,_0x1b93e2));}['_findSuggestions'](_0x4e89db,_0x1680ff=null){const _0x2a879a=[],_0x290376=this['_model']['schema'],_0x4efde7=this[_0x2561('0x123')][_0x2561('0x11e')][_0x2561('0xff')]('Users')['me'];for(const _0x5d140e of this[_0x2561('0xdd')]())if(_0x5d140e['isInContent']&&(!_0x1680ff||_0x5d140e[_0x2561('0x22')]==_0x1680ff))for(const _0x22f0ea of _0x5d140e[_0x2561('0x91')]()){const _0x5928b7=_0x4e89db[_0x2561('0x1c')]['isEqual'](_0x22f0ea[_0x2561('0xa6')])||_0x4e89db[_0x2561('0xa6')][_0x2561('0xeb')](_0x22f0ea[_0x2561('0x1c')]);if(_0x5928b7||_0x4e89db['getIntersection'](_0x22f0ea)){const _0x8373e5=_0x4e89db[_0x2561('0x135')](_0x22f0ea)&&Bt(_0x290376,_0x22f0ea['start'],_0x4e89db),_0x4019e4=_0x22f0ea[_0x2561('0x135')](_0x4e89db)&&Bt(_0x290376,_0x4e89db['start'],_0x22f0ea);_0x2a879a[_0x2561('0xd')]({'suggestion':_0x5d140e,'meta':{'isOwn':_0x4efde7==_0x5d140e['author'],'isNextTo':_0x5928b7,'isInsideObject':_0x8373e5,'containsRangeInObject':_0x4019e4}});break;}}return _0x2a879a;}[_0x2561('0x86')](_0x418f89,_0x5175ec,_0x25e136,_0xfd5155,_0x4d8cae){this['_model'][_0x2561('0xaf')](_0x4aed81=>{let _0x570114='suggestion:'+_0x418f89+':'+_0x5175ec+':'+_0x25e136;_0x4d8cae&&(_0x570114=_0x570114+':'+_0x4d8cae),_0x4aed81['addMarker'](_0x570114,{'range':_0xfd5155,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2561('0x9f')](_0x3ce56b){const _0x17fdde=_0x3ce56b[_0x2561('0x71')],_0x7220e0=_0x3ce56b['next'];_0x3ce56b[_0x2561('0x71')]=null,null!=_0x17fdde&&(_0x17fdde['next']=null),_0x3ce56b[_0x2561('0x12b')]=null,null!=_0x7220e0&&(_0x7220e0['previous']=null),_0x2561('0x3e')==this['_suggestionState'][_0x2561('0xff')](_0x3ce56b)&&(this[_0x2561('0x106')][_0x2561('0x62')](_0x3ce56b,_0x2561('0x51')),this[_0x2561('0x60')](_0x2561('0x3b'),_0x3ce56b,_0x17fdde,_0x7220e0));}[_0x2561('0x19')](_0xade97){const _0x46b78e=_0xade97['id'],_0x3334e1=this['addSuggestionData'](_0xade97);if(this[_0x2561('0xdf')]&&this[_0x2561('0xdf')]['addSuggestion']){const _0xa23cf1=this[_0x2561('0x123')]['plugins']['get'](_0x2561('0x73')),_0x5a826c=_0x3334e1['hasComments'],_0x5c9f5e=_0x3334e1[_0x2561('0x27')]?_0x3334e1['type']+':'+_0x3334e1[_0x2561('0x27')]:_0x3334e1[_0x2561('0x22')],_0x10426c=this[_0x2561('0x123')][_0x2561('0xee')],_0x47c923=_0xa23cf1[_0x2561('0x10d')](_0x22120c(_0x10426c,_0x2561('0xd9'))),_0x90ba84={'id':_0x46b78e,'type':_0x5c9f5e,'hasComments':_0x5a826c,'data':_0xade97[_0x2561('0x8a')]||null,'originalSuggestionId':_0xade97[_0x2561('0xc5')]||null,'attributes':_0x3334e1[_0x2561('0xfd')]};this['_adapter'][_0x2561('0x96')](_0x90ba84)['then'](_0x16b9d5=>{_0x3334e1[_0x2561('0xd5')]=!0x0,_0xa23cf1['remove'](_0x47c923),_0x16b9d5&&_0x16b9d5[_0x2561('0x10c')]&&(this['_suggestions'][_0x2561('0xff')](_0x46b78e)['createdAt']=_0x16b9d5[_0x2561('0x10c')]);})[_0x2561('0x4')](_0x1173f7=>{throw _0x189a2d(_0x2561('0x17')),this[_0x2561('0x123')][_0x2561('0xfb')][_0x2561('0x8d')]({'isUndoable':!0x1},()=>{_0x3334e1['discard']();}),_0x3334e1[_0x2561('0x34')](),this[_0x2561('0xca')][_0x2561('0xb4')](_0x3334e1['id']),this['_suggestionState']['delete'](_0x3334e1),_0x1173f7;});}return _0x3334e1;}[_0x2561('0xf9')](_0xbc87cf,_0x57ef1e){const _0x1330aa=this['editor'][_0x2561('0x11e')][_0x2561('0xff')](_0x2561('0x73')),_0x2ac235=this[_0x2561('0x9')](_0xbc87cf);if(this['_adapter']&&this[_0x2561('0xdf')][_0x2561('0xb6')]){if(_0x2ac235['_saved']){const _0x19ee29=_0x1330aa[_0x2561('0x10d')](_0x22120c(this['editor'][_0x2561('0xee')],_0x2561('0xd9')));this['_adapter'][_0x2561('0xb6')](_0xbc87cf,_0x57ef1e)['then'](()=>{_0x1330aa[_0x2561('0x7b')](_0x19ee29);});}else _0x2ac235['on'](_0x2561('0x136'),()=>{this[_0x2561('0xf9')](_0xbc87cf,_0x57ef1e);});}}[_0x2561('0x45')](_0x3e7afa){if(!this['_adapter']||!this[_0x2561('0xdf')][_0x2561('0x9')])throw new _0x17f068('track-changes-adapter-missing-getsuggestion',this);return this[_0x2561('0xdf')][_0x2561('0x9')](_0x3e7afa);}['_handleNewSuggestionMarker'](_0x1862f9){const {id:_0x5c1b2c,type:_0x2d0e9d,subType:_0x40f15b,authorId:_0x534edd}=this[_0x2561('0x56')](_0x1862f9),_0x4fd8f8=this[_0x2561('0xca')][_0x2561('0xff')](_0x5c1b2c)||this[_0x2561('0x23')](_0x2d0e9d,_0x40f15b,_0x5c1b2c,_0x534edd,{});switch(this['_checkSuggestionCorrectness'](_0x4fd8f8,_0x2d0e9d,_0x40f15b,_0x534edd),this[_0x2561('0x106')]['get'](_0x4fd8f8)){case _0x2561('0x12a'):this['_getSuggestionData'](_0x5c1b2c)['then'](_0x52e51b=>{let _0x4421cd=Promise['resolve']();_0x52e51b[_0x2561('0x6')]&&(_0x4421cd=this[_0x2561('0x30')][_0x2561('0x2a')]({'channelId':this[_0x2561('0x123')][_0x2561('0x42')][_0x2561('0xff')]('collaboration.channelId'),'threadId':_0x5c1b2c})),_0x4421cd[_0x2561('0x12c')](()=>{this[_0x2561('0xc9')](_0x52e51b)[_0x2561('0xd5')]=!0x0;});}),this['_suggestionState'][_0x2561('0x62')](_0x4fd8f8,_0x2561('0x7'));break;case _0x2561('0x51'):this[_0x2561('0xf9')](_0x5c1b2c,{'state':_0x2561('0xb3')});case _0x2561('0x97'):this[_0x2561('0x106')][_0x2561('0x62')](_0x4fd8f8,_0x2561('0x3e')),this[_0x2561('0x60')](_0x2561('0x46'),_0x4fd8f8);break;case _0x2561('0x3e'):this['fire'](_0x2561('0xc2'),_0x4fd8f8);}return _0x4fd8f8[_0x2561('0x18')](_0x1862f9),_0x4fd8f8;}[_0x2561('0x1e')](_0x1d066f){const _0x26239d=Array[_0x2561('0x47')](_0x1d066f)['filter'](_0x4b7f41=>!_0x4b7f41['isMultiRange']),_0x16d639=this[_0x2561('0xdd')]({'skipNotAttached':!0x0})[_0x2561('0x49')](_0x2e1042=>!_0x2e1042[_0x2561('0x5f')]),_0x45446f=_0x16d639['filter'](_0x38b6ed=>!_0x1d066f[_0x2561('0x10f')](_0x38b6ed)),_0x485a4d=new Map(_0x16d639[_0x2561('0xbd')](_0x50c41b=>[_0x50c41b,this['_suggestionFactory'][_0x2561('0xda')](_0x50c41b[_0x2561('0x22')],_0x50c41b[_0x2561('0x27')],_0x2561('0x5a'))])),_0x5e0749=new Map(_0x16d639['map'](_0xe2fd67=>[_0xe2fd67,_0xe2fd67[_0x2561('0xb9')]()])),_0x4b4623=new Set(),_0x3c1484=new Set();for(let _0x269c7f=0x0;_0x269c7f<_0x26239d[_0x2561('0x11b')];_0x269c7f++)_0x20b9ff(_0x26239d[_0x269c7f],_0x26239d,_0x269c7f+0x1);for(let _0x36f2c8=0x0;_0x36f2c8<_0x26239d[_0x2561('0x11b')];_0x36f2c8++)_0x20b9ff(_0x26239d[_0x36f2c8],_0x45446f,0x0);for(let _0x34f844=0x0;_0x34f844<_0x26239d[_0x2561('0x11b')];_0x34f844++){const _0xb39ae=_0x26239d[_0x34f844];!_0x3c1484[_0x2561('0x10f')](_0xb39ae)&&_0xb39ae['previous']&&(_0xb39ae['previous'][_0x2561('0x12b')]===_0xb39ae&&(_0xb39ae[_0x2561('0x71')][_0x2561('0x12b')]=null),_0xb39ae[_0x2561('0x71')]=null),!_0x4b4623[_0x2561('0x10f')](_0xb39ae)&&_0xb39ae[_0x2561('0x12b')]&&(_0xb39ae[_0x2561('0x12b')][_0x2561('0x71')]===_0xb39ae&&(_0xb39ae['next']['previous']=null),_0xb39ae['next']=null);}function _0x20b9ff(_0x41b0b,_0x499657,_0x4a57ee){for(let _0x2ad0d0=_0x4a57ee;_0x2ad0d0<_0x499657['length'];_0x2ad0d0++){const _0xd9af81=_0x4e3bfb(_0x41b0b,_0x499657[_0x2ad0d0]);_0xd9af81&&(_0xd9af81[0x0][_0x2561('0x12b')]=_0xd9af81[0x1],_0xd9af81[0x1][_0x2561('0x71')]=_0xd9af81[0x0],_0x4b4623['add'](_0xd9af81[0x0]),_0x3c1484['add'](_0xd9af81[0x1]));}}function _0x4e3bfb(_0x289c20,_0x26dc02){if(_0x289c20['author']['id']!==_0x26dc02['author']['id'])return null;const _0x4e90a2=_0x485a4d[_0x2561('0xff')](_0x289c20)(_0x289c20,_0x26dc02,_0x5e0749[_0x2561('0xff')](_0x289c20),_0x5e0749['get'](_0x26dc02));if(!_0x4e90a2)return null;return _0x485a4d[_0x2561('0xff')](_0x26dc02)(_0x289c20,_0x26dc02,_0x5e0749['get'](_0x289c20),_0x5e0749[_0x2561('0xff')](_0x26dc02))?_0x4e90a2[0x1][_0x2561('0x127')]&&_0x4e90a2[0x1][_0x2561('0x127')]['length']?null:_0x4e90a2:null;}}[_0x2561('0x24')](_0x1a5267){const _0xa469fd=Array[_0x2561('0x47')](_0x1a5267),_0xd69a53=this['getSuggestions']({'skipNotAttached':!0x0}),_0x481a0b=_0xd69a53[_0x2561('0x49')](_0x181f74=>!_0x1a5267[_0x2561('0x10f')](_0x181f74)),_0x189ecf=new Map(_0xa469fd[_0x2561('0xbd')](_0x5b48e7=>[_0x5b48e7,this[_0x2561('0x31')][_0x2561('0xda')](_0x5b48e7[_0x2561('0x22')],_0x5b48e7['subType'],_0x2561('0x10'))])),_0x3cf053=new Map(_0xd69a53['map'](_0x222708=>[_0x222708,_0x222708[_0x2561('0x91')]()]));for(let _0x5ccdf9=0x0;_0x5ccdf9<_0xa469fd[_0x2561('0x11b')];_0x5ccdf9++){if(_0x31c032(this,_0xa469fd[_0x5ccdf9],_0xa469fd,_0x5ccdf9+0x1))return!0x0;}for(let _0x788aff=0x0;_0x788aff<_0xa469fd['length'];_0x788aff++){if(_0x31c032(this,_0xa469fd[_0x788aff],_0x481a0b,0x0))return!0x0;}return!0x1;function _0x31c032(_0x48df60,_0x1726e1,_0x3167b2,_0x361ad6){for(let _0x33b2dc=_0x361ad6;_0x33b2dc<_0x3167b2[_0x2561('0x11b')];_0x33b2dc++){const _0x7dac4b=_0x3167b2[_0x33b2dc];if(_0x7dac4b[_0x2561('0x22')]!==_0x1726e1[_0x2561('0x22')]||_0x7dac4b[_0x2561('0x58')]['id']!==_0x1726e1[_0x2561('0x58')]['id']||_0x7dac4b[_0x2561('0x27')]!==_0x1726e1[_0x2561('0x27')])continue;const _0x51b992=_0x189ecf[_0x2561('0xff')](_0x1726e1),_0x4562da=_0x3cf053[_0x2561('0xff')](_0x1726e1),_0x7d4ee7=_0x3cf053[_0x2561('0xff')](_0x7dac4b),_0x3a843e=_0x1726e1[_0x2561('0x127')]&&_0x1726e1[_0x2561('0x127')][_0x2561('0x11b')],_0x4b80e6=_0x7dac4b[_0x2561('0x127')]&&_0x7dac4b['commentThread']['length'];if(!_0x3a843e&&_0x51b992(_0x7d4ee7,_0x4562da))return _0x48df60[_0x2561('0x105')](_0x7dac4b,_0x1726e1),_0x3cf053[_0x2561('0xb4')](_0x1726e1),!0x0;if(!_0x4b80e6&&_0x51b992(_0x4562da,_0x7d4ee7))return _0x48df60[_0x2561('0x105')](_0x1726e1,_0x7dac4b),_0x3cf053[_0x2561('0xb4')](_0x7dac4b),!0x0;}return!0x1;}}[_0x2561('0x105')](_0x2b3a82,_0x3ddf82){if(_0x2b3a82[_0x2561('0x5f')])for(const _0x29aada of _0x3ddf82[_0x2561('0x91')]())_0x2b3a82[_0x2561('0x125')](_0x29aada);else{const _0x392f28=_0x3ddf82[_0x2561('0xb9')]()['end'];this[_0x2561('0x5d')](_0x2b3a82,this[_0x2561('0x68')][_0x2561('0xa8')](_0x2b3a82[_0x2561('0xb9')]()['start'],_0x392f28));}_0x3ddf82['removeMarkers']();}}class Dt{constructor(_0x26a19b){this[_0x2561('0xd6')]=_0x26a19b,this[_0x2561('0x68')]=_0x26a19b['model'],this[_0x2561('0x69')]=new Map(),this[_0x2561('0x25')]=new Map(),this[_0x2561('0x63')]();}[_0x2561('0x134')](_0xa43044,_0x5988dc,_0x4d4b57,_0xf75144,_0x36814b,_0x20d391){return new _0x2c377e(this[_0x2561('0x68')],{'type':_0xa43044,'subType':_0x5988dc,'id':_0x4d4b57,'author':_0xf75144,'creator':_0xf75144,'attributes':_0x36814b,'onAttributesChange':_0x20d391,'onAccept':(..._0x24831c)=>this[_0x2561('0xda')](_0xa43044,_0x5988dc,_0x2561('0xc'))(..._0x24831c),'onDiscard':(..._0x32a633)=>this[_0x2561('0xda')](_0xa43044,_0x5988dc,_0x2561('0x101'))(..._0x32a633)});}['registerCustomCallback'](_0x1748a1,_0x412094,_0x2a66a9,_0x30349d){const _0xc878bc=_0x1748a1+':'+_0x412094+':'+_0x2a66a9;this['_customCallbacks']['set'](_0xc878bc,_0x30349d);}[_0x2561('0xda')](_0x35db58,_0x196303,_0x2bab4c){const _0xad1ae0=_0x35db58+':'+_0x196303+':'+_0x2bab4c;return this['_customCallbacks']['get'](_0xad1ae0)||this[_0x2561('0x25')][_0x2561('0xff')](_0x35db58+':'+_0x2bab4c);}['_registerDefaultCallbacks'](){const _0x494374=()=>{},_0x2a1275=_0x21996b=>{_0x21996b['sort']((_0x406e95,_0x16a7a8)=>_0x406e95['start'][_0x2561('0xa1')](_0x16a7a8[_0x2561('0x1c')])?0x1:-0x1),this[_0x2561('0x68')][_0x2561('0xaf')](_0x412bd6=>{for(const _0x59ba89 of _0x21996b){let _0xa2da72;_0xa2da72=_0x59ba89[_0x2561('0xa6')][_0x2561('0x138')]&&_0x59ba89[_0x2561('0xa6')][_0x2561('0xad')]==_0x59ba89[_0x2561('0x1c')][_0x2561('0x89')]?_0x412bd6['createSelection'](_0x59ba89['start'][_0x2561('0x89')],'on'):_0x412bd6['createSelection'](_0x59ba89),this[_0x2561('0x68')][_0x2561('0x61')](_0xa2da72,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4864f7=(_0x8dd14d,_0x3e3693)=>{this[_0x2561('0x68')]['change'](_0x4519cc=>{const {commandName:_0x192405,commandParams:_0xa88e7a=[]}=_0x3e3693,_0x445ce3=_0x8dd14d[_0x2561('0xbd')](_0x340680=>(_t(_0x340680)&&(_0x340680=this[_0x2561('0x68')][_0x2561('0xa8')](_0x340680[_0x2561('0xa6')])),_0x340680))[_0x2561('0x49')](_0x1eb14b=>_0x2561('0xbc')!==_0x1eb14b[_0x2561('0x103')][_0x2561('0x3a')]);if(_0x445ce3[_0x2561('0x11b')]<0x1)return;const _0x21c71b=Array['from'](this[_0x2561('0x68')][_0x2561('0x1')][_0x2561('0x7d')]['getRanges']())[_0x2561('0xbd')](_0x456537=>_0x5d92ab['fromRange'](_0x456537));_0x4519cc[_0x2561('0x8')](_0x445ce3);for(const _0x5bd2e0 of this[_0x2561('0xd6')][_0x2561('0x109')][_0x2561('0x109')]())_0x5bd2e0['refresh']();_0xa88e7a[_0x2561('0xd')]({'forceDefaultExecution':!0x0}),this[_0x2561('0xd6')][_0x2561('0xe7')](_0x192405,..._0xa88e7a);const _0x53b7b2=_0x21c71b[_0x2561('0x49')](_0x4e7d17=>'$graveyard'!=_0x4e7d17[_0x2561('0x103')][_0x2561('0x3a')]);_0x53b7b2['length']>0x0&&_0x4519cc['setSelection'](_0x53b7b2);for(const _0x62871c of _0x21c71b)_0x62871c[_0x2561('0xc0')]();});},_0x5c493e=(_0x344c80,_0x4e9171)=>0x1==_0x344c80[_0x2561('0x11b')]&&0x1==_0x4e9171['length']&&_0x344c80[0x0][_0x2561('0xa6')][_0x2561('0xeb')](_0x4e9171[0x0]['start']),_0x58facf=(_0x3d4af8,_0x1b9db0,_0x298cc7,_0x3baee1)=>xt(_0x3d4af8,_0x1b9db0,_0x298cc7,_0x3baee1,this[_0x2561('0x68')])?[_0x3d4af8,_0x1b9db0]:xt(_0x1b9db0,_0x3d4af8,_0x3baee1,_0x298cc7,this[_0x2561('0x68')])?[_0x1b9db0,_0x3d4af8]:null;this['_defaultCallbacks'][_0x2561('0x62')]('insertion:accept',_0x494374),this['_defaultCallbacks'][_0x2561('0x62')](_0x2561('0x11c'),_0x2a1275),this['_defaultCallbacks']['set'](_0x2561('0x66'),_0x5c493e),this['_defaultCallbacks'][_0x2561('0x62')](_0x2561('0xcd'),_0x58facf),this[_0x2561('0x25')][_0x2561('0x62')](_0x2561('0xa3'),_0x2a1275),this[_0x2561('0x25')][_0x2561('0x62')](_0x2561('0x3d'),_0x494374),this['_defaultCallbacks'][_0x2561('0x62')]('deletion:join',_0x5c493e),this[_0x2561('0x25')][_0x2561('0x62')](_0x2561('0x1d'),_0x58facf),this[_0x2561('0x25')][_0x2561('0x62')](_0x2561('0xc1'),_0x4864f7),this[_0x2561('0x25')]['set'](_0x2561('0x132'),_0x494374),this[_0x2561('0x25')]['set'](_0x2561('0x3c'),_0x5c493e),this[_0x2561('0x25')][_0x2561('0x62')](_0x2561('0x28'),_0x494374),this[_0x2561('0x25')][_0x2561('0x62')](_0x2561('0x41'),_0x4864f7),this[_0x2561('0x25')][_0x2561('0x62')](_0x2561('0x8b'),_0x494374),this[_0x2561('0x25')][_0x2561('0x62')](_0x2561('0xe2'),_0x5c493e),this[_0x2561('0x25')]['set']('formatBlock:chain',_0x494374);}}function Bt(_0x2b57c6,_0x5b72a5,_0x4bd5ab){for(const _0x261ef3 of _0x5b72a5[_0x2561('0xad')][_0x2561('0x130')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x261ef3[_0x2561('0x103')]==_0x261ef3)return!0x1;if(!_0x4bd5ab['containsItem'](_0x261ef3))return!0x1;if(_0x2b57c6[_0x2561('0xec')](_0x261ef3)||_0x2b57c6[_0x2561('0x98')](_0x261ef3))return!0x0;}return!0x1;}function _t(_0x5d8c45){return _0x5d8c45['end'][_0x2561('0xad')]==_0x5d8c45[_0x2561('0x1c')][_0x2561('0x89')]&&_0x5d8c45[_0x2561('0xa6')][_0x2561('0x32')];}function Mt(_0x24340c,_0x2fee26,_0x5e3ec8,_0xddf237){const _0x276739=_0x1a0e39=>!_0x1a0e39[_0x2561('0x10e')]['is'](_0x2561('0x2f'))&&!_0xddf237[_0x2561('0xec')](_0x1a0e39[_0x2561('0x10e')]),_0x6d54a=_0x24340c[_0x2561('0x1c')][_0x2561('0xb5')](_0x276739),_0xbaf5d4=_0x24340c['end'][_0x2561('0xb5')](_0x276739,{'direction':_0x2561('0x118')});return(!_0x24340c[_0x2561('0x1c')][_0x2561('0xeb')](_0x6d54a)||!_0x24340c[_0x2561('0xa6')]['isEqual'](_0xbaf5d4))&&(_0x6d54a[_0x2561('0xa1')](_0xbaf5d4)?_0x5e3ec8[_0x2561('0x117')](_0x2fee26,{'range':_0x5e3ec8[_0x2561('0xa8')](_0x6d54a,_0xbaf5d4)}):_0x5e3ec8['removeMarker'](_0x2fee26),!0x0);}function $t(_0x50debb){return _0x1cec4d(_0x50debb);}function Nt(_0x4c6fd9){const _0x1c971b=_0x4c6fd9[_0x2561('0x1c')][_0x2561('0x89')];return _0x1c971b&&_0x1c971b['is'](_0x2561('0xce'));}function Rt(_0x13521e,_0xe7e421){const _0x415026=_0xe7e421[_0x2561('0xf5')]['isObject'](_0x13521e)||_0xe7e421[_0x2561('0xf5')]['isSelectable'](_0x13521e);return _0xe7e421['createRange'](_0xe7e421[_0x2561('0x12')](_0x13521e,_0x2561('0x50')),_0x415026?_0xe7e421[_0x2561('0x7e')](_0x13521e):_0xe7e421[_0x2561('0x12')](_0x13521e,'end'));}function xt(_0x2855b7,_0x3cc1bb,_0x3bf3df,_0x2a627b,_0xc36376){if(_0x3bf3df[_0x2561('0xa6')]['isEqual'](_0x2a627b[_0x2561('0x1c')]))return!0x0;if(_0x2855b7['type']!=_0x3cc1bb['type'])return!0x1;if(!_0x3bf3df[_0x2561('0xa6')]['isTouching'](_0x2a627b[_0x2561('0x1c')]))return!0x1;const _0x165586=_0xc36376[_0x2561('0xa8')](_0x3bf3df[_0x2561('0xa6')],_0x2a627b[_0x2561('0x1c')])['getWalker']();for(const _0x3cdae2 of _0x165586)if([_0x2561('0x90'),'elementEnd'][_0x2561('0x79')](_0x3cdae2[_0x2561('0x22')])&&_0xc36376['schema'][_0x2561('0x98')](_0x3cdae2['item']))return!0x1;return!0x0;}
|
|
23
|
+
const _0x445c=['then','conversion','deletion:join','setTo','backward','attributes','insertContent','always','_rangeIsInLocalUserInsertion','marker-count','createRangeIn','formatInline:','locale','addComment','_splitMarkerName','formatBlock:join','some','authoredAt','has','author','widget','formatBlock:','removeMarker','oldRange','markerName','getFirstRange','skipNestingCheck','_breakSuggestionMarker','subType','markInlineFormat','elementToElement','trackChangesCommand','markMultiRangeDeletion','_onDiscard','item','enqueueChange','getAllAdjacentSuggestions','isInsideObject','moveTargetPosition','removeMarkers','adapter','insertion:chain','_joinSuggestions','getRange','getAttribute','unbind','collaboration.channelId','_suggestionState','low','isNextTo','forward','next','$graveyard','editingDowncast','suggestionLoaded','setSelection','_descriptionFactory','accept','remove','enableReadOnlyMode','hasSuggestion','isSelectable','discardAllSuggestions','isAfter','change:activeMarkers','every','commandName','discard','insertion:accept','stopListening','showSuggestionHighlights','isAtEnd','getDifference','fetchCommentThread','differ','_model','howMany','isInContent','size','createPositionAfter','start','after','discardSuggestion','addRange','isObject','insert','_editor','init','updateMarker','rethrowUnexpectedError','_setSuggestionRange','substr','getChangedMarkers','_checkSuggestionCorrectness','activeMarkers','addClass','options','selection','getRanges','highest','getUser','delete','dataReady','_getExternalAuthor','isTouching','isRemovable','elementStart','formatInline:accept','lowest','createSelection','never','markBlockFormat','length','position','_saved','split','normal','add','get','containsItem','pluginName','requires','TrackChangesEditing','containsRange','suggestion-type','_getAuthorFromId','getMarkers','dataDowncast','suggestionUnloaded','suggestion:','set','schema','_customCallbacks','detach','range','markDeletion','markerToData','trackChanges','data','removed','getIntersection','previous','multipleBlocks','registerCustomCallback','head','createElement','formatBlock:accept','containsRangeInObject','markerReady','change','_cutOutSuggestionMarker','authorName','splice','formatBlock:chain','getItems','acceptSelectedSuggestions','_setSuggestionData','data-suggestion','track-changes-adapter-already-set','map','hasCommentThread','isExternal','createPositionAt','getShiftedBy','_updateSuggestionData','addSuggestion','_trackFormatChanges','_suggestionFactory','insertion:','nodeBefore','formatInline','_handleNewSuggestionMarker','bindElementToMarker','track-changes-suggestion-not-found','from','ck-suggestion-marker-formatBlock','isLocal','end','batch','isCollapsed','getCustomProperty','track-changes-suggestion-data-mismatch','listenTo','addMarker:suggestion','CommentsRepository','suggestion','suggestionChanged','parent','ck-suggestion-marker--active','Users','notReady','updateSuggestion','values','clone','removeMarker:suggestion:formatBlock','dataToMarker','_refreshSuggestionsChain','_findSuggestions','isIntersectingWithRange','type','targetPosition','define','getSuggestion','element','addCommentThread','writer','hasComments','ready','commands','getSuggestions','deletion','isBlock','model','nodeAfter','deletion:','getMultiRangeId','commentThread','formatInline:chain','markers','value','splitPosition','_mergeNestedSuggestions','execute','root','_isForcedDefaultExecutionBlock','markerToHighlight','ck-suggestion-marker-','document','getChanges','getFirstMarker','getNearestSelectionRange','getSuggestionCallback','PENDING_ACTION_SUGGESTION','removeComment','isMultiRange','group','stop','addHighlight','addMarker','multi','insertion:join','fromCharCode','removeClass','_addThreadToSuggestion','createRange','high','toJSON','addMarkerName','fromRange','registerPostFixer','getAncestors','accepted','@external','error-saving-suggestion-data-suggestion-discarded','documentSelection','acceptAllSuggestions','_adapter','plugins','markInsertion','filter','markMultiRangeBlockFormat','_enabledCommands','isUndo','config','getWalker','_commentsRepository','consume','toViewElement','join','_createSuggestion','trackChanges.trackFormatChanges','PendingActions','push','elementEnd','for','_suggestions','insertion','isBefore','enableCommand','reconvertMarker','upcast','fire','forceDefaultExecution','discardSelectedSuggestions','clear','editor','formatGroupId','isLimit','refresh','trackChanges.mergeNestedSuggestions','_addSuggestionMarker','_joinWithAdjacentSuggestions','containsPosition','_registerDefaultCallbacks','addMarker:suggestion:formatBlock','consumable','addSuggestionData','newRange','formatBlock','buildSuggestion','deleteContent','rootName','name','ck-suggestion-marker','isDocumentOperation','_defaultCallbacks','getLastMatchingPosition','deletion:chain','formatInline:discard','includes','mapper','resolve','_removeSuggestion','isEqual','createdAt','isOwn','external:','applyOperation','default','change:_saved','creator'];(function(_0x1f0853,_0x445ce8){const _0x3cc073=function(_0x4a8b22){while(--_0x4a8b22){_0x1f0853['push'](_0x1f0853['shift']());}};_0x3cc073(++_0x445ce8);}(_0x445c,0xe6));const _0x3cc0=function(_0x1f0853,_0x445ce8){_0x1f0853=_0x1f0853-0x0;let _0x3cc073=_0x445c[_0x1f0853];return _0x3cc073;};import{Plugin as _0x294816,PendingActions as _0x1cabea}from'ckeditor5/src/core';import{LiveRange as _0x4b431b}from'ckeditor5/src/engine';import{CKEditorError as _0x352f3d,uid as _0x29dde6,priorities as _0x39fcb1,logWarning as _0x512b36}from'ckeditor5/src/utils';import{toWidget as _0x526dc8}from'ckeditor5/src/widget';import{Users as _0x49dde2,hashObject as _0x17e8a1}from'ckeditor5-collaboration/src/collaboration-core';import _0x4b8acc from'./commands/trackchangescommand';import _0x3c867c from'./commands/acceptsuggestioncommand';import _0x89ac98 from'./commands/discardsuggestioncommand';import _0x1156fe from'./commands/executeonallsuggestionscommand';import _0x2fccee from'./commands/executeonselectedsuggestionscommand';import _0x1bda2a from'./suggestion';import _0x2edd7c from'./suggestiondescriptionfactory';import _0x425b75 from'./integrations/alignment';import _0x369667 from'./integrations/basicstyles';import _0x250293 from'./integrations/blockquote';import _0x240b2b from'./integrations/ckbox';import _0x3d2007 from'./integrations/codeblock';import _0x1d7607 from'./integrations/comments';import _0x39e631 from'./integrations/deletecommand';import _0x430e69 from'./integrations/documentlist';import _0x192c8f from'./integrations/entercommand';import _0x1c76f0 from'./integrations/findandreplace';import _0x40a97a from'./integrations/font';import _0x14bf93 from'./integrations/formatpainter';import _0x521ccc from'./integrations/heading';import _0x2aa956 from'./integrations/highlight';import _0x42e05e from'./integrations/horizontalline';import _0x4c023e from'./integrations/htmlembed';import _0x1d9489 from'./integrations/image';import _0x25cd74 from'./integrations/imagereplace';import _0x3f6c9b from'./integrations/importword';import _0x1ece04 from'./integrations/indent';import _0x2757a9 from'./integrations/inputcommand';import _0x28c13c from'./integrations/link';import _0x6423a4 from'./integrations/list';import _0x2bc1f0 from'./integrations/listproperties';import _0x167f8f from'./integrations/mediaembed';import _0x2f9922 from'./integrations/mention';import _0x21e79b from'./integrations/pagebreak';import _0x234507 from'./integrations/paragraph';import _0xebcea1 from'./integrations/removeformat';import _0x4e9827 from'./integrations/restrictededitingmode';import _0x443267 from'./integrations/shiftentercommand';import _0x59d316 from'./integrations/standardeditingmode';import _0x45c07b from'./integrations/style';import _0x571ef from'./integrations/table';import _0x4924ef from'./integrations/tablemergesplit';import _0x1fe183 from'./integrations/tableheadings';import _0x53e2c8 from'./integrations/tableclipboard';import _0x2a142f from'./integrations/tablecolumnresize';import _0x1e965e from'./integrations/template';import _0xdcb17f from'./integrations/tableofcontents';import _0x2ffdcd from'./integrations/title';import _0x235e46 from'./integrations/undo';import{getTranslation as _0x5b8049}from'./utils/common-translations';import _0xff5417 from'./integrations/tablecaption';import _0x5b630d from'./integrations/documentlistproperties';import _0x14c8f4 from'./integrations/tableproperties';export default class p extends _0x294816{static get[_0x3cc0('0xd4')](){return[_0x3cc0('0x113'),_0x49dde2,_0x1cabea,_0x425b75,_0x369667,_0x250293,_0x240b2b,_0x3d2007,_0x1d7607,_0x39e631,_0x430e69,_0x5b630d,_0x192c8f,_0x1c76f0,_0x40a97a,_0x14bf93,_0x521ccc,_0x2aa956,_0x42e05e,_0x4c023e,_0x1d9489,_0x25cd74,_0x3f6c9b,_0x1ece04,_0x2757a9,_0x28c13c,_0x6423a4,_0x2bc1f0,_0x167f8f,_0x2f9922,_0x21e79b,_0x234507,_0xebcea1,_0x4e9827,_0x443267,_0x59d316,_0x45c07b,_0x571ef,_0x4924ef,_0x1fe183,_0xff5417,_0x53e2c8,_0x2a142f,_0xdcb17f,_0x14c8f4,_0x1e965e,_0x2ffdcd,_0x235e46];}static get[_0x3cc0('0xd3')](){return _0x3cc0('0xd5');}constructor(_0x14b6ad){function _0x15f9aa(_0x83ae84){return _0x83ae84[_0x3cc0('0xfa')](_0x43e0e1=>String[_0x3cc0('0xb')](_0x43e0e1))[_0x3cc0('0x26')]('');}super(_0x14b6ad),this[_0x3cc0('0xdd')](_0x3cc0('0xb9'),[]),this['on'](_0x3cc0('0x9b'),(_0x17f9fe,_0x32eca7,_0x2f34e2,_0x50d0ee)=>{this[_0x3cc0('0xa6')][_0x3cc0('0xf0')](()=>{for(const _0x430cc6 of[..._0x50d0ee,..._0x2f34e2])this['_model'][_0x3cc0('0x135')]['has'](_0x430cc6)&&_0x14b6ad['editing'][_0x3cc0('0x31')](_0x430cc6);});}),this[_0x3cc0('0x93')]=new _0x2edd7c(this[_0x3cc0('0x37')]['model']['schema'],this['editor'][_0x3cc0('0x67')]),this[_0x3cc0('0x1a')]=null,this[_0x3cc0('0x102')]=new Dt(this[_0x3cc0('0x37')]),this[_0x3cc0('0x2d')]=new Map(),this[_0x3cc0('0x23')]=_0x14b6ad[_0x3cc0('0x1b')][_0x3cc0('0xd1')]('CommentsRepository'),this['_enabledCommands']=new Set(),this[_0x3cc0('0xa6')]=this[_0x3cc0('0x37')][_0x3cc0('0x12f')],this['_suggestionState']=new WeakMap(),this[_0x3cc0('0x13b')]=!0x1,_0x14b6ad[_0x3cc0('0x21')][_0x3cc0('0x124')](_0x3cc0('0x28'),_0x3cc0('0x58')),this[_0x3cc0('0x101')]=_0x14b6ad[_0x3cc0('0x21')][_0x3cc0('0xd1')]('trackChanges.trackFormatChanges'),_0x14b6ad['config'][_0x3cc0('0x124')](_0x3cc0('0x3b'),!0x0),this[_0x3cc0('0x138')]=_0x14b6ad[_0x3cc0('0x21')][_0x3cc0('0xd1')](_0x3cc0('0x3b')),this[_0x3cc0('0x7a')]=new _0x4b8acc(_0x14b6ad,this[_0x3cc0('0x1f')]),this[_0x15f9aa([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x15f9aa([0x34,0x30,0x34,0x36,0x31,0x34,0x31,0x32]);}[_0x3cc0('0xb2')](){const _0x139679=this[_0x3cc0('0x37')];_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')](_0x3cc0('0x90'))[_0x3cc0('0x13c')]({'model':_0x3cc0('0x114'),'view':_0x829a7a=>{const {id:_0x16d97a,type:_0x38fe10}=this[_0x3cc0('0x69')](_0x829a7a[_0x3cc0('0x73')]),_0x4a3a2d=[_0x3cc0('0x49'),_0x3cc0('0x13d')+_0x38fe10];let _0x44ab8d=0xbb8;return this[_0x3cc0('0xb9')][_0x3cc0('0x4f')](_0x829a7a[_0x3cc0('0x73')])&&(_0x4a3a2d[_0x3cc0('0x2a')](_0x3cc0('0x117')),_0x44ab8d=0xbc2),'deletion'==_0x38fe10&&(_0x44ab8d+=0x5),{'classes':_0x4a3a2d,'attributes':{'data-suggestion':_0x16d97a},'priority':_0x44ab8d};}}),_0x139679[_0x3cc0('0x5c')]['for'](_0x3cc0('0xda'))[_0x3cc0('0xd0')](_0x1e472d=>{_0x1e472d['on'](_0x3cc0('0x112'),(_0x44c9e0,_0x3bade4,_0x1a61da)=>{if(!_0x1a61da[_0x3cc0('0xbb')][_0x3cc0('0xa1')])return;const _0x345f4b=_0x3bade4[_0x3cc0('0x7d')];if(!_0x345f4b)return;const _0x8b5cbe=_0x1a61da[_0x3cc0('0x50')][_0x3cc0('0x25')](_0x345f4b);_0x139679[_0x3cc0('0x12f')]['schema']['isObject'](_0x345f4b)&&_0x8b5cbe&&!_0x8b5cbe['getCustomProperty'](_0x3cc0('0x6f'))&&_0x8b5cbe['is']('containerElement')&&_0x526dc8(_0x8b5cbe,_0x1a61da[_0x3cc0('0x128')]);},{'priority':_0x3cc0('0xf')});}),_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')](_0x3cc0('0xda'))[_0x3cc0('0x13c')]({'model':'suggestion','view':(_0x1c3b9d,_0x317169)=>{if(!_0x317169[_0x3cc0('0xbb')]['showSuggestionHighlights'])return null;const {type:_0x539519}=this[_0x3cc0('0x69')](_0x1c3b9d[_0x3cc0('0x73')]);return{'classes':[_0x3cc0('0x49'),'ck-suggestion-marker-'+_0x539519],'priority':0xbb8};}});const _0x3343f2=({showActiveMarkers:_0x2a46db=!0x0}={})=>(_0x40dedc,_0x22aaf8,_0x23e0a0)=>{if(!_0x22aaf8[_0x3cc0('0x7d')])return;if(_0x22aaf8[_0x3cc0('0x7d')]['is'](_0x3cc0('0xbc')))return void _0x23e0a0['consumable'][_0x3cc0('0x24')](_0x22aaf8[_0x3cc0('0x7d')],_0x40dedc[_0x3cc0('0x48')]);const _0x44bd8f=_0x23e0a0['mapper'][_0x3cc0('0x25')](_0x22aaf8[_0x3cc0('0x7d')]);if(!(_0x22aaf8['item']['is']('element')&&_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xde')][_0x3cc0('0x12e')](_0x22aaf8['item'])&&!_0x44bd8f['getCustomProperty'](_0x3cc0('0x7'))))return;const {id:_0x273273}=this[_0x3cc0('0x69')](_0x22aaf8[_0x3cc0('0x73')]);_0x23e0a0[_0x3cc0('0x128')][_0x3cc0('0xba')]([_0x3cc0('0x49'),_0x3cc0('0x10a')],_0x44bd8f),_0x23e0a0[_0x3cc0('0x128')]['setAttribute'](_0x3cc0('0xf8'),_0x273273,_0x44bd8f),_0x23e0a0[_0x3cc0('0x50')][_0x3cc0('0x107')](_0x44bd8f,_0x22aaf8['markerName']),_0x2a46db&&(this[_0x3cc0('0xb9')][_0x3cc0('0x4f')](_0x22aaf8['markerName'])?_0x23e0a0['writer'][_0x3cc0('0xba')](_0x3cc0('0x117'),_0x44bd8f):_0x23e0a0[_0x3cc0('0x128')][_0x3cc0('0xc')](_0x3cc0('0x117'),_0x44bd8f));for(const _0x2be561 of _0x139679['model'][_0x3cc0('0x65')](_0x22aaf8[_0x3cc0('0x7d')])[_0x3cc0('0xf5')]())_0x23e0a0['consumable']['consume'](_0x2be561,_0x40dedc[_0x3cc0('0x48')]);_0x23e0a0[_0x3cc0('0x41')]['consume'](_0x22aaf8['item'],_0x40dedc[_0x3cc0('0x48')]);};_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')]('dataDowncast')['add'](_0x329c2d=>{_0x329c2d['on']('addMarker:suggestion:formatBlock',(_0x46306d,_0x2d9cc6,_0x316848)=>{_0x316848[_0x3cc0('0xbb')]['showSuggestionHighlights']&&_0x3343f2({'showActiveMarkers':!0x1})(_0x46306d,_0x2d9cc6,_0x316848);},{'priority':_0x3cc0('0xbe')});}),_0x139679[_0x3cc0('0x5c')]['for'](_0x3cc0('0xda'))[_0x3cc0('0xe3')]({'model':_0x3cc0('0x114'),'view':(_0x88ce75,_0x1e41ca)=>_0x1e41ca[_0x3cc0('0xbb')][_0x3cc0('0xa1')]?null:{'group':_0x3cc0('0x114'),'name':_0x88ce75[_0x3cc0('0xb6')](0xb)}}),_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')](_0x3cc0('0x32'))[_0x3cc0('0x79')]({'view':{'name':_0x3cc0('0x114'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2fc32f,{writer:_0x52a0c5})=>{let _0x4b216d=_0x3cc0('0xdc')+_0x2fc32f['getAttribute'](_0x3cc0('0xd7'))+':'+_0x2fc32f[_0x3cc0('0x87')]('id');return _0x2fc32f[_0x3cc0('0x87')](_0x3cc0('0x64'))&&(_0x4b216d+=':'+_0x2fc32f[_0x3cc0('0x87')]('marker-count')),_0x52a0c5[_0x3cc0('0xec')]('$marker',{'data-name':_0x4b216d});}}),_0x139679[_0x3cc0('0x5c')]['for'](_0x3cc0('0x32'))[_0x3cc0('0x11e')]({'view':_0x3cc0('0x114')}),_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')](_0x3cc0('0x90'))[_0x3cc0('0xd0')](_0x3322d1=>{_0x3322d1['on'](_0x3cc0('0x40'),_0x3343f2(),{'priority':'high'});}),_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')](_0x3cc0('0x90'))[_0x3cc0('0xd0')](_0x2b2e48=>{_0x2b2e48['on'](_0x3cc0('0x11d'),(_0x31ab7a,_0x2c1858,_0x3a213f)=>{const _0xda3841=_0x3a213f['mapper']['markerNameToElements'](_0x2c1858[_0x3cc0('0x73')]);if(_0xda3841)for(const _0x160004 of _0xda3841)_0x160004[_0x3cc0('0x10f')](_0x3cc0('0x7'))||(_0x3a213f[_0x3cc0('0x128')][_0x3cc0('0xc')]([_0x3cc0('0x49'),_0x3cc0('0x10a'),'ck-suggestion-marker--active'],_0x160004),_0x3a213f[_0x3cc0('0x128')]['removeAttribute'](_0x3cc0('0xf8'),_0x160004),_0x3a213f['mapper']['unbindElementFromMarkerName'](_0x160004,_0x2c1858[_0x3cc0('0x73')]));},{'priority':_0x3cc0('0xf')});}),_0x139679[_0x3cc0('0x12f')][_0x3cc0('0x13e')][_0x3cc0('0x13')](_0x5cd0d5=>{let _0x3064e3=!0x1;const _0x71ce4c=Array['from'](_0x139679[_0x3cc0('0x12f')][_0x3cc0('0x13e')][_0x3cc0('0xa5')][_0x3cc0('0xb7')]()),_0x5aa45f=new Set();for(const {name:_0x365861,data:_0x3b5882}of _0x71ce4c){const {group:_0x25049a,type:_0x5f32d8,id:_0x46fc2d}=this[_0x3cc0('0x69')](_0x365861);if(_0x3cc0('0x114')!==_0x25049a)continue;const _0x4be194=this[_0x3cc0('0x2d')][_0x3cc0('0xd1')](_0x46fc2d);if(null!=_0x3b5882[_0x3cc0('0x43')]){_0x3cc0('0x105')==_0x5f32d8&&(_0x3064e3=_0x3064e3||Mt(_0x3b5882['newRange'],_0x365861,_0x5cd0d5,_0x139679['model']['schema']));if(_0x3b5882[_0x3cc0('0x43')]['isCollapsed']||_0x3cc0('0x8f')==_0x3b5882[_0x3cc0('0x43')]['root']['rootName']||_0x3cc0('0x44')==_0x5f32d8&&!Nt(_0x3b5882['newRange'])||'deletion'==_0x5f32d8&&!(!_t(_0x35f5ab=_0x3b5882[_0x3cc0('0x43')])&&!function(_0x31c0e3){return _0x31c0e3[_0x3cc0('0xab')][_0x3cc0('0x116')]==_0x31c0e3[_0x3cc0('0x10c')][_0x3cc0('0x104')]&&_0x31c0e3[_0x3cc0('0xab')]['isAtEnd'];}(_0x35f5ab)))_0x5cd0d5[_0x3cc0('0x71')](_0x365861),_0x3064e3=!0x0;else{if(!_0x4be194||!_0x4be194['isInContent'])continue;_0x5aa45f[_0x3cc0('0xd0')](_0x4be194);}}}var _0x35f5ab;return _0x5aa45f['size']>0x0&&(_0x3064e3=!!this[_0x3cc0('0x3d')](_0x5aa45f)||_0x3064e3),_0x3064e3;}),_0x139679['model']['document'][_0x3cc0('0x13')](_0x42b28c=>{let _0x420257=!0x1;for(const _0x4b7ca2 of _0x139679[_0x3cc0('0x12f')][_0x3cc0('0x13e')][_0x3cc0('0xa5')][_0x3cc0('0x13f')]()){if(_0x3cc0('0xb0')!=_0x4b7ca2[_0x3cc0('0x122')])continue;const _0x4573db=_0x4b7ca2['position'][_0x3cc0('0xfe')](_0x4b7ca2[_0x3cc0('0xcb')]);if(_0x4573db['isAtEnd'])for(const _0x541960 of this['_suggestions'][_0x3cc0('0x11b')]()){if(_0x541960['isMultiRange']||!_0x541960[_0x3cc0('0xa8')])continue;if(_0x3cc0('0x44')!=_0x541960[_0x3cc0('0x122')])continue;const _0x123c6d=_0x541960[_0x3cc0('0x74')]();if(_0x123c6d[_0x3cc0('0xab')]['parent']!=_0x123c6d[_0x3cc0('0x10c')][_0x3cc0('0x116')]&&_0x123c6d[_0x3cc0('0x10c')][_0x3cc0('0x53')](_0x4b7ca2[_0x3cc0('0xcc')])){const _0x434e1c=_0x139679['model'][_0x3cc0('0xe')](_0x123c6d[_0x3cc0('0xab')],_0x4573db);_0x42b28c['updateMarker'](_0x541960[_0x3cc0('0x140')](),{'range':_0x434e1c}),_0x420257=!0x0;}}}return _0x420257;}),_0x139679['model'][_0x3cc0('0x135')]['on']('update:suggestion',(_0x3e04b4,_0x25c4ff,_0x41d56f)=>{if(null==_0x41d56f){const {id:_0x44e0fd}=this[_0x3cc0('0x69')](_0x25c4ff[_0x3cc0('0x48')]),_0xa2ae1c=this[_0x3cc0('0x2d')][_0x3cc0('0xd1')](_0x44e0fd);_0xa2ae1c&&_0xa2ae1c[_0x3cc0('0x11')](_0x25c4ff[_0x3cc0('0x48')]);}}),_0x139679[_0x3cc0('0x12f')]['document']['on']('change:data',()=>{const _0x258ce3=Array[_0x3cc0('0x109')](_0x139679['model'][_0x3cc0('0x13e')][_0x3cc0('0xa5')]['getChangedMarkers']())[_0x3cc0('0x1d')](_0x407a67=>'suggestion'===this[_0x3cc0('0x69')](_0x407a67[_0x3cc0('0x48')])[_0x3cc0('0x5')]);if(0x0===_0x258ce3[_0x3cc0('0xcb')])return;_0x258ce3['sort']((_0x18a57d,_0x2914b0)=>{const _0x2c086e=_0x18a57d['data'][_0x3cc0('0x72')],_0x25182b=_0x2914b0[_0x3cc0('0xe5')][_0x3cc0('0x72')];return null===_0x2c086e&&null===_0x25182b?0x0:null===_0x2c086e&&null!==_0x25182b?-0x1:null!==_0x2c086e&&null===_0x25182b?0x1:_0x2c086e[_0x3cc0('0xab')][_0x3cc0('0x2f')](_0x25182b[_0x3cc0('0xab')])?-0x1:0x1;});const _0x52ac04=new Set(),_0x2adc10=new Set();for(const {name:_0x154719,data:_0x26adc1}of _0x258ce3){const {id:_0x7821a4}=this['_splitMarkerName'](_0x154719);if(null===_0x26adc1[_0x3cc0('0x72')]){const _0x49eff3=this['_handleNewSuggestionMarker'](_0x154719);_0x2adc10[_0x3cc0('0xd0')](_0x49eff3);}else{const _0x301c4b=this[_0x3cc0('0x2d')][_0x3cc0('0xd1')](_0x7821a4);null!==_0x26adc1[_0x3cc0('0x43')]||_0x301c4b['isInContent']?(_0x52ac04[_0x3cc0('0xd0')](_0x301c4b[_0x3cc0('0xeb')]),_0x2adc10['add'](_0x301c4b)):this[_0x3cc0('0x52')](_0x301c4b);}}_0x2adc10[_0x3cc0('0xa9')]>0x0&&this[_0x3cc0('0x11f')](_0x2adc10);for(const _0x419fd4 of _0x52ac04)this[_0x3cc0('0x33')](_0x3cc0('0x115'),_0x419fd4);}),_0x139679[_0x3cc0('0x12f')]['on'](_0x3cc0('0x57'),(_0x5949ba,_0x3a685c)=>{const _0x5d9df1=_0x3a685c[0x0];if(!this[_0x3cc0('0x2d')][_0x3cc0('0xa9')])return;if(!_0x5d9df1[_0x3cc0('0x4a')])return;if(_0x5d9df1['batch'][_0x3cc0('0x20')]||!_0x5d9df1[_0x3cc0('0x10d')][_0x3cc0('0x10b')])return;let _0x2b5383,_0x27922e;switch(_0x5d9df1[_0x3cc0('0x122')]){case'insert':_0x2b5383=_0x139679['model'][_0x3cc0('0xfd')](_0x5d9df1[_0x3cc0('0xcc')]),_0x27922e=_0x2b5383['getShiftedBy'](_0x5d9df1['howMany']);break;case'split':_0x2b5383=_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xfd')](_0x5d9df1[_0x3cc0('0x137')]),_0x27922e=_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xfd')](_0x5d9df1[_0x3cc0('0x81')]);break;case'move':_0x2b5383=_0x139679[_0x3cc0('0x12f')]['createPositionAt'](_0x5d9df1[_0x3cc0('0x123')]),_0x27922e=_0x2b5383['getShiftedBy'](_0x5d9df1[_0x3cc0('0xa7')]);break;default:return;}const _0x5a9de0=_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xe')](_0x2b5383,_0x27922e);_0x139679[_0x3cc0('0x12f')]['change'](()=>{for(const {suggestion:_0x1940f5,meta:_0x3c7e15}of this[_0x3cc0('0x120')](_0x5a9de0)){if(_0x1940f5[_0x3cc0('0x4')])continue;if('formatInline'==_0x1940f5[_0x3cc0('0x122')])continue;const _0x1a0c21=_0x1940f5[_0x3cc0('0xe5')]&&_0x1940f5[_0x3cc0('0xe5')][_0x3cc0('0xe9')];('formatBlock'!=_0x1940f5['type']||'split'==_0x5d9df1['type']&&!_0x1a0c21)&&(_0x3c7e15[_0x3cc0('0xee')]||_0x3cc0('0x2e')==_0x1940f5[_0x3cc0('0x122')]&&_0x3c7e15[_0x3cc0('0x55')]||_0x1940f5[_0x3cc0('0x74')]()[_0x3cc0('0xd6')](_0x5a9de0)&&this['_breakSuggestionMarker'](_0x1940f5,_0x2b5383,_0x27922e));}});},{'priority':_0x3cc0('0xc7')}),_0x139679[_0x3cc0('0x12f')]['on'](_0x3cc0('0x46'),(_0x374758,_0x1ecbd4)=>{const _0x35b13f=_0x1ecbd4[0x0],_0x30edfc=_0x1ecbd4[0x1];if(_0x30edfc&&_0x30edfc[_0x3cc0('0x34')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x35b13f[_0x3cc0('0x10e')])return;const _0x3d0f9=_0x139679[_0x3cc0('0x12f')]['schema'],{start:_0x5da603,end:_0x1934fe}=_0x35b13f[_0x3cc0('0x74')](),_0xb15961=_0x5da603['nodeAfter']&&_0x3d0f9[_0x3cc0('0x39')](_0x5da603[_0x3cc0('0x130')])?null:_0x3d0f9[_0x3cc0('0x0')](_0x5da603,_0x3cc0('0x8d')),_0x92950c=_0x1934fe[_0x3cc0('0x104')]&&_0x3d0f9[_0x3cc0('0x39')](_0x1934fe[_0x3cc0('0x104')])?null:_0x3d0f9[_0x3cc0('0x0')](_0x1934fe,_0x3cc0('0x5f')),_0x3a58b2=_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xe')](_0xb15961?_0xb15961[_0x3cc0('0xab')]:_0x5da603,_0x92950c?_0x92950c[_0x3cc0('0x10c')]:_0x1934fe);_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xf0')](_0xd832e5=>{this[_0x3cc0('0xe2')](_0x3a58b2);const _0x743df9=_0x139679[_0x3cc0('0x12f')]['schema'][_0x3cc0('0x0')](_0x3a58b2[_0x3cc0('0xab')]);_0x35b13f['is'](_0x3cc0('0x18'))?_0xd832e5[_0x3cc0('0x92')](_0x743df9):_0x35b13f[_0x3cc0('0x5e')](_0x743df9);}),_0x374758[_0x3cc0('0x6')]();},{'priority':_0x39fcb1[_0x3cc0('0xcf')]+0xa}),_0x139679['model']['on'](_0x3cc0('0x61'),(_0x5d14c4,_0x243393)=>{const _0x20696e=_0x243393[_0x243393[_0x3cc0('0xcb')]-0x1];_0x20696e&&_0x20696e[_0x3cc0('0x34')]||this[_0x3cc0('0x13b')]||this[_0x3cc0('0x7a')][_0x3cc0('0x136')]&&(_0x139679[_0x3cc0('0x12f')]['change'](()=>{let _0x3d8055=_0x139679[_0x3cc0('0x12f')]['insertContent'](_0x243393[0x0],_0x243393[0x1],_0x243393[0x2],{'forceDefaultExecution':!0x0});if(!_0x3d8055)return;_0x5d14c4['return']=_0x3d8055[_0x3cc0('0x11c')]();const _0xc12982=_0x3d8055[_0x3cc0('0x10c')][_0x3cc0('0x104')],_0x1a1ebc=_0x139679[_0x3cc0('0x12f')]['schema'];_0xc12982&&_0x1a1ebc[_0x3cc0('0x12e')](_0xc12982)&&!_0x1a1ebc[_0x3cc0('0xaf')](_0xc12982)&&(_0x3d8055=_0x139679[_0x3cc0('0x12f')]['createRange'](_0x3d8055[_0x3cc0('0xab')],_0x139679['model'][_0x3cc0('0xfd')](_0xc12982,_0x3cc0('0x10c')))),this[_0x3cc0('0x1c')](_0x3d8055);}),_0x5d14c4[_0x3cc0('0x6')]());},{'priority':_0x3cc0('0xf')}),this[_0x3cc0('0x37')][_0x3cc0('0x12b')][_0x3cc0('0xd0')](_0x3cc0('0xe4'),this[_0x3cc0('0x7a')]),this[_0x3cc0('0x30')](_0x3cc0('0xe4'));const _0x283eff=new _0x3c867c(_0x139679,this[_0x3cc0('0x2d')]);_0x139679['commands'][_0x3cc0('0xd0')]('acceptSuggestion',_0x283eff),this[_0x3cc0('0x30')]('acceptSuggestion');const _0x1cf63d=new _0x89ac98(_0x139679,this[_0x3cc0('0x2d')]);_0x139679[_0x3cc0('0x12b')]['add']('discardSuggestion',_0x1cf63d),this[_0x3cc0('0x30')](_0x3cc0('0xad')),_0x139679['commands'][_0x3cc0('0xd0')]('acceptAllSuggestions',new _0x1156fe(_0x139679,_0x283eff,this['_suggestions'])),this[_0x3cc0('0x30')](_0x3cc0('0x19')),_0x139679[_0x3cc0('0x12b')][_0x3cc0('0xd0')](_0x3cc0('0x99'),new _0x1156fe(_0x139679,_0x1cf63d,this[_0x3cc0('0x2d')])),this[_0x3cc0('0x30')](_0x3cc0('0x99')),_0x139679[_0x3cc0('0x12b')][_0x3cc0('0xd0')](_0x3cc0('0xf6'),new _0x2fccee(_0x139679,_0x283eff,this[_0x3cc0('0x2d')])),this[_0x3cc0('0x30')](_0x3cc0('0xf6')),_0x139679[_0x3cc0('0x12b')][_0x3cc0('0xd0')](_0x3cc0('0x35'),new _0x2fccee(_0x139679,_0x1cf63d,this[_0x3cc0('0x2d')])),this[_0x3cc0('0x30')](_0x3cc0('0x35'));const _0x3219e6=_0x139679[_0x3cc0('0x1b')][_0x3cc0('0xd1')](_0x3cc0('0x113'));this[_0x3cc0('0x111')](_0x3219e6,_0x3cc0('0x68'),(_0x8acd2f,{threadId:_0x11905b})=>{const _0x2c418b=this[_0x3cc0('0x2d')]['get'](_0x11905b);_0x2c418b&&_0x2c418b[_0x3cc0('0x133')]&&0x1===_0x2c418b[_0x3cc0('0x133')][_0x3cc0('0xcb')]&&this[_0x3cc0('0xff')](_0x11905b,{'hasComments':!0x0});},{'priority':_0x3cc0('0x8b')}),this[_0x3cc0('0x111')](_0x3219e6,_0x3cc0('0x3'),(_0x221b36,{threadId:_0x10d3c3})=>{const _0xe972ff=this[_0x3cc0('0x2d')]['get'](_0x10d3c3);_0xe972ff&&_0xe972ff[_0x3cc0('0x133')]&&!_0xe972ff[_0x3cc0('0x133')][_0x3cc0('0xcb')]&&this[_0x3cc0('0xff')](_0x10d3c3,{'hasComments':!0x1});},{'priority':_0x3cc0('0x8b')});}set[_0x3cc0('0x83')](_0x2efe5c){if(this[_0x3cc0('0x1a')])throw new _0x352f3d(_0x3cc0('0xf9'),this);this['_adapter']=_0x2efe5c;}get[_0x3cc0('0x83')](){return this[_0x3cc0('0x1a')];}[_0x3cc0('0x12c')]({skipNotAttached:_0x3f028d=!0x1,toJSON:_0x4cdf31=!0x1}={}){const _0x5bf3ef=[];for(const _0x553287 of this[_0x3cc0('0x2d')]['values']())_0x3f028d&&!_0x553287[_0x3cc0('0xa8')]||_0x5bf3ef[_0x3cc0('0x2a')](_0x553287);return _0x4cdf31?_0x5bf3ef[_0x3cc0('0xfa')](_0x13f525=>_0x13f525[_0x3cc0('0x10')]()):_0x5bf3ef;}[_0x3cc0('0x125')](_0xd11c0c){const _0x5b9885=this['_suggestions']['get'](_0xd11c0c);if(!_0x5b9885)throw new _0x352f3d(_0x3cc0('0x108'),this);return _0x5b9885;}[_0x3cc0('0x97')](_0x46af1c){return this[_0x3cc0('0x2d')][_0x3cc0('0x6d')](_0x46af1c);}[_0x3cc0('0x42')](_0x43ece4){const {authorId:_0x6211a1,id:_0x4cd6be,attributes:_0x46053c}=_0x43ece4,[_0x26077d,_0x308df4]=_0x43ece4[_0x3cc0('0x122')][_0x3cc0('0xce')](':'),_0x36533d=this[_0x3cc0('0x2d')][_0x3cc0('0xd1')](_0x4cd6be)||this[_0x3cc0('0x27')](_0x26077d,_0x308df4,_0x4cd6be,_0x6211a1,_0x46053c);if(this[_0x3cc0('0xd')](_0x36533d),this[_0x3cc0('0xb8')](_0x36533d,_0x26077d,_0x308df4||null,_0x6211a1),_0x36533d[_0x3cc0('0x54')]=_0x43ece4['createdAt'],_0x46053c&&_0x46053c[_0x3cc0('0x16')]){const _0x2fc851=_0x46053c[_0x3cc0('0x16')],_0x1668d4=this[_0x3cc0('0xc2')](_0x2fc851[_0x3cc0('0xf2')]);_0x36533d[_0x3cc0('0x6c')]=_0x2fc851[_0x3cc0('0x54')],_0x36533d['author']=_0x1668d4,_0x36533d[_0x3cc0('0xfc')]=!0x0;}else _0x36533d[_0x3cc0('0x6c')]=_0x43ece4[_0x3cc0('0x54')];switch(_0x43ece4[_0x3cc0('0xe5')]&&(_0x36533d[_0x3cc0('0xe5')]=_0x43ece4[_0x3cc0('0xe5')]),_0x43ece4[_0x3cc0('0x60')]&&(_0x36533d[_0x3cc0('0x60')]=_0x43ece4[_0x3cc0('0x60')]),this['_adapter']&&this['_adapter'][_0x3cc0('0x100')]||(_0x36533d[_0x3cc0('0xcd')]=!0x0),this[_0x3cc0('0x8a')][_0x3cc0('0xd1')](_0x36533d)){case _0x3cc0('0x119'):this['_suggestionState']['set'](_0x36533d,'dataReady');break;case _0x3cc0('0xef'):_0x36533d[_0x3cc0('0xa8')]?(this[_0x3cc0('0x8a')]['set'](_0x36533d,_0x3cc0('0x12a')),this['fire']('suggestionLoaded',_0x36533d)):this[_0x3cc0('0x8a')][_0x3cc0('0xdd')](_0x36533d,_0x3cc0('0xe6'));}return _0x36533d;}['acceptSuggestion'](_0x52568c){this[_0x3cc0('0x34')](()=>{this[_0x3cc0('0x37')][_0x3cc0('0x12f')][_0x3cc0('0xf0')](()=>{for(const _0x589c47 of _0x52568c[_0x3cc0('0x7f')]())_0x589c47[_0x3cc0('0x94')]();});});}['discardSuggestion'](_0x5b2047){this[_0x3cc0('0x34')](()=>{this['editor']['model']['change'](()=>{for(const _0x42b39a of _0x5b2047[_0x3cc0('0x7f')]())_0x42b39a['discard']();});});}['enableCommand'](_0x34c398,_0x5a229f){const _0x28f84c=this[_0x3cc0('0x37')][_0x3cc0('0x12b')][_0x3cc0('0xd1')](_0x34c398);if(!_0x28f84c)throw new _0x352f3d('track-changes-command-not-found',this,{'commandName':_0x34c398});this[_0x3cc0('0x1f')]['add'](_0x28f84c),_0x5a229f&&_0x28f84c['on'](_0x3cc0('0x139'),(_0xc35717,_0x2def8b)=>{this['trackChangesCommand'][_0x3cc0('0x136')]&&(this[_0x3cc0('0x13b')]||_0x2def8b[_0x3cc0('0xcb')]>0x0&&_0x2def8b[_0x2def8b['length']-0x1]&&_0x2def8b[_0x2def8b[_0x3cc0('0xcb')]-0x1][_0x3cc0('0x34')]||(_0x5a229f((..._0x4c6eb3)=>_0x28f84c[_0x3cc0('0x139')](..._0x4c6eb3,{'forceDefaultExecution':!0x0}),..._0x2def8b),_0xc35717[_0x3cc0('0x6')]()));},{'priority':_0x3cc0('0xf')});}[_0x3cc0('0x34')](_0x2aa1a4){let _0x1f8ec6,_0xb0f2df;const _0x33f8a6=this[_0x3cc0('0x13b')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1f8ec6=_0x2aa1a4();}catch(_0x29f024){_0xb0f2df=_0x29f024;}return _0x33f8a6||(this[_0x3cc0('0x13b')]=!0x1),_0xb0f2df&&_0x352f3d[_0x3cc0('0xb4')](_0xb0f2df,this),_0x1f8ec6;}[_0x3cc0('0x1c')](_0x21dbc0,_0x11c7db=null,_0x5bf691={}){if(_0x21dbc0[_0x3cc0('0x10e')])return null;const _0x58faaa=this[_0x3cc0('0x37')][_0x3cc0('0x1b')]['get'](_0x3cc0('0x118'))['me'];for(const {suggestion:_0x1a6801,meta:_0x2407d3}of this['_findSuggestions'](_0x21dbc0,_0x3cc0('0x2e')))if(_0x2407d3[_0x3cc0('0x55')]){if(!_0x2407d3[_0x3cc0('0x8c')]){if(!this[_0x3cc0('0x138')]&&_0x2407d3['containsRangeInObject'])continue;return _0x1a6801;}if(_0x11c7db==_0x1a6801[_0x3cc0('0x77')]){const _0x24fe78=_0x1a6801[_0x3cc0('0x74')]();return _0x24fe78[_0x3cc0('0xab')][_0x3cc0('0x53')](_0x21dbc0[_0x3cc0('0x10c')])?this[_0x3cc0('0xb5')](_0x1a6801,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x21dbc0['start'],_0x24fe78[_0x3cc0('0x10c')])):this[_0x3cc0('0xb5')](_0x1a6801,this[_0x3cc0('0xa6')]['createRange'](_0x24fe78[_0x3cc0('0xab')],_0x21dbc0[_0x3cc0('0x10c')])),_0x1a6801;}}const _0x3f1c5f=_0x29dde6(),_0x30f5e9=_0x58faaa['id'],_0x514c73=_0x11c7db?'insertion:'+_0x11c7db:_0x3cc0('0x2e'),_0xa3ecf3=this[_0x3cc0('0xf7')]({'id':_0x3f1c5f,'type':_0x514c73,'createdAt':new Date(),'authorId':_0x30f5e9,'attributes':_0x5bf691});return this[_0x3cc0('0x3c')](_0x514c73,_0x3f1c5f,_0x30f5e9,_0x21dbc0),_0xa3ecf3;}['markMultiRangeInsertion'](_0x4b3382,_0x557bfe=_0x3cc0('0x9'),_0x17ead1={}){const _0x2d0732=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')](_0x3cc0('0x118'))['me'],_0x352022=this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x3cc0('0x2e'),_0x557bfe,_0x3cc0('0x26'));for(const _0x4f9c2f of this[_0x3cc0('0x12c')]())if(_0x4f9c2f[_0x3cc0('0x6e')]['id']==_0x2d0732['id']&&_0x3cc0('0x2e')==_0x4f9c2f[_0x3cc0('0x122')]&&_0x4f9c2f[_0x3cc0('0x77')]==_0x557bfe&&(_0x352022(_0x4f9c2f[_0x3cc0('0xbd')](),_0x4b3382)||_0x352022(_0x4b3382,_0x4f9c2f[_0x3cc0('0xbd')]()))){for(const _0x12db36 of _0x4b3382)_0x4f9c2f[_0x3cc0('0xae')](_0x12db36);return _0x4f9c2f;}if(this['_mergeNestedSuggestions'])for(const _0x436b5a of _0x4b3382)for(const {suggestion:_0x1d2421,meta:_0x1ba489}of this[_0x3cc0('0x120')](_0x436b5a,'insertion')){if(!_0x1ba489[_0x3cc0('0x55')])continue;let _0x2f1f69=!0x0;for(const _0x23cb8d of _0x1d2421['getRanges']())for(const _0x3b3ad0 of _0x4b3382)if(!_0x23cb8d[_0x3cc0('0xd6')](_0x3b3ad0)){_0x2f1f69=!0x1;break;}if(_0x2f1f69)return _0x1d2421;}const _0x4c1a3a=_0x29dde6(),_0x28b27a=_0x2d0732['id'],_0x57e6c5=_0x3cc0('0x103')+_0x557bfe,_0x2ca978=this[_0x3cc0('0xf7')]({'id':_0x4c1a3a,'type':_0x57e6c5,'createdAt':new Date(),'authorId':_0x28b27a,'attributes':_0x17ead1});for(const _0x2aaa94 of _0x4b3382)this[_0x3cc0('0x3c')](_0x57e6c5,_0x4c1a3a,_0x28b27a,_0x2aaa94,_0x1bda2a[_0x3cc0('0x132')]());return _0x2ca978;}[_0x3cc0('0x78')](_0x12a1b7,_0x289254,_0x43847e=null,_0x29c67e={}){if(_0x43847e=_0x43847e||$t(_0x289254),_0x12a1b7[_0x3cc0('0x10e')])return null;if(_0x3cc0('0xc9')===this[_0x3cc0('0x101')]){const _0x4b39df=this[_0x3cc0('0x102')][_0x3cc0('0x1')]('formatInline',_0x43847e,_0x3cc0('0x94'));return this['forceDefaultExecution'](()=>_0x4b39df([_0x12a1b7],_0x289254,_0x29c67e)),null;}const _0x59a3b4=this['editor']['plugins'][_0x3cc0('0xd1')](_0x3cc0('0x118'))['me'],_0x4d36ea=[];if('always'!==this[_0x3cc0('0x101')])for(const {suggestion:_0x401b53,meta:_0x33f757}of this[_0x3cc0('0x120')](_0x12a1b7,_0x3cc0('0x2e')))_0x33f757[_0x3cc0('0x55')]&&!_0x33f757[_0x3cc0('0x80')]&&_0x4d36ea[_0x3cc0('0x2a')](..._0x401b53[_0x3cc0('0xbd')]());const _0x54b5bf=function(_0xb31020,_0x496778){const _0x2e759b=[];for(const _0x1f90d3 of _0x496778){const _0x120b90=_0xb31020[_0x3cc0('0xe7')](_0x1f90d3);_0x120b90&&_0x2e759b[_0x3cc0('0x2a')](_0x120b90);}return _0x2e759b;}(_0x12a1b7,_0x4d36ea),_0x21269d=function(_0x17c476,_0x34d326){const _0x1026df=[_0x17c476];for(const _0x1a3c57 of _0x34d326){let _0x13fa35=0x0;for(;_0x13fa35<_0x1026df[_0x3cc0('0xcb')];){const _0x3d84d2=_0x1026df[_0x13fa35][_0x3cc0('0xa3')](_0x1a3c57);_0x1026df[_0x3cc0('0xf3')](_0x13fa35,0x1,..._0x3d84d2),_0x13fa35+=_0x3d84d2[_0x3cc0('0xcb')];}}return _0x1026df;}(_0x12a1b7,_0x4d36ea);_0x54b5bf[_0x3cc0('0xcb')]&&this['_model'][_0x3cc0('0xf0')](()=>{for(const _0xc627de of _0x54b5bf){const _0x2dda8b=this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x3cc0('0x105'),_0x43847e,_0x3cc0('0x94'));this['forceDefaultExecution'](()=>_0x2dda8b([_0xc627de],_0x289254,_0x29c67e));}});for(const _0x2c6b59 of _0x21269d){let _0x5e351d=null,_0x58c2e3=_0x2c6b59[_0x3cc0('0xab')],_0x375cc6=_0x2c6b59[_0x3cc0('0x10c')];for(const {suggestion:_0x2b534a,meta:_0x4899c5}of this[_0x3cc0('0x120')](_0x2c6b59,_0x3cc0('0x105'))){if(!_0x4899c5[_0x3cc0('0x55')])continue;if(_0x2b534a[_0x3cc0('0x77')]!=_0x43847e)continue;const _0x49a698=_0x2b534a[_0x3cc0('0x74')]();if(_0x49a698['containsRange'](_0x2c6b59,!0x0))return null;_0x58c2e3=_0x58c2e3[_0x3cc0('0x2f')](_0x49a698[_0x3cc0('0xab')])?_0x58c2e3:_0x49a698[_0x3cc0('0xab')],_0x375cc6=_0x375cc6['isAfter'](_0x49a698[_0x3cc0('0x10c')])?_0x375cc6:_0x49a698[_0x3cc0('0x10c')],_0x5e351d?_0x49a698['start'][_0x3cc0('0x2f')](_0x5e351d[_0x3cc0('0x74')]()[_0x3cc0('0xab')])?(_0x5e351d[_0x3cc0('0x82')](),_0x5e351d=_0x2b534a):_0x2b534a['removeMarkers']():_0x5e351d=_0x2b534a;}const _0x270191=this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x58c2e3,_0x375cc6);if(_0x5e351d)this[_0x3cc0('0xb5')](_0x5e351d,_0x270191);else{const _0x585ddf=_0x29dde6(),_0x238334=_0x59a3b4['id'];this['_setSuggestionData']({'id':_0x585ddf,'type':_0x3cc0('0x66')+_0x43847e,'data':_0x289254,'createdAt':new Date(),'authorId':_0x238334,'attributes':_0x29c67e}),this['_addSuggestionMarker']('formatInline:'+_0x43847e,_0x585ddf,_0x238334,_0x270191);}}return null;}[_0x3cc0('0xca')](_0x3f59b5,_0x34d1d8,_0x5cff6e=[],_0x83b524=null,_0x3b103d={}){_0x34d1d8['formatGroupId']||(_0x34d1d8[_0x3cc0('0x38')]=_0x34d1d8[_0x3cc0('0x9d')]),_0x34d1d8[_0x3cc0('0xe9')]=_0x3f59b5['is'](_0x3cc0('0xe1')),_0x83b524=_0x83b524||$t(_0x34d1d8);const _0xfac13f=_0x5cff6e[_0x3cc0('0xfa')](_0x1d0bab=>Rt(_0x1d0bab,this[_0x3cc0('0xa6')])),_0x337d98=_0x3f59b5['is']('range')?_0x3f59b5:Rt(_0x3f59b5,this[_0x3cc0('0xa6')]);if('never'===this[_0x3cc0('0x101')]){const _0x15dd7f=this[_0x3cc0('0x102')]['getSuggestionCallback'](_0x3cc0('0x44'),_0x83b524,_0x3cc0('0x94'));return this['forceDefaultExecution'](()=>_0x15dd7f([_0x337d98],_0x34d1d8,_0x3b103d)),null;}_0xfac13f[_0x3cc0('0x2a')](_0x337d98);let _0x43ebe4=!0x0;for(const _0x2874dd of _0xfac13f)if(!this[_0x3cc0('0x63')](_0x2874dd)){_0x43ebe4=!0x1;break;}if(_0x43ebe4&&_0x3cc0('0x62')!==this[_0x3cc0('0x101')]){const _0x50cfc6=this[_0x3cc0('0x102')]['getSuggestionCallback']('formatBlock',_0x83b524,_0x3cc0('0x94'));return this['forceDefaultExecution'](()=>_0x50cfc6([_0x337d98],_0x34d1d8,_0x3b103d)),null;}let _0x33aa18=null,_0x45e83d=_0x337d98[_0x3cc0('0xab')],_0x4441f3=_0x337d98[_0x3cc0('0x10c')];for(const {suggestion:_0xec5f8c,meta:_0x5d95f8}of this[_0x3cc0('0x120')](_0x337d98,_0x3cc0('0x44'))){if(!_0x5d95f8[_0x3cc0('0x55')]||_0x5d95f8[_0x3cc0('0x8c')]||_0x5d95f8[_0x3cc0('0xee')]||_0x5d95f8[_0x3cc0('0x80')])continue;if(_0xec5f8c[_0x3cc0('0xe5')]['formatGroupId']!=_0x34d1d8['formatGroupId'])continue;const _0x2e4b94=_0xec5f8c[_0x3cc0('0x74')]();if(_0xec5f8c[_0x3cc0('0x77')]==_0x83b524){if(_0x2e4b94[_0x3cc0('0xd6')](_0x337d98,!0x0))return null;_0x45e83d=_0x45e83d[_0x3cc0('0x2f')](_0x2e4b94['start'])?_0x45e83d:_0x2e4b94[_0x3cc0('0xab')],_0x4441f3=_0x4441f3[_0x3cc0('0x9a')](_0x2e4b94[_0x3cc0('0x10c')])?_0x4441f3:_0x2e4b94[_0x3cc0('0x10c')],_0x33aa18?_0x2e4b94[_0x3cc0('0xab')][_0x3cc0('0x2f')](_0x33aa18[_0x3cc0('0x74')]()[_0x3cc0('0xab')])?(_0x33aa18[_0x3cc0('0x82')](),_0x33aa18=_0xec5f8c):_0xec5f8c[_0x3cc0('0x82')]():_0x33aa18=_0xec5f8c;}else{const _0x55adea=_0x337d98[_0x3cc0('0xe7')](_0x2e4b94);this[_0x3cc0('0xf1')](_0xec5f8c,_0x55adea);}}const _0x5ed850=this[_0x3cc0('0x37')]['plugins'][_0x3cc0('0xd1')](_0x3cc0('0x118'))['me'],_0x3921e9=_0x29dde6(),_0xe75430=_0x5ed850['id'];if(_0x33aa18)return this[_0x3cc0('0xb5')](_0x33aa18,this['_model']['createRange'](_0x45e83d,_0x4441f3)),_0x33aa18;{const _0x5e3da2=this[_0x3cc0('0xf7')]({'id':_0x3921e9,'type':_0x3cc0('0x70')+_0x83b524,'data':_0x34d1d8,'createdAt':new Date(),'authorId':_0xe75430,'attributes':_0x3b103d});return this['_addSuggestionMarker'](_0x3cc0('0x70')+_0x83b524,_0x3921e9,_0xe75430,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x45e83d,_0x4441f3)),_0x5e3da2;}}[_0x3cc0('0x1e')](_0x216552,_0x5422cd,_0x207bb1=[],_0xbf2790=null,_0x4ca5d6={}){_0x5422cd['formatGroupId']||(_0x5422cd[_0x3cc0('0x38')]=_0x5422cd[_0x3cc0('0x9d')]);const _0xd62a6a=_0x216552[0x0];_0x5422cd[_0x3cc0('0xe9')]=_0xd62a6a['is'](_0x3cc0('0xe1')),_0xbf2790=_0xbf2790||$t(_0x5422cd);const _0x2c618a=_0x207bb1[_0x3cc0('0xfa')](_0x5e1e64=>Rt(_0x5e1e64,this[_0x3cc0('0xa6')])),_0x8840f0=_0xd62a6a['is'](_0x3cc0('0xe1'))?_0x216552:_0x216552['map'](_0x5ef98c=>Rt(_0x5ef98c,this[_0x3cc0('0xa6')]));if('never'===this[_0x3cc0('0x101')]){const _0xcf301e=this['_suggestionFactory'][_0x3cc0('0x1')]('formatBlock',_0xbf2790,_0x3cc0('0x94'));return this['forceDefaultExecution'](()=>_0xcf301e(_0x8840f0,_0x5422cd,_0x4ca5d6)),null;}_0x2c618a[_0x3cc0('0x2a')](..._0x8840f0);let _0x3d5ebe=!0x0;for(const _0x502d49 of _0x2c618a)if(!this[_0x3cc0('0x63')](_0x502d49)){_0x3d5ebe=!0x1;break;}if(_0x3d5ebe&&_0x3cc0('0x62')!==this['_trackFormatChanges']){const _0x340bd3=this[_0x3cc0('0x102')]['getSuggestionCallback']('formatBlock',_0xbf2790,'accept');return this['forceDefaultExecution'](()=>_0x340bd3(_0x8840f0,_0x5422cd,_0x4ca5d6)),null;}const _0x1c14b3=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')]('Users')['me'];for(const _0x1845b9 of this['getSuggestions']()){if(_0x1845b9[_0x3cc0('0x6e')]['id']!=_0x1c14b3['id'])continue;if('formatBlock'!=_0x1845b9['type']||_0x1845b9[_0x3cc0('0xe5')][_0x3cc0('0x38')]!=_0x5422cd[_0x3cc0('0x38')])continue;const _0x3aafd6=_0x1845b9[_0x3cc0('0x77')]==_0xbf2790;for(let _0x3dfe79=0x0;_0x3dfe79<_0x8840f0[_0x3cc0('0xcb')];_0x3dfe79++){const _0x1af049=_0x8840f0[_0x3dfe79];for(const _0x3d11a5 of _0x1845b9[_0x3cc0('0xd9')]()){const _0x440ae0=_0x3d11a5[_0x3cc0('0x86')]();if(_0x1af049[_0x3cc0('0x53')](_0x440ae0)){_0x3aafd6?(_0x8840f0[_0x3cc0('0xf3')](_0x3dfe79,0x1),_0x3dfe79--):_0x1845b9['removeMarker'](_0x3d11a5[_0x3cc0('0x48')]);break;}}}}if(0x0==_0x8840f0[_0x3cc0('0xcb')])return null;const _0x44b530=this[_0x3cc0('0x102')][_0x3cc0('0x1')]('formatBlock',_0xbf2790,_0x3cc0('0x26'));for(const _0x5c13f3 of this['getSuggestions']())if(_0x5c13f3[_0x3cc0('0x6e')]['id']==_0x1c14b3['id']&&_0x3cc0('0x44')==_0x5c13f3[_0x3cc0('0x122')]&&_0x5c13f3[_0x3cc0('0xe5')][_0x3cc0('0x38')]==_0x5422cd[_0x3cc0('0x38')]&&_0x5c13f3[_0x3cc0('0x77')]==_0xbf2790&&(_0x44b530(_0x5c13f3['getRanges'](),_0x8840f0)||_0x44b530(_0x8840f0,_0x5c13f3[_0x3cc0('0xbd')]()))){for(const _0xccdd29 of _0x8840f0)_0x5c13f3['addRange'](_0xccdd29);return _0x5c13f3;}const _0x5670b6=_0x29dde6(),_0x4088c6=_0x1c14b3['id'],_0x3cdc73=_0x3cc0('0x70')+_0xbf2790,_0x1cdcd7=this[_0x3cc0('0xf7')]({'id':_0x5670b6,'type':_0x3cdc73,'data':_0x5422cd,'createdAt':new Date(),'authorId':_0x4088c6,'attributes':_0x4ca5d6});for(const _0x4e5a42 of _0x8840f0)this[_0x3cc0('0x3c')](_0x3cdc73,_0x5670b6,_0x4088c6,_0x4e5a42,_0x1bda2a[_0x3cc0('0x132')]());return _0x1cdcd7;}[_0x3cc0('0xe2')](_0x162871,_0x289e99=null,_0x292773={}){if(_0x162871[_0x3cc0('0x10e')])return null;const _0x2df081=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')](_0x3cc0('0x118'))['me'],_0x4c6b8f=new _0x4b431b(_0x162871['start'],_0x162871[_0x3cc0('0x10c')]);for(const {suggestion:_0x2357d8,meta:_0x12fc73}of this['_findSuggestions'](_0x4c6b8f,'insertion'))if(_0x12fc73[_0x3cc0('0x55')]&&!_0x12fc73['isNextTo']){if(_0x2357d8['isMultiRange']){const _0x2f9296=_0x2357d8[_0x3cc0('0xbd')]()[_0x3cc0('0x1d')](_0x49d9e5=>_0x3cc0('0x8f')!=_0x49d9e5['root']['rootName']);_0x2f9296[_0x3cc0('0x9c')](_0x33da3c=>_0x4c6b8f[_0x3cc0('0xd6')](_0x33da3c,!0x0))&&_0x2357d8['discard']();if(_0x2f9296[_0x3cc0('0x6b')](_0x1841be=>_0x1841be[_0x3cc0('0xd6')](_0x4c6b8f,!0x0))){const _0x35c68b=this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x3cc0('0x12d'),_0x289e99,_0x3cc0('0x94'));return this[_0x3cc0('0x34')](()=>_0x35c68b([_0x4c6b8f],null,_0x292773)),null;}}else{const _0x54b7c0=_0x4c6b8f['getIntersection'](_0x2357d8[_0x3cc0('0x74')]());null!==_0x54b7c0&&_0x2357d8[_0x3cc0('0x7c')]([_0x54b7c0],null,_0x292773);}}if(_0x4c6b8f[_0x3cc0('0xe0')](),_0x4c6b8f[_0x3cc0('0x10e')]||_0x3cc0('0x8f')==_0x4c6b8f['root'][_0x3cc0('0x47')])return null;let _0x488d48=null,_0x4673fb=_0x4c6b8f[_0x3cc0('0xab')],_0x409b69=_0x4c6b8f[_0x3cc0('0x10c')];for(const {suggestion:_0x405eaa,meta:_0x4206b1}of this[_0x3cc0('0x120')](_0x4c6b8f,_0x3cc0('0x12d')))if(_0x4206b1[_0x3cc0('0x55')]){if(_0x405eaa[_0x3cc0('0x4')]&&this[_0x3cc0('0x138')]){let _0x33d307=!0x0;for(const _0x2b11ae of _0x405eaa['getRanges']()){if(_0x2b11ae['containsRange'](_0x4c6b8f,!0x0))return _0x405eaa;_0x4c6b8f[_0x3cc0('0xd6')](_0x2b11ae)||(_0x33d307=!0x1);}_0x33d307&&_0x405eaa[_0x3cc0('0x9e')]();}else{const _0x21749f=_0x405eaa['getFirstRange']();if(_0x21749f[_0x3cc0('0xd6')](_0x4c6b8f,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x4206b1[_0x3cc0('0xee')])continue;return _0x405eaa;}_0x4673fb=_0x4673fb[_0x3cc0('0x2f')](_0x21749f[_0x3cc0('0xab')])?_0x4673fb:_0x21749f[_0x3cc0('0xab')],_0x409b69=_0x409b69[_0x3cc0('0x9a')](_0x21749f[_0x3cc0('0x10c')])?_0x409b69:_0x21749f['end'],_0x488d48?_0x21749f['start'][_0x3cc0('0x2f')](_0x488d48[_0x3cc0('0x74')]()['start'])?(_0x488d48[_0x3cc0('0x82')](),_0x488d48=_0x405eaa):_0x405eaa[_0x3cc0('0x82')]():_0x488d48=_0x405eaa;}}if(_0x488d48)return this['_setSuggestionRange'](_0x488d48,this['_model'][_0x3cc0('0xe')](_0x4673fb,_0x409b69)),_0x488d48;{const _0x5344ff=_0x29dde6(),_0x199531=this['_model'][_0x3cc0('0xe')](_0x4673fb,_0x409b69),_0x57ea3f=_0x2df081['id'],_0xd985a1=_0x289e99?_0x3cc0('0x131')+_0x289e99:'deletion',_0x49ee5b=this[_0x3cc0('0xf7')]({'id':_0x5344ff,'type':_0xd985a1,'createdAt':new Date(),'authorId':_0x57ea3f,'attributes':_0x292773});return this[_0x3cc0('0x3c')](_0xd985a1,_0x5344ff,_0x57ea3f,_0x199531),_0x49ee5b;}}[_0x3cc0('0x7b')](_0x4d19ce,_0x136a60=_0x3cc0('0x9'),_0x5e78fc={}){const _0x4648f2=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')]('Users')['me'],_0x6c511b=_0x4d19ce[_0x3cc0('0xfa')](_0x3e5a28=>new _0x4b431b(_0x3e5a28[_0x3cc0('0xab')],_0x3e5a28[_0x3cc0('0x10c')])),_0xb4c1f7=new Set();for(const _0x23dbc9 of _0x6c511b)for(const {suggestion:_0x4870a3,meta:_0x706b28}of this[_0x3cc0('0x120')](_0x23dbc9,_0x3cc0('0x2e')))_0x706b28['isOwn']&&!_0x706b28[_0x3cc0('0x8c')]&&_0xb4c1f7[_0x3cc0('0xd0')](_0x4870a3);for(const _0x19b9a5 of _0xb4c1f7)if(_0x19b9a5[_0x3cc0('0x4')]){const _0x40fce4=_0x19b9a5[_0x3cc0('0xbd')]();(!_0x19b9a5[_0x3cc0('0x60')]||!_0x19b9a5[_0x3cc0('0x60')]['skipNestingCheck'])&&(_0x40fce4[_0x3cc0('0x9c')](_0x3b9522=>_0x6c511b[_0x3cc0('0x6b')](_0x8bc670=>_0x8bc670[_0x3cc0('0xd6')](_0x3b9522,!0x0)))&&_0x19b9a5[_0x3cc0('0x9e')]());if(_0x6c511b[_0x3cc0('0x9c')](_0x3a6061=>_0x40fce4[_0x3cc0('0x6b')](_0x2d0292=>_0x2d0292[_0x3cc0('0xd6')](_0x3a6061,!0x0)))){const _0x3482db=this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x3cc0('0x12d'),_0x136a60,_0x3cc0('0x94'));return this[_0x3cc0('0x34')](()=>_0x3482db(_0x4d19ce,null,_0x5e78fc)),null;}}else{const _0x1d8ba7=_0x19b9a5[_0x3cc0('0x74')]();_0x6c511b[_0x3cc0('0x6b')](_0xc883b0=>_0xc883b0[_0x3cc0('0xd6')](_0x1d8ba7,!0x0))&&_0x19b9a5[_0x3cc0('0x9e')]();if(_0x6c511b[_0x3cc0('0x9c')](_0x439bfd=>_0x1d8ba7[_0x3cc0('0xd6')](_0x439bfd,!0x0))){const _0x3f1df4=this[_0x3cc0('0x102')]['getSuggestionCallback']('deletion',_0x136a60,_0x3cc0('0x94'));return this[_0x3cc0('0x34')](()=>_0x3f1df4(_0x6c511b,null,_0x5e78fc)),null;}}const _0x270ea2=this[_0x3cc0('0x102')][_0x3cc0('0x1')]('deletion',_0x136a60,_0x3cc0('0x26'));let _0x528638=null;for(const _0x583e38 of this['getSuggestions']())if(_0x583e38[_0x3cc0('0x6e')]['id']==_0x4648f2['id']&&_0x583e38[_0x3cc0('0xa8')]&&_0x3cc0('0x12d')==_0x583e38[_0x3cc0('0x122')]&&_0x583e38[_0x3cc0('0x77')]==_0x136a60&&(_0x270ea2(_0x583e38[_0x3cc0('0xbd')](),_0x6c511b)||_0x270ea2(_0x6c511b,_0x583e38['getRanges']()))){if(_0x528638){if(_0x583e38['commentThread']&&_0x583e38[_0x3cc0('0x133')]['length'])continue;for(const _0x1708c0 of _0x583e38[_0x3cc0('0xbd')]())_0x528638['isIntersectingWithRange'](_0x1708c0)||_0x528638[_0x3cc0('0xae')](_0x1708c0);_0x583e38['removeMarkers']();}else{_0x528638=_0x583e38;for(const _0x331517 of _0x6c511b)_0x583e38[_0x3cc0('0x121')](_0x331517)||_0x583e38[_0x3cc0('0xae')](_0x331517);}}if(_0x528638)return _0x528638;_0xb4c1f7[_0x3cc0('0x36')]();for(const _0x3661e2 of _0x6c511b)for(const {suggestion:_0x2f3d89,meta:_0x2adb2e}of this['_findSuggestions'](_0x3661e2,_0x3cc0('0x12d')))_0x2adb2e[_0x3cc0('0x55')]&&_0xb4c1f7[_0x3cc0('0xd0')](_0x2f3d89);for(const _0xec63e9 of _0xb4c1f7){const _0xdc10d6=_0xec63e9[_0x3cc0('0xbd')]();if(!_0x5e78fc||!_0x5e78fc['skipNestingCheck']){if(_0x6c511b[_0x3cc0('0x9c')](_0x22b843=>_0xdc10d6[_0x3cc0('0x6b')](_0x4a372b=>_0x4a372b[_0x3cc0('0xd6')](_0x22b843,!0x0))))return _0xec63e9;}(!_0xec63e9[_0x3cc0('0x60')]||!_0xec63e9['attributes'][_0x3cc0('0x75')])&&(_0xdc10d6[_0x3cc0('0x9c')](_0x2a3376=>_0x6c511b['some'](_0x8a13c0=>_0x8a13c0[_0x3cc0('0xd6')](_0x2a3376,!0x0)))&&_0xec63e9['discard']());}const _0x1d2446=_0x29dde6(),_0x5b0f36=_0x4648f2['id'],_0x28d43a=_0x3cc0('0x131')+_0x136a60,_0xaf89c6=this[_0x3cc0('0xf7')]({'id':_0x1d2446,'type':_0x28d43a,'createdAt':new Date(),'authorId':_0x5b0f36,'attributes':_0x5e78fc});for(const _0x581ba8 of _0x6c511b)_0x581ba8[_0x3cc0('0xe0')](),_0x581ba8[_0x3cc0('0x10e')]||_0x3cc0('0x8f')==_0x581ba8[_0x3cc0('0x13a')][_0x3cc0('0x47')]||this[_0x3cc0('0x3c')](_0x28d43a,_0x1d2446,_0x5b0f36,_0x581ba8,_0x1bda2a[_0x3cc0('0x132')]());return _0xaf89c6;}[_0x3cc0('0xb5')](_0x2e7a7f,_0x2b6235){const _0x4ad902=_0x2e7a7f[_0x3cc0('0x140')]();this[_0x3cc0('0xa6')][_0x3cc0('0xf0')](_0x331331=>{_0x331331[_0x3cc0('0xb3')](_0x4ad902,{'range':_0x2b6235});});}['_addThreadToSuggestion'](_0x4f671b){const _0x458702=_0x4f671b['id'],_0x4f0879=this[_0x3cc0('0x37')][_0x3cc0('0x21')]['get'](_0x3cc0('0x89'));this[_0x3cc0('0x23')][_0x3cc0('0xfb')](_0x458702)||this[_0x3cc0('0x23')][_0x3cc0('0x127')]({'channelId':_0x4f0879,'threadId':_0x458702,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x55267a=this[_0x3cc0('0x23')]['getCommentThread'](_0x458702);_0x55267a[_0x3cc0('0x88')](_0x3cc0('0xc4')),_0x55267a[_0x3cc0('0xc4')]=!0x1,_0x4f671b[_0x3cc0('0x133')]=_0x55267a;}['_checkSuggestionCorrectness'](_0x387317,_0x528d16,_0x176495,_0x3235ea){if(_0x387317[_0x3cc0('0x122')]!=_0x528d16||_0x387317[_0x3cc0('0x77')]!=_0x176495||_0x387317[_0x3cc0('0x5a')]['id']!=_0x3235ea)throw this[_0x3cc0('0x37')][_0x3cc0('0x96')](_0x3cc0('0x110')),new _0x352f3d(_0x3cc0('0x110'),this);}[_0x3cc0('0xf1')](_0x1b8ed1,_0x93dc43){const _0x1d08c8=_0x1b8ed1['getFirstRange']();if(_0x93dc43[_0x3cc0('0x53')](_0x1d08c8))_0x1b8ed1[_0x3cc0('0x82')]();else{if(_0x1d08c8[_0x3cc0('0xd6')](_0x93dc43)){const _0x1d7163=this[_0x3cc0('0xa6')][_0x3cc0('0xfd')](_0x93dc43[_0x3cc0('0xab')][_0x3cc0('0x104')],_0x3cc0('0x10c'));this[_0x3cc0('0xb5')](_0x1b8ed1,this['_model'][_0x3cc0('0xe')](_0x1d08c8[_0x3cc0('0xab')],_0x1d7163));const _0x248da5=_0x29dde6(),_0x199a0a=_0x1b8ed1[_0x3cc0('0x5a')]['id'],_0x468698=_0x1b8ed1['type']+':'+_0x1b8ed1['subType'];this[_0x3cc0('0xf7')]({'id':_0x248da5,'type':_0x468698,'createdAt':new Date(),'authorId':_0x199a0a,'data':_0x1b8ed1[_0x3cc0('0xe5')],'attributes':_0x1b8ed1[_0x3cc0('0x60')]});const _0x569cae=this[_0x3cc0('0xa6')][_0x3cc0('0xfd')](_0x93dc43[_0x3cc0('0x10c')][_0x3cc0('0x116')],_0x3cc0('0xac')),_0x3d49d3=this['_model'][_0x3cc0('0xe')](_0x569cae,_0x1d08c8['end']);this['_addSuggestionMarker'](_0x468698,_0x248da5,_0x199a0a,_0x3d49d3);}else{if(_0x1d08c8[_0x3cc0('0x3e')](_0x93dc43[_0x3cc0('0xab')])){const _0x150185=this[_0x3cc0('0xa6')]['createPositionAt'](_0x93dc43['start'][_0x3cc0('0x104')],_0x3cc0('0x10c'));this[_0x3cc0('0xb5')](_0x1b8ed1,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x1d08c8['start'],_0x150185));}else{const _0x17c890=this[_0x3cc0('0xa6')][_0x3cc0('0xfd')](_0x93dc43[_0x3cc0('0x10c')][_0x3cc0('0x116')],_0x3cc0('0xac'));this[_0x3cc0('0xb5')](_0x1b8ed1,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x17c890,_0x1d08c8[_0x3cc0('0x10c')]));}}}}[_0x3cc0('0x63')](_0x198df0){for(const {suggestion:_0x531223,meta:_0x296e45}of this[_0x3cc0('0x120')](_0x198df0,_0x3cc0('0x2e'))){if(!_0x296e45[_0x3cc0('0x55')])continue;const _0xaffd09=_0x531223[_0x3cc0('0xbd')]();for(const _0x22317d of _0xaffd09)if(!_0x198df0[_0x3cc0('0xa3')](_0x22317d)[_0x3cc0('0xcb')])return!0x0;}return!0x1;}[_0x3cc0('0xd8')](_0x144e49){const _0x193242=this[_0x3cc0('0x37')]['plugins'][_0x3cc0('0xd1')](_0x3cc0('0x118'))[_0x3cc0('0xbf')](_0x144e49);if(!_0x193242)throw new _0x352f3d('track-changes-user-not-found',this);return _0x193242;}[_0x3cc0('0xc2')](_0x24932a){const _0xf509d5=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')](_0x3cc0('0x118')),_0x2be01e=_0x17e8a1(_0x3cc0('0x56')+_0x24932a),_0x54e627=_0xf509d5['getUser'](_0x2be01e);return _0x54e627||_0xf509d5['addUser']({'id':_0x2be01e,'name':_0x24932a});}[_0x3cc0('0x27')](_0x3f5541,_0x6cadb8,_0x5233d3,_0x3e09de,_0x17c7ad){const _0x3ce767=this['_getAuthorFromId'](_0x3e09de),_0x198a4d=this['_suggestionFactory'][_0x3cc0('0x45')](_0x3f5541,_0x6cadb8,_0x5233d3,_0x3ce767,_0x17c7ad,_0x32d52b=>this[_0x3cc0('0xff')](_0x5233d3,{'attributes':_0x32d52b}));return this[_0x3cc0('0x111')](_0x198a4d,_0x3cc0('0x94'),()=>{this['_updateSuggestionData'](_0x5233d3,{'state':_0x3cc0('0x15')});},{'priority':_0x3cc0('0xf')}),this[_0x3cc0('0x111')](_0x198a4d,_0x3cc0('0x9e'),()=>{this['_updateSuggestionData'](_0x5233d3,{'state':'rejected'});},{'priority':_0x3cc0('0xf')}),this[_0x3cc0('0x2d')][_0x3cc0('0xdd')](_0x5233d3,_0x198a4d),this[_0x3cc0('0x8a')][_0x3cc0('0xdd')](_0x198a4d,_0x3cc0('0x119')),_0x198a4d;}[_0x3cc0('0x69')](_0xc35a2){const _0x82ef70=_0xc35a2[_0x3cc0('0xce')](':');return{'group':_0x82ef70[0x0],'type':_0x82ef70[0x1],'subType':_0x82ef70[_0x3cc0('0xcb')]>=0x5?_0x82ef70[0x2]:null,'id':_0x82ef70['length']<0x5?_0x82ef70[0x2]:_0x82ef70[0x3],'authorId':_0x82ef70['length']<0x5?_0x82ef70[0x3]:_0x82ef70[0x4],'markerCount':0x6==_0x82ef70[_0x3cc0('0xcb')]?_0x82ef70[0x5]:null};}[_0x3cc0('0x76')](_0x1cf70f,_0x164653,_0x3e5c50){const _0x36a8d3=_0x1cf70f['getFirstRange'](),_0xe37142=_0x36a8d3['start'],_0x2d3133=_0x36a8d3['end'];this['_setSuggestionRange'](_0x1cf70f,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0xe37142,_0x164653));const _0x19d7c0=_0x29dde6(),_0x344264=_0x1cf70f[_0x3cc0('0x5a')]['id'],_0x3426b5=_0x1cf70f[_0x3cc0('0x122')]+(_0x1cf70f[_0x3cc0('0x77')]?':'+_0x1cf70f['subType']:'');this[_0x3cc0('0xf7')]({'id':_0x19d7c0,'type':_0x3426b5,'createdAt':new Date(),'authorId':_0x344264,'originalSuggestionId':_0x1cf70f['id'],'attributes':_0x1cf70f['attributes'],'data':_0x1cf70f[_0x3cc0('0xe5')]}),_0x3cc0('0x44')==_0x1cf70f['type']&&(_0x3e5c50=this[_0x3cc0('0xa6')]['createPositionBefore'](_0x3e5c50['parent'])),this['_addSuggestionMarker'](_0x3426b5,_0x19d7c0,_0x344264,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x3e5c50,_0x2d3133));}['_findSuggestions'](_0x26de94,_0x3a9068=null){const _0x2ee395=[],_0x59a676=this[_0x3cc0('0xa6')][_0x3cc0('0xde')],_0x2e52a3=this[_0x3cc0('0x37')]['plugins'][_0x3cc0('0xd1')](_0x3cc0('0x118'))['me'];for(const _0x115569 of this[_0x3cc0('0x12c')]())if(_0x115569[_0x3cc0('0xa8')]&&(!_0x3a9068||_0x115569[_0x3cc0('0x122')]==_0x3a9068))for(const _0x56db4b of _0x115569[_0x3cc0('0xbd')]()){const _0x3ac388=_0x26de94[_0x3cc0('0xab')][_0x3cc0('0x53')](_0x56db4b[_0x3cc0('0x10c')])||_0x26de94[_0x3cc0('0x10c')]['isEqual'](_0x56db4b[_0x3cc0('0xab')]);if(_0x3ac388||_0x26de94[_0x3cc0('0xe7')](_0x56db4b)){const _0x36c349=_0x26de94[_0x3cc0('0xd6')](_0x56db4b)&&Bt(_0x59a676,_0x56db4b[_0x3cc0('0xab')],_0x26de94),_0x18a522=_0x56db4b[_0x3cc0('0xd6')](_0x26de94)&&Bt(_0x59a676,_0x26de94['start'],_0x56db4b);_0x2ee395[_0x3cc0('0x2a')]({'suggestion':_0x115569,'meta':{'isOwn':_0x2e52a3==_0x115569[_0x3cc0('0x6e')],'isNextTo':_0x3ac388,'isInsideObject':_0x36c349,'containsRangeInObject':_0x18a522}});break;}}return _0x2ee395;}['_addSuggestionMarker'](_0x2c1df8,_0x3fab5f,_0x3b00cc,_0x1ffd86,_0x5d3ecc){this[_0x3cc0('0xa6')][_0x3cc0('0xf0')](_0x21a9aa=>{let _0x37deff=_0x3cc0('0xdc')+_0x2c1df8+':'+_0x3fab5f+':'+_0x3b00cc;_0x5d3ecc&&(_0x37deff=_0x37deff+':'+_0x5d3ecc),_0x21a9aa[_0x3cc0('0x8')](_0x37deff,{'range':_0x1ffd86,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3cc0('0x52')](_0x595c6d){const _0x2bd52f=_0x595c6d[_0x3cc0('0xe8')],_0x2d5e59=_0x595c6d[_0x3cc0('0x8e')];_0x595c6d[_0x3cc0('0xe8')]=null,null!=_0x2bd52f&&(_0x2bd52f[_0x3cc0('0x8e')]=null),_0x595c6d[_0x3cc0('0x8e')]=null,null!=_0x2d5e59&&(_0x2d5e59['previous']=null),_0x3cc0('0x12a')==this[_0x3cc0('0x8a')][_0x3cc0('0xd1')](_0x595c6d)&&(this[_0x3cc0('0x8a')][_0x3cc0('0xdd')](_0x595c6d,_0x3cc0('0xe6')),this[_0x3cc0('0x33')](_0x3cc0('0xdb'),_0x595c6d,_0x2bd52f,_0x2d5e59));}[_0x3cc0('0xf7')](_0x575556){const _0x759f31=_0x575556['id'],_0x2bf85c=this[_0x3cc0('0x42')](_0x575556);if(this['_adapter']&&this['_adapter'][_0x3cc0('0x100')]){const _0x53d119=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')](_0x3cc0('0x29')),_0x1798ff=_0x2bf85c[_0x3cc0('0x129')],_0xdc66ed=_0x2bf85c[_0x3cc0('0x77')]?_0x2bf85c['type']+':'+_0x2bf85c[_0x3cc0('0x77')]:_0x2bf85c[_0x3cc0('0x122')],_0x507f77=this[_0x3cc0('0x37')][_0x3cc0('0x67')],_0x48a532=_0x53d119[_0x3cc0('0xd0')](_0x5b8049(_0x507f77,_0x3cc0('0x2'))),_0x5ade19={'id':_0x759f31,'type':_0xdc66ed,'hasComments':_0x1798ff,'data':_0x575556[_0x3cc0('0xe5')]||null,'originalSuggestionId':_0x575556['originalSuggestionId']||null,'attributes':_0x2bf85c[_0x3cc0('0x60')]};this['_adapter']['addSuggestion'](_0x5ade19)[_0x3cc0('0x5b')](_0x721b0f=>{_0x2bf85c[_0x3cc0('0xcd')]=!0x0,_0x53d119[_0x3cc0('0x95')](_0x48a532),_0x721b0f&&_0x721b0f['createdAt']&&(this[_0x3cc0('0x2d')][_0x3cc0('0xd1')](_0x759f31)[_0x3cc0('0x54')]=_0x721b0f['createdAt']);})['catch'](_0x401967=>{throw _0x512b36(_0x3cc0('0x17')),this[_0x3cc0('0x37')][_0x3cc0('0x12f')][_0x3cc0('0x7e')]({'isUndoable':!0x1},()=>{_0x2bf85c[_0x3cc0('0x9e')]();}),_0x2bf85c[_0x3cc0('0xa0')](),this[_0x3cc0('0x2d')]['delete'](_0x2bf85c['id']),this[_0x3cc0('0x8a')][_0x3cc0('0xc0')](_0x2bf85c),_0x401967;});}return _0x2bf85c;}[_0x3cc0('0xff')](_0x345be0,_0xcdb56e){const _0x4ad8d6=this[_0x3cc0('0x37')]['plugins'][_0x3cc0('0xd1')](_0x3cc0('0x29')),_0x46475c=this[_0x3cc0('0x125')](_0x345be0);if(this[_0x3cc0('0x1a')]&&this['_adapter']['updateSuggestion']){if(_0x46475c['_saved']){const _0x2d320e=_0x4ad8d6[_0x3cc0('0xd0')](_0x5b8049(this['editor']['locale'],_0x3cc0('0x2')));this[_0x3cc0('0x1a')][_0x3cc0('0x11a')](_0x345be0,_0xcdb56e)[_0x3cc0('0x5b')](()=>{_0x4ad8d6[_0x3cc0('0x95')](_0x2d320e);});}else _0x46475c['on'](_0x3cc0('0x59'),()=>{this[_0x3cc0('0xff')](_0x345be0,_0xcdb56e);});}}['_getSuggestionData'](_0x3c3ac5){if(!this[_0x3cc0('0x1a')]||!this['_adapter'][_0x3cc0('0x125')])throw new _0x352f3d('track-changes-adapter-missing-getsuggestion',this);return this[_0x3cc0('0x1a')][_0x3cc0('0x125')](_0x3c3ac5);}[_0x3cc0('0x106')](_0x25055a){const {id:_0x5a7d2c,type:_0x3bfeb4,subType:_0x498a62,authorId:_0x51b147}=this[_0x3cc0('0x69')](_0x25055a),_0x2c42e8=this[_0x3cc0('0x2d')]['get'](_0x5a7d2c)||this['_createSuggestion'](_0x3bfeb4,_0x498a62,_0x5a7d2c,_0x51b147,{});switch(this[_0x3cc0('0xb8')](_0x2c42e8,_0x3bfeb4,_0x498a62,_0x51b147),this['_suggestionState'][_0x3cc0('0xd1')](_0x2c42e8)){case _0x3cc0('0x119'):this['_getSuggestionData'](_0x5a7d2c)['then'](_0xb93145=>{let _0x2c46f8=Promise[_0x3cc0('0x51')]();_0xb93145['hasComments']&&(_0x2c46f8=this[_0x3cc0('0x23')][_0x3cc0('0xa4')]({'channelId':this[_0x3cc0('0x37')]['config'][_0x3cc0('0xd1')](_0x3cc0('0x89')),'threadId':_0x5a7d2c})),_0x2c46f8[_0x3cc0('0x5b')](()=>{this[_0x3cc0('0x42')](_0xb93145)[_0x3cc0('0xcd')]=!0x0;});}),this[_0x3cc0('0x8a')][_0x3cc0('0xdd')](_0x2c42e8,_0x3cc0('0xef'));break;case _0x3cc0('0xe6'):this['_updateSuggestionData'](_0x5a7d2c,{'state':'open'});case _0x3cc0('0xc1'):this[_0x3cc0('0x8a')]['set'](_0x2c42e8,'ready'),this[_0x3cc0('0x33')](_0x3cc0('0x91'),_0x2c42e8);break;case _0x3cc0('0x12a'):this[_0x3cc0('0x33')](_0x3cc0('0x115'),_0x2c42e8);}return _0x2c42e8[_0x3cc0('0x11')](_0x25055a),_0x2c42e8;}['_refreshSuggestionsChain'](_0x294738){const _0x12de30=Array['from'](_0x294738)['filter'](_0x5b5862=>!_0x5b5862[_0x3cc0('0x4')]),_0x5b9ebc=this[_0x3cc0('0x12c')]({'skipNotAttached':!0x0})[_0x3cc0('0x1d')](_0x5a7942=>!_0x5a7942[_0x3cc0('0x4')]),_0x5953e2=_0x5b9ebc[_0x3cc0('0x1d')](_0x1bcac8=>!_0x294738[_0x3cc0('0x6d')](_0x1bcac8)),_0x274a73=new Map(_0x5b9ebc['map'](_0x42ce87=>[_0x42ce87,this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x42ce87[_0x3cc0('0x122')],_0x42ce87['subType'],'chain')])),_0x70e971=new Map(_0x5b9ebc['map'](_0x3de679=>[_0x3de679,_0x3de679[_0x3cc0('0x74')]()])),_0x2ff6eb=new Set(),_0x21f92a=new Set();for(let _0x51059c=0x0;_0x51059c<_0x12de30[_0x3cc0('0xcb')];_0x51059c++)_0x5326c7(_0x12de30[_0x51059c],_0x12de30,_0x51059c+0x1);for(let _0x5f8c71=0x0;_0x5f8c71<_0x12de30['length'];_0x5f8c71++)_0x5326c7(_0x12de30[_0x5f8c71],_0x5953e2,0x0);for(let _0x473c53=0x0;_0x473c53<_0x12de30['length'];_0x473c53++){const _0x55dc6e=_0x12de30[_0x473c53];!_0x21f92a[_0x3cc0('0x6d')](_0x55dc6e)&&_0x55dc6e[_0x3cc0('0xe8')]&&(_0x55dc6e[_0x3cc0('0xe8')][_0x3cc0('0x8e')]===_0x55dc6e&&(_0x55dc6e[_0x3cc0('0xe8')][_0x3cc0('0x8e')]=null),_0x55dc6e['previous']=null),!_0x2ff6eb[_0x3cc0('0x6d')](_0x55dc6e)&&_0x55dc6e['next']&&(_0x55dc6e['next'][_0x3cc0('0xe8')]===_0x55dc6e&&(_0x55dc6e[_0x3cc0('0x8e')][_0x3cc0('0xe8')]=null),_0x55dc6e[_0x3cc0('0x8e')]=null);}function _0x5326c7(_0x97fd7c,_0x14d6ab,_0x39b86d){for(let _0x4df2aa=_0x39b86d;_0x4df2aa<_0x14d6ab[_0x3cc0('0xcb')];_0x4df2aa++){const _0x20f1d4=_0x2cfc3e(_0x97fd7c,_0x14d6ab[_0x4df2aa]);_0x20f1d4&&(_0x20f1d4[0x0][_0x3cc0('0x8e')]=_0x20f1d4[0x1],_0x20f1d4[0x1]['previous']=_0x20f1d4[0x0],_0x2ff6eb[_0x3cc0('0xd0')](_0x20f1d4[0x0]),_0x21f92a['add'](_0x20f1d4[0x1]));}}function _0x2cfc3e(_0x36cd35,_0x4343f8){if(_0x36cd35[_0x3cc0('0x6e')]['id']!==_0x4343f8[_0x3cc0('0x6e')]['id'])return null;const _0x457046=_0x274a73[_0x3cc0('0xd1')](_0x36cd35)(_0x36cd35,_0x4343f8,_0x70e971[_0x3cc0('0xd1')](_0x36cd35),_0x70e971[_0x3cc0('0xd1')](_0x4343f8));if(!_0x457046)return null;return _0x274a73['get'](_0x4343f8)(_0x36cd35,_0x4343f8,_0x70e971[_0x3cc0('0xd1')](_0x36cd35),_0x70e971[_0x3cc0('0xd1')](_0x4343f8))?_0x457046[0x1][_0x3cc0('0x133')]&&_0x457046[0x1][_0x3cc0('0x133')][_0x3cc0('0xcb')]?null:_0x457046:null;}}[_0x3cc0('0x3d')](_0x581f75){const _0x2f359d=Array[_0x3cc0('0x109')](_0x581f75),_0x34588b=this['getSuggestions']({'skipNotAttached':!0x0}),_0xa0da94=_0x34588b[_0x3cc0('0x1d')](_0x29fcd9=>!_0x581f75[_0x3cc0('0x6d')](_0x29fcd9)),_0x5b02a2=new Map(_0x2f359d[_0x3cc0('0xfa')](_0x5aead7=>[_0x5aead7,this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x5aead7[_0x3cc0('0x122')],_0x5aead7[_0x3cc0('0x77')],_0x3cc0('0x26'))])),_0x382147=new Map(_0x34588b['map'](_0x39a1aa=>[_0x39a1aa,_0x39a1aa['getRanges']()]));for(let _0xe20481=0x0;_0xe20481<_0x2f359d['length'];_0xe20481++){if(_0x1bb35c(this,_0x2f359d[_0xe20481],_0x2f359d,_0xe20481+0x1))return!0x0;}for(let _0x511e86=0x0;_0x511e86<_0x2f359d[_0x3cc0('0xcb')];_0x511e86++){if(_0x1bb35c(this,_0x2f359d[_0x511e86],_0xa0da94,0x0))return!0x0;}return!0x1;function _0x1bb35c(_0x3fb99c,_0x224a45,_0x51948c,_0x21ae56){for(let _0x225e0e=_0x21ae56;_0x225e0e<_0x51948c[_0x3cc0('0xcb')];_0x225e0e++){const _0x4a9fac=_0x51948c[_0x225e0e];if(_0x4a9fac[_0x3cc0('0x122')]!==_0x224a45['type']||_0x4a9fac['author']['id']!==_0x224a45[_0x3cc0('0x6e')]['id']||_0x4a9fac[_0x3cc0('0x77')]!==_0x224a45[_0x3cc0('0x77')])continue;const _0x30e3cf=_0x5b02a2[_0x3cc0('0xd1')](_0x224a45),_0x4ccb7f=_0x382147['get'](_0x224a45),_0x22cf07=_0x382147['get'](_0x4a9fac),_0x5745b8=_0x224a45[_0x3cc0('0x133')]&&_0x224a45[_0x3cc0('0x133')]['length'],_0x2480ce=_0x4a9fac[_0x3cc0('0x133')]&&_0x4a9fac[_0x3cc0('0x133')][_0x3cc0('0xcb')];if(!_0x5745b8&&_0x30e3cf(_0x22cf07,_0x4ccb7f))return _0x3fb99c[_0x3cc0('0x85')](_0x4a9fac,_0x224a45),_0x382147['delete'](_0x224a45),!0x0;if(!_0x2480ce&&_0x30e3cf(_0x4ccb7f,_0x22cf07))return _0x3fb99c[_0x3cc0('0x85')](_0x224a45,_0x4a9fac),_0x382147[_0x3cc0('0xc0')](_0x4a9fac),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5667bc,_0x6dc044){if(_0x5667bc[_0x3cc0('0x4')])for(const _0x3ff882 of _0x6dc044[_0x3cc0('0xbd')]())_0x5667bc['addRange'](_0x3ff882);else{const _0x16056f=_0x6dc044[_0x3cc0('0x74')]()[_0x3cc0('0x10c')];this[_0x3cc0('0xb5')](_0x5667bc,this[_0x3cc0('0xa6')]['createRange'](_0x5667bc[_0x3cc0('0x74')]()[_0x3cc0('0xab')],_0x16056f));}_0x6dc044['removeMarkers']();}}class Dt{constructor(_0x98ff17){this['_editor']=_0x98ff17,this[_0x3cc0('0xa6')]=_0x98ff17[_0x3cc0('0x12f')],this['_customCallbacks']=new Map(),this[_0x3cc0('0x4b')]=new Map(),this[_0x3cc0('0x3f')]();}[_0x3cc0('0x45')](_0x214c16,_0x142b64,_0x5926d9,_0x32b7af,_0x2af1af,_0x2baccb){return new _0x1bda2a(this[_0x3cc0('0xa6')],{'type':_0x214c16,'subType':_0x142b64,'id':_0x5926d9,'author':_0x32b7af,'creator':_0x32b7af,'attributes':_0x2af1af,'onAttributesChange':_0x2baccb,'onAccept':(..._0xd6c9e6)=>this[_0x3cc0('0x1')](_0x214c16,_0x142b64,_0x3cc0('0x94'))(..._0xd6c9e6),'onDiscard':(..._0x53181b)=>this['getSuggestionCallback'](_0x214c16,_0x142b64,_0x3cc0('0x9e'))(..._0x53181b)});}[_0x3cc0('0xea')](_0x1dee36,_0x3466b5,_0x118e45,_0x1c3bb9){const _0x5e365d=_0x1dee36+':'+_0x3466b5+':'+_0x118e45;this[_0x3cc0('0xdf')][_0x3cc0('0xdd')](_0x5e365d,_0x1c3bb9);}['getSuggestionCallback'](_0x2fd81d,_0x154f39,_0x3252fc){const _0x3ea2b9=_0x2fd81d+':'+_0x154f39+':'+_0x3252fc;return this[_0x3cc0('0xdf')][_0x3cc0('0xd1')](_0x3ea2b9)||this[_0x3cc0('0x4b')][_0x3cc0('0xd1')](_0x2fd81d+':'+_0x3252fc);}['_registerDefaultCallbacks'](){const _0x445da4=()=>{},_0x588f05=_0x21adf7=>{_0x21adf7['sort']((_0x159691,_0x47b76f)=>_0x159691[_0x3cc0('0xab')][_0x3cc0('0x2f')](_0x47b76f['start'])?0x1:-0x1),this['_model'][_0x3cc0('0xf0')](_0x5b04d9=>{for(const _0x41ecd7 of _0x21adf7){let _0x414503;_0x414503=_0x41ecd7[_0x3cc0('0x10c')][_0x3cc0('0xa2')]&&_0x41ecd7[_0x3cc0('0x10c')]['parent']==_0x41ecd7['start']['nodeAfter']?_0x5b04d9['createSelection'](_0x41ecd7['start']['nodeAfter'],'on'):_0x5b04d9[_0x3cc0('0xc8')](_0x41ecd7),this[_0x3cc0('0xa6')][_0x3cc0('0x46')](_0x414503,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3a94df=(_0x488de9,_0x147f61)=>{this[_0x3cc0('0xa6')][_0x3cc0('0xf0')](_0xc5ca7b=>{const {commandName:_0x5c924c,commandParams:_0x8c494=[]}=_0x147f61,_0x9ae626=_0x488de9['map'](_0x342139=>(_t(_0x342139)&&(_0x342139=this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x342139['end'])),_0x342139))['filter'](_0x4ec1dd=>'$graveyard'!==_0x4ec1dd[_0x3cc0('0x13a')][_0x3cc0('0x47')]);if(_0x9ae626['length']<0x1)return;const _0x11adde=Array['from'](this['_model'][_0x3cc0('0x13e')][_0x3cc0('0xbc')][_0x3cc0('0xbd')]())[_0x3cc0('0xfa')](_0x51369b=>_0x4b431b[_0x3cc0('0x12')](_0x51369b));_0xc5ca7b[_0x3cc0('0x92')](_0x9ae626);for(const _0x2e17fb of this[_0x3cc0('0xb1')]['commands'][_0x3cc0('0x12b')]())_0x2e17fb[_0x3cc0('0x3a')]();_0x8c494['push']({'forceDefaultExecution':!0x0}),this[_0x3cc0('0xb1')]['execute'](_0x5c924c,..._0x8c494);const _0x5a7196=_0x11adde[_0x3cc0('0x1d')](_0x3ffbdb=>'$graveyard'!=_0x3ffbdb[_0x3cc0('0x13a')][_0x3cc0('0x47')]);_0x5a7196[_0x3cc0('0xcb')]>0x0&&_0xc5ca7b[_0x3cc0('0x92')](_0x5a7196);for(const _0xe4618a of _0x11adde)_0xe4618a[_0x3cc0('0xe0')]();});},_0x5c0f0c=(_0x56f290,_0x1d1db7)=>0x1==_0x56f290[_0x3cc0('0xcb')]&&0x1==_0x1d1db7[_0x3cc0('0xcb')]&&_0x56f290[0x0]['end'][_0x3cc0('0x53')](_0x1d1db7[0x0][_0x3cc0('0xab')]),_0x37f5e5=(_0x5f0d26,_0x5532d7,_0x1f4f1c,_0x21808b)=>xt(_0x5f0d26,_0x5532d7,_0x1f4f1c,_0x21808b,this[_0x3cc0('0xa6')])?[_0x5f0d26,_0x5532d7]:xt(_0x5532d7,_0x5f0d26,_0x21808b,_0x1f4f1c,this[_0x3cc0('0xa6')])?[_0x5532d7,_0x5f0d26]:null;this[_0x3cc0('0x4b')]['set'](_0x3cc0('0x9f'),_0x445da4),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')]('insertion:discard',_0x588f05),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0xa'),_0x5c0f0c),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0x84'),_0x37f5e5),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')]('deletion:accept',_0x588f05),this['_defaultCallbacks']['set']('deletion:discard',_0x445da4),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0x5d'),_0x5c0f0c),this['_defaultCallbacks'][_0x3cc0('0xdd')](_0x3cc0('0x4d'),_0x37f5e5),this[_0x3cc0('0x4b')]['set'](_0x3cc0('0xc6'),_0x3a94df),this[_0x3cc0('0x4b')]['set'](_0x3cc0('0x4e'),_0x445da4),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')]('formatInline:join',_0x5c0f0c),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0x134'),_0x445da4),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0xed'),_0x3a94df),this['_defaultCallbacks']['set']('formatBlock:discard',_0x445da4),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0x6a'),_0x5c0f0c),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0xf4'),_0x445da4);}}function Bt(_0x313545,_0x1f327b,_0x28e98e){for(const _0x5e7d1c of _0x1f327b['parent'][_0x3cc0('0x14')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5e7d1c[_0x3cc0('0x13a')]==_0x5e7d1c)return!0x1;if(!_0x28e98e[_0x3cc0('0xd2')](_0x5e7d1c))return!0x1;if(_0x313545[_0x3cc0('0xaf')](_0x5e7d1c)||_0x313545[_0x3cc0('0x39')](_0x5e7d1c))return!0x0;}return!0x1;}function _t(_0xddd045){return _0xddd045[_0x3cc0('0x10c')][_0x3cc0('0x116')]==_0xddd045[_0x3cc0('0xab')]['nodeAfter']&&_0xddd045['end']['isAtStart'];}function Mt(_0x47e689,_0x529a60,_0x169448,_0x248208){const _0x18ad42=_0x48b436=>!_0x48b436['item']['is']('$textProxy')&&!_0x248208[_0x3cc0('0xaf')](_0x48b436[_0x3cc0('0x7d')]),_0x7b4552=_0x47e689[_0x3cc0('0xab')][_0x3cc0('0x4c')](_0x18ad42),_0x26967f=_0x47e689['end'][_0x3cc0('0x4c')](_0x18ad42,{'direction':_0x3cc0('0x5f')});return(!_0x47e689['start'][_0x3cc0('0x53')](_0x7b4552)||!_0x47e689['end'][_0x3cc0('0x53')](_0x26967f))&&(_0x7b4552[_0x3cc0('0x2f')](_0x26967f)?_0x169448[_0x3cc0('0xb3')](_0x529a60,{'range':_0x169448[_0x3cc0('0xe')](_0x7b4552,_0x26967f)}):_0x169448['removeMarker'](_0x529a60),!0x0);}function $t(_0x5e8ebc){return _0x17e8a1(_0x5e8ebc);}function Nt(_0x958db1){const _0x38c871=_0x958db1[_0x3cc0('0xab')][_0x3cc0('0x130')];return _0x38c871&&_0x38c871['is'](_0x3cc0('0x126'));}function Rt(_0x33b6fd,_0xd5cf47){const _0x4b3fd7=_0xd5cf47[_0x3cc0('0xde')][_0x3cc0('0xaf')](_0x33b6fd)||_0xd5cf47[_0x3cc0('0xde')][_0x3cc0('0x98')](_0x33b6fd);return _0xd5cf47[_0x3cc0('0xe')](_0xd5cf47[_0x3cc0('0xfd')](_0x33b6fd,'before'),_0x4b3fd7?_0xd5cf47[_0x3cc0('0xaa')](_0x33b6fd):_0xd5cf47[_0x3cc0('0xfd')](_0x33b6fd,_0x3cc0('0x10c')));}function xt(_0x16373b,_0x56705d,_0x3cc7e6,_0x4e2ad7,_0x121d11){if(_0x3cc7e6[_0x3cc0('0x10c')]['isEqual'](_0x4e2ad7[_0x3cc0('0xab')]))return!0x0;if(_0x16373b[_0x3cc0('0x122')]!=_0x56705d[_0x3cc0('0x122')])return!0x1;if(!_0x3cc7e6['end'][_0x3cc0('0xc3')](_0x4e2ad7[_0x3cc0('0xab')]))return!0x1;const _0x4dca14=_0x121d11[_0x3cc0('0xe')](_0x3cc7e6[_0x3cc0('0x10c')],_0x4e2ad7[_0x3cc0('0xab')])[_0x3cc0('0x22')]();for(const _0x55de7b of _0x4dca14)if([_0x3cc0('0xc5'),_0x3cc0('0x2b')][_0x3cc0('0x4f')](_0x55de7b[_0x3cc0('0x122')])&&_0x121d11[_0x3cc0('0xde')]['isLimit'](_0x55de7b[_0x3cc0('0x7d')]))return!0x1;return!0x0;}
|