@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231116.0 → 0.0.0-nightly-20231118.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 _0x9833=['baseVersion','reInit','authors','nodes','_pendingAction','roots','history','useFillerType','bind','locale','markers','forEach','key','update','_revisionId','_handleMoveOperation','editing','document','values','add','setRevisionData','attachChange','_appendChild','previousPosition','affectsData','range','finally','_makeRevision','_source','_getViewJson','_insertChild','_handleRootAttributeOperation','_calculateMetaData','_fixPosition','shift','parse','conversion','_fixOperation','marked','getAncestors','children','_isInit','documentFragment','childCount','some','paragraph','hasContent','_getState','saveRevision','_startingRevisionId','isReady','getOperation','createdAt','addRoot','_continueCurrentRevision','_lastTo','deletions','push','vid_start','stickiness','revision','isEqual','_handleSplitOperation','end','version','size','_findInsertionIndex','_prepareViewToSave','NEGATIVE_INFINITY','plugins','delete','_getFromVersion','howMany','rootsAttributes','diffData','getChildren','stringify','addRevision','createRevision','getRevisionRootsAttributes','init','slice','length','addRootAttribute','string','source','dataDowncast','oldRange','$graveyard','editor','_createCurrentRevision','root','getRevisionDocumentData','insertion','createPositionBefore','newRange','initialData','_markChanges','getLatestVersion','type','creatorId','from','_removeMetaData','_diffRootsAttributes','revisionHistory.resumeUnsavedRevision','dataToMarker','name','getRange','_baseIdsRoots','setSource','_handleOperation','getAttributes','_getVidAttributeName','_revisionDataBuilder','getAttribute','keys','get','detachRoot','for','_startingVersion','collaboration.channelId','requires','merge','path','_addPendingAction','map','_markers','getWalker','_loadedStateData','getMovedRangeStart','_savedMetaData','insertions','_generateTape','_bufferedUpdates','fromEntries','vid','_execute','rootName','_touchedRoots','reverse','upcast','trim','adapter','position','revision-end','_getPreviousFrom','loadState','filter','then','_removePendingAction','clone','userId','toVersion','getUser','_setConversion','define','_authorId','creator','buildRevisionData','getData','item','targetPosition','_loadState','createPositionAt','_initialRevisionId','_makeIdsRoot','Initial\x20revision','_processRootBeforeSave','processor','getTransformedByOperation','_isPendingUpdate','getRoot','getNodeByPath','getIndex','_baseRootsAttributes','updateRevisions','attributesBefore','repository','_replaceEditorDataWithRevisionData','has','getTime','_loadRevisionData','view','getChild','elementStart','set','_makeModelFromViewString','currentRevision','Users','_touchedMarkers','parent','removeRootAttribute','_touched','startsWith','resolve','attributes','data-revision-','getRootNames','$text','config','_isAttached','data','marker','toView','revision:','_copyMarkers','isEnabled','elementEnd','nodeAfter','clear','move','tableCell','sendBufferedUpdates','sourcePosition','insertionPosition','_handleMarkerOperation','_reset','_cloneOperation','max','_transformMarkers','_fixRange','_createInitialRevision','splitPosition','createRangeIn','isAttached','createRange','_handleRootOperation','reinsert','editor-initial-data-replaced-with-revision-data','_saveMetaData','getRevision','text','PendingActions','attributesAfter','toModel','insert','afterInit','_setAttribute','newValue','find','offsetSize','_baseRoots','fromVersion','_removeRevisionMarkers','_bufferUpdate','_applyOperations','createPositionFromPath','_idsRoots','_lastFrom','model','start','offset','authorsIds','getOperations','element','_diffRoots','vid_end','getCurrentRevisionId','_update','addRevisionData','split','getRevisions','remove','pluginName','includes'];(function(_0x28dd23,_0x98334b){const _0x221f3=function(_0x47c65f){while(--_0x47c65f){_0x28dd23['push'](_0x28dd23['shift']());}};_0x221f3(++_0x98334b);}(_0x9833,0x10f));const _0x221f=function(_0x28dd23,_0x98334b){_0x28dd23=_0x28dd23-0x0;let _0x221f3=_0x9833[_0x28dd23];return _0x221f3;};import{Users as _0x5759be}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x151ebc,PendingActions as _0x3d2959}from'ckeditor5/src/core';import{logWarning as _0x3c55e7,uid as _0x2459a2}from'ckeditor5/src/utils';import{Position as _0x57d853,Range as _0x3ef9e0,Element as _0x26142d,DocumentFragment as _0xfe15d4,ViewText as _0x18abf4,ViewElement as _0x246ad3,ViewContainerElement as _0x3ca338,ViewAttributeElement as _0x29d46d,ViewEmptyElement as _0x16c6c3,ViewRawElement as _0x2e8632,ViewUIElement as _0x4f6041,ViewDocumentFragment as _0x33d446}from'ckeditor5/src/engine';import _0x3bfb1e from'./revisionsrepository';import{getTranslation as _0x272e7a}from'./utils/common-translations';import{cloneDeep as _0x1be9b3,isEqual as _0x3c08e8}from'lodash-es';const B={'c':_0x3ca338,'a':_0x29d46d,'e':_0x16c6c3,'r':_0x2e8632,'u':_0x4f6041};export default class l extends _0x151ebc{static get[_0x221f('0x101')](){return'RevisionTracker';}static get[_0x221f('0x73')](){return[_0x5759be,_0x3bfb1e,_0x3d2959];}constructor(_0x4d8b0a){super(_0x4d8b0a),this[_0x221f('0x88')]=null,this[_0x221f('0xb5')]=null,this[_0x221f('0x6b')]=new H(this[_0x221f('0x53')]),this[_0x221f('0x9e')]=this[_0x221f('0x53')][_0x221f('0xc1')][_0x221f('0x6e')](_0x221f('0x72'))||'initial',this[_0x221f('0x7f')]=new Map(),this[_0x221f('0x7a')]=null;const _0x46694f=_0x2459a2();this[_0x221f('0x16')]={'history':this[_0x221f('0x53')][_0x221f('0xf3')][_0x221f('0xb')][_0x221f('0x0')],'getLatestVersion':()=>Promise[_0x221f('0xbc')](this['editor'][_0x221f('0xf3')][_0x221f('0xb')]['version']),'getCurrentRevisionId':()=>_0x46694f},this[_0x221f('0xb3')]('isReady',!0x1),this['set'](_0x221f('0xc8'),!0x0),this[_0x221f('0xb3')](_0x221f('0xa4'),!0x1),this['editor']['config'][_0x221f('0x95')](_0x221f('0x62'),!0x0),this[_0x221f('0x53')][_0x221f('0x1e')][_0x221f('0x70')](_0x221f('0x86'))[_0x221f('0x63')]({'view':_0x221f('0x36')});}[_0x221f('0x4a')](){this['repository']=this[_0x221f('0x53')][_0x221f('0x3f')][_0x221f('0x6e')]('RevisionsRepository'),this[_0x221f('0x94')](),this['editor'][_0x221f('0xc3')]['on']('ready',()=>{const _0x4cbf5a=this[_0x221f('0xab')][_0x221f('0xe0')](0x0),_0x426f1e=_0x4cbf5a&&null===_0x4cbf5a[_0x221f('0x97')]?_0x4cbf5a:null;if(this[_0x221f('0x30')]=!!_0x426f1e&&this[_0x221f('0x53')][_0x221f('0xc1')][_0x221f('0x6e')](_0x221f('0x62')),this['editor'][_0x221f('0x3f')]['has']('RealTimeCollaborationClient')){const _0x42a363=this[_0x221f('0x16')][_0x221f('0xfb')](),_0x2fbb85=this[_0x221f('0xab')][_0x221f('0xe0')](_0x42a363);if(_0x2fbb85)this[_0x221f('0x71')]=_0x2fbb85[_0x221f('0xec')],this[_0x221f('0x30')]=!0x1;else{const _0x1f30e8=this[_0x221f('0x16')][_0x221f('0x0')]['_operations']['find'](_0x24e062=>!_0x24e062[_0x221f('0x23')]),_0x1f864b=_0x1f30e8?_0x1f30e8[_0x221f('0x103')]:this[_0x221f('0x16')][_0x221f('0x0')][_0x221f('0x3a')];_0x4cbf5a?(_0x4cbf5a[_0x221f('0x92')]<_0x1f864b&&_0x4cbf5a['_update']({'toVersion':_0x1f864b}),this['_continueCurrentRevision']?(this[_0x221f('0x16')][_0x221f('0xfb')]=()=>_0x426f1e['id'],this['_startingVersion']=_0x426f1e[_0x221f('0xec')]):(this[_0x221f('0x71')]=_0x4cbf5a[_0x221f('0x92')],this[_0x221f('0x30')]=!0x1)):(this[_0x221f('0x71')]=_0x1f864b,this[_0x221f('0x30')]=!0x1);}}else _0x426f1e&&(this[_0x221f('0x53')]['model'][_0x221f('0xb')][_0x221f('0x0')]['version']=Math[_0x221f('0xd4')](_0x426f1e['toVersion'],this[_0x221f('0x53')][_0x221f('0xf3')][_0x221f('0xb')][_0x221f('0x0')][_0x221f('0x3a')]),_0x426f1e[_0x221f('0xec')]===_0x426f1e[_0x221f('0x92')]?(0x0!==_0x426f1e['fromVersion']&&(this[_0x221f('0x16')][_0x221f('0xfb')]=()=>_0x426f1e['id']),this[_0x221f('0x30')]=!0x1):this[_0x221f('0x30')]&&(this[_0x221f('0x16')][_0x221f('0xfb')]=()=>_0x426f1e['id'],this[_0x221f('0x71')]=_0x426f1e['fromVersion'])),this[_0x221f('0x30')]||(this[_0x221f('0x71')]=this[_0x221f('0x53')]['model'][_0x221f('0xb')][_0x221f('0x3a')]);this[_0x221f('0x6b')]['init'](this[_0x221f('0x16')][_0x221f('0x0')]),this[_0x221f('0xd7')](this[_0x221f('0x71')]),this[_0x221f('0x54')](this[_0x221f('0x71')]),this['adapter']&&this['sendBufferedUpdates']();}),this[_0x221f('0x2')](_0x221f('0x2c'))['to'](this,_0x221f('0xa4'),_0x18c729=>!_0x18c729);}async[_0x221f('0xe6')](){if(this['repository']['length']>0x0){const _0x3bb1d0=this['repository'][_0x221f('0xe0')](0x0),_0x3a04e1=await this[_0x221f('0x56')](_0x3bb1d0),_0x29f74b=await this['getRevisionRootsAttributes'](_0x3bb1d0);this['_replaceEditorDataWithRevisionData'](_0x3a04e1,_0x29f74b);}}[_0x221f('0x67')](_0x311348){this[_0x221f('0x16')]=_0x311348;}async[_0x221f('0x7')](){const _0x26726c=await this[_0x221f('0x16')][_0x221f('0x5c')]();if(_0x26726c>this[_0x221f('0xb5')][_0x221f('0x92')]){await this[_0x221f('0x9c')]();const _0x1a4207=this['buildRevisionData']({'revision':this[_0x221f('0xb5')],'to':_0x26726c});_0x1a4207['authors']=_0x1a4207[_0x221f('0xf6')][_0x221f('0x77')](_0xa011d8=>this[_0x221f('0x53')]['plugins']['get'](_0x221f('0xb6'))['getUser'](_0xa011d8)),this[_0x221f('0xb5')][_0x221f('0xfc')](_0x1a4207);}}async[_0x221f('0x9c')](){this['_continueCurrentRevision']&&!this[_0x221f('0x7a')]&&(await this[_0x221f('0xaf')](this[_0x221f('0xb5')]),this[_0x221f('0x6b')][_0x221f('0x8c')](this[_0x221f('0xb5')]),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this[_0x221f('0xb5')][_0x221f('0x105')][_0x221f('0x4b')]()});}async[_0x221f('0x2a')](_0x541fe7={},_0x1ae0a8=null){const _0x3f1d9e=[];await this['_loadState'](),this[_0x221f('0x30')]=!0x1,_0x1ae0a8>this[_0x221f('0xb5')][_0x221f('0x92')]&&(_0x1ae0a8=null),null===_0x1ae0a8&&(_0x1ae0a8=await this[_0x221f('0x16')][_0x221f('0x5c')]());const _0x41c41c=this[_0x221f('0x41')](_0x1ae0a8),_0x558221=this['buildRevisionData']({'from':_0x41c41c,'to':_0x1ae0a8});if(this[_0x221f('0xb5')][_0x221f('0x92')]<_0x1ae0a8){const _0x4491a0=this[_0x221f('0x98')]({'revision':this[_0x221f('0xb5')],'from':_0x1ae0a8,'to':_0x1ae0a8});_0x4491a0[_0x221f('0x105')]=[],_0x4491a0[_0x221f('0xf6')]=[],_0x4491a0['id']=this[_0x221f('0xb5')]['id'],this[_0x221f('0xb5')]['_update'](_0x4491a0,!0x0),delete _0x4491a0[_0x221f('0x105')],_0x3f1d9e[_0x221f('0x33')](_0x4491a0);}_0x541fe7['creatorId']=this[_0x221f('0x53')][_0x221f('0x3f')][_0x221f('0x6e')](_0x221f('0xb6'))['me']['id'],_0x541fe7[_0x221f('0x64')]=_0x541fe7[_0x221f('0x64')]||null,_0x541fe7['id']=_0x541fe7['id']||_0x2459a2(),_0x541fe7={..._0x541fe7,..._0x558221};const _0x5304cc=this[_0x221f('0xfd')](_0x541fe7);_0x3f1d9e[_0x221f('0x33')](_0x541fe7);const _0x48b5fa=this[_0x221f('0xab')][_0x221f('0xa7')](_0x5304cc);if(0x0!==_0x48b5fa){const _0x25b59d=this['repository'][_0x221f('0xe0')](_0x48b5fa-0x1);if(_0x25b59d['fromVersion']!==_0x1ae0a8){const _0x309985=this['_revisionDataBuilder'][_0x221f('0x99')](_0x1ae0a8,_0x25b59d['toVersion']),_0x4a2c7a={'id':_0x25b59d['id'],'diffData':_0x309985[_0x221f('0x44')],'authorsIds':_0x309985[_0x221f('0xf6')],'authors':_0x309985[_0x221f('0xf6')][_0x221f('0x77')](_0x46fbab=>this[_0x221f('0x53')]['plugins']['get'](_0x221f('0xb6'))[_0x221f('0x93')](_0x46fbab)),'fromVersion':_0x1ae0a8};_0x25b59d===this[_0x221f('0xb5')]&&(_0x4a2c7a[_0x221f('0x2e')]=new Date(_0x541fe7['createdAt'][_0x221f('0xae')]()+0xa)),_0x25b59d[_0x221f('0xfc')](_0x4a2c7a,!0x0),delete _0x4a2c7a[_0x221f('0x105')],_0x3f1d9e[_0x221f('0x33')](_0x4a2c7a);}}if(this['adapter']){for(const _0x5c117a of _0x3f1d9e)this['_bufferUpdate'](_0x5c117a['id'],_0x5c117a,!0x0);this[_0x221f('0xce')]();}return _0x5304cc;}['addRevisionData'](_0xb9e0f1){const _0xe5faaf=this[_0x221f('0xab')][_0x221f('0x48')](_0xb9e0f1);return this[_0x221f('0x88')]&&_0xe5faaf['on'](_0x221f('0xfc'),(_0x3b4843,_0x45a8d5,_0x5a1ccb)=>{_0x5a1ccb||(this[_0x221f('0xee')](_0x45a8d5['id'],_0x45a8d5,!0x0),this[_0x221f('0xce')]());}),this[_0x221f('0xab')][_0x221f('0x47')](_0xe5faaf,this[_0x221f('0x3c')](_0xe5faaf)),_0xe5faaf;}async[_0x221f('0x56')](_0x27d378){await this[_0x221f('0xaf')](_0x27d378);const _0x3faeea={};for(const _0x24bac0 in _0x27d378[_0x221f('0x44')]){if(_0x27d378['diffData'][_0x24bac0][_0x221f('0xf')]&&!_0x27d378['diffData'][_0x24bac0]['attachChange'][_0x221f('0xda')])continue;const _0x27eb17=this[_0x221f('0xed')](JSON[_0x221f('0x1d')](_0x27d378[_0x221f('0x44')][_0x24bac0][_0x221f('0x7d')])),_0x2ebb63=this[_0x221f('0x53')][_0x221f('0xa')][_0x221f('0xb0')][_0x221f('0xb')],_0x1ec2e5=new _0x33d446(_0x2ebb63,_0x27eb17[_0x221f('0x77')](_0x4508df=>J(_0x4508df,this[_0x221f('0x53')])));this['editor'][_0x221f('0xc3')][_0x221f('0xa2')][_0x221f('0x1')](_0x221f('0x20')),_0x3faeea[_0x24bac0]=this[_0x221f('0x53')][_0x221f('0xc3')][_0x221f('0xa2')]['toData'](_0x1ec2e5),this[_0x221f('0x53')][_0x221f('0xc3')][_0x221f('0xa2')]['useFillerType']('default');}return _0x3faeea;}async[_0x221f('0x49')](_0x403831){await this[_0x221f('0xaf')](_0x403831);const _0x5f1403={};for(const _0x21a2c4 in _0x403831[_0x221f('0x44')])_0x403831[_0x221f('0x44')][_0x21a2c4][_0x221f('0xf')]&&!_0x403831[_0x221f('0x44')][_0x21a2c4]['attachChange'][_0x221f('0xda')]||(_0x5f1403[_0x21a2c4]=_0x403831[_0x221f('0x44')][_0x21a2c4][_0x221f('0xe3')]||{});return _0x5f1403;}[_0x221f('0xce')](){if(0x0===this[_0x221f('0x7f')][_0x221f('0x3b')])return;if(this[_0x221f('0xa4')])return;let _0x28309e=Array['from'](this[_0x221f('0x7f')]['values']());this[_0x221f('0x7f')]['clear']();for(let _0xa2dd9a=0x0;_0xa2dd9a<_0x28309e[_0x221f('0x4c')];_0xa2dd9a++){const _0x3671c3=_0x28309e[_0xa2dd9a];let _0x49ac24=!0x1;for(const _0x23f079 of Object[_0x221f('0x6d')](_0x3671c3))void 0x0===_0x3671c3[_0x23f079]?delete _0x3671c3[_0x23f079]:'id'!==_0x23f079&&(_0x49ac24=!0x0);_0x49ac24||(_0x28309e[_0xa2dd9a]=null);}if(_0x28309e=_0x28309e[_0x221f('0x8d')](_0x401dcc=>null!==_0x401dcc),!_0x28309e[_0x221f('0x4c')])return;for(let _0x5a2c37=0x0;_0x5a2c37<_0x28309e['length'];_0x5a2c37++){const _0x25414c=_0x28309e[_0x5a2c37];void 0x0!==_0x25414c[_0x221f('0xec')]&&void 0x0===_0x25414c['toVersion']&&(_0x25414c[_0x221f('0x92')]=this['repository']['getRevision'](_0x25414c['id'])[_0x221f('0x92')]),void 0x0!==_0x25414c['toVersion']&&void 0x0===_0x25414c[_0x221f('0xec')]&&(_0x25414c[_0x221f('0xec')]=this[_0x221f('0xab')][_0x221f('0xe0')](_0x25414c['id'])[_0x221f('0xec')]);}const _0x4cc070=this[_0x221f('0x53')][_0x221f('0xc1')][_0x221f('0x6e')](_0x221f('0x72'));this['_isPendingUpdate']=!0x0,this[_0x221f('0x76')](),this[_0x221f('0x88')][_0x221f('0xa9')](_0x28309e,_0x4cc070)[_0x221f('0x14')](()=>{this[_0x221f('0xa4')]=!0x1;})[_0x221f('0x8e')](_0x584610=>{if(_0x584610)for(const _0x25b1fa of _0x584610)this[_0x221f('0xe')]({'id':_0x25b1fa['id'],'createdAt':_0x25b1fa[_0x221f('0x2e')]});this[_0x221f('0x8f')](),this['sendBufferedUpdates']();});}[_0x221f('0xac')](_0x298d03,_0x356f4e){let _0x3a81b1=this[_0x221f('0x53')][_0x221f('0xc1')][_0x221f('0x6e')]('initialData'),_0x5d6fbc=this[_0x221f('0x53')]['config'][_0x221f('0x6e')](_0x221f('0x43'));if(void 0x0===_0x3a81b1){_0x3a81b1={};for(const _0x8e4431 of this[_0x221f('0x53')]['model'][_0x221f('0xb')][_0x221f('0xbf')]())_0x3a81b1[_0x8e4431]='';}if('string'==typeof _0x3a81b1&&(_0x3a81b1={'main':_0x3a81b1}),void 0x0===_0x5d6fbc){_0x5d6fbc={};for(const _0x2214b8 of this['editor'][_0x221f('0xf3')][_0x221f('0xb')][_0x221f('0xbf')]())_0x5d6fbc[_0x2214b8]={};}let _0x2817aa=!0x1;const _0x45514d=Object['keys'](_0x3a81b1),_0x287dec=Object['keys'](_0x298d03);for(const _0x6bcd21 of _0x45514d){if(_0x3a81b1[_0x6bcd21]!==_0x298d03[_0x6bcd21]&&''!==_0x3a81b1[_0x6bcd21][_0x221f('0x87')]()){_0x2817aa=!0x0;break;}if(!_0x3c08e8(_0x5d6fbc[_0x6bcd21],_0x356f4e[_0x6bcd21])&&Object[_0x221f('0x6d')](_0x5d6fbc[_0x6bcd21])[_0x221f('0x4c')]>0x0){_0x2817aa=!0x0;break;}}_0x2817aa||(_0x2817aa=_0x287dec[_0x221f('0x26')](_0x36be1b=>!this[_0x221f('0x53')][_0x221f('0xf3')]['document'][_0x221f('0xa5')](_0x36be1b))),_0x2817aa&&_0x3c55e7(_0x221f('0xde'),{'editorData':_0x3a81b1,'editorRootsAttributes':_0x5d6fbc,'revisionData':_0x298d03,'revisionRootsAttributes':_0x356f4e}),this[_0x221f('0x53')]['config'][_0x221f('0xb3')](_0x221f('0x5a'),_0x298d03),this['editor'][_0x221f('0xc1')][_0x221f('0xb3')](_0x221f('0x43'),_0x356f4e);}['_addPendingAction'](){if(!this[_0x221f('0x107')]){const _0x3de58b=this[_0x221f('0x53')]['plugins']['get'](_0x221f('0xe2'));this['_pendingAction']=_0x3de58b['add'](_0x272e7a(this[_0x221f('0x53')][_0x221f('0x3')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x221f('0x8f')](){this[_0x221f('0x107')]&&(this[_0x221f('0x53')]['plugins'][_0x221f('0x6e')]('PendingActions')[_0x221f('0x100')](this[_0x221f('0x107')]),this[_0x221f('0x107')]=null);}['_findInsertionIndex'](_0x39c824){const _0x30a0f8=this['repository']['getRevisions']();_0x30a0f8[_0x221f('0x85')]();let _0xf6289c=0x0;for(;_0xf6289c<_0x30a0f8[_0x221f('0x4c')];){const _0x5d206a=_0x30a0f8[_0xf6289c];if(_0x5d206a===this[_0x221f('0xb5')]){_0xf6289c++;continue;}if(_0x5d206a['id']===this[_0x221f('0x9e')])break;const _0x3f2c1c=_0x39c824[_0x221f('0x92')]-_0x5d206a['toVersion']||_0x39c824[_0x221f('0xec')]-_0x5d206a[_0x221f('0xec')];if(_0x3f2c1c>0x0)break;if(_0x3f2c1c<0x0)_0xf6289c++;else{if(!_0x39c824[_0x221f('0x97')]&&_0x5d206a[_0x221f('0x97')])break;if(_0x5d206a[_0x221f('0x97')]||!_0x39c824[_0x221f('0x97')]){if(_0x39c824[_0x221f('0x2e')]>_0x5d206a['createdAt'])break;_0xf6289c++;}else _0xf6289c++;}}return _0xf6289c;}[_0x221f('0xe')](_0x487d17){const _0x1da836=this['repository']['getRevision'](_0x487d17['id']);if(_0x487d17[_0x221f('0x2e')]&&(_0x487d17[_0x221f('0x2e')]=new Date(_0x487d17[_0x221f('0x2e')])),_0x487d17[_0x221f('0xf6')]){const _0x371f0b=this[_0x221f('0x53')][_0x221f('0x3f')][_0x221f('0x6e')]('Users');_0x487d17[_0x221f('0x105')]=_0x487d17[_0x221f('0xf6')]['map'](_0x178dfa=>_0x371f0b[_0x221f('0x93')](_0x178dfa));}_0x1da836['_update'](_0x487d17,!0x0);}[_0x221f('0x98')]({revision:_0x1eba5e=null,from:_0xfc5c45=null,to:_0x185a52=null}){_0xfc5c45=null!==_0xfc5c45?_0xfc5c45:_0x1eba5e[_0x221f('0xec')],_0x185a52=null!==_0x185a52?_0x185a52:_0x1eba5e['toVersion'];const _0x2bc6ea=this[_0x221f('0x6b')]['getData'](_0xfc5c45,_0x185a52),_0x11bcce={'diffData':_0x2bc6ea['diffData'],'authorsIds':_0x2bc6ea['authorsIds'],'fromVersion':_0xfc5c45,'toVersion':_0x185a52};if(!_0x1eba5e||_0x185a52!==_0x1eba5e[_0x221f('0x92')]){const _0x31ab77=_0x185a52-0x1,_0x4bcbd5=this['_source'][_0x221f('0x0')][_0x221f('0x2d')](_0x31ab77);_0x11bcce[_0x221f('0x2e')]=_0x4bcbd5&&_0x4bcbd5[_0x221f('0x2e')]||new Date();}if(this['_loadedStateData']&&_0xfc5c45===this['_loadedStateData']['fromVersion'])for(const _0x1b2f94 of this[_0x221f('0x7a')][_0x221f('0x105')])_0x11bcce['authorsIds'][_0x221f('0x102')](_0x1b2f94['id'])||_0x11bcce['authorsIds']['push'](_0x1b2f94['id']);return _0x11bcce;}['_loadRevisionData'](_0x1c8c53){if(!_0x1c8c53||_0x1c8c53[_0x221f('0x44')])return Promise['resolve']();{const _0x3f9149=this[_0x221f('0x53')][_0x221f('0xc1')]['get'](_0x221f('0x72'));return this['adapter']['getRevision']({'channelId':_0x3f9149,'revisionId':_0x1c8c53['id']})[_0x221f('0x8e')](_0x47abe5=>{_0x1c8c53[_0x221f('0x44')]=_0x47abe5[_0x221f('0x44')];});}}[_0x221f('0xee')](_0x577a64,_0x4d9303,_0x4b4733){if(this[_0x221f('0x7f')]['has'](_0x577a64)){const _0x1b5dec=this['_bufferedUpdates'][_0x221f('0x6e')](_0x577a64);_0x4d9303=_0x4b4733?{..._0x1b5dec,..._0x4d9303}:{..._0x4d9303,..._0x1b5dec};}this[_0x221f('0x7f')][_0x221f('0xb3')](_0x577a64,_0x4d9303);}['_getFromVersion'](_0x2c8cbe){const _0x554a67=this['repository'][_0x221f('0xff')]();_0x554a67[_0x221f('0x85')](),_0x554a67[_0x221f('0x1c')]();const _0x598ad9=_0x554a67['find'](_0x30f69f=>_0x30f69f[_0x221f('0x92')]<=_0x2c8cbe)[_0x221f('0x92')];return _0x598ad9<this['_startingVersion']?this['_startingVersion']:_0x598ad9;}[_0x221f('0xd7')](_0x58677c){const _0x144a74=this[_0x221f('0xab')][_0x221f('0xe0')](this[_0x221f('0xab')][_0x221f('0x4c')]-0x1);if(_0x144a74)this[_0x221f('0x9e')]=_0x144a74['id'];else{const _0x2181b5=!this[_0x221f('0x53')][_0x221f('0xf3')][_0x221f('0xb')][_0x221f('0x108')][_0x221f('0xe9')](_0x4d7ba0=>this[_0x221f('0x53')][_0x221f('0xf3')][_0x221f('0x28')](_0x4d7ba0)),_0x5e8231=this[_0x221f('0x53')][_0x221f('0x3f')]['get'](_0x221f('0xb6'))['me']['id'],_0x1656fd=_0x272e7a(this[_0x221f('0x53')]['locale'],_0x2181b5?'Empty\x20document':_0x221f('0xa0'));this[_0x221f('0x15')]({'from':_0x58677c,'to':_0x58677c,'id':this[_0x221f('0x9e')],'name':_0x1656fd,'creatorId':_0x5e8231});}}[_0x221f('0x54')](_0x1a2f75){const _0x217f2b=this[_0x221f('0x16')][_0x221f('0xfb')]();this[_0x221f('0xb5')]=this['repository'][_0x221f('0xe0')](_0x217f2b),this['currentRevision']||(this[_0x221f('0xb5')]=this[_0x221f('0x15')]({'from':_0x1a2f75,'to':_0x1a2f75,'id':_0x217f2b,'name':'','creatorId':null}));}[_0x221f('0x15')]({name:_0x1b6753,from:_0x3dcd0d,to:_0x48e933,creatorId:_0x4f4665,id:_0x64cabe}){const _0x13ab2a=this['buildRevisionData']({'from':_0x3dcd0d,'to':_0x48e933});_0x13ab2a[_0x221f('0x64')]=_0x1b6753,_0x13ab2a[_0x221f('0x5e')]=_0x4f4665,_0x13ab2a['id']=_0x64cabe;const _0x3a9058=this[_0x221f('0xfd')](_0x13ab2a);return this[_0x221f('0x88')]&&this[_0x221f('0xee')](_0x13ab2a['id'],_0x13ab2a,!0x0),_0x3a9058;}['_setConversion'](){this[_0x221f('0x53')][_0x221f('0x1e')][_0x221f('0x70')](_0x221f('0x50'))['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x33263c){return(_0x33263c=_0x33263c[_0x221f('0x8d')](_0x35d651=>!_0x35d651[_0x221f('0x64')]||'revision-start'!==_0x35d651['name']&&_0x221f('0x8a')!==_0x35d651['name']))[_0x221f('0x5')](_0x4ce93f=>{_0x221f('0x4e')!=typeof _0x4ce93f&&(_0x4ce93f[_0x221f('0x22')]=this['_removeRevisionMarkers'](_0x4ce93f[_0x221f('0x22')]),_0x4ce93f['attributes']=_0x4ce93f[_0x221f('0xbd')]['filter'](_0x1f5aa9=>!_0x1f5aa9[0x0][_0x221f('0xbb')](_0x221f('0xbe'))));}),_0x33263c;}}function J(_0x13165e,_0x14c8d4){const _0x238fed=_0x14c8d4[_0x221f('0xa')]['view']['document'];if(_0x221f('0x4e')==typeof _0x13165e)return new _0x18abf4(_0x238fed,_0x13165e);{const _0x448bdb=_0x13165e[_0x221f('0x22')][_0x221f('0x77')](_0x3bd842=>J(_0x3bd842,_0x14c8d4));return new(B[_0x13165e['type']]||_0x246ad3)(_0x238fed,_0x13165e[_0x221f('0x64')],_0x13165e['attributes'],_0x448bdb);}}class H{constructor(_0xc5e01c){this[_0x221f('0x53')]=_0xc5e01c,this[_0x221f('0x7c')]=new Map(),this[_0x221f('0xf2')]=-0x1,this[_0x221f('0x31')]=-0x1,this[_0x221f('0x78')]=new Map(),this[_0x221f('0xf9')]=new Map(),this[_0x221f('0x61')]=new Map(),this[_0x221f('0xeb')]=new Map(),this[_0x221f('0xa8')]=new Map(),this[_0x221f('0xf1')]=new Map(),this[_0x221f('0x66')]=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this[_0x221f('0x84')]=new Map(),this[_0x221f('0x8')]=0x1;}[_0x221f('0x4a')](_0xc80dce){this[_0x221f('0x4f')]=_0xc80dce;const _0x26eb1e=new Map(),_0x1bc231=new Map(),_0x5a5998=this[_0x221f('0x53')][_0x221f('0xf3')][_0x221f('0xb')][_0x221f('0x108')][_0x221f('0x77')](_0x1ba563=>_0x1ba563[_0x221f('0x83')]);for(const _0x2b27d0 of _0x5a5998){const _0x1672a8=this['editor'][_0x221f('0xf3')][_0x221f('0xb')]['getRoot'](_0x2b27d0),_0x5f4f64=q(_0x1672a8);_0x26eb1e[_0x221f('0xb3')](_0x2b27d0,_0x5f4f64),_0x1bc231[_0x221f('0xb3')](_0x2b27d0,Object[_0x221f('0x80')](_0x1672a8[_0x221f('0x69')]()));}const _0x1834b8=Array[_0x221f('0x5f')](this['editor'][_0x221f('0xf3')][_0x221f('0x4')])[_0x221f('0x77')](_0x29dc70=>[_0x29dc70[_0x221f('0x64')],_0x29dc70[_0x221f('0x65')]()]),_0x3bdbd6=this[_0x221f('0x4f')][_0x221f('0x3a')];this[_0x221f('0xdf')](_0x3bdbd6,_0x26eb1e,_0x1834b8,_0x1bc231),this[_0x221f('0x2b')]=this['_revisionId'];const _0x235761=new Map(),_0x4fccdf=new Map();for(const _0x2ca135 of _0x5a5998){const _0x33761b=G(_0x2ca135);_0x235761[_0x221f('0xb3')](_0x2ca135,_0x33761b),_0x4fccdf[_0x221f('0xb3')](_0x2ca135,{});}this[_0x221f('0xdf')](Number[_0x221f('0x3e')],_0x235761,[],_0x4fccdf);}[_0x221f('0x99')](_0xfc64ae,_0x50bf28){if(this[_0x221f('0xf2')]===_0xfc64ae&&this['_lastTo']<=_0x50bf28)this[_0x221f('0x7c')][_0x221f('0x3b')]>0x1&&this[_0x221f('0x60')](this['_lastTo']),this['_applyOperations'](this[_0x221f('0x31')],_0x50bf28,!0x0);else{if(!this['_savedMetaData'][_0x221f('0xad')](_0xfc64ae)){const _0x2c2609=this[_0x221f('0x8b')](_0xfc64ae);this[_0x221f('0x1a')](_0x2c2609,_0xfc64ae,!0x1);}this[_0x221f('0x1a')](_0xfc64ae,_0x50bf28,!0x0);}return this[_0x221f('0xf2')]=_0xfc64ae,this[_0x221f('0x31')]=_0x50bf28,this['_getState']();}[_0x221f('0x8c')](_0x1a2209){this[_0x221f('0xd2')](),this[_0x221f('0xf2')]=_0x1a2209['fromVersion'],this[_0x221f('0x31')]=_0x1a2209[_0x221f('0x92')];for(const _0x46e262 in _0x1a2209['diffData']){const _0x51f4a5=_0x1a2209[_0x221f('0x44')][_0x46e262][_0x221f('0xf')],_0x46f032=_0x1be9b3(_0x1a2209['diffData'][_0x46e262][_0x221f('0xaa')])||{},_0x29b4af=this[_0x221f('0xb4')](_0x1a2209['diffData'][_0x46e262][_0x221f('0x32')]);_0x29b4af[_0x221f('0x83')]=_0x46e262,_0x29b4af[_0x221f('0xc2')]=!_0x51f4a5||!_0x51f4a5[_0x221f('0xda')],_0x29b4af['isAttached']=()=>_0x29b4af[_0x221f('0xc2')],this[_0x221f('0xeb')]['set'](_0x46e262,_0x29b4af),this['_baseRootsAttributes'][_0x221f('0xb3')](_0x46e262,_0x46f032),_0x51f4a5&&this['_touchedRoots'][_0x221f('0xb3')](_0x46e262,_0x51f4a5);const _0x184cee=this[_0x221f('0x9f')](_0x29b4af);this[_0x221f('0x66')]['set'](_0x46e262,_0x184cee);for(const [_0x31c117,_0x1b7eeb]of _0x29b4af[_0x221f('0x4')]){if(!_0x31c117[_0x221f('0xbb')](_0x221f('0xc6')))continue;const _0xd73305=_0x31c117['split'](':')[0x2];for(const _0x35c442 of _0x1b7eeb[_0x221f('0x79')]({'singleCharacters':!0x0})){const _0x437354=this[_0x221f('0x6a')](_0x35c442),_0x34ebe7=_0x221f('0xc9')==_0x35c442['type']?_0x35c442[_0x221f('0x11')][_0x221f('0x75')]['slice'](0x0,-0x1):_0x35c442[_0x221f('0x11')][_0x221f('0x75')],_0x23da99=_0x184cee[_0x221f('0xa6')](_0x34ebe7)[_0x221f('0x6c')](_0x437354);this[_0x221f('0xba')][_0x221f('0xb3')](_0x23da99,{'userId':_0xd73305});}}}this[_0x221f('0x2b')]=this[_0x221f('0x8')];const _0x3379dd=[...Array(this['_revisionId'])[_0x221f('0x6d')]()][_0x221f('0x4b')](0x1)[_0x221f('0x8d')](_0x1e75f4=>!this[_0x221f('0xba')][_0x221f('0xad')](_0x1e75f4));let _0x337cb6=0x0;const _0x3f2a54=new Map();for(const _0x38a311 in _0x1a2209['diffData']){const _0x356fb3=_0x1a2209['diffData'][_0x38a311][_0x221f('0xf')],_0x3bc44e=_0x1be9b3(_0x1a2209[_0x221f('0x44')][_0x38a311]['attributesAfter'])||{},_0x186752=this['_makeModelFromViewString'](_0x1a2209[_0x221f('0x44')][_0x38a311][_0x221f('0x7d')]);_0x186752['rootName']=_0x38a311,_0x186752['_isAttached']=!_0x356fb3||_0x356fb3[_0x221f('0xda')],_0x186752[_0x221f('0xda')]=()=>_0x186752[_0x221f('0xc2')],this[_0x221f('0xf9')][_0x221f('0xb3')](_0x38a311,_0x186752),this[_0x221f('0x61')][_0x221f('0xb3')](_0x38a311,_0x3bc44e);const _0x3fa89d=this['_makeIdsRoot'](_0x186752,Number[_0x221f('0x3e')]);this[_0x221f('0xf1')][_0x221f('0xb3')](_0x38a311,_0x3fa89d),_0x3f2a54['set'](_0x38a311,_0x186752[_0x221f('0xda')]()?_0x3bc44e:{});for(const [_0x401a52,_0x38bd8a]of _0x186752['markers']){if(!_0x401a52[_0x221f('0xbb')](_0x221f('0xc6')))continue;const _0x41650d=_0x401a52[_0x221f('0xfe')](':')[0x2];for(const _0x1d919e of _0x38bd8a[_0x221f('0x79')]({'singleCharacters':!0x0})){const _0x30f618=this['_getVidAttributeName'](_0x1d919e),_0x51e67e=this[_0x221f('0x8')]++,_0x23f2e5=_0x221f('0xc9')==_0x1d919e[_0x221f('0x5d')]?_0x1d919e[_0x221f('0x11')][_0x221f('0x75')][_0x221f('0x4b')](0x0,-0x1):_0x1d919e[_0x221f('0x11')]['path'];_0x3fa89d['getNodeByPath'](_0x23f2e5)[_0x221f('0xe7')](_0x30f618,_0x51e67e),this[_0x221f('0xba')][_0x221f('0xb3')](_0x51e67e,{'userId':_0x41650d});}}for(const _0x2f7a87 of this[_0x221f('0x53')][_0x221f('0xf3')][_0x221f('0xd9')](_0x186752)['getWalker']({'singleCharacters':!0x0})){const _0x95aa27=this[_0x221f('0x6a')](_0x2f7a87),_0x16f05c=_0x221f('0xc9')==_0x2f7a87[_0x221f('0x5d')]?_0x2f7a87['previousPosition']['path'][_0x221f('0x4b')](0x0,-0x1):_0x2f7a87[_0x221f('0x11')][_0x221f('0x75')],_0x438b66=_0x3fa89d[_0x221f('0xa6')](_0x16f05c);_0x438b66[_0x221f('0x6c')](_0x95aa27)>0x0||_0x438b66[_0x221f('0xe7')](_0x95aa27,_0x3379dd[_0x337cb6++]);}for(const [_0x14723d,_0x325f19]of _0x186752['markers'])_0x14723d[_0x221f('0xbb')](_0x221f('0xc6'))||this[_0x221f('0x78')]['set'](_0x14723d,_0x325f19);}const _0x2b859a=G(_0x221f('0x52'));this[_0x221f('0xeb')][_0x221f('0xb3')]('$graveyard',_0x2b859a),this[_0x221f('0x66')][_0x221f('0xb3')](_0x221f('0x52'),this[_0x221f('0x9f')](_0x2b859a,0x1));const _0x212ff6=G('$graveyard');this[_0x221f('0xf9')][_0x221f('0xb3')](_0x221f('0x52'),_0x212ff6),this[_0x221f('0xf1')][_0x221f('0xb3')](_0x221f('0x52'),this[_0x221f('0x9f')](_0x212ff6,0x1));const _0x16880f=Array[_0x221f('0x5f')](this[_0x221f('0xf9')])[_0x221f('0x77')](([_0x32723d,_0x29f5a2])=>[_0x32723d,q(_0x29f5a2)]);this['_saveMetaData'](this[_0x221f('0x31')],_0x16880f,this[_0x221f('0x78')],_0x3f2a54);}[_0x221f('0xb4')](_0x6cb1c3){const _0x285fab=JSON[_0x221f('0x1d')](_0x6cb1c3),_0x1319a7=this[_0x221f('0x53')][_0x221f('0xa')][_0x221f('0xb0')][_0x221f('0xb')],_0x3e087e=new _0x33d446(_0x1319a7,_0x285fab['map'](_0x5ae882=>J(_0x5ae882,this[_0x221f('0x53')])));return this['editor'][_0x221f('0xc3')][_0x221f('0xe4')](_0x3e087e);}[_0x221f('0xdf')](_0x34b9cc,_0x43b5ec,_0x42ebf5,_0x1b98d7){const _0x2cc0c1=new Map(_0x43b5ec),_0x33be48=new Map(_0x1be9b3(_0x1b98d7)),_0x2a325e=new Map();for(const [_0x2f46b9,_0xbff126]of _0x42ebf5)_0x2a325e['set'](_0x2f46b9,{'start':_0xbff126[_0x221f('0xf4')][_0x221f('0x90')](),'end':_0xbff126[_0x221f('0x39')][_0x221f('0x90')](),'rootName':_0xbff126['root'][_0x221f('0x83')]});this['_savedMetaData'][_0x221f('0xb3')](_0x34b9cc,{'roots':_0x2cc0c1,'markers':_0x2a325e,'rootsAttributes':_0x33be48});}[_0x221f('0x60')](_0x3f7f7b){this[_0x221f('0x7c')][_0x221f('0x40')](_0x3f7f7b);}[_0x221f('0x104')](){this[_0x221f('0xd2')](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this[_0x221f('0x7c')][_0x221f('0xcb')](),this[_0x221f('0x4a')](this['source']);}[_0x221f('0xd2')](){this[_0x221f('0xba')][_0x221f('0xcb')](),this[_0x221f('0xb7')]['clear'](),this['_touchedRoots'][_0x221f('0xcb')](),this[_0x221f('0xf9')]['clear'](),this[_0x221f('0x61')][_0x221f('0xcb')](),this[_0x221f('0xeb')]['clear'](),this[_0x221f('0xa8')]['clear'](),this[_0x221f('0xf1')][_0x221f('0xcb')](),this[_0x221f('0x66')][_0x221f('0xcb')](),this['_markers'][_0x221f('0xcb')](),this[_0x221f('0x8')]=0x1,this[_0x221f('0x2b')]=this[_0x221f('0x8')];}['_makeIdsRoot'](_0x5a39da,_0x1db6e5=null){let _0x42479d=null;_0x5a39da['is'](_0x221f('0x24'))||(_0x42479d=new _0x26142d(_0x5a39da[_0x221f('0x64')],{'vid_start':null===_0x1db6e5?this[_0x221f('0x8')]++:_0x1db6e5++}));const _0x5a688e=[];for(const _0x5bf838 of _0x5a39da[_0x221f('0x45')]())if(_0x5bf838['is'](_0x221f('0xf8'))){_0x5a688e['push'](this['_makeIdsRoot'](_0x5bf838,_0x1db6e5));const _0x26c162=_0x5a688e[_0x5a688e[_0x221f('0x4c')]-0x1];null!==_0x1db6e5&&(_0x1db6e5=_0x26c162['is'](_0x221f('0xf8'),_0x221f('0xc0'))?_0x26c162[_0x221f('0x6c')](_0x221f('0x81'))+0x1:_0x26c162[_0x221f('0x6c')](_0x221f('0xfa'))+0x1);}else for(let _0x3bd14a=0x0;_0x3bd14a<_0x5bf838[_0x221f('0xea')];_0x3bd14a++)_0x5a688e[_0x221f('0x33')](new _0x26142d(_0x221f('0xc0'),{'vid':null===_0x1db6e5?this[_0x221f('0x8')]++:_0x1db6e5++}));if(_0x5a39da['is'](_0x221f('0x24'))){const _0x197949=G(_0x5a39da['rootName']);return _0x197949[_0x221f('0x18')](0x0,_0x5a688e),_0x197949;}return _0x42479d[_0x221f('0xe7')](_0x221f('0xfa'),null===_0x1db6e5?this[_0x221f('0x8')]++:_0x1db6e5++),_0x42479d[_0x221f('0x18')](0x0,_0x5a688e),_0x42479d;}[_0x221f('0x1a')](_0x17859e,_0x231a09,_0x123562){this[_0x221f('0xd2')]();const {roots:_0x3e6408,markers:_0x5895e9,rootsAttributes:_0xa58525}=this[_0x221f('0x7c')][_0x221f('0x6e')](_0x17859e);this[_0x221f('0xeb')]=new Map(_0x3e6408),this[_0x221f('0xa8')]=new Map(_0x1be9b3(_0xa58525));for(const [_0x46386d,_0x91bc4e]of this[_0x221f('0xeb')])if(_0x221f('0x52')!==_0x46386d&&(this[_0x221f('0xf9')]['set'](_0x46386d,q(_0x91bc4e)),this[_0x221f('0x61')]=new Map(_0x1be9b3(_0xa58525)),_0x123562)){const _0x4275b6=this[_0x221f('0x8')];this['_idsRoots']['set'](_0x46386d,this[_0x221f('0x9f')](_0x91bc4e)),this[_0x221f('0x66')][_0x221f('0xb3')](_0x46386d,this[_0x221f('0x9f')](_0x91bc4e,_0x4275b6));}this[_0x221f('0x2b')]=this[_0x221f('0x8')],this[_0x221f('0xf9')][_0x221f('0xb3')](_0x221f('0x52'),q(this[_0x221f('0xeb')][_0x221f('0x6e')](_0x221f('0x52')))),_0x123562&&this['_idsRoots']['set'](_0x221f('0x52'),this['_makeIdsRoot'](this[_0x221f('0xeb')]['get'](_0x221f('0x52'))));for(const [_0x419505,_0x5257ed]of _0x5895e9){const _0x454a1d=this['_baseRoots'][_0x221f('0x6e')](_0x5257ed[_0x221f('0x83')]),_0x3dc4f7=this['_diffRoots'][_0x221f('0x6e')](_0x5257ed[_0x221f('0x83')]),_0x4f2b40=new _0x3ef9e0(this['_fixPosition'](_0x5257ed['start'],_0x454a1d),this[_0x221f('0x1b')](_0x5257ed['end'],_0x454a1d)),_0x37f87d=this['_fixRange'](_0x4f2b40,_0x3dc4f7);_0x454a1d[_0x221f('0x4')][_0x221f('0xb3')](_0x419505,_0x4f2b40),this[_0x221f('0x78')][_0x221f('0xb3')](_0x419505,_0x37f87d);}this[_0x221f('0xef')](_0x17859e,_0x231a09,_0x123562);}[_0x221f('0xef')](_0x38fee6,_0x8f297b,_0x16e84e){for(const _0x49072c of this[_0x221f('0x4f')][_0x221f('0xf7')](_0x38fee6,_0x8f297b))this[_0x221f('0x68')](_0x49072c,_0x16e84e);for(const _0x3ea3f1 of this[_0x221f('0xf9')]['values']())_0x3ea3f1['markers'][_0x221f('0xcb')]();for(const [_0x4ecb41,_0x5f15b6]of this[_0x221f('0x78')]){this[_0x221f('0xf9')][_0x221f('0x6e')](_0x5f15b6[_0x221f('0x55')][_0x221f('0x83')])[_0x221f('0x4')][_0x221f('0xb3')](_0x4ecb41,_0x5f15b6[_0x221f('0x90')]());}const _0x1b13f2=new Map(),_0x2f8960=new Map();for(const [_0x7cd269,_0x4c2c9b]of this[_0x221f('0xf9')])_0x1b13f2[_0x221f('0xb3')](_0x7cd269,q(_0x4c2c9b)),_0x2f8960[_0x221f('0xb3')](_0x7cd269,this[_0x221f('0x61')]['get'](_0x7cd269));this['_saveMetaData'](_0x8f297b,_0x1b13f2,this['_markers'],_0x2f8960);}[_0x221f('0x8b')](_0x870497){const _0x4a1b19=Array[_0x221f('0x5f')](this['_savedMetaData'][_0x221f('0x6d')]());_0x4a1b19['sort']((_0x1b3c53,_0x546847)=>_0x1b3c53-_0x546847),_0x4a1b19['reverse']();for(const _0x9db78e of _0x4a1b19)if(_0x9db78e<_0x870497)return _0x9db78e;return Number['NEGATIVE_INFINITY'];}[_0x221f('0xc7')](_0x4a95f1,_0x379828){const _0x4024e1=Array['from'](_0x379828[_0x221f('0x4')])[_0x221f('0x77')](([_0x5c9a6b,_0x24244b])=>[_0x5c9a6b,this[_0x221f('0xd6')](_0x24244b,_0x4a95f1)]);_0x4a95f1['markers']=new Map(_0x4024e1);}['_transformMarkers'](_0x1c66e8){for(const _0x292472 of this[_0x221f('0x78')][_0x221f('0xc')]()){const _0xb15157=_0x292472[_0x221f('0xa3')](_0x1c66e8),_0x5876a9=_0x3ef9e0['_createFromRanges'](_0xb15157);_0x292472[_0x221f('0xf4')]=_0x5876a9['start'],_0x292472['end']=_0x5876a9['end'];}}[_0x221f('0x68')](_0x1bd6f5,_0xf9c97){if(_0x221f('0x2f')==_0x1bd6f5[_0x221f('0x5d')]||_0x221f('0x6f')==_0x1bd6f5[_0x221f('0x5d')])return void this[_0x221f('0xdc')](_0x1bd6f5,_0xf9c97);if(_0x221f('0xe5')==_0x1bd6f5[_0x221f('0x5d')]){const _0x48749f=_0x1bd6f5['position']['root'][_0x221f('0x83')];this[_0x221f('0xf9')]['has'](_0x48749f)||(this['_diffRoots'][_0x221f('0xb3')](_0x48749f,G(_0x48749f,!0x0)),this[_0x221f('0x61')][_0x221f('0xb3')](_0x48749f,{}),_0xf9c97&&this[_0x221f('0xf1')][_0x221f('0xb3')](_0x48749f,G(_0x48749f,!0x0)));}else{if(_0x221f('0x4d')==_0x1bd6f5[_0x221f('0x5d')]||_0x221f('0xb9')==_0x1bd6f5[_0x221f('0x5d')]||'changeRootAttribute'==_0x1bd6f5[_0x221f('0x5d')])return void this[_0x221f('0x19')](_0x1bd6f5);}const _0x3517b5=this[_0x221f('0xd3')](_0x1bd6f5,this[_0x221f('0xf9')]);if(_0x221f('0xc4')!==_0x1bd6f5[_0x221f('0x5d')]&&(_0x3517b5['_execute'](),this[_0x221f('0xd5')](_0x3517b5)),_0xf9c97)switch(_0x3517b5[_0x221f('0x5d')]){case _0x221f('0xe5'):this['_handleInsertOperation'](_0x1bd6f5);break;case _0x221f('0xcc'):case _0x221f('0x100'):case _0x221f('0xdd'):this[_0x221f('0x9')](_0x1bd6f5);break;case _0x221f('0x74'):this['_handleMergeOperation'](_0x1bd6f5);break;case'split':this[_0x221f('0x38')](_0x1bd6f5);break;case _0x221f('0xc4'):this['_handleMarkerOperation'](_0x1bd6f5);}}[_0x221f('0xd3')](_0x1eb48b,_0x109c36){const _0x24d26b=_0x1eb48b[_0x221f('0x90')]();return _0x24d26b[_0x221f('0x96')]=_0x1eb48b[_0x221f('0x96')],this[_0x221f('0x1f')](_0x24d26b,_0x109c36),_0x24d26b;}['_getBaseVids'](_0x53bccf){return _0x53bccf[_0x221f('0x77')](_0x4e6b76=>{const _0x46c36f=this['_getVidAttributeName'](_0x4e6b76);return Number(_0x4e6b76[_0x221f('0x9a')][_0x221f('0x6c')](_0x46c36f));});}[_0x221f('0x7e')](_0xa86e55,_0x142ea1){if(_0xa86e55['is'](_0x221f('0xf8'),'$text'))_0x142ea1[_0x221f('0x33')]({'item':_0xa86e55,'type':_0x221f('0xe1')});else{_0xa86e55['is'](_0x221f('0xf8'))&&_0x142ea1[_0x221f('0x33')]({'item':_0xa86e55,'type':'elementStart'});for(const _0x2221a1 of _0xa86e55[_0x221f('0x45')]())this[_0x221f('0x7e')](_0x2221a1,_0x142ea1);_0xa86e55['is'](_0x221f('0xf8'))&&_0x142ea1['push']({'item':_0xa86e55,'type':_0x221f('0xc9')});}return _0x142ea1;}[_0x221f('0x29')](){const _0x24e594=new Map(this[_0x221f('0xba')]),_0x143de2=new Map(_0x24e594),_0x4936f5=new Map(),_0x5960a3={'insertions':{},'deletions':{}},_0x38fca8={'insertions':{},'deletions':{}},_0x206ff6=new Map(),_0x58d7a3=new Set([...this['_baseRoots'][_0x221f('0x6d')](),...this[_0x221f('0xf9')][_0x221f('0x6d')]()]);_0x58d7a3[_0x221f('0x40')]('$graveyard');for(const _0x36699b of _0x58d7a3){const _0x1f84bf=this[_0x221f('0xf9')][_0x221f('0x6e')](_0x36699b)||G(_0x36699b,!0x1),_0x3913c9=this[_0x221f('0xeb')][_0x221f('0x6e')](_0x36699b)||G(_0x36699b,!0x1);_0x1f84bf[_0x221f('0xda')]()||_0x3913c9[_0x221f('0xda')]()?(_0x5960a3[_0x221f('0x7d')][_0x36699b]=q(_0x1f84bf),_0x5960a3[_0x221f('0x32')][_0x36699b]=q(_0x3913c9),this[_0x221f('0xc7')](_0x5960a3[_0x221f('0x32')][_0x36699b],_0x3913c9),this[_0x221f('0xc7')](_0x5960a3[_0x221f('0x7d')][_0x36699b],_0x1f84bf),_0x38fca8['insertions'][_0x36699b]=this[_0x221f('0x7e')](this[_0x221f('0xf1')]['get'](_0x36699b),[]),_0x38fca8[_0x221f('0x32')][_0x36699b]=this[_0x221f('0x7e')](this['_baseIdsRoots'][_0x221f('0x6e')](_0x36699b)||G(_0x36699b,!0x1),[])):_0x58d7a3[_0x221f('0x40')](_0x36699b);}for(const _0x2f0351 of _0x58d7a3){const _0x4e2bd9=_0x38fca8[_0x221f('0x7d')][_0x2f0351];for(const _0x54d594 of _0x4e2bd9){const _0x3a69b1=this[_0x221f('0x6a')](_0x54d594),_0x285ae2=_0x54d594[_0x221f('0x9a')][_0x221f('0x6c')](_0x3a69b1);_0x143de2[_0x221f('0x40')](_0x285ae2),_0x285ae2>=this[_0x221f('0x2b')]&&_0x4936f5[_0x221f('0xb3')](_0x285ae2,_0x24e594[_0x221f('0x6e')](_0x285ae2));}}for(const _0x59e016 of _0x58d7a3){const _0x23a986=_0x38fca8[_0x221f('0x7d')][_0x59e016],_0x59a83b=this['_getBaseVids'](_0x38fca8[_0x221f('0x32')][_0x59e016]);let _0x4a2894=0x0;for(const _0x265c4e of _0x23a986){const _0x18e639=this[_0x221f('0x6a')](_0x265c4e),_0x501fe4=_0x265c4e[_0x221f('0x9a')][_0x221f('0x6c')](_0x18e639);if(!_0x4936f5[_0x221f('0xad')](_0x501fe4)&&!_0x206ff6[_0x221f('0xad')](_0x501fe4)){if(_0x143de2[_0x221f('0xad')](_0x501fe4))_0x4a2894++;else{if(_0x501fe4!=_0x59a83b[_0x4a2894]){const _0x51c522=_0x24e594[_0x221f('0x6e')](_0x501fe4)||_0x24e594['get'](_0x59a83b[_0x4a2894]);for(;_0x501fe4!=_0x59a83b[_0x4a2894];)_0x143de2[_0x221f('0xad')](_0x59a83b[_0x4a2894])||(_0x206ff6[_0x221f('0xb3')](_0x59a83b[_0x4a2894],_0x51c522),_0x24e594[_0x221f('0xb3')](_0x59a83b[_0x4a2894],_0x51c522)),_0x4a2894++;}_0x4a2894++;}}}}for(const _0x5a975c of _0x58d7a3){const _0x17f505=_0x38fca8[_0x221f('0x7d')][_0x5a975c];for(const _0x17f247 of _0x17f505){const _0x1d5810=this[_0x221f('0x6a')](_0x17f247),_0x4fa24a=_0x17f247[_0x221f('0x9a')][_0x221f('0x6c')](_0x1d5810);if(_0x206ff6[_0x221f('0xad')](_0x4fa24a)){const _0x5e86c1=_0x206ff6['get'](_0x4fa24a);_0x143de2[_0x221f('0xad')](_0x4fa24a)||_0x143de2[_0x221f('0xb3')](_0x4fa24a,{..._0x5e86c1}),_0x4936f5[_0x221f('0xb3')](_0x4fa24a,{..._0x5e86c1});}}}for(const _0x20e213 of _0x143de2[_0x221f('0x6d')]())_0x20e213>=this[_0x221f('0x2b')]&&_0x143de2[_0x221f('0x40')](_0x20e213);const _0xb8d8d=new Map();for(const _0x548e8e of _0x58d7a3){let _0x5a2497=_0x38fca8[_0x221f('0x7d')][_0x548e8e];for(const _0x2d8e6e of _0x5a2497)if(_0x2d8e6e[_0x221f('0x9a')]['is'](_0x221f('0xf8'),_0x221f('0xcd'))){const _0x464e43=this[_0x221f('0x6a')](_0x2d8e6e),_0x2c00c8=_0x2d8e6e[_0x221f('0x9a')][_0x221f('0x6c')](_0x464e43);if(_0x4936f5[_0x221f('0xad')](_0x2c00c8)){const _0xbc7b8b=_0x2d8e6e['item']['parent']['parent'][_0x221f('0x6c')](_0x221f('0x34')),_0x304e5f=_0xb8d8d['get'](_0xbc7b8b)||new Set();_0x304e5f[_0x221f('0xd')](_0x4936f5[_0x221f('0x6e')](_0x2c00c8)[_0x221f('0x91')]),_0xb8d8d['set'](_0xbc7b8b,_0x304e5f);}}_0x5a2497=_0x38fca8[_0x221f('0x32')][_0x548e8e];for(const _0x8b089e of _0x5a2497)if(_0x8b089e[_0x221f('0x9a')]['is'](_0x221f('0xf8'),_0x221f('0xcd'))){const _0x5282b4=this[_0x221f('0x6a')](_0x8b089e),_0x5d9b13=_0x8b089e[_0x221f('0x9a')][_0x221f('0x6c')](_0x5282b4);if(_0x143de2[_0x221f('0xad')](_0x5d9b13)){const _0x3c1850=_0x8b089e[_0x221f('0x9a')][_0x221f('0xb8')][_0x221f('0xb8')]['getAttribute'](_0x221f('0x34')),_0x2d3bd8=_0xb8d8d[_0x221f('0x6e')](_0x3c1850)||new Set();_0x2d3bd8[_0x221f('0xd')](_0x143de2['get'](_0x5d9b13)[_0x221f('0x91')]),_0xb8d8d[_0x221f('0xb3')](_0x3c1850,_0x2d3bd8);}}for(const _0x61549 of _0xb8d8d['keys']())(_0x4936f5[_0x221f('0xad')](_0x61549)||_0x143de2[_0x221f('0xad')](_0x61549))&&_0xb8d8d['delete'](_0x61549);}for(const _0x3f4912 of _0x58d7a3){const _0x139900=_0x38fca8['insertions'][_0x3f4912];let _0x380781=null,_0x52b6be=null;for(const _0x46e36d of _0x139900){const _0x66219c=this[_0x221f('0x6a')](_0x46e36d),_0x3107ae=_0x46e36d['item'][_0x221f('0x6c')](_0x66219c),_0x43267d=_0xb8d8d['get'](_0x3107ae);_0x43267d&&_0x221f('0xb2')==_0x46e36d[_0x221f('0x5d')]&&(_0x380781=Array['from'](_0x43267d)[0x0],_0x52b6be=_0x46e36d[_0x221f('0x9a')][_0x221f('0x6c')](_0x221f('0xfa'))),_0x380781&&(_0x143de2[_0x221f('0xb3')](_0x3107ae,{'userId':_0x380781}),_0x4936f5[_0x221f('0xb3')](_0x3107ae,{'userId':_0x380781})),_0x3107ae==_0x52b6be&&(_0x380781=null,_0x52b6be=null);}}const _0x1ab04a={},_0x1a3ef5=new Set();for(const _0x2c80d8 of _0x58d7a3){const _0x2731f6=_0x5960a3['deletions'][_0x2c80d8],_0x133f15=_0x5960a3[_0x221f('0x7d')][_0x2c80d8];for(const {userId:_0x465938}of this['_touchedMarkers'][_0x221f('0xc')]())null!==_0x465938&&_0x1a3ef5[_0x221f('0xd')](_0x465938);for(const {userId:_0x5130e0}of this[_0x221f('0x84')]['values']())null!==_0x5130e0&&_0x1a3ef5['add'](_0x5130e0);this[_0x221f('0x5b')](_0x133f15,_0x38fca8[_0x221f('0x7d')][_0x2c80d8],_0x4936f5,_0x221f('0x57'),_0x1a3ef5),this[_0x221f('0x5b')](_0x2731f6,_0x38fca8[_0x221f('0x32')][_0x2c80d8],_0x143de2,'deletion',_0x1a3ef5),_0x1ab04a[_0x2c80d8]={'insertions':this[_0x221f('0x3d')](_0x133f15),'deletions':this[_0x221f('0x3d')](_0x2731f6),'attachChange':this[_0x221f('0x84')][_0x221f('0x6e')](_0x2c80d8)||null,'attributesBefore':_0x1be9b3(this['_baseRootsAttributes']['get'](_0x2c80d8))||{},'attributesAfter':_0x1be9b3(this[_0x221f('0x61')][_0x221f('0x6e')](_0x2c80d8))};}return{'diffData':_0x1ab04a,'authorsIds':Array[_0x221f('0x5f')](_0x1a3ef5)};}[_0x221f('0xa1')](_0x10614c){for(const [,_0x196299]of _0x10614c[_0x221f('0x4')]){const _0x32aa37=_0x196299[_0x221f('0xf4')][_0x221f('0x21')]()[_0x221f('0x8d')](_0x596882=>_0x221f('0xcd')==_0x596882['name']);for(const _0x3b48c9 of _0x32aa37)0x1==_0x3b48c9[_0x221f('0x25')]&&_0x3b48c9[_0x221f('0xb1')](0x0)['is'](_0x221f('0xf8'),_0x221f('0x27'))&&_0x3b48c9['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}[_0x221f('0x3d')](_0x625b60){this[_0x221f('0xa1')](_0x625b60);const _0x30e7d7=this[_0x221f('0x53')][_0x221f('0xc3')][_0x221f('0xc5')](_0x625b60,{}),_0x5bd934=Array['from'](_0x30e7d7[_0x221f('0x45')]())['map'](_0x489750=>this['_getViewJson'](_0x489750));return JSON[_0x221f('0x46')](_0x5bd934);}[_0x221f('0x17')](_0x5272be){if(_0x5272be['is'](_0x221f('0xc0')))return _0x5272be[_0x221f('0xc3')];{const _0x4689ef=_0x5272be;return{'type':Object['keys'](B)[_0x221f('0xe9')](_0x2b147a=>_0x5272be instanceof B[_0x2b147a]),'name':_0x4689ef[_0x221f('0x64')],'attributes':Array[_0x221f('0x5f')](_0x4689ef[_0x221f('0x69')]()),'children':Array[_0x221f('0x5f')](_0x4689ef[_0x221f('0x45')]())['map'](_0x391c3a=>this[_0x221f('0x17')](_0x391c3a))};}}[_0x221f('0x5b')](_0x18c608,_0x534aef,_0x39df6b,_0x38e01c,_0x4d8580){let _0x4774ad=null,_0x1be353=null,_0x3f2fbd=0x0;const _0x4bf5dd=this[_0x221f('0x53')][_0x221f('0xf3')];for(let _0x2a0e5=0x0;_0x2a0e5<_0x534aef[_0x221f('0x4c')];_0x2a0e5++){const _0x5215ce=this[_0x221f('0x6a')](_0x534aef[_0x2a0e5]),_0x261f8a=_0x534aef[_0x2a0e5][_0x221f('0x9a')][_0x221f('0x6c')](_0x5215ce),_0x39a165=_0x39df6b[_0x221f('0x6e')](_0x261f8a),_0x482783=_0x2a0e5==_0x534aef[_0x221f('0x4c')]-0x1;(!_0x4774ad&&_0x39a165&&(_0x4774ad=_0x39a165,_0x1be353=_0x534aef[_0x2a0e5]),_0x4774ad&&(!_0x39a165||_0x39a165['userId']!=_0x4774ad[_0x221f('0x91')]))&&(_0x5c650f(_0x39a165,L(_0x1be353,_0x18c608,_0x4bf5dd),L(_0x534aef[_0x2a0e5],_0x18c608,_0x4bf5dd)),_0x4774ad=_0x39a165||null,_0x1be353=_0x39a165?_0x534aef[_0x2a0e5]:null),_0x4774ad&&_0x482783&&_0x5c650f(_0x39a165,L(_0x1be353,_0x18c608,_0x4bf5dd),W(_0x534aef[_0x2a0e5],_0x18c608,_0x4bf5dd));}function _0x5c650f(_0xe6d7d4,_0x507300,_0x5454ea){const _0x41eed6=_0x4774ad[_0x221f('0x91')],_0x5362a3='revision:'+_0x38e01c+':'+_0x41eed6+':'+_0x3f2fbd++,_0x1fe06a=_0x4bf5dd['createRange'](_0x507300,_0x5454ea);_0x18c608[_0x221f('0x4')][_0x221f('0xb3')](_0x5362a3,_0x1fe06a),null!==_0x41eed6&&_0x4d8580[_0x221f('0xd')](_0x41eed6);}}[_0x221f('0x6a')](_0x4187a0){switch(_0x4187a0[_0x221f('0x5d')]){case'elementStart':return _0x221f('0x34');case'elementEnd':return _0x221f('0xfa');default:return _0x221f('0x81');}}['_fixOperation'](_0x40d8bf,_0x47ff01){_0x40d8bf[_0x221f('0x103')]=null;for(const _0x507d8f in _0x40d8bf){const _0x5a508a=_0x40d8bf[_0x507d8f];if(_0x5a508a instanceof _0x57d853){const _0x519bc7=_0x47ff01[_0x221f('0x6e')](_0x5a508a['root'][_0x221f('0x83')]);_0x40d8bf[_0x507d8f]=this[_0x221f('0x1b')](_0x5a508a,_0x519bc7);}if(_0x5a508a instanceof _0x3ef9e0){const _0x16806b=_0x47ff01[_0x221f('0x6e')](_0x5a508a['root'][_0x221f('0x83')]);_0x40d8bf[_0x507d8f]=this['_fixRange'](_0x5a508a,_0x16806b);}'root'===_0x507d8f&&(_0x40d8bf['root']=_0x47ff01[_0x221f('0x6e')](_0x40d8bf[_0x221f('0x55')][_0x221f('0x83')]));}}[_0x221f('0xd6')](_0x1295b7,_0x1d27a4){return this[_0x221f('0x53')][_0x221f('0xf3')][_0x221f('0xdb')](this['_fixPosition'](_0x1295b7[_0x221f('0xf4')],_0x1d27a4),this[_0x221f('0x1b')](_0x1295b7[_0x221f('0x39')],_0x1d27a4));}[_0x221f('0x1b')](_0xfc70d9,_0x4678a2){return this[_0x221f('0x53')][_0x221f('0xf3')][_0x221f('0xf0')](_0x4678a2,_0xfc70d9['path'],_0xfc70d9[_0x221f('0x35')]);}['_handleInsertOperation'](_0x175c71){const _0x497405=this[_0x221f('0xf1')][_0x221f('0x6e')](_0x175c71[_0x221f('0x89')][_0x221f('0x55')]['rootName']),_0x3e73f5=this[_0x221f('0x1b')](_0x175c71['position'],_0x497405),_0xddcf4b=null===_0x175c71[_0x221f('0x96')]?null:_0x175c71[_0x221f('0x96')]||this[_0x221f('0x53')][_0x221f('0x3f')][_0x221f('0x6e')](_0x221f('0xb6'))['me']['id'],_0x2e050b=_0x3e73f5[_0x221f('0xb8')],_0x31022d=this[_0x221f('0x8')],_0x54e196=[];for(const _0x4d482f of _0x175c71[_0x221f('0x106')])if(_0x4d482f['is'](_0x221f('0xf8')))_0x54e196['push'](this[_0x221f('0x9f')](_0x4d482f));else for(let _0x3d4431=0x0;_0x3d4431<_0x4d482f['offsetSize'];_0x3d4431++)_0x54e196[_0x221f('0x33')](new _0x26142d(_0x221f('0xc0'),{'vid':this[_0x221f('0x8')]++}));const _0x349a92=this['_revisionId'];for(let _0x55544e=_0x31022d;_0x55544e<_0x349a92;_0x55544e++)this[_0x221f('0xba')][_0x221f('0xb3')](_0x55544e,{'userId':_0xddcf4b});_0x2e050b[_0x221f('0x18')](_0x3e73f5[_0x221f('0xf5')],_0x54e196);}[_0x221f('0x9')](_0x4c5dff){(_0x4c5dff=this[_0x221f('0xd3')](_0x4c5dff,this[_0x221f('0xf1')]))[_0x221f('0x82')]();const _0x2944f8=null===_0x4c5dff['_authorId']?null:_0x4c5dff[_0x221f('0x96')]||this[_0x221f('0x53')][_0x221f('0x3f')][_0x221f('0x6e')](_0x221f('0xb6'))['me']['id'],_0x45019a=_0x4c5dff[_0x221f('0x7b')](),_0x3dd9d9=_0x45019a[_0x221f('0xb8')],_0x57c958=_0x45019a[_0x221f('0xf5')];!function _0x3ae27d(_0x4d1ee7,_0x2369b1,_0x2fc51f,_0x389f0a){for(let _0x3f2776=_0x2fc51f;_0x3f2776<_0x389f0a;_0x3f2776++){const _0x5303c6=_0x2369b1['getChild'](_0x3f2776);_0x5303c6['is']('element',_0x221f('0xc0'))?_0x4d1ee7[_0x221f('0xb3')](_0x5303c6[_0x221f('0x6c')](_0x221f('0x81')),{'userId':_0x2944f8}):(_0x4d1ee7[_0x221f('0xb3')](_0x5303c6['getAttribute']('vid_start'),{'userId':_0x2944f8}),_0x3ae27d(_0x4d1ee7,_0x5303c6,0x0,_0x5303c6[_0x221f('0x25')]),_0x4d1ee7[_0x221f('0xb3')](_0x5303c6[_0x221f('0x6c')](_0x221f('0xfa')),{'userId':_0x2944f8}));}}(this[_0x221f('0xba')],_0x3dd9d9,_0x57c958,_0x57c958+_0x4c5dff[_0x221f('0x42')]);}['_handleMergeOperation'](_0x270f6b){const _0x1fd53c=null===(_0x270f6b=this[_0x221f('0xd3')](_0x270f6b,this[_0x221f('0xf1')]))[_0x221f('0x96')]?null:_0x270f6b[_0x221f('0x96')]||this['editor']['plugins'][_0x221f('0x6e')](_0x221f('0xb6'))['me']['id'],_0x3667cd=_0x270f6b[_0x221f('0x9b')][_0x221f('0xb8')],_0x2c6dfe=_0x270f6b[_0x221f('0xcf')]['parent'],_0x4761f8=_0x3667cd[_0x221f('0x6c')]('vid_end'),_0x38cdd5=_0x2c6dfe['getAttribute']('vid_start');_0x3667cd['_setAttribute'](_0x221f('0xfa'),_0x2c6dfe[_0x221f('0x6c')](_0x221f('0xfa'))),_0x2c6dfe[_0x221f('0xe7')](_0x221f('0xfa'),_0x4761f8),this[_0x221f('0xba')][_0x221f('0xb3')](_0x38cdd5,{'userId':_0x1fd53c}),this[_0x221f('0xba')][_0x221f('0xb3')](_0x4761f8,{'userId':_0x1fd53c}),_0x270f6b['_execute']();}[_0x221f('0x38')](_0x5af174){const _0x93850=null===(_0x5af174=this[_0x221f('0xd3')](_0x5af174,this['_idsRoots']))[_0x221f('0x96')]?null:_0x5af174['_authorId']||this[_0x221f('0x53')][_0x221f('0x3f')][_0x221f('0x6e')](_0x221f('0xb6'))['me']['id'],_0x54af79=_0x5af174['graveyardPosition'],_0x18508c=_0x5af174[_0x221f('0xd8')][_0x221f('0xb8')];_0x5af174[_0x221f('0x82')]();const _0x10c206=_0x18508c[_0x221f('0x6c')](_0x221f('0xfa')),_0x22b017=_0x5af174[_0x221f('0xd0')][_0x221f('0xca')];if(_0x54af79){const _0x1ad44f=_0x22b017[_0x221f('0x6c')](_0x221f('0xfa')),_0x23e93d=_0x18508c[_0x221f('0x6c')](_0x221f('0xfa'));_0x18508c[_0x221f('0xe7')](_0x221f('0xfa'),_0x1ad44f),_0x22b017[_0x221f('0xe7')]('vid_end',_0x23e93d),this[_0x221f('0xba')][_0x221f('0xb3')](_0x18508c[_0x221f('0x6c')](_0x221f('0xfa')),{'userId':_0x93850}),this['_touched'][_0x221f('0xb3')](_0x22b017[_0x221f('0x6c')]('vid_start'),{'userId':_0x93850});}else{const _0x551c7b=this['_revisionId']++,_0x56e7ae=this[_0x221f('0x8')]++;_0x18508c['_setAttribute']('vid_end',_0x551c7b),_0x22b017[_0x221f('0xe7')](_0x221f('0x34'),_0x56e7ae),_0x22b017[_0x221f('0xe7')]('vid_end',_0x10c206),this[_0x221f('0xba')][_0x221f('0xb3')](_0x551c7b,{'userId':_0x93850}),this[_0x221f('0xba')][_0x221f('0xb3')](_0x56e7ae,{'userId':_0x93850});}}[_0x221f('0xd1')](_0x429b10){if(!_0x429b10[_0x221f('0x12')])return;const _0x175d2e=(_0x429b10=this[_0x221f('0xd3')](_0x429b10,this[_0x221f('0xf9')]))[_0x221f('0x51')]?_0x429b10['oldRange'][_0x221f('0x55')]:null,_0x18fd3c=_0x429b10[_0x221f('0x59')]?_0x429b10[_0x221f('0x59')]['root']:null;_0x175d2e&&this['_markers'][_0x221f('0x40')](_0x429b10[_0x221f('0x64')]),_0x18fd3c&&this[_0x221f('0x78')][_0x221f('0xb3')](_0x429b10[_0x221f('0x64')],_0x429b10[_0x221f('0x59')][_0x221f('0x90')]());const _0x303ba4=null===_0x429b10[_0x221f('0x96')]?null:_0x429b10[_0x221f('0x96')]||this[_0x221f('0x53')]['plugins']['get']('Users')['me']['id'],_0x3b5548=_0x429b10[_0x221f('0x64')];if(!this[_0x221f('0xb7')][_0x221f('0xad')](_0x3b5548))return void this[_0x221f('0xb7')]['set'](_0x3b5548,{'range':_0x429b10[_0x221f('0x51')],'userId':_0x303ba4});const _0x35454a=this[_0x221f('0xb7')][_0x221f('0x6e')](_0x3b5548),_0x42e600=_0x35454a[_0x221f('0x13')],_0x2a1470=_0x429b10[_0x221f('0x59')];null==_0x42e600&&null==_0x2a1470||_0x42e600&&_0x2a1470&&_0x42e600[_0x221f('0x37')](_0x2a1470)?this[_0x221f('0xb7')][_0x221f('0x40')](_0x429b10['name']):_0x35454a[_0x221f('0x91')]=_0x303ba4;}['_handleRootOperation'](_0x2c8b38,_0x1370dc){this['_diffRoots'][_0x221f('0xad')](_0x2c8b38[_0x221f('0x83')])?this[_0x221f('0xf9')][_0x221f('0x6e')](_0x2c8b38[_0x221f('0x83')])['_isAttached']=_0x2c8b38['isAdd']:(this[_0x221f('0xf9')][_0x221f('0xb3')](_0x2c8b38[_0x221f('0x83')],G(_0x2c8b38['rootName'],!0x0)),this[_0x221f('0x61')]['set'](_0x2c8b38[_0x221f('0x83')],{}),_0x1370dc&&this[_0x221f('0xf1')]['set'](_0x2c8b38[_0x221f('0x83')],G(_0x2c8b38[_0x221f('0x83')],!0x0)));const _0x1ddf7a=null===_0x2c8b38[_0x221f('0x96')]?null:_0x2c8b38[_0x221f('0x96')]||this[_0x221f('0x53')][_0x221f('0x3f')]['get'](_0x221f('0xb6'))['me']['id'],_0x4a2bbd=this[_0x221f('0x84')][_0x221f('0x6e')](_0x2c8b38['rootName']);_0x4a2bbd&&_0x4a2bbd['userId']===_0x1ddf7a?this[_0x221f('0x84')][_0x221f('0x40')](_0x2c8b38[_0x221f('0x83')]):this[_0x221f('0x84')][_0x221f('0xb3')](_0x2c8b38['rootName'],{'userId':_0x1ddf7a,'isAttached':_0x2c8b38['isAdd']});}['_handleRootAttributeOperation'](_0x3ccd0f){const _0x1afaa0=this[_0x221f('0x61')][_0x221f('0x6e')](_0x3ccd0f['root'][_0x221f('0x83')]);null===_0x3ccd0f['newValue']?delete _0x1afaa0[_0x3ccd0f[_0x221f('0x6')]]:_0x1afaa0[_0x3ccd0f[_0x221f('0x6')]]=_0x3ccd0f[_0x221f('0xe8')];}}function q(_0x47e6d9){const _0x36ae6e=G(_0x47e6d9[_0x221f('0x83')],_0x47e6d9['isAttached']());for(const _0x346c3d of _0x47e6d9[_0x221f('0x45')]()){const _0x2ae2fb=_0x346c3d['_clone'](!0x0);_0x36ae6e[_0x221f('0x10')](_0x2ae2fb);}return _0x36ae6e;}function G(_0x855f65,_0x73ce15=!0x0){const _0x805373=new _0xfe15d4();return _0x805373['rootName']=_0x855f65,_0x805373[_0x221f('0xc2')]=_0x73ce15,_0x805373[_0x221f('0xda')]=()=>_0x805373['_isAttached'],_0x805373;}function L(_0x23fae8,_0x4e89e2,_0x1b9ee2){const _0x3fc3b8=_0x221f('0xc9')==_0x23fae8[_0x221f('0x5d')]?_0x1b9ee2[_0x221f('0x9d')](_0x23fae8[_0x221f('0x9a')],_0x221f('0x39')):_0x1b9ee2[_0x221f('0x58')](_0x23fae8[_0x221f('0x9a')]);return _0x1b9ee2[_0x221f('0xf0')](_0x4e89e2,_0x3fc3b8['path'],_0x3fc3b8['stickiness']);}function W(_0x167da0,_0x59bafb,_0x2aaa2a){const _0x5441ee='elementStart'==_0x167da0['type']?_0x2aaa2a[_0x221f('0x9d')](_0x167da0[_0x221f('0x9a')],0x0):_0x2aaa2a['createPositionAfter'](_0x167da0[_0x221f('0x9a')]);return _0x2aaa2a[_0x221f('0xf0')](_0x59bafb,_0x5441ee[_0x221f('0x75')],_0x5441ee[_0x221f('0x35')]);}
|
|
23
|
+
const _0x3caf=['_startingVersion','stringify','define','_fixOperation','_baseRootsAttributes','attachChange','getUser','addRevision','slice','_appendChild','isEqual','isAttached','end','editor','previousPosition','getRevisionDocumentData','_loadRevisionData','oldRange','_handleOperation','createPositionBefore','insert','move','_lastFrom','revision-start','getRevision','insertion','_getFromVersion','max','_getBaseVids','element','clear','creatorId','_makeIdsRoot','_initialRevisionId','RevisionsRepository','_applyOperations','creator','for','_fixPosition','_touchedMarkers','getChild','getLatestVersion','initialData','sendBufferedUpdates','elementEnd','data-revision-','_handleSplitOperation','push','baseVersion','getRootNames','parse','editing','startsWith','Initial\x20revision','_bufferUpdate','_update','_bufferedUpdates','ready','markerToData','elementStart','resolve','getAncestors','map','find','sourcePosition','stickiness','keepParagraph','getAttribute','forEach','from','getChildren','then','update','_saveMetaData','_transformMarkers','NEGATIVE_INFINITY','set','view','document','diffData','getOperations','getWalker','_handleMarkerOperation','range','model','createPositionAfter','split','PendingActions','_insertChild','authors','_handleInsertOperation','_reset','vid_end','pluginName','useFillerType','updateRevisions','_revisionId','keys','editor-initial-data-replaced-with-revision-data','bind','markers','createPositionAt','RealTimeCollaborationClient','targetPosition','getRange','_fixRange','_handleMoveOperation','reinsert','_calculateMetaData','position','_lastTo','vid','_getPreviousFrom','_makeModelFromViewString','_prepareViewToSave','_removeRevisionMarkers','revision','_source','attributesAfter','fromVersion','_idsRoots','source','afterInit','_pendingAction','_operations','offset','revisionHistory.resumeUnsavedRevision','attributes','item','remove','conversion','_authorId','$graveyard','length','filter','upcast','dataToMarker','toView','type','rootName','reverse','getIndex','_continueCurrentRevision','revision:','_baseIdsRoots','_handleRootOperation','_handleMergeOperation','userId','rootsAttributes','setSource','_diffRoots','getRoot','RevisionTracker','getData','_removePendingAction','_copyMarkers','$text','paragraph','attributesBefore','_touched','reInit','createRange','childCount','tableCell','newRange','_createCurrentRevision','start','_loadedStateData','key','_isAttached','_baseRoots','repository','adapter','config','version','_removeMetaData','trim','currentRevision','nodes','locale','add','_markers','_makeRevision','deletions','_revisionDataBuilder','includes','toModel','processor','root','some','_startingRevisionId','name','values','get','history','Users','_diffRootsAttributes','data','string','roots','_handleRootAttributeOperation','finally','createRevision','Empty\x20document','path','changeRootAttribute','_getVidAttributeName','buildRevisionData','getRevisions','_setAttribute','_touchedRoots','_setConversion','authorsIds','_getViewJson','newValue','collaboration.channelId','offsetSize','detachRoot','deletion','_processRootBeforeSave','_markChanges','fromEntries','getNodeByPath','initial','affectsData','init','documentFragment','_createInitialRevision','splitPosition','children','getRevisionRootsAttributes','PENDING_ACTION_REVISION_HISTORY','loadState','_isPendingUpdate','shift','saveRevision','getAttributes','insertions','_execute','sort','setRevisionData','graveyardPosition','createdAt','clone','size','marker','has','_savedMetaData','revision-end','_getState','createPositionFromPath','requires','createRangeIn','isReady','toVersion','default','addRootAttribute','parent','delete','plugins','addRevisionData','_cloneOperation','getCurrentRevisionId','_generateTape','_addPendingAction','vid_start','_loadState','_isInit'];(function(_0x483d03,_0x3caf56){const _0x41eda8=function(_0x298d78){while(--_0x298d78){_0x483d03['push'](_0x483d03['shift']());}};_0x41eda8(++_0x3caf56);}(_0x3caf,0x193));const _0x41ed=function(_0x483d03,_0x3caf56){_0x483d03=_0x483d03-0x0;let _0x41eda8=_0x3caf[_0x483d03];return _0x41eda8;};import{Users as _0x3529e5}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x4a4773,PendingActions as _0x13d6b6}from'ckeditor5/src/core';import{logWarning as _0x43a941,uid as _0x2f1c29}from'ckeditor5/src/utils';import{Position as _0x36d179,Range as _0x285279,Element as _0x2f4999,DocumentFragment as _0x4fa6bf,ViewText as _0x453e67,ViewElement as _0x5b0633,ViewContainerElement as _0x40ae22,ViewAttributeElement as _0x5d532c,ViewEmptyElement as _0x11af20,ViewRawElement as _0x5a0321,ViewUIElement as _0x4aedb7,ViewDocumentFragment as _0x5189f2}from'ckeditor5/src/engine';import _0x34cf7e from'./revisionsrepository';import{getTranslation as _0x2648c4}from'./utils/common-translations';import{cloneDeep as _0x2cd86e,isEqual as _0x173bf7}from'lodash-es';const B={'c':_0x40ae22,'a':_0x5d532c,'e':_0x11af20,'r':_0x5a0321,'u':_0x4aedb7};export default class l extends _0x4a4773{static get[_0x41ed('0xe2')](){return _0x41ed('0x11');}static get[_0x41ed('0x74')](){return[_0x3529e5,_0x34cf7e,_0x13d6b6];}constructor(_0x1bdc6d){super(_0x1bdc6d),this[_0x41ed('0x25')]=null,this[_0x41ed('0x2a')]=null,this[_0x41ed('0x31')]=new H(this[_0x41ed('0x92')]),this['_initialRevisionId']=this[_0x41ed('0x92')][_0x41ed('0x26')][_0x41ed('0x3a')](_0x41ed('0x50'))||_0x41ed('0x58'),this['_bufferedUpdates']=new Map(),this[_0x41ed('0x20')]=null;const _0x3e4fa5=_0x2f1c29();this['_source']={'history':this['editor'][_0x41ed('0xd9')][_0x41ed('0xd3')]['history'],'getLatestVersion':()=>Promise[_0x41ed('0xc1')](this['editor']['model']['document'][_0x41ed('0x27')]),'getCurrentRevisionId':()=>_0x3e4fa5},this['set'](_0x41ed('0x76'),!0x1),this[_0x41ed('0xd1')]('isEnabled',!0x0),this['set'](_0x41ed('0x62'),!0x1),this[_0x41ed('0x92')]['config'][_0x41ed('0x87')]('revisionHistory.resumeUnsavedRevision',!0x0),this['editor'][_0x41ed('0x107')][_0x41ed('0xaa')](_0x41ed('0x0'))[_0x41ed('0x1')]({'view':_0x41ed('0xf9')});}['init'](){this[_0x41ed('0x24')]=this[_0x41ed('0x92')]['plugins'][_0x41ed('0x3a')](_0x41ed('0xa7')),this[_0x41ed('0x4c')](),this[_0x41ed('0x92')][_0x41ed('0x3e')]['on'](_0x41ed('0xbe'),()=>{const _0x15e940=this['repository'][_0x41ed('0x9d')](0x0),_0x2fb41d=_0x15e940&&null===_0x15e940[_0x41ed('0xa9')]?_0x15e940:null;if(this[_0x41ed('0x7')]=!!_0x2fb41d&&this[_0x41ed('0x92')][_0x41ed('0x26')][_0x41ed('0x3a')](_0x41ed('0x103')),this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x6f')](_0x41ed('0xeb'))){const _0x252603=this['_source'][_0x41ed('0x7f')](),_0x509fa3=this[_0x41ed('0x24')]['getRevision'](_0x252603);if(_0x509fa3)this[_0x41ed('0x85')]=_0x509fa3[_0x41ed('0xfc')],this[_0x41ed('0x7')]=!0x1;else{const _0x2a6cc8=this[_0x41ed('0xfa')]['history'][_0x41ed('0x101')]['find'](_0x9ec38=>!_0x9ec38[_0x41ed('0x84')]),_0x37ca9b=_0x2a6cc8?_0x2a6cc8[_0x41ed('0xb5')]:this[_0x41ed('0xfa')][_0x41ed('0x3b')][_0x41ed('0x27')];_0x15e940?(_0x15e940['toVersion']<_0x37ca9b&&_0x15e940[_0x41ed('0xbc')]({'toVersion':_0x37ca9b}),this[_0x41ed('0x7')]?(this[_0x41ed('0xfa')]['getCurrentRevisionId']=()=>_0x2fb41d['id'],this['_startingVersion']=_0x2fb41d[_0x41ed('0xfc')]):(this['_startingVersion']=_0x15e940[_0x41ed('0x77')],this[_0x41ed('0x7')]=!0x1)):(this[_0x41ed('0x85')]=_0x37ca9b,this['_continueCurrentRevision']=!0x1);}}else _0x2fb41d&&(this[_0x41ed('0x92')][_0x41ed('0xd9')]['document'][_0x41ed('0x3b')][_0x41ed('0x27')]=Math[_0x41ed('0xa0')](_0x2fb41d[_0x41ed('0x77')],this['editor']['model']['document'][_0x41ed('0x3b')][_0x41ed('0x27')]),_0x2fb41d[_0x41ed('0xfc')]===_0x2fb41d[_0x41ed('0x77')]?(0x0!==_0x2fb41d[_0x41ed('0xfc')]&&(this[_0x41ed('0xfa')][_0x41ed('0x7f')]=()=>_0x2fb41d['id']),this[_0x41ed('0x7')]=!0x1):this['_continueCurrentRevision']&&(this[_0x41ed('0xfa')][_0x41ed('0x7f')]=()=>_0x2fb41d['id'],this[_0x41ed('0x85')]=_0x2fb41d[_0x41ed('0xfc')])),this[_0x41ed('0x7')]||(this['_startingVersion']=this['editor'][_0x41ed('0xd9')][_0x41ed('0xd3')][_0x41ed('0x27')]);this[_0x41ed('0x31')][_0x41ed('0x5a')](this[_0x41ed('0xfa')][_0x41ed('0x3b')]),this['_createInitialRevision'](this[_0x41ed('0x85')]),this['_createCurrentRevision'](this[_0x41ed('0x85')]),this[_0x41ed('0x25')]&&this[_0x41ed('0xb0')]();}),this[_0x41ed('0xe8')](_0x41ed('0x76'))['to'](this,_0x41ed('0x62'),_0x295ce9=>!_0x295ce9);}async[_0x41ed('0xff')](){if(this['repository'][_0x41ed('0x10a')]>0x0){const _0x5abd79=this[_0x41ed('0x24')][_0x41ed('0x9d')](0x0),_0x88f72a=await this['getRevisionDocumentData'](_0x5abd79),_0x170e29=await this[_0x41ed('0x5f')](_0x5abd79);this['_replaceEditorDataWithRevisionData'](_0x88f72a,_0x170e29);}}[_0x41ed('0xe')](_0x43f089){this[_0x41ed('0xfa')]=_0x43f089;}async[_0x41ed('0xcd')](){const _0x530025=await this[_0x41ed('0xfa')][_0x41ed('0xae')]();if(_0x530025>this[_0x41ed('0x2a')][_0x41ed('0x77')]){await this[_0x41ed('0x83')]();const _0x262828=this['buildRevisionData']({'revision':this[_0x41ed('0x2a')],'to':_0x530025});_0x262828[_0x41ed('0xde')]=_0x262828[_0x41ed('0x4d')][_0x41ed('0xc3')](_0x2c63d9=>this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x3a')]('Users')['getUser'](_0x2c63d9)),this['currentRevision'][_0x41ed('0xbc')](_0x262828);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder'][_0x41ed('0x61')](this[_0x41ed('0x2a')]),this[_0x41ed('0x20')]={'fromVersion':this[_0x41ed('0x2a')][_0x41ed('0xfc')],'authors':this[_0x41ed('0x2a')][_0x41ed('0xde')]['slice']()});}async[_0x41ed('0x64')](_0xe72a56={},_0x5be69e=null){const _0x5394dd=[];await this[_0x41ed('0x83')](),this[_0x41ed('0x7')]=!0x1,_0x5be69e>this['currentRevision']['toVersion']&&(_0x5be69e=null),null===_0x5be69e&&(_0x5be69e=await this[_0x41ed('0xfa')][_0x41ed('0xae')]());const _0x414682=this[_0x41ed('0x9f')](_0x5be69e),_0x215334=this[_0x41ed('0x48')]({'from':_0x414682,'to':_0x5be69e});if(this[_0x41ed('0x2a')][_0x41ed('0x77')]<_0x5be69e){const _0x3cd6e5=this[_0x41ed('0x48')]({'revision':this[_0x41ed('0x2a')],'from':_0x5be69e,'to':_0x5be69e});_0x3cd6e5[_0x41ed('0xde')]=[],_0x3cd6e5[_0x41ed('0x4d')]=[],_0x3cd6e5['id']=this[_0x41ed('0x2a')]['id'],this['currentRevision'][_0x41ed('0xbc')](_0x3cd6e5,!0x0),delete _0x3cd6e5[_0x41ed('0xde')],_0x5394dd[_0x41ed('0xb4')](_0x3cd6e5);}_0xe72a56[_0x41ed('0xa4')]=this[_0x41ed('0x92')]['plugins'][_0x41ed('0x3a')](_0x41ed('0x3c'))['me']['id'],_0xe72a56[_0x41ed('0x38')]=_0xe72a56[_0x41ed('0x38')]||null,_0xe72a56['id']=_0xe72a56['id']||_0x2f1c29(),_0xe72a56={..._0xe72a56,..._0x215334};const _0x1b9f6b=this['addRevisionData'](_0xe72a56);_0x5394dd[_0x41ed('0xb4')](_0xe72a56);const _0x46c09e=this[_0x41ed('0x24')][_0x41ed('0x6')](_0x1b9f6b);if(0x0!==_0x46c09e){const _0x4f9092=this[_0x41ed('0x24')][_0x41ed('0x9d')](_0x46c09e-0x1);if(_0x4f9092[_0x41ed('0xfc')]!==_0x5be69e){const _0x4b0fca=this[_0x41ed('0x31')][_0x41ed('0x12')](_0x5be69e,_0x4f9092[_0x41ed('0x77')]),_0x3d66c8={'id':_0x4f9092['id'],'diffData':_0x4b0fca[_0x41ed('0xd4')],'authorsIds':_0x4b0fca[_0x41ed('0x4d')],'authors':_0x4b0fca[_0x41ed('0x4d')]['map'](_0x37fb64=>this[_0x41ed('0x92')][_0x41ed('0x7c')]['get'](_0x41ed('0x3c'))[_0x41ed('0x8b')](_0x37fb64)),'fromVersion':_0x5be69e};_0x4f9092===this['currentRevision']&&(_0x3d66c8['createdAt']=new Date(_0xe72a56[_0x41ed('0x6b')]['getTime']()+0xa)),_0x4f9092['_update'](_0x3d66c8,!0x0),delete _0x3d66c8[_0x41ed('0xde')],_0x5394dd[_0x41ed('0xb4')](_0x3d66c8);}}if(this[_0x41ed('0x25')]){for(const _0x511af3 of _0x5394dd)this[_0x41ed('0xbb')](_0x511af3['id'],_0x511af3,!0x0);this[_0x41ed('0xb0')]();}return _0x1b9f6b;}['addRevisionData'](_0x270b3f){const _0x59c15d=this['repository'][_0x41ed('0x43')](_0x270b3f);return this[_0x41ed('0x25')]&&_0x59c15d['on'](_0x41ed('0xbc'),(_0x241006,_0x20a573,_0x3b4341)=>{_0x3b4341||(this[_0x41ed('0xbb')](_0x20a573['id'],_0x20a573,!0x0),this[_0x41ed('0xb0')]());}),this[_0x41ed('0x24')][_0x41ed('0x8c')](_0x59c15d,this['_findInsertionIndex'](_0x59c15d)),_0x59c15d;}async[_0x41ed('0x94')](_0x5c53d0){await this[_0x41ed('0x95')](_0x5c53d0);const _0x452b22={};for(const _0x4adc57 in _0x5c53d0[_0x41ed('0xd4')]){if(_0x5c53d0[_0x41ed('0xd4')][_0x4adc57][_0x41ed('0x8a')]&&!_0x5c53d0[_0x41ed('0xd4')][_0x4adc57][_0x41ed('0x8a')]['isAttached'])continue;const _0x24eae2=this[_0x41ed('0xf8')](JSON[_0x41ed('0xb7')](_0x5c53d0['diffData'][_0x4adc57][_0x41ed('0x66')])),_0x544acd=this[_0x41ed('0x92')][_0x41ed('0xb8')][_0x41ed('0xd2')][_0x41ed('0xd3')],_0x34bed4=new _0x5189f2(_0x544acd,_0x24eae2[_0x41ed('0xc3')](_0x5df1ab=>J(_0x5df1ab,this[_0x41ed('0x92')])));this[_0x41ed('0x92')]['data'][_0x41ed('0x34')][_0x41ed('0xe3')]('marked'),_0x452b22[_0x4adc57]=this[_0x41ed('0x92')][_0x41ed('0x3e')][_0x41ed('0x34')]['toData'](_0x34bed4),this[_0x41ed('0x92')][_0x41ed('0x3e')]['processor'][_0x41ed('0xe3')](_0x41ed('0x78'));}return _0x452b22;}async[_0x41ed('0x5f')](_0x5db511){await this[_0x41ed('0x95')](_0x5db511);const _0x92c97d={};for(const _0x345cff in _0x5db511[_0x41ed('0xd4')])_0x5db511[_0x41ed('0xd4')][_0x345cff][_0x41ed('0x8a')]&&!_0x5db511[_0x41ed('0xd4')][_0x345cff][_0x41ed('0x8a')][_0x41ed('0x90')]||(_0x92c97d[_0x345cff]=_0x5db511[_0x41ed('0xd4')][_0x345cff][_0x41ed('0xfb')]||{});return _0x92c97d;}[_0x41ed('0xb0')](){if(0x0===this['_bufferedUpdates'][_0x41ed('0x6d')])return;if(this[_0x41ed('0x62')])return;let _0x1793ef=Array[_0x41ed('0xca')](this[_0x41ed('0xbd')]['values']());this[_0x41ed('0xbd')][_0x41ed('0xa3')]();for(let _0x553429=0x0;_0x553429<_0x1793ef[_0x41ed('0x10a')];_0x553429++){const _0x2f198b=_0x1793ef[_0x553429];let _0x73af22=!0x1;for(const _0x9cace0 of Object[_0x41ed('0xe6')](_0x2f198b))void 0x0===_0x2f198b[_0x9cace0]?delete _0x2f198b[_0x9cace0]:'id'!==_0x9cace0&&(_0x73af22=!0x0);_0x73af22||(_0x1793ef[_0x553429]=null);}if(_0x1793ef=_0x1793ef[_0x41ed('0x10b')](_0x1a3c91=>null!==_0x1a3c91),!_0x1793ef[_0x41ed('0x10a')])return;for(let _0x1e1293=0x0;_0x1e1293<_0x1793ef['length'];_0x1e1293++){const _0x2da412=_0x1793ef[_0x1e1293];void 0x0!==_0x2da412[_0x41ed('0xfc')]&&void 0x0===_0x2da412[_0x41ed('0x77')]&&(_0x2da412['toVersion']=this[_0x41ed('0x24')][_0x41ed('0x9d')](_0x2da412['id'])[_0x41ed('0x77')]),void 0x0!==_0x2da412[_0x41ed('0x77')]&&void 0x0===_0x2da412[_0x41ed('0xfc')]&&(_0x2da412[_0x41ed('0xfc')]=this[_0x41ed('0x24')][_0x41ed('0x9d')](_0x2da412['id'])[_0x41ed('0xfc')]);}const _0x25a987=this[_0x41ed('0x92')][_0x41ed('0x26')][_0x41ed('0x3a')](_0x41ed('0x50'));this[_0x41ed('0x62')]=!0x0,this[_0x41ed('0x81')](),this[_0x41ed('0x25')][_0x41ed('0xe4')](_0x1793ef,_0x25a987)[_0x41ed('0x42')](()=>{this['_isPendingUpdate']=!0x1;})[_0x41ed('0xcc')](_0x1245c5=>{if(_0x1245c5)for(const _0x1b5c7f of _0x1245c5)this[_0x41ed('0x69')]({'id':_0x1b5c7f['id'],'createdAt':_0x1b5c7f[_0x41ed('0x6b')]});this['_removePendingAction'](),this[_0x41ed('0xb0')]();});}['_replaceEditorDataWithRevisionData'](_0x4d8776,_0x3fc6a1){let _0x3404d5=this[_0x41ed('0x92')][_0x41ed('0x26')][_0x41ed('0x3a')](_0x41ed('0xaf')),_0x158f1a=this[_0x41ed('0x92')][_0x41ed('0x26')][_0x41ed('0x3a')](_0x41ed('0xd'));if(void 0x0===_0x3404d5){_0x3404d5={};for(const _0x45ce17 of this[_0x41ed('0x92')]['model'][_0x41ed('0xd3')][_0x41ed('0xb6')]())_0x3404d5[_0x45ce17]='';}if(_0x41ed('0x3f')==typeof _0x3404d5&&(_0x3404d5={'main':_0x3404d5}),void 0x0===_0x158f1a){_0x158f1a={};for(const _0x3f4473 of this[_0x41ed('0x92')]['model'][_0x41ed('0xd3')][_0x41ed('0xb6')]())_0x158f1a[_0x3f4473]={};}let _0x33be8b=!0x1;const _0x4c88d7=Object['keys'](_0x3404d5),_0x45cbcd=Object[_0x41ed('0xe6')](_0x4d8776);for(const _0x588a81 of _0x4c88d7){if(_0x3404d5[_0x588a81]!==_0x4d8776[_0x588a81]&&''!==_0x3404d5[_0x588a81][_0x41ed('0x29')]()){_0x33be8b=!0x0;break;}if(!_0x173bf7(_0x158f1a[_0x588a81],_0x3fc6a1[_0x588a81])&&Object[_0x41ed('0xe6')](_0x158f1a[_0x588a81])[_0x41ed('0x10a')]>0x0){_0x33be8b=!0x0;break;}}_0x33be8b||(_0x33be8b=_0x45cbcd[_0x41ed('0x36')](_0x29c63e=>!this[_0x41ed('0x92')][_0x41ed('0xd9')][_0x41ed('0xd3')][_0x41ed('0x10')](_0x29c63e))),_0x33be8b&&_0x43a941(_0x41ed('0xe7'),{'editorData':_0x3404d5,'editorRootsAttributes':_0x158f1a,'revisionData':_0x4d8776,'revisionRootsAttributes':_0x3fc6a1}),this['editor']['config'][_0x41ed('0xd1')]('initialData',_0x4d8776),this['editor']['config']['set']('rootsAttributes',_0x3fc6a1);}[_0x41ed('0x81')](){if(!this[_0x41ed('0x100')]){const _0x3b52ca=this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x3a')](_0x41ed('0xdc'));this[_0x41ed('0x100')]=_0x3b52ca[_0x41ed('0x2d')](_0x2648c4(this[_0x41ed('0x92')][_0x41ed('0x2c')],_0x41ed('0x60')));}}[_0x41ed('0x13')](){this['_pendingAction']&&(this['editor']['plugins'][_0x41ed('0x3a')](_0x41ed('0xdc'))[_0x41ed('0x106')](this['_pendingAction']),this[_0x41ed('0x100')]=null);}['_findInsertionIndex'](_0x567fb7){const _0x459dea=this[_0x41ed('0x24')][_0x41ed('0x49')]();_0x459dea[_0x41ed('0x5')]();let _0x18b20f=0x0;for(;_0x18b20f<_0x459dea['length'];){const _0x2de281=_0x459dea[_0x18b20f];if(_0x2de281===this['currentRevision']){_0x18b20f++;continue;}if(_0x2de281['id']===this[_0x41ed('0xa6')])break;const _0x2596b3=_0x567fb7[_0x41ed('0x77')]-_0x2de281[_0x41ed('0x77')]||_0x567fb7['fromVersion']-_0x2de281[_0x41ed('0xfc')];if(_0x2596b3>0x0)break;if(_0x2596b3<0x0)_0x18b20f++;else{if(!_0x567fb7[_0x41ed('0xa9')]&&_0x2de281['creator'])break;if(_0x2de281[_0x41ed('0xa9')]||!_0x567fb7[_0x41ed('0xa9')]){if(_0x567fb7[_0x41ed('0x6b')]>_0x2de281['createdAt'])break;_0x18b20f++;}else _0x18b20f++;}}return _0x18b20f;}[_0x41ed('0x69')](_0x52891f){const _0x1278b8=this[_0x41ed('0x24')]['getRevision'](_0x52891f['id']);if(_0x52891f[_0x41ed('0x6b')]&&(_0x52891f['createdAt']=new Date(_0x52891f['createdAt'])),_0x52891f[_0x41ed('0x4d')]){const _0x17d2f0=this['editor'][_0x41ed('0x7c')][_0x41ed('0x3a')](_0x41ed('0x3c'));_0x52891f['authors']=_0x52891f[_0x41ed('0x4d')]['map'](_0x3ad60d=>_0x17d2f0[_0x41ed('0x8b')](_0x3ad60d));}_0x1278b8[_0x41ed('0xbc')](_0x52891f,!0x0);}[_0x41ed('0x48')]({revision:_0x356a6e=null,from:_0x329744=null,to:_0x3afd66=null}){_0x329744=null!==_0x329744?_0x329744:_0x356a6e['fromVersion'],_0x3afd66=null!==_0x3afd66?_0x3afd66:_0x356a6e[_0x41ed('0x77')];const _0x2fe03e=this[_0x41ed('0x31')][_0x41ed('0x12')](_0x329744,_0x3afd66),_0x117ef9={'diffData':_0x2fe03e[_0x41ed('0xd4')],'authorsIds':_0x2fe03e[_0x41ed('0x4d')],'fromVersion':_0x329744,'toVersion':_0x3afd66};if(!_0x356a6e||_0x3afd66!==_0x356a6e[_0x41ed('0x77')]){const _0x441162=_0x3afd66-0x1,_0x50bbd0=this['_source']['history']['getOperation'](_0x441162);_0x117ef9[_0x41ed('0x6b')]=_0x50bbd0&&_0x50bbd0[_0x41ed('0x6b')]||new Date();}if(this[_0x41ed('0x20')]&&_0x329744===this[_0x41ed('0x20')]['fromVersion'])for(const _0x380340 of this['_loadedStateData'][_0x41ed('0xde')])_0x117ef9[_0x41ed('0x4d')][_0x41ed('0x32')](_0x380340['id'])||_0x117ef9[_0x41ed('0x4d')]['push'](_0x380340['id']);return _0x117ef9;}['_loadRevisionData'](_0x54bc19){if(!_0x54bc19||_0x54bc19[_0x41ed('0xd4')])return Promise[_0x41ed('0xc1')]();{const _0x17fa3d=this[_0x41ed('0x92')]['config'][_0x41ed('0x3a')](_0x41ed('0x50'));return this[_0x41ed('0x25')]['getRevision']({'channelId':_0x17fa3d,'revisionId':_0x54bc19['id']})[_0x41ed('0xcc')](_0x4ec0ff=>{_0x54bc19[_0x41ed('0xd4')]=_0x4ec0ff[_0x41ed('0xd4')];});}}[_0x41ed('0xbb')](_0x9b9552,_0x483fcf,_0x129719){if(this[_0x41ed('0xbd')]['has'](_0x9b9552)){const _0x17f217=this[_0x41ed('0xbd')][_0x41ed('0x3a')](_0x9b9552);_0x483fcf=_0x129719?{..._0x17f217,..._0x483fcf}:{..._0x483fcf,..._0x17f217};}this[_0x41ed('0xbd')][_0x41ed('0xd1')](_0x9b9552,_0x483fcf);}[_0x41ed('0x9f')](_0x3a946f){const _0x2d2608=this['repository'][_0x41ed('0x49')]();_0x2d2608[_0x41ed('0x5')](),_0x2d2608[_0x41ed('0x63')]();const _0xccaf41=_0x2d2608[_0x41ed('0xc4')](_0xe64ac=>_0xe64ac[_0x41ed('0x77')]<=_0x3a946f)[_0x41ed('0x77')];return _0xccaf41<this[_0x41ed('0x85')]?this[_0x41ed('0x85')]:_0xccaf41;}[_0x41ed('0x5c')](_0x35fb33){const _0x49a970=this[_0x41ed('0x24')]['getRevision'](this[_0x41ed('0x24')][_0x41ed('0x10a')]-0x1);if(_0x49a970)this['_initialRevisionId']=_0x49a970['id'];else{const _0x43b75c=!this['editor']['model'][_0x41ed('0xd3')][_0x41ed('0x40')][_0x41ed('0xc4')](_0x566c14=>this['editor']['model']['hasContent'](_0x566c14)),_0x1de8d1=this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x3a')](_0x41ed('0x3c'))['me']['id'],_0x2ec4ee=_0x2648c4(this['editor'][_0x41ed('0x2c')],_0x43b75c?_0x41ed('0x44'):_0x41ed('0xba'));this[_0x41ed('0x2f')]({'from':_0x35fb33,'to':_0x35fb33,'id':this[_0x41ed('0xa6')],'name':_0x2ec4ee,'creatorId':_0x1de8d1});}}[_0x41ed('0x1e')](_0x29a4a5){const _0x2bf6ea=this[_0x41ed('0xfa')][_0x41ed('0x7f')]();this[_0x41ed('0x2a')]=this[_0x41ed('0x24')][_0x41ed('0x9d')](_0x2bf6ea),this['currentRevision']||(this[_0x41ed('0x2a')]=this[_0x41ed('0x2f')]({'from':_0x29a4a5,'to':_0x29a4a5,'id':_0x2bf6ea,'name':'','creatorId':null}));}[_0x41ed('0x2f')]({name:_0x3925e1,from:_0x3b7c3f,to:_0x1091a9,creatorId:_0x3cb1a3,id:_0x1e4c1e}){const _0x24d3ef=this[_0x41ed('0x48')]({'from':_0x3b7c3f,'to':_0x1091a9});_0x24d3ef[_0x41ed('0x38')]=_0x3925e1,_0x24d3ef[_0x41ed('0xa4')]=_0x3cb1a3,_0x24d3ef['id']=_0x1e4c1e;const _0x2efcdf=this[_0x41ed('0x7d')](_0x24d3ef);return this['adapter']&&this[_0x41ed('0xbb')](_0x24d3ef['id'],_0x24d3ef,!0x0),_0x2efcdf;}['_setConversion'](){this['editor']['conversion'][_0x41ed('0xaa')]('dataDowncast')[_0x41ed('0xbf')]({'model':_0x41ed('0xf9')});}[_0x41ed('0xf8')](_0x587a6d){return(_0x587a6d=_0x587a6d[_0x41ed('0x10b')](_0x32c872=>!_0x32c872[_0x41ed('0x38')]||_0x41ed('0x9c')!==_0x32c872[_0x41ed('0x38')]&&_0x41ed('0x71')!==_0x32c872['name']))[_0x41ed('0xc9')](_0x9ec092=>{'string'!=typeof _0x9ec092&&(_0x9ec092[_0x41ed('0x5e')]=this[_0x41ed('0xf8')](_0x9ec092['children']),_0x9ec092[_0x41ed('0x104')]=_0x9ec092[_0x41ed('0x104')][_0x41ed('0x10b')](_0x2f72f0=>!_0x2f72f0[0x0][_0x41ed('0xb9')](_0x41ed('0xb2'))));}),_0x587a6d;}}function J(_0x48e089,_0x4edd0c){const _0x3ec6e7=_0x4edd0c['editing'][_0x41ed('0xd2')][_0x41ed('0xd3')];if(_0x41ed('0x3f')==typeof _0x48e089)return new _0x453e67(_0x3ec6e7,_0x48e089);{const _0x2c7038=_0x48e089[_0x41ed('0x5e')][_0x41ed('0xc3')](_0x31dc37=>J(_0x31dc37,_0x4edd0c));return new(B[_0x48e089[(_0x41ed('0x3'))]]||_0x5b0633)(_0x3ec6e7,_0x48e089[_0x41ed('0x38')],_0x48e089['attributes'],_0x2c7038);}}class H{constructor(_0x33c534){this['editor']=_0x33c534,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this[_0x41ed('0xf3')]=-0x1,this[_0x41ed('0x2e')]=new Map(),this[_0x41ed('0xf')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x41ed('0x23')]=new Map(),this[_0x41ed('0x89')]=new Map(),this[_0x41ed('0xfd')]=new Map(),this[_0x41ed('0x9')]=new Map(),this[_0x41ed('0x18')]=new Map(),this[_0x41ed('0xac')]=new Map(),this[_0x41ed('0x4b')]=new Map(),this[_0x41ed('0xe5')]=0x1;}[_0x41ed('0x5a')](_0x30f905){this[_0x41ed('0xfe')]=_0x30f905;const _0x4acd96=new Map(),_0x519d4e=new Map(),_0x12a207=this[_0x41ed('0x92')][_0x41ed('0xd9')][_0x41ed('0xd3')]['roots']['map'](_0x8481c9=>_0x8481c9[_0x41ed('0x4')]);for(const _0x307bb5 of _0x12a207){const _0x250ae2=this[_0x41ed('0x92')][_0x41ed('0xd9')][_0x41ed('0xd3')][_0x41ed('0x10')](_0x307bb5),_0x1c6eb2=q(_0x250ae2);_0x4acd96[_0x41ed('0xd1')](_0x307bb5,_0x1c6eb2),_0x519d4e[_0x41ed('0xd1')](_0x307bb5,Object[_0x41ed('0x56')](_0x250ae2['getAttributes']()));}const _0x36b508=Array[_0x41ed('0xca')](this[_0x41ed('0x92')][_0x41ed('0xd9')][_0x41ed('0xe9')])[_0x41ed('0xc3')](_0x46c42f=>[_0x46c42f[_0x41ed('0x38')],_0x46c42f[_0x41ed('0xed')]()]),_0xd6bcf5=this[_0x41ed('0xfe')][_0x41ed('0x27')];this[_0x41ed('0xce')](_0xd6bcf5,_0x4acd96,_0x36b508,_0x519d4e),this[_0x41ed('0x37')]=this[_0x41ed('0xe5')];const _0x4a9990=new Map(),_0x105f3e=new Map();for(const _0x9ab3d7 of _0x12a207){const _0x2de9a1=G(_0x9ab3d7);_0x4a9990[_0x41ed('0xd1')](_0x9ab3d7,_0x2de9a1),_0x105f3e[_0x41ed('0xd1')](_0x9ab3d7,{});}this[_0x41ed('0xce')](Number[_0x41ed('0xd0')],_0x4a9990,[],_0x105f3e);}[_0x41ed('0x12')](_0x276b4c,_0x258a0c){if(this[_0x41ed('0x9b')]===_0x276b4c&&this[_0x41ed('0xf3')]<=_0x258a0c)this[_0x41ed('0x70')][_0x41ed('0x6d')]>0x1&&this['_removeMetaData'](this[_0x41ed('0xf3')]),this[_0x41ed('0xa8')](this[_0x41ed('0xf3')],_0x258a0c,!0x0);else{if(!this['_savedMetaData'][_0x41ed('0x6f')](_0x276b4c)){const _0x4e61fd=this[_0x41ed('0xf5')](_0x276b4c);this[_0x41ed('0xf1')](_0x4e61fd,_0x276b4c,!0x1);}this['_calculateMetaData'](_0x276b4c,_0x258a0c,!0x0);}return this[_0x41ed('0x9b')]=_0x276b4c,this['_lastTo']=_0x258a0c,this[_0x41ed('0x72')]();}[_0x41ed('0x61')](_0x317607){this[_0x41ed('0xe0')](),this[_0x41ed('0x9b')]=_0x317607[_0x41ed('0xfc')],this['_lastTo']=_0x317607[_0x41ed('0x77')];for(const _0x257200 in _0x317607[_0x41ed('0xd4')]){const _0x31a535=_0x317607[_0x41ed('0xd4')][_0x257200][_0x41ed('0x8a')],_0x4157e7=_0x2cd86e(_0x317607[_0x41ed('0xd4')][_0x257200][_0x41ed('0x17')])||{},_0xcd6108=this['_makeModelFromViewString'](_0x317607[_0x41ed('0xd4')][_0x257200][_0x41ed('0x30')]);_0xcd6108[_0x41ed('0x4')]=_0x257200,_0xcd6108['_isAttached']=!_0x31a535||!_0x31a535[_0x41ed('0x90')],_0xcd6108[_0x41ed('0x90')]=()=>_0xcd6108[_0x41ed('0x22')],this[_0x41ed('0x23')]['set'](_0x257200,_0xcd6108),this[_0x41ed('0x89')][_0x41ed('0xd1')](_0x257200,_0x4157e7),_0x31a535&&this['_touchedRoots']['set'](_0x257200,_0x31a535);const _0x448a7e=this['_makeIdsRoot'](_0xcd6108);this['_baseIdsRoots'][_0x41ed('0xd1')](_0x257200,_0x448a7e);for(const [_0xceb7ab,_0x463421]of _0xcd6108[_0x41ed('0xe9')]){if(!_0xceb7ab['startsWith']('revision:'))continue;const _0xc0ab6b=_0xceb7ab[_0x41ed('0xdb')](':')[0x2];for(const _0xb4b315 of _0x463421[_0x41ed('0xd6')]({'singleCharacters':!0x0})){const _0x2da1a8=this[_0x41ed('0x47')](_0xb4b315),_0x4a8c44=_0x41ed('0xb1')==_0xb4b315[_0x41ed('0x3')]?_0xb4b315['previousPosition'][_0x41ed('0x45')][_0x41ed('0x8d')](0x0,-0x1):_0xb4b315['previousPosition'][_0x41ed('0x45')],_0x8fed1d=_0x448a7e[_0x41ed('0x57')](_0x4a8c44)[_0x41ed('0xc8')](_0x2da1a8);this[_0x41ed('0x18')][_0x41ed('0xd1')](_0x8fed1d,{'userId':_0xc0ab6b});}}}this[_0x41ed('0x37')]=this[_0x41ed('0xe5')];const _0x4e3bec=[...Array(this[_0x41ed('0xe5')])['keys']()][_0x41ed('0x8d')](0x1)[_0x41ed('0x10b')](_0x3549ad=>!this['_touched']['has'](_0x3549ad));let _0x338095=0x0;const _0xda75ab=new Map();for(const _0x154466 in _0x317607[_0x41ed('0xd4')]){const _0x37ad39=_0x317607[_0x41ed('0xd4')][_0x154466][_0x41ed('0x8a')],_0x341845=_0x2cd86e(_0x317607[_0x41ed('0xd4')][_0x154466]['attributesAfter'])||{},_0x49bc6c=this[_0x41ed('0xf6')](_0x317607['diffData'][_0x154466]['insertions']);_0x49bc6c[_0x41ed('0x4')]=_0x154466,_0x49bc6c[_0x41ed('0x22')]=!_0x37ad39||_0x37ad39[_0x41ed('0x90')],_0x49bc6c[_0x41ed('0x90')]=()=>_0x49bc6c[_0x41ed('0x22')],this[_0x41ed('0xf')][_0x41ed('0xd1')](_0x154466,_0x49bc6c),this[_0x41ed('0x3d')][_0x41ed('0xd1')](_0x154466,_0x341845);const _0x12e078=this[_0x41ed('0xa5')](_0x49bc6c,Number[_0x41ed('0xd0')]);this[_0x41ed('0xfd')][_0x41ed('0xd1')](_0x154466,_0x12e078),_0xda75ab[_0x41ed('0xd1')](_0x154466,_0x49bc6c['isAttached']()?_0x341845:{});for(const [_0xfdc9a5,_0x417706]of _0x49bc6c[_0x41ed('0xe9')]){if(!_0xfdc9a5[_0x41ed('0xb9')](_0x41ed('0x8')))continue;const _0x58d6bc=_0xfdc9a5[_0x41ed('0xdb')](':')[0x2];for(const _0x300b87 of _0x417706[_0x41ed('0xd6')]({'singleCharacters':!0x0})){const _0x505dbc=this[_0x41ed('0x47')](_0x300b87),_0x58a772=this[_0x41ed('0xe5')]++,_0x15c79e=_0x41ed('0xb1')==_0x300b87[_0x41ed('0x3')]?_0x300b87[_0x41ed('0x93')][_0x41ed('0x45')][_0x41ed('0x8d')](0x0,-0x1):_0x300b87[_0x41ed('0x93')][_0x41ed('0x45')];_0x12e078[_0x41ed('0x57')](_0x15c79e)['_setAttribute'](_0x505dbc,_0x58a772),this[_0x41ed('0x18')][_0x41ed('0xd1')](_0x58a772,{'userId':_0x58d6bc});}}for(const _0x2dee3f of this['editor']['model'][_0x41ed('0x75')](_0x49bc6c)[_0x41ed('0xd6')]({'singleCharacters':!0x0})){const _0x44a1a9=this[_0x41ed('0x47')](_0x2dee3f),_0x3d7d0a=_0x41ed('0xb1')==_0x2dee3f[_0x41ed('0x3')]?_0x2dee3f[_0x41ed('0x93')][_0x41ed('0x45')][_0x41ed('0x8d')](0x0,-0x1):_0x2dee3f[_0x41ed('0x93')][_0x41ed('0x45')],_0x49c67a=_0x12e078['getNodeByPath'](_0x3d7d0a);_0x49c67a[_0x41ed('0xc8')](_0x44a1a9)>0x0||_0x49c67a[_0x41ed('0x4a')](_0x44a1a9,_0x4e3bec[_0x338095++]);}for(const [_0x849955,_0x3c693e]of _0x49bc6c[_0x41ed('0xe9')])_0x849955[_0x41ed('0xb9')](_0x41ed('0x8'))||this[_0x41ed('0x2e')]['set'](_0x849955,_0x3c693e);}const _0x5ab5a0=G(_0x41ed('0x109'));this[_0x41ed('0x23')][_0x41ed('0xd1')](_0x41ed('0x109'),_0x5ab5a0),this['_baseIdsRoots']['set'](_0x41ed('0x109'),this['_makeIdsRoot'](_0x5ab5a0,0x1));const _0x241d9b=G(_0x41ed('0x109'));this[_0x41ed('0xf')][_0x41ed('0xd1')](_0x41ed('0x109'),_0x241d9b),this[_0x41ed('0xfd')]['set'](_0x41ed('0x109'),this[_0x41ed('0xa5')](_0x241d9b,0x1));const _0x2df0a8=Array['from'](this[_0x41ed('0xf')])['map'](([_0x291f97,_0x2de180])=>[_0x291f97,q(_0x2de180)]);this['_saveMetaData'](this['_lastTo'],_0x2df0a8,this['_markers'],_0xda75ab);}[_0x41ed('0xf6')](_0x18bd89){const _0x47ab5b=JSON[_0x41ed('0xb7')](_0x18bd89),_0x5d4b55=this['editor'][_0x41ed('0xb8')][_0x41ed('0xd2')][_0x41ed('0xd3')],_0x908565=new _0x5189f2(_0x5d4b55,_0x47ab5b[_0x41ed('0xc3')](_0x578c22=>J(_0x578c22,this[_0x41ed('0x92')])));return this[_0x41ed('0x92')][_0x41ed('0x3e')][_0x41ed('0x33')](_0x908565);}['_saveMetaData'](_0x5618cb,_0x2027f7,_0xd4990f,_0x14fc6b){const _0x34b5c9=new Map(_0x2027f7),_0x454adc=new Map(_0x2cd86e(_0x14fc6b)),_0x3f12f3=new Map();for(const [_0x5586c6,_0x1044e]of _0xd4990f)_0x3f12f3['set'](_0x5586c6,{'start':_0x1044e[_0x41ed('0x1f')][_0x41ed('0x6c')](),'end':_0x1044e[_0x41ed('0x91')][_0x41ed('0x6c')](),'rootName':_0x1044e[_0x41ed('0x35')][_0x41ed('0x4')]});this['_savedMetaData'][_0x41ed('0xd1')](_0x5618cb,{'roots':_0x34b5c9,'markers':_0x3f12f3,'rootsAttributes':_0x454adc});}[_0x41ed('0x28')](_0x353465){this['_savedMetaData']['delete'](_0x353465);}[_0x41ed('0x19')](){this[_0x41ed('0xe0')](),this['_lastFrom']=-0x1,this[_0x41ed('0xf3')]=-0x1,this[_0x41ed('0x70')][_0x41ed('0xa3')](),this[_0x41ed('0x5a')](this[_0x41ed('0xfe')]);}['_reset'](){this[_0x41ed('0x18')][_0x41ed('0xa3')](),this[_0x41ed('0xac')][_0x41ed('0xa3')](),this['_touchedRoots'][_0x41ed('0xa3')](),this[_0x41ed('0xf')][_0x41ed('0xa3')](),this[_0x41ed('0x3d')][_0x41ed('0xa3')](),this['_baseRoots'][_0x41ed('0xa3')](),this[_0x41ed('0x89')][_0x41ed('0xa3')](),this[_0x41ed('0xfd')][_0x41ed('0xa3')](),this[_0x41ed('0x9')][_0x41ed('0xa3')](),this[_0x41ed('0x2e')][_0x41ed('0xa3')](),this[_0x41ed('0xe5')]=0x1,this[_0x41ed('0x37')]=this['_revisionId'];}['_makeIdsRoot'](_0x2ce758,_0x24359b=null){let _0x3100f8=null;_0x2ce758['is'](_0x41ed('0x5b'))||(_0x3100f8=new _0x2f4999(_0x2ce758[_0x41ed('0x38')],{'vid_start':null===_0x24359b?this[_0x41ed('0xe5')]++:_0x24359b++}));const _0x2156b8=[];for(const _0x2adf8e of _0x2ce758[_0x41ed('0xcb')]())if(_0x2adf8e['is'](_0x41ed('0xa2'))){_0x2156b8[_0x41ed('0xb4')](this['_makeIdsRoot'](_0x2adf8e,_0x24359b));const _0x5144bd=_0x2156b8[_0x2156b8[_0x41ed('0x10a')]-0x1];null!==_0x24359b&&(_0x24359b=_0x5144bd['is'](_0x41ed('0xa2'),_0x41ed('0x15'))?_0x5144bd['getAttribute'](_0x41ed('0xf4'))+0x1:_0x5144bd[_0x41ed('0xc8')](_0x41ed('0xe1'))+0x1);}else for(let _0x267c4c=0x0;_0x267c4c<_0x2adf8e['offsetSize'];_0x267c4c++)_0x2156b8['push'](new _0x2f4999(_0x41ed('0x15'),{'vid':null===_0x24359b?this[_0x41ed('0xe5')]++:_0x24359b++}));if(_0x2ce758['is']('documentFragment')){const _0x12b501=G(_0x2ce758[_0x41ed('0x4')]);return _0x12b501['_insertChild'](0x0,_0x2156b8),_0x12b501;}return _0x3100f8[_0x41ed('0x4a')](_0x41ed('0xe1'),null===_0x24359b?this[_0x41ed('0xe5')]++:_0x24359b++),_0x3100f8[_0x41ed('0xdd')](0x0,_0x2156b8),_0x3100f8;}['_calculateMetaData'](_0x4d2e7e,_0x42b971,_0x2293ae){this[_0x41ed('0xe0')]();const {roots:_0x4058f3,markers:_0x501321,rootsAttributes:_0x470ff5}=this[_0x41ed('0x70')]['get'](_0x4d2e7e);this[_0x41ed('0x23')]=new Map(_0x4058f3),this[_0x41ed('0x89')]=new Map(_0x2cd86e(_0x470ff5));for(const [_0x1dfd68,_0x141270]of this[_0x41ed('0x23')])if(_0x41ed('0x109')!==_0x1dfd68&&(this['_diffRoots']['set'](_0x1dfd68,q(_0x141270)),this[_0x41ed('0x3d')]=new Map(_0x2cd86e(_0x470ff5)),_0x2293ae)){const _0x5757ad=this['_revisionId'];this[_0x41ed('0xfd')][_0x41ed('0xd1')](_0x1dfd68,this[_0x41ed('0xa5')](_0x141270)),this[_0x41ed('0x9')][_0x41ed('0xd1')](_0x1dfd68,this[_0x41ed('0xa5')](_0x141270,_0x5757ad));}this[_0x41ed('0x37')]=this[_0x41ed('0xe5')],this[_0x41ed('0xf')]['set'](_0x41ed('0x109'),q(this['_baseRoots'][_0x41ed('0x3a')](_0x41ed('0x109')))),_0x2293ae&&this[_0x41ed('0xfd')][_0x41ed('0xd1')](_0x41ed('0x109'),this['_makeIdsRoot'](this[_0x41ed('0x23')][_0x41ed('0x3a')]('$graveyard')));for(const [_0x42348d,_0x1fe22f]of _0x501321){const _0x3ce836=this['_baseRoots'][_0x41ed('0x3a')](_0x1fe22f['rootName']),_0x5395cb=this[_0x41ed('0xf')]['get'](_0x1fe22f[_0x41ed('0x4')]),_0xe4087d=new _0x285279(this[_0x41ed('0xab')](_0x1fe22f['start'],_0x3ce836),this[_0x41ed('0xab')](_0x1fe22f['end'],_0x3ce836)),_0x371c03=this['_fixRange'](_0xe4087d,_0x5395cb);_0x3ce836[_0x41ed('0xe9')][_0x41ed('0xd1')](_0x42348d,_0xe4087d),this[_0x41ed('0x2e')][_0x41ed('0xd1')](_0x42348d,_0x371c03);}this['_applyOperations'](_0x4d2e7e,_0x42b971,_0x2293ae);}[_0x41ed('0xa8')](_0xca3c5c,_0x63353d,_0xd715cf){for(const _0x5b36f3 of this[_0x41ed('0xfe')][_0x41ed('0xd5')](_0xca3c5c,_0x63353d))this[_0x41ed('0x97')](_0x5b36f3,_0xd715cf);for(const _0xf70348 of this['_diffRoots'][_0x41ed('0x39')]())_0xf70348[_0x41ed('0xe9')]['clear']();for(const [_0x17e268,_0xd8e44]of this['_markers']){this[_0x41ed('0xf')]['get'](_0xd8e44['root'][_0x41ed('0x4')])[_0x41ed('0xe9')][_0x41ed('0xd1')](_0x17e268,_0xd8e44[_0x41ed('0x6c')]());}const _0x426b2f=new Map(),_0x33f05c=new Map();for(const [_0x3f9f4e,_0xccfa93]of this['_diffRoots'])_0x426b2f['set'](_0x3f9f4e,q(_0xccfa93)),_0x33f05c[_0x41ed('0xd1')](_0x3f9f4e,this[_0x41ed('0x3d')][_0x41ed('0x3a')](_0x3f9f4e));this[_0x41ed('0xce')](_0x63353d,_0x426b2f,this[_0x41ed('0x2e')],_0x33f05c);}[_0x41ed('0xf5')](_0x172e09){const _0x3c28fe=Array[_0x41ed('0xca')](this[_0x41ed('0x70')][_0x41ed('0xe6')]());_0x3c28fe[_0x41ed('0x68')]((_0x3406cc,_0x2ecdb0)=>_0x3406cc-_0x2ecdb0),_0x3c28fe['reverse']();for(const _0x57d0df of _0x3c28fe)if(_0x57d0df<_0x172e09)return _0x57d0df;return Number[_0x41ed('0xd0')];}[_0x41ed('0x14')](_0x5abf7b,_0x4db95d){const _0x58751b=Array[_0x41ed('0xca')](_0x4db95d[_0x41ed('0xe9')])[_0x41ed('0xc3')](([_0x2d50f0,_0x3ab2b0])=>[_0x2d50f0,this[_0x41ed('0xee')](_0x3ab2b0,_0x5abf7b)]);_0x5abf7b[_0x41ed('0xe9')]=new Map(_0x58751b);}[_0x41ed('0xcf')](_0x5e6f88){for(const _0x3432e7 of this[_0x41ed('0x2e')][_0x41ed('0x39')]()){const _0x280074=_0x3432e7['getTransformedByOperation'](_0x5e6f88),_0x29f24b=_0x285279['_createFromRanges'](_0x280074);_0x3432e7[_0x41ed('0x1f')]=_0x29f24b[_0x41ed('0x1f')],_0x3432e7[_0x41ed('0x91')]=_0x29f24b[_0x41ed('0x91')];}}[_0x41ed('0x97')](_0x4aecb5,_0x2bc2b7){if('addRoot'==_0x4aecb5['type']||_0x41ed('0x52')==_0x4aecb5[_0x41ed('0x3')])return void this[_0x41ed('0xa')](_0x4aecb5,_0x2bc2b7);if(_0x41ed('0x99')==_0x4aecb5['type']){const _0x32457b=_0x4aecb5[_0x41ed('0xf2')][_0x41ed('0x35')][_0x41ed('0x4')];this['_diffRoots'][_0x41ed('0x6f')](_0x32457b)||(this[_0x41ed('0xf')][_0x41ed('0xd1')](_0x32457b,G(_0x32457b,!0x0)),this[_0x41ed('0x3d')][_0x41ed('0xd1')](_0x32457b,{}),_0x2bc2b7&&this[_0x41ed('0xfd')][_0x41ed('0xd1')](_0x32457b,G(_0x32457b,!0x0)));}else{if(_0x41ed('0x79')==_0x4aecb5[_0x41ed('0x3')]||'removeRootAttribute'==_0x4aecb5[_0x41ed('0x3')]||_0x41ed('0x46')==_0x4aecb5[_0x41ed('0x3')])return void this[_0x41ed('0x41')](_0x4aecb5);}const _0x2baea8=this['_cloneOperation'](_0x4aecb5,this['_diffRoots']);if(_0x41ed('0x6e')!==_0x4aecb5['type']&&(_0x2baea8[_0x41ed('0x67')](),this[_0x41ed('0xcf')](_0x2baea8)),_0x2bc2b7)switch(_0x2baea8[_0x41ed('0x3')]){case _0x41ed('0x99'):this[_0x41ed('0xdf')](_0x4aecb5);break;case _0x41ed('0x9a'):case _0x41ed('0x106'):case _0x41ed('0xf0'):this[_0x41ed('0xef')](_0x4aecb5);break;case'merge':this[_0x41ed('0xb')](_0x4aecb5);break;case _0x41ed('0xdb'):this[_0x41ed('0xb3')](_0x4aecb5);break;case'marker':this[_0x41ed('0xd7')](_0x4aecb5);}}['_cloneOperation'](_0x19e22c,_0x28d51a){const _0xa66a25=_0x19e22c[_0x41ed('0x6c')]();return _0xa66a25[_0x41ed('0x108')]=_0x19e22c[_0x41ed('0x108')],this[_0x41ed('0x88')](_0xa66a25,_0x28d51a),_0xa66a25;}['_getBaseVids'](_0x4c44f4){return _0x4c44f4[_0x41ed('0xc3')](_0x3316b7=>{const _0x28eab6=this[_0x41ed('0x47')](_0x3316b7);return Number(_0x3316b7[_0x41ed('0x105')][_0x41ed('0xc8')](_0x28eab6));});}[_0x41ed('0x80')](_0x36cf86,_0x30fc50){if(_0x36cf86['is'](_0x41ed('0xa2'),'$text'))_0x30fc50['push']({'item':_0x36cf86,'type':'text'});else{_0x36cf86['is'](_0x41ed('0xa2'))&&_0x30fc50[_0x41ed('0xb4')]({'item':_0x36cf86,'type':'elementStart'});for(const _0x381381 of _0x36cf86['getChildren']())this['_generateTape'](_0x381381,_0x30fc50);_0x36cf86['is']('element')&&_0x30fc50[_0x41ed('0xb4')]({'item':_0x36cf86,'type':_0x41ed('0xb1')});}return _0x30fc50;}[_0x41ed('0x72')](){const _0x10fa2d=new Map(this['_touched']),_0x534a15=new Map(_0x10fa2d),_0x205464=new Map(),_0xbfd1={'insertions':{},'deletions':{}},_0x2ab57d={'insertions':{},'deletions':{}},_0x152486=new Map(),_0x55e8b5=new Set([...this['_baseRoots'][_0x41ed('0xe6')](),...this[_0x41ed('0xf')][_0x41ed('0xe6')]()]);_0x55e8b5[_0x41ed('0x7b')](_0x41ed('0x109'));for(const _0x133425 of _0x55e8b5){const _0x169088=this[_0x41ed('0xf')]['get'](_0x133425)||G(_0x133425,!0x1),_0x1deb32=this[_0x41ed('0x23')][_0x41ed('0x3a')](_0x133425)||G(_0x133425,!0x1);_0x169088['isAttached']()||_0x1deb32[_0x41ed('0x90')]()?(_0xbfd1['insertions'][_0x133425]=q(_0x169088),_0xbfd1[_0x41ed('0x30')][_0x133425]=q(_0x1deb32),this[_0x41ed('0x14')](_0xbfd1['deletions'][_0x133425],_0x1deb32),this[_0x41ed('0x14')](_0xbfd1[_0x41ed('0x66')][_0x133425],_0x169088),_0x2ab57d['insertions'][_0x133425]=this[_0x41ed('0x80')](this['_idsRoots'][_0x41ed('0x3a')](_0x133425),[]),_0x2ab57d[_0x41ed('0x30')][_0x133425]=this['_generateTape'](this['_baseIdsRoots'][_0x41ed('0x3a')](_0x133425)||G(_0x133425,!0x1),[])):_0x55e8b5[_0x41ed('0x7b')](_0x133425);}for(const _0x465e04 of _0x55e8b5){const _0x56fec2=_0x2ab57d[_0x41ed('0x66')][_0x465e04];for(const _0x3c90fc of _0x56fec2){const _0x104366=this['_getVidAttributeName'](_0x3c90fc),_0x1d1de4=_0x3c90fc[_0x41ed('0x105')][_0x41ed('0xc8')](_0x104366);_0x534a15[_0x41ed('0x7b')](_0x1d1de4),_0x1d1de4>=this['_startingRevisionId']&&_0x205464['set'](_0x1d1de4,_0x10fa2d['get'](_0x1d1de4));}}for(const _0x3956a1 of _0x55e8b5){const _0x42c129=_0x2ab57d[_0x41ed('0x66')][_0x3956a1],_0x28c486=this[_0x41ed('0xa1')](_0x2ab57d[_0x41ed('0x30')][_0x3956a1]);let _0x3493a2=0x0;for(const _0x3e6804 of _0x42c129){const _0x1cc0f4=this[_0x41ed('0x47')](_0x3e6804),_0x450866=_0x3e6804['item'][_0x41ed('0xc8')](_0x1cc0f4);if(!_0x205464[_0x41ed('0x6f')](_0x450866)&&!_0x152486['has'](_0x450866)){if(_0x534a15[_0x41ed('0x6f')](_0x450866))_0x3493a2++;else{if(_0x450866!=_0x28c486[_0x3493a2]){const _0x239a46=_0x10fa2d[_0x41ed('0x3a')](_0x450866)||_0x10fa2d[_0x41ed('0x3a')](_0x28c486[_0x3493a2]);for(;_0x450866!=_0x28c486[_0x3493a2];)_0x534a15['has'](_0x28c486[_0x3493a2])||(_0x152486[_0x41ed('0xd1')](_0x28c486[_0x3493a2],_0x239a46),_0x10fa2d[_0x41ed('0xd1')](_0x28c486[_0x3493a2],_0x239a46)),_0x3493a2++;}_0x3493a2++;}}}}for(const _0x255e62 of _0x55e8b5){const _0x47c0af=_0x2ab57d[_0x41ed('0x66')][_0x255e62];for(const _0x44fa4c of _0x47c0af){const _0x1f7712=this['_getVidAttributeName'](_0x44fa4c),_0x23a006=_0x44fa4c[_0x41ed('0x105')]['getAttribute'](_0x1f7712);if(_0x152486[_0x41ed('0x6f')](_0x23a006)){const _0x37402e=_0x152486[_0x41ed('0x3a')](_0x23a006);_0x534a15['has'](_0x23a006)||_0x534a15[_0x41ed('0xd1')](_0x23a006,{..._0x37402e}),_0x205464[_0x41ed('0xd1')](_0x23a006,{..._0x37402e});}}}for(const _0x327d1f of _0x534a15[_0x41ed('0xe6')]())_0x327d1f>=this[_0x41ed('0x37')]&&_0x534a15[_0x41ed('0x7b')](_0x327d1f);const _0x36bde9=new Map();for(const _0x2b236e of _0x55e8b5){let _0x34b9b6=_0x2ab57d[_0x41ed('0x66')][_0x2b236e];for(const _0x1f1547 of _0x34b9b6)if(_0x1f1547[_0x41ed('0x105')]['is'](_0x41ed('0xa2'),'tableCell')){const _0x10d30c=this[_0x41ed('0x47')](_0x1f1547),_0x1cb2fa=_0x1f1547[_0x41ed('0x105')][_0x41ed('0xc8')](_0x10d30c);if(_0x205464[_0x41ed('0x6f')](_0x1cb2fa)){const _0x562580=_0x1f1547[_0x41ed('0x105')][_0x41ed('0x7a')][_0x41ed('0x7a')][_0x41ed('0xc8')](_0x41ed('0x82')),_0x56dcd5=_0x36bde9['get'](_0x562580)||new Set();_0x56dcd5[_0x41ed('0x2d')](_0x205464[_0x41ed('0x3a')](_0x1cb2fa)[_0x41ed('0xc')]),_0x36bde9[_0x41ed('0xd1')](_0x562580,_0x56dcd5);}}_0x34b9b6=_0x2ab57d[_0x41ed('0x30')][_0x2b236e];for(const _0x20a3ef of _0x34b9b6)if(_0x20a3ef[_0x41ed('0x105')]['is'](_0x41ed('0xa2'),'tableCell')){const _0x406c15=this['_getVidAttributeName'](_0x20a3ef),_0x56f2c5=_0x20a3ef[_0x41ed('0x105')][_0x41ed('0xc8')](_0x406c15);if(_0x534a15['has'](_0x56f2c5)){const _0x23c2fe=_0x20a3ef['item']['parent'][_0x41ed('0x7a')][_0x41ed('0xc8')](_0x41ed('0x82')),_0x1c493e=_0x36bde9[_0x41ed('0x3a')](_0x23c2fe)||new Set();_0x1c493e[_0x41ed('0x2d')](_0x534a15[_0x41ed('0x3a')](_0x56f2c5)[_0x41ed('0xc')]),_0x36bde9[_0x41ed('0xd1')](_0x23c2fe,_0x1c493e);}}for(const _0x9f0a87 of _0x36bde9[_0x41ed('0xe6')]())(_0x205464[_0x41ed('0x6f')](_0x9f0a87)||_0x534a15[_0x41ed('0x6f')](_0x9f0a87))&&_0x36bde9[_0x41ed('0x7b')](_0x9f0a87);}for(const _0x567987 of _0x55e8b5){const _0x55adcc=_0x2ab57d[_0x41ed('0x66')][_0x567987];let _0x290f8b=null,_0x3801f5=null;for(const _0x15aa97 of _0x55adcc){const _0x25069e=this[_0x41ed('0x47')](_0x15aa97),_0xbbe0cd=_0x15aa97['item'][_0x41ed('0xc8')](_0x25069e),_0x38a0ee=_0x36bde9[_0x41ed('0x3a')](_0xbbe0cd);_0x38a0ee&&_0x41ed('0xc0')==_0x15aa97[_0x41ed('0x3')]&&(_0x290f8b=Array[_0x41ed('0xca')](_0x38a0ee)[0x0],_0x3801f5=_0x15aa97[_0x41ed('0x105')][_0x41ed('0xc8')](_0x41ed('0xe1'))),_0x290f8b&&(_0x534a15[_0x41ed('0xd1')](_0xbbe0cd,{'userId':_0x290f8b}),_0x205464[_0x41ed('0xd1')](_0xbbe0cd,{'userId':_0x290f8b})),_0xbbe0cd==_0x3801f5&&(_0x290f8b=null,_0x3801f5=null);}}const _0x1b6a67={},_0x330334=new Set();for(const _0x4f2cf8 of _0x55e8b5){const _0x3afcee=_0xbfd1[_0x41ed('0x30')][_0x4f2cf8],_0x2d3eee=_0xbfd1[_0x41ed('0x66')][_0x4f2cf8];for(const {userId:_0x76a1ba}of this['_touchedMarkers']['values']())null!==_0x76a1ba&&_0x330334[_0x41ed('0x2d')](_0x76a1ba);for(const {userId:_0x319eeb}of this['_touchedRoots'][_0x41ed('0x39')]())null!==_0x319eeb&&_0x330334[_0x41ed('0x2d')](_0x319eeb);this[_0x41ed('0x55')](_0x2d3eee,_0x2ab57d[_0x41ed('0x66')][_0x4f2cf8],_0x205464,_0x41ed('0x9e'),_0x330334),this[_0x41ed('0x55')](_0x3afcee,_0x2ab57d[_0x41ed('0x30')][_0x4f2cf8],_0x534a15,_0x41ed('0x53'),_0x330334),_0x1b6a67[_0x4f2cf8]={'insertions':this['_prepareViewToSave'](_0x2d3eee),'deletions':this[_0x41ed('0xf7')](_0x3afcee),'attachChange':this[_0x41ed('0x4b')]['get'](_0x4f2cf8)||null,'attributesBefore':_0x2cd86e(this[_0x41ed('0x89')][_0x41ed('0x3a')](_0x4f2cf8))||{},'attributesAfter':_0x2cd86e(this[_0x41ed('0x3d')]['get'](_0x4f2cf8))};}return{'diffData':_0x1b6a67,'authorsIds':Array['from'](_0x330334)};}[_0x41ed('0x54')](_0x2e4ad9){for(const [,_0x36ef53]of _0x2e4ad9['markers']){const _0x159f9a=_0x36ef53[_0x41ed('0x1f')][_0x41ed('0xc2')]()[_0x41ed('0x10b')](_0x4bbc60=>_0x41ed('0x1c')==_0x4bbc60['name']);for(const _0x45b792 of _0x159f9a)0x1==_0x45b792[_0x41ed('0x1b')]&&_0x45b792['getChild'](0x0)['is'](_0x41ed('0xa2'),_0x41ed('0x16'))&&_0x45b792[_0x41ed('0xad')](0x0)['_setAttribute'](_0x41ed('0xc7'),!0x0);}}[_0x41ed('0xf7')](_0x457d5e){this[_0x41ed('0x54')](_0x457d5e);const _0x5454d6=this[_0x41ed('0x92')][_0x41ed('0x3e')][_0x41ed('0x2')](_0x457d5e,{}),_0x28d50b=Array[_0x41ed('0xca')](_0x5454d6['getChildren']())[_0x41ed('0xc3')](_0x10dde8=>this['_getViewJson'](_0x10dde8));return JSON[_0x41ed('0x86')](_0x28d50b);}['_getViewJson'](_0x28c275){if(_0x28c275['is'](_0x41ed('0x15')))return _0x28c275['data'];{const _0x127482=_0x28c275;return{'type':Object[_0x41ed('0xe6')](B)[_0x41ed('0xc4')](_0x10a0b1=>_0x28c275 instanceof B[_0x10a0b1]),'name':_0x127482[_0x41ed('0x38')],'attributes':Array[_0x41ed('0xca')](_0x127482[_0x41ed('0x65')]()),'children':Array[_0x41ed('0xca')](_0x127482[_0x41ed('0xcb')]())['map'](_0x2bacce=>this[_0x41ed('0x4e')](_0x2bacce))};}}[_0x41ed('0x55')](_0x4e9670,_0x5cba66,_0x5c5d42,_0x3cb212,_0x19148a){let _0x22fa31=null,_0x2135ef=null,_0x11776c=0x0;const _0x3a2b5d=this[_0x41ed('0x92')][_0x41ed('0xd9')];for(let _0x3b99da=0x0;_0x3b99da<_0x5cba66['length'];_0x3b99da++){const _0x147516=this[_0x41ed('0x47')](_0x5cba66[_0x3b99da]),_0x5d84d4=_0x5cba66[_0x3b99da][_0x41ed('0x105')][_0x41ed('0xc8')](_0x147516),_0x4b01a7=_0x5c5d42['get'](_0x5d84d4),_0x447318=_0x3b99da==_0x5cba66['length']-0x1;(!_0x22fa31&&_0x4b01a7&&(_0x22fa31=_0x4b01a7,_0x2135ef=_0x5cba66[_0x3b99da]),_0x22fa31&&(!_0x4b01a7||_0x4b01a7['userId']!=_0x22fa31[_0x41ed('0xc')]))&&(_0x4382db(_0x4b01a7,L(_0x2135ef,_0x4e9670,_0x3a2b5d),L(_0x5cba66[_0x3b99da],_0x4e9670,_0x3a2b5d)),_0x22fa31=_0x4b01a7||null,_0x2135ef=_0x4b01a7?_0x5cba66[_0x3b99da]:null),_0x22fa31&&_0x447318&&_0x4382db(_0x4b01a7,L(_0x2135ef,_0x4e9670,_0x3a2b5d),W(_0x5cba66[_0x3b99da],_0x4e9670,_0x3a2b5d));}function _0x4382db(_0x49a3f1,_0x43dc36,_0x4fef5b){const _0x2bd36a=_0x22fa31[_0x41ed('0xc')],_0xf62c63='revision:'+_0x3cb212+':'+_0x2bd36a+':'+_0x11776c++,_0x37e94e=_0x3a2b5d[_0x41ed('0x1a')](_0x43dc36,_0x4fef5b);_0x4e9670[_0x41ed('0xe9')][_0x41ed('0xd1')](_0xf62c63,_0x37e94e),null!==_0x2bd36a&&_0x19148a[_0x41ed('0x2d')](_0x2bd36a);}}[_0x41ed('0x47')](_0x35bdaa){switch(_0x35bdaa[_0x41ed('0x3')]){case _0x41ed('0xc0'):return _0x41ed('0x82');case _0x41ed('0xb1'):return _0x41ed('0xe1');default:return _0x41ed('0xf4');}}[_0x41ed('0x88')](_0x4a07e4,_0x523e60){_0x4a07e4[_0x41ed('0xb5')]=null;for(const _0x3dbeaa in _0x4a07e4){const _0x5bc7c7=_0x4a07e4[_0x3dbeaa];if(_0x5bc7c7 instanceof _0x36d179){const _0x1fd392=_0x523e60['get'](_0x5bc7c7['root'][_0x41ed('0x4')]);_0x4a07e4[_0x3dbeaa]=this['_fixPosition'](_0x5bc7c7,_0x1fd392);}if(_0x5bc7c7 instanceof _0x285279){const _0x1441fc=_0x523e60['get'](_0x5bc7c7['root']['rootName']);_0x4a07e4[_0x3dbeaa]=this[_0x41ed('0xee')](_0x5bc7c7,_0x1441fc);}_0x41ed('0x35')===_0x3dbeaa&&(_0x4a07e4[_0x41ed('0x35')]=_0x523e60['get'](_0x4a07e4[_0x41ed('0x35')]['rootName']));}}[_0x41ed('0xee')](_0x5d0e91,_0x21ab51){return this[_0x41ed('0x92')][_0x41ed('0xd9')][_0x41ed('0x1a')](this[_0x41ed('0xab')](_0x5d0e91['start'],_0x21ab51),this[_0x41ed('0xab')](_0x5d0e91['end'],_0x21ab51));}[_0x41ed('0xab')](_0x3773c3,_0x265ccd){return this['editor'][_0x41ed('0xd9')]['createPositionFromPath'](_0x265ccd,_0x3773c3[_0x41ed('0x45')],_0x3773c3[_0x41ed('0xc6')]);}['_handleInsertOperation'](_0xd3cd39){const _0x33b7e7=this[_0x41ed('0xfd')]['get'](_0xd3cd39[_0x41ed('0xf2')][_0x41ed('0x35')]['rootName']),_0x32b3b1=this[_0x41ed('0xab')](_0xd3cd39[_0x41ed('0xf2')],_0x33b7e7),_0x4048cc=null===_0xd3cd39[_0x41ed('0x108')]?null:_0xd3cd39[_0x41ed('0x108')]||this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x3a')]('Users')['me']['id'],_0x45917b=_0x32b3b1[_0x41ed('0x7a')],_0x22b5a5=this[_0x41ed('0xe5')],_0xd965b5=[];for(const _0x2cf018 of _0xd3cd39[_0x41ed('0x2b')])if(_0x2cf018['is'](_0x41ed('0xa2')))_0xd965b5['push'](this[_0x41ed('0xa5')](_0x2cf018));else for(let _0x41953a=0x0;_0x41953a<_0x2cf018[_0x41ed('0x51')];_0x41953a++)_0xd965b5[_0x41ed('0xb4')](new _0x2f4999(_0x41ed('0x15'),{'vid':this[_0x41ed('0xe5')]++}));const _0xadee56=this[_0x41ed('0xe5')];for(let _0x2fb175=_0x22b5a5;_0x2fb175<_0xadee56;_0x2fb175++)this[_0x41ed('0x18')][_0x41ed('0xd1')](_0x2fb175,{'userId':_0x4048cc});_0x45917b[_0x41ed('0xdd')](_0x32b3b1[_0x41ed('0x102')],_0xd965b5);}[_0x41ed('0xef')](_0x3ac1cb){(_0x3ac1cb=this[_0x41ed('0x7e')](_0x3ac1cb,this[_0x41ed('0xfd')]))[_0x41ed('0x67')]();const _0x21553d=null===_0x3ac1cb[_0x41ed('0x108')]?null:_0x3ac1cb[_0x41ed('0x108')]||this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x3a')]('Users')['me']['id'],_0x3d04a5=_0x3ac1cb['getMovedRangeStart'](),_0x777076=_0x3d04a5[_0x41ed('0x7a')],_0x29c028=_0x3d04a5[_0x41ed('0x102')];!function _0x3fb178(_0x574512,_0x5eb1b6,_0x350452,_0x3350bc){for(let _0xe71955=_0x350452;_0xe71955<_0x3350bc;_0xe71955++){const _0x378622=_0x5eb1b6[_0x41ed('0xad')](_0xe71955);_0x378622['is'](_0x41ed('0xa2'),_0x41ed('0x15'))?_0x574512['set'](_0x378622[_0x41ed('0xc8')](_0x41ed('0xf4')),{'userId':_0x21553d}):(_0x574512[_0x41ed('0xd1')](_0x378622[_0x41ed('0xc8')]('vid_start'),{'userId':_0x21553d}),_0x3fb178(_0x574512,_0x378622,0x0,_0x378622[_0x41ed('0x1b')]),_0x574512[_0x41ed('0xd1')](_0x378622['getAttribute'](_0x41ed('0xe1')),{'userId':_0x21553d}));}}(this[_0x41ed('0x18')],_0x777076,_0x29c028,_0x29c028+_0x3ac1cb['howMany']);}[_0x41ed('0xb')](_0x196dc2){const _0x1e508c=null===(_0x196dc2=this[_0x41ed('0x7e')](_0x196dc2,this['_idsRoots']))[_0x41ed('0x108')]?null:_0x196dc2[_0x41ed('0x108')]||this[_0x41ed('0x92')]['plugins'][_0x41ed('0x3a')]('Users')['me']['id'],_0x3c9dfc=_0x196dc2[_0x41ed('0xec')]['parent'],_0x315378=_0x196dc2[_0x41ed('0xc5')]['parent'],_0x404067=_0x3c9dfc['getAttribute'](_0x41ed('0xe1')),_0x3ba74a=_0x315378[_0x41ed('0xc8')](_0x41ed('0x82'));_0x3c9dfc[_0x41ed('0x4a')]('vid_end',_0x315378[_0x41ed('0xc8')](_0x41ed('0xe1'))),_0x315378[_0x41ed('0x4a')](_0x41ed('0xe1'),_0x404067),this[_0x41ed('0x18')][_0x41ed('0xd1')](_0x3ba74a,{'userId':_0x1e508c}),this[_0x41ed('0x18')][_0x41ed('0xd1')](_0x404067,{'userId':_0x1e508c}),_0x196dc2[_0x41ed('0x67')]();}[_0x41ed('0xb3')](_0x31cf01){const _0x22f535=null===(_0x31cf01=this['_cloneOperation'](_0x31cf01,this[_0x41ed('0xfd')]))['_authorId']?null:_0x31cf01[_0x41ed('0x108')]||this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x3a')](_0x41ed('0x3c'))['me']['id'],_0x4c5d16=_0x31cf01[_0x41ed('0x6a')],_0x4fb4b3=_0x31cf01[_0x41ed('0x5d')][_0x41ed('0x7a')];_0x31cf01[_0x41ed('0x67')]();const _0x1248d6=_0x4fb4b3[_0x41ed('0xc8')](_0x41ed('0xe1')),_0x5e3df2=_0x31cf01['insertionPosition']['nodeAfter'];if(_0x4c5d16){const _0x199673=_0x5e3df2[_0x41ed('0xc8')](_0x41ed('0xe1')),_0x274a7c=_0x4fb4b3['getAttribute'](_0x41ed('0xe1'));_0x4fb4b3[_0x41ed('0x4a')]('vid_end',_0x199673),_0x5e3df2[_0x41ed('0x4a')](_0x41ed('0xe1'),_0x274a7c),this[_0x41ed('0x18')]['set'](_0x4fb4b3['getAttribute']('vid_end'),{'userId':_0x22f535}),this[_0x41ed('0x18')]['set'](_0x5e3df2['getAttribute']('vid_start'),{'userId':_0x22f535});}else{const _0x168b9d=this[_0x41ed('0xe5')]++,_0x4d1712=this['_revisionId']++;_0x4fb4b3[_0x41ed('0x4a')](_0x41ed('0xe1'),_0x168b9d),_0x5e3df2[_0x41ed('0x4a')](_0x41ed('0x82'),_0x4d1712),_0x5e3df2[_0x41ed('0x4a')](_0x41ed('0xe1'),_0x1248d6),this[_0x41ed('0x18')]['set'](_0x168b9d,{'userId':_0x22f535}),this['_touched'][_0x41ed('0xd1')](_0x4d1712,{'userId':_0x22f535});}}[_0x41ed('0xd7')](_0x59662c){if(!_0x59662c[_0x41ed('0x59')])return;const _0x2e1ff1=(_0x59662c=this[_0x41ed('0x7e')](_0x59662c,this[_0x41ed('0xf')]))['oldRange']?_0x59662c['oldRange'][_0x41ed('0x35')]:null,_0x493853=_0x59662c['newRange']?_0x59662c['newRange'][_0x41ed('0x35')]:null;_0x2e1ff1&&this[_0x41ed('0x2e')]['delete'](_0x59662c['name']),_0x493853&&this['_markers'][_0x41ed('0xd1')](_0x59662c[_0x41ed('0x38')],_0x59662c[_0x41ed('0x1d')]['clone']());const _0x3a117b=null===_0x59662c[_0x41ed('0x108')]?null:_0x59662c[_0x41ed('0x108')]||this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x3a')](_0x41ed('0x3c'))['me']['id'],_0x3a8923=_0x59662c['name'];if(!this[_0x41ed('0xac')][_0x41ed('0x6f')](_0x3a8923))return void this[_0x41ed('0xac')][_0x41ed('0xd1')](_0x3a8923,{'range':_0x59662c[_0x41ed('0x96')],'userId':_0x3a117b});const _0x463554=this[_0x41ed('0xac')]['get'](_0x3a8923),_0x213f9a=_0x463554[_0x41ed('0xd8')],_0x170459=_0x59662c[_0x41ed('0x1d')];null==_0x213f9a&&null==_0x170459||_0x213f9a&&_0x170459&&_0x213f9a[_0x41ed('0x8f')](_0x170459)?this[_0x41ed('0xac')][_0x41ed('0x7b')](_0x59662c[_0x41ed('0x38')]):_0x463554[_0x41ed('0xc')]=_0x3a117b;}['_handleRootOperation'](_0xfd42bc,_0x377b2b){this[_0x41ed('0xf')][_0x41ed('0x6f')](_0xfd42bc['rootName'])?this[_0x41ed('0xf')]['get'](_0xfd42bc[_0x41ed('0x4')])[_0x41ed('0x22')]=_0xfd42bc['isAdd']:(this[_0x41ed('0xf')][_0x41ed('0xd1')](_0xfd42bc[_0x41ed('0x4')],G(_0xfd42bc[_0x41ed('0x4')],!0x0)),this[_0x41ed('0x3d')][_0x41ed('0xd1')](_0xfd42bc['rootName'],{}),_0x377b2b&&this[_0x41ed('0xfd')][_0x41ed('0xd1')](_0xfd42bc[_0x41ed('0x4')],G(_0xfd42bc[_0x41ed('0x4')],!0x0)));const _0x3db185=null===_0xfd42bc[_0x41ed('0x108')]?null:_0xfd42bc[_0x41ed('0x108')]||this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x3a')]('Users')['me']['id'],_0x5b4ddb=this[_0x41ed('0x4b')]['get'](_0xfd42bc[_0x41ed('0x4')]);_0x5b4ddb&&_0x5b4ddb[_0x41ed('0xc')]===_0x3db185?this['_touchedRoots']['delete'](_0xfd42bc['rootName']):this[_0x41ed('0x4b')][_0x41ed('0xd1')](_0xfd42bc['rootName'],{'userId':_0x3db185,'isAttached':_0xfd42bc['isAdd']});}[_0x41ed('0x41')](_0x2bb07e){const _0x7ed17a=this['_diffRootsAttributes'][_0x41ed('0x3a')](_0x2bb07e[_0x41ed('0x35')]['rootName']);null===_0x2bb07e[_0x41ed('0x4f')]?delete _0x7ed17a[_0x2bb07e[_0x41ed('0x21')]]:_0x7ed17a[_0x2bb07e[_0x41ed('0x21')]]=_0x2bb07e[_0x41ed('0x4f')];}}function q(_0x58c5d0){const _0x5a3e58=G(_0x58c5d0[_0x41ed('0x4')],_0x58c5d0[_0x41ed('0x90')]());for(const _0x57de36 of _0x58c5d0[_0x41ed('0xcb')]()){const _0x55d22d=_0x57de36['_clone'](!0x0);_0x5a3e58[_0x41ed('0x8e')](_0x55d22d);}return _0x5a3e58;}function G(_0x1fc20a,_0x19d421=!0x0){const _0x4e4396=new _0x4fa6bf();return _0x4e4396[_0x41ed('0x4')]=_0x1fc20a,_0x4e4396['_isAttached']=_0x19d421,_0x4e4396[_0x41ed('0x90')]=()=>_0x4e4396[_0x41ed('0x22')],_0x4e4396;}function L(_0xceb9f1,_0x364910,_0x448cfa){const _0x200a5b=_0x41ed('0xb1')==_0xceb9f1[_0x41ed('0x3')]?_0x448cfa[_0x41ed('0xea')](_0xceb9f1[_0x41ed('0x105')],_0x41ed('0x91')):_0x448cfa[_0x41ed('0x98')](_0xceb9f1[_0x41ed('0x105')]);return _0x448cfa['createPositionFromPath'](_0x364910,_0x200a5b[_0x41ed('0x45')],_0x200a5b['stickiness']);}function W(_0x1b530e,_0x818b5e,_0x80583){const _0x31dc59=_0x41ed('0xc0')==_0x1b530e[_0x41ed('0x3')]?_0x80583[_0x41ed('0xea')](_0x1b530e[_0x41ed('0x105')],0x0):_0x80583[_0x41ed('0xda')](_0x1b530e[_0x41ed('0x105')]);return _0x80583[_0x41ed('0x73')](_0x818b5e,_0x31dc59[_0x41ed('0x45')],_0x31dc59[_0x41ed('0xc6')]);}
|