@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230707.0 → 0.0.0-nightly-20230709.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 _0x315f=['childCount','buildRevisionData','_getFromVersion','repository','slice','init','trim','_initialRoots','Initial\x20revision','dataToMarker','_removeMetaData','move','addRevisionData','requires','targetPosition','_findInsertionIndex','updateRevisions','_handleSplitOperation','editing','_appendChild','splitPosition','authorsIds','revisionHistory.resumeUnsavedRevision','set','_handleMoveOperation','_operations','revision-end','offset','start','createPositionAt','_handleRootAttributeOperation','push','end','_handleInsertOperation','_authorId','_createCurrentRevision','addRootAttribute','getRevisions','editor','nodes','_createFromRanges','reInit','_baseIdsRoots','_insertChild','oldRange','path','_generateTape','_getVidAttributeName','revision:','getRange','reverse','parent','_loadState','startsWith','getUser','find','_removeRevisionMarkers','toModel','length','document','key','getCurrentRevisionId','element','isEqual','_setConversion','elementEnd','getOperation','vid','elementStart','detachRoot','createPositionBefore','howMany','_createInitialRevision','_revisionId','data-revision-','_revisionDataBuilder','rootsAttributes','some','_addPendingAction','_lastTo','getRevisionDocumentData','stickiness','_makeIdsRoot','markers','_baseRootsAttributes','includes','position','locale','split','_replaceEditorDataWithRevisionData','createRangeIn','_handleOperation','getIndex','_touchedRoots','hasContent','editor-initial-data-replaced-with-revision-data','then','documentFragment','_processRootBeforeSave','bind','_transformMarkers','isEnabled','diffData','config','_continueCurrentRevision','fromVersion','name','getOperations','_fixPosition','RevisionsRepository','getAttribute','_calculateMetaData','_handleMarkerOperation','getTransformedByOperation','creator','$graveyard','_makeModelFromViewString','_source','_fixOperation','PendingActions','createRevision','clone','vid_end','_reset','previousPosition','getNodeByPath','getChild','item','changeRootAttribute','source','children','deletions','getWalker','delete','_baseRoots','sourcePosition','getRootNames','PENDING_ACTION_REVISION_HISTORY','max','_fixRange','afterInit','_isAttached','_clone','_startingRevisionId','addRevision','_handleMergeOperation','_getPreviousFrom','range','adapter','marked','_touched','Users','addRoot','markerToData','attachChange','processor','_pendingAction','getAttributes','filter','toVersion','NEGATIVE_INFINITY','_lastFrom','_idsRoots','collaboration.channelId','createdAt','string','_diffRootsAttributes','_startingVersion','useFillerType','marker','upcast','initialData','tableCell','_loadRevisionData','baseVersion','getLatestVersion','reinsert','getRevisionRootsAttributes','version','merge','createPositionFromPath','Empty\x20document','isReady','text','_execute','newRange','remove','newValue','_loadedStateData','_applyOperations','_markers','revision','conversion','_markChanges','resolve','_bufferUpdate','attributes','_initialRevisionId','nodeAfter','vid_start','view','_copyMarkers','graveyardPosition','size','_getBaseVids','plugins','saveRevision','rootName','authors','stringify','$text','RevisionTracker','has','_saveMetaData','fromEntries','userId','getMovedRangeStart','isAttached','currentRevision','ready','_diffRoots','_touchedMarkers','deletion','_makeRevision','type','createRange','createPositionAfter','clear','getAncestors','attributesBefore','for','_cloneOperation','paragraph','loadState','dataDowncast','insertions','attributesAfter','affectsData','keys','_prepareViewToSave','forEach','_isPendingUpdate','insert','_getState','finally','_handleRootOperation','getRoot','_setAttribute','sendBufferedUpdates','toView','getRevision','_isInit','getData','data','_removePendingAction','history','model','from','add','getChildren','sort','_update','values','insertion','map','setRevisionData','get','_savedMetaData','root','isAdd','_bufferedUpdates','_getViewJson','update'];(function(_0x2fa97c,_0x315fe8){const _0x2b5844=function(_0x4e18a5){while(--_0x4e18a5){_0x2fa97c['push'](_0x2fa97c['shift']());}};_0x2b5844(++_0x315fe8);}(_0x315f,0x12c));const _0x2b58=function(_0x2fa97c,_0x315fe8){_0x2fa97c=_0x2fa97c-0x0;let _0x2b5844=_0x315f[_0x2fa97c];return _0x2b5844;};import{Users as _0x321099}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x2ffbed,PendingActions as _0x244604}from'ckeditor5/src/core';import{logWarning as _0x52d547,uid as _0x5c1120}from'ckeditor5/src/utils';import{Position as _0x5609a4,Range as _0x2bfe56,Element as _0x146e1a,DocumentFragment as _0x19c177,ViewText as _0x4f4b95,ViewElement as _0xa090ab,ViewContainerElement as _0x772dc,ViewAttributeElement as _0x1bd010,ViewEmptyElement as _0x366688,ViewRawElement as _0x102966,ViewUIElement as _0x503bce,ViewDocumentFragment as _0x829dbd}from'ckeditor5/src/engine';import _0x371f04 from'./revisionsrepository';import{getTranslation as _0x200839}from'./utils/common-translations';import{cloneDeep as _0x11adde,isEqual as _0x5361dc}from'lodash-es';const F={'c':_0x772dc,'a':_0x1bd010,'e':_0x366688,'r':_0x102966,'u':_0x503bce};export default class u extends _0x2ffbed{static get['pluginName'](){return _0x2b58('0xb8');}static get[_0x2b58('0x103')](){return[_0x321099,_0x371f04,_0x244604];}constructor(_0x2661a7){super(_0x2661a7),this['adapter']=null,this[_0x2b58('0xbf')]=null,this[_0x2b58('0x30')]=new B(this[_0x2b58('0xb')]),this[_0x2b58('0xaa')]=this[_0x2b58('0xb')][_0x2b58('0x4c')]['get'](_0x2b58('0x88'))||'initial',this['_bufferedUpdates']=new Map(),this[_0x2b58('0xa1')]=null;const _0x15b881=_0x5c1120();this[_0x2b58('0x5a')]={'history':this[_0x2b58('0xb')][_0x2b58('0xe5')][_0x2b58('0x20')][_0x2b58('0xe4')],'getLatestVersion':()=>Promise[_0x2b58('0xa7')](this['editor']['model'][_0x2b58('0x20')]['version']),'getCurrentRevisionId':()=>_0x15b881},this[_0x2b58('0x10d')](_0x2b58('0x9b'),!0x1),this['set'](_0x2b58('0x4a'),!0x0),this[_0x2b58('0x10d')]('_isPendingUpdate',!0x1),this['editor'][_0x2b58('0x4c')]['define'](_0x2b58('0x10c'),!0x0),this[_0x2b58('0xb')][_0x2b58('0xa5')][_0x2b58('0xcb')](_0x2b58('0x8f'))[_0x2b58('0xff')]({'view':_0x2b58('0xa4')});}[_0x2b58('0xfb')](){this[_0x2b58('0xf9')]=this[_0x2b58('0xb')][_0x2b58('0xb2')]['get'](_0x2b58('0x52')),this[_0x2b58('0x25')](),this['editor'][_0x2b58('0xe2')]['on'](_0x2b58('0xc0'),()=>{const _0x10e1f4=this[_0x2b58('0xf9')]['getRevision'](0x0),_0xffb555=_0x10e1f4&&null===_0x10e1f4[_0x2b58('0x57')]?_0x10e1f4:null;if(this['_continueCurrentRevision']=!!_0xffb555&&this[_0x2b58('0xb')][_0x2b58('0x4c')]['get']('revisionHistory.resumeUnsavedRevision'),this['editor'][_0x2b58('0xb2')][_0x2b58('0xb9')]('RealTimeCollaborationClient')){const _0x4b5c7a=this['_source'][_0x2b58('0x22')](),_0x2869fc=this[_0x2b58('0xf9')][_0x2b58('0xdf')](_0x4b5c7a);if(_0x2869fc)this['_startingVersion']=_0x2869fc[_0x2b58('0x4e')],this['_continueCurrentRevision']=!0x1;else{const _0x1c9842=this['_source'][_0x2b58('0xe4')][_0x2b58('0x10f')][_0x2b58('0x1c')](_0x30b805=>!_0x30b805[_0x2b58('0xe0')]),_0x220ef8=_0x1c9842?_0x1c9842[_0x2b58('0x93')]:this[_0x2b58('0x5a')][_0x2b58('0xe4')][_0x2b58('0x97')];_0x10e1f4?(_0x10e1f4['toVersion']<_0x220ef8&&_0x10e1f4[_0x2b58('0xea')]({'toVersion':_0x220ef8}),this['_continueCurrentRevision']?(this[_0x2b58('0x5a')][_0x2b58('0x22')]=()=>_0xffb555['id'],this[_0x2b58('0x8c')]=_0xffb555[_0x2b58('0x4e')]):(this['_startingVersion']=_0x10e1f4[_0x2b58('0x84')],this['_continueCurrentRevision']=!0x1)):(this[_0x2b58('0x8c')]=_0x220ef8,this['_continueCurrentRevision']=!0x1);}}else _0xffb555&&(this[_0x2b58('0xb')][_0x2b58('0xe5')][_0x2b58('0x20')][_0x2b58('0xe4')][_0x2b58('0x97')]=Math[_0x2b58('0x6f')](_0xffb555[_0x2b58('0x84')],this[_0x2b58('0xb')]['model'][_0x2b58('0x20')][_0x2b58('0xe4')][_0x2b58('0x97')]),_0xffb555[_0x2b58('0x4e')]===_0xffb555['toVersion']?(0x0!==_0xffb555[_0x2b58('0x4e')]&&(this[_0x2b58('0x5a')][_0x2b58('0x22')]=()=>_0xffb555['id']),this[_0x2b58('0x4d')]=!0x1):this[_0x2b58('0x4d')]&&(this['_source'][_0x2b58('0x22')]=()=>_0xffb555['id'],this[_0x2b58('0x8c')]=_0xffb555[_0x2b58('0x4e')])),this[_0x2b58('0x4d')]||(this[_0x2b58('0x8c')]=this['editor'][_0x2b58('0xe5')][_0x2b58('0x20')][_0x2b58('0x97')]);this[_0x2b58('0x30')][_0x2b58('0xfb')](this[_0x2b58('0x5a')][_0x2b58('0xe4')]),this[_0x2b58('0x2d')](this[_0x2b58('0x8c')]),this[_0x2b58('0x8')](this['_startingVersion']),this[_0x2b58('0x79')]&&this['sendBufferedUpdates']();}),this[_0x2b58('0x48')](_0x2b58('0x9b'))['to'](this,_0x2b58('0xd6'),_0x267fe4=>!_0x267fe4);}async[_0x2b58('0x71')](){if(this['repository'][_0x2b58('0x1f')]>0x0){const _0x3bd921=this[_0x2b58('0xf9')]['getRevision'](0x0),_0x5395b5=await this['getRevisionDocumentData'](_0x3bd921),_0x7c1ef6=await this[_0x2b58('0x96')](_0x3bd921);this[_0x2b58('0x3e')](_0x5395b5,_0x7c1ef6);}}['setSource'](_0x38664a){this[_0x2b58('0x5a')]=_0x38664a;}async[_0x2b58('0xf5')](){const _0x14a91e=await this[_0x2b58('0x5a')][_0x2b58('0x94')]();if(_0x14a91e>this[_0x2b58('0xbf')][_0x2b58('0x84')]){await this[_0x2b58('0x19')]();const _0x2e3ca0=this[_0x2b58('0xf7')]({'revision':this[_0x2b58('0xbf')],'to':_0x14a91e});_0x2e3ca0[_0x2b58('0xb5')]=_0x2e3ca0[_0x2b58('0x10b')][_0x2b58('0xed')](_0x369b10=>this[_0x2b58('0xb')][_0x2b58('0xb2')][_0x2b58('0xef')](_0x2b58('0x7c'))[_0x2b58('0x1b')](_0x369b10)),this['currentRevision'][_0x2b58('0xea')](_0x2e3ca0);}}async[_0x2b58('0x19')](){this[_0x2b58('0x4d')]&&!this[_0x2b58('0xa1')]&&(await this[_0x2b58('0x92')](this[_0x2b58('0xbf')]),this['_revisionDataBuilder'][_0x2b58('0xce')](this[_0x2b58('0xbf')]),this[_0x2b58('0xa1')]={'fromVersion':this[_0x2b58('0xbf')][_0x2b58('0x4e')],'authors':this[_0x2b58('0xbf')][_0x2b58('0xb5')][_0x2b58('0xfa')]()});}async[_0x2b58('0xb3')](_0x412414={},_0x53c8b9=null){const _0x1bce6b=[];await this[_0x2b58('0x19')](),this[_0x2b58('0x4d')]=!0x1,_0x53c8b9>this[_0x2b58('0xbf')][_0x2b58('0x84')]&&(_0x53c8b9=null),null===_0x53c8b9&&(_0x53c8b9=await this[_0x2b58('0x5a')][_0x2b58('0x94')]());const _0x21a11e=this[_0x2b58('0xf8')](_0x53c8b9),_0x2355dc=this[_0x2b58('0xf7')]({'from':_0x21a11e,'to':_0x53c8b9});if(this[_0x2b58('0xbf')][_0x2b58('0x84')]<_0x53c8b9){const _0x49fecf=this[_0x2b58('0xf7')]({'revision':this['currentRevision'],'from':_0x53c8b9,'to':_0x53c8b9});_0x49fecf['authors']=[],_0x49fecf['authorsIds']=[],_0x49fecf['id']=this[_0x2b58('0xbf')]['id'],this[_0x2b58('0xbf')][_0x2b58('0xea')](_0x49fecf,!0x0),delete _0x49fecf[_0x2b58('0xb5')],_0x1bce6b[_0x2b58('0x4')](_0x49fecf);}_0x412414['creatorId']=this['editor']['plugins'][_0x2b58('0xef')]('Users')['me']['id'],_0x412414[_0x2b58('0x4f')]=_0x412414[_0x2b58('0x4f')]||null,_0x412414['id']=_0x412414['id']||_0x5c1120(),_0x412414={..._0x412414,..._0x2355dc};const _0xbf0d29=this[_0x2b58('0x102')](_0x412414);_0x1bce6b[_0x2b58('0x4')](_0x412414);const _0xeb88d=this[_0x2b58('0xf9')][_0x2b58('0x41')](_0xbf0d29);if(0x0!==_0xeb88d){const _0x29cfcf=this[_0x2b58('0xf9')]['getRevision'](_0xeb88d-0x1);if(_0x29cfcf[_0x2b58('0x4e')]!==_0x53c8b9){const _0xaf3e10=this[_0x2b58('0x30')]['getData'](_0x53c8b9,_0x29cfcf[_0x2b58('0x84')]),_0x2c73e3={'id':_0x29cfcf['id'],'diffData':_0xaf3e10['diffData'],'authorsIds':_0xaf3e10[_0x2b58('0x10b')],'authors':_0xaf3e10['authorsIds'][_0x2b58('0xed')](_0x2f1662=>this[_0x2b58('0xb')][_0x2b58('0xb2')][_0x2b58('0xef')](_0x2b58('0x7c'))[_0x2b58('0x1b')](_0x2f1662)),'fromVersion':_0x53c8b9};_0x29cfcf===this[_0x2b58('0xbf')]&&(_0x2c73e3[_0x2b58('0x89')]=new Date(_0x412414[_0x2b58('0x89')]['getTime']()+0xa)),_0x29cfcf[_0x2b58('0xea')](_0x2c73e3,!0x0),delete _0x2c73e3[_0x2b58('0xb5')],_0x1bce6b[_0x2b58('0x4')](_0x2c73e3);}}if(this[_0x2b58('0x79')]){for(const _0x3b5746 of _0x1bce6b)this[_0x2b58('0xa8')](_0x3b5746['id'],_0x3b5746,!0x0);this[_0x2b58('0xdd')]();}return _0xbf0d29;}[_0x2b58('0x102')](_0xfb67d5){const _0x5dec32=this[_0x2b58('0xf9')][_0x2b58('0x5d')](_0xfb67d5);return this[_0x2b58('0x79')]&&_0x5dec32['on'](_0x2b58('0xea'),(_0x2199ab,_0x5dbad2,_0x3913b7)=>{_0x3913b7||(this[_0x2b58('0xa8')](_0x5dbad2['id'],_0x5dbad2,!0x0),this[_0x2b58('0xdd')]());}),this[_0x2b58('0xf9')][_0x2b58('0x75')](_0x5dec32,this[_0x2b58('0x105')](_0x5dec32)),_0x5dec32;}async[_0x2b58('0x35')](_0x450461){await this[_0x2b58('0x92')](_0x450461);const _0x200fbf={};for(const _0x482e5e in _0x450461[_0x2b58('0x4b')]){if(_0x450461['diffData'][_0x482e5e][_0x2b58('0x7f')]&&!_0x450461[_0x2b58('0x4b')][_0x482e5e][_0x2b58('0x7f')]['isAttached'])continue;const _0x56e8c1=this[_0x2b58('0x1d')](JSON['parse'](_0x450461['diffData'][_0x482e5e]['insertions'])),_0x488df7=this[_0x2b58('0xb')][_0x2b58('0x108')]['view'][_0x2b58('0x20')],_0x375ade=new _0x829dbd(_0x488df7,_0x56e8c1[_0x2b58('0xed')](_0xbfb795=>T(_0xbfb795,this[_0x2b58('0xb')])));this[_0x2b58('0xb')][_0x2b58('0xe2')][_0x2b58('0x80')][_0x2b58('0x8d')](_0x2b58('0x7a')),_0x200fbf[_0x482e5e]=this[_0x2b58('0xb')][_0x2b58('0xe2')]['processor']['toData'](_0x375ade),this[_0x2b58('0xb')][_0x2b58('0xe2')][_0x2b58('0x80')][_0x2b58('0x8d')]('default');}return _0x200fbf;}async['getRevisionRootsAttributes'](_0xada760){await this[_0x2b58('0x92')](_0xada760);const _0x483b73={};for(const _0xa28b4d in _0xada760[_0x2b58('0x4b')])_0xada760['diffData'][_0xa28b4d][_0x2b58('0x7f')]&&!_0xada760[_0x2b58('0x4b')][_0xa28b4d]['attachChange']['isAttached']||(_0x483b73[_0xa28b4d]=_0xada760[_0x2b58('0x4b')][_0xa28b4d][_0x2b58('0xd1')]||{});return _0x483b73;}[_0x2b58('0xdd')](){if(0x0===this[_0x2b58('0xf3')][_0x2b58('0xb0')])return;if(this[_0x2b58('0xd6')])return;let _0x3d0153=Array[_0x2b58('0xe6')](this[_0x2b58('0xf3')][_0x2b58('0xeb')]());this[_0x2b58('0xf3')]['clear']();for(let _0x9782da=0x0;_0x9782da<_0x3d0153['length'];_0x9782da++){const _0x21be90=_0x3d0153[_0x9782da];let _0x3ec5cf=!0x1;for(const _0x1c216c of Object[_0x2b58('0xd3')](_0x21be90))void 0x0===_0x21be90[_0x1c216c]?delete _0x21be90[_0x1c216c]:'id'!==_0x1c216c&&(_0x3ec5cf=!0x0);_0x3ec5cf||(_0x3d0153[_0x9782da]=null);}if(_0x3d0153=_0x3d0153['filter'](_0x417433=>null!==_0x417433),!_0x3d0153[_0x2b58('0x1f')])return;for(let _0x5ce71f=0x0;_0x5ce71f<_0x3d0153[_0x2b58('0x1f')];_0x5ce71f++){const _0x538435=_0x3d0153[_0x5ce71f];void 0x0!==_0x538435[_0x2b58('0x4e')]&&void 0x0===_0x538435[_0x2b58('0x84')]&&(_0x538435[_0x2b58('0x84')]=this[_0x2b58('0xf9')]['getRevision'](_0x538435['id'])[_0x2b58('0x84')]),void 0x0!==_0x538435[_0x2b58('0x84')]&&void 0x0===_0x538435[_0x2b58('0x4e')]&&(_0x538435['fromVersion']=this['repository']['getRevision'](_0x538435['id'])[_0x2b58('0x4e')]);}const _0x379d9c=this[_0x2b58('0xb')][_0x2b58('0x4c')][_0x2b58('0xef')]('collaboration.channelId');this['_isPendingUpdate']=!0x0,this[_0x2b58('0x33')](),this[_0x2b58('0x79')][_0x2b58('0x106')](_0x3d0153,_0x379d9c)[_0x2b58('0xd9')](()=>{this[_0x2b58('0xd6')]=!0x1;})[_0x2b58('0x45')](_0x49c778=>{if(_0x49c778)for(const _0x429793 of _0x49c778)this[_0x2b58('0xee')]({'id':_0x429793['id'],'createdAt':_0x429793[_0x2b58('0x89')]});this[_0x2b58('0xe3')](),this[_0x2b58('0xdd')]();});}[_0x2b58('0x3e')](_0x2f51c8,_0x590d14){let _0x52b373=this[_0x2b58('0xb')][_0x2b58('0x4c')]['get'](_0x2b58('0x90')),_0x2492ea=this['editor']['config'][_0x2b58('0xef')](_0x2b58('0x31'));if(void 0x0===_0x52b373){_0x52b373={};for(const _0x2f3e94 of this['editor'][_0x2b58('0xe5')][_0x2b58('0x20')]['getRootNames']())_0x52b373[_0x2f3e94]='';}if(_0x2b58('0x8a')==typeof _0x52b373&&(_0x52b373={'main':_0x52b373}),void 0x0===_0x2492ea){_0x2492ea={};for(const _0x540da3 of this[_0x2b58('0xb')][_0x2b58('0xe5')][_0x2b58('0x20')][_0x2b58('0x6d')]())_0x2492ea[_0x540da3]={};}let _0x27dbdf=!0x1;const _0x1e0dff=Object[_0x2b58('0xd3')](_0x52b373),_0x167e14=Object[_0x2b58('0xd3')](_0x2f51c8);for(const _0x184c3a of _0x1e0dff){if(_0x52b373[_0x184c3a]!==_0x2f51c8[_0x184c3a]&&''!==_0x52b373[_0x184c3a][_0x2b58('0xfc')]()){_0x27dbdf=!0x0;break;}if(!_0x5361dc(_0x2492ea[_0x184c3a],_0x590d14[_0x184c3a])&&Object['keys'](_0x2492ea[_0x184c3a])['length']>0x0){_0x27dbdf=!0x0;break;}}_0x27dbdf||(_0x27dbdf=_0x167e14[_0x2b58('0x32')](_0x265e90=>!_0x1e0dff[_0x2b58('0x3a')](_0x265e90))),_0x27dbdf&&_0x52d547(_0x2b58('0x44'),{'editorData':_0x52b373,'editorRootsAttributes':_0x2492ea,'revisionData':_0x2f51c8,'revisionRootsAttributes':_0x590d14}),this[_0x2b58('0xb')]['config'][_0x2b58('0x10d')](_0x2b58('0x90'),_0x2f51c8),this[_0x2b58('0xb')][_0x2b58('0x4c')][_0x2b58('0x10d')](_0x2b58('0x31'),_0x590d14);}[_0x2b58('0x33')](){if(!this['_pendingAction']){const _0x354aff=this[_0x2b58('0xb')]['plugins'][_0x2b58('0xef')](_0x2b58('0x5c'));this[_0x2b58('0x81')]=_0x354aff['add'](_0x200839(this['editor'][_0x2b58('0x3c')],_0x2b58('0x6e')));}}[_0x2b58('0xe3')](){this['_pendingAction']&&(this[_0x2b58('0xb')][_0x2b58('0xb2')][_0x2b58('0xef')](_0x2b58('0x5c'))[_0x2b58('0x9f')](this[_0x2b58('0x81')]),this['_pendingAction']=null);}[_0x2b58('0x105')](_0x1655c4){const _0x4c27ab=this[_0x2b58('0xf9')][_0x2b58('0xa')]();_0x4c27ab[_0x2b58('0x17')]();let _0x176cc4=0x0;for(;_0x176cc4<_0x4c27ab[_0x2b58('0x1f')];){const _0x3d7c28=_0x4c27ab[_0x176cc4];if(_0x3d7c28===this[_0x2b58('0xbf')]){_0x176cc4++;continue;}if(_0x3d7c28['id']===this[_0x2b58('0xaa')])break;const _0x41c835=_0x1655c4[_0x2b58('0x84')]-_0x3d7c28['toVersion']||_0x1655c4[_0x2b58('0x4e')]-_0x3d7c28[_0x2b58('0x4e')];if(_0x41c835>0x0)break;if(_0x41c835<0x0)_0x176cc4++;else{if(!_0x1655c4['creator']&&_0x3d7c28['creator'])break;if(_0x3d7c28['creator']||!_0x1655c4[_0x2b58('0x57')]){if(_0x1655c4[_0x2b58('0x89')]>_0x3d7c28[_0x2b58('0x89')])break;_0x176cc4++;}else _0x176cc4++;}}return _0x176cc4;}[_0x2b58('0xee')](_0x5b22bf){const _0x2fa136=this['repository'][_0x2b58('0xdf')](_0x5b22bf['id']);if(_0x5b22bf['createdAt']&&(_0x5b22bf[_0x2b58('0x89')]=new Date(_0x5b22bf[_0x2b58('0x89')])),_0x5b22bf[_0x2b58('0x10b')]){const _0x736c87=this[_0x2b58('0xb')]['plugins'][_0x2b58('0xef')](_0x2b58('0x7c'));_0x5b22bf[_0x2b58('0xb5')]=_0x5b22bf[_0x2b58('0x10b')][_0x2b58('0xed')](_0x585aed=>_0x736c87['getUser'](_0x585aed));}_0x2fa136['_update'](_0x5b22bf,!0x0);}[_0x2b58('0xf7')]({revision:_0x47c961=null,from:_0x1bc5ec=null,to:_0x466657=null}){_0x1bc5ec=null!==_0x1bc5ec?_0x1bc5ec:_0x47c961[_0x2b58('0x4e')],_0x466657=null!==_0x466657?_0x466657:_0x47c961[_0x2b58('0x84')];const _0x5dd326=this['_revisionDataBuilder'][_0x2b58('0xe1')](_0x1bc5ec,_0x466657),_0x5bdf82={'diffData':_0x5dd326[_0x2b58('0x4b')],'authorsIds':_0x5dd326[_0x2b58('0x10b')],'fromVersion':_0x1bc5ec,'toVersion':_0x466657};if(!_0x47c961||_0x466657!==_0x47c961[_0x2b58('0x84')]){const _0x22b62e=_0x466657-0x1,_0x2edf85=this[_0x2b58('0x5a')]['history'][_0x2b58('0x27')](_0x22b62e);_0x5bdf82[_0x2b58('0x89')]=_0x2edf85&&_0x2edf85[_0x2b58('0x89')]||new Date();}if(this[_0x2b58('0xa1')]&&_0x1bc5ec===this[_0x2b58('0xa1')][_0x2b58('0x4e')])for(const _0x16b0cc of this[_0x2b58('0xa1')]['authors'])_0x5bdf82[_0x2b58('0x10b')][_0x2b58('0x3a')](_0x16b0cc['id'])||_0x5bdf82[_0x2b58('0x10b')][_0x2b58('0x4')](_0x16b0cc['id']);return _0x5bdf82;}['_loadRevisionData'](_0x248d5d){if(!_0x248d5d||_0x248d5d[_0x2b58('0x4b')])return Promise[_0x2b58('0xa7')]();{const _0x5967cb=this[_0x2b58('0xb')][_0x2b58('0x4c')][_0x2b58('0xef')]('collaboration.channelId');return this[_0x2b58('0x79')]['getRevision']({'channelId':_0x5967cb,'revisionId':_0x248d5d['id']})[_0x2b58('0x45')](_0x31e4a1=>{_0x248d5d[_0x2b58('0x4b')]=_0x31e4a1[_0x2b58('0x4b')];});}}[_0x2b58('0xa8')](_0x513038,_0x3689a6,_0xfcf6){if(this[_0x2b58('0xf3')][_0x2b58('0xb9')](_0x513038)){const _0x78a242=this[_0x2b58('0xf3')][_0x2b58('0xef')](_0x513038);_0x3689a6=_0xfcf6?{..._0x78a242,..._0x3689a6}:{..._0x3689a6,..._0x78a242};}this['_bufferedUpdates'][_0x2b58('0x10d')](_0x513038,_0x3689a6);}[_0x2b58('0xf8')](_0x1088dc){const _0x570b74=this[_0x2b58('0xf9')]['getRevisions']();_0x570b74[_0x2b58('0x17')](),_0x570b74['shift']();const _0x58842a=_0x570b74[_0x2b58('0x1c')](_0x4d0f0f=>_0x4d0f0f[_0x2b58('0x84')]<=_0x1088dc)['toVersion'];return _0x58842a<this[_0x2b58('0x8c')]?this[_0x2b58('0x8c')]:_0x58842a;}[_0x2b58('0x2d')](_0xd01ab9){const _0x390800=this[_0x2b58('0xf9')][_0x2b58('0xdf')](this[_0x2b58('0xf9')]['length']-0x1);if(_0x390800)this['_initialRevisionId']=_0x390800['id'];else{const _0x352648=!this[_0x2b58('0xb')][_0x2b58('0xe5')]['document']['roots'][_0x2b58('0x1c')](_0x1de883=>this[_0x2b58('0xb')][_0x2b58('0xe5')][_0x2b58('0x43')](_0x1de883)),_0xedb8bb=this[_0x2b58('0xb')][_0x2b58('0xb2')][_0x2b58('0xef')](_0x2b58('0x7c'))['me']['id'],_0x1ab931=_0x200839(this[_0x2b58('0xb')][_0x2b58('0x3c')],_0x352648?_0x2b58('0x9a'):_0x2b58('0xfe'));this['_makeRevision']({'from':_0xd01ab9,'to':_0xd01ab9,'id':this[_0x2b58('0xaa')],'name':_0x1ab931,'creatorId':_0xedb8bb});}}[_0x2b58('0x8')](_0x16f673){const _0x140410=this[_0x2b58('0x5a')]['getCurrentRevisionId']();this[_0x2b58('0xbf')]=this[_0x2b58('0xf9')]['getRevision'](_0x140410),this[_0x2b58('0xbf')]||(this['currentRevision']=this[_0x2b58('0xc4')]({'from':_0x16f673,'to':_0x16f673,'id':_0x140410,'name':'','creatorId':null}));}[_0x2b58('0xc4')]({name:_0x19eea9,from:_0x1cab3c,to:_0x49ed64,creatorId:_0x1c0593,id:_0x4335c7}){const _0x38825f=this['buildRevisionData']({'from':_0x1cab3c,'to':_0x49ed64});_0x38825f['name']=_0x19eea9,_0x38825f['creatorId']=_0x1c0593,_0x38825f['id']=_0x4335c7;const _0x1324a0=this[_0x2b58('0x102')](_0x38825f);return this[_0x2b58('0x79')]&&this[_0x2b58('0xa8')](_0x38825f['id'],_0x38825f,!0x0),_0x1324a0;}[_0x2b58('0x25')](){this[_0x2b58('0xb')][_0x2b58('0xa5')][_0x2b58('0xcb')](_0x2b58('0xcf'))[_0x2b58('0x7e')]({'model':'revision'});}[_0x2b58('0x1d')](_0x17603a){return(_0x17603a=_0x17603a[_0x2b58('0x83')](_0x3a1963=>!_0x3a1963[_0x2b58('0x4f')]||'revision-start'!==_0x3a1963['name']&&_0x2b58('0x110')!==_0x3a1963['name']))[_0x2b58('0xd5')](_0x3ae54f=>{_0x2b58('0x8a')!=typeof _0x3ae54f&&(_0x3ae54f['children']=this['_removeRevisionMarkers'](_0x3ae54f['children']),_0x3ae54f[_0x2b58('0xa9')]=_0x3ae54f[_0x2b58('0xa9')][_0x2b58('0x83')](_0xcfd47d=>!_0xcfd47d[0x0][_0x2b58('0x1a')](_0x2b58('0x2f'))));}),_0x17603a;}}function T(_0x1a5233,_0x4d04d5){const _0x4cb9e8=_0x4d04d5[_0x2b58('0x108')]['view'][_0x2b58('0x20')];if('string'==typeof _0x1a5233)return new _0x4f4b95(_0x4cb9e8,_0x1a5233);{const _0x1ed9b0=_0x1a5233[_0x2b58('0x67')]['map'](_0x212965=>T(_0x212965,_0x4d04d5));return new(F[_0x1a5233[(_0x2b58('0xc5'))]]||_0xa090ab)(_0x4cb9e8,_0x1a5233[_0x2b58('0x4f')],_0x1a5233[_0x2b58('0xa9')],_0x1ed9b0);}}class B{constructor(_0x29c549){this[_0x2b58('0xb')]=_0x29c549,this['_savedMetaData']=new Map(),this[_0x2b58('0x86')]=-0x1,this[_0x2b58('0x34')]=-0x1,this[_0x2b58('0xa3')]=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x2b58('0x6b')]=new Map(),this[_0x2b58('0x39')]=new Map(),this[_0x2b58('0x87')]=new Map(),this[_0x2b58('0xf')]=new Map(),this[_0x2b58('0x7b')]=new Map(),this['_touchedMarkers']=new Map(),this[_0x2b58('0x42')]=new Map(),this[_0x2b58('0x2e')]=0x1,this[_0x2b58('0xfd')]=this['editor'][_0x2b58('0xe5')][_0x2b58('0x20')][_0x2b58('0x6d')](),this[_0x2b58('0xfd')][_0x2b58('0x4')](_0x2b58('0x58'));}[_0x2b58('0xfb')](_0xb9e44d){this['source']=_0xb9e44d;const _0x10aa49=new Map(),_0x50d102=new Map(),_0x22886e=this[_0x2b58('0xb')]['model'][_0x2b58('0x20')][_0x2b58('0x6d')](!0x0);_0x22886e['push'](_0x2b58('0x58'));for(const _0x36caac of _0x22886e){const _0x2a93cc=this[_0x2b58('0xb')][_0x2b58('0xe5')][_0x2b58('0x20')][_0x2b58('0xdb')](_0x36caac),_0x516b98=J(_0x2a93cc);_0x10aa49['set'](_0x36caac,_0x516b98),_0x50d102[_0x2b58('0x10d')](_0x36caac,Object[_0x2b58('0xbb')](_0x2a93cc[_0x2b58('0x82')]()));}const _0x1f3c7c=Array['from'](this[_0x2b58('0xb')][_0x2b58('0xe5')][_0x2b58('0x38')])[_0x2b58('0xed')](_0x53a11a=>[_0x53a11a[_0x2b58('0x4f')],_0x53a11a[_0x2b58('0x16')]()]),_0xbdc519=this[_0x2b58('0x66')][_0x2b58('0x97')];this[_0x2b58('0xba')](_0xbdc519,_0x10aa49,_0x1f3c7c,_0x50d102),this[_0x2b58('0x74')]=this['_revisionId'];const _0x21dd07=new Map(),_0x3022d6=new Map();for(const _0x35ce2e of this['_initialRoots']){const _0x5b8229=H(_0x35ce2e);_0x21dd07['set'](_0x35ce2e,_0x5b8229),_0x3022d6[_0x2b58('0x10d')](_0x35ce2e,{});}this[_0x2b58('0xba')](Number[_0x2b58('0x85')],_0x21dd07,[],_0x3022d6);}[_0x2b58('0xe1')](_0x124c1d,_0x5bdcb8){if(this['_lastFrom']===_0x124c1d&&this[_0x2b58('0x34')]<=_0x5bdcb8)this[_0x2b58('0xf0')][_0x2b58('0xb0')]>0x1&&this[_0x2b58('0x100')](this[_0x2b58('0x34')]),this[_0x2b58('0xa2')](this[_0x2b58('0x34')],_0x5bdcb8,!0x0);else{if(!this[_0x2b58('0xf0')][_0x2b58('0xb9')](_0x124c1d)){const _0x1c2c19=this[_0x2b58('0x77')](_0x124c1d);this[_0x2b58('0x54')](_0x1c2c19,_0x124c1d,!0x1);}this[_0x2b58('0x54')](_0x124c1d,_0x5bdcb8,!0x0);}return this['_lastFrom']=_0x124c1d,this[_0x2b58('0x34')]=_0x5bdcb8,this[_0x2b58('0xd8')]();}[_0x2b58('0xce')](_0xf62535){this[_0x2b58('0x60')](),this['_lastFrom']=_0xf62535['fromVersion'],this[_0x2b58('0x34')]=_0xf62535[_0x2b58('0x84')];for(const _0x55c39a in _0xf62535[_0x2b58('0x4b')]){const _0x3080c8=_0xf62535['diffData'][_0x55c39a][_0x2b58('0x7f')],_0x5ef38b=_0x11adde(_0xf62535[_0x2b58('0x4b')][_0x55c39a][_0x2b58('0xca')])||{},_0x3080ce=this[_0x2b58('0x59')](_0xf62535[_0x2b58('0x4b')][_0x55c39a][_0x2b58('0x68')]);_0x3080ce[_0x2b58('0xb4')]=_0x55c39a,_0x3080ce[_0x2b58('0x72')]=!_0x3080c8||!_0x3080c8[_0x2b58('0xbe')],_0x3080ce[_0x2b58('0xbe')]=()=>_0x3080ce[_0x2b58('0x72')],this['_baseRoots']['set'](_0x55c39a,_0x3080ce),this[_0x2b58('0x39')]['set'](_0x55c39a,_0x5ef38b),_0x3080c8&&this['_touchedRoots']['set'](_0x55c39a,_0x3080c8);const _0x52b1e7=this['_makeIdsRoot'](_0x3080ce);this[_0x2b58('0xf')][_0x2b58('0x10d')](_0x55c39a,_0x52b1e7);for(const [_0x533b02,_0x2b596d]of _0x3080ce[_0x2b58('0x38')]){if(!_0x533b02[_0x2b58('0x1a')](_0x2b58('0x15')))continue;const _0xb36a48=_0x533b02[_0x2b58('0x3d')](':')[0x2];for(const _0xdaed63 of _0x2b596d[_0x2b58('0x69')]({'singleCharacters':!0x0})){const _0x23a516=this[_0x2b58('0x14')](_0xdaed63),_0x45a7cf=_0x2b58('0x26')==_0xdaed63[_0x2b58('0xc5')]?_0xdaed63[_0x2b58('0x61')][_0x2b58('0x12')][_0x2b58('0xfa')](0x0,-0x1):_0xdaed63[_0x2b58('0x61')][_0x2b58('0x12')],_0x3d0af2=_0x52b1e7['getNodeByPath'](_0x45a7cf)[_0x2b58('0x53')](_0x23a516);this[_0x2b58('0x7b')][_0x2b58('0x10d')](_0x3d0af2,{'userId':_0xb36a48});}}}this[_0x2b58('0x74')]=this['_revisionId'];const _0x1ff589=[...Array(this['_revisionId'])[_0x2b58('0xd3')]()][_0x2b58('0xfa')](0x1)[_0x2b58('0x83')](_0xc0dd76=>!this[_0x2b58('0x7b')]['has'](_0xc0dd76));let _0x364880=0x0;const _0x2819ab=new Map();for(const _0x5b7723 in _0xf62535[_0x2b58('0x4b')]){const _0x56dd30=_0xf62535[_0x2b58('0x4b')][_0x5b7723][_0x2b58('0x7f')],_0x1f562e=_0x11adde(_0xf62535['diffData'][_0x5b7723][_0x2b58('0xd1')])||{},_0x35c03f=this['_makeModelFromViewString'](_0xf62535[_0x2b58('0x4b')][_0x5b7723][_0x2b58('0xd0')]);_0x35c03f[_0x2b58('0xb4')]=_0x5b7723,_0x35c03f['_isAttached']=!_0x56dd30||_0x56dd30[_0x2b58('0xbe')],_0x35c03f[_0x2b58('0xbe')]=()=>_0x35c03f[_0x2b58('0x72')],this[_0x2b58('0xc1')][_0x2b58('0x10d')](_0x5b7723,_0x35c03f),this[_0x2b58('0x8b')]['set'](_0x5b7723,_0x1f562e);const _0x280cff=this[_0x2b58('0x37')](_0x35c03f,Number[_0x2b58('0x85')]);this[_0x2b58('0x87')][_0x2b58('0x10d')](_0x5b7723,_0x280cff),_0x2819ab[_0x2b58('0x10d')](_0x5b7723,_0x35c03f[_0x2b58('0xbe')]()?_0x1f562e:{});for(const [_0x27e5d6,_0x4a260c]of _0x35c03f[_0x2b58('0x38')]){if(!_0x27e5d6['startsWith'](_0x2b58('0x15')))continue;const _0x3e73fd=_0x27e5d6[_0x2b58('0x3d')](':')[0x2];for(const _0x53aa20 of _0x4a260c[_0x2b58('0x69')]({'singleCharacters':!0x0})){const _0x353d44=this[_0x2b58('0x14')](_0x53aa20),_0xb650fa=this['_revisionId']++,_0x2c662d='elementEnd'==_0x53aa20['type']?_0x53aa20[_0x2b58('0x61')][_0x2b58('0x12')][_0x2b58('0xfa')](0x0,-0x1):_0x53aa20[_0x2b58('0x61')]['path'];_0x280cff[_0x2b58('0x62')](_0x2c662d)[_0x2b58('0xdc')](_0x353d44,_0xb650fa),this[_0x2b58('0x7b')][_0x2b58('0x10d')](_0xb650fa,{'userId':_0x3e73fd});}}for(const _0x496510 of this[_0x2b58('0xb')]['model'][_0x2b58('0x3f')](_0x35c03f)[_0x2b58('0x69')]({'singleCharacters':!0x0})){const _0x216c93=this['_getVidAttributeName'](_0x496510),_0x5445a2='elementEnd'==_0x496510[_0x2b58('0xc5')]?_0x496510[_0x2b58('0x61')][_0x2b58('0x12')]['slice'](0x0,-0x1):_0x496510['previousPosition'][_0x2b58('0x12')],_0x618463=_0x280cff[_0x2b58('0x62')](_0x5445a2);_0x618463[_0x2b58('0x53')](_0x216c93)>0x0||_0x618463['_setAttribute'](_0x216c93,_0x1ff589[_0x364880++]);}for(const [_0x6966d4,_0x272393]of _0x35c03f[_0x2b58('0x38')])_0x6966d4[_0x2b58('0x1a')]('revision:')||this['_markers']['set'](_0x6966d4,_0x272393);}const _0x14e2c1=H(_0x2b58('0x58'));this[_0x2b58('0x6b')]['set']('$graveyard',_0x14e2c1),this['_baseIdsRoots'][_0x2b58('0x10d')](_0x2b58('0x58'),this[_0x2b58('0x37')](_0x14e2c1,0x1));const _0x160cf9=H(_0x2b58('0x58'));this[_0x2b58('0xc1')]['set'](_0x2b58('0x58'),_0x160cf9),this['_idsRoots'][_0x2b58('0x10d')]('$graveyard',this[_0x2b58('0x37')](_0x160cf9,0x1));const _0x5b7eae=Array[_0x2b58('0xe6')](this[_0x2b58('0xc1')])['map'](([_0x186ff7,_0x3475f3])=>[_0x186ff7,J(_0x3475f3)]);this[_0x2b58('0xba')](this[_0x2b58('0x34')],_0x5b7eae,this['_markers'],_0x2819ab);}['_makeModelFromViewString'](_0x305008){const _0x2c064d=JSON['parse'](_0x305008),_0x57345b=this['editor'][_0x2b58('0x108')][_0x2b58('0xad')][_0x2b58('0x20')],_0x137de1=new _0x829dbd(_0x57345b,_0x2c064d[_0x2b58('0xed')](_0x12a2f2=>T(_0x12a2f2,this[_0x2b58('0xb')])));return this[_0x2b58('0xb')]['data'][_0x2b58('0x1e')](_0x137de1);}[_0x2b58('0xba')](_0x1d0657,_0x4b664d,_0x3bd900,_0x2740a4){const _0xf80dc5=new Map(_0x4b664d),_0x36a3c7=new Map(_0x11adde(_0x2740a4)),_0x29ad72=new Map();for(const [_0xd2c4ff,_0x2f33a4]of _0x3bd900)_0x29ad72[_0x2b58('0x10d')](_0xd2c4ff,{'start':_0x2f33a4[_0x2b58('0x1')][_0x2b58('0x5e')](),'end':_0x2f33a4['end'][_0x2b58('0x5e')](),'rootName':_0x2f33a4[_0x2b58('0xf1')][_0x2b58('0xb4')]});this['_savedMetaData'][_0x2b58('0x10d')](_0x1d0657,{'roots':_0xf80dc5,'markers':_0x29ad72,'rootsAttributes':_0x36a3c7});}[_0x2b58('0x100')](_0x48105f){this[_0x2b58('0xf0')]['delete'](_0x48105f);}[_0x2b58('0xe')](){this['_reset'](),this[_0x2b58('0x86')]=-0x1,this[_0x2b58('0x34')]=-0x1,this[_0x2b58('0xf0')][_0x2b58('0xc8')](),this[_0x2b58('0xfb')](this[_0x2b58('0x66')]);}[_0x2b58('0x60')](){this['_touched']['clear'](),this[_0x2b58('0xc2')][_0x2b58('0xc8')](),this['_touchedRoots'][_0x2b58('0xc8')](),this['_diffRoots']['clear'](),this[_0x2b58('0x8b')][_0x2b58('0xc8')](),this[_0x2b58('0x6b')]['clear'](),this[_0x2b58('0x39')][_0x2b58('0xc8')](),this['_idsRoots'][_0x2b58('0xc8')](),this[_0x2b58('0xf')][_0x2b58('0xc8')](),this['_markers']['clear'](),this[_0x2b58('0x2e')]=0x1,this[_0x2b58('0x74')]=this[_0x2b58('0x2e')];}['_makeIdsRoot'](_0x13a895,_0x3da336=null){let _0x1ee532=null;_0x13a895['is'](_0x2b58('0x46'))||(_0x1ee532=new _0x146e1a(_0x13a895[_0x2b58('0x4f')],{'vid_start':null===_0x3da336?this[_0x2b58('0x2e')]++:_0x3da336++}));const _0x8d87cd=[];for(const _0x240d76 of _0x13a895[_0x2b58('0xe8')]())if(_0x240d76['is']('element')){_0x8d87cd['push'](this['_makeIdsRoot'](_0x240d76,_0x3da336));const _0xbc183b=_0x8d87cd[_0x8d87cd['length']-0x1];null!==_0x3da336&&(_0x3da336=_0xbc183b['is'](_0x2b58('0x23'),_0x2b58('0xb7'))?_0xbc183b[_0x2b58('0x53')](_0x2b58('0x28'))+0x1:_0xbc183b[_0x2b58('0x53')]('vid_end')+0x1);}else for(let _0x489fc6=0x0;_0x489fc6<_0x240d76['offsetSize'];_0x489fc6++)_0x8d87cd[_0x2b58('0x4')](new _0x146e1a('$text',{'vid':null===_0x3da336?this['_revisionId']++:_0x3da336++}));if(_0x13a895['is'](_0x2b58('0x46'))){const _0x494315=H(_0x13a895[_0x2b58('0xb4')]);return _0x494315['_insertChild'](0x0,_0x8d87cd),_0x494315;}return _0x1ee532[_0x2b58('0xdc')]('vid_end',null===_0x3da336?this[_0x2b58('0x2e')]++:_0x3da336++),_0x1ee532[_0x2b58('0x10')](0x0,_0x8d87cd),_0x1ee532;}['_calculateMetaData'](_0x3387ef,_0x5e479e,_0x18f347){this['_reset']();const {roots:_0x292eb1,markers:_0x47f0a6,rootsAttributes:_0x24402d}=this[_0x2b58('0xf0')][_0x2b58('0xef')](_0x3387ef);this[_0x2b58('0x6b')]=new Map(_0x292eb1),this[_0x2b58('0x39')]=new Map(_0x11adde(_0x24402d));for(const [_0x37cc26,_0x3b3ef4]of this[_0x2b58('0x6b')])if(_0x2b58('0x58')!==_0x37cc26&&(this[_0x2b58('0xc1')][_0x2b58('0x10d')](_0x37cc26,J(_0x3b3ef4)),this[_0x2b58('0x8b')]=new Map(_0x11adde(_0x24402d)),_0x18f347)){const _0x31f6cb=this[_0x2b58('0x2e')];this[_0x2b58('0x87')]['set'](_0x37cc26,this[_0x2b58('0x37')](_0x3b3ef4)),this[_0x2b58('0xf')][_0x2b58('0x10d')](_0x37cc26,this[_0x2b58('0x37')](_0x3b3ef4,_0x31f6cb));}this[_0x2b58('0x74')]=this[_0x2b58('0x2e')],this[_0x2b58('0xc1')][_0x2b58('0x10d')]('$graveyard',J(this[_0x2b58('0x6b')][_0x2b58('0xef')](_0x2b58('0x58')))),_0x18f347&&this[_0x2b58('0x87')][_0x2b58('0x10d')](_0x2b58('0x58'),this['_makeIdsRoot'](this[_0x2b58('0x6b')][_0x2b58('0xef')]('$graveyard')));for(const [_0x3dc020,_0x4cf39e]of _0x47f0a6){const _0x4b125e=this[_0x2b58('0x6b')][_0x2b58('0xef')](_0x4cf39e[_0x2b58('0xb4')]),_0x348d72=this['_diffRoots'][_0x2b58('0xef')](_0x4cf39e['rootName']),_0x586e12=new _0x2bfe56(this[_0x2b58('0x51')](_0x4cf39e[_0x2b58('0x1')],_0x4b125e),this['_fixPosition'](_0x4cf39e[_0x2b58('0x5')],_0x4b125e)),_0x4e730a=this['_fixRange'](_0x586e12,_0x348d72);_0x4b125e[_0x2b58('0x38')][_0x2b58('0x10d')](_0x3dc020,_0x586e12),this[_0x2b58('0xa3')]['set'](_0x3dc020,_0x4e730a);}this[_0x2b58('0xa2')](_0x3387ef,_0x5e479e,_0x18f347);}['_applyOperations'](_0x4ae877,_0x292785,_0x2e67fd){for(const _0x270c27 of this[_0x2b58('0x66')][_0x2b58('0x50')](_0x4ae877,_0x292785))this[_0x2b58('0x40')](_0x270c27,_0x2e67fd);for(const _0x5d4a31 of this[_0x2b58('0xc1')][_0x2b58('0xeb')]())_0x5d4a31[_0x2b58('0x38')][_0x2b58('0xc8')]();for(const [_0xcff119,_0x5766a8]of this[_0x2b58('0xa3')]){this[_0x2b58('0xc1')][_0x2b58('0xef')](_0x5766a8['root'][_0x2b58('0xb4')])[_0x2b58('0x38')]['set'](_0xcff119,_0x5766a8[_0x2b58('0x5e')]());}const _0x579bb8=new Map(),_0x223161=new Map();for(const [_0x571113,_0x141c5d]of this['_diffRoots'])_0x579bb8[_0x2b58('0x10d')](_0x571113,J(_0x141c5d)),_0x223161[_0x2b58('0x10d')](_0x571113,this[_0x2b58('0x8b')]['get'](_0x571113));this['_saveMetaData'](_0x292785,_0x579bb8,this[_0x2b58('0xa3')],_0x223161);}['_getPreviousFrom'](_0x3936e7){const _0x5a484a=Array[_0x2b58('0xe6')](this['_savedMetaData']['keys']());_0x5a484a[_0x2b58('0xe9')]((_0xee8c4a,_0x3e895b)=>_0xee8c4a-_0x3e895b),_0x5a484a[_0x2b58('0x17')]();for(const _0x34dc15 of _0x5a484a)if(_0x34dc15<_0x3936e7)return _0x34dc15;return Number['NEGATIVE_INFINITY'];}[_0x2b58('0xae')](_0x15d894,_0x20e69b){const _0x5aca1f=Array[_0x2b58('0xe6')](_0x20e69b['markers'])[_0x2b58('0xed')](([_0x4be8ee,_0x238c98])=>[_0x4be8ee,this[_0x2b58('0x70')](_0x238c98,_0x15d894)]);_0x15d894['markers']=new Map(_0x5aca1f);}[_0x2b58('0x49')](_0x223aea){for(const _0xb8bfbe of this[_0x2b58('0xa3')][_0x2b58('0xeb')]()){const _0x176f31=_0xb8bfbe[_0x2b58('0x56')](_0x223aea),_0x33b2b6=_0x2bfe56[_0x2b58('0xd')](_0x176f31);_0xb8bfbe[_0x2b58('0x1')]=_0x33b2b6['start'],_0xb8bfbe['end']=_0x33b2b6[_0x2b58('0x5')];}}['_handleOperation'](_0x3125bc,_0x27ec4a){if(_0x2b58('0x7d')==_0x3125bc[_0x2b58('0xc5')]||_0x2b58('0x2a')==_0x3125bc[_0x2b58('0xc5')])return void this['_handleRootOperation'](_0x3125bc,_0x27ec4a);if(_0x2b58('0xd7')==_0x3125bc[_0x2b58('0xc5')]){const _0x5cfa6b=_0x3125bc[_0x2b58('0x3b')]['root'][_0x2b58('0xb4')];this[_0x2b58('0xc1')][_0x2b58('0xb9')](_0x5cfa6b)||(this[_0x2b58('0xc1')][_0x2b58('0x10d')](_0x5cfa6b,H(_0x5cfa6b,!0x0)),this[_0x2b58('0x8b')][_0x2b58('0x10d')](_0x5cfa6b,{}),_0x27ec4a&&this[_0x2b58('0x87')][_0x2b58('0x10d')](_0x5cfa6b,H(_0x5cfa6b,!0x0)));}if(_0x2b58('0x9')==_0x3125bc[_0x2b58('0xc5')]||'removeRootAttribute'==_0x3125bc[_0x2b58('0xc5')]||_0x2b58('0x65')==_0x3125bc['type'])return void this[_0x2b58('0x3')](_0x3125bc);const _0x4043d5=this[_0x2b58('0xcc')](_0x3125bc,this['_diffRoots']);if(_0x2b58('0x8e')!==_0x3125bc[_0x2b58('0xc5')]&&(_0x4043d5[_0x2b58('0x9d')](),this[_0x2b58('0x49')](_0x4043d5)),_0x27ec4a)switch(_0x4043d5[_0x2b58('0xc5')]){case _0x2b58('0xd7'):this[_0x2b58('0x6')](_0x3125bc);break;case _0x2b58('0x101'):case _0x2b58('0x9f'):case _0x2b58('0x95'):this[_0x2b58('0x10e')](_0x3125bc);break;case _0x2b58('0x98'):this['_handleMergeOperation'](_0x3125bc);break;case _0x2b58('0x3d'):this[_0x2b58('0x107')](_0x3125bc);break;case _0x2b58('0x8e'):this[_0x2b58('0x55')](_0x3125bc);}}[_0x2b58('0xcc')](_0x3c9cca,_0xa3c226){const _0x11a080=_0x3c9cca['clone']();return _0x11a080['_authorId']=_0x3c9cca[_0x2b58('0x7')],this[_0x2b58('0x5b')](_0x11a080,_0xa3c226),_0x11a080;}[_0x2b58('0xb1')](_0x10c408){return _0x10c408[_0x2b58('0xed')](_0x36b622=>{const _0x451011=this[_0x2b58('0x14')](_0x36b622);return Number(_0x36b622['item']['getAttribute'](_0x451011));});}[_0x2b58('0x13')](_0x1fa97c,_0x31b3e1){if(_0x1fa97c['is']('element',_0x2b58('0xb7')))_0x31b3e1[_0x2b58('0x4')]({'item':_0x1fa97c,'type':_0x2b58('0x9c')});else{_0x1fa97c['is']('element')&&_0x31b3e1[_0x2b58('0x4')]({'item':_0x1fa97c,'type':_0x2b58('0x29')});for(const _0x27f380 of _0x1fa97c[_0x2b58('0xe8')]())this['_generateTape'](_0x27f380,_0x31b3e1);_0x1fa97c['is'](_0x2b58('0x23'))&&_0x31b3e1[_0x2b58('0x4')]({'item':_0x1fa97c,'type':_0x2b58('0x26')});}return _0x31b3e1;}[_0x2b58('0xd8')](){const _0x278e59=new Map(this[_0x2b58('0x7b')]),_0x1b848a=new Map(_0x278e59),_0x5e3ef4=new Map(),_0x54308a={'insertions':{},'deletions':{}},_0x164a1d={'insertions':{},'deletions':{}},_0x125859=new Map(),_0x56f35b=new Set([...this[_0x2b58('0x6b')][_0x2b58('0xd3')](),...this[_0x2b58('0xc1')][_0x2b58('0xd3')]()]);_0x56f35b['delete'](_0x2b58('0x58'));for(const _0x72ffc of _0x56f35b){const _0x399e68=this[_0x2b58('0xc1')][_0x2b58('0xef')](_0x72ffc)||H(_0x72ffc,!0x1),_0xecf1d0=this[_0x2b58('0x6b')][_0x2b58('0xef')](_0x72ffc)||H(_0x72ffc,!0x1);_0x399e68[_0x2b58('0xbe')]()||_0xecf1d0['isAttached']()?(_0x54308a[_0x2b58('0xd0')][_0x72ffc]=J(_0x399e68),_0x54308a['deletions'][_0x72ffc]=J(_0xecf1d0),this[_0x2b58('0xae')](_0x54308a['deletions'][_0x72ffc],_0xecf1d0),this[_0x2b58('0xae')](_0x54308a[_0x2b58('0xd0')][_0x72ffc],_0x399e68),_0x164a1d[_0x2b58('0xd0')][_0x72ffc]=this['_generateTape'](this[_0x2b58('0x87')]['get'](_0x72ffc),[]),_0x164a1d['deletions'][_0x72ffc]=this[_0x2b58('0x13')](this['_baseIdsRoots']['get'](_0x72ffc)||H(_0x72ffc,!0x1),[])):_0x56f35b[_0x2b58('0x6a')](_0x72ffc);}for(const _0x446a53 of _0x56f35b){const _0xb2d6d0=_0x164a1d['insertions'][_0x446a53];for(const _0x269d91 of _0xb2d6d0){const _0x507a22=this[_0x2b58('0x14')](_0x269d91),_0x3ba3cc=_0x269d91[_0x2b58('0x64')][_0x2b58('0x53')](_0x507a22);_0x1b848a[_0x2b58('0x6a')](_0x3ba3cc),_0x3ba3cc>=this[_0x2b58('0x74')]&&_0x5e3ef4[_0x2b58('0x10d')](_0x3ba3cc,_0x278e59[_0x2b58('0xef')](_0x3ba3cc));}}for(const _0x3fbc54 of _0x56f35b){const _0x1ecf1a=_0x164a1d[_0x2b58('0xd0')][_0x3fbc54],_0x18793a=this[_0x2b58('0xb1')](_0x164a1d[_0x2b58('0x68')][_0x3fbc54]);let _0x1775e6=0x0;for(const _0x1811fc of _0x1ecf1a){const _0x36aa60=this[_0x2b58('0x14')](_0x1811fc),_0x3dc8cf=_0x1811fc[_0x2b58('0x64')][_0x2b58('0x53')](_0x36aa60);if(!_0x5e3ef4['has'](_0x3dc8cf)&&!_0x125859[_0x2b58('0xb9')](_0x3dc8cf)){if(_0x1b848a['has'](_0x3dc8cf))_0x1775e6++;else{if(_0x3dc8cf!=_0x18793a[_0x1775e6]){const _0x453474=_0x278e59['get'](_0x3dc8cf)||_0x278e59[_0x2b58('0xef')](_0x18793a[_0x1775e6]);for(;_0x3dc8cf!=_0x18793a[_0x1775e6];)_0x1b848a['has'](_0x18793a[_0x1775e6])||(_0x125859['set'](_0x18793a[_0x1775e6],_0x453474),_0x278e59[_0x2b58('0x10d')](_0x18793a[_0x1775e6],_0x453474)),_0x1775e6++;}_0x1775e6++;}}}}for(const _0x2fbb52 of _0x56f35b){const _0x22b928=_0x164a1d[_0x2b58('0xd0')][_0x2fbb52];for(const _0x414c29 of _0x22b928){const _0x4ed7d0=this[_0x2b58('0x14')](_0x414c29),_0x2ec9b2=_0x414c29['item'][_0x2b58('0x53')](_0x4ed7d0);if(_0x125859[_0x2b58('0xb9')](_0x2ec9b2)){const _0x9f3219=_0x125859[_0x2b58('0xef')](_0x2ec9b2);_0x1b848a[_0x2b58('0xb9')](_0x2ec9b2)||_0x1b848a[_0x2b58('0x10d')](_0x2ec9b2,{..._0x9f3219}),_0x5e3ef4[_0x2b58('0x10d')](_0x2ec9b2,{..._0x9f3219});}}}for(const _0x3f90a6 of _0x1b848a['keys']())_0x3f90a6>=this[_0x2b58('0x74')]&&_0x1b848a['delete'](_0x3f90a6);const _0x54b7a8=new Map();for(const _0x109d17 of _0x56f35b){let _0x4a801a=_0x164a1d[_0x2b58('0xd0')][_0x109d17];for(const _0x380a89 of _0x4a801a)if(_0x380a89[_0x2b58('0x64')]['is'](_0x2b58('0x23'),_0x2b58('0x91'))){const _0x3ebdfe=this[_0x2b58('0x14')](_0x380a89),_0x266e41=_0x380a89[_0x2b58('0x64')][_0x2b58('0x53')](_0x3ebdfe);if(_0x5e3ef4[_0x2b58('0xb9')](_0x266e41)){const _0x1dc354=_0x380a89[_0x2b58('0x64')]['parent'][_0x2b58('0x18')]['getAttribute'](_0x2b58('0xac')),_0x36330e=_0x54b7a8[_0x2b58('0xef')](_0x1dc354)||new Set();_0x36330e[_0x2b58('0xe7')](_0x5e3ef4[_0x2b58('0xef')](_0x266e41)[_0x2b58('0xbc')]),_0x54b7a8[_0x2b58('0x10d')](_0x1dc354,_0x36330e);}}_0x4a801a=_0x164a1d[_0x2b58('0x68')][_0x109d17];for(const _0xf5780 of _0x4a801a)if(_0xf5780[_0x2b58('0x64')]['is']('element',_0x2b58('0x91'))){const _0x4bea8d=this[_0x2b58('0x14')](_0xf5780),_0x3b979f=_0xf5780[_0x2b58('0x64')]['getAttribute'](_0x4bea8d);if(_0x1b848a[_0x2b58('0xb9')](_0x3b979f)){const _0x93c9b5=_0xf5780[_0x2b58('0x64')][_0x2b58('0x18')][_0x2b58('0x18')][_0x2b58('0x53')](_0x2b58('0xac')),_0x3ac668=_0x54b7a8[_0x2b58('0xef')](_0x93c9b5)||new Set();_0x3ac668[_0x2b58('0xe7')](_0x1b848a[_0x2b58('0xef')](_0x3b979f)[_0x2b58('0xbc')]),_0x54b7a8['set'](_0x93c9b5,_0x3ac668);}}for(const _0xb6a19a of _0x54b7a8['keys']())(_0x5e3ef4[_0x2b58('0xb9')](_0xb6a19a)||_0x1b848a[_0x2b58('0xb9')](_0xb6a19a))&&_0x54b7a8['delete'](_0xb6a19a);}for(const _0x351a2c of _0x56f35b){const _0x4452a8=_0x164a1d[_0x2b58('0xd0')][_0x351a2c];let _0x309c5d=null,_0x2961cc=null;for(const _0x5eef50 of _0x4452a8){const _0x39f49d=this[_0x2b58('0x14')](_0x5eef50),_0x5e2a92=_0x5eef50['item'][_0x2b58('0x53')](_0x39f49d),_0x52591a=_0x54b7a8[_0x2b58('0xef')](_0x5e2a92);_0x52591a&&_0x2b58('0x29')==_0x5eef50[_0x2b58('0xc5')]&&(_0x309c5d=Array[_0x2b58('0xe6')](_0x52591a)[0x0],_0x2961cc=_0x5eef50[_0x2b58('0x64')][_0x2b58('0x53')](_0x2b58('0x5f'))),_0x309c5d&&(_0x1b848a[_0x2b58('0x10d')](_0x5e2a92,{'userId':_0x309c5d}),_0x5e3ef4[_0x2b58('0x10d')](_0x5e2a92,{'userId':_0x309c5d})),_0x5e2a92==_0x2961cc&&(_0x309c5d=null,_0x2961cc=null);}}const _0x2cb6ba={},_0x16efdd=new Set();for(const _0xb2b54d of _0x56f35b){const _0x8cb8be=_0x54308a[_0x2b58('0x68')][_0xb2b54d],_0x41c85f=_0x54308a[_0x2b58('0xd0')][_0xb2b54d];for(const {userId:_0x1f1ffd}of this[_0x2b58('0xc2')][_0x2b58('0xeb')]())null!==_0x1f1ffd&&_0x16efdd[_0x2b58('0xe7')](_0x1f1ffd);for(const {userId:_0x1ff6b8}of this[_0x2b58('0x42')]['values']())null!==_0x1ff6b8&&_0x16efdd[_0x2b58('0xe7')](_0x1ff6b8);this[_0x2b58('0xa6')](_0x41c85f,_0x164a1d['insertions'][_0xb2b54d],_0x5e3ef4,_0x2b58('0xec'),_0x16efdd),this['_markChanges'](_0x8cb8be,_0x164a1d[_0x2b58('0x68')][_0xb2b54d],_0x1b848a,_0x2b58('0xc3'),_0x16efdd),_0x2cb6ba[_0xb2b54d]={'insertions':this[_0x2b58('0xd4')](_0x41c85f),'deletions':this[_0x2b58('0xd4')](_0x8cb8be),'attachChange':this[_0x2b58('0x42')][_0x2b58('0xef')](_0xb2b54d)||null,'attributesBefore':_0x11adde(this[_0x2b58('0x39')][_0x2b58('0xef')](_0xb2b54d))||{},'attributesAfter':_0x11adde(this['_diffRootsAttributes'][_0x2b58('0xef')](_0xb2b54d))};}return{'diffData':_0x2cb6ba,'authorsIds':Array[_0x2b58('0xe6')](_0x16efdd)};}['_processRootBeforeSave'](_0x4e1103){for(const [,_0x45bb62]of _0x4e1103[_0x2b58('0x38')]){const _0x3ea469=_0x45bb62[_0x2b58('0x1')][_0x2b58('0xc9')]()['filter'](_0x535af1=>'tableCell'==_0x535af1['name']);for(const _0x2341ac of _0x3ea469)0x1==_0x2341ac[_0x2b58('0xf6')]&&_0x2341ac[_0x2b58('0x63')](0x0)['is']('element',_0x2b58('0xcd'))&&_0x2341ac[_0x2b58('0x63')](0x0)[_0x2b58('0xdc')]('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2a0bc5){this[_0x2b58('0x47')](_0x2a0bc5);const _0x3eed35=this['editor']['data'][_0x2b58('0xde')](_0x2a0bc5,{}),_0x334115=Array['from'](_0x3eed35[_0x2b58('0xe8')]())[_0x2b58('0xed')](_0x466c1d=>this['_getViewJson'](_0x466c1d));return JSON[_0x2b58('0xb6')](_0x334115);}[_0x2b58('0xf4')](_0x4b6819){if(_0x4b6819['is'](_0x2b58('0xb7')))return _0x4b6819[_0x2b58('0xe2')];{const _0x15727a=_0x4b6819;return{'type':Object[_0x2b58('0xd3')](F)['find'](_0x5379a5=>_0x4b6819 instanceof F[_0x5379a5]),'name':_0x15727a[_0x2b58('0x4f')],'attributes':Array['from'](_0x15727a[_0x2b58('0x82')]()),'children':Array[_0x2b58('0xe6')](_0x15727a[_0x2b58('0xe8')]())[_0x2b58('0xed')](_0x226f16=>this[_0x2b58('0xf4')](_0x226f16))};}}[_0x2b58('0xa6')](_0x480151,_0x348a08,_0x3148e1,_0x2a9cd5,_0x58cd7f){let _0x17c046=null,_0x1c6ee0=null,_0x1926c0=0x0;const _0x42ab47=this['editor']['model'];for(let _0x3a3769=0x0;_0x3a3769<_0x348a08[_0x2b58('0x1f')];_0x3a3769++){const _0x6d6c5=this[_0x2b58('0x14')](_0x348a08[_0x3a3769]),_0x3fb1a0=_0x348a08[_0x3a3769][_0x2b58('0x64')][_0x2b58('0x53')](_0x6d6c5),_0x58ecd9=_0x3148e1[_0x2b58('0xef')](_0x3fb1a0),_0x178c8d=_0x3a3769==_0x348a08[_0x2b58('0x1f')]-0x1;(!_0x17c046&&_0x58ecd9&&(_0x17c046=_0x58ecd9,_0x1c6ee0=_0x348a08[_0x3a3769]),_0x17c046&&(!_0x58ecd9||_0x58ecd9['userId']!=_0x17c046[_0x2b58('0xbc')]))&&(_0x3a09f2(_0x58ecd9,q(_0x1c6ee0,_0x480151,_0x42ab47),q(_0x348a08[_0x3a3769],_0x480151,_0x42ab47)),_0x17c046=_0x58ecd9||null,_0x1c6ee0=_0x58ecd9?_0x348a08[_0x3a3769]:null),_0x17c046&&_0x178c8d&&_0x3a09f2(_0x58ecd9,q(_0x1c6ee0,_0x480151,_0x42ab47),G(_0x348a08[_0x3a3769],_0x480151,_0x42ab47));}function _0x3a09f2(_0x159e59,_0x4af51c,_0x539946){const _0xb800f5=_0x17c046['userId'],_0x340eba=_0x2b58('0x15')+_0x2a9cd5+':'+_0xb800f5+':'+_0x1926c0++,_0xaa2d0a=_0x42ab47[_0x2b58('0xc6')](_0x4af51c,_0x539946);_0x480151['markers']['set'](_0x340eba,_0xaa2d0a),null!==_0xb800f5&&_0x58cd7f[_0x2b58('0xe7')](_0xb800f5);}}[_0x2b58('0x14')](_0x2a5a6f){switch(_0x2a5a6f[_0x2b58('0xc5')]){case'elementStart':return'vid_start';case'elementEnd':return _0x2b58('0x5f');default:return _0x2b58('0x28');}}[_0x2b58('0x5b')](_0x1a9d21,_0x4123a7){_0x1a9d21['baseVersion']=null;for(const _0x10b5a6 in _0x1a9d21){const _0x28b4f1=_0x1a9d21[_0x10b5a6];if(_0x28b4f1 instanceof _0x5609a4){const _0x3f70ca=_0x4123a7['get'](_0x28b4f1[_0x2b58('0xf1')][_0x2b58('0xb4')]);_0x1a9d21[_0x10b5a6]=this[_0x2b58('0x51')](_0x28b4f1,_0x3f70ca);}if(_0x28b4f1 instanceof _0x2bfe56){const _0x5dae7d=_0x4123a7[_0x2b58('0xef')](_0x28b4f1[_0x2b58('0xf1')]['rootName']);_0x1a9d21[_0x10b5a6]=this[_0x2b58('0x70')](_0x28b4f1,_0x5dae7d);}'root'===_0x10b5a6&&(_0x1a9d21[_0x2b58('0xf1')]=_0x4123a7[_0x2b58('0xef')](_0x1a9d21[_0x2b58('0xf1')][_0x2b58('0xb4')]));}}[_0x2b58('0x70')](_0x5b3530,_0x38e92b){return this[_0x2b58('0xb')][_0x2b58('0xe5')][_0x2b58('0xc6')](this[_0x2b58('0x51')](_0x5b3530[_0x2b58('0x1')],_0x38e92b),this['_fixPosition'](_0x5b3530[_0x2b58('0x5')],_0x38e92b));}[_0x2b58('0x51')](_0x4a415f,_0x17c15c){return this['editor']['model'][_0x2b58('0x99')](_0x17c15c,_0x4a415f[_0x2b58('0x12')],_0x4a415f[_0x2b58('0x36')]);}[_0x2b58('0x6')](_0x274d80){const _0x1b7e2e=this[_0x2b58('0x87')][_0x2b58('0xef')](_0x274d80[_0x2b58('0x3b')][_0x2b58('0xf1')]['rootName']),_0x46ec57=this[_0x2b58('0x51')](_0x274d80[_0x2b58('0x3b')],_0x1b7e2e),_0x345a23=null===_0x274d80[_0x2b58('0x7')]?null:_0x274d80['_authorId']||this[_0x2b58('0xb')][_0x2b58('0xb2')][_0x2b58('0xef')](_0x2b58('0x7c'))['me']['id'],_0x4b30b3=_0x46ec57['parent'],_0x5098dc=this[_0x2b58('0x2e')],_0x21e4ee=[];for(const _0x4a783e of _0x274d80[_0x2b58('0xc')])if(_0x4a783e['is'](_0x2b58('0x23')))_0x21e4ee[_0x2b58('0x4')](this[_0x2b58('0x37')](_0x4a783e));else for(let _0x3e3203=0x0;_0x3e3203<_0x4a783e['offsetSize'];_0x3e3203++)_0x21e4ee[_0x2b58('0x4')](new _0x146e1a('$text',{'vid':this['_revisionId']++}));const _0x56883c=this[_0x2b58('0x2e')];for(let _0x3a5580=_0x5098dc;_0x3a5580<_0x56883c;_0x3a5580++)this[_0x2b58('0x7b')][_0x2b58('0x10d')](_0x3a5580,{'userId':_0x345a23});_0x4b30b3[_0x2b58('0x10')](_0x46ec57['offset'],_0x21e4ee);}[_0x2b58('0x10e')](_0x4c0660){(_0x4c0660=this[_0x2b58('0xcc')](_0x4c0660,this[_0x2b58('0x87')]))[_0x2b58('0x9d')]();const _0x260fcf=null===_0x4c0660[_0x2b58('0x7')]?null:_0x4c0660[_0x2b58('0x7')]||this[_0x2b58('0xb')][_0x2b58('0xb2')][_0x2b58('0xef')](_0x2b58('0x7c'))['me']['id'],_0x389e67=_0x4c0660[_0x2b58('0xbd')](),_0x1db2d4=_0x389e67['parent'],_0x1663aa=_0x389e67[_0x2b58('0x0')];!function _0xac5211(_0x1ad8ef,_0x2ea45d,_0x92f24e,_0x1d6322){for(let _0x444609=_0x92f24e;_0x444609<_0x1d6322;_0x444609++){const _0x8f2b49=_0x2ea45d['getChild'](_0x444609);_0x8f2b49['is'](_0x2b58('0x23'),_0x2b58('0xb7'))?_0x1ad8ef[_0x2b58('0x10d')](_0x8f2b49[_0x2b58('0x53')]('vid'),{'userId':_0x260fcf}):(_0x1ad8ef[_0x2b58('0x10d')](_0x8f2b49['getAttribute']('vid_start'),{'userId':_0x260fcf}),_0xac5211(_0x1ad8ef,_0x8f2b49,0x0,_0x8f2b49[_0x2b58('0xf6')]),_0x1ad8ef[_0x2b58('0x10d')](_0x8f2b49[_0x2b58('0x53')](_0x2b58('0x5f')),{'userId':_0x260fcf}));}}(this[_0x2b58('0x7b')],_0x1db2d4,_0x1663aa,_0x1663aa+_0x4c0660[_0x2b58('0x2c')]);}[_0x2b58('0x76')](_0x1ce4ca){const _0x32e2d5=null===(_0x1ce4ca=this[_0x2b58('0xcc')](_0x1ce4ca,this['_idsRoots']))[_0x2b58('0x7')]?null:_0x1ce4ca[_0x2b58('0x7')]||this['editor']['plugins']['get'](_0x2b58('0x7c'))['me']['id'],_0x24700b=_0x1ce4ca[_0x2b58('0x104')][_0x2b58('0x18')],_0xd75c6d=_0x1ce4ca[_0x2b58('0x6c')][_0x2b58('0x18')],_0x234c5a=_0x24700b['getAttribute'](_0x2b58('0x5f')),_0x58551f=_0xd75c6d[_0x2b58('0x53')](_0x2b58('0xac'));_0x24700b[_0x2b58('0xdc')](_0x2b58('0x5f'),_0xd75c6d['getAttribute'](_0x2b58('0x5f'))),_0xd75c6d['_setAttribute'](_0x2b58('0x5f'),_0x234c5a),this[_0x2b58('0x7b')][_0x2b58('0x10d')](_0x58551f,{'userId':_0x32e2d5}),this[_0x2b58('0x7b')][_0x2b58('0x10d')](_0x234c5a,{'userId':_0x32e2d5}),_0x1ce4ca[_0x2b58('0x9d')]();}[_0x2b58('0x107')](_0x3b054c){const _0x17809a=null===(_0x3b054c=this[_0x2b58('0xcc')](_0x3b054c,this[_0x2b58('0x87')]))[_0x2b58('0x7')]?null:_0x3b054c[_0x2b58('0x7')]||this[_0x2b58('0xb')][_0x2b58('0xb2')]['get'](_0x2b58('0x7c'))['me']['id'],_0x2b4bb3=_0x3b054c[_0x2b58('0xaf')],_0x55b4a9=_0x3b054c[_0x2b58('0x10a')][_0x2b58('0x18')];_0x3b054c[_0x2b58('0x9d')]();const _0x96668c=_0x55b4a9[_0x2b58('0x53')](_0x2b58('0x5f')),_0x596a34=_0x3b054c['insertionPosition'][_0x2b58('0xab')];if(_0x2b4bb3){const _0x503ea4=_0x596a34[_0x2b58('0x53')](_0x2b58('0x5f')),_0x43112b=_0x55b4a9[_0x2b58('0x53')](_0x2b58('0x5f'));_0x55b4a9[_0x2b58('0xdc')](_0x2b58('0x5f'),_0x503ea4),_0x596a34[_0x2b58('0xdc')](_0x2b58('0x5f'),_0x43112b),this['_touched']['set'](_0x55b4a9[_0x2b58('0x53')](_0x2b58('0x5f')),{'userId':_0x17809a}),this['_touched'][_0x2b58('0x10d')](_0x596a34['getAttribute'](_0x2b58('0xac')),{'userId':_0x17809a});}else{const _0x1cefc9=this[_0x2b58('0x2e')]++,_0x3dfe01=this[_0x2b58('0x2e')]++;_0x55b4a9['_setAttribute']('vid_end',_0x1cefc9),_0x596a34[_0x2b58('0xdc')](_0x2b58('0xac'),_0x3dfe01),_0x596a34[_0x2b58('0xdc')](_0x2b58('0x5f'),_0x96668c),this[_0x2b58('0x7b')][_0x2b58('0x10d')](_0x1cefc9,{'userId':_0x17809a}),this[_0x2b58('0x7b')][_0x2b58('0x10d')](_0x3dfe01,{'userId':_0x17809a});}}[_0x2b58('0x55')](_0x4a4cd5){if(!_0x4a4cd5[_0x2b58('0xd2')])return;const _0x144dfc=(_0x4a4cd5=this['_cloneOperation'](_0x4a4cd5,this[_0x2b58('0xc1')]))['oldRange']?_0x4a4cd5[_0x2b58('0x11')][_0x2b58('0xf1')]:null,_0x3224bd=_0x4a4cd5[_0x2b58('0x9e')]?_0x4a4cd5[_0x2b58('0x9e')][_0x2b58('0xf1')]:null;_0x144dfc&&this[_0x2b58('0xa3')][_0x2b58('0x6a')](_0x4a4cd5[_0x2b58('0x4f')]),_0x3224bd&&this[_0x2b58('0xa3')]['set'](_0x4a4cd5[_0x2b58('0x4f')],_0x4a4cd5[_0x2b58('0x9e')][_0x2b58('0x5e')]());const _0x2e8ce9=null===_0x4a4cd5[_0x2b58('0x7')]?null:_0x4a4cd5[_0x2b58('0x7')]||this['editor'][_0x2b58('0xb2')]['get'](_0x2b58('0x7c'))['me']['id'],_0x400390=_0x4a4cd5['name'];if(!this[_0x2b58('0xc2')]['has'](_0x400390))return void this[_0x2b58('0xc2')][_0x2b58('0x10d')](_0x400390,{'range':_0x4a4cd5[_0x2b58('0x11')],'userId':_0x2e8ce9});const _0x382fe5=this[_0x2b58('0xc2')][_0x2b58('0xef')](_0x400390),_0x48cf35=_0x382fe5[_0x2b58('0x78')],_0x27305b=_0x4a4cd5['newRange'];null==_0x48cf35&&null==_0x27305b||_0x48cf35&&_0x27305b&&_0x48cf35[_0x2b58('0x24')](_0x27305b)?this['_touchedMarkers'][_0x2b58('0x6a')](_0x4a4cd5[_0x2b58('0x4f')]):_0x382fe5[_0x2b58('0xbc')]=_0x2e8ce9;}[_0x2b58('0xda')](_0x2a5dff,_0x5e3edf){this[_0x2b58('0xc1')][_0x2b58('0xb9')](_0x2a5dff[_0x2b58('0xb4')])?this[_0x2b58('0xc1')]['get'](_0x2a5dff[_0x2b58('0xb4')])[_0x2b58('0x72')]=_0x2a5dff[_0x2b58('0xf2')]:(this[_0x2b58('0xc1')][_0x2b58('0x10d')](_0x2a5dff['rootName'],H(_0x2a5dff[_0x2b58('0xb4')],!0x0)),this['_diffRootsAttributes']['set'](_0x2a5dff[_0x2b58('0xb4')],{}),_0x5e3edf&&this['_idsRoots'][_0x2b58('0x10d')](_0x2a5dff[_0x2b58('0xb4')],H(_0x2a5dff[_0x2b58('0xb4')],!0x0)));const _0x53794d=null===_0x2a5dff[_0x2b58('0x7')]?null:_0x2a5dff[_0x2b58('0x7')]||this[_0x2b58('0xb')][_0x2b58('0xb2')]['get'](_0x2b58('0x7c'))['me']['id'],_0x59a8db=this['_touchedRoots']['get'](_0x2a5dff[_0x2b58('0xb4')]);_0x59a8db&&_0x59a8db[_0x2b58('0xbc')]===_0x53794d?this[_0x2b58('0x42')][_0x2b58('0x6a')](_0x2a5dff[_0x2b58('0xb4')]):this[_0x2b58('0x42')][_0x2b58('0x10d')](_0x2a5dff[_0x2b58('0xb4')],{'userId':_0x53794d,'isAttached':_0x2a5dff[_0x2b58('0xf2')]});}[_0x2b58('0x3')](_0x4a717f){const _0x10b422=this[_0x2b58('0x8b')][_0x2b58('0xef')](_0x4a717f[_0x2b58('0xf1')][_0x2b58('0xb4')]);null===_0x4a717f['newValue']?delete _0x10b422[_0x4a717f[_0x2b58('0x21')]]:_0x10b422[_0x4a717f[_0x2b58('0x21')]]=_0x4a717f[_0x2b58('0xa0')];}}function J(_0x2bb0bf){const _0x4dd5f5=H(_0x2bb0bf[_0x2b58('0xb4')],_0x2bb0bf['isAttached']());for(const _0x1840d2 of _0x2bb0bf[_0x2b58('0xe8')]()){const _0x56bceb=_0x1840d2[_0x2b58('0x73')](!0x0);_0x4dd5f5[_0x2b58('0x109')](_0x56bceb);}return _0x4dd5f5;}function H(_0x204a8d,_0x3e8f8e=!0x0){const _0x4ec203=new _0x19c177();return _0x4ec203['rootName']=_0x204a8d,_0x4ec203[_0x2b58('0x72')]=_0x3e8f8e,_0x4ec203[_0x2b58('0xbe')]=()=>_0x4ec203[_0x2b58('0x72')],_0x4ec203;}function q(_0x382f1f,_0x11cc1a,_0x45ba9e){const _0x343288=_0x2b58('0x26')==_0x382f1f['type']?_0x45ba9e[_0x2b58('0x2')](_0x382f1f['item'],_0x2b58('0x5')):_0x45ba9e[_0x2b58('0x2b')](_0x382f1f[_0x2b58('0x64')]);return _0x45ba9e[_0x2b58('0x99')](_0x11cc1a,_0x343288[_0x2b58('0x12')],_0x343288[_0x2b58('0x36')]);}function G(_0x270416,_0x219baf,_0x4df70a){const _0x1120f3=_0x2b58('0x29')==_0x270416[_0x2b58('0xc5')]?_0x4df70a[_0x2b58('0x2')](_0x270416[_0x2b58('0x64')],0x0):_0x4df70a[_0x2b58('0xc7')](_0x270416[_0x2b58('0x64')]);return _0x4df70a['createPositionFromPath'](_0x219baf,_0x1120f3[_0x2b58('0x12')],_0x1120f3['stickiness']);}
|
|
23
|
+
const _0x57bf=['_baseRootsAttributes','getRange','config','getRevision','getChildren','_authorId','editor','from','root','_isInit','editing','editor-initial-data-replaced-with-revision-data','stickiness','offsetSize','_getFromVersion','targetPosition','getNodeByPath','_revisionId','_touchedRoots','type','getUser','PENDING_ACTION_REVISION_HISTORY','default','initialData','map','_setConversion','elementEnd','_markChanges','delete','addRevision','roots','getRoot','resolve','Empty\x20document','_insertChild','rootName','getData','get','reverse','_lastTo','_source','pluginName','add','_markers','position','previousPosition','_addPendingAction','createPositionAfter','insertionPosition','graveyardPosition','forEach','parse','getLatestVersion','insertions','requires','_lastFrom','_generateTape','children','clone','buildRevisionData','_baseRoots','newRange','_isAttached','attributes','NEGATIVE_INFINITY','_handleOperation','_fixOperation','_createFromRanges','_bufferedUpdates','_handleRootAttributeOperation','sendBufferedUpdates','_removePendingAction','PendingActions','_update','authorsIds','collaboration.channelId','$graveyard','_loadedStateData','_saveMetaData','_handleSplitOperation','_removeMetaData','repository','initial','length','changeRootAttribute','name','_getPreviousFrom','_prepareViewToSave','_pendingAction','_copyMarkers','createPositionBefore','set','_applyOperations','_calculateMetaData','processor','reinsert','_handleRootOperation','_operations','_touched','_createInitialRevision','version','updateRevisions','_createCurrentRevision','attachChange','_startingVersion','currentRevision','filter','start','for','adapter','_setAttribute','Initial\x20revision','path','_continueCurrentRevision','includes','markers','end','howMany','_handleInsertOperation','_makeRevision','_initialRoots','toModel','model','Users','parent','_replaceEditorDataWithRevisionData','getAttribute','rootsAttributes','revision','_getViewJson','_revisionDataBuilder','_initialRevisionId','paragraph','item','getRevisionDocumentData','getIndex','fromEntries','_removeRevisionMarkers','data','userId','setRevisionData','conversion','offset','_getBaseVids','_transformMarkers','affectsData','history','values','$text','tableCell','_findInsertionIndex','isAttached','_processRootBeforeSave','revision-start','locale','_getState','clear','stringify','source','getRevisionRootsAttributes','baseVersion','_isPendingUpdate','getRootNames','loadState','RevisionTracker','_handleMarkerOperation','createPositionFromPath','oldRange','sort','createRange','diffData','revision:','addRootAttribute','_idsRoots','fromVersion','createRangeIn','getAncestors','getWalker','key','insertion','createdAt','_bufferUpdate','_startingRevisionId','view','find','_savedMetaData','addRevisionData','getCurrentRevisionId','upcast','_makeModelFromViewString','trim','string','split','document','data-revision-','_loadRevisionData','elementStart','_execute','getRevisions','deletions','_touchedMarkers','then','push','vid_end','_fixRange','_handleMoveOperation','marked','getChild','move','isEqual','_loadState','range','authors','_diffRoots','createRevision','merge','setSource','insert','nodes','text','creator','vid','isReady','toVersion','_handleMergeOperation','ready','update','getOperations','afterInit','_reset','_baseIdsRoots','slice','keys','creatorId','attributesBefore','startsWith','marker','_clone','remove','_diffRootsAttributes','nodeAfter','useFillerType','getAttributes','getOperation','toView','isAdd','vid_start','bind','element','plugins','attributesAfter','_cloneOperation','has','_getVidAttributeName','detachRoot','revisionHistory.resumeUnsavedRevision','RealTimeCollaborationClient','init','_makeIdsRoot','_fixPosition','newValue','reInit','splitPosition','createPositionAt','_appendChild'];(function(_0x3b8b9d,_0x57bf2c){const _0x230874=function(_0x4178e3){while(--_0x4178e3){_0x3b8b9d['push'](_0x3b8b9d['shift']());}};_0x230874(++_0x57bf2c);}(_0x57bf,0x15e));const _0x2308=function(_0x3b8b9d,_0x57bf2c){_0x3b8b9d=_0x3b8b9d-0x0;let _0x230874=_0x57bf[_0x3b8b9d];return _0x230874;};import{Users as _0x533a9d}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x20c2c1,PendingActions as _0x3be620}from'ckeditor5/src/core';import{logWarning as _0x3614d8,uid as _0x284e1f}from'ckeditor5/src/utils';import{Position as _0x1999a2,Range as _0x46db3d,Element as _0x4f47c4,DocumentFragment as _0x507c98,ViewText as _0x261b87,ViewElement as _0x268e23,ViewContainerElement as _0x1b5a80,ViewAttributeElement as _0x19a53e,ViewEmptyElement as _0x169e51,ViewRawElement as _0x4cf5ec,ViewUIElement as _0x8446b5,ViewDocumentFragment as _0x4b7aff}from'ckeditor5/src/engine';import _0x1df075 from'./revisionsrepository';import{getTranslation as _0x4395e6}from'./utils/common-translations';import{cloneDeep as _0x3b2ef1,isEqual as _0xf62e5a}from'lodash-es';const F={'c':_0x1b5a80,'a':_0x19a53e,'e':_0x169e51,'r':_0x4cf5ec,'u':_0x8446b5};export default class u extends _0x20c2c1{static get[_0x2308('0xdd')](){return _0x2308('0x4f');}static get[_0x2308('0xea')](){return[_0x533a9d,_0x1df075,_0x3be620];}constructor(_0x48590d){super(_0x48590d),this[_0x2308('0x18')]=null,this[_0x2308('0x14')]=null,this[_0x2308('0x2d')]=new B(this['editor']),this[_0x2308('0x2e')]=this[_0x2308('0xba')][_0x2308('0xb6')][_0x2308('0xd9')](_0x2308('0xff'))||_0x2308('0x106'),this[_0x2308('0xf8')]=new Map(),this['_loadedStateData']=null;const _0x25eb7c=_0x284e1f();this['_source']={'history':this[_0x2308('0xba')]['model'][_0x2308('0x6c')][_0x2308('0x3d')],'getLatestVersion':()=>Promise[_0x2308('0xd4')](this[_0x2308('0xba')][_0x2308('0x25')][_0x2308('0x6c')][_0x2308('0xf')]),'getCurrentRevisionId':()=>_0x25eb7c},this[_0x2308('0x6')](_0x2308('0x89'),!0x1),this['set']('isEnabled',!0x0),this[_0x2308('0x6')](_0x2308('0x4c'),!0x1),this[_0x2308('0xba')][_0x2308('0xb6')]['define'](_0x2308('0xaa'),!0x0),this[_0x2308('0xba')][_0x2308('0x38')][_0x2308('0x17')](_0x2308('0x67'))['dataToMarker']({'view':_0x2308('0x2b')});}[_0x2308('0xac')](){this[_0x2308('0x105')]=this['editor'][_0x2308('0xa4')][_0x2308('0xd9')]('RevisionsRepository'),this[_0x2308('0xcd')](),this['editor'][_0x2308('0x35')]['on'](_0x2308('0x8c'),()=>{const _0x2dc7d6=this[_0x2308('0x105')][_0x2308('0xb7')](0x0),_0x283be8=_0x2dc7d6&&null===_0x2dc7d6[_0x2308('0x87')]?_0x2dc7d6:null;if(this[_0x2308('0x1c')]=!!_0x283be8&&this[_0x2308('0xba')][_0x2308('0xb6')][_0x2308('0xd9')](_0x2308('0xaa')),this[_0x2308('0xba')][_0x2308('0xa4')][_0x2308('0xa7')](_0x2308('0xab'))){const _0xcc88c9=this[_0x2308('0xdc')][_0x2308('0x66')](),_0x4643ad=this[_0x2308('0x105')][_0x2308('0xb7')](_0xcc88c9);if(_0x4643ad)this['_startingVersion']=_0x4643ad[_0x2308('0x59')],this['_continueCurrentRevision']=!0x1;else{const _0x5e287e=this[_0x2308('0xdc')][_0x2308('0x3d')][_0x2308('0xc')][_0x2308('0x63')](_0x22992c=>!_0x22992c[_0x2308('0xbd')]),_0x3fb6f9=_0x5e287e?_0x5e287e[_0x2308('0x4b')]:this[_0x2308('0xdc')][_0x2308('0x3d')]['version'];_0x2dc7d6?(_0x2dc7d6[_0x2308('0x8a')]<_0x3fb6f9&&_0x2dc7d6[_0x2308('0xfd')]({'toVersion':_0x3fb6f9}),this[_0x2308('0x1c')]?(this['_source'][_0x2308('0x66')]=()=>_0x283be8['id'],this[_0x2308('0x13')]=_0x283be8[_0x2308('0x59')]):(this[_0x2308('0x13')]=_0x2dc7d6[_0x2308('0x8a')],this[_0x2308('0x1c')]=!0x1)):(this[_0x2308('0x13')]=_0x3fb6f9,this[_0x2308('0x1c')]=!0x1);}}else _0x283be8&&(this[_0x2308('0xba')]['model'][_0x2308('0x6c')][_0x2308('0x3d')][_0x2308('0xf')]=Math['max'](_0x283be8['toVersion'],this[_0x2308('0xba')][_0x2308('0x25')][_0x2308('0x6c')]['history'][_0x2308('0xf')]),_0x283be8[_0x2308('0x59')]===_0x283be8[_0x2308('0x8a')]?(0x0!==_0x283be8[_0x2308('0x59')]&&(this[_0x2308('0xdc')][_0x2308('0x66')]=()=>_0x283be8['id']),this[_0x2308('0x1c')]=!0x1):this['_continueCurrentRevision']&&(this[_0x2308('0xdc')][_0x2308('0x66')]=()=>_0x283be8['id'],this[_0x2308('0x13')]=_0x283be8[_0x2308('0x59')])),this[_0x2308('0x1c')]||(this[_0x2308('0x13')]=this[_0x2308('0xba')][_0x2308('0x25')][_0x2308('0x6c')][_0x2308('0xf')]);this[_0x2308('0x2d')][_0x2308('0xac')](this[_0x2308('0xdc')][_0x2308('0x3d')]),this[_0x2308('0xe')](this[_0x2308('0x13')]),this['_createCurrentRevision'](this['_startingVersion']),this[_0x2308('0x18')]&&this['sendBufferedUpdates']();}),this[_0x2308('0xa2')]('isReady')['to'](this,_0x2308('0x4c'),_0x4a6641=>!_0x4a6641);}async[_0x2308('0x8f')](){if(this['repository']['length']>0x0){const _0x59a0fc=this[_0x2308('0x105')]['getRevision'](0x0),_0x526aa8=await this[_0x2308('0x31')](_0x59a0fc),_0x19ecb8=await this[_0x2308('0x4a')](_0x59a0fc);this['_replaceEditorDataWithRevisionData'](_0x526aa8,_0x19ecb8);}}[_0x2308('0x83')](_0x4be6c9){this[_0x2308('0xdc')]=_0x4be6c9;}async[_0x2308('0x8d')](){const _0x31d867=await this[_0x2308('0xdc')][_0x2308('0xe8')]();if(_0x31d867>this['currentRevision'][_0x2308('0x8a')]){await this[_0x2308('0x7d')]();const _0x306fad=this[_0x2308('0xef')]({'revision':this[_0x2308('0x14')],'to':_0x31d867});_0x306fad[_0x2308('0x7f')]=_0x306fad[_0x2308('0xfe')][_0x2308('0xcc')](_0x4a7cb2=>this[_0x2308('0xba')]['plugins'][_0x2308('0xd9')](_0x2308('0x26'))[_0x2308('0xc8')](_0x4a7cb2)),this[_0x2308('0x14')]['_update'](_0x306fad);}}async['_loadState'](){this[_0x2308('0x1c')]&&!this[_0x2308('0x101')]&&(await this[_0x2308('0x6e')](this[_0x2308('0x14')]),this[_0x2308('0x2d')][_0x2308('0x4e')](this[_0x2308('0x14')]),this[_0x2308('0x101')]={'fromVersion':this[_0x2308('0x14')][_0x2308('0x59')],'authors':this['currentRevision'][_0x2308('0x7f')]['slice']()});}async['saveRevision'](_0x1d113b={},_0x2c517d=null){const _0x22f9e4=[];await this[_0x2308('0x7d')](),this[_0x2308('0x1c')]=!0x1,_0x2c517d>this['currentRevision']['toVersion']&&(_0x2c517d=null),null===_0x2c517d&&(_0x2c517d=await this[_0x2308('0xdc')][_0x2308('0xe8')]());const _0x433c52=this[_0x2308('0xc2')](_0x2c517d),_0x554c6d=this[_0x2308('0xef')]({'from':_0x433c52,'to':_0x2c517d});if(this['currentRevision']['toVersion']<_0x2c517d){const _0x31c5ed=this['buildRevisionData']({'revision':this[_0x2308('0x14')],'from':_0x2c517d,'to':_0x2c517d});_0x31c5ed['authors']=[],_0x31c5ed[_0x2308('0xfe')]=[],_0x31c5ed['id']=this[_0x2308('0x14')]['id'],this[_0x2308('0x14')][_0x2308('0xfd')](_0x31c5ed,!0x0),delete _0x31c5ed[_0x2308('0x7f')],_0x22f9e4[_0x2308('0x75')](_0x31c5ed);}_0x1d113b[_0x2308('0x94')]=this[_0x2308('0xba')]['plugins'][_0x2308('0xd9')]('Users')['me']['id'],_0x1d113b[_0x2308('0x0')]=_0x1d113b[_0x2308('0x0')]||null,_0x1d113b['id']=_0x1d113b['id']||_0x284e1f(),_0x1d113b={..._0x1d113b,..._0x554c6d};const _0x951fe7=this['addRevisionData'](_0x1d113b);_0x22f9e4[_0x2308('0x75')](_0x1d113b);const _0x49bd5d=this[_0x2308('0x105')][_0x2308('0x32')](_0x951fe7);if(0x0!==_0x49bd5d){const _0x5b60b6=this['repository'][_0x2308('0xb7')](_0x49bd5d-0x1);if(_0x5b60b6[_0x2308('0x59')]!==_0x2c517d){const _0x142920=this[_0x2308('0x2d')][_0x2308('0xd8')](_0x2c517d,_0x5b60b6[_0x2308('0x8a')]),_0x1b2047={'id':_0x5b60b6['id'],'diffData':_0x142920[_0x2308('0x55')],'authorsIds':_0x142920[_0x2308('0xfe')],'authors':_0x142920[_0x2308('0xfe')]['map'](_0x3b31d8=>this[_0x2308('0xba')][_0x2308('0xa4')][_0x2308('0xd9')]('Users')[_0x2308('0xc8')](_0x3b31d8)),'fromVersion':_0x2c517d};_0x5b60b6===this['currentRevision']&&(_0x1b2047[_0x2308('0x5f')]=new Date(_0x1d113b[_0x2308('0x5f')]['getTime']()+0xa)),_0x5b60b6[_0x2308('0xfd')](_0x1b2047,!0x0),delete _0x1b2047[_0x2308('0x7f')],_0x22f9e4[_0x2308('0x75')](_0x1b2047);}}if(this[_0x2308('0x18')]){for(const _0x4ef223 of _0x22f9e4)this[_0x2308('0x60')](_0x4ef223['id'],_0x4ef223,!0x0);this[_0x2308('0xfa')]();}return _0x951fe7;}[_0x2308('0x65')](_0x448d03){const _0x4ed90f=this[_0x2308('0x105')][_0x2308('0x81')](_0x448d03);return this[_0x2308('0x18')]&&_0x4ed90f['on'](_0x2308('0xfd'),(_0x2dcbdc,_0x446129,_0x3e49ba)=>{_0x3e49ba||(this[_0x2308('0x60')](_0x446129['id'],_0x446129,!0x0),this[_0x2308('0xfa')]());}),this['repository'][_0x2308('0xd1')](_0x4ed90f,this[_0x2308('0x41')](_0x4ed90f)),_0x4ed90f;}async[_0x2308('0x31')](_0x3155c5){await this[_0x2308('0x6e')](_0x3155c5);const _0x4322b8={};for(const _0xcb476a in _0x3155c5[_0x2308('0x55')]){if(_0x3155c5[_0x2308('0x55')][_0xcb476a]['attachChange']&&!_0x3155c5[_0x2308('0x55')][_0xcb476a][_0x2308('0x12')][_0x2308('0x42')])continue;const _0x20b8f1=this[_0x2308('0x34')](JSON[_0x2308('0xe7')](_0x3155c5[_0x2308('0x55')][_0xcb476a][_0x2308('0xe9')])),_0x50f929=this['editor'][_0x2308('0xbe')][_0x2308('0x62')][_0x2308('0x6c')],_0x57f1da=new _0x4b7aff(_0x50f929,_0x20b8f1['map'](_0x91aa7=>T(_0x91aa7,this[_0x2308('0xba')])));this[_0x2308('0xba')]['data'][_0x2308('0x9')][_0x2308('0x9c')](_0x2308('0x79')),_0x4322b8[_0xcb476a]=this['editor']['data'][_0x2308('0x9')]['toData'](_0x57f1da),this[_0x2308('0xba')][_0x2308('0x35')][_0x2308('0x9')][_0x2308('0x9c')](_0x2308('0xca'));}return _0x4322b8;}async['getRevisionRootsAttributes'](_0x271035){await this[_0x2308('0x6e')](_0x271035);const _0xfb6f2e={};for(const _0x4182bd in _0x271035['diffData'])_0x271035[_0x2308('0x55')][_0x4182bd][_0x2308('0x12')]&&!_0x271035[_0x2308('0x55')][_0x4182bd]['attachChange'][_0x2308('0x42')]||(_0xfb6f2e[_0x4182bd]=_0x271035[_0x2308('0x55')][_0x4182bd][_0x2308('0xa5')]||{});return _0xfb6f2e;}['sendBufferedUpdates'](){if(0x0===this[_0x2308('0xf8')]['size'])return;if(this[_0x2308('0x4c')])return;let _0x39fe06=Array['from'](this[_0x2308('0xf8')][_0x2308('0x3e')]());this[_0x2308('0xf8')][_0x2308('0x47')]();for(let _0x52f276=0x0;_0x52f276<_0x39fe06[_0x2308('0x107')];_0x52f276++){const _0x33324d=_0x39fe06[_0x52f276];let _0x7b4ed7=!0x1;for(const _0x191ac8 of Object[_0x2308('0x93')](_0x33324d))void 0x0===_0x33324d[_0x191ac8]?delete _0x33324d[_0x191ac8]:'id'!==_0x191ac8&&(_0x7b4ed7=!0x0);_0x7b4ed7||(_0x39fe06[_0x52f276]=null);}if(_0x39fe06=_0x39fe06[_0x2308('0x15')](_0x253086=>null!==_0x253086),!_0x39fe06[_0x2308('0x107')])return;for(let _0x675a47=0x0;_0x675a47<_0x39fe06['length'];_0x675a47++){const _0x549178=_0x39fe06[_0x675a47];void 0x0!==_0x549178[_0x2308('0x59')]&&void 0x0===_0x549178[_0x2308('0x8a')]&&(_0x549178['toVersion']=this[_0x2308('0x105')][_0x2308('0xb7')](_0x549178['id'])[_0x2308('0x8a')]),void 0x0!==_0x549178[_0x2308('0x8a')]&&void 0x0===_0x549178[_0x2308('0x59')]&&(_0x549178['fromVersion']=this['repository'][_0x2308('0xb7')](_0x549178['id'])[_0x2308('0x59')]);}const _0x3fd789=this['editor'][_0x2308('0xb6')][_0x2308('0xd9')]('collaboration.channelId');this[_0x2308('0x4c')]=!0x0,this[_0x2308('0xe2')](),this[_0x2308('0x18')][_0x2308('0x10')](_0x39fe06,_0x3fd789)['finally'](()=>{this[_0x2308('0x4c')]=!0x1;})[_0x2308('0x74')](_0x526db1=>{if(_0x526db1)for(const _0x1edd36 of _0x526db1)this[_0x2308('0x37')]({'id':_0x1edd36['id'],'createdAt':_0x1edd36[_0x2308('0x5f')]});this[_0x2308('0xfb')](),this['sendBufferedUpdates']();});}[_0x2308('0x28')](_0xa668a9,_0x5a5534){let _0xc9b6eb=this[_0x2308('0xba')][_0x2308('0xb6')]['get']('initialData'),_0x2db63e=this['editor'][_0x2308('0xb6')][_0x2308('0xd9')](_0x2308('0x2a'));if(void 0x0===_0xc9b6eb){_0xc9b6eb={};for(const _0xb75653 of this['editor']['model'][_0x2308('0x6c')][_0x2308('0x4d')]())_0xc9b6eb[_0xb75653]='';}if(_0x2308('0x6a')==typeof _0xc9b6eb&&(_0xc9b6eb={'main':_0xc9b6eb}),void 0x0===_0x2db63e){_0x2db63e={};for(const _0x54896b of this[_0x2308('0xba')][_0x2308('0x25')][_0x2308('0x6c')][_0x2308('0x4d')]())_0x2db63e[_0x54896b]={};}let _0x3d93aa=!0x1;const _0x50b3e1=Object[_0x2308('0x93')](_0xc9b6eb),_0x51c179=Object['keys'](_0xa668a9);for(const _0x5df055 of _0x50b3e1){if(_0xc9b6eb[_0x5df055]!==_0xa668a9[_0x5df055]&&''!==_0xc9b6eb[_0x5df055][_0x2308('0x69')]()){_0x3d93aa=!0x0;break;}if(!_0xf62e5a(_0x2db63e[_0x5df055],_0x5a5534[_0x5df055])&&Object[_0x2308('0x93')](_0x2db63e[_0x5df055])['length']>0x0){_0x3d93aa=!0x0;break;}}_0x3d93aa||(_0x3d93aa=_0x51c179['some'](_0xb210e3=>!_0x50b3e1[_0x2308('0x1d')](_0xb210e3))),_0x3d93aa&&_0x3614d8(_0x2308('0xbf'),{'editorData':_0xc9b6eb,'editorRootsAttributes':_0x2db63e,'revisionData':_0xa668a9,'revisionRootsAttributes':_0x5a5534}),this[_0x2308('0xba')][_0x2308('0xb6')][_0x2308('0x6')](_0x2308('0xcb'),_0xa668a9),this[_0x2308('0xba')][_0x2308('0xb6')][_0x2308('0x6')](_0x2308('0x2a'),_0x5a5534);}['_addPendingAction'](){if(!this[_0x2308('0x3')]){const _0x5446c3=this[_0x2308('0xba')][_0x2308('0xa4')][_0x2308('0xd9')](_0x2308('0xfc'));this['_pendingAction']=_0x5446c3[_0x2308('0xde')](_0x4395e6(this[_0x2308('0xba')][_0x2308('0x45')],_0x2308('0xc9')));}}[_0x2308('0xfb')](){this[_0x2308('0x3')]&&(this['editor'][_0x2308('0xa4')][_0x2308('0xd9')](_0x2308('0xfc'))[_0x2308('0x99')](this[_0x2308('0x3')]),this[_0x2308('0x3')]=null);}['_findInsertionIndex'](_0x3503b4){const _0x53e0b1=this[_0x2308('0x105')][_0x2308('0x71')]();_0x53e0b1[_0x2308('0xda')]();let _0x1b24da=0x0;for(;_0x1b24da<_0x53e0b1[_0x2308('0x107')];){const _0x3e73df=_0x53e0b1[_0x1b24da];if(_0x3e73df===this[_0x2308('0x14')]){_0x1b24da++;continue;}if(_0x3e73df['id']===this[_0x2308('0x2e')])break;const _0x1217b1=_0x3503b4[_0x2308('0x8a')]-_0x3e73df[_0x2308('0x8a')]||_0x3503b4[_0x2308('0x59')]-_0x3e73df[_0x2308('0x59')];if(_0x1217b1>0x0)break;if(_0x1217b1<0x0)_0x1b24da++;else{if(!_0x3503b4[_0x2308('0x87')]&&_0x3e73df[_0x2308('0x87')])break;if(_0x3e73df[_0x2308('0x87')]||!_0x3503b4['creator']){if(_0x3503b4[_0x2308('0x5f')]>_0x3e73df['createdAt'])break;_0x1b24da++;}else _0x1b24da++;}}return _0x1b24da;}[_0x2308('0x37')](_0x3cc0a5){const _0x110d30=this[_0x2308('0x105')][_0x2308('0xb7')](_0x3cc0a5['id']);if(_0x3cc0a5[_0x2308('0x5f')]&&(_0x3cc0a5[_0x2308('0x5f')]=new Date(_0x3cc0a5['createdAt'])),_0x3cc0a5[_0x2308('0xfe')]){const _0x15907c=this['editor'][_0x2308('0xa4')][_0x2308('0xd9')](_0x2308('0x26'));_0x3cc0a5['authors']=_0x3cc0a5['authorsIds'][_0x2308('0xcc')](_0x11d91a=>_0x15907c[_0x2308('0xc8')](_0x11d91a));}_0x110d30[_0x2308('0xfd')](_0x3cc0a5,!0x0);}[_0x2308('0xef')]({revision:_0x8eb474=null,from:_0x2ab6b1=null,to:_0xbcbca3=null}){_0x2ab6b1=null!==_0x2ab6b1?_0x2ab6b1:_0x8eb474['fromVersion'],_0xbcbca3=null!==_0xbcbca3?_0xbcbca3:_0x8eb474['toVersion'];const _0x4771ec=this[_0x2308('0x2d')]['getData'](_0x2ab6b1,_0xbcbca3),_0x1c23cc={'diffData':_0x4771ec[_0x2308('0x55')],'authorsIds':_0x4771ec[_0x2308('0xfe')],'fromVersion':_0x2ab6b1,'toVersion':_0xbcbca3};if(!_0x8eb474||_0xbcbca3!==_0x8eb474[_0x2308('0x8a')]){const _0x22d46e=_0xbcbca3-0x1,_0x518fba=this['_source'][_0x2308('0x3d')][_0x2308('0x9e')](_0x22d46e);_0x1c23cc[_0x2308('0x5f')]=_0x518fba&&_0x518fba[_0x2308('0x5f')]||new Date();}if(this[_0x2308('0x101')]&&_0x2ab6b1===this[_0x2308('0x101')][_0x2308('0x59')])for(const _0x239eeb of this['_loadedStateData']['authors'])_0x1c23cc['authorsIds'][_0x2308('0x1d')](_0x239eeb['id'])||_0x1c23cc[_0x2308('0xfe')][_0x2308('0x75')](_0x239eeb['id']);return _0x1c23cc;}[_0x2308('0x6e')](_0x2e67d5){if(!_0x2e67d5||_0x2e67d5[_0x2308('0x55')])return Promise[_0x2308('0xd4')]();{const _0x54e03b=this[_0x2308('0xba')][_0x2308('0xb6')][_0x2308('0xd9')](_0x2308('0xff'));return this['adapter'][_0x2308('0xb7')]({'channelId':_0x54e03b,'revisionId':_0x2e67d5['id']})[_0x2308('0x74')](_0xb8e0f9=>{_0x2e67d5[_0x2308('0x55')]=_0xb8e0f9['diffData'];});}}[_0x2308('0x60')](_0x3b738c,_0xbf6374,_0x1cb9c6){if(this[_0x2308('0xf8')][_0x2308('0xa7')](_0x3b738c)){const _0x55417e=this[_0x2308('0xf8')]['get'](_0x3b738c);_0xbf6374=_0x1cb9c6?{..._0x55417e,..._0xbf6374}:{..._0xbf6374,..._0x55417e};}this[_0x2308('0xf8')][_0x2308('0x6')](_0x3b738c,_0xbf6374);}[_0x2308('0xc2')](_0x476c86){const _0x278dc1=this[_0x2308('0x105')]['getRevisions']();_0x278dc1[_0x2308('0xda')](),_0x278dc1['shift']();const _0x394712=_0x278dc1[_0x2308('0x63')](_0x2f2948=>_0x2f2948[_0x2308('0x8a')]<=_0x476c86)[_0x2308('0x8a')];return _0x394712<this['_startingVersion']?this[_0x2308('0x13')]:_0x394712;}['_createInitialRevision'](_0x215938){const _0x540bdf=this[_0x2308('0x105')][_0x2308('0xb7')](this[_0x2308('0x105')][_0x2308('0x107')]-0x1);if(_0x540bdf)this[_0x2308('0x2e')]=_0x540bdf['id'];else{const _0x1f7dce=!this['editor'][_0x2308('0x25')][_0x2308('0x6c')][_0x2308('0xd2')][_0x2308('0x63')](_0xe03548=>this['editor'][_0x2308('0x25')]['hasContent'](_0xe03548)),_0x21e7cc=this[_0x2308('0xba')][_0x2308('0xa4')][_0x2308('0xd9')]('Users')['me']['id'],_0x1dca32=_0x4395e6(this[_0x2308('0xba')][_0x2308('0x45')],_0x1f7dce?_0x2308('0xd5'):_0x2308('0x1a'));this[_0x2308('0x22')]({'from':_0x215938,'to':_0x215938,'id':this[_0x2308('0x2e')],'name':_0x1dca32,'creatorId':_0x21e7cc});}}[_0x2308('0x11')](_0x37a03b){const _0x22ba0b=this[_0x2308('0xdc')][_0x2308('0x66')]();this[_0x2308('0x14')]=this['repository'][_0x2308('0xb7')](_0x22ba0b),this[_0x2308('0x14')]||(this['currentRevision']=this[_0x2308('0x22')]({'from':_0x37a03b,'to':_0x37a03b,'id':_0x22ba0b,'name':'','creatorId':null}));}['_makeRevision']({name:_0x2c1d98,from:_0x255a2d,to:_0x333706,creatorId:_0x3f3ef4,id:_0x37e088}){const _0x12eb60=this[_0x2308('0xef')]({'from':_0x255a2d,'to':_0x333706});_0x12eb60[_0x2308('0x0')]=_0x2c1d98,_0x12eb60['creatorId']=_0x3f3ef4,_0x12eb60['id']=_0x37e088;const _0x563cbd=this[_0x2308('0x65')](_0x12eb60);return this[_0x2308('0x18')]&&this[_0x2308('0x60')](_0x12eb60['id'],_0x12eb60,!0x0),_0x563cbd;}[_0x2308('0xcd')](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':_0x2308('0x2b')});}[_0x2308('0x34')](_0x3d5ddb){return(_0x3d5ddb=_0x3d5ddb['filter'](_0x43c963=>!_0x43c963['name']||_0x2308('0x44')!==_0x43c963[_0x2308('0x0')]&&'revision-end'!==_0x43c963[_0x2308('0x0')]))[_0x2308('0xe6')](_0x1589f1=>{'string'!=typeof _0x1589f1&&(_0x1589f1['children']=this[_0x2308('0x34')](_0x1589f1[_0x2308('0xed')]),_0x1589f1[_0x2308('0xf3')]=_0x1589f1[_0x2308('0xf3')][_0x2308('0x15')](_0x394dc9=>!_0x394dc9[0x0]['startsWith'](_0x2308('0x6d'))));}),_0x3d5ddb;}}function T(_0x4d602f,_0x2d3e3e){const _0x566325=_0x2d3e3e[_0x2308('0xbe')]['view'][_0x2308('0x6c')];if('string'==typeof _0x4d602f)return new _0x261b87(_0x566325,_0x4d602f);{const _0x3e8416=_0x4d602f[_0x2308('0xed')][_0x2308('0xcc')](_0xcbdbd6=>T(_0xcbdbd6,_0x2d3e3e));return new(F[_0x4d602f['type']]||_0x268e23)(_0x566325,_0x4d602f[_0x2308('0x0')],_0x4d602f[_0x2308('0xf3')],_0x3e8416);}}class B{constructor(_0x5e0edf){this[_0x2308('0xba')]=_0x5e0edf,this[_0x2308('0x64')]=new Map(),this[_0x2308('0xeb')]=-0x1,this[_0x2308('0xdb')]=-0x1,this[_0x2308('0xdf')]=new Map(),this['_diffRoots']=new Map(),this[_0x2308('0x9a')]=new Map(),this['_baseRoots']=new Map(),this[_0x2308('0xb4')]=new Map(),this['_idsRoots']=new Map(),this[_0x2308('0x91')]=new Map(),this[_0x2308('0xd')]=new Map(),this[_0x2308('0x73')]=new Map(),this[_0x2308('0xc6')]=new Map(),this['_revisionId']=0x1,this[_0x2308('0x23')]=this['editor'][_0x2308('0x25')][_0x2308('0x6c')][_0x2308('0x4d')](),this[_0x2308('0x23')][_0x2308('0x75')]('$graveyard');}[_0x2308('0xac')](_0x24a000){this[_0x2308('0x49')]=_0x24a000;const _0x171051=new Map(),_0x15fe6e=new Map(),_0x16b0a4=this['editor'][_0x2308('0x25')]['document'][_0x2308('0x4d')](!0x0);_0x16b0a4[_0x2308('0x75')](_0x2308('0x100'));for(const _0x3d35cb of _0x16b0a4){const _0x56fae7=this[_0x2308('0xba')]['model'][_0x2308('0x6c')][_0x2308('0xd3')](_0x3d35cb),_0x123975=J(_0x56fae7);_0x171051['set'](_0x3d35cb,_0x123975),_0x15fe6e[_0x2308('0x6')](_0x3d35cb,Object[_0x2308('0x33')](_0x56fae7[_0x2308('0x9d')]()));}const _0x1f13f3=Array[_0x2308('0xbb')](this[_0x2308('0xba')][_0x2308('0x25')][_0x2308('0x1e')])[_0x2308('0xcc')](_0x24ab93=>[_0x24ab93[_0x2308('0x0')],_0x24ab93[_0x2308('0xb5')]()]),_0x38dba4=this[_0x2308('0x49')][_0x2308('0xf')];this[_0x2308('0x102')](_0x38dba4,_0x171051,_0x1f13f3,_0x15fe6e),this[_0x2308('0x61')]=this[_0x2308('0xc5')];const _0x35342f=new Map(),_0xadeec1=new Map();for(const _0x3a01d1 of this[_0x2308('0x23')]){const _0x4908eb=H(_0x3a01d1);_0x35342f[_0x2308('0x6')](_0x3a01d1,_0x4908eb),_0xadeec1['set'](_0x3a01d1,{});}this[_0x2308('0x102')](Number[_0x2308('0xf4')],_0x35342f,[],_0xadeec1);}[_0x2308('0xd8')](_0x2ba29e,_0x4d7446){if(this[_0x2308('0xeb')]===_0x2ba29e&&this[_0x2308('0xdb')]<=_0x4d7446)this[_0x2308('0x64')]['size']>0x1&&this[_0x2308('0x104')](this[_0x2308('0xdb')]),this[_0x2308('0x7')](this[_0x2308('0xdb')],_0x4d7446,!0x0);else{if(!this[_0x2308('0x64')][_0x2308('0xa7')](_0x2ba29e)){const _0x3e570a=this[_0x2308('0x1')](_0x2ba29e);this['_calculateMetaData'](_0x3e570a,_0x2ba29e,!0x1);}this[_0x2308('0x8')](_0x2ba29e,_0x4d7446,!0x0);}return this[_0x2308('0xeb')]=_0x2ba29e,this[_0x2308('0xdb')]=_0x4d7446,this[_0x2308('0x46')]();}[_0x2308('0x4e')](_0x3ae8d3){this['_reset'](),this[_0x2308('0xeb')]=_0x3ae8d3[_0x2308('0x59')],this[_0x2308('0xdb')]=_0x3ae8d3[_0x2308('0x8a')];for(const _0xd72f1e in _0x3ae8d3[_0x2308('0x55')]){const _0xb90d4d=_0x3ae8d3[_0x2308('0x55')][_0xd72f1e]['attachChange'],_0x316358=_0x3b2ef1(_0x3ae8d3[_0x2308('0x55')][_0xd72f1e][_0x2308('0x95')])||{},_0x38b8f9=this[_0x2308('0x68')](_0x3ae8d3[_0x2308('0x55')][_0xd72f1e][_0x2308('0x72')]);_0x38b8f9['rootName']=_0xd72f1e,_0x38b8f9[_0x2308('0xf2')]=!_0xb90d4d||!_0xb90d4d[_0x2308('0x42')],_0x38b8f9[_0x2308('0x42')]=()=>_0x38b8f9[_0x2308('0xf2')],this[_0x2308('0xf0')][_0x2308('0x6')](_0xd72f1e,_0x38b8f9),this['_baseRootsAttributes'][_0x2308('0x6')](_0xd72f1e,_0x316358),_0xb90d4d&&this[_0x2308('0xc6')]['set'](_0xd72f1e,_0xb90d4d);const _0x1a57f0=this['_makeIdsRoot'](_0x38b8f9);this[_0x2308('0x91')][_0x2308('0x6')](_0xd72f1e,_0x1a57f0);for(const [_0x119c4b,_0x24ed3c]of _0x38b8f9['markers']){if(!_0x119c4b[_0x2308('0x96')]('revision:'))continue;const _0x4ac10d=_0x119c4b[_0x2308('0x6b')](':')[0x2];for(const _0x52ff77 of _0x24ed3c[_0x2308('0x5c')]({'singleCharacters':!0x0})){const _0x582c78=this[_0x2308('0xa8')](_0x52ff77),_0x57a464=_0x2308('0xce')==_0x52ff77['type']?_0x52ff77['previousPosition']['path'][_0x2308('0x92')](0x0,-0x1):_0x52ff77[_0x2308('0xe1')][_0x2308('0x1b')],_0x20f9c7=_0x1a57f0[_0x2308('0xc4')](_0x57a464)[_0x2308('0x29')](_0x582c78);this[_0x2308('0xd')]['set'](_0x20f9c7,{'userId':_0x4ac10d});}}}this[_0x2308('0x61')]=this[_0x2308('0xc5')];const _0x4e1261=[...Array(this[_0x2308('0xc5')])[_0x2308('0x93')]()][_0x2308('0x92')](0x1)[_0x2308('0x15')](_0x453f3e=>!this['_touched'][_0x2308('0xa7')](_0x453f3e));let _0x4b0ba5=0x0;const _0x5301b4=new Map();for(const _0x4f5e35 in _0x3ae8d3[_0x2308('0x55')]){const _0x13463d=_0x3ae8d3[_0x2308('0x55')][_0x4f5e35][_0x2308('0x12')],_0x4ef219=_0x3b2ef1(_0x3ae8d3[_0x2308('0x55')][_0x4f5e35][_0x2308('0xa5')])||{},_0x30caa9=this['_makeModelFromViewString'](_0x3ae8d3[_0x2308('0x55')][_0x4f5e35][_0x2308('0xe9')]);_0x30caa9[_0x2308('0xd7')]=_0x4f5e35,_0x30caa9[_0x2308('0xf2')]=!_0x13463d||_0x13463d[_0x2308('0x42')],_0x30caa9[_0x2308('0x42')]=()=>_0x30caa9[_0x2308('0xf2')],this[_0x2308('0x80')][_0x2308('0x6')](_0x4f5e35,_0x30caa9),this[_0x2308('0x9a')]['set'](_0x4f5e35,_0x4ef219);const _0x500c90=this['_makeIdsRoot'](_0x30caa9,Number['NEGATIVE_INFINITY']);this[_0x2308('0x58')][_0x2308('0x6')](_0x4f5e35,_0x500c90),_0x5301b4[_0x2308('0x6')](_0x4f5e35,_0x30caa9[_0x2308('0x42')]()?_0x4ef219:{});for(const [_0x509aad,_0x16ec99]of _0x30caa9['markers']){if(!_0x509aad[_0x2308('0x96')]('revision:'))continue;const _0x571212=_0x509aad[_0x2308('0x6b')](':')[0x2];for(const _0x240dc7 of _0x16ec99[_0x2308('0x5c')]({'singleCharacters':!0x0})){const _0x319770=this[_0x2308('0xa8')](_0x240dc7),_0xf0dad0=this['_revisionId']++,_0x42db7e='elementEnd'==_0x240dc7[_0x2308('0xc7')]?_0x240dc7['previousPosition'][_0x2308('0x1b')][_0x2308('0x92')](0x0,-0x1):_0x240dc7[_0x2308('0xe1')]['path'];_0x500c90['getNodeByPath'](_0x42db7e)['_setAttribute'](_0x319770,_0xf0dad0),this['_touched'][_0x2308('0x6')](_0xf0dad0,{'userId':_0x571212});}}for(const _0x2fbd7b of this[_0x2308('0xba')][_0x2308('0x25')][_0x2308('0x5a')](_0x30caa9)[_0x2308('0x5c')]({'singleCharacters':!0x0})){const _0x1ddf7e=this['_getVidAttributeName'](_0x2fbd7b),_0x2346a9=_0x2308('0xce')==_0x2fbd7b[_0x2308('0xc7')]?_0x2fbd7b['previousPosition'][_0x2308('0x1b')]['slice'](0x0,-0x1):_0x2fbd7b[_0x2308('0xe1')][_0x2308('0x1b')],_0xbf192d=_0x500c90[_0x2308('0xc4')](_0x2346a9);_0xbf192d[_0x2308('0x29')](_0x1ddf7e)>0x0||_0xbf192d['_setAttribute'](_0x1ddf7e,_0x4e1261[_0x4b0ba5++]);}for(const [_0x2deb6c,_0x4a3082]of _0x30caa9[_0x2308('0x1e')])_0x2deb6c['startsWith'](_0x2308('0x56'))||this[_0x2308('0xdf')][_0x2308('0x6')](_0x2deb6c,_0x4a3082);}const _0x384bb4=H(_0x2308('0x100'));this[_0x2308('0xf0')][_0x2308('0x6')](_0x2308('0x100'),_0x384bb4),this['_baseIdsRoots'][_0x2308('0x6')](_0x2308('0x100'),this[_0x2308('0xad')](_0x384bb4,0x1));const _0x2b5d56=H('$graveyard');this[_0x2308('0x80')][_0x2308('0x6')]('$graveyard',_0x2b5d56),this[_0x2308('0x58')][_0x2308('0x6')](_0x2308('0x100'),this[_0x2308('0xad')](_0x2b5d56,0x1));const _0x15bfeb=Array[_0x2308('0xbb')](this['_diffRoots'])[_0x2308('0xcc')](([_0x3b40d8,_0x41a884])=>[_0x3b40d8,J(_0x41a884)]);this['_saveMetaData'](this[_0x2308('0xdb')],_0x15bfeb,this[_0x2308('0xdf')],_0x5301b4);}[_0x2308('0x68')](_0x248135){const _0x89b449=JSON['parse'](_0x248135),_0x10ca38=this[_0x2308('0xba')][_0x2308('0xbe')][_0x2308('0x62')][_0x2308('0x6c')],_0x1c10d2=new _0x4b7aff(_0x10ca38,_0x89b449['map'](_0x1b603=>T(_0x1b603,this[_0x2308('0xba')])));return this[_0x2308('0xba')][_0x2308('0x35')][_0x2308('0x24')](_0x1c10d2);}['_saveMetaData'](_0x4b5555,_0x1f0db2,_0x1651be,_0x1852b2){const _0xff0ccd=new Map(_0x1f0db2),_0x187a99=new Map(_0x3b2ef1(_0x1852b2)),_0x452f1f=new Map();for(const [_0x2323f2,_0x2039b7]of _0x1651be)_0x452f1f['set'](_0x2323f2,{'start':_0x2039b7[_0x2308('0x16')][_0x2308('0xee')](),'end':_0x2039b7[_0x2308('0x1f')][_0x2308('0xee')](),'rootName':_0x2039b7['root'][_0x2308('0xd7')]});this[_0x2308('0x64')]['set'](_0x4b5555,{'roots':_0xff0ccd,'markers':_0x452f1f,'rootsAttributes':_0x187a99});}[_0x2308('0x104')](_0x9fb28e){this['_savedMetaData'][_0x2308('0xd0')](_0x9fb28e);}[_0x2308('0xb0')](){this['_reset'](),this[_0x2308('0xeb')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x2308('0x47')](),this['init'](this[_0x2308('0x49')]);}[_0x2308('0x90')](){this['_touched']['clear'](),this[_0x2308('0x73')][_0x2308('0x47')](),this[_0x2308('0xc6')][_0x2308('0x47')](),this[_0x2308('0x80')][_0x2308('0x47')](),this['_diffRootsAttributes'][_0x2308('0x47')](),this[_0x2308('0xf0')][_0x2308('0x47')](),this[_0x2308('0xb4')][_0x2308('0x47')](),this[_0x2308('0x58')][_0x2308('0x47')](),this['_baseIdsRoots'][_0x2308('0x47')](),this[_0x2308('0xdf')][_0x2308('0x47')](),this[_0x2308('0xc5')]=0x1,this['_startingRevisionId']=this[_0x2308('0xc5')];}[_0x2308('0xad')](_0x2107b7,_0x517663=null){let _0x1319cf=null;_0x2107b7['is']('documentFragment')||(_0x1319cf=new _0x4f47c4(_0x2107b7[_0x2308('0x0')],{'vid_start':null===_0x517663?this['_revisionId']++:_0x517663++}));const _0x4e789c=[];for(const _0x309477 of _0x2107b7['getChildren']())if(_0x309477['is'](_0x2308('0xa3'))){_0x4e789c['push'](this['_makeIdsRoot'](_0x309477,_0x517663));const _0x46bd97=_0x4e789c[_0x4e789c[_0x2308('0x107')]-0x1];null!==_0x517663&&(_0x517663=_0x46bd97['is']('element',_0x2308('0x3f'))?_0x46bd97[_0x2308('0x29')]('vid')+0x1:_0x46bd97[_0x2308('0x29')](_0x2308('0x76'))+0x1);}else for(let _0x3e7422=0x0;_0x3e7422<_0x309477[_0x2308('0xc1')];_0x3e7422++)_0x4e789c[_0x2308('0x75')](new _0x4f47c4(_0x2308('0x3f'),{'vid':null===_0x517663?this[_0x2308('0xc5')]++:_0x517663++}));if(_0x2107b7['is']('documentFragment')){const _0x208c67=H(_0x2107b7[_0x2308('0xd7')]);return _0x208c67[_0x2308('0xd6')](0x0,_0x4e789c),_0x208c67;}return _0x1319cf[_0x2308('0x19')](_0x2308('0x76'),null===_0x517663?this[_0x2308('0xc5')]++:_0x517663++),_0x1319cf[_0x2308('0xd6')](0x0,_0x4e789c),_0x1319cf;}[_0x2308('0x8')](_0x9f3dcd,_0x22f170,_0xc26009){this[_0x2308('0x90')]();const {roots:_0x6b4541,markers:_0x2f7e6e,rootsAttributes:_0x1561c8}=this['_savedMetaData'][_0x2308('0xd9')](_0x9f3dcd);this[_0x2308('0xf0')]=new Map(_0x6b4541),this[_0x2308('0xb4')]=new Map(_0x3b2ef1(_0x1561c8));for(const [_0x178d85,_0x49f3f4]of this[_0x2308('0xf0')])if(_0x2308('0x100')!==_0x178d85&&(this[_0x2308('0x80')][_0x2308('0x6')](_0x178d85,J(_0x49f3f4)),this['_diffRootsAttributes']=new Map(_0x3b2ef1(_0x1561c8)),_0xc26009)){const _0x286e79=this[_0x2308('0xc5')];this[_0x2308('0x58')][_0x2308('0x6')](_0x178d85,this[_0x2308('0xad')](_0x49f3f4)),this[_0x2308('0x91')]['set'](_0x178d85,this[_0x2308('0xad')](_0x49f3f4,_0x286e79));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots'][_0x2308('0x6')]('$graveyard',J(this[_0x2308('0xf0')]['get'](_0x2308('0x100')))),_0xc26009&&this['_idsRoots'][_0x2308('0x6')](_0x2308('0x100'),this[_0x2308('0xad')](this['_baseRoots'][_0x2308('0xd9')]('$graveyard')));for(const [_0x7e0575,_0x410f7e]of _0x2f7e6e){const _0x1a6b2b=this[_0x2308('0xf0')][_0x2308('0xd9')](_0x410f7e[_0x2308('0xd7')]),_0x5e65cf=this[_0x2308('0x80')][_0x2308('0xd9')](_0x410f7e[_0x2308('0xd7')]),_0x541d8a=new _0x46db3d(this[_0x2308('0xae')](_0x410f7e[_0x2308('0x16')],_0x1a6b2b),this[_0x2308('0xae')](_0x410f7e[_0x2308('0x1f')],_0x1a6b2b)),_0x3312c1=this['_fixRange'](_0x541d8a,_0x5e65cf);_0x1a6b2b[_0x2308('0x1e')]['set'](_0x7e0575,_0x541d8a),this[_0x2308('0xdf')][_0x2308('0x6')](_0x7e0575,_0x3312c1);}this[_0x2308('0x7')](_0x9f3dcd,_0x22f170,_0xc26009);}[_0x2308('0x7')](_0x3e727d,_0x294be5,_0x5272f8){for(const _0x43d9c9 of this[_0x2308('0x49')][_0x2308('0x8e')](_0x3e727d,_0x294be5))this[_0x2308('0xf5')](_0x43d9c9,_0x5272f8);for(const _0x2d9449 of this['_diffRoots']['values']())_0x2d9449[_0x2308('0x1e')][_0x2308('0x47')]();for(const [_0x550e25,_0x31cef5]of this[_0x2308('0xdf')]){this['_diffRoots'][_0x2308('0xd9')](_0x31cef5['root'][_0x2308('0xd7')])[_0x2308('0x1e')][_0x2308('0x6')](_0x550e25,_0x31cef5[_0x2308('0xee')]());}const _0x622a13=new Map(),_0x206e92=new Map();for(const [_0x1271cc,_0x133bbd]of this[_0x2308('0x80')])_0x622a13[_0x2308('0x6')](_0x1271cc,J(_0x133bbd)),_0x206e92[_0x2308('0x6')](_0x1271cc,this['_diffRootsAttributes'][_0x2308('0xd9')](_0x1271cc));this[_0x2308('0x102')](_0x294be5,_0x622a13,this[_0x2308('0xdf')],_0x206e92);}[_0x2308('0x1')](_0x5a495c){const _0x3c53f3=Array[_0x2308('0xbb')](this[_0x2308('0x64')][_0x2308('0x93')]());_0x3c53f3[_0x2308('0x53')]((_0x5d865a,_0x29ec5a)=>_0x5d865a-_0x29ec5a),_0x3c53f3['reverse']();for(const _0x4141df of _0x3c53f3)if(_0x4141df<_0x5a495c)return _0x4141df;return Number['NEGATIVE_INFINITY'];}[_0x2308('0x4')](_0x457544,_0x90e23a){const _0x1d681d=Array[_0x2308('0xbb')](_0x90e23a[_0x2308('0x1e')])[_0x2308('0xcc')](([_0x3e8a86,_0x3bc7a1])=>[_0x3e8a86,this[_0x2308('0x77')](_0x3bc7a1,_0x457544)]);_0x457544[_0x2308('0x1e')]=new Map(_0x1d681d);}[_0x2308('0x3b')](_0x4479f6){for(const _0x4cbd6c of this[_0x2308('0xdf')]['values']()){const _0x445194=_0x4cbd6c['getTransformedByOperation'](_0x4479f6),_0x4aa8de=_0x46db3d[_0x2308('0xf7')](_0x445194);_0x4cbd6c[_0x2308('0x16')]=_0x4aa8de['start'],_0x4cbd6c[_0x2308('0x1f')]=_0x4aa8de[_0x2308('0x1f')];}}[_0x2308('0xf5')](_0x1b9f48,_0x3839c2){if('addRoot'==_0x1b9f48[_0x2308('0xc7')]||_0x2308('0xa9')==_0x1b9f48['type'])return void this[_0x2308('0xb')](_0x1b9f48,_0x3839c2);if(_0x2308('0x84')==_0x1b9f48['type']){const _0xd68664=_0x1b9f48[_0x2308('0xe0')][_0x2308('0xbc')][_0x2308('0xd7')];this[_0x2308('0x80')]['has'](_0xd68664)||(this[_0x2308('0x80')][_0x2308('0x6')](_0xd68664,H(_0xd68664,!0x0)),this['_diffRootsAttributes'][_0x2308('0x6')](_0xd68664,{}),_0x3839c2&&this[_0x2308('0x58')][_0x2308('0x6')](_0xd68664,H(_0xd68664,!0x0)));}if(_0x2308('0x57')==_0x1b9f48[_0x2308('0xc7')]||'removeRootAttribute'==_0x1b9f48[_0x2308('0xc7')]||_0x2308('0x108')==_0x1b9f48['type'])return void this['_handleRootAttributeOperation'](_0x1b9f48);const _0x11141d=this[_0x2308('0xa6')](_0x1b9f48,this[_0x2308('0x80')]);if(_0x2308('0x97')!==_0x1b9f48[_0x2308('0xc7')]&&(_0x11141d['_execute'](),this[_0x2308('0x3b')](_0x11141d)),_0x3839c2)switch(_0x11141d[_0x2308('0xc7')]){case _0x2308('0x84'):this[_0x2308('0x21')](_0x1b9f48);break;case _0x2308('0x7b'):case _0x2308('0x99'):case _0x2308('0xa'):this[_0x2308('0x78')](_0x1b9f48);break;case _0x2308('0x82'):this[_0x2308('0x8b')](_0x1b9f48);break;case _0x2308('0x6b'):this[_0x2308('0x103')](_0x1b9f48);break;case _0x2308('0x97'):this[_0x2308('0x50')](_0x1b9f48);}}['_cloneOperation'](_0x42abd0,_0x34ae6f){const _0x1ea37f=_0x42abd0[_0x2308('0xee')]();return _0x1ea37f[_0x2308('0xb9')]=_0x42abd0['_authorId'],this[_0x2308('0xf6')](_0x1ea37f,_0x34ae6f),_0x1ea37f;}[_0x2308('0x3a')](_0x1ca877){return _0x1ca877[_0x2308('0xcc')](_0x190c4a=>{const _0x15a80b=this[_0x2308('0xa8')](_0x190c4a);return Number(_0x190c4a[_0x2308('0x30')][_0x2308('0x29')](_0x15a80b));});}[_0x2308('0xec')](_0x30586b,_0x3a89e5){if(_0x30586b['is'](_0x2308('0xa3'),_0x2308('0x3f')))_0x3a89e5['push']({'item':_0x30586b,'type':_0x2308('0x86')});else{_0x30586b['is'](_0x2308('0xa3'))&&_0x3a89e5[_0x2308('0x75')]({'item':_0x30586b,'type':_0x2308('0x6f')});for(const _0x297351 of _0x30586b[_0x2308('0xb8')]())this['_generateTape'](_0x297351,_0x3a89e5);_0x30586b['is'](_0x2308('0xa3'))&&_0x3a89e5['push']({'item':_0x30586b,'type':_0x2308('0xce')});}return _0x3a89e5;}[_0x2308('0x46')](){const _0x2858c2=new Map(this[_0x2308('0xd')]),_0x120ac1=new Map(_0x2858c2),_0x412661=new Map(),_0x4f31d8={'insertions':{},'deletions':{}},_0x118ca0={'insertions':{},'deletions':{}},_0x197862=new Map(),_0x11b578=new Set([...this['_baseRoots'][_0x2308('0x93')](),...this[_0x2308('0x80')][_0x2308('0x93')]()]);_0x11b578[_0x2308('0xd0')](_0x2308('0x100'));for(const _0x33ba95 of _0x11b578){const _0x23d5f2=this[_0x2308('0x80')]['get'](_0x33ba95)||H(_0x33ba95,!0x1),_0x3b7f20=this['_baseRoots'][_0x2308('0xd9')](_0x33ba95)||H(_0x33ba95,!0x1);_0x23d5f2[_0x2308('0x42')]()||_0x3b7f20[_0x2308('0x42')]()?(_0x4f31d8[_0x2308('0xe9')][_0x33ba95]=J(_0x23d5f2),_0x4f31d8[_0x2308('0x72')][_0x33ba95]=J(_0x3b7f20),this['_copyMarkers'](_0x4f31d8[_0x2308('0x72')][_0x33ba95],_0x3b7f20),this[_0x2308('0x4')](_0x4f31d8['insertions'][_0x33ba95],_0x23d5f2),_0x118ca0[_0x2308('0xe9')][_0x33ba95]=this[_0x2308('0xec')](this[_0x2308('0x58')][_0x2308('0xd9')](_0x33ba95),[]),_0x118ca0[_0x2308('0x72')][_0x33ba95]=this[_0x2308('0xec')](this[_0x2308('0x91')][_0x2308('0xd9')](_0x33ba95)||H(_0x33ba95,!0x1),[])):_0x11b578['delete'](_0x33ba95);}for(const _0x13e56c of _0x11b578){const _0x147f8e=_0x118ca0[_0x2308('0xe9')][_0x13e56c];for(const _0x4f1ab2 of _0x147f8e){const _0x4a8262=this[_0x2308('0xa8')](_0x4f1ab2),_0x155f6a=_0x4f1ab2[_0x2308('0x30')]['getAttribute'](_0x4a8262);_0x120ac1[_0x2308('0xd0')](_0x155f6a),_0x155f6a>=this['_startingRevisionId']&&_0x412661[_0x2308('0x6')](_0x155f6a,_0x2858c2[_0x2308('0xd9')](_0x155f6a));}}for(const _0x2b61d8 of _0x11b578){const _0x3664b6=_0x118ca0[_0x2308('0xe9')][_0x2b61d8],_0x395914=this['_getBaseVids'](_0x118ca0[_0x2308('0x72')][_0x2b61d8]);let _0x3e9c75=0x0;for(const _0x500ae2 of _0x3664b6){const _0xfd979a=this[_0x2308('0xa8')](_0x500ae2),_0x1959ce=_0x500ae2[_0x2308('0x30')][_0x2308('0x29')](_0xfd979a);if(!_0x412661[_0x2308('0xa7')](_0x1959ce)&&!_0x197862[_0x2308('0xa7')](_0x1959ce)){if(_0x120ac1['has'](_0x1959ce))_0x3e9c75++;else{if(_0x1959ce!=_0x395914[_0x3e9c75]){const _0x1b8564=_0x2858c2['get'](_0x1959ce)||_0x2858c2[_0x2308('0xd9')](_0x395914[_0x3e9c75]);for(;_0x1959ce!=_0x395914[_0x3e9c75];)_0x120ac1[_0x2308('0xa7')](_0x395914[_0x3e9c75])||(_0x197862[_0x2308('0x6')](_0x395914[_0x3e9c75],_0x1b8564),_0x2858c2[_0x2308('0x6')](_0x395914[_0x3e9c75],_0x1b8564)),_0x3e9c75++;}_0x3e9c75++;}}}}for(const _0xe51f48 of _0x11b578){const _0x3cffb1=_0x118ca0[_0x2308('0xe9')][_0xe51f48];for(const _0x553d7a of _0x3cffb1){const _0x355926=this[_0x2308('0xa8')](_0x553d7a),_0x216c0e=_0x553d7a[_0x2308('0x30')]['getAttribute'](_0x355926);if(_0x197862[_0x2308('0xa7')](_0x216c0e)){const _0x1ac89d=_0x197862[_0x2308('0xd9')](_0x216c0e);_0x120ac1[_0x2308('0xa7')](_0x216c0e)||_0x120ac1[_0x2308('0x6')](_0x216c0e,{..._0x1ac89d}),_0x412661[_0x2308('0x6')](_0x216c0e,{..._0x1ac89d});}}}for(const _0x4cfc49 of _0x120ac1[_0x2308('0x93')]())_0x4cfc49>=this[_0x2308('0x61')]&&_0x120ac1['delete'](_0x4cfc49);const _0xf56d=new Map();for(const _0x381ae of _0x11b578){let _0x4c502c=_0x118ca0[_0x2308('0xe9')][_0x381ae];for(const _0x34659c of _0x4c502c)if(_0x34659c['item']['is'](_0x2308('0xa3'),_0x2308('0x40'))){const _0x467f22=this['_getVidAttributeName'](_0x34659c),_0x36d83a=_0x34659c['item']['getAttribute'](_0x467f22);if(_0x412661[_0x2308('0xa7')](_0x36d83a)){const _0x3baa86=_0x34659c[_0x2308('0x30')][_0x2308('0x27')][_0x2308('0x27')][_0x2308('0x29')](_0x2308('0xa1')),_0x1b8a19=_0xf56d['get'](_0x3baa86)||new Set();_0x1b8a19['add'](_0x412661[_0x2308('0xd9')](_0x36d83a)[_0x2308('0x36')]),_0xf56d[_0x2308('0x6')](_0x3baa86,_0x1b8a19);}}_0x4c502c=_0x118ca0[_0x2308('0x72')][_0x381ae];for(const _0x427035 of _0x4c502c)if(_0x427035[_0x2308('0x30')]['is'](_0x2308('0xa3'),_0x2308('0x40'))){const _0x1c7664=this[_0x2308('0xa8')](_0x427035),_0x3878e7=_0x427035[_0x2308('0x30')][_0x2308('0x29')](_0x1c7664);if(_0x120ac1[_0x2308('0xa7')](_0x3878e7)){const _0x399401=_0x427035[_0x2308('0x30')][_0x2308('0x27')][_0x2308('0x27')]['getAttribute']('vid_start'),_0x1a5c5b=_0xf56d[_0x2308('0xd9')](_0x399401)||new Set();_0x1a5c5b[_0x2308('0xde')](_0x120ac1[_0x2308('0xd9')](_0x3878e7)[_0x2308('0x36')]),_0xf56d[_0x2308('0x6')](_0x399401,_0x1a5c5b);}}for(const _0x385fd3 of _0xf56d[_0x2308('0x93')]())(_0x412661['has'](_0x385fd3)||_0x120ac1[_0x2308('0xa7')](_0x385fd3))&&_0xf56d['delete'](_0x385fd3);}for(const _0x2bf148 of _0x11b578){const _0xa3187=_0x118ca0[_0x2308('0xe9')][_0x2bf148];let _0x4105ef=null,_0x5d5540=null;for(const _0x556176 of _0xa3187){const _0x1ce6ba=this[_0x2308('0xa8')](_0x556176),_0x17ce30=_0x556176[_0x2308('0x30')][_0x2308('0x29')](_0x1ce6ba),_0x4e24f6=_0xf56d[_0x2308('0xd9')](_0x17ce30);_0x4e24f6&&_0x2308('0x6f')==_0x556176[_0x2308('0xc7')]&&(_0x4105ef=Array[_0x2308('0xbb')](_0x4e24f6)[0x0],_0x5d5540=_0x556176['item']['getAttribute']('vid_end')),_0x4105ef&&(_0x120ac1['set'](_0x17ce30,{'userId':_0x4105ef}),_0x412661[_0x2308('0x6')](_0x17ce30,{'userId':_0x4105ef})),_0x17ce30==_0x5d5540&&(_0x4105ef=null,_0x5d5540=null);}}const _0x4380c1={},_0x52aca7=new Set();for(const _0x290758 of _0x11b578){const _0x325b08=_0x4f31d8[_0x2308('0x72')][_0x290758],_0x5e22f2=_0x4f31d8[_0x2308('0xe9')][_0x290758];for(const {userId:_0x1cd59b}of this['_touchedMarkers']['values']())null!==_0x1cd59b&&_0x52aca7[_0x2308('0xde')](_0x1cd59b);for(const {userId:_0x49259c}of this['_touchedRoots'][_0x2308('0x3e')]())null!==_0x49259c&&_0x52aca7['add'](_0x49259c);this[_0x2308('0xcf')](_0x5e22f2,_0x118ca0[_0x2308('0xe9')][_0x290758],_0x412661,_0x2308('0x5e'),_0x52aca7),this[_0x2308('0xcf')](_0x325b08,_0x118ca0[_0x2308('0x72')][_0x290758],_0x120ac1,'deletion',_0x52aca7),_0x4380c1[_0x290758]={'insertions':this[_0x2308('0x2')](_0x5e22f2),'deletions':this[_0x2308('0x2')](_0x325b08),'attachChange':this[_0x2308('0xc6')][_0x2308('0xd9')](_0x290758)||null,'attributesBefore':_0x3b2ef1(this[_0x2308('0xb4')][_0x2308('0xd9')](_0x290758))||{},'attributesAfter':_0x3b2ef1(this['_diffRootsAttributes'][_0x2308('0xd9')](_0x290758))};}return{'diffData':_0x4380c1,'authorsIds':Array['from'](_0x52aca7)};}['_processRootBeforeSave'](_0x474d50){for(const [,_0x5e7489]of _0x474d50[_0x2308('0x1e')]){const _0x605a33=_0x5e7489[_0x2308('0x16')][_0x2308('0x5b')]()['filter'](_0x46e939=>_0x2308('0x40')==_0x46e939[_0x2308('0x0')]);for(const _0x10f9da of _0x605a33)0x1==_0x10f9da['childCount']&&_0x10f9da[_0x2308('0x7a')](0x0)['is'](_0x2308('0xa3'),_0x2308('0x2f'))&&_0x10f9da[_0x2308('0x7a')](0x0)['_setAttribute']('keepParagraph',!0x0);}}[_0x2308('0x2')](_0x2db218){this[_0x2308('0x43')](_0x2db218);const _0x20185e=this[_0x2308('0xba')][_0x2308('0x35')][_0x2308('0x9f')](_0x2db218,{}),_0x46cf3f=Array[_0x2308('0xbb')](_0x20185e[_0x2308('0xb8')]())[_0x2308('0xcc')](_0x5ad188=>this[_0x2308('0x2c')](_0x5ad188));return JSON[_0x2308('0x48')](_0x46cf3f);}[_0x2308('0x2c')](_0x4afab3){if(_0x4afab3['is']('$text'))return _0x4afab3[_0x2308('0x35')];{const _0x3e355b=_0x4afab3;return{'type':Object[_0x2308('0x93')](F)[_0x2308('0x63')](_0x5bc354=>_0x4afab3 instanceof F[_0x5bc354]),'name':_0x3e355b[_0x2308('0x0')],'attributes':Array[_0x2308('0xbb')](_0x3e355b['getAttributes']()),'children':Array['from'](_0x3e355b[_0x2308('0xb8')]())[_0x2308('0xcc')](_0x2739c4=>this[_0x2308('0x2c')](_0x2739c4))};}}[_0x2308('0xcf')](_0xc263f2,_0x4c819a,_0x1e579c,_0x287041,_0x15af58){let _0x521188=null,_0x1a4b41=null,_0xa8a4aa=0x0;const _0x283d0b=this[_0x2308('0xba')][_0x2308('0x25')];for(let _0x52fbdd=0x0;_0x52fbdd<_0x4c819a[_0x2308('0x107')];_0x52fbdd++){const _0x44863a=this[_0x2308('0xa8')](_0x4c819a[_0x52fbdd]),_0x415b81=_0x4c819a[_0x52fbdd][_0x2308('0x30')][_0x2308('0x29')](_0x44863a),_0x1e2efc=_0x1e579c['get'](_0x415b81),_0x148cb0=_0x52fbdd==_0x4c819a['length']-0x1;(!_0x521188&&_0x1e2efc&&(_0x521188=_0x1e2efc,_0x1a4b41=_0x4c819a[_0x52fbdd]),_0x521188&&(!_0x1e2efc||_0x1e2efc[_0x2308('0x36')]!=_0x521188['userId']))&&(_0x12ca7d(_0x1e2efc,q(_0x1a4b41,_0xc263f2,_0x283d0b),q(_0x4c819a[_0x52fbdd],_0xc263f2,_0x283d0b)),_0x521188=_0x1e2efc||null,_0x1a4b41=_0x1e2efc?_0x4c819a[_0x52fbdd]:null),_0x521188&&_0x148cb0&&_0x12ca7d(_0x1e2efc,q(_0x1a4b41,_0xc263f2,_0x283d0b),G(_0x4c819a[_0x52fbdd],_0xc263f2,_0x283d0b));}function _0x12ca7d(_0x32ae6a,_0x28b1e5,_0x16dee4){const _0x2b2588=_0x521188[_0x2308('0x36')],_0x249439=_0x2308('0x56')+_0x287041+':'+_0x2b2588+':'+_0xa8a4aa++,_0x13236f=_0x283d0b[_0x2308('0x54')](_0x28b1e5,_0x16dee4);_0xc263f2[_0x2308('0x1e')][_0x2308('0x6')](_0x249439,_0x13236f),null!==_0x2b2588&&_0x15af58['add'](_0x2b2588);}}['_getVidAttributeName'](_0xfbaa85){switch(_0xfbaa85[_0x2308('0xc7')]){case _0x2308('0x6f'):return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}[_0x2308('0xf6')](_0x48601f,_0xc02f68){_0x48601f[_0x2308('0x4b')]=null;for(const _0x21e5de in _0x48601f){const _0x726164=_0x48601f[_0x21e5de];if(_0x726164 instanceof _0x1999a2){const _0x460054=_0xc02f68[_0x2308('0xd9')](_0x726164[_0x2308('0xbc')][_0x2308('0xd7')]);_0x48601f[_0x21e5de]=this[_0x2308('0xae')](_0x726164,_0x460054);}if(_0x726164 instanceof _0x46db3d){const _0x30acec=_0xc02f68['get'](_0x726164[_0x2308('0xbc')][_0x2308('0xd7')]);_0x48601f[_0x21e5de]=this[_0x2308('0x77')](_0x726164,_0x30acec);}'root'===_0x21e5de&&(_0x48601f[_0x2308('0xbc')]=_0xc02f68[_0x2308('0xd9')](_0x48601f[_0x2308('0xbc')]['rootName']));}}['_fixRange'](_0x48f370,_0x137fca){return this[_0x2308('0xba')]['model'][_0x2308('0x54')](this[_0x2308('0xae')](_0x48f370['start'],_0x137fca),this[_0x2308('0xae')](_0x48f370['end'],_0x137fca));}['_fixPosition'](_0x4f59f6,_0xe27f7f){return this[_0x2308('0xba')][_0x2308('0x25')][_0x2308('0x51')](_0xe27f7f,_0x4f59f6['path'],_0x4f59f6[_0x2308('0xc0')]);}[_0x2308('0x21')](_0x44c9a9){const _0x52f998=this[_0x2308('0x58')][_0x2308('0xd9')](_0x44c9a9[_0x2308('0xe0')][_0x2308('0xbc')][_0x2308('0xd7')]),_0xc11b6c=this[_0x2308('0xae')](_0x44c9a9['position'],_0x52f998),_0xf57a0c=null===_0x44c9a9[_0x2308('0xb9')]?null:_0x44c9a9[_0x2308('0xb9')]||this[_0x2308('0xba')]['plugins']['get'](_0x2308('0x26'))['me']['id'],_0x1c7638=_0xc11b6c['parent'],_0x1b60d5=this[_0x2308('0xc5')],_0x3bfb06=[];for(const _0xb91436 of _0x44c9a9[_0x2308('0x85')])if(_0xb91436['is']('element'))_0x3bfb06[_0x2308('0x75')](this[_0x2308('0xad')](_0xb91436));else for(let _0x233882=0x0;_0x233882<_0xb91436[_0x2308('0xc1')];_0x233882++)_0x3bfb06[_0x2308('0x75')](new _0x4f47c4('$text',{'vid':this['_revisionId']++}));const _0x48351b=this[_0x2308('0xc5')];for(let _0x11c417=_0x1b60d5;_0x11c417<_0x48351b;_0x11c417++)this[_0x2308('0xd')][_0x2308('0x6')](_0x11c417,{'userId':_0xf57a0c});_0x1c7638[_0x2308('0xd6')](_0xc11b6c[_0x2308('0x39')],_0x3bfb06);}[_0x2308('0x78')](_0x51ac77){(_0x51ac77=this[_0x2308('0xa6')](_0x51ac77,this['_idsRoots']))['_execute']();const _0x2a245f=null===_0x51ac77[_0x2308('0xb9')]?null:_0x51ac77[_0x2308('0xb9')]||this[_0x2308('0xba')][_0x2308('0xa4')][_0x2308('0xd9')](_0x2308('0x26'))['me']['id'],_0x109dda=_0x51ac77['getMovedRangeStart'](),_0x876fbb=_0x109dda[_0x2308('0x27')],_0x2be796=_0x109dda[_0x2308('0x39')];!function _0x3a1388(_0x3c02bf,_0xc68e04,_0x1b243d,_0x1bffe7){for(let _0x19f5a9=_0x1b243d;_0x19f5a9<_0x1bffe7;_0x19f5a9++){const _0x437d97=_0xc68e04['getChild'](_0x19f5a9);_0x437d97['is'](_0x2308('0xa3'),'$text')?_0x3c02bf[_0x2308('0x6')](_0x437d97[_0x2308('0x29')](_0x2308('0x88')),{'userId':_0x2a245f}):(_0x3c02bf[_0x2308('0x6')](_0x437d97[_0x2308('0x29')](_0x2308('0xa1')),{'userId':_0x2a245f}),_0x3a1388(_0x3c02bf,_0x437d97,0x0,_0x437d97['childCount']),_0x3c02bf[_0x2308('0x6')](_0x437d97['getAttribute'](_0x2308('0x76')),{'userId':_0x2a245f}));}}(this['_touched'],_0x876fbb,_0x2be796,_0x2be796+_0x51ac77[_0x2308('0x20')]);}[_0x2308('0x8b')](_0x1ee6a4){const _0x26aeee=null===(_0x1ee6a4=this['_cloneOperation'](_0x1ee6a4,this[_0x2308('0x58')]))[_0x2308('0xb9')]?null:_0x1ee6a4['_authorId']||this[_0x2308('0xba')][_0x2308('0xa4')][_0x2308('0xd9')]('Users')['me']['id'],_0x2519eb=_0x1ee6a4[_0x2308('0xc3')][_0x2308('0x27')],_0x5e2057=_0x1ee6a4['sourcePosition'][_0x2308('0x27')],_0x39dc63=_0x2519eb[_0x2308('0x29')](_0x2308('0x76')),_0x4da131=_0x5e2057[_0x2308('0x29')]('vid_start');_0x2519eb[_0x2308('0x19')](_0x2308('0x76'),_0x5e2057[_0x2308('0x29')](_0x2308('0x76'))),_0x5e2057[_0x2308('0x19')]('vid_end',_0x39dc63),this[_0x2308('0xd')]['set'](_0x4da131,{'userId':_0x26aeee}),this[_0x2308('0xd')]['set'](_0x39dc63,{'userId':_0x26aeee}),_0x1ee6a4[_0x2308('0x70')]();}['_handleSplitOperation'](_0x51c59c){const _0x4e185f=null===(_0x51c59c=this['_cloneOperation'](_0x51c59c,this[_0x2308('0x58')]))[_0x2308('0xb9')]?null:_0x51c59c[_0x2308('0xb9')]||this[_0x2308('0xba')][_0x2308('0xa4')]['get'](_0x2308('0x26'))['me']['id'],_0x23f406=_0x51c59c[_0x2308('0xe5')],_0x4dcf6f=_0x51c59c[_0x2308('0xb1')][_0x2308('0x27')];_0x51c59c['_execute']();const _0x4f3499=_0x4dcf6f[_0x2308('0x29')]('vid_end'),_0x219bf3=_0x51c59c[_0x2308('0xe4')][_0x2308('0x9b')];if(_0x23f406){const _0x1a0f7e=_0x219bf3[_0x2308('0x29')]('vid_end'),_0x3de38a=_0x4dcf6f['getAttribute']('vid_end');_0x4dcf6f[_0x2308('0x19')]('vid_end',_0x1a0f7e),_0x219bf3[_0x2308('0x19')](_0x2308('0x76'),_0x3de38a),this['_touched']['set'](_0x4dcf6f[_0x2308('0x29')](_0x2308('0x76')),{'userId':_0x4e185f}),this[_0x2308('0xd')][_0x2308('0x6')](_0x219bf3['getAttribute'](_0x2308('0xa1')),{'userId':_0x4e185f});}else{const _0x35e151=this['_revisionId']++,_0x328ef9=this[_0x2308('0xc5')]++;_0x4dcf6f[_0x2308('0x19')]('vid_end',_0x35e151),_0x219bf3['_setAttribute'](_0x2308('0xa1'),_0x328ef9),_0x219bf3[_0x2308('0x19')](_0x2308('0x76'),_0x4f3499),this[_0x2308('0xd')][_0x2308('0x6')](_0x35e151,{'userId':_0x4e185f}),this[_0x2308('0xd')]['set'](_0x328ef9,{'userId':_0x4e185f});}}['_handleMarkerOperation'](_0x765af7){if(!_0x765af7[_0x2308('0x3c')])return;const _0x9a6f19=(_0x765af7=this[_0x2308('0xa6')](_0x765af7,this[_0x2308('0x80')]))[_0x2308('0x52')]?_0x765af7['oldRange'][_0x2308('0xbc')]:null,_0xc9b70d=_0x765af7['newRange']?_0x765af7[_0x2308('0xf1')]['root']:null;_0x9a6f19&&this[_0x2308('0xdf')]['delete'](_0x765af7[_0x2308('0x0')]),_0xc9b70d&&this[_0x2308('0xdf')][_0x2308('0x6')](_0x765af7[_0x2308('0x0')],_0x765af7[_0x2308('0xf1')][_0x2308('0xee')]());const _0x1713eb=null===_0x765af7[_0x2308('0xb9')]?null:_0x765af7['_authorId']||this[_0x2308('0xba')][_0x2308('0xa4')][_0x2308('0xd9')](_0x2308('0x26'))['me']['id'],_0x58fc7b=_0x765af7[_0x2308('0x0')];if(!this[_0x2308('0x73')]['has'](_0x58fc7b))return void this[_0x2308('0x73')][_0x2308('0x6')](_0x58fc7b,{'range':_0x765af7[_0x2308('0x52')],'userId':_0x1713eb});const _0x3d1093=this[_0x2308('0x73')][_0x2308('0xd9')](_0x58fc7b),_0xba3757=_0x3d1093[_0x2308('0x7e')],_0x244f4b=_0x765af7[_0x2308('0xf1')];null==_0xba3757&&null==_0x244f4b||_0xba3757&&_0x244f4b&&_0xba3757[_0x2308('0x7c')](_0x244f4b)?this[_0x2308('0x73')][_0x2308('0xd0')](_0x765af7[_0x2308('0x0')]):_0x3d1093[_0x2308('0x36')]=_0x1713eb;}[_0x2308('0xb')](_0x12557b,_0x2d929c){this[_0x2308('0x80')]['has'](_0x12557b[_0x2308('0xd7')])?this[_0x2308('0x80')][_0x2308('0xd9')](_0x12557b[_0x2308('0xd7')])[_0x2308('0xf2')]=_0x12557b[_0x2308('0xa0')]:(this[_0x2308('0x80')][_0x2308('0x6')](_0x12557b[_0x2308('0xd7')],H(_0x12557b[_0x2308('0xd7')],!0x0)),this[_0x2308('0x9a')][_0x2308('0x6')](_0x12557b[_0x2308('0xd7')],{}),_0x2d929c&&this[_0x2308('0x58')][_0x2308('0x6')](_0x12557b['rootName'],H(_0x12557b[_0x2308('0xd7')],!0x0)));const _0x2235ca=null===_0x12557b[_0x2308('0xb9')]?null:_0x12557b['_authorId']||this[_0x2308('0xba')]['plugins']['get']('Users')['me']['id'],_0x143bdb=this[_0x2308('0xc6')]['get'](_0x12557b[_0x2308('0xd7')]);_0x143bdb&&_0x143bdb['userId']===_0x2235ca?this['_touchedRoots'][_0x2308('0xd0')](_0x12557b[_0x2308('0xd7')]):this['_touchedRoots'][_0x2308('0x6')](_0x12557b['rootName'],{'userId':_0x2235ca,'isAttached':_0x12557b['isAdd']});}[_0x2308('0xf9')](_0x26df6b){const _0x385151=this[_0x2308('0x9a')][_0x2308('0xd9')](_0x26df6b[_0x2308('0xbc')]['rootName']);null===_0x26df6b['newValue']?delete _0x385151[_0x26df6b[_0x2308('0x5d')]]:_0x385151[_0x26df6b[_0x2308('0x5d')]]=_0x26df6b[_0x2308('0xaf')];}}function J(_0x4352e2){const _0xf7d5b8=H(_0x4352e2[_0x2308('0xd7')],_0x4352e2['isAttached']());for(const _0x5be25b of _0x4352e2[_0x2308('0xb8')]()){const _0xcaf175=_0x5be25b[_0x2308('0x98')](!0x0);_0xf7d5b8[_0x2308('0xb3')](_0xcaf175);}return _0xf7d5b8;}function H(_0x1e1bbf,_0x44fb01=!0x0){const _0xbf04c6=new _0x507c98();return _0xbf04c6['rootName']=_0x1e1bbf,_0xbf04c6['_isAttached']=_0x44fb01,_0xbf04c6[_0x2308('0x42')]=()=>_0xbf04c6[_0x2308('0xf2')],_0xbf04c6;}function q(_0x58ac32,_0x25f4f0,_0x16a893){const _0x470c95=_0x2308('0xce')==_0x58ac32[_0x2308('0xc7')]?_0x16a893['createPositionAt'](_0x58ac32[_0x2308('0x30')],_0x2308('0x1f')):_0x16a893[_0x2308('0x5')](_0x58ac32[_0x2308('0x30')]);return _0x16a893[_0x2308('0x51')](_0x25f4f0,_0x470c95[_0x2308('0x1b')],_0x470c95[_0x2308('0xc0')]);}function G(_0x53546d,_0x2cd58f,_0x2e9c2a){const _0x108311=_0x2308('0x6f')==_0x53546d[_0x2308('0xc7')]?_0x2e9c2a[_0x2308('0xb2')](_0x53546d[_0x2308('0x30')],0x0):_0x2e9c2a[_0x2308('0xe3')](_0x53546d[_0x2308('0x30')]);return _0x2e9c2a[_0x2308('0x51')](_0x2cd58f,_0x108311['path'],_0x108311[_0x2308('0xc0')]);}
|