@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230802.0 → 0.0.0-nightly-20230804.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/theme/revision/revisionactions.css +2 -0
package/src/revisiontracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x21a4=['insertions','revisionHistory.resumeUnsavedRevision','path','getAncestors','bind','initialData','name','_getFromVersion','creator','_makeModelFromViewString','add','_handleMergeOperation','item','roots','from','Users','_loadRevisionData','_lastTo','max','clear','_source','NEGATIVE_INFINITY','getNodeByPath','_loadedStateData','vid','repository','remove','key','_createFromRanges','_transformMarkers','attributesBefore','for','vid_start','slice','document','removeRootAttribute','_setAttribute','_touchedMarkers','config','attachChange','define','elementEnd','createRangeIn','isReady','_baseRoots','set','toVersion','_appendChild','_bufferUpdate','reverse','keys','oldRange','_fixRange','processor','_diffRootsAttributes','getRevisionRootsAttributes','_execute','RealTimeCollaborationClient','has','clone','reInit','_handleInsertOperation','plugins','fromEntries','newRange','initial','_touchedRoots','_isPendingUpdate','_baseRootsAttributes','useFillerType','history','dataDowncast','_createInitialRevision','saveRevision','_addPendingAction','_fixPosition','_findInsertionIndex','$text','isEnabled','revision-end','_removeRevisionMarkers','createPositionAt','Initial\x20revision','deletions','targetPosition','forEach','marked','getAttribute','authorsIds','_replaceEditorDataWithRevisionData','collaboration.channelId','splitPosition','source','_initialRevisionId','_handleMoveOperation','get','_getVidAttributeName','getRevision','model','attributesAfter','tableCell','_getPreviousFrom','update','_copyMarkers','values','trim','data','resolve','graveyardPosition','element','addRevision','toModel','currentRevision','_fixOperation','editor-initial-data-replaced-with-revision-data','_getBaseVids','getData','_saveMetaData','userId','some','_authorId','_update','_removePendingAction','markers','_handleRootOperation','getRange','_lastFrom','getUser','_applyOperations','rootsAttributes','isAttached','root','_insertChild','$graveyard','merge','getMovedRangeStart','rootName','_pendingAction','default','_handleMarkerOperation','_diffRoots','getChildren','editing','createPositionAfter','elementStart','_startingVersion','detachRoot','childCount','attributes','_revisionDataBuilder','_continueCurrentRevision','_touched','delete','_calculateMetaData','paragraph','find','sort','getTransformedByOperation','includes','_cloneOperation','howMany','view','createRange','filter','_bufferedUpdates','_handleSplitOperation','_makeIdsRoot','_startingRevisionId','_getViewJson','init','_idsRoots','fromVersion','size','baseVersion','_handleRootAttributeOperation','_markers','_generateTape','vid_end','end','nodes','conversion','getRootNames','getRevisions','_reset','PendingActions','RevisionsRepository','marker','_savedMetaData','version','_markChanges','stickiness','start','affectsData','addRevisionData','getLatestVersion','getCurrentRevisionId','type','_operations','insert','createPositionFromPath','parse','_revisionId','_isInit','getWalker','locale','push','adapter','getAttributes','then','_setConversion','_isAttached','nodeAfter','newValue','dataToMarker','move','_baseIdsRoots','parent','updateRevisions','_loadState','_processRootBeforeSave','getRevisionDocumentData','insertionPosition','_removeMetaData','offset','_prepareViewToSave','reinsert','changeRootAttribute','map','_makeRevision','length','_getState','getIndex','editor','afterInit','Empty\x20document','documentFragment','getChild','creatorId','revision','children','sendBufferedUpdates','getRoot','setRevisionData','RevisionTracker','startsWith','diffData','stringify','split','markerToData','_handleOperation','position','isAdd','previousPosition','authors','buildRevisionData','offsetSize','string','revision-start','revision:','createdAt','_createCurrentRevision'];(function(_0x1a9247,_0x21a48){const _0x4065b0=function(_0x28c3b4){while(--_0x28c3b4){_0x1a9247['push'](_0x1a9247['shift']());}};_0x4065b0(++_0x21a48);}(_0x21a4,0xd3));const _0x4065=function(_0x1a9247,_0x21a48){_0x1a9247=_0x1a9247-0x0;let _0x4065b0=_0x21a4[_0x1a9247];return _0x4065b0;};import{Users as _0x750897}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x358dea,PendingActions as _0x4b055b}from'ckeditor5/src/core';import{logWarning as _0x6c823,uid as _0x50d016}from'ckeditor5/src/utils';import{Position as _0x2080ef,Range as _0x369295,Element as _0x43e22b,DocumentFragment as _0x267fe9,ViewText as _0x93ba7b,ViewElement as _0x3ec5fb,ViewContainerElement as _0x943a8e,ViewAttributeElement as _0x47414e,ViewEmptyElement as _0x13ae7a,ViewRawElement as _0xab4798,ViewUIElement as _0x51c262,ViewDocumentFragment as _0x44be92}from'ckeditor5/src/engine';import _0x44c7cc from'./revisionsrepository';import{getTranslation as _0x3a6ea8}from'./utils/common-translations';import{cloneDeep as _0x27fc92,isEqual as _0x25181f}from'lodash-es';const B={'c':_0x943a8e,'a':_0x47414e,'e':_0x13ae7a,'r':_0xab4798,'u':_0x51c262};export default class l extends _0x358dea{static get['pluginName'](){return _0x4065('0x20');}static get['requires'](){return[_0x750897,_0x44c7cc,_0x4b055b];}constructor(_0x7ad13f){super(_0x7ad13f),this['adapter']=null,this[_0x4065('0xa2')]=null,this['_revisionDataBuilder']=new H(this[_0x4065('0x15')]),this[_0x4065('0x8f')]=this[_0x4065('0x15')][_0x4065('0x58')]['get']('collaboration.channelId')||_0x4065('0x73'),this[_0x4065('0xd6')]=new Map(),this['_loadedStateData']=null;const _0x500a9e=_0x50d016();this[_0x4065('0x46')]={'history':this[_0x4065('0x15')][_0x4065('0x94')]['document'][_0x4065('0x78')],'getLatestVersion':()=>Promise[_0x4065('0x9d')](this[_0x4065('0x15')][_0x4065('0x94')][_0x4065('0x54')][_0x4065('0xee')]),'getCurrentRevisionId':()=>_0x500a9e},this[_0x4065('0x5f')](_0x4065('0x5d'),!0x1),this[_0x4065('0x5f')](_0x4065('0x80'),!0x0),this[_0x4065('0x5f')](_0x4065('0x75'),!0x1),this[_0x4065('0x15')][_0x4065('0x58')][_0x4065('0x5a')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x4065('0x15')][_0x4065('0xe6')]['for']('upcast')[_0x4065('0x2')]({'view':_0x4065('0x1b')});}[_0x4065('0xdb')](){this['repository']=this[_0x4065('0x15')]['plugins']['get'](_0x4065('0xeb')),this[_0x4065('0x103')](),this[_0x4065('0x15')][_0x4065('0x9c')]['on']('ready',()=>{const _0x5dce61=this['repository'][_0x4065('0x93')](0x0),_0xb97711=_0x5dce61&&null===_0x5dce61[_0x4065('0x3a')]?_0x5dce61:null;if(this['_continueCurrentRevision']=!!_0xb97711&&this[_0x4065('0x15')][_0x4065('0x58')][_0x4065('0x91')](_0x4065('0x33')),this['editor'][_0x4065('0x70')][_0x4065('0x6c')](_0x4065('0x6b'))){const _0x59355e=this[_0x4065('0x46')]['getCurrentRevisionId'](),_0x1cc419=this[_0x4065('0x4b')][_0x4065('0x93')](_0x59355e);if(_0x1cc419)this[_0x4065('0xc3')]=_0x1cc419[_0x4065('0xdd')],this[_0x4065('0xc8')]=!0x1;else{const _0x38653f=this[_0x4065('0x46')][_0x4065('0x78')][_0x4065('0xf7')][_0x4065('0xcd')](_0x3b0bcb=>!_0x3b0bcb[_0x4065('0xfc')]),_0x942021=_0x38653f?_0x38653f[_0x4065('0xdf')]:this[_0x4065('0x46')][_0x4065('0x78')][_0x4065('0xee')];_0x5dce61?(_0x5dce61[_0x4065('0x60')]<_0x942021&&_0x5dce61[_0x4065('0xab')]({'toVersion':_0x942021}),this[_0x4065('0xc8')]?(this[_0x4065('0x46')]['getCurrentRevisionId']=()=>_0xb97711['id'],this['_startingVersion']=_0xb97711[_0x4065('0xdd')]):(this[_0x4065('0xc3')]=_0x5dce61['toVersion'],this[_0x4065('0xc8')]=!0x1)):(this[_0x4065('0xc3')]=_0x942021,this[_0x4065('0xc8')]=!0x1);}}else _0xb97711&&(this[_0x4065('0x15')]['model'][_0x4065('0x54')][_0x4065('0x78')][_0x4065('0xee')]=Math[_0x4065('0x44')](_0xb97711['toVersion'],this[_0x4065('0x15')][_0x4065('0x94')][_0x4065('0x54')][_0x4065('0x78')][_0x4065('0xee')]),_0xb97711['fromVersion']===_0xb97711[_0x4065('0x60')]?(0x0!==_0xb97711[_0x4065('0xdd')]&&(this[_0x4065('0x46')][_0x4065('0xf5')]=()=>_0xb97711['id']),this[_0x4065('0xc8')]=!0x1):this['_continueCurrentRevision']&&(this[_0x4065('0x46')][_0x4065('0xf5')]=()=>_0xb97711['id'],this[_0x4065('0xc3')]=_0xb97711[_0x4065('0xdd')])),this[_0x4065('0xc8')]||(this[_0x4065('0xc3')]=this['editor'][_0x4065('0x94')][_0x4065('0x54')][_0x4065('0xee')]);this[_0x4065('0xc7')][_0x4065('0xdb')](this[_0x4065('0x46')][_0x4065('0x78')]),this[_0x4065('0x7a')](this[_0x4065('0xc3')]),this[_0x4065('0x31')](this[_0x4065('0xc3')]),this['adapter']&&this[_0x4065('0x1d')]();}),this[_0x4065('0x36')](_0x4065('0x5d'))['to'](this,_0x4065('0x75'),_0x51ff17=>!_0x51ff17);}async[_0x4065('0x16')](){if(this['repository'][_0x4065('0x12')]>0x0){const _0x1f840c=this[_0x4065('0x4b')]['getRevision'](0x0),_0x384e07=await this[_0x4065('0x9')](_0x1f840c),_0x47459e=await this[_0x4065('0x69')](_0x1f840c);this[_0x4065('0x8b')](_0x384e07,_0x47459e);}}['setSource'](_0x267720){this['_source']=_0x267720;}async[_0x4065('0x98')](){const _0x2708f7=await this[_0x4065('0x46')]['getLatestVersion']();if(_0x2708f7>this[_0x4065('0xa2')][_0x4065('0x60')]){await this[_0x4065('0x7')]();const _0x5aad9e=this[_0x4065('0x2b')]({'revision':this[_0x4065('0xa2')],'to':_0x2708f7});_0x5aad9e[_0x4065('0x2a')]=_0x5aad9e['authorsIds'][_0x4065('0x10')](_0x409d1b=>this[_0x4065('0x15')][_0x4065('0x70')][_0x4065('0x91')](_0x4065('0x41'))[_0x4065('0xb1')](_0x409d1b)),this[_0x4065('0xa2')][_0x4065('0xab')](_0x5aad9e);}}async['_loadState'](){this[_0x4065('0xc8')]&&!this['_loadedStateData']&&(await this[_0x4065('0x42')](this[_0x4065('0xa2')]),this[_0x4065('0xc7')]['loadState'](this[_0x4065('0xa2')]),this['_loadedStateData']={'fromVersion':this[_0x4065('0xa2')][_0x4065('0xdd')],'authors':this['currentRevision'][_0x4065('0x2a')][_0x4065('0x53')]()});}async[_0x4065('0x7b')](_0x4c0e1f={},_0x1a5945=null){const _0xf402fa=[];await this[_0x4065('0x7')](),this[_0x4065('0xc8')]=!0x1,_0x1a5945>this[_0x4065('0xa2')][_0x4065('0x60')]&&(_0x1a5945=null),null===_0x1a5945&&(_0x1a5945=await this[_0x4065('0x46')][_0x4065('0xf4')]());const _0x31c54a=this[_0x4065('0x39')](_0x1a5945),_0x8efd78=this[_0x4065('0x2b')]({'from':_0x31c54a,'to':_0x1a5945});if(this[_0x4065('0xa2')]['toVersion']<_0x1a5945){const _0x195b2a=this[_0x4065('0x2b')]({'revision':this[_0x4065('0xa2')],'from':_0x1a5945,'to':_0x1a5945});_0x195b2a[_0x4065('0x2a')]=[],_0x195b2a[_0x4065('0x8a')]=[],_0x195b2a['id']=this[_0x4065('0xa2')]['id'],this[_0x4065('0xa2')]['_update'](_0x195b2a,!0x0),delete _0x195b2a[_0x4065('0x2a')],_0xf402fa[_0x4065('0xff')](_0x195b2a);}_0x4c0e1f[_0x4065('0x1a')]=this[_0x4065('0x15')][_0x4065('0x70')]['get'](_0x4065('0x41'))['me']['id'],_0x4c0e1f['name']=_0x4c0e1f['name']||null,_0x4c0e1f['id']=_0x4c0e1f['id']||_0x50d016(),_0x4c0e1f={..._0x4c0e1f,..._0x8efd78};const _0x2eeb81=this[_0x4065('0xf3')](_0x4c0e1f);_0xf402fa[_0x4065('0xff')](_0x4c0e1f);const _0xea9596=this['repository'][_0x4065('0x14')](_0x2eeb81);if(0x0!==_0xea9596){const _0x21d09d=this[_0x4065('0x4b')]['getRevision'](_0xea9596-0x1);if(_0x21d09d[_0x4065('0xdd')]!==_0x1a5945){const _0x39de07=this['_revisionDataBuilder']['getData'](_0x1a5945,_0x21d09d[_0x4065('0x60')]),_0x31fdf2={'id':_0x21d09d['id'],'diffData':_0x39de07[_0x4065('0x22')],'authorsIds':_0x39de07[_0x4065('0x8a')],'authors':_0x39de07[_0x4065('0x8a')][_0x4065('0x10')](_0x5deabc=>this['editor'][_0x4065('0x70')][_0x4065('0x91')](_0x4065('0x41'))[_0x4065('0xb1')](_0x5deabc)),'fromVersion':_0x1a5945};_0x21d09d===this['currentRevision']&&(_0x31fdf2[_0x4065('0x30')]=new Date(_0x4c0e1f[_0x4065('0x30')]['getTime']()+0xa)),_0x21d09d[_0x4065('0xab')](_0x31fdf2,!0x0),delete _0x31fdf2[_0x4065('0x2a')],_0xf402fa[_0x4065('0xff')](_0x31fdf2);}}if(this[_0x4065('0x100')]){for(const _0xcc920a of _0xf402fa)this[_0x4065('0x62')](_0xcc920a['id'],_0xcc920a,!0x0);this[_0x4065('0x1d')]();}return _0x2eeb81;}[_0x4065('0xf3')](_0x20c8b4){const _0x17aa7c=this[_0x4065('0x4b')]['createRevision'](_0x20c8b4);return this[_0x4065('0x100')]&&_0x17aa7c['on'](_0x4065('0xab'),(_0xc3a53c,_0x46eaf0,_0x12248a)=>{_0x12248a||(this['_bufferUpdate'](_0x46eaf0['id'],_0x46eaf0,!0x0),this['sendBufferedUpdates']());}),this[_0x4065('0x4b')][_0x4065('0xa0')](_0x17aa7c,this[_0x4065('0x7e')](_0x17aa7c)),_0x17aa7c;}async[_0x4065('0x9')](_0x3ab669){await this[_0x4065('0x42')](_0x3ab669);const _0x4e5d30={};for(const _0x3666fa in _0x3ab669[_0x4065('0x22')]){if(_0x3ab669['diffData'][_0x3666fa][_0x4065('0x59')]&&!_0x3ab669[_0x4065('0x22')][_0x3666fa]['attachChange'][_0x4065('0xb4')])continue;const _0x407912=this[_0x4065('0x82')](JSON[_0x4065('0xfa')](_0x3ab669[_0x4065('0x22')][_0x3666fa][_0x4065('0x32')])),_0x565f56=this[_0x4065('0x15')][_0x4065('0xc0')][_0x4065('0xd3')][_0x4065('0x54')],_0x387d25=new _0x44be92(_0x565f56,_0x407912[_0x4065('0x10')](_0x5255f5=>J(_0x5255f5,this[_0x4065('0x15')])));this[_0x4065('0x15')][_0x4065('0x9c')][_0x4065('0x67')][_0x4065('0x77')](_0x4065('0x88')),_0x4e5d30[_0x3666fa]=this[_0x4065('0x15')]['data'][_0x4065('0x67')]['toData'](_0x387d25),this[_0x4065('0x15')][_0x4065('0x9c')][_0x4065('0x67')][_0x4065('0x77')](_0x4065('0xbc'));}return _0x4e5d30;}async[_0x4065('0x69')](_0x4ff29e){await this[_0x4065('0x42')](_0x4ff29e);const _0x58e43e={};for(const _0x46ed4a in _0x4ff29e[_0x4065('0x22')])_0x4ff29e[_0x4065('0x22')][_0x46ed4a][_0x4065('0x59')]&&!_0x4ff29e[_0x4065('0x22')][_0x46ed4a]['attachChange']['isAttached']||(_0x58e43e[_0x46ed4a]=_0x4ff29e['diffData'][_0x46ed4a]['attributesAfter']||{});return _0x58e43e;}['sendBufferedUpdates'](){if(0x0===this[_0x4065('0xd6')][_0x4065('0xde')])return;if(this[_0x4065('0x75')])return;let _0x595292=Array['from'](this[_0x4065('0xd6')][_0x4065('0x9a')]());this['_bufferedUpdates'][_0x4065('0x45')]();for(let _0x4084ef=0x0;_0x4084ef<_0x595292[_0x4065('0x12')];_0x4084ef++){const _0x401219=_0x595292[_0x4084ef];let _0x3bba80=!0x1;for(const _0x32aec9 of Object[_0x4065('0x64')](_0x401219))void 0x0===_0x401219[_0x32aec9]?delete _0x401219[_0x32aec9]:'id'!==_0x32aec9&&(_0x3bba80=!0x0);_0x3bba80||(_0x595292[_0x4084ef]=null);}if(_0x595292=_0x595292[_0x4065('0xd5')](_0x3c9008=>null!==_0x3c9008),!_0x595292[_0x4065('0x12')])return;for(let _0x3f7eea=0x0;_0x3f7eea<_0x595292[_0x4065('0x12')];_0x3f7eea++){const _0x14e51a=_0x595292[_0x3f7eea];void 0x0!==_0x14e51a[_0x4065('0xdd')]&&void 0x0===_0x14e51a['toVersion']&&(_0x14e51a[_0x4065('0x60')]=this['repository'][_0x4065('0x93')](_0x14e51a['id'])[_0x4065('0x60')]),void 0x0!==_0x14e51a['toVersion']&&void 0x0===_0x14e51a['fromVersion']&&(_0x14e51a['fromVersion']=this[_0x4065('0x4b')]['getRevision'](_0x14e51a['id'])[_0x4065('0xdd')]);}const _0x4fd471=this[_0x4065('0x15')]['config'][_0x4065('0x91')]('collaboration.channelId');this[_0x4065('0x75')]=!0x0,this['_addPendingAction'](),this[_0x4065('0x100')][_0x4065('0x6')](_0x595292,_0x4fd471)['finally'](()=>{this[_0x4065('0x75')]=!0x1;})['then'](_0x45849f=>{if(_0x45849f)for(const _0xf3cd61 of _0x45849f)this[_0x4065('0x1f')]({'id':_0xf3cd61['id'],'createdAt':_0xf3cd61[_0x4065('0x30')]});this[_0x4065('0xac')](),this['sendBufferedUpdates']();});}[_0x4065('0x8b')](_0x3f042f,_0x52715c){let _0x2638fd=this[_0x4065('0x15')][_0x4065('0x58')][_0x4065('0x91')]('initialData'),_0x7d787a=this['editor'][_0x4065('0x58')][_0x4065('0x91')](_0x4065('0xb3'));if(void 0x0===_0x2638fd){_0x2638fd={};for(const _0xaea37 of this[_0x4065('0x15')][_0x4065('0x94')]['document']['getRootNames']())_0x2638fd[_0xaea37]='';}if(_0x4065('0x2d')==typeof _0x2638fd&&(_0x2638fd={'main':_0x2638fd}),void 0x0===_0x7d787a){_0x7d787a={};for(const _0x569c3a of this[_0x4065('0x15')][_0x4065('0x94')][_0x4065('0x54')][_0x4065('0xe7')]())_0x7d787a[_0x569c3a]={};}let _0x470439=!0x1;const _0x127753=Object[_0x4065('0x64')](_0x2638fd),_0x3ce391=Object[_0x4065('0x64')](_0x3f042f);for(const _0x1bfdd7 of _0x127753){if(_0x2638fd[_0x1bfdd7]!==_0x3f042f[_0x1bfdd7]&&''!==_0x2638fd[_0x1bfdd7][_0x4065('0x9b')]()){_0x470439=!0x0;break;}if(!_0x25181f(_0x7d787a[_0x1bfdd7],_0x52715c[_0x1bfdd7])&&Object[_0x4065('0x64')](_0x7d787a[_0x1bfdd7])[_0x4065('0x12')]>0x0){_0x470439=!0x0;break;}}_0x470439||(_0x470439=_0x3ce391[_0x4065('0xa9')](_0x3cd01e=>!this['editor'][_0x4065('0x94')][_0x4065('0x54')][_0x4065('0x1e')](_0x3cd01e))),_0x470439&&_0x6c823(_0x4065('0xa4'),{'editorData':_0x2638fd,'editorRootsAttributes':_0x7d787a,'revisionData':_0x3f042f,'revisionRootsAttributes':_0x52715c}),this['editor'][_0x4065('0x58')][_0x4065('0x5f')](_0x4065('0x37'),_0x3f042f),this[_0x4065('0x15')][_0x4065('0x58')][_0x4065('0x5f')](_0x4065('0xb3'),_0x52715c);}[_0x4065('0x7c')](){if(!this[_0x4065('0xbb')]){const _0x4e746c=this[_0x4065('0x15')][_0x4065('0x70')]['get'](_0x4065('0xea'));this[_0x4065('0xbb')]=_0x4e746c[_0x4065('0x3c')](_0x3a6ea8(this[_0x4065('0x15')][_0x4065('0xfe')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x4065('0xac')](){this[_0x4065('0xbb')]&&(this[_0x4065('0x15')]['plugins'][_0x4065('0x91')](_0x4065('0xea'))[_0x4065('0x4c')](this[_0x4065('0xbb')]),this[_0x4065('0xbb')]=null);}[_0x4065('0x7e')](_0x112e0b){const _0x44ab74=this[_0x4065('0x4b')][_0x4065('0xe8')]();_0x44ab74['reverse']();let _0x1d83e4=0x0;for(;_0x1d83e4<_0x44ab74[_0x4065('0x12')];){const _0x538da4=_0x44ab74[_0x1d83e4];if(_0x538da4===this[_0x4065('0xa2')]){_0x1d83e4++;continue;}if(_0x538da4['id']===this[_0x4065('0x8f')])break;const _0x3d2a0=_0x112e0b[_0x4065('0x60')]-_0x538da4['toVersion']||_0x112e0b[_0x4065('0xdd')]-_0x538da4['fromVersion'];if(_0x3d2a0>0x0)break;if(_0x3d2a0<0x0)_0x1d83e4++;else{if(!_0x112e0b[_0x4065('0x3a')]&&_0x538da4[_0x4065('0x3a')])break;if(_0x538da4[_0x4065('0x3a')]||!_0x112e0b['creator']){if(_0x112e0b[_0x4065('0x30')]>_0x538da4[_0x4065('0x30')])break;_0x1d83e4++;}else _0x1d83e4++;}}return _0x1d83e4;}[_0x4065('0x1f')](_0x18ec86){const _0x71bf9b=this['repository'][_0x4065('0x93')](_0x18ec86['id']);if(_0x18ec86[_0x4065('0x30')]&&(_0x18ec86[_0x4065('0x30')]=new Date(_0x18ec86['createdAt'])),_0x18ec86[_0x4065('0x8a')]){const _0x410258=this[_0x4065('0x15')][_0x4065('0x70')][_0x4065('0x91')]('Users');_0x18ec86[_0x4065('0x2a')]=_0x18ec86[_0x4065('0x8a')]['map'](_0x2b15f0=>_0x410258['getUser'](_0x2b15f0));}_0x71bf9b[_0x4065('0xab')](_0x18ec86,!0x0);}['buildRevisionData']({revision:_0x4180c0=null,from:_0x4df7a1=null,to:_0x596deb=null}){_0x4df7a1=null!==_0x4df7a1?_0x4df7a1:_0x4180c0['fromVersion'],_0x596deb=null!==_0x596deb?_0x596deb:_0x4180c0['toVersion'];const _0x3b43f8=this[_0x4065('0xc7')][_0x4065('0xa6')](_0x4df7a1,_0x596deb),_0x5e1f0c={'diffData':_0x3b43f8[_0x4065('0x22')],'authorsIds':_0x3b43f8[_0x4065('0x8a')],'fromVersion':_0x4df7a1,'toVersion':_0x596deb};if(!_0x4180c0||_0x596deb!==_0x4180c0[_0x4065('0x60')]){const _0x408337=_0x596deb-0x1,_0x32ddc7=this[_0x4065('0x46')][_0x4065('0x78')]['getOperation'](_0x408337);_0x5e1f0c[_0x4065('0x30')]=_0x32ddc7&&_0x32ddc7['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4df7a1===this[_0x4065('0x49')]['fromVersion'])for(const _0x3287fc of this[_0x4065('0x49')]['authors'])_0x5e1f0c[_0x4065('0x8a')][_0x4065('0xd0')](_0x3287fc['id'])||_0x5e1f0c['authorsIds']['push'](_0x3287fc['id']);return _0x5e1f0c;}[_0x4065('0x42')](_0x4da157){if(!_0x4da157||_0x4da157[_0x4065('0x22')])return Promise['resolve']();{const _0x15efff=this[_0x4065('0x15')]['config'][_0x4065('0x91')](_0x4065('0x8c'));return this[_0x4065('0x100')][_0x4065('0x93')]({'channelId':_0x15efff,'revisionId':_0x4da157['id']})[_0x4065('0x102')](_0x468034=>{_0x4da157['diffData']=_0x468034['diffData'];});}}[_0x4065('0x62')](_0x5a041a,_0x1912b3,_0x4f0748){if(this[_0x4065('0xd6')][_0x4065('0x6c')](_0x5a041a)){const _0xff5659=this['_bufferedUpdates'][_0x4065('0x91')](_0x5a041a);_0x1912b3=_0x4f0748?{..._0xff5659,..._0x1912b3}:{..._0x1912b3,..._0xff5659};}this[_0x4065('0xd6')]['set'](_0x5a041a,_0x1912b3);}[_0x4065('0x39')](_0x12df6b){const _0xe93c0e=this[_0x4065('0x4b')]['getRevisions']();_0xe93c0e['reverse'](),_0xe93c0e['shift']();const _0x12685a=_0xe93c0e[_0x4065('0xcd')](_0x43646b=>_0x43646b[_0x4065('0x60')]<=_0x12df6b)['toVersion'];return _0x12685a<this[_0x4065('0xc3')]?this[_0x4065('0xc3')]:_0x12685a;}['_createInitialRevision'](_0x14d725){const _0x10fb4f=this[_0x4065('0x4b')][_0x4065('0x93')](this[_0x4065('0x4b')][_0x4065('0x12')]-0x1);if(_0x10fb4f)this[_0x4065('0x8f')]=_0x10fb4f['id'];else{const _0x4913f6=!this[_0x4065('0x15')][_0x4065('0x94')][_0x4065('0x54')][_0x4065('0x3f')][_0x4065('0xcd')](_0x12b896=>this[_0x4065('0x15')][_0x4065('0x94')]['hasContent'](_0x12b896)),_0x1482cd=this[_0x4065('0x15')][_0x4065('0x70')][_0x4065('0x91')](_0x4065('0x41'))['me']['id'],_0x93847c=_0x3a6ea8(this[_0x4065('0x15')][_0x4065('0xfe')],_0x4913f6?_0x4065('0x17'):_0x4065('0x84'));this[_0x4065('0x11')]({'from':_0x14d725,'to':_0x14d725,'id':this[_0x4065('0x8f')],'name':_0x93847c,'creatorId':_0x1482cd});}}[_0x4065('0x31')](_0x41f236){const _0x2171a4=this['_source'][_0x4065('0xf5')]();this[_0x4065('0xa2')]=this[_0x4065('0x4b')]['getRevision'](_0x2171a4),this[_0x4065('0xa2')]||(this[_0x4065('0xa2')]=this['_makeRevision']({'from':_0x41f236,'to':_0x41f236,'id':_0x2171a4,'name':'','creatorId':null}));}['_makeRevision']({name:_0x57485f,from:_0x65cfd7,to:_0x2a06df,creatorId:_0x3a0685,id:_0x48b068}){const _0x2214be=this['buildRevisionData']({'from':_0x65cfd7,'to':_0x2a06df});_0x2214be[_0x4065('0x38')]=_0x57485f,_0x2214be[_0x4065('0x1a')]=_0x3a0685,_0x2214be['id']=_0x48b068;const _0x3bff80=this[_0x4065('0xf3')](_0x2214be);return this[_0x4065('0x100')]&&this[_0x4065('0x62')](_0x2214be['id'],_0x2214be,!0x0),_0x3bff80;}[_0x4065('0x103')](){this[_0x4065('0x15')][_0x4065('0xe6')][_0x4065('0x51')](_0x4065('0x79'))[_0x4065('0x25')]({'model':'revision'});}[_0x4065('0x82')](_0x25e824){return(_0x25e824=_0x25e824[_0x4065('0xd5')](_0x1cd043=>!_0x1cd043[_0x4065('0x38')]||_0x4065('0x2e')!==_0x1cd043['name']&&_0x4065('0x81')!==_0x1cd043[_0x4065('0x38')]))[_0x4065('0x87')](_0x255481=>{_0x4065('0x2d')!=typeof _0x255481&&(_0x255481['children']=this[_0x4065('0x82')](_0x255481[_0x4065('0x1c')]),_0x255481['attributes']=_0x255481[_0x4065('0xc6')][_0x4065('0xd5')](_0x411df7=>!_0x411df7[0x0]['startsWith']('data-revision-')));}),_0x25e824;}}function J(_0x52c977,_0x1b8798){const _0x237819=_0x1b8798['editing'][_0x4065('0xd3')]['document'];if(_0x4065('0x2d')==typeof _0x52c977)return new _0x93ba7b(_0x237819,_0x52c977);{const _0x11d53e=_0x52c977[_0x4065('0x1c')][_0x4065('0x10')](_0x51446b=>J(_0x51446b,_0x1b8798));return new(B[_0x52c977['type']]||_0x3ec5fb)(_0x237819,_0x52c977[_0x4065('0x38')],_0x52c977[_0x4065('0xc6')],_0x11d53e);}}class H{constructor(_0x403e53){this['editor']=_0x403e53,this[_0x4065('0xed')]=new Map(),this[_0x4065('0xb0')]=-0x1,this[_0x4065('0x43')]=-0x1,this[_0x4065('0xe1')]=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this[_0x4065('0x76')]=new Map(),this['_idsRoots']=new Map(),this[_0x4065('0x4')]=new Map(),this[_0x4065('0xc9')]=new Map(),this[_0x4065('0x57')]=new Map(),this[_0x4065('0x74')]=new Map(),this[_0x4065('0xfb')]=0x1;}[_0x4065('0xdb')](_0x1fd877){this['source']=_0x1fd877;const _0x5853bb=new Map(),_0x541a43=new Map(),_0x422d37=this[_0x4065('0x15')]['model'][_0x4065('0x54')]['roots']['map'](_0x43dd05=>_0x43dd05[_0x4065('0xba')]);for(const _0x2c7532 of _0x422d37){const _0x4d535c=this[_0x4065('0x15')][_0x4065('0x94')][_0x4065('0x54')][_0x4065('0x1e')](_0x2c7532),_0x3b0380=q(_0x4d535c);_0x5853bb['set'](_0x2c7532,_0x3b0380),_0x541a43['set'](_0x2c7532,Object[_0x4065('0x71')](_0x4d535c['getAttributes']()));}const _0x1f6530=Array[_0x4065('0x40')](this[_0x4065('0x15')]['model'][_0x4065('0xad')])[_0x4065('0x10')](_0x12d76d=>[_0x12d76d[_0x4065('0x38')],_0x12d76d[_0x4065('0xaf')]()]),_0x17bc5f=this['source'][_0x4065('0xee')];this[_0x4065('0xa7')](_0x17bc5f,_0x5853bb,_0x1f6530,_0x541a43),this[_0x4065('0xd9')]=this[_0x4065('0xfb')];const _0x805e2d=new Map(),_0x5bbab3=new Map();for(const _0x5905df of _0x422d37){const _0x4edca4=G(_0x5905df);_0x805e2d['set'](_0x5905df,_0x4edca4),_0x5bbab3[_0x4065('0x5f')](_0x5905df,{});}this[_0x4065('0xa7')](Number[_0x4065('0x47')],_0x805e2d,[],_0x5bbab3);}['getData'](_0x696022,_0x2075e8){if(this['_lastFrom']===_0x696022&&this[_0x4065('0x43')]<=_0x2075e8)this[_0x4065('0xed')][_0x4065('0xde')]>0x1&&this[_0x4065('0xb')](this['_lastTo']),this[_0x4065('0xb2')](this[_0x4065('0x43')],_0x2075e8,!0x0);else{if(!this[_0x4065('0xed')][_0x4065('0x6c')](_0x696022)){const _0x56cbd1=this[_0x4065('0x97')](_0x696022);this[_0x4065('0xcb')](_0x56cbd1,_0x696022,!0x1);}this[_0x4065('0xcb')](_0x696022,_0x2075e8,!0x0);}return this[_0x4065('0xb0')]=_0x696022,this[_0x4065('0x43')]=_0x2075e8,this['_getState']();}['loadState'](_0x451b38){this['_reset'](),this[_0x4065('0xb0')]=_0x451b38[_0x4065('0xdd')],this[_0x4065('0x43')]=_0x451b38[_0x4065('0x60')];for(const _0x1a1aef in _0x451b38['diffData']){const _0x158419=_0x451b38[_0x4065('0x22')][_0x1a1aef][_0x4065('0x59')],_0x28f9f1=_0x27fc92(_0x451b38[_0x4065('0x22')][_0x1a1aef][_0x4065('0x50')])||{},_0x1b48e7=this[_0x4065('0x3b')](_0x451b38[_0x4065('0x22')][_0x1a1aef][_0x4065('0x85')]);_0x1b48e7[_0x4065('0xba')]=_0x1a1aef,_0x1b48e7[_0x4065('0x104')]=!_0x158419||!_0x158419['isAttached'],_0x1b48e7[_0x4065('0xb4')]=()=>_0x1b48e7[_0x4065('0x104')],this['_baseRoots'][_0x4065('0x5f')](_0x1a1aef,_0x1b48e7),this[_0x4065('0x76')][_0x4065('0x5f')](_0x1a1aef,_0x28f9f1),_0x158419&&this[_0x4065('0x74')][_0x4065('0x5f')](_0x1a1aef,_0x158419);const _0x70f56e=this[_0x4065('0xd8')](_0x1b48e7);this['_baseIdsRoots'][_0x4065('0x5f')](_0x1a1aef,_0x70f56e);for(const [_0x526e6f,_0x35bcf0]of _0x1b48e7['markers']){if(!_0x526e6f[_0x4065('0x21')]('revision:'))continue;const _0x1651c1=_0x526e6f[_0x4065('0x24')](':')[0x2];for(const _0x41d891 of _0x35bcf0['getWalker']({'singleCharacters':!0x0})){const _0x2d5b33=this[_0x4065('0x92')](_0x41d891),_0xe5e0e9=_0x4065('0x5b')==_0x41d891[_0x4065('0xf6')]?_0x41d891[_0x4065('0x29')][_0x4065('0x34')][_0x4065('0x53')](0x0,-0x1):_0x41d891[_0x4065('0x29')]['path'],_0x47db3a=_0x70f56e[_0x4065('0x48')](_0xe5e0e9)[_0x4065('0x89')](_0x2d5b33);this[_0x4065('0xc9')][_0x4065('0x5f')](_0x47db3a,{'userId':_0x1651c1});}}}this['_startingRevisionId']=this['_revisionId'];const _0x269a15=[...Array(this[_0x4065('0xfb')])['keys']()][_0x4065('0x53')](0x1)['filter'](_0x1fea6a=>!this[_0x4065('0xc9')]['has'](_0x1fea6a));let _0x10c556=0x0;const _0x191555=new Map();for(const _0x8c6cca in _0x451b38['diffData']){const _0x433920=_0x451b38['diffData'][_0x8c6cca][_0x4065('0x59')],_0xbc6fd3=_0x27fc92(_0x451b38[_0x4065('0x22')][_0x8c6cca][_0x4065('0x95')])||{},_0x3854b1=this[_0x4065('0x3b')](_0x451b38[_0x4065('0x22')][_0x8c6cca][_0x4065('0x32')]);_0x3854b1[_0x4065('0xba')]=_0x8c6cca,_0x3854b1[_0x4065('0x104')]=!_0x433920||_0x433920[_0x4065('0xb4')],_0x3854b1[_0x4065('0xb4')]=()=>_0x3854b1['_isAttached'],this[_0x4065('0xbe')]['set'](_0x8c6cca,_0x3854b1),this[_0x4065('0x68')][_0x4065('0x5f')](_0x8c6cca,_0xbc6fd3);const _0x1af81f=this[_0x4065('0xd8')](_0x3854b1,Number[_0x4065('0x47')]);this['_idsRoots'][_0x4065('0x5f')](_0x8c6cca,_0x1af81f),_0x191555[_0x4065('0x5f')](_0x8c6cca,_0x3854b1[_0x4065('0xb4')]()?_0xbc6fd3:{});for(const [_0x46322b,_0x2ebfaa]of _0x3854b1[_0x4065('0xad')]){if(!_0x46322b['startsWith'](_0x4065('0x2f')))continue;const _0x4a92b7=_0x46322b[_0x4065('0x24')](':')[0x2];for(const _0x27c4ae of _0x2ebfaa[_0x4065('0xfd')]({'singleCharacters':!0x0})){const _0x4b291c=this[_0x4065('0x92')](_0x27c4ae),_0xfaf27c=this[_0x4065('0xfb')]++,_0x19ac59=_0x4065('0x5b')==_0x27c4ae[_0x4065('0xf6')]?_0x27c4ae[_0x4065('0x29')][_0x4065('0x34')][_0x4065('0x53')](0x0,-0x1):_0x27c4ae['previousPosition'][_0x4065('0x34')];_0x1af81f['getNodeByPath'](_0x19ac59)[_0x4065('0x56')](_0x4b291c,_0xfaf27c),this[_0x4065('0xc9')][_0x4065('0x5f')](_0xfaf27c,{'userId':_0x4a92b7});}}for(const _0x117f41 of this['editor'][_0x4065('0x94')][_0x4065('0x5c')](_0x3854b1)[_0x4065('0xfd')]({'singleCharacters':!0x0})){const _0x4ec99a=this[_0x4065('0x92')](_0x117f41),_0x45d22d=_0x4065('0x5b')==_0x117f41[_0x4065('0xf6')]?_0x117f41[_0x4065('0x29')][_0x4065('0x34')]['slice'](0x0,-0x1):_0x117f41[_0x4065('0x29')][_0x4065('0x34')],_0x2a3d24=_0x1af81f['getNodeByPath'](_0x45d22d);_0x2a3d24[_0x4065('0x89')](_0x4ec99a)>0x0||_0x2a3d24[_0x4065('0x56')](_0x4ec99a,_0x269a15[_0x10c556++]);}for(const [_0x217b26,_0x1b9360]of _0x3854b1[_0x4065('0xad')])_0x217b26[_0x4065('0x21')](_0x4065('0x2f'))||this[_0x4065('0xe1')]['set'](_0x217b26,_0x1b9360);}const _0x290b6=G(_0x4065('0xb7'));this[_0x4065('0x5e')]['set'](_0x4065('0xb7'),_0x290b6),this[_0x4065('0x4')][_0x4065('0x5f')](_0x4065('0xb7'),this[_0x4065('0xd8')](_0x290b6,0x1));const _0x43960b=G(_0x4065('0xb7'));this['_diffRoots']['set']('$graveyard',_0x43960b),this['_idsRoots'][_0x4065('0x5f')](_0x4065('0xb7'),this[_0x4065('0xd8')](_0x43960b,0x1));const _0x148c04=Array[_0x4065('0x40')](this[_0x4065('0xbe')])[_0x4065('0x10')](([_0x27f22b,_0x769cf])=>[_0x27f22b,q(_0x769cf)]);this['_saveMetaData'](this['_lastTo'],_0x148c04,this['_markers'],_0x191555);}[_0x4065('0x3b')](_0x2f8da3){const _0x17aaf6=JSON[_0x4065('0xfa')](_0x2f8da3),_0x1b4e74=this['editor'][_0x4065('0xc0')]['view'][_0x4065('0x54')],_0x59c291=new _0x44be92(_0x1b4e74,_0x17aaf6[_0x4065('0x10')](_0x7abd6b=>J(_0x7abd6b,this[_0x4065('0x15')])));return this[_0x4065('0x15')]['data'][_0x4065('0xa1')](_0x59c291);}['_saveMetaData'](_0x302191,_0x4e4424,_0x22c1cf,_0x360b6f){const _0x15c840=new Map(_0x4e4424),_0x375771=new Map(_0x27fc92(_0x360b6f)),_0x3e971d=new Map();for(const [_0x420e24,_0x1c4695]of _0x22c1cf)_0x3e971d['set'](_0x420e24,{'start':_0x1c4695['start'][_0x4065('0x6d')](),'end':_0x1c4695['end'][_0x4065('0x6d')](),'rootName':_0x1c4695[_0x4065('0xb5')]['rootName']});this[_0x4065('0xed')]['set'](_0x302191,{'roots':_0x15c840,'markers':_0x3e971d,'rootsAttributes':_0x375771});}[_0x4065('0xb')](_0xfe605a){this[_0x4065('0xed')][_0x4065('0xca')](_0xfe605a);}[_0x4065('0x6e')](){this['_reset'](),this[_0x4065('0xb0')]=-0x1,this[_0x4065('0x43')]=-0x1,this[_0x4065('0xed')][_0x4065('0x45')](),this['init'](this[_0x4065('0x8e')]);}[_0x4065('0xe9')](){this[_0x4065('0xc9')][_0x4065('0x45')](),this[_0x4065('0x57')][_0x4065('0x45')](),this[_0x4065('0x74')][_0x4065('0x45')](),this[_0x4065('0xbe')]['clear'](),this[_0x4065('0x68')][_0x4065('0x45')](),this[_0x4065('0x5e')][_0x4065('0x45')](),this[_0x4065('0x76')][_0x4065('0x45')](),this[_0x4065('0xdc')][_0x4065('0x45')](),this['_baseIdsRoots'][_0x4065('0x45')](),this['_markers'][_0x4065('0x45')](),this[_0x4065('0xfb')]=0x1,this['_startingRevisionId']=this[_0x4065('0xfb')];}[_0x4065('0xd8')](_0x114af8,_0x1c813e=null){let _0x22e4b8=null;_0x114af8['is'](_0x4065('0x18'))||(_0x22e4b8=new _0x43e22b(_0x114af8['name'],{'vid_start':null===_0x1c813e?this[_0x4065('0xfb')]++:_0x1c813e++}));const _0x203dc3=[];for(const _0x576ed3 of _0x114af8[_0x4065('0xbf')]())if(_0x576ed3['is'](_0x4065('0x9f'))){_0x203dc3[_0x4065('0xff')](this['_makeIdsRoot'](_0x576ed3,_0x1c813e));const _0x5d8b88=_0x203dc3[_0x203dc3[_0x4065('0x12')]-0x1];null!==_0x1c813e&&(_0x1c813e=_0x5d8b88['is'](_0x4065('0x9f'),_0x4065('0x7f'))?_0x5d8b88[_0x4065('0x89')]('vid')+0x1:_0x5d8b88[_0x4065('0x89')](_0x4065('0xe3'))+0x1);}else for(let _0x4e5ca4=0x0;_0x4e5ca4<_0x576ed3['offsetSize'];_0x4e5ca4++)_0x203dc3[_0x4065('0xff')](new _0x43e22b(_0x4065('0x7f'),{'vid':null===_0x1c813e?this['_revisionId']++:_0x1c813e++}));if(_0x114af8['is'](_0x4065('0x18'))){const _0x599732=G(_0x114af8[_0x4065('0xba')]);return _0x599732[_0x4065('0xb6')](0x0,_0x203dc3),_0x599732;}return _0x22e4b8[_0x4065('0x56')](_0x4065('0xe3'),null===_0x1c813e?this[_0x4065('0xfb')]++:_0x1c813e++),_0x22e4b8[_0x4065('0xb6')](0x0,_0x203dc3),_0x22e4b8;}[_0x4065('0xcb')](_0x1d4723,_0x36a87b,_0x1b53a2){this[_0x4065('0xe9')]();const {roots:_0x28c709,markers:_0xdb238f,rootsAttributes:_0x3a2900}=this['_savedMetaData'][_0x4065('0x91')](_0x1d4723);this[_0x4065('0x5e')]=new Map(_0x28c709),this[_0x4065('0x76')]=new Map(_0x27fc92(_0x3a2900));for(const [_0x3fb5d1,_0x5d1ce8]of this[_0x4065('0x5e')])if(_0x4065('0xb7')!==_0x3fb5d1&&(this[_0x4065('0xbe')][_0x4065('0x5f')](_0x3fb5d1,q(_0x5d1ce8)),this['_diffRootsAttributes']=new Map(_0x27fc92(_0x3a2900)),_0x1b53a2)){const _0x31bc17=this[_0x4065('0xfb')];this['_idsRoots'][_0x4065('0x5f')](_0x3fb5d1,this[_0x4065('0xd8')](_0x5d1ce8)),this['_baseIdsRoots']['set'](_0x3fb5d1,this[_0x4065('0xd8')](_0x5d1ce8,_0x31bc17));}this[_0x4065('0xd9')]=this[_0x4065('0xfb')],this[_0x4065('0xbe')]['set']('$graveyard',q(this['_baseRoots'][_0x4065('0x91')](_0x4065('0xb7')))),_0x1b53a2&&this[_0x4065('0xdc')][_0x4065('0x5f')](_0x4065('0xb7'),this[_0x4065('0xd8')](this[_0x4065('0x5e')][_0x4065('0x91')](_0x4065('0xb7'))));for(const [_0x26b223,_0x2630d3]of _0xdb238f){const _0x119e68=this[_0x4065('0x5e')][_0x4065('0x91')](_0x2630d3[_0x4065('0xba')]),_0x43576f=this['_diffRoots'][_0x4065('0x91')](_0x2630d3[_0x4065('0xba')]),_0x23634e=new _0x369295(this[_0x4065('0x7d')](_0x2630d3[_0x4065('0xf1')],_0x119e68),this['_fixPosition'](_0x2630d3[_0x4065('0xe4')],_0x119e68)),_0x56477c=this[_0x4065('0x66')](_0x23634e,_0x43576f);_0x119e68[_0x4065('0xad')]['set'](_0x26b223,_0x23634e),this[_0x4065('0xe1')][_0x4065('0x5f')](_0x26b223,_0x56477c);}this[_0x4065('0xb2')](_0x1d4723,_0x36a87b,_0x1b53a2);}['_applyOperations'](_0x44167e,_0x17a5ec,_0xc8c85){for(const _0x175866 of this[_0x4065('0x8e')]['getOperations'](_0x44167e,_0x17a5ec))this[_0x4065('0x26')](_0x175866,_0xc8c85);for(const _0xfe548d of this[_0x4065('0xbe')][_0x4065('0x9a')]())_0xfe548d[_0x4065('0xad')][_0x4065('0x45')]();for(const [_0x49d591,_0x3e1041]of this[_0x4065('0xe1')]){this[_0x4065('0xbe')][_0x4065('0x91')](_0x3e1041[_0x4065('0xb5')][_0x4065('0xba')])[_0x4065('0xad')][_0x4065('0x5f')](_0x49d591,_0x3e1041[_0x4065('0x6d')]());}const _0x525568=new Map(),_0x3797ff=new Map();for(const [_0x4fccca,_0x3112c3]of this[_0x4065('0xbe')])_0x525568['set'](_0x4fccca,q(_0x3112c3)),_0x3797ff[_0x4065('0x5f')](_0x4fccca,this[_0x4065('0x68')]['get'](_0x4fccca));this[_0x4065('0xa7')](_0x17a5ec,_0x525568,this[_0x4065('0xe1')],_0x3797ff);}['_getPreviousFrom'](_0x427cd0){const _0x48aff1=Array['from'](this[_0x4065('0xed')]['keys']());_0x48aff1[_0x4065('0xce')]((_0xff3a4b,_0x4714b4)=>_0xff3a4b-_0x4714b4),_0x48aff1[_0x4065('0x63')]();for(const _0x27eb18 of _0x48aff1)if(_0x27eb18<_0x427cd0)return _0x27eb18;return Number[_0x4065('0x47')];}['_copyMarkers'](_0x569243,_0x2235d8){const _0x2f46f3=Array[_0x4065('0x40')](_0x2235d8[_0x4065('0xad')])[_0x4065('0x10')](([_0x2bf613,_0x2547fd])=>[_0x2bf613,this[_0x4065('0x66')](_0x2547fd,_0x569243)]);_0x569243['markers']=new Map(_0x2f46f3);}['_transformMarkers'](_0x2fed7f){for(const _0x3791de of this[_0x4065('0xe1')][_0x4065('0x9a')]()){const _0x13a83b=_0x3791de[_0x4065('0xcf')](_0x2fed7f),_0x5b6eb8=_0x369295[_0x4065('0x4e')](_0x13a83b);_0x3791de[_0x4065('0xf1')]=_0x5b6eb8[_0x4065('0xf1')],_0x3791de['end']=_0x5b6eb8[_0x4065('0xe4')];}}[_0x4065('0x26')](_0x3b5cd3,_0x358fff){if('addRoot'==_0x3b5cd3['type']||_0x4065('0xc4')==_0x3b5cd3[_0x4065('0xf6')])return void this['_handleRootOperation'](_0x3b5cd3,_0x358fff);if(_0x4065('0xf8')==_0x3b5cd3[_0x4065('0xf6')]){const _0x15c65a=_0x3b5cd3[_0x4065('0x27')][_0x4065('0xb5')]['rootName'];this[_0x4065('0xbe')]['has'](_0x15c65a)||(this[_0x4065('0xbe')]['set'](_0x15c65a,G(_0x15c65a,!0x0)),this['_diffRootsAttributes'][_0x4065('0x5f')](_0x15c65a,{}),_0x358fff&&this[_0x4065('0xdc')][_0x4065('0x5f')](_0x15c65a,G(_0x15c65a,!0x0)));}else{if('addRootAttribute'==_0x3b5cd3[_0x4065('0xf6')]||_0x4065('0x55')==_0x3b5cd3[_0x4065('0xf6')]||_0x4065('0xf')==_0x3b5cd3['type'])return void this[_0x4065('0xe0')](_0x3b5cd3);}const _0x4a14c7=this[_0x4065('0xd1')](_0x3b5cd3,this['_diffRoots']);if('marker'!==_0x3b5cd3[_0x4065('0xf6')]&&(_0x4a14c7[_0x4065('0x6a')](),this[_0x4065('0x4f')](_0x4a14c7)),_0x358fff)switch(_0x4a14c7['type']){case'insert':this['_handleInsertOperation'](_0x3b5cd3);break;case _0x4065('0x3'):case _0x4065('0x4c'):case _0x4065('0xe'):this[_0x4065('0x90')](_0x3b5cd3);break;case _0x4065('0xb8'):this[_0x4065('0x3d')](_0x3b5cd3);break;case _0x4065('0x24'):this[_0x4065('0xd7')](_0x3b5cd3);break;case _0x4065('0xec'):this[_0x4065('0xbd')](_0x3b5cd3);}}[_0x4065('0xd1')](_0x3c6da0,_0x11efd5){const _0x3a5a22=_0x3c6da0[_0x4065('0x6d')]();return _0x3a5a22[_0x4065('0xaa')]=_0x3c6da0['_authorId'],this[_0x4065('0xa3')](_0x3a5a22,_0x11efd5),_0x3a5a22;}[_0x4065('0xa5')](_0x2de6c8){return _0x2de6c8[_0x4065('0x10')](_0xdf99fd=>{const _0x5ac51f=this[_0x4065('0x92')](_0xdf99fd);return Number(_0xdf99fd[_0x4065('0x3e')][_0x4065('0x89')](_0x5ac51f));});}[_0x4065('0xe2')](_0x594d8,_0x4cf830){if(_0x594d8['is']('element','$text'))_0x4cf830[_0x4065('0xff')]({'item':_0x594d8,'type':'text'});else{_0x594d8['is'](_0x4065('0x9f'))&&_0x4cf830[_0x4065('0xff')]({'item':_0x594d8,'type':'elementStart'});for(const _0x2fc4cf of _0x594d8[_0x4065('0xbf')]())this[_0x4065('0xe2')](_0x2fc4cf,_0x4cf830);_0x594d8['is']('element')&&_0x4cf830['push']({'item':_0x594d8,'type':_0x4065('0x5b')});}return _0x4cf830;}[_0x4065('0x13')](){const _0x1214e9=new Map(this['_touched']),_0x37e371=new Map(_0x1214e9),_0x5e2216=new Map(),_0x24fbf3={'insertions':{},'deletions':{}},_0x101a3b={'insertions':{},'deletions':{}},_0x42737d=new Map(),_0x3423d6=new Set([...this[_0x4065('0x5e')][_0x4065('0x64')](),...this[_0x4065('0xbe')][_0x4065('0x64')]()]);_0x3423d6[_0x4065('0xca')](_0x4065('0xb7'));for(const _0xc4ebbb of _0x3423d6){const _0x3ee8a0=this[_0x4065('0xbe')][_0x4065('0x91')](_0xc4ebbb)||G(_0xc4ebbb,!0x1),_0x3d3c9c=this[_0x4065('0x5e')][_0x4065('0x91')](_0xc4ebbb)||G(_0xc4ebbb,!0x1);_0x3ee8a0['isAttached']()||_0x3d3c9c[_0x4065('0xb4')]()?(_0x24fbf3['insertions'][_0xc4ebbb]=q(_0x3ee8a0),_0x24fbf3[_0x4065('0x85')][_0xc4ebbb]=q(_0x3d3c9c),this[_0x4065('0x99')](_0x24fbf3[_0x4065('0x85')][_0xc4ebbb],_0x3d3c9c),this[_0x4065('0x99')](_0x24fbf3[_0x4065('0x32')][_0xc4ebbb],_0x3ee8a0),_0x101a3b[_0x4065('0x32')][_0xc4ebbb]=this[_0x4065('0xe2')](this[_0x4065('0xdc')][_0x4065('0x91')](_0xc4ebbb),[]),_0x101a3b[_0x4065('0x85')][_0xc4ebbb]=this['_generateTape'](this[_0x4065('0x4')]['get'](_0xc4ebbb)||G(_0xc4ebbb,!0x1),[])):_0x3423d6[_0x4065('0xca')](_0xc4ebbb);}for(const _0x30863f of _0x3423d6){const _0x11e969=_0x101a3b[_0x4065('0x32')][_0x30863f];for(const _0x1e7cfd of _0x11e969){const _0xbfa8a1=this[_0x4065('0x92')](_0x1e7cfd),_0x5e6648=_0x1e7cfd[_0x4065('0x3e')]['getAttribute'](_0xbfa8a1);_0x37e371[_0x4065('0xca')](_0x5e6648),_0x5e6648>=this[_0x4065('0xd9')]&&_0x5e2216[_0x4065('0x5f')](_0x5e6648,_0x1214e9[_0x4065('0x91')](_0x5e6648));}}for(const _0x3bb2e0 of _0x3423d6){const _0x53d7e5=_0x101a3b[_0x4065('0x32')][_0x3bb2e0],_0x1b4824=this['_getBaseVids'](_0x101a3b[_0x4065('0x85')][_0x3bb2e0]);let _0x45318d=0x0;for(const _0x17b9bf of _0x53d7e5){const _0x266237=this['_getVidAttributeName'](_0x17b9bf),_0x48eed0=_0x17b9bf[_0x4065('0x3e')]['getAttribute'](_0x266237);if(!_0x5e2216[_0x4065('0x6c')](_0x48eed0)&&!_0x42737d['has'](_0x48eed0)){if(_0x37e371[_0x4065('0x6c')](_0x48eed0))_0x45318d++;else{if(_0x48eed0!=_0x1b4824[_0x45318d]){const _0x1b91de=_0x1214e9['get'](_0x48eed0)||_0x1214e9[_0x4065('0x91')](_0x1b4824[_0x45318d]);for(;_0x48eed0!=_0x1b4824[_0x45318d];)_0x37e371[_0x4065('0x6c')](_0x1b4824[_0x45318d])||(_0x42737d[_0x4065('0x5f')](_0x1b4824[_0x45318d],_0x1b91de),_0x1214e9[_0x4065('0x5f')](_0x1b4824[_0x45318d],_0x1b91de)),_0x45318d++;}_0x45318d++;}}}}for(const _0x33997f of _0x3423d6){const _0x89bf5f=_0x101a3b['insertions'][_0x33997f];for(const _0x308636 of _0x89bf5f){const _0x41979f=this[_0x4065('0x92')](_0x308636),_0x3aee1=_0x308636['item'][_0x4065('0x89')](_0x41979f);if(_0x42737d['has'](_0x3aee1)){const _0x275e19=_0x42737d[_0x4065('0x91')](_0x3aee1);_0x37e371[_0x4065('0x6c')](_0x3aee1)||_0x37e371[_0x4065('0x5f')](_0x3aee1,{..._0x275e19}),_0x5e2216[_0x4065('0x5f')](_0x3aee1,{..._0x275e19});}}}for(const _0x3002f4 of _0x37e371['keys']())_0x3002f4>=this[_0x4065('0xd9')]&&_0x37e371[_0x4065('0xca')](_0x3002f4);const _0x548f52=new Map();for(const _0x5f479c of _0x3423d6){let _0xeb38a4=_0x101a3b[_0x4065('0x32')][_0x5f479c];for(const _0x4bfe43 of _0xeb38a4)if(_0x4bfe43[_0x4065('0x3e')]['is']('element',_0x4065('0x96'))){const _0x5e9acb=this['_getVidAttributeName'](_0x4bfe43),_0x4350a0=_0x4bfe43[_0x4065('0x3e')][_0x4065('0x89')](_0x5e9acb);if(_0x5e2216[_0x4065('0x6c')](_0x4350a0)){const _0x124e48=_0x4bfe43['item'][_0x4065('0x5')][_0x4065('0x5')]['getAttribute']('vid_start'),_0x3e49d6=_0x548f52[_0x4065('0x91')](_0x124e48)||new Set();_0x3e49d6[_0x4065('0x3c')](_0x5e2216[_0x4065('0x91')](_0x4350a0)['userId']),_0x548f52[_0x4065('0x5f')](_0x124e48,_0x3e49d6);}}_0xeb38a4=_0x101a3b[_0x4065('0x85')][_0x5f479c];for(const _0x54d5ae of _0xeb38a4)if(_0x54d5ae['item']['is'](_0x4065('0x9f'),_0x4065('0x96'))){const _0x42544a=this[_0x4065('0x92')](_0x54d5ae),_0x44cda9=_0x54d5ae[_0x4065('0x3e')][_0x4065('0x89')](_0x42544a);if(_0x37e371[_0x4065('0x6c')](_0x44cda9)){const _0x17e2f0=_0x54d5ae[_0x4065('0x3e')][_0x4065('0x5')][_0x4065('0x5')][_0x4065('0x89')](_0x4065('0x52')),_0x56af94=_0x548f52['get'](_0x17e2f0)||new Set();_0x56af94['add'](_0x37e371[_0x4065('0x91')](_0x44cda9)['userId']),_0x548f52[_0x4065('0x5f')](_0x17e2f0,_0x56af94);}}for(const _0x25b23c of _0x548f52[_0x4065('0x64')]())(_0x5e2216[_0x4065('0x6c')](_0x25b23c)||_0x37e371[_0x4065('0x6c')](_0x25b23c))&&_0x548f52[_0x4065('0xca')](_0x25b23c);}for(const _0x34a02a of _0x3423d6){const _0x5d2d9d=_0x101a3b[_0x4065('0x32')][_0x34a02a];let _0x1cdfe2=null,_0x45c270=null;for(const _0x57cda8 of _0x5d2d9d){const _0x175607=this[_0x4065('0x92')](_0x57cda8),_0x5f1d2d=_0x57cda8['item'][_0x4065('0x89')](_0x175607),_0x5247c0=_0x548f52['get'](_0x5f1d2d);_0x5247c0&&_0x4065('0xc2')==_0x57cda8[_0x4065('0xf6')]&&(_0x1cdfe2=Array['from'](_0x5247c0)[0x0],_0x45c270=_0x57cda8[_0x4065('0x3e')][_0x4065('0x89')](_0x4065('0xe3'))),_0x1cdfe2&&(_0x37e371[_0x4065('0x5f')](_0x5f1d2d,{'userId':_0x1cdfe2}),_0x5e2216[_0x4065('0x5f')](_0x5f1d2d,{'userId':_0x1cdfe2})),_0x5f1d2d==_0x45c270&&(_0x1cdfe2=null,_0x45c270=null);}}const _0xffb466={},_0x1a626e=new Set();for(const _0x1cc721 of _0x3423d6){const _0x2cea54=_0x24fbf3[_0x4065('0x85')][_0x1cc721],_0x425ee2=_0x24fbf3['insertions'][_0x1cc721];for(const {userId:_0x32542b}of this['_touchedMarkers'][_0x4065('0x9a')]())null!==_0x32542b&&_0x1a626e['add'](_0x32542b);for(const {userId:_0x1f3c18}of this[_0x4065('0x74')][_0x4065('0x9a')]())null!==_0x1f3c18&&_0x1a626e[_0x4065('0x3c')](_0x1f3c18);this['_markChanges'](_0x425ee2,_0x101a3b[_0x4065('0x32')][_0x1cc721],_0x5e2216,'insertion',_0x1a626e),this[_0x4065('0xef')](_0x2cea54,_0x101a3b[_0x4065('0x85')][_0x1cc721],_0x37e371,'deletion',_0x1a626e),_0xffb466[_0x1cc721]={'insertions':this[_0x4065('0xd')](_0x425ee2),'deletions':this['_prepareViewToSave'](_0x2cea54),'attachChange':this['_touchedRoots'][_0x4065('0x91')](_0x1cc721)||null,'attributesBefore':_0x27fc92(this[_0x4065('0x76')][_0x4065('0x91')](_0x1cc721))||{},'attributesAfter':_0x27fc92(this['_diffRootsAttributes'][_0x4065('0x91')](_0x1cc721))};}return{'diffData':_0xffb466,'authorsIds':Array['from'](_0x1a626e)};}['_processRootBeforeSave'](_0x4b6967){for(const [,_0xf9bddf]of _0x4b6967[_0x4065('0xad')]){const _0x479373=_0xf9bddf[_0x4065('0xf1')][_0x4065('0x35')]()[_0x4065('0xd5')](_0x5cc296=>_0x4065('0x96')==_0x5cc296[_0x4065('0x38')]);for(const _0x5eb9c1 of _0x479373)0x1==_0x5eb9c1[_0x4065('0xc5')]&&_0x5eb9c1['getChild'](0x0)['is'](_0x4065('0x9f'),_0x4065('0xcc'))&&_0x5eb9c1['getChild'](0x0)[_0x4065('0x56')]('keepParagraph',!0x0);}}[_0x4065('0xd')](_0x128e79){this[_0x4065('0x8')](_0x128e79);const _0x12c0c5=this[_0x4065('0x15')]['data']['toView'](_0x128e79,{}),_0x1aa26a=Array[_0x4065('0x40')](_0x12c0c5[_0x4065('0xbf')]())[_0x4065('0x10')](_0x4e7e1c=>this[_0x4065('0xda')](_0x4e7e1c));return JSON[_0x4065('0x23')](_0x1aa26a);}['_getViewJson'](_0x357a4b){if(_0x357a4b['is'](_0x4065('0x7f')))return _0x357a4b['data'];{const _0x31ced5=_0x357a4b;return{'type':Object['keys'](B)[_0x4065('0xcd')](_0x58ef61=>_0x357a4b instanceof B[_0x58ef61]),'name':_0x31ced5[_0x4065('0x38')],'attributes':Array[_0x4065('0x40')](_0x31ced5[_0x4065('0x101')]()),'children':Array[_0x4065('0x40')](_0x31ced5[_0x4065('0xbf')]())['map'](_0x2e9812=>this[_0x4065('0xda')](_0x2e9812))};}}['_markChanges'](_0x31a4b3,_0x5d5d7d,_0x181ee6,_0x44d479,_0x480dde){let _0x249a8f=null,_0x2843ee=null,_0x568333=0x0;const _0x25b60a=this['editor'][_0x4065('0x94')];for(let _0x1ffdfa=0x0;_0x1ffdfa<_0x5d5d7d[_0x4065('0x12')];_0x1ffdfa++){const _0x5a27c7=this[_0x4065('0x92')](_0x5d5d7d[_0x1ffdfa]),_0x29cab8=_0x5d5d7d[_0x1ffdfa]['item'][_0x4065('0x89')](_0x5a27c7),_0xad79e9=_0x181ee6['get'](_0x29cab8),_0xc9996c=_0x1ffdfa==_0x5d5d7d[_0x4065('0x12')]-0x1;(!_0x249a8f&&_0xad79e9&&(_0x249a8f=_0xad79e9,_0x2843ee=_0x5d5d7d[_0x1ffdfa]),_0x249a8f&&(!_0xad79e9||_0xad79e9[_0x4065('0xa8')]!=_0x249a8f[_0x4065('0xa8')]))&&(_0x5d8b96(_0xad79e9,L(_0x2843ee,_0x31a4b3,_0x25b60a),L(_0x5d5d7d[_0x1ffdfa],_0x31a4b3,_0x25b60a)),_0x249a8f=_0xad79e9||null,_0x2843ee=_0xad79e9?_0x5d5d7d[_0x1ffdfa]:null),_0x249a8f&&_0xc9996c&&_0x5d8b96(_0xad79e9,L(_0x2843ee,_0x31a4b3,_0x25b60a),W(_0x5d5d7d[_0x1ffdfa],_0x31a4b3,_0x25b60a));}function _0x5d8b96(_0x217c2c,_0x5cd215,_0x1fed69){const _0x250cb1=_0x249a8f[_0x4065('0xa8')],_0x2355df=_0x4065('0x2f')+_0x44d479+':'+_0x250cb1+':'+_0x568333++,_0x3f07cb=_0x25b60a[_0x4065('0xd4')](_0x5cd215,_0x1fed69);_0x31a4b3['markers'][_0x4065('0x5f')](_0x2355df,_0x3f07cb),null!==_0x250cb1&&_0x480dde[_0x4065('0x3c')](_0x250cb1);}}[_0x4065('0x92')](_0x501d9d){switch(_0x501d9d[_0x4065('0xf6')]){case _0x4065('0xc2'):return _0x4065('0x52');case _0x4065('0x5b'):return _0x4065('0xe3');default:return _0x4065('0x4a');}}[_0x4065('0xa3')](_0x3e2e58,_0x2c0a9f){_0x3e2e58['baseVersion']=null;for(const _0x47896b in _0x3e2e58){const _0x3ce931=_0x3e2e58[_0x47896b];if(_0x3ce931 instanceof _0x2080ef){const _0x5b29f4=_0x2c0a9f['get'](_0x3ce931[_0x4065('0xb5')][_0x4065('0xba')]);_0x3e2e58[_0x47896b]=this['_fixPosition'](_0x3ce931,_0x5b29f4);}if(_0x3ce931 instanceof _0x369295){const _0x3835e8=_0x2c0a9f[_0x4065('0x91')](_0x3ce931[_0x4065('0xb5')][_0x4065('0xba')]);_0x3e2e58[_0x47896b]=this[_0x4065('0x66')](_0x3ce931,_0x3835e8);}_0x4065('0xb5')===_0x47896b&&(_0x3e2e58[_0x4065('0xb5')]=_0x2c0a9f[_0x4065('0x91')](_0x3e2e58[_0x4065('0xb5')]['rootName']));}}[_0x4065('0x66')](_0x2f0753,_0x4edd23){return this[_0x4065('0x15')]['model'][_0x4065('0xd4')](this[_0x4065('0x7d')](_0x2f0753[_0x4065('0xf1')],_0x4edd23),this['_fixPosition'](_0x2f0753[_0x4065('0xe4')],_0x4edd23));}['_fixPosition'](_0x5dab6,_0x535376){return this['editor'][_0x4065('0x94')]['createPositionFromPath'](_0x535376,_0x5dab6[_0x4065('0x34')],_0x5dab6['stickiness']);}[_0x4065('0x6f')](_0x380214){const _0x594d78=this[_0x4065('0xdc')][_0x4065('0x91')](_0x380214['position'][_0x4065('0xb5')][_0x4065('0xba')]),_0x10dce0=this[_0x4065('0x7d')](_0x380214['position'],_0x594d78),_0x467354=null===_0x380214['_authorId']?null:_0x380214[_0x4065('0xaa')]||this[_0x4065('0x15')][_0x4065('0x70')][_0x4065('0x91')](_0x4065('0x41'))['me']['id'],_0x3a4d90=_0x10dce0[_0x4065('0x5')],_0x1091d4=this[_0x4065('0xfb')],_0x12ac79=[];for(const _0x44a6aa of _0x380214[_0x4065('0xe5')])if(_0x44a6aa['is']('element'))_0x12ac79[_0x4065('0xff')](this['_makeIdsRoot'](_0x44a6aa));else for(let _0x2e3a0d=0x0;_0x2e3a0d<_0x44a6aa[_0x4065('0x2c')];_0x2e3a0d++)_0x12ac79[_0x4065('0xff')](new _0x43e22b(_0x4065('0x7f'),{'vid':this['_revisionId']++}));const _0x103ed3=this[_0x4065('0xfb')];for(let _0x42ecb1=_0x1091d4;_0x42ecb1<_0x103ed3;_0x42ecb1++)this['_touched'][_0x4065('0x5f')](_0x42ecb1,{'userId':_0x467354});_0x3a4d90[_0x4065('0xb6')](_0x10dce0[_0x4065('0xc')],_0x12ac79);}['_handleMoveOperation'](_0x46db8c){(_0x46db8c=this[_0x4065('0xd1')](_0x46db8c,this['_idsRoots']))[_0x4065('0x6a')]();const _0x112c87=null===_0x46db8c[_0x4065('0xaa')]?null:_0x46db8c[_0x4065('0xaa')]||this[_0x4065('0x15')][_0x4065('0x70')][_0x4065('0x91')](_0x4065('0x41'))['me']['id'],_0x4b0964=_0x46db8c[_0x4065('0xb9')](),_0x4bdbb4=_0x4b0964[_0x4065('0x5')],_0x529d17=_0x4b0964[_0x4065('0xc')];!function _0x5500ab(_0x4f0cb0,_0x248041,_0x664c4,_0x1ffc50){for(let _0x1531ce=_0x664c4;_0x1531ce<_0x1ffc50;_0x1531ce++){const _0x16d3f1=_0x248041[_0x4065('0x19')](_0x1531ce);_0x16d3f1['is'](_0x4065('0x9f'),_0x4065('0x7f'))?_0x4f0cb0[_0x4065('0x5f')](_0x16d3f1['getAttribute'](_0x4065('0x4a')),{'userId':_0x112c87}):(_0x4f0cb0[_0x4065('0x5f')](_0x16d3f1[_0x4065('0x89')](_0x4065('0x52')),{'userId':_0x112c87}),_0x5500ab(_0x4f0cb0,_0x16d3f1,0x0,_0x16d3f1[_0x4065('0xc5')]),_0x4f0cb0['set'](_0x16d3f1[_0x4065('0x89')]('vid_end'),{'userId':_0x112c87}));}}(this[_0x4065('0xc9')],_0x4bdbb4,_0x529d17,_0x529d17+_0x46db8c[_0x4065('0xd2')]);}[_0x4065('0x3d')](_0x4b5a8e){const _0x3c3c67=null===(_0x4b5a8e=this[_0x4065('0xd1')](_0x4b5a8e,this[_0x4065('0xdc')]))[_0x4065('0xaa')]?null:_0x4b5a8e[_0x4065('0xaa')]||this[_0x4065('0x15')][_0x4065('0x70')][_0x4065('0x91')](_0x4065('0x41'))['me']['id'],_0x4bc030=_0x4b5a8e[_0x4065('0x86')]['parent'],_0x59b874=_0x4b5a8e['sourcePosition'][_0x4065('0x5')],_0x110cba=_0x4bc030[_0x4065('0x89')]('vid_end'),_0x520b5d=_0x59b874[_0x4065('0x89')](_0x4065('0x52'));_0x4bc030[_0x4065('0x56')]('vid_end',_0x59b874['getAttribute'](_0x4065('0xe3'))),_0x59b874[_0x4065('0x56')](_0x4065('0xe3'),_0x110cba),this[_0x4065('0xc9')][_0x4065('0x5f')](_0x520b5d,{'userId':_0x3c3c67}),this[_0x4065('0xc9')][_0x4065('0x5f')](_0x110cba,{'userId':_0x3c3c67}),_0x4b5a8e[_0x4065('0x6a')]();}['_handleSplitOperation'](_0x190cd9){const _0x494bd5=null===(_0x190cd9=this[_0x4065('0xd1')](_0x190cd9,this[_0x4065('0xdc')]))['_authorId']?null:_0x190cd9[_0x4065('0xaa')]||this[_0x4065('0x15')][_0x4065('0x70')][_0x4065('0x91')](_0x4065('0x41'))['me']['id'],_0x55cc30=_0x190cd9[_0x4065('0x9e')],_0x23ce12=_0x190cd9[_0x4065('0x8d')][_0x4065('0x5')];_0x190cd9[_0x4065('0x6a')]();const _0x1f0cf5=_0x23ce12['getAttribute'](_0x4065('0xe3')),_0x35ce4d=_0x190cd9[_0x4065('0xa')][_0x4065('0x0')];if(_0x55cc30){const _0x784d36=_0x35ce4d[_0x4065('0x89')](_0x4065('0xe3')),_0x5f1ca6=_0x23ce12['getAttribute'](_0x4065('0xe3'));_0x23ce12[_0x4065('0x56')](_0x4065('0xe3'),_0x784d36),_0x35ce4d[_0x4065('0x56')](_0x4065('0xe3'),_0x5f1ca6),this[_0x4065('0xc9')][_0x4065('0x5f')](_0x23ce12[_0x4065('0x89')](_0x4065('0xe3')),{'userId':_0x494bd5}),this[_0x4065('0xc9')]['set'](_0x35ce4d[_0x4065('0x89')](_0x4065('0x52')),{'userId':_0x494bd5});}else{const _0xcb5833=this[_0x4065('0xfb')]++,_0x21de83=this[_0x4065('0xfb')]++;_0x23ce12[_0x4065('0x56')](_0x4065('0xe3'),_0xcb5833),_0x35ce4d['_setAttribute'](_0x4065('0x52'),_0x21de83),_0x35ce4d[_0x4065('0x56')]('vid_end',_0x1f0cf5),this[_0x4065('0xc9')][_0x4065('0x5f')](_0xcb5833,{'userId':_0x494bd5}),this['_touched'][_0x4065('0x5f')](_0x21de83,{'userId':_0x494bd5});}}[_0x4065('0xbd')](_0x25a93a){if(!_0x25a93a[_0x4065('0xf2')])return;const _0x4d3441=(_0x25a93a=this[_0x4065('0xd1')](_0x25a93a,this[_0x4065('0xbe')]))['oldRange']?_0x25a93a['oldRange'][_0x4065('0xb5')]:null,_0x559b1c=_0x25a93a['newRange']?_0x25a93a[_0x4065('0x72')][_0x4065('0xb5')]:null;_0x4d3441&&this[_0x4065('0xe1')][_0x4065('0xca')](_0x25a93a[_0x4065('0x38')]),_0x559b1c&&this[_0x4065('0xe1')][_0x4065('0x5f')](_0x25a93a['name'],_0x25a93a[_0x4065('0x72')][_0x4065('0x6d')]());const _0x3e5539=null===_0x25a93a['_authorId']?null:_0x25a93a[_0x4065('0xaa')]||this[_0x4065('0x15')][_0x4065('0x70')][_0x4065('0x91')](_0x4065('0x41'))['me']['id'],_0x268ff8=_0x25a93a[_0x4065('0x38')];if(!this[_0x4065('0x57')]['has'](_0x268ff8))return void this[_0x4065('0x57')]['set'](_0x268ff8,{'range':_0x25a93a[_0x4065('0x65')],'userId':_0x3e5539});const _0xa4937e=this[_0x4065('0x57')][_0x4065('0x91')](_0x268ff8),_0x52bc4=_0xa4937e['range'],_0x5f1077=_0x25a93a[_0x4065('0x72')];null==_0x52bc4&&null==_0x5f1077||_0x52bc4&&_0x5f1077&&_0x52bc4['isEqual'](_0x5f1077)?this['_touchedMarkers'][_0x4065('0xca')](_0x25a93a['name']):_0xa4937e['userId']=_0x3e5539;}[_0x4065('0xae')](_0x2b0b2b,_0x184d07){this[_0x4065('0xbe')][_0x4065('0x6c')](_0x2b0b2b[_0x4065('0xba')])?this[_0x4065('0xbe')][_0x4065('0x91')](_0x2b0b2b[_0x4065('0xba')])['_isAttached']=_0x2b0b2b[_0x4065('0x28')]:(this[_0x4065('0xbe')]['set'](_0x2b0b2b[_0x4065('0xba')],G(_0x2b0b2b['rootName'],!0x0)),this['_diffRootsAttributes'][_0x4065('0x5f')](_0x2b0b2b['rootName'],{}),_0x184d07&&this[_0x4065('0xdc')][_0x4065('0x5f')](_0x2b0b2b['rootName'],G(_0x2b0b2b[_0x4065('0xba')],!0x0)));const _0x1c0106=null===_0x2b0b2b[_0x4065('0xaa')]?null:_0x2b0b2b[_0x4065('0xaa')]||this[_0x4065('0x15')]['plugins'][_0x4065('0x91')](_0x4065('0x41'))['me']['id'],_0x1824af=this[_0x4065('0x74')][_0x4065('0x91')](_0x2b0b2b['rootName']);_0x1824af&&_0x1824af[_0x4065('0xa8')]===_0x1c0106?this[_0x4065('0x74')][_0x4065('0xca')](_0x2b0b2b[_0x4065('0xba')]):this[_0x4065('0x74')][_0x4065('0x5f')](_0x2b0b2b[_0x4065('0xba')],{'userId':_0x1c0106,'isAttached':_0x2b0b2b[_0x4065('0x28')]});}['_handleRootAttributeOperation'](_0x420962){const _0x32d2ce=this[_0x4065('0x68')][_0x4065('0x91')](_0x420962[_0x4065('0xb5')][_0x4065('0xba')]);null===_0x420962['newValue']?delete _0x32d2ce[_0x420962[_0x4065('0x4d')]]:_0x32d2ce[_0x420962['key']]=_0x420962[_0x4065('0x1')];}}function q(_0x514de0){const _0x1b87a7=G(_0x514de0[_0x4065('0xba')],_0x514de0[_0x4065('0xb4')]());for(const _0x35bd17 of _0x514de0[_0x4065('0xbf')]()){const _0x2c5f67=_0x35bd17['_clone'](!0x0);_0x1b87a7[_0x4065('0x61')](_0x2c5f67);}return _0x1b87a7;}function G(_0x1bceed,_0x1c0627=!0x0){const _0x42921b=new _0x267fe9();return _0x42921b[_0x4065('0xba')]=_0x1bceed,_0x42921b[_0x4065('0x104')]=_0x1c0627,_0x42921b[_0x4065('0xb4')]=()=>_0x42921b['_isAttached'],_0x42921b;}function L(_0x44e86c,_0x11829d,_0x27a61a){const _0x47ccae=_0x4065('0x5b')==_0x44e86c[_0x4065('0xf6')]?_0x27a61a['createPositionAt'](_0x44e86c[_0x4065('0x3e')],'end'):_0x27a61a['createPositionBefore'](_0x44e86c[_0x4065('0x3e')]);return _0x27a61a[_0x4065('0xf9')](_0x11829d,_0x47ccae[_0x4065('0x34')],_0x47ccae[_0x4065('0xf0')]);}function W(_0x2e2e3b,_0x357f2c,_0xeda350){const _0x1ee16d=_0x4065('0xc2')==_0x2e2e3b['type']?_0xeda350[_0x4065('0x83')](_0x2e2e3b[_0x4065('0x3e')],0x0):_0xeda350[_0x4065('0xc1')](_0x2e2e3b[_0x4065('0x3e')]);return _0xeda350[_0x4065('0xf9')](_0x357f2c,_0x1ee16d[_0x4065('0x34')],_0x1ee16d['stickiness']);}
|
|
23
|
+
const _0x2fa4=['graveyardPosition','ready','stringify','_handleRootOperation','_startingVersion','markerToData','_copyMarkers','reverse','some','_cloneOperation','getOperations','initialData','isAttached','getIndex','targetPosition','model','define','getChild','PendingActions','adapter','fromVersion','getUser','Users','createRange','sourcePosition','_isInit','insertionPosition','_continueCurrentRevision','getRange','_loadState','setRevisionData','NEGATIVE_INFINITY','finally','_isPendingUpdate','_clone','detachRoot','_lastFrom','range','newRange','_findInsertionIndex','_authorId','stickiness','pluginName','vid_end','attributesAfter','conversion','config','_revisionDataBuilder','buildRevisionData','_getBaseVids','insert','_handleMergeOperation','_touchedMarkers','addRootAttribute','key','_fixRange','attachChange','from','childCount','_loadRevisionData','setSource','paragraph','authorsIds','_baseIdsRoots','getAttribute','_loadedStateData','PENDING_ACTION_REVISION_HISTORY','end','_generateTape','changeRootAttribute','_transformMarkers','_applyOperations','attributes','marked','newValue','_replaceEditorDataWithRevisionData','has','_update','start','vid_start','forEach','isEqual','_handleOperation','reinsert','_touched','getCurrentRevisionId','_processRootBeforeSave','source','getMovedRangeStart','removeRootAttribute','for','then','trim','keys','_handleInsertOperation','_handleSplitOperation','deletions','getWalker','view','oldRange','map','get','find','currentRevision','roots','_makeModelFromViewString','sort','loadState','type','getRoot','reInit','_removeMetaData','_bufferedUpdates','clear','rootName','documentFragment','elementStart','_diffRoots','toView','_setAttribute','upcast','size','filter','_appendChild','getRevisionRootsAttributes','previousPosition','_baseRoots','addRevision','$graveyard','_calculateMetaData','getData','_getState','$text','remove','revision-start','getTime','startsWith','getRevisionDocumentData','revision-end','parent','merge','_getVidAttributeName','_idsRoots','keepParagraph','isEnabled','_getPreviousFrom','_removeRevisionMarkers','_handleMarkerOperation','editing','userId','_makeRevision','length','push','nodes','init','_saveMetaData','data','createPositionAfter','set','Empty\x20document','_markers','creatorId','delete','shift','nodeAfter','sendBufferedUpdates','afterInit','fromEntries','diffData','slice','insertion','getRevisions','_startingRevisionId','createdAt','_handleMoveOperation','getChildren','dataDowncast','createPositionBefore','elementEnd','_getFromVersion','getRootNames','_revisionId','getAttributes','useFillerType','_bufferUpdate','addRoot','_markChanges','_initialRevisionId','locale','_createFromRanges','_fixPosition','_handleRootAttributeOperation','addRevisionData','_reset','item','isReady','insertions','_removePendingAction','_setConversion','_makeIdsRoot','toVersion','_insertChild','_diffRootsAttributes','_fixOperation','parse','createPositionAt','_createCurrentRevision','getRevision','add','split','includes','_baseRootsAttributes','plugins','revisionHistory.resumeUnsavedRevision','revision','_getViewJson','creator','_touchedRoots','dataToMarker','baseVersion','marker','name','repository','_savedMetaData','RealTimeCollaborationClient','_execute','collaboration.channelId','_addPendingAction','createRangeIn','position','document','root','values','authors','markers','tableCell','_isAttached','clone','editor','update','toData','_prepareViewToSave','vid','history','getOperation','offsetSize','updateRevisions','revision:','children','getLatestVersion','path','createPositionFromPath','RevisionsRepository','Initial\x20revision','splitPosition','_source','_lastTo','_operations','getNodeByPath','element','version','_pendingAction','bind','offset','rootsAttributes','processor','string'];(function(_0x12709d,_0x2fa478){const _0xf04f6f=function(_0x5e7447){while(--_0x5e7447){_0x12709d['push'](_0x12709d['shift']());}};_0xf04f6f(++_0x2fa478);}(_0x2fa4,0xb1));const _0xf04f=function(_0x12709d,_0x2fa478){_0x12709d=_0x12709d-0x0;let _0xf04f6f=_0x2fa4[_0x12709d];return _0xf04f6f;};import{Users as _0x1043cf}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x271c4c,PendingActions as _0x5b4536}from'ckeditor5/src/core';import{logWarning as _0x13ae98,uid as _0x7cea79}from'ckeditor5/src/utils';import{Position as _0x49b3c1,Range as _0x379b6c,Element as _0x3ad5aa,DocumentFragment as _0x5dbff3,ViewText as _0x185ba4,ViewElement as _0x25eda8,ViewContainerElement as _0x459bec,ViewAttributeElement as _0x15cdde,ViewEmptyElement as _0x2fd05b,ViewRawElement as _0xbaffa,ViewUIElement as _0x1f9dc9,ViewDocumentFragment as _0x253c09}from'ckeditor5/src/engine';import _0x5d09d1 from'./revisionsrepository';import{getTranslation as _0x41dd9d}from'./utils/common-translations';import{cloneDeep as _0x193987,isEqual as _0xb13a02}from'lodash-es';const B={'c':_0x459bec,'a':_0x15cdde,'e':_0x2fd05b,'r':_0xbaffa,'u':_0x1f9dc9};export default class l extends _0x271c4c{static get[_0xf04f('0x84')](){return'RevisionTracker';}static get['requires'](){return[_0x1043cf,_0x5d09d1,_0x5b4536];}constructor(_0x2815de){super(_0x2815de),this[_0xf04f('0x6d')]=null,this[_0xf04f('0xc1')]=null,this[_0xf04f('0x89')]=new H(this[_0xf04f('0x3d')]),this[_0xf04f('0xa')]=this[_0xf04f('0x3d')][_0xf04f('0x88')]['get']('collaboration.channelId')||'initial',this[_0xf04f('0xca')]=new Map(),this[_0xf04f('0x9b')]=null;const _0x2c11cc=_0x7cea79();this[_0xf04f('0x4e')]={'history':this[_0xf04f('0x3d')]['model'][_0xf04f('0x35')][_0xf04f('0x42')],'getLatestVersion':()=>Promise['resolve'](this[_0xf04f('0x3d')][_0xf04f('0x69')][_0xf04f('0x35')][_0xf04f('0x53')]),'getCurrentRevisionId':()=>_0x2c11cc},this['set'](_0xf04f('0x12'),!0x1),this[_0xf04f('0xf8')](_0xf04f('0xea'),!0x0),this[_0xf04f('0xf8')](_0xf04f('0x7b'),!0x1),this[_0xf04f('0x3d')][_0xf04f('0x88')][_0xf04f('0x6a')](_0xf04f('0x24'),!0x0),this[_0xf04f('0x3d')][_0xf04f('0x87')]['for'](_0xf04f('0xd2'))[_0xf04f('0x29')]({'view':_0xf04f('0x25')});}[_0xf04f('0xf4')](){this[_0xf04f('0x2d')]=this[_0xf04f('0x3d')]['plugins'][_0xf04f('0xbf')](_0xf04f('0x4b')),this[_0xf04f('0x15')](),this[_0xf04f('0x3d')][_0xf04f('0xf6')]['on'](_0xf04f('0x5b'),()=>{const _0x1c793e=this['repository'][_0xf04f('0x1e')](0x0),_0x307ac9=_0x1c793e&&null===_0x1c793e['creator']?_0x1c793e:null;if(this[_0xf04f('0x75')]=!!_0x307ac9&&this[_0xf04f('0x3d')]['config'][_0xf04f('0xbf')](_0xf04f('0x24')),this['editor']['plugins'][_0xf04f('0xa6')](_0xf04f('0x2f'))){const _0xface17=this['_source'][_0xf04f('0xaf')](),_0x4a249b=this[_0xf04f('0x2d')][_0xf04f('0x1e')](_0xface17);if(_0x4a249b)this[_0xf04f('0x5e')]=_0x4a249b[_0xf04f('0x6e')],this[_0xf04f('0x75')]=!0x1;else{const _0x5cbe64=this['_source'][_0xf04f('0x42')][_0xf04f('0x50')][_0xf04f('0xc0')](_0x299900=>!_0x299900[_0xf04f('0x73')]),_0x70d201=_0x5cbe64?_0x5cbe64['baseVersion']:this[_0xf04f('0x4e')][_0xf04f('0x42')][_0xf04f('0x53')];_0x1c793e?(_0x1c793e[_0xf04f('0x17')]<_0x70d201&&_0x1c793e[_0xf04f('0xa7')]({'toVersion':_0x70d201}),this[_0xf04f('0x75')]?(this[_0xf04f('0x4e')]['getCurrentRevisionId']=()=>_0x307ac9['id'],this[_0xf04f('0x5e')]=_0x307ac9[_0xf04f('0x6e')]):(this[_0xf04f('0x5e')]=_0x1c793e['toVersion'],this[_0xf04f('0x75')]=!0x1)):(this[_0xf04f('0x5e')]=_0x70d201,this['_continueCurrentRevision']=!0x1);}}else _0x307ac9&&(this[_0xf04f('0x3d')][_0xf04f('0x69')]['document']['history'][_0xf04f('0x53')]=Math['max'](_0x307ac9[_0xf04f('0x17')],this[_0xf04f('0x3d')][_0xf04f('0x69')][_0xf04f('0x35')][_0xf04f('0x42')]['version']),_0x307ac9['fromVersion']===_0x307ac9['toVersion']?(0x0!==_0x307ac9[_0xf04f('0x6e')]&&(this[_0xf04f('0x4e')]['getCurrentRevisionId']=()=>_0x307ac9['id']),this[_0xf04f('0x75')]=!0x1):this[_0xf04f('0x75')]&&(this[_0xf04f('0x4e')][_0xf04f('0xaf')]=()=>_0x307ac9['id'],this[_0xf04f('0x5e')]=_0x307ac9[_0xf04f('0x6e')])),this[_0xf04f('0x75')]||(this[_0xf04f('0x5e')]=this['editor'][_0xf04f('0x69')][_0xf04f('0x35')][_0xf04f('0x53')]);this[_0xf04f('0x89')]['init'](this[_0xf04f('0x4e')]['history']),this['_createInitialRevision'](this['_startingVersion']),this[_0xf04f('0x1d')](this['_startingVersion']),this[_0xf04f('0x6d')]&&this[_0xf04f('0xff')]();}),this[_0xf04f('0x55')]('isReady')['to'](this,_0xf04f('0x7b'),_0x3f9232=>!_0x3f9232);}async[_0xf04f('0x100')](){if(this[_0xf04f('0x2d')][_0xf04f('0xf1')]>0x0){const _0x4413cd=this[_0xf04f('0x2d')]['getRevision'](0x0),_0x8edcea=await this['getRevisionDocumentData'](_0x4413cd),_0x2bd156=await this[_0xf04f('0xd6')](_0x4413cd);this['_replaceEditorDataWithRevisionData'](_0x8edcea,_0x2bd156);}}[_0xf04f('0x96')](_0x36e170){this['_source']=_0x36e170;}async[_0xf04f('0x3e')](){const _0x586b47=await this[_0xf04f('0x4e')][_0xf04f('0x48')]();if(_0x586b47>this[_0xf04f('0xc1')][_0xf04f('0x17')]){await this[_0xf04f('0x77')]();const _0x8484e7=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x586b47});_0x8484e7[_0xf04f('0x38')]=_0x8484e7[_0xf04f('0x98')][_0xf04f('0xbe')](_0x10f67f=>this[_0xf04f('0x3d')][_0xf04f('0x23')][_0xf04f('0xbf')](_0xf04f('0x70'))[_0xf04f('0x6f')](_0x10f67f)),this[_0xf04f('0xc1')][_0xf04f('0xa7')](_0x8484e7);}}async['_loadState'](){this[_0xf04f('0x75')]&&!this[_0xf04f('0x9b')]&&(await this[_0xf04f('0x95')](this[_0xf04f('0xc1')]),this[_0xf04f('0x89')][_0xf04f('0xc5')](this['currentRevision']),this[_0xf04f('0x9b')]={'fromVersion':this['currentRevision']['fromVersion'],'authors':this[_0xf04f('0xc1')][_0xf04f('0x38')][_0xf04f('0x103')]()});}async['saveRevision'](_0x48166f={},_0x4b5dea=null){const _0x44c583=[];await this[_0xf04f('0x77')](),this[_0xf04f('0x75')]=!0x1,_0x4b5dea>this[_0xf04f('0xc1')]['toVersion']&&(_0x4b5dea=null),null===_0x4b5dea&&(_0x4b5dea=await this[_0xf04f('0x4e')][_0xf04f('0x48')]());const _0x35dd3e=this['_getFromVersion'](_0x4b5dea),_0x5239f6=this[_0xf04f('0x8a')]({'from':_0x35dd3e,'to':_0x4b5dea});if(this[_0xf04f('0xc1')]['toVersion']<_0x4b5dea){const _0x42b794=this[_0xf04f('0x8a')]({'revision':this[_0xf04f('0xc1')],'from':_0x4b5dea,'to':_0x4b5dea});_0x42b794[_0xf04f('0x38')]=[],_0x42b794[_0xf04f('0x98')]=[],_0x42b794['id']=this[_0xf04f('0xc1')]['id'],this[_0xf04f('0xc1')]['_update'](_0x42b794,!0x0),delete _0x42b794[_0xf04f('0x38')],_0x44c583['push'](_0x42b794);}_0x48166f[_0xf04f('0xfb')]=this[_0xf04f('0x3d')]['plugins'][_0xf04f('0xbf')](_0xf04f('0x70'))['me']['id'],_0x48166f['name']=_0x48166f[_0xf04f('0x2c')]||null,_0x48166f['id']=_0x48166f['id']||_0x7cea79(),_0x48166f={..._0x48166f,..._0x5239f6};const _0x43ab46=this[_0xf04f('0xf')](_0x48166f);_0x44c583[_0xf04f('0xf2')](_0x48166f);const _0x3809e7=this[_0xf04f('0x2d')][_0xf04f('0x67')](_0x43ab46);if(0x0!==_0x3809e7){const _0x45b0b3=this[_0xf04f('0x2d')][_0xf04f('0x1e')](_0x3809e7-0x1);if(_0x45b0b3['fromVersion']!==_0x4b5dea){const _0xa6b4ee=this[_0xf04f('0x89')]['getData'](_0x4b5dea,_0x45b0b3[_0xf04f('0x17')]),_0x1cca36={'id':_0x45b0b3['id'],'diffData':_0xa6b4ee[_0xf04f('0x102')],'authorsIds':_0xa6b4ee['authorsIds'],'authors':_0xa6b4ee[_0xf04f('0x98')][_0xf04f('0xbe')](_0x1a0e87=>this[_0xf04f('0x3d')][_0xf04f('0x23')][_0xf04f('0xbf')](_0xf04f('0x70'))[_0xf04f('0x6f')](_0x1a0e87)),'fromVersion':_0x4b5dea};_0x45b0b3===this[_0xf04f('0xc1')]&&(_0x1cca36['createdAt']=new Date(_0x48166f[_0xf04f('0x107')][_0xf04f('0xe1')]()+0xa)),_0x45b0b3['_update'](_0x1cca36,!0x0),delete _0x1cca36[_0xf04f('0x38')],_0x44c583['push'](_0x1cca36);}}if(this['adapter']){for(const _0x1f7011 of _0x44c583)this[_0xf04f('0x7')](_0x1f7011['id'],_0x1f7011,!0x0);this[_0xf04f('0xff')]();}return _0x43ab46;}['addRevisionData'](_0x2d4a22){const _0xfb31a1=this[_0xf04f('0x2d')]['createRevision'](_0x2d4a22);return this['adapter']&&_0xfb31a1['on']('_update',(_0x216c03,_0x272acf,_0x31134d)=>{_0x31134d||(this[_0xf04f('0x7')](_0x272acf['id'],_0x272acf,!0x0),this[_0xf04f('0xff')]());}),this[_0xf04f('0x2d')][_0xf04f('0xd9')](_0xfb31a1,this['_findInsertionIndex'](_0xfb31a1)),_0xfb31a1;}async[_0xf04f('0xe3')](_0x563d1e){await this[_0xf04f('0x95')](_0x563d1e);const _0x3ea6ab={};for(const _0xc3c5ee in _0x563d1e['diffData']){if(_0x563d1e[_0xf04f('0x102')][_0xc3c5ee][_0xf04f('0x92')]&&!_0x563d1e[_0xf04f('0x102')][_0xc3c5ee][_0xf04f('0x92')][_0xf04f('0x66')])continue;const _0x4c811b=this[_0xf04f('0xec')](JSON['parse'](_0x563d1e[_0xf04f('0x102')][_0xc3c5ee][_0xf04f('0x13')])),_0x34ab47=this[_0xf04f('0x3d')][_0xf04f('0xee')][_0xf04f('0xbc')]['document'],_0x367acd=new _0x253c09(_0x34ab47,_0x4c811b[_0xf04f('0xbe')](_0x4a4901=>J(_0x4a4901,this[_0xf04f('0x3d')])));this[_0xf04f('0x3d')][_0xf04f('0xf6')][_0xf04f('0x58')]['useFillerType'](_0xf04f('0xa3')),_0x3ea6ab[_0xc3c5ee]=this[_0xf04f('0x3d')][_0xf04f('0xf6')][_0xf04f('0x58')][_0xf04f('0x3f')](_0x367acd),this['editor'][_0xf04f('0xf6')][_0xf04f('0x58')][_0xf04f('0x6')]('default');}return _0x3ea6ab;}async[_0xf04f('0xd6')](_0x31f7c3){await this[_0xf04f('0x95')](_0x31f7c3);const _0x4ebef7={};for(const _0x4343cf in _0x31f7c3['diffData'])_0x31f7c3[_0xf04f('0x102')][_0x4343cf][_0xf04f('0x92')]&&!_0x31f7c3[_0xf04f('0x102')][_0x4343cf][_0xf04f('0x92')]['isAttached']||(_0x4ebef7[_0x4343cf]=_0x31f7c3[_0xf04f('0x102')][_0x4343cf]['attributesAfter']||{});return _0x4ebef7;}['sendBufferedUpdates'](){if(0x0===this[_0xf04f('0xca')][_0xf04f('0xd3')])return;if(this['_isPendingUpdate'])return;let _0x114023=Array[_0xf04f('0x93')](this[_0xf04f('0xca')][_0xf04f('0x37')]());this['_bufferedUpdates'][_0xf04f('0xcb')]();for(let _0x14e626=0x0;_0x14e626<_0x114023[_0xf04f('0xf1')];_0x14e626++){const _0x2386a8=_0x114023[_0x14e626];let _0xf667c0=!0x1;for(const _0x139316 of Object[_0xf04f('0xb7')](_0x2386a8))void 0x0===_0x2386a8[_0x139316]?delete _0x2386a8[_0x139316]:'id'!==_0x139316&&(_0xf667c0=!0x0);_0xf667c0||(_0x114023[_0x14e626]=null);}if(_0x114023=_0x114023[_0xf04f('0xd4')](_0x2278ea=>null!==_0x2278ea),!_0x114023[_0xf04f('0xf1')])return;for(let _0x4c4f49=0x0;_0x4c4f49<_0x114023['length'];_0x4c4f49++){const _0x4c59ac=_0x114023[_0x4c4f49];void 0x0!==_0x4c59ac[_0xf04f('0x6e')]&&void 0x0===_0x4c59ac[_0xf04f('0x17')]&&(_0x4c59ac['toVersion']=this[_0xf04f('0x2d')][_0xf04f('0x1e')](_0x4c59ac['id'])[_0xf04f('0x17')]),void 0x0!==_0x4c59ac['toVersion']&&void 0x0===_0x4c59ac[_0xf04f('0x6e')]&&(_0x4c59ac[_0xf04f('0x6e')]=this['repository'][_0xf04f('0x1e')](_0x4c59ac['id'])[_0xf04f('0x6e')]);}const _0x239951=this[_0xf04f('0x3d')][_0xf04f('0x88')]['get']('collaboration.channelId');this[_0xf04f('0x7b')]=!0x0,this['_addPendingAction'](),this[_0xf04f('0x6d')][_0xf04f('0x45')](_0x114023,_0x239951)[_0xf04f('0x7a')](()=>{this['_isPendingUpdate']=!0x1;})[_0xf04f('0xb5')](_0xcf118e=>{if(_0xcf118e)for(const _0x455939 of _0xcf118e)this[_0xf04f('0x78')]({'id':_0x455939['id'],'createdAt':_0x455939[_0xf04f('0x107')]});this['_removePendingAction'](),this['sendBufferedUpdates']();});}[_0xf04f('0xa5')](_0xe7bb15,_0x3061a2){let _0x3e0bf0=this[_0xf04f('0x3d')]['config']['get'](_0xf04f('0x65')),_0x3dfdc5=this[_0xf04f('0x3d')][_0xf04f('0x88')]['get']('rootsAttributes');if(void 0x0===_0x3e0bf0){_0x3e0bf0={};for(const _0x480861 of this[_0xf04f('0x3d')][_0xf04f('0x69')][_0xf04f('0x35')][_0xf04f('0x3')]())_0x3e0bf0[_0x480861]='';}if(_0xf04f('0x59')==typeof _0x3e0bf0&&(_0x3e0bf0={'main':_0x3e0bf0}),void 0x0===_0x3dfdc5){_0x3dfdc5={};for(const _0x20e578 of this[_0xf04f('0x3d')][_0xf04f('0x69')][_0xf04f('0x35')][_0xf04f('0x3')]())_0x3dfdc5[_0x20e578]={};}let _0x4db3fe=!0x1;const _0x27a120=Object['keys'](_0x3e0bf0),_0x495e37=Object[_0xf04f('0xb7')](_0xe7bb15);for(const _0xe1b062 of _0x27a120){if(_0x3e0bf0[_0xe1b062]!==_0xe7bb15[_0xe1b062]&&''!==_0x3e0bf0[_0xe1b062][_0xf04f('0xb6')]()){_0x4db3fe=!0x0;break;}if(!_0xb13a02(_0x3dfdc5[_0xe1b062],_0x3061a2[_0xe1b062])&&Object[_0xf04f('0xb7')](_0x3dfdc5[_0xe1b062])[_0xf04f('0xf1')]>0x0){_0x4db3fe=!0x0;break;}}_0x4db3fe||(_0x4db3fe=_0x495e37[_0xf04f('0x62')](_0x53fe28=>!this['editor'][_0xf04f('0x69')][_0xf04f('0x35')][_0xf04f('0xc7')](_0x53fe28))),_0x4db3fe&&_0x13ae98('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3e0bf0,'editorRootsAttributes':_0x3dfdc5,'revisionData':_0xe7bb15,'revisionRootsAttributes':_0x3061a2}),this[_0xf04f('0x3d')]['config'][_0xf04f('0xf8')](_0xf04f('0x65'),_0xe7bb15),this[_0xf04f('0x3d')][_0xf04f('0x88')][_0xf04f('0xf8')](_0xf04f('0x57'),_0x3061a2);}[_0xf04f('0x32')](){if(!this['_pendingAction']){const _0x3d0f70=this[_0xf04f('0x3d')]['plugins'][_0xf04f('0xbf')](_0xf04f('0x6c'));this[_0xf04f('0x54')]=_0x3d0f70[_0xf04f('0x1f')](_0x41dd9d(this['editor'][_0xf04f('0xb')],_0xf04f('0x9c')));}}[_0xf04f('0x14')](){this[_0xf04f('0x54')]&&(this[_0xf04f('0x3d')][_0xf04f('0x23')][_0xf04f('0xbf')]('PendingActions')[_0xf04f('0xdf')](this[_0xf04f('0x54')]),this['_pendingAction']=null);}[_0xf04f('0x81')](_0x8accda){const _0x32ec0a=this[_0xf04f('0x2d')]['getRevisions']();_0x32ec0a[_0xf04f('0x61')]();let _0x3bcb7b=0x0;for(;_0x3bcb7b<_0x32ec0a[_0xf04f('0xf1')];){const _0x12650c=_0x32ec0a[_0x3bcb7b];if(_0x12650c===this[_0xf04f('0xc1')]){_0x3bcb7b++;continue;}if(_0x12650c['id']===this['_initialRevisionId'])break;const _0x3391a3=_0x8accda['toVersion']-_0x12650c['toVersion']||_0x8accda[_0xf04f('0x6e')]-_0x12650c[_0xf04f('0x6e')];if(_0x3391a3>0x0)break;if(_0x3391a3<0x0)_0x3bcb7b++;else{if(!_0x8accda[_0xf04f('0x27')]&&_0x12650c[_0xf04f('0x27')])break;if(_0x12650c[_0xf04f('0x27')]||!_0x8accda[_0xf04f('0x27')]){if(_0x8accda[_0xf04f('0x107')]>_0x12650c[_0xf04f('0x107')])break;_0x3bcb7b++;}else _0x3bcb7b++;}}return _0x3bcb7b;}[_0xf04f('0x78')](_0x5868d7){const _0x2851f6=this['repository'][_0xf04f('0x1e')](_0x5868d7['id']);if(_0x5868d7['createdAt']&&(_0x5868d7[_0xf04f('0x107')]=new Date(_0x5868d7[_0xf04f('0x107')])),_0x5868d7[_0xf04f('0x98')]){const _0x134023=this[_0xf04f('0x3d')][_0xf04f('0x23')][_0xf04f('0xbf')](_0xf04f('0x70'));_0x5868d7['authors']=_0x5868d7[_0xf04f('0x98')][_0xf04f('0xbe')](_0x43a56b=>_0x134023[_0xf04f('0x6f')](_0x43a56b));}_0x2851f6[_0xf04f('0xa7')](_0x5868d7,!0x0);}[_0xf04f('0x8a')]({revision:_0xff972c=null,from:_0x2cf570=null,to:_0x175415=null}){_0x2cf570=null!==_0x2cf570?_0x2cf570:_0xff972c[_0xf04f('0x6e')],_0x175415=null!==_0x175415?_0x175415:_0xff972c[_0xf04f('0x17')];const _0x180e9a=this[_0xf04f('0x89')][_0xf04f('0xdc')](_0x2cf570,_0x175415),_0x309329={'diffData':_0x180e9a[_0xf04f('0x102')],'authorsIds':_0x180e9a[_0xf04f('0x98')],'fromVersion':_0x2cf570,'toVersion':_0x175415};if(!_0xff972c||_0x175415!==_0xff972c[_0xf04f('0x17')]){const _0x78c7c4=_0x175415-0x1,_0x4d3cd5=this[_0xf04f('0x4e')]['history'][_0xf04f('0x43')](_0x78c7c4);_0x309329[_0xf04f('0x107')]=_0x4d3cd5&&_0x4d3cd5['createdAt']||new Date();}if(this[_0xf04f('0x9b')]&&_0x2cf570===this[_0xf04f('0x9b')][_0xf04f('0x6e')])for(const _0x1abe8e of this[_0xf04f('0x9b')]['authors'])_0x309329[_0xf04f('0x98')][_0xf04f('0x21')](_0x1abe8e['id'])||_0x309329[_0xf04f('0x98')][_0xf04f('0xf2')](_0x1abe8e['id']);return _0x309329;}[_0xf04f('0x95')](_0x1a8c0e){if(!_0x1a8c0e||_0x1a8c0e['diffData'])return Promise['resolve']();{const _0x90ee79=this[_0xf04f('0x3d')][_0xf04f('0x88')][_0xf04f('0xbf')](_0xf04f('0x31'));return this['adapter'][_0xf04f('0x1e')]({'channelId':_0x90ee79,'revisionId':_0x1a8c0e['id']})['then'](_0x1da4ae=>{_0x1a8c0e[_0xf04f('0x102')]=_0x1da4ae[_0xf04f('0x102')];});}}[_0xf04f('0x7')](_0x2f59a2,_0x45c340,_0x1547db){if(this[_0xf04f('0xca')][_0xf04f('0xa6')](_0x2f59a2)){const _0x565dc2=this['_bufferedUpdates']['get'](_0x2f59a2);_0x45c340=_0x1547db?{..._0x565dc2,..._0x45c340}:{..._0x45c340,..._0x565dc2};}this['_bufferedUpdates'][_0xf04f('0xf8')](_0x2f59a2,_0x45c340);}[_0xf04f('0x2')](_0x5b76e8){const _0x29a966=this['repository'][_0xf04f('0x105')]();_0x29a966['reverse'](),_0x29a966[_0xf04f('0xfd')]();const _0x295a2a=_0x29a966['find'](_0x346ffc=>_0x346ffc[_0xf04f('0x17')]<=_0x5b76e8)[_0xf04f('0x17')];return _0x295a2a<this[_0xf04f('0x5e')]?this['_startingVersion']:_0x295a2a;}['_createInitialRevision'](_0x29f8c2){const _0x4d3bde=this[_0xf04f('0x2d')][_0xf04f('0x1e')](this[_0xf04f('0x2d')][_0xf04f('0xf1')]-0x1);if(_0x4d3bde)this[_0xf04f('0xa')]=_0x4d3bde['id'];else{const _0x41ba40=!this[_0xf04f('0x3d')][_0xf04f('0x69')]['document'][_0xf04f('0xc2')][_0xf04f('0xc0')](_0x20aa88=>this[_0xf04f('0x3d')][_0xf04f('0x69')]['hasContent'](_0x20aa88)),_0x2302c5=this[_0xf04f('0x3d')][_0xf04f('0x23')][_0xf04f('0xbf')](_0xf04f('0x70'))['me']['id'],_0x1d91d2=_0x41dd9d(this[_0xf04f('0x3d')][_0xf04f('0xb')],_0x41ba40?_0xf04f('0xf9'):_0xf04f('0x4c'));this['_makeRevision']({'from':_0x29f8c2,'to':_0x29f8c2,'id':this[_0xf04f('0xa')],'name':_0x1d91d2,'creatorId':_0x2302c5});}}['_createCurrentRevision'](_0x53ad6d){const _0x1c4377=this[_0xf04f('0x4e')][_0xf04f('0xaf')]();this['currentRevision']=this[_0xf04f('0x2d')][_0xf04f('0x1e')](_0x1c4377),this[_0xf04f('0xc1')]||(this[_0xf04f('0xc1')]=this[_0xf04f('0xf0')]({'from':_0x53ad6d,'to':_0x53ad6d,'id':_0x1c4377,'name':'','creatorId':null}));}['_makeRevision']({name:_0x130649,from:_0x10f981,to:_0x1c4339,creatorId:_0x4a90ac,id:_0x3ec8b6}){const _0x1d0ec3=this[_0xf04f('0x8a')]({'from':_0x10f981,'to':_0x1c4339});_0x1d0ec3['name']=_0x130649,_0x1d0ec3[_0xf04f('0xfb')]=_0x4a90ac,_0x1d0ec3['id']=_0x3ec8b6;const _0x408187=this[_0xf04f('0xf')](_0x1d0ec3);return this['adapter']&&this[_0xf04f('0x7')](_0x1d0ec3['id'],_0x1d0ec3,!0x0),_0x408187;}[_0xf04f('0x15')](){this['editor']['conversion'][_0xf04f('0xb4')](_0xf04f('0x10a'))[_0xf04f('0x5f')]({'model':'revision'});}['_removeRevisionMarkers'](_0x3c42d3){return(_0x3c42d3=_0x3c42d3[_0xf04f('0xd4')](_0x3ce6a4=>!_0x3ce6a4[_0xf04f('0x2c')]||_0xf04f('0xe0')!==_0x3ce6a4[_0xf04f('0x2c')]&&_0xf04f('0xe4')!==_0x3ce6a4[_0xf04f('0x2c')]))[_0xf04f('0xaa')](_0x479e10=>{'string'!=typeof _0x479e10&&(_0x479e10[_0xf04f('0x47')]=this[_0xf04f('0xec')](_0x479e10[_0xf04f('0x47')]),_0x479e10[_0xf04f('0xa2')]=_0x479e10[_0xf04f('0xa2')][_0xf04f('0xd4')](_0x5ad226=>!_0x5ad226[0x0][_0xf04f('0xe2')]('data-revision-')));}),_0x3c42d3;}}function J(_0x872330,_0x14fec7){const _0x434a48=_0x14fec7[_0xf04f('0xee')][_0xf04f('0xbc')][_0xf04f('0x35')];if(_0xf04f('0x59')==typeof _0x872330)return new _0x185ba4(_0x434a48,_0x872330);{const _0x23a9f5=_0x872330[_0xf04f('0x47')][_0xf04f('0xbe')](_0x3b04b1=>J(_0x3b04b1,_0x14fec7));return new(B[_0x872330['type']]||_0x25eda8)(_0x434a48,_0x872330[_0xf04f('0x2c')],_0x872330['attributes'],_0x23a9f5);}}class H{constructor(_0x5528e5){this['editor']=_0x5528e5,this[_0xf04f('0x2e')]=new Map(),this[_0xf04f('0x7e')]=-0x1,this['_lastTo']=-0x1,this[_0xf04f('0xfa')]=new Map(),this[_0xf04f('0xcf')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0xf04f('0xd8')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0xf04f('0xe8')]=new Map(),this[_0xf04f('0x99')]=new Map(),this[_0xf04f('0xae')]=new Map(),this['_touchedMarkers']=new Map(),this[_0xf04f('0x28')]=new Map(),this[_0xf04f('0x4')]=0x1;}['init'](_0x7c432c){this[_0xf04f('0xb1')]=_0x7c432c;const _0x486d42=new Map(),_0x2b7994=new Map(),_0xf6ca5e=this[_0xf04f('0x3d')][_0xf04f('0x69')][_0xf04f('0x35')][_0xf04f('0xc2')][_0xf04f('0xbe')](_0x5b83d7=>_0x5b83d7['rootName']);for(const _0x42114f of _0xf6ca5e){const _0x2c95ea=this[_0xf04f('0x3d')][_0xf04f('0x69')][_0xf04f('0x35')]['getRoot'](_0x42114f),_0x4f89a0=q(_0x2c95ea);_0x486d42['set'](_0x42114f,_0x4f89a0),_0x2b7994['set'](_0x42114f,Object[_0xf04f('0x101')](_0x2c95ea[_0xf04f('0x5')]()));}const _0x204aeb=Array['from'](this['editor'][_0xf04f('0x69')][_0xf04f('0x39')])[_0xf04f('0xbe')](_0x195a75=>[_0x195a75[_0xf04f('0x2c')],_0x195a75[_0xf04f('0x76')]()]),_0x28de78=this[_0xf04f('0xb1')][_0xf04f('0x53')];this[_0xf04f('0xf5')](_0x28de78,_0x486d42,_0x204aeb,_0x2b7994),this['_startingRevisionId']=this[_0xf04f('0x4')];const _0x3015ec=new Map(),_0x4e0789=new Map();for(const _0x304f37 of _0xf6ca5e){const _0x1712e3=G(_0x304f37);_0x3015ec[_0xf04f('0xf8')](_0x304f37,_0x1712e3),_0x4e0789[_0xf04f('0xf8')](_0x304f37,{});}this[_0xf04f('0xf5')](Number[_0xf04f('0x79')],_0x3015ec,[],_0x4e0789);}[_0xf04f('0xdc')](_0x32d50e,_0x3e10c8){if(this['_lastFrom']===_0x32d50e&&this[_0xf04f('0x4f')]<=_0x3e10c8)this['_savedMetaData'][_0xf04f('0xd3')]>0x1&&this['_removeMetaData'](this['_lastTo']),this[_0xf04f('0xa1')](this['_lastTo'],_0x3e10c8,!0x0);else{if(!this[_0xf04f('0x2e')][_0xf04f('0xa6')](_0x32d50e)){const _0x69a282=this['_getPreviousFrom'](_0x32d50e);this[_0xf04f('0xdb')](_0x69a282,_0x32d50e,!0x1);}this[_0xf04f('0xdb')](_0x32d50e,_0x3e10c8,!0x0);}return this[_0xf04f('0x7e')]=_0x32d50e,this[_0xf04f('0x4f')]=_0x3e10c8,this[_0xf04f('0xdd')]();}[_0xf04f('0xc5')](_0x4f389f){this[_0xf04f('0x10')](),this[_0xf04f('0x7e')]=_0x4f389f['fromVersion'],this[_0xf04f('0x4f')]=_0x4f389f['toVersion'];for(const _0x52a9fd in _0x4f389f['diffData']){const _0x3c2d40=_0x4f389f['diffData'][_0x52a9fd][_0xf04f('0x92')],_0x54de02=_0x193987(_0x4f389f[_0xf04f('0x102')][_0x52a9fd]['attributesBefore'])||{},_0x19c82c=this[_0xf04f('0xc3')](_0x4f389f[_0xf04f('0x102')][_0x52a9fd][_0xf04f('0xba')]);_0x19c82c[_0xf04f('0xcc')]=_0x52a9fd,_0x19c82c[_0xf04f('0x3b')]=!_0x3c2d40||!_0x3c2d40['isAttached'],_0x19c82c[_0xf04f('0x66')]=()=>_0x19c82c[_0xf04f('0x3b')],this[_0xf04f('0xd8')]['set'](_0x52a9fd,_0x19c82c),this[_0xf04f('0x22')][_0xf04f('0xf8')](_0x52a9fd,_0x54de02),_0x3c2d40&&this[_0xf04f('0x28')][_0xf04f('0xf8')](_0x52a9fd,_0x3c2d40);const _0x466778=this[_0xf04f('0x16')](_0x19c82c);this[_0xf04f('0x99')][_0xf04f('0xf8')](_0x52a9fd,_0x466778);for(const [_0x2f7764,_0xbaad4b]of _0x19c82c['markers']){if(!_0x2f7764[_0xf04f('0xe2')](_0xf04f('0x46')))continue;const _0x230bfb=_0x2f7764['split'](':')[0x2];for(const _0xa50f53 of _0xbaad4b[_0xf04f('0xbb')]({'singleCharacters':!0x0})){const _0x20daad=this[_0xf04f('0xe7')](_0xa50f53),_0x3313cb=_0xf04f('0x1')==_0xa50f53['type']?_0xa50f53[_0xf04f('0xd7')]['path'][_0xf04f('0x103')](0x0,-0x1):_0xa50f53[_0xf04f('0xd7')][_0xf04f('0x49')],_0x40a8c2=_0x466778[_0xf04f('0x51')](_0x3313cb)['getAttribute'](_0x20daad);this['_touched'][_0xf04f('0xf8')](_0x40a8c2,{'userId':_0x230bfb});}}}this[_0xf04f('0x106')]=this[_0xf04f('0x4')];const _0x369c5a=[...Array(this[_0xf04f('0x4')])['keys']()]['slice'](0x1)['filter'](_0x7e0f5a=>!this[_0xf04f('0xae')]['has'](_0x7e0f5a));let _0x244fbe=0x0;const _0x3dbc63=new Map();for(const _0x3d4c0a in _0x4f389f['diffData']){const _0x1fb17b=_0x4f389f[_0xf04f('0x102')][_0x3d4c0a][_0xf04f('0x92')],_0x34206d=_0x193987(_0x4f389f['diffData'][_0x3d4c0a][_0xf04f('0x86')])||{},_0x189ea9=this[_0xf04f('0xc3')](_0x4f389f['diffData'][_0x3d4c0a][_0xf04f('0x13')]);_0x189ea9[_0xf04f('0xcc')]=_0x3d4c0a,_0x189ea9[_0xf04f('0x3b')]=!_0x1fb17b||_0x1fb17b['isAttached'],_0x189ea9[_0xf04f('0x66')]=()=>_0x189ea9[_0xf04f('0x3b')],this[_0xf04f('0xcf')]['set'](_0x3d4c0a,_0x189ea9),this[_0xf04f('0x19')]['set'](_0x3d4c0a,_0x34206d);const _0xcbb5af=this['_makeIdsRoot'](_0x189ea9,Number[_0xf04f('0x79')]);this[_0xf04f('0xe8')][_0xf04f('0xf8')](_0x3d4c0a,_0xcbb5af),_0x3dbc63['set'](_0x3d4c0a,_0x189ea9[_0xf04f('0x66')]()?_0x34206d:{});for(const [_0x1d07c3,_0x104aae]of _0x189ea9[_0xf04f('0x39')]){if(!_0x1d07c3['startsWith']('revision:'))continue;const _0x3f9d96=_0x1d07c3[_0xf04f('0x20')](':')[0x2];for(const _0xe08ad2 of _0x104aae[_0xf04f('0xbb')]({'singleCharacters':!0x0})){const _0x337d14=this[_0xf04f('0xe7')](_0xe08ad2),_0x2c8ff8=this['_revisionId']++,_0x29abe8=_0xf04f('0x1')==_0xe08ad2['type']?_0xe08ad2[_0xf04f('0xd7')][_0xf04f('0x49')]['slice'](0x0,-0x1):_0xe08ad2[_0xf04f('0xd7')][_0xf04f('0x49')];_0xcbb5af[_0xf04f('0x51')](_0x29abe8)[_0xf04f('0xd1')](_0x337d14,_0x2c8ff8),this[_0xf04f('0xae')]['set'](_0x2c8ff8,{'userId':_0x3f9d96});}}for(const _0x558ccb of this[_0xf04f('0x3d')]['model'][_0xf04f('0x33')](_0x189ea9)[_0xf04f('0xbb')]({'singleCharacters':!0x0})){const _0x1913e5=this['_getVidAttributeName'](_0x558ccb),_0x5d97b5=_0xf04f('0x1')==_0x558ccb['type']?_0x558ccb[_0xf04f('0xd7')][_0xf04f('0x49')][_0xf04f('0x103')](0x0,-0x1):_0x558ccb[_0xf04f('0xd7')][_0xf04f('0x49')],_0x203eb1=_0xcbb5af['getNodeByPath'](_0x5d97b5);_0x203eb1[_0xf04f('0x9a')](_0x1913e5)>0x0||_0x203eb1[_0xf04f('0xd1')](_0x1913e5,_0x369c5a[_0x244fbe++]);}for(const [_0x1357ee,_0x321dc3]of _0x189ea9[_0xf04f('0x39')])_0x1357ee[_0xf04f('0xe2')](_0xf04f('0x46'))||this['_markers'][_0xf04f('0xf8')](_0x1357ee,_0x321dc3);}const _0x4df4a3=G('$graveyard');this[_0xf04f('0xd8')][_0xf04f('0xf8')](_0xf04f('0xda'),_0x4df4a3),this[_0xf04f('0x99')]['set'](_0xf04f('0xda'),this['_makeIdsRoot'](_0x4df4a3,0x1));const _0x229e2e=G(_0xf04f('0xda'));this['_diffRoots'][_0xf04f('0xf8')](_0xf04f('0xda'),_0x229e2e),this[_0xf04f('0xe8')]['set'](_0xf04f('0xda'),this[_0xf04f('0x16')](_0x229e2e,0x1));const _0x567cf1=Array['from'](this[_0xf04f('0xcf')])[_0xf04f('0xbe')](([_0x49d1e4,_0x572263])=>[_0x49d1e4,q(_0x572263)]);this[_0xf04f('0xf5')](this['_lastTo'],_0x567cf1,this[_0xf04f('0xfa')],_0x3dbc63);}[_0xf04f('0xc3')](_0x195734){const _0x1e4a1d=JSON[_0xf04f('0x1b')](_0x195734),_0x3256fb=this[_0xf04f('0x3d')][_0xf04f('0xee')][_0xf04f('0xbc')][_0xf04f('0x35')],_0xec3649=new _0x253c09(_0x3256fb,_0x1e4a1d[_0xf04f('0xbe')](_0x80666e=>J(_0x80666e,this[_0xf04f('0x3d')])));return this[_0xf04f('0x3d')]['data']['toModel'](_0xec3649);}[_0xf04f('0xf5')](_0x1ca89a,_0x3f77fc,_0x34d139,_0x44b10e){const _0x525f5c=new Map(_0x3f77fc),_0x229a4d=new Map(_0x193987(_0x44b10e)),_0x52114b=new Map();for(const [_0x591f2e,_0x3c22c3]of _0x34d139)_0x52114b[_0xf04f('0xf8')](_0x591f2e,{'start':_0x3c22c3[_0xf04f('0xa8')]['clone'](),'end':_0x3c22c3[_0xf04f('0x9d')][_0xf04f('0x3c')](),'rootName':_0x3c22c3['root'][_0xf04f('0xcc')]});this[_0xf04f('0x2e')][_0xf04f('0xf8')](_0x1ca89a,{'roots':_0x525f5c,'markers':_0x52114b,'rootsAttributes':_0x229a4d});}[_0xf04f('0xc9')](_0x311dd1){this['_savedMetaData'][_0xf04f('0xfc')](_0x311dd1);}[_0xf04f('0xc8')](){this[_0xf04f('0x10')](),this[_0xf04f('0x7e')]=-0x1,this[_0xf04f('0x4f')]=-0x1,this['_savedMetaData'][_0xf04f('0xcb')](),this[_0xf04f('0xf4')](this['source']);}[_0xf04f('0x10')](){this[_0xf04f('0xae')][_0xf04f('0xcb')](),this['_touchedMarkers'][_0xf04f('0xcb')](),this[_0xf04f('0x28')][_0xf04f('0xcb')](),this[_0xf04f('0xcf')][_0xf04f('0xcb')](),this[_0xf04f('0x19')][_0xf04f('0xcb')](),this[_0xf04f('0xd8')][_0xf04f('0xcb')](),this[_0xf04f('0x22')][_0xf04f('0xcb')](),this[_0xf04f('0xe8')]['clear'](),this[_0xf04f('0x99')][_0xf04f('0xcb')](),this[_0xf04f('0xfa')][_0xf04f('0xcb')](),this['_revisionId']=0x1,this[_0xf04f('0x106')]=this['_revisionId'];}[_0xf04f('0x16')](_0x9b445c,_0x2f09fe=null){let _0xda1240=null;_0x9b445c['is'](_0xf04f('0xcd'))||(_0xda1240=new _0x3ad5aa(_0x9b445c['name'],{'vid_start':null===_0x2f09fe?this[_0xf04f('0x4')]++:_0x2f09fe++}));const _0x2ffb17=[];for(const _0x13507a of _0x9b445c[_0xf04f('0x109')]())if(_0x13507a['is'](_0xf04f('0x52'))){_0x2ffb17['push'](this[_0xf04f('0x16')](_0x13507a,_0x2f09fe));const _0x10effc=_0x2ffb17[_0x2ffb17[_0xf04f('0xf1')]-0x1];null!==_0x2f09fe&&(_0x2f09fe=_0x10effc['is'](_0xf04f('0x52'),_0xf04f('0xde'))?_0x10effc[_0xf04f('0x9a')]('vid')+0x1:_0x10effc[_0xf04f('0x9a')](_0xf04f('0x85'))+0x1);}else for(let _0x550968=0x0;_0x550968<_0x13507a['offsetSize'];_0x550968++)_0x2ffb17[_0xf04f('0xf2')](new _0x3ad5aa(_0xf04f('0xde'),{'vid':null===_0x2f09fe?this[_0xf04f('0x4')]++:_0x2f09fe++}));if(_0x9b445c['is'](_0xf04f('0xcd'))){const _0x4f5fb1=G(_0x9b445c[_0xf04f('0xcc')]);return _0x4f5fb1[_0xf04f('0x18')](0x0,_0x2ffb17),_0x4f5fb1;}return _0xda1240[_0xf04f('0xd1')](_0xf04f('0x85'),null===_0x2f09fe?this[_0xf04f('0x4')]++:_0x2f09fe++),_0xda1240[_0xf04f('0x18')](0x0,_0x2ffb17),_0xda1240;}[_0xf04f('0xdb')](_0x545a64,_0x312faa,_0x3a83d4){this[_0xf04f('0x10')]();const {roots:_0x5b6b9d,markers:_0x35cf4c,rootsAttributes:_0x34e9d7}=this[_0xf04f('0x2e')]['get'](_0x545a64);this[_0xf04f('0xd8')]=new Map(_0x5b6b9d),this[_0xf04f('0x22')]=new Map(_0x193987(_0x34e9d7));for(const [_0x4f05e1,_0x3bf569]of this['_baseRoots'])if('$graveyard'!==_0x4f05e1&&(this['_diffRoots'][_0xf04f('0xf8')](_0x4f05e1,q(_0x3bf569)),this[_0xf04f('0x19')]=new Map(_0x193987(_0x34e9d7)),_0x3a83d4)){const _0x2f7c77=this['_revisionId'];this[_0xf04f('0xe8')][_0xf04f('0xf8')](_0x4f05e1,this[_0xf04f('0x16')](_0x3bf569)),this[_0xf04f('0x99')][_0xf04f('0xf8')](_0x4f05e1,this[_0xf04f('0x16')](_0x3bf569,_0x2f7c77));}this[_0xf04f('0x106')]=this[_0xf04f('0x4')],this['_diffRoots']['set'](_0xf04f('0xda'),q(this[_0xf04f('0xd8')]['get'](_0xf04f('0xda')))),_0x3a83d4&&this['_idsRoots'][_0xf04f('0xf8')]('$graveyard',this[_0xf04f('0x16')](this[_0xf04f('0xd8')]['get'](_0xf04f('0xda'))));for(const [_0x27961b,_0x42cf88]of _0x35cf4c){const _0x285998=this[_0xf04f('0xd8')][_0xf04f('0xbf')](_0x42cf88[_0xf04f('0xcc')]),_0x8e7567=this['_diffRoots'][_0xf04f('0xbf')](_0x42cf88[_0xf04f('0xcc')]),_0x23fa49=new _0x379b6c(this[_0xf04f('0xd')](_0x42cf88['start'],_0x285998),this[_0xf04f('0xd')](_0x42cf88['end'],_0x285998)),_0x9f8809=this[_0xf04f('0x91')](_0x23fa49,_0x8e7567);_0x285998['markers'][_0xf04f('0xf8')](_0x27961b,_0x23fa49),this[_0xf04f('0xfa')][_0xf04f('0xf8')](_0x27961b,_0x9f8809);}this[_0xf04f('0xa1')](_0x545a64,_0x312faa,_0x3a83d4);}[_0xf04f('0xa1')](_0x53fe32,_0x10bba0,_0x2c42ba){for(const _0x445942 of this[_0xf04f('0xb1')][_0xf04f('0x64')](_0x53fe32,_0x10bba0))this[_0xf04f('0xac')](_0x445942,_0x2c42ba);for(const _0xbc1d3 of this[_0xf04f('0xcf')][_0xf04f('0x37')]())_0xbc1d3[_0xf04f('0x39')][_0xf04f('0xcb')]();for(const [_0xd5c57c,_0x4f206b]of this[_0xf04f('0xfa')]){this[_0xf04f('0xcf')][_0xf04f('0xbf')](_0x4f206b['root'][_0xf04f('0xcc')])[_0xf04f('0x39')][_0xf04f('0xf8')](_0xd5c57c,_0x4f206b[_0xf04f('0x3c')]());}const _0x510a26=new Map(),_0x4832e7=new Map();for(const [_0x24879b,_0x2ed9d1]of this[_0xf04f('0xcf')])_0x510a26[_0xf04f('0xf8')](_0x24879b,q(_0x2ed9d1)),_0x4832e7[_0xf04f('0xf8')](_0x24879b,this[_0xf04f('0x19')]['get'](_0x24879b));this[_0xf04f('0xf5')](_0x10bba0,_0x510a26,this[_0xf04f('0xfa')],_0x4832e7);}[_0xf04f('0xeb')](_0x4423a7){const _0x27e7d4=Array['from'](this[_0xf04f('0x2e')]['keys']());_0x27e7d4[_0xf04f('0xc4')]((_0x42f620,_0x2e5c0c)=>_0x42f620-_0x2e5c0c),_0x27e7d4[_0xf04f('0x61')]();for(const _0x2e53da of _0x27e7d4)if(_0x2e53da<_0x4423a7)return _0x2e53da;return Number['NEGATIVE_INFINITY'];}[_0xf04f('0x60')](_0x236b31,_0x120aaa){const _0x3ad477=Array[_0xf04f('0x93')](_0x120aaa['markers'])[_0xf04f('0xbe')](([_0x4957b2,_0x130f5f])=>[_0x4957b2,this['_fixRange'](_0x130f5f,_0x236b31)]);_0x236b31[_0xf04f('0x39')]=new Map(_0x3ad477);}[_0xf04f('0xa0')](_0x5779ba){for(const _0x14992c of this[_0xf04f('0xfa')]['values']()){const _0x1d4855=_0x14992c['getTransformedByOperation'](_0x5779ba),_0x48711c=_0x379b6c[_0xf04f('0xc')](_0x1d4855);_0x14992c['start']=_0x48711c['start'],_0x14992c[_0xf04f('0x9d')]=_0x48711c['end'];}}[_0xf04f('0xac')](_0x59ff22,_0x26a16b){if(_0xf04f('0x8')==_0x59ff22['type']||_0xf04f('0x7d')==_0x59ff22[_0xf04f('0xc6')])return void this[_0xf04f('0x5d')](_0x59ff22,_0x26a16b);if(_0xf04f('0x8c')==_0x59ff22[_0xf04f('0xc6')]){const _0x5b33b6=_0x59ff22[_0xf04f('0x34')][_0xf04f('0x36')]['rootName'];this[_0xf04f('0xcf')]['has'](_0x5b33b6)||(this[_0xf04f('0xcf')][_0xf04f('0xf8')](_0x5b33b6,G(_0x5b33b6,!0x0)),this['_diffRootsAttributes'][_0xf04f('0xf8')](_0x5b33b6,{}),_0x26a16b&&this[_0xf04f('0xe8')]['set'](_0x5b33b6,G(_0x5b33b6,!0x0)));}else{if(_0xf04f('0x8f')==_0x59ff22[_0xf04f('0xc6')]||_0xf04f('0xb3')==_0x59ff22[_0xf04f('0xc6')]||_0xf04f('0x9f')==_0x59ff22[_0xf04f('0xc6')])return void this[_0xf04f('0xe')](_0x59ff22);}const _0x5471de=this['_cloneOperation'](_0x59ff22,this[_0xf04f('0xcf')]);if(_0xf04f('0x2b')!==_0x59ff22[_0xf04f('0xc6')]&&(_0x5471de['_execute'](),this['_transformMarkers'](_0x5471de)),_0x26a16b)switch(_0x5471de['type']){case'insert':this[_0xf04f('0xb8')](_0x59ff22);break;case'move':case _0xf04f('0xdf'):case _0xf04f('0xad'):this[_0xf04f('0x108')](_0x59ff22);break;case _0xf04f('0xe6'):this[_0xf04f('0x8d')](_0x59ff22);break;case _0xf04f('0x20'):this['_handleSplitOperation'](_0x59ff22);break;case _0xf04f('0x2b'):this[_0xf04f('0xed')](_0x59ff22);}}[_0xf04f('0x63')](_0x2d77f1,_0x384c47){const _0x4fbe39=_0x2d77f1[_0xf04f('0x3c')]();return _0x4fbe39[_0xf04f('0x82')]=_0x2d77f1['_authorId'],this[_0xf04f('0x1a')](_0x4fbe39,_0x384c47),_0x4fbe39;}[_0xf04f('0x8b')](_0x5f3e4a){return _0x5f3e4a[_0xf04f('0xbe')](_0x3c86fc=>{const _0x5607fd=this[_0xf04f('0xe7')](_0x3c86fc);return Number(_0x3c86fc[_0xf04f('0x11')][_0xf04f('0x9a')](_0x5607fd));});}[_0xf04f('0x9e')](_0x360b41,_0x2660a4){if(_0x360b41['is']('element',_0xf04f('0xde')))_0x2660a4[_0xf04f('0xf2')]({'item':_0x360b41,'type':'text'});else{_0x360b41['is'](_0xf04f('0x52'))&&_0x2660a4[_0xf04f('0xf2')]({'item':_0x360b41,'type':'elementStart'});for(const _0x4fec34 of _0x360b41[_0xf04f('0x109')]())this[_0xf04f('0x9e')](_0x4fec34,_0x2660a4);_0x360b41['is']('element')&&_0x2660a4[_0xf04f('0xf2')]({'item':_0x360b41,'type':'elementEnd'});}return _0x2660a4;}[_0xf04f('0xdd')](){const _0x271191=new Map(this[_0xf04f('0xae')]),_0x34bb66=new Map(_0x271191),_0x1bd8b2=new Map(),_0x335660={'insertions':{},'deletions':{}},_0x158ba2={'insertions':{},'deletions':{}},_0x11841b=new Map(),_0x4a8138=new Set([...this[_0xf04f('0xd8')][_0xf04f('0xb7')](),...this[_0xf04f('0xcf')][_0xf04f('0xb7')]()]);_0x4a8138[_0xf04f('0xfc')](_0xf04f('0xda'));for(const _0x3248a0 of _0x4a8138){const _0xc77f02=this[_0xf04f('0xcf')][_0xf04f('0xbf')](_0x3248a0)||G(_0x3248a0,!0x1),_0x114303=this[_0xf04f('0xd8')][_0xf04f('0xbf')](_0x3248a0)||G(_0x3248a0,!0x1);_0xc77f02[_0xf04f('0x66')]()||_0x114303['isAttached']()?(_0x335660[_0xf04f('0x13')][_0x3248a0]=q(_0xc77f02),_0x335660[_0xf04f('0xba')][_0x3248a0]=q(_0x114303),this['_copyMarkers'](_0x335660['deletions'][_0x3248a0],_0x114303),this[_0xf04f('0x60')](_0x335660[_0xf04f('0x13')][_0x3248a0],_0xc77f02),_0x158ba2[_0xf04f('0x13')][_0x3248a0]=this[_0xf04f('0x9e')](this[_0xf04f('0xe8')][_0xf04f('0xbf')](_0x3248a0),[]),_0x158ba2[_0xf04f('0xba')][_0x3248a0]=this[_0xf04f('0x9e')](this['_baseIdsRoots']['get'](_0x3248a0)||G(_0x3248a0,!0x1),[])):_0x4a8138[_0xf04f('0xfc')](_0x3248a0);}for(const _0x43856b of _0x4a8138){const _0x4dbdf4=_0x158ba2[_0xf04f('0x13')][_0x43856b];for(const _0x2c2475 of _0x4dbdf4){const _0x1730ba=this[_0xf04f('0xe7')](_0x2c2475),_0x5934ce=_0x2c2475['item'][_0xf04f('0x9a')](_0x1730ba);_0x34bb66[_0xf04f('0xfc')](_0x5934ce),_0x5934ce>=this['_startingRevisionId']&&_0x1bd8b2[_0xf04f('0xf8')](_0x5934ce,_0x271191[_0xf04f('0xbf')](_0x5934ce));}}for(const _0x5e4960 of _0x4a8138){const _0x125c8e=_0x158ba2[_0xf04f('0x13')][_0x5e4960],_0x47ff86=this['_getBaseVids'](_0x158ba2['deletions'][_0x5e4960]);let _0x158aae=0x0;for(const _0x285dc7 of _0x125c8e){const _0xf8e56c=this['_getVidAttributeName'](_0x285dc7),_0x4f8436=_0x285dc7[_0xf04f('0x11')][_0xf04f('0x9a')](_0xf8e56c);if(!_0x1bd8b2[_0xf04f('0xa6')](_0x4f8436)&&!_0x11841b[_0xf04f('0xa6')](_0x4f8436)){if(_0x34bb66['has'](_0x4f8436))_0x158aae++;else{if(_0x4f8436!=_0x47ff86[_0x158aae]){const _0xc0aa81=_0x271191[_0xf04f('0xbf')](_0x4f8436)||_0x271191[_0xf04f('0xbf')](_0x47ff86[_0x158aae]);for(;_0x4f8436!=_0x47ff86[_0x158aae];)_0x34bb66[_0xf04f('0xa6')](_0x47ff86[_0x158aae])||(_0x11841b['set'](_0x47ff86[_0x158aae],_0xc0aa81),_0x271191['set'](_0x47ff86[_0x158aae],_0xc0aa81)),_0x158aae++;}_0x158aae++;}}}}for(const _0x13cabe of _0x4a8138){const _0x5a627f=_0x158ba2['insertions'][_0x13cabe];for(const _0x3bd253 of _0x5a627f){const _0x57da50=this['_getVidAttributeName'](_0x3bd253),_0x8b2e91=_0x3bd253[_0xf04f('0x11')][_0xf04f('0x9a')](_0x57da50);if(_0x11841b[_0xf04f('0xa6')](_0x8b2e91)){const _0x4f91c4=_0x11841b[_0xf04f('0xbf')](_0x8b2e91);_0x34bb66[_0xf04f('0xa6')](_0x8b2e91)||_0x34bb66[_0xf04f('0xf8')](_0x8b2e91,{..._0x4f91c4}),_0x1bd8b2[_0xf04f('0xf8')](_0x8b2e91,{..._0x4f91c4});}}}for(const _0x2ccbb8 of _0x34bb66[_0xf04f('0xb7')]())_0x2ccbb8>=this[_0xf04f('0x106')]&&_0x34bb66['delete'](_0x2ccbb8);const _0x39fc1a=new Map();for(const _0x5bfb43 of _0x4a8138){let _0x2695bf=_0x158ba2['insertions'][_0x5bfb43];for(const _0x1c449d of _0x2695bf)if(_0x1c449d[_0xf04f('0x11')]['is'](_0xf04f('0x52'),_0xf04f('0x3a'))){const _0x4bb9e1=this[_0xf04f('0xe7')](_0x1c449d),_0x5c2710=_0x1c449d[_0xf04f('0x11')]['getAttribute'](_0x4bb9e1);if(_0x1bd8b2[_0xf04f('0xa6')](_0x5c2710)){const _0x29197f=_0x1c449d[_0xf04f('0x11')][_0xf04f('0xe5')][_0xf04f('0xe5')][_0xf04f('0x9a')](_0xf04f('0xa9')),_0x1b7a2f=_0x39fc1a[_0xf04f('0xbf')](_0x29197f)||new Set();_0x1b7a2f['add'](_0x1bd8b2['get'](_0x5c2710)[_0xf04f('0xef')]),_0x39fc1a[_0xf04f('0xf8')](_0x29197f,_0x1b7a2f);}}_0x2695bf=_0x158ba2[_0xf04f('0xba')][_0x5bfb43];for(const _0x25c1af of _0x2695bf)if(_0x25c1af[_0xf04f('0x11')]['is']('element',_0xf04f('0x3a'))){const _0xcf3f99=this[_0xf04f('0xe7')](_0x25c1af),_0x664ff3=_0x25c1af[_0xf04f('0x11')][_0xf04f('0x9a')](_0xcf3f99);if(_0x34bb66[_0xf04f('0xa6')](_0x664ff3)){const _0x475916=_0x25c1af[_0xf04f('0x11')]['parent'][_0xf04f('0xe5')][_0xf04f('0x9a')](_0xf04f('0xa9')),_0x37fe18=_0x39fc1a[_0xf04f('0xbf')](_0x475916)||new Set();_0x37fe18[_0xf04f('0x1f')](_0x34bb66[_0xf04f('0xbf')](_0x664ff3)['userId']),_0x39fc1a['set'](_0x475916,_0x37fe18);}}for(const _0x511f89 of _0x39fc1a[_0xf04f('0xb7')]())(_0x1bd8b2[_0xf04f('0xa6')](_0x511f89)||_0x34bb66[_0xf04f('0xa6')](_0x511f89))&&_0x39fc1a[_0xf04f('0xfc')](_0x511f89);}for(const _0x578017 of _0x4a8138){const _0x1eb584=_0x158ba2[_0xf04f('0x13')][_0x578017];let _0x205ba2=null,_0x5e2be5=null;for(const _0x539de6 of _0x1eb584){const _0x5dac52=this[_0xf04f('0xe7')](_0x539de6),_0x5611ec=_0x539de6[_0xf04f('0x11')]['getAttribute'](_0x5dac52),_0x2ed497=_0x39fc1a[_0xf04f('0xbf')](_0x5611ec);_0x2ed497&&_0xf04f('0xce')==_0x539de6['type']&&(_0x205ba2=Array[_0xf04f('0x93')](_0x2ed497)[0x0],_0x5e2be5=_0x539de6[_0xf04f('0x11')][_0xf04f('0x9a')](_0xf04f('0x85'))),_0x205ba2&&(_0x34bb66[_0xf04f('0xf8')](_0x5611ec,{'userId':_0x205ba2}),_0x1bd8b2[_0xf04f('0xf8')](_0x5611ec,{'userId':_0x205ba2})),_0x5611ec==_0x5e2be5&&(_0x205ba2=null,_0x5e2be5=null);}}const _0x51f358={},_0x217d2a=new Set();for(const _0x775815 of _0x4a8138){const _0x1891f3=_0x335660['deletions'][_0x775815],_0x497bba=_0x335660[_0xf04f('0x13')][_0x775815];for(const {userId:_0x19c414}of this[_0xf04f('0x8e')][_0xf04f('0x37')]())null!==_0x19c414&&_0x217d2a['add'](_0x19c414);for(const {userId:_0x11b22a}of this[_0xf04f('0x28')][_0xf04f('0x37')]())null!==_0x11b22a&&_0x217d2a[_0xf04f('0x1f')](_0x11b22a);this[_0xf04f('0x9')](_0x497bba,_0x158ba2[_0xf04f('0x13')][_0x775815],_0x1bd8b2,_0xf04f('0x104'),_0x217d2a),this[_0xf04f('0x9')](_0x1891f3,_0x158ba2[_0xf04f('0xba')][_0x775815],_0x34bb66,'deletion',_0x217d2a),_0x51f358[_0x775815]={'insertions':this[_0xf04f('0x40')](_0x497bba),'deletions':this[_0xf04f('0x40')](_0x1891f3),'attachChange':this[_0xf04f('0x28')][_0xf04f('0xbf')](_0x775815)||null,'attributesBefore':_0x193987(this[_0xf04f('0x22')][_0xf04f('0xbf')](_0x775815))||{},'attributesAfter':_0x193987(this[_0xf04f('0x19')]['get'](_0x775815))};}return{'diffData':_0x51f358,'authorsIds':Array['from'](_0x217d2a)};}[_0xf04f('0xb0')](_0x393485){for(const [,_0x470190]of _0x393485[_0xf04f('0x39')]){const _0x35723c=_0x470190[_0xf04f('0xa8')]['getAncestors']()['filter'](_0x404e64=>_0xf04f('0x3a')==_0x404e64[_0xf04f('0x2c')]);for(const _0x390902 of _0x35723c)0x1==_0x390902[_0xf04f('0x94')]&&_0x390902[_0xf04f('0x6b')](0x0)['is'](_0xf04f('0x52'),_0xf04f('0x97'))&&_0x390902[_0xf04f('0x6b')](0x0)[_0xf04f('0xd1')](_0xf04f('0xe9'),!0x0);}}['_prepareViewToSave'](_0xdbd7df){this[_0xf04f('0xb0')](_0xdbd7df);const _0x51c95b=this[_0xf04f('0x3d')][_0xf04f('0xf6')][_0xf04f('0xd0')](_0xdbd7df,{}),_0x3d019f=Array['from'](_0x51c95b[_0xf04f('0x109')]())[_0xf04f('0xbe')](_0x212506=>this[_0xf04f('0x26')](_0x212506));return JSON[_0xf04f('0x5c')](_0x3d019f);}[_0xf04f('0x26')](_0x5f12ce){if(_0x5f12ce['is']('$text'))return _0x5f12ce['data'];{const _0x916169=_0x5f12ce;return{'type':Object[_0xf04f('0xb7')](B)[_0xf04f('0xc0')](_0x454341=>_0x5f12ce instanceof B[_0x454341]),'name':_0x916169[_0xf04f('0x2c')],'attributes':Array[_0xf04f('0x93')](_0x916169[_0xf04f('0x5')]()),'children':Array[_0xf04f('0x93')](_0x916169[_0xf04f('0x109')]())['map'](_0x146536=>this[_0xf04f('0x26')](_0x146536))};}}[_0xf04f('0x9')](_0xfa9a90,_0x14957b,_0x384bf9,_0x25ff31,_0x3c5dcd){let _0x2c112d=null,_0x290f6c=null,_0x4b3bb7=0x0;const _0x35c31e=this[_0xf04f('0x3d')][_0xf04f('0x69')];for(let _0x3bfc89=0x0;_0x3bfc89<_0x14957b[_0xf04f('0xf1')];_0x3bfc89++){const _0x2c95d5=this[_0xf04f('0xe7')](_0x14957b[_0x3bfc89]),_0x3a9234=_0x14957b[_0x3bfc89]['item'][_0xf04f('0x9a')](_0x2c95d5),_0x1fd629=_0x384bf9[_0xf04f('0xbf')](_0x3a9234),_0x57c7e4=_0x3bfc89==_0x14957b[_0xf04f('0xf1')]-0x1;(!_0x2c112d&&_0x1fd629&&(_0x2c112d=_0x1fd629,_0x290f6c=_0x14957b[_0x3bfc89]),_0x2c112d&&(!_0x1fd629||_0x1fd629[_0xf04f('0xef')]!=_0x2c112d['userId']))&&(_0x52718e(_0x1fd629,L(_0x290f6c,_0xfa9a90,_0x35c31e),L(_0x14957b[_0x3bfc89],_0xfa9a90,_0x35c31e)),_0x2c112d=_0x1fd629||null,_0x290f6c=_0x1fd629?_0x14957b[_0x3bfc89]:null),_0x2c112d&&_0x57c7e4&&_0x52718e(_0x1fd629,L(_0x290f6c,_0xfa9a90,_0x35c31e),W(_0x14957b[_0x3bfc89],_0xfa9a90,_0x35c31e));}function _0x52718e(_0x284731,_0x1d78f1,_0x5c317e){const _0x43bd0d=_0x2c112d[_0xf04f('0xef')],_0x2c92d0=_0xf04f('0x46')+_0x25ff31+':'+_0x43bd0d+':'+_0x4b3bb7++,_0x50ff29=_0x35c31e[_0xf04f('0x71')](_0x1d78f1,_0x5c317e);_0xfa9a90[_0xf04f('0x39')][_0xf04f('0xf8')](_0x2c92d0,_0x50ff29),null!==_0x43bd0d&&_0x3c5dcd[_0xf04f('0x1f')](_0x43bd0d);}}[_0xf04f('0xe7')](_0x2dc403){switch(_0x2dc403['type']){case _0xf04f('0xce'):return _0xf04f('0xa9');case _0xf04f('0x1'):return _0xf04f('0x85');default:return'vid';}}['_fixOperation'](_0x17a1ed,_0x27f2b1){_0x17a1ed[_0xf04f('0x2a')]=null;for(const _0x47c88e in _0x17a1ed){const _0x3779cc=_0x17a1ed[_0x47c88e];if(_0x3779cc instanceof _0x49b3c1){const _0x4fa0fd=_0x27f2b1[_0xf04f('0xbf')](_0x3779cc[_0xf04f('0x36')]['rootName']);_0x17a1ed[_0x47c88e]=this[_0xf04f('0xd')](_0x3779cc,_0x4fa0fd);}if(_0x3779cc instanceof _0x379b6c){const _0x2de2d6=_0x27f2b1[_0xf04f('0xbf')](_0x3779cc['root'][_0xf04f('0xcc')]);_0x17a1ed[_0x47c88e]=this[_0xf04f('0x91')](_0x3779cc,_0x2de2d6);}_0xf04f('0x36')===_0x47c88e&&(_0x17a1ed['root']=_0x27f2b1[_0xf04f('0xbf')](_0x17a1ed['root'][_0xf04f('0xcc')]));}}[_0xf04f('0x91')](_0x3231b1,_0x261664){return this[_0xf04f('0x3d')]['model'][_0xf04f('0x71')](this['_fixPosition'](_0x3231b1[_0xf04f('0xa8')],_0x261664),this[_0xf04f('0xd')](_0x3231b1[_0xf04f('0x9d')],_0x261664));}['_fixPosition'](_0x417155,_0x407d20){return this[_0xf04f('0x3d')]['model']['createPositionFromPath'](_0x407d20,_0x417155[_0xf04f('0x49')],_0x417155[_0xf04f('0x83')]);}[_0xf04f('0xb8')](_0x2a563e){const _0x3f00ba=this[_0xf04f('0xe8')][_0xf04f('0xbf')](_0x2a563e[_0xf04f('0x34')][_0xf04f('0x36')][_0xf04f('0xcc')]),_0x28ef41=this[_0xf04f('0xd')](_0x2a563e['position'],_0x3f00ba),_0x2c5947=null===_0x2a563e[_0xf04f('0x82')]?null:_0x2a563e[_0xf04f('0x82')]||this[_0xf04f('0x3d')][_0xf04f('0x23')][_0xf04f('0xbf')](_0xf04f('0x70'))['me']['id'],_0x26d8a3=_0x28ef41[_0xf04f('0xe5')],_0x580a78=this[_0xf04f('0x4')],_0x635dd5=[];for(const _0x7fd3b4 of _0x2a563e[_0xf04f('0xf3')])if(_0x7fd3b4['is'](_0xf04f('0x52')))_0x635dd5[_0xf04f('0xf2')](this[_0xf04f('0x16')](_0x7fd3b4));else for(let _0xf8345f=0x0;_0xf8345f<_0x7fd3b4[_0xf04f('0x44')];_0xf8345f++)_0x635dd5[_0xf04f('0xf2')](new _0x3ad5aa('$text',{'vid':this[_0xf04f('0x4')]++}));const _0x403d75=this[_0xf04f('0x4')];for(let _0x2ae116=_0x580a78;_0x2ae116<_0x403d75;_0x2ae116++)this[_0xf04f('0xae')]['set'](_0x2ae116,{'userId':_0x2c5947});_0x26d8a3[_0xf04f('0x18')](_0x28ef41[_0xf04f('0x56')],_0x635dd5);}[_0xf04f('0x108')](_0x5631c0){(_0x5631c0=this['_cloneOperation'](_0x5631c0,this[_0xf04f('0xe8')]))[_0xf04f('0x30')]();const _0x4a3279=null===_0x5631c0[_0xf04f('0x82')]?null:_0x5631c0[_0xf04f('0x82')]||this[_0xf04f('0x3d')][_0xf04f('0x23')][_0xf04f('0xbf')](_0xf04f('0x70'))['me']['id'],_0x550819=_0x5631c0[_0xf04f('0xb2')](),_0x439a07=_0x550819[_0xf04f('0xe5')],_0x24a99b=_0x550819[_0xf04f('0x56')];!function _0x19e46b(_0x24b117,_0x1cb610,_0x11ede8,_0xa0774f){for(let _0x1151f7=_0x11ede8;_0x1151f7<_0xa0774f;_0x1151f7++){const _0x4da9eb=_0x1cb610['getChild'](_0x1151f7);_0x4da9eb['is'](_0xf04f('0x52'),_0xf04f('0xde'))?_0x24b117[_0xf04f('0xf8')](_0x4da9eb[_0xf04f('0x9a')](_0xf04f('0x41')),{'userId':_0x4a3279}):(_0x24b117[_0xf04f('0xf8')](_0x4da9eb[_0xf04f('0x9a')](_0xf04f('0xa9')),{'userId':_0x4a3279}),_0x19e46b(_0x24b117,_0x4da9eb,0x0,_0x4da9eb[_0xf04f('0x94')]),_0x24b117[_0xf04f('0xf8')](_0x4da9eb[_0xf04f('0x9a')](_0xf04f('0x85')),{'userId':_0x4a3279}));}}(this[_0xf04f('0xae')],_0x439a07,_0x24a99b,_0x24a99b+_0x5631c0['howMany']);}[_0xf04f('0x8d')](_0x13a958){const _0x4fafea=null===(_0x13a958=this[_0xf04f('0x63')](_0x13a958,this[_0xf04f('0xe8')]))[_0xf04f('0x82')]?null:_0x13a958[_0xf04f('0x82')]||this['editor'][_0xf04f('0x23')]['get'](_0xf04f('0x70'))['me']['id'],_0x5de034=_0x13a958[_0xf04f('0x68')]['parent'],_0x22004d=_0x13a958[_0xf04f('0x72')][_0xf04f('0xe5')],_0x5b9c06=_0x5de034['getAttribute']('vid_end'),_0x38eb26=_0x22004d[_0xf04f('0x9a')](_0xf04f('0xa9'));_0x5de034[_0xf04f('0xd1')](_0xf04f('0x85'),_0x22004d[_0xf04f('0x9a')](_0xf04f('0x85'))),_0x22004d[_0xf04f('0xd1')](_0xf04f('0x85'),_0x5b9c06),this[_0xf04f('0xae')]['set'](_0x38eb26,{'userId':_0x4fafea}),this['_touched'][_0xf04f('0xf8')](_0x5b9c06,{'userId':_0x4fafea}),_0x13a958[_0xf04f('0x30')]();}[_0xf04f('0xb9')](_0x874454){const _0x373d0c=null===(_0x874454=this[_0xf04f('0x63')](_0x874454,this[_0xf04f('0xe8')]))[_0xf04f('0x82')]?null:_0x874454['_authorId']||this[_0xf04f('0x3d')][_0xf04f('0x23')]['get'](_0xf04f('0x70'))['me']['id'],_0x598ed0=_0x874454[_0xf04f('0x5a')],_0x16d620=_0x874454[_0xf04f('0x4d')][_0xf04f('0xe5')];_0x874454[_0xf04f('0x30')]();const _0x3bd35a=_0x16d620[_0xf04f('0x9a')](_0xf04f('0x85')),_0x4d41e5=_0x874454[_0xf04f('0x74')][_0xf04f('0xfe')];if(_0x598ed0){const _0x15abd5=_0x4d41e5[_0xf04f('0x9a')](_0xf04f('0x85')),_0x319ef0=_0x16d620['getAttribute']('vid_end');_0x16d620[_0xf04f('0xd1')]('vid_end',_0x15abd5),_0x4d41e5[_0xf04f('0xd1')](_0xf04f('0x85'),_0x319ef0),this[_0xf04f('0xae')][_0xf04f('0xf8')](_0x16d620[_0xf04f('0x9a')](_0xf04f('0x85')),{'userId':_0x373d0c}),this[_0xf04f('0xae')][_0xf04f('0xf8')](_0x4d41e5[_0xf04f('0x9a')](_0xf04f('0xa9')),{'userId':_0x373d0c});}else{const _0x5eb8da=this[_0xf04f('0x4')]++,_0x2bc628=this[_0xf04f('0x4')]++;_0x16d620['_setAttribute'](_0xf04f('0x85'),_0x5eb8da),_0x4d41e5[_0xf04f('0xd1')](_0xf04f('0xa9'),_0x2bc628),_0x4d41e5[_0xf04f('0xd1')](_0xf04f('0x85'),_0x3bd35a),this['_touched']['set'](_0x5eb8da,{'userId':_0x373d0c}),this['_touched']['set'](_0x2bc628,{'userId':_0x373d0c});}}[_0xf04f('0xed')](_0x5c6278){if(!_0x5c6278['affectsData'])return;const _0x59cf91=(_0x5c6278=this[_0xf04f('0x63')](_0x5c6278,this[_0xf04f('0xcf')]))[_0xf04f('0xbd')]?_0x5c6278[_0xf04f('0xbd')][_0xf04f('0x36')]:null,_0x2294db=_0x5c6278[_0xf04f('0x80')]?_0x5c6278['newRange'][_0xf04f('0x36')]:null;_0x59cf91&&this['_markers'][_0xf04f('0xfc')](_0x5c6278[_0xf04f('0x2c')]),_0x2294db&&this[_0xf04f('0xfa')][_0xf04f('0xf8')](_0x5c6278[_0xf04f('0x2c')],_0x5c6278[_0xf04f('0x80')][_0xf04f('0x3c')]());const _0x24ef89=null===_0x5c6278[_0xf04f('0x82')]?null:_0x5c6278[_0xf04f('0x82')]||this[_0xf04f('0x3d')][_0xf04f('0x23')]['get']('Users')['me']['id'],_0x17d2fb=_0x5c6278[_0xf04f('0x2c')];if(!this[_0xf04f('0x8e')][_0xf04f('0xa6')](_0x17d2fb))return void this[_0xf04f('0x8e')][_0xf04f('0xf8')](_0x17d2fb,{'range':_0x5c6278[_0xf04f('0xbd')],'userId':_0x24ef89});const _0x3a13db=this[_0xf04f('0x8e')][_0xf04f('0xbf')](_0x17d2fb),_0x969c17=_0x3a13db[_0xf04f('0x7f')],_0x1bd541=_0x5c6278[_0xf04f('0x80')];null==_0x969c17&&null==_0x1bd541||_0x969c17&&_0x1bd541&&_0x969c17[_0xf04f('0xab')](_0x1bd541)?this[_0xf04f('0x8e')]['delete'](_0x5c6278[_0xf04f('0x2c')]):_0x3a13db[_0xf04f('0xef')]=_0x24ef89;}['_handleRootOperation'](_0x5b33e0,_0x18c099){this['_diffRoots']['has'](_0x5b33e0['rootName'])?this[_0xf04f('0xcf')]['get'](_0x5b33e0[_0xf04f('0xcc')])[_0xf04f('0x3b')]=_0x5b33e0['isAdd']:(this['_diffRoots'][_0xf04f('0xf8')](_0x5b33e0['rootName'],G(_0x5b33e0['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5b33e0[_0xf04f('0xcc')],{}),_0x18c099&&this['_idsRoots'][_0xf04f('0xf8')](_0x5b33e0['rootName'],G(_0x5b33e0['rootName'],!0x0)));const _0x2a2600=null===_0x5b33e0['_authorId']?null:_0x5b33e0[_0xf04f('0x82')]||this['editor']['plugins']['get'](_0xf04f('0x70'))['me']['id'],_0x325c78=this[_0xf04f('0x28')][_0xf04f('0xbf')](_0x5b33e0[_0xf04f('0xcc')]);_0x325c78&&_0x325c78[_0xf04f('0xef')]===_0x2a2600?this['_touchedRoots'][_0xf04f('0xfc')](_0x5b33e0[_0xf04f('0xcc')]):this[_0xf04f('0x28')]['set'](_0x5b33e0[_0xf04f('0xcc')],{'userId':_0x2a2600,'isAttached':_0x5b33e0['isAdd']});}[_0xf04f('0xe')](_0xd87eb9){const _0x16cb73=this[_0xf04f('0x19')][_0xf04f('0xbf')](_0xd87eb9['root'][_0xf04f('0xcc')]);null===_0xd87eb9['newValue']?delete _0x16cb73[_0xd87eb9[_0xf04f('0x90')]]:_0x16cb73[_0xd87eb9['key']]=_0xd87eb9[_0xf04f('0xa4')];}}function q(_0x564914){const _0x56b3cb=G(_0x564914[_0xf04f('0xcc')],_0x564914['isAttached']());for(const _0x5bbe79 of _0x564914[_0xf04f('0x109')]()){const _0x204451=_0x5bbe79[_0xf04f('0x7c')](!0x0);_0x56b3cb[_0xf04f('0xd5')](_0x204451);}return _0x56b3cb;}function G(_0x1e464b,_0x357efa=!0x0){const _0x53318a=new _0x5dbff3();return _0x53318a[_0xf04f('0xcc')]=_0x1e464b,_0x53318a[_0xf04f('0x3b')]=_0x357efa,_0x53318a[_0xf04f('0x66')]=()=>_0x53318a[_0xf04f('0x3b')],_0x53318a;}function L(_0x4a4519,_0x1fcc73,_0x2e1cf4){const _0x4e66a4='elementEnd'==_0x4a4519[_0xf04f('0xc6')]?_0x2e1cf4[_0xf04f('0x1c')](_0x4a4519['item'],_0xf04f('0x9d')):_0x2e1cf4[_0xf04f('0x0')](_0x4a4519['item']);return _0x2e1cf4[_0xf04f('0x4a')](_0x1fcc73,_0x4e66a4['path'],_0x4e66a4[_0xf04f('0x83')]);}function W(_0x4b4966,_0x3d912e,_0x4563d6){const _0x363ff3=_0xf04f('0xce')==_0x4b4966['type']?_0x4563d6['createPositionAt'](_0x4b4966['item'],0x0):_0x4563d6[_0xf04f('0xf7')](_0x4b4966[_0xf04f('0x11')]);return _0x4563d6[_0xf04f('0x4a')](_0x3d912e,_0x363ff3['path'],_0x363ff3[_0xf04f('0x83')]);}
|