@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231005.0 → 0.0.0-nightly-20231006.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 _0x3291=['_transformMarkers','_makeRevision','default','getIndex','$graveyard','_reset','loadState','_diffRoots','_handleOperation','Empty\x20document','_loadState','getRootNames','_source','createPositionFromPath','_createCurrentRevision','conversion','bind','tableCell','editor','revision-start','_appendChild','requires','_touchedRoots','data-revision-','getChild','getRevision','_lastTo','get','clone','getAncestors','createRange','_handleInsertOperation','parse','deletion','_getFromVersion','_isInit','find','editing','setSource','config','set','_revisionId','createPositionAt','startsWith','_generateTape','document','attributesBefore','_clone','newValue','_handleRootAttributeOperation','_bufferUpdate','_prepareViewToSave','children','_fixOperation','delete','PendingActions','_handleSplitOperation','getCurrentRevisionId','values','fromVersion','source','_saveMetaData','_continueCurrentRevision','stringify','rootName','parent','_authorId','$text','getRevisionDocumentData','view','_removeRevisionMarkers','_revisionDataBuilder','upcast','repository','max','add','newRange','processor','isEnabled','getOperations','getOperation','markerToData','_handleMarkerOperation','saveRevision','_findInsertionIndex','vid_end','root','attributes','_pendingAction','creator','getData','some','deletions','history','_replaceEditorDataWithRevisionData','baseVersion','createRangeIn','getNodeByPath','name','_handleMergeOperation','revision-end','move','getUser','buildRevisionData','_baseRoots','markers','_markChanges','_lastFrom','detachRoot','_getViewJson','paragraph','has','attributesAfter','reverse','_copyMarkers','_isPendingUpdate','ready','useFillerType','nodes','_handleMoveOperation','createPositionAfter','_startingRevisionId','keepParagraph','_touched','addRevisionData','documentFragment','model','_diffRootsAttributes','_touchedMarkers','oldRange','getTransformedByOperation','map','path','addRoot','_baseRootsAttributes','dataDowncast','toData','_operations','userId','sendBufferedUpdates','attachChange','_getBaseVids','revisionHistory.resumeUnsavedRevision','createdAt','Users','string','_setConversion','elementStart','addRevision','PENDING_ACTION_REVISION_HISTORY','toVersion','_baseIdsRoots','_applyOperations','collaboration.channelId','type','data','rootsAttributes','vid_start','isAttached','creatorId','sort','_addPendingAction','isAdd','_execute','finally','revision','_insertChild','clear','_fixPosition','nodeAfter','hasContent','getLatestVersion','resolve','_isAttached','position','currentRevision','trim','start','howMany','_savedMetaData','toModel','insert','initialData','length','key','_idsRoots','_loadRevisionData','_bufferedUpdates','_calculateMetaData','getChildren','update','getTime','push','getRevisionRootsAttributes','adapter','getWalker','init','filter','_markers','locale','changeRootAttribute','_processRootBeforeSave','for','NEGATIVE_INFINITY','split','end','insertions','_initialRevisionId','_makeModelFromViewString','version','item','createRevision','elementEnd','RevisionsRepository','previousPosition','_handleRootOperation','setRevisionData','_startingVersion','merge','plugins','Initial\x20revision','_cloneOperation','diffData','_loadedStateData','_fixRange','authorsIds','_createFromRanges','getRange','_getVidAttributeName','childCount','createPositionBefore','slice','keys','vid','getAttribute','forEach','affectsData','size','initial','includes','from','remove','_makeIdsRoot','revision:','RevisionTracker','roots','offsetSize','_setAttribute','getRoot','then','authors','addRootAttribute','element','getRevisions','_createInitialRevision','_getPreviousFrom','pluginName','toView','_removePendingAction','sourcePosition','_update','stickiness'];(function(_0x1cbf11,_0x32915d){const _0x7e4269=function(_0x2e4a95){while(--_0x2e4a95){_0x1cbf11['push'](_0x1cbf11['shift']());}};_0x7e4269(++_0x32915d);}(_0x3291,0xdc));const _0x7e42=function(_0x1cbf11,_0x32915d){_0x1cbf11=_0x1cbf11-0x0;let _0x7e4269=_0x3291[_0x1cbf11];return _0x7e4269;};import{Users as _0xea9101}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x3b9fdc,PendingActions as _0x2771f4}from'ckeditor5/src/core';import{logWarning as _0x54e453,uid as _0x51a59d}from'ckeditor5/src/utils';import{Position as _0x1676b1,Range as _0x34d5c0,Element as _0x36609d,DocumentFragment as _0x74f02d,ViewText as _0x48f39a,ViewElement as _0x81981c,ViewContainerElement as _0x28bfff,ViewAttributeElement as _0x23a0d2,ViewEmptyElement as _0xa6981a,ViewRawElement as _0xc8dfaf,ViewUIElement as _0x178a18,ViewDocumentFragment as _0x5c9d36}from'ckeditor5/src/engine';import _0xdf8cfa from'./revisionsrepository';import{getTranslation as _0xe2b8a9}from'./utils/common-translations';import{cloneDeep as _0xb9594c,isEqual as _0x43e511}from'lodash-es';const B={'c':_0x28bfff,'a':_0x23a0d2,'e':_0xa6981a,'r':_0xc8dfaf,'u':_0x178a18};export default class l extends _0x3b9fdc{static get[_0x7e42('0x24')](){return _0x7e42('0x18');}static get[_0x7e42('0x3f')](){return[_0xea9101,_0xdf8cfa,_0x2771f4];}constructor(_0x555ef7){super(_0x555ef7),this[_0x7e42('0xec')]=null,this[_0x7e42('0xd9')]=null,this[_0x7e42('0x71')]=new H(this[_0x7e42('0x3c')]),this['_initialRevisionId']=this[_0x7e42('0x3c')]['config'][_0x7e42('0x45')](_0x7e42('0xc3'))||_0x7e42('0x12'),this[_0x7e42('0xe5')]=new Map(),this['_loadedStateData']=null;const _0x468d90=_0x51a59d();this[_0x7e42('0x36')]={'history':this[_0x7e42('0x3c')][_0x7e42('0xa8')][_0x7e42('0x57')][_0x7e42('0x87')],'getLatestVersion':()=>Promise[_0x7e42('0xd6')](this[_0x7e42('0x3c')][_0x7e42('0xa8')]['document'][_0x7e42('0xfb')]),'getCurrentRevisionId':()=>_0x468d90},this[_0x7e42('0x52')]('isReady',!0x1),this['set'](_0x7e42('0x78'),!0x0),this['set'](_0x7e42('0x9d'),!0x1),this[_0x7e42('0x3c')][_0x7e42('0x51')]['define'](_0x7e42('0xb8'),!0x0),this[_0x7e42('0x3c')][_0x7e42('0x39')][_0x7e42('0xf4')](_0x7e42('0x72'))['dataToMarker']({'view':_0x7e42('0xcf')});}[_0x7e42('0xee')](){this[_0x7e42('0x73')]=this[_0x7e42('0x3c')][_0x7e42('0x105')][_0x7e42('0x45')](_0x7e42('0xff')),this[_0x7e42('0xbc')](),this[_0x7e42('0x3c')][_0x7e42('0xc5')]['on'](_0x7e42('0x9e'),()=>{const _0x394bf2=this[_0x7e42('0x73')]['getRevision'](0x0),_0x32dec0=_0x394bf2&&null===_0x394bf2['creator']?_0x394bf2:null;if(this[_0x7e42('0x68')]=!!_0x32dec0&&this[_0x7e42('0x3c')][_0x7e42('0x51')][_0x7e42('0x45')]('revisionHistory.resumeUnsavedRevision'),this[_0x7e42('0x3c')]['plugins']['has']('RealTimeCollaborationClient')){const _0x51f62e=this[_0x7e42('0x36')][_0x7e42('0x63')](),_0x3c481c=this[_0x7e42('0x73')][_0x7e42('0x43')](_0x51f62e);if(_0x3c481c)this[_0x7e42('0x103')]=_0x3c481c[_0x7e42('0x65')],this[_0x7e42('0x68')]=!0x1;else{const _0x3b0131=this[_0x7e42('0x36')][_0x7e42('0x87')][_0x7e42('0xb3')][_0x7e42('0x4e')](_0x1d32c1=>!_0x1d32c1[_0x7e42('0x4d')]),_0x23fc37=_0x3b0131?_0x3b0131['baseVersion']:this[_0x7e42('0x36')][_0x7e42('0x87')]['version'];_0x394bf2?(_0x394bf2[_0x7e42('0xc0')]<_0x23fc37&&_0x394bf2[_0x7e42('0x28')]({'toVersion':_0x23fc37}),this[_0x7e42('0x68')]?(this[_0x7e42('0x36')][_0x7e42('0x63')]=()=>_0x32dec0['id'],this[_0x7e42('0x103')]=_0x32dec0[_0x7e42('0x65')]):(this[_0x7e42('0x103')]=_0x394bf2[_0x7e42('0xc0')],this[_0x7e42('0x68')]=!0x1)):(this[_0x7e42('0x103')]=_0x23fc37,this['_continueCurrentRevision']=!0x1);}}else _0x32dec0&&(this[_0x7e42('0x3c')]['model'][_0x7e42('0x57')][_0x7e42('0x87')][_0x7e42('0xfb')]=Math[_0x7e42('0x74')](_0x32dec0[_0x7e42('0xc0')],this[_0x7e42('0x3c')][_0x7e42('0xa8')][_0x7e42('0x57')][_0x7e42('0x87')][_0x7e42('0xfb')]),_0x32dec0['fromVersion']===_0x32dec0[_0x7e42('0xc0')]?(0x0!==_0x32dec0['fromVersion']&&(this[_0x7e42('0x36')][_0x7e42('0x63')]=()=>_0x32dec0['id']),this[_0x7e42('0x68')]=!0x1):this[_0x7e42('0x68')]&&(this[_0x7e42('0x36')][_0x7e42('0x63')]=()=>_0x32dec0['id'],this[_0x7e42('0x103')]=_0x32dec0[_0x7e42('0x65')])),this[_0x7e42('0x68')]||(this[_0x7e42('0x103')]=this['editor'][_0x7e42('0xa8')][_0x7e42('0x57')][_0x7e42('0xfb')]);this[_0x7e42('0x71')][_0x7e42('0xee')](this['_source'][_0x7e42('0x87')]),this['_createInitialRevision'](this['_startingVersion']),this[_0x7e42('0x38')](this[_0x7e42('0x103')]),this[_0x7e42('0xec')]&&this[_0x7e42('0xb5')]();}),this[_0x7e42('0x3a')]('isReady')['to'](this,_0x7e42('0x9d'),_0x41354c=>!_0x41354c);}async['afterInit'](){if(this[_0x7e42('0x73')]['length']>0x0){const _0x220715=this[_0x7e42('0x73')][_0x7e42('0x43')](0x0),_0x4dff27=await this[_0x7e42('0x6e')](_0x220715),_0x1353a5=await this[_0x7e42('0xeb')](_0x220715);this[_0x7e42('0x88')](_0x4dff27,_0x1353a5);}}[_0x7e42('0x50')](_0x476460){this[_0x7e42('0x36')]=_0x476460;}async[_0x7e42('0xe8')](){const _0xbc55a6=await this[_0x7e42('0x36')][_0x7e42('0xd5')]();if(_0xbc55a6>this[_0x7e42('0xd9')][_0x7e42('0xc0')]){await this[_0x7e42('0x34')]();const _0xb93b95=this[_0x7e42('0x91')]({'revision':this[_0x7e42('0xd9')],'to':_0xbc55a6});_0xb93b95['authors']=_0xb93b95[_0x7e42('0x5')][_0x7e42('0xad')](_0x4227d0=>this[_0x7e42('0x3c')][_0x7e42('0x105')][_0x7e42('0x45')](_0x7e42('0xba'))[_0x7e42('0x90')](_0x4227d0)),this[_0x7e42('0xd9')][_0x7e42('0x28')](_0xb93b95);}}async[_0x7e42('0x34')](){this[_0x7e42('0x68')]&&!this[_0x7e42('0x3')]&&(await this[_0x7e42('0xe4')](this[_0x7e42('0xd9')]),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this[_0x7e42('0x3')]={'fromVersion':this[_0x7e42('0xd9')][_0x7e42('0x65')],'authors':this[_0x7e42('0xd9')]['authors'][_0x7e42('0xb')]()});}async[_0x7e42('0x7d')](_0x5c381d={},_0x37be41=null){const _0x30081a=[];await this[_0x7e42('0x34')](),this[_0x7e42('0x68')]=!0x1,_0x37be41>this[_0x7e42('0xd9')][_0x7e42('0xc0')]&&(_0x37be41=null),null===_0x37be41&&(_0x37be41=await this[_0x7e42('0x36')][_0x7e42('0xd5')]());const _0x3c09c8=this[_0x7e42('0x4c')](_0x37be41),_0x1549d7=this[_0x7e42('0x91')]({'from':_0x3c09c8,'to':_0x37be41});if(this[_0x7e42('0xd9')][_0x7e42('0xc0')]<_0x37be41){const _0x230040=this[_0x7e42('0x91')]({'revision':this[_0x7e42('0xd9')],'from':_0x37be41,'to':_0x37be41});_0x230040[_0x7e42('0x1e')]=[],_0x230040[_0x7e42('0x5')]=[],_0x230040['id']=this[_0x7e42('0xd9')]['id'],this['currentRevision']['_update'](_0x230040,!0x0),delete _0x230040[_0x7e42('0x1e')],_0x30081a[_0x7e42('0xea')](_0x230040);}_0x5c381d[_0x7e42('0xc9')]=this[_0x7e42('0x3c')][_0x7e42('0x105')][_0x7e42('0x45')]('Users')['me']['id'],_0x5c381d[_0x7e42('0x8c')]=_0x5c381d[_0x7e42('0x8c')]||null,_0x5c381d['id']=_0x5c381d['id']||_0x51a59d(),_0x5c381d={..._0x5c381d,..._0x1549d7};const _0x228f3c=this['addRevisionData'](_0x5c381d);_0x30081a['push'](_0x5c381d);const _0x2b97f6=this['repository'][_0x7e42('0x2d')](_0x228f3c);if(0x0!==_0x2b97f6){const _0x1cdaaa=this[_0x7e42('0x73')][_0x7e42('0x43')](_0x2b97f6-0x1);if(_0x1cdaaa[_0x7e42('0x65')]!==_0x37be41){const _0x5806a7=this['_revisionDataBuilder']['getData'](_0x37be41,_0x1cdaaa[_0x7e42('0xc0')]),_0x40c0ea={'id':_0x1cdaaa['id'],'diffData':_0x5806a7['diffData'],'authorsIds':_0x5806a7[_0x7e42('0x5')],'authors':_0x5806a7[_0x7e42('0x5')][_0x7e42('0xad')](_0x5e145a=>this[_0x7e42('0x3c')][_0x7e42('0x105')][_0x7e42('0x45')](_0x7e42('0xba'))['getUser'](_0x5e145a)),'fromVersion':_0x37be41};_0x1cdaaa===this[_0x7e42('0xd9')]&&(_0x40c0ea[_0x7e42('0xb9')]=new Date(_0x5c381d[_0x7e42('0xb9')][_0x7e42('0xe9')]()+0xa)),_0x1cdaaa[_0x7e42('0x28')](_0x40c0ea,!0x0),delete _0x40c0ea['authors'],_0x30081a['push'](_0x40c0ea);}}if(this[_0x7e42('0xec')]){for(const _0x16984f of _0x30081a)this[_0x7e42('0x5c')](_0x16984f['id'],_0x16984f,!0x0);this[_0x7e42('0xb5')]();}return _0x228f3c;}[_0x7e42('0xa6')](_0x3c1b03){const _0x2edabd=this[_0x7e42('0x73')][_0x7e42('0xfd')](_0x3c1b03);return this[_0x7e42('0xec')]&&_0x2edabd['on']('_update',(_0x450d5c,_0x4b86ea,_0x19ef4a)=>{_0x19ef4a||(this[_0x7e42('0x5c')](_0x4b86ea['id'],_0x4b86ea,!0x0),this[_0x7e42('0xb5')]());}),this[_0x7e42('0x73')][_0x7e42('0xbe')](_0x2edabd,this[_0x7e42('0x7e')](_0x2edabd)),_0x2edabd;}async['getRevisionDocumentData'](_0x57d019){await this[_0x7e42('0xe4')](_0x57d019);const _0x20e1ad={};for(const _0x172d87 in _0x57d019[_0x7e42('0x2')]){if(_0x57d019['diffData'][_0x172d87][_0x7e42('0xb6')]&&!_0x57d019[_0x7e42('0x2')][_0x172d87][_0x7e42('0xb6')]['isAttached'])continue;const _0x4c636d=this[_0x7e42('0x70')](JSON['parse'](_0x57d019[_0x7e42('0x2')][_0x172d87][_0x7e42('0xf8')])),_0x53d70a=this[_0x7e42('0x3c')][_0x7e42('0x4f')][_0x7e42('0x6f')]['document'],_0x50e39f=new _0x5c9d36(_0x53d70a,_0x4c636d[_0x7e42('0xad')](_0x751e0d=>J(_0x751e0d,this[_0x7e42('0x3c')])));this[_0x7e42('0x3c')][_0x7e42('0xc5')]['processor']['useFillerType']('marked'),_0x20e1ad[_0x172d87]=this[_0x7e42('0x3c')][_0x7e42('0xc5')][_0x7e42('0x77')][_0x7e42('0xb2')](_0x50e39f),this['editor']['data'][_0x7e42('0x77')][_0x7e42('0x9f')](_0x7e42('0x2c'));}return _0x20e1ad;}async[_0x7e42('0xeb')](_0x2ee588){await this[_0x7e42('0xe4')](_0x2ee588);const _0x87dd2f={};for(const _0x27d773 in _0x2ee588[_0x7e42('0x2')])_0x2ee588['diffData'][_0x27d773]['attachChange']&&!_0x2ee588[_0x7e42('0x2')][_0x27d773][_0x7e42('0xb6')]['isAttached']||(_0x87dd2f[_0x27d773]=_0x2ee588['diffData'][_0x27d773]['attributesAfter']||{});return _0x87dd2f;}['sendBufferedUpdates'](){if(0x0===this[_0x7e42('0xe5')][_0x7e42('0x11')])return;if(this[_0x7e42('0x9d')])return;let _0x585d8a=Array[_0x7e42('0x14')](this[_0x7e42('0xe5')][_0x7e42('0x64')]());this[_0x7e42('0xe5')][_0x7e42('0xd1')]();for(let _0x5ee35f=0x0;_0x5ee35f<_0x585d8a[_0x7e42('0xe1')];_0x5ee35f++){const _0x3c49f2=_0x585d8a[_0x5ee35f];let _0x38087f=!0x1;for(const _0x30e5f5 of Object['keys'](_0x3c49f2))void 0x0===_0x3c49f2[_0x30e5f5]?delete _0x3c49f2[_0x30e5f5]:'id'!==_0x30e5f5&&(_0x38087f=!0x0);_0x38087f||(_0x585d8a[_0x5ee35f]=null);}if(_0x585d8a=_0x585d8a[_0x7e42('0xef')](_0xa41747=>null!==_0xa41747),!_0x585d8a[_0x7e42('0xe1')])return;for(let _0x1282d7=0x0;_0x1282d7<_0x585d8a[_0x7e42('0xe1')];_0x1282d7++){const _0x23938f=_0x585d8a[_0x1282d7];void 0x0!==_0x23938f[_0x7e42('0x65')]&&void 0x0===_0x23938f[_0x7e42('0xc0')]&&(_0x23938f[_0x7e42('0xc0')]=this['repository'][_0x7e42('0x43')](_0x23938f['id'])[_0x7e42('0xc0')]),void 0x0!==_0x23938f['toVersion']&&void 0x0===_0x23938f['fromVersion']&&(_0x23938f[_0x7e42('0x65')]=this[_0x7e42('0x73')][_0x7e42('0x43')](_0x23938f['id'])[_0x7e42('0x65')]);}const _0x2be665=this[_0x7e42('0x3c')][_0x7e42('0x51')][_0x7e42('0x45')](_0x7e42('0xc3'));this[_0x7e42('0x9d')]=!0x0,this[_0x7e42('0xcb')](),this[_0x7e42('0xec')]['updateRevisions'](_0x585d8a,_0x2be665)[_0x7e42('0xce')](()=>{this['_isPendingUpdate']=!0x1;})[_0x7e42('0x1d')](_0x289f62=>{if(_0x289f62)for(const _0x4809fc of _0x289f62)this[_0x7e42('0x102')]({'id':_0x4809fc['id'],'createdAt':_0x4809fc['createdAt']});this['_removePendingAction'](),this[_0x7e42('0xb5')]();});}[_0x7e42('0x88')](_0x2d054e,_0x425c65){let _0x61289f=this[_0x7e42('0x3c')][_0x7e42('0x51')][_0x7e42('0x45')](_0x7e42('0xe0')),_0x363e77=this[_0x7e42('0x3c')][_0x7e42('0x51')][_0x7e42('0x45')](_0x7e42('0xc6'));if(void 0x0===_0x61289f){_0x61289f={};for(const _0x1b8413 of this[_0x7e42('0x3c')][_0x7e42('0xa8')]['document'][_0x7e42('0x35')]())_0x61289f[_0x1b8413]='';}if(_0x7e42('0xbb')==typeof _0x61289f&&(_0x61289f={'main':_0x61289f}),void 0x0===_0x363e77){_0x363e77={};for(const _0x10faa5 of this['editor'][_0x7e42('0xa8')][_0x7e42('0x57')][_0x7e42('0x35')]())_0x363e77[_0x10faa5]={};}let _0xcd9979=!0x1;const _0x1ed499=Object[_0x7e42('0xc')](_0x61289f),_0x23260b=Object[_0x7e42('0xc')](_0x2d054e);for(const _0x1d19f7 of _0x1ed499){if(_0x61289f[_0x1d19f7]!==_0x2d054e[_0x1d19f7]&&''!==_0x61289f[_0x1d19f7][_0x7e42('0xda')]()){_0xcd9979=!0x0;break;}if(!_0x43e511(_0x363e77[_0x1d19f7],_0x425c65[_0x1d19f7])&&Object[_0x7e42('0xc')](_0x363e77[_0x1d19f7])['length']>0x0){_0xcd9979=!0x0;break;}}_0xcd9979||(_0xcd9979=_0x23260b[_0x7e42('0x85')](_0x612958=>!this[_0x7e42('0x3c')][_0x7e42('0xa8')]['document'][_0x7e42('0x1c')](_0x612958))),_0xcd9979&&_0x54e453('editor-initial-data-replaced-with-revision-data',{'editorData':_0x61289f,'editorRootsAttributes':_0x363e77,'revisionData':_0x2d054e,'revisionRootsAttributes':_0x425c65}),this[_0x7e42('0x3c')]['config'][_0x7e42('0x52')](_0x7e42('0xe0'),_0x2d054e),this[_0x7e42('0x3c')][_0x7e42('0x51')][_0x7e42('0x52')]('rootsAttributes',_0x425c65);}[_0x7e42('0xcb')](){if(!this['_pendingAction']){const _0x55f438=this[_0x7e42('0x3c')][_0x7e42('0x105')][_0x7e42('0x45')]('PendingActions');this['_pendingAction']=_0x55f438[_0x7e42('0x75')](_0xe2b8a9(this[_0x7e42('0x3c')]['locale'],_0x7e42('0xbf')));}}[_0x7e42('0x26')](){this['_pendingAction']&&(this[_0x7e42('0x3c')][_0x7e42('0x105')][_0x7e42('0x45')](_0x7e42('0x61'))[_0x7e42('0x15')](this[_0x7e42('0x82')]),this[_0x7e42('0x82')]=null);}[_0x7e42('0x7e')](_0x483b5b){const _0x3ad76c=this[_0x7e42('0x73')][_0x7e42('0x21')]();_0x3ad76c[_0x7e42('0x9b')]();let _0x379b9e=0x0;for(;_0x379b9e<_0x3ad76c['length'];){const _0x4d6334=_0x3ad76c[_0x379b9e];if(_0x4d6334===this['currentRevision']){_0x379b9e++;continue;}if(_0x4d6334['id']===this[_0x7e42('0xf9')])break;const _0x327a16=_0x483b5b[_0x7e42('0xc0')]-_0x4d6334['toVersion']||_0x483b5b['fromVersion']-_0x4d6334['fromVersion'];if(_0x327a16>0x0)break;if(_0x327a16<0x0)_0x379b9e++;else{if(!_0x483b5b[_0x7e42('0x83')]&&_0x4d6334['creator'])break;if(_0x4d6334[_0x7e42('0x83')]||!_0x483b5b[_0x7e42('0x83')]){if(_0x483b5b[_0x7e42('0xb9')]>_0x4d6334[_0x7e42('0xb9')])break;_0x379b9e++;}else _0x379b9e++;}}return _0x379b9e;}[_0x7e42('0x102')](_0x2bf052){const _0x34a78e=this[_0x7e42('0x73')][_0x7e42('0x43')](_0x2bf052['id']);if(_0x2bf052[_0x7e42('0xb9')]&&(_0x2bf052[_0x7e42('0xb9')]=new Date(_0x2bf052[_0x7e42('0xb9')])),_0x2bf052[_0x7e42('0x5')]){const _0x52aa79=this[_0x7e42('0x3c')][_0x7e42('0x105')][_0x7e42('0x45')](_0x7e42('0xba'));_0x2bf052[_0x7e42('0x1e')]=_0x2bf052['authorsIds']['map'](_0x425132=>_0x52aa79[_0x7e42('0x90')](_0x425132));}_0x34a78e[_0x7e42('0x28')](_0x2bf052,!0x0);}[_0x7e42('0x91')]({revision:_0x45a632=null,from:_0xc017d2=null,to:_0x1ecf00=null}){_0xc017d2=null!==_0xc017d2?_0xc017d2:_0x45a632[_0x7e42('0x65')],_0x1ecf00=null!==_0x1ecf00?_0x1ecf00:_0x45a632[_0x7e42('0xc0')];const _0x5afabe=this[_0x7e42('0x71')]['getData'](_0xc017d2,_0x1ecf00),_0x3503dd={'diffData':_0x5afabe['diffData'],'authorsIds':_0x5afabe['authorsIds'],'fromVersion':_0xc017d2,'toVersion':_0x1ecf00};if(!_0x45a632||_0x1ecf00!==_0x45a632[_0x7e42('0xc0')]){const _0x181b0c=_0x1ecf00-0x1,_0x423f96=this[_0x7e42('0x36')][_0x7e42('0x87')][_0x7e42('0x7a')](_0x181b0c);_0x3503dd[_0x7e42('0xb9')]=_0x423f96&&_0x423f96[_0x7e42('0xb9')]||new Date();}if(this['_loadedStateData']&&_0xc017d2===this[_0x7e42('0x3')][_0x7e42('0x65')])for(const _0x5eaf16 of this[_0x7e42('0x3')]['authors'])_0x3503dd['authorsIds'][_0x7e42('0x13')](_0x5eaf16['id'])||_0x3503dd['authorsIds'][_0x7e42('0xea')](_0x5eaf16['id']);return _0x3503dd;}[_0x7e42('0xe4')](_0x4efcce){if(!_0x4efcce||_0x4efcce[_0x7e42('0x2')])return Promise['resolve']();{const _0x4f2863=this[_0x7e42('0x3c')][_0x7e42('0x51')]['get'](_0x7e42('0xc3'));return this[_0x7e42('0xec')][_0x7e42('0x43')]({'channelId':_0x4f2863,'revisionId':_0x4efcce['id']})['then'](_0x536e12=>{_0x4efcce['diffData']=_0x536e12['diffData'];});}}['_bufferUpdate'](_0x55a2a0,_0x3844af,_0x580cf9){if(this[_0x7e42('0xe5')]['has'](_0x55a2a0)){const _0x103da4=this[_0x7e42('0xe5')][_0x7e42('0x45')](_0x55a2a0);_0x3844af=_0x580cf9?{..._0x103da4,..._0x3844af}:{..._0x3844af,..._0x103da4};}this[_0x7e42('0xe5')]['set'](_0x55a2a0,_0x3844af);}['_getFromVersion'](_0x58c0dd){const _0x59cfaf=this['repository'][_0x7e42('0x21')]();_0x59cfaf[_0x7e42('0x9b')](),_0x59cfaf['shift']();const _0x27b8e4=_0x59cfaf[_0x7e42('0x4e')](_0x24deec=>_0x24deec[_0x7e42('0xc0')]<=_0x58c0dd)[_0x7e42('0xc0')];return _0x27b8e4<this[_0x7e42('0x103')]?this['_startingVersion']:_0x27b8e4;}[_0x7e42('0x22')](_0x4b7797){const _0x57455f=this['repository']['getRevision'](this['repository'][_0x7e42('0xe1')]-0x1);if(_0x57455f)this[_0x7e42('0xf9')]=_0x57455f['id'];else{const _0x1de872=!this['editor'][_0x7e42('0xa8')]['document']['roots'][_0x7e42('0x4e')](_0x1f6057=>this[_0x7e42('0x3c')][_0x7e42('0xa8')][_0x7e42('0xd4')](_0x1f6057)),_0x511d20=this[_0x7e42('0x3c')]['plugins'][_0x7e42('0x45')](_0x7e42('0xba'))['me']['id'],_0x33ca0d=_0xe2b8a9(this['editor'][_0x7e42('0xf1')],_0x1de872?_0x7e42('0x33'):_0x7e42('0x0'));this[_0x7e42('0x2b')]({'from':_0x4b7797,'to':_0x4b7797,'id':this[_0x7e42('0xf9')],'name':_0x33ca0d,'creatorId':_0x511d20});}}[_0x7e42('0x38')](_0x54eb85){const _0xe7beb4=this['_source'][_0x7e42('0x63')]();this['currentRevision']=this['repository'][_0x7e42('0x43')](_0xe7beb4),this[_0x7e42('0xd9')]||(this['currentRevision']=this[_0x7e42('0x2b')]({'from':_0x54eb85,'to':_0x54eb85,'id':_0xe7beb4,'name':'','creatorId':null}));}[_0x7e42('0x2b')]({name:_0x3008e3,from:_0x12a6da,to:_0x4ef20d,creatorId:_0x204bd4,id:_0x2cd81a}){const _0x48082b=this[_0x7e42('0x91')]({'from':_0x12a6da,'to':_0x4ef20d});_0x48082b[_0x7e42('0x8c')]=_0x3008e3,_0x48082b[_0x7e42('0xc9')]=_0x204bd4,_0x48082b['id']=_0x2cd81a;const _0x386812=this['addRevisionData'](_0x48082b);return this[_0x7e42('0xec')]&&this[_0x7e42('0x5c')](_0x48082b['id'],_0x48082b,!0x0),_0x386812;}[_0x7e42('0xbc')](){this['editor'][_0x7e42('0x39')][_0x7e42('0xf4')](_0x7e42('0xb1'))[_0x7e42('0x7b')]({'model':_0x7e42('0xcf')});}[_0x7e42('0x70')](_0x36cdea){return(_0x36cdea=_0x36cdea[_0x7e42('0xef')](_0x501441=>!_0x501441[_0x7e42('0x8c')]||_0x7e42('0x3d')!==_0x501441[_0x7e42('0x8c')]&&_0x7e42('0x8e')!==_0x501441['name']))[_0x7e42('0xf')](_0x251e0b=>{_0x7e42('0xbb')!=typeof _0x251e0b&&(_0x251e0b[_0x7e42('0x5e')]=this[_0x7e42('0x70')](_0x251e0b[_0x7e42('0x5e')]),_0x251e0b[_0x7e42('0x81')]=_0x251e0b[_0x7e42('0x81')][_0x7e42('0xef')](_0x12ca30=>!_0x12ca30[0x0][_0x7e42('0x55')](_0x7e42('0x41'))));}),_0x36cdea;}}function J(_0x3c95b9,_0x18686a){const _0x46853b=_0x18686a['editing'][_0x7e42('0x6f')][_0x7e42('0x57')];if(_0x7e42('0xbb')==typeof _0x3c95b9)return new _0x48f39a(_0x46853b,_0x3c95b9);{const _0x3a7f43=_0x3c95b9['children']['map'](_0x39348a=>J(_0x39348a,_0x18686a));return new(B[_0x3c95b9['type']]||_0x81981c)(_0x46853b,_0x3c95b9[_0x7e42('0x8c')],_0x3c95b9[_0x7e42('0x81')],_0x3a7f43);}}class H{constructor(_0x1236e8){this['editor']=_0x1236e8,this[_0x7e42('0xdd')]=new Map(),this[_0x7e42('0x95')]=-0x1,this[_0x7e42('0x44')]=-0x1,this[_0x7e42('0xf0')]=new Map(),this[_0x7e42('0x31')]=new Map(),this[_0x7e42('0xa9')]=new Map(),this[_0x7e42('0x92')]=new Map(),this[_0x7e42('0xb0')]=new Map(),this[_0x7e42('0xe3')]=new Map(),this[_0x7e42('0xc1')]=new Map(),this[_0x7e42('0xa5')]=new Map(),this[_0x7e42('0xaa')]=new Map(),this[_0x7e42('0x40')]=new Map(),this[_0x7e42('0x53')]=0x1;}[_0x7e42('0xee')](_0x27147e){this[_0x7e42('0x66')]=_0x27147e;const _0x43ed39=new Map(),_0x3f29aa=new Map(),_0x8388b=this[_0x7e42('0x3c')]['model'][_0x7e42('0x57')][_0x7e42('0x19')][_0x7e42('0xad')](_0x504b76=>_0x504b76['rootName']);for(const _0x4e7639 of _0x8388b){const _0x104d81=this[_0x7e42('0x3c')]['model']['document'][_0x7e42('0x1c')](_0x4e7639),_0x488564=q(_0x104d81);_0x43ed39[_0x7e42('0x52')](_0x4e7639,_0x488564),_0x3f29aa['set'](_0x4e7639,Object['fromEntries'](_0x104d81['getAttributes']()));}const _0x16a034=Array[_0x7e42('0x14')](this[_0x7e42('0x3c')][_0x7e42('0xa8')][_0x7e42('0x93')])[_0x7e42('0xad')](_0x239ba2=>[_0x239ba2[_0x7e42('0x8c')],_0x239ba2[_0x7e42('0x7')]()]),_0x23f7b6=this[_0x7e42('0x66')]['version'];this[_0x7e42('0x67')](_0x23f7b6,_0x43ed39,_0x16a034,_0x3f29aa),this[_0x7e42('0xa3')]=this['_revisionId'];const _0x2f2bf1=new Map(),_0x10068d=new Map();for(const _0x5215fa of _0x8388b){const _0x84cbe4=G(_0x5215fa);_0x2f2bf1[_0x7e42('0x52')](_0x5215fa,_0x84cbe4),_0x10068d[_0x7e42('0x52')](_0x5215fa,{});}this[_0x7e42('0x67')](Number[_0x7e42('0xf5')],_0x2f2bf1,[],_0x10068d);}[_0x7e42('0x84')](_0x16f255,_0x6c66d4){if(this[_0x7e42('0x95')]===_0x16f255&&this[_0x7e42('0x44')]<=_0x6c66d4)this['_savedMetaData'][_0x7e42('0x11')]>0x1&&this['_removeMetaData'](this[_0x7e42('0x44')]),this['_applyOperations'](this[_0x7e42('0x44')],_0x6c66d4,!0x0);else{if(!this[_0x7e42('0xdd')][_0x7e42('0x99')](_0x16f255)){const _0x2f10fd=this[_0x7e42('0x23')](_0x16f255);this[_0x7e42('0xe6')](_0x2f10fd,_0x16f255,!0x1);}this[_0x7e42('0xe6')](_0x16f255,_0x6c66d4,!0x0);}return this[_0x7e42('0x95')]=_0x16f255,this['_lastTo']=_0x6c66d4,this['_getState']();}[_0x7e42('0x30')](_0x316c70){this['_reset'](),this[_0x7e42('0x95')]=_0x316c70[_0x7e42('0x65')],this[_0x7e42('0x44')]=_0x316c70['toVersion'];for(const _0x31b11f in _0x316c70['diffData']){const _0x4ea24b=_0x316c70['diffData'][_0x31b11f][_0x7e42('0xb6')],_0x2ab3bb=_0xb9594c(_0x316c70[_0x7e42('0x2')][_0x31b11f][_0x7e42('0x58')])||{},_0x471f2b=this['_makeModelFromViewString'](_0x316c70['diffData'][_0x31b11f][_0x7e42('0x86')]);_0x471f2b[_0x7e42('0x6a')]=_0x31b11f,_0x471f2b['_isAttached']=!_0x4ea24b||!_0x4ea24b['isAttached'],_0x471f2b[_0x7e42('0xc8')]=()=>_0x471f2b[_0x7e42('0xd7')],this[_0x7e42('0x92')][_0x7e42('0x52')](_0x31b11f,_0x471f2b),this[_0x7e42('0xb0')][_0x7e42('0x52')](_0x31b11f,_0x2ab3bb),_0x4ea24b&&this[_0x7e42('0x40')][_0x7e42('0x52')](_0x31b11f,_0x4ea24b);const _0x3b24d9=this[_0x7e42('0x16')](_0x471f2b);this['_baseIdsRoots'][_0x7e42('0x52')](_0x31b11f,_0x3b24d9);for(const [_0x56cc63,_0x33cd29]of _0x471f2b[_0x7e42('0x93')]){if(!_0x56cc63[_0x7e42('0x55')]('revision:'))continue;const _0x56419f=_0x56cc63[_0x7e42('0xf6')](':')[0x2];for(const _0x1c6170 of _0x33cd29[_0x7e42('0xed')]({'singleCharacters':!0x0})){const _0x567f42=this['_getVidAttributeName'](_0x1c6170),_0x35e2e5='elementEnd'==_0x1c6170[_0x7e42('0xc4')]?_0x1c6170[_0x7e42('0x100')][_0x7e42('0xae')][_0x7e42('0xb')](0x0,-0x1):_0x1c6170[_0x7e42('0x100')][_0x7e42('0xae')],_0x571172=_0x3b24d9[_0x7e42('0x8b')](_0x35e2e5)[_0x7e42('0xe')](_0x567f42);this[_0x7e42('0xa5')]['set'](_0x571172,{'userId':_0x56419f});}}}this['_startingRevisionId']=this[_0x7e42('0x53')];const _0x4b1833=[...Array(this[_0x7e42('0x53')])['keys']()][_0x7e42('0xb')](0x1)[_0x7e42('0xef')](_0x528f01=>!this[_0x7e42('0xa5')][_0x7e42('0x99')](_0x528f01));let _0x3f334e=0x0;const _0x4b2534=new Map();for(const _0x4f1b83 in _0x316c70[_0x7e42('0x2')]){const _0x131762=_0x316c70[_0x7e42('0x2')][_0x4f1b83]['attachChange'],_0x2fd2f7=_0xb9594c(_0x316c70['diffData'][_0x4f1b83][_0x7e42('0x9a')])||{},_0x3f7304=this['_makeModelFromViewString'](_0x316c70[_0x7e42('0x2')][_0x4f1b83]['insertions']);_0x3f7304[_0x7e42('0x6a')]=_0x4f1b83,_0x3f7304[_0x7e42('0xd7')]=!_0x131762||_0x131762[_0x7e42('0xc8')],_0x3f7304[_0x7e42('0xc8')]=()=>_0x3f7304[_0x7e42('0xd7')],this['_diffRoots']['set'](_0x4f1b83,_0x3f7304),this[_0x7e42('0xa9')]['set'](_0x4f1b83,_0x2fd2f7);const _0x4748ca=this[_0x7e42('0x16')](_0x3f7304,Number[_0x7e42('0xf5')]);this[_0x7e42('0xe3')]['set'](_0x4f1b83,_0x4748ca),_0x4b2534[_0x7e42('0x52')](_0x4f1b83,_0x3f7304['isAttached']()?_0x2fd2f7:{});for(const [_0x2ca203,_0x5cd728]of _0x3f7304[_0x7e42('0x93')]){if(!_0x2ca203[_0x7e42('0x55')](_0x7e42('0x17')))continue;const _0x5b8f3a=_0x2ca203[_0x7e42('0xf6')](':')[0x2];for(const _0x30f494 of _0x5cd728['getWalker']({'singleCharacters':!0x0})){const _0x30b90b=this[_0x7e42('0x8')](_0x30f494),_0x3a5e5c=this[_0x7e42('0x53')]++,_0xf34987=_0x7e42('0xfe')==_0x30f494[_0x7e42('0xc4')]?_0x30f494[_0x7e42('0x100')][_0x7e42('0xae')][_0x7e42('0xb')](0x0,-0x1):_0x30f494[_0x7e42('0x100')][_0x7e42('0xae')];_0x4748ca[_0x7e42('0x8b')](_0xf34987)[_0x7e42('0x1b')](_0x30b90b,_0x3a5e5c),this[_0x7e42('0xa5')][_0x7e42('0x52')](_0x3a5e5c,{'userId':_0x5b8f3a});}}for(const _0x45c167 of this['editor'][_0x7e42('0xa8')][_0x7e42('0x8a')](_0x3f7304)[_0x7e42('0xed')]({'singleCharacters':!0x0})){const _0x47281c=this[_0x7e42('0x8')](_0x45c167),_0x7c1136='elementEnd'==_0x45c167[_0x7e42('0xc4')]?_0x45c167[_0x7e42('0x100')]['path']['slice'](0x0,-0x1):_0x45c167[_0x7e42('0x100')][_0x7e42('0xae')],_0x508a3e=_0x4748ca[_0x7e42('0x8b')](_0x7c1136);_0x508a3e[_0x7e42('0xe')](_0x47281c)>0x0||_0x508a3e['_setAttribute'](_0x47281c,_0x4b1833[_0x3f334e++]);}for(const [_0x3bf947,_0x5dbd8b]of _0x3f7304[_0x7e42('0x93')])_0x3bf947['startsWith'](_0x7e42('0x17'))||this[_0x7e42('0xf0')]['set'](_0x3bf947,_0x5dbd8b);}const _0x372175=G(_0x7e42('0x2e'));this[_0x7e42('0x92')][_0x7e42('0x52')]('$graveyard',_0x372175),this[_0x7e42('0xc1')][_0x7e42('0x52')]('$graveyard',this[_0x7e42('0x16')](_0x372175,0x1));const _0x1183c6=G(_0x7e42('0x2e'));this['_diffRoots']['set'](_0x7e42('0x2e'),_0x1183c6),this[_0x7e42('0xe3')]['set']('$graveyard',this[_0x7e42('0x16')](_0x1183c6,0x1));const _0x20bc5c=Array[_0x7e42('0x14')](this[_0x7e42('0x31')])[_0x7e42('0xad')](([_0x3f3b50,_0x1f2e79])=>[_0x3f3b50,q(_0x1f2e79)]);this['_saveMetaData'](this[_0x7e42('0x44')],_0x20bc5c,this[_0x7e42('0xf0')],_0x4b2534);}[_0x7e42('0xfa')](_0x526256){const _0x59309a=JSON[_0x7e42('0x4a')](_0x526256),_0x4dbc59=this[_0x7e42('0x3c')][_0x7e42('0x4f')][_0x7e42('0x6f')][_0x7e42('0x57')],_0x49cc1c=new _0x5c9d36(_0x4dbc59,_0x59309a[_0x7e42('0xad')](_0x16d6fe=>J(_0x16d6fe,this[_0x7e42('0x3c')])));return this[_0x7e42('0x3c')][_0x7e42('0xc5')][_0x7e42('0xde')](_0x49cc1c);}['_saveMetaData'](_0x3d564b,_0x49d9a9,_0x1a2c4a,_0x1ed647){const _0x309c2d=new Map(_0x49d9a9),_0x33dda8=new Map(_0xb9594c(_0x1ed647)),_0x440836=new Map();for(const [_0x30132b,_0x39724f]of _0x1a2c4a)_0x440836[_0x7e42('0x52')](_0x30132b,{'start':_0x39724f[_0x7e42('0xdb')][_0x7e42('0x46')](),'end':_0x39724f[_0x7e42('0xf7')][_0x7e42('0x46')](),'rootName':_0x39724f[_0x7e42('0x80')][_0x7e42('0x6a')]});this['_savedMetaData'][_0x7e42('0x52')](_0x3d564b,{'roots':_0x309c2d,'markers':_0x440836,'rootsAttributes':_0x33dda8});}['_removeMetaData'](_0xd4dedf){this[_0x7e42('0xdd')][_0x7e42('0x60')](_0xd4dedf);}['reInit'](){this[_0x7e42('0x2f')](),this[_0x7e42('0x95')]=-0x1,this[_0x7e42('0x44')]=-0x1,this['_savedMetaData'][_0x7e42('0xd1')](),this[_0x7e42('0xee')](this[_0x7e42('0x66')]);}[_0x7e42('0x2f')](){this[_0x7e42('0xa5')][_0x7e42('0xd1')](),this[_0x7e42('0xaa')][_0x7e42('0xd1')](),this[_0x7e42('0x40')][_0x7e42('0xd1')](),this[_0x7e42('0x31')][_0x7e42('0xd1')](),this[_0x7e42('0xa9')][_0x7e42('0xd1')](),this[_0x7e42('0x92')][_0x7e42('0xd1')](),this[_0x7e42('0xb0')][_0x7e42('0xd1')](),this[_0x7e42('0xe3')][_0x7e42('0xd1')](),this[_0x7e42('0xc1')]['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this[_0x7e42('0x53')];}['_makeIdsRoot'](_0x798781,_0x254761=null){let _0x4520ad=null;_0x798781['is'](_0x7e42('0xa7'))||(_0x4520ad=new _0x36609d(_0x798781[_0x7e42('0x8c')],{'vid_start':null===_0x254761?this[_0x7e42('0x53')]++:_0x254761++}));const _0x33b20=[];for(const _0x5cd0c7 of _0x798781[_0x7e42('0xe7')]())if(_0x5cd0c7['is'](_0x7e42('0x20'))){_0x33b20[_0x7e42('0xea')](this[_0x7e42('0x16')](_0x5cd0c7,_0x254761));const _0x5949db=_0x33b20[_0x33b20['length']-0x1];null!==_0x254761&&(_0x254761=_0x5949db['is'](_0x7e42('0x20'),_0x7e42('0x6d'))?_0x5949db[_0x7e42('0xe')](_0x7e42('0xd'))+0x1:_0x5949db[_0x7e42('0xe')](_0x7e42('0x7f'))+0x1);}else for(let _0x1af832=0x0;_0x1af832<_0x5cd0c7[_0x7e42('0x1a')];_0x1af832++)_0x33b20['push'](new _0x36609d(_0x7e42('0x6d'),{'vid':null===_0x254761?this['_revisionId']++:_0x254761++}));if(_0x798781['is']('documentFragment')){const _0x164b55=G(_0x798781['rootName']);return _0x164b55[_0x7e42('0xd0')](0x0,_0x33b20),_0x164b55;}return _0x4520ad[_0x7e42('0x1b')](_0x7e42('0x7f'),null===_0x254761?this[_0x7e42('0x53')]++:_0x254761++),_0x4520ad[_0x7e42('0xd0')](0x0,_0x33b20),_0x4520ad;}[_0x7e42('0xe6')](_0x5d5da7,_0x4a194f,_0x2cec02){this[_0x7e42('0x2f')]();const {roots:_0x35838d,markers:_0x416f46,rootsAttributes:_0x41fa02}=this['_savedMetaData'][_0x7e42('0x45')](_0x5d5da7);this['_baseRoots']=new Map(_0x35838d),this[_0x7e42('0xb0')]=new Map(_0xb9594c(_0x41fa02));for(const [_0x1cfcd1,_0x2f581e]of this[_0x7e42('0x92')])if(_0x7e42('0x2e')!==_0x1cfcd1&&(this[_0x7e42('0x31')][_0x7e42('0x52')](_0x1cfcd1,q(_0x2f581e)),this[_0x7e42('0xa9')]=new Map(_0xb9594c(_0x41fa02)),_0x2cec02)){const _0x2a743b=this[_0x7e42('0x53')];this[_0x7e42('0xe3')][_0x7e42('0x52')](_0x1cfcd1,this[_0x7e42('0x16')](_0x2f581e)),this[_0x7e42('0xc1')]['set'](_0x1cfcd1,this[_0x7e42('0x16')](_0x2f581e,_0x2a743b));}this['_startingRevisionId']=this['_revisionId'],this[_0x7e42('0x31')]['set'](_0x7e42('0x2e'),q(this[_0x7e42('0x92')]['get'](_0x7e42('0x2e')))),_0x2cec02&&this[_0x7e42('0xe3')][_0x7e42('0x52')](_0x7e42('0x2e'),this[_0x7e42('0x16')](this[_0x7e42('0x92')][_0x7e42('0x45')](_0x7e42('0x2e'))));for(const [_0x24d1d2,_0x185f54]of _0x416f46){const _0x411264=this[_0x7e42('0x92')]['get'](_0x185f54[_0x7e42('0x6a')]),_0x11afd6=this[_0x7e42('0x31')]['get'](_0x185f54[_0x7e42('0x6a')]),_0x5845ed=new _0x34d5c0(this[_0x7e42('0xd2')](_0x185f54[_0x7e42('0xdb')],_0x411264),this[_0x7e42('0xd2')](_0x185f54[_0x7e42('0xf7')],_0x411264)),_0x2dbabd=this[_0x7e42('0x4')](_0x5845ed,_0x11afd6);_0x411264[_0x7e42('0x93')][_0x7e42('0x52')](_0x24d1d2,_0x5845ed),this[_0x7e42('0xf0')][_0x7e42('0x52')](_0x24d1d2,_0x2dbabd);}this['_applyOperations'](_0x5d5da7,_0x4a194f,_0x2cec02);}[_0x7e42('0xc2')](_0x299ece,_0x4a4b63,_0x3eedd7){for(const _0x2c686d of this[_0x7e42('0x66')][_0x7e42('0x79')](_0x299ece,_0x4a4b63))this[_0x7e42('0x32')](_0x2c686d,_0x3eedd7);for(const _0x40a1d4 of this['_diffRoots'][_0x7e42('0x64')]())_0x40a1d4[_0x7e42('0x93')][_0x7e42('0xd1')]();for(const [_0x15cb2a,_0x1dce5d]of this[_0x7e42('0xf0')]){this[_0x7e42('0x31')][_0x7e42('0x45')](_0x1dce5d[_0x7e42('0x80')]['rootName'])[_0x7e42('0x93')][_0x7e42('0x52')](_0x15cb2a,_0x1dce5d['clone']());}const _0x4348c2=new Map(),_0x87fc9a=new Map();for(const [_0x15327f,_0xdbed6c]of this['_diffRoots'])_0x4348c2[_0x7e42('0x52')](_0x15327f,q(_0xdbed6c)),_0x87fc9a[_0x7e42('0x52')](_0x15327f,this[_0x7e42('0xa9')][_0x7e42('0x45')](_0x15327f));this[_0x7e42('0x67')](_0x4a4b63,_0x4348c2,this[_0x7e42('0xf0')],_0x87fc9a);}['_getPreviousFrom'](_0x307df3){const _0x2d1a55=Array[_0x7e42('0x14')](this[_0x7e42('0xdd')]['keys']());_0x2d1a55[_0x7e42('0xca')]((_0x2a9253,_0x1e6542)=>_0x2a9253-_0x1e6542),_0x2d1a55[_0x7e42('0x9b')]();for(const _0x210596 of _0x2d1a55)if(_0x210596<_0x307df3)return _0x210596;return Number[_0x7e42('0xf5')];}[_0x7e42('0x9c')](_0x470991,_0x201c26){const _0x1d3c17=Array['from'](_0x201c26['markers'])[_0x7e42('0xad')](([_0xba4db,_0x40f047])=>[_0xba4db,this[_0x7e42('0x4')](_0x40f047,_0x470991)]);_0x470991['markers']=new Map(_0x1d3c17);}[_0x7e42('0x2a')](_0x550bf9){for(const _0x555aa4 of this[_0x7e42('0xf0')]['values']()){const _0x514c72=_0x555aa4[_0x7e42('0xac')](_0x550bf9),_0x1a00a0=_0x34d5c0[_0x7e42('0x6')](_0x514c72);_0x555aa4[_0x7e42('0xdb')]=_0x1a00a0['start'],_0x555aa4[_0x7e42('0xf7')]=_0x1a00a0['end'];}}[_0x7e42('0x32')](_0x42c05c,_0x4c3c8d){if(_0x7e42('0xaf')==_0x42c05c[_0x7e42('0xc4')]||_0x7e42('0x96')==_0x42c05c[_0x7e42('0xc4')])return void this[_0x7e42('0x101')](_0x42c05c,_0x4c3c8d);if(_0x7e42('0xdf')==_0x42c05c[_0x7e42('0xc4')]){const _0x18b759=_0x42c05c[_0x7e42('0xd8')][_0x7e42('0x80')]['rootName'];this[_0x7e42('0x31')][_0x7e42('0x99')](_0x18b759)||(this[_0x7e42('0x31')]['set'](_0x18b759,G(_0x18b759,!0x0)),this[_0x7e42('0xa9')][_0x7e42('0x52')](_0x18b759,{}),_0x4c3c8d&&this[_0x7e42('0xe3')]['set'](_0x18b759,G(_0x18b759,!0x0)));}else{if(_0x7e42('0x1f')==_0x42c05c[_0x7e42('0xc4')]||'removeRootAttribute'==_0x42c05c[_0x7e42('0xc4')]||_0x7e42('0xf2')==_0x42c05c[_0x7e42('0xc4')])return void this[_0x7e42('0x5b')](_0x42c05c);}const _0x46d0a2=this[_0x7e42('0x1')](_0x42c05c,this['_diffRoots']);if('marker'!==_0x42c05c[_0x7e42('0xc4')]&&(_0x46d0a2[_0x7e42('0xcd')](),this['_transformMarkers'](_0x46d0a2)),_0x4c3c8d)switch(_0x46d0a2[_0x7e42('0xc4')]){case _0x7e42('0xdf'):this['_handleInsertOperation'](_0x42c05c);break;case _0x7e42('0x8f'):case _0x7e42('0x15'):case'reinsert':this[_0x7e42('0xa1')](_0x42c05c);break;case _0x7e42('0x104'):this[_0x7e42('0x8d')](_0x42c05c);break;case _0x7e42('0xf6'):this[_0x7e42('0x62')](_0x42c05c);break;case'marker':this[_0x7e42('0x7c')](_0x42c05c);}}['_cloneOperation'](_0x37b89f,_0x8e4755){const _0x586ab9=_0x37b89f[_0x7e42('0x46')]();return _0x586ab9[_0x7e42('0x6c')]=_0x37b89f[_0x7e42('0x6c')],this[_0x7e42('0x5f')](_0x586ab9,_0x8e4755),_0x586ab9;}[_0x7e42('0xb7')](_0x599169){return _0x599169[_0x7e42('0xad')](_0x1bffe2=>{const _0x3f832e=this[_0x7e42('0x8')](_0x1bffe2);return Number(_0x1bffe2[_0x7e42('0xfc')]['getAttribute'](_0x3f832e));});}[_0x7e42('0x56')](_0x341738,_0x10b032){if(_0x341738['is'](_0x7e42('0x20'),_0x7e42('0x6d')))_0x10b032[_0x7e42('0xea')]({'item':_0x341738,'type':'text'});else{_0x341738['is'](_0x7e42('0x20'))&&_0x10b032[_0x7e42('0xea')]({'item':_0x341738,'type':_0x7e42('0xbd')});for(const _0x649fa0 of _0x341738['getChildren']())this[_0x7e42('0x56')](_0x649fa0,_0x10b032);_0x341738['is'](_0x7e42('0x20'))&&_0x10b032[_0x7e42('0xea')]({'item':_0x341738,'type':_0x7e42('0xfe')});}return _0x10b032;}['_getState'](){const _0x3e920c=new Map(this[_0x7e42('0xa5')]),_0x7e6c55=new Map(_0x3e920c),_0xbcd68c=new Map(),_0x2c0c57={'insertions':{},'deletions':{}},_0xbddea1={'insertions':{},'deletions':{}},_0x84e551=new Map(),_0xbf64b8=new Set([...this[_0x7e42('0x92')][_0x7e42('0xc')](),...this[_0x7e42('0x31')][_0x7e42('0xc')]()]);_0xbf64b8['delete'](_0x7e42('0x2e'));for(const _0x7c657b of _0xbf64b8){const _0x344d3b=this['_diffRoots']['get'](_0x7c657b)||G(_0x7c657b,!0x1),_0x201cfc=this[_0x7e42('0x92')][_0x7e42('0x45')](_0x7c657b)||G(_0x7c657b,!0x1);_0x344d3b['isAttached']()||_0x201cfc[_0x7e42('0xc8')]()?(_0x2c0c57[_0x7e42('0xf8')][_0x7c657b]=q(_0x344d3b),_0x2c0c57[_0x7e42('0x86')][_0x7c657b]=q(_0x201cfc),this[_0x7e42('0x9c')](_0x2c0c57['deletions'][_0x7c657b],_0x201cfc),this[_0x7e42('0x9c')](_0x2c0c57[_0x7e42('0xf8')][_0x7c657b],_0x344d3b),_0xbddea1[_0x7e42('0xf8')][_0x7c657b]=this[_0x7e42('0x56')](this[_0x7e42('0xe3')][_0x7e42('0x45')](_0x7c657b),[]),_0xbddea1[_0x7e42('0x86')][_0x7c657b]=this['_generateTape'](this[_0x7e42('0xc1')][_0x7e42('0x45')](_0x7c657b)||G(_0x7c657b,!0x1),[])):_0xbf64b8['delete'](_0x7c657b);}for(const _0x5e99fb of _0xbf64b8){const _0x4a56f8=_0xbddea1[_0x7e42('0xf8')][_0x5e99fb];for(const _0x5dda1d of _0x4a56f8){const _0xbaf2c7=this['_getVidAttributeName'](_0x5dda1d),_0x543ec4=_0x5dda1d[_0x7e42('0xfc')][_0x7e42('0xe')](_0xbaf2c7);_0x7e6c55[_0x7e42('0x60')](_0x543ec4),_0x543ec4>=this[_0x7e42('0xa3')]&&_0xbcd68c[_0x7e42('0x52')](_0x543ec4,_0x3e920c['get'](_0x543ec4));}}for(const _0x4f689b of _0xbf64b8){const _0x36088b=_0xbddea1[_0x7e42('0xf8')][_0x4f689b],_0x2db775=this[_0x7e42('0xb7')](_0xbddea1[_0x7e42('0x86')][_0x4f689b]);let _0x568ce9=0x0;for(const _0x1301f3 of _0x36088b){const _0xabc60c=this[_0x7e42('0x8')](_0x1301f3),_0x3c8f73=_0x1301f3[_0x7e42('0xfc')][_0x7e42('0xe')](_0xabc60c);if(!_0xbcd68c[_0x7e42('0x99')](_0x3c8f73)&&!_0x84e551[_0x7e42('0x99')](_0x3c8f73)){if(_0x7e6c55[_0x7e42('0x99')](_0x3c8f73))_0x568ce9++;else{if(_0x3c8f73!=_0x2db775[_0x568ce9]){const _0x279ac0=_0x3e920c['get'](_0x3c8f73)||_0x3e920c['get'](_0x2db775[_0x568ce9]);for(;_0x3c8f73!=_0x2db775[_0x568ce9];)_0x7e6c55[_0x7e42('0x99')](_0x2db775[_0x568ce9])||(_0x84e551['set'](_0x2db775[_0x568ce9],_0x279ac0),_0x3e920c[_0x7e42('0x52')](_0x2db775[_0x568ce9],_0x279ac0)),_0x568ce9++;}_0x568ce9++;}}}}for(const _0x17a01c of _0xbf64b8){const _0x1ddc57=_0xbddea1[_0x7e42('0xf8')][_0x17a01c];for(const _0x214daf of _0x1ddc57){const _0x371d8a=this[_0x7e42('0x8')](_0x214daf),_0x4bdaff=_0x214daf[_0x7e42('0xfc')][_0x7e42('0xe')](_0x371d8a);if(_0x84e551[_0x7e42('0x99')](_0x4bdaff)){const _0x462a42=_0x84e551[_0x7e42('0x45')](_0x4bdaff);_0x7e6c55[_0x7e42('0x99')](_0x4bdaff)||_0x7e6c55[_0x7e42('0x52')](_0x4bdaff,{..._0x462a42}),_0xbcd68c[_0x7e42('0x52')](_0x4bdaff,{..._0x462a42});}}}for(const _0x36ae8d of _0x7e6c55[_0x7e42('0xc')]())_0x36ae8d>=this['_startingRevisionId']&&_0x7e6c55[_0x7e42('0x60')](_0x36ae8d);const _0x264433=new Map();for(const _0x32480a of _0xbf64b8){let _0x2f3ad3=_0xbddea1[_0x7e42('0xf8')][_0x32480a];for(const _0x32abd4 of _0x2f3ad3)if(_0x32abd4[_0x7e42('0xfc')]['is'](_0x7e42('0x20'),_0x7e42('0x3b'))){const _0x3ea35e=this['_getVidAttributeName'](_0x32abd4),_0x4f48fd=_0x32abd4[_0x7e42('0xfc')][_0x7e42('0xe')](_0x3ea35e);if(_0xbcd68c[_0x7e42('0x99')](_0x4f48fd)){const _0x477f12=_0x32abd4[_0x7e42('0xfc')][_0x7e42('0x6b')][_0x7e42('0x6b')][_0x7e42('0xe')](_0x7e42('0xc7')),_0x2a4dce=_0x264433[_0x7e42('0x45')](_0x477f12)||new Set();_0x2a4dce['add'](_0xbcd68c[_0x7e42('0x45')](_0x4f48fd)[_0x7e42('0xb4')]),_0x264433[_0x7e42('0x52')](_0x477f12,_0x2a4dce);}}_0x2f3ad3=_0xbddea1[_0x7e42('0x86')][_0x32480a];for(const _0x1c1230 of _0x2f3ad3)if(_0x1c1230[_0x7e42('0xfc')]['is']('element',_0x7e42('0x3b'))){const _0x582039=this[_0x7e42('0x8')](_0x1c1230),_0xf34e37=_0x1c1230[_0x7e42('0xfc')]['getAttribute'](_0x582039);if(_0x7e6c55[_0x7e42('0x99')](_0xf34e37)){const _0x472a7a=_0x1c1230[_0x7e42('0xfc')][_0x7e42('0x6b')][_0x7e42('0x6b')][_0x7e42('0xe')]('vid_start'),_0x1a1ef8=_0x264433[_0x7e42('0x45')](_0x472a7a)||new Set();_0x1a1ef8['add'](_0x7e6c55[_0x7e42('0x45')](_0xf34e37)[_0x7e42('0xb4')]),_0x264433[_0x7e42('0x52')](_0x472a7a,_0x1a1ef8);}}for(const _0x1bdc3b of _0x264433['keys']())(_0xbcd68c[_0x7e42('0x99')](_0x1bdc3b)||_0x7e6c55['has'](_0x1bdc3b))&&_0x264433[_0x7e42('0x60')](_0x1bdc3b);}for(const _0x11ed81 of _0xbf64b8){const _0x3f3e08=_0xbddea1[_0x7e42('0xf8')][_0x11ed81];let _0x3b3488=null,_0x49f3be=null;for(const _0x2caccc of _0x3f3e08){const _0x3df8bf=this['_getVidAttributeName'](_0x2caccc),_0x1814b9=_0x2caccc['item'][_0x7e42('0xe')](_0x3df8bf),_0x319463=_0x264433[_0x7e42('0x45')](_0x1814b9);_0x319463&&_0x7e42('0xbd')==_0x2caccc['type']&&(_0x3b3488=Array[_0x7e42('0x14')](_0x319463)[0x0],_0x49f3be=_0x2caccc['item'][_0x7e42('0xe')](_0x7e42('0x7f'))),_0x3b3488&&(_0x7e6c55[_0x7e42('0x52')](_0x1814b9,{'userId':_0x3b3488}),_0xbcd68c[_0x7e42('0x52')](_0x1814b9,{'userId':_0x3b3488})),_0x1814b9==_0x49f3be&&(_0x3b3488=null,_0x49f3be=null);}}const _0x231f33={},_0x34e390=new Set();for(const _0x55fc6c of _0xbf64b8){const _0x55951e=_0x2c0c57[_0x7e42('0x86')][_0x55fc6c],_0x4d7a7d=_0x2c0c57['insertions'][_0x55fc6c];for(const {userId:_0x208ee1}of this['_touchedMarkers'][_0x7e42('0x64')]())null!==_0x208ee1&&_0x34e390[_0x7e42('0x75')](_0x208ee1);for(const {userId:_0xc6f567}of this['_touchedRoots'][_0x7e42('0x64')]())null!==_0xc6f567&&_0x34e390[_0x7e42('0x75')](_0xc6f567);this[_0x7e42('0x94')](_0x4d7a7d,_0xbddea1['insertions'][_0x55fc6c],_0xbcd68c,'insertion',_0x34e390),this[_0x7e42('0x94')](_0x55951e,_0xbddea1[_0x7e42('0x86')][_0x55fc6c],_0x7e6c55,_0x7e42('0x4b'),_0x34e390),_0x231f33[_0x55fc6c]={'insertions':this['_prepareViewToSave'](_0x4d7a7d),'deletions':this[_0x7e42('0x5d')](_0x55951e),'attachChange':this['_touchedRoots'][_0x7e42('0x45')](_0x55fc6c)||null,'attributesBefore':_0xb9594c(this['_baseRootsAttributes']['get'](_0x55fc6c))||{},'attributesAfter':_0xb9594c(this['_diffRootsAttributes']['get'](_0x55fc6c))};}return{'diffData':_0x231f33,'authorsIds':Array[_0x7e42('0x14')](_0x34e390)};}['_processRootBeforeSave'](_0xc4584b){for(const [,_0x303d87]of _0xc4584b['markers']){const _0x3e8064=_0x303d87[_0x7e42('0xdb')][_0x7e42('0x47')]()[_0x7e42('0xef')](_0x5c6a54=>_0x7e42('0x3b')==_0x5c6a54[_0x7e42('0x8c')]);for(const _0x278f77 of _0x3e8064)0x1==_0x278f77[_0x7e42('0x9')]&&_0x278f77[_0x7e42('0x42')](0x0)['is'](_0x7e42('0x20'),_0x7e42('0x98'))&&_0x278f77[_0x7e42('0x42')](0x0)[_0x7e42('0x1b')](_0x7e42('0xa4'),!0x0);}}[_0x7e42('0x5d')](_0x325363){this[_0x7e42('0xf3')](_0x325363);const _0x4066ab=this['editor'][_0x7e42('0xc5')][_0x7e42('0x25')](_0x325363,{}),_0x4c335a=Array[_0x7e42('0x14')](_0x4066ab['getChildren']())[_0x7e42('0xad')](_0x189e40=>this[_0x7e42('0x97')](_0x189e40));return JSON[_0x7e42('0x69')](_0x4c335a);}[_0x7e42('0x97')](_0x474f90){if(_0x474f90['is'](_0x7e42('0x6d')))return _0x474f90[_0x7e42('0xc5')];{const _0x13bc79=_0x474f90;return{'type':Object['keys'](B)[_0x7e42('0x4e')](_0x32f5db=>_0x474f90 instanceof B[_0x32f5db]),'name':_0x13bc79[_0x7e42('0x8c')],'attributes':Array[_0x7e42('0x14')](_0x13bc79['getAttributes']()),'children':Array[_0x7e42('0x14')](_0x13bc79[_0x7e42('0xe7')]())[_0x7e42('0xad')](_0x2d2484=>this['_getViewJson'](_0x2d2484))};}}[_0x7e42('0x94')](_0x32e05a,_0x18f073,_0x212763,_0x1e4547,_0x38e5aa){let _0x219673=null,_0x209b95=null,_0x52e5ee=0x0;const _0x30ebcf=this[_0x7e42('0x3c')][_0x7e42('0xa8')];for(let _0x1640b4=0x0;_0x1640b4<_0x18f073[_0x7e42('0xe1')];_0x1640b4++){const _0x55d11f=this[_0x7e42('0x8')](_0x18f073[_0x1640b4]),_0x37b7e6=_0x18f073[_0x1640b4][_0x7e42('0xfc')][_0x7e42('0xe')](_0x55d11f),_0x189626=_0x212763['get'](_0x37b7e6),_0x12e76f=_0x1640b4==_0x18f073[_0x7e42('0xe1')]-0x1;(!_0x219673&&_0x189626&&(_0x219673=_0x189626,_0x209b95=_0x18f073[_0x1640b4]),_0x219673&&(!_0x189626||_0x189626[_0x7e42('0xb4')]!=_0x219673[_0x7e42('0xb4')]))&&(_0x4400f7(_0x189626,L(_0x209b95,_0x32e05a,_0x30ebcf),L(_0x18f073[_0x1640b4],_0x32e05a,_0x30ebcf)),_0x219673=_0x189626||null,_0x209b95=_0x189626?_0x18f073[_0x1640b4]:null),_0x219673&&_0x12e76f&&_0x4400f7(_0x189626,L(_0x209b95,_0x32e05a,_0x30ebcf),W(_0x18f073[_0x1640b4],_0x32e05a,_0x30ebcf));}function _0x4400f7(_0x346694,_0x489196,_0x5a7f8c){const _0x5f3cc9=_0x219673['userId'],_0x508056=_0x7e42('0x17')+_0x1e4547+':'+_0x5f3cc9+':'+_0x52e5ee++,_0xeda961=_0x30ebcf['createRange'](_0x489196,_0x5a7f8c);_0x32e05a[_0x7e42('0x93')]['set'](_0x508056,_0xeda961),null!==_0x5f3cc9&&_0x38e5aa[_0x7e42('0x75')](_0x5f3cc9);}}[_0x7e42('0x8')](_0x4bad1c){switch(_0x4bad1c[_0x7e42('0xc4')]){case _0x7e42('0xbd'):return'vid_start';case _0x7e42('0xfe'):return'vid_end';default:return _0x7e42('0xd');}}[_0x7e42('0x5f')](_0x482212,_0x4cc115){_0x482212[_0x7e42('0x89')]=null;for(const _0x3d4a6f in _0x482212){const _0x4872d1=_0x482212[_0x3d4a6f];if(_0x4872d1 instanceof _0x1676b1){const _0x266ec8=_0x4cc115[_0x7e42('0x45')](_0x4872d1[_0x7e42('0x80')][_0x7e42('0x6a')]);_0x482212[_0x3d4a6f]=this['_fixPosition'](_0x4872d1,_0x266ec8);}if(_0x4872d1 instanceof _0x34d5c0){const _0x2d0f55=_0x4cc115[_0x7e42('0x45')](_0x4872d1[_0x7e42('0x80')][_0x7e42('0x6a')]);_0x482212[_0x3d4a6f]=this[_0x7e42('0x4')](_0x4872d1,_0x2d0f55);}'root'===_0x3d4a6f&&(_0x482212[_0x7e42('0x80')]=_0x4cc115[_0x7e42('0x45')](_0x482212[_0x7e42('0x80')][_0x7e42('0x6a')]));}}[_0x7e42('0x4')](_0x54d050,_0x5bb3c6){return this[_0x7e42('0x3c')][_0x7e42('0xa8')][_0x7e42('0x48')](this[_0x7e42('0xd2')](_0x54d050['start'],_0x5bb3c6),this[_0x7e42('0xd2')](_0x54d050['end'],_0x5bb3c6));}['_fixPosition'](_0xebea5e,_0x9a83b9){return this[_0x7e42('0x3c')][_0x7e42('0xa8')][_0x7e42('0x37')](_0x9a83b9,_0xebea5e[_0x7e42('0xae')],_0xebea5e[_0x7e42('0x29')]);}[_0x7e42('0x49')](_0x23a555){const _0x13d521=this['_idsRoots'][_0x7e42('0x45')](_0x23a555[_0x7e42('0xd8')]['root'][_0x7e42('0x6a')]),_0xacbdd3=this[_0x7e42('0xd2')](_0x23a555[_0x7e42('0xd8')],_0x13d521),_0x2b2823=null===_0x23a555[_0x7e42('0x6c')]?null:_0x23a555[_0x7e42('0x6c')]||this['editor'][_0x7e42('0x105')][_0x7e42('0x45')](_0x7e42('0xba'))['me']['id'],_0x4a813f=_0xacbdd3[_0x7e42('0x6b')],_0x271438=this[_0x7e42('0x53')],_0x2e7bd8=[];for(const _0x149913 of _0x23a555[_0x7e42('0xa0')])if(_0x149913['is'](_0x7e42('0x20')))_0x2e7bd8[_0x7e42('0xea')](this['_makeIdsRoot'](_0x149913));else for(let _0x467658=0x0;_0x467658<_0x149913['offsetSize'];_0x467658++)_0x2e7bd8[_0x7e42('0xea')](new _0x36609d('$text',{'vid':this[_0x7e42('0x53')]++}));const _0x4bc147=this[_0x7e42('0x53')];for(let _0x43fa1e=_0x271438;_0x43fa1e<_0x4bc147;_0x43fa1e++)this[_0x7e42('0xa5')][_0x7e42('0x52')](_0x43fa1e,{'userId':_0x2b2823});_0x4a813f[_0x7e42('0xd0')](_0xacbdd3['offset'],_0x2e7bd8);}[_0x7e42('0xa1')](_0x473ded){(_0x473ded=this[_0x7e42('0x1')](_0x473ded,this[_0x7e42('0xe3')]))[_0x7e42('0xcd')]();const _0x79d7ab=null===_0x473ded[_0x7e42('0x6c')]?null:_0x473ded[_0x7e42('0x6c')]||this[_0x7e42('0x3c')][_0x7e42('0x105')][_0x7e42('0x45')](_0x7e42('0xba'))['me']['id'],_0x12c918=_0x473ded['getMovedRangeStart'](),_0x35d74a=_0x12c918[_0x7e42('0x6b')],_0x4368be=_0x12c918['offset'];!function _0x4663aa(_0x121b6c,_0x161e49,_0xe07542,_0x3936af){for(let _0x43061a=_0xe07542;_0x43061a<_0x3936af;_0x43061a++){const _0x14da5e=_0x161e49[_0x7e42('0x42')](_0x43061a);_0x14da5e['is'](_0x7e42('0x20'),'$text')?_0x121b6c[_0x7e42('0x52')](_0x14da5e['getAttribute']('vid'),{'userId':_0x79d7ab}):(_0x121b6c[_0x7e42('0x52')](_0x14da5e[_0x7e42('0xe')](_0x7e42('0xc7')),{'userId':_0x79d7ab}),_0x4663aa(_0x121b6c,_0x14da5e,0x0,_0x14da5e[_0x7e42('0x9')]),_0x121b6c[_0x7e42('0x52')](_0x14da5e[_0x7e42('0xe')](_0x7e42('0x7f')),{'userId':_0x79d7ab}));}}(this['_touched'],_0x35d74a,_0x4368be,_0x4368be+_0x473ded[_0x7e42('0xdc')]);}[_0x7e42('0x8d')](_0x17da74){const _0x1429c2=null===(_0x17da74=this['_cloneOperation'](_0x17da74,this['_idsRoots']))[_0x7e42('0x6c')]?null:_0x17da74[_0x7e42('0x6c')]||this['editor']['plugins']['get'](_0x7e42('0xba'))['me']['id'],_0x55e7b7=_0x17da74['targetPosition'][_0x7e42('0x6b')],_0x26c3b6=_0x17da74[_0x7e42('0x27')][_0x7e42('0x6b')],_0x369ff8=_0x55e7b7['getAttribute'](_0x7e42('0x7f')),_0x4074cd=_0x26c3b6[_0x7e42('0xe')](_0x7e42('0xc7'));_0x55e7b7[_0x7e42('0x1b')](_0x7e42('0x7f'),_0x26c3b6[_0x7e42('0xe')](_0x7e42('0x7f'))),_0x26c3b6[_0x7e42('0x1b')](_0x7e42('0x7f'),_0x369ff8),this[_0x7e42('0xa5')]['set'](_0x4074cd,{'userId':_0x1429c2}),this[_0x7e42('0xa5')][_0x7e42('0x52')](_0x369ff8,{'userId':_0x1429c2}),_0x17da74['_execute']();}[_0x7e42('0x62')](_0x3c1461){const _0x5b9c54=null===(_0x3c1461=this[_0x7e42('0x1')](_0x3c1461,this[_0x7e42('0xe3')]))[_0x7e42('0x6c')]?null:_0x3c1461[_0x7e42('0x6c')]||this[_0x7e42('0x3c')][_0x7e42('0x105')][_0x7e42('0x45')](_0x7e42('0xba'))['me']['id'],_0x591f6=_0x3c1461['graveyardPosition'],_0xbef190=_0x3c1461['splitPosition'][_0x7e42('0x6b')];_0x3c1461['_execute']();const _0x1be6b2=_0xbef190[_0x7e42('0xe')](_0x7e42('0x7f')),_0x34a89e=_0x3c1461['insertionPosition'][_0x7e42('0xd3')];if(_0x591f6){const _0x288baa=_0x34a89e['getAttribute'](_0x7e42('0x7f')),_0x31da49=_0xbef190[_0x7e42('0xe')]('vid_end');_0xbef190[_0x7e42('0x1b')]('vid_end',_0x288baa),_0x34a89e['_setAttribute']('vid_end',_0x31da49),this[_0x7e42('0xa5')][_0x7e42('0x52')](_0xbef190[_0x7e42('0xe')]('vid_end'),{'userId':_0x5b9c54}),this['_touched'][_0x7e42('0x52')](_0x34a89e[_0x7e42('0xe')](_0x7e42('0xc7')),{'userId':_0x5b9c54});}else{const _0x26dadf=this[_0x7e42('0x53')]++,_0x4e33e8=this[_0x7e42('0x53')]++;_0xbef190[_0x7e42('0x1b')](_0x7e42('0x7f'),_0x26dadf),_0x34a89e[_0x7e42('0x1b')](_0x7e42('0xc7'),_0x4e33e8),_0x34a89e[_0x7e42('0x1b')](_0x7e42('0x7f'),_0x1be6b2),this['_touched']['set'](_0x26dadf,{'userId':_0x5b9c54}),this[_0x7e42('0xa5')][_0x7e42('0x52')](_0x4e33e8,{'userId':_0x5b9c54});}}[_0x7e42('0x7c')](_0x507114){if(!_0x507114[_0x7e42('0x10')])return;const _0x3772fd=(_0x507114=this['_cloneOperation'](_0x507114,this[_0x7e42('0x31')]))[_0x7e42('0xab')]?_0x507114[_0x7e42('0xab')]['root']:null,_0x151783=_0x507114[_0x7e42('0x76')]?_0x507114['newRange'][_0x7e42('0x80')]:null;_0x3772fd&&this['_markers'][_0x7e42('0x60')](_0x507114['name']),_0x151783&&this[_0x7e42('0xf0')]['set'](_0x507114[_0x7e42('0x8c')],_0x507114[_0x7e42('0x76')][_0x7e42('0x46')]());const _0x1c014c=null===_0x507114[_0x7e42('0x6c')]?null:_0x507114[_0x7e42('0x6c')]||this[_0x7e42('0x3c')][_0x7e42('0x105')][_0x7e42('0x45')]('Users')['me']['id'],_0x5b5015=_0x507114[_0x7e42('0x8c')];if(!this[_0x7e42('0xaa')][_0x7e42('0x99')](_0x5b5015))return void this['_touchedMarkers'][_0x7e42('0x52')](_0x5b5015,{'range':_0x507114[_0x7e42('0xab')],'userId':_0x1c014c});const _0x260828=this[_0x7e42('0xaa')][_0x7e42('0x45')](_0x5b5015),_0x20bde1=_0x260828['range'],_0x31c7ea=_0x507114[_0x7e42('0x76')];null==_0x20bde1&&null==_0x31c7ea||_0x20bde1&&_0x31c7ea&&_0x20bde1['isEqual'](_0x31c7ea)?this[_0x7e42('0xaa')][_0x7e42('0x60')](_0x507114['name']):_0x260828[_0x7e42('0xb4')]=_0x1c014c;}[_0x7e42('0x101')](_0x11a107,_0x467c4b){this['_diffRoots'][_0x7e42('0x99')](_0x11a107[_0x7e42('0x6a')])?this[_0x7e42('0x31')][_0x7e42('0x45')](_0x11a107['rootName'])[_0x7e42('0xd7')]=_0x11a107[_0x7e42('0xcc')]:(this[_0x7e42('0x31')][_0x7e42('0x52')](_0x11a107['rootName'],G(_0x11a107[_0x7e42('0x6a')],!0x0)),this['_diffRootsAttributes'][_0x7e42('0x52')](_0x11a107[_0x7e42('0x6a')],{}),_0x467c4b&&this[_0x7e42('0xe3')]['set'](_0x11a107[_0x7e42('0x6a')],G(_0x11a107[_0x7e42('0x6a')],!0x0)));const _0x8ee972=null===_0x11a107[_0x7e42('0x6c')]?null:_0x11a107[_0x7e42('0x6c')]||this[_0x7e42('0x3c')][_0x7e42('0x105')][_0x7e42('0x45')](_0x7e42('0xba'))['me']['id'],_0x13edbe=this['_touchedRoots'][_0x7e42('0x45')](_0x11a107[_0x7e42('0x6a')]);_0x13edbe&&_0x13edbe[_0x7e42('0xb4')]===_0x8ee972?this[_0x7e42('0x40')]['delete'](_0x11a107[_0x7e42('0x6a')]):this[_0x7e42('0x40')][_0x7e42('0x52')](_0x11a107[_0x7e42('0x6a')],{'userId':_0x8ee972,'isAttached':_0x11a107[_0x7e42('0xcc')]});}[_0x7e42('0x5b')](_0x55b338){const _0x35cf8c=this['_diffRootsAttributes']['get'](_0x55b338[_0x7e42('0x80')][_0x7e42('0x6a')]);null===_0x55b338[_0x7e42('0x5a')]?delete _0x35cf8c[_0x55b338[_0x7e42('0xe2')]]:_0x35cf8c[_0x55b338[_0x7e42('0xe2')]]=_0x55b338['newValue'];}}function q(_0x38b348){const _0x2bc91c=G(_0x38b348['rootName'],_0x38b348[_0x7e42('0xc8')]());for(const _0x81f8e0 of _0x38b348[_0x7e42('0xe7')]()){const _0x267443=_0x81f8e0[_0x7e42('0x59')](!0x0);_0x2bc91c[_0x7e42('0x3e')](_0x267443);}return _0x2bc91c;}function G(_0x4b017d,_0x2181af=!0x0){const _0x4d2434=new _0x74f02d();return _0x4d2434[_0x7e42('0x6a')]=_0x4b017d,_0x4d2434['_isAttached']=_0x2181af,_0x4d2434['isAttached']=()=>_0x4d2434[_0x7e42('0xd7')],_0x4d2434;}function L(_0x235797,_0x30de96,_0x1c715f){const _0x2a7eb7=_0x7e42('0xfe')==_0x235797['type']?_0x1c715f[_0x7e42('0x54')](_0x235797[_0x7e42('0xfc')],'end'):_0x1c715f[_0x7e42('0xa')](_0x235797[_0x7e42('0xfc')]);return _0x1c715f['createPositionFromPath'](_0x30de96,_0x2a7eb7['path'],_0x2a7eb7[_0x7e42('0x29')]);}function W(_0x4c18e2,_0x4779de,_0x5d672c){const _0x5dad0e='elementStart'==_0x4c18e2[_0x7e42('0xc4')]?_0x5d672c[_0x7e42('0x54')](_0x4c18e2['item'],0x0):_0x5d672c[_0x7e42('0xa2')](_0x4c18e2['item']);return _0x5d672c[_0x7e42('0x37')](_0x4779de,_0x5dad0e[_0x7e42('0xae')],_0x5dad0e[_0x7e42('0x29')]);}
|
|
23
|
+
const _0x18f1=['useFillerType','splitPosition','rootName','howMany','end','initial','getTransformedByOperation','Empty\x20document','_prepareViewToSave','_removeRevisionMarkers','isAttached','$text','_makeRevision','creator','_makeIdsRoot','getRootNames','revision-start','getAttribute','default','markerToData','trim','vid_start','_authorId','getAttributes','previousPosition','insert','affectsData','newRange','element','type','dataDowncast','_touched','stickiness','getNodeByPath','_fixPosition','_update','data','_getViewJson','_loadRevisionData','_bufferUpdate','paragraph','config','ready','insertions','_baseRootsAttributes','forEach','_insertChild','reInit','then','has','_revisionDataBuilder','text','_cloneOperation','_applyOperations','_clone','_handleSplitOperation','revision:','clone','_lastFrom','getRange','data-revision-','deletions','_diffRoots','getIndex','_handleRootAttributeOperation','_continueCurrentRevision','graveyardPosition','set','collaboration.channelId','_source','_getVidAttributeName','_initialRevisionId','fromVersion','_appendChild','toData','_handleMoveOperation','_bufferedUpdates','revision','slice','editor','parent','userId','addRootAttribute','root','from','add','children','repository','_findInsertionIndex','sourcePosition','offset','RevisionsRepository','_handleInsertOperation','addRoot','getUser','baseVersion','_removeMetaData','find','newValue','_operations','getTime','_makeModelFromViewString','startsWith','_savedMetaData','hasContent','_addPendingAction','_markers','creatorId','sendBufferedUpdates','getChildren','isAdd','RealTimeCollaborationClient','_processRootBeforeSave','_diffRootsAttributes','bind','fromEntries','loadState','keys','reinsert','clear','createPositionFromPath','toVersion','stringify','filter','offsetSize','getChild','document','_startingVersion','_lastTo','_setConversion','createPositionAfter','_getPreviousFrom','rootsAttributes','some','diffData','resolve','reverse','createPositionBefore','version','view','init','NEGATIVE_INFINITY','_createFromRanges','Users','includes','getLatestVersion','_handleMarkerOperation','dataToMarker','_reset','history','string','shift','_createCurrentRevision','deletion','initialData','map','vid_end','addRevisionData','authorsIds','currentRevision','item','delete','RevisionTracker','push','length','nodes','_getBaseVids','setRevisionData','elementEnd','_setAttribute','move','keepParagraph','_startingRevisionId','createRevision','getOperation','max','_execute','_baseIdsRoots','createdAt','buildRevisionData','getWalker','$graveyard','getCurrentRevisionId','processor','Initial\x20revision','isReady','revisionHistory.resumeUnsavedRevision','attributesAfter','_loadState','_isPendingUpdate','_getFromVersion','getRoot','adapter','_saveMetaData','tableCell','_markChanges','childCount','conversion','_getState','oldRange','PendingActions','createRangeIn','_replaceEditorDataWithRevisionData','_createInitialRevision','getData','_removePendingAction','model','_touchedRoots','requires','parse','_handleOperation','_touchedMarkers','getRevision','editing','_copyMarkers','_handleRootOperation','_revisionId','roots','path','_idsRoots','createPositionAt','vid','insertionPosition','_transformMarkers','getRevisionDocumentData','source','key','_baseRoots','name','_generateTape','editor-initial-data-replaced-with-revision-data','_fixOperation','attributes','nodeAfter','_pendingAction','revision-end','detachRoot','position','markers','for','range','getRevisions','authors','attachChange','merge','split','start','plugins','_fixRange','_isAttached','get','size','define','marker','removeRootAttribute','values','elementStart','_loadedStateData'];(function(_0x1ba22b,_0x18f1b5){const _0x3e90c6=function(_0x468475){while(--_0x468475){_0x1ba22b['push'](_0x1ba22b['shift']());}};_0x3e90c6(++_0x18f1b5);}(_0x18f1,0xd8));const _0x3e90=function(_0x1ba22b,_0x18f1b5){_0x1ba22b=_0x1ba22b-0x0;let _0x3e90c6=_0x18f1[_0x1ba22b];return _0x3e90c6;};import{Users as _0x282716}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x34e2c8,PendingActions as _0x33c126}from'ckeditor5/src/core';import{logWarning as _0x53e235,uid as _0x1de020}from'ckeditor5/src/utils';import{Position as _0x24d00e,Range as _0x377985,Element as _0x46eb7f,DocumentFragment as _0x5942d3,ViewText as _0x1b7d16,ViewElement as _0xe1fa3f,ViewContainerElement as _0xc246c8,ViewAttributeElement as _0x4db05e,ViewEmptyElement as _0x3fa25b,ViewRawElement as _0x5e8ca4,ViewUIElement as _0xd59d64,ViewDocumentFragment as _0x59cbb8}from'ckeditor5/src/engine';import _0xf52e66 from'./revisionsrepository';import{getTranslation as _0x309c37}from'./utils/common-translations';import{cloneDeep as _0x446191,isEqual as _0x345ca}from'lodash-es';const B={'c':_0xc246c8,'a':_0x4db05e,'e':_0x3fa25b,'r':_0x5e8ca4,'u':_0xd59d64};export default class l extends _0x34e2c8{static get['pluginName'](){return _0x3e90('0xcc');}static get[_0x3e90('0xfa')](){return[_0x282716,_0xf52e66,_0x33c126];}constructor(_0x16b3fb){super(_0x16b3fb),this['adapter']=null,this[_0x3e90('0xc9')]=null,this[_0x3e90('0x5c')]=new H(this[_0x3e90('0x79')]),this[_0x3e90('0x71')]=this['editor'][_0x3e90('0x53')][_0x3e90('0x22')](_0x3e90('0x6e'))||_0x3e90('0x2f'),this['_bufferedUpdates']=new Map(),this[_0x3e90('0x29')]=null;const _0x388182=_0x1de020();this[_0x3e90('0x6f')]={'history':this[_0x3e90('0x79')][_0x3e90('0xf8')]['document'][_0x3e90('0xbf')],'getLatestVersion':()=>Promise['resolve'](this[_0x3e90('0x79')][_0x3e90('0xf8')][_0x3e90('0xa8')][_0x3e90('0xb4')]),'getCurrentRevisionId':()=>_0x388182},this[_0x3e90('0x6d')](_0x3e90('0xe3'),!0x1),this[_0x3e90('0x6d')]('isEnabled',!0x0),this[_0x3e90('0x6d')]('_isPendingUpdate',!0x1),this[_0x3e90('0x79')][_0x3e90('0x53')][_0x3e90('0x24')](_0x3e90('0xe4'),!0x0),this[_0x3e90('0x79')][_0x3e90('0xef')][_0x3e90('0x17')]('upcast')[_0x3e90('0xbd')]({'view':_0x3e90('0x77')});}['init'](){this[_0x3e90('0x81')]=this[_0x3e90('0x79')][_0x3e90('0x1f')][_0x3e90('0x22')](_0x3e90('0x85')),this['_setConversion'](),this[_0x3e90('0x79')][_0x3e90('0x4e')]['on'](_0x3e90('0x54'),()=>{const _0x1b9a79=this[_0x3e90('0x81')][_0x3e90('0xfe')](0x0),_0x252f6d=_0x1b9a79&&null===_0x1b9a79['creator']?_0x1b9a79:null;if(this['_continueCurrentRevision']=!!_0x252f6d&&this[_0x3e90('0x79')]['config'][_0x3e90('0x22')]('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins'][_0x3e90('0x5b')](_0x3e90('0x99'))){const _0x2189a7=this[_0x3e90('0x6f')][_0x3e90('0xe0')](),_0x505390=this['repository']['getRevision'](_0x2189a7);if(_0x505390)this[_0x3e90('0xa9')]=_0x505390[_0x3e90('0x72')],this[_0x3e90('0x6b')]=!0x1;else{const _0x2c862c=this['_source'][_0x3e90('0xbf')][_0x3e90('0x8d')][_0x3e90('0x8b')](_0x21f181=>!_0x21f181['_isInit']),_0x59d256=_0x2c862c?_0x2c862c[_0x3e90('0x89')]:this[_0x3e90('0x6f')][_0x3e90('0xbf')][_0x3e90('0xb4')];_0x1b9a79?(_0x1b9a79[_0x3e90('0xa3')]<_0x59d256&&_0x1b9a79[_0x3e90('0x4d')]({'toVersion':_0x59d256}),this[_0x3e90('0x6b')]?(this[_0x3e90('0x6f')][_0x3e90('0xe0')]=()=>_0x252f6d['id'],this[_0x3e90('0xa9')]=_0x252f6d['fromVersion']):(this[_0x3e90('0xa9')]=_0x1b9a79[_0x3e90('0xa3')],this[_0x3e90('0x6b')]=!0x1)):(this[_0x3e90('0xa9')]=_0x59d256,this[_0x3e90('0x6b')]=!0x1);}}else _0x252f6d&&(this[_0x3e90('0x79')][_0x3e90('0xf8')][_0x3e90('0xa8')][_0x3e90('0xbf')][_0x3e90('0xb4')]=Math[_0x3e90('0xd9')](_0x252f6d['toVersion'],this['editor']['model'][_0x3e90('0xa8')][_0x3e90('0xbf')][_0x3e90('0xb4')]),_0x252f6d['fromVersion']===_0x252f6d[_0x3e90('0xa3')]?(0x0!==_0x252f6d[_0x3e90('0x72')]&&(this[_0x3e90('0x6f')][_0x3e90('0xe0')]=()=>_0x252f6d['id']),this[_0x3e90('0x6b')]=!0x1):this[_0x3e90('0x6b')]&&(this[_0x3e90('0x6f')][_0x3e90('0xe0')]=()=>_0x252f6d['id'],this[_0x3e90('0xa9')]=_0x252f6d[_0x3e90('0x72')])),this[_0x3e90('0x6b')]||(this[_0x3e90('0xa9')]=this[_0x3e90('0x79')][_0x3e90('0xf8')]['document'][_0x3e90('0xb4')]);this[_0x3e90('0x5c')][_0x3e90('0xb6')](this[_0x3e90('0x6f')][_0x3e90('0xbf')]),this[_0x3e90('0xf5')](this[_0x3e90('0xa9')]),this['_createCurrentRevision'](this[_0x3e90('0xa9')]),this[_0x3e90('0xea')]&&this['sendBufferedUpdates']();}),this[_0x3e90('0x9c')](_0x3e90('0xe3'))['to'](this,_0x3e90('0xe7'),_0x272c1f=>!_0x272c1f);}async['afterInit'](){if(this[_0x3e90('0x81')][_0x3e90('0xce')]>0x0){const _0x2c7a3f=this['repository'][_0x3e90('0xfe')](0x0),_0x46aef5=await this[_0x3e90('0x8')](_0x2c7a3f),_0xa987c6=await this['getRevisionRootsAttributes'](_0x2c7a3f);this[_0x3e90('0xf4')](_0x46aef5,_0xa987c6);}}['setSource'](_0x4f9760){this[_0x3e90('0x6f')]=_0x4f9760;}async['update'](){const _0x576de=await this[_0x3e90('0x6f')]['getLatestVersion']();if(_0x576de>this[_0x3e90('0xc9')][_0x3e90('0xa3')]){await this['_loadState']();const _0x1bc85d=this[_0x3e90('0xdd')]({'revision':this[_0x3e90('0xc9')],'to':_0x576de});_0x1bc85d[_0x3e90('0x1a')]=_0x1bc85d[_0x3e90('0xc8')][_0x3e90('0xc5')](_0x2c7367=>this[_0x3e90('0x79')][_0x3e90('0x1f')][_0x3e90('0x22')]('Users')[_0x3e90('0x88')](_0x2c7367)),this[_0x3e90('0xc9')]['_update'](_0x1bc85d);}}async[_0x3e90('0xe6')](){this[_0x3e90('0x6b')]&&!this[_0x3e90('0x29')]&&(await this[_0x3e90('0x50')](this[_0x3e90('0xc9')]),this[_0x3e90('0x5c')][_0x3e90('0x9e')](this[_0x3e90('0xc9')]),this['_loadedStateData']={'fromVersion':this[_0x3e90('0xc9')][_0x3e90('0x72')],'authors':this[_0x3e90('0xc9')][_0x3e90('0x1a')][_0x3e90('0x78')]()});}async['saveRevision'](_0x1b15cc={},_0x33e36b=null){const _0x847f1d=[];await this[_0x3e90('0xe6')](),this[_0x3e90('0x6b')]=!0x1,_0x33e36b>this[_0x3e90('0xc9')][_0x3e90('0xa3')]&&(_0x33e36b=null),null===_0x33e36b&&(_0x33e36b=await this['_source'][_0x3e90('0xbb')]());const _0x17678c=this[_0x3e90('0xe8')](_0x33e36b),_0x3000f8=this[_0x3e90('0xdd')]({'from':_0x17678c,'to':_0x33e36b});if(this[_0x3e90('0xc9')][_0x3e90('0xa3')]<_0x33e36b){const _0x11d894=this[_0x3e90('0xdd')]({'revision':this[_0x3e90('0xc9')],'from':_0x33e36b,'to':_0x33e36b});_0x11d894[_0x3e90('0x1a')]=[],_0x11d894[_0x3e90('0xc8')]=[],_0x11d894['id']=this['currentRevision']['id'],this[_0x3e90('0xc9')][_0x3e90('0x4d')](_0x11d894,!0x0),delete _0x11d894[_0x3e90('0x1a')],_0x847f1d[_0x3e90('0xcd')](_0x11d894);}_0x1b15cc[_0x3e90('0x95')]=this[_0x3e90('0x79')][_0x3e90('0x1f')][_0x3e90('0x22')](_0x3e90('0xb9'))['me']['id'],_0x1b15cc[_0x3e90('0xc')]=_0x1b15cc[_0x3e90('0xc')]||null,_0x1b15cc['id']=_0x1b15cc['id']||_0x1de020(),_0x1b15cc={..._0x1b15cc,..._0x3000f8};const _0x349589=this['addRevisionData'](_0x1b15cc);_0x847f1d[_0x3e90('0xcd')](_0x1b15cc);const _0x16dd13=this['repository'][_0x3e90('0x69')](_0x349589);if(0x0!==_0x16dd13){const _0x424bb9=this[_0x3e90('0x81')][_0x3e90('0xfe')](_0x16dd13-0x1);if(_0x424bb9[_0x3e90('0x72')]!==_0x33e36b){const _0x2582f4=this['_revisionDataBuilder']['getData'](_0x33e36b,_0x424bb9['toVersion']),_0x3c70d4={'id':_0x424bb9['id'],'diffData':_0x2582f4[_0x3e90('0xb0')],'authorsIds':_0x2582f4[_0x3e90('0xc8')],'authors':_0x2582f4[_0x3e90('0xc8')][_0x3e90('0xc5')](_0x304b53=>this[_0x3e90('0x79')][_0x3e90('0x1f')]['get'](_0x3e90('0xb9'))[_0x3e90('0x88')](_0x304b53)),'fromVersion':_0x33e36b};_0x424bb9===this['currentRevision']&&(_0x3c70d4[_0x3e90('0xdc')]=new Date(_0x1b15cc[_0x3e90('0xdc')][_0x3e90('0x8e')]()+0xa)),_0x424bb9[_0x3e90('0x4d')](_0x3c70d4,!0x0),delete _0x3c70d4[_0x3e90('0x1a')],_0x847f1d[_0x3e90('0xcd')](_0x3c70d4);}}if(this[_0x3e90('0xea')]){for(const _0x2071e5 of _0x847f1d)this[_0x3e90('0x51')](_0x2071e5['id'],_0x2071e5,!0x0);this[_0x3e90('0x96')]();}return _0x349589;}[_0x3e90('0xc7')](_0xbb5791){const _0x54142e=this[_0x3e90('0x81')][_0x3e90('0xd7')](_0xbb5791);return this[_0x3e90('0xea')]&&_0x54142e['on'](_0x3e90('0x4d'),(_0x26bcbc,_0x195cd3,_0x3a6a96)=>{_0x3a6a96||(this[_0x3e90('0x51')](_0x195cd3['id'],_0x195cd3,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x54142e,this[_0x3e90('0x82')](_0x54142e)),_0x54142e;}async[_0x3e90('0x8')](_0x2be1ee){await this[_0x3e90('0x50')](_0x2be1ee);const _0x5e27eb={};for(const _0x5bda7a in _0x2be1ee[_0x3e90('0xb0')]){if(_0x2be1ee['diffData'][_0x5bda7a]['attachChange']&&!_0x2be1ee[_0x3e90('0xb0')][_0x5bda7a][_0x3e90('0x1b')][_0x3e90('0x34')])continue;const _0x3f73cc=this[_0x3e90('0x33')](JSON[_0x3e90('0xfb')](_0x2be1ee[_0x3e90('0xb0')][_0x5bda7a][_0x3e90('0x55')])),_0xd03498=this[_0x3e90('0x79')]['editing']['view'][_0x3e90('0xa8')],_0x4990f0=new _0x59cbb8(_0xd03498,_0x3f73cc['map'](_0x502a53=>J(_0x502a53,this[_0x3e90('0x79')])));this['editor'][_0x3e90('0x4e')][_0x3e90('0xe1')][_0x3e90('0x2a')]('marked'),_0x5e27eb[_0x5bda7a]=this[_0x3e90('0x79')][_0x3e90('0x4e')][_0x3e90('0xe1')][_0x3e90('0x74')](_0x4990f0),this[_0x3e90('0x79')][_0x3e90('0x4e')][_0x3e90('0xe1')][_0x3e90('0x2a')](_0x3e90('0x3c'));}return _0x5e27eb;}async['getRevisionRootsAttributes'](_0x5d0fe3){await this[_0x3e90('0x50')](_0x5d0fe3);const _0x26a01c={};for(const _0x30d460 in _0x5d0fe3[_0x3e90('0xb0')])_0x5d0fe3[_0x3e90('0xb0')][_0x30d460][_0x3e90('0x1b')]&&!_0x5d0fe3[_0x3e90('0xb0')][_0x30d460][_0x3e90('0x1b')][_0x3e90('0x34')]||(_0x26a01c[_0x30d460]=_0x5d0fe3[_0x3e90('0xb0')][_0x30d460]['attributesAfter']||{});return _0x26a01c;}[_0x3e90('0x96')](){if(0x0===this[_0x3e90('0x76')][_0x3e90('0x23')])return;if(this['_isPendingUpdate'])return;let _0x36150b=Array[_0x3e90('0x7e')](this[_0x3e90('0x76')][_0x3e90('0x27')]());this[_0x3e90('0x76')][_0x3e90('0xa1')]();for(let _0x502440=0x0;_0x502440<_0x36150b['length'];_0x502440++){const _0x2d3954=_0x36150b[_0x502440];let _0x630409=!0x1;for(const _0x1f2f61 of Object[_0x3e90('0x9f')](_0x2d3954))void 0x0===_0x2d3954[_0x1f2f61]?delete _0x2d3954[_0x1f2f61]:'id'!==_0x1f2f61&&(_0x630409=!0x0);_0x630409||(_0x36150b[_0x502440]=null);}if(_0x36150b=_0x36150b[_0x3e90('0xa5')](_0x24efd8=>null!==_0x24efd8),!_0x36150b[_0x3e90('0xce')])return;for(let _0x48b6ea=0x0;_0x48b6ea<_0x36150b[_0x3e90('0xce')];_0x48b6ea++){const _0x2a28b5=_0x36150b[_0x48b6ea];void 0x0!==_0x2a28b5[_0x3e90('0x72')]&&void 0x0===_0x2a28b5[_0x3e90('0xa3')]&&(_0x2a28b5['toVersion']=this[_0x3e90('0x81')][_0x3e90('0xfe')](_0x2a28b5['id'])['toVersion']),void 0x0!==_0x2a28b5[_0x3e90('0xa3')]&&void 0x0===_0x2a28b5[_0x3e90('0x72')]&&(_0x2a28b5[_0x3e90('0x72')]=this[_0x3e90('0x81')][_0x3e90('0xfe')](_0x2a28b5['id'])[_0x3e90('0x72')]);}const _0x311a14=this[_0x3e90('0x79')][_0x3e90('0x53')]['get'](_0x3e90('0x6e'));this[_0x3e90('0xe7')]=!0x0,this['_addPendingAction'](),this[_0x3e90('0xea')]['updateRevisions'](_0x36150b,_0x311a14)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x16cd4e=>{if(_0x16cd4e)for(const _0x2832ab of _0x16cd4e)this[_0x3e90('0xd1')]({'id':_0x2832ab['id'],'createdAt':_0x2832ab[_0x3e90('0xdc')]});this[_0x3e90('0xf7')](),this[_0x3e90('0x96')]();});}[_0x3e90('0xf4')](_0x3dce8f,_0x28ff60){let _0x13eb46=this[_0x3e90('0x79')][_0x3e90('0x53')]['get'](_0x3e90('0xc4')),_0x1c43f5=this[_0x3e90('0x79')][_0x3e90('0x53')][_0x3e90('0x22')](_0x3e90('0xae'));if(void 0x0===_0x13eb46){_0x13eb46={};for(const _0x5150b8 of this[_0x3e90('0x79')]['model']['document']['getRootNames']())_0x13eb46[_0x5150b8]='';}if(_0x3e90('0xc0')==typeof _0x13eb46&&(_0x13eb46={'main':_0x13eb46}),void 0x0===_0x1c43f5){_0x1c43f5={};for(const _0x3e8963 of this[_0x3e90('0x79')][_0x3e90('0xf8')]['document'][_0x3e90('0x39')]())_0x1c43f5[_0x3e8963]={};}let _0x1374b0=!0x1;const _0x35c033=Object[_0x3e90('0x9f')](_0x13eb46),_0xbc1907=Object[_0x3e90('0x9f')](_0x3dce8f);for(const _0x3aea0f of _0x35c033){if(_0x13eb46[_0x3aea0f]!==_0x3dce8f[_0x3aea0f]&&''!==_0x13eb46[_0x3aea0f][_0x3e90('0x3e')]()){_0x1374b0=!0x0;break;}if(!_0x345ca(_0x1c43f5[_0x3aea0f],_0x28ff60[_0x3aea0f])&&Object[_0x3e90('0x9f')](_0x1c43f5[_0x3aea0f])[_0x3e90('0xce')]>0x0){_0x1374b0=!0x0;break;}}_0x1374b0||(_0x1374b0=_0xbc1907[_0x3e90('0xaf')](_0x1a6e1c=>!this[_0x3e90('0x79')]['model']['document'][_0x3e90('0xe9')](_0x1a6e1c))),_0x1374b0&&_0x53e235(_0x3e90('0xe'),{'editorData':_0x13eb46,'editorRootsAttributes':_0x1c43f5,'revisionData':_0x3dce8f,'revisionRootsAttributes':_0x28ff60}),this[_0x3e90('0x79')][_0x3e90('0x53')]['set'](_0x3e90('0xc4'),_0x3dce8f),this['editor'][_0x3e90('0x53')][_0x3e90('0x6d')](_0x3e90('0xae'),_0x28ff60);}[_0x3e90('0x93')](){if(!this[_0x3e90('0x12')]){const _0x1d1aec=this[_0x3e90('0x79')]['plugins'][_0x3e90('0x22')](_0x3e90('0xf2'));this[_0x3e90('0x12')]=_0x1d1aec[_0x3e90('0x7f')](_0x309c37(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x3e90('0xf7')](){this['_pendingAction']&&(this['editor']['plugins'][_0x3e90('0x22')](_0x3e90('0xf2'))['remove'](this[_0x3e90('0x12')]),this[_0x3e90('0x12')]=null);}['_findInsertionIndex'](_0x3a5f4a){const _0x3b47b1=this[_0x3e90('0x81')][_0x3e90('0x19')]();_0x3b47b1[_0x3e90('0xb2')]();let _0x55876e=0x0;for(;_0x55876e<_0x3b47b1[_0x3e90('0xce')];){const _0x27a174=_0x3b47b1[_0x55876e];if(_0x27a174===this['currentRevision']){_0x55876e++;continue;}if(_0x27a174['id']===this[_0x3e90('0x71')])break;const _0x5cdeac=_0x3a5f4a[_0x3e90('0xa3')]-_0x27a174[_0x3e90('0xa3')]||_0x3a5f4a[_0x3e90('0x72')]-_0x27a174['fromVersion'];if(_0x5cdeac>0x0)break;if(_0x5cdeac<0x0)_0x55876e++;else{if(!_0x3a5f4a['creator']&&_0x27a174[_0x3e90('0x37')])break;if(_0x27a174[_0x3e90('0x37')]||!_0x3a5f4a['creator']){if(_0x3a5f4a['createdAt']>_0x27a174[_0x3e90('0xdc')])break;_0x55876e++;}else _0x55876e++;}}return _0x55876e;}['setRevisionData'](_0x303861){const _0x34ea70=this['repository'][_0x3e90('0xfe')](_0x303861['id']);if(_0x303861[_0x3e90('0xdc')]&&(_0x303861[_0x3e90('0xdc')]=new Date(_0x303861['createdAt'])),_0x303861[_0x3e90('0xc8')]){const _0xbbcc04=this[_0x3e90('0x79')][_0x3e90('0x1f')][_0x3e90('0x22')](_0x3e90('0xb9'));_0x303861[_0x3e90('0x1a')]=_0x303861[_0x3e90('0xc8')]['map'](_0x2ed3a1=>_0xbbcc04[_0x3e90('0x88')](_0x2ed3a1));}_0x34ea70[_0x3e90('0x4d')](_0x303861,!0x0);}[_0x3e90('0xdd')]({revision:_0x33a48e=null,from:_0x553968=null,to:_0x26e69f=null}){_0x553968=null!==_0x553968?_0x553968:_0x33a48e[_0x3e90('0x72')],_0x26e69f=null!==_0x26e69f?_0x26e69f:_0x33a48e[_0x3e90('0xa3')];const _0x97a072=this[_0x3e90('0x5c')][_0x3e90('0xf6')](_0x553968,_0x26e69f),_0x4945f9={'diffData':_0x97a072['diffData'],'authorsIds':_0x97a072[_0x3e90('0xc8')],'fromVersion':_0x553968,'toVersion':_0x26e69f};if(!_0x33a48e||_0x26e69f!==_0x33a48e[_0x3e90('0xa3')]){const _0x2d8148=_0x26e69f-0x1,_0x17dcc2=this[_0x3e90('0x6f')]['history'][_0x3e90('0xd8')](_0x2d8148);_0x4945f9['createdAt']=_0x17dcc2&&_0x17dcc2[_0x3e90('0xdc')]||new Date();}if(this[_0x3e90('0x29')]&&_0x553968===this['_loadedStateData']['fromVersion'])for(const _0x16c0cc of this['_loadedStateData'][_0x3e90('0x1a')])_0x4945f9[_0x3e90('0xc8')][_0x3e90('0xba')](_0x16c0cc['id'])||_0x4945f9[_0x3e90('0xc8')]['push'](_0x16c0cc['id']);return _0x4945f9;}[_0x3e90('0x50')](_0x387b8b){if(!_0x387b8b||_0x387b8b[_0x3e90('0xb0')])return Promise[_0x3e90('0xb1')]();{const _0x41f1c6=this[_0x3e90('0x79')][_0x3e90('0x53')][_0x3e90('0x22')]('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x41f1c6,'revisionId':_0x387b8b['id']})[_0x3e90('0x5a')](_0x5b0a8b=>{_0x387b8b[_0x3e90('0xb0')]=_0x5b0a8b[_0x3e90('0xb0')];});}}[_0x3e90('0x51')](_0x129e93,_0x5c2907,_0x2614b6){if(this['_bufferedUpdates'][_0x3e90('0x5b')](_0x129e93)){const _0x3197b2=this[_0x3e90('0x76')][_0x3e90('0x22')](_0x129e93);_0x5c2907=_0x2614b6?{..._0x3197b2,..._0x5c2907}:{..._0x5c2907,..._0x3197b2};}this[_0x3e90('0x76')]['set'](_0x129e93,_0x5c2907);}['_getFromVersion'](_0x2c77e0){const _0x372e10=this[_0x3e90('0x81')][_0x3e90('0x19')]();_0x372e10[_0x3e90('0xb2')](),_0x372e10[_0x3e90('0xc1')]();const _0xfc98c=_0x372e10['find'](_0x334bed=>_0x334bed[_0x3e90('0xa3')]<=_0x2c77e0)['toVersion'];return _0xfc98c<this[_0x3e90('0xa9')]?this['_startingVersion']:_0xfc98c;}['_createInitialRevision'](_0x44bc5d){const _0x395274=this[_0x3e90('0x81')][_0x3e90('0xfe')](this[_0x3e90('0x81')][_0x3e90('0xce')]-0x1);if(_0x395274)this[_0x3e90('0x71')]=_0x395274['id'];else{const _0x28d18a=!this['editor']['model'][_0x3e90('0xa8')]['roots']['find'](_0x3aabb8=>this[_0x3e90('0x79')]['model'][_0x3e90('0x92')](_0x3aabb8)),_0x195255=this['editor'][_0x3e90('0x1f')][_0x3e90('0x22')](_0x3e90('0xb9'))['me']['id'],_0x4b5661=_0x309c37(this[_0x3e90('0x79')]['locale'],_0x28d18a?_0x3e90('0x31'):_0x3e90('0xe2'));this[_0x3e90('0x36')]({'from':_0x44bc5d,'to':_0x44bc5d,'id':this['_initialRevisionId'],'name':_0x4b5661,'creatorId':_0x195255});}}[_0x3e90('0xc2')](_0x32d044){const _0x482a17=this[_0x3e90('0x6f')][_0x3e90('0xe0')]();this[_0x3e90('0xc9')]=this[_0x3e90('0x81')][_0x3e90('0xfe')](_0x482a17),this[_0x3e90('0xc9')]||(this['currentRevision']=this[_0x3e90('0x36')]({'from':_0x32d044,'to':_0x32d044,'id':_0x482a17,'name':'','creatorId':null}));}['_makeRevision']({name:_0x438bf7,from:_0x434e25,to:_0x29a8ff,creatorId:_0x3dcdab,id:_0x39a48c}){const _0x220bf4=this['buildRevisionData']({'from':_0x434e25,'to':_0x29a8ff});_0x220bf4[_0x3e90('0xc')]=_0x438bf7,_0x220bf4[_0x3e90('0x95')]=_0x3dcdab,_0x220bf4['id']=_0x39a48c;const _0x148791=this[_0x3e90('0xc7')](_0x220bf4);return this[_0x3e90('0xea')]&&this[_0x3e90('0x51')](_0x220bf4['id'],_0x220bf4,!0x0),_0x148791;}[_0x3e90('0xab')](){this[_0x3e90('0x79')]['conversion'][_0x3e90('0x17')](_0x3e90('0x48'))[_0x3e90('0x3d')]({'model':_0x3e90('0x77')});}[_0x3e90('0x33')](_0x123fe5){return(_0x123fe5=_0x123fe5[_0x3e90('0xa5')](_0x4dc08e=>!_0x4dc08e['name']||_0x3e90('0x3a')!==_0x4dc08e[_0x3e90('0xc')]&&_0x3e90('0x13')!==_0x4dc08e['name']))[_0x3e90('0x57')](_0x47fd66=>{'string'!=typeof _0x47fd66&&(_0x47fd66[_0x3e90('0x80')]=this['_removeRevisionMarkers'](_0x47fd66[_0x3e90('0x80')]),_0x47fd66['attributes']=_0x47fd66[_0x3e90('0x10')][_0x3e90('0xa5')](_0x3e3f1=>!_0x3e3f1[0x0][_0x3e90('0x90')](_0x3e90('0x66'))));}),_0x123fe5;}}function J(_0x4f9c9a,_0x29c0a5){const _0x3f7fd2=_0x29c0a5['editing'][_0x3e90('0xb5')][_0x3e90('0xa8')];if('string'==typeof _0x4f9c9a)return new _0x1b7d16(_0x3f7fd2,_0x4f9c9a);{const _0x1932fd=_0x4f9c9a[_0x3e90('0x80')][_0x3e90('0xc5')](_0x2bc009=>J(_0x2bc009,_0x29c0a5));return new(B[_0x4f9c9a[(_0x3e90('0x47'))]]||_0xe1fa3f)(_0x3f7fd2,_0x4f9c9a['name'],_0x4f9c9a[_0x3e90('0x10')],_0x1932fd);}}class H{constructor(_0x1bd9db){this['editor']=_0x1bd9db,this[_0x3e90('0x91')]=new Map(),this[_0x3e90('0x64')]=-0x1,this[_0x3e90('0xaa')]=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this[_0x3e90('0x9b')]=new Map(),this[_0x3e90('0xb')]=new Map(),this[_0x3e90('0x56')]=new Map(),this[_0x3e90('0x3')]=new Map(),this[_0x3e90('0xdb')]=new Map(),this[_0x3e90('0x49')]=new Map(),this[_0x3e90('0xfd')]=new Map(),this[_0x3e90('0xf9')]=new Map(),this['_revisionId']=0x1;}['init'](_0x56d7d1){this[_0x3e90('0x9')]=_0x56d7d1;const _0x2a344b=new Map(),_0x1b9b51=new Map(),_0x329ef5=this[_0x3e90('0x79')][_0x3e90('0xf8')]['document'][_0x3e90('0x1')][_0x3e90('0xc5')](_0x357e26=>_0x357e26[_0x3e90('0x2c')]);for(const _0x38f7cd of _0x329ef5){const _0x288ca2=this[_0x3e90('0x79')][_0x3e90('0xf8')]['document']['getRoot'](_0x38f7cd),_0x23fc95=q(_0x288ca2);_0x2a344b['set'](_0x38f7cd,_0x23fc95),_0x1b9b51[_0x3e90('0x6d')](_0x38f7cd,Object[_0x3e90('0x9d')](_0x288ca2[_0x3e90('0x41')]()));}const _0x582280=Array['from'](this[_0x3e90('0x79')][_0x3e90('0xf8')][_0x3e90('0x16')])[_0x3e90('0xc5')](_0x3f3bee=>[_0x3f3bee[_0x3e90('0xc')],_0x3f3bee[_0x3e90('0x65')]()]),_0x1e7806=this['source'][_0x3e90('0xb4')];this[_0x3e90('0xeb')](_0x1e7806,_0x2a344b,_0x582280,_0x1b9b51),this['_startingRevisionId']=this[_0x3e90('0x0')];const _0x25e54d=new Map(),_0x39c53e=new Map();for(const _0x28b82f of _0x329ef5){const _0x22f6b3=G(_0x28b82f);_0x25e54d[_0x3e90('0x6d')](_0x28b82f,_0x22f6b3),_0x39c53e[_0x3e90('0x6d')](_0x28b82f,{});}this[_0x3e90('0xeb')](Number['NEGATIVE_INFINITY'],_0x25e54d,[],_0x39c53e);}['getData'](_0x3c51c1,_0x4d6704){if(this[_0x3e90('0x64')]===_0x3c51c1&&this['_lastTo']<=_0x4d6704)this[_0x3e90('0x91')][_0x3e90('0x23')]>0x1&&this[_0x3e90('0x8a')](this[_0x3e90('0xaa')]),this['_applyOperations'](this['_lastTo'],_0x4d6704,!0x0);else{if(!this['_savedMetaData']['has'](_0x3c51c1)){const _0x156207=this['_getPreviousFrom'](_0x3c51c1);this['_calculateMetaData'](_0x156207,_0x3c51c1,!0x1);}this['_calculateMetaData'](_0x3c51c1,_0x4d6704,!0x0);}return this[_0x3e90('0x64')]=_0x3c51c1,this['_lastTo']=_0x4d6704,this['_getState']();}[_0x3e90('0x9e')](_0x2d69be){this['_reset'](),this[_0x3e90('0x64')]=_0x2d69be[_0x3e90('0x72')],this[_0x3e90('0xaa')]=_0x2d69be[_0x3e90('0xa3')];for(const _0x3aa208 in _0x2d69be[_0x3e90('0xb0')]){const _0x4997c0=_0x2d69be[_0x3e90('0xb0')][_0x3aa208]['attachChange'],_0x10054c=_0x446191(_0x2d69be[_0x3e90('0xb0')][_0x3aa208]['attributesBefore'])||{},_0x46e8b5=this[_0x3e90('0x8f')](_0x2d69be['diffData'][_0x3aa208][_0x3e90('0x67')]);_0x46e8b5[_0x3e90('0x2c')]=_0x3aa208,_0x46e8b5[_0x3e90('0x21')]=!_0x4997c0||!_0x4997c0[_0x3e90('0x34')],_0x46e8b5[_0x3e90('0x34')]=()=>_0x46e8b5[_0x3e90('0x21')],this[_0x3e90('0xb')]['set'](_0x3aa208,_0x46e8b5),this['_baseRootsAttributes'][_0x3e90('0x6d')](_0x3aa208,_0x10054c),_0x4997c0&&this[_0x3e90('0xf9')][_0x3e90('0x6d')](_0x3aa208,_0x4997c0);const _0x362beb=this['_makeIdsRoot'](_0x46e8b5);this[_0x3e90('0xdb')][_0x3e90('0x6d')](_0x3aa208,_0x362beb);for(const [_0x5315ce,_0x3d4463]of _0x46e8b5[_0x3e90('0x16')]){if(!_0x5315ce[_0x3e90('0x90')](_0x3e90('0x62')))continue;const _0x116b0a=_0x5315ce[_0x3e90('0x1d')](':')[0x2];for(const _0x144ca7 of _0x3d4463[_0x3e90('0xde')]({'singleCharacters':!0x0})){const _0xd4cd37=this[_0x3e90('0x70')](_0x144ca7),_0x1c63ea=_0x3e90('0xd2')==_0x144ca7[_0x3e90('0x47')]?_0x144ca7['previousPosition']['path'][_0x3e90('0x78')](0x0,-0x1):_0x144ca7['previousPosition'][_0x3e90('0x2')],_0x194ac7=_0x362beb[_0x3e90('0x4b')](_0x1c63ea)[_0x3e90('0x3b')](_0xd4cd37);this['_touched'][_0x3e90('0x6d')](_0x194ac7,{'userId':_0x116b0a});}}}this[_0x3e90('0xd6')]=this[_0x3e90('0x0')];const _0x2241d7=[...Array(this[_0x3e90('0x0')])[_0x3e90('0x9f')]()][_0x3e90('0x78')](0x1)[_0x3e90('0xa5')](_0x3dddc7=>!this[_0x3e90('0x49')]['has'](_0x3dddc7));let _0x416b68=0x0;const _0x2928d5=new Map();for(const _0xd85be3 in _0x2d69be[_0x3e90('0xb0')]){const _0x47b620=_0x2d69be[_0x3e90('0xb0')][_0xd85be3]['attachChange'],_0x5a57b2=_0x446191(_0x2d69be[_0x3e90('0xb0')][_0xd85be3][_0x3e90('0xe5')])||{},_0x546dbd=this[_0x3e90('0x8f')](_0x2d69be[_0x3e90('0xb0')][_0xd85be3][_0x3e90('0x55')]);_0x546dbd[_0x3e90('0x2c')]=_0xd85be3,_0x546dbd[_0x3e90('0x21')]=!_0x47b620||_0x47b620['isAttached'],_0x546dbd['isAttached']=()=>_0x546dbd[_0x3e90('0x21')],this[_0x3e90('0x68')][_0x3e90('0x6d')](_0xd85be3,_0x546dbd),this[_0x3e90('0x9b')][_0x3e90('0x6d')](_0xd85be3,_0x5a57b2);const _0x24b25c=this[_0x3e90('0x38')](_0x546dbd,Number[_0x3e90('0xb7')]);this['_idsRoots'][_0x3e90('0x6d')](_0xd85be3,_0x24b25c),_0x2928d5['set'](_0xd85be3,_0x546dbd[_0x3e90('0x34')]()?_0x5a57b2:{});for(const [_0x598f46,_0x5db175]of _0x546dbd[_0x3e90('0x16')]){if(!_0x598f46[_0x3e90('0x90')](_0x3e90('0x62')))continue;const _0x2e8d6b=_0x598f46[_0x3e90('0x1d')](':')[0x2];for(const _0x21dedb of _0x5db175['getWalker']({'singleCharacters':!0x0})){const _0x69189a=this[_0x3e90('0x70')](_0x21dedb),_0x3a071d=this['_revisionId']++,_0xaa07e4='elementEnd'==_0x21dedb['type']?_0x21dedb[_0x3e90('0x42')][_0x3e90('0x2')][_0x3e90('0x78')](0x0,-0x1):_0x21dedb[_0x3e90('0x42')]['path'];_0x24b25c[_0x3e90('0x4b')](_0xaa07e4)[_0x3e90('0xd3')](_0x69189a,_0x3a071d),this[_0x3e90('0x49')][_0x3e90('0x6d')](_0x3a071d,{'userId':_0x2e8d6b});}}for(const _0x4f2bb2 of this['editor'][_0x3e90('0xf8')][_0x3e90('0xf3')](_0x546dbd)[_0x3e90('0xde')]({'singleCharacters':!0x0})){const _0xb0e05b=this[_0x3e90('0x70')](_0x4f2bb2),_0x57df0a=_0x3e90('0xd2')==_0x4f2bb2['type']?_0x4f2bb2[_0x3e90('0x42')][_0x3e90('0x2')][_0x3e90('0x78')](0x0,-0x1):_0x4f2bb2[_0x3e90('0x42')][_0x3e90('0x2')],_0x2c670b=_0x24b25c['getNodeByPath'](_0x57df0a);_0x2c670b[_0x3e90('0x3b')](_0xb0e05b)>0x0||_0x2c670b[_0x3e90('0xd3')](_0xb0e05b,_0x2241d7[_0x416b68++]);}for(const [_0x217645,_0x177bde]of _0x546dbd[_0x3e90('0x16')])_0x217645[_0x3e90('0x90')](_0x3e90('0x62'))||this[_0x3e90('0x94')][_0x3e90('0x6d')](_0x217645,_0x177bde);}const _0x27c737=G('$graveyard');this[_0x3e90('0xb')][_0x3e90('0x6d')](_0x3e90('0xdf'),_0x27c737),this[_0x3e90('0xdb')]['set'](_0x3e90('0xdf'),this[_0x3e90('0x38')](_0x27c737,0x1));const _0x518dbc=G(_0x3e90('0xdf'));this[_0x3e90('0x68')]['set'](_0x3e90('0xdf'),_0x518dbc),this[_0x3e90('0x3')][_0x3e90('0x6d')](_0x3e90('0xdf'),this['_makeIdsRoot'](_0x518dbc,0x1));const _0x3d0239=Array[_0x3e90('0x7e')](this[_0x3e90('0x68')])['map'](([_0x10c82b,_0x1a21b6])=>[_0x10c82b,q(_0x1a21b6)]);this[_0x3e90('0xeb')](this[_0x3e90('0xaa')],_0x3d0239,this['_markers'],_0x2928d5);}[_0x3e90('0x8f')](_0x3bf543){const _0x3bc81e=JSON[_0x3e90('0xfb')](_0x3bf543),_0x1376c9=this['editor'][_0x3e90('0xff')][_0x3e90('0xb5')]['document'],_0x25f4d3=new _0x59cbb8(_0x1376c9,_0x3bc81e[_0x3e90('0xc5')](_0x326ffc=>J(_0x326ffc,this[_0x3e90('0x79')])));return this['editor'][_0x3e90('0x4e')]['toModel'](_0x25f4d3);}[_0x3e90('0xeb')](_0x22f813,_0x1abf37,_0x48733b,_0x8fba07){const _0x4174b4=new Map(_0x1abf37),_0x39e6d5=new Map(_0x446191(_0x8fba07)),_0x3f0901=new Map();for(const [_0x1695d1,_0x1f63d3]of _0x48733b)_0x3f0901[_0x3e90('0x6d')](_0x1695d1,{'start':_0x1f63d3[_0x3e90('0x1e')][_0x3e90('0x63')](),'end':_0x1f63d3[_0x3e90('0x2e')][_0x3e90('0x63')](),'rootName':_0x1f63d3[_0x3e90('0x7d')]['rootName']});this['_savedMetaData'][_0x3e90('0x6d')](_0x22f813,{'roots':_0x4174b4,'markers':_0x3f0901,'rootsAttributes':_0x39e6d5});}[_0x3e90('0x8a')](_0x2e09df){this[_0x3e90('0x91')][_0x3e90('0xcb')](_0x2e09df);}[_0x3e90('0x59')](){this[_0x3e90('0xbe')](),this[_0x3e90('0x64')]=-0x1,this[_0x3e90('0xaa')]=-0x1,this['_savedMetaData'][_0x3e90('0xa1')](),this[_0x3e90('0xb6')](this[_0x3e90('0x9')]);}[_0x3e90('0xbe')](){this[_0x3e90('0x49')]['clear'](),this[_0x3e90('0xfd')]['clear'](),this[_0x3e90('0xf9')][_0x3e90('0xa1')](),this['_diffRoots'][_0x3e90('0xa1')](),this[_0x3e90('0x9b')]['clear'](),this[_0x3e90('0xb')][_0x3e90('0xa1')](),this[_0x3e90('0x56')][_0x3e90('0xa1')](),this[_0x3e90('0x3')]['clear'](),this[_0x3e90('0xdb')]['clear'](),this[_0x3e90('0x94')][_0x3e90('0xa1')](),this['_revisionId']=0x1,this['_startingRevisionId']=this[_0x3e90('0x0')];}[_0x3e90('0x38')](_0x18f592,_0x4ec0f1=null){let _0x90e943=null;_0x18f592['is']('documentFragment')||(_0x90e943=new _0x46eb7f(_0x18f592['name'],{'vid_start':null===_0x4ec0f1?this[_0x3e90('0x0')]++:_0x4ec0f1++}));const _0x52c1bc=[];for(const _0x1ab7bd of _0x18f592[_0x3e90('0x97')]())if(_0x1ab7bd['is'](_0x3e90('0x46'))){_0x52c1bc['push'](this['_makeIdsRoot'](_0x1ab7bd,_0x4ec0f1));const _0x2e903b=_0x52c1bc[_0x52c1bc[_0x3e90('0xce')]-0x1];null!==_0x4ec0f1&&(_0x4ec0f1=_0x2e903b['is']('element',_0x3e90('0x35'))?_0x2e903b[_0x3e90('0x3b')](_0x3e90('0x5'))+0x1:_0x2e903b[_0x3e90('0x3b')](_0x3e90('0xc6'))+0x1);}else for(let _0xc42226=0x0;_0xc42226<_0x1ab7bd['offsetSize'];_0xc42226++)_0x52c1bc[_0x3e90('0xcd')](new _0x46eb7f(_0x3e90('0x35'),{'vid':null===_0x4ec0f1?this[_0x3e90('0x0')]++:_0x4ec0f1++}));if(_0x18f592['is']('documentFragment')){const _0x2ddacc=G(_0x18f592[_0x3e90('0x2c')]);return _0x2ddacc[_0x3e90('0x58')](0x0,_0x52c1bc),_0x2ddacc;}return _0x90e943[_0x3e90('0xd3')]('vid_end',null===_0x4ec0f1?this[_0x3e90('0x0')]++:_0x4ec0f1++),_0x90e943[_0x3e90('0x58')](0x0,_0x52c1bc),_0x90e943;}['_calculateMetaData'](_0x4fbbe3,_0x366ce6,_0x569c2a){this[_0x3e90('0xbe')]();const {roots:_0x2f69ad,markers:_0x3cabcd,rootsAttributes:_0x55f87b}=this[_0x3e90('0x91')][_0x3e90('0x22')](_0x4fbbe3);this['_baseRoots']=new Map(_0x2f69ad),this[_0x3e90('0x56')]=new Map(_0x446191(_0x55f87b));for(const [_0x20bfa0,_0x5125ba]of this[_0x3e90('0xb')])if('$graveyard'!==_0x20bfa0&&(this['_diffRoots'][_0x3e90('0x6d')](_0x20bfa0,q(_0x5125ba)),this[_0x3e90('0x9b')]=new Map(_0x446191(_0x55f87b)),_0x569c2a)){const _0x30ddfb=this[_0x3e90('0x0')];this[_0x3e90('0x3')][_0x3e90('0x6d')](_0x20bfa0,this[_0x3e90('0x38')](_0x5125ba)),this[_0x3e90('0xdb')]['set'](_0x20bfa0,this['_makeIdsRoot'](_0x5125ba,_0x30ddfb));}this[_0x3e90('0xd6')]=this[_0x3e90('0x0')],this[_0x3e90('0x68')][_0x3e90('0x6d')](_0x3e90('0xdf'),q(this['_baseRoots'][_0x3e90('0x22')]('$graveyard'))),_0x569c2a&&this['_idsRoots'][_0x3e90('0x6d')](_0x3e90('0xdf'),this['_makeIdsRoot'](this[_0x3e90('0xb')][_0x3e90('0x22')](_0x3e90('0xdf'))));for(const [_0x5e0779,_0x128dc8]of _0x3cabcd){const _0xe326d8=this[_0x3e90('0xb')][_0x3e90('0x22')](_0x128dc8[_0x3e90('0x2c')]),_0x31f15=this[_0x3e90('0x68')][_0x3e90('0x22')](_0x128dc8[_0x3e90('0x2c')]),_0x55e9d0=new _0x377985(this[_0x3e90('0x4c')](_0x128dc8[_0x3e90('0x1e')],_0xe326d8),this[_0x3e90('0x4c')](_0x128dc8[_0x3e90('0x2e')],_0xe326d8)),_0x268dba=this[_0x3e90('0x20')](_0x55e9d0,_0x31f15);_0xe326d8[_0x3e90('0x16')]['set'](_0x5e0779,_0x55e9d0),this[_0x3e90('0x94')]['set'](_0x5e0779,_0x268dba);}this[_0x3e90('0x5f')](_0x4fbbe3,_0x366ce6,_0x569c2a);}[_0x3e90('0x5f')](_0x312027,_0x3695dd,_0x5cc349){for(const _0x22953f of this[_0x3e90('0x9')]['getOperations'](_0x312027,_0x3695dd))this[_0x3e90('0xfc')](_0x22953f,_0x5cc349);for(const _0x2c63e8 of this[_0x3e90('0x68')][_0x3e90('0x27')]())_0x2c63e8[_0x3e90('0x16')][_0x3e90('0xa1')]();for(const [_0x49f58,_0x2c7210]of this['_markers']){this[_0x3e90('0x68')]['get'](_0x2c7210[_0x3e90('0x7d')][_0x3e90('0x2c')])[_0x3e90('0x16')]['set'](_0x49f58,_0x2c7210[_0x3e90('0x63')]());}const _0x38ab3b=new Map(),_0x269617=new Map();for(const [_0x507f20,_0x49a9f9]of this[_0x3e90('0x68')])_0x38ab3b[_0x3e90('0x6d')](_0x507f20,q(_0x49a9f9)),_0x269617[_0x3e90('0x6d')](_0x507f20,this[_0x3e90('0x9b')][_0x3e90('0x22')](_0x507f20));this[_0x3e90('0xeb')](_0x3695dd,_0x38ab3b,this[_0x3e90('0x94')],_0x269617);}[_0x3e90('0xad')](_0x1dfc9a){const _0x59e326=Array[_0x3e90('0x7e')](this[_0x3e90('0x91')]['keys']());_0x59e326['sort']((_0x23ed08,_0x4c70e5)=>_0x23ed08-_0x4c70e5),_0x59e326['reverse']();for(const _0xf2eb3f of _0x59e326)if(_0xf2eb3f<_0x1dfc9a)return _0xf2eb3f;return Number[_0x3e90('0xb7')];}[_0x3e90('0x100')](_0x468836,_0x3372dc){const _0x39de58=Array['from'](_0x3372dc[_0x3e90('0x16')])['map'](([_0x32cf00,_0x2a9004])=>[_0x32cf00,this['_fixRange'](_0x2a9004,_0x468836)]);_0x468836[_0x3e90('0x16')]=new Map(_0x39de58);}['_transformMarkers'](_0x44b6ea){for(const _0x5c9e5b of this['_markers']['values']()){const _0x399a3b=_0x5c9e5b[_0x3e90('0x30')](_0x44b6ea),_0x8fb2e6=_0x377985[_0x3e90('0xb8')](_0x399a3b);_0x5c9e5b[_0x3e90('0x1e')]=_0x8fb2e6[_0x3e90('0x1e')],_0x5c9e5b[_0x3e90('0x2e')]=_0x8fb2e6[_0x3e90('0x2e')];}}[_0x3e90('0xfc')](_0x5141e7,_0x4e5aaf){if(_0x3e90('0x87')==_0x5141e7[_0x3e90('0x47')]||_0x3e90('0x14')==_0x5141e7[_0x3e90('0x47')])return void this[_0x3e90('0x101')](_0x5141e7,_0x4e5aaf);if(_0x3e90('0x43')==_0x5141e7[_0x3e90('0x47')]){const _0x195504=_0x5141e7['position'][_0x3e90('0x7d')][_0x3e90('0x2c')];this[_0x3e90('0x68')][_0x3e90('0x5b')](_0x195504)||(this['_diffRoots']['set'](_0x195504,G(_0x195504,!0x0)),this[_0x3e90('0x9b')][_0x3e90('0x6d')](_0x195504,{}),_0x4e5aaf&&this[_0x3e90('0x3')][_0x3e90('0x6d')](_0x195504,G(_0x195504,!0x0)));}else{if(_0x3e90('0x7c')==_0x5141e7[_0x3e90('0x47')]||_0x3e90('0x26')==_0x5141e7[_0x3e90('0x47')]||'changeRootAttribute'==_0x5141e7[_0x3e90('0x47')])return void this[_0x3e90('0x6a')](_0x5141e7);}const _0x4806d4=this[_0x3e90('0x5e')](_0x5141e7,this[_0x3e90('0x68')]);if(_0x3e90('0x25')!==_0x5141e7[_0x3e90('0x47')]&&(_0x4806d4[_0x3e90('0xda')](),this[_0x3e90('0x7')](_0x4806d4)),_0x4e5aaf)switch(_0x4806d4[_0x3e90('0x47')]){case _0x3e90('0x43'):this[_0x3e90('0x86')](_0x5141e7);break;case _0x3e90('0xd4'):case'remove':case _0x3e90('0xa0'):this[_0x3e90('0x75')](_0x5141e7);break;case _0x3e90('0x1c'):this['_handleMergeOperation'](_0x5141e7);break;case _0x3e90('0x1d'):this['_handleSplitOperation'](_0x5141e7);break;case _0x3e90('0x25'):this[_0x3e90('0xbc')](_0x5141e7);}}[_0x3e90('0x5e')](_0x3741bd,_0x2b4820){const _0x5e38a4=_0x3741bd['clone']();return _0x5e38a4['_authorId']=_0x3741bd[_0x3e90('0x40')],this[_0x3e90('0xf')](_0x5e38a4,_0x2b4820),_0x5e38a4;}[_0x3e90('0xd0')](_0x30af97){return _0x30af97[_0x3e90('0xc5')](_0x40752c=>{const _0x5a9aef=this[_0x3e90('0x70')](_0x40752c);return Number(_0x40752c[_0x3e90('0xca')][_0x3e90('0x3b')](_0x5a9aef));});}['_generateTape'](_0x5e39dd,_0x5a4844){if(_0x5e39dd['is']('element',_0x3e90('0x35')))_0x5a4844['push']({'item':_0x5e39dd,'type':_0x3e90('0x5d')});else{_0x5e39dd['is'](_0x3e90('0x46'))&&_0x5a4844[_0x3e90('0xcd')]({'item':_0x5e39dd,'type':_0x3e90('0x28')});for(const _0xa5aec2 of _0x5e39dd[_0x3e90('0x97')]())this[_0x3e90('0xd')](_0xa5aec2,_0x5a4844);_0x5e39dd['is']('element')&&_0x5a4844[_0x3e90('0xcd')]({'item':_0x5e39dd,'type':_0x3e90('0xd2')});}return _0x5a4844;}[_0x3e90('0xf0')](){const _0xa08363=new Map(this[_0x3e90('0x49')]),_0x782130=new Map(_0xa08363),_0x45de22=new Map(),_0x4ea98f={'insertions':{},'deletions':{}},_0x5c280a={'insertions':{},'deletions':{}},_0x323f34=new Map(),_0xc3150b=new Set([...this[_0x3e90('0xb')][_0x3e90('0x9f')](),...this[_0x3e90('0x68')][_0x3e90('0x9f')]()]);_0xc3150b[_0x3e90('0xcb')](_0x3e90('0xdf'));for(const _0x61da52 of _0xc3150b){const _0xb07912=this[_0x3e90('0x68')][_0x3e90('0x22')](_0x61da52)||G(_0x61da52,!0x1),_0x1bd4c5=this['_baseRoots'][_0x3e90('0x22')](_0x61da52)||G(_0x61da52,!0x1);_0xb07912[_0x3e90('0x34')]()||_0x1bd4c5[_0x3e90('0x34')]()?(_0x4ea98f[_0x3e90('0x55')][_0x61da52]=q(_0xb07912),_0x4ea98f[_0x3e90('0x67')][_0x61da52]=q(_0x1bd4c5),this['_copyMarkers'](_0x4ea98f[_0x3e90('0x67')][_0x61da52],_0x1bd4c5),this[_0x3e90('0x100')](_0x4ea98f['insertions'][_0x61da52],_0xb07912),_0x5c280a['insertions'][_0x61da52]=this['_generateTape'](this[_0x3e90('0x3')][_0x3e90('0x22')](_0x61da52),[]),_0x5c280a[_0x3e90('0x67')][_0x61da52]=this[_0x3e90('0xd')](this[_0x3e90('0xdb')][_0x3e90('0x22')](_0x61da52)||G(_0x61da52,!0x1),[])):_0xc3150b['delete'](_0x61da52);}for(const _0x207c74 of _0xc3150b){const _0x5c7cc1=_0x5c280a[_0x3e90('0x55')][_0x207c74];for(const _0x54f666 of _0x5c7cc1){const _0x5647c2=this['_getVidAttributeName'](_0x54f666),_0x1301e0=_0x54f666[_0x3e90('0xca')][_0x3e90('0x3b')](_0x5647c2);_0x782130[_0x3e90('0xcb')](_0x1301e0),_0x1301e0>=this[_0x3e90('0xd6')]&&_0x45de22[_0x3e90('0x6d')](_0x1301e0,_0xa08363[_0x3e90('0x22')](_0x1301e0));}}for(const _0x49cde2 of _0xc3150b){const _0x33422f=_0x5c280a[_0x3e90('0x55')][_0x49cde2],_0x2bf6eb=this[_0x3e90('0xd0')](_0x5c280a['deletions'][_0x49cde2]);let _0x15d4db=0x0;for(const _0x454ba2 of _0x33422f){const _0x51b2d8=this[_0x3e90('0x70')](_0x454ba2),_0x39379c=_0x454ba2[_0x3e90('0xca')][_0x3e90('0x3b')](_0x51b2d8);if(!_0x45de22['has'](_0x39379c)&&!_0x323f34[_0x3e90('0x5b')](_0x39379c)){if(_0x782130[_0x3e90('0x5b')](_0x39379c))_0x15d4db++;else{if(_0x39379c!=_0x2bf6eb[_0x15d4db]){const _0x24435c=_0xa08363[_0x3e90('0x22')](_0x39379c)||_0xa08363[_0x3e90('0x22')](_0x2bf6eb[_0x15d4db]);for(;_0x39379c!=_0x2bf6eb[_0x15d4db];)_0x782130[_0x3e90('0x5b')](_0x2bf6eb[_0x15d4db])||(_0x323f34[_0x3e90('0x6d')](_0x2bf6eb[_0x15d4db],_0x24435c),_0xa08363[_0x3e90('0x6d')](_0x2bf6eb[_0x15d4db],_0x24435c)),_0x15d4db++;}_0x15d4db++;}}}}for(const _0xa8ed31 of _0xc3150b){const _0x266488=_0x5c280a[_0x3e90('0x55')][_0xa8ed31];for(const _0x1360ef of _0x266488){const _0x16176a=this[_0x3e90('0x70')](_0x1360ef),_0x3860a9=_0x1360ef['item'][_0x3e90('0x3b')](_0x16176a);if(_0x323f34[_0x3e90('0x5b')](_0x3860a9)){const _0x547c56=_0x323f34[_0x3e90('0x22')](_0x3860a9);_0x782130[_0x3e90('0x5b')](_0x3860a9)||_0x782130[_0x3e90('0x6d')](_0x3860a9,{..._0x547c56}),_0x45de22[_0x3e90('0x6d')](_0x3860a9,{..._0x547c56});}}}for(const _0x4f6e57 of _0x782130[_0x3e90('0x9f')]())_0x4f6e57>=this[_0x3e90('0xd6')]&&_0x782130[_0x3e90('0xcb')](_0x4f6e57);const _0x312faa=new Map();for(const _0x4bcb95 of _0xc3150b){let _0x269001=_0x5c280a[_0x3e90('0x55')][_0x4bcb95];for(const _0x47adea of _0x269001)if(_0x47adea[_0x3e90('0xca')]['is']('element',_0x3e90('0xec'))){const _0x181e10=this['_getVidAttributeName'](_0x47adea),_0x159636=_0x47adea['item']['getAttribute'](_0x181e10);if(_0x45de22['has'](_0x159636)){const _0x30894b=_0x47adea['item'][_0x3e90('0x7a')]['parent'][_0x3e90('0x3b')](_0x3e90('0x3f')),_0x307ef0=_0x312faa[_0x3e90('0x22')](_0x30894b)||new Set();_0x307ef0['add'](_0x45de22['get'](_0x159636)[_0x3e90('0x7b')]),_0x312faa['set'](_0x30894b,_0x307ef0);}}_0x269001=_0x5c280a[_0x3e90('0x67')][_0x4bcb95];for(const _0x35ca12 of _0x269001)if(_0x35ca12[_0x3e90('0xca')]['is'](_0x3e90('0x46'),_0x3e90('0xec'))){const _0x5a63de=this[_0x3e90('0x70')](_0x35ca12),_0x5870bc=_0x35ca12[_0x3e90('0xca')][_0x3e90('0x3b')](_0x5a63de);if(_0x782130[_0x3e90('0x5b')](_0x5870bc)){const _0x313071=_0x35ca12['item']['parent']['parent'][_0x3e90('0x3b')](_0x3e90('0x3f')),_0x2ceecd=_0x312faa[_0x3e90('0x22')](_0x313071)||new Set();_0x2ceecd['add'](_0x782130[_0x3e90('0x22')](_0x5870bc)['userId']),_0x312faa[_0x3e90('0x6d')](_0x313071,_0x2ceecd);}}for(const _0x444286 of _0x312faa['keys']())(_0x45de22[_0x3e90('0x5b')](_0x444286)||_0x782130[_0x3e90('0x5b')](_0x444286))&&_0x312faa[_0x3e90('0xcb')](_0x444286);}for(const _0x1e9b0e of _0xc3150b){const _0x38a5b7=_0x5c280a[_0x3e90('0x55')][_0x1e9b0e];let _0x451a30=null,_0x1e01cb=null;for(const _0x20d680 of _0x38a5b7){const _0xec3239=this['_getVidAttributeName'](_0x20d680),_0x5e5931=_0x20d680[_0x3e90('0xca')][_0x3e90('0x3b')](_0xec3239),_0x2b0cfa=_0x312faa['get'](_0x5e5931);_0x2b0cfa&&_0x3e90('0x28')==_0x20d680[_0x3e90('0x47')]&&(_0x451a30=Array[_0x3e90('0x7e')](_0x2b0cfa)[0x0],_0x1e01cb=_0x20d680[_0x3e90('0xca')]['getAttribute']('vid_end')),_0x451a30&&(_0x782130['set'](_0x5e5931,{'userId':_0x451a30}),_0x45de22['set'](_0x5e5931,{'userId':_0x451a30})),_0x5e5931==_0x1e01cb&&(_0x451a30=null,_0x1e01cb=null);}}const _0x4c58d5={},_0x549899=new Set();for(const _0xbc28ea of _0xc3150b){const _0x590080=_0x4ea98f[_0x3e90('0x67')][_0xbc28ea],_0x6d218d=_0x4ea98f[_0x3e90('0x55')][_0xbc28ea];for(const {userId:_0x5a1b7c}of this['_touchedMarkers'][_0x3e90('0x27')]())null!==_0x5a1b7c&&_0x549899[_0x3e90('0x7f')](_0x5a1b7c);for(const {userId:_0x218c27}of this[_0x3e90('0xf9')][_0x3e90('0x27')]())null!==_0x218c27&&_0x549899[_0x3e90('0x7f')](_0x218c27);this['_markChanges'](_0x6d218d,_0x5c280a[_0x3e90('0x55')][_0xbc28ea],_0x45de22,'insertion',_0x549899),this[_0x3e90('0xed')](_0x590080,_0x5c280a[_0x3e90('0x67')][_0xbc28ea],_0x782130,_0x3e90('0xc3'),_0x549899),_0x4c58d5[_0xbc28ea]={'insertions':this['_prepareViewToSave'](_0x6d218d),'deletions':this[_0x3e90('0x32')](_0x590080),'attachChange':this[_0x3e90('0xf9')]['get'](_0xbc28ea)||null,'attributesBefore':_0x446191(this[_0x3e90('0x56')][_0x3e90('0x22')](_0xbc28ea))||{},'attributesAfter':_0x446191(this['_diffRootsAttributes']['get'](_0xbc28ea))};}return{'diffData':_0x4c58d5,'authorsIds':Array['from'](_0x549899)};}['_processRootBeforeSave'](_0x39fa5f){for(const [,_0x4c5713]of _0x39fa5f['markers']){const _0x1af484=_0x4c5713[_0x3e90('0x1e')]['getAncestors']()['filter'](_0x5070b2=>_0x3e90('0xec')==_0x5070b2[_0x3e90('0xc')]);for(const _0x4e09ea of _0x1af484)0x1==_0x4e09ea[_0x3e90('0xee')]&&_0x4e09ea['getChild'](0x0)['is']('element',_0x3e90('0x52'))&&_0x4e09ea['getChild'](0x0)['_setAttribute'](_0x3e90('0xd5'),!0x0);}}[_0x3e90('0x32')](_0x4225b4){this[_0x3e90('0x9a')](_0x4225b4);const _0x9650ba=this['editor'][_0x3e90('0x4e')]['toView'](_0x4225b4,{}),_0x3dfcc4=Array[_0x3e90('0x7e')](_0x9650ba['getChildren']())[_0x3e90('0xc5')](_0x5b9fcf=>this[_0x3e90('0x4f')](_0x5b9fcf));return JSON[_0x3e90('0xa4')](_0x3dfcc4);}[_0x3e90('0x4f')](_0x3006dd){if(_0x3006dd['is'](_0x3e90('0x35')))return _0x3006dd[_0x3e90('0x4e')];{const _0x593510=_0x3006dd;return{'type':Object[_0x3e90('0x9f')](B)['find'](_0x360e7e=>_0x3006dd instanceof B[_0x360e7e]),'name':_0x593510[_0x3e90('0xc')],'attributes':Array[_0x3e90('0x7e')](_0x593510[_0x3e90('0x41')]()),'children':Array[_0x3e90('0x7e')](_0x593510[_0x3e90('0x97')]())['map'](_0x324282=>this['_getViewJson'](_0x324282))};}}[_0x3e90('0xed')](_0x25d4ac,_0x45f14a,_0x564fae,_0x292daa,_0x28c004){let _0x25e8c8=null,_0x345e19=null,_0x197e7f=0x0;const _0x15f873=this[_0x3e90('0x79')][_0x3e90('0xf8')];for(let _0x5b97c4=0x0;_0x5b97c4<_0x45f14a['length'];_0x5b97c4++){const _0x4bde4d=this[_0x3e90('0x70')](_0x45f14a[_0x5b97c4]),_0x331f17=_0x45f14a[_0x5b97c4]['item']['getAttribute'](_0x4bde4d),_0x391a39=_0x564fae[_0x3e90('0x22')](_0x331f17),_0x288258=_0x5b97c4==_0x45f14a[_0x3e90('0xce')]-0x1;(!_0x25e8c8&&_0x391a39&&(_0x25e8c8=_0x391a39,_0x345e19=_0x45f14a[_0x5b97c4]),_0x25e8c8&&(!_0x391a39||_0x391a39[_0x3e90('0x7b')]!=_0x25e8c8[_0x3e90('0x7b')]))&&(_0x13828f(_0x391a39,L(_0x345e19,_0x25d4ac,_0x15f873),L(_0x45f14a[_0x5b97c4],_0x25d4ac,_0x15f873)),_0x25e8c8=_0x391a39||null,_0x345e19=_0x391a39?_0x45f14a[_0x5b97c4]:null),_0x25e8c8&&_0x288258&&_0x13828f(_0x391a39,L(_0x345e19,_0x25d4ac,_0x15f873),W(_0x45f14a[_0x5b97c4],_0x25d4ac,_0x15f873));}function _0x13828f(_0x1b2528,_0x4016b5,_0x28c08d){const _0x1ad13e=_0x25e8c8[_0x3e90('0x7b')],_0x574a5c='revision:'+_0x292daa+':'+_0x1ad13e+':'+_0x197e7f++,_0x19197f=_0x15f873['createRange'](_0x4016b5,_0x28c08d);_0x25d4ac[_0x3e90('0x16')]['set'](_0x574a5c,_0x19197f),null!==_0x1ad13e&&_0x28c004[_0x3e90('0x7f')](_0x1ad13e);}}['_getVidAttributeName'](_0x14758e){switch(_0x14758e['type']){case'elementStart':return _0x3e90('0x3f');case _0x3e90('0xd2'):return _0x3e90('0xc6');default:return _0x3e90('0x5');}}[_0x3e90('0xf')](_0x173343,_0x1a6578){_0x173343[_0x3e90('0x89')]=null;for(const _0x39dab0 in _0x173343){const _0x47f399=_0x173343[_0x39dab0];if(_0x47f399 instanceof _0x24d00e){const _0x3d6da0=_0x1a6578[_0x3e90('0x22')](_0x47f399['root'][_0x3e90('0x2c')]);_0x173343[_0x39dab0]=this[_0x3e90('0x4c')](_0x47f399,_0x3d6da0);}if(_0x47f399 instanceof _0x377985){const _0x3d5378=_0x1a6578['get'](_0x47f399[_0x3e90('0x7d')][_0x3e90('0x2c')]);_0x173343[_0x39dab0]=this[_0x3e90('0x20')](_0x47f399,_0x3d5378);}_0x3e90('0x7d')===_0x39dab0&&(_0x173343[_0x3e90('0x7d')]=_0x1a6578[_0x3e90('0x22')](_0x173343[_0x3e90('0x7d')][_0x3e90('0x2c')]));}}[_0x3e90('0x20')](_0x46bba2,_0x48cf7a){return this['editor'][_0x3e90('0xf8')]['createRange'](this['_fixPosition'](_0x46bba2[_0x3e90('0x1e')],_0x48cf7a),this[_0x3e90('0x4c')](_0x46bba2[_0x3e90('0x2e')],_0x48cf7a));}[_0x3e90('0x4c')](_0x36e3d0,_0xc7375){return this[_0x3e90('0x79')][_0x3e90('0xf8')][_0x3e90('0xa2')](_0xc7375,_0x36e3d0[_0x3e90('0x2')],_0x36e3d0[_0x3e90('0x4a')]);}[_0x3e90('0x86')](_0x2d2bfe){const _0x4b7118=this[_0x3e90('0x3')][_0x3e90('0x22')](_0x2d2bfe[_0x3e90('0x15')]['root']['rootName']),_0x59701f=this[_0x3e90('0x4c')](_0x2d2bfe[_0x3e90('0x15')],_0x4b7118),_0x7a3aa1=null===_0x2d2bfe[_0x3e90('0x40')]?null:_0x2d2bfe[_0x3e90('0x40')]||this[_0x3e90('0x79')][_0x3e90('0x1f')]['get'](_0x3e90('0xb9'))['me']['id'],_0x3ca5c6=_0x59701f[_0x3e90('0x7a')],_0xf0c9e4=this[_0x3e90('0x0')],_0x264def=[];for(const _0x31a855 of _0x2d2bfe[_0x3e90('0xcf')])if(_0x31a855['is'](_0x3e90('0x46')))_0x264def[_0x3e90('0xcd')](this['_makeIdsRoot'](_0x31a855));else for(let _0x4b17c3=0x0;_0x4b17c3<_0x31a855[_0x3e90('0xa6')];_0x4b17c3++)_0x264def[_0x3e90('0xcd')](new _0x46eb7f(_0x3e90('0x35'),{'vid':this[_0x3e90('0x0')]++}));const _0x11e761=this['_revisionId'];for(let _0x2c0513=_0xf0c9e4;_0x2c0513<_0x11e761;_0x2c0513++)this['_touched'][_0x3e90('0x6d')](_0x2c0513,{'userId':_0x7a3aa1});_0x3ca5c6['_insertChild'](_0x59701f[_0x3e90('0x84')],_0x264def);}[_0x3e90('0x75')](_0x1d7820){(_0x1d7820=this[_0x3e90('0x5e')](_0x1d7820,this[_0x3e90('0x3')]))[_0x3e90('0xda')]();const _0x64dfeb=null===_0x1d7820[_0x3e90('0x40')]?null:_0x1d7820[_0x3e90('0x40')]||this['editor'][_0x3e90('0x1f')][_0x3e90('0x22')](_0x3e90('0xb9'))['me']['id'],_0x265879=_0x1d7820['getMovedRangeStart'](),_0x4dfccf=_0x265879['parent'],_0x54060e=_0x265879[_0x3e90('0x84')];!function _0x4bb9ab(_0xac17e5,_0x38890f,_0x5e5480,_0x4865ab){for(let _0x2058cf=_0x5e5480;_0x2058cf<_0x4865ab;_0x2058cf++){const _0x501d69=_0x38890f[_0x3e90('0xa7')](_0x2058cf);_0x501d69['is']('element',_0x3e90('0x35'))?_0xac17e5[_0x3e90('0x6d')](_0x501d69['getAttribute'](_0x3e90('0x5')),{'userId':_0x64dfeb}):(_0xac17e5[_0x3e90('0x6d')](_0x501d69[_0x3e90('0x3b')](_0x3e90('0x3f')),{'userId':_0x64dfeb}),_0x4bb9ab(_0xac17e5,_0x501d69,0x0,_0x501d69[_0x3e90('0xee')]),_0xac17e5[_0x3e90('0x6d')](_0x501d69[_0x3e90('0x3b')]('vid_end'),{'userId':_0x64dfeb}));}}(this[_0x3e90('0x49')],_0x4dfccf,_0x54060e,_0x54060e+_0x1d7820[_0x3e90('0x2d')]);}['_handleMergeOperation'](_0x48b353){const _0x5f5d0b=null===(_0x48b353=this[_0x3e90('0x5e')](_0x48b353,this['_idsRoots']))[_0x3e90('0x40')]?null:_0x48b353[_0x3e90('0x40')]||this['editor']['plugins'][_0x3e90('0x22')](_0x3e90('0xb9'))['me']['id'],_0x2f2d32=_0x48b353['targetPosition'][_0x3e90('0x7a')],_0x87cb02=_0x48b353[_0x3e90('0x83')][_0x3e90('0x7a')],_0x19932=_0x2f2d32[_0x3e90('0x3b')]('vid_end'),_0x4fc0b4=_0x87cb02['getAttribute'](_0x3e90('0x3f'));_0x2f2d32[_0x3e90('0xd3')](_0x3e90('0xc6'),_0x87cb02[_0x3e90('0x3b')](_0x3e90('0xc6'))),_0x87cb02['_setAttribute'](_0x3e90('0xc6'),_0x19932),this['_touched'][_0x3e90('0x6d')](_0x4fc0b4,{'userId':_0x5f5d0b}),this[_0x3e90('0x49')][_0x3e90('0x6d')](_0x19932,{'userId':_0x5f5d0b}),_0x48b353['_execute']();}[_0x3e90('0x61')](_0x1fa0da){const _0x28ec67=null===(_0x1fa0da=this[_0x3e90('0x5e')](_0x1fa0da,this['_idsRoots']))[_0x3e90('0x40')]?null:_0x1fa0da[_0x3e90('0x40')]||this[_0x3e90('0x79')][_0x3e90('0x1f')][_0x3e90('0x22')](_0x3e90('0xb9'))['me']['id'],_0x15d04f=_0x1fa0da[_0x3e90('0x6c')],_0x2e449a=_0x1fa0da[_0x3e90('0x2b')]['parent'];_0x1fa0da[_0x3e90('0xda')]();const _0x99030=_0x2e449a[_0x3e90('0x3b')]('vid_end'),_0x152cf4=_0x1fa0da[_0x3e90('0x6')][_0x3e90('0x11')];if(_0x15d04f){const _0x3b7b91=_0x152cf4[_0x3e90('0x3b')]('vid_end'),_0x3acb0a=_0x2e449a['getAttribute'](_0x3e90('0xc6'));_0x2e449a[_0x3e90('0xd3')]('vid_end',_0x3b7b91),_0x152cf4[_0x3e90('0xd3')](_0x3e90('0xc6'),_0x3acb0a),this[_0x3e90('0x49')][_0x3e90('0x6d')](_0x2e449a[_0x3e90('0x3b')]('vid_end'),{'userId':_0x28ec67}),this[_0x3e90('0x49')]['set'](_0x152cf4[_0x3e90('0x3b')]('vid_start'),{'userId':_0x28ec67});}else{const _0x9680bc=this[_0x3e90('0x0')]++,_0x3981f6=this[_0x3e90('0x0')]++;_0x2e449a['_setAttribute'](_0x3e90('0xc6'),_0x9680bc),_0x152cf4[_0x3e90('0xd3')]('vid_start',_0x3981f6),_0x152cf4[_0x3e90('0xd3')]('vid_end',_0x99030),this[_0x3e90('0x49')][_0x3e90('0x6d')](_0x9680bc,{'userId':_0x28ec67}),this[_0x3e90('0x49')]['set'](_0x3981f6,{'userId':_0x28ec67});}}[_0x3e90('0xbc')](_0x52f9a7){if(!_0x52f9a7[_0x3e90('0x44')])return;const _0x2e5b20=(_0x52f9a7=this[_0x3e90('0x5e')](_0x52f9a7,this[_0x3e90('0x68')]))[_0x3e90('0xf1')]?_0x52f9a7[_0x3e90('0xf1')][_0x3e90('0x7d')]:null,_0x2475eb=_0x52f9a7[_0x3e90('0x45')]?_0x52f9a7['newRange'][_0x3e90('0x7d')]:null;_0x2e5b20&&this['_markers'][_0x3e90('0xcb')](_0x52f9a7[_0x3e90('0xc')]),_0x2475eb&&this[_0x3e90('0x94')][_0x3e90('0x6d')](_0x52f9a7['name'],_0x52f9a7[_0x3e90('0x45')][_0x3e90('0x63')]());const _0x33f239=null===_0x52f9a7['_authorId']?null:_0x52f9a7[_0x3e90('0x40')]||this[_0x3e90('0x79')][_0x3e90('0x1f')][_0x3e90('0x22')](_0x3e90('0xb9'))['me']['id'],_0x273c48=_0x52f9a7[_0x3e90('0xc')];if(!this[_0x3e90('0xfd')][_0x3e90('0x5b')](_0x273c48))return void this[_0x3e90('0xfd')][_0x3e90('0x6d')](_0x273c48,{'range':_0x52f9a7[_0x3e90('0xf1')],'userId':_0x33f239});const _0x3adbda=this[_0x3e90('0xfd')][_0x3e90('0x22')](_0x273c48),_0xce6f29=_0x3adbda[_0x3e90('0x18')],_0x450a0e=_0x52f9a7['newRange'];null==_0xce6f29&&null==_0x450a0e||_0xce6f29&&_0x450a0e&&_0xce6f29['isEqual'](_0x450a0e)?this[_0x3e90('0xfd')]['delete'](_0x52f9a7[_0x3e90('0xc')]):_0x3adbda[_0x3e90('0x7b')]=_0x33f239;}[_0x3e90('0x101')](_0x559599,_0x5f60df){this[_0x3e90('0x68')][_0x3e90('0x5b')](_0x559599[_0x3e90('0x2c')])?this[_0x3e90('0x68')]['get'](_0x559599[_0x3e90('0x2c')])['_isAttached']=_0x559599[_0x3e90('0x98')]:(this[_0x3e90('0x68')]['set'](_0x559599['rootName'],G(_0x559599[_0x3e90('0x2c')],!0x0)),this[_0x3e90('0x9b')][_0x3e90('0x6d')](_0x559599[_0x3e90('0x2c')],{}),_0x5f60df&&this[_0x3e90('0x3')][_0x3e90('0x6d')](_0x559599[_0x3e90('0x2c')],G(_0x559599[_0x3e90('0x2c')],!0x0)));const _0x36c1=null===_0x559599[_0x3e90('0x40')]?null:_0x559599[_0x3e90('0x40')]||this[_0x3e90('0x79')][_0x3e90('0x1f')][_0x3e90('0x22')](_0x3e90('0xb9'))['me']['id'],_0x3d675b=this[_0x3e90('0xf9')]['get'](_0x559599[_0x3e90('0x2c')]);_0x3d675b&&_0x3d675b['userId']===_0x36c1?this[_0x3e90('0xf9')][_0x3e90('0xcb')](_0x559599[_0x3e90('0x2c')]):this['_touchedRoots'][_0x3e90('0x6d')](_0x559599['rootName'],{'userId':_0x36c1,'isAttached':_0x559599[_0x3e90('0x98')]});}[_0x3e90('0x6a')](_0xdb596d){const _0x14d939=this[_0x3e90('0x9b')][_0x3e90('0x22')](_0xdb596d[_0x3e90('0x7d')][_0x3e90('0x2c')]);null===_0xdb596d[_0x3e90('0x8c')]?delete _0x14d939[_0xdb596d[_0x3e90('0xa')]]:_0x14d939[_0xdb596d[_0x3e90('0xa')]]=_0xdb596d[_0x3e90('0x8c')];}}function q(_0x74beed){const _0x518c99=G(_0x74beed[_0x3e90('0x2c')],_0x74beed[_0x3e90('0x34')]());for(const _0x24c001 of _0x74beed[_0x3e90('0x97')]()){const _0x259201=_0x24c001[_0x3e90('0x60')](!0x0);_0x518c99[_0x3e90('0x73')](_0x259201);}return _0x518c99;}function G(_0x1faa8e,_0xed353e=!0x0){const _0x2f7685=new _0x5942d3();return _0x2f7685['rootName']=_0x1faa8e,_0x2f7685[_0x3e90('0x21')]=_0xed353e,_0x2f7685['isAttached']=()=>_0x2f7685[_0x3e90('0x21')],_0x2f7685;}function L(_0x3be63e,_0x5316b0,_0x235fdd){const _0x3a2062=_0x3e90('0xd2')==_0x3be63e[_0x3e90('0x47')]?_0x235fdd['createPositionAt'](_0x3be63e[_0x3e90('0xca')],'end'):_0x235fdd[_0x3e90('0xb3')](_0x3be63e[_0x3e90('0xca')]);return _0x235fdd[_0x3e90('0xa2')](_0x5316b0,_0x3a2062[_0x3e90('0x2')],_0x3a2062[_0x3e90('0x4a')]);}function W(_0x335238,_0x73f8d0,_0x3bb4f5){const _0x37bd9e=_0x3e90('0x28')==_0x335238[_0x3e90('0x47')]?_0x3bb4f5[_0x3e90('0x4')](_0x335238[_0x3e90('0xca')],0x0):_0x3bb4f5[_0x3e90('0xac')](_0x335238[_0x3e90('0xca')]);return _0x3bb4f5[_0x3e90('0xa2')](_0x73f8d0,_0x37bd9e[_0x3e90('0x2')],_0x37bd9e['stickiness']);}
|