@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230706.0 → 0.0.0-nightly-20230708.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 _0x515f=['_getViewJson','isReady','config','_lastTo','getRootNames','$text','newValue','getAncestors','_handleRootOperation','keepParagraph','values','getRoot','repository','finally','_appendChild','item','_bufferUpdate','_handleOperation','_idsRoots','markerToData','get','paragraph','fromVersion','getNodeByPath','stringify','fromEntries','_isPendingUpdate','deletions','define','_startingVersion','collaboration.channelId','view','version','buildRevisionData','range','reverse','revisionHistory.resumeUnsavedRevision','type','_lastFrom','end','oldRange','history','bind','marker','nodeAfter','elementEnd','getTime','RevisionTracker','createPositionAt','getRange','_diffRoots','_setConversion','PendingActions','_copyMarkers','delete','clone','attributesBefore','_handleSplitOperation','creatorId','addRootAttribute','rootName','_continueCurrentRevision','split','_addPendingAction','_cloneOperation','NEGATIVE_INFINITY','insertion','length','addRoot','getOperation','isAttached','_generateTape','_update','$graveyard','data','string','merge','_authorId','_fixPosition','_removeMetaData','revision-start','sort','loadState','_source','createdAt','parent','key','authorsIds','_handleInsertOperation','_getVidAttributeName','for','creator','editor-initial-data-replaced-with-revision-data','_getBaseVids','_applyOperations','toView','includes','rootsAttributes','afterInit','isEqual','_makeIdsRoot','getRevisionDocumentData','toModel','offsetSize','_baseRootsAttributes','getRevisionRootsAttributes','roots','remove','_getFromVersion','revision','_execute','getUser','filter','processor','reinsert','RealTimeCollaborationClient','startsWith','saveRevision','getAttribute','position','conversion','_saveMetaData','_makeModelFromViewString','_setAttribute','sendBufferedUpdates','_touchedRoots','createRevision','setRevisionData','clear','start','getWalker','dataToMarker','setSource','detachRoot','from','createPositionBefore','_revisionDataBuilder','find','stickiness','updateRevisions','_transformMarkers','vid_end','_touched','upcast','getLatestVersion','_insertChild','_isAttached','authors','editing','_getState','attributes','howMany','insert','data-revision-','_makeRevision','children','tableCell','getMovedRangeStart','_initialRoots','revision-end','_pendingAction','initial','createPositionFromPath','getCurrentRevisionId','_createInitialRevision','push','userId','childCount','markers','_findInsertionIndex','_diffRootsAttributes','documentFragment','previousPosition','shift','_loadRevisionData','map','insertionPosition','getChildren','document','_baseRoots','isAdd','model','_savedMetaData','isEnabled','marked','getChild','toVersion','newRange','add','getData','vid_start','set','dataDowncast','diffData','createRange','insertions','affectsData','source','slice','root','changeRootAttribute','getRevisions','_baseIdsRoots','Empty\x20document','default','deletion','getRevision','reInit','_handleRootAttributeOperation','offset','size','splitPosition','vid','text','_touchedMarkers','_removePendingAction','max','_startingRevisionId','_loadedStateData','_loadState','useFillerType','move','_replaceEditorDataWithRevisionData','addRevision','_processRootBeforeSave','_handleMoveOperation','sourcePosition','addRevisionData','getOperations','path','hasContent','_fixOperation','ready','nodes','_initialRevisionId','_markers','baseVersion','name','toData','currentRevision','_handleMergeOperation','keys','requires','pluginName','_reset','editor','element','_revisionId','_calculateMetaData','_operations','_bufferedUpdates','PENDING_ACTION_REVISION_HISTORY','has','init','Users','_removeRevisionMarkers','locale','attachChange','parse','_fixRange','resolve','elementStart','then','plugins','_createCurrentRevision','attributesAfter','_createFromRanges','getTransformedByOperation','revision:','adapter','_markChanges'];(function(_0x3ef5dd,_0x515f4c){const _0x5a53ab=function(_0x567cce){while(--_0x567cce){_0x3ef5dd['push'](_0x3ef5dd['shift']());}};_0x5a53ab(++_0x515f4c);}(_0x515f,0x16c));const _0x5a53=function(_0x3ef5dd,_0x515f4c){_0x3ef5dd=_0x3ef5dd-0x0;let _0x5a53ab=_0x515f[_0x3ef5dd];return _0x5a53ab;};import{Users as _0x4cf062}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x57d7d2,PendingActions as _0xcfc59f}from'ckeditor5/src/core';import{logWarning as _0x2c7363,uid as _0x16dc66}from'ckeditor5/src/utils';import{Position as _0x212216,Range as _0x57df39,Element as _0x4097d0,DocumentFragment as _0x11fefb,ViewText as _0x10bbbb,ViewElement as _0x11423a,ViewContainerElement as _0x1ed56a,ViewAttributeElement as _0x44fd5d,ViewEmptyElement as _0x2ce3f,ViewRawElement as _0x466ad5,ViewUIElement as _0x27d01e,ViewDocumentFragment as _0x25fca0}from'ckeditor5/src/engine';import _0x5d2c50 from'./revisionsrepository';import{getTranslation as _0x4dd2ee}from'./utils/common-translations';import{cloneDeep as _0x108074,isEqual as _0x18bf5f}from'lodash-es';const F={'c':_0x1ed56a,'a':_0x44fd5d,'e':_0x2ce3f,'r':_0x466ad5,'u':_0x27d01e};export default class u extends _0x57d7d2{static get[_0x5a53('0x96')](){return _0x5a53('0xe1');}static get[_0x5a53('0x95')](){return[_0x4cf062,_0x5d2c50,_0xcfc59f];}constructor(_0x3f5119){super(_0x3f5119),this['adapter']=null,this[_0x5a53('0x92')]=null,this[_0x5a53('0x2b')]=new B(this[_0x5a53('0x98')]),this[_0x5a53('0x8d')]=this[_0x5a53('0x98')][_0x5a53('0xb4')]['get'](_0x5a53('0xd0'))||_0x5a53('0x44'),this[_0x5a53('0x9d')]=new Map(),this[_0x5a53('0x7d')]=null;const _0x211f3d=_0x16dc66();this[_0x5a53('0x105')]={'history':this[_0x5a53('0x98')][_0x5a53('0x58')][_0x5a53('0x55')]['history'],'getLatestVersion':()=>Promise[_0x5a53('0xa7')](this['editor']['model']['document'][_0x5a53('0xd2')]),'getCurrentRevisionId':()=>_0x211f3d},this[_0x5a53('0x62')]('isReady',!0x1),this[_0x5a53('0x62')](_0x5a53('0x5a'),!0x0),this[_0x5a53('0x62')]('_isPendingUpdate',!0x1),this[_0x5a53('0x98')][_0x5a53('0xb4')][_0x5a53('0xce')](_0x5a53('0xd6'),!0x0),this[_0x5a53('0x98')]['conversion'][_0x5a53('0x10c')](_0x5a53('0x32'))[_0x5a53('0x26')]({'view':_0x5a53('0x10')});}[_0x5a53('0xa0')](){this[_0x5a53('0xbe')]=this['editor'][_0x5a53('0xaa')][_0x5a53('0xc6')]('RevisionsRepository'),this['_setConversion'](),this[_0x5a53('0x98')][_0x5a53('0xfc')]['on'](_0x5a53('0x8b'),()=>{const _0x3d16e9=this[_0x5a53('0xbe')][_0x5a53('0x71')](0x0),_0x433747=_0x3d16e9&&null===_0x3d16e9['creator']?_0x3d16e9:null;if(this['_continueCurrentRevision']=!!_0x433747&&this[_0x5a53('0x98')][_0x5a53('0xb4')]['get'](_0x5a53('0xd6')),this[_0x5a53('0x98')][_0x5a53('0xaa')][_0x5a53('0x9f')](_0x5a53('0x16'))){const _0x1248c2=this[_0x5a53('0x105')]['getCurrentRevisionId'](),_0x8d35cc=this[_0x5a53('0xbe')][_0x5a53('0x71')](_0x1248c2);if(_0x8d35cc)this['_startingVersion']=_0x8d35cc[_0x5a53('0xc8')],this[_0x5a53('0xef')]=!0x1;else{const _0x178a30=this['_source'][_0x5a53('0xdb')][_0x5a53('0x9c')][_0x5a53('0x2c')](_0x30344a=>!_0x30344a['_isInit']),_0x1169a7=_0x178a30?_0x178a30['baseVersion']:this[_0x5a53('0x105')]['history'][_0x5a53('0xd2')];_0x3d16e9?(_0x3d16e9[_0x5a53('0x5d')]<_0x1169a7&&_0x3d16e9[_0x5a53('0xfa')]({'toVersion':_0x1169a7}),this[_0x5a53('0xef')]?(this[_0x5a53('0x105')]['getCurrentRevisionId']=()=>_0x433747['id'],this[_0x5a53('0xcf')]=_0x433747['fromVersion']):(this['_startingVersion']=_0x3d16e9[_0x5a53('0x5d')],this[_0x5a53('0xef')]=!0x1)):(this[_0x5a53('0xcf')]=_0x1169a7,this[_0x5a53('0xef')]=!0x1);}}else _0x433747&&(this[_0x5a53('0x98')][_0x5a53('0x58')]['document'][_0x5a53('0xdb')][_0x5a53('0xd2')]=Math[_0x5a53('0x7b')](_0x433747[_0x5a53('0x5d')],this['editor']['model'][_0x5a53('0x55')][_0x5a53('0xdb')][_0x5a53('0xd2')]),_0x433747[_0x5a53('0xc8')]===_0x433747[_0x5a53('0x5d')]?(0x0!==_0x433747[_0x5a53('0xc8')]&&(this[_0x5a53('0x105')]['getCurrentRevisionId']=()=>_0x433747['id']),this[_0x5a53('0xef')]=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x433747['id'],this['_startingVersion']=_0x433747[_0x5a53('0xc8')])),this['_continueCurrentRevision']||(this[_0x5a53('0xcf')]=this[_0x5a53('0x98')][_0x5a53('0x58')][_0x5a53('0x55')]['version']);this['_revisionDataBuilder'][_0x5a53('0xa0')](this[_0x5a53('0x105')][_0x5a53('0xdb')]),this[_0x5a53('0x47')](this['_startingVersion']),this[_0x5a53('0xab')](this[_0x5a53('0xcf')]),this[_0x5a53('0xb0')]&&this[_0x5a53('0x1f')]();}),this[_0x5a53('0xdc')](_0x5a53('0xb3'))['to'](this,_0x5a53('0xcc'),_0x59d493=>!_0x59d493);}async[_0x5a53('0x5')](){if(this[_0x5a53('0xbe')]['length']>0x0){const _0xf4d3cb=this['repository']['getRevision'](0x0),_0x5c3e50=await this[_0x5a53('0x8')](_0xf4d3cb),_0x2afdf9=await this[_0x5a53('0xc')](_0xf4d3cb);this[_0x5a53('0x81')](_0x5c3e50,_0x2afdf9);}}[_0x5a53('0x27')](_0x9b46e){this['_source']=_0x9b46e;}async['update'](){const _0x5a5a96=await this[_0x5a53('0x105')][_0x5a53('0x33')]();if(_0x5a5a96>this[_0x5a53('0x92')][_0x5a53('0x5d')]){await this[_0x5a53('0x7e')]();const _0x32a780=this[_0x5a53('0xd3')]({'revision':this[_0x5a53('0x92')],'to':_0x5a5a96});_0x32a780[_0x5a53('0x36')]=_0x32a780[_0x5a53('0x109')][_0x5a53('0x52')](_0x4c1f23=>this['editor']['plugins'][_0x5a53('0xc6')](_0x5a53('0xa1'))[_0x5a53('0x12')](_0x4c1f23)),this['currentRevision'][_0x5a53('0xfa')](_0x32a780);}}async[_0x5a53('0x7e')](){this['_continueCurrentRevision']&&!this[_0x5a53('0x7d')]&&(await this[_0x5a53('0x51')](this[_0x5a53('0x92')]),this[_0x5a53('0x2b')]['loadState'](this['currentRevision']),this[_0x5a53('0x7d')]={'fromVersion':this[_0x5a53('0x92')][_0x5a53('0xc8')],'authors':this[_0x5a53('0x92')]['authors'][_0x5a53('0x69')]()});}async[_0x5a53('0x18')](_0x2f7349={},_0x3518c6=null){const _0x2294f9=[];await this[_0x5a53('0x7e')](),this[_0x5a53('0xef')]=!0x1,_0x3518c6>this[_0x5a53('0x92')][_0x5a53('0x5d')]&&(_0x3518c6=null),null===_0x3518c6&&(_0x3518c6=await this[_0x5a53('0x105')]['getLatestVersion']());const _0x4f18bd=this[_0x5a53('0xf')](_0x3518c6),_0x5332dc=this[_0x5a53('0xd3')]({'from':_0x4f18bd,'to':_0x3518c6});if(this[_0x5a53('0x92')]['toVersion']<_0x3518c6){const _0x55fb39=this[_0x5a53('0xd3')]({'revision':this[_0x5a53('0x92')],'from':_0x3518c6,'to':_0x3518c6});_0x55fb39[_0x5a53('0x36')]=[],_0x55fb39[_0x5a53('0x109')]=[],_0x55fb39['id']=this['currentRevision']['id'],this[_0x5a53('0x92')][_0x5a53('0xfa')](_0x55fb39,!0x0),delete _0x55fb39[_0x5a53('0x36')],_0x2294f9[_0x5a53('0x48')](_0x55fb39);}_0x2f7349['creatorId']=this[_0x5a53('0x98')][_0x5a53('0xaa')]['get'](_0x5a53('0xa1'))['me']['id'],_0x2f7349['name']=_0x2f7349[_0x5a53('0x90')]||null,_0x2f7349['id']=_0x2f7349['id']||_0x16dc66(),_0x2f7349={..._0x2f7349,..._0x5332dc};const _0x459608=this[_0x5a53('0x86')](_0x2f7349);_0x2294f9[_0x5a53('0x48')](_0x2f7349);const _0x22b23e=this[_0x5a53('0xbe')]['getIndex'](_0x459608);if(0x0!==_0x22b23e){const _0x212227=this[_0x5a53('0xbe')][_0x5a53('0x71')](_0x22b23e-0x1);if(_0x212227[_0x5a53('0xc8')]!==_0x3518c6){const _0x2dc0=this[_0x5a53('0x2b')][_0x5a53('0x60')](_0x3518c6,_0x212227['toVersion']),_0xaf6197={'id':_0x212227['id'],'diffData':_0x2dc0[_0x5a53('0x64')],'authorsIds':_0x2dc0[_0x5a53('0x109')],'authors':_0x2dc0['authorsIds'][_0x5a53('0x52')](_0x1750a0=>this[_0x5a53('0x98')]['plugins'][_0x5a53('0xc6')](_0x5a53('0xa1'))['getUser'](_0x1750a0)),'fromVersion':_0x3518c6};_0x212227===this[_0x5a53('0x92')]&&(_0xaf6197[_0x5a53('0x106')]=new Date(_0x2f7349[_0x5a53('0x106')][_0x5a53('0xe0')]()+0xa)),_0x212227[_0x5a53('0xfa')](_0xaf6197,!0x0),delete _0xaf6197[_0x5a53('0x36')],_0x2294f9[_0x5a53('0x48')](_0xaf6197);}}if(this['adapter']){for(const _0x153866 of _0x2294f9)this[_0x5a53('0xc2')](_0x153866['id'],_0x153866,!0x0);this[_0x5a53('0x1f')]();}return _0x459608;}['addRevisionData'](_0x392acf){const _0x36491b=this[_0x5a53('0xbe')][_0x5a53('0x21')](_0x392acf);return this['adapter']&&_0x36491b['on'](_0x5a53('0xfa'),(_0x2ffdd5,_0x4b9680,_0x3a11a1)=>{_0x3a11a1||(this[_0x5a53('0xc2')](_0x4b9680['id'],_0x4b9680,!0x0),this['sendBufferedUpdates']());}),this[_0x5a53('0xbe')][_0x5a53('0x82')](_0x36491b,this[_0x5a53('0x4c')](_0x36491b)),_0x36491b;}async[_0x5a53('0x8')](_0xa88ab){await this['_loadRevisionData'](_0xa88ab);const _0x10a8d1={};for(const _0x18bb6f in _0xa88ab['diffData']){if(_0xa88ab[_0x5a53('0x64')][_0x18bb6f]['attachChange']&&!_0xa88ab[_0x5a53('0x64')][_0x18bb6f][_0x5a53('0xa4')][_0x5a53('0xf8')])continue;const _0x1e5aed=this[_0x5a53('0xa2')](JSON[_0x5a53('0xa5')](_0xa88ab[_0x5a53('0x64')][_0x18bb6f][_0x5a53('0x66')])),_0x35371f=this[_0x5a53('0x98')][_0x5a53('0x37')][_0x5a53('0xd1')][_0x5a53('0x55')],_0x175f8a=new _0x25fca0(_0x35371f,_0x1e5aed[_0x5a53('0x52')](_0x55db4f=>T(_0x55db4f,this[_0x5a53('0x98')])));this[_0x5a53('0x98')][_0x5a53('0xfc')][_0x5a53('0x14')][_0x5a53('0x7f')](_0x5a53('0x5b')),_0x10a8d1[_0x18bb6f]=this[_0x5a53('0x98')][_0x5a53('0xfc')][_0x5a53('0x14')][_0x5a53('0x91')](_0x175f8a),this[_0x5a53('0x98')][_0x5a53('0xfc')][_0x5a53('0x14')]['useFillerType'](_0x5a53('0x6f'));}return _0x10a8d1;}async[_0x5a53('0xc')](_0x15099f){await this[_0x5a53('0x51')](_0x15099f);const _0x3e2e08={};for(const _0xe911e2 in _0x15099f['diffData'])_0x15099f['diffData'][_0xe911e2]['attachChange']&&!_0x15099f[_0x5a53('0x64')][_0xe911e2]['attachChange'][_0x5a53('0xf8')]||(_0x3e2e08[_0xe911e2]=_0x15099f[_0x5a53('0x64')][_0xe911e2]['attributesAfter']||{});return _0x3e2e08;}[_0x5a53('0x1f')](){if(0x0===this[_0x5a53('0x9d')][_0x5a53('0x75')])return;if(this[_0x5a53('0xcc')])return;let _0x77176f=Array[_0x5a53('0x29')](this[_0x5a53('0x9d')][_0x5a53('0xbc')]());this[_0x5a53('0x9d')]['clear']();for(let _0x280436=0x0;_0x280436<_0x77176f[_0x5a53('0xf5')];_0x280436++){const _0x485736=_0x77176f[_0x280436];let _0x5f5637=!0x1;for(const _0x33c86b of Object[_0x5a53('0x94')](_0x485736))void 0x0===_0x485736[_0x33c86b]?delete _0x485736[_0x33c86b]:'id'!==_0x33c86b&&(_0x5f5637=!0x0);_0x5f5637||(_0x77176f[_0x280436]=null);}if(_0x77176f=_0x77176f[_0x5a53('0x13')](_0x27202d=>null!==_0x27202d),!_0x77176f[_0x5a53('0xf5')])return;for(let _0x20b0fc=0x0;_0x20b0fc<_0x77176f[_0x5a53('0xf5')];_0x20b0fc++){const _0x53bada=_0x77176f[_0x20b0fc];void 0x0!==_0x53bada['fromVersion']&&void 0x0===_0x53bada[_0x5a53('0x5d')]&&(_0x53bada[_0x5a53('0x5d')]=this['repository'][_0x5a53('0x71')](_0x53bada['id'])[_0x5a53('0x5d')]),void 0x0!==_0x53bada[_0x5a53('0x5d')]&&void 0x0===_0x53bada[_0x5a53('0xc8')]&&(_0x53bada[_0x5a53('0xc8')]=this[_0x5a53('0xbe')]['getRevision'](_0x53bada['id'])[_0x5a53('0xc8')]);}const _0xcaed9e=this[_0x5a53('0x98')][_0x5a53('0xb4')][_0x5a53('0xc6')](_0x5a53('0xd0'));this[_0x5a53('0xcc')]=!0x0,this[_0x5a53('0xf1')](),this[_0x5a53('0xb0')][_0x5a53('0x2e')](_0x77176f,_0xcaed9e)[_0x5a53('0xbf')](()=>{this[_0x5a53('0xcc')]=!0x1;})[_0x5a53('0xa9')](_0x8d4211=>{if(_0x8d4211)for(const _0x59aa89 of _0x8d4211)this['setRevisionData']({'id':_0x59aa89['id'],'createdAt':_0x59aa89['createdAt']});this['_removePendingAction'](),this['sendBufferedUpdates']();});}[_0x5a53('0x81')](_0x3ae424,_0x205a69){let _0xcd931b=this[_0x5a53('0x98')][_0x5a53('0xb4')][_0x5a53('0xc6')]('initialData'),_0x110428=this['editor'][_0x5a53('0xb4')][_0x5a53('0xc6')]('rootsAttributes');if(void 0x0===_0xcd931b){_0xcd931b={};for(const _0x6a7c74 of this[_0x5a53('0x98')][_0x5a53('0x58')]['document'][_0x5a53('0xb6')]())_0xcd931b[_0x6a7c74]='';}if(_0x5a53('0xfd')==typeof _0xcd931b&&(_0xcd931b={'main':_0xcd931b}),void 0x0===_0x110428){_0x110428={};for(const _0x3faa20 of this[_0x5a53('0x98')][_0x5a53('0x58')][_0x5a53('0x55')]['getRootNames']())_0x110428[_0x3faa20]={};}let _0x4af3ec=!0x1;const _0x5c2e7d=Object[_0x5a53('0x94')](_0xcd931b),_0x2ae5f0=Object['keys'](_0x3ae424);for(const _0x1330d2 of _0x5c2e7d){if(_0xcd931b[_0x1330d2]!==_0x3ae424[_0x1330d2]&&''!==_0xcd931b[_0x1330d2]['trim']()){_0x4af3ec=!0x0;break;}if(!_0x18bf5f(_0x110428[_0x1330d2],_0x205a69[_0x1330d2])&&Object[_0x5a53('0x94')](_0x110428[_0x1330d2])[_0x5a53('0xf5')]>0x0){_0x4af3ec=!0x0;break;}}_0x4af3ec||(_0x4af3ec=_0x2ae5f0['some'](_0x35ab20=>!_0x5c2e7d[_0x5a53('0x3')](_0x35ab20))),_0x4af3ec&&_0x2c7363(_0x5a53('0x10e'),{'editorData':_0xcd931b,'editorRootsAttributes':_0x110428,'revisionData':_0x3ae424,'revisionRootsAttributes':_0x205a69}),this[_0x5a53('0x98')][_0x5a53('0xb4')]['set']('initialData',_0x3ae424),this[_0x5a53('0x98')][_0x5a53('0xb4')][_0x5a53('0x62')](_0x5a53('0x4'),_0x205a69);}[_0x5a53('0xf1')](){if(!this[_0x5a53('0x43')]){const _0x11bef5=this[_0x5a53('0x98')]['plugins']['get'](_0x5a53('0xe6'));this[_0x5a53('0x43')]=_0x11bef5['add'](_0x4dd2ee(this[_0x5a53('0x98')]['locale'],_0x5a53('0x9e')));}}[_0x5a53('0x7a')](){this[_0x5a53('0x43')]&&(this['editor'][_0x5a53('0xaa')][_0x5a53('0xc6')](_0x5a53('0xe6'))['remove'](this[_0x5a53('0x43')]),this[_0x5a53('0x43')]=null);}[_0x5a53('0x4c')](_0x32daca){const _0x44ecc6=this[_0x5a53('0xbe')]['getRevisions']();_0x44ecc6[_0x5a53('0xd5')]();let _0x28e8c0=0x0;for(;_0x28e8c0<_0x44ecc6[_0x5a53('0xf5')];){const _0x228851=_0x44ecc6[_0x28e8c0];if(_0x228851===this[_0x5a53('0x92')]){_0x28e8c0++;continue;}if(_0x228851['id']===this[_0x5a53('0x8d')])break;const _0x209600=_0x32daca[_0x5a53('0x5d')]-_0x228851[_0x5a53('0x5d')]||_0x32daca[_0x5a53('0xc8')]-_0x228851[_0x5a53('0xc8')];if(_0x209600>0x0)break;if(_0x209600<0x0)_0x28e8c0++;else{if(!_0x32daca[_0x5a53('0x10d')]&&_0x228851[_0x5a53('0x10d')])break;if(_0x228851[_0x5a53('0x10d')]||!_0x32daca[_0x5a53('0x10d')]){if(_0x32daca[_0x5a53('0x106')]>_0x228851[_0x5a53('0x106')])break;_0x28e8c0++;}else _0x28e8c0++;}}return _0x28e8c0;}[_0x5a53('0x22')](_0x1d4c31){const _0x2feb46=this['repository'][_0x5a53('0x71')](_0x1d4c31['id']);if(_0x1d4c31[_0x5a53('0x106')]&&(_0x1d4c31['createdAt']=new Date(_0x1d4c31[_0x5a53('0x106')])),_0x1d4c31[_0x5a53('0x109')]){const _0x26c5ad=this[_0x5a53('0x98')][_0x5a53('0xaa')]['get'](_0x5a53('0xa1'));_0x1d4c31[_0x5a53('0x36')]=_0x1d4c31['authorsIds'][_0x5a53('0x52')](_0x181ee1=>_0x26c5ad[_0x5a53('0x12')](_0x181ee1));}_0x2feb46[_0x5a53('0xfa')](_0x1d4c31,!0x0);}[_0x5a53('0xd3')]({revision:_0x5bc825=null,from:_0x4e79b2=null,to:_0x46d821=null}){_0x4e79b2=null!==_0x4e79b2?_0x4e79b2:_0x5bc825[_0x5a53('0xc8')],_0x46d821=null!==_0x46d821?_0x46d821:_0x5bc825['toVersion'];const _0x3e4ba9=this[_0x5a53('0x2b')][_0x5a53('0x60')](_0x4e79b2,_0x46d821),_0x1ec2e5={'diffData':_0x3e4ba9[_0x5a53('0x64')],'authorsIds':_0x3e4ba9['authorsIds'],'fromVersion':_0x4e79b2,'toVersion':_0x46d821};if(!_0x5bc825||_0x46d821!==_0x5bc825[_0x5a53('0x5d')]){const _0x41b809=_0x46d821-0x1,_0x2e8244=this[_0x5a53('0x105')][_0x5a53('0xdb')][_0x5a53('0xf7')](_0x41b809);_0x1ec2e5['createdAt']=_0x2e8244&&_0x2e8244['createdAt']||new Date();}if(this[_0x5a53('0x7d')]&&_0x4e79b2===this['_loadedStateData'][_0x5a53('0xc8')])for(const _0x350567 of this['_loadedStateData']['authors'])_0x1ec2e5[_0x5a53('0x109')]['includes'](_0x350567['id'])||_0x1ec2e5[_0x5a53('0x109')][_0x5a53('0x48')](_0x350567['id']);return _0x1ec2e5;}[_0x5a53('0x51')](_0xbac829){if(!_0xbac829||_0xbac829['diffData'])return Promise[_0x5a53('0xa7')]();{const _0x3dd04f=this[_0x5a53('0x98')]['config'][_0x5a53('0xc6')]('collaboration.channelId');return this['adapter'][_0x5a53('0x71')]({'channelId':_0x3dd04f,'revisionId':_0xbac829['id']})[_0x5a53('0xa9')](_0x3a978b=>{_0xbac829[_0x5a53('0x64')]=_0x3a978b[_0x5a53('0x64')];});}}['_bufferUpdate'](_0x1a4dcf,_0x35e9ce,_0x4cdf42){if(this['_bufferedUpdates']['has'](_0x1a4dcf)){const _0x297500=this[_0x5a53('0x9d')][_0x5a53('0xc6')](_0x1a4dcf);_0x35e9ce=_0x4cdf42?{..._0x297500,..._0x35e9ce}:{..._0x35e9ce,..._0x297500};}this['_bufferedUpdates'][_0x5a53('0x62')](_0x1a4dcf,_0x35e9ce);}['_getFromVersion'](_0x5319ea){const _0xb95ae8=this[_0x5a53('0xbe')][_0x5a53('0x6c')]();_0xb95ae8[_0x5a53('0xd5')](),_0xb95ae8[_0x5a53('0x50')]();const _0x12344e=_0xb95ae8[_0x5a53('0x2c')](_0x4dc7c0=>_0x4dc7c0[_0x5a53('0x5d')]<=_0x5319ea)[_0x5a53('0x5d')];return _0x12344e<this[_0x5a53('0xcf')]?this['_startingVersion']:_0x12344e;}[_0x5a53('0x47')](_0x3d2feb){const _0x164562=this[_0x5a53('0xbe')][_0x5a53('0x71')](this[_0x5a53('0xbe')]['length']-0x1);if(_0x164562)this[_0x5a53('0x8d')]=_0x164562['id'];else{const _0x56d4e6=!this['editor'][_0x5a53('0x58')]['document'][_0x5a53('0xd')][_0x5a53('0x2c')](_0x4e8183=>this[_0x5a53('0x98')][_0x5a53('0x58')][_0x5a53('0x89')](_0x4e8183)),_0x186f10=this[_0x5a53('0x98')][_0x5a53('0xaa')][_0x5a53('0xc6')](_0x5a53('0xa1'))['me']['id'],_0x8d414d=_0x4dd2ee(this[_0x5a53('0x98')][_0x5a53('0xa3')],_0x56d4e6?_0x5a53('0x6e'):'Initial\x20revision');this['_makeRevision']({'from':_0x3d2feb,'to':_0x3d2feb,'id':this[_0x5a53('0x8d')],'name':_0x8d414d,'creatorId':_0x186f10});}}[_0x5a53('0xab')](_0x27c574){const _0x432a07=this[_0x5a53('0x105')][_0x5a53('0x46')]();this[_0x5a53('0x92')]=this['repository']['getRevision'](_0x432a07),this['currentRevision']||(this[_0x5a53('0x92')]=this['_makeRevision']({'from':_0x27c574,'to':_0x27c574,'id':_0x432a07,'name':'','creatorId':null}));}[_0x5a53('0x3d')]({name:_0x5e46d4,from:_0x3f607e,to:_0x4d94c8,creatorId:_0xcc3a28,id:_0x552c1f}){const _0x8d472=this[_0x5a53('0xd3')]({'from':_0x3f607e,'to':_0x4d94c8});_0x8d472[_0x5a53('0x90')]=_0x5e46d4,_0x8d472[_0x5a53('0xec')]=_0xcc3a28,_0x8d472['id']=_0x552c1f;const _0x356d95=this[_0x5a53('0x86')](_0x8d472);return this[_0x5a53('0xb0')]&&this['_bufferUpdate'](_0x8d472['id'],_0x8d472,!0x0),_0x356d95;}[_0x5a53('0xe5')](){this[_0x5a53('0x98')][_0x5a53('0x1b')][_0x5a53('0x10c')](_0x5a53('0x63'))[_0x5a53('0xc5')]({'model':'revision'});}[_0x5a53('0xa2')](_0x3187f3){return(_0x3187f3=_0x3187f3[_0x5a53('0x13')](_0x4188c8=>!_0x4188c8[_0x5a53('0x90')]||_0x5a53('0x102')!==_0x4188c8[_0x5a53('0x90')]&&_0x5a53('0x42')!==_0x4188c8[_0x5a53('0x90')]))['forEach'](_0x55a363=>{_0x5a53('0xfd')!=typeof _0x55a363&&(_0x55a363[_0x5a53('0x3e')]=this['_removeRevisionMarkers'](_0x55a363['children']),_0x55a363['attributes']=_0x55a363[_0x5a53('0x39')][_0x5a53('0x13')](_0x42b11a=>!_0x42b11a[0x0]['startsWith'](_0x5a53('0x3c'))));}),_0x3187f3;}}function T(_0xd5efa6,_0x2c9df6){const _0x24cc45=_0x2c9df6[_0x5a53('0x37')][_0x5a53('0xd1')][_0x5a53('0x55')];if(_0x5a53('0xfd')==typeof _0xd5efa6)return new _0x10bbbb(_0x24cc45,_0xd5efa6);{const _0x1476dc=_0xd5efa6['children'][_0x5a53('0x52')](_0x2aa1dd=>T(_0x2aa1dd,_0x2c9df6));return new(F[_0xd5efa6[(_0x5a53('0xd7'))]]||_0x11423a)(_0x24cc45,_0xd5efa6['name'],_0xd5efa6[_0x5a53('0x39')],_0x1476dc);}}class B{constructor(_0x419878){this['editor']=_0x419878,this['_savedMetaData']=new Map(),this[_0x5a53('0xd8')]=-0x1,this[_0x5a53('0xb5')]=-0x1,this[_0x5a53('0x8e')]=new Map(),this[_0x5a53('0xe4')]=new Map(),this[_0x5a53('0x4d')]=new Map(),this[_0x5a53('0x56')]=new Map(),this[_0x5a53('0xb')]=new Map(),this['_idsRoots']=new Map(),this[_0x5a53('0x6d')]=new Map(),this['_touched']=new Map(),this[_0x5a53('0x79')]=new Map(),this[_0x5a53('0x20')]=new Map(),this[_0x5a53('0x9a')]=0x1,this['_initialRoots']=this[_0x5a53('0x98')][_0x5a53('0x58')][_0x5a53('0x55')][_0x5a53('0xb6')](),this[_0x5a53('0x41')]['push'](_0x5a53('0xfb'));}[_0x5a53('0xa0')](_0x3890b0){this[_0x5a53('0x68')]=_0x3890b0;const _0x4e5698=new Map(),_0x266df2=new Map(),_0x379873=this[_0x5a53('0x98')][_0x5a53('0x58')][_0x5a53('0x55')][_0x5a53('0xb6')](!0x0);_0x379873[_0x5a53('0x48')](_0x5a53('0xfb'));for(const _0x270761 of _0x379873){const _0xa5151=this['editor']['model']['document'][_0x5a53('0xbd')](_0x270761),_0xa9fa36=J(_0xa5151);_0x4e5698[_0x5a53('0x62')](_0x270761,_0xa9fa36),_0x266df2[_0x5a53('0x62')](_0x270761,Object[_0x5a53('0xcb')](_0xa5151['getAttributes']()));}const _0x4972b8=Array[_0x5a53('0x29')](this[_0x5a53('0x98')][_0x5a53('0x58')][_0x5a53('0x4b')])[_0x5a53('0x52')](_0x57dce6=>[_0x57dce6[_0x5a53('0x90')],_0x57dce6[_0x5a53('0xe3')]()]),_0x26bc1c=this[_0x5a53('0x68')][_0x5a53('0xd2')];this[_0x5a53('0x1c')](_0x26bc1c,_0x4e5698,_0x4972b8,_0x266df2),this['_startingRevisionId']=this[_0x5a53('0x9a')];const _0x451a62=new Map(),_0x50c3a1=new Map();for(const _0x5c9c71 of this[_0x5a53('0x41')]){const _0x774c83=H(_0x5c9c71);_0x451a62['set'](_0x5c9c71,_0x774c83),_0x50c3a1['set'](_0x5c9c71,{});}this[_0x5a53('0x1c')](Number[_0x5a53('0xf3')],_0x451a62,[],_0x50c3a1);}['getData'](_0x1d088a,_0x3ae9fe){if(this[_0x5a53('0xd8')]===_0x1d088a&&this['_lastTo']<=_0x3ae9fe)this[_0x5a53('0x59')][_0x5a53('0x75')]>0x1&&this[_0x5a53('0x101')](this['_lastTo']),this[_0x5a53('0x1')](this[_0x5a53('0xb5')],_0x3ae9fe,!0x0);else{if(!this[_0x5a53('0x59')][_0x5a53('0x9f')](_0x1d088a)){const _0x2f9f18=this['_getPreviousFrom'](_0x1d088a);this['_calculateMetaData'](_0x2f9f18,_0x1d088a,!0x1);}this[_0x5a53('0x9b')](_0x1d088a,_0x3ae9fe,!0x0);}return this[_0x5a53('0xd8')]=_0x1d088a,this[_0x5a53('0xb5')]=_0x3ae9fe,this[_0x5a53('0x38')]();}[_0x5a53('0x104')](_0xf13801){this[_0x5a53('0x97')](),this[_0x5a53('0xd8')]=_0xf13801[_0x5a53('0xc8')],this[_0x5a53('0xb5')]=_0xf13801[_0x5a53('0x5d')];for(const _0x41ff63 in _0xf13801['diffData']){const _0x4362d9=_0xf13801[_0x5a53('0x64')][_0x41ff63][_0x5a53('0xa4')],_0x36c0bb=_0x108074(_0xf13801['diffData'][_0x41ff63][_0x5a53('0xea')])||{},_0x283972=this[_0x5a53('0x1d')](_0xf13801['diffData'][_0x41ff63][_0x5a53('0xcd')]);_0x283972[_0x5a53('0xee')]=_0x41ff63,_0x283972[_0x5a53('0x35')]=!_0x4362d9||!_0x4362d9[_0x5a53('0xf8')],_0x283972[_0x5a53('0xf8')]=()=>_0x283972[_0x5a53('0x35')],this['_baseRoots'][_0x5a53('0x62')](_0x41ff63,_0x283972),this['_baseRootsAttributes'][_0x5a53('0x62')](_0x41ff63,_0x36c0bb),_0x4362d9&&this[_0x5a53('0x20')][_0x5a53('0x62')](_0x41ff63,_0x4362d9);const _0x164565=this[_0x5a53('0x7')](_0x283972);this['_baseIdsRoots']['set'](_0x41ff63,_0x164565);for(const [_0x2d644e,_0x5c48f9]of _0x283972[_0x5a53('0x4b')]){if(!_0x2d644e[_0x5a53('0x17')](_0x5a53('0xaf')))continue;const _0xbb39b=_0x2d644e[_0x5a53('0xf0')](':')[0x2];for(const _0x31a28b of _0x5c48f9[_0x5a53('0x25')]({'singleCharacters':!0x0})){const _0x27afbb=this[_0x5a53('0x10b')](_0x31a28b),_0x3130a5=_0x5a53('0xdf')==_0x31a28b[_0x5a53('0xd7')]?_0x31a28b[_0x5a53('0x4f')][_0x5a53('0x88')]['slice'](0x0,-0x1):_0x31a28b['previousPosition'][_0x5a53('0x88')],_0x4e2257=_0x164565[_0x5a53('0xc9')](_0x3130a5)['getAttribute'](_0x27afbb);this['_touched']['set'](_0x4e2257,{'userId':_0xbb39b});}}}this[_0x5a53('0x7c')]=this[_0x5a53('0x9a')];const _0x2bedee=[...Array(this[_0x5a53('0x9a')])[_0x5a53('0x94')]()][_0x5a53('0x69')](0x1)['filter'](_0x1e3152=>!this[_0x5a53('0x31')][_0x5a53('0x9f')](_0x1e3152));let _0x3f26c5=0x0;const _0x218ff4=new Map();for(const _0x2a375a in _0xf13801['diffData']){const _0x13a136=_0xf13801[_0x5a53('0x64')][_0x2a375a][_0x5a53('0xa4')],_0x4e7c6e=_0x108074(_0xf13801['diffData'][_0x2a375a][_0x5a53('0xac')])||{},_0x99fe69=this[_0x5a53('0x1d')](_0xf13801['diffData'][_0x2a375a][_0x5a53('0x66')]);_0x99fe69[_0x5a53('0xee')]=_0x2a375a,_0x99fe69['_isAttached']=!_0x13a136||_0x13a136[_0x5a53('0xf8')],_0x99fe69[_0x5a53('0xf8')]=()=>_0x99fe69[_0x5a53('0x35')],this[_0x5a53('0xe4')][_0x5a53('0x62')](_0x2a375a,_0x99fe69),this[_0x5a53('0x4d')][_0x5a53('0x62')](_0x2a375a,_0x4e7c6e);const _0x26edc6=this[_0x5a53('0x7')](_0x99fe69,Number[_0x5a53('0xf3')]);this[_0x5a53('0xc4')][_0x5a53('0x62')](_0x2a375a,_0x26edc6),_0x218ff4[_0x5a53('0x62')](_0x2a375a,_0x99fe69[_0x5a53('0xf8')]()?_0x4e7c6e:{});for(const [_0x1eefa6,_0x2cb8f9]of _0x99fe69[_0x5a53('0x4b')]){if(!_0x1eefa6[_0x5a53('0x17')]('revision:'))continue;const _0x25396a=_0x1eefa6[_0x5a53('0xf0')](':')[0x2];for(const _0x4b169f of _0x2cb8f9[_0x5a53('0x25')]({'singleCharacters':!0x0})){const _0x1372da=this[_0x5a53('0x10b')](_0x4b169f),_0x20e537=this[_0x5a53('0x9a')]++,_0x23be76=_0x5a53('0xdf')==_0x4b169f[_0x5a53('0xd7')]?_0x4b169f['previousPosition']['path']['slice'](0x0,-0x1):_0x4b169f['previousPosition'][_0x5a53('0x88')];_0x26edc6[_0x5a53('0xc9')](_0x23be76)[_0x5a53('0x1e')](_0x1372da,_0x20e537),this['_touched'][_0x5a53('0x62')](_0x20e537,{'userId':_0x25396a});}}for(const _0x3fe8f0 of this[_0x5a53('0x98')]['model']['createRangeIn'](_0x99fe69)[_0x5a53('0x25')]({'singleCharacters':!0x0})){const _0x3f1d1d=this[_0x5a53('0x10b')](_0x3fe8f0),_0x3165fa='elementEnd'==_0x3fe8f0[_0x5a53('0xd7')]?_0x3fe8f0[_0x5a53('0x4f')][_0x5a53('0x88')][_0x5a53('0x69')](0x0,-0x1):_0x3fe8f0[_0x5a53('0x4f')][_0x5a53('0x88')],_0x23157f=_0x26edc6[_0x5a53('0xc9')](_0x3165fa);_0x23157f[_0x5a53('0x19')](_0x3f1d1d)>0x0||_0x23157f[_0x5a53('0x1e')](_0x3f1d1d,_0x2bedee[_0x3f26c5++]);}for(const [_0x13bcf4,_0x50bf72]of _0x99fe69[_0x5a53('0x4b')])_0x13bcf4[_0x5a53('0x17')](_0x5a53('0xaf'))||this['_markers'][_0x5a53('0x62')](_0x13bcf4,_0x50bf72);}const _0x529606=H(_0x5a53('0xfb'));this[_0x5a53('0x56')][_0x5a53('0x62')]('$graveyard',_0x529606),this[_0x5a53('0x6d')][_0x5a53('0x62')]('$graveyard',this[_0x5a53('0x7')](_0x529606,0x1));const _0x241bef=H(_0x5a53('0xfb'));this[_0x5a53('0xe4')][_0x5a53('0x62')]('$graveyard',_0x241bef),this[_0x5a53('0xc4')]['set'](_0x5a53('0xfb'),this[_0x5a53('0x7')](_0x241bef,0x1));const _0x4307c6=Array['from'](this[_0x5a53('0xe4')])[_0x5a53('0x52')](([_0x55ea2c,_0x5a9bdf])=>[_0x55ea2c,J(_0x5a9bdf)]);this['_saveMetaData'](this['_lastTo'],_0x4307c6,this['_markers'],_0x218ff4);}[_0x5a53('0x1d')](_0x21a606){const _0x412779=JSON['parse'](_0x21a606),_0x2fcc72=this[_0x5a53('0x98')][_0x5a53('0x37')][_0x5a53('0xd1')][_0x5a53('0x55')],_0x14fd66=new _0x25fca0(_0x2fcc72,_0x412779[_0x5a53('0x52')](_0x3a70c3=>T(_0x3a70c3,this[_0x5a53('0x98')])));return this['editor']['data'][_0x5a53('0x9')](_0x14fd66);}[_0x5a53('0x1c')](_0x3d4b8f,_0x390b0e,_0x47e927,_0x381362){const _0x3811a4=new Map(_0x390b0e),_0x3d4c87=new Map(_0x108074(_0x381362)),_0x30ea3f=new Map();for(const [_0x44cea0,_0x307bae]of _0x47e927)_0x30ea3f[_0x5a53('0x62')](_0x44cea0,{'start':_0x307bae[_0x5a53('0x24')][_0x5a53('0xe9')](),'end':_0x307bae[_0x5a53('0xd9')][_0x5a53('0xe9')](),'rootName':_0x307bae['root'][_0x5a53('0xee')]});this[_0x5a53('0x59')][_0x5a53('0x62')](_0x3d4b8f,{'roots':_0x3811a4,'markers':_0x30ea3f,'rootsAttributes':_0x3d4c87});}['_removeMetaData'](_0x1742d6){this[_0x5a53('0x59')]['delete'](_0x1742d6);}[_0x5a53('0x72')](){this[_0x5a53('0x97')](),this[_0x5a53('0xd8')]=-0x1,this[_0x5a53('0xb5')]=-0x1,this[_0x5a53('0x59')][_0x5a53('0x23')](),this['init'](this[_0x5a53('0x68')]);}['_reset'](){this[_0x5a53('0x31')][_0x5a53('0x23')](),this[_0x5a53('0x79')][_0x5a53('0x23')](),this[_0x5a53('0x20')][_0x5a53('0x23')](),this['_diffRoots'][_0x5a53('0x23')](),this['_diffRootsAttributes'][_0x5a53('0x23')](),this['_baseRoots'][_0x5a53('0x23')](),this[_0x5a53('0xb')][_0x5a53('0x23')](),this['_idsRoots'][_0x5a53('0x23')](),this[_0x5a53('0x6d')]['clear'](),this[_0x5a53('0x8e')][_0x5a53('0x23')](),this[_0x5a53('0x9a')]=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x34ede0,_0x562e0d=null){let _0x51789f=null;_0x34ede0['is'](_0x5a53('0x4e'))||(_0x51789f=new _0x4097d0(_0x34ede0['name'],{'vid_start':null===_0x562e0d?this[_0x5a53('0x9a')]++:_0x562e0d++}));const _0x5afc13=[];for(const _0x2bfe4f of _0x34ede0[_0x5a53('0x54')]())if(_0x2bfe4f['is'](_0x5a53('0x99'))){_0x5afc13[_0x5a53('0x48')](this['_makeIdsRoot'](_0x2bfe4f,_0x562e0d));const _0x54cfd3=_0x5afc13[_0x5afc13[_0x5a53('0xf5')]-0x1];null!==_0x562e0d&&(_0x562e0d=_0x54cfd3['is'](_0x5a53('0x99'),'$text')?_0x54cfd3[_0x5a53('0x19')](_0x5a53('0x77'))+0x1:_0x54cfd3[_0x5a53('0x19')](_0x5a53('0x30'))+0x1);}else for(let _0xe8a1ac=0x0;_0xe8a1ac<_0x2bfe4f[_0x5a53('0xa')];_0xe8a1ac++)_0x5afc13[_0x5a53('0x48')](new _0x4097d0('$text',{'vid':null===_0x562e0d?this[_0x5a53('0x9a')]++:_0x562e0d++}));if(_0x34ede0['is']('documentFragment')){const _0x3ac009=H(_0x34ede0[_0x5a53('0xee')]);return _0x3ac009[_0x5a53('0x34')](0x0,_0x5afc13),_0x3ac009;}return _0x51789f['_setAttribute'](_0x5a53('0x30'),null===_0x562e0d?this[_0x5a53('0x9a')]++:_0x562e0d++),_0x51789f[_0x5a53('0x34')](0x0,_0x5afc13),_0x51789f;}[_0x5a53('0x9b')](_0x1c0e5f,_0x24e536,_0x258c89){this[_0x5a53('0x97')]();const {roots:_0x43e03c,markers:_0x4a5747,rootsAttributes:_0x25fbdc}=this[_0x5a53('0x59')]['get'](_0x1c0e5f);this[_0x5a53('0x56')]=new Map(_0x43e03c),this['_baseRootsAttributes']=new Map(_0x108074(_0x25fbdc));for(const [_0x297c38,_0x284a27]of this[_0x5a53('0x56')])if(_0x5a53('0xfb')!==_0x297c38&&(this[_0x5a53('0xe4')][_0x5a53('0x62')](_0x297c38,J(_0x284a27)),this[_0x5a53('0x4d')]=new Map(_0x108074(_0x25fbdc)),_0x258c89)){const _0x115141=this[_0x5a53('0x9a')];this[_0x5a53('0xc4')][_0x5a53('0x62')](_0x297c38,this['_makeIdsRoot'](_0x284a27)),this[_0x5a53('0x6d')][_0x5a53('0x62')](_0x297c38,this['_makeIdsRoot'](_0x284a27,_0x115141));}this[_0x5a53('0x7c')]=this[_0x5a53('0x9a')],this[_0x5a53('0xe4')]['set'](_0x5a53('0xfb'),J(this[_0x5a53('0x56')][_0x5a53('0xc6')](_0x5a53('0xfb')))),_0x258c89&&this[_0x5a53('0xc4')][_0x5a53('0x62')](_0x5a53('0xfb'),this['_makeIdsRoot'](this[_0x5a53('0x56')][_0x5a53('0xc6')](_0x5a53('0xfb'))));for(const [_0x3a68c9,_0x2e7e55]of _0x4a5747){const _0xe19bed=this[_0x5a53('0x56')][_0x5a53('0xc6')](_0x2e7e55['rootName']),_0x25af4b=this['_diffRoots'][_0x5a53('0xc6')](_0x2e7e55['rootName']),_0x11356e=new _0x57df39(this[_0x5a53('0x100')](_0x2e7e55['start'],_0xe19bed),this[_0x5a53('0x100')](_0x2e7e55['end'],_0xe19bed)),_0x381476=this['_fixRange'](_0x11356e,_0x25af4b);_0xe19bed[_0x5a53('0x4b')][_0x5a53('0x62')](_0x3a68c9,_0x11356e),this['_markers']['set'](_0x3a68c9,_0x381476);}this[_0x5a53('0x1')](_0x1c0e5f,_0x24e536,_0x258c89);}['_applyOperations'](_0x4ca280,_0x5b4289,_0x5de0d1){for(const _0x200e94 of this[_0x5a53('0x68')][_0x5a53('0x87')](_0x4ca280,_0x5b4289))this[_0x5a53('0xc3')](_0x200e94,_0x5de0d1);for(const _0x49c1fe of this[_0x5a53('0xe4')][_0x5a53('0xbc')]())_0x49c1fe[_0x5a53('0x4b')]['clear']();for(const [_0x25b908,_0x524578]of this[_0x5a53('0x8e')]){this['_diffRoots'][_0x5a53('0xc6')](_0x524578['root'][_0x5a53('0xee')])['markers'][_0x5a53('0x62')](_0x25b908,_0x524578[_0x5a53('0xe9')]());}const _0x4dc4c3=new Map(),_0x42a615=new Map();for(const [_0x58e7f4,_0x1cdc4b]of this['_diffRoots'])_0x4dc4c3[_0x5a53('0x62')](_0x58e7f4,J(_0x1cdc4b)),_0x42a615[_0x5a53('0x62')](_0x58e7f4,this[_0x5a53('0x4d')][_0x5a53('0xc6')](_0x58e7f4));this[_0x5a53('0x1c')](_0x5b4289,_0x4dc4c3,this['_markers'],_0x42a615);}['_getPreviousFrom'](_0x1ac591){const _0x57bf11=Array[_0x5a53('0x29')](this['_savedMetaData'][_0x5a53('0x94')]());_0x57bf11[_0x5a53('0x103')]((_0x33d5d3,_0x288537)=>_0x33d5d3-_0x288537),_0x57bf11[_0x5a53('0xd5')]();for(const _0x36d24d of _0x57bf11)if(_0x36d24d<_0x1ac591)return _0x36d24d;return Number[_0x5a53('0xf3')];}[_0x5a53('0xe7')](_0x1d25c0,_0x42af3e){const _0x3f0964=Array[_0x5a53('0x29')](_0x42af3e[_0x5a53('0x4b')])[_0x5a53('0x52')](([_0x524963,_0x285227])=>[_0x524963,this[_0x5a53('0xa6')](_0x285227,_0x1d25c0)]);_0x1d25c0[_0x5a53('0x4b')]=new Map(_0x3f0964);}[_0x5a53('0x2f')](_0x1cc729){for(const _0x5cee24 of this['_markers'][_0x5a53('0xbc')]()){const _0x2af14e=_0x5cee24[_0x5a53('0xae')](_0x1cc729),_0x28106f=_0x57df39[_0x5a53('0xad')](_0x2af14e);_0x5cee24[_0x5a53('0x24')]=_0x28106f[_0x5a53('0x24')],_0x5cee24[_0x5a53('0xd9')]=_0x28106f[_0x5a53('0xd9')];}}[_0x5a53('0xc3')](_0x116b91,_0x1e73b5){if(_0x5a53('0xf6')==_0x116b91['type']||_0x5a53('0x28')==_0x116b91['type'])return void this[_0x5a53('0xba')](_0x116b91,_0x1e73b5);if(_0x5a53('0x3b')==_0x116b91[_0x5a53('0xd7')]){const _0x3b840f=_0x116b91[_0x5a53('0x1a')][_0x5a53('0x6a')][_0x5a53('0xee')];this['_diffRoots'][_0x5a53('0x9f')](_0x3b840f)||(this[_0x5a53('0xe4')][_0x5a53('0x62')](_0x3b840f,H(_0x3b840f,!0x0)),this[_0x5a53('0x4d')][_0x5a53('0x62')](_0x3b840f,{}),_0x1e73b5&&this[_0x5a53('0xc4')]['set'](_0x3b840f,H(_0x3b840f,!0x0)));}if(_0x5a53('0xed')==_0x116b91['type']||'removeRootAttribute'==_0x116b91[_0x5a53('0xd7')]||_0x5a53('0x6b')==_0x116b91[_0x5a53('0xd7')])return void this[_0x5a53('0x73')](_0x116b91);const _0x4645b1=this[_0x5a53('0xf2')](_0x116b91,this[_0x5a53('0xe4')]);if(_0x5a53('0xdd')!==_0x116b91[_0x5a53('0xd7')]&&(_0x4645b1[_0x5a53('0x11')](),this[_0x5a53('0x2f')](_0x4645b1)),_0x1e73b5)switch(_0x4645b1[_0x5a53('0xd7')]){case _0x5a53('0x3b'):this[_0x5a53('0x10a')](_0x116b91);break;case _0x5a53('0x80'):case _0x5a53('0xe'):case _0x5a53('0x15'):this[_0x5a53('0x84')](_0x116b91);break;case _0x5a53('0xfe'):this[_0x5a53('0x93')](_0x116b91);break;case _0x5a53('0xf0'):this[_0x5a53('0xeb')](_0x116b91);break;case _0x5a53('0xdd'):this['_handleMarkerOperation'](_0x116b91);}}[_0x5a53('0xf2')](_0x2fc9c4,_0x5f8d49){const _0x4eacc5=_0x2fc9c4[_0x5a53('0xe9')]();return _0x4eacc5[_0x5a53('0xff')]=_0x2fc9c4['_authorId'],this[_0x5a53('0x8a')](_0x4eacc5,_0x5f8d49),_0x4eacc5;}[_0x5a53('0x0')](_0x8cd5e2){return _0x8cd5e2[_0x5a53('0x52')](_0x25b489=>{const _0x649b36=this['_getVidAttributeName'](_0x25b489);return Number(_0x25b489[_0x5a53('0xc1')]['getAttribute'](_0x649b36));});}[_0x5a53('0xf9')](_0x393258,_0x480870){if(_0x393258['is'](_0x5a53('0x99'),_0x5a53('0xb7')))_0x480870[_0x5a53('0x48')]({'item':_0x393258,'type':_0x5a53('0x78')});else{_0x393258['is'](_0x5a53('0x99'))&&_0x480870['push']({'item':_0x393258,'type':'elementStart'});for(const _0x3c1142 of _0x393258[_0x5a53('0x54')]())this['_generateTape'](_0x3c1142,_0x480870);_0x393258['is'](_0x5a53('0x99'))&&_0x480870[_0x5a53('0x48')]({'item':_0x393258,'type':_0x5a53('0xdf')});}return _0x480870;}[_0x5a53('0x38')](){const _0x2eff28=new Map(this[_0x5a53('0x31')]),_0x236eea=new Map(_0x2eff28),_0x6c7240=new Map(),_0x10393a={'insertions':{},'deletions':{}},_0x2ff58e={'insertions':{},'deletions':{}},_0x2fbbbc=new Map(),_0x452ce7=new Set([...this[_0x5a53('0x56')][_0x5a53('0x94')](),...this['_diffRoots'][_0x5a53('0x94')]()]);_0x452ce7[_0x5a53('0xe8')](_0x5a53('0xfb'));for(const _0x5008e9 of _0x452ce7){const _0x1f4111=this[_0x5a53('0xe4')]['get'](_0x5008e9)||H(_0x5008e9,!0x1),_0x1163a4=this[_0x5a53('0x56')]['get'](_0x5008e9)||H(_0x5008e9,!0x1);_0x1f4111[_0x5a53('0xf8')]()||_0x1163a4[_0x5a53('0xf8')]()?(_0x10393a[_0x5a53('0x66')][_0x5008e9]=J(_0x1f4111),_0x10393a[_0x5a53('0xcd')][_0x5008e9]=J(_0x1163a4),this['_copyMarkers'](_0x10393a[_0x5a53('0xcd')][_0x5008e9],_0x1163a4),this[_0x5a53('0xe7')](_0x10393a[_0x5a53('0x66')][_0x5008e9],_0x1f4111),_0x2ff58e[_0x5a53('0x66')][_0x5008e9]=this[_0x5a53('0xf9')](this[_0x5a53('0xc4')][_0x5a53('0xc6')](_0x5008e9),[]),_0x2ff58e[_0x5a53('0xcd')][_0x5008e9]=this[_0x5a53('0xf9')](this[_0x5a53('0x6d')][_0x5a53('0xc6')](_0x5008e9)||H(_0x5008e9,!0x1),[])):_0x452ce7['delete'](_0x5008e9);}for(const _0x5ab8fa of _0x452ce7){const _0x373009=_0x2ff58e[_0x5a53('0x66')][_0x5ab8fa];for(const _0x2b1ac3 of _0x373009){const _0x440719=this[_0x5a53('0x10b')](_0x2b1ac3),_0x2b8624=_0x2b1ac3[_0x5a53('0xc1')][_0x5a53('0x19')](_0x440719);_0x236eea[_0x5a53('0xe8')](_0x2b8624),_0x2b8624>=this[_0x5a53('0x7c')]&&_0x6c7240['set'](_0x2b8624,_0x2eff28[_0x5a53('0xc6')](_0x2b8624));}}for(const _0x4439ab of _0x452ce7){const _0x4c1ca6=_0x2ff58e[_0x5a53('0x66')][_0x4439ab],_0x28c420=this[_0x5a53('0x0')](_0x2ff58e[_0x5a53('0xcd')][_0x4439ab]);let _0x4ad667=0x0;for(const _0x557a4a of _0x4c1ca6){const _0x8c2046=this[_0x5a53('0x10b')](_0x557a4a),_0x45915e=_0x557a4a['item'][_0x5a53('0x19')](_0x8c2046);if(!_0x6c7240['has'](_0x45915e)&&!_0x2fbbbc[_0x5a53('0x9f')](_0x45915e)){if(_0x236eea['has'](_0x45915e))_0x4ad667++;else{if(_0x45915e!=_0x28c420[_0x4ad667]){const _0x186187=_0x2eff28[_0x5a53('0xc6')](_0x45915e)||_0x2eff28[_0x5a53('0xc6')](_0x28c420[_0x4ad667]);for(;_0x45915e!=_0x28c420[_0x4ad667];)_0x236eea[_0x5a53('0x9f')](_0x28c420[_0x4ad667])||(_0x2fbbbc[_0x5a53('0x62')](_0x28c420[_0x4ad667],_0x186187),_0x2eff28['set'](_0x28c420[_0x4ad667],_0x186187)),_0x4ad667++;}_0x4ad667++;}}}}for(const _0xcbb73e of _0x452ce7){const _0xd32bad=_0x2ff58e[_0x5a53('0x66')][_0xcbb73e];for(const _0x2fec30 of _0xd32bad){const _0x4c3764=this['_getVidAttributeName'](_0x2fec30),_0x13fdc3=_0x2fec30[_0x5a53('0xc1')]['getAttribute'](_0x4c3764);if(_0x2fbbbc['has'](_0x13fdc3)){const _0x5e674e=_0x2fbbbc[_0x5a53('0xc6')](_0x13fdc3);_0x236eea[_0x5a53('0x9f')](_0x13fdc3)||_0x236eea[_0x5a53('0x62')](_0x13fdc3,{..._0x5e674e}),_0x6c7240[_0x5a53('0x62')](_0x13fdc3,{..._0x5e674e});}}}for(const _0x549301 of _0x236eea['keys']())_0x549301>=this['_startingRevisionId']&&_0x236eea[_0x5a53('0xe8')](_0x549301);const _0x1426ef=new Map();for(const _0x1e3818 of _0x452ce7){let _0x2b6cfb=_0x2ff58e['insertions'][_0x1e3818];for(const _0x311f75 of _0x2b6cfb)if(_0x311f75[_0x5a53('0xc1')]['is']('element',_0x5a53('0x3f'))){const _0x20819d=this[_0x5a53('0x10b')](_0x311f75),_0x52cc1b=_0x311f75['item'][_0x5a53('0x19')](_0x20819d);if(_0x6c7240[_0x5a53('0x9f')](_0x52cc1b)){const _0x4e4170=_0x311f75[_0x5a53('0xc1')]['parent']['parent']['getAttribute']('vid_start'),_0x359f7f=_0x1426ef[_0x5a53('0xc6')](_0x4e4170)||new Set();_0x359f7f[_0x5a53('0x5f')](_0x6c7240[_0x5a53('0xc6')](_0x52cc1b)[_0x5a53('0x49')]),_0x1426ef[_0x5a53('0x62')](_0x4e4170,_0x359f7f);}}_0x2b6cfb=_0x2ff58e[_0x5a53('0xcd')][_0x1e3818];for(const _0x45dd44 of _0x2b6cfb)if(_0x45dd44['item']['is']('element',_0x5a53('0x3f'))){const _0x2a3f30=this[_0x5a53('0x10b')](_0x45dd44),_0x5568c6=_0x45dd44[_0x5a53('0xc1')][_0x5a53('0x19')](_0x2a3f30);if(_0x236eea[_0x5a53('0x9f')](_0x5568c6)){const _0x52ad29=_0x45dd44[_0x5a53('0xc1')][_0x5a53('0x107')][_0x5a53('0x107')][_0x5a53('0x19')](_0x5a53('0x61')),_0x286a8e=_0x1426ef['get'](_0x52ad29)||new Set();_0x286a8e[_0x5a53('0x5f')](_0x236eea[_0x5a53('0xc6')](_0x5568c6)[_0x5a53('0x49')]),_0x1426ef[_0x5a53('0x62')](_0x52ad29,_0x286a8e);}}for(const _0x7a911d of _0x1426ef[_0x5a53('0x94')]())(_0x6c7240[_0x5a53('0x9f')](_0x7a911d)||_0x236eea['has'](_0x7a911d))&&_0x1426ef['delete'](_0x7a911d);}for(const _0x8351f9 of _0x452ce7){const _0x1829f1=_0x2ff58e['insertions'][_0x8351f9];let _0x413c34=null,_0x41bc7f=null;for(const _0x4fdf75 of _0x1829f1){const _0x50b38b=this[_0x5a53('0x10b')](_0x4fdf75),_0x2c6912=_0x4fdf75[_0x5a53('0xc1')][_0x5a53('0x19')](_0x50b38b),_0x757f72=_0x1426ef[_0x5a53('0xc6')](_0x2c6912);_0x757f72&&_0x5a53('0xa8')==_0x4fdf75[_0x5a53('0xd7')]&&(_0x413c34=Array['from'](_0x757f72)[0x0],_0x41bc7f=_0x4fdf75[_0x5a53('0xc1')][_0x5a53('0x19')]('vid_end')),_0x413c34&&(_0x236eea[_0x5a53('0x62')](_0x2c6912,{'userId':_0x413c34}),_0x6c7240[_0x5a53('0x62')](_0x2c6912,{'userId':_0x413c34})),_0x2c6912==_0x41bc7f&&(_0x413c34=null,_0x41bc7f=null);}}const _0x10f2dd={},_0x35da6f=new Set();for(const _0x104289 of _0x452ce7){const _0x4e65e6=_0x10393a['deletions'][_0x104289],_0x2e70f8=_0x10393a['insertions'][_0x104289];for(const {userId:_0x499884}of this['_touchedMarkers'][_0x5a53('0xbc')]())null!==_0x499884&&_0x35da6f[_0x5a53('0x5f')](_0x499884);for(const {userId:_0x3f4097}of this['_touchedRoots']['values']())null!==_0x3f4097&&_0x35da6f[_0x5a53('0x5f')](_0x3f4097);this[_0x5a53('0xb1')](_0x2e70f8,_0x2ff58e[_0x5a53('0x66')][_0x104289],_0x6c7240,_0x5a53('0xf4'),_0x35da6f),this['_markChanges'](_0x4e65e6,_0x2ff58e[_0x5a53('0xcd')][_0x104289],_0x236eea,_0x5a53('0x70'),_0x35da6f),_0x10f2dd[_0x104289]={'insertions':this['_prepareViewToSave'](_0x2e70f8),'deletions':this['_prepareViewToSave'](_0x4e65e6),'attachChange':this[_0x5a53('0x20')][_0x5a53('0xc6')](_0x104289)||null,'attributesBefore':_0x108074(this['_baseRootsAttributes']['get'](_0x104289))||{},'attributesAfter':_0x108074(this[_0x5a53('0x4d')]['get'](_0x104289))};}return{'diffData':_0x10f2dd,'authorsIds':Array[_0x5a53('0x29')](_0x35da6f)};}[_0x5a53('0x83')](_0x462b29){for(const [,_0x430f0a]of _0x462b29['markers']){const _0x1ee49d=_0x430f0a[_0x5a53('0x24')][_0x5a53('0xb9')]()[_0x5a53('0x13')](_0x16deef=>'tableCell'==_0x16deef[_0x5a53('0x90')]);for(const _0x3842d6 of _0x1ee49d)0x1==_0x3842d6[_0x5a53('0x4a')]&&_0x3842d6[_0x5a53('0x5c')](0x0)['is']('element',_0x5a53('0xc7'))&&_0x3842d6[_0x5a53('0x5c')](0x0)[_0x5a53('0x1e')](_0x5a53('0xbb'),!0x0);}}['_prepareViewToSave'](_0x39e478){this[_0x5a53('0x83')](_0x39e478);const _0x44d75c=this[_0x5a53('0x98')][_0x5a53('0xfc')][_0x5a53('0x2')](_0x39e478,{}),_0x19bc12=Array[_0x5a53('0x29')](_0x44d75c['getChildren']())[_0x5a53('0x52')](_0x16d063=>this['_getViewJson'](_0x16d063));return JSON[_0x5a53('0xca')](_0x19bc12);}[_0x5a53('0xb2')](_0x34ffd5){if(_0x34ffd5['is'](_0x5a53('0xb7')))return _0x34ffd5['data'];{const _0x41fd1d=_0x34ffd5;return{'type':Object[_0x5a53('0x94')](F)['find'](_0x5b1dc5=>_0x34ffd5 instanceof F[_0x5b1dc5]),'name':_0x41fd1d['name'],'attributes':Array[_0x5a53('0x29')](_0x41fd1d['getAttributes']()),'children':Array[_0x5a53('0x29')](_0x41fd1d[_0x5a53('0x54')]())[_0x5a53('0x52')](_0x17d1c7=>this['_getViewJson'](_0x17d1c7))};}}[_0x5a53('0xb1')](_0x39e5d4,_0x110209,_0x10cf07,_0x2b4f72,_0x13a2cc){let _0x47547b=null,_0x58ecde=null,_0x2bf021=0x0;const _0x1c609b=this[_0x5a53('0x98')]['model'];for(let _0x44279b=0x0;_0x44279b<_0x110209[_0x5a53('0xf5')];_0x44279b++){const _0x9a3cc=this[_0x5a53('0x10b')](_0x110209[_0x44279b]),_0x302127=_0x110209[_0x44279b]['item']['getAttribute'](_0x9a3cc),_0x414355=_0x10cf07['get'](_0x302127),_0x52ded3=_0x44279b==_0x110209[_0x5a53('0xf5')]-0x1;(!_0x47547b&&_0x414355&&(_0x47547b=_0x414355,_0x58ecde=_0x110209[_0x44279b]),_0x47547b&&(!_0x414355||_0x414355['userId']!=_0x47547b['userId']))&&(_0x15f9ec(_0x414355,q(_0x58ecde,_0x39e5d4,_0x1c609b),q(_0x110209[_0x44279b],_0x39e5d4,_0x1c609b)),_0x47547b=_0x414355||null,_0x58ecde=_0x414355?_0x110209[_0x44279b]:null),_0x47547b&&_0x52ded3&&_0x15f9ec(_0x414355,q(_0x58ecde,_0x39e5d4,_0x1c609b),G(_0x110209[_0x44279b],_0x39e5d4,_0x1c609b));}function _0x15f9ec(_0x2a55a1,_0x593379,_0xc2278c){const _0x173419=_0x47547b[_0x5a53('0x49')],_0x59f3d6=_0x5a53('0xaf')+_0x2b4f72+':'+_0x173419+':'+_0x2bf021++,_0x505e8f=_0x1c609b['createRange'](_0x593379,_0xc2278c);_0x39e5d4['markers'][_0x5a53('0x62')](_0x59f3d6,_0x505e8f),null!==_0x173419&&_0x13a2cc[_0x5a53('0x5f')](_0x173419);}}[_0x5a53('0x10b')](_0x1293be){switch(_0x1293be[_0x5a53('0xd7')]){case _0x5a53('0xa8'):return'vid_start';case'elementEnd':return _0x5a53('0x30');default:return _0x5a53('0x77');}}[_0x5a53('0x8a')](_0x385c5c,_0x5396f0){_0x385c5c[_0x5a53('0x8f')]=null;for(const _0x1a7a67 in _0x385c5c){const _0x2a1dec=_0x385c5c[_0x1a7a67];if(_0x2a1dec instanceof _0x212216){const _0x2cddae=_0x5396f0[_0x5a53('0xc6')](_0x2a1dec['root'][_0x5a53('0xee')]);_0x385c5c[_0x1a7a67]=this[_0x5a53('0x100')](_0x2a1dec,_0x2cddae);}if(_0x2a1dec instanceof _0x57df39){const _0x4a87e6=_0x5396f0[_0x5a53('0xc6')](_0x2a1dec[_0x5a53('0x6a')]['rootName']);_0x385c5c[_0x1a7a67]=this[_0x5a53('0xa6')](_0x2a1dec,_0x4a87e6);}_0x5a53('0x6a')===_0x1a7a67&&(_0x385c5c['root']=_0x5396f0[_0x5a53('0xc6')](_0x385c5c['root'][_0x5a53('0xee')]));}}[_0x5a53('0xa6')](_0xfde71b,_0x25fe59){return this[_0x5a53('0x98')]['model'][_0x5a53('0x65')](this['_fixPosition'](_0xfde71b[_0x5a53('0x24')],_0x25fe59),this[_0x5a53('0x100')](_0xfde71b[_0x5a53('0xd9')],_0x25fe59));}[_0x5a53('0x100')](_0x252e47,_0x2336b8){return this['editor'][_0x5a53('0x58')][_0x5a53('0x45')](_0x2336b8,_0x252e47[_0x5a53('0x88')],_0x252e47[_0x5a53('0x2d')]);}[_0x5a53('0x10a')](_0x3a03d4){const _0x222b84=this[_0x5a53('0xc4')]['get'](_0x3a03d4['position'][_0x5a53('0x6a')][_0x5a53('0xee')]),_0x4bdd9c=this[_0x5a53('0x100')](_0x3a03d4[_0x5a53('0x1a')],_0x222b84),_0x58b37c=null===_0x3a03d4[_0x5a53('0xff')]?null:_0x3a03d4[_0x5a53('0xff')]||this['editor']['plugins'][_0x5a53('0xc6')](_0x5a53('0xa1'))['me']['id'],_0x2bd271=_0x4bdd9c[_0x5a53('0x107')],_0x707400=this[_0x5a53('0x9a')],_0x30d38a=[];for(const _0x4d9f35 of _0x3a03d4[_0x5a53('0x8c')])if(_0x4d9f35['is']('element'))_0x30d38a[_0x5a53('0x48')](this[_0x5a53('0x7')](_0x4d9f35));else for(let _0x42c6bb=0x0;_0x42c6bb<_0x4d9f35[_0x5a53('0xa')];_0x42c6bb++)_0x30d38a[_0x5a53('0x48')](new _0x4097d0(_0x5a53('0xb7'),{'vid':this[_0x5a53('0x9a')]++}));const _0x102f4c=this[_0x5a53('0x9a')];for(let _0x47518d=_0x707400;_0x47518d<_0x102f4c;_0x47518d++)this[_0x5a53('0x31')][_0x5a53('0x62')](_0x47518d,{'userId':_0x58b37c});_0x2bd271['_insertChild'](_0x4bdd9c[_0x5a53('0x74')],_0x30d38a);}[_0x5a53('0x84')](_0x414fda){(_0x414fda=this[_0x5a53('0xf2')](_0x414fda,this[_0x5a53('0xc4')]))[_0x5a53('0x11')]();const _0x43749e=null===_0x414fda[_0x5a53('0xff')]?null:_0x414fda['_authorId']||this['editor'][_0x5a53('0xaa')]['get'](_0x5a53('0xa1'))['me']['id'],_0x402cd2=_0x414fda[_0x5a53('0x40')](),_0x3c296d=_0x402cd2[_0x5a53('0x107')],_0x129ecc=_0x402cd2[_0x5a53('0x74')];!function _0x12c29b(_0x13e6a5,_0x7df781,_0xc5508b,_0x4ee828){for(let _0x234f46=_0xc5508b;_0x234f46<_0x4ee828;_0x234f46++){const _0x506cbc=_0x7df781['getChild'](_0x234f46);_0x506cbc['is'](_0x5a53('0x99'),_0x5a53('0xb7'))?_0x13e6a5['set'](_0x506cbc[_0x5a53('0x19')](_0x5a53('0x77')),{'userId':_0x43749e}):(_0x13e6a5['set'](_0x506cbc[_0x5a53('0x19')](_0x5a53('0x61')),{'userId':_0x43749e}),_0x12c29b(_0x13e6a5,_0x506cbc,0x0,_0x506cbc[_0x5a53('0x4a')]),_0x13e6a5[_0x5a53('0x62')](_0x506cbc[_0x5a53('0x19')]('vid_end'),{'userId':_0x43749e}));}}(this['_touched'],_0x3c296d,_0x129ecc,_0x129ecc+_0x414fda[_0x5a53('0x3a')]);}[_0x5a53('0x93')](_0x148104){const _0x3e3b97=null===(_0x148104=this[_0x5a53('0xf2')](_0x148104,this[_0x5a53('0xc4')]))[_0x5a53('0xff')]?null:_0x148104[_0x5a53('0xff')]||this['editor'][_0x5a53('0xaa')][_0x5a53('0xc6')](_0x5a53('0xa1'))['me']['id'],_0x94ffb9=_0x148104['targetPosition'][_0x5a53('0x107')],_0x4f2a38=_0x148104[_0x5a53('0x85')][_0x5a53('0x107')],_0x45306f=_0x94ffb9['getAttribute'](_0x5a53('0x30')),_0x14856e=_0x4f2a38['getAttribute']('vid_start');_0x94ffb9['_setAttribute'](_0x5a53('0x30'),_0x4f2a38[_0x5a53('0x19')](_0x5a53('0x30'))),_0x4f2a38[_0x5a53('0x1e')]('vid_end',_0x45306f),this[_0x5a53('0x31')][_0x5a53('0x62')](_0x14856e,{'userId':_0x3e3b97}),this['_touched'][_0x5a53('0x62')](_0x45306f,{'userId':_0x3e3b97}),_0x148104[_0x5a53('0x11')]();}['_handleSplitOperation'](_0x4a22c2){const _0x51b6d8=null===(_0x4a22c2=this['_cloneOperation'](_0x4a22c2,this[_0x5a53('0xc4')]))[_0x5a53('0xff')]?null:_0x4a22c2[_0x5a53('0xff')]||this[_0x5a53('0x98')][_0x5a53('0xaa')][_0x5a53('0xc6')]('Users')['me']['id'],_0x1dead3=_0x4a22c2['graveyardPosition'],_0x1b8dd3=_0x4a22c2[_0x5a53('0x76')][_0x5a53('0x107')];_0x4a22c2[_0x5a53('0x11')]();const _0x7a0ccc=_0x1b8dd3[_0x5a53('0x19')](_0x5a53('0x30')),_0x3a84d3=_0x4a22c2[_0x5a53('0x53')][_0x5a53('0xde')];if(_0x1dead3){const _0x500096=_0x3a84d3[_0x5a53('0x19')](_0x5a53('0x30')),_0x3c7056=_0x1b8dd3[_0x5a53('0x19')](_0x5a53('0x30'));_0x1b8dd3['_setAttribute']('vid_end',_0x500096),_0x3a84d3[_0x5a53('0x1e')]('vid_end',_0x3c7056),this[_0x5a53('0x31')][_0x5a53('0x62')](_0x1b8dd3[_0x5a53('0x19')](_0x5a53('0x30')),{'userId':_0x51b6d8}),this[_0x5a53('0x31')][_0x5a53('0x62')](_0x3a84d3[_0x5a53('0x19')](_0x5a53('0x61')),{'userId':_0x51b6d8});}else{const _0x4ab56a=this[_0x5a53('0x9a')]++,_0x5373c1=this[_0x5a53('0x9a')]++;_0x1b8dd3[_0x5a53('0x1e')](_0x5a53('0x30'),_0x4ab56a),_0x3a84d3[_0x5a53('0x1e')](_0x5a53('0x61'),_0x5373c1),_0x3a84d3['_setAttribute'](_0x5a53('0x30'),_0x7a0ccc),this[_0x5a53('0x31')][_0x5a53('0x62')](_0x4ab56a,{'userId':_0x51b6d8}),this['_touched'][_0x5a53('0x62')](_0x5373c1,{'userId':_0x51b6d8});}}['_handleMarkerOperation'](_0x16fe0f){if(!_0x16fe0f[_0x5a53('0x67')])return;const _0x19ea9b=(_0x16fe0f=this[_0x5a53('0xf2')](_0x16fe0f,this[_0x5a53('0xe4')]))['oldRange']?_0x16fe0f[_0x5a53('0xda')][_0x5a53('0x6a')]:null,_0x2e1e76=_0x16fe0f['newRange']?_0x16fe0f[_0x5a53('0x5e')][_0x5a53('0x6a')]:null;_0x19ea9b&&this['_markers'][_0x5a53('0xe8')](_0x16fe0f['name']),_0x2e1e76&&this[_0x5a53('0x8e')]['set'](_0x16fe0f[_0x5a53('0x90')],_0x16fe0f[_0x5a53('0x5e')][_0x5a53('0xe9')]());const _0x52a27b=null===_0x16fe0f[_0x5a53('0xff')]?null:_0x16fe0f[_0x5a53('0xff')]||this[_0x5a53('0x98')][_0x5a53('0xaa')][_0x5a53('0xc6')](_0x5a53('0xa1'))['me']['id'],_0x5c301a=_0x16fe0f['name'];if(!this[_0x5a53('0x79')][_0x5a53('0x9f')](_0x5c301a))return void this[_0x5a53('0x79')][_0x5a53('0x62')](_0x5c301a,{'range':_0x16fe0f[_0x5a53('0xda')],'userId':_0x52a27b});const _0x62bf04=this[_0x5a53('0x79')][_0x5a53('0xc6')](_0x5c301a),_0x348cad=_0x62bf04[_0x5a53('0xd4')],_0x3dbf2a=_0x16fe0f[_0x5a53('0x5e')];null==_0x348cad&&null==_0x3dbf2a||_0x348cad&&_0x3dbf2a&&_0x348cad[_0x5a53('0x6')](_0x3dbf2a)?this['_touchedMarkers'][_0x5a53('0xe8')](_0x16fe0f[_0x5a53('0x90')]):_0x62bf04['userId']=_0x52a27b;}[_0x5a53('0xba')](_0x133d0c,_0x47b049){this['_diffRoots'][_0x5a53('0x9f')](_0x133d0c[_0x5a53('0xee')])?this[_0x5a53('0xe4')][_0x5a53('0xc6')](_0x133d0c[_0x5a53('0xee')])['_isAttached']=_0x133d0c[_0x5a53('0x57')]:(this[_0x5a53('0xe4')][_0x5a53('0x62')](_0x133d0c['rootName'],H(_0x133d0c[_0x5a53('0xee')],!0x0)),this[_0x5a53('0x4d')][_0x5a53('0x62')](_0x133d0c[_0x5a53('0xee')],{}),_0x47b049&&this[_0x5a53('0xc4')][_0x5a53('0x62')](_0x133d0c[_0x5a53('0xee')],H(_0x133d0c[_0x5a53('0xee')],!0x0)));const _0x2d7e97=null===_0x133d0c[_0x5a53('0xff')]?null:_0x133d0c[_0x5a53('0xff')]||this['editor'][_0x5a53('0xaa')][_0x5a53('0xc6')](_0x5a53('0xa1'))['me']['id'],_0x4e349d=this[_0x5a53('0x20')][_0x5a53('0xc6')](_0x133d0c[_0x5a53('0xee')]);_0x4e349d&&_0x4e349d[_0x5a53('0x49')]===_0x2d7e97?this['_touchedRoots']['delete'](_0x133d0c[_0x5a53('0xee')]):this[_0x5a53('0x20')][_0x5a53('0x62')](_0x133d0c[_0x5a53('0xee')],{'userId':_0x2d7e97,'isAttached':_0x133d0c[_0x5a53('0x57')]});}[_0x5a53('0x73')](_0x5d44fa){const _0x369800=this[_0x5a53('0x4d')]['get'](_0x5d44fa[_0x5a53('0x6a')][_0x5a53('0xee')]);null===_0x5d44fa[_0x5a53('0xb8')]?delete _0x369800[_0x5d44fa['key']]:_0x369800[_0x5d44fa[_0x5a53('0x108')]]=_0x5d44fa[_0x5a53('0xb8')];}}function J(_0x2c971f){const _0x5bed38=H(_0x2c971f[_0x5a53('0xee')],_0x2c971f[_0x5a53('0xf8')]());for(const _0x5e1617 of _0x2c971f['getChildren']()){const _0x48570e=_0x5e1617['_clone'](!0x0);_0x5bed38[_0x5a53('0xc0')](_0x48570e);}return _0x5bed38;}function H(_0x42b45d,_0x360480=!0x0){const _0x3cdffa=new _0x11fefb();return _0x3cdffa[_0x5a53('0xee')]=_0x42b45d,_0x3cdffa[_0x5a53('0x35')]=_0x360480,_0x3cdffa[_0x5a53('0xf8')]=()=>_0x3cdffa[_0x5a53('0x35')],_0x3cdffa;}function q(_0x436f37,_0x291686,_0x55b3b9){const _0x524726=_0x5a53('0xdf')==_0x436f37[_0x5a53('0xd7')]?_0x55b3b9[_0x5a53('0xe2')](_0x436f37['item'],_0x5a53('0xd9')):_0x55b3b9[_0x5a53('0x2a')](_0x436f37[_0x5a53('0xc1')]);return _0x55b3b9[_0x5a53('0x45')](_0x291686,_0x524726[_0x5a53('0x88')],_0x524726[_0x5a53('0x2d')]);}function G(_0x3b4bdf,_0x2fc931,_0x47eec4){const _0x35b1be=_0x5a53('0xa8')==_0x3b4bdf[_0x5a53('0xd7')]?_0x47eec4[_0x5a53('0xe2')](_0x3b4bdf[_0x5a53('0xc1')],0x0):_0x47eec4['createPositionAfter'](_0x3b4bdf['item']);return _0x47eec4[_0x5a53('0x45')](_0x2fc931,_0x35b1be['path'],_0x35b1be[_0x5a53('0x2d')]);}
|
|
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')]);}
|