@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230905.0 → 0.0.0-nightly-20230907.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 _0x2b3c=['name','getTransformedByOperation','_authorId','_removeMetaData','editor','addRevisionData','processor','_replaceEditorDataWithRevisionData','add','createPositionAt','define','locale','_markers','_fixRange','fromVersion','getRootNames','getAttributes','for','offset','newRange','max','toData','forEach','userId','_baseIdsRoots','_createFromRanges','toView','rootsAttributes','plugins','_isAttached','newValue','source','keepParagraph','creatorId','getRevisionRootsAttributes','view','vid_end','_lastTo','find','set','sendBufferedUpdates','resolve','sourcePosition','_transformMarkers','_handleRootAttributeOperation','model','_createCurrentRevision','setSource','insertion','filter','afterInit','stringify','_saveMetaData','_baseRootsAttributes','revisionHistory.resumeUnsavedRevision','_handleMoveOperation','element','adapter','_clone','getUser','_copyMarkers','editing','path','_source','some','isReady','document','documentFragment','baseVersion','authors','_bufferUpdate','reInit','init','rootName','_getViewJson','update','conversion','attributesBefore','_getState','getRoot','loadState','_fixOperation','position','merge','hasContent','_pendingAction','markers','createRange','getRevision','_touched','pluginName','vid_start','_findInsertionIndex','$graveyard','_makeRevision','end','includes','keys','createPositionFromPath','getRevisions','push','getWalker','creator','RevisionTracker','delete','revision-end','values','stickiness','_initialRevisionId','_idsRoots','addRevision','createdAt','_isInit','splitPosition','initial','_touchedMarkers','_getPreviousFrom','_baseRoots','authorsIds','getLatestVersion','changeRootAttribute','getAttribute','elementEnd','isEqual','getChild','repository','_loadState','_makeModelFromViewString','key','attachChange','_setConversion','children','getChildren','finally','_loadRevisionData','_touchedRoots','_savedMetaData','string','roots','_execute','getData','size','childCount','get','dataToMarker','_prepareViewToSave','getOperation','_reset','oldRange','_fixPosition','Empty\x20document','NEGATIVE_INFINITY','Users','deletion','bind','_handleRootOperation','marker','requires','remove','_startingVersion','revision-start','toVersion','nodes','revision','insert','buildRevisionData','previousPosition','_diffRoots','_addPendingAction','getNodeByPath','history','start','_getBaseVids','elementStart','RevisionsRepository','_removePendingAction','type','getOperations','Initial\x20revision','currentRevision','removeRootAttribute','_diffRootsAttributes','_applyOperations','getRevisionDocumentData','item','_update','_setAttribute','then','_loadedStateData','_markChanges','_continueCurrentRevision','addRootAttribute','insertionPosition','_handleMarkerOperation','ready','attributesAfter','upcast','_makeIdsRoot','_calculateMetaData','$text','toModel','_handleInsertOperation','startsWith','isAdd','graveyardPosition','_startingRevisionId','_revisionId','getRange','nodeAfter','setRevisionData','saveRevision','_handleOperation','revision:','reverse','_insertChild','PendingActions','_cloneOperation','_bufferedUpdates','deletions','_getFromVersion','length','paragraph','targetPosition','tableCell','root','_lastFrom','affectsData','markerToData','clone','createRevision','config','from','_handleSplitOperation','collaboration.channelId','vid','_getVidAttributeName','_generateTape','clear','getMovedRangeStart','split','getCurrentRevisionId','map','_removeRevisionMarkers','PENDING_ACTION_REVISION_HISTORY','isAttached','data','slice','diffData','_revisionDataBuilder','initialData','parent','offsetSize','editor-initial-data-replaced-with-revision-data','_processRootBeforeSave','useFillerType','_createInitialRevision','_isPendingUpdate','reinsert','_handleMergeOperation','has','version','parse','insertions'];(function(_0x5b2119,_0x2b3c93){const _0x4aac28=function(_0x531437){while(--_0x531437){_0x5b2119['push'](_0x5b2119['shift']());}};_0x4aac28(++_0x2b3c93);}(_0x2b3c,0x1e3));const _0x4aac=function(_0x5b2119,_0x2b3c93){_0x5b2119=_0x5b2119-0x0;let _0x4aac28=_0x2b3c[_0x5b2119];return _0x4aac28;};import{Users as _0x67db30}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x37b6b5,PendingActions as _0x2d395d}from'ckeditor5/src/core';import{logWarning as _0x405653,uid as _0x12c7b0}from'ckeditor5/src/utils';import{Position as _0x39217c,Range as _0xde2b77,Element as _0x5edf95,DocumentFragment as _0x54e3f3,ViewText as _0x29b519,ViewElement as _0x328351,ViewContainerElement as _0x129b3f,ViewAttributeElement as _0x17b23f,ViewEmptyElement as _0x55616b,ViewRawElement as _0x255c2a,ViewUIElement as _0x1e3f63,ViewDocumentFragment as _0x1c0f09}from'ckeditor5/src/engine';import _0x14622a from'./revisionsrepository';import{getTranslation as _0x50a069}from'./utils/common-translations';import{cloneDeep as _0x2c2fc7,isEqual as _0x260448}from'lodash-es';const B={'c':_0x129b3f,'a':_0x17b23f,'e':_0x55616b,'r':_0x255c2a,'u':_0x1e3f63};export default class l extends _0x37b6b5{static get[_0x4aac('0x85')](){return _0x4aac('0x92');}static get[_0x4aac('0xc8')](){return[_0x67db30,_0x14622a,_0x2d395d];}constructor(_0x428c07){super(_0x428c07),this['adapter']=null,this['currentRevision']=null,this[_0x4aac('0x1c')]=new H(this[_0x4aac('0x2f')]),this[_0x4aac('0x97')]=this[_0x4aac('0x2f')][_0x4aac('0xa')]['get'](_0x4aac('0xd'))||_0x4aac('0x9d'),this['_bufferedUpdates']=new Map(),this[_0x4aac('0xe7')]=null;const _0x3bc019=_0x12c7b0();this[_0x4aac('0x6a')]={'history':this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')]['history'],'getLatestVersion':()=>Promise[_0x4aac('0x54')](this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')]['version']),'getCurrentRevisionId':()=>_0x3bc019},this[_0x4aac('0x52')]('isReady',!0x1),this[_0x4aac('0x52')]('isEnabled',!0x0),this[_0x4aac('0x52')](_0x4aac('0x24'),!0x1),this['editor'][_0x4aac('0xa')][_0x4aac('0x35')](_0x4aac('0x61'),!0x0),this[_0x4aac('0x2f')]['conversion']['for'](_0x4aac('0xef'))[_0x4aac('0xbb')]({'view':_0x4aac('0xce')});}['init'](){this[_0x4aac('0xa8')]=this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xd9')),this[_0x4aac('0xad')](),this[_0x4aac('0x2f')]['data']['on'](_0x4aac('0xed'),()=>{const _0x3307e3=this[_0x4aac('0xa8')]['getRevision'](0x0),_0x484c8f=_0x3307e3&&null===_0x3307e3[_0x4aac('0x91')]?_0x3307e3:null;if(this[_0x4aac('0xe9')]=!!_0x484c8f&&this[_0x4aac('0x2f')]['config'][_0x4aac('0xba')](_0x4aac('0x61')),this[_0x4aac('0x2f')][_0x4aac('0x47')]['has']('RealTimeCollaborationClient')){const _0x3ab54b=this[_0x4aac('0x6a')][_0x4aac('0x14')](),_0xcd416d=this[_0x4aac('0xa8')][_0x4aac('0x83')](_0x3ab54b);if(_0xcd416d)this[_0x4aac('0xca')]=_0xcd416d[_0x4aac('0x39')],this[_0x4aac('0xe9')]=!0x1;else{const _0x20a74b=this[_0x4aac('0x6a')][_0x4aac('0xd5')]['_operations']['find'](_0xdcf17f=>!_0xdcf17f[_0x4aac('0x9b')]),_0x36dde8=_0x20a74b?_0x20a74b[_0x4aac('0x6f')]:this[_0x4aac('0x6a')][_0x4aac('0xd5')][_0x4aac('0x28')];_0x3307e3?(_0x3307e3['toVersion']<_0x36dde8&&_0x3307e3['_update']({'toVersion':_0x36dde8}),this[_0x4aac('0xe9')]?(this['_source'][_0x4aac('0x14')]=()=>_0x484c8f['id'],this[_0x4aac('0xca')]=_0x484c8f[_0x4aac('0x39')]):(this[_0x4aac('0xca')]=_0x3307e3[_0x4aac('0xcc')],this['_continueCurrentRevision']=!0x1)):(this[_0x4aac('0xca')]=_0x36dde8,this[_0x4aac('0xe9')]=!0x1);}}else _0x484c8f&&(this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')][_0x4aac('0xd5')]['version']=Math[_0x4aac('0x3f')](_0x484c8f[_0x4aac('0xcc')],this['editor'][_0x4aac('0x58')][_0x4aac('0x6d')][_0x4aac('0xd5')][_0x4aac('0x28')]),_0x484c8f[_0x4aac('0x39')]===_0x484c8f[_0x4aac('0xcc')]?(0x0!==_0x484c8f[_0x4aac('0x39')]&&(this[_0x4aac('0x6a')]['getCurrentRevisionId']=()=>_0x484c8f['id']),this[_0x4aac('0xe9')]=!0x1):this[_0x4aac('0xe9')]&&(this[_0x4aac('0x6a')]['getCurrentRevisionId']=()=>_0x484c8f['id'],this[_0x4aac('0xca')]=_0x484c8f[_0x4aac('0x39')])),this['_continueCurrentRevision']||(this['_startingVersion']=this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')][_0x4aac('0x28')]);this[_0x4aac('0x1c')][_0x4aac('0x73')](this[_0x4aac('0x6a')][_0x4aac('0xd5')]),this[_0x4aac('0x23')](this[_0x4aac('0xca')]),this[_0x4aac('0x59')](this[_0x4aac('0xca')]),this[_0x4aac('0x64')]&&this[_0x4aac('0x53')]();}),this[_0x4aac('0xc5')](_0x4aac('0x6c'))['to'](this,_0x4aac('0x24'),_0x39aa0d=>!_0x39aa0d);}async[_0x4aac('0x5d')](){if(this[_0x4aac('0xa8')][_0x4aac('0x0')]>0x0){const _0x321fd0=this['repository'][_0x4aac('0x83')](0x0),_0x437ea8=await this['getRevisionDocumentData'](_0x321fd0),_0x1ec4fb=await this[_0x4aac('0x4d')](_0x321fd0);this[_0x4aac('0x32')](_0x437ea8,_0x1ec4fb);}}[_0x4aac('0x5a')](_0x1ecbf9){this[_0x4aac('0x6a')]=_0x1ecbf9;}async[_0x4aac('0x76')](){const _0x26b894=await this[_0x4aac('0x6a')]['getLatestVersion']();if(_0x26b894>this['currentRevision'][_0x4aac('0xcc')]){await this['_loadState']();const _0x1c1851=this[_0x4aac('0xd0')]({'revision':this[_0x4aac('0xde')],'to':_0x26b894});_0x1c1851[_0x4aac('0x70')]=_0x1c1851[_0x4aac('0xa1')]['map'](_0x4b6a55=>this[_0x4aac('0x2f')][_0x4aac('0x47')]['get'](_0x4aac('0xc3'))['getUser'](_0x4b6a55)),this[_0x4aac('0xde')][_0x4aac('0xe4')](_0x1c1851);}}async[_0x4aac('0xa9')](){this[_0x4aac('0xe9')]&&!this[_0x4aac('0xe7')]&&(await this['_loadRevisionData'](this[_0x4aac('0xde')]),this[_0x4aac('0x1c')][_0x4aac('0x7b')](this[_0x4aac('0xde')]),this[_0x4aac('0xe7')]={'fromVersion':this[_0x4aac('0xde')][_0x4aac('0x39')],'authors':this[_0x4aac('0xde')][_0x4aac('0x70')]['slice']()});}async[_0x4aac('0xfd')](_0xc21f76={},_0xe7a2ee=null){const _0x2d5ff3=[];await this[_0x4aac('0xa9')](),this[_0x4aac('0xe9')]=!0x1,_0xe7a2ee>this[_0x4aac('0xde')][_0x4aac('0xcc')]&&(_0xe7a2ee=null),null===_0xe7a2ee&&(_0xe7a2ee=await this['_source'][_0x4aac('0xa2')]());const _0x1ca04a=this[_0x4aac('0x106')](_0xe7a2ee),_0x5917b2=this['buildRevisionData']({'from':_0x1ca04a,'to':_0xe7a2ee});if(this[_0x4aac('0xde')][_0x4aac('0xcc')]<_0xe7a2ee){const _0x1c36c7=this['buildRevisionData']({'revision':this[_0x4aac('0xde')],'from':_0xe7a2ee,'to':_0xe7a2ee});_0x1c36c7['authors']=[],_0x1c36c7[_0x4aac('0xa1')]=[],_0x1c36c7['id']=this[_0x4aac('0xde')]['id'],this[_0x4aac('0xde')]['_update'](_0x1c36c7,!0x0),delete _0x1c36c7['authors'],_0x2d5ff3[_0x4aac('0x8f')](_0x1c36c7);}_0xc21f76[_0x4aac('0x4c')]=this[_0x4aac('0x2f')][_0x4aac('0x47')]['get'](_0x4aac('0xc3'))['me']['id'],_0xc21f76['name']=_0xc21f76['name']||null,_0xc21f76['id']=_0xc21f76['id']||_0x12c7b0(),_0xc21f76={..._0xc21f76,..._0x5917b2};const _0xc7802=this[_0x4aac('0x30')](_0xc21f76);_0x2d5ff3['push'](_0xc21f76);const _0x5039b1=this[_0x4aac('0xa8')]['getIndex'](_0xc7802);if(0x0!==_0x5039b1){const _0x10ac15=this[_0x4aac('0xa8')]['getRevision'](_0x5039b1-0x1);if(_0x10ac15[_0x4aac('0x39')]!==_0xe7a2ee){const _0x3537bc=this['_revisionDataBuilder']['getData'](_0xe7a2ee,_0x10ac15['toVersion']),_0x326764={'id':_0x10ac15['id'],'diffData':_0x3537bc[_0x4aac('0x1b')],'authorsIds':_0x3537bc['authorsIds'],'authors':_0x3537bc['authorsIds'][_0x4aac('0x15')](_0x3add36=>this['editor'][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'))[_0x4aac('0x66')](_0x3add36)),'fromVersion':_0xe7a2ee};_0x10ac15===this[_0x4aac('0xde')]&&(_0x326764[_0x4aac('0x9a')]=new Date(_0xc21f76['createdAt']['getTime']()+0xa)),_0x10ac15[_0x4aac('0xe4')](_0x326764,!0x0),delete _0x326764[_0x4aac('0x70')],_0x2d5ff3[_0x4aac('0x8f')](_0x326764);}}if(this[_0x4aac('0x64')]){for(const _0x2c125d of _0x2d5ff3)this[_0x4aac('0x71')](_0x2c125d['id'],_0x2c125d,!0x0);this[_0x4aac('0x53')]();}return _0xc7802;}[_0x4aac('0x30')](_0x38c849){const _0x41db76=this['repository'][_0x4aac('0x9')](_0x38c849);return this[_0x4aac('0x64')]&&_0x41db76['on'](_0x4aac('0xe4'),(_0x3c7447,_0x204837,_0x4a1819)=>{_0x4a1819||(this[_0x4aac('0x71')](_0x204837['id'],_0x204837,!0x0),this[_0x4aac('0x53')]());}),this['repository'][_0x4aac('0x99')](_0x41db76,this[_0x4aac('0x87')](_0x41db76)),_0x41db76;}async[_0x4aac('0xe2')](_0x51e7ad){await this[_0x4aac('0xb1')](_0x51e7ad);const _0x4fd400={};for(const _0x107578 in _0x51e7ad['diffData']){if(_0x51e7ad[_0x4aac('0x1b')][_0x107578]['attachChange']&&!_0x51e7ad[_0x4aac('0x1b')][_0x107578][_0x4aac('0xac')][_0x4aac('0x18')])continue;const _0x437aeb=this['_removeRevisionMarkers'](JSON['parse'](_0x51e7ad[_0x4aac('0x1b')][_0x107578][_0x4aac('0x2a')])),_0x4ac8b0=this[_0x4aac('0x2f')]['editing']['view'][_0x4aac('0x6d')],_0x194099=new _0x1c0f09(_0x4ac8b0,_0x437aeb[_0x4aac('0x15')](_0x20f0c5=>J(_0x20f0c5,this['editor'])));this[_0x4aac('0x2f')][_0x4aac('0x19')][_0x4aac('0x31')]['useFillerType']('marked'),_0x4fd400[_0x107578]=this[_0x4aac('0x2f')][_0x4aac('0x19')][_0x4aac('0x31')][_0x4aac('0x40')](_0x194099),this[_0x4aac('0x2f')][_0x4aac('0x19')]['processor'][_0x4aac('0x22')]('default');}return _0x4fd400;}async['getRevisionRootsAttributes'](_0x3abd69){await this['_loadRevisionData'](_0x3abd69);const _0x402d37={};for(const _0x69c7d in _0x3abd69['diffData'])_0x3abd69['diffData'][_0x69c7d][_0x4aac('0xac')]&&!_0x3abd69[_0x4aac('0x1b')][_0x69c7d][_0x4aac('0xac')][_0x4aac('0x18')]||(_0x402d37[_0x69c7d]=_0x3abd69[_0x4aac('0x1b')][_0x69c7d][_0x4aac('0xee')]||{});return _0x402d37;}['sendBufferedUpdates'](){if(0x0===this[_0x4aac('0x104')][_0x4aac('0xb8')])return;if(this[_0x4aac('0x24')])return;let _0x527d26=Array[_0x4aac('0xb')](this[_0x4aac('0x104')][_0x4aac('0x95')]());this[_0x4aac('0x104')][_0x4aac('0x11')]();for(let _0x55f7eb=0x0;_0x55f7eb<_0x527d26[_0x4aac('0x0')];_0x55f7eb++){const _0x2edb55=_0x527d26[_0x55f7eb];let _0x5da2d4=!0x1;for(const _0x4b618e of Object[_0x4aac('0x8c')](_0x2edb55))void 0x0===_0x2edb55[_0x4b618e]?delete _0x2edb55[_0x4b618e]:'id'!==_0x4b618e&&(_0x5da2d4=!0x0);_0x5da2d4||(_0x527d26[_0x55f7eb]=null);}if(_0x527d26=_0x527d26[_0x4aac('0x5c')](_0x2839b4=>null!==_0x2839b4),!_0x527d26[_0x4aac('0x0')])return;for(let _0x4e0f75=0x0;_0x4e0f75<_0x527d26[_0x4aac('0x0')];_0x4e0f75++){const _0x3e0256=_0x527d26[_0x4e0f75];void 0x0!==_0x3e0256[_0x4aac('0x39')]&&void 0x0===_0x3e0256[_0x4aac('0xcc')]&&(_0x3e0256[_0x4aac('0xcc')]=this[_0x4aac('0xa8')][_0x4aac('0x83')](_0x3e0256['id'])[_0x4aac('0xcc')]),void 0x0!==_0x3e0256[_0x4aac('0xcc')]&&void 0x0===_0x3e0256[_0x4aac('0x39')]&&(_0x3e0256[_0x4aac('0x39')]=this[_0x4aac('0xa8')]['getRevision'](_0x3e0256['id'])['fromVersion']);}const _0x53f8f2=this[_0x4aac('0x2f')][_0x4aac('0xa')]['get']('collaboration.channelId');this[_0x4aac('0x24')]=!0x0,this[_0x4aac('0xd3')](),this['adapter']['updateRevisions'](_0x527d26,_0x53f8f2)[_0x4aac('0xb0')](()=>{this[_0x4aac('0x24')]=!0x1;})[_0x4aac('0xe6')](_0x3a6cff=>{if(_0x3a6cff)for(const _0x379fb4 of _0x3a6cff)this[_0x4aac('0xfc')]({'id':_0x379fb4['id'],'createdAt':_0x379fb4[_0x4aac('0x9a')]});this[_0x4aac('0xda')](),this[_0x4aac('0x53')]();});}[_0x4aac('0x32')](_0x434df3,_0x5e5800){let _0x210c16=this[_0x4aac('0x2f')][_0x4aac('0xa')][_0x4aac('0xba')](_0x4aac('0x1d')),_0x1f2a28=this[_0x4aac('0x2f')][_0x4aac('0xa')]['get'](_0x4aac('0x46'));if(void 0x0===_0x210c16){_0x210c16={};for(const _0x52a95b of this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')]['getRootNames']())_0x210c16[_0x52a95b]='';}if(_0x4aac('0xb4')==typeof _0x210c16&&(_0x210c16={'main':_0x210c16}),void 0x0===_0x1f2a28){_0x1f2a28={};for(const _0x4163e5 of this[_0x4aac('0x2f')]['model'][_0x4aac('0x6d')][_0x4aac('0x3a')]())_0x1f2a28[_0x4163e5]={};}let _0x323966=!0x1;const _0x15381a=Object['keys'](_0x210c16),_0x2cee98=Object[_0x4aac('0x8c')](_0x434df3);for(const _0x57d4f9 of _0x15381a){if(_0x210c16[_0x57d4f9]!==_0x434df3[_0x57d4f9]&&''!==_0x210c16[_0x57d4f9]['trim']()){_0x323966=!0x0;break;}if(!_0x260448(_0x1f2a28[_0x57d4f9],_0x5e5800[_0x57d4f9])&&Object['keys'](_0x1f2a28[_0x57d4f9])[_0x4aac('0x0')]>0x0){_0x323966=!0x0;break;}}_0x323966||(_0x323966=_0x2cee98[_0x4aac('0x6b')](_0x56cb83=>!this['editor']['model'][_0x4aac('0x6d')][_0x4aac('0x7a')](_0x56cb83))),_0x323966&&_0x405653(_0x4aac('0x20'),{'editorData':_0x210c16,'editorRootsAttributes':_0x1f2a28,'revisionData':_0x434df3,'revisionRootsAttributes':_0x5e5800}),this[_0x4aac('0x2f')][_0x4aac('0xa')][_0x4aac('0x52')](_0x4aac('0x1d'),_0x434df3),this[_0x4aac('0x2f')][_0x4aac('0xa')][_0x4aac('0x52')](_0x4aac('0x46'),_0x5e5800);}[_0x4aac('0xd3')](){if(!this['_pendingAction']){const _0x20e5cd=this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0x102'));this['_pendingAction']=_0x20e5cd['add'](_0x50a069(this[_0x4aac('0x2f')][_0x4aac('0x36')],_0x4aac('0x17')));}}[_0x4aac('0xda')](){this[_0x4aac('0x80')]&&(this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0x102'))[_0x4aac('0xc9')](this[_0x4aac('0x80')]),this[_0x4aac('0x80')]=null);}['_findInsertionIndex'](_0x2d0035){const _0x5b19be=this[_0x4aac('0xa8')][_0x4aac('0x8e')]();_0x5b19be[_0x4aac('0x100')]();let _0x3edf6c=0x0;for(;_0x3edf6c<_0x5b19be['length'];){const _0x270668=_0x5b19be[_0x3edf6c];if(_0x270668===this[_0x4aac('0xde')]){_0x3edf6c++;continue;}if(_0x270668['id']===this[_0x4aac('0x97')])break;const _0x54cd2e=_0x2d0035[_0x4aac('0xcc')]-_0x270668[_0x4aac('0xcc')]||_0x2d0035[_0x4aac('0x39')]-_0x270668[_0x4aac('0x39')];if(_0x54cd2e>0x0)break;if(_0x54cd2e<0x0)_0x3edf6c++;else{if(!_0x2d0035['creator']&&_0x270668[_0x4aac('0x91')])break;if(_0x270668[_0x4aac('0x91')]||!_0x2d0035[_0x4aac('0x91')]){if(_0x2d0035['createdAt']>_0x270668[_0x4aac('0x9a')])break;_0x3edf6c++;}else _0x3edf6c++;}}return _0x3edf6c;}[_0x4aac('0xfc')](_0x134116){const _0x442771=this['repository'][_0x4aac('0x83')](_0x134116['id']);if(_0x134116['createdAt']&&(_0x134116[_0x4aac('0x9a')]=new Date(_0x134116[_0x4aac('0x9a')])),_0x134116[_0x4aac('0xa1')]){const _0x3a2cc0=this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'));_0x134116[_0x4aac('0x70')]=_0x134116[_0x4aac('0xa1')][_0x4aac('0x15')](_0x2b61e3=>_0x3a2cc0[_0x4aac('0x66')](_0x2b61e3));}_0x442771[_0x4aac('0xe4')](_0x134116,!0x0);}[_0x4aac('0xd0')]({revision:_0x4322f7=null,from:_0x22828f=null,to:_0x23c87f=null}){_0x22828f=null!==_0x22828f?_0x22828f:_0x4322f7[_0x4aac('0x39')],_0x23c87f=null!==_0x23c87f?_0x23c87f:_0x4322f7['toVersion'];const _0x28d0a6=this[_0x4aac('0x1c')][_0x4aac('0xb7')](_0x22828f,_0x23c87f),_0x2c1f09={'diffData':_0x28d0a6[_0x4aac('0x1b')],'authorsIds':_0x28d0a6[_0x4aac('0xa1')],'fromVersion':_0x22828f,'toVersion':_0x23c87f};if(!_0x4322f7||_0x23c87f!==_0x4322f7[_0x4aac('0xcc')]){const _0x3dedcc=_0x23c87f-0x1,_0x36734b=this[_0x4aac('0x6a')][_0x4aac('0xd5')][_0x4aac('0xbd')](_0x3dedcc);_0x2c1f09['createdAt']=_0x36734b&&_0x36734b[_0x4aac('0x9a')]||new Date();}if(this[_0x4aac('0xe7')]&&_0x22828f===this[_0x4aac('0xe7')][_0x4aac('0x39')])for(const _0x2d9a91 of this[_0x4aac('0xe7')]['authors'])_0x2c1f09[_0x4aac('0xa1')][_0x4aac('0x8b')](_0x2d9a91['id'])||_0x2c1f09[_0x4aac('0xa1')][_0x4aac('0x8f')](_0x2d9a91['id']);return _0x2c1f09;}[_0x4aac('0xb1')](_0x33368b){if(!_0x33368b||_0x33368b['diffData'])return Promise['resolve']();{const _0x223363=this['editor'][_0x4aac('0xa')][_0x4aac('0xba')]('collaboration.channelId');return this[_0x4aac('0x64')][_0x4aac('0x83')]({'channelId':_0x223363,'revisionId':_0x33368b['id']})['then'](_0x4f58da=>{_0x33368b[_0x4aac('0x1b')]=_0x4f58da[_0x4aac('0x1b')];});}}[_0x4aac('0x71')](_0x267257,_0x4cbf56,_0x33a1c1){if(this[_0x4aac('0x104')]['has'](_0x267257)){const _0x51fab8=this[_0x4aac('0x104')][_0x4aac('0xba')](_0x267257);_0x4cbf56=_0x33a1c1?{..._0x51fab8,..._0x4cbf56}:{..._0x4cbf56,..._0x51fab8};}this[_0x4aac('0x104')][_0x4aac('0x52')](_0x267257,_0x4cbf56);}[_0x4aac('0x106')](_0x142865){const _0x589d6a=this[_0x4aac('0xa8')]['getRevisions']();_0x589d6a[_0x4aac('0x100')](),_0x589d6a['shift']();const _0x66b0c1=_0x589d6a['find'](_0x151d33=>_0x151d33['toVersion']<=_0x142865)[_0x4aac('0xcc')];return _0x66b0c1<this[_0x4aac('0xca')]?this[_0x4aac('0xca')]:_0x66b0c1;}[_0x4aac('0x23')](_0x4ab2a1){const _0xcdea03=this['repository']['getRevision'](this['repository'][_0x4aac('0x0')]-0x1);if(_0xcdea03)this[_0x4aac('0x97')]=_0xcdea03['id'];else{const _0x4c344d=!this[_0x4aac('0x2f')][_0x4aac('0x58')]['document'][_0x4aac('0xb5')][_0x4aac('0x51')](_0x5354e8=>this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x7f')](_0x5354e8)),_0x14d6cb=this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')]('Users')['me']['id'],_0x692cf0=_0x50a069(this[_0x4aac('0x2f')]['locale'],_0x4c344d?_0x4aac('0xc1'):_0x4aac('0xdd'));this[_0x4aac('0x89')]({'from':_0x4ab2a1,'to':_0x4ab2a1,'id':this['_initialRevisionId'],'name':_0x692cf0,'creatorId':_0x14d6cb});}}[_0x4aac('0x59')](_0x3c3c68){const _0x36d914=this[_0x4aac('0x6a')]['getCurrentRevisionId']();this['currentRevision']=this[_0x4aac('0xa8')]['getRevision'](_0x36d914),this[_0x4aac('0xde')]||(this['currentRevision']=this[_0x4aac('0x89')]({'from':_0x3c3c68,'to':_0x3c3c68,'id':_0x36d914,'name':'','creatorId':null}));}[_0x4aac('0x89')]({name:_0x52bfb6,from:_0x42f995,to:_0x3a0114,creatorId:_0x25040a,id:_0x211200}){const _0x1dcd3b=this[_0x4aac('0xd0')]({'from':_0x42f995,'to':_0x3a0114});_0x1dcd3b[_0x4aac('0x2b')]=_0x52bfb6,_0x1dcd3b[_0x4aac('0x4c')]=_0x25040a,_0x1dcd3b['id']=_0x211200;const _0xbb6698=this['addRevisionData'](_0x1dcd3b);return this[_0x4aac('0x64')]&&this[_0x4aac('0x71')](_0x1dcd3b['id'],_0x1dcd3b,!0x0),_0xbb6698;}[_0x4aac('0xad')](){this['editor'][_0x4aac('0x77')][_0x4aac('0x3c')]('dataDowncast')[_0x4aac('0x7')]({'model':_0x4aac('0xce')});}[_0x4aac('0x16')](_0x219a9e){return(_0x219a9e=_0x219a9e[_0x4aac('0x5c')](_0xb4c071=>!_0xb4c071[_0x4aac('0x2b')]||_0x4aac('0xcb')!==_0xb4c071[_0x4aac('0x2b')]&&_0x4aac('0x94')!==_0xb4c071[_0x4aac('0x2b')]))[_0x4aac('0x41')](_0x17fe91=>{_0x4aac('0xb4')!=typeof _0x17fe91&&(_0x17fe91[_0x4aac('0xae')]=this[_0x4aac('0x16')](_0x17fe91[_0x4aac('0xae')]),_0x17fe91['attributes']=_0x17fe91['attributes'][_0x4aac('0x5c')](_0x36a478=>!_0x36a478[0x0][_0x4aac('0xf5')]('data-revision-')));}),_0x219a9e;}}function J(_0x48ecca,_0xa1773a){const _0x39ea35=_0xa1773a['editing'][_0x4aac('0x4e')][_0x4aac('0x6d')];if('string'==typeof _0x48ecca)return new _0x29b519(_0x39ea35,_0x48ecca);{const _0x33c659=_0x48ecca[_0x4aac('0xae')]['map'](_0xefd7c3=>J(_0xefd7c3,_0xa1773a));return new(B[_0x48ecca[(_0x4aac('0xdb'))]]||_0x328351)(_0x39ea35,_0x48ecca[_0x4aac('0x2b')],_0x48ecca['attributes'],_0x33c659);}}class H{constructor(_0x3c9a36){this[_0x4aac('0x2f')]=_0x3c9a36,this[_0x4aac('0xb3')]=new Map(),this[_0x4aac('0x5')]=-0x1,this[_0x4aac('0x50')]=-0x1,this[_0x4aac('0x37')]=new Map(),this[_0x4aac('0xd2')]=new Map(),this[_0x4aac('0xe0')]=new Map(),this[_0x4aac('0xa0')]=new Map(),this[_0x4aac('0x60')]=new Map(),this[_0x4aac('0x98')]=new Map(),this[_0x4aac('0x43')]=new Map(),this[_0x4aac('0x84')]=new Map(),this[_0x4aac('0x9e')]=new Map(),this[_0x4aac('0xb2')]=new Map(),this[_0x4aac('0xf9')]=0x1;}[_0x4aac('0x73')](_0x430994){this[_0x4aac('0x4a')]=_0x430994;const _0x445e5b=new Map(),_0x186ecb=new Map(),_0x211292=this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')]['roots'][_0x4aac('0x15')](_0x18e75b=>_0x18e75b[_0x4aac('0x74')]);for(const _0x33c3e9 of _0x211292){const _0xdb15b8=this['editor']['model'][_0x4aac('0x6d')][_0x4aac('0x7a')](_0x33c3e9),_0x26286e=q(_0xdb15b8);_0x445e5b[_0x4aac('0x52')](_0x33c3e9,_0x26286e),_0x186ecb[_0x4aac('0x52')](_0x33c3e9,Object['fromEntries'](_0xdb15b8[_0x4aac('0x3b')]()));}const _0x56ca09=Array[_0x4aac('0xb')](this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x81')])[_0x4aac('0x15')](_0x10b6ca=>[_0x10b6ca[_0x4aac('0x2b')],_0x10b6ca[_0x4aac('0xfa')]()]),_0x4c7cc7=this[_0x4aac('0x4a')][_0x4aac('0x28')];this[_0x4aac('0x5f')](_0x4c7cc7,_0x445e5b,_0x56ca09,_0x186ecb),this[_0x4aac('0xf8')]=this[_0x4aac('0xf9')];const _0x52e1b1=new Map(),_0x2f74bb=new Map();for(const _0x3dae45 of _0x211292){const _0x4c751d=G(_0x3dae45);_0x52e1b1[_0x4aac('0x52')](_0x3dae45,_0x4c751d),_0x2f74bb[_0x4aac('0x52')](_0x3dae45,{});}this[_0x4aac('0x5f')](Number[_0x4aac('0xc2')],_0x52e1b1,[],_0x2f74bb);}[_0x4aac('0xb7')](_0x32a985,_0x270950){if(this[_0x4aac('0x5')]===_0x32a985&&this['_lastTo']<=_0x270950)this['_savedMetaData']['size']>0x1&&this[_0x4aac('0x2e')](this[_0x4aac('0x50')]),this['_applyOperations'](this[_0x4aac('0x50')],_0x270950,!0x0);else{if(!this[_0x4aac('0xb3')]['has'](_0x32a985)){const _0x29a08b=this[_0x4aac('0x9f')](_0x32a985);this[_0x4aac('0xf1')](_0x29a08b,_0x32a985,!0x1);}this[_0x4aac('0xf1')](_0x32a985,_0x270950,!0x0);}return this[_0x4aac('0x5')]=_0x32a985,this[_0x4aac('0x50')]=_0x270950,this[_0x4aac('0x79')]();}[_0x4aac('0x7b')](_0x403eb6){this['_reset'](),this['_lastFrom']=_0x403eb6['fromVersion'],this[_0x4aac('0x50')]=_0x403eb6['toVersion'];for(const _0x5bf51e in _0x403eb6['diffData']){const _0x21ec80=_0x403eb6['diffData'][_0x5bf51e]['attachChange'],_0x4b1988=_0x2c2fc7(_0x403eb6[_0x4aac('0x1b')][_0x5bf51e][_0x4aac('0x78')])||{},_0x2d9615=this['_makeModelFromViewString'](_0x403eb6[_0x4aac('0x1b')][_0x5bf51e]['deletions']);_0x2d9615[_0x4aac('0x74')]=_0x5bf51e,_0x2d9615[_0x4aac('0x48')]=!_0x21ec80||!_0x21ec80[_0x4aac('0x18')],_0x2d9615[_0x4aac('0x18')]=()=>_0x2d9615[_0x4aac('0x48')],this[_0x4aac('0xa0')][_0x4aac('0x52')](_0x5bf51e,_0x2d9615),this['_baseRootsAttributes'][_0x4aac('0x52')](_0x5bf51e,_0x4b1988),_0x21ec80&&this['_touchedRoots'][_0x4aac('0x52')](_0x5bf51e,_0x21ec80);const _0x4025bb=this['_makeIdsRoot'](_0x2d9615);this[_0x4aac('0x43')][_0x4aac('0x52')](_0x5bf51e,_0x4025bb);for(const [_0x1abd72,_0x3f6685]of _0x2d9615[_0x4aac('0x81')]){if(!_0x1abd72['startsWith'](_0x4aac('0xff')))continue;const _0xfb746e=_0x1abd72[_0x4aac('0x13')](':')[0x2];for(const _0xb90190 of _0x3f6685[_0x4aac('0x90')]({'singleCharacters':!0x0})){const _0xf25168=this[_0x4aac('0xf')](_0xb90190),_0x2803f8=_0x4aac('0xa5')==_0xb90190['type']?_0xb90190['previousPosition'][_0x4aac('0x69')][_0x4aac('0x1a')](0x0,-0x1):_0xb90190[_0x4aac('0xd1')][_0x4aac('0x69')],_0x2df577=_0x4025bb[_0x4aac('0xd4')](_0x2803f8)[_0x4aac('0xa4')](_0xf25168);this[_0x4aac('0x84')]['set'](_0x2df577,{'userId':_0xfb746e});}}}this[_0x4aac('0xf8')]=this['_revisionId'];const _0x1835f6=[...Array(this[_0x4aac('0xf9')])[_0x4aac('0x8c')]()][_0x4aac('0x1a')](0x1)[_0x4aac('0x5c')](_0x3f8520=>!this['_touched'][_0x4aac('0x27')](_0x3f8520));let _0x524ecf=0x0;const _0x466535=new Map();for(const _0x3589b3 in _0x403eb6[_0x4aac('0x1b')]){const _0x31f1a8=_0x403eb6[_0x4aac('0x1b')][_0x3589b3][_0x4aac('0xac')],_0x2ffb21=_0x2c2fc7(_0x403eb6['diffData'][_0x3589b3][_0x4aac('0xee')])||{},_0x46d792=this[_0x4aac('0xaa')](_0x403eb6[_0x4aac('0x1b')][_0x3589b3][_0x4aac('0x2a')]);_0x46d792[_0x4aac('0x74')]=_0x3589b3,_0x46d792[_0x4aac('0x48')]=!_0x31f1a8||_0x31f1a8['isAttached'],_0x46d792['isAttached']=()=>_0x46d792[_0x4aac('0x48')],this['_diffRoots']['set'](_0x3589b3,_0x46d792),this[_0x4aac('0xe0')][_0x4aac('0x52')](_0x3589b3,_0x2ffb21);const _0x50e8f7=this[_0x4aac('0xf0')](_0x46d792,Number['NEGATIVE_INFINITY']);this[_0x4aac('0x98')][_0x4aac('0x52')](_0x3589b3,_0x50e8f7),_0x466535[_0x4aac('0x52')](_0x3589b3,_0x46d792['isAttached']()?_0x2ffb21:{});for(const [_0x239429,_0x5c4fde]of _0x46d792[_0x4aac('0x81')]){if(!_0x239429[_0x4aac('0xf5')]('revision:'))continue;const _0x47c96c=_0x239429[_0x4aac('0x13')](':')[0x2];for(const _0x2959b5 of _0x5c4fde[_0x4aac('0x90')]({'singleCharacters':!0x0})){const _0x161cbe=this[_0x4aac('0xf')](_0x2959b5),_0x1809b0=this['_revisionId']++,_0x55bbe5=_0x4aac('0xa5')==_0x2959b5[_0x4aac('0xdb')]?_0x2959b5[_0x4aac('0xd1')][_0x4aac('0x69')][_0x4aac('0x1a')](0x0,-0x1):_0x2959b5[_0x4aac('0xd1')][_0x4aac('0x69')];_0x50e8f7['getNodeByPath'](_0x55bbe5)[_0x4aac('0xe5')](_0x161cbe,_0x1809b0),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x1809b0,{'userId':_0x47c96c});}}for(const _0x8b806b of this[_0x4aac('0x2f')]['model']['createRangeIn'](_0x46d792)[_0x4aac('0x90')]({'singleCharacters':!0x0})){const _0x52fb6a=this[_0x4aac('0xf')](_0x8b806b),_0x1e577d=_0x4aac('0xa5')==_0x8b806b[_0x4aac('0xdb')]?_0x8b806b[_0x4aac('0xd1')][_0x4aac('0x69')]['slice'](0x0,-0x1):_0x8b806b['previousPosition']['path'],_0x60d39=_0x50e8f7[_0x4aac('0xd4')](_0x1e577d);_0x60d39['getAttribute'](_0x52fb6a)>0x0||_0x60d39[_0x4aac('0xe5')](_0x52fb6a,_0x1835f6[_0x524ecf++]);}for(const [_0xe1ce1d,_0x29181a]of _0x46d792[_0x4aac('0x81')])_0xe1ce1d[_0x4aac('0xf5')]('revision:')||this[_0x4aac('0x37')][_0x4aac('0x52')](_0xe1ce1d,_0x29181a);}const _0x41c4bd=G(_0x4aac('0x88'));this[_0x4aac('0xa0')]['set'](_0x4aac('0x88'),_0x41c4bd),this[_0x4aac('0x43')][_0x4aac('0x52')](_0x4aac('0x88'),this[_0x4aac('0xf0')](_0x41c4bd,0x1));const _0x4ec9eb=G(_0x4aac('0x88'));this[_0x4aac('0xd2')]['set']('$graveyard',_0x4ec9eb),this[_0x4aac('0x98')][_0x4aac('0x52')]('$graveyard',this[_0x4aac('0xf0')](_0x4ec9eb,0x1));const _0x2b276f=Array[_0x4aac('0xb')](this['_diffRoots'])[_0x4aac('0x15')](([_0x28cdc1,_0x452d69])=>[_0x28cdc1,q(_0x452d69)]);this[_0x4aac('0x5f')](this['_lastTo'],_0x2b276f,this['_markers'],_0x466535);}[_0x4aac('0xaa')](_0x148994){const _0x172496=JSON[_0x4aac('0x29')](_0x148994),_0x48c93f=this[_0x4aac('0x2f')][_0x4aac('0x68')]['view']['document'],_0x5ea4a2=new _0x1c0f09(_0x48c93f,_0x172496[_0x4aac('0x15')](_0x215fcb=>J(_0x215fcb,this['editor'])));return this[_0x4aac('0x2f')]['data'][_0x4aac('0xf3')](_0x5ea4a2);}[_0x4aac('0x5f')](_0x1193c5,_0x1a0b56,_0x481d74,_0x470d00){const _0x3618c0=new Map(_0x1a0b56),_0xd9db43=new Map(_0x2c2fc7(_0x470d00)),_0x34769b=new Map();for(const [_0x1da419,_0x452ec3]of _0x481d74)_0x34769b['set'](_0x1da419,{'start':_0x452ec3[_0x4aac('0xd6')]['clone'](),'end':_0x452ec3[_0x4aac('0x8a')]['clone'](),'rootName':_0x452ec3[_0x4aac('0x4')][_0x4aac('0x74')]});this[_0x4aac('0xb3')][_0x4aac('0x52')](_0x1193c5,{'roots':_0x3618c0,'markers':_0x34769b,'rootsAttributes':_0xd9db43});}[_0x4aac('0x2e')](_0x4353bd){this[_0x4aac('0xb3')][_0x4aac('0x93')](_0x4353bd);}[_0x4aac('0x72')](){this['_reset'](),this[_0x4aac('0x5')]=-0x1,this[_0x4aac('0x50')]=-0x1,this['_savedMetaData'][_0x4aac('0x11')](),this['init'](this['source']);}[_0x4aac('0xbe')](){this[_0x4aac('0x84')][_0x4aac('0x11')](),this['_touchedMarkers']['clear'](),this[_0x4aac('0xb2')][_0x4aac('0x11')](),this[_0x4aac('0xd2')][_0x4aac('0x11')](),this[_0x4aac('0xe0')]['clear'](),this[_0x4aac('0xa0')][_0x4aac('0x11')](),this[_0x4aac('0x60')]['clear'](),this[_0x4aac('0x98')][_0x4aac('0x11')](),this['_baseIdsRoots'][_0x4aac('0x11')](),this['_markers'][_0x4aac('0x11')](),this[_0x4aac('0xf9')]=0x1,this[_0x4aac('0xf8')]=this[_0x4aac('0xf9')];}[_0x4aac('0xf0')](_0x10f86a,_0x2bac8=null){let _0x149e37=null;_0x10f86a['is'](_0x4aac('0x6e'))||(_0x149e37=new _0x5edf95(_0x10f86a['name'],{'vid_start':null===_0x2bac8?this['_revisionId']++:_0x2bac8++}));const _0x107844=[];for(const _0x2dede6 of _0x10f86a[_0x4aac('0xaf')]())if(_0x2dede6['is'](_0x4aac('0x63'))){_0x107844[_0x4aac('0x8f')](this['_makeIdsRoot'](_0x2dede6,_0x2bac8));const _0x762e26=_0x107844[_0x107844[_0x4aac('0x0')]-0x1];null!==_0x2bac8&&(_0x2bac8=_0x762e26['is'](_0x4aac('0x63'),'$text')?_0x762e26[_0x4aac('0xa4')](_0x4aac('0xe'))+0x1:_0x762e26[_0x4aac('0xa4')](_0x4aac('0x4f'))+0x1);}else for(let _0x31cbca=0x0;_0x31cbca<_0x2dede6[_0x4aac('0x1f')];_0x31cbca++)_0x107844['push'](new _0x5edf95(_0x4aac('0xf2'),{'vid':null===_0x2bac8?this[_0x4aac('0xf9')]++:_0x2bac8++}));if(_0x10f86a['is'](_0x4aac('0x6e'))){const _0x4564f9=G(_0x10f86a[_0x4aac('0x74')]);return _0x4564f9[_0x4aac('0x101')](0x0,_0x107844),_0x4564f9;}return _0x149e37[_0x4aac('0xe5')](_0x4aac('0x4f'),null===_0x2bac8?this[_0x4aac('0xf9')]++:_0x2bac8++),_0x149e37[_0x4aac('0x101')](0x0,_0x107844),_0x149e37;}['_calculateMetaData'](_0x45d433,_0xb727c1,_0x294a4b){this[_0x4aac('0xbe')]();const {roots:_0x711223,markers:_0x5251b5,rootsAttributes:_0x4e2389}=this[_0x4aac('0xb3')][_0x4aac('0xba')](_0x45d433);this['_baseRoots']=new Map(_0x711223),this[_0x4aac('0x60')]=new Map(_0x2c2fc7(_0x4e2389));for(const [_0x5f1c33,_0xaf53bf]of this['_baseRoots'])if('$graveyard'!==_0x5f1c33&&(this[_0x4aac('0xd2')][_0x4aac('0x52')](_0x5f1c33,q(_0xaf53bf)),this[_0x4aac('0xe0')]=new Map(_0x2c2fc7(_0x4e2389)),_0x294a4b)){const _0x4534b2=this['_revisionId'];this[_0x4aac('0x98')][_0x4aac('0x52')](_0x5f1c33,this[_0x4aac('0xf0')](_0xaf53bf)),this[_0x4aac('0x43')][_0x4aac('0x52')](_0x5f1c33,this[_0x4aac('0xf0')](_0xaf53bf,_0x4534b2));}this['_startingRevisionId']=this[_0x4aac('0xf9')],this[_0x4aac('0xd2')][_0x4aac('0x52')]('$graveyard',q(this['_baseRoots'][_0x4aac('0xba')](_0x4aac('0x88')))),_0x294a4b&&this[_0x4aac('0x98')][_0x4aac('0x52')]('$graveyard',this[_0x4aac('0xf0')](this[_0x4aac('0xa0')][_0x4aac('0xba')](_0x4aac('0x88'))));for(const [_0x125962,_0x3b0dd5]of _0x5251b5){const _0x377dad=this[_0x4aac('0xa0')][_0x4aac('0xba')](_0x3b0dd5[_0x4aac('0x74')]),_0x54490f=this[_0x4aac('0xd2')]['get'](_0x3b0dd5[_0x4aac('0x74')]),_0x471662=new _0xde2b77(this[_0x4aac('0xc0')](_0x3b0dd5[_0x4aac('0xd6')],_0x377dad),this[_0x4aac('0xc0')](_0x3b0dd5[_0x4aac('0x8a')],_0x377dad)),_0x537256=this[_0x4aac('0x38')](_0x471662,_0x54490f);_0x377dad[_0x4aac('0x81')][_0x4aac('0x52')](_0x125962,_0x471662),this[_0x4aac('0x37')][_0x4aac('0x52')](_0x125962,_0x537256);}this[_0x4aac('0xe1')](_0x45d433,_0xb727c1,_0x294a4b);}[_0x4aac('0xe1')](_0x5cf419,_0x225cd5,_0x3964b9){for(const _0xb1baa5 of this['source'][_0x4aac('0xdc')](_0x5cf419,_0x225cd5))this['_handleOperation'](_0xb1baa5,_0x3964b9);for(const _0x415f37 of this[_0x4aac('0xd2')]['values']())_0x415f37[_0x4aac('0x81')]['clear']();for(const [_0x31aa1b,_0x54c591]of this[_0x4aac('0x37')]){this[_0x4aac('0xd2')][_0x4aac('0xba')](_0x54c591[_0x4aac('0x4')]['rootName'])['markers'][_0x4aac('0x52')](_0x31aa1b,_0x54c591['clone']());}const _0x379b3f=new Map(),_0x4dd55c=new Map();for(const [_0x11484f,_0x498dcf]of this[_0x4aac('0xd2')])_0x379b3f[_0x4aac('0x52')](_0x11484f,q(_0x498dcf)),_0x4dd55c[_0x4aac('0x52')](_0x11484f,this[_0x4aac('0xe0')][_0x4aac('0xba')](_0x11484f));this[_0x4aac('0x5f')](_0x225cd5,_0x379b3f,this['_markers'],_0x4dd55c);}[_0x4aac('0x9f')](_0x47223b){const _0x19056f=Array[_0x4aac('0xb')](this[_0x4aac('0xb3')][_0x4aac('0x8c')]());_0x19056f['sort']((_0x4e5e29,_0x19f76d)=>_0x4e5e29-_0x19f76d),_0x19056f['reverse']();for(const _0x4134b7 of _0x19056f)if(_0x4134b7<_0x47223b)return _0x4134b7;return Number[_0x4aac('0xc2')];}[_0x4aac('0x67')](_0x1543d2,_0x569da7){const _0x3c342e=Array[_0x4aac('0xb')](_0x569da7[_0x4aac('0x81')])[_0x4aac('0x15')](([_0x4ad6f9,_0x27bde5])=>[_0x4ad6f9,this['_fixRange'](_0x27bde5,_0x1543d2)]);_0x1543d2[_0x4aac('0x81')]=new Map(_0x3c342e);}[_0x4aac('0x56')](_0x4065da){for(const _0x4633ee of this[_0x4aac('0x37')][_0x4aac('0x95')]()){const _0x295859=_0x4633ee[_0x4aac('0x2c')](_0x4065da),_0x1d16a3=_0xde2b77[_0x4aac('0x44')](_0x295859);_0x4633ee['start']=_0x1d16a3[_0x4aac('0xd6')],_0x4633ee[_0x4aac('0x8a')]=_0x1d16a3[_0x4aac('0x8a')];}}[_0x4aac('0xfe')](_0x4f9556,_0x46d327){if('addRoot'==_0x4f9556[_0x4aac('0xdb')]||'detachRoot'==_0x4f9556[_0x4aac('0xdb')])return void this[_0x4aac('0xc6')](_0x4f9556,_0x46d327);if('insert'==_0x4f9556['type']){const _0xf36bf2=_0x4f9556[_0x4aac('0x7d')][_0x4aac('0x4')]['rootName'];this[_0x4aac('0xd2')][_0x4aac('0x27')](_0xf36bf2)||(this['_diffRoots'][_0x4aac('0x52')](_0xf36bf2,G(_0xf36bf2,!0x0)),this[_0x4aac('0xe0')][_0x4aac('0x52')](_0xf36bf2,{}),_0x46d327&&this[_0x4aac('0x98')][_0x4aac('0x52')](_0xf36bf2,G(_0xf36bf2,!0x0)));}else{if(_0x4aac('0xea')==_0x4f9556[_0x4aac('0xdb')]||_0x4aac('0xdf')==_0x4f9556['type']||_0x4aac('0xa3')==_0x4f9556[_0x4aac('0xdb')])return void this[_0x4aac('0x57')](_0x4f9556);}const _0x32a9c8=this['_cloneOperation'](_0x4f9556,this[_0x4aac('0xd2')]);if(_0x4aac('0xc7')!==_0x4f9556[_0x4aac('0xdb')]&&(_0x32a9c8[_0x4aac('0xb6')](),this['_transformMarkers'](_0x32a9c8)),_0x46d327)switch(_0x32a9c8[_0x4aac('0xdb')]){case _0x4aac('0xcf'):this[_0x4aac('0xf4')](_0x4f9556);break;case'move':case'remove':case _0x4aac('0x25'):this['_handleMoveOperation'](_0x4f9556);break;case _0x4aac('0x7e'):this[_0x4aac('0x26')](_0x4f9556);break;case _0x4aac('0x13'):this[_0x4aac('0xc')](_0x4f9556);break;case _0x4aac('0xc7'):this[_0x4aac('0xec')](_0x4f9556);}}[_0x4aac('0x103')](_0x4cd27e,_0x54fd42){const _0x1247e9=_0x4cd27e[_0x4aac('0x8')]();return _0x1247e9[_0x4aac('0x2d')]=_0x4cd27e['_authorId'],this['_fixOperation'](_0x1247e9,_0x54fd42),_0x1247e9;}[_0x4aac('0xd7')](_0x13bbeb){return _0x13bbeb['map'](_0x1deb2f=>{const _0x11e8ff=this[_0x4aac('0xf')](_0x1deb2f);return Number(_0x1deb2f[_0x4aac('0xe3')][_0x4aac('0xa4')](_0x11e8ff));});}[_0x4aac('0x10')](_0x5c29cf,_0x346c22){if(_0x5c29cf['is'](_0x4aac('0x63'),'$text'))_0x346c22[_0x4aac('0x8f')]({'item':_0x5c29cf,'type':'text'});else{_0x5c29cf['is'](_0x4aac('0x63'))&&_0x346c22[_0x4aac('0x8f')]({'item':_0x5c29cf,'type':'elementStart'});for(const _0x5bbd4b of _0x5c29cf[_0x4aac('0xaf')]())this['_generateTape'](_0x5bbd4b,_0x346c22);_0x5c29cf['is']('element')&&_0x346c22[_0x4aac('0x8f')]({'item':_0x5c29cf,'type':'elementEnd'});}return _0x346c22;}[_0x4aac('0x79')](){const _0x5ede27=new Map(this[_0x4aac('0x84')]),_0x398ea2=new Map(_0x5ede27),_0x404bd8=new Map(),_0x4c1ae3={'insertions':{},'deletions':{}},_0x29da76={'insertions':{},'deletions':{}},_0x230093=new Map(),_0x688de=new Set([...this[_0x4aac('0xa0')][_0x4aac('0x8c')](),...this[_0x4aac('0xd2')]['keys']()]);_0x688de['delete'](_0x4aac('0x88'));for(const _0x49f9ee of _0x688de){const _0x13836d=this[_0x4aac('0xd2')]['get'](_0x49f9ee)||G(_0x49f9ee,!0x1),_0x1ade61=this[_0x4aac('0xa0')][_0x4aac('0xba')](_0x49f9ee)||G(_0x49f9ee,!0x1);_0x13836d[_0x4aac('0x18')]()||_0x1ade61[_0x4aac('0x18')]()?(_0x4c1ae3['insertions'][_0x49f9ee]=q(_0x13836d),_0x4c1ae3['deletions'][_0x49f9ee]=q(_0x1ade61),this['_copyMarkers'](_0x4c1ae3['deletions'][_0x49f9ee],_0x1ade61),this['_copyMarkers'](_0x4c1ae3[_0x4aac('0x2a')][_0x49f9ee],_0x13836d),_0x29da76[_0x4aac('0x2a')][_0x49f9ee]=this['_generateTape'](this[_0x4aac('0x98')]['get'](_0x49f9ee),[]),_0x29da76[_0x4aac('0x105')][_0x49f9ee]=this[_0x4aac('0x10')](this['_baseIdsRoots'][_0x4aac('0xba')](_0x49f9ee)||G(_0x49f9ee,!0x1),[])):_0x688de[_0x4aac('0x93')](_0x49f9ee);}for(const _0x9359cf of _0x688de){const _0x429d6f=_0x29da76['insertions'][_0x9359cf];for(const _0x19f976 of _0x429d6f){const _0x5559c4=this[_0x4aac('0xf')](_0x19f976),_0x323247=_0x19f976[_0x4aac('0xe3')][_0x4aac('0xa4')](_0x5559c4);_0x398ea2[_0x4aac('0x93')](_0x323247),_0x323247>=this[_0x4aac('0xf8')]&&_0x404bd8[_0x4aac('0x52')](_0x323247,_0x5ede27['get'](_0x323247));}}for(const _0xdbcdce of _0x688de){const _0x86b567=_0x29da76[_0x4aac('0x2a')][_0xdbcdce],_0x4fd53d=this[_0x4aac('0xd7')](_0x29da76['deletions'][_0xdbcdce]);let _0x78a72a=0x0;for(const _0x5b1566 of _0x86b567){const _0x5bcc41=this['_getVidAttributeName'](_0x5b1566),_0x105721=_0x5b1566[_0x4aac('0xe3')][_0x4aac('0xa4')](_0x5bcc41);if(!_0x404bd8[_0x4aac('0x27')](_0x105721)&&!_0x230093[_0x4aac('0x27')](_0x105721)){if(_0x398ea2[_0x4aac('0x27')](_0x105721))_0x78a72a++;else{if(_0x105721!=_0x4fd53d[_0x78a72a]){const _0x430ce9=_0x5ede27[_0x4aac('0xba')](_0x105721)||_0x5ede27['get'](_0x4fd53d[_0x78a72a]);for(;_0x105721!=_0x4fd53d[_0x78a72a];)_0x398ea2[_0x4aac('0x27')](_0x4fd53d[_0x78a72a])||(_0x230093[_0x4aac('0x52')](_0x4fd53d[_0x78a72a],_0x430ce9),_0x5ede27[_0x4aac('0x52')](_0x4fd53d[_0x78a72a],_0x430ce9)),_0x78a72a++;}_0x78a72a++;}}}}for(const _0x260cd1 of _0x688de){const _0x4db839=_0x29da76['insertions'][_0x260cd1];for(const _0x1271df of _0x4db839){const _0x150f64=this[_0x4aac('0xf')](_0x1271df),_0x39fa13=_0x1271df[_0x4aac('0xe3')]['getAttribute'](_0x150f64);if(_0x230093[_0x4aac('0x27')](_0x39fa13)){const _0x459625=_0x230093[_0x4aac('0xba')](_0x39fa13);_0x398ea2['has'](_0x39fa13)||_0x398ea2['set'](_0x39fa13,{..._0x459625}),_0x404bd8[_0x4aac('0x52')](_0x39fa13,{..._0x459625});}}}for(const _0x3c846a of _0x398ea2[_0x4aac('0x8c')]())_0x3c846a>=this['_startingRevisionId']&&_0x398ea2[_0x4aac('0x93')](_0x3c846a);const _0x389706=new Map();for(const _0x1f29c2 of _0x688de){let _0x571c10=_0x29da76['insertions'][_0x1f29c2];for(const _0x31de3b of _0x571c10)if(_0x31de3b['item']['is'](_0x4aac('0x63'),'tableCell')){const _0x1261d1=this[_0x4aac('0xf')](_0x31de3b),_0x4c90b5=_0x31de3b[_0x4aac('0xe3')]['getAttribute'](_0x1261d1);if(_0x404bd8[_0x4aac('0x27')](_0x4c90b5)){const _0x3d37e5=_0x31de3b[_0x4aac('0xe3')]['parent'][_0x4aac('0x1e')][_0x4aac('0xa4')]('vid_start'),_0x5a3546=_0x389706['get'](_0x3d37e5)||new Set();_0x5a3546[_0x4aac('0x33')](_0x404bd8[_0x4aac('0xba')](_0x4c90b5)['userId']),_0x389706['set'](_0x3d37e5,_0x5a3546);}}_0x571c10=_0x29da76[_0x4aac('0x105')][_0x1f29c2];for(const _0x30db23 of _0x571c10)if(_0x30db23[_0x4aac('0xe3')]['is'](_0x4aac('0x63'),'tableCell')){const _0x19256c=this[_0x4aac('0xf')](_0x30db23),_0x175a53=_0x30db23[_0x4aac('0xe3')][_0x4aac('0xa4')](_0x19256c);if(_0x398ea2[_0x4aac('0x27')](_0x175a53)){const _0x3f95f7=_0x30db23[_0x4aac('0xe3')][_0x4aac('0x1e')]['parent']['getAttribute']('vid_start'),_0xaf59c5=_0x389706[_0x4aac('0xba')](_0x3f95f7)||new Set();_0xaf59c5[_0x4aac('0x33')](_0x398ea2[_0x4aac('0xba')](_0x175a53)[_0x4aac('0x42')]),_0x389706[_0x4aac('0x52')](_0x3f95f7,_0xaf59c5);}}for(const _0x25d659 of _0x389706[_0x4aac('0x8c')]())(_0x404bd8['has'](_0x25d659)||_0x398ea2[_0x4aac('0x27')](_0x25d659))&&_0x389706[_0x4aac('0x93')](_0x25d659);}for(const _0x32f245 of _0x688de){const _0x4ddd09=_0x29da76[_0x4aac('0x2a')][_0x32f245];let _0x1d0ea8=null,_0x3c3ea1=null;for(const _0x3a1c1f of _0x4ddd09){const _0x3490e2=this['_getVidAttributeName'](_0x3a1c1f),_0x193505=_0x3a1c1f['item'][_0x4aac('0xa4')](_0x3490e2),_0x4b43bd=_0x389706[_0x4aac('0xba')](_0x193505);_0x4b43bd&&_0x4aac('0xd8')==_0x3a1c1f[_0x4aac('0xdb')]&&(_0x1d0ea8=Array['from'](_0x4b43bd)[0x0],_0x3c3ea1=_0x3a1c1f[_0x4aac('0xe3')][_0x4aac('0xa4')]('vid_end')),_0x1d0ea8&&(_0x398ea2['set'](_0x193505,{'userId':_0x1d0ea8}),_0x404bd8[_0x4aac('0x52')](_0x193505,{'userId':_0x1d0ea8})),_0x193505==_0x3c3ea1&&(_0x1d0ea8=null,_0x3c3ea1=null);}}const _0x4924de={},_0x1997dd=new Set();for(const _0x289c64 of _0x688de){const _0x48a602=_0x4c1ae3['deletions'][_0x289c64],_0x1bba4c=_0x4c1ae3['insertions'][_0x289c64];for(const {userId:_0x582fd1}of this['_touchedMarkers'][_0x4aac('0x95')]())null!==_0x582fd1&&_0x1997dd[_0x4aac('0x33')](_0x582fd1);for(const {userId:_0x14d419}of this['_touchedRoots'][_0x4aac('0x95')]())null!==_0x14d419&&_0x1997dd[_0x4aac('0x33')](_0x14d419);this[_0x4aac('0xe8')](_0x1bba4c,_0x29da76['insertions'][_0x289c64],_0x404bd8,_0x4aac('0x5b'),_0x1997dd),this['_markChanges'](_0x48a602,_0x29da76[_0x4aac('0x105')][_0x289c64],_0x398ea2,_0x4aac('0xc4'),_0x1997dd),_0x4924de[_0x289c64]={'insertions':this[_0x4aac('0xbc')](_0x1bba4c),'deletions':this[_0x4aac('0xbc')](_0x48a602),'attachChange':this[_0x4aac('0xb2')][_0x4aac('0xba')](_0x289c64)||null,'attributesBefore':_0x2c2fc7(this['_baseRootsAttributes']['get'](_0x289c64))||{},'attributesAfter':_0x2c2fc7(this['_diffRootsAttributes'][_0x4aac('0xba')](_0x289c64))};}return{'diffData':_0x4924de,'authorsIds':Array[_0x4aac('0xb')](_0x1997dd)};}[_0x4aac('0x21')](_0x4ce947){for(const [,_0xaa13b7]of _0x4ce947[_0x4aac('0x81')]){const _0x22865f=_0xaa13b7[_0x4aac('0xd6')]['getAncestors']()['filter'](_0x57c0d1=>_0x4aac('0x3')==_0x57c0d1[_0x4aac('0x2b')]);for(const _0x2687ac of _0x22865f)0x1==_0x2687ac[_0x4aac('0xb9')]&&_0x2687ac['getChild'](0x0)['is'](_0x4aac('0x63'),_0x4aac('0x1'))&&_0x2687ac[_0x4aac('0xa7')](0x0)[_0x4aac('0xe5')](_0x4aac('0x4b'),!0x0);}}[_0x4aac('0xbc')](_0x52ab5f){this[_0x4aac('0x21')](_0x52ab5f);const _0x1e4136=this[_0x4aac('0x2f')][_0x4aac('0x19')][_0x4aac('0x45')](_0x52ab5f,{}),_0x211514=Array[_0x4aac('0xb')](_0x1e4136[_0x4aac('0xaf')]())[_0x4aac('0x15')](_0x58e028=>this[_0x4aac('0x75')](_0x58e028));return JSON[_0x4aac('0x5e')](_0x211514);}['_getViewJson'](_0x40224f){if(_0x40224f['is'](_0x4aac('0xf2')))return _0x40224f[_0x4aac('0x19')];{const _0x234701=_0x40224f;return{'type':Object[_0x4aac('0x8c')](B)[_0x4aac('0x51')](_0x56c9d0=>_0x40224f instanceof B[_0x56c9d0]),'name':_0x234701['name'],'attributes':Array[_0x4aac('0xb')](_0x234701[_0x4aac('0x3b')]()),'children':Array[_0x4aac('0xb')](_0x234701[_0x4aac('0xaf')]())[_0x4aac('0x15')](_0x41ac90=>this[_0x4aac('0x75')](_0x41ac90))};}}[_0x4aac('0xe8')](_0x35c8f1,_0x19a6ee,_0x2cce76,_0x1ce3ab,_0x4762e6){let _0x309df8=null,_0x5bfc9c=null,_0x5678b9=0x0;const _0x1457c9=this[_0x4aac('0x2f')]['model'];for(let _0x4555ea=0x0;_0x4555ea<_0x19a6ee[_0x4aac('0x0')];_0x4555ea++){const _0x5ce21b=this[_0x4aac('0xf')](_0x19a6ee[_0x4555ea]),_0x23e141=_0x19a6ee[_0x4555ea]['item'][_0x4aac('0xa4')](_0x5ce21b),_0x2da112=_0x2cce76[_0x4aac('0xba')](_0x23e141),_0x245caa=_0x4555ea==_0x19a6ee[_0x4aac('0x0')]-0x1;(!_0x309df8&&_0x2da112&&(_0x309df8=_0x2da112,_0x5bfc9c=_0x19a6ee[_0x4555ea]),_0x309df8&&(!_0x2da112||_0x2da112['userId']!=_0x309df8[_0x4aac('0x42')]))&&(_0x5a9d6f(_0x2da112,L(_0x5bfc9c,_0x35c8f1,_0x1457c9),L(_0x19a6ee[_0x4555ea],_0x35c8f1,_0x1457c9)),_0x309df8=_0x2da112||null,_0x5bfc9c=_0x2da112?_0x19a6ee[_0x4555ea]:null),_0x309df8&&_0x245caa&&_0x5a9d6f(_0x2da112,L(_0x5bfc9c,_0x35c8f1,_0x1457c9),W(_0x19a6ee[_0x4555ea],_0x35c8f1,_0x1457c9));}function _0x5a9d6f(_0xda8bac,_0x458610,_0x4d27dd){const _0x50f6ee=_0x309df8['userId'],_0x493443=_0x4aac('0xff')+_0x1ce3ab+':'+_0x50f6ee+':'+_0x5678b9++,_0x273f5b=_0x1457c9[_0x4aac('0x82')](_0x458610,_0x4d27dd);_0x35c8f1['markers'][_0x4aac('0x52')](_0x493443,_0x273f5b),null!==_0x50f6ee&&_0x4762e6['add'](_0x50f6ee);}}[_0x4aac('0xf')](_0x1fbc62){switch(_0x1fbc62['type']){case _0x4aac('0xd8'):return _0x4aac('0x86');case _0x4aac('0xa5'):return _0x4aac('0x4f');default:return _0x4aac('0xe');}}[_0x4aac('0x7c')](_0x527a77,_0x2c89b5){_0x527a77[_0x4aac('0x6f')]=null;for(const _0x45952d in _0x527a77){const _0x316c14=_0x527a77[_0x45952d];if(_0x316c14 instanceof _0x39217c){const _0x41a830=_0x2c89b5[_0x4aac('0xba')](_0x316c14['root'][_0x4aac('0x74')]);_0x527a77[_0x45952d]=this[_0x4aac('0xc0')](_0x316c14,_0x41a830);}if(_0x316c14 instanceof _0xde2b77){const _0x406665=_0x2c89b5[_0x4aac('0xba')](_0x316c14[_0x4aac('0x4')][_0x4aac('0x74')]);_0x527a77[_0x45952d]=this[_0x4aac('0x38')](_0x316c14,_0x406665);}_0x4aac('0x4')===_0x45952d&&(_0x527a77[_0x4aac('0x4')]=_0x2c89b5[_0x4aac('0xba')](_0x527a77[_0x4aac('0x4')][_0x4aac('0x74')]));}}[_0x4aac('0x38')](_0x2ed686,_0x13b9f4){return this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x82')](this[_0x4aac('0xc0')](_0x2ed686['start'],_0x13b9f4),this[_0x4aac('0xc0')](_0x2ed686[_0x4aac('0x8a')],_0x13b9f4));}[_0x4aac('0xc0')](_0x3ec910,_0x1f11ec){return this['editor'][_0x4aac('0x58')][_0x4aac('0x8d')](_0x1f11ec,_0x3ec910[_0x4aac('0x69')],_0x3ec910['stickiness']);}['_handleInsertOperation'](_0x5c53d2){const _0x461992=this[_0x4aac('0x98')][_0x4aac('0xba')](_0x5c53d2[_0x4aac('0x7d')][_0x4aac('0x4')][_0x4aac('0x74')]),_0x2d93db=this[_0x4aac('0xc0')](_0x5c53d2['position'],_0x461992),_0x5e6579=null===_0x5c53d2['_authorId']?null:_0x5c53d2[_0x4aac('0x2d')]||this[_0x4aac('0x2f')]['plugins']['get'](_0x4aac('0xc3'))['me']['id'],_0x16ace5=_0x2d93db[_0x4aac('0x1e')],_0x51b986=this[_0x4aac('0xf9')],_0x2c0f52=[];for(const _0x4238e4 of _0x5c53d2[_0x4aac('0xcd')])if(_0x4238e4['is'](_0x4aac('0x63')))_0x2c0f52['push'](this[_0x4aac('0xf0')](_0x4238e4));else for(let _0x445129=0x0;_0x445129<_0x4238e4[_0x4aac('0x1f')];_0x445129++)_0x2c0f52[_0x4aac('0x8f')](new _0x5edf95('$text',{'vid':this['_revisionId']++}));const _0x217bc2=this['_revisionId'];for(let _0x5f372f=_0x51b986;_0x5f372f<_0x217bc2;_0x5f372f++)this[_0x4aac('0x84')][_0x4aac('0x52')](_0x5f372f,{'userId':_0x5e6579});_0x16ace5[_0x4aac('0x101')](_0x2d93db[_0x4aac('0x3d')],_0x2c0f52);}[_0x4aac('0x62')](_0xa3dccb){(_0xa3dccb=this[_0x4aac('0x103')](_0xa3dccb,this[_0x4aac('0x98')]))[_0x4aac('0xb6')]();const _0x1679ea=null===_0xa3dccb[_0x4aac('0x2d')]?null:_0xa3dccb[_0x4aac('0x2d')]||this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'))['me']['id'],_0x13d32f=_0xa3dccb[_0x4aac('0x12')](),_0x5a3839=_0x13d32f[_0x4aac('0x1e')],_0x8e1c1b=_0x13d32f[_0x4aac('0x3d')];!function _0x12e160(_0x3801da,_0x40567c,_0x5abf08,_0x5274be){for(let _0x503673=_0x5abf08;_0x503673<_0x5274be;_0x503673++){const _0x53e6cb=_0x40567c[_0x4aac('0xa7')](_0x503673);_0x53e6cb['is'](_0x4aac('0x63'),'$text')?_0x3801da[_0x4aac('0x52')](_0x53e6cb['getAttribute']('vid'),{'userId':_0x1679ea}):(_0x3801da[_0x4aac('0x52')](_0x53e6cb[_0x4aac('0xa4')](_0x4aac('0x86')),{'userId':_0x1679ea}),_0x12e160(_0x3801da,_0x53e6cb,0x0,_0x53e6cb[_0x4aac('0xb9')]),_0x3801da[_0x4aac('0x52')](_0x53e6cb[_0x4aac('0xa4')](_0x4aac('0x4f')),{'userId':_0x1679ea}));}}(this['_touched'],_0x5a3839,_0x8e1c1b,_0x8e1c1b+_0xa3dccb['howMany']);}['_handleMergeOperation'](_0x14ca9f){const _0x4a0fe1=null===(_0x14ca9f=this[_0x4aac('0x103')](_0x14ca9f,this[_0x4aac('0x98')]))[_0x4aac('0x2d')]?null:_0x14ca9f[_0x4aac('0x2d')]||this['editor'][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'))['me']['id'],_0x12d73b=_0x14ca9f[_0x4aac('0x2')][_0x4aac('0x1e')],_0x44115a=_0x14ca9f[_0x4aac('0x55')][_0x4aac('0x1e')],_0x100dde=_0x12d73b[_0x4aac('0xa4')](_0x4aac('0x4f')),_0x45fd37=_0x44115a[_0x4aac('0xa4')](_0x4aac('0x86'));_0x12d73b['_setAttribute'](_0x4aac('0x4f'),_0x44115a[_0x4aac('0xa4')](_0x4aac('0x4f'))),_0x44115a['_setAttribute'](_0x4aac('0x4f'),_0x100dde),this[_0x4aac('0x84')]['set'](_0x45fd37,{'userId':_0x4a0fe1}),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x100dde,{'userId':_0x4a0fe1}),_0x14ca9f['_execute']();}[_0x4aac('0xc')](_0x24126b){const _0x3319da=null===(_0x24126b=this[_0x4aac('0x103')](_0x24126b,this[_0x4aac('0x98')]))[_0x4aac('0x2d')]?null:_0x24126b['_authorId']||this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'))['me']['id'],_0x75ec27=_0x24126b[_0x4aac('0xf7')],_0x5e4407=_0x24126b[_0x4aac('0x9c')][_0x4aac('0x1e')];_0x24126b['_execute']();const _0x4fb5e4=_0x5e4407[_0x4aac('0xa4')]('vid_end'),_0x23ca53=_0x24126b[_0x4aac('0xeb')][_0x4aac('0xfb')];if(_0x75ec27){const _0x3b27be=_0x23ca53[_0x4aac('0xa4')]('vid_end'),_0x467628=_0x5e4407[_0x4aac('0xa4')](_0x4aac('0x4f'));_0x5e4407[_0x4aac('0xe5')](_0x4aac('0x4f'),_0x3b27be),_0x23ca53[_0x4aac('0xe5')]('vid_end',_0x467628),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x5e4407[_0x4aac('0xa4')](_0x4aac('0x4f')),{'userId':_0x3319da}),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x23ca53[_0x4aac('0xa4')](_0x4aac('0x86')),{'userId':_0x3319da});}else{const _0x13844e=this[_0x4aac('0xf9')]++,_0x32bfcb=this[_0x4aac('0xf9')]++;_0x5e4407[_0x4aac('0xe5')]('vid_end',_0x13844e),_0x23ca53[_0x4aac('0xe5')]('vid_start',_0x32bfcb),_0x23ca53[_0x4aac('0xe5')]('vid_end',_0x4fb5e4),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x13844e,{'userId':_0x3319da}),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x32bfcb,{'userId':_0x3319da});}}[_0x4aac('0xec')](_0x525acb){if(!_0x525acb[_0x4aac('0x6')])return;const _0x11c597=(_0x525acb=this[_0x4aac('0x103')](_0x525acb,this[_0x4aac('0xd2')]))[_0x4aac('0xbf')]?_0x525acb[_0x4aac('0xbf')][_0x4aac('0x4')]:null,_0x3b87f4=_0x525acb[_0x4aac('0x3e')]?_0x525acb[_0x4aac('0x3e')]['root']:null;_0x11c597&&this['_markers'][_0x4aac('0x93')](_0x525acb[_0x4aac('0x2b')]),_0x3b87f4&&this[_0x4aac('0x37')][_0x4aac('0x52')](_0x525acb[_0x4aac('0x2b')],_0x525acb[_0x4aac('0x3e')][_0x4aac('0x8')]());const _0x59bd3d=null===_0x525acb[_0x4aac('0x2d')]?null:_0x525acb[_0x4aac('0x2d')]||this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'))['me']['id'],_0x2b36ee=_0x525acb[_0x4aac('0x2b')];if(!this[_0x4aac('0x9e')][_0x4aac('0x27')](_0x2b36ee))return void this[_0x4aac('0x9e')]['set'](_0x2b36ee,{'range':_0x525acb[_0x4aac('0xbf')],'userId':_0x59bd3d});const _0x4252ca=this[_0x4aac('0x9e')][_0x4aac('0xba')](_0x2b36ee),_0x54143b=_0x4252ca['range'],_0x2be7ce=_0x525acb[_0x4aac('0x3e')];null==_0x54143b&&null==_0x2be7ce||_0x54143b&&_0x2be7ce&&_0x54143b[_0x4aac('0xa6')](_0x2be7ce)?this[_0x4aac('0x9e')]['delete'](_0x525acb['name']):_0x4252ca[_0x4aac('0x42')]=_0x59bd3d;}[_0x4aac('0xc6')](_0x3b84e4,_0x4f4885){this[_0x4aac('0xd2')][_0x4aac('0x27')](_0x3b84e4[_0x4aac('0x74')])?this[_0x4aac('0xd2')][_0x4aac('0xba')](_0x3b84e4[_0x4aac('0x74')])['_isAttached']=_0x3b84e4['isAdd']:(this[_0x4aac('0xd2')][_0x4aac('0x52')](_0x3b84e4['rootName'],G(_0x3b84e4[_0x4aac('0x74')],!0x0)),this['_diffRootsAttributes'][_0x4aac('0x52')](_0x3b84e4['rootName'],{}),_0x4f4885&&this[_0x4aac('0x98')]['set'](_0x3b84e4[_0x4aac('0x74')],G(_0x3b84e4[_0x4aac('0x74')],!0x0)));const _0x1cda71=null===_0x3b84e4[_0x4aac('0x2d')]?null:_0x3b84e4[_0x4aac('0x2d')]||this['editor'][_0x4aac('0x47')]['get'](_0x4aac('0xc3'))['me']['id'],_0x496573=this[_0x4aac('0xb2')][_0x4aac('0xba')](_0x3b84e4['rootName']);_0x496573&&_0x496573[_0x4aac('0x42')]===_0x1cda71?this[_0x4aac('0xb2')][_0x4aac('0x93')](_0x3b84e4[_0x4aac('0x74')]):this[_0x4aac('0xb2')][_0x4aac('0x52')](_0x3b84e4[_0x4aac('0x74')],{'userId':_0x1cda71,'isAttached':_0x3b84e4[_0x4aac('0xf6')]});}['_handleRootAttributeOperation'](_0x40a04e){const _0x4cdf8f=this[_0x4aac('0xe0')][_0x4aac('0xba')](_0x40a04e[_0x4aac('0x4')][_0x4aac('0x74')]);null===_0x40a04e[_0x4aac('0x49')]?delete _0x4cdf8f[_0x40a04e[_0x4aac('0xab')]]:_0x4cdf8f[_0x40a04e['key']]=_0x40a04e['newValue'];}}function q(_0x3dec90){const _0x511220=G(_0x3dec90[_0x4aac('0x74')],_0x3dec90['isAttached']());for(const _0x4ae3e5 of _0x3dec90['getChildren']()){const _0x47e3f6=_0x4ae3e5[_0x4aac('0x65')](!0x0);_0x511220['_appendChild'](_0x47e3f6);}return _0x511220;}function G(_0x1ad117,_0x12ce0e=!0x0){const _0x458b4a=new _0x54e3f3();return _0x458b4a[_0x4aac('0x74')]=_0x1ad117,_0x458b4a[_0x4aac('0x48')]=_0x12ce0e,_0x458b4a['isAttached']=()=>_0x458b4a[_0x4aac('0x48')],_0x458b4a;}function L(_0x12c1fe,_0x49c7a4,_0x57f201){const _0x231480=_0x4aac('0xa5')==_0x12c1fe[_0x4aac('0xdb')]?_0x57f201[_0x4aac('0x34')](_0x12c1fe['item'],_0x4aac('0x8a')):_0x57f201['createPositionBefore'](_0x12c1fe[_0x4aac('0xe3')]);return _0x57f201[_0x4aac('0x8d')](_0x49c7a4,_0x231480[_0x4aac('0x69')],_0x231480[_0x4aac('0x96')]);}function W(_0x1ce93f,_0x5243ab,_0x2844cf){const _0x4ff6cd=_0x4aac('0xd8')==_0x1ce93f['type']?_0x2844cf[_0x4aac('0x34')](_0x1ce93f['item'],0x0):_0x2844cf['createPositionAfter'](_0x1ce93f[_0x4aac('0xe3')]);return _0x2844cf[_0x4aac('0x8d')](_0x5243ab,_0x4ff6cd[_0x4aac('0x69')],_0x4ff6cd[_0x4aac('0x96')]);}
|
|
23
|
+
const _0x30eb=['position','_handleMergeOperation','vid_start','vid_end','_baseRoots','sourcePosition','type','_startingVersion','_loadRevisionData','getRootNames','max','getRange','some','insertion','tableCell','text','isEqual','_fixOperation','revision:','buildRevisionData','upcast','getData','reverse','_lastTo','children','_markers','_createCurrentRevision','_diffRoots','_generateTape','documentFragment','editor-initial-data-replaced-with-revision-data','newRange','howMany','map','pluginName','_makeRevision','_makeIdsRoot','_copyMarkers','root','has','createPositionAfter','reinsert','collaboration.channelId','find','_loadedStateData','conversion','_lastFrom','key','attributesBefore','toModel','_handleRootAttributeOperation','insert','_applyOperations','_addPendingAction','shift','delete','_handleSplitOperation','splitPosition','_handleMarkerOperation','parent','clear','bind','for','Initial\x20revision','_isPendingUpdate','source','userId','merge','model','default','elementEnd','getRevisionDocumentData','vid','_handleMoveOperation','_getPreviousFrom','_clone','attributesAfter','config','graveyardPosition','getUser','_idsRoots','_createInitialRevision','_findInsertionIndex','_handleInsertOperation','RealTimeCollaborationClient','markerToData','update','_bufferUpdate','element','getChild','slice','document','getWalker','rootName','markers','end','_touched','view','getRevisions','toVersion','_touchedMarkers','editor','_authorId','_setAttribute','_startingRevisionId','start','_saveMetaData','initialData','Users','clone','paragraph','createPositionBefore','_getVidAttributeName','_getFromVersion','currentRevision','_getState','getAncestors','offsetSize','oldRange','$graveyard','add','getAttributes','marker','_cloneOperation','includes','startsWith','repository','dataDowncast','getChildren','_reset','authorsIds','afterInit','size','move','roots','revisionHistory.resumeUnsavedRevision','parse','baseVersion','createdAt','childCount','NEGATIVE_INFINITY','_bufferedUpdates','creatorId','_getViewJson','_loadState','revision-start','newValue','insertions','history','resolve','_insertChild','creator','getCurrentRevisionId','affectsData','isAttached','_savedMetaData','from','finally','offset','targetPosition','marked','PENDING_ACTION_REVISION_HISTORY','_removeMetaData','getRevision','_isAttached','_touchedRoots','previousPosition','nodes','attributes','_pendingAction','sort','RevisionsRepository','deletions','_processRootBeforeSave','stickiness','_revisionDataBuilder','Empty\x20document','createPositionFromPath','_getBaseVids','_diffRootsAttributes','_baseIdsRoots','_source','getNodeByPath','toData','getMovedRangeStart','processor','RevisionTracker','useFillerType','isEnabled','createPositionAt','_replaceEditorDataWithRevisionData','_calculateMetaData','addRevision','initial','then','loadState','_removePendingAction','version','nodeAfter','get','$text','item','_handleRootOperation','removeRootAttribute','plugins','authors','fromVersion','name','editing','rootsAttributes','revision-end','isAdd','addRevisionData','setRevisionData','push','_execute','_continueCurrentRevision','elementStart','length','_fixRange','_fixPosition','_update','detachRoot','values','addRootAttribute','_prepareViewToSave','getAttribute','_handleOperation','keys','set','adapter','_initialRevisionId','attachChange','locale','getRevisionRootsAttributes','getLatestVersion','split','forEach','sendBufferedUpdates','_revisionId','trim','_makeModelFromViewString','diffData','init','stringify','_baseRootsAttributes','string','dataToMarker','keepParagraph','reInit','getTransformedByOperation','requires','isReady','data','filter','_markChanges','_removeRevisionMarkers','path'];(function(_0x2d0f78,_0x30eb33){const _0x18a543=function(_0x7240d4){while(--_0x7240d4){_0x2d0f78['push'](_0x2d0f78['shift']());}};_0x18a543(++_0x30eb33);}(_0x30eb,0x121));const _0x18a5=function(_0x2d0f78,_0x30eb33){_0x2d0f78=_0x2d0f78-0x0;let _0x18a543=_0x30eb[_0x2d0f78];return _0x18a543;};import{Users as _0x1a58e2}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xe77ae8,PendingActions as _0xe7ecc3}from'ckeditor5/src/core';import{logWarning as _0x3519c4,uid as _0x7d457c}from'ckeditor5/src/utils';import{Position as _0x170f37,Range as _0x287ef,Element as _0x5f4c69,DocumentFragment as _0x1d8fd3,ViewText as _0x585615,ViewElement as _0x1e0a6b,ViewContainerElement as _0x1c2131,ViewAttributeElement as _0x4710a6,ViewEmptyElement as _0x35c355,ViewRawElement as _0x3b2455,ViewUIElement as _0x32f24e,ViewDocumentFragment as _0x3a7ce5}from'ckeditor5/src/engine';import _0x30b6b3 from'./revisionsrepository';import{getTranslation as _0x18fdb9}from'./utils/common-translations';import{cloneDeep as _0x158255,isEqual as _0x50f222}from'lodash-es';const B={'c':_0x1c2131,'a':_0x4710a6,'e':_0x35c355,'r':_0x3b2455,'u':_0x32f24e};export default class l extends _0xe77ae8{static get[_0x18a5('0x3')](){return _0x18a5('0x9b');}static get[_0x18a5('0xdc')](){return[_0x1a58e2,_0x30b6b3,_0xe7ecc3];}constructor(_0xa791a0){super(_0xa791a0),this[_0x18a5('0xc7')]=null,this['currentRevision']=null,this[_0x18a5('0x90')]=new H(this[_0x18a5('0x46')]),this[_0x18a5('0xc8')]=this['editor'][_0x18a5('0x2e')][_0x18a5('0xa8')](_0x18a5('0xb'))||_0x18a5('0xa2'),this['_bufferedUpdates']=new Map(),this[_0x18a5('0xd')]=null;const _0x40e7ba=_0x7d457c();this[_0x18a5('0x96')]={'history':this[_0x18a5('0x46')][_0x18a5('0x25')][_0x18a5('0x3c')][_0x18a5('0x75')],'getLatestVersion':()=>Promise[_0x18a5('0x76')](this[_0x18a5('0x46')][_0x18a5('0x25')][_0x18a5('0x3c')][_0x18a5('0xa6')]),'getCurrentRevisionId':()=>_0x40e7ba},this[_0x18a5('0xc6')](_0x18a5('0xdd'),!0x1),this['set'](_0x18a5('0x9d'),!0x0),this[_0x18a5('0xc6')](_0x18a5('0x21'),!0x1),this[_0x18a5('0x46')][_0x18a5('0x2e')]['define'](_0x18a5('0x68'),!0x0),this[_0x18a5('0x46')][_0x18a5('0xe')][_0x18a5('0x1f')](_0x18a5('0xf7'))[_0x18a5('0xd8')]({'view':'revision'});}[_0x18a5('0xd4')](){this[_0x18a5('0x5f')]=this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x8c')),this['_setConversion'](),this[_0x18a5('0x46')]['data']['on']('ready',()=>{const _0x12ced4=this[_0x18a5('0x5f')]['getRevision'](0x0),_0x2ed20b=_0x12ced4&&null===_0x12ced4[_0x18a5('0x78')]?_0x12ced4:null;if(this[_0x18a5('0xb9')]=!!_0x2ed20b&&this[_0x18a5('0x46')][_0x18a5('0x2e')][_0x18a5('0xa8')](_0x18a5('0x68')),this['editor'][_0x18a5('0xad')]['has'](_0x18a5('0x35'))){const _0xb583fe=this[_0x18a5('0x96')][_0x18a5('0x79')](),_0x3cc9bf=this[_0x18a5('0x5f')][_0x18a5('0x84')](_0xb583fe);if(_0x3cc9bf)this[_0x18a5('0xea')]=_0x3cc9bf[_0x18a5('0xaf')],this['_continueCurrentRevision']=!0x1;else{const _0x1b5892=this[_0x18a5('0x96')]['history']['_operations'][_0x18a5('0xc')](_0x36b31e=>!_0x36b31e['_isInit']),_0x383e6=_0x1b5892?_0x1b5892[_0x18a5('0x6a')]:this[_0x18a5('0x96')][_0x18a5('0x75')][_0x18a5('0xa6')];_0x12ced4?(_0x12ced4[_0x18a5('0x44')]<_0x383e6&&_0x12ced4['_update']({'toVersion':_0x383e6}),this[_0x18a5('0xb9')]?(this[_0x18a5('0x96')][_0x18a5('0x79')]=()=>_0x2ed20b['id'],this[_0x18a5('0xea')]=_0x2ed20b[_0x18a5('0xaf')]):(this['_startingVersion']=_0x12ced4[_0x18a5('0x44')],this[_0x18a5('0xb9')]=!0x1)):(this[_0x18a5('0xea')]=_0x383e6,this[_0x18a5('0xb9')]=!0x1);}}else _0x2ed20b&&(this[_0x18a5('0x46')]['model']['document']['history'][_0x18a5('0xa6')]=Math[_0x18a5('0xed')](_0x2ed20b[_0x18a5('0x44')],this[_0x18a5('0x46')][_0x18a5('0x25')][_0x18a5('0x3c')][_0x18a5('0x75')][_0x18a5('0xa6')]),_0x2ed20b[_0x18a5('0xaf')]===_0x2ed20b['toVersion']?(0x0!==_0x2ed20b[_0x18a5('0xaf')]&&(this[_0x18a5('0x96')][_0x18a5('0x79')]=()=>_0x2ed20b['id']),this[_0x18a5('0xb9')]=!0x1):this[_0x18a5('0xb9')]&&(this[_0x18a5('0x96')]['getCurrentRevisionId']=()=>_0x2ed20b['id'],this[_0x18a5('0xea')]=_0x2ed20b['fromVersion'])),this[_0x18a5('0xb9')]||(this['_startingVersion']=this['editor']['model']['document'][_0x18a5('0xa6')]);this[_0x18a5('0x90')][_0x18a5('0xd4')](this[_0x18a5('0x96')][_0x18a5('0x75')]),this['_createInitialRevision'](this[_0x18a5('0xea')]),this[_0x18a5('0xfd')](this[_0x18a5('0xea')]),this[_0x18a5('0xc7')]&&this[_0x18a5('0xcf')]();}),this[_0x18a5('0x1e')](_0x18a5('0xdd'))['to'](this,_0x18a5('0x21'),_0x571211=>!_0x571211);}async[_0x18a5('0x64')](){if(this[_0x18a5('0x5f')][_0x18a5('0xbb')]>0x0){const _0x4ea8d0=this[_0x18a5('0x5f')][_0x18a5('0x84')](0x0),_0x4614a6=await this[_0x18a5('0x28')](_0x4ea8d0),_0x484063=await this[_0x18a5('0xcb')](_0x4ea8d0);this[_0x18a5('0x9f')](_0x4614a6,_0x484063);}}['setSource'](_0x3693f2){this[_0x18a5('0x96')]=_0x3693f2;}async[_0x18a5('0x37')](){const _0x3de340=await this[_0x18a5('0x96')]['getLatestVersion']();if(_0x3de340>this[_0x18a5('0x53')]['toVersion']){await this[_0x18a5('0x71')]();const _0x5a7770=this[_0x18a5('0xf6')]({'revision':this[_0x18a5('0x53')],'to':_0x3de340});_0x5a7770['authors']=_0x5a7770[_0x18a5('0x63')]['map'](_0x80a53b=>this[_0x18a5('0x46')]['plugins'][_0x18a5('0xa8')]('Users')[_0x18a5('0x30')](_0x80a53b)),this[_0x18a5('0x53')][_0x18a5('0xbe')](_0x5a7770);}}async[_0x18a5('0x71')](){this[_0x18a5('0xb9')]&&!this['_loadedStateData']&&(await this[_0x18a5('0xeb')](this[_0x18a5('0x53')]),this[_0x18a5('0x90')][_0x18a5('0xa4')](this[_0x18a5('0x53')]),this['_loadedStateData']={'fromVersion':this[_0x18a5('0x53')]['fromVersion'],'authors':this[_0x18a5('0x53')]['authors']['slice']()});}async['saveRevision'](_0xd796b2={},_0x16bbe6=null){const _0x328557=[];await this[_0x18a5('0x71')](),this['_continueCurrentRevision']=!0x1,_0x16bbe6>this['currentRevision'][_0x18a5('0x44')]&&(_0x16bbe6=null),null===_0x16bbe6&&(_0x16bbe6=await this[_0x18a5('0x96')][_0x18a5('0xcc')]());const _0x2bc665=this[_0x18a5('0x52')](_0x16bbe6),_0x4800ee=this['buildRevisionData']({'from':_0x2bc665,'to':_0x16bbe6});if(this[_0x18a5('0x53')]['toVersion']<_0x16bbe6){const _0x275de9=this[_0x18a5('0xf6')]({'revision':this[_0x18a5('0x53')],'from':_0x16bbe6,'to':_0x16bbe6});_0x275de9['authors']=[],_0x275de9[_0x18a5('0x63')]=[],_0x275de9['id']=this[_0x18a5('0x53')]['id'],this[_0x18a5('0x53')][_0x18a5('0xbe')](_0x275de9,!0x0),delete _0x275de9[_0x18a5('0xae')],_0x328557[_0x18a5('0xb7')](_0x275de9);}_0xd796b2[_0x18a5('0x6f')]=this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0xd796b2[_0x18a5('0xb0')]=_0xd796b2[_0x18a5('0xb0')]||null,_0xd796b2['id']=_0xd796b2['id']||_0x7d457c(),_0xd796b2={..._0xd796b2,..._0x4800ee};const _0x526c3b=this[_0x18a5('0xb5')](_0xd796b2);_0x328557['push'](_0xd796b2);const _0x1f99b5=this[_0x18a5('0x5f')]['getIndex'](_0x526c3b);if(0x0!==_0x1f99b5){const _0x4ce88e=this[_0x18a5('0x5f')][_0x18a5('0x84')](_0x1f99b5-0x1);if(_0x4ce88e[_0x18a5('0xaf')]!==_0x16bbe6){const _0x45968a=this[_0x18a5('0x90')][_0x18a5('0xf8')](_0x16bbe6,_0x4ce88e[_0x18a5('0x44')]),_0x54a00f={'id':_0x4ce88e['id'],'diffData':_0x45968a[_0x18a5('0xd3')],'authorsIds':_0x45968a[_0x18a5('0x63')],'authors':_0x45968a[_0x18a5('0x63')][_0x18a5('0x2')](_0x4055d5=>this[_0x18a5('0x46')]['plugins'][_0x18a5('0xa8')](_0x18a5('0x4d'))[_0x18a5('0x30')](_0x4055d5)),'fromVersion':_0x16bbe6};_0x4ce88e===this['currentRevision']&&(_0x54a00f[_0x18a5('0x6b')]=new Date(_0xd796b2[_0x18a5('0x6b')]['getTime']()+0xa)),_0x4ce88e[_0x18a5('0xbe')](_0x54a00f,!0x0),delete _0x54a00f[_0x18a5('0xae')],_0x328557['push'](_0x54a00f);}}if(this['adapter']){for(const _0x2fe128 of _0x328557)this[_0x18a5('0x38')](_0x2fe128['id'],_0x2fe128,!0x0);this['sendBufferedUpdates']();}return _0x526c3b;}[_0x18a5('0xb5')](_0x363581){const _0x5345a8=this['repository']['createRevision'](_0x363581);return this['adapter']&&_0x5345a8['on'](_0x18a5('0xbe'),(_0x1ceaa5,_0x26f3fa,_0x19bfff)=>{_0x19bfff||(this[_0x18a5('0x38')](_0x26f3fa['id'],_0x26f3fa,!0x0),this[_0x18a5('0xcf')]());}),this[_0x18a5('0x5f')][_0x18a5('0xa1')](_0x5345a8,this[_0x18a5('0x33')](_0x5345a8)),_0x5345a8;}async[_0x18a5('0x28')](_0x33c7d7){await this[_0x18a5('0xeb')](_0x33c7d7);const _0x30e16f={};for(const _0x2dbce4 in _0x33c7d7['diffData']){if(_0x33c7d7['diffData'][_0x2dbce4][_0x18a5('0xc9')]&&!_0x33c7d7[_0x18a5('0xd3')][_0x2dbce4][_0x18a5('0xc9')][_0x18a5('0x7b')])continue;const _0x4ad4a8=this[_0x18a5('0xe1')](JSON[_0x18a5('0x69')](_0x33c7d7[_0x18a5('0xd3')][_0x2dbce4][_0x18a5('0x74')])),_0x1d4242=this[_0x18a5('0x46')][_0x18a5('0xb1')][_0x18a5('0x42')][_0x18a5('0x3c')],_0x5641b0=new _0x3a7ce5(_0x1d4242,_0x4ad4a8[_0x18a5('0x2')](_0x21a7ee=>J(_0x21a7ee,this['editor'])));this['editor'][_0x18a5('0xde')][_0x18a5('0x9a')]['useFillerType'](_0x18a5('0x81')),_0x30e16f[_0x2dbce4]=this[_0x18a5('0x46')][_0x18a5('0xde')][_0x18a5('0x9a')][_0x18a5('0x98')](_0x5641b0),this[_0x18a5('0x46')][_0x18a5('0xde')][_0x18a5('0x9a')][_0x18a5('0x9c')](_0x18a5('0x26'));}return _0x30e16f;}async[_0x18a5('0xcb')](_0x315f9e){await this['_loadRevisionData'](_0x315f9e);const _0x443fbc={};for(const _0x30ca2b in _0x315f9e[_0x18a5('0xd3')])_0x315f9e[_0x18a5('0xd3')][_0x30ca2b][_0x18a5('0xc9')]&&!_0x315f9e['diffData'][_0x30ca2b][_0x18a5('0xc9')][_0x18a5('0x7b')]||(_0x443fbc[_0x30ca2b]=_0x315f9e[_0x18a5('0xd3')][_0x30ca2b][_0x18a5('0x2d')]||{});return _0x443fbc;}['sendBufferedUpdates'](){if(0x0===this[_0x18a5('0x6e')][_0x18a5('0x65')])return;if(this[_0x18a5('0x21')])return;let _0x3bfb87=Array['from'](this[_0x18a5('0x6e')][_0x18a5('0xc0')]());this[_0x18a5('0x6e')]['clear']();for(let _0x268fe2=0x0;_0x268fe2<_0x3bfb87[_0x18a5('0xbb')];_0x268fe2++){const _0x30f0d2=_0x3bfb87[_0x268fe2];let _0x210604=!0x1;for(const _0x206708 of Object[_0x18a5('0xc5')](_0x30f0d2))void 0x0===_0x30f0d2[_0x206708]?delete _0x30f0d2[_0x206708]:'id'!==_0x206708&&(_0x210604=!0x0);_0x210604||(_0x3bfb87[_0x268fe2]=null);}if(_0x3bfb87=_0x3bfb87[_0x18a5('0xdf')](_0x1c733f=>null!==_0x1c733f),!_0x3bfb87[_0x18a5('0xbb')])return;for(let _0x1ec269=0x0;_0x1ec269<_0x3bfb87[_0x18a5('0xbb')];_0x1ec269++){const _0x2c078c=_0x3bfb87[_0x1ec269];void 0x0!==_0x2c078c[_0x18a5('0xaf')]&&void 0x0===_0x2c078c[_0x18a5('0x44')]&&(_0x2c078c['toVersion']=this[_0x18a5('0x5f')][_0x18a5('0x84')](_0x2c078c['id'])[_0x18a5('0x44')]),void 0x0!==_0x2c078c[_0x18a5('0x44')]&&void 0x0===_0x2c078c[_0x18a5('0xaf')]&&(_0x2c078c['fromVersion']=this[_0x18a5('0x5f')]['getRevision'](_0x2c078c['id'])[_0x18a5('0xaf')]);}const _0x1fc9a1=this[_0x18a5('0x46')][_0x18a5('0x2e')][_0x18a5('0xa8')](_0x18a5('0xb'));this[_0x18a5('0x21')]=!0x0,this['_addPendingAction'](),this[_0x18a5('0xc7')]['updateRevisions'](_0x3bfb87,_0x1fc9a1)[_0x18a5('0x7e')](()=>{this[_0x18a5('0x21')]=!0x1;})[_0x18a5('0xa3')](_0x210ae9=>{if(_0x210ae9)for(const _0xc7f5d3 of _0x210ae9)this[_0x18a5('0xb6')]({'id':_0xc7f5d3['id'],'createdAt':_0xc7f5d3[_0x18a5('0x6b')]});this[_0x18a5('0xa5')](),this[_0x18a5('0xcf')]();});}[_0x18a5('0x9f')](_0x16029e,_0x1fbb6a){let _0x29a2bc=this[_0x18a5('0x46')]['config'][_0x18a5('0xa8')](_0x18a5('0x4c')),_0x3d5ffa=this[_0x18a5('0x46')][_0x18a5('0x2e')][_0x18a5('0xa8')](_0x18a5('0xb2'));if(void 0x0===_0x29a2bc){_0x29a2bc={};for(const _0x27db89 of this['editor'][_0x18a5('0x25')][_0x18a5('0x3c')]['getRootNames']())_0x29a2bc[_0x27db89]='';}if(_0x18a5('0xd7')==typeof _0x29a2bc&&(_0x29a2bc={'main':_0x29a2bc}),void 0x0===_0x3d5ffa){_0x3d5ffa={};for(const _0x5acff8 of this[_0x18a5('0x46')][_0x18a5('0x25')]['document'][_0x18a5('0xec')]())_0x3d5ffa[_0x5acff8]={};}let _0x31612d=!0x1;const _0x26eab6=Object[_0x18a5('0xc5')](_0x29a2bc),_0x44a3c9=Object['keys'](_0x16029e);for(const _0x36507e of _0x26eab6){if(_0x29a2bc[_0x36507e]!==_0x16029e[_0x36507e]&&''!==_0x29a2bc[_0x36507e][_0x18a5('0xd1')]()){_0x31612d=!0x0;break;}if(!_0x50f222(_0x3d5ffa[_0x36507e],_0x1fbb6a[_0x36507e])&&Object[_0x18a5('0xc5')](_0x3d5ffa[_0x36507e])[_0x18a5('0xbb')]>0x0){_0x31612d=!0x0;break;}}_0x31612d||(_0x31612d=_0x44a3c9[_0x18a5('0xef')](_0x327ffb=>!this['editor']['model'][_0x18a5('0x3c')]['getRoot'](_0x327ffb))),_0x31612d&&_0x3519c4(_0x18a5('0x101'),{'editorData':_0x29a2bc,'editorRootsAttributes':_0x3d5ffa,'revisionData':_0x16029e,'revisionRootsAttributes':_0x1fbb6a}),this[_0x18a5('0x46')][_0x18a5('0x2e')]['set']('initialData',_0x16029e),this[_0x18a5('0x46')]['config'][_0x18a5('0xc6')](_0x18a5('0xb2'),_0x1fbb6a);}[_0x18a5('0x16')](){if(!this[_0x18a5('0x8a')]){const _0x5940b8=this[_0x18a5('0x46')][_0x18a5('0xad')]['get']('PendingActions');this[_0x18a5('0x8a')]=_0x5940b8['add'](_0x18fdb9(this[_0x18a5('0x46')]['locale'],_0x18a5('0x82')));}}[_0x18a5('0xa5')](){this[_0x18a5('0x8a')]&&(this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')]('PendingActions')['remove'](this[_0x18a5('0x8a')]),this['_pendingAction']=null);}[_0x18a5('0x33')](_0x1fb6d5){const _0x589f27=this[_0x18a5('0x5f')]['getRevisions']();_0x589f27[_0x18a5('0xf9')]();let _0xbd5733=0x0;for(;_0xbd5733<_0x589f27[_0x18a5('0xbb')];){const _0x12bcb5=_0x589f27[_0xbd5733];if(_0x12bcb5===this[_0x18a5('0x53')]){_0xbd5733++;continue;}if(_0x12bcb5['id']===this[_0x18a5('0xc8')])break;const _0x105932=_0x1fb6d5[_0x18a5('0x44')]-_0x12bcb5['toVersion']||_0x1fb6d5[_0x18a5('0xaf')]-_0x12bcb5[_0x18a5('0xaf')];if(_0x105932>0x0)break;if(_0x105932<0x0)_0xbd5733++;else{if(!_0x1fb6d5[_0x18a5('0x78')]&&_0x12bcb5['creator'])break;if(_0x12bcb5[_0x18a5('0x78')]||!_0x1fb6d5[_0x18a5('0x78')]){if(_0x1fb6d5[_0x18a5('0x6b')]>_0x12bcb5[_0x18a5('0x6b')])break;_0xbd5733++;}else _0xbd5733++;}}return _0xbd5733;}[_0x18a5('0xb6')](_0x344043){const _0x4b7dc4=this['repository'][_0x18a5('0x84')](_0x344043['id']);if(_0x344043[_0x18a5('0x6b')]&&(_0x344043[_0x18a5('0x6b')]=new Date(_0x344043['createdAt'])),_0x344043['authorsIds']){const _0x215035=this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'));_0x344043[_0x18a5('0xae')]=_0x344043[_0x18a5('0x63')][_0x18a5('0x2')](_0x3c119b=>_0x215035[_0x18a5('0x30')](_0x3c119b));}_0x4b7dc4[_0x18a5('0xbe')](_0x344043,!0x0);}[_0x18a5('0xf6')]({revision:_0x444822=null,from:_0x3f298f=null,to:_0x9d66e7=null}){_0x3f298f=null!==_0x3f298f?_0x3f298f:_0x444822[_0x18a5('0xaf')],_0x9d66e7=null!==_0x9d66e7?_0x9d66e7:_0x444822[_0x18a5('0x44')];const _0x1d99f7=this[_0x18a5('0x90')][_0x18a5('0xf8')](_0x3f298f,_0x9d66e7),_0x38d9c9={'diffData':_0x1d99f7[_0x18a5('0xd3')],'authorsIds':_0x1d99f7[_0x18a5('0x63')],'fromVersion':_0x3f298f,'toVersion':_0x9d66e7};if(!_0x444822||_0x9d66e7!==_0x444822[_0x18a5('0x44')]){const _0x1091e7=_0x9d66e7-0x1,_0x576fcf=this[_0x18a5('0x96')][_0x18a5('0x75')]['getOperation'](_0x1091e7);_0x38d9c9['createdAt']=_0x576fcf&&_0x576fcf[_0x18a5('0x6b')]||new Date();}if(this[_0x18a5('0xd')]&&_0x3f298f===this['_loadedStateData'][_0x18a5('0xaf')])for(const _0x7a0068 of this['_loadedStateData'][_0x18a5('0xae')])_0x38d9c9[_0x18a5('0x63')][_0x18a5('0x5d')](_0x7a0068['id'])||_0x38d9c9[_0x18a5('0x63')][_0x18a5('0xb7')](_0x7a0068['id']);return _0x38d9c9;}[_0x18a5('0xeb')](_0x2e852b){if(!_0x2e852b||_0x2e852b[_0x18a5('0xd3')])return Promise['resolve']();{const _0xd5b881=this[_0x18a5('0x46')][_0x18a5('0x2e')][_0x18a5('0xa8')](_0x18a5('0xb'));return this['adapter']['getRevision']({'channelId':_0xd5b881,'revisionId':_0x2e852b['id']})[_0x18a5('0xa3')](_0x42cc6e=>{_0x2e852b[_0x18a5('0xd3')]=_0x42cc6e[_0x18a5('0xd3')];});}}[_0x18a5('0x38')](_0x1209cf,_0x34443b,_0x470e6c){if(this[_0x18a5('0x6e')][_0x18a5('0x8')](_0x1209cf)){const _0x26e5d8=this[_0x18a5('0x6e')][_0x18a5('0xa8')](_0x1209cf);_0x34443b=_0x470e6c?{..._0x26e5d8,..._0x34443b}:{..._0x34443b,..._0x26e5d8};}this['_bufferedUpdates'][_0x18a5('0xc6')](_0x1209cf,_0x34443b);}['_getFromVersion'](_0x216b9e){const _0x27ce6a=this['repository'][_0x18a5('0x43')]();_0x27ce6a[_0x18a5('0xf9')](),_0x27ce6a[_0x18a5('0x17')]();const _0x1bf070=_0x27ce6a[_0x18a5('0xc')](_0x42474b=>_0x42474b[_0x18a5('0x44')]<=_0x216b9e)[_0x18a5('0x44')];return _0x1bf070<this[_0x18a5('0xea')]?this[_0x18a5('0xea')]:_0x1bf070;}[_0x18a5('0x32')](_0x240e2e){const _0x3fb0f7=this[_0x18a5('0x5f')][_0x18a5('0x84')](this[_0x18a5('0x5f')][_0x18a5('0xbb')]-0x1);if(_0x3fb0f7)this[_0x18a5('0xc8')]=_0x3fb0f7['id'];else{const _0x4645cf=!this[_0x18a5('0x46')][_0x18a5('0x25')][_0x18a5('0x3c')][_0x18a5('0x67')]['find'](_0x2ea01c=>this[_0x18a5('0x46')][_0x18a5('0x25')]['hasContent'](_0x2ea01c)),_0x28f3aa=this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x1ba35d=_0x18fdb9(this[_0x18a5('0x46')][_0x18a5('0xca')],_0x4645cf?_0x18a5('0x91'):_0x18a5('0x20'));this[_0x18a5('0x4')]({'from':_0x240e2e,'to':_0x240e2e,'id':this[_0x18a5('0xc8')],'name':_0x1ba35d,'creatorId':_0x28f3aa});}}[_0x18a5('0xfd')](_0x166f1b){const _0x507062=this[_0x18a5('0x96')][_0x18a5('0x79')]();this[_0x18a5('0x53')]=this['repository'][_0x18a5('0x84')](_0x507062),this[_0x18a5('0x53')]||(this[_0x18a5('0x53')]=this[_0x18a5('0x4')]({'from':_0x166f1b,'to':_0x166f1b,'id':_0x507062,'name':'','creatorId':null}));}['_makeRevision']({name:_0xfb5c88,from:_0x1b1b9e,to:_0x1b77c8,creatorId:_0x571e2e,id:_0x2de521}){const _0x41ec28=this[_0x18a5('0xf6')]({'from':_0x1b1b9e,'to':_0x1b77c8});_0x41ec28[_0x18a5('0xb0')]=_0xfb5c88,_0x41ec28[_0x18a5('0x6f')]=_0x571e2e,_0x41ec28['id']=_0x2de521;const _0x5b4087=this['addRevisionData'](_0x41ec28);return this['adapter']&&this['_bufferUpdate'](_0x41ec28['id'],_0x41ec28,!0x0),_0x5b4087;}['_setConversion'](){this[_0x18a5('0x46')][_0x18a5('0xe')][_0x18a5('0x1f')](_0x18a5('0x60'))[_0x18a5('0x36')]({'model':'revision'});}['_removeRevisionMarkers'](_0x4f739c){return(_0x4f739c=_0x4f739c['filter'](_0x4a34f2=>!_0x4a34f2[_0x18a5('0xb0')]||_0x18a5('0x72')!==_0x4a34f2[_0x18a5('0xb0')]&&_0x18a5('0xb3')!==_0x4a34f2['name']))[_0x18a5('0xce')](_0x11e99c=>{_0x18a5('0xd7')!=typeof _0x11e99c&&(_0x11e99c[_0x18a5('0xfb')]=this[_0x18a5('0xe1')](_0x11e99c[_0x18a5('0xfb')]),_0x11e99c[_0x18a5('0x89')]=_0x11e99c['attributes']['filter'](_0x5e641e=>!_0x5e641e[0x0]['startsWith']('data-revision-')));}),_0x4f739c;}}function J(_0x299e5f,_0x4f76f9){const _0x324982=_0x4f76f9['editing'][_0x18a5('0x42')][_0x18a5('0x3c')];if(_0x18a5('0xd7')==typeof _0x299e5f)return new _0x585615(_0x324982,_0x299e5f);{const _0x18bb2c=_0x299e5f[_0x18a5('0xfb')]['map'](_0x111ed2=>J(_0x111ed2,_0x4f76f9));return new(B[_0x299e5f[(_0x18a5('0xe9'))]]||_0x1e0a6b)(_0x324982,_0x299e5f[_0x18a5('0xb0')],_0x299e5f[_0x18a5('0x89')],_0x18bb2c);}}class H{constructor(_0x20c8ad){this['editor']=_0x20c8ad,this['_savedMetaData']=new Map(),this[_0x18a5('0xf')]=-0x1,this[_0x18a5('0xfa')]=-0x1,this[_0x18a5('0xfc')]=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x18a5('0xe7')]=new Map(),this[_0x18a5('0xd6')]=new Map(),this['_idsRoots']=new Map(),this[_0x18a5('0x95')]=new Map(),this[_0x18a5('0x41')]=new Map(),this[_0x18a5('0x45')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x10d34a){this[_0x18a5('0x22')]=_0x10d34a;const _0x2e885d=new Map(),_0x3e437f=new Map(),_0x24ff10=this['editor'][_0x18a5('0x25')][_0x18a5('0x3c')][_0x18a5('0x67')][_0x18a5('0x2')](_0x2c7cbb=>_0x2c7cbb[_0x18a5('0x3e')]);for(const _0xf2e391 of _0x24ff10){const _0x2d5a13=this[_0x18a5('0x46')][_0x18a5('0x25')][_0x18a5('0x3c')]['getRoot'](_0xf2e391),_0x14b5aa=q(_0x2d5a13);_0x2e885d[_0x18a5('0xc6')](_0xf2e391,_0x14b5aa),_0x3e437f['set'](_0xf2e391,Object['fromEntries'](_0x2d5a13[_0x18a5('0x5a')]()));}const _0x3dd944=Array[_0x18a5('0x7d')](this[_0x18a5('0x46')][_0x18a5('0x25')]['markers'])[_0x18a5('0x2')](_0x553830=>[_0x553830[_0x18a5('0xb0')],_0x553830[_0x18a5('0xee')]()]),_0x4ddbdf=this[_0x18a5('0x22')][_0x18a5('0xa6')];this[_0x18a5('0x4b')](_0x4ddbdf,_0x2e885d,_0x3dd944,_0x3e437f),this[_0x18a5('0x49')]=this['_revisionId'];const _0x92a1c1=new Map(),_0x5c070f=new Map();for(const _0x330ae8 of _0x24ff10){const _0x3216c5=G(_0x330ae8);_0x92a1c1['set'](_0x330ae8,_0x3216c5),_0x5c070f['set'](_0x330ae8,{});}this[_0x18a5('0x4b')](Number[_0x18a5('0x6d')],_0x92a1c1,[],_0x5c070f);}[_0x18a5('0xf8')](_0xfb863c,_0x4433a7){if(this['_lastFrom']===_0xfb863c&&this[_0x18a5('0xfa')]<=_0x4433a7)this[_0x18a5('0x7c')][_0x18a5('0x65')]>0x1&&this[_0x18a5('0x83')](this[_0x18a5('0xfa')]),this['_applyOperations'](this[_0x18a5('0xfa')],_0x4433a7,!0x0);else{if(!this[_0x18a5('0x7c')][_0x18a5('0x8')](_0xfb863c)){const _0xfb17c3=this[_0x18a5('0x2b')](_0xfb863c);this[_0x18a5('0xa0')](_0xfb17c3,_0xfb863c,!0x1);}this[_0x18a5('0xa0')](_0xfb863c,_0x4433a7,!0x0);}return this[_0x18a5('0xf')]=_0xfb863c,this[_0x18a5('0xfa')]=_0x4433a7,this[_0x18a5('0x54')]();}['loadState'](_0x7c141f){this['_reset'](),this[_0x18a5('0xf')]=_0x7c141f['fromVersion'],this[_0x18a5('0xfa')]=_0x7c141f[_0x18a5('0x44')];for(const _0x294a9b in _0x7c141f['diffData']){const _0x2eafcf=_0x7c141f['diffData'][_0x294a9b][_0x18a5('0xc9')],_0x23dd7d=_0x158255(_0x7c141f[_0x18a5('0xd3')][_0x294a9b][_0x18a5('0x11')])||{},_0xf50d0b=this[_0x18a5('0xd2')](_0x7c141f[_0x18a5('0xd3')][_0x294a9b][_0x18a5('0x8d')]);_0xf50d0b['rootName']=_0x294a9b,_0xf50d0b[_0x18a5('0x85')]=!_0x2eafcf||!_0x2eafcf[_0x18a5('0x7b')],_0xf50d0b[_0x18a5('0x7b')]=()=>_0xf50d0b[_0x18a5('0x85')],this[_0x18a5('0xe7')][_0x18a5('0xc6')](_0x294a9b,_0xf50d0b),this[_0x18a5('0xd6')][_0x18a5('0xc6')](_0x294a9b,_0x23dd7d),_0x2eafcf&&this[_0x18a5('0x86')][_0x18a5('0xc6')](_0x294a9b,_0x2eafcf);const _0x5a98e6=this[_0x18a5('0x5')](_0xf50d0b);this['_baseIdsRoots'][_0x18a5('0xc6')](_0x294a9b,_0x5a98e6);for(const [_0x180b14,_0x2a40b6]of _0xf50d0b[_0x18a5('0x3f')]){if(!_0x180b14[_0x18a5('0x5e')](_0x18a5('0xf5')))continue;const _0x3d6a05=_0x180b14[_0x18a5('0xcd')](':')[0x2];for(const _0x14241a of _0x2a40b6[_0x18a5('0x3d')]({'singleCharacters':!0x0})){const _0x3b3c38=this[_0x18a5('0x51')](_0x14241a),_0x3b3302=_0x18a5('0x27')==_0x14241a[_0x18a5('0xe9')]?_0x14241a[_0x18a5('0x87')][_0x18a5('0xe2')][_0x18a5('0x3b')](0x0,-0x1):_0x14241a[_0x18a5('0x87')]['path'],_0x58f075=_0x5a98e6[_0x18a5('0x97')](_0x3b3302)[_0x18a5('0xc3')](_0x3b3c38);this[_0x18a5('0x41')]['set'](_0x58f075,{'userId':_0x3d6a05});}}}this[_0x18a5('0x49')]=this[_0x18a5('0xd0')];const _0x577027=[...Array(this[_0x18a5('0xd0')])[_0x18a5('0xc5')]()][_0x18a5('0x3b')](0x1)['filter'](_0x4f97fe=>!this[_0x18a5('0x41')][_0x18a5('0x8')](_0x4f97fe));let _0x2400b5=0x0;const _0x41803d=new Map();for(const _0x8d9d8d in _0x7c141f[_0x18a5('0xd3')]){const _0x2c0597=_0x7c141f[_0x18a5('0xd3')][_0x8d9d8d]['attachChange'],_0x3ba7f1=_0x158255(_0x7c141f[_0x18a5('0xd3')][_0x8d9d8d][_0x18a5('0x2d')])||{},_0xf70a1a=this[_0x18a5('0xd2')](_0x7c141f[_0x18a5('0xd3')][_0x8d9d8d]['insertions']);_0xf70a1a[_0x18a5('0x3e')]=_0x8d9d8d,_0xf70a1a[_0x18a5('0x85')]=!_0x2c0597||_0x2c0597['isAttached'],_0xf70a1a[_0x18a5('0x7b')]=()=>_0xf70a1a[_0x18a5('0x85')],this[_0x18a5('0xfe')][_0x18a5('0xc6')](_0x8d9d8d,_0xf70a1a),this[_0x18a5('0x94')][_0x18a5('0xc6')](_0x8d9d8d,_0x3ba7f1);const _0x41cf2f=this[_0x18a5('0x5')](_0xf70a1a,Number[_0x18a5('0x6d')]);this[_0x18a5('0x31')]['set'](_0x8d9d8d,_0x41cf2f),_0x41803d[_0x18a5('0xc6')](_0x8d9d8d,_0xf70a1a[_0x18a5('0x7b')]()?_0x3ba7f1:{});for(const [_0x3b33fc,_0x369f5d]of _0xf70a1a[_0x18a5('0x3f')]){if(!_0x3b33fc[_0x18a5('0x5e')](_0x18a5('0xf5')))continue;const _0x184206=_0x3b33fc[_0x18a5('0xcd')](':')[0x2];for(const _0x75b5fc of _0x369f5d['getWalker']({'singleCharacters':!0x0})){const _0x16924c=this[_0x18a5('0x51')](_0x75b5fc),_0x1d62aa=this['_revisionId']++,_0x42cc12='elementEnd'==_0x75b5fc[_0x18a5('0xe9')]?_0x75b5fc['previousPosition'][_0x18a5('0xe2')][_0x18a5('0x3b')](0x0,-0x1):_0x75b5fc[_0x18a5('0x87')][_0x18a5('0xe2')];_0x41cf2f[_0x18a5('0x97')](_0x42cc12)['_setAttribute'](_0x16924c,_0x1d62aa),this['_touched'][_0x18a5('0xc6')](_0x1d62aa,{'userId':_0x184206});}}for(const _0x121ac1 of this[_0x18a5('0x46')][_0x18a5('0x25')]['createRangeIn'](_0xf70a1a)[_0x18a5('0x3d')]({'singleCharacters':!0x0})){const _0x22c2fe=this[_0x18a5('0x51')](_0x121ac1),_0x4e2268=_0x18a5('0x27')==_0x121ac1['type']?_0x121ac1['previousPosition']['path'][_0x18a5('0x3b')](0x0,-0x1):_0x121ac1[_0x18a5('0x87')][_0x18a5('0xe2')],_0x249820=_0x41cf2f[_0x18a5('0x97')](_0x4e2268);_0x249820['getAttribute'](_0x22c2fe)>0x0||_0x249820[_0x18a5('0x48')](_0x22c2fe,_0x577027[_0x2400b5++]);}for(const [_0x3ba39f,_0x22c60d]of _0xf70a1a[_0x18a5('0x3f')])_0x3ba39f[_0x18a5('0x5e')](_0x18a5('0xf5'))||this['_markers'][_0x18a5('0xc6')](_0x3ba39f,_0x22c60d);}const _0x4c7b88=G(_0x18a5('0x58'));this['_baseRoots'][_0x18a5('0xc6')]('$graveyard',_0x4c7b88),this[_0x18a5('0x95')][_0x18a5('0xc6')](_0x18a5('0x58'),this[_0x18a5('0x5')](_0x4c7b88,0x1));const _0x4c6cb8=G(_0x18a5('0x58'));this[_0x18a5('0xfe')][_0x18a5('0xc6')](_0x18a5('0x58'),_0x4c6cb8),this[_0x18a5('0x31')][_0x18a5('0xc6')]('$graveyard',this[_0x18a5('0x5')](_0x4c6cb8,0x1));const _0x597e5d=Array[_0x18a5('0x7d')](this[_0x18a5('0xfe')])[_0x18a5('0x2')](([_0xe17843,_0x3e4d26])=>[_0xe17843,q(_0x3e4d26)]);this[_0x18a5('0x4b')](this[_0x18a5('0xfa')],_0x597e5d,this[_0x18a5('0xfc')],_0x41803d);}[_0x18a5('0xd2')](_0x3db930){const _0x371b92=JSON['parse'](_0x3db930),_0x3b02e4=this[_0x18a5('0x46')][_0x18a5('0xb1')][_0x18a5('0x42')][_0x18a5('0x3c')],_0x31389c=new _0x3a7ce5(_0x3b02e4,_0x371b92['map'](_0x60bea6=>J(_0x60bea6,this[_0x18a5('0x46')])));return this[_0x18a5('0x46')][_0x18a5('0xde')][_0x18a5('0x12')](_0x31389c);}[_0x18a5('0x4b')](_0x5caa8d,_0x65c5d0,_0x84e5cb,_0x58ed56){const _0x3de103=new Map(_0x65c5d0),_0xd0a626=new Map(_0x158255(_0x58ed56)),_0x344a0c=new Map();for(const [_0x1438d3,_0x49d2ba]of _0x84e5cb)_0x344a0c['set'](_0x1438d3,{'start':_0x49d2ba[_0x18a5('0x4a')][_0x18a5('0x4e')](),'end':_0x49d2ba[_0x18a5('0x40')][_0x18a5('0x4e')](),'rootName':_0x49d2ba[_0x18a5('0x7')][_0x18a5('0x3e')]});this[_0x18a5('0x7c')][_0x18a5('0xc6')](_0x5caa8d,{'roots':_0x3de103,'markers':_0x344a0c,'rootsAttributes':_0xd0a626});}[_0x18a5('0x83')](_0x21695a){this[_0x18a5('0x7c')][_0x18a5('0x18')](_0x21695a);}[_0x18a5('0xda')](){this[_0x18a5('0x62')](),this[_0x18a5('0xf')]=-0x1,this[_0x18a5('0xfa')]=-0x1,this[_0x18a5('0x7c')][_0x18a5('0x1d')](),this[_0x18a5('0xd4')](this[_0x18a5('0x22')]);}[_0x18a5('0x62')](){this[_0x18a5('0x41')]['clear'](),this[_0x18a5('0x45')][_0x18a5('0x1d')](),this['_touchedRoots'][_0x18a5('0x1d')](),this[_0x18a5('0xfe')][_0x18a5('0x1d')](),this['_diffRootsAttributes'][_0x18a5('0x1d')](),this[_0x18a5('0xe7')][_0x18a5('0x1d')](),this['_baseRootsAttributes'][_0x18a5('0x1d')](),this[_0x18a5('0x31')][_0x18a5('0x1d')](),this[_0x18a5('0x95')][_0x18a5('0x1d')](),this[_0x18a5('0xfc')][_0x18a5('0x1d')](),this[_0x18a5('0xd0')]=0x1,this[_0x18a5('0x49')]=this[_0x18a5('0xd0')];}[_0x18a5('0x5')](_0x239567,_0xdee8b5=null){let _0x3b4ed1=null;_0x239567['is'](_0x18a5('0x100'))||(_0x3b4ed1=new _0x5f4c69(_0x239567['name'],{'vid_start':null===_0xdee8b5?this[_0x18a5('0xd0')]++:_0xdee8b5++}));const _0x2a5d82=[];for(const _0x582cf3 of _0x239567[_0x18a5('0x61')]())if(_0x582cf3['is'](_0x18a5('0x39'))){_0x2a5d82[_0x18a5('0xb7')](this[_0x18a5('0x5')](_0x582cf3,_0xdee8b5));const _0x30f177=_0x2a5d82[_0x2a5d82[_0x18a5('0xbb')]-0x1];null!==_0xdee8b5&&(_0xdee8b5=_0x30f177['is'](_0x18a5('0x39'),_0x18a5('0xa9'))?_0x30f177[_0x18a5('0xc3')](_0x18a5('0x29'))+0x1:_0x30f177['getAttribute'](_0x18a5('0xe6'))+0x1);}else for(let _0x1fe79b=0x0;_0x1fe79b<_0x582cf3[_0x18a5('0x56')];_0x1fe79b++)_0x2a5d82['push'](new _0x5f4c69(_0x18a5('0xa9'),{'vid':null===_0xdee8b5?this[_0x18a5('0xd0')]++:_0xdee8b5++}));if(_0x239567['is'](_0x18a5('0x100'))){const _0x56d17f=G(_0x239567[_0x18a5('0x3e')]);return _0x56d17f['_insertChild'](0x0,_0x2a5d82),_0x56d17f;}return _0x3b4ed1[_0x18a5('0x48')](_0x18a5('0xe6'),null===_0xdee8b5?this[_0x18a5('0xd0')]++:_0xdee8b5++),_0x3b4ed1['_insertChild'](0x0,_0x2a5d82),_0x3b4ed1;}[_0x18a5('0xa0')](_0x20cd69,_0x307bfb,_0x3e44ec){this[_0x18a5('0x62')]();const {roots:_0x593e47,markers:_0x11834b,rootsAttributes:_0x2c33d2}=this['_savedMetaData'][_0x18a5('0xa8')](_0x20cd69);this[_0x18a5('0xe7')]=new Map(_0x593e47),this[_0x18a5('0xd6')]=new Map(_0x158255(_0x2c33d2));for(const [_0x214523,_0x405a7f]of this[_0x18a5('0xe7')])if(_0x18a5('0x58')!==_0x214523&&(this[_0x18a5('0xfe')][_0x18a5('0xc6')](_0x214523,q(_0x405a7f)),this[_0x18a5('0x94')]=new Map(_0x158255(_0x2c33d2)),_0x3e44ec)){const _0x5050b0=this[_0x18a5('0xd0')];this[_0x18a5('0x31')][_0x18a5('0xc6')](_0x214523,this[_0x18a5('0x5')](_0x405a7f)),this['_baseIdsRoots'][_0x18a5('0xc6')](_0x214523,this[_0x18a5('0x5')](_0x405a7f,_0x5050b0));}this[_0x18a5('0x49')]=this['_revisionId'],this[_0x18a5('0xfe')][_0x18a5('0xc6')]('$graveyard',q(this[_0x18a5('0xe7')][_0x18a5('0xa8')](_0x18a5('0x58')))),_0x3e44ec&&this[_0x18a5('0x31')]['set'](_0x18a5('0x58'),this['_makeIdsRoot'](this['_baseRoots'][_0x18a5('0xa8')](_0x18a5('0x58'))));for(const [_0x14c994,_0x258fd7]of _0x11834b){const _0x2112c0=this[_0x18a5('0xe7')][_0x18a5('0xa8')](_0x258fd7[_0x18a5('0x3e')]),_0x393185=this['_diffRoots'][_0x18a5('0xa8')](_0x258fd7[_0x18a5('0x3e')]),_0x3a67c5=new _0x287ef(this['_fixPosition'](_0x258fd7[_0x18a5('0x4a')],_0x2112c0),this[_0x18a5('0xbd')](_0x258fd7['end'],_0x2112c0)),_0x21d912=this[_0x18a5('0xbc')](_0x3a67c5,_0x393185);_0x2112c0['markers'][_0x18a5('0xc6')](_0x14c994,_0x3a67c5),this[_0x18a5('0xfc')][_0x18a5('0xc6')](_0x14c994,_0x21d912);}this[_0x18a5('0x15')](_0x20cd69,_0x307bfb,_0x3e44ec);}[_0x18a5('0x15')](_0x3596e2,_0x3c7152,_0x60108a){for(const _0x531c8e of this[_0x18a5('0x22')]['getOperations'](_0x3596e2,_0x3c7152))this[_0x18a5('0xc4')](_0x531c8e,_0x60108a);for(const _0x2f5ea9 of this[_0x18a5('0xfe')][_0x18a5('0xc0')]())_0x2f5ea9['markers']['clear']();for(const [_0x4a7668,_0x3b0cae]of this[_0x18a5('0xfc')]){this[_0x18a5('0xfe')]['get'](_0x3b0cae[_0x18a5('0x7')][_0x18a5('0x3e')])[_0x18a5('0x3f')][_0x18a5('0xc6')](_0x4a7668,_0x3b0cae[_0x18a5('0x4e')]());}const _0x18d0bd=new Map(),_0xd7005e=new Map();for(const [_0x490caa,_0x5c4306]of this[_0x18a5('0xfe')])_0x18d0bd[_0x18a5('0xc6')](_0x490caa,q(_0x5c4306)),_0xd7005e['set'](_0x490caa,this['_diffRootsAttributes'][_0x18a5('0xa8')](_0x490caa));this[_0x18a5('0x4b')](_0x3c7152,_0x18d0bd,this['_markers'],_0xd7005e);}[_0x18a5('0x2b')](_0x2e3f81){const _0x8b218c=Array[_0x18a5('0x7d')](this[_0x18a5('0x7c')][_0x18a5('0xc5')]());_0x8b218c[_0x18a5('0x8b')]((_0x538f46,_0x5d7b4b)=>_0x538f46-_0x5d7b4b),_0x8b218c['reverse']();for(const _0x1de700 of _0x8b218c)if(_0x1de700<_0x2e3f81)return _0x1de700;return Number[_0x18a5('0x6d')];}[_0x18a5('0x6')](_0x48b690,_0x484d8b){const _0x218493=Array[_0x18a5('0x7d')](_0x484d8b[_0x18a5('0x3f')])[_0x18a5('0x2')](([_0xbc32ce,_0x38396b])=>[_0xbc32ce,this['_fixRange'](_0x38396b,_0x48b690)]);_0x48b690[_0x18a5('0x3f')]=new Map(_0x218493);}['_transformMarkers'](_0x2df58e){for(const _0x21b075 of this['_markers']['values']()){const _0x53cc8c=_0x21b075[_0x18a5('0xdb')](_0x2df58e),_0x3a76e6=_0x287ef['_createFromRanges'](_0x53cc8c);_0x21b075['start']=_0x3a76e6[_0x18a5('0x4a')],_0x21b075['end']=_0x3a76e6[_0x18a5('0x40')];}}[_0x18a5('0xc4')](_0x304b77,_0x392f95){if('addRoot'==_0x304b77[_0x18a5('0xe9')]||_0x18a5('0xbf')==_0x304b77[_0x18a5('0xe9')])return void this[_0x18a5('0xab')](_0x304b77,_0x392f95);if(_0x18a5('0x14')==_0x304b77[_0x18a5('0xe9')]){const _0x569561=_0x304b77['position'][_0x18a5('0x7')][_0x18a5('0x3e')];this[_0x18a5('0xfe')][_0x18a5('0x8')](_0x569561)||(this[_0x18a5('0xfe')][_0x18a5('0xc6')](_0x569561,G(_0x569561,!0x0)),this[_0x18a5('0x94')][_0x18a5('0xc6')](_0x569561,{}),_0x392f95&&this[_0x18a5('0x31')][_0x18a5('0xc6')](_0x569561,G(_0x569561,!0x0)));}else{if(_0x18a5('0xc1')==_0x304b77['type']||_0x18a5('0xac')==_0x304b77['type']||'changeRootAttribute'==_0x304b77['type'])return void this[_0x18a5('0x13')](_0x304b77);}const _0x207514=this[_0x18a5('0x5c')](_0x304b77,this[_0x18a5('0xfe')]);if(_0x18a5('0x5b')!==_0x304b77[_0x18a5('0xe9')]&&(_0x207514[_0x18a5('0xb8')](),this['_transformMarkers'](_0x207514)),_0x392f95)switch(_0x207514[_0x18a5('0xe9')]){case _0x18a5('0x14'):this[_0x18a5('0x34')](_0x304b77);break;case _0x18a5('0x66'):case'remove':case _0x18a5('0xa'):this[_0x18a5('0x2a')](_0x304b77);break;case _0x18a5('0x24'):this[_0x18a5('0xe4')](_0x304b77);break;case'split':this['_handleSplitOperation'](_0x304b77);break;case _0x18a5('0x5b'):this['_handleMarkerOperation'](_0x304b77);}}[_0x18a5('0x5c')](_0x39840c,_0x3bb3f0){const _0x3c468a=_0x39840c[_0x18a5('0x4e')]();return _0x3c468a[_0x18a5('0x47')]=_0x39840c['_authorId'],this[_0x18a5('0xf4')](_0x3c468a,_0x3bb3f0),_0x3c468a;}[_0x18a5('0x93')](_0x59bada){return _0x59bada[_0x18a5('0x2')](_0x45cf0e=>{const _0x1f0ee6=this[_0x18a5('0x51')](_0x45cf0e);return Number(_0x45cf0e[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x1f0ee6));});}['_generateTape'](_0x391aee,_0x46c40d){if(_0x391aee['is']('element',_0x18a5('0xa9')))_0x46c40d[_0x18a5('0xb7')]({'item':_0x391aee,'type':_0x18a5('0xf2')});else{_0x391aee['is'](_0x18a5('0x39'))&&_0x46c40d[_0x18a5('0xb7')]({'item':_0x391aee,'type':_0x18a5('0xba')});for(const _0x359f52 of _0x391aee['getChildren']())this[_0x18a5('0xff')](_0x359f52,_0x46c40d);_0x391aee['is'](_0x18a5('0x39'))&&_0x46c40d[_0x18a5('0xb7')]({'item':_0x391aee,'type':_0x18a5('0x27')});}return _0x46c40d;}['_getState'](){const _0x55aae7=new Map(this[_0x18a5('0x41')]),_0x5e8eac=new Map(_0x55aae7),_0x209f35=new Map(),_0x47fd42={'insertions':{},'deletions':{}},_0x4d65c8={'insertions':{},'deletions':{}},_0x196c4d=new Map(),_0x1ebe17=new Set([...this[_0x18a5('0xe7')][_0x18a5('0xc5')](),...this['_diffRoots']['keys']()]);_0x1ebe17[_0x18a5('0x18')](_0x18a5('0x58'));for(const _0x457ad3 of _0x1ebe17){const _0x3e43c8=this[_0x18a5('0xfe')][_0x18a5('0xa8')](_0x457ad3)||G(_0x457ad3,!0x1),_0x5474e6=this[_0x18a5('0xe7')][_0x18a5('0xa8')](_0x457ad3)||G(_0x457ad3,!0x1);_0x3e43c8[_0x18a5('0x7b')]()||_0x5474e6[_0x18a5('0x7b')]()?(_0x47fd42[_0x18a5('0x74')][_0x457ad3]=q(_0x3e43c8),_0x47fd42[_0x18a5('0x8d')][_0x457ad3]=q(_0x5474e6),this[_0x18a5('0x6')](_0x47fd42[_0x18a5('0x8d')][_0x457ad3],_0x5474e6),this[_0x18a5('0x6')](_0x47fd42[_0x18a5('0x74')][_0x457ad3],_0x3e43c8),_0x4d65c8[_0x18a5('0x74')][_0x457ad3]=this['_generateTape'](this[_0x18a5('0x31')]['get'](_0x457ad3),[]),_0x4d65c8['deletions'][_0x457ad3]=this[_0x18a5('0xff')](this[_0x18a5('0x95')][_0x18a5('0xa8')](_0x457ad3)||G(_0x457ad3,!0x1),[])):_0x1ebe17[_0x18a5('0x18')](_0x457ad3);}for(const _0x14a382 of _0x1ebe17){const _0x2bef2b=_0x4d65c8[_0x18a5('0x74')][_0x14a382];for(const _0x12eb6b of _0x2bef2b){const _0x221c3c=this[_0x18a5('0x51')](_0x12eb6b),_0x52f160=_0x12eb6b[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x221c3c);_0x5e8eac['delete'](_0x52f160),_0x52f160>=this[_0x18a5('0x49')]&&_0x209f35['set'](_0x52f160,_0x55aae7[_0x18a5('0xa8')](_0x52f160));}}for(const _0x34a953 of _0x1ebe17){const _0x3d401c=_0x4d65c8['insertions'][_0x34a953],_0x36a42b=this[_0x18a5('0x93')](_0x4d65c8['deletions'][_0x34a953]);let _0x30d8c4=0x0;for(const _0x1f556a of _0x3d401c){const _0x1fbd59=this[_0x18a5('0x51')](_0x1f556a),_0x5deee6=_0x1f556a[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x1fbd59);if(!_0x209f35['has'](_0x5deee6)&&!_0x196c4d['has'](_0x5deee6)){if(_0x5e8eac[_0x18a5('0x8')](_0x5deee6))_0x30d8c4++;else{if(_0x5deee6!=_0x36a42b[_0x30d8c4]){const _0x196a6a=_0x55aae7[_0x18a5('0xa8')](_0x5deee6)||_0x55aae7[_0x18a5('0xa8')](_0x36a42b[_0x30d8c4]);for(;_0x5deee6!=_0x36a42b[_0x30d8c4];)_0x5e8eac[_0x18a5('0x8')](_0x36a42b[_0x30d8c4])||(_0x196c4d[_0x18a5('0xc6')](_0x36a42b[_0x30d8c4],_0x196a6a),_0x55aae7['set'](_0x36a42b[_0x30d8c4],_0x196a6a)),_0x30d8c4++;}_0x30d8c4++;}}}}for(const _0x3c12bf of _0x1ebe17){const _0x584ae4=_0x4d65c8[_0x18a5('0x74')][_0x3c12bf];for(const _0x2d599a of _0x584ae4){const _0x6d1118=this[_0x18a5('0x51')](_0x2d599a),_0x5c6cd2=_0x2d599a['item'][_0x18a5('0xc3')](_0x6d1118);if(_0x196c4d['has'](_0x5c6cd2)){const _0x24ecd2=_0x196c4d[_0x18a5('0xa8')](_0x5c6cd2);_0x5e8eac[_0x18a5('0x8')](_0x5c6cd2)||_0x5e8eac[_0x18a5('0xc6')](_0x5c6cd2,{..._0x24ecd2}),_0x209f35['set'](_0x5c6cd2,{..._0x24ecd2});}}}for(const _0x2940e2 of _0x5e8eac['keys']())_0x2940e2>=this[_0x18a5('0x49')]&&_0x5e8eac['delete'](_0x2940e2);const _0x4a2f4a=new Map();for(const _0x547aff of _0x1ebe17){let _0x46f0b7=_0x4d65c8[_0x18a5('0x74')][_0x547aff];for(const _0x17e483 of _0x46f0b7)if(_0x17e483[_0x18a5('0xaa')]['is'](_0x18a5('0x39'),_0x18a5('0xf1'))){const _0x3d9325=this[_0x18a5('0x51')](_0x17e483),_0x1d47ee=_0x17e483[_0x18a5('0xaa')]['getAttribute'](_0x3d9325);if(_0x209f35[_0x18a5('0x8')](_0x1d47ee)){const _0x4f4076=_0x17e483[_0x18a5('0xaa')]['parent'][_0x18a5('0x1c')]['getAttribute'](_0x18a5('0xe5')),_0x17e5e6=_0x4a2f4a[_0x18a5('0xa8')](_0x4f4076)||new Set();_0x17e5e6['add'](_0x209f35[_0x18a5('0xa8')](_0x1d47ee)[_0x18a5('0x23')]),_0x4a2f4a[_0x18a5('0xc6')](_0x4f4076,_0x17e5e6);}}_0x46f0b7=_0x4d65c8['deletions'][_0x547aff];for(const _0x30b9c0 of _0x46f0b7)if(_0x30b9c0[_0x18a5('0xaa')]['is'](_0x18a5('0x39'),'tableCell')){const _0x255254=this['_getVidAttributeName'](_0x30b9c0),_0x773dd1=_0x30b9c0[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x255254);if(_0x5e8eac[_0x18a5('0x8')](_0x773dd1)){const _0x3fbb35=_0x30b9c0[_0x18a5('0xaa')][_0x18a5('0x1c')][_0x18a5('0x1c')]['getAttribute'](_0x18a5('0xe5')),_0x43a53c=_0x4a2f4a[_0x18a5('0xa8')](_0x3fbb35)||new Set();_0x43a53c['add'](_0x5e8eac['get'](_0x773dd1)[_0x18a5('0x23')]),_0x4a2f4a[_0x18a5('0xc6')](_0x3fbb35,_0x43a53c);}}for(const _0x562fdd of _0x4a2f4a[_0x18a5('0xc5')]())(_0x209f35[_0x18a5('0x8')](_0x562fdd)||_0x5e8eac[_0x18a5('0x8')](_0x562fdd))&&_0x4a2f4a['delete'](_0x562fdd);}for(const _0x52dc19 of _0x1ebe17){const _0x577b1f=_0x4d65c8[_0x18a5('0x74')][_0x52dc19];let _0x560a74=null,_0x545b34=null;for(const _0x24b99e of _0x577b1f){const _0x5a02f9=this[_0x18a5('0x51')](_0x24b99e),_0x46cfa8=_0x24b99e[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x5a02f9),_0xfe6f42=_0x4a2f4a['get'](_0x46cfa8);_0xfe6f42&&_0x18a5('0xba')==_0x24b99e[_0x18a5('0xe9')]&&(_0x560a74=Array[_0x18a5('0x7d')](_0xfe6f42)[0x0],_0x545b34=_0x24b99e[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x18a5('0xe6'))),_0x560a74&&(_0x5e8eac[_0x18a5('0xc6')](_0x46cfa8,{'userId':_0x560a74}),_0x209f35[_0x18a5('0xc6')](_0x46cfa8,{'userId':_0x560a74})),_0x46cfa8==_0x545b34&&(_0x560a74=null,_0x545b34=null);}}const _0x25e1e0={},_0x4974a8=new Set();for(const _0x5b1560 of _0x1ebe17){const _0x1da87f=_0x47fd42[_0x18a5('0x8d')][_0x5b1560],_0x25bb59=_0x47fd42['insertions'][_0x5b1560];for(const {userId:_0x4267d7}of this['_touchedMarkers'][_0x18a5('0xc0')]())null!==_0x4267d7&&_0x4974a8[_0x18a5('0x59')](_0x4267d7);for(const {userId:_0x17a0fc}of this[_0x18a5('0x86')][_0x18a5('0xc0')]())null!==_0x17a0fc&&_0x4974a8[_0x18a5('0x59')](_0x17a0fc);this[_0x18a5('0xe0')](_0x25bb59,_0x4d65c8[_0x18a5('0x74')][_0x5b1560],_0x209f35,_0x18a5('0xf0'),_0x4974a8),this[_0x18a5('0xe0')](_0x1da87f,_0x4d65c8['deletions'][_0x5b1560],_0x5e8eac,'deletion',_0x4974a8),_0x25e1e0[_0x5b1560]={'insertions':this[_0x18a5('0xc2')](_0x25bb59),'deletions':this[_0x18a5('0xc2')](_0x1da87f),'attachChange':this[_0x18a5('0x86')][_0x18a5('0xa8')](_0x5b1560)||null,'attributesBefore':_0x158255(this['_baseRootsAttributes'][_0x18a5('0xa8')](_0x5b1560))||{},'attributesAfter':_0x158255(this[_0x18a5('0x94')][_0x18a5('0xa8')](_0x5b1560))};}return{'diffData':_0x25e1e0,'authorsIds':Array['from'](_0x4974a8)};}[_0x18a5('0x8e')](_0x1869b6){for(const [,_0x460add]of _0x1869b6[_0x18a5('0x3f')]){const _0x162b89=_0x460add[_0x18a5('0x4a')][_0x18a5('0x55')]()[_0x18a5('0xdf')](_0x20fe87=>'tableCell'==_0x20fe87['name']);for(const _0xe587f3 of _0x162b89)0x1==_0xe587f3[_0x18a5('0x6c')]&&_0xe587f3[_0x18a5('0x3a')](0x0)['is']('element',_0x18a5('0x4f'))&&_0xe587f3[_0x18a5('0x3a')](0x0)[_0x18a5('0x48')](_0x18a5('0xd9'),!0x0);}}[_0x18a5('0xc2')](_0x1e7968){this[_0x18a5('0x8e')](_0x1e7968);const _0x57ab8d=this[_0x18a5('0x46')]['data']['toView'](_0x1e7968,{}),_0xa2f05b=Array[_0x18a5('0x7d')](_0x57ab8d[_0x18a5('0x61')]())['map'](_0x16b104=>this[_0x18a5('0x70')](_0x16b104));return JSON[_0x18a5('0xd5')](_0xa2f05b);}['_getViewJson'](_0x375054){if(_0x375054['is'](_0x18a5('0xa9')))return _0x375054[_0x18a5('0xde')];{const _0x1c44d1=_0x375054;return{'type':Object[_0x18a5('0xc5')](B)['find'](_0x234c40=>_0x375054 instanceof B[_0x234c40]),'name':_0x1c44d1[_0x18a5('0xb0')],'attributes':Array['from'](_0x1c44d1['getAttributes']()),'children':Array[_0x18a5('0x7d')](_0x1c44d1[_0x18a5('0x61')]())[_0x18a5('0x2')](_0x3ffbf6=>this[_0x18a5('0x70')](_0x3ffbf6))};}}[_0x18a5('0xe0')](_0x1aa355,_0x524f83,_0x5a635e,_0x15c0ad,_0x5a7555){let _0x35d79d=null,_0x366620=null,_0x3f245f=0x0;const _0xb61c3f=this[_0x18a5('0x46')][_0x18a5('0x25')];for(let _0x18aedc=0x0;_0x18aedc<_0x524f83[_0x18a5('0xbb')];_0x18aedc++){const _0x6eb9=this['_getVidAttributeName'](_0x524f83[_0x18aedc]),_0x463cbc=_0x524f83[_0x18aedc][_0x18a5('0xaa')][_0x18a5('0xc3')](_0x6eb9),_0x461282=_0x5a635e[_0x18a5('0xa8')](_0x463cbc),_0x5e86fa=_0x18aedc==_0x524f83[_0x18a5('0xbb')]-0x1;(!_0x35d79d&&_0x461282&&(_0x35d79d=_0x461282,_0x366620=_0x524f83[_0x18aedc]),_0x35d79d&&(!_0x461282||_0x461282[_0x18a5('0x23')]!=_0x35d79d[_0x18a5('0x23')]))&&(_0x11e719(_0x461282,L(_0x366620,_0x1aa355,_0xb61c3f),L(_0x524f83[_0x18aedc],_0x1aa355,_0xb61c3f)),_0x35d79d=_0x461282||null,_0x366620=_0x461282?_0x524f83[_0x18aedc]:null),_0x35d79d&&_0x5e86fa&&_0x11e719(_0x461282,L(_0x366620,_0x1aa355,_0xb61c3f),W(_0x524f83[_0x18aedc],_0x1aa355,_0xb61c3f));}function _0x11e719(_0x4c1475,_0x130930,_0xe4df92){const _0x43b641=_0x35d79d['userId'],_0x2503ff='revision:'+_0x15c0ad+':'+_0x43b641+':'+_0x3f245f++,_0x460f18=_0xb61c3f['createRange'](_0x130930,_0xe4df92);_0x1aa355[_0x18a5('0x3f')][_0x18a5('0xc6')](_0x2503ff,_0x460f18),null!==_0x43b641&&_0x5a7555[_0x18a5('0x59')](_0x43b641);}}[_0x18a5('0x51')](_0xb4821f){switch(_0xb4821f['type']){case _0x18a5('0xba'):return _0x18a5('0xe5');case _0x18a5('0x27'):return _0x18a5('0xe6');default:return _0x18a5('0x29');}}['_fixOperation'](_0x1f8d08,_0x5c1d1f){_0x1f8d08[_0x18a5('0x6a')]=null;for(const _0x1db911 in _0x1f8d08){const _0x4351fe=_0x1f8d08[_0x1db911];if(_0x4351fe instanceof _0x170f37){const _0x57b900=_0x5c1d1f[_0x18a5('0xa8')](_0x4351fe[_0x18a5('0x7')][_0x18a5('0x3e')]);_0x1f8d08[_0x1db911]=this[_0x18a5('0xbd')](_0x4351fe,_0x57b900);}if(_0x4351fe instanceof _0x287ef){const _0x14bc31=_0x5c1d1f['get'](_0x4351fe[_0x18a5('0x7')][_0x18a5('0x3e')]);_0x1f8d08[_0x1db911]=this[_0x18a5('0xbc')](_0x4351fe,_0x14bc31);}'root'===_0x1db911&&(_0x1f8d08[_0x18a5('0x7')]=_0x5c1d1f[_0x18a5('0xa8')](_0x1f8d08['root'][_0x18a5('0x3e')]));}}['_fixRange'](_0x26c4ec,_0x18524d){return this[_0x18a5('0x46')]['model']['createRange'](this[_0x18a5('0xbd')](_0x26c4ec['start'],_0x18524d),this[_0x18a5('0xbd')](_0x26c4ec['end'],_0x18524d));}[_0x18a5('0xbd')](_0x6bc95f,_0x1d0421){return this[_0x18a5('0x46')]['model'][_0x18a5('0x92')](_0x1d0421,_0x6bc95f['path'],_0x6bc95f[_0x18a5('0x8f')]);}[_0x18a5('0x34')](_0x1cbedb){const _0x511ca6=this[_0x18a5('0x31')][_0x18a5('0xa8')](_0x1cbedb[_0x18a5('0xe3')]['root'][_0x18a5('0x3e')]),_0x54f688=this[_0x18a5('0xbd')](_0x1cbedb[_0x18a5('0xe3')],_0x511ca6),_0x40bbc7=null===_0x1cbedb[_0x18a5('0x47')]?null:_0x1cbedb[_0x18a5('0x47')]||this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x554590=_0x54f688[_0x18a5('0x1c')],_0x45facf=this['_revisionId'],_0x2b32ec=[];for(const _0x5aa5f0 of _0x1cbedb[_0x18a5('0x88')])if(_0x5aa5f0['is'](_0x18a5('0x39')))_0x2b32ec[_0x18a5('0xb7')](this[_0x18a5('0x5')](_0x5aa5f0));else for(let _0x22eaea=0x0;_0x22eaea<_0x5aa5f0[_0x18a5('0x56')];_0x22eaea++)_0x2b32ec['push'](new _0x5f4c69('$text',{'vid':this[_0x18a5('0xd0')]++}));const _0x2a7ac2=this['_revisionId'];for(let _0x4c8f21=_0x45facf;_0x4c8f21<_0x2a7ac2;_0x4c8f21++)this[_0x18a5('0x41')][_0x18a5('0xc6')](_0x4c8f21,{'userId':_0x40bbc7});_0x554590[_0x18a5('0x77')](_0x54f688[_0x18a5('0x7f')],_0x2b32ec);}['_handleMoveOperation'](_0xe1813c){(_0xe1813c=this[_0x18a5('0x5c')](_0xe1813c,this[_0x18a5('0x31')]))[_0x18a5('0xb8')]();const _0x4ed3be=null===_0xe1813c[_0x18a5('0x47')]?null:_0xe1813c[_0x18a5('0x47')]||this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x21087c=_0xe1813c[_0x18a5('0x99')](),_0xbe1ec3=_0x21087c[_0x18a5('0x1c')],_0x573ad9=_0x21087c['offset'];!function _0x3008e1(_0x5ef54a,_0xe9d41b,_0x2817d0,_0x527f22){for(let _0x25ba89=_0x2817d0;_0x25ba89<_0x527f22;_0x25ba89++){const _0x59c5a1=_0xe9d41b[_0x18a5('0x3a')](_0x25ba89);_0x59c5a1['is'](_0x18a5('0x39'),_0x18a5('0xa9'))?_0x5ef54a[_0x18a5('0xc6')](_0x59c5a1[_0x18a5('0xc3')](_0x18a5('0x29')),{'userId':_0x4ed3be}):(_0x5ef54a[_0x18a5('0xc6')](_0x59c5a1[_0x18a5('0xc3')](_0x18a5('0xe5')),{'userId':_0x4ed3be}),_0x3008e1(_0x5ef54a,_0x59c5a1,0x0,_0x59c5a1[_0x18a5('0x6c')]),_0x5ef54a[_0x18a5('0xc6')](_0x59c5a1[_0x18a5('0xc3')](_0x18a5('0xe6')),{'userId':_0x4ed3be}));}}(this[_0x18a5('0x41')],_0xbe1ec3,_0x573ad9,_0x573ad9+_0xe1813c[_0x18a5('0x1')]);}[_0x18a5('0xe4')](_0x16cc60){const _0xd66361=null===(_0x16cc60=this[_0x18a5('0x5c')](_0x16cc60,this['_idsRoots']))['_authorId']?null:_0x16cc60[_0x18a5('0x47')]||this['editor'][_0x18a5('0xad')][_0x18a5('0xa8')]('Users')['me']['id'],_0x467c6b=_0x16cc60[_0x18a5('0x80')][_0x18a5('0x1c')],_0x45a7a3=_0x16cc60[_0x18a5('0xe8')]['parent'],_0x88f603=_0x467c6b[_0x18a5('0xc3')](_0x18a5('0xe6')),_0x2098da=_0x45a7a3[_0x18a5('0xc3')](_0x18a5('0xe5'));_0x467c6b[_0x18a5('0x48')]('vid_end',_0x45a7a3[_0x18a5('0xc3')](_0x18a5('0xe6'))),_0x45a7a3[_0x18a5('0x48')](_0x18a5('0xe6'),_0x88f603),this[_0x18a5('0x41')][_0x18a5('0xc6')](_0x2098da,{'userId':_0xd66361}),this[_0x18a5('0x41')][_0x18a5('0xc6')](_0x88f603,{'userId':_0xd66361}),_0x16cc60['_execute']();}[_0x18a5('0x19')](_0x6870ce){const _0x1f8d00=null===(_0x6870ce=this[_0x18a5('0x5c')](_0x6870ce,this[_0x18a5('0x31')]))[_0x18a5('0x47')]?null:_0x6870ce[_0x18a5('0x47')]||this[_0x18a5('0x46')]['plugins'][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x1d8167=_0x6870ce[_0x18a5('0x2f')],_0x6a0966=_0x6870ce[_0x18a5('0x1a')]['parent'];_0x6870ce[_0x18a5('0xb8')]();const _0x297606=_0x6a0966[_0x18a5('0xc3')](_0x18a5('0xe6')),_0x36ff20=_0x6870ce['insertionPosition'][_0x18a5('0xa7')];if(_0x1d8167){const _0x5eb763=_0x36ff20[_0x18a5('0xc3')](_0x18a5('0xe6')),_0x45e781=_0x6a0966['getAttribute']('vid_end');_0x6a0966[_0x18a5('0x48')]('vid_end',_0x5eb763),_0x36ff20[_0x18a5('0x48')]('vid_end',_0x45e781),this['_touched'][_0x18a5('0xc6')](_0x6a0966[_0x18a5('0xc3')](_0x18a5('0xe6')),{'userId':_0x1f8d00}),this[_0x18a5('0x41')]['set'](_0x36ff20['getAttribute']('vid_start'),{'userId':_0x1f8d00});}else{const _0x58f286=this[_0x18a5('0xd0')]++,_0x2826a0=this[_0x18a5('0xd0')]++;_0x6a0966[_0x18a5('0x48')](_0x18a5('0xe6'),_0x58f286),_0x36ff20['_setAttribute'](_0x18a5('0xe5'),_0x2826a0),_0x36ff20[_0x18a5('0x48')](_0x18a5('0xe6'),_0x297606),this[_0x18a5('0x41')][_0x18a5('0xc6')](_0x58f286,{'userId':_0x1f8d00}),this[_0x18a5('0x41')][_0x18a5('0xc6')](_0x2826a0,{'userId':_0x1f8d00});}}[_0x18a5('0x1b')](_0x4e6623){if(!_0x4e6623[_0x18a5('0x7a')])return;const _0x2f3856=(_0x4e6623=this[_0x18a5('0x5c')](_0x4e6623,this[_0x18a5('0xfe')]))[_0x18a5('0x57')]?_0x4e6623[_0x18a5('0x57')][_0x18a5('0x7')]:null,_0x152b7f=_0x4e6623[_0x18a5('0x0')]?_0x4e6623['newRange']['root']:null;_0x2f3856&&this[_0x18a5('0xfc')][_0x18a5('0x18')](_0x4e6623[_0x18a5('0xb0')]),_0x152b7f&&this[_0x18a5('0xfc')]['set'](_0x4e6623[_0x18a5('0xb0')],_0x4e6623[_0x18a5('0x0')]['clone']());const _0x50dca4=null===_0x4e6623[_0x18a5('0x47')]?null:_0x4e6623[_0x18a5('0x47')]||this['editor'][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x30e996=_0x4e6623['name'];if(!this[_0x18a5('0x45')][_0x18a5('0x8')](_0x30e996))return void this[_0x18a5('0x45')][_0x18a5('0xc6')](_0x30e996,{'range':_0x4e6623[_0x18a5('0x57')],'userId':_0x50dca4});const _0x5c4d48=this[_0x18a5('0x45')][_0x18a5('0xa8')](_0x30e996),_0x55e34d=_0x5c4d48['range'],_0x5e1120=_0x4e6623[_0x18a5('0x0')];null==_0x55e34d&&null==_0x5e1120||_0x55e34d&&_0x5e1120&&_0x55e34d[_0x18a5('0xf3')](_0x5e1120)?this['_touchedMarkers']['delete'](_0x4e6623['name']):_0x5c4d48[_0x18a5('0x23')]=_0x50dca4;}[_0x18a5('0xab')](_0x26a04c,_0x20f8ba){this[_0x18a5('0xfe')][_0x18a5('0x8')](_0x26a04c['rootName'])?this[_0x18a5('0xfe')][_0x18a5('0xa8')](_0x26a04c['rootName'])[_0x18a5('0x85')]=_0x26a04c['isAdd']:(this[_0x18a5('0xfe')][_0x18a5('0xc6')](_0x26a04c[_0x18a5('0x3e')],G(_0x26a04c['rootName'],!0x0)),this[_0x18a5('0x94')]['set'](_0x26a04c['rootName'],{}),_0x20f8ba&&this['_idsRoots']['set'](_0x26a04c[_0x18a5('0x3e')],G(_0x26a04c['rootName'],!0x0)));const _0x17142d=null===_0x26a04c[_0x18a5('0x47')]?null:_0x26a04c[_0x18a5('0x47')]||this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x48c2a2=this['_touchedRoots'][_0x18a5('0xa8')](_0x26a04c[_0x18a5('0x3e')]);_0x48c2a2&&_0x48c2a2[_0x18a5('0x23')]===_0x17142d?this[_0x18a5('0x86')][_0x18a5('0x18')](_0x26a04c[_0x18a5('0x3e')]):this[_0x18a5('0x86')][_0x18a5('0xc6')](_0x26a04c['rootName'],{'userId':_0x17142d,'isAttached':_0x26a04c[_0x18a5('0xb4')]});}['_handleRootAttributeOperation'](_0x36b91f){const _0x39d7b5=this['_diffRootsAttributes']['get'](_0x36b91f[_0x18a5('0x7')][_0x18a5('0x3e')]);null===_0x36b91f[_0x18a5('0x73')]?delete _0x39d7b5[_0x36b91f['key']]:_0x39d7b5[_0x36b91f[_0x18a5('0x10')]]=_0x36b91f[_0x18a5('0x73')];}}function q(_0x36fd9c){const _0x30e9e6=G(_0x36fd9c[_0x18a5('0x3e')],_0x36fd9c[_0x18a5('0x7b')]());for(const _0x1a784e of _0x36fd9c[_0x18a5('0x61')]()){const _0x2a82e0=_0x1a784e[_0x18a5('0x2c')](!0x0);_0x30e9e6['_appendChild'](_0x2a82e0);}return _0x30e9e6;}function G(_0x5b47b6,_0x26cf99=!0x0){const _0x143db3=new _0x1d8fd3();return _0x143db3['rootName']=_0x5b47b6,_0x143db3['_isAttached']=_0x26cf99,_0x143db3['isAttached']=()=>_0x143db3[_0x18a5('0x85')],_0x143db3;}function L(_0x33c656,_0x426a36,_0x36558a){const _0x32b46e=_0x18a5('0x27')==_0x33c656[_0x18a5('0xe9')]?_0x36558a[_0x18a5('0x9e')](_0x33c656['item'],_0x18a5('0x40')):_0x36558a[_0x18a5('0x50')](_0x33c656[_0x18a5('0xaa')]);return _0x36558a[_0x18a5('0x92')](_0x426a36,_0x32b46e[_0x18a5('0xe2')],_0x32b46e['stickiness']);}function W(_0x48be14,_0x295b3a,_0x2a8556){const _0x473c8a=_0x18a5('0xba')==_0x48be14[_0x18a5('0xe9')]?_0x2a8556[_0x18a5('0x9e')](_0x48be14[_0x18a5('0xaa')],0x0):_0x2a8556[_0x18a5('0x9')](_0x48be14[_0x18a5('0xaa')]);return _0x2a8556['createPositionFromPath'](_0x295b3a,_0x473c8a[_0x18a5('0xe2')],_0x473c8a[_0x18a5('0x8f')]);}
|