@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231129.0 → 0.0.0-nightly-20231130.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/README.md +1 -1
- 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 _0x5107=['buildRevisionData','filter','element','revision','$text','howMany','getAncestors','setRevisionData','_update','string','userId','_handleSplitOperation','_markers','conversion','_touched','updateRevisions','root','createPositionBefore','setSource','fromEntries','Users','revision:','_removePendingAction','_reset','name','start','markerToData','_diffRootsAttributes','getAttributes','push','addRevisionData','getAttribute','_revisionDataBuilder','creatorId','_getVidAttributeName','clone','_createFromRanges','oldRange','_removeMetaData','find','toView','getRoot','_authorId','authors','get','_touchedRoots','_createCurrentRevision','processor','for','addRootAttribute','insert','insertions','getRevisionRootsAttributes','elementStart','_loadState','elementEnd','_baseRootsAttributes','shift','rootsAttributes','Empty\x20document','startsWith','map','paragraph','_handleMarkerOperation','getData','_insertChild','split','locale','_lastTo','key','addRevision','_touchedMarkers','createPositionAt','path','_getViewJson','init','sort','update','merge','_prepareViewToSave','_generateTape','_startingVersion','_diffRoots','_fixPosition','delete','data','deletion','_setAttribute','editing','PENDING_ACTION_REVISION_HISTORY','offset','collaboration.channelId','_getBaseVids','afterInit','_baseRoots','marked','getCurrentRevisionId','loadState','getLatestVersion','_getFromVersion','_markChanges','requires','createRange','getChild','max','values','_makeModelFromViewString','range','_pendingAction','newRange','_makeIdsRoot','_handleMoveOperation','getNodeByPath','authorsIds','isAdd','children','config','version','add','useFillerType','attributesBefore','length','roots','documentFragment','history','attributes','upcast','stringify','createPositionFromPath','isReady','getRevisionDocumentData','sendBufferedUpdates','getOperation','getUser','$graveyard','type','_replaceEditorDataWithRevisionData','repository','_cloneOperation','_getState','toVersion','forEach','adapter','_source','model','getTransformedByOperation','_getPreviousFrom','_continueCurrentRevision','reInit','_setConversion','getRootNames','getChildren','_saveMetaData','_createInitialRevision','_copyMarkers','rootName','childCount','_handleRootOperation','_lastFrom','attachChange','plugins','_fixRange','data-revision-','currentRevision','resolve','nodeAfter','createdAt','default','getMovedRangeStart','previousPosition','keepParagraph','from','Initial\x20revision','NEGATIVE_INFINITY','isEqual','view','_transformMarkers','editor-initial-data-replaced-with-revision-data','_isPendingUpdate','end','_bufferUpdate','_isInit','move','_loadedStateData','_isAttached','nodes','offsetSize','size','creator','includes','_makeRevision','isAttached','tableCell','createRangeIn','_execute','_appendChild','_findInsertionIndex','fromVersion','_calculateMetaData','deletions','_removeRevisionMarkers','getWalker','has','_handleInsertOperation','_fixOperation','stickiness','_idsRoots','addRoot','then','vid_end','getRevisions','hasContent','getRevision','attributesAfter','parent','reverse','remove','parse','_handleMergeOperation','item','reinsert','revisionHistory.resumeUnsavedRevision','position','_addPendingAction','diffData','markers','finally','vid','getTime','dataToMarker','RevisionTracker','define','set','newValue','_loadRevisionData','_revisionId','_handleOperation','keys','_handleRootAttributeOperation','getIndex','editor','initial','marker','vid_start','trim','_startingRevisionId','_bufferedUpdates','_processRootBeforeSave','slice','source','clear','_savedMetaData','insertion','PendingActions','_operations','document','RealTimeCollaborationClient','_initialRevisionId','affectsData','initialData','_clone','_baseIdsRoots'];(function(_0x1900de,_0x5107c7){const _0x210154=function(_0x28151f){while(--_0x28151f){_0x1900de['push'](_0x1900de['shift']());}};_0x210154(++_0x5107c7);}(_0x5107,0xcd));const _0x2101=function(_0x1900de,_0x5107c7){_0x1900de=_0x1900de-0x0;let _0x210154=_0x5107[_0x1900de];return _0x210154;};import{Users as _0x4057f2}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x56b4e8,PendingActions as _0xefaa67}from'ckeditor5/src/core';import{logWarning as _0x486b21,uid as _0x4b524a}from'ckeditor5/src/utils';import{Position as _0x372bce,Range as _0x495a05,Element as _0x25fef9,DocumentFragment as _0x4ab913,ViewText as _0x9942ef,ViewElement as _0x3892a0,ViewContainerElement as _0x86e474,ViewAttributeElement as _0x190749,ViewEmptyElement as _0x34c5f9,ViewRawElement as _0x46b943,ViewUIElement as _0x57d5ec,ViewDocumentFragment as _0xa1f4f6}from'ckeditor5/src/engine';import _0x517989 from'./revisionsrepository';import{getTranslation as _0x138e66}from'./utils/common-translations';import{cloneDeep as _0x1e65fb,isEqual as _0x31c93d}from'lodash-es';const B={'c':_0x86e474,'a':_0x190749,'e':_0x34c5f9,'r':_0x46b943,'u':_0x57d5ec};export default class l extends _0x56b4e8{static get['pluginName'](){return _0x2101('0x19');}static get[_0x2101('0x9e')](){return[_0x4057f2,_0x517989,_0xefaa67];}constructor(_0x3ee674){super(_0x3ee674),this[_0x2101('0xc7')]=null,this[_0x2101('0xdc')]=null,this[_0x2101('0x59')]=new H(this[_0x2101('0x23')]),this[_0x2101('0x34')]=this[_0x2101('0x23')][_0x2101('0xad')][_0x2101('0x65')](_0x2101('0x94'))||_0x2101('0x24'),this[_0x2101('0x29')]=new Map(),this['_loadedStateData']=null;const _0x624447=_0x4b524a();this[_0x2101('0xc8')]={'history':this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')]['history'],'getLatestVersion':()=>Promise['resolve'](this['editor'][_0x2101('0xc9')][_0x2101('0x32')][_0x2101('0xae')]),'getCurrentRevisionId':()=>_0x624447},this[_0x2101('0x1b')](_0x2101('0xba'),!0x1),this[_0x2101('0x1b')]('isEnabled',!0x0),this['set'](_0x2101('0xeb'),!0x1),this[_0x2101('0x23')][_0x2101('0xad')][_0x2101('0x1a')](_0x2101('0x10'),!0x0),this[_0x2101('0x23')][_0x2101('0x46')][_0x2101('0x69')](_0x2101('0xb7'))[_0x2101('0x18')]({'view':_0x2101('0x3c')});}[_0x2101('0x84')](){this[_0x2101('0xc2')]=this['editor'][_0x2101('0xd9')][_0x2101('0x65')]('RevisionsRepository'),this[_0x2101('0xce')](),this[_0x2101('0x23')][_0x2101('0x8e')]['on']('ready',()=>{const _0x5b2cbb=this[_0x2101('0xc2')][_0x2101('0x7')](0x0),_0x3d1deb=_0x5b2cbb&&null===_0x5b2cbb[_0x2101('0xf5')]?_0x5b2cbb:null;if(this[_0x2101('0xcc')]=!!_0x3d1deb&&this[_0x2101('0x23')][_0x2101('0xad')][_0x2101('0x65')](_0x2101('0x10')),this['editor']['plugins'][_0x2101('0x103')](_0x2101('0x33'))){const _0x3da783=this['_source']['getCurrentRevisionId'](),_0x3f1374=this[_0x2101('0xc2')]['getRevision'](_0x3da783);if(_0x3f1374)this[_0x2101('0x8a')]=_0x3f1374[_0x2101('0xfe')],this[_0x2101('0xcc')]=!0x1;else{const _0x55a944=this[_0x2101('0xc8')][_0x2101('0xb5')][_0x2101('0x31')][_0x2101('0x60')](_0x47f7c6=>!_0x47f7c6[_0x2101('0xee')]),_0x16fe8f=_0x55a944?_0x55a944['baseVersion']:this['_source']['history']['version'];_0x5b2cbb?(_0x5b2cbb['toVersion']<_0x16fe8f&&_0x5b2cbb[_0x2101('0x41')]({'toVersion':_0x16fe8f}),this[_0x2101('0xcc')]?(this[_0x2101('0xc8')]['getCurrentRevisionId']=()=>_0x3d1deb['id'],this[_0x2101('0x8a')]=_0x3d1deb[_0x2101('0xfe')]):(this[_0x2101('0x8a')]=_0x5b2cbb[_0x2101('0xc5')],this[_0x2101('0xcc')]=!0x1)):(this[_0x2101('0x8a')]=_0x16fe8f,this[_0x2101('0xcc')]=!0x1);}}else _0x3d1deb&&(this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')][_0x2101('0xb5')][_0x2101('0xae')]=Math[_0x2101('0xa1')](_0x3d1deb['toVersion'],this['editor']['model'][_0x2101('0x32')][_0x2101('0xb5')][_0x2101('0xae')]),_0x3d1deb[_0x2101('0xfe')]===_0x3d1deb['toVersion']?(0x0!==_0x3d1deb[_0x2101('0xfe')]&&(this[_0x2101('0xc8')]['getCurrentRevisionId']=()=>_0x3d1deb['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this[_0x2101('0xc8')][_0x2101('0x99')]=()=>_0x3d1deb['id'],this[_0x2101('0x8a')]=_0x3d1deb[_0x2101('0xfe')])),this['_continueCurrentRevision']||(this[_0x2101('0x8a')]=this[_0x2101('0x23')]['model'][_0x2101('0x32')][_0x2101('0xae')]);this['_revisionDataBuilder']['init'](this[_0x2101('0xc8')][_0x2101('0xb5')]),this[_0x2101('0xd2')](this[_0x2101('0x8a')]),this[_0x2101('0x67')](this[_0x2101('0x8a')]),this['adapter']&&this[_0x2101('0xbc')]();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x46b4fa=>!_0x46b4fa);}async[_0x2101('0x96')](){if(this[_0x2101('0xc2')][_0x2101('0xb2')]>0x0){const _0x6ebee2=this['repository']['getRevision'](0x0),_0x1375d6=await this[_0x2101('0xbb')](_0x6ebee2),_0x5200f8=await this[_0x2101('0x6d')](_0x6ebee2);this[_0x2101('0xc1')](_0x1375d6,_0x5200f8);}}[_0x2101('0x4b')](_0xc14566){this['_source']=_0xc14566;}async[_0x2101('0x86')](){const _0xa6a251=await this[_0x2101('0xc8')]['getLatestVersion']();if(_0xa6a251>this[_0x2101('0xdc')][_0x2101('0xc5')]){await this[_0x2101('0x6f')]();const _0xad9ff1=this[_0x2101('0x39')]({'revision':this[_0x2101('0xdc')],'to':_0xa6a251});_0xad9ff1['authors']=_0xad9ff1[_0x2101('0xaa')][_0x2101('0x76')](_0x2289bf=>this[_0x2101('0x23')][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x4d'))[_0x2101('0xbe')](_0x2289bf)),this[_0x2101('0xdc')][_0x2101('0x41')](_0xad9ff1);}}async[_0x2101('0x6f')](){this[_0x2101('0xcc')]&&!this['_loadedStateData']&&(await this[_0x2101('0x1d')](this[_0x2101('0xdc')]),this[_0x2101('0x59')][_0x2101('0x9a')](this['currentRevision']),this[_0x2101('0xf0')]={'fromVersion':this[_0x2101('0xdc')][_0x2101('0xfe')],'authors':this['currentRevision'][_0x2101('0x64')][_0x2101('0x2b')]()});}async['saveRevision'](_0x5ef0b7={},_0x1aff7f=null){const _0x5cb750=[];await this[_0x2101('0x6f')](),this[_0x2101('0xcc')]=!0x1,_0x1aff7f>this[_0x2101('0xdc')]['toVersion']&&(_0x1aff7f=null),null===_0x1aff7f&&(_0x1aff7f=await this[_0x2101('0xc8')][_0x2101('0x9b')]());const _0x4b6304=this[_0x2101('0x9c')](_0x1aff7f),_0x5df4db=this['buildRevisionData']({'from':_0x4b6304,'to':_0x1aff7f});if(this[_0x2101('0xdc')][_0x2101('0xc5')]<_0x1aff7f){const _0x36e646=this[_0x2101('0x39')]({'revision':this['currentRevision'],'from':_0x1aff7f,'to':_0x1aff7f});_0x36e646[_0x2101('0x64')]=[],_0x36e646[_0x2101('0xaa')]=[],_0x36e646['id']=this[_0x2101('0xdc')]['id'],this['currentRevision'][_0x2101('0x41')](_0x36e646,!0x0),delete _0x36e646[_0x2101('0x64')],_0x5cb750[_0x2101('0x56')](_0x36e646);}_0x5ef0b7['creatorId']=this[_0x2101('0x23')]['plugins'][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0x5ef0b7[_0x2101('0x51')]=_0x5ef0b7[_0x2101('0x51')]||null,_0x5ef0b7['id']=_0x5ef0b7['id']||_0x4b524a(),_0x5ef0b7={..._0x5ef0b7,..._0x5df4db};const _0x5645b1=this[_0x2101('0x57')](_0x5ef0b7);_0x5cb750[_0x2101('0x56')](_0x5ef0b7);const _0xa46976=this[_0x2101('0xc2')][_0x2101('0x22')](_0x5645b1);if(0x0!==_0xa46976){const _0x673074=this[_0x2101('0xc2')][_0x2101('0x7')](_0xa46976-0x1);if(_0x673074[_0x2101('0xfe')]!==_0x1aff7f){const _0x4a2533=this['_revisionDataBuilder'][_0x2101('0x79')](_0x1aff7f,_0x673074['toVersion']),_0x3aecfb={'id':_0x673074['id'],'diffData':_0x4a2533['diffData'],'authorsIds':_0x4a2533[_0x2101('0xaa')],'authors':_0x4a2533[_0x2101('0xaa')]['map'](_0x34febc=>this[_0x2101('0x23')][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x4d'))[_0x2101('0xbe')](_0x34febc)),'fromVersion':_0x1aff7f};_0x673074===this['currentRevision']&&(_0x3aecfb[_0x2101('0xdf')]=new Date(_0x5ef0b7[_0x2101('0xdf')][_0x2101('0x17')]()+0xa)),_0x673074[_0x2101('0x41')](_0x3aecfb,!0x0),delete _0x3aecfb['authors'],_0x5cb750[_0x2101('0x56')](_0x3aecfb);}}if(this[_0x2101('0xc7')]){for(const _0x3971bd of _0x5cb750)this['_bufferUpdate'](_0x3971bd['id'],_0x3971bd,!0x0);this['sendBufferedUpdates']();}return _0x5645b1;}[_0x2101('0x57')](_0x5612f6){const _0x5aef89=this[_0x2101('0xc2')]['createRevision'](_0x5612f6);return this[_0x2101('0xc7')]&&_0x5aef89['on'](_0x2101('0x41'),(_0x154c66,_0x2e2eb8,_0x509686)=>{_0x509686||(this[_0x2101('0xed')](_0x2e2eb8['id'],_0x2e2eb8,!0x0),this[_0x2101('0xbc')]());}),this[_0x2101('0xc2')][_0x2101('0x7f')](_0x5aef89,this[_0x2101('0xfd')](_0x5aef89)),_0x5aef89;}async[_0x2101('0xbb')](_0x5c023c){await this[_0x2101('0x1d')](_0x5c023c);const _0x2dad83={};for(const _0x4855c9 in _0x5c023c[_0x2101('0x13')]){if(_0x5c023c[_0x2101('0x13')][_0x4855c9][_0x2101('0xd8')]&&!_0x5c023c[_0x2101('0x13')][_0x4855c9][_0x2101('0xd8')][_0x2101('0xf8')])continue;const _0x2b9a4d=this[_0x2101('0x101')](JSON[_0x2101('0xc')](_0x5c023c[_0x2101('0x13')][_0x4855c9][_0x2101('0x6c')])),_0x181653=this[_0x2101('0x23')][_0x2101('0x91')][_0x2101('0xe8')][_0x2101('0x32')],_0x4edbdb=new _0xa1f4f6(_0x181653,_0x2b9a4d[_0x2101('0x76')](_0x5b1b8a=>J(_0x5b1b8a,this[_0x2101('0x23')])));this[_0x2101('0x23')]['data'][_0x2101('0x68')][_0x2101('0xb0')](_0x2101('0x98')),_0x2dad83[_0x4855c9]=this[_0x2101('0x23')][_0x2101('0x8e')][_0x2101('0x68')]['toData'](_0x4edbdb),this[_0x2101('0x23')][_0x2101('0x8e')][_0x2101('0x68')][_0x2101('0xb0')](_0x2101('0xe0'));}return _0x2dad83;}async[_0x2101('0x6d')](_0x281343){await this[_0x2101('0x1d')](_0x281343);const _0x4fd8ca={};for(const _0x3a26f6 in _0x281343[_0x2101('0x13')])_0x281343[_0x2101('0x13')][_0x3a26f6][_0x2101('0xd8')]&&!_0x281343[_0x2101('0x13')][_0x3a26f6][_0x2101('0xd8')]['isAttached']||(_0x4fd8ca[_0x3a26f6]=_0x281343['diffData'][_0x3a26f6][_0x2101('0x8')]||{});return _0x4fd8ca;}['sendBufferedUpdates'](){if(0x0===this[_0x2101('0x29')][_0x2101('0xf4')])return;if(this['_isPendingUpdate'])return;let _0x222ae2=Array[_0x2101('0xe4')](this[_0x2101('0x29')]['values']());this[_0x2101('0x29')][_0x2101('0x2d')]();for(let _0x509efa=0x0;_0x509efa<_0x222ae2['length'];_0x509efa++){const _0x51d4dd=_0x222ae2[_0x509efa];let _0x526237=!0x1;for(const _0x55fb44 of Object[_0x2101('0x20')](_0x51d4dd))void 0x0===_0x51d4dd[_0x55fb44]?delete _0x51d4dd[_0x55fb44]:'id'!==_0x55fb44&&(_0x526237=!0x0);_0x526237||(_0x222ae2[_0x509efa]=null);}if(_0x222ae2=_0x222ae2[_0x2101('0x3a')](_0x391d14=>null!==_0x391d14),!_0x222ae2[_0x2101('0xb2')])return;for(let _0x57c2ec=0x0;_0x57c2ec<_0x222ae2[_0x2101('0xb2')];_0x57c2ec++){const _0x1544e8=_0x222ae2[_0x57c2ec];void 0x0!==_0x1544e8['fromVersion']&&void 0x0===_0x1544e8[_0x2101('0xc5')]&&(_0x1544e8[_0x2101('0xc5')]=this['repository'][_0x2101('0x7')](_0x1544e8['id'])[_0x2101('0xc5')]),void 0x0!==_0x1544e8[_0x2101('0xc5')]&&void 0x0===_0x1544e8[_0x2101('0xfe')]&&(_0x1544e8[_0x2101('0xfe')]=this['repository'][_0x2101('0x7')](_0x1544e8['id'])[_0x2101('0xfe')]);}const _0x405148=this['editor'][_0x2101('0xad')][_0x2101('0x65')](_0x2101('0x94'));this['_isPendingUpdate']=!0x0,this[_0x2101('0x12')](),this['adapter'][_0x2101('0x48')](_0x222ae2,_0x405148)[_0x2101('0x15')](()=>{this[_0x2101('0xeb')]=!0x1;})[_0x2101('0x3')](_0x174dd7=>{if(_0x174dd7)for(const _0x21e897 of _0x174dd7)this[_0x2101('0x40')]({'id':_0x21e897['id'],'createdAt':_0x21e897['createdAt']});this[_0x2101('0x4f')](),this[_0x2101('0xbc')]();});}[_0x2101('0xc1')](_0x180081,_0x300ed0){let _0x4c002a=this[_0x2101('0x23')][_0x2101('0xad')][_0x2101('0x65')](_0x2101('0x36')),_0x4bdc71=this[_0x2101('0x23')]['config'][_0x2101('0x65')]('rootsAttributes');if(void 0x0===_0x4c002a){_0x4c002a={};for(const _0x322d12 of this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')][_0x2101('0xcf')]())_0x4c002a[_0x322d12]='';}if(_0x2101('0x42')==typeof _0x4c002a&&(_0x4c002a={'main':_0x4c002a}),void 0x0===_0x4bdc71){_0x4bdc71={};for(const _0x295aa1 of this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')][_0x2101('0xcf')]())_0x4bdc71[_0x295aa1]={};}let _0x3ba4ed=!0x1;const _0x207357=Object[_0x2101('0x20')](_0x4c002a),_0x580b86=Object[_0x2101('0x20')](_0x180081);for(const _0x2618df of _0x207357){if(_0x4c002a[_0x2618df]!==_0x180081[_0x2618df]&&''!==_0x4c002a[_0x2618df][_0x2101('0x27')]()){_0x3ba4ed=!0x0;break;}if(!_0x31c93d(_0x4bdc71[_0x2618df],_0x300ed0[_0x2618df])&&Object[_0x2101('0x20')](_0x4bdc71[_0x2618df])[_0x2101('0xb2')]>0x0){_0x3ba4ed=!0x0;break;}}_0x3ba4ed||(_0x3ba4ed=_0x580b86['some'](_0x748188=>!this[_0x2101('0x23')]['model'][_0x2101('0x32')][_0x2101('0x62')](_0x748188))),_0x3ba4ed&&_0x486b21(_0x2101('0xea'),{'editorData':_0x4c002a,'editorRootsAttributes':_0x4bdc71,'revisionData':_0x180081,'revisionRootsAttributes':_0x300ed0}),this[_0x2101('0x23')][_0x2101('0xad')][_0x2101('0x1b')](_0x2101('0x36'),_0x180081),this['editor']['config'][_0x2101('0x1b')](_0x2101('0x73'),_0x300ed0);}['_addPendingAction'](){if(!this[_0x2101('0xa5')]){const _0x1ebace=this['editor'][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x30'));this['_pendingAction']=_0x1ebace[_0x2101('0xaf')](_0x138e66(this['editor'][_0x2101('0x7c')],_0x2101('0x92')));}}[_0x2101('0x4f')](){this[_0x2101('0xa5')]&&(this[_0x2101('0x23')][_0x2101('0xd9')]['get'](_0x2101('0x30'))[_0x2101('0xb')](this['_pendingAction']),this[_0x2101('0xa5')]=null);}['_findInsertionIndex'](_0x898eb2){const _0xb5da44=this[_0x2101('0xc2')][_0x2101('0x5')]();_0xb5da44[_0x2101('0xa')]();let _0x5cbf9b=0x0;for(;_0x5cbf9b<_0xb5da44[_0x2101('0xb2')];){const _0x433f27=_0xb5da44[_0x5cbf9b];if(_0x433f27===this[_0x2101('0xdc')]){_0x5cbf9b++;continue;}if(_0x433f27['id']===this[_0x2101('0x34')])break;const _0x11c465=_0x898eb2[_0x2101('0xc5')]-_0x433f27[_0x2101('0xc5')]||_0x898eb2['fromVersion']-_0x433f27[_0x2101('0xfe')];if(_0x11c465>0x0)break;if(_0x11c465<0x0)_0x5cbf9b++;else{if(!_0x898eb2['creator']&&_0x433f27[_0x2101('0xf5')])break;if(_0x433f27[_0x2101('0xf5')]||!_0x898eb2[_0x2101('0xf5')]){if(_0x898eb2['createdAt']>_0x433f27['createdAt'])break;_0x5cbf9b++;}else _0x5cbf9b++;}}return _0x5cbf9b;}[_0x2101('0x40')](_0xfa62c9){const _0x40e4ef=this['repository'][_0x2101('0x7')](_0xfa62c9['id']);if(_0xfa62c9['createdAt']&&(_0xfa62c9[_0x2101('0xdf')]=new Date(_0xfa62c9[_0x2101('0xdf')])),_0xfa62c9[_0x2101('0xaa')]){const _0x47877e=this['editor']['plugins'][_0x2101('0x65')](_0x2101('0x4d'));_0xfa62c9[_0x2101('0x64')]=_0xfa62c9[_0x2101('0xaa')]['map'](_0x3bc073=>_0x47877e[_0x2101('0xbe')](_0x3bc073));}_0x40e4ef[_0x2101('0x41')](_0xfa62c9,!0x0);}[_0x2101('0x39')]({revision:_0x15ea68=null,from:_0x473c01=null,to:_0x23dd1d=null}){_0x473c01=null!==_0x473c01?_0x473c01:_0x15ea68[_0x2101('0xfe')],_0x23dd1d=null!==_0x23dd1d?_0x23dd1d:_0x15ea68['toVersion'];const _0x26a495=this['_revisionDataBuilder'][_0x2101('0x79')](_0x473c01,_0x23dd1d),_0x1bb1cd={'diffData':_0x26a495[_0x2101('0x13')],'authorsIds':_0x26a495[_0x2101('0xaa')],'fromVersion':_0x473c01,'toVersion':_0x23dd1d};if(!_0x15ea68||_0x23dd1d!==_0x15ea68[_0x2101('0xc5')]){const _0x351d03=_0x23dd1d-0x1,_0x458ee9=this['_source'][_0x2101('0xb5')][_0x2101('0xbd')](_0x351d03);_0x1bb1cd[_0x2101('0xdf')]=_0x458ee9&&_0x458ee9[_0x2101('0xdf')]||new Date();}if(this[_0x2101('0xf0')]&&_0x473c01===this[_0x2101('0xf0')][_0x2101('0xfe')])for(const _0x25eaac of this['_loadedStateData'][_0x2101('0x64')])_0x1bb1cd[_0x2101('0xaa')][_0x2101('0xf6')](_0x25eaac['id'])||_0x1bb1cd[_0x2101('0xaa')][_0x2101('0x56')](_0x25eaac['id']);return _0x1bb1cd;}[_0x2101('0x1d')](_0x47f0c1){if(!_0x47f0c1||_0x47f0c1[_0x2101('0x13')])return Promise[_0x2101('0xdd')]();{const _0x49b6d1=this['editor'][_0x2101('0xad')]['get'](_0x2101('0x94'));return this[_0x2101('0xc7')]['getRevision']({'channelId':_0x49b6d1,'revisionId':_0x47f0c1['id']})[_0x2101('0x3')](_0x255472=>{_0x47f0c1[_0x2101('0x13')]=_0x255472[_0x2101('0x13')];});}}[_0x2101('0xed')](_0xcc5373,_0xce31bb,_0x9b145e){if(this[_0x2101('0x29')]['has'](_0xcc5373)){const _0x24c40b=this[_0x2101('0x29')]['get'](_0xcc5373);_0xce31bb=_0x9b145e?{..._0x24c40b,..._0xce31bb}:{..._0xce31bb,..._0x24c40b};}this[_0x2101('0x29')][_0x2101('0x1b')](_0xcc5373,_0xce31bb);}['_getFromVersion'](_0x58a105){const _0x538af9=this[_0x2101('0xc2')][_0x2101('0x5')]();_0x538af9['reverse'](),_0x538af9[_0x2101('0x72')]();const _0x94751f=_0x538af9[_0x2101('0x60')](_0x8929fb=>_0x8929fb[_0x2101('0xc5')]<=_0x58a105)['toVersion'];return _0x94751f<this[_0x2101('0x8a')]?this[_0x2101('0x8a')]:_0x94751f;}[_0x2101('0xd2')](_0x2662dc){const _0x454a0e=this[_0x2101('0xc2')][_0x2101('0x7')](this[_0x2101('0xc2')][_0x2101('0xb2')]-0x1);if(_0x454a0e)this[_0x2101('0x34')]=_0x454a0e['id'];else{const _0xb980df=!this[_0x2101('0x23')]['model'][_0x2101('0x32')][_0x2101('0xb3')]['find'](_0x139afc=>this['editor'][_0x2101('0xc9')][_0x2101('0x6')](_0x139afc)),_0x5dd315=this[_0x2101('0x23')][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0xf5b6ee=_0x138e66(this[_0x2101('0x23')][_0x2101('0x7c')],_0xb980df?_0x2101('0x74'):_0x2101('0xe5'));this[_0x2101('0xf7')]({'from':_0x2662dc,'to':_0x2662dc,'id':this[_0x2101('0x34')],'name':_0xf5b6ee,'creatorId':_0x5dd315});}}[_0x2101('0x67')](_0x3ef7ec){const _0x365e96=this[_0x2101('0xc8')][_0x2101('0x99')]();this['currentRevision']=this['repository'][_0x2101('0x7')](_0x365e96),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3ef7ec,'to':_0x3ef7ec,'id':_0x365e96,'name':'','creatorId':null}));}[_0x2101('0xf7')]({name:_0x3a4f95,from:_0x304535,to:_0x50ffa0,creatorId:_0x5cb4ce,id:_0x4a2668}){const _0x3e8bf2=this[_0x2101('0x39')]({'from':_0x304535,'to':_0x50ffa0});_0x3e8bf2[_0x2101('0x51')]=_0x3a4f95,_0x3e8bf2[_0x2101('0x5a')]=_0x5cb4ce,_0x3e8bf2['id']=_0x4a2668;const _0x3a974c=this[_0x2101('0x57')](_0x3e8bf2);return this['adapter']&&this['_bufferUpdate'](_0x3e8bf2['id'],_0x3e8bf2,!0x0),_0x3a974c;}['_setConversion'](){this['editor'][_0x2101('0x46')][_0x2101('0x69')]('dataDowncast')[_0x2101('0x53')]({'model':_0x2101('0x3c')});}[_0x2101('0x101')](_0x22ada8){return(_0x22ada8=_0x22ada8[_0x2101('0x3a')](_0x5a5429=>!_0x5a5429[_0x2101('0x51')]||'revision-start'!==_0x5a5429[_0x2101('0x51')]&&'revision-end'!==_0x5a5429[_0x2101('0x51')]))[_0x2101('0xc6')](_0xe2bac2=>{_0x2101('0x42')!=typeof _0xe2bac2&&(_0xe2bac2['children']=this[_0x2101('0x101')](_0xe2bac2['children']),_0xe2bac2['attributes']=_0xe2bac2[_0x2101('0xb6')][_0x2101('0x3a')](_0x4c2223=>!_0x4c2223[0x0]['startsWith'](_0x2101('0xdb'))));}),_0x22ada8;}}function J(_0x14faea,_0x2da8da){const _0x3ded53=_0x2da8da[_0x2101('0x91')][_0x2101('0xe8')][_0x2101('0x32')];if(_0x2101('0x42')==typeof _0x14faea)return new _0x9942ef(_0x3ded53,_0x14faea);{const _0x17b409=_0x14faea[_0x2101('0xac')]['map'](_0x517ed3=>J(_0x517ed3,_0x2da8da));return new(B[_0x14faea[(_0x2101('0xc0'))]]||_0x3892a0)(_0x3ded53,_0x14faea[_0x2101('0x51')],_0x14faea[_0x2101('0xb6')],_0x17b409);}}class H{constructor(_0x45eef8){this['editor']=_0x45eef8,this[_0x2101('0x2e')]=new Map(),this[_0x2101('0xd7')]=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this[_0x2101('0x8b')]=new Map(),this[_0x2101('0x54')]=new Map(),this[_0x2101('0x97')]=new Map(),this[_0x2101('0x71')]=new Map(),this[_0x2101('0x1')]=new Map(),this[_0x2101('0x38')]=new Map(),this[_0x2101('0x47')]=new Map(),this[_0x2101('0x80')]=new Map(),this[_0x2101('0x66')]=new Map(),this['_revisionId']=0x1;}['init'](_0x931d16){this[_0x2101('0x2c')]=_0x931d16;const _0x54a0c0=new Map(),_0x221426=new Map(),_0x5e56af=this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')]['roots'][_0x2101('0x76')](_0x75e8a1=>_0x75e8a1[_0x2101('0xd4')]);for(const _0x19ac5c of _0x5e56af){const _0x2a057f=this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')][_0x2101('0x62')](_0x19ac5c),_0x2a86cd=q(_0x2a057f);_0x54a0c0['set'](_0x19ac5c,_0x2a86cd),_0x221426[_0x2101('0x1b')](_0x19ac5c,Object[_0x2101('0x4c')](_0x2a057f['getAttributes']()));}const _0x57dda8=Array[_0x2101('0xe4')](this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x14')])['map'](_0x4ac161=>[_0x4ac161[_0x2101('0x51')],_0x4ac161['getRange']()]),_0x2e2ebc=this[_0x2101('0x2c')][_0x2101('0xae')];this[_0x2101('0xd1')](_0x2e2ebc,_0x54a0c0,_0x57dda8,_0x221426),this[_0x2101('0x28')]=this[_0x2101('0x1e')];const _0x1271c8=new Map(),_0x598327=new Map();for(const _0x13fd88 of _0x5e56af){const _0x98a903=G(_0x13fd88);_0x1271c8[_0x2101('0x1b')](_0x13fd88,_0x98a903),_0x598327['set'](_0x13fd88,{});}this['_saveMetaData'](Number[_0x2101('0xe6')],_0x1271c8,[],_0x598327);}['getData'](_0x15b928,_0x103ba6){if(this['_lastFrom']===_0x15b928&&this[_0x2101('0x7d')]<=_0x103ba6)this[_0x2101('0x2e')]['size']>0x1&&this[_0x2101('0x5f')](this[_0x2101('0x7d')]),this['_applyOperations'](this[_0x2101('0x7d')],_0x103ba6,!0x0);else{if(!this['_savedMetaData'][_0x2101('0x103')](_0x15b928)){const _0x556624=this[_0x2101('0xcb')](_0x15b928);this[_0x2101('0xff')](_0x556624,_0x15b928,!0x1);}this[_0x2101('0xff')](_0x15b928,_0x103ba6,!0x0);}return this[_0x2101('0xd7')]=_0x15b928,this[_0x2101('0x7d')]=_0x103ba6,this[_0x2101('0xc4')]();}[_0x2101('0x9a')](_0x68955){this[_0x2101('0x50')](),this[_0x2101('0xd7')]=_0x68955[_0x2101('0xfe')],this[_0x2101('0x7d')]=_0x68955[_0x2101('0xc5')];for(const _0x571e51 in _0x68955[_0x2101('0x13')]){const _0x66b831=_0x68955[_0x2101('0x13')][_0x571e51][_0x2101('0xd8')],_0x53ba90=_0x1e65fb(_0x68955['diffData'][_0x571e51][_0x2101('0xb1')])||{},_0x314afb=this[_0x2101('0xa3')](_0x68955['diffData'][_0x571e51][_0x2101('0x100')]);_0x314afb[_0x2101('0xd4')]=_0x571e51,_0x314afb['_isAttached']=!_0x66b831||!_0x66b831[_0x2101('0xf8')],_0x314afb[_0x2101('0xf8')]=()=>_0x314afb[_0x2101('0xf1')],this['_baseRoots']['set'](_0x571e51,_0x314afb),this['_baseRootsAttributes'][_0x2101('0x1b')](_0x571e51,_0x53ba90),_0x66b831&&this[_0x2101('0x66')]['set'](_0x571e51,_0x66b831);const _0x5e237b=this[_0x2101('0xa7')](_0x314afb);this[_0x2101('0x38')][_0x2101('0x1b')](_0x571e51,_0x5e237b);for(const [_0x1392e7,_0x251277]of _0x314afb['markers']){if(!_0x1392e7[_0x2101('0x75')]('revision:'))continue;const _0x124247=_0x1392e7[_0x2101('0x7b')](':')[0x2];for(const _0x3e0a5a of _0x251277['getWalker']({'singleCharacters':!0x0})){const _0x28a72b=this['_getVidAttributeName'](_0x3e0a5a),_0x5156c2=_0x2101('0x70')==_0x3e0a5a[_0x2101('0xc0')]?_0x3e0a5a['previousPosition'][_0x2101('0x82')][_0x2101('0x2b')](0x0,-0x1):_0x3e0a5a[_0x2101('0xe2')][_0x2101('0x82')],_0x11743c=_0x5e237b[_0x2101('0xa9')](_0x5156c2)[_0x2101('0x58')](_0x28a72b);this[_0x2101('0x47')]['set'](_0x11743c,{'userId':_0x124247});}}}this[_0x2101('0x28')]=this[_0x2101('0x1e')];const _0x16298d=[...Array(this[_0x2101('0x1e')])[_0x2101('0x20')]()][_0x2101('0x2b')](0x1)['filter'](_0x5a08fa=>!this[_0x2101('0x47')][_0x2101('0x103')](_0x5a08fa));let _0x47f3f9=0x0;const _0x45d552=new Map();for(const _0x3479ef in _0x68955[_0x2101('0x13')]){const _0x1dcf33=_0x68955[_0x2101('0x13')][_0x3479ef]['attachChange'],_0x93c827=_0x1e65fb(_0x68955[_0x2101('0x13')][_0x3479ef][_0x2101('0x8')])||{},_0x3d3ee3=this[_0x2101('0xa3')](_0x68955['diffData'][_0x3479ef]['insertions']);_0x3d3ee3[_0x2101('0xd4')]=_0x3479ef,_0x3d3ee3[_0x2101('0xf1')]=!_0x1dcf33||_0x1dcf33[_0x2101('0xf8')],_0x3d3ee3[_0x2101('0xf8')]=()=>_0x3d3ee3['_isAttached'],this['_diffRoots']['set'](_0x3479ef,_0x3d3ee3),this[_0x2101('0x54')][_0x2101('0x1b')](_0x3479ef,_0x93c827);const _0x15edf6=this['_makeIdsRoot'](_0x3d3ee3,Number[_0x2101('0xe6')]);this[_0x2101('0x1')][_0x2101('0x1b')](_0x3479ef,_0x15edf6),_0x45d552[_0x2101('0x1b')](_0x3479ef,_0x3d3ee3[_0x2101('0xf8')]()?_0x93c827:{});for(const [_0x15ea7c,_0x37ef2f]of _0x3d3ee3[_0x2101('0x14')]){if(!_0x15ea7c[_0x2101('0x75')](_0x2101('0x4e')))continue;const _0x35a1d4=_0x15ea7c[_0x2101('0x7b')](':')[0x2];for(const _0x3efef9 of _0x37ef2f[_0x2101('0x102')]({'singleCharacters':!0x0})){const _0x196627=this['_getVidAttributeName'](_0x3efef9),_0x2726b0=this[_0x2101('0x1e')]++,_0x4c4531=_0x2101('0x70')==_0x3efef9[_0x2101('0xc0')]?_0x3efef9[_0x2101('0xe2')][_0x2101('0x82')][_0x2101('0x2b')](0x0,-0x1):_0x3efef9[_0x2101('0xe2')]['path'];_0x15edf6[_0x2101('0xa9')](_0x4c4531)[_0x2101('0x90')](_0x196627,_0x2726b0),this[_0x2101('0x47')][_0x2101('0x1b')](_0x2726b0,{'userId':_0x35a1d4});}}for(const _0x265b96 of this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0xfa')](_0x3d3ee3)[_0x2101('0x102')]({'singleCharacters':!0x0})){const _0x5e552c=this['_getVidAttributeName'](_0x265b96),_0x35dd3f=_0x2101('0x70')==_0x265b96[_0x2101('0xc0')]?_0x265b96[_0x2101('0xe2')][_0x2101('0x82')]['slice'](0x0,-0x1):_0x265b96[_0x2101('0xe2')]['path'],_0x2fe03a=_0x15edf6['getNodeByPath'](_0x35dd3f);_0x2fe03a[_0x2101('0x58')](_0x5e552c)>0x0||_0x2fe03a['_setAttribute'](_0x5e552c,_0x16298d[_0x47f3f9++]);}for(const [_0x21ca73,_0x505220]of _0x3d3ee3[_0x2101('0x14')])_0x21ca73[_0x2101('0x75')]('revision:')||this[_0x2101('0x45')][_0x2101('0x1b')](_0x21ca73,_0x505220);}const _0x2978bb=G(_0x2101('0xbf'));this[_0x2101('0x97')][_0x2101('0x1b')](_0x2101('0xbf'),_0x2978bb),this['_baseIdsRoots']['set'](_0x2101('0xbf'),this[_0x2101('0xa7')](_0x2978bb,0x1));const _0x10b473=G(_0x2101('0xbf'));this[_0x2101('0x8b')][_0x2101('0x1b')](_0x2101('0xbf'),_0x10b473),this[_0x2101('0x1')][_0x2101('0x1b')](_0x2101('0xbf'),this[_0x2101('0xa7')](_0x10b473,0x1));const _0x27b910=Array['from'](this[_0x2101('0x8b')])[_0x2101('0x76')](([_0x389be3,_0x1fd422])=>[_0x389be3,q(_0x1fd422)]);this['_saveMetaData'](this[_0x2101('0x7d')],_0x27b910,this['_markers'],_0x45d552);}[_0x2101('0xa3')](_0xf90540){const _0xe94d15=JSON[_0x2101('0xc')](_0xf90540),_0x4a1b23=this[_0x2101('0x23')][_0x2101('0x91')]['view']['document'],_0x44903d=new _0xa1f4f6(_0x4a1b23,_0xe94d15['map'](_0x44a1be=>J(_0x44a1be,this['editor'])));return this[_0x2101('0x23')]['data']['toModel'](_0x44903d);}[_0x2101('0xd1')](_0x4ab7ac,_0xaab95d,_0x16a0ea,_0xb00898){const _0x27d9f3=new Map(_0xaab95d),_0x8955e8=new Map(_0x1e65fb(_0xb00898)),_0x38e946=new Map();for(const [_0xc77ec5,_0x52d973]of _0x16a0ea)_0x38e946[_0x2101('0x1b')](_0xc77ec5,{'start':_0x52d973[_0x2101('0x52')]['clone'](),'end':_0x52d973[_0x2101('0xec')][_0x2101('0x5c')](),'rootName':_0x52d973['root']['rootName']});this[_0x2101('0x2e')][_0x2101('0x1b')](_0x4ab7ac,{'roots':_0x27d9f3,'markers':_0x38e946,'rootsAttributes':_0x8955e8});}['_removeMetaData'](_0x7a3c62){this[_0x2101('0x2e')][_0x2101('0x8d')](_0x7a3c62);}[_0x2101('0xcd')](){this[_0x2101('0x50')](),this[_0x2101('0xd7')]=-0x1,this['_lastTo']=-0x1,this[_0x2101('0x2e')][_0x2101('0x2d')](),this[_0x2101('0x84')](this['source']);}[_0x2101('0x50')](){this[_0x2101('0x47')]['clear'](),this[_0x2101('0x80')]['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots'][_0x2101('0x2d')](),this[_0x2101('0x54')][_0x2101('0x2d')](),this['_baseRoots'][_0x2101('0x2d')](),this['_baseRootsAttributes']['clear'](),this[_0x2101('0x1')][_0x2101('0x2d')](),this[_0x2101('0x38')]['clear'](),this[_0x2101('0x45')][_0x2101('0x2d')](),this[_0x2101('0x1e')]=0x1,this[_0x2101('0x28')]=this[_0x2101('0x1e')];}['_makeIdsRoot'](_0x3847ce,_0x50ccd9=null){let _0x6f0ba1=null;_0x3847ce['is'](_0x2101('0xb4'))||(_0x6f0ba1=new _0x25fef9(_0x3847ce[_0x2101('0x51')],{'vid_start':null===_0x50ccd9?this[_0x2101('0x1e')]++:_0x50ccd9++}));const _0x5dfbba=[];for(const _0x3f4521 of _0x3847ce[_0x2101('0xd0')]())if(_0x3f4521['is']('element')){_0x5dfbba[_0x2101('0x56')](this[_0x2101('0xa7')](_0x3f4521,_0x50ccd9));const _0x538ea7=_0x5dfbba[_0x5dfbba[_0x2101('0xb2')]-0x1];null!==_0x50ccd9&&(_0x50ccd9=_0x538ea7['is']('element','$text')?_0x538ea7[_0x2101('0x58')](_0x2101('0x16'))+0x1:_0x538ea7[_0x2101('0x58')](_0x2101('0x4'))+0x1);}else for(let _0x5e9c1b=0x0;_0x5e9c1b<_0x3f4521[_0x2101('0xf3')];_0x5e9c1b++)_0x5dfbba[_0x2101('0x56')](new _0x25fef9(_0x2101('0x3d'),{'vid':null===_0x50ccd9?this['_revisionId']++:_0x50ccd9++}));if(_0x3847ce['is'](_0x2101('0xb4'))){const _0x244463=G(_0x3847ce['rootName']);return _0x244463[_0x2101('0x7a')](0x0,_0x5dfbba),_0x244463;}return _0x6f0ba1['_setAttribute'](_0x2101('0x4'),null===_0x50ccd9?this['_revisionId']++:_0x50ccd9++),_0x6f0ba1['_insertChild'](0x0,_0x5dfbba),_0x6f0ba1;}[_0x2101('0xff')](_0xf65438,_0x309fd4,_0x302146){this[_0x2101('0x50')]();const {roots:_0x5a7cd3,markers:_0x4541e4,rootsAttributes:_0x5bb8be}=this['_savedMetaData'][_0x2101('0x65')](_0xf65438);this[_0x2101('0x97')]=new Map(_0x5a7cd3),this[_0x2101('0x71')]=new Map(_0x1e65fb(_0x5bb8be));for(const [_0x194fc0,_0xebae95]of this[_0x2101('0x97')])if(_0x2101('0xbf')!==_0x194fc0&&(this[_0x2101('0x8b')]['set'](_0x194fc0,q(_0xebae95)),this[_0x2101('0x54')]=new Map(_0x1e65fb(_0x5bb8be)),_0x302146)){const _0x45abd5=this[_0x2101('0x1e')];this[_0x2101('0x1')][_0x2101('0x1b')](_0x194fc0,this[_0x2101('0xa7')](_0xebae95)),this[_0x2101('0x38')][_0x2101('0x1b')](_0x194fc0,this['_makeIdsRoot'](_0xebae95,_0x45abd5));}this[_0x2101('0x28')]=this['_revisionId'],this['_diffRoots'][_0x2101('0x1b')](_0x2101('0xbf'),q(this[_0x2101('0x97')][_0x2101('0x65')](_0x2101('0xbf')))),_0x302146&&this[_0x2101('0x1')][_0x2101('0x1b')](_0x2101('0xbf'),this[_0x2101('0xa7')](this[_0x2101('0x97')]['get']('$graveyard')));for(const [_0x3883df,_0x4003bc]of _0x4541e4){const _0x303f12=this[_0x2101('0x97')][_0x2101('0x65')](_0x4003bc[_0x2101('0xd4')]),_0x5bad87=this['_diffRoots'][_0x2101('0x65')](_0x4003bc[_0x2101('0xd4')]),_0x1429f1=new _0x495a05(this[_0x2101('0x8c')](_0x4003bc['start'],_0x303f12),this[_0x2101('0x8c')](_0x4003bc[_0x2101('0xec')],_0x303f12)),_0x15e56f=this[_0x2101('0xda')](_0x1429f1,_0x5bad87);_0x303f12['markers'][_0x2101('0x1b')](_0x3883df,_0x1429f1),this['_markers'][_0x2101('0x1b')](_0x3883df,_0x15e56f);}this['_applyOperations'](_0xf65438,_0x309fd4,_0x302146);}['_applyOperations'](_0x25a69a,_0x556f29,_0x578455){for(const _0x46558a of this['source']['getOperations'](_0x25a69a,_0x556f29))this[_0x2101('0x1f')](_0x46558a,_0x578455);for(const _0x1bfb31 of this['_diffRoots']['values']())_0x1bfb31[_0x2101('0x14')][_0x2101('0x2d')]();for(const [_0x41ca3f,_0x3255b5]of this['_markers']){this[_0x2101('0x8b')][_0x2101('0x65')](_0x3255b5[_0x2101('0x49')][_0x2101('0xd4')])[_0x2101('0x14')][_0x2101('0x1b')](_0x41ca3f,_0x3255b5[_0x2101('0x5c')]());}const _0x4d1dd4=new Map(),_0x172845=new Map();for(const [_0x52313b,_0x49a0e7]of this[_0x2101('0x8b')])_0x4d1dd4['set'](_0x52313b,q(_0x49a0e7)),_0x172845['set'](_0x52313b,this[_0x2101('0x54')][_0x2101('0x65')](_0x52313b));this[_0x2101('0xd1')](_0x556f29,_0x4d1dd4,this[_0x2101('0x45')],_0x172845);}[_0x2101('0xcb')](_0x29acc4){const _0xe5cabe=Array[_0x2101('0xe4')](this[_0x2101('0x2e')]['keys']());_0xe5cabe[_0x2101('0x85')]((_0x4364f2,_0x458784)=>_0x4364f2-_0x458784),_0xe5cabe['reverse']();for(const _0x19100b of _0xe5cabe)if(_0x19100b<_0x29acc4)return _0x19100b;return Number[_0x2101('0xe6')];}[_0x2101('0xd3')](_0xd9b45a,_0x27ee27){const _0xb69244=Array[_0x2101('0xe4')](_0x27ee27[_0x2101('0x14')])[_0x2101('0x76')](([_0x2cc972,_0x1e8e7a])=>[_0x2cc972,this[_0x2101('0xda')](_0x1e8e7a,_0xd9b45a)]);_0xd9b45a['markers']=new Map(_0xb69244);}[_0x2101('0xe9')](_0x43e431){for(const _0x496ff2 of this[_0x2101('0x45')][_0x2101('0xa2')]()){const _0xfbca26=_0x496ff2[_0x2101('0xca')](_0x43e431),_0x1c8c7c=_0x495a05[_0x2101('0x5d')](_0xfbca26);_0x496ff2[_0x2101('0x52')]=_0x1c8c7c[_0x2101('0x52')],_0x496ff2['end']=_0x1c8c7c[_0x2101('0xec')];}}[_0x2101('0x1f')](_0xbe4639,_0x5b363b){if(_0x2101('0x2')==_0xbe4639[_0x2101('0xc0')]||'detachRoot'==_0xbe4639['type'])return void this['_handleRootOperation'](_0xbe4639,_0x5b363b);if(_0x2101('0x6b')==_0xbe4639['type']){const _0x5b3c2b=_0xbe4639[_0x2101('0x11')]['root'][_0x2101('0xd4')];this[_0x2101('0x8b')][_0x2101('0x103')](_0x5b3c2b)||(this[_0x2101('0x8b')][_0x2101('0x1b')](_0x5b3c2b,G(_0x5b3c2b,!0x0)),this[_0x2101('0x54')][_0x2101('0x1b')](_0x5b3c2b,{}),_0x5b363b&&this[_0x2101('0x1')]['set'](_0x5b3c2b,G(_0x5b3c2b,!0x0)));}else{if(_0x2101('0x6a')==_0xbe4639[_0x2101('0xc0')]||'removeRootAttribute'==_0xbe4639[_0x2101('0xc0')]||'changeRootAttribute'==_0xbe4639[_0x2101('0xc0')])return void this['_handleRootAttributeOperation'](_0xbe4639);}const _0x2ea7cf=this['_cloneOperation'](_0xbe4639,this[_0x2101('0x8b')]);if(_0x2101('0x25')!==_0xbe4639['type']&&(_0x2ea7cf['_execute'](),this[_0x2101('0xe9')](_0x2ea7cf)),_0x5b363b)switch(_0x2ea7cf[_0x2101('0xc0')]){case _0x2101('0x6b'):this[_0x2101('0x104')](_0xbe4639);break;case _0x2101('0xef'):case _0x2101('0xb'):case _0x2101('0xf'):this[_0x2101('0xa8')](_0xbe4639);break;case _0x2101('0x87'):this[_0x2101('0xd')](_0xbe4639);break;case _0x2101('0x7b'):this[_0x2101('0x44')](_0xbe4639);break;case _0x2101('0x25'):this['_handleMarkerOperation'](_0xbe4639);}}[_0x2101('0xc3')](_0x291602,_0x812d86){const _0x3f1265=_0x291602[_0x2101('0x5c')]();return _0x3f1265[_0x2101('0x63')]=_0x291602[_0x2101('0x63')],this[_0x2101('0x105')](_0x3f1265,_0x812d86),_0x3f1265;}[_0x2101('0x95')](_0x24fe4f){return _0x24fe4f[_0x2101('0x76')](_0x3ae0bf=>{const _0x389c3b=this[_0x2101('0x5b')](_0x3ae0bf);return Number(_0x3ae0bf[_0x2101('0xe')][_0x2101('0x58')](_0x389c3b));});}['_generateTape'](_0x37103c,_0x5e8bbe){if(_0x37103c['is'](_0x2101('0x3b'),_0x2101('0x3d')))_0x5e8bbe['push']({'item':_0x37103c,'type':'text'});else{_0x37103c['is'](_0x2101('0x3b'))&&_0x5e8bbe[_0x2101('0x56')]({'item':_0x37103c,'type':_0x2101('0x6e')});for(const _0x4802ce of _0x37103c['getChildren']())this[_0x2101('0x89')](_0x4802ce,_0x5e8bbe);_0x37103c['is']('element')&&_0x5e8bbe[_0x2101('0x56')]({'item':_0x37103c,'type':_0x2101('0x70')});}return _0x5e8bbe;}[_0x2101('0xc4')](){const _0x2b8878=new Map(this[_0x2101('0x47')]),_0x376ed6=new Map(_0x2b8878),_0x5bf22f=new Map(),_0x478e1b={'insertions':{},'deletions':{}},_0x38a075={'insertions':{},'deletions':{}},_0x13014e=new Map(),_0x2d81a1=new Set([...this['_baseRoots'][_0x2101('0x20')](),...this[_0x2101('0x8b')][_0x2101('0x20')]()]);_0x2d81a1[_0x2101('0x8d')](_0x2101('0xbf'));for(const _0x1a67e3 of _0x2d81a1){const _0x49e164=this[_0x2101('0x8b')][_0x2101('0x65')](_0x1a67e3)||G(_0x1a67e3,!0x1),_0x436114=this[_0x2101('0x97')]['get'](_0x1a67e3)||G(_0x1a67e3,!0x1);_0x49e164[_0x2101('0xf8')]()||_0x436114[_0x2101('0xf8')]()?(_0x478e1b[_0x2101('0x6c')][_0x1a67e3]=q(_0x49e164),_0x478e1b[_0x2101('0x100')][_0x1a67e3]=q(_0x436114),this['_copyMarkers'](_0x478e1b['deletions'][_0x1a67e3],_0x436114),this[_0x2101('0xd3')](_0x478e1b[_0x2101('0x6c')][_0x1a67e3],_0x49e164),_0x38a075[_0x2101('0x6c')][_0x1a67e3]=this['_generateTape'](this['_idsRoots'][_0x2101('0x65')](_0x1a67e3),[]),_0x38a075[_0x2101('0x100')][_0x1a67e3]=this['_generateTape'](this['_baseIdsRoots'][_0x2101('0x65')](_0x1a67e3)||G(_0x1a67e3,!0x1),[])):_0x2d81a1[_0x2101('0x8d')](_0x1a67e3);}for(const _0x422460 of _0x2d81a1){const _0x394ed=_0x38a075[_0x2101('0x6c')][_0x422460];for(const _0x45b7ea of _0x394ed){const _0x45c353=this[_0x2101('0x5b')](_0x45b7ea),_0x142e5d=_0x45b7ea[_0x2101('0xe')][_0x2101('0x58')](_0x45c353);_0x376ed6[_0x2101('0x8d')](_0x142e5d),_0x142e5d>=this[_0x2101('0x28')]&&_0x5bf22f['set'](_0x142e5d,_0x2b8878['get'](_0x142e5d));}}for(const _0x5ab833 of _0x2d81a1){const _0x2b1abc=_0x38a075['insertions'][_0x5ab833],_0x4c51f4=this[_0x2101('0x95')](_0x38a075[_0x2101('0x100')][_0x5ab833]);let _0x275cd7=0x0;for(const _0x1c00a7 of _0x2b1abc){const _0x379628=this[_0x2101('0x5b')](_0x1c00a7),_0x44cc14=_0x1c00a7[_0x2101('0xe')][_0x2101('0x58')](_0x379628);if(!_0x5bf22f['has'](_0x44cc14)&&!_0x13014e[_0x2101('0x103')](_0x44cc14)){if(_0x376ed6[_0x2101('0x103')](_0x44cc14))_0x275cd7++;else{if(_0x44cc14!=_0x4c51f4[_0x275cd7]){const _0x207d1f=_0x2b8878[_0x2101('0x65')](_0x44cc14)||_0x2b8878[_0x2101('0x65')](_0x4c51f4[_0x275cd7]);for(;_0x44cc14!=_0x4c51f4[_0x275cd7];)_0x376ed6['has'](_0x4c51f4[_0x275cd7])||(_0x13014e[_0x2101('0x1b')](_0x4c51f4[_0x275cd7],_0x207d1f),_0x2b8878[_0x2101('0x1b')](_0x4c51f4[_0x275cd7],_0x207d1f)),_0x275cd7++;}_0x275cd7++;}}}}for(const _0x4e4a97 of _0x2d81a1){const _0x23de9d=_0x38a075[_0x2101('0x6c')][_0x4e4a97];for(const _0x4fe0e9 of _0x23de9d){const _0x58a8a1=this[_0x2101('0x5b')](_0x4fe0e9),_0x47b935=_0x4fe0e9[_0x2101('0xe')][_0x2101('0x58')](_0x58a8a1);if(_0x13014e[_0x2101('0x103')](_0x47b935)){const _0x2a050e=_0x13014e[_0x2101('0x65')](_0x47b935);_0x376ed6[_0x2101('0x103')](_0x47b935)||_0x376ed6[_0x2101('0x1b')](_0x47b935,{..._0x2a050e}),_0x5bf22f[_0x2101('0x1b')](_0x47b935,{..._0x2a050e});}}}for(const _0x31088d of _0x376ed6[_0x2101('0x20')]())_0x31088d>=this['_startingRevisionId']&&_0x376ed6[_0x2101('0x8d')](_0x31088d);const _0x31717e=new Map();for(const _0x4abe02 of _0x2d81a1){let _0x24c191=_0x38a075[_0x2101('0x6c')][_0x4abe02];for(const _0x26af32 of _0x24c191)if(_0x26af32['item']['is']('element',_0x2101('0xf9'))){const _0x4c8f9f=this[_0x2101('0x5b')](_0x26af32),_0x5bd781=_0x26af32['item'][_0x2101('0x58')](_0x4c8f9f);if(_0x5bf22f['has'](_0x5bd781)){const _0x29f33d=_0x26af32['item'][_0x2101('0x9')][_0x2101('0x9')][_0x2101('0x58')]('vid_start'),_0x511978=_0x31717e['get'](_0x29f33d)||new Set();_0x511978[_0x2101('0xaf')](_0x5bf22f['get'](_0x5bd781)[_0x2101('0x43')]),_0x31717e[_0x2101('0x1b')](_0x29f33d,_0x511978);}}_0x24c191=_0x38a075[_0x2101('0x100')][_0x4abe02];for(const _0xa9cc1e of _0x24c191)if(_0xa9cc1e[_0x2101('0xe')]['is'](_0x2101('0x3b'),_0x2101('0xf9'))){const _0x3ac510=this[_0x2101('0x5b')](_0xa9cc1e),_0x4eb2d9=_0xa9cc1e['item'][_0x2101('0x58')](_0x3ac510);if(_0x376ed6['has'](_0x4eb2d9)){const _0x1bcce8=_0xa9cc1e[_0x2101('0xe')][_0x2101('0x9')][_0x2101('0x9')][_0x2101('0x58')]('vid_start'),_0x2e7712=_0x31717e[_0x2101('0x65')](_0x1bcce8)||new Set();_0x2e7712[_0x2101('0xaf')](_0x376ed6[_0x2101('0x65')](_0x4eb2d9)['userId']),_0x31717e[_0x2101('0x1b')](_0x1bcce8,_0x2e7712);}}for(const _0x28ac43 of _0x31717e[_0x2101('0x20')]())(_0x5bf22f[_0x2101('0x103')](_0x28ac43)||_0x376ed6[_0x2101('0x103')](_0x28ac43))&&_0x31717e[_0x2101('0x8d')](_0x28ac43);}for(const _0x5e3f11 of _0x2d81a1){const _0x1b7b6f=_0x38a075[_0x2101('0x6c')][_0x5e3f11];let _0xdd1417=null,_0x1654d0=null;for(const _0x27ad5c of _0x1b7b6f){const _0x213ef8=this['_getVidAttributeName'](_0x27ad5c),_0x3fb755=_0x27ad5c['item']['getAttribute'](_0x213ef8),_0x438dd3=_0x31717e[_0x2101('0x65')](_0x3fb755);_0x438dd3&&'elementStart'==_0x27ad5c['type']&&(_0xdd1417=Array[_0x2101('0xe4')](_0x438dd3)[0x0],_0x1654d0=_0x27ad5c['item']['getAttribute'](_0x2101('0x4'))),_0xdd1417&&(_0x376ed6[_0x2101('0x1b')](_0x3fb755,{'userId':_0xdd1417}),_0x5bf22f[_0x2101('0x1b')](_0x3fb755,{'userId':_0xdd1417})),_0x3fb755==_0x1654d0&&(_0xdd1417=null,_0x1654d0=null);}}const _0x457897={},_0x4b3678=new Set();for(const _0x2caaa2 of _0x2d81a1){const _0x13a13b=_0x478e1b[_0x2101('0x100')][_0x2caaa2],_0x497901=_0x478e1b[_0x2101('0x6c')][_0x2caaa2];for(const {userId:_0x35b96a}of this['_touchedMarkers'][_0x2101('0xa2')]())null!==_0x35b96a&&_0x4b3678['add'](_0x35b96a);for(const {userId:_0x1fc615}of this[_0x2101('0x66')][_0x2101('0xa2')]())null!==_0x1fc615&&_0x4b3678[_0x2101('0xaf')](_0x1fc615);this[_0x2101('0x9d')](_0x497901,_0x38a075[_0x2101('0x6c')][_0x2caaa2],_0x5bf22f,_0x2101('0x2f'),_0x4b3678),this[_0x2101('0x9d')](_0x13a13b,_0x38a075[_0x2101('0x100')][_0x2caaa2],_0x376ed6,_0x2101('0x8f'),_0x4b3678),_0x457897[_0x2caaa2]={'insertions':this[_0x2101('0x88')](_0x497901),'deletions':this[_0x2101('0x88')](_0x13a13b),'attachChange':this[_0x2101('0x66')][_0x2101('0x65')](_0x2caaa2)||null,'attributesBefore':_0x1e65fb(this[_0x2101('0x71')][_0x2101('0x65')](_0x2caaa2))||{},'attributesAfter':_0x1e65fb(this[_0x2101('0x54')][_0x2101('0x65')](_0x2caaa2))};}return{'diffData':_0x457897,'authorsIds':Array['from'](_0x4b3678)};}[_0x2101('0x2a')](_0x55d23c){for(const [,_0x5c3630]of _0x55d23c[_0x2101('0x14')]){const _0x8f9d8f=_0x5c3630[_0x2101('0x52')][_0x2101('0x3f')]()[_0x2101('0x3a')](_0x1c20ce=>_0x2101('0xf9')==_0x1c20ce['name']);for(const _0x23affa of _0x8f9d8f)0x1==_0x23affa[_0x2101('0xd5')]&&_0x23affa[_0x2101('0xa0')](0x0)['is'](_0x2101('0x3b'),_0x2101('0x77'))&&_0x23affa[_0x2101('0xa0')](0x0)[_0x2101('0x90')](_0x2101('0xe3'),!0x0);}}['_prepareViewToSave'](_0x29e6e0){this[_0x2101('0x2a')](_0x29e6e0);const _0xde05b3=this[_0x2101('0x23')][_0x2101('0x8e')][_0x2101('0x61')](_0x29e6e0,{}),_0x29e5d1=Array[_0x2101('0xe4')](_0xde05b3[_0x2101('0xd0')]())['map'](_0x3c01e5=>this[_0x2101('0x83')](_0x3c01e5));return JSON[_0x2101('0xb8')](_0x29e5d1);}[_0x2101('0x83')](_0x36f438){if(_0x36f438['is'](_0x2101('0x3d')))return _0x36f438[_0x2101('0x8e')];{const _0x39f03b=_0x36f438;return{'type':Object['keys'](B)[_0x2101('0x60')](_0xe5c867=>_0x36f438 instanceof B[_0xe5c867]),'name':_0x39f03b[_0x2101('0x51')],'attributes':Array[_0x2101('0xe4')](_0x39f03b[_0x2101('0x55')]()),'children':Array[_0x2101('0xe4')](_0x39f03b['getChildren']())['map'](_0x5d01ab=>this[_0x2101('0x83')](_0x5d01ab))};}}[_0x2101('0x9d')](_0x48830c,_0x542307,_0xe9ee26,_0x30ddc1,_0x1464b6){let _0x523afe=null,_0x3d860d=null,_0x3c180b=0x0;const _0x193a3f=this[_0x2101('0x23')][_0x2101('0xc9')];for(let _0x5049f4=0x0;_0x5049f4<_0x542307['length'];_0x5049f4++){const _0x1ef074=this['_getVidAttributeName'](_0x542307[_0x5049f4]),_0x4a0b8a=_0x542307[_0x5049f4][_0x2101('0xe')]['getAttribute'](_0x1ef074),_0x2065a7=_0xe9ee26[_0x2101('0x65')](_0x4a0b8a),_0x4b0398=_0x5049f4==_0x542307['length']-0x1;(!_0x523afe&&_0x2065a7&&(_0x523afe=_0x2065a7,_0x3d860d=_0x542307[_0x5049f4]),_0x523afe&&(!_0x2065a7||_0x2065a7[_0x2101('0x43')]!=_0x523afe[_0x2101('0x43')]))&&(_0x4debaf(_0x2065a7,L(_0x3d860d,_0x48830c,_0x193a3f),L(_0x542307[_0x5049f4],_0x48830c,_0x193a3f)),_0x523afe=_0x2065a7||null,_0x3d860d=_0x2065a7?_0x542307[_0x5049f4]:null),_0x523afe&&_0x4b0398&&_0x4debaf(_0x2065a7,L(_0x3d860d,_0x48830c,_0x193a3f),W(_0x542307[_0x5049f4],_0x48830c,_0x193a3f));}function _0x4debaf(_0x165f6e,_0x42dc9f,_0x1ab8e5){const _0x5ef659=_0x523afe[_0x2101('0x43')],_0x563705='revision:'+_0x30ddc1+':'+_0x5ef659+':'+_0x3c180b++,_0xf62a02=_0x193a3f[_0x2101('0x9f')](_0x42dc9f,_0x1ab8e5);_0x48830c[_0x2101('0x14')][_0x2101('0x1b')](_0x563705,_0xf62a02),null!==_0x5ef659&&_0x1464b6[_0x2101('0xaf')](_0x5ef659);}}[_0x2101('0x5b')](_0x598b88){switch(_0x598b88[_0x2101('0xc0')]){case _0x2101('0x6e'):return _0x2101('0x26');case _0x2101('0x70'):return _0x2101('0x4');default:return'vid';}}[_0x2101('0x105')](_0xda091a,_0x4788b7){_0xda091a['baseVersion']=null;for(const _0x22551b in _0xda091a){const _0x5e01e8=_0xda091a[_0x22551b];if(_0x5e01e8 instanceof _0x372bce){const _0x45b009=_0x4788b7[_0x2101('0x65')](_0x5e01e8[_0x2101('0x49')]['rootName']);_0xda091a[_0x22551b]=this[_0x2101('0x8c')](_0x5e01e8,_0x45b009);}if(_0x5e01e8 instanceof _0x495a05){const _0x15e6de=_0x4788b7[_0x2101('0x65')](_0x5e01e8[_0x2101('0x49')][_0x2101('0xd4')]);_0xda091a[_0x22551b]=this['_fixRange'](_0x5e01e8,_0x15e6de);}_0x2101('0x49')===_0x22551b&&(_0xda091a[_0x2101('0x49')]=_0x4788b7[_0x2101('0x65')](_0xda091a[_0x2101('0x49')][_0x2101('0xd4')]));}}[_0x2101('0xda')](_0x349091,_0x32faa9){return this[_0x2101('0x23')]['model'][_0x2101('0x9f')](this[_0x2101('0x8c')](_0x349091[_0x2101('0x52')],_0x32faa9),this[_0x2101('0x8c')](_0x349091[_0x2101('0xec')],_0x32faa9));}['_fixPosition'](_0x3c1071,_0x58e01c){return this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0xb9')](_0x58e01c,_0x3c1071[_0x2101('0x82')],_0x3c1071[_0x2101('0x0')]);}[_0x2101('0x104')](_0x5de193){const _0x39dcff=this[_0x2101('0x1')][_0x2101('0x65')](_0x5de193[_0x2101('0x11')][_0x2101('0x49')]['rootName']),_0x56b558=this['_fixPosition'](_0x5de193[_0x2101('0x11')],_0x39dcff),_0x39ace2=null===_0x5de193['_authorId']?null:_0x5de193[_0x2101('0x63')]||this[_0x2101('0x23')][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0xc5c118=_0x56b558['parent'],_0x14adaf=this[_0x2101('0x1e')],_0x10759f=[];for(const _0x353538 of _0x5de193[_0x2101('0xf2')])if(_0x353538['is'](_0x2101('0x3b')))_0x10759f['push'](this['_makeIdsRoot'](_0x353538));else for(let _0x4fe1cc=0x0;_0x4fe1cc<_0x353538[_0x2101('0xf3')];_0x4fe1cc++)_0x10759f[_0x2101('0x56')](new _0x25fef9(_0x2101('0x3d'),{'vid':this[_0x2101('0x1e')]++}));const _0x11366d=this['_revisionId'];for(let _0xc56b04=_0x14adaf;_0xc56b04<_0x11366d;_0xc56b04++)this[_0x2101('0x47')][_0x2101('0x1b')](_0xc56b04,{'userId':_0x39ace2});_0xc5c118[_0x2101('0x7a')](_0x56b558[_0x2101('0x93')],_0x10759f);}[_0x2101('0xa8')](_0x61f826){(_0x61f826=this[_0x2101('0xc3')](_0x61f826,this[_0x2101('0x1')]))[_0x2101('0xfb')]();const _0x141f1c=null===_0x61f826[_0x2101('0x63')]?null:_0x61f826[_0x2101('0x63')]||this['editor']['plugins'][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0x4e8a67=_0x61f826[_0x2101('0xe1')](),_0x527228=_0x4e8a67['parent'],_0x3a40aa=_0x4e8a67[_0x2101('0x93')];!function _0x179681(_0x35601d,_0x183b22,_0x2037ed,_0x316d34){for(let _0x3c2893=_0x2037ed;_0x3c2893<_0x316d34;_0x3c2893++){const _0x34a7ef=_0x183b22['getChild'](_0x3c2893);_0x34a7ef['is']('element',_0x2101('0x3d'))?_0x35601d[_0x2101('0x1b')](_0x34a7ef[_0x2101('0x58')](_0x2101('0x16')),{'userId':_0x141f1c}):(_0x35601d[_0x2101('0x1b')](_0x34a7ef[_0x2101('0x58')](_0x2101('0x26')),{'userId':_0x141f1c}),_0x179681(_0x35601d,_0x34a7ef,0x0,_0x34a7ef[_0x2101('0xd5')]),_0x35601d['set'](_0x34a7ef[_0x2101('0x58')](_0x2101('0x4')),{'userId':_0x141f1c}));}}(this[_0x2101('0x47')],_0x527228,_0x3a40aa,_0x3a40aa+_0x61f826[_0x2101('0x3e')]);}[_0x2101('0xd')](_0x313c2d){const _0x223fd6=null===(_0x313c2d=this[_0x2101('0xc3')](_0x313c2d,this[_0x2101('0x1')]))[_0x2101('0x63')]?null:_0x313c2d[_0x2101('0x63')]||this[_0x2101('0x23')][_0x2101('0xd9')][_0x2101('0x65')]('Users')['me']['id'],_0xbef506=_0x313c2d['targetPosition'][_0x2101('0x9')],_0x5b0470=_0x313c2d['sourcePosition'][_0x2101('0x9')],_0x22a049=_0xbef506[_0x2101('0x58')](_0x2101('0x4')),_0x2b446c=_0x5b0470[_0x2101('0x58')](_0x2101('0x26'));_0xbef506[_0x2101('0x90')](_0x2101('0x4'),_0x5b0470[_0x2101('0x58')](_0x2101('0x4'))),_0x5b0470[_0x2101('0x90')](_0x2101('0x4'),_0x22a049),this['_touched']['set'](_0x2b446c,{'userId':_0x223fd6}),this[_0x2101('0x47')]['set'](_0x22a049,{'userId':_0x223fd6}),_0x313c2d[_0x2101('0xfb')]();}[_0x2101('0x44')](_0x220457){const _0x11f5c5=null===(_0x220457=this[_0x2101('0xc3')](_0x220457,this[_0x2101('0x1')]))['_authorId']?null:_0x220457[_0x2101('0x63')]||this[_0x2101('0x23')]['plugins'][_0x2101('0x65')]('Users')['me']['id'],_0x3ace02=_0x220457['graveyardPosition'],_0x1259c5=_0x220457['splitPosition']['parent'];_0x220457[_0x2101('0xfb')]();const _0x20e4ba=_0x1259c5[_0x2101('0x58')](_0x2101('0x4')),_0x1ad357=_0x220457['insertionPosition'][_0x2101('0xde')];if(_0x3ace02){const _0x10f811=_0x1ad357[_0x2101('0x58')](_0x2101('0x4')),_0x28681d=_0x1259c5[_0x2101('0x58')](_0x2101('0x4'));_0x1259c5[_0x2101('0x90')]('vid_end',_0x10f811),_0x1ad357[_0x2101('0x90')](_0x2101('0x4'),_0x28681d),this[_0x2101('0x47')][_0x2101('0x1b')](_0x1259c5['getAttribute'](_0x2101('0x4')),{'userId':_0x11f5c5}),this['_touched']['set'](_0x1ad357[_0x2101('0x58')](_0x2101('0x26')),{'userId':_0x11f5c5});}else{const _0x201ca8=this[_0x2101('0x1e')]++,_0x436eac=this[_0x2101('0x1e')]++;_0x1259c5['_setAttribute']('vid_end',_0x201ca8),_0x1ad357[_0x2101('0x90')]('vid_start',_0x436eac),_0x1ad357[_0x2101('0x90')](_0x2101('0x4'),_0x20e4ba),this[_0x2101('0x47')][_0x2101('0x1b')](_0x201ca8,{'userId':_0x11f5c5}),this[_0x2101('0x47')][_0x2101('0x1b')](_0x436eac,{'userId':_0x11f5c5});}}[_0x2101('0x78')](_0x5a74fc){if(!_0x5a74fc[_0x2101('0x35')])return;const _0x4058e8=(_0x5a74fc=this[_0x2101('0xc3')](_0x5a74fc,this[_0x2101('0x8b')]))[_0x2101('0x5e')]?_0x5a74fc[_0x2101('0x5e')]['root']:null,_0x325a02=_0x5a74fc[_0x2101('0xa6')]?_0x5a74fc['newRange'][_0x2101('0x49')]:null;_0x4058e8&&this['_markers'][_0x2101('0x8d')](_0x5a74fc[_0x2101('0x51')]),_0x325a02&&this['_markers'][_0x2101('0x1b')](_0x5a74fc[_0x2101('0x51')],_0x5a74fc[_0x2101('0xa6')]['clone']());const _0x42e068=null===_0x5a74fc['_authorId']?null:_0x5a74fc[_0x2101('0x63')]||this[_0x2101('0x23')]['plugins'][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0x50ea85=_0x5a74fc['name'];if(!this[_0x2101('0x80')][_0x2101('0x103')](_0x50ea85))return void this[_0x2101('0x80')]['set'](_0x50ea85,{'range':_0x5a74fc['oldRange'],'userId':_0x42e068});const _0x459459=this[_0x2101('0x80')][_0x2101('0x65')](_0x50ea85),_0xde8b5a=_0x459459[_0x2101('0xa4')],_0x225ef8=_0x5a74fc[_0x2101('0xa6')];null==_0xde8b5a&&null==_0x225ef8||_0xde8b5a&&_0x225ef8&&_0xde8b5a[_0x2101('0xe7')](_0x225ef8)?this[_0x2101('0x80')][_0x2101('0x8d')](_0x5a74fc[_0x2101('0x51')]):_0x459459[_0x2101('0x43')]=_0x42e068;}[_0x2101('0xd6')](_0x21b17e,_0x2e4de7){this[_0x2101('0x8b')][_0x2101('0x103')](_0x21b17e[_0x2101('0xd4')])?this[_0x2101('0x8b')][_0x2101('0x65')](_0x21b17e[_0x2101('0xd4')])[_0x2101('0xf1')]=_0x21b17e[_0x2101('0xab')]:(this[_0x2101('0x8b')]['set'](_0x21b17e[_0x2101('0xd4')],G(_0x21b17e[_0x2101('0xd4')],!0x0)),this[_0x2101('0x54')][_0x2101('0x1b')](_0x21b17e['rootName'],{}),_0x2e4de7&&this[_0x2101('0x1')]['set'](_0x21b17e[_0x2101('0xd4')],G(_0x21b17e[_0x2101('0xd4')],!0x0)));const _0x4026d1=null===_0x21b17e[_0x2101('0x63')]?null:_0x21b17e[_0x2101('0x63')]||this['editor'][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0x227ac4=this[_0x2101('0x66')][_0x2101('0x65')](_0x21b17e[_0x2101('0xd4')]);_0x227ac4&&_0x227ac4['userId']===_0x4026d1?this[_0x2101('0x66')]['delete'](_0x21b17e['rootName']):this[_0x2101('0x66')][_0x2101('0x1b')](_0x21b17e[_0x2101('0xd4')],{'userId':_0x4026d1,'isAttached':_0x21b17e[_0x2101('0xab')]});}[_0x2101('0x21')](_0x2d51b3){const _0x4e9260=this[_0x2101('0x54')][_0x2101('0x65')](_0x2d51b3['root'][_0x2101('0xd4')]);null===_0x2d51b3[_0x2101('0x1c')]?delete _0x4e9260[_0x2d51b3[_0x2101('0x7e')]]:_0x4e9260[_0x2d51b3[_0x2101('0x7e')]]=_0x2d51b3['newValue'];}}function q(_0x1a2609){const _0x431ee9=G(_0x1a2609[_0x2101('0xd4')],_0x1a2609[_0x2101('0xf8')]());for(const _0x4784b5 of _0x1a2609[_0x2101('0xd0')]()){const _0x58072f=_0x4784b5[_0x2101('0x37')](!0x0);_0x431ee9[_0x2101('0xfc')](_0x58072f);}return _0x431ee9;}function G(_0x1f942e,_0x1b325f=!0x0){const _0x1ac6ec=new _0x4ab913();return _0x1ac6ec[_0x2101('0xd4')]=_0x1f942e,_0x1ac6ec[_0x2101('0xf1')]=_0x1b325f,_0x1ac6ec[_0x2101('0xf8')]=()=>_0x1ac6ec[_0x2101('0xf1')],_0x1ac6ec;}function L(_0x40c690,_0xa8abb9,_0x104834){const _0x8ec916=_0x2101('0x70')==_0x40c690[_0x2101('0xc0')]?_0x104834[_0x2101('0x81')](_0x40c690[_0x2101('0xe')],'end'):_0x104834[_0x2101('0x4a')](_0x40c690['item']);return _0x104834[_0x2101('0xb9')](_0xa8abb9,_0x8ec916['path'],_0x8ec916[_0x2101('0x0')]);}function W(_0x2fe149,_0x1c5f14,_0x11d6fb){const _0x83f1dd=_0x2101('0x6e')==_0x2fe149[_0x2101('0xc0')]?_0x11d6fb['createPositionAt'](_0x2fe149[_0x2101('0xe')],0x0):_0x11d6fb['createPositionAfter'](_0x2fe149['item']);return _0x11d6fb['createPositionFromPath'](_0x1c5f14,_0x83f1dd[_0x2101('0x82')],_0x83f1dd[_0x2101('0x0')]);}
|
|
23
|
+
const _0x3d54=['authorsIds','insert','_lastTo','_bufferedUpdates','_removePendingAction','newRange','has','_startingVersion','_copyMarkers','_saveMetaData','_removeMetaData','_diffRoots','default','conversion','item','find','_getState','buildRevisionData','_makeRevision','getNodeByPath','data-revision-','slice','reinsert','currentRevision','getAttribute','_handleSplitOperation','_insertChild','_findInsertionIndex','_bufferUpdate','stringify','getRevisionDocumentData','_execute','isAdd','addRevisionData','creatorId','_isAttached','_addPendingAction','_markers','_operations','data','requires','_cloneOperation','PENDING_ACTION_REVISION_HISTORY','getRevisions','add','key','startsWith','documentFragment','merge','getMovedRangeStart','_getVidAttributeName','getRoot','_makeIdsRoot','sourcePosition','reverse','start','createdAt','repository','fromVersion','elementEnd','_lastFrom','isReady','size','setRevisionData','deletions','oldRange','isAttached','createPositionAt','afterInit','_applyOperations','getChild','createPositionFromPath','_diffRootsAttributes','attributes','getAttributes','getChildren','locale','previousPosition','revision:','_handleRootOperation','plugins','shift','vid_end','toView','_getBaseVids','get','_source','getWalker','version','RevisionsRepository','elementStart','getUser','diffData','reInit','revisionHistory.resumeUnsavedRevision','delete','$graveyard','$text','userId','_idsRoots','_handleMarkerOperation','dataToMarker','_baseRootsAttributes','rootName','_loadedStateData','hasContent','_continueCurrentRevision','for','isEnabled','config','string','split','_appendChild','_initialRevisionId','roots','offset','initialData','_setAttribute','toVersion','keys','adapter','getData','rootsAttributes','push','source','Users','from','attributesBefore','splitPosition','_update','parent','getCurrentRevisionId','_createFromRanges','_makeModelFromViewString','_baseRoots','NEGATIVE_INFINITY','newValue','nodeAfter','position','addRevision','element','_removeRevisionMarkers','dataDowncast','PendingActions','_getViewJson','_fixOperation','isEqual','_revisionDataBuilder','insertions','detachRoot','_createCurrentRevision','keepParagraph','_setConversion','root','attachChange','tableCell','_fixRange','max','_handleRootAttributeOperation','editor-initial-data-replaced-with-revision-data','insertionPosition','editing','_fixPosition','_replaceEditorDataWithRevisionData','model','_revisionId','markers','paragraph','getRevision','_handleInsertOperation','map','_loadState','targetPosition','_pendingAction','sendBufferedUpdates','_isInit','vid','collaboration.channelId','some','pluginName','marker','_generateTape','revision-start','_baseIdsRoots','text','includes','path','document','_handleMergeOperation','view','_markChanges','_handleMoveOperation','clone','useFillerType','revision-end','baseVersion','vid_start','define','length','_calculateMetaData','set','addRoot','_touchedMarkers','trim','graveyardPosition','_startingRevisionId','sort','_transformMarkers','history','affectsData','then','attributesAfter','createRange','nodes','_createInitialRevision','getRange','name','authors','values','offsetSize','_handleOperation','_prepareViewToSave','end','_reset','_getPreviousFrom','_authorId','stickiness','getIndex','insertion','getOperation','getLatestVersion','_savedMetaData','addRootAttribute','RevisionTracker','creator','_processRootBeforeSave','updateRevisions','marked','_touched','init','editor','_loadRevisionData','getTransformedByOperation','processor','_touchedRoots','getRootNames','resolve','parse','children','createPositionAfter','loadState','_isPendingUpdate','bind','type','childCount','filter','clear','createRangeIn','Initial\x20revision'];(function(_0x2a0605,_0x3d546d){const _0xfe7256=function(_0x628e81){while(--_0x628e81){_0x2a0605['push'](_0x2a0605['shift']());}};_0xfe7256(++_0x3d546d);}(_0x3d54,0x114));const _0xfe72=function(_0x2a0605,_0x3d546d){_0x2a0605=_0x2a0605-0x0;let _0xfe7256=_0x3d54[_0x2a0605];return _0xfe7256;};import{Users as _0x1977ee}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x402179,PendingActions as _0x5c39b1}from'ckeditor5/src/core';import{logWarning as _0x1dcad3,uid as _0x3c875c}from'ckeditor5/src/utils';import{Position as _0x26c75c,Range as _0x51d541,Element as _0x4c8f5c,DocumentFragment as _0x1a79ff,ViewText as _0x1a62a5,ViewElement as _0x4ec8b4,ViewContainerElement as _0x1b08fe,ViewAttributeElement as _0x21515c,ViewEmptyElement as _0x45a908,ViewRawElement as _0x350a07,ViewUIElement as _0x5ea3a7,ViewDocumentFragment as _0x2bd9bd}from'ckeditor5/src/engine';import _0x1c6b73 from'./revisionsrepository';import{getTranslation as _0x540fbf}from'./utils/common-translations';import{cloneDeep as _0x477f3a,isEqual as _0x565350}from'lodash-es';const B={'c':_0x1b08fe,'a':_0x21515c,'e':_0x45a908,'r':_0x350a07,'u':_0x5ea3a7};export default class l extends _0x402179{static get[_0xfe72('0xa2')](){return _0xfe72('0xd8');}static get[_0xfe72('0x17')](){return[_0x1977ee,_0x1c6b73,_0x5c39b1];}constructor(_0x6e1ec0){super(_0x6e1ec0),this[_0xfe72('0x67')]=null,this['currentRevision']=null,this['_revisionDataBuilder']=new H(this[_0xfe72('0xdf')]),this[_0xfe72('0x60')]=this[_0xfe72('0xdf')][_0xfe72('0x5c')][_0xfe72('0x44')](_0xfe72('0xa0'))||'initial',this[_0xfe72('0xf5')]=new Map(),this[_0xfe72('0x57')]=null;const _0x14778a=_0x3c875c();this['_source']={'history':this[_0xfe72('0xdf')][_0xfe72('0x93')][_0xfe72('0xaa')][_0xfe72('0xbf')],'getLatestVersion':()=>Promise['resolve'](this[_0xfe72('0xdf')][_0xfe72('0x93')]['document'][_0xfe72('0x47')]),'getCurrentRevisionId':()=>_0x14778a},this[_0xfe72('0xb7')](_0xfe72('0x2c'),!0x1),this[_0xfe72('0xb7')](_0xfe72('0x5b'),!0x0),this[_0xfe72('0xb7')](_0xfe72('0xea'),!0x1),this[_0xfe72('0xdf')][_0xfe72('0x5c')][_0xfe72('0xb4')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0xfe72('0xdf')][_0xfe72('0xff')][_0xfe72('0x5a')]('upcast')[_0xfe72('0x54')]({'view':'revision'});}['init'](){this[_0xfe72('0x28')]=this[_0xfe72('0xdf')][_0xfe72('0x3f')][_0xfe72('0x44')](_0xfe72('0x48')),this['_setConversion'](),this[_0xfe72('0xdf')]['data']['on']('ready',()=>{const _0x1dbf8b=this[_0xfe72('0x28')][_0xfe72('0x97')](0x0),_0x4f3e05=_0x1dbf8b&&null===_0x1dbf8b['creator']?_0x1dbf8b:null;if(this[_0xfe72('0x59')]=!!_0x4f3e05&&this[_0xfe72('0xdf')][_0xfe72('0x5c')][_0xfe72('0x44')](_0xfe72('0x4d')),this[_0xfe72('0xdf')]['plugins']['has']('RealTimeCollaborationClient')){const _0x479abf=this[_0xfe72('0x45')][_0xfe72('0x72')](),_0x5bf40d=this[_0xfe72('0x28')][_0xfe72('0x97')](_0x479abf);if(_0x5bf40d)this['_startingVersion']=_0x5bf40d[_0xfe72('0x29')],this[_0xfe72('0x59')]=!0x1;else{const _0x1b158a=this['_source']['history'][_0xfe72('0x15')][_0xfe72('0x101')](_0x5e1515=>!_0x5e1515[_0xfe72('0x9e')]),_0x4971d9=_0x1b158a?_0x1b158a['baseVersion']:this[_0xfe72('0x45')][_0xfe72('0xbf')][_0xfe72('0x47')];_0x1dbf8b?(_0x1dbf8b['toVersion']<_0x4971d9&&_0x1dbf8b['_update']({'toVersion':_0x4971d9}),this[_0xfe72('0x59')]?(this[_0xfe72('0x45')][_0xfe72('0x72')]=()=>_0x4f3e05['id'],this[_0xfe72('0xf9')]=_0x4f3e05[_0xfe72('0x29')]):(this[_0xfe72('0xf9')]=_0x1dbf8b[_0xfe72('0x65')],this[_0xfe72('0x59')]=!0x1)):(this[_0xfe72('0xf9')]=_0x4971d9,this[_0xfe72('0x59')]=!0x1);}}else _0x4f3e05&&(this[_0xfe72('0xdf')][_0xfe72('0x93')][_0xfe72('0xaa')][_0xfe72('0xbf')][_0xfe72('0x47')]=Math[_0xfe72('0x8c')](_0x4f3e05[_0xfe72('0x65')],this[_0xfe72('0xdf')]['model']['document'][_0xfe72('0xbf')][_0xfe72('0x47')]),_0x4f3e05[_0xfe72('0x29')]===_0x4f3e05[_0xfe72('0x65')]?(0x0!==_0x4f3e05[_0xfe72('0x29')]&&(this['_source'][_0xfe72('0x72')]=()=>_0x4f3e05['id']),this[_0xfe72('0x59')]=!0x1):this[_0xfe72('0x59')]&&(this['_source'][_0xfe72('0x72')]=()=>_0x4f3e05['id'],this['_startingVersion']=_0x4f3e05[_0xfe72('0x29')])),this[_0xfe72('0x59')]||(this[_0xfe72('0xf9')]=this[_0xfe72('0xdf')][_0xfe72('0x93')]['document'][_0xfe72('0x47')]);this[_0xfe72('0x82')][_0xfe72('0xde')](this[_0xfe72('0x45')][_0xfe72('0xbf')]),this[_0xfe72('0xc5')](this[_0xfe72('0xf9')]),this[_0xfe72('0x85')](this['_startingVersion']),this[_0xfe72('0x67')]&&this[_0xfe72('0x9d')]();}),this[_0xfe72('0xeb')](_0xfe72('0x2c'))['to'](this,_0xfe72('0xea'),_0x5a9874=>!_0x5a9874);}async[_0xfe72('0x33')](){if(this[_0xfe72('0x28')][_0xfe72('0xb5')]>0x0){const _0x16c8f6=this['repository'][_0xfe72('0x97')](0x0),_0x54991c=await this['getRevisionDocumentData'](_0x16c8f6),_0x116267=await this['getRevisionRootsAttributes'](_0x16c8f6);this[_0xfe72('0x92')](_0x54991c,_0x116267);}}['setSource'](_0x49aecf){this[_0xfe72('0x45')]=_0x49aecf;}async['update'](){const _0x4f410b=await this[_0xfe72('0x45')][_0xfe72('0xd5')]();if(_0x4f410b>this[_0xfe72('0x6')]['toVersion']){await this[_0xfe72('0x9a')]();const _0x2c0d05=this[_0xfe72('0x0')]({'revision':this[_0xfe72('0x6')],'to':_0x4f410b});_0x2c0d05[_0xfe72('0xc8')]=_0x2c0d05['authorsIds'][_0xfe72('0x99')](_0x48d489=>this[_0xfe72('0xdf')][_0xfe72('0x3f')][_0xfe72('0x44')](_0xfe72('0x6c'))[_0xfe72('0x4a')](_0x48d489)),this[_0xfe72('0x6')][_0xfe72('0x70')](_0x2c0d05);}}async[_0xfe72('0x9a')](){this[_0xfe72('0x59')]&&!this[_0xfe72('0x57')]&&(await this[_0xfe72('0xe0')](this[_0xfe72('0x6')]),this[_0xfe72('0x82')][_0xfe72('0xe9')](this[_0xfe72('0x6')]),this[_0xfe72('0x57')]={'fromVersion':this[_0xfe72('0x6')][_0xfe72('0x29')],'authors':this[_0xfe72('0x6')][_0xfe72('0xc8')]['slice']()});}async['saveRevision'](_0xef5989={},_0x22005f=null){const _0x29f60a=[];await this['_loadState'](),this[_0xfe72('0x59')]=!0x1,_0x22005f>this[_0xfe72('0x6')]['toVersion']&&(_0x22005f=null),null===_0x22005f&&(_0x22005f=await this['_source'][_0xfe72('0xd5')]());const _0x51073c=this['_getFromVersion'](_0x22005f),_0x3a9992=this[_0xfe72('0x0')]({'from':_0x51073c,'to':_0x22005f});if(this[_0xfe72('0x6')]['toVersion']<_0x22005f){const _0x25e43d=this['buildRevisionData']({'revision':this[_0xfe72('0x6')],'from':_0x22005f,'to':_0x22005f});_0x25e43d[_0xfe72('0xc8')]=[],_0x25e43d['authorsIds']=[],_0x25e43d['id']=this['currentRevision']['id'],this[_0xfe72('0x6')]['_update'](_0x25e43d,!0x0),delete _0x25e43d['authors'],_0x29f60a[_0xfe72('0x6a')](_0x25e43d);}_0xef5989[_0xfe72('0x11')]=this[_0xfe72('0xdf')][_0xfe72('0x3f')][_0xfe72('0x44')](_0xfe72('0x6c'))['me']['id'],_0xef5989['name']=_0xef5989[_0xfe72('0xc7')]||null,_0xef5989['id']=_0xef5989['id']||_0x3c875c(),_0xef5989={..._0xef5989,..._0x3a9992};const _0x5c6c4c=this[_0xfe72('0x10')](_0xef5989);_0x29f60a[_0xfe72('0x6a')](_0xef5989);const _0x464ece=this['repository'][_0xfe72('0xd2')](_0x5c6c4c);if(0x0!==_0x464ece){const _0xddc4c8=this[_0xfe72('0x28')]['getRevision'](_0x464ece-0x1);if(_0xddc4c8['fromVersion']!==_0x22005f){const _0x2311ee=this[_0xfe72('0x82')][_0xfe72('0x68')](_0x22005f,_0xddc4c8[_0xfe72('0x65')]),_0x44f10e={'id':_0xddc4c8['id'],'diffData':_0x2311ee[_0xfe72('0x4b')],'authorsIds':_0x2311ee[_0xfe72('0xf2')],'authors':_0x2311ee[_0xfe72('0xf2')][_0xfe72('0x99')](_0x463a3b=>this[_0xfe72('0xdf')][_0xfe72('0x3f')][_0xfe72('0x44')](_0xfe72('0x6c'))[_0xfe72('0x4a')](_0x463a3b)),'fromVersion':_0x22005f};_0xddc4c8===this[_0xfe72('0x6')]&&(_0x44f10e[_0xfe72('0x27')]=new Date(_0xef5989['createdAt']['getTime']()+0xa)),_0xddc4c8[_0xfe72('0x70')](_0x44f10e,!0x0),delete _0x44f10e['authors'],_0x29f60a['push'](_0x44f10e);}}if(this[_0xfe72('0x67')]){for(const _0x508012 of _0x29f60a)this[_0xfe72('0xb')](_0x508012['id'],_0x508012,!0x0);this['sendBufferedUpdates']();}return _0x5c6c4c;}[_0xfe72('0x10')](_0x171dd){const _0x262d47=this[_0xfe72('0x28')]['createRevision'](_0x171dd);return this[_0xfe72('0x67')]&&_0x262d47['on'](_0xfe72('0x70'),(_0x2ff638,_0x511a23,_0x3c6e31)=>{_0x3c6e31||(this['_bufferUpdate'](_0x511a23['id'],_0x511a23,!0x0),this[_0xfe72('0x9d')]());}),this[_0xfe72('0x28')][_0xfe72('0x7a')](_0x262d47,this['_findInsertionIndex'](_0x262d47)),_0x262d47;}async[_0xfe72('0xd')](_0x5268c0){await this[_0xfe72('0xe0')](_0x5268c0);const _0x35acc9={};for(const _0x44d469 in _0x5268c0[_0xfe72('0x4b')]){if(_0x5268c0[_0xfe72('0x4b')][_0x44d469][_0xfe72('0x89')]&&!_0x5268c0[_0xfe72('0x4b')][_0x44d469][_0xfe72('0x89')][_0xfe72('0x31')])continue;const _0x596a9b=this[_0xfe72('0x7c')](JSON[_0xfe72('0xe6')](_0x5268c0[_0xfe72('0x4b')][_0x44d469][_0xfe72('0x83')])),_0x20efa6=this[_0xfe72('0xdf')][_0xfe72('0x90')][_0xfe72('0xac')][_0xfe72('0xaa')],_0x3472ea=new _0x2bd9bd(_0x20efa6,_0x596a9b[_0xfe72('0x99')](_0x5f6965=>J(_0x5f6965,this[_0xfe72('0xdf')])));this['editor'][_0xfe72('0x16')][_0xfe72('0xe2')][_0xfe72('0xb0')](_0xfe72('0xdc')),_0x35acc9[_0x44d469]=this[_0xfe72('0xdf')][_0xfe72('0x16')]['processor']['toData'](_0x3472ea),this[_0xfe72('0xdf')][_0xfe72('0x16')][_0xfe72('0xe2')][_0xfe72('0xb0')](_0xfe72('0xfe'));}return _0x35acc9;}async['getRevisionRootsAttributes'](_0x4de1e9){await this[_0xfe72('0xe0')](_0x4de1e9);const _0x5e6278={};for(const _0x4fc74f in _0x4de1e9[_0xfe72('0x4b')])_0x4de1e9[_0xfe72('0x4b')][_0x4fc74f][_0xfe72('0x89')]&&!_0x4de1e9[_0xfe72('0x4b')][_0x4fc74f]['attachChange'][_0xfe72('0x31')]||(_0x5e6278[_0x4fc74f]=_0x4de1e9[_0xfe72('0x4b')][_0x4fc74f]['attributesAfter']||{});return _0x5e6278;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates'][_0xfe72('0x2d')])return;if(this[_0xfe72('0xea')])return;let _0x2937ec=Array[_0xfe72('0x6d')](this[_0xfe72('0xf5')][_0xfe72('0xc9')]());this[_0xfe72('0xf5')][_0xfe72('0xef')]();for(let _0x4ff2a0=0x0;_0x4ff2a0<_0x2937ec[_0xfe72('0xb5')];_0x4ff2a0++){const _0x4687f5=_0x2937ec[_0x4ff2a0];let _0x131fca=!0x1;for(const _0x2769c5 of Object[_0xfe72('0x66')](_0x4687f5))void 0x0===_0x4687f5[_0x2769c5]?delete _0x4687f5[_0x2769c5]:'id'!==_0x2769c5&&(_0x131fca=!0x0);_0x131fca||(_0x2937ec[_0x4ff2a0]=null);}if(_0x2937ec=_0x2937ec[_0xfe72('0xee')](_0x16de8a=>null!==_0x16de8a),!_0x2937ec['length'])return;for(let _0x54fac7=0x0;_0x54fac7<_0x2937ec[_0xfe72('0xb5')];_0x54fac7++){const _0x238899=_0x2937ec[_0x54fac7];void 0x0!==_0x238899[_0xfe72('0x29')]&&void 0x0===_0x238899[_0xfe72('0x65')]&&(_0x238899[_0xfe72('0x65')]=this[_0xfe72('0x28')][_0xfe72('0x97')](_0x238899['id'])['toVersion']),void 0x0!==_0x238899[_0xfe72('0x65')]&&void 0x0===_0x238899['fromVersion']&&(_0x238899[_0xfe72('0x29')]=this[_0xfe72('0x28')][_0xfe72('0x97')](_0x238899['id'])[_0xfe72('0x29')]);}const _0x1fbce0=this[_0xfe72('0xdf')][_0xfe72('0x5c')]['get'](_0xfe72('0xa0'));this['_isPendingUpdate']=!0x0,this[_0xfe72('0x13')](),this['adapter'][_0xfe72('0xdb')](_0x2937ec,_0x1fbce0)['finally'](()=>{this['_isPendingUpdate']=!0x1;})[_0xfe72('0xc1')](_0xed0016=>{if(_0xed0016)for(const _0x34dacd of _0xed0016)this['setRevisionData']({'id':_0x34dacd['id'],'createdAt':_0x34dacd[_0xfe72('0x27')]});this[_0xfe72('0xf6')](),this[_0xfe72('0x9d')]();});}[_0xfe72('0x92')](_0x82e871,_0x143664){let _0x25a0ad=this[_0xfe72('0xdf')][_0xfe72('0x5c')]['get'](_0xfe72('0x63')),_0x4bc47f=this[_0xfe72('0xdf')]['config'][_0xfe72('0x44')](_0xfe72('0x69'));if(void 0x0===_0x25a0ad){_0x25a0ad={};for(const _0x21d617 of this[_0xfe72('0xdf')][_0xfe72('0x93')][_0xfe72('0xaa')][_0xfe72('0xe4')]())_0x25a0ad[_0x21d617]='';}if(_0xfe72('0x5d')==typeof _0x25a0ad&&(_0x25a0ad={'main':_0x25a0ad}),void 0x0===_0x4bc47f){_0x4bc47f={};for(const _0x17703c of this[_0xfe72('0xdf')][_0xfe72('0x93')]['document']['getRootNames']())_0x4bc47f[_0x17703c]={};}let _0x353a27=!0x1;const _0x4a139b=Object['keys'](_0x25a0ad),_0x566ee7=Object[_0xfe72('0x66')](_0x82e871);for(const _0x5222a1 of _0x4a139b){if(_0x25a0ad[_0x5222a1]!==_0x82e871[_0x5222a1]&&''!==_0x25a0ad[_0x5222a1][_0xfe72('0xba')]()){_0x353a27=!0x0;break;}if(!_0x565350(_0x4bc47f[_0x5222a1],_0x143664[_0x5222a1])&&Object[_0xfe72('0x66')](_0x4bc47f[_0x5222a1])[_0xfe72('0xb5')]>0x0){_0x353a27=!0x0;break;}}_0x353a27||(_0x353a27=_0x566ee7[_0xfe72('0xa1')](_0x1a7bae=>!this[_0xfe72('0xdf')][_0xfe72('0x93')]['document']['getRoot'](_0x1a7bae))),_0x353a27&&_0x1dcad3(_0xfe72('0x8e'),{'editorData':_0x25a0ad,'editorRootsAttributes':_0x4bc47f,'revisionData':_0x82e871,'revisionRootsAttributes':_0x143664}),this[_0xfe72('0xdf')][_0xfe72('0x5c')][_0xfe72('0xb7')](_0xfe72('0x63'),_0x82e871),this[_0xfe72('0xdf')][_0xfe72('0x5c')][_0xfe72('0xb7')](_0xfe72('0x69'),_0x143664);}[_0xfe72('0x13')](){if(!this['_pendingAction']){const _0x45a2b6=this['editor'][_0xfe72('0x3f')][_0xfe72('0x44')](_0xfe72('0x7e'));this['_pendingAction']=_0x45a2b6[_0xfe72('0x1b')](_0x540fbf(this[_0xfe72('0xdf')]['locale'],_0xfe72('0x19')));}}[_0xfe72('0xf6')](){this[_0xfe72('0x9c')]&&(this[_0xfe72('0xdf')]['plugins'][_0xfe72('0x44')](_0xfe72('0x7e'))['remove'](this[_0xfe72('0x9c')]),this[_0xfe72('0x9c')]=null);}[_0xfe72('0xa')](_0x5b13f5){const _0x55c46a=this['repository'][_0xfe72('0x1a')]();_0x55c46a[_0xfe72('0x25')]();let _0x47c02c=0x0;for(;_0x47c02c<_0x55c46a['length'];){const _0x263d5f=_0x55c46a[_0x47c02c];if(_0x263d5f===this['currentRevision']){_0x47c02c++;continue;}if(_0x263d5f['id']===this[_0xfe72('0x60')])break;const _0x59d3b8=_0x5b13f5[_0xfe72('0x65')]-_0x263d5f[_0xfe72('0x65')]||_0x5b13f5['fromVersion']-_0x263d5f[_0xfe72('0x29')];if(_0x59d3b8>0x0)break;if(_0x59d3b8<0x0)_0x47c02c++;else{if(!_0x5b13f5['creator']&&_0x263d5f['creator'])break;if(_0x263d5f[_0xfe72('0xd9')]||!_0x5b13f5[_0xfe72('0xd9')]){if(_0x5b13f5[_0xfe72('0x27')]>_0x263d5f[_0xfe72('0x27')])break;_0x47c02c++;}else _0x47c02c++;}}return _0x47c02c;}[_0xfe72('0x2e')](_0x13ac21){const _0x568031=this[_0xfe72('0x28')][_0xfe72('0x97')](_0x13ac21['id']);if(_0x13ac21[_0xfe72('0x27')]&&(_0x13ac21['createdAt']=new Date(_0x13ac21[_0xfe72('0x27')])),_0x13ac21['authorsIds']){const _0x53a288=this[_0xfe72('0xdf')][_0xfe72('0x3f')][_0xfe72('0x44')]('Users');_0x13ac21[_0xfe72('0xc8')]=_0x13ac21[_0xfe72('0xf2')][_0xfe72('0x99')](_0x16152a=>_0x53a288[_0xfe72('0x4a')](_0x16152a));}_0x568031[_0xfe72('0x70')](_0x13ac21,!0x0);}[_0xfe72('0x0')]({revision:_0x30ca8c=null,from:_0x1e657d=null,to:_0x52678b=null}){_0x1e657d=null!==_0x1e657d?_0x1e657d:_0x30ca8c[_0xfe72('0x29')],_0x52678b=null!==_0x52678b?_0x52678b:_0x30ca8c[_0xfe72('0x65')];const _0x174543=this[_0xfe72('0x82')][_0xfe72('0x68')](_0x1e657d,_0x52678b),_0x3ee9cc={'diffData':_0x174543['diffData'],'authorsIds':_0x174543[_0xfe72('0xf2')],'fromVersion':_0x1e657d,'toVersion':_0x52678b};if(!_0x30ca8c||_0x52678b!==_0x30ca8c['toVersion']){const _0x55291e=_0x52678b-0x1,_0x2acae2=this[_0xfe72('0x45')][_0xfe72('0xbf')][_0xfe72('0xd4')](_0x55291e);_0x3ee9cc[_0xfe72('0x27')]=_0x2acae2&&_0x2acae2[_0xfe72('0x27')]||new Date();}if(this['_loadedStateData']&&_0x1e657d===this[_0xfe72('0x57')]['fromVersion'])for(const _0x55bc6a of this[_0xfe72('0x57')]['authors'])_0x3ee9cc[_0xfe72('0xf2')][_0xfe72('0xa8')](_0x55bc6a['id'])||_0x3ee9cc[_0xfe72('0xf2')][_0xfe72('0x6a')](_0x55bc6a['id']);return _0x3ee9cc;}['_loadRevisionData'](_0x75d022){if(!_0x75d022||_0x75d022[_0xfe72('0x4b')])return Promise[_0xfe72('0xe5')]();{const _0x388c5e=this['editor'][_0xfe72('0x5c')][_0xfe72('0x44')]('collaboration.channelId');return this['adapter'][_0xfe72('0x97')]({'channelId':_0x388c5e,'revisionId':_0x75d022['id']})['then'](_0x40e9ab=>{_0x75d022[_0xfe72('0x4b')]=_0x40e9ab[_0xfe72('0x4b')];});}}['_bufferUpdate'](_0x52983d,_0x2e19fc,_0x233e0c){if(this[_0xfe72('0xf5')][_0xfe72('0xf8')](_0x52983d)){const _0x486b92=this[_0xfe72('0xf5')][_0xfe72('0x44')](_0x52983d);_0x2e19fc=_0x233e0c?{..._0x486b92,..._0x2e19fc}:{..._0x2e19fc,..._0x486b92};}this[_0xfe72('0xf5')][_0xfe72('0xb7')](_0x52983d,_0x2e19fc);}['_getFromVersion'](_0x774e20){const _0x18e9ac=this[_0xfe72('0x28')][_0xfe72('0x1a')]();_0x18e9ac[_0xfe72('0x25')](),_0x18e9ac[_0xfe72('0x40')]();const _0x30488e=_0x18e9ac['find'](_0x586043=>_0x586043[_0xfe72('0x65')]<=_0x774e20)[_0xfe72('0x65')];return _0x30488e<this[_0xfe72('0xf9')]?this[_0xfe72('0xf9')]:_0x30488e;}[_0xfe72('0xc5')](_0x387a0f){const _0x4a9394=this[_0xfe72('0x28')][_0xfe72('0x97')](this[_0xfe72('0x28')]['length']-0x1);if(_0x4a9394)this['_initialRevisionId']=_0x4a9394['id'];else{const _0x49a972=!this[_0xfe72('0xdf')][_0xfe72('0x93')][_0xfe72('0xaa')][_0xfe72('0x61')][_0xfe72('0x101')](_0x5e6cdf=>this[_0xfe72('0xdf')][_0xfe72('0x93')][_0xfe72('0x58')](_0x5e6cdf)),_0x3e5b66=this[_0xfe72('0xdf')][_0xfe72('0x3f')]['get']('Users')['me']['id'],_0x2b3d0e=_0x540fbf(this[_0xfe72('0xdf')][_0xfe72('0x3b')],_0x49a972?'Empty\x20document':_0xfe72('0xf1'));this[_0xfe72('0x1')]({'from':_0x387a0f,'to':_0x387a0f,'id':this['_initialRevisionId'],'name':_0x2b3d0e,'creatorId':_0x3e5b66});}}[_0xfe72('0x85')](_0x3d8598){const _0x3fc71c=this['_source'][_0xfe72('0x72')]();this[_0xfe72('0x6')]=this[_0xfe72('0x28')][_0xfe72('0x97')](_0x3fc71c),this[_0xfe72('0x6')]||(this[_0xfe72('0x6')]=this[_0xfe72('0x1')]({'from':_0x3d8598,'to':_0x3d8598,'id':_0x3fc71c,'name':'','creatorId':null}));}[_0xfe72('0x1')]({name:_0x209161,from:_0x1d4dc5,to:_0x510989,creatorId:_0x670d42,id:_0x269268}){const _0x4ab5be=this[_0xfe72('0x0')]({'from':_0x1d4dc5,'to':_0x510989});_0x4ab5be[_0xfe72('0xc7')]=_0x209161,_0x4ab5be['creatorId']=_0x670d42,_0x4ab5be['id']=_0x269268;const _0x433d08=this[_0xfe72('0x10')](_0x4ab5be);return this[_0xfe72('0x67')]&&this[_0xfe72('0xb')](_0x4ab5be['id'],_0x4ab5be,!0x0),_0x433d08;}[_0xfe72('0x87')](){this[_0xfe72('0xdf')]['conversion'][_0xfe72('0x5a')](_0xfe72('0x7d'))['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4ffa69){return(_0x4ffa69=_0x4ffa69[_0xfe72('0xee')](_0x2f810d=>!_0x2f810d['name']||_0xfe72('0xa5')!==_0x2f810d[_0xfe72('0xc7')]&&_0xfe72('0xb1')!==_0x2f810d[_0xfe72('0xc7')]))['forEach'](_0x1a3f55=>{'string'!=typeof _0x1a3f55&&(_0x1a3f55[_0xfe72('0xe7')]=this['_removeRevisionMarkers'](_0x1a3f55['children']),_0x1a3f55['attributes']=_0x1a3f55[_0xfe72('0x38')]['filter'](_0x479838=>!_0x479838[0x0]['startsWith'](_0xfe72('0x3'))));}),_0x4ffa69;}}function J(_0x3000e5,_0x346563){const _0x4a9f52=_0x346563[_0xfe72('0x90')][_0xfe72('0xac')][_0xfe72('0xaa')];if(_0xfe72('0x5d')==typeof _0x3000e5)return new _0x1a62a5(_0x4a9f52,_0x3000e5);{const _0x29e40e=_0x3000e5[_0xfe72('0xe7')][_0xfe72('0x99')](_0x388c07=>J(_0x388c07,_0x346563));return new(B[_0x3000e5[(_0xfe72('0xec'))]]||_0x4ec8b4)(_0x4a9f52,_0x3000e5[_0xfe72('0xc7')],_0x3000e5[_0xfe72('0x38')],_0x29e40e);}}class H{constructor(_0x2030e2){this[_0xfe72('0xdf')]=_0x2030e2,this['_savedMetaData']=new Map(),this[_0xfe72('0x2b')]=-0x1,this[_0xfe72('0xf4')]=-0x1,this[_0xfe72('0x14')]=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this[_0xfe72('0x75')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0xfe72('0x52')]=new Map(),this[_0xfe72('0xa6')]=new Map(),this[_0xfe72('0xdd')]=new Map(),this['_touchedMarkers']=new Map(),this[_0xfe72('0xe3')]=new Map(),this[_0xfe72('0x94')]=0x1;}['init'](_0xb14acf){this[_0xfe72('0x6b')]=_0xb14acf;const _0x279670=new Map(),_0x456818=new Map(),_0x42132c=this['editor'][_0xfe72('0x93')][_0xfe72('0xaa')][_0xfe72('0x61')][_0xfe72('0x99')](_0x46c58f=>_0x46c58f[_0xfe72('0x56')]);for(const _0x288489 of _0x42132c){const _0x933a41=this[_0xfe72('0xdf')][_0xfe72('0x93')][_0xfe72('0xaa')][_0xfe72('0x22')](_0x288489),_0x2ee51c=q(_0x933a41);_0x279670[_0xfe72('0xb7')](_0x288489,_0x2ee51c),_0x456818[_0xfe72('0xb7')](_0x288489,Object['fromEntries'](_0x933a41[_0xfe72('0x39')]()));}const _0x5d561e=Array[_0xfe72('0x6d')](this[_0xfe72('0xdf')][_0xfe72('0x93')]['markers'])[_0xfe72('0x99')](_0x4e55b1=>[_0x4e55b1['name'],_0x4e55b1[_0xfe72('0xc6')]()]),_0x5e7c1d=this[_0xfe72('0x6b')][_0xfe72('0x47')];this[_0xfe72('0xfb')](_0x5e7c1d,_0x279670,_0x5d561e,_0x456818),this[_0xfe72('0xbc')]=this['_revisionId'];const _0x446ad2=new Map(),_0x3293ab=new Map();for(const _0xd553b3 of _0x42132c){const _0x5e0c54=G(_0xd553b3);_0x446ad2[_0xfe72('0xb7')](_0xd553b3,_0x5e0c54),_0x3293ab[_0xfe72('0xb7')](_0xd553b3,{});}this[_0xfe72('0xfb')](Number[_0xfe72('0x76')],_0x446ad2,[],_0x3293ab);}['getData'](_0x2984d7,_0x31fed1){if(this[_0xfe72('0x2b')]===_0x2984d7&&this[_0xfe72('0xf4')]<=_0x31fed1)this[_0xfe72('0xd6')][_0xfe72('0x2d')]>0x1&&this[_0xfe72('0xfc')](this[_0xfe72('0xf4')]),this[_0xfe72('0x34')](this[_0xfe72('0xf4')],_0x31fed1,!0x0);else{if(!this[_0xfe72('0xd6')]['has'](_0x2984d7)){const _0x2dfd1d=this[_0xfe72('0xcf')](_0x2984d7);this['_calculateMetaData'](_0x2dfd1d,_0x2984d7,!0x1);}this[_0xfe72('0xb6')](_0x2984d7,_0x31fed1,!0x0);}return this[_0xfe72('0x2b')]=_0x2984d7,this['_lastTo']=_0x31fed1,this[_0xfe72('0x102')]();}['loadState'](_0x2e5287){this[_0xfe72('0xce')](),this['_lastFrom']=_0x2e5287['fromVersion'],this[_0xfe72('0xf4')]=_0x2e5287[_0xfe72('0x65')];for(const _0x1e01c5 in _0x2e5287['diffData']){const _0x36b855=_0x2e5287[_0xfe72('0x4b')][_0x1e01c5]['attachChange'],_0x41bb81=_0x477f3a(_0x2e5287[_0xfe72('0x4b')][_0x1e01c5][_0xfe72('0x6e')])||{},_0x3ef710=this[_0xfe72('0x74')](_0x2e5287['diffData'][_0x1e01c5][_0xfe72('0x2f')]);_0x3ef710[_0xfe72('0x56')]=_0x1e01c5,_0x3ef710['_isAttached']=!_0x36b855||!_0x36b855[_0xfe72('0x31')],_0x3ef710[_0xfe72('0x31')]=()=>_0x3ef710[_0xfe72('0x12')],this[_0xfe72('0x75')][_0xfe72('0xb7')](_0x1e01c5,_0x3ef710),this['_baseRootsAttributes'][_0xfe72('0xb7')](_0x1e01c5,_0x41bb81),_0x36b855&&this[_0xfe72('0xe3')]['set'](_0x1e01c5,_0x36b855);const _0x59d103=this[_0xfe72('0x23')](_0x3ef710);this[_0xfe72('0xa6')]['set'](_0x1e01c5,_0x59d103);for(const [_0x563889,_0x234f7b]of _0x3ef710[_0xfe72('0x95')]){if(!_0x563889[_0xfe72('0x1d')](_0xfe72('0x3d')))continue;const _0x3656f=_0x563889[_0xfe72('0x5e')](':')[0x2];for(const _0x1059c5 of _0x234f7b[_0xfe72('0x46')]({'singleCharacters':!0x0})){const _0x4b66fb=this[_0xfe72('0x21')](_0x1059c5),_0x184e1e=_0xfe72('0x2a')==_0x1059c5[_0xfe72('0xec')]?_0x1059c5[_0xfe72('0x3c')][_0xfe72('0xa9')]['slice'](0x0,-0x1):_0x1059c5[_0xfe72('0x3c')][_0xfe72('0xa9')],_0xdcac98=_0x59d103[_0xfe72('0x2')](_0x184e1e)['getAttribute'](_0x4b66fb);this['_touched']['set'](_0xdcac98,{'userId':_0x3656f});}}}this['_startingRevisionId']=this[_0xfe72('0x94')];const _0xf624cf=[...Array(this['_revisionId'])[_0xfe72('0x66')]()][_0xfe72('0x4')](0x1)[_0xfe72('0xee')](_0x16c614=>!this['_touched'][_0xfe72('0xf8')](_0x16c614));let _0x539e40=0x0;const _0x2b717a=new Map();for(const _0x790144 in _0x2e5287[_0xfe72('0x4b')]){const _0x16068c=_0x2e5287['diffData'][_0x790144][_0xfe72('0x89')],_0x46a4f4=_0x477f3a(_0x2e5287['diffData'][_0x790144][_0xfe72('0xc2')])||{},_0xc41a60=this[_0xfe72('0x74')](_0x2e5287[_0xfe72('0x4b')][_0x790144][_0xfe72('0x83')]);_0xc41a60[_0xfe72('0x56')]=_0x790144,_0xc41a60[_0xfe72('0x12')]=!_0x16068c||_0x16068c['isAttached'],_0xc41a60['isAttached']=()=>_0xc41a60[_0xfe72('0x12')],this[_0xfe72('0xfd')]['set'](_0x790144,_0xc41a60),this[_0xfe72('0x37')]['set'](_0x790144,_0x46a4f4);const _0x1c8f0d=this[_0xfe72('0x23')](_0xc41a60,Number[_0xfe72('0x76')]);this['_idsRoots']['set'](_0x790144,_0x1c8f0d),_0x2b717a['set'](_0x790144,_0xc41a60[_0xfe72('0x31')]()?_0x46a4f4:{});for(const [_0x432fc3,_0x341efe]of _0xc41a60[_0xfe72('0x95')]){if(!_0x432fc3['startsWith']('revision:'))continue;const _0x238401=_0x432fc3[_0xfe72('0x5e')](':')[0x2];for(const _0x1e0f09 of _0x341efe[_0xfe72('0x46')]({'singleCharacters':!0x0})){const _0xc6e07c=this['_getVidAttributeName'](_0x1e0f09),_0x158ad9=this[_0xfe72('0x94')]++,_0xd0bcef=_0xfe72('0x2a')==_0x1e0f09[_0xfe72('0xec')]?_0x1e0f09[_0xfe72('0x3c')][_0xfe72('0xa9')][_0xfe72('0x4')](0x0,-0x1):_0x1e0f09[_0xfe72('0x3c')][_0xfe72('0xa9')];_0x1c8f0d[_0xfe72('0x2')](_0xd0bcef)['_setAttribute'](_0xc6e07c,_0x158ad9),this[_0xfe72('0xdd')][_0xfe72('0xb7')](_0x158ad9,{'userId':_0x238401});}}for(const _0x583b7c of this[_0xfe72('0xdf')]['model'][_0xfe72('0xf0')](_0xc41a60)[_0xfe72('0x46')]({'singleCharacters':!0x0})){const _0x39c9b2=this[_0xfe72('0x21')](_0x583b7c),_0x5ade01=_0xfe72('0x2a')==_0x583b7c[_0xfe72('0xec')]?_0x583b7c[_0xfe72('0x3c')]['path']['slice'](0x0,-0x1):_0x583b7c[_0xfe72('0x3c')][_0xfe72('0xa9')],_0x22be02=_0x1c8f0d[_0xfe72('0x2')](_0x5ade01);_0x22be02['getAttribute'](_0x39c9b2)>0x0||_0x22be02[_0xfe72('0x64')](_0x39c9b2,_0xf624cf[_0x539e40++]);}for(const [_0x15681d,_0x143fbc]of _0xc41a60[_0xfe72('0x95')])_0x15681d[_0xfe72('0x1d')](_0xfe72('0x3d'))||this['_markers'][_0xfe72('0xb7')](_0x15681d,_0x143fbc);}const _0x20cdf5=G('$graveyard');this['_baseRoots'][_0xfe72('0xb7')](_0xfe72('0x4f'),_0x20cdf5),this['_baseIdsRoots'][_0xfe72('0xb7')](_0xfe72('0x4f'),this[_0xfe72('0x23')](_0x20cdf5,0x1));const _0x24994d=G('$graveyard');this['_diffRoots'][_0xfe72('0xb7')](_0xfe72('0x4f'),_0x24994d),this[_0xfe72('0x52')][_0xfe72('0xb7')](_0xfe72('0x4f'),this['_makeIdsRoot'](_0x24994d,0x1));const _0x11bd40=Array['from'](this[_0xfe72('0xfd')])[_0xfe72('0x99')](([_0x4a9f1d,_0x15191a])=>[_0x4a9f1d,q(_0x15191a)]);this[_0xfe72('0xfb')](this[_0xfe72('0xf4')],_0x11bd40,this[_0xfe72('0x14')],_0x2b717a);}[_0xfe72('0x74')](_0xad8bf6){const _0x47107c=JSON[_0xfe72('0xe6')](_0xad8bf6),_0x29974f=this[_0xfe72('0xdf')][_0xfe72('0x90')][_0xfe72('0xac')][_0xfe72('0xaa')],_0x404cc4=new _0x2bd9bd(_0x29974f,_0x47107c[_0xfe72('0x99')](_0x5cdf46=>J(_0x5cdf46,this[_0xfe72('0xdf')])));return this['editor'][_0xfe72('0x16')]['toModel'](_0x404cc4);}['_saveMetaData'](_0x4c441b,_0x4120f7,_0x1816cd,_0x4f7716){const _0x394a47=new Map(_0x4120f7),_0x50fa24=new Map(_0x477f3a(_0x4f7716)),_0x4de26d=new Map();for(const [_0x7b8d3c,_0xc55c49]of _0x1816cd)_0x4de26d[_0xfe72('0xb7')](_0x7b8d3c,{'start':_0xc55c49[_0xfe72('0x26')][_0xfe72('0xaf')](),'end':_0xc55c49[_0xfe72('0xcd')]['clone'](),'rootName':_0xc55c49[_0xfe72('0x88')][_0xfe72('0x56')]});this['_savedMetaData'][_0xfe72('0xb7')](_0x4c441b,{'roots':_0x394a47,'markers':_0x4de26d,'rootsAttributes':_0x50fa24});}[_0xfe72('0xfc')](_0x5d6df3){this[_0xfe72('0xd6')]['delete'](_0x5d6df3);}[_0xfe72('0x4c')](){this[_0xfe72('0xce')](),this[_0xfe72('0x2b')]=-0x1,this['_lastTo']=-0x1,this[_0xfe72('0xd6')][_0xfe72('0xef')](),this[_0xfe72('0xde')](this['source']);}['_reset'](){this[_0xfe72('0xdd')][_0xfe72('0xef')](),this[_0xfe72('0xb9')]['clear'](),this['_touchedRoots']['clear'](),this[_0xfe72('0xfd')][_0xfe72('0xef')](),this[_0xfe72('0x37')]['clear'](),this[_0xfe72('0x75')][_0xfe72('0xef')](),this[_0xfe72('0x55')][_0xfe72('0xef')](),this['_idsRoots'][_0xfe72('0xef')](),this['_baseIdsRoots'][_0xfe72('0xef')](),this['_markers'][_0xfe72('0xef')](),this['_revisionId']=0x1,this[_0xfe72('0xbc')]=this[_0xfe72('0x94')];}[_0xfe72('0x23')](_0x3cfa23,_0x37900a=null){let _0x32a3e5=null;_0x3cfa23['is'](_0xfe72('0x1e'))||(_0x32a3e5=new _0x4c8f5c(_0x3cfa23[_0xfe72('0xc7')],{'vid_start':null===_0x37900a?this[_0xfe72('0x94')]++:_0x37900a++}));const _0x1bd982=[];for(const _0x3cc170 of _0x3cfa23[_0xfe72('0x3a')]())if(_0x3cc170['is']('element')){_0x1bd982['push'](this[_0xfe72('0x23')](_0x3cc170,_0x37900a));const _0xdac869=_0x1bd982[_0x1bd982['length']-0x1];null!==_0x37900a&&(_0x37900a=_0xdac869['is']('element',_0xfe72('0x50'))?_0xdac869[_0xfe72('0x7')](_0xfe72('0x9f'))+0x1:_0xdac869[_0xfe72('0x7')]('vid_end')+0x1);}else for(let _0x1a6758=0x0;_0x1a6758<_0x3cc170[_0xfe72('0xca')];_0x1a6758++)_0x1bd982['push'](new _0x4c8f5c(_0xfe72('0x50'),{'vid':null===_0x37900a?this[_0xfe72('0x94')]++:_0x37900a++}));if(_0x3cfa23['is'](_0xfe72('0x1e'))){const _0x6ba475=G(_0x3cfa23['rootName']);return _0x6ba475[_0xfe72('0x9')](0x0,_0x1bd982),_0x6ba475;}return _0x32a3e5[_0xfe72('0x64')]('vid_end',null===_0x37900a?this[_0xfe72('0x94')]++:_0x37900a++),_0x32a3e5['_insertChild'](0x0,_0x1bd982),_0x32a3e5;}[_0xfe72('0xb6')](_0xada531,_0x46b55d,_0x5040ae){this[_0xfe72('0xce')]();const {roots:_0x1e1609,markers:_0x20d099,rootsAttributes:_0x57aaea}=this[_0xfe72('0xd6')][_0xfe72('0x44')](_0xada531);this['_baseRoots']=new Map(_0x1e1609),this[_0xfe72('0x55')]=new Map(_0x477f3a(_0x57aaea));for(const [_0x112e5a,_0x4a4ed8]of this[_0xfe72('0x75')])if(_0xfe72('0x4f')!==_0x112e5a&&(this[_0xfe72('0xfd')]['set'](_0x112e5a,q(_0x4a4ed8)),this['_diffRootsAttributes']=new Map(_0x477f3a(_0x57aaea)),_0x5040ae)){const _0x541cab=this[_0xfe72('0x94')];this[_0xfe72('0x52')][_0xfe72('0xb7')](_0x112e5a,this[_0xfe72('0x23')](_0x4a4ed8)),this[_0xfe72('0xa6')][_0xfe72('0xb7')](_0x112e5a,this['_makeIdsRoot'](_0x4a4ed8,_0x541cab));}this[_0xfe72('0xbc')]=this[_0xfe72('0x94')],this['_diffRoots'][_0xfe72('0xb7')](_0xfe72('0x4f'),q(this['_baseRoots'][_0xfe72('0x44')](_0xfe72('0x4f')))),_0x5040ae&&this[_0xfe72('0x52')][_0xfe72('0xb7')](_0xfe72('0x4f'),this[_0xfe72('0x23')](this[_0xfe72('0x75')][_0xfe72('0x44')](_0xfe72('0x4f'))));for(const [_0x2afa55,_0x426565]of _0x20d099){const _0x4dd6fd=this[_0xfe72('0x75')][_0xfe72('0x44')](_0x426565[_0xfe72('0x56')]),_0x70a8ea=this[_0xfe72('0xfd')][_0xfe72('0x44')](_0x426565[_0xfe72('0x56')]),_0x20df01=new _0x51d541(this[_0xfe72('0x91')](_0x426565[_0xfe72('0x26')],_0x4dd6fd),this[_0xfe72('0x91')](_0x426565[_0xfe72('0xcd')],_0x4dd6fd)),_0x1401f2=this[_0xfe72('0x8b')](_0x20df01,_0x70a8ea);_0x4dd6fd['markers'][_0xfe72('0xb7')](_0x2afa55,_0x20df01),this[_0xfe72('0x14')][_0xfe72('0xb7')](_0x2afa55,_0x1401f2);}this['_applyOperations'](_0xada531,_0x46b55d,_0x5040ae);}[_0xfe72('0x34')](_0x1a80bd,_0x31936b,_0x380bc7){for(const _0x4a7b33 of this[_0xfe72('0x6b')]['getOperations'](_0x1a80bd,_0x31936b))this[_0xfe72('0xcb')](_0x4a7b33,_0x380bc7);for(const _0x5f3326 of this[_0xfe72('0xfd')]['values']())_0x5f3326[_0xfe72('0x95')][_0xfe72('0xef')]();for(const [_0x531aa9,_0x54b859]of this[_0xfe72('0x14')]){this[_0xfe72('0xfd')][_0xfe72('0x44')](_0x54b859[_0xfe72('0x88')][_0xfe72('0x56')])[_0xfe72('0x95')]['set'](_0x531aa9,_0x54b859[_0xfe72('0xaf')]());}const _0xd9a423=new Map(),_0x197e21=new Map();for(const [_0x46c1c2,_0x2a328c]of this[_0xfe72('0xfd')])_0xd9a423[_0xfe72('0xb7')](_0x46c1c2,q(_0x2a328c)),_0x197e21[_0xfe72('0xb7')](_0x46c1c2,this[_0xfe72('0x37')][_0xfe72('0x44')](_0x46c1c2));this[_0xfe72('0xfb')](_0x31936b,_0xd9a423,this[_0xfe72('0x14')],_0x197e21);}[_0xfe72('0xcf')](_0x1a5533){const _0x48b54b=Array['from'](this[_0xfe72('0xd6')][_0xfe72('0x66')]());_0x48b54b[_0xfe72('0xbd')]((_0x40e9b6,_0x29d6a4)=>_0x40e9b6-_0x29d6a4),_0x48b54b[_0xfe72('0x25')]();for(const _0x4d53e6 of _0x48b54b)if(_0x4d53e6<_0x1a5533)return _0x4d53e6;return Number[_0xfe72('0x76')];}[_0xfe72('0xfa')](_0x1a759f,_0x1d75a4){const _0x45b7c2=Array[_0xfe72('0x6d')](_0x1d75a4[_0xfe72('0x95')])['map'](([_0x236414,_0x1d7b84])=>[_0x236414,this[_0xfe72('0x8b')](_0x1d7b84,_0x1a759f)]);_0x1a759f['markers']=new Map(_0x45b7c2);}[_0xfe72('0xbe')](_0x417de0){for(const _0x373047 of this[_0xfe72('0x14')][_0xfe72('0xc9')]()){const _0x5729f2=_0x373047[_0xfe72('0xe1')](_0x417de0),_0x248135=_0x51d541[_0xfe72('0x73')](_0x5729f2);_0x373047[_0xfe72('0x26')]=_0x248135['start'],_0x373047[_0xfe72('0xcd')]=_0x248135[_0xfe72('0xcd')];}}[_0xfe72('0xcb')](_0x4257cd,_0x44a21e){if(_0xfe72('0xb8')==_0x4257cd[_0xfe72('0xec')]||_0xfe72('0x84')==_0x4257cd['type'])return void this[_0xfe72('0x3e')](_0x4257cd,_0x44a21e);if(_0xfe72('0xf3')==_0x4257cd['type']){const _0x5d894a=_0x4257cd[_0xfe72('0x79')][_0xfe72('0x88')][_0xfe72('0x56')];this[_0xfe72('0xfd')]['has'](_0x5d894a)||(this[_0xfe72('0xfd')][_0xfe72('0xb7')](_0x5d894a,G(_0x5d894a,!0x0)),this[_0xfe72('0x37')][_0xfe72('0xb7')](_0x5d894a,{}),_0x44a21e&&this[_0xfe72('0x52')][_0xfe72('0xb7')](_0x5d894a,G(_0x5d894a,!0x0)));}else{if(_0xfe72('0xd7')==_0x4257cd['type']||'removeRootAttribute'==_0x4257cd['type']||'changeRootAttribute'==_0x4257cd[_0xfe72('0xec')])return void this[_0xfe72('0x8d')](_0x4257cd);}const _0x146252=this[_0xfe72('0x18')](_0x4257cd,this[_0xfe72('0xfd')]);if(_0xfe72('0xa3')!==_0x4257cd[_0xfe72('0xec')]&&(_0x146252[_0xfe72('0xe')](),this[_0xfe72('0xbe')](_0x146252)),_0x44a21e)switch(_0x146252[_0xfe72('0xec')]){case _0xfe72('0xf3'):this[_0xfe72('0x98')](_0x4257cd);break;case'move':case'remove':case _0xfe72('0x5'):this[_0xfe72('0xae')](_0x4257cd);break;case _0xfe72('0x1f'):this[_0xfe72('0xab')](_0x4257cd);break;case _0xfe72('0x5e'):this['_handleSplitOperation'](_0x4257cd);break;case _0xfe72('0xa3'):this[_0xfe72('0x53')](_0x4257cd);}}[_0xfe72('0x18')](_0x202e57,_0xd9f0b7){const _0x54eeca=_0x202e57[_0xfe72('0xaf')]();return _0x54eeca[_0xfe72('0xd0')]=_0x202e57[_0xfe72('0xd0')],this[_0xfe72('0x80')](_0x54eeca,_0xd9f0b7),_0x54eeca;}[_0xfe72('0x43')](_0x4c5fe1){return _0x4c5fe1[_0xfe72('0x99')](_0x1ab10a=>{const _0xef4a96=this[_0xfe72('0x21')](_0x1ab10a);return Number(_0x1ab10a[_0xfe72('0x100')][_0xfe72('0x7')](_0xef4a96));});}['_generateTape'](_0x3606c5,_0x2acf3c){if(_0x3606c5['is'](_0xfe72('0x7b'),'$text'))_0x2acf3c['push']({'item':_0x3606c5,'type':_0xfe72('0xa7')});else{_0x3606c5['is'](_0xfe72('0x7b'))&&_0x2acf3c[_0xfe72('0x6a')]({'item':_0x3606c5,'type':_0xfe72('0x49')});for(const _0x368184 of _0x3606c5['getChildren']())this['_generateTape'](_0x368184,_0x2acf3c);_0x3606c5['is']('element')&&_0x2acf3c['push']({'item':_0x3606c5,'type':_0xfe72('0x2a')});}return _0x2acf3c;}[_0xfe72('0x102')](){const _0x374a5e=new Map(this['_touched']),_0x3a9c63=new Map(_0x374a5e),_0x11147c=new Map(),_0x3e40f8={'insertions':{},'deletions':{}},_0x1ef7f1={'insertions':{},'deletions':{}},_0xb4b30d=new Map(),_0x51f745=new Set([...this['_baseRoots'][_0xfe72('0x66')](),...this[_0xfe72('0xfd')][_0xfe72('0x66')]()]);_0x51f745[_0xfe72('0x4e')](_0xfe72('0x4f'));for(const _0x18c842 of _0x51f745){const _0x38e710=this['_diffRoots'][_0xfe72('0x44')](_0x18c842)||G(_0x18c842,!0x1),_0x24b8a4=this['_baseRoots'][_0xfe72('0x44')](_0x18c842)||G(_0x18c842,!0x1);_0x38e710[_0xfe72('0x31')]()||_0x24b8a4[_0xfe72('0x31')]()?(_0x3e40f8['insertions'][_0x18c842]=q(_0x38e710),_0x3e40f8[_0xfe72('0x2f')][_0x18c842]=q(_0x24b8a4),this[_0xfe72('0xfa')](_0x3e40f8[_0xfe72('0x2f')][_0x18c842],_0x24b8a4),this[_0xfe72('0xfa')](_0x3e40f8[_0xfe72('0x83')][_0x18c842],_0x38e710),_0x1ef7f1[_0xfe72('0x83')][_0x18c842]=this[_0xfe72('0xa4')](this[_0xfe72('0x52')][_0xfe72('0x44')](_0x18c842),[]),_0x1ef7f1[_0xfe72('0x2f')][_0x18c842]=this[_0xfe72('0xa4')](this[_0xfe72('0xa6')][_0xfe72('0x44')](_0x18c842)||G(_0x18c842,!0x1),[])):_0x51f745['delete'](_0x18c842);}for(const _0x1390ca of _0x51f745){const _0x41aca0=_0x1ef7f1[_0xfe72('0x83')][_0x1390ca];for(const _0x5aedff of _0x41aca0){const _0xbc3115=this[_0xfe72('0x21')](_0x5aedff),_0x2ad228=_0x5aedff[_0xfe72('0x100')][_0xfe72('0x7')](_0xbc3115);_0x3a9c63[_0xfe72('0x4e')](_0x2ad228),_0x2ad228>=this[_0xfe72('0xbc')]&&_0x11147c['set'](_0x2ad228,_0x374a5e[_0xfe72('0x44')](_0x2ad228));}}for(const _0x5461a9 of _0x51f745){const _0x3d9031=_0x1ef7f1['insertions'][_0x5461a9],_0x2a1f48=this['_getBaseVids'](_0x1ef7f1['deletions'][_0x5461a9]);let _0x227542=0x0;for(const _0x4c71f9 of _0x3d9031){const _0x1f0610=this[_0xfe72('0x21')](_0x4c71f9),_0x23e17a=_0x4c71f9[_0xfe72('0x100')][_0xfe72('0x7')](_0x1f0610);if(!_0x11147c['has'](_0x23e17a)&&!_0xb4b30d['has'](_0x23e17a)){if(_0x3a9c63[_0xfe72('0xf8')](_0x23e17a))_0x227542++;else{if(_0x23e17a!=_0x2a1f48[_0x227542]){const _0x28183e=_0x374a5e['get'](_0x23e17a)||_0x374a5e[_0xfe72('0x44')](_0x2a1f48[_0x227542]);for(;_0x23e17a!=_0x2a1f48[_0x227542];)_0x3a9c63['has'](_0x2a1f48[_0x227542])||(_0xb4b30d[_0xfe72('0xb7')](_0x2a1f48[_0x227542],_0x28183e),_0x374a5e[_0xfe72('0xb7')](_0x2a1f48[_0x227542],_0x28183e)),_0x227542++;}_0x227542++;}}}}for(const _0x478b45 of _0x51f745){const _0x30f305=_0x1ef7f1['insertions'][_0x478b45];for(const _0x99bc97 of _0x30f305){const _0x164c5a=this['_getVidAttributeName'](_0x99bc97),_0x489385=_0x99bc97[_0xfe72('0x100')]['getAttribute'](_0x164c5a);if(_0xb4b30d[_0xfe72('0xf8')](_0x489385)){const _0x241f22=_0xb4b30d[_0xfe72('0x44')](_0x489385);_0x3a9c63['has'](_0x489385)||_0x3a9c63[_0xfe72('0xb7')](_0x489385,{..._0x241f22}),_0x11147c['set'](_0x489385,{..._0x241f22});}}}for(const _0x552468 of _0x3a9c63['keys']())_0x552468>=this[_0xfe72('0xbc')]&&_0x3a9c63['delete'](_0x552468);const _0xaf6bd8=new Map();for(const _0x2c6d69 of _0x51f745){let _0x219798=_0x1ef7f1[_0xfe72('0x83')][_0x2c6d69];for(const _0x253a8e of _0x219798)if(_0x253a8e['item']['is'](_0xfe72('0x7b'),'tableCell')){const _0x139f82=this['_getVidAttributeName'](_0x253a8e),_0x426f58=_0x253a8e[_0xfe72('0x100')][_0xfe72('0x7')](_0x139f82);if(_0x11147c['has'](_0x426f58)){const _0x69c41e=_0x253a8e[_0xfe72('0x100')][_0xfe72('0x71')][_0xfe72('0x71')][_0xfe72('0x7')](_0xfe72('0xb3')),_0x19ebad=_0xaf6bd8['get'](_0x69c41e)||new Set();_0x19ebad[_0xfe72('0x1b')](_0x11147c[_0xfe72('0x44')](_0x426f58)[_0xfe72('0x51')]),_0xaf6bd8['set'](_0x69c41e,_0x19ebad);}}_0x219798=_0x1ef7f1[_0xfe72('0x2f')][_0x2c6d69];for(const _0x2ad80e of _0x219798)if(_0x2ad80e[_0xfe72('0x100')]['is'](_0xfe72('0x7b'),_0xfe72('0x8a'))){const _0x2e9dcf=this[_0xfe72('0x21')](_0x2ad80e),_0x11f89e=_0x2ad80e['item'][_0xfe72('0x7')](_0x2e9dcf);if(_0x3a9c63['has'](_0x11f89e)){const _0x299f00=_0x2ad80e['item'][_0xfe72('0x71')][_0xfe72('0x71')][_0xfe72('0x7')]('vid_start'),_0x38f7a6=_0xaf6bd8[_0xfe72('0x44')](_0x299f00)||new Set();_0x38f7a6[_0xfe72('0x1b')](_0x3a9c63['get'](_0x11f89e)[_0xfe72('0x51')]),_0xaf6bd8[_0xfe72('0xb7')](_0x299f00,_0x38f7a6);}}for(const _0xde06e of _0xaf6bd8['keys']())(_0x11147c[_0xfe72('0xf8')](_0xde06e)||_0x3a9c63[_0xfe72('0xf8')](_0xde06e))&&_0xaf6bd8[_0xfe72('0x4e')](_0xde06e);}for(const _0x2bc2d9 of _0x51f745){const _0x1a4952=_0x1ef7f1['insertions'][_0x2bc2d9];let _0x11fc3c=null,_0x456493=null;for(const _0x4a6c7a of _0x1a4952){const _0x54d2a0=this[_0xfe72('0x21')](_0x4a6c7a),_0x3624c9=_0x4a6c7a[_0xfe72('0x100')][_0xfe72('0x7')](_0x54d2a0),_0x57a645=_0xaf6bd8[_0xfe72('0x44')](_0x3624c9);_0x57a645&&_0xfe72('0x49')==_0x4a6c7a[_0xfe72('0xec')]&&(_0x11fc3c=Array[_0xfe72('0x6d')](_0x57a645)[0x0],_0x456493=_0x4a6c7a['item']['getAttribute']('vid_end')),_0x11fc3c&&(_0x3a9c63[_0xfe72('0xb7')](_0x3624c9,{'userId':_0x11fc3c}),_0x11147c['set'](_0x3624c9,{'userId':_0x11fc3c})),_0x3624c9==_0x456493&&(_0x11fc3c=null,_0x456493=null);}}const _0x5710de={},_0x47de5f=new Set();for(const _0x21ff5f of _0x51f745){const _0x4c62f7=_0x3e40f8[_0xfe72('0x2f')][_0x21ff5f],_0xaa5d8f=_0x3e40f8[_0xfe72('0x83')][_0x21ff5f];for(const {userId:_0x4358ca}of this[_0xfe72('0xb9')][_0xfe72('0xc9')]())null!==_0x4358ca&&_0x47de5f[_0xfe72('0x1b')](_0x4358ca);for(const {userId:_0x5b08a0}of this[_0xfe72('0xe3')][_0xfe72('0xc9')]())null!==_0x5b08a0&&_0x47de5f[_0xfe72('0x1b')](_0x5b08a0);this['_markChanges'](_0xaa5d8f,_0x1ef7f1[_0xfe72('0x83')][_0x21ff5f],_0x11147c,_0xfe72('0xd3'),_0x47de5f),this[_0xfe72('0xad')](_0x4c62f7,_0x1ef7f1[_0xfe72('0x2f')][_0x21ff5f],_0x3a9c63,'deletion',_0x47de5f),_0x5710de[_0x21ff5f]={'insertions':this[_0xfe72('0xcc')](_0xaa5d8f),'deletions':this[_0xfe72('0xcc')](_0x4c62f7),'attachChange':this[_0xfe72('0xe3')][_0xfe72('0x44')](_0x21ff5f)||null,'attributesBefore':_0x477f3a(this[_0xfe72('0x55')][_0xfe72('0x44')](_0x21ff5f))||{},'attributesAfter':_0x477f3a(this[_0xfe72('0x37')]['get'](_0x21ff5f))};}return{'diffData':_0x5710de,'authorsIds':Array[_0xfe72('0x6d')](_0x47de5f)};}[_0xfe72('0xda')](_0xa3584a){for(const [,_0x5369c8]of _0xa3584a[_0xfe72('0x95')]){const _0xa9b986=_0x5369c8[_0xfe72('0x26')]['getAncestors']()[_0xfe72('0xee')](_0x1fcabd=>_0xfe72('0x8a')==_0x1fcabd[_0xfe72('0xc7')]);for(const _0x425feb of _0xa9b986)0x1==_0x425feb[_0xfe72('0xed')]&&_0x425feb[_0xfe72('0x35')](0x0)['is'](_0xfe72('0x7b'),_0xfe72('0x96'))&&_0x425feb[_0xfe72('0x35')](0x0)[_0xfe72('0x64')](_0xfe72('0x86'),!0x0);}}[_0xfe72('0xcc')](_0x3b9c3b){this['_processRootBeforeSave'](_0x3b9c3b);const _0x44106e=this['editor'][_0xfe72('0x16')][_0xfe72('0x42')](_0x3b9c3b,{}),_0x80feb6=Array[_0xfe72('0x6d')](_0x44106e[_0xfe72('0x3a')]())['map'](_0x5cbf1e=>this[_0xfe72('0x7f')](_0x5cbf1e));return JSON[_0xfe72('0xc')](_0x80feb6);}[_0xfe72('0x7f')](_0x2e69bf){if(_0x2e69bf['is']('$text'))return _0x2e69bf[_0xfe72('0x16')];{const _0x447bb1=_0x2e69bf;return{'type':Object[_0xfe72('0x66')](B)['find'](_0x75b6f0=>_0x2e69bf instanceof B[_0x75b6f0]),'name':_0x447bb1[_0xfe72('0xc7')],'attributes':Array[_0xfe72('0x6d')](_0x447bb1[_0xfe72('0x39')]()),'children':Array[_0xfe72('0x6d')](_0x447bb1[_0xfe72('0x3a')]())[_0xfe72('0x99')](_0x3aba29=>this[_0xfe72('0x7f')](_0x3aba29))};}}[_0xfe72('0xad')](_0x59218f,_0x215e90,_0x3bd3ea,_0x3da33b,_0x1e6042){let _0x39296b=null,_0x51c881=null,_0x1ea433=0x0;const _0x20bf9d=this[_0xfe72('0xdf')][_0xfe72('0x93')];for(let _0x39cb12=0x0;_0x39cb12<_0x215e90['length'];_0x39cb12++){const _0x1b6b5a=this[_0xfe72('0x21')](_0x215e90[_0x39cb12]),_0x3cb13d=_0x215e90[_0x39cb12][_0xfe72('0x100')][_0xfe72('0x7')](_0x1b6b5a),_0x876cac=_0x3bd3ea[_0xfe72('0x44')](_0x3cb13d),_0x3a258b=_0x39cb12==_0x215e90[_0xfe72('0xb5')]-0x1;(!_0x39296b&&_0x876cac&&(_0x39296b=_0x876cac,_0x51c881=_0x215e90[_0x39cb12]),_0x39296b&&(!_0x876cac||_0x876cac[_0xfe72('0x51')]!=_0x39296b[_0xfe72('0x51')]))&&(_0x52cac2(_0x876cac,L(_0x51c881,_0x59218f,_0x20bf9d),L(_0x215e90[_0x39cb12],_0x59218f,_0x20bf9d)),_0x39296b=_0x876cac||null,_0x51c881=_0x876cac?_0x215e90[_0x39cb12]:null),_0x39296b&&_0x3a258b&&_0x52cac2(_0x876cac,L(_0x51c881,_0x59218f,_0x20bf9d),W(_0x215e90[_0x39cb12],_0x59218f,_0x20bf9d));}function _0x52cac2(_0x5137f2,_0x4af406,_0x5ee0d0){const _0x37fe8a=_0x39296b['userId'],_0x14cb2b=_0xfe72('0x3d')+_0x3da33b+':'+_0x37fe8a+':'+_0x1ea433++,_0x32620c=_0x20bf9d[_0xfe72('0xc3')](_0x4af406,_0x5ee0d0);_0x59218f[_0xfe72('0x95')][_0xfe72('0xb7')](_0x14cb2b,_0x32620c),null!==_0x37fe8a&&_0x1e6042[_0xfe72('0x1b')](_0x37fe8a);}}[_0xfe72('0x21')](_0x2d4abd){switch(_0x2d4abd[_0xfe72('0xec')]){case _0xfe72('0x49'):return _0xfe72('0xb3');case _0xfe72('0x2a'):return'vid_end';default:return _0xfe72('0x9f');}}[_0xfe72('0x80')](_0x36f18f,_0x149754){_0x36f18f[_0xfe72('0xb2')]=null;for(const _0x38ffdb in _0x36f18f){const _0x5db83a=_0x36f18f[_0x38ffdb];if(_0x5db83a instanceof _0x26c75c){const _0x434978=_0x149754[_0xfe72('0x44')](_0x5db83a[_0xfe72('0x88')][_0xfe72('0x56')]);_0x36f18f[_0x38ffdb]=this['_fixPosition'](_0x5db83a,_0x434978);}if(_0x5db83a instanceof _0x51d541){const _0x4f8ae1=_0x149754[_0xfe72('0x44')](_0x5db83a[_0xfe72('0x88')][_0xfe72('0x56')]);_0x36f18f[_0x38ffdb]=this['_fixRange'](_0x5db83a,_0x4f8ae1);}_0xfe72('0x88')===_0x38ffdb&&(_0x36f18f[_0xfe72('0x88')]=_0x149754['get'](_0x36f18f[_0xfe72('0x88')][_0xfe72('0x56')]));}}[_0xfe72('0x8b')](_0x1a46d8,_0x202572){return this['editor']['model']['createRange'](this[_0xfe72('0x91')](_0x1a46d8[_0xfe72('0x26')],_0x202572),this['_fixPosition'](_0x1a46d8['end'],_0x202572));}[_0xfe72('0x91')](_0x1c18d0,_0x4fe070){return this[_0xfe72('0xdf')][_0xfe72('0x93')][_0xfe72('0x36')](_0x4fe070,_0x1c18d0[_0xfe72('0xa9')],_0x1c18d0['stickiness']);}[_0xfe72('0x98')](_0x592d3a){const _0x3105b3=this['_idsRoots'][_0xfe72('0x44')](_0x592d3a[_0xfe72('0x79')][_0xfe72('0x88')][_0xfe72('0x56')]),_0x435947=this[_0xfe72('0x91')](_0x592d3a[_0xfe72('0x79')],_0x3105b3),_0x4ee059=null===_0x592d3a[_0xfe72('0xd0')]?null:_0x592d3a[_0xfe72('0xd0')]||this[_0xfe72('0xdf')][_0xfe72('0x3f')][_0xfe72('0x44')](_0xfe72('0x6c'))['me']['id'],_0x4e4b56=_0x435947[_0xfe72('0x71')],_0x480850=this['_revisionId'],_0x544077=[];for(const _0x478bf2 of _0x592d3a[_0xfe72('0xc4')])if(_0x478bf2['is']('element'))_0x544077['push'](this[_0xfe72('0x23')](_0x478bf2));else for(let _0x394576=0x0;_0x394576<_0x478bf2[_0xfe72('0xca')];_0x394576++)_0x544077[_0xfe72('0x6a')](new _0x4c8f5c(_0xfe72('0x50'),{'vid':this[_0xfe72('0x94')]++}));const _0x13313a=this[_0xfe72('0x94')];for(let _0x3924fe=_0x480850;_0x3924fe<_0x13313a;_0x3924fe++)this[_0xfe72('0xdd')][_0xfe72('0xb7')](_0x3924fe,{'userId':_0x4ee059});_0x4e4b56[_0xfe72('0x9')](_0x435947['offset'],_0x544077);}['_handleMoveOperation'](_0x55e98b){(_0x55e98b=this[_0xfe72('0x18')](_0x55e98b,this[_0xfe72('0x52')]))[_0xfe72('0xe')]();const _0x565114=null===_0x55e98b[_0xfe72('0xd0')]?null:_0x55e98b[_0xfe72('0xd0')]||this[_0xfe72('0xdf')]['plugins']['get'](_0xfe72('0x6c'))['me']['id'],_0x52b655=_0x55e98b[_0xfe72('0x20')](),_0x521d26=_0x52b655['parent'],_0x1111e7=_0x52b655[_0xfe72('0x62')];!function _0x1efad7(_0x5aa9df,_0x5b64a0,_0x4c7a73,_0x5c0b3e){for(let _0xc3e662=_0x4c7a73;_0xc3e662<_0x5c0b3e;_0xc3e662++){const _0x3fafb7=_0x5b64a0[_0xfe72('0x35')](_0xc3e662);_0x3fafb7['is'](_0xfe72('0x7b'),_0xfe72('0x50'))?_0x5aa9df[_0xfe72('0xb7')](_0x3fafb7['getAttribute']('vid'),{'userId':_0x565114}):(_0x5aa9df[_0xfe72('0xb7')](_0x3fafb7[_0xfe72('0x7')]('vid_start'),{'userId':_0x565114}),_0x1efad7(_0x5aa9df,_0x3fafb7,0x0,_0x3fafb7[_0xfe72('0xed')]),_0x5aa9df['set'](_0x3fafb7[_0xfe72('0x7')](_0xfe72('0x41')),{'userId':_0x565114}));}}(this[_0xfe72('0xdd')],_0x521d26,_0x1111e7,_0x1111e7+_0x55e98b['howMany']);}['_handleMergeOperation'](_0xf1cf81){const _0x148c6f=null===(_0xf1cf81=this['_cloneOperation'](_0xf1cf81,this[_0xfe72('0x52')]))[_0xfe72('0xd0')]?null:_0xf1cf81[_0xfe72('0xd0')]||this[_0xfe72('0xdf')][_0xfe72('0x3f')][_0xfe72('0x44')]('Users')['me']['id'],_0x3632a4=_0xf1cf81[_0xfe72('0x9b')][_0xfe72('0x71')],_0x4e2c58=_0xf1cf81[_0xfe72('0x24')][_0xfe72('0x71')],_0x140e65=_0x3632a4[_0xfe72('0x7')](_0xfe72('0x41')),_0x238995=_0x4e2c58[_0xfe72('0x7')](_0xfe72('0xb3'));_0x3632a4[_0xfe72('0x64')]('vid_end',_0x4e2c58['getAttribute'](_0xfe72('0x41'))),_0x4e2c58[_0xfe72('0x64')]('vid_end',_0x140e65),this[_0xfe72('0xdd')][_0xfe72('0xb7')](_0x238995,{'userId':_0x148c6f}),this['_touched'][_0xfe72('0xb7')](_0x140e65,{'userId':_0x148c6f}),_0xf1cf81[_0xfe72('0xe')]();}[_0xfe72('0x8')](_0x135324){const _0x46b5e7=null===(_0x135324=this['_cloneOperation'](_0x135324,this['_idsRoots']))[_0xfe72('0xd0')]?null:_0x135324[_0xfe72('0xd0')]||this['editor'][_0xfe72('0x3f')]['get']('Users')['me']['id'],_0x2666af=_0x135324[_0xfe72('0xbb')],_0x398f1e=_0x135324[_0xfe72('0x6f')][_0xfe72('0x71')];_0x135324[_0xfe72('0xe')]();const _0x2ad564=_0x398f1e[_0xfe72('0x7')](_0xfe72('0x41')),_0x1937fd=_0x135324[_0xfe72('0x8f')][_0xfe72('0x78')];if(_0x2666af){const _0x1cc436=_0x1937fd[_0xfe72('0x7')]('vid_end'),_0x5b746a=_0x398f1e[_0xfe72('0x7')](_0xfe72('0x41'));_0x398f1e[_0xfe72('0x64')](_0xfe72('0x41'),_0x1cc436),_0x1937fd[_0xfe72('0x64')](_0xfe72('0x41'),_0x5b746a),this[_0xfe72('0xdd')][_0xfe72('0xb7')](_0x398f1e['getAttribute']('vid_end'),{'userId':_0x46b5e7}),this[_0xfe72('0xdd')][_0xfe72('0xb7')](_0x1937fd['getAttribute'](_0xfe72('0xb3')),{'userId':_0x46b5e7});}else{const _0x20ba9c=this['_revisionId']++,_0x11cda0=this[_0xfe72('0x94')]++;_0x398f1e[_0xfe72('0x64')](_0xfe72('0x41'),_0x20ba9c),_0x1937fd[_0xfe72('0x64')](_0xfe72('0xb3'),_0x11cda0),_0x1937fd[_0xfe72('0x64')](_0xfe72('0x41'),_0x2ad564),this[_0xfe72('0xdd')][_0xfe72('0xb7')](_0x20ba9c,{'userId':_0x46b5e7}),this[_0xfe72('0xdd')][_0xfe72('0xb7')](_0x11cda0,{'userId':_0x46b5e7});}}[_0xfe72('0x53')](_0x46ebed){if(!_0x46ebed[_0xfe72('0xc0')])return;const _0xa27c57=(_0x46ebed=this[_0xfe72('0x18')](_0x46ebed,this[_0xfe72('0xfd')]))[_0xfe72('0x30')]?_0x46ebed[_0xfe72('0x30')][_0xfe72('0x88')]:null,_0x26e239=_0x46ebed[_0xfe72('0xf7')]?_0x46ebed['newRange'][_0xfe72('0x88')]:null;_0xa27c57&&this['_markers'][_0xfe72('0x4e')](_0x46ebed[_0xfe72('0xc7')]),_0x26e239&&this[_0xfe72('0x14')][_0xfe72('0xb7')](_0x46ebed[_0xfe72('0xc7')],_0x46ebed['newRange'][_0xfe72('0xaf')]());const _0xb376bc=null===_0x46ebed[_0xfe72('0xd0')]?null:_0x46ebed[_0xfe72('0xd0')]||this[_0xfe72('0xdf')][_0xfe72('0x3f')]['get'](_0xfe72('0x6c'))['me']['id'],_0x23fb55=_0x46ebed['name'];if(!this[_0xfe72('0xb9')][_0xfe72('0xf8')](_0x23fb55))return void this[_0xfe72('0xb9')][_0xfe72('0xb7')](_0x23fb55,{'range':_0x46ebed['oldRange'],'userId':_0xb376bc});const _0x7cc1d8=this['_touchedMarkers'][_0xfe72('0x44')](_0x23fb55),_0x1b6bc9=_0x7cc1d8['range'],_0x4b4ccf=_0x46ebed['newRange'];null==_0x1b6bc9&&null==_0x4b4ccf||_0x1b6bc9&&_0x4b4ccf&&_0x1b6bc9[_0xfe72('0x81')](_0x4b4ccf)?this[_0xfe72('0xb9')][_0xfe72('0x4e')](_0x46ebed[_0xfe72('0xc7')]):_0x7cc1d8[_0xfe72('0x51')]=_0xb376bc;}[_0xfe72('0x3e')](_0x1d03be,_0x1b91d1){this['_diffRoots']['has'](_0x1d03be[_0xfe72('0x56')])?this[_0xfe72('0xfd')][_0xfe72('0x44')](_0x1d03be[_0xfe72('0x56')])[_0xfe72('0x12')]=_0x1d03be['isAdd']:(this[_0xfe72('0xfd')][_0xfe72('0xb7')](_0x1d03be[_0xfe72('0x56')],G(_0x1d03be[_0xfe72('0x56')],!0x0)),this['_diffRootsAttributes'][_0xfe72('0xb7')](_0x1d03be[_0xfe72('0x56')],{}),_0x1b91d1&&this[_0xfe72('0x52')]['set'](_0x1d03be[_0xfe72('0x56')],G(_0x1d03be[_0xfe72('0x56')],!0x0)));const _0x257b97=null===_0x1d03be['_authorId']?null:_0x1d03be[_0xfe72('0xd0')]||this[_0xfe72('0xdf')][_0xfe72('0x3f')][_0xfe72('0x44')](_0xfe72('0x6c'))['me']['id'],_0x29ac86=this[_0xfe72('0xe3')]['get'](_0x1d03be['rootName']);_0x29ac86&&_0x29ac86[_0xfe72('0x51')]===_0x257b97?this[_0xfe72('0xe3')][_0xfe72('0x4e')](_0x1d03be[_0xfe72('0x56')]):this[_0xfe72('0xe3')][_0xfe72('0xb7')](_0x1d03be[_0xfe72('0x56')],{'userId':_0x257b97,'isAttached':_0x1d03be[_0xfe72('0xf')]});}[_0xfe72('0x8d')](_0x14ad23){const _0x30f859=this[_0xfe72('0x37')]['get'](_0x14ad23['root'][_0xfe72('0x56')]);null===_0x14ad23[_0xfe72('0x77')]?delete _0x30f859[_0x14ad23[_0xfe72('0x1c')]]:_0x30f859[_0x14ad23[_0xfe72('0x1c')]]=_0x14ad23[_0xfe72('0x77')];}}function q(_0x318768){const _0x555423=G(_0x318768['rootName'],_0x318768['isAttached']());for(const _0x370945 of _0x318768['getChildren']()){const _0x5040c9=_0x370945['_clone'](!0x0);_0x555423[_0xfe72('0x5f')](_0x5040c9);}return _0x555423;}function G(_0x3adab3,_0x17d0ba=!0x0){const _0x2fbcf7=new _0x1a79ff();return _0x2fbcf7[_0xfe72('0x56')]=_0x3adab3,_0x2fbcf7['_isAttached']=_0x17d0ba,_0x2fbcf7[_0xfe72('0x31')]=()=>_0x2fbcf7[_0xfe72('0x12')],_0x2fbcf7;}function L(_0x470d8d,_0x510129,_0x2192ea){const _0x530ac1=_0xfe72('0x2a')==_0x470d8d[_0xfe72('0xec')]?_0x2192ea[_0xfe72('0x32')](_0x470d8d[_0xfe72('0x100')],_0xfe72('0xcd')):_0x2192ea['createPositionBefore'](_0x470d8d[_0xfe72('0x100')]);return _0x2192ea[_0xfe72('0x36')](_0x510129,_0x530ac1[_0xfe72('0xa9')],_0x530ac1[_0xfe72('0xd1')]);}function W(_0x4aa010,_0x1270a1,_0x49c392){const _0x3a8045='elementStart'==_0x4aa010[_0xfe72('0xec')]?_0x49c392[_0xfe72('0x32')](_0x4aa010[_0xfe72('0x100')],0x0):_0x49c392[_0xfe72('0xe8')](_0x4aa010[_0xfe72('0x100')]);return _0x49c392[_0xfe72('0x36')](_0x1270a1,_0x3a8045[_0xfe72('0xa9')],_0x3a8045[_0xfe72('0xd1')]);}
|