@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231026.0 → 0.0.0-nightly-20231028.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 _0x2fb2=['_prepareViewToSave','resolve','_fixPosition','get','_startingRevisionId','stickiness','_findInsertionIndex','insertions','currentRevision','_getFromVersion','_fixRange','markerToData','offset','data','addRevision','_makeRevision','_handleOperation','toVersion','_insertChild','getRootNames','_appendChild','name','_authorId','_bufferUpdate','clear','_savedMetaData','attributes','isAdd','key','path','baseVersion','getCurrentRevisionId','collaboration.channelId','reinsert','model','creatorId','values','Initial\x20revision','then','Users','useFillerType','has','getOperation','_diffRoots','toData','_replaceEditorDataWithRevisionData','keys','getAttribute','_touchedRoots','markers','dataDowncast','_addPendingAction','getMovedRangeStart','max','_removeRevisionMarkers','slice','graveyardPosition','_fixOperation','history','fromVersion','getRoot','PENDING_ACTION_REVISION_HISTORY','_lastTo','_calculateMetaData','_getBaseVids','includes','delete','createPositionAfter','_touchedMarkers','init','getAttributes','loadState','_bufferedUpdates','reverse','element','_copyMarkers','_getVidAttributeName','tableCell','_removeMetaData','_setConversion','_handleMarkerOperation','isReady','getWalker','_handleRootAttributeOperation','_markChanges','createRangeIn','define','NEGATIVE_INFINITY','addRoot','previousPosition','_execute','setSource','fromEntries','isAttached','position','editor-initial-data-replaced-with-revision-data','initialData','createPositionBefore','_applyOperations','getLatestVersion','createRange','editing','_loadState','_generateTape','attachChange','_isAttached','_saveMetaData','stringify','Empty\x20document','length','getNodeByPath','sendBufferedUpdates','_makeModelFromViewString','toView','merge','_baseRoots','_removePendingAction','_handleInsertOperation','find','detachRoot','end','getRevisionRootsAttributes','deletions','rootName','_baseRootsAttributes','_makeIdsRoot','_startingVersion','shift','_createInitialRevision','document','_diffRootsAttributes','config','_getViewJson','getTransformedByOperation','getTime','revision','finally','forEach','getRevisionDocumentData','newRange','bind','isEnabled','editor','RealTimeCollaborationClient','processor','afterInit','remove','splitPosition','marker','offsetSize','createdAt','parse','saveRevision','_pendingAction','insertion','_initialRevisionId','locale','getUser','RevisionsRepository','_getPreviousFrom','set','getAncestors','vid_start','newValue','_baseIdsRoots','_createCurrentRevision','_isPendingUpdate','clone','addRevisionData','keepParagraph','nodes','getData','repository','_revisionDataBuilder','initial','_handleMergeOperation','$text','getChild','range','_createFromRanges','roots','_touched','updateRevisions','size','revisionHistory.resumeUnsavedRevision','nodeAfter','string','type','rootsAttributes','_idsRoots','_update','start','documentFragment','_clone','getOperations','changeRootAttribute','revision:','_operations','createPositionFromPath','version','sourcePosition','split','deletion','$graveyard','some','elementEnd','buildRevisionData','update','_revisionId','_source','_getState','childCount','children','PendingActions','_reset','requires','plugins','insert','source','getChildren','attributesAfter','adapter','howMany','push','vid','for','_isInit','map','upcast','dataToMarker','_loadedStateData','root','getRevision','_setAttribute','creator','_markers','_cloneOperation','createPositionAt','_lastFrom','vid_end','parent','_handleMoveOperation','_continueCurrentRevision','item','pluginName','revision-start','userId','startsWith','toModel','insertionPosition','authors','elementStart','getRevisions','view','_loadRevisionData','_handleSplitOperation','authorsIds','diffData','add','getIndex','oldRange','conversion','from','_transformMarkers','filter','setRevisionData','attributesBefore'];(function(_0x4b147a,_0x2fb247){const _0x50c0b3=function(_0x490168){while(--_0x490168){_0x4b147a['push'](_0x4b147a['shift']());}};_0x50c0b3(++_0x2fb247);}(_0x2fb2,0x19f));const _0x50c0=function(_0x4b147a,_0x2fb247){_0x4b147a=_0x4b147a-0x0;let _0x50c0b3=_0x2fb2[_0x4b147a];return _0x50c0b3;};import{Users as _0x4d9a82}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x3831e3,PendingActions as _0x37dec1}from'ckeditor5/src/core';import{logWarning as _0x59f0b2,uid as _0x35cac9}from'ckeditor5/src/utils';import{Position as _0x53c7bd,Range as _0x4d128e,Element as _0x230b69,DocumentFragment as _0x88f57b,ViewText as _0x34e707,ViewElement as _0x3404d8,ViewContainerElement as _0x398f49,ViewAttributeElement as _0x412f63,ViewEmptyElement as _0x44fdb2,ViewRawElement as _0xcb41f6,ViewUIElement as _0x3b1332,ViewDocumentFragment as _0x35c3c0}from'ckeditor5/src/engine';import _0x2214a5 from'./revisionsrepository';import{getTranslation as _0x38eb67}from'./utils/common-translations';import{cloneDeep as _0x879743,isEqual as _0x42e45c}from'lodash-es';const B={'c':_0x398f49,'a':_0x412f63,'e':_0x44fdb2,'r':_0xcb41f6,'u':_0x3b1332};export default class l extends _0x3831e3{static get[_0x50c0('0x60')](){return'RevisionTracker';}static get[_0x50c0('0x43')](){return[_0x4d9a82,_0x2214a5,_0x37dec1];}constructor(_0x55ea71){super(_0x55ea71),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new H(this[_0x50c0('0x105')]),this[_0x50c0('0x7')]=this[_0x50c0('0x105')][_0x50c0('0xfa')]['get'](_0x50c0('0x97'))||_0x50c0('0x1a'),this[_0x50c0('0xbf')]=new Map(),this[_0x50c0('0x52')]=null;const _0x2bc3c6=_0x35cac9();this[_0x50c0('0x3d')]={'history':this['editor']['model'][_0x50c0('0xf8')][_0x50c0('0xb1')],'getLatestVersion':()=>Promise[_0x50c0('0x78')](this[_0x50c0('0x105')]['model']['document'][_0x50c0('0x33')]),'getCurrentRevisionId':()=>_0x2bc3c6},this[_0x50c0('0xc')](_0x50c0('0xc8'),!0x1),this['set'](_0x50c0('0x104'),!0x0),this[_0x50c0('0xc')](_0x50c0('0x12'),!0x1),this[_0x50c0('0x105')][_0x50c0('0xfa')][_0x50c0('0xcd')](_0x50c0('0x24'),!0x0),this['editor'][_0x50c0('0x71')][_0x50c0('0x4d')](_0x50c0('0x50'))[_0x50c0('0x51')]({'view':_0x50c0('0xfe')});}[_0x50c0('0xbc')](){this[_0x50c0('0x18')]=this[_0x50c0('0x105')]['plugins'][_0x50c0('0x7a')](_0x50c0('0xa')),this[_0x50c0('0xc6')](),this[_0x50c0('0x105')]['data']['on']('ready',()=>{const _0xfd3c49=this['repository']['getRevision'](0x0),_0x2ce3fb=_0xfd3c49&&null===_0xfd3c49[_0x50c0('0x56')]?_0xfd3c49:null;if(this['_continueCurrentRevision']=!!_0x2ce3fb&&this[_0x50c0('0x105')][_0x50c0('0xfa')]['get'](_0x50c0('0x24')),this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0xa0')](_0x50c0('0x106'))){const _0x59a9f5=this[_0x50c0('0x3d')][_0x50c0('0x96')](),_0x2561a4=this['repository'][_0x50c0('0x54')](_0x59a9f5);if(_0x2561a4)this[_0x50c0('0xf5')]=_0x2561a4[_0x50c0('0xb2')],this[_0x50c0('0x5e')]=!0x1;else{const _0x1c7315=this[_0x50c0('0x3d')][_0x50c0('0xb1')][_0x50c0('0x31')][_0x50c0('0xed')](_0x2c05f8=>!_0x2c05f8[_0x50c0('0x4e')]),_0x451cb6=_0x1c7315?_0x1c7315[_0x50c0('0x95')]:this['_source']['history']['version'];_0xfd3c49?(_0xfd3c49['toVersion']<_0x451cb6&&_0xfd3c49[_0x50c0('0x2a')]({'toVersion':_0x451cb6}),this['_continueCurrentRevision']?(this[_0x50c0('0x3d')][_0x50c0('0x96')]=()=>_0x2ce3fb['id'],this[_0x50c0('0xf5')]=_0x2ce3fb[_0x50c0('0xb2')]):(this[_0x50c0('0xf5')]=_0xfd3c49[_0x50c0('0x88')],this['_continueCurrentRevision']=!0x1)):(this[_0x50c0('0xf5')]=_0x451cb6,this[_0x50c0('0x5e')]=!0x1);}}else _0x2ce3fb&&(this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xf8')][_0x50c0('0xb1')][_0x50c0('0x33')]=Math[_0x50c0('0xac')](_0x2ce3fb[_0x50c0('0x88')],this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xf8')]['history'][_0x50c0('0x33')]),_0x2ce3fb['fromVersion']===_0x2ce3fb['toVersion']?(0x0!==_0x2ce3fb['fromVersion']&&(this[_0x50c0('0x3d')][_0x50c0('0x96')]=()=>_0x2ce3fb['id']),this[_0x50c0('0x5e')]=!0x1):this[_0x50c0('0x5e')]&&(this[_0x50c0('0x3d')][_0x50c0('0x96')]=()=>_0x2ce3fb['id'],this['_startingVersion']=_0x2ce3fb['fromVersion'])),this[_0x50c0('0x5e')]||(this[_0x50c0('0xf5')]=this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xf8')][_0x50c0('0x33')]);this[_0x50c0('0x19')][_0x50c0('0xbc')](this[_0x50c0('0x3d')][_0x50c0('0xb1')]),this[_0x50c0('0xf7')](this[_0x50c0('0xf5')]),this[_0x50c0('0x11')](this[_0x50c0('0xf5')]),this['adapter']&&this['sendBufferedUpdates']();}),this[_0x50c0('0x103')](_0x50c0('0xc8'))['to'](this,_0x50c0('0x12'),_0x100947=>!_0x100947);}async[_0x50c0('0x108')](){if(this[_0x50c0('0x18')][_0x50c0('0xe4')]>0x0){const _0x5eea3e=this[_0x50c0('0x18')]['getRevision'](0x0),_0x5474ef=await this[_0x50c0('0x101')](_0x5eea3e),_0x57cf05=await this[_0x50c0('0xf0')](_0x5eea3e);this[_0x50c0('0xa4')](_0x5474ef,_0x57cf05);}}[_0x50c0('0xd2')](_0x14a47f){this[_0x50c0('0x3d')]=_0x14a47f;}async[_0x50c0('0x3b')](){const _0x3ab27a=await this[_0x50c0('0x3d')][_0x50c0('0xda')]();if(_0x3ab27a>this[_0x50c0('0x7f')][_0x50c0('0x88')]){await this['_loadState']();const _0x3bcacc=this['buildRevisionData']({'revision':this[_0x50c0('0x7f')],'to':_0x3ab27a});_0x3bcacc[_0x50c0('0x66')]=_0x3bcacc[_0x50c0('0x6c')]['map'](_0xb53b96=>this['editor'][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x9e'))['getUser'](_0xb53b96)),this[_0x50c0('0x7f')][_0x50c0('0x2a')](_0x3bcacc);}}async[_0x50c0('0xdd')](){this['_continueCurrentRevision']&&!this[_0x50c0('0x52')]&&(await this[_0x50c0('0x6a')](this[_0x50c0('0x7f')]),this[_0x50c0('0x19')][_0x50c0('0xbe')](this[_0x50c0('0x7f')]),this[_0x50c0('0x52')]={'fromVersion':this[_0x50c0('0x7f')]['fromVersion'],'authors':this[_0x50c0('0x7f')][_0x50c0('0x66')]['slice']()});}async[_0x50c0('0x4')](_0x5dcfbd={},_0x176a53=null){const _0x3e20dc=[];await this[_0x50c0('0xdd')](),this[_0x50c0('0x5e')]=!0x1,_0x176a53>this[_0x50c0('0x7f')][_0x50c0('0x88')]&&(_0x176a53=null),null===_0x176a53&&(_0x176a53=await this['_source'][_0x50c0('0xda')]());const _0x6add56=this[_0x50c0('0x80')](_0x176a53),_0x5a31d9=this[_0x50c0('0x3a')]({'from':_0x6add56,'to':_0x176a53});if(this[_0x50c0('0x7f')]['toVersion']<_0x176a53){const _0x21e0d1=this['buildRevisionData']({'revision':this[_0x50c0('0x7f')],'from':_0x176a53,'to':_0x176a53});_0x21e0d1[_0x50c0('0x66')]=[],_0x21e0d1[_0x50c0('0x6c')]=[],_0x21e0d1['id']=this[_0x50c0('0x7f')]['id'],this[_0x50c0('0x7f')][_0x50c0('0x2a')](_0x21e0d1,!0x0),delete _0x21e0d1[_0x50c0('0x66')],_0x3e20dc[_0x50c0('0x4b')](_0x21e0d1);}_0x5dcfbd[_0x50c0('0x9a')]=this[_0x50c0('0x105')][_0x50c0('0x44')]['get'](_0x50c0('0x9e'))['me']['id'],_0x5dcfbd['name']=_0x5dcfbd[_0x50c0('0x8c')]||null,_0x5dcfbd['id']=_0x5dcfbd['id']||_0x35cac9(),_0x5dcfbd={..._0x5dcfbd,..._0x5a31d9};const _0x1f4e83=this['addRevisionData'](_0x5dcfbd);_0x3e20dc['push'](_0x5dcfbd);const _0x32278f=this[_0x50c0('0x18')][_0x50c0('0x6f')](_0x1f4e83);if(0x0!==_0x32278f){const _0xc7c428=this['repository']['getRevision'](_0x32278f-0x1);if(_0xc7c428[_0x50c0('0xb2')]!==_0x176a53){const _0x5ce5cb=this[_0x50c0('0x19')][_0x50c0('0x17')](_0x176a53,_0xc7c428['toVersion']),_0x176745={'id':_0xc7c428['id'],'diffData':_0x5ce5cb[_0x50c0('0x6d')],'authorsIds':_0x5ce5cb[_0x50c0('0x6c')],'authors':_0x5ce5cb['authorsIds'][_0x50c0('0x4f')](_0x1a47f3=>this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0x7a')]('Users')[_0x50c0('0x9')](_0x1a47f3)),'fromVersion':_0x176a53};_0xc7c428===this['currentRevision']&&(_0x176745[_0x50c0('0x2')]=new Date(_0x5dcfbd['createdAt'][_0x50c0('0xfd')]()+0xa)),_0xc7c428['_update'](_0x176745,!0x0),delete _0x176745[_0x50c0('0x66')],_0x3e20dc[_0x50c0('0x4b')](_0x176745);}}if(this[_0x50c0('0x49')]){for(const _0x5578a1 of _0x3e20dc)this[_0x50c0('0x8e')](_0x5578a1['id'],_0x5578a1,!0x0);this[_0x50c0('0xe6')]();}return _0x1f4e83;}[_0x50c0('0x14')](_0x2971ef){const _0x16eaa4=this[_0x50c0('0x18')]['createRevision'](_0x2971ef);return this[_0x50c0('0x49')]&&_0x16eaa4['on'](_0x50c0('0x2a'),(_0x39a383,_0x537da7,_0x5b46b5)=>{_0x5b46b5||(this['_bufferUpdate'](_0x537da7['id'],_0x537da7,!0x0),this[_0x50c0('0xe6')]());}),this[_0x50c0('0x18')][_0x50c0('0x85')](_0x16eaa4,this[_0x50c0('0x7d')](_0x16eaa4)),_0x16eaa4;}async['getRevisionDocumentData'](_0x2fa692){await this['_loadRevisionData'](_0x2fa692);const _0x5c67f2={};for(const _0x5523d5 in _0x2fa692['diffData']){if(_0x2fa692[_0x50c0('0x6d')][_0x5523d5][_0x50c0('0xdf')]&&!_0x2fa692['diffData'][_0x5523d5]['attachChange'][_0x50c0('0xd4')])continue;const _0x16e617=this['_removeRevisionMarkers'](JSON[_0x50c0('0x3')](_0x2fa692[_0x50c0('0x6d')][_0x5523d5][_0x50c0('0x7e')])),_0x15c758=this[_0x50c0('0x105')][_0x50c0('0xdc')][_0x50c0('0x69')][_0x50c0('0xf8')],_0x515545=new _0x35c3c0(_0x15c758,_0x16e617[_0x50c0('0x4f')](_0xea2401=>J(_0xea2401,this[_0x50c0('0x105')])));this[_0x50c0('0x105')][_0x50c0('0x84')][_0x50c0('0x107')]['useFillerType']('marked'),_0x5c67f2[_0x5523d5]=this[_0x50c0('0x105')][_0x50c0('0x84')]['processor'][_0x50c0('0xa3')](_0x515545),this[_0x50c0('0x105')][_0x50c0('0x84')][_0x50c0('0x107')][_0x50c0('0x9f')]('default');}return _0x5c67f2;}async[_0x50c0('0xf0')](_0x46630b){await this[_0x50c0('0x6a')](_0x46630b);const _0x10ed53={};for(const _0x1f88d5 in _0x46630b[_0x50c0('0x6d')])_0x46630b[_0x50c0('0x6d')][_0x1f88d5][_0x50c0('0xdf')]&&!_0x46630b[_0x50c0('0x6d')][_0x1f88d5][_0x50c0('0xdf')]['isAttached']||(_0x10ed53[_0x1f88d5]=_0x46630b[_0x50c0('0x6d')][_0x1f88d5][_0x50c0('0x48')]||{});return _0x10ed53;}['sendBufferedUpdates'](){if(0x0===this[_0x50c0('0xbf')]['size'])return;if(this[_0x50c0('0x12')])return;let _0x273c8a=Array[_0x50c0('0x72')](this[_0x50c0('0xbf')]['values']());this[_0x50c0('0xbf')][_0x50c0('0x8f')]();for(let _0xc5a176=0x0;_0xc5a176<_0x273c8a[_0x50c0('0xe4')];_0xc5a176++){const _0x28ac74=_0x273c8a[_0xc5a176];let _0x59a26d=!0x1;for(const _0x22df85 of Object[_0x50c0('0xa5')](_0x28ac74))void 0x0===_0x28ac74[_0x22df85]?delete _0x28ac74[_0x22df85]:'id'!==_0x22df85&&(_0x59a26d=!0x0);_0x59a26d||(_0x273c8a[_0xc5a176]=null);}if(_0x273c8a=_0x273c8a[_0x50c0('0x74')](_0x57c128=>null!==_0x57c128),!_0x273c8a[_0x50c0('0xe4')])return;for(let _0x4810eb=0x0;_0x4810eb<_0x273c8a['length'];_0x4810eb++){const _0xf4c79a=_0x273c8a[_0x4810eb];void 0x0!==_0xf4c79a['fromVersion']&&void 0x0===_0xf4c79a[_0x50c0('0x88')]&&(_0xf4c79a[_0x50c0('0x88')]=this[_0x50c0('0x18')][_0x50c0('0x54')](_0xf4c79a['id'])[_0x50c0('0x88')]),void 0x0!==_0xf4c79a[_0x50c0('0x88')]&&void 0x0===_0xf4c79a['fromVersion']&&(_0xf4c79a[_0x50c0('0xb2')]=this['repository'][_0x50c0('0x54')](_0xf4c79a['id'])[_0x50c0('0xb2')]);}const _0x59d6ef=this[_0x50c0('0x105')]['config']['get'](_0x50c0('0x97'));this[_0x50c0('0x12')]=!0x0,this[_0x50c0('0xaa')](),this[_0x50c0('0x49')][_0x50c0('0x22')](_0x273c8a,_0x59d6ef)[_0x50c0('0xff')](()=>{this['_isPendingUpdate']=!0x1;})[_0x50c0('0x9d')](_0x5c1ba7=>{if(_0x5c1ba7)for(const _0x248f68 of _0x5c1ba7)this[_0x50c0('0x75')]({'id':_0x248f68['id'],'createdAt':_0x248f68[_0x50c0('0x2')]});this[_0x50c0('0xeb')](),this[_0x50c0('0xe6')]();});}[_0x50c0('0xa4')](_0x410e24,_0x19a9cc){let _0x2fb5c4=this[_0x50c0('0x105')][_0x50c0('0xfa')][_0x50c0('0x7a')](_0x50c0('0xd7')),_0x25a7a4=this[_0x50c0('0x105')]['config']['get'](_0x50c0('0x28'));if(void 0x0===_0x2fb5c4){_0x2fb5c4={};for(const _0xd9762b of this[_0x50c0('0x105')][_0x50c0('0x99')]['document'][_0x50c0('0x8a')]())_0x2fb5c4[_0xd9762b]='';}if(_0x50c0('0x26')==typeof _0x2fb5c4&&(_0x2fb5c4={'main':_0x2fb5c4}),void 0x0===_0x25a7a4){_0x25a7a4={};for(const _0x8fa07c of this[_0x50c0('0x105')][_0x50c0('0x99')]['document'][_0x50c0('0x8a')]())_0x25a7a4[_0x8fa07c]={};}let _0x283559=!0x1;const _0x9fc5b9=Object[_0x50c0('0xa5')](_0x2fb5c4),_0x5d1d76=Object[_0x50c0('0xa5')](_0x410e24);for(const _0x5dcf47 of _0x9fc5b9){if(_0x2fb5c4[_0x5dcf47]!==_0x410e24[_0x5dcf47]&&''!==_0x2fb5c4[_0x5dcf47]['trim']()){_0x283559=!0x0;break;}if(!_0x42e45c(_0x25a7a4[_0x5dcf47],_0x19a9cc[_0x5dcf47])&&Object[_0x50c0('0xa5')](_0x25a7a4[_0x5dcf47])[_0x50c0('0xe4')]>0x0){_0x283559=!0x0;break;}}_0x283559||(_0x283559=_0x5d1d76[_0x50c0('0x38')](_0x79bb8=>!this['editor']['model'][_0x50c0('0xf8')][_0x50c0('0xb3')](_0x79bb8))),_0x283559&&_0x59f0b2(_0x50c0('0xd6'),{'editorData':_0x2fb5c4,'editorRootsAttributes':_0x25a7a4,'revisionData':_0x410e24,'revisionRootsAttributes':_0x19a9cc}),this[_0x50c0('0x105')][_0x50c0('0xfa')][_0x50c0('0xc')]('initialData',_0x410e24),this[_0x50c0('0x105')]['config']['set'](_0x50c0('0x28'),_0x19a9cc);}[_0x50c0('0xaa')](){if(!this[_0x50c0('0x5')]){const _0x47af30=this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x41'));this[_0x50c0('0x5')]=_0x47af30['add'](_0x38eb67(this[_0x50c0('0x105')]['locale'],_0x50c0('0xb4')));}}['_removePendingAction'](){this[_0x50c0('0x5')]&&(this[_0x50c0('0x105')]['plugins'][_0x50c0('0x7a')](_0x50c0('0x41'))[_0x50c0('0x109')](this[_0x50c0('0x5')]),this[_0x50c0('0x5')]=null);}[_0x50c0('0x7d')](_0x2dd973){const _0x834824=this[_0x50c0('0x18')][_0x50c0('0x68')]();_0x834824['reverse']();let _0x2fbf41=0x0;for(;_0x2fbf41<_0x834824[_0x50c0('0xe4')];){const _0x513d4c=_0x834824[_0x2fbf41];if(_0x513d4c===this[_0x50c0('0x7f')]){_0x2fbf41++;continue;}if(_0x513d4c['id']===this[_0x50c0('0x7')])break;const _0x396d91=_0x2dd973[_0x50c0('0x88')]-_0x513d4c[_0x50c0('0x88')]||_0x2dd973[_0x50c0('0xb2')]-_0x513d4c[_0x50c0('0xb2')];if(_0x396d91>0x0)break;if(_0x396d91<0x0)_0x2fbf41++;else{if(!_0x2dd973['creator']&&_0x513d4c[_0x50c0('0x56')])break;if(_0x513d4c[_0x50c0('0x56')]||!_0x2dd973['creator']){if(_0x2dd973[_0x50c0('0x2')]>_0x513d4c['createdAt'])break;_0x2fbf41++;}else _0x2fbf41++;}}return _0x2fbf41;}[_0x50c0('0x75')](_0x476ca3){const _0x204364=this[_0x50c0('0x18')]['getRevision'](_0x476ca3['id']);if(_0x476ca3[_0x50c0('0x2')]&&(_0x476ca3[_0x50c0('0x2')]=new Date(_0x476ca3[_0x50c0('0x2')])),_0x476ca3[_0x50c0('0x6c')]){const _0x92d005=this['editor'][_0x50c0('0x44')]['get'](_0x50c0('0x9e'));_0x476ca3['authors']=_0x476ca3[_0x50c0('0x6c')][_0x50c0('0x4f')](_0x2a6eea=>_0x92d005[_0x50c0('0x9')](_0x2a6eea));}_0x204364[_0x50c0('0x2a')](_0x476ca3,!0x0);}[_0x50c0('0x3a')]({revision:_0x26e814=null,from:_0x29cefa=null,to:_0x9b1ad5=null}){_0x29cefa=null!==_0x29cefa?_0x29cefa:_0x26e814[_0x50c0('0xb2')],_0x9b1ad5=null!==_0x9b1ad5?_0x9b1ad5:_0x26e814['toVersion'];const _0x29e294=this['_revisionDataBuilder']['getData'](_0x29cefa,_0x9b1ad5),_0x541e50={'diffData':_0x29e294[_0x50c0('0x6d')],'authorsIds':_0x29e294[_0x50c0('0x6c')],'fromVersion':_0x29cefa,'toVersion':_0x9b1ad5};if(!_0x26e814||_0x9b1ad5!==_0x26e814[_0x50c0('0x88')]){const _0x41f901=_0x9b1ad5-0x1,_0x40a197=this['_source']['history'][_0x50c0('0xa1')](_0x41f901);_0x541e50[_0x50c0('0x2')]=_0x40a197&&_0x40a197[_0x50c0('0x2')]||new Date();}if(this[_0x50c0('0x52')]&&_0x29cefa===this[_0x50c0('0x52')]['fromVersion'])for(const _0x148f1f of this[_0x50c0('0x52')]['authors'])_0x541e50[_0x50c0('0x6c')][_0x50c0('0xb8')](_0x148f1f['id'])||_0x541e50[_0x50c0('0x6c')][_0x50c0('0x4b')](_0x148f1f['id']);return _0x541e50;}[_0x50c0('0x6a')](_0x20f7d0){if(!_0x20f7d0||_0x20f7d0[_0x50c0('0x6d')])return Promise[_0x50c0('0x78')]();{const _0x45f3b2=this[_0x50c0('0x105')][_0x50c0('0xfa')][_0x50c0('0x7a')](_0x50c0('0x97'));return this[_0x50c0('0x49')][_0x50c0('0x54')]({'channelId':_0x45f3b2,'revisionId':_0x20f7d0['id']})['then'](_0x2d4f1f=>{_0x20f7d0[_0x50c0('0x6d')]=_0x2d4f1f['diffData'];});}}[_0x50c0('0x8e')](_0x3e6560,_0x3c624f,_0x4c5a67){if(this[_0x50c0('0xbf')][_0x50c0('0xa0')](_0x3e6560)){const _0x3d9f37=this[_0x50c0('0xbf')][_0x50c0('0x7a')](_0x3e6560);_0x3c624f=_0x4c5a67?{..._0x3d9f37,..._0x3c624f}:{..._0x3c624f,..._0x3d9f37};}this[_0x50c0('0xbf')][_0x50c0('0xc')](_0x3e6560,_0x3c624f);}[_0x50c0('0x80')](_0x198d49){const _0x40e7b7=this[_0x50c0('0x18')]['getRevisions']();_0x40e7b7[_0x50c0('0xc0')](),_0x40e7b7[_0x50c0('0xf6')]();const _0x1313c1=_0x40e7b7[_0x50c0('0xed')](_0x5b7771=>_0x5b7771['toVersion']<=_0x198d49)[_0x50c0('0x88')];return _0x1313c1<this[_0x50c0('0xf5')]?this[_0x50c0('0xf5')]:_0x1313c1;}[_0x50c0('0xf7')](_0x259433){const _0x16079d=this['repository'][_0x50c0('0x54')](this['repository'][_0x50c0('0xe4')]-0x1);if(_0x16079d)this[_0x50c0('0x7')]=_0x16079d['id'];else{const _0x576691=!this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xf8')][_0x50c0('0x20')][_0x50c0('0xed')](_0x1c53a=>this[_0x50c0('0x105')][_0x50c0('0x99')]['hasContent'](_0x1c53a)),_0x52a504=this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x9e'))['me']['id'],_0x2d587b=_0x38eb67(this[_0x50c0('0x105')][_0x50c0('0x8')],_0x576691?_0x50c0('0xe3'):_0x50c0('0x9c'));this[_0x50c0('0x86')]({'from':_0x259433,'to':_0x259433,'id':this[_0x50c0('0x7')],'name':_0x2d587b,'creatorId':_0x52a504});}}['_createCurrentRevision'](_0x1d75b3){const _0x496b4e=this['_source'][_0x50c0('0x96')]();this[_0x50c0('0x7f')]=this[_0x50c0('0x18')][_0x50c0('0x54')](_0x496b4e),this[_0x50c0('0x7f')]||(this[_0x50c0('0x7f')]=this['_makeRevision']({'from':_0x1d75b3,'to':_0x1d75b3,'id':_0x496b4e,'name':'','creatorId':null}));}[_0x50c0('0x86')]({name:_0x3d533b,from:_0x475ddb,to:_0xdc199e,creatorId:_0x5a698d,id:_0x4e8c6e}){const _0x576a96=this[_0x50c0('0x3a')]({'from':_0x475ddb,'to':_0xdc199e});_0x576a96[_0x50c0('0x8c')]=_0x3d533b,_0x576a96[_0x50c0('0x9a')]=_0x5a698d,_0x576a96['id']=_0x4e8c6e;const _0x1695ac=this[_0x50c0('0x14')](_0x576a96);return this[_0x50c0('0x49')]&&this[_0x50c0('0x8e')](_0x576a96['id'],_0x576a96,!0x0),_0x1695ac;}[_0x50c0('0xc6')](){this[_0x50c0('0x105')][_0x50c0('0x71')][_0x50c0('0x4d')](_0x50c0('0xa9'))[_0x50c0('0x82')]({'model':_0x50c0('0xfe')});}[_0x50c0('0xad')](_0x32b397){return(_0x32b397=_0x32b397['filter'](_0xdbc59=>!_0xdbc59['name']||_0x50c0('0x61')!==_0xdbc59[_0x50c0('0x8c')]&&'revision-end'!==_0xdbc59['name']))[_0x50c0('0x100')](_0x4bd8d6=>{_0x50c0('0x26')!=typeof _0x4bd8d6&&(_0x4bd8d6[_0x50c0('0x40')]=this[_0x50c0('0xad')](_0x4bd8d6[_0x50c0('0x40')]),_0x4bd8d6[_0x50c0('0x91')]=_0x4bd8d6['attributes'][_0x50c0('0x74')](_0x28aed2=>!_0x28aed2[0x0][_0x50c0('0x63')]('data-revision-')));}),_0x32b397;}}function J(_0x78def,_0x322534){const _0x5ca7a6=_0x322534[_0x50c0('0xdc')]['view']['document'];if('string'==typeof _0x78def)return new _0x34e707(_0x5ca7a6,_0x78def);{const _0x477406=_0x78def[_0x50c0('0x40')][_0x50c0('0x4f')](_0xa3a74b=>J(_0xa3a74b,_0x322534));return new(B[_0x78def[(_0x50c0('0x27'))]]||_0x3404d8)(_0x5ca7a6,_0x78def['name'],_0x78def[_0x50c0('0x91')],_0x477406);}}class H{constructor(_0x2cbd7e){this[_0x50c0('0x105')]=_0x2cbd7e,this[_0x50c0('0x90')]=new Map(),this[_0x50c0('0x5a')]=-0x1,this[_0x50c0('0xb5')]=-0x1,this['_markers']=new Map(),this[_0x50c0('0xa2')]=new Map(),this[_0x50c0('0xf9')]=new Map(),this[_0x50c0('0xea')]=new Map(),this[_0x50c0('0xf3')]=new Map(),this[_0x50c0('0x29')]=new Map(),this[_0x50c0('0x10')]=new Map(),this[_0x50c0('0x21')]=new Map(),this[_0x50c0('0xbb')]=new Map(),this[_0x50c0('0xa7')]=new Map(),this[_0x50c0('0x3c')]=0x1;}[_0x50c0('0xbc')](_0x1e840d){this[_0x50c0('0x46')]=_0x1e840d;const _0xdac93b=new Map(),_0x281128=new Map(),_0x2369a0=this[_0x50c0('0x105')]['model']['document'][_0x50c0('0x20')][_0x50c0('0x4f')](_0x2ad84a=>_0x2ad84a['rootName']);for(const _0x3d3265 of _0x2369a0){const _0x44a0c9=this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xf8')][_0x50c0('0xb3')](_0x3d3265),_0x233319=q(_0x44a0c9);_0xdac93b['set'](_0x3d3265,_0x233319),_0x281128['set'](_0x3d3265,Object[_0x50c0('0xd3')](_0x44a0c9['getAttributes']()));}const _0x176cec=Array[_0x50c0('0x72')](this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xa8')])[_0x50c0('0x4f')](_0x151d0e=>[_0x151d0e['name'],_0x151d0e['getRange']()]),_0x246031=this[_0x50c0('0x46')][_0x50c0('0x33')];this[_0x50c0('0xe1')](_0x246031,_0xdac93b,_0x176cec,_0x281128),this[_0x50c0('0x7b')]=this['_revisionId'];const _0xcaa5c7=new Map(),_0xfa13b8=new Map();for(const _0x1d4b9d of _0x2369a0){const _0x213815=G(_0x1d4b9d);_0xcaa5c7['set'](_0x1d4b9d,_0x213815),_0xfa13b8[_0x50c0('0xc')](_0x1d4b9d,{});}this[_0x50c0('0xe1')](Number['NEGATIVE_INFINITY'],_0xcaa5c7,[],_0xfa13b8);}[_0x50c0('0x17')](_0x217887,_0x44a7bb){if(this[_0x50c0('0x5a')]===_0x217887&&this[_0x50c0('0xb5')]<=_0x44a7bb)this[_0x50c0('0x90')][_0x50c0('0x23')]>0x1&&this[_0x50c0('0xc5')](this[_0x50c0('0xb5')]),this['_applyOperations'](this[_0x50c0('0xb5')],_0x44a7bb,!0x0);else{if(!this[_0x50c0('0x90')][_0x50c0('0xa0')](_0x217887)){const _0x3797f0=this[_0x50c0('0xb')](_0x217887);this[_0x50c0('0xb6')](_0x3797f0,_0x217887,!0x1);}this['_calculateMetaData'](_0x217887,_0x44a7bb,!0x0);}return this['_lastFrom']=_0x217887,this[_0x50c0('0xb5')]=_0x44a7bb,this[_0x50c0('0x3e')]();}['loadState'](_0x2409e1){this[_0x50c0('0x42')](),this['_lastFrom']=_0x2409e1['fromVersion'],this[_0x50c0('0xb5')]=_0x2409e1[_0x50c0('0x88')];for(const _0x49d6c9 in _0x2409e1['diffData']){const _0x491702=_0x2409e1[_0x50c0('0x6d')][_0x49d6c9][_0x50c0('0xdf')],_0x8a38ce=_0x879743(_0x2409e1[_0x50c0('0x6d')][_0x49d6c9][_0x50c0('0x76')])||{},_0x5a3bc3=this[_0x50c0('0xe7')](_0x2409e1[_0x50c0('0x6d')][_0x49d6c9]['deletions']);_0x5a3bc3[_0x50c0('0xf2')]=_0x49d6c9,_0x5a3bc3[_0x50c0('0xe0')]=!_0x491702||!_0x491702[_0x50c0('0xd4')],_0x5a3bc3[_0x50c0('0xd4')]=()=>_0x5a3bc3['_isAttached'],this[_0x50c0('0xea')][_0x50c0('0xc')](_0x49d6c9,_0x5a3bc3),this['_baseRootsAttributes'][_0x50c0('0xc')](_0x49d6c9,_0x8a38ce),_0x491702&&this[_0x50c0('0xa7')][_0x50c0('0xc')](_0x49d6c9,_0x491702);const _0x235ee1=this['_makeIdsRoot'](_0x5a3bc3);this['_baseIdsRoots'][_0x50c0('0xc')](_0x49d6c9,_0x235ee1);for(const [_0x31765f,_0x56b1ba]of _0x5a3bc3[_0x50c0('0xa8')]){if(!_0x31765f[_0x50c0('0x63')](_0x50c0('0x30')))continue;const _0xb546c7=_0x31765f[_0x50c0('0x35')](':')[0x2];for(const _0x55ce35 of _0x56b1ba[_0x50c0('0xc9')]({'singleCharacters':!0x0})){const _0x205e8d=this[_0x50c0('0xc3')](_0x55ce35),_0x1b963e=_0x50c0('0x39')==_0x55ce35[_0x50c0('0x27')]?_0x55ce35[_0x50c0('0xd0')][_0x50c0('0x94')][_0x50c0('0xae')](0x0,-0x1):_0x55ce35['previousPosition']['path'],_0x2502f9=_0x235ee1[_0x50c0('0xe5')](_0x1b963e)['getAttribute'](_0x205e8d);this['_touched']['set'](_0x2502f9,{'userId':_0xb546c7});}}}this[_0x50c0('0x7b')]=this['_revisionId'];const _0x588e68=[...Array(this[_0x50c0('0x3c')])[_0x50c0('0xa5')]()][_0x50c0('0xae')](0x1)[_0x50c0('0x74')](_0xa45977=>!this[_0x50c0('0x21')][_0x50c0('0xa0')](_0xa45977));let _0x6eb1e=0x0;const _0x5916ef=new Map();for(const _0x5e2940 in _0x2409e1[_0x50c0('0x6d')]){const _0x2c3661=_0x2409e1['diffData'][_0x5e2940][_0x50c0('0xdf')],_0x2e14a2=_0x879743(_0x2409e1[_0x50c0('0x6d')][_0x5e2940][_0x50c0('0x48')])||{},_0x15d877=this[_0x50c0('0xe7')](_0x2409e1[_0x50c0('0x6d')][_0x5e2940][_0x50c0('0x7e')]);_0x15d877[_0x50c0('0xf2')]=_0x5e2940,_0x15d877[_0x50c0('0xe0')]=!_0x2c3661||_0x2c3661['isAttached'],_0x15d877[_0x50c0('0xd4')]=()=>_0x15d877[_0x50c0('0xe0')],this[_0x50c0('0xa2')]['set'](_0x5e2940,_0x15d877),this[_0x50c0('0xf9')]['set'](_0x5e2940,_0x2e14a2);const _0xd32f76=this[_0x50c0('0xf4')](_0x15d877,Number[_0x50c0('0xce')]);this['_idsRoots'][_0x50c0('0xc')](_0x5e2940,_0xd32f76),_0x5916ef['set'](_0x5e2940,_0x15d877['isAttached']()?_0x2e14a2:{});for(const [_0x58d56a,_0x40a2f6]of _0x15d877[_0x50c0('0xa8')]){if(!_0x58d56a[_0x50c0('0x63')](_0x50c0('0x30')))continue;const _0x49d5d5=_0x58d56a['split'](':')[0x2];for(const _0x125ddf of _0x40a2f6[_0x50c0('0xc9')]({'singleCharacters':!0x0})){const _0x1736c1=this[_0x50c0('0xc3')](_0x125ddf),_0x1aa2ce=this[_0x50c0('0x3c')]++,_0x4417d0=_0x50c0('0x39')==_0x125ddf[_0x50c0('0x27')]?_0x125ddf[_0x50c0('0xd0')][_0x50c0('0x94')]['slice'](0x0,-0x1):_0x125ddf[_0x50c0('0xd0')][_0x50c0('0x94')];_0xd32f76[_0x50c0('0xe5')](_0x4417d0)[_0x50c0('0x55')](_0x1736c1,_0x1aa2ce),this[_0x50c0('0x21')][_0x50c0('0xc')](_0x1aa2ce,{'userId':_0x49d5d5});}}for(const _0x16245f of this['editor'][_0x50c0('0x99')][_0x50c0('0xcc')](_0x15d877)[_0x50c0('0xc9')]({'singleCharacters':!0x0})){const _0x4f84cc=this[_0x50c0('0xc3')](_0x16245f),_0x23b6f1='elementEnd'==_0x16245f['type']?_0x16245f[_0x50c0('0xd0')][_0x50c0('0x94')][_0x50c0('0xae')](0x0,-0x1):_0x16245f[_0x50c0('0xd0')][_0x50c0('0x94')],_0x431d39=_0xd32f76['getNodeByPath'](_0x23b6f1);_0x431d39[_0x50c0('0xa6')](_0x4f84cc)>0x0||_0x431d39[_0x50c0('0x55')](_0x4f84cc,_0x588e68[_0x6eb1e++]);}for(const [_0x553f67,_0x2c1998]of _0x15d877[_0x50c0('0xa8')])_0x553f67[_0x50c0('0x63')]('revision:')||this[_0x50c0('0x57')][_0x50c0('0xc')](_0x553f67,_0x2c1998);}const _0x2976aa=G(_0x50c0('0x37'));this[_0x50c0('0xea')][_0x50c0('0xc')](_0x50c0('0x37'),_0x2976aa),this[_0x50c0('0x10')][_0x50c0('0xc')](_0x50c0('0x37'),this[_0x50c0('0xf4')](_0x2976aa,0x1));const _0x5b0453=G(_0x50c0('0x37'));this[_0x50c0('0xa2')][_0x50c0('0xc')]('$graveyard',_0x5b0453),this[_0x50c0('0x29')][_0x50c0('0xc')](_0x50c0('0x37'),this[_0x50c0('0xf4')](_0x5b0453,0x1));const _0x509604=Array[_0x50c0('0x72')](this[_0x50c0('0xa2')])['map'](([_0x59d780,_0xb246ee])=>[_0x59d780,q(_0xb246ee)]);this[_0x50c0('0xe1')](this['_lastTo'],_0x509604,this['_markers'],_0x5916ef);}[_0x50c0('0xe7')](_0x42ef43){const _0x418c09=JSON['parse'](_0x42ef43),_0x5438d1=this['editor'][_0x50c0('0xdc')]['view'][_0x50c0('0xf8')],_0x23adbb=new _0x35c3c0(_0x5438d1,_0x418c09[_0x50c0('0x4f')](_0x1fe392=>J(_0x1fe392,this[_0x50c0('0x105')])));return this[_0x50c0('0x105')][_0x50c0('0x84')][_0x50c0('0x64')](_0x23adbb);}[_0x50c0('0xe1')](_0x4a1fb3,_0x3d13f8,_0x6a2de4,_0x1bd2ef){const _0x1b6e39=new Map(_0x3d13f8),_0x5560eb=new Map(_0x879743(_0x1bd2ef)),_0x4d4346=new Map();for(const [_0x5c04cb,_0x231d7e]of _0x6a2de4)_0x4d4346[_0x50c0('0xc')](_0x5c04cb,{'start':_0x231d7e['start'][_0x50c0('0x13')](),'end':_0x231d7e['end'][_0x50c0('0x13')](),'rootName':_0x231d7e[_0x50c0('0x53')][_0x50c0('0xf2')]});this[_0x50c0('0x90')][_0x50c0('0xc')](_0x4a1fb3,{'roots':_0x1b6e39,'markers':_0x4d4346,'rootsAttributes':_0x5560eb});}[_0x50c0('0xc5')](_0x59308e){this['_savedMetaData']['delete'](_0x59308e);}['reInit'](){this[_0x50c0('0x42')](),this[_0x50c0('0x5a')]=-0x1,this['_lastTo']=-0x1,this[_0x50c0('0x90')][_0x50c0('0x8f')](),this[_0x50c0('0xbc')](this['source']);}[_0x50c0('0x42')](){this['_touched'][_0x50c0('0x8f')](),this[_0x50c0('0xbb')][_0x50c0('0x8f')](),this[_0x50c0('0xa7')][_0x50c0('0x8f')](),this[_0x50c0('0xa2')][_0x50c0('0x8f')](),this[_0x50c0('0xf9')][_0x50c0('0x8f')](),this[_0x50c0('0xea')][_0x50c0('0x8f')](),this[_0x50c0('0xf3')][_0x50c0('0x8f')](),this[_0x50c0('0x29')]['clear'](),this['_baseIdsRoots'][_0x50c0('0x8f')](),this[_0x50c0('0x57')][_0x50c0('0x8f')](),this[_0x50c0('0x3c')]=0x1,this[_0x50c0('0x7b')]=this[_0x50c0('0x3c')];}[_0x50c0('0xf4')](_0x398c6a,_0x23a6a3=null){let _0x24e006=null;_0x398c6a['is']('documentFragment')||(_0x24e006=new _0x230b69(_0x398c6a[_0x50c0('0x8c')],{'vid_start':null===_0x23a6a3?this[_0x50c0('0x3c')]++:_0x23a6a3++}));const _0x800ba4=[];for(const _0xfaefba of _0x398c6a['getChildren']())if(_0xfaefba['is'](_0x50c0('0xc1'))){_0x800ba4[_0x50c0('0x4b')](this['_makeIdsRoot'](_0xfaefba,_0x23a6a3));const _0x567fd5=_0x800ba4[_0x800ba4[_0x50c0('0xe4')]-0x1];null!==_0x23a6a3&&(_0x23a6a3=_0x567fd5['is'](_0x50c0('0xc1'),_0x50c0('0x1c'))?_0x567fd5['getAttribute']('vid')+0x1:_0x567fd5[_0x50c0('0xa6')](_0x50c0('0x5b'))+0x1);}else for(let _0x21030c=0x0;_0x21030c<_0xfaefba[_0x50c0('0x1')];_0x21030c++)_0x800ba4[_0x50c0('0x4b')](new _0x230b69(_0x50c0('0x1c'),{'vid':null===_0x23a6a3?this[_0x50c0('0x3c')]++:_0x23a6a3++}));if(_0x398c6a['is'](_0x50c0('0x2c'))){const _0x749ef3=G(_0x398c6a[_0x50c0('0xf2')]);return _0x749ef3['_insertChild'](0x0,_0x800ba4),_0x749ef3;}return _0x24e006[_0x50c0('0x55')](_0x50c0('0x5b'),null===_0x23a6a3?this[_0x50c0('0x3c')]++:_0x23a6a3++),_0x24e006['_insertChild'](0x0,_0x800ba4),_0x24e006;}['_calculateMetaData'](_0x5cf37a,_0x573c2f,_0x1b2abe){this[_0x50c0('0x42')]();const {roots:_0x5a92dc,markers:_0x12399a,rootsAttributes:_0x16bfda}=this[_0x50c0('0x90')][_0x50c0('0x7a')](_0x5cf37a);this[_0x50c0('0xea')]=new Map(_0x5a92dc),this[_0x50c0('0xf3')]=new Map(_0x879743(_0x16bfda));for(const [_0x5e4457,_0x491459]of this[_0x50c0('0xea')])if(_0x50c0('0x37')!==_0x5e4457&&(this[_0x50c0('0xa2')][_0x50c0('0xc')](_0x5e4457,q(_0x491459)),this[_0x50c0('0xf9')]=new Map(_0x879743(_0x16bfda)),_0x1b2abe)){const _0x175597=this[_0x50c0('0x3c')];this[_0x50c0('0x29')]['set'](_0x5e4457,this[_0x50c0('0xf4')](_0x491459)),this[_0x50c0('0x10')][_0x50c0('0xc')](_0x5e4457,this[_0x50c0('0xf4')](_0x491459,_0x175597));}this['_startingRevisionId']=this[_0x50c0('0x3c')],this[_0x50c0('0xa2')][_0x50c0('0xc')](_0x50c0('0x37'),q(this[_0x50c0('0xea')][_0x50c0('0x7a')](_0x50c0('0x37')))),_0x1b2abe&&this[_0x50c0('0x29')][_0x50c0('0xc')](_0x50c0('0x37'),this[_0x50c0('0xf4')](this[_0x50c0('0xea')][_0x50c0('0x7a')](_0x50c0('0x37'))));for(const [_0x58a36d,_0x3a8e3c]of _0x12399a){const _0x162d30=this[_0x50c0('0xea')][_0x50c0('0x7a')](_0x3a8e3c[_0x50c0('0xf2')]),_0x20861c=this[_0x50c0('0xa2')][_0x50c0('0x7a')](_0x3a8e3c[_0x50c0('0xf2')]),_0x4d62c0=new _0x4d128e(this[_0x50c0('0x79')](_0x3a8e3c[_0x50c0('0x2b')],_0x162d30),this[_0x50c0('0x79')](_0x3a8e3c[_0x50c0('0xef')],_0x162d30)),_0x5317a7=this['_fixRange'](_0x4d62c0,_0x20861c);_0x162d30[_0x50c0('0xa8')][_0x50c0('0xc')](_0x58a36d,_0x4d62c0),this[_0x50c0('0x57')]['set'](_0x58a36d,_0x5317a7);}this[_0x50c0('0xd9')](_0x5cf37a,_0x573c2f,_0x1b2abe);}[_0x50c0('0xd9')](_0xc23e6,_0x45ec2a,_0x3eae6d){for(const _0x5e6555 of this[_0x50c0('0x46')][_0x50c0('0x2e')](_0xc23e6,_0x45ec2a))this[_0x50c0('0x87')](_0x5e6555,_0x3eae6d);for(const _0x201dbd of this[_0x50c0('0xa2')][_0x50c0('0x9b')]())_0x201dbd['markers'][_0x50c0('0x8f')]();for(const [_0x630592,_0x3ae19f]of this[_0x50c0('0x57')]){this['_diffRoots'][_0x50c0('0x7a')](_0x3ae19f[_0x50c0('0x53')][_0x50c0('0xf2')])[_0x50c0('0xa8')]['set'](_0x630592,_0x3ae19f['clone']());}const _0xe95eb3=new Map(),_0x366dc3=new Map();for(const [_0x1641c2,_0x5986a0]of this[_0x50c0('0xa2')])_0xe95eb3[_0x50c0('0xc')](_0x1641c2,q(_0x5986a0)),_0x366dc3[_0x50c0('0xc')](_0x1641c2,this[_0x50c0('0xf9')]['get'](_0x1641c2));this['_saveMetaData'](_0x45ec2a,_0xe95eb3,this[_0x50c0('0x57')],_0x366dc3);}[_0x50c0('0xb')](_0x4b3fff){const _0x4b4676=Array[_0x50c0('0x72')](this[_0x50c0('0x90')]['keys']());_0x4b4676['sort']((_0x114b81,_0x1b4f40)=>_0x114b81-_0x1b4f40),_0x4b4676['reverse']();for(const _0x30053f of _0x4b4676)if(_0x30053f<_0x4b3fff)return _0x30053f;return Number[_0x50c0('0xce')];}['_copyMarkers'](_0x185d08,_0x3226d4){const _0x231098=Array[_0x50c0('0x72')](_0x3226d4['markers'])[_0x50c0('0x4f')](([_0x275dec,_0x4a2152])=>[_0x275dec,this[_0x50c0('0x81')](_0x4a2152,_0x185d08)]);_0x185d08[_0x50c0('0xa8')]=new Map(_0x231098);}[_0x50c0('0x73')](_0x4d3cd5){for(const _0x430247 of this[_0x50c0('0x57')][_0x50c0('0x9b')]()){const _0x185308=_0x430247[_0x50c0('0xfc')](_0x4d3cd5),_0xaeca49=_0x4d128e[_0x50c0('0x1f')](_0x185308);_0x430247[_0x50c0('0x2b')]=_0xaeca49[_0x50c0('0x2b')],_0x430247['end']=_0xaeca49[_0x50c0('0xef')];}}['_handleOperation'](_0x2c15a3,_0x9bb35d){if(_0x50c0('0xcf')==_0x2c15a3['type']||_0x50c0('0xee')==_0x2c15a3[_0x50c0('0x27')])return void this['_handleRootOperation'](_0x2c15a3,_0x9bb35d);if(_0x50c0('0x45')==_0x2c15a3[_0x50c0('0x27')]){const _0x402321=_0x2c15a3['position'][_0x50c0('0x53')][_0x50c0('0xf2')];this['_diffRoots'][_0x50c0('0xa0')](_0x402321)||(this[_0x50c0('0xa2')][_0x50c0('0xc')](_0x402321,G(_0x402321,!0x0)),this[_0x50c0('0xf9')][_0x50c0('0xc')](_0x402321,{}),_0x9bb35d&&this[_0x50c0('0x29')][_0x50c0('0xc')](_0x402321,G(_0x402321,!0x0)));}else{if('addRootAttribute'==_0x2c15a3[_0x50c0('0x27')]||'removeRootAttribute'==_0x2c15a3[_0x50c0('0x27')]||_0x50c0('0x2f')==_0x2c15a3[_0x50c0('0x27')])return void this[_0x50c0('0xca')](_0x2c15a3);}const _0x2a5e6b=this[_0x50c0('0x58')](_0x2c15a3,this[_0x50c0('0xa2')]);if(_0x50c0('0x0')!==_0x2c15a3[_0x50c0('0x27')]&&(_0x2a5e6b[_0x50c0('0xd1')](),this[_0x50c0('0x73')](_0x2a5e6b)),_0x9bb35d)switch(_0x2a5e6b['type']){case _0x50c0('0x45'):this[_0x50c0('0xec')](_0x2c15a3);break;case'move':case _0x50c0('0x109'):case _0x50c0('0x98'):this[_0x50c0('0x5d')](_0x2c15a3);break;case _0x50c0('0xe9'):this[_0x50c0('0x1b')](_0x2c15a3);break;case'split':this[_0x50c0('0x6b')](_0x2c15a3);break;case _0x50c0('0x0'):this[_0x50c0('0xc7')](_0x2c15a3);}}[_0x50c0('0x58')](_0x5b0941,_0x159df7){const _0x2c95ca=_0x5b0941[_0x50c0('0x13')]();return _0x2c95ca[_0x50c0('0x8d')]=_0x5b0941['_authorId'],this['_fixOperation'](_0x2c95ca,_0x159df7),_0x2c95ca;}[_0x50c0('0xb7')](_0x1fb6ac){return _0x1fb6ac[_0x50c0('0x4f')](_0x310b19=>{const _0x961f60=this[_0x50c0('0xc3')](_0x310b19);return Number(_0x310b19[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x961f60));});}[_0x50c0('0xde')](_0x3439a3,_0x1e0832){if(_0x3439a3['is'](_0x50c0('0xc1'),_0x50c0('0x1c')))_0x1e0832[_0x50c0('0x4b')]({'item':_0x3439a3,'type':'text'});else{_0x3439a3['is'](_0x50c0('0xc1'))&&_0x1e0832[_0x50c0('0x4b')]({'item':_0x3439a3,'type':_0x50c0('0x67')});for(const _0x139ff7 of _0x3439a3[_0x50c0('0x47')]())this[_0x50c0('0xde')](_0x139ff7,_0x1e0832);_0x3439a3['is'](_0x50c0('0xc1'))&&_0x1e0832[_0x50c0('0x4b')]({'item':_0x3439a3,'type':_0x50c0('0x39')});}return _0x1e0832;}[_0x50c0('0x3e')](){const _0xe68199=new Map(this[_0x50c0('0x21')]),_0x5cd61d=new Map(_0xe68199),_0x350303=new Map(),_0x1f6d62={'insertions':{},'deletions':{}},_0x16688={'insertions':{},'deletions':{}},_0x540c3b=new Map(),_0x39be80=new Set([...this[_0x50c0('0xea')][_0x50c0('0xa5')](),...this['_diffRoots'][_0x50c0('0xa5')]()]);_0x39be80[_0x50c0('0xb9')](_0x50c0('0x37'));for(const _0x41fefc of _0x39be80){const _0x2d405d=this['_diffRoots']['get'](_0x41fefc)||G(_0x41fefc,!0x1),_0x11427a=this[_0x50c0('0xea')][_0x50c0('0x7a')](_0x41fefc)||G(_0x41fefc,!0x1);_0x2d405d[_0x50c0('0xd4')]()||_0x11427a['isAttached']()?(_0x1f6d62[_0x50c0('0x7e')][_0x41fefc]=q(_0x2d405d),_0x1f6d62[_0x50c0('0xf1')][_0x41fefc]=q(_0x11427a),this[_0x50c0('0xc2')](_0x1f6d62['deletions'][_0x41fefc],_0x11427a),this[_0x50c0('0xc2')](_0x1f6d62[_0x50c0('0x7e')][_0x41fefc],_0x2d405d),_0x16688[_0x50c0('0x7e')][_0x41fefc]=this[_0x50c0('0xde')](this['_idsRoots'][_0x50c0('0x7a')](_0x41fefc),[]),_0x16688['deletions'][_0x41fefc]=this['_generateTape'](this[_0x50c0('0x10')][_0x50c0('0x7a')](_0x41fefc)||G(_0x41fefc,!0x1),[])):_0x39be80[_0x50c0('0xb9')](_0x41fefc);}for(const _0x2a5558 of _0x39be80){const _0x171f01=_0x16688[_0x50c0('0x7e')][_0x2a5558];for(const _0x36839e of _0x171f01){const _0x94eb5=this[_0x50c0('0xc3')](_0x36839e),_0xed0e47=_0x36839e[_0x50c0('0x5f')]['getAttribute'](_0x94eb5);_0x5cd61d['delete'](_0xed0e47),_0xed0e47>=this[_0x50c0('0x7b')]&&_0x350303[_0x50c0('0xc')](_0xed0e47,_0xe68199[_0x50c0('0x7a')](_0xed0e47));}}for(const _0x33edd1 of _0x39be80){const _0x4a7897=_0x16688[_0x50c0('0x7e')][_0x33edd1],_0xa75375=this['_getBaseVids'](_0x16688['deletions'][_0x33edd1]);let _0x5ee301=0x0;for(const _0xdc513a of _0x4a7897){const _0x3832ef=this['_getVidAttributeName'](_0xdc513a),_0x50ad01=_0xdc513a[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x3832ef);if(!_0x350303[_0x50c0('0xa0')](_0x50ad01)&&!_0x540c3b[_0x50c0('0xa0')](_0x50ad01)){if(_0x5cd61d['has'](_0x50ad01))_0x5ee301++;else{if(_0x50ad01!=_0xa75375[_0x5ee301]){const _0x3f8486=_0xe68199[_0x50c0('0x7a')](_0x50ad01)||_0xe68199[_0x50c0('0x7a')](_0xa75375[_0x5ee301]);for(;_0x50ad01!=_0xa75375[_0x5ee301];)_0x5cd61d[_0x50c0('0xa0')](_0xa75375[_0x5ee301])||(_0x540c3b[_0x50c0('0xc')](_0xa75375[_0x5ee301],_0x3f8486),_0xe68199[_0x50c0('0xc')](_0xa75375[_0x5ee301],_0x3f8486)),_0x5ee301++;}_0x5ee301++;}}}}for(const _0x3319b0 of _0x39be80){const _0x4400da=_0x16688[_0x50c0('0x7e')][_0x3319b0];for(const _0x458362 of _0x4400da){const _0x3ba700=this['_getVidAttributeName'](_0x458362),_0x3da30e=_0x458362[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x3ba700);if(_0x540c3b[_0x50c0('0xa0')](_0x3da30e)){const _0xa06a69=_0x540c3b['get'](_0x3da30e);_0x5cd61d[_0x50c0('0xa0')](_0x3da30e)||_0x5cd61d[_0x50c0('0xc')](_0x3da30e,{..._0xa06a69}),_0x350303[_0x50c0('0xc')](_0x3da30e,{..._0xa06a69});}}}for(const _0x47e6b3 of _0x5cd61d['keys']())_0x47e6b3>=this['_startingRevisionId']&&_0x5cd61d[_0x50c0('0xb9')](_0x47e6b3);const _0x508d5a=new Map();for(const _0x2a81eb of _0x39be80){let _0x5cc8b8=_0x16688[_0x50c0('0x7e')][_0x2a81eb];for(const _0x47ef46 of _0x5cc8b8)if(_0x47ef46[_0x50c0('0x5f')]['is'](_0x50c0('0xc1'),'tableCell')){const _0x506006=this[_0x50c0('0xc3')](_0x47ef46),_0x3c9049=_0x47ef46[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x506006);if(_0x350303[_0x50c0('0xa0')](_0x3c9049)){const _0x442168=_0x47ef46['item'][_0x50c0('0x5c')][_0x50c0('0x5c')][_0x50c0('0xa6')](_0x50c0('0xe')),_0x19fa6c=_0x508d5a[_0x50c0('0x7a')](_0x442168)||new Set();_0x19fa6c[_0x50c0('0x6e')](_0x350303[_0x50c0('0x7a')](_0x3c9049)[_0x50c0('0x62')]),_0x508d5a['set'](_0x442168,_0x19fa6c);}}_0x5cc8b8=_0x16688[_0x50c0('0xf1')][_0x2a81eb];for(const _0x4778d9 of _0x5cc8b8)if(_0x4778d9['item']['is'](_0x50c0('0xc1'),_0x50c0('0xc4'))){const _0x3666ce=this['_getVidAttributeName'](_0x4778d9),_0x422b39=_0x4778d9[_0x50c0('0x5f')]['getAttribute'](_0x3666ce);if(_0x5cd61d['has'](_0x422b39)){const _0x3025bf=_0x4778d9[_0x50c0('0x5f')][_0x50c0('0x5c')][_0x50c0('0x5c')][_0x50c0('0xa6')](_0x50c0('0xe')),_0x41d67d=_0x508d5a[_0x50c0('0x7a')](_0x3025bf)||new Set();_0x41d67d[_0x50c0('0x6e')](_0x5cd61d['get'](_0x422b39)['userId']),_0x508d5a[_0x50c0('0xc')](_0x3025bf,_0x41d67d);}}for(const _0x403a4d of _0x508d5a[_0x50c0('0xa5')]())(_0x350303[_0x50c0('0xa0')](_0x403a4d)||_0x5cd61d[_0x50c0('0xa0')](_0x403a4d))&&_0x508d5a['delete'](_0x403a4d);}for(const _0x25c3da of _0x39be80){const _0x5dc3e1=_0x16688['insertions'][_0x25c3da];let _0x1190a6=null,_0x3edc57=null;for(const _0x66bd3e of _0x5dc3e1){const _0x96bb26=this['_getVidAttributeName'](_0x66bd3e),_0x4852f1=_0x66bd3e[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x96bb26),_0x188a6b=_0x508d5a[_0x50c0('0x7a')](_0x4852f1);_0x188a6b&&'elementStart'==_0x66bd3e['type']&&(_0x1190a6=Array[_0x50c0('0x72')](_0x188a6b)[0x0],_0x3edc57=_0x66bd3e[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x50c0('0x5b'))),_0x1190a6&&(_0x5cd61d[_0x50c0('0xc')](_0x4852f1,{'userId':_0x1190a6}),_0x350303[_0x50c0('0xc')](_0x4852f1,{'userId':_0x1190a6})),_0x4852f1==_0x3edc57&&(_0x1190a6=null,_0x3edc57=null);}}const _0x5a4abb={},_0x3c28bb=new Set();for(const _0x1477cc of _0x39be80){const _0x4408f1=_0x1f6d62[_0x50c0('0xf1')][_0x1477cc],_0x137436=_0x1f6d62[_0x50c0('0x7e')][_0x1477cc];for(const {userId:_0x218048}of this[_0x50c0('0xbb')][_0x50c0('0x9b')]())null!==_0x218048&&_0x3c28bb[_0x50c0('0x6e')](_0x218048);for(const {userId:_0x6e71c8}of this[_0x50c0('0xa7')][_0x50c0('0x9b')]())null!==_0x6e71c8&&_0x3c28bb[_0x50c0('0x6e')](_0x6e71c8);this[_0x50c0('0xcb')](_0x137436,_0x16688[_0x50c0('0x7e')][_0x1477cc],_0x350303,_0x50c0('0x6'),_0x3c28bb),this['_markChanges'](_0x4408f1,_0x16688[_0x50c0('0xf1')][_0x1477cc],_0x5cd61d,_0x50c0('0x36'),_0x3c28bb),_0x5a4abb[_0x1477cc]={'insertions':this[_0x50c0('0x77')](_0x137436),'deletions':this[_0x50c0('0x77')](_0x4408f1),'attachChange':this[_0x50c0('0xa7')][_0x50c0('0x7a')](_0x1477cc)||null,'attributesBefore':_0x879743(this[_0x50c0('0xf3')][_0x50c0('0x7a')](_0x1477cc))||{},'attributesAfter':_0x879743(this[_0x50c0('0xf9')]['get'](_0x1477cc))};}return{'diffData':_0x5a4abb,'authorsIds':Array[_0x50c0('0x72')](_0x3c28bb)};}['_processRootBeforeSave'](_0x100012){for(const [,_0x8b1ae9]of _0x100012[_0x50c0('0xa8')]){const _0x273a5c=_0x8b1ae9[_0x50c0('0x2b')][_0x50c0('0xd')]()['filter'](_0x5dde8f=>_0x50c0('0xc4')==_0x5dde8f['name']);for(const _0x356a5f of _0x273a5c)0x1==_0x356a5f[_0x50c0('0x3f')]&&_0x356a5f[_0x50c0('0x1d')](0x0)['is'](_0x50c0('0xc1'),'paragraph')&&_0x356a5f[_0x50c0('0x1d')](0x0)[_0x50c0('0x55')](_0x50c0('0x15'),!0x0);}}[_0x50c0('0x77')](_0x3ee1f8){this['_processRootBeforeSave'](_0x3ee1f8);const _0x2863e0=this[_0x50c0('0x105')][_0x50c0('0x84')][_0x50c0('0xe8')](_0x3ee1f8,{}),_0x4334dc=Array[_0x50c0('0x72')](_0x2863e0[_0x50c0('0x47')]())[_0x50c0('0x4f')](_0x583060=>this['_getViewJson'](_0x583060));return JSON[_0x50c0('0xe2')](_0x4334dc);}[_0x50c0('0xfb')](_0x36b230){if(_0x36b230['is'](_0x50c0('0x1c')))return _0x36b230['data'];{const _0x19cc79=_0x36b230;return{'type':Object[_0x50c0('0xa5')](B)[_0x50c0('0xed')](_0x19f0fb=>_0x36b230 instanceof B[_0x19f0fb]),'name':_0x19cc79['name'],'attributes':Array[_0x50c0('0x72')](_0x19cc79[_0x50c0('0xbd')]()),'children':Array[_0x50c0('0x72')](_0x19cc79[_0x50c0('0x47')]())[_0x50c0('0x4f')](_0x319dba=>this['_getViewJson'](_0x319dba))};}}[_0x50c0('0xcb')](_0x7f952d,_0x400242,_0x4c1bab,_0xa51af,_0x29c0f5){let _0x138a87=null,_0x25cb51=null,_0x1e1cf4=0x0;const _0x8f5f02=this['editor'][_0x50c0('0x99')];for(let _0xefb4d=0x0;_0xefb4d<_0x400242['length'];_0xefb4d++){const _0x2070cb=this['_getVidAttributeName'](_0x400242[_0xefb4d]),_0x311704=_0x400242[_0xefb4d][_0x50c0('0x5f')][_0x50c0('0xa6')](_0x2070cb),_0x90894=_0x4c1bab[_0x50c0('0x7a')](_0x311704),_0x25fd71=_0xefb4d==_0x400242[_0x50c0('0xe4')]-0x1;(!_0x138a87&&_0x90894&&(_0x138a87=_0x90894,_0x25cb51=_0x400242[_0xefb4d]),_0x138a87&&(!_0x90894||_0x90894[_0x50c0('0x62')]!=_0x138a87[_0x50c0('0x62')]))&&(_0x342656(_0x90894,L(_0x25cb51,_0x7f952d,_0x8f5f02),L(_0x400242[_0xefb4d],_0x7f952d,_0x8f5f02)),_0x138a87=_0x90894||null,_0x25cb51=_0x90894?_0x400242[_0xefb4d]:null),_0x138a87&&_0x25fd71&&_0x342656(_0x90894,L(_0x25cb51,_0x7f952d,_0x8f5f02),W(_0x400242[_0xefb4d],_0x7f952d,_0x8f5f02));}function _0x342656(_0x533c17,_0x20b04a,_0x5b22b7){const _0x4669ea=_0x138a87[_0x50c0('0x62')],_0x1405c3=_0x50c0('0x30')+_0xa51af+':'+_0x4669ea+':'+_0x1e1cf4++,_0x16097f=_0x8f5f02['createRange'](_0x20b04a,_0x5b22b7);_0x7f952d[_0x50c0('0xa8')][_0x50c0('0xc')](_0x1405c3,_0x16097f),null!==_0x4669ea&&_0x29c0f5[_0x50c0('0x6e')](_0x4669ea);}}[_0x50c0('0xc3')](_0x16d5d9){switch(_0x16d5d9[_0x50c0('0x27')]){case _0x50c0('0x67'):return'vid_start';case _0x50c0('0x39'):return _0x50c0('0x5b');default:return _0x50c0('0x4c');}}[_0x50c0('0xb0')](_0x1f2860,_0x49dd97){_0x1f2860[_0x50c0('0x95')]=null;for(const _0x3b8e76 in _0x1f2860){const _0x2ec3bf=_0x1f2860[_0x3b8e76];if(_0x2ec3bf instanceof _0x53c7bd){const _0x1c8e16=_0x49dd97[_0x50c0('0x7a')](_0x2ec3bf[_0x50c0('0x53')][_0x50c0('0xf2')]);_0x1f2860[_0x3b8e76]=this[_0x50c0('0x79')](_0x2ec3bf,_0x1c8e16);}if(_0x2ec3bf instanceof _0x4d128e){const _0x49abaf=_0x49dd97[_0x50c0('0x7a')](_0x2ec3bf[_0x50c0('0x53')]['rootName']);_0x1f2860[_0x3b8e76]=this[_0x50c0('0x81')](_0x2ec3bf,_0x49abaf);}_0x50c0('0x53')===_0x3b8e76&&(_0x1f2860[_0x50c0('0x53')]=_0x49dd97[_0x50c0('0x7a')](_0x1f2860[_0x50c0('0x53')][_0x50c0('0xf2')]));}}['_fixRange'](_0x38563a,_0x3b618d){return this['editor'][_0x50c0('0x99')][_0x50c0('0xdb')](this[_0x50c0('0x79')](_0x38563a['start'],_0x3b618d),this[_0x50c0('0x79')](_0x38563a['end'],_0x3b618d));}[_0x50c0('0x79')](_0x323ed0,_0x2819c8){return this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0x32')](_0x2819c8,_0x323ed0[_0x50c0('0x94')],_0x323ed0[_0x50c0('0x7c')]);}[_0x50c0('0xec')](_0x382e4a){const _0x4f9f84=this[_0x50c0('0x29')][_0x50c0('0x7a')](_0x382e4a[_0x50c0('0xd5')][_0x50c0('0x53')][_0x50c0('0xf2')]),_0x5c9c6a=this[_0x50c0('0x79')](_0x382e4a['position'],_0x4f9f84),_0x1e8af9=null===_0x382e4a['_authorId']?null:_0x382e4a[_0x50c0('0x8d')]||this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x9e'))['me']['id'],_0x27e734=_0x5c9c6a[_0x50c0('0x5c')],_0x40ba0a=this[_0x50c0('0x3c')],_0x594ed8=[];for(const _0x41e911 of _0x382e4a[_0x50c0('0x16')])if(_0x41e911['is'](_0x50c0('0xc1')))_0x594ed8['push'](this[_0x50c0('0xf4')](_0x41e911));else for(let _0x30475d=0x0;_0x30475d<_0x41e911['offsetSize'];_0x30475d++)_0x594ed8[_0x50c0('0x4b')](new _0x230b69(_0x50c0('0x1c'),{'vid':this[_0x50c0('0x3c')]++}));const _0x38a27d=this[_0x50c0('0x3c')];for(let _0x4dddb5=_0x40ba0a;_0x4dddb5<_0x38a27d;_0x4dddb5++)this[_0x50c0('0x21')][_0x50c0('0xc')](_0x4dddb5,{'userId':_0x1e8af9});_0x27e734[_0x50c0('0x89')](_0x5c9c6a[_0x50c0('0x83')],_0x594ed8);}[_0x50c0('0x5d')](_0x550b21){(_0x550b21=this[_0x50c0('0x58')](_0x550b21,this[_0x50c0('0x29')]))['_execute']();const _0x4c7504=null===_0x550b21['_authorId']?null:_0x550b21[_0x50c0('0x8d')]||this['editor'][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x9e'))['me']['id'],_0x2e417e=_0x550b21[_0x50c0('0xab')](),_0x2fc97e=_0x2e417e['parent'],_0x2265ab=_0x2e417e[_0x50c0('0x83')];!function _0x3d145a(_0x4df8aa,_0x5737e0,_0x1f935f,_0x1bb76b){for(let _0x3ec8b5=_0x1f935f;_0x3ec8b5<_0x1bb76b;_0x3ec8b5++){const _0x4fc939=_0x5737e0[_0x50c0('0x1d')](_0x3ec8b5);_0x4fc939['is']('element','$text')?_0x4df8aa[_0x50c0('0xc')](_0x4fc939[_0x50c0('0xa6')](_0x50c0('0x4c')),{'userId':_0x4c7504}):(_0x4df8aa[_0x50c0('0xc')](_0x4fc939[_0x50c0('0xa6')](_0x50c0('0xe')),{'userId':_0x4c7504}),_0x3d145a(_0x4df8aa,_0x4fc939,0x0,_0x4fc939[_0x50c0('0x3f')]),_0x4df8aa[_0x50c0('0xc')](_0x4fc939[_0x50c0('0xa6')](_0x50c0('0x5b')),{'userId':_0x4c7504}));}}(this[_0x50c0('0x21')],_0x2fc97e,_0x2265ab,_0x2265ab+_0x550b21[_0x50c0('0x4a')]);}['_handleMergeOperation'](_0x4d3d0c){const _0x504f3d=null===(_0x4d3d0c=this['_cloneOperation'](_0x4d3d0c,this[_0x50c0('0x29')]))['_authorId']?null:_0x4d3d0c['_authorId']||this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x9e'))['me']['id'],_0x39a7aa=_0x4d3d0c['targetPosition'][_0x50c0('0x5c')],_0x397e3c=_0x4d3d0c[_0x50c0('0x34')][_0x50c0('0x5c')],_0x5bc17c=_0x39a7aa[_0x50c0('0xa6')]('vid_end'),_0x3d2a9d=_0x397e3c['getAttribute'](_0x50c0('0xe'));_0x39a7aa['_setAttribute']('vid_end',_0x397e3c[_0x50c0('0xa6')](_0x50c0('0x5b'))),_0x397e3c['_setAttribute'](_0x50c0('0x5b'),_0x5bc17c),this[_0x50c0('0x21')]['set'](_0x3d2a9d,{'userId':_0x504f3d}),this['_touched']['set'](_0x5bc17c,{'userId':_0x504f3d}),_0x4d3d0c[_0x50c0('0xd1')]();}['_handleSplitOperation'](_0x26caec){const _0x39d3c4=null===(_0x26caec=this[_0x50c0('0x58')](_0x26caec,this[_0x50c0('0x29')]))['_authorId']?null:_0x26caec[_0x50c0('0x8d')]||this[_0x50c0('0x105')]['plugins'][_0x50c0('0x7a')](_0x50c0('0x9e'))['me']['id'],_0x1a46b7=_0x26caec[_0x50c0('0xaf')],_0x3af6ef=_0x26caec[_0x50c0('0x10a')][_0x50c0('0x5c')];_0x26caec[_0x50c0('0xd1')]();const _0x3c48c6=_0x3af6ef[_0x50c0('0xa6')](_0x50c0('0x5b')),_0x29ca4e=_0x26caec[_0x50c0('0x65')][_0x50c0('0x25')];if(_0x1a46b7){const _0x29cd4a=_0x29ca4e['getAttribute']('vid_end'),_0x7e135b=_0x3af6ef[_0x50c0('0xa6')](_0x50c0('0x5b'));_0x3af6ef[_0x50c0('0x55')](_0x50c0('0x5b'),_0x29cd4a),_0x29ca4e[_0x50c0('0x55')]('vid_end',_0x7e135b),this[_0x50c0('0x21')][_0x50c0('0xc')](_0x3af6ef[_0x50c0('0xa6')](_0x50c0('0x5b')),{'userId':_0x39d3c4}),this[_0x50c0('0x21')][_0x50c0('0xc')](_0x29ca4e['getAttribute'](_0x50c0('0xe')),{'userId':_0x39d3c4});}else{const _0x32343f=this[_0x50c0('0x3c')]++,_0xa069e=this[_0x50c0('0x3c')]++;_0x3af6ef['_setAttribute'](_0x50c0('0x5b'),_0x32343f),_0x29ca4e['_setAttribute'](_0x50c0('0xe'),_0xa069e),_0x29ca4e[_0x50c0('0x55')](_0x50c0('0x5b'),_0x3c48c6),this[_0x50c0('0x21')][_0x50c0('0xc')](_0x32343f,{'userId':_0x39d3c4}),this[_0x50c0('0x21')][_0x50c0('0xc')](_0xa069e,{'userId':_0x39d3c4});}}['_handleMarkerOperation'](_0x5d1ab8){if(!_0x5d1ab8['affectsData'])return;const _0x1a6e7a=(_0x5d1ab8=this[_0x50c0('0x58')](_0x5d1ab8,this[_0x50c0('0xa2')]))[_0x50c0('0x70')]?_0x5d1ab8[_0x50c0('0x70')][_0x50c0('0x53')]:null,_0x1371cd=_0x5d1ab8[_0x50c0('0x102')]?_0x5d1ab8[_0x50c0('0x102')][_0x50c0('0x53')]:null;_0x1a6e7a&&this[_0x50c0('0x57')][_0x50c0('0xb9')](_0x5d1ab8[_0x50c0('0x8c')]),_0x1371cd&&this[_0x50c0('0x57')][_0x50c0('0xc')](_0x5d1ab8[_0x50c0('0x8c')],_0x5d1ab8['newRange'][_0x50c0('0x13')]());const _0x14d707=null===_0x5d1ab8[_0x50c0('0x8d')]?null:_0x5d1ab8[_0x50c0('0x8d')]||this['editor']['plugins'][_0x50c0('0x7a')]('Users')['me']['id'],_0x4a84d9=_0x5d1ab8[_0x50c0('0x8c')];if(!this[_0x50c0('0xbb')][_0x50c0('0xa0')](_0x4a84d9))return void this[_0x50c0('0xbb')][_0x50c0('0xc')](_0x4a84d9,{'range':_0x5d1ab8['oldRange'],'userId':_0x14d707});const _0x1b9147=this[_0x50c0('0xbb')][_0x50c0('0x7a')](_0x4a84d9),_0x2c63cf=_0x1b9147[_0x50c0('0x1e')],_0x3897b2=_0x5d1ab8[_0x50c0('0x102')];null==_0x2c63cf&&null==_0x3897b2||_0x2c63cf&&_0x3897b2&&_0x2c63cf['isEqual'](_0x3897b2)?this['_touchedMarkers'][_0x50c0('0xb9')](_0x5d1ab8[_0x50c0('0x8c')]):_0x1b9147[_0x50c0('0x62')]=_0x14d707;}['_handleRootOperation'](_0x1999b6,_0x5072cc){this[_0x50c0('0xa2')][_0x50c0('0xa0')](_0x1999b6[_0x50c0('0xf2')])?this[_0x50c0('0xa2')][_0x50c0('0x7a')](_0x1999b6[_0x50c0('0xf2')])[_0x50c0('0xe0')]=_0x1999b6['isAdd']:(this[_0x50c0('0xa2')][_0x50c0('0xc')](_0x1999b6[_0x50c0('0xf2')],G(_0x1999b6[_0x50c0('0xf2')],!0x0)),this[_0x50c0('0xf9')][_0x50c0('0xc')](_0x1999b6[_0x50c0('0xf2')],{}),_0x5072cc&&this[_0x50c0('0x29')][_0x50c0('0xc')](_0x1999b6[_0x50c0('0xf2')],G(_0x1999b6['rootName'],!0x0)));const _0x5c1352=null===_0x1999b6['_authorId']?null:_0x1999b6[_0x50c0('0x8d')]||this[_0x50c0('0x105')][_0x50c0('0x44')]['get'](_0x50c0('0x9e'))['me']['id'],_0x3fa05b=this[_0x50c0('0xa7')][_0x50c0('0x7a')](_0x1999b6[_0x50c0('0xf2')]);_0x3fa05b&&_0x3fa05b[_0x50c0('0x62')]===_0x5c1352?this[_0x50c0('0xa7')][_0x50c0('0xb9')](_0x1999b6[_0x50c0('0xf2')]):this[_0x50c0('0xa7')][_0x50c0('0xc')](_0x1999b6['rootName'],{'userId':_0x5c1352,'isAttached':_0x1999b6[_0x50c0('0x92')]});}[_0x50c0('0xca')](_0x2cf495){const _0x225269=this[_0x50c0('0xf9')]['get'](_0x2cf495[_0x50c0('0x53')][_0x50c0('0xf2')]);null===_0x2cf495[_0x50c0('0xf')]?delete _0x225269[_0x2cf495[_0x50c0('0x93')]]:_0x225269[_0x2cf495[_0x50c0('0x93')]]=_0x2cf495[_0x50c0('0xf')];}}function q(_0x186637){const _0x3e1de0=G(_0x186637[_0x50c0('0xf2')],_0x186637[_0x50c0('0xd4')]());for(const _0x2d2e1e of _0x186637[_0x50c0('0x47')]()){const _0x42f701=_0x2d2e1e[_0x50c0('0x2d')](!0x0);_0x3e1de0[_0x50c0('0x8b')](_0x42f701);}return _0x3e1de0;}function G(_0xb917ac,_0x37bae6=!0x0){const _0x5ec567=new _0x88f57b();return _0x5ec567[_0x50c0('0xf2')]=_0xb917ac,_0x5ec567[_0x50c0('0xe0')]=_0x37bae6,_0x5ec567[_0x50c0('0xd4')]=()=>_0x5ec567[_0x50c0('0xe0')],_0x5ec567;}function L(_0x131eb7,_0x3d967d,_0x404ec7){const _0x5a9ab4=_0x50c0('0x39')==_0x131eb7['type']?_0x404ec7[_0x50c0('0x59')](_0x131eb7[_0x50c0('0x5f')],_0x50c0('0xef')):_0x404ec7[_0x50c0('0xd8')](_0x131eb7[_0x50c0('0x5f')]);return _0x404ec7[_0x50c0('0x32')](_0x3d967d,_0x5a9ab4['path'],_0x5a9ab4['stickiness']);}function W(_0x5baf3b,_0x2a1081,_0x396041){const _0x339aad=_0x50c0('0x67')==_0x5baf3b[_0x50c0('0x27')]?_0x396041[_0x50c0('0x59')](_0x5baf3b[_0x50c0('0x5f')],0x0):_0x396041[_0x50c0('0xba')](_0x5baf3b['item']);return _0x396041['createPositionFromPath'](_0x2a1081,_0x339aad['path'],_0x339aad['stickiness']);}
|
|
23
|
+
const _0x73fd=['_revisionId','remove','some','insertions','startsWith','getNodeByPath','_replaceEditorDataWithRevisionData','Initial\x20revision','_fixOperation','isAttached','newRange','_savedMetaData','upcast','_getPreviousFrom','_baseIdsRoots','nodeAfter','path','_touched','define','push','NEGATIVE_INFINITY','getOperation','_handleRootAttributeOperation','get','getOperations','length','_makeIdsRoot','getRevision','view','_handleMoveOperation','elementEnd','_applyOperations','markers','sendBufferedUpdates','afterInit','setSource','createRevision','key','_processRootBeforeSave','authorsIds','_fixRange','RealTimeCollaborationClient','childCount','fromEntries','_isInit','_touchedMarkers','getTransformedByOperation','creator','createPositionFromPath','useFillerType','markerToData','_baseRootsAttributes','document','editor','getRootNames','parent','getWalker','diffData','_setAttribute','rootName','_loadState','buildRevisionData','_loadRevisionData','reinsert','_lastFrom','sort','_handleOperation','init','Users','name','_fixPosition','revisionHistory.resumeUnsavedRevision','PENDING_ACTION_REVISION_HISTORY','elementStart','_getState','_startingVersion','getIndex','_authorId','fromVersion','finally','_diffRootsAttributes','_handleSplitOperation','revision','rootsAttributes','deletions','getData','baseVersion','for','then','keys','getRoot','$graveyard','_idsRoots','_getVidAttributeName','createRangeIn','currentRevision','getRevisionDocumentData','attributesAfter','addRoot','createPositionBefore','isEqual','size','revision-end','_touchedRoots','sourcePosition','_handleMergeOperation','text','deletion','vid','loadState','_revisionDataBuilder','previousPosition','_update','processor','RevisionTracker','reverse','PendingActions','$text','element','addRevisionData','stringify','getRevisionRootsAttributes','attributes','initial','_reset','detachRoot','includes','_copyMarkers','model','createPositionAt','getLatestVersion','reInit','start','shift','_execute','find','ready','getTime','getUser','addRevision','_getFromVersion','_initialRevisionId','isEnabled','stickiness','toView','isAdd','getCurrentRevisionId','requires','item','clone','repository','createdAt','toVersion','_generateTape','collaboration.channelId','howMany','_continueCurrentRevision','targetPosition','insert','position','_pendingAction','getMovedRangeStart','_prepareViewToSave','_clone','_lastTo','_calculateMetaData','marker','_isPendingUpdate','authors','_bufferUpdate','pluginName','userId','values','default','bind','_cloneOperation','clear','toData','updateRevisions','_baseRoots','vid_start','version','filter','revision-start','_diffRoots','children','getAttributes','splitPosition','roots','_startingRevisionId','adapter','createPositionAfter','delete','_setConversion','setRevisionData','RevisionsRepository','split','_handleMarkerOperation','from','newValue','toModel','_handleInsertOperation','_removeRevisionMarkers','vid_end','_removePendingAction','_makeRevision','type','insertion','_addPendingAction','_transformMarkers','string','_getViewJson','getAttribute','getRevisions','data-revision-','source','getAncestors','max','data','_makeModelFromViewString','_bufferedUpdates','addRootAttribute','documentFragment','creatorId','_removeMetaData','locale','offset','initialData','move','history','root','set','_handleRootOperation','trim','_saveMetaData','config','add','parse','conversion','_markers','offsetSize','slice','_createInitialRevision','_getBaseVids','getChild','getChildren','_insertChild','tableCell','merge','forEach','resolve','isReady','oldRange','_isAttached','end','map','range','_createFromRanges','attachChange','plugins','insertionPosition','saveRevision','_source','editing','has','_loadedStateData','revision:'];(function(_0x2937d4,_0x73fd16){const _0xde56c7=function(_0x141b0f){while(--_0x141b0f){_0x2937d4['push'](_0x2937d4['shift']());}};_0xde56c7(++_0x73fd16);}(_0x73fd,0x111));const _0xde56=function(_0x2937d4,_0x73fd16){_0x2937d4=_0x2937d4-0x0;let _0xde56c7=_0x73fd[_0x2937d4];return _0xde56c7;};import{Users as _0x5e0294}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x368f27,PendingActions as _0x2a1572}from'ckeditor5/src/core';import{logWarning as _0x3ae405,uid as _0x3bba7f}from'ckeditor5/src/utils';import{Position as _0x4604a3,Range as _0x927a0c,Element as _0x4332cf,DocumentFragment as _0x5ac983,ViewText as _0x4ff27b,ViewElement as _0x35bfc4,ViewContainerElement as _0x1146e9,ViewAttributeElement as _0x5c83a2,ViewEmptyElement as _0xb18041,ViewRawElement as _0x43dd33,ViewUIElement as _0x2ba385,ViewDocumentFragment as _0x3823ce}from'ckeditor5/src/engine';import _0x443790 from'./revisionsrepository';import{getTranslation as _0x1601b7}from'./utils/common-translations';import{cloneDeep as _0x4bd79b,isEqual as _0x3cb537}from'lodash-es';const B={'c':_0x1146e9,'a':_0x5c83a2,'e':_0xb18041,'r':_0x43dd33,'u':_0x2ba385};export default class l extends _0x368f27{static get[_0xde56('0xa4')](){return _0xde56('0x6c');}static get[_0xde56('0x8d')](){return[_0x5e0294,_0x443790,_0x2a1572];}constructor(_0x2e0e40){super(_0x2e0e40),this[_0xde56('0xb8')]=null,this[_0xde56('0x59')]=null,this[_0xde56('0x68')]=new H(this[_0xde56('0x2f')]),this[_0xde56('0x87')]=this[_0xde56('0x2f')]['config'][_0xde56('0x11')]('collaboration.channelId')||_0xde56('0x75'),this[_0xde56('0xd6')]=new Map(),this['_loadedStateData']=null;const _0x3df10a=_0x3bba7f();this[_0xde56('0x100')]={'history':this[_0xde56('0x2f')][_0xde56('0x7a')]['document']['history'],'getLatestVersion':()=>Promise[_0xde56('0xf4')](this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x2e')][_0xde56('0xaf')]),'getCurrentRevisionId':()=>_0x3df10a},this[_0xde56('0xe1')]('isReady',!0x1),this[_0xde56('0xe1')](_0xde56('0x88'),!0x0),this['set'](_0xde56('0xa1'),!0x1),this[_0xde56('0x2f')][_0xde56('0xe5')][_0xde56('0xc')](_0xde56('0x41'),!0x0),this[_0xde56('0x2f')][_0xde56('0xe8')][_0xde56('0x51')](_0xde56('0x6'))['dataToMarker']({'view':'revision'});}[_0xde56('0x3d')](){this[_0xde56('0x90')]=this[_0xde56('0x2f')][_0xde56('0xfd')]['get'](_0xde56('0xbd')),this[_0xde56('0xbb')](),this['editor']['data']['on'](_0xde56('0x82'),()=>{const _0x2fa6fe=this[_0xde56('0x90')][_0xde56('0x15')](0x0),_0x417c6f=_0x2fa6fe&&null===_0x2fa6fe['creator']?_0x2fa6fe:null;if(this[_0xde56('0x96')]=!!_0x417c6f&&this[_0xde56('0x2f')][_0xde56('0xe5')][_0xde56('0x11')](_0xde56('0x41')),this[_0xde56('0x2f')][_0xde56('0xfd')]['has'](_0xde56('0x23'))){const _0x193c1e=this[_0xde56('0x100')]['getCurrentRevisionId'](),_0x12b05d=this['repository'][_0xde56('0x15')](_0x193c1e);if(_0x12b05d)this[_0xde56('0x45')]=_0x12b05d[_0xde56('0x48')],this['_continueCurrentRevision']=!0x1;else{const _0x21be33=this[_0xde56('0x100')][_0xde56('0xdf')]['_operations']['find'](_0x27da08=>!_0x27da08[_0xde56('0x26')]),_0x388e74=_0x21be33?_0x21be33[_0xde56('0x50')]:this[_0xde56('0x100')]['history']['version'];_0x2fa6fe?(_0x2fa6fe[_0xde56('0x92')]<_0x388e74&&_0x2fa6fe[_0xde56('0x6a')]({'toVersion':_0x388e74}),this[_0xde56('0x96')]?(this[_0xde56('0x100')][_0xde56('0x8c')]=()=>_0x417c6f['id'],this[_0xde56('0x45')]=_0x417c6f[_0xde56('0x48')]):(this[_0xde56('0x45')]=_0x2fa6fe['toVersion'],this['_continueCurrentRevision']=!0x1)):(this[_0xde56('0x45')]=_0x388e74,this['_continueCurrentRevision']=!0x1);}}else _0x417c6f&&(this[_0xde56('0x2f')]['model'][_0xde56('0x2e')][_0xde56('0xdf')]['version']=Math[_0xde56('0xd3')](_0x417c6f[_0xde56('0x92')],this[_0xde56('0x2f')][_0xde56('0x7a')]['document']['history'][_0xde56('0xaf')]),_0x417c6f[_0xde56('0x48')]===_0x417c6f[_0xde56('0x92')]?(0x0!==_0x417c6f[_0xde56('0x48')]&&(this[_0xde56('0x100')][_0xde56('0x8c')]=()=>_0x417c6f['id']),this['_continueCurrentRevision']=!0x1):this[_0xde56('0x96')]&&(this['_source'][_0xde56('0x8c')]=()=>_0x417c6f['id'],this[_0xde56('0x45')]=_0x417c6f[_0xde56('0x48')])),this['_continueCurrentRevision']||(this[_0xde56('0x45')]=this['editor'][_0xde56('0x7a')][_0xde56('0x2e')]['version']);this[_0xde56('0x68')][_0xde56('0x3d')](this[_0xde56('0x100')][_0xde56('0xdf')]),this[_0xde56('0xec')](this['_startingVersion']),this['_createCurrentRevision'](this[_0xde56('0x45')]),this[_0xde56('0xb8')]&&this['sendBufferedUpdates']();}),this[_0xde56('0xa8')](_0xde56('0xf5'))['to'](this,_0xde56('0xa1'),_0x245de9=>!_0x245de9);}async[_0xde56('0x1c')](){if(this[_0xde56('0x90')][_0xde56('0x13')]>0x0){const _0x511ef2=this['repository'][_0xde56('0x15')](0x0),_0x5c018b=await this[_0xde56('0x5a')](_0x511ef2),_0x5a5c2a=await this[_0xde56('0x73')](_0x511ef2);this[_0xde56('0x0')](_0x5c018b,_0x5a5c2a);}}[_0xde56('0x1d')](_0x4629ec){this[_0xde56('0x100')]=_0x4629ec;}async['update'](){const _0x1b4fc1=await this[_0xde56('0x100')][_0xde56('0x7c')]();if(_0x1b4fc1>this[_0xde56('0x59')][_0xde56('0x92')]){await this[_0xde56('0x36')]();const _0x100dd8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1b4fc1});_0x100dd8[_0xde56('0xa2')]=_0x100dd8[_0xde56('0x21')][_0xde56('0xf9')](_0x3645cb=>this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('Users')[_0xde56('0x84')](_0x3645cb)),this[_0xde56('0x59')][_0xde56('0x6a')](_0x100dd8);}}async[_0xde56('0x36')](){this[_0xde56('0x96')]&&!this['_loadedStateData']&&(await this[_0xde56('0x38')](this[_0xde56('0x59')]),this[_0xde56('0x68')]['loadState'](this[_0xde56('0x59')]),this[_0xde56('0x103')]={'fromVersion':this['currentRevision'][_0xde56('0x48')],'authors':this['currentRevision'][_0xde56('0xa2')][_0xde56('0xeb')]()});}async[_0xde56('0xff')](_0x364470={},_0x77935c=null){const _0x15c46e=[];await this[_0xde56('0x36')](),this[_0xde56('0x96')]=!0x1,_0x77935c>this[_0xde56('0x59')][_0xde56('0x92')]&&(_0x77935c=null),null===_0x77935c&&(_0x77935c=await this[_0xde56('0x100')][_0xde56('0x7c')]());const _0x39ab89=this[_0xde56('0x86')](_0x77935c),_0x4fe7d9=this['buildRevisionData']({'from':_0x39ab89,'to':_0x77935c});if(this['currentRevision'][_0xde56('0x92')]<_0x77935c){const _0x13cff5=this[_0xde56('0x37')]({'revision':this[_0xde56('0x59')],'from':_0x77935c,'to':_0x77935c});_0x13cff5[_0xde56('0xa2')]=[],_0x13cff5[_0xde56('0x21')]=[],_0x13cff5['id']=this['currentRevision']['id'],this[_0xde56('0x59')][_0xde56('0x6a')](_0x13cff5,!0x0),delete _0x13cff5[_0xde56('0xa2')],_0x15c46e[_0xde56('0xd')](_0x13cff5);}_0x364470[_0xde56('0xd9')]=this['editor'][_0xde56('0xfd')]['get'](_0xde56('0x3e'))['me']['id'],_0x364470['name']=_0x364470['name']||null,_0x364470['id']=_0x364470['id']||_0x3bba7f(),_0x364470={..._0x364470,..._0x4fe7d9};const _0x5f0e91=this[_0xde56('0x71')](_0x364470);_0x15c46e['push'](_0x364470);const _0x1b4376=this[_0xde56('0x90')][_0xde56('0x46')](_0x5f0e91);if(0x0!==_0x1b4376){const _0x44af18=this['repository'][_0xde56('0x15')](_0x1b4376-0x1);if(_0x44af18[_0xde56('0x48')]!==_0x77935c){const _0x3f9321=this[_0xde56('0x68')]['getData'](_0x77935c,_0x44af18[_0xde56('0x92')]),_0x5910e8={'id':_0x44af18['id'],'diffData':_0x3f9321[_0xde56('0x33')],'authorsIds':_0x3f9321[_0xde56('0x21')],'authors':_0x3f9321[_0xde56('0x21')][_0xde56('0xf9')](_0x17638c=>this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('Users')['getUser'](_0x17638c)),'fromVersion':_0x77935c};_0x44af18===this['currentRevision']&&(_0x5910e8['createdAt']=new Date(_0x364470[_0xde56('0x91')][_0xde56('0x83')]()+0xa)),_0x44af18[_0xde56('0x6a')](_0x5910e8,!0x0),delete _0x5910e8[_0xde56('0xa2')],_0x15c46e[_0xde56('0xd')](_0x5910e8);}}if(this[_0xde56('0xb8')]){for(const _0x4e58ab of _0x15c46e)this[_0xde56('0xa3')](_0x4e58ab['id'],_0x4e58ab,!0x0);this[_0xde56('0x1b')]();}return _0x5f0e91;}['addRevisionData'](_0x1398f5){const _0x28fc2c=this[_0xde56('0x90')][_0xde56('0x1e')](_0x1398f5);return this[_0xde56('0xb8')]&&_0x28fc2c['on']('_update',(_0x14efab,_0x5e7306,_0x182f84)=>{_0x182f84||(this[_0xde56('0xa3')](_0x5e7306['id'],_0x5e7306,!0x0),this[_0xde56('0x1b')]());}),this['repository'][_0xde56('0x85')](_0x28fc2c,this['_findInsertionIndex'](_0x28fc2c)),_0x28fc2c;}async[_0xde56('0x5a')](_0x5da642){await this[_0xde56('0x38')](_0x5da642);const _0x2f177d={};for(const _0x5e7721 in _0x5da642[_0xde56('0x33')]){if(_0x5da642[_0xde56('0x33')][_0x5e7721]['attachChange']&&!_0x5da642['diffData'][_0x5e7721][_0xde56('0xfc')][_0xde56('0x3')])continue;const _0x470279=this[_0xde56('0xc4')](JSON[_0xde56('0xe7')](_0x5da642[_0xde56('0x33')][_0x5e7721][_0xde56('0x108')])),_0x2f7e0a=this[_0xde56('0x2f')][_0xde56('0x101')]['view'][_0xde56('0x2e')],_0x3b4ac9=new _0x3823ce(_0x2f7e0a,_0x470279[_0xde56('0xf9')](_0x52559d=>J(_0x52559d,this[_0xde56('0x2f')])));this['editor'][_0xde56('0xd4')][_0xde56('0x6b')][_0xde56('0x2b')]('marked'),_0x2f177d[_0x5e7721]=this[_0xde56('0x2f')]['data']['processor'][_0xde56('0xab')](_0x3b4ac9),this[_0xde56('0x2f')]['data'][_0xde56('0x6b')][_0xde56('0x2b')](_0xde56('0xa7'));}return _0x2f177d;}async[_0xde56('0x73')](_0x5420b5){await this[_0xde56('0x38')](_0x5420b5);const _0x367f26={};for(const _0x571c1d in _0x5420b5['diffData'])_0x5420b5[_0xde56('0x33')][_0x571c1d]['attachChange']&&!_0x5420b5[_0xde56('0x33')][_0x571c1d][_0xde56('0xfc')]['isAttached']||(_0x367f26[_0x571c1d]=_0x5420b5['diffData'][_0x571c1d][_0xde56('0x5b')]||{});return _0x367f26;}[_0xde56('0x1b')](){if(0x0===this[_0xde56('0xd6')][_0xde56('0x5f')])return;if(this['_isPendingUpdate'])return;let _0x30f970=Array[_0xde56('0xc0')](this[_0xde56('0xd6')][_0xde56('0xa6')]());this[_0xde56('0xd6')][_0xde56('0xaa')]();for(let _0x3597eb=0x0;_0x3597eb<_0x30f970['length'];_0x3597eb++){const _0x47a4ef=_0x30f970[_0x3597eb];let _0x185121=!0x1;for(const _0x1c2881 of Object[_0xde56('0x53')](_0x47a4ef))void 0x0===_0x47a4ef[_0x1c2881]?delete _0x47a4ef[_0x1c2881]:'id'!==_0x1c2881&&(_0x185121=!0x0);_0x185121||(_0x30f970[_0x3597eb]=null);}if(_0x30f970=_0x30f970[_0xde56('0xb0')](_0x424eb2=>null!==_0x424eb2),!_0x30f970[_0xde56('0x13')])return;for(let _0x2886cf=0x0;_0x2886cf<_0x30f970[_0xde56('0x13')];_0x2886cf++){const _0x467e52=_0x30f970[_0x2886cf];void 0x0!==_0x467e52['fromVersion']&&void 0x0===_0x467e52[_0xde56('0x92')]&&(_0x467e52[_0xde56('0x92')]=this[_0xde56('0x90')][_0xde56('0x15')](_0x467e52['id'])['toVersion']),void 0x0!==_0x467e52[_0xde56('0x92')]&&void 0x0===_0x467e52[_0xde56('0x48')]&&(_0x467e52[_0xde56('0x48')]=this[_0xde56('0x90')][_0xde56('0x15')](_0x467e52['id'])['fromVersion']);}const _0x423df7=this[_0xde56('0x2f')][_0xde56('0xe5')][_0xde56('0x11')](_0xde56('0x94'));this['_isPendingUpdate']=!0x0,this[_0xde56('0xca')](),this[_0xde56('0xb8')][_0xde56('0xac')](_0x30f970,_0x423df7)[_0xde56('0x49')](()=>{this['_isPendingUpdate']=!0x1;})[_0xde56('0x52')](_0x1a4ae6=>{if(_0x1a4ae6)for(const _0x1afeee of _0x1a4ae6)this[_0xde56('0xbc')]({'id':_0x1afeee['id'],'createdAt':_0x1afeee[_0xde56('0x91')]});this[_0xde56('0xc6')](),this[_0xde56('0x1b')]();});}['_replaceEditorDataWithRevisionData'](_0xd31fb8,_0x25f839){let _0x5dd055=this[_0xde56('0x2f')][_0xde56('0xe5')][_0xde56('0x11')](_0xde56('0xdd')),_0x84b605=this[_0xde56('0x2f')]['config'][_0xde56('0x11')](_0xde56('0x4d'));if(void 0x0===_0x5dd055){_0x5dd055={};for(const _0x5603e2 of this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x2e')][_0xde56('0x30')]())_0x5dd055[_0x5603e2]='';}if(_0xde56('0xcc')==typeof _0x5dd055&&(_0x5dd055={'main':_0x5dd055}),void 0x0===_0x84b605){_0x84b605={};for(const _0x2d7fac of this[_0xde56('0x2f')]['model'][_0xde56('0x2e')][_0xde56('0x30')]())_0x84b605[_0x2d7fac]={};}let _0x42b4a4=!0x1;const _0x56153f=Object[_0xde56('0x53')](_0x5dd055),_0x50214d=Object[_0xde56('0x53')](_0xd31fb8);for(const _0x4926d9 of _0x56153f){if(_0x5dd055[_0x4926d9]!==_0xd31fb8[_0x4926d9]&&''!==_0x5dd055[_0x4926d9][_0xde56('0xe3')]()){_0x42b4a4=!0x0;break;}if(!_0x3cb537(_0x84b605[_0x4926d9],_0x25f839[_0x4926d9])&&Object[_0xde56('0x53')](_0x84b605[_0x4926d9])[_0xde56('0x13')]>0x0){_0x42b4a4=!0x0;break;}}_0x42b4a4||(_0x42b4a4=_0x50214d[_0xde56('0x107')](_0x127d79=>!this[_0xde56('0x2f')]['model'][_0xde56('0x2e')][_0xde56('0x54')](_0x127d79))),_0x42b4a4&&_0x3ae405('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5dd055,'editorRootsAttributes':_0x84b605,'revisionData':_0xd31fb8,'revisionRootsAttributes':_0x25f839}),this[_0xde56('0x2f')]['config'][_0xde56('0xe1')](_0xde56('0xdd'),_0xd31fb8),this['editor'][_0xde56('0xe5')][_0xde56('0xe1')](_0xde56('0x4d'),_0x25f839);}['_addPendingAction'](){if(!this[_0xde56('0x9a')]){const _0x1f285d=this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')](_0xde56('0x6e'));this[_0xde56('0x9a')]=_0x1f285d[_0xde56('0xe6')](_0x1601b7(this[_0xde56('0x2f')][_0xde56('0xdb')],_0xde56('0x42')));}}[_0xde56('0xc6')](){this[_0xde56('0x9a')]&&(this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('PendingActions')['remove'](this[_0xde56('0x9a')]),this[_0xde56('0x9a')]=null);}['_findInsertionIndex'](_0x1254c1){const _0x209958=this['repository'][_0xde56('0xcf')]();_0x209958[_0xde56('0x6d')]();let _0x527f5c=0x0;for(;_0x527f5c<_0x209958[_0xde56('0x13')];){const _0x1d1e53=_0x209958[_0x527f5c];if(_0x1d1e53===this[_0xde56('0x59')]){_0x527f5c++;continue;}if(_0x1d1e53['id']===this[_0xde56('0x87')])break;const _0x17cf03=_0x1254c1[_0xde56('0x92')]-_0x1d1e53[_0xde56('0x92')]||_0x1254c1[_0xde56('0x48')]-_0x1d1e53[_0xde56('0x48')];if(_0x17cf03>0x0)break;if(_0x17cf03<0x0)_0x527f5c++;else{if(!_0x1254c1[_0xde56('0x29')]&&_0x1d1e53[_0xde56('0x29')])break;if(_0x1d1e53[_0xde56('0x29')]||!_0x1254c1[_0xde56('0x29')]){if(_0x1254c1[_0xde56('0x91')]>_0x1d1e53[_0xde56('0x91')])break;_0x527f5c++;}else _0x527f5c++;}}return _0x527f5c;}['setRevisionData'](_0x1b5f02){const _0x1bb1c7=this['repository']['getRevision'](_0x1b5f02['id']);if(_0x1b5f02[_0xde56('0x91')]&&(_0x1b5f02[_0xde56('0x91')]=new Date(_0x1b5f02[_0xde56('0x91')])),_0x1b5f02[_0xde56('0x21')]){const _0x42aeb9=this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')](_0xde56('0x3e'));_0x1b5f02[_0xde56('0xa2')]=_0x1b5f02[_0xde56('0x21')][_0xde56('0xf9')](_0x57d6d9=>_0x42aeb9[_0xde56('0x84')](_0x57d6d9));}_0x1bb1c7[_0xde56('0x6a')](_0x1b5f02,!0x0);}[_0xde56('0x37')]({revision:_0x1bdcc4=null,from:_0x25fe8a=null,to:_0x3a2634=null}){_0x25fe8a=null!==_0x25fe8a?_0x25fe8a:_0x1bdcc4['fromVersion'],_0x3a2634=null!==_0x3a2634?_0x3a2634:_0x1bdcc4[_0xde56('0x92')];const _0x190563=this['_revisionDataBuilder'][_0xde56('0x4f')](_0x25fe8a,_0x3a2634),_0x267fdd={'diffData':_0x190563['diffData'],'authorsIds':_0x190563['authorsIds'],'fromVersion':_0x25fe8a,'toVersion':_0x3a2634};if(!_0x1bdcc4||_0x3a2634!==_0x1bdcc4[_0xde56('0x92')]){const _0x34b4fd=_0x3a2634-0x1,_0x2276dc=this[_0xde56('0x100')][_0xde56('0xdf')][_0xde56('0xf')](_0x34b4fd);_0x267fdd['createdAt']=_0x2276dc&&_0x2276dc[_0xde56('0x91')]||new Date();}if(this['_loadedStateData']&&_0x25fe8a===this['_loadedStateData']['fromVersion'])for(const _0x1e96e5 of this[_0xde56('0x103')][_0xde56('0xa2')])_0x267fdd[_0xde56('0x21')][_0xde56('0x78')](_0x1e96e5['id'])||_0x267fdd['authorsIds'][_0xde56('0xd')](_0x1e96e5['id']);return _0x267fdd;}[_0xde56('0x38')](_0x59fc0f){if(!_0x59fc0f||_0x59fc0f[_0xde56('0x33')])return Promise[_0xde56('0xf4')]();{const _0x4068b0=this[_0xde56('0x2f')]['config']['get'](_0xde56('0x94'));return this[_0xde56('0xb8')][_0xde56('0x15')]({'channelId':_0x4068b0,'revisionId':_0x59fc0f['id']})[_0xde56('0x52')](_0x3495a1=>{_0x59fc0f[_0xde56('0x33')]=_0x3495a1['diffData'];});}}['_bufferUpdate'](_0x5345bd,_0x4bbc30,_0x1e100a){if(this[_0xde56('0xd6')][_0xde56('0x102')](_0x5345bd)){const _0x301b52=this[_0xde56('0xd6')]['get'](_0x5345bd);_0x4bbc30=_0x1e100a?{..._0x301b52,..._0x4bbc30}:{..._0x4bbc30,..._0x301b52};}this['_bufferedUpdates'][_0xde56('0xe1')](_0x5345bd,_0x4bbc30);}[_0xde56('0x86')](_0x1c4fa1){const _0x8b2a4f=this[_0xde56('0x90')][_0xde56('0xcf')]();_0x8b2a4f[_0xde56('0x6d')](),_0x8b2a4f[_0xde56('0x7f')]();const _0x12a7d3=_0x8b2a4f[_0xde56('0x81')](_0x59255a=>_0x59255a[_0xde56('0x92')]<=_0x1c4fa1)[_0xde56('0x92')];return _0x12a7d3<this['_startingVersion']?this[_0xde56('0x45')]:_0x12a7d3;}[_0xde56('0xec')](_0x4c8183){const _0x82a3cf=this['repository'][_0xde56('0x15')](this[_0xde56('0x90')][_0xde56('0x13')]-0x1);if(_0x82a3cf)this[_0xde56('0x87')]=_0x82a3cf['id'];else{const _0x30b81d=!this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x2e')][_0xde56('0xb6')]['find'](_0x3f2294=>this[_0xde56('0x2f')][_0xde56('0x7a')]['hasContent'](_0x3f2294)),_0x3f0dd0=this[_0xde56('0x2f')][_0xde56('0xfd')]['get']('Users')['me']['id'],_0x83be3b=_0x1601b7(this[_0xde56('0x2f')][_0xde56('0xdb')],_0x30b81d?'Empty\x20document':_0xde56('0x1'));this['_makeRevision']({'from':_0x4c8183,'to':_0x4c8183,'id':this[_0xde56('0x87')],'name':_0x83be3b,'creatorId':_0x3f0dd0});}}['_createCurrentRevision'](_0x4c450b){const _0x378722=this[_0xde56('0x100')]['getCurrentRevisionId']();this[_0xde56('0x59')]=this[_0xde56('0x90')][_0xde56('0x15')](_0x378722),this[_0xde56('0x59')]||(this[_0xde56('0x59')]=this[_0xde56('0xc7')]({'from':_0x4c450b,'to':_0x4c450b,'id':_0x378722,'name':'','creatorId':null}));}[_0xde56('0xc7')]({name:_0x1d1f6e,from:_0x4d69e9,to:_0x65ec96,creatorId:_0x3655e9,id:_0x69c760}){const _0x2fc309=this[_0xde56('0x37')]({'from':_0x4d69e9,'to':_0x65ec96});_0x2fc309[_0xde56('0x3f')]=_0x1d1f6e,_0x2fc309[_0xde56('0xd9')]=_0x3655e9,_0x2fc309['id']=_0x69c760;const _0x21d6d7=this[_0xde56('0x71')](_0x2fc309);return this[_0xde56('0xb8')]&&this[_0xde56('0xa3')](_0x2fc309['id'],_0x2fc309,!0x0),_0x21d6d7;}['_setConversion'](){this[_0xde56('0x2f')][_0xde56('0xe8')][_0xde56('0x51')]('dataDowncast')[_0xde56('0x2c')]({'model':_0xde56('0x4c')});}[_0xde56('0xc4')](_0x5509b4){return(_0x5509b4=_0x5509b4[_0xde56('0xb0')](_0x1a2062=>!_0x1a2062[_0xde56('0x3f')]||_0xde56('0xb1')!==_0x1a2062[_0xde56('0x3f')]&&_0xde56('0x60')!==_0x1a2062[_0xde56('0x3f')]))[_0xde56('0xf3')](_0x1400ec=>{_0xde56('0xcc')!=typeof _0x1400ec&&(_0x1400ec['children']=this[_0xde56('0xc4')](_0x1400ec[_0xde56('0xb3')]),_0x1400ec[_0xde56('0x74')]=_0x1400ec[_0xde56('0x74')][_0xde56('0xb0')](_0x20ded8=>!_0x20ded8[0x0][_0xde56('0x109')](_0xde56('0xd0'))));}),_0x5509b4;}}function J(_0x41aa39,_0x22390b){const _0x407e4f=_0x22390b[_0xde56('0x101')]['view'][_0xde56('0x2e')];if(_0xde56('0xcc')==typeof _0x41aa39)return new _0x4ff27b(_0x407e4f,_0x41aa39);{const _0x36e6ee=_0x41aa39[_0xde56('0xb3')]['map'](_0x570130=>J(_0x570130,_0x22390b));return new(B[_0x41aa39[(_0xde56('0xc8'))]]||_0x35bfc4)(_0x407e4f,_0x41aa39[_0xde56('0x3f')],_0x41aa39[_0xde56('0x74')],_0x36e6ee);}}class H{constructor(_0x5e9046){this[_0xde56('0x2f')]=_0x5e9046,this[_0xde56('0x5')]=new Map(),this[_0xde56('0x3a')]=-0x1,this[_0xde56('0x9e')]=-0x1,this[_0xde56('0xe9')]=new Map(),this[_0xde56('0xb2')]=new Map(),this[_0xde56('0x4a')]=new Map(),this[_0xde56('0xad')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0xde56('0x56')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0xde56('0xb')]=new Map(),this[_0xde56('0x27')]=new Map(),this[_0xde56('0x61')]=new Map(),this['_revisionId']=0x1;}[_0xde56('0x3d')](_0x3738cb){this[_0xde56('0xd1')]=_0x3738cb;const _0x50058d=new Map(),_0x18ba21=new Map(),_0x5696a9=this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x2e')][_0xde56('0xb6')][_0xde56('0xf9')](_0xbb2b74=>_0xbb2b74[_0xde56('0x35')]);for(const _0x1db9d4 of _0x5696a9){const _0x2d9d95=this[_0xde56('0x2f')]['model'][_0xde56('0x2e')]['getRoot'](_0x1db9d4),_0x224a40=q(_0x2d9d95);_0x50058d[_0xde56('0xe1')](_0x1db9d4,_0x224a40),_0x18ba21[_0xde56('0xe1')](_0x1db9d4,Object[_0xde56('0x25')](_0x2d9d95[_0xde56('0xb4')]()));}const _0x1ab1ed=Array[_0xde56('0xc0')](this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x1a')])[_0xde56('0xf9')](_0x4fe6c9=>[_0x4fe6c9['name'],_0x4fe6c9['getRange']()]),_0x5c42b9=this[_0xde56('0xd1')][_0xde56('0xaf')];this['_saveMetaData'](_0x5c42b9,_0x50058d,_0x1ab1ed,_0x18ba21),this[_0xde56('0xb7')]=this[_0xde56('0x105')];const _0x2a938b=new Map(),_0x18bbcb=new Map();for(const _0x5a2fe2 of _0x5696a9){const _0x164f99=G(_0x5a2fe2);_0x2a938b['set'](_0x5a2fe2,_0x164f99),_0x18bbcb[_0xde56('0xe1')](_0x5a2fe2,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2a938b,[],_0x18bbcb);}[_0xde56('0x4f')](_0x46a5a6,_0x31e09d){if(this[_0xde56('0x3a')]===_0x46a5a6&&this[_0xde56('0x9e')]<=_0x31e09d)this[_0xde56('0x5')][_0xde56('0x5f')]>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this[_0xde56('0x9e')],_0x31e09d,!0x0);else{if(!this[_0xde56('0x5')][_0xde56('0x102')](_0x46a5a6)){const _0x36d34b=this[_0xde56('0x7')](_0x46a5a6);this['_calculateMetaData'](_0x36d34b,_0x46a5a6,!0x1);}this[_0xde56('0x9f')](_0x46a5a6,_0x31e09d,!0x0);}return this[_0xde56('0x3a')]=_0x46a5a6,this[_0xde56('0x9e')]=_0x31e09d,this[_0xde56('0x44')]();}[_0xde56('0x67')](_0x4fa9d8){this[_0xde56('0x76')](),this[_0xde56('0x3a')]=_0x4fa9d8[_0xde56('0x48')],this[_0xde56('0x9e')]=_0x4fa9d8[_0xde56('0x92')];for(const _0x69a97d in _0x4fa9d8[_0xde56('0x33')]){const _0xc4b5ae=_0x4fa9d8['diffData'][_0x69a97d][_0xde56('0xfc')],_0x4e8950=_0x4bd79b(_0x4fa9d8[_0xde56('0x33')][_0x69a97d]['attributesBefore'])||{},_0x1e2d86=this[_0xde56('0xd5')](_0x4fa9d8[_0xde56('0x33')][_0x69a97d][_0xde56('0x4e')]);_0x1e2d86[_0xde56('0x35')]=_0x69a97d,_0x1e2d86[_0xde56('0xf7')]=!_0xc4b5ae||!_0xc4b5ae[_0xde56('0x3')],_0x1e2d86[_0xde56('0x3')]=()=>_0x1e2d86[_0xde56('0xf7')],this[_0xde56('0xad')]['set'](_0x69a97d,_0x1e2d86),this['_baseRootsAttributes'][_0xde56('0xe1')](_0x69a97d,_0x4e8950),_0xc4b5ae&&this[_0xde56('0x61')][_0xde56('0xe1')](_0x69a97d,_0xc4b5ae);const _0x7d6c84=this[_0xde56('0x14')](_0x1e2d86);this[_0xde56('0x8')][_0xde56('0xe1')](_0x69a97d,_0x7d6c84);for(const [_0xa5c350,_0x43e531]of _0x1e2d86[_0xde56('0x1a')]){if(!_0xa5c350[_0xde56('0x109')](_0xde56('0x104')))continue;const _0x46a947=_0xa5c350[_0xde56('0xbe')](':')[0x2];for(const _0xa0ea25 of _0x43e531[_0xde56('0x32')]({'singleCharacters':!0x0})){const _0x117ae4=this[_0xde56('0x57')](_0xa0ea25),_0x24c550=_0xde56('0x18')==_0xa0ea25[_0xde56('0xc8')]?_0xa0ea25[_0xde56('0x69')][_0xde56('0xa')]['slice'](0x0,-0x1):_0xa0ea25[_0xde56('0x69')][_0xde56('0xa')],_0xe0715e=_0x7d6c84[_0xde56('0x10a')](_0x24c550)[_0xde56('0xce')](_0x117ae4);this['_touched'][_0xde56('0xe1')](_0xe0715e,{'userId':_0x46a947});}}}this[_0xde56('0xb7')]=this[_0xde56('0x105')];const _0x5ffd55=[...Array(this[_0xde56('0x105')])[_0xde56('0x53')]()][_0xde56('0xeb')](0x1)[_0xde56('0xb0')](_0x4cb27d=>!this[_0xde56('0xb')]['has'](_0x4cb27d));let _0x342a58=0x0;const _0x405f24=new Map();for(const _0x3e1494 in _0x4fa9d8['diffData']){const _0x35c971=_0x4fa9d8['diffData'][_0x3e1494][_0xde56('0xfc')],_0x5ea663=_0x4bd79b(_0x4fa9d8['diffData'][_0x3e1494][_0xde56('0x5b')])||{},_0x32fa2a=this[_0xde56('0xd5')](_0x4fa9d8['diffData'][_0x3e1494][_0xde56('0x108')]);_0x32fa2a[_0xde56('0x35')]=_0x3e1494,_0x32fa2a[_0xde56('0xf7')]=!_0x35c971||_0x35c971['isAttached'],_0x32fa2a['isAttached']=()=>_0x32fa2a['_isAttached'],this[_0xde56('0xb2')]['set'](_0x3e1494,_0x32fa2a),this[_0xde56('0x4a')]['set'](_0x3e1494,_0x5ea663);const _0x3999e2=this[_0xde56('0x14')](_0x32fa2a,Number[_0xde56('0xe')]);this['_idsRoots']['set'](_0x3e1494,_0x3999e2),_0x405f24['set'](_0x3e1494,_0x32fa2a[_0xde56('0x3')]()?_0x5ea663:{});for(const [_0x1220cc,_0x4ad81d]of _0x32fa2a['markers']){if(!_0x1220cc[_0xde56('0x109')]('revision:'))continue;const _0x22fcc8=_0x1220cc['split'](':')[0x2];for(const _0x2c8404 of _0x4ad81d[_0xde56('0x32')]({'singleCharacters':!0x0})){const _0x42a194=this[_0xde56('0x57')](_0x2c8404),_0xbb4b19=this[_0xde56('0x105')]++,_0x1988f5='elementEnd'==_0x2c8404[_0xde56('0xc8')]?_0x2c8404[_0xde56('0x69')][_0xde56('0xa')][_0xde56('0xeb')](0x0,-0x1):_0x2c8404['previousPosition'][_0xde56('0xa')];_0x3999e2['getNodeByPath'](_0x1988f5)[_0xde56('0x34')](_0x42a194,_0xbb4b19),this[_0xde56('0xb')][_0xde56('0xe1')](_0xbb4b19,{'userId':_0x22fcc8});}}for(const _0x2cfe8e of this['editor'][_0xde56('0x7a')][_0xde56('0x58')](_0x32fa2a)['getWalker']({'singleCharacters':!0x0})){const _0x2baafb=this[_0xde56('0x57')](_0x2cfe8e),_0x3b35ae='elementEnd'==_0x2cfe8e[_0xde56('0xc8')]?_0x2cfe8e['previousPosition'][_0xde56('0xa')][_0xde56('0xeb')](0x0,-0x1):_0x2cfe8e[_0xde56('0x69')][_0xde56('0xa')],_0x14e613=_0x3999e2[_0xde56('0x10a')](_0x3b35ae);_0x14e613['getAttribute'](_0x2baafb)>0x0||_0x14e613[_0xde56('0x34')](_0x2baafb,_0x5ffd55[_0x342a58++]);}for(const [_0x48588a,_0x4d9d00]of _0x32fa2a[_0xde56('0x1a')])_0x48588a[_0xde56('0x109')]('revision:')||this['_markers'][_0xde56('0xe1')](_0x48588a,_0x4d9d00);}const _0xf6d8b6=G(_0xde56('0x55'));this[_0xde56('0xad')][_0xde56('0xe1')](_0xde56('0x55'),_0xf6d8b6),this[_0xde56('0x8')][_0xde56('0xe1')](_0xde56('0x55'),this[_0xde56('0x14')](_0xf6d8b6,0x1));const _0x443fce=G(_0xde56('0x55'));this['_diffRoots'][_0xde56('0xe1')](_0xde56('0x55'),_0x443fce),this['_idsRoots'][_0xde56('0xe1')](_0xde56('0x55'),this[_0xde56('0x14')](_0x443fce,0x1));const _0x1bd1cd=Array[_0xde56('0xc0')](this['_diffRoots'])['map'](([_0x55d51e,_0x5859fa])=>[_0x55d51e,q(_0x5859fa)]);this['_saveMetaData'](this['_lastTo'],_0x1bd1cd,this[_0xde56('0xe9')],_0x405f24);}[_0xde56('0xd5')](_0x414d18){const _0x15c4ab=JSON[_0xde56('0xe7')](_0x414d18),_0x2cfd3f=this[_0xde56('0x2f')][_0xde56('0x101')][_0xde56('0x16')][_0xde56('0x2e')],_0x5ec648=new _0x3823ce(_0x2cfd3f,_0x15c4ab['map'](_0x1a26f8=>J(_0x1a26f8,this[_0xde56('0x2f')])));return this[_0xde56('0x2f')]['data'][_0xde56('0xc2')](_0x5ec648);}[_0xde56('0xe4')](_0x41cf01,_0x151323,_0x2183e1,_0x543ee9){const _0x426b96=new Map(_0x151323),_0x53e13e=new Map(_0x4bd79b(_0x543ee9)),_0x1e5df6=new Map();for(const [_0x56a3ec,_0x20540c]of _0x2183e1)_0x1e5df6[_0xde56('0xe1')](_0x56a3ec,{'start':_0x20540c[_0xde56('0x7e')][_0xde56('0x8f')](),'end':_0x20540c[_0xde56('0xf8')][_0xde56('0x8f')](),'rootName':_0x20540c[_0xde56('0xe0')][_0xde56('0x35')]});this[_0xde56('0x5')]['set'](_0x41cf01,{'roots':_0x426b96,'markers':_0x1e5df6,'rootsAttributes':_0x53e13e});}[_0xde56('0xda')](_0x45321e){this[_0xde56('0x5')]['delete'](_0x45321e);}[_0xde56('0x7d')](){this['_reset'](),this[_0xde56('0x3a')]=-0x1,this[_0xde56('0x9e')]=-0x1,this[_0xde56('0x5')]['clear'](),this[_0xde56('0x3d')](this[_0xde56('0xd1')]);}[_0xde56('0x76')](){this[_0xde56('0xb')][_0xde56('0xaa')](),this['_touchedMarkers'][_0xde56('0xaa')](),this['_touchedRoots'][_0xde56('0xaa')](),this[_0xde56('0xb2')][_0xde56('0xaa')](),this[_0xde56('0x4a')]['clear'](),this[_0xde56('0xad')][_0xde56('0xaa')](),this[_0xde56('0x2d')][_0xde56('0xaa')](),this['_idsRoots']['clear'](),this['_baseIdsRoots'][_0xde56('0xaa')](),this[_0xde56('0xe9')][_0xde56('0xaa')](),this[_0xde56('0x105')]=0x1,this[_0xde56('0xb7')]=this[_0xde56('0x105')];}['_makeIdsRoot'](_0x583e4f,_0x1880b0=null){let _0x3b3bc6=null;_0x583e4f['is'](_0xde56('0xd8'))||(_0x3b3bc6=new _0x4332cf(_0x583e4f[_0xde56('0x3f')],{'vid_start':null===_0x1880b0?this[_0xde56('0x105')]++:_0x1880b0++}));const _0x29eadd=[];for(const _0x13a809 of _0x583e4f['getChildren']())if(_0x13a809['is'](_0xde56('0x70'))){_0x29eadd[_0xde56('0xd')](this[_0xde56('0x14')](_0x13a809,_0x1880b0));const _0x216571=_0x29eadd[_0x29eadd[_0xde56('0x13')]-0x1];null!==_0x1880b0&&(_0x1880b0=_0x216571['is'](_0xde56('0x70'),'$text')?_0x216571[_0xde56('0xce')]('vid')+0x1:_0x216571[_0xde56('0xce')](_0xde56('0xc5'))+0x1);}else for(let _0x6487a6=0x0;_0x6487a6<_0x13a809[_0xde56('0xea')];_0x6487a6++)_0x29eadd[_0xde56('0xd')](new _0x4332cf('$text',{'vid':null===_0x1880b0?this[_0xde56('0x105')]++:_0x1880b0++}));if(_0x583e4f['is']('documentFragment')){const _0x42ae6b=G(_0x583e4f[_0xde56('0x35')]);return _0x42ae6b['_insertChild'](0x0,_0x29eadd),_0x42ae6b;}return _0x3b3bc6[_0xde56('0x34')](_0xde56('0xc5'),null===_0x1880b0?this[_0xde56('0x105')]++:_0x1880b0++),_0x3b3bc6[_0xde56('0xf0')](0x0,_0x29eadd),_0x3b3bc6;}[_0xde56('0x9f')](_0x53388e,_0x26c6b8,_0x55961c){this[_0xde56('0x76')]();const {roots:_0x4b0305,markers:_0x14b706,rootsAttributes:_0x3c8f92}=this['_savedMetaData'][_0xde56('0x11')](_0x53388e);this[_0xde56('0xad')]=new Map(_0x4b0305),this[_0xde56('0x2d')]=new Map(_0x4bd79b(_0x3c8f92));for(const [_0x1b5fde,_0x130f0a]of this[_0xde56('0xad')])if(_0xde56('0x55')!==_0x1b5fde&&(this[_0xde56('0xb2')][_0xde56('0xe1')](_0x1b5fde,q(_0x130f0a)),this[_0xde56('0x4a')]=new Map(_0x4bd79b(_0x3c8f92)),_0x55961c)){const _0x5bd3cc=this['_revisionId'];this[_0xde56('0x56')][_0xde56('0xe1')](_0x1b5fde,this[_0xde56('0x14')](_0x130f0a)),this['_baseIdsRoots'][_0xde56('0xe1')](_0x1b5fde,this[_0xde56('0x14')](_0x130f0a,_0x5bd3cc));}this['_startingRevisionId']=this[_0xde56('0x105')],this[_0xde56('0xb2')]['set'](_0xde56('0x55'),q(this[_0xde56('0xad')][_0xde56('0x11')]('$graveyard'))),_0x55961c&&this['_idsRoots'][_0xde56('0xe1')](_0xde56('0x55'),this[_0xde56('0x14')](this[_0xde56('0xad')][_0xde56('0x11')](_0xde56('0x55'))));for(const [_0x295bf7,_0x55dc93]of _0x14b706){const _0x416221=this['_baseRoots'][_0xde56('0x11')](_0x55dc93['rootName']),_0x18984a=this['_diffRoots']['get'](_0x55dc93['rootName']),_0x2066ea=new _0x927a0c(this[_0xde56('0x40')](_0x55dc93[_0xde56('0x7e')],_0x416221),this[_0xde56('0x40')](_0x55dc93[_0xde56('0xf8')],_0x416221)),_0x5ce9f0=this[_0xde56('0x22')](_0x2066ea,_0x18984a);_0x416221[_0xde56('0x1a')]['set'](_0x295bf7,_0x2066ea),this[_0xde56('0xe9')][_0xde56('0xe1')](_0x295bf7,_0x5ce9f0);}this[_0xde56('0x19')](_0x53388e,_0x26c6b8,_0x55961c);}[_0xde56('0x19')](_0x15c830,_0x3089da,_0x5062df){for(const _0x1d3b81 of this[_0xde56('0xd1')][_0xde56('0x12')](_0x15c830,_0x3089da))this[_0xde56('0x3c')](_0x1d3b81,_0x5062df);for(const _0xf698a of this[_0xde56('0xb2')][_0xde56('0xa6')]())_0xf698a[_0xde56('0x1a')][_0xde56('0xaa')]();for(const [_0x226507,_0x1b6c21]of this[_0xde56('0xe9')]){this[_0xde56('0xb2')][_0xde56('0x11')](_0x1b6c21['root'][_0xde56('0x35')])[_0xde56('0x1a')][_0xde56('0xe1')](_0x226507,_0x1b6c21[_0xde56('0x8f')]());}const _0x21b189=new Map(),_0x193cfd=new Map();for(const [_0x5ca712,_0x4d0239]of this[_0xde56('0xb2')])_0x21b189[_0xde56('0xe1')](_0x5ca712,q(_0x4d0239)),_0x193cfd[_0xde56('0xe1')](_0x5ca712,this['_diffRootsAttributes'][_0xde56('0x11')](_0x5ca712));this[_0xde56('0xe4')](_0x3089da,_0x21b189,this[_0xde56('0xe9')],_0x193cfd);}[_0xde56('0x7')](_0x143a95){const _0x267dc6=Array[_0xde56('0xc0')](this[_0xde56('0x5')][_0xde56('0x53')]());_0x267dc6[_0xde56('0x3b')]((_0x55f8ef,_0x4b811f)=>_0x55f8ef-_0x4b811f),_0x267dc6[_0xde56('0x6d')]();for(const _0x3f6401 of _0x267dc6)if(_0x3f6401<_0x143a95)return _0x3f6401;return Number[_0xde56('0xe')];}['_copyMarkers'](_0xfa35dd,_0x1189c8){const _0x450eca=Array['from'](_0x1189c8[_0xde56('0x1a')])[_0xde56('0xf9')](([_0x577c94,_0x43837a])=>[_0x577c94,this[_0xde56('0x22')](_0x43837a,_0xfa35dd)]);_0xfa35dd[_0xde56('0x1a')]=new Map(_0x450eca);}[_0xde56('0xcb')](_0x1dd685){for(const _0x487b9a of this[_0xde56('0xe9')][_0xde56('0xa6')]()){const _0x276591=_0x487b9a[_0xde56('0x28')](_0x1dd685),_0x255a99=_0x927a0c[_0xde56('0xfb')](_0x276591);_0x487b9a[_0xde56('0x7e')]=_0x255a99[_0xde56('0x7e')],_0x487b9a[_0xde56('0xf8')]=_0x255a99[_0xde56('0xf8')];}}[_0xde56('0x3c')](_0x22deef,_0x3e1826){if(_0xde56('0x5c')==_0x22deef[_0xde56('0xc8')]||_0xde56('0x77')==_0x22deef['type'])return void this['_handleRootOperation'](_0x22deef,_0x3e1826);if(_0xde56('0x98')==_0x22deef[_0xde56('0xc8')]){const _0x5ab315=_0x22deef[_0xde56('0x99')][_0xde56('0xe0')][_0xde56('0x35')];this[_0xde56('0xb2')][_0xde56('0x102')](_0x5ab315)||(this[_0xde56('0xb2')][_0xde56('0xe1')](_0x5ab315,G(_0x5ab315,!0x0)),this['_diffRootsAttributes']['set'](_0x5ab315,{}),_0x3e1826&&this[_0xde56('0x56')][_0xde56('0xe1')](_0x5ab315,G(_0x5ab315,!0x0)));}else{if(_0xde56('0xd7')==_0x22deef[_0xde56('0xc8')]||'removeRootAttribute'==_0x22deef[_0xde56('0xc8')]||'changeRootAttribute'==_0x22deef[_0xde56('0xc8')])return void this[_0xde56('0x10')](_0x22deef);}const _0x52e054=this[_0xde56('0xa9')](_0x22deef,this[_0xde56('0xb2')]);if('marker'!==_0x22deef[_0xde56('0xc8')]&&(_0x52e054['_execute'](),this[_0xde56('0xcb')](_0x52e054)),_0x3e1826)switch(_0x52e054['type']){case _0xde56('0x98'):this[_0xde56('0xc3')](_0x22deef);break;case _0xde56('0xde'):case _0xde56('0x106'):case _0xde56('0x39'):this[_0xde56('0x17')](_0x22deef);break;case _0xde56('0xf2'):this[_0xde56('0x63')](_0x22deef);break;case'split':this[_0xde56('0x4b')](_0x22deef);break;case _0xde56('0xa0'):this[_0xde56('0xbf')](_0x22deef);}}[_0xde56('0xa9')](_0x4616d3,_0x49705f){const _0x363565=_0x4616d3[_0xde56('0x8f')]();return _0x363565[_0xde56('0x47')]=_0x4616d3['_authorId'],this[_0xde56('0x2')](_0x363565,_0x49705f),_0x363565;}[_0xde56('0xed')](_0x1cdce2){return _0x1cdce2['map'](_0x4c90ea=>{const _0x4a6851=this[_0xde56('0x57')](_0x4c90ea);return Number(_0x4c90ea[_0xde56('0x8e')][_0xde56('0xce')](_0x4a6851));});}['_generateTape'](_0x28c00d,_0xa95ac2){if(_0x28c00d['is']('element','$text'))_0xa95ac2['push']({'item':_0x28c00d,'type':_0xde56('0x64')});else{_0x28c00d['is']('element')&&_0xa95ac2[_0xde56('0xd')]({'item':_0x28c00d,'type':_0xde56('0x43')});for(const _0x3399b0 of _0x28c00d[_0xde56('0xef')]())this[_0xde56('0x93')](_0x3399b0,_0xa95ac2);_0x28c00d['is']('element')&&_0xa95ac2['push']({'item':_0x28c00d,'type':'elementEnd'});}return _0xa95ac2;}['_getState'](){const _0x3f7909=new Map(this['_touched']),_0xecf87f=new Map(_0x3f7909),_0xd074f2=new Map(),_0x410ceb={'insertions':{},'deletions':{}},_0x222c32={'insertions':{},'deletions':{}},_0x4734c6=new Map(),_0x13c985=new Set([...this[_0xde56('0xad')][_0xde56('0x53')](),...this['_diffRoots'][_0xde56('0x53')]()]);_0x13c985[_0xde56('0xba')](_0xde56('0x55'));for(const _0x2939a8 of _0x13c985){const _0x2fd0f4=this[_0xde56('0xb2')][_0xde56('0x11')](_0x2939a8)||G(_0x2939a8,!0x1),_0x567d83=this['_baseRoots'][_0xde56('0x11')](_0x2939a8)||G(_0x2939a8,!0x1);_0x2fd0f4[_0xde56('0x3')]()||_0x567d83[_0xde56('0x3')]()?(_0x410ceb[_0xde56('0x108')][_0x2939a8]=q(_0x2fd0f4),_0x410ceb[_0xde56('0x4e')][_0x2939a8]=q(_0x567d83),this[_0xde56('0x79')](_0x410ceb[_0xde56('0x4e')][_0x2939a8],_0x567d83),this['_copyMarkers'](_0x410ceb[_0xde56('0x108')][_0x2939a8],_0x2fd0f4),_0x222c32[_0xde56('0x108')][_0x2939a8]=this[_0xde56('0x93')](this['_idsRoots'][_0xde56('0x11')](_0x2939a8),[]),_0x222c32['deletions'][_0x2939a8]=this[_0xde56('0x93')](this[_0xde56('0x8')][_0xde56('0x11')](_0x2939a8)||G(_0x2939a8,!0x1),[])):_0x13c985[_0xde56('0xba')](_0x2939a8);}for(const _0x1f6de4 of _0x13c985){const _0x183e15=_0x222c32['insertions'][_0x1f6de4];for(const _0x1c9812 of _0x183e15){const _0x23819f=this[_0xde56('0x57')](_0x1c9812),_0x125721=_0x1c9812['item']['getAttribute'](_0x23819f);_0xecf87f[_0xde56('0xba')](_0x125721),_0x125721>=this[_0xde56('0xb7')]&&_0xd074f2[_0xde56('0xe1')](_0x125721,_0x3f7909[_0xde56('0x11')](_0x125721));}}for(const _0x213603 of _0x13c985){const _0x38c5fa=_0x222c32[_0xde56('0x108')][_0x213603],_0x9dd4=this[_0xde56('0xed')](_0x222c32[_0xde56('0x4e')][_0x213603]);let _0x2411a9=0x0;for(const _0x5c48b6 of _0x38c5fa){const _0x16c517=this[_0xde56('0x57')](_0x5c48b6),_0x318b8e=_0x5c48b6[_0xde56('0x8e')]['getAttribute'](_0x16c517);if(!_0xd074f2['has'](_0x318b8e)&&!_0x4734c6['has'](_0x318b8e)){if(_0xecf87f[_0xde56('0x102')](_0x318b8e))_0x2411a9++;else{if(_0x318b8e!=_0x9dd4[_0x2411a9]){const _0x3d3a68=_0x3f7909[_0xde56('0x11')](_0x318b8e)||_0x3f7909[_0xde56('0x11')](_0x9dd4[_0x2411a9]);for(;_0x318b8e!=_0x9dd4[_0x2411a9];)_0xecf87f['has'](_0x9dd4[_0x2411a9])||(_0x4734c6[_0xde56('0xe1')](_0x9dd4[_0x2411a9],_0x3d3a68),_0x3f7909[_0xde56('0xe1')](_0x9dd4[_0x2411a9],_0x3d3a68)),_0x2411a9++;}_0x2411a9++;}}}}for(const _0x166f0e of _0x13c985){const _0x2df668=_0x222c32['insertions'][_0x166f0e];for(const _0x4a14cf of _0x2df668){const _0xed88f9=this[_0xde56('0x57')](_0x4a14cf),_0x5e4e05=_0x4a14cf[_0xde56('0x8e')][_0xde56('0xce')](_0xed88f9);if(_0x4734c6[_0xde56('0x102')](_0x5e4e05)){const _0x19f6b0=_0x4734c6[_0xde56('0x11')](_0x5e4e05);_0xecf87f[_0xde56('0x102')](_0x5e4e05)||_0xecf87f[_0xde56('0xe1')](_0x5e4e05,{..._0x19f6b0}),_0xd074f2[_0xde56('0xe1')](_0x5e4e05,{..._0x19f6b0});}}}for(const _0x311f6d of _0xecf87f[_0xde56('0x53')]())_0x311f6d>=this[_0xde56('0xb7')]&&_0xecf87f['delete'](_0x311f6d);const _0x466ecb=new Map();for(const _0x5bef60 of _0x13c985){let _0x2abb49=_0x222c32[_0xde56('0x108')][_0x5bef60];for(const _0x38c191 of _0x2abb49)if(_0x38c191['item']['is'](_0xde56('0x70'),_0xde56('0xf1'))){const _0x475302=this['_getVidAttributeName'](_0x38c191),_0x1cdbf8=_0x38c191[_0xde56('0x8e')]['getAttribute'](_0x475302);if(_0xd074f2[_0xde56('0x102')](_0x1cdbf8)){const _0x1c71f3=_0x38c191[_0xde56('0x8e')][_0xde56('0x31')][_0xde56('0x31')][_0xde56('0xce')](_0xde56('0xae')),_0x122db3=_0x466ecb[_0xde56('0x11')](_0x1c71f3)||new Set();_0x122db3[_0xde56('0xe6')](_0xd074f2['get'](_0x1cdbf8)['userId']),_0x466ecb[_0xde56('0xe1')](_0x1c71f3,_0x122db3);}}_0x2abb49=_0x222c32[_0xde56('0x4e')][_0x5bef60];for(const _0x54895f of _0x2abb49)if(_0x54895f[_0xde56('0x8e')]['is'](_0xde56('0x70'),'tableCell')){const _0x145402=this['_getVidAttributeName'](_0x54895f),_0x921039=_0x54895f[_0xde56('0x8e')]['getAttribute'](_0x145402);if(_0xecf87f[_0xde56('0x102')](_0x921039)){const _0x4507e8=_0x54895f['item'][_0xde56('0x31')][_0xde56('0x31')][_0xde56('0xce')](_0xde56('0xae')),_0x30a574=_0x466ecb[_0xde56('0x11')](_0x4507e8)||new Set();_0x30a574['add'](_0xecf87f[_0xde56('0x11')](_0x921039)[_0xde56('0xa5')]),_0x466ecb[_0xde56('0xe1')](_0x4507e8,_0x30a574);}}for(const _0x8508b2 of _0x466ecb['keys']())(_0xd074f2[_0xde56('0x102')](_0x8508b2)||_0xecf87f['has'](_0x8508b2))&&_0x466ecb[_0xde56('0xba')](_0x8508b2);}for(const _0x3bdc55 of _0x13c985){const _0x2a5c7f=_0x222c32[_0xde56('0x108')][_0x3bdc55];let _0x4f729f=null,_0x3cf3a6=null;for(const _0x3a704e of _0x2a5c7f){const _0x44ff89=this[_0xde56('0x57')](_0x3a704e),_0x103036=_0x3a704e[_0xde56('0x8e')][_0xde56('0xce')](_0x44ff89),_0x57cda7=_0x466ecb['get'](_0x103036);_0x57cda7&&_0xde56('0x43')==_0x3a704e[_0xde56('0xc8')]&&(_0x4f729f=Array[_0xde56('0xc0')](_0x57cda7)[0x0],_0x3cf3a6=_0x3a704e['item']['getAttribute'](_0xde56('0xc5'))),_0x4f729f&&(_0xecf87f[_0xde56('0xe1')](_0x103036,{'userId':_0x4f729f}),_0xd074f2['set'](_0x103036,{'userId':_0x4f729f})),_0x103036==_0x3cf3a6&&(_0x4f729f=null,_0x3cf3a6=null);}}const _0x20cae1={},_0x292893=new Set();for(const _0x55cf97 of _0x13c985){const _0x11e7a7=_0x410ceb[_0xde56('0x4e')][_0x55cf97],_0x224d92=_0x410ceb['insertions'][_0x55cf97];for(const {userId:_0x4874c8}of this[_0xde56('0x27')][_0xde56('0xa6')]())null!==_0x4874c8&&_0x292893['add'](_0x4874c8);for(const {userId:_0x2a5e52}of this[_0xde56('0x61')][_0xde56('0xa6')]())null!==_0x2a5e52&&_0x292893['add'](_0x2a5e52);this['_markChanges'](_0x224d92,_0x222c32[_0xde56('0x108')][_0x55cf97],_0xd074f2,_0xde56('0xc9'),_0x292893),this['_markChanges'](_0x11e7a7,_0x222c32[_0xde56('0x4e')][_0x55cf97],_0xecf87f,_0xde56('0x65'),_0x292893),_0x20cae1[_0x55cf97]={'insertions':this[_0xde56('0x9c')](_0x224d92),'deletions':this[_0xde56('0x9c')](_0x11e7a7),'attachChange':this[_0xde56('0x61')]['get'](_0x55cf97)||null,'attributesBefore':_0x4bd79b(this[_0xde56('0x2d')][_0xde56('0x11')](_0x55cf97))||{},'attributesAfter':_0x4bd79b(this[_0xde56('0x4a')][_0xde56('0x11')](_0x55cf97))};}return{'diffData':_0x20cae1,'authorsIds':Array['from'](_0x292893)};}[_0xde56('0x20')](_0x1d8660){for(const [,_0x55d4de]of _0x1d8660[_0xde56('0x1a')]){const _0x26ee75=_0x55d4de[_0xde56('0x7e')][_0xde56('0xd2')]()[_0xde56('0xb0')](_0x50ff64=>_0xde56('0xf1')==_0x50ff64[_0xde56('0x3f')]);for(const _0xe9f03f of _0x26ee75)0x1==_0xe9f03f[_0xde56('0x24')]&&_0xe9f03f[_0xde56('0xee')](0x0)['is']('element','paragraph')&&_0xe9f03f[_0xde56('0xee')](0x0)[_0xde56('0x34')]('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xcf0c7c){this['_processRootBeforeSave'](_0xcf0c7c);const _0x3d5db6=this[_0xde56('0x2f')][_0xde56('0xd4')][_0xde56('0x8a')](_0xcf0c7c,{}),_0x167afa=Array[_0xde56('0xc0')](_0x3d5db6[_0xde56('0xef')]())[_0xde56('0xf9')](_0x42cf86=>this['_getViewJson'](_0x42cf86));return JSON[_0xde56('0x72')](_0x167afa);}[_0xde56('0xcd')](_0x31ef95){if(_0x31ef95['is']('$text'))return _0x31ef95[_0xde56('0xd4')];{const _0x2869c6=_0x31ef95;return{'type':Object['keys'](B)[_0xde56('0x81')](_0x10538b=>_0x31ef95 instanceof B[_0x10538b]),'name':_0x2869c6[_0xde56('0x3f')],'attributes':Array[_0xde56('0xc0')](_0x2869c6[_0xde56('0xb4')]()),'children':Array[_0xde56('0xc0')](_0x2869c6[_0xde56('0xef')]())['map'](_0x4e7903=>this[_0xde56('0xcd')](_0x4e7903))};}}['_markChanges'](_0x4d3b2b,_0x2d0ec7,_0x3041ea,_0xbf0149,_0x56f2be){let _0x3ca54a=null,_0x10007c=null,_0x54a6fc=0x0;const _0x450797=this[_0xde56('0x2f')][_0xde56('0x7a')];for(let _0x41c436=0x0;_0x41c436<_0x2d0ec7['length'];_0x41c436++){const _0x3b21ed=this['_getVidAttributeName'](_0x2d0ec7[_0x41c436]),_0x1854e1=_0x2d0ec7[_0x41c436][_0xde56('0x8e')][_0xde56('0xce')](_0x3b21ed),_0x40e85c=_0x3041ea[_0xde56('0x11')](_0x1854e1),_0x5d61a5=_0x41c436==_0x2d0ec7[_0xde56('0x13')]-0x1;(!_0x3ca54a&&_0x40e85c&&(_0x3ca54a=_0x40e85c,_0x10007c=_0x2d0ec7[_0x41c436]),_0x3ca54a&&(!_0x40e85c||_0x40e85c['userId']!=_0x3ca54a[_0xde56('0xa5')]))&&(_0xbbfd94(_0x40e85c,L(_0x10007c,_0x4d3b2b,_0x450797),L(_0x2d0ec7[_0x41c436],_0x4d3b2b,_0x450797)),_0x3ca54a=_0x40e85c||null,_0x10007c=_0x40e85c?_0x2d0ec7[_0x41c436]:null),_0x3ca54a&&_0x5d61a5&&_0xbbfd94(_0x40e85c,L(_0x10007c,_0x4d3b2b,_0x450797),W(_0x2d0ec7[_0x41c436],_0x4d3b2b,_0x450797));}function _0xbbfd94(_0x3a8c96,_0x254c08,_0x20e56f){const _0x10ef6e=_0x3ca54a[_0xde56('0xa5')],_0x449232='revision:'+_0xbf0149+':'+_0x10ef6e+':'+_0x54a6fc++,_0x30bfbe=_0x450797['createRange'](_0x254c08,_0x20e56f);_0x4d3b2b[_0xde56('0x1a')][_0xde56('0xe1')](_0x449232,_0x30bfbe),null!==_0x10ef6e&&_0x56f2be['add'](_0x10ef6e);}}[_0xde56('0x57')](_0x1828f1){switch(_0x1828f1['type']){case'elementStart':return _0xde56('0xae');case _0xde56('0x18'):return'vid_end';default:return _0xde56('0x66');}}['_fixOperation'](_0x5acab6,_0x51f5f1){_0x5acab6[_0xde56('0x50')]=null;for(const _0x1321a8 in _0x5acab6){const _0x1b6d63=_0x5acab6[_0x1321a8];if(_0x1b6d63 instanceof _0x4604a3){const _0x1e99c9=_0x51f5f1['get'](_0x1b6d63[_0xde56('0xe0')]['rootName']);_0x5acab6[_0x1321a8]=this[_0xde56('0x40')](_0x1b6d63,_0x1e99c9);}if(_0x1b6d63 instanceof _0x927a0c){const _0x1882c5=_0x51f5f1['get'](_0x1b6d63[_0xde56('0xe0')][_0xde56('0x35')]);_0x5acab6[_0x1321a8]=this[_0xde56('0x22')](_0x1b6d63,_0x1882c5);}'root'===_0x1321a8&&(_0x5acab6[_0xde56('0xe0')]=_0x51f5f1[_0xde56('0x11')](_0x5acab6['root'][_0xde56('0x35')]));}}['_fixRange'](_0x14a3bc,_0x2d84d7){return this[_0xde56('0x2f')][_0xde56('0x7a')]['createRange'](this[_0xde56('0x40')](_0x14a3bc[_0xde56('0x7e')],_0x2d84d7),this[_0xde56('0x40')](_0x14a3bc[_0xde56('0xf8')],_0x2d84d7));}[_0xde56('0x40')](_0x5bcdf7,_0x51650b){return this[_0xde56('0x2f')][_0xde56('0x7a')]['createPositionFromPath'](_0x51650b,_0x5bcdf7[_0xde56('0xa')],_0x5bcdf7[_0xde56('0x89')]);}[_0xde56('0xc3')](_0x452033){const _0x1e7277=this[_0xde56('0x56')][_0xde56('0x11')](_0x452033[_0xde56('0x99')][_0xde56('0xe0')][_0xde56('0x35')]),_0x57c40f=this['_fixPosition'](_0x452033['position'],_0x1e7277),_0x19f247=null===_0x452033[_0xde56('0x47')]?null:_0x452033[_0xde56('0x47')]||this['editor'][_0xde56('0xfd')]['get'](_0xde56('0x3e'))['me']['id'],_0x41c91e=_0x57c40f['parent'],_0x58671b=this['_revisionId'],_0x57b3f3=[];for(const _0x1571d0 of _0x452033['nodes'])if(_0x1571d0['is'](_0xde56('0x70')))_0x57b3f3[_0xde56('0xd')](this[_0xde56('0x14')](_0x1571d0));else for(let _0x1549d4=0x0;_0x1549d4<_0x1571d0[_0xde56('0xea')];_0x1549d4++)_0x57b3f3[_0xde56('0xd')](new _0x4332cf(_0xde56('0x6f'),{'vid':this[_0xde56('0x105')]++}));const _0x3e28e1=this['_revisionId'];for(let _0x312815=_0x58671b;_0x312815<_0x3e28e1;_0x312815++)this[_0xde56('0xb')][_0xde56('0xe1')](_0x312815,{'userId':_0x19f247});_0x41c91e[_0xde56('0xf0')](_0x57c40f[_0xde56('0xdc')],_0x57b3f3);}[_0xde56('0x17')](_0x170838){(_0x170838=this[_0xde56('0xa9')](_0x170838,this[_0xde56('0x56')]))['_execute']();const _0x22dd3b=null===_0x170838[_0xde56('0x47')]?null:_0x170838[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('Users')['me']['id'],_0x536e78=_0x170838[_0xde56('0x9b')](),_0x1822bd=_0x536e78[_0xde56('0x31')],_0x547119=_0x536e78['offset'];!function _0x5dd79d(_0x593346,_0x33e599,_0x53bba4,_0x4bc79e){for(let _0x5e7446=_0x53bba4;_0x5e7446<_0x4bc79e;_0x5e7446++){const _0x4a9585=_0x33e599[_0xde56('0xee')](_0x5e7446);_0x4a9585['is']('element',_0xde56('0x6f'))?_0x593346['set'](_0x4a9585['getAttribute'](_0xde56('0x66')),{'userId':_0x22dd3b}):(_0x593346[_0xde56('0xe1')](_0x4a9585[_0xde56('0xce')](_0xde56('0xae')),{'userId':_0x22dd3b}),_0x5dd79d(_0x593346,_0x4a9585,0x0,_0x4a9585['childCount']),_0x593346[_0xde56('0xe1')](_0x4a9585[_0xde56('0xce')](_0xde56('0xc5')),{'userId':_0x22dd3b}));}}(this[_0xde56('0xb')],_0x1822bd,_0x547119,_0x547119+_0x170838[_0xde56('0x95')]);}[_0xde56('0x63')](_0x5e4f98){const _0x4945b1=null===(_0x5e4f98=this['_cloneOperation'](_0x5e4f98,this[_0xde56('0x56')]))[_0xde56('0x47')]?null:_0x5e4f98[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')](_0xde56('0x3e'))['me']['id'],_0x693e50=_0x5e4f98[_0xde56('0x97')][_0xde56('0x31')],_0x247c5a=_0x5e4f98[_0xde56('0x62')][_0xde56('0x31')],_0x5cff64=_0x693e50['getAttribute'](_0xde56('0xc5')),_0x58772d=_0x247c5a['getAttribute'](_0xde56('0xae'));_0x693e50[_0xde56('0x34')](_0xde56('0xc5'),_0x247c5a[_0xde56('0xce')](_0xde56('0xc5'))),_0x247c5a['_setAttribute'](_0xde56('0xc5'),_0x5cff64),this[_0xde56('0xb')][_0xde56('0xe1')](_0x58772d,{'userId':_0x4945b1}),this[_0xde56('0xb')][_0xde56('0xe1')](_0x5cff64,{'userId':_0x4945b1}),_0x5e4f98[_0xde56('0x80')]();}[_0xde56('0x4b')](_0x58f249){const _0x55172f=null===(_0x58f249=this[_0xde56('0xa9')](_0x58f249,this['_idsRoots']))[_0xde56('0x47')]?null:_0x58f249[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')]['get'](_0xde56('0x3e'))['me']['id'],_0x5cab59=_0x58f249['graveyardPosition'],_0x43d349=_0x58f249[_0xde56('0xb5')][_0xde56('0x31')];_0x58f249[_0xde56('0x80')]();const _0x374bd7=_0x43d349['getAttribute']('vid_end'),_0x596309=_0x58f249[_0xde56('0xfe')][_0xde56('0x9')];if(_0x5cab59){const _0x167162=_0x596309[_0xde56('0xce')](_0xde56('0xc5')),_0x180666=_0x43d349[_0xde56('0xce')](_0xde56('0xc5'));_0x43d349[_0xde56('0x34')]('vid_end',_0x167162),_0x596309[_0xde56('0x34')](_0xde56('0xc5'),_0x180666),this[_0xde56('0xb')][_0xde56('0xe1')](_0x43d349[_0xde56('0xce')](_0xde56('0xc5')),{'userId':_0x55172f}),this['_touched'][_0xde56('0xe1')](_0x596309[_0xde56('0xce')](_0xde56('0xae')),{'userId':_0x55172f});}else{const _0x400ad9=this[_0xde56('0x105')]++,_0x225f6e=this[_0xde56('0x105')]++;_0x43d349[_0xde56('0x34')](_0xde56('0xc5'),_0x400ad9),_0x596309[_0xde56('0x34')](_0xde56('0xae'),_0x225f6e),_0x596309[_0xde56('0x34')]('vid_end',_0x374bd7),this['_touched'][_0xde56('0xe1')](_0x400ad9,{'userId':_0x55172f}),this['_touched'][_0xde56('0xe1')](_0x225f6e,{'userId':_0x55172f});}}[_0xde56('0xbf')](_0x39de99){if(!_0x39de99['affectsData'])return;const _0xc33c3=(_0x39de99=this[_0xde56('0xa9')](_0x39de99,this[_0xde56('0xb2')]))['oldRange']?_0x39de99[_0xde56('0xf6')][_0xde56('0xe0')]:null,_0xbe8aa4=_0x39de99[_0xde56('0x4')]?_0x39de99[_0xde56('0x4')][_0xde56('0xe0')]:null;_0xc33c3&&this[_0xde56('0xe9')][_0xde56('0xba')](_0x39de99[_0xde56('0x3f')]),_0xbe8aa4&&this[_0xde56('0xe9')][_0xde56('0xe1')](_0x39de99[_0xde56('0x3f')],_0x39de99['newRange']['clone']());const _0x35f1b6=null===_0x39de99[_0xde56('0x47')]?null:_0x39de99[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('Users')['me']['id'],_0x2a2d33=_0x39de99['name'];if(!this[_0xde56('0x27')][_0xde56('0x102')](_0x2a2d33))return void this['_touchedMarkers'][_0xde56('0xe1')](_0x2a2d33,{'range':_0x39de99[_0xde56('0xf6')],'userId':_0x35f1b6});const _0x598b1a=this[_0xde56('0x27')][_0xde56('0x11')](_0x2a2d33),_0x55f041=_0x598b1a[_0xde56('0xfa')],_0x37a3a7=_0x39de99[_0xde56('0x4')];null==_0x55f041&&null==_0x37a3a7||_0x55f041&&_0x37a3a7&&_0x55f041[_0xde56('0x5e')](_0x37a3a7)?this[_0xde56('0x27')][_0xde56('0xba')](_0x39de99[_0xde56('0x3f')]):_0x598b1a[_0xde56('0xa5')]=_0x35f1b6;}[_0xde56('0xe2')](_0x55b490,_0x439961){this[_0xde56('0xb2')][_0xde56('0x102')](_0x55b490['rootName'])?this['_diffRoots'][_0xde56('0x11')](_0x55b490[_0xde56('0x35')])[_0xde56('0xf7')]=_0x55b490['isAdd']:(this[_0xde56('0xb2')][_0xde56('0xe1')](_0x55b490[_0xde56('0x35')],G(_0x55b490[_0xde56('0x35')],!0x0)),this['_diffRootsAttributes']['set'](_0x55b490[_0xde56('0x35')],{}),_0x439961&&this[_0xde56('0x56')][_0xde56('0xe1')](_0x55b490['rootName'],G(_0x55b490[_0xde56('0x35')],!0x0)));const _0x2a688e=null===_0x55b490[_0xde56('0x47')]?null:_0x55b490[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')]['get'](_0xde56('0x3e'))['me']['id'],_0x22669d=this[_0xde56('0x61')][_0xde56('0x11')](_0x55b490[_0xde56('0x35')]);_0x22669d&&_0x22669d[_0xde56('0xa5')]===_0x2a688e?this['_touchedRoots'][_0xde56('0xba')](_0x55b490[_0xde56('0x35')]):this[_0xde56('0x61')][_0xde56('0xe1')](_0x55b490['rootName'],{'userId':_0x2a688e,'isAttached':_0x55b490[_0xde56('0x8b')]});}[_0xde56('0x10')](_0x1879f3){const _0x265dd0=this[_0xde56('0x4a')][_0xde56('0x11')](_0x1879f3[_0xde56('0xe0')]['rootName']);null===_0x1879f3[_0xde56('0xc1')]?delete _0x265dd0[_0x1879f3[_0xde56('0x1f')]]:_0x265dd0[_0x1879f3[_0xde56('0x1f')]]=_0x1879f3['newValue'];}}function q(_0x2df869){const _0x50eda9=G(_0x2df869[_0xde56('0x35')],_0x2df869[_0xde56('0x3')]());for(const _0x42d016 of _0x2df869[_0xde56('0xef')]()){const _0xa2bb5=_0x42d016[_0xde56('0x9d')](!0x0);_0x50eda9['_appendChild'](_0xa2bb5);}return _0x50eda9;}function G(_0x1785db,_0x228530=!0x0){const _0x3c9d51=new _0x5ac983();return _0x3c9d51[_0xde56('0x35')]=_0x1785db,_0x3c9d51[_0xde56('0xf7')]=_0x228530,_0x3c9d51[_0xde56('0x3')]=()=>_0x3c9d51['_isAttached'],_0x3c9d51;}function L(_0x23d44b,_0x1e60bf,_0x47890f){const _0x57526d=_0xde56('0x18')==_0x23d44b[_0xde56('0xc8')]?_0x47890f[_0xde56('0x7b')](_0x23d44b['item'],_0xde56('0xf8')):_0x47890f[_0xde56('0x5d')](_0x23d44b[_0xde56('0x8e')]);return _0x47890f[_0xde56('0x2a')](_0x1e60bf,_0x57526d[_0xde56('0xa')],_0x57526d[_0xde56('0x89')]);}function W(_0x11c4dd,_0x2c4f9e,_0x472779){const _0x3c6bc8=_0xde56('0x43')==_0x11c4dd[_0xde56('0xc8')]?_0x472779[_0xde56('0x7b')](_0x11c4dd[_0xde56('0x8e')],0x0):_0x472779[_0xde56('0xb9')](_0x11c4dd[_0xde56('0x8e')]);return _0x472779['createPositionFromPath'](_0x2c4f9e,_0x3c6bc8[_0xde56('0xa')],_0x3c6bc8[_0xde56('0x89')]);}
|