@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230727.0 → 0.0.0-nightly-20230729.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/src/revisiontracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3d04=['_makeModelFromViewString','start','marked','keepParagraph','_handleRootOperation','childCount','getNodeByPath','_pendingAction','repository','setRevisionData','revision:','clone','useFillerType','fromVersion','values','conversion','$graveyard','deletions','getAncestors','elementStart','sort','insertions','creator','getUser','_operations','createPositionAfter','plugins','_update','filter','_revisionDataBuilder','RevisionsRepository','_prepareViewToSave','attachChange','revision-end','_authorId','_saveMetaData','_processRootBeforeSave','getMovedRangeStart','getIndex','_touched','isAttached','name','markerToData','_findInsertionIndex','data-revision-','getCurrentRevisionId','includes','_calculateMetaData','createdAt','editor','_handleOperation','requires','NEGATIVE_INFINITY','reverse','key','type','_lastFrom','_source','shift','_removePendingAction','path','_applyOperations','roots','_setConversion','size','_markers','finally','get','_copyMarkers','history','_getPreviousFrom','graveyardPosition','_lastTo','collaboration.channelId','userId','locale','max','from','find','_generateTape','upcast','splitPosition','diffData','getTime','documentFragment','getAttribute','getRoot','createPositionAt','insert','_getBaseVids','_clone','text','ready','revision','previousPosition','sendBufferedUpdates','toModel','_removeRevisionMarkers','some','string','_continueCurrentRevision','_insertChild','newRange','_cloneOperation','_createInitialRevision','paragraph','_fixPosition','newValue','model','markers','revision-start','_addPendingAction','root','insertion','rootName','afterInit','clear','config','_diffRootsAttributes','authors','push','createPositionBefore','addRoot','_isPendingUpdate','slice','processor','attributesBefore','item','_getVidAttributeName','insertionPosition','_touchedMarkers','end','document','$text','initial','_baseIdsRoots','_fixOperation','_savedMetaData','oldRange','source','_replaceEditorDataWithRevisionData','parse','then','vid_end','_initialRevisionId','Initial\x20revision','fromEntries','forEach','attributes','getRevision','authorsIds','elementEnd','PendingActions','createPositionFromPath','loadState','_bufferUpdate','createRevision','element','editing','getRevisions','parent','position','vid','toView','remove','view','createRangeIn','_loadedStateData','reinsert','affectsData','_loadRevisionData','_getFromVersion','setSource','getAttributes','_makeIdsRoot','PENDING_ACTION_REVISION_HISTORY','set','currentRevision','update','resolve','_markChanges','nodes','map','_handleMoveOperation','vid_start','getRevisionRootsAttributes','_handleMarkerOperation','bind','_handleSplitOperation','getChild','offset','revisionHistory.resumeUnsavedRevision','_getViewJson','getLatestVersion','_makeRevision','getWalker','_startingVersion','_reset','toVersion','_loadState','adapter','_idsRoots','data','_createCurrentRevision','removeRootAttribute','RevisionTracker','isReady','stickiness','_handleInsertOperation','_setAttribute','nodeAfter','has','_createFromRanges','tableCell','startsWith','RealTimeCollaborationClient','_startingRevisionId','trim','_fixRange','_baseRoots','baseVersion','getData','_execute','_touchedRoots','getRange','getOperation','getChildren','isAdd','init','_baseRootsAttributes','attributesAfter','_diffRoots','toData','Users','saveRevision','howMany','marker','rootsAttributes','for','initialData','getRevisionDocumentData','_handleRootAttributeOperation','_bufferedUpdates','_revisionId','length','changeRootAttribute','delete','createRange','keys','buildRevisionData','add','addRevisionData','detachRoot','version','_appendChild','_isAttached'];(function(_0x41a672,_0x3d0479){const _0xe2a5bb=function(_0x1a8615){while(--_0x1a8615){_0x41a672['push'](_0x41a672['shift']());}};_0xe2a5bb(++_0x3d0479);}(_0x3d04,0x178));const _0xe2a5=function(_0x41a672,_0x3d0479){_0x41a672=_0x41a672-0x0;let _0xe2a5bb=_0x3d04[_0x41a672];return _0xe2a5bb;};import{Users as _0x2d3793}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x23798a,PendingActions as _0x48630e}from'ckeditor5/src/core';import{logWarning as _0x4a4814,uid as _0x5a6b02}from'ckeditor5/src/utils';import{Position as _0x5da8fb,Range as _0x555221,Element as _0x51fbf2,DocumentFragment as _0x291270,ViewText as _0x51707a,ViewElement as _0x15e7e0,ViewContainerElement as _0x334124,ViewAttributeElement as _0x28a4e1,ViewEmptyElement as _0x3553af,ViewRawElement as _0x225637,ViewUIElement as _0x5688f3,ViewDocumentFragment as _0xb38177}from'ckeditor5/src/engine';import _0xb5f25d from'./revisionsrepository';import{getTranslation as _0x21fa08}from'./utils/common-translations';import{cloneDeep as _0x4a6ecc,isEqual as _0x106403}from'lodash-es';const B={'c':_0x334124,'a':_0x28a4e1,'e':_0x3553af,'r':_0x225637,'u':_0x5688f3};export default class l extends _0x23798a{static get['pluginName'](){return _0xe2a5('0x55');}static get[_0xe2a5('0xbb')](){return[_0x2d3793,_0xb5f25d,_0x48630e];}constructor(_0x3d3db5){super(_0x3d3db5),this[_0xe2a5('0x50')]=null,this['currentRevision']=null,this[_0xe2a5('0xa5')]=new H(this[_0xe2a5('0xb9')]),this[_0xe2a5('0x18')]=this[_0xe2a5('0xb9')][_0xe2a5('0xfd')][_0xe2a5('0xcb')](_0xe2a5('0xd1'))||_0xe2a5('0xe'),this[_0xe2a5('0x7a')]=new Map(),this['_loadedStateData']=null;const _0x3baa9d=_0x5a6b02();this[_0xe2a5('0xc1')]={'history':this[_0xe2a5('0xb9')]['model']['document']['history'],'getLatestVersion':()=>Promise[_0xe2a5('0x3b')](this['editor'][_0xe2a5('0xf4')][_0xe2a5('0xc')][_0xe2a5('0x85')]),'getCurrentRevisionId':()=>_0x3baa9d},this[_0xe2a5('0x38')]('isReady',!0x1),this[_0xe2a5('0x38')]('isEnabled',!0x0),this[_0xe2a5('0x38')](_0xe2a5('0x3'),!0x1),this[_0xe2a5('0xb9')][_0xe2a5('0xfd')]['define']('revisionHistory.resumeUnsavedRevision',!0x0),this[_0xe2a5('0xb9')][_0xe2a5('0x97')][_0xe2a5('0x76')](_0xe2a5('0xd8'))['dataToMarker']({'view':_0xe2a5('0xe5')});}[_0xe2a5('0x6c')](){this['repository']=this['editor'][_0xe2a5('0xa2')][_0xe2a5('0xcb')](_0xe2a5('0xa6')),this['_setConversion'](),this[_0xe2a5('0xb9')][_0xe2a5('0x52')]['on'](_0xe2a5('0xe4'),()=>{const _0x21d277=this['repository']['getRevision'](0x0),_0x17f538=_0x21d277&&null===_0x21d277[_0xe2a5('0x9e')]?_0x21d277:null;if(this[_0xe2a5('0xec')]=!!_0x17f538&&this[_0xe2a5('0xb9')]['config'][_0xe2a5('0xcb')](_0xe2a5('0x47')),this[_0xe2a5('0xb9')][_0xe2a5('0xa2')]['has'](_0xe2a5('0x5f'))){const _0x2b7626=this[_0xe2a5('0xc1')][_0xe2a5('0xb5')](),_0xb9d64=this['repository']['getRevision'](_0x2b7626);if(_0xb9d64)this[_0xe2a5('0x4c')]=_0xb9d64[_0xe2a5('0x95')],this[_0xe2a5('0xec')]=!0x1;else{const _0x4c74c2=this['_source'][_0xe2a5('0xcd')][_0xe2a5('0xa0')][_0xe2a5('0xd6')](_0x4c3b37=>!_0x4c3b37['_isInit']),_0x1b8629=_0x4c74c2?_0x4c74c2[_0xe2a5('0x64')]:this[_0xe2a5('0xc1')][_0xe2a5('0xcd')][_0xe2a5('0x85')];_0x21d277?(_0x21d277[_0xe2a5('0x4e')]<_0x1b8629&&_0x21d277[_0xe2a5('0xa3')]({'toVersion':_0x1b8629}),this['_continueCurrentRevision']?(this[_0xe2a5('0xc1')]['getCurrentRevisionId']=()=>_0x17f538['id'],this[_0xe2a5('0x4c')]=_0x17f538[_0xe2a5('0x95')]):(this['_startingVersion']=_0x21d277['toVersion'],this[_0xe2a5('0xec')]=!0x1)):(this[_0xe2a5('0x4c')]=_0x1b8629,this[_0xe2a5('0xec')]=!0x1);}}else _0x17f538&&(this['editor'][_0xe2a5('0xf4')][_0xe2a5('0xc')][_0xe2a5('0xcd')]['version']=Math[_0xe2a5('0xd4')](_0x17f538['toVersion'],this[_0xe2a5('0xb9')][_0xe2a5('0xf4')][_0xe2a5('0xc')]['history'][_0xe2a5('0x85')]),_0x17f538['fromVersion']===_0x17f538[_0xe2a5('0x4e')]?(0x0!==_0x17f538['fromVersion']&&(this[_0xe2a5('0xc1')][_0xe2a5('0xb5')]=()=>_0x17f538['id']),this[_0xe2a5('0xec')]=!0x1):this[_0xe2a5('0xec')]&&(this[_0xe2a5('0xc1')][_0xe2a5('0xb5')]=()=>_0x17f538['id'],this[_0xe2a5('0x4c')]=_0x17f538[_0xe2a5('0x95')])),this['_continueCurrentRevision']||(this[_0xe2a5('0x4c')]=this['editor']['model']['document'][_0xe2a5('0x85')]);this[_0xe2a5('0xa5')]['init'](this[_0xe2a5('0xc1')][_0xe2a5('0xcd')]),this[_0xe2a5('0xf0')](this[_0xe2a5('0x4c')]),this[_0xe2a5('0x53')](this['_startingVersion']),this[_0xe2a5('0x50')]&&this[_0xe2a5('0xe7')]();}),this[_0xe2a5('0x43')](_0xe2a5('0x56'))['to'](this,_0xe2a5('0x3'),_0x1bbd14=>!_0x1bbd14);}async[_0xe2a5('0xfb')](){if(this[_0xe2a5('0x90')][_0xe2a5('0x7c')]>0x0){const _0x2ec4a1=this[_0xe2a5('0x90')][_0xe2a5('0x1d')](0x0),_0xe73e85=await this[_0xe2a5('0x78')](_0x2ec4a1),_0x3505ac=await this[_0xe2a5('0x41')](_0x2ec4a1);this[_0xe2a5('0x14')](_0xe73e85,_0x3505ac);}}[_0xe2a5('0x34')](_0x257a05){this[_0xe2a5('0xc1')]=_0x257a05;}async[_0xe2a5('0x3a')](){const _0x39ca4f=await this['_source'][_0xe2a5('0x49')]();if(_0x39ca4f>this[_0xe2a5('0x39')][_0xe2a5('0x4e')]){await this[_0xe2a5('0x4f')]();const _0x3df31a=this[_0xe2a5('0x81')]({'revision':this[_0xe2a5('0x39')],'to':_0x39ca4f});_0x3df31a[_0xe2a5('0xff')]=_0x3df31a[_0xe2a5('0x1e')][_0xe2a5('0x3e')](_0xa78371=>this[_0xe2a5('0xb9')][_0xe2a5('0xa2')][_0xe2a5('0xcb')](_0xe2a5('0x71'))[_0xe2a5('0x9f')](_0xa78371)),this[_0xe2a5('0x39')]['_update'](_0x3df31a);}}async[_0xe2a5('0x4f')](){this[_0xe2a5('0xec')]&&!this[_0xe2a5('0x2f')]&&(await this[_0xe2a5('0x32')](this[_0xe2a5('0x39')]),this[_0xe2a5('0xa5')][_0xe2a5('0x22')](this[_0xe2a5('0x39')]),this['_loadedStateData']={'fromVersion':this[_0xe2a5('0x39')]['fromVersion'],'authors':this[_0xe2a5('0x39')][_0xe2a5('0xff')][_0xe2a5('0x4')]()});}async[_0xe2a5('0x72')](_0x2638f5={},_0x51fcb4=null){const _0x505b54=[];await this['_loadState'](),this[_0xe2a5('0xec')]=!0x1,_0x51fcb4>this[_0xe2a5('0x39')]['toVersion']&&(_0x51fcb4=null),null===_0x51fcb4&&(_0x51fcb4=await this[_0xe2a5('0xc1')][_0xe2a5('0x49')]());const _0x3e5d46=this[_0xe2a5('0x33')](_0x51fcb4),_0x43fa03=this[_0xe2a5('0x81')]({'from':_0x3e5d46,'to':_0x51fcb4});if(this['currentRevision'][_0xe2a5('0x4e')]<_0x51fcb4){const _0x483386=this[_0xe2a5('0x81')]({'revision':this[_0xe2a5('0x39')],'from':_0x51fcb4,'to':_0x51fcb4});_0x483386[_0xe2a5('0xff')]=[],_0x483386['authorsIds']=[],_0x483386['id']=this[_0xe2a5('0x39')]['id'],this[_0xe2a5('0x39')]['_update'](_0x483386,!0x0),delete _0x483386[_0xe2a5('0xff')],_0x505b54[_0xe2a5('0x0')](_0x483386);}_0x2638f5['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2638f5['name']=_0x2638f5[_0xe2a5('0xb1')]||null,_0x2638f5['id']=_0x2638f5['id']||_0x5a6b02(),_0x2638f5={..._0x2638f5,..._0x43fa03};const _0x571493=this['addRevisionData'](_0x2638f5);_0x505b54[_0xe2a5('0x0')](_0x2638f5);const _0x48d166=this[_0xe2a5('0x90')][_0xe2a5('0xae')](_0x571493);if(0x0!==_0x48d166){const _0x31ca9b=this['repository'][_0xe2a5('0x1d')](_0x48d166-0x1);if(_0x31ca9b[_0xe2a5('0x95')]!==_0x51fcb4){const _0x459d25=this[_0xe2a5('0xa5')][_0xe2a5('0x65')](_0x51fcb4,_0x31ca9b[_0xe2a5('0x4e')]),_0x285dce={'id':_0x31ca9b['id'],'diffData':_0x459d25['diffData'],'authorsIds':_0x459d25[_0xe2a5('0x1e')],'authors':_0x459d25['authorsIds'][_0xe2a5('0x3e')](_0x4a9b77=>this[_0xe2a5('0xb9')][_0xe2a5('0xa2')][_0xe2a5('0xcb')](_0xe2a5('0x71'))['getUser'](_0x4a9b77)),'fromVersion':_0x51fcb4};_0x31ca9b===this[_0xe2a5('0x39')]&&(_0x285dce[_0xe2a5('0xb8')]=new Date(_0x2638f5[_0xe2a5('0xb8')][_0xe2a5('0xdb')]()+0xa)),_0x31ca9b[_0xe2a5('0xa3')](_0x285dce,!0x0),delete _0x285dce[_0xe2a5('0xff')],_0x505b54['push'](_0x285dce);}}if(this[_0xe2a5('0x50')]){for(const _0x38ad8b of _0x505b54)this['_bufferUpdate'](_0x38ad8b['id'],_0x38ad8b,!0x0);this[_0xe2a5('0xe7')]();}return _0x571493;}['addRevisionData'](_0x6844d5){const _0x84af8b=this[_0xe2a5('0x90')][_0xe2a5('0x24')](_0x6844d5);return this[_0xe2a5('0x50')]&&_0x84af8b['on']('_update',(_0x237770,_0x4a43c7,_0x420d59)=>{_0x420d59||(this[_0xe2a5('0x23')](_0x4a43c7['id'],_0x4a43c7,!0x0),this[_0xe2a5('0xe7')]());}),this[_0xe2a5('0x90')]['addRevision'](_0x84af8b,this['_findInsertionIndex'](_0x84af8b)),_0x84af8b;}async['getRevisionDocumentData'](_0x416e3e){await this[_0xe2a5('0x32')](_0x416e3e);const _0x36e07f={};for(const _0x256baf in _0x416e3e[_0xe2a5('0xda')]){if(_0x416e3e[_0xe2a5('0xda')][_0x256baf][_0xe2a5('0xa8')]&&!_0x416e3e[_0xe2a5('0xda')][_0x256baf][_0xe2a5('0xa8')][_0xe2a5('0xb0')])continue;const _0x1fa964=this[_0xe2a5('0xe9')](JSON['parse'](_0x416e3e['diffData'][_0x256baf][_0xe2a5('0x9d')])),_0x425ea4=this['editor'][_0xe2a5('0x26')][_0xe2a5('0x2d')][_0xe2a5('0xc')],_0x20d7f9=new _0xb38177(_0x425ea4,_0x1fa964['map'](_0x378a66=>J(_0x378a66,this[_0xe2a5('0xb9')])));this[_0xe2a5('0xb9')][_0xe2a5('0x52')][_0xe2a5('0x5')][_0xe2a5('0x94')](_0xe2a5('0x8a')),_0x36e07f[_0x256baf]=this['editor'][_0xe2a5('0x52')][_0xe2a5('0x5')][_0xe2a5('0x70')](_0x20d7f9),this[_0xe2a5('0xb9')][_0xe2a5('0x52')][_0xe2a5('0x5')][_0xe2a5('0x94')]('default');}return _0x36e07f;}async[_0xe2a5('0x41')](_0x2c5af3){await this[_0xe2a5('0x32')](_0x2c5af3);const _0xed377d={};for(const _0x32e229 in _0x2c5af3['diffData'])_0x2c5af3[_0xe2a5('0xda')][_0x32e229][_0xe2a5('0xa8')]&&!_0x2c5af3[_0xe2a5('0xda')][_0x32e229][_0xe2a5('0xa8')][_0xe2a5('0xb0')]||(_0xed377d[_0x32e229]=_0x2c5af3[_0xe2a5('0xda')][_0x32e229]['attributesAfter']||{});return _0xed377d;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates'][_0xe2a5('0xc8')])return;if(this[_0xe2a5('0x3')])return;let _0x5261ca=Array[_0xe2a5('0xd5')](this[_0xe2a5('0x7a')]['values']());this[_0xe2a5('0x7a')][_0xe2a5('0xfc')]();for(let _0x42fcb6=0x0;_0x42fcb6<_0x5261ca[_0xe2a5('0x7c')];_0x42fcb6++){const _0x2ac6a4=_0x5261ca[_0x42fcb6];let _0x3d634a=!0x1;for(const _0x10aafc of Object[_0xe2a5('0x80')](_0x2ac6a4))void 0x0===_0x2ac6a4[_0x10aafc]?delete _0x2ac6a4[_0x10aafc]:'id'!==_0x10aafc&&(_0x3d634a=!0x0);_0x3d634a||(_0x5261ca[_0x42fcb6]=null);}if(_0x5261ca=_0x5261ca['filter'](_0x528531=>null!==_0x528531),!_0x5261ca[_0xe2a5('0x7c')])return;for(let _0x1bb973=0x0;_0x1bb973<_0x5261ca[_0xe2a5('0x7c')];_0x1bb973++){const _0x4b09ef=_0x5261ca[_0x1bb973];void 0x0!==_0x4b09ef['fromVersion']&&void 0x0===_0x4b09ef['toVersion']&&(_0x4b09ef['toVersion']=this['repository'][_0xe2a5('0x1d')](_0x4b09ef['id'])[_0xe2a5('0x4e')]),void 0x0!==_0x4b09ef[_0xe2a5('0x4e')]&&void 0x0===_0x4b09ef[_0xe2a5('0x95')]&&(_0x4b09ef[_0xe2a5('0x95')]=this[_0xe2a5('0x90')][_0xe2a5('0x1d')](_0x4b09ef['id'])[_0xe2a5('0x95')]);}const _0x19e370=this[_0xe2a5('0xb9')]['config'][_0xe2a5('0xcb')](_0xe2a5('0xd1'));this['_isPendingUpdate']=!0x0,this[_0xe2a5('0xf7')](),this[_0xe2a5('0x50')]['updateRevisions'](_0x5261ca,_0x19e370)[_0xe2a5('0xca')](()=>{this['_isPendingUpdate']=!0x1;})[_0xe2a5('0x16')](_0x28bc8a=>{if(_0x28bc8a)for(const _0x44b2a1 of _0x28bc8a)this[_0xe2a5('0x91')]({'id':_0x44b2a1['id'],'createdAt':_0x44b2a1[_0xe2a5('0xb8')]});this[_0xe2a5('0xc3')](),this[_0xe2a5('0xe7')]();});}[_0xe2a5('0x14')](_0x29ea13,_0x2680f4){let _0x1fdf7e=this[_0xe2a5('0xb9')][_0xe2a5('0xfd')][_0xe2a5('0xcb')](_0xe2a5('0x77')),_0x2e5413=this[_0xe2a5('0xb9')][_0xe2a5('0xfd')]['get'](_0xe2a5('0x75'));if(void 0x0===_0x1fdf7e){_0x1fdf7e={};for(const _0x3b6558 of this[_0xe2a5('0xb9')][_0xe2a5('0xf4')][_0xe2a5('0xc')]['getRootNames']())_0x1fdf7e[_0x3b6558]='';}if(_0xe2a5('0xeb')==typeof _0x1fdf7e&&(_0x1fdf7e={'main':_0x1fdf7e}),void 0x0===_0x2e5413){_0x2e5413={};for(const _0x17dbd5 of this['editor']['model'][_0xe2a5('0xc')]['getRootNames']())_0x2e5413[_0x17dbd5]={};}let _0x29ef85=!0x1;const _0x38ade5=Object[_0xe2a5('0x80')](_0x1fdf7e),_0x1f8a0b=Object[_0xe2a5('0x80')](_0x29ea13);for(const _0x57032f of _0x38ade5){if(_0x1fdf7e[_0x57032f]!==_0x29ea13[_0x57032f]&&''!==_0x1fdf7e[_0x57032f][_0xe2a5('0x61')]()){_0x29ef85=!0x0;break;}if(!_0x106403(_0x2e5413[_0x57032f],_0x2680f4[_0x57032f])&&Object[_0xe2a5('0x80')](_0x2e5413[_0x57032f])[_0xe2a5('0x7c')]>0x0){_0x29ef85=!0x0;break;}}_0x29ef85||(_0x29ef85=_0x1f8a0b[_0xe2a5('0xea')](_0x5d5a8c=>!this['editor'][_0xe2a5('0xf4')]['document'][_0xe2a5('0xde')](_0x5d5a8c))),_0x29ef85&&_0x4a4814('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1fdf7e,'editorRootsAttributes':_0x2e5413,'revisionData':_0x29ea13,'revisionRootsAttributes':_0x2680f4}),this[_0xe2a5('0xb9')][_0xe2a5('0xfd')][_0xe2a5('0x38')](_0xe2a5('0x77'),_0x29ea13),this[_0xe2a5('0xb9')][_0xe2a5('0xfd')]['set'](_0xe2a5('0x75'),_0x2680f4);}[_0xe2a5('0xf7')](){if(!this[_0xe2a5('0x8f')]){const _0x3fa45d=this[_0xe2a5('0xb9')]['plugins'][_0xe2a5('0xcb')](_0xe2a5('0x20'));this[_0xe2a5('0x8f')]=_0x3fa45d['add'](_0x21fa08(this[_0xe2a5('0xb9')]['locale'],_0xe2a5('0x37')));}}[_0xe2a5('0xc3')](){this['_pendingAction']&&(this[_0xe2a5('0xb9')][_0xe2a5('0xa2')][_0xe2a5('0xcb')](_0xe2a5('0x20'))[_0xe2a5('0x2c')](this['_pendingAction']),this[_0xe2a5('0x8f')]=null);}[_0xe2a5('0xb3')](_0x31fed9){const _0x5028be=this[_0xe2a5('0x90')]['getRevisions']();_0x5028be['reverse']();let _0xa91cee=0x0;for(;_0xa91cee<_0x5028be[_0xe2a5('0x7c')];){const _0x477bf3=_0x5028be[_0xa91cee];if(_0x477bf3===this[_0xe2a5('0x39')]){_0xa91cee++;continue;}if(_0x477bf3['id']===this[_0xe2a5('0x18')])break;const _0x537f75=_0x31fed9[_0xe2a5('0x4e')]-_0x477bf3[_0xe2a5('0x4e')]||_0x31fed9[_0xe2a5('0x95')]-_0x477bf3[_0xe2a5('0x95')];if(_0x537f75>0x0)break;if(_0x537f75<0x0)_0xa91cee++;else{if(!_0x31fed9[_0xe2a5('0x9e')]&&_0x477bf3['creator'])break;if(_0x477bf3[_0xe2a5('0x9e')]||!_0x31fed9[_0xe2a5('0x9e')]){if(_0x31fed9[_0xe2a5('0xb8')]>_0x477bf3[_0xe2a5('0xb8')])break;_0xa91cee++;}else _0xa91cee++;}}return _0xa91cee;}[_0xe2a5('0x91')](_0x1f2b4c){const _0x13ae0b=this[_0xe2a5('0x90')][_0xe2a5('0x1d')](_0x1f2b4c['id']);if(_0x1f2b4c[_0xe2a5('0xb8')]&&(_0x1f2b4c[_0xe2a5('0xb8')]=new Date(_0x1f2b4c[_0xe2a5('0xb8')])),_0x1f2b4c[_0xe2a5('0x1e')]){const _0x5e750f=this[_0xe2a5('0xb9')][_0xe2a5('0xa2')][_0xe2a5('0xcb')](_0xe2a5('0x71'));_0x1f2b4c[_0xe2a5('0xff')]=_0x1f2b4c['authorsIds'][_0xe2a5('0x3e')](_0x29245e=>_0x5e750f['getUser'](_0x29245e));}_0x13ae0b[_0xe2a5('0xa3')](_0x1f2b4c,!0x0);}['buildRevisionData']({revision:_0x409b60=null,from:_0x11a95f=null,to:_0x157958=null}){_0x11a95f=null!==_0x11a95f?_0x11a95f:_0x409b60[_0xe2a5('0x95')],_0x157958=null!==_0x157958?_0x157958:_0x409b60['toVersion'];const _0x3af7da=this[_0xe2a5('0xa5')]['getData'](_0x11a95f,_0x157958),_0x37952c={'diffData':_0x3af7da['diffData'],'authorsIds':_0x3af7da[_0xe2a5('0x1e')],'fromVersion':_0x11a95f,'toVersion':_0x157958};if(!_0x409b60||_0x157958!==_0x409b60['toVersion']){const _0x40ec0b=_0x157958-0x1,_0x28117d=this[_0xe2a5('0xc1')][_0xe2a5('0xcd')][_0xe2a5('0x69')](_0x40ec0b);_0x37952c[_0xe2a5('0xb8')]=_0x28117d&&_0x28117d['createdAt']||new Date();}if(this[_0xe2a5('0x2f')]&&_0x11a95f===this[_0xe2a5('0x2f')]['fromVersion'])for(const _0xe735b4 of this[_0xe2a5('0x2f')][_0xe2a5('0xff')])_0x37952c[_0xe2a5('0x1e')][_0xe2a5('0xb6')](_0xe735b4['id'])||_0x37952c[_0xe2a5('0x1e')][_0xe2a5('0x0')](_0xe735b4['id']);return _0x37952c;}[_0xe2a5('0x32')](_0x4203e3){if(!_0x4203e3||_0x4203e3[_0xe2a5('0xda')])return Promise[_0xe2a5('0x3b')]();{const _0x290d98=this[_0xe2a5('0xb9')]['config'][_0xe2a5('0xcb')](_0xe2a5('0xd1'));return this['adapter'][_0xe2a5('0x1d')]({'channelId':_0x290d98,'revisionId':_0x4203e3['id']})[_0xe2a5('0x16')](_0x4cbc48=>{_0x4203e3['diffData']=_0x4cbc48[_0xe2a5('0xda')];});}}[_0xe2a5('0x23')](_0x104186,_0x5af1ce,_0x1c09c0){if(this['_bufferedUpdates'][_0xe2a5('0x5b')](_0x104186)){const _0x312232=this[_0xe2a5('0x7a')][_0xe2a5('0xcb')](_0x104186);_0x5af1ce=_0x1c09c0?{..._0x312232,..._0x5af1ce}:{..._0x5af1ce,..._0x312232};}this[_0xe2a5('0x7a')]['set'](_0x104186,_0x5af1ce);}[_0xe2a5('0x33')](_0x20a1c8){const _0x486be3=this[_0xe2a5('0x90')][_0xe2a5('0x27')]();_0x486be3[_0xe2a5('0xbd')](),_0x486be3[_0xe2a5('0xc2')]();const _0x20b8c8=_0x486be3['find'](_0x857a53=>_0x857a53[_0xe2a5('0x4e')]<=_0x20a1c8)[_0xe2a5('0x4e')];return _0x20b8c8<this[_0xe2a5('0x4c')]?this[_0xe2a5('0x4c')]:_0x20b8c8;}[_0xe2a5('0xf0')](_0x175d9f){const _0x56bc6f=this[_0xe2a5('0x90')][_0xe2a5('0x1d')](this[_0xe2a5('0x90')][_0xe2a5('0x7c')]-0x1);if(_0x56bc6f)this[_0xe2a5('0x18')]=_0x56bc6f['id'];else{const _0x405144=!this['editor'][_0xe2a5('0xf4')][_0xe2a5('0xc')]['roots'][_0xe2a5('0xd6')](_0x5662d4=>this[_0xe2a5('0xb9')][_0xe2a5('0xf4')]['hasContent'](_0x5662d4)),_0x55c54c=this['editor'][_0xe2a5('0xa2')][_0xe2a5('0xcb')](_0xe2a5('0x71'))['me']['id'],_0x13010b=_0x21fa08(this['editor'][_0xe2a5('0xd3')],_0x405144?'Empty\x20document':_0xe2a5('0x19'));this[_0xe2a5('0x4a')]({'from':_0x175d9f,'to':_0x175d9f,'id':this[_0xe2a5('0x18')],'name':_0x13010b,'creatorId':_0x55c54c});}}[_0xe2a5('0x53')](_0x2b3c17){const _0x512a52=this[_0xe2a5('0xc1')][_0xe2a5('0xb5')]();this[_0xe2a5('0x39')]=this[_0xe2a5('0x90')][_0xe2a5('0x1d')](_0x512a52),this[_0xe2a5('0x39')]||(this[_0xe2a5('0x39')]=this[_0xe2a5('0x4a')]({'from':_0x2b3c17,'to':_0x2b3c17,'id':_0x512a52,'name':'','creatorId':null}));}[_0xe2a5('0x4a')]({name:_0x332b0a,from:_0x4e1400,to:_0x384e3b,creatorId:_0x2c5c41,id:_0x27888c}){const _0x420f5e=this[_0xe2a5('0x81')]({'from':_0x4e1400,'to':_0x384e3b});_0x420f5e['name']=_0x332b0a,_0x420f5e['creatorId']=_0x2c5c41,_0x420f5e['id']=_0x27888c;const _0x2ecf74=this[_0xe2a5('0x83')](_0x420f5e);return this[_0xe2a5('0x50')]&&this[_0xe2a5('0x23')](_0x420f5e['id'],_0x420f5e,!0x0),_0x2ecf74;}[_0xe2a5('0xc7')](){this[_0xe2a5('0xb9')][_0xe2a5('0x97')]['for']('dataDowncast')[_0xe2a5('0xb2')]({'model':'revision'});}['_removeRevisionMarkers'](_0x4d3db1){return(_0x4d3db1=_0x4d3db1[_0xe2a5('0xa4')](_0x12f2a8=>!_0x12f2a8[_0xe2a5('0xb1')]||_0xe2a5('0xf6')!==_0x12f2a8[_0xe2a5('0xb1')]&&_0xe2a5('0xa9')!==_0x12f2a8[_0xe2a5('0xb1')]))[_0xe2a5('0x1b')](_0x661bdb=>{_0xe2a5('0xeb')!=typeof _0x661bdb&&(_0x661bdb['children']=this['_removeRevisionMarkers'](_0x661bdb['children']),_0x661bdb[_0xe2a5('0x1c')]=_0x661bdb['attributes']['filter'](_0xb47c7d=>!_0xb47c7d[0x0][_0xe2a5('0x5e')](_0xe2a5('0xb4'))));}),_0x4d3db1;}}function J(_0x1eba06,_0x5b5674){const _0x51336b=_0x5b5674[_0xe2a5('0x26')][_0xe2a5('0x2d')][_0xe2a5('0xc')];if(_0xe2a5('0xeb')==typeof _0x1eba06)return new _0x51707a(_0x51336b,_0x1eba06);{const _0x24ef29=_0x1eba06['children']['map'](_0x2955a0=>J(_0x2955a0,_0x5b5674));return new(B[_0x1eba06[(_0xe2a5('0xbf'))]]||_0x15e7e0)(_0x51336b,_0x1eba06[_0xe2a5('0xb1')],_0x1eba06[_0xe2a5('0x1c')],_0x24ef29);}}class H{constructor(_0x281a4d){this[_0xe2a5('0xb9')]=_0x281a4d,this[_0xe2a5('0x11')]=new Map(),this['_lastFrom']=-0x1,this[_0xe2a5('0xd0')]=-0x1,this[_0xe2a5('0xc9')]=new Map(),this['_diffRoots']=new Map(),this[_0xe2a5('0xfe')]=new Map(),this[_0xe2a5('0x63')]=new Map(),this[_0xe2a5('0x6d')]=new Map(),this[_0xe2a5('0x51')]=new Map(),this[_0xe2a5('0xf')]=new Map(),this[_0xe2a5('0xaf')]=new Map(),this[_0xe2a5('0xa')]=new Map(),this['_touchedRoots']=new Map(),this[_0xe2a5('0x7b')]=0x1;}[_0xe2a5('0x6c')](_0x109086){this[_0xe2a5('0x13')]=_0x109086;const _0x28b4a6=new Map(),_0x186b42=new Map(),_0x3d7102=this[_0xe2a5('0xb9')][_0xe2a5('0xf4')][_0xe2a5('0xc')][_0xe2a5('0xc6')][_0xe2a5('0x3e')](_0x29aaf2=>_0x29aaf2[_0xe2a5('0xfa')]);for(const _0x41fe11 of _0x3d7102){const _0x571c3c=this['editor']['model'][_0xe2a5('0xc')]['getRoot'](_0x41fe11),_0x470199=q(_0x571c3c);_0x28b4a6['set'](_0x41fe11,_0x470199),_0x186b42[_0xe2a5('0x38')](_0x41fe11,Object[_0xe2a5('0x1a')](_0x571c3c[_0xe2a5('0x35')]()));}const _0x18fc39=Array['from'](this[_0xe2a5('0xb9')][_0xe2a5('0xf4')][_0xe2a5('0xf5')])[_0xe2a5('0x3e')](_0x239e52=>[_0x239e52['name'],_0x239e52[_0xe2a5('0x68')]()]),_0x35170d=this[_0xe2a5('0x13')][_0xe2a5('0x85')];this['_saveMetaData'](_0x35170d,_0x28b4a6,_0x18fc39,_0x186b42),this[_0xe2a5('0x60')]=this[_0xe2a5('0x7b')];const _0x3f14d0=new Map(),_0x1304c8=new Map();for(const _0x399158 of _0x3d7102){const _0x582dee=G(_0x399158);_0x3f14d0[_0xe2a5('0x38')](_0x399158,_0x582dee),_0x1304c8[_0xe2a5('0x38')](_0x399158,{});}this[_0xe2a5('0xab')](Number[_0xe2a5('0xbc')],_0x3f14d0,[],_0x1304c8);}[_0xe2a5('0x65')](_0x52429d,_0x8c1a7e){if(this['_lastFrom']===_0x52429d&&this[_0xe2a5('0xd0')]<=_0x8c1a7e)this['_savedMetaData'][_0xe2a5('0xc8')]>0x1&&this['_removeMetaData'](this[_0xe2a5('0xd0')]),this['_applyOperations'](this[_0xe2a5('0xd0')],_0x8c1a7e,!0x0);else{if(!this[_0xe2a5('0x11')][_0xe2a5('0x5b')](_0x52429d)){const _0x2f4d7c=this[_0xe2a5('0xce')](_0x52429d);this[_0xe2a5('0xb7')](_0x2f4d7c,_0x52429d,!0x1);}this[_0xe2a5('0xb7')](_0x52429d,_0x8c1a7e,!0x0);}return this[_0xe2a5('0xc0')]=_0x52429d,this[_0xe2a5('0xd0')]=_0x8c1a7e,this['_getState']();}[_0xe2a5('0x22')](_0x4ffad8){this['_reset'](),this['_lastFrom']=_0x4ffad8['fromVersion'],this[_0xe2a5('0xd0')]=_0x4ffad8[_0xe2a5('0x4e')];for(const _0x4af72d in _0x4ffad8[_0xe2a5('0xda')]){const _0x586bc6=_0x4ffad8[_0xe2a5('0xda')][_0x4af72d][_0xe2a5('0xa8')],_0x2e9eb9=_0x4a6ecc(_0x4ffad8[_0xe2a5('0xda')][_0x4af72d][_0xe2a5('0x6')])||{},_0x4e7828=this[_0xe2a5('0x88')](_0x4ffad8[_0xe2a5('0xda')][_0x4af72d][_0xe2a5('0x99')]);_0x4e7828['rootName']=_0x4af72d,_0x4e7828[_0xe2a5('0x87')]=!_0x586bc6||!_0x586bc6[_0xe2a5('0xb0')],_0x4e7828['isAttached']=()=>_0x4e7828[_0xe2a5('0x87')],this[_0xe2a5('0x63')][_0xe2a5('0x38')](_0x4af72d,_0x4e7828),this['_baseRootsAttributes'][_0xe2a5('0x38')](_0x4af72d,_0x2e9eb9),_0x586bc6&&this[_0xe2a5('0x67')][_0xe2a5('0x38')](_0x4af72d,_0x586bc6);const _0x410cf7=this[_0xe2a5('0x36')](_0x4e7828);this[_0xe2a5('0xf')]['set'](_0x4af72d,_0x410cf7);for(const [_0x4302ea,_0x569173]of _0x4e7828[_0xe2a5('0xf5')]){if(!_0x4302ea[_0xe2a5('0x5e')]('revision:'))continue;const _0xc598d4=_0x4302ea['split'](':')[0x2];for(const _0x412d1e of _0x569173[_0xe2a5('0x4b')]({'singleCharacters':!0x0})){const _0x1b2b4a=this[_0xe2a5('0x8')](_0x412d1e),_0x49b4c7=_0xe2a5('0x1f')==_0x412d1e[_0xe2a5('0xbf')]?_0x412d1e[_0xe2a5('0xe6')][_0xe2a5('0xc4')][_0xe2a5('0x4')](0x0,-0x1):_0x412d1e[_0xe2a5('0xe6')][_0xe2a5('0xc4')],_0x2e9b99=_0x410cf7[_0xe2a5('0x8e')](_0x49b4c7)[_0xe2a5('0xdd')](_0x1b2b4a);this['_touched'][_0xe2a5('0x38')](_0x2e9b99,{'userId':_0xc598d4});}}}this[_0xe2a5('0x60')]=this[_0xe2a5('0x7b')];const _0x5aecf8=[...Array(this[_0xe2a5('0x7b')])[_0xe2a5('0x80')]()]['slice'](0x1)[_0xe2a5('0xa4')](_0x4ff56e=>!this[_0xe2a5('0xaf')][_0xe2a5('0x5b')](_0x4ff56e));let _0x5092d0=0x0;const _0x1ca076=new Map();for(const _0x3bccee in _0x4ffad8[_0xe2a5('0xda')]){const _0x34492c=_0x4ffad8[_0xe2a5('0xda')][_0x3bccee]['attachChange'],_0x23d9c5=_0x4a6ecc(_0x4ffad8['diffData'][_0x3bccee][_0xe2a5('0x6e')])||{},_0x4ba8d5=this['_makeModelFromViewString'](_0x4ffad8['diffData'][_0x3bccee][_0xe2a5('0x9d')]);_0x4ba8d5['rootName']=_0x3bccee,_0x4ba8d5[_0xe2a5('0x87')]=!_0x34492c||_0x34492c['isAttached'],_0x4ba8d5['isAttached']=()=>_0x4ba8d5[_0xe2a5('0x87')],this['_diffRoots']['set'](_0x3bccee,_0x4ba8d5),this['_diffRootsAttributes'][_0xe2a5('0x38')](_0x3bccee,_0x23d9c5);const _0x281e6b=this['_makeIdsRoot'](_0x4ba8d5,Number[_0xe2a5('0xbc')]);this[_0xe2a5('0x51')]['set'](_0x3bccee,_0x281e6b),_0x1ca076[_0xe2a5('0x38')](_0x3bccee,_0x4ba8d5[_0xe2a5('0xb0')]()?_0x23d9c5:{});for(const [_0x79551d,_0x29283f]of _0x4ba8d5[_0xe2a5('0xf5')]){if(!_0x79551d[_0xe2a5('0x5e')](_0xe2a5('0x92')))continue;const _0x3cfbe8=_0x79551d['split'](':')[0x2];for(const _0x250479 of _0x29283f[_0xe2a5('0x4b')]({'singleCharacters':!0x0})){const _0x291dda=this[_0xe2a5('0x8')](_0x250479),_0x1fab6c=this[_0xe2a5('0x7b')]++,_0x3aae2e=_0xe2a5('0x1f')==_0x250479[_0xe2a5('0xbf')]?_0x250479[_0xe2a5('0xe6')][_0xe2a5('0xc4')][_0xe2a5('0x4')](0x0,-0x1):_0x250479['previousPosition'][_0xe2a5('0xc4')];_0x281e6b[_0xe2a5('0x8e')](_0x3aae2e)[_0xe2a5('0x59')](_0x291dda,_0x1fab6c),this[_0xe2a5('0xaf')][_0xe2a5('0x38')](_0x1fab6c,{'userId':_0x3cfbe8});}}for(const _0x3784f2 of this[_0xe2a5('0xb9')][_0xe2a5('0xf4')][_0xe2a5('0x2e')](_0x4ba8d5)['getWalker']({'singleCharacters':!0x0})){const _0x30c266=this['_getVidAttributeName'](_0x3784f2),_0x867da1=_0xe2a5('0x1f')==_0x3784f2['type']?_0x3784f2[_0xe2a5('0xe6')][_0xe2a5('0xc4')][_0xe2a5('0x4')](0x0,-0x1):_0x3784f2[_0xe2a5('0xe6')][_0xe2a5('0xc4')],_0x367ffd=_0x281e6b['getNodeByPath'](_0x867da1);_0x367ffd['getAttribute'](_0x30c266)>0x0||_0x367ffd[_0xe2a5('0x59')](_0x30c266,_0x5aecf8[_0x5092d0++]);}for(const [_0x364f29,_0x38dff8]of _0x4ba8d5[_0xe2a5('0xf5')])_0x364f29[_0xe2a5('0x5e')](_0xe2a5('0x92'))||this['_markers']['set'](_0x364f29,_0x38dff8);}const _0xc2bcc=G(_0xe2a5('0x98'));this[_0xe2a5('0x63')]['set'](_0xe2a5('0x98'),_0xc2bcc),this[_0xe2a5('0xf')]['set'](_0xe2a5('0x98'),this['_makeIdsRoot'](_0xc2bcc,0x1));const _0x2e66ff=G(_0xe2a5('0x98'));this[_0xe2a5('0x6f')][_0xe2a5('0x38')](_0xe2a5('0x98'),_0x2e66ff),this[_0xe2a5('0x51')][_0xe2a5('0x38')](_0xe2a5('0x98'),this[_0xe2a5('0x36')](_0x2e66ff,0x1));const _0x5cd758=Array[_0xe2a5('0xd5')](this[_0xe2a5('0x6f')])[_0xe2a5('0x3e')](([_0x3ddb44,_0x52ea61])=>[_0x3ddb44,q(_0x52ea61)]);this[_0xe2a5('0xab')](this[_0xe2a5('0xd0')],_0x5cd758,this['_markers'],_0x1ca076);}[_0xe2a5('0x88')](_0x8789d8){const _0x43a0d7=JSON[_0xe2a5('0x15')](_0x8789d8),_0x4f863c=this['editor'][_0xe2a5('0x26')][_0xe2a5('0x2d')][_0xe2a5('0xc')],_0x1e54a3=new _0xb38177(_0x4f863c,_0x43a0d7[_0xe2a5('0x3e')](_0x11a7b0=>J(_0x11a7b0,this[_0xe2a5('0xb9')])));return this[_0xe2a5('0xb9')][_0xe2a5('0x52')][_0xe2a5('0xe8')](_0x1e54a3);}[_0xe2a5('0xab')](_0x289330,_0x5c3d8d,_0x2d559f,_0x365056){const _0x1b6bbb=new Map(_0x5c3d8d),_0x442ebc=new Map(_0x4a6ecc(_0x365056)),_0x3873f5=new Map();for(const [_0x3b9bde,_0x371a79]of _0x2d559f)_0x3873f5[_0xe2a5('0x38')](_0x3b9bde,{'start':_0x371a79[_0xe2a5('0x89')][_0xe2a5('0x93')](),'end':_0x371a79[_0xe2a5('0xb')]['clone'](),'rootName':_0x371a79[_0xe2a5('0xf8')][_0xe2a5('0xfa')]});this[_0xe2a5('0x11')][_0xe2a5('0x38')](_0x289330,{'roots':_0x1b6bbb,'markers':_0x3873f5,'rootsAttributes':_0x442ebc});}['_removeMetaData'](_0x19a873){this[_0xe2a5('0x11')][_0xe2a5('0x7e')](_0x19a873);}['reInit'](){this[_0xe2a5('0x4d')](),this[_0xe2a5('0xc0')]=-0x1,this['_lastTo']=-0x1,this[_0xe2a5('0x11')][_0xe2a5('0xfc')](),this[_0xe2a5('0x6c')](this[_0xe2a5('0x13')]);}[_0xe2a5('0x4d')](){this[_0xe2a5('0xaf')][_0xe2a5('0xfc')](),this[_0xe2a5('0xa')][_0xe2a5('0xfc')](),this['_touchedRoots'][_0xe2a5('0xfc')](),this[_0xe2a5('0x6f')]['clear'](),this[_0xe2a5('0xfe')][_0xe2a5('0xfc')](),this[_0xe2a5('0x63')][_0xe2a5('0xfc')](),this[_0xe2a5('0x6d')]['clear'](),this['_idsRoots'][_0xe2a5('0xfc')](),this[_0xe2a5('0xf')][_0xe2a5('0xfc')](),this[_0xe2a5('0xc9')]['clear'](),this['_revisionId']=0x1,this[_0xe2a5('0x60')]=this[_0xe2a5('0x7b')];}[_0xe2a5('0x36')](_0x5c1cbb,_0x486371=null){let _0x529c43=null;_0x5c1cbb['is'](_0xe2a5('0xdc'))||(_0x529c43=new _0x51fbf2(_0x5c1cbb['name'],{'vid_start':null===_0x486371?this[_0xe2a5('0x7b')]++:_0x486371++}));const _0x12e6e8=[];for(const _0x266ec2 of _0x5c1cbb[_0xe2a5('0x6a')]())if(_0x266ec2['is'](_0xe2a5('0x25'))){_0x12e6e8[_0xe2a5('0x0')](this[_0xe2a5('0x36')](_0x266ec2,_0x486371));const _0xd934d5=_0x12e6e8[_0x12e6e8[_0xe2a5('0x7c')]-0x1];null!==_0x486371&&(_0x486371=_0xd934d5['is'](_0xe2a5('0x25'),_0xe2a5('0xd'))?_0xd934d5[_0xe2a5('0xdd')](_0xe2a5('0x2a'))+0x1:_0xd934d5[_0xe2a5('0xdd')](_0xe2a5('0x17'))+0x1);}else for(let _0x3c5104=0x0;_0x3c5104<_0x266ec2['offsetSize'];_0x3c5104++)_0x12e6e8[_0xe2a5('0x0')](new _0x51fbf2(_0xe2a5('0xd'),{'vid':null===_0x486371?this[_0xe2a5('0x7b')]++:_0x486371++}));if(_0x5c1cbb['is'](_0xe2a5('0xdc'))){const _0x493d4b=G(_0x5c1cbb['rootName']);return _0x493d4b[_0xe2a5('0xed')](0x0,_0x12e6e8),_0x493d4b;}return _0x529c43[_0xe2a5('0x59')](_0xe2a5('0x17'),null===_0x486371?this[_0xe2a5('0x7b')]++:_0x486371++),_0x529c43[_0xe2a5('0xed')](0x0,_0x12e6e8),_0x529c43;}['_calculateMetaData'](_0x126629,_0x5da191,_0x10468d){this[_0xe2a5('0x4d')]();const {roots:_0x380041,markers:_0x3ee9bb,rootsAttributes:_0x14ea79}=this[_0xe2a5('0x11')][_0xe2a5('0xcb')](_0x126629);this['_baseRoots']=new Map(_0x380041),this[_0xe2a5('0x6d')]=new Map(_0x4a6ecc(_0x14ea79));for(const [_0x4633f5,_0x1efffc]of this[_0xe2a5('0x63')])if(_0xe2a5('0x98')!==_0x4633f5&&(this[_0xe2a5('0x6f')][_0xe2a5('0x38')](_0x4633f5,q(_0x1efffc)),this[_0xe2a5('0xfe')]=new Map(_0x4a6ecc(_0x14ea79)),_0x10468d)){const _0x38fd8b=this['_revisionId'];this[_0xe2a5('0x51')]['set'](_0x4633f5,this[_0xe2a5('0x36')](_0x1efffc)),this[_0xe2a5('0xf')]['set'](_0x4633f5,this[_0xe2a5('0x36')](_0x1efffc,_0x38fd8b));}this[_0xe2a5('0x60')]=this[_0xe2a5('0x7b')],this[_0xe2a5('0x6f')][_0xe2a5('0x38')](_0xe2a5('0x98'),q(this['_baseRoots']['get']('$graveyard'))),_0x10468d&&this[_0xe2a5('0x51')][_0xe2a5('0x38')](_0xe2a5('0x98'),this[_0xe2a5('0x36')](this['_baseRoots'][_0xe2a5('0xcb')]('$graveyard')));for(const [_0x197e3c,_0x17e535]of _0x3ee9bb){const _0x408b9d=this[_0xe2a5('0x63')][_0xe2a5('0xcb')](_0x17e535[_0xe2a5('0xfa')]),_0x37b17b=this[_0xe2a5('0x6f')][_0xe2a5('0xcb')](_0x17e535[_0xe2a5('0xfa')]),_0x3a63d1=new _0x555221(this[_0xe2a5('0xf2')](_0x17e535[_0xe2a5('0x89')],_0x408b9d),this[_0xe2a5('0xf2')](_0x17e535[_0xe2a5('0xb')],_0x408b9d)),_0x3e4d19=this[_0xe2a5('0x62')](_0x3a63d1,_0x37b17b);_0x408b9d[_0xe2a5('0xf5')][_0xe2a5('0x38')](_0x197e3c,_0x3a63d1),this['_markers'][_0xe2a5('0x38')](_0x197e3c,_0x3e4d19);}this['_applyOperations'](_0x126629,_0x5da191,_0x10468d);}[_0xe2a5('0xc5')](_0x1a0fc8,_0x50e36b,_0x2da15e){for(const _0x50d2e4 of this[_0xe2a5('0x13')]['getOperations'](_0x1a0fc8,_0x50e36b))this[_0xe2a5('0xba')](_0x50d2e4,_0x2da15e);for(const _0x14ee4c of this[_0xe2a5('0x6f')]['values']())_0x14ee4c[_0xe2a5('0xf5')][_0xe2a5('0xfc')]();for(const [_0x1eb94f,_0x299739]of this[_0xe2a5('0xc9')]){this[_0xe2a5('0x6f')][_0xe2a5('0xcb')](_0x299739['root']['rootName'])['markers'][_0xe2a5('0x38')](_0x1eb94f,_0x299739[_0xe2a5('0x93')]());}const _0x1513ed=new Map(),_0x128fe9=new Map();for(const [_0x61c5a0,_0x449efa]of this[_0xe2a5('0x6f')])_0x1513ed[_0xe2a5('0x38')](_0x61c5a0,q(_0x449efa)),_0x128fe9['set'](_0x61c5a0,this[_0xe2a5('0xfe')][_0xe2a5('0xcb')](_0x61c5a0));this[_0xe2a5('0xab')](_0x50e36b,_0x1513ed,this[_0xe2a5('0xc9')],_0x128fe9);}['_getPreviousFrom'](_0x3ae918){const _0x5dfb47=Array[_0xe2a5('0xd5')](this[_0xe2a5('0x11')][_0xe2a5('0x80')]());_0x5dfb47[_0xe2a5('0x9c')]((_0x17edf9,_0x4cc9ac)=>_0x17edf9-_0x4cc9ac),_0x5dfb47[_0xe2a5('0xbd')]();for(const _0x3a4e3a of _0x5dfb47)if(_0x3a4e3a<_0x3ae918)return _0x3a4e3a;return Number[_0xe2a5('0xbc')];}['_copyMarkers'](_0x10ef3a,_0x311620){const _0x3b7483=Array[_0xe2a5('0xd5')](_0x311620['markers'])[_0xe2a5('0x3e')](([_0x4c570c,_0x15ab81])=>[_0x4c570c,this[_0xe2a5('0x62')](_0x15ab81,_0x10ef3a)]);_0x10ef3a[_0xe2a5('0xf5')]=new Map(_0x3b7483);}['_transformMarkers'](_0x59ed4c){for(const _0xde77c8 of this['_markers'][_0xe2a5('0x96')]()){const _0x1edb93=_0xde77c8['getTransformedByOperation'](_0x59ed4c),_0x51e496=_0x555221[_0xe2a5('0x5c')](_0x1edb93);_0xde77c8[_0xe2a5('0x89')]=_0x51e496[_0xe2a5('0x89')],_0xde77c8[_0xe2a5('0xb')]=_0x51e496['end'];}}[_0xe2a5('0xba')](_0x41239a,_0xd348b5){if(_0xe2a5('0x2')==_0x41239a[_0xe2a5('0xbf')]||_0xe2a5('0x84')==_0x41239a[_0xe2a5('0xbf')])return void this[_0xe2a5('0x8c')](_0x41239a,_0xd348b5);if('insert'==_0x41239a[_0xe2a5('0xbf')]){const _0x2dd291=_0x41239a[_0xe2a5('0x29')][_0xe2a5('0xf8')]['rootName'];this['_diffRoots'][_0xe2a5('0x5b')](_0x2dd291)||(this[_0xe2a5('0x6f')][_0xe2a5('0x38')](_0x2dd291,G(_0x2dd291,!0x0)),this[_0xe2a5('0xfe')][_0xe2a5('0x38')](_0x2dd291,{}),_0xd348b5&&this[_0xe2a5('0x51')][_0xe2a5('0x38')](_0x2dd291,G(_0x2dd291,!0x0)));}else{if('addRootAttribute'==_0x41239a[_0xe2a5('0xbf')]||_0xe2a5('0x54')==_0x41239a['type']||_0xe2a5('0x7d')==_0x41239a['type'])return void this['_handleRootAttributeOperation'](_0x41239a);}const _0x3de796=this[_0xe2a5('0xef')](_0x41239a,this['_diffRoots']);if(_0xe2a5('0x74')!==_0x41239a[_0xe2a5('0xbf')]&&(_0x3de796[_0xe2a5('0x66')](),this['_transformMarkers'](_0x3de796)),_0xd348b5)switch(_0x3de796[_0xe2a5('0xbf')]){case _0xe2a5('0xe0'):this[_0xe2a5('0x58')](_0x41239a);break;case'move':case _0xe2a5('0x2c'):case _0xe2a5('0x30'):this[_0xe2a5('0x3f')](_0x41239a);break;case'merge':this['_handleMergeOperation'](_0x41239a);break;case'split':this['_handleSplitOperation'](_0x41239a);break;case _0xe2a5('0x74'):this[_0xe2a5('0x42')](_0x41239a);}}['_cloneOperation'](_0x18df35,_0x491fc8){const _0x4fbc1b=_0x18df35[_0xe2a5('0x93')]();return _0x4fbc1b[_0xe2a5('0xaa')]=_0x18df35[_0xe2a5('0xaa')],this[_0xe2a5('0x10')](_0x4fbc1b,_0x491fc8),_0x4fbc1b;}[_0xe2a5('0xe1')](_0x5c81a8){return _0x5c81a8[_0xe2a5('0x3e')](_0x5e2efd=>{const _0x8a2031=this[_0xe2a5('0x8')](_0x5e2efd);return Number(_0x5e2efd['item']['getAttribute'](_0x8a2031));});}['_generateTape'](_0xe47838,_0x594919){if(_0xe47838['is']('element',_0xe2a5('0xd')))_0x594919[_0xe2a5('0x0')]({'item':_0xe47838,'type':_0xe2a5('0xe3')});else{_0xe47838['is'](_0xe2a5('0x25'))&&_0x594919[_0xe2a5('0x0')]({'item':_0xe47838,'type':_0xe2a5('0x9b')});for(const _0x239d50 of _0xe47838[_0xe2a5('0x6a')]())this['_generateTape'](_0x239d50,_0x594919);_0xe47838['is'](_0xe2a5('0x25'))&&_0x594919[_0xe2a5('0x0')]({'item':_0xe47838,'type':_0xe2a5('0x1f')});}return _0x594919;}['_getState'](){const _0x1da9c0=new Map(this[_0xe2a5('0xaf')]),_0x106689=new Map(_0x1da9c0),_0x34947d=new Map(),_0x53aa6d={'insertions':{},'deletions':{}},_0x2b553b={'insertions':{},'deletions':{}},_0x1d21b7=new Map(),_0x146f9c=new Set([...this[_0xe2a5('0x63')]['keys'](),...this[_0xe2a5('0x6f')][_0xe2a5('0x80')]()]);_0x146f9c[_0xe2a5('0x7e')](_0xe2a5('0x98'));for(const _0xc7ef83 of _0x146f9c){const _0x127287=this['_diffRoots'][_0xe2a5('0xcb')](_0xc7ef83)||G(_0xc7ef83,!0x1),_0x5d379e=this[_0xe2a5('0x63')][_0xe2a5('0xcb')](_0xc7ef83)||G(_0xc7ef83,!0x1);_0x127287[_0xe2a5('0xb0')]()||_0x5d379e[_0xe2a5('0xb0')]()?(_0x53aa6d['insertions'][_0xc7ef83]=q(_0x127287),_0x53aa6d[_0xe2a5('0x99')][_0xc7ef83]=q(_0x5d379e),this[_0xe2a5('0xcc')](_0x53aa6d[_0xe2a5('0x99')][_0xc7ef83],_0x5d379e),this[_0xe2a5('0xcc')](_0x53aa6d['insertions'][_0xc7ef83],_0x127287),_0x2b553b[_0xe2a5('0x9d')][_0xc7ef83]=this['_generateTape'](this[_0xe2a5('0x51')][_0xe2a5('0xcb')](_0xc7ef83),[]),_0x2b553b[_0xe2a5('0x99')][_0xc7ef83]=this[_0xe2a5('0xd7')](this[_0xe2a5('0xf')][_0xe2a5('0xcb')](_0xc7ef83)||G(_0xc7ef83,!0x1),[])):_0x146f9c[_0xe2a5('0x7e')](_0xc7ef83);}for(const _0x58cb5c of _0x146f9c){const _0x4a1d9d=_0x2b553b[_0xe2a5('0x9d')][_0x58cb5c];for(const _0x29847c of _0x4a1d9d){const _0x32df68=this[_0xe2a5('0x8')](_0x29847c),_0x4081aa=_0x29847c['item'][_0xe2a5('0xdd')](_0x32df68);_0x106689[_0xe2a5('0x7e')](_0x4081aa),_0x4081aa>=this['_startingRevisionId']&&_0x34947d[_0xe2a5('0x38')](_0x4081aa,_0x1da9c0[_0xe2a5('0xcb')](_0x4081aa));}}for(const _0x385dfb of _0x146f9c){const _0x17cd15=_0x2b553b['insertions'][_0x385dfb],_0x2c0bbe=this[_0xe2a5('0xe1')](_0x2b553b['deletions'][_0x385dfb]);let _0x1c2e3e=0x0;for(const _0x1bf0e6 of _0x17cd15){const _0x2171fd=this[_0xe2a5('0x8')](_0x1bf0e6),_0x46fb5e=_0x1bf0e6[_0xe2a5('0x7')][_0xe2a5('0xdd')](_0x2171fd);if(!_0x34947d[_0xe2a5('0x5b')](_0x46fb5e)&&!_0x1d21b7[_0xe2a5('0x5b')](_0x46fb5e)){if(_0x106689['has'](_0x46fb5e))_0x1c2e3e++;else{if(_0x46fb5e!=_0x2c0bbe[_0x1c2e3e]){const _0xa00850=_0x1da9c0[_0xe2a5('0xcb')](_0x46fb5e)||_0x1da9c0[_0xe2a5('0xcb')](_0x2c0bbe[_0x1c2e3e]);for(;_0x46fb5e!=_0x2c0bbe[_0x1c2e3e];)_0x106689[_0xe2a5('0x5b')](_0x2c0bbe[_0x1c2e3e])||(_0x1d21b7[_0xe2a5('0x38')](_0x2c0bbe[_0x1c2e3e],_0xa00850),_0x1da9c0[_0xe2a5('0x38')](_0x2c0bbe[_0x1c2e3e],_0xa00850)),_0x1c2e3e++;}_0x1c2e3e++;}}}}for(const _0x3c8fa2 of _0x146f9c){const _0x587c69=_0x2b553b['insertions'][_0x3c8fa2];for(const _0x56a54d of _0x587c69){const _0x3ac897=this[_0xe2a5('0x8')](_0x56a54d),_0x28980b=_0x56a54d[_0xe2a5('0x7')][_0xe2a5('0xdd')](_0x3ac897);if(_0x1d21b7[_0xe2a5('0x5b')](_0x28980b)){const _0x4875d8=_0x1d21b7[_0xe2a5('0xcb')](_0x28980b);_0x106689['has'](_0x28980b)||_0x106689['set'](_0x28980b,{..._0x4875d8}),_0x34947d[_0xe2a5('0x38')](_0x28980b,{..._0x4875d8});}}}for(const _0x2e6d9f of _0x106689[_0xe2a5('0x80')]())_0x2e6d9f>=this[_0xe2a5('0x60')]&&_0x106689['delete'](_0x2e6d9f);const _0xb4396c=new Map();for(const _0x314491 of _0x146f9c){let _0x1f8d7a=_0x2b553b['insertions'][_0x314491];for(const _0x9e93d0 of _0x1f8d7a)if(_0x9e93d0['item']['is'](_0xe2a5('0x25'),_0xe2a5('0x5d'))){const _0x21d20e=this['_getVidAttributeName'](_0x9e93d0),_0x4a6ad5=_0x9e93d0['item']['getAttribute'](_0x21d20e);if(_0x34947d[_0xe2a5('0x5b')](_0x4a6ad5)){const _0x5756dd=_0x9e93d0[_0xe2a5('0x7')][_0xe2a5('0x28')]['parent'][_0xe2a5('0xdd')]('vid_start'),_0x59ff12=_0xb4396c[_0xe2a5('0xcb')](_0x5756dd)||new Set();_0x59ff12['add'](_0x34947d[_0xe2a5('0xcb')](_0x4a6ad5)[_0xe2a5('0xd2')]),_0xb4396c[_0xe2a5('0x38')](_0x5756dd,_0x59ff12);}}_0x1f8d7a=_0x2b553b['deletions'][_0x314491];for(const _0x427e7e of _0x1f8d7a)if(_0x427e7e[_0xe2a5('0x7')]['is'](_0xe2a5('0x25'),_0xe2a5('0x5d'))){const _0x1e4cf1=this[_0xe2a5('0x8')](_0x427e7e),_0x4d5a7c=_0x427e7e[_0xe2a5('0x7')][_0xe2a5('0xdd')](_0x1e4cf1);if(_0x106689[_0xe2a5('0x5b')](_0x4d5a7c)){const _0x382482=_0x427e7e['item'][_0xe2a5('0x28')]['parent'][_0xe2a5('0xdd')](_0xe2a5('0x40')),_0x274bd1=_0xb4396c['get'](_0x382482)||new Set();_0x274bd1[_0xe2a5('0x82')](_0x106689[_0xe2a5('0xcb')](_0x4d5a7c)[_0xe2a5('0xd2')]),_0xb4396c[_0xe2a5('0x38')](_0x382482,_0x274bd1);}}for(const _0x4cace0 of _0xb4396c[_0xe2a5('0x80')]())(_0x34947d[_0xe2a5('0x5b')](_0x4cace0)||_0x106689[_0xe2a5('0x5b')](_0x4cace0))&&_0xb4396c[_0xe2a5('0x7e')](_0x4cace0);}for(const _0x3eacea of _0x146f9c){const _0x19c0d3=_0x2b553b['insertions'][_0x3eacea];let _0x41b4e6=null,_0x34d5cc=null;for(const _0x3309d9 of _0x19c0d3){const _0x51853f=this[_0xe2a5('0x8')](_0x3309d9),_0x450a12=_0x3309d9['item'][_0xe2a5('0xdd')](_0x51853f),_0x4ef294=_0xb4396c['get'](_0x450a12);_0x4ef294&&'elementStart'==_0x3309d9['type']&&(_0x41b4e6=Array[_0xe2a5('0xd5')](_0x4ef294)[0x0],_0x34d5cc=_0x3309d9[_0xe2a5('0x7')]['getAttribute']('vid_end')),_0x41b4e6&&(_0x106689[_0xe2a5('0x38')](_0x450a12,{'userId':_0x41b4e6}),_0x34947d['set'](_0x450a12,{'userId':_0x41b4e6})),_0x450a12==_0x34d5cc&&(_0x41b4e6=null,_0x34d5cc=null);}}const _0x34b6ce={},_0x3031d7=new Set();for(const _0x4f926d of _0x146f9c){const _0x2bdca6=_0x53aa6d[_0xe2a5('0x99')][_0x4f926d],_0x5b5e89=_0x53aa6d[_0xe2a5('0x9d')][_0x4f926d];for(const {userId:_0x2cff22}of this[_0xe2a5('0xa')][_0xe2a5('0x96')]())null!==_0x2cff22&&_0x3031d7[_0xe2a5('0x82')](_0x2cff22);for(const {userId:_0x23d090}of this[_0xe2a5('0x67')][_0xe2a5('0x96')]())null!==_0x23d090&&_0x3031d7[_0xe2a5('0x82')](_0x23d090);this[_0xe2a5('0x3c')](_0x5b5e89,_0x2b553b[_0xe2a5('0x9d')][_0x4f926d],_0x34947d,_0xe2a5('0xf9'),_0x3031d7),this['_markChanges'](_0x2bdca6,_0x2b553b[_0xe2a5('0x99')][_0x4f926d],_0x106689,'deletion',_0x3031d7),_0x34b6ce[_0x4f926d]={'insertions':this[_0xe2a5('0xa7')](_0x5b5e89),'deletions':this[_0xe2a5('0xa7')](_0x2bdca6),'attachChange':this[_0xe2a5('0x67')][_0xe2a5('0xcb')](_0x4f926d)||null,'attributesBefore':_0x4a6ecc(this[_0xe2a5('0x6d')][_0xe2a5('0xcb')](_0x4f926d))||{},'attributesAfter':_0x4a6ecc(this[_0xe2a5('0xfe')][_0xe2a5('0xcb')](_0x4f926d))};}return{'diffData':_0x34b6ce,'authorsIds':Array[_0xe2a5('0xd5')](_0x3031d7)};}[_0xe2a5('0xac')](_0x8ab9fc){for(const [,_0x36aff5]of _0x8ab9fc[_0xe2a5('0xf5')]){const _0x15c82d=_0x36aff5['start'][_0xe2a5('0x9a')]()[_0xe2a5('0xa4')](_0x3a6bfc=>_0xe2a5('0x5d')==_0x3a6bfc[_0xe2a5('0xb1')]);for(const _0x36ed0c of _0x15c82d)0x1==_0x36ed0c['childCount']&&_0x36ed0c['getChild'](0x0)['is'](_0xe2a5('0x25'),_0xe2a5('0xf1'))&&_0x36ed0c['getChild'](0x0)['_setAttribute'](_0xe2a5('0x8b'),!0x0);}}[_0xe2a5('0xa7')](_0x44cd51){this[_0xe2a5('0xac')](_0x44cd51);const _0x459273=this[_0xe2a5('0xb9')][_0xe2a5('0x52')][_0xe2a5('0x2b')](_0x44cd51,{}),_0x4ca893=Array[_0xe2a5('0xd5')](_0x459273[_0xe2a5('0x6a')]())[_0xe2a5('0x3e')](_0x14094b=>this[_0xe2a5('0x48')](_0x14094b));return JSON['stringify'](_0x4ca893);}[_0xe2a5('0x48')](_0x21ca76){if(_0x21ca76['is'](_0xe2a5('0xd')))return _0x21ca76[_0xe2a5('0x52')];{const _0x399d38=_0x21ca76;return{'type':Object[_0xe2a5('0x80')](B)[_0xe2a5('0xd6')](_0x3d33f5=>_0x21ca76 instanceof B[_0x3d33f5]),'name':_0x399d38[_0xe2a5('0xb1')],'attributes':Array[_0xe2a5('0xd5')](_0x399d38['getAttributes']()),'children':Array[_0xe2a5('0xd5')](_0x399d38['getChildren']())[_0xe2a5('0x3e')](_0x1e4403=>this[_0xe2a5('0x48')](_0x1e4403))};}}['_markChanges'](_0x4582fe,_0x911ba2,_0x38a7fd,_0x6a6914,_0x25bac3){let _0x2f8098=null,_0x58a37d=null,_0x1b989e=0x0;const _0x754ff1=this['editor'][_0xe2a5('0xf4')];for(let _0x401a22=0x0;_0x401a22<_0x911ba2[_0xe2a5('0x7c')];_0x401a22++){const _0x4298cd=this[_0xe2a5('0x8')](_0x911ba2[_0x401a22]),_0x4fa6e9=_0x911ba2[_0x401a22][_0xe2a5('0x7')]['getAttribute'](_0x4298cd),_0x483ad4=_0x38a7fd[_0xe2a5('0xcb')](_0x4fa6e9),_0x2746e8=_0x401a22==_0x911ba2['length']-0x1;(!_0x2f8098&&_0x483ad4&&(_0x2f8098=_0x483ad4,_0x58a37d=_0x911ba2[_0x401a22]),_0x2f8098&&(!_0x483ad4||_0x483ad4[_0xe2a5('0xd2')]!=_0x2f8098['userId']))&&(_0x58a55b(_0x483ad4,L(_0x58a37d,_0x4582fe,_0x754ff1),L(_0x911ba2[_0x401a22],_0x4582fe,_0x754ff1)),_0x2f8098=_0x483ad4||null,_0x58a37d=_0x483ad4?_0x911ba2[_0x401a22]:null),_0x2f8098&&_0x2746e8&&_0x58a55b(_0x483ad4,L(_0x58a37d,_0x4582fe,_0x754ff1),W(_0x911ba2[_0x401a22],_0x4582fe,_0x754ff1));}function _0x58a55b(_0xcd6871,_0x1ea36f,_0xdd5fce){const _0x253d2d=_0x2f8098[_0xe2a5('0xd2')],_0x5681d6=_0xe2a5('0x92')+_0x6a6914+':'+_0x253d2d+':'+_0x1b989e++,_0x27e23b=_0x754ff1[_0xe2a5('0x7f')](_0x1ea36f,_0xdd5fce);_0x4582fe[_0xe2a5('0xf5')][_0xe2a5('0x38')](_0x5681d6,_0x27e23b),null!==_0x253d2d&&_0x25bac3[_0xe2a5('0x82')](_0x253d2d);}}[_0xe2a5('0x8')](_0x428ce0){switch(_0x428ce0['type']){case _0xe2a5('0x9b'):return'vid_start';case _0xe2a5('0x1f'):return _0xe2a5('0x17');default:return _0xe2a5('0x2a');}}['_fixOperation'](_0x38c715,_0x1e5a80){_0x38c715[_0xe2a5('0x64')]=null;for(const _0x42c77c in _0x38c715){const _0x3a7a50=_0x38c715[_0x42c77c];if(_0x3a7a50 instanceof _0x5da8fb){const _0x3642d5=_0x1e5a80[_0xe2a5('0xcb')](_0x3a7a50[_0xe2a5('0xf8')][_0xe2a5('0xfa')]);_0x38c715[_0x42c77c]=this[_0xe2a5('0xf2')](_0x3a7a50,_0x3642d5);}if(_0x3a7a50 instanceof _0x555221){const _0x44b53b=_0x1e5a80[_0xe2a5('0xcb')](_0x3a7a50[_0xe2a5('0xf8')][_0xe2a5('0xfa')]);_0x38c715[_0x42c77c]=this[_0xe2a5('0x62')](_0x3a7a50,_0x44b53b);}_0xe2a5('0xf8')===_0x42c77c&&(_0x38c715[_0xe2a5('0xf8')]=_0x1e5a80[_0xe2a5('0xcb')](_0x38c715[_0xe2a5('0xf8')]['rootName']));}}['_fixRange'](_0x529daf,_0x134831){return this[_0xe2a5('0xb9')][_0xe2a5('0xf4')][_0xe2a5('0x7f')](this[_0xe2a5('0xf2')](_0x529daf['start'],_0x134831),this['_fixPosition'](_0x529daf[_0xe2a5('0xb')],_0x134831));}[_0xe2a5('0xf2')](_0x5c5e67,_0x1e3b64){return this['editor'][_0xe2a5('0xf4')]['createPositionFromPath'](_0x1e3b64,_0x5c5e67[_0xe2a5('0xc4')],_0x5c5e67['stickiness']);}['_handleInsertOperation'](_0x38ffa5){const _0x122411=this[_0xe2a5('0x51')][_0xe2a5('0xcb')](_0x38ffa5[_0xe2a5('0x29')][_0xe2a5('0xf8')][_0xe2a5('0xfa')]),_0x3c5e07=this[_0xe2a5('0xf2')](_0x38ffa5[_0xe2a5('0x29')],_0x122411),_0x45f7f5=null===_0x38ffa5[_0xe2a5('0xaa')]?null:_0x38ffa5[_0xe2a5('0xaa')]||this[_0xe2a5('0xb9')]['plugins']['get'](_0xe2a5('0x71'))['me']['id'],_0x3ed684=_0x3c5e07[_0xe2a5('0x28')],_0x2510e2=this[_0xe2a5('0x7b')],_0x2d6313=[];for(const _0x41ff5a of _0x38ffa5[_0xe2a5('0x3d')])if(_0x41ff5a['is'](_0xe2a5('0x25')))_0x2d6313['push'](this['_makeIdsRoot'](_0x41ff5a));else for(let _0x184fda=0x0;_0x184fda<_0x41ff5a['offsetSize'];_0x184fda++)_0x2d6313['push'](new _0x51fbf2('$text',{'vid':this['_revisionId']++}));const _0x5c0baf=this[_0xe2a5('0x7b')];for(let _0x497082=_0x2510e2;_0x497082<_0x5c0baf;_0x497082++)this['_touched'][_0xe2a5('0x38')](_0x497082,{'userId':_0x45f7f5});_0x3ed684['_insertChild'](_0x3c5e07[_0xe2a5('0x46')],_0x2d6313);}[_0xe2a5('0x3f')](_0x411650){(_0x411650=this[_0xe2a5('0xef')](_0x411650,this[_0xe2a5('0x51')]))['_execute']();const _0xf4e676=null===_0x411650['_authorId']?null:_0x411650['_authorId']||this['editor'][_0xe2a5('0xa2')][_0xe2a5('0xcb')](_0xe2a5('0x71'))['me']['id'],_0x551b7e=_0x411650[_0xe2a5('0xad')](),_0x584d97=_0x551b7e[_0xe2a5('0x28')],_0x515f91=_0x551b7e['offset'];!function _0x1aa431(_0x47a146,_0x586129,_0x1a04ed,_0xe2e05f){for(let _0x2804e2=_0x1a04ed;_0x2804e2<_0xe2e05f;_0x2804e2++){const _0x5bc5e4=_0x586129[_0xe2a5('0x45')](_0x2804e2);_0x5bc5e4['is']('element',_0xe2a5('0xd'))?_0x47a146[_0xe2a5('0x38')](_0x5bc5e4[_0xe2a5('0xdd')](_0xe2a5('0x2a')),{'userId':_0xf4e676}):(_0x47a146[_0xe2a5('0x38')](_0x5bc5e4[_0xe2a5('0xdd')](_0xe2a5('0x40')),{'userId':_0xf4e676}),_0x1aa431(_0x47a146,_0x5bc5e4,0x0,_0x5bc5e4[_0xe2a5('0x8d')]),_0x47a146['set'](_0x5bc5e4['getAttribute'](_0xe2a5('0x17')),{'userId':_0xf4e676}));}}(this['_touched'],_0x584d97,_0x515f91,_0x515f91+_0x411650[_0xe2a5('0x73')]);}['_handleMergeOperation'](_0x332e09){const _0x15468d=null===(_0x332e09=this[_0xe2a5('0xef')](_0x332e09,this[_0xe2a5('0x51')]))[_0xe2a5('0xaa')]?null:_0x332e09[_0xe2a5('0xaa')]||this[_0xe2a5('0xb9')][_0xe2a5('0xa2')][_0xe2a5('0xcb')]('Users')['me']['id'],_0x36653e=_0x332e09['targetPosition'][_0xe2a5('0x28')],_0xda3592=_0x332e09['sourcePosition'][_0xe2a5('0x28')],_0x3587ed=_0x36653e[_0xe2a5('0xdd')]('vid_end'),_0x336817=_0xda3592[_0xe2a5('0xdd')](_0xe2a5('0x40'));_0x36653e[_0xe2a5('0x59')](_0xe2a5('0x17'),_0xda3592[_0xe2a5('0xdd')](_0xe2a5('0x17'))),_0xda3592[_0xe2a5('0x59')]('vid_end',_0x3587ed),this['_touched'][_0xe2a5('0x38')](_0x336817,{'userId':_0x15468d}),this['_touched']['set'](_0x3587ed,{'userId':_0x15468d}),_0x332e09[_0xe2a5('0x66')]();}[_0xe2a5('0x44')](_0x20b7a8){const _0x17e7ff=null===(_0x20b7a8=this[_0xe2a5('0xef')](_0x20b7a8,this['_idsRoots']))[_0xe2a5('0xaa')]?null:_0x20b7a8[_0xe2a5('0xaa')]||this[_0xe2a5('0xb9')][_0xe2a5('0xa2')]['get']('Users')['me']['id'],_0x4a8263=_0x20b7a8[_0xe2a5('0xcf')],_0x17cbe9=_0x20b7a8[_0xe2a5('0xd9')][_0xe2a5('0x28')];_0x20b7a8['_execute']();const _0x1c5968=_0x17cbe9['getAttribute'](_0xe2a5('0x17')),_0x4e6bc6=_0x20b7a8[_0xe2a5('0x9')][_0xe2a5('0x5a')];if(_0x4a8263){const _0x4c9828=_0x4e6bc6['getAttribute'](_0xe2a5('0x17')),_0x95493a=_0x17cbe9[_0xe2a5('0xdd')]('vid_end');_0x17cbe9[_0xe2a5('0x59')](_0xe2a5('0x17'),_0x4c9828),_0x4e6bc6[_0xe2a5('0x59')](_0xe2a5('0x17'),_0x95493a),this[_0xe2a5('0xaf')][_0xe2a5('0x38')](_0x17cbe9[_0xe2a5('0xdd')](_0xe2a5('0x17')),{'userId':_0x17e7ff}),this[_0xe2a5('0xaf')][_0xe2a5('0x38')](_0x4e6bc6[_0xe2a5('0xdd')]('vid_start'),{'userId':_0x17e7ff});}else{const _0x172048=this[_0xe2a5('0x7b')]++,_0x3721e4=this[_0xe2a5('0x7b')]++;_0x17cbe9[_0xe2a5('0x59')](_0xe2a5('0x17'),_0x172048),_0x4e6bc6['_setAttribute'](_0xe2a5('0x40'),_0x3721e4),_0x4e6bc6['_setAttribute']('vid_end',_0x1c5968),this[_0xe2a5('0xaf')][_0xe2a5('0x38')](_0x172048,{'userId':_0x17e7ff}),this[_0xe2a5('0xaf')]['set'](_0x3721e4,{'userId':_0x17e7ff});}}[_0xe2a5('0x42')](_0xc34025){if(!_0xc34025[_0xe2a5('0x31')])return;const _0x3bbf10=(_0xc34025=this[_0xe2a5('0xef')](_0xc34025,this[_0xe2a5('0x6f')]))[_0xe2a5('0x12')]?_0xc34025['oldRange']['root']:null,_0x5e14e7=_0xc34025['newRange']?_0xc34025[_0xe2a5('0xee')]['root']:null;_0x3bbf10&&this[_0xe2a5('0xc9')][_0xe2a5('0x7e')](_0xc34025[_0xe2a5('0xb1')]),_0x5e14e7&&this[_0xe2a5('0xc9')][_0xe2a5('0x38')](_0xc34025[_0xe2a5('0xb1')],_0xc34025['newRange'][_0xe2a5('0x93')]());const _0x133659=null===_0xc34025[_0xe2a5('0xaa')]?null:_0xc34025[_0xe2a5('0xaa')]||this[_0xe2a5('0xb9')][_0xe2a5('0xa2')][_0xe2a5('0xcb')](_0xe2a5('0x71'))['me']['id'],_0x1ad2fd=_0xc34025[_0xe2a5('0xb1')];if(!this['_touchedMarkers'][_0xe2a5('0x5b')](_0x1ad2fd))return void this['_touchedMarkers'][_0xe2a5('0x38')](_0x1ad2fd,{'range':_0xc34025['oldRange'],'userId':_0x133659});const _0x4c887d=this[_0xe2a5('0xa')]['get'](_0x1ad2fd),_0x40d0d3=_0x4c887d['range'],_0x13f20d=_0xc34025[_0xe2a5('0xee')];null==_0x40d0d3&&null==_0x13f20d||_0x40d0d3&&_0x13f20d&&_0x40d0d3['isEqual'](_0x13f20d)?this[_0xe2a5('0xa')][_0xe2a5('0x7e')](_0xc34025[_0xe2a5('0xb1')]):_0x4c887d[_0xe2a5('0xd2')]=_0x133659;}[_0xe2a5('0x8c')](_0x2c62ab,_0x1e493a){this['_diffRoots']['has'](_0x2c62ab[_0xe2a5('0xfa')])?this[_0xe2a5('0x6f')][_0xe2a5('0xcb')](_0x2c62ab[_0xe2a5('0xfa')])[_0xe2a5('0x87')]=_0x2c62ab[_0xe2a5('0x6b')]:(this['_diffRoots'][_0xe2a5('0x38')](_0x2c62ab[_0xe2a5('0xfa')],G(_0x2c62ab[_0xe2a5('0xfa')],!0x0)),this[_0xe2a5('0xfe')][_0xe2a5('0x38')](_0x2c62ab[_0xe2a5('0xfa')],{}),_0x1e493a&&this['_idsRoots'][_0xe2a5('0x38')](_0x2c62ab[_0xe2a5('0xfa')],G(_0x2c62ab[_0xe2a5('0xfa')],!0x0)));const _0x6b7bc7=null===_0x2c62ab[_0xe2a5('0xaa')]?null:_0x2c62ab['_authorId']||this[_0xe2a5('0xb9')][_0xe2a5('0xa2')][_0xe2a5('0xcb')]('Users')['me']['id'],_0x3a2d3c=this[_0xe2a5('0x67')][_0xe2a5('0xcb')](_0x2c62ab[_0xe2a5('0xfa')]);_0x3a2d3c&&_0x3a2d3c[_0xe2a5('0xd2')]===_0x6b7bc7?this[_0xe2a5('0x67')][_0xe2a5('0x7e')](_0x2c62ab['rootName']):this[_0xe2a5('0x67')][_0xe2a5('0x38')](_0x2c62ab['rootName'],{'userId':_0x6b7bc7,'isAttached':_0x2c62ab[_0xe2a5('0x6b')]});}[_0xe2a5('0x79')](_0x30546c){const _0x400de1=this['_diffRootsAttributes'][_0xe2a5('0xcb')](_0x30546c[_0xe2a5('0xf8')][_0xe2a5('0xfa')]);null===_0x30546c[_0xe2a5('0xf3')]?delete _0x400de1[_0x30546c[_0xe2a5('0xbe')]]:_0x400de1[_0x30546c[_0xe2a5('0xbe')]]=_0x30546c[_0xe2a5('0xf3')];}}function q(_0x460d3f){const _0x343c8a=G(_0x460d3f[_0xe2a5('0xfa')],_0x460d3f['isAttached']());for(const _0x104d22 of _0x460d3f[_0xe2a5('0x6a')]()){const _0x72d16a=_0x104d22[_0xe2a5('0xe2')](!0x0);_0x343c8a[_0xe2a5('0x86')](_0x72d16a);}return _0x343c8a;}function G(_0x4614db,_0x10bcd9=!0x0){const _0x3e203c=new _0x291270();return _0x3e203c[_0xe2a5('0xfa')]=_0x4614db,_0x3e203c[_0xe2a5('0x87')]=_0x10bcd9,_0x3e203c[_0xe2a5('0xb0')]=()=>_0x3e203c[_0xe2a5('0x87')],_0x3e203c;}function L(_0x351f61,_0x3b0e1f,_0x261318){const _0x3c566c=_0xe2a5('0x1f')==_0x351f61['type']?_0x261318[_0xe2a5('0xdf')](_0x351f61[_0xe2a5('0x7')],_0xe2a5('0xb')):_0x261318[_0xe2a5('0x1')](_0x351f61[_0xe2a5('0x7')]);return _0x261318['createPositionFromPath'](_0x3b0e1f,_0x3c566c[_0xe2a5('0xc4')],_0x3c566c[_0xe2a5('0x57')]);}function W(_0x3ad886,_0x4acbcc,_0x5d1fac){const _0x2c0930=_0xe2a5('0x9b')==_0x3ad886['type']?_0x5d1fac[_0xe2a5('0xdf')](_0x3ad886[_0xe2a5('0x7')],0x0):_0x5d1fac[_0xe2a5('0xa1')](_0x3ad886[_0xe2a5('0x7')]);return _0x5d1fac[_0xe2a5('0x21')](_0x4acbcc,_0x2c0930[_0xe2a5('0xc4')],_0x2c0930[_0xe2a5('0x57')]);}
|
|
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']);}
|