@ckeditor/ckeditor5-revision-history 38.1.0 → 38.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/augmentation.d.ts +25 -25
- package/src/changeitem.d.ts +57 -57
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.d.ts +27 -27
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.d.ts +28 -28
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.d.ts +43 -43
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.d.ts +11 -11
- package/src/revision.d.ts +153 -153
- package/src/revision.js +1 -1
- package/src/revisiondiff.d.ts +20 -20
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.d.ts +95 -95
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryadapter.d.ts +60 -60
- package/src/revisionhistoryconfig.d.ts +60 -60
- package/src/revisionsrepository.d.ts +48 -48
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.d.ts +77 -77
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.d.ts +21 -21
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.d.ts +9 -9
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.d.ts +4 -4
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.d.ts +4 -4
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.d.ts +91 -91
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.d.ts +17 -17
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.d.ts +30 -30
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.d.ts +4 -4
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +80 -80
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.d.ts +22 -22
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.d.ts +40 -40
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +4 -4
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +25 -25
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.d.ts +40 -40
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.d.ts +8 -8
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.d.ts +18 -18
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.d.ts +36 -36
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +22 -22
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.d.ts +24 -24
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.d.ts +7 -7
- 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 _0x4f48=['getTime','affectsData','attachChange','RevisionTracker','isEqual','root','newRange','initialData','_createCurrentRevision','_reset','name','getAncestors','addRoot','update','repository','getMovedRangeStart','parent','from','slice','revision','getRoot','_touchedRoots','authors','getRange','elementEnd','clone','_startingRevisionId','creator','_getFromVersion','_source','find','_markChanges','_copyMarkers','_operations','getChild','_diffRootsAttributes','_handleMergeOperation','tableCell','markers','keys','trim','_getState','getIndex','getNodeByPath','delete','item','_handleMarkerOperation','processor','_handleSplitOperation','text','start','_clone','_removePendingAction','getRevisionRootsAttributes','diffData','marker','_touched','_lastTo','history','_handleMoveOperation','includes','oldRange','stickiness','creatorId','buildRevisionData','_isPendingUpdate','keepParagraph','$graveyard','revisionHistory.resumeUnsavedRevision','_continueCurrentRevision','getUser','getCurrentRevisionId','_fixOperation','vid_start','then','_setConversion','addRevisionData','createPositionBefore','_lastFrom','isAdd','parse','offsetSize','sendBufferedUpdates','split','getRevisions','deletions','path','createRevision','createPositionAfter','insert','move','isReady','splitPosition','fromVersion','Users','_getPreviousFrom','version','_savedMetaData','_createInitialRevision','key','_fixPosition','_saveMetaData','adapter','length','fromEntries','getAttributes','getChildren','_applyOperations','forEach','stringify','baseVersion','getTransformedByOperation','document','values','_findInsertionIndex','_handleOperation','_touchedMarkers','init','saveRevision','_generateTape','model','attributes','_baseRootsAttributes','_removeMetaData','conversion','getData','setSource','toVersion','isEnabled','authorsIds','data-revision-','_loadState','_bufferedUpdates','paragraph','hasContent','changeRootAttribute','userId','vid_end','plugins','_prepareViewToSave','source','_isAttached','_bufferUpdate','_getBaseVids','_handleRootOperation','filter','_isInit','_initialRevisionId','useFillerType','_makeRevision','howMany','toData','updateRevisions','createdAt','_makeModelFromViewString','getAttribute','_pendingAction','for','Initial\x20revision','_transformMarkers','_diffRoots','offset','attributesAfter','_markers','type','has','clear','add','_loadedStateData','config','getWalker','string','_idsRoots','set','_initialRoots','_appendChild','_handleRootAttributeOperation','getRootNames','RealTimeCollaborationClient','_getViewJson','NEGATIVE_INFINITY','startsWith','currentRevision','_update','attributesBefore','ready','addRevision','reverse','_removeRevisionMarkers','documentFragment','merge','revision-start','_addPendingAction','_startingVersion','_setAttribute','_calculateMetaData','addRootAttribute','Empty\x20document','roots','elementStart','rootName','newValue','sourcePosition','_baseRoots','getRevision','push','_cloneOperation','editor','_fixRange','rootsAttributes','detachRoot','requires','resolve','_revisionId','vid','_execute','_createFromRanges','getRevisionDocumentData','remove','nodeAfter','initial','map','PendingActions','size','isAttached','createPositionFromPath','locale','createPositionAt','childCount','revision:','graveyardPosition','getLatestVersion','createRange','upcast','_getVidAttributeName','_baseIdsRoots','view','insertions','pluginName','toView','editing','element','_replaceEditorDataWithRevisionData','previousPosition','_revisionDataBuilder','targetPosition','default','collaboration.channelId','children','insertion','_makeIdsRoot','position','_insertChild','reInit','end','_authorId','editor-initial-data-replaced-with-revision-data','bind','data','_processRootBeforeSave','_loadRevisionData','max','$text','get'];(function(_0x2bb672,_0x4f48d9){const _0x25246d=function(_0x3afb7f){while(--_0x3afb7f){_0x2bb672['push'](_0x2bb672['shift']());}};_0x25246d(++_0x4f48d9);}(_0x4f48,0x11b));const _0x2524=function(_0x2bb672,_0x4f48d9){_0x2bb672=_0x2bb672-0x0;let _0x25246d=_0x4f48[_0x2bb672];return _0x25246d;};import{Users as _0x24cb6b}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x4994c7,PendingActions as _0x37a2bb}from'ckeditor5/src/core';import{logWarning as _0x557e88,uid as _0x5d90ce}from'ckeditor5/src/utils';import{Position as _0x823d76,Range as _0x176ec4,Element as _0x552bef,DocumentFragment as _0x480898,ViewText as _0x499567,ViewElement as _0x4babdd,ViewContainerElement as _0x97bbcb,ViewAttributeElement as _0xbb222,ViewEmptyElement as _0xb2c24e,ViewRawElement as _0x3293fa,ViewUIElement as _0x10d7b0,ViewDocumentFragment as _0x17d6fe}from'ckeditor5/src/engine';import _0x42a8c7 from'./revisionsrepository';import{getTranslation as _0x10f8b9}from'./utils/common-translations';import{cloneDeep as _0x3cb004,isEqual as _0x587449}from'lodash-es';const F={'c':_0x97bbcb,'a':_0xbb222,'e':_0xb2c24e,'r':_0x3293fa,'u':_0x10d7b0};export default class u extends _0x4994c7{static get[_0x2524('0xdb')](){return _0x2524('0xf8');}static get[_0x2524('0xc0')](){return[_0x24cb6b,_0x42a8c7,_0x37a2bb];}constructor(_0x3e5130){super(_0x3e5130),this[_0x2524('0x53')]=null,this[_0x2524('0xa3')]=null,this[_0x2524('0xe1')]=new B(this[_0x2524('0xbc')]),this[_0x2524('0x80')]=this['editor']['config'][_0x2524('0xf4')]('collaboration.channelId')||_0x2524('0xc9'),this[_0x2524('0x71')]=new Map(),this[_0x2524('0x95')]=null;const _0x3454f9=_0x5d90ce();this[_0x2524('0xa')]={'history':this['editor'][_0x2524('0x65')][_0x2524('0x5d')][_0x2524('0x27')],'getLatestVersion':()=>Promise[_0x2524('0xc1')](this[_0x2524('0xbc')][_0x2524('0x65')][_0x2524('0x5d')][_0x2524('0x4d')]),'getCurrentRevisionId':()=>_0x3454f9},this[_0x2524('0x9a')](_0x2524('0x48'),!0x1),this['set'](_0x2524('0x6d'),!0x0),this['set'](_0x2524('0x2e'),!0x1),this[_0x2524('0xbc')][_0x2524('0x96')]['define'](_0x2524('0x31'),!0x0),this['editor'][_0x2524('0x69')][_0x2524('0x8a')](_0x2524('0xd6'))['dataToMarker']({'view':_0x2524('0x0')});}[_0x2524('0x62')](){this['repository']=this[_0x2524('0xbc')]['plugins'][_0x2524('0xf4')]('RevisionsRepository'),this[_0x2524('0x38')](),this[_0x2524('0xbc')][_0x2524('0xef')]['on'](_0x2524('0xa6'),()=>{const _0x1dcee2=this[_0x2524('0x103')][_0x2524('0xb9')](0x0),_0x4a39e3=_0x1dcee2&&null===_0x1dcee2[_0x2524('0x8')]?_0x1dcee2:null;if(this[_0x2524('0x32')]=!!_0x4a39e3&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this[_0x2524('0xbc')]['plugins'][_0x2524('0x92')](_0x2524('0x9f'))){const _0x3ccdd0=this[_0x2524('0xa')][_0x2524('0x34')](),_0x25467b=this[_0x2524('0x103')]['getRevision'](_0x3ccdd0);if(_0x25467b)this[_0x2524('0xae')]=_0x25467b['fromVersion'],this[_0x2524('0x32')]=!0x1;else{const _0x2e205a=this[_0x2524('0xa')][_0x2524('0x27')][_0x2524('0xe')]['find'](_0x451fc4=>!_0x451fc4[_0x2524('0x7f')]),_0x10c4b1=_0x2e205a?_0x2e205a[_0x2524('0x5b')]:this[_0x2524('0xa')][_0x2524('0x27')][_0x2524('0x4d')];_0x1dcee2?(_0x1dcee2[_0x2524('0x6c')]<_0x10c4b1&&_0x1dcee2[_0x2524('0xa4')]({'toVersion':_0x10c4b1}),this[_0x2524('0x32')]?(this[_0x2524('0xa')]['getCurrentRevisionId']=()=>_0x4a39e3['id'],this[_0x2524('0xae')]=_0x4a39e3['fromVersion']):(this[_0x2524('0xae')]=_0x1dcee2[_0x2524('0x6c')],this[_0x2524('0x32')]=!0x1)):(this[_0x2524('0xae')]=_0x10c4b1,this[_0x2524('0x32')]=!0x1);}}else _0x4a39e3&&(this[_0x2524('0xbc')][_0x2524('0x65')]['document'][_0x2524('0x27')]['version']=Math[_0x2524('0xf2')](_0x4a39e3[_0x2524('0x6c')],this['editor']['model'][_0x2524('0x5d')]['history'][_0x2524('0x4d')]),_0x4a39e3[_0x2524('0x4a')]===_0x4a39e3[_0x2524('0x6c')]?(0x0!==_0x4a39e3['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4a39e3['id']),this['_continueCurrentRevision']=!0x1):this[_0x2524('0x32')]&&(this[_0x2524('0xa')][_0x2524('0x34')]=()=>_0x4a39e3['id'],this[_0x2524('0xae')]=_0x4a39e3['fromVersion'])),this[_0x2524('0x32')]||(this[_0x2524('0xae')]=this[_0x2524('0xbc')][_0x2524('0x65')]['document'][_0x2524('0x4d')]);this[_0x2524('0xe1')][_0x2524('0x62')](this[_0x2524('0xa')]['history']),this[_0x2524('0x4f')](this[_0x2524('0xae')]),this[_0x2524('0xfd')](this['_startingVersion']),this[_0x2524('0x53')]&&this[_0x2524('0x3f')]();}),this[_0x2524('0xee')](_0x2524('0x48'))['to'](this,_0x2524('0x2e'),_0x1402db=>!_0x1402db);}async['afterInit'](){if(this[_0x2524('0x103')][_0x2524('0x54')]>0x0){const _0x3d2757=this[_0x2524('0x103')]['getRevision'](0x0),_0x4ffd2d=await this[_0x2524('0xc6')](_0x3d2757),_0x33777e=await this[_0x2524('0x22')](_0x3d2757);this[_0x2524('0xdf')](_0x4ffd2d,_0x33777e);}}[_0x2524('0x6b')](_0x5c6742){this[_0x2524('0xa')]=_0x5c6742;}async[_0x2524('0x102')](){const _0x1573a7=await this['_source'][_0x2524('0xd4')]();if(_0x1573a7>this[_0x2524('0xa3')][_0x2524('0x6c')]){await this[_0x2524('0x70')]();const _0x55f034=this[_0x2524('0x2d')]({'revision':this['currentRevision'],'to':_0x1573a7});_0x55f034['authors']=_0x55f034[_0x2524('0x6e')][_0x2524('0xca')](_0x5d2ebc=>this['editor'][_0x2524('0x77')]['get'](_0x2524('0x4b'))[_0x2524('0x33')](_0x5d2ebc)),this[_0x2524('0xa3')][_0x2524('0xa4')](_0x55f034);}}async[_0x2524('0x70')](){this[_0x2524('0x32')]&&!this[_0x2524('0x95')]&&(await this[_0x2524('0xf1')](this[_0x2524('0xa3')]),this[_0x2524('0xe1')]['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this[_0x2524('0xa3')][_0x2524('0x4a')],'authors':this['currentRevision'][_0x2524('0x3')][_0x2524('0x107')]()});}async[_0x2524('0x63')](_0x25ac39={},_0x4e9200=null){const _0x22aead=[];await this[_0x2524('0x70')](),this[_0x2524('0x32')]=!0x1,_0x4e9200>this['currentRevision']['toVersion']&&(_0x4e9200=null),null===_0x4e9200&&(_0x4e9200=await this[_0x2524('0xa')]['getLatestVersion']());const _0x2f1ad4=this[_0x2524('0x9')](_0x4e9200),_0x189aad=this[_0x2524('0x2d')]({'from':_0x2f1ad4,'to':_0x4e9200});if(this['currentRevision'][_0x2524('0x6c')]<_0x4e9200){const _0x548174=this[_0x2524('0x2d')]({'revision':this[_0x2524('0xa3')],'from':_0x4e9200,'to':_0x4e9200});_0x548174[_0x2524('0x3')]=[],_0x548174['authorsIds']=[],_0x548174['id']=this['currentRevision']['id'],this['currentRevision'][_0x2524('0xa4')](_0x548174,!0x0),delete _0x548174['authors'],_0x22aead[_0x2524('0xba')](_0x548174);}_0x25ac39[_0x2524('0x2c')]=this['editor'][_0x2524('0x77')][_0x2524('0xf4')](_0x2524('0x4b'))['me']['id'],_0x25ac39[_0x2524('0xff')]=_0x25ac39[_0x2524('0xff')]||null,_0x25ac39['id']=_0x25ac39['id']||_0x5d90ce(),_0x25ac39={..._0x25ac39,..._0x189aad};const _0x55b21a=this[_0x2524('0x39')](_0x25ac39);_0x22aead[_0x2524('0xba')](_0x25ac39);const _0x2c6bf2=this[_0x2524('0x103')][_0x2524('0x17')](_0x55b21a);if(0x0!==_0x2c6bf2){const _0x452957=this[_0x2524('0x103')]['getRevision'](_0x2c6bf2-0x1);if(_0x452957[_0x2524('0x4a')]!==_0x4e9200){const _0x981ff0=this[_0x2524('0xe1')]['getData'](_0x4e9200,_0x452957[_0x2524('0x6c')]),_0x171d9b={'id':_0x452957['id'],'diffData':_0x981ff0[_0x2524('0x23')],'authorsIds':_0x981ff0[_0x2524('0x6e')],'authors':_0x981ff0[_0x2524('0x6e')]['map'](_0x38b1e4=>this[_0x2524('0xbc')]['plugins']['get'](_0x2524('0x4b'))['getUser'](_0x38b1e4)),'fromVersion':_0x4e9200};_0x452957===this[_0x2524('0xa3')]&&(_0x171d9b[_0x2524('0x86')]=new Date(_0x25ac39[_0x2524('0x86')][_0x2524('0xf5')]()+0xa)),_0x452957[_0x2524('0xa4')](_0x171d9b,!0x0),delete _0x171d9b[_0x2524('0x3')],_0x22aead[_0x2524('0xba')](_0x171d9b);}}if(this['adapter']){for(const _0x41ab7d of _0x22aead)this['_bufferUpdate'](_0x41ab7d['id'],_0x41ab7d,!0x0);this[_0x2524('0x3f')]();}return _0x55b21a;}[_0x2524('0x39')](_0x1eb829){const _0x155b94=this[_0x2524('0x103')][_0x2524('0x44')](_0x1eb829);return this[_0x2524('0x53')]&&_0x155b94['on'](_0x2524('0xa4'),(_0x336525,_0x4bd86f,_0x4fc000)=>{_0x4fc000||(this[_0x2524('0x7b')](_0x4bd86f['id'],_0x4bd86f,!0x0),this['sendBufferedUpdates']());}),this['repository'][_0x2524('0xa7')](_0x155b94,this[_0x2524('0x5f')](_0x155b94)),_0x155b94;}async['getRevisionDocumentData'](_0x3b49ad){await this['_loadRevisionData'](_0x3b49ad);const _0x3c2d99={};for(const _0x3da094 in _0x3b49ad[_0x2524('0x23')]){if(_0x3b49ad[_0x2524('0x23')][_0x3da094]['attachChange']&&!_0x3b49ad[_0x2524('0x23')][_0x3da094][_0x2524('0xf7')][_0x2524('0xcd')])continue;const _0x1e8e31=this[_0x2524('0xa9')](JSON[_0x2524('0x3d')](_0x3b49ad[_0x2524('0x23')][_0x3da094][_0x2524('0xda')])),_0x647e3b=this[_0x2524('0xbc')][_0x2524('0xdd')][_0x2524('0xd9')]['document'],_0x35e996=new _0x17d6fe(_0x647e3b,_0x1e8e31['map'](_0xcdd335=>T(_0xcdd335,this[_0x2524('0xbc')])));this[_0x2524('0xbc')][_0x2524('0xef')][_0x2524('0x1c')][_0x2524('0x81')]('marked'),_0x3c2d99[_0x3da094]=this[_0x2524('0xbc')][_0x2524('0xef')][_0x2524('0x1c')][_0x2524('0x84')](_0x35e996),this[_0x2524('0xbc')][_0x2524('0xef')][_0x2524('0x1c')][_0x2524('0x81')](_0x2524('0xe3'));}return _0x3c2d99;}async['getRevisionRootsAttributes'](_0x4174be){await this[_0x2524('0xf1')](_0x4174be);const _0x354315={};for(const _0x589a03 in _0x4174be['diffData'])_0x4174be['diffData'][_0x589a03]['attachChange']&&!_0x4174be[_0x2524('0x23')][_0x589a03][_0x2524('0xf7')][_0x2524('0xcd')]||(_0x354315[_0x589a03]=_0x4174be[_0x2524('0x23')][_0x589a03]['attributesAfter']||{});return _0x354315;}[_0x2524('0x3f')](){if(0x0===this[_0x2524('0x71')]['size'])return;if(this[_0x2524('0x2e')])return;let _0x153715=Array[_0x2524('0x106')](this[_0x2524('0x71')][_0x2524('0x5e')]());this[_0x2524('0x71')][_0x2524('0x93')]();for(let _0x4d80de=0x0;_0x4d80de<_0x153715[_0x2524('0x54')];_0x4d80de++){const _0x165dba=_0x153715[_0x4d80de];let _0x49bb5e=!0x1;for(const _0x353293 of Object[_0x2524('0x14')](_0x165dba))void 0x0===_0x165dba[_0x353293]?delete _0x165dba[_0x353293]:'id'!==_0x353293&&(_0x49bb5e=!0x0);_0x49bb5e||(_0x153715[_0x4d80de]=null);}if(_0x153715=_0x153715[_0x2524('0x7e')](_0x31431a=>null!==_0x31431a),!_0x153715[_0x2524('0x54')])return;for(let _0x2b44bb=0x0;_0x2b44bb<_0x153715[_0x2524('0x54')];_0x2b44bb++){const _0x4afea1=_0x153715[_0x2b44bb];void 0x0!==_0x4afea1[_0x2524('0x4a')]&&void 0x0===_0x4afea1['toVersion']&&(_0x4afea1['toVersion']=this[_0x2524('0x103')]['getRevision'](_0x4afea1['id'])[_0x2524('0x6c')]),void 0x0!==_0x4afea1[_0x2524('0x6c')]&&void 0x0===_0x4afea1[_0x2524('0x4a')]&&(_0x4afea1[_0x2524('0x4a')]=this[_0x2524('0x103')][_0x2524('0xb9')](_0x4afea1['id'])[_0x2524('0x4a')]);}const _0x3d3eea=this[_0x2524('0xbc')][_0x2524('0x96')][_0x2524('0xf4')](_0x2524('0xe4'));this[_0x2524('0x2e')]=!0x0,this[_0x2524('0xad')](),this['adapter'][_0x2524('0x85')](_0x153715,_0x3d3eea)['finally'](()=>{this[_0x2524('0x2e')]=!0x1;})[_0x2524('0x37')](_0x202644=>{if(_0x202644)for(const _0x37b765 of _0x202644)this['setRevisionData']({'id':_0x37b765['id'],'createdAt':_0x37b765[_0x2524('0x86')]});this[_0x2524('0x21')](),this[_0x2524('0x3f')]();});}[_0x2524('0xdf')](_0x1fc2d2,_0x1898ea){let _0x2c8cd3=this[_0x2524('0xbc')][_0x2524('0x96')]['get'](_0x2524('0xfc')),_0x56dc66=this[_0x2524('0xbc')][_0x2524('0x96')][_0x2524('0xf4')](_0x2524('0xbe'));if(void 0x0===_0x2c8cd3){_0x2c8cd3={};for(const _0x858615 of this[_0x2524('0xbc')]['model'][_0x2524('0x5d')][_0x2524('0x9e')]())_0x2c8cd3[_0x858615]='';}if(_0x2524('0x98')==typeof _0x2c8cd3&&(_0x2c8cd3={'main':_0x2c8cd3}),void 0x0===_0x56dc66){_0x56dc66={};for(const _0x2a6747 of this['editor'][_0x2524('0x65')][_0x2524('0x5d')][_0x2524('0x9e')]())_0x56dc66[_0x2a6747]={};}let _0x5322a6=!0x1;const _0xb85d6b=Object[_0x2524('0x14')](_0x2c8cd3),_0x3fee60=Object[_0x2524('0x14')](_0x1fc2d2);for(const _0x28401e of _0xb85d6b){if(_0x2c8cd3[_0x28401e]!==_0x1fc2d2[_0x28401e]&&''!==_0x2c8cd3[_0x28401e][_0x2524('0x15')]()){_0x5322a6=!0x0;break;}if(!_0x587449(_0x56dc66[_0x28401e],_0x1898ea[_0x28401e])&&Object['keys'](_0x56dc66[_0x28401e])[_0x2524('0x54')]>0x0){_0x5322a6=!0x0;break;}}_0x5322a6||(_0x5322a6=_0x3fee60['some'](_0x2d4137=>!_0xb85d6b[_0x2524('0x29')](_0x2d4137))),_0x5322a6&&_0x557e88(_0x2524('0xed'),{'editorData':_0x2c8cd3,'editorRootsAttributes':_0x56dc66,'revisionData':_0x1fc2d2,'revisionRootsAttributes':_0x1898ea}),this[_0x2524('0xbc')]['config'][_0x2524('0x9a')](_0x2524('0xfc'),_0x1fc2d2),this[_0x2524('0xbc')]['config'][_0x2524('0x9a')]('rootsAttributes',_0x1898ea);}[_0x2524('0xad')](){if(!this[_0x2524('0x89')]){const _0x4f4b7f=this[_0x2524('0xbc')][_0x2524('0x77')][_0x2524('0xf4')](_0x2524('0xcb'));this['_pendingAction']=_0x4f4b7f[_0x2524('0x94')](_0x10f8b9(this[_0x2524('0xbc')][_0x2524('0xcf')],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this[_0x2524('0x89')]&&(this['editor']['plugins'][_0x2524('0xf4')](_0x2524('0xcb'))[_0x2524('0xc7')](this['_pendingAction']),this[_0x2524('0x89')]=null);}['_findInsertionIndex'](_0x131f37){const _0x388fc7=this[_0x2524('0x103')][_0x2524('0x41')]();_0x388fc7[_0x2524('0xa8')]();let _0x416d4c=0x0;for(;_0x416d4c<_0x388fc7[_0x2524('0x54')];){const _0x4e0ac0=_0x388fc7[_0x416d4c];if(_0x4e0ac0===this[_0x2524('0xa3')]){_0x416d4c++;continue;}if(_0x4e0ac0['id']===this[_0x2524('0x80')])break;const _0x282b35=_0x131f37[_0x2524('0x6c')]-_0x4e0ac0[_0x2524('0x6c')]||_0x131f37['fromVersion']-_0x4e0ac0[_0x2524('0x4a')];if(_0x282b35>0x0)break;if(_0x282b35<0x0)_0x416d4c++;else{if(!_0x131f37[_0x2524('0x8')]&&_0x4e0ac0['creator'])break;if(_0x4e0ac0[_0x2524('0x8')]||!_0x131f37[_0x2524('0x8')]){if(_0x131f37[_0x2524('0x86')]>_0x4e0ac0[_0x2524('0x86')])break;_0x416d4c++;}else _0x416d4c++;}}return _0x416d4c;}['setRevisionData'](_0x3ecf5b){const _0x17166e=this['repository'][_0x2524('0xb9')](_0x3ecf5b['id']);if(_0x3ecf5b[_0x2524('0x86')]&&(_0x3ecf5b[_0x2524('0x86')]=new Date(_0x3ecf5b[_0x2524('0x86')])),_0x3ecf5b[_0x2524('0x6e')]){const _0x23e1e0=this['editor']['plugins']['get']('Users');_0x3ecf5b['authors']=_0x3ecf5b[_0x2524('0x6e')]['map'](_0x737cc7=>_0x23e1e0[_0x2524('0x33')](_0x737cc7));}_0x17166e[_0x2524('0xa4')](_0x3ecf5b,!0x0);}[_0x2524('0x2d')]({revision:_0x4d745f=null,from:_0x3d6f2a=null,to:_0x2976ef=null}){_0x3d6f2a=null!==_0x3d6f2a?_0x3d6f2a:_0x4d745f['fromVersion'],_0x2976ef=null!==_0x2976ef?_0x2976ef:_0x4d745f['toVersion'];const _0x118548=this[_0x2524('0xe1')][_0x2524('0x6a')](_0x3d6f2a,_0x2976ef),_0xccb279={'diffData':_0x118548['diffData'],'authorsIds':_0x118548[_0x2524('0x6e')],'fromVersion':_0x3d6f2a,'toVersion':_0x2976ef};if(!_0x4d745f||_0x2976ef!==_0x4d745f[_0x2524('0x6c')]){const _0x314076=_0x2976ef-0x1,_0x14a141=this[_0x2524('0xa')][_0x2524('0x27')]['getOperation'](_0x314076);_0xccb279[_0x2524('0x86')]=_0x14a141&&_0x14a141[_0x2524('0x86')]||new Date();}if(this[_0x2524('0x95')]&&_0x3d6f2a===this[_0x2524('0x95')][_0x2524('0x4a')])for(const _0xd0a30b of this['_loadedStateData']['authors'])_0xccb279[_0x2524('0x6e')][_0x2524('0x29')](_0xd0a30b['id'])||_0xccb279[_0x2524('0x6e')][_0x2524('0xba')](_0xd0a30b['id']);return _0xccb279;}[_0x2524('0xf1')](_0x1dded7){if(!_0x1dded7||_0x1dded7[_0x2524('0x23')])return Promise[_0x2524('0xc1')]();{const _0x547fde=this[_0x2524('0xbc')][_0x2524('0x96')]['get'](_0x2524('0xe4'));return this[_0x2524('0x53')]['getRevision']({'channelId':_0x547fde,'revisionId':_0x1dded7['id']})['then'](_0x1c745e=>{_0x1dded7[_0x2524('0x23')]=_0x1c745e['diffData'];});}}[_0x2524('0x7b')](_0x33e5e3,_0x20b5ab,_0x1d4865){if(this[_0x2524('0x71')][_0x2524('0x92')](_0x33e5e3)){const _0x1ef5c5=this[_0x2524('0x71')]['get'](_0x33e5e3);_0x20b5ab=_0x1d4865?{..._0x1ef5c5,..._0x20b5ab}:{..._0x20b5ab,..._0x1ef5c5};}this['_bufferedUpdates'][_0x2524('0x9a')](_0x33e5e3,_0x20b5ab);}['_getFromVersion'](_0x1067e5){const _0x355571=this[_0x2524('0x103')][_0x2524('0x41')]();_0x355571[_0x2524('0xa8')](),_0x355571['shift']();const _0x48ae8f=_0x355571['find'](_0x26cce3=>_0x26cce3[_0x2524('0x6c')]<=_0x1067e5)[_0x2524('0x6c')];return _0x48ae8f<this[_0x2524('0xae')]?this['_startingVersion']:_0x48ae8f;}['_createInitialRevision'](_0x380383){const _0x772f37=this[_0x2524('0x103')][_0x2524('0xb9')](this['repository'][_0x2524('0x54')]-0x1);if(_0x772f37)this['_initialRevisionId']=_0x772f37['id'];else{const _0x154e3c=!this['editor'][_0x2524('0x65')]['document'][_0x2524('0xb3')][_0x2524('0xb')](_0x5f47fb=>this[_0x2524('0xbc')]['model'][_0x2524('0x73')](_0x5f47fb)),_0x5cbff1=this[_0x2524('0xbc')][_0x2524('0x77')][_0x2524('0xf4')]('Users')['me']['id'],_0x4c870c=_0x10f8b9(this[_0x2524('0xbc')]['locale'],_0x154e3c?_0x2524('0xb2'):_0x2524('0x8b'));this[_0x2524('0x82')]({'from':_0x380383,'to':_0x380383,'id':this[_0x2524('0x80')],'name':_0x4c870c,'creatorId':_0x5cbff1});}}['_createCurrentRevision'](_0x3ba91d){const _0x16d4a4=this[_0x2524('0xa')][_0x2524('0x34')]();this['currentRevision']=this[_0x2524('0x103')][_0x2524('0xb9')](_0x16d4a4),this[_0x2524('0xa3')]||(this['currentRevision']=this[_0x2524('0x82')]({'from':_0x3ba91d,'to':_0x3ba91d,'id':_0x16d4a4,'name':'','creatorId':null}));}[_0x2524('0x82')]({name:_0x1cd463,from:_0x39f36a,to:_0x28eefb,creatorId:_0xe7483d,id:_0x32ff56}){const _0x1bcd82=this['buildRevisionData']({'from':_0x39f36a,'to':_0x28eefb});_0x1bcd82[_0x2524('0xff')]=_0x1cd463,_0x1bcd82['creatorId']=_0xe7483d,_0x1bcd82['id']=_0x32ff56;const _0x15c1ff=this[_0x2524('0x39')](_0x1bcd82);return this['adapter']&&this[_0x2524('0x7b')](_0x1bcd82['id'],_0x1bcd82,!0x0),_0x15c1ff;}['_setConversion'](){this[_0x2524('0xbc')][_0x2524('0x69')][_0x2524('0x8a')]('dataDowncast')['markerToData']({'model':'revision'});}[_0x2524('0xa9')](_0x45f452){return(_0x45f452=_0x45f452[_0x2524('0x7e')](_0x182242=>!_0x182242['name']||_0x2524('0xac')!==_0x182242[_0x2524('0xff')]&&'revision-end'!==_0x182242['name']))[_0x2524('0x59')](_0x1ef0b7=>{_0x2524('0x98')!=typeof _0x1ef0b7&&(_0x1ef0b7['children']=this[_0x2524('0xa9')](_0x1ef0b7[_0x2524('0xe5')]),_0x1ef0b7[_0x2524('0x66')]=_0x1ef0b7[_0x2524('0x66')][_0x2524('0x7e')](_0x12da29=>!_0x12da29[0x0][_0x2524('0xa2')](_0x2524('0x6f'))));}),_0x45f452;}}function T(_0x4b1d09,_0x53742c){const _0x500a98=_0x53742c[_0x2524('0xdd')][_0x2524('0xd9')][_0x2524('0x5d')];if('string'==typeof _0x4b1d09)return new _0x499567(_0x500a98,_0x4b1d09);{const _0x111158=_0x4b1d09[_0x2524('0xe5')][_0x2524('0xca')](_0x1fc81e=>T(_0x1fc81e,_0x53742c));return new(F[_0x4b1d09[(_0x2524('0x91'))]]||_0x4babdd)(_0x500a98,_0x4b1d09[_0x2524('0xff')],_0x4b1d09[_0x2524('0x66')],_0x111158);}}class B{constructor(_0x1410c3){this[_0x2524('0xbc')]=_0x1410c3,this[_0x2524('0x4e')]=new Map(),this[_0x2524('0x3b')]=-0x1,this['_lastTo']=-0x1,this[_0x2524('0x90')]=new Map(),this[_0x2524('0x8d')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x2524('0xb8')]=new Map(),this[_0x2524('0x67')]=new Map(),this[_0x2524('0x99')]=new Map(),this[_0x2524('0xd8')]=new Map(),this[_0x2524('0x25')]=new Map(),this[_0x2524('0x61')]=new Map(),this[_0x2524('0x2')]=new Map(),this[_0x2524('0xc2')]=0x1,this[_0x2524('0x9b')]=this['editor'][_0x2524('0x65')]['document']['getRootNames'](),this[_0x2524('0x9b')]['push'](_0x2524('0x30'));}[_0x2524('0x62')](_0x57e4c6){this[_0x2524('0x79')]=_0x57e4c6;const _0x4202ab=new Map(),_0x512f02=new Map(),_0x13d73a=this[_0x2524('0xbc')][_0x2524('0x65')][_0x2524('0x5d')]['getRootNames'](!0x0);_0x13d73a[_0x2524('0xba')](_0x2524('0x30'));for(const _0x1c7041 of _0x13d73a){const _0x5eba14=this[_0x2524('0xbc')]['model'][_0x2524('0x5d')][_0x2524('0x1')](_0x1c7041),_0x56adb8=J(_0x5eba14);_0x4202ab[_0x2524('0x9a')](_0x1c7041,_0x56adb8),_0x512f02['set'](_0x1c7041,Object[_0x2524('0x55')](_0x5eba14[_0x2524('0x56')]()));}const _0x38e4a1=Array['from'](this[_0x2524('0xbc')]['model'][_0x2524('0x13')])[_0x2524('0xca')](_0x46f9e7=>[_0x46f9e7['name'],_0x46f9e7[_0x2524('0x4')]()]),_0x413614=this['source']['version'];this[_0x2524('0x52')](_0x413614,_0x4202ab,_0x38e4a1,_0x512f02),this[_0x2524('0x7')]=this[_0x2524('0xc2')];const _0x3bfb9b=new Map(),_0x24184e=new Map();for(const _0x46845c of this[_0x2524('0x9b')]){const _0x15df01=H(_0x46845c);_0x3bfb9b[_0x2524('0x9a')](_0x46845c,_0x15df01),_0x24184e['set'](_0x46845c,{});}this[_0x2524('0x52')](Number[_0x2524('0xa1')],_0x3bfb9b,[],_0x24184e);}['getData'](_0xfc80e1,_0x19c703){if(this[_0x2524('0x3b')]===_0xfc80e1&&this[_0x2524('0x26')]<=_0x19c703)this[_0x2524('0x4e')][_0x2524('0xcc')]>0x1&&this[_0x2524('0x68')](this[_0x2524('0x26')]),this[_0x2524('0x58')](this[_0x2524('0x26')],_0x19c703,!0x0);else{if(!this[_0x2524('0x4e')][_0x2524('0x92')](_0xfc80e1)){const _0x466fb0=this[_0x2524('0x4c')](_0xfc80e1);this[_0x2524('0xb0')](_0x466fb0,_0xfc80e1,!0x1);}this['_calculateMetaData'](_0xfc80e1,_0x19c703,!0x0);}return this['_lastFrom']=_0xfc80e1,this[_0x2524('0x26')]=_0x19c703,this[_0x2524('0x16')]();}['loadState'](_0x540af){this[_0x2524('0xfe')](),this[_0x2524('0x3b')]=_0x540af['fromVersion'],this[_0x2524('0x26')]=_0x540af[_0x2524('0x6c')];for(const _0x1e119c in _0x540af[_0x2524('0x23')]){const _0x215f53=_0x540af[_0x2524('0x23')][_0x1e119c]['attachChange'],_0x3082ac=_0x3cb004(_0x540af[_0x2524('0x23')][_0x1e119c][_0x2524('0xa5')])||{},_0x57f36d=this[_0x2524('0x87')](_0x540af[_0x2524('0x23')][_0x1e119c]['deletions']);_0x57f36d[_0x2524('0xb5')]=_0x1e119c,_0x57f36d[_0x2524('0x7a')]=!_0x215f53||!_0x215f53[_0x2524('0xcd')],_0x57f36d[_0x2524('0xcd')]=()=>_0x57f36d['_isAttached'],this[_0x2524('0xb8')][_0x2524('0x9a')](_0x1e119c,_0x57f36d),this[_0x2524('0x67')][_0x2524('0x9a')](_0x1e119c,_0x3082ac),_0x215f53&&this[_0x2524('0x2')]['set'](_0x1e119c,_0x215f53);const _0x3a8002=this['_makeIdsRoot'](_0x57f36d);this[_0x2524('0xd8')][_0x2524('0x9a')](_0x1e119c,_0x3a8002);for(const [_0x2870c8,_0x7e9e5f]of _0x57f36d[_0x2524('0x13')]){if(!_0x2870c8[_0x2524('0xa2')]('revision:'))continue;const _0x2f93d2=_0x2870c8['split'](':')[0x2];for(const _0xe4eb9f of _0x7e9e5f[_0x2524('0x97')]({'singleCharacters':!0x0})){const _0x5edd1b=this['_getVidAttributeName'](_0xe4eb9f),_0x5e41ac=_0x2524('0x5')==_0xe4eb9f[_0x2524('0x91')]?_0xe4eb9f[_0x2524('0xe0')][_0x2524('0x43')][_0x2524('0x107')](0x0,-0x1):_0xe4eb9f[_0x2524('0xe0')][_0x2524('0x43')],_0x30e9b7=_0x3a8002[_0x2524('0x18')](_0x5e41ac)['getAttribute'](_0x5edd1b);this[_0x2524('0x25')][_0x2524('0x9a')](_0x30e9b7,{'userId':_0x2f93d2});}}}this[_0x2524('0x7')]=this[_0x2524('0xc2')];const _0x1a9751=[...Array(this['_revisionId'])['keys']()][_0x2524('0x107')](0x1)[_0x2524('0x7e')](_0x51ff42=>!this[_0x2524('0x25')][_0x2524('0x92')](_0x51ff42));let _0x1b4dc7=0x0;const _0x14e44a=new Map();for(const _0x5c0725 in _0x540af[_0x2524('0x23')]){const _0x527154=_0x540af[_0x2524('0x23')][_0x5c0725][_0x2524('0xf7')],_0x40a4a3=_0x3cb004(_0x540af[_0x2524('0x23')][_0x5c0725][_0x2524('0x8f')])||{},_0x368fba=this[_0x2524('0x87')](_0x540af[_0x2524('0x23')][_0x5c0725][_0x2524('0xda')]);_0x368fba['rootName']=_0x5c0725,_0x368fba[_0x2524('0x7a')]=!_0x527154||_0x527154['isAttached'],_0x368fba[_0x2524('0xcd')]=()=>_0x368fba[_0x2524('0x7a')],this[_0x2524('0x8d')][_0x2524('0x9a')](_0x5c0725,_0x368fba),this[_0x2524('0x10')][_0x2524('0x9a')](_0x5c0725,_0x40a4a3);const _0x5b2579=this[_0x2524('0xe7')](_0x368fba,Number['NEGATIVE_INFINITY']);this[_0x2524('0x99')]['set'](_0x5c0725,_0x5b2579),_0x14e44a[_0x2524('0x9a')](_0x5c0725,_0x368fba[_0x2524('0xcd')]()?_0x40a4a3:{});for(const [_0x6507a4,_0x304c10]of _0x368fba['markers']){if(!_0x6507a4[_0x2524('0xa2')](_0x2524('0xd2')))continue;const _0x1d6be0=_0x6507a4[_0x2524('0x40')](':')[0x2];for(const _0x2e3d59 of _0x304c10[_0x2524('0x97')]({'singleCharacters':!0x0})){const _0x2a794d=this[_0x2524('0xd7')](_0x2e3d59),_0x573aae=this[_0x2524('0xc2')]++,_0x835e20='elementEnd'==_0x2e3d59['type']?_0x2e3d59[_0x2524('0xe0')][_0x2524('0x43')][_0x2524('0x107')](0x0,-0x1):_0x2e3d59[_0x2524('0xe0')][_0x2524('0x43')];_0x5b2579[_0x2524('0x18')](_0x835e20)[_0x2524('0xaf')](_0x2a794d,_0x573aae),this['_touched'][_0x2524('0x9a')](_0x573aae,{'userId':_0x1d6be0});}}for(const _0x279d58 of this['editor'][_0x2524('0x65')]['createRangeIn'](_0x368fba)['getWalker']({'singleCharacters':!0x0})){const _0x250133=this[_0x2524('0xd7')](_0x279d58),_0x82ef72='elementEnd'==_0x279d58[_0x2524('0x91')]?_0x279d58[_0x2524('0xe0')]['path'][_0x2524('0x107')](0x0,-0x1):_0x279d58[_0x2524('0xe0')]['path'],_0x556ad1=_0x5b2579[_0x2524('0x18')](_0x82ef72);_0x556ad1[_0x2524('0x88')](_0x250133)>0x0||_0x556ad1[_0x2524('0xaf')](_0x250133,_0x1a9751[_0x1b4dc7++]);}for(const [_0x9044d0,_0x4b442b]of _0x368fba['markers'])_0x9044d0['startsWith']('revision:')||this['_markers'][_0x2524('0x9a')](_0x9044d0,_0x4b442b);}const _0x4178e2=H(_0x2524('0x30'));this[_0x2524('0xb8')][_0x2524('0x9a')](_0x2524('0x30'),_0x4178e2),this[_0x2524('0xd8')][_0x2524('0x9a')]('$graveyard',this[_0x2524('0xe7')](_0x4178e2,0x1));const _0x134203=H('$graveyard');this[_0x2524('0x8d')][_0x2524('0x9a')]('$graveyard',_0x134203),this[_0x2524('0x99')][_0x2524('0x9a')](_0x2524('0x30'),this['_makeIdsRoot'](_0x134203,0x1));const _0x5e458a=Array['from'](this[_0x2524('0x8d')])['map'](([_0x13ffb2,_0x49b0ee])=>[_0x13ffb2,J(_0x49b0ee)]);this[_0x2524('0x52')](this[_0x2524('0x26')],_0x5e458a,this['_markers'],_0x14e44a);}['_makeModelFromViewString'](_0x54e792){const _0x481338=JSON[_0x2524('0x3d')](_0x54e792),_0x4f6768=this['editor'][_0x2524('0xdd')][_0x2524('0xd9')][_0x2524('0x5d')],_0x143c92=new _0x17d6fe(_0x4f6768,_0x481338['map'](_0x6b471e=>T(_0x6b471e,this['editor'])));return this['editor'][_0x2524('0xef')]['toModel'](_0x143c92);}[_0x2524('0x52')](_0x502f16,_0x1968f6,_0x24d579,_0x2cd6d2){const _0x407bee=new Map(_0x1968f6),_0x806491=new Map(_0x3cb004(_0x2cd6d2)),_0x18ec7f=new Map();for(const [_0x43c645,_0xb7a20c]of _0x24d579)_0x18ec7f[_0x2524('0x9a')](_0x43c645,{'start':_0xb7a20c[_0x2524('0x1f')][_0x2524('0x6')](),'end':_0xb7a20c['end'][_0x2524('0x6')](),'rootName':_0xb7a20c[_0x2524('0xfa')][_0x2524('0xb5')]});this[_0x2524('0x4e')]['set'](_0x502f16,{'roots':_0x407bee,'markers':_0x18ec7f,'rootsAttributes':_0x806491});}[_0x2524('0x68')](_0x22b955){this[_0x2524('0x4e')][_0x2524('0x19')](_0x22b955);}[_0x2524('0xea')](){this[_0x2524('0xfe')](),this[_0x2524('0x3b')]=-0x1,this[_0x2524('0x26')]=-0x1,this[_0x2524('0x4e')]['clear'](),this[_0x2524('0x62')](this['source']);}[_0x2524('0xfe')](){this[_0x2524('0x25')][_0x2524('0x93')](),this['_touchedMarkers']['clear'](),this[_0x2524('0x2')][_0x2524('0x93')](),this['_diffRoots'][_0x2524('0x93')](),this[_0x2524('0x10')][_0x2524('0x93')](),this['_baseRoots'][_0x2524('0x93')](),this[_0x2524('0x67')][_0x2524('0x93')](),this[_0x2524('0x99')][_0x2524('0x93')](),this[_0x2524('0xd8')][_0x2524('0x93')](),this['_markers'][_0x2524('0x93')](),this[_0x2524('0xc2')]=0x1,this['_startingRevisionId']=this['_revisionId'];}[_0x2524('0xe7')](_0x367ea6,_0xab2ebf=null){let _0x6fcfce=null;_0x367ea6['is']('documentFragment')||(_0x6fcfce=new _0x552bef(_0x367ea6[_0x2524('0xff')],{'vid_start':null===_0xab2ebf?this['_revisionId']++:_0xab2ebf++}));const _0x3560bb=[];for(const _0x107b4a of _0x367ea6[_0x2524('0x57')]())if(_0x107b4a['is'](_0x2524('0xde'))){_0x3560bb[_0x2524('0xba')](this[_0x2524('0xe7')](_0x107b4a,_0xab2ebf));const _0x550864=_0x3560bb[_0x3560bb['length']-0x1];null!==_0xab2ebf&&(_0xab2ebf=_0x550864['is'](_0x2524('0xde'),_0x2524('0xf3'))?_0x550864[_0x2524('0x88')]('vid')+0x1:_0x550864['getAttribute'](_0x2524('0x76'))+0x1);}else for(let _0x1573a5=0x0;_0x1573a5<_0x107b4a[_0x2524('0x3e')];_0x1573a5++)_0x3560bb[_0x2524('0xba')](new _0x552bef(_0x2524('0xf3'),{'vid':null===_0xab2ebf?this[_0x2524('0xc2')]++:_0xab2ebf++}));if(_0x367ea6['is'](_0x2524('0xaa'))){const _0x554715=H(_0x367ea6[_0x2524('0xb5')]);return _0x554715['_insertChild'](0x0,_0x3560bb),_0x554715;}return _0x6fcfce[_0x2524('0xaf')](_0x2524('0x76'),null===_0xab2ebf?this[_0x2524('0xc2')]++:_0xab2ebf++),_0x6fcfce['_insertChild'](0x0,_0x3560bb),_0x6fcfce;}[_0x2524('0xb0')](_0x458570,_0x32ce71,_0x42b567){this[_0x2524('0xfe')]();const {roots:_0x26b296,markers:_0x1fd1e6,rootsAttributes:_0x3e99e5}=this['_savedMetaData'][_0x2524('0xf4')](_0x458570);this[_0x2524('0xb8')]=new Map(_0x26b296),this[_0x2524('0x67')]=new Map(_0x3cb004(_0x3e99e5));for(const [_0x1644bc,_0x331ade]of this[_0x2524('0xb8')])if(_0x2524('0x30')!==_0x1644bc&&(this['_diffRoots'][_0x2524('0x9a')](_0x1644bc,J(_0x331ade)),this[_0x2524('0x10')]=new Map(_0x3cb004(_0x3e99e5)),_0x42b567)){const _0x17aca6=this[_0x2524('0xc2')];this[_0x2524('0x99')][_0x2524('0x9a')](_0x1644bc,this[_0x2524('0xe7')](_0x331ade)),this[_0x2524('0xd8')][_0x2524('0x9a')](_0x1644bc,this[_0x2524('0xe7')](_0x331ade,_0x17aca6));}this['_startingRevisionId']=this['_revisionId'],this[_0x2524('0x8d')][_0x2524('0x9a')](_0x2524('0x30'),J(this[_0x2524('0xb8')][_0x2524('0xf4')]('$graveyard'))),_0x42b567&&this['_idsRoots'][_0x2524('0x9a')](_0x2524('0x30'),this[_0x2524('0xe7')](this[_0x2524('0xb8')][_0x2524('0xf4')](_0x2524('0x30'))));for(const [_0x5e4001,_0x3c4c7b]of _0x1fd1e6){const _0x3107a9=this[_0x2524('0xb8')][_0x2524('0xf4')](_0x3c4c7b[_0x2524('0xb5')]),_0x869837=this[_0x2524('0x8d')][_0x2524('0xf4')](_0x3c4c7b[_0x2524('0xb5')]),_0x18d368=new _0x176ec4(this[_0x2524('0x51')](_0x3c4c7b['start'],_0x3107a9),this[_0x2524('0x51')](_0x3c4c7b['end'],_0x3107a9)),_0x217629=this[_0x2524('0xbd')](_0x18d368,_0x869837);_0x3107a9['markers'][_0x2524('0x9a')](_0x5e4001,_0x18d368),this[_0x2524('0x90')][_0x2524('0x9a')](_0x5e4001,_0x217629);}this['_applyOperations'](_0x458570,_0x32ce71,_0x42b567);}[_0x2524('0x58')](_0x5ce5f9,_0x2a293d,_0x4c3f82){for(const _0xd4b478 of this[_0x2524('0x79')]['getOperations'](_0x5ce5f9,_0x2a293d))this[_0x2524('0x60')](_0xd4b478,_0x4c3f82);for(const _0x39eb67 of this[_0x2524('0x8d')][_0x2524('0x5e')]())_0x39eb67['markers'][_0x2524('0x93')]();for(const [_0x11d4b6,_0x198fb9]of this[_0x2524('0x90')]){this[_0x2524('0x8d')][_0x2524('0xf4')](_0x198fb9[_0x2524('0xfa')][_0x2524('0xb5')])[_0x2524('0x13')][_0x2524('0x9a')](_0x11d4b6,_0x198fb9[_0x2524('0x6')]());}const _0x48a48e=new Map(),_0x214ae4=new Map();for(const [_0x1e47d7,_0x458699]of this[_0x2524('0x8d')])_0x48a48e[_0x2524('0x9a')](_0x1e47d7,J(_0x458699)),_0x214ae4['set'](_0x1e47d7,this[_0x2524('0x10')][_0x2524('0xf4')](_0x1e47d7));this[_0x2524('0x52')](_0x2a293d,_0x48a48e,this[_0x2524('0x90')],_0x214ae4);}[_0x2524('0x4c')](_0x8d9bd0){const _0x13524e=Array[_0x2524('0x106')](this[_0x2524('0x4e')][_0x2524('0x14')]());_0x13524e['sort']((_0x3955de,_0x50f877)=>_0x3955de-_0x50f877),_0x13524e[_0x2524('0xa8')]();for(const _0x7e7c6c of _0x13524e)if(_0x7e7c6c<_0x8d9bd0)return _0x7e7c6c;return Number[_0x2524('0xa1')];}[_0x2524('0xd')](_0x24f879,_0xf9bf79){const _0x32f568=Array[_0x2524('0x106')](_0xf9bf79[_0x2524('0x13')])[_0x2524('0xca')](([_0x1bb120,_0x5dbdbc])=>[_0x1bb120,this[_0x2524('0xbd')](_0x5dbdbc,_0x24f879)]);_0x24f879[_0x2524('0x13')]=new Map(_0x32f568);}['_transformMarkers'](_0x521129){for(const _0x19dbda of this['_markers'][_0x2524('0x5e')]()){const _0x50e79c=_0x19dbda[_0x2524('0x5c')](_0x521129),_0x9b5064=_0x176ec4[_0x2524('0xc5')](_0x50e79c);_0x19dbda[_0x2524('0x1f')]=_0x9b5064[_0x2524('0x1f')],_0x19dbda[_0x2524('0xeb')]=_0x9b5064[_0x2524('0xeb')];}}[_0x2524('0x60')](_0x17d84a,_0x558a05){if(_0x2524('0x101')==_0x17d84a[_0x2524('0x91')]||_0x2524('0xbf')==_0x17d84a[_0x2524('0x91')])return void this[_0x2524('0x7d')](_0x17d84a,_0x558a05);if(_0x2524('0x46')==_0x17d84a[_0x2524('0x91')]){const _0x266646=_0x17d84a[_0x2524('0xe8')][_0x2524('0xfa')][_0x2524('0xb5')];this[_0x2524('0x8d')][_0x2524('0x92')](_0x266646)||(this[_0x2524('0x8d')][_0x2524('0x9a')](_0x266646,H(_0x266646,!0x0)),this[_0x2524('0x10')]['set'](_0x266646,{}),_0x558a05&&this[_0x2524('0x99')][_0x2524('0x9a')](_0x266646,H(_0x266646,!0x0)));}if(_0x2524('0xb1')==_0x17d84a[_0x2524('0x91')]||'removeRootAttribute'==_0x17d84a['type']||_0x2524('0x74')==_0x17d84a[_0x2524('0x91')])return void this[_0x2524('0x9d')](_0x17d84a);const _0xbf5d0e=this[_0x2524('0xbb')](_0x17d84a,this[_0x2524('0x8d')]);if('marker'!==_0x17d84a[_0x2524('0x91')]&&(_0xbf5d0e['_execute'](),this[_0x2524('0x8c')](_0xbf5d0e)),_0x558a05)switch(_0xbf5d0e[_0x2524('0x91')]){case _0x2524('0x46'):this['_handleInsertOperation'](_0x17d84a);break;case _0x2524('0x47'):case _0x2524('0xc7'):case'reinsert':this[_0x2524('0x28')](_0x17d84a);break;case _0x2524('0xab'):this[_0x2524('0x11')](_0x17d84a);break;case _0x2524('0x40'):this[_0x2524('0x1d')](_0x17d84a);break;case _0x2524('0x24'):this['_handleMarkerOperation'](_0x17d84a);}}[_0x2524('0xbb')](_0x583a7b,_0x23516c){const _0x5bb335=_0x583a7b['clone']();return _0x5bb335[_0x2524('0xec')]=_0x583a7b[_0x2524('0xec')],this[_0x2524('0x35')](_0x5bb335,_0x23516c),_0x5bb335;}[_0x2524('0x7c')](_0x19761a){return _0x19761a[_0x2524('0xca')](_0x334ab1=>{const _0x4863cd=this[_0x2524('0xd7')](_0x334ab1);return Number(_0x334ab1[_0x2524('0x1a')][_0x2524('0x88')](_0x4863cd));});}[_0x2524('0x64')](_0x10ac24,_0x147dc9){if(_0x10ac24['is'](_0x2524('0xde'),_0x2524('0xf3')))_0x147dc9[_0x2524('0xba')]({'item':_0x10ac24,'type':_0x2524('0x1e')});else{_0x10ac24['is'](_0x2524('0xde'))&&_0x147dc9[_0x2524('0xba')]({'item':_0x10ac24,'type':_0x2524('0xb4')});for(const _0x3c030d of _0x10ac24[_0x2524('0x57')]())this['_generateTape'](_0x3c030d,_0x147dc9);_0x10ac24['is'](_0x2524('0xde'))&&_0x147dc9[_0x2524('0xba')]({'item':_0x10ac24,'type':_0x2524('0x5')});}return _0x147dc9;}[_0x2524('0x16')](){const _0x2a74dc=new Map(this[_0x2524('0x25')]),_0x5b94b7=new Map(_0x2a74dc),_0x4fd5fe=new Map(),_0x1574f8={'insertions':{},'deletions':{}},_0x501743={'insertions':{},'deletions':{}},_0x27ddcb=new Map(),_0x5988a1=new Set([...this[_0x2524('0xb8')][_0x2524('0x14')](),...this[_0x2524('0x8d')][_0x2524('0x14')]()]);_0x5988a1[_0x2524('0x19')]('$graveyard');for(const _0x8673f4 of _0x5988a1){const _0x27bed9=this[_0x2524('0x8d')][_0x2524('0xf4')](_0x8673f4)||H(_0x8673f4,!0x1),_0x19ff99=this[_0x2524('0xb8')][_0x2524('0xf4')](_0x8673f4)||H(_0x8673f4,!0x1);_0x27bed9[_0x2524('0xcd')]()||_0x19ff99[_0x2524('0xcd')]()?(_0x1574f8[_0x2524('0xda')][_0x8673f4]=J(_0x27bed9),_0x1574f8[_0x2524('0x42')][_0x8673f4]=J(_0x19ff99),this[_0x2524('0xd')](_0x1574f8[_0x2524('0x42')][_0x8673f4],_0x19ff99),this[_0x2524('0xd')](_0x1574f8[_0x2524('0xda')][_0x8673f4],_0x27bed9),_0x501743[_0x2524('0xda')][_0x8673f4]=this[_0x2524('0x64')](this[_0x2524('0x99')][_0x2524('0xf4')](_0x8673f4),[]),_0x501743[_0x2524('0x42')][_0x8673f4]=this[_0x2524('0x64')](this[_0x2524('0xd8')][_0x2524('0xf4')](_0x8673f4)||H(_0x8673f4,!0x1),[])):_0x5988a1[_0x2524('0x19')](_0x8673f4);}for(const _0x364426 of _0x5988a1){const _0x47010b=_0x501743['insertions'][_0x364426];for(const _0x341ad4 of _0x47010b){const _0x29ade=this['_getVidAttributeName'](_0x341ad4),_0x5ea636=_0x341ad4[_0x2524('0x1a')]['getAttribute'](_0x29ade);_0x5b94b7['delete'](_0x5ea636),_0x5ea636>=this['_startingRevisionId']&&_0x4fd5fe['set'](_0x5ea636,_0x2a74dc[_0x2524('0xf4')](_0x5ea636));}}for(const _0x3187e0 of _0x5988a1){const _0x15191d=_0x501743['insertions'][_0x3187e0],_0x1c7354=this['_getBaseVids'](_0x501743[_0x2524('0x42')][_0x3187e0]);let _0x16b6c1=0x0;for(const _0x502e42 of _0x15191d){const _0xa95d97=this[_0x2524('0xd7')](_0x502e42),_0x51bd7f=_0x502e42['item'][_0x2524('0x88')](_0xa95d97);if(!_0x4fd5fe['has'](_0x51bd7f)&&!_0x27ddcb[_0x2524('0x92')](_0x51bd7f)){if(_0x5b94b7['has'](_0x51bd7f))_0x16b6c1++;else{if(_0x51bd7f!=_0x1c7354[_0x16b6c1]){const _0xa71695=_0x2a74dc[_0x2524('0xf4')](_0x51bd7f)||_0x2a74dc[_0x2524('0xf4')](_0x1c7354[_0x16b6c1]);for(;_0x51bd7f!=_0x1c7354[_0x16b6c1];)_0x5b94b7[_0x2524('0x92')](_0x1c7354[_0x16b6c1])||(_0x27ddcb[_0x2524('0x9a')](_0x1c7354[_0x16b6c1],_0xa71695),_0x2a74dc['set'](_0x1c7354[_0x16b6c1],_0xa71695)),_0x16b6c1++;}_0x16b6c1++;}}}}for(const _0x5e9ca6 of _0x5988a1){const _0x51e5b3=_0x501743[_0x2524('0xda')][_0x5e9ca6];for(const _0x2d0a8e of _0x51e5b3){const _0x521ba8=this[_0x2524('0xd7')](_0x2d0a8e),_0x26fc32=_0x2d0a8e['item'][_0x2524('0x88')](_0x521ba8);if(_0x27ddcb[_0x2524('0x92')](_0x26fc32)){const _0x2f0fe9=_0x27ddcb['get'](_0x26fc32);_0x5b94b7['has'](_0x26fc32)||_0x5b94b7[_0x2524('0x9a')](_0x26fc32,{..._0x2f0fe9}),_0x4fd5fe[_0x2524('0x9a')](_0x26fc32,{..._0x2f0fe9});}}}for(const _0x771cce of _0x5b94b7[_0x2524('0x14')]())_0x771cce>=this[_0x2524('0x7')]&&_0x5b94b7['delete'](_0x771cce);const _0x4930fa=new Map();for(const _0x2d85db of _0x5988a1){let _0x40d635=_0x501743[_0x2524('0xda')][_0x2d85db];for(const _0x47b401 of _0x40d635)if(_0x47b401[_0x2524('0x1a')]['is']('element',_0x2524('0x12'))){const _0x96d461=this[_0x2524('0xd7')](_0x47b401),_0xe80af1=_0x47b401['item']['getAttribute'](_0x96d461);if(_0x4fd5fe[_0x2524('0x92')](_0xe80af1)){const _0x5eefee=_0x47b401['item']['parent']['parent'][_0x2524('0x88')](_0x2524('0x36')),_0x5651a9=_0x4930fa[_0x2524('0xf4')](_0x5eefee)||new Set();_0x5651a9[_0x2524('0x94')](_0x4fd5fe[_0x2524('0xf4')](_0xe80af1)[_0x2524('0x75')]),_0x4930fa[_0x2524('0x9a')](_0x5eefee,_0x5651a9);}}_0x40d635=_0x501743[_0x2524('0x42')][_0x2d85db];for(const _0x4b205d of _0x40d635)if(_0x4b205d['item']['is'](_0x2524('0xde'),_0x2524('0x12'))){const _0xb25209=this[_0x2524('0xd7')](_0x4b205d),_0x4e2142=_0x4b205d[_0x2524('0x1a')][_0x2524('0x88')](_0xb25209);if(_0x5b94b7['has'](_0x4e2142)){const _0x17ecb6=_0x4b205d[_0x2524('0x1a')][_0x2524('0x105')][_0x2524('0x105')][_0x2524('0x88')](_0x2524('0x36')),_0x4164f6=_0x4930fa[_0x2524('0xf4')](_0x17ecb6)||new Set();_0x4164f6[_0x2524('0x94')](_0x5b94b7['get'](_0x4e2142)['userId']),_0x4930fa['set'](_0x17ecb6,_0x4164f6);}}for(const _0x135367 of _0x4930fa[_0x2524('0x14')]())(_0x4fd5fe['has'](_0x135367)||_0x5b94b7[_0x2524('0x92')](_0x135367))&&_0x4930fa['delete'](_0x135367);}for(const _0x2da72a of _0x5988a1){const _0x7a6a49=_0x501743[_0x2524('0xda')][_0x2da72a];let _0x197881=null,_0x3faea1=null;for(const _0x1bf3f5 of _0x7a6a49){const _0x1098b3=this[_0x2524('0xd7')](_0x1bf3f5),_0xa1dee6=_0x1bf3f5[_0x2524('0x1a')]['getAttribute'](_0x1098b3),_0x3a05f9=_0x4930fa[_0x2524('0xf4')](_0xa1dee6);_0x3a05f9&&_0x2524('0xb4')==_0x1bf3f5[_0x2524('0x91')]&&(_0x197881=Array[_0x2524('0x106')](_0x3a05f9)[0x0],_0x3faea1=_0x1bf3f5[_0x2524('0x1a')][_0x2524('0x88')](_0x2524('0x76'))),_0x197881&&(_0x5b94b7[_0x2524('0x9a')](_0xa1dee6,{'userId':_0x197881}),_0x4fd5fe['set'](_0xa1dee6,{'userId':_0x197881})),_0xa1dee6==_0x3faea1&&(_0x197881=null,_0x3faea1=null);}}const _0x69b7c0={},_0x329a73=new Set();for(const _0x243e26 of _0x5988a1){const _0x52022d=_0x1574f8[_0x2524('0x42')][_0x243e26],_0x5c9ff5=_0x1574f8[_0x2524('0xda')][_0x243e26];for(const {userId:_0x2126ee}of this[_0x2524('0x61')]['values']())null!==_0x2126ee&&_0x329a73['add'](_0x2126ee);for(const {userId:_0x11ed39}of this[_0x2524('0x2')][_0x2524('0x5e')]())null!==_0x11ed39&&_0x329a73[_0x2524('0x94')](_0x11ed39);this['_markChanges'](_0x5c9ff5,_0x501743['insertions'][_0x243e26],_0x4fd5fe,_0x2524('0xe6'),_0x329a73),this[_0x2524('0xc')](_0x52022d,_0x501743[_0x2524('0x42')][_0x243e26],_0x5b94b7,'deletion',_0x329a73),_0x69b7c0[_0x243e26]={'insertions':this[_0x2524('0x78')](_0x5c9ff5),'deletions':this['_prepareViewToSave'](_0x52022d),'attachChange':this[_0x2524('0x2')][_0x2524('0xf4')](_0x243e26)||null,'attributesBefore':_0x3cb004(this['_baseRootsAttributes'][_0x2524('0xf4')](_0x243e26))||{},'attributesAfter':_0x3cb004(this[_0x2524('0x10')][_0x2524('0xf4')](_0x243e26))};}return{'diffData':_0x69b7c0,'authorsIds':Array[_0x2524('0x106')](_0x329a73)};}[_0x2524('0xf0')](_0x39ad84){for(const [,_0x829862]of _0x39ad84[_0x2524('0x13')]){const _0x25bc93=_0x829862[_0x2524('0x1f')][_0x2524('0x100')]()[_0x2524('0x7e')](_0xd9da81=>_0x2524('0x12')==_0xd9da81[_0x2524('0xff')]);for(const _0x2f543a of _0x25bc93)0x1==_0x2f543a[_0x2524('0xd1')]&&_0x2f543a[_0x2524('0xf')](0x0)['is'](_0x2524('0xde'),_0x2524('0x72'))&&_0x2f543a[_0x2524('0xf')](0x0)[_0x2524('0xaf')](_0x2524('0x2f'),!0x0);}}['_prepareViewToSave'](_0x4e0725){this[_0x2524('0xf0')](_0x4e0725);const _0x1d7903=this[_0x2524('0xbc')][_0x2524('0xef')][_0x2524('0xdc')](_0x4e0725,{}),_0x26cf8a=Array[_0x2524('0x106')](_0x1d7903[_0x2524('0x57')]())[_0x2524('0xca')](_0x243f19=>this['_getViewJson'](_0x243f19));return JSON[_0x2524('0x5a')](_0x26cf8a);}[_0x2524('0xa0')](_0x525d15){if(_0x525d15['is'](_0x2524('0xf3')))return _0x525d15[_0x2524('0xef')];{const _0x56245a=_0x525d15;return{'type':Object[_0x2524('0x14')](F)[_0x2524('0xb')](_0x320a01=>_0x525d15 instanceof F[_0x320a01]),'name':_0x56245a[_0x2524('0xff')],'attributes':Array['from'](_0x56245a[_0x2524('0x56')]()),'children':Array[_0x2524('0x106')](_0x56245a[_0x2524('0x57')]())[_0x2524('0xca')](_0x35092b=>this[_0x2524('0xa0')](_0x35092b))};}}['_markChanges'](_0x278bdb,_0x172d6f,_0x35f38b,_0x8f12b6,_0xfdac2f){let _0x278f11=null,_0x632d90=null,_0xed695f=0x0;const _0x39b380=this[_0x2524('0xbc')][_0x2524('0x65')];for(let _0x58a2cc=0x0;_0x58a2cc<_0x172d6f['length'];_0x58a2cc++){const _0x4d4a88=this[_0x2524('0xd7')](_0x172d6f[_0x58a2cc]),_0x484f39=_0x172d6f[_0x58a2cc][_0x2524('0x1a')][_0x2524('0x88')](_0x4d4a88),_0x3b363c=_0x35f38b[_0x2524('0xf4')](_0x484f39),_0x1cd468=_0x58a2cc==_0x172d6f[_0x2524('0x54')]-0x1;(!_0x278f11&&_0x3b363c&&(_0x278f11=_0x3b363c,_0x632d90=_0x172d6f[_0x58a2cc]),_0x278f11&&(!_0x3b363c||_0x3b363c[_0x2524('0x75')]!=_0x278f11[_0x2524('0x75')]))&&(_0x78e84c(_0x3b363c,q(_0x632d90,_0x278bdb,_0x39b380),q(_0x172d6f[_0x58a2cc],_0x278bdb,_0x39b380)),_0x278f11=_0x3b363c||null,_0x632d90=_0x3b363c?_0x172d6f[_0x58a2cc]:null),_0x278f11&&_0x1cd468&&_0x78e84c(_0x3b363c,q(_0x632d90,_0x278bdb,_0x39b380),G(_0x172d6f[_0x58a2cc],_0x278bdb,_0x39b380));}function _0x78e84c(_0x49f279,_0xf4bc6f,_0x5d01bb){const _0x2ae7e4=_0x278f11[_0x2524('0x75')],_0x13744a=_0x2524('0xd2')+_0x8f12b6+':'+_0x2ae7e4+':'+_0xed695f++,_0x3b0d72=_0x39b380['createRange'](_0xf4bc6f,_0x5d01bb);_0x278bdb['markers'][_0x2524('0x9a')](_0x13744a,_0x3b0d72),null!==_0x2ae7e4&&_0xfdac2f[_0x2524('0x94')](_0x2ae7e4);}}[_0x2524('0xd7')](_0x16746a){switch(_0x16746a[_0x2524('0x91')]){case _0x2524('0xb4'):return _0x2524('0x36');case'elementEnd':return'vid_end';default:return _0x2524('0xc3');}}[_0x2524('0x35')](_0x16a99e,_0x4abb6d){_0x16a99e['baseVersion']=null;for(const _0x31d25c in _0x16a99e){const _0x1e8d39=_0x16a99e[_0x31d25c];if(_0x1e8d39 instanceof _0x823d76){const _0x48b38e=_0x4abb6d['get'](_0x1e8d39['root'][_0x2524('0xb5')]);_0x16a99e[_0x31d25c]=this[_0x2524('0x51')](_0x1e8d39,_0x48b38e);}if(_0x1e8d39 instanceof _0x176ec4){const _0xc15852=_0x4abb6d[_0x2524('0xf4')](_0x1e8d39[_0x2524('0xfa')]['rootName']);_0x16a99e[_0x31d25c]=this[_0x2524('0xbd')](_0x1e8d39,_0xc15852);}_0x2524('0xfa')===_0x31d25c&&(_0x16a99e[_0x2524('0xfa')]=_0x4abb6d[_0x2524('0xf4')](_0x16a99e[_0x2524('0xfa')][_0x2524('0xb5')]));}}[_0x2524('0xbd')](_0x1f3ba1,_0x5418ae){return this['editor'][_0x2524('0x65')][_0x2524('0xd5')](this[_0x2524('0x51')](_0x1f3ba1[_0x2524('0x1f')],_0x5418ae),this[_0x2524('0x51')](_0x1f3ba1[_0x2524('0xeb')],_0x5418ae));}[_0x2524('0x51')](_0x2502ec,_0x288a5d){return this[_0x2524('0xbc')][_0x2524('0x65')]['createPositionFromPath'](_0x288a5d,_0x2502ec[_0x2524('0x43')],_0x2502ec[_0x2524('0x2b')]);}['_handleInsertOperation'](_0x5656db){const _0x5efb50=this[_0x2524('0x99')][_0x2524('0xf4')](_0x5656db[_0x2524('0xe8')][_0x2524('0xfa')][_0x2524('0xb5')]),_0x1d1bbe=this['_fixPosition'](_0x5656db['position'],_0x5efb50),_0x55d70c=null===_0x5656db['_authorId']?null:_0x5656db[_0x2524('0xec')]||this[_0x2524('0xbc')][_0x2524('0x77')][_0x2524('0xf4')](_0x2524('0x4b'))['me']['id'],_0x19739b=_0x1d1bbe['parent'],_0x47189a=this['_revisionId'],_0x438c08=[];for(const _0x2c23e7 of _0x5656db['nodes'])if(_0x2c23e7['is'](_0x2524('0xde')))_0x438c08[_0x2524('0xba')](this[_0x2524('0xe7')](_0x2c23e7));else for(let _0x585030=0x0;_0x585030<_0x2c23e7['offsetSize'];_0x585030++)_0x438c08['push'](new _0x552bef('$text',{'vid':this[_0x2524('0xc2')]++}));const _0x265126=this[_0x2524('0xc2')];for(let _0x83c89d=_0x47189a;_0x83c89d<_0x265126;_0x83c89d++)this[_0x2524('0x25')][_0x2524('0x9a')](_0x83c89d,{'userId':_0x55d70c});_0x19739b[_0x2524('0xe9')](_0x1d1bbe[_0x2524('0x8e')],_0x438c08);}[_0x2524('0x28')](_0x49c5bf){(_0x49c5bf=this[_0x2524('0xbb')](_0x49c5bf,this[_0x2524('0x99')]))[_0x2524('0xc4')]();const _0x3b9cfe=null===_0x49c5bf[_0x2524('0xec')]?null:_0x49c5bf[_0x2524('0xec')]||this[_0x2524('0xbc')][_0x2524('0x77')]['get'](_0x2524('0x4b'))['me']['id'],_0x2d62a9=_0x49c5bf[_0x2524('0x104')](),_0x40ab32=_0x2d62a9[_0x2524('0x105')],_0x20d5ec=_0x2d62a9[_0x2524('0x8e')];!function _0x1f26b4(_0x574493,_0x20359c,_0x5581c8,_0x510a91){for(let _0x1b24e3=_0x5581c8;_0x1b24e3<_0x510a91;_0x1b24e3++){const _0x28b3ee=_0x20359c['getChild'](_0x1b24e3);_0x28b3ee['is'](_0x2524('0xde'),_0x2524('0xf3'))?_0x574493[_0x2524('0x9a')](_0x28b3ee[_0x2524('0x88')](_0x2524('0xc3')),{'userId':_0x3b9cfe}):(_0x574493[_0x2524('0x9a')](_0x28b3ee[_0x2524('0x88')](_0x2524('0x36')),{'userId':_0x3b9cfe}),_0x1f26b4(_0x574493,_0x28b3ee,0x0,_0x28b3ee[_0x2524('0xd1')]),_0x574493[_0x2524('0x9a')](_0x28b3ee[_0x2524('0x88')](_0x2524('0x76')),{'userId':_0x3b9cfe}));}}(this[_0x2524('0x25')],_0x40ab32,_0x20d5ec,_0x20d5ec+_0x49c5bf[_0x2524('0x83')]);}[_0x2524('0x11')](_0x2cd13e){const _0x690cc6=null===(_0x2cd13e=this[_0x2524('0xbb')](_0x2cd13e,this[_0x2524('0x99')]))[_0x2524('0xec')]?null:_0x2cd13e[_0x2524('0xec')]||this[_0x2524('0xbc')][_0x2524('0x77')]['get'](_0x2524('0x4b'))['me']['id'],_0x27cf8e=_0x2cd13e[_0x2524('0xe2')]['parent'],_0x5f6178=_0x2cd13e[_0x2524('0xb7')][_0x2524('0x105')],_0x2c24f1=_0x27cf8e[_0x2524('0x88')](_0x2524('0x76')),_0x4939ec=_0x5f6178['getAttribute'](_0x2524('0x36'));_0x27cf8e[_0x2524('0xaf')](_0x2524('0x76'),_0x5f6178[_0x2524('0x88')](_0x2524('0x76'))),_0x5f6178[_0x2524('0xaf')](_0x2524('0x76'),_0x2c24f1),this['_touched']['set'](_0x4939ec,{'userId':_0x690cc6}),this[_0x2524('0x25')]['set'](_0x2c24f1,{'userId':_0x690cc6}),_0x2cd13e['_execute']();}['_handleSplitOperation'](_0x3ebcb5){const _0xf18818=null===(_0x3ebcb5=this['_cloneOperation'](_0x3ebcb5,this[_0x2524('0x99')]))[_0x2524('0xec')]?null:_0x3ebcb5[_0x2524('0xec')]||this[_0x2524('0xbc')]['plugins'][_0x2524('0xf4')]('Users')['me']['id'],_0x4223bd=_0x3ebcb5[_0x2524('0xd3')],_0x40825f=_0x3ebcb5[_0x2524('0x49')][_0x2524('0x105')];_0x3ebcb5[_0x2524('0xc4')]();const _0x26bacb=_0x40825f['getAttribute'](_0x2524('0x76')),_0x1d576b=_0x3ebcb5['insertionPosition'][_0x2524('0xc8')];if(_0x4223bd){const _0x475ade=_0x1d576b[_0x2524('0x88')](_0x2524('0x76')),_0x308b2e=_0x40825f[_0x2524('0x88')]('vid_end');_0x40825f[_0x2524('0xaf')](_0x2524('0x76'),_0x475ade),_0x1d576b[_0x2524('0xaf')](_0x2524('0x76'),_0x308b2e),this[_0x2524('0x25')][_0x2524('0x9a')](_0x40825f['getAttribute'](_0x2524('0x76')),{'userId':_0xf18818}),this[_0x2524('0x25')][_0x2524('0x9a')](_0x1d576b[_0x2524('0x88')]('vid_start'),{'userId':_0xf18818});}else{const _0x155808=this[_0x2524('0xc2')]++,_0x1c429f=this[_0x2524('0xc2')]++;_0x40825f[_0x2524('0xaf')](_0x2524('0x76'),_0x155808),_0x1d576b[_0x2524('0xaf')](_0x2524('0x36'),_0x1c429f),_0x1d576b[_0x2524('0xaf')]('vid_end',_0x26bacb),this[_0x2524('0x25')]['set'](_0x155808,{'userId':_0xf18818}),this[_0x2524('0x25')][_0x2524('0x9a')](_0x1c429f,{'userId':_0xf18818});}}[_0x2524('0x1b')](_0x3715fb){if(!_0x3715fb[_0x2524('0xf6')])return;const _0x374500=(_0x3715fb=this[_0x2524('0xbb')](_0x3715fb,this[_0x2524('0x8d')]))[_0x2524('0x2a')]?_0x3715fb[_0x2524('0x2a')][_0x2524('0xfa')]:null,_0x2cf22e=_0x3715fb[_0x2524('0xfb')]?_0x3715fb[_0x2524('0xfb')][_0x2524('0xfa')]:null;_0x374500&&this['_markers'][_0x2524('0x19')](_0x3715fb[_0x2524('0xff')]),_0x2cf22e&&this[_0x2524('0x90')]['set'](_0x3715fb[_0x2524('0xff')],_0x3715fb[_0x2524('0xfb')][_0x2524('0x6')]());const _0xce3aa2=null===_0x3715fb[_0x2524('0xec')]?null:_0x3715fb[_0x2524('0xec')]||this['editor'][_0x2524('0x77')][_0x2524('0xf4')](_0x2524('0x4b'))['me']['id'],_0x4c78c0=_0x3715fb[_0x2524('0xff')];if(!this['_touchedMarkers']['has'](_0x4c78c0))return void this[_0x2524('0x61')]['set'](_0x4c78c0,{'range':_0x3715fb[_0x2524('0x2a')],'userId':_0xce3aa2});const _0x4728fa=this[_0x2524('0x61')]['get'](_0x4c78c0),_0x5587da=_0x4728fa['range'],_0x52e05c=_0x3715fb[_0x2524('0xfb')];null==_0x5587da&&null==_0x52e05c||_0x5587da&&_0x52e05c&&_0x5587da[_0x2524('0xf9')](_0x52e05c)?this[_0x2524('0x61')]['delete'](_0x3715fb[_0x2524('0xff')]):_0x4728fa[_0x2524('0x75')]=_0xce3aa2;}[_0x2524('0x7d')](_0xe70d1f,_0x1c88c4){this['_diffRoots'][_0x2524('0x92')](_0xe70d1f[_0x2524('0xb5')])?this[_0x2524('0x8d')][_0x2524('0xf4')](_0xe70d1f[_0x2524('0xb5')])[_0x2524('0x7a')]=_0xe70d1f[_0x2524('0x3c')]:(this[_0x2524('0x8d')][_0x2524('0x9a')](_0xe70d1f[_0x2524('0xb5')],H(_0xe70d1f[_0x2524('0xb5')],!0x0)),this[_0x2524('0x10')][_0x2524('0x9a')](_0xe70d1f[_0x2524('0xb5')],{}),_0x1c88c4&&this[_0x2524('0x99')][_0x2524('0x9a')](_0xe70d1f[_0x2524('0xb5')],H(_0xe70d1f[_0x2524('0xb5')],!0x0)));const _0x2d6563=null===_0xe70d1f[_0x2524('0xec')]?null:_0xe70d1f[_0x2524('0xec')]||this[_0x2524('0xbc')][_0x2524('0x77')][_0x2524('0xf4')](_0x2524('0x4b'))['me']['id'],_0x180f91=this[_0x2524('0x2')][_0x2524('0xf4')](_0xe70d1f[_0x2524('0xb5')]);_0x180f91&&_0x180f91['userId']===_0x2d6563?this['_touchedRoots']['delete'](_0xe70d1f[_0x2524('0xb5')]):this[_0x2524('0x2')][_0x2524('0x9a')](_0xe70d1f[_0x2524('0xb5')],{'userId':_0x2d6563,'isAttached':_0xe70d1f[_0x2524('0x3c')]});}[_0x2524('0x9d')](_0x4ce82e){const _0x55e514=this[_0x2524('0x10')][_0x2524('0xf4')](_0x4ce82e[_0x2524('0xfa')]['rootName']);null===_0x4ce82e[_0x2524('0xb6')]?delete _0x55e514[_0x4ce82e[_0x2524('0x50')]]:_0x55e514[_0x4ce82e[_0x2524('0x50')]]=_0x4ce82e[_0x2524('0xb6')];}}function J(_0x4cd373){const _0x250ee4=H(_0x4cd373[_0x2524('0xb5')],_0x4cd373[_0x2524('0xcd')]());for(const _0x525686 of _0x4cd373[_0x2524('0x57')]()){const _0x4106e9=_0x525686[_0x2524('0x20')](!0x0);_0x250ee4[_0x2524('0x9c')](_0x4106e9);}return _0x250ee4;}function H(_0x2bc915,_0x2058c4=!0x0){const _0x359e13=new _0x480898();return _0x359e13[_0x2524('0xb5')]=_0x2bc915,_0x359e13['_isAttached']=_0x2058c4,_0x359e13[_0x2524('0xcd')]=()=>_0x359e13[_0x2524('0x7a')],_0x359e13;}function q(_0x41d066,_0x2cf297,_0x19b823){const _0x289b7c='elementEnd'==_0x41d066[_0x2524('0x91')]?_0x19b823[_0x2524('0xd0')](_0x41d066[_0x2524('0x1a')],_0x2524('0xeb')):_0x19b823[_0x2524('0x3a')](_0x41d066[_0x2524('0x1a')]);return _0x19b823[_0x2524('0xce')](_0x2cf297,_0x289b7c[_0x2524('0x43')],_0x289b7c[_0x2524('0x2b')]);}function G(_0x5aaf3b,_0x230f45,_0x41872b){const _0xe86fa4='elementStart'==_0x5aaf3b[_0x2524('0x91')]?_0x41872b[_0x2524('0xd0')](_0x5aaf3b['item'],0x0):_0x41872b[_0x2524('0x45')](_0x5aaf3b[_0x2524('0x1a')]);return _0x41872b['createPositionFromPath'](_0x230f45,_0xe86fa4[_0x2524('0x43')],_0xe86fa4[_0x2524('0x2b')]);}
|
|
23
|
+
const _0x1327=['RevisionTracker','hasContent','_bufferedUpdates','loadState','_markers','define','_execute','createRange','data-revision-','_applyOperations','isEqual','isAttached','path','_setConversion','default','_isPendingUpdate','_handleMoveOperation','slice','_initialRoots','Users','_idsRoots','_authorId','attributes','_transformMarkers','_handleSplitOperation','marker','getRevisionDocumentData','_getViewJson','get','insertions','$graveyard','_handleRootOperation','type','_loadedStateData','getData','resolve','map','createPositionAt','_cloneOperation','size','clone','Empty\x20document','_diffRoots','source','toVersion','NEGATIVE_INFINITY','nodes','editor','getCurrentRevisionId','initial','editor-initial-data-replaced-with-revision-data','data','rootsAttributes','getTime','currentRevision','_pendingAction','userId','stickiness','getNodeByPath','some','sourcePosition','addRevision','from','startsWith','getWalker','buildRevisionData','_loadState','_prepareViewToSave','_getBaseVids','repository','getRootNames','authors','_isInit','_source','_lastTo','ready','_handleInsertOperation','revisionHistory.resumeUnsavedRevision','collaboration.channelId','newValue','getUser','revision-end','getAncestors','_removeRevisionMarkers','afterInit','RevisionsRepository','getChild','init','reInit','$text','markerToData','targetPosition','_baseRoots','roots','_calculateMetaData','_handleMarkerOperation','set','insertion','_getFromVersion','getChildren','_startingRevisionId','initialData','addRevisionData','root','_removePendingAction','creator','_revisionDataBuilder','rootName','item','getRevisions','_baseIdsRoots','range','length','_touched','delete','end','key','plugins','_handleMergeOperation','createPositionFromPath','revision-start','getAttributes','_getState','_startingVersion','_fixPosition','name','_markChanges','getRevisionRootsAttributes','getOperation','updateRevisions','history','revision:','addRootAttribute','_saveMetaData','diffData','_continueCurrentRevision','_insertChild','_reset','graveyardPosition','markers','editing','update','start','upcast','add','getMovedRangeStart','_handleOperation','trim','vid_start','toView','createdAt','getRevision','toModel','position','_baseRootsAttributes','_copyMarkers','useFillerType','getRange','_lastFrom','offsetSize','isReady','newRange','includes','childCount','getAttribute','then','baseVersion','_findInsertionIndex','getRoot','_fixRange','_removeMetaData','adapter','_addPendingAction','for','_touchedMarkers','_savedMetaData','_makeModelFromViewString','isEnabled','getLatestVersion','attachChange','_update','_revisionId','_diffRootsAttributes','_generateTape','dataToMarker','elementStart','saveRevision','element','revision','isAdd','max','_getPreviousFrom','tableCell','keepParagraph','nodeAfter','filter','_fixOperation','howMany','documentFragment','clear','addRoot','toData','keys','getIndex','splitPosition','_isAttached','fromEntries','PendingActions','_loadRevisionData','offset','version','marked','authorsIds','_getVidAttributeName','deletions','reverse','document','parent','_processRootBeforeSave','has','insert','bind','processor','setRevisionData','parse','find','config','previousPosition','pluginName','creatorId','vid','RealTimeCollaborationClient','_makeRevision','_createFromRanges','_initialRevisionId','setSource','createRangeIn','oldRange','model','_bufferUpdate','remove','values','text','paragraph','_setAttribute','vid_end','requires','_appendChild','finally','_createCurrentRevision','_clone','string','detachRoot','view','_makeIdsRoot','split','conversion','dataDowncast','children','_createInitialRevision','_touchedRoots','sendBufferedUpdates','elementEnd','push','locale','fromVersion','_replaceEditorDataWithRevisionData'];(function(_0x5c9e41,_0x1327bc){const _0x2bff69=function(_0x50e378){while(--_0x50e378){_0x5c9e41['push'](_0x5c9e41['shift']());}};_0x2bff69(++_0x1327bc);}(_0x1327,0x1e9));const _0x2bff=function(_0x5c9e41,_0x1327bc){_0x5c9e41=_0x5c9e41-0x0;let _0x2bff69=_0x1327[_0x5c9e41];return _0x2bff69;};import{Users as _0x4997b2}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x271fcb,PendingActions as _0x26b5e6}from'ckeditor5/src/core';import{logWarning as _0x1c3677,uid as _0x3271ad}from'ckeditor5/src/utils';import{Position as _0x28d65f,Range as _0x3ae9d1,Element as _0x296fc7,DocumentFragment as _0x1aa4f2,ViewText as _0x5c4f49,ViewElement as _0x560467,ViewContainerElement as _0x5e475c,ViewAttributeElement as _0x11e9f7,ViewEmptyElement as _0x4b5be2,ViewRawElement as _0x369c57,ViewUIElement as _0x140d33,ViewDocumentFragment as _0x27dc10}from'ckeditor5/src/engine';import _0x41a7fa from'./revisionsrepository';import{getTranslation as _0xdbf272}from'./utils/common-translations';import{cloneDeep as _0x57291b,isEqual as _0xdf99e7}from'lodash-es';const F={'c':_0x5e475c,'a':_0x11e9f7,'e':_0x4b5be2,'r':_0x369c57,'u':_0x140d33};export default class u extends _0x271fcb{static get[_0x2bff('0x6')](){return _0x2bff('0x2d');}static get[_0x2bff('0x18')](){return[_0x4997b2,_0x41a7fa,_0x26b5e6];}constructor(_0x5888dd){super(_0x5888dd),this[_0x2bff('0xd8')]=null,this['currentRevision']=null,this[_0x2bff('0x97')]=new B(this[_0x2bff('0x5c')]),this[_0x2bff('0xc')]=this['editor'][_0x2bff('0x4')][_0x2bff('0x49')](_0x2bff('0x7b'))||_0x2bff('0x5e'),this[_0x2bff('0x2f')]=new Map(),this[_0x2bff('0x4e')]=null;const _0x9d3753=_0x3271ad();this['_source']={'history':this[_0x2bff('0x5c')][_0x2bff('0x10')][_0x2bff('0x105')]['history'],'getLatestVersion':()=>Promise[_0x2bff('0x50')](this[_0x2bff('0x5c')][_0x2bff('0x10')]['document'][_0x2bff('0xff')]),'getCurrentRevisionId':()=>_0x9d3753},this['set'](_0x2bff('0xcd'),!0x1),this[_0x2bff('0x8d')](_0x2bff('0xde'),!0x0),this[_0x2bff('0x8d')](_0x2bff('0x3c'),!0x1),this[_0x2bff('0x5c')]['config'][_0x2bff('0x32')](_0x2bff('0x7a'),!0x0),this['editor'][_0x2bff('0x22')][_0x2bff('0xda')](_0x2bff('0xbc'))[_0x2bff('0xe5')]({'view':_0x2bff('0xe9')});}['init'](){this[_0x2bff('0x72')]=this[_0x2bff('0x5c')][_0x2bff('0xa2')]['get'](_0x2bff('0x82')),this[_0x2bff('0x3a')](),this['editor'][_0x2bff('0x60')]['on'](_0x2bff('0x78'),()=>{const _0x592dde=this[_0x2bff('0x72')][_0x2bff('0xc4')](0x0),_0x2867b4=_0x592dde&&null===_0x592dde[_0x2bff('0x96')]?_0x592dde:null;if(this[_0x2bff('0xb4')]=!!_0x2867b4&&this[_0x2bff('0x5c')][_0x2bff('0x4')][_0x2bff('0x49')](_0x2bff('0x7a')),this['editor'][_0x2bff('0xa2')][_0x2bff('0x108')](_0x2bff('0x9'))){const _0x2aed3e=this[_0x2bff('0x76')][_0x2bff('0x5d')](),_0x2daef2=this[_0x2bff('0x72')][_0x2bff('0xc4')](_0x2aed3e);if(_0x2daef2)this['_startingVersion']=_0x2daef2[_0x2bff('0x2b')],this[_0x2bff('0xb4')]=!0x1;else{const _0x37196c=this['_source'][_0x2bff('0xaf')]['_operations'][_0x2bff('0x3')](_0x760743=>!_0x760743[_0x2bff('0x75')]),_0x19a33c=_0x37196c?_0x37196c[_0x2bff('0xd3')]:this[_0x2bff('0x76')][_0x2bff('0xaf')][_0x2bff('0xff')];_0x592dde?(_0x592dde[_0x2bff('0x59')]<_0x19a33c&&_0x592dde[_0x2bff('0xe1')]({'toVersion':_0x19a33c}),this[_0x2bff('0xb4')]?(this[_0x2bff('0x76')][_0x2bff('0x5d')]=()=>_0x2867b4['id'],this[_0x2bff('0xa8')]=_0x2867b4['fromVersion']):(this[_0x2bff('0xa8')]=_0x592dde['toVersion'],this[_0x2bff('0xb4')]=!0x1)):(this[_0x2bff('0xa8')]=_0x19a33c,this[_0x2bff('0xb4')]=!0x1);}}else _0x2867b4&&(this[_0x2bff('0x5c')][_0x2bff('0x10')]['document'][_0x2bff('0xaf')]['version']=Math[_0x2bff('0xeb')](_0x2867b4[_0x2bff('0x59')],this[_0x2bff('0x5c')][_0x2bff('0x10')][_0x2bff('0x105')][_0x2bff('0xaf')]['version']),_0x2867b4['fromVersion']===_0x2867b4[_0x2bff('0x59')]?(0x0!==_0x2867b4[_0x2bff('0x2b')]&&(this['_source'][_0x2bff('0x5d')]=()=>_0x2867b4['id']),this['_continueCurrentRevision']=!0x1):this[_0x2bff('0xb4')]&&(this[_0x2bff('0x76')][_0x2bff('0x5d')]=()=>_0x2867b4['id'],this['_startingVersion']=_0x2867b4['fromVersion'])),this[_0x2bff('0xb4')]||(this['_startingVersion']=this[_0x2bff('0x5c')]['model'][_0x2bff('0x105')][_0x2bff('0xff')]);this['_revisionDataBuilder']['init'](this['_source'][_0x2bff('0xaf')]),this['_createInitialRevision'](this[_0x2bff('0xa8')]),this[_0x2bff('0x1b')](this[_0x2bff('0xa8')]),this['adapter']&&this[_0x2bff('0x27')]();}),this[_0x2bff('0x10a')](_0x2bff('0xcd'))['to'](this,_0x2bff('0x3c'),_0x3a2813=>!_0x3a2813);}async[_0x2bff('0x81')](){if(this['repository'][_0x2bff('0x9d')]>0x0){const _0x3c2fe7=this[_0x2bff('0x72')][_0x2bff('0xc4')](0x0),_0x376381=await this[_0x2bff('0x47')](_0x3c2fe7),_0x1713eb=await this[_0x2bff('0xac')](_0x3c2fe7);this['_replaceEditorDataWithRevisionData'](_0x376381,_0x1713eb);}}[_0x2bff('0xd')](_0x1d7922){this[_0x2bff('0x76')]=_0x1d7922;}async[_0x2bff('0xba')](){const _0xd10db9=await this[_0x2bff('0x76')][_0x2bff('0xdf')]();if(_0xd10db9>this[_0x2bff('0x63')][_0x2bff('0x59')]){await this[_0x2bff('0x6f')]();const _0x5b1b96=this[_0x2bff('0x6e')]({'revision':this[_0x2bff('0x63')],'to':_0xd10db9});_0x5b1b96[_0x2bff('0x74')]=_0x5b1b96['authorsIds'][_0x2bff('0x51')](_0x324465=>this['editor'][_0x2bff('0xa2')][_0x2bff('0x49')](_0x2bff('0x40'))[_0x2bff('0x7d')](_0x324465)),this[_0x2bff('0x63')][_0x2bff('0xe1')](_0x5b1b96);}}async['_loadState'](){this[_0x2bff('0xb4')]&&!this[_0x2bff('0x4e')]&&(await this[_0x2bff('0xfd')](this[_0x2bff('0x63')]),this[_0x2bff('0x97')][_0x2bff('0x30')](this[_0x2bff('0x63')]),this['_loadedStateData']={'fromVersion':this[_0x2bff('0x63')]['fromVersion'],'authors':this['currentRevision'][_0x2bff('0x74')]['slice']()});}async[_0x2bff('0xe7')](_0x3a7a39={},_0x1bdaec=null){const _0x3a65b9=[];await this[_0x2bff('0x6f')](),this[_0x2bff('0xb4')]=!0x1,_0x1bdaec>this['currentRevision'][_0x2bff('0x59')]&&(_0x1bdaec=null),null===_0x1bdaec&&(_0x1bdaec=await this[_0x2bff('0x76')]['getLatestVersion']());const _0x374cb0=this[_0x2bff('0x8f')](_0x1bdaec),_0x5baa8d=this['buildRevisionData']({'from':_0x374cb0,'to':_0x1bdaec});if(this[_0x2bff('0x63')]['toVersion']<_0x1bdaec){const _0x11606c=this[_0x2bff('0x6e')]({'revision':this[_0x2bff('0x63')],'from':_0x1bdaec,'to':_0x1bdaec});_0x11606c['authors']=[],_0x11606c[_0x2bff('0x101')]=[],_0x11606c['id']=this['currentRevision']['id'],this[_0x2bff('0x63')][_0x2bff('0xe1')](_0x11606c,!0x0),delete _0x11606c[_0x2bff('0x74')],_0x3a65b9[_0x2bff('0x29')](_0x11606c);}_0x3a7a39[_0x2bff('0x7')]=this['editor'][_0x2bff('0xa2')][_0x2bff('0x49')](_0x2bff('0x40'))['me']['id'],_0x3a7a39[_0x2bff('0xaa')]=_0x3a7a39['name']||null,_0x3a7a39['id']=_0x3a7a39['id']||_0x3271ad(),_0x3a7a39={..._0x3a7a39,..._0x5baa8d};const _0x5b56f0=this['addRevisionData'](_0x3a7a39);_0x3a65b9['push'](_0x3a7a39);const _0x2e1262=this[_0x2bff('0x72')][_0x2bff('0xf8')](_0x5b56f0);if(0x0!==_0x2e1262){const _0x333b28=this['repository'][_0x2bff('0xc4')](_0x2e1262-0x1);if(_0x333b28[_0x2bff('0x2b')]!==_0x1bdaec){const _0x18802a=this[_0x2bff('0x97')][_0x2bff('0x4f')](_0x1bdaec,_0x333b28[_0x2bff('0x59')]),_0x2a8670={'id':_0x333b28['id'],'diffData':_0x18802a['diffData'],'authorsIds':_0x18802a['authorsIds'],'authors':_0x18802a[_0x2bff('0x101')][_0x2bff('0x51')](_0x216217=>this[_0x2bff('0x5c')][_0x2bff('0xa2')][_0x2bff('0x49')]('Users')[_0x2bff('0x7d')](_0x216217)),'fromVersion':_0x1bdaec};_0x333b28===this['currentRevision']&&(_0x2a8670[_0x2bff('0xc3')]=new Date(_0x3a7a39[_0x2bff('0xc3')][_0x2bff('0x62')]()+0xa)),_0x333b28[_0x2bff('0xe1')](_0x2a8670,!0x0),delete _0x2a8670['authors'],_0x3a65b9[_0x2bff('0x29')](_0x2a8670);}}if(this[_0x2bff('0xd8')]){for(const _0x7cb497 of _0x3a65b9)this['_bufferUpdate'](_0x7cb497['id'],_0x7cb497,!0x0);this[_0x2bff('0x27')]();}return _0x5b56f0;}[_0x2bff('0x93')](_0x283ce5){const _0x3257eb=this[_0x2bff('0x72')]['createRevision'](_0x283ce5);return this[_0x2bff('0xd8')]&&_0x3257eb['on'](_0x2bff('0xe1'),(_0x35e664,_0x494860,_0x22e3b6)=>{_0x22e3b6||(this['_bufferUpdate'](_0x494860['id'],_0x494860,!0x0),this[_0x2bff('0x27')]());}),this[_0x2bff('0x72')][_0x2bff('0x6a')](_0x3257eb,this['_findInsertionIndex'](_0x3257eb)),_0x3257eb;}async[_0x2bff('0x47')](_0x9822fe){await this[_0x2bff('0xfd')](_0x9822fe);const _0x2e456e={};for(const _0x64000a in _0x9822fe['diffData']){if(_0x9822fe['diffData'][_0x64000a][_0x2bff('0xe0')]&&!_0x9822fe['diffData'][_0x64000a][_0x2bff('0xe0')][_0x2bff('0x38')])continue;const _0x206bb0=this[_0x2bff('0x80')](JSON[_0x2bff('0x2')](_0x9822fe[_0x2bff('0xb3')][_0x64000a]['insertions'])),_0x269d66=this[_0x2bff('0x5c')][_0x2bff('0xb9')][_0x2bff('0x1f')][_0x2bff('0x105')],_0x29507d=new _0x27dc10(_0x269d66,_0x206bb0[_0x2bff('0x51')](_0x2cf328=>T(_0x2cf328,this[_0x2bff('0x5c')])));this['editor'][_0x2bff('0x60')][_0x2bff('0x0')][_0x2bff('0xc9')](_0x2bff('0x100')),_0x2e456e[_0x64000a]=this[_0x2bff('0x5c')][_0x2bff('0x60')][_0x2bff('0x0')][_0x2bff('0xf6')](_0x29507d),this[_0x2bff('0x5c')][_0x2bff('0x60')][_0x2bff('0x0')][_0x2bff('0xc9')](_0x2bff('0x3b'));}return _0x2e456e;}async[_0x2bff('0xac')](_0x542070){await this[_0x2bff('0xfd')](_0x542070);const _0x26f8b0={};for(const _0x20ae01 in _0x542070[_0x2bff('0xb3')])_0x542070['diffData'][_0x20ae01][_0x2bff('0xe0')]&&!_0x542070[_0x2bff('0xb3')][_0x20ae01]['attachChange'][_0x2bff('0x38')]||(_0x26f8b0[_0x20ae01]=_0x542070['diffData'][_0x20ae01]['attributesAfter']||{});return _0x26f8b0;}['sendBufferedUpdates'](){if(0x0===this[_0x2bff('0x2f')][_0x2bff('0x54')])return;if(this['_isPendingUpdate'])return;let _0xe21fc7=Array[_0x2bff('0x6b')](this['_bufferedUpdates'][_0x2bff('0x13')]());this[_0x2bff('0x2f')]['clear']();for(let _0x5d1f8e=0x0;_0x5d1f8e<_0xe21fc7[_0x2bff('0x9d')];_0x5d1f8e++){const _0x392475=_0xe21fc7[_0x5d1f8e];let _0x1a1a8f=!0x1;for(const _0xfa175 of Object[_0x2bff('0xf7')](_0x392475))void 0x0===_0x392475[_0xfa175]?delete _0x392475[_0xfa175]:'id'!==_0xfa175&&(_0x1a1a8f=!0x0);_0x1a1a8f||(_0xe21fc7[_0x5d1f8e]=null);}if(_0xe21fc7=_0xe21fc7[_0x2bff('0xf0')](_0x40cc28=>null!==_0x40cc28),!_0xe21fc7[_0x2bff('0x9d')])return;for(let _0x1f6f57=0x0;_0x1f6f57<_0xe21fc7[_0x2bff('0x9d')];_0x1f6f57++){const _0x51c25a=_0xe21fc7[_0x1f6f57];void 0x0!==_0x51c25a[_0x2bff('0x2b')]&&void 0x0===_0x51c25a[_0x2bff('0x59')]&&(_0x51c25a['toVersion']=this[_0x2bff('0x72')][_0x2bff('0xc4')](_0x51c25a['id'])[_0x2bff('0x59')]),void 0x0!==_0x51c25a[_0x2bff('0x59')]&&void 0x0===_0x51c25a[_0x2bff('0x2b')]&&(_0x51c25a['fromVersion']=this[_0x2bff('0x72')][_0x2bff('0xc4')](_0x51c25a['id'])[_0x2bff('0x2b')]);}const _0x3c4101=this[_0x2bff('0x5c')][_0x2bff('0x4')][_0x2bff('0x49')](_0x2bff('0x7b'));this['_isPendingUpdate']=!0x0,this[_0x2bff('0xd9')](),this[_0x2bff('0xd8')][_0x2bff('0xae')](_0xe21fc7,_0x3c4101)[_0x2bff('0x1a')](()=>{this[_0x2bff('0x3c')]=!0x1;})[_0x2bff('0xd2')](_0x3ed60a=>{if(_0x3ed60a)for(const _0x1c653a of _0x3ed60a)this[_0x2bff('0x1')]({'id':_0x1c653a['id'],'createdAt':_0x1c653a[_0x2bff('0xc3')]});this[_0x2bff('0x95')](),this[_0x2bff('0x27')]();});}[_0x2bff('0x2c')](_0x3dc37a,_0x811fd6){let _0x13202a=this['editor'][_0x2bff('0x4')][_0x2bff('0x49')]('initialData'),_0x2b4da0=this[_0x2bff('0x5c')][_0x2bff('0x4')][_0x2bff('0x49')](_0x2bff('0x61'));if(void 0x0===_0x13202a){_0x13202a={};for(const _0x109668 of this[_0x2bff('0x5c')][_0x2bff('0x10')][_0x2bff('0x105')][_0x2bff('0x73')]())_0x13202a[_0x109668]='';}if(_0x2bff('0x1d')==typeof _0x13202a&&(_0x13202a={'main':_0x13202a}),void 0x0===_0x2b4da0){_0x2b4da0={};for(const _0x1b547b of this[_0x2bff('0x5c')]['model'][_0x2bff('0x105')][_0x2bff('0x73')]())_0x2b4da0[_0x1b547b]={};}let _0xceb6ee=!0x1;const _0x5b24ee=Object[_0x2bff('0xf7')](_0x13202a),_0x318f25=Object['keys'](_0x3dc37a);for(const _0x261e30 of _0x5b24ee){if(_0x13202a[_0x261e30]!==_0x3dc37a[_0x261e30]&&''!==_0x13202a[_0x261e30][_0x2bff('0xc0')]()){_0xceb6ee=!0x0;break;}if(!_0xdf99e7(_0x2b4da0[_0x261e30],_0x811fd6[_0x261e30])&&Object[_0x2bff('0xf7')](_0x2b4da0[_0x261e30])['length']>0x0){_0xceb6ee=!0x0;break;}}_0xceb6ee||(_0xceb6ee=_0x318f25[_0x2bff('0x68')](_0x5d3797=>!_0x5b24ee['includes'](_0x5d3797))),_0xceb6ee&&_0x1c3677(_0x2bff('0x5f'),{'editorData':_0x13202a,'editorRootsAttributes':_0x2b4da0,'revisionData':_0x3dc37a,'revisionRootsAttributes':_0x811fd6}),this[_0x2bff('0x5c')]['config'][_0x2bff('0x8d')](_0x2bff('0x92'),_0x3dc37a),this[_0x2bff('0x5c')][_0x2bff('0x4')][_0x2bff('0x8d')](_0x2bff('0x61'),_0x811fd6);}[_0x2bff('0xd9')](){if(!this['_pendingAction']){const _0x36423d=this['editor'][_0x2bff('0xa2')]['get'](_0x2bff('0xfc'));this[_0x2bff('0x64')]=_0x36423d['add'](_0xdbf272(this['editor'][_0x2bff('0x2a')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x2bff('0x95')](){this['_pendingAction']&&(this[_0x2bff('0x5c')]['plugins'][_0x2bff('0x49')](_0x2bff('0xfc'))['remove'](this[_0x2bff('0x64')]),this[_0x2bff('0x64')]=null);}[_0x2bff('0xd4')](_0x11b5d4){const _0x4f4f2a=this['repository'][_0x2bff('0x9a')]();_0x4f4f2a[_0x2bff('0x104')]();let _0x473031=0x0;for(;_0x473031<_0x4f4f2a[_0x2bff('0x9d')];){const _0x29cf70=_0x4f4f2a[_0x473031];if(_0x29cf70===this['currentRevision']){_0x473031++;continue;}if(_0x29cf70['id']===this['_initialRevisionId'])break;const _0x59f273=_0x11b5d4[_0x2bff('0x59')]-_0x29cf70['toVersion']||_0x11b5d4[_0x2bff('0x2b')]-_0x29cf70['fromVersion'];if(_0x59f273>0x0)break;if(_0x59f273<0x0)_0x473031++;else{if(!_0x11b5d4[_0x2bff('0x96')]&&_0x29cf70[_0x2bff('0x96')])break;if(_0x29cf70['creator']||!_0x11b5d4[_0x2bff('0x96')]){if(_0x11b5d4[_0x2bff('0xc3')]>_0x29cf70[_0x2bff('0xc3')])break;_0x473031++;}else _0x473031++;}}return _0x473031;}[_0x2bff('0x1')](_0x2cc2fc){const _0x524082=this[_0x2bff('0x72')][_0x2bff('0xc4')](_0x2cc2fc['id']);if(_0x2cc2fc[_0x2bff('0xc3')]&&(_0x2cc2fc[_0x2bff('0xc3')]=new Date(_0x2cc2fc[_0x2bff('0xc3')])),_0x2cc2fc['authorsIds']){const _0x19c802=this[_0x2bff('0x5c')][_0x2bff('0xa2')][_0x2bff('0x49')](_0x2bff('0x40'));_0x2cc2fc[_0x2bff('0x74')]=_0x2cc2fc[_0x2bff('0x101')][_0x2bff('0x51')](_0x4b5837=>_0x19c802['getUser'](_0x4b5837));}_0x524082[_0x2bff('0xe1')](_0x2cc2fc,!0x0);}[_0x2bff('0x6e')]({revision:_0x5ba9ca=null,from:_0x3a762f=null,to:_0x5677dc=null}){_0x3a762f=null!==_0x3a762f?_0x3a762f:_0x5ba9ca[_0x2bff('0x2b')],_0x5677dc=null!==_0x5677dc?_0x5677dc:_0x5ba9ca[_0x2bff('0x59')];const _0xe6fcaa=this['_revisionDataBuilder'][_0x2bff('0x4f')](_0x3a762f,_0x5677dc),_0x269092={'diffData':_0xe6fcaa[_0x2bff('0xb3')],'authorsIds':_0xe6fcaa[_0x2bff('0x101')],'fromVersion':_0x3a762f,'toVersion':_0x5677dc};if(!_0x5ba9ca||_0x5677dc!==_0x5ba9ca[_0x2bff('0x59')]){const _0xaff65f=_0x5677dc-0x1,_0x5cd028=this[_0x2bff('0x76')][_0x2bff('0xaf')][_0x2bff('0xad')](_0xaff65f);_0x269092[_0x2bff('0xc3')]=_0x5cd028&&_0x5cd028['createdAt']||new Date();}if(this[_0x2bff('0x4e')]&&_0x3a762f===this['_loadedStateData'][_0x2bff('0x2b')])for(const _0x5e0796 of this[_0x2bff('0x4e')][_0x2bff('0x74')])_0x269092[_0x2bff('0x101')][_0x2bff('0xcf')](_0x5e0796['id'])||_0x269092[_0x2bff('0x101')][_0x2bff('0x29')](_0x5e0796['id']);return _0x269092;}['_loadRevisionData'](_0xe5fb1f){if(!_0xe5fb1f||_0xe5fb1f[_0x2bff('0xb3')])return Promise[_0x2bff('0x50')]();{const _0x301cd3=this[_0x2bff('0x5c')][_0x2bff('0x4')][_0x2bff('0x49')](_0x2bff('0x7b'));return this['adapter'][_0x2bff('0xc4')]({'channelId':_0x301cd3,'revisionId':_0xe5fb1f['id']})[_0x2bff('0xd2')](_0x583555=>{_0xe5fb1f[_0x2bff('0xb3')]=_0x583555[_0x2bff('0xb3')];});}}['_bufferUpdate'](_0x290476,_0x23fc82,_0x143ab6){if(this[_0x2bff('0x2f')][_0x2bff('0x108')](_0x290476)){const _0x480b3e=this[_0x2bff('0x2f')][_0x2bff('0x49')](_0x290476);_0x23fc82=_0x143ab6?{..._0x480b3e,..._0x23fc82}:{..._0x23fc82,..._0x480b3e};}this[_0x2bff('0x2f')][_0x2bff('0x8d')](_0x290476,_0x23fc82);}['_getFromVersion'](_0x5807e6){const _0x5777a8=this['repository'][_0x2bff('0x9a')]();_0x5777a8[_0x2bff('0x104')](),_0x5777a8['shift']();const _0x219231=_0x5777a8[_0x2bff('0x3')](_0x34baf1=>_0x34baf1[_0x2bff('0x59')]<=_0x5807e6)['toVersion'];return _0x219231<this[_0x2bff('0xa8')]?this[_0x2bff('0xa8')]:_0x219231;}[_0x2bff('0x25')](_0x30bbe9){const _0x2f6407=this[_0x2bff('0x72')][_0x2bff('0xc4')](this[_0x2bff('0x72')][_0x2bff('0x9d')]-0x1);if(_0x2f6407)this[_0x2bff('0xc')]=_0x2f6407['id'];else{const _0x1814f0=!this[_0x2bff('0x5c')]['model'][_0x2bff('0x105')][_0x2bff('0x8a')][_0x2bff('0x3')](_0x13eea5=>this['editor'][_0x2bff('0x10')][_0x2bff('0x2e')](_0x13eea5)),_0x3a6a7a=this['editor']['plugins']['get'](_0x2bff('0x40'))['me']['id'],_0x5e0fc9=_0xdbf272(this['editor'][_0x2bff('0x2a')],_0x1814f0?_0x2bff('0x56'):'Initial\x20revision');this[_0x2bff('0xa')]({'from':_0x30bbe9,'to':_0x30bbe9,'id':this[_0x2bff('0xc')],'name':_0x5e0fc9,'creatorId':_0x3a6a7a});}}[_0x2bff('0x1b')](_0x6dad7c){const _0x2150a2=this['_source']['getCurrentRevisionId']();this[_0x2bff('0x63')]=this[_0x2bff('0x72')][_0x2bff('0xc4')](_0x2150a2),this[_0x2bff('0x63')]||(this[_0x2bff('0x63')]=this[_0x2bff('0xa')]({'from':_0x6dad7c,'to':_0x6dad7c,'id':_0x2150a2,'name':'','creatorId':null}));}['_makeRevision']({name:_0x25038d,from:_0x1dfc8f,to:_0x34d816,creatorId:_0x14ac66,id:_0x5b7aee}){const _0x5ba43e=this['buildRevisionData']({'from':_0x1dfc8f,'to':_0x34d816});_0x5ba43e[_0x2bff('0xaa')]=_0x25038d,_0x5ba43e[_0x2bff('0x7')]=_0x14ac66,_0x5ba43e['id']=_0x5b7aee;const _0x26a188=this[_0x2bff('0x93')](_0x5ba43e);return this[_0x2bff('0xd8')]&&this[_0x2bff('0x11')](_0x5ba43e['id'],_0x5ba43e,!0x0),_0x26a188;}[_0x2bff('0x3a')](){this[_0x2bff('0x5c')][_0x2bff('0x22')][_0x2bff('0xda')](_0x2bff('0x23'))[_0x2bff('0x87')]({'model':_0x2bff('0xe9')});}['_removeRevisionMarkers'](_0x5829f3){return(_0x5829f3=_0x5829f3[_0x2bff('0xf0')](_0x56171f=>!_0x56171f['name']||_0x2bff('0xa5')!==_0x56171f[_0x2bff('0xaa')]&&_0x2bff('0x7e')!==_0x56171f['name']))['forEach'](_0x3d9f6c=>{_0x2bff('0x1d')!=typeof _0x3d9f6c&&(_0x3d9f6c[_0x2bff('0x24')]=this['_removeRevisionMarkers'](_0x3d9f6c['children']),_0x3d9f6c['attributes']=_0x3d9f6c['attributes'][_0x2bff('0xf0')](_0x4253fd=>!_0x4253fd[0x0][_0x2bff('0x6c')](_0x2bff('0x35'))));}),_0x5829f3;}}function T(_0x4ac189,_0x2fb510){const _0x1c1ab5=_0x2fb510[_0x2bff('0xb9')][_0x2bff('0x1f')][_0x2bff('0x105')];if(_0x2bff('0x1d')==typeof _0x4ac189)return new _0x5c4f49(_0x1c1ab5,_0x4ac189);{const _0x3e8418=_0x4ac189[_0x2bff('0x24')][_0x2bff('0x51')](_0x5442ad=>T(_0x5442ad,_0x2fb510));return new(F[_0x4ac189[(_0x2bff('0x4d'))]]||_0x560467)(_0x1c1ab5,_0x4ac189['name'],_0x4ac189[_0x2bff('0x43')],_0x3e8418);}}class B{constructor(_0x222f1c){this[_0x2bff('0x5c')]=_0x222f1c,this[_0x2bff('0xdc')]=new Map(),this[_0x2bff('0xcb')]=-0x1,this[_0x2bff('0x77')]=-0x1,this[_0x2bff('0x31')]=new Map(),this[_0x2bff('0x57')]=new Map(),this[_0x2bff('0xe3')]=new Map(),this[_0x2bff('0x89')]=new Map(),this[_0x2bff('0xc7')]=new Map(),this[_0x2bff('0x41')]=new Map(),this[_0x2bff('0x9b')]=new Map(),this['_touched']=new Map(),this[_0x2bff('0xdb')]=new Map(),this[_0x2bff('0x26')]=new Map(),this[_0x2bff('0xe2')]=0x1,this['_initialRoots']=this[_0x2bff('0x5c')]['model']['document'][_0x2bff('0x73')](),this[_0x2bff('0x3f')][_0x2bff('0x29')](_0x2bff('0x4b'));}['init'](_0x76f509){this[_0x2bff('0x58')]=_0x76f509;const _0x1c6240=new Map(),_0x31e8cc=new Map(),_0x321e1f=this[_0x2bff('0x5c')][_0x2bff('0x10')]['document'][_0x2bff('0x73')](!0x0);_0x321e1f[_0x2bff('0x29')](_0x2bff('0x4b'));for(const _0x4c730d of _0x321e1f){const _0x5b1616=this[_0x2bff('0x5c')][_0x2bff('0x10')]['document'][_0x2bff('0xd5')](_0x4c730d),_0x2a4d54=J(_0x5b1616);_0x1c6240[_0x2bff('0x8d')](_0x4c730d,_0x2a4d54),_0x31e8cc['set'](_0x4c730d,Object[_0x2bff('0xfb')](_0x5b1616[_0x2bff('0xa6')]()));}const _0x102d70=Array[_0x2bff('0x6b')](this[_0x2bff('0x5c')][_0x2bff('0x10')]['markers'])['map'](_0x2c4e73=>[_0x2c4e73['name'],_0x2c4e73[_0x2bff('0xca')]()]),_0x1bbfd3=this[_0x2bff('0x58')][_0x2bff('0xff')];this[_0x2bff('0xb2')](_0x1bbfd3,_0x1c6240,_0x102d70,_0x31e8cc),this[_0x2bff('0x91')]=this[_0x2bff('0xe2')];const _0x1904fa=new Map(),_0x52267e=new Map();for(const _0x50a785 of this[_0x2bff('0x3f')]){const _0x401821=H(_0x50a785);_0x1904fa[_0x2bff('0x8d')](_0x50a785,_0x401821),_0x52267e['set'](_0x50a785,{});}this[_0x2bff('0xb2')](Number[_0x2bff('0x5a')],_0x1904fa,[],_0x52267e);}[_0x2bff('0x4f')](_0x430383,_0x28d3b7){if(this[_0x2bff('0xcb')]===_0x430383&&this[_0x2bff('0x77')]<=_0x28d3b7)this[_0x2bff('0xdc')][_0x2bff('0x54')]>0x1&&this[_0x2bff('0xd7')](this[_0x2bff('0x77')]),this[_0x2bff('0x36')](this[_0x2bff('0x77')],_0x28d3b7,!0x0);else{if(!this[_0x2bff('0xdc')]['has'](_0x430383)){const _0x56e032=this[_0x2bff('0xec')](_0x430383);this['_calculateMetaData'](_0x56e032,_0x430383,!0x1);}this[_0x2bff('0x8b')](_0x430383,_0x28d3b7,!0x0);}return this[_0x2bff('0xcb')]=_0x430383,this[_0x2bff('0x77')]=_0x28d3b7,this[_0x2bff('0xa7')]();}[_0x2bff('0x30')](_0x3bd52a){this[_0x2bff('0xb6')](),this['_lastFrom']=_0x3bd52a[_0x2bff('0x2b')],this['_lastTo']=_0x3bd52a[_0x2bff('0x59')];for(const _0x5817a3 in _0x3bd52a[_0x2bff('0xb3')]){const _0x188cc5=_0x3bd52a[_0x2bff('0xb3')][_0x5817a3]['attachChange'],_0x8cd625=_0x57291b(_0x3bd52a[_0x2bff('0xb3')][_0x5817a3]['attributesBefore'])||{},_0x454b0c=this['_makeModelFromViewString'](_0x3bd52a[_0x2bff('0xb3')][_0x5817a3][_0x2bff('0x103')]);_0x454b0c[_0x2bff('0x98')]=_0x5817a3,_0x454b0c[_0x2bff('0xfa')]=!_0x188cc5||!_0x188cc5[_0x2bff('0x38')],_0x454b0c['isAttached']=()=>_0x454b0c['_isAttached'],this[_0x2bff('0x89')][_0x2bff('0x8d')](_0x5817a3,_0x454b0c),this[_0x2bff('0xc7')][_0x2bff('0x8d')](_0x5817a3,_0x8cd625),_0x188cc5&&this[_0x2bff('0x26')][_0x2bff('0x8d')](_0x5817a3,_0x188cc5);const _0x5cfe81=this[_0x2bff('0x20')](_0x454b0c);this[_0x2bff('0x9b')][_0x2bff('0x8d')](_0x5817a3,_0x5cfe81);for(const [_0x4049df,_0x478323]of _0x454b0c[_0x2bff('0xb8')]){if(!_0x4049df[_0x2bff('0x6c')](_0x2bff('0xb0')))continue;const _0x141d7e=_0x4049df[_0x2bff('0x21')](':')[0x2];for(const _0x489f6d of _0x478323[_0x2bff('0x6d')]({'singleCharacters':!0x0})){const _0x39efd2=this[_0x2bff('0x102')](_0x489f6d),_0xc655b9=_0x2bff('0x28')==_0x489f6d[_0x2bff('0x4d')]?_0x489f6d[_0x2bff('0x5')][_0x2bff('0x39')][_0x2bff('0x3e')](0x0,-0x1):_0x489f6d[_0x2bff('0x5')][_0x2bff('0x39')],_0x213bb6=_0x5cfe81[_0x2bff('0x67')](_0xc655b9)[_0x2bff('0xd1')](_0x39efd2);this[_0x2bff('0x9e')]['set'](_0x213bb6,{'userId':_0x141d7e});}}}this[_0x2bff('0x91')]=this[_0x2bff('0xe2')];const _0x3be559=[...Array(this[_0x2bff('0xe2')])[_0x2bff('0xf7')]()][_0x2bff('0x3e')](0x1)[_0x2bff('0xf0')](_0x2048a5=>!this[_0x2bff('0x9e')]['has'](_0x2048a5));let _0x17e5f5=0x0;const _0x41bbce=new Map();for(const _0x51e87a in _0x3bd52a['diffData']){const _0x1f1698=_0x3bd52a[_0x2bff('0xb3')][_0x51e87a]['attachChange'],_0x37801b=_0x57291b(_0x3bd52a[_0x2bff('0xb3')][_0x51e87a]['attributesAfter'])||{},_0x49de24=this[_0x2bff('0xdd')](_0x3bd52a['diffData'][_0x51e87a][_0x2bff('0x4a')]);_0x49de24[_0x2bff('0x98')]=_0x51e87a,_0x49de24[_0x2bff('0xfa')]=!_0x1f1698||_0x1f1698[_0x2bff('0x38')],_0x49de24['isAttached']=()=>_0x49de24['_isAttached'],this[_0x2bff('0x57')]['set'](_0x51e87a,_0x49de24),this['_diffRootsAttributes'][_0x2bff('0x8d')](_0x51e87a,_0x37801b);const _0x3e2e18=this['_makeIdsRoot'](_0x49de24,Number[_0x2bff('0x5a')]);this['_idsRoots'][_0x2bff('0x8d')](_0x51e87a,_0x3e2e18),_0x41bbce['set'](_0x51e87a,_0x49de24[_0x2bff('0x38')]()?_0x37801b:{});for(const [_0x2d9aa3,_0x3c5bc5]of _0x49de24[_0x2bff('0xb8')]){if(!_0x2d9aa3[_0x2bff('0x6c')](_0x2bff('0xb0')))continue;const _0x2daf86=_0x2d9aa3['split'](':')[0x2];for(const _0x3ce587 of _0x3c5bc5['getWalker']({'singleCharacters':!0x0})){const _0x5e64f4=this['_getVidAttributeName'](_0x3ce587),_0x54217a=this[_0x2bff('0xe2')]++,_0x198654='elementEnd'==_0x3ce587['type']?_0x3ce587[_0x2bff('0x5')][_0x2bff('0x39')][_0x2bff('0x3e')](0x0,-0x1):_0x3ce587['previousPosition']['path'];_0x3e2e18[_0x2bff('0x67')](_0x198654)[_0x2bff('0x16')](_0x5e64f4,_0x54217a),this[_0x2bff('0x9e')][_0x2bff('0x8d')](_0x54217a,{'userId':_0x2daf86});}}for(const _0x4862dc of this[_0x2bff('0x5c')][_0x2bff('0x10')][_0x2bff('0xe')](_0x49de24)['getWalker']({'singleCharacters':!0x0})){const _0x354c5c=this[_0x2bff('0x102')](_0x4862dc),_0x132cbe=_0x2bff('0x28')==_0x4862dc[_0x2bff('0x4d')]?_0x4862dc['previousPosition'][_0x2bff('0x39')][_0x2bff('0x3e')](0x0,-0x1):_0x4862dc[_0x2bff('0x5')][_0x2bff('0x39')],_0x126c0f=_0x3e2e18[_0x2bff('0x67')](_0x132cbe);_0x126c0f[_0x2bff('0xd1')](_0x354c5c)>0x0||_0x126c0f[_0x2bff('0x16')](_0x354c5c,_0x3be559[_0x17e5f5++]);}for(const [_0x2c6b58,_0x10fc14]of _0x49de24[_0x2bff('0xb8')])_0x2c6b58[_0x2bff('0x6c')]('revision:')||this[_0x2bff('0x31')]['set'](_0x2c6b58,_0x10fc14);}const _0xee88e3=H(_0x2bff('0x4b'));this[_0x2bff('0x89')][_0x2bff('0x8d')]('$graveyard',_0xee88e3),this['_baseIdsRoots'][_0x2bff('0x8d')](_0x2bff('0x4b'),this[_0x2bff('0x20')](_0xee88e3,0x1));const _0x489549=H(_0x2bff('0x4b'));this['_diffRoots'][_0x2bff('0x8d')]('$graveyard',_0x489549),this[_0x2bff('0x41')][_0x2bff('0x8d')](_0x2bff('0x4b'),this[_0x2bff('0x20')](_0x489549,0x1));const _0x2533ff=Array['from'](this[_0x2bff('0x57')])[_0x2bff('0x51')](([_0x2c9d0e,_0x18da51])=>[_0x2c9d0e,J(_0x18da51)]);this[_0x2bff('0xb2')](this[_0x2bff('0x77')],_0x2533ff,this[_0x2bff('0x31')],_0x41bbce);}['_makeModelFromViewString'](_0x18351e){const _0x31a654=JSON['parse'](_0x18351e),_0x32d43d=this['editor'][_0x2bff('0xb9')][_0x2bff('0x1f')]['document'],_0x4d51b7=new _0x27dc10(_0x32d43d,_0x31a654[_0x2bff('0x51')](_0x1ca08a=>T(_0x1ca08a,this['editor'])));return this[_0x2bff('0x5c')]['data'][_0x2bff('0xc5')](_0x4d51b7);}[_0x2bff('0xb2')](_0x548277,_0xe9bc97,_0x11ddac,_0x2be308){const _0x39e698=new Map(_0xe9bc97),_0x2bd015=new Map(_0x57291b(_0x2be308)),_0x123be7=new Map();for(const [_0x1effca,_0x2cbcd6]of _0x11ddac)_0x123be7['set'](_0x1effca,{'start':_0x2cbcd6[_0x2bff('0xbb')][_0x2bff('0x55')](),'end':_0x2cbcd6[_0x2bff('0xa0')][_0x2bff('0x55')](),'rootName':_0x2cbcd6[_0x2bff('0x94')][_0x2bff('0x98')]});this[_0x2bff('0xdc')][_0x2bff('0x8d')](_0x548277,{'roots':_0x39e698,'markers':_0x123be7,'rootsAttributes':_0x2bd015});}[_0x2bff('0xd7')](_0x3df6df){this[_0x2bff('0xdc')][_0x2bff('0x9f')](_0x3df6df);}[_0x2bff('0x85')](){this[_0x2bff('0xb6')](),this['_lastFrom']=-0x1,this[_0x2bff('0x77')]=-0x1,this['_savedMetaData'][_0x2bff('0xf4')](),this[_0x2bff('0x84')](this[_0x2bff('0x58')]);}['_reset'](){this[_0x2bff('0x9e')]['clear'](),this[_0x2bff('0xdb')][_0x2bff('0xf4')](),this[_0x2bff('0x26')][_0x2bff('0xf4')](),this['_diffRoots']['clear'](),this[_0x2bff('0xe3')][_0x2bff('0xf4')](),this['_baseRoots']['clear'](),this[_0x2bff('0xc7')][_0x2bff('0xf4')](),this[_0x2bff('0x41')]['clear'](),this[_0x2bff('0x9b')][_0x2bff('0xf4')](),this[_0x2bff('0x31')][_0x2bff('0xf4')](),this[_0x2bff('0xe2')]=0x1,this[_0x2bff('0x91')]=this[_0x2bff('0xe2')];}[_0x2bff('0x20')](_0x2a3795,_0x141e1d=null){let _0x3a2e23=null;_0x2a3795['is'](_0x2bff('0xf3'))||(_0x3a2e23=new _0x296fc7(_0x2a3795[_0x2bff('0xaa')],{'vid_start':null===_0x141e1d?this['_revisionId']++:_0x141e1d++}));const _0x3e9bf1=[];for(const _0x938b01 of _0x2a3795[_0x2bff('0x90')]())if(_0x938b01['is'](_0x2bff('0xe8'))){_0x3e9bf1[_0x2bff('0x29')](this[_0x2bff('0x20')](_0x938b01,_0x141e1d));const _0x57ff64=_0x3e9bf1[_0x3e9bf1['length']-0x1];null!==_0x141e1d&&(_0x141e1d=_0x57ff64['is']('element',_0x2bff('0x86'))?_0x57ff64['getAttribute'](_0x2bff('0x8'))+0x1:_0x57ff64[_0x2bff('0xd1')](_0x2bff('0x17'))+0x1);}else for(let _0x39b758=0x0;_0x39b758<_0x938b01[_0x2bff('0xcc')];_0x39b758++)_0x3e9bf1[_0x2bff('0x29')](new _0x296fc7(_0x2bff('0x86'),{'vid':null===_0x141e1d?this[_0x2bff('0xe2')]++:_0x141e1d++}));if(_0x2a3795['is'](_0x2bff('0xf3'))){const _0x3a5e50=H(_0x2a3795['rootName']);return _0x3a5e50['_insertChild'](0x0,_0x3e9bf1),_0x3a5e50;}return _0x3a2e23['_setAttribute']('vid_end',null===_0x141e1d?this['_revisionId']++:_0x141e1d++),_0x3a2e23[_0x2bff('0xb5')](0x0,_0x3e9bf1),_0x3a2e23;}['_calculateMetaData'](_0x3e3c75,_0x21b964,_0x3a64ad){this['_reset']();const {roots:_0x33b8f2,markers:_0x7c909f,rootsAttributes:_0x5a0306}=this['_savedMetaData']['get'](_0x3e3c75);this[_0x2bff('0x89')]=new Map(_0x33b8f2),this[_0x2bff('0xc7')]=new Map(_0x57291b(_0x5a0306));for(const [_0x2fd3bd,_0x130f95]of this[_0x2bff('0x89')])if(_0x2bff('0x4b')!==_0x2fd3bd&&(this['_diffRoots'][_0x2bff('0x8d')](_0x2fd3bd,J(_0x130f95)),this['_diffRootsAttributes']=new Map(_0x57291b(_0x5a0306)),_0x3a64ad)){const _0x194c3e=this['_revisionId'];this[_0x2bff('0x41')][_0x2bff('0x8d')](_0x2fd3bd,this[_0x2bff('0x20')](_0x130f95)),this[_0x2bff('0x9b')]['set'](_0x2fd3bd,this['_makeIdsRoot'](_0x130f95,_0x194c3e));}this['_startingRevisionId']=this[_0x2bff('0xe2')],this[_0x2bff('0x57')]['set']('$graveyard',J(this['_baseRoots'][_0x2bff('0x49')]('$graveyard'))),_0x3a64ad&&this[_0x2bff('0x41')][_0x2bff('0x8d')](_0x2bff('0x4b'),this['_makeIdsRoot'](this[_0x2bff('0x89')][_0x2bff('0x49')](_0x2bff('0x4b'))));for(const [_0x4dda52,_0x11a078]of _0x7c909f){const _0x3145ad=this[_0x2bff('0x89')][_0x2bff('0x49')](_0x11a078[_0x2bff('0x98')]),_0x2fbfe6=this[_0x2bff('0x57')][_0x2bff('0x49')](_0x11a078[_0x2bff('0x98')]),_0x340263=new _0x3ae9d1(this[_0x2bff('0xa9')](_0x11a078[_0x2bff('0xbb')],_0x3145ad),this[_0x2bff('0xa9')](_0x11a078['end'],_0x3145ad)),_0x19f52b=this['_fixRange'](_0x340263,_0x2fbfe6);_0x3145ad[_0x2bff('0xb8')]['set'](_0x4dda52,_0x340263),this[_0x2bff('0x31')][_0x2bff('0x8d')](_0x4dda52,_0x19f52b);}this['_applyOperations'](_0x3e3c75,_0x21b964,_0x3a64ad);}[_0x2bff('0x36')](_0x41e6f3,_0x5bf3fb,_0x55f5dd){for(const _0x5bc3aa of this['source']['getOperations'](_0x41e6f3,_0x5bf3fb))this[_0x2bff('0xbf')](_0x5bc3aa,_0x55f5dd);for(const _0x4340b6 of this['_diffRoots'][_0x2bff('0x13')]())_0x4340b6[_0x2bff('0xb8')][_0x2bff('0xf4')]();for(const [_0x4648e2,_0x54b10b]of this['_markers']){this[_0x2bff('0x57')][_0x2bff('0x49')](_0x54b10b[_0x2bff('0x94')][_0x2bff('0x98')])[_0x2bff('0xb8')][_0x2bff('0x8d')](_0x4648e2,_0x54b10b[_0x2bff('0x55')]());}const _0x48df9d=new Map(),_0x130b4f=new Map();for(const [_0x1d096b,_0x3b2b66]of this['_diffRoots'])_0x48df9d[_0x2bff('0x8d')](_0x1d096b,J(_0x3b2b66)),_0x130b4f['set'](_0x1d096b,this[_0x2bff('0xe3')]['get'](_0x1d096b));this[_0x2bff('0xb2')](_0x5bf3fb,_0x48df9d,this[_0x2bff('0x31')],_0x130b4f);}[_0x2bff('0xec')](_0x3a4ac4){const _0x17f282=Array['from'](this[_0x2bff('0xdc')][_0x2bff('0xf7')]());_0x17f282['sort']((_0x145a9d,_0xc65902)=>_0x145a9d-_0xc65902),_0x17f282['reverse']();for(const _0x47d3dd of _0x17f282)if(_0x47d3dd<_0x3a4ac4)return _0x47d3dd;return Number[_0x2bff('0x5a')];}[_0x2bff('0xc8')](_0x2eca8c,_0x1f7e70){const _0x3dd10e=Array[_0x2bff('0x6b')](_0x1f7e70[_0x2bff('0xb8')])[_0x2bff('0x51')](([_0x3b3df3,_0x4843fd])=>[_0x3b3df3,this[_0x2bff('0xd6')](_0x4843fd,_0x2eca8c)]);_0x2eca8c[_0x2bff('0xb8')]=new Map(_0x3dd10e);}[_0x2bff('0x44')](_0xd32332){for(const _0x363507 of this['_markers'][_0x2bff('0x13')]()){const _0x3e8fd5=_0x363507['getTransformedByOperation'](_0xd32332),_0x15dc12=_0x3ae9d1[_0x2bff('0xb')](_0x3e8fd5);_0x363507['start']=_0x15dc12[_0x2bff('0xbb')],_0x363507[_0x2bff('0xa0')]=_0x15dc12[_0x2bff('0xa0')];}}['_handleOperation'](_0x1b8d4d,_0x3f96db){if(_0x2bff('0xf5')==_0x1b8d4d[_0x2bff('0x4d')]||_0x2bff('0x1e')==_0x1b8d4d['type'])return void this[_0x2bff('0x4c')](_0x1b8d4d,_0x3f96db);if('insert'==_0x1b8d4d[_0x2bff('0x4d')]){const _0x5c5595=_0x1b8d4d['position'][_0x2bff('0x94')][_0x2bff('0x98')];this[_0x2bff('0x57')][_0x2bff('0x108')](_0x5c5595)||(this[_0x2bff('0x57')]['set'](_0x5c5595,H(_0x5c5595,!0x0)),this[_0x2bff('0xe3')][_0x2bff('0x8d')](_0x5c5595,{}),_0x3f96db&&this[_0x2bff('0x41')][_0x2bff('0x8d')](_0x5c5595,H(_0x5c5595,!0x0)));}if(_0x2bff('0xb1')==_0x1b8d4d['type']||'removeRootAttribute'==_0x1b8d4d['type']||'changeRootAttribute'==_0x1b8d4d[_0x2bff('0x4d')])return void this['_handleRootAttributeOperation'](_0x1b8d4d);const _0x43edff=this['_cloneOperation'](_0x1b8d4d,this[_0x2bff('0x57')]);if(_0x2bff('0x46')!==_0x1b8d4d[_0x2bff('0x4d')]&&(_0x43edff['_execute'](),this[_0x2bff('0x44')](_0x43edff)),_0x3f96db)switch(_0x43edff[_0x2bff('0x4d')]){case _0x2bff('0x109'):this[_0x2bff('0x79')](_0x1b8d4d);break;case'move':case _0x2bff('0x12'):case'reinsert':this[_0x2bff('0x3d')](_0x1b8d4d);break;case'merge':this[_0x2bff('0xa3')](_0x1b8d4d);break;case'split':this[_0x2bff('0x45')](_0x1b8d4d);break;case _0x2bff('0x46'):this[_0x2bff('0x8c')](_0x1b8d4d);}}[_0x2bff('0x53')](_0x5d17d9,_0x4784f6){const _0x457ff2=_0x5d17d9['clone']();return _0x457ff2[_0x2bff('0x42')]=_0x5d17d9[_0x2bff('0x42')],this[_0x2bff('0xf1')](_0x457ff2,_0x4784f6),_0x457ff2;}[_0x2bff('0x71')](_0x8587ed){return _0x8587ed[_0x2bff('0x51')](_0x559087=>{const _0x404b56=this[_0x2bff('0x102')](_0x559087);return Number(_0x559087[_0x2bff('0x99')][_0x2bff('0xd1')](_0x404b56));});}[_0x2bff('0xe4')](_0x38b67f,_0x2dda43){if(_0x38b67f['is']('element',_0x2bff('0x86')))_0x2dda43[_0x2bff('0x29')]({'item':_0x38b67f,'type':_0x2bff('0x14')});else{_0x38b67f['is'](_0x2bff('0xe8'))&&_0x2dda43[_0x2bff('0x29')]({'item':_0x38b67f,'type':_0x2bff('0xe6')});for(const _0x21daa2 of _0x38b67f[_0x2bff('0x90')]())this[_0x2bff('0xe4')](_0x21daa2,_0x2dda43);_0x38b67f['is'](_0x2bff('0xe8'))&&_0x2dda43[_0x2bff('0x29')]({'item':_0x38b67f,'type':_0x2bff('0x28')});}return _0x2dda43;}[_0x2bff('0xa7')](){const _0x1bcf6f=new Map(this[_0x2bff('0x9e')]),_0x508343=new Map(_0x1bcf6f),_0x3d2049=new Map(),_0x489b21={'insertions':{},'deletions':{}},_0xfcbfad={'insertions':{},'deletions':{}},_0x38be8d=new Map(),_0x41f4e2=new Set([...this[_0x2bff('0x89')][_0x2bff('0xf7')](),...this[_0x2bff('0x57')]['keys']()]);_0x41f4e2[_0x2bff('0x9f')](_0x2bff('0x4b'));for(const _0x4cb505 of _0x41f4e2){const _0x147526=this[_0x2bff('0x57')]['get'](_0x4cb505)||H(_0x4cb505,!0x1),_0xa7560=this[_0x2bff('0x89')][_0x2bff('0x49')](_0x4cb505)||H(_0x4cb505,!0x1);_0x147526[_0x2bff('0x38')]()||_0xa7560[_0x2bff('0x38')]()?(_0x489b21['insertions'][_0x4cb505]=J(_0x147526),_0x489b21[_0x2bff('0x103')][_0x4cb505]=J(_0xa7560),this[_0x2bff('0xc8')](_0x489b21[_0x2bff('0x103')][_0x4cb505],_0xa7560),this['_copyMarkers'](_0x489b21[_0x2bff('0x4a')][_0x4cb505],_0x147526),_0xfcbfad[_0x2bff('0x4a')][_0x4cb505]=this['_generateTape'](this[_0x2bff('0x41')]['get'](_0x4cb505),[]),_0xfcbfad[_0x2bff('0x103')][_0x4cb505]=this[_0x2bff('0xe4')](this[_0x2bff('0x9b')][_0x2bff('0x49')](_0x4cb505)||H(_0x4cb505,!0x1),[])):_0x41f4e2[_0x2bff('0x9f')](_0x4cb505);}for(const _0x17d980 of _0x41f4e2){const _0x477ff1=_0xfcbfad['insertions'][_0x17d980];for(const _0x3ffdcc of _0x477ff1){const _0xb8e1e7=this[_0x2bff('0x102')](_0x3ffdcc),_0x5e4b65=_0x3ffdcc[_0x2bff('0x99')][_0x2bff('0xd1')](_0xb8e1e7);_0x508343['delete'](_0x5e4b65),_0x5e4b65>=this['_startingRevisionId']&&_0x3d2049[_0x2bff('0x8d')](_0x5e4b65,_0x1bcf6f['get'](_0x5e4b65));}}for(const _0x2bd62d of _0x41f4e2){const _0x5b38d9=_0xfcbfad[_0x2bff('0x4a')][_0x2bd62d],_0x9a71b9=this[_0x2bff('0x71')](_0xfcbfad[_0x2bff('0x103')][_0x2bd62d]);let _0x430377=0x0;for(const _0x442edf of _0x5b38d9){const _0x5d6240=this['_getVidAttributeName'](_0x442edf),_0x342adf=_0x442edf[_0x2bff('0x99')][_0x2bff('0xd1')](_0x5d6240);if(!_0x3d2049['has'](_0x342adf)&&!_0x38be8d['has'](_0x342adf)){if(_0x508343['has'](_0x342adf))_0x430377++;else{if(_0x342adf!=_0x9a71b9[_0x430377]){const _0x211063=_0x1bcf6f[_0x2bff('0x49')](_0x342adf)||_0x1bcf6f[_0x2bff('0x49')](_0x9a71b9[_0x430377]);for(;_0x342adf!=_0x9a71b9[_0x430377];)_0x508343['has'](_0x9a71b9[_0x430377])||(_0x38be8d[_0x2bff('0x8d')](_0x9a71b9[_0x430377],_0x211063),_0x1bcf6f[_0x2bff('0x8d')](_0x9a71b9[_0x430377],_0x211063)),_0x430377++;}_0x430377++;}}}}for(const _0x238ff2 of _0x41f4e2){const _0x1207f8=_0xfcbfad[_0x2bff('0x4a')][_0x238ff2];for(const _0x725a72 of _0x1207f8){const _0x2cd62b=this[_0x2bff('0x102')](_0x725a72),_0x3f88d0=_0x725a72[_0x2bff('0x99')][_0x2bff('0xd1')](_0x2cd62b);if(_0x38be8d[_0x2bff('0x108')](_0x3f88d0)){const _0x3dc9f7=_0x38be8d[_0x2bff('0x49')](_0x3f88d0);_0x508343[_0x2bff('0x108')](_0x3f88d0)||_0x508343[_0x2bff('0x8d')](_0x3f88d0,{..._0x3dc9f7}),_0x3d2049[_0x2bff('0x8d')](_0x3f88d0,{..._0x3dc9f7});}}}for(const _0x1e4ad3 of _0x508343[_0x2bff('0xf7')]())_0x1e4ad3>=this[_0x2bff('0x91')]&&_0x508343['delete'](_0x1e4ad3);const _0x389eb8=new Map();for(const _0x20b800 of _0x41f4e2){let _0x34732b=_0xfcbfad[_0x2bff('0x4a')][_0x20b800];for(const _0x5b5a16 of _0x34732b)if(_0x5b5a16[_0x2bff('0x99')]['is'](_0x2bff('0xe8'),_0x2bff('0xed'))){const _0x32935c=this[_0x2bff('0x102')](_0x5b5a16),_0x12c887=_0x5b5a16[_0x2bff('0x99')]['getAttribute'](_0x32935c);if(_0x3d2049[_0x2bff('0x108')](_0x12c887)){const _0x8752b4=_0x5b5a16[_0x2bff('0x99')]['parent'][_0x2bff('0x106')][_0x2bff('0xd1')](_0x2bff('0xc1')),_0xebeb4a=_0x389eb8['get'](_0x8752b4)||new Set();_0xebeb4a['add'](_0x3d2049['get'](_0x12c887)[_0x2bff('0x65')]),_0x389eb8[_0x2bff('0x8d')](_0x8752b4,_0xebeb4a);}}_0x34732b=_0xfcbfad[_0x2bff('0x103')][_0x20b800];for(const _0x27e6b9 of _0x34732b)if(_0x27e6b9[_0x2bff('0x99')]['is']('element',_0x2bff('0xed'))){const _0x276001=this['_getVidAttributeName'](_0x27e6b9),_0x15a98a=_0x27e6b9[_0x2bff('0x99')][_0x2bff('0xd1')](_0x276001);if(_0x508343[_0x2bff('0x108')](_0x15a98a)){const _0x19868a=_0x27e6b9[_0x2bff('0x99')][_0x2bff('0x106')][_0x2bff('0x106')]['getAttribute'](_0x2bff('0xc1')),_0x56ba6b=_0x389eb8[_0x2bff('0x49')](_0x19868a)||new Set();_0x56ba6b['add'](_0x508343[_0x2bff('0x49')](_0x15a98a)[_0x2bff('0x65')]),_0x389eb8[_0x2bff('0x8d')](_0x19868a,_0x56ba6b);}}for(const _0x3b5983 of _0x389eb8[_0x2bff('0xf7')]())(_0x3d2049['has'](_0x3b5983)||_0x508343[_0x2bff('0x108')](_0x3b5983))&&_0x389eb8[_0x2bff('0x9f')](_0x3b5983);}for(const _0x66a0e4 of _0x41f4e2){const _0x38371b=_0xfcbfad['insertions'][_0x66a0e4];let _0x24ae05=null,_0x37104a=null;for(const _0x24baec of _0x38371b){const _0x1c7cf8=this[_0x2bff('0x102')](_0x24baec),_0x4f22c7=_0x24baec['item'][_0x2bff('0xd1')](_0x1c7cf8),_0x1f1815=_0x389eb8[_0x2bff('0x49')](_0x4f22c7);_0x1f1815&&_0x2bff('0xe6')==_0x24baec[_0x2bff('0x4d')]&&(_0x24ae05=Array[_0x2bff('0x6b')](_0x1f1815)[0x0],_0x37104a=_0x24baec['item'][_0x2bff('0xd1')](_0x2bff('0x17'))),_0x24ae05&&(_0x508343[_0x2bff('0x8d')](_0x4f22c7,{'userId':_0x24ae05}),_0x3d2049[_0x2bff('0x8d')](_0x4f22c7,{'userId':_0x24ae05})),_0x4f22c7==_0x37104a&&(_0x24ae05=null,_0x37104a=null);}}const _0x51de9b={},_0x1ac578=new Set();for(const _0x15fb6c of _0x41f4e2){const _0x89b120=_0x489b21[_0x2bff('0x103')][_0x15fb6c],_0x3039ec=_0x489b21[_0x2bff('0x4a')][_0x15fb6c];for(const {userId:_0x348ce5}of this[_0x2bff('0xdb')]['values']())null!==_0x348ce5&&_0x1ac578[_0x2bff('0xbd')](_0x348ce5);for(const {userId:_0x15023e}of this[_0x2bff('0x26')]['values']())null!==_0x15023e&&_0x1ac578[_0x2bff('0xbd')](_0x15023e);this['_markChanges'](_0x3039ec,_0xfcbfad['insertions'][_0x15fb6c],_0x3d2049,_0x2bff('0x8e'),_0x1ac578),this[_0x2bff('0xab')](_0x89b120,_0xfcbfad[_0x2bff('0x103')][_0x15fb6c],_0x508343,'deletion',_0x1ac578),_0x51de9b[_0x15fb6c]={'insertions':this[_0x2bff('0x70')](_0x3039ec),'deletions':this['_prepareViewToSave'](_0x89b120),'attachChange':this['_touchedRoots'][_0x2bff('0x49')](_0x15fb6c)||null,'attributesBefore':_0x57291b(this['_baseRootsAttributes'][_0x2bff('0x49')](_0x15fb6c))||{},'attributesAfter':_0x57291b(this[_0x2bff('0xe3')][_0x2bff('0x49')](_0x15fb6c))};}return{'diffData':_0x51de9b,'authorsIds':Array['from'](_0x1ac578)};}[_0x2bff('0x107')](_0x5ea67e){for(const [,_0x2c7ec0]of _0x5ea67e[_0x2bff('0xb8')]){const _0x391f7a=_0x2c7ec0['start'][_0x2bff('0x7f')]()[_0x2bff('0xf0')](_0x1e332e=>_0x2bff('0xed')==_0x1e332e[_0x2bff('0xaa')]);for(const _0x166d6f of _0x391f7a)0x1==_0x166d6f[_0x2bff('0xd0')]&&_0x166d6f[_0x2bff('0x83')](0x0)['is'](_0x2bff('0xe8'),_0x2bff('0x15'))&&_0x166d6f[_0x2bff('0x83')](0x0)[_0x2bff('0x16')](_0x2bff('0xee'),!0x0);}}[_0x2bff('0x70')](_0x1b7eb2){this[_0x2bff('0x107')](_0x1b7eb2);const _0xd20345=this[_0x2bff('0x5c')][_0x2bff('0x60')][_0x2bff('0xc2')](_0x1b7eb2,{}),_0x34868d=Array[_0x2bff('0x6b')](_0xd20345['getChildren']())[_0x2bff('0x51')](_0x39b33e=>this[_0x2bff('0x48')](_0x39b33e));return JSON['stringify'](_0x34868d);}['_getViewJson'](_0x44155c){if(_0x44155c['is']('$text'))return _0x44155c[_0x2bff('0x60')];{const _0x44e75d=_0x44155c;return{'type':Object['keys'](F)['find'](_0xfdb620=>_0x44155c instanceof F[_0xfdb620]),'name':_0x44e75d[_0x2bff('0xaa')],'attributes':Array[_0x2bff('0x6b')](_0x44e75d['getAttributes']()),'children':Array[_0x2bff('0x6b')](_0x44e75d[_0x2bff('0x90')]())['map'](_0x52262e=>this[_0x2bff('0x48')](_0x52262e))};}}['_markChanges'](_0xf6473,_0x28da88,_0x464773,_0x4c9cb0,_0x4bb602){let _0x4030cb=null,_0x17a066=null,_0x1314cc=0x0;const _0x186117=this[_0x2bff('0x5c')][_0x2bff('0x10')];for(let _0x2e6832=0x0;_0x2e6832<_0x28da88[_0x2bff('0x9d')];_0x2e6832++){const _0x4b3f4a=this['_getVidAttributeName'](_0x28da88[_0x2e6832]),_0x9b4917=_0x28da88[_0x2e6832][_0x2bff('0x99')][_0x2bff('0xd1')](_0x4b3f4a),_0x151dfd=_0x464773[_0x2bff('0x49')](_0x9b4917),_0x56090e=_0x2e6832==_0x28da88['length']-0x1;(!_0x4030cb&&_0x151dfd&&(_0x4030cb=_0x151dfd,_0x17a066=_0x28da88[_0x2e6832]),_0x4030cb&&(!_0x151dfd||_0x151dfd['userId']!=_0x4030cb[_0x2bff('0x65')]))&&(_0x337b79(_0x151dfd,q(_0x17a066,_0xf6473,_0x186117),q(_0x28da88[_0x2e6832],_0xf6473,_0x186117)),_0x4030cb=_0x151dfd||null,_0x17a066=_0x151dfd?_0x28da88[_0x2e6832]:null),_0x4030cb&&_0x56090e&&_0x337b79(_0x151dfd,q(_0x17a066,_0xf6473,_0x186117),G(_0x28da88[_0x2e6832],_0xf6473,_0x186117));}function _0x337b79(_0x502b53,_0x1db8f0,_0x34d086){const _0x17017f=_0x4030cb[_0x2bff('0x65')],_0x1784c1='revision:'+_0x4c9cb0+':'+_0x17017f+':'+_0x1314cc++,_0x59bbc6=_0x186117[_0x2bff('0x34')](_0x1db8f0,_0x34d086);_0xf6473['markers'][_0x2bff('0x8d')](_0x1784c1,_0x59bbc6),null!==_0x17017f&&_0x4bb602['add'](_0x17017f);}}['_getVidAttributeName'](_0x506e0e){switch(_0x506e0e['type']){case _0x2bff('0xe6'):return _0x2bff('0xc1');case _0x2bff('0x28'):return'vid_end';default:return'vid';}}[_0x2bff('0xf1')](_0x22dfd6,_0x508bc9){_0x22dfd6['baseVersion']=null;for(const _0x38e42c in _0x22dfd6){const _0x177311=_0x22dfd6[_0x38e42c];if(_0x177311 instanceof _0x28d65f){const _0x2eddb5=_0x508bc9[_0x2bff('0x49')](_0x177311['root']['rootName']);_0x22dfd6[_0x38e42c]=this[_0x2bff('0xa9')](_0x177311,_0x2eddb5);}if(_0x177311 instanceof _0x3ae9d1){const _0x57ef39=_0x508bc9['get'](_0x177311[_0x2bff('0x94')][_0x2bff('0x98')]);_0x22dfd6[_0x38e42c]=this[_0x2bff('0xd6')](_0x177311,_0x57ef39);}_0x2bff('0x94')===_0x38e42c&&(_0x22dfd6['root']=_0x508bc9[_0x2bff('0x49')](_0x22dfd6[_0x2bff('0x94')][_0x2bff('0x98')]));}}[_0x2bff('0xd6')](_0x5dffdd,_0x2f82c2){return this['editor']['model'][_0x2bff('0x34')](this[_0x2bff('0xa9')](_0x5dffdd[_0x2bff('0xbb')],_0x2f82c2),this[_0x2bff('0xa9')](_0x5dffdd['end'],_0x2f82c2));}[_0x2bff('0xa9')](_0x159d4e,_0x23d4c2){return this[_0x2bff('0x5c')][_0x2bff('0x10')][_0x2bff('0xa4')](_0x23d4c2,_0x159d4e[_0x2bff('0x39')],_0x159d4e[_0x2bff('0x66')]);}['_handleInsertOperation'](_0xeb6c97){const _0x133938=this[_0x2bff('0x41')][_0x2bff('0x49')](_0xeb6c97['position']['root'][_0x2bff('0x98')]),_0x2fe1a4=this['_fixPosition'](_0xeb6c97[_0x2bff('0xc6')],_0x133938),_0x2bb475=null===_0xeb6c97['_authorId']?null:_0xeb6c97['_authorId']||this[_0x2bff('0x5c')][_0x2bff('0xa2')][_0x2bff('0x49')](_0x2bff('0x40'))['me']['id'],_0x4ebf5c=_0x2fe1a4['parent'],_0x533794=this[_0x2bff('0xe2')],_0x2fff9e=[];for(const _0xc3ba0d of _0xeb6c97[_0x2bff('0x5b')])if(_0xc3ba0d['is']('element'))_0x2fff9e['push'](this[_0x2bff('0x20')](_0xc3ba0d));else for(let _0x1e9033=0x0;_0x1e9033<_0xc3ba0d[_0x2bff('0xcc')];_0x1e9033++)_0x2fff9e[_0x2bff('0x29')](new _0x296fc7(_0x2bff('0x86'),{'vid':this['_revisionId']++}));const _0x478199=this[_0x2bff('0xe2')];for(let _0x24ead3=_0x533794;_0x24ead3<_0x478199;_0x24ead3++)this[_0x2bff('0x9e')]['set'](_0x24ead3,{'userId':_0x2bb475});_0x4ebf5c[_0x2bff('0xb5')](_0x2fe1a4[_0x2bff('0xfe')],_0x2fff9e);}[_0x2bff('0x3d')](_0x599a18){(_0x599a18=this[_0x2bff('0x53')](_0x599a18,this[_0x2bff('0x41')]))['_execute']();const _0x2b9f23=null===_0x599a18[_0x2bff('0x42')]?null:_0x599a18[_0x2bff('0x42')]||this[_0x2bff('0x5c')][_0x2bff('0xa2')][_0x2bff('0x49')](_0x2bff('0x40'))['me']['id'],_0x56ddba=_0x599a18[_0x2bff('0xbe')](),_0x5b39bd=_0x56ddba[_0x2bff('0x106')],_0x1f8233=_0x56ddba['offset'];!function _0x3df1de(_0x24c466,_0x3508c8,_0x5cf600,_0x62aa6e){for(let _0x52cf0a=_0x5cf600;_0x52cf0a<_0x62aa6e;_0x52cf0a++){const _0x2f256b=_0x3508c8['getChild'](_0x52cf0a);_0x2f256b['is'](_0x2bff('0xe8'),_0x2bff('0x86'))?_0x24c466['set'](_0x2f256b[_0x2bff('0xd1')]('vid'),{'userId':_0x2b9f23}):(_0x24c466[_0x2bff('0x8d')](_0x2f256b['getAttribute'](_0x2bff('0xc1')),{'userId':_0x2b9f23}),_0x3df1de(_0x24c466,_0x2f256b,0x0,_0x2f256b[_0x2bff('0xd0')]),_0x24c466['set'](_0x2f256b[_0x2bff('0xd1')](_0x2bff('0x17')),{'userId':_0x2b9f23}));}}(this[_0x2bff('0x9e')],_0x5b39bd,_0x1f8233,_0x1f8233+_0x599a18[_0x2bff('0xf2')]);}['_handleMergeOperation'](_0xc517ce){const _0x2f6602=null===(_0xc517ce=this['_cloneOperation'](_0xc517ce,this[_0x2bff('0x41')]))['_authorId']?null:_0xc517ce['_authorId']||this['editor'][_0x2bff('0xa2')][_0x2bff('0x49')](_0x2bff('0x40'))['me']['id'],_0x57d6c5=_0xc517ce[_0x2bff('0x88')][_0x2bff('0x106')],_0x5cc533=_0xc517ce[_0x2bff('0x69')][_0x2bff('0x106')],_0x2fd0f6=_0x57d6c5[_0x2bff('0xd1')](_0x2bff('0x17')),_0x57601d=_0x5cc533[_0x2bff('0xd1')](_0x2bff('0xc1'));_0x57d6c5[_0x2bff('0x16')](_0x2bff('0x17'),_0x5cc533[_0x2bff('0xd1')](_0x2bff('0x17'))),_0x5cc533[_0x2bff('0x16')]('vid_end',_0x2fd0f6),this[_0x2bff('0x9e')][_0x2bff('0x8d')](_0x57601d,{'userId':_0x2f6602}),this[_0x2bff('0x9e')][_0x2bff('0x8d')](_0x2fd0f6,{'userId':_0x2f6602}),_0xc517ce[_0x2bff('0x33')]();}[_0x2bff('0x45')](_0x23aeec){const _0x57df7d=null===(_0x23aeec=this[_0x2bff('0x53')](_0x23aeec,this[_0x2bff('0x41')]))[_0x2bff('0x42')]?null:_0x23aeec['_authorId']||this[_0x2bff('0x5c')]['plugins'][_0x2bff('0x49')](_0x2bff('0x40'))['me']['id'],_0x19e77c=_0x23aeec[_0x2bff('0xb7')],_0x1cbd74=_0x23aeec[_0x2bff('0xf9')][_0x2bff('0x106')];_0x23aeec['_execute']();const _0x10ef22=_0x1cbd74['getAttribute'](_0x2bff('0x17')),_0x4e0df8=_0x23aeec['insertionPosition'][_0x2bff('0xef')];if(_0x19e77c){const _0x3eef90=_0x4e0df8[_0x2bff('0xd1')](_0x2bff('0x17')),_0x1553ad=_0x1cbd74[_0x2bff('0xd1')](_0x2bff('0x17'));_0x1cbd74[_0x2bff('0x16')]('vid_end',_0x3eef90),_0x4e0df8[_0x2bff('0x16')]('vid_end',_0x1553ad),this[_0x2bff('0x9e')]['set'](_0x1cbd74[_0x2bff('0xd1')](_0x2bff('0x17')),{'userId':_0x57df7d}),this['_touched']['set'](_0x4e0df8[_0x2bff('0xd1')](_0x2bff('0xc1')),{'userId':_0x57df7d});}else{const _0x117fa9=this[_0x2bff('0xe2')]++,_0x279c37=this[_0x2bff('0xe2')]++;_0x1cbd74[_0x2bff('0x16')](_0x2bff('0x17'),_0x117fa9),_0x4e0df8['_setAttribute'](_0x2bff('0xc1'),_0x279c37),_0x4e0df8['_setAttribute'](_0x2bff('0x17'),_0x10ef22),this['_touched'][_0x2bff('0x8d')](_0x117fa9,{'userId':_0x57df7d}),this[_0x2bff('0x9e')][_0x2bff('0x8d')](_0x279c37,{'userId':_0x57df7d});}}['_handleMarkerOperation'](_0x19c526){if(!_0x19c526['affectsData'])return;const _0x3fe391=(_0x19c526=this[_0x2bff('0x53')](_0x19c526,this['_diffRoots']))[_0x2bff('0xf')]?_0x19c526[_0x2bff('0xf')]['root']:null,_0x5e7c3e=_0x19c526[_0x2bff('0xce')]?_0x19c526[_0x2bff('0xce')][_0x2bff('0x94')]:null;_0x3fe391&&this[_0x2bff('0x31')][_0x2bff('0x9f')](_0x19c526[_0x2bff('0xaa')]),_0x5e7c3e&&this['_markers']['set'](_0x19c526['name'],_0x19c526[_0x2bff('0xce')]['clone']());const _0x1a81b5=null===_0x19c526[_0x2bff('0x42')]?null:_0x19c526[_0x2bff('0x42')]||this[_0x2bff('0x5c')][_0x2bff('0xa2')][_0x2bff('0x49')](_0x2bff('0x40'))['me']['id'],_0x164bc6=_0x19c526[_0x2bff('0xaa')];if(!this[_0x2bff('0xdb')]['has'](_0x164bc6))return void this['_touchedMarkers'][_0x2bff('0x8d')](_0x164bc6,{'range':_0x19c526['oldRange'],'userId':_0x1a81b5});const _0x48a71e=this['_touchedMarkers'][_0x2bff('0x49')](_0x164bc6),_0x5b9735=_0x48a71e[_0x2bff('0x9c')],_0x3526d9=_0x19c526['newRange'];null==_0x5b9735&&null==_0x3526d9||_0x5b9735&&_0x3526d9&&_0x5b9735[_0x2bff('0x37')](_0x3526d9)?this['_touchedMarkers'][_0x2bff('0x9f')](_0x19c526[_0x2bff('0xaa')]):_0x48a71e[_0x2bff('0x65')]=_0x1a81b5;}[_0x2bff('0x4c')](_0x4bb76b,_0x20cda1){this[_0x2bff('0x57')][_0x2bff('0x108')](_0x4bb76b[_0x2bff('0x98')])?this[_0x2bff('0x57')][_0x2bff('0x49')](_0x4bb76b['rootName'])[_0x2bff('0xfa')]=_0x4bb76b[_0x2bff('0xea')]:(this[_0x2bff('0x57')][_0x2bff('0x8d')](_0x4bb76b[_0x2bff('0x98')],H(_0x4bb76b[_0x2bff('0x98')],!0x0)),this[_0x2bff('0xe3')]['set'](_0x4bb76b['rootName'],{}),_0x20cda1&&this[_0x2bff('0x41')][_0x2bff('0x8d')](_0x4bb76b[_0x2bff('0x98')],H(_0x4bb76b[_0x2bff('0x98')],!0x0)));const _0x45632f=null===_0x4bb76b[_0x2bff('0x42')]?null:_0x4bb76b['_authorId']||this[_0x2bff('0x5c')][_0x2bff('0xa2')][_0x2bff('0x49')](_0x2bff('0x40'))['me']['id'],_0x309a44=this[_0x2bff('0x26')][_0x2bff('0x49')](_0x4bb76b[_0x2bff('0x98')]);_0x309a44&&_0x309a44[_0x2bff('0x65')]===_0x45632f?this['_touchedRoots']['delete'](_0x4bb76b[_0x2bff('0x98')]):this[_0x2bff('0x26')][_0x2bff('0x8d')](_0x4bb76b[_0x2bff('0x98')],{'userId':_0x45632f,'isAttached':_0x4bb76b['isAdd']});}['_handleRootAttributeOperation'](_0x480607){const _0x17cd1b=this[_0x2bff('0xe3')][_0x2bff('0x49')](_0x480607[_0x2bff('0x94')]['rootName']);null===_0x480607[_0x2bff('0x7c')]?delete _0x17cd1b[_0x480607['key']]:_0x17cd1b[_0x480607[_0x2bff('0xa1')]]=_0x480607['newValue'];}}function J(_0x25147d){const _0x2ae4c7=H(_0x25147d['rootName'],_0x25147d[_0x2bff('0x38')]());for(const _0x4e759b of _0x25147d[_0x2bff('0x90')]()){const _0x2f2205=_0x4e759b[_0x2bff('0x1c')](!0x0);_0x2ae4c7[_0x2bff('0x19')](_0x2f2205);}return _0x2ae4c7;}function H(_0x1b50ff,_0x113737=!0x0){const _0x3450f9=new _0x1aa4f2();return _0x3450f9[_0x2bff('0x98')]=_0x1b50ff,_0x3450f9[_0x2bff('0xfa')]=_0x113737,_0x3450f9[_0x2bff('0x38')]=()=>_0x3450f9['_isAttached'],_0x3450f9;}function q(_0x16ff66,_0x4d0bd5,_0xe0174f){const _0x3a243e='elementEnd'==_0x16ff66[_0x2bff('0x4d')]?_0xe0174f[_0x2bff('0x52')](_0x16ff66['item'],_0x2bff('0xa0')):_0xe0174f['createPositionBefore'](_0x16ff66[_0x2bff('0x99')]);return _0xe0174f[_0x2bff('0xa4')](_0x4d0bd5,_0x3a243e['path'],_0x3a243e[_0x2bff('0x66')]);}function G(_0x2f76a7,_0x218d5c,_0x4769be){const _0x3f368c=_0x2bff('0xe6')==_0x2f76a7[_0x2bff('0x4d')]?_0x4769be[_0x2bff('0x52')](_0x2f76a7[_0x2bff('0x99')],0x0):_0x4769be['createPositionAfter'](_0x2f76a7[_0x2bff('0x99')]);return _0x4769be[_0x2bff('0xa4')](_0x218d5c,_0x3f368c['path'],_0x3f368c[_0x2bff('0x66')]);}
|
package/src/revisionviewer.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import '../theme/revisionviewer.css';
|
|
2
|
-
/**
|
|
3
|
-
function printTape( tape ) {
|
|
4
|
-
const elements = tape.map(
|
|
5
|
-
item => item.item.data ? item.item.data : item.type == 'elementStart' ? '<' + item.item.name + '>' : '</' + item.item.name + '>'
|
|
6
|
-
).join( '' );
|
|
7
|
-
|
|
8
|
-
const signs = tape.map( v => {
|
|
9
|
-
const item = v.item;
|
|
10
|
-
const sign = ( v.isAdded || v.isAddSuggestion ) ? v.isRemoved ? '=' : '+' : v.isRemoved ? '-' : ' ';
|
|
11
|
-
const len = item.data ? item.data.length : v.type == 'elementStart' ? item.name.length + 2 : item.name.length + 3;
|
|
12
|
-
|
|
13
|
-
return sign.repeat( len );
|
|
14
|
-
} ).join( '' );
|
|
15
|
-
|
|
16
|
-
console.log( elements );
|
|
17
|
-
console.log( signs );
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
window.printTape = printTape;
|
|
21
|
-
/**/
|
|
1
|
+
import '../theme/revisionviewer.css';
|
|
2
|
+
/**
|
|
3
|
+
function printTape( tape ) {
|
|
4
|
+
const elements = tape.map(
|
|
5
|
+
item => item.item.data ? item.item.data : item.type == 'elementStart' ? '<' + item.item.name + '>' : '</' + item.item.name + '>'
|
|
6
|
+
).join( '' );
|
|
7
|
+
|
|
8
|
+
const signs = tape.map( v => {
|
|
9
|
+
const item = v.item;
|
|
10
|
+
const sign = ( v.isAdded || v.isAddSuggestion ) ? v.isRemoved ? '=' : '+' : v.isRemoved ? '-' : ' ';
|
|
11
|
+
const len = item.data ? item.data.length : v.type == 'elementStart' ? item.name.length + 2 : item.name.length + 3;
|
|
12
|
+
|
|
13
|
+
return sign.repeat( len );
|
|
14
|
+
} ).join( '' );
|
|
15
|
+
|
|
16
|
+
console.log( elements );
|
|
17
|
+
console.log( signs );
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
window.printTape = printTape;
|
|
21
|
+
/**/
|