@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230725.1 → 0.0.0-nightly-20230727.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisiontracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x317d=['initialData','$text','_replaceEditorDataWithRevisionData','getRevisionDocumentData','_isAttached','_source','reInit','_update','createPositionFromPath','_insertChild','history','element','oldRange','_fixPosition','_createFromRanges','markerToData','_findInsertionIndex','offset','_saveMetaData','attributesAfter','bind','_getVidAttributeName','createPositionAt','_authorId','_handleMoveOperation','type','_handleInsertOperation','_baseRoots','_copyMarkers','_makeRevision','deletions','getRootNames','toVersion','isAttached','getRoot','newRange','elementStart','_reset','_removeRevisionMarkers','insertion','keys','_handleRootAttributeOperation','creatorId','paragraph','addRevision','isReady','previousPosition','createPositionBefore','revision','_revisionId','_diffRoots','some','creator','editor','remove','filter','name','_markers','resolve','forEach','map','_baseIdsRoots','useFillerType','changeRootAttribute','_diffRootsAttributes','clone','getWalker','_lastFrom','revision:','_markChanges','_handleRootOperation','createRange','from','pluginName','delete','$graveyard','_fixRange','_setConversion','diffData','_getState','finally','getAncestors','_loadRevisionData','_startingVersion','data','attributes','_removePendingAction','data-revision-','path','_touchedRoots','range','buildRevisionData','text','getRevisionRootsAttributes','sourcePosition','clear','markers','plugins','getChild','isEnabled','_baseRootsAttributes','_getFromVersion','get','affectsData','length','_setAttribute','Empty\x20document','editor-initial-data-replaced-with-revision-data','_continueCurrentRevision','saveRevision','revision-end','_isInit','getRevision','split','_savedMetaData','dataToMarker','RevisionsRepository','getUser','root','fromEntries','_createInitialRevision','_processRootBeforeSave','end','_prepareViewToSave','_addPendingAction','_touched','_makeIdsRoot','_createCurrentRevision','_getBaseVids','size','revision-start','getRange','values','vid','version','has','_bufferedUpdates','authorsIds','reinsert','model','marked','childCount','createRangeIn','parent','hasContent','sendBufferedUpdates','_execute','_getViewJson','view','nodeAfter','attachChange','_makeModelFromViewString','NEGATIVE_INFINITY','source','isAdd','getData','_revisionDataBuilder','document','repository','locale','getOperation','insertions','_handleMergeOperation','marker','createRevision','_operations','getChildren','find','rootName','createPositionAfter','currentRevision','_isPendingUpdate','getCurrentRevisionId','item','add','_transformMarkers','vid_start','removeRootAttribute','slice','getLatestVersion','init','_handleSplitOperation','getOperations','processor','newValue','deletion','start','addRoot','reverse','keepParagraph','adapter','howMany','revisionHistory.resumeUnsavedRevision','detachRoot','set','ready','toModel','_handleMarkerOperation','offsetSize','position','documentFragment','loadState','_idsRoots','baseVersion','insert','PendingActions','elementEnd','_bufferUpdate','initial','_fixOperation','createdAt','stringify','conversion','setRevisionData','_loadState','upcast','targetPosition','fromVersion','then','move','getIndex','_removeMetaData','isEqual','config','_generateTape','push','_calculateMetaData','attributesBefore','Users','_loadedStateData','getNodeByPath','_pendingAction','string','sort','getAttribute','_startingRevisionId','_appendChild','update','Initial\x20revision','_touchedMarkers','_applyOperations','_getPreviousFrom','roots','_initialRoots','userId','_clone','startsWith','getAttributes','tableCell','_cloneOperation','vid_end','_lastTo','children','includes','editing','addRevisionData','getMovedRangeStart','stickiness','afterInit','authors','PENDING_ACTION_REVISION_HISTORY','collaboration.channelId','getRevisions'];(function(_0x3f91aa,_0x317dfc){const _0x3786a5=function(_0x42ad22){while(--_0x42ad22){_0x3f91aa['push'](_0x3f91aa['shift']());}};_0x3786a5(++_0x317dfc);}(_0x317d,0x16f));const _0x3786=function(_0x3f91aa,_0x317dfc){_0x3f91aa=_0x3f91aa-0x0;let _0x3786a5=_0x317d[_0x3f91aa];return _0x3786a5;};import{Users as _0x5d2c4c}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x2b8f11,PendingActions as _0x2402a3}from'ckeditor5/src/core';import{logWarning as _0x340e0c,uid as _0x231d5f}from'ckeditor5/src/utils';import{Position as _0x3128a9,Range as _0x53717c,Element as _0x1b8bbd,DocumentFragment as _0x41a162,ViewText as _0x2746cf,ViewElement as _0x247ec7,ViewContainerElement as _0x210b8c,ViewAttributeElement as _0x24a468,ViewEmptyElement as _0x455a4a,ViewRawElement as _0x97aa98,ViewUIElement as _0x320ad1,ViewDocumentFragment as _0xa83c73}from'ckeditor5/src/engine';import _0x1a2bbc from'./revisionsrepository';import{getTranslation as _0x42a1d2}from'./utils/common-translations';import{cloneDeep as _0x4c85e6,isEqual as _0xa0e00f}from'lodash-es';const B={'c':_0x210b8c,'a':_0x24a468,'e':_0x455a4a,'r':_0x97aa98,'u':_0x320ad1};export default class l extends _0x2b8f11{static get[_0x3786('0xe8')](){return'RevisionTracker';}static get['requires'](){return[_0x5d2c4c,_0x1a2bbc,_0x2402a3];}constructor(_0x103524){super(_0x103524),this[_0x3786('0x56')]=null,this['currentRevision']=null,this[_0x3786('0x34')]=new H(this['editor']),this['_initialRevisionId']=this[_0x3786('0xd4')]['config'][_0x3786('0x105')](_0x3786('0x9d'))||_0x3786('0x68'),this[_0x3786('0x20')]=new Map(),this[_0x3786('0x7d')]=null;const _0x1e2b41=_0x231d5f();this[_0x3786('0xa4')]={'history':this[_0x3786('0xd4')]['model'][_0x3786('0x35')][_0x3786('0xa9')],'getLatestVersion':()=>Promise[_0x3786('0xd9')](this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x35')][_0x3786('0x1e')]),'getCurrentRevisionId':()=>_0x1e2b41},this[_0x3786('0x5a')](_0x3786('0xcc'),!0x1),this[_0x3786('0x5a')](_0x3786('0x102'),!0x0),this[_0x3786('0x5a')](_0x3786('0x43'),!0x1),this[_0x3786('0xd4')]['config']['define'](_0x3786('0x58'),!0x0),this[_0x3786('0xd4')][_0x3786('0x6c')]['for'](_0x3786('0x6f'))[_0x3786('0xb')]({'view':_0x3786('0xcf')});}[_0x3786('0x4c')](){this[_0x3786('0x36')]=this[_0x3786('0xd4')]['plugins']['get'](_0x3786('0xc')),this[_0x3786('0xec')](),this[_0x3786('0xd4')][_0x3786('0xf3')]['on'](_0x3786('0x5b'),()=>{const _0x366239=this['repository'][_0x3786('0x8')](0x0),_0x273272=_0x366239&&null===_0x366239[_0x3786('0xd3')]?_0x366239:null;if(this[_0x3786('0x4')]=!!_0x273272&&this[_0x3786('0xd4')][_0x3786('0x77')][_0x3786('0x105')]('revisionHistory.resumeUnsavedRevision'),this[_0x3786('0xd4')]['plugins']['has']('RealTimeCollaborationClient')){const _0x16d0d1=this[_0x3786('0xa4')]['getCurrentRevisionId'](),_0x13596f=this[_0x3786('0x36')][_0x3786('0x8')](_0x16d0d1);if(_0x13596f)this[_0x3786('0xf2')]=_0x13596f[_0x3786('0x71')],this['_continueCurrentRevision']=!0x1;else{const _0x3236cc=this[_0x3786('0xa4')][_0x3786('0xa9')][_0x3786('0x3d')][_0x3786('0x3f')](_0xeb49f5=>!_0xeb49f5[_0x3786('0x7')]),_0x4fa4c9=_0x3236cc?_0x3236cc[_0x3786('0x63')]:this[_0x3786('0xa4')][_0x3786('0xa9')][_0x3786('0x1e')];_0x366239?(_0x366239[_0x3786('0xbf')]<_0x4fa4c9&&_0x366239[_0x3786('0xa6')]({'toVersion':_0x4fa4c9}),this[_0x3786('0x4')]?(this[_0x3786('0xa4')][_0x3786('0x44')]=()=>_0x273272['id'],this[_0x3786('0xf2')]=_0x273272[_0x3786('0x71')]):(this[_0x3786('0xf2')]=_0x366239[_0x3786('0xbf')],this[_0x3786('0x4')]=!0x1)):(this[_0x3786('0xf2')]=_0x4fa4c9,this['_continueCurrentRevision']=!0x1);}}else _0x273272&&(this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x35')]['history'][_0x3786('0x1e')]=Math['max'](_0x273272['toVersion'],this[_0x3786('0xd4')]['model'][_0x3786('0x35')]['history'][_0x3786('0x1e')]),_0x273272[_0x3786('0x71')]===_0x273272[_0x3786('0xbf')]?(0x0!==_0x273272[_0x3786('0x71')]&&(this['_source'][_0x3786('0x44')]=()=>_0x273272['id']),this[_0x3786('0x4')]=!0x1):this[_0x3786('0x4')]&&(this[_0x3786('0xa4')]['getCurrentRevisionId']=()=>_0x273272['id'],this[_0x3786('0xf2')]=_0x273272[_0x3786('0x71')])),this['_continueCurrentRevision']||(this['_startingVersion']=this[_0x3786('0xd4')]['model'][_0x3786('0x35')][_0x3786('0x1e')]);this[_0x3786('0x34')]['init'](this[_0x3786('0xa4')][_0x3786('0xa9')]),this[_0x3786('0x10')](this[_0x3786('0xf2')]),this[_0x3786('0x17')](this[_0x3786('0xf2')]),this[_0x3786('0x56')]&&this[_0x3786('0x29')]();}),this[_0x3786('0xb3')](_0x3786('0xcc'))['to'](this,_0x3786('0x43'),_0x2f3356=>!_0x2f3356);}async[_0x3786('0x9a')](){if(this[_0x3786('0x36')]['length']>0x0){const _0x260283=this[_0x3786('0x36')]['getRevision'](0x0),_0x1d857b=await this['getRevisionDocumentData'](_0x260283),_0x1e58cc=await this[_0x3786('0xfc')](_0x260283);this[_0x3786('0xa1')](_0x1d857b,_0x1e58cc);}}['setSource'](_0x16da99){this['_source']=_0x16da99;}async[_0x3786('0x85')](){const _0x42bf05=await this[_0x3786('0xa4')][_0x3786('0x4b')]();if(_0x42bf05>this[_0x3786('0x42')][_0x3786('0xbf')]){await this[_0x3786('0x6e')]();const _0x33f8e6=this[_0x3786('0xfa')]({'revision':this[_0x3786('0x42')],'to':_0x42bf05});_0x33f8e6[_0x3786('0x9b')]=_0x33f8e6[_0x3786('0x21')]['map'](_0x2d5435=>this['editor'][_0x3786('0x100')]['get'](_0x3786('0x7c'))[_0x3786('0xd')](_0x2d5435)),this[_0x3786('0x42')][_0x3786('0xa6')](_0x33f8e6);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this[_0x3786('0x42')]),this[_0x3786('0x34')]['loadState'](this[_0x3786('0x42')]),this[_0x3786('0x7d')]={'fromVersion':this['currentRevision'][_0x3786('0x71')],'authors':this['currentRevision']['authors'][_0x3786('0x4a')]()});}async[_0x3786('0x5')](_0x341d4a={},_0x134d32=null){const _0x8b454e=[];await this[_0x3786('0x6e')](),this[_0x3786('0x4')]=!0x1,_0x134d32>this[_0x3786('0x42')][_0x3786('0xbf')]&&(_0x134d32=null),null===_0x134d32&&(_0x134d32=await this['_source']['getLatestVersion']());const _0x43fde4=this[_0x3786('0x104')](_0x134d32),_0x3e3b8d=this['buildRevisionData']({'from':_0x43fde4,'to':_0x134d32});if(this['currentRevision'][_0x3786('0xbf')]<_0x134d32){const _0x4951b4=this[_0x3786('0xfa')]({'revision':this[_0x3786('0x42')],'from':_0x134d32,'to':_0x134d32});_0x4951b4['authors']=[],_0x4951b4[_0x3786('0x21')]=[],_0x4951b4['id']=this['currentRevision']['id'],this[_0x3786('0x42')][_0x3786('0xa6')](_0x4951b4,!0x0),delete _0x4951b4[_0x3786('0x9b')],_0x8b454e[_0x3786('0x79')](_0x4951b4);}_0x341d4a[_0x3786('0xc9')]=this[_0x3786('0xd4')]['plugins']['get']('Users')['me']['id'],_0x341d4a['name']=_0x341d4a[_0x3786('0xd7')]||null,_0x341d4a['id']=_0x341d4a['id']||_0x231d5f(),_0x341d4a={..._0x341d4a,..._0x3e3b8d};const _0xe3c382=this[_0x3786('0x97')](_0x341d4a);_0x8b454e['push'](_0x341d4a);const _0x17a10a=this[_0x3786('0x36')][_0x3786('0x74')](_0xe3c382);if(0x0!==_0x17a10a){const _0x59e9d7=this[_0x3786('0x36')]['getRevision'](_0x17a10a-0x1);if(_0x59e9d7[_0x3786('0x71')]!==_0x134d32){const _0x26a911=this[_0x3786('0x34')]['getData'](_0x134d32,_0x59e9d7[_0x3786('0xbf')]),_0x553e44={'id':_0x59e9d7['id'],'diffData':_0x26a911[_0x3786('0xed')],'authorsIds':_0x26a911[_0x3786('0x21')],'authors':_0x26a911[_0x3786('0x21')][_0x3786('0xdb')](_0xc95608=>this[_0x3786('0xd4')][_0x3786('0x100')]['get']('Users')[_0x3786('0xd')](_0xc95608)),'fromVersion':_0x134d32};_0x59e9d7===this[_0x3786('0x42')]&&(_0x553e44[_0x3786('0x6a')]=new Date(_0x341d4a[_0x3786('0x6a')]['getTime']()+0xa)),_0x59e9d7[_0x3786('0xa6')](_0x553e44,!0x0),delete _0x553e44[_0x3786('0x9b')],_0x8b454e['push'](_0x553e44);}}if(this[_0x3786('0x56')]){for(const _0x4f0b66 of _0x8b454e)this['_bufferUpdate'](_0x4f0b66['id'],_0x4f0b66,!0x0);this['sendBufferedUpdates']();}return _0xe3c382;}[_0x3786('0x97')](_0x1139d9){const _0x134252=this[_0x3786('0x36')][_0x3786('0x3c')](_0x1139d9);return this[_0x3786('0x56')]&&_0x134252['on'](_0x3786('0xa6'),(_0x156d2f,_0x59fb8d,_0x2237d9)=>{_0x2237d9||(this[_0x3786('0x67')](_0x59fb8d['id'],_0x59fb8d,!0x0),this[_0x3786('0x29')]());}),this[_0x3786('0x36')][_0x3786('0xcb')](_0x134252,this[_0x3786('0xaf')](_0x134252)),_0x134252;}async[_0x3786('0xa2')](_0x2650fe){await this[_0x3786('0xf1')](_0x2650fe);const _0x2ec16c={};for(const _0x172a12 in _0x2650fe[_0x3786('0xed')]){if(_0x2650fe[_0x3786('0xed')][_0x172a12]['attachChange']&&!_0x2650fe[_0x3786('0xed')][_0x172a12][_0x3786('0x2e')]['isAttached'])continue;const _0x54a7d9=this[_0x3786('0xc5')](JSON['parse'](_0x2650fe['diffData'][_0x172a12]['insertions'])),_0x5781ca=this[_0x3786('0xd4')][_0x3786('0x96')]['view'][_0x3786('0x35')],_0x20e2bd=new _0xa83c73(_0x5781ca,_0x54a7d9[_0x3786('0xdb')](_0x33b841=>J(_0x33b841,this[_0x3786('0xd4')])));this[_0x3786('0xd4')][_0x3786('0xf3')][_0x3786('0x4f')]['useFillerType'](_0x3786('0x24')),_0x2ec16c[_0x172a12]=this[_0x3786('0xd4')][_0x3786('0xf3')]['processor']['toData'](_0x20e2bd),this[_0x3786('0xd4')]['data'][_0x3786('0x4f')][_0x3786('0xdd')]('default');}return _0x2ec16c;}async[_0x3786('0xfc')](_0x518b16){await this[_0x3786('0xf1')](_0x518b16);const _0x3cb03d={};for(const _0x408b4d in _0x518b16[_0x3786('0xed')])_0x518b16[_0x3786('0xed')][_0x408b4d]['attachChange']&&!_0x518b16[_0x3786('0xed')][_0x408b4d][_0x3786('0x2e')][_0x3786('0xc0')]||(_0x3cb03d[_0x408b4d]=_0x518b16[_0x3786('0xed')][_0x408b4d][_0x3786('0xb2')]||{});return _0x3cb03d;}[_0x3786('0x29')](){if(0x0===this[_0x3786('0x20')][_0x3786('0x19')])return;if(this[_0x3786('0x43')])return;let _0x5f5bc7=Array[_0x3786('0xe7')](this[_0x3786('0x20')][_0x3786('0x1c')]());this[_0x3786('0x20')][_0x3786('0xfe')]();for(let _0xc71582=0x0;_0xc71582<_0x5f5bc7['length'];_0xc71582++){const _0x23e10e=_0x5f5bc7[_0xc71582];let _0x4bdba0=!0x1;for(const _0x5907e4 of Object[_0x3786('0xc7')](_0x23e10e))void 0x0===_0x23e10e[_0x5907e4]?delete _0x23e10e[_0x5907e4]:'id'!==_0x5907e4&&(_0x4bdba0=!0x0);_0x4bdba0||(_0x5f5bc7[_0xc71582]=null);}if(_0x5f5bc7=_0x5f5bc7[_0x3786('0xd6')](_0x1bd370=>null!==_0x1bd370),!_0x5f5bc7[_0x3786('0x0')])return;for(let _0x59d305=0x0;_0x59d305<_0x5f5bc7[_0x3786('0x0')];_0x59d305++){const _0x46caeb=_0x5f5bc7[_0x59d305];void 0x0!==_0x46caeb['fromVersion']&&void 0x0===_0x46caeb['toVersion']&&(_0x46caeb[_0x3786('0xbf')]=this[_0x3786('0x36')]['getRevision'](_0x46caeb['id'])[_0x3786('0xbf')]),void 0x0!==_0x46caeb[_0x3786('0xbf')]&&void 0x0===_0x46caeb[_0x3786('0x71')]&&(_0x46caeb[_0x3786('0x71')]=this[_0x3786('0x36')][_0x3786('0x8')](_0x46caeb['id'])['fromVersion']);}const _0x1c06a8=this[_0x3786('0xd4')][_0x3786('0x77')][_0x3786('0x105')](_0x3786('0x9d'));this[_0x3786('0x43')]=!0x0,this[_0x3786('0x14')](),this[_0x3786('0x56')]['updateRevisions'](_0x5f5bc7,_0x1c06a8)[_0x3786('0xef')](()=>{this['_isPendingUpdate']=!0x1;})[_0x3786('0x72')](_0x517476=>{if(_0x517476)for(const _0x38bab2 of _0x517476)this['setRevisionData']({'id':_0x38bab2['id'],'createdAt':_0x38bab2[_0x3786('0x6a')]});this[_0x3786('0xf5')](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x45d61d,_0x4c828e){let _0x12c546=this[_0x3786('0xd4')][_0x3786('0x77')][_0x3786('0x105')](_0x3786('0x9f')),_0x20591f=this['editor'][_0x3786('0x77')][_0x3786('0x105')]('rootsAttributes');if(void 0x0===_0x12c546){_0x12c546={};for(const _0x2b3cce of this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x35')][_0x3786('0xbe')]())_0x12c546[_0x2b3cce]='';}if(_0x3786('0x80')==typeof _0x12c546&&(_0x12c546={'main':_0x12c546}),void 0x0===_0x20591f){_0x20591f={};for(const _0xa28627 of this[_0x3786('0xd4')][_0x3786('0x23')]['document']['getRootNames']())_0x20591f[_0xa28627]={};}let _0x5a667f=!0x1;const _0x50d4c4=Object[_0x3786('0xc7')](_0x12c546),_0x575118=Object[_0x3786('0xc7')](_0x45d61d);for(const _0x21807a of _0x50d4c4){if(_0x12c546[_0x21807a]!==_0x45d61d[_0x21807a]&&''!==_0x12c546[_0x21807a]['trim']()){_0x5a667f=!0x0;break;}if(!_0xa0e00f(_0x20591f[_0x21807a],_0x4c828e[_0x21807a])&&Object[_0x3786('0xc7')](_0x20591f[_0x21807a])[_0x3786('0x0')]>0x0){_0x5a667f=!0x0;break;}}_0x5a667f||(_0x5a667f=_0x575118[_0x3786('0xd2')](_0x3927bd=>!_0x50d4c4[_0x3786('0x95')](_0x3927bd))),_0x5a667f&&_0x340e0c(_0x3786('0x3'),{'editorData':_0x12c546,'editorRootsAttributes':_0x20591f,'revisionData':_0x45d61d,'revisionRootsAttributes':_0x4c828e}),this[_0x3786('0xd4')][_0x3786('0x77')][_0x3786('0x5a')](_0x3786('0x9f'),_0x45d61d),this['editor']['config'][_0x3786('0x5a')]('rootsAttributes',_0x4c828e);}[_0x3786('0x14')](){if(!this[_0x3786('0x7f')]){const _0x124611=this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')](_0x3786('0x65'));this['_pendingAction']=_0x124611['add'](_0x42a1d2(this['editor'][_0x3786('0x37')],_0x3786('0x9c')));}}['_removePendingAction'](){this[_0x3786('0x7f')]&&(this['editor']['plugins'][_0x3786('0x105')]('PendingActions')[_0x3786('0xd5')](this['_pendingAction']),this[_0x3786('0x7f')]=null);}['_findInsertionIndex'](_0xc01bf9){const _0x1a6c04=this[_0x3786('0x36')]['getRevisions']();_0x1a6c04['reverse']();let _0x5e8da6=0x0;for(;_0x5e8da6<_0x1a6c04['length'];){const _0x46ec1f=_0x1a6c04[_0x5e8da6];if(_0x46ec1f===this['currentRevision']){_0x5e8da6++;continue;}if(_0x46ec1f['id']===this['_initialRevisionId'])break;const _0x515b55=_0xc01bf9[_0x3786('0xbf')]-_0x46ec1f[_0x3786('0xbf')]||_0xc01bf9[_0x3786('0x71')]-_0x46ec1f[_0x3786('0x71')];if(_0x515b55>0x0)break;if(_0x515b55<0x0)_0x5e8da6++;else{if(!_0xc01bf9['creator']&&_0x46ec1f[_0x3786('0xd3')])break;if(_0x46ec1f[_0x3786('0xd3')]||!_0xc01bf9[_0x3786('0xd3')]){if(_0xc01bf9[_0x3786('0x6a')]>_0x46ec1f[_0x3786('0x6a')])break;_0x5e8da6++;}else _0x5e8da6++;}}return _0x5e8da6;}[_0x3786('0x6d')](_0x242171){const _0x140adc=this[_0x3786('0x36')]['getRevision'](_0x242171['id']);if(_0x242171['createdAt']&&(_0x242171[_0x3786('0x6a')]=new Date(_0x242171[_0x3786('0x6a')])),_0x242171['authorsIds']){const _0x151413=this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')](_0x3786('0x7c'));_0x242171['authors']=_0x242171[_0x3786('0x21')][_0x3786('0xdb')](_0x32f59b=>_0x151413[_0x3786('0xd')](_0x32f59b));}_0x140adc[_0x3786('0xa6')](_0x242171,!0x0);}[_0x3786('0xfa')]({revision:_0x2a7981=null,from:_0x571426=null,to:_0x2ab75f=null}){_0x571426=null!==_0x571426?_0x571426:_0x2a7981[_0x3786('0x71')],_0x2ab75f=null!==_0x2ab75f?_0x2ab75f:_0x2a7981[_0x3786('0xbf')];const _0x3786c9=this[_0x3786('0x34')][_0x3786('0x33')](_0x571426,_0x2ab75f),_0x33f596={'diffData':_0x3786c9[_0x3786('0xed')],'authorsIds':_0x3786c9[_0x3786('0x21')],'fromVersion':_0x571426,'toVersion':_0x2ab75f};if(!_0x2a7981||_0x2ab75f!==_0x2a7981[_0x3786('0xbf')]){const _0x265140=_0x2ab75f-0x1,_0x436947=this['_source'][_0x3786('0xa9')][_0x3786('0x38')](_0x265140);_0x33f596['createdAt']=_0x436947&&_0x436947[_0x3786('0x6a')]||new Date();}if(this[_0x3786('0x7d')]&&_0x571426===this['_loadedStateData']['fromVersion'])for(const _0x258cbc of this[_0x3786('0x7d')][_0x3786('0x9b')])_0x33f596['authorsIds'][_0x3786('0x95')](_0x258cbc['id'])||_0x33f596[_0x3786('0x21')][_0x3786('0x79')](_0x258cbc['id']);return _0x33f596;}[_0x3786('0xf1')](_0x51cc45){if(!_0x51cc45||_0x51cc45[_0x3786('0xed')])return Promise[_0x3786('0xd9')]();{const _0x48669b=this[_0x3786('0xd4')][_0x3786('0x77')]['get']('collaboration.channelId');return this[_0x3786('0x56')]['getRevision']({'channelId':_0x48669b,'revisionId':_0x51cc45['id']})[_0x3786('0x72')](_0x239c30=>{_0x51cc45[_0x3786('0xed')]=_0x239c30[_0x3786('0xed')];});}}['_bufferUpdate'](_0x34f13d,_0xde55e4,_0x5ba62b){if(this[_0x3786('0x20')]['has'](_0x34f13d)){const _0x39a69f=this[_0x3786('0x20')][_0x3786('0x105')](_0x34f13d);_0xde55e4=_0x5ba62b?{..._0x39a69f,..._0xde55e4}:{..._0xde55e4,..._0x39a69f};}this[_0x3786('0x20')][_0x3786('0x5a')](_0x34f13d,_0xde55e4);}[_0x3786('0x104')](_0x402beb){const _0x3b36d6=this[_0x3786('0x36')][_0x3786('0x9e')]();_0x3b36d6[_0x3786('0x54')](),_0x3b36d6['shift']();const _0x5df6a5=_0x3b36d6[_0x3786('0x3f')](_0x31faa1=>_0x31faa1[_0x3786('0xbf')]<=_0x402beb)[_0x3786('0xbf')];return _0x5df6a5<this[_0x3786('0xf2')]?this['_startingVersion']:_0x5df6a5;}[_0x3786('0x10')](_0x49b3b7){const _0x7a1f0e=this[_0x3786('0x36')][_0x3786('0x8')](this[_0x3786('0x36')][_0x3786('0x0')]-0x1);if(_0x7a1f0e)this['_initialRevisionId']=_0x7a1f0e['id'];else{const _0x5cf15e=!this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x35')][_0x3786('0x8a')][_0x3786('0x3f')](_0x5e256c=>this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x28')](_0x5e256c)),_0x172d82=this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')](_0x3786('0x7c'))['me']['id'],_0x49dcab=_0x42a1d2(this[_0x3786('0xd4')][_0x3786('0x37')],_0x5cf15e?_0x3786('0x2'):_0x3786('0x86'));this[_0x3786('0xbc')]({'from':_0x49b3b7,'to':_0x49b3b7,'id':this['_initialRevisionId'],'name':_0x49dcab,'creatorId':_0x172d82});}}[_0x3786('0x17')](_0x5df917){const _0x5cfc1b=this[_0x3786('0xa4')][_0x3786('0x44')]();this[_0x3786('0x42')]=this[_0x3786('0x36')][_0x3786('0x8')](_0x5cfc1b),this[_0x3786('0x42')]||(this[_0x3786('0x42')]=this[_0x3786('0xbc')]({'from':_0x5df917,'to':_0x5df917,'id':_0x5cfc1b,'name':'','creatorId':null}));}[_0x3786('0xbc')]({name:_0x48b868,from:_0x364820,to:_0x29d92a,creatorId:_0x3f58f3,id:_0x467a55}){const _0x2833db=this[_0x3786('0xfa')]({'from':_0x364820,'to':_0x29d92a});_0x2833db[_0x3786('0xd7')]=_0x48b868,_0x2833db[_0x3786('0xc9')]=_0x3f58f3,_0x2833db['id']=_0x467a55;const _0x592168=this[_0x3786('0x97')](_0x2833db);return this['adapter']&&this[_0x3786('0x67')](_0x2833db['id'],_0x2833db,!0x0),_0x592168;}[_0x3786('0xec')](){this[_0x3786('0xd4')]['conversion']['for']('dataDowncast')[_0x3786('0xae')]({'model':'revision'});}['_removeRevisionMarkers'](_0x30fb32){return(_0x30fb32=_0x30fb32[_0x3786('0xd6')](_0x48080a=>!_0x48080a[_0x3786('0xd7')]||_0x3786('0x1a')!==_0x48080a[_0x3786('0xd7')]&&_0x3786('0x6')!==_0x48080a['name']))[_0x3786('0xda')](_0x2858cd=>{_0x3786('0x80')!=typeof _0x2858cd&&(_0x2858cd[_0x3786('0x94')]=this['_removeRevisionMarkers'](_0x2858cd[_0x3786('0x94')]),_0x2858cd[_0x3786('0xf4')]=_0x2858cd[_0x3786('0xf4')]['filter'](_0x100b9=>!_0x100b9[0x0][_0x3786('0x8e')](_0x3786('0xf6'))));}),_0x30fb32;}}function J(_0x3aaac3,_0x54bfa0){const _0x341bee=_0x54bfa0['editing'][_0x3786('0x2c')][_0x3786('0x35')];if(_0x3786('0x80')==typeof _0x3aaac3)return new _0x2746cf(_0x341bee,_0x3aaac3);{const _0x274c88=_0x3aaac3['children'][_0x3786('0xdb')](_0x5787bc=>J(_0x5787bc,_0x54bfa0));return new(B[_0x3aaac3[(_0x3786('0xb8'))]]||_0x247ec7)(_0x341bee,_0x3aaac3['name'],_0x3aaac3[_0x3786('0xf4')],_0x274c88);}}class H{constructor(_0x4a8406){this[_0x3786('0xd4')]=_0x4a8406,this[_0x3786('0xa')]=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this[_0x3786('0xd1')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x3786('0xba')]=new Map(),this[_0x3786('0x103')]=new Map(),this[_0x3786('0x62')]=new Map(),this[_0x3786('0xdc')]=new Map(),this[_0x3786('0x15')]=new Map(),this[_0x3786('0x87')]=new Map(),this[_0x3786('0xf8')]=new Map(),this['_revisionId']=0x1,this[_0x3786('0x8b')]=this[_0x3786('0xd4')]['model'][_0x3786('0x35')]['getRootNames'](),this[_0x3786('0x8b')]['push']('$graveyard');}[_0x3786('0x4c')](_0x46aea8){this['source']=_0x46aea8;const _0x51e19f=new Map(),_0x77d3ab=new Map(),_0x343126=this[_0x3786('0xd4')][_0x3786('0x23')]['document'][_0x3786('0xbe')](!0x0);_0x343126[_0x3786('0x79')]('$graveyard');for(const _0x39cada of _0x343126){const _0xc41def=this[_0x3786('0xd4')]['model']['document'][_0x3786('0xc1')](_0x39cada),_0xde2f50=q(_0xc41def);_0x51e19f[_0x3786('0x5a')](_0x39cada,_0xde2f50),_0x77d3ab[_0x3786('0x5a')](_0x39cada,Object[_0x3786('0xf')](_0xc41def[_0x3786('0x8f')]()));}const _0x2bdaec=Array[_0x3786('0xe7')](this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0xff')])['map'](_0x4ac653=>[_0x4ac653['name'],_0x4ac653[_0x3786('0x1b')]()]),_0x457cdd=this['source'][_0x3786('0x1e')];this['_saveMetaData'](_0x457cdd,_0x51e19f,_0x2bdaec,_0x77d3ab),this[_0x3786('0x83')]=this[_0x3786('0xd0')];const _0x225a02=new Map(),_0x327769=new Map();for(const _0x44d067 of this[_0x3786('0x8b')]){const _0x40718f=G(_0x44d067);_0x225a02['set'](_0x44d067,_0x40718f),_0x327769[_0x3786('0x5a')](_0x44d067,{});}this[_0x3786('0xb1')](Number['NEGATIVE_INFINITY'],_0x225a02,[],_0x327769);}['getData'](_0x53a4c7,_0x26ce2f){if(this['_lastFrom']===_0x53a4c7&&this[_0x3786('0x93')]<=_0x26ce2f)this[_0x3786('0xa')][_0x3786('0x19')]>0x1&&this['_removeMetaData'](this[_0x3786('0x93')]),this[_0x3786('0x88')](this[_0x3786('0x93')],_0x26ce2f,!0x0);else{if(!this[_0x3786('0xa')][_0x3786('0x1f')](_0x53a4c7)){const _0x29a298=this[_0x3786('0x89')](_0x53a4c7);this['_calculateMetaData'](_0x29a298,_0x53a4c7,!0x1);}this['_calculateMetaData'](_0x53a4c7,_0x26ce2f,!0x0);}return this[_0x3786('0xe2')]=_0x53a4c7,this[_0x3786('0x93')]=_0x26ce2f,this['_getState']();}[_0x3786('0x61')](_0x385bf4){this[_0x3786('0xc4')](),this[_0x3786('0xe2')]=_0x385bf4[_0x3786('0x71')],this[_0x3786('0x93')]=_0x385bf4['toVersion'];for(const _0x2eb15d in _0x385bf4[_0x3786('0xed')]){const _0x2e2030=_0x385bf4['diffData'][_0x2eb15d]['attachChange'],_0x20250b=_0x4c85e6(_0x385bf4[_0x3786('0xed')][_0x2eb15d][_0x3786('0x7b')])||{},_0xdfe463=this[_0x3786('0x2f')](_0x385bf4[_0x3786('0xed')][_0x2eb15d]['deletions']);_0xdfe463[_0x3786('0x40')]=_0x2eb15d,_0xdfe463['_isAttached']=!_0x2e2030||!_0x2e2030['isAttached'],_0xdfe463[_0x3786('0xc0')]=()=>_0xdfe463[_0x3786('0xa3')],this['_baseRoots'][_0x3786('0x5a')](_0x2eb15d,_0xdfe463),this[_0x3786('0x103')][_0x3786('0x5a')](_0x2eb15d,_0x20250b),_0x2e2030&&this['_touchedRoots'][_0x3786('0x5a')](_0x2eb15d,_0x2e2030);const _0x299398=this[_0x3786('0x16')](_0xdfe463);this[_0x3786('0xdc')][_0x3786('0x5a')](_0x2eb15d,_0x299398);for(const [_0x258aea,_0x38dac1]of _0xdfe463[_0x3786('0xff')]){if(!_0x258aea[_0x3786('0x8e')](_0x3786('0xe3')))continue;const _0x148fc9=_0x258aea[_0x3786('0x9')](':')[0x2];for(const _0x182b02 of _0x38dac1[_0x3786('0xe1')]({'singleCharacters':!0x0})){const _0x356559=this[_0x3786('0xb4')](_0x182b02),_0x591ba9=_0x3786('0x66')==_0x182b02[_0x3786('0xb8')]?_0x182b02[_0x3786('0xcd')][_0x3786('0xf7')][_0x3786('0x4a')](0x0,-0x1):_0x182b02['previousPosition'][_0x3786('0xf7')],_0x50900e=_0x299398[_0x3786('0x7e')](_0x591ba9)[_0x3786('0x82')](_0x356559);this[_0x3786('0x15')][_0x3786('0x5a')](_0x50900e,{'userId':_0x148fc9});}}}this[_0x3786('0x83')]=this['_revisionId'];const _0x2b4a57=[...Array(this[_0x3786('0xd0')])[_0x3786('0xc7')]()][_0x3786('0x4a')](0x1)[_0x3786('0xd6')](_0x214433=>!this[_0x3786('0x15')][_0x3786('0x1f')](_0x214433));let _0x2a040f=0x0;const _0x1f0411=new Map();for(const _0x4d4a7d in _0x385bf4[_0x3786('0xed')]){const _0x4f6c75=_0x385bf4['diffData'][_0x4d4a7d][_0x3786('0x2e')],_0x1ac6a9=_0x4c85e6(_0x385bf4[_0x3786('0xed')][_0x4d4a7d][_0x3786('0xb2')])||{},_0x41433d=this['_makeModelFromViewString'](_0x385bf4['diffData'][_0x4d4a7d][_0x3786('0x39')]);_0x41433d['rootName']=_0x4d4a7d,_0x41433d[_0x3786('0xa3')]=!_0x4f6c75||_0x4f6c75['isAttached'],_0x41433d[_0x3786('0xc0')]=()=>_0x41433d[_0x3786('0xa3')],this[_0x3786('0xd1')]['set'](_0x4d4a7d,_0x41433d),this['_diffRootsAttributes'][_0x3786('0x5a')](_0x4d4a7d,_0x1ac6a9);const _0x4d6b78=this[_0x3786('0x16')](_0x41433d,Number[_0x3786('0x30')]);this[_0x3786('0x62')][_0x3786('0x5a')](_0x4d4a7d,_0x4d6b78),_0x1f0411[_0x3786('0x5a')](_0x4d4a7d,_0x41433d[_0x3786('0xc0')]()?_0x1ac6a9:{});for(const [_0x43b2db,_0x4b0217]of _0x41433d[_0x3786('0xff')]){if(!_0x43b2db[_0x3786('0x8e')](_0x3786('0xe3')))continue;const _0x5ba6b0=_0x43b2db[_0x3786('0x9')](':')[0x2];for(const _0x5b760c of _0x4b0217[_0x3786('0xe1')]({'singleCharacters':!0x0})){const _0x56eaf9=this['_getVidAttributeName'](_0x5b760c),_0xb8b307=this[_0x3786('0xd0')]++,_0xfbc8b0=_0x3786('0x66')==_0x5b760c[_0x3786('0xb8')]?_0x5b760c[_0x3786('0xcd')][_0x3786('0xf7')][_0x3786('0x4a')](0x0,-0x1):_0x5b760c[_0x3786('0xcd')]['path'];_0x4d6b78[_0x3786('0x7e')](_0xfbc8b0)[_0x3786('0x1')](_0x56eaf9,_0xb8b307),this['_touched'][_0x3786('0x5a')](_0xb8b307,{'userId':_0x5ba6b0});}}for(const _0x383327 of this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x26')](_0x41433d)['getWalker']({'singleCharacters':!0x0})){const _0x21af27=this[_0x3786('0xb4')](_0x383327),_0x535e7b=_0x3786('0x66')==_0x383327[_0x3786('0xb8')]?_0x383327[_0x3786('0xcd')][_0x3786('0xf7')][_0x3786('0x4a')](0x0,-0x1):_0x383327['previousPosition'][_0x3786('0xf7')],_0x435723=_0x4d6b78[_0x3786('0x7e')](_0x535e7b);_0x435723[_0x3786('0x82')](_0x21af27)>0x0||_0x435723['_setAttribute'](_0x21af27,_0x2b4a57[_0x2a040f++]);}for(const [_0x1d7f86,_0xf362ff]of _0x41433d[_0x3786('0xff')])_0x1d7f86['startsWith'](_0x3786('0xe3'))||this['_markers']['set'](_0x1d7f86,_0xf362ff);}const _0x365fab=G('$graveyard');this[_0x3786('0xba')][_0x3786('0x5a')](_0x3786('0xea'),_0x365fab),this['_baseIdsRoots'][_0x3786('0x5a')](_0x3786('0xea'),this[_0x3786('0x16')](_0x365fab,0x1));const _0x2f9522=G(_0x3786('0xea'));this[_0x3786('0xd1')][_0x3786('0x5a')](_0x3786('0xea'),_0x2f9522),this[_0x3786('0x62')][_0x3786('0x5a')](_0x3786('0xea'),this[_0x3786('0x16')](_0x2f9522,0x1));const _0x4209b0=Array[_0x3786('0xe7')](this['_diffRoots'])[_0x3786('0xdb')](([_0x1fc2bf,_0x145a61])=>[_0x1fc2bf,q(_0x145a61)]);this['_saveMetaData'](this[_0x3786('0x93')],_0x4209b0,this[_0x3786('0xd8')],_0x1f0411);}[_0x3786('0x2f')](_0x5c484f){const _0x5db279=JSON['parse'](_0x5c484f),_0x394bef=this[_0x3786('0xd4')][_0x3786('0x96')][_0x3786('0x2c')][_0x3786('0x35')],_0x294991=new _0xa83c73(_0x394bef,_0x5db279[_0x3786('0xdb')](_0x38c883=>J(_0x38c883,this[_0x3786('0xd4')])));return this[_0x3786('0xd4')][_0x3786('0xf3')][_0x3786('0x5c')](_0x294991);}[_0x3786('0xb1')](_0x52ca64,_0x436983,_0x3a9637,_0x541345){const _0x406951=new Map(_0x436983),_0x2c306f=new Map(_0x4c85e6(_0x541345)),_0xf8cff0=new Map();for(const [_0x1e0aae,_0x1e5065]of _0x3a9637)_0xf8cff0[_0x3786('0x5a')](_0x1e0aae,{'start':_0x1e5065['start'][_0x3786('0xe0')](),'end':_0x1e5065[_0x3786('0x12')][_0x3786('0xe0')](),'rootName':_0x1e5065[_0x3786('0xe')]['rootName']});this['_savedMetaData'][_0x3786('0x5a')](_0x52ca64,{'roots':_0x406951,'markers':_0xf8cff0,'rootsAttributes':_0x2c306f});}[_0x3786('0x75')](_0x41f6b1){this['_savedMetaData'][_0x3786('0xe9')](_0x41f6b1);}[_0x3786('0xa5')](){this['_reset'](),this[_0x3786('0xe2')]=-0x1,this[_0x3786('0x93')]=-0x1,this['_savedMetaData']['clear'](),this[_0x3786('0x4c')](this[_0x3786('0x31')]);}[_0x3786('0xc4')](){this['_touched']['clear'](),this['_touchedMarkers'][_0x3786('0xfe')](),this['_touchedRoots']['clear'](),this['_diffRoots'][_0x3786('0xfe')](),this[_0x3786('0xdf')]['clear'](),this[_0x3786('0xba')][_0x3786('0xfe')](),this[_0x3786('0x103')][_0x3786('0xfe')](),this[_0x3786('0x62')]['clear'](),this[_0x3786('0xdc')][_0x3786('0xfe')](),this['_markers'][_0x3786('0xfe')](),this[_0x3786('0xd0')]=0x1,this[_0x3786('0x83')]=this[_0x3786('0xd0')];}['_makeIdsRoot'](_0x5abc5f,_0x5a29af=null){let _0x1f0f11=null;_0x5abc5f['is']('documentFragment')||(_0x1f0f11=new _0x1b8bbd(_0x5abc5f[_0x3786('0xd7')],{'vid_start':null===_0x5a29af?this['_revisionId']++:_0x5a29af++}));const _0x2e5653=[];for(const _0x4afafa of _0x5abc5f[_0x3786('0x3e')]())if(_0x4afafa['is'](_0x3786('0xaa'))){_0x2e5653['push'](this[_0x3786('0x16')](_0x4afafa,_0x5a29af));const _0x5efdc3=_0x2e5653[_0x2e5653[_0x3786('0x0')]-0x1];null!==_0x5a29af&&(_0x5a29af=_0x5efdc3['is'](_0x3786('0xaa'),_0x3786('0xa0'))?_0x5efdc3[_0x3786('0x82')](_0x3786('0x1d'))+0x1:_0x5efdc3['getAttribute'](_0x3786('0x92'))+0x1);}else for(let _0x2b476a=0x0;_0x2b476a<_0x4afafa[_0x3786('0x5e')];_0x2b476a++)_0x2e5653[_0x3786('0x79')](new _0x1b8bbd(_0x3786('0xa0'),{'vid':null===_0x5a29af?this[_0x3786('0xd0')]++:_0x5a29af++}));if(_0x5abc5f['is'](_0x3786('0x60'))){const _0x1dc195=G(_0x5abc5f[_0x3786('0x40')]);return _0x1dc195[_0x3786('0xa8')](0x0,_0x2e5653),_0x1dc195;}return _0x1f0f11['_setAttribute']('vid_end',null===_0x5a29af?this[_0x3786('0xd0')]++:_0x5a29af++),_0x1f0f11[_0x3786('0xa8')](0x0,_0x2e5653),_0x1f0f11;}[_0x3786('0x7a')](_0x4689a7,_0x22fd3d,_0x41d91c){this['_reset']();const {roots:_0x518e46,markers:_0x1836ad,rootsAttributes:_0x64875d}=this[_0x3786('0xa')][_0x3786('0x105')](_0x4689a7);this[_0x3786('0xba')]=new Map(_0x518e46),this[_0x3786('0x103')]=new Map(_0x4c85e6(_0x64875d));for(const [_0x5f5248,_0x163114]of this[_0x3786('0xba')])if(_0x3786('0xea')!==_0x5f5248&&(this['_diffRoots']['set'](_0x5f5248,q(_0x163114)),this['_diffRootsAttributes']=new Map(_0x4c85e6(_0x64875d)),_0x41d91c)){const _0x207f02=this[_0x3786('0xd0')];this[_0x3786('0x62')][_0x3786('0x5a')](_0x5f5248,this[_0x3786('0x16')](_0x163114)),this[_0x3786('0xdc')][_0x3786('0x5a')](_0x5f5248,this[_0x3786('0x16')](_0x163114,_0x207f02));}this[_0x3786('0x83')]=this[_0x3786('0xd0')],this['_diffRoots'][_0x3786('0x5a')](_0x3786('0xea'),q(this['_baseRoots'][_0x3786('0x105')]('$graveyard'))),_0x41d91c&&this[_0x3786('0x62')][_0x3786('0x5a')]('$graveyard',this[_0x3786('0x16')](this['_baseRoots']['get'](_0x3786('0xea'))));for(const [_0x45c8d8,_0xf44a08]of _0x1836ad){const _0x56d774=this[_0x3786('0xba')][_0x3786('0x105')](_0xf44a08[_0x3786('0x40')]),_0x8b1bd0=this[_0x3786('0xd1')][_0x3786('0x105')](_0xf44a08[_0x3786('0x40')]),_0x3b08d0=new _0x53717c(this[_0x3786('0xac')](_0xf44a08[_0x3786('0x52')],_0x56d774),this[_0x3786('0xac')](_0xf44a08[_0x3786('0x12')],_0x56d774)),_0x2c5ade=this['_fixRange'](_0x3b08d0,_0x8b1bd0);_0x56d774[_0x3786('0xff')]['set'](_0x45c8d8,_0x3b08d0),this[_0x3786('0xd8')][_0x3786('0x5a')](_0x45c8d8,_0x2c5ade);}this[_0x3786('0x88')](_0x4689a7,_0x22fd3d,_0x41d91c);}[_0x3786('0x88')](_0x3ac87d,_0x117414,_0x1778cf){for(const _0x1f0a97 of this[_0x3786('0x31')][_0x3786('0x4e')](_0x3ac87d,_0x117414))this['_handleOperation'](_0x1f0a97,_0x1778cf);for(const _0x35577b of this[_0x3786('0xd1')]['values']())_0x35577b[_0x3786('0xff')][_0x3786('0xfe')]();for(const [_0x22c3e4,_0xef2ca6]of this[_0x3786('0xd8')]){this[_0x3786('0xd1')][_0x3786('0x105')](_0xef2ca6['root'][_0x3786('0x40')])[_0x3786('0xff')]['set'](_0x22c3e4,_0xef2ca6[_0x3786('0xe0')]());}const _0x143017=new Map(),_0x3a4aa7=new Map();for(const [_0x11e298,_0x3add33]of this[_0x3786('0xd1')])_0x143017[_0x3786('0x5a')](_0x11e298,q(_0x3add33)),_0x3a4aa7['set'](_0x11e298,this[_0x3786('0xdf')][_0x3786('0x105')](_0x11e298));this['_saveMetaData'](_0x117414,_0x143017,this[_0x3786('0xd8')],_0x3a4aa7);}[_0x3786('0x89')](_0x5340a2){const _0x289b7e=Array[_0x3786('0xe7')](this[_0x3786('0xa')][_0x3786('0xc7')]());_0x289b7e[_0x3786('0x81')]((_0x53c0f7,_0x28d149)=>_0x53c0f7-_0x28d149),_0x289b7e[_0x3786('0x54')]();for(const _0x501ac9 of _0x289b7e)if(_0x501ac9<_0x5340a2)return _0x501ac9;return Number[_0x3786('0x30')];}[_0x3786('0xbb')](_0x6b0ab4,_0x3f9337){const _0x3b0600=Array[_0x3786('0xe7')](_0x3f9337[_0x3786('0xff')])[_0x3786('0xdb')](([_0x504240,_0x3fa185])=>[_0x504240,this[_0x3786('0xeb')](_0x3fa185,_0x6b0ab4)]);_0x6b0ab4[_0x3786('0xff')]=new Map(_0x3b0600);}[_0x3786('0x47')](_0x35df0a){for(const _0x30b7eb of this[_0x3786('0xd8')]['values']()){const _0x42218e=_0x30b7eb['getTransformedByOperation'](_0x35df0a),_0x3a460f=_0x53717c[_0x3786('0xad')](_0x42218e);_0x30b7eb['start']=_0x3a460f[_0x3786('0x52')],_0x30b7eb[_0x3786('0x12')]=_0x3a460f[_0x3786('0x12')];}}['_handleOperation'](_0x23f937,_0x2726c6){if(_0x3786('0x53')==_0x23f937[_0x3786('0xb8')]||_0x3786('0x59')==_0x23f937[_0x3786('0xb8')])return void this[_0x3786('0xe5')](_0x23f937,_0x2726c6);if(_0x3786('0x64')==_0x23f937[_0x3786('0xb8')]){const _0xa061a3=_0x23f937[_0x3786('0x5f')][_0x3786('0xe')][_0x3786('0x40')];this['_diffRoots'][_0x3786('0x1f')](_0xa061a3)||(this[_0x3786('0xd1')]['set'](_0xa061a3,G(_0xa061a3,!0x0)),this[_0x3786('0xdf')][_0x3786('0x5a')](_0xa061a3,{}),_0x2726c6&&this[_0x3786('0x62')][_0x3786('0x5a')](_0xa061a3,G(_0xa061a3,!0x0)));}if('addRootAttribute'==_0x23f937[_0x3786('0xb8')]||_0x3786('0x49')==_0x23f937[_0x3786('0xb8')]||_0x3786('0xde')==_0x23f937[_0x3786('0xb8')])return void this[_0x3786('0xc8')](_0x23f937);const _0x467547=this[_0x3786('0x91')](_0x23f937,this[_0x3786('0xd1')]);if(_0x3786('0x3b')!==_0x23f937[_0x3786('0xb8')]&&(_0x467547['_execute'](),this[_0x3786('0x47')](_0x467547)),_0x2726c6)switch(_0x467547[_0x3786('0xb8')]){case _0x3786('0x64'):this[_0x3786('0xb9')](_0x23f937);break;case _0x3786('0x73'):case _0x3786('0xd5'):case _0x3786('0x22'):this[_0x3786('0xb7')](_0x23f937);break;case'merge':this[_0x3786('0x3a')](_0x23f937);break;case _0x3786('0x9'):this[_0x3786('0x4d')](_0x23f937);break;case _0x3786('0x3b'):this[_0x3786('0x5d')](_0x23f937);}}[_0x3786('0x91')](_0x55bc7c,_0x150993){const _0x5d5197=_0x55bc7c[_0x3786('0xe0')]();return _0x5d5197[_0x3786('0xb6')]=_0x55bc7c[_0x3786('0xb6')],this['_fixOperation'](_0x5d5197,_0x150993),_0x5d5197;}[_0x3786('0x18')](_0x35cbbb){return _0x35cbbb[_0x3786('0xdb')](_0x530413=>{const _0x2b2669=this['_getVidAttributeName'](_0x530413);return Number(_0x530413[_0x3786('0x45')][_0x3786('0x82')](_0x2b2669));});}[_0x3786('0x78')](_0x691cb3,_0x5243bc){if(_0x691cb3['is'](_0x3786('0xaa'),'$text'))_0x5243bc[_0x3786('0x79')]({'item':_0x691cb3,'type':_0x3786('0xfb')});else{_0x691cb3['is'](_0x3786('0xaa'))&&_0x5243bc[_0x3786('0x79')]({'item':_0x691cb3,'type':_0x3786('0xc3')});for(const _0xebc827 of _0x691cb3['getChildren']())this[_0x3786('0x78')](_0xebc827,_0x5243bc);_0x691cb3['is'](_0x3786('0xaa'))&&_0x5243bc[_0x3786('0x79')]({'item':_0x691cb3,'type':_0x3786('0x66')});}return _0x5243bc;}[_0x3786('0xee')](){const _0x2af9ba=new Map(this[_0x3786('0x15')]),_0x34e0a7=new Map(_0x2af9ba),_0x115884=new Map(),_0xe36d2a={'insertions':{},'deletions':{}},_0x4e15d4={'insertions':{},'deletions':{}},_0x5b4650=new Map(),_0x3c82d2=new Set([...this[_0x3786('0xba')][_0x3786('0xc7')](),...this['_diffRoots'][_0x3786('0xc7')]()]);_0x3c82d2[_0x3786('0xe9')](_0x3786('0xea'));for(const _0x5a2419 of _0x3c82d2){const _0x2a3131=this[_0x3786('0xd1')][_0x3786('0x105')](_0x5a2419)||G(_0x5a2419,!0x1),_0x4f5137=this[_0x3786('0xba')][_0x3786('0x105')](_0x5a2419)||G(_0x5a2419,!0x1);_0x2a3131[_0x3786('0xc0')]()||_0x4f5137[_0x3786('0xc0')]()?(_0xe36d2a[_0x3786('0x39')][_0x5a2419]=q(_0x2a3131),_0xe36d2a[_0x3786('0xbd')][_0x5a2419]=q(_0x4f5137),this['_copyMarkers'](_0xe36d2a[_0x3786('0xbd')][_0x5a2419],_0x4f5137),this[_0x3786('0xbb')](_0xe36d2a[_0x3786('0x39')][_0x5a2419],_0x2a3131),_0x4e15d4[_0x3786('0x39')][_0x5a2419]=this[_0x3786('0x78')](this[_0x3786('0x62')][_0x3786('0x105')](_0x5a2419),[]),_0x4e15d4[_0x3786('0xbd')][_0x5a2419]=this[_0x3786('0x78')](this['_baseIdsRoots'][_0x3786('0x105')](_0x5a2419)||G(_0x5a2419,!0x1),[])):_0x3c82d2[_0x3786('0xe9')](_0x5a2419);}for(const _0x50b9ea of _0x3c82d2){const _0x1c5cbf=_0x4e15d4[_0x3786('0x39')][_0x50b9ea];for(const _0x3a6b3d of _0x1c5cbf){const _0x3f025b=this[_0x3786('0xb4')](_0x3a6b3d),_0x19ff98=_0x3a6b3d[_0x3786('0x45')][_0x3786('0x82')](_0x3f025b);_0x34e0a7['delete'](_0x19ff98),_0x19ff98>=this[_0x3786('0x83')]&&_0x115884[_0x3786('0x5a')](_0x19ff98,_0x2af9ba[_0x3786('0x105')](_0x19ff98));}}for(const _0x4fa22b of _0x3c82d2){const _0x22f81e=_0x4e15d4[_0x3786('0x39')][_0x4fa22b],_0x735839=this[_0x3786('0x18')](_0x4e15d4[_0x3786('0xbd')][_0x4fa22b]);let _0xb18136=0x0;for(const _0x11773b of _0x22f81e){const _0x2dbe2d=this[_0x3786('0xb4')](_0x11773b),_0x307862=_0x11773b[_0x3786('0x45')]['getAttribute'](_0x2dbe2d);if(!_0x115884[_0x3786('0x1f')](_0x307862)&&!_0x5b4650[_0x3786('0x1f')](_0x307862)){if(_0x34e0a7['has'](_0x307862))_0xb18136++;else{if(_0x307862!=_0x735839[_0xb18136]){const _0x37f5de=_0x2af9ba[_0x3786('0x105')](_0x307862)||_0x2af9ba[_0x3786('0x105')](_0x735839[_0xb18136]);for(;_0x307862!=_0x735839[_0xb18136];)_0x34e0a7[_0x3786('0x1f')](_0x735839[_0xb18136])||(_0x5b4650[_0x3786('0x5a')](_0x735839[_0xb18136],_0x37f5de),_0x2af9ba[_0x3786('0x5a')](_0x735839[_0xb18136],_0x37f5de)),_0xb18136++;}_0xb18136++;}}}}for(const _0x4320aa of _0x3c82d2){const _0x229ba2=_0x4e15d4[_0x3786('0x39')][_0x4320aa];for(const _0x1e07a4 of _0x229ba2){const _0x43de55=this[_0x3786('0xb4')](_0x1e07a4),_0xa59d7a=_0x1e07a4[_0x3786('0x45')][_0x3786('0x82')](_0x43de55);if(_0x5b4650[_0x3786('0x1f')](_0xa59d7a)){const _0x25db0c=_0x5b4650[_0x3786('0x105')](_0xa59d7a);_0x34e0a7['has'](_0xa59d7a)||_0x34e0a7[_0x3786('0x5a')](_0xa59d7a,{..._0x25db0c}),_0x115884[_0x3786('0x5a')](_0xa59d7a,{..._0x25db0c});}}}for(const _0x2727b9 of _0x34e0a7[_0x3786('0xc7')]())_0x2727b9>=this[_0x3786('0x83')]&&_0x34e0a7[_0x3786('0xe9')](_0x2727b9);const _0x49b18a=new Map();for(const _0x4024cb of _0x3c82d2){let _0x31e5d3=_0x4e15d4[_0x3786('0x39')][_0x4024cb];for(const _0x357aaa of _0x31e5d3)if(_0x357aaa[_0x3786('0x45')]['is'](_0x3786('0xaa'),_0x3786('0x90'))){const _0x32117e=this[_0x3786('0xb4')](_0x357aaa),_0x169e51=_0x357aaa['item'][_0x3786('0x82')](_0x32117e);if(_0x115884[_0x3786('0x1f')](_0x169e51)){const _0xbb2d23=_0x357aaa[_0x3786('0x45')]['parent']['parent']['getAttribute'](_0x3786('0x48')),_0x3a6e8f=_0x49b18a['get'](_0xbb2d23)||new Set();_0x3a6e8f[_0x3786('0x46')](_0x115884['get'](_0x169e51)[_0x3786('0x8c')]),_0x49b18a[_0x3786('0x5a')](_0xbb2d23,_0x3a6e8f);}}_0x31e5d3=_0x4e15d4['deletions'][_0x4024cb];for(const _0x12ef7b of _0x31e5d3)if(_0x12ef7b['item']['is'](_0x3786('0xaa'),_0x3786('0x90'))){const _0x1093ae=this[_0x3786('0xb4')](_0x12ef7b),_0x17191a=_0x12ef7b[_0x3786('0x45')][_0x3786('0x82')](_0x1093ae);if(_0x34e0a7['has'](_0x17191a)){const _0x2b4055=_0x12ef7b[_0x3786('0x45')][_0x3786('0x27')][_0x3786('0x27')][_0x3786('0x82')]('vid_start'),_0x3ff116=_0x49b18a['get'](_0x2b4055)||new Set();_0x3ff116['add'](_0x34e0a7[_0x3786('0x105')](_0x17191a)['userId']),_0x49b18a[_0x3786('0x5a')](_0x2b4055,_0x3ff116);}}for(const _0x2d676d of _0x49b18a[_0x3786('0xc7')]())(_0x115884[_0x3786('0x1f')](_0x2d676d)||_0x34e0a7[_0x3786('0x1f')](_0x2d676d))&&_0x49b18a[_0x3786('0xe9')](_0x2d676d);}for(const _0x9fc3d2 of _0x3c82d2){const _0x136853=_0x4e15d4[_0x3786('0x39')][_0x9fc3d2];let _0x44f7ea=null,_0xaf8f7a=null;for(const _0x34c57b of _0x136853){const _0x786237=this[_0x3786('0xb4')](_0x34c57b),_0x36b1b6=_0x34c57b[_0x3786('0x45')][_0x3786('0x82')](_0x786237),_0x4a4982=_0x49b18a[_0x3786('0x105')](_0x36b1b6);_0x4a4982&&'elementStart'==_0x34c57b['type']&&(_0x44f7ea=Array[_0x3786('0xe7')](_0x4a4982)[0x0],_0xaf8f7a=_0x34c57b[_0x3786('0x45')][_0x3786('0x82')]('vid_end')),_0x44f7ea&&(_0x34e0a7[_0x3786('0x5a')](_0x36b1b6,{'userId':_0x44f7ea}),_0x115884['set'](_0x36b1b6,{'userId':_0x44f7ea})),_0x36b1b6==_0xaf8f7a&&(_0x44f7ea=null,_0xaf8f7a=null);}}const _0x4537ba={},_0x197c55=new Set();for(const _0x2f031a of _0x3c82d2){const _0x2fad5e=_0xe36d2a[_0x3786('0xbd')][_0x2f031a],_0x1d3313=_0xe36d2a[_0x3786('0x39')][_0x2f031a];for(const {userId:_0x2666c3}of this[_0x3786('0x87')][_0x3786('0x1c')]())null!==_0x2666c3&&_0x197c55['add'](_0x2666c3);for(const {userId:_0x19f790}of this[_0x3786('0xf8')][_0x3786('0x1c')]())null!==_0x19f790&&_0x197c55[_0x3786('0x46')](_0x19f790);this[_0x3786('0xe4')](_0x1d3313,_0x4e15d4['insertions'][_0x2f031a],_0x115884,_0x3786('0xc6'),_0x197c55),this[_0x3786('0xe4')](_0x2fad5e,_0x4e15d4[_0x3786('0xbd')][_0x2f031a],_0x34e0a7,_0x3786('0x51'),_0x197c55),_0x4537ba[_0x2f031a]={'insertions':this[_0x3786('0x13')](_0x1d3313),'deletions':this['_prepareViewToSave'](_0x2fad5e),'attachChange':this[_0x3786('0xf8')]['get'](_0x2f031a)||null,'attributesBefore':_0x4c85e6(this['_baseRootsAttributes']['get'](_0x2f031a))||{},'attributesAfter':_0x4c85e6(this[_0x3786('0xdf')][_0x3786('0x105')](_0x2f031a))};}return{'diffData':_0x4537ba,'authorsIds':Array['from'](_0x197c55)};}['_processRootBeforeSave'](_0x39452b){for(const [,_0x3b1a3e]of _0x39452b['markers']){const _0xbe1db0=_0x3b1a3e[_0x3786('0x52')][_0x3786('0xf0')]()[_0x3786('0xd6')](_0x5a0dfc=>_0x3786('0x90')==_0x5a0dfc[_0x3786('0xd7')]);for(const _0x3566f7 of _0xbe1db0)0x1==_0x3566f7['childCount']&&_0x3566f7['getChild'](0x0)['is'](_0x3786('0xaa'),_0x3786('0xca'))&&_0x3566f7['getChild'](0x0)[_0x3786('0x1')](_0x3786('0x55'),!0x0);}}[_0x3786('0x13')](_0x5565d9){this[_0x3786('0x11')](_0x5565d9);const _0x48dbdb=this[_0x3786('0xd4')][_0x3786('0xf3')]['toView'](_0x5565d9,{}),_0x4a5757=Array['from'](_0x48dbdb[_0x3786('0x3e')]())[_0x3786('0xdb')](_0x11032e=>this[_0x3786('0x2b')](_0x11032e));return JSON[_0x3786('0x6b')](_0x4a5757);}[_0x3786('0x2b')](_0x5dc327){if(_0x5dc327['is'](_0x3786('0xa0')))return _0x5dc327[_0x3786('0xf3')];{const _0xb46910=_0x5dc327;return{'type':Object[_0x3786('0xc7')](B)[_0x3786('0x3f')](_0x1a8ecf=>_0x5dc327 instanceof B[_0x1a8ecf]),'name':_0xb46910['name'],'attributes':Array[_0x3786('0xe7')](_0xb46910[_0x3786('0x8f')]()),'children':Array['from'](_0xb46910[_0x3786('0x3e')]())[_0x3786('0xdb')](_0x137021=>this[_0x3786('0x2b')](_0x137021))};}}[_0x3786('0xe4')](_0x48fb5c,_0x5c6d26,_0x55fd98,_0x5914d8,_0x332415){let _0x5e0d23=null,_0x1dc323=null,_0x3d129b=0x0;const _0x5ccc22=this[_0x3786('0xd4')][_0x3786('0x23')];for(let _0x407472=0x0;_0x407472<_0x5c6d26[_0x3786('0x0')];_0x407472++){const _0x192da6=this['_getVidAttributeName'](_0x5c6d26[_0x407472]),_0x2c3516=_0x5c6d26[_0x407472][_0x3786('0x45')]['getAttribute'](_0x192da6),_0x5f10d8=_0x55fd98[_0x3786('0x105')](_0x2c3516),_0x6bad9e=_0x407472==_0x5c6d26[_0x3786('0x0')]-0x1;(!_0x5e0d23&&_0x5f10d8&&(_0x5e0d23=_0x5f10d8,_0x1dc323=_0x5c6d26[_0x407472]),_0x5e0d23&&(!_0x5f10d8||_0x5f10d8['userId']!=_0x5e0d23['userId']))&&(_0x5a6766(_0x5f10d8,L(_0x1dc323,_0x48fb5c,_0x5ccc22),L(_0x5c6d26[_0x407472],_0x48fb5c,_0x5ccc22)),_0x5e0d23=_0x5f10d8||null,_0x1dc323=_0x5f10d8?_0x5c6d26[_0x407472]:null),_0x5e0d23&&_0x6bad9e&&_0x5a6766(_0x5f10d8,L(_0x1dc323,_0x48fb5c,_0x5ccc22),W(_0x5c6d26[_0x407472],_0x48fb5c,_0x5ccc22));}function _0x5a6766(_0x388deb,_0x3c983e,_0x2891b7){const _0xe4af06=_0x5e0d23[_0x3786('0x8c')],_0xd878ce=_0x3786('0xe3')+_0x5914d8+':'+_0xe4af06+':'+_0x3d129b++,_0x535753=_0x5ccc22[_0x3786('0xe6')](_0x3c983e,_0x2891b7);_0x48fb5c[_0x3786('0xff')]['set'](_0xd878ce,_0x535753),null!==_0xe4af06&&_0x332415['add'](_0xe4af06);}}[_0x3786('0xb4')](_0x1ee2be){switch(_0x1ee2be['type']){case'elementStart':return _0x3786('0x48');case'elementEnd':return'vid_end';default:return'vid';}}[_0x3786('0x69')](_0x4ae38e,_0x5d03f5){_0x4ae38e[_0x3786('0x63')]=null;for(const _0x5295d8 in _0x4ae38e){const _0x3fa72=_0x4ae38e[_0x5295d8];if(_0x3fa72 instanceof _0x3128a9){const _0x99e527=_0x5d03f5[_0x3786('0x105')](_0x3fa72[_0x3786('0xe')][_0x3786('0x40')]);_0x4ae38e[_0x5295d8]=this[_0x3786('0xac')](_0x3fa72,_0x99e527);}if(_0x3fa72 instanceof _0x53717c){const _0x30fc0b=_0x5d03f5[_0x3786('0x105')](_0x3fa72[_0x3786('0xe')][_0x3786('0x40')]);_0x4ae38e[_0x5295d8]=this['_fixRange'](_0x3fa72,_0x30fc0b);}_0x3786('0xe')===_0x5295d8&&(_0x4ae38e[_0x3786('0xe')]=_0x5d03f5['get'](_0x4ae38e['root'][_0x3786('0x40')]));}}['_fixRange'](_0x1878ae,_0x1ea471){return this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0xe6')](this['_fixPosition'](_0x1878ae[_0x3786('0x52')],_0x1ea471),this[_0x3786('0xac')](_0x1878ae[_0x3786('0x12')],_0x1ea471));}[_0x3786('0xac')](_0x52c0d9,_0x22d2ef){return this['editor'][_0x3786('0x23')][_0x3786('0xa7')](_0x22d2ef,_0x52c0d9['path'],_0x52c0d9[_0x3786('0x99')]);}[_0x3786('0xb9')](_0x1d908c){const _0x3931fb=this['_idsRoots'][_0x3786('0x105')](_0x1d908c[_0x3786('0x5f')][_0x3786('0xe')][_0x3786('0x40')]),_0x22c117=this[_0x3786('0xac')](_0x1d908c[_0x3786('0x5f')],_0x3931fb),_0x21d480=null===_0x1d908c['_authorId']?null:_0x1d908c[_0x3786('0xb6')]||this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')]('Users')['me']['id'],_0x2a548c=_0x22c117[_0x3786('0x27')],_0xbe003b=this['_revisionId'],_0x3178b0=[];for(const _0x496f82 of _0x1d908c['nodes'])if(_0x496f82['is']('element'))_0x3178b0[_0x3786('0x79')](this['_makeIdsRoot'](_0x496f82));else for(let _0x53b252=0x0;_0x53b252<_0x496f82[_0x3786('0x5e')];_0x53b252++)_0x3178b0['push'](new _0x1b8bbd(_0x3786('0xa0'),{'vid':this[_0x3786('0xd0')]++}));const _0xfbe362=this[_0x3786('0xd0')];for(let _0x4e2d81=_0xbe003b;_0x4e2d81<_0xfbe362;_0x4e2d81++)this[_0x3786('0x15')][_0x3786('0x5a')](_0x4e2d81,{'userId':_0x21d480});_0x2a548c['_insertChild'](_0x22c117[_0x3786('0xb0')],_0x3178b0);}[_0x3786('0xb7')](_0x1c052d){(_0x1c052d=this[_0x3786('0x91')](_0x1c052d,this[_0x3786('0x62')]))[_0x3786('0x2a')]();const _0x56d369=null===_0x1c052d[_0x3786('0xb6')]?null:_0x1c052d[_0x3786('0xb6')]||this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')]('Users')['me']['id'],_0x3807f2=_0x1c052d[_0x3786('0x98')](),_0x45991a=_0x3807f2[_0x3786('0x27')],_0x4c1fc4=_0x3807f2[_0x3786('0xb0')];!function _0x32f0ce(_0x443d95,_0xc39062,_0x8d5ab6,_0x3fcc9f){for(let _0x2417c7=_0x8d5ab6;_0x2417c7<_0x3fcc9f;_0x2417c7++){const _0x3d7b93=_0xc39062[_0x3786('0x101')](_0x2417c7);_0x3d7b93['is'](_0x3786('0xaa'),'$text')?_0x443d95[_0x3786('0x5a')](_0x3d7b93[_0x3786('0x82')](_0x3786('0x1d')),{'userId':_0x56d369}):(_0x443d95[_0x3786('0x5a')](_0x3d7b93[_0x3786('0x82')]('vid_start'),{'userId':_0x56d369}),_0x32f0ce(_0x443d95,_0x3d7b93,0x0,_0x3d7b93[_0x3786('0x25')]),_0x443d95[_0x3786('0x5a')](_0x3d7b93['getAttribute'](_0x3786('0x92')),{'userId':_0x56d369}));}}(this[_0x3786('0x15')],_0x45991a,_0x4c1fc4,_0x4c1fc4+_0x1c052d[_0x3786('0x57')]);}[_0x3786('0x3a')](_0x554daf){const _0x372ab6=null===(_0x554daf=this[_0x3786('0x91')](_0x554daf,this['_idsRoots']))['_authorId']?null:_0x554daf['_authorId']||this[_0x3786('0xd4')][_0x3786('0x100')]['get'](_0x3786('0x7c'))['me']['id'],_0x59b6bb=_0x554daf[_0x3786('0x70')]['parent'],_0x2ed792=_0x554daf[_0x3786('0xfd')][_0x3786('0x27')],_0xf8010f=_0x59b6bb['getAttribute'](_0x3786('0x92')),_0x1a61f3=_0x2ed792[_0x3786('0x82')]('vid_start');_0x59b6bb['_setAttribute'](_0x3786('0x92'),_0x2ed792['getAttribute']('vid_end')),_0x2ed792['_setAttribute']('vid_end',_0xf8010f),this[_0x3786('0x15')][_0x3786('0x5a')](_0x1a61f3,{'userId':_0x372ab6}),this[_0x3786('0x15')][_0x3786('0x5a')](_0xf8010f,{'userId':_0x372ab6}),_0x554daf[_0x3786('0x2a')]();}['_handleSplitOperation'](_0x29eea7){const _0xb800d6=null===(_0x29eea7=this[_0x3786('0x91')](_0x29eea7,this['_idsRoots']))[_0x3786('0xb6')]?null:_0x29eea7[_0x3786('0xb6')]||this[_0x3786('0xd4')]['plugins'][_0x3786('0x105')](_0x3786('0x7c'))['me']['id'],_0x51d33a=_0x29eea7['graveyardPosition'],_0x3e0ebf=_0x29eea7['splitPosition'][_0x3786('0x27')];_0x29eea7[_0x3786('0x2a')]();const _0x327f65=_0x3e0ebf['getAttribute'](_0x3786('0x92')),_0x2e858c=_0x29eea7['insertionPosition'][_0x3786('0x2d')];if(_0x51d33a){const _0x86f283=_0x2e858c[_0x3786('0x82')](_0x3786('0x92')),_0x43da05=_0x3e0ebf[_0x3786('0x82')](_0x3786('0x92'));_0x3e0ebf['_setAttribute'](_0x3786('0x92'),_0x86f283),_0x2e858c[_0x3786('0x1')](_0x3786('0x92'),_0x43da05),this['_touched']['set'](_0x3e0ebf[_0x3786('0x82')](_0x3786('0x92')),{'userId':_0xb800d6}),this[_0x3786('0x15')][_0x3786('0x5a')](_0x2e858c[_0x3786('0x82')]('vid_start'),{'userId':_0xb800d6});}else{const _0x4e20f5=this[_0x3786('0xd0')]++,_0x24457f=this[_0x3786('0xd0')]++;_0x3e0ebf[_0x3786('0x1')](_0x3786('0x92'),_0x4e20f5),_0x2e858c[_0x3786('0x1')](_0x3786('0x48'),_0x24457f),_0x2e858c[_0x3786('0x1')]('vid_end',_0x327f65),this['_touched'][_0x3786('0x5a')](_0x4e20f5,{'userId':_0xb800d6}),this['_touched'][_0x3786('0x5a')](_0x24457f,{'userId':_0xb800d6});}}['_handleMarkerOperation'](_0x5146d1){if(!_0x5146d1[_0x3786('0x106')])return;const _0x3480f5=(_0x5146d1=this['_cloneOperation'](_0x5146d1,this[_0x3786('0xd1')]))['oldRange']?_0x5146d1[_0x3786('0xab')]['root']:null,_0xafa8dc=_0x5146d1[_0x3786('0xc2')]?_0x5146d1['newRange']['root']:null;_0x3480f5&&this[_0x3786('0xd8')]['delete'](_0x5146d1['name']),_0xafa8dc&&this[_0x3786('0xd8')]['set'](_0x5146d1[_0x3786('0xd7')],_0x5146d1[_0x3786('0xc2')][_0x3786('0xe0')]());const _0x254aa3=null===_0x5146d1[_0x3786('0xb6')]?null:_0x5146d1['_authorId']||this[_0x3786('0xd4')][_0x3786('0x100')]['get'](_0x3786('0x7c'))['me']['id'],_0x5b0c60=_0x5146d1[_0x3786('0xd7')];if(!this[_0x3786('0x87')]['has'](_0x5b0c60))return void this[_0x3786('0x87')][_0x3786('0x5a')](_0x5b0c60,{'range':_0x5146d1[_0x3786('0xab')],'userId':_0x254aa3});const _0x451044=this[_0x3786('0x87')][_0x3786('0x105')](_0x5b0c60),_0x35b196=_0x451044[_0x3786('0xf9')],_0xbc8927=_0x5146d1[_0x3786('0xc2')];null==_0x35b196&&null==_0xbc8927||_0x35b196&&_0xbc8927&&_0x35b196[_0x3786('0x76')](_0xbc8927)?this[_0x3786('0x87')]['delete'](_0x5146d1[_0x3786('0xd7')]):_0x451044[_0x3786('0x8c')]=_0x254aa3;}[_0x3786('0xe5')](_0x35fb1c,_0x492a09){this[_0x3786('0xd1')]['has'](_0x35fb1c['rootName'])?this['_diffRoots'][_0x3786('0x105')](_0x35fb1c['rootName'])[_0x3786('0xa3')]=_0x35fb1c[_0x3786('0x32')]:(this['_diffRoots'][_0x3786('0x5a')](_0x35fb1c[_0x3786('0x40')],G(_0x35fb1c['rootName'],!0x0)),this[_0x3786('0xdf')]['set'](_0x35fb1c[_0x3786('0x40')],{}),_0x492a09&&this[_0x3786('0x62')][_0x3786('0x5a')](_0x35fb1c[_0x3786('0x40')],G(_0x35fb1c[_0x3786('0x40')],!0x0)));const _0x4139dc=null===_0x35fb1c['_authorId']?null:_0x35fb1c[_0x3786('0xb6')]||this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')](_0x3786('0x7c'))['me']['id'],_0x3ae180=this[_0x3786('0xf8')]['get'](_0x35fb1c[_0x3786('0x40')]);_0x3ae180&&_0x3ae180['userId']===_0x4139dc?this[_0x3786('0xf8')][_0x3786('0xe9')](_0x35fb1c[_0x3786('0x40')]):this[_0x3786('0xf8')][_0x3786('0x5a')](_0x35fb1c['rootName'],{'userId':_0x4139dc,'isAttached':_0x35fb1c[_0x3786('0x32')]});}[_0x3786('0xc8')](_0xa3566b){const _0x517b4e=this[_0x3786('0xdf')][_0x3786('0x105')](_0xa3566b[_0x3786('0xe')]['rootName']);null===_0xa3566b['newValue']?delete _0x517b4e[_0xa3566b['key']]:_0x517b4e[_0xa3566b['key']]=_0xa3566b[_0x3786('0x50')];}}function q(_0x574cc5){const _0x232b9b=G(_0x574cc5[_0x3786('0x40')],_0x574cc5['isAttached']());for(const _0x368fcc of _0x574cc5[_0x3786('0x3e')]()){const _0x6490=_0x368fcc[_0x3786('0x8d')](!0x0);_0x232b9b[_0x3786('0x84')](_0x6490);}return _0x232b9b;}function G(_0x3c6bbc,_0x8374c0=!0x0){const _0x55c896=new _0x41a162();return _0x55c896[_0x3786('0x40')]=_0x3c6bbc,_0x55c896[_0x3786('0xa3')]=_0x8374c0,_0x55c896['isAttached']=()=>_0x55c896[_0x3786('0xa3')],_0x55c896;}function L(_0x4bd7fa,_0x469580,_0x43ae1b){const _0x1ba304=_0x3786('0x66')==_0x4bd7fa[_0x3786('0xb8')]?_0x43ae1b[_0x3786('0xb5')](_0x4bd7fa['item'],_0x3786('0x12')):_0x43ae1b[_0x3786('0xce')](_0x4bd7fa['item']);return _0x43ae1b[_0x3786('0xa7')](_0x469580,_0x1ba304[_0x3786('0xf7')],_0x1ba304[_0x3786('0x99')]);}function W(_0x5b8378,_0x1c7626,_0x41ad69){const _0x6452e7=_0x3786('0xc3')==_0x5b8378[_0x3786('0xb8')]?_0x41ad69[_0x3786('0xb5')](_0x5b8378[_0x3786('0x45')],0x0):_0x41ad69[_0x3786('0x41')](_0x5b8378[_0x3786('0x45')]);return _0x41ad69[_0x3786('0xa7')](_0x1c7626,_0x6452e7[_0x3786('0xf7')],_0x6452e7['stickiness']);}
|
|
23
|
+
const _0x3d04=['_makeModelFromViewString','start','marked','keepParagraph','_handleRootOperation','childCount','getNodeByPath','_pendingAction','repository','setRevisionData','revision:','clone','useFillerType','fromVersion','values','conversion','$graveyard','deletions','getAncestors','elementStart','sort','insertions','creator','getUser','_operations','createPositionAfter','plugins','_update','filter','_revisionDataBuilder','RevisionsRepository','_prepareViewToSave','attachChange','revision-end','_authorId','_saveMetaData','_processRootBeforeSave','getMovedRangeStart','getIndex','_touched','isAttached','name','markerToData','_findInsertionIndex','data-revision-','getCurrentRevisionId','includes','_calculateMetaData','createdAt','editor','_handleOperation','requires','NEGATIVE_INFINITY','reverse','key','type','_lastFrom','_source','shift','_removePendingAction','path','_applyOperations','roots','_setConversion','size','_markers','finally','get','_copyMarkers','history','_getPreviousFrom','graveyardPosition','_lastTo','collaboration.channelId','userId','locale','max','from','find','_generateTape','upcast','splitPosition','diffData','getTime','documentFragment','getAttribute','getRoot','createPositionAt','insert','_getBaseVids','_clone','text','ready','revision','previousPosition','sendBufferedUpdates','toModel','_removeRevisionMarkers','some','string','_continueCurrentRevision','_insertChild','newRange','_cloneOperation','_createInitialRevision','paragraph','_fixPosition','newValue','model','markers','revision-start','_addPendingAction','root','insertion','rootName','afterInit','clear','config','_diffRootsAttributes','authors','push','createPositionBefore','addRoot','_isPendingUpdate','slice','processor','attributesBefore','item','_getVidAttributeName','insertionPosition','_touchedMarkers','end','document','$text','initial','_baseIdsRoots','_fixOperation','_savedMetaData','oldRange','source','_replaceEditorDataWithRevisionData','parse','then','vid_end','_initialRevisionId','Initial\x20revision','fromEntries','forEach','attributes','getRevision','authorsIds','elementEnd','PendingActions','createPositionFromPath','loadState','_bufferUpdate','createRevision','element','editing','getRevisions','parent','position','vid','toView','remove','view','createRangeIn','_loadedStateData','reinsert','affectsData','_loadRevisionData','_getFromVersion','setSource','getAttributes','_makeIdsRoot','PENDING_ACTION_REVISION_HISTORY','set','currentRevision','update','resolve','_markChanges','nodes','map','_handleMoveOperation','vid_start','getRevisionRootsAttributes','_handleMarkerOperation','bind','_handleSplitOperation','getChild','offset','revisionHistory.resumeUnsavedRevision','_getViewJson','getLatestVersion','_makeRevision','getWalker','_startingVersion','_reset','toVersion','_loadState','adapter','_idsRoots','data','_createCurrentRevision','removeRootAttribute','RevisionTracker','isReady','stickiness','_handleInsertOperation','_setAttribute','nodeAfter','has','_createFromRanges','tableCell','startsWith','RealTimeCollaborationClient','_startingRevisionId','trim','_fixRange','_baseRoots','baseVersion','getData','_execute','_touchedRoots','getRange','getOperation','getChildren','isAdd','init','_baseRootsAttributes','attributesAfter','_diffRoots','toData','Users','saveRevision','howMany','marker','rootsAttributes','for','initialData','getRevisionDocumentData','_handleRootAttributeOperation','_bufferedUpdates','_revisionId','length','changeRootAttribute','delete','createRange','keys','buildRevisionData','add','addRevisionData','detachRoot','version','_appendChild','_isAttached'];(function(_0x41a672,_0x3d0479){const _0xe2a5bb=function(_0x1a8615){while(--_0x1a8615){_0x41a672['push'](_0x41a672['shift']());}};_0xe2a5bb(++_0x3d0479);}(_0x3d04,0x178));const _0xe2a5=function(_0x41a672,_0x3d0479){_0x41a672=_0x41a672-0x0;let _0xe2a5bb=_0x3d04[_0x41a672];return _0xe2a5bb;};import{Users as _0x2d3793}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x23798a,PendingActions as _0x48630e}from'ckeditor5/src/core';import{logWarning as _0x4a4814,uid as _0x5a6b02}from'ckeditor5/src/utils';import{Position as _0x5da8fb,Range as _0x555221,Element as _0x51fbf2,DocumentFragment as _0x291270,ViewText as _0x51707a,ViewElement as _0x15e7e0,ViewContainerElement as _0x334124,ViewAttributeElement as _0x28a4e1,ViewEmptyElement as _0x3553af,ViewRawElement as _0x225637,ViewUIElement as _0x5688f3,ViewDocumentFragment as _0xb38177}from'ckeditor5/src/engine';import _0xb5f25d from'./revisionsrepository';import{getTranslation as _0x21fa08}from'./utils/common-translations';import{cloneDeep as _0x4a6ecc,isEqual as _0x106403}from'lodash-es';const B={'c':_0x334124,'a':_0x28a4e1,'e':_0x3553af,'r':_0x225637,'u':_0x5688f3};export default class l extends _0x23798a{static get['pluginName'](){return _0xe2a5('0x55');}static get[_0xe2a5('0xbb')](){return[_0x2d3793,_0xb5f25d,_0x48630e];}constructor(_0x3d3db5){super(_0x3d3db5),this[_0xe2a5('0x50')]=null,this['currentRevision']=null,this[_0xe2a5('0xa5')]=new H(this[_0xe2a5('0xb9')]),this[_0xe2a5('0x18')]=this[_0xe2a5('0xb9')][_0xe2a5('0xfd')][_0xe2a5('0xcb')](_0xe2a5('0xd1'))||_0xe2a5('0xe'),this[_0xe2a5('0x7a')]=new Map(),this['_loadedStateData']=null;const _0x3baa9d=_0x5a6b02();this[_0xe2a5('0xc1')]={'history':this[_0xe2a5('0xb9')]['model']['document']['history'],'getLatestVersion':()=>Promise[_0xe2a5('0x3b')](this['editor'][_0xe2a5('0xf4')][_0xe2a5('0xc')][_0xe2a5('0x85')]),'getCurrentRevisionId':()=>_0x3baa9d},this[_0xe2a5('0x38')]('isReady',!0x1),this[_0xe2a5('0x38')]('isEnabled',!0x0),this[_0xe2a5('0x38')](_0xe2a5('0x3'),!0x1),this[_0xe2a5('0xb9')][_0xe2a5('0xfd')]['define']('revisionHistory.resumeUnsavedRevision',!0x0),this[_0xe2a5('0xb9')][_0xe2a5('0x97')][_0xe2a5('0x76')](_0xe2a5('0xd8'))['dataToMarker']({'view':_0xe2a5('0xe5')});}[_0xe2a5('0x6c')](){this['repository']=this['editor'][_0xe2a5('0xa2')][_0xe2a5('0xcb')](_0xe2a5('0xa6')),this['_setConversion'](),this[_0xe2a5('0xb9')][_0xe2a5('0x52')]['on'](_0xe2a5('0xe4'),()=>{const _0x21d277=this['repository']['getRevision'](0x0),_0x17f538=_0x21d277&&null===_0x21d277[_0xe2a5('0x9e')]?_0x21d277:null;if(this[_0xe2a5('0xec')]=!!_0x17f538&&this[_0xe2a5('0xb9')]['config'][_0xe2a5('0xcb')](_0xe2a5('0x47')),this[_0xe2a5('0xb9')][_0xe2a5('0xa2')]['has'](_0xe2a5('0x5f'))){const _0x2b7626=this[_0xe2a5('0xc1')][_0xe2a5('0xb5')](),_0xb9d64=this['repository']['getRevision'](_0x2b7626);if(_0xb9d64)this[_0xe2a5('0x4c')]=_0xb9d64[_0xe2a5('0x95')],this[_0xe2a5('0xec')]=!0x1;else{const _0x4c74c2=this['_source'][_0xe2a5('0xcd')][_0xe2a5('0xa0')][_0xe2a5('0xd6')](_0x4c3b37=>!_0x4c3b37['_isInit']),_0x1b8629=_0x4c74c2?_0x4c74c2[_0xe2a5('0x64')]:this[_0xe2a5('0xc1')][_0xe2a5('0xcd')][_0xe2a5('0x85')];_0x21d277?(_0x21d277[_0xe2a5('0x4e')]<_0x1b8629&&_0x21d277[_0xe2a5('0xa3')]({'toVersion':_0x1b8629}),this['_continueCurrentRevision']?(this[_0xe2a5('0xc1')]['getCurrentRevisionId']=()=>_0x17f538['id'],this[_0xe2a5('0x4c')]=_0x17f538[_0xe2a5('0x95')]):(this['_startingVersion']=_0x21d277['toVersion'],this[_0xe2a5('0xec')]=!0x1)):(this[_0xe2a5('0x4c')]=_0x1b8629,this[_0xe2a5('0xec')]=!0x1);}}else _0x17f538&&(this['editor'][_0xe2a5('0xf4')][_0xe2a5('0xc')][_0xe2a5('0xcd')]['version']=Math[_0xe2a5('0xd4')](_0x17f538['toVersion'],this[_0xe2a5('0xb9')][_0xe2a5('0xf4')][_0xe2a5('0xc')]['history'][_0xe2a5('0x85')]),_0x17f538['fromVersion']===_0x17f538[_0xe2a5('0x4e')]?(0x0!==_0x17f538['fromVersion']&&(this[_0xe2a5('0xc1')][_0xe2a5('0xb5')]=()=>_0x17f538['id']),this[_0xe2a5('0xec')]=!0x1):this[_0xe2a5('0xec')]&&(this[_0xe2a5('0xc1')][_0xe2a5('0xb5')]=()=>_0x17f538['id'],this[_0xe2a5('0x4c')]=_0x17f538[_0xe2a5('0x95')])),this['_continueCurrentRevision']||(this[_0xe2a5('0x4c')]=this['editor']['model']['document'][_0xe2a5('0x85')]);this[_0xe2a5('0xa5')]['init'](this[_0xe2a5('0xc1')][_0xe2a5('0xcd')]),this[_0xe2a5('0xf0')](this[_0xe2a5('0x4c')]),this[_0xe2a5('0x53')](this['_startingVersion']),this[_0xe2a5('0x50')]&&this[_0xe2a5('0xe7')]();}),this[_0xe2a5('0x43')](_0xe2a5('0x56'))['to'](this,_0xe2a5('0x3'),_0x1bbd14=>!_0x1bbd14);}async[_0xe2a5('0xfb')](){if(this[_0xe2a5('0x90')][_0xe2a5('0x7c')]>0x0){const _0x2ec4a1=this[_0xe2a5('0x90')][_0xe2a5('0x1d')](0x0),_0xe73e85=await this[_0xe2a5('0x78')](_0x2ec4a1),_0x3505ac=await this[_0xe2a5('0x41')](_0x2ec4a1);this[_0xe2a5('0x14')](_0xe73e85,_0x3505ac);}}[_0xe2a5('0x34')](_0x257a05){this[_0xe2a5('0xc1')]=_0x257a05;}async[_0xe2a5('0x3a')](){const _0x39ca4f=await this['_source'][_0xe2a5('0x49')]();if(_0x39ca4f>this[_0xe2a5('0x39')][_0xe2a5('0x4e')]){await this[_0xe2a5('0x4f')]();const _0x3df31a=this[_0xe2a5('0x81')]({'revision':this[_0xe2a5('0x39')],'to':_0x39ca4f});_0x3df31a[_0xe2a5('0xff')]=_0x3df31a[_0xe2a5('0x1e')][_0xe2a5('0x3e')](_0xa78371=>this[_0xe2a5('0xb9')][_0xe2a5('0xa2')][_0xe2a5('0xcb')](_0xe2a5('0x71'))[_0xe2a5('0x9f')](_0xa78371)),this[_0xe2a5('0x39')]['_update'](_0x3df31a);}}async[_0xe2a5('0x4f')](){this[_0xe2a5('0xec')]&&!this[_0xe2a5('0x2f')]&&(await this[_0xe2a5('0x32')](this[_0xe2a5('0x39')]),this[_0xe2a5('0xa5')][_0xe2a5('0x22')](this[_0xe2a5('0x39')]),this['_loadedStateData']={'fromVersion':this[_0xe2a5('0x39')]['fromVersion'],'authors':this[_0xe2a5('0x39')][_0xe2a5('0xff')][_0xe2a5('0x4')]()});}async[_0xe2a5('0x72')](_0x2638f5={},_0x51fcb4=null){const _0x505b54=[];await this['_loadState'](),this[_0xe2a5('0xec')]=!0x1,_0x51fcb4>this[_0xe2a5('0x39')]['toVersion']&&(_0x51fcb4=null),null===_0x51fcb4&&(_0x51fcb4=await this[_0xe2a5('0xc1')][_0xe2a5('0x49')]());const _0x3e5d46=this[_0xe2a5('0x33')](_0x51fcb4),_0x43fa03=this[_0xe2a5('0x81')]({'from':_0x3e5d46,'to':_0x51fcb4});if(this['currentRevision'][_0xe2a5('0x4e')]<_0x51fcb4){const _0x483386=this[_0xe2a5('0x81')]({'revision':this[_0xe2a5('0x39')],'from':_0x51fcb4,'to':_0x51fcb4});_0x483386[_0xe2a5('0xff')]=[],_0x483386['authorsIds']=[],_0x483386['id']=this[_0xe2a5('0x39')]['id'],this[_0xe2a5('0x39')]['_update'](_0x483386,!0x0),delete _0x483386[_0xe2a5('0xff')],_0x505b54[_0xe2a5('0x0')](_0x483386);}_0x2638f5['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2638f5['name']=_0x2638f5[_0xe2a5('0xb1')]||null,_0x2638f5['id']=_0x2638f5['id']||_0x5a6b02(),_0x2638f5={..._0x2638f5,..._0x43fa03};const _0x571493=this['addRevisionData'](_0x2638f5);_0x505b54[_0xe2a5('0x0')](_0x2638f5);const _0x48d166=this[_0xe2a5('0x90')][_0xe2a5('0xae')](_0x571493);if(0x0!==_0x48d166){const _0x31ca9b=this['repository'][_0xe2a5('0x1d')](_0x48d166-0x1);if(_0x31ca9b[_0xe2a5('0x95')]!==_0x51fcb4){const _0x459d25=this[_0xe2a5('0xa5')][_0xe2a5('0x65')](_0x51fcb4,_0x31ca9b[_0xe2a5('0x4e')]),_0x285dce={'id':_0x31ca9b['id'],'diffData':_0x459d25['diffData'],'authorsIds':_0x459d25[_0xe2a5('0x1e')],'authors':_0x459d25['authorsIds'][_0xe2a5('0x3e')](_0x4a9b77=>this[_0xe2a5('0xb9')][_0xe2a5('0xa2')][_0xe2a5('0xcb')](_0xe2a5('0x71'))['getUser'](_0x4a9b77)),'fromVersion':_0x51fcb4};_0x31ca9b===this[_0xe2a5('0x39')]&&(_0x285dce[_0xe2a5('0xb8')]=new Date(_0x2638f5[_0xe2a5('0xb8')][_0xe2a5('0xdb')]()+0xa)),_0x31ca9b[_0xe2a5('0xa3')](_0x285dce,!0x0),delete _0x285dce[_0xe2a5('0xff')],_0x505b54['push'](_0x285dce);}}if(this[_0xe2a5('0x50')]){for(const _0x38ad8b of _0x505b54)this['_bufferUpdate'](_0x38ad8b['id'],_0x38ad8b,!0x0);this[_0xe2a5('0xe7')]();}return _0x571493;}['addRevisionData'](_0x6844d5){const _0x84af8b=this[_0xe2a5('0x90')][_0xe2a5('0x24')](_0x6844d5);return this[_0xe2a5('0x50')]&&_0x84af8b['on']('_update',(_0x237770,_0x4a43c7,_0x420d59)=>{_0x420d59||(this[_0xe2a5('0x23')](_0x4a43c7['id'],_0x4a43c7,!0x0),this[_0xe2a5('0xe7')]());}),this[_0xe2a5('0x90')]['addRevision'](_0x84af8b,this['_findInsertionIndex'](_0x84af8b)),_0x84af8b;}async['getRevisionDocumentData'](_0x416e3e){await this[_0xe2a5('0x32')](_0x416e3e);const _0x36e07f={};for(const _0x256baf in _0x416e3e[_0xe2a5('0xda')]){if(_0x416e3e[_0xe2a5('0xda')][_0x256baf][_0xe2a5('0xa8')]&&!_0x416e3e[_0xe2a5('0xda')][_0x256baf][_0xe2a5('0xa8')][_0xe2a5('0xb0')])continue;const _0x1fa964=this[_0xe2a5('0xe9')](JSON['parse'](_0x416e3e['diffData'][_0x256baf][_0xe2a5('0x9d')])),_0x425ea4=this['editor'][_0xe2a5('0x26')][_0xe2a5('0x2d')][_0xe2a5('0xc')],_0x20d7f9=new _0xb38177(_0x425ea4,_0x1fa964['map'](_0x378a66=>J(_0x378a66,this[_0xe2a5('0xb9')])));this[_0xe2a5('0xb9')][_0xe2a5('0x52')][_0xe2a5('0x5')][_0xe2a5('0x94')](_0xe2a5('0x8a')),_0x36e07f[_0x256baf]=this['editor'][_0xe2a5('0x52')][_0xe2a5('0x5')][_0xe2a5('0x70')](_0x20d7f9),this[_0xe2a5('0xb9')][_0xe2a5('0x52')][_0xe2a5('0x5')][_0xe2a5('0x94')]('default');}return _0x36e07f;}async[_0xe2a5('0x41')](_0x2c5af3){await this[_0xe2a5('0x32')](_0x2c5af3);const _0xed377d={};for(const _0x32e229 in _0x2c5af3['diffData'])_0x2c5af3[_0xe2a5('0xda')][_0x32e229][_0xe2a5('0xa8')]&&!_0x2c5af3[_0xe2a5('0xda')][_0x32e229][_0xe2a5('0xa8')][_0xe2a5('0xb0')]||(_0xed377d[_0x32e229]=_0x2c5af3[_0xe2a5('0xda')][_0x32e229]['attributesAfter']||{});return _0xed377d;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates'][_0xe2a5('0xc8')])return;if(this[_0xe2a5('0x3')])return;let _0x5261ca=Array[_0xe2a5('0xd5')](this[_0xe2a5('0x7a')]['values']());this[_0xe2a5('0x7a')][_0xe2a5('0xfc')]();for(let _0x42fcb6=0x0;_0x42fcb6<_0x5261ca[_0xe2a5('0x7c')];_0x42fcb6++){const _0x2ac6a4=_0x5261ca[_0x42fcb6];let _0x3d634a=!0x1;for(const _0x10aafc of Object[_0xe2a5('0x80')](_0x2ac6a4))void 0x0===_0x2ac6a4[_0x10aafc]?delete _0x2ac6a4[_0x10aafc]:'id'!==_0x10aafc&&(_0x3d634a=!0x0);_0x3d634a||(_0x5261ca[_0x42fcb6]=null);}if(_0x5261ca=_0x5261ca['filter'](_0x528531=>null!==_0x528531),!_0x5261ca[_0xe2a5('0x7c')])return;for(let _0x1bb973=0x0;_0x1bb973<_0x5261ca[_0xe2a5('0x7c')];_0x1bb973++){const _0x4b09ef=_0x5261ca[_0x1bb973];void 0x0!==_0x4b09ef['fromVersion']&&void 0x0===_0x4b09ef['toVersion']&&(_0x4b09ef['toVersion']=this['repository'][_0xe2a5('0x1d')](_0x4b09ef['id'])[_0xe2a5('0x4e')]),void 0x0!==_0x4b09ef[_0xe2a5('0x4e')]&&void 0x0===_0x4b09ef[_0xe2a5('0x95')]&&(_0x4b09ef[_0xe2a5('0x95')]=this[_0xe2a5('0x90')][_0xe2a5('0x1d')](_0x4b09ef['id'])[_0xe2a5('0x95')]);}const _0x19e370=this[_0xe2a5('0xb9')]['config'][_0xe2a5('0xcb')](_0xe2a5('0xd1'));this['_isPendingUpdate']=!0x0,this[_0xe2a5('0xf7')](),this[_0xe2a5('0x50')]['updateRevisions'](_0x5261ca,_0x19e370)[_0xe2a5('0xca')](()=>{this['_isPendingUpdate']=!0x1;})[_0xe2a5('0x16')](_0x28bc8a=>{if(_0x28bc8a)for(const _0x44b2a1 of _0x28bc8a)this[_0xe2a5('0x91')]({'id':_0x44b2a1['id'],'createdAt':_0x44b2a1[_0xe2a5('0xb8')]});this[_0xe2a5('0xc3')](),this[_0xe2a5('0xe7')]();});}[_0xe2a5('0x14')](_0x29ea13,_0x2680f4){let _0x1fdf7e=this[_0xe2a5('0xb9')][_0xe2a5('0xfd')][_0xe2a5('0xcb')](_0xe2a5('0x77')),_0x2e5413=this[_0xe2a5('0xb9')][_0xe2a5('0xfd')]['get'](_0xe2a5('0x75'));if(void 0x0===_0x1fdf7e){_0x1fdf7e={};for(const _0x3b6558 of this[_0xe2a5('0xb9')][_0xe2a5('0xf4')][_0xe2a5('0xc')]['getRootNames']())_0x1fdf7e[_0x3b6558]='';}if(_0xe2a5('0xeb')==typeof _0x1fdf7e&&(_0x1fdf7e={'main':_0x1fdf7e}),void 0x0===_0x2e5413){_0x2e5413={};for(const _0x17dbd5 of this['editor']['model'][_0xe2a5('0xc')]['getRootNames']())_0x2e5413[_0x17dbd5]={};}let _0x29ef85=!0x1;const _0x38ade5=Object[_0xe2a5('0x80')](_0x1fdf7e),_0x1f8a0b=Object[_0xe2a5('0x80')](_0x29ea13);for(const _0x57032f of _0x38ade5){if(_0x1fdf7e[_0x57032f]!==_0x29ea13[_0x57032f]&&''!==_0x1fdf7e[_0x57032f][_0xe2a5('0x61')]()){_0x29ef85=!0x0;break;}if(!_0x106403(_0x2e5413[_0x57032f],_0x2680f4[_0x57032f])&&Object[_0xe2a5('0x80')](_0x2e5413[_0x57032f])[_0xe2a5('0x7c')]>0x0){_0x29ef85=!0x0;break;}}_0x29ef85||(_0x29ef85=_0x1f8a0b[_0xe2a5('0xea')](_0x5d5a8c=>!this['editor'][_0xe2a5('0xf4')]['document'][_0xe2a5('0xde')](_0x5d5a8c))),_0x29ef85&&_0x4a4814('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1fdf7e,'editorRootsAttributes':_0x2e5413,'revisionData':_0x29ea13,'revisionRootsAttributes':_0x2680f4}),this[_0xe2a5('0xb9')][_0xe2a5('0xfd')][_0xe2a5('0x38')](_0xe2a5('0x77'),_0x29ea13),this[_0xe2a5('0xb9')][_0xe2a5('0xfd')]['set'](_0xe2a5('0x75'),_0x2680f4);}[_0xe2a5('0xf7')](){if(!this[_0xe2a5('0x8f')]){const _0x3fa45d=this[_0xe2a5('0xb9')]['plugins'][_0xe2a5('0xcb')](_0xe2a5('0x20'));this[_0xe2a5('0x8f')]=_0x3fa45d['add'](_0x21fa08(this[_0xe2a5('0xb9')]['locale'],_0xe2a5('0x37')));}}[_0xe2a5('0xc3')](){this['_pendingAction']&&(this[_0xe2a5('0xb9')][_0xe2a5('0xa2')][_0xe2a5('0xcb')](_0xe2a5('0x20'))[_0xe2a5('0x2c')](this['_pendingAction']),this[_0xe2a5('0x8f')]=null);}[_0xe2a5('0xb3')](_0x31fed9){const _0x5028be=this[_0xe2a5('0x90')]['getRevisions']();_0x5028be['reverse']();let _0xa91cee=0x0;for(;_0xa91cee<_0x5028be[_0xe2a5('0x7c')];){const _0x477bf3=_0x5028be[_0xa91cee];if(_0x477bf3===this[_0xe2a5('0x39')]){_0xa91cee++;continue;}if(_0x477bf3['id']===this[_0xe2a5('0x18')])break;const _0x537f75=_0x31fed9[_0xe2a5('0x4e')]-_0x477bf3[_0xe2a5('0x4e')]||_0x31fed9[_0xe2a5('0x95')]-_0x477bf3[_0xe2a5('0x95')];if(_0x537f75>0x0)break;if(_0x537f75<0x0)_0xa91cee++;else{if(!_0x31fed9[_0xe2a5('0x9e')]&&_0x477bf3['creator'])break;if(_0x477bf3[_0xe2a5('0x9e')]||!_0x31fed9[_0xe2a5('0x9e')]){if(_0x31fed9[_0xe2a5('0xb8')]>_0x477bf3[_0xe2a5('0xb8')])break;_0xa91cee++;}else _0xa91cee++;}}return _0xa91cee;}[_0xe2a5('0x91')](_0x1f2b4c){const _0x13ae0b=this[_0xe2a5('0x90')][_0xe2a5('0x1d')](_0x1f2b4c['id']);if(_0x1f2b4c[_0xe2a5('0xb8')]&&(_0x1f2b4c[_0xe2a5('0xb8')]=new Date(_0x1f2b4c[_0xe2a5('0xb8')])),_0x1f2b4c[_0xe2a5('0x1e')]){const _0x5e750f=this[_0xe2a5('0xb9')][_0xe2a5('0xa2')][_0xe2a5('0xcb')](_0xe2a5('0x71'));_0x1f2b4c[_0xe2a5('0xff')]=_0x1f2b4c['authorsIds'][_0xe2a5('0x3e')](_0x29245e=>_0x5e750f['getUser'](_0x29245e));}_0x13ae0b[_0xe2a5('0xa3')](_0x1f2b4c,!0x0);}['buildRevisionData']({revision:_0x409b60=null,from:_0x11a95f=null,to:_0x157958=null}){_0x11a95f=null!==_0x11a95f?_0x11a95f:_0x409b60[_0xe2a5('0x95')],_0x157958=null!==_0x157958?_0x157958:_0x409b60['toVersion'];const _0x3af7da=this[_0xe2a5('0xa5')]['getData'](_0x11a95f,_0x157958),_0x37952c={'diffData':_0x3af7da['diffData'],'authorsIds':_0x3af7da[_0xe2a5('0x1e')],'fromVersion':_0x11a95f,'toVersion':_0x157958};if(!_0x409b60||_0x157958!==_0x409b60['toVersion']){const _0x40ec0b=_0x157958-0x1,_0x28117d=this[_0xe2a5('0xc1')][_0xe2a5('0xcd')][_0xe2a5('0x69')](_0x40ec0b);_0x37952c[_0xe2a5('0xb8')]=_0x28117d&&_0x28117d['createdAt']||new Date();}if(this[_0xe2a5('0x2f')]&&_0x11a95f===this[_0xe2a5('0x2f')]['fromVersion'])for(const _0xe735b4 of this[_0xe2a5('0x2f')][_0xe2a5('0xff')])_0x37952c[_0xe2a5('0x1e')][_0xe2a5('0xb6')](_0xe735b4['id'])||_0x37952c[_0xe2a5('0x1e')][_0xe2a5('0x0')](_0xe735b4['id']);return _0x37952c;}[_0xe2a5('0x32')](_0x4203e3){if(!_0x4203e3||_0x4203e3[_0xe2a5('0xda')])return Promise[_0xe2a5('0x3b')]();{const _0x290d98=this[_0xe2a5('0xb9')]['config'][_0xe2a5('0xcb')](_0xe2a5('0xd1'));return this['adapter'][_0xe2a5('0x1d')]({'channelId':_0x290d98,'revisionId':_0x4203e3['id']})[_0xe2a5('0x16')](_0x4cbc48=>{_0x4203e3['diffData']=_0x4cbc48[_0xe2a5('0xda')];});}}[_0xe2a5('0x23')](_0x104186,_0x5af1ce,_0x1c09c0){if(this['_bufferedUpdates'][_0xe2a5('0x5b')](_0x104186)){const _0x312232=this[_0xe2a5('0x7a')][_0xe2a5('0xcb')](_0x104186);_0x5af1ce=_0x1c09c0?{..._0x312232,..._0x5af1ce}:{..._0x5af1ce,..._0x312232};}this[_0xe2a5('0x7a')]['set'](_0x104186,_0x5af1ce);}[_0xe2a5('0x33')](_0x20a1c8){const _0x486be3=this[_0xe2a5('0x90')][_0xe2a5('0x27')]();_0x486be3[_0xe2a5('0xbd')](),_0x486be3[_0xe2a5('0xc2')]();const _0x20b8c8=_0x486be3['find'](_0x857a53=>_0x857a53[_0xe2a5('0x4e')]<=_0x20a1c8)[_0xe2a5('0x4e')];return _0x20b8c8<this[_0xe2a5('0x4c')]?this[_0xe2a5('0x4c')]:_0x20b8c8;}[_0xe2a5('0xf0')](_0x175d9f){const _0x56bc6f=this[_0xe2a5('0x90')][_0xe2a5('0x1d')](this[_0xe2a5('0x90')][_0xe2a5('0x7c')]-0x1);if(_0x56bc6f)this[_0xe2a5('0x18')]=_0x56bc6f['id'];else{const _0x405144=!this['editor'][_0xe2a5('0xf4')][_0xe2a5('0xc')]['roots'][_0xe2a5('0xd6')](_0x5662d4=>this[_0xe2a5('0xb9')][_0xe2a5('0xf4')]['hasContent'](_0x5662d4)),_0x55c54c=this['editor'][_0xe2a5('0xa2')][_0xe2a5('0xcb')](_0xe2a5('0x71'))['me']['id'],_0x13010b=_0x21fa08(this['editor'][_0xe2a5('0xd3')],_0x405144?'Empty\x20document':_0xe2a5('0x19'));this[_0xe2a5('0x4a')]({'from':_0x175d9f,'to':_0x175d9f,'id':this[_0xe2a5('0x18')],'name':_0x13010b,'creatorId':_0x55c54c});}}[_0xe2a5('0x53')](_0x2b3c17){const _0x512a52=this[_0xe2a5('0xc1')][_0xe2a5('0xb5')]();this[_0xe2a5('0x39')]=this[_0xe2a5('0x90')][_0xe2a5('0x1d')](_0x512a52),this[_0xe2a5('0x39')]||(this[_0xe2a5('0x39')]=this[_0xe2a5('0x4a')]({'from':_0x2b3c17,'to':_0x2b3c17,'id':_0x512a52,'name':'','creatorId':null}));}[_0xe2a5('0x4a')]({name:_0x332b0a,from:_0x4e1400,to:_0x384e3b,creatorId:_0x2c5c41,id:_0x27888c}){const _0x420f5e=this[_0xe2a5('0x81')]({'from':_0x4e1400,'to':_0x384e3b});_0x420f5e['name']=_0x332b0a,_0x420f5e['creatorId']=_0x2c5c41,_0x420f5e['id']=_0x27888c;const _0x2ecf74=this[_0xe2a5('0x83')](_0x420f5e);return this[_0xe2a5('0x50')]&&this[_0xe2a5('0x23')](_0x420f5e['id'],_0x420f5e,!0x0),_0x2ecf74;}[_0xe2a5('0xc7')](){this[_0xe2a5('0xb9')][_0xe2a5('0x97')]['for']('dataDowncast')[_0xe2a5('0xb2')]({'model':'revision'});}['_removeRevisionMarkers'](_0x4d3db1){return(_0x4d3db1=_0x4d3db1[_0xe2a5('0xa4')](_0x12f2a8=>!_0x12f2a8[_0xe2a5('0xb1')]||_0xe2a5('0xf6')!==_0x12f2a8[_0xe2a5('0xb1')]&&_0xe2a5('0xa9')!==_0x12f2a8[_0xe2a5('0xb1')]))[_0xe2a5('0x1b')](_0x661bdb=>{_0xe2a5('0xeb')!=typeof _0x661bdb&&(_0x661bdb['children']=this['_removeRevisionMarkers'](_0x661bdb['children']),_0x661bdb[_0xe2a5('0x1c')]=_0x661bdb['attributes']['filter'](_0xb47c7d=>!_0xb47c7d[0x0][_0xe2a5('0x5e')](_0xe2a5('0xb4'))));}),_0x4d3db1;}}function J(_0x1eba06,_0x5b5674){const _0x51336b=_0x5b5674[_0xe2a5('0x26')][_0xe2a5('0x2d')][_0xe2a5('0xc')];if(_0xe2a5('0xeb')==typeof _0x1eba06)return new _0x51707a(_0x51336b,_0x1eba06);{const _0x24ef29=_0x1eba06['children']['map'](_0x2955a0=>J(_0x2955a0,_0x5b5674));return new(B[_0x1eba06[(_0xe2a5('0xbf'))]]||_0x15e7e0)(_0x51336b,_0x1eba06[_0xe2a5('0xb1')],_0x1eba06[_0xe2a5('0x1c')],_0x24ef29);}}class H{constructor(_0x281a4d){this[_0xe2a5('0xb9')]=_0x281a4d,this[_0xe2a5('0x11')]=new Map(),this['_lastFrom']=-0x1,this[_0xe2a5('0xd0')]=-0x1,this[_0xe2a5('0xc9')]=new Map(),this['_diffRoots']=new Map(),this[_0xe2a5('0xfe')]=new Map(),this[_0xe2a5('0x63')]=new Map(),this[_0xe2a5('0x6d')]=new Map(),this[_0xe2a5('0x51')]=new Map(),this[_0xe2a5('0xf')]=new Map(),this[_0xe2a5('0xaf')]=new Map(),this[_0xe2a5('0xa')]=new Map(),this['_touchedRoots']=new Map(),this[_0xe2a5('0x7b')]=0x1;}[_0xe2a5('0x6c')](_0x109086){this[_0xe2a5('0x13')]=_0x109086;const _0x28b4a6=new Map(),_0x186b42=new Map(),_0x3d7102=this[_0xe2a5('0xb9')][_0xe2a5('0xf4')][_0xe2a5('0xc')][_0xe2a5('0xc6')][_0xe2a5('0x3e')](_0x29aaf2=>_0x29aaf2[_0xe2a5('0xfa')]);for(const _0x41fe11 of _0x3d7102){const _0x571c3c=this['editor']['model'][_0xe2a5('0xc')]['getRoot'](_0x41fe11),_0x470199=q(_0x571c3c);_0x28b4a6['set'](_0x41fe11,_0x470199),_0x186b42[_0xe2a5('0x38')](_0x41fe11,Object[_0xe2a5('0x1a')](_0x571c3c[_0xe2a5('0x35')]()));}const _0x18fc39=Array['from'](this[_0xe2a5('0xb9')][_0xe2a5('0xf4')][_0xe2a5('0xf5')])[_0xe2a5('0x3e')](_0x239e52=>[_0x239e52['name'],_0x239e52[_0xe2a5('0x68')]()]),_0x35170d=this[_0xe2a5('0x13')][_0xe2a5('0x85')];this['_saveMetaData'](_0x35170d,_0x28b4a6,_0x18fc39,_0x186b42),this[_0xe2a5('0x60')]=this[_0xe2a5('0x7b')];const _0x3f14d0=new Map(),_0x1304c8=new Map();for(const _0x399158 of _0x3d7102){const _0x582dee=G(_0x399158);_0x3f14d0[_0xe2a5('0x38')](_0x399158,_0x582dee),_0x1304c8[_0xe2a5('0x38')](_0x399158,{});}this[_0xe2a5('0xab')](Number[_0xe2a5('0xbc')],_0x3f14d0,[],_0x1304c8);}[_0xe2a5('0x65')](_0x52429d,_0x8c1a7e){if(this['_lastFrom']===_0x52429d&&this[_0xe2a5('0xd0')]<=_0x8c1a7e)this['_savedMetaData'][_0xe2a5('0xc8')]>0x1&&this['_removeMetaData'](this[_0xe2a5('0xd0')]),this['_applyOperations'](this[_0xe2a5('0xd0')],_0x8c1a7e,!0x0);else{if(!this[_0xe2a5('0x11')][_0xe2a5('0x5b')](_0x52429d)){const _0x2f4d7c=this[_0xe2a5('0xce')](_0x52429d);this[_0xe2a5('0xb7')](_0x2f4d7c,_0x52429d,!0x1);}this[_0xe2a5('0xb7')](_0x52429d,_0x8c1a7e,!0x0);}return this[_0xe2a5('0xc0')]=_0x52429d,this[_0xe2a5('0xd0')]=_0x8c1a7e,this['_getState']();}[_0xe2a5('0x22')](_0x4ffad8){this['_reset'](),this['_lastFrom']=_0x4ffad8['fromVersion'],this[_0xe2a5('0xd0')]=_0x4ffad8[_0xe2a5('0x4e')];for(const _0x4af72d in _0x4ffad8[_0xe2a5('0xda')]){const _0x586bc6=_0x4ffad8[_0xe2a5('0xda')][_0x4af72d][_0xe2a5('0xa8')],_0x2e9eb9=_0x4a6ecc(_0x4ffad8[_0xe2a5('0xda')][_0x4af72d][_0xe2a5('0x6')])||{},_0x4e7828=this[_0xe2a5('0x88')](_0x4ffad8[_0xe2a5('0xda')][_0x4af72d][_0xe2a5('0x99')]);_0x4e7828['rootName']=_0x4af72d,_0x4e7828[_0xe2a5('0x87')]=!_0x586bc6||!_0x586bc6[_0xe2a5('0xb0')],_0x4e7828['isAttached']=()=>_0x4e7828[_0xe2a5('0x87')],this[_0xe2a5('0x63')][_0xe2a5('0x38')](_0x4af72d,_0x4e7828),this['_baseRootsAttributes'][_0xe2a5('0x38')](_0x4af72d,_0x2e9eb9),_0x586bc6&&this[_0xe2a5('0x67')][_0xe2a5('0x38')](_0x4af72d,_0x586bc6);const _0x410cf7=this[_0xe2a5('0x36')](_0x4e7828);this[_0xe2a5('0xf')]['set'](_0x4af72d,_0x410cf7);for(const [_0x4302ea,_0x569173]of _0x4e7828[_0xe2a5('0xf5')]){if(!_0x4302ea[_0xe2a5('0x5e')]('revision:'))continue;const _0xc598d4=_0x4302ea['split'](':')[0x2];for(const _0x412d1e of _0x569173[_0xe2a5('0x4b')]({'singleCharacters':!0x0})){const _0x1b2b4a=this[_0xe2a5('0x8')](_0x412d1e),_0x49b4c7=_0xe2a5('0x1f')==_0x412d1e[_0xe2a5('0xbf')]?_0x412d1e[_0xe2a5('0xe6')][_0xe2a5('0xc4')][_0xe2a5('0x4')](0x0,-0x1):_0x412d1e[_0xe2a5('0xe6')][_0xe2a5('0xc4')],_0x2e9b99=_0x410cf7[_0xe2a5('0x8e')](_0x49b4c7)[_0xe2a5('0xdd')](_0x1b2b4a);this['_touched'][_0xe2a5('0x38')](_0x2e9b99,{'userId':_0xc598d4});}}}this[_0xe2a5('0x60')]=this[_0xe2a5('0x7b')];const _0x5aecf8=[...Array(this[_0xe2a5('0x7b')])[_0xe2a5('0x80')]()]['slice'](0x1)[_0xe2a5('0xa4')](_0x4ff56e=>!this[_0xe2a5('0xaf')][_0xe2a5('0x5b')](_0x4ff56e));let _0x5092d0=0x0;const _0x1ca076=new Map();for(const _0x3bccee in _0x4ffad8[_0xe2a5('0xda')]){const _0x34492c=_0x4ffad8[_0xe2a5('0xda')][_0x3bccee]['attachChange'],_0x23d9c5=_0x4a6ecc(_0x4ffad8['diffData'][_0x3bccee][_0xe2a5('0x6e')])||{},_0x4ba8d5=this['_makeModelFromViewString'](_0x4ffad8['diffData'][_0x3bccee][_0xe2a5('0x9d')]);_0x4ba8d5['rootName']=_0x3bccee,_0x4ba8d5[_0xe2a5('0x87')]=!_0x34492c||_0x34492c['isAttached'],_0x4ba8d5['isAttached']=()=>_0x4ba8d5[_0xe2a5('0x87')],this['_diffRoots']['set'](_0x3bccee,_0x4ba8d5),this['_diffRootsAttributes'][_0xe2a5('0x38')](_0x3bccee,_0x23d9c5);const _0x281e6b=this['_makeIdsRoot'](_0x4ba8d5,Number[_0xe2a5('0xbc')]);this[_0xe2a5('0x51')]['set'](_0x3bccee,_0x281e6b),_0x1ca076[_0xe2a5('0x38')](_0x3bccee,_0x4ba8d5[_0xe2a5('0xb0')]()?_0x23d9c5:{});for(const [_0x79551d,_0x29283f]of _0x4ba8d5[_0xe2a5('0xf5')]){if(!_0x79551d[_0xe2a5('0x5e')](_0xe2a5('0x92')))continue;const _0x3cfbe8=_0x79551d['split'](':')[0x2];for(const _0x250479 of _0x29283f[_0xe2a5('0x4b')]({'singleCharacters':!0x0})){const _0x291dda=this[_0xe2a5('0x8')](_0x250479),_0x1fab6c=this[_0xe2a5('0x7b')]++,_0x3aae2e=_0xe2a5('0x1f')==_0x250479[_0xe2a5('0xbf')]?_0x250479[_0xe2a5('0xe6')][_0xe2a5('0xc4')][_0xe2a5('0x4')](0x0,-0x1):_0x250479['previousPosition'][_0xe2a5('0xc4')];_0x281e6b[_0xe2a5('0x8e')](_0x3aae2e)[_0xe2a5('0x59')](_0x291dda,_0x1fab6c),this[_0xe2a5('0xaf')][_0xe2a5('0x38')](_0x1fab6c,{'userId':_0x3cfbe8});}}for(const _0x3784f2 of this[_0xe2a5('0xb9')][_0xe2a5('0xf4')][_0xe2a5('0x2e')](_0x4ba8d5)['getWalker']({'singleCharacters':!0x0})){const _0x30c266=this['_getVidAttributeName'](_0x3784f2),_0x867da1=_0xe2a5('0x1f')==_0x3784f2['type']?_0x3784f2[_0xe2a5('0xe6')][_0xe2a5('0xc4')][_0xe2a5('0x4')](0x0,-0x1):_0x3784f2[_0xe2a5('0xe6')][_0xe2a5('0xc4')],_0x367ffd=_0x281e6b['getNodeByPath'](_0x867da1);_0x367ffd['getAttribute'](_0x30c266)>0x0||_0x367ffd[_0xe2a5('0x59')](_0x30c266,_0x5aecf8[_0x5092d0++]);}for(const [_0x364f29,_0x38dff8]of _0x4ba8d5[_0xe2a5('0xf5')])_0x364f29[_0xe2a5('0x5e')](_0xe2a5('0x92'))||this['_markers']['set'](_0x364f29,_0x38dff8);}const _0xc2bcc=G(_0xe2a5('0x98'));this[_0xe2a5('0x63')]['set'](_0xe2a5('0x98'),_0xc2bcc),this[_0xe2a5('0xf')]['set'](_0xe2a5('0x98'),this['_makeIdsRoot'](_0xc2bcc,0x1));const _0x2e66ff=G(_0xe2a5('0x98'));this[_0xe2a5('0x6f')][_0xe2a5('0x38')](_0xe2a5('0x98'),_0x2e66ff),this[_0xe2a5('0x51')][_0xe2a5('0x38')](_0xe2a5('0x98'),this[_0xe2a5('0x36')](_0x2e66ff,0x1));const _0x5cd758=Array[_0xe2a5('0xd5')](this[_0xe2a5('0x6f')])[_0xe2a5('0x3e')](([_0x3ddb44,_0x52ea61])=>[_0x3ddb44,q(_0x52ea61)]);this[_0xe2a5('0xab')](this[_0xe2a5('0xd0')],_0x5cd758,this['_markers'],_0x1ca076);}[_0xe2a5('0x88')](_0x8789d8){const _0x43a0d7=JSON[_0xe2a5('0x15')](_0x8789d8),_0x4f863c=this['editor'][_0xe2a5('0x26')][_0xe2a5('0x2d')][_0xe2a5('0xc')],_0x1e54a3=new _0xb38177(_0x4f863c,_0x43a0d7[_0xe2a5('0x3e')](_0x11a7b0=>J(_0x11a7b0,this[_0xe2a5('0xb9')])));return this[_0xe2a5('0xb9')][_0xe2a5('0x52')][_0xe2a5('0xe8')](_0x1e54a3);}[_0xe2a5('0xab')](_0x289330,_0x5c3d8d,_0x2d559f,_0x365056){const _0x1b6bbb=new Map(_0x5c3d8d),_0x442ebc=new Map(_0x4a6ecc(_0x365056)),_0x3873f5=new Map();for(const [_0x3b9bde,_0x371a79]of _0x2d559f)_0x3873f5[_0xe2a5('0x38')](_0x3b9bde,{'start':_0x371a79[_0xe2a5('0x89')][_0xe2a5('0x93')](),'end':_0x371a79[_0xe2a5('0xb')]['clone'](),'rootName':_0x371a79[_0xe2a5('0xf8')][_0xe2a5('0xfa')]});this[_0xe2a5('0x11')][_0xe2a5('0x38')](_0x289330,{'roots':_0x1b6bbb,'markers':_0x3873f5,'rootsAttributes':_0x442ebc});}['_removeMetaData'](_0x19a873){this[_0xe2a5('0x11')][_0xe2a5('0x7e')](_0x19a873);}['reInit'](){this[_0xe2a5('0x4d')](),this[_0xe2a5('0xc0')]=-0x1,this['_lastTo']=-0x1,this[_0xe2a5('0x11')][_0xe2a5('0xfc')](),this[_0xe2a5('0x6c')](this[_0xe2a5('0x13')]);}[_0xe2a5('0x4d')](){this[_0xe2a5('0xaf')][_0xe2a5('0xfc')](),this[_0xe2a5('0xa')][_0xe2a5('0xfc')](),this['_touchedRoots'][_0xe2a5('0xfc')](),this[_0xe2a5('0x6f')]['clear'](),this[_0xe2a5('0xfe')][_0xe2a5('0xfc')](),this[_0xe2a5('0x63')][_0xe2a5('0xfc')](),this[_0xe2a5('0x6d')]['clear'](),this['_idsRoots'][_0xe2a5('0xfc')](),this[_0xe2a5('0xf')][_0xe2a5('0xfc')](),this[_0xe2a5('0xc9')]['clear'](),this['_revisionId']=0x1,this[_0xe2a5('0x60')]=this[_0xe2a5('0x7b')];}[_0xe2a5('0x36')](_0x5c1cbb,_0x486371=null){let _0x529c43=null;_0x5c1cbb['is'](_0xe2a5('0xdc'))||(_0x529c43=new _0x51fbf2(_0x5c1cbb['name'],{'vid_start':null===_0x486371?this[_0xe2a5('0x7b')]++:_0x486371++}));const _0x12e6e8=[];for(const _0x266ec2 of _0x5c1cbb[_0xe2a5('0x6a')]())if(_0x266ec2['is'](_0xe2a5('0x25'))){_0x12e6e8[_0xe2a5('0x0')](this[_0xe2a5('0x36')](_0x266ec2,_0x486371));const _0xd934d5=_0x12e6e8[_0x12e6e8[_0xe2a5('0x7c')]-0x1];null!==_0x486371&&(_0x486371=_0xd934d5['is'](_0xe2a5('0x25'),_0xe2a5('0xd'))?_0xd934d5[_0xe2a5('0xdd')](_0xe2a5('0x2a'))+0x1:_0xd934d5[_0xe2a5('0xdd')](_0xe2a5('0x17'))+0x1);}else for(let _0x3c5104=0x0;_0x3c5104<_0x266ec2['offsetSize'];_0x3c5104++)_0x12e6e8[_0xe2a5('0x0')](new _0x51fbf2(_0xe2a5('0xd'),{'vid':null===_0x486371?this[_0xe2a5('0x7b')]++:_0x486371++}));if(_0x5c1cbb['is'](_0xe2a5('0xdc'))){const _0x493d4b=G(_0x5c1cbb['rootName']);return _0x493d4b[_0xe2a5('0xed')](0x0,_0x12e6e8),_0x493d4b;}return _0x529c43[_0xe2a5('0x59')](_0xe2a5('0x17'),null===_0x486371?this[_0xe2a5('0x7b')]++:_0x486371++),_0x529c43[_0xe2a5('0xed')](0x0,_0x12e6e8),_0x529c43;}['_calculateMetaData'](_0x126629,_0x5da191,_0x10468d){this[_0xe2a5('0x4d')]();const {roots:_0x380041,markers:_0x3ee9bb,rootsAttributes:_0x14ea79}=this[_0xe2a5('0x11')][_0xe2a5('0xcb')](_0x126629);this['_baseRoots']=new Map(_0x380041),this[_0xe2a5('0x6d')]=new Map(_0x4a6ecc(_0x14ea79));for(const [_0x4633f5,_0x1efffc]of this[_0xe2a5('0x63')])if(_0xe2a5('0x98')!==_0x4633f5&&(this[_0xe2a5('0x6f')][_0xe2a5('0x38')](_0x4633f5,q(_0x1efffc)),this[_0xe2a5('0xfe')]=new Map(_0x4a6ecc(_0x14ea79)),_0x10468d)){const _0x38fd8b=this['_revisionId'];this[_0xe2a5('0x51')]['set'](_0x4633f5,this[_0xe2a5('0x36')](_0x1efffc)),this[_0xe2a5('0xf')]['set'](_0x4633f5,this[_0xe2a5('0x36')](_0x1efffc,_0x38fd8b));}this[_0xe2a5('0x60')]=this[_0xe2a5('0x7b')],this[_0xe2a5('0x6f')][_0xe2a5('0x38')](_0xe2a5('0x98'),q(this['_baseRoots']['get']('$graveyard'))),_0x10468d&&this[_0xe2a5('0x51')][_0xe2a5('0x38')](_0xe2a5('0x98'),this[_0xe2a5('0x36')](this['_baseRoots'][_0xe2a5('0xcb')]('$graveyard')));for(const [_0x197e3c,_0x17e535]of _0x3ee9bb){const _0x408b9d=this[_0xe2a5('0x63')][_0xe2a5('0xcb')](_0x17e535[_0xe2a5('0xfa')]),_0x37b17b=this[_0xe2a5('0x6f')][_0xe2a5('0xcb')](_0x17e535[_0xe2a5('0xfa')]),_0x3a63d1=new _0x555221(this[_0xe2a5('0xf2')](_0x17e535[_0xe2a5('0x89')],_0x408b9d),this[_0xe2a5('0xf2')](_0x17e535[_0xe2a5('0xb')],_0x408b9d)),_0x3e4d19=this[_0xe2a5('0x62')](_0x3a63d1,_0x37b17b);_0x408b9d[_0xe2a5('0xf5')][_0xe2a5('0x38')](_0x197e3c,_0x3a63d1),this['_markers'][_0xe2a5('0x38')](_0x197e3c,_0x3e4d19);}this['_applyOperations'](_0x126629,_0x5da191,_0x10468d);}[_0xe2a5('0xc5')](_0x1a0fc8,_0x50e36b,_0x2da15e){for(const _0x50d2e4 of this[_0xe2a5('0x13')]['getOperations'](_0x1a0fc8,_0x50e36b))this[_0xe2a5('0xba')](_0x50d2e4,_0x2da15e);for(const _0x14ee4c of this[_0xe2a5('0x6f')]['values']())_0x14ee4c[_0xe2a5('0xf5')][_0xe2a5('0xfc')]();for(const [_0x1eb94f,_0x299739]of this[_0xe2a5('0xc9')]){this[_0xe2a5('0x6f')][_0xe2a5('0xcb')](_0x299739['root']['rootName'])['markers'][_0xe2a5('0x38')](_0x1eb94f,_0x299739[_0xe2a5('0x93')]());}const _0x1513ed=new Map(),_0x128fe9=new Map();for(const [_0x61c5a0,_0x449efa]of this[_0xe2a5('0x6f')])_0x1513ed[_0xe2a5('0x38')](_0x61c5a0,q(_0x449efa)),_0x128fe9['set'](_0x61c5a0,this[_0xe2a5('0xfe')][_0xe2a5('0xcb')](_0x61c5a0));this[_0xe2a5('0xab')](_0x50e36b,_0x1513ed,this[_0xe2a5('0xc9')],_0x128fe9);}['_getPreviousFrom'](_0x3ae918){const _0x5dfb47=Array[_0xe2a5('0xd5')](this[_0xe2a5('0x11')][_0xe2a5('0x80')]());_0x5dfb47[_0xe2a5('0x9c')]((_0x17edf9,_0x4cc9ac)=>_0x17edf9-_0x4cc9ac),_0x5dfb47[_0xe2a5('0xbd')]();for(const _0x3a4e3a of _0x5dfb47)if(_0x3a4e3a<_0x3ae918)return _0x3a4e3a;return Number[_0xe2a5('0xbc')];}['_copyMarkers'](_0x10ef3a,_0x311620){const _0x3b7483=Array[_0xe2a5('0xd5')](_0x311620['markers'])[_0xe2a5('0x3e')](([_0x4c570c,_0x15ab81])=>[_0x4c570c,this[_0xe2a5('0x62')](_0x15ab81,_0x10ef3a)]);_0x10ef3a[_0xe2a5('0xf5')]=new Map(_0x3b7483);}['_transformMarkers'](_0x59ed4c){for(const _0xde77c8 of this['_markers'][_0xe2a5('0x96')]()){const _0x1edb93=_0xde77c8['getTransformedByOperation'](_0x59ed4c),_0x51e496=_0x555221[_0xe2a5('0x5c')](_0x1edb93);_0xde77c8[_0xe2a5('0x89')]=_0x51e496[_0xe2a5('0x89')],_0xde77c8[_0xe2a5('0xb')]=_0x51e496['end'];}}[_0xe2a5('0xba')](_0x41239a,_0xd348b5){if(_0xe2a5('0x2')==_0x41239a[_0xe2a5('0xbf')]||_0xe2a5('0x84')==_0x41239a[_0xe2a5('0xbf')])return void this[_0xe2a5('0x8c')](_0x41239a,_0xd348b5);if('insert'==_0x41239a[_0xe2a5('0xbf')]){const _0x2dd291=_0x41239a[_0xe2a5('0x29')][_0xe2a5('0xf8')]['rootName'];this['_diffRoots'][_0xe2a5('0x5b')](_0x2dd291)||(this[_0xe2a5('0x6f')][_0xe2a5('0x38')](_0x2dd291,G(_0x2dd291,!0x0)),this[_0xe2a5('0xfe')][_0xe2a5('0x38')](_0x2dd291,{}),_0xd348b5&&this[_0xe2a5('0x51')][_0xe2a5('0x38')](_0x2dd291,G(_0x2dd291,!0x0)));}else{if('addRootAttribute'==_0x41239a[_0xe2a5('0xbf')]||_0xe2a5('0x54')==_0x41239a['type']||_0xe2a5('0x7d')==_0x41239a['type'])return void this['_handleRootAttributeOperation'](_0x41239a);}const _0x3de796=this[_0xe2a5('0xef')](_0x41239a,this['_diffRoots']);if(_0xe2a5('0x74')!==_0x41239a[_0xe2a5('0xbf')]&&(_0x3de796[_0xe2a5('0x66')](),this['_transformMarkers'](_0x3de796)),_0xd348b5)switch(_0x3de796[_0xe2a5('0xbf')]){case _0xe2a5('0xe0'):this[_0xe2a5('0x58')](_0x41239a);break;case'move':case _0xe2a5('0x2c'):case _0xe2a5('0x30'):this[_0xe2a5('0x3f')](_0x41239a);break;case'merge':this['_handleMergeOperation'](_0x41239a);break;case'split':this['_handleSplitOperation'](_0x41239a);break;case _0xe2a5('0x74'):this[_0xe2a5('0x42')](_0x41239a);}}['_cloneOperation'](_0x18df35,_0x491fc8){const _0x4fbc1b=_0x18df35[_0xe2a5('0x93')]();return _0x4fbc1b[_0xe2a5('0xaa')]=_0x18df35[_0xe2a5('0xaa')],this[_0xe2a5('0x10')](_0x4fbc1b,_0x491fc8),_0x4fbc1b;}[_0xe2a5('0xe1')](_0x5c81a8){return _0x5c81a8[_0xe2a5('0x3e')](_0x5e2efd=>{const _0x8a2031=this[_0xe2a5('0x8')](_0x5e2efd);return Number(_0x5e2efd['item']['getAttribute'](_0x8a2031));});}['_generateTape'](_0xe47838,_0x594919){if(_0xe47838['is']('element',_0xe2a5('0xd')))_0x594919[_0xe2a5('0x0')]({'item':_0xe47838,'type':_0xe2a5('0xe3')});else{_0xe47838['is'](_0xe2a5('0x25'))&&_0x594919[_0xe2a5('0x0')]({'item':_0xe47838,'type':_0xe2a5('0x9b')});for(const _0x239d50 of _0xe47838[_0xe2a5('0x6a')]())this['_generateTape'](_0x239d50,_0x594919);_0xe47838['is'](_0xe2a5('0x25'))&&_0x594919[_0xe2a5('0x0')]({'item':_0xe47838,'type':_0xe2a5('0x1f')});}return _0x594919;}['_getState'](){const _0x1da9c0=new Map(this[_0xe2a5('0xaf')]),_0x106689=new Map(_0x1da9c0),_0x34947d=new Map(),_0x53aa6d={'insertions':{},'deletions':{}},_0x2b553b={'insertions':{},'deletions':{}},_0x1d21b7=new Map(),_0x146f9c=new Set([...this[_0xe2a5('0x63')]['keys'](),...this[_0xe2a5('0x6f')][_0xe2a5('0x80')]()]);_0x146f9c[_0xe2a5('0x7e')](_0xe2a5('0x98'));for(const _0xc7ef83 of _0x146f9c){const _0x127287=this['_diffRoots'][_0xe2a5('0xcb')](_0xc7ef83)||G(_0xc7ef83,!0x1),_0x5d379e=this[_0xe2a5('0x63')][_0xe2a5('0xcb')](_0xc7ef83)||G(_0xc7ef83,!0x1);_0x127287[_0xe2a5('0xb0')]()||_0x5d379e[_0xe2a5('0xb0')]()?(_0x53aa6d['insertions'][_0xc7ef83]=q(_0x127287),_0x53aa6d[_0xe2a5('0x99')][_0xc7ef83]=q(_0x5d379e),this[_0xe2a5('0xcc')](_0x53aa6d[_0xe2a5('0x99')][_0xc7ef83],_0x5d379e),this[_0xe2a5('0xcc')](_0x53aa6d['insertions'][_0xc7ef83],_0x127287),_0x2b553b[_0xe2a5('0x9d')][_0xc7ef83]=this['_generateTape'](this[_0xe2a5('0x51')][_0xe2a5('0xcb')](_0xc7ef83),[]),_0x2b553b[_0xe2a5('0x99')][_0xc7ef83]=this[_0xe2a5('0xd7')](this[_0xe2a5('0xf')][_0xe2a5('0xcb')](_0xc7ef83)||G(_0xc7ef83,!0x1),[])):_0x146f9c[_0xe2a5('0x7e')](_0xc7ef83);}for(const _0x58cb5c of _0x146f9c){const _0x4a1d9d=_0x2b553b[_0xe2a5('0x9d')][_0x58cb5c];for(const _0x29847c of _0x4a1d9d){const _0x32df68=this[_0xe2a5('0x8')](_0x29847c),_0x4081aa=_0x29847c['item'][_0xe2a5('0xdd')](_0x32df68);_0x106689[_0xe2a5('0x7e')](_0x4081aa),_0x4081aa>=this['_startingRevisionId']&&_0x34947d[_0xe2a5('0x38')](_0x4081aa,_0x1da9c0[_0xe2a5('0xcb')](_0x4081aa));}}for(const _0x385dfb of _0x146f9c){const _0x17cd15=_0x2b553b['insertions'][_0x385dfb],_0x2c0bbe=this[_0xe2a5('0xe1')](_0x2b553b['deletions'][_0x385dfb]);let _0x1c2e3e=0x0;for(const _0x1bf0e6 of _0x17cd15){const _0x2171fd=this[_0xe2a5('0x8')](_0x1bf0e6),_0x46fb5e=_0x1bf0e6[_0xe2a5('0x7')][_0xe2a5('0xdd')](_0x2171fd);if(!_0x34947d[_0xe2a5('0x5b')](_0x46fb5e)&&!_0x1d21b7[_0xe2a5('0x5b')](_0x46fb5e)){if(_0x106689['has'](_0x46fb5e))_0x1c2e3e++;else{if(_0x46fb5e!=_0x2c0bbe[_0x1c2e3e]){const _0xa00850=_0x1da9c0[_0xe2a5('0xcb')](_0x46fb5e)||_0x1da9c0[_0xe2a5('0xcb')](_0x2c0bbe[_0x1c2e3e]);for(;_0x46fb5e!=_0x2c0bbe[_0x1c2e3e];)_0x106689[_0xe2a5('0x5b')](_0x2c0bbe[_0x1c2e3e])||(_0x1d21b7[_0xe2a5('0x38')](_0x2c0bbe[_0x1c2e3e],_0xa00850),_0x1da9c0[_0xe2a5('0x38')](_0x2c0bbe[_0x1c2e3e],_0xa00850)),_0x1c2e3e++;}_0x1c2e3e++;}}}}for(const _0x3c8fa2 of _0x146f9c){const _0x587c69=_0x2b553b['insertions'][_0x3c8fa2];for(const _0x56a54d of _0x587c69){const _0x3ac897=this[_0xe2a5('0x8')](_0x56a54d),_0x28980b=_0x56a54d[_0xe2a5('0x7')][_0xe2a5('0xdd')](_0x3ac897);if(_0x1d21b7[_0xe2a5('0x5b')](_0x28980b)){const _0x4875d8=_0x1d21b7[_0xe2a5('0xcb')](_0x28980b);_0x106689['has'](_0x28980b)||_0x106689['set'](_0x28980b,{..._0x4875d8}),_0x34947d[_0xe2a5('0x38')](_0x28980b,{..._0x4875d8});}}}for(const _0x2e6d9f of _0x106689[_0xe2a5('0x80')]())_0x2e6d9f>=this[_0xe2a5('0x60')]&&_0x106689['delete'](_0x2e6d9f);const _0xb4396c=new Map();for(const _0x314491 of _0x146f9c){let _0x1f8d7a=_0x2b553b['insertions'][_0x314491];for(const _0x9e93d0 of _0x1f8d7a)if(_0x9e93d0['item']['is'](_0xe2a5('0x25'),_0xe2a5('0x5d'))){const _0x21d20e=this['_getVidAttributeName'](_0x9e93d0),_0x4a6ad5=_0x9e93d0['item']['getAttribute'](_0x21d20e);if(_0x34947d[_0xe2a5('0x5b')](_0x4a6ad5)){const _0x5756dd=_0x9e93d0[_0xe2a5('0x7')][_0xe2a5('0x28')]['parent'][_0xe2a5('0xdd')]('vid_start'),_0x59ff12=_0xb4396c[_0xe2a5('0xcb')](_0x5756dd)||new Set();_0x59ff12['add'](_0x34947d[_0xe2a5('0xcb')](_0x4a6ad5)[_0xe2a5('0xd2')]),_0xb4396c[_0xe2a5('0x38')](_0x5756dd,_0x59ff12);}}_0x1f8d7a=_0x2b553b['deletions'][_0x314491];for(const _0x427e7e of _0x1f8d7a)if(_0x427e7e[_0xe2a5('0x7')]['is'](_0xe2a5('0x25'),_0xe2a5('0x5d'))){const _0x1e4cf1=this[_0xe2a5('0x8')](_0x427e7e),_0x4d5a7c=_0x427e7e[_0xe2a5('0x7')][_0xe2a5('0xdd')](_0x1e4cf1);if(_0x106689[_0xe2a5('0x5b')](_0x4d5a7c)){const _0x382482=_0x427e7e['item'][_0xe2a5('0x28')]['parent'][_0xe2a5('0xdd')](_0xe2a5('0x40')),_0x274bd1=_0xb4396c['get'](_0x382482)||new Set();_0x274bd1[_0xe2a5('0x82')](_0x106689[_0xe2a5('0xcb')](_0x4d5a7c)[_0xe2a5('0xd2')]),_0xb4396c[_0xe2a5('0x38')](_0x382482,_0x274bd1);}}for(const _0x4cace0 of _0xb4396c[_0xe2a5('0x80')]())(_0x34947d[_0xe2a5('0x5b')](_0x4cace0)||_0x106689[_0xe2a5('0x5b')](_0x4cace0))&&_0xb4396c[_0xe2a5('0x7e')](_0x4cace0);}for(const _0x3eacea of _0x146f9c){const _0x19c0d3=_0x2b553b['insertions'][_0x3eacea];let _0x41b4e6=null,_0x34d5cc=null;for(const _0x3309d9 of _0x19c0d3){const _0x51853f=this[_0xe2a5('0x8')](_0x3309d9),_0x450a12=_0x3309d9['item'][_0xe2a5('0xdd')](_0x51853f),_0x4ef294=_0xb4396c['get'](_0x450a12);_0x4ef294&&'elementStart'==_0x3309d9['type']&&(_0x41b4e6=Array[_0xe2a5('0xd5')](_0x4ef294)[0x0],_0x34d5cc=_0x3309d9[_0xe2a5('0x7')]['getAttribute']('vid_end')),_0x41b4e6&&(_0x106689[_0xe2a5('0x38')](_0x450a12,{'userId':_0x41b4e6}),_0x34947d['set'](_0x450a12,{'userId':_0x41b4e6})),_0x450a12==_0x34d5cc&&(_0x41b4e6=null,_0x34d5cc=null);}}const _0x34b6ce={},_0x3031d7=new Set();for(const _0x4f926d of _0x146f9c){const _0x2bdca6=_0x53aa6d[_0xe2a5('0x99')][_0x4f926d],_0x5b5e89=_0x53aa6d[_0xe2a5('0x9d')][_0x4f926d];for(const {userId:_0x2cff22}of this[_0xe2a5('0xa')][_0xe2a5('0x96')]())null!==_0x2cff22&&_0x3031d7[_0xe2a5('0x82')](_0x2cff22);for(const {userId:_0x23d090}of this[_0xe2a5('0x67')][_0xe2a5('0x96')]())null!==_0x23d090&&_0x3031d7[_0xe2a5('0x82')](_0x23d090);this[_0xe2a5('0x3c')](_0x5b5e89,_0x2b553b[_0xe2a5('0x9d')][_0x4f926d],_0x34947d,_0xe2a5('0xf9'),_0x3031d7),this['_markChanges'](_0x2bdca6,_0x2b553b[_0xe2a5('0x99')][_0x4f926d],_0x106689,'deletion',_0x3031d7),_0x34b6ce[_0x4f926d]={'insertions':this[_0xe2a5('0xa7')](_0x5b5e89),'deletions':this[_0xe2a5('0xa7')](_0x2bdca6),'attachChange':this[_0xe2a5('0x67')][_0xe2a5('0xcb')](_0x4f926d)||null,'attributesBefore':_0x4a6ecc(this[_0xe2a5('0x6d')][_0xe2a5('0xcb')](_0x4f926d))||{},'attributesAfter':_0x4a6ecc(this[_0xe2a5('0xfe')][_0xe2a5('0xcb')](_0x4f926d))};}return{'diffData':_0x34b6ce,'authorsIds':Array[_0xe2a5('0xd5')](_0x3031d7)};}[_0xe2a5('0xac')](_0x8ab9fc){for(const [,_0x36aff5]of _0x8ab9fc[_0xe2a5('0xf5')]){const _0x15c82d=_0x36aff5['start'][_0xe2a5('0x9a')]()[_0xe2a5('0xa4')](_0x3a6bfc=>_0xe2a5('0x5d')==_0x3a6bfc[_0xe2a5('0xb1')]);for(const _0x36ed0c of _0x15c82d)0x1==_0x36ed0c['childCount']&&_0x36ed0c['getChild'](0x0)['is'](_0xe2a5('0x25'),_0xe2a5('0xf1'))&&_0x36ed0c['getChild'](0x0)['_setAttribute'](_0xe2a5('0x8b'),!0x0);}}[_0xe2a5('0xa7')](_0x44cd51){this[_0xe2a5('0xac')](_0x44cd51);const _0x459273=this[_0xe2a5('0xb9')][_0xe2a5('0x52')][_0xe2a5('0x2b')](_0x44cd51,{}),_0x4ca893=Array[_0xe2a5('0xd5')](_0x459273[_0xe2a5('0x6a')]())[_0xe2a5('0x3e')](_0x14094b=>this[_0xe2a5('0x48')](_0x14094b));return JSON['stringify'](_0x4ca893);}[_0xe2a5('0x48')](_0x21ca76){if(_0x21ca76['is'](_0xe2a5('0xd')))return _0x21ca76[_0xe2a5('0x52')];{const _0x399d38=_0x21ca76;return{'type':Object[_0xe2a5('0x80')](B)[_0xe2a5('0xd6')](_0x3d33f5=>_0x21ca76 instanceof B[_0x3d33f5]),'name':_0x399d38[_0xe2a5('0xb1')],'attributes':Array[_0xe2a5('0xd5')](_0x399d38['getAttributes']()),'children':Array[_0xe2a5('0xd5')](_0x399d38['getChildren']())[_0xe2a5('0x3e')](_0x1e4403=>this[_0xe2a5('0x48')](_0x1e4403))};}}['_markChanges'](_0x4582fe,_0x911ba2,_0x38a7fd,_0x6a6914,_0x25bac3){let _0x2f8098=null,_0x58a37d=null,_0x1b989e=0x0;const _0x754ff1=this['editor'][_0xe2a5('0xf4')];for(let _0x401a22=0x0;_0x401a22<_0x911ba2[_0xe2a5('0x7c')];_0x401a22++){const _0x4298cd=this[_0xe2a5('0x8')](_0x911ba2[_0x401a22]),_0x4fa6e9=_0x911ba2[_0x401a22][_0xe2a5('0x7')]['getAttribute'](_0x4298cd),_0x483ad4=_0x38a7fd[_0xe2a5('0xcb')](_0x4fa6e9),_0x2746e8=_0x401a22==_0x911ba2['length']-0x1;(!_0x2f8098&&_0x483ad4&&(_0x2f8098=_0x483ad4,_0x58a37d=_0x911ba2[_0x401a22]),_0x2f8098&&(!_0x483ad4||_0x483ad4[_0xe2a5('0xd2')]!=_0x2f8098['userId']))&&(_0x58a55b(_0x483ad4,L(_0x58a37d,_0x4582fe,_0x754ff1),L(_0x911ba2[_0x401a22],_0x4582fe,_0x754ff1)),_0x2f8098=_0x483ad4||null,_0x58a37d=_0x483ad4?_0x911ba2[_0x401a22]:null),_0x2f8098&&_0x2746e8&&_0x58a55b(_0x483ad4,L(_0x58a37d,_0x4582fe,_0x754ff1),W(_0x911ba2[_0x401a22],_0x4582fe,_0x754ff1));}function _0x58a55b(_0xcd6871,_0x1ea36f,_0xdd5fce){const _0x253d2d=_0x2f8098[_0xe2a5('0xd2')],_0x5681d6=_0xe2a5('0x92')+_0x6a6914+':'+_0x253d2d+':'+_0x1b989e++,_0x27e23b=_0x754ff1[_0xe2a5('0x7f')](_0x1ea36f,_0xdd5fce);_0x4582fe[_0xe2a5('0xf5')][_0xe2a5('0x38')](_0x5681d6,_0x27e23b),null!==_0x253d2d&&_0x25bac3[_0xe2a5('0x82')](_0x253d2d);}}[_0xe2a5('0x8')](_0x428ce0){switch(_0x428ce0['type']){case _0xe2a5('0x9b'):return'vid_start';case _0xe2a5('0x1f'):return _0xe2a5('0x17');default:return _0xe2a5('0x2a');}}['_fixOperation'](_0x38c715,_0x1e5a80){_0x38c715[_0xe2a5('0x64')]=null;for(const _0x42c77c in _0x38c715){const _0x3a7a50=_0x38c715[_0x42c77c];if(_0x3a7a50 instanceof _0x5da8fb){const _0x3642d5=_0x1e5a80[_0xe2a5('0xcb')](_0x3a7a50[_0xe2a5('0xf8')][_0xe2a5('0xfa')]);_0x38c715[_0x42c77c]=this[_0xe2a5('0xf2')](_0x3a7a50,_0x3642d5);}if(_0x3a7a50 instanceof _0x555221){const _0x44b53b=_0x1e5a80[_0xe2a5('0xcb')](_0x3a7a50[_0xe2a5('0xf8')][_0xe2a5('0xfa')]);_0x38c715[_0x42c77c]=this[_0xe2a5('0x62')](_0x3a7a50,_0x44b53b);}_0xe2a5('0xf8')===_0x42c77c&&(_0x38c715[_0xe2a5('0xf8')]=_0x1e5a80[_0xe2a5('0xcb')](_0x38c715[_0xe2a5('0xf8')]['rootName']));}}['_fixRange'](_0x529daf,_0x134831){return this[_0xe2a5('0xb9')][_0xe2a5('0xf4')][_0xe2a5('0x7f')](this[_0xe2a5('0xf2')](_0x529daf['start'],_0x134831),this['_fixPosition'](_0x529daf[_0xe2a5('0xb')],_0x134831));}[_0xe2a5('0xf2')](_0x5c5e67,_0x1e3b64){return this['editor'][_0xe2a5('0xf4')]['createPositionFromPath'](_0x1e3b64,_0x5c5e67[_0xe2a5('0xc4')],_0x5c5e67['stickiness']);}['_handleInsertOperation'](_0x38ffa5){const _0x122411=this[_0xe2a5('0x51')][_0xe2a5('0xcb')](_0x38ffa5[_0xe2a5('0x29')][_0xe2a5('0xf8')][_0xe2a5('0xfa')]),_0x3c5e07=this[_0xe2a5('0xf2')](_0x38ffa5[_0xe2a5('0x29')],_0x122411),_0x45f7f5=null===_0x38ffa5[_0xe2a5('0xaa')]?null:_0x38ffa5[_0xe2a5('0xaa')]||this[_0xe2a5('0xb9')]['plugins']['get'](_0xe2a5('0x71'))['me']['id'],_0x3ed684=_0x3c5e07[_0xe2a5('0x28')],_0x2510e2=this[_0xe2a5('0x7b')],_0x2d6313=[];for(const _0x41ff5a of _0x38ffa5[_0xe2a5('0x3d')])if(_0x41ff5a['is'](_0xe2a5('0x25')))_0x2d6313['push'](this['_makeIdsRoot'](_0x41ff5a));else for(let _0x184fda=0x0;_0x184fda<_0x41ff5a['offsetSize'];_0x184fda++)_0x2d6313['push'](new _0x51fbf2('$text',{'vid':this['_revisionId']++}));const _0x5c0baf=this[_0xe2a5('0x7b')];for(let _0x497082=_0x2510e2;_0x497082<_0x5c0baf;_0x497082++)this['_touched'][_0xe2a5('0x38')](_0x497082,{'userId':_0x45f7f5});_0x3ed684['_insertChild'](_0x3c5e07[_0xe2a5('0x46')],_0x2d6313);}[_0xe2a5('0x3f')](_0x411650){(_0x411650=this[_0xe2a5('0xef')](_0x411650,this[_0xe2a5('0x51')]))['_execute']();const _0xf4e676=null===_0x411650['_authorId']?null:_0x411650['_authorId']||this['editor'][_0xe2a5('0xa2')][_0xe2a5('0xcb')](_0xe2a5('0x71'))['me']['id'],_0x551b7e=_0x411650[_0xe2a5('0xad')](),_0x584d97=_0x551b7e[_0xe2a5('0x28')],_0x515f91=_0x551b7e['offset'];!function _0x1aa431(_0x47a146,_0x586129,_0x1a04ed,_0xe2e05f){for(let _0x2804e2=_0x1a04ed;_0x2804e2<_0xe2e05f;_0x2804e2++){const _0x5bc5e4=_0x586129[_0xe2a5('0x45')](_0x2804e2);_0x5bc5e4['is']('element',_0xe2a5('0xd'))?_0x47a146[_0xe2a5('0x38')](_0x5bc5e4[_0xe2a5('0xdd')](_0xe2a5('0x2a')),{'userId':_0xf4e676}):(_0x47a146[_0xe2a5('0x38')](_0x5bc5e4[_0xe2a5('0xdd')](_0xe2a5('0x40')),{'userId':_0xf4e676}),_0x1aa431(_0x47a146,_0x5bc5e4,0x0,_0x5bc5e4[_0xe2a5('0x8d')]),_0x47a146['set'](_0x5bc5e4['getAttribute'](_0xe2a5('0x17')),{'userId':_0xf4e676}));}}(this['_touched'],_0x584d97,_0x515f91,_0x515f91+_0x411650[_0xe2a5('0x73')]);}['_handleMergeOperation'](_0x332e09){const _0x15468d=null===(_0x332e09=this[_0xe2a5('0xef')](_0x332e09,this[_0xe2a5('0x51')]))[_0xe2a5('0xaa')]?null:_0x332e09[_0xe2a5('0xaa')]||this[_0xe2a5('0xb9')][_0xe2a5('0xa2')][_0xe2a5('0xcb')]('Users')['me']['id'],_0x36653e=_0x332e09['targetPosition'][_0xe2a5('0x28')],_0xda3592=_0x332e09['sourcePosition'][_0xe2a5('0x28')],_0x3587ed=_0x36653e[_0xe2a5('0xdd')]('vid_end'),_0x336817=_0xda3592[_0xe2a5('0xdd')](_0xe2a5('0x40'));_0x36653e[_0xe2a5('0x59')](_0xe2a5('0x17'),_0xda3592[_0xe2a5('0xdd')](_0xe2a5('0x17'))),_0xda3592[_0xe2a5('0x59')]('vid_end',_0x3587ed),this['_touched'][_0xe2a5('0x38')](_0x336817,{'userId':_0x15468d}),this['_touched']['set'](_0x3587ed,{'userId':_0x15468d}),_0x332e09[_0xe2a5('0x66')]();}[_0xe2a5('0x44')](_0x20b7a8){const _0x17e7ff=null===(_0x20b7a8=this[_0xe2a5('0xef')](_0x20b7a8,this['_idsRoots']))[_0xe2a5('0xaa')]?null:_0x20b7a8[_0xe2a5('0xaa')]||this[_0xe2a5('0xb9')][_0xe2a5('0xa2')]['get']('Users')['me']['id'],_0x4a8263=_0x20b7a8[_0xe2a5('0xcf')],_0x17cbe9=_0x20b7a8[_0xe2a5('0xd9')][_0xe2a5('0x28')];_0x20b7a8['_execute']();const _0x1c5968=_0x17cbe9['getAttribute'](_0xe2a5('0x17')),_0x4e6bc6=_0x20b7a8[_0xe2a5('0x9')][_0xe2a5('0x5a')];if(_0x4a8263){const _0x4c9828=_0x4e6bc6['getAttribute'](_0xe2a5('0x17')),_0x95493a=_0x17cbe9[_0xe2a5('0xdd')]('vid_end');_0x17cbe9[_0xe2a5('0x59')](_0xe2a5('0x17'),_0x4c9828),_0x4e6bc6[_0xe2a5('0x59')](_0xe2a5('0x17'),_0x95493a),this[_0xe2a5('0xaf')][_0xe2a5('0x38')](_0x17cbe9[_0xe2a5('0xdd')](_0xe2a5('0x17')),{'userId':_0x17e7ff}),this[_0xe2a5('0xaf')][_0xe2a5('0x38')](_0x4e6bc6[_0xe2a5('0xdd')]('vid_start'),{'userId':_0x17e7ff});}else{const _0x172048=this[_0xe2a5('0x7b')]++,_0x3721e4=this[_0xe2a5('0x7b')]++;_0x17cbe9[_0xe2a5('0x59')](_0xe2a5('0x17'),_0x172048),_0x4e6bc6['_setAttribute'](_0xe2a5('0x40'),_0x3721e4),_0x4e6bc6['_setAttribute']('vid_end',_0x1c5968),this[_0xe2a5('0xaf')][_0xe2a5('0x38')](_0x172048,{'userId':_0x17e7ff}),this[_0xe2a5('0xaf')]['set'](_0x3721e4,{'userId':_0x17e7ff});}}[_0xe2a5('0x42')](_0xc34025){if(!_0xc34025[_0xe2a5('0x31')])return;const _0x3bbf10=(_0xc34025=this[_0xe2a5('0xef')](_0xc34025,this[_0xe2a5('0x6f')]))[_0xe2a5('0x12')]?_0xc34025['oldRange']['root']:null,_0x5e14e7=_0xc34025['newRange']?_0xc34025[_0xe2a5('0xee')]['root']:null;_0x3bbf10&&this[_0xe2a5('0xc9')][_0xe2a5('0x7e')](_0xc34025[_0xe2a5('0xb1')]),_0x5e14e7&&this[_0xe2a5('0xc9')][_0xe2a5('0x38')](_0xc34025[_0xe2a5('0xb1')],_0xc34025['newRange'][_0xe2a5('0x93')]());const _0x133659=null===_0xc34025[_0xe2a5('0xaa')]?null:_0xc34025[_0xe2a5('0xaa')]||this[_0xe2a5('0xb9')][_0xe2a5('0xa2')][_0xe2a5('0xcb')](_0xe2a5('0x71'))['me']['id'],_0x1ad2fd=_0xc34025[_0xe2a5('0xb1')];if(!this['_touchedMarkers'][_0xe2a5('0x5b')](_0x1ad2fd))return void this['_touchedMarkers'][_0xe2a5('0x38')](_0x1ad2fd,{'range':_0xc34025['oldRange'],'userId':_0x133659});const _0x4c887d=this[_0xe2a5('0xa')]['get'](_0x1ad2fd),_0x40d0d3=_0x4c887d['range'],_0x13f20d=_0xc34025[_0xe2a5('0xee')];null==_0x40d0d3&&null==_0x13f20d||_0x40d0d3&&_0x13f20d&&_0x40d0d3['isEqual'](_0x13f20d)?this[_0xe2a5('0xa')][_0xe2a5('0x7e')](_0xc34025[_0xe2a5('0xb1')]):_0x4c887d[_0xe2a5('0xd2')]=_0x133659;}[_0xe2a5('0x8c')](_0x2c62ab,_0x1e493a){this['_diffRoots']['has'](_0x2c62ab[_0xe2a5('0xfa')])?this[_0xe2a5('0x6f')][_0xe2a5('0xcb')](_0x2c62ab[_0xe2a5('0xfa')])[_0xe2a5('0x87')]=_0x2c62ab[_0xe2a5('0x6b')]:(this['_diffRoots'][_0xe2a5('0x38')](_0x2c62ab[_0xe2a5('0xfa')],G(_0x2c62ab[_0xe2a5('0xfa')],!0x0)),this[_0xe2a5('0xfe')][_0xe2a5('0x38')](_0x2c62ab[_0xe2a5('0xfa')],{}),_0x1e493a&&this['_idsRoots'][_0xe2a5('0x38')](_0x2c62ab[_0xe2a5('0xfa')],G(_0x2c62ab[_0xe2a5('0xfa')],!0x0)));const _0x6b7bc7=null===_0x2c62ab[_0xe2a5('0xaa')]?null:_0x2c62ab['_authorId']||this[_0xe2a5('0xb9')][_0xe2a5('0xa2')][_0xe2a5('0xcb')]('Users')['me']['id'],_0x3a2d3c=this[_0xe2a5('0x67')][_0xe2a5('0xcb')](_0x2c62ab[_0xe2a5('0xfa')]);_0x3a2d3c&&_0x3a2d3c[_0xe2a5('0xd2')]===_0x6b7bc7?this[_0xe2a5('0x67')][_0xe2a5('0x7e')](_0x2c62ab['rootName']):this[_0xe2a5('0x67')][_0xe2a5('0x38')](_0x2c62ab['rootName'],{'userId':_0x6b7bc7,'isAttached':_0x2c62ab[_0xe2a5('0x6b')]});}[_0xe2a5('0x79')](_0x30546c){const _0x400de1=this['_diffRootsAttributes'][_0xe2a5('0xcb')](_0x30546c[_0xe2a5('0xf8')][_0xe2a5('0xfa')]);null===_0x30546c[_0xe2a5('0xf3')]?delete _0x400de1[_0x30546c[_0xe2a5('0xbe')]]:_0x400de1[_0x30546c[_0xe2a5('0xbe')]]=_0x30546c[_0xe2a5('0xf3')];}}function q(_0x460d3f){const _0x343c8a=G(_0x460d3f[_0xe2a5('0xfa')],_0x460d3f['isAttached']());for(const _0x104d22 of _0x460d3f[_0xe2a5('0x6a')]()){const _0x72d16a=_0x104d22[_0xe2a5('0xe2')](!0x0);_0x343c8a[_0xe2a5('0x86')](_0x72d16a);}return _0x343c8a;}function G(_0x4614db,_0x10bcd9=!0x0){const _0x3e203c=new _0x291270();return _0x3e203c[_0xe2a5('0xfa')]=_0x4614db,_0x3e203c[_0xe2a5('0x87')]=_0x10bcd9,_0x3e203c[_0xe2a5('0xb0')]=()=>_0x3e203c[_0xe2a5('0x87')],_0x3e203c;}function L(_0x351f61,_0x3b0e1f,_0x261318){const _0x3c566c=_0xe2a5('0x1f')==_0x351f61['type']?_0x261318[_0xe2a5('0xdf')](_0x351f61[_0xe2a5('0x7')],_0xe2a5('0xb')):_0x261318[_0xe2a5('0x1')](_0x351f61[_0xe2a5('0x7')]);return _0x261318['createPositionFromPath'](_0x3b0e1f,_0x3c566c[_0xe2a5('0xc4')],_0x3c566c[_0xe2a5('0x57')]);}function W(_0x3ad886,_0x4acbcc,_0x5d1fac){const _0x2c0930=_0xe2a5('0x9b')==_0x3ad886['type']?_0x5d1fac[_0xe2a5('0xdf')](_0x3ad886[_0xe2a5('0x7')],0x0):_0x5d1fac[_0xe2a5('0xa1')](_0x3ad886[_0xe2a5('0x7')]);return _0x5d1fac[_0xe2a5('0x21')](_0x4acbcc,_0x2c0930[_0xe2a5('0xc4')],_0x2c0930[_0xe2a5('0x57')]);}
|