@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240121.0 → 0.0.0-nightly-20240123.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 +5 -5
- 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 _0x689f=['getRevisionDocumentData','size','creator','createPositionBefore','_lastTo','_revisionId','revisionHistory.resumeUnsavedRevision','authorsIds','model','_lastFrom','getOperations','toData','deletions','roots','_makeRevision','processor','getChildren','split','insertion','toVersion','_calculateMetaData','_source','_getBaseVids','history','plugins','insertionPosition','_processRootBeforeSave','version','offsetSize','vid_end','_markers','for','getMovedRangeStart','resolve','userId','dataToMarker','sort','reinsert','nodes','pluginName','toModel','elementStart','add','_startingVersion','string','oldRange','buildRevisionData','offset','diffData','requires','getOperation','updateRevisions','_isPendingUpdate','_update','range','upcast','_idsRoots','start','_baseRootsAttributes','_handleOperation','parse','$graveyard','_isAttached','clear','initial','keys','_getPreviousFrom','getData','getAttributes','_cloneOperation','elementEnd','length','newValue','tableCell','type','_loadedStateData','markers','name','currentRevision','getAttribute','attachChange','getNodeByPath','NEGATIVE_INFINITY','getRevision','getRootNames','clone','attributesAfter','getUser','RevisionsRepository','markerToData','reInit','$text','createRange','marked','fromVersion','delete','paragraph','_createCurrentRevision','Initial\x20revision','_appendChild','getRevisionRootsAttributes','_bufferUpdate','item','addRevisionData','loadState','isAdd','createPositionAfter','root','end','children','getCurrentRevisionId','remove','authors','Empty\x20document','getRange','then','_operations','_removeMetaData','createdAt','_insertChild','_transformMarkers','_setAttribute','getChild','config','collaboration.channelId','changeRootAttribute','_makeModelFromViewString','from','source','_baseRoots','getIndex','_authorId','revision','howMany','vid','insert','newRange','_getState','data','_clone','editor','_applyOperations','createRangeIn','isEqual','splitPosition','sendBufferedUpdates','getLatestVersion','_execute','addRootAttribute','stickiness','_reset','_revisionDataBuilder','_markChanges','attributes','_loadRevisionData','_pendingAction','documentFragment','_makeIdsRoot','initialData','isEnabled','_replaceEditorDataWithRevisionData','baseVersion','getRevisions','_getFromVersion','setRevisionData','filter','parent','_handleInsertOperation','data-revision-','_startingRevisionId','createPositionAt','creatorId','RealTimeCollaborationClient','_handleSplitOperation','getTransformedByOperation','isAttached','graveyardPosition','_diffRootsAttributes','keepParagraph','has','fromEntries','_fixPosition','_handleMergeOperation','_copyMarkers','map','_bufferedUpdates','_touchedMarkers','_fixRange','createPositionFromPath','startsWith','_saveMetaData','repository','_getVidAttributeName','editor-initial-data-replaced-with-revision-data','previousPosition','nodeAfter','merge','marker','includes','getRoot','reverse','_removeRevisionMarkers','values','rootsAttributes','_getViewJson','_diffRoots','getAncestors','getWalker','_handleMarkerOperation','element','set','childCount','init','addRoot','finally','RevisionTracker','getTime','bind','document','_fixOperation','_baseIdsRoots','_handleMoveOperation','_touchedRoots','_continueCurrentRevision','createRevision','revision:','shift','rootName','revision-start','_savedMetaData','_touched','revision-end','_loadState','locale','_initialRevisionId','insertions','_handleRootOperation','view','find','isReady','targetPosition','push','_prepareViewToSave','adapter','PendingActions','editing','path','useFillerType','_handleRootAttributeOperation','text','setSource','trim','_findInsertionIndex','some','position','update','vid_start','_generateTape','_createInitialRevision','get','_setConversion','affectsData','conversion','slice','Users','stringify'];(function(_0x967d48,_0x689f12){const _0xde461b=function(_0x96bde2){while(--_0x96bde2){_0x967d48['push'](_0x967d48['shift']());}};_0xde461b(++_0x689f12);}(_0x689f,0x8b));const _0xde46=function(_0x967d48,_0x689f12){_0x967d48=_0x967d48-0x0;let _0xde461b=_0x689f[_0x967d48];return _0xde461b;};import{Users as _0x48ef1b}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x883c34,PendingActions as _0x351d21}from'ckeditor5/src/core.js';import{logWarning as _0x171f83,uid as _0x285583}from'ckeditor5/src/utils.js';import{Position as _0x5115d2,Range as _0x4af96f,Element as _0x4d2765,DocumentFragment as _0x578f11,ViewText as _0x78ac39,ViewElement as _0x16b40f,ViewContainerElement as _0xfa7524,ViewAttributeElement as _0x12b585,ViewEmptyElement as _0x4cc66f,ViewRawElement as _0x3d69d5,ViewUIElement as _0xec8fce,ViewDocumentFragment as _0x80e81a}from'ckeditor5/src/engine.js';import _0x110ca3 from'./revisionsrepository.js';import{getTranslation as _0x10fbb0}from'./utils/common-translations.js';import{cloneDeep as _0x5f2d28,isEqual as _0xd84e66}from'lodash-es';const B={'c':_0xfa7524,'a':_0x12b585,'e':_0x4cc66f,'r':_0x3d69d5,'u':_0xec8fce};export default class l extends _0x883c34{static get[_0xde46('0xa6')](){return _0xde46('0x4c');}static get[_0xde46('0xb0')](){return[_0x48ef1b,_0x110ca3,_0x351d21];}constructor(_0xb2f43a){super(_0xb2f43a),this[_0xde46('0x68')]=null,this[_0xde46('0xcd')]=null,this[_0xde46('0xc')]=new H(this['editor']),this[_0xde46('0x5f')]=this['editor'][_0xde46('0xfa')][_0xde46('0x78')](_0xde46('0xfb'))||_0xde46('0xbf'),this[_0xde46('0x2e')]=new Map(),this['_loadedStateData']=null;const _0x2bae69=_0x285583();this['_source']={'history':this[_0xde46('0x1')]['model']['document'][_0xde46('0x96')],'getLatestVersion':()=>Promise[_0xde46('0xa0')](this[_0xde46('0x1')][_0xde46('0x87')][_0xde46('0x4f')][_0xde46('0x9a')]),'getCurrentRevisionId':()=>_0x2bae69},this[_0xde46('0x47')]('isReady',!0x1),this['set'](_0xde46('0x14'),!0x0),this[_0xde46('0x47')](_0xde46('0xb3'),!0x1),this[_0xde46('0x1')]['config']['define'](_0xde46('0x85'),!0x0),this[_0xde46('0x1')][_0xde46('0x7b')][_0xde46('0x9e')](_0xde46('0xb6'))[_0xde46('0xa2')]({'view':_0xde46('0x103')});}[_0xde46('0x49')](){this[_0xde46('0x34')]=this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')](_0xde46('0xd7')),this[_0xde46('0x79')](),this[_0xde46('0x1')][_0xde46('0x109')]['on']('ready',()=>{const _0xe0786e=this['repository'][_0xde46('0xd2')](0x0),_0x2ac813=_0xe0786e&&null===_0xe0786e[_0xde46('0x81')]?_0xe0786e:null;if(this[_0xde46('0x54')]=!!_0x2ac813&&this[_0xde46('0x1')]['config']['get']('revisionHistory.resumeUnsavedRevision'),this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x28')](_0xde46('0x21'))){const _0x100119=this[_0xde46('0x94')][_0xde46('0xed')](),_0x17c8bf=this[_0xde46('0x34')][_0xde46('0xd2')](_0x100119);if(_0x17c8bf)this[_0xde46('0xaa')]=_0x17c8bf[_0xde46('0xdd')],this[_0xde46('0x54')]=!0x1;else{const _0x278991=this[_0xde46('0x94')]['history'][_0xde46('0xf3')][_0xde46('0x63')](_0x3f4e64=>!_0x3f4e64['_isInit']),_0x2c6c5c=_0x278991?_0x278991[_0xde46('0x16')]:this[_0xde46('0x94')]['history'][_0xde46('0x9a')];_0xe0786e?(_0xe0786e[_0xde46('0x92')]<_0x2c6c5c&&_0xe0786e['_update']({'toVersion':_0x2c6c5c}),this[_0xde46('0x54')]?(this['_source'][_0xde46('0xed')]=()=>_0x2ac813['id'],this[_0xde46('0xaa')]=_0x2ac813[_0xde46('0xdd')]):(this['_startingVersion']=_0xe0786e[_0xde46('0x92')],this['_continueCurrentRevision']=!0x1)):(this[_0xde46('0xaa')]=_0x2c6c5c,this['_continueCurrentRevision']=!0x1);}}else _0x2ac813&&(this[_0xde46('0x1')][_0xde46('0x87')][_0xde46('0x4f')]['history'][_0xde46('0x9a')]=Math['max'](_0x2ac813[_0xde46('0x92')],this[_0xde46('0x1')][_0xde46('0x87')][_0xde46('0x4f')][_0xde46('0x96')]['version']),_0x2ac813[_0xde46('0xdd')]===_0x2ac813[_0xde46('0x92')]?(0x0!==_0x2ac813[_0xde46('0xdd')]&&(this[_0xde46('0x94')][_0xde46('0xed')]=()=>_0x2ac813['id']),this[_0xde46('0x54')]=!0x1):this[_0xde46('0x54')]&&(this[_0xde46('0x94')][_0xde46('0xed')]=()=>_0x2ac813['id'],this[_0xde46('0xaa')]=_0x2ac813[_0xde46('0xdd')])),this[_0xde46('0x54')]||(this[_0xde46('0xaa')]=this[_0xde46('0x1')]['model'][_0xde46('0x4f')][_0xde46('0x9a')]);this[_0xde46('0xc')][_0xde46('0x49')](this['_source'][_0xde46('0x96')]),this[_0xde46('0x77')](this[_0xde46('0xaa')]),this[_0xde46('0xe0')](this[_0xde46('0xaa')]),this['adapter']&&this[_0xde46('0x6')]();}),this[_0xde46('0x4e')](_0xde46('0x64'))['to'](this,_0xde46('0xb3'),_0x14d7ae=>!_0x14d7ae);}async['afterInit'](){if(this[_0xde46('0x34')][_0xde46('0xc6')]>0x0){const _0x5134b6=this[_0xde46('0x34')][_0xde46('0xd2')](0x0),_0x1faa3b=await this[_0xde46('0x7f')](_0x5134b6),_0x43c549=await this[_0xde46('0xe3')](_0x5134b6);this[_0xde46('0x15')](_0x1faa3b,_0x43c549);}}[_0xde46('0x6f')](_0xa53dc2){this[_0xde46('0x94')]=_0xa53dc2;}async[_0xde46('0x74')](){const _0x5ba32d=await this[_0xde46('0x94')]['getLatestVersion']();if(_0x5ba32d>this[_0xde46('0xcd')][_0xde46('0x92')]){await this[_0xde46('0x5d')]();const _0x4d016a=this[_0xde46('0xad')]({'revision':this[_0xde46('0xcd')],'to':_0x5ba32d});_0x4d016a[_0xde46('0xef')]=_0x4d016a['authorsIds'][_0xde46('0x2d')](_0x3db070=>this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')](_0xde46('0x7d'))[_0xde46('0xd6')](_0x3db070)),this[_0xde46('0xcd')][_0xde46('0xb4')](_0x4d016a);}}async[_0xde46('0x5d')](){this['_continueCurrentRevision']&&!this[_0xde46('0xca')]&&(await this[_0xde46('0xf')](this[_0xde46('0xcd')]),this[_0xde46('0xc')][_0xde46('0xe7')](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision'][_0xde46('0xdd')],'authors':this[_0xde46('0xcd')][_0xde46('0xef')]['slice']()});}async['saveRevision'](_0x227009={},_0x4a774a=null){const _0x417f08=[];await this[_0xde46('0x5d')](),this['_continueCurrentRevision']=!0x1,_0x4a774a>this['currentRevision']['toVersion']&&(_0x4a774a=null),null===_0x4a774a&&(_0x4a774a=await this['_source'][_0xde46('0x7')]());const _0xd2c047=this[_0xde46('0x18')](_0x4a774a),_0x5c63f9=this['buildRevisionData']({'from':_0xd2c047,'to':_0x4a774a});if(this[_0xde46('0xcd')][_0xde46('0x92')]<_0x4a774a){const _0x4b0d1d=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4a774a,'to':_0x4a774a});_0x4b0d1d[_0xde46('0xef')]=[],_0x4b0d1d[_0xde46('0x86')]=[],_0x4b0d1d['id']=this[_0xde46('0xcd')]['id'],this['currentRevision'][_0xde46('0xb4')](_0x4b0d1d,!0x0),delete _0x4b0d1d[_0xde46('0xef')],_0x417f08['push'](_0x4b0d1d);}_0x227009['creatorId']=this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')]('Users')['me']['id'],_0x227009[_0xde46('0xcc')]=_0x227009['name']||null,_0x227009['id']=_0x227009['id']||_0x285583(),_0x227009={..._0x227009,..._0x5c63f9};const _0xd1a876=this[_0xde46('0xe6')](_0x227009);_0x417f08[_0xde46('0x66')](_0x227009);const _0x1b9f60=this[_0xde46('0x34')][_0xde46('0x101')](_0xd1a876);if(0x0!==_0x1b9f60){const _0xa4b6b5=this['repository'][_0xde46('0xd2')](_0x1b9f60-0x1);if(_0xa4b6b5[_0xde46('0xdd')]!==_0x4a774a){const _0x3289c3=this[_0xde46('0xc')][_0xde46('0xc2')](_0x4a774a,_0xa4b6b5[_0xde46('0x92')]),_0x178880={'id':_0xa4b6b5['id'],'diffData':_0x3289c3[_0xde46('0xaf')],'authorsIds':_0x3289c3[_0xde46('0x86')],'authors':_0x3289c3[_0xde46('0x86')][_0xde46('0x2d')](_0x3d54d3=>this[_0xde46('0x1')][_0xde46('0x97')]['get'](_0xde46('0x7d'))[_0xde46('0xd6')](_0x3d54d3)),'fromVersion':_0x4a774a};_0xa4b6b5===this[_0xde46('0xcd')]&&(_0x178880[_0xde46('0xf5')]=new Date(_0x227009[_0xde46('0xf5')][_0xde46('0x4d')]()+0xa)),_0xa4b6b5[_0xde46('0xb4')](_0x178880,!0x0),delete _0x178880[_0xde46('0xef')],_0x417f08['push'](_0x178880);}}if(this['adapter']){for(const _0x150321 of _0x417f08)this[_0xde46('0xe4')](_0x150321['id'],_0x150321,!0x0);this[_0xde46('0x6')]();}return _0xd1a876;}[_0xde46('0xe6')](_0x2419e3){const _0x1e41e6=this[_0xde46('0x34')][_0xde46('0x55')](_0x2419e3);return this[_0xde46('0x68')]&&_0x1e41e6['on'](_0xde46('0xb4'),(_0x22c585,_0x7ca76c,_0x4358f5)=>{_0x4358f5||(this[_0xde46('0xe4')](_0x7ca76c['id'],_0x7ca76c,!0x0),this[_0xde46('0x6')]());}),this['repository']['addRevision'](_0x1e41e6,this[_0xde46('0x71')](_0x1e41e6)),_0x1e41e6;}async[_0xde46('0x7f')](_0x2be96e){await this[_0xde46('0xf')](_0x2be96e);const _0x7d62e7={};for(const _0x11d1d5 in _0x2be96e[_0xde46('0xaf')]){if(_0x2be96e[_0xde46('0xaf')][_0x11d1d5]['attachChange']&&!_0x2be96e['diffData'][_0x11d1d5][_0xde46('0xcf')]['isAttached'])continue;const _0xca7a9f=this['_removeRevisionMarkers'](JSON['parse'](_0x2be96e[_0xde46('0xaf')][_0x11d1d5][_0xde46('0x60')])),_0x35c531=this[_0xde46('0x1')][_0xde46('0x6a')][_0xde46('0x62')][_0xde46('0x4f')],_0x596194=new _0x80e81a(_0x35c531,_0xca7a9f[_0xde46('0x2d')](_0x5aa43c=>J(_0x5aa43c,this['editor'])));this['editor'][_0xde46('0x109')][_0xde46('0x8e')][_0xde46('0x6c')](_0xde46('0xdc')),_0x7d62e7[_0x11d1d5]=this['editor']['data'][_0xde46('0x8e')][_0xde46('0x8a')](_0x596194),this[_0xde46('0x1')][_0xde46('0x109')][_0xde46('0x8e')][_0xde46('0x6c')]('default');}return _0x7d62e7;}async[_0xde46('0xe3')](_0x5464f5){await this[_0xde46('0xf')](_0x5464f5);const _0x36e9f1={};for(const _0x4f236f in _0x5464f5['diffData'])_0x5464f5[_0xde46('0xaf')][_0x4f236f][_0xde46('0xcf')]&&!_0x5464f5[_0xde46('0xaf')][_0x4f236f][_0xde46('0xcf')]['isAttached']||(_0x36e9f1[_0x4f236f]=_0x5464f5['diffData'][_0x4f236f]['attributesAfter']||{});return _0x36e9f1;}[_0xde46('0x6')](){if(0x0===this['_bufferedUpdates']['size'])return;if(this[_0xde46('0xb3')])return;let _0x2ebfa4=Array[_0xde46('0xfe')](this[_0xde46('0x2e')][_0xde46('0x3f')]());this[_0xde46('0x2e')][_0xde46('0xbe')]();for(let _0x1ed81c=0x0;_0x1ed81c<_0x2ebfa4[_0xde46('0xc6')];_0x1ed81c++){const _0x10ea39=_0x2ebfa4[_0x1ed81c];let _0x467790=!0x1;for(const _0x52ce5c of Object[_0xde46('0xc0')](_0x10ea39))void 0x0===_0x10ea39[_0x52ce5c]?delete _0x10ea39[_0x52ce5c]:'id'!==_0x52ce5c&&(_0x467790=!0x0);_0x467790||(_0x2ebfa4[_0x1ed81c]=null);}if(_0x2ebfa4=_0x2ebfa4['filter'](_0x261833=>null!==_0x261833),!_0x2ebfa4['length'])return;for(let _0xdb92d1=0x0;_0xdb92d1<_0x2ebfa4[_0xde46('0xc6')];_0xdb92d1++){const _0x2e2377=_0x2ebfa4[_0xdb92d1];void 0x0!==_0x2e2377['fromVersion']&&void 0x0===_0x2e2377['toVersion']&&(_0x2e2377['toVersion']=this[_0xde46('0x34')]['getRevision'](_0x2e2377['id'])[_0xde46('0x92')]),void 0x0!==_0x2e2377[_0xde46('0x92')]&&void 0x0===_0x2e2377[_0xde46('0xdd')]&&(_0x2e2377['fromVersion']=this[_0xde46('0x34')][_0xde46('0xd2')](_0x2e2377['id'])[_0xde46('0xdd')]);}const _0xc0ed4e=this[_0xde46('0x1')][_0xde46('0xfa')][_0xde46('0x78')](_0xde46('0xfb'));this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this[_0xde46('0x68')][_0xde46('0xb2')](_0x2ebfa4,_0xc0ed4e)[_0xde46('0x4b')](()=>{this['_isPendingUpdate']=!0x1;})[_0xde46('0xf2')](_0x22f721=>{if(_0x22f721)for(const _0x2aeb6c of _0x22f721)this[_0xde46('0x19')]({'id':_0x2aeb6c['id'],'createdAt':_0x2aeb6c[_0xde46('0xf5')]});this['_removePendingAction'](),this['sendBufferedUpdates']();});}[_0xde46('0x15')](_0x44848a,_0x278ec7){let _0x2e56eb=this[_0xde46('0x1')][_0xde46('0xfa')][_0xde46('0x78')](_0xde46('0x13')),_0x5a78ad=this['editor'][_0xde46('0xfa')][_0xde46('0x78')](_0xde46('0x40'));if(void 0x0===_0x2e56eb){_0x2e56eb={};for(const _0x11c5ee of this['editor'][_0xde46('0x87')][_0xde46('0x4f')]['getRootNames']())_0x2e56eb[_0x11c5ee]='';}if(_0xde46('0xab')==typeof _0x2e56eb&&(_0x2e56eb={'main':_0x2e56eb}),void 0x0===_0x5a78ad){_0x5a78ad={};for(const _0x1d224c of this[_0xde46('0x1')][_0xde46('0x87')][_0xde46('0x4f')][_0xde46('0xd3')]())_0x5a78ad[_0x1d224c]={};}let _0x4894be=!0x1;const _0x41f7f4=Object[_0xde46('0xc0')](_0x2e56eb),_0x36db01=Object['keys'](_0x44848a);for(const _0x10239e of _0x41f7f4){if(_0x2e56eb[_0x10239e]!==_0x44848a[_0x10239e]&&''!==_0x2e56eb[_0x10239e][_0xde46('0x70')]()){_0x4894be=!0x0;break;}if(!_0xd84e66(_0x5a78ad[_0x10239e],_0x278ec7[_0x10239e])&&Object['keys'](_0x5a78ad[_0x10239e])[_0xde46('0xc6')]>0x0){_0x4894be=!0x0;break;}}_0x4894be||(_0x4894be=_0x36db01[_0xde46('0x72')](_0x30a77f=>!this['editor']['model'][_0xde46('0x4f')]['getRoot'](_0x30a77f))),_0x4894be&&_0x171f83(_0xde46('0x36'),{'editorData':_0x2e56eb,'editorRootsAttributes':_0x5a78ad,'revisionData':_0x44848a,'revisionRootsAttributes':_0x278ec7}),this['editor'][_0xde46('0xfa')]['set'](_0xde46('0x13'),_0x44848a),this[_0xde46('0x1')][_0xde46('0xfa')][_0xde46('0x47')]('rootsAttributes',_0x278ec7);}['_addPendingAction'](){if(!this[_0xde46('0x10')]){const _0x444691=this[_0xde46('0x1')]['plugins'][_0xde46('0x78')](_0xde46('0x69'));this[_0xde46('0x10')]=_0x444691[_0xde46('0xa9')](_0x10fbb0(this[_0xde46('0x1')][_0xde46('0x5e')],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this[_0xde46('0x10')]&&(this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')]('PendingActions')[_0xde46('0xee')](this[_0xde46('0x10')]),this['_pendingAction']=null);}[_0xde46('0x71')](_0x2fc885){const _0x142c1a=this[_0xde46('0x34')][_0xde46('0x17')]();_0x142c1a[_0xde46('0x3d')]();let _0x2b6006=0x0;for(;_0x2b6006<_0x142c1a[_0xde46('0xc6')];){const _0x4fb64b=_0x142c1a[_0x2b6006];if(_0x4fb64b===this[_0xde46('0xcd')]){_0x2b6006++;continue;}if(_0x4fb64b['id']===this[_0xde46('0x5f')])break;const _0x2766b3=_0x2fc885['toVersion']-_0x4fb64b['toVersion']||_0x2fc885[_0xde46('0xdd')]-_0x4fb64b[_0xde46('0xdd')];if(_0x2766b3>0x0)break;if(_0x2766b3<0x0)_0x2b6006++;else{if(!_0x2fc885[_0xde46('0x81')]&&_0x4fb64b['creator'])break;if(_0x4fb64b['creator']||!_0x2fc885[_0xde46('0x81')]){if(_0x2fc885[_0xde46('0xf5')]>_0x4fb64b[_0xde46('0xf5')])break;_0x2b6006++;}else _0x2b6006++;}}return _0x2b6006;}[_0xde46('0x19')](_0x4a32d4){const _0x4d9c88=this[_0xde46('0x34')][_0xde46('0xd2')](_0x4a32d4['id']);if(_0x4a32d4['createdAt']&&(_0x4a32d4['createdAt']=new Date(_0x4a32d4[_0xde46('0xf5')])),_0x4a32d4[_0xde46('0x86')]){const _0x27578c=this['editor'][_0xde46('0x97')][_0xde46('0x78')](_0xde46('0x7d'));_0x4a32d4[_0xde46('0xef')]=_0x4a32d4['authorsIds']['map'](_0x1fece0=>_0x27578c[_0xde46('0xd6')](_0x1fece0));}_0x4d9c88[_0xde46('0xb4')](_0x4a32d4,!0x0);}[_0xde46('0xad')]({revision:_0x5df22e=null,from:_0x77c7c2=null,to:_0x1e4e95=null}){_0x77c7c2=null!==_0x77c7c2?_0x77c7c2:_0x5df22e[_0xde46('0xdd')],_0x1e4e95=null!==_0x1e4e95?_0x1e4e95:_0x5df22e[_0xde46('0x92')];const _0x42ed44=this['_revisionDataBuilder']['getData'](_0x77c7c2,_0x1e4e95),_0x16220f={'diffData':_0x42ed44[_0xde46('0xaf')],'authorsIds':_0x42ed44[_0xde46('0x86')],'fromVersion':_0x77c7c2,'toVersion':_0x1e4e95};if(!_0x5df22e||_0x1e4e95!==_0x5df22e[_0xde46('0x92')]){const _0x4ebdd=_0x1e4e95-0x1,_0xdb379c=this[_0xde46('0x94')][_0xde46('0x96')][_0xde46('0xb1')](_0x4ebdd);_0x16220f[_0xde46('0xf5')]=_0xdb379c&&_0xdb379c[_0xde46('0xf5')]||new Date();}if(this['_loadedStateData']&&_0x77c7c2===this[_0xde46('0xca')][_0xde46('0xdd')])for(const _0x453a87 of this[_0xde46('0xca')]['authors'])_0x16220f[_0xde46('0x86')][_0xde46('0x3b')](_0x453a87['id'])||_0x16220f[_0xde46('0x86')]['push'](_0x453a87['id']);return _0x16220f;}[_0xde46('0xf')](_0x284c4e){if(!_0x284c4e||_0x284c4e[_0xde46('0xaf')])return Promise[_0xde46('0xa0')]();{const _0x317280=this[_0xde46('0x1')][_0xde46('0xfa')]['get'](_0xde46('0xfb'));return this[_0xde46('0x68')][_0xde46('0xd2')]({'channelId':_0x317280,'revisionId':_0x284c4e['id']})[_0xde46('0xf2')](_0x247aac=>{_0x284c4e[_0xde46('0xaf')]=_0x247aac[_0xde46('0xaf')];});}}[_0xde46('0xe4')](_0x2fbbe8,_0x1f2d33,_0x15c525){if(this['_bufferedUpdates']['has'](_0x2fbbe8)){const _0x236453=this[_0xde46('0x2e')]['get'](_0x2fbbe8);_0x1f2d33=_0x15c525?{..._0x236453,..._0x1f2d33}:{..._0x1f2d33,..._0x236453};}this[_0xde46('0x2e')][_0xde46('0x47')](_0x2fbbe8,_0x1f2d33);}['_getFromVersion'](_0x166bc2){const _0x2ac972=this[_0xde46('0x34')][_0xde46('0x17')]();_0x2ac972[_0xde46('0x3d')](),_0x2ac972[_0xde46('0x57')]();const _0x4d5bba=_0x2ac972[_0xde46('0x63')](_0xe78af3=>_0xe78af3['toVersion']<=_0x166bc2)[_0xde46('0x92')];return _0x4d5bba<this[_0xde46('0xaa')]?this[_0xde46('0xaa')]:_0x4d5bba;}[_0xde46('0x77')](_0x16bb87){const _0x20d713=this[_0xde46('0x34')][_0xde46('0xd2')](this[_0xde46('0x34')][_0xde46('0xc6')]-0x1);if(_0x20d713)this['_initialRevisionId']=_0x20d713['id'];else{const _0x29f063=!this['editor'][_0xde46('0x87')][_0xde46('0x4f')]['roots'][_0xde46('0x63')](_0x524675=>this['editor'][_0xde46('0x87')]['hasContent'](_0x524675)),_0x365b9b=this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')](_0xde46('0x7d'))['me']['id'],_0x296e62=_0x10fbb0(this[_0xde46('0x1')][_0xde46('0x5e')],_0x29f063?_0xde46('0xf0'):_0xde46('0xe1'));this[_0xde46('0x8d')]({'from':_0x16bb87,'to':_0x16bb87,'id':this[_0xde46('0x5f')],'name':_0x296e62,'creatorId':_0x365b9b});}}[_0xde46('0xe0')](_0x311d91){const _0x4f0b50=this['_source']['getCurrentRevisionId']();this[_0xde46('0xcd')]=this[_0xde46('0x34')][_0xde46('0xd2')](_0x4f0b50),this['currentRevision']||(this[_0xde46('0xcd')]=this[_0xde46('0x8d')]({'from':_0x311d91,'to':_0x311d91,'id':_0x4f0b50,'name':'','creatorId':null}));}[_0xde46('0x8d')]({name:_0x3ca387,from:_0x55e8c4,to:_0x326183,creatorId:_0x2b4e49,id:_0x130f41}){const _0x3dc68a=this[_0xde46('0xad')]({'from':_0x55e8c4,'to':_0x326183});_0x3dc68a['name']=_0x3ca387,_0x3dc68a[_0xde46('0x20')]=_0x2b4e49,_0x3dc68a['id']=_0x130f41;const _0x1a5e56=this[_0xde46('0xe6')](_0x3dc68a);return this[_0xde46('0x68')]&&this[_0xde46('0xe4')](_0x3dc68a['id'],_0x3dc68a,!0x0),_0x1a5e56;}[_0xde46('0x79')](){this['editor'][_0xde46('0x7b')][_0xde46('0x9e')]('dataDowncast')[_0xde46('0xd8')]({'model':_0xde46('0x103')});}[_0xde46('0x3e')](_0x4ff1f6){return(_0x4ff1f6=_0x4ff1f6['filter'](_0x57a54c=>!_0x57a54c[_0xde46('0xcc')]||_0xde46('0x59')!==_0x57a54c[_0xde46('0xcc')]&&_0xde46('0x5c')!==_0x57a54c[_0xde46('0xcc')]))['forEach'](_0x4d64f3=>{_0xde46('0xab')!=typeof _0x4d64f3&&(_0x4d64f3[_0xde46('0xec')]=this[_0xde46('0x3e')](_0x4d64f3[_0xde46('0xec')]),_0x4d64f3[_0xde46('0xe')]=_0x4d64f3[_0xde46('0xe')][_0xde46('0x1a')](_0x56d0e9=>!_0x56d0e9[0x0][_0xde46('0x32')](_0xde46('0x1d'))));}),_0x4ff1f6;}}function J(_0x2bf5f1,_0x1d6c89){const _0x342252=_0x1d6c89[_0xde46('0x6a')][_0xde46('0x62')][_0xde46('0x4f')];if(_0xde46('0xab')==typeof _0x2bf5f1)return new _0x78ac39(_0x342252,_0x2bf5f1);{const _0xb5d46a=_0x2bf5f1[_0xde46('0xec')][_0xde46('0x2d')](_0x2e1671=>J(_0x2e1671,_0x1d6c89));return new(B[_0x2bf5f1[(_0xde46('0xc9'))]]||_0x16b40f)(_0x342252,_0x2bf5f1['name'],_0x2bf5f1[_0xde46('0xe')],_0xb5d46a);}}class H{constructor(_0xfadb29){this[_0xde46('0x1')]=_0xfadb29,this[_0xde46('0x5a')]=new Map(),this[_0xde46('0x88')]=-0x1,this['_lastTo']=-0x1,this[_0xde46('0x9d')]=new Map(),this[_0xde46('0x42')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0xde46('0x100')]=new Map(),this[_0xde46('0xb9')]=new Map(),this['_idsRoots']=new Map(),this[_0xde46('0x51')]=new Map(),this[_0xde46('0x5b')]=new Map(),this[_0xde46('0x2f')]=new Map(),this[_0xde46('0x53')]=new Map(),this[_0xde46('0x84')]=0x1;}[_0xde46('0x49')](_0x2024ba){this[_0xde46('0xff')]=_0x2024ba;const _0x7a5450=new Map(),_0x18d4b4=new Map(),_0x939ccd=this[_0xde46('0x1')][_0xde46('0x87')][_0xde46('0x4f')][_0xde46('0x8c')][_0xde46('0x2d')](_0x1437d5=>_0x1437d5[_0xde46('0x58')]);for(const _0x28c5e8 of _0x939ccd){const _0x459b40=this[_0xde46('0x1')][_0xde46('0x87')]['document'][_0xde46('0x3c')](_0x28c5e8),_0x41b1fa=q(_0x459b40);_0x7a5450['set'](_0x28c5e8,_0x41b1fa),_0x18d4b4[_0xde46('0x47')](_0x28c5e8,Object[_0xde46('0x29')](_0x459b40[_0xde46('0xc3')]()));}const _0x13e82c=Array['from'](this[_0xde46('0x1')][_0xde46('0x87')][_0xde46('0xcb')])[_0xde46('0x2d')](_0x9359aa=>[_0x9359aa[_0xde46('0xcc')],_0x9359aa[_0xde46('0xf1')]()]),_0x3c1d50=this[_0xde46('0xff')]['version'];this[_0xde46('0x33')](_0x3c1d50,_0x7a5450,_0x13e82c,_0x18d4b4),this[_0xde46('0x1e')]=this[_0xde46('0x84')];const _0x3be42d=new Map(),_0x4811d6=new Map();for(const _0x7a4890 of _0x939ccd){const _0x2ebb10=G(_0x7a4890);_0x3be42d[_0xde46('0x47')](_0x7a4890,_0x2ebb10),_0x4811d6[_0xde46('0x47')](_0x7a4890,{});}this[_0xde46('0x33')](Number[_0xde46('0xd1')],_0x3be42d,[],_0x4811d6);}[_0xde46('0xc2')](_0x2f854d,_0x5972b4){if(this[_0xde46('0x88')]===_0x2f854d&&this[_0xde46('0x83')]<=_0x5972b4)this[_0xde46('0x5a')][_0xde46('0x80')]>0x1&&this[_0xde46('0xf4')](this[_0xde46('0x83')]),this[_0xde46('0x2')](this[_0xde46('0x83')],_0x5972b4,!0x0);else{if(!this['_savedMetaData'][_0xde46('0x28')](_0x2f854d)){const _0x3c8119=this['_getPreviousFrom'](_0x2f854d);this['_calculateMetaData'](_0x3c8119,_0x2f854d,!0x1);}this[_0xde46('0x93')](_0x2f854d,_0x5972b4,!0x0);}return this['_lastFrom']=_0x2f854d,this[_0xde46('0x83')]=_0x5972b4,this[_0xde46('0x108')]();}[_0xde46('0xe7')](_0x37537a){this[_0xde46('0xb')](),this['_lastFrom']=_0x37537a['fromVersion'],this[_0xde46('0x83')]=_0x37537a[_0xde46('0x92')];for(const _0x47a3b0 in _0x37537a[_0xde46('0xaf')]){const _0x2952bb=_0x37537a[_0xde46('0xaf')][_0x47a3b0][_0xde46('0xcf')],_0x709f54=_0x5f2d28(_0x37537a[_0xde46('0xaf')][_0x47a3b0]['attributesBefore'])||{},_0x5ded23=this[_0xde46('0xfd')](_0x37537a[_0xde46('0xaf')][_0x47a3b0][_0xde46('0x8b')]);_0x5ded23[_0xde46('0x58')]=_0x47a3b0,_0x5ded23[_0xde46('0xbd')]=!_0x2952bb||!_0x2952bb['isAttached'],_0x5ded23[_0xde46('0x24')]=()=>_0x5ded23[_0xde46('0xbd')],this[_0xde46('0x100')][_0xde46('0x47')](_0x47a3b0,_0x5ded23),this[_0xde46('0xb9')]['set'](_0x47a3b0,_0x709f54),_0x2952bb&&this[_0xde46('0x53')][_0xde46('0x47')](_0x47a3b0,_0x2952bb);const _0x3a4084=this[_0xde46('0x12')](_0x5ded23);this['_baseIdsRoots']['set'](_0x47a3b0,_0x3a4084);for(const [_0x5924a5,_0x252667]of _0x5ded23[_0xde46('0xcb')]){if(!_0x5924a5[_0xde46('0x32')](_0xde46('0x56')))continue;const _0x2e47ca=_0x5924a5['split'](':')[0x2];for(const _0x185efa of _0x252667[_0xde46('0x44')]({'singleCharacters':!0x0})){const _0x5685e=this[_0xde46('0x35')](_0x185efa),_0x5d9230=_0xde46('0xc5')==_0x185efa[_0xde46('0xc9')]?_0x185efa[_0xde46('0x37')]['path'][_0xde46('0x7c')](0x0,-0x1):_0x185efa[_0xde46('0x37')]['path'],_0x27f88c=_0x3a4084['getNodeByPath'](_0x5d9230)['getAttribute'](_0x5685e);this[_0xde46('0x5b')][_0xde46('0x47')](_0x27f88c,{'userId':_0x2e47ca});}}}this['_startingRevisionId']=this[_0xde46('0x84')];const _0x5159da=[...Array(this['_revisionId'])[_0xde46('0xc0')]()][_0xde46('0x7c')](0x1)[_0xde46('0x1a')](_0x4d715a=>!this['_touched'][_0xde46('0x28')](_0x4d715a));let _0xe142b8=0x0;const _0x1bbe3f=new Map();for(const _0x294b2d in _0x37537a[_0xde46('0xaf')]){const _0x402372=_0x37537a['diffData'][_0x294b2d][_0xde46('0xcf')],_0x2663df=_0x5f2d28(_0x37537a[_0xde46('0xaf')][_0x294b2d][_0xde46('0xd5')])||{},_0x8baee4=this['_makeModelFromViewString'](_0x37537a[_0xde46('0xaf')][_0x294b2d]['insertions']);_0x8baee4[_0xde46('0x58')]=_0x294b2d,_0x8baee4[_0xde46('0xbd')]=!_0x402372||_0x402372['isAttached'],_0x8baee4['isAttached']=()=>_0x8baee4['_isAttached'],this[_0xde46('0x42')]['set'](_0x294b2d,_0x8baee4),this[_0xde46('0x26')]['set'](_0x294b2d,_0x2663df);const _0x45e29c=this[_0xde46('0x12')](_0x8baee4,Number[_0xde46('0xd1')]);this['_idsRoots'][_0xde46('0x47')](_0x294b2d,_0x45e29c),_0x1bbe3f[_0xde46('0x47')](_0x294b2d,_0x8baee4[_0xde46('0x24')]()?_0x2663df:{});for(const [_0x427e87,_0x5dd787]of _0x8baee4['markers']){if(!_0x427e87[_0xde46('0x32')](_0xde46('0x56')))continue;const _0x3c42c2=_0x427e87[_0xde46('0x90')](':')[0x2];for(const _0x1f0eba of _0x5dd787[_0xde46('0x44')]({'singleCharacters':!0x0})){const _0x752ca5=this['_getVidAttributeName'](_0x1f0eba),_0x36df55=this[_0xde46('0x84')]++,_0x19ffe2=_0xde46('0xc5')==_0x1f0eba[_0xde46('0xc9')]?_0x1f0eba[_0xde46('0x37')][_0xde46('0x6b')][_0xde46('0x7c')](0x0,-0x1):_0x1f0eba[_0xde46('0x37')][_0xde46('0x6b')];_0x45e29c[_0xde46('0xd0')](_0x19ffe2)[_0xde46('0xf8')](_0x752ca5,_0x36df55),this[_0xde46('0x5b')][_0xde46('0x47')](_0x36df55,{'userId':_0x3c42c2});}}for(const _0xa56b59 of this[_0xde46('0x1')][_0xde46('0x87')][_0xde46('0x3')](_0x8baee4)[_0xde46('0x44')]({'singleCharacters':!0x0})){const _0x24057c=this[_0xde46('0x35')](_0xa56b59),_0x1b643b=_0xde46('0xc5')==_0xa56b59[_0xde46('0xc9')]?_0xa56b59[_0xde46('0x37')][_0xde46('0x6b')][_0xde46('0x7c')](0x0,-0x1):_0xa56b59[_0xde46('0x37')][_0xde46('0x6b')],_0x5ae9cb=_0x45e29c['getNodeByPath'](_0x1b643b);_0x5ae9cb[_0xde46('0xce')](_0x24057c)>0x0||_0x5ae9cb[_0xde46('0xf8')](_0x24057c,_0x5159da[_0xe142b8++]);}for(const [_0xd54850,_0x44905c]of _0x8baee4['markers'])_0xd54850[_0xde46('0x32')](_0xde46('0x56'))||this[_0xde46('0x9d')]['set'](_0xd54850,_0x44905c);}const _0x3378f3=G(_0xde46('0xbc'));this[_0xde46('0x100')][_0xde46('0x47')](_0xde46('0xbc'),_0x3378f3),this[_0xde46('0x51')]['set'](_0xde46('0xbc'),this[_0xde46('0x12')](_0x3378f3,0x1));const _0x571580=G('$graveyard');this[_0xde46('0x42')][_0xde46('0x47')](_0xde46('0xbc'),_0x571580),this[_0xde46('0xb7')][_0xde46('0x47')](_0xde46('0xbc'),this[_0xde46('0x12')](_0x571580,0x1));const _0x193db8=Array['from'](this[_0xde46('0x42')])[_0xde46('0x2d')](([_0x53fcca,_0x4f80c9])=>[_0x53fcca,q(_0x4f80c9)]);this['_saveMetaData'](this[_0xde46('0x83')],_0x193db8,this[_0xde46('0x9d')],_0x1bbe3f);}[_0xde46('0xfd')](_0x12f1ca){const _0x3daecf=JSON[_0xde46('0xbb')](_0x12f1ca),_0x2b1369=this[_0xde46('0x1')][_0xde46('0x6a')][_0xde46('0x62')]['document'],_0x2bcde9=new _0x80e81a(_0x2b1369,_0x3daecf[_0xde46('0x2d')](_0x7e81fd=>J(_0x7e81fd,this['editor'])));return this['editor']['data'][_0xde46('0xa7')](_0x2bcde9);}[_0xde46('0x33')](_0x36fb4d,_0x3fca42,_0x148f56,_0x2a2d58){const _0x274ed9=new Map(_0x3fca42),_0x29aee0=new Map(_0x5f2d28(_0x2a2d58)),_0x3fe616=new Map();for(const [_0xbd90fb,_0x482a59]of _0x148f56)_0x3fe616[_0xde46('0x47')](_0xbd90fb,{'start':_0x482a59[_0xde46('0xb8')][_0xde46('0xd4')](),'end':_0x482a59[_0xde46('0xeb')][_0xde46('0xd4')](),'rootName':_0x482a59[_0xde46('0xea')][_0xde46('0x58')]});this[_0xde46('0x5a')][_0xde46('0x47')](_0x36fb4d,{'roots':_0x274ed9,'markers':_0x3fe616,'rootsAttributes':_0x29aee0});}['_removeMetaData'](_0x26ede8){this[_0xde46('0x5a')][_0xde46('0xde')](_0x26ede8);}[_0xde46('0xd9')](){this[_0xde46('0xb')](),this[_0xde46('0x88')]=-0x1,this[_0xde46('0x83')]=-0x1,this[_0xde46('0x5a')][_0xde46('0xbe')](),this['init'](this[_0xde46('0xff')]);}[_0xde46('0xb')](){this[_0xde46('0x5b')][_0xde46('0xbe')](),this[_0xde46('0x2f')][_0xde46('0xbe')](),this['_touchedRoots'][_0xde46('0xbe')](),this[_0xde46('0x42')][_0xde46('0xbe')](),this[_0xde46('0x26')][_0xde46('0xbe')](),this[_0xde46('0x100')][_0xde46('0xbe')](),this[_0xde46('0xb9')][_0xde46('0xbe')](),this[_0xde46('0xb7')][_0xde46('0xbe')](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}[_0xde46('0x12')](_0x4a4974,_0x1d8c66=null){let _0x9daf84=null;_0x4a4974['is'](_0xde46('0x11'))||(_0x9daf84=new _0x4d2765(_0x4a4974['name'],{'vid_start':null===_0x1d8c66?this[_0xde46('0x84')]++:_0x1d8c66++}));const _0x342a7d=[];for(const _0xbeaacb of _0x4a4974[_0xde46('0x8f')]())if(_0xbeaacb['is'](_0xde46('0x46'))){_0x342a7d[_0xde46('0x66')](this[_0xde46('0x12')](_0xbeaacb,_0x1d8c66));const _0xa23241=_0x342a7d[_0x342a7d[_0xde46('0xc6')]-0x1];null!==_0x1d8c66&&(_0x1d8c66=_0xa23241['is'](_0xde46('0x46'),_0xde46('0xda'))?_0xa23241[_0xde46('0xce')](_0xde46('0x105'))+0x1:_0xa23241[_0xde46('0xce')]('vid_end')+0x1);}else for(let _0x547c3b=0x0;_0x547c3b<_0xbeaacb[_0xde46('0x9b')];_0x547c3b++)_0x342a7d[_0xde46('0x66')](new _0x4d2765('$text',{'vid':null===_0x1d8c66?this['_revisionId']++:_0x1d8c66++}));if(_0x4a4974['is']('documentFragment')){const _0x5abbf3=G(_0x4a4974[_0xde46('0x58')]);return _0x5abbf3[_0xde46('0xf6')](0x0,_0x342a7d),_0x5abbf3;}return _0x9daf84[_0xde46('0xf8')](_0xde46('0x9c'),null===_0x1d8c66?this[_0xde46('0x84')]++:_0x1d8c66++),_0x9daf84[_0xde46('0xf6')](0x0,_0x342a7d),_0x9daf84;}['_calculateMetaData'](_0x4637bb,_0x274732,_0x2150db){this[_0xde46('0xb')]();const {roots:_0x1836ff,markers:_0x1c0b94,rootsAttributes:_0x37f84c}=this[_0xde46('0x5a')][_0xde46('0x78')](_0x4637bb);this['_baseRoots']=new Map(_0x1836ff),this[_0xde46('0xb9')]=new Map(_0x5f2d28(_0x37f84c));for(const [_0x3b76b2,_0x1bde64]of this[_0xde46('0x100')])if('$graveyard'!==_0x3b76b2&&(this[_0xde46('0x42')]['set'](_0x3b76b2,q(_0x1bde64)),this[_0xde46('0x26')]=new Map(_0x5f2d28(_0x37f84c)),_0x2150db)){const _0x4a9350=this[_0xde46('0x84')];this[_0xde46('0xb7')][_0xde46('0x47')](_0x3b76b2,this[_0xde46('0x12')](_0x1bde64)),this[_0xde46('0x51')][_0xde46('0x47')](_0x3b76b2,this[_0xde46('0x12')](_0x1bde64,_0x4a9350));}this['_startingRevisionId']=this['_revisionId'],this[_0xde46('0x42')][_0xde46('0x47')](_0xde46('0xbc'),q(this['_baseRoots'][_0xde46('0x78')](_0xde46('0xbc')))),_0x2150db&&this[_0xde46('0xb7')][_0xde46('0x47')]('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get'](_0xde46('0xbc'))));for(const [_0x110148,_0x211653]of _0x1c0b94){const _0x4cfec6=this[_0xde46('0x100')][_0xde46('0x78')](_0x211653[_0xde46('0x58')]),_0x81da8d=this[_0xde46('0x42')][_0xde46('0x78')](_0x211653[_0xde46('0x58')]),_0x2a152c=new _0x4af96f(this[_0xde46('0x2a')](_0x211653[_0xde46('0xb8')],_0x4cfec6),this[_0xde46('0x2a')](_0x211653[_0xde46('0xeb')],_0x4cfec6)),_0x564883=this['_fixRange'](_0x2a152c,_0x81da8d);_0x4cfec6['markers'][_0xde46('0x47')](_0x110148,_0x2a152c),this[_0xde46('0x9d')][_0xde46('0x47')](_0x110148,_0x564883);}this['_applyOperations'](_0x4637bb,_0x274732,_0x2150db);}[_0xde46('0x2')](_0x5ecceb,_0x4be594,_0x5377bd){for(const _0x5c2c21 of this['source'][_0xde46('0x89')](_0x5ecceb,_0x4be594))this[_0xde46('0xba')](_0x5c2c21,_0x5377bd);for(const _0x3c5b92 of this[_0xde46('0x42')][_0xde46('0x3f')]())_0x3c5b92[_0xde46('0xcb')][_0xde46('0xbe')]();for(const [_0x48b278,_0x358c02]of this[_0xde46('0x9d')]){this[_0xde46('0x42')][_0xde46('0x78')](_0x358c02['root'][_0xde46('0x58')])['markers'][_0xde46('0x47')](_0x48b278,_0x358c02[_0xde46('0xd4')]());}const _0x3a5fee=new Map(),_0x2ae8bc=new Map();for(const [_0x428a70,_0x253349]of this[_0xde46('0x42')])_0x3a5fee[_0xde46('0x47')](_0x428a70,q(_0x253349)),_0x2ae8bc[_0xde46('0x47')](_0x428a70,this['_diffRootsAttributes'][_0xde46('0x78')](_0x428a70));this[_0xde46('0x33')](_0x4be594,_0x3a5fee,this[_0xde46('0x9d')],_0x2ae8bc);}[_0xde46('0xc1')](_0x1fc278){const _0xed6242=Array['from'](this[_0xde46('0x5a')][_0xde46('0xc0')]());_0xed6242[_0xde46('0xa3')]((_0x43535,_0x4e556c)=>_0x43535-_0x4e556c),_0xed6242[_0xde46('0x3d')]();for(const _0x172a1a of _0xed6242)if(_0x172a1a<_0x1fc278)return _0x172a1a;return Number[_0xde46('0xd1')];}[_0xde46('0x2c')](_0x3c985d,_0x4a2ea0){const _0x20a279=Array[_0xde46('0xfe')](_0x4a2ea0[_0xde46('0xcb')])[_0xde46('0x2d')](([_0x4c4ac5,_0x2fe246])=>[_0x4c4ac5,this['_fixRange'](_0x2fe246,_0x3c985d)]);_0x3c985d['markers']=new Map(_0x20a279);}[_0xde46('0xf7')](_0x3f0c7c){for(const _0x29f948 of this[_0xde46('0x9d')][_0xde46('0x3f')]()){const _0x5ad404=_0x29f948[_0xde46('0x23')](_0x3f0c7c),_0x3e8d5b=_0x4af96f['_createFromRanges'](_0x5ad404);_0x29f948[_0xde46('0xb8')]=_0x3e8d5b['start'],_0x29f948[_0xde46('0xeb')]=_0x3e8d5b[_0xde46('0xeb')];}}[_0xde46('0xba')](_0x459db3,_0xac1027){if(_0xde46('0x4a')==_0x459db3['type']||'detachRoot'==_0x459db3['type'])return void this[_0xde46('0x61')](_0x459db3,_0xac1027);if(_0xde46('0x106')==_0x459db3[_0xde46('0xc9')]){const _0x3caaf4=_0x459db3[_0xde46('0x73')][_0xde46('0xea')]['rootName'];this['_diffRoots'][_0xde46('0x28')](_0x3caaf4)||(this[_0xde46('0x42')]['set'](_0x3caaf4,G(_0x3caaf4,!0x0)),this['_diffRootsAttributes'][_0xde46('0x47')](_0x3caaf4,{}),_0xac1027&&this[_0xde46('0xb7')][_0xde46('0x47')](_0x3caaf4,G(_0x3caaf4,!0x0)));}else{if(_0xde46('0x9')==_0x459db3[_0xde46('0xc9')]||'removeRootAttribute'==_0x459db3[_0xde46('0xc9')]||_0xde46('0xfc')==_0x459db3[_0xde46('0xc9')])return void this[_0xde46('0x6d')](_0x459db3);}const _0x2e6dd6=this[_0xde46('0xc4')](_0x459db3,this[_0xde46('0x42')]);if(_0xde46('0x3a')!==_0x459db3[_0xde46('0xc9')]&&(_0x2e6dd6[_0xde46('0x8')](),this[_0xde46('0xf7')](_0x2e6dd6)),_0xac1027)switch(_0x2e6dd6[_0xde46('0xc9')]){case _0xde46('0x106'):this[_0xde46('0x1c')](_0x459db3);break;case'move':case _0xde46('0xee'):case _0xde46('0xa4'):this[_0xde46('0x52')](_0x459db3);break;case _0xde46('0x39'):this['_handleMergeOperation'](_0x459db3);break;case'split':this[_0xde46('0x22')](_0x459db3);break;case _0xde46('0x3a'):this[_0xde46('0x45')](_0x459db3);}}[_0xde46('0xc4')](_0x440609,_0x102fa1){const _0x4a57e7=_0x440609[_0xde46('0xd4')]();return _0x4a57e7[_0xde46('0x102')]=_0x440609[_0xde46('0x102')],this[_0xde46('0x50')](_0x4a57e7,_0x102fa1),_0x4a57e7;}[_0xde46('0x95')](_0x54db7f){return _0x54db7f[_0xde46('0x2d')](_0x2ebd96=>{const _0x4360b3=this[_0xde46('0x35')](_0x2ebd96);return Number(_0x2ebd96['item'][_0xde46('0xce')](_0x4360b3));});}[_0xde46('0x76')](_0x51dd4c,_0x5883f6){if(_0x51dd4c['is'](_0xde46('0x46'),_0xde46('0xda')))_0x5883f6[_0xde46('0x66')]({'item':_0x51dd4c,'type':_0xde46('0x6e')});else{_0x51dd4c['is']('element')&&_0x5883f6[_0xde46('0x66')]({'item':_0x51dd4c,'type':_0xde46('0xa8')});for(const _0x37fa9b of _0x51dd4c['getChildren']())this[_0xde46('0x76')](_0x37fa9b,_0x5883f6);_0x51dd4c['is'](_0xde46('0x46'))&&_0x5883f6[_0xde46('0x66')]({'item':_0x51dd4c,'type':_0xde46('0xc5')});}return _0x5883f6;}['_getState'](){const _0x41c781=new Map(this[_0xde46('0x5b')]),_0x45ade0=new Map(_0x41c781),_0x5278c9=new Map(),_0x34f8fc={'insertions':{},'deletions':{}},_0x4b51c1={'insertions':{},'deletions':{}},_0x20c578=new Map(),_0x3cb4df=new Set([...this['_baseRoots']['keys'](),...this[_0xde46('0x42')]['keys']()]);_0x3cb4df[_0xde46('0xde')](_0xde46('0xbc'));for(const _0x55aa72 of _0x3cb4df){const _0x2af784=this[_0xde46('0x42')][_0xde46('0x78')](_0x55aa72)||G(_0x55aa72,!0x1),_0x2e4a7d=this[_0xde46('0x100')][_0xde46('0x78')](_0x55aa72)||G(_0x55aa72,!0x1);_0x2af784[_0xde46('0x24')]()||_0x2e4a7d[_0xde46('0x24')]()?(_0x34f8fc['insertions'][_0x55aa72]=q(_0x2af784),_0x34f8fc[_0xde46('0x8b')][_0x55aa72]=q(_0x2e4a7d),this[_0xde46('0x2c')](_0x34f8fc['deletions'][_0x55aa72],_0x2e4a7d),this[_0xde46('0x2c')](_0x34f8fc[_0xde46('0x60')][_0x55aa72],_0x2af784),_0x4b51c1['insertions'][_0x55aa72]=this[_0xde46('0x76')](this[_0xde46('0xb7')][_0xde46('0x78')](_0x55aa72),[]),_0x4b51c1[_0xde46('0x8b')][_0x55aa72]=this[_0xde46('0x76')](this[_0xde46('0x51')][_0xde46('0x78')](_0x55aa72)||G(_0x55aa72,!0x1),[])):_0x3cb4df[_0xde46('0xde')](_0x55aa72);}for(const _0x5f38b5 of _0x3cb4df){const _0x352ea2=_0x4b51c1['insertions'][_0x5f38b5];for(const _0x2b92f8 of _0x352ea2){const _0x31b555=this['_getVidAttributeName'](_0x2b92f8),_0x2dbe18=_0x2b92f8[_0xde46('0xe5')][_0xde46('0xce')](_0x31b555);_0x45ade0[_0xde46('0xde')](_0x2dbe18),_0x2dbe18>=this['_startingRevisionId']&&_0x5278c9[_0xde46('0x47')](_0x2dbe18,_0x41c781[_0xde46('0x78')](_0x2dbe18));}}for(const _0x20ac5e of _0x3cb4df){const _0x3bc547=_0x4b51c1[_0xde46('0x60')][_0x20ac5e],_0x282784=this[_0xde46('0x95')](_0x4b51c1[_0xde46('0x8b')][_0x20ac5e]);let _0x122e80=0x0;for(const _0x8493e3 of _0x3bc547){const _0x53552d=this[_0xde46('0x35')](_0x8493e3),_0xf7cf52=_0x8493e3[_0xde46('0xe5')]['getAttribute'](_0x53552d);if(!_0x5278c9[_0xde46('0x28')](_0xf7cf52)&&!_0x20c578[_0xde46('0x28')](_0xf7cf52)){if(_0x45ade0[_0xde46('0x28')](_0xf7cf52))_0x122e80++;else{if(_0xf7cf52!=_0x282784[_0x122e80]){const _0x8c924e=_0x41c781['get'](_0xf7cf52)||_0x41c781[_0xde46('0x78')](_0x282784[_0x122e80]);for(;_0xf7cf52!=_0x282784[_0x122e80];)_0x45ade0['has'](_0x282784[_0x122e80])||(_0x20c578[_0xde46('0x47')](_0x282784[_0x122e80],_0x8c924e),_0x41c781[_0xde46('0x47')](_0x282784[_0x122e80],_0x8c924e)),_0x122e80++;}_0x122e80++;}}}}for(const _0xbe205c of _0x3cb4df){const _0x472d3a=_0x4b51c1[_0xde46('0x60')][_0xbe205c];for(const _0x541f26 of _0x472d3a){const _0x59d570=this['_getVidAttributeName'](_0x541f26),_0xf66bc=_0x541f26['item']['getAttribute'](_0x59d570);if(_0x20c578[_0xde46('0x28')](_0xf66bc)){const _0x1f1d9d=_0x20c578[_0xde46('0x78')](_0xf66bc);_0x45ade0[_0xde46('0x28')](_0xf66bc)||_0x45ade0[_0xde46('0x47')](_0xf66bc,{..._0x1f1d9d}),_0x5278c9[_0xde46('0x47')](_0xf66bc,{..._0x1f1d9d});}}}for(const _0x747451 of _0x45ade0[_0xde46('0xc0')]())_0x747451>=this[_0xde46('0x1e')]&&_0x45ade0['delete'](_0x747451);const _0x56a417=new Map();for(const _0x194325 of _0x3cb4df){let _0x4bf6b1=_0x4b51c1[_0xde46('0x60')][_0x194325];for(const _0x1e6b32 of _0x4bf6b1)if(_0x1e6b32[_0xde46('0xe5')]['is'](_0xde46('0x46'),_0xde46('0xc8'))){const _0x5e9856=this[_0xde46('0x35')](_0x1e6b32),_0x1ada3c=_0x1e6b32['item'][_0xde46('0xce')](_0x5e9856);if(_0x5278c9[_0xde46('0x28')](_0x1ada3c)){const _0x5ca083=_0x1e6b32[_0xde46('0xe5')][_0xde46('0x1b')][_0xde46('0x1b')][_0xde46('0xce')](_0xde46('0x75')),_0x4a2a84=_0x56a417[_0xde46('0x78')](_0x5ca083)||new Set();_0x4a2a84[_0xde46('0xa9')](_0x5278c9[_0xde46('0x78')](_0x1ada3c)[_0xde46('0xa1')]),_0x56a417[_0xde46('0x47')](_0x5ca083,_0x4a2a84);}}_0x4bf6b1=_0x4b51c1[_0xde46('0x8b')][_0x194325];for(const _0x54dd60 of _0x4bf6b1)if(_0x54dd60[_0xde46('0xe5')]['is'](_0xde46('0x46'),'tableCell')){const _0x515c2e=this[_0xde46('0x35')](_0x54dd60),_0x18145e=_0x54dd60[_0xde46('0xe5')][_0xde46('0xce')](_0x515c2e);if(_0x45ade0['has'](_0x18145e)){const _0x5d053e=_0x54dd60[_0xde46('0xe5')]['parent']['parent']['getAttribute'](_0xde46('0x75')),_0x3d03f3=_0x56a417[_0xde46('0x78')](_0x5d053e)||new Set();_0x3d03f3[_0xde46('0xa9')](_0x45ade0[_0xde46('0x78')](_0x18145e)['userId']),_0x56a417[_0xde46('0x47')](_0x5d053e,_0x3d03f3);}}for(const _0xf21a95 of _0x56a417[_0xde46('0xc0')]())(_0x5278c9[_0xde46('0x28')](_0xf21a95)||_0x45ade0[_0xde46('0x28')](_0xf21a95))&&_0x56a417[_0xde46('0xde')](_0xf21a95);}for(const _0x73819a of _0x3cb4df){const _0x3dc426=_0x4b51c1[_0xde46('0x60')][_0x73819a];let _0x139139=null,_0x3a39c4=null;for(const _0x20b0b4 of _0x3dc426){const _0x562bda=this[_0xde46('0x35')](_0x20b0b4),_0x46a027=_0x20b0b4[_0xde46('0xe5')]['getAttribute'](_0x562bda),_0x4ce5f2=_0x56a417[_0xde46('0x78')](_0x46a027);_0x4ce5f2&&_0xde46('0xa8')==_0x20b0b4[_0xde46('0xc9')]&&(_0x139139=Array[_0xde46('0xfe')](_0x4ce5f2)[0x0],_0x3a39c4=_0x20b0b4['item']['getAttribute'](_0xde46('0x9c'))),_0x139139&&(_0x45ade0[_0xde46('0x47')](_0x46a027,{'userId':_0x139139}),_0x5278c9['set'](_0x46a027,{'userId':_0x139139})),_0x46a027==_0x3a39c4&&(_0x139139=null,_0x3a39c4=null);}}const _0x54b9b6={},_0x56da60=new Set();for(const _0x2fa9bc of _0x3cb4df){const _0x5ab1d5=_0x34f8fc[_0xde46('0x8b')][_0x2fa9bc],_0x4adb8b=_0x34f8fc['insertions'][_0x2fa9bc];for(const {userId:_0x4cb975}of this['_touchedMarkers']['values']())null!==_0x4cb975&&_0x56da60['add'](_0x4cb975);for(const {userId:_0x42134a}of this[_0xde46('0x53')][_0xde46('0x3f')]())null!==_0x42134a&&_0x56da60['add'](_0x42134a);this[_0xde46('0xd')](_0x4adb8b,_0x4b51c1['insertions'][_0x2fa9bc],_0x5278c9,_0xde46('0x91'),_0x56da60),this[_0xde46('0xd')](_0x5ab1d5,_0x4b51c1[_0xde46('0x8b')][_0x2fa9bc],_0x45ade0,'deletion',_0x56da60),_0x54b9b6[_0x2fa9bc]={'insertions':this[_0xde46('0x67')](_0x4adb8b),'deletions':this[_0xde46('0x67')](_0x5ab1d5),'attachChange':this['_touchedRoots']['get'](_0x2fa9bc)||null,'attributesBefore':_0x5f2d28(this[_0xde46('0xb9')]['get'](_0x2fa9bc))||{},'attributesAfter':_0x5f2d28(this['_diffRootsAttributes'][_0xde46('0x78')](_0x2fa9bc))};}return{'diffData':_0x54b9b6,'authorsIds':Array[_0xde46('0xfe')](_0x56da60)};}[_0xde46('0x99')](_0x38bdfc){for(const [,_0x49ae7a]of _0x38bdfc[_0xde46('0xcb')]){const _0xf91973=_0x49ae7a[_0xde46('0xb8')][_0xde46('0x43')]()[_0xde46('0x1a')](_0x1ebc3e=>_0xde46('0xc8')==_0x1ebc3e[_0xde46('0xcc')]);for(const _0x33b70f of _0xf91973)0x1==_0x33b70f[_0xde46('0x48')]&&_0x33b70f['getChild'](0x0)['is'](_0xde46('0x46'),_0xde46('0xdf'))&&_0x33b70f[_0xde46('0xf9')](0x0)[_0xde46('0xf8')](_0xde46('0x27'),!0x0);}}[_0xde46('0x67')](_0x2e9599){this[_0xde46('0x99')](_0x2e9599);const _0x574d91=this[_0xde46('0x1')]['data']['toView'](_0x2e9599,{}),_0x56f434=Array[_0xde46('0xfe')](_0x574d91[_0xde46('0x8f')]())[_0xde46('0x2d')](_0x206751=>this['_getViewJson'](_0x206751));return JSON[_0xde46('0x7e')](_0x56f434);}[_0xde46('0x41')](_0x46565d){if(_0x46565d['is'](_0xde46('0xda')))return _0x46565d[_0xde46('0x109')];{const _0x50844e=_0x46565d;return{'type':Object['keys'](B)[_0xde46('0x63')](_0x16c059=>_0x46565d instanceof B[_0x16c059]),'name':_0x50844e['name'],'attributes':Array[_0xde46('0xfe')](_0x50844e['getAttributes']()),'children':Array[_0xde46('0xfe')](_0x50844e['getChildren']())[_0xde46('0x2d')](_0x4c9242=>this[_0xde46('0x41')](_0x4c9242))};}}[_0xde46('0xd')](_0x43cf64,_0x14df3c,_0x55385b,_0xff6b51,_0x42b4e2){let _0x17000a=null,_0x5ba100=null,_0x38683b=0x0;const _0x5dce27=this[_0xde46('0x1')][_0xde46('0x87')];for(let _0x460418=0x0;_0x460418<_0x14df3c[_0xde46('0xc6')];_0x460418++){const _0x5978c3=this['_getVidAttributeName'](_0x14df3c[_0x460418]),_0x4b5b97=_0x14df3c[_0x460418][_0xde46('0xe5')][_0xde46('0xce')](_0x5978c3),_0x1f5c30=_0x55385b[_0xde46('0x78')](_0x4b5b97),_0x41872d=_0x460418==_0x14df3c['length']-0x1;(!_0x17000a&&_0x1f5c30&&(_0x17000a=_0x1f5c30,_0x5ba100=_0x14df3c[_0x460418]),_0x17000a&&(!_0x1f5c30||_0x1f5c30[_0xde46('0xa1')]!=_0x17000a[_0xde46('0xa1')]))&&(_0x1c7b71(_0x1f5c30,L(_0x5ba100,_0x43cf64,_0x5dce27),L(_0x14df3c[_0x460418],_0x43cf64,_0x5dce27)),_0x17000a=_0x1f5c30||null,_0x5ba100=_0x1f5c30?_0x14df3c[_0x460418]:null),_0x17000a&&_0x41872d&&_0x1c7b71(_0x1f5c30,L(_0x5ba100,_0x43cf64,_0x5dce27),W(_0x14df3c[_0x460418],_0x43cf64,_0x5dce27));}function _0x1c7b71(_0x32b1b8,_0x4f8526,_0x3f6c9e){const _0x55b917=_0x17000a['userId'],_0x34c704=_0xde46('0x56')+_0xff6b51+':'+_0x55b917+':'+_0x38683b++,_0x4f516c=_0x5dce27['createRange'](_0x4f8526,_0x3f6c9e);_0x43cf64[_0xde46('0xcb')][_0xde46('0x47')](_0x34c704,_0x4f516c),null!==_0x55b917&&_0x42b4e2[_0xde46('0xa9')](_0x55b917);}}['_getVidAttributeName'](_0x5b99a9){switch(_0x5b99a9[_0xde46('0xc9')]){case _0xde46('0xa8'):return _0xde46('0x75');case'elementEnd':return _0xde46('0x9c');default:return'vid';}}[_0xde46('0x50')](_0xa94d60,_0x4a21d7){_0xa94d60[_0xde46('0x16')]=null;for(const _0xef4b60 in _0xa94d60){const _0x42d50a=_0xa94d60[_0xef4b60];if(_0x42d50a instanceof _0x5115d2){const _0x43a620=_0x4a21d7[_0xde46('0x78')](_0x42d50a[_0xde46('0xea')][_0xde46('0x58')]);_0xa94d60[_0xef4b60]=this['_fixPosition'](_0x42d50a,_0x43a620);}if(_0x42d50a instanceof _0x4af96f){const _0xef5e48=_0x4a21d7[_0xde46('0x78')](_0x42d50a[_0xde46('0xea')][_0xde46('0x58')]);_0xa94d60[_0xef4b60]=this[_0xde46('0x30')](_0x42d50a,_0xef5e48);}_0xde46('0xea')===_0xef4b60&&(_0xa94d60['root']=_0x4a21d7[_0xde46('0x78')](_0xa94d60[_0xde46('0xea')][_0xde46('0x58')]));}}[_0xde46('0x30')](_0xdfee70,_0x54ddcd){return this['editor'][_0xde46('0x87')][_0xde46('0xdb')](this[_0xde46('0x2a')](_0xdfee70[_0xde46('0xb8')],_0x54ddcd),this['_fixPosition'](_0xdfee70['end'],_0x54ddcd));}[_0xde46('0x2a')](_0x5da520,_0x3a81ed){return this[_0xde46('0x1')][_0xde46('0x87')][_0xde46('0x31')](_0x3a81ed,_0x5da520[_0xde46('0x6b')],_0x5da520[_0xde46('0xa')]);}['_handleInsertOperation'](_0x3235f5){const _0x43c987=this[_0xde46('0xb7')][_0xde46('0x78')](_0x3235f5['position']['root']['rootName']),_0x5ad5d1=this[_0xde46('0x2a')](_0x3235f5[_0xde46('0x73')],_0x43c987),_0x343c72=null===_0x3235f5['_authorId']?null:_0x3235f5[_0xde46('0x102')]||this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')](_0xde46('0x7d'))['me']['id'],_0x165d54=_0x5ad5d1[_0xde46('0x1b')],_0x36fa44=this['_revisionId'],_0x1e32ee=[];for(const _0x16876e of _0x3235f5[_0xde46('0xa5')])if(_0x16876e['is'](_0xde46('0x46')))_0x1e32ee[_0xde46('0x66')](this[_0xde46('0x12')](_0x16876e));else for(let _0x122de6=0x0;_0x122de6<_0x16876e[_0xde46('0x9b')];_0x122de6++)_0x1e32ee['push'](new _0x4d2765(_0xde46('0xda'),{'vid':this['_revisionId']++}));const _0x4200d1=this[_0xde46('0x84')];for(let _0x60c061=_0x36fa44;_0x60c061<_0x4200d1;_0x60c061++)this[_0xde46('0x5b')][_0xde46('0x47')](_0x60c061,{'userId':_0x343c72});_0x165d54[_0xde46('0xf6')](_0x5ad5d1[_0xde46('0xae')],_0x1e32ee);}['_handleMoveOperation'](_0xb662fa){(_0xb662fa=this[_0xde46('0xc4')](_0xb662fa,this[_0xde46('0xb7')]))['_execute']();const _0x39d1c9=null===_0xb662fa[_0xde46('0x102')]?null:_0xb662fa[_0xde46('0x102')]||this['editor'][_0xde46('0x97')][_0xde46('0x78')](_0xde46('0x7d'))['me']['id'],_0x5297a9=_0xb662fa[_0xde46('0x9f')](),_0x489b12=_0x5297a9[_0xde46('0x1b')],_0x4ec823=_0x5297a9[_0xde46('0xae')];!function _0x23d20a(_0x22bbd5,_0x264d34,_0x2eb263,_0x29a6fb){for(let _0x4b33b4=_0x2eb263;_0x4b33b4<_0x29a6fb;_0x4b33b4++){const _0x407ac7=_0x264d34[_0xde46('0xf9')](_0x4b33b4);_0x407ac7['is']('element',_0xde46('0xda'))?_0x22bbd5['set'](_0x407ac7[_0xde46('0xce')](_0xde46('0x105')),{'userId':_0x39d1c9}):(_0x22bbd5[_0xde46('0x47')](_0x407ac7[_0xde46('0xce')]('vid_start'),{'userId':_0x39d1c9}),_0x23d20a(_0x22bbd5,_0x407ac7,0x0,_0x407ac7[_0xde46('0x48')]),_0x22bbd5[_0xde46('0x47')](_0x407ac7['getAttribute'](_0xde46('0x9c')),{'userId':_0x39d1c9}));}}(this['_touched'],_0x489b12,_0x4ec823,_0x4ec823+_0xb662fa[_0xde46('0x104')]);}[_0xde46('0x2b')](_0x3014cf){const _0x5308a4=null===(_0x3014cf=this['_cloneOperation'](_0x3014cf,this[_0xde46('0xb7')]))[_0xde46('0x102')]?null:_0x3014cf[_0xde46('0x102')]||this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')]('Users')['me']['id'],_0x4194db=_0x3014cf[_0xde46('0x65')][_0xde46('0x1b')],_0x4375d5=_0x3014cf['sourcePosition'][_0xde46('0x1b')],_0x5ce666=_0x4194db[_0xde46('0xce')]('vid_end'),_0x515138=_0x4375d5[_0xde46('0xce')](_0xde46('0x75'));_0x4194db[_0xde46('0xf8')](_0xde46('0x9c'),_0x4375d5['getAttribute'](_0xde46('0x9c'))),_0x4375d5[_0xde46('0xf8')](_0xde46('0x9c'),_0x5ce666),this[_0xde46('0x5b')][_0xde46('0x47')](_0x515138,{'userId':_0x5308a4}),this['_touched'][_0xde46('0x47')](_0x5ce666,{'userId':_0x5308a4}),_0x3014cf['_execute']();}[_0xde46('0x22')](_0xd65f07){const _0x5a82a2=null===(_0xd65f07=this[_0xde46('0xc4')](_0xd65f07,this[_0xde46('0xb7')]))[_0xde46('0x102')]?null:_0xd65f07[_0xde46('0x102')]||this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')]('Users')['me']['id'],_0x3956af=_0xd65f07[_0xde46('0x25')],_0x9082c5=_0xd65f07[_0xde46('0x5')][_0xde46('0x1b')];_0xd65f07[_0xde46('0x8')]();const _0x4f4783=_0x9082c5[_0xde46('0xce')]('vid_end'),_0x2aa58f=_0xd65f07[_0xde46('0x98')][_0xde46('0x38')];if(_0x3956af){const _0xfadff5=_0x2aa58f[_0xde46('0xce')](_0xde46('0x9c')),_0x5219bb=_0x9082c5[_0xde46('0xce')](_0xde46('0x9c'));_0x9082c5['_setAttribute'](_0xde46('0x9c'),_0xfadff5),_0x2aa58f[_0xde46('0xf8')](_0xde46('0x9c'),_0x5219bb),this[_0xde46('0x5b')][_0xde46('0x47')](_0x9082c5[_0xde46('0xce')](_0xde46('0x9c')),{'userId':_0x5a82a2}),this[_0xde46('0x5b')]['set'](_0x2aa58f[_0xde46('0xce')](_0xde46('0x75')),{'userId':_0x5a82a2});}else{const _0xcbe847=this['_revisionId']++,_0x51717d=this[_0xde46('0x84')]++;_0x9082c5[_0xde46('0xf8')](_0xde46('0x9c'),_0xcbe847),_0x2aa58f[_0xde46('0xf8')](_0xde46('0x75'),_0x51717d),_0x2aa58f[_0xde46('0xf8')](_0xde46('0x9c'),_0x4f4783),this[_0xde46('0x5b')]['set'](_0xcbe847,{'userId':_0x5a82a2}),this[_0xde46('0x5b')][_0xde46('0x47')](_0x51717d,{'userId':_0x5a82a2});}}[_0xde46('0x45')](_0x5abcdb){if(!_0x5abcdb[_0xde46('0x7a')])return;const _0xac7d98=(_0x5abcdb=this[_0xde46('0xc4')](_0x5abcdb,this[_0xde46('0x42')]))[_0xde46('0xac')]?_0x5abcdb[_0xde46('0xac')][_0xde46('0xea')]:null,_0x144a08=_0x5abcdb[_0xde46('0x107')]?_0x5abcdb[_0xde46('0x107')][_0xde46('0xea')]:null;_0xac7d98&&this[_0xde46('0x9d')][_0xde46('0xde')](_0x5abcdb[_0xde46('0xcc')]),_0x144a08&&this[_0xde46('0x9d')]['set'](_0x5abcdb['name'],_0x5abcdb[_0xde46('0x107')][_0xde46('0xd4')]());const _0xa1449e=null===_0x5abcdb[_0xde46('0x102')]?null:_0x5abcdb[_0xde46('0x102')]||this[_0xde46('0x1')]['plugins']['get'](_0xde46('0x7d'))['me']['id'],_0xd848f4=_0x5abcdb[_0xde46('0xcc')];if(!this[_0xde46('0x2f')][_0xde46('0x28')](_0xd848f4))return void this[_0xde46('0x2f')][_0xde46('0x47')](_0xd848f4,{'range':_0x5abcdb[_0xde46('0xac')],'userId':_0xa1449e});const _0x2a2269=this['_touchedMarkers'][_0xde46('0x78')](_0xd848f4),_0x5efee1=_0x2a2269[_0xde46('0xb5')],_0x2d5b87=_0x5abcdb[_0xde46('0x107')];null==_0x5efee1&&null==_0x2d5b87||_0x5efee1&&_0x2d5b87&&_0x5efee1[_0xde46('0x4')](_0x2d5b87)?this[_0xde46('0x2f')][_0xde46('0xde')](_0x5abcdb[_0xde46('0xcc')]):_0x2a2269[_0xde46('0xa1')]=_0xa1449e;}['_handleRootOperation'](_0xfb4247,_0xb67413){this[_0xde46('0x42')][_0xde46('0x28')](_0xfb4247[_0xde46('0x58')])?this[_0xde46('0x42')][_0xde46('0x78')](_0xfb4247['rootName'])['_isAttached']=_0xfb4247[_0xde46('0xe8')]:(this[_0xde46('0x42')][_0xde46('0x47')](_0xfb4247[_0xde46('0x58')],G(_0xfb4247['rootName'],!0x0)),this['_diffRootsAttributes'][_0xde46('0x47')](_0xfb4247['rootName'],{}),_0xb67413&&this[_0xde46('0xb7')][_0xde46('0x47')](_0xfb4247['rootName'],G(_0xfb4247[_0xde46('0x58')],!0x0)));const _0x769c13=null===_0xfb4247['_authorId']?null:_0xfb4247[_0xde46('0x102')]||this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')](_0xde46('0x7d'))['me']['id'],_0x1b29ff=this[_0xde46('0x53')][_0xde46('0x78')](_0xfb4247[_0xde46('0x58')]);_0x1b29ff&&_0x1b29ff[_0xde46('0xa1')]===_0x769c13?this['_touchedRoots'][_0xde46('0xde')](_0xfb4247[_0xde46('0x58')]):this['_touchedRoots']['set'](_0xfb4247[_0xde46('0x58')],{'userId':_0x769c13,'isAttached':_0xfb4247[_0xde46('0xe8')]});}[_0xde46('0x6d')](_0x4ec9ab){const _0x38a981=this[_0xde46('0x26')][_0xde46('0x78')](_0x4ec9ab['root'][_0xde46('0x58')]);null===_0x4ec9ab['newValue']?delete _0x38a981[_0x4ec9ab['key']]:_0x38a981[_0x4ec9ab['key']]=_0x4ec9ab[_0xde46('0xc7')];}}function q(_0x56d28c){const _0x3f7237=G(_0x56d28c[_0xde46('0x58')],_0x56d28c[_0xde46('0x24')]());for(const _0x451afe of _0x56d28c[_0xde46('0x8f')]()){const _0x17c2e9=_0x451afe[_0xde46('0x0')](!0x0);_0x3f7237[_0xde46('0xe2')](_0x17c2e9);}return _0x3f7237;}function G(_0x383e74,_0xed9a46=!0x0){const _0x3ab3f8=new _0x578f11();return _0x3ab3f8[_0xde46('0x58')]=_0x383e74,_0x3ab3f8['_isAttached']=_0xed9a46,_0x3ab3f8['isAttached']=()=>_0x3ab3f8[_0xde46('0xbd')],_0x3ab3f8;}function L(_0x56ed7d,_0xe74dfb,_0x285d37){const _0x3ac04a=_0xde46('0xc5')==_0x56ed7d[_0xde46('0xc9')]?_0x285d37[_0xde46('0x1f')](_0x56ed7d[_0xde46('0xe5')],'end'):_0x285d37[_0xde46('0x82')](_0x56ed7d[_0xde46('0xe5')]);return _0x285d37[_0xde46('0x31')](_0xe74dfb,_0x3ac04a[_0xde46('0x6b')],_0x3ac04a[_0xde46('0xa')]);}function W(_0x3cea5d,_0x41d17d,_0x15f13f){const _0x3cbf87=_0xde46('0xa8')==_0x3cea5d['type']?_0x15f13f[_0xde46('0x1f')](_0x3cea5d[_0xde46('0xe5')],0x0):_0x15f13f[_0xde46('0xe9')](_0x3cea5d[_0xde46('0xe5')]);return _0x15f13f['createPositionFromPath'](_0x41d17d,_0x3cbf87[_0xde46('0x6b')],_0x3cbf87[_0xde46('0xa')]);}
|
|
23
|
+
const _0x2c76=['keys','conversion','revision:','values','_loadedStateData','merge','_fixOperation','_handleMarkerOperation','find','includes','has','getLatestVersion','sourcePosition','clone','_insertChild','getRoot','type','startsWith','_savedMetaData','creator','item','roots','parent','elementEnd','_authorId','key','markers','_lastTo','keepParagraph','_baseRoots','editor','_generateTape','finally','_operations','getIndex','rootName','getAncestors','_setAttribute','insertions','getAttributes','getRevisionRootsAttributes','_startingVersion','updateRevisions','path','toData','_clone','PendingActions','getChild','vid_end','toModel','nodeAfter','saveRevision','offsetSize','_makeIdsRoot','_initialRevisionId','insert','some','getAttribute','buildRevisionData','_addPendingAction','history','document','_loadRevisionData','_getPreviousFrom','_isInit','_markChanges','push','_baseRootsAttributes','_revisionDataBuilder','reInit','ready','isEqual','_removeMetaData','_applyOperations','_getFromVersion','diffData','model','removeRootAttribute','requires','_removePendingAction','_isPendingUpdate','_createCurrentRevision','get','isEnabled','slice','createPositionAfter','plugins','_update','vid_start','getTime','_transformMarkers','_handleRootOperation','Users','isAttached','addRootAttribute','createRange','getOperation','getCurrentRevisionId','_handleMoveOperation','initialData','Empty\x20document','addRevision','userId','authorsIds','loadState','_handleSplitOperation','root','getData','_findInsertionIndex','for','attributesBefore','toView','end','getRevisionDocumentData','_lastFrom','source','_prepareViewToSave','upcast','elementStart','_diffRootsAttributes','_handleOperation','_loadState','_copyMarkers','_getVidAttributeName','creatorId','delete','_processRootBeforeSave','isReady','_continueCurrentRevision','attributesAfter','RealTimeCollaborationClient','_calculateMetaData','max','previousPosition','$text','set','reverse','_createFromRanges','size','getRevision','split','setSource','editing','splitPosition','$graveyard','isAdd','toVersion','_bufferedUpdates','trim','setRevisionData','view','targetPosition','_isAttached','useFillerType','string','from','define','element','affectsData','attachChange','paragraph','map','_getViewJson','deletions','attributes','newRange','graveyardPosition','children','RevisionTracker','dataDowncast','nodes','version','_handleRootAttributeOperation','authors','_saveMetaData','editor-initial-data-replaced-with-revision-data','howMany','_touchedRoots','_startingRevisionId','_touchedMarkers','config','RevisionsRepository','revision-start','getChildren','Initial\x20revision','processor','_removeRevisionMarkers','add','revisionHistory.resumeUnsavedRevision','length','getWalker','offset','_idsRoots','fromEntries','_replaceEditorDataWithRevisionData','getNodeByPath','insertion','then','createPositionFromPath','PENDING_ACTION_REVISION_HISTORY','NEGATIVE_INFINITY','getRootNames','_cloneOperation','pluginName','dataToMarker','_pendingAction','_fixPosition','data-revision-','createRangeIn','createPositionAt','documentFragment','_source','rootsAttributes','default','_makeRevision','createRevision','addRoot','shift','move','revision','parse','init','update','stickiness','_handleInsertOperation','_execute','_touched','remove','_reset','_getState','fromVersion','marker','getMovedRangeStart','forEach','reinsert','_markers','detachRoot','_createInitialRevision','initial','_fixRange','collaboration.channelId','filter','currentRevision','adapter','range','start','marked','clear','tableCell','_makeModelFromViewString','_getBaseVids','getUser','oldRange','_revisionId','markerToData','_diffRoots','_bufferUpdate','addRevisionData','createdAt','repository','getRevisions','locale','_handleMergeOperation','name','revision-end','afterInit','resolve','position','data','_setConversion','sendBufferedUpdates','getOperations','_baseIdsRoots','childCount'];(function(_0x3be0ca,_0x2c7654){const _0x26f330=function(_0x26182e){while(--_0x26182e){_0x3be0ca['push'](_0x3be0ca['shift']());}};_0x26f330(++_0x2c7654);}(_0x2c76,0x15f));const _0x26f3=function(_0x3be0ca,_0x2c7654){_0x3be0ca=_0x3be0ca-0x0;let _0x26f330=_0x2c76[_0x3be0ca];return _0x26f330;};import{Users as _0x395c49}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x459470,PendingActions as _0x4e968d}from'ckeditor5/src/core.js';import{logWarning as _0x26e46b,uid as _0x22f0b9}from'ckeditor5/src/utils.js';import{Position as _0x4bbf54,Range as _0x2e3d02,Element as _0x45c2f4,DocumentFragment as _0x47a350,ViewText as _0x38bd7b,ViewElement as _0x587620,ViewContainerElement as _0x314654,ViewAttributeElement as _0x3e3f41,ViewEmptyElement as _0x5704da,ViewRawElement as _0x13ac87,ViewUIElement as _0x343fff,ViewDocumentFragment as _0x596646}from'ckeditor5/src/engine.js';import _0x36b002 from'./revisionsrepository.js';import{getTranslation as _0x13d8b1}from'./utils/common-translations.js';import{cloneDeep as _0x395b4b,isEqual as _0x29db60}from'lodash-es';const B={'c':_0x314654,'a':_0x3e3f41,'e':_0x5704da,'r':_0x13ac87,'u':_0x343fff};export default class l extends _0x459470{static get[_0x26f3('0x7e')](){return _0x26f3('0x5b');}static get[_0x26f3('0x1')](){return[_0x395c49,_0x36b002,_0x4e968d];}constructor(_0x2c4b12){super(_0x2c4b12),this[_0x26f3('0xa6')]=null,this['currentRevision']=null,this[_0x26f3('0x109')]=new H(this['editor']),this[_0x26f3('0xfb')]=this[_0x26f3('0xe3')]['config'][_0x26f3('0x5')]('collaboration.channelId')||_0x26f3('0xa1'),this[_0x26f3('0x46')]=new Map(),this['_loadedStateData']=null;const _0x250d85=_0x22f0b9();this[_0x26f3('0x86')]={'history':this[_0x26f3('0xe3')]['model'][_0x26f3('0x102')][_0x26f3('0x101')],'getLatestVersion':()=>Promise['resolve'](this['editor'][_0x26f3('0x111')]['document'][_0x26f3('0x5e')]),'getCurrentRevisionId':()=>_0x250d85},this[_0x26f3('0x3a')](_0x26f3('0x32'),!0x1),this[_0x26f3('0x3a')](_0x26f3('0x6'),!0x0),this[_0x26f3('0x3a')](_0x26f3('0x3'),!0x1),this[_0x26f3('0xe3')]['config'][_0x26f3('0x4f')](_0x26f3('0x6f'),!0x0),this[_0x26f3('0xe3')]['conversion'][_0x26f3('0x20')](_0x26f3('0x28'))[_0x26f3('0x7f')]({'view':_0x26f3('0x8e')});}[_0x26f3('0x90')](){this['repository']=this[_0x26f3('0xe3')][_0x26f3('0x9')][_0x26f3('0x5')](_0x26f3('0x68')),this[_0x26f3('0xc0')](),this[_0x26f3('0xe3')][_0x26f3('0xbf')]['on'](_0x26f3('0x10b'),()=>{const _0x45514d=this['repository'][_0x26f3('0x3e')](0x0),_0x2c2580=_0x45514d&&null===_0x45514d[_0x26f3('0xd8')]?_0x45514d:null;if(this[_0x26f3('0x33')]=!!_0x2c2580&&this[_0x26f3('0xe3')]['config']['get'](_0x26f3('0x6f')),this[_0x26f3('0xe3')][_0x26f3('0x9')]['has'](_0x26f3('0x35'))){const _0x542684=this[_0x26f3('0x86')]['getCurrentRevisionId'](),_0x32bfa2=this['repository'][_0x26f3('0x3e')](_0x542684);if(_0x32bfa2)this[_0x26f3('0xee')]=_0x32bfa2['fromVersion'],this[_0x26f3('0x33')]=!0x1;else{const _0x3773ca=this[_0x26f3('0x86')][_0x26f3('0x101')][_0x26f3('0xe6')][_0x26f3('0xcd')](_0x27f95e=>!_0x27f95e[_0x26f3('0x105')]),_0x1ce031=_0x3773ca?_0x3773ca['baseVersion']:this[_0x26f3('0x86')][_0x26f3('0x101')][_0x26f3('0x5e')];_0x45514d?(_0x45514d[_0x26f3('0x45')]<_0x1ce031&&_0x45514d[_0x26f3('0xa')]({'toVersion':_0x1ce031}),this[_0x26f3('0x33')]?(this['_source'][_0x26f3('0x14')]=()=>_0x2c2580['id'],this['_startingVersion']=_0x2c2580[_0x26f3('0x99')]):(this[_0x26f3('0xee')]=_0x45514d[_0x26f3('0x45')],this[_0x26f3('0x33')]=!0x1)):(this['_startingVersion']=_0x1ce031,this[_0x26f3('0x33')]=!0x1);}}else _0x2c2580&&(this['editor'][_0x26f3('0x111')]['document']['history'][_0x26f3('0x5e')]=Math[_0x26f3('0x37')](_0x2c2580[_0x26f3('0x45')],this[_0x26f3('0xe3')]['model'][_0x26f3('0x102')][_0x26f3('0x101')][_0x26f3('0x5e')]),_0x2c2580[_0x26f3('0x99')]===_0x2c2580[_0x26f3('0x45')]?(0x0!==_0x2c2580[_0x26f3('0x99')]&&(this[_0x26f3('0x86')][_0x26f3('0x14')]=()=>_0x2c2580['id']),this[_0x26f3('0x33')]=!0x1):this[_0x26f3('0x33')]&&(this[_0x26f3('0x86')]['getCurrentRevisionId']=()=>_0x2c2580['id'],this['_startingVersion']=_0x2c2580[_0x26f3('0x99')])),this['_continueCurrentRevision']||(this[_0x26f3('0xee')]=this[_0x26f3('0xe3')][_0x26f3('0x111')][_0x26f3('0x102')][_0x26f3('0x5e')]);this[_0x26f3('0x109')][_0x26f3('0x90')](this[_0x26f3('0x86')][_0x26f3('0x101')]),this[_0x26f3('0xa0')](this[_0x26f3('0xee')]),this['_createCurrentRevision'](this[_0x26f3('0xee')]),this['adapter']&&this[_0x26f3('0xc1')]();}),this['bind'](_0x26f3('0x32'))['to'](this,_0x26f3('0x3'),_0x15329d=>!_0x15329d);}async[_0x26f3('0xbc')](){if(this[_0x26f3('0xb6')][_0x26f3('0x70')]>0x0){const _0x115287=this['repository']['getRevision'](0x0),_0x281eb0=await this['getRevisionDocumentData'](_0x115287),_0x126d63=await this[_0x26f3('0xed')](_0x115287);this[_0x26f3('0x75')](_0x281eb0,_0x126d63);}}[_0x26f3('0x40')](_0x39d2fe){this['_source']=_0x39d2fe;}async[_0x26f3('0x91')](){const _0x6e8ab0=await this[_0x26f3('0x86')][_0x26f3('0xd0')]();if(_0x6e8ab0>this['currentRevision']['toVersion']){await this[_0x26f3('0x2c')]();const _0xe3bb01=this['buildRevisionData']({'revision':this[_0x26f3('0xa5')],'to':_0x6e8ab0});_0xe3bb01['authors']=_0xe3bb01[_0x26f3('0x1a')][_0x26f3('0x54')](_0xb25d00=>this[_0x26f3('0xe3')][_0x26f3('0x9')][_0x26f3('0x5')](_0x26f3('0xf'))[_0x26f3('0xae')](_0xb25d00)),this[_0x26f3('0xa5')][_0x26f3('0xa')](_0xe3bb01);}}async[_0x26f3('0x2c')](){this[_0x26f3('0x33')]&&!this[_0x26f3('0xc9')]&&(await this[_0x26f3('0x103')](this[_0x26f3('0xa5')]),this['_revisionDataBuilder'][_0x26f3('0x1b')](this['currentRevision']),this[_0x26f3('0xc9')]={'fromVersion':this[_0x26f3('0xa5')][_0x26f3('0x99')],'authors':this[_0x26f3('0xa5')][_0x26f3('0x60')][_0x26f3('0x7')]()});}async[_0x26f3('0xf8')](_0x506a5a={},_0x395f51=null){const _0x4b36f6=[];await this[_0x26f3('0x2c')](),this[_0x26f3('0x33')]=!0x1,_0x395f51>this['currentRevision'][_0x26f3('0x45')]&&(_0x395f51=null),null===_0x395f51&&(_0x395f51=await this['_source'][_0x26f3('0xd0')]());const _0x4e3819=this[_0x26f3('0x10f')](_0x395f51),_0x48f681=this[_0x26f3('0xff')]({'from':_0x4e3819,'to':_0x395f51});if(this[_0x26f3('0xa5')][_0x26f3('0x45')]<_0x395f51){const _0x137256=this[_0x26f3('0xff')]({'revision':this[_0x26f3('0xa5')],'from':_0x395f51,'to':_0x395f51});_0x137256[_0x26f3('0x60')]=[],_0x137256['authorsIds']=[],_0x137256['id']=this[_0x26f3('0xa5')]['id'],this[_0x26f3('0xa5')][_0x26f3('0xa')](_0x137256,!0x0),delete _0x137256[_0x26f3('0x60')],_0x4b36f6[_0x26f3('0x107')](_0x137256);}_0x506a5a[_0x26f3('0x2f')]=this['editor'][_0x26f3('0x9')][_0x26f3('0x5')](_0x26f3('0xf'))['me']['id'],_0x506a5a[_0x26f3('0xba')]=_0x506a5a[_0x26f3('0xba')]||null,_0x506a5a['id']=_0x506a5a['id']||_0x22f0b9(),_0x506a5a={..._0x506a5a,..._0x48f681};const _0x25987d=this[_0x26f3('0xb4')](_0x506a5a);_0x4b36f6[_0x26f3('0x107')](_0x506a5a);const _0x4ad0a2=this['repository'][_0x26f3('0xe7')](_0x25987d);if(0x0!==_0x4ad0a2){const _0x41df62=this['repository']['getRevision'](_0x4ad0a2-0x1);if(_0x41df62[_0x26f3('0x99')]!==_0x395f51){const _0x69d009=this[_0x26f3('0x109')][_0x26f3('0x1e')](_0x395f51,_0x41df62[_0x26f3('0x45')]),_0x6f8949={'id':_0x41df62['id'],'diffData':_0x69d009[_0x26f3('0x110')],'authorsIds':_0x69d009[_0x26f3('0x1a')],'authors':_0x69d009[_0x26f3('0x1a')][_0x26f3('0x54')](_0xf3e916=>this[_0x26f3('0xe3')][_0x26f3('0x9')][_0x26f3('0x5')](_0x26f3('0xf'))[_0x26f3('0xae')](_0xf3e916)),'fromVersion':_0x395f51};_0x41df62===this['currentRevision']&&(_0x6f8949[_0x26f3('0xb5')]=new Date(_0x506a5a[_0x26f3('0xb5')][_0x26f3('0xc')]()+0xa)),_0x41df62[_0x26f3('0xa')](_0x6f8949,!0x0),delete _0x6f8949[_0x26f3('0x60')],_0x4b36f6[_0x26f3('0x107')](_0x6f8949);}}if(this[_0x26f3('0xa6')]){for(const _0x43574c of _0x4b36f6)this[_0x26f3('0xb3')](_0x43574c['id'],_0x43574c,!0x0);this[_0x26f3('0xc1')]();}return _0x25987d;}[_0x26f3('0xb4')](_0x5e4aa7){const _0x388cb9=this[_0x26f3('0xb6')][_0x26f3('0x8a')](_0x5e4aa7);return this[_0x26f3('0xa6')]&&_0x388cb9['on'](_0x26f3('0xa'),(_0xa4d02,_0x55df14,_0x470e33)=>{_0x470e33||(this[_0x26f3('0xb3')](_0x55df14['id'],_0x55df14,!0x0),this['sendBufferedUpdates']());}),this[_0x26f3('0xb6')][_0x26f3('0x18')](_0x388cb9,this[_0x26f3('0x1f')](_0x388cb9)),_0x388cb9;}async[_0x26f3('0x24')](_0x5c9e79){await this[_0x26f3('0x103')](_0x5c9e79);const _0x2dcdff={};for(const _0x3afd77 in _0x5c9e79['diffData']){if(_0x5c9e79[_0x26f3('0x110')][_0x3afd77][_0x26f3('0x52')]&&!_0x5c9e79[_0x26f3('0x110')][_0x3afd77][_0x26f3('0x52')][_0x26f3('0x10')])continue;const _0x144591=this['_removeRevisionMarkers'](JSON[_0x26f3('0x8f')](_0x5c9e79[_0x26f3('0x110')][_0x3afd77][_0x26f3('0xeb')])),_0x3e12f3=this[_0x26f3('0xe3')][_0x26f3('0x41')][_0x26f3('0x49')]['document'],_0x129763=new _0x596646(_0x3e12f3,_0x144591['map'](_0x284018=>J(_0x284018,this[_0x26f3('0xe3')])));this[_0x26f3('0xe3')][_0x26f3('0xbf')][_0x26f3('0x6c')][_0x26f3('0x4c')](_0x26f3('0xa9')),_0x2dcdff[_0x3afd77]=this['editor'][_0x26f3('0xbf')]['processor'][_0x26f3('0xf1')](_0x129763),this['editor'][_0x26f3('0xbf')][_0x26f3('0x6c')][_0x26f3('0x4c')](_0x26f3('0x88'));}return _0x2dcdff;}async[_0x26f3('0xed')](_0x509dea){await this['_loadRevisionData'](_0x509dea);const _0xc79751={};for(const _0x485f60 in _0x509dea[_0x26f3('0x110')])_0x509dea[_0x26f3('0x110')][_0x485f60][_0x26f3('0x52')]&&!_0x509dea[_0x26f3('0x110')][_0x485f60][_0x26f3('0x52')]['isAttached']||(_0xc79751[_0x485f60]=_0x509dea[_0x26f3('0x110')][_0x485f60]['attributesAfter']||{});return _0xc79751;}[_0x26f3('0xc1')](){if(0x0===this[_0x26f3('0x46')]['size'])return;if(this[_0x26f3('0x3')])return;let _0x2c8b43=Array[_0x26f3('0x4e')](this[_0x26f3('0x46')][_0x26f3('0xc8')]());this[_0x26f3('0x46')][_0x26f3('0xaa')]();for(let _0x479a35=0x0;_0x479a35<_0x2c8b43['length'];_0x479a35++){const _0x36a597=_0x2c8b43[_0x479a35];let _0x192e4c=!0x1;for(const _0x429584 of Object[_0x26f3('0xc5')](_0x36a597))void 0x0===_0x36a597[_0x429584]?delete _0x36a597[_0x429584]:'id'!==_0x429584&&(_0x192e4c=!0x0);_0x192e4c||(_0x2c8b43[_0x479a35]=null);}if(_0x2c8b43=_0x2c8b43['filter'](_0x2fc902=>null!==_0x2fc902),!_0x2c8b43[_0x26f3('0x70')])return;for(let _0x4274e6=0x0;_0x4274e6<_0x2c8b43[_0x26f3('0x70')];_0x4274e6++){const _0xc20aef=_0x2c8b43[_0x4274e6];void 0x0!==_0xc20aef[_0x26f3('0x99')]&&void 0x0===_0xc20aef[_0x26f3('0x45')]&&(_0xc20aef[_0x26f3('0x45')]=this['repository'][_0x26f3('0x3e')](_0xc20aef['id'])[_0x26f3('0x45')]),void 0x0!==_0xc20aef[_0x26f3('0x45')]&&void 0x0===_0xc20aef[_0x26f3('0x99')]&&(_0xc20aef[_0x26f3('0x99')]=this[_0x26f3('0xb6')][_0x26f3('0x3e')](_0xc20aef['id'])[_0x26f3('0x99')]);}const _0x34d0e7=this['editor'][_0x26f3('0x67')][_0x26f3('0x5')](_0x26f3('0xa3'));this[_0x26f3('0x3')]=!0x0,this['_addPendingAction'](),this[_0x26f3('0xa6')][_0x26f3('0xef')](_0x2c8b43,_0x34d0e7)[_0x26f3('0xe5')](()=>{this[_0x26f3('0x3')]=!0x1;})[_0x26f3('0x78')](_0x33b1e7=>{if(_0x33b1e7)for(const _0x46124e of _0x33b1e7)this[_0x26f3('0x48')]({'id':_0x46124e['id'],'createdAt':_0x46124e[_0x26f3('0xb5')]});this[_0x26f3('0x2')](),this[_0x26f3('0xc1')]();});}[_0x26f3('0x75')](_0xfc9dab,_0x6d61d2){let _0x33e2e7=this[_0x26f3('0xe3')]['config'][_0x26f3('0x5')](_0x26f3('0x16')),_0x12313b=this[_0x26f3('0xe3')][_0x26f3('0x67')][_0x26f3('0x5')](_0x26f3('0x87'));if(void 0x0===_0x33e2e7){_0x33e2e7={};for(const _0x23985a of this[_0x26f3('0xe3')][_0x26f3('0x111')]['document'][_0x26f3('0x7c')]())_0x33e2e7[_0x23985a]='';}if('string'==typeof _0x33e2e7&&(_0x33e2e7={'main':_0x33e2e7}),void 0x0===_0x12313b){_0x12313b={};for(const _0x26f6df of this['editor'][_0x26f3('0x111')][_0x26f3('0x102')]['getRootNames']())_0x12313b[_0x26f6df]={};}let _0x366923=!0x1;const _0x2d3ebf=Object[_0x26f3('0xc5')](_0x33e2e7),_0x2dd3af=Object[_0x26f3('0xc5')](_0xfc9dab);for(const _0x5818d2 of _0x2d3ebf){if(_0x33e2e7[_0x5818d2]!==_0xfc9dab[_0x5818d2]&&''!==_0x33e2e7[_0x5818d2][_0x26f3('0x47')]()){_0x366923=!0x0;break;}if(!_0x29db60(_0x12313b[_0x5818d2],_0x6d61d2[_0x5818d2])&&Object[_0x26f3('0xc5')](_0x12313b[_0x5818d2])[_0x26f3('0x70')]>0x0){_0x366923=!0x0;break;}}_0x366923||(_0x366923=_0x2dd3af[_0x26f3('0xfd')](_0x215366=>!this[_0x26f3('0xe3')][_0x26f3('0x111')][_0x26f3('0x102')][_0x26f3('0xd4')](_0x215366))),_0x366923&&_0x26e46b(_0x26f3('0x62'),{'editorData':_0x33e2e7,'editorRootsAttributes':_0x12313b,'revisionData':_0xfc9dab,'revisionRootsAttributes':_0x6d61d2}),this['editor'][_0x26f3('0x67')][_0x26f3('0x3a')](_0x26f3('0x16'),_0xfc9dab),this[_0x26f3('0xe3')]['config']['set'](_0x26f3('0x87'),_0x6d61d2);}[_0x26f3('0x100')](){if(!this[_0x26f3('0x80')]){const _0x957633=this[_0x26f3('0xe3')][_0x26f3('0x9')][_0x26f3('0x5')](_0x26f3('0xf3'));this['_pendingAction']=_0x957633[_0x26f3('0x6e')](_0x13d8b1(this[_0x26f3('0xe3')][_0x26f3('0xb8')],_0x26f3('0x7a')));}}[_0x26f3('0x2')](){this[_0x26f3('0x80')]&&(this['editor']['plugins']['get'](_0x26f3('0xf3'))[_0x26f3('0x96')](this[_0x26f3('0x80')]),this[_0x26f3('0x80')]=null);}[_0x26f3('0x1f')](_0x3b79f5){const _0x258376=this[_0x26f3('0xb6')][_0x26f3('0xb7')]();_0x258376['reverse']();let _0x3dd4a1=0x0;for(;_0x3dd4a1<_0x258376[_0x26f3('0x70')];){const _0x12c421=_0x258376[_0x3dd4a1];if(_0x12c421===this[_0x26f3('0xa5')]){_0x3dd4a1++;continue;}if(_0x12c421['id']===this[_0x26f3('0xfb')])break;const _0xd1fe15=_0x3b79f5['toVersion']-_0x12c421[_0x26f3('0x45')]||_0x3b79f5['fromVersion']-_0x12c421[_0x26f3('0x99')];if(_0xd1fe15>0x0)break;if(_0xd1fe15<0x0)_0x3dd4a1++;else{if(!_0x3b79f5['creator']&&_0x12c421['creator'])break;if(_0x12c421[_0x26f3('0xd8')]||!_0x3b79f5[_0x26f3('0xd8')]){if(_0x3b79f5[_0x26f3('0xb5')]>_0x12c421[_0x26f3('0xb5')])break;_0x3dd4a1++;}else _0x3dd4a1++;}}return _0x3dd4a1;}[_0x26f3('0x48')](_0xcee8bc){const _0xfef864=this[_0x26f3('0xb6')][_0x26f3('0x3e')](_0xcee8bc['id']);if(_0xcee8bc[_0x26f3('0xb5')]&&(_0xcee8bc[_0x26f3('0xb5')]=new Date(_0xcee8bc['createdAt'])),_0xcee8bc[_0x26f3('0x1a')]){const _0x5d7b49=this[_0x26f3('0xe3')][_0x26f3('0x9')][_0x26f3('0x5')]('Users');_0xcee8bc[_0x26f3('0x60')]=_0xcee8bc['authorsIds'][_0x26f3('0x54')](_0x4706a2=>_0x5d7b49[_0x26f3('0xae')](_0x4706a2));}_0xfef864['_update'](_0xcee8bc,!0x0);}['buildRevisionData']({revision:_0x27746f=null,from:_0x1b0282=null,to:_0x37f8bc=null}){_0x1b0282=null!==_0x1b0282?_0x1b0282:_0x27746f[_0x26f3('0x99')],_0x37f8bc=null!==_0x37f8bc?_0x37f8bc:_0x27746f[_0x26f3('0x45')];const _0x4cf319=this[_0x26f3('0x109')]['getData'](_0x1b0282,_0x37f8bc),_0x2858ec={'diffData':_0x4cf319[_0x26f3('0x110')],'authorsIds':_0x4cf319[_0x26f3('0x1a')],'fromVersion':_0x1b0282,'toVersion':_0x37f8bc};if(!_0x27746f||_0x37f8bc!==_0x27746f[_0x26f3('0x45')]){const _0x324fea=_0x37f8bc-0x1,_0xbbc4fc=this[_0x26f3('0x86')][_0x26f3('0x101')][_0x26f3('0x13')](_0x324fea);_0x2858ec['createdAt']=_0xbbc4fc&&_0xbbc4fc[_0x26f3('0xb5')]||new Date();}if(this[_0x26f3('0xc9')]&&_0x1b0282===this['_loadedStateData'][_0x26f3('0x99')])for(const _0x51080b of this['_loadedStateData'][_0x26f3('0x60')])_0x2858ec[_0x26f3('0x1a')][_0x26f3('0xce')](_0x51080b['id'])||_0x2858ec[_0x26f3('0x1a')][_0x26f3('0x107')](_0x51080b['id']);return _0x2858ec;}['_loadRevisionData'](_0x223df3){if(!_0x223df3||_0x223df3['diffData'])return Promise[_0x26f3('0xbd')]();{const _0x558030=this[_0x26f3('0xe3')][_0x26f3('0x67')][_0x26f3('0x5')](_0x26f3('0xa3'));return this[_0x26f3('0xa6')]['getRevision']({'channelId':_0x558030,'revisionId':_0x223df3['id']})[_0x26f3('0x78')](_0x585905=>{_0x223df3[_0x26f3('0x110')]=_0x585905[_0x26f3('0x110')];});}}['_bufferUpdate'](_0x2b9a41,_0x168a46,_0x10d960){if(this[_0x26f3('0x46')][_0x26f3('0xcf')](_0x2b9a41)){const _0x563b0d=this['_bufferedUpdates'][_0x26f3('0x5')](_0x2b9a41);_0x168a46=_0x10d960?{..._0x563b0d,..._0x168a46}:{..._0x168a46,..._0x563b0d};}this['_bufferedUpdates'][_0x26f3('0x3a')](_0x2b9a41,_0x168a46);}['_getFromVersion'](_0x5806da){const _0x19304d=this[_0x26f3('0xb6')]['getRevisions']();_0x19304d[_0x26f3('0x3b')](),_0x19304d[_0x26f3('0x8c')]();const _0x5a9f1d=_0x19304d[_0x26f3('0xcd')](_0x2a79d9=>_0x2a79d9[_0x26f3('0x45')]<=_0x5806da)['toVersion'];return _0x5a9f1d<this[_0x26f3('0xee')]?this['_startingVersion']:_0x5a9f1d;}[_0x26f3('0xa0')](_0x40f452){const _0x2abe13=this[_0x26f3('0xb6')][_0x26f3('0x3e')](this[_0x26f3('0xb6')][_0x26f3('0x70')]-0x1);if(_0x2abe13)this[_0x26f3('0xfb')]=_0x2abe13['id'];else{const _0x178dcc=!this[_0x26f3('0xe3')][_0x26f3('0x111')]['document'][_0x26f3('0xda')][_0x26f3('0xcd')](_0x3d0d12=>this[_0x26f3('0xe3')]['model']['hasContent'](_0x3d0d12)),_0x583e5c=this[_0x26f3('0xe3')]['plugins'][_0x26f3('0x5')](_0x26f3('0xf'))['me']['id'],_0x479278=_0x13d8b1(this[_0x26f3('0xe3')]['locale'],_0x178dcc?_0x26f3('0x17'):_0x26f3('0x6b'));this[_0x26f3('0x89')]({'from':_0x40f452,'to':_0x40f452,'id':this[_0x26f3('0xfb')],'name':_0x479278,'creatorId':_0x583e5c});}}[_0x26f3('0x4')](_0x20fec8){const _0x3368c0=this[_0x26f3('0x86')]['getCurrentRevisionId']();this['currentRevision']=this[_0x26f3('0xb6')][_0x26f3('0x3e')](_0x3368c0),this[_0x26f3('0xa5')]||(this[_0x26f3('0xa5')]=this['_makeRevision']({'from':_0x20fec8,'to':_0x20fec8,'id':_0x3368c0,'name':'','creatorId':null}));}[_0x26f3('0x89')]({name:_0x4b0554,from:_0x52c335,to:_0x80924c,creatorId:_0x2bd5c9,id:_0xd04957}){const _0x5771a4=this['buildRevisionData']({'from':_0x52c335,'to':_0x80924c});_0x5771a4[_0x26f3('0xba')]=_0x4b0554,_0x5771a4['creatorId']=_0x2bd5c9,_0x5771a4['id']=_0xd04957;const _0x4aa161=this[_0x26f3('0xb4')](_0x5771a4);return this[_0x26f3('0xa6')]&&this[_0x26f3('0xb3')](_0x5771a4['id'],_0x5771a4,!0x0),_0x4aa161;}['_setConversion'](){this[_0x26f3('0xe3')][_0x26f3('0xc6')][_0x26f3('0x20')](_0x26f3('0x5c'))[_0x26f3('0xb1')]({'model':_0x26f3('0x8e')});}[_0x26f3('0x6d')](_0x33d53f){return(_0x33d53f=_0x33d53f['filter'](_0x45e82c=>!_0x45e82c[_0x26f3('0xba')]||_0x26f3('0x69')!==_0x45e82c[_0x26f3('0xba')]&&_0x26f3('0xbb')!==_0x45e82c['name']))[_0x26f3('0x9c')](_0x5986da=>{'string'!=typeof _0x5986da&&(_0x5986da[_0x26f3('0x5a')]=this[_0x26f3('0x6d')](_0x5986da[_0x26f3('0x5a')]),_0x5986da[_0x26f3('0x57')]=_0x5986da[_0x26f3('0x57')]['filter'](_0x10c8eb=>!_0x10c8eb[0x0][_0x26f3('0xd6')](_0x26f3('0x82'))));}),_0x33d53f;}}function J(_0x3f8714,_0x8e7fe8){const _0x33bd65=_0x8e7fe8['editing'][_0x26f3('0x49')][_0x26f3('0x102')];if(_0x26f3('0x4d')==typeof _0x3f8714)return new _0x38bd7b(_0x33bd65,_0x3f8714);{const _0x32cfdc=_0x3f8714[_0x26f3('0x5a')]['map'](_0x225d36=>J(_0x225d36,_0x8e7fe8));return new(B[_0x3f8714[(_0x26f3('0xd5'))]]||_0x587620)(_0x33bd65,_0x3f8714[_0x26f3('0xba')],_0x3f8714[_0x26f3('0x57')],_0x32cfdc);}}class H{constructor(_0x560da8){this[_0x26f3('0xe3')]=_0x560da8,this[_0x26f3('0xd7')]=new Map(),this[_0x26f3('0x25')]=-0x1,this[_0x26f3('0xe0')]=-0x1,this[_0x26f3('0x9e')]=new Map(),this['_diffRoots']=new Map(),this[_0x26f3('0x2a')]=new Map(),this[_0x26f3('0xe2')]=new Map(),this[_0x26f3('0x108')]=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this[_0x26f3('0xb0')]=0x1;}[_0x26f3('0x90')](_0xac1b4){this[_0x26f3('0x26')]=_0xac1b4;const _0x52d964=new Map(),_0x360e8c=new Map(),_0x1198e1=this[_0x26f3('0xe3')][_0x26f3('0x111')][_0x26f3('0x102')][_0x26f3('0xda')][_0x26f3('0x54')](_0x215956=>_0x215956[_0x26f3('0xe8')]);for(const _0x3dacf1 of _0x1198e1){const _0x18a809=this[_0x26f3('0xe3')]['model'][_0x26f3('0x102')][_0x26f3('0xd4')](_0x3dacf1),_0x81cc2e=q(_0x18a809);_0x52d964['set'](_0x3dacf1,_0x81cc2e),_0x360e8c[_0x26f3('0x3a')](_0x3dacf1,Object[_0x26f3('0x74')](_0x18a809[_0x26f3('0xec')]()));}const _0x726ffd=Array[_0x26f3('0x4e')](this[_0x26f3('0xe3')]['model']['markers'])[_0x26f3('0x54')](_0x26e65c=>[_0x26e65c['name'],_0x26e65c['getRange']()]),_0x53ebe1=this['source'][_0x26f3('0x5e')];this['_saveMetaData'](_0x53ebe1,_0x52d964,_0x726ffd,_0x360e8c),this['_startingRevisionId']=this['_revisionId'];const _0x2d0cf9=new Map(),_0x83a1a5=new Map();for(const _0x470ad1 of _0x1198e1){const _0x16ffa2=G(_0x470ad1);_0x2d0cf9['set'](_0x470ad1,_0x16ffa2),_0x83a1a5[_0x26f3('0x3a')](_0x470ad1,{});}this['_saveMetaData'](Number[_0x26f3('0x7b')],_0x2d0cf9,[],_0x83a1a5);}[_0x26f3('0x1e')](_0x2e84bb,_0x430a09){if(this['_lastFrom']===_0x2e84bb&&this[_0x26f3('0xe0')]<=_0x430a09)this['_savedMetaData'][_0x26f3('0x3d')]>0x1&&this[_0x26f3('0x10d')](this[_0x26f3('0xe0')]),this[_0x26f3('0x10e')](this[_0x26f3('0xe0')],_0x430a09,!0x0);else{if(!this['_savedMetaData'][_0x26f3('0xcf')](_0x2e84bb)){const _0x3eaba5=this[_0x26f3('0x104')](_0x2e84bb);this[_0x26f3('0x36')](_0x3eaba5,_0x2e84bb,!0x1);}this[_0x26f3('0x36')](_0x2e84bb,_0x430a09,!0x0);}return this[_0x26f3('0x25')]=_0x2e84bb,this[_0x26f3('0xe0')]=_0x430a09,this[_0x26f3('0x98')]();}[_0x26f3('0x1b')](_0x4070ac){this[_0x26f3('0x97')](),this[_0x26f3('0x25')]=_0x4070ac[_0x26f3('0x99')],this[_0x26f3('0xe0')]=_0x4070ac[_0x26f3('0x45')];for(const _0x1b755a in _0x4070ac[_0x26f3('0x110')]){const _0x232393=_0x4070ac[_0x26f3('0x110')][_0x1b755a][_0x26f3('0x52')],_0xcd6303=_0x395b4b(_0x4070ac['diffData'][_0x1b755a][_0x26f3('0x21')])||{},_0x3e1578=this['_makeModelFromViewString'](_0x4070ac[_0x26f3('0x110')][_0x1b755a][_0x26f3('0x56')]);_0x3e1578['rootName']=_0x1b755a,_0x3e1578[_0x26f3('0x4b')]=!_0x232393||!_0x232393[_0x26f3('0x10')],_0x3e1578['isAttached']=()=>_0x3e1578[_0x26f3('0x4b')],this['_baseRoots'][_0x26f3('0x3a')](_0x1b755a,_0x3e1578),this[_0x26f3('0x108')]['set'](_0x1b755a,_0xcd6303),_0x232393&&this[_0x26f3('0x64')][_0x26f3('0x3a')](_0x1b755a,_0x232393);const _0x5e29e4=this[_0x26f3('0xfa')](_0x3e1578);this[_0x26f3('0xc3')][_0x26f3('0x3a')](_0x1b755a,_0x5e29e4);for(const [_0x1f0e92,_0x1b668d]of _0x3e1578[_0x26f3('0xdf')]){if(!_0x1f0e92[_0x26f3('0xd6')](_0x26f3('0xc7')))continue;const _0x4dd7ec=_0x1f0e92[_0x26f3('0x3f')](':')[0x2];for(const _0x1638d1 of _0x1b668d[_0x26f3('0x71')]({'singleCharacters':!0x0})){const _0x23a69d=this[_0x26f3('0x2e')](_0x1638d1),_0x1de913=_0x26f3('0xdc')==_0x1638d1['type']?_0x1638d1[_0x26f3('0x38')][_0x26f3('0xf0')][_0x26f3('0x7')](0x0,-0x1):_0x1638d1[_0x26f3('0x38')][_0x26f3('0xf0')],_0x504805=_0x5e29e4[_0x26f3('0x76')](_0x1de913)['getAttribute'](_0x23a69d);this['_touched'][_0x26f3('0x3a')](_0x504805,{'userId':_0x4dd7ec});}}}this['_startingRevisionId']=this[_0x26f3('0xb0')];const _0x1e6849=[...Array(this['_revisionId'])[_0x26f3('0xc5')]()][_0x26f3('0x7')](0x1)['filter'](_0x2ef089=>!this['_touched'][_0x26f3('0xcf')](_0x2ef089));let _0x3eaf3e=0x0;const _0x5d11bb=new Map();for(const _0xf65b88 in _0x4070ac['diffData']){const _0x42f4c3=_0x4070ac[_0x26f3('0x110')][_0xf65b88][_0x26f3('0x52')],_0x48cdd9=_0x395b4b(_0x4070ac[_0x26f3('0x110')][_0xf65b88][_0x26f3('0x34')])||{},_0x23fd96=this[_0x26f3('0xac')](_0x4070ac[_0x26f3('0x110')][_0xf65b88][_0x26f3('0xeb')]);_0x23fd96[_0x26f3('0xe8')]=_0xf65b88,_0x23fd96[_0x26f3('0x4b')]=!_0x42f4c3||_0x42f4c3[_0x26f3('0x10')],_0x23fd96[_0x26f3('0x10')]=()=>_0x23fd96[_0x26f3('0x4b')],this[_0x26f3('0xb2')][_0x26f3('0x3a')](_0xf65b88,_0x23fd96),this[_0x26f3('0x2a')]['set'](_0xf65b88,_0x48cdd9);const _0x19c5df=this[_0x26f3('0xfa')](_0x23fd96,Number[_0x26f3('0x7b')]);this['_idsRoots'][_0x26f3('0x3a')](_0xf65b88,_0x19c5df),_0x5d11bb[_0x26f3('0x3a')](_0xf65b88,_0x23fd96['isAttached']()?_0x48cdd9:{});for(const [_0x5dbc42,_0x5d1096]of _0x23fd96[_0x26f3('0xdf')]){if(!_0x5dbc42[_0x26f3('0xd6')](_0x26f3('0xc7')))continue;const _0x337e3d=_0x5dbc42[_0x26f3('0x3f')](':')[0x2];for(const _0x4484f3 of _0x5d1096['getWalker']({'singleCharacters':!0x0})){const _0x50fee3=this[_0x26f3('0x2e')](_0x4484f3),_0x45b590=this[_0x26f3('0xb0')]++,_0x5e2e8f=_0x26f3('0xdc')==_0x4484f3[_0x26f3('0xd5')]?_0x4484f3['previousPosition'][_0x26f3('0xf0')][_0x26f3('0x7')](0x0,-0x1):_0x4484f3['previousPosition'][_0x26f3('0xf0')];_0x19c5df[_0x26f3('0x76')](_0x5e2e8f)[_0x26f3('0xea')](_0x50fee3,_0x45b590),this[_0x26f3('0x95')][_0x26f3('0x3a')](_0x45b590,{'userId':_0x337e3d});}}for(const _0x2ba0b4 of this[_0x26f3('0xe3')][_0x26f3('0x111')][_0x26f3('0x83')](_0x23fd96)[_0x26f3('0x71')]({'singleCharacters':!0x0})){const _0x4ef510=this['_getVidAttributeName'](_0x2ba0b4),_0x3f6437=_0x26f3('0xdc')==_0x2ba0b4['type']?_0x2ba0b4[_0x26f3('0x38')][_0x26f3('0xf0')][_0x26f3('0x7')](0x0,-0x1):_0x2ba0b4[_0x26f3('0x38')]['path'],_0x320184=_0x19c5df[_0x26f3('0x76')](_0x3f6437);_0x320184[_0x26f3('0xfe')](_0x4ef510)>0x0||_0x320184[_0x26f3('0xea')](_0x4ef510,_0x1e6849[_0x3eaf3e++]);}for(const [_0x58d8ee,_0x34c036]of _0x23fd96['markers'])_0x58d8ee[_0x26f3('0xd6')](_0x26f3('0xc7'))||this[_0x26f3('0x9e')][_0x26f3('0x3a')](_0x58d8ee,_0x34c036);}const _0x2bcfe3=G(_0x26f3('0x43'));this['_baseRoots'][_0x26f3('0x3a')](_0x26f3('0x43'),_0x2bcfe3),this[_0x26f3('0xc3')]['set'](_0x26f3('0x43'),this[_0x26f3('0xfa')](_0x2bcfe3,0x1));const _0x1efe3f=G(_0x26f3('0x43'));this[_0x26f3('0xb2')][_0x26f3('0x3a')](_0x26f3('0x43'),_0x1efe3f),this['_idsRoots']['set'](_0x26f3('0x43'),this[_0x26f3('0xfa')](_0x1efe3f,0x1));const _0x2700ad=Array['from'](this['_diffRoots'])[_0x26f3('0x54')](([_0x1d8fb5,_0x434690])=>[_0x1d8fb5,q(_0x434690)]);this[_0x26f3('0x61')](this[_0x26f3('0xe0')],_0x2700ad,this['_markers'],_0x5d11bb);}[_0x26f3('0xac')](_0x5b47e4){const _0x2798a9=JSON[_0x26f3('0x8f')](_0x5b47e4),_0x47653c=this[_0x26f3('0xe3')][_0x26f3('0x41')][_0x26f3('0x49')]['document'],_0x5a9aa3=new _0x596646(_0x47653c,_0x2798a9[_0x26f3('0x54')](_0x33ea5b=>J(_0x33ea5b,this[_0x26f3('0xe3')])));return this[_0x26f3('0xe3')][_0x26f3('0xbf')][_0x26f3('0xf6')](_0x5a9aa3);}[_0x26f3('0x61')](_0x4d0e68,_0x59e1d2,_0x5172da,_0x94f304){const _0x17b74e=new Map(_0x59e1d2),_0x3287db=new Map(_0x395b4b(_0x94f304)),_0x19e90c=new Map();for(const [_0x307645,_0x345cec]of _0x5172da)_0x19e90c['set'](_0x307645,{'start':_0x345cec[_0x26f3('0xa8')]['clone'](),'end':_0x345cec['end']['clone'](),'rootName':_0x345cec['root'][_0x26f3('0xe8')]});this[_0x26f3('0xd7')][_0x26f3('0x3a')](_0x4d0e68,{'roots':_0x17b74e,'markers':_0x19e90c,'rootsAttributes':_0x3287db});}[_0x26f3('0x10d')](_0x3df306){this[_0x26f3('0xd7')][_0x26f3('0x30')](_0x3df306);}[_0x26f3('0x10a')](){this[_0x26f3('0x97')](),this[_0x26f3('0x25')]=-0x1,this[_0x26f3('0xe0')]=-0x1,this['_savedMetaData'][_0x26f3('0xaa')](),this[_0x26f3('0x90')](this[_0x26f3('0x26')]);}['_reset'](){this[_0x26f3('0x95')]['clear'](),this[_0x26f3('0x66')][_0x26f3('0xaa')](),this['_touchedRoots'][_0x26f3('0xaa')](),this['_diffRoots'][_0x26f3('0xaa')](),this[_0x26f3('0x2a')][_0x26f3('0xaa')](),this[_0x26f3('0xe2')]['clear'](),this[_0x26f3('0x108')]['clear'](),this[_0x26f3('0x73')][_0x26f3('0xaa')](),this[_0x26f3('0xc3')][_0x26f3('0xaa')](),this['_markers'][_0x26f3('0xaa')](),this[_0x26f3('0xb0')]=0x1,this[_0x26f3('0x65')]=this[_0x26f3('0xb0')];}[_0x26f3('0xfa')](_0x441a88,_0x30b400=null){let _0x38c10c=null;_0x441a88['is'](_0x26f3('0x85'))||(_0x38c10c=new _0x45c2f4(_0x441a88[_0x26f3('0xba')],{'vid_start':null===_0x30b400?this[_0x26f3('0xb0')]++:_0x30b400++}));const _0x4ee67c=[];for(const _0x493087 of _0x441a88[_0x26f3('0x6a')]())if(_0x493087['is'](_0x26f3('0x50'))){_0x4ee67c['push'](this['_makeIdsRoot'](_0x493087,_0x30b400));const _0x1dbed8=_0x4ee67c[_0x4ee67c['length']-0x1];null!==_0x30b400&&(_0x30b400=_0x1dbed8['is'](_0x26f3('0x50'),_0x26f3('0x39'))?_0x1dbed8[_0x26f3('0xfe')]('vid')+0x1:_0x1dbed8[_0x26f3('0xfe')](_0x26f3('0xf5'))+0x1);}else for(let _0x105265=0x0;_0x105265<_0x493087[_0x26f3('0xf9')];_0x105265++)_0x4ee67c[_0x26f3('0x107')](new _0x45c2f4('$text',{'vid':null===_0x30b400?this[_0x26f3('0xb0')]++:_0x30b400++}));if(_0x441a88['is']('documentFragment')){const _0x77d8ad=G(_0x441a88[_0x26f3('0xe8')]);return _0x77d8ad['_insertChild'](0x0,_0x4ee67c),_0x77d8ad;}return _0x38c10c['_setAttribute'](_0x26f3('0xf5'),null===_0x30b400?this[_0x26f3('0xb0')]++:_0x30b400++),_0x38c10c[_0x26f3('0xd3')](0x0,_0x4ee67c),_0x38c10c;}[_0x26f3('0x36')](_0x555561,_0x28af68,_0x2db795){this[_0x26f3('0x97')]();const {roots:_0x4ffee6,markers:_0x49024d,rootsAttributes:_0x39afda}=this[_0x26f3('0xd7')]['get'](_0x555561);this[_0x26f3('0xe2')]=new Map(_0x4ffee6),this[_0x26f3('0x108')]=new Map(_0x395b4b(_0x39afda));for(const [_0x23b964,_0x4ef3a2]of this[_0x26f3('0xe2')])if(_0x26f3('0x43')!==_0x23b964&&(this[_0x26f3('0xb2')]['set'](_0x23b964,q(_0x4ef3a2)),this[_0x26f3('0x2a')]=new Map(_0x395b4b(_0x39afda)),_0x2db795)){const _0x2502c5=this['_revisionId'];this['_idsRoots'][_0x26f3('0x3a')](_0x23b964,this['_makeIdsRoot'](_0x4ef3a2)),this[_0x26f3('0xc3')][_0x26f3('0x3a')](_0x23b964,this['_makeIdsRoot'](_0x4ef3a2,_0x2502c5));}this[_0x26f3('0x65')]=this[_0x26f3('0xb0')],this[_0x26f3('0xb2')]['set']('$graveyard',q(this[_0x26f3('0xe2')][_0x26f3('0x5')]('$graveyard'))),_0x2db795&&this[_0x26f3('0x73')][_0x26f3('0x3a')](_0x26f3('0x43'),this[_0x26f3('0xfa')](this[_0x26f3('0xe2')]['get'](_0x26f3('0x43'))));for(const [_0xdfe0e6,_0x4edfb6]of _0x49024d){const _0x351d9c=this['_baseRoots']['get'](_0x4edfb6[_0x26f3('0xe8')]),_0x5d3233=this[_0x26f3('0xb2')]['get'](_0x4edfb6['rootName']),_0x54e69b=new _0x2e3d02(this['_fixPosition'](_0x4edfb6[_0x26f3('0xa8')],_0x351d9c),this[_0x26f3('0x81')](_0x4edfb6['end'],_0x351d9c)),_0x3a3c5d=this[_0x26f3('0xa2')](_0x54e69b,_0x5d3233);_0x351d9c[_0x26f3('0xdf')][_0x26f3('0x3a')](_0xdfe0e6,_0x54e69b),this[_0x26f3('0x9e')]['set'](_0xdfe0e6,_0x3a3c5d);}this['_applyOperations'](_0x555561,_0x28af68,_0x2db795);}[_0x26f3('0x10e')](_0x2bd5f1,_0x2cd679,_0x22210e){for(const _0x534231 of this['source'][_0x26f3('0xc2')](_0x2bd5f1,_0x2cd679))this[_0x26f3('0x2b')](_0x534231,_0x22210e);for(const _0x582ddf of this['_diffRoots']['values']())_0x582ddf[_0x26f3('0xdf')][_0x26f3('0xaa')]();for(const [_0x266db3,_0x3bc206]of this['_markers']){this[_0x26f3('0xb2')][_0x26f3('0x5')](_0x3bc206[_0x26f3('0x1d')][_0x26f3('0xe8')])[_0x26f3('0xdf')][_0x26f3('0x3a')](_0x266db3,_0x3bc206[_0x26f3('0xd2')]());}const _0x29722b=new Map(),_0x17d93c=new Map();for(const [_0xa9834b,_0x30504b]of this['_diffRoots'])_0x29722b['set'](_0xa9834b,q(_0x30504b)),_0x17d93c[_0x26f3('0x3a')](_0xa9834b,this['_diffRootsAttributes']['get'](_0xa9834b));this[_0x26f3('0x61')](_0x2cd679,_0x29722b,this[_0x26f3('0x9e')],_0x17d93c);}[_0x26f3('0x104')](_0xb2c2e){const _0x15e126=Array[_0x26f3('0x4e')](this[_0x26f3('0xd7')][_0x26f3('0xc5')]());_0x15e126['sort']((_0x1ef987,_0x15d484)=>_0x1ef987-_0x15d484),_0x15e126[_0x26f3('0x3b')]();for(const _0x1bcc30 of _0x15e126)if(_0x1bcc30<_0xb2c2e)return _0x1bcc30;return Number[_0x26f3('0x7b')];}[_0x26f3('0x2d')](_0xb34c56,_0x298fb9){const _0x90c2=Array[_0x26f3('0x4e')](_0x298fb9[_0x26f3('0xdf')])[_0x26f3('0x54')](([_0x1ed051,_0x2cf1cd])=>[_0x1ed051,this[_0x26f3('0xa2')](_0x2cf1cd,_0xb34c56)]);_0xb34c56['markers']=new Map(_0x90c2);}[_0x26f3('0xd')](_0x4fe5d8){for(const _0x2d4e22 of this[_0x26f3('0x9e')]['values']()){const _0x2a1d49=_0x2d4e22['getTransformedByOperation'](_0x4fe5d8),_0x49271d=_0x2e3d02[_0x26f3('0x3c')](_0x2a1d49);_0x2d4e22[_0x26f3('0xa8')]=_0x49271d[_0x26f3('0xa8')],_0x2d4e22[_0x26f3('0x23')]=_0x49271d['end'];}}['_handleOperation'](_0x4a99ee,_0x453a72){if(_0x26f3('0x8b')==_0x4a99ee[_0x26f3('0xd5')]||_0x26f3('0x9f')==_0x4a99ee[_0x26f3('0xd5')])return void this[_0x26f3('0xe')](_0x4a99ee,_0x453a72);if(_0x26f3('0xfc')==_0x4a99ee[_0x26f3('0xd5')]){const _0xf7bf34=_0x4a99ee[_0x26f3('0xbe')][_0x26f3('0x1d')][_0x26f3('0xe8')];this[_0x26f3('0xb2')][_0x26f3('0xcf')](_0xf7bf34)||(this[_0x26f3('0xb2')][_0x26f3('0x3a')](_0xf7bf34,G(_0xf7bf34,!0x0)),this[_0x26f3('0x2a')][_0x26f3('0x3a')](_0xf7bf34,{}),_0x453a72&&this['_idsRoots']['set'](_0xf7bf34,G(_0xf7bf34,!0x0)));}else{if(_0x26f3('0x11')==_0x4a99ee[_0x26f3('0xd5')]||_0x26f3('0x0')==_0x4a99ee[_0x26f3('0xd5')]||'changeRootAttribute'==_0x4a99ee[_0x26f3('0xd5')])return void this[_0x26f3('0x5f')](_0x4a99ee);}const _0x17c67a=this[_0x26f3('0x7d')](_0x4a99ee,this[_0x26f3('0xb2')]);if(_0x26f3('0x9a')!==_0x4a99ee[_0x26f3('0xd5')]&&(_0x17c67a[_0x26f3('0x94')](),this['_transformMarkers'](_0x17c67a)),_0x453a72)switch(_0x17c67a['type']){case _0x26f3('0xfc'):this[_0x26f3('0x93')](_0x4a99ee);break;case _0x26f3('0x8d'):case _0x26f3('0x96'):case _0x26f3('0x9d'):this['_handleMoveOperation'](_0x4a99ee);break;case _0x26f3('0xca'):this[_0x26f3('0xb9')](_0x4a99ee);break;case'split':this['_handleSplitOperation'](_0x4a99ee);break;case _0x26f3('0x9a'):this[_0x26f3('0xcc')](_0x4a99ee);}}['_cloneOperation'](_0x5595a5,_0x3ae35c){const _0x1e52b8=_0x5595a5[_0x26f3('0xd2')]();return _0x1e52b8[_0x26f3('0xdd')]=_0x5595a5[_0x26f3('0xdd')],this[_0x26f3('0xcb')](_0x1e52b8,_0x3ae35c),_0x1e52b8;}[_0x26f3('0xad')](_0x4b107b){return _0x4b107b[_0x26f3('0x54')](_0x56768e=>{const _0x4fbb86=this[_0x26f3('0x2e')](_0x56768e);return Number(_0x56768e[_0x26f3('0xd9')][_0x26f3('0xfe')](_0x4fbb86));});}[_0x26f3('0xe4')](_0x5a5348,_0x2dcee2){if(_0x5a5348['is'](_0x26f3('0x50'),_0x26f3('0x39')))_0x2dcee2[_0x26f3('0x107')]({'item':_0x5a5348,'type':'text'});else{_0x5a5348['is'](_0x26f3('0x50'))&&_0x2dcee2[_0x26f3('0x107')]({'item':_0x5a5348,'type':_0x26f3('0x29')});for(const _0x695355 of _0x5a5348['getChildren']())this[_0x26f3('0xe4')](_0x695355,_0x2dcee2);_0x5a5348['is']('element')&&_0x2dcee2[_0x26f3('0x107')]({'item':_0x5a5348,'type':'elementEnd'});}return _0x2dcee2;}[_0x26f3('0x98')](){const _0xa573d3=new Map(this[_0x26f3('0x95')]),_0x437a17=new Map(_0xa573d3),_0xa889b3=new Map(),_0x129fe8={'insertions':{},'deletions':{}},_0x521566={'insertions':{},'deletions':{}},_0x3a8705=new Map(),_0x240dfe=new Set([...this[_0x26f3('0xe2')][_0x26f3('0xc5')](),...this[_0x26f3('0xb2')][_0x26f3('0xc5')]()]);_0x240dfe['delete'](_0x26f3('0x43'));for(const _0x3145f7 of _0x240dfe){const _0x5d9b47=this[_0x26f3('0xb2')][_0x26f3('0x5')](_0x3145f7)||G(_0x3145f7,!0x1),_0x19a138=this['_baseRoots'][_0x26f3('0x5')](_0x3145f7)||G(_0x3145f7,!0x1);_0x5d9b47[_0x26f3('0x10')]()||_0x19a138[_0x26f3('0x10')]()?(_0x129fe8[_0x26f3('0xeb')][_0x3145f7]=q(_0x5d9b47),_0x129fe8[_0x26f3('0x56')][_0x3145f7]=q(_0x19a138),this[_0x26f3('0x2d')](_0x129fe8['deletions'][_0x3145f7],_0x19a138),this[_0x26f3('0x2d')](_0x129fe8[_0x26f3('0xeb')][_0x3145f7],_0x5d9b47),_0x521566[_0x26f3('0xeb')][_0x3145f7]=this['_generateTape'](this[_0x26f3('0x73')][_0x26f3('0x5')](_0x3145f7),[]),_0x521566[_0x26f3('0x56')][_0x3145f7]=this[_0x26f3('0xe4')](this['_baseIdsRoots']['get'](_0x3145f7)||G(_0x3145f7,!0x1),[])):_0x240dfe[_0x26f3('0x30')](_0x3145f7);}for(const _0x116445 of _0x240dfe){const _0x548f83=_0x521566[_0x26f3('0xeb')][_0x116445];for(const _0x585a09 of _0x548f83){const _0x5dd02e=this[_0x26f3('0x2e')](_0x585a09),_0x3caf60=_0x585a09[_0x26f3('0xd9')][_0x26f3('0xfe')](_0x5dd02e);_0x437a17['delete'](_0x3caf60),_0x3caf60>=this[_0x26f3('0x65')]&&_0xa889b3[_0x26f3('0x3a')](_0x3caf60,_0xa573d3['get'](_0x3caf60));}}for(const _0x39b270 of _0x240dfe){const _0x2b6021=_0x521566[_0x26f3('0xeb')][_0x39b270],_0x10c5db=this['_getBaseVids'](_0x521566[_0x26f3('0x56')][_0x39b270]);let _0x2c8899=0x0;for(const _0x851cad of _0x2b6021){const _0x2211c8=this[_0x26f3('0x2e')](_0x851cad),_0x1df4e9=_0x851cad['item'][_0x26f3('0xfe')](_0x2211c8);if(!_0xa889b3[_0x26f3('0xcf')](_0x1df4e9)&&!_0x3a8705[_0x26f3('0xcf')](_0x1df4e9)){if(_0x437a17['has'](_0x1df4e9))_0x2c8899++;else{if(_0x1df4e9!=_0x10c5db[_0x2c8899]){const _0x50cdff=_0xa573d3[_0x26f3('0x5')](_0x1df4e9)||_0xa573d3[_0x26f3('0x5')](_0x10c5db[_0x2c8899]);for(;_0x1df4e9!=_0x10c5db[_0x2c8899];)_0x437a17['has'](_0x10c5db[_0x2c8899])||(_0x3a8705[_0x26f3('0x3a')](_0x10c5db[_0x2c8899],_0x50cdff),_0xa573d3['set'](_0x10c5db[_0x2c8899],_0x50cdff)),_0x2c8899++;}_0x2c8899++;}}}}for(const _0x57153b of _0x240dfe){const _0x1f2f26=_0x521566['insertions'][_0x57153b];for(const _0x5c340b of _0x1f2f26){const _0x77f8b6=this[_0x26f3('0x2e')](_0x5c340b),_0x4f4188=_0x5c340b[_0x26f3('0xd9')][_0x26f3('0xfe')](_0x77f8b6);if(_0x3a8705[_0x26f3('0xcf')](_0x4f4188)){const _0x9d4c45=_0x3a8705[_0x26f3('0x5')](_0x4f4188);_0x437a17['has'](_0x4f4188)||_0x437a17[_0x26f3('0x3a')](_0x4f4188,{..._0x9d4c45}),_0xa889b3[_0x26f3('0x3a')](_0x4f4188,{..._0x9d4c45});}}}for(const _0x1a917b of _0x437a17[_0x26f3('0xc5')]())_0x1a917b>=this[_0x26f3('0x65')]&&_0x437a17[_0x26f3('0x30')](_0x1a917b);const _0xc121c6=new Map();for(const _0x1905f7 of _0x240dfe){let _0x11d510=_0x521566[_0x26f3('0xeb')][_0x1905f7];for(const _0x32471b of _0x11d510)if(_0x32471b[_0x26f3('0xd9')]['is'](_0x26f3('0x50'),_0x26f3('0xab'))){const _0x27836d=this[_0x26f3('0x2e')](_0x32471b),_0x266e87=_0x32471b[_0x26f3('0xd9')]['getAttribute'](_0x27836d);if(_0xa889b3[_0x26f3('0xcf')](_0x266e87)){const _0x89c79=_0x32471b[_0x26f3('0xd9')][_0x26f3('0xdb')][_0x26f3('0xdb')][_0x26f3('0xfe')](_0x26f3('0xb')),_0x37e071=_0xc121c6[_0x26f3('0x5')](_0x89c79)||new Set();_0x37e071[_0x26f3('0x6e')](_0xa889b3['get'](_0x266e87)[_0x26f3('0x19')]),_0xc121c6[_0x26f3('0x3a')](_0x89c79,_0x37e071);}}_0x11d510=_0x521566['deletions'][_0x1905f7];for(const _0x4a34fe of _0x11d510)if(_0x4a34fe['item']['is']('element','tableCell')){const _0x556388=this['_getVidAttributeName'](_0x4a34fe),_0x409718=_0x4a34fe[_0x26f3('0xd9')][_0x26f3('0xfe')](_0x556388);if(_0x437a17[_0x26f3('0xcf')](_0x409718)){const _0x4158a6=_0x4a34fe['item'][_0x26f3('0xdb')]['parent'][_0x26f3('0xfe')](_0x26f3('0xb')),_0xf13bed=_0xc121c6[_0x26f3('0x5')](_0x4158a6)||new Set();_0xf13bed[_0x26f3('0x6e')](_0x437a17[_0x26f3('0x5')](_0x409718)[_0x26f3('0x19')]),_0xc121c6[_0x26f3('0x3a')](_0x4158a6,_0xf13bed);}}for(const _0x3d3fc4 of _0xc121c6['keys']())(_0xa889b3[_0x26f3('0xcf')](_0x3d3fc4)||_0x437a17[_0x26f3('0xcf')](_0x3d3fc4))&&_0xc121c6[_0x26f3('0x30')](_0x3d3fc4);}for(const _0x304f6b of _0x240dfe){const _0x350624=_0x521566[_0x26f3('0xeb')][_0x304f6b];let _0x515ee3=null,_0x3b0379=null;for(const _0x130f44 of _0x350624){const _0x759bcc=this[_0x26f3('0x2e')](_0x130f44),_0x4554f2=_0x130f44[_0x26f3('0xd9')][_0x26f3('0xfe')](_0x759bcc),_0x4e4d2=_0xc121c6[_0x26f3('0x5')](_0x4554f2);_0x4e4d2&&_0x26f3('0x29')==_0x130f44[_0x26f3('0xd5')]&&(_0x515ee3=Array[_0x26f3('0x4e')](_0x4e4d2)[0x0],_0x3b0379=_0x130f44[_0x26f3('0xd9')][_0x26f3('0xfe')](_0x26f3('0xf5'))),_0x515ee3&&(_0x437a17['set'](_0x4554f2,{'userId':_0x515ee3}),_0xa889b3[_0x26f3('0x3a')](_0x4554f2,{'userId':_0x515ee3})),_0x4554f2==_0x3b0379&&(_0x515ee3=null,_0x3b0379=null);}}const _0x4531fc={},_0x47a7ac=new Set();for(const _0xaefcea of _0x240dfe){const _0x49de1b=_0x129fe8[_0x26f3('0x56')][_0xaefcea],_0x30983e=_0x129fe8[_0x26f3('0xeb')][_0xaefcea];for(const {userId:_0x1a83ef}of this[_0x26f3('0x66')][_0x26f3('0xc8')]())null!==_0x1a83ef&&_0x47a7ac[_0x26f3('0x6e')](_0x1a83ef);for(const {userId:_0x49df03}of this[_0x26f3('0x64')][_0x26f3('0xc8')]())null!==_0x49df03&&_0x47a7ac['add'](_0x49df03);this[_0x26f3('0x106')](_0x30983e,_0x521566[_0x26f3('0xeb')][_0xaefcea],_0xa889b3,_0x26f3('0x77'),_0x47a7ac),this[_0x26f3('0x106')](_0x49de1b,_0x521566[_0x26f3('0x56')][_0xaefcea],_0x437a17,'deletion',_0x47a7ac),_0x4531fc[_0xaefcea]={'insertions':this['_prepareViewToSave'](_0x30983e),'deletions':this[_0x26f3('0x27')](_0x49de1b),'attachChange':this[_0x26f3('0x64')][_0x26f3('0x5')](_0xaefcea)||null,'attributesBefore':_0x395b4b(this['_baseRootsAttributes'][_0x26f3('0x5')](_0xaefcea))||{},'attributesAfter':_0x395b4b(this[_0x26f3('0x2a')][_0x26f3('0x5')](_0xaefcea))};}return{'diffData':_0x4531fc,'authorsIds':Array[_0x26f3('0x4e')](_0x47a7ac)};}[_0x26f3('0x31')](_0xffa0a3){for(const [,_0xa462db]of _0xffa0a3[_0x26f3('0xdf')]){const _0x64981e=_0xa462db[_0x26f3('0xa8')][_0x26f3('0xe9')]()[_0x26f3('0xa4')](_0x572278=>_0x26f3('0xab')==_0x572278[_0x26f3('0xba')]);for(const _0x297dc3 of _0x64981e)0x1==_0x297dc3['childCount']&&_0x297dc3['getChild'](0x0)['is'](_0x26f3('0x50'),_0x26f3('0x53'))&&_0x297dc3[_0x26f3('0xf4')](0x0)[_0x26f3('0xea')](_0x26f3('0xe1'),!0x0);}}[_0x26f3('0x27')](_0xcf802f){this[_0x26f3('0x31')](_0xcf802f);const _0x583236=this['editor'][_0x26f3('0xbf')][_0x26f3('0x22')](_0xcf802f,{}),_0x13d596=Array[_0x26f3('0x4e')](_0x583236[_0x26f3('0x6a')]())[_0x26f3('0x54')](_0x4ffe7d=>this[_0x26f3('0x55')](_0x4ffe7d));return JSON['stringify'](_0x13d596);}[_0x26f3('0x55')](_0x45eee8){if(_0x45eee8['is'](_0x26f3('0x39')))return _0x45eee8[_0x26f3('0xbf')];{const _0x2c632e=_0x45eee8;return{'type':Object['keys'](B)[_0x26f3('0xcd')](_0x17f6e5=>_0x45eee8 instanceof B[_0x17f6e5]),'name':_0x2c632e[_0x26f3('0xba')],'attributes':Array[_0x26f3('0x4e')](_0x2c632e[_0x26f3('0xec')]()),'children':Array[_0x26f3('0x4e')](_0x2c632e[_0x26f3('0x6a')]())[_0x26f3('0x54')](_0x4ad45b=>this['_getViewJson'](_0x4ad45b))};}}[_0x26f3('0x106')](_0x335613,_0x158d12,_0x23e8e8,_0x3e55c8,_0x34754c){let _0x335fb9=null,_0x76b7c7=null,_0x439860=0x0;const _0x3a631c=this['editor']['model'];for(let _0x3507b8=0x0;_0x3507b8<_0x158d12[_0x26f3('0x70')];_0x3507b8++){const _0xf1d2f1=this[_0x26f3('0x2e')](_0x158d12[_0x3507b8]),_0x4271d4=_0x158d12[_0x3507b8][_0x26f3('0xd9')]['getAttribute'](_0xf1d2f1),_0x3cb42c=_0x23e8e8[_0x26f3('0x5')](_0x4271d4),_0x13f59a=_0x3507b8==_0x158d12[_0x26f3('0x70')]-0x1;(!_0x335fb9&&_0x3cb42c&&(_0x335fb9=_0x3cb42c,_0x76b7c7=_0x158d12[_0x3507b8]),_0x335fb9&&(!_0x3cb42c||_0x3cb42c['userId']!=_0x335fb9[_0x26f3('0x19')]))&&(_0x31c5e0(_0x3cb42c,L(_0x76b7c7,_0x335613,_0x3a631c),L(_0x158d12[_0x3507b8],_0x335613,_0x3a631c)),_0x335fb9=_0x3cb42c||null,_0x76b7c7=_0x3cb42c?_0x158d12[_0x3507b8]:null),_0x335fb9&&_0x13f59a&&_0x31c5e0(_0x3cb42c,L(_0x76b7c7,_0x335613,_0x3a631c),W(_0x158d12[_0x3507b8],_0x335613,_0x3a631c));}function _0x31c5e0(_0x191114,_0x198edd,_0x4913ec){const _0x1508d3=_0x335fb9['userId'],_0x348bee=_0x26f3('0xc7')+_0x3e55c8+':'+_0x1508d3+':'+_0x439860++,_0x551c14=_0x3a631c[_0x26f3('0x12')](_0x198edd,_0x4913ec);_0x335613['markers'][_0x26f3('0x3a')](_0x348bee,_0x551c14),null!==_0x1508d3&&_0x34754c[_0x26f3('0x6e')](_0x1508d3);}}[_0x26f3('0x2e')](_0x2ff336){switch(_0x2ff336['type']){case _0x26f3('0x29'):return _0x26f3('0xb');case _0x26f3('0xdc'):return _0x26f3('0xf5');default:return'vid';}}[_0x26f3('0xcb')](_0x9dacab,_0x1d6426){_0x9dacab['baseVersion']=null;for(const _0x5c703f in _0x9dacab){const _0x415348=_0x9dacab[_0x5c703f];if(_0x415348 instanceof _0x4bbf54){const _0x19231d=_0x1d6426[_0x26f3('0x5')](_0x415348[_0x26f3('0x1d')][_0x26f3('0xe8')]);_0x9dacab[_0x5c703f]=this[_0x26f3('0x81')](_0x415348,_0x19231d);}if(_0x415348 instanceof _0x2e3d02){const _0x3ab48e=_0x1d6426[_0x26f3('0x5')](_0x415348[_0x26f3('0x1d')][_0x26f3('0xe8')]);_0x9dacab[_0x5c703f]=this['_fixRange'](_0x415348,_0x3ab48e);}_0x26f3('0x1d')===_0x5c703f&&(_0x9dacab[_0x26f3('0x1d')]=_0x1d6426[_0x26f3('0x5')](_0x9dacab[_0x26f3('0x1d')][_0x26f3('0xe8')]));}}[_0x26f3('0xa2')](_0x3bb5dc,_0x285557){return this[_0x26f3('0xe3')]['model'][_0x26f3('0x12')](this[_0x26f3('0x81')](_0x3bb5dc['start'],_0x285557),this[_0x26f3('0x81')](_0x3bb5dc[_0x26f3('0x23')],_0x285557));}[_0x26f3('0x81')](_0x2623e0,_0x37f9bc){return this[_0x26f3('0xe3')][_0x26f3('0x111')][_0x26f3('0x79')](_0x37f9bc,_0x2623e0['path'],_0x2623e0[_0x26f3('0x92')]);}[_0x26f3('0x93')](_0x2d43e2){const _0x5cf944=this[_0x26f3('0x73')][_0x26f3('0x5')](_0x2d43e2[_0x26f3('0xbe')][_0x26f3('0x1d')]['rootName']),_0x3d2079=this[_0x26f3('0x81')](_0x2d43e2[_0x26f3('0xbe')],_0x5cf944),_0x3852bd=null===_0x2d43e2[_0x26f3('0xdd')]?null:_0x2d43e2['_authorId']||this[_0x26f3('0xe3')][_0x26f3('0x9')][_0x26f3('0x5')](_0x26f3('0xf'))['me']['id'],_0xfc548b=_0x3d2079['parent'],_0x360ff9=this[_0x26f3('0xb0')],_0x24656c=[];for(const _0x331ce1 of _0x2d43e2[_0x26f3('0x5d')])if(_0x331ce1['is']('element'))_0x24656c[_0x26f3('0x107')](this[_0x26f3('0xfa')](_0x331ce1));else for(let _0x548f6d=0x0;_0x548f6d<_0x331ce1['offsetSize'];_0x548f6d++)_0x24656c[_0x26f3('0x107')](new _0x45c2f4(_0x26f3('0x39'),{'vid':this[_0x26f3('0xb0')]++}));const _0x24ddcc=this[_0x26f3('0xb0')];for(let _0x4a0b8d=_0x360ff9;_0x4a0b8d<_0x24ddcc;_0x4a0b8d++)this[_0x26f3('0x95')][_0x26f3('0x3a')](_0x4a0b8d,{'userId':_0x3852bd});_0xfc548b[_0x26f3('0xd3')](_0x3d2079[_0x26f3('0x72')],_0x24656c);}[_0x26f3('0x15')](_0x425170){(_0x425170=this[_0x26f3('0x7d')](_0x425170,this['_idsRoots']))['_execute']();const _0x4dbc99=null===_0x425170[_0x26f3('0xdd')]?null:_0x425170['_authorId']||this[_0x26f3('0xe3')][_0x26f3('0x9')]['get'](_0x26f3('0xf'))['me']['id'],_0x1f6490=_0x425170[_0x26f3('0x9b')](),_0x429cb5=_0x1f6490['parent'],_0x25c949=_0x1f6490['offset'];!function _0x1d6650(_0x35b6da,_0x42b33d,_0x4eba40,_0x565747){for(let _0x2916fb=_0x4eba40;_0x2916fb<_0x565747;_0x2916fb++){const _0x35a339=_0x42b33d[_0x26f3('0xf4')](_0x2916fb);_0x35a339['is'](_0x26f3('0x50'),'$text')?_0x35b6da['set'](_0x35a339['getAttribute']('vid'),{'userId':_0x4dbc99}):(_0x35b6da['set'](_0x35a339[_0x26f3('0xfe')](_0x26f3('0xb')),{'userId':_0x4dbc99}),_0x1d6650(_0x35b6da,_0x35a339,0x0,_0x35a339[_0x26f3('0xc4')]),_0x35b6da[_0x26f3('0x3a')](_0x35a339[_0x26f3('0xfe')](_0x26f3('0xf5')),{'userId':_0x4dbc99}));}}(this[_0x26f3('0x95')],_0x429cb5,_0x25c949,_0x25c949+_0x425170[_0x26f3('0x63')]);}[_0x26f3('0xb9')](_0x112e45){const _0x140880=null===(_0x112e45=this[_0x26f3('0x7d')](_0x112e45,this[_0x26f3('0x73')]))['_authorId']?null:_0x112e45['_authorId']||this[_0x26f3('0xe3')][_0x26f3('0x9')][_0x26f3('0x5')](_0x26f3('0xf'))['me']['id'],_0x2b1fd9=_0x112e45[_0x26f3('0x4a')][_0x26f3('0xdb')],_0x51fee8=_0x112e45[_0x26f3('0xd1')]['parent'],_0xb91392=_0x2b1fd9['getAttribute']('vid_end'),_0x4bed0e=_0x51fee8[_0x26f3('0xfe')](_0x26f3('0xb'));_0x2b1fd9['_setAttribute'](_0x26f3('0xf5'),_0x51fee8['getAttribute'](_0x26f3('0xf5'))),_0x51fee8[_0x26f3('0xea')]('vid_end',_0xb91392),this[_0x26f3('0x95')]['set'](_0x4bed0e,{'userId':_0x140880}),this[_0x26f3('0x95')][_0x26f3('0x3a')](_0xb91392,{'userId':_0x140880}),_0x112e45[_0x26f3('0x94')]();}[_0x26f3('0x1c')](_0x320c51){const _0xc92bb2=null===(_0x320c51=this[_0x26f3('0x7d')](_0x320c51,this[_0x26f3('0x73')]))[_0x26f3('0xdd')]?null:_0x320c51[_0x26f3('0xdd')]||this[_0x26f3('0xe3')][_0x26f3('0x9')]['get'](_0x26f3('0xf'))['me']['id'],_0x4b0cb8=_0x320c51[_0x26f3('0x59')],_0x22cd91=_0x320c51[_0x26f3('0x42')][_0x26f3('0xdb')];_0x320c51[_0x26f3('0x94')]();const _0x4dfa86=_0x22cd91['getAttribute']('vid_end'),_0x489400=_0x320c51['insertionPosition'][_0x26f3('0xf7')];if(_0x4b0cb8){const _0xeefbdb=_0x489400['getAttribute'](_0x26f3('0xf5')),_0xed78e8=_0x22cd91['getAttribute']('vid_end');_0x22cd91['_setAttribute'](_0x26f3('0xf5'),_0xeefbdb),_0x489400[_0x26f3('0xea')](_0x26f3('0xf5'),_0xed78e8),this[_0x26f3('0x95')][_0x26f3('0x3a')](_0x22cd91[_0x26f3('0xfe')](_0x26f3('0xf5')),{'userId':_0xc92bb2}),this[_0x26f3('0x95')]['set'](_0x489400[_0x26f3('0xfe')](_0x26f3('0xb')),{'userId':_0xc92bb2});}else{const _0x4bdf17=this[_0x26f3('0xb0')]++,_0x3cb891=this[_0x26f3('0xb0')]++;_0x22cd91[_0x26f3('0xea')](_0x26f3('0xf5'),_0x4bdf17),_0x489400[_0x26f3('0xea')]('vid_start',_0x3cb891),_0x489400[_0x26f3('0xea')]('vid_end',_0x4dfa86),this[_0x26f3('0x95')][_0x26f3('0x3a')](_0x4bdf17,{'userId':_0xc92bb2}),this[_0x26f3('0x95')]['set'](_0x3cb891,{'userId':_0xc92bb2});}}[_0x26f3('0xcc')](_0x11c57e){if(!_0x11c57e[_0x26f3('0x51')])return;const _0x5030e9=(_0x11c57e=this[_0x26f3('0x7d')](_0x11c57e,this[_0x26f3('0xb2')]))[_0x26f3('0xaf')]?_0x11c57e[_0x26f3('0xaf')][_0x26f3('0x1d')]:null,_0x4a7f28=_0x11c57e[_0x26f3('0x58')]?_0x11c57e['newRange'][_0x26f3('0x1d')]:null;_0x5030e9&&this['_markers'][_0x26f3('0x30')](_0x11c57e[_0x26f3('0xba')]),_0x4a7f28&&this[_0x26f3('0x9e')]['set'](_0x11c57e[_0x26f3('0xba')],_0x11c57e[_0x26f3('0x58')][_0x26f3('0xd2')]());const _0x46915b=null===_0x11c57e[_0x26f3('0xdd')]?null:_0x11c57e[_0x26f3('0xdd')]||this['editor'][_0x26f3('0x9')]['get']('Users')['me']['id'],_0x17a8cb=_0x11c57e[_0x26f3('0xba')];if(!this['_touchedMarkers'][_0x26f3('0xcf')](_0x17a8cb))return void this[_0x26f3('0x66')][_0x26f3('0x3a')](_0x17a8cb,{'range':_0x11c57e[_0x26f3('0xaf')],'userId':_0x46915b});const _0x5a7250=this[_0x26f3('0x66')][_0x26f3('0x5')](_0x17a8cb),_0x48d5c9=_0x5a7250[_0x26f3('0xa7')],_0x869086=_0x11c57e['newRange'];null==_0x48d5c9&&null==_0x869086||_0x48d5c9&&_0x869086&&_0x48d5c9[_0x26f3('0x10c')](_0x869086)?this['_touchedMarkers'][_0x26f3('0x30')](_0x11c57e[_0x26f3('0xba')]):_0x5a7250[_0x26f3('0x19')]=_0x46915b;}[_0x26f3('0xe')](_0x5d9034,_0x333ea6){this[_0x26f3('0xb2')]['has'](_0x5d9034['rootName'])?this[_0x26f3('0xb2')][_0x26f3('0x5')](_0x5d9034['rootName'])[_0x26f3('0x4b')]=_0x5d9034['isAdd']:(this[_0x26f3('0xb2')][_0x26f3('0x3a')](_0x5d9034[_0x26f3('0xe8')],G(_0x5d9034['rootName'],!0x0)),this[_0x26f3('0x2a')][_0x26f3('0x3a')](_0x5d9034[_0x26f3('0xe8')],{}),_0x333ea6&&this[_0x26f3('0x73')]['set'](_0x5d9034[_0x26f3('0xe8')],G(_0x5d9034[_0x26f3('0xe8')],!0x0)));const _0x17809c=null===_0x5d9034[_0x26f3('0xdd')]?null:_0x5d9034[_0x26f3('0xdd')]||this[_0x26f3('0xe3')][_0x26f3('0x9')][_0x26f3('0x5')]('Users')['me']['id'],_0x175455=this['_touchedRoots']['get'](_0x5d9034[_0x26f3('0xe8')]);_0x175455&&_0x175455['userId']===_0x17809c?this[_0x26f3('0x64')]['delete'](_0x5d9034['rootName']):this[_0x26f3('0x64')][_0x26f3('0x3a')](_0x5d9034[_0x26f3('0xe8')],{'userId':_0x17809c,'isAttached':_0x5d9034[_0x26f3('0x44')]});}[_0x26f3('0x5f')](_0x3aed8a){const _0x37670b=this[_0x26f3('0x2a')][_0x26f3('0x5')](_0x3aed8a[_0x26f3('0x1d')][_0x26f3('0xe8')]);null===_0x3aed8a['newValue']?delete _0x37670b[_0x3aed8a['key']]:_0x37670b[_0x3aed8a[_0x26f3('0xde')]]=_0x3aed8a['newValue'];}}function q(_0x4dc3c6){const _0x41a9f9=G(_0x4dc3c6['rootName'],_0x4dc3c6[_0x26f3('0x10')]());for(const _0x126d50 of _0x4dc3c6[_0x26f3('0x6a')]()){const _0x4d2db7=_0x126d50[_0x26f3('0xf2')](!0x0);_0x41a9f9['_appendChild'](_0x4d2db7);}return _0x41a9f9;}function G(_0x2497f0,_0x21aac6=!0x0){const _0x442594=new _0x47a350();return _0x442594[_0x26f3('0xe8')]=_0x2497f0,_0x442594['_isAttached']=_0x21aac6,_0x442594[_0x26f3('0x10')]=()=>_0x442594[_0x26f3('0x4b')],_0x442594;}function L(_0x2c5027,_0x4e8401,_0x4dc2e6){const _0x4e2470=_0x26f3('0xdc')==_0x2c5027['type']?_0x4dc2e6[_0x26f3('0x84')](_0x2c5027[_0x26f3('0xd9')],'end'):_0x4dc2e6['createPositionBefore'](_0x2c5027[_0x26f3('0xd9')]);return _0x4dc2e6[_0x26f3('0x79')](_0x4e8401,_0x4e2470[_0x26f3('0xf0')],_0x4e2470['stickiness']);}function W(_0x40e433,_0x50057e,_0x25bf29){const _0x473129=_0x26f3('0x29')==_0x40e433['type']?_0x25bf29[_0x26f3('0x84')](_0x40e433[_0x26f3('0xd9')],0x0):_0x25bf29[_0x26f3('0x8')](_0x40e433['item']);return _0x25bf29[_0x26f3('0x79')](_0x50057e,_0x473129[_0x26f3('0xf0')],_0x473129[_0x26f3('0x92')]);}
|