@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231018.0 → 0.0.0-nightly-20231020.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 _0x3eb7=['vid_end','_pendingAction','_execute','addRevisionData','deletion','_update','remove','reInit','splitPosition','getRevisions','_revisionId','_isAttached','elementEnd','_loadRevisionData','string','find','authors','_idsRoots','editor-initial-data-replaced-with-revision-data','isEqual','_clone','detachRoot','_markChanges','_removeMetaData','getChildren','_handleInsertOperation','toVersion','getChild','for','_processRootBeforeSave','roots','_handleRootOperation','_handleMarkerOperation','_handleMergeOperation','creator','PENDING_ACTION_REVISION_HISTORY','getRange','_baseIdsRoots','_setAttribute','revisionHistory.resumeUnsavedRevision','source','PendingActions','initial','merge','_source','stickiness','toData','authorsIds','_getBaseVids','_replaceEditorDataWithRevisionData','sourcePosition','Users','name','attributes','createPositionFromPath','useFillerType','changeRootAttribute','vid_start','adapter','_bufferedUpdates','getData','fromVersion','createRangeIn','history','_touchedRoots','addRevision','nodes','getIndex','addRootAttribute','getAttribute','loadState','getRevisionDocumentData','parent','get','afterInit','type','_createCurrentRevision','updateRevisions','getTransformedByOperation','sendBufferedUpdates','insertion','getRevision','version','insert','item','init','sort','range','push','deletions','isReady','data-revision-','add','has','forEach','_handleMoveOperation','userId','affectsData','getTime','_startingVersion','start','_applyOperations','attributesAfter','_reset','markers','filter','baseVersion','slice','getRootNames','position','elementStart','define','isAttached','attachChange','_revisionDataBuilder','resolve','offset','_setConversion','_startingRevisionId','_removeRevisionMarkers','getLatestVersion','_getState','previousPosition','hasContent','dataToMarker','insertions','length','_fixRange','Empty\x20document','_savedMetaData','_handleSplitOperation','clone','createPositionBefore','RealTimeCollaborationClient','getOperation','createRevision','markerToData','ready','revision:','$graveyard','parse','document','newRange','repository','toModel','_isPendingUpdate','delete','data','_diffRoots','_lastFrom','getWalker','_handleRootAttributeOperation','marked','default','processor','_fixPosition','_getViewJson','RevisionsRepository','collaboration.channelId','size','_prepareViewToSave','_calculateMetaData','move','vid','attributesBefore','_loadState','createPositionAt','removeRootAttribute','Initial\x20revision','_getPreviousFrom','_saveMetaData','_getFromVersion','_operations','_insertChild','requires','_baseRootsAttributes','max','isEnabled','offsetSize','getRoot','graveyardPosition','editor','key','_touched','getAncestors','getMovedRangeStart','set','root','paragraph','reverse','split','startsWith','_handleOperation','setSource','keepParagraph','_makeRevision','_cloneOperation','keys','_isInit','documentFragment','_makeIdsRoot','_loadedStateData','editing','_bufferUpdate','childCount','_getVidAttributeName','reinsert','getNodeByPath','config','NEGATIVE_INFINITY','_createFromRanges','values','getCurrentRevisionId','$text','_createInitialRevision','_findInsertionIndex','createdAt','buildRevisionData','from','clear','dataDowncast','trim','children','then','_continueCurrentRevision','_transformMarkers','initialData','locale','finally','getOperations','map','_touchedMarkers','shift','_authorId','_generateTape','_copyMarkers','oldRange','_diffRootsAttributes','targetPosition','diffData','_appendChild','_removePendingAction','view','_markers','rootsAttributes','isAdd','_lastTo','newValue','_initialRevisionId','rootName','getUser','marker','tableCell','_addPendingAction','_fixOperation','element','howMany','path','creatorId','fromEntries','setRevisionData','plugins','_baseRoots','end','model','currentRevision','insertionPosition','conversion','addRoot'];(function(_0x5d3b1f,_0x3eb709){const _0x1efa6f=function(_0x5ae1e1){while(--_0x5ae1e1){_0x5d3b1f['push'](_0x5d3b1f['shift']());}};_0x1efa6f(++_0x3eb709);}(_0x3eb7,0x1ec));const _0x1efa=function(_0x5d3b1f,_0x3eb709){_0x5d3b1f=_0x5d3b1f-0x0;let _0x1efa6f=_0x3eb7[_0x5d3b1f];return _0x1efa6f;};import{Users as _0x611cc4}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x28a56d,PendingActions as _0x41fc44}from'ckeditor5/src/core';import{logWarning as _0x423018,uid as _0x5a49bf}from'ckeditor5/src/utils';import{Position as _0x40ca33,Range as _0x4bae08,Element as _0x54f8f9,DocumentFragment as _0x638994,ViewText as _0x9be36c,ViewElement as _0x145c57,ViewContainerElement as _0x5ce86e,ViewAttributeElement as _0x1f4cba,ViewEmptyElement as _0x4fac98,ViewRawElement as _0x9e905e,ViewUIElement as _0x322bd4,ViewDocumentFragment as _0x394920}from'ckeditor5/src/engine';import _0x2ed9bd from'./revisionsrepository';import{getTranslation as _0xf72c0}from'./utils/common-translations';import{cloneDeep as _0x3876ea,isEqual as _0x59b0dd}from'lodash-es';const B={'c':_0x5ce86e,'a':_0x1f4cba,'e':_0x4fac98,'r':_0x9e905e,'u':_0x322bd4};export default class l extends _0x28a56d{static get['pluginName'](){return'RevisionTracker';}static get[_0x1efa('0xdc')](){return[_0x611cc4,_0x2ed9bd,_0x41fc44];}constructor(_0x8ac3e3){super(_0x8ac3e3),this['adapter']=null,this[_0x1efa('0x2a')]=null,this[_0x1efa('0xa0')]=new H(this[_0x1efa('0xe3')]),this[_0x1efa('0x19')]=this['editor'][_0x1efa('0xfe')][_0x1efa('0x77')](_0x1efa('0xcc'))||_0x1efa('0x58'),this[_0x1efa('0x69')]=new Map(),this[_0x1efa('0xf7')]=null;const _0x430992=_0x5a49bf();this[_0x1efa('0x5a')]={'history':this['editor'][_0x1efa('0x29')]['document'][_0x1efa('0x6d')],'getLatestVersion':()=>Promise[_0x1efa('0xa1')](this[_0x1efa('0xe3')]['model'][_0x1efa('0xbb')][_0x1efa('0x80')]),'getCurrentRevisionId':()=>_0x430992},this['set'](_0x1efa('0x88'),!0x1),this[_0x1efa('0xe8')](_0x1efa('0xdf'),!0x0),this['set'](_0x1efa('0xbf'),!0x1),this['editor'][_0x1efa('0xfe')][_0x1efa('0x9d')](_0x1efa('0x55'),!0x0),this[_0x1efa('0xe3')]['conversion'][_0x1efa('0x4a')]('upcast')[_0x1efa('0xaa')]({'view':'revision'});}[_0x1efa('0x83')](){this[_0x1efa('0xbd')]=this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0xcb')),this[_0x1efa('0xa3')](),this[_0x1efa('0xe3')]['data']['on'](_0x1efa('0xb7'),()=>{const _0x45cf37=this[_0x1efa('0xbd')]['getRevision'](0x0),_0x2af00e=_0x45cf37&&null===_0x45cf37['creator']?_0x45cf37:null;if(this[_0x1efa('0x1')]=!!_0x2af00e&&this[_0x1efa('0xe3')][_0x1efa('0xfe')]['get'](_0x1efa('0x55')),this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x8b')](_0x1efa('0xb3'))){const _0x15e313=this['_source'][_0x1efa('0x102')](),_0x294db0=this[_0x1efa('0xbd')][_0x1efa('0x7f')](_0x15e313);if(_0x294db0)this['_startingVersion']=_0x294db0[_0x1efa('0x6b')],this[_0x1efa('0x1')]=!0x1;else{const _0x50ade8=this[_0x1efa('0x5a')][_0x1efa('0x6d')][_0x1efa('0xda')]['find'](_0x501e43=>!_0x501e43[_0x1efa('0xf4')]),_0x16378e=_0x50ade8?_0x50ade8[_0x1efa('0x98')]:this[_0x1efa('0x5a')][_0x1efa('0x6d')][_0x1efa('0x80')];_0x45cf37?(_0x45cf37['toVersion']<_0x16378e&&_0x45cf37[_0x1efa('0x33')]({'toVersion':_0x16378e}),this[_0x1efa('0x1')]?(this[_0x1efa('0x5a')][_0x1efa('0x102')]=()=>_0x2af00e['id'],this[_0x1efa('0x91')]=_0x2af00e[_0x1efa('0x6b')]):(this[_0x1efa('0x91')]=_0x45cf37[_0x1efa('0x48')],this[_0x1efa('0x1')]=!0x1)):(this[_0x1efa('0x91')]=_0x16378e,this[_0x1efa('0x1')]=!0x1);}}else _0x2af00e&&(this[_0x1efa('0xe3')]['model'][_0x1efa('0xbb')][_0x1efa('0x6d')][_0x1efa('0x80')]=Math[_0x1efa('0xde')](_0x2af00e[_0x1efa('0x48')],this[_0x1efa('0xe3')]['model'][_0x1efa('0xbb')][_0x1efa('0x6d')][_0x1efa('0x80')]),_0x2af00e[_0x1efa('0x6b')]===_0x2af00e[_0x1efa('0x48')]?(0x0!==_0x2af00e[_0x1efa('0x6b')]&&(this[_0x1efa('0x5a')][_0x1efa('0x102')]=()=>_0x2af00e['id']),this[_0x1efa('0x1')]=!0x1):this['_continueCurrentRevision']&&(this[_0x1efa('0x5a')]['getCurrentRevisionId']=()=>_0x2af00e['id'],this[_0x1efa('0x91')]=_0x2af00e[_0x1efa('0x6b')])),this[_0x1efa('0x1')]||(this['_startingVersion']=this[_0x1efa('0xe3')]['model']['document'][_0x1efa('0x80')]);this[_0x1efa('0xa0')]['init'](this[_0x1efa('0x5a')][_0x1efa('0x6d')]),this['_createInitialRevision'](this[_0x1efa('0x91')]),this[_0x1efa('0x7a')](this[_0x1efa('0x91')]),this[_0x1efa('0x68')]&&this[_0x1efa('0x7d')]();}),this['bind']('isReady')['to'](this,_0x1efa('0xbf'),_0x3d0e3b=>!_0x3d0e3b);}async[_0x1efa('0x78')](){if(this['repository']['length']>0x0){const _0x4d9616=this[_0x1efa('0xbd')][_0x1efa('0x7f')](0x0),_0x3bd752=await this[_0x1efa('0x75')](_0x4d9616),_0x2974f8=await this['getRevisionRootsAttributes'](_0x4d9616);this['_replaceEditorDataWithRevisionData'](_0x3bd752,_0x2974f8);}}[_0x1efa('0xef')](_0x55b6ce){this['_source']=_0x55b6ce;}async['update'](){const _0x311af3=await this[_0x1efa('0x5a')][_0x1efa('0xa6')]();if(_0x311af3>this['currentRevision'][_0x1efa('0x48')]){await this[_0x1efa('0xd3')]();const _0x396e1a=this['buildRevisionData']({'revision':this[_0x1efa('0x2a')],'to':_0x311af3});_0x396e1a[_0x1efa('0x3e')]=_0x396e1a[_0x1efa('0x5d')]['map'](_0x3f165b=>this[_0x1efa('0xe3')]['plugins'][_0x1efa('0x77')](_0x1efa('0x61'))['getUser'](_0x3f165b)),this[_0x1efa('0x2a')][_0x1efa('0x33')](_0x396e1a);}}async[_0x1efa('0xd3')](){this['_continueCurrentRevision']&&!this[_0x1efa('0xf7')]&&(await this[_0x1efa('0x3b')](this[_0x1efa('0x2a')]),this[_0x1efa('0xa0')][_0x1efa('0x74')](this[_0x1efa('0x2a')]),this[_0x1efa('0xf7')]={'fromVersion':this['currentRevision'][_0x1efa('0x6b')],'authors':this[_0x1efa('0x2a')]['authors'][_0x1efa('0x99')]()});}async['saveRevision'](_0x21888e={},_0x1f7e9d=null){const _0x32191f=[];await this[_0x1efa('0xd3')](),this[_0x1efa('0x1')]=!0x1,_0x1f7e9d>this['currentRevision'][_0x1efa('0x48')]&&(_0x1f7e9d=null),null===_0x1f7e9d&&(_0x1f7e9d=await this[_0x1efa('0x5a')][_0x1efa('0xa6')]());const _0x2de304=this[_0x1efa('0xd9')](_0x1f7e9d),_0x1586a8=this[_0x1efa('0x107')]({'from':_0x2de304,'to':_0x1f7e9d});if(this[_0x1efa('0x2a')][_0x1efa('0x48')]<_0x1f7e9d){const _0x22e0f1=this[_0x1efa('0x107')]({'revision':this[_0x1efa('0x2a')],'from':_0x1f7e9d,'to':_0x1f7e9d});_0x22e0f1['authors']=[],_0x22e0f1['authorsIds']=[],_0x22e0f1['id']=this[_0x1efa('0x2a')]['id'],this[_0x1efa('0x2a')][_0x1efa('0x33')](_0x22e0f1,!0x0),delete _0x22e0f1[_0x1efa('0x3e')],_0x32191f[_0x1efa('0x86')](_0x22e0f1);}_0x21888e[_0x1efa('0x23')]=this['editor'][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x61'))['me']['id'],_0x21888e[_0x1efa('0x62')]=_0x21888e[_0x1efa('0x62')]||null,_0x21888e['id']=_0x21888e['id']||_0x5a49bf(),_0x21888e={..._0x21888e,..._0x1586a8};const _0x1faca4=this[_0x1efa('0x31')](_0x21888e);_0x32191f['push'](_0x21888e);const _0x27eb94=this[_0x1efa('0xbd')][_0x1efa('0x71')](_0x1faca4);if(0x0!==_0x27eb94){const _0x2dc8a9=this[_0x1efa('0xbd')][_0x1efa('0x7f')](_0x27eb94-0x1);if(_0x2dc8a9[_0x1efa('0x6b')]!==_0x1f7e9d){const _0x451123=this[_0x1efa('0xa0')]['getData'](_0x1f7e9d,_0x2dc8a9[_0x1efa('0x48')]),_0x343a75={'id':_0x2dc8a9['id'],'diffData':_0x451123[_0x1efa('0x10')],'authorsIds':_0x451123[_0x1efa('0x5d')],'authors':_0x451123[_0x1efa('0x5d')][_0x1efa('0x7')](_0x49be61=>this[_0x1efa('0xe3')]['plugins'][_0x1efa('0x77')](_0x1efa('0x61'))[_0x1efa('0x1b')](_0x49be61)),'fromVersion':_0x1f7e9d};_0x2dc8a9===this[_0x1efa('0x2a')]&&(_0x343a75[_0x1efa('0x106')]=new Date(_0x21888e[_0x1efa('0x106')][_0x1efa('0x90')]()+0xa)),_0x2dc8a9[_0x1efa('0x33')](_0x343a75,!0x0),delete _0x343a75[_0x1efa('0x3e')],_0x32191f['push'](_0x343a75);}}if(this[_0x1efa('0x68')]){for(const _0x65a7e1 of _0x32191f)this[_0x1efa('0xf9')](_0x65a7e1['id'],_0x65a7e1,!0x0);this[_0x1efa('0x7d')]();}return _0x1faca4;}[_0x1efa('0x31')](_0xff0a9f){const _0x4fd357=this[_0x1efa('0xbd')][_0x1efa('0xb5')](_0xff0a9f);return this['adapter']&&_0x4fd357['on'](_0x1efa('0x33'),(_0x566076,_0x44c157,_0x5bff92)=>{_0x5bff92||(this['_bufferUpdate'](_0x44c157['id'],_0x44c157,!0x0),this['sendBufferedUpdates']());}),this[_0x1efa('0xbd')][_0x1efa('0x6f')](_0x4fd357,this['_findInsertionIndex'](_0x4fd357)),_0x4fd357;}async[_0x1efa('0x75')](_0x5299e4){await this[_0x1efa('0x3b')](_0x5299e4);const _0x3cff7c={};for(const _0x44f48c in _0x5299e4['diffData']){if(_0x5299e4['diffData'][_0x44f48c]['attachChange']&&!_0x5299e4['diffData'][_0x44f48c][_0x1efa('0x9f')][_0x1efa('0x9e')])continue;const _0x572b64=this[_0x1efa('0xa5')](JSON[_0x1efa('0xba')](_0x5299e4[_0x1efa('0x10')][_0x44f48c][_0x1efa('0xab')])),_0xdca219=this['editor'][_0x1efa('0xf8')][_0x1efa('0x13')]['document'],_0x1c7d2f=new _0x394920(_0xdca219,_0x572b64[_0x1efa('0x7')](_0x3df812=>J(_0x3df812,this[_0x1efa('0xe3')])));this[_0x1efa('0xe3')][_0x1efa('0xc1')]['processor'][_0x1efa('0x65')](_0x1efa('0xc6')),_0x3cff7c[_0x44f48c]=this[_0x1efa('0xe3')][_0x1efa('0xc1')][_0x1efa('0xc8')][_0x1efa('0x5c')](_0x1c7d2f),this['editor'][_0x1efa('0xc1')]['processor'][_0x1efa('0x65')](_0x1efa('0xc7'));}return _0x3cff7c;}async['getRevisionRootsAttributes'](_0x48f44d){await this[_0x1efa('0x3b')](_0x48f44d);const _0x46fcd9={};for(const _0x49189e in _0x48f44d['diffData'])_0x48f44d['diffData'][_0x49189e][_0x1efa('0x9f')]&&!_0x48f44d[_0x1efa('0x10')][_0x49189e][_0x1efa('0x9f')][_0x1efa('0x9e')]||(_0x46fcd9[_0x49189e]=_0x48f44d['diffData'][_0x49189e][_0x1efa('0x94')]||{});return _0x46fcd9;}[_0x1efa('0x7d')](){if(0x0===this['_bufferedUpdates'][_0x1efa('0xcd')])return;if(this[_0x1efa('0xbf')])return;let _0x4679fc=Array[_0x1efa('0x108')](this[_0x1efa('0x69')][_0x1efa('0x101')]());this['_bufferedUpdates']['clear']();for(let _0x3192c5=0x0;_0x3192c5<_0x4679fc[_0x1efa('0xac')];_0x3192c5++){const _0x23dad1=_0x4679fc[_0x3192c5];let _0x5c579b=!0x1;for(const _0x161342 of Object[_0x1efa('0xf3')](_0x23dad1))void 0x0===_0x23dad1[_0x161342]?delete _0x23dad1[_0x161342]:'id'!==_0x161342&&(_0x5c579b=!0x0);_0x5c579b||(_0x4679fc[_0x3192c5]=null);}if(_0x4679fc=_0x4679fc[_0x1efa('0x97')](_0x3d0585=>null!==_0x3d0585),!_0x4679fc['length'])return;for(let _0x72a87f=0x0;_0x72a87f<_0x4679fc[_0x1efa('0xac')];_0x72a87f++){const _0x27c393=_0x4679fc[_0x72a87f];void 0x0!==_0x27c393[_0x1efa('0x6b')]&&void 0x0===_0x27c393[_0x1efa('0x48')]&&(_0x27c393[_0x1efa('0x48')]=this[_0x1efa('0xbd')][_0x1efa('0x7f')](_0x27c393['id'])[_0x1efa('0x48')]),void 0x0!==_0x27c393[_0x1efa('0x48')]&&void 0x0===_0x27c393['fromVersion']&&(_0x27c393[_0x1efa('0x6b')]=this[_0x1efa('0xbd')][_0x1efa('0x7f')](_0x27c393['id'])[_0x1efa('0x6b')]);}const _0x313e19=this[_0x1efa('0xe3')]['config'][_0x1efa('0x77')]('collaboration.channelId');this[_0x1efa('0xbf')]=!0x0,this['_addPendingAction'](),this['adapter'][_0x1efa('0x7b')](_0x4679fc,_0x313e19)[_0x1efa('0x5')](()=>{this[_0x1efa('0xbf')]=!0x1;})['then'](_0x276bab=>{if(_0x276bab)for(const _0xe51aba of _0x276bab)this[_0x1efa('0x25')]({'id':_0xe51aba['id'],'createdAt':_0xe51aba[_0x1efa('0x106')]});this[_0x1efa('0x12')](),this[_0x1efa('0x7d')]();});}[_0x1efa('0x5f')](_0x3dcae0,_0x261072){let _0x254359=this[_0x1efa('0xe3')][_0x1efa('0xfe')][_0x1efa('0x77')]('initialData'),_0x5773bf=this[_0x1efa('0xe3')][_0x1efa('0xfe')][_0x1efa('0x77')](_0x1efa('0x15'));if(void 0x0===_0x254359){_0x254359={};for(const _0x3f6622 of this[_0x1efa('0xe3')][_0x1efa('0x29')]['document'][_0x1efa('0x9a')]())_0x254359[_0x3f6622]='';}if(_0x1efa('0x3c')==typeof _0x254359&&(_0x254359={'main':_0x254359}),void 0x0===_0x5773bf){_0x5773bf={};for(const _0x42ae46 of this[_0x1efa('0xe3')]['model']['document'][_0x1efa('0x9a')]())_0x5773bf[_0x42ae46]={};}let _0x316505=!0x1;const _0x25aead=Object[_0x1efa('0xf3')](_0x254359),_0x366589=Object['keys'](_0x3dcae0);for(const _0x28911a of _0x25aead){if(_0x254359[_0x28911a]!==_0x3dcae0[_0x28911a]&&''!==_0x254359[_0x28911a][_0x1efa('0x10b')]()){_0x316505=!0x0;break;}if(!_0x59b0dd(_0x5773bf[_0x28911a],_0x261072[_0x28911a])&&Object[_0x1efa('0xf3')](_0x5773bf[_0x28911a])['length']>0x0){_0x316505=!0x0;break;}}_0x316505||(_0x316505=_0x366589['some'](_0x36598f=>!this[_0x1efa('0xe3')][_0x1efa('0x29')][_0x1efa('0xbb')]['getRoot'](_0x36598f))),_0x316505&&_0x423018(_0x1efa('0x40'),{'editorData':_0x254359,'editorRootsAttributes':_0x5773bf,'revisionData':_0x3dcae0,'revisionRootsAttributes':_0x261072}),this[_0x1efa('0xe3')][_0x1efa('0xfe')][_0x1efa('0xe8')](_0x1efa('0x3'),_0x3dcae0),this[_0x1efa('0xe3')][_0x1efa('0xfe')][_0x1efa('0xe8')](_0x1efa('0x15'),_0x261072);}[_0x1efa('0x1e')](){if(!this['_pendingAction']){const _0x135225=this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x57'));this[_0x1efa('0x2f')]=_0x135225[_0x1efa('0x8a')](_0xf72c0(this[_0x1efa('0xe3')]['locale'],_0x1efa('0x51')));}}[_0x1efa('0x12')](){this[_0x1efa('0x2f')]&&(this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x57'))[_0x1efa('0x34')](this[_0x1efa('0x2f')]),this[_0x1efa('0x2f')]=null);}[_0x1efa('0x105')](_0x358456){const _0x4ee776=this[_0x1efa('0xbd')][_0x1efa('0x37')]();_0x4ee776[_0x1efa('0xeb')]();let _0x51c149=0x0;for(;_0x51c149<_0x4ee776[_0x1efa('0xac')];){const _0x3c02d0=_0x4ee776[_0x51c149];if(_0x3c02d0===this[_0x1efa('0x2a')]){_0x51c149++;continue;}if(_0x3c02d0['id']===this[_0x1efa('0x19')])break;const _0x439ead=_0x358456[_0x1efa('0x48')]-_0x3c02d0[_0x1efa('0x48')]||_0x358456[_0x1efa('0x6b')]-_0x3c02d0['fromVersion'];if(_0x439ead>0x0)break;if(_0x439ead<0x0)_0x51c149++;else{if(!_0x358456['creator']&&_0x3c02d0[_0x1efa('0x50')])break;if(_0x3c02d0['creator']||!_0x358456[_0x1efa('0x50')]){if(_0x358456[_0x1efa('0x106')]>_0x3c02d0[_0x1efa('0x106')])break;_0x51c149++;}else _0x51c149++;}}return _0x51c149;}[_0x1efa('0x25')](_0x43c9ea){const _0x41d553=this[_0x1efa('0xbd')]['getRevision'](_0x43c9ea['id']);if(_0x43c9ea[_0x1efa('0x106')]&&(_0x43c9ea[_0x1efa('0x106')]=new Date(_0x43c9ea[_0x1efa('0x106')])),_0x43c9ea['authorsIds']){const _0x2ef73e=this[_0x1efa('0xe3')][_0x1efa('0x26')]['get'](_0x1efa('0x61'));_0x43c9ea[_0x1efa('0x3e')]=_0x43c9ea['authorsIds']['map'](_0x5c8271=>_0x2ef73e['getUser'](_0x5c8271));}_0x41d553[_0x1efa('0x33')](_0x43c9ea,!0x0);}[_0x1efa('0x107')]({revision:_0x5e9801=null,from:_0x6c845a=null,to:_0x4a4f2f=null}){_0x6c845a=null!==_0x6c845a?_0x6c845a:_0x5e9801[_0x1efa('0x6b')],_0x4a4f2f=null!==_0x4a4f2f?_0x4a4f2f:_0x5e9801[_0x1efa('0x48')];const _0x3ff27a=this[_0x1efa('0xa0')][_0x1efa('0x6a')](_0x6c845a,_0x4a4f2f),_0x4f2b3e={'diffData':_0x3ff27a['diffData'],'authorsIds':_0x3ff27a[_0x1efa('0x5d')],'fromVersion':_0x6c845a,'toVersion':_0x4a4f2f};if(!_0x5e9801||_0x4a4f2f!==_0x5e9801[_0x1efa('0x48')]){const _0x465d95=_0x4a4f2f-0x1,_0x4151f2=this[_0x1efa('0x5a')][_0x1efa('0x6d')][_0x1efa('0xb4')](_0x465d95);_0x4f2b3e[_0x1efa('0x106')]=_0x4151f2&&_0x4151f2[_0x1efa('0x106')]||new Date();}if(this[_0x1efa('0xf7')]&&_0x6c845a===this[_0x1efa('0xf7')][_0x1efa('0x6b')])for(const _0x102b11 of this[_0x1efa('0xf7')]['authors'])_0x4f2b3e[_0x1efa('0x5d')]['includes'](_0x102b11['id'])||_0x4f2b3e[_0x1efa('0x5d')][_0x1efa('0x86')](_0x102b11['id']);return _0x4f2b3e;}[_0x1efa('0x3b')](_0x21662f){if(!_0x21662f||_0x21662f[_0x1efa('0x10')])return Promise[_0x1efa('0xa1')]();{const _0x1b6c60=this[_0x1efa('0xe3')][_0x1efa('0xfe')]['get'](_0x1efa('0xcc'));return this[_0x1efa('0x68')][_0x1efa('0x7f')]({'channelId':_0x1b6c60,'revisionId':_0x21662f['id']})[_0x1efa('0x0')](_0x206059=>{_0x21662f['diffData']=_0x206059[_0x1efa('0x10')];});}}[_0x1efa('0xf9')](_0x31831c,_0x4ce973,_0x519dbb){if(this['_bufferedUpdates'][_0x1efa('0x8b')](_0x31831c)){const _0x21c9ba=this[_0x1efa('0x69')][_0x1efa('0x77')](_0x31831c);_0x4ce973=_0x519dbb?{..._0x21c9ba,..._0x4ce973}:{..._0x4ce973,..._0x21c9ba};}this[_0x1efa('0x69')][_0x1efa('0xe8')](_0x31831c,_0x4ce973);}[_0x1efa('0xd9')](_0xf25a30){const _0xa575bc=this[_0x1efa('0xbd')]['getRevisions']();_0xa575bc['reverse'](),_0xa575bc[_0x1efa('0x9')]();const _0xf1d636=_0xa575bc['find'](_0xe03803=>_0xe03803['toVersion']<=_0xf25a30)[_0x1efa('0x48')];return _0xf1d636<this[_0x1efa('0x91')]?this[_0x1efa('0x91')]:_0xf1d636;}[_0x1efa('0x104')](_0x120bed){const _0x5422af=this['repository']['getRevision'](this[_0x1efa('0xbd')][_0x1efa('0xac')]-0x1);if(_0x5422af)this[_0x1efa('0x19')]=_0x5422af['id'];else{const _0x21ef3f=!this[_0x1efa('0xe3')][_0x1efa('0x29')][_0x1efa('0xbb')][_0x1efa('0x4c')]['find'](_0x408213=>this[_0x1efa('0xe3')][_0x1efa('0x29')][_0x1efa('0xa9')](_0x408213)),_0xd915f0=this['editor'][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x61'))['me']['id'],_0x2e067c=_0xf72c0(this['editor'][_0x1efa('0x4')],_0x21ef3f?_0x1efa('0xae'):_0x1efa('0xd6'));this['_makeRevision']({'from':_0x120bed,'to':_0x120bed,'id':this[_0x1efa('0x19')],'name':_0x2e067c,'creatorId':_0xd915f0});}}[_0x1efa('0x7a')](_0x377d2c){const _0x492177=this[_0x1efa('0x5a')]['getCurrentRevisionId']();this[_0x1efa('0x2a')]=this[_0x1efa('0xbd')][_0x1efa('0x7f')](_0x492177),this[_0x1efa('0x2a')]||(this['currentRevision']=this[_0x1efa('0xf1')]({'from':_0x377d2c,'to':_0x377d2c,'id':_0x492177,'name':'','creatorId':null}));}[_0x1efa('0xf1')]({name:_0x22a743,from:_0x19fec9,to:_0x5a2ca1,creatorId:_0xc2dace,id:_0x594302}){const _0x278bd9=this[_0x1efa('0x107')]({'from':_0x19fec9,'to':_0x5a2ca1});_0x278bd9[_0x1efa('0x62')]=_0x22a743,_0x278bd9[_0x1efa('0x23')]=_0xc2dace,_0x278bd9['id']=_0x594302;const _0x34b4b2=this[_0x1efa('0x31')](_0x278bd9);return this[_0x1efa('0x68')]&&this[_0x1efa('0xf9')](_0x278bd9['id'],_0x278bd9,!0x0),_0x34b4b2;}['_setConversion'](){this[_0x1efa('0xe3')][_0x1efa('0x2c')]['for'](_0x1efa('0x10a'))[_0x1efa('0xb6')]({'model':'revision'});}[_0x1efa('0xa5')](_0x3cdea4){return(_0x3cdea4=_0x3cdea4[_0x1efa('0x97')](_0x239fec=>!_0x239fec[_0x1efa('0x62')]||'revision-start'!==_0x239fec[_0x1efa('0x62')]&&'revision-end'!==_0x239fec[_0x1efa('0x62')]))[_0x1efa('0x8c')](_0x2a274c=>{'string'!=typeof _0x2a274c&&(_0x2a274c[_0x1efa('0x10c')]=this[_0x1efa('0xa5')](_0x2a274c[_0x1efa('0x10c')]),_0x2a274c['attributes']=_0x2a274c[_0x1efa('0x63')]['filter'](_0x41a209=>!_0x41a209[0x0][_0x1efa('0xed')](_0x1efa('0x89'))));}),_0x3cdea4;}}function J(_0xccfd9f,_0x22dd73){const _0x7a54ca=_0x22dd73[_0x1efa('0xf8')]['view'][_0x1efa('0xbb')];if(_0x1efa('0x3c')==typeof _0xccfd9f)return new _0x9be36c(_0x7a54ca,_0xccfd9f);{const _0x2b2973=_0xccfd9f[_0x1efa('0x10c')][_0x1efa('0x7')](_0x47fc1a=>J(_0x47fc1a,_0x22dd73));return new(B[_0xccfd9f[(_0x1efa('0x79'))]]||_0x145c57)(_0x7a54ca,_0xccfd9f[_0x1efa('0x62')],_0xccfd9f[_0x1efa('0x63')],_0x2b2973);}}class H{constructor(_0x4ab63f){this[_0x1efa('0xe3')]=_0x4ab63f,this[_0x1efa('0xaf')]=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this[_0x1efa('0xc2')]=new Map(),this[_0x1efa('0xe')]=new Map(),this['_baseRoots']=new Map(),this[_0x1efa('0xdd')]=new Map(),this[_0x1efa('0x3f')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x1efa('0xe5')]=new Map(),this[_0x1efa('0x8')]=new Map(),this[_0x1efa('0x6e')]=new Map(),this[_0x1efa('0x38')]=0x1;}[_0x1efa('0x83')](_0x4dd269){this[_0x1efa('0x56')]=_0x4dd269;const _0x339bd6=new Map(),_0x4feb06=new Map(),_0x1db136=this[_0x1efa('0xe3')][_0x1efa('0x29')][_0x1efa('0xbb')][_0x1efa('0x4c')][_0x1efa('0x7')](_0x494efd=>_0x494efd[_0x1efa('0x1a')]);for(const _0x118287 of _0x1db136){const _0x45a49b=this[_0x1efa('0xe3')]['model']['document'][_0x1efa('0xe1')](_0x118287),_0x454811=q(_0x45a49b);_0x339bd6['set'](_0x118287,_0x454811),_0x4feb06[_0x1efa('0xe8')](_0x118287,Object[_0x1efa('0x24')](_0x45a49b['getAttributes']()));}const _0x23bee4=Array[_0x1efa('0x108')](this[_0x1efa('0xe3')][_0x1efa('0x29')][_0x1efa('0x96')])[_0x1efa('0x7')](_0x59b60e=>[_0x59b60e['name'],_0x59b60e[_0x1efa('0x52')]()]),_0x4cbce1=this[_0x1efa('0x56')]['version'];this[_0x1efa('0xd8')](_0x4cbce1,_0x339bd6,_0x23bee4,_0x4feb06),this[_0x1efa('0xa4')]=this[_0x1efa('0x38')];const _0x1af092=new Map(),_0x481cd9=new Map();for(const _0x3d8162 of _0x1db136){const _0x5d0f42=G(_0x3d8162);_0x1af092[_0x1efa('0xe8')](_0x3d8162,_0x5d0f42),_0x481cd9[_0x1efa('0xe8')](_0x3d8162,{});}this[_0x1efa('0xd8')](Number[_0x1efa('0xff')],_0x1af092,[],_0x481cd9);}[_0x1efa('0x6a')](_0x6ea24d,_0x28ba5e){if(this[_0x1efa('0xc3')]===_0x6ea24d&&this['_lastTo']<=_0x28ba5e)this[_0x1efa('0xaf')]['size']>0x1&&this[_0x1efa('0x45')](this['_lastTo']),this[_0x1efa('0x93')](this[_0x1efa('0x17')],_0x28ba5e,!0x0);else{if(!this[_0x1efa('0xaf')]['has'](_0x6ea24d)){const _0x4c87d5=this[_0x1efa('0xd7')](_0x6ea24d);this[_0x1efa('0xcf')](_0x4c87d5,_0x6ea24d,!0x1);}this[_0x1efa('0xcf')](_0x6ea24d,_0x28ba5e,!0x0);}return this[_0x1efa('0xc3')]=_0x6ea24d,this[_0x1efa('0x17')]=_0x28ba5e,this[_0x1efa('0xa7')]();}[_0x1efa('0x74')](_0x1132cd){this['_reset'](),this[_0x1efa('0xc3')]=_0x1132cd['fromVersion'],this[_0x1efa('0x17')]=_0x1132cd[_0x1efa('0x48')];for(const _0x173676 in _0x1132cd['diffData']){const _0x1d7048=_0x1132cd['diffData'][_0x173676]['attachChange'],_0x5c4e80=_0x3876ea(_0x1132cd['diffData'][_0x173676][_0x1efa('0xd2')])||{},_0xa13af9=this['_makeModelFromViewString'](_0x1132cd[_0x1efa('0x10')][_0x173676][_0x1efa('0x87')]);_0xa13af9[_0x1efa('0x1a')]=_0x173676,_0xa13af9['_isAttached']=!_0x1d7048||!_0x1d7048[_0x1efa('0x9e')],_0xa13af9[_0x1efa('0x9e')]=()=>_0xa13af9[_0x1efa('0x39')],this[_0x1efa('0x27')][_0x1efa('0xe8')](_0x173676,_0xa13af9),this[_0x1efa('0xdd')][_0x1efa('0xe8')](_0x173676,_0x5c4e80),_0x1d7048&&this[_0x1efa('0x6e')][_0x1efa('0xe8')](_0x173676,_0x1d7048);const _0x4e8c52=this[_0x1efa('0xf6')](_0xa13af9);this[_0x1efa('0x53')][_0x1efa('0xe8')](_0x173676,_0x4e8c52);for(const [_0x2cecc4,_0x587459]of _0xa13af9[_0x1efa('0x96')]){if(!_0x2cecc4[_0x1efa('0xed')]('revision:'))continue;const _0x36c092=_0x2cecc4[_0x1efa('0xec')](':')[0x2];for(const _0x35205a of _0x587459[_0x1efa('0xc4')]({'singleCharacters':!0x0})){const _0x2822c3=this[_0x1efa('0xfb')](_0x35205a),_0x1ef58c='elementEnd'==_0x35205a[_0x1efa('0x79')]?_0x35205a[_0x1efa('0xa8')]['path'][_0x1efa('0x99')](0x0,-0x1):_0x35205a[_0x1efa('0xa8')]['path'],_0x3aad0b=_0x4e8c52[_0x1efa('0xfd')](_0x1ef58c)[_0x1efa('0x73')](_0x2822c3);this[_0x1efa('0xe5')]['set'](_0x3aad0b,{'userId':_0x36c092});}}}this[_0x1efa('0xa4')]=this[_0x1efa('0x38')];const _0x367611=[...Array(this[_0x1efa('0x38')])[_0x1efa('0xf3')]()][_0x1efa('0x99')](0x1)['filter'](_0x3e3bdb=>!this[_0x1efa('0xe5')][_0x1efa('0x8b')](_0x3e3bdb));let _0x2c6d89=0x0;const _0x1e698e=new Map();for(const _0x2ce84b in _0x1132cd[_0x1efa('0x10')]){const _0x1c5afb=_0x1132cd[_0x1efa('0x10')][_0x2ce84b][_0x1efa('0x9f')],_0x2df69f=_0x3876ea(_0x1132cd[_0x1efa('0x10')][_0x2ce84b][_0x1efa('0x94')])||{},_0x34ce7c=this['_makeModelFromViewString'](_0x1132cd[_0x1efa('0x10')][_0x2ce84b][_0x1efa('0xab')]);_0x34ce7c[_0x1efa('0x1a')]=_0x2ce84b,_0x34ce7c[_0x1efa('0x39')]=!_0x1c5afb||_0x1c5afb[_0x1efa('0x9e')],_0x34ce7c[_0x1efa('0x9e')]=()=>_0x34ce7c['_isAttached'],this[_0x1efa('0xc2')][_0x1efa('0xe8')](_0x2ce84b,_0x34ce7c),this[_0x1efa('0xe')]['set'](_0x2ce84b,_0x2df69f);const _0x20d4ac=this[_0x1efa('0xf6')](_0x34ce7c,Number[_0x1efa('0xff')]);this[_0x1efa('0x3f')]['set'](_0x2ce84b,_0x20d4ac),_0x1e698e[_0x1efa('0xe8')](_0x2ce84b,_0x34ce7c[_0x1efa('0x9e')]()?_0x2df69f:{});for(const [_0x567974,_0x104fbe]of _0x34ce7c[_0x1efa('0x96')]){if(!_0x567974['startsWith'](_0x1efa('0xb8')))continue;const _0x2857c9=_0x567974[_0x1efa('0xec')](':')[0x2];for(const _0x3a0b57 of _0x104fbe['getWalker']({'singleCharacters':!0x0})){const _0x5661ba=this['_getVidAttributeName'](_0x3a0b57),_0x20a0ae=this[_0x1efa('0x38')]++,_0x2542a5=_0x1efa('0x3a')==_0x3a0b57[_0x1efa('0x79')]?_0x3a0b57['previousPosition'][_0x1efa('0x22')]['slice'](0x0,-0x1):_0x3a0b57[_0x1efa('0xa8')][_0x1efa('0x22')];_0x20d4ac[_0x1efa('0xfd')](_0x2542a5)[_0x1efa('0x54')](_0x5661ba,_0x20a0ae),this[_0x1efa('0xe5')][_0x1efa('0xe8')](_0x20a0ae,{'userId':_0x2857c9});}}for(const _0x50ae5d of this[_0x1efa('0xe3')]['model'][_0x1efa('0x6c')](_0x34ce7c)['getWalker']({'singleCharacters':!0x0})){const _0x357886=this[_0x1efa('0xfb')](_0x50ae5d),_0x11688a=_0x1efa('0x3a')==_0x50ae5d[_0x1efa('0x79')]?_0x50ae5d[_0x1efa('0xa8')][_0x1efa('0x22')][_0x1efa('0x99')](0x0,-0x1):_0x50ae5d[_0x1efa('0xa8')][_0x1efa('0x22')],_0x58c8d0=_0x20d4ac[_0x1efa('0xfd')](_0x11688a);_0x58c8d0[_0x1efa('0x73')](_0x357886)>0x0||_0x58c8d0[_0x1efa('0x54')](_0x357886,_0x367611[_0x2c6d89++]);}for(const [_0x4dfaa4,_0x232ab6]of _0x34ce7c['markers'])_0x4dfaa4[_0x1efa('0xed')]('revision:')||this[_0x1efa('0x14')][_0x1efa('0xe8')](_0x4dfaa4,_0x232ab6);}const _0x3754c0=G(_0x1efa('0xb9'));this['_baseRoots'][_0x1efa('0xe8')](_0x1efa('0xb9'),_0x3754c0),this[_0x1efa('0x53')][_0x1efa('0xe8')]('$graveyard',this[_0x1efa('0xf6')](_0x3754c0,0x1));const _0x404e45=G('$graveyard');this['_diffRoots'][_0x1efa('0xe8')](_0x1efa('0xb9'),_0x404e45),this['_idsRoots'][_0x1efa('0xe8')](_0x1efa('0xb9'),this['_makeIdsRoot'](_0x404e45,0x1));const _0x44467e=Array['from'](this['_diffRoots'])[_0x1efa('0x7')](([_0x4fa448,_0x167c1d])=>[_0x4fa448,q(_0x167c1d)]);this[_0x1efa('0xd8')](this[_0x1efa('0x17')],_0x44467e,this['_markers'],_0x1e698e);}['_makeModelFromViewString'](_0x4dabac){const _0x239329=JSON[_0x1efa('0xba')](_0x4dabac),_0x1b29cf=this[_0x1efa('0xe3')][_0x1efa('0xf8')][_0x1efa('0x13')]['document'],_0x4fd390=new _0x394920(_0x1b29cf,_0x239329[_0x1efa('0x7')](_0x1adc9d=>J(_0x1adc9d,this['editor'])));return this['editor'][_0x1efa('0xc1')][_0x1efa('0xbe')](_0x4fd390);}[_0x1efa('0xd8')](_0x30df07,_0x18a5a5,_0x26de0c,_0x4f06cd){const _0x276742=new Map(_0x18a5a5),_0x9d8199=new Map(_0x3876ea(_0x4f06cd)),_0x5ee84a=new Map();for(const [_0x158b89,_0x3b9bb4]of _0x26de0c)_0x5ee84a['set'](_0x158b89,{'start':_0x3b9bb4['start']['clone'](),'end':_0x3b9bb4[_0x1efa('0x28')][_0x1efa('0xb1')](),'rootName':_0x3b9bb4[_0x1efa('0xe9')][_0x1efa('0x1a')]});this['_savedMetaData'][_0x1efa('0xe8')](_0x30df07,{'roots':_0x276742,'markers':_0x5ee84a,'rootsAttributes':_0x9d8199});}[_0x1efa('0x45')](_0x235dad){this['_savedMetaData']['delete'](_0x235dad);}[_0x1efa('0x35')](){this[_0x1efa('0x95')](),this['_lastFrom']=-0x1,this[_0x1efa('0x17')]=-0x1,this['_savedMetaData'][_0x1efa('0x109')](),this[_0x1efa('0x83')](this['source']);}['_reset'](){this[_0x1efa('0xe5')]['clear'](),this[_0x1efa('0x8')][_0x1efa('0x109')](),this[_0x1efa('0x6e')][_0x1efa('0x109')](),this[_0x1efa('0xc2')][_0x1efa('0x109')](),this['_diffRootsAttributes']['clear'](),this[_0x1efa('0x27')][_0x1efa('0x109')](),this[_0x1efa('0xdd')][_0x1efa('0x109')](),this['_idsRoots'][_0x1efa('0x109')](),this[_0x1efa('0x53')][_0x1efa('0x109')](),this['_markers'][_0x1efa('0x109')](),this['_revisionId']=0x1,this['_startingRevisionId']=this[_0x1efa('0x38')];}[_0x1efa('0xf6')](_0x176a8f,_0x28b105=null){let _0x342300=null;_0x176a8f['is'](_0x1efa('0xf5'))||(_0x342300=new _0x54f8f9(_0x176a8f[_0x1efa('0x62')],{'vid_start':null===_0x28b105?this[_0x1efa('0x38')]++:_0x28b105++}));const _0x2ba18f=[];for(const _0xe78192 of _0x176a8f[_0x1efa('0x46')]())if(_0xe78192['is'](_0x1efa('0x20'))){_0x2ba18f[_0x1efa('0x86')](this['_makeIdsRoot'](_0xe78192,_0x28b105));const _0x138c07=_0x2ba18f[_0x2ba18f[_0x1efa('0xac')]-0x1];null!==_0x28b105&&(_0x28b105=_0x138c07['is'](_0x1efa('0x20'),'$text')?_0x138c07[_0x1efa('0x73')](_0x1efa('0xd1'))+0x1:_0x138c07[_0x1efa('0x73')](_0x1efa('0x2e'))+0x1);}else for(let _0x590d05=0x0;_0x590d05<_0xe78192[_0x1efa('0xe0')];_0x590d05++)_0x2ba18f['push'](new _0x54f8f9(_0x1efa('0x103'),{'vid':null===_0x28b105?this['_revisionId']++:_0x28b105++}));if(_0x176a8f['is']('documentFragment')){const _0xaa83dc=G(_0x176a8f[_0x1efa('0x1a')]);return _0xaa83dc[_0x1efa('0xdb')](0x0,_0x2ba18f),_0xaa83dc;}return _0x342300['_setAttribute'](_0x1efa('0x2e'),null===_0x28b105?this[_0x1efa('0x38')]++:_0x28b105++),_0x342300[_0x1efa('0xdb')](0x0,_0x2ba18f),_0x342300;}[_0x1efa('0xcf')](_0x20b919,_0x29bc8c,_0x247001){this['_reset']();const {roots:_0x53c8f2,markers:_0x57e054,rootsAttributes:_0x378197}=this['_savedMetaData'][_0x1efa('0x77')](_0x20b919);this[_0x1efa('0x27')]=new Map(_0x53c8f2),this[_0x1efa('0xdd')]=new Map(_0x3876ea(_0x378197));for(const [_0x1a10fe,_0x35c674]of this[_0x1efa('0x27')])if(_0x1efa('0xb9')!==_0x1a10fe&&(this[_0x1efa('0xc2')][_0x1efa('0xe8')](_0x1a10fe,q(_0x35c674)),this[_0x1efa('0xe')]=new Map(_0x3876ea(_0x378197)),_0x247001)){const _0x1122ec=this[_0x1efa('0x38')];this['_idsRoots'][_0x1efa('0xe8')](_0x1a10fe,this['_makeIdsRoot'](_0x35c674)),this[_0x1efa('0x53')][_0x1efa('0xe8')](_0x1a10fe,this['_makeIdsRoot'](_0x35c674,_0x1122ec));}this[_0x1efa('0xa4')]=this['_revisionId'],this[_0x1efa('0xc2')][_0x1efa('0xe8')](_0x1efa('0xb9'),q(this[_0x1efa('0x27')][_0x1efa('0x77')](_0x1efa('0xb9')))),_0x247001&&this[_0x1efa('0x3f')][_0x1efa('0xe8')](_0x1efa('0xb9'),this['_makeIdsRoot'](this[_0x1efa('0x27')][_0x1efa('0x77')](_0x1efa('0xb9'))));for(const [_0x54dd07,_0x13f295]of _0x57e054){const _0x3b8598=this[_0x1efa('0x27')][_0x1efa('0x77')](_0x13f295[_0x1efa('0x1a')]),_0x212d04=this['_diffRoots'][_0x1efa('0x77')](_0x13f295[_0x1efa('0x1a')]),_0x1c0b89=new _0x4bae08(this[_0x1efa('0xc9')](_0x13f295[_0x1efa('0x92')],_0x3b8598),this[_0x1efa('0xc9')](_0x13f295[_0x1efa('0x28')],_0x3b8598)),_0x25ac59=this[_0x1efa('0xad')](_0x1c0b89,_0x212d04);_0x3b8598['markers'][_0x1efa('0xe8')](_0x54dd07,_0x1c0b89),this[_0x1efa('0x14')][_0x1efa('0xe8')](_0x54dd07,_0x25ac59);}this[_0x1efa('0x93')](_0x20b919,_0x29bc8c,_0x247001);}[_0x1efa('0x93')](_0x405cf8,_0x428f15,_0x26fe97){for(const _0x9a092d of this[_0x1efa('0x56')][_0x1efa('0x6')](_0x405cf8,_0x428f15))this[_0x1efa('0xee')](_0x9a092d,_0x26fe97);for(const _0x218c24 of this['_diffRoots'][_0x1efa('0x101')]())_0x218c24[_0x1efa('0x96')][_0x1efa('0x109')]();for(const [_0x2a2fa7,_0x4cca66]of this[_0x1efa('0x14')]){this[_0x1efa('0xc2')][_0x1efa('0x77')](_0x4cca66[_0x1efa('0xe9')][_0x1efa('0x1a')])['markers'][_0x1efa('0xe8')](_0x2a2fa7,_0x4cca66['clone']());}const _0x3ca374=new Map(),_0x186fa9=new Map();for(const [_0x1b2353,_0x2b7444]of this[_0x1efa('0xc2')])_0x3ca374[_0x1efa('0xe8')](_0x1b2353,q(_0x2b7444)),_0x186fa9['set'](_0x1b2353,this[_0x1efa('0xe')][_0x1efa('0x77')](_0x1b2353));this['_saveMetaData'](_0x428f15,_0x3ca374,this['_markers'],_0x186fa9);}['_getPreviousFrom'](_0x52c6dc){const _0xa15e2=Array[_0x1efa('0x108')](this['_savedMetaData'][_0x1efa('0xf3')]());_0xa15e2[_0x1efa('0x84')]((_0xbc212a,_0x17120d)=>_0xbc212a-_0x17120d),_0xa15e2[_0x1efa('0xeb')]();for(const _0x4db886 of _0xa15e2)if(_0x4db886<_0x52c6dc)return _0x4db886;return Number['NEGATIVE_INFINITY'];}[_0x1efa('0xc')](_0x4d2161,_0x120d85){const _0x5a901d=Array[_0x1efa('0x108')](_0x120d85['markers'])[_0x1efa('0x7')](([_0x1d07b1,_0x9f636a])=>[_0x1d07b1,this[_0x1efa('0xad')](_0x9f636a,_0x4d2161)]);_0x4d2161[_0x1efa('0x96')]=new Map(_0x5a901d);}[_0x1efa('0x2')](_0x50dd49){for(const _0x4edcb7 of this[_0x1efa('0x14')][_0x1efa('0x101')]()){const _0x27c7a3=_0x4edcb7[_0x1efa('0x7c')](_0x50dd49),_0x488404=_0x4bae08[_0x1efa('0x100')](_0x27c7a3);_0x4edcb7[_0x1efa('0x92')]=_0x488404['start'],_0x4edcb7[_0x1efa('0x28')]=_0x488404[_0x1efa('0x28')];}}['_handleOperation'](_0x13a85f,_0x3d7839){if(_0x1efa('0x2d')==_0x13a85f[_0x1efa('0x79')]||_0x1efa('0x43')==_0x13a85f[_0x1efa('0x79')])return void this[_0x1efa('0x4d')](_0x13a85f,_0x3d7839);if('insert'==_0x13a85f['type']){const _0x3970f6=_0x13a85f[_0x1efa('0x9b')][_0x1efa('0xe9')][_0x1efa('0x1a')];this[_0x1efa('0xc2')][_0x1efa('0x8b')](_0x3970f6)||(this[_0x1efa('0xc2')][_0x1efa('0xe8')](_0x3970f6,G(_0x3970f6,!0x0)),this[_0x1efa('0xe')]['set'](_0x3970f6,{}),_0x3d7839&&this['_idsRoots'][_0x1efa('0xe8')](_0x3970f6,G(_0x3970f6,!0x0)));}else{if(_0x1efa('0x72')==_0x13a85f[_0x1efa('0x79')]||_0x1efa('0xd5')==_0x13a85f['type']||_0x1efa('0x66')==_0x13a85f[_0x1efa('0x79')])return void this['_handleRootAttributeOperation'](_0x13a85f);}const _0x9f3e41=this[_0x1efa('0xf2')](_0x13a85f,this[_0x1efa('0xc2')]);if(_0x1efa('0x1c')!==_0x13a85f['type']&&(_0x9f3e41[_0x1efa('0x30')](),this[_0x1efa('0x2')](_0x9f3e41)),_0x3d7839)switch(_0x9f3e41[_0x1efa('0x79')]){case _0x1efa('0x81'):this[_0x1efa('0x47')](_0x13a85f);break;case _0x1efa('0xd0'):case _0x1efa('0x34'):case _0x1efa('0xfc'):this[_0x1efa('0x8d')](_0x13a85f);break;case _0x1efa('0x59'):this['_handleMergeOperation'](_0x13a85f);break;case'split':this[_0x1efa('0xb0')](_0x13a85f);break;case _0x1efa('0x1c'):this[_0x1efa('0x4e')](_0x13a85f);}}['_cloneOperation'](_0x205b62,_0x5b056e){const _0x6ca352=_0x205b62[_0x1efa('0xb1')]();return _0x6ca352[_0x1efa('0xa')]=_0x205b62[_0x1efa('0xa')],this[_0x1efa('0x1f')](_0x6ca352,_0x5b056e),_0x6ca352;}[_0x1efa('0x5e')](_0xaba1ff){return _0xaba1ff[_0x1efa('0x7')](_0x3855bb=>{const _0x5bf6d7=this['_getVidAttributeName'](_0x3855bb);return Number(_0x3855bb[_0x1efa('0x82')]['getAttribute'](_0x5bf6d7));});}[_0x1efa('0xb')](_0x2a8292,_0x1f6b87){if(_0x2a8292['is'](_0x1efa('0x20'),'$text'))_0x1f6b87[_0x1efa('0x86')]({'item':_0x2a8292,'type':'text'});else{_0x2a8292['is'](_0x1efa('0x20'))&&_0x1f6b87[_0x1efa('0x86')]({'item':_0x2a8292,'type':'elementStart'});for(const _0x81de46 of _0x2a8292['getChildren']())this[_0x1efa('0xb')](_0x81de46,_0x1f6b87);_0x2a8292['is'](_0x1efa('0x20'))&&_0x1f6b87['push']({'item':_0x2a8292,'type':'elementEnd'});}return _0x1f6b87;}[_0x1efa('0xa7')](){const _0x5af435=new Map(this[_0x1efa('0xe5')]),_0x1e2f28=new Map(_0x5af435),_0x3baa9d=new Map(),_0x455bf8={'insertions':{},'deletions':{}},_0x355556={'insertions':{},'deletions':{}},_0x2dda18=new Map(),_0x30cb9b=new Set([...this[_0x1efa('0x27')]['keys'](),...this[_0x1efa('0xc2')][_0x1efa('0xf3')]()]);_0x30cb9b['delete'](_0x1efa('0xb9'));for(const _0x276c68 of _0x30cb9b){const _0x3c94fd=this[_0x1efa('0xc2')][_0x1efa('0x77')](_0x276c68)||G(_0x276c68,!0x1),_0x1de2f3=this['_baseRoots'][_0x1efa('0x77')](_0x276c68)||G(_0x276c68,!0x1);_0x3c94fd[_0x1efa('0x9e')]()||_0x1de2f3['isAttached']()?(_0x455bf8[_0x1efa('0xab')][_0x276c68]=q(_0x3c94fd),_0x455bf8[_0x1efa('0x87')][_0x276c68]=q(_0x1de2f3),this[_0x1efa('0xc')](_0x455bf8[_0x1efa('0x87')][_0x276c68],_0x1de2f3),this[_0x1efa('0xc')](_0x455bf8[_0x1efa('0xab')][_0x276c68],_0x3c94fd),_0x355556['insertions'][_0x276c68]=this['_generateTape'](this[_0x1efa('0x3f')][_0x1efa('0x77')](_0x276c68),[]),_0x355556[_0x1efa('0x87')][_0x276c68]=this[_0x1efa('0xb')](this[_0x1efa('0x53')]['get'](_0x276c68)||G(_0x276c68,!0x1),[])):_0x30cb9b['delete'](_0x276c68);}for(const _0x4e3aeb of _0x30cb9b){const _0x4c9bff=_0x355556[_0x1efa('0xab')][_0x4e3aeb];for(const _0x3d3109 of _0x4c9bff){const _0x516b57=this['_getVidAttributeName'](_0x3d3109),_0x525dce=_0x3d3109['item'][_0x1efa('0x73')](_0x516b57);_0x1e2f28['delete'](_0x525dce),_0x525dce>=this['_startingRevisionId']&&_0x3baa9d['set'](_0x525dce,_0x5af435[_0x1efa('0x77')](_0x525dce));}}for(const _0x5ed43a of _0x30cb9b){const _0x11f861=_0x355556[_0x1efa('0xab')][_0x5ed43a],_0x571152=this[_0x1efa('0x5e')](_0x355556[_0x1efa('0x87')][_0x5ed43a]);let _0x3f7409=0x0;for(const _0x5d4011 of _0x11f861){const _0x4b27ce=this['_getVidAttributeName'](_0x5d4011),_0x3ea9c8=_0x5d4011['item']['getAttribute'](_0x4b27ce);if(!_0x3baa9d[_0x1efa('0x8b')](_0x3ea9c8)&&!_0x2dda18['has'](_0x3ea9c8)){if(_0x1e2f28[_0x1efa('0x8b')](_0x3ea9c8))_0x3f7409++;else{if(_0x3ea9c8!=_0x571152[_0x3f7409]){const _0x49936d=_0x5af435[_0x1efa('0x77')](_0x3ea9c8)||_0x5af435['get'](_0x571152[_0x3f7409]);for(;_0x3ea9c8!=_0x571152[_0x3f7409];)_0x1e2f28[_0x1efa('0x8b')](_0x571152[_0x3f7409])||(_0x2dda18['set'](_0x571152[_0x3f7409],_0x49936d),_0x5af435[_0x1efa('0xe8')](_0x571152[_0x3f7409],_0x49936d)),_0x3f7409++;}_0x3f7409++;}}}}for(const _0x609706 of _0x30cb9b){const _0xd57474=_0x355556[_0x1efa('0xab')][_0x609706];for(const _0x2a79c3 of _0xd57474){const _0x393f29=this[_0x1efa('0xfb')](_0x2a79c3),_0x4938bc=_0x2a79c3[_0x1efa('0x82')][_0x1efa('0x73')](_0x393f29);if(_0x2dda18[_0x1efa('0x8b')](_0x4938bc)){const _0x200a81=_0x2dda18['get'](_0x4938bc);_0x1e2f28[_0x1efa('0x8b')](_0x4938bc)||_0x1e2f28[_0x1efa('0xe8')](_0x4938bc,{..._0x200a81}),_0x3baa9d[_0x1efa('0xe8')](_0x4938bc,{..._0x200a81});}}}for(const _0x5639c2 of _0x1e2f28['keys']())_0x5639c2>=this['_startingRevisionId']&&_0x1e2f28[_0x1efa('0xc0')](_0x5639c2);const _0x2bf4e0=new Map();for(const _0x4b7e11 of _0x30cb9b){let _0x15d6f1=_0x355556[_0x1efa('0xab')][_0x4b7e11];for(const _0x1d30e3 of _0x15d6f1)if(_0x1d30e3[_0x1efa('0x82')]['is'](_0x1efa('0x20'),_0x1efa('0x1d'))){const _0x11cb86=this['_getVidAttributeName'](_0x1d30e3),_0x310398=_0x1d30e3[_0x1efa('0x82')][_0x1efa('0x73')](_0x11cb86);if(_0x3baa9d[_0x1efa('0x8b')](_0x310398)){const _0x248656=_0x1d30e3[_0x1efa('0x82')][_0x1efa('0x76')][_0x1efa('0x76')][_0x1efa('0x73')]('vid_start'),_0x410b87=_0x2bf4e0[_0x1efa('0x77')](_0x248656)||new Set();_0x410b87[_0x1efa('0x8a')](_0x3baa9d[_0x1efa('0x77')](_0x310398)[_0x1efa('0x8e')]),_0x2bf4e0['set'](_0x248656,_0x410b87);}}_0x15d6f1=_0x355556['deletions'][_0x4b7e11];for(const _0x1af55d of _0x15d6f1)if(_0x1af55d[_0x1efa('0x82')]['is']('element',_0x1efa('0x1d'))){const _0x24887c=this['_getVidAttributeName'](_0x1af55d),_0x215522=_0x1af55d[_0x1efa('0x82')][_0x1efa('0x73')](_0x24887c);if(_0x1e2f28['has'](_0x215522)){const _0x50b6e3=_0x1af55d['item'][_0x1efa('0x76')][_0x1efa('0x76')][_0x1efa('0x73')](_0x1efa('0x67')),_0x3d97c6=_0x2bf4e0[_0x1efa('0x77')](_0x50b6e3)||new Set();_0x3d97c6[_0x1efa('0x8a')](_0x1e2f28[_0x1efa('0x77')](_0x215522)[_0x1efa('0x8e')]),_0x2bf4e0[_0x1efa('0xe8')](_0x50b6e3,_0x3d97c6);}}for(const _0x1b2c71 of _0x2bf4e0[_0x1efa('0xf3')]())(_0x3baa9d[_0x1efa('0x8b')](_0x1b2c71)||_0x1e2f28['has'](_0x1b2c71))&&_0x2bf4e0['delete'](_0x1b2c71);}for(const _0x219a2d of _0x30cb9b){const _0x59ca30=_0x355556[_0x1efa('0xab')][_0x219a2d];let _0x371a42=null,_0x43aaa9=null;for(const _0x171984 of _0x59ca30){const _0x90f8f6=this[_0x1efa('0xfb')](_0x171984),_0x7ceb41=_0x171984[_0x1efa('0x82')][_0x1efa('0x73')](_0x90f8f6),_0x57a00b=_0x2bf4e0[_0x1efa('0x77')](_0x7ceb41);_0x57a00b&&_0x1efa('0x9c')==_0x171984['type']&&(_0x371a42=Array[_0x1efa('0x108')](_0x57a00b)[0x0],_0x43aaa9=_0x171984[_0x1efa('0x82')][_0x1efa('0x73')](_0x1efa('0x2e'))),_0x371a42&&(_0x1e2f28[_0x1efa('0xe8')](_0x7ceb41,{'userId':_0x371a42}),_0x3baa9d['set'](_0x7ceb41,{'userId':_0x371a42})),_0x7ceb41==_0x43aaa9&&(_0x371a42=null,_0x43aaa9=null);}}const _0x37d28b={},_0x3427e9=new Set();for(const _0x17d149 of _0x30cb9b){const _0x47808f=_0x455bf8[_0x1efa('0x87')][_0x17d149],_0xa8db50=_0x455bf8[_0x1efa('0xab')][_0x17d149];for(const {userId:_0x83bdd0}of this['_touchedMarkers']['values']())null!==_0x83bdd0&&_0x3427e9[_0x1efa('0x8a')](_0x83bdd0);for(const {userId:_0xfb7bcc}of this['_touchedRoots'][_0x1efa('0x101')]())null!==_0xfb7bcc&&_0x3427e9[_0x1efa('0x8a')](_0xfb7bcc);this[_0x1efa('0x44')](_0xa8db50,_0x355556['insertions'][_0x17d149],_0x3baa9d,_0x1efa('0x7e'),_0x3427e9),this[_0x1efa('0x44')](_0x47808f,_0x355556[_0x1efa('0x87')][_0x17d149],_0x1e2f28,_0x1efa('0x32'),_0x3427e9),_0x37d28b[_0x17d149]={'insertions':this[_0x1efa('0xce')](_0xa8db50),'deletions':this['_prepareViewToSave'](_0x47808f),'attachChange':this[_0x1efa('0x6e')][_0x1efa('0x77')](_0x17d149)||null,'attributesBefore':_0x3876ea(this['_baseRootsAttributes'][_0x1efa('0x77')](_0x17d149))||{},'attributesAfter':_0x3876ea(this['_diffRootsAttributes'][_0x1efa('0x77')](_0x17d149))};}return{'diffData':_0x37d28b,'authorsIds':Array[_0x1efa('0x108')](_0x3427e9)};}[_0x1efa('0x4b')](_0x5e229b){for(const [,_0x272d08]of _0x5e229b[_0x1efa('0x96')]){const _0x2db30b=_0x272d08[_0x1efa('0x92')][_0x1efa('0xe6')]()['filter'](_0x302a29=>_0x1efa('0x1d')==_0x302a29[_0x1efa('0x62')]);for(const _0x34f3a9 of _0x2db30b)0x1==_0x34f3a9['childCount']&&_0x34f3a9['getChild'](0x0)['is'](_0x1efa('0x20'),_0x1efa('0xea'))&&_0x34f3a9[_0x1efa('0x49')](0x0)[_0x1efa('0x54')](_0x1efa('0xf0'),!0x0);}}[_0x1efa('0xce')](_0x3571ea){this[_0x1efa('0x4b')](_0x3571ea);const _0xbb2816=this[_0x1efa('0xe3')][_0x1efa('0xc1')]['toView'](_0x3571ea,{}),_0x213f5f=Array[_0x1efa('0x108')](_0xbb2816[_0x1efa('0x46')]())['map'](_0x591778=>this[_0x1efa('0xca')](_0x591778));return JSON['stringify'](_0x213f5f);}[_0x1efa('0xca')](_0x3c034b){if(_0x3c034b['is'](_0x1efa('0x103')))return _0x3c034b[_0x1efa('0xc1')];{const _0x4bf087=_0x3c034b;return{'type':Object[_0x1efa('0xf3')](B)[_0x1efa('0x3d')](_0x20ae17=>_0x3c034b instanceof B[_0x20ae17]),'name':_0x4bf087[_0x1efa('0x62')],'attributes':Array[_0x1efa('0x108')](_0x4bf087['getAttributes']()),'children':Array['from'](_0x4bf087['getChildren']())['map'](_0x39d9fb=>this[_0x1efa('0xca')](_0x39d9fb))};}}['_markChanges'](_0x40a5b5,_0x3c68e0,_0x3b4ce3,_0x2f7944,_0x564e42){let _0x60c3a3=null,_0x222a4a=null,_0x1a3992=0x0;const _0x5e4cef=this[_0x1efa('0xe3')]['model'];for(let _0x110af8=0x0;_0x110af8<_0x3c68e0[_0x1efa('0xac')];_0x110af8++){const _0x2453fb=this['_getVidAttributeName'](_0x3c68e0[_0x110af8]),_0x2b10e2=_0x3c68e0[_0x110af8]['item']['getAttribute'](_0x2453fb),_0x50a88d=_0x3b4ce3['get'](_0x2b10e2),_0x3db3e0=_0x110af8==_0x3c68e0['length']-0x1;(!_0x60c3a3&&_0x50a88d&&(_0x60c3a3=_0x50a88d,_0x222a4a=_0x3c68e0[_0x110af8]),_0x60c3a3&&(!_0x50a88d||_0x50a88d['userId']!=_0x60c3a3[_0x1efa('0x8e')]))&&(_0x44b9bb(_0x50a88d,L(_0x222a4a,_0x40a5b5,_0x5e4cef),L(_0x3c68e0[_0x110af8],_0x40a5b5,_0x5e4cef)),_0x60c3a3=_0x50a88d||null,_0x222a4a=_0x50a88d?_0x3c68e0[_0x110af8]:null),_0x60c3a3&&_0x3db3e0&&_0x44b9bb(_0x50a88d,L(_0x222a4a,_0x40a5b5,_0x5e4cef),W(_0x3c68e0[_0x110af8],_0x40a5b5,_0x5e4cef));}function _0x44b9bb(_0x263bc7,_0x1ff90a,_0x3862e0){const _0x5a3e2e=_0x60c3a3[_0x1efa('0x8e')],_0xa683d8=_0x1efa('0xb8')+_0x2f7944+':'+_0x5a3e2e+':'+_0x1a3992++,_0x16be74=_0x5e4cef['createRange'](_0x1ff90a,_0x3862e0);_0x40a5b5[_0x1efa('0x96')][_0x1efa('0xe8')](_0xa683d8,_0x16be74),null!==_0x5a3e2e&&_0x564e42[_0x1efa('0x8a')](_0x5a3e2e);}}['_getVidAttributeName'](_0x93abfe){switch(_0x93abfe[_0x1efa('0x79')]){case _0x1efa('0x9c'):return'vid_start';case _0x1efa('0x3a'):return _0x1efa('0x2e');default:return _0x1efa('0xd1');}}[_0x1efa('0x1f')](_0x59e946,_0x53c83b){_0x59e946['baseVersion']=null;for(const _0x48bb13 in _0x59e946){const _0x3df4cc=_0x59e946[_0x48bb13];if(_0x3df4cc instanceof _0x40ca33){const _0x5b3029=_0x53c83b['get'](_0x3df4cc[_0x1efa('0xe9')]['rootName']);_0x59e946[_0x48bb13]=this[_0x1efa('0xc9')](_0x3df4cc,_0x5b3029);}if(_0x3df4cc instanceof _0x4bae08){const _0x71f5d8=_0x53c83b[_0x1efa('0x77')](_0x3df4cc[_0x1efa('0xe9')][_0x1efa('0x1a')]);_0x59e946[_0x48bb13]=this['_fixRange'](_0x3df4cc,_0x71f5d8);}_0x1efa('0xe9')===_0x48bb13&&(_0x59e946[_0x1efa('0xe9')]=_0x53c83b[_0x1efa('0x77')](_0x59e946[_0x1efa('0xe9')][_0x1efa('0x1a')]));}}[_0x1efa('0xad')](_0x4cc756,_0x50fe8b){return this[_0x1efa('0xe3')]['model']['createRange'](this[_0x1efa('0xc9')](_0x4cc756[_0x1efa('0x92')],_0x50fe8b),this[_0x1efa('0xc9')](_0x4cc756[_0x1efa('0x28')],_0x50fe8b));}['_fixPosition'](_0x4c6bb8,_0x84ec4f){return this['editor']['model']['createPositionFromPath'](_0x84ec4f,_0x4c6bb8['path'],_0x4c6bb8[_0x1efa('0x5b')]);}[_0x1efa('0x47')](_0x37d3d6){const _0x1da52c=this[_0x1efa('0x3f')][_0x1efa('0x77')](_0x37d3d6[_0x1efa('0x9b')][_0x1efa('0xe9')][_0x1efa('0x1a')]),_0x24b157=this[_0x1efa('0xc9')](_0x37d3d6[_0x1efa('0x9b')],_0x1da52c),_0x59bd65=null===_0x37d3d6[_0x1efa('0xa')]?null:_0x37d3d6[_0x1efa('0xa')]||this[_0x1efa('0xe3')][_0x1efa('0x26')]['get']('Users')['me']['id'],_0x875467=_0x24b157['parent'],_0x3940f8=this['_revisionId'],_0x4aeabc=[];for(const _0x589d0f of _0x37d3d6[_0x1efa('0x70')])if(_0x589d0f['is'](_0x1efa('0x20')))_0x4aeabc[_0x1efa('0x86')](this['_makeIdsRoot'](_0x589d0f));else for(let _0xd76e38=0x0;_0xd76e38<_0x589d0f[_0x1efa('0xe0')];_0xd76e38++)_0x4aeabc[_0x1efa('0x86')](new _0x54f8f9('$text',{'vid':this[_0x1efa('0x38')]++}));const _0x1d3059=this['_revisionId'];for(let _0x1a8661=_0x3940f8;_0x1a8661<_0x1d3059;_0x1a8661++)this[_0x1efa('0xe5')]['set'](_0x1a8661,{'userId':_0x59bd65});_0x875467[_0x1efa('0xdb')](_0x24b157[_0x1efa('0xa2')],_0x4aeabc);}['_handleMoveOperation'](_0x3b80e1){(_0x3b80e1=this[_0x1efa('0xf2')](_0x3b80e1,this[_0x1efa('0x3f')]))['_execute']();const _0x86ca50=null===_0x3b80e1[_0x1efa('0xa')]?null:_0x3b80e1[_0x1efa('0xa')]||this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')]('Users')['me']['id'],_0x27c7b5=_0x3b80e1[_0x1efa('0xe7')](),_0x53a6ed=_0x27c7b5[_0x1efa('0x76')],_0x5b1593=_0x27c7b5['offset'];!function _0x35eaa1(_0x590ee6,_0x27e555,_0x16642d,_0x2e22dd){for(let _0x4f2b51=_0x16642d;_0x4f2b51<_0x2e22dd;_0x4f2b51++){const _0xa054cc=_0x27e555[_0x1efa('0x49')](_0x4f2b51);_0xa054cc['is'](_0x1efa('0x20'),'$text')?_0x590ee6['set'](_0xa054cc['getAttribute'](_0x1efa('0xd1')),{'userId':_0x86ca50}):(_0x590ee6[_0x1efa('0xe8')](_0xa054cc[_0x1efa('0x73')](_0x1efa('0x67')),{'userId':_0x86ca50}),_0x35eaa1(_0x590ee6,_0xa054cc,0x0,_0xa054cc[_0x1efa('0xfa')]),_0x590ee6['set'](_0xa054cc[_0x1efa('0x73')](_0x1efa('0x2e')),{'userId':_0x86ca50}));}}(this[_0x1efa('0xe5')],_0x53a6ed,_0x5b1593,_0x5b1593+_0x3b80e1[_0x1efa('0x21')]);}[_0x1efa('0x4f')](_0x36bfee){const _0x45c95f=null===(_0x36bfee=this[_0x1efa('0xf2')](_0x36bfee,this['_idsRoots']))[_0x1efa('0xa')]?null:_0x36bfee[_0x1efa('0xa')]||this[_0x1efa('0xe3')]['plugins']['get']('Users')['me']['id'],_0x2a1308=_0x36bfee[_0x1efa('0xf')][_0x1efa('0x76')],_0x51730d=_0x36bfee[_0x1efa('0x60')]['parent'],_0x32f150=_0x2a1308['getAttribute'](_0x1efa('0x2e')),_0x1731b8=_0x51730d['getAttribute'](_0x1efa('0x67'));_0x2a1308['_setAttribute'](_0x1efa('0x2e'),_0x51730d[_0x1efa('0x73')](_0x1efa('0x2e'))),_0x51730d[_0x1efa('0x54')](_0x1efa('0x2e'),_0x32f150),this[_0x1efa('0xe5')][_0x1efa('0xe8')](_0x1731b8,{'userId':_0x45c95f}),this['_touched']['set'](_0x32f150,{'userId':_0x45c95f}),_0x36bfee['_execute']();}[_0x1efa('0xb0')](_0x40df1d){const _0x5e9366=null===(_0x40df1d=this[_0x1efa('0xf2')](_0x40df1d,this['_idsRoots']))[_0x1efa('0xa')]?null:_0x40df1d[_0x1efa('0xa')]||this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x61'))['me']['id'],_0x1b6c7c=_0x40df1d[_0x1efa('0xe2')],_0x2e3278=_0x40df1d[_0x1efa('0x36')]['parent'];_0x40df1d[_0x1efa('0x30')]();const _0x2356be=_0x2e3278['getAttribute'](_0x1efa('0x2e')),_0x4a7731=_0x40df1d[_0x1efa('0x2b')]['nodeAfter'];if(_0x1b6c7c){const _0x29ef6f=_0x4a7731[_0x1efa('0x73')](_0x1efa('0x2e')),_0x51e00a=_0x2e3278[_0x1efa('0x73')](_0x1efa('0x2e'));_0x2e3278[_0x1efa('0x54')](_0x1efa('0x2e'),_0x29ef6f),_0x4a7731['_setAttribute']('vid_end',_0x51e00a),this['_touched'][_0x1efa('0xe8')](_0x2e3278[_0x1efa('0x73')](_0x1efa('0x2e')),{'userId':_0x5e9366}),this[_0x1efa('0xe5')]['set'](_0x4a7731[_0x1efa('0x73')](_0x1efa('0x67')),{'userId':_0x5e9366});}else{const _0x199ac1=this[_0x1efa('0x38')]++,_0x353096=this[_0x1efa('0x38')]++;_0x2e3278[_0x1efa('0x54')](_0x1efa('0x2e'),_0x199ac1),_0x4a7731[_0x1efa('0x54')](_0x1efa('0x67'),_0x353096),_0x4a7731[_0x1efa('0x54')](_0x1efa('0x2e'),_0x2356be),this[_0x1efa('0xe5')][_0x1efa('0xe8')](_0x199ac1,{'userId':_0x5e9366}),this['_touched'][_0x1efa('0xe8')](_0x353096,{'userId':_0x5e9366});}}[_0x1efa('0x4e')](_0x44fcef){if(!_0x44fcef[_0x1efa('0x8f')])return;const _0x32d018=(_0x44fcef=this[_0x1efa('0xf2')](_0x44fcef,this[_0x1efa('0xc2')]))['oldRange']?_0x44fcef[_0x1efa('0xd')][_0x1efa('0xe9')]:null,_0x58ab5d=_0x44fcef[_0x1efa('0xbc')]?_0x44fcef[_0x1efa('0xbc')][_0x1efa('0xe9')]:null;_0x32d018&&this[_0x1efa('0x14')]['delete'](_0x44fcef[_0x1efa('0x62')]),_0x58ab5d&&this['_markers'][_0x1efa('0xe8')](_0x44fcef['name'],_0x44fcef[_0x1efa('0xbc')]['clone']());const _0x54c0c7=null===_0x44fcef[_0x1efa('0xa')]?null:_0x44fcef[_0x1efa('0xa')]||this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x61'))['me']['id'],_0xb7ad6d=_0x44fcef[_0x1efa('0x62')];if(!this['_touchedMarkers']['has'](_0xb7ad6d))return void this[_0x1efa('0x8')]['set'](_0xb7ad6d,{'range':_0x44fcef[_0x1efa('0xd')],'userId':_0x54c0c7});const _0x394f39=this['_touchedMarkers'][_0x1efa('0x77')](_0xb7ad6d),_0x2e4b1a=_0x394f39[_0x1efa('0x85')],_0x220783=_0x44fcef[_0x1efa('0xbc')];null==_0x2e4b1a&&null==_0x220783||_0x2e4b1a&&_0x220783&&_0x2e4b1a[_0x1efa('0x41')](_0x220783)?this[_0x1efa('0x8')]['delete'](_0x44fcef[_0x1efa('0x62')]):_0x394f39[_0x1efa('0x8e')]=_0x54c0c7;}['_handleRootOperation'](_0x23c7cc,_0x465fec){this[_0x1efa('0xc2')][_0x1efa('0x8b')](_0x23c7cc[_0x1efa('0x1a')])?this[_0x1efa('0xc2')]['get'](_0x23c7cc['rootName'])[_0x1efa('0x39')]=_0x23c7cc[_0x1efa('0x16')]:(this[_0x1efa('0xc2')][_0x1efa('0xe8')](_0x23c7cc[_0x1efa('0x1a')],G(_0x23c7cc[_0x1efa('0x1a')],!0x0)),this[_0x1efa('0xe')][_0x1efa('0xe8')](_0x23c7cc[_0x1efa('0x1a')],{}),_0x465fec&&this['_idsRoots'][_0x1efa('0xe8')](_0x23c7cc['rootName'],G(_0x23c7cc[_0x1efa('0x1a')],!0x0)));const _0x54a7ac=null===_0x23c7cc[_0x1efa('0xa')]?null:_0x23c7cc[_0x1efa('0xa')]||this[_0x1efa('0xe3')]['plugins']['get'](_0x1efa('0x61'))['me']['id'],_0x4b8059=this['_touchedRoots'][_0x1efa('0x77')](_0x23c7cc[_0x1efa('0x1a')]);_0x4b8059&&_0x4b8059[_0x1efa('0x8e')]===_0x54a7ac?this[_0x1efa('0x6e')]['delete'](_0x23c7cc['rootName']):this[_0x1efa('0x6e')]['set'](_0x23c7cc['rootName'],{'userId':_0x54a7ac,'isAttached':_0x23c7cc[_0x1efa('0x16')]});}[_0x1efa('0xc5')](_0x5967d6){const _0x3cd8ee=this[_0x1efa('0xe')]['get'](_0x5967d6[_0x1efa('0xe9')][_0x1efa('0x1a')]);null===_0x5967d6[_0x1efa('0x18')]?delete _0x3cd8ee[_0x5967d6[_0x1efa('0xe4')]]:_0x3cd8ee[_0x5967d6[_0x1efa('0xe4')]]=_0x5967d6['newValue'];}}function q(_0x2556a6){const _0x5159ad=G(_0x2556a6[_0x1efa('0x1a')],_0x2556a6['isAttached']());for(const _0x16ef16 of _0x2556a6[_0x1efa('0x46')]()){const _0x4f6dad=_0x16ef16[_0x1efa('0x42')](!0x0);_0x5159ad[_0x1efa('0x11')](_0x4f6dad);}return _0x5159ad;}function G(_0x33ab74,_0x2d751f=!0x0){const _0xcc1d6d=new _0x638994();return _0xcc1d6d[_0x1efa('0x1a')]=_0x33ab74,_0xcc1d6d['_isAttached']=_0x2d751f,_0xcc1d6d[_0x1efa('0x9e')]=()=>_0xcc1d6d['_isAttached'],_0xcc1d6d;}function L(_0x31c186,_0x385715,_0x266cbf){const _0x389698=_0x1efa('0x3a')==_0x31c186[_0x1efa('0x79')]?_0x266cbf[_0x1efa('0xd4')](_0x31c186[_0x1efa('0x82')],_0x1efa('0x28')):_0x266cbf[_0x1efa('0xb2')](_0x31c186[_0x1efa('0x82')]);return _0x266cbf['createPositionFromPath'](_0x385715,_0x389698[_0x1efa('0x22')],_0x389698[_0x1efa('0x5b')]);}function W(_0x37ab9e,_0x38dfd9,_0x1059c7){const _0x2e3f15='elementStart'==_0x37ab9e[_0x1efa('0x79')]?_0x1059c7['createPositionAt'](_0x37ab9e[_0x1efa('0x82')],0x0):_0x1059c7['createPositionAfter'](_0x37ab9e[_0x1efa('0x82')]);return _0x1059c7[_0x1efa('0x64')](_0x38dfd9,_0x2e3f15[_0x1efa('0x22')],_0x2e3f15[_0x1efa('0x5b')]);}
|
|
23
|
+
const _0x3a8a=['_update','_copyMarkers','_handleMergeOperation','_handleInsertOperation','values','_handleMoveOperation','_execute','createRevision','revision-end','_replaceEditorDataWithRevisionData','_findInsertionIndex','getMovedRangeStart','toVersion','getAttributes','_baseRoots','removeRootAttribute','newValue','then','reInit','getRevisionDocumentData','vid_start','history','baseVersion','vid_end','addRevisionData','text','_fixPosition','rootName','split','getRootNames','resolve','insertionPosition','getNodeByPath','getWalker','_saveMetaData','_removePendingAction','parent','_getState','markers','slice','createPositionBefore','$text','newRange','graveyardPosition','getRange','toData','position','PendingActions','detachRoot','oldRange','_handleOperation','NEGATIVE_INFINITY','forEach','init','pluginName','item','_lastFrom','_loadedStateData','keys','elementStart','element','_applyOperations','_baseRootsAttributes','config','Empty\x20document','initialData','dataDowncast','_revisionId','set','dataToMarker','_diffRoots','_touchedRoots','reverse','getIndex','loadState','Users','fromEntries','hasContent','useFillerType','_bufferUpdate','childCount','RevisionsRepository','createPositionAt','push','insert','_calculateMetaData','revision:','repository','_idsRoots','_revisionDataBuilder','type','data-revision-','createPositionFromPath','_getPreviousFrom','editing','marked','keepParagraph','_startingRevisionId','offsetSize','_cloneOperation','revision','_isInit','targetPosition','some','_createInitialRevision','stringify','conversion','data','updateRevisions','end','revisionHistory.resumeUnsavedRevision','_bufferedUpdates','size','_pendingAction','update','_getViewJson','document','elementEnd','getTransformedByOperation','$graveyard','name','adapter','_insertChild','add','diffData','getRevisions','_loadState','finally','marker','nodes','setRevisionData','version','getData','authorsIds','currentRevision','PENDING_ACTION_REVISION_HISTORY','tableCell','sort','collaboration.channelId','_startingVersion','addRoot','getCurrentRevisionId','_loadRevisionData','toModel','insertions','processor','attachChange','clear','paragraph','reinsert','roots','_getBaseVids','for','_isAttached','_baseIdsRoots','key','remove','upcast','_authorId','_fixOperation','buildRevisionData','define','bind','ready','_fixRange','_markers','startsWith','_markChanges','isAttached','offset','plugins','_handleRootOperation','editor','_setConversion','authors','_touched','creator','_prepareViewToSave','path','insertion','locale','attributes','_setAttribute','getRevisionRootsAttributes','root','getOperations','createdAt','range','_source','markerToData','source','_generateTape','getAncestors','max','editor-initial-data-replaced-with-revision-data','_removeMetaData','Initial\x20revision','setSource','_handleMarkerOperation','delete','_makeRevision','_reset','_processRootBeforeSave','creatorId','_createCurrentRevision','_initialRevisionId','_touchedMarkers','has','getOperation','createRange','getChildren','RealTimeCollaborationClient','default','getRoot','affectsData','move','deletions','from','_makeModelFromViewString','fromVersion','addRevision','_getFromVersion','changeRootAttribute','getRevision','_continueCurrentRevision','_handleRootAttributeOperation','vid','_diffRootsAttributes','getChild','_makeIdsRoot','_lastTo','start','howMany','_getVidAttributeName','getAttribute','_createFromRanges','_isPendingUpdate','sendBufferedUpdates','view','createPositionAfter','_removeRevisionMarkers','filter','splitPosition','stickiness','length','userId','requires','isAdd','_addPendingAction','_savedMetaData','revision-start','_clone','find','includes','clone','previousPosition','parse','model','getTime','getUser','string','map','merge','get','attributesAfter','children'];(function(_0x9c8229,_0x3a8a75){const _0x447b25=function(_0x3b32b3){while(--_0x3b32b3){_0x9c8229['push'](_0x9c8229['shift']());}};_0x447b25(++_0x3a8a75);}(_0x3a8a,0x8d));const _0x447b=function(_0x9c8229,_0x3a8a75){_0x9c8229=_0x9c8229-0x0;let _0x447b25=_0x3a8a[_0x9c8229];return _0x447b25;};import{Users as _0x5db9c5}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x158453,PendingActions as _0x5c2e01}from'ckeditor5/src/core';import{logWarning as _0x48526a,uid as _0x47e9ae}from'ckeditor5/src/utils';import{Position as _0x579325,Range as _0x395b8d,Element as _0x3e5557,DocumentFragment as _0x182bce,ViewText as _0x26c9e1,ViewElement as _0x53ede4,ViewContainerElement as _0x316f9d,ViewAttributeElement as _0x376172,ViewEmptyElement as _0x15ec21,ViewRawElement as _0x23106e,ViewUIElement as _0x56b103,ViewDocumentFragment as _0xbf4b3d}from'ckeditor5/src/engine';import _0x463573 from'./revisionsrepository';import{getTranslation as _0x2b410f}from'./utils/common-translations';import{cloneDeep as _0x383954,isEqual as _0x212335}from'lodash-es';const B={'c':_0x316f9d,'a':_0x376172,'e':_0x15ec21,'r':_0x23106e,'u':_0x56b103};export default class l extends _0x158453{static get[_0x447b('0xb3')](){return'RevisionTracker';}static get[_0x447b('0x69')](){return[_0x5db9c5,_0x463573,_0x5c2e01];}constructor(_0x49cd1b){super(_0x49cd1b),this[_0x447b('0xf6')]=null,this[_0x447b('0x103')]=null,this[_0x447b('0xd6')]=new H(this[_0x447b('0x1f')]),this[_0x447b('0x40')]=this['editor']['config'][_0x447b('0x7a')](_0x447b('0x107'))||'initial',this[_0x447b('0xec')]=new Map(),this[_0x447b('0xb6')]=null;const _0xe6f480=_0x47e9ae();this[_0x447b('0x2f')]={'history':this['editor'][_0x447b('0x74')]['document'][_0x447b('0x92')],'getLatestVersion':()=>Promise[_0x447b('0x9b')](this['editor'][_0x447b('0x74')][_0x447b('0xf1')]['version']),'getCurrentRevisionId':()=>_0xe6f480},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this[_0x447b('0xc1')](_0x447b('0x5f'),!0x1),this['editor'][_0x447b('0xbc')][_0x447b('0x14')](_0x447b('0xeb'),!0x0),this[_0x447b('0x1f')][_0x447b('0xe7')][_0x447b('0xb')](_0x447b('0x10'))[_0x447b('0xc2')]({'view':'revision'});}[_0x447b('0xb2')](){this['repository']=this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xce')),this[_0x447b('0x20')](),this['editor']['data']['on'](_0x447b('0x16'),()=>{const _0x61046c=this['repository'][_0x447b('0x52')](0x0),_0x699b2d=_0x61046c&&null===_0x61046c[_0x447b('0x23')]?_0x61046c:null;if(this[_0x447b('0x53')]=!!_0x699b2d&&this[_0x447b('0x1f')][_0x447b('0xbc')][_0x447b('0x7a')](_0x447b('0xeb')),this['editor']['plugins'][_0x447b('0x42')](_0x447b('0x46'))){const _0x366893=this['_source']['getCurrentRevisionId'](),_0x5def9b=this[_0x447b('0xd4')][_0x447b('0x52')](_0x366893);if(_0x5def9b)this['_startingVersion']=_0x5def9b['fromVersion'],this[_0x447b('0x53')]=!0x1;else{const _0x1b514b=this[_0x447b('0x2f')]['history']['_operations'][_0x447b('0x6f')](_0x12e96e=>!_0x12e96e[_0x447b('0xe2')]),_0x1d004c=_0x1b514b?_0x1b514b[_0x447b('0x93')]:this[_0x447b('0x2f')][_0x447b('0x92')][_0x447b('0x100')];_0x61046c?(_0x61046c['toVersion']<_0x1d004c&&_0x61046c['_update']({'toVersion':_0x1d004c}),this[_0x447b('0x53')]?(this[_0x447b('0x2f')]['getCurrentRevisionId']=()=>_0x699b2d['id'],this[_0x447b('0x108')]=_0x699b2d[_0x447b('0x4e')]):(this[_0x447b('0x108')]=_0x61046c[_0x447b('0x89')],this['_continueCurrentRevision']=!0x1)):(this[_0x447b('0x108')]=_0x1d004c,this['_continueCurrentRevision']=!0x1);}}else _0x699b2d&&(this['editor'][_0x447b('0x74')][_0x447b('0xf1')]['history']['version']=Math[_0x447b('0x34')](_0x699b2d[_0x447b('0x89')],this[_0x447b('0x1f')][_0x447b('0x74')]['document'][_0x447b('0x92')][_0x447b('0x100')]),_0x699b2d[_0x447b('0x4e')]===_0x699b2d[_0x447b('0x89')]?(0x0!==_0x699b2d[_0x447b('0x4e')]&&(this[_0x447b('0x2f')]['getCurrentRevisionId']=()=>_0x699b2d['id']),this[_0x447b('0x53')]=!0x1):this[_0x447b('0x53')]&&(this[_0x447b('0x2f')][_0x447b('0x0')]=()=>_0x699b2d['id'],this[_0x447b('0x108')]=_0x699b2d[_0x447b('0x4e')])),this[_0x447b('0x53')]||(this[_0x447b('0x108')]=this[_0x447b('0x1f')]['model'][_0x447b('0xf1')][_0x447b('0x100')]);this['_revisionDataBuilder']['init'](this[_0x447b('0x2f')][_0x447b('0x92')]),this[_0x447b('0xe5')](this[_0x447b('0x108')]),this[_0x447b('0x3f')](this[_0x447b('0x108')]),this[_0x447b('0xf6')]&&this[_0x447b('0x60')]();}),this[_0x447b('0x15')]('isReady')['to'](this,'_isPendingUpdate',_0x5aae90=>!_0x5aae90);}async['afterInit'](){if(this[_0x447b('0xd4')][_0x447b('0x67')]>0x0){const _0x1686f5=this[_0x447b('0xd4')][_0x447b('0x52')](0x0),_0xcc4d51=await this[_0x447b('0x90')](_0x1686f5),_0x61e5b=await this[_0x447b('0x2a')](_0x1686f5);this[_0x447b('0x86')](_0xcc4d51,_0x61e5b);}}[_0x447b('0x38')](_0x5496ff){this[_0x447b('0x2f')]=_0x5496ff;}async[_0x447b('0xef')](){const _0x433c12=await this[_0x447b('0x2f')]['getLatestVersion']();if(_0x433c12>this[_0x447b('0x103')][_0x447b('0x89')]){await this['_loadState']();const _0x58e008=this[_0x447b('0x13')]({'revision':this[_0x447b('0x103')],'to':_0x433c12});_0x58e008[_0x447b('0x21')]=_0x58e008[_0x447b('0x102')][_0x447b('0x78')](_0x104964=>this[_0x447b('0x1f')]['plugins'][_0x447b('0x7a')](_0x447b('0xc8'))[_0x447b('0x76')](_0x104964)),this[_0x447b('0x103')][_0x447b('0x7d')](_0x58e008);}}async['_loadState'](){this[_0x447b('0x53')]&&!this[_0x447b('0xb6')]&&(await this[_0x447b('0x1')](this['currentRevision']),this[_0x447b('0xd6')][_0x447b('0xc7')](this[_0x447b('0x103')]),this[_0x447b('0xb6')]={'fromVersion':this['currentRevision'][_0x447b('0x4e')],'authors':this[_0x447b('0x103')]['authors'][_0x447b('0xa4')]()});}async['saveRevision'](_0x35ee77={},_0xd58e0c=null){const _0x2d17dc=[];await this[_0x447b('0xfb')](),this[_0x447b('0x53')]=!0x1,_0xd58e0c>this[_0x447b('0x103')][_0x447b('0x89')]&&(_0xd58e0c=null),null===_0xd58e0c&&(_0xd58e0c=await this[_0x447b('0x2f')]['getLatestVersion']());const _0x402b24=this[_0x447b('0x50')](_0xd58e0c),_0x418ede=this[_0x447b('0x13')]({'from':_0x402b24,'to':_0xd58e0c});if(this['currentRevision']['toVersion']<_0xd58e0c){const _0x105bf6=this['buildRevisionData']({'revision':this[_0x447b('0x103')],'from':_0xd58e0c,'to':_0xd58e0c});_0x105bf6[_0x447b('0x21')]=[],_0x105bf6[_0x447b('0x102')]=[],_0x105bf6['id']=this[_0x447b('0x103')]['id'],this['currentRevision']['_update'](_0x105bf6,!0x0),delete _0x105bf6[_0x447b('0x21')],_0x2d17dc[_0x447b('0xd0')](_0x105bf6);}_0x35ee77['creatorId']=this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')]('Users')['me']['id'],_0x35ee77[_0x447b('0xf5')]=_0x35ee77[_0x447b('0xf5')]||null,_0x35ee77['id']=_0x35ee77['id']||_0x47e9ae(),_0x35ee77={..._0x35ee77,..._0x418ede};const _0x3af36d=this[_0x447b('0x95')](_0x35ee77);_0x2d17dc['push'](_0x35ee77);const _0x52201a=this[_0x447b('0xd4')][_0x447b('0xc6')](_0x3af36d);if(0x0!==_0x52201a){const _0xd2c324=this[_0x447b('0xd4')]['getRevision'](_0x52201a-0x1);if(_0xd2c324[_0x447b('0x4e')]!==_0xd58e0c){const _0x4e3cd4=this[_0x447b('0xd6')]['getData'](_0xd58e0c,_0xd2c324[_0x447b('0x89')]),_0x28ceb3={'id':_0xd2c324['id'],'diffData':_0x4e3cd4[_0x447b('0xf9')],'authorsIds':_0x4e3cd4['authorsIds'],'authors':_0x4e3cd4[_0x447b('0x102')]['map'](_0x188715=>this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')]('Users')[_0x447b('0x76')](_0x188715)),'fromVersion':_0xd58e0c};_0xd2c324===this['currentRevision']&&(_0x28ceb3[_0x447b('0x2d')]=new Date(_0x35ee77[_0x447b('0x2d')][_0x447b('0x75')]()+0xa)),_0xd2c324[_0x447b('0x7d')](_0x28ceb3,!0x0),delete _0x28ceb3[_0x447b('0x21')],_0x2d17dc[_0x447b('0xd0')](_0x28ceb3);}}if(this[_0x447b('0xf6')]){for(const _0x1da6ef of _0x2d17dc)this['_bufferUpdate'](_0x1da6ef['id'],_0x1da6ef,!0x0);this[_0x447b('0x60')]();}return _0x3af36d;}[_0x447b('0x95')](_0x2cb477){const _0x4d4a79=this['repository'][_0x447b('0x84')](_0x2cb477);return this[_0x447b('0xf6')]&&_0x4d4a79['on'](_0x447b('0x7d'),(_0x2a0af9,_0x5ab925,_0x324c09)=>{_0x324c09||(this[_0x447b('0xcc')](_0x5ab925['id'],_0x5ab925,!0x0),this[_0x447b('0x60')]());}),this[_0x447b('0xd4')][_0x447b('0x4f')](_0x4d4a79,this[_0x447b('0x87')](_0x4d4a79)),_0x4d4a79;}async[_0x447b('0x90')](_0x5e0c87){await this[_0x447b('0x1')](_0x5e0c87);const _0x26f644={};for(const _0x154893 in _0x5e0c87[_0x447b('0xf9')]){if(_0x5e0c87[_0x447b('0xf9')][_0x154893][_0x447b('0x5')]&&!_0x5e0c87[_0x447b('0xf9')][_0x154893][_0x447b('0x5')][_0x447b('0x1b')])continue;const _0x144df0=this['_removeRevisionMarkers'](JSON[_0x447b('0x73')](_0x5e0c87['diffData'][_0x154893][_0x447b('0x3')])),_0x42dcc8=this[_0x447b('0x1f')][_0x447b('0xdb')][_0x447b('0x61')][_0x447b('0xf1')],_0x2454ca=new _0xbf4b3d(_0x42dcc8,_0x144df0[_0x447b('0x78')](_0x1ac1f7=>J(_0x1ac1f7,this[_0x447b('0x1f')])));this['editor'][_0x447b('0xe8')][_0x447b('0x4')][_0x447b('0xcb')](_0x447b('0xdc')),_0x26f644[_0x154893]=this['editor'][_0x447b('0xe8')]['processor'][_0x447b('0xaa')](_0x2454ca),this[_0x447b('0x1f')][_0x447b('0xe8')][_0x447b('0x4')][_0x447b('0xcb')](_0x447b('0x47'));}return _0x26f644;}async[_0x447b('0x2a')](_0x21f6a3){await this['_loadRevisionData'](_0x21f6a3);const _0x57a623={};for(const _0x4341ea in _0x21f6a3[_0x447b('0xf9')])_0x21f6a3[_0x447b('0xf9')][_0x4341ea][_0x447b('0x5')]&&!_0x21f6a3[_0x447b('0xf9')][_0x4341ea][_0x447b('0x5')]['isAttached']||(_0x57a623[_0x4341ea]=_0x21f6a3[_0x447b('0xf9')][_0x4341ea][_0x447b('0x7b')]||{});return _0x57a623;}[_0x447b('0x60')](){if(0x0===this[_0x447b('0xec')][_0x447b('0xed')])return;if(this['_isPendingUpdate'])return;let _0x2c5bce=Array['from'](this[_0x447b('0xec')][_0x447b('0x81')]());this[_0x447b('0xec')][_0x447b('0x6')]();for(let _0x304271=0x0;_0x304271<_0x2c5bce[_0x447b('0x67')];_0x304271++){const _0x28808e=_0x2c5bce[_0x304271];let _0xa47982=!0x1;for(const _0x5fa47c of Object[_0x447b('0xb7')](_0x28808e))void 0x0===_0x28808e[_0x5fa47c]?delete _0x28808e[_0x5fa47c]:'id'!==_0x5fa47c&&(_0xa47982=!0x0);_0xa47982||(_0x2c5bce[_0x304271]=null);}if(_0x2c5bce=_0x2c5bce[_0x447b('0x64')](_0x2fe2f7=>null!==_0x2fe2f7),!_0x2c5bce[_0x447b('0x67')])return;for(let _0x16cfbe=0x0;_0x16cfbe<_0x2c5bce[_0x447b('0x67')];_0x16cfbe++){const _0x580f0d=_0x2c5bce[_0x16cfbe];void 0x0!==_0x580f0d[_0x447b('0x4e')]&&void 0x0===_0x580f0d[_0x447b('0x89')]&&(_0x580f0d[_0x447b('0x89')]=this[_0x447b('0xd4')]['getRevision'](_0x580f0d['id'])[_0x447b('0x89')]),void 0x0!==_0x580f0d[_0x447b('0x89')]&&void 0x0===_0x580f0d[_0x447b('0x4e')]&&(_0x580f0d['fromVersion']=this[_0x447b('0xd4')][_0x447b('0x52')](_0x580f0d['id'])[_0x447b('0x4e')]);}const _0x43d1fd=this[_0x447b('0x1f')][_0x447b('0xbc')]['get'](_0x447b('0x107'));this['_isPendingUpdate']=!0x0,this[_0x447b('0x6b')](),this[_0x447b('0xf6')][_0x447b('0xe9')](_0x2c5bce,_0x43d1fd)[_0x447b('0xfc')](()=>{this['_isPendingUpdate']=!0x1;})[_0x447b('0x8e')](_0x23a6d3=>{if(_0x23a6d3)for(const _0x256430 of _0x23a6d3)this[_0x447b('0xff')]({'id':_0x256430['id'],'createdAt':_0x256430[_0x447b('0x2d')]});this[_0x447b('0xa0')](),this[_0x447b('0x60')]();});}[_0x447b('0x86')](_0x2bf68a,_0x87a9e1){let _0x447bd6=this['editor'][_0x447b('0xbc')][_0x447b('0x7a')]('initialData'),_0x3bddbf=this[_0x447b('0x1f')][_0x447b('0xbc')][_0x447b('0x7a')]('rootsAttributes');if(void 0x0===_0x447bd6){_0x447bd6={};for(const _0x211ed1 of this[_0x447b('0x1f')][_0x447b('0x74')]['document'][_0x447b('0x9a')]())_0x447bd6[_0x211ed1]='';}if('string'==typeof _0x447bd6&&(_0x447bd6={'main':_0x447bd6}),void 0x0===_0x3bddbf){_0x3bddbf={};for(const _0x14f8d1 of this[_0x447b('0x1f')][_0x447b('0x74')][_0x447b('0xf1')]['getRootNames']())_0x3bddbf[_0x14f8d1]={};}let _0x14a9e0=!0x1;const _0x4aefc0=Object['keys'](_0x447bd6),_0x49f515=Object[_0x447b('0xb7')](_0x2bf68a);for(const _0x171872 of _0x4aefc0){if(_0x447bd6[_0x171872]!==_0x2bf68a[_0x171872]&&''!==_0x447bd6[_0x171872]['trim']()){_0x14a9e0=!0x0;break;}if(!_0x212335(_0x3bddbf[_0x171872],_0x87a9e1[_0x171872])&&Object[_0x447b('0xb7')](_0x3bddbf[_0x171872])[_0x447b('0x67')]>0x0){_0x14a9e0=!0x0;break;}}_0x14a9e0||(_0x14a9e0=_0x49f515[_0x447b('0xe4')](_0x15f745=>!this[_0x447b('0x1f')]['model'][_0x447b('0xf1')][_0x447b('0x48')](_0x15f745))),_0x14a9e0&&_0x48526a(_0x447b('0x35'),{'editorData':_0x447bd6,'editorRootsAttributes':_0x3bddbf,'revisionData':_0x2bf68a,'revisionRootsAttributes':_0x87a9e1}),this[_0x447b('0x1f')][_0x447b('0xbc')][_0x447b('0xc1')](_0x447b('0xbe'),_0x2bf68a),this[_0x447b('0x1f')][_0x447b('0xbc')][_0x447b('0xc1')]('rootsAttributes',_0x87a9e1);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xbd29ac=this['editor']['plugins'][_0x447b('0x7a')](_0x447b('0xac'));this[_0x447b('0xee')]=_0xbd29ac[_0x447b('0xf8')](_0x2b410f(this[_0x447b('0x1f')][_0x447b('0x27')],_0x447b('0x104')));}}[_0x447b('0xa0')](){this[_0x447b('0xee')]&&(this['editor'][_0x447b('0x1d')]['get'](_0x447b('0xac'))['remove'](this[_0x447b('0xee')]),this[_0x447b('0xee')]=null);}[_0x447b('0x87')](_0x286290){const _0x34d82e=this['repository'][_0x447b('0xfa')]();_0x34d82e['reverse']();let _0x3b58ed=0x0;for(;_0x3b58ed<_0x34d82e[_0x447b('0x67')];){const _0x391868=_0x34d82e[_0x3b58ed];if(_0x391868===this[_0x447b('0x103')]){_0x3b58ed++;continue;}if(_0x391868['id']===this[_0x447b('0x40')])break;const _0x4512cd=_0x286290[_0x447b('0x89')]-_0x391868['toVersion']||_0x286290['fromVersion']-_0x391868[_0x447b('0x4e')];if(_0x4512cd>0x0)break;if(_0x4512cd<0x0)_0x3b58ed++;else{if(!_0x286290[_0x447b('0x23')]&&_0x391868[_0x447b('0x23')])break;if(_0x391868[_0x447b('0x23')]||!_0x286290[_0x447b('0x23')]){if(_0x286290[_0x447b('0x2d')]>_0x391868[_0x447b('0x2d')])break;_0x3b58ed++;}else _0x3b58ed++;}}return _0x3b58ed;}[_0x447b('0xff')](_0x577969){const _0x2d8e45=this[_0x447b('0xd4')][_0x447b('0x52')](_0x577969['id']);if(_0x577969[_0x447b('0x2d')]&&(_0x577969[_0x447b('0x2d')]=new Date(_0x577969[_0x447b('0x2d')])),_0x577969[_0x447b('0x102')]){const _0xbfc71c=this[_0x447b('0x1f')]['plugins']['get'](_0x447b('0xc8'));_0x577969[_0x447b('0x21')]=_0x577969[_0x447b('0x102')]['map'](_0x1a41ab=>_0xbfc71c['getUser'](_0x1a41ab));}_0x2d8e45[_0x447b('0x7d')](_0x577969,!0x0);}[_0x447b('0x13')]({revision:_0x544f97=null,from:_0x1e67e4=null,to:_0x46ea48=null}){_0x1e67e4=null!==_0x1e67e4?_0x1e67e4:_0x544f97[_0x447b('0x4e')],_0x46ea48=null!==_0x46ea48?_0x46ea48:_0x544f97['toVersion'];const _0x4d7249=this['_revisionDataBuilder']['getData'](_0x1e67e4,_0x46ea48),_0x29bd8b={'diffData':_0x4d7249[_0x447b('0xf9')],'authorsIds':_0x4d7249[_0x447b('0x102')],'fromVersion':_0x1e67e4,'toVersion':_0x46ea48};if(!_0x544f97||_0x46ea48!==_0x544f97['toVersion']){const _0x247f30=_0x46ea48-0x1,_0x595a68=this[_0x447b('0x2f')]['history'][_0x447b('0x43')](_0x247f30);_0x29bd8b[_0x447b('0x2d')]=_0x595a68&&_0x595a68[_0x447b('0x2d')]||new Date();}if(this['_loadedStateData']&&_0x1e67e4===this[_0x447b('0xb6')]['fromVersion'])for(const _0x5bdbb4 of this[_0x447b('0xb6')][_0x447b('0x21')])_0x29bd8b[_0x447b('0x102')][_0x447b('0x70')](_0x5bdbb4['id'])||_0x29bd8b[_0x447b('0x102')][_0x447b('0xd0')](_0x5bdbb4['id']);return _0x29bd8b;}['_loadRevisionData'](_0x4763f2){if(!_0x4763f2||_0x4763f2[_0x447b('0xf9')])return Promise[_0x447b('0x9b')]();{const _0x2e7dd4=this[_0x447b('0x1f')]['config']['get']('collaboration.channelId');return this[_0x447b('0xf6')][_0x447b('0x52')]({'channelId':_0x2e7dd4,'revisionId':_0x4763f2['id']})['then'](_0x2411b6=>{_0x4763f2[_0x447b('0xf9')]=_0x2411b6[_0x447b('0xf9')];});}}['_bufferUpdate'](_0x5f4e2d,_0x267585,_0x38329b){if(this[_0x447b('0xec')]['has'](_0x5f4e2d)){const _0x1c1418=this['_bufferedUpdates']['get'](_0x5f4e2d);_0x267585=_0x38329b?{..._0x1c1418,..._0x267585}:{..._0x267585,..._0x1c1418};}this[_0x447b('0xec')]['set'](_0x5f4e2d,_0x267585);}[_0x447b('0x50')](_0x1b858f){const _0x55a1f8=this[_0x447b('0xd4')]['getRevisions']();_0x55a1f8[_0x447b('0xc5')](),_0x55a1f8['shift']();const _0xe19074=_0x55a1f8[_0x447b('0x6f')](_0x227f1d=>_0x227f1d[_0x447b('0x89')]<=_0x1b858f)['toVersion'];return _0xe19074<this[_0x447b('0x108')]?this[_0x447b('0x108')]:_0xe19074;}[_0x447b('0xe5')](_0x1b62bd){const _0x4bf1a4=this[_0x447b('0xd4')][_0x447b('0x52')](this[_0x447b('0xd4')][_0x447b('0x67')]-0x1);if(_0x4bf1a4)this[_0x447b('0x40')]=_0x4bf1a4['id'];else{const _0x32227b=!this[_0x447b('0x1f')][_0x447b('0x74')]['document'][_0x447b('0x9')][_0x447b('0x6f')](_0x2ed239=>this[_0x447b('0x1f')]['model'][_0x447b('0xca')](_0x2ed239)),_0x4ddad2=this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x13ce05=_0x2b410f(this['editor']['locale'],_0x32227b?_0x447b('0xbd'):_0x447b('0x37'));this[_0x447b('0x3b')]({'from':_0x1b62bd,'to':_0x1b62bd,'id':this['_initialRevisionId'],'name':_0x13ce05,'creatorId':_0x4ddad2});}}[_0x447b('0x3f')](_0x29e360){const _0x5d8656=this[_0x447b('0x2f')][_0x447b('0x0')]();this[_0x447b('0x103')]=this[_0x447b('0xd4')][_0x447b('0x52')](_0x5d8656),this['currentRevision']||(this[_0x447b('0x103')]=this[_0x447b('0x3b')]({'from':_0x29e360,'to':_0x29e360,'id':_0x5d8656,'name':'','creatorId':null}));}[_0x447b('0x3b')]({name:_0x2e6cff,from:_0x210ec7,to:_0x5b886d,creatorId:_0x22a24f,id:_0x4d53b5}){const _0x4ef612=this[_0x447b('0x13')]({'from':_0x210ec7,'to':_0x5b886d});_0x4ef612[_0x447b('0xf5')]=_0x2e6cff,_0x4ef612[_0x447b('0x3e')]=_0x22a24f,_0x4ef612['id']=_0x4d53b5;const _0x46ef07=this[_0x447b('0x95')](_0x4ef612);return this[_0x447b('0xf6')]&&this[_0x447b('0xcc')](_0x4ef612['id'],_0x4ef612,!0x0),_0x46ef07;}[_0x447b('0x20')](){this[_0x447b('0x1f')][_0x447b('0xe7')]['for'](_0x447b('0xbf'))[_0x447b('0x30')]({'model':_0x447b('0xe1')});}[_0x447b('0x63')](_0x480b0e){return(_0x480b0e=_0x480b0e[_0x447b('0x64')](_0x1db0da=>!_0x1db0da[_0x447b('0xf5')]||_0x447b('0x6d')!==_0x1db0da[_0x447b('0xf5')]&&_0x447b('0x85')!==_0x1db0da[_0x447b('0xf5')]))[_0x447b('0xb1')](_0x65505c=>{_0x447b('0x77')!=typeof _0x65505c&&(_0x65505c[_0x447b('0x7c')]=this[_0x447b('0x63')](_0x65505c['children']),_0x65505c[_0x447b('0x28')]=_0x65505c[_0x447b('0x28')]['filter'](_0x352f07=>!_0x352f07[0x0][_0x447b('0x19')](_0x447b('0xd8'))));}),_0x480b0e;}}function J(_0x4b3afa,_0x810b60){const _0x498661=_0x810b60[_0x447b('0xdb')]['view'][_0x447b('0xf1')];if('string'==typeof _0x4b3afa)return new _0x26c9e1(_0x498661,_0x4b3afa);{const _0x2163ef=_0x4b3afa[_0x447b('0x7c')][_0x447b('0x78')](_0x2dbccd=>J(_0x2dbccd,_0x810b60));return new(B[_0x4b3afa[(_0x447b('0xd7'))]]||_0x53ede4)(_0x498661,_0x4b3afa[_0x447b('0xf5')],_0x4b3afa[_0x447b('0x28')],_0x2163ef);}}class H{constructor(_0x48447a){this[_0x447b('0x1f')]=_0x48447a,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this[_0x447b('0x59')]=-0x1,this[_0x447b('0x18')]=new Map(),this[_0x447b('0xc3')]=new Map(),this[_0x447b('0x56')]=new Map(),this[_0x447b('0x8b')]=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this[_0x447b('0xd')]=new Map(),this[_0x447b('0x22')]=new Map(),this['_touchedMarkers']=new Map(),this[_0x447b('0xc4')]=new Map(),this[_0x447b('0xc0')]=0x1;}[_0x447b('0xb2')](_0xfda0b2){this['source']=_0xfda0b2;const _0x1e5cb4=new Map(),_0x41317f=new Map(),_0x51b6a2=this[_0x447b('0x1f')][_0x447b('0x74')][_0x447b('0xf1')]['roots'][_0x447b('0x78')](_0x373928=>_0x373928[_0x447b('0x98')]);for(const _0x6433af of _0x51b6a2){const _0x4e5c3d=this[_0x447b('0x1f')][_0x447b('0x74')]['document'][_0x447b('0x48')](_0x6433af),_0x359202=q(_0x4e5c3d);_0x1e5cb4[_0x447b('0xc1')](_0x6433af,_0x359202),_0x41317f[_0x447b('0xc1')](_0x6433af,Object[_0x447b('0xc9')](_0x4e5c3d['getAttributes']()));}const _0x4f88a7=Array[_0x447b('0x4c')](this[_0x447b('0x1f')]['model'][_0x447b('0xa3')])[_0x447b('0x78')](_0x4d2b2b=>[_0x4d2b2b[_0x447b('0xf5')],_0x4d2b2b[_0x447b('0xa9')]()]),_0xd1ab01=this[_0x447b('0x31')][_0x447b('0x100')];this[_0x447b('0x9f')](_0xd1ab01,_0x1e5cb4,_0x4f88a7,_0x41317f),this[_0x447b('0xde')]=this[_0x447b('0xc0')];const _0x551488=new Map(),_0x27a1a0=new Map();for(const _0x1f2ab8 of _0x51b6a2){const _0x47d1a7=G(_0x1f2ab8);_0x551488[_0x447b('0xc1')](_0x1f2ab8,_0x47d1a7),_0x27a1a0[_0x447b('0xc1')](_0x1f2ab8,{});}this[_0x447b('0x9f')](Number[_0x447b('0xb0')],_0x551488,[],_0x27a1a0);}[_0x447b('0x101')](_0x18d85b,_0x598e09){if(this[_0x447b('0xb5')]===_0x18d85b&&this[_0x447b('0x59')]<=_0x598e09)this[_0x447b('0x6c')][_0x447b('0xed')]>0x1&&this['_removeMetaData'](this[_0x447b('0x59')]),this[_0x447b('0xba')](this[_0x447b('0x59')],_0x598e09,!0x0);else{if(!this[_0x447b('0x6c')][_0x447b('0x42')](_0x18d85b)){const _0x994675=this[_0x447b('0xda')](_0x18d85b);this[_0x447b('0xd2')](_0x994675,_0x18d85b,!0x1);}this[_0x447b('0xd2')](_0x18d85b,_0x598e09,!0x0);}return this[_0x447b('0xb5')]=_0x18d85b,this['_lastTo']=_0x598e09,this[_0x447b('0xa2')]();}['loadState'](_0x37c4fd){this[_0x447b('0x3c')](),this[_0x447b('0xb5')]=_0x37c4fd['fromVersion'],this[_0x447b('0x59')]=_0x37c4fd[_0x447b('0x89')];for(const _0x58caad in _0x37c4fd['diffData']){const _0xff352e=_0x37c4fd[_0x447b('0xf9')][_0x58caad][_0x447b('0x5')],_0x3307e6=_0x383954(_0x37c4fd[_0x447b('0xf9')][_0x58caad]['attributesBefore'])||{},_0x965b4=this[_0x447b('0x4d')](_0x37c4fd[_0x447b('0xf9')][_0x58caad][_0x447b('0x4b')]);_0x965b4[_0x447b('0x98')]=_0x58caad,_0x965b4[_0x447b('0xc')]=!_0xff352e||!_0xff352e[_0x447b('0x1b')],_0x965b4[_0x447b('0x1b')]=()=>_0x965b4[_0x447b('0xc')],this['_baseRoots'][_0x447b('0xc1')](_0x58caad,_0x965b4),this[_0x447b('0xbb')][_0x447b('0xc1')](_0x58caad,_0x3307e6),_0xff352e&&this[_0x447b('0xc4')][_0x447b('0xc1')](_0x58caad,_0xff352e);const _0x14393c=this[_0x447b('0x58')](_0x965b4);this['_baseIdsRoots'][_0x447b('0xc1')](_0x58caad,_0x14393c);for(const [_0x457794,_0x2a53fd]of _0x965b4[_0x447b('0xa3')]){if(!_0x457794[_0x447b('0x19')](_0x447b('0xd3')))continue;const _0x2de970=_0x457794[_0x447b('0x99')](':')[0x2];for(const _0x473531 of _0x2a53fd[_0x447b('0x9e')]({'singleCharacters':!0x0})){const _0x4417a7=this[_0x447b('0x5c')](_0x473531),_0x4ae5fa=_0x447b('0xf2')==_0x473531[_0x447b('0xd7')]?_0x473531[_0x447b('0x72')]['path'][_0x447b('0xa4')](0x0,-0x1):_0x473531[_0x447b('0x72')][_0x447b('0x25')],_0x134536=_0x14393c[_0x447b('0x9d')](_0x4ae5fa)[_0x447b('0x5d')](_0x4417a7);this[_0x447b('0x22')][_0x447b('0xc1')](_0x134536,{'userId':_0x2de970});}}}this[_0x447b('0xde')]=this[_0x447b('0xc0')];const _0x3c51fe=[...Array(this[_0x447b('0xc0')])[_0x447b('0xb7')]()][_0x447b('0xa4')](0x1)[_0x447b('0x64')](_0x2e9053=>!this[_0x447b('0x22')][_0x447b('0x42')](_0x2e9053));let _0x146c1c=0x0;const _0x5ce3c1=new Map();for(const _0x2ff23b in _0x37c4fd[_0x447b('0xf9')]){const _0x2cbda3=_0x37c4fd[_0x447b('0xf9')][_0x2ff23b][_0x447b('0x5')],_0x8a79c5=_0x383954(_0x37c4fd[_0x447b('0xf9')][_0x2ff23b]['attributesAfter'])||{},_0x2430da=this['_makeModelFromViewString'](_0x37c4fd[_0x447b('0xf9')][_0x2ff23b]['insertions']);_0x2430da[_0x447b('0x98')]=_0x2ff23b,_0x2430da['_isAttached']=!_0x2cbda3||_0x2cbda3[_0x447b('0x1b')],_0x2430da[_0x447b('0x1b')]=()=>_0x2430da[_0x447b('0xc')],this[_0x447b('0xc3')][_0x447b('0xc1')](_0x2ff23b,_0x2430da),this[_0x447b('0x56')][_0x447b('0xc1')](_0x2ff23b,_0x8a79c5);const _0x29e77c=this[_0x447b('0x58')](_0x2430da,Number[_0x447b('0xb0')]);this[_0x447b('0xd5')][_0x447b('0xc1')](_0x2ff23b,_0x29e77c),_0x5ce3c1[_0x447b('0xc1')](_0x2ff23b,_0x2430da['isAttached']()?_0x8a79c5:{});for(const [_0x175388,_0x2cc145]of _0x2430da[_0x447b('0xa3')]){if(!_0x175388[_0x447b('0x19')](_0x447b('0xd3')))continue;const _0x2fa7d1=_0x175388[_0x447b('0x99')](':')[0x2];for(const _0x13624f of _0x2cc145['getWalker']({'singleCharacters':!0x0})){const _0x3da8f7=this[_0x447b('0x5c')](_0x13624f),_0x3a2035=this['_revisionId']++,_0x3a553c='elementEnd'==_0x13624f[_0x447b('0xd7')]?_0x13624f['previousPosition'][_0x447b('0x25')][_0x447b('0xa4')](0x0,-0x1):_0x13624f[_0x447b('0x72')][_0x447b('0x25')];_0x29e77c[_0x447b('0x9d')](_0x3a553c)['_setAttribute'](_0x3da8f7,_0x3a2035),this[_0x447b('0x22')][_0x447b('0xc1')](_0x3a2035,{'userId':_0x2fa7d1});}}for(const _0x30f8f1 of this[_0x447b('0x1f')]['model']['createRangeIn'](_0x2430da)[_0x447b('0x9e')]({'singleCharacters':!0x0})){const _0x1dabf0=this['_getVidAttributeName'](_0x30f8f1),_0x2863d0=_0x447b('0xf2')==_0x30f8f1[_0x447b('0xd7')]?_0x30f8f1['previousPosition']['path']['slice'](0x0,-0x1):_0x30f8f1['previousPosition'][_0x447b('0x25')],_0x1d6fa3=_0x29e77c[_0x447b('0x9d')](_0x2863d0);_0x1d6fa3[_0x447b('0x5d')](_0x1dabf0)>0x0||_0x1d6fa3[_0x447b('0x29')](_0x1dabf0,_0x3c51fe[_0x146c1c++]);}for(const [_0x5a8139,_0xa453e0]of _0x2430da['markers'])_0x5a8139['startsWith'](_0x447b('0xd3'))||this[_0x447b('0x18')]['set'](_0x5a8139,_0xa453e0);}const _0x1677af=G(_0x447b('0xf4'));this[_0x447b('0x8b')][_0x447b('0xc1')](_0x447b('0xf4'),_0x1677af),this[_0x447b('0xd')][_0x447b('0xc1')](_0x447b('0xf4'),this[_0x447b('0x58')](_0x1677af,0x1));const _0x2696e1=G(_0x447b('0xf4'));this[_0x447b('0xc3')]['set'](_0x447b('0xf4'),_0x2696e1),this['_idsRoots'][_0x447b('0xc1')]('$graveyard',this[_0x447b('0x58')](_0x2696e1,0x1));const _0x160920=Array[_0x447b('0x4c')](this[_0x447b('0xc3')])[_0x447b('0x78')](([_0x3931e3,_0x40bd18])=>[_0x3931e3,q(_0x40bd18)]);this[_0x447b('0x9f')](this['_lastTo'],_0x160920,this[_0x447b('0x18')],_0x5ce3c1);}[_0x447b('0x4d')](_0x191580){const _0x134394=JSON['parse'](_0x191580),_0x12063a=this[_0x447b('0x1f')][_0x447b('0xdb')][_0x447b('0x61')][_0x447b('0xf1')],_0x27bd27=new _0xbf4b3d(_0x12063a,_0x134394[_0x447b('0x78')](_0x2f17ec=>J(_0x2f17ec,this[_0x447b('0x1f')])));return this[_0x447b('0x1f')]['data'][_0x447b('0x2')](_0x27bd27);}[_0x447b('0x9f')](_0x402cbb,_0xbc69c4,_0x478f98,_0xd961cc){const _0x4ec103=new Map(_0xbc69c4),_0x193e97=new Map(_0x383954(_0xd961cc)),_0x48100e=new Map();for(const [_0xc23eb8,_0x249b0c]of _0x478f98)_0x48100e[_0x447b('0xc1')](_0xc23eb8,{'start':_0x249b0c[_0x447b('0x5a')][_0x447b('0x71')](),'end':_0x249b0c[_0x447b('0xea')]['clone'](),'rootName':_0x249b0c[_0x447b('0x2b')][_0x447b('0x98')]});this[_0x447b('0x6c')][_0x447b('0xc1')](_0x402cbb,{'roots':_0x4ec103,'markers':_0x48100e,'rootsAttributes':_0x193e97});}[_0x447b('0x36')](_0x11174b){this[_0x447b('0x6c')][_0x447b('0x3a')](_0x11174b);}[_0x447b('0x8f')](){this[_0x447b('0x3c')](),this[_0x447b('0xb5')]=-0x1,this[_0x447b('0x59')]=-0x1,this[_0x447b('0x6c')]['clear'](),this[_0x447b('0xb2')](this[_0x447b('0x31')]);}[_0x447b('0x3c')](){this[_0x447b('0x22')][_0x447b('0x6')](),this[_0x447b('0x41')]['clear'](),this['_touchedRoots']['clear'](),this[_0x447b('0xc3')][_0x447b('0x6')](),this[_0x447b('0x56')][_0x447b('0x6')](),this['_baseRoots'][_0x447b('0x6')](),this[_0x447b('0xbb')][_0x447b('0x6')](),this[_0x447b('0xd5')][_0x447b('0x6')](),this['_baseIdsRoots'][_0x447b('0x6')](),this[_0x447b('0x18')][_0x447b('0x6')](),this[_0x447b('0xc0')]=0x1,this['_startingRevisionId']=this[_0x447b('0xc0')];}['_makeIdsRoot'](_0x152e14,_0xa3d156=null){let _0x14993c=null;_0x152e14['is']('documentFragment')||(_0x14993c=new _0x3e5557(_0x152e14[_0x447b('0xf5')],{'vid_start':null===_0xa3d156?this['_revisionId']++:_0xa3d156++}));const _0x5b2396=[];for(const _0x1d9b09 of _0x152e14[_0x447b('0x45')]())if(_0x1d9b09['is']('element')){_0x5b2396[_0x447b('0xd0')](this[_0x447b('0x58')](_0x1d9b09,_0xa3d156));const _0x120c75=_0x5b2396[_0x5b2396[_0x447b('0x67')]-0x1];null!==_0xa3d156&&(_0xa3d156=_0x120c75['is'](_0x447b('0xb9'),_0x447b('0xa6'))?_0x120c75[_0x447b('0x5d')]('vid')+0x1:_0x120c75[_0x447b('0x5d')](_0x447b('0x94'))+0x1);}else for(let _0x7966ec=0x0;_0x7966ec<_0x1d9b09[_0x447b('0xdf')];_0x7966ec++)_0x5b2396['push'](new _0x3e5557(_0x447b('0xa6'),{'vid':null===_0xa3d156?this['_revisionId']++:_0xa3d156++}));if(_0x152e14['is']('documentFragment')){const _0x579335=G(_0x152e14[_0x447b('0x98')]);return _0x579335[_0x447b('0xf7')](0x0,_0x5b2396),_0x579335;}return _0x14993c[_0x447b('0x29')]('vid_end',null===_0xa3d156?this[_0x447b('0xc0')]++:_0xa3d156++),_0x14993c[_0x447b('0xf7')](0x0,_0x5b2396),_0x14993c;}[_0x447b('0xd2')](_0x2f47a0,_0x1ca8d8,_0x26330c){this[_0x447b('0x3c')]();const {roots:_0x429b9e,markers:_0x235172,rootsAttributes:_0x430913}=this['_savedMetaData'][_0x447b('0x7a')](_0x2f47a0);this['_baseRoots']=new Map(_0x429b9e),this[_0x447b('0xbb')]=new Map(_0x383954(_0x430913));for(const [_0x2ff229,_0x507ae3]of this[_0x447b('0x8b')])if('$graveyard'!==_0x2ff229&&(this['_diffRoots'][_0x447b('0xc1')](_0x2ff229,q(_0x507ae3)),this[_0x447b('0x56')]=new Map(_0x383954(_0x430913)),_0x26330c)){const _0x5a75cc=this['_revisionId'];this[_0x447b('0xd5')][_0x447b('0xc1')](_0x2ff229,this[_0x447b('0x58')](_0x507ae3)),this[_0x447b('0xd')][_0x447b('0xc1')](_0x2ff229,this[_0x447b('0x58')](_0x507ae3,_0x5a75cc));}this[_0x447b('0xde')]=this[_0x447b('0xc0')],this[_0x447b('0xc3')][_0x447b('0xc1')]('$graveyard',q(this['_baseRoots'][_0x447b('0x7a')](_0x447b('0xf4')))),_0x26330c&&this[_0x447b('0xd5')]['set'](_0x447b('0xf4'),this['_makeIdsRoot'](this['_baseRoots'][_0x447b('0x7a')]('$graveyard')));for(const [_0x14f4a1,_0x1a6052]of _0x235172){const _0x55b1eb=this[_0x447b('0x8b')][_0x447b('0x7a')](_0x1a6052[_0x447b('0x98')]),_0x5483c3=this[_0x447b('0xc3')][_0x447b('0x7a')](_0x1a6052[_0x447b('0x98')]),_0x5c13e5=new _0x395b8d(this['_fixPosition'](_0x1a6052[_0x447b('0x5a')],_0x55b1eb),this[_0x447b('0x97')](_0x1a6052[_0x447b('0xea')],_0x55b1eb)),_0x354f52=this['_fixRange'](_0x5c13e5,_0x5483c3);_0x55b1eb[_0x447b('0xa3')][_0x447b('0xc1')](_0x14f4a1,_0x5c13e5),this[_0x447b('0x18')][_0x447b('0xc1')](_0x14f4a1,_0x354f52);}this[_0x447b('0xba')](_0x2f47a0,_0x1ca8d8,_0x26330c);}['_applyOperations'](_0x5f23cd,_0xed1c58,_0x56daa3){for(const _0x2310d9 of this['source'][_0x447b('0x2c')](_0x5f23cd,_0xed1c58))this['_handleOperation'](_0x2310d9,_0x56daa3);for(const _0x16a2a4 of this[_0x447b('0xc3')]['values']())_0x16a2a4[_0x447b('0xa3')][_0x447b('0x6')]();for(const [_0x5b8f0d,_0x378b44]of this[_0x447b('0x18')]){this[_0x447b('0xc3')][_0x447b('0x7a')](_0x378b44['root'][_0x447b('0x98')])[_0x447b('0xa3')][_0x447b('0xc1')](_0x5b8f0d,_0x378b44[_0x447b('0x71')]());}const _0x2d1f4f=new Map(),_0x32084c=new Map();for(const [_0x489987,_0x3ff3ae]of this[_0x447b('0xc3')])_0x2d1f4f['set'](_0x489987,q(_0x3ff3ae)),_0x32084c[_0x447b('0xc1')](_0x489987,this[_0x447b('0x56')][_0x447b('0x7a')](_0x489987));this[_0x447b('0x9f')](_0xed1c58,_0x2d1f4f,this[_0x447b('0x18')],_0x32084c);}[_0x447b('0xda')](_0x309163){const _0x2f965a=Array['from'](this[_0x447b('0x6c')][_0x447b('0xb7')]());_0x2f965a[_0x447b('0x106')]((_0x1d76b7,_0x450a64)=>_0x1d76b7-_0x450a64),_0x2f965a['reverse']();for(const _0x5093b1 of _0x2f965a)if(_0x5093b1<_0x309163)return _0x5093b1;return Number['NEGATIVE_INFINITY'];}[_0x447b('0x7e')](_0x781b69,_0x44d140){const _0x1a402d=Array[_0x447b('0x4c')](_0x44d140['markers'])['map'](([_0x4ec92d,_0x2ab538])=>[_0x4ec92d,this['_fixRange'](_0x2ab538,_0x781b69)]);_0x781b69[_0x447b('0xa3')]=new Map(_0x1a402d);}['_transformMarkers'](_0x126d6a){for(const _0x3c118b of this['_markers'][_0x447b('0x81')]()){const _0x3ff2c8=_0x3c118b[_0x447b('0xf3')](_0x126d6a),_0x43c79f=_0x395b8d[_0x447b('0x5e')](_0x3ff2c8);_0x3c118b[_0x447b('0x5a')]=_0x43c79f[_0x447b('0x5a')],_0x3c118b[_0x447b('0xea')]=_0x43c79f['end'];}}[_0x447b('0xaf')](_0x5e2f50,_0xd8543a){if(_0x447b('0x109')==_0x5e2f50[_0x447b('0xd7')]||_0x447b('0xad')==_0x5e2f50[_0x447b('0xd7')])return void this[_0x447b('0x1e')](_0x5e2f50,_0xd8543a);if(_0x447b('0xd1')==_0x5e2f50[_0x447b('0xd7')]){const _0x45f2f0=_0x5e2f50[_0x447b('0xab')]['root'][_0x447b('0x98')];this['_diffRoots'][_0x447b('0x42')](_0x45f2f0)||(this[_0x447b('0xc3')][_0x447b('0xc1')](_0x45f2f0,G(_0x45f2f0,!0x0)),this[_0x447b('0x56')][_0x447b('0xc1')](_0x45f2f0,{}),_0xd8543a&&this[_0x447b('0xd5')]['set'](_0x45f2f0,G(_0x45f2f0,!0x0)));}else{if('addRootAttribute'==_0x5e2f50[_0x447b('0xd7')]||_0x447b('0x8c')==_0x5e2f50[_0x447b('0xd7')]||_0x447b('0x51')==_0x5e2f50[_0x447b('0xd7')])return void this[_0x447b('0x54')](_0x5e2f50);}const _0xc9b832=this[_0x447b('0xe0')](_0x5e2f50,this[_0x447b('0xc3')]);if(_0x447b('0xfd')!==_0x5e2f50['type']&&(_0xc9b832[_0x447b('0x83')](),this['_transformMarkers'](_0xc9b832)),_0xd8543a)switch(_0xc9b832[_0x447b('0xd7')]){case _0x447b('0xd1'):this[_0x447b('0x80')](_0x5e2f50);break;case _0x447b('0x4a'):case _0x447b('0xf'):case _0x447b('0x8'):this['_handleMoveOperation'](_0x5e2f50);break;case _0x447b('0x79'):this[_0x447b('0x7f')](_0x5e2f50);break;case'split':this['_handleSplitOperation'](_0x5e2f50);break;case _0x447b('0xfd'):this[_0x447b('0x39')](_0x5e2f50);}}['_cloneOperation'](_0x25d3c9,_0x2525be){const _0x570ba1=_0x25d3c9[_0x447b('0x71')]();return _0x570ba1[_0x447b('0x11')]=_0x25d3c9[_0x447b('0x11')],this[_0x447b('0x12')](_0x570ba1,_0x2525be),_0x570ba1;}[_0x447b('0xa')](_0x109698){return _0x109698[_0x447b('0x78')](_0x9aed93=>{const _0x1fac55=this[_0x447b('0x5c')](_0x9aed93);return Number(_0x9aed93[_0x447b('0xb4')][_0x447b('0x5d')](_0x1fac55));});}[_0x447b('0x32')](_0x36eac0,_0x25f911){if(_0x36eac0['is']('element',_0x447b('0xa6')))_0x25f911['push']({'item':_0x36eac0,'type':_0x447b('0x96')});else{_0x36eac0['is'](_0x447b('0xb9'))&&_0x25f911[_0x447b('0xd0')]({'item':_0x36eac0,'type':_0x447b('0xb8')});for(const _0x1a3371 of _0x36eac0[_0x447b('0x45')]())this['_generateTape'](_0x1a3371,_0x25f911);_0x36eac0['is'](_0x447b('0xb9'))&&_0x25f911[_0x447b('0xd0')]({'item':_0x36eac0,'type':'elementEnd'});}return _0x25f911;}[_0x447b('0xa2')](){const _0x2c67f8=new Map(this['_touched']),_0x42e611=new Map(_0x2c67f8),_0x14d389=new Map(),_0x8e7b20={'insertions':{},'deletions':{}},_0x47954d={'insertions':{},'deletions':{}},_0x88125b=new Map(),_0x41ab5a=new Set([...this['_baseRoots'][_0x447b('0xb7')](),...this[_0x447b('0xc3')][_0x447b('0xb7')]()]);_0x41ab5a[_0x447b('0x3a')](_0x447b('0xf4'));for(const _0x68d0ad of _0x41ab5a){const _0x5c3367=this['_diffRoots']['get'](_0x68d0ad)||G(_0x68d0ad,!0x1),_0x471953=this[_0x447b('0x8b')][_0x447b('0x7a')](_0x68d0ad)||G(_0x68d0ad,!0x1);_0x5c3367[_0x447b('0x1b')]()||_0x471953['isAttached']()?(_0x8e7b20['insertions'][_0x68d0ad]=q(_0x5c3367),_0x8e7b20['deletions'][_0x68d0ad]=q(_0x471953),this[_0x447b('0x7e')](_0x8e7b20[_0x447b('0x4b')][_0x68d0ad],_0x471953),this['_copyMarkers'](_0x8e7b20[_0x447b('0x3')][_0x68d0ad],_0x5c3367),_0x47954d[_0x447b('0x3')][_0x68d0ad]=this[_0x447b('0x32')](this[_0x447b('0xd5')][_0x447b('0x7a')](_0x68d0ad),[]),_0x47954d[_0x447b('0x4b')][_0x68d0ad]=this[_0x447b('0x32')](this[_0x447b('0xd')]['get'](_0x68d0ad)||G(_0x68d0ad,!0x1),[])):_0x41ab5a[_0x447b('0x3a')](_0x68d0ad);}for(const _0x10201e of _0x41ab5a){const _0x325674=_0x47954d[_0x447b('0x3')][_0x10201e];for(const _0x10f7a3 of _0x325674){const _0x3ab8f5=this['_getVidAttributeName'](_0x10f7a3),_0x132f31=_0x10f7a3[_0x447b('0xb4')]['getAttribute'](_0x3ab8f5);_0x42e611['delete'](_0x132f31),_0x132f31>=this[_0x447b('0xde')]&&_0x14d389[_0x447b('0xc1')](_0x132f31,_0x2c67f8['get'](_0x132f31));}}for(const _0x48ff72 of _0x41ab5a){const _0x12ecd5=_0x47954d[_0x447b('0x3')][_0x48ff72],_0x157e43=this[_0x447b('0xa')](_0x47954d[_0x447b('0x4b')][_0x48ff72]);let _0x3e581d=0x0;for(const _0x3e545f of _0x12ecd5){const _0x3b28c0=this[_0x447b('0x5c')](_0x3e545f),_0x131dc7=_0x3e545f[_0x447b('0xb4')][_0x447b('0x5d')](_0x3b28c0);if(!_0x14d389[_0x447b('0x42')](_0x131dc7)&&!_0x88125b[_0x447b('0x42')](_0x131dc7)){if(_0x42e611['has'](_0x131dc7))_0x3e581d++;else{if(_0x131dc7!=_0x157e43[_0x3e581d]){const _0x2df238=_0x2c67f8[_0x447b('0x7a')](_0x131dc7)||_0x2c67f8['get'](_0x157e43[_0x3e581d]);for(;_0x131dc7!=_0x157e43[_0x3e581d];)_0x42e611[_0x447b('0x42')](_0x157e43[_0x3e581d])||(_0x88125b[_0x447b('0xc1')](_0x157e43[_0x3e581d],_0x2df238),_0x2c67f8[_0x447b('0xc1')](_0x157e43[_0x3e581d],_0x2df238)),_0x3e581d++;}_0x3e581d++;}}}}for(const _0x13c19c of _0x41ab5a){const _0x5c6e1a=_0x47954d[_0x447b('0x3')][_0x13c19c];for(const _0x24abec of _0x5c6e1a){const _0x49db58=this[_0x447b('0x5c')](_0x24abec),_0x14f8ab=_0x24abec['item'][_0x447b('0x5d')](_0x49db58);if(_0x88125b[_0x447b('0x42')](_0x14f8ab)){const _0x50b911=_0x88125b['get'](_0x14f8ab);_0x42e611[_0x447b('0x42')](_0x14f8ab)||_0x42e611[_0x447b('0xc1')](_0x14f8ab,{..._0x50b911}),_0x14d389['set'](_0x14f8ab,{..._0x50b911});}}}for(const _0x224b29 of _0x42e611[_0x447b('0xb7')]())_0x224b29>=this[_0x447b('0xde')]&&_0x42e611['delete'](_0x224b29);const _0x492bd2=new Map();for(const _0x26541e of _0x41ab5a){let _0x4e7b04=_0x47954d[_0x447b('0x3')][_0x26541e];for(const _0x28eb3d of _0x4e7b04)if(_0x28eb3d[_0x447b('0xb4')]['is'](_0x447b('0xb9'),'tableCell')){const _0x5eb397=this[_0x447b('0x5c')](_0x28eb3d),_0x2d3e13=_0x28eb3d[_0x447b('0xb4')][_0x447b('0x5d')](_0x5eb397);if(_0x14d389[_0x447b('0x42')](_0x2d3e13)){const _0x2eefac=_0x28eb3d[_0x447b('0xb4')][_0x447b('0xa1')][_0x447b('0xa1')]['getAttribute'](_0x447b('0x91')),_0x289409=_0x492bd2[_0x447b('0x7a')](_0x2eefac)||new Set();_0x289409[_0x447b('0xf8')](_0x14d389[_0x447b('0x7a')](_0x2d3e13)[_0x447b('0x68')]),_0x492bd2[_0x447b('0xc1')](_0x2eefac,_0x289409);}}_0x4e7b04=_0x47954d['deletions'][_0x26541e];for(const _0x23bb58 of _0x4e7b04)if(_0x23bb58[_0x447b('0xb4')]['is'](_0x447b('0xb9'),_0x447b('0x105'))){const _0xa2216e=this[_0x447b('0x5c')](_0x23bb58),_0xed8a47=_0x23bb58[_0x447b('0xb4')][_0x447b('0x5d')](_0xa2216e);if(_0x42e611['has'](_0xed8a47)){const _0xc7dc01=_0x23bb58[_0x447b('0xb4')][_0x447b('0xa1')][_0x447b('0xa1')][_0x447b('0x5d')]('vid_start'),_0x462f5c=_0x492bd2[_0x447b('0x7a')](_0xc7dc01)||new Set();_0x462f5c[_0x447b('0xf8')](_0x42e611[_0x447b('0x7a')](_0xed8a47)[_0x447b('0x68')]),_0x492bd2['set'](_0xc7dc01,_0x462f5c);}}for(const _0x4a13cd of _0x492bd2[_0x447b('0xb7')]())(_0x14d389[_0x447b('0x42')](_0x4a13cd)||_0x42e611[_0x447b('0x42')](_0x4a13cd))&&_0x492bd2[_0x447b('0x3a')](_0x4a13cd);}for(const _0x482e28 of _0x41ab5a){const _0x2ee20e=_0x47954d[_0x447b('0x3')][_0x482e28];let _0x45172b=null,_0x6b109f=null;for(const _0x248cc1 of _0x2ee20e){const _0x533c7a=this[_0x447b('0x5c')](_0x248cc1),_0x44e595=_0x248cc1[_0x447b('0xb4')][_0x447b('0x5d')](_0x533c7a),_0x2a3bc5=_0x492bd2[_0x447b('0x7a')](_0x44e595);_0x2a3bc5&&_0x447b('0xb8')==_0x248cc1[_0x447b('0xd7')]&&(_0x45172b=Array['from'](_0x2a3bc5)[0x0],_0x6b109f=_0x248cc1[_0x447b('0xb4')][_0x447b('0x5d')](_0x447b('0x94'))),_0x45172b&&(_0x42e611[_0x447b('0xc1')](_0x44e595,{'userId':_0x45172b}),_0x14d389[_0x447b('0xc1')](_0x44e595,{'userId':_0x45172b})),_0x44e595==_0x6b109f&&(_0x45172b=null,_0x6b109f=null);}}const _0xe962e={},_0x23835a=new Set();for(const _0x286434 of _0x41ab5a){const _0xb866b4=_0x8e7b20[_0x447b('0x4b')][_0x286434],_0x3e112f=_0x8e7b20[_0x447b('0x3')][_0x286434];for(const {userId:_0x364d73}of this['_touchedMarkers']['values']())null!==_0x364d73&&_0x23835a[_0x447b('0xf8')](_0x364d73);for(const {userId:_0xaa0faa}of this[_0x447b('0xc4')][_0x447b('0x81')]())null!==_0xaa0faa&&_0x23835a[_0x447b('0xf8')](_0xaa0faa);this['_markChanges'](_0x3e112f,_0x47954d[_0x447b('0x3')][_0x286434],_0x14d389,_0x447b('0x26'),_0x23835a),this[_0x447b('0x1a')](_0xb866b4,_0x47954d['deletions'][_0x286434],_0x42e611,'deletion',_0x23835a),_0xe962e[_0x286434]={'insertions':this[_0x447b('0x24')](_0x3e112f),'deletions':this[_0x447b('0x24')](_0xb866b4),'attachChange':this[_0x447b('0xc4')][_0x447b('0x7a')](_0x286434)||null,'attributesBefore':_0x383954(this[_0x447b('0xbb')][_0x447b('0x7a')](_0x286434))||{},'attributesAfter':_0x383954(this['_diffRootsAttributes'][_0x447b('0x7a')](_0x286434))};}return{'diffData':_0xe962e,'authorsIds':Array[_0x447b('0x4c')](_0x23835a)};}[_0x447b('0x3d')](_0x5700b1){for(const [,_0x396200]of _0x5700b1['markers']){const _0x544f8a=_0x396200[_0x447b('0x5a')][_0x447b('0x33')]()[_0x447b('0x64')](_0x65f5b7=>_0x447b('0x105')==_0x65f5b7[_0x447b('0xf5')]);for(const _0x49ed8d of _0x544f8a)0x1==_0x49ed8d['childCount']&&_0x49ed8d['getChild'](0x0)['is'](_0x447b('0xb9'),_0x447b('0x7'))&&_0x49ed8d[_0x447b('0x57')](0x0)[_0x447b('0x29')](_0x447b('0xdd'),!0x0);}}[_0x447b('0x24')](_0x444685){this['_processRootBeforeSave'](_0x444685);const _0x58b55f=this[_0x447b('0x1f')][_0x447b('0xe8')]['toView'](_0x444685,{}),_0x134bfc=Array['from'](_0x58b55f[_0x447b('0x45')]())[_0x447b('0x78')](_0x4876fe=>this[_0x447b('0xf0')](_0x4876fe));return JSON[_0x447b('0xe6')](_0x134bfc);}[_0x447b('0xf0')](_0x29a051){if(_0x29a051['is']('$text'))return _0x29a051[_0x447b('0xe8')];{const _0x23332c=_0x29a051;return{'type':Object[_0x447b('0xb7')](B)['find'](_0x43ae52=>_0x29a051 instanceof B[_0x43ae52]),'name':_0x23332c[_0x447b('0xf5')],'attributes':Array[_0x447b('0x4c')](_0x23332c[_0x447b('0x8a')]()),'children':Array[_0x447b('0x4c')](_0x23332c[_0x447b('0x45')]())[_0x447b('0x78')](_0x257a12=>this['_getViewJson'](_0x257a12))};}}[_0x447b('0x1a')](_0x161a90,_0x2d18b2,_0x46fcfa,_0x5e698b,_0x10e46a){let _0x28c114=null,_0x9a7d87=null,_0x5dee40=0x0;const _0x51e3f2=this[_0x447b('0x1f')][_0x447b('0x74')];for(let _0x4cd877=0x0;_0x4cd877<_0x2d18b2['length'];_0x4cd877++){const _0x12bab6=this[_0x447b('0x5c')](_0x2d18b2[_0x4cd877]),_0x181fde=_0x2d18b2[_0x4cd877][_0x447b('0xb4')]['getAttribute'](_0x12bab6),_0x54694b=_0x46fcfa[_0x447b('0x7a')](_0x181fde),_0xf67766=_0x4cd877==_0x2d18b2[_0x447b('0x67')]-0x1;(!_0x28c114&&_0x54694b&&(_0x28c114=_0x54694b,_0x9a7d87=_0x2d18b2[_0x4cd877]),_0x28c114&&(!_0x54694b||_0x54694b[_0x447b('0x68')]!=_0x28c114['userId']))&&(_0x3712f9(_0x54694b,L(_0x9a7d87,_0x161a90,_0x51e3f2),L(_0x2d18b2[_0x4cd877],_0x161a90,_0x51e3f2)),_0x28c114=_0x54694b||null,_0x9a7d87=_0x54694b?_0x2d18b2[_0x4cd877]:null),_0x28c114&&_0xf67766&&_0x3712f9(_0x54694b,L(_0x9a7d87,_0x161a90,_0x51e3f2),W(_0x2d18b2[_0x4cd877],_0x161a90,_0x51e3f2));}function _0x3712f9(_0x23c006,_0x4a32f0,_0x482066){const _0x1be19e=_0x28c114[_0x447b('0x68')],_0x3f9c25='revision:'+_0x5e698b+':'+_0x1be19e+':'+_0x5dee40++,_0x40228a=_0x51e3f2[_0x447b('0x44')](_0x4a32f0,_0x482066);_0x161a90['markers'][_0x447b('0xc1')](_0x3f9c25,_0x40228a),null!==_0x1be19e&&_0x10e46a['add'](_0x1be19e);}}[_0x447b('0x5c')](_0x5cbe47){switch(_0x5cbe47[_0x447b('0xd7')]){case _0x447b('0xb8'):return _0x447b('0x91');case _0x447b('0xf2'):return _0x447b('0x94');default:return'vid';}}['_fixOperation'](_0x34e1e9,_0x241a52){_0x34e1e9[_0x447b('0x93')]=null;for(const _0x1f02bd in _0x34e1e9){const _0xc28895=_0x34e1e9[_0x1f02bd];if(_0xc28895 instanceof _0x579325){const _0x21cdc0=_0x241a52[_0x447b('0x7a')](_0xc28895['root'][_0x447b('0x98')]);_0x34e1e9[_0x1f02bd]=this[_0x447b('0x97')](_0xc28895,_0x21cdc0);}if(_0xc28895 instanceof _0x395b8d){const _0x1c5a89=_0x241a52[_0x447b('0x7a')](_0xc28895['root'][_0x447b('0x98')]);_0x34e1e9[_0x1f02bd]=this[_0x447b('0x17')](_0xc28895,_0x1c5a89);}'root'===_0x1f02bd&&(_0x34e1e9[_0x447b('0x2b')]=_0x241a52['get'](_0x34e1e9[_0x447b('0x2b')][_0x447b('0x98')]));}}['_fixRange'](_0x3a9466,_0x13225d){return this[_0x447b('0x1f')]['model'][_0x447b('0x44')](this[_0x447b('0x97')](_0x3a9466[_0x447b('0x5a')],_0x13225d),this['_fixPosition'](_0x3a9466[_0x447b('0xea')],_0x13225d));}[_0x447b('0x97')](_0x5bba48,_0x5161ee){return this[_0x447b('0x1f')]['model'][_0x447b('0xd9')](_0x5161ee,_0x5bba48[_0x447b('0x25')],_0x5bba48[_0x447b('0x66')]);}['_handleInsertOperation'](_0x91f75f){const _0x472db0=this[_0x447b('0xd5')]['get'](_0x91f75f[_0x447b('0xab')]['root'][_0x447b('0x98')]),_0x496df6=this['_fixPosition'](_0x91f75f[_0x447b('0xab')],_0x472db0),_0x51c641=null===_0x91f75f[_0x447b('0x11')]?null:_0x91f75f[_0x447b('0x11')]||this[_0x447b('0x1f')]['plugins']['get'](_0x447b('0xc8'))['me']['id'],_0x29ecea=_0x496df6[_0x447b('0xa1')],_0xa50574=this[_0x447b('0xc0')],_0xc7a2ae=[];for(const _0x3e2d6c of _0x91f75f[_0x447b('0xfe')])if(_0x3e2d6c['is']('element'))_0xc7a2ae['push'](this[_0x447b('0x58')](_0x3e2d6c));else for(let _0x9266d3=0x0;_0x9266d3<_0x3e2d6c[_0x447b('0xdf')];_0x9266d3++)_0xc7a2ae[_0x447b('0xd0')](new _0x3e5557(_0x447b('0xa6'),{'vid':this['_revisionId']++}));const _0x5df034=this[_0x447b('0xc0')];for(let _0x5df20a=_0xa50574;_0x5df20a<_0x5df034;_0x5df20a++)this[_0x447b('0x22')][_0x447b('0xc1')](_0x5df20a,{'userId':_0x51c641});_0x29ecea['_insertChild'](_0x496df6[_0x447b('0x1c')],_0xc7a2ae);}[_0x447b('0x82')](_0x2162ce){(_0x2162ce=this[_0x447b('0xe0')](_0x2162ce,this[_0x447b('0xd5')]))[_0x447b('0x83')]();const _0x1ed799=null===_0x2162ce['_authorId']?null:_0x2162ce['_authorId']||this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x909932=_0x2162ce[_0x447b('0x88')](),_0x5a7608=_0x909932[_0x447b('0xa1')],_0x10a340=_0x909932[_0x447b('0x1c')];!function _0x25b4c9(_0x500538,_0x444826,_0x2d54eb,_0x1dd074){for(let _0x225367=_0x2d54eb;_0x225367<_0x1dd074;_0x225367++){const _0x4801d2=_0x444826[_0x447b('0x57')](_0x225367);_0x4801d2['is'](_0x447b('0xb9'),_0x447b('0xa6'))?_0x500538[_0x447b('0xc1')](_0x4801d2['getAttribute'](_0x447b('0x55')),{'userId':_0x1ed799}):(_0x500538['set'](_0x4801d2[_0x447b('0x5d')](_0x447b('0x91')),{'userId':_0x1ed799}),_0x25b4c9(_0x500538,_0x4801d2,0x0,_0x4801d2[_0x447b('0xcd')]),_0x500538[_0x447b('0xc1')](_0x4801d2[_0x447b('0x5d')](_0x447b('0x94')),{'userId':_0x1ed799}));}}(this[_0x447b('0x22')],_0x5a7608,_0x10a340,_0x10a340+_0x2162ce[_0x447b('0x5b')]);}[_0x447b('0x7f')](_0x3626fb){const _0x117b6a=null===(_0x3626fb=this['_cloneOperation'](_0x3626fb,this[_0x447b('0xd5')]))[_0x447b('0x11')]?null:_0x3626fb[_0x447b('0x11')]||this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x3551c9=_0x3626fb[_0x447b('0xe3')][_0x447b('0xa1')],_0x4549a6=_0x3626fb['sourcePosition'][_0x447b('0xa1')],_0x281837=_0x3551c9[_0x447b('0x5d')](_0x447b('0x94')),_0x5492c2=_0x4549a6['getAttribute'](_0x447b('0x91'));_0x3551c9[_0x447b('0x29')]('vid_end',_0x4549a6['getAttribute']('vid_end')),_0x4549a6[_0x447b('0x29')](_0x447b('0x94'),_0x281837),this[_0x447b('0x22')][_0x447b('0xc1')](_0x5492c2,{'userId':_0x117b6a}),this[_0x447b('0x22')][_0x447b('0xc1')](_0x281837,{'userId':_0x117b6a}),_0x3626fb[_0x447b('0x83')]();}['_handleSplitOperation'](_0xee0d62){const _0x39fbad=null===(_0xee0d62=this[_0x447b('0xe0')](_0xee0d62,this[_0x447b('0xd5')]))[_0x447b('0x11')]?null:_0xee0d62['_authorId']||this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x41e2af=_0xee0d62[_0x447b('0xa8')],_0x4458d3=_0xee0d62[_0x447b('0x65')]['parent'];_0xee0d62['_execute']();const _0x369538=_0x4458d3['getAttribute'](_0x447b('0x94')),_0x22db49=_0xee0d62[_0x447b('0x9c')]['nodeAfter'];if(_0x41e2af){const _0x3c987b=_0x22db49[_0x447b('0x5d')](_0x447b('0x94')),_0x548da1=_0x4458d3[_0x447b('0x5d')](_0x447b('0x94'));_0x4458d3[_0x447b('0x29')](_0x447b('0x94'),_0x3c987b),_0x22db49[_0x447b('0x29')](_0x447b('0x94'),_0x548da1),this[_0x447b('0x22')][_0x447b('0xc1')](_0x4458d3[_0x447b('0x5d')](_0x447b('0x94')),{'userId':_0x39fbad}),this['_touched'][_0x447b('0xc1')](_0x22db49[_0x447b('0x5d')](_0x447b('0x91')),{'userId':_0x39fbad});}else{const _0x4d963a=this['_revisionId']++,_0x5b203b=this['_revisionId']++;_0x4458d3[_0x447b('0x29')]('vid_end',_0x4d963a),_0x22db49[_0x447b('0x29')](_0x447b('0x91'),_0x5b203b),_0x22db49['_setAttribute'](_0x447b('0x94'),_0x369538),this['_touched'][_0x447b('0xc1')](_0x4d963a,{'userId':_0x39fbad}),this[_0x447b('0x22')][_0x447b('0xc1')](_0x5b203b,{'userId':_0x39fbad});}}[_0x447b('0x39')](_0x557983){if(!_0x557983[_0x447b('0x49')])return;const _0x44c7e8=(_0x557983=this[_0x447b('0xe0')](_0x557983,this[_0x447b('0xc3')]))[_0x447b('0xae')]?_0x557983['oldRange'][_0x447b('0x2b')]:null,_0x3c85a8=_0x557983[_0x447b('0xa7')]?_0x557983[_0x447b('0xa7')][_0x447b('0x2b')]:null;_0x44c7e8&&this[_0x447b('0x18')][_0x447b('0x3a')](_0x557983['name']),_0x3c85a8&&this[_0x447b('0x18')][_0x447b('0xc1')](_0x557983[_0x447b('0xf5')],_0x557983[_0x447b('0xa7')][_0x447b('0x71')]());const _0x22af91=null===_0x557983['_authorId']?null:_0x557983[_0x447b('0x11')]||this['editor'][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x1240bd=_0x557983[_0x447b('0xf5')];if(!this[_0x447b('0x41')][_0x447b('0x42')](_0x1240bd))return void this[_0x447b('0x41')][_0x447b('0xc1')](_0x1240bd,{'range':_0x557983[_0x447b('0xae')],'userId':_0x22af91});const _0x45a140=this[_0x447b('0x41')][_0x447b('0x7a')](_0x1240bd),_0x50102c=_0x45a140[_0x447b('0x2e')],_0x11cc72=_0x557983[_0x447b('0xa7')];null==_0x50102c&&null==_0x11cc72||_0x50102c&&_0x11cc72&&_0x50102c['isEqual'](_0x11cc72)?this[_0x447b('0x41')][_0x447b('0x3a')](_0x557983[_0x447b('0xf5')]):_0x45a140['userId']=_0x22af91;}[_0x447b('0x1e')](_0x1e185d,_0x4200f4){this['_diffRoots'][_0x447b('0x42')](_0x1e185d[_0x447b('0x98')])?this[_0x447b('0xc3')][_0x447b('0x7a')](_0x1e185d[_0x447b('0x98')])[_0x447b('0xc')]=_0x1e185d['isAdd']:(this['_diffRoots'][_0x447b('0xc1')](_0x1e185d[_0x447b('0x98')],G(_0x1e185d[_0x447b('0x98')],!0x0)),this[_0x447b('0x56')]['set'](_0x1e185d[_0x447b('0x98')],{}),_0x4200f4&&this[_0x447b('0xd5')][_0x447b('0xc1')](_0x1e185d[_0x447b('0x98')],G(_0x1e185d[_0x447b('0x98')],!0x0)));const _0x20a2cc=null===_0x1e185d[_0x447b('0x11')]?null:_0x1e185d[_0x447b('0x11')]||this[_0x447b('0x1f')]['plugins'][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x19af1c=this[_0x447b('0xc4')][_0x447b('0x7a')](_0x1e185d[_0x447b('0x98')]);_0x19af1c&&_0x19af1c[_0x447b('0x68')]===_0x20a2cc?this['_touchedRoots'][_0x447b('0x3a')](_0x1e185d[_0x447b('0x98')]):this[_0x447b('0xc4')][_0x447b('0xc1')](_0x1e185d[_0x447b('0x98')],{'userId':_0x20a2cc,'isAttached':_0x1e185d[_0x447b('0x6a')]});}[_0x447b('0x54')](_0x5e4823){const _0x5db960=this[_0x447b('0x56')]['get'](_0x5e4823[_0x447b('0x2b')][_0x447b('0x98')]);null===_0x5e4823[_0x447b('0x8d')]?delete _0x5db960[_0x5e4823[_0x447b('0xe')]]:_0x5db960[_0x5e4823[_0x447b('0xe')]]=_0x5e4823['newValue'];}}function q(_0x2cdfcd){const _0x4fbf59=G(_0x2cdfcd[_0x447b('0x98')],_0x2cdfcd['isAttached']());for(const _0x2e66fe of _0x2cdfcd['getChildren']()){const _0x33d86e=_0x2e66fe[_0x447b('0x6e')](!0x0);_0x4fbf59['_appendChild'](_0x33d86e);}return _0x4fbf59;}function G(_0x436410,_0x534f90=!0x0){const _0x4210c1=new _0x182bce();return _0x4210c1[_0x447b('0x98')]=_0x436410,_0x4210c1[_0x447b('0xc')]=_0x534f90,_0x4210c1[_0x447b('0x1b')]=()=>_0x4210c1['_isAttached'],_0x4210c1;}function L(_0x23d5bf,_0x1173cb,_0x280cae){const _0x3b673f='elementEnd'==_0x23d5bf['type']?_0x280cae[_0x447b('0xcf')](_0x23d5bf[_0x447b('0xb4')],'end'):_0x280cae[_0x447b('0xa5')](_0x23d5bf['item']);return _0x280cae[_0x447b('0xd9')](_0x1173cb,_0x3b673f[_0x447b('0x25')],_0x3b673f['stickiness']);}function W(_0x359cab,_0x1053d6,_0x2c2ab9){const _0x47d607=_0x447b('0xb8')==_0x359cab[_0x447b('0xd7')]?_0x2c2ab9['createPositionAt'](_0x359cab['item'],0x0):_0x2c2ab9[_0x447b('0x62')](_0x359cab[_0x447b('0xb4')]);return _0x2c2ab9[_0x447b('0xd9')](_0x1053d6,_0x47d607[_0x447b('0x25')],_0x47d607['stickiness']);}
|