@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231205.0 → 0.0.0-nightly-20231206.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 _0x1d88=['_diffRoots','config','_idsRoots','root','_handleInsertOperation','_generateTape','getLatestVersion','_savedMetaData','sourcePosition','getAncestors','_markChanges','deletions','_handleOperation','string','$text','_baseIdsRoots','_initialRevisionId','_bufferUpdate','_baseRootsAttributes','_handleMergeOperation','revision-end','delete','find','insertions','isAdd','editing','_authorId','default','getChild','_isInit','conversion','getRevisionDocumentData','nodeAfter','move','fromVersion','data','_prepareViewToSave','attributesAfter','document','_removePendingAction','_getFromVersion','attributes','saveRevision','changeRootAttribute','adapter','get','end','roots','howMany','ready','useFillerType','_clone','size','_bufferedUpdates','toVersion','newValue','_makeModelFromViewString','history','createPositionBefore','_transformMarkers','detachRoot','repository','offset','_fixPosition','$graveyard','baseVersion','deletion','updateRevisions','_makeIdsRoot','_handleRootAttributeOperation','model','start','stickiness','getRootNames','toModel','isEnabled','stringify','_removeMetaData','getCurrentRevisionId','plugins','getAttributes','NEGATIVE_INFINITY','_getPreviousFrom','keepParagraph','isEqual','_getViewJson','element','revision','_fixOperation','_execute','_baseRoots','markers','init','split','_setAttribute','_createInitialRevision','vid','_isPendingUpdate','_isAttached','createRevision','_touched','_lastTo','reverse','childCount','then','_appendChild','getWalker','elementEnd','insertion','_findInsertionIndex','_touchedMarkers','insert','_operations','_removeRevisionMarkers','tableCell','locale','processor','getIndex','view','collaboration.channelId','_lastFrom','merge','_loadState','vid_end','attachChange','_insertChild','elementStart','map','has','add','sort','_makeRevision','oldRange','_revisionId','slice','finally','rootName','key','_applyOperations','createRange','_addPendingAction','path','dataToMarker','define','getMovedRangeStart','_saveMetaData','_replaceEditorDataWithRevisionData','dataDowncast','getRoot','currentRevision','getChildren','splitPosition','addRootAttribute','revisionHistory.resumeUnsavedRevision','offsetSize','afterInit','set','editor-initial-data-replaced-with-revision-data','_getVidAttributeName','_source','authorsIds','Users','nodes','initial','authors','some','graveyardPosition','_getState','startsWith','marker','_reset','filter','range','type','_markers','addRevisionData','text','markerToData','revision:','item','_calculateMetaData','getAttribute','_revisionDataBuilder','buildRevisionData','creator','_handleSplitOperation','_diffRootsAttributes','trim','fromEntries','requires','getRevisions','_setConversion','parent','source','_continueCurrentRevision','getUser','_startingVersion','_copyMarkers','clear','_handleMoveOperation','creatorId','length','position','from','loadState','remove','pluginName','addRevision','shift','addRoot','max','getRange','push','_createCurrentRevision','insertionPosition','reInit','_getBaseVids','createRangeIn','createdAt','Initial\x20revision','createPositionFromPath','forEach','RevisionsRepository','_pendingAction','previousPosition','_touchedRoots','values','resolve','isAttached','_loadedStateData','version','for','diffData','_handleMarkerOperation','_fixRange','data-revision-','createPositionAt','setRevisionData','keys','userId','getOperation','attributesBefore','clone','editor','_loadRevisionData','PendingActions','_cloneOperation','sendBufferedUpdates','getData','children','vid_start','getNodeByPath','name','RevisionTracker','parse','update','_startingRevisionId','upcast','getRevision','_handleRootOperation','newRange','_update','getRevisionRootsAttributes'];(function(_0x1552af,_0x1d8875){const _0x2df0b9=function(_0x542142){while(--_0x542142){_0x1552af['push'](_0x1552af['shift']());}};_0x2df0b9(++_0x1d8875);}(_0x1d88,0xbd));const _0x2df0=function(_0x1552af,_0x1d8875){_0x1552af=_0x1552af-0x0;let _0x2df0b9=_0x1d88[_0x1552af];return _0x2df0b9;};import{Users as _0x529845}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x3476c8,PendingActions as _0x5322a1}from'ckeditor5/src/core';import{logWarning as _0x5ae175,uid as _0x15e12a}from'ckeditor5/src/utils';import{Position as _0x526c47,Range as _0x33e6e5,Element as _0x772d8e,DocumentFragment as _0x55a33d,ViewText as _0x270442,ViewElement as _0x5976af,ViewContainerElement as _0x11bc13,ViewAttributeElement as _0x162538,ViewEmptyElement as _0x6003f4,ViewRawElement as _0x38eb1f,ViewUIElement as _0x229107,ViewDocumentFragment as _0x305f0e}from'ckeditor5/src/engine';import _0x3ac29a from'./revisionsrepository';import{getTranslation as _0x5e4f09}from'./utils/common-translations';import{cloneDeep as _0xb6b1d8,isEqual as _0x442f2f}from'lodash-es';const B={'c':_0x11bc13,'a':_0x162538,'e':_0x6003f4,'r':_0x38eb1f,'u':_0x229107};export default class l extends _0x3476c8{static get[_0x2df0('0x11')](){return _0x2df0('0x40');}static get[_0x2df0('0x0')](){return[_0x529845,_0x3ac29a,_0x5322a1];}constructor(_0x5758b9){super(_0x5758b9),this[_0x2df0('0x76')]=null,this[_0x2df0('0xdf')]=null,this[_0x2df0('0x100')]=new H(this[_0x2df0('0x36')]),this['_initialRevisionId']=this[_0x2df0('0x36')][_0x2df0('0x4b')][_0x2df0('0x77')](_0x2df0('0xc1'))||_0x2df0('0xed'),this['_bufferedUpdates']=new Map(),this[_0x2df0('0x28')]=null;const _0x1204b0=_0x15e12a();this[_0x2df0('0xe9')]={'history':this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0x83')],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document'][_0x2df0('0x29')]),'getCurrentRevisionId':()=>_0x1204b0},this[_0x2df0('0xe6')]('isReady',!0x1),this[_0x2df0('0xe6')](_0x2df0('0x95'),!0x0),this['set']('_isPendingUpdate',!0x1),this[_0x2df0('0x36')][_0x2df0('0x4b')][_0x2df0('0xd9')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x2df0('0x36')][_0x2df0('0x68')][_0x2df0('0x2a')](_0x2df0('0x44'))[_0x2df0('0xd8')]({'view':_0x2df0('0xa1')});}[_0x2df0('0xa6')](){this['repository']=this['editor'][_0x2df0('0x99')][_0x2df0('0x77')](_0x2df0('0x21')),this[_0x2df0('0x2')](),this[_0x2df0('0x36')][_0x2df0('0x6d')]['on'](_0x2df0('0x7b'),()=>{const _0x534ef9=this[_0x2df0('0x87')][_0x2df0('0x45')](0x0),_0x35c0e0=_0x534ef9&&null===_0x534ef9[_0x2df0('0x102')]?_0x534ef9:null;if(this['_continueCurrentRevision']=!!_0x35c0e0&&this[_0x2df0('0x36')]['config'][_0x2df0('0x77')](_0x2df0('0xe3')),this[_0x2df0('0x36')]['plugins'][_0x2df0('0xca')]('RealTimeCollaborationClient')){const _0x5345e0=this['_source']['getCurrentRevisionId'](),_0x3f0a57=this['repository'][_0x2df0('0x45')](_0x5345e0);if(_0x3f0a57)this['_startingVersion']=_0x3f0a57[_0x2df0('0x6c')],this['_continueCurrentRevision']=!0x1;else{const _0x2f0f2c=this['_source'][_0x2df0('0x83')][_0x2df0('0xba')][_0x2df0('0x60')](_0x27f265=>!_0x27f265[_0x2df0('0x67')]),_0x2910eb=_0x2f0f2c?_0x2f0f2c['baseVersion']:this['_source']['history'][_0x2df0('0x29')];_0x534ef9?(_0x534ef9[_0x2df0('0x80')]<_0x2910eb&&_0x534ef9[_0x2df0('0x48')]({'toVersion':_0x2910eb}),this[_0x2df0('0x5')]?(this[_0x2df0('0xe9')][_0x2df0('0x98')]=()=>_0x35c0e0['id'],this['_startingVersion']=_0x35c0e0[_0x2df0('0x6c')]):(this[_0x2df0('0x7')]=_0x534ef9[_0x2df0('0x80')],this['_continueCurrentRevision']=!0x1)):(this[_0x2df0('0x7')]=_0x2910eb,this[_0x2df0('0x5')]=!0x1);}}else _0x35c0e0&&(this['editor'][_0x2df0('0x90')]['document'][_0x2df0('0x83')][_0x2df0('0x29')]=Math[_0x2df0('0x15')](_0x35c0e0[_0x2df0('0x80')],this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0x83')][_0x2df0('0x29')]),_0x35c0e0[_0x2df0('0x6c')]===_0x35c0e0[_0x2df0('0x80')]?(0x0!==_0x35c0e0[_0x2df0('0x6c')]&&(this[_0x2df0('0xe9')][_0x2df0('0x98')]=()=>_0x35c0e0['id']),this[_0x2df0('0x5')]=!0x1):this[_0x2df0('0x5')]&&(this[_0x2df0('0xe9')]['getCurrentRevisionId']=()=>_0x35c0e0['id'],this['_startingVersion']=_0x35c0e0['fromVersion'])),this[_0x2df0('0x5')]||(this['_startingVersion']=this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0x29')]);this['_revisionDataBuilder'][_0x2df0('0xa6')](this['_source'][_0x2df0('0x83')]),this[_0x2df0('0xa9')](this['_startingVersion']),this[_0x2df0('0x18')](this[_0x2df0('0x7')]),this['adapter']&&this[_0x2df0('0x3a')]();}),this['bind']('isReady')['to'](this,_0x2df0('0xab'),_0x418961=>!_0x418961);}async[_0x2df0('0xe5')](){if(this[_0x2df0('0x87')]['length']>0x0){const _0x539d13=this[_0x2df0('0x87')][_0x2df0('0x45')](0x0),_0x4cd59f=await this[_0x2df0('0x69')](_0x539d13),_0x59e92e=await this[_0x2df0('0x49')](_0x539d13);this[_0x2df0('0xdc')](_0x4cd59f,_0x59e92e);}}['setSource'](_0x3e70fd){this[_0x2df0('0xe9')]=_0x3e70fd;}async[_0x2df0('0x42')](){const _0x5878c1=await this['_source'][_0x2df0('0x50')]();if(_0x5878c1>this['currentRevision'][_0x2df0('0x80')]){await this['_loadState']();const _0x2848a5=this[_0x2df0('0x101')]({'revision':this[_0x2df0('0xdf')],'to':_0x5878c1});_0x2848a5[_0x2df0('0xee')]=_0x2848a5[_0x2df0('0xea')][_0x2df0('0xc9')](_0x46c7b0=>this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')](_0x2df0('0xeb'))[_0x2df0('0x6')](_0x46c7b0)),this['currentRevision'][_0x2df0('0x48')](_0x2848a5);}}async[_0x2df0('0xc4')](){this['_continueCurrentRevision']&&!this[_0x2df0('0x28')]&&(await this[_0x2df0('0x37')](this['currentRevision']),this[_0x2df0('0x100')][_0x2df0('0xf')](this[_0x2df0('0xdf')]),this[_0x2df0('0x28')]={'fromVersion':this['currentRevision'][_0x2df0('0x6c')],'authors':this['currentRevision'][_0x2df0('0xee')][_0x2df0('0xd0')]()});}async[_0x2df0('0x74')](_0x3e3b7b={},_0x25ea50=null){const _0xeec268=[];await this[_0x2df0('0xc4')](),this[_0x2df0('0x5')]=!0x1,_0x25ea50>this[_0x2df0('0xdf')][_0x2df0('0x80')]&&(_0x25ea50=null),null===_0x25ea50&&(_0x25ea50=await this[_0x2df0('0xe9')][_0x2df0('0x50')]());const _0x33c69f=this[_0x2df0('0x72')](_0x25ea50),_0x9ced0d=this[_0x2df0('0x101')]({'from':_0x33c69f,'to':_0x25ea50});if(this[_0x2df0('0xdf')]['toVersion']<_0x25ea50){const _0x2196e7=this[_0x2df0('0x101')]({'revision':this[_0x2df0('0xdf')],'from':_0x25ea50,'to':_0x25ea50});_0x2196e7['authors']=[],_0x2196e7[_0x2df0('0xea')]=[],_0x2196e7['id']=this[_0x2df0('0xdf')]['id'],this[_0x2df0('0xdf')][_0x2df0('0x48')](_0x2196e7,!0x0),delete _0x2196e7[_0x2df0('0xee')],_0xeec268[_0x2df0('0x17')](_0x2196e7);}_0x3e3b7b[_0x2df0('0xb')]=this['editor'][_0x2df0('0x99')][_0x2df0('0x77')]('Users')['me']['id'],_0x3e3b7b[_0x2df0('0x3f')]=_0x3e3b7b[_0x2df0('0x3f')]||null,_0x3e3b7b['id']=_0x3e3b7b['id']||_0x15e12a(),_0x3e3b7b={..._0x3e3b7b,..._0x9ced0d};const _0xa38bd=this[_0x2df0('0xf9')](_0x3e3b7b);_0xeec268[_0x2df0('0x17')](_0x3e3b7b);const _0x141c87=this[_0x2df0('0x87')][_0x2df0('0xbf')](_0xa38bd);if(0x0!==_0x141c87){const _0x474905=this[_0x2df0('0x87')][_0x2df0('0x45')](_0x141c87-0x1);if(_0x474905[_0x2df0('0x6c')]!==_0x25ea50){const _0x5a1fdc=this[_0x2df0('0x100')][_0x2df0('0x3b')](_0x25ea50,_0x474905['toVersion']),_0x1682e2={'id':_0x474905['id'],'diffData':_0x5a1fdc[_0x2df0('0x2b')],'authorsIds':_0x5a1fdc[_0x2df0('0xea')],'authors':_0x5a1fdc[_0x2df0('0xea')][_0x2df0('0xc9')](_0x532e89=>this[_0x2df0('0x36')][_0x2df0('0x99')]['get'](_0x2df0('0xeb'))[_0x2df0('0x6')](_0x532e89)),'fromVersion':_0x25ea50};_0x474905===this[_0x2df0('0xdf')]&&(_0x1682e2[_0x2df0('0x1d')]=new Date(_0x3e3b7b[_0x2df0('0x1d')]['getTime']()+0xa)),_0x474905[_0x2df0('0x48')](_0x1682e2,!0x0),delete _0x1682e2[_0x2df0('0xee')],_0xeec268[_0x2df0('0x17')](_0x1682e2);}}if(this[_0x2df0('0x76')]){for(const _0x473071 of _0xeec268)this[_0x2df0('0x5b')](_0x473071['id'],_0x473071,!0x0);this[_0x2df0('0x3a')]();}return _0xa38bd;}['addRevisionData'](_0xc09c48){const _0x5650c3=this[_0x2df0('0x87')][_0x2df0('0xad')](_0xc09c48);return this[_0x2df0('0x76')]&&_0x5650c3['on'](_0x2df0('0x48'),(_0x5198a6,_0x5354aa,_0x28d22b)=>{_0x28d22b||(this[_0x2df0('0x5b')](_0x5354aa['id'],_0x5354aa,!0x0),this['sendBufferedUpdates']());}),this[_0x2df0('0x87')][_0x2df0('0x12')](_0x5650c3,this[_0x2df0('0xb7')](_0x5650c3)),_0x5650c3;}async[_0x2df0('0x69')](_0x13554b){await this[_0x2df0('0x37')](_0x13554b);const _0xd4ffbf={};for(const _0x4cf3a4 in _0x13554b['diffData']){if(_0x13554b[_0x2df0('0x2b')][_0x4cf3a4][_0x2df0('0xc6')]&&!_0x13554b[_0x2df0('0x2b')][_0x4cf3a4][_0x2df0('0xc6')][_0x2df0('0x27')])continue;const _0x4f20f2=this[_0x2df0('0xbb')](JSON[_0x2df0('0x41')](_0x13554b['diffData'][_0x4cf3a4][_0x2df0('0x61')])),_0x23bf43=this[_0x2df0('0x36')][_0x2df0('0x63')][_0x2df0('0xc0')][_0x2df0('0x70')],_0x605a59=new _0x305f0e(_0x23bf43,_0x4f20f2[_0x2df0('0xc9')](_0x29d8c4=>J(_0x29d8c4,this[_0x2df0('0x36')])));this['editor'][_0x2df0('0x6d')][_0x2df0('0xbe')][_0x2df0('0x7c')]('marked'),_0xd4ffbf[_0x4cf3a4]=this[_0x2df0('0x36')]['data'][_0x2df0('0xbe')]['toData'](_0x605a59),this[_0x2df0('0x36')][_0x2df0('0x6d')][_0x2df0('0xbe')][_0x2df0('0x7c')](_0x2df0('0x65'));}return _0xd4ffbf;}async['getRevisionRootsAttributes'](_0x3673ac){await this[_0x2df0('0x37')](_0x3673ac);const _0x574b2b={};for(const _0x1487a1 in _0x3673ac[_0x2df0('0x2b')])_0x3673ac['diffData'][_0x1487a1][_0x2df0('0xc6')]&&!_0x3673ac[_0x2df0('0x2b')][_0x1487a1][_0x2df0('0xc6')][_0x2df0('0x27')]||(_0x574b2b[_0x1487a1]=_0x3673ac[_0x2df0('0x2b')][_0x1487a1][_0x2df0('0x6f')]||{});return _0x574b2b;}[_0x2df0('0x3a')](){if(0x0===this[_0x2df0('0x7f')]['size'])return;if(this[_0x2df0('0xab')])return;let _0x52ad07=Array['from'](this[_0x2df0('0x7f')][_0x2df0('0x25')]());this[_0x2df0('0x7f')][_0x2df0('0x9')]();for(let _0x4afbde=0x0;_0x4afbde<_0x52ad07['length'];_0x4afbde++){const _0x108623=_0x52ad07[_0x4afbde];let _0x153310=!0x1;for(const _0x7dd404 of Object[_0x2df0('0x31')](_0x108623))void 0x0===_0x108623[_0x7dd404]?delete _0x108623[_0x7dd404]:'id'!==_0x7dd404&&(_0x153310=!0x0);_0x153310||(_0x52ad07[_0x4afbde]=null);}if(_0x52ad07=_0x52ad07['filter'](_0x4ed230=>null!==_0x4ed230),!_0x52ad07[_0x2df0('0xc')])return;for(let _0x536b09=0x0;_0x536b09<_0x52ad07['length'];_0x536b09++){const _0x4e8946=_0x52ad07[_0x536b09];void 0x0!==_0x4e8946[_0x2df0('0x6c')]&&void 0x0===_0x4e8946[_0x2df0('0x80')]&&(_0x4e8946['toVersion']=this[_0x2df0('0x87')]['getRevision'](_0x4e8946['id'])[_0x2df0('0x80')]),void 0x0!==_0x4e8946[_0x2df0('0x80')]&&void 0x0===_0x4e8946['fromVersion']&&(_0x4e8946['fromVersion']=this[_0x2df0('0x87')][_0x2df0('0x45')](_0x4e8946['id'])['fromVersion']);}const _0x37f078=this[_0x2df0('0x36')][_0x2df0('0x4b')][_0x2df0('0x77')](_0x2df0('0xc1'));this[_0x2df0('0xab')]=!0x0,this[_0x2df0('0xd6')](),this[_0x2df0('0x76')][_0x2df0('0x8d')](_0x52ad07,_0x37f078)[_0x2df0('0xd1')](()=>{this[_0x2df0('0xab')]=!0x1;})[_0x2df0('0xb2')](_0x54ed82=>{if(_0x54ed82)for(const _0x100eef of _0x54ed82)this['setRevisionData']({'id':_0x100eef['id'],'createdAt':_0x100eef[_0x2df0('0x1d')]});this[_0x2df0('0x71')](),this['sendBufferedUpdates']();});}[_0x2df0('0xdc')](_0x265060,_0x22d6d6){let _0x5de4cd=this[_0x2df0('0x36')][_0x2df0('0x4b')][_0x2df0('0x77')]('initialData'),_0xf0466d=this['editor'][_0x2df0('0x4b')][_0x2df0('0x77')]('rootsAttributes');if(void 0x0===_0x5de4cd){_0x5de4cd={};for(const _0xc67b8 of this[_0x2df0('0x36')]['model'][_0x2df0('0x70')][_0x2df0('0x93')]())_0x5de4cd[_0xc67b8]='';}if(_0x2df0('0x57')==typeof _0x5de4cd&&(_0x5de4cd={'main':_0x5de4cd}),void 0x0===_0xf0466d){_0xf0466d={};for(const _0x872882 of this['editor'][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0x93')]())_0xf0466d[_0x872882]={};}let _0x454dd0=!0x1;const _0xb63236=Object[_0x2df0('0x31')](_0x5de4cd),_0x4f2a38=Object[_0x2df0('0x31')](_0x265060);for(const _0x20382d of _0xb63236){if(_0x5de4cd[_0x20382d]!==_0x265060[_0x20382d]&&''!==_0x5de4cd[_0x20382d][_0x2df0('0x105')]()){_0x454dd0=!0x0;break;}if(!_0x442f2f(_0xf0466d[_0x20382d],_0x22d6d6[_0x20382d])&&Object['keys'](_0xf0466d[_0x20382d])[_0x2df0('0xc')]>0x0){_0x454dd0=!0x0;break;}}_0x454dd0||(_0x454dd0=_0x4f2a38[_0x2df0('0xef')](_0x47fda4=>!this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x70')]['getRoot'](_0x47fda4))),_0x454dd0&&_0x5ae175(_0x2df0('0xe7'),{'editorData':_0x5de4cd,'editorRootsAttributes':_0xf0466d,'revisionData':_0x265060,'revisionRootsAttributes':_0x22d6d6}),this['editor'][_0x2df0('0x4b')]['set']('initialData',_0x265060),this[_0x2df0('0x36')]['config']['set']('rootsAttributes',_0x22d6d6);}[_0x2df0('0xd6')](){if(!this[_0x2df0('0x22')]){const _0x26cfa7=this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')](_0x2df0('0x38'));this['_pendingAction']=_0x26cfa7[_0x2df0('0xcb')](_0x5e4f09(this[_0x2df0('0x36')][_0x2df0('0xbd')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x2df0('0x71')](){this['_pendingAction']&&(this[_0x2df0('0x36')][_0x2df0('0x99')]['get'](_0x2df0('0x38'))[_0x2df0('0x10')](this[_0x2df0('0x22')]),this['_pendingAction']=null);}[_0x2df0('0xb7')](_0x1a9c1e){const _0x560372=this[_0x2df0('0x87')][_0x2df0('0x1')]();_0x560372['reverse']();let _0xf91ae1=0x0;for(;_0xf91ae1<_0x560372[_0x2df0('0xc')];){const _0x53a2ab=_0x560372[_0xf91ae1];if(_0x53a2ab===this[_0x2df0('0xdf')]){_0xf91ae1++;continue;}if(_0x53a2ab['id']===this['_initialRevisionId'])break;const _0x5690cf=_0x1a9c1e[_0x2df0('0x80')]-_0x53a2ab[_0x2df0('0x80')]||_0x1a9c1e[_0x2df0('0x6c')]-_0x53a2ab[_0x2df0('0x6c')];if(_0x5690cf>0x0)break;if(_0x5690cf<0x0)_0xf91ae1++;else{if(!_0x1a9c1e['creator']&&_0x53a2ab[_0x2df0('0x102')])break;if(_0x53a2ab[_0x2df0('0x102')]||!_0x1a9c1e['creator']){if(_0x1a9c1e['createdAt']>_0x53a2ab['createdAt'])break;_0xf91ae1++;}else _0xf91ae1++;}}return _0xf91ae1;}[_0x2df0('0x30')](_0x37d2e7){const _0x446ea4=this['repository'][_0x2df0('0x45')](_0x37d2e7['id']);if(_0x37d2e7[_0x2df0('0x1d')]&&(_0x37d2e7[_0x2df0('0x1d')]=new Date(_0x37d2e7[_0x2df0('0x1d')])),_0x37d2e7[_0x2df0('0xea')]){const _0x522f7f=this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')]('Users');_0x37d2e7[_0x2df0('0xee')]=_0x37d2e7[_0x2df0('0xea')]['map'](_0x41fcf5=>_0x522f7f[_0x2df0('0x6')](_0x41fcf5));}_0x446ea4['_update'](_0x37d2e7,!0x0);}[_0x2df0('0x101')]({revision:_0x122aee=null,from:_0x4e815a=null,to:_0x17a316=null}){_0x4e815a=null!==_0x4e815a?_0x4e815a:_0x122aee[_0x2df0('0x6c')],_0x17a316=null!==_0x17a316?_0x17a316:_0x122aee[_0x2df0('0x80')];const _0x794364=this[_0x2df0('0x100')][_0x2df0('0x3b')](_0x4e815a,_0x17a316),_0x3f08e2={'diffData':_0x794364[_0x2df0('0x2b')],'authorsIds':_0x794364['authorsIds'],'fromVersion':_0x4e815a,'toVersion':_0x17a316};if(!_0x122aee||_0x17a316!==_0x122aee[_0x2df0('0x80')]){const _0x7722a3=_0x17a316-0x1,_0x43e2c1=this[_0x2df0('0xe9')][_0x2df0('0x83')][_0x2df0('0x33')](_0x7722a3);_0x3f08e2[_0x2df0('0x1d')]=_0x43e2c1&&_0x43e2c1[_0x2df0('0x1d')]||new Date();}if(this[_0x2df0('0x28')]&&_0x4e815a===this[_0x2df0('0x28')][_0x2df0('0x6c')])for(const _0x4fdc06 of this['_loadedStateData'][_0x2df0('0xee')])_0x3f08e2['authorsIds']['includes'](_0x4fdc06['id'])||_0x3f08e2[_0x2df0('0xea')][_0x2df0('0x17')](_0x4fdc06['id']);return _0x3f08e2;}[_0x2df0('0x37')](_0x38c93f){if(!_0x38c93f||_0x38c93f['diffData'])return Promise[_0x2df0('0x26')]();{const _0x3ca9d8=this[_0x2df0('0x36')][_0x2df0('0x4b')][_0x2df0('0x77')]('collaboration.channelId');return this[_0x2df0('0x76')][_0x2df0('0x45')]({'channelId':_0x3ca9d8,'revisionId':_0x38c93f['id']})[_0x2df0('0xb2')](_0x3e1c4e=>{_0x38c93f[_0x2df0('0x2b')]=_0x3e1c4e[_0x2df0('0x2b')];});}}[_0x2df0('0x5b')](_0x5b2f83,_0x4af2c7,_0x43584b){if(this['_bufferedUpdates'][_0x2df0('0xca')](_0x5b2f83)){const _0x4f2420=this[_0x2df0('0x7f')]['get'](_0x5b2f83);_0x4af2c7=_0x43584b?{..._0x4f2420,..._0x4af2c7}:{..._0x4af2c7,..._0x4f2420};}this[_0x2df0('0x7f')][_0x2df0('0xe6')](_0x5b2f83,_0x4af2c7);}[_0x2df0('0x72')](_0x1a1594){const _0x154ea1=this[_0x2df0('0x87')][_0x2df0('0x1')]();_0x154ea1[_0x2df0('0xb0')](),_0x154ea1[_0x2df0('0x13')]();const _0x1a3873=_0x154ea1['find'](_0x1e6ceb=>_0x1e6ceb[_0x2df0('0x80')]<=_0x1a1594)[_0x2df0('0x80')];return _0x1a3873<this[_0x2df0('0x7')]?this[_0x2df0('0x7')]:_0x1a3873;}[_0x2df0('0xa9')](_0x54f0c9){const _0x4a59f0=this['repository']['getRevision'](this[_0x2df0('0x87')][_0x2df0('0xc')]-0x1);if(_0x4a59f0)this[_0x2df0('0x5a')]=_0x4a59f0['id'];else{const _0x35badd=!this['editor'][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0x79')]['find'](_0x219ccf=>this[_0x2df0('0x36')][_0x2df0('0x90')]['hasContent'](_0x219ccf)),_0xd723f9=this[_0x2df0('0x36')][_0x2df0('0x99')]['get'](_0x2df0('0xeb'))['me']['id'],_0x24f0b9=_0x5e4f09(this[_0x2df0('0x36')][_0x2df0('0xbd')],_0x35badd?'Empty\x20document':_0x2df0('0x1e'));this[_0x2df0('0xcd')]({'from':_0x54f0c9,'to':_0x54f0c9,'id':this[_0x2df0('0x5a')],'name':_0x24f0b9,'creatorId':_0xd723f9});}}['_createCurrentRevision'](_0x211e42){const _0x519bb9=this['_source']['getCurrentRevisionId']();this[_0x2df0('0xdf')]=this[_0x2df0('0x87')][_0x2df0('0x45')](_0x519bb9),this[_0x2df0('0xdf')]||(this[_0x2df0('0xdf')]=this[_0x2df0('0xcd')]({'from':_0x211e42,'to':_0x211e42,'id':_0x519bb9,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5b29b2,from:_0x14cf8e,to:_0x2b827f,creatorId:_0x840df3,id:_0x781d6c}){const _0x158c02=this[_0x2df0('0x101')]({'from':_0x14cf8e,'to':_0x2b827f});_0x158c02[_0x2df0('0x3f')]=_0x5b29b2,_0x158c02[_0x2df0('0xb')]=_0x840df3,_0x158c02['id']=_0x781d6c;const _0x1ca9af=this[_0x2df0('0xf9')](_0x158c02);return this[_0x2df0('0x76')]&&this['_bufferUpdate'](_0x158c02['id'],_0x158c02,!0x0),_0x1ca9af;}[_0x2df0('0x2')](){this[_0x2df0('0x36')][_0x2df0('0x68')][_0x2df0('0x2a')](_0x2df0('0xdd'))[_0x2df0('0xfb')]({'model':'revision'});}[_0x2df0('0xbb')](_0x106376){return(_0x106376=_0x106376['filter'](_0x4bb53b=>!_0x4bb53b['name']||'revision-start'!==_0x4bb53b[_0x2df0('0x3f')]&&_0x2df0('0x5e')!==_0x4bb53b['name']))[_0x2df0('0x20')](_0xb02d96=>{_0x2df0('0x57')!=typeof _0xb02d96&&(_0xb02d96['children']=this[_0x2df0('0xbb')](_0xb02d96[_0x2df0('0x3c')]),_0xb02d96[_0x2df0('0x73')]=_0xb02d96['attributes'][_0x2df0('0xf5')](_0x5cbe9c=>!_0x5cbe9c[0x0][_0x2df0('0xf2')](_0x2df0('0x2e'))));}),_0x106376;}}function J(_0x382b6b,_0x54e44d){const _0x19d829=_0x54e44d[_0x2df0('0x63')][_0x2df0('0xc0')][_0x2df0('0x70')];if(_0x2df0('0x57')==typeof _0x382b6b)return new _0x270442(_0x19d829,_0x382b6b);{const _0x13b9a0=_0x382b6b['children'][_0x2df0('0xc9')](_0x129396=>J(_0x129396,_0x54e44d));return new(B[_0x382b6b[(_0x2df0('0xf7'))]]||_0x5976af)(_0x19d829,_0x382b6b['name'],_0x382b6b[_0x2df0('0x73')],_0x13b9a0);}}class H{constructor(_0xaac77c){this[_0x2df0('0x36')]=_0xaac77c,this[_0x2df0('0x51')]=new Map(),this[_0x2df0('0xc2')]=-0x1,this[_0x2df0('0xaf')]=-0x1,this[_0x2df0('0xf8')]=new Map(),this[_0x2df0('0x4a')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x2df0('0xa4')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x2df0('0x4c')]=new Map(),this[_0x2df0('0x59')]=new Map(),this['_touched']=new Map(),this[_0x2df0('0xb8')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}[_0x2df0('0xa6')](_0xa904ed){this['source']=_0xa904ed;const _0x2a1663=new Map(),_0x2b7b7c=new Map(),_0x19e924=this[_0x2df0('0x36')]['model'][_0x2df0('0x70')][_0x2df0('0x79')][_0x2df0('0xc9')](_0x2df2b7=>_0x2df2b7['rootName']);for(const _0x2a84cd of _0x19e924){const _0x533751=this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0xde')](_0x2a84cd),_0x4e3483=q(_0x533751);_0x2a1663[_0x2df0('0xe6')](_0x2a84cd,_0x4e3483),_0x2b7b7c[_0x2df0('0xe6')](_0x2a84cd,Object[_0x2df0('0x106')](_0x533751[_0x2df0('0x9a')]()));}const _0x560023=Array[_0x2df0('0xe')](this[_0x2df0('0x36')]['model'][_0x2df0('0xa5')])[_0x2df0('0xc9')](_0xfbc099=>[_0xfbc099[_0x2df0('0x3f')],_0xfbc099[_0x2df0('0x16')]()]),_0x78af88=this[_0x2df0('0x4')][_0x2df0('0x29')];this[_0x2df0('0xdb')](_0x78af88,_0x2a1663,_0x560023,_0x2b7b7c),this[_0x2df0('0x43')]=this[_0x2df0('0xcf')];const _0x4909a7=new Map(),_0x29571b=new Map();for(const _0x3683d4 of _0x19e924){const _0x396e6d=G(_0x3683d4);_0x4909a7[_0x2df0('0xe6')](_0x3683d4,_0x396e6d),_0x29571b[_0x2df0('0xe6')](_0x3683d4,{});}this[_0x2df0('0xdb')](Number[_0x2df0('0x9b')],_0x4909a7,[],_0x29571b);}[_0x2df0('0x3b')](_0x5d8c04,_0x40e49d){if(this['_lastFrom']===_0x5d8c04&&this[_0x2df0('0xaf')]<=_0x40e49d)this[_0x2df0('0x51')][_0x2df0('0x7e')]>0x1&&this[_0x2df0('0x97')](this['_lastTo']),this[_0x2df0('0xd4')](this['_lastTo'],_0x40e49d,!0x0);else{if(!this[_0x2df0('0x51')][_0x2df0('0xca')](_0x5d8c04)){const _0x3e199e=this[_0x2df0('0x9c')](_0x5d8c04);this[_0x2df0('0xfe')](_0x3e199e,_0x5d8c04,!0x1);}this[_0x2df0('0xfe')](_0x5d8c04,_0x40e49d,!0x0);}return this[_0x2df0('0xc2')]=_0x5d8c04,this[_0x2df0('0xaf')]=_0x40e49d,this[_0x2df0('0xf1')]();}[_0x2df0('0xf')](_0x132306){this[_0x2df0('0xf4')](),this[_0x2df0('0xc2')]=_0x132306[_0x2df0('0x6c')],this[_0x2df0('0xaf')]=_0x132306[_0x2df0('0x80')];for(const _0xd6ae5b in _0x132306[_0x2df0('0x2b')]){const _0x47d329=_0x132306[_0x2df0('0x2b')][_0xd6ae5b][_0x2df0('0xc6')],_0x1727a8=_0xb6b1d8(_0x132306[_0x2df0('0x2b')][_0xd6ae5b][_0x2df0('0x34')])||{},_0x4a7dc9=this[_0x2df0('0x82')](_0x132306['diffData'][_0xd6ae5b]['deletions']);_0x4a7dc9[_0x2df0('0xd2')]=_0xd6ae5b,_0x4a7dc9[_0x2df0('0xac')]=!_0x47d329||!_0x47d329[_0x2df0('0x27')],_0x4a7dc9[_0x2df0('0x27')]=()=>_0x4a7dc9['_isAttached'],this['_baseRoots'][_0x2df0('0xe6')](_0xd6ae5b,_0x4a7dc9),this[_0x2df0('0x5c')][_0x2df0('0xe6')](_0xd6ae5b,_0x1727a8),_0x47d329&&this[_0x2df0('0x24')][_0x2df0('0xe6')](_0xd6ae5b,_0x47d329);const _0x287d16=this[_0x2df0('0x8e')](_0x4a7dc9);this[_0x2df0('0x59')][_0x2df0('0xe6')](_0xd6ae5b,_0x287d16);for(const [_0x4ae565,_0x211ed8]of _0x4a7dc9[_0x2df0('0xa5')]){if(!_0x4ae565['startsWith'](_0x2df0('0xfc')))continue;const _0x56041d=_0x4ae565[_0x2df0('0xa7')](':')[0x2];for(const _0x241290 of _0x211ed8[_0x2df0('0xb4')]({'singleCharacters':!0x0})){const _0x578884=this[_0x2df0('0xe8')](_0x241290),_0x391a1f=_0x2df0('0xb5')==_0x241290[_0x2df0('0xf7')]?_0x241290['previousPosition'][_0x2df0('0xd7')]['slice'](0x0,-0x1):_0x241290['previousPosition'][_0x2df0('0xd7')],_0x371b94=_0x287d16[_0x2df0('0x3e')](_0x391a1f)[_0x2df0('0xff')](_0x578884);this[_0x2df0('0xae')]['set'](_0x371b94,{'userId':_0x56041d});}}}this[_0x2df0('0x43')]=this['_revisionId'];const _0x545c85=[...Array(this['_revisionId'])[_0x2df0('0x31')]()][_0x2df0('0xd0')](0x1)[_0x2df0('0xf5')](_0x19c817=>!this['_touched'][_0x2df0('0xca')](_0x19c817));let _0x34417e=0x0;const _0x4fac34=new Map();for(const _0x368d41 in _0x132306[_0x2df0('0x2b')]){const _0x32eef7=_0x132306['diffData'][_0x368d41]['attachChange'],_0x57a904=_0xb6b1d8(_0x132306['diffData'][_0x368d41][_0x2df0('0x6f')])||{},_0x17dbc3=this['_makeModelFromViewString'](_0x132306[_0x2df0('0x2b')][_0x368d41][_0x2df0('0x61')]);_0x17dbc3[_0x2df0('0xd2')]=_0x368d41,_0x17dbc3[_0x2df0('0xac')]=!_0x32eef7||_0x32eef7['isAttached'],_0x17dbc3[_0x2df0('0x27')]=()=>_0x17dbc3[_0x2df0('0xac')],this[_0x2df0('0x4a')][_0x2df0('0xe6')](_0x368d41,_0x17dbc3),this[_0x2df0('0x104')][_0x2df0('0xe6')](_0x368d41,_0x57a904);const _0x21d09a=this[_0x2df0('0x8e')](_0x17dbc3,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x368d41,_0x21d09a),_0x4fac34['set'](_0x368d41,_0x17dbc3[_0x2df0('0x27')]()?_0x57a904:{});for(const [_0x41f84b,_0x23034a]of _0x17dbc3[_0x2df0('0xa5')]){if(!_0x41f84b[_0x2df0('0xf2')](_0x2df0('0xfc')))continue;const _0x28f908=_0x41f84b[_0x2df0('0xa7')](':')[0x2];for(const _0x522f3e of _0x23034a[_0x2df0('0xb4')]({'singleCharacters':!0x0})){const _0x58d8aa=this[_0x2df0('0xe8')](_0x522f3e),_0xb0fb91=this[_0x2df0('0xcf')]++,_0x423944=_0x2df0('0xb5')==_0x522f3e[_0x2df0('0xf7')]?_0x522f3e[_0x2df0('0x23')][_0x2df0('0xd7')]['slice'](0x0,-0x1):_0x522f3e[_0x2df0('0x23')][_0x2df0('0xd7')];_0x21d09a['getNodeByPath'](_0x423944)[_0x2df0('0xa8')](_0x58d8aa,_0xb0fb91),this[_0x2df0('0xae')][_0x2df0('0xe6')](_0xb0fb91,{'userId':_0x28f908});}}for(const _0x1d5b27 of this[_0x2df0('0x36')]['model'][_0x2df0('0x1c')](_0x17dbc3)[_0x2df0('0xb4')]({'singleCharacters':!0x0})){const _0x32367a=this['_getVidAttributeName'](_0x1d5b27),_0x47a200='elementEnd'==_0x1d5b27[_0x2df0('0xf7')]?_0x1d5b27[_0x2df0('0x23')][_0x2df0('0xd7')][_0x2df0('0xd0')](0x0,-0x1):_0x1d5b27[_0x2df0('0x23')][_0x2df0('0xd7')],_0x336de6=_0x21d09a['getNodeByPath'](_0x47a200);_0x336de6[_0x2df0('0xff')](_0x32367a)>0x0||_0x336de6['_setAttribute'](_0x32367a,_0x545c85[_0x34417e++]);}for(const [_0x4f41b3,_0x1b054c]of _0x17dbc3[_0x2df0('0xa5')])_0x4f41b3['startsWith'](_0x2df0('0xfc'))||this[_0x2df0('0xf8')][_0x2df0('0xe6')](_0x4f41b3,_0x1b054c);}const _0x5923a8=G(_0x2df0('0x8a'));this[_0x2df0('0xa4')][_0x2df0('0xe6')](_0x2df0('0x8a'),_0x5923a8),this['_baseIdsRoots']['set']('$graveyard',this[_0x2df0('0x8e')](_0x5923a8,0x1));const _0x700a4b=G('$graveyard');this[_0x2df0('0x4a')]['set'](_0x2df0('0x8a'),_0x700a4b),this[_0x2df0('0x4c')][_0x2df0('0xe6')](_0x2df0('0x8a'),this[_0x2df0('0x8e')](_0x700a4b,0x1));const _0x33d425=Array['from'](this[_0x2df0('0x4a')])['map'](([_0x2c829e,_0x2bd267])=>[_0x2c829e,q(_0x2bd267)]);this['_saveMetaData'](this[_0x2df0('0xaf')],_0x33d425,this[_0x2df0('0xf8')],_0x4fac34);}[_0x2df0('0x82')](_0x3a3724){const _0x3b1e88=JSON[_0x2df0('0x41')](_0x3a3724),_0x5358a9=this[_0x2df0('0x36')][_0x2df0('0x63')][_0x2df0('0xc0')]['document'],_0x4adfb6=new _0x305f0e(_0x5358a9,_0x3b1e88['map'](_0x5c8c1b=>J(_0x5c8c1b,this[_0x2df0('0x36')])));return this[_0x2df0('0x36')][_0x2df0('0x6d')][_0x2df0('0x94')](_0x4adfb6);}[_0x2df0('0xdb')](_0x52253e,_0x14a517,_0x7884f,_0x1186df){const _0x4eba4d=new Map(_0x14a517),_0x154547=new Map(_0xb6b1d8(_0x1186df)),_0x27387d=new Map();for(const [_0x382c3d,_0x3d8fea]of _0x7884f)_0x27387d[_0x2df0('0xe6')](_0x382c3d,{'start':_0x3d8fea[_0x2df0('0x91')][_0x2df0('0x35')](),'end':_0x3d8fea[_0x2df0('0x78')][_0x2df0('0x35')](),'rootName':_0x3d8fea[_0x2df0('0x4d')]['rootName']});this[_0x2df0('0x51')][_0x2df0('0xe6')](_0x52253e,{'roots':_0x4eba4d,'markers':_0x27387d,'rootsAttributes':_0x154547});}[_0x2df0('0x97')](_0x1343f2){this['_savedMetaData'][_0x2df0('0x5f')](_0x1343f2);}[_0x2df0('0x1a')](){this[_0x2df0('0xf4')](),this[_0x2df0('0xc2')]=-0x1,this[_0x2df0('0xaf')]=-0x1,this[_0x2df0('0x51')][_0x2df0('0x9')](),this[_0x2df0('0xa6')](this['source']);}[_0x2df0('0xf4')](){this['_touched'][_0x2df0('0x9')](),this[_0x2df0('0xb8')]['clear'](),this[_0x2df0('0x24')][_0x2df0('0x9')](),this[_0x2df0('0x4a')][_0x2df0('0x9')](),this[_0x2df0('0x104')][_0x2df0('0x9')](),this[_0x2df0('0xa4')]['clear'](),this['_baseRootsAttributes'][_0x2df0('0x9')](),this['_idsRoots'][_0x2df0('0x9')](),this[_0x2df0('0x59')][_0x2df0('0x9')](),this[_0x2df0('0xf8')]['clear'](),this[_0x2df0('0xcf')]=0x1,this['_startingRevisionId']=this['_revisionId'];}[_0x2df0('0x8e')](_0x2fe4b7,_0x50996a=null){let _0x3aac2a=null;_0x2fe4b7['is']('documentFragment')||(_0x3aac2a=new _0x772d8e(_0x2fe4b7[_0x2df0('0x3f')],{'vid_start':null===_0x50996a?this[_0x2df0('0xcf')]++:_0x50996a++}));const _0x1b7fa9=[];for(const _0x4b21bc of _0x2fe4b7[_0x2df0('0xe0')]())if(_0x4b21bc['is'](_0x2df0('0xa0'))){_0x1b7fa9['push'](this[_0x2df0('0x8e')](_0x4b21bc,_0x50996a));const _0x4f5b44=_0x1b7fa9[_0x1b7fa9[_0x2df0('0xc')]-0x1];null!==_0x50996a&&(_0x50996a=_0x4f5b44['is'](_0x2df0('0xa0'),_0x2df0('0x58'))?_0x4f5b44['getAttribute'](_0x2df0('0xaa'))+0x1:_0x4f5b44['getAttribute'](_0x2df0('0xc5'))+0x1);}else for(let _0x2b0b8a=0x0;_0x2b0b8a<_0x4b21bc[_0x2df0('0xe4')];_0x2b0b8a++)_0x1b7fa9[_0x2df0('0x17')](new _0x772d8e(_0x2df0('0x58'),{'vid':null===_0x50996a?this[_0x2df0('0xcf')]++:_0x50996a++}));if(_0x2fe4b7['is']('documentFragment')){const _0x1a806e=G(_0x2fe4b7['rootName']);return _0x1a806e['_insertChild'](0x0,_0x1b7fa9),_0x1a806e;}return _0x3aac2a[_0x2df0('0xa8')](_0x2df0('0xc5'),null===_0x50996a?this['_revisionId']++:_0x50996a++),_0x3aac2a[_0x2df0('0xc7')](0x0,_0x1b7fa9),_0x3aac2a;}[_0x2df0('0xfe')](_0x4b2609,_0x3efbe0,_0x3ec831){this['_reset']();const {roots:_0x26e0f0,markers:_0x3f10af,rootsAttributes:_0x252570}=this['_savedMetaData'][_0x2df0('0x77')](_0x4b2609);this[_0x2df0('0xa4')]=new Map(_0x26e0f0),this['_baseRootsAttributes']=new Map(_0xb6b1d8(_0x252570));for(const [_0x37a847,_0x36df8c]of this['_baseRoots'])if('$graveyard'!==_0x37a847&&(this[_0x2df0('0x4a')][_0x2df0('0xe6')](_0x37a847,q(_0x36df8c)),this[_0x2df0('0x104')]=new Map(_0xb6b1d8(_0x252570)),_0x3ec831)){const _0x3577f7=this[_0x2df0('0xcf')];this['_idsRoots']['set'](_0x37a847,this[_0x2df0('0x8e')](_0x36df8c)),this[_0x2df0('0x59')][_0x2df0('0xe6')](_0x37a847,this['_makeIdsRoot'](_0x36df8c,_0x3577f7));}this['_startingRevisionId']=this[_0x2df0('0xcf')],this[_0x2df0('0x4a')][_0x2df0('0xe6')](_0x2df0('0x8a'),q(this['_baseRoots']['get']('$graveyard'))),_0x3ec831&&this[_0x2df0('0x4c')][_0x2df0('0xe6')](_0x2df0('0x8a'),this[_0x2df0('0x8e')](this[_0x2df0('0xa4')][_0x2df0('0x77')](_0x2df0('0x8a'))));for(const [_0x4a7abf,_0x1b1b21]of _0x3f10af){const _0x50c73b=this[_0x2df0('0xa4')][_0x2df0('0x77')](_0x1b1b21[_0x2df0('0xd2')]),_0x20eb75=this[_0x2df0('0x4a')][_0x2df0('0x77')](_0x1b1b21[_0x2df0('0xd2')]),_0x4cf768=new _0x33e6e5(this[_0x2df0('0x89')](_0x1b1b21[_0x2df0('0x91')],_0x50c73b),this[_0x2df0('0x89')](_0x1b1b21['end'],_0x50c73b)),_0x7d3c7e=this[_0x2df0('0x2d')](_0x4cf768,_0x20eb75);_0x50c73b[_0x2df0('0xa5')][_0x2df0('0xe6')](_0x4a7abf,_0x4cf768),this[_0x2df0('0xf8')][_0x2df0('0xe6')](_0x4a7abf,_0x7d3c7e);}this[_0x2df0('0xd4')](_0x4b2609,_0x3efbe0,_0x3ec831);}[_0x2df0('0xd4')](_0x506958,_0x3fb1d7,_0x3bcd43){for(const _0x195dd5 of this[_0x2df0('0x4')]['getOperations'](_0x506958,_0x3fb1d7))this[_0x2df0('0x56')](_0x195dd5,_0x3bcd43);for(const _0x43f537 of this[_0x2df0('0x4a')][_0x2df0('0x25')]())_0x43f537['markers']['clear']();for(const [_0x13118e,_0x293fea]of this[_0x2df0('0xf8')]){this[_0x2df0('0x4a')]['get'](_0x293fea[_0x2df0('0x4d')]['rootName'])[_0x2df0('0xa5')][_0x2df0('0xe6')](_0x13118e,_0x293fea[_0x2df0('0x35')]());}const _0x51dd63=new Map(),_0x549b78=new Map();for(const [_0x2dc533,_0x5aeab2]of this[_0x2df0('0x4a')])_0x51dd63[_0x2df0('0xe6')](_0x2dc533,q(_0x5aeab2)),_0x549b78[_0x2df0('0xe6')](_0x2dc533,this['_diffRootsAttributes'][_0x2df0('0x77')](_0x2dc533));this[_0x2df0('0xdb')](_0x3fb1d7,_0x51dd63,this[_0x2df0('0xf8')],_0x549b78);}[_0x2df0('0x9c')](_0x2c20b7){const _0x5405ba=Array[_0x2df0('0xe')](this[_0x2df0('0x51')][_0x2df0('0x31')]());_0x5405ba[_0x2df0('0xcc')]((_0x1eaad2,_0x1bbea7)=>_0x1eaad2-_0x1bbea7),_0x5405ba[_0x2df0('0xb0')]();for(const _0x376e7e of _0x5405ba)if(_0x376e7e<_0x2c20b7)return _0x376e7e;return Number[_0x2df0('0x9b')];}[_0x2df0('0x8')](_0x54356a,_0x1c9f92){const _0xe8552d=Array['from'](_0x1c9f92[_0x2df0('0xa5')])['map'](([_0x160ac4,_0x2a52de])=>[_0x160ac4,this[_0x2df0('0x2d')](_0x2a52de,_0x54356a)]);_0x54356a[_0x2df0('0xa5')]=new Map(_0xe8552d);}[_0x2df0('0x85')](_0x105797){for(const _0x28ddc5 of this[_0x2df0('0xf8')][_0x2df0('0x25')]()){const _0x19eca4=_0x28ddc5['getTransformedByOperation'](_0x105797),_0x1ed320=_0x33e6e5['_createFromRanges'](_0x19eca4);_0x28ddc5[_0x2df0('0x91')]=_0x1ed320[_0x2df0('0x91')],_0x28ddc5['end']=_0x1ed320['end'];}}[_0x2df0('0x56')](_0x5f2d37,_0x200d0a){if(_0x2df0('0x14')==_0x5f2d37[_0x2df0('0xf7')]||_0x2df0('0x86')==_0x5f2d37['type'])return void this['_handleRootOperation'](_0x5f2d37,_0x200d0a);if(_0x2df0('0xb9')==_0x5f2d37[_0x2df0('0xf7')]){const _0x5dd307=_0x5f2d37[_0x2df0('0xd')][_0x2df0('0x4d')]['rootName'];this['_diffRoots'][_0x2df0('0xca')](_0x5dd307)||(this[_0x2df0('0x4a')][_0x2df0('0xe6')](_0x5dd307,G(_0x5dd307,!0x0)),this[_0x2df0('0x104')]['set'](_0x5dd307,{}),_0x200d0a&&this['_idsRoots'][_0x2df0('0xe6')](_0x5dd307,G(_0x5dd307,!0x0)));}else{if(_0x2df0('0xe2')==_0x5f2d37[_0x2df0('0xf7')]||'removeRootAttribute'==_0x5f2d37[_0x2df0('0xf7')]||_0x2df0('0x75')==_0x5f2d37[_0x2df0('0xf7')])return void this['_handleRootAttributeOperation'](_0x5f2d37);}const _0x9de2f9=this[_0x2df0('0x39')](_0x5f2d37,this[_0x2df0('0x4a')]);if(_0x2df0('0xf3')!==_0x5f2d37[_0x2df0('0xf7')]&&(_0x9de2f9[_0x2df0('0xa3')](),this['_transformMarkers'](_0x9de2f9)),_0x200d0a)switch(_0x9de2f9[_0x2df0('0xf7')]){case _0x2df0('0xb9'):this[_0x2df0('0x4e')](_0x5f2d37);break;case _0x2df0('0x6b'):case _0x2df0('0x10'):case'reinsert':this[_0x2df0('0xa')](_0x5f2d37);break;case _0x2df0('0xc3'):this[_0x2df0('0x5d')](_0x5f2d37);break;case _0x2df0('0xa7'):this['_handleSplitOperation'](_0x5f2d37);break;case _0x2df0('0xf3'):this[_0x2df0('0x2c')](_0x5f2d37);}}[_0x2df0('0x39')](_0x2e3197,_0x352386){const _0x16657d=_0x2e3197[_0x2df0('0x35')]();return _0x16657d[_0x2df0('0x64')]=_0x2e3197['_authorId'],this[_0x2df0('0xa2')](_0x16657d,_0x352386),_0x16657d;}[_0x2df0('0x1b')](_0x2bf9c5){return _0x2bf9c5['map'](_0x375fa7=>{const _0x3e14f5=this[_0x2df0('0xe8')](_0x375fa7);return Number(_0x375fa7['item'][_0x2df0('0xff')](_0x3e14f5));});}[_0x2df0('0x4f')](_0xe3add1,_0x53238f){if(_0xe3add1['is']('element',_0x2df0('0x58')))_0x53238f['push']({'item':_0xe3add1,'type':_0x2df0('0xfa')});else{_0xe3add1['is'](_0x2df0('0xa0'))&&_0x53238f[_0x2df0('0x17')]({'item':_0xe3add1,'type':_0x2df0('0xc8')});for(const _0x3b404a of _0xe3add1[_0x2df0('0xe0')]())this[_0x2df0('0x4f')](_0x3b404a,_0x53238f);_0xe3add1['is']('element')&&_0x53238f[_0x2df0('0x17')]({'item':_0xe3add1,'type':'elementEnd'});}return _0x53238f;}[_0x2df0('0xf1')](){const _0x40f303=new Map(this[_0x2df0('0xae')]),_0x96e560=new Map(_0x40f303),_0x5d0cba=new Map(),_0x4e8feb={'insertions':{},'deletions':{}},_0x2ac201={'insertions':{},'deletions':{}},_0x442b07=new Map(),_0x394576=new Set([...this[_0x2df0('0xa4')]['keys'](),...this[_0x2df0('0x4a')][_0x2df0('0x31')]()]);_0x394576['delete'](_0x2df0('0x8a'));for(const _0x4cdb66 of _0x394576){const _0x3801de=this[_0x2df0('0x4a')]['get'](_0x4cdb66)||G(_0x4cdb66,!0x1),_0x38c980=this['_baseRoots']['get'](_0x4cdb66)||G(_0x4cdb66,!0x1);_0x3801de[_0x2df0('0x27')]()||_0x38c980['isAttached']()?(_0x4e8feb[_0x2df0('0x61')][_0x4cdb66]=q(_0x3801de),_0x4e8feb[_0x2df0('0x55')][_0x4cdb66]=q(_0x38c980),this['_copyMarkers'](_0x4e8feb[_0x2df0('0x55')][_0x4cdb66],_0x38c980),this['_copyMarkers'](_0x4e8feb['insertions'][_0x4cdb66],_0x3801de),_0x2ac201[_0x2df0('0x61')][_0x4cdb66]=this[_0x2df0('0x4f')](this[_0x2df0('0x4c')][_0x2df0('0x77')](_0x4cdb66),[]),_0x2ac201['deletions'][_0x4cdb66]=this[_0x2df0('0x4f')](this[_0x2df0('0x59')][_0x2df0('0x77')](_0x4cdb66)||G(_0x4cdb66,!0x1),[])):_0x394576['delete'](_0x4cdb66);}for(const _0x1bb4eb of _0x394576){const _0x1778eb=_0x2ac201['insertions'][_0x1bb4eb];for(const _0x53ef60 of _0x1778eb){const _0x1c52bd=this['_getVidAttributeName'](_0x53ef60),_0x1483ab=_0x53ef60[_0x2df0('0xfd')][_0x2df0('0xff')](_0x1c52bd);_0x96e560[_0x2df0('0x5f')](_0x1483ab),_0x1483ab>=this[_0x2df0('0x43')]&&_0x5d0cba['set'](_0x1483ab,_0x40f303[_0x2df0('0x77')](_0x1483ab));}}for(const _0x30a23f of _0x394576){const _0x242678=_0x2ac201[_0x2df0('0x61')][_0x30a23f],_0x42e8a1=this[_0x2df0('0x1b')](_0x2ac201[_0x2df0('0x55')][_0x30a23f]);let _0x26bbc9=0x0;for(const _0x35c084 of _0x242678){const _0x3ab28b=this[_0x2df0('0xe8')](_0x35c084),_0x4ca58c=_0x35c084[_0x2df0('0xfd')][_0x2df0('0xff')](_0x3ab28b);if(!_0x5d0cba[_0x2df0('0xca')](_0x4ca58c)&&!_0x442b07[_0x2df0('0xca')](_0x4ca58c)){if(_0x96e560[_0x2df0('0xca')](_0x4ca58c))_0x26bbc9++;else{if(_0x4ca58c!=_0x42e8a1[_0x26bbc9]){const _0x1782ea=_0x40f303[_0x2df0('0x77')](_0x4ca58c)||_0x40f303[_0x2df0('0x77')](_0x42e8a1[_0x26bbc9]);for(;_0x4ca58c!=_0x42e8a1[_0x26bbc9];)_0x96e560[_0x2df0('0xca')](_0x42e8a1[_0x26bbc9])||(_0x442b07[_0x2df0('0xe6')](_0x42e8a1[_0x26bbc9],_0x1782ea),_0x40f303[_0x2df0('0xe6')](_0x42e8a1[_0x26bbc9],_0x1782ea)),_0x26bbc9++;}_0x26bbc9++;}}}}for(const _0x210c68 of _0x394576){const _0x3e0b3e=_0x2ac201['insertions'][_0x210c68];for(const _0x56a67a of _0x3e0b3e){const _0x5ec353=this['_getVidAttributeName'](_0x56a67a),_0x31e781=_0x56a67a[_0x2df0('0xfd')]['getAttribute'](_0x5ec353);if(_0x442b07[_0x2df0('0xca')](_0x31e781)){const _0x35e837=_0x442b07[_0x2df0('0x77')](_0x31e781);_0x96e560[_0x2df0('0xca')](_0x31e781)||_0x96e560[_0x2df0('0xe6')](_0x31e781,{..._0x35e837}),_0x5d0cba[_0x2df0('0xe6')](_0x31e781,{..._0x35e837});}}}for(const _0x3a569d of _0x96e560[_0x2df0('0x31')]())_0x3a569d>=this[_0x2df0('0x43')]&&_0x96e560[_0x2df0('0x5f')](_0x3a569d);const _0x26416d=new Map();for(const _0x1e9b71 of _0x394576){let _0x1cacec=_0x2ac201[_0x2df0('0x61')][_0x1e9b71];for(const _0x565c95 of _0x1cacec)if(_0x565c95[_0x2df0('0xfd')]['is'](_0x2df0('0xa0'),'tableCell')){const _0x2ac3c3=this[_0x2df0('0xe8')](_0x565c95),_0x57dfb7=_0x565c95[_0x2df0('0xfd')][_0x2df0('0xff')](_0x2ac3c3);if(_0x5d0cba[_0x2df0('0xca')](_0x57dfb7)){const _0x4150aa=_0x565c95[_0x2df0('0xfd')][_0x2df0('0x3')][_0x2df0('0x3')]['getAttribute'](_0x2df0('0x3d')),_0x3e4075=_0x26416d[_0x2df0('0x77')](_0x4150aa)||new Set();_0x3e4075['add'](_0x5d0cba[_0x2df0('0x77')](_0x57dfb7)[_0x2df0('0x32')]),_0x26416d[_0x2df0('0xe6')](_0x4150aa,_0x3e4075);}}_0x1cacec=_0x2ac201[_0x2df0('0x55')][_0x1e9b71];for(const _0x2a6705 of _0x1cacec)if(_0x2a6705[_0x2df0('0xfd')]['is'](_0x2df0('0xa0'),_0x2df0('0xbc'))){const _0x13cb99=this[_0x2df0('0xe8')](_0x2a6705),_0x3dd159=_0x2a6705[_0x2df0('0xfd')]['getAttribute'](_0x13cb99);if(_0x96e560[_0x2df0('0xca')](_0x3dd159)){const _0x3bdf83=_0x2a6705['item']['parent'][_0x2df0('0x3')][_0x2df0('0xff')](_0x2df0('0x3d')),_0x2b9439=_0x26416d[_0x2df0('0x77')](_0x3bdf83)||new Set();_0x2b9439[_0x2df0('0xcb')](_0x96e560[_0x2df0('0x77')](_0x3dd159)[_0x2df0('0x32')]),_0x26416d[_0x2df0('0xe6')](_0x3bdf83,_0x2b9439);}}for(const _0xc0d668 of _0x26416d[_0x2df0('0x31')]())(_0x5d0cba[_0x2df0('0xca')](_0xc0d668)||_0x96e560[_0x2df0('0xca')](_0xc0d668))&&_0x26416d[_0x2df0('0x5f')](_0xc0d668);}for(const _0x106f80 of _0x394576){const _0x1ac97a=_0x2ac201[_0x2df0('0x61')][_0x106f80];let _0x4888c2=null,_0x21e2ac=null;for(const _0x43f902 of _0x1ac97a){const _0x463ed7=this[_0x2df0('0xe8')](_0x43f902),_0x428d54=_0x43f902[_0x2df0('0xfd')][_0x2df0('0xff')](_0x463ed7),_0x369f17=_0x26416d[_0x2df0('0x77')](_0x428d54);_0x369f17&&_0x2df0('0xc8')==_0x43f902[_0x2df0('0xf7')]&&(_0x4888c2=Array[_0x2df0('0xe')](_0x369f17)[0x0],_0x21e2ac=_0x43f902[_0x2df0('0xfd')][_0x2df0('0xff')](_0x2df0('0xc5'))),_0x4888c2&&(_0x96e560[_0x2df0('0xe6')](_0x428d54,{'userId':_0x4888c2}),_0x5d0cba[_0x2df0('0xe6')](_0x428d54,{'userId':_0x4888c2})),_0x428d54==_0x21e2ac&&(_0x4888c2=null,_0x21e2ac=null);}}const _0x5b6436={},_0x452fd3=new Set();for(const _0x2868af of _0x394576){const _0x140541=_0x4e8feb[_0x2df0('0x55')][_0x2868af],_0xb518=_0x4e8feb[_0x2df0('0x61')][_0x2868af];for(const {userId:_0x4bb32d}of this['_touchedMarkers']['values']())null!==_0x4bb32d&&_0x452fd3[_0x2df0('0xcb')](_0x4bb32d);for(const {userId:_0x3212cd}of this[_0x2df0('0x24')][_0x2df0('0x25')]())null!==_0x3212cd&&_0x452fd3['add'](_0x3212cd);this[_0x2df0('0x54')](_0xb518,_0x2ac201[_0x2df0('0x61')][_0x2868af],_0x5d0cba,_0x2df0('0xb6'),_0x452fd3),this[_0x2df0('0x54')](_0x140541,_0x2ac201[_0x2df0('0x55')][_0x2868af],_0x96e560,_0x2df0('0x8c'),_0x452fd3),_0x5b6436[_0x2868af]={'insertions':this[_0x2df0('0x6e')](_0xb518),'deletions':this[_0x2df0('0x6e')](_0x140541),'attachChange':this[_0x2df0('0x24')][_0x2df0('0x77')](_0x2868af)||null,'attributesBefore':_0xb6b1d8(this[_0x2df0('0x5c')][_0x2df0('0x77')](_0x2868af))||{},'attributesAfter':_0xb6b1d8(this[_0x2df0('0x104')]['get'](_0x2868af))};}return{'diffData':_0x5b6436,'authorsIds':Array[_0x2df0('0xe')](_0x452fd3)};}['_processRootBeforeSave'](_0x2724ed){for(const [,_0xd995c]of _0x2724ed['markers']){const _0x54260c=_0xd995c['start'][_0x2df0('0x53')]()[_0x2df0('0xf5')](_0x3fc0dc=>_0x2df0('0xbc')==_0x3fc0dc[_0x2df0('0x3f')]);for(const _0xdea17d of _0x54260c)0x1==_0xdea17d[_0x2df0('0xb1')]&&_0xdea17d[_0x2df0('0x66')](0x0)['is'](_0x2df0('0xa0'),'paragraph')&&_0xdea17d[_0x2df0('0x66')](0x0)['_setAttribute'](_0x2df0('0x9d'),!0x0);}}[_0x2df0('0x6e')](_0x50a85d){this['_processRootBeforeSave'](_0x50a85d);const _0x3c2e93=this['editor']['data']['toView'](_0x50a85d,{}),_0x3c32b9=Array[_0x2df0('0xe')](_0x3c2e93['getChildren']())[_0x2df0('0xc9')](_0x18325b=>this[_0x2df0('0x9f')](_0x18325b));return JSON[_0x2df0('0x96')](_0x3c32b9);}['_getViewJson'](_0x43fd80){if(_0x43fd80['is'](_0x2df0('0x58')))return _0x43fd80[_0x2df0('0x6d')];{const _0x1890e3=_0x43fd80;return{'type':Object['keys'](B)[_0x2df0('0x60')](_0x3208af=>_0x43fd80 instanceof B[_0x3208af]),'name':_0x1890e3['name'],'attributes':Array[_0x2df0('0xe')](_0x1890e3['getAttributes']()),'children':Array[_0x2df0('0xe')](_0x1890e3[_0x2df0('0xe0')]())[_0x2df0('0xc9')](_0x5cc7a9=>this[_0x2df0('0x9f')](_0x5cc7a9))};}}[_0x2df0('0x54')](_0xae7bb6,_0x3aa500,_0x13ac2b,_0x34c049,_0x2868b8){let _0x3384f4=null,_0x35c164=null,_0x35558f=0x0;const _0x1d04a4=this['editor'][_0x2df0('0x90')];for(let _0x160e9a=0x0;_0x160e9a<_0x3aa500[_0x2df0('0xc')];_0x160e9a++){const _0x94c096=this[_0x2df0('0xe8')](_0x3aa500[_0x160e9a]),_0x3382f4=_0x3aa500[_0x160e9a][_0x2df0('0xfd')]['getAttribute'](_0x94c096),_0x3fa34b=_0x13ac2b[_0x2df0('0x77')](_0x3382f4),_0x1ab988=_0x160e9a==_0x3aa500[_0x2df0('0xc')]-0x1;(!_0x3384f4&&_0x3fa34b&&(_0x3384f4=_0x3fa34b,_0x35c164=_0x3aa500[_0x160e9a]),_0x3384f4&&(!_0x3fa34b||_0x3fa34b[_0x2df0('0x32')]!=_0x3384f4[_0x2df0('0x32')]))&&(_0xb76e29(_0x3fa34b,L(_0x35c164,_0xae7bb6,_0x1d04a4),L(_0x3aa500[_0x160e9a],_0xae7bb6,_0x1d04a4)),_0x3384f4=_0x3fa34b||null,_0x35c164=_0x3fa34b?_0x3aa500[_0x160e9a]:null),_0x3384f4&&_0x1ab988&&_0xb76e29(_0x3fa34b,L(_0x35c164,_0xae7bb6,_0x1d04a4),W(_0x3aa500[_0x160e9a],_0xae7bb6,_0x1d04a4));}function _0xb76e29(_0x489f5b,_0x5c684d,_0x3efd34){const _0x5141a5=_0x3384f4[_0x2df0('0x32')],_0x49170d=_0x2df0('0xfc')+_0x34c049+':'+_0x5141a5+':'+_0x35558f++,_0x1258cf=_0x1d04a4[_0x2df0('0xd5')](_0x5c684d,_0x3efd34);_0xae7bb6[_0x2df0('0xa5')][_0x2df0('0xe6')](_0x49170d,_0x1258cf),null!==_0x5141a5&&_0x2868b8['add'](_0x5141a5);}}[_0x2df0('0xe8')](_0x25f59a){switch(_0x25f59a[_0x2df0('0xf7')]){case'elementStart':return'vid_start';case'elementEnd':return _0x2df0('0xc5');default:return _0x2df0('0xaa');}}[_0x2df0('0xa2')](_0x5b21dc,_0x442971){_0x5b21dc[_0x2df0('0x8b')]=null;for(const _0x3e663f in _0x5b21dc){const _0x1f7090=_0x5b21dc[_0x3e663f];if(_0x1f7090 instanceof _0x526c47){const _0x4687c2=_0x442971[_0x2df0('0x77')](_0x1f7090['root'][_0x2df0('0xd2')]);_0x5b21dc[_0x3e663f]=this[_0x2df0('0x89')](_0x1f7090,_0x4687c2);}if(_0x1f7090 instanceof _0x33e6e5){const _0x21916c=_0x442971['get'](_0x1f7090[_0x2df0('0x4d')][_0x2df0('0xd2')]);_0x5b21dc[_0x3e663f]=this[_0x2df0('0x2d')](_0x1f7090,_0x21916c);}_0x2df0('0x4d')===_0x3e663f&&(_0x5b21dc['root']=_0x442971[_0x2df0('0x77')](_0x5b21dc[_0x2df0('0x4d')][_0x2df0('0xd2')]));}}[_0x2df0('0x2d')](_0x22591f,_0x34b8c9){return this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0xd5')](this[_0x2df0('0x89')](_0x22591f[_0x2df0('0x91')],_0x34b8c9),this['_fixPosition'](_0x22591f[_0x2df0('0x78')],_0x34b8c9));}[_0x2df0('0x89')](_0x124383,_0x1a9196){return this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x1f')](_0x1a9196,_0x124383[_0x2df0('0xd7')],_0x124383[_0x2df0('0x92')]);}[_0x2df0('0x4e')](_0x57118e){const _0x66ca91=this[_0x2df0('0x4c')][_0x2df0('0x77')](_0x57118e[_0x2df0('0xd')]['root'][_0x2df0('0xd2')]),_0x44cef2=this['_fixPosition'](_0x57118e[_0x2df0('0xd')],_0x66ca91),_0xfbf204=null===_0x57118e['_authorId']?null:_0x57118e[_0x2df0('0x64')]||this[_0x2df0('0x36')]['plugins'][_0x2df0('0x77')](_0x2df0('0xeb'))['me']['id'],_0x460938=_0x44cef2[_0x2df0('0x3')],_0x15536d=this['_revisionId'],_0x1bbe09=[];for(const _0x560add of _0x57118e[_0x2df0('0xec')])if(_0x560add['is'](_0x2df0('0xa0')))_0x1bbe09[_0x2df0('0x17')](this[_0x2df0('0x8e')](_0x560add));else for(let _0x6e9f21=0x0;_0x6e9f21<_0x560add[_0x2df0('0xe4')];_0x6e9f21++)_0x1bbe09[_0x2df0('0x17')](new _0x772d8e(_0x2df0('0x58'),{'vid':this[_0x2df0('0xcf')]++}));const _0xf1d29a=this[_0x2df0('0xcf')];for(let _0x26c144=_0x15536d;_0x26c144<_0xf1d29a;_0x26c144++)this[_0x2df0('0xae')][_0x2df0('0xe6')](_0x26c144,{'userId':_0xfbf204});_0x460938[_0x2df0('0xc7')](_0x44cef2[_0x2df0('0x88')],_0x1bbe09);}[_0x2df0('0xa')](_0x3d888b){(_0x3d888b=this[_0x2df0('0x39')](_0x3d888b,this['_idsRoots']))[_0x2df0('0xa3')]();const _0x160b67=null===_0x3d888b[_0x2df0('0x64')]?null:_0x3d888b[_0x2df0('0x64')]||this[_0x2df0('0x36')][_0x2df0('0x99')]['get'](_0x2df0('0xeb'))['me']['id'],_0x4f17cc=_0x3d888b[_0x2df0('0xda')](),_0x3cf4f0=_0x4f17cc[_0x2df0('0x3')],_0x2dcbf5=_0x4f17cc[_0x2df0('0x88')];!function _0x2d9c29(_0x5f410e,_0x53ac8d,_0x16e6e0,_0x3c369a){for(let _0x2dec6a=_0x16e6e0;_0x2dec6a<_0x3c369a;_0x2dec6a++){const _0x1523ee=_0x53ac8d[_0x2df0('0x66')](_0x2dec6a);_0x1523ee['is']('element',_0x2df0('0x58'))?_0x5f410e[_0x2df0('0xe6')](_0x1523ee[_0x2df0('0xff')](_0x2df0('0xaa')),{'userId':_0x160b67}):(_0x5f410e['set'](_0x1523ee[_0x2df0('0xff')](_0x2df0('0x3d')),{'userId':_0x160b67}),_0x2d9c29(_0x5f410e,_0x1523ee,0x0,_0x1523ee[_0x2df0('0xb1')]),_0x5f410e['set'](_0x1523ee[_0x2df0('0xff')](_0x2df0('0xc5')),{'userId':_0x160b67}));}}(this[_0x2df0('0xae')],_0x3cf4f0,_0x2dcbf5,_0x2dcbf5+_0x3d888b[_0x2df0('0x7a')]);}[_0x2df0('0x5d')](_0x364160){const _0x2cddb8=null===(_0x364160=this[_0x2df0('0x39')](_0x364160,this[_0x2df0('0x4c')]))[_0x2df0('0x64')]?null:_0x364160[_0x2df0('0x64')]||this[_0x2df0('0x36')]['plugins']['get'](_0x2df0('0xeb'))['me']['id'],_0x1b4318=_0x364160['targetPosition']['parent'],_0x4a96cf=_0x364160[_0x2df0('0x52')]['parent'],_0x11764c=_0x1b4318[_0x2df0('0xff')](_0x2df0('0xc5')),_0x35540b=_0x4a96cf['getAttribute']('vid_start');_0x1b4318[_0x2df0('0xa8')]('vid_end',_0x4a96cf['getAttribute'](_0x2df0('0xc5'))),_0x4a96cf[_0x2df0('0xa8')](_0x2df0('0xc5'),_0x11764c),this['_touched']['set'](_0x35540b,{'userId':_0x2cddb8}),this[_0x2df0('0xae')][_0x2df0('0xe6')](_0x11764c,{'userId':_0x2cddb8}),_0x364160['_execute']();}[_0x2df0('0x103')](_0x10bfcd){const _0x5437d7=null===(_0x10bfcd=this[_0x2df0('0x39')](_0x10bfcd,this[_0x2df0('0x4c')]))[_0x2df0('0x64')]?null:_0x10bfcd['_authorId']||this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')](_0x2df0('0xeb'))['me']['id'],_0xf36512=_0x10bfcd[_0x2df0('0xf0')],_0x369e09=_0x10bfcd[_0x2df0('0xe1')][_0x2df0('0x3')];_0x10bfcd[_0x2df0('0xa3')]();const _0x45d348=_0x369e09['getAttribute'](_0x2df0('0xc5')),_0x2b7875=_0x10bfcd[_0x2df0('0x19')][_0x2df0('0x6a')];if(_0xf36512){const _0x411c80=_0x2b7875[_0x2df0('0xff')]('vid_end'),_0x4aa89a=_0x369e09[_0x2df0('0xff')](_0x2df0('0xc5'));_0x369e09['_setAttribute'](_0x2df0('0xc5'),_0x411c80),_0x2b7875[_0x2df0('0xa8')]('vid_end',_0x4aa89a),this[_0x2df0('0xae')][_0x2df0('0xe6')](_0x369e09[_0x2df0('0xff')](_0x2df0('0xc5')),{'userId':_0x5437d7}),this['_touched'][_0x2df0('0xe6')](_0x2b7875[_0x2df0('0xff')](_0x2df0('0x3d')),{'userId':_0x5437d7});}else{const _0xb2cb1=this[_0x2df0('0xcf')]++,_0x3b6b7b=this[_0x2df0('0xcf')]++;_0x369e09[_0x2df0('0xa8')](_0x2df0('0xc5'),_0xb2cb1),_0x2b7875[_0x2df0('0xa8')](_0x2df0('0x3d'),_0x3b6b7b),_0x2b7875[_0x2df0('0xa8')](_0x2df0('0xc5'),_0x45d348),this[_0x2df0('0xae')][_0x2df0('0xe6')](_0xb2cb1,{'userId':_0x5437d7}),this[_0x2df0('0xae')][_0x2df0('0xe6')](_0x3b6b7b,{'userId':_0x5437d7});}}[_0x2df0('0x2c')](_0x3751af){if(!_0x3751af['affectsData'])return;const _0x553f06=(_0x3751af=this[_0x2df0('0x39')](_0x3751af,this[_0x2df0('0x4a')]))[_0x2df0('0xce')]?_0x3751af[_0x2df0('0xce')][_0x2df0('0x4d')]:null,_0x27c7f2=_0x3751af[_0x2df0('0x47')]?_0x3751af[_0x2df0('0x47')]['root']:null;_0x553f06&&this[_0x2df0('0xf8')]['delete'](_0x3751af[_0x2df0('0x3f')]),_0x27c7f2&&this[_0x2df0('0xf8')][_0x2df0('0xe6')](_0x3751af[_0x2df0('0x3f')],_0x3751af[_0x2df0('0x47')]['clone']());const _0x173bb4=null===_0x3751af[_0x2df0('0x64')]?null:_0x3751af[_0x2df0('0x64')]||this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')]('Users')['me']['id'],_0x7578f4=_0x3751af[_0x2df0('0x3f')];if(!this[_0x2df0('0xb8')][_0x2df0('0xca')](_0x7578f4))return void this[_0x2df0('0xb8')][_0x2df0('0xe6')](_0x7578f4,{'range':_0x3751af[_0x2df0('0xce')],'userId':_0x173bb4});const _0x568df1=this[_0x2df0('0xb8')][_0x2df0('0x77')](_0x7578f4),_0x3455b3=_0x568df1[_0x2df0('0xf6')],_0x1e19a5=_0x3751af[_0x2df0('0x47')];null==_0x3455b3&&null==_0x1e19a5||_0x3455b3&&_0x1e19a5&&_0x3455b3[_0x2df0('0x9e')](_0x1e19a5)?this[_0x2df0('0xb8')][_0x2df0('0x5f')](_0x3751af[_0x2df0('0x3f')]):_0x568df1[_0x2df0('0x32')]=_0x173bb4;}[_0x2df0('0x46')](_0x2c4449,_0x3151af){this[_0x2df0('0x4a')][_0x2df0('0xca')](_0x2c4449['rootName'])?this[_0x2df0('0x4a')]['get'](_0x2c4449[_0x2df0('0xd2')])[_0x2df0('0xac')]=_0x2c4449[_0x2df0('0x62')]:(this[_0x2df0('0x4a')][_0x2df0('0xe6')](_0x2c4449[_0x2df0('0xd2')],G(_0x2c4449[_0x2df0('0xd2')],!0x0)),this['_diffRootsAttributes']['set'](_0x2c4449[_0x2df0('0xd2')],{}),_0x3151af&&this['_idsRoots'][_0x2df0('0xe6')](_0x2c4449[_0x2df0('0xd2')],G(_0x2c4449['rootName'],!0x0)));const _0x3ece76=null===_0x2c4449[_0x2df0('0x64')]?null:_0x2c4449[_0x2df0('0x64')]||this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')](_0x2df0('0xeb'))['me']['id'],_0x12ef6d=this[_0x2df0('0x24')][_0x2df0('0x77')](_0x2c4449[_0x2df0('0xd2')]);_0x12ef6d&&_0x12ef6d[_0x2df0('0x32')]===_0x3ece76?this[_0x2df0('0x24')]['delete'](_0x2c4449[_0x2df0('0xd2')]):this['_touchedRoots']['set'](_0x2c4449['rootName'],{'userId':_0x3ece76,'isAttached':_0x2c4449['isAdd']});}[_0x2df0('0x8f')](_0x731db4){const _0x138b7e=this[_0x2df0('0x104')][_0x2df0('0x77')](_0x731db4[_0x2df0('0x4d')][_0x2df0('0xd2')]);null===_0x731db4['newValue']?delete _0x138b7e[_0x731db4[_0x2df0('0xd3')]]:_0x138b7e[_0x731db4[_0x2df0('0xd3')]]=_0x731db4[_0x2df0('0x81')];}}function q(_0x15f3f4){const _0x3f1371=G(_0x15f3f4[_0x2df0('0xd2')],_0x15f3f4[_0x2df0('0x27')]());for(const _0x218c04 of _0x15f3f4['getChildren']()){const _0x2fb175=_0x218c04[_0x2df0('0x7d')](!0x0);_0x3f1371[_0x2df0('0xb3')](_0x2fb175);}return _0x3f1371;}function G(_0x4a1b9c,_0x19b911=!0x0){const _0x1d2dfd=new _0x55a33d();return _0x1d2dfd[_0x2df0('0xd2')]=_0x4a1b9c,_0x1d2dfd['_isAttached']=_0x19b911,_0x1d2dfd[_0x2df0('0x27')]=()=>_0x1d2dfd['_isAttached'],_0x1d2dfd;}function L(_0x11a31b,_0x4ae9d5,_0x5f23e8){const _0x53d8f9=_0x2df0('0xb5')==_0x11a31b[_0x2df0('0xf7')]?_0x5f23e8[_0x2df0('0x2f')](_0x11a31b['item'],_0x2df0('0x78')):_0x5f23e8[_0x2df0('0x84')](_0x11a31b[_0x2df0('0xfd')]);return _0x5f23e8['createPositionFromPath'](_0x4ae9d5,_0x53d8f9[_0x2df0('0xd7')],_0x53d8f9[_0x2df0('0x92')]);}function W(_0x4e1ddc,_0x25a2df,_0x4cedd7){const _0x34f00e=_0x2df0('0xc8')==_0x4e1ddc[_0x2df0('0xf7')]?_0x4cedd7[_0x2df0('0x2f')](_0x4e1ddc[_0x2df0('0xfd')],0x0):_0x4cedd7['createPositionAfter'](_0x4e1ddc[_0x2df0('0xfd')]);return _0x4cedd7[_0x2df0('0x1f')](_0x25a2df,_0x34f00e['path'],_0x34f00e[_0x2df0('0x92')]);}
|
|
23
|
+
const _0x1526=['_transformMarkers','_baseRoots','_bufferedUpdates','includes','addRootAttribute','PENDING_ACTION_REVISION_HISTORY','getData','collaboration.channelId','fromVersion','PendingActions','getOperations','sendBufferedUpdates','bind','filter','sort','text','_baseRootsAttributes','length','authors','key','getMovedRangeStart','split','set','get','toView','from','move','ready','processor','rootsAttributes','_revisionId','Users','baseVersion','_cloneOperation','reverse','isAdd','rootName','howMany','createRangeIn','_handleRootAttributeOperation','userId','toModel','_loadedStateData','revision:','_update','nodes','parent','_saveMetaData','editing','slice','map','init','_continueCurrentRevision','editor-initial-data-replaced-with-revision-data','_getState','loadState','max','find','NEGATIVE_INFINITY','position','clone','getRevisions','insertions','has','_removePendingAction','merge','setSource','getNodeByPath','getWalker','_diffRootsAttributes','children','_clone','_createCurrentRevision','creator','buildRevisionData','_handleSplitOperation','adapter','revision','attributesAfter','_handleMarkerOperation','oldRange','data-revision-','insert','name','_removeMetaData','parse','_handleRootOperation','remove','_savedMetaData','type','_copyMarkers','_setConversion','view','getRevision','_baseIdsRoots','size','_replaceEditorDataWithRevisionData','_execute','_handleInsertOperation','getAncestors','stickiness','conversion','_getBaseVids','attachChange','paragraph','getAttributes','_fixRange','getCurrentRevisionId','initialData','_getViewJson','update','_removeRevisionMarkers','getRevisionDocumentData','createRange','detachRoot','childCount','history','_isPendingUpdate','_insertChild','_idsRoots','_reset','previousPosition','startsWith','authorsIds','getRevisionRootsAttributes','attributesBefore','roots','_loadState','_loadRevisionData','repository','add','forEach','saveRevision','isEqual','clear','document','offset','reInit','plugins','_isInit','_isAttached','start','_initialRevisionId','reinsert','locale','_pendingAction','_startingRevisionId','revisionHistory.resumeUnsavedRevision','offsetSize','tableCell','end','getRootNames','_touchedMarkers','some','_lastFrom','vid','_makeIdsRoot','insertion','elementEnd','_source','values','_makeModelFromViewString','sourcePosition','_generateTape','targetPosition','_handleMoveOperation','getAttribute','diffData','delete','model','keys','config','RevisionTracker','initial','_calculateMetaData','_diffRoots','source','markers','getLatestVersion','_operations','getChild','_startingVersion','_processRootBeforeSave','data','toData','updateRevisions','documentFragment','toVersion','element','_bufferUpdate','_setAttribute','vid_end','_createInitialRevision','createPositionFromPath','editor','_lastTo','_revisionDataBuilder','currentRevision','dataToMarker','trim','$text','newValue','define','Empty\x20document','_markChanges','getOperation','for','getRange','version','_handleMergeOperation','changeRootAttribute','_markers','_authorId','createPositionAt','root','_touchedRoots','vid_start','fromEntries','_fixPosition','_applyOperations','isAttached','creatorId','$graveyard','getRoot','useFillerType','getUser','createRevision','_touched','createPositionBefore','RealTimeCollaborationClient','attributes','finally','afterInit','_createFromRanges','default','addRevisionData','isEnabled','resolve','newRange','string','requires','_findInsertionIndex','push','setRevisionData','path','_prepareViewToSave','then','elementStart','isReady','_getVidAttributeName','getChildren','_addPendingAction','graveyardPosition','removeRootAttribute','keepParagraph','RevisionsRepository','item','deletions','affectsData','_makeRevision','deletion','pluginName','_handleOperation','createdAt','_fixOperation'];(function(_0x40dc14,_0x1526f2){const _0x4222fd=function(_0x44371b){while(--_0x44371b){_0x40dc14['push'](_0x40dc14['shift']());}};_0x4222fd(++_0x1526f2);}(_0x1526,0x174));const _0x4222=function(_0x40dc14,_0x1526f2){_0x40dc14=_0x40dc14-0x0;let _0x4222fd=_0x1526[_0x40dc14];return _0x4222fd;};import{Users as _0x2c92cf}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x496eca,PendingActions as _0xec4624}from'ckeditor5/src/core';import{logWarning as _0x991011,uid as _0x22981}from'ckeditor5/src/utils';import{Position as _0xc1abe3,Range as _0x3edc46,Element as _0x5b1cbc,DocumentFragment as _0x35956c,ViewText as _0x4a20b8,ViewElement as _0x4c6a6d,ViewContainerElement as _0x513885,ViewAttributeElement as _0x312eeb,ViewEmptyElement as _0x1cc3b4,ViewRawElement as _0x40e3ec,ViewUIElement as _0x50181b,ViewDocumentFragment as _0x117f7d}from'ckeditor5/src/engine';import _0x454f68 from'./revisionsrepository';import{getTranslation as _0x1c3fa5}from'./utils/common-translations';import{cloneDeep as _0x44d25a,isEqual as _0x11e894}from'lodash-es';const B={'c':_0x513885,'a':_0x312eeb,'e':_0x1cc3b4,'r':_0x40e3ec,'u':_0x50181b};export default class l extends _0x496eca{static get[_0x4222('0x9a')](){return _0x4222('0x41');}static get[_0x4222('0x85')](){return[_0x2c92cf,_0x454f68,_0xec4624];}constructor(_0x409f9a){super(_0x409f9a),this[_0x4222('0xea')]=null,this[_0x4222('0x5a')]=null,this[_0x4222('0x59')]=new H(this[_0x4222('0x57')]),this[_0x4222('0x23')]=this[_0x4222('0x57')][_0x4222('0x40')]['get'](_0x4222('0xa5'))||_0x4222('0x42'),this[_0x4222('0xa0')]=new Map(),this[_0x4222('0xc8')]=null;const _0x318640=_0x22981();this[_0x4222('0x34')]={'history':this[_0x4222('0x57')]['model'][_0x4222('0x1c')][_0x4222('0x9')],'getLatestVersion':()=>Promise[_0x4222('0x82')](this[_0x4222('0x57')]['model']['document'][_0x4222('0x65')]),'getCurrentRevisionId':()=>_0x318640},this['set'](_0x4222('0x8d'),!0x1),this['set'](_0x4222('0x81'),!0x0),this[_0x4222('0xb4')](_0x4222('0xa'),!0x1),this['editor'][_0x4222('0x40')][_0x4222('0x5f')](_0x4222('0x28'),!0x0),this['editor'][_0x4222('0x103')][_0x4222('0x63')]('upcast')[_0x4222('0x5b')]({'view':_0x4222('0xeb')});}[_0x4222('0xd1')](){this[_0x4222('0x16')]=this[_0x4222('0x57')][_0x4222('0x1f')][_0x4222('0xb5')](_0x4222('0x94')),this[_0x4222('0xf9')](),this[_0x4222('0x57')][_0x4222('0x4c')]['on'](_0x4222('0xb9'),()=>{const _0x395305=this['repository']['getRevision'](0x0),_0x3c9ed2=_0x395305&&null===_0x395305['creator']?_0x395305:null;if(this['_continueCurrentRevision']=!!_0x3c9ed2&&this[_0x4222('0x57')][_0x4222('0x40')][_0x4222('0xb5')](_0x4222('0x28')),this[_0x4222('0x57')]['plugins'][_0x4222('0xdd')](_0x4222('0x7a'))){const _0xd126f5=this[_0x4222('0x34')]['getCurrentRevisionId'](),_0x472b49=this[_0x4222('0x16')]['getRevision'](_0xd126f5);if(_0x472b49)this[_0x4222('0x4a')]=_0x472b49[_0x4222('0xa6')],this[_0x4222('0xd2')]=!0x1;else{const _0x172e81=this[_0x4222('0x34')]['history'][_0x4222('0x48')][_0x4222('0xd7')](_0x376c63=>!_0x376c63[_0x4222('0x20')]),_0x537c4c=_0x172e81?_0x172e81[_0x4222('0xbe')]:this[_0x4222('0x34')][_0x4222('0x9')]['version'];_0x395305?(_0x395305[_0x4222('0x50')]<_0x537c4c&&_0x395305['_update']({'toVersion':_0x537c4c}),this[_0x4222('0xd2')]?(this[_0x4222('0x34')][_0x4222('0x0')]=()=>_0x3c9ed2['id'],this[_0x4222('0x4a')]=_0x3c9ed2[_0x4222('0xa6')]):(this['_startingVersion']=_0x395305['toVersion'],this[_0x4222('0xd2')]=!0x1)):(this[_0x4222('0x4a')]=_0x537c4c,this[_0x4222('0xd2')]=!0x1);}}else _0x3c9ed2&&(this[_0x4222('0x57')]['model'][_0x4222('0x1c')][_0x4222('0x9')][_0x4222('0x65')]=Math[_0x4222('0xd6')](_0x3c9ed2[_0x4222('0x50')],this['editor']['model']['document'][_0x4222('0x9')]['version']),_0x3c9ed2[_0x4222('0xa6')]===_0x3c9ed2['toVersion']?(0x0!==_0x3c9ed2[_0x4222('0xa6')]&&(this[_0x4222('0x34')]['getCurrentRevisionId']=()=>_0x3c9ed2['id']),this[_0x4222('0xd2')]=!0x1):this[_0x4222('0xd2')]&&(this[_0x4222('0x34')]['getCurrentRevisionId']=()=>_0x3c9ed2['id'],this[_0x4222('0x4a')]=_0x3c9ed2[_0x4222('0xa6')])),this[_0x4222('0xd2')]||(this[_0x4222('0x4a')]=this[_0x4222('0x57')][_0x4222('0x3e')][_0x4222('0x1c')][_0x4222('0x65')]);this[_0x4222('0x59')][_0x4222('0xd1')](this[_0x4222('0x34')][_0x4222('0x9')]),this[_0x4222('0x55')](this[_0x4222('0x4a')]),this['_createCurrentRevision'](this[_0x4222('0x4a')]),this[_0x4222('0xea')]&&this[_0x4222('0xa9')]();}),this[_0x4222('0xaa')](_0x4222('0x8d'))['to'](this,_0x4222('0xa'),_0x41cbb1=>!_0x41cbb1);}async[_0x4222('0x7d')](){if(this[_0x4222('0x16')][_0x4222('0xaf')]>0x0){const _0x58a07b=this[_0x4222('0x16')][_0x4222('0xfb')](0x0),_0x559f6e=await this[_0x4222('0x5')](_0x58a07b),_0x138695=await this['getRevisionRootsAttributes'](_0x58a07b);this[_0x4222('0xfe')](_0x559f6e,_0x138695);}}[_0x4222('0xe0')](_0x4422ad){this[_0x4222('0x34')]=_0x4422ad;}async[_0x4222('0x3')](){const _0x4c1189=await this[_0x4222('0x34')][_0x4222('0x47')]();if(_0x4c1189>this[_0x4222('0x5a')][_0x4222('0x50')]){await this[_0x4222('0x14')]();const _0x1c8ad1=this[_0x4222('0xe8')]({'revision':this['currentRevision'],'to':_0x4c1189});_0x1c8ad1[_0x4222('0xb0')]=_0x1c8ad1['authorsIds'][_0x4222('0xd0')](_0x14d9f5=>this[_0x4222('0x57')][_0x4222('0x1f')]['get']('Users')['getUser'](_0x14d9f5)),this['currentRevision'][_0x4222('0xca')](_0x1c8ad1);}}async[_0x4222('0x14')](){this[_0x4222('0xd2')]&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this[_0x4222('0x59')][_0x4222('0xd5')](this['currentRevision']),this[_0x4222('0xc8')]={'fromVersion':this[_0x4222('0x5a')][_0x4222('0xa6')],'authors':this[_0x4222('0x5a')][_0x4222('0xb0')][_0x4222('0xcf')]()});}async[_0x4222('0x19')](_0x2d936e={},_0x5af863=null){const _0xb191d1=[];await this[_0x4222('0x14')](),this[_0x4222('0xd2')]=!0x1,_0x5af863>this[_0x4222('0x5a')][_0x4222('0x50')]&&(_0x5af863=null),null===_0x5af863&&(_0x5af863=await this[_0x4222('0x34')]['getLatestVersion']());const _0x13c98e=this['_getFromVersion'](_0x5af863),_0x17c3bb=this[_0x4222('0xe8')]({'from':_0x13c98e,'to':_0x5af863});if(this[_0x4222('0x5a')]['toVersion']<_0x5af863){const _0x59cd3a=this[_0x4222('0xe8')]({'revision':this[_0x4222('0x5a')],'from':_0x5af863,'to':_0x5af863});_0x59cd3a[_0x4222('0xb0')]=[],_0x59cd3a['authorsIds']=[],_0x59cd3a['id']=this[_0x4222('0x5a')]['id'],this[_0x4222('0x5a')][_0x4222('0xca')](_0x59cd3a,!0x0),delete _0x59cd3a[_0x4222('0xb0')],_0xb191d1[_0x4222('0x87')](_0x59cd3a);}_0x2d936e[_0x4222('0x72')]=this[_0x4222('0x57')][_0x4222('0x1f')]['get'](_0x4222('0xbd'))['me']['id'],_0x2d936e[_0x4222('0xf1')]=_0x2d936e['name']||null,_0x2d936e['id']=_0x2d936e['id']||_0x22981(),_0x2d936e={..._0x2d936e,..._0x17c3bb};const _0x34b230=this[_0x4222('0x80')](_0x2d936e);_0xb191d1[_0x4222('0x87')](_0x2d936e);const _0x151fb4=this[_0x4222('0x16')]['getIndex'](_0x34b230);if(0x0!==_0x151fb4){const _0x13e59a=this[_0x4222('0x16')][_0x4222('0xfb')](_0x151fb4-0x1);if(_0x13e59a[_0x4222('0xa6')]!==_0x5af863){const _0x58b047=this['_revisionDataBuilder']['getData'](_0x5af863,_0x13e59a['toVersion']),_0x1385a1={'id':_0x13e59a['id'],'diffData':_0x58b047['diffData'],'authorsIds':_0x58b047['authorsIds'],'authors':_0x58b047[_0x4222('0x10')][_0x4222('0xd0')](_0x26c71d=>this[_0x4222('0x57')][_0x4222('0x1f')]['get'](_0x4222('0xbd'))[_0x4222('0x76')](_0x26c71d)),'fromVersion':_0x5af863};_0x13e59a===this[_0x4222('0x5a')]&&(_0x1385a1[_0x4222('0x9c')]=new Date(_0x2d936e[_0x4222('0x9c')]['getTime']()+0xa)),_0x13e59a[_0x4222('0xca')](_0x1385a1,!0x0),delete _0x1385a1['authors'],_0xb191d1[_0x4222('0x87')](_0x1385a1);}}if(this[_0x4222('0xea')]){for(const _0xee8aed of _0xb191d1)this['_bufferUpdate'](_0xee8aed['id'],_0xee8aed,!0x0);this[_0x4222('0xa9')]();}return _0x34b230;}[_0x4222('0x80')](_0x1248f0){const _0x1c5560=this['repository'][_0x4222('0x77')](_0x1248f0);return this[_0x4222('0xea')]&&_0x1c5560['on']('_update',(_0x338e1d,_0x433f32,_0x5d00de)=>{_0x5d00de||(this[_0x4222('0x52')](_0x433f32['id'],_0x433f32,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1c5560,this[_0x4222('0x86')](_0x1c5560)),_0x1c5560;}async[_0x4222('0x5')](_0xf55e60){await this[_0x4222('0x15')](_0xf55e60);const _0x57c37b={};for(const _0x298769 in _0xf55e60[_0x4222('0x3c')]){if(_0xf55e60[_0x4222('0x3c')][_0x298769]['attachChange']&&!_0xf55e60[_0x4222('0x3c')][_0x298769][_0x4222('0x105')][_0x4222('0x71')])continue;const _0x2afbc6=this[_0x4222('0x4')](JSON[_0x4222('0xf3')](_0xf55e60[_0x4222('0x3c')][_0x298769][_0x4222('0xdc')])),_0x51fe74=this[_0x4222('0x57')]['editing'][_0x4222('0xfa')][_0x4222('0x1c')],_0x160e8f=new _0x117f7d(_0x51fe74,_0x2afbc6[_0x4222('0xd0')](_0x1f942d=>J(_0x1f942d,this[_0x4222('0x57')])));this['editor'][_0x4222('0x4c')][_0x4222('0xba')][_0x4222('0x75')]('marked'),_0x57c37b[_0x298769]=this[_0x4222('0x57')][_0x4222('0x4c')][_0x4222('0xba')][_0x4222('0x4d')](_0x160e8f),this[_0x4222('0x57')]['data']['processor'][_0x4222('0x75')](_0x4222('0x7f'));}return _0x57c37b;}async[_0x4222('0x11')](_0x1339e9){await this[_0x4222('0x15')](_0x1339e9);const _0x3bc6a5={};for(const _0x433c96 in _0x1339e9[_0x4222('0x3c')])_0x1339e9[_0x4222('0x3c')][_0x433c96][_0x4222('0x105')]&&!_0x1339e9[_0x4222('0x3c')][_0x433c96][_0x4222('0x105')]['isAttached']||(_0x3bc6a5[_0x433c96]=_0x1339e9[_0x4222('0x3c')][_0x433c96][_0x4222('0xec')]||{});return _0x3bc6a5;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates'][_0x4222('0xfd')])return;if(this[_0x4222('0xa')])return;let _0x1f2301=Array[_0x4222('0xb7')](this[_0x4222('0xa0')][_0x4222('0x35')]());this[_0x4222('0xa0')][_0x4222('0x1b')]();for(let _0xc1b516=0x0;_0xc1b516<_0x1f2301[_0x4222('0xaf')];_0xc1b516++){const _0x1f542f=_0x1f2301[_0xc1b516];let _0x4274a0=!0x1;for(const _0x2751f7 of Object[_0x4222('0x3f')](_0x1f542f))void 0x0===_0x1f542f[_0x2751f7]?delete _0x1f542f[_0x2751f7]:'id'!==_0x2751f7&&(_0x4274a0=!0x0);_0x4274a0||(_0x1f2301[_0xc1b516]=null);}if(_0x1f2301=_0x1f2301[_0x4222('0xab')](_0x343477=>null!==_0x343477),!_0x1f2301[_0x4222('0xaf')])return;for(let _0x3b353d=0x0;_0x3b353d<_0x1f2301[_0x4222('0xaf')];_0x3b353d++){const _0x4db8f2=_0x1f2301[_0x3b353d];void 0x0!==_0x4db8f2['fromVersion']&&void 0x0===_0x4db8f2[_0x4222('0x50')]&&(_0x4db8f2[_0x4222('0x50')]=this[_0x4222('0x16')]['getRevision'](_0x4db8f2['id'])[_0x4222('0x50')]),void 0x0!==_0x4db8f2[_0x4222('0x50')]&&void 0x0===_0x4db8f2[_0x4222('0xa6')]&&(_0x4db8f2['fromVersion']=this['repository'][_0x4222('0xfb')](_0x4db8f2['id'])[_0x4222('0xa6')]);}const _0x52ca42=this[_0x4222('0x57')][_0x4222('0x40')]['get'](_0x4222('0xa5'));this[_0x4222('0xa')]=!0x0,this[_0x4222('0x90')](),this[_0x4222('0xea')][_0x4222('0x4e')](_0x1f2301,_0x52ca42)[_0x4222('0x7c')](()=>{this[_0x4222('0xa')]=!0x1;})[_0x4222('0x8b')](_0x5eeb05=>{if(_0x5eeb05)for(const _0x28c053 of _0x5eeb05)this[_0x4222('0x88')]({'id':_0x28c053['id'],'createdAt':_0x28c053[_0x4222('0x9c')]});this['_removePendingAction'](),this[_0x4222('0xa9')]();});}[_0x4222('0xfe')](_0x4d669f,_0x1a2836){let _0x4219d3=this[_0x4222('0x57')][_0x4222('0x40')][_0x4222('0xb5')]('initialData'),_0x155ef7=this[_0x4222('0x57')][_0x4222('0x40')][_0x4222('0xb5')]('rootsAttributes');if(void 0x0===_0x4219d3){_0x4219d3={};for(const _0x129c72 of this['editor'][_0x4222('0x3e')]['document'][_0x4222('0x2c')]())_0x4219d3[_0x129c72]='';}if(_0x4222('0x84')==typeof _0x4219d3&&(_0x4219d3={'main':_0x4219d3}),void 0x0===_0x155ef7){_0x155ef7={};for(const _0x9beac9 of this[_0x4222('0x57')][_0x4222('0x3e')][_0x4222('0x1c')][_0x4222('0x2c')]())_0x155ef7[_0x9beac9]={};}let _0x3a086d=!0x1;const _0x4b24c2=Object[_0x4222('0x3f')](_0x4219d3),_0x45b817=Object[_0x4222('0x3f')](_0x4d669f);for(const _0x4ea710 of _0x4b24c2){if(_0x4219d3[_0x4ea710]!==_0x4d669f[_0x4ea710]&&''!==_0x4219d3[_0x4ea710][_0x4222('0x5c')]()){_0x3a086d=!0x0;break;}if(!_0x11e894(_0x155ef7[_0x4ea710],_0x1a2836[_0x4ea710])&&Object[_0x4222('0x3f')](_0x155ef7[_0x4ea710])['length']>0x0){_0x3a086d=!0x0;break;}}_0x3a086d||(_0x3a086d=_0x45b817[_0x4222('0x2e')](_0x353425=>!this['editor'][_0x4222('0x3e')]['document'][_0x4222('0x74')](_0x353425))),_0x3a086d&&_0x991011(_0x4222('0xd3'),{'editorData':_0x4219d3,'editorRootsAttributes':_0x155ef7,'revisionData':_0x4d669f,'revisionRootsAttributes':_0x1a2836}),this[_0x4222('0x57')][_0x4222('0x40')][_0x4222('0xb4')](_0x4222('0x1'),_0x4d669f),this['editor'][_0x4222('0x40')][_0x4222('0xb4')](_0x4222('0xbb'),_0x1a2836);}[_0x4222('0x90')](){if(!this[_0x4222('0x26')]){const _0xed6568=this[_0x4222('0x57')]['plugins'][_0x4222('0xb5')](_0x4222('0xa7'));this[_0x4222('0x26')]=_0xed6568[_0x4222('0x17')](_0x1c3fa5(this['editor'][_0x4222('0x25')],_0x4222('0xa3')));}}[_0x4222('0xde')](){this[_0x4222('0x26')]&&(this['editor']['plugins']['get']('PendingActions')[_0x4222('0xf5')](this[_0x4222('0x26')]),this[_0x4222('0x26')]=null);}['_findInsertionIndex'](_0x470e03){const _0x996ccf=this[_0x4222('0x16')][_0x4222('0xdb')]();_0x996ccf[_0x4222('0xc0')]();let _0x428e77=0x0;for(;_0x428e77<_0x996ccf[_0x4222('0xaf')];){const _0x4fc758=_0x996ccf[_0x428e77];if(_0x4fc758===this[_0x4222('0x5a')]){_0x428e77++;continue;}if(_0x4fc758['id']===this['_initialRevisionId'])break;const _0x38acdf=_0x470e03[_0x4222('0x50')]-_0x4fc758['toVersion']||_0x470e03[_0x4222('0xa6')]-_0x4fc758['fromVersion'];if(_0x38acdf>0x0)break;if(_0x38acdf<0x0)_0x428e77++;else{if(!_0x470e03[_0x4222('0xe7')]&&_0x4fc758[_0x4222('0xe7')])break;if(_0x4fc758['creator']||!_0x470e03[_0x4222('0xe7')]){if(_0x470e03[_0x4222('0x9c')]>_0x4fc758[_0x4222('0x9c')])break;_0x428e77++;}else _0x428e77++;}}return _0x428e77;}[_0x4222('0x88')](_0x43c17b){const _0x8b5852=this[_0x4222('0x16')]['getRevision'](_0x43c17b['id']);if(_0x43c17b['createdAt']&&(_0x43c17b['createdAt']=new Date(_0x43c17b[_0x4222('0x9c')])),_0x43c17b[_0x4222('0x10')]){const _0x5da5af=this[_0x4222('0x57')][_0x4222('0x1f')][_0x4222('0xb5')](_0x4222('0xbd'));_0x43c17b[_0x4222('0xb0')]=_0x43c17b[_0x4222('0x10')]['map'](_0x504e56=>_0x5da5af[_0x4222('0x76')](_0x504e56));}_0x8b5852[_0x4222('0xca')](_0x43c17b,!0x0);}[_0x4222('0xe8')]({revision:_0x461df5=null,from:_0x39e5f3=null,to:_0x48865c=null}){_0x39e5f3=null!==_0x39e5f3?_0x39e5f3:_0x461df5['fromVersion'],_0x48865c=null!==_0x48865c?_0x48865c:_0x461df5[_0x4222('0x50')];const _0x6102b2=this['_revisionDataBuilder']['getData'](_0x39e5f3,_0x48865c),_0x292c2e={'diffData':_0x6102b2[_0x4222('0x3c')],'authorsIds':_0x6102b2['authorsIds'],'fromVersion':_0x39e5f3,'toVersion':_0x48865c};if(!_0x461df5||_0x48865c!==_0x461df5['toVersion']){const _0x21064c=_0x48865c-0x1,_0x231c69=this[_0x4222('0x34')][_0x4222('0x9')][_0x4222('0x62')](_0x21064c);_0x292c2e['createdAt']=_0x231c69&&_0x231c69[_0x4222('0x9c')]||new Date();}if(this[_0x4222('0xc8')]&&_0x39e5f3===this[_0x4222('0xc8')]['fromVersion'])for(const _0x337dfd of this[_0x4222('0xc8')][_0x4222('0xb0')])_0x292c2e['authorsIds'][_0x4222('0xa1')](_0x337dfd['id'])||_0x292c2e[_0x4222('0x10')][_0x4222('0x87')](_0x337dfd['id']);return _0x292c2e;}['_loadRevisionData'](_0x193257){if(!_0x193257||_0x193257[_0x4222('0x3c')])return Promise['resolve']();{const _0x41b5a4=this[_0x4222('0x57')]['config'][_0x4222('0xb5')]('collaboration.channelId');return this[_0x4222('0xea')]['getRevision']({'channelId':_0x41b5a4,'revisionId':_0x193257['id']})[_0x4222('0x8b')](_0x1606dd=>{_0x193257[_0x4222('0x3c')]=_0x1606dd[_0x4222('0x3c')];});}}[_0x4222('0x52')](_0x2a1eed,_0x4d609c,_0x52d06e){if(this[_0x4222('0xa0')]['has'](_0x2a1eed)){const _0x3ea77c=this[_0x4222('0xa0')][_0x4222('0xb5')](_0x2a1eed);_0x4d609c=_0x52d06e?{..._0x3ea77c,..._0x4d609c}:{..._0x4d609c,..._0x3ea77c};}this[_0x4222('0xa0')][_0x4222('0xb4')](_0x2a1eed,_0x4d609c);}['_getFromVersion'](_0x23dace){const _0x574347=this[_0x4222('0x16')][_0x4222('0xdb')]();_0x574347[_0x4222('0xc0')](),_0x574347['shift']();const _0x556d07=_0x574347['find'](_0x3146d7=>_0x3146d7['toVersion']<=_0x23dace)['toVersion'];return _0x556d07<this['_startingVersion']?this['_startingVersion']:_0x556d07;}[_0x4222('0x55')](_0x8bfd6a){const _0x49e0b1=this[_0x4222('0x16')][_0x4222('0xfb')](this['repository'][_0x4222('0xaf')]-0x1);if(_0x49e0b1)this[_0x4222('0x23')]=_0x49e0b1['id'];else{const _0xc21da7=!this['editor']['model'][_0x4222('0x1c')][_0x4222('0x13')][_0x4222('0xd7')](_0x12b7f0=>this['editor'][_0x4222('0x3e')]['hasContent'](_0x12b7f0)),_0x961b7e=this[_0x4222('0x57')]['plugins'][_0x4222('0xb5')](_0x4222('0xbd'))['me']['id'],_0x25a3b9=_0x1c3fa5(this['editor'][_0x4222('0x25')],_0xc21da7?_0x4222('0x60'):'Initial\x20revision');this['_makeRevision']({'from':_0x8bfd6a,'to':_0x8bfd6a,'id':this['_initialRevisionId'],'name':_0x25a3b9,'creatorId':_0x961b7e});}}[_0x4222('0xe6')](_0xed36a7){const _0x37a3bd=this[_0x4222('0x34')][_0x4222('0x0')]();this[_0x4222('0x5a')]=this['repository'][_0x4222('0xfb')](_0x37a3bd),this[_0x4222('0x5a')]||(this[_0x4222('0x5a')]=this['_makeRevision']({'from':_0xed36a7,'to':_0xed36a7,'id':_0x37a3bd,'name':'','creatorId':null}));}[_0x4222('0x98')]({name:_0x254a6e,from:_0x4528ee,to:_0x43c2ee,creatorId:_0x39b649,id:_0x1f565e}){const _0x1199db=this[_0x4222('0xe8')]({'from':_0x4528ee,'to':_0x43c2ee});_0x1199db[_0x4222('0xf1')]=_0x254a6e,_0x1199db[_0x4222('0x72')]=_0x39b649,_0x1199db['id']=_0x1f565e;const _0x31360e=this[_0x4222('0x80')](_0x1199db);return this[_0x4222('0xea')]&&this[_0x4222('0x52')](_0x1199db['id'],_0x1199db,!0x0),_0x31360e;}[_0x4222('0xf9')](){this[_0x4222('0x57')][_0x4222('0x103')][_0x4222('0x63')]('dataDowncast')['markerToData']({'model':_0x4222('0xeb')});}[_0x4222('0x4')](_0x192ac1){return(_0x192ac1=_0x192ac1['filter'](_0xe402fb=>!_0xe402fb[_0x4222('0xf1')]||'revision-start'!==_0xe402fb[_0x4222('0xf1')]&&'revision-end'!==_0xe402fb[_0x4222('0xf1')]))[_0x4222('0x18')](_0x4e370f=>{_0x4222('0x84')!=typeof _0x4e370f&&(_0x4e370f[_0x4222('0xe4')]=this[_0x4222('0x4')](_0x4e370f['children']),_0x4e370f[_0x4222('0x7b')]=_0x4e370f[_0x4222('0x7b')]['filter'](_0x4fb3d3=>!_0x4fb3d3[0x0]['startsWith'](_0x4222('0xef'))));}),_0x192ac1;}}function J(_0x542007,_0x270375){const _0x25a370=_0x270375['editing'][_0x4222('0xfa')][_0x4222('0x1c')];if(_0x4222('0x84')==typeof _0x542007)return new _0x4a20b8(_0x25a370,_0x542007);{const _0x57ed9f=_0x542007[_0x4222('0xe4')][_0x4222('0xd0')](_0x3099d5=>J(_0x3099d5,_0x270375));return new(B[_0x542007[(_0x4222('0xf7'))]]||_0x4c6a6d)(_0x25a370,_0x542007[_0x4222('0xf1')],_0x542007['attributes'],_0x57ed9f);}}class H{constructor(_0x250bac){this[_0x4222('0x57')]=_0x250bac,this[_0x4222('0xf6')]=new Map(),this[_0x4222('0x2f')]=-0x1,this[_0x4222('0x58')]=-0x1,this['_markers']=new Map(),this[_0x4222('0x44')]=new Map(),this[_0x4222('0xe3')]=new Map(),this[_0x4222('0x9f')]=new Map(),this[_0x4222('0xae')]=new Map(),this[_0x4222('0xc')]=new Map(),this[_0x4222('0xfc')]=new Map(),this['_touched']=new Map(),this[_0x4222('0x2d')]=new Map(),this[_0x4222('0x6c')]=new Map(),this[_0x4222('0xbc')]=0x1;}[_0x4222('0xd1')](_0x4d7e2a){this[_0x4222('0x45')]=_0x4d7e2a;const _0xf20f17=new Map(),_0xa9b2af=new Map(),_0x2fd685=this[_0x4222('0x57')][_0x4222('0x3e')][_0x4222('0x1c')][_0x4222('0x13')][_0x4222('0xd0')](_0x409a74=>_0x409a74[_0x4222('0xc2')]);for(const _0xd06fdc of _0x2fd685){const _0x3566a4=this['editor'][_0x4222('0x3e')]['document'][_0x4222('0x74')](_0xd06fdc),_0x3001c6=q(_0x3566a4);_0xf20f17['set'](_0xd06fdc,_0x3001c6),_0xa9b2af[_0x4222('0xb4')](_0xd06fdc,Object[_0x4222('0x6e')](_0x3566a4['getAttributes']()));}const _0x103798=Array[_0x4222('0xb7')](this[_0x4222('0x57')][_0x4222('0x3e')][_0x4222('0x46')])['map'](_0x4c1cb6=>[_0x4c1cb6[_0x4222('0xf1')],_0x4c1cb6[_0x4222('0x64')]()]),_0x2e9df3=this['source'][_0x4222('0x65')];this[_0x4222('0xcd')](_0x2e9df3,_0xf20f17,_0x103798,_0xa9b2af),this[_0x4222('0x27')]=this[_0x4222('0xbc')];const _0x10a830=new Map(),_0x595c1a=new Map();for(const _0x386c89 of _0x2fd685){const _0x22930c=G(_0x386c89);_0x10a830['set'](_0x386c89,_0x22930c),_0x595c1a[_0x4222('0xb4')](_0x386c89,{});}this[_0x4222('0xcd')](Number['NEGATIVE_INFINITY'],_0x10a830,[],_0x595c1a);}[_0x4222('0xa4')](_0xf19e03,_0xcc74bb){if(this['_lastFrom']===_0xf19e03&&this[_0x4222('0x58')]<=_0xcc74bb)this[_0x4222('0xf6')][_0x4222('0xfd')]>0x1&&this[_0x4222('0xf2')](this[_0x4222('0x58')]),this[_0x4222('0x70')](this[_0x4222('0x58')],_0xcc74bb,!0x0);else{if(!this[_0x4222('0xf6')][_0x4222('0xdd')](_0xf19e03)){const _0x37f6cb=this['_getPreviousFrom'](_0xf19e03);this[_0x4222('0x43')](_0x37f6cb,_0xf19e03,!0x1);}this['_calculateMetaData'](_0xf19e03,_0xcc74bb,!0x0);}return this[_0x4222('0x2f')]=_0xf19e03,this[_0x4222('0x58')]=_0xcc74bb,this[_0x4222('0xd4')]();}['loadState'](_0x77b146){this[_0x4222('0xd')](),this[_0x4222('0x2f')]=_0x77b146[_0x4222('0xa6')],this[_0x4222('0x58')]=_0x77b146[_0x4222('0x50')];for(const _0x1d01a2 in _0x77b146['diffData']){const _0x5b89e6=_0x77b146['diffData'][_0x1d01a2][_0x4222('0x105')],_0x29f01b=_0x44d25a(_0x77b146[_0x4222('0x3c')][_0x1d01a2][_0x4222('0x12')])||{},_0x404383=this[_0x4222('0x36')](_0x77b146['diffData'][_0x1d01a2]['deletions']);_0x404383[_0x4222('0xc2')]=_0x1d01a2,_0x404383[_0x4222('0x21')]=!_0x5b89e6||!_0x5b89e6[_0x4222('0x71')],_0x404383['isAttached']=()=>_0x404383[_0x4222('0x21')],this['_baseRoots'][_0x4222('0xb4')](_0x1d01a2,_0x404383),this[_0x4222('0xae')]['set'](_0x1d01a2,_0x29f01b),_0x5b89e6&&this[_0x4222('0x6c')][_0x4222('0xb4')](_0x1d01a2,_0x5b89e6);const _0x2efbd4=this[_0x4222('0x31')](_0x404383);this['_baseIdsRoots'][_0x4222('0xb4')](_0x1d01a2,_0x2efbd4);for(const [_0x30a629,_0x3faff2]of _0x404383['markers']){if(!_0x30a629[_0x4222('0xf')](_0x4222('0xc9')))continue;const _0x55dd26=_0x30a629[_0x4222('0xb3')](':')[0x2];for(const _0x21f39b of _0x3faff2[_0x4222('0xe2')]({'singleCharacters':!0x0})){const _0x2de243=this['_getVidAttributeName'](_0x21f39b),_0xbf61a7='elementEnd'==_0x21f39b[_0x4222('0xf7')]?_0x21f39b['previousPosition'][_0x4222('0x89')][_0x4222('0xcf')](0x0,-0x1):_0x21f39b['previousPosition'][_0x4222('0x89')],_0x542678=_0x2efbd4[_0x4222('0xe1')](_0xbf61a7)[_0x4222('0x3b')](_0x2de243);this[_0x4222('0x78')]['set'](_0x542678,{'userId':_0x55dd26});}}}this[_0x4222('0x27')]=this['_revisionId'];const _0x4e1ec9=[...Array(this[_0x4222('0xbc')])[_0x4222('0x3f')]()][_0x4222('0xcf')](0x1)[_0x4222('0xab')](_0x364aea=>!this['_touched'][_0x4222('0xdd')](_0x364aea));let _0x4a7aa5=0x0;const _0x3fa90a=new Map();for(const _0x432620 in _0x77b146[_0x4222('0x3c')]){const _0x1379c6=_0x77b146[_0x4222('0x3c')][_0x432620][_0x4222('0x105')],_0x6dca18=_0x44d25a(_0x77b146[_0x4222('0x3c')][_0x432620][_0x4222('0xec')])||{},_0x3703a9=this['_makeModelFromViewString'](_0x77b146[_0x4222('0x3c')][_0x432620][_0x4222('0xdc')]);_0x3703a9[_0x4222('0xc2')]=_0x432620,_0x3703a9[_0x4222('0x21')]=!_0x1379c6||_0x1379c6[_0x4222('0x71')],_0x3703a9['isAttached']=()=>_0x3703a9[_0x4222('0x21')],this['_diffRoots'][_0x4222('0xb4')](_0x432620,_0x3703a9),this['_diffRootsAttributes'][_0x4222('0xb4')](_0x432620,_0x6dca18);const _0x2129ba=this[_0x4222('0x31')](_0x3703a9,Number[_0x4222('0xd8')]);this[_0x4222('0xc')][_0x4222('0xb4')](_0x432620,_0x2129ba),_0x3fa90a[_0x4222('0xb4')](_0x432620,_0x3703a9[_0x4222('0x71')]()?_0x6dca18:{});for(const [_0xb834b6,_0xccad94]of _0x3703a9[_0x4222('0x46')]){if(!_0xb834b6[_0x4222('0xf')](_0x4222('0xc9')))continue;const _0x104427=_0xb834b6['split'](':')[0x2];for(const _0x301717 of _0xccad94[_0x4222('0xe2')]({'singleCharacters':!0x0})){const _0x535508=this[_0x4222('0x8e')](_0x301717),_0x1be44d=this[_0x4222('0xbc')]++,_0x33a9b4=_0x4222('0x33')==_0x301717[_0x4222('0xf7')]?_0x301717[_0x4222('0xe')]['path'][_0x4222('0xcf')](0x0,-0x1):_0x301717[_0x4222('0xe')][_0x4222('0x89')];_0x2129ba[_0x4222('0xe1')](_0x33a9b4)['_setAttribute'](_0x535508,_0x1be44d),this[_0x4222('0x78')][_0x4222('0xb4')](_0x1be44d,{'userId':_0x104427});}}for(const _0x6d7fc4 of this[_0x4222('0x57')][_0x4222('0x3e')][_0x4222('0xc4')](_0x3703a9)[_0x4222('0xe2')]({'singleCharacters':!0x0})){const _0x1700ac=this['_getVidAttributeName'](_0x6d7fc4),_0x5d7eb5='elementEnd'==_0x6d7fc4[_0x4222('0xf7')]?_0x6d7fc4[_0x4222('0xe')][_0x4222('0x89')][_0x4222('0xcf')](0x0,-0x1):_0x6d7fc4[_0x4222('0xe')][_0x4222('0x89')],_0x1f3f78=_0x2129ba[_0x4222('0xe1')](_0x5d7eb5);_0x1f3f78[_0x4222('0x3b')](_0x1700ac)>0x0||_0x1f3f78['_setAttribute'](_0x1700ac,_0x4e1ec9[_0x4a7aa5++]);}for(const [_0x5bcd35,_0x335c3f]of _0x3703a9[_0x4222('0x46')])_0x5bcd35['startsWith']('revision:')||this[_0x4222('0x68')][_0x4222('0xb4')](_0x5bcd35,_0x335c3f);}const _0x4a2676=G('$graveyard');this[_0x4222('0x9f')]['set'](_0x4222('0x73'),_0x4a2676),this[_0x4222('0xfc')][_0x4222('0xb4')](_0x4222('0x73'),this[_0x4222('0x31')](_0x4a2676,0x1));const _0x3ea0e7=G(_0x4222('0x73'));this[_0x4222('0x44')][_0x4222('0xb4')](_0x4222('0x73'),_0x3ea0e7),this['_idsRoots'][_0x4222('0xb4')](_0x4222('0x73'),this[_0x4222('0x31')](_0x3ea0e7,0x1));const _0x378b3f=Array[_0x4222('0xb7')](this[_0x4222('0x44')])[_0x4222('0xd0')](([_0x4934cb,_0x103510])=>[_0x4934cb,q(_0x103510)]);this[_0x4222('0xcd')](this[_0x4222('0x58')],_0x378b3f,this[_0x4222('0x68')],_0x3fa90a);}['_makeModelFromViewString'](_0x5b5066){const _0x3b6cc8=JSON[_0x4222('0xf3')](_0x5b5066),_0x5ce546=this[_0x4222('0x57')][_0x4222('0xce')][_0x4222('0xfa')]['document'],_0x739a7=new _0x117f7d(_0x5ce546,_0x3b6cc8[_0x4222('0xd0')](_0x1470fb=>J(_0x1470fb,this[_0x4222('0x57')])));return this[_0x4222('0x57')][_0x4222('0x4c')][_0x4222('0xc7')](_0x739a7);}[_0x4222('0xcd')](_0x362c82,_0x50d6b5,_0x4c3cdc,_0x5ec344){const _0x45d880=new Map(_0x50d6b5),_0x4792f2=new Map(_0x44d25a(_0x5ec344)),_0x514b8d=new Map();for(const [_0x5f0de2,_0x4e128a]of _0x4c3cdc)_0x514b8d[_0x4222('0xb4')](_0x5f0de2,{'start':_0x4e128a['start'][_0x4222('0xda')](),'end':_0x4e128a[_0x4222('0x2b')][_0x4222('0xda')](),'rootName':_0x4e128a[_0x4222('0x6b')]['rootName']});this['_savedMetaData']['set'](_0x362c82,{'roots':_0x45d880,'markers':_0x514b8d,'rootsAttributes':_0x4792f2});}[_0x4222('0xf2')](_0x4ac9e7){this[_0x4222('0xf6')][_0x4222('0x3d')](_0x4ac9e7);}[_0x4222('0x1e')](){this['_reset'](),this[_0x4222('0x2f')]=-0x1,this[_0x4222('0x58')]=-0x1,this['_savedMetaData']['clear'](),this['init'](this[_0x4222('0x45')]);}[_0x4222('0xd')](){this[_0x4222('0x78')][_0x4222('0x1b')](),this[_0x4222('0x2d')]['clear'](),this['_touchedRoots'][_0x4222('0x1b')](),this['_diffRoots'][_0x4222('0x1b')](),this[_0x4222('0xe3')][_0x4222('0x1b')](),this[_0x4222('0x9f')][_0x4222('0x1b')](),this['_baseRootsAttributes']['clear'](),this['_idsRoots'][_0x4222('0x1b')](),this[_0x4222('0xfc')][_0x4222('0x1b')](),this['_markers'][_0x4222('0x1b')](),this['_revisionId']=0x1,this['_startingRevisionId']=this[_0x4222('0xbc')];}['_makeIdsRoot'](_0x3f289f,_0x43a4ed=null){let _0x3733c0=null;_0x3f289f['is'](_0x4222('0x4f'))||(_0x3733c0=new _0x5b1cbc(_0x3f289f[_0x4222('0xf1')],{'vid_start':null===_0x43a4ed?this[_0x4222('0xbc')]++:_0x43a4ed++}));const _0x33484e=[];for(const _0x14786b of _0x3f289f[_0x4222('0x8f')]())if(_0x14786b['is'](_0x4222('0x51'))){_0x33484e[_0x4222('0x87')](this[_0x4222('0x31')](_0x14786b,_0x43a4ed));const _0x358d8b=_0x33484e[_0x33484e[_0x4222('0xaf')]-0x1];null!==_0x43a4ed&&(_0x43a4ed=_0x358d8b['is'](_0x4222('0x51'),_0x4222('0x5d'))?_0x358d8b[_0x4222('0x3b')](_0x4222('0x30'))+0x1:_0x358d8b[_0x4222('0x3b')](_0x4222('0x54'))+0x1);}else for(let _0x411b25=0x0;_0x411b25<_0x14786b[_0x4222('0x29')];_0x411b25++)_0x33484e[_0x4222('0x87')](new _0x5b1cbc('$text',{'vid':null===_0x43a4ed?this[_0x4222('0xbc')]++:_0x43a4ed++}));if(_0x3f289f['is'](_0x4222('0x4f'))){const _0x10ba15=G(_0x3f289f[_0x4222('0xc2')]);return _0x10ba15[_0x4222('0xb')](0x0,_0x33484e),_0x10ba15;}return _0x3733c0[_0x4222('0x53')](_0x4222('0x54'),null===_0x43a4ed?this[_0x4222('0xbc')]++:_0x43a4ed++),_0x3733c0['_insertChild'](0x0,_0x33484e),_0x3733c0;}[_0x4222('0x43')](_0x521af1,_0x3c2b90,_0x15f847){this[_0x4222('0xd')]();const {roots:_0x129e9f,markers:_0x246456,rootsAttributes:_0x129a1b}=this[_0x4222('0xf6')][_0x4222('0xb5')](_0x521af1);this[_0x4222('0x9f')]=new Map(_0x129e9f),this['_baseRootsAttributes']=new Map(_0x44d25a(_0x129a1b));for(const [_0x47be6e,_0x3a6e2a]of this[_0x4222('0x9f')])if('$graveyard'!==_0x47be6e&&(this[_0x4222('0x44')][_0x4222('0xb4')](_0x47be6e,q(_0x3a6e2a)),this[_0x4222('0xe3')]=new Map(_0x44d25a(_0x129a1b)),_0x15f847)){const _0x436fdb=this[_0x4222('0xbc')];this[_0x4222('0xc')][_0x4222('0xb4')](_0x47be6e,this['_makeIdsRoot'](_0x3a6e2a)),this[_0x4222('0xfc')][_0x4222('0xb4')](_0x47be6e,this[_0x4222('0x31')](_0x3a6e2a,_0x436fdb));}this[_0x4222('0x27')]=this[_0x4222('0xbc')],this['_diffRoots'][_0x4222('0xb4')](_0x4222('0x73'),q(this[_0x4222('0x9f')]['get'](_0x4222('0x73')))),_0x15f847&&this[_0x4222('0xc')][_0x4222('0xb4')](_0x4222('0x73'),this[_0x4222('0x31')](this[_0x4222('0x9f')]['get'](_0x4222('0x73'))));for(const [_0x3a769c,_0x2d12c7]of _0x246456){const _0x1fc6d6=this[_0x4222('0x9f')][_0x4222('0xb5')](_0x2d12c7[_0x4222('0xc2')]),_0x5ddcaa=this[_0x4222('0x44')][_0x4222('0xb5')](_0x2d12c7[_0x4222('0xc2')]),_0x3c362f=new _0x3edc46(this[_0x4222('0x6f')](_0x2d12c7['start'],_0x1fc6d6),this[_0x4222('0x6f')](_0x2d12c7['end'],_0x1fc6d6)),_0x248c5=this[_0x4222('0x108')](_0x3c362f,_0x5ddcaa);_0x1fc6d6[_0x4222('0x46')][_0x4222('0xb4')](_0x3a769c,_0x3c362f),this[_0x4222('0x68')]['set'](_0x3a769c,_0x248c5);}this['_applyOperations'](_0x521af1,_0x3c2b90,_0x15f847);}[_0x4222('0x70')](_0x57c30c,_0x24cfe4,_0x3f6bfb){for(const _0xfe96d1 of this[_0x4222('0x45')][_0x4222('0xa8')](_0x57c30c,_0x24cfe4))this['_handleOperation'](_0xfe96d1,_0x3f6bfb);for(const _0x346b70 of this[_0x4222('0x44')][_0x4222('0x35')]())_0x346b70[_0x4222('0x46')][_0x4222('0x1b')]();for(const [_0x50beb2,_0x383711]of this['_markers']){this[_0x4222('0x44')]['get'](_0x383711[_0x4222('0x6b')][_0x4222('0xc2')])[_0x4222('0x46')][_0x4222('0xb4')](_0x50beb2,_0x383711['clone']());}const _0x3ce935=new Map(),_0x4a2939=new Map();for(const [_0x466ca6,_0x50c7aa]of this[_0x4222('0x44')])_0x3ce935[_0x4222('0xb4')](_0x466ca6,q(_0x50c7aa)),_0x4a2939[_0x4222('0xb4')](_0x466ca6,this[_0x4222('0xe3')][_0x4222('0xb5')](_0x466ca6));this[_0x4222('0xcd')](_0x24cfe4,_0x3ce935,this[_0x4222('0x68')],_0x4a2939);}['_getPreviousFrom'](_0x3337e1){const _0x39d497=Array[_0x4222('0xb7')](this[_0x4222('0xf6')][_0x4222('0x3f')]());_0x39d497[_0x4222('0xac')]((_0x359c73,_0x4e723c)=>_0x359c73-_0x4e723c),_0x39d497[_0x4222('0xc0')]();for(const _0x2783a1 of _0x39d497)if(_0x2783a1<_0x3337e1)return _0x2783a1;return Number['NEGATIVE_INFINITY'];}[_0x4222('0xf8')](_0xf185c,_0x1cdb7e){const _0x98826c=Array[_0x4222('0xb7')](_0x1cdb7e[_0x4222('0x46')])[_0x4222('0xd0')](([_0xc8ece8,_0x1d5612])=>[_0xc8ece8,this[_0x4222('0x108')](_0x1d5612,_0xf185c)]);_0xf185c[_0x4222('0x46')]=new Map(_0x98826c);}[_0x4222('0x9e')](_0x41b7b0){for(const _0x3f744e of this[_0x4222('0x68')]['values']()){const _0x1a05dd=_0x3f744e['getTransformedByOperation'](_0x41b7b0),_0x449626=_0x3edc46[_0x4222('0x7e')](_0x1a05dd);_0x3f744e['start']=_0x449626['start'],_0x3f744e[_0x4222('0x2b')]=_0x449626['end'];}}[_0x4222('0x9b')](_0x438c41,_0xec9bb4){if('addRoot'==_0x438c41[_0x4222('0xf7')]||_0x4222('0x7')==_0x438c41[_0x4222('0xf7')])return void this[_0x4222('0xf4')](_0x438c41,_0xec9bb4);if(_0x4222('0xf0')==_0x438c41[_0x4222('0xf7')]){const _0xd3a10a=_0x438c41[_0x4222('0xd9')][_0x4222('0x6b')]['rootName'];this[_0x4222('0x44')][_0x4222('0xdd')](_0xd3a10a)||(this[_0x4222('0x44')][_0x4222('0xb4')](_0xd3a10a,G(_0xd3a10a,!0x0)),this[_0x4222('0xe3')][_0x4222('0xb4')](_0xd3a10a,{}),_0xec9bb4&&this[_0x4222('0xc')][_0x4222('0xb4')](_0xd3a10a,G(_0xd3a10a,!0x0)));}else{if(_0x4222('0xa2')==_0x438c41['type']||_0x4222('0x92')==_0x438c41[_0x4222('0xf7')]||_0x4222('0x67')==_0x438c41[_0x4222('0xf7')])return void this[_0x4222('0xc5')](_0x438c41);}const _0x9285f5=this[_0x4222('0xbf')](_0x438c41,this[_0x4222('0x44')]);if('marker'!==_0x438c41[_0x4222('0xf7')]&&(_0x9285f5['_execute'](),this[_0x4222('0x9e')](_0x9285f5)),_0xec9bb4)switch(_0x9285f5[_0x4222('0xf7')]){case _0x4222('0xf0'):this['_handleInsertOperation'](_0x438c41);break;case _0x4222('0xb8'):case _0x4222('0xf5'):case _0x4222('0x24'):this[_0x4222('0x3a')](_0x438c41);break;case _0x4222('0xdf'):this[_0x4222('0x66')](_0x438c41);break;case'split':this[_0x4222('0xe9')](_0x438c41);break;case'marker':this['_handleMarkerOperation'](_0x438c41);}}[_0x4222('0xbf')](_0x3a2ba4,_0x5b8ac9){const _0x1cb65d=_0x3a2ba4[_0x4222('0xda')]();return _0x1cb65d[_0x4222('0x69')]=_0x3a2ba4['_authorId'],this['_fixOperation'](_0x1cb65d,_0x5b8ac9),_0x1cb65d;}[_0x4222('0x104')](_0x520d9d){return _0x520d9d[_0x4222('0xd0')](_0x3aa254=>{const _0x54a456=this[_0x4222('0x8e')](_0x3aa254);return Number(_0x3aa254['item']['getAttribute'](_0x54a456));});}[_0x4222('0x38')](_0x5a00a3,_0x3d20e1){if(_0x5a00a3['is'](_0x4222('0x51'),'$text'))_0x3d20e1[_0x4222('0x87')]({'item':_0x5a00a3,'type':_0x4222('0xad')});else{_0x5a00a3['is'](_0x4222('0x51'))&&_0x3d20e1[_0x4222('0x87')]({'item':_0x5a00a3,'type':_0x4222('0x8c')});for(const _0x47fbae of _0x5a00a3[_0x4222('0x8f')]())this[_0x4222('0x38')](_0x47fbae,_0x3d20e1);_0x5a00a3['is'](_0x4222('0x51'))&&_0x3d20e1[_0x4222('0x87')]({'item':_0x5a00a3,'type':'elementEnd'});}return _0x3d20e1;}['_getState'](){const _0xa88787=new Map(this[_0x4222('0x78')]),_0x1e8a4d=new Map(_0xa88787),_0x30c702=new Map(),_0x5a2f26={'insertions':{},'deletions':{}},_0x358de4={'insertions':{},'deletions':{}},_0xf5c78b=new Map(),_0x25872c=new Set([...this[_0x4222('0x9f')][_0x4222('0x3f')](),...this[_0x4222('0x44')][_0x4222('0x3f')]()]);_0x25872c[_0x4222('0x3d')]('$graveyard');for(const _0x2b340b of _0x25872c){const _0x5c6189=this[_0x4222('0x44')]['get'](_0x2b340b)||G(_0x2b340b,!0x1),_0x5d9403=this[_0x4222('0x9f')][_0x4222('0xb5')](_0x2b340b)||G(_0x2b340b,!0x1);_0x5c6189[_0x4222('0x71')]()||_0x5d9403['isAttached']()?(_0x5a2f26[_0x4222('0xdc')][_0x2b340b]=q(_0x5c6189),_0x5a2f26[_0x4222('0x96')][_0x2b340b]=q(_0x5d9403),this['_copyMarkers'](_0x5a2f26[_0x4222('0x96')][_0x2b340b],_0x5d9403),this['_copyMarkers'](_0x5a2f26[_0x4222('0xdc')][_0x2b340b],_0x5c6189),_0x358de4[_0x4222('0xdc')][_0x2b340b]=this[_0x4222('0x38')](this[_0x4222('0xc')][_0x4222('0xb5')](_0x2b340b),[]),_0x358de4[_0x4222('0x96')][_0x2b340b]=this[_0x4222('0x38')](this[_0x4222('0xfc')][_0x4222('0xb5')](_0x2b340b)||G(_0x2b340b,!0x1),[])):_0x25872c[_0x4222('0x3d')](_0x2b340b);}for(const _0x5a4699 of _0x25872c){const _0x3306a5=_0x358de4['insertions'][_0x5a4699];for(const _0x15b665 of _0x3306a5){const _0x487b19=this[_0x4222('0x8e')](_0x15b665),_0x5d1cb5=_0x15b665[_0x4222('0x95')][_0x4222('0x3b')](_0x487b19);_0x1e8a4d['delete'](_0x5d1cb5),_0x5d1cb5>=this[_0x4222('0x27')]&&_0x30c702[_0x4222('0xb4')](_0x5d1cb5,_0xa88787[_0x4222('0xb5')](_0x5d1cb5));}}for(const _0x360d6c of _0x25872c){const _0x59eeb4=_0x358de4[_0x4222('0xdc')][_0x360d6c],_0x5526bd=this['_getBaseVids'](_0x358de4[_0x4222('0x96')][_0x360d6c]);let _0x3a353e=0x0;for(const _0x555737 of _0x59eeb4){const _0x424d69=this['_getVidAttributeName'](_0x555737),_0x5d9261=_0x555737[_0x4222('0x95')][_0x4222('0x3b')](_0x424d69);if(!_0x30c702[_0x4222('0xdd')](_0x5d9261)&&!_0xf5c78b[_0x4222('0xdd')](_0x5d9261)){if(_0x1e8a4d[_0x4222('0xdd')](_0x5d9261))_0x3a353e++;else{if(_0x5d9261!=_0x5526bd[_0x3a353e]){const _0x339cac=_0xa88787['get'](_0x5d9261)||_0xa88787[_0x4222('0xb5')](_0x5526bd[_0x3a353e]);for(;_0x5d9261!=_0x5526bd[_0x3a353e];)_0x1e8a4d['has'](_0x5526bd[_0x3a353e])||(_0xf5c78b[_0x4222('0xb4')](_0x5526bd[_0x3a353e],_0x339cac),_0xa88787['set'](_0x5526bd[_0x3a353e],_0x339cac)),_0x3a353e++;}_0x3a353e++;}}}}for(const _0xbced31 of _0x25872c){const _0x3cc3c5=_0x358de4[_0x4222('0xdc')][_0xbced31];for(const _0x103398 of _0x3cc3c5){const _0x2e6c0d=this[_0x4222('0x8e')](_0x103398),_0x179b52=_0x103398['item'][_0x4222('0x3b')](_0x2e6c0d);if(_0xf5c78b[_0x4222('0xdd')](_0x179b52)){const _0x4e3912=_0xf5c78b[_0x4222('0xb5')](_0x179b52);_0x1e8a4d['has'](_0x179b52)||_0x1e8a4d['set'](_0x179b52,{..._0x4e3912}),_0x30c702['set'](_0x179b52,{..._0x4e3912});}}}for(const _0x93856c of _0x1e8a4d['keys']())_0x93856c>=this[_0x4222('0x27')]&&_0x1e8a4d['delete'](_0x93856c);const _0x2f6aa6=new Map();for(const _0x11d2dc of _0x25872c){let _0xa775ab=_0x358de4[_0x4222('0xdc')][_0x11d2dc];for(const _0x13f5f6 of _0xa775ab)if(_0x13f5f6[_0x4222('0x95')]['is']('element',_0x4222('0x2a'))){const _0x49eae6=this[_0x4222('0x8e')](_0x13f5f6),_0xb65cdd=_0x13f5f6[_0x4222('0x95')]['getAttribute'](_0x49eae6);if(_0x30c702[_0x4222('0xdd')](_0xb65cdd)){const _0x1bb76a=_0x13f5f6[_0x4222('0x95')][_0x4222('0xcc')]['parent']['getAttribute']('vid_start'),_0x5682a5=_0x2f6aa6[_0x4222('0xb5')](_0x1bb76a)||new Set();_0x5682a5[_0x4222('0x17')](_0x30c702['get'](_0xb65cdd)[_0x4222('0xc6')]),_0x2f6aa6[_0x4222('0xb4')](_0x1bb76a,_0x5682a5);}}_0xa775ab=_0x358de4['deletions'][_0x11d2dc];for(const _0x5f5689 of _0xa775ab)if(_0x5f5689['item']['is']('element','tableCell')){const _0x5d7d37=this[_0x4222('0x8e')](_0x5f5689),_0x3bdff5=_0x5f5689[_0x4222('0x95')]['getAttribute'](_0x5d7d37);if(_0x1e8a4d[_0x4222('0xdd')](_0x3bdff5)){const _0x592f55=_0x5f5689['item'][_0x4222('0xcc')][_0x4222('0xcc')][_0x4222('0x3b')](_0x4222('0x6d')),_0x3853d7=_0x2f6aa6['get'](_0x592f55)||new Set();_0x3853d7[_0x4222('0x17')](_0x1e8a4d['get'](_0x3bdff5)[_0x4222('0xc6')]),_0x2f6aa6[_0x4222('0xb4')](_0x592f55,_0x3853d7);}}for(const _0x1dc8e1 of _0x2f6aa6[_0x4222('0x3f')]())(_0x30c702['has'](_0x1dc8e1)||_0x1e8a4d[_0x4222('0xdd')](_0x1dc8e1))&&_0x2f6aa6[_0x4222('0x3d')](_0x1dc8e1);}for(const _0x5b6a1d of _0x25872c){const _0x5c2c39=_0x358de4['insertions'][_0x5b6a1d];let _0x28e7f2=null,_0x2402fb=null;for(const _0x2ce965 of _0x5c2c39){const _0x17916b=this[_0x4222('0x8e')](_0x2ce965),_0x35e064=_0x2ce965[_0x4222('0x95')]['getAttribute'](_0x17916b),_0x4d94a3=_0x2f6aa6[_0x4222('0xb5')](_0x35e064);_0x4d94a3&&_0x4222('0x8c')==_0x2ce965[_0x4222('0xf7')]&&(_0x28e7f2=Array['from'](_0x4d94a3)[0x0],_0x2402fb=_0x2ce965[_0x4222('0x95')][_0x4222('0x3b')](_0x4222('0x54'))),_0x28e7f2&&(_0x1e8a4d['set'](_0x35e064,{'userId':_0x28e7f2}),_0x30c702[_0x4222('0xb4')](_0x35e064,{'userId':_0x28e7f2})),_0x35e064==_0x2402fb&&(_0x28e7f2=null,_0x2402fb=null);}}const _0x2e3c05={},_0x13d653=new Set();for(const _0xcb4c of _0x25872c){const _0x7d7af8=_0x5a2f26['deletions'][_0xcb4c],_0x318fb0=_0x5a2f26[_0x4222('0xdc')][_0xcb4c];for(const {userId:_0x47a164}of this['_touchedMarkers'][_0x4222('0x35')]())null!==_0x47a164&&_0x13d653[_0x4222('0x17')](_0x47a164);for(const {userId:_0x3bef11}of this['_touchedRoots'][_0x4222('0x35')]())null!==_0x3bef11&&_0x13d653['add'](_0x3bef11);this[_0x4222('0x61')](_0x318fb0,_0x358de4[_0x4222('0xdc')][_0xcb4c],_0x30c702,_0x4222('0x32'),_0x13d653),this[_0x4222('0x61')](_0x7d7af8,_0x358de4[_0x4222('0x96')][_0xcb4c],_0x1e8a4d,_0x4222('0x99'),_0x13d653),_0x2e3c05[_0xcb4c]={'insertions':this[_0x4222('0x8a')](_0x318fb0),'deletions':this[_0x4222('0x8a')](_0x7d7af8),'attachChange':this[_0x4222('0x6c')][_0x4222('0xb5')](_0xcb4c)||null,'attributesBefore':_0x44d25a(this['_baseRootsAttributes']['get'](_0xcb4c))||{},'attributesAfter':_0x44d25a(this[_0x4222('0xe3')][_0x4222('0xb5')](_0xcb4c))};}return{'diffData':_0x2e3c05,'authorsIds':Array[_0x4222('0xb7')](_0x13d653)};}[_0x4222('0x4b')](_0x556333){for(const [,_0x5f4a37]of _0x556333[_0x4222('0x46')]){const _0x2603a8=_0x5f4a37[_0x4222('0x22')][_0x4222('0x101')]()[_0x4222('0xab')](_0x32d9d4=>_0x4222('0x2a')==_0x32d9d4[_0x4222('0xf1')]);for(const _0x361d43 of _0x2603a8)0x1==_0x361d43[_0x4222('0x8')]&&_0x361d43[_0x4222('0x49')](0x0)['is'](_0x4222('0x51'),_0x4222('0x106'))&&_0x361d43[_0x4222('0x49')](0x0)['_setAttribute'](_0x4222('0x93'),!0x0);}}[_0x4222('0x8a')](_0xcd12f6){this[_0x4222('0x4b')](_0xcd12f6);const _0x16411f=this['editor'][_0x4222('0x4c')][_0x4222('0xb6')](_0xcd12f6,{}),_0x4ad777=Array[_0x4222('0xb7')](_0x16411f['getChildren']())[_0x4222('0xd0')](_0x231dd5=>this['_getViewJson'](_0x231dd5));return JSON['stringify'](_0x4ad777);}[_0x4222('0x2')](_0x1286d4){if(_0x1286d4['is']('$text'))return _0x1286d4['data'];{const _0x107a73=_0x1286d4;return{'type':Object['keys'](B)[_0x4222('0xd7')](_0x31b0b3=>_0x1286d4 instanceof B[_0x31b0b3]),'name':_0x107a73[_0x4222('0xf1')],'attributes':Array[_0x4222('0xb7')](_0x107a73[_0x4222('0x107')]()),'children':Array['from'](_0x107a73[_0x4222('0x8f')]())['map'](_0x145bd4=>this['_getViewJson'](_0x145bd4))};}}[_0x4222('0x61')](_0x40a624,_0x4aa6cc,_0x1e2c1c,_0x3661c6,_0x54afad){let _0x3722de=null,_0x2209cb=null,_0x9bf09c=0x0;const _0x339dd4=this['editor'][_0x4222('0x3e')];for(let _0x319acd=0x0;_0x319acd<_0x4aa6cc[_0x4222('0xaf')];_0x319acd++){const _0x367962=this[_0x4222('0x8e')](_0x4aa6cc[_0x319acd]),_0xe138e7=_0x4aa6cc[_0x319acd][_0x4222('0x95')][_0x4222('0x3b')](_0x367962),_0x41e85c=_0x1e2c1c[_0x4222('0xb5')](_0xe138e7),_0x15dc7c=_0x319acd==_0x4aa6cc[_0x4222('0xaf')]-0x1;(!_0x3722de&&_0x41e85c&&(_0x3722de=_0x41e85c,_0x2209cb=_0x4aa6cc[_0x319acd]),_0x3722de&&(!_0x41e85c||_0x41e85c[_0x4222('0xc6')]!=_0x3722de[_0x4222('0xc6')]))&&(_0x1d081f(_0x41e85c,L(_0x2209cb,_0x40a624,_0x339dd4),L(_0x4aa6cc[_0x319acd],_0x40a624,_0x339dd4)),_0x3722de=_0x41e85c||null,_0x2209cb=_0x41e85c?_0x4aa6cc[_0x319acd]:null),_0x3722de&&_0x15dc7c&&_0x1d081f(_0x41e85c,L(_0x2209cb,_0x40a624,_0x339dd4),W(_0x4aa6cc[_0x319acd],_0x40a624,_0x339dd4));}function _0x1d081f(_0x17de32,_0x478e8f,_0x241204){const _0x180221=_0x3722de[_0x4222('0xc6')],_0x4f92fb=_0x4222('0xc9')+_0x3661c6+':'+_0x180221+':'+_0x9bf09c++,_0x5ee898=_0x339dd4[_0x4222('0x6')](_0x478e8f,_0x241204);_0x40a624[_0x4222('0x46')]['set'](_0x4f92fb,_0x5ee898),null!==_0x180221&&_0x54afad['add'](_0x180221);}}[_0x4222('0x8e')](_0x21ade8){switch(_0x21ade8[_0x4222('0xf7')]){case _0x4222('0x8c'):return'vid_start';case _0x4222('0x33'):return _0x4222('0x54');default:return _0x4222('0x30');}}[_0x4222('0x9d')](_0x1f2add,_0x334714){_0x1f2add['baseVersion']=null;for(const _0x19e12f in _0x1f2add){const _0x4ff376=_0x1f2add[_0x19e12f];if(_0x4ff376 instanceof _0xc1abe3){const _0x2b747b=_0x334714[_0x4222('0xb5')](_0x4ff376['root']['rootName']);_0x1f2add[_0x19e12f]=this[_0x4222('0x6f')](_0x4ff376,_0x2b747b);}if(_0x4ff376 instanceof _0x3edc46){const _0x7b2411=_0x334714[_0x4222('0xb5')](_0x4ff376[_0x4222('0x6b')][_0x4222('0xc2')]);_0x1f2add[_0x19e12f]=this['_fixRange'](_0x4ff376,_0x7b2411);}'root'===_0x19e12f&&(_0x1f2add[_0x4222('0x6b')]=_0x334714[_0x4222('0xb5')](_0x1f2add['root'][_0x4222('0xc2')]));}}['_fixRange'](_0x236ca4,_0x26173a){return this['editor'][_0x4222('0x3e')][_0x4222('0x6')](this[_0x4222('0x6f')](_0x236ca4[_0x4222('0x22')],_0x26173a),this[_0x4222('0x6f')](_0x236ca4[_0x4222('0x2b')],_0x26173a));}[_0x4222('0x6f')](_0xdfd684,_0x4f6c4b){return this[_0x4222('0x57')][_0x4222('0x3e')][_0x4222('0x56')](_0x4f6c4b,_0xdfd684['path'],_0xdfd684[_0x4222('0x102')]);}[_0x4222('0x100')](_0x5f3ca3){const _0x20ee16=this[_0x4222('0xc')][_0x4222('0xb5')](_0x5f3ca3[_0x4222('0xd9')][_0x4222('0x6b')][_0x4222('0xc2')]),_0x3b884b=this[_0x4222('0x6f')](_0x5f3ca3['position'],_0x20ee16),_0x3cb3d1=null===_0x5f3ca3[_0x4222('0x69')]?null:_0x5f3ca3[_0x4222('0x69')]||this[_0x4222('0x57')][_0x4222('0x1f')]['get'](_0x4222('0xbd'))['me']['id'],_0x404c54=_0x3b884b[_0x4222('0xcc')],_0x579388=this['_revisionId'],_0x44147d=[];for(const _0x10552f of _0x5f3ca3[_0x4222('0xcb')])if(_0x10552f['is'](_0x4222('0x51')))_0x44147d['push'](this['_makeIdsRoot'](_0x10552f));else for(let _0x250c96=0x0;_0x250c96<_0x10552f['offsetSize'];_0x250c96++)_0x44147d[_0x4222('0x87')](new _0x5b1cbc(_0x4222('0x5d'),{'vid':this['_revisionId']++}));const _0x351d86=this[_0x4222('0xbc')];for(let _0x23ba76=_0x579388;_0x23ba76<_0x351d86;_0x23ba76++)this[_0x4222('0x78')]['set'](_0x23ba76,{'userId':_0x3cb3d1});_0x404c54[_0x4222('0xb')](_0x3b884b[_0x4222('0x1d')],_0x44147d);}[_0x4222('0x3a')](_0x402628){(_0x402628=this['_cloneOperation'](_0x402628,this[_0x4222('0xc')]))[_0x4222('0xff')]();const _0x3e7ff7=null===_0x402628['_authorId']?null:_0x402628[_0x4222('0x69')]||this[_0x4222('0x57')][_0x4222('0x1f')]['get'](_0x4222('0xbd'))['me']['id'],_0x4480da=_0x402628[_0x4222('0xb2')](),_0x27856a=_0x4480da[_0x4222('0xcc')],_0x224a9f=_0x4480da[_0x4222('0x1d')];!function _0x181c23(_0x2811db,_0x2c33ac,_0x3913a8,_0x3aed19){for(let _0x2f905a=_0x3913a8;_0x2f905a<_0x3aed19;_0x2f905a++){const _0xe39d25=_0x2c33ac[_0x4222('0x49')](_0x2f905a);_0xe39d25['is'](_0x4222('0x51'),'$text')?_0x2811db[_0x4222('0xb4')](_0xe39d25[_0x4222('0x3b')](_0x4222('0x30')),{'userId':_0x3e7ff7}):(_0x2811db['set'](_0xe39d25[_0x4222('0x3b')](_0x4222('0x6d')),{'userId':_0x3e7ff7}),_0x181c23(_0x2811db,_0xe39d25,0x0,_0xe39d25[_0x4222('0x8')]),_0x2811db[_0x4222('0xb4')](_0xe39d25[_0x4222('0x3b')]('vid_end'),{'userId':_0x3e7ff7}));}}(this['_touched'],_0x27856a,_0x224a9f,_0x224a9f+_0x402628[_0x4222('0xc3')]);}[_0x4222('0x66')](_0x526947){const _0x80dd4e=null===(_0x526947=this[_0x4222('0xbf')](_0x526947,this[_0x4222('0xc')]))['_authorId']?null:_0x526947[_0x4222('0x69')]||this[_0x4222('0x57')]['plugins'][_0x4222('0xb5')](_0x4222('0xbd'))['me']['id'],_0x5eef1c=_0x526947[_0x4222('0x39')][_0x4222('0xcc')],_0x2dc568=_0x526947[_0x4222('0x37')][_0x4222('0xcc')],_0x1ef215=_0x5eef1c[_0x4222('0x3b')](_0x4222('0x54')),_0x50b56f=_0x2dc568[_0x4222('0x3b')](_0x4222('0x6d'));_0x5eef1c['_setAttribute']('vid_end',_0x2dc568[_0x4222('0x3b')](_0x4222('0x54'))),_0x2dc568['_setAttribute'](_0x4222('0x54'),_0x1ef215),this[_0x4222('0x78')][_0x4222('0xb4')](_0x50b56f,{'userId':_0x80dd4e}),this[_0x4222('0x78')][_0x4222('0xb4')](_0x1ef215,{'userId':_0x80dd4e}),_0x526947[_0x4222('0xff')]();}['_handleSplitOperation'](_0x83b4e2){const _0x46f059=null===(_0x83b4e2=this[_0x4222('0xbf')](_0x83b4e2,this[_0x4222('0xc')]))[_0x4222('0x69')]?null:_0x83b4e2[_0x4222('0x69')]||this[_0x4222('0x57')][_0x4222('0x1f')][_0x4222('0xb5')](_0x4222('0xbd'))['me']['id'],_0x9df4=_0x83b4e2[_0x4222('0x91')],_0x43c11f=_0x83b4e2['splitPosition'][_0x4222('0xcc')];_0x83b4e2[_0x4222('0xff')]();const _0x2f1e7a=_0x43c11f['getAttribute'](_0x4222('0x54')),_0x2d4605=_0x83b4e2['insertionPosition']['nodeAfter'];if(_0x9df4){const _0x137815=_0x2d4605['getAttribute'](_0x4222('0x54')),_0x5661fe=_0x43c11f[_0x4222('0x3b')](_0x4222('0x54'));_0x43c11f[_0x4222('0x53')]('vid_end',_0x137815),_0x2d4605[_0x4222('0x53')](_0x4222('0x54'),_0x5661fe),this[_0x4222('0x78')][_0x4222('0xb4')](_0x43c11f[_0x4222('0x3b')](_0x4222('0x54')),{'userId':_0x46f059}),this[_0x4222('0x78')][_0x4222('0xb4')](_0x2d4605[_0x4222('0x3b')]('vid_start'),{'userId':_0x46f059});}else{const _0x4db8f4=this['_revisionId']++,_0x4e0f96=this[_0x4222('0xbc')]++;_0x43c11f[_0x4222('0x53')](_0x4222('0x54'),_0x4db8f4),_0x2d4605[_0x4222('0x53')]('vid_start',_0x4e0f96),_0x2d4605[_0x4222('0x53')](_0x4222('0x54'),_0x2f1e7a),this[_0x4222('0x78')][_0x4222('0xb4')](_0x4db8f4,{'userId':_0x46f059}),this[_0x4222('0x78')][_0x4222('0xb4')](_0x4e0f96,{'userId':_0x46f059});}}[_0x4222('0xed')](_0x1a9ee2){if(!_0x1a9ee2[_0x4222('0x97')])return;const _0x38106a=(_0x1a9ee2=this[_0x4222('0xbf')](_0x1a9ee2,this[_0x4222('0x44')]))[_0x4222('0xee')]?_0x1a9ee2[_0x4222('0xee')]['root']:null,_0x156f6e=_0x1a9ee2['newRange']?_0x1a9ee2['newRange'][_0x4222('0x6b')]:null;_0x38106a&&this['_markers'][_0x4222('0x3d')](_0x1a9ee2['name']),_0x156f6e&&this[_0x4222('0x68')]['set'](_0x1a9ee2[_0x4222('0xf1')],_0x1a9ee2[_0x4222('0x83')][_0x4222('0xda')]());const _0x470962=null===_0x1a9ee2[_0x4222('0x69')]?null:_0x1a9ee2['_authorId']||this['editor'][_0x4222('0x1f')][_0x4222('0xb5')]('Users')['me']['id'],_0x520385=_0x1a9ee2[_0x4222('0xf1')];if(!this[_0x4222('0x2d')][_0x4222('0xdd')](_0x520385))return void this[_0x4222('0x2d')]['set'](_0x520385,{'range':_0x1a9ee2[_0x4222('0xee')],'userId':_0x470962});const _0x2e7070=this[_0x4222('0x2d')][_0x4222('0xb5')](_0x520385),_0x37ca71=_0x2e7070['range'],_0x33115a=_0x1a9ee2[_0x4222('0x83')];null==_0x37ca71&&null==_0x33115a||_0x37ca71&&_0x33115a&&_0x37ca71[_0x4222('0x1a')](_0x33115a)?this[_0x4222('0x2d')][_0x4222('0x3d')](_0x1a9ee2[_0x4222('0xf1')]):_0x2e7070[_0x4222('0xc6')]=_0x470962;}[_0x4222('0xf4')](_0x5a87ee,_0x172f54){this[_0x4222('0x44')][_0x4222('0xdd')](_0x5a87ee[_0x4222('0xc2')])?this['_diffRoots'][_0x4222('0xb5')](_0x5a87ee['rootName'])[_0x4222('0x21')]=_0x5a87ee[_0x4222('0xc1')]:(this[_0x4222('0x44')][_0x4222('0xb4')](_0x5a87ee['rootName'],G(_0x5a87ee[_0x4222('0xc2')],!0x0)),this[_0x4222('0xe3')]['set'](_0x5a87ee[_0x4222('0xc2')],{}),_0x172f54&&this[_0x4222('0xc')][_0x4222('0xb4')](_0x5a87ee['rootName'],G(_0x5a87ee[_0x4222('0xc2')],!0x0)));const _0x2977c1=null===_0x5a87ee['_authorId']?null:_0x5a87ee[_0x4222('0x69')]||this[_0x4222('0x57')][_0x4222('0x1f')][_0x4222('0xb5')](_0x4222('0xbd'))['me']['id'],_0x3fc6a1=this[_0x4222('0x6c')][_0x4222('0xb5')](_0x5a87ee[_0x4222('0xc2')]);_0x3fc6a1&&_0x3fc6a1[_0x4222('0xc6')]===_0x2977c1?this[_0x4222('0x6c')]['delete'](_0x5a87ee[_0x4222('0xc2')]):this[_0x4222('0x6c')][_0x4222('0xb4')](_0x5a87ee['rootName'],{'userId':_0x2977c1,'isAttached':_0x5a87ee[_0x4222('0xc1')]});}[_0x4222('0xc5')](_0x4c9112){const _0x38d003=this['_diffRootsAttributes'][_0x4222('0xb5')](_0x4c9112[_0x4222('0x6b')][_0x4222('0xc2')]);null===_0x4c9112['newValue']?delete _0x38d003[_0x4c9112[_0x4222('0xb1')]]:_0x38d003[_0x4c9112[_0x4222('0xb1')]]=_0x4c9112[_0x4222('0x5e')];}}function q(_0x9df33b){const _0x113076=G(_0x9df33b[_0x4222('0xc2')],_0x9df33b[_0x4222('0x71')]());for(const _0x2e6e45 of _0x9df33b[_0x4222('0x8f')]()){const _0x2fc90b=_0x2e6e45[_0x4222('0xe5')](!0x0);_0x113076['_appendChild'](_0x2fc90b);}return _0x113076;}function G(_0x30ec38,_0x237979=!0x0){const _0x354867=new _0x35956c();return _0x354867[_0x4222('0xc2')]=_0x30ec38,_0x354867[_0x4222('0x21')]=_0x237979,_0x354867[_0x4222('0x71')]=()=>_0x354867[_0x4222('0x21')],_0x354867;}function L(_0x437c75,_0x5832dc,_0x1d5bf7){const _0x12849b=_0x4222('0x33')==_0x437c75[_0x4222('0xf7')]?_0x1d5bf7[_0x4222('0x6a')](_0x437c75[_0x4222('0x95')],'end'):_0x1d5bf7[_0x4222('0x79')](_0x437c75[_0x4222('0x95')]);return _0x1d5bf7[_0x4222('0x56')](_0x5832dc,_0x12849b['path'],_0x12849b[_0x4222('0x102')]);}function W(_0x16871d,_0x191cdf,_0x1e1ec1){const _0x3a21f7='elementStart'==_0x16871d[_0x4222('0xf7')]?_0x1e1ec1[_0x4222('0x6a')](_0x16871d[_0x4222('0x95')],0x0):_0x1e1ec1['createPositionAfter'](_0x16871d[_0x4222('0x95')]);return _0x1e1ec1['createPositionFromPath'](_0x191cdf,_0x3a21f7[_0x4222('0x89')],_0x3a21f7['stickiness']);}
|