@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231219.0 → 0.0.0-nightly-20231220.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 _0x5551=['_startingVersion','paragraph','finally','documentFragment','_cloneOperation','userId','some','_initialRevisionId','type','graveyardPosition','_handleMergeOperation','adapter','_savedMetaData','childCount','_setConversion','_copyMarkers','nodes','createRange','toVersion','Initial\x20revision','getChildren','$text','getTime','getAttributes','initial','loadState','NEGATIVE_INFINITY','currentRevision','rootName','_getVidAttributeName','_handleRootOperation','offsetSize','_touched','getRevisionRootsAttributes','_makeModelFromViewString','tableCell','_baseRootsAttributes','init','getIndex','setRevisionData','_handleRootAttributeOperation','rootsAttributes','createRangeIn','_pendingAction','parent','RevisionsRepository','forEach','createPositionAt','_startingRevisionId','baseVersion','name','_bufferUpdate','marked','element','nodeAfter','newRange','bind','then','editor','plugins','reInit','item','_execute','size','includes','initialData','_diffRoots','getWalker','find','_transformMarkers','_diffRootsAttributes','howMany','vid','_loadRevisionData','addRoot','addRevision','keepParagraph','stickiness','attachChange','processor','_source','version','getRootNames','clear','_getState','document','saveRevision','_getPreviousFrom','start','newValue','max','createPositionBefore','_fixOperation','_markers','data','_baseIdsRoots','values','insertion','from','getRange','getRevision','_findInsertionIndex','getUser','insert','createPositionAfter','set','_createInitialRevision','_revisionDataBuilder','startsWith','split','getAttribute','children','_loadState','splitPosition','root','_isAttached','range','_markChanges','_calculateMetaData','_touchedMarkers','_touchedRoots','_handleMarkerOperation','conversion','deletions','roots','_isPendingUpdate','_saveMetaData','_handleInsertOperation','length','config','attributesAfter','insertionPosition','ready','isEnabled','repository','fromVersion','getNodeByPath','slice','revision-start','reverse','addRevisionData','merge','_loadedStateData','oldRange','isReady','getChild','getOperations','clone','source','_continueCurrentRevision','isAttached','_fixRange','vid_end','creatorId','_removePendingAction','toModel','_idsRoots','_makeIdsRoot','RealTimeCollaborationClient','setSource','createPositionFromPath','keys','getData','_insertChild','update','getCurrentRevisionId','_prepareViewToSave','has','upcast','insertions','vid_start','elementEnd','delete','getMovedRangeStart','map','isAdd','marker','filter','offset','authors','removeRootAttribute','editing','detachRoot','_applyOperations','collaboration.channelId','Empty\x20document','_handleMoveOperation','getLatestVersion','get','previousPosition','_removeRevisionMarkers','creator','addRootAttribute','markers','view','_getViewJson','_handleSplitOperation','reinsert','add','changeRootAttribute','elementStart','resolve','revision:','move','parse','createRevision','_authorId','markerToData','end','_update','_removeMetaData','attributesBefore','deletion','_reset','for','_setAttribute','stringify','_revisionId','_lastTo','_getBaseVids','push','useFillerType','buildRevisionData','attributes','dataToMarker','_generateTape','_replaceEditorDataWithRevisionData','position','diffData','revisionHistory.resumeUnsavedRevision','locale','authorsIds','createdAt','_makeRevision','string','default','sort','requires','key','_lastFrom','_bufferedUpdates','$graveyard','history','_createCurrentRevision','path','getTransformedByOperation','_processRootBeforeSave','_baseRoots','sourcePosition','PendingActions','_fixPosition','_handleOperation','getRevisions','afterInit','model','Users','sendBufferedUpdates','getRevisionDocumentData'];(function(_0x4f7c66,_0x555155){const _0x5baade=function(_0x21d88b){while(--_0x21d88b){_0x4f7c66['push'](_0x4f7c66['shift']());}};_0x5baade(++_0x555155);}(_0x5551,0x1b2));const _0x5baa=function(_0x4f7c66,_0x555155){_0x4f7c66=_0x4f7c66-0x0;let _0x5baade=_0x5551[_0x4f7c66];return _0x5baade;};import{Users as _0x1c48af}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x2c0e82,PendingActions as _0x3ae1a3}from'ckeditor5/src/core.js';import{logWarning as _0x14a173,uid as _0x4ecd17}from'ckeditor5/src/utils.js';import{Position as _0x5a9ecf,Range as _0x419fb2,Element as _0x49c8c5,DocumentFragment as _0x574b2b,ViewText as _0x25f39a,ViewElement as _0x5097e5,ViewContainerElement as _0x323064,ViewAttributeElement as _0x3cd380,ViewEmptyElement as _0x3684b0,ViewRawElement as _0x872415,ViewUIElement as _0x35cb09,ViewDocumentFragment as _0x4eed07}from'ckeditor5/src/engine.js';import _0x428a92 from'./revisionsrepository.js';import{getTranslation as _0x2f53a5}from'./utils/common-translations.js';import{cloneDeep as _0x2b1147,isEqual as _0x343dc0}from'lodash-es';const B={'c':_0x323064,'a':_0x3cd380,'e':_0x3684b0,'r':_0x872415,'u':_0x35cb09};export default class l extends _0x2c0e82{static get['pluginName'](){return'RevisionTracker';}static get[_0x5baa('0x3d')](){return[_0x1c48af,_0x428a92,_0x3ae1a3];}constructor(_0x5be922){super(_0x5be922),this['adapter']=null,this[_0x5baa('0x6d')]=null,this[_0x5baa('0xbd')]=new H(this[_0x5baa('0x8c')]),this[_0x5baa('0x59')]=this[_0x5baa('0x8c')][_0x5baa('0xd3')]['get'](_0x5baa('0x8'))||_0x5baa('0x6a'),this['_bufferedUpdates']=new Map(),this[_0x5baa('0xe0')]=null;const _0x4d55cd=_0x4ecd17();this[_0x5baa('0xa2')]={'history':this[_0x5baa('0x8c')][_0x5baa('0x4e')][_0x5baa('0xa7')]['history'],'getLatestVersion':()=>Promise[_0x5baa('0x19')](this[_0x5baa('0x8c')]['model'][_0x5baa('0xa7')][_0x5baa('0xa3')]),'getCurrentRevisionId':()=>_0x4d55cd},this['set'](_0x5baa('0xe2'),!0x1),this[_0x5baa('0xbb')](_0x5baa('0xd7'),!0x0),this[_0x5baa('0xbb')](_0x5baa('0xcf'),!0x1),this[_0x5baa('0x8c')]['config']['define'](_0x5baa('0x35'),!0x0),this[_0x5baa('0x8c')]['conversion']['for'](_0x5baa('0xfa'))[_0x5baa('0x30')]({'view':'revision'});}[_0x5baa('0x77')](){this['repository']=this[_0x5baa('0x8c')][_0x5baa('0x8d')][_0x5baa('0xc')](_0x5baa('0x7f')),this[_0x5baa('0x60')](),this[_0x5baa('0x8c')]['data']['on'](_0x5baa('0xd6'),()=>{const _0x86492e=this[_0x5baa('0xd8')][_0x5baa('0xb6')](0x0),_0x586a6d=_0x86492e&&null===_0x86492e[_0x5baa('0xf')]?_0x86492e:null;if(this[_0x5baa('0xe7')]=!!_0x586a6d&&this[_0x5baa('0x8c')]['config'][_0x5baa('0xc')](_0x5baa('0x35')),this[_0x5baa('0x8c')][_0x5baa('0x8d')][_0x5baa('0xf9')](_0x5baa('0xf0'))){const _0x3b67dd=this[_0x5baa('0xa2')]['getCurrentRevisionId'](),_0x342e13=this[_0x5baa('0xd8')][_0x5baa('0xb6')](_0x3b67dd);if(_0x342e13)this[_0x5baa('0x52')]=_0x342e13[_0x5baa('0xd9')],this[_0x5baa('0xe7')]=!0x1;else{const _0x34e7a8=this[_0x5baa('0xa2')][_0x5baa('0x42')]['_operations'][_0x5baa('0x96')](_0x11bf2f=>!_0x11bf2f['_isInit']),_0xc54fd7=_0x34e7a8?_0x34e7a8[_0x5baa('0x83')]:this[_0x5baa('0xa2')]['history'][_0x5baa('0xa3')];_0x86492e?(_0x86492e[_0x5baa('0x64')]<_0xc54fd7&&_0x86492e[_0x5baa('0x21')]({'toVersion':_0xc54fd7}),this['_continueCurrentRevision']?(this['_source'][_0x5baa('0xf7')]=()=>_0x586a6d['id'],this[_0x5baa('0x52')]=_0x586a6d[_0x5baa('0xd9')]):(this['_startingVersion']=_0x86492e['toVersion'],this[_0x5baa('0xe7')]=!0x1)):(this['_startingVersion']=_0xc54fd7,this[_0x5baa('0xe7')]=!0x1);}}else _0x586a6d&&(this[_0x5baa('0x8c')]['model'][_0x5baa('0xa7')]['history'][_0x5baa('0xa3')]=Math[_0x5baa('0xac')](_0x586a6d[_0x5baa('0x64')],this[_0x5baa('0x8c')][_0x5baa('0x4e')][_0x5baa('0xa7')][_0x5baa('0x42')][_0x5baa('0xa3')]),_0x586a6d[_0x5baa('0xd9')]===_0x586a6d['toVersion']?(0x0!==_0x586a6d[_0x5baa('0xd9')]&&(this[_0x5baa('0xa2')][_0x5baa('0xf7')]=()=>_0x586a6d['id']),this[_0x5baa('0xe7')]=!0x1):this[_0x5baa('0xe7')]&&(this[_0x5baa('0xa2')][_0x5baa('0xf7')]=()=>_0x586a6d['id'],this[_0x5baa('0x52')]=_0x586a6d[_0x5baa('0xd9')])),this[_0x5baa('0xe7')]||(this[_0x5baa('0x52')]=this['editor'][_0x5baa('0x4e')]['document'][_0x5baa('0xa3')]);this['_revisionDataBuilder'][_0x5baa('0x77')](this[_0x5baa('0xa2')]['history']),this[_0x5baa('0xbc')](this[_0x5baa('0x52')]),this[_0x5baa('0x43')](this['_startingVersion']),this[_0x5baa('0x5d')]&&this[_0x5baa('0x50')]();}),this[_0x5baa('0x8a')](_0x5baa('0xe2'))['to'](this,_0x5baa('0xcf'),_0x2d4acd=>!_0x2d4acd);}async[_0x5baa('0x4d')](){if(this[_0x5baa('0xd8')][_0x5baa('0xd2')]>0x0){const _0x2977f6=this[_0x5baa('0xd8')]['getRevision'](0x0),_0x5b4d77=await this[_0x5baa('0x51')](_0x2977f6),_0x4c72a2=await this[_0x5baa('0x73')](_0x2977f6);this[_0x5baa('0x32')](_0x5b4d77,_0x4c72a2);}}[_0x5baa('0xf1')](_0x2eb3cb){this[_0x5baa('0xa2')]=_0x2eb3cb;}async[_0x5baa('0xf6')](){const _0x1e5ac8=await this[_0x5baa('0xa2')]['getLatestVersion']();if(_0x1e5ac8>this[_0x5baa('0x6d')][_0x5baa('0x64')]){await this[_0x5baa('0xc2')]();const _0xf0c65=this[_0x5baa('0x2e')]({'revision':this[_0x5baa('0x6d')],'to':_0x1e5ac8});_0xf0c65[_0x5baa('0x3')]=_0xf0c65[_0x5baa('0x37')]['map'](_0x46c150=>this[_0x5baa('0x8c')][_0x5baa('0x8d')]['get']('Users')['getUser'](_0x46c150)),this[_0x5baa('0x6d')][_0x5baa('0x21')](_0xf0c65);}}async['_loadState'](){this[_0x5baa('0xe7')]&&!this[_0x5baa('0xe0')]&&(await this[_0x5baa('0x9b')](this['currentRevision']),this[_0x5baa('0xbd')][_0x5baa('0x6b')](this['currentRevision']),this[_0x5baa('0xe0')]={'fromVersion':this[_0x5baa('0x6d')]['fromVersion'],'authors':this[_0x5baa('0x6d')]['authors'][_0x5baa('0xdb')]()});}async[_0x5baa('0xa8')](_0x32a638={},_0x41f8a5=null){const _0x5ab908=[];await this['_loadState'](),this[_0x5baa('0xe7')]=!0x1,_0x41f8a5>this[_0x5baa('0x6d')]['toVersion']&&(_0x41f8a5=null),null===_0x41f8a5&&(_0x41f8a5=await this[_0x5baa('0xa2')][_0x5baa('0xb')]());const _0x150667=this['_getFromVersion'](_0x41f8a5),_0x441c71=this['buildRevisionData']({'from':_0x150667,'to':_0x41f8a5});if(this[_0x5baa('0x6d')][_0x5baa('0x64')]<_0x41f8a5){const _0x4576a0=this[_0x5baa('0x2e')]({'revision':this[_0x5baa('0x6d')],'from':_0x41f8a5,'to':_0x41f8a5});_0x4576a0['authors']=[],_0x4576a0[_0x5baa('0x37')]=[],_0x4576a0['id']=this['currentRevision']['id'],this['currentRevision'][_0x5baa('0x21')](_0x4576a0,!0x0),delete _0x4576a0[_0x5baa('0x3')],_0x5ab908[_0x5baa('0x2c')](_0x4576a0);}_0x32a638['creatorId']=this[_0x5baa('0x8c')][_0x5baa('0x8d')]['get']('Users')['me']['id'],_0x32a638[_0x5baa('0x84')]=_0x32a638['name']||null,_0x32a638['id']=_0x32a638['id']||_0x4ecd17(),_0x32a638={..._0x32a638,..._0x441c71};const _0x29c08e=this[_0x5baa('0xde')](_0x32a638);_0x5ab908[_0x5baa('0x2c')](_0x32a638);const _0x81b8f5=this[_0x5baa('0xd8')][_0x5baa('0x78')](_0x29c08e);if(0x0!==_0x81b8f5){const _0x5dc407=this['repository'][_0x5baa('0xb6')](_0x81b8f5-0x1);if(_0x5dc407[_0x5baa('0xd9')]!==_0x41f8a5){const _0x526380=this[_0x5baa('0xbd')][_0x5baa('0xf4')](_0x41f8a5,_0x5dc407[_0x5baa('0x64')]),_0x38b184={'id':_0x5dc407['id'],'diffData':_0x526380[_0x5baa('0x34')],'authorsIds':_0x526380[_0x5baa('0x37')],'authors':_0x526380[_0x5baa('0x37')][_0x5baa('0x100')](_0x626df7=>this[_0x5baa('0x8c')]['plugins'][_0x5baa('0xc')]('Users')['getUser'](_0x626df7)),'fromVersion':_0x41f8a5};_0x5dc407===this['currentRevision']&&(_0x38b184['createdAt']=new Date(_0x32a638[_0x5baa('0x38')][_0x5baa('0x68')]()+0xa)),_0x5dc407['_update'](_0x38b184,!0x0),delete _0x38b184[_0x5baa('0x3')],_0x5ab908[_0x5baa('0x2c')](_0x38b184);}}if(this['adapter']){for(const _0x160db6 of _0x5ab908)this[_0x5baa('0x85')](_0x160db6['id'],_0x160db6,!0x0);this[_0x5baa('0x50')]();}return _0x29c08e;}[_0x5baa('0xde')](_0x5167b5){const _0x46ddbb=this[_0x5baa('0xd8')][_0x5baa('0x1d')](_0x5167b5);return this[_0x5baa('0x5d')]&&_0x46ddbb['on']('_update',(_0x3eb9e1,_0x59018f,_0x3f8d2c)=>{_0x3f8d2c||(this['_bufferUpdate'](_0x59018f['id'],_0x59018f,!0x0),this[_0x5baa('0x50')]());}),this['repository'][_0x5baa('0x9d')](_0x46ddbb,this[_0x5baa('0xb7')](_0x46ddbb)),_0x46ddbb;}async[_0x5baa('0x51')](_0x29c9e6){await this[_0x5baa('0x9b')](_0x29c9e6);const _0x12fd67={};for(const _0x187025 in _0x29c9e6['diffData']){if(_0x29c9e6['diffData'][_0x187025][_0x5baa('0xa0')]&&!_0x29c9e6[_0x5baa('0x34')][_0x187025]['attachChange'][_0x5baa('0xe8')])continue;const _0x5b3ab9=this[_0x5baa('0xe')](JSON[_0x5baa('0x1c')](_0x29c9e6[_0x5baa('0x34')][_0x187025]['insertions'])),_0x222837=this[_0x5baa('0x8c')]['editing'][_0x5baa('0x12')][_0x5baa('0xa7')],_0x50a00e=new _0x4eed07(_0x222837,_0x5b3ab9[_0x5baa('0x100')](_0x3dd0a9=>J(_0x3dd0a9,this[_0x5baa('0x8c')])));this[_0x5baa('0x8c')][_0x5baa('0xb0')][_0x5baa('0xa1')][_0x5baa('0x2d')](_0x5baa('0x86')),_0x12fd67[_0x187025]=this[_0x5baa('0x8c')]['data'][_0x5baa('0xa1')]['toData'](_0x50a00e),this[_0x5baa('0x8c')][_0x5baa('0xb0')]['processor']['useFillerType'](_0x5baa('0x3b'));}return _0x12fd67;}async[_0x5baa('0x73')](_0x148cdf){await this[_0x5baa('0x9b')](_0x148cdf);const _0x5c7841={};for(const _0xbffaa in _0x148cdf[_0x5baa('0x34')])_0x148cdf['diffData'][_0xbffaa]['attachChange']&&!_0x148cdf[_0x5baa('0x34')][_0xbffaa][_0x5baa('0xa0')]['isAttached']||(_0x5c7841[_0xbffaa]=_0x148cdf[_0x5baa('0x34')][_0xbffaa]['attributesAfter']||{});return _0x5c7841;}[_0x5baa('0x50')](){if(0x0===this[_0x5baa('0x40')]['size'])return;if(this[_0x5baa('0xcf')])return;let _0x28a545=Array[_0x5baa('0xb4')](this[_0x5baa('0x40')][_0x5baa('0xb2')]());this['_bufferedUpdates'][_0x5baa('0xa5')]();for(let _0xe7cb44=0x0;_0xe7cb44<_0x28a545[_0x5baa('0xd2')];_0xe7cb44++){const _0x3bcb1f=_0x28a545[_0xe7cb44];let _0x96ac21=!0x1;for(const _0x4549de of Object['keys'](_0x3bcb1f))void 0x0===_0x3bcb1f[_0x4549de]?delete _0x3bcb1f[_0x4549de]:'id'!==_0x4549de&&(_0x96ac21=!0x0);_0x96ac21||(_0x28a545[_0xe7cb44]=null);}if(_0x28a545=_0x28a545[_0x5baa('0x1')](_0x3d27bd=>null!==_0x3d27bd),!_0x28a545['length'])return;for(let _0x1ae288=0x0;_0x1ae288<_0x28a545[_0x5baa('0xd2')];_0x1ae288++){const _0x3356d7=_0x28a545[_0x1ae288];void 0x0!==_0x3356d7['fromVersion']&&void 0x0===_0x3356d7[_0x5baa('0x64')]&&(_0x3356d7[_0x5baa('0x64')]=this[_0x5baa('0xd8')][_0x5baa('0xb6')](_0x3356d7['id'])['toVersion']),void 0x0!==_0x3356d7['toVersion']&&void 0x0===_0x3356d7[_0x5baa('0xd9')]&&(_0x3356d7[_0x5baa('0xd9')]=this[_0x5baa('0xd8')][_0x5baa('0xb6')](_0x3356d7['id'])[_0x5baa('0xd9')]);}const _0xcee4ee=this[_0x5baa('0x8c')]['config']['get'](_0x5baa('0x8'));this[_0x5baa('0xcf')]=!0x0,this['_addPendingAction'](),this[_0x5baa('0x5d')]['updateRevisions'](_0x28a545,_0xcee4ee)[_0x5baa('0x54')](()=>{this[_0x5baa('0xcf')]=!0x1;})[_0x5baa('0x8b')](_0x1ba3e1=>{if(_0x1ba3e1)for(const _0x4edbfa of _0x1ba3e1)this[_0x5baa('0x79')]({'id':_0x4edbfa['id'],'createdAt':_0x4edbfa[_0x5baa('0x38')]});this[_0x5baa('0xec')](),this[_0x5baa('0x50')]();});}[_0x5baa('0x32')](_0x20e6ac,_0x4694c1){let _0x5a532f=this[_0x5baa('0x8c')]['config']['get'](_0x5baa('0x93')),_0x21ca85=this['editor'][_0x5baa('0xd3')][_0x5baa('0xc')](_0x5baa('0x7b'));if(void 0x0===_0x5a532f){_0x5a532f={};for(const _0x4b8de2 of this['editor'][_0x5baa('0x4e')][_0x5baa('0xa7')][_0x5baa('0xa4')]())_0x5a532f[_0x4b8de2]='';}if(_0x5baa('0x3a')==typeof _0x5a532f&&(_0x5a532f={'main':_0x5a532f}),void 0x0===_0x21ca85){_0x21ca85={};for(const _0x3b2618 of this[_0x5baa('0x8c')][_0x5baa('0x4e')]['document'][_0x5baa('0xa4')]())_0x21ca85[_0x3b2618]={};}let _0x2d32f2=!0x1;const _0xfd3d8a=Object[_0x5baa('0xf3')](_0x5a532f),_0x563c80=Object[_0x5baa('0xf3')](_0x20e6ac);for(const _0x3648e2 of _0xfd3d8a){if(_0x5a532f[_0x3648e2]!==_0x20e6ac[_0x3648e2]&&''!==_0x5a532f[_0x3648e2]['trim']()){_0x2d32f2=!0x0;break;}if(!_0x343dc0(_0x21ca85[_0x3648e2],_0x4694c1[_0x3648e2])&&Object[_0x5baa('0xf3')](_0x21ca85[_0x3648e2])['length']>0x0){_0x2d32f2=!0x0;break;}}_0x2d32f2||(_0x2d32f2=_0x563c80[_0x5baa('0x58')](_0xa8f42b=>!this[_0x5baa('0x8c')]['model'][_0x5baa('0xa7')]['getRoot'](_0xa8f42b))),_0x2d32f2&&_0x14a173('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5a532f,'editorRootsAttributes':_0x21ca85,'revisionData':_0x20e6ac,'revisionRootsAttributes':_0x4694c1}),this[_0x5baa('0x8c')][_0x5baa('0xd3')][_0x5baa('0xbb')]('initialData',_0x20e6ac),this['editor']['config'][_0x5baa('0xbb')]('rootsAttributes',_0x4694c1);}['_addPendingAction'](){if(!this[_0x5baa('0x7d')]){const _0x52615b=this[_0x5baa('0x8c')][_0x5baa('0x8d')][_0x5baa('0xc')](_0x5baa('0x49'));this['_pendingAction']=_0x52615b[_0x5baa('0x16')](_0x2f53a5(this[_0x5baa('0x8c')][_0x5baa('0x36')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x5baa('0xec')](){this[_0x5baa('0x7d')]&&(this['editor'][_0x5baa('0x8d')][_0x5baa('0xc')](_0x5baa('0x49'))['remove'](this[_0x5baa('0x7d')]),this['_pendingAction']=null);}[_0x5baa('0xb7')](_0x34d56f){const _0x4caf5d=this['repository'][_0x5baa('0x4c')]();_0x4caf5d[_0x5baa('0xdd')]();let _0x4b55c6=0x0;for(;_0x4b55c6<_0x4caf5d[_0x5baa('0xd2')];){const _0x383c7c=_0x4caf5d[_0x4b55c6];if(_0x383c7c===this['currentRevision']){_0x4b55c6++;continue;}if(_0x383c7c['id']===this[_0x5baa('0x59')])break;const _0x300581=_0x34d56f[_0x5baa('0x64')]-_0x383c7c[_0x5baa('0x64')]||_0x34d56f[_0x5baa('0xd9')]-_0x383c7c[_0x5baa('0xd9')];if(_0x300581>0x0)break;if(_0x300581<0x0)_0x4b55c6++;else{if(!_0x34d56f[_0x5baa('0xf')]&&_0x383c7c['creator'])break;if(_0x383c7c[_0x5baa('0xf')]||!_0x34d56f[_0x5baa('0xf')]){if(_0x34d56f['createdAt']>_0x383c7c['createdAt'])break;_0x4b55c6++;}else _0x4b55c6++;}}return _0x4b55c6;}[_0x5baa('0x79')](_0xc6b236){const _0x4d362e=this['repository'][_0x5baa('0xb6')](_0xc6b236['id']);if(_0xc6b236[_0x5baa('0x38')]&&(_0xc6b236[_0x5baa('0x38')]=new Date(_0xc6b236['createdAt'])),_0xc6b236[_0x5baa('0x37')]){const _0x40d595=this['editor']['plugins'][_0x5baa('0xc')](_0x5baa('0x4f'));_0xc6b236[_0x5baa('0x3')]=_0xc6b236[_0x5baa('0x37')]['map'](_0x27ac48=>_0x40d595[_0x5baa('0xb8')](_0x27ac48));}_0x4d362e[_0x5baa('0x21')](_0xc6b236,!0x0);}[_0x5baa('0x2e')]({revision:_0x563a61=null,from:_0x1f71b9=null,to:_0xe27945=null}){_0x1f71b9=null!==_0x1f71b9?_0x1f71b9:_0x563a61['fromVersion'],_0xe27945=null!==_0xe27945?_0xe27945:_0x563a61[_0x5baa('0x64')];const _0x552808=this[_0x5baa('0xbd')][_0x5baa('0xf4')](_0x1f71b9,_0xe27945),_0x15c701={'diffData':_0x552808['diffData'],'authorsIds':_0x552808[_0x5baa('0x37')],'fromVersion':_0x1f71b9,'toVersion':_0xe27945};if(!_0x563a61||_0xe27945!==_0x563a61[_0x5baa('0x64')]){const _0x4386e4=_0xe27945-0x1,_0x33c369=this['_source'][_0x5baa('0x42')]['getOperation'](_0x4386e4);_0x15c701[_0x5baa('0x38')]=_0x33c369&&_0x33c369[_0x5baa('0x38')]||new Date();}if(this[_0x5baa('0xe0')]&&_0x1f71b9===this['_loadedStateData'][_0x5baa('0xd9')])for(const _0x784f55 of this[_0x5baa('0xe0')]['authors'])_0x15c701[_0x5baa('0x37')][_0x5baa('0x92')](_0x784f55['id'])||_0x15c701[_0x5baa('0x37')][_0x5baa('0x2c')](_0x784f55['id']);return _0x15c701;}['_loadRevisionData'](_0x4ad695){if(!_0x4ad695||_0x4ad695[_0x5baa('0x34')])return Promise[_0x5baa('0x19')]();{const _0x2538e6=this[_0x5baa('0x8c')][_0x5baa('0xd3')][_0x5baa('0xc')](_0x5baa('0x8'));return this[_0x5baa('0x5d')]['getRevision']({'channelId':_0x2538e6,'revisionId':_0x4ad695['id']})[_0x5baa('0x8b')](_0x108730=>{_0x4ad695[_0x5baa('0x34')]=_0x108730[_0x5baa('0x34')];});}}[_0x5baa('0x85')](_0x40906d,_0x12b6f0,_0x5007cf){if(this[_0x5baa('0x40')]['has'](_0x40906d)){const _0x39ea10=this[_0x5baa('0x40')]['get'](_0x40906d);_0x12b6f0=_0x5007cf?{..._0x39ea10,..._0x12b6f0}:{..._0x12b6f0,..._0x39ea10};}this[_0x5baa('0x40')][_0x5baa('0xbb')](_0x40906d,_0x12b6f0);}['_getFromVersion'](_0x90ca7d){const _0x20240a=this[_0x5baa('0xd8')][_0x5baa('0x4c')]();_0x20240a['reverse'](),_0x20240a['shift']();const _0xcb77a3=_0x20240a[_0x5baa('0x96')](_0x5b280c=>_0x5b280c[_0x5baa('0x64')]<=_0x90ca7d)[_0x5baa('0x64')];return _0xcb77a3<this[_0x5baa('0x52')]?this[_0x5baa('0x52')]:_0xcb77a3;}[_0x5baa('0xbc')](_0x5b9437){const _0x108964=this['repository'][_0x5baa('0xb6')](this[_0x5baa('0xd8')][_0x5baa('0xd2')]-0x1);if(_0x108964)this[_0x5baa('0x59')]=_0x108964['id'];else{const _0x18fee1=!this[_0x5baa('0x8c')][_0x5baa('0x4e')][_0x5baa('0xa7')][_0x5baa('0xce')][_0x5baa('0x96')](_0x1d2079=>this[_0x5baa('0x8c')][_0x5baa('0x4e')]['hasContent'](_0x1d2079)),_0x4b0a4b=this[_0x5baa('0x8c')][_0x5baa('0x8d')]['get'](_0x5baa('0x4f'))['me']['id'],_0x12a094=_0x2f53a5(this['editor'][_0x5baa('0x36')],_0x18fee1?_0x5baa('0x9'):_0x5baa('0x65'));this[_0x5baa('0x39')]({'from':_0x5b9437,'to':_0x5b9437,'id':this[_0x5baa('0x59')],'name':_0x12a094,'creatorId':_0x4b0a4b});}}['_createCurrentRevision'](_0x39da02){const _0x5212cd=this[_0x5baa('0xa2')]['getCurrentRevisionId']();this[_0x5baa('0x6d')]=this['repository'][_0x5baa('0xb6')](_0x5212cd),this[_0x5baa('0x6d')]||(this['currentRevision']=this['_makeRevision']({'from':_0x39da02,'to':_0x39da02,'id':_0x5212cd,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1c03c8,from:_0x29ec16,to:_0x4f077d,creatorId:_0x42a810,id:_0x58d6de}){const _0x127738=this[_0x5baa('0x2e')]({'from':_0x29ec16,'to':_0x4f077d});_0x127738[_0x5baa('0x84')]=_0x1c03c8,_0x127738[_0x5baa('0xeb')]=_0x42a810,_0x127738['id']=_0x58d6de;const _0x34c11e=this[_0x5baa('0xde')](_0x127738);return this[_0x5baa('0x5d')]&&this[_0x5baa('0x85')](_0x127738['id'],_0x127738,!0x0),_0x34c11e;}[_0x5baa('0x60')](){this['editor'][_0x5baa('0xcc')][_0x5baa('0x26')]('dataDowncast')[_0x5baa('0x1f')]({'model':'revision'});}[_0x5baa('0xe')](_0x387691){return(_0x387691=_0x387691['filter'](_0x454ff2=>!_0x454ff2[_0x5baa('0x84')]||_0x5baa('0xdc')!==_0x454ff2[_0x5baa('0x84')]&&'revision-end'!==_0x454ff2[_0x5baa('0x84')]))[_0x5baa('0x80')](_0x49447e=>{_0x5baa('0x3a')!=typeof _0x49447e&&(_0x49447e['children']=this[_0x5baa('0xe')](_0x49447e[_0x5baa('0xc1')]),_0x49447e[_0x5baa('0x2f')]=_0x49447e[_0x5baa('0x2f')]['filter'](_0x2d026c=>!_0x2d026c[0x0][_0x5baa('0xbe')]('data-revision-')));}),_0x387691;}}function J(_0x140d3b,_0x3a2d6e){const _0x28c717=_0x3a2d6e[_0x5baa('0x5')][_0x5baa('0x12')][_0x5baa('0xa7')];if(_0x5baa('0x3a')==typeof _0x140d3b)return new _0x25f39a(_0x28c717,_0x140d3b);{const _0x2858f7=_0x140d3b[_0x5baa('0xc1')]['map'](_0x43bc8b=>J(_0x43bc8b,_0x3a2d6e));return new(B[_0x140d3b[(_0x5baa('0x5a'))]]||_0x5097e5)(_0x28c717,_0x140d3b['name'],_0x140d3b[_0x5baa('0x2f')],_0x2858f7);}}class H{constructor(_0x59a8a1){this[_0x5baa('0x8c')]=_0x59a8a1,this[_0x5baa('0x5e')]=new Map(),this[_0x5baa('0x3f')]=-0x1,this[_0x5baa('0x2a')]=-0x1,this[_0x5baa('0xaf')]=new Map(),this[_0x5baa('0x94')]=new Map(),this[_0x5baa('0x98')]=new Map(),this['_baseRoots']=new Map(),this[_0x5baa('0x76')]=new Map(),this[_0x5baa('0xee')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x5baa('0x72')]=new Map(),this[_0x5baa('0xc9')]=new Map(),this[_0x5baa('0xca')]=new Map(),this[_0x5baa('0x29')]=0x1;}[_0x5baa('0x77')](_0x2fbbf3){this['source']=_0x2fbbf3;const _0x2f0082=new Map(),_0x3c54b6=new Map(),_0x38d898=this[_0x5baa('0x8c')][_0x5baa('0x4e')][_0x5baa('0xa7')]['roots'][_0x5baa('0x100')](_0xd92d5a=>_0xd92d5a[_0x5baa('0x6e')]);for(const _0x36faf1 of _0x38d898){const _0x1350e7=this['editor'][_0x5baa('0x4e')][_0x5baa('0xa7')]['getRoot'](_0x36faf1),_0x1d2f5b=q(_0x1350e7);_0x2f0082[_0x5baa('0xbb')](_0x36faf1,_0x1d2f5b),_0x3c54b6[_0x5baa('0xbb')](_0x36faf1,Object['fromEntries'](_0x1350e7[_0x5baa('0x69')]()));}const _0x307a82=Array[_0x5baa('0xb4')](this[_0x5baa('0x8c')][_0x5baa('0x4e')][_0x5baa('0x11')])[_0x5baa('0x100')](_0x13c591=>[_0x13c591['name'],_0x13c591[_0x5baa('0xb5')]()]),_0x3c7bba=this[_0x5baa('0xe6')][_0x5baa('0xa3')];this[_0x5baa('0xd0')](_0x3c7bba,_0x2f0082,_0x307a82,_0x3c54b6),this['_startingRevisionId']=this['_revisionId'];const _0x53acc0=new Map(),_0x451bd4=new Map();for(const _0x56fbf8 of _0x38d898){const _0x1b4687=G(_0x56fbf8);_0x53acc0[_0x5baa('0xbb')](_0x56fbf8,_0x1b4687),_0x451bd4[_0x5baa('0xbb')](_0x56fbf8,{});}this[_0x5baa('0xd0')](Number[_0x5baa('0x6c')],_0x53acc0,[],_0x451bd4);}['getData'](_0x4218cb,_0x25f8f7){if(this[_0x5baa('0x3f')]===_0x4218cb&&this['_lastTo']<=_0x25f8f7)this[_0x5baa('0x5e')][_0x5baa('0x91')]>0x1&&this['_removeMetaData'](this[_0x5baa('0x2a')]),this['_applyOperations'](this[_0x5baa('0x2a')],_0x25f8f7,!0x0);else{if(!this[_0x5baa('0x5e')][_0x5baa('0xf9')](_0x4218cb)){const _0xc979f0=this[_0x5baa('0xa9')](_0x4218cb);this[_0x5baa('0xc8')](_0xc979f0,_0x4218cb,!0x1);}this[_0x5baa('0xc8')](_0x4218cb,_0x25f8f7,!0x0);}return this[_0x5baa('0x3f')]=_0x4218cb,this['_lastTo']=_0x25f8f7,this[_0x5baa('0xa6')]();}['loadState'](_0x218716){this[_0x5baa('0x25')](),this['_lastFrom']=_0x218716[_0x5baa('0xd9')],this['_lastTo']=_0x218716[_0x5baa('0x64')];for(const _0x31fd28 in _0x218716[_0x5baa('0x34')]){const _0x31e765=_0x218716[_0x5baa('0x34')][_0x31fd28][_0x5baa('0xa0')],_0x14e440=_0x2b1147(_0x218716[_0x5baa('0x34')][_0x31fd28][_0x5baa('0x23')])||{},_0x1800f5=this[_0x5baa('0x74')](_0x218716[_0x5baa('0x34')][_0x31fd28][_0x5baa('0xcd')]);_0x1800f5[_0x5baa('0x6e')]=_0x31fd28,_0x1800f5['_isAttached']=!_0x31e765||!_0x31e765[_0x5baa('0xe8')],_0x1800f5['isAttached']=()=>_0x1800f5[_0x5baa('0xc5')],this[_0x5baa('0x47')][_0x5baa('0xbb')](_0x31fd28,_0x1800f5),this[_0x5baa('0x76')][_0x5baa('0xbb')](_0x31fd28,_0x14e440),_0x31e765&&this[_0x5baa('0xca')][_0x5baa('0xbb')](_0x31fd28,_0x31e765);const _0x5d1d4b=this[_0x5baa('0xef')](_0x1800f5);this[_0x5baa('0xb1')][_0x5baa('0xbb')](_0x31fd28,_0x5d1d4b);for(const [_0x11b2e3,_0x4e5045]of _0x1800f5['markers']){if(!_0x11b2e3[_0x5baa('0xbe')]('revision:'))continue;const _0xf8bfe2=_0x11b2e3[_0x5baa('0xbf')](':')[0x2];for(const _0x490d2b of _0x4e5045[_0x5baa('0x95')]({'singleCharacters':!0x0})){const _0xa95d56=this['_getVidAttributeName'](_0x490d2b),_0x4c8fec=_0x5baa('0xfd')==_0x490d2b['type']?_0x490d2b['previousPosition'][_0x5baa('0x44')][_0x5baa('0xdb')](0x0,-0x1):_0x490d2b[_0x5baa('0xd')][_0x5baa('0x44')],_0x571df9=_0x5d1d4b['getNodeByPath'](_0x4c8fec)[_0x5baa('0xc0')](_0xa95d56);this['_touched'][_0x5baa('0xbb')](_0x571df9,{'userId':_0xf8bfe2});}}}this[_0x5baa('0x82')]=this[_0x5baa('0x29')];const _0x2912f7=[...Array(this[_0x5baa('0x29')])[_0x5baa('0xf3')]()][_0x5baa('0xdb')](0x1)['filter'](_0x561042=>!this['_touched'][_0x5baa('0xf9')](_0x561042));let _0xe6c0fb=0x0;const _0x45c365=new Map();for(const _0x8d9947 in _0x218716[_0x5baa('0x34')]){const _0x20bdaa=_0x218716[_0x5baa('0x34')][_0x8d9947][_0x5baa('0xa0')],_0x109528=_0x2b1147(_0x218716[_0x5baa('0x34')][_0x8d9947][_0x5baa('0xd4')])||{},_0x3de187=this[_0x5baa('0x74')](_0x218716['diffData'][_0x8d9947][_0x5baa('0xfb')]);_0x3de187[_0x5baa('0x6e')]=_0x8d9947,_0x3de187[_0x5baa('0xc5')]=!_0x20bdaa||_0x20bdaa[_0x5baa('0xe8')],_0x3de187[_0x5baa('0xe8')]=()=>_0x3de187['_isAttached'],this['_diffRoots']['set'](_0x8d9947,_0x3de187),this[_0x5baa('0x98')][_0x5baa('0xbb')](_0x8d9947,_0x109528);const _0x4e1293=this[_0x5baa('0xef')](_0x3de187,Number[_0x5baa('0x6c')]);this['_idsRoots'][_0x5baa('0xbb')](_0x8d9947,_0x4e1293),_0x45c365[_0x5baa('0xbb')](_0x8d9947,_0x3de187[_0x5baa('0xe8')]()?_0x109528:{});for(const [_0x6dfe6e,_0x2e2d0d]of _0x3de187[_0x5baa('0x11')]){if(!_0x6dfe6e[_0x5baa('0xbe')]('revision:'))continue;const _0x1e1581=_0x6dfe6e['split'](':')[0x2];for(const _0x31155c of _0x2e2d0d[_0x5baa('0x95')]({'singleCharacters':!0x0})){const _0x2d3ee4=this[_0x5baa('0x6f')](_0x31155c),_0x620ee4=this['_revisionId']++,_0x314f82=_0x5baa('0xfd')==_0x31155c[_0x5baa('0x5a')]?_0x31155c[_0x5baa('0xd')][_0x5baa('0x44')]['slice'](0x0,-0x1):_0x31155c['previousPosition'][_0x5baa('0x44')];_0x4e1293[_0x5baa('0xda')](_0x314f82)[_0x5baa('0x27')](_0x2d3ee4,_0x620ee4),this[_0x5baa('0x72')]['set'](_0x620ee4,{'userId':_0x1e1581});}}for(const _0x294412 of this[_0x5baa('0x8c')]['model'][_0x5baa('0x7c')](_0x3de187)[_0x5baa('0x95')]({'singleCharacters':!0x0})){const _0x3c9242=this['_getVidAttributeName'](_0x294412),_0x53412d=_0x5baa('0xfd')==_0x294412[_0x5baa('0x5a')]?_0x294412[_0x5baa('0xd')][_0x5baa('0x44')][_0x5baa('0xdb')](0x0,-0x1):_0x294412['previousPosition'][_0x5baa('0x44')],_0x587396=_0x4e1293[_0x5baa('0xda')](_0x53412d);_0x587396[_0x5baa('0xc0')](_0x3c9242)>0x0||_0x587396['_setAttribute'](_0x3c9242,_0x2912f7[_0xe6c0fb++]);}for(const [_0x394a6c,_0x4d963a]of _0x3de187[_0x5baa('0x11')])_0x394a6c[_0x5baa('0xbe')]('revision:')||this[_0x5baa('0xaf')][_0x5baa('0xbb')](_0x394a6c,_0x4d963a);}const _0x2909ac=G(_0x5baa('0x41'));this[_0x5baa('0x47')]['set'](_0x5baa('0x41'),_0x2909ac),this[_0x5baa('0xb1')]['set'](_0x5baa('0x41'),this[_0x5baa('0xef')](_0x2909ac,0x1));const _0x22ca8b=G(_0x5baa('0x41'));this[_0x5baa('0x94')][_0x5baa('0xbb')](_0x5baa('0x41'),_0x22ca8b),this[_0x5baa('0xee')][_0x5baa('0xbb')](_0x5baa('0x41'),this[_0x5baa('0xef')](_0x22ca8b,0x1));const _0x3be222=Array[_0x5baa('0xb4')](this[_0x5baa('0x94')])[_0x5baa('0x100')](([_0x56dde9,_0x46a7ec])=>[_0x56dde9,q(_0x46a7ec)]);this[_0x5baa('0xd0')](this[_0x5baa('0x2a')],_0x3be222,this[_0x5baa('0xaf')],_0x45c365);}[_0x5baa('0x74')](_0x967787){const _0x4bcc39=JSON[_0x5baa('0x1c')](_0x967787),_0x567432=this['editor'][_0x5baa('0x5')][_0x5baa('0x12')][_0x5baa('0xa7')],_0x511552=new _0x4eed07(_0x567432,_0x4bcc39['map'](_0x289168=>J(_0x289168,this[_0x5baa('0x8c')])));return this['editor'][_0x5baa('0xb0')][_0x5baa('0xed')](_0x511552);}['_saveMetaData'](_0x5c22b3,_0x26cfb8,_0x4d82df,_0x56ef55){const _0x49de1d=new Map(_0x26cfb8),_0x1f53bb=new Map(_0x2b1147(_0x56ef55)),_0x2d3203=new Map();for(const [_0xfbd72,_0x3af140]of _0x4d82df)_0x2d3203['set'](_0xfbd72,{'start':_0x3af140[_0x5baa('0xaa')]['clone'](),'end':_0x3af140[_0x5baa('0x20')][_0x5baa('0xe5')](),'rootName':_0x3af140['root'][_0x5baa('0x6e')]});this[_0x5baa('0x5e')]['set'](_0x5c22b3,{'roots':_0x49de1d,'markers':_0x2d3203,'rootsAttributes':_0x1f53bb});}[_0x5baa('0x22')](_0x2e48a5){this[_0x5baa('0x5e')][_0x5baa('0xfe')](_0x2e48a5);}[_0x5baa('0x8e')](){this[_0x5baa('0x25')](),this[_0x5baa('0x3f')]=-0x1,this[_0x5baa('0x2a')]=-0x1,this[_0x5baa('0x5e')][_0x5baa('0xa5')](),this[_0x5baa('0x77')](this[_0x5baa('0xe6')]);}[_0x5baa('0x25')](){this[_0x5baa('0x72')][_0x5baa('0xa5')](),this['_touchedMarkers'][_0x5baa('0xa5')](),this[_0x5baa('0xca')][_0x5baa('0xa5')](),this[_0x5baa('0x94')][_0x5baa('0xa5')](),this[_0x5baa('0x98')][_0x5baa('0xa5')](),this[_0x5baa('0x47')][_0x5baa('0xa5')](),this[_0x5baa('0x76')][_0x5baa('0xa5')](),this[_0x5baa('0xee')][_0x5baa('0xa5')](),this[_0x5baa('0xb1')][_0x5baa('0xa5')](),this[_0x5baa('0xaf')][_0x5baa('0xa5')](),this['_revisionId']=0x1,this['_startingRevisionId']=this[_0x5baa('0x29')];}[_0x5baa('0xef')](_0x4b9ffc,_0x2f3d01=null){let _0x237285=null;_0x4b9ffc['is'](_0x5baa('0x55'))||(_0x237285=new _0x49c8c5(_0x4b9ffc[_0x5baa('0x84')],{'vid_start':null===_0x2f3d01?this[_0x5baa('0x29')]++:_0x2f3d01++}));const _0x4fdb32=[];for(const _0x120ec0 of _0x4b9ffc[_0x5baa('0x66')]())if(_0x120ec0['is'](_0x5baa('0x87'))){_0x4fdb32['push'](this[_0x5baa('0xef')](_0x120ec0,_0x2f3d01));const _0x157d2d=_0x4fdb32[_0x4fdb32[_0x5baa('0xd2')]-0x1];null!==_0x2f3d01&&(_0x2f3d01=_0x157d2d['is'](_0x5baa('0x87'),_0x5baa('0x67'))?_0x157d2d[_0x5baa('0xc0')](_0x5baa('0x9a'))+0x1:_0x157d2d['getAttribute'](_0x5baa('0xea'))+0x1);}else for(let _0x4215f5=0x0;_0x4215f5<_0x120ec0['offsetSize'];_0x4215f5++)_0x4fdb32[_0x5baa('0x2c')](new _0x49c8c5(_0x5baa('0x67'),{'vid':null===_0x2f3d01?this[_0x5baa('0x29')]++:_0x2f3d01++}));if(_0x4b9ffc['is'](_0x5baa('0x55'))){const _0x4c3359=G(_0x4b9ffc[_0x5baa('0x6e')]);return _0x4c3359['_insertChild'](0x0,_0x4fdb32),_0x4c3359;}return _0x237285['_setAttribute']('vid_end',null===_0x2f3d01?this[_0x5baa('0x29')]++:_0x2f3d01++),_0x237285[_0x5baa('0xf5')](0x0,_0x4fdb32),_0x237285;}[_0x5baa('0xc8')](_0x519913,_0x260866,_0x34a92c){this[_0x5baa('0x25')]();const {roots:_0x5e124b,markers:_0x45a9fe,rootsAttributes:_0x2289d9}=this[_0x5baa('0x5e')][_0x5baa('0xc')](_0x519913);this['_baseRoots']=new Map(_0x5e124b),this[_0x5baa('0x76')]=new Map(_0x2b1147(_0x2289d9));for(const [_0xd7f8b8,_0x1c7d78]of this[_0x5baa('0x47')])if(_0x5baa('0x41')!==_0xd7f8b8&&(this[_0x5baa('0x94')][_0x5baa('0xbb')](_0xd7f8b8,q(_0x1c7d78)),this[_0x5baa('0x98')]=new Map(_0x2b1147(_0x2289d9)),_0x34a92c)){const _0x2762ca=this[_0x5baa('0x29')];this[_0x5baa('0xee')][_0x5baa('0xbb')](_0xd7f8b8,this[_0x5baa('0xef')](_0x1c7d78)),this['_baseIdsRoots']['set'](_0xd7f8b8,this[_0x5baa('0xef')](_0x1c7d78,_0x2762ca));}this[_0x5baa('0x82')]=this[_0x5baa('0x29')],this['_diffRoots']['set']('$graveyard',q(this[_0x5baa('0x47')][_0x5baa('0xc')](_0x5baa('0x41')))),_0x34a92c&&this[_0x5baa('0xee')][_0x5baa('0xbb')](_0x5baa('0x41'),this[_0x5baa('0xef')](this[_0x5baa('0x47')][_0x5baa('0xc')]('$graveyard')));for(const [_0x2b8d8b,_0x3e5f04]of _0x45a9fe){const _0x464abc=this['_baseRoots'][_0x5baa('0xc')](_0x3e5f04[_0x5baa('0x6e')]),_0x517ddc=this[_0x5baa('0x94')][_0x5baa('0xc')](_0x3e5f04['rootName']),_0xa36eb9=new _0x419fb2(this[_0x5baa('0x4a')](_0x3e5f04[_0x5baa('0xaa')],_0x464abc),this[_0x5baa('0x4a')](_0x3e5f04[_0x5baa('0x20')],_0x464abc)),_0x4bcaa0=this['_fixRange'](_0xa36eb9,_0x517ddc);_0x464abc['markers'][_0x5baa('0xbb')](_0x2b8d8b,_0xa36eb9),this[_0x5baa('0xaf')]['set'](_0x2b8d8b,_0x4bcaa0);}this[_0x5baa('0x7')](_0x519913,_0x260866,_0x34a92c);}['_applyOperations'](_0x2cc4aa,_0x2afc17,_0x283564){for(const _0x352dd1 of this['source'][_0x5baa('0xe4')](_0x2cc4aa,_0x2afc17))this[_0x5baa('0x4b')](_0x352dd1,_0x283564);for(const _0xc2e157 of this['_diffRoots'][_0x5baa('0xb2')]())_0xc2e157['markers'][_0x5baa('0xa5')]();for(const [_0x1bed14,_0x36cd50]of this[_0x5baa('0xaf')]){this[_0x5baa('0x94')][_0x5baa('0xc')](_0x36cd50['root'][_0x5baa('0x6e')])[_0x5baa('0x11')][_0x5baa('0xbb')](_0x1bed14,_0x36cd50['clone']());}const _0x3815fe=new Map(),_0x29c9c4=new Map();for(const [_0x4b7e25,_0x225c6b]of this[_0x5baa('0x94')])_0x3815fe[_0x5baa('0xbb')](_0x4b7e25,q(_0x225c6b)),_0x29c9c4[_0x5baa('0xbb')](_0x4b7e25,this[_0x5baa('0x98')][_0x5baa('0xc')](_0x4b7e25));this[_0x5baa('0xd0')](_0x2afc17,_0x3815fe,this['_markers'],_0x29c9c4);}['_getPreviousFrom'](_0x5aa0a0){const _0x466c26=Array[_0x5baa('0xb4')](this[_0x5baa('0x5e')]['keys']());_0x466c26[_0x5baa('0x3c')]((_0x24b34c,_0x3cd1a4)=>_0x24b34c-_0x3cd1a4),_0x466c26[_0x5baa('0xdd')]();for(const _0x5305a1 of _0x466c26)if(_0x5305a1<_0x5aa0a0)return _0x5305a1;return Number[_0x5baa('0x6c')];}[_0x5baa('0x61')](_0x1432c8,_0x179db5){const _0x2551b0=Array[_0x5baa('0xb4')](_0x179db5[_0x5baa('0x11')])['map'](([_0x322db0,_0x11e1e1])=>[_0x322db0,this[_0x5baa('0xe9')](_0x11e1e1,_0x1432c8)]);_0x1432c8[_0x5baa('0x11')]=new Map(_0x2551b0);}[_0x5baa('0x97')](_0x32a9a4){for(const _0x37db92 of this[_0x5baa('0xaf')][_0x5baa('0xb2')]()){const _0x4598a0=_0x37db92[_0x5baa('0x45')](_0x32a9a4),_0x552ed5=_0x419fb2['_createFromRanges'](_0x4598a0);_0x37db92[_0x5baa('0xaa')]=_0x552ed5[_0x5baa('0xaa')],_0x37db92[_0x5baa('0x20')]=_0x552ed5[_0x5baa('0x20')];}}[_0x5baa('0x4b')](_0x4636bb,_0x156f57){if(_0x5baa('0x9c')==_0x4636bb['type']||_0x5baa('0x6')==_0x4636bb[_0x5baa('0x5a')])return void this[_0x5baa('0x70')](_0x4636bb,_0x156f57);if(_0x5baa('0xb9')==_0x4636bb[_0x5baa('0x5a')]){const _0xc4b92a=_0x4636bb[_0x5baa('0x33')][_0x5baa('0xc4')][_0x5baa('0x6e')];this[_0x5baa('0x94')]['has'](_0xc4b92a)||(this[_0x5baa('0x94')]['set'](_0xc4b92a,G(_0xc4b92a,!0x0)),this[_0x5baa('0x98')][_0x5baa('0xbb')](_0xc4b92a,{}),_0x156f57&&this[_0x5baa('0xee')][_0x5baa('0xbb')](_0xc4b92a,G(_0xc4b92a,!0x0)));}else{if(_0x5baa('0x10')==_0x4636bb[_0x5baa('0x5a')]||_0x5baa('0x4')==_0x4636bb[_0x5baa('0x5a')]||_0x5baa('0x17')==_0x4636bb['type'])return void this['_handleRootAttributeOperation'](_0x4636bb);}const _0x4e470f=this[_0x5baa('0x56')](_0x4636bb,this['_diffRoots']);if(_0x5baa('0x0')!==_0x4636bb[_0x5baa('0x5a')]&&(_0x4e470f[_0x5baa('0x90')](),this[_0x5baa('0x97')](_0x4e470f)),_0x156f57)switch(_0x4e470f[_0x5baa('0x5a')]){case _0x5baa('0xb9'):this[_0x5baa('0xd1')](_0x4636bb);break;case _0x5baa('0x1b'):case'remove':case _0x5baa('0x15'):this[_0x5baa('0xa')](_0x4636bb);break;case _0x5baa('0xdf'):this[_0x5baa('0x5c')](_0x4636bb);break;case _0x5baa('0xbf'):this[_0x5baa('0x14')](_0x4636bb);break;case _0x5baa('0x0'):this[_0x5baa('0xcb')](_0x4636bb);}}[_0x5baa('0x56')](_0x13708a,_0x1fc776){const _0xa9014e=_0x13708a[_0x5baa('0xe5')]();return _0xa9014e['_authorId']=_0x13708a[_0x5baa('0x1e')],this[_0x5baa('0xae')](_0xa9014e,_0x1fc776),_0xa9014e;}[_0x5baa('0x2b')](_0x46191f){return _0x46191f[_0x5baa('0x100')](_0x3ab4ff=>{const _0x58ee28=this['_getVidAttributeName'](_0x3ab4ff);return Number(_0x3ab4ff['item'][_0x5baa('0xc0')](_0x58ee28));});}[_0x5baa('0x31')](_0x44dc66,_0x57bb96){if(_0x44dc66['is'](_0x5baa('0x87'),'$text'))_0x57bb96[_0x5baa('0x2c')]({'item':_0x44dc66,'type':'text'});else{_0x44dc66['is'](_0x5baa('0x87'))&&_0x57bb96[_0x5baa('0x2c')]({'item':_0x44dc66,'type':'elementStart'});for(const _0x1f81e2 of _0x44dc66['getChildren']())this[_0x5baa('0x31')](_0x1f81e2,_0x57bb96);_0x44dc66['is'](_0x5baa('0x87'))&&_0x57bb96[_0x5baa('0x2c')]({'item':_0x44dc66,'type':_0x5baa('0xfd')});}return _0x57bb96;}[_0x5baa('0xa6')](){const _0x5e4eec=new Map(this[_0x5baa('0x72')]),_0x314f13=new Map(_0x5e4eec),_0x1673e8=new Map(),_0x209d2e={'insertions':{},'deletions':{}},_0x4b2da7={'insertions':{},'deletions':{}},_0x34a668=new Map(),_0x557484=new Set([...this[_0x5baa('0x47')][_0x5baa('0xf3')](),...this['_diffRoots'][_0x5baa('0xf3')]()]);_0x557484[_0x5baa('0xfe')](_0x5baa('0x41'));for(const _0x581e90 of _0x557484){const _0x270aa0=this[_0x5baa('0x94')][_0x5baa('0xc')](_0x581e90)||G(_0x581e90,!0x1),_0x3c1b73=this['_baseRoots'][_0x5baa('0xc')](_0x581e90)||G(_0x581e90,!0x1);_0x270aa0[_0x5baa('0xe8')]()||_0x3c1b73['isAttached']()?(_0x209d2e[_0x5baa('0xfb')][_0x581e90]=q(_0x270aa0),_0x209d2e[_0x5baa('0xcd')][_0x581e90]=q(_0x3c1b73),this[_0x5baa('0x61')](_0x209d2e[_0x5baa('0xcd')][_0x581e90],_0x3c1b73),this['_copyMarkers'](_0x209d2e[_0x5baa('0xfb')][_0x581e90],_0x270aa0),_0x4b2da7[_0x5baa('0xfb')][_0x581e90]=this[_0x5baa('0x31')](this[_0x5baa('0xee')][_0x5baa('0xc')](_0x581e90),[]),_0x4b2da7[_0x5baa('0xcd')][_0x581e90]=this[_0x5baa('0x31')](this['_baseIdsRoots'][_0x5baa('0xc')](_0x581e90)||G(_0x581e90,!0x1),[])):_0x557484['delete'](_0x581e90);}for(const _0x8f25ba of _0x557484){const _0x2f56d6=_0x4b2da7['insertions'][_0x8f25ba];for(const _0x8b3531 of _0x2f56d6){const _0x404d09=this[_0x5baa('0x6f')](_0x8b3531),_0x4b2a03=_0x8b3531[_0x5baa('0x8f')][_0x5baa('0xc0')](_0x404d09);_0x314f13[_0x5baa('0xfe')](_0x4b2a03),_0x4b2a03>=this[_0x5baa('0x82')]&&_0x1673e8[_0x5baa('0xbb')](_0x4b2a03,_0x5e4eec[_0x5baa('0xc')](_0x4b2a03));}}for(const _0x186a84 of _0x557484){const _0x1e8b06=_0x4b2da7[_0x5baa('0xfb')][_0x186a84],_0x350c98=this['_getBaseVids'](_0x4b2da7[_0x5baa('0xcd')][_0x186a84]);let _0x192d79=0x0;for(const _0x543240 of _0x1e8b06){const _0x41b7d3=this['_getVidAttributeName'](_0x543240),_0x4bb6e3=_0x543240[_0x5baa('0x8f')]['getAttribute'](_0x41b7d3);if(!_0x1673e8[_0x5baa('0xf9')](_0x4bb6e3)&&!_0x34a668[_0x5baa('0xf9')](_0x4bb6e3)){if(_0x314f13[_0x5baa('0xf9')](_0x4bb6e3))_0x192d79++;else{if(_0x4bb6e3!=_0x350c98[_0x192d79]){const _0x38accb=_0x5e4eec[_0x5baa('0xc')](_0x4bb6e3)||_0x5e4eec[_0x5baa('0xc')](_0x350c98[_0x192d79]);for(;_0x4bb6e3!=_0x350c98[_0x192d79];)_0x314f13[_0x5baa('0xf9')](_0x350c98[_0x192d79])||(_0x34a668['set'](_0x350c98[_0x192d79],_0x38accb),_0x5e4eec['set'](_0x350c98[_0x192d79],_0x38accb)),_0x192d79++;}_0x192d79++;}}}}for(const _0x39e8a3 of _0x557484){const _0x5c7f66=_0x4b2da7[_0x5baa('0xfb')][_0x39e8a3];for(const _0x169e87 of _0x5c7f66){const _0x45b0b4=this[_0x5baa('0x6f')](_0x169e87),_0x429940=_0x169e87[_0x5baa('0x8f')]['getAttribute'](_0x45b0b4);if(_0x34a668['has'](_0x429940)){const _0x26dc5a=_0x34a668[_0x5baa('0xc')](_0x429940);_0x314f13['has'](_0x429940)||_0x314f13['set'](_0x429940,{..._0x26dc5a}),_0x1673e8[_0x5baa('0xbb')](_0x429940,{..._0x26dc5a});}}}for(const _0x8a7b13 of _0x314f13[_0x5baa('0xf3')]())_0x8a7b13>=this['_startingRevisionId']&&_0x314f13[_0x5baa('0xfe')](_0x8a7b13);const _0x13e012=new Map();for(const _0x3aae5e of _0x557484){let _0x39293d=_0x4b2da7[_0x5baa('0xfb')][_0x3aae5e];for(const _0x4e8497 of _0x39293d)if(_0x4e8497[_0x5baa('0x8f')]['is']('element',_0x5baa('0x75'))){const _0x55d0aa=this[_0x5baa('0x6f')](_0x4e8497),_0x449d1c=_0x4e8497[_0x5baa('0x8f')][_0x5baa('0xc0')](_0x55d0aa);if(_0x1673e8[_0x5baa('0xf9')](_0x449d1c)){const _0x388c77=_0x4e8497['item']['parent'][_0x5baa('0x7e')]['getAttribute'](_0x5baa('0xfc')),_0xf917dc=_0x13e012[_0x5baa('0xc')](_0x388c77)||new Set();_0xf917dc[_0x5baa('0x16')](_0x1673e8['get'](_0x449d1c)[_0x5baa('0x57')]),_0x13e012['set'](_0x388c77,_0xf917dc);}}_0x39293d=_0x4b2da7[_0x5baa('0xcd')][_0x3aae5e];for(const _0x111a1c of _0x39293d)if(_0x111a1c[_0x5baa('0x8f')]['is']('element',_0x5baa('0x75'))){const _0x4352aa=this[_0x5baa('0x6f')](_0x111a1c),_0x437b7d=_0x111a1c[_0x5baa('0x8f')][_0x5baa('0xc0')](_0x4352aa);if(_0x314f13[_0x5baa('0xf9')](_0x437b7d)){const _0x4c7135=_0x111a1c[_0x5baa('0x8f')][_0x5baa('0x7e')][_0x5baa('0x7e')][_0x5baa('0xc0')](_0x5baa('0xfc')),_0x24919d=_0x13e012[_0x5baa('0xc')](_0x4c7135)||new Set();_0x24919d[_0x5baa('0x16')](_0x314f13[_0x5baa('0xc')](_0x437b7d)[_0x5baa('0x57')]),_0x13e012[_0x5baa('0xbb')](_0x4c7135,_0x24919d);}}for(const _0xe89098 of _0x13e012[_0x5baa('0xf3')]())(_0x1673e8['has'](_0xe89098)||_0x314f13['has'](_0xe89098))&&_0x13e012[_0x5baa('0xfe')](_0xe89098);}for(const _0x2f0bce of _0x557484){const _0x13281f=_0x4b2da7[_0x5baa('0xfb')][_0x2f0bce];let _0x283481=null,_0xd7b357=null;for(const _0x77c941 of _0x13281f){const _0x503adf=this[_0x5baa('0x6f')](_0x77c941),_0x3f1e43=_0x77c941[_0x5baa('0x8f')]['getAttribute'](_0x503adf),_0x247f16=_0x13e012[_0x5baa('0xc')](_0x3f1e43);_0x247f16&&'elementStart'==_0x77c941[_0x5baa('0x5a')]&&(_0x283481=Array[_0x5baa('0xb4')](_0x247f16)[0x0],_0xd7b357=_0x77c941[_0x5baa('0x8f')][_0x5baa('0xc0')](_0x5baa('0xea'))),_0x283481&&(_0x314f13[_0x5baa('0xbb')](_0x3f1e43,{'userId':_0x283481}),_0x1673e8[_0x5baa('0xbb')](_0x3f1e43,{'userId':_0x283481})),_0x3f1e43==_0xd7b357&&(_0x283481=null,_0xd7b357=null);}}const _0x5e0795={},_0x30f608=new Set();for(const _0x3aa6c2 of _0x557484){const _0x207d0a=_0x209d2e[_0x5baa('0xcd')][_0x3aa6c2],_0x344db9=_0x209d2e[_0x5baa('0xfb')][_0x3aa6c2];for(const {userId:_0x4fbbb8}of this['_touchedMarkers'][_0x5baa('0xb2')]())null!==_0x4fbbb8&&_0x30f608[_0x5baa('0x16')](_0x4fbbb8);for(const {userId:_0x2db555}of this['_touchedRoots'][_0x5baa('0xb2')]())null!==_0x2db555&&_0x30f608[_0x5baa('0x16')](_0x2db555);this[_0x5baa('0xc7')](_0x344db9,_0x4b2da7[_0x5baa('0xfb')][_0x3aa6c2],_0x1673e8,_0x5baa('0xb3'),_0x30f608),this[_0x5baa('0xc7')](_0x207d0a,_0x4b2da7[_0x5baa('0xcd')][_0x3aa6c2],_0x314f13,_0x5baa('0x24'),_0x30f608),_0x5e0795[_0x3aa6c2]={'insertions':this['_prepareViewToSave'](_0x344db9),'deletions':this[_0x5baa('0xf8')](_0x207d0a),'attachChange':this[_0x5baa('0xca')][_0x5baa('0xc')](_0x3aa6c2)||null,'attributesBefore':_0x2b1147(this[_0x5baa('0x76')][_0x5baa('0xc')](_0x3aa6c2))||{},'attributesAfter':_0x2b1147(this[_0x5baa('0x98')]['get'](_0x3aa6c2))};}return{'diffData':_0x5e0795,'authorsIds':Array[_0x5baa('0xb4')](_0x30f608)};}[_0x5baa('0x46')](_0x29652a){for(const [,_0x2385fa]of _0x29652a[_0x5baa('0x11')]){const _0x55d890=_0x2385fa[_0x5baa('0xaa')]['getAncestors']()[_0x5baa('0x1')](_0x280850=>_0x5baa('0x75')==_0x280850[_0x5baa('0x84')]);for(const _0x6bcbd4 of _0x55d890)0x1==_0x6bcbd4[_0x5baa('0x5f')]&&_0x6bcbd4[_0x5baa('0xe3')](0x0)['is'](_0x5baa('0x87'),_0x5baa('0x53'))&&_0x6bcbd4['getChild'](0x0)[_0x5baa('0x27')](_0x5baa('0x9e'),!0x0);}}[_0x5baa('0xf8')](_0x2a7e8c){this[_0x5baa('0x46')](_0x2a7e8c);const _0x542931=this[_0x5baa('0x8c')][_0x5baa('0xb0')]['toView'](_0x2a7e8c,{}),_0x3ec066=Array['from'](_0x542931[_0x5baa('0x66')]())[_0x5baa('0x100')](_0x29d921=>this['_getViewJson'](_0x29d921));return JSON[_0x5baa('0x28')](_0x3ec066);}[_0x5baa('0x13')](_0x1945b7){if(_0x1945b7['is'](_0x5baa('0x67')))return _0x1945b7[_0x5baa('0xb0')];{const _0x4b4aab=_0x1945b7;return{'type':Object[_0x5baa('0xf3')](B)[_0x5baa('0x96')](_0x18b00e=>_0x1945b7 instanceof B[_0x18b00e]),'name':_0x4b4aab[_0x5baa('0x84')],'attributes':Array[_0x5baa('0xb4')](_0x4b4aab[_0x5baa('0x69')]()),'children':Array[_0x5baa('0xb4')](_0x4b4aab['getChildren']())[_0x5baa('0x100')](_0x47b3ae=>this[_0x5baa('0x13')](_0x47b3ae))};}}[_0x5baa('0xc7')](_0x4abe4f,_0x56e7dc,_0x528f5f,_0x1931e2,_0xea395b){let _0x260496=null,_0x328a81=null,_0x2f4bf3=0x0;const _0x57f48d=this['editor'][_0x5baa('0x4e')];for(let _0x4f6d96=0x0;_0x4f6d96<_0x56e7dc[_0x5baa('0xd2')];_0x4f6d96++){const _0x53af6e=this[_0x5baa('0x6f')](_0x56e7dc[_0x4f6d96]),_0x1d3c39=_0x56e7dc[_0x4f6d96]['item'][_0x5baa('0xc0')](_0x53af6e),_0x2660d8=_0x528f5f['get'](_0x1d3c39),_0x426c88=_0x4f6d96==_0x56e7dc['length']-0x1;(!_0x260496&&_0x2660d8&&(_0x260496=_0x2660d8,_0x328a81=_0x56e7dc[_0x4f6d96]),_0x260496&&(!_0x2660d8||_0x2660d8['userId']!=_0x260496['userId']))&&(_0x15ea05(_0x2660d8,L(_0x328a81,_0x4abe4f,_0x57f48d),L(_0x56e7dc[_0x4f6d96],_0x4abe4f,_0x57f48d)),_0x260496=_0x2660d8||null,_0x328a81=_0x2660d8?_0x56e7dc[_0x4f6d96]:null),_0x260496&&_0x426c88&&_0x15ea05(_0x2660d8,L(_0x328a81,_0x4abe4f,_0x57f48d),W(_0x56e7dc[_0x4f6d96],_0x4abe4f,_0x57f48d));}function _0x15ea05(_0x49a5d7,_0x19076d,_0x13449a){const _0x211527=_0x260496[_0x5baa('0x57')],_0x125065=_0x5baa('0x1a')+_0x1931e2+':'+_0x211527+':'+_0x2f4bf3++,_0x43405c=_0x57f48d[_0x5baa('0x63')](_0x19076d,_0x13449a);_0x4abe4f[_0x5baa('0x11')][_0x5baa('0xbb')](_0x125065,_0x43405c),null!==_0x211527&&_0xea395b[_0x5baa('0x16')](_0x211527);}}[_0x5baa('0x6f')](_0x344214){switch(_0x344214[_0x5baa('0x5a')]){case _0x5baa('0x18'):return _0x5baa('0xfc');case'elementEnd':return'vid_end';default:return'vid';}}[_0x5baa('0xae')](_0x10b739,_0x373f13){_0x10b739[_0x5baa('0x83')]=null;for(const _0x1afe97 in _0x10b739){const _0x206d20=_0x10b739[_0x1afe97];if(_0x206d20 instanceof _0x5a9ecf){const _0x2eed1a=_0x373f13[_0x5baa('0xc')](_0x206d20[_0x5baa('0xc4')][_0x5baa('0x6e')]);_0x10b739[_0x1afe97]=this['_fixPosition'](_0x206d20,_0x2eed1a);}if(_0x206d20 instanceof _0x419fb2){const _0x294c1b=_0x373f13[_0x5baa('0xc')](_0x206d20[_0x5baa('0xc4')][_0x5baa('0x6e')]);_0x10b739[_0x1afe97]=this[_0x5baa('0xe9')](_0x206d20,_0x294c1b);}_0x5baa('0xc4')===_0x1afe97&&(_0x10b739[_0x5baa('0xc4')]=_0x373f13['get'](_0x10b739[_0x5baa('0xc4')]['rootName']));}}[_0x5baa('0xe9')](_0x5bd6e5,_0x202cc4){return this[_0x5baa('0x8c')]['model'][_0x5baa('0x63')](this['_fixPosition'](_0x5bd6e5[_0x5baa('0xaa')],_0x202cc4),this[_0x5baa('0x4a')](_0x5bd6e5[_0x5baa('0x20')],_0x202cc4));}[_0x5baa('0x4a')](_0x24a989,_0x2cbd33){return this[_0x5baa('0x8c')][_0x5baa('0x4e')][_0x5baa('0xf2')](_0x2cbd33,_0x24a989['path'],_0x24a989[_0x5baa('0x9f')]);}[_0x5baa('0xd1')](_0x48f888){const _0x5c3d8e=this[_0x5baa('0xee')][_0x5baa('0xc')](_0x48f888[_0x5baa('0x33')][_0x5baa('0xc4')]['rootName']),_0x130e9e=this[_0x5baa('0x4a')](_0x48f888[_0x5baa('0x33')],_0x5c3d8e),_0x26d070=null===_0x48f888[_0x5baa('0x1e')]?null:_0x48f888[_0x5baa('0x1e')]||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ac817=_0x130e9e[_0x5baa('0x7e')],_0x1cc01e=this['_revisionId'],_0x8c0752=[];for(const _0x1927d3 of _0x48f888[_0x5baa('0x62')])if(_0x1927d3['is'](_0x5baa('0x87')))_0x8c0752['push'](this['_makeIdsRoot'](_0x1927d3));else for(let _0x26d662=0x0;_0x26d662<_0x1927d3[_0x5baa('0x71')];_0x26d662++)_0x8c0752['push'](new _0x49c8c5(_0x5baa('0x67'),{'vid':this[_0x5baa('0x29')]++}));const _0x179a2e=this[_0x5baa('0x29')];for(let _0x475c53=_0x1cc01e;_0x475c53<_0x179a2e;_0x475c53++)this[_0x5baa('0x72')][_0x5baa('0xbb')](_0x475c53,{'userId':_0x26d070});_0x2ac817[_0x5baa('0xf5')](_0x130e9e[_0x5baa('0x2')],_0x8c0752);}[_0x5baa('0xa')](_0x166190){(_0x166190=this[_0x5baa('0x56')](_0x166190,this[_0x5baa('0xee')]))[_0x5baa('0x90')]();const _0x5860eb=null===_0x166190[_0x5baa('0x1e')]?null:_0x166190['_authorId']||this[_0x5baa('0x8c')][_0x5baa('0x8d')]['get']('Users')['me']['id'],_0x228eff=_0x166190[_0x5baa('0xff')](),_0x1ff294=_0x228eff[_0x5baa('0x7e')],_0x9f4c85=_0x228eff[_0x5baa('0x2')];!function _0x370e87(_0x2966a4,_0xa367f8,_0x16735d,_0xc5d94a){for(let _0x4adcff=_0x16735d;_0x4adcff<_0xc5d94a;_0x4adcff++){const _0xff2163=_0xa367f8[_0x5baa('0xe3')](_0x4adcff);_0xff2163['is'](_0x5baa('0x87'),_0x5baa('0x67'))?_0x2966a4['set'](_0xff2163[_0x5baa('0xc0')]('vid'),{'userId':_0x5860eb}):(_0x2966a4['set'](_0xff2163[_0x5baa('0xc0')]('vid_start'),{'userId':_0x5860eb}),_0x370e87(_0x2966a4,_0xff2163,0x0,_0xff2163[_0x5baa('0x5f')]),_0x2966a4[_0x5baa('0xbb')](_0xff2163[_0x5baa('0xc0')]('vid_end'),{'userId':_0x5860eb}));}}(this[_0x5baa('0x72')],_0x1ff294,_0x9f4c85,_0x9f4c85+_0x166190[_0x5baa('0x99')]);}[_0x5baa('0x5c')](_0x4d93bd){const _0x3dc5c0=null===(_0x4d93bd=this[_0x5baa('0x56')](_0x4d93bd,this[_0x5baa('0xee')]))[_0x5baa('0x1e')]?null:_0x4d93bd['_authorId']||this[_0x5baa('0x8c')][_0x5baa('0x8d')]['get']('Users')['me']['id'],_0x5071ad=_0x4d93bd['targetPosition'][_0x5baa('0x7e')],_0x1a6fa8=_0x4d93bd[_0x5baa('0x48')]['parent'],_0x182cfc=_0x5071ad[_0x5baa('0xc0')](_0x5baa('0xea')),_0x5cc95e=_0x1a6fa8[_0x5baa('0xc0')](_0x5baa('0xfc'));_0x5071ad['_setAttribute'](_0x5baa('0xea'),_0x1a6fa8[_0x5baa('0xc0')](_0x5baa('0xea'))),_0x1a6fa8[_0x5baa('0x27')](_0x5baa('0xea'),_0x182cfc),this['_touched'][_0x5baa('0xbb')](_0x5cc95e,{'userId':_0x3dc5c0}),this['_touched'][_0x5baa('0xbb')](_0x182cfc,{'userId':_0x3dc5c0}),_0x4d93bd[_0x5baa('0x90')]();}[_0x5baa('0x14')](_0x340551){const _0x35bd65=null===(_0x340551=this[_0x5baa('0x56')](_0x340551,this[_0x5baa('0xee')]))[_0x5baa('0x1e')]?null:_0x340551[_0x5baa('0x1e')]||this['editor'][_0x5baa('0x8d')]['get'](_0x5baa('0x4f'))['me']['id'],_0x3eb3d8=_0x340551[_0x5baa('0x5b')],_0x2edede=_0x340551[_0x5baa('0xc3')][_0x5baa('0x7e')];_0x340551[_0x5baa('0x90')]();const _0x5a4207=_0x2edede[_0x5baa('0xc0')](_0x5baa('0xea')),_0x2b4849=_0x340551[_0x5baa('0xd5')][_0x5baa('0x88')];if(_0x3eb3d8){const _0xe46057=_0x2b4849[_0x5baa('0xc0')](_0x5baa('0xea')),_0x4f9b84=_0x2edede['getAttribute']('vid_end');_0x2edede[_0x5baa('0x27')](_0x5baa('0xea'),_0xe46057),_0x2b4849[_0x5baa('0x27')](_0x5baa('0xea'),_0x4f9b84),this[_0x5baa('0x72')][_0x5baa('0xbb')](_0x2edede[_0x5baa('0xc0')](_0x5baa('0xea')),{'userId':_0x35bd65}),this[_0x5baa('0x72')][_0x5baa('0xbb')](_0x2b4849[_0x5baa('0xc0')]('vid_start'),{'userId':_0x35bd65});}else{const _0x4490b6=this[_0x5baa('0x29')]++,_0x4555f8=this[_0x5baa('0x29')]++;_0x2edede['_setAttribute']('vid_end',_0x4490b6),_0x2b4849[_0x5baa('0x27')](_0x5baa('0xfc'),_0x4555f8),_0x2b4849[_0x5baa('0x27')]('vid_end',_0x5a4207),this['_touched']['set'](_0x4490b6,{'userId':_0x35bd65}),this[_0x5baa('0x72')][_0x5baa('0xbb')](_0x4555f8,{'userId':_0x35bd65});}}[_0x5baa('0xcb')](_0xb74511){if(!_0xb74511['affectsData'])return;const _0x255701=(_0xb74511=this['_cloneOperation'](_0xb74511,this[_0x5baa('0x94')]))[_0x5baa('0xe1')]?_0xb74511[_0x5baa('0xe1')][_0x5baa('0xc4')]:null,_0x2e27ca=_0xb74511[_0x5baa('0x89')]?_0xb74511['newRange'][_0x5baa('0xc4')]:null;_0x255701&&this[_0x5baa('0xaf')][_0x5baa('0xfe')](_0xb74511[_0x5baa('0x84')]),_0x2e27ca&&this[_0x5baa('0xaf')][_0x5baa('0xbb')](_0xb74511[_0x5baa('0x84')],_0xb74511['newRange'][_0x5baa('0xe5')]());const _0x4684e5=null===_0xb74511['_authorId']?null:_0xb74511[_0x5baa('0x1e')]||this['editor']['plugins'][_0x5baa('0xc')]('Users')['me']['id'],_0x42da87=_0xb74511[_0x5baa('0x84')];if(!this['_touchedMarkers'][_0x5baa('0xf9')](_0x42da87))return void this['_touchedMarkers'][_0x5baa('0xbb')](_0x42da87,{'range':_0xb74511[_0x5baa('0xe1')],'userId':_0x4684e5});const _0x5634d9=this[_0x5baa('0xc9')]['get'](_0x42da87),_0x3fd58c=_0x5634d9[_0x5baa('0xc6')],_0x1c9221=_0xb74511[_0x5baa('0x89')];null==_0x3fd58c&&null==_0x1c9221||_0x3fd58c&&_0x1c9221&&_0x3fd58c['isEqual'](_0x1c9221)?this[_0x5baa('0xc9')][_0x5baa('0xfe')](_0xb74511[_0x5baa('0x84')]):_0x5634d9[_0x5baa('0x57')]=_0x4684e5;}[_0x5baa('0x70')](_0x2038a6,_0x2e9b38){this[_0x5baa('0x94')][_0x5baa('0xf9')](_0x2038a6[_0x5baa('0x6e')])?this[_0x5baa('0x94')]['get'](_0x2038a6[_0x5baa('0x6e')])['_isAttached']=_0x2038a6[_0x5baa('0x101')]:(this['_diffRoots']['set'](_0x2038a6[_0x5baa('0x6e')],G(_0x2038a6[_0x5baa('0x6e')],!0x0)),this[_0x5baa('0x98')]['set'](_0x2038a6['rootName'],{}),_0x2e9b38&&this[_0x5baa('0xee')][_0x5baa('0xbb')](_0x2038a6['rootName'],G(_0x2038a6[_0x5baa('0x6e')],!0x0)));const _0x28ae4d=null===_0x2038a6[_0x5baa('0x1e')]?null:_0x2038a6[_0x5baa('0x1e')]||this[_0x5baa('0x8c')][_0x5baa('0x8d')][_0x5baa('0xc')](_0x5baa('0x4f'))['me']['id'],_0x319714=this[_0x5baa('0xca')][_0x5baa('0xc')](_0x2038a6[_0x5baa('0x6e')]);_0x319714&&_0x319714['userId']===_0x28ae4d?this[_0x5baa('0xca')][_0x5baa('0xfe')](_0x2038a6['rootName']):this[_0x5baa('0xca')]['set'](_0x2038a6[_0x5baa('0x6e')],{'userId':_0x28ae4d,'isAttached':_0x2038a6[_0x5baa('0x101')]});}[_0x5baa('0x7a')](_0xb9cb75){const _0x46db14=this['_diffRootsAttributes']['get'](_0xb9cb75[_0x5baa('0xc4')][_0x5baa('0x6e')]);null===_0xb9cb75[_0x5baa('0xab')]?delete _0x46db14[_0xb9cb75[_0x5baa('0x3e')]]:_0x46db14[_0xb9cb75['key']]=_0xb9cb75[_0x5baa('0xab')];}}function q(_0x5b7b47){const _0x5eab30=G(_0x5b7b47[_0x5baa('0x6e')],_0x5b7b47[_0x5baa('0xe8')]());for(const _0x7944b1 of _0x5b7b47[_0x5baa('0x66')]()){const _0x310fe4=_0x7944b1['_clone'](!0x0);_0x5eab30['_appendChild'](_0x310fe4);}return _0x5eab30;}function G(_0x22f171,_0x54e7d7=!0x0){const _0x28c0fd=new _0x574b2b();return _0x28c0fd[_0x5baa('0x6e')]=_0x22f171,_0x28c0fd['_isAttached']=_0x54e7d7,_0x28c0fd[_0x5baa('0xe8')]=()=>_0x28c0fd[_0x5baa('0xc5')],_0x28c0fd;}function L(_0x492644,_0xcc173d,_0x25a819){const _0x369257=_0x5baa('0xfd')==_0x492644[_0x5baa('0x5a')]?_0x25a819[_0x5baa('0x81')](_0x492644[_0x5baa('0x8f')],_0x5baa('0x20')):_0x25a819[_0x5baa('0xad')](_0x492644[_0x5baa('0x8f')]);return _0x25a819[_0x5baa('0xf2')](_0xcc173d,_0x369257['path'],_0x369257[_0x5baa('0x9f')]);}function W(_0x336ab9,_0x22ea7f,_0x38f446){const _0x5214cd=_0x5baa('0x18')==_0x336ab9['type']?_0x38f446[_0x5baa('0x81')](_0x336ab9[_0x5baa('0x8f')],0x0):_0x38f446[_0x5baa('0xba')](_0x336ab9[_0x5baa('0x8f')]);return _0x38f446[_0x5baa('0xf2')](_0x22ea7f,_0x5214cd[_0x5baa('0x44')],_0x5214cd[_0x5baa('0x9f')]);}
|
|
23
|
+
const _0xa6eb=['NEGATIVE_INFINITY','length','isEnabled','_loadState','initial','_transformMarkers','_diffRoots','remove','$graveyard','_handleMarkerOperation','push','size','insert','getChild','deletions','authorsIds','shift','values','loadState','documentFragment','data-revision-','getUser','revisionHistory.resumeUnsavedRevision','attributesAfter','targetPosition','for','vid','editing','_replaceEditorDataWithRevisionData','_revisionId','_getBaseVids','path','_handleMergeOperation','text','update','item','collaboration.channelId','isAttached','offsetSize','deletion','_makeModelFromViewString','getOperation','getAttribute','_getPreviousFrom','_handleRootOperation','pluginName','_setConversion','_handleSplitOperation','parse','affectsData','bind','_execute','find','_calculateMetaData','end','sendBufferedUpdates','_fixOperation','_handleOperation','creator','childCount','graveyardPosition','getLatestVersion','getRevisionDocumentData','_continueCurrentRevision','useFillerType','addRevision','_handleInsertOperation','createRevision','_savedMetaData','_touchedMarkers','_markers','_update','_getVidAttributeName','position','stringify','_removePendingAction','oldRange','splitPosition','currentRevision','vid_start','_bufferedUpdates','has','_makeRevision','createPositionAt','attachChange','_baseIdsRoots','default','_source','name','getRootNames','upcast','parent','getRevision','version','newRange','isReady','afterInit','getRevisionRootsAttributes','addRevisionData','element','createdAt','_makeIdsRoot','RealTimeCollaborationClient','roots','createPositionFromPath','getTime','elementStart','marked','getChildren','includes','attributesBefore','model','newValue','setSource','set','getMovedRangeStart','_startingRevisionId','clone','_reset','finally','_copyMarkers','_startingVersion','config','editor','_lastFrom','requires','isEqual','_loadedStateData','RevisionsRepository','type','getData','_revisionDataBuilder','nodes','_loadRevisionData','isAdd','range','_getFromVersion','root','setRevisionData','_fixRange','elementEnd','resolve','_baseRoots','marker','authors','define','paragraph','toData','rootName','initialData','getTransformedByOperation','_clone','dataDowncast','getWalker','_addPendingAction','$text','_fixPosition','_baseRootsAttributes','move','key','creatorId','then','repository','detachRoot','_removeMetaData','getNodeByPath','toVersion','_setAttribute','_removeRevisionMarkers','addRoot','_pendingAction','fromEntries','_initialRevisionId','_applyOperations','max','attributes','_handleRootAttributeOperation','adapter','source','createRange','view','_handleMoveOperation','_operations','children','map','getCurrentRevisionId','delete','locale','_isAttached','removeRootAttribute','buildRevisionData','_idsRoots','_diffRootsAttributes','_markChanges','_prepareViewToSave','document','keys','createPositionBefore','_getViewJson','getRoot','previousPosition','history','reInit','keepParagraph','data','reinsert','_insertChild','_touchedRoots','stickiness','updateRevisions','processor','fromVersion','_authorId','clear','_processRootBeforeSave','startsWith','reverse','markers','from','filter','dataToMarker','offset','vid_end','revision-start','get','tableCell','_lastTo','_bufferUpdate','start','split','_generateTape','_saveMetaData','_createInitialRevision','Empty\x20document','_cloneOperation','RevisionTracker','some','add','getRevisions','PendingActions','editor-initial-data-replaced-with-revision-data','toModel','userId','slice','diffData','_touched','rootsAttributes','init','baseVersion','getAttributes','getAncestors','_getState','Users','plugins','conversion','string','_createFromRanges','insertions','revision:','getRange'];(function(_0x2ab067,_0xa6ebbc){const _0x26f8a7=function(_0x3ba605){while(--_0x3ba605){_0x2ab067['push'](_0x2ab067['shift']());}};_0x26f8a7(++_0xa6ebbc);}(_0xa6eb,0x117));const _0x26f8=function(_0x2ab067,_0xa6ebbc){_0x2ab067=_0x2ab067-0x0;let _0x26f8a7=_0xa6eb[_0x2ab067];return _0x26f8a7;};import{Users as _0x586c5f}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x4c399b,PendingActions as _0x3b4ecd}from'ckeditor5/src/core.js';import{logWarning as _0x3e3289,uid as _0xdc3261}from'ckeditor5/src/utils.js';import{Position as _0x3abbb1,Range as _0x21d564,Element as _0x3c4da8,DocumentFragment as _0x3f71a6,ViewText as _0x997765,ViewElement as _0x4e8d96,ViewContainerElement as _0x1b5a39,ViewAttributeElement as _0x466e81,ViewEmptyElement as _0xa1f27c,ViewRawElement as _0x4b89db,ViewUIElement as _0x154e86,ViewDocumentFragment as _0x5973ea}from'ckeditor5/src/engine.js';import _0x1bc109 from'./revisionsrepository.js';import{getTranslation as _0x24d052}from'./utils/common-translations.js';import{cloneDeep as _0x4a5491,isEqual as _0x2ab5d6}from'lodash-es';const B={'c':_0x1b5a39,'a':_0x466e81,'e':_0xa1f27c,'r':_0x4b89db,'u':_0x154e86};export default class l extends _0x4c399b{static get[_0x26f8('0x1a')](){return _0x26f8('0xd8');}static get[_0x26f8('0x6a')](){return[_0x586c5f,_0x1bc109,_0x3b4ecd];}constructor(_0x5d7413){super(_0x5d7413),this['adapter']=null,this[_0x26f8('0x3b')]=null,this[_0x26f8('0x70')]=new H(this['editor']),this[_0x26f8('0x99')]=this['editor'][_0x26f8('0x67')][_0x26f8('0xcd')](_0x26f8('0x11'))||_0x26f8('0xf5'),this[_0x26f8('0x3d')]=new Map(),this[_0x26f8('0x6c')]=null;const _0x59d606=_0xdc3261();this[_0x26f8('0x44')]={'history':this['editor'][_0x26f8('0x5c')][_0x26f8('0xb0')][_0x26f8('0xb6')],'getLatestVersion':()=>Promise[_0x26f8('0x7a')](this[_0x26f8('0x68')]['model'][_0x26f8('0xb0')]['version']),'getCurrentRevisionId':()=>_0x59d606},this[_0x26f8('0x5f')]('isReady',!0x1),this[_0x26f8('0x5f')](_0x26f8('0xf3'),!0x0),this[_0x26f8('0x5f')]('_isPendingUpdate',!0x1),this[_0x26f8('0x68')][_0x26f8('0x67')][_0x26f8('0x7e')](_0x26f8('0x3'),!0x0),this[_0x26f8('0x68')][_0x26f8('0xeb')][_0x26f8('0x6')](_0x26f8('0x47'))[_0x26f8('0xc9')]({'view':'revision'});}[_0x26f8('0xe4')](){this[_0x26f8('0x8f')]=this[_0x26f8('0x68')][_0x26f8('0xea')][_0x26f8('0xcd')](_0x26f8('0x6d')),this[_0x26f8('0x1b')](),this[_0x26f8('0x68')][_0x26f8('0xb9')]['on']('ready',()=>{const _0x2ce4ba=this[_0x26f8('0x8f')][_0x26f8('0x49')](0x0),_0x47bde1=_0x2ce4ba&&null===_0x2ce4ba[_0x26f8('0x27')]?_0x2ce4ba:null;if(this[_0x26f8('0x2c')]=!!_0x47bde1&&this['editor'][_0x26f8('0x67')]['get'](_0x26f8('0x3')),this[_0x26f8('0x68')][_0x26f8('0xea')][_0x26f8('0x3e')](_0x26f8('0x53'))){const _0x145e68=this[_0x26f8('0x44')][_0x26f8('0xa6')](),_0x4fa928=this[_0x26f8('0x8f')][_0x26f8('0x49')](_0x145e68);if(_0x4fa928)this[_0x26f8('0x66')]=_0x4fa928['fromVersion'],this[_0x26f8('0x2c')]=!0x1;else{const _0x20c0e9=this[_0x26f8('0x44')]['history'][_0x26f8('0xa3')]['find'](_0x34cb21=>!_0x34cb21['_isInit']),_0x55504b=_0x20c0e9?_0x20c0e9[_0x26f8('0xe5')]:this[_0x26f8('0x44')][_0x26f8('0xb6')][_0x26f8('0x4a')];_0x2ce4ba?(_0x2ce4ba['toVersion']<_0x55504b&&_0x2ce4ba[_0x26f8('0x34')]({'toVersion':_0x55504b}),this[_0x26f8('0x2c')]?(this[_0x26f8('0x44')][_0x26f8('0xa6')]=()=>_0x47bde1['id'],this[_0x26f8('0x66')]=_0x47bde1[_0x26f8('0xc0')]):(this['_startingVersion']=_0x2ce4ba[_0x26f8('0x93')],this[_0x26f8('0x2c')]=!0x1)):(this['_startingVersion']=_0x55504b,this[_0x26f8('0x2c')]=!0x1);}}else _0x47bde1&&(this[_0x26f8('0x68')]['model'][_0x26f8('0xb0')]['history'][_0x26f8('0x4a')]=Math[_0x26f8('0x9b')](_0x47bde1[_0x26f8('0x93')],this[_0x26f8('0x68')][_0x26f8('0x5c')][_0x26f8('0xb0')][_0x26f8('0xb6')][_0x26f8('0x4a')]),_0x47bde1['fromVersion']===_0x47bde1['toVersion']?(0x0!==_0x47bde1[_0x26f8('0xc0')]&&(this['_source']['getCurrentRevisionId']=()=>_0x47bde1['id']),this['_continueCurrentRevision']=!0x1):this[_0x26f8('0x2c')]&&(this['_source']['getCurrentRevisionId']=()=>_0x47bde1['id'],this[_0x26f8('0x66')]=_0x47bde1[_0x26f8('0xc0')])),this[_0x26f8('0x2c')]||(this['_startingVersion']=this['editor'][_0x26f8('0x5c')][_0x26f8('0xb0')][_0x26f8('0x4a')]);this[_0x26f8('0x70')][_0x26f8('0xe4')](this[_0x26f8('0x44')]['history']),this[_0x26f8('0xd5')](this[_0x26f8('0x66')]),this['_createCurrentRevision'](this[_0x26f8('0x66')]),this[_0x26f8('0x9e')]&&this[_0x26f8('0x24')]();}),this[_0x26f8('0x1f')](_0x26f8('0x4c'))['to'](this,'_isPendingUpdate',_0x400fb3=>!_0x400fb3);}async[_0x26f8('0x4d')](){if(this['repository'][_0x26f8('0xf2')]>0x0){const _0x4366ed=this[_0x26f8('0x8f')][_0x26f8('0x49')](0x0),_0x482b96=await this['getRevisionDocumentData'](_0x4366ed),_0x4191d2=await this[_0x26f8('0x4e')](_0x4366ed);this[_0x26f8('0x9')](_0x482b96,_0x4191d2);}}[_0x26f8('0x5e')](_0x1444a3){this[_0x26f8('0x44')]=_0x1444a3;}async[_0x26f8('0xf')](){const _0x32c5bb=await this[_0x26f8('0x44')][_0x26f8('0x2a')]();if(_0x32c5bb>this['currentRevision']['toVersion']){await this[_0x26f8('0xf4')]();const _0x359c49=this['buildRevisionData']({'revision':this[_0x26f8('0x3b')],'to':_0x32c5bb});_0x359c49[_0x26f8('0x7d')]=_0x359c49[_0x26f8('0x100')][_0x26f8('0xa5')](_0x8404cf=>this[_0x26f8('0x68')][_0x26f8('0xea')][_0x26f8('0xcd')](_0x26f8('0xe9'))['getUser'](_0x8404cf)),this['currentRevision'][_0x26f8('0x34')](_0x359c49);}}async['_loadState'](){this['_continueCurrentRevision']&&!this[_0x26f8('0x6c')]&&(await this[_0x26f8('0x72')](this[_0x26f8('0x3b')]),this[_0x26f8('0x70')]['loadState'](this[_0x26f8('0x3b')]),this[_0x26f8('0x6c')]={'fromVersion':this[_0x26f8('0x3b')][_0x26f8('0xc0')],'authors':this['currentRevision'][_0x26f8('0x7d')]['slice']()});}async['saveRevision'](_0x392469={},_0x2fd73e=null){const _0x4c6f1a=[];await this[_0x26f8('0xf4')](),this[_0x26f8('0x2c')]=!0x1,_0x2fd73e>this[_0x26f8('0x3b')][_0x26f8('0x93')]&&(_0x2fd73e=null),null===_0x2fd73e&&(_0x2fd73e=await this[_0x26f8('0x44')][_0x26f8('0x2a')]());const _0x2734b3=this[_0x26f8('0x75')](_0x2fd73e),_0x344a3c=this[_0x26f8('0xab')]({'from':_0x2734b3,'to':_0x2fd73e});if(this[_0x26f8('0x3b')][_0x26f8('0x93')]<_0x2fd73e){const _0x296bf2=this[_0x26f8('0xab')]({'revision':this[_0x26f8('0x3b')],'from':_0x2fd73e,'to':_0x2fd73e});_0x296bf2[_0x26f8('0x7d')]=[],_0x296bf2[_0x26f8('0x100')]=[],_0x296bf2['id']=this['currentRevision']['id'],this[_0x26f8('0x3b')][_0x26f8('0x34')](_0x296bf2,!0x0),delete _0x296bf2[_0x26f8('0x7d')],_0x4c6f1a['push'](_0x296bf2);}_0x392469[_0x26f8('0x8d')]=this[_0x26f8('0x68')][_0x26f8('0xea')][_0x26f8('0xcd')]('Users')['me']['id'],_0x392469[_0x26f8('0x45')]=_0x392469[_0x26f8('0x45')]||null,_0x392469['id']=_0x392469['id']||_0xdc3261(),_0x392469={..._0x392469,..._0x344a3c};const _0x1ce4f8=this['addRevisionData'](_0x392469);_0x4c6f1a['push'](_0x392469);const _0x4d489e=this['repository']['getIndex'](_0x1ce4f8);if(0x0!==_0x4d489e){const _0x17d526=this['repository']['getRevision'](_0x4d489e-0x1);if(_0x17d526[_0x26f8('0xc0')]!==_0x2fd73e){const _0x2c885b=this['_revisionDataBuilder'][_0x26f8('0x6f')](_0x2fd73e,_0x17d526[_0x26f8('0x93')]),_0x3236ef={'id':_0x17d526['id'],'diffData':_0x2c885b[_0x26f8('0xe1')],'authorsIds':_0x2c885b[_0x26f8('0x100')],'authors':_0x2c885b[_0x26f8('0x100')][_0x26f8('0xa5')](_0x49ea05=>this[_0x26f8('0x68')][_0x26f8('0xea')][_0x26f8('0xcd')](_0x26f8('0xe9'))[_0x26f8('0x2')](_0x49ea05)),'fromVersion':_0x2fd73e};_0x17d526===this['currentRevision']&&(_0x3236ef[_0x26f8('0x51')]=new Date(_0x392469[_0x26f8('0x51')][_0x26f8('0x56')]()+0xa)),_0x17d526[_0x26f8('0x34')](_0x3236ef,!0x0),delete _0x3236ef['authors'],_0x4c6f1a[_0x26f8('0xfb')](_0x3236ef);}}if(this['adapter']){for(const _0x8dacd7 of _0x4c6f1a)this[_0x26f8('0xd0')](_0x8dacd7['id'],_0x8dacd7,!0x0);this[_0x26f8('0x24')]();}return _0x1ce4f8;}[_0x26f8('0x4f')](_0x27182f){const _0x2acfde=this[_0x26f8('0x8f')][_0x26f8('0x30')](_0x27182f);return this[_0x26f8('0x9e')]&&_0x2acfde['on'](_0x26f8('0x34'),(_0x44490f,_0x10b919,_0x290a27)=>{_0x290a27||(this[_0x26f8('0xd0')](_0x10b919['id'],_0x10b919,!0x0),this[_0x26f8('0x24')]());}),this[_0x26f8('0x8f')][_0x26f8('0x2e')](_0x2acfde,this['_findInsertionIndex'](_0x2acfde)),_0x2acfde;}async[_0x26f8('0x2b')](_0x1950d7){await this['_loadRevisionData'](_0x1950d7);const _0x55aa56={};for(const _0x10f3ac in _0x1950d7['diffData']){if(_0x1950d7[_0x26f8('0xe1')][_0x10f3ac][_0x26f8('0x41')]&&!_0x1950d7[_0x26f8('0xe1')][_0x10f3ac][_0x26f8('0x41')]['isAttached'])continue;const _0x257612=this[_0x26f8('0x95')](JSON[_0x26f8('0x1d')](_0x1950d7[_0x26f8('0xe1')][_0x10f3ac]['insertions'])),_0x2bd869=this[_0x26f8('0x68')]['editing'][_0x26f8('0xa1')][_0x26f8('0xb0')],_0x3aac0f=new _0x5973ea(_0x2bd869,_0x257612['map'](_0x1a5342=>J(_0x1a5342,this['editor'])));this['editor'][_0x26f8('0xb9')][_0x26f8('0xbf')][_0x26f8('0x2d')](_0x26f8('0x58')),_0x55aa56[_0x10f3ac]=this[_0x26f8('0x68')][_0x26f8('0xb9')][_0x26f8('0xbf')][_0x26f8('0x80')](_0x3aac0f),this['editor'][_0x26f8('0xb9')][_0x26f8('0xbf')][_0x26f8('0x2d')](_0x26f8('0x43'));}return _0x55aa56;}async[_0x26f8('0x4e')](_0x5214fc){await this[_0x26f8('0x72')](_0x5214fc);const _0x10763d={};for(const _0x8ee9a7 in _0x5214fc[_0x26f8('0xe1')])_0x5214fc[_0x26f8('0xe1')][_0x8ee9a7]['attachChange']&&!_0x5214fc[_0x26f8('0xe1')][_0x8ee9a7]['attachChange'][_0x26f8('0x12')]||(_0x10763d[_0x8ee9a7]=_0x5214fc[_0x26f8('0xe1')][_0x8ee9a7]['attributesAfter']||{});return _0x10763d;}[_0x26f8('0x24')](){if(0x0===this[_0x26f8('0x3d')]['size'])return;if(this['_isPendingUpdate'])return;let _0xb2b375=Array[_0x26f8('0xc7')](this['_bufferedUpdates'][_0x26f8('0x102')]());this['_bufferedUpdates'][_0x26f8('0xc2')]();for(let _0x1a33e8=0x0;_0x1a33e8<_0xb2b375[_0x26f8('0xf2')];_0x1a33e8++){const _0x42873e=_0xb2b375[_0x1a33e8];let _0x2800bb=!0x1;for(const _0x2f3d9c of Object[_0x26f8('0xb1')](_0x42873e))void 0x0===_0x42873e[_0x2f3d9c]?delete _0x42873e[_0x2f3d9c]:'id'!==_0x2f3d9c&&(_0x2800bb=!0x0);_0x2800bb||(_0xb2b375[_0x1a33e8]=null);}if(_0xb2b375=_0xb2b375[_0x26f8('0xc8')](_0x58faca=>null!==_0x58faca),!_0xb2b375['length'])return;for(let _0x2ed826=0x0;_0x2ed826<_0xb2b375[_0x26f8('0xf2')];_0x2ed826++){const _0xd7f4c0=_0xb2b375[_0x2ed826];void 0x0!==_0xd7f4c0[_0x26f8('0xc0')]&&void 0x0===_0xd7f4c0[_0x26f8('0x93')]&&(_0xd7f4c0[_0x26f8('0x93')]=this[_0x26f8('0x8f')][_0x26f8('0x49')](_0xd7f4c0['id'])[_0x26f8('0x93')]),void 0x0!==_0xd7f4c0['toVersion']&&void 0x0===_0xd7f4c0[_0x26f8('0xc0')]&&(_0xd7f4c0[_0x26f8('0xc0')]=this['repository'][_0x26f8('0x49')](_0xd7f4c0['id'])[_0x26f8('0xc0')]);}const _0x532124=this[_0x26f8('0x68')][_0x26f8('0x67')]['get'](_0x26f8('0x11'));this['_isPendingUpdate']=!0x0,this[_0x26f8('0x87')](),this[_0x26f8('0x9e')][_0x26f8('0xbe')](_0xb2b375,_0x532124)[_0x26f8('0x64')](()=>{this['_isPendingUpdate']=!0x1;})[_0x26f8('0x8e')](_0x23c211=>{if(_0x23c211)for(const _0x417eba of _0x23c211)this[_0x26f8('0x77')]({'id':_0x417eba['id'],'createdAt':_0x417eba[_0x26f8('0x51')]});this[_0x26f8('0x38')](),this['sendBufferedUpdates']();});}[_0x26f8('0x9')](_0x11e922,_0x2b0d69){let _0x78502c=this[_0x26f8('0x68')]['config']['get'](_0x26f8('0x82')),_0x4b235c=this[_0x26f8('0x68')][_0x26f8('0x67')]['get'](_0x26f8('0xe3'));if(void 0x0===_0x78502c){_0x78502c={};for(const _0x1c3c90 of this['editor'][_0x26f8('0x5c')][_0x26f8('0xb0')]['getRootNames']())_0x78502c[_0x1c3c90]='';}if(_0x26f8('0xec')==typeof _0x78502c&&(_0x78502c={'main':_0x78502c}),void 0x0===_0x4b235c){_0x4b235c={};for(const _0x1f43aa of this[_0x26f8('0x68')][_0x26f8('0x5c')][_0x26f8('0xb0')][_0x26f8('0x46')]())_0x4b235c[_0x1f43aa]={};}let _0x578682=!0x1;const _0x531b65=Object[_0x26f8('0xb1')](_0x78502c),_0x1135b8=Object[_0x26f8('0xb1')](_0x11e922);for(const _0x6aa136 of _0x531b65){if(_0x78502c[_0x6aa136]!==_0x11e922[_0x6aa136]&&''!==_0x78502c[_0x6aa136]['trim']()){_0x578682=!0x0;break;}if(!_0x2ab5d6(_0x4b235c[_0x6aa136],_0x2b0d69[_0x6aa136])&&Object['keys'](_0x4b235c[_0x6aa136])[_0x26f8('0xf2')]>0x0){_0x578682=!0x0;break;}}_0x578682||(_0x578682=_0x1135b8[_0x26f8('0xd9')](_0x505686=>!this[_0x26f8('0x68')][_0x26f8('0x5c')][_0x26f8('0xb0')][_0x26f8('0xb4')](_0x505686))),_0x578682&&_0x3e3289(_0x26f8('0xdd'),{'editorData':_0x78502c,'editorRootsAttributes':_0x4b235c,'revisionData':_0x11e922,'revisionRootsAttributes':_0x2b0d69}),this['editor'][_0x26f8('0x67')][_0x26f8('0x5f')](_0x26f8('0x82'),_0x11e922),this[_0x26f8('0x68')]['config'][_0x26f8('0x5f')](_0x26f8('0xe3'),_0x2b0d69);}[_0x26f8('0x87')](){if(!this[_0x26f8('0x97')]){const _0x27993f=this[_0x26f8('0x68')][_0x26f8('0xea')][_0x26f8('0xcd')](_0x26f8('0xdc'));this[_0x26f8('0x97')]=_0x27993f[_0x26f8('0xda')](_0x24d052(this['editor'][_0x26f8('0xa8')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x26f8('0x38')](){this[_0x26f8('0x97')]&&(this[_0x26f8('0x68')]['plugins'][_0x26f8('0xcd')](_0x26f8('0xdc'))[_0x26f8('0xf8')](this[_0x26f8('0x97')]),this[_0x26f8('0x97')]=null);}['_findInsertionIndex'](_0x319a98){const _0x55653f=this['repository']['getRevisions']();_0x55653f[_0x26f8('0xc5')]();let _0x8887fb=0x0;for(;_0x8887fb<_0x55653f[_0x26f8('0xf2')];){const _0x17ba71=_0x55653f[_0x8887fb];if(_0x17ba71===this['currentRevision']){_0x8887fb++;continue;}if(_0x17ba71['id']===this[_0x26f8('0x99')])break;const _0x4a80e1=_0x319a98[_0x26f8('0x93')]-_0x17ba71[_0x26f8('0x93')]||_0x319a98['fromVersion']-_0x17ba71[_0x26f8('0xc0')];if(_0x4a80e1>0x0)break;if(_0x4a80e1<0x0)_0x8887fb++;else{if(!_0x319a98['creator']&&_0x17ba71[_0x26f8('0x27')])break;if(_0x17ba71['creator']||!_0x319a98[_0x26f8('0x27')]){if(_0x319a98[_0x26f8('0x51')]>_0x17ba71[_0x26f8('0x51')])break;_0x8887fb++;}else _0x8887fb++;}}return _0x8887fb;}[_0x26f8('0x77')](_0x47ef9a){const _0x1f6dcf=this[_0x26f8('0x8f')][_0x26f8('0x49')](_0x47ef9a['id']);if(_0x47ef9a['createdAt']&&(_0x47ef9a['createdAt']=new Date(_0x47ef9a['createdAt'])),_0x47ef9a[_0x26f8('0x100')]){const _0x5b7abb=this[_0x26f8('0x68')]['plugins'][_0x26f8('0xcd')](_0x26f8('0xe9'));_0x47ef9a[_0x26f8('0x7d')]=_0x47ef9a['authorsIds'][_0x26f8('0xa5')](_0x1099c3=>_0x5b7abb[_0x26f8('0x2')](_0x1099c3));}_0x1f6dcf['_update'](_0x47ef9a,!0x0);}[_0x26f8('0xab')]({revision:_0x4b1eca=null,from:_0x4da6b7=null,to:_0x38c28a=null}){_0x4da6b7=null!==_0x4da6b7?_0x4da6b7:_0x4b1eca[_0x26f8('0xc0')],_0x38c28a=null!==_0x38c28a?_0x38c28a:_0x4b1eca['toVersion'];const _0x66cd2a=this[_0x26f8('0x70')][_0x26f8('0x6f')](_0x4da6b7,_0x38c28a),_0x4be3f9={'diffData':_0x66cd2a[_0x26f8('0xe1')],'authorsIds':_0x66cd2a[_0x26f8('0x100')],'fromVersion':_0x4da6b7,'toVersion':_0x38c28a};if(!_0x4b1eca||_0x38c28a!==_0x4b1eca['toVersion']){const _0x386847=_0x38c28a-0x1,_0x469bda=this[_0x26f8('0x44')][_0x26f8('0xb6')][_0x26f8('0x16')](_0x386847);_0x4be3f9[_0x26f8('0x51')]=_0x469bda&&_0x469bda['createdAt']||new Date();}if(this[_0x26f8('0x6c')]&&_0x4da6b7===this[_0x26f8('0x6c')][_0x26f8('0xc0')])for(const _0x3fdbec of this['_loadedStateData']['authors'])_0x4be3f9[_0x26f8('0x100')][_0x26f8('0x5a')](_0x3fdbec['id'])||_0x4be3f9['authorsIds'][_0x26f8('0xfb')](_0x3fdbec['id']);return _0x4be3f9;}[_0x26f8('0x72')](_0x11537e){if(!_0x11537e||_0x11537e[_0x26f8('0xe1')])return Promise[_0x26f8('0x7a')]();{const _0x296987=this[_0x26f8('0x68')][_0x26f8('0x67')]['get']('collaboration.channelId');return this[_0x26f8('0x9e')][_0x26f8('0x49')]({'channelId':_0x296987,'revisionId':_0x11537e['id']})[_0x26f8('0x8e')](_0x51d88e=>{_0x11537e[_0x26f8('0xe1')]=_0x51d88e['diffData'];});}}[_0x26f8('0xd0')](_0x51956b,_0xff1ee2,_0x5133c9){if(this[_0x26f8('0x3d')][_0x26f8('0x3e')](_0x51956b)){const _0x1158d7=this[_0x26f8('0x3d')][_0x26f8('0xcd')](_0x51956b);_0xff1ee2=_0x5133c9?{..._0x1158d7,..._0xff1ee2}:{..._0xff1ee2,..._0x1158d7};}this[_0x26f8('0x3d')]['set'](_0x51956b,_0xff1ee2);}[_0x26f8('0x75')](_0x3bb8b6){const _0x17edb2=this['repository'][_0x26f8('0xdb')]();_0x17edb2['reverse'](),_0x17edb2[_0x26f8('0x101')]();const _0x3d3290=_0x17edb2[_0x26f8('0x21')](_0x41f8fb=>_0x41f8fb[_0x26f8('0x93')]<=_0x3bb8b6)['toVersion'];return _0x3d3290<this[_0x26f8('0x66')]?this['_startingVersion']:_0x3d3290;}[_0x26f8('0xd5')](_0x27f6dc){const _0x3efa17=this[_0x26f8('0x8f')][_0x26f8('0x49')](this[_0x26f8('0x8f')][_0x26f8('0xf2')]-0x1);if(_0x3efa17)this[_0x26f8('0x99')]=_0x3efa17['id'];else{const _0x166df4=!this[_0x26f8('0x68')][_0x26f8('0x5c')][_0x26f8('0xb0')]['roots'][_0x26f8('0x21')](_0x1a573e=>this[_0x26f8('0x68')]['model']['hasContent'](_0x1a573e)),_0x579415=this[_0x26f8('0x68')][_0x26f8('0xea')][_0x26f8('0xcd')]('Users')['me']['id'],_0x3fdbd5=_0x24d052(this[_0x26f8('0x68')][_0x26f8('0xa8')],_0x166df4?_0x26f8('0xd6'):'Initial\x20revision');this[_0x26f8('0x3f')]({'from':_0x27f6dc,'to':_0x27f6dc,'id':this[_0x26f8('0x99')],'name':_0x3fdbd5,'creatorId':_0x579415});}}['_createCurrentRevision'](_0x46a772){const _0x280bc0=this['_source'][_0x26f8('0xa6')]();this[_0x26f8('0x3b')]=this['repository'][_0x26f8('0x49')](_0x280bc0),this[_0x26f8('0x3b')]||(this[_0x26f8('0x3b')]=this[_0x26f8('0x3f')]({'from':_0x46a772,'to':_0x46a772,'id':_0x280bc0,'name':'','creatorId':null}));}[_0x26f8('0x3f')]({name:_0x596139,from:_0x48792d,to:_0x79e488,creatorId:_0x5b511c,id:_0x4b3fb6}){const _0x3efcfa=this[_0x26f8('0xab')]({'from':_0x48792d,'to':_0x79e488});_0x3efcfa[_0x26f8('0x45')]=_0x596139,_0x3efcfa[_0x26f8('0x8d')]=_0x5b511c,_0x3efcfa['id']=_0x4b3fb6;const _0x167856=this[_0x26f8('0x4f')](_0x3efcfa);return this[_0x26f8('0x9e')]&&this['_bufferUpdate'](_0x3efcfa['id'],_0x3efcfa,!0x0),_0x167856;}[_0x26f8('0x1b')](){this[_0x26f8('0x68')][_0x26f8('0xeb')][_0x26f8('0x6')](_0x26f8('0x85'))['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x215e10){return(_0x215e10=_0x215e10[_0x26f8('0xc8')](_0x4d3291=>!_0x4d3291['name']||_0x26f8('0xcc')!==_0x4d3291['name']&&'revision-end'!==_0x4d3291[_0x26f8('0x45')]))['forEach'](_0x1fd71c=>{_0x26f8('0xec')!=typeof _0x1fd71c&&(_0x1fd71c[_0x26f8('0xa4')]=this[_0x26f8('0x95')](_0x1fd71c[_0x26f8('0xa4')]),_0x1fd71c[_0x26f8('0x9c')]=_0x1fd71c[_0x26f8('0x9c')][_0x26f8('0xc8')](_0x3c99b7=>!_0x3c99b7[0x0][_0x26f8('0xc4')](_0x26f8('0x1'))));}),_0x215e10;}}function J(_0x242021,_0x4f4a49){const _0xc7b4f6=_0x4f4a49[_0x26f8('0x8')][_0x26f8('0xa1')][_0x26f8('0xb0')];if(_0x26f8('0xec')==typeof _0x242021)return new _0x997765(_0xc7b4f6,_0x242021);{const _0x295ce3=_0x242021['children'][_0x26f8('0xa5')](_0x59ea4a=>J(_0x59ea4a,_0x4f4a49));return new(B[_0x242021['type']]||_0x4e8d96)(_0xc7b4f6,_0x242021[_0x26f8('0x45')],_0x242021['attributes'],_0x295ce3);}}class H{constructor(_0x443bb9){this[_0x26f8('0x68')]=_0x443bb9,this[_0x26f8('0x31')]=new Map(),this[_0x26f8('0x69')]=-0x1,this[_0x26f8('0xcf')]=-0x1,this[_0x26f8('0x33')]=new Map(),this[_0x26f8('0xf7')]=new Map(),this[_0x26f8('0xad')]=new Map(),this[_0x26f8('0x7b')]=new Map(),this[_0x26f8('0x8a')]=new Map(),this[_0x26f8('0xac')]=new Map(),this[_0x26f8('0x42')]=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x37ed20){this['source']=_0x37ed20;const _0x4f8ef8=new Map(),_0x336ede=new Map(),_0x37275b=this[_0x26f8('0x68')]['model'][_0x26f8('0xb0')][_0x26f8('0x54')][_0x26f8('0xa5')](_0x5be075=>_0x5be075[_0x26f8('0x81')]);for(const _0x3f21b1 of _0x37275b){const _0x1c9efc=this[_0x26f8('0x68')][_0x26f8('0x5c')][_0x26f8('0xb0')]['getRoot'](_0x3f21b1),_0x52a9c3=q(_0x1c9efc);_0x4f8ef8[_0x26f8('0x5f')](_0x3f21b1,_0x52a9c3),_0x336ede[_0x26f8('0x5f')](_0x3f21b1,Object[_0x26f8('0x98')](_0x1c9efc[_0x26f8('0xe6')]()));}const _0x5410c1=Array[_0x26f8('0xc7')](this[_0x26f8('0x68')][_0x26f8('0x5c')][_0x26f8('0xc6')])[_0x26f8('0xa5')](_0x205a9c=>[_0x205a9c[_0x26f8('0x45')],_0x205a9c[_0x26f8('0xf0')]()]),_0x399535=this[_0x26f8('0x9f')]['version'];this[_0x26f8('0xd4')](_0x399535,_0x4f8ef8,_0x5410c1,_0x336ede),this[_0x26f8('0x61')]=this['_revisionId'];const _0x8f50bf=new Map(),_0xc5a501=new Map();for(const _0x36232a of _0x37275b){const _0x223cb0=G(_0x36232a);_0x8f50bf['set'](_0x36232a,_0x223cb0),_0xc5a501[_0x26f8('0x5f')](_0x36232a,{});}this[_0x26f8('0xd4')](Number[_0x26f8('0xf1')],_0x8f50bf,[],_0xc5a501);}[_0x26f8('0x6f')](_0x430741,_0xcda6d4){if(this['_lastFrom']===_0x430741&&this[_0x26f8('0xcf')]<=_0xcda6d4)this[_0x26f8('0x31')][_0x26f8('0xfc')]>0x1&&this[_0x26f8('0x91')](this['_lastTo']),this['_applyOperations'](this[_0x26f8('0xcf')],_0xcda6d4,!0x0);else{if(!this[_0x26f8('0x31')][_0x26f8('0x3e')](_0x430741)){const _0x5e0fe0=this[_0x26f8('0x18')](_0x430741);this[_0x26f8('0x22')](_0x5e0fe0,_0x430741,!0x1);}this['_calculateMetaData'](_0x430741,_0xcda6d4,!0x0);}return this['_lastFrom']=_0x430741,this[_0x26f8('0xcf')]=_0xcda6d4,this[_0x26f8('0xe8')]();}[_0x26f8('0x103')](_0x40f638){this[_0x26f8('0x63')](),this[_0x26f8('0x69')]=_0x40f638[_0x26f8('0xc0')],this[_0x26f8('0xcf')]=_0x40f638[_0x26f8('0x93')];for(const _0x10e98c in _0x40f638[_0x26f8('0xe1')]){const _0x5dd186=_0x40f638[_0x26f8('0xe1')][_0x10e98c][_0x26f8('0x41')],_0x400ac0=_0x4a5491(_0x40f638[_0x26f8('0xe1')][_0x10e98c][_0x26f8('0x5b')])||{},_0x32eda4=this[_0x26f8('0x15')](_0x40f638[_0x26f8('0xe1')][_0x10e98c][_0x26f8('0xff')]);_0x32eda4[_0x26f8('0x81')]=_0x10e98c,_0x32eda4['_isAttached']=!_0x5dd186||!_0x5dd186[_0x26f8('0x12')],_0x32eda4[_0x26f8('0x12')]=()=>_0x32eda4['_isAttached'],this['_baseRoots'][_0x26f8('0x5f')](_0x10e98c,_0x32eda4),this[_0x26f8('0x8a')][_0x26f8('0x5f')](_0x10e98c,_0x400ac0),_0x5dd186&&this[_0x26f8('0xbc')][_0x26f8('0x5f')](_0x10e98c,_0x5dd186);const _0x37d14e=this[_0x26f8('0x52')](_0x32eda4);this[_0x26f8('0x42')][_0x26f8('0x5f')](_0x10e98c,_0x37d14e);for(const [_0x168129,_0x5313fa]of _0x32eda4[_0x26f8('0xc6')]){if(!_0x168129[_0x26f8('0xc4')](_0x26f8('0xef')))continue;const _0x37ecbd=_0x168129[_0x26f8('0xd2')](':')[0x2];for(const _0x1ca3c1 of _0x5313fa['getWalker']({'singleCharacters':!0x0})){const _0x1fbc2b=this['_getVidAttributeName'](_0x1ca3c1),_0x3cfec6=_0x26f8('0x79')==_0x1ca3c1[_0x26f8('0x6e')]?_0x1ca3c1[_0x26f8('0xb5')][_0x26f8('0xc')][_0x26f8('0xe0')](0x0,-0x1):_0x1ca3c1[_0x26f8('0xb5')][_0x26f8('0xc')],_0x4866d0=_0x37d14e['getNodeByPath'](_0x3cfec6)[_0x26f8('0x17')](_0x1fbc2b);this['_touched'][_0x26f8('0x5f')](_0x4866d0,{'userId':_0x37ecbd});}}}this['_startingRevisionId']=this['_revisionId'];const _0x256e3e=[...Array(this[_0x26f8('0xa')])['keys']()][_0x26f8('0xe0')](0x1)['filter'](_0x29743a=>!this['_touched'][_0x26f8('0x3e')](_0x29743a));let _0x187c09=0x0;const _0x1d0b4b=new Map();for(const _0x19b0eb in _0x40f638[_0x26f8('0xe1')]){const _0x4e5aed=_0x40f638[_0x26f8('0xe1')][_0x19b0eb][_0x26f8('0x41')],_0x4f511a=_0x4a5491(_0x40f638[_0x26f8('0xe1')][_0x19b0eb][_0x26f8('0x4')])||{},_0x32194c=this[_0x26f8('0x15')](_0x40f638[_0x26f8('0xe1')][_0x19b0eb]['insertions']);_0x32194c[_0x26f8('0x81')]=_0x19b0eb,_0x32194c[_0x26f8('0xa9')]=!_0x4e5aed||_0x4e5aed[_0x26f8('0x12')],_0x32194c[_0x26f8('0x12')]=()=>_0x32194c[_0x26f8('0xa9')],this[_0x26f8('0xf7')][_0x26f8('0x5f')](_0x19b0eb,_0x32194c),this[_0x26f8('0xad')][_0x26f8('0x5f')](_0x19b0eb,_0x4f511a);const _0x24cd10=this[_0x26f8('0x52')](_0x32194c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x19b0eb,_0x24cd10),_0x1d0b4b[_0x26f8('0x5f')](_0x19b0eb,_0x32194c['isAttached']()?_0x4f511a:{});for(const [_0x59e011,_0x1a662a]of _0x32194c['markers']){if(!_0x59e011[_0x26f8('0xc4')]('revision:'))continue;const _0x21fc53=_0x59e011[_0x26f8('0xd2')](':')[0x2];for(const _0x53da2c of _0x1a662a['getWalker']({'singleCharacters':!0x0})){const _0x401edd=this['_getVidAttributeName'](_0x53da2c),_0x556faa=this['_revisionId']++,_0x1d2eaf=_0x26f8('0x79')==_0x53da2c['type']?_0x53da2c[_0x26f8('0xb5')]['path'][_0x26f8('0xe0')](0x0,-0x1):_0x53da2c[_0x26f8('0xb5')][_0x26f8('0xc')];_0x24cd10[_0x26f8('0x92')](_0x1d2eaf)[_0x26f8('0x94')](_0x401edd,_0x556faa),this[_0x26f8('0xe2')]['set'](_0x556faa,{'userId':_0x21fc53});}}for(const _0x327b32 of this[_0x26f8('0x68')][_0x26f8('0x5c')]['createRangeIn'](_0x32194c)[_0x26f8('0x86')]({'singleCharacters':!0x0})){const _0x374db4=this[_0x26f8('0x35')](_0x327b32),_0x4a07bd=_0x26f8('0x79')==_0x327b32[_0x26f8('0x6e')]?_0x327b32[_0x26f8('0xb5')][_0x26f8('0xc')][_0x26f8('0xe0')](0x0,-0x1):_0x327b32[_0x26f8('0xb5')][_0x26f8('0xc')],_0x57be9e=_0x24cd10['getNodeByPath'](_0x4a07bd);_0x57be9e['getAttribute'](_0x374db4)>0x0||_0x57be9e[_0x26f8('0x94')](_0x374db4,_0x256e3e[_0x187c09++]);}for(const [_0x5907e0,_0x417bf1]of _0x32194c[_0x26f8('0xc6')])_0x5907e0['startsWith'](_0x26f8('0xef'))||this[_0x26f8('0x33')][_0x26f8('0x5f')](_0x5907e0,_0x417bf1);}const _0x21a8ba=G(_0x26f8('0xf9'));this[_0x26f8('0x7b')][_0x26f8('0x5f')](_0x26f8('0xf9'),_0x21a8ba),this[_0x26f8('0x42')]['set']('$graveyard',this[_0x26f8('0x52')](_0x21a8ba,0x1));const _0x5af419=G('$graveyard');this[_0x26f8('0xf7')]['set'](_0x26f8('0xf9'),_0x5af419),this[_0x26f8('0xac')]['set'](_0x26f8('0xf9'),this['_makeIdsRoot'](_0x5af419,0x1));const _0x4f6482=Array[_0x26f8('0xc7')](this[_0x26f8('0xf7')])[_0x26f8('0xa5')](([_0x52d451,_0x437702])=>[_0x52d451,q(_0x437702)]);this[_0x26f8('0xd4')](this[_0x26f8('0xcf')],_0x4f6482,this[_0x26f8('0x33')],_0x1d0b4b);}[_0x26f8('0x15')](_0x1a792a){const _0x951d6c=JSON[_0x26f8('0x1d')](_0x1a792a),_0x59f2b8=this[_0x26f8('0x68')]['editing'][_0x26f8('0xa1')][_0x26f8('0xb0')],_0x1ded58=new _0x5973ea(_0x59f2b8,_0x951d6c[_0x26f8('0xa5')](_0x42696d=>J(_0x42696d,this[_0x26f8('0x68')])));return this['editor'][_0x26f8('0xb9')][_0x26f8('0xde')](_0x1ded58);}[_0x26f8('0xd4')](_0x4b8d22,_0x270076,_0x4e664d,_0x4ba8e2){const _0x37813f=new Map(_0x270076),_0x44f7a9=new Map(_0x4a5491(_0x4ba8e2)),_0x1544c4=new Map();for(const [_0x2944c3,_0x4daa26]of _0x4e664d)_0x1544c4[_0x26f8('0x5f')](_0x2944c3,{'start':_0x4daa26[_0x26f8('0xd1')][_0x26f8('0x62')](),'end':_0x4daa26[_0x26f8('0x23')]['clone'](),'rootName':_0x4daa26[_0x26f8('0x76')][_0x26f8('0x81')]});this['_savedMetaData'][_0x26f8('0x5f')](_0x4b8d22,{'roots':_0x37813f,'markers':_0x1544c4,'rootsAttributes':_0x44f7a9});}[_0x26f8('0x91')](_0x1049f3){this['_savedMetaData'][_0x26f8('0xa7')](_0x1049f3);}[_0x26f8('0xb7')](){this['_reset'](),this[_0x26f8('0x69')]=-0x1,this[_0x26f8('0xcf')]=-0x1,this[_0x26f8('0x31')][_0x26f8('0xc2')](),this[_0x26f8('0xe4')](this['source']);}[_0x26f8('0x63')](){this[_0x26f8('0xe2')][_0x26f8('0xc2')](),this[_0x26f8('0x32')]['clear'](),this[_0x26f8('0xbc')][_0x26f8('0xc2')](),this[_0x26f8('0xf7')]['clear'](),this['_diffRootsAttributes'][_0x26f8('0xc2')](),this[_0x26f8('0x7b')][_0x26f8('0xc2')](),this[_0x26f8('0x8a')][_0x26f8('0xc2')](),this[_0x26f8('0xac')][_0x26f8('0xc2')](),this['_baseIdsRoots'][_0x26f8('0xc2')](),this['_markers'][_0x26f8('0xc2')](),this[_0x26f8('0xa')]=0x1,this['_startingRevisionId']=this[_0x26f8('0xa')];}[_0x26f8('0x52')](_0x49b629,_0x23afa0=null){let _0x5c6343=null;_0x49b629['is'](_0x26f8('0x0'))||(_0x5c6343=new _0x3c4da8(_0x49b629[_0x26f8('0x45')],{'vid_start':null===_0x23afa0?this[_0x26f8('0xa')]++:_0x23afa0++}));const _0x59221c=[];for(const _0x53c835 of _0x49b629[_0x26f8('0x59')]())if(_0x53c835['is']('element')){_0x59221c[_0x26f8('0xfb')](this[_0x26f8('0x52')](_0x53c835,_0x23afa0));const _0x3474f6=_0x59221c[_0x59221c[_0x26f8('0xf2')]-0x1];null!==_0x23afa0&&(_0x23afa0=_0x3474f6['is']('element',_0x26f8('0x88'))?_0x3474f6[_0x26f8('0x17')](_0x26f8('0x7'))+0x1:_0x3474f6[_0x26f8('0x17')](_0x26f8('0xcb'))+0x1);}else for(let _0x31a20f=0x0;_0x31a20f<_0x53c835[_0x26f8('0x13')];_0x31a20f++)_0x59221c[_0x26f8('0xfb')](new _0x3c4da8(_0x26f8('0x88'),{'vid':null===_0x23afa0?this['_revisionId']++:_0x23afa0++}));if(_0x49b629['is'](_0x26f8('0x0'))){const _0x56ad73=G(_0x49b629['rootName']);return _0x56ad73[_0x26f8('0xbb')](0x0,_0x59221c),_0x56ad73;}return _0x5c6343[_0x26f8('0x94')](_0x26f8('0xcb'),null===_0x23afa0?this[_0x26f8('0xa')]++:_0x23afa0++),_0x5c6343[_0x26f8('0xbb')](0x0,_0x59221c),_0x5c6343;}[_0x26f8('0x22')](_0x211093,_0x1e1090,_0x81e56d){this[_0x26f8('0x63')]();const {roots:_0x2f7b41,markers:_0x13c145,rootsAttributes:_0x145eda}=this[_0x26f8('0x31')][_0x26f8('0xcd')](_0x211093);this[_0x26f8('0x7b')]=new Map(_0x2f7b41),this[_0x26f8('0x8a')]=new Map(_0x4a5491(_0x145eda));for(const [_0x407b7e,_0x1dfd9d]of this[_0x26f8('0x7b')])if(_0x26f8('0xf9')!==_0x407b7e&&(this[_0x26f8('0xf7')][_0x26f8('0x5f')](_0x407b7e,q(_0x1dfd9d)),this[_0x26f8('0xad')]=new Map(_0x4a5491(_0x145eda)),_0x81e56d)){const _0x2254db=this[_0x26f8('0xa')];this[_0x26f8('0xac')]['set'](_0x407b7e,this['_makeIdsRoot'](_0x1dfd9d)),this['_baseIdsRoots'][_0x26f8('0x5f')](_0x407b7e,this[_0x26f8('0x52')](_0x1dfd9d,_0x2254db));}this['_startingRevisionId']=this['_revisionId'],this[_0x26f8('0xf7')][_0x26f8('0x5f')]('$graveyard',q(this['_baseRoots'][_0x26f8('0xcd')](_0x26f8('0xf9')))),_0x81e56d&&this['_idsRoots'][_0x26f8('0x5f')](_0x26f8('0xf9'),this['_makeIdsRoot'](this[_0x26f8('0x7b')]['get'](_0x26f8('0xf9'))));for(const [_0x3e48a0,_0x1958ed]of _0x13c145){const _0x26493b=this['_baseRoots']['get'](_0x1958ed[_0x26f8('0x81')]),_0x3556d5=this[_0x26f8('0xf7')][_0x26f8('0xcd')](_0x1958ed[_0x26f8('0x81')]),_0x844c52=new _0x21d564(this[_0x26f8('0x89')](_0x1958ed[_0x26f8('0xd1')],_0x26493b),this[_0x26f8('0x89')](_0x1958ed['end'],_0x26493b)),_0x44e1d2=this[_0x26f8('0x78')](_0x844c52,_0x3556d5);_0x26493b[_0x26f8('0xc6')][_0x26f8('0x5f')](_0x3e48a0,_0x844c52),this[_0x26f8('0x33')][_0x26f8('0x5f')](_0x3e48a0,_0x44e1d2);}this[_0x26f8('0x9a')](_0x211093,_0x1e1090,_0x81e56d);}[_0x26f8('0x9a')](_0x5db145,_0xab3f6f,_0x459a8e){for(const _0x50d5a7 of this['source']['getOperations'](_0x5db145,_0xab3f6f))this[_0x26f8('0x26')](_0x50d5a7,_0x459a8e);for(const _0x1f9aca of this[_0x26f8('0xf7')][_0x26f8('0x102')]())_0x1f9aca['markers'][_0x26f8('0xc2')]();for(const [_0x1bc419,_0x46a179]of this[_0x26f8('0x33')]){this[_0x26f8('0xf7')][_0x26f8('0xcd')](_0x46a179[_0x26f8('0x76')][_0x26f8('0x81')])[_0x26f8('0xc6')][_0x26f8('0x5f')](_0x1bc419,_0x46a179[_0x26f8('0x62')]());}const _0x6267c7=new Map(),_0xc0915f=new Map();for(const [_0x5d5a84,_0x4f8a36]of this[_0x26f8('0xf7')])_0x6267c7[_0x26f8('0x5f')](_0x5d5a84,q(_0x4f8a36)),_0xc0915f[_0x26f8('0x5f')](_0x5d5a84,this[_0x26f8('0xad')][_0x26f8('0xcd')](_0x5d5a84));this[_0x26f8('0xd4')](_0xab3f6f,_0x6267c7,this[_0x26f8('0x33')],_0xc0915f);}['_getPreviousFrom'](_0x3ce8b7){const _0x1995e5=Array[_0x26f8('0xc7')](this[_0x26f8('0x31')][_0x26f8('0xb1')]());_0x1995e5['sort']((_0x1cd7b0,_0x126435)=>_0x1cd7b0-_0x126435),_0x1995e5[_0x26f8('0xc5')]();for(const _0x17323b of _0x1995e5)if(_0x17323b<_0x3ce8b7)return _0x17323b;return Number[_0x26f8('0xf1')];}[_0x26f8('0x65')](_0xa6d8e3,_0x4bc4a9){const _0x345f80=Array[_0x26f8('0xc7')](_0x4bc4a9[_0x26f8('0xc6')])[_0x26f8('0xa5')](([_0xd64c9,_0xa1c15f])=>[_0xd64c9,this[_0x26f8('0x78')](_0xa1c15f,_0xa6d8e3)]);_0xa6d8e3[_0x26f8('0xc6')]=new Map(_0x345f80);}[_0x26f8('0xf6')](_0x192a18){for(const _0x328ed4 of this[_0x26f8('0x33')][_0x26f8('0x102')]()){const _0x3414ce=_0x328ed4[_0x26f8('0x83')](_0x192a18),_0x7ded07=_0x21d564[_0x26f8('0xed')](_0x3414ce);_0x328ed4[_0x26f8('0xd1')]=_0x7ded07[_0x26f8('0xd1')],_0x328ed4[_0x26f8('0x23')]=_0x7ded07['end'];}}[_0x26f8('0x26')](_0x3218e9,_0x5961d5){if(_0x26f8('0x96')==_0x3218e9['type']||_0x26f8('0x90')==_0x3218e9[_0x26f8('0x6e')])return void this[_0x26f8('0x19')](_0x3218e9,_0x5961d5);if(_0x26f8('0xfd')==_0x3218e9[_0x26f8('0x6e')]){const _0x4baf4c=_0x3218e9[_0x26f8('0x36')]['root'][_0x26f8('0x81')];this[_0x26f8('0xf7')]['has'](_0x4baf4c)||(this[_0x26f8('0xf7')][_0x26f8('0x5f')](_0x4baf4c,G(_0x4baf4c,!0x0)),this[_0x26f8('0xad')][_0x26f8('0x5f')](_0x4baf4c,{}),_0x5961d5&&this[_0x26f8('0xac')][_0x26f8('0x5f')](_0x4baf4c,G(_0x4baf4c,!0x0)));}else{if('addRootAttribute'==_0x3218e9[_0x26f8('0x6e')]||_0x26f8('0xaa')==_0x3218e9[_0x26f8('0x6e')]||'changeRootAttribute'==_0x3218e9[_0x26f8('0x6e')])return void this[_0x26f8('0x9d')](_0x3218e9);}const _0x4b6060=this[_0x26f8('0xd7')](_0x3218e9,this[_0x26f8('0xf7')]);if(_0x26f8('0x7c')!==_0x3218e9[_0x26f8('0x6e')]&&(_0x4b6060['_execute'](),this[_0x26f8('0xf6')](_0x4b6060)),_0x5961d5)switch(_0x4b6060[_0x26f8('0x6e')]){case _0x26f8('0xfd'):this['_handleInsertOperation'](_0x3218e9);break;case _0x26f8('0x8b'):case'remove':case _0x26f8('0xba'):this[_0x26f8('0xa2')](_0x3218e9);break;case'merge':this[_0x26f8('0xd')](_0x3218e9);break;case _0x26f8('0xd2'):this[_0x26f8('0x1c')](_0x3218e9);break;case'marker':this['_handleMarkerOperation'](_0x3218e9);}}[_0x26f8('0xd7')](_0x2e9639,_0x438efb){const _0x5c688c=_0x2e9639['clone']();return _0x5c688c['_authorId']=_0x2e9639[_0x26f8('0xc1')],this[_0x26f8('0x25')](_0x5c688c,_0x438efb),_0x5c688c;}[_0x26f8('0xb')](_0x4a17a9){return _0x4a17a9[_0x26f8('0xa5')](_0x26972a=>{const _0x28c130=this[_0x26f8('0x35')](_0x26972a);return Number(_0x26972a[_0x26f8('0x10')][_0x26f8('0x17')](_0x28c130));});}['_generateTape'](_0x19c4c7,_0xc110a1){if(_0x19c4c7['is'](_0x26f8('0x50'),'$text'))_0xc110a1[_0x26f8('0xfb')]({'item':_0x19c4c7,'type':_0x26f8('0xe')});else{_0x19c4c7['is']('element')&&_0xc110a1[_0x26f8('0xfb')]({'item':_0x19c4c7,'type':'elementStart'});for(const _0x5d1f28 of _0x19c4c7['getChildren']())this[_0x26f8('0xd3')](_0x5d1f28,_0xc110a1);_0x19c4c7['is'](_0x26f8('0x50'))&&_0xc110a1[_0x26f8('0xfb')]({'item':_0x19c4c7,'type':'elementEnd'});}return _0xc110a1;}[_0x26f8('0xe8')](){const _0x50dbcd=new Map(this[_0x26f8('0xe2')]),_0x467c10=new Map(_0x50dbcd),_0x2db5c4=new Map(),_0x5421b7={'insertions':{},'deletions':{}},_0x20613b={'insertions':{},'deletions':{}},_0x29d93c=new Map(),_0x5ee005=new Set([...this[_0x26f8('0x7b')][_0x26f8('0xb1')](),...this[_0x26f8('0xf7')][_0x26f8('0xb1')]()]);_0x5ee005[_0x26f8('0xa7')](_0x26f8('0xf9'));for(const _0x3b4663 of _0x5ee005){const _0x8aae16=this['_diffRoots'][_0x26f8('0xcd')](_0x3b4663)||G(_0x3b4663,!0x1),_0x2cd263=this[_0x26f8('0x7b')][_0x26f8('0xcd')](_0x3b4663)||G(_0x3b4663,!0x1);_0x8aae16['isAttached']()||_0x2cd263[_0x26f8('0x12')]()?(_0x5421b7[_0x26f8('0xee')][_0x3b4663]=q(_0x8aae16),_0x5421b7[_0x26f8('0xff')][_0x3b4663]=q(_0x2cd263),this['_copyMarkers'](_0x5421b7['deletions'][_0x3b4663],_0x2cd263),this[_0x26f8('0x65')](_0x5421b7[_0x26f8('0xee')][_0x3b4663],_0x8aae16),_0x20613b[_0x26f8('0xee')][_0x3b4663]=this['_generateTape'](this[_0x26f8('0xac')]['get'](_0x3b4663),[]),_0x20613b['deletions'][_0x3b4663]=this[_0x26f8('0xd3')](this[_0x26f8('0x42')][_0x26f8('0xcd')](_0x3b4663)||G(_0x3b4663,!0x1),[])):_0x5ee005[_0x26f8('0xa7')](_0x3b4663);}for(const _0x6e42d0 of _0x5ee005){const _0x5eae58=_0x20613b['insertions'][_0x6e42d0];for(const _0x4bd71d of _0x5eae58){const _0x53e022=this[_0x26f8('0x35')](_0x4bd71d),_0x2f982e=_0x4bd71d[_0x26f8('0x10')][_0x26f8('0x17')](_0x53e022);_0x467c10[_0x26f8('0xa7')](_0x2f982e),_0x2f982e>=this[_0x26f8('0x61')]&&_0x2db5c4[_0x26f8('0x5f')](_0x2f982e,_0x50dbcd[_0x26f8('0xcd')](_0x2f982e));}}for(const _0x5269da of _0x5ee005){const _0x1d10d1=_0x20613b['insertions'][_0x5269da],_0x122164=this[_0x26f8('0xb')](_0x20613b['deletions'][_0x5269da]);let _0x3f91f8=0x0;for(const _0x615dc of _0x1d10d1){const _0x318588=this[_0x26f8('0x35')](_0x615dc),_0x5d6019=_0x615dc[_0x26f8('0x10')][_0x26f8('0x17')](_0x318588);if(!_0x2db5c4[_0x26f8('0x3e')](_0x5d6019)&&!_0x29d93c['has'](_0x5d6019)){if(_0x467c10[_0x26f8('0x3e')](_0x5d6019))_0x3f91f8++;else{if(_0x5d6019!=_0x122164[_0x3f91f8]){const _0xf29466=_0x50dbcd[_0x26f8('0xcd')](_0x5d6019)||_0x50dbcd['get'](_0x122164[_0x3f91f8]);for(;_0x5d6019!=_0x122164[_0x3f91f8];)_0x467c10[_0x26f8('0x3e')](_0x122164[_0x3f91f8])||(_0x29d93c[_0x26f8('0x5f')](_0x122164[_0x3f91f8],_0xf29466),_0x50dbcd[_0x26f8('0x5f')](_0x122164[_0x3f91f8],_0xf29466)),_0x3f91f8++;}_0x3f91f8++;}}}}for(const _0x498c6b of _0x5ee005){const _0x19f01d=_0x20613b[_0x26f8('0xee')][_0x498c6b];for(const _0x2bc21a of _0x19f01d){const _0x73aebc=this[_0x26f8('0x35')](_0x2bc21a),_0x14860f=_0x2bc21a['item'][_0x26f8('0x17')](_0x73aebc);if(_0x29d93c[_0x26f8('0x3e')](_0x14860f)){const _0x3a8f07=_0x29d93c[_0x26f8('0xcd')](_0x14860f);_0x467c10[_0x26f8('0x3e')](_0x14860f)||_0x467c10[_0x26f8('0x5f')](_0x14860f,{..._0x3a8f07}),_0x2db5c4[_0x26f8('0x5f')](_0x14860f,{..._0x3a8f07});}}}for(const _0x16c684 of _0x467c10[_0x26f8('0xb1')]())_0x16c684>=this[_0x26f8('0x61')]&&_0x467c10[_0x26f8('0xa7')](_0x16c684);const _0x113aa6=new Map();for(const _0x733a08 of _0x5ee005){let _0x11179b=_0x20613b[_0x26f8('0xee')][_0x733a08];for(const _0x1a84bb of _0x11179b)if(_0x1a84bb[_0x26f8('0x10')]['is'](_0x26f8('0x50'),_0x26f8('0xce'))){const _0x4535fd=this[_0x26f8('0x35')](_0x1a84bb),_0x3026b9=_0x1a84bb[_0x26f8('0x10')][_0x26f8('0x17')](_0x4535fd);if(_0x2db5c4[_0x26f8('0x3e')](_0x3026b9)){const _0x4911ea=_0x1a84bb[_0x26f8('0x10')][_0x26f8('0x48')]['parent']['getAttribute'](_0x26f8('0x3c')),_0x344bcd=_0x113aa6['get'](_0x4911ea)||new Set();_0x344bcd[_0x26f8('0xda')](_0x2db5c4[_0x26f8('0xcd')](_0x3026b9)[_0x26f8('0xdf')]),_0x113aa6[_0x26f8('0x5f')](_0x4911ea,_0x344bcd);}}_0x11179b=_0x20613b[_0x26f8('0xff')][_0x733a08];for(const _0x209e1f of _0x11179b)if(_0x209e1f[_0x26f8('0x10')]['is'](_0x26f8('0x50'),_0x26f8('0xce'))){const _0x4adc8f=this['_getVidAttributeName'](_0x209e1f),_0x3f094e=_0x209e1f[_0x26f8('0x10')][_0x26f8('0x17')](_0x4adc8f);if(_0x467c10['has'](_0x3f094e)){const _0x6b8d1a=_0x209e1f[_0x26f8('0x10')]['parent'][_0x26f8('0x48')][_0x26f8('0x17')](_0x26f8('0x3c')),_0x4990b7=_0x113aa6[_0x26f8('0xcd')](_0x6b8d1a)||new Set();_0x4990b7[_0x26f8('0xda')](_0x467c10[_0x26f8('0xcd')](_0x3f094e)[_0x26f8('0xdf')]),_0x113aa6[_0x26f8('0x5f')](_0x6b8d1a,_0x4990b7);}}for(const _0x2f3683 of _0x113aa6[_0x26f8('0xb1')]())(_0x2db5c4['has'](_0x2f3683)||_0x467c10[_0x26f8('0x3e')](_0x2f3683))&&_0x113aa6[_0x26f8('0xa7')](_0x2f3683);}for(const _0x228967 of _0x5ee005){const _0x98427=_0x20613b[_0x26f8('0xee')][_0x228967];let _0x18a907=null,_0x1b8610=null;for(const _0x34a81e of _0x98427){const _0x3994f9=this[_0x26f8('0x35')](_0x34a81e),_0x545213=_0x34a81e[_0x26f8('0x10')]['getAttribute'](_0x3994f9),_0x4f9248=_0x113aa6[_0x26f8('0xcd')](_0x545213);_0x4f9248&&'elementStart'==_0x34a81e['type']&&(_0x18a907=Array[_0x26f8('0xc7')](_0x4f9248)[0x0],_0x1b8610=_0x34a81e[_0x26f8('0x10')][_0x26f8('0x17')](_0x26f8('0xcb'))),_0x18a907&&(_0x467c10[_0x26f8('0x5f')](_0x545213,{'userId':_0x18a907}),_0x2db5c4['set'](_0x545213,{'userId':_0x18a907})),_0x545213==_0x1b8610&&(_0x18a907=null,_0x1b8610=null);}}const _0x2ca90c={},_0x3e33dd=new Set();for(const _0x27a99a of _0x5ee005){const _0x2ca4ee=_0x5421b7[_0x26f8('0xff')][_0x27a99a],_0x4f1801=_0x5421b7['insertions'][_0x27a99a];for(const {userId:_0x4b183b}of this[_0x26f8('0x32')]['values']())null!==_0x4b183b&&_0x3e33dd[_0x26f8('0xda')](_0x4b183b);for(const {userId:_0x54396c}of this[_0x26f8('0xbc')]['values']())null!==_0x54396c&&_0x3e33dd[_0x26f8('0xda')](_0x54396c);this[_0x26f8('0xae')](_0x4f1801,_0x20613b[_0x26f8('0xee')][_0x27a99a],_0x2db5c4,'insertion',_0x3e33dd),this[_0x26f8('0xae')](_0x2ca4ee,_0x20613b[_0x26f8('0xff')][_0x27a99a],_0x467c10,_0x26f8('0x14'),_0x3e33dd),_0x2ca90c[_0x27a99a]={'insertions':this[_0x26f8('0xaf')](_0x4f1801),'deletions':this[_0x26f8('0xaf')](_0x2ca4ee),'attachChange':this[_0x26f8('0xbc')][_0x26f8('0xcd')](_0x27a99a)||null,'attributesBefore':_0x4a5491(this[_0x26f8('0x8a')]['get'](_0x27a99a))||{},'attributesAfter':_0x4a5491(this['_diffRootsAttributes']['get'](_0x27a99a))};}return{'diffData':_0x2ca90c,'authorsIds':Array[_0x26f8('0xc7')](_0x3e33dd)};}['_processRootBeforeSave'](_0x4704f3){for(const [,_0x281f37]of _0x4704f3[_0x26f8('0xc6')]){const _0x109ed7=_0x281f37[_0x26f8('0xd1')][_0x26f8('0xe7')]()['filter'](_0x473d18=>_0x26f8('0xce')==_0x473d18[_0x26f8('0x45')]);for(const _0x37f05a of _0x109ed7)0x1==_0x37f05a[_0x26f8('0x28')]&&_0x37f05a[_0x26f8('0xfe')](0x0)['is'](_0x26f8('0x50'),_0x26f8('0x7f'))&&_0x37f05a['getChild'](0x0)[_0x26f8('0x94')](_0x26f8('0xb8'),!0x0);}}[_0x26f8('0xaf')](_0x2f21a4){this[_0x26f8('0xc3')](_0x2f21a4);const _0x5005bd=this[_0x26f8('0x68')][_0x26f8('0xb9')]['toView'](_0x2f21a4,{}),_0x454238=Array[_0x26f8('0xc7')](_0x5005bd['getChildren']())[_0x26f8('0xa5')](_0x21c159=>this[_0x26f8('0xb3')](_0x21c159));return JSON[_0x26f8('0x37')](_0x454238);}[_0x26f8('0xb3')](_0x3fecf6){if(_0x3fecf6['is'](_0x26f8('0x88')))return _0x3fecf6[_0x26f8('0xb9')];{const _0x1370a3=_0x3fecf6;return{'type':Object[_0x26f8('0xb1')](B)['find'](_0x153251=>_0x3fecf6 instanceof B[_0x153251]),'name':_0x1370a3[_0x26f8('0x45')],'attributes':Array[_0x26f8('0xc7')](_0x1370a3[_0x26f8('0xe6')]()),'children':Array[_0x26f8('0xc7')](_0x1370a3['getChildren']())[_0x26f8('0xa5')](_0x501835=>this['_getViewJson'](_0x501835))};}}['_markChanges'](_0x37ab70,_0x5a0dcf,_0x44890d,_0x354e0b,_0x5c5643){let _0x272603=null,_0x4333ed=null,_0x2bdc9d=0x0;const _0x245532=this['editor'][_0x26f8('0x5c')];for(let _0x4bf33e=0x0;_0x4bf33e<_0x5a0dcf[_0x26f8('0xf2')];_0x4bf33e++){const _0x5b24fc=this[_0x26f8('0x35')](_0x5a0dcf[_0x4bf33e]),_0xc79b03=_0x5a0dcf[_0x4bf33e][_0x26f8('0x10')]['getAttribute'](_0x5b24fc),_0xdc26d5=_0x44890d[_0x26f8('0xcd')](_0xc79b03),_0x37683e=_0x4bf33e==_0x5a0dcf['length']-0x1;(!_0x272603&&_0xdc26d5&&(_0x272603=_0xdc26d5,_0x4333ed=_0x5a0dcf[_0x4bf33e]),_0x272603&&(!_0xdc26d5||_0xdc26d5[_0x26f8('0xdf')]!=_0x272603[_0x26f8('0xdf')]))&&(_0xc2212e(_0xdc26d5,L(_0x4333ed,_0x37ab70,_0x245532),L(_0x5a0dcf[_0x4bf33e],_0x37ab70,_0x245532)),_0x272603=_0xdc26d5||null,_0x4333ed=_0xdc26d5?_0x5a0dcf[_0x4bf33e]:null),_0x272603&&_0x37683e&&_0xc2212e(_0xdc26d5,L(_0x4333ed,_0x37ab70,_0x245532),W(_0x5a0dcf[_0x4bf33e],_0x37ab70,_0x245532));}function _0xc2212e(_0x190ae,_0x7d93e5,_0x39496a){const _0xcac5d=_0x272603['userId'],_0x102d57=_0x26f8('0xef')+_0x354e0b+':'+_0xcac5d+':'+_0x2bdc9d++,_0x26a9cb=_0x245532[_0x26f8('0xa0')](_0x7d93e5,_0x39496a);_0x37ab70[_0x26f8('0xc6')][_0x26f8('0x5f')](_0x102d57,_0x26a9cb),null!==_0xcac5d&&_0x5c5643[_0x26f8('0xda')](_0xcac5d);}}[_0x26f8('0x35')](_0x283bb1){switch(_0x283bb1['type']){case _0x26f8('0x57'):return _0x26f8('0x3c');case _0x26f8('0x79'):return _0x26f8('0xcb');default:return'vid';}}[_0x26f8('0x25')](_0x4d1fd2,_0x22157c){_0x4d1fd2['baseVersion']=null;for(const _0x5b6945 in _0x4d1fd2){const _0x1290d2=_0x4d1fd2[_0x5b6945];if(_0x1290d2 instanceof _0x3abbb1){const _0x58a102=_0x22157c[_0x26f8('0xcd')](_0x1290d2['root']['rootName']);_0x4d1fd2[_0x5b6945]=this[_0x26f8('0x89')](_0x1290d2,_0x58a102);}if(_0x1290d2 instanceof _0x21d564){const _0x36ea60=_0x22157c[_0x26f8('0xcd')](_0x1290d2[_0x26f8('0x76')]['rootName']);_0x4d1fd2[_0x5b6945]=this[_0x26f8('0x78')](_0x1290d2,_0x36ea60);}_0x26f8('0x76')===_0x5b6945&&(_0x4d1fd2['root']=_0x22157c[_0x26f8('0xcd')](_0x4d1fd2[_0x26f8('0x76')]['rootName']));}}[_0x26f8('0x78')](_0x3eb518,_0xbbb672){return this[_0x26f8('0x68')][_0x26f8('0x5c')][_0x26f8('0xa0')](this[_0x26f8('0x89')](_0x3eb518[_0x26f8('0xd1')],_0xbbb672),this[_0x26f8('0x89')](_0x3eb518[_0x26f8('0x23')],_0xbbb672));}[_0x26f8('0x89')](_0x9a3d41,_0xa28fdc){return this[_0x26f8('0x68')][_0x26f8('0x5c')][_0x26f8('0x55')](_0xa28fdc,_0x9a3d41[_0x26f8('0xc')],_0x9a3d41[_0x26f8('0xbd')]);}[_0x26f8('0x2f')](_0x4049b3){const _0x40dcbc=this['_idsRoots'][_0x26f8('0xcd')](_0x4049b3[_0x26f8('0x36')]['root'][_0x26f8('0x81')]),_0x56f962=this[_0x26f8('0x89')](_0x4049b3[_0x26f8('0x36')],_0x40dcbc),_0x1ca699=null===_0x4049b3[_0x26f8('0xc1')]?null:_0x4049b3[_0x26f8('0xc1')]||this['editor']['plugins']['get'](_0x26f8('0xe9'))['me']['id'],_0x45228c=_0x56f962['parent'],_0x1206e7=this[_0x26f8('0xa')],_0x44be2c=[];for(const _0x15929b of _0x4049b3[_0x26f8('0x71')])if(_0x15929b['is']('element'))_0x44be2c[_0x26f8('0xfb')](this[_0x26f8('0x52')](_0x15929b));else for(let _0xa5bd3e=0x0;_0xa5bd3e<_0x15929b['offsetSize'];_0xa5bd3e++)_0x44be2c['push'](new _0x3c4da8(_0x26f8('0x88'),{'vid':this[_0x26f8('0xa')]++}));const _0x29ffe2=this['_revisionId'];for(let _0x369186=_0x1206e7;_0x369186<_0x29ffe2;_0x369186++)this[_0x26f8('0xe2')][_0x26f8('0x5f')](_0x369186,{'userId':_0x1ca699});_0x45228c[_0x26f8('0xbb')](_0x56f962[_0x26f8('0xca')],_0x44be2c);}[_0x26f8('0xa2')](_0x2701df){(_0x2701df=this['_cloneOperation'](_0x2701df,this[_0x26f8('0xac')]))[_0x26f8('0x20')]();const _0xff095b=null===_0x2701df[_0x26f8('0xc1')]?null:_0x2701df[_0x26f8('0xc1')]||this[_0x26f8('0x68')][_0x26f8('0xea')][_0x26f8('0xcd')](_0x26f8('0xe9'))['me']['id'],_0x26fe3e=_0x2701df[_0x26f8('0x60')](),_0x2fe05b=_0x26fe3e['parent'],_0x2de02a=_0x26fe3e['offset'];!function _0x5ea9fd(_0x162da3,_0x5d8266,_0x2e51b4,_0x4239a6){for(let _0x60f781=_0x2e51b4;_0x60f781<_0x4239a6;_0x60f781++){const _0x35a8d4=_0x5d8266[_0x26f8('0xfe')](_0x60f781);_0x35a8d4['is'](_0x26f8('0x50'),_0x26f8('0x88'))?_0x162da3[_0x26f8('0x5f')](_0x35a8d4[_0x26f8('0x17')](_0x26f8('0x7')),{'userId':_0xff095b}):(_0x162da3[_0x26f8('0x5f')](_0x35a8d4[_0x26f8('0x17')]('vid_start'),{'userId':_0xff095b}),_0x5ea9fd(_0x162da3,_0x35a8d4,0x0,_0x35a8d4['childCount']),_0x162da3[_0x26f8('0x5f')](_0x35a8d4[_0x26f8('0x17')]('vid_end'),{'userId':_0xff095b}));}}(this[_0x26f8('0xe2')],_0x2fe05b,_0x2de02a,_0x2de02a+_0x2701df['howMany']);}[_0x26f8('0xd')](_0x3991cf){const _0x4ffc45=null===(_0x3991cf=this[_0x26f8('0xd7')](_0x3991cf,this[_0x26f8('0xac')]))[_0x26f8('0xc1')]?null:_0x3991cf[_0x26f8('0xc1')]||this[_0x26f8('0x68')][_0x26f8('0xea')]['get']('Users')['me']['id'],_0x2ced6f=_0x3991cf[_0x26f8('0x5')][_0x26f8('0x48')],_0x478771=_0x3991cf['sourcePosition'][_0x26f8('0x48')],_0x2d1a82=_0x2ced6f[_0x26f8('0x17')]('vid_end'),_0x2fe000=_0x478771['getAttribute'](_0x26f8('0x3c'));_0x2ced6f[_0x26f8('0x94')]('vid_end',_0x478771['getAttribute'](_0x26f8('0xcb'))),_0x478771[_0x26f8('0x94')](_0x26f8('0xcb'),_0x2d1a82),this[_0x26f8('0xe2')]['set'](_0x2fe000,{'userId':_0x4ffc45}),this[_0x26f8('0xe2')]['set'](_0x2d1a82,{'userId':_0x4ffc45}),_0x3991cf[_0x26f8('0x20')]();}['_handleSplitOperation'](_0xaafaca){const _0x41f3f9=null===(_0xaafaca=this[_0x26f8('0xd7')](_0xaafaca,this[_0x26f8('0xac')]))['_authorId']?null:_0xaafaca['_authorId']||this[_0x26f8('0x68')]['plugins'][_0x26f8('0xcd')](_0x26f8('0xe9'))['me']['id'],_0x1e64d6=_0xaafaca[_0x26f8('0x29')],_0x775ee=_0xaafaca[_0x26f8('0x3a')][_0x26f8('0x48')];_0xaafaca[_0x26f8('0x20')]();const _0x95469b=_0x775ee['getAttribute'](_0x26f8('0xcb')),_0x58e53c=_0xaafaca['insertionPosition']['nodeAfter'];if(_0x1e64d6){const _0x44ea5a=_0x58e53c['getAttribute']('vid_end'),_0x42c6a5=_0x775ee[_0x26f8('0x17')](_0x26f8('0xcb'));_0x775ee[_0x26f8('0x94')](_0x26f8('0xcb'),_0x44ea5a),_0x58e53c[_0x26f8('0x94')](_0x26f8('0xcb'),_0x42c6a5),this['_touched'][_0x26f8('0x5f')](_0x775ee[_0x26f8('0x17')](_0x26f8('0xcb')),{'userId':_0x41f3f9}),this['_touched'][_0x26f8('0x5f')](_0x58e53c['getAttribute'](_0x26f8('0x3c')),{'userId':_0x41f3f9});}else{const _0x18ed13=this[_0x26f8('0xa')]++,_0x168236=this[_0x26f8('0xa')]++;_0x775ee[_0x26f8('0x94')](_0x26f8('0xcb'),_0x18ed13),_0x58e53c[_0x26f8('0x94')](_0x26f8('0x3c'),_0x168236),_0x58e53c[_0x26f8('0x94')](_0x26f8('0xcb'),_0x95469b),this[_0x26f8('0xe2')][_0x26f8('0x5f')](_0x18ed13,{'userId':_0x41f3f9}),this['_touched']['set'](_0x168236,{'userId':_0x41f3f9});}}[_0x26f8('0xfa')](_0x227289){if(!_0x227289[_0x26f8('0x1e')])return;const _0x3c9b65=(_0x227289=this[_0x26f8('0xd7')](_0x227289,this[_0x26f8('0xf7')]))[_0x26f8('0x39')]?_0x227289['oldRange'][_0x26f8('0x76')]:null,_0x5c30b4=_0x227289[_0x26f8('0x4b')]?_0x227289['newRange'][_0x26f8('0x76')]:null;_0x3c9b65&&this[_0x26f8('0x33')][_0x26f8('0xa7')](_0x227289[_0x26f8('0x45')]),_0x5c30b4&&this[_0x26f8('0x33')]['set'](_0x227289[_0x26f8('0x45')],_0x227289[_0x26f8('0x4b')][_0x26f8('0x62')]());const _0x42118b=null===_0x227289[_0x26f8('0xc1')]?null:_0x227289[_0x26f8('0xc1')]||this[_0x26f8('0x68')][_0x26f8('0xea')]['get'](_0x26f8('0xe9'))['me']['id'],_0x216cbf=_0x227289['name'];if(!this[_0x26f8('0x32')][_0x26f8('0x3e')](_0x216cbf))return void this[_0x26f8('0x32')][_0x26f8('0x5f')](_0x216cbf,{'range':_0x227289[_0x26f8('0x39')],'userId':_0x42118b});const _0x37e736=this[_0x26f8('0x32')]['get'](_0x216cbf),_0x5958de=_0x37e736[_0x26f8('0x74')],_0x5ac550=_0x227289[_0x26f8('0x4b')];null==_0x5958de&&null==_0x5ac550||_0x5958de&&_0x5ac550&&_0x5958de[_0x26f8('0x6b')](_0x5ac550)?this[_0x26f8('0x32')]['delete'](_0x227289[_0x26f8('0x45')]):_0x37e736[_0x26f8('0xdf')]=_0x42118b;}[_0x26f8('0x19')](_0x53ca59,_0x2594f4){this[_0x26f8('0xf7')][_0x26f8('0x3e')](_0x53ca59['rootName'])?this[_0x26f8('0xf7')]['get'](_0x53ca59[_0x26f8('0x81')])[_0x26f8('0xa9')]=_0x53ca59[_0x26f8('0x73')]:(this[_0x26f8('0xf7')]['set'](_0x53ca59['rootName'],G(_0x53ca59[_0x26f8('0x81')],!0x0)),this[_0x26f8('0xad')][_0x26f8('0x5f')](_0x53ca59['rootName'],{}),_0x2594f4&&this['_idsRoots']['set'](_0x53ca59[_0x26f8('0x81')],G(_0x53ca59[_0x26f8('0x81')],!0x0)));const _0x47a5b9=null===_0x53ca59[_0x26f8('0xc1')]?null:_0x53ca59[_0x26f8('0xc1')]||this[_0x26f8('0x68')][_0x26f8('0xea')][_0x26f8('0xcd')](_0x26f8('0xe9'))['me']['id'],_0x2d9756=this[_0x26f8('0xbc')][_0x26f8('0xcd')](_0x53ca59['rootName']);_0x2d9756&&_0x2d9756[_0x26f8('0xdf')]===_0x47a5b9?this[_0x26f8('0xbc')][_0x26f8('0xa7')](_0x53ca59[_0x26f8('0x81')]):this[_0x26f8('0xbc')][_0x26f8('0x5f')](_0x53ca59[_0x26f8('0x81')],{'userId':_0x47a5b9,'isAttached':_0x53ca59['isAdd']});}[_0x26f8('0x9d')](_0x3601c7){const _0x37873d=this['_diffRootsAttributes'][_0x26f8('0xcd')](_0x3601c7['root'][_0x26f8('0x81')]);null===_0x3601c7[_0x26f8('0x5d')]?delete _0x37873d[_0x3601c7[_0x26f8('0x8c')]]:_0x37873d[_0x3601c7['key']]=_0x3601c7[_0x26f8('0x5d')];}}function q(_0x5a3ac8){const _0x3ada93=G(_0x5a3ac8[_0x26f8('0x81')],_0x5a3ac8[_0x26f8('0x12')]());for(const _0x3c6edd of _0x5a3ac8[_0x26f8('0x59')]()){const _0x4770e7=_0x3c6edd[_0x26f8('0x84')](!0x0);_0x3ada93['_appendChild'](_0x4770e7);}return _0x3ada93;}function G(_0x5d9997,_0x16699d=!0x0){const _0x34f58b=new _0x3f71a6();return _0x34f58b[_0x26f8('0x81')]=_0x5d9997,_0x34f58b['_isAttached']=_0x16699d,_0x34f58b['isAttached']=()=>_0x34f58b['_isAttached'],_0x34f58b;}function L(_0x2421a1,_0x47e7e4,_0x1cd638){const _0x87e5cc='elementEnd'==_0x2421a1[_0x26f8('0x6e')]?_0x1cd638[_0x26f8('0x40')](_0x2421a1['item'],_0x26f8('0x23')):_0x1cd638[_0x26f8('0xb2')](_0x2421a1[_0x26f8('0x10')]);return _0x1cd638['createPositionFromPath'](_0x47e7e4,_0x87e5cc['path'],_0x87e5cc['stickiness']);}function W(_0x8cd16f,_0x3db2c4,_0x2fa952){const _0x258b15=_0x26f8('0x57')==_0x8cd16f[_0x26f8('0x6e')]?_0x2fa952[_0x26f8('0x40')](_0x8cd16f[_0x26f8('0x10')],0x0):_0x2fa952['createPositionAfter'](_0x8cd16f[_0x26f8('0x10')]);return _0x2fa952[_0x26f8('0x55')](_0x3db2c4,_0x258b15['path'],_0x258b15[_0x26f8('0xbd')]);}
|