@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230710.1 → 0.0.0-nightly-20230712.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisiontracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x57bf=['_baseRootsAttributes','getRange','config','getRevision','getChildren','_authorId','editor','from','root','_isInit','editing','editor-initial-data-replaced-with-revision-data','stickiness','offsetSize','_getFromVersion','targetPosition','getNodeByPath','_revisionId','_touchedRoots','type','getUser','PENDING_ACTION_REVISION_HISTORY','default','initialData','map','_setConversion','elementEnd','_markChanges','delete','addRevision','roots','getRoot','resolve','Empty\x20document','_insertChild','rootName','getData','get','reverse','_lastTo','_source','pluginName','add','_markers','position','previousPosition','_addPendingAction','createPositionAfter','insertionPosition','graveyardPosition','forEach','parse','getLatestVersion','insertions','requires','_lastFrom','_generateTape','children','clone','buildRevisionData','_baseRoots','newRange','_isAttached','attributes','NEGATIVE_INFINITY','_handleOperation','_fixOperation','_createFromRanges','_bufferedUpdates','_handleRootAttributeOperation','sendBufferedUpdates','_removePendingAction','PendingActions','_update','authorsIds','collaboration.channelId','$graveyard','_loadedStateData','_saveMetaData','_handleSplitOperation','_removeMetaData','repository','initial','length','changeRootAttribute','name','_getPreviousFrom','_prepareViewToSave','_pendingAction','_copyMarkers','createPositionBefore','set','_applyOperations','_calculateMetaData','processor','reinsert','_handleRootOperation','_operations','_touched','_createInitialRevision','version','updateRevisions','_createCurrentRevision','attachChange','_startingVersion','currentRevision','filter','start','for','adapter','_setAttribute','Initial\x20revision','path','_continueCurrentRevision','includes','markers','end','howMany','_handleInsertOperation','_makeRevision','_initialRoots','toModel','model','Users','parent','_replaceEditorDataWithRevisionData','getAttribute','rootsAttributes','revision','_getViewJson','_revisionDataBuilder','_initialRevisionId','paragraph','item','getRevisionDocumentData','getIndex','fromEntries','_removeRevisionMarkers','data','userId','setRevisionData','conversion','offset','_getBaseVids','_transformMarkers','affectsData','history','values','$text','tableCell','_findInsertionIndex','isAttached','_processRootBeforeSave','revision-start','locale','_getState','clear','stringify','source','getRevisionRootsAttributes','baseVersion','_isPendingUpdate','getRootNames','loadState','RevisionTracker','_handleMarkerOperation','createPositionFromPath','oldRange','sort','createRange','diffData','revision:','addRootAttribute','_idsRoots','fromVersion','createRangeIn','getAncestors','getWalker','key','insertion','createdAt','_bufferUpdate','_startingRevisionId','view','find','_savedMetaData','addRevisionData','getCurrentRevisionId','upcast','_makeModelFromViewString','trim','string','split','document','data-revision-','_loadRevisionData','elementStart','_execute','getRevisions','deletions','_touchedMarkers','then','push','vid_end','_fixRange','_handleMoveOperation','marked','getChild','move','isEqual','_loadState','range','authors','_diffRoots','createRevision','merge','setSource','insert','nodes','text','creator','vid','isReady','toVersion','_handleMergeOperation','ready','update','getOperations','afterInit','_reset','_baseIdsRoots','slice','keys','creatorId','attributesBefore','startsWith','marker','_clone','remove','_diffRootsAttributes','nodeAfter','useFillerType','getAttributes','getOperation','toView','isAdd','vid_start','bind','element','plugins','attributesAfter','_cloneOperation','has','_getVidAttributeName','detachRoot','revisionHistory.resumeUnsavedRevision','RealTimeCollaborationClient','init','_makeIdsRoot','_fixPosition','newValue','reInit','splitPosition','createPositionAt','_appendChild'];(function(_0x3b8b9d,_0x57bf2c){const _0x230874=function(_0x4178e3){while(--_0x4178e3){_0x3b8b9d['push'](_0x3b8b9d['shift']());}};_0x230874(++_0x57bf2c);}(_0x57bf,0x15e));const _0x2308=function(_0x3b8b9d,_0x57bf2c){_0x3b8b9d=_0x3b8b9d-0x0;let _0x230874=_0x57bf[_0x3b8b9d];return _0x230874;};import{Users as _0x533a9d}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x20c2c1,PendingActions as _0x3be620}from'ckeditor5/src/core';import{logWarning as _0x3614d8,uid as _0x284e1f}from'ckeditor5/src/utils';import{Position as _0x1999a2,Range as _0x46db3d,Element as _0x4f47c4,DocumentFragment as _0x507c98,ViewText as _0x261b87,ViewElement as _0x268e23,ViewContainerElement as _0x1b5a80,ViewAttributeElement as _0x19a53e,ViewEmptyElement as _0x169e51,ViewRawElement as _0x4cf5ec,ViewUIElement as _0x8446b5,ViewDocumentFragment as _0x4b7aff}from'ckeditor5/src/engine';import _0x1df075 from'./revisionsrepository';import{getTranslation as _0x4395e6}from'./utils/common-translations';import{cloneDeep as _0x3b2ef1,isEqual as _0xf62e5a}from'lodash-es';const F={'c':_0x1b5a80,'a':_0x19a53e,'e':_0x169e51,'r':_0x4cf5ec,'u':_0x8446b5};export default class u extends _0x20c2c1{static get[_0x2308('0xdd')](){return _0x2308('0x4f');}static get[_0x2308('0xea')](){return[_0x533a9d,_0x1df075,_0x3be620];}constructor(_0x48590d){super(_0x48590d),this[_0x2308('0x18')]=null,this[_0x2308('0x14')]=null,this[_0x2308('0x2d')]=new B(this['editor']),this[_0x2308('0x2e')]=this[_0x2308('0xba')][_0x2308('0xb6')][_0x2308('0xd9')](_0x2308('0xff'))||_0x2308('0x106'),this[_0x2308('0xf8')]=new Map(),this['_loadedStateData']=null;const _0x25eb7c=_0x284e1f();this['_source']={'history':this[_0x2308('0xba')]['model'][_0x2308('0x6c')][_0x2308('0x3d')],'getLatestVersion':()=>Promise[_0x2308('0xd4')](this[_0x2308('0xba')][_0x2308('0x25')][_0x2308('0x6c')][_0x2308('0xf')]),'getCurrentRevisionId':()=>_0x25eb7c},this[_0x2308('0x6')](_0x2308('0x89'),!0x1),this['set']('isEnabled',!0x0),this[_0x2308('0x6')](_0x2308('0x4c'),!0x1),this[_0x2308('0xba')][_0x2308('0xb6')]['define'](_0x2308('0xaa'),!0x0),this[_0x2308('0xba')][_0x2308('0x38')][_0x2308('0x17')](_0x2308('0x67'))['dataToMarker']({'view':_0x2308('0x2b')});}[_0x2308('0xac')](){this[_0x2308('0x105')]=this['editor'][_0x2308('0xa4')][_0x2308('0xd9')]('RevisionsRepository'),this[_0x2308('0xcd')](),this['editor'][_0x2308('0x35')]['on'](_0x2308('0x8c'),()=>{const _0x2dc7d6=this[_0x2308('0x105')][_0x2308('0xb7')](0x0),_0x283be8=_0x2dc7d6&&null===_0x2dc7d6[_0x2308('0x87')]?_0x2dc7d6:null;if(this[_0x2308('0x1c')]=!!_0x283be8&&this[_0x2308('0xba')][_0x2308('0xb6')][_0x2308('0xd9')](_0x2308('0xaa')),this[_0x2308('0xba')][_0x2308('0xa4')][_0x2308('0xa7')](_0x2308('0xab'))){const _0xcc88c9=this[_0x2308('0xdc')][_0x2308('0x66')](),_0x4643ad=this[_0x2308('0x105')][_0x2308('0xb7')](_0xcc88c9);if(_0x4643ad)this['_startingVersion']=_0x4643ad[_0x2308('0x59')],this['_continueCurrentRevision']=!0x1;else{const _0x5e287e=this[_0x2308('0xdc')][_0x2308('0x3d')][_0x2308('0xc')][_0x2308('0x63')](_0x22992c=>!_0x22992c[_0x2308('0xbd')]),_0x3fb6f9=_0x5e287e?_0x5e287e[_0x2308('0x4b')]:this[_0x2308('0xdc')][_0x2308('0x3d')]['version'];_0x2dc7d6?(_0x2dc7d6[_0x2308('0x8a')]<_0x3fb6f9&&_0x2dc7d6[_0x2308('0xfd')]({'toVersion':_0x3fb6f9}),this[_0x2308('0x1c')]?(this['_source'][_0x2308('0x66')]=()=>_0x283be8['id'],this[_0x2308('0x13')]=_0x283be8[_0x2308('0x59')]):(this[_0x2308('0x13')]=_0x2dc7d6[_0x2308('0x8a')],this[_0x2308('0x1c')]=!0x1)):(this[_0x2308('0x13')]=_0x3fb6f9,this[_0x2308('0x1c')]=!0x1);}}else _0x283be8&&(this[_0x2308('0xba')]['model'][_0x2308('0x6c')][_0x2308('0x3d')][_0x2308('0xf')]=Math['max'](_0x283be8['toVersion'],this[_0x2308('0xba')][_0x2308('0x25')][_0x2308('0x6c')]['history'][_0x2308('0xf')]),_0x283be8[_0x2308('0x59')]===_0x283be8[_0x2308('0x8a')]?(0x0!==_0x283be8[_0x2308('0x59')]&&(this[_0x2308('0xdc')][_0x2308('0x66')]=()=>_0x283be8['id']),this[_0x2308('0x1c')]=!0x1):this['_continueCurrentRevision']&&(this[_0x2308('0xdc')][_0x2308('0x66')]=()=>_0x283be8['id'],this[_0x2308('0x13')]=_0x283be8[_0x2308('0x59')])),this[_0x2308('0x1c')]||(this[_0x2308('0x13')]=this[_0x2308('0xba')][_0x2308('0x25')][_0x2308('0x6c')][_0x2308('0xf')]);this[_0x2308('0x2d')][_0x2308('0xac')](this[_0x2308('0xdc')][_0x2308('0x3d')]),this[_0x2308('0xe')](this[_0x2308('0x13')]),this['_createCurrentRevision'](this['_startingVersion']),this[_0x2308('0x18')]&&this['sendBufferedUpdates']();}),this[_0x2308('0xa2')]('isReady')['to'](this,_0x2308('0x4c'),_0x4a6641=>!_0x4a6641);}async[_0x2308('0x8f')](){if(this['repository']['length']>0x0){const _0x59a0fc=this[_0x2308('0x105')]['getRevision'](0x0),_0x526aa8=await this[_0x2308('0x31')](_0x59a0fc),_0x19ecb8=await this[_0x2308('0x4a')](_0x59a0fc);this['_replaceEditorDataWithRevisionData'](_0x526aa8,_0x19ecb8);}}[_0x2308('0x83')](_0x4be6c9){this[_0x2308('0xdc')]=_0x4be6c9;}async[_0x2308('0x8d')](){const _0x31d867=await this[_0x2308('0xdc')][_0x2308('0xe8')]();if(_0x31d867>this['currentRevision'][_0x2308('0x8a')]){await this[_0x2308('0x7d')]();const _0x306fad=this[_0x2308('0xef')]({'revision':this[_0x2308('0x14')],'to':_0x31d867});_0x306fad[_0x2308('0x7f')]=_0x306fad[_0x2308('0xfe')][_0x2308('0xcc')](_0x4a7cb2=>this[_0x2308('0xba')]['plugins'][_0x2308('0xd9')](_0x2308('0x26'))[_0x2308('0xc8')](_0x4a7cb2)),this[_0x2308('0x14')]['_update'](_0x306fad);}}async['_loadState'](){this[_0x2308('0x1c')]&&!this[_0x2308('0x101')]&&(await this[_0x2308('0x6e')](this[_0x2308('0x14')]),this[_0x2308('0x2d')][_0x2308('0x4e')](this[_0x2308('0x14')]),this[_0x2308('0x101')]={'fromVersion':this[_0x2308('0x14')][_0x2308('0x59')],'authors':this['currentRevision'][_0x2308('0x7f')]['slice']()});}async['saveRevision'](_0x1d113b={},_0x2c517d=null){const _0x22f9e4=[];await this[_0x2308('0x7d')](),this[_0x2308('0x1c')]=!0x1,_0x2c517d>this['currentRevision']['toVersion']&&(_0x2c517d=null),null===_0x2c517d&&(_0x2c517d=await this[_0x2308('0xdc')][_0x2308('0xe8')]());const _0x433c52=this[_0x2308('0xc2')](_0x2c517d),_0x554c6d=this[_0x2308('0xef')]({'from':_0x433c52,'to':_0x2c517d});if(this['currentRevision']['toVersion']<_0x2c517d){const _0x31c5ed=this['buildRevisionData']({'revision':this[_0x2308('0x14')],'from':_0x2c517d,'to':_0x2c517d});_0x31c5ed['authors']=[],_0x31c5ed[_0x2308('0xfe')]=[],_0x31c5ed['id']=this[_0x2308('0x14')]['id'],this[_0x2308('0x14')][_0x2308('0xfd')](_0x31c5ed,!0x0),delete _0x31c5ed[_0x2308('0x7f')],_0x22f9e4[_0x2308('0x75')](_0x31c5ed);}_0x1d113b[_0x2308('0x94')]=this[_0x2308('0xba')]['plugins'][_0x2308('0xd9')]('Users')['me']['id'],_0x1d113b[_0x2308('0x0')]=_0x1d113b[_0x2308('0x0')]||null,_0x1d113b['id']=_0x1d113b['id']||_0x284e1f(),_0x1d113b={..._0x1d113b,..._0x554c6d};const _0x951fe7=this['addRevisionData'](_0x1d113b);_0x22f9e4[_0x2308('0x75')](_0x1d113b);const _0x49bd5d=this[_0x2308('0x105')][_0x2308('0x32')](_0x951fe7);if(0x0!==_0x49bd5d){const _0x5b60b6=this['repository'][_0x2308('0xb7')](_0x49bd5d-0x1);if(_0x5b60b6[_0x2308('0x59')]!==_0x2c517d){const _0x142920=this[_0x2308('0x2d')][_0x2308('0xd8')](_0x2c517d,_0x5b60b6[_0x2308('0x8a')]),_0x1b2047={'id':_0x5b60b6['id'],'diffData':_0x142920[_0x2308('0x55')],'authorsIds':_0x142920[_0x2308('0xfe')],'authors':_0x142920[_0x2308('0xfe')]['map'](_0x3b31d8=>this[_0x2308('0xba')][_0x2308('0xa4')][_0x2308('0xd9')]('Users')[_0x2308('0xc8')](_0x3b31d8)),'fromVersion':_0x2c517d};_0x5b60b6===this['currentRevision']&&(_0x1b2047[_0x2308('0x5f')]=new Date(_0x1d113b[_0x2308('0x5f')]['getTime']()+0xa)),_0x5b60b6[_0x2308('0xfd')](_0x1b2047,!0x0),delete _0x1b2047[_0x2308('0x7f')],_0x22f9e4[_0x2308('0x75')](_0x1b2047);}}if(this[_0x2308('0x18')]){for(const _0x4ef223 of _0x22f9e4)this[_0x2308('0x60')](_0x4ef223['id'],_0x4ef223,!0x0);this[_0x2308('0xfa')]();}return _0x951fe7;}[_0x2308('0x65')](_0x448d03){const _0x4ed90f=this[_0x2308('0x105')][_0x2308('0x81')](_0x448d03);return this[_0x2308('0x18')]&&_0x4ed90f['on'](_0x2308('0xfd'),(_0x2dcbdc,_0x446129,_0x3e49ba)=>{_0x3e49ba||(this[_0x2308('0x60')](_0x446129['id'],_0x446129,!0x0),this[_0x2308('0xfa')]());}),this['repository'][_0x2308('0xd1')](_0x4ed90f,this[_0x2308('0x41')](_0x4ed90f)),_0x4ed90f;}async[_0x2308('0x31')](_0x3155c5){await this[_0x2308('0x6e')](_0x3155c5);const _0x4322b8={};for(const _0xcb476a in _0x3155c5[_0x2308('0x55')]){if(_0x3155c5[_0x2308('0x55')][_0xcb476a]['attachChange']&&!_0x3155c5[_0x2308('0x55')][_0xcb476a][_0x2308('0x12')][_0x2308('0x42')])continue;const _0x20b8f1=this[_0x2308('0x34')](JSON[_0x2308('0xe7')](_0x3155c5[_0x2308('0x55')][_0xcb476a][_0x2308('0xe9')])),_0x50f929=this['editor'][_0x2308('0xbe')][_0x2308('0x62')][_0x2308('0x6c')],_0x57f1da=new _0x4b7aff(_0x50f929,_0x20b8f1['map'](_0x91aa7=>T(_0x91aa7,this[_0x2308('0xba')])));this[_0x2308('0xba')]['data'][_0x2308('0x9')][_0x2308('0x9c')](_0x2308('0x79')),_0x4322b8[_0xcb476a]=this['editor']['data'][_0x2308('0x9')]['toData'](_0x57f1da),this[_0x2308('0xba')][_0x2308('0x35')][_0x2308('0x9')][_0x2308('0x9c')](_0x2308('0xca'));}return _0x4322b8;}async['getRevisionRootsAttributes'](_0x271035){await this[_0x2308('0x6e')](_0x271035);const _0xfb6f2e={};for(const _0x4182bd in _0x271035['diffData'])_0x271035[_0x2308('0x55')][_0x4182bd][_0x2308('0x12')]&&!_0x271035[_0x2308('0x55')][_0x4182bd]['attachChange'][_0x2308('0x42')]||(_0xfb6f2e[_0x4182bd]=_0x271035[_0x2308('0x55')][_0x4182bd][_0x2308('0xa5')]||{});return _0xfb6f2e;}['sendBufferedUpdates'](){if(0x0===this[_0x2308('0xf8')]['size'])return;if(this[_0x2308('0x4c')])return;let _0x39fe06=Array['from'](this[_0x2308('0xf8')][_0x2308('0x3e')]());this[_0x2308('0xf8')][_0x2308('0x47')]();for(let _0x52f276=0x0;_0x52f276<_0x39fe06[_0x2308('0x107')];_0x52f276++){const _0x33324d=_0x39fe06[_0x52f276];let _0x7b4ed7=!0x1;for(const _0x191ac8 of Object[_0x2308('0x93')](_0x33324d))void 0x0===_0x33324d[_0x191ac8]?delete _0x33324d[_0x191ac8]:'id'!==_0x191ac8&&(_0x7b4ed7=!0x0);_0x7b4ed7||(_0x39fe06[_0x52f276]=null);}if(_0x39fe06=_0x39fe06[_0x2308('0x15')](_0x253086=>null!==_0x253086),!_0x39fe06[_0x2308('0x107')])return;for(let _0x675a47=0x0;_0x675a47<_0x39fe06['length'];_0x675a47++){const _0x549178=_0x39fe06[_0x675a47];void 0x0!==_0x549178[_0x2308('0x59')]&&void 0x0===_0x549178[_0x2308('0x8a')]&&(_0x549178['toVersion']=this[_0x2308('0x105')][_0x2308('0xb7')](_0x549178['id'])[_0x2308('0x8a')]),void 0x0!==_0x549178[_0x2308('0x8a')]&&void 0x0===_0x549178[_0x2308('0x59')]&&(_0x549178['fromVersion']=this['repository'][_0x2308('0xb7')](_0x549178['id'])[_0x2308('0x59')]);}const _0x3fd789=this['editor'][_0x2308('0xb6')][_0x2308('0xd9')]('collaboration.channelId');this[_0x2308('0x4c')]=!0x0,this[_0x2308('0xe2')](),this[_0x2308('0x18')][_0x2308('0x10')](_0x39fe06,_0x3fd789)['finally'](()=>{this[_0x2308('0x4c')]=!0x1;})[_0x2308('0x74')](_0x526db1=>{if(_0x526db1)for(const _0x1edd36 of _0x526db1)this[_0x2308('0x37')]({'id':_0x1edd36['id'],'createdAt':_0x1edd36[_0x2308('0x5f')]});this[_0x2308('0xfb')](),this['sendBufferedUpdates']();});}[_0x2308('0x28')](_0xa668a9,_0x5a5534){let _0xc9b6eb=this[_0x2308('0xba')][_0x2308('0xb6')]['get']('initialData'),_0x2db63e=this['editor'][_0x2308('0xb6')][_0x2308('0xd9')](_0x2308('0x2a'));if(void 0x0===_0xc9b6eb){_0xc9b6eb={};for(const _0xb75653 of this['editor']['model'][_0x2308('0x6c')][_0x2308('0x4d')]())_0xc9b6eb[_0xb75653]='';}if(_0x2308('0x6a')==typeof _0xc9b6eb&&(_0xc9b6eb={'main':_0xc9b6eb}),void 0x0===_0x2db63e){_0x2db63e={};for(const _0x54896b of this[_0x2308('0xba')][_0x2308('0x25')][_0x2308('0x6c')][_0x2308('0x4d')]())_0x2db63e[_0x54896b]={};}let _0x3d93aa=!0x1;const _0x50b3e1=Object[_0x2308('0x93')](_0xc9b6eb),_0x51c179=Object['keys'](_0xa668a9);for(const _0x5df055 of _0x50b3e1){if(_0xc9b6eb[_0x5df055]!==_0xa668a9[_0x5df055]&&''!==_0xc9b6eb[_0x5df055][_0x2308('0x69')]()){_0x3d93aa=!0x0;break;}if(!_0xf62e5a(_0x2db63e[_0x5df055],_0x5a5534[_0x5df055])&&Object[_0x2308('0x93')](_0x2db63e[_0x5df055])['length']>0x0){_0x3d93aa=!0x0;break;}}_0x3d93aa||(_0x3d93aa=_0x51c179['some'](_0xb210e3=>!_0x50b3e1[_0x2308('0x1d')](_0xb210e3))),_0x3d93aa&&_0x3614d8(_0x2308('0xbf'),{'editorData':_0xc9b6eb,'editorRootsAttributes':_0x2db63e,'revisionData':_0xa668a9,'revisionRootsAttributes':_0x5a5534}),this[_0x2308('0xba')][_0x2308('0xb6')][_0x2308('0x6')](_0x2308('0xcb'),_0xa668a9),this[_0x2308('0xba')][_0x2308('0xb6')][_0x2308('0x6')](_0x2308('0x2a'),_0x5a5534);}['_addPendingAction'](){if(!this[_0x2308('0x3')]){const _0x5446c3=this[_0x2308('0xba')][_0x2308('0xa4')][_0x2308('0xd9')](_0x2308('0xfc'));this['_pendingAction']=_0x5446c3[_0x2308('0xde')](_0x4395e6(this[_0x2308('0xba')][_0x2308('0x45')],_0x2308('0xc9')));}}[_0x2308('0xfb')](){this[_0x2308('0x3')]&&(this['editor'][_0x2308('0xa4')][_0x2308('0xd9')](_0x2308('0xfc'))[_0x2308('0x99')](this[_0x2308('0x3')]),this[_0x2308('0x3')]=null);}['_findInsertionIndex'](_0x3503b4){const _0x53e0b1=this[_0x2308('0x105')][_0x2308('0x71')]();_0x53e0b1[_0x2308('0xda')]();let _0x1b24da=0x0;for(;_0x1b24da<_0x53e0b1[_0x2308('0x107')];){const _0x3e73df=_0x53e0b1[_0x1b24da];if(_0x3e73df===this[_0x2308('0x14')]){_0x1b24da++;continue;}if(_0x3e73df['id']===this[_0x2308('0x2e')])break;const _0x1217b1=_0x3503b4[_0x2308('0x8a')]-_0x3e73df[_0x2308('0x8a')]||_0x3503b4[_0x2308('0x59')]-_0x3e73df[_0x2308('0x59')];if(_0x1217b1>0x0)break;if(_0x1217b1<0x0)_0x1b24da++;else{if(!_0x3503b4[_0x2308('0x87')]&&_0x3e73df[_0x2308('0x87')])break;if(_0x3e73df[_0x2308('0x87')]||!_0x3503b4['creator']){if(_0x3503b4[_0x2308('0x5f')]>_0x3e73df['createdAt'])break;_0x1b24da++;}else _0x1b24da++;}}return _0x1b24da;}[_0x2308('0x37')](_0x3cc0a5){const _0x110d30=this[_0x2308('0x105')][_0x2308('0xb7')](_0x3cc0a5['id']);if(_0x3cc0a5[_0x2308('0x5f')]&&(_0x3cc0a5[_0x2308('0x5f')]=new Date(_0x3cc0a5['createdAt'])),_0x3cc0a5[_0x2308('0xfe')]){const _0x15907c=this['editor'][_0x2308('0xa4')][_0x2308('0xd9')](_0x2308('0x26'));_0x3cc0a5['authors']=_0x3cc0a5['authorsIds'][_0x2308('0xcc')](_0x11d91a=>_0x15907c[_0x2308('0xc8')](_0x11d91a));}_0x110d30[_0x2308('0xfd')](_0x3cc0a5,!0x0);}[_0x2308('0xef')]({revision:_0x8eb474=null,from:_0x2ab6b1=null,to:_0xbcbca3=null}){_0x2ab6b1=null!==_0x2ab6b1?_0x2ab6b1:_0x8eb474['fromVersion'],_0xbcbca3=null!==_0xbcbca3?_0xbcbca3:_0x8eb474['toVersion'];const _0x4771ec=this[_0x2308('0x2d')]['getData'](_0x2ab6b1,_0xbcbca3),_0x1c23cc={'diffData':_0x4771ec[_0x2308('0x55')],'authorsIds':_0x4771ec[_0x2308('0xfe')],'fromVersion':_0x2ab6b1,'toVersion':_0xbcbca3};if(!_0x8eb474||_0xbcbca3!==_0x8eb474[_0x2308('0x8a')]){const _0x22d46e=_0xbcbca3-0x1,_0x518fba=this['_source'][_0x2308('0x3d')][_0x2308('0x9e')](_0x22d46e);_0x1c23cc[_0x2308('0x5f')]=_0x518fba&&_0x518fba[_0x2308('0x5f')]||new Date();}if(this[_0x2308('0x101')]&&_0x2ab6b1===this[_0x2308('0x101')][_0x2308('0x59')])for(const _0x239eeb of this['_loadedStateData']['authors'])_0x1c23cc['authorsIds'][_0x2308('0x1d')](_0x239eeb['id'])||_0x1c23cc[_0x2308('0xfe')][_0x2308('0x75')](_0x239eeb['id']);return _0x1c23cc;}[_0x2308('0x6e')](_0x2e67d5){if(!_0x2e67d5||_0x2e67d5[_0x2308('0x55')])return Promise[_0x2308('0xd4')]();{const _0x54e03b=this[_0x2308('0xba')][_0x2308('0xb6')][_0x2308('0xd9')](_0x2308('0xff'));return this['adapter'][_0x2308('0xb7')]({'channelId':_0x54e03b,'revisionId':_0x2e67d5['id']})[_0x2308('0x74')](_0xb8e0f9=>{_0x2e67d5[_0x2308('0x55')]=_0xb8e0f9['diffData'];});}}[_0x2308('0x60')](_0x3b738c,_0xbf6374,_0x1cb9c6){if(this[_0x2308('0xf8')][_0x2308('0xa7')](_0x3b738c)){const _0x55417e=this[_0x2308('0xf8')]['get'](_0x3b738c);_0xbf6374=_0x1cb9c6?{..._0x55417e,..._0xbf6374}:{..._0xbf6374,..._0x55417e};}this[_0x2308('0xf8')][_0x2308('0x6')](_0x3b738c,_0xbf6374);}[_0x2308('0xc2')](_0x476c86){const _0x278dc1=this[_0x2308('0x105')]['getRevisions']();_0x278dc1[_0x2308('0xda')](),_0x278dc1['shift']();const _0x394712=_0x278dc1[_0x2308('0x63')](_0x2f2948=>_0x2f2948[_0x2308('0x8a')]<=_0x476c86)[_0x2308('0x8a')];return _0x394712<this['_startingVersion']?this[_0x2308('0x13')]:_0x394712;}['_createInitialRevision'](_0x215938){const _0x540bdf=this[_0x2308('0x105')][_0x2308('0xb7')](this[_0x2308('0x105')][_0x2308('0x107')]-0x1);if(_0x540bdf)this[_0x2308('0x2e')]=_0x540bdf['id'];else{const _0x1f7dce=!this['editor'][_0x2308('0x25')][_0x2308('0x6c')][_0x2308('0xd2')][_0x2308('0x63')](_0xe03548=>this['editor'][_0x2308('0x25')]['hasContent'](_0xe03548)),_0x21e7cc=this[_0x2308('0xba')][_0x2308('0xa4')][_0x2308('0xd9')]('Users')['me']['id'],_0x1dca32=_0x4395e6(this[_0x2308('0xba')][_0x2308('0x45')],_0x1f7dce?_0x2308('0xd5'):_0x2308('0x1a'));this[_0x2308('0x22')]({'from':_0x215938,'to':_0x215938,'id':this[_0x2308('0x2e')],'name':_0x1dca32,'creatorId':_0x21e7cc});}}[_0x2308('0x11')](_0x37a03b){const _0x22ba0b=this[_0x2308('0xdc')][_0x2308('0x66')]();this[_0x2308('0x14')]=this['repository'][_0x2308('0xb7')](_0x22ba0b),this[_0x2308('0x14')]||(this['currentRevision']=this[_0x2308('0x22')]({'from':_0x37a03b,'to':_0x37a03b,'id':_0x22ba0b,'name':'','creatorId':null}));}['_makeRevision']({name:_0x2c1d98,from:_0x255a2d,to:_0x333706,creatorId:_0x3f3ef4,id:_0x37e088}){const _0x12eb60=this[_0x2308('0xef')]({'from':_0x255a2d,'to':_0x333706});_0x12eb60[_0x2308('0x0')]=_0x2c1d98,_0x12eb60['creatorId']=_0x3f3ef4,_0x12eb60['id']=_0x37e088;const _0x563cbd=this[_0x2308('0x65')](_0x12eb60);return this[_0x2308('0x18')]&&this[_0x2308('0x60')](_0x12eb60['id'],_0x12eb60,!0x0),_0x563cbd;}[_0x2308('0xcd')](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':_0x2308('0x2b')});}[_0x2308('0x34')](_0x3d5ddb){return(_0x3d5ddb=_0x3d5ddb['filter'](_0x43c963=>!_0x43c963['name']||_0x2308('0x44')!==_0x43c963[_0x2308('0x0')]&&'revision-end'!==_0x43c963[_0x2308('0x0')]))[_0x2308('0xe6')](_0x1589f1=>{'string'!=typeof _0x1589f1&&(_0x1589f1['children']=this[_0x2308('0x34')](_0x1589f1[_0x2308('0xed')]),_0x1589f1[_0x2308('0xf3')]=_0x1589f1[_0x2308('0xf3')][_0x2308('0x15')](_0x394dc9=>!_0x394dc9[0x0]['startsWith'](_0x2308('0x6d'))));}),_0x3d5ddb;}}function T(_0x4d602f,_0x2d3e3e){const _0x566325=_0x2d3e3e[_0x2308('0xbe')]['view'][_0x2308('0x6c')];if('string'==typeof _0x4d602f)return new _0x261b87(_0x566325,_0x4d602f);{const _0x3e8416=_0x4d602f[_0x2308('0xed')][_0x2308('0xcc')](_0xcbdbd6=>T(_0xcbdbd6,_0x2d3e3e));return new(F[_0x4d602f['type']]||_0x268e23)(_0x566325,_0x4d602f[_0x2308('0x0')],_0x4d602f[_0x2308('0xf3')],_0x3e8416);}}class B{constructor(_0x5e0edf){this[_0x2308('0xba')]=_0x5e0edf,this[_0x2308('0x64')]=new Map(),this[_0x2308('0xeb')]=-0x1,this[_0x2308('0xdb')]=-0x1,this[_0x2308('0xdf')]=new Map(),this['_diffRoots']=new Map(),this[_0x2308('0x9a')]=new Map(),this['_baseRoots']=new Map(),this[_0x2308('0xb4')]=new Map(),this['_idsRoots']=new Map(),this[_0x2308('0x91')]=new Map(),this[_0x2308('0xd')]=new Map(),this[_0x2308('0x73')]=new Map(),this[_0x2308('0xc6')]=new Map(),this['_revisionId']=0x1,this[_0x2308('0x23')]=this['editor'][_0x2308('0x25')][_0x2308('0x6c')][_0x2308('0x4d')](),this[_0x2308('0x23')][_0x2308('0x75')]('$graveyard');}[_0x2308('0xac')](_0x24a000){this[_0x2308('0x49')]=_0x24a000;const _0x171051=new Map(),_0x15fe6e=new Map(),_0x16b0a4=this['editor'][_0x2308('0x25')]['document'][_0x2308('0x4d')](!0x0);_0x16b0a4[_0x2308('0x75')](_0x2308('0x100'));for(const _0x3d35cb of _0x16b0a4){const _0x56fae7=this[_0x2308('0xba')]['model'][_0x2308('0x6c')][_0x2308('0xd3')](_0x3d35cb),_0x123975=J(_0x56fae7);_0x171051['set'](_0x3d35cb,_0x123975),_0x15fe6e[_0x2308('0x6')](_0x3d35cb,Object[_0x2308('0x33')](_0x56fae7[_0x2308('0x9d')]()));}const _0x1f13f3=Array[_0x2308('0xbb')](this[_0x2308('0xba')][_0x2308('0x25')][_0x2308('0x1e')])[_0x2308('0xcc')](_0x24ab93=>[_0x24ab93[_0x2308('0x0')],_0x24ab93[_0x2308('0xb5')]()]),_0x38dba4=this[_0x2308('0x49')][_0x2308('0xf')];this[_0x2308('0x102')](_0x38dba4,_0x171051,_0x1f13f3,_0x15fe6e),this[_0x2308('0x61')]=this[_0x2308('0xc5')];const _0x35342f=new Map(),_0xadeec1=new Map();for(const _0x3a01d1 of this[_0x2308('0x23')]){const _0x4908eb=H(_0x3a01d1);_0x35342f[_0x2308('0x6')](_0x3a01d1,_0x4908eb),_0xadeec1['set'](_0x3a01d1,{});}this[_0x2308('0x102')](Number[_0x2308('0xf4')],_0x35342f,[],_0xadeec1);}[_0x2308('0xd8')](_0x2ba29e,_0x4d7446){if(this[_0x2308('0xeb')]===_0x2ba29e&&this[_0x2308('0xdb')]<=_0x4d7446)this[_0x2308('0x64')]['size']>0x1&&this[_0x2308('0x104')](this[_0x2308('0xdb')]),this[_0x2308('0x7')](this[_0x2308('0xdb')],_0x4d7446,!0x0);else{if(!this[_0x2308('0x64')][_0x2308('0xa7')](_0x2ba29e)){const _0x3e570a=this[_0x2308('0x1')](_0x2ba29e);this['_calculateMetaData'](_0x3e570a,_0x2ba29e,!0x1);}this[_0x2308('0x8')](_0x2ba29e,_0x4d7446,!0x0);}return this[_0x2308('0xeb')]=_0x2ba29e,this[_0x2308('0xdb')]=_0x4d7446,this[_0x2308('0x46')]();}[_0x2308('0x4e')](_0x3ae8d3){this['_reset'](),this[_0x2308('0xeb')]=_0x3ae8d3[_0x2308('0x59')],this[_0x2308('0xdb')]=_0x3ae8d3[_0x2308('0x8a')];for(const _0xd72f1e in _0x3ae8d3[_0x2308('0x55')]){const _0xb90d4d=_0x3ae8d3[_0x2308('0x55')][_0xd72f1e]['attachChange'],_0x316358=_0x3b2ef1(_0x3ae8d3[_0x2308('0x55')][_0xd72f1e][_0x2308('0x95')])||{},_0x38b8f9=this[_0x2308('0x68')](_0x3ae8d3[_0x2308('0x55')][_0xd72f1e][_0x2308('0x72')]);_0x38b8f9['rootName']=_0xd72f1e,_0x38b8f9[_0x2308('0xf2')]=!_0xb90d4d||!_0xb90d4d[_0x2308('0x42')],_0x38b8f9[_0x2308('0x42')]=()=>_0x38b8f9[_0x2308('0xf2')],this[_0x2308('0xf0')][_0x2308('0x6')](_0xd72f1e,_0x38b8f9),this['_baseRootsAttributes'][_0x2308('0x6')](_0xd72f1e,_0x316358),_0xb90d4d&&this[_0x2308('0xc6')]['set'](_0xd72f1e,_0xb90d4d);const _0x1a57f0=this['_makeIdsRoot'](_0x38b8f9);this[_0x2308('0x91')][_0x2308('0x6')](_0xd72f1e,_0x1a57f0);for(const [_0x119c4b,_0x24ed3c]of _0x38b8f9['markers']){if(!_0x119c4b[_0x2308('0x96')]('revision:'))continue;const _0x4ac10d=_0x119c4b[_0x2308('0x6b')](':')[0x2];for(const _0x52ff77 of _0x24ed3c[_0x2308('0x5c')]({'singleCharacters':!0x0})){const _0x582c78=this[_0x2308('0xa8')](_0x52ff77),_0x57a464=_0x2308('0xce')==_0x52ff77['type']?_0x52ff77['previousPosition']['path'][_0x2308('0x92')](0x0,-0x1):_0x52ff77[_0x2308('0xe1')][_0x2308('0x1b')],_0x20f9c7=_0x1a57f0[_0x2308('0xc4')](_0x57a464)[_0x2308('0x29')](_0x582c78);this[_0x2308('0xd')]['set'](_0x20f9c7,{'userId':_0x4ac10d});}}}this[_0x2308('0x61')]=this[_0x2308('0xc5')];const _0x4e1261=[...Array(this[_0x2308('0xc5')])[_0x2308('0x93')]()][_0x2308('0x92')](0x1)[_0x2308('0x15')](_0x453f3e=>!this['_touched'][_0x2308('0xa7')](_0x453f3e));let _0x4b0ba5=0x0;const _0x5301b4=new Map();for(const _0x4f5e35 in _0x3ae8d3[_0x2308('0x55')]){const _0x13463d=_0x3ae8d3[_0x2308('0x55')][_0x4f5e35][_0x2308('0x12')],_0x4ef219=_0x3b2ef1(_0x3ae8d3[_0x2308('0x55')][_0x4f5e35][_0x2308('0xa5')])||{},_0x30caa9=this['_makeModelFromViewString'](_0x3ae8d3[_0x2308('0x55')][_0x4f5e35][_0x2308('0xe9')]);_0x30caa9[_0x2308('0xd7')]=_0x4f5e35,_0x30caa9[_0x2308('0xf2')]=!_0x13463d||_0x13463d[_0x2308('0x42')],_0x30caa9[_0x2308('0x42')]=()=>_0x30caa9[_0x2308('0xf2')],this[_0x2308('0x80')][_0x2308('0x6')](_0x4f5e35,_0x30caa9),this[_0x2308('0x9a')]['set'](_0x4f5e35,_0x4ef219);const _0x500c90=this['_makeIdsRoot'](_0x30caa9,Number['NEGATIVE_INFINITY']);this[_0x2308('0x58')][_0x2308('0x6')](_0x4f5e35,_0x500c90),_0x5301b4[_0x2308('0x6')](_0x4f5e35,_0x30caa9[_0x2308('0x42')]()?_0x4ef219:{});for(const [_0x509aad,_0x16ec99]of _0x30caa9['markers']){if(!_0x509aad[_0x2308('0x96')]('revision:'))continue;const _0x571212=_0x509aad[_0x2308('0x6b')](':')[0x2];for(const _0x240dc7 of _0x16ec99[_0x2308('0x5c')]({'singleCharacters':!0x0})){const _0x319770=this[_0x2308('0xa8')](_0x240dc7),_0xf0dad0=this['_revisionId']++,_0x42db7e='elementEnd'==_0x240dc7[_0x2308('0xc7')]?_0x240dc7['previousPosition'][_0x2308('0x1b')][_0x2308('0x92')](0x0,-0x1):_0x240dc7[_0x2308('0xe1')]['path'];_0x500c90['getNodeByPath'](_0x42db7e)['_setAttribute'](_0x319770,_0xf0dad0),this['_touched'][_0x2308('0x6')](_0xf0dad0,{'userId':_0x571212});}}for(const _0x2fbd7b of this[_0x2308('0xba')][_0x2308('0x25')][_0x2308('0x5a')](_0x30caa9)[_0x2308('0x5c')]({'singleCharacters':!0x0})){const _0x1ddf7e=this['_getVidAttributeName'](_0x2fbd7b),_0x2346a9=_0x2308('0xce')==_0x2fbd7b[_0x2308('0xc7')]?_0x2fbd7b['previousPosition'][_0x2308('0x1b')]['slice'](0x0,-0x1):_0x2fbd7b[_0x2308('0xe1')][_0x2308('0x1b')],_0xbf192d=_0x500c90[_0x2308('0xc4')](_0x2346a9);_0xbf192d[_0x2308('0x29')](_0x1ddf7e)>0x0||_0xbf192d['_setAttribute'](_0x1ddf7e,_0x4e1261[_0x4b0ba5++]);}for(const [_0x2deb6c,_0x4a3082]of _0x30caa9[_0x2308('0x1e')])_0x2deb6c['startsWith'](_0x2308('0x56'))||this[_0x2308('0xdf')][_0x2308('0x6')](_0x2deb6c,_0x4a3082);}const _0x384bb4=H(_0x2308('0x100'));this[_0x2308('0xf0')][_0x2308('0x6')](_0x2308('0x100'),_0x384bb4),this['_baseIdsRoots'][_0x2308('0x6')](_0x2308('0x100'),this[_0x2308('0xad')](_0x384bb4,0x1));const _0x2b5d56=H('$graveyard');this[_0x2308('0x80')][_0x2308('0x6')]('$graveyard',_0x2b5d56),this[_0x2308('0x58')][_0x2308('0x6')](_0x2308('0x100'),this[_0x2308('0xad')](_0x2b5d56,0x1));const _0x15bfeb=Array[_0x2308('0xbb')](this['_diffRoots'])[_0x2308('0xcc')](([_0x3b40d8,_0x41a884])=>[_0x3b40d8,J(_0x41a884)]);this['_saveMetaData'](this[_0x2308('0xdb')],_0x15bfeb,this[_0x2308('0xdf')],_0x5301b4);}[_0x2308('0x68')](_0x248135){const _0x89b449=JSON['parse'](_0x248135),_0x10ca38=this[_0x2308('0xba')][_0x2308('0xbe')][_0x2308('0x62')][_0x2308('0x6c')],_0x1c10d2=new _0x4b7aff(_0x10ca38,_0x89b449['map'](_0x1b603=>T(_0x1b603,this[_0x2308('0xba')])));return this[_0x2308('0xba')][_0x2308('0x35')][_0x2308('0x24')](_0x1c10d2);}['_saveMetaData'](_0x4b5555,_0x1f0db2,_0x1651be,_0x1852b2){const _0xff0ccd=new Map(_0x1f0db2),_0x187a99=new Map(_0x3b2ef1(_0x1852b2)),_0x452f1f=new Map();for(const [_0x2323f2,_0x2039b7]of _0x1651be)_0x452f1f['set'](_0x2323f2,{'start':_0x2039b7[_0x2308('0x16')][_0x2308('0xee')](),'end':_0x2039b7[_0x2308('0x1f')][_0x2308('0xee')](),'rootName':_0x2039b7['root'][_0x2308('0xd7')]});this[_0x2308('0x64')]['set'](_0x4b5555,{'roots':_0xff0ccd,'markers':_0x452f1f,'rootsAttributes':_0x187a99});}[_0x2308('0x104')](_0x9fb28e){this['_savedMetaData'][_0x2308('0xd0')](_0x9fb28e);}[_0x2308('0xb0')](){this['_reset'](),this[_0x2308('0xeb')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x2308('0x47')](),this['init'](this[_0x2308('0x49')]);}[_0x2308('0x90')](){this['_touched']['clear'](),this[_0x2308('0x73')][_0x2308('0x47')](),this[_0x2308('0xc6')][_0x2308('0x47')](),this[_0x2308('0x80')][_0x2308('0x47')](),this['_diffRootsAttributes'][_0x2308('0x47')](),this[_0x2308('0xf0')][_0x2308('0x47')](),this[_0x2308('0xb4')][_0x2308('0x47')](),this[_0x2308('0x58')][_0x2308('0x47')](),this['_baseIdsRoots'][_0x2308('0x47')](),this[_0x2308('0xdf')][_0x2308('0x47')](),this[_0x2308('0xc5')]=0x1,this['_startingRevisionId']=this[_0x2308('0xc5')];}[_0x2308('0xad')](_0x2107b7,_0x517663=null){let _0x1319cf=null;_0x2107b7['is']('documentFragment')||(_0x1319cf=new _0x4f47c4(_0x2107b7[_0x2308('0x0')],{'vid_start':null===_0x517663?this['_revisionId']++:_0x517663++}));const _0x4e789c=[];for(const _0x309477 of _0x2107b7['getChildren']())if(_0x309477['is'](_0x2308('0xa3'))){_0x4e789c['push'](this['_makeIdsRoot'](_0x309477,_0x517663));const _0x46bd97=_0x4e789c[_0x4e789c[_0x2308('0x107')]-0x1];null!==_0x517663&&(_0x517663=_0x46bd97['is']('element',_0x2308('0x3f'))?_0x46bd97[_0x2308('0x29')]('vid')+0x1:_0x46bd97[_0x2308('0x29')](_0x2308('0x76'))+0x1);}else for(let _0x3e7422=0x0;_0x3e7422<_0x309477[_0x2308('0xc1')];_0x3e7422++)_0x4e789c[_0x2308('0x75')](new _0x4f47c4(_0x2308('0x3f'),{'vid':null===_0x517663?this[_0x2308('0xc5')]++:_0x517663++}));if(_0x2107b7['is']('documentFragment')){const _0x208c67=H(_0x2107b7[_0x2308('0xd7')]);return _0x208c67[_0x2308('0xd6')](0x0,_0x4e789c),_0x208c67;}return _0x1319cf[_0x2308('0x19')](_0x2308('0x76'),null===_0x517663?this[_0x2308('0xc5')]++:_0x517663++),_0x1319cf[_0x2308('0xd6')](0x0,_0x4e789c),_0x1319cf;}[_0x2308('0x8')](_0x9f3dcd,_0x22f170,_0xc26009){this[_0x2308('0x90')]();const {roots:_0x6b4541,markers:_0x2f7e6e,rootsAttributes:_0x1561c8}=this['_savedMetaData'][_0x2308('0xd9')](_0x9f3dcd);this[_0x2308('0xf0')]=new Map(_0x6b4541),this[_0x2308('0xb4')]=new Map(_0x3b2ef1(_0x1561c8));for(const [_0x178d85,_0x49f3f4]of this[_0x2308('0xf0')])if(_0x2308('0x100')!==_0x178d85&&(this[_0x2308('0x80')][_0x2308('0x6')](_0x178d85,J(_0x49f3f4)),this['_diffRootsAttributes']=new Map(_0x3b2ef1(_0x1561c8)),_0xc26009)){const _0x286e79=this[_0x2308('0xc5')];this[_0x2308('0x58')][_0x2308('0x6')](_0x178d85,this[_0x2308('0xad')](_0x49f3f4)),this[_0x2308('0x91')]['set'](_0x178d85,this[_0x2308('0xad')](_0x49f3f4,_0x286e79));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots'][_0x2308('0x6')]('$graveyard',J(this[_0x2308('0xf0')]['get'](_0x2308('0x100')))),_0xc26009&&this['_idsRoots'][_0x2308('0x6')](_0x2308('0x100'),this[_0x2308('0xad')](this['_baseRoots'][_0x2308('0xd9')]('$graveyard')));for(const [_0x7e0575,_0x410f7e]of _0x2f7e6e){const _0x1a6b2b=this[_0x2308('0xf0')][_0x2308('0xd9')](_0x410f7e[_0x2308('0xd7')]),_0x5e65cf=this[_0x2308('0x80')][_0x2308('0xd9')](_0x410f7e[_0x2308('0xd7')]),_0x541d8a=new _0x46db3d(this[_0x2308('0xae')](_0x410f7e[_0x2308('0x16')],_0x1a6b2b),this[_0x2308('0xae')](_0x410f7e[_0x2308('0x1f')],_0x1a6b2b)),_0x3312c1=this['_fixRange'](_0x541d8a,_0x5e65cf);_0x1a6b2b[_0x2308('0x1e')]['set'](_0x7e0575,_0x541d8a),this[_0x2308('0xdf')][_0x2308('0x6')](_0x7e0575,_0x3312c1);}this[_0x2308('0x7')](_0x9f3dcd,_0x22f170,_0xc26009);}[_0x2308('0x7')](_0x3e727d,_0x294be5,_0x5272f8){for(const _0x43d9c9 of this[_0x2308('0x49')][_0x2308('0x8e')](_0x3e727d,_0x294be5))this[_0x2308('0xf5')](_0x43d9c9,_0x5272f8);for(const _0x2d9449 of this['_diffRoots']['values']())_0x2d9449[_0x2308('0x1e')][_0x2308('0x47')]();for(const [_0x550e25,_0x31cef5]of this[_0x2308('0xdf')]){this['_diffRoots'][_0x2308('0xd9')](_0x31cef5['root'][_0x2308('0xd7')])[_0x2308('0x1e')][_0x2308('0x6')](_0x550e25,_0x31cef5[_0x2308('0xee')]());}const _0x622a13=new Map(),_0x206e92=new Map();for(const [_0x1271cc,_0x133bbd]of this[_0x2308('0x80')])_0x622a13[_0x2308('0x6')](_0x1271cc,J(_0x133bbd)),_0x206e92[_0x2308('0x6')](_0x1271cc,this['_diffRootsAttributes'][_0x2308('0xd9')](_0x1271cc));this[_0x2308('0x102')](_0x294be5,_0x622a13,this[_0x2308('0xdf')],_0x206e92);}[_0x2308('0x1')](_0x5a495c){const _0x3c53f3=Array[_0x2308('0xbb')](this[_0x2308('0x64')][_0x2308('0x93')]());_0x3c53f3[_0x2308('0x53')]((_0x5d865a,_0x29ec5a)=>_0x5d865a-_0x29ec5a),_0x3c53f3['reverse']();for(const _0x4141df of _0x3c53f3)if(_0x4141df<_0x5a495c)return _0x4141df;return Number['NEGATIVE_INFINITY'];}[_0x2308('0x4')](_0x457544,_0x90e23a){const _0x1d681d=Array[_0x2308('0xbb')](_0x90e23a[_0x2308('0x1e')])[_0x2308('0xcc')](([_0x3e8a86,_0x3bc7a1])=>[_0x3e8a86,this[_0x2308('0x77')](_0x3bc7a1,_0x457544)]);_0x457544[_0x2308('0x1e')]=new Map(_0x1d681d);}[_0x2308('0x3b')](_0x4479f6){for(const _0x4cbd6c of this[_0x2308('0xdf')]['values']()){const _0x445194=_0x4cbd6c['getTransformedByOperation'](_0x4479f6),_0x4aa8de=_0x46db3d[_0x2308('0xf7')](_0x445194);_0x4cbd6c[_0x2308('0x16')]=_0x4aa8de['start'],_0x4cbd6c[_0x2308('0x1f')]=_0x4aa8de[_0x2308('0x1f')];}}[_0x2308('0xf5')](_0x1b9f48,_0x3839c2){if('addRoot'==_0x1b9f48[_0x2308('0xc7')]||_0x2308('0xa9')==_0x1b9f48['type'])return void this[_0x2308('0xb')](_0x1b9f48,_0x3839c2);if(_0x2308('0x84')==_0x1b9f48['type']){const _0xd68664=_0x1b9f48[_0x2308('0xe0')][_0x2308('0xbc')][_0x2308('0xd7')];this[_0x2308('0x80')]['has'](_0xd68664)||(this[_0x2308('0x80')][_0x2308('0x6')](_0xd68664,H(_0xd68664,!0x0)),this['_diffRootsAttributes'][_0x2308('0x6')](_0xd68664,{}),_0x3839c2&&this[_0x2308('0x58')][_0x2308('0x6')](_0xd68664,H(_0xd68664,!0x0)));}if(_0x2308('0x57')==_0x1b9f48[_0x2308('0xc7')]||'removeRootAttribute'==_0x1b9f48[_0x2308('0xc7')]||_0x2308('0x108')==_0x1b9f48['type'])return void this['_handleRootAttributeOperation'](_0x1b9f48);const _0x11141d=this[_0x2308('0xa6')](_0x1b9f48,this[_0x2308('0x80')]);if(_0x2308('0x97')!==_0x1b9f48[_0x2308('0xc7')]&&(_0x11141d['_execute'](),this[_0x2308('0x3b')](_0x11141d)),_0x3839c2)switch(_0x11141d[_0x2308('0xc7')]){case _0x2308('0x84'):this[_0x2308('0x21')](_0x1b9f48);break;case _0x2308('0x7b'):case _0x2308('0x99'):case _0x2308('0xa'):this[_0x2308('0x78')](_0x1b9f48);break;case _0x2308('0x82'):this[_0x2308('0x8b')](_0x1b9f48);break;case _0x2308('0x6b'):this[_0x2308('0x103')](_0x1b9f48);break;case _0x2308('0x97'):this[_0x2308('0x50')](_0x1b9f48);}}['_cloneOperation'](_0x42abd0,_0x34ae6f){const _0x1ea37f=_0x42abd0[_0x2308('0xee')]();return _0x1ea37f[_0x2308('0xb9')]=_0x42abd0['_authorId'],this[_0x2308('0xf6')](_0x1ea37f,_0x34ae6f),_0x1ea37f;}[_0x2308('0x3a')](_0x1ca877){return _0x1ca877[_0x2308('0xcc')](_0x190c4a=>{const _0x15a80b=this[_0x2308('0xa8')](_0x190c4a);return Number(_0x190c4a[_0x2308('0x30')][_0x2308('0x29')](_0x15a80b));});}[_0x2308('0xec')](_0x30586b,_0x3a89e5){if(_0x30586b['is'](_0x2308('0xa3'),_0x2308('0x3f')))_0x3a89e5['push']({'item':_0x30586b,'type':_0x2308('0x86')});else{_0x30586b['is'](_0x2308('0xa3'))&&_0x3a89e5[_0x2308('0x75')]({'item':_0x30586b,'type':_0x2308('0x6f')});for(const _0x297351 of _0x30586b[_0x2308('0xb8')]())this['_generateTape'](_0x297351,_0x3a89e5);_0x30586b['is'](_0x2308('0xa3'))&&_0x3a89e5['push']({'item':_0x30586b,'type':_0x2308('0xce')});}return _0x3a89e5;}[_0x2308('0x46')](){const _0x2858c2=new Map(this[_0x2308('0xd')]),_0x120ac1=new Map(_0x2858c2),_0x412661=new Map(),_0x4f31d8={'insertions':{},'deletions':{}},_0x118ca0={'insertions':{},'deletions':{}},_0x197862=new Map(),_0x11b578=new Set([...this['_baseRoots'][_0x2308('0x93')](),...this[_0x2308('0x80')][_0x2308('0x93')]()]);_0x11b578[_0x2308('0xd0')](_0x2308('0x100'));for(const _0x33ba95 of _0x11b578){const _0x23d5f2=this[_0x2308('0x80')]['get'](_0x33ba95)||H(_0x33ba95,!0x1),_0x3b7f20=this['_baseRoots'][_0x2308('0xd9')](_0x33ba95)||H(_0x33ba95,!0x1);_0x23d5f2[_0x2308('0x42')]()||_0x3b7f20[_0x2308('0x42')]()?(_0x4f31d8[_0x2308('0xe9')][_0x33ba95]=J(_0x23d5f2),_0x4f31d8[_0x2308('0x72')][_0x33ba95]=J(_0x3b7f20),this['_copyMarkers'](_0x4f31d8[_0x2308('0x72')][_0x33ba95],_0x3b7f20),this[_0x2308('0x4')](_0x4f31d8['insertions'][_0x33ba95],_0x23d5f2),_0x118ca0[_0x2308('0xe9')][_0x33ba95]=this[_0x2308('0xec')](this[_0x2308('0x58')][_0x2308('0xd9')](_0x33ba95),[]),_0x118ca0[_0x2308('0x72')][_0x33ba95]=this[_0x2308('0xec')](this[_0x2308('0x91')][_0x2308('0xd9')](_0x33ba95)||H(_0x33ba95,!0x1),[])):_0x11b578['delete'](_0x33ba95);}for(const _0x13e56c of _0x11b578){const _0x147f8e=_0x118ca0[_0x2308('0xe9')][_0x13e56c];for(const _0x4f1ab2 of _0x147f8e){const _0x4a8262=this[_0x2308('0xa8')](_0x4f1ab2),_0x155f6a=_0x4f1ab2[_0x2308('0x30')]['getAttribute'](_0x4a8262);_0x120ac1[_0x2308('0xd0')](_0x155f6a),_0x155f6a>=this['_startingRevisionId']&&_0x412661[_0x2308('0x6')](_0x155f6a,_0x2858c2[_0x2308('0xd9')](_0x155f6a));}}for(const _0x2b61d8 of _0x11b578){const _0x3664b6=_0x118ca0[_0x2308('0xe9')][_0x2b61d8],_0x395914=this['_getBaseVids'](_0x118ca0[_0x2308('0x72')][_0x2b61d8]);let _0x3e9c75=0x0;for(const _0x500ae2 of _0x3664b6){const _0xfd979a=this[_0x2308('0xa8')](_0x500ae2),_0x1959ce=_0x500ae2[_0x2308('0x30')][_0x2308('0x29')](_0xfd979a);if(!_0x412661[_0x2308('0xa7')](_0x1959ce)&&!_0x197862[_0x2308('0xa7')](_0x1959ce)){if(_0x120ac1['has'](_0x1959ce))_0x3e9c75++;else{if(_0x1959ce!=_0x395914[_0x3e9c75]){const _0x1b8564=_0x2858c2['get'](_0x1959ce)||_0x2858c2[_0x2308('0xd9')](_0x395914[_0x3e9c75]);for(;_0x1959ce!=_0x395914[_0x3e9c75];)_0x120ac1[_0x2308('0xa7')](_0x395914[_0x3e9c75])||(_0x197862[_0x2308('0x6')](_0x395914[_0x3e9c75],_0x1b8564),_0x2858c2[_0x2308('0x6')](_0x395914[_0x3e9c75],_0x1b8564)),_0x3e9c75++;}_0x3e9c75++;}}}}for(const _0xe51f48 of _0x11b578){const _0x3cffb1=_0x118ca0[_0x2308('0xe9')][_0xe51f48];for(const _0x553d7a of _0x3cffb1){const _0x355926=this[_0x2308('0xa8')](_0x553d7a),_0x216c0e=_0x553d7a[_0x2308('0x30')]['getAttribute'](_0x355926);if(_0x197862[_0x2308('0xa7')](_0x216c0e)){const _0x1ac89d=_0x197862[_0x2308('0xd9')](_0x216c0e);_0x120ac1[_0x2308('0xa7')](_0x216c0e)||_0x120ac1[_0x2308('0x6')](_0x216c0e,{..._0x1ac89d}),_0x412661[_0x2308('0x6')](_0x216c0e,{..._0x1ac89d});}}}for(const _0x4cfc49 of _0x120ac1[_0x2308('0x93')]())_0x4cfc49>=this[_0x2308('0x61')]&&_0x120ac1['delete'](_0x4cfc49);const _0xf56d=new Map();for(const _0x381ae of _0x11b578){let _0x4c502c=_0x118ca0[_0x2308('0xe9')][_0x381ae];for(const _0x34659c of _0x4c502c)if(_0x34659c['item']['is'](_0x2308('0xa3'),_0x2308('0x40'))){const _0x467f22=this['_getVidAttributeName'](_0x34659c),_0x36d83a=_0x34659c['item']['getAttribute'](_0x467f22);if(_0x412661[_0x2308('0xa7')](_0x36d83a)){const _0x3baa86=_0x34659c[_0x2308('0x30')][_0x2308('0x27')][_0x2308('0x27')][_0x2308('0x29')](_0x2308('0xa1')),_0x1b8a19=_0xf56d['get'](_0x3baa86)||new Set();_0x1b8a19['add'](_0x412661[_0x2308('0xd9')](_0x36d83a)[_0x2308('0x36')]),_0xf56d[_0x2308('0x6')](_0x3baa86,_0x1b8a19);}}_0x4c502c=_0x118ca0[_0x2308('0x72')][_0x381ae];for(const _0x427035 of _0x4c502c)if(_0x427035[_0x2308('0x30')]['is'](_0x2308('0xa3'),_0x2308('0x40'))){const _0x1c7664=this[_0x2308('0xa8')](_0x427035),_0x3878e7=_0x427035[_0x2308('0x30')][_0x2308('0x29')](_0x1c7664);if(_0x120ac1[_0x2308('0xa7')](_0x3878e7)){const _0x399401=_0x427035[_0x2308('0x30')][_0x2308('0x27')][_0x2308('0x27')]['getAttribute']('vid_start'),_0x1a5c5b=_0xf56d[_0x2308('0xd9')](_0x399401)||new Set();_0x1a5c5b[_0x2308('0xde')](_0x120ac1[_0x2308('0xd9')](_0x3878e7)[_0x2308('0x36')]),_0xf56d[_0x2308('0x6')](_0x399401,_0x1a5c5b);}}for(const _0x385fd3 of _0xf56d[_0x2308('0x93')]())(_0x412661['has'](_0x385fd3)||_0x120ac1[_0x2308('0xa7')](_0x385fd3))&&_0xf56d['delete'](_0x385fd3);}for(const _0x2bf148 of _0x11b578){const _0xa3187=_0x118ca0[_0x2308('0xe9')][_0x2bf148];let _0x4105ef=null,_0x5d5540=null;for(const _0x556176 of _0xa3187){const _0x1ce6ba=this[_0x2308('0xa8')](_0x556176),_0x17ce30=_0x556176[_0x2308('0x30')][_0x2308('0x29')](_0x1ce6ba),_0x4e24f6=_0xf56d[_0x2308('0xd9')](_0x17ce30);_0x4e24f6&&_0x2308('0x6f')==_0x556176[_0x2308('0xc7')]&&(_0x4105ef=Array[_0x2308('0xbb')](_0x4e24f6)[0x0],_0x5d5540=_0x556176['item']['getAttribute']('vid_end')),_0x4105ef&&(_0x120ac1['set'](_0x17ce30,{'userId':_0x4105ef}),_0x412661[_0x2308('0x6')](_0x17ce30,{'userId':_0x4105ef})),_0x17ce30==_0x5d5540&&(_0x4105ef=null,_0x5d5540=null);}}const _0x4380c1={},_0x52aca7=new Set();for(const _0x290758 of _0x11b578){const _0x325b08=_0x4f31d8[_0x2308('0x72')][_0x290758],_0x5e22f2=_0x4f31d8[_0x2308('0xe9')][_0x290758];for(const {userId:_0x1cd59b}of this['_touchedMarkers']['values']())null!==_0x1cd59b&&_0x52aca7[_0x2308('0xde')](_0x1cd59b);for(const {userId:_0x49259c}of this['_touchedRoots'][_0x2308('0x3e')]())null!==_0x49259c&&_0x52aca7['add'](_0x49259c);this[_0x2308('0xcf')](_0x5e22f2,_0x118ca0[_0x2308('0xe9')][_0x290758],_0x412661,_0x2308('0x5e'),_0x52aca7),this[_0x2308('0xcf')](_0x325b08,_0x118ca0[_0x2308('0x72')][_0x290758],_0x120ac1,'deletion',_0x52aca7),_0x4380c1[_0x290758]={'insertions':this[_0x2308('0x2')](_0x5e22f2),'deletions':this[_0x2308('0x2')](_0x325b08),'attachChange':this[_0x2308('0xc6')][_0x2308('0xd9')](_0x290758)||null,'attributesBefore':_0x3b2ef1(this[_0x2308('0xb4')][_0x2308('0xd9')](_0x290758))||{},'attributesAfter':_0x3b2ef1(this['_diffRootsAttributes'][_0x2308('0xd9')](_0x290758))};}return{'diffData':_0x4380c1,'authorsIds':Array['from'](_0x52aca7)};}['_processRootBeforeSave'](_0x474d50){for(const [,_0x5e7489]of _0x474d50[_0x2308('0x1e')]){const _0x605a33=_0x5e7489[_0x2308('0x16')][_0x2308('0x5b')]()['filter'](_0x46e939=>_0x2308('0x40')==_0x46e939[_0x2308('0x0')]);for(const _0x10f9da of _0x605a33)0x1==_0x10f9da['childCount']&&_0x10f9da[_0x2308('0x7a')](0x0)['is'](_0x2308('0xa3'),_0x2308('0x2f'))&&_0x10f9da[_0x2308('0x7a')](0x0)['_setAttribute']('keepParagraph',!0x0);}}[_0x2308('0x2')](_0x2db218){this[_0x2308('0x43')](_0x2db218);const _0x20185e=this[_0x2308('0xba')][_0x2308('0x35')][_0x2308('0x9f')](_0x2db218,{}),_0x46cf3f=Array[_0x2308('0xbb')](_0x20185e[_0x2308('0xb8')]())[_0x2308('0xcc')](_0x5ad188=>this[_0x2308('0x2c')](_0x5ad188));return JSON[_0x2308('0x48')](_0x46cf3f);}[_0x2308('0x2c')](_0x4afab3){if(_0x4afab3['is']('$text'))return _0x4afab3[_0x2308('0x35')];{const _0x3e355b=_0x4afab3;return{'type':Object[_0x2308('0x93')](F)[_0x2308('0x63')](_0x5bc354=>_0x4afab3 instanceof F[_0x5bc354]),'name':_0x3e355b[_0x2308('0x0')],'attributes':Array[_0x2308('0xbb')](_0x3e355b['getAttributes']()),'children':Array['from'](_0x3e355b[_0x2308('0xb8')]())[_0x2308('0xcc')](_0x2739c4=>this[_0x2308('0x2c')](_0x2739c4))};}}[_0x2308('0xcf')](_0xc263f2,_0x4c819a,_0x1e579c,_0x287041,_0x15af58){let _0x521188=null,_0x1a4b41=null,_0xa8a4aa=0x0;const _0x283d0b=this[_0x2308('0xba')][_0x2308('0x25')];for(let _0x52fbdd=0x0;_0x52fbdd<_0x4c819a[_0x2308('0x107')];_0x52fbdd++){const _0x44863a=this[_0x2308('0xa8')](_0x4c819a[_0x52fbdd]),_0x415b81=_0x4c819a[_0x52fbdd][_0x2308('0x30')][_0x2308('0x29')](_0x44863a),_0x1e2efc=_0x1e579c['get'](_0x415b81),_0x148cb0=_0x52fbdd==_0x4c819a['length']-0x1;(!_0x521188&&_0x1e2efc&&(_0x521188=_0x1e2efc,_0x1a4b41=_0x4c819a[_0x52fbdd]),_0x521188&&(!_0x1e2efc||_0x1e2efc[_0x2308('0x36')]!=_0x521188['userId']))&&(_0x12ca7d(_0x1e2efc,q(_0x1a4b41,_0xc263f2,_0x283d0b),q(_0x4c819a[_0x52fbdd],_0xc263f2,_0x283d0b)),_0x521188=_0x1e2efc||null,_0x1a4b41=_0x1e2efc?_0x4c819a[_0x52fbdd]:null),_0x521188&&_0x148cb0&&_0x12ca7d(_0x1e2efc,q(_0x1a4b41,_0xc263f2,_0x283d0b),G(_0x4c819a[_0x52fbdd],_0xc263f2,_0x283d0b));}function _0x12ca7d(_0x32ae6a,_0x28b1e5,_0x16dee4){const _0x2b2588=_0x521188[_0x2308('0x36')],_0x249439=_0x2308('0x56')+_0x287041+':'+_0x2b2588+':'+_0xa8a4aa++,_0x13236f=_0x283d0b[_0x2308('0x54')](_0x28b1e5,_0x16dee4);_0xc263f2[_0x2308('0x1e')][_0x2308('0x6')](_0x249439,_0x13236f),null!==_0x2b2588&&_0x15af58['add'](_0x2b2588);}}['_getVidAttributeName'](_0xfbaa85){switch(_0xfbaa85[_0x2308('0xc7')]){case _0x2308('0x6f'):return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}[_0x2308('0xf6')](_0x48601f,_0xc02f68){_0x48601f[_0x2308('0x4b')]=null;for(const _0x21e5de in _0x48601f){const _0x726164=_0x48601f[_0x21e5de];if(_0x726164 instanceof _0x1999a2){const _0x460054=_0xc02f68[_0x2308('0xd9')](_0x726164[_0x2308('0xbc')][_0x2308('0xd7')]);_0x48601f[_0x21e5de]=this[_0x2308('0xae')](_0x726164,_0x460054);}if(_0x726164 instanceof _0x46db3d){const _0x30acec=_0xc02f68['get'](_0x726164[_0x2308('0xbc')][_0x2308('0xd7')]);_0x48601f[_0x21e5de]=this[_0x2308('0x77')](_0x726164,_0x30acec);}'root'===_0x21e5de&&(_0x48601f[_0x2308('0xbc')]=_0xc02f68[_0x2308('0xd9')](_0x48601f[_0x2308('0xbc')]['rootName']));}}['_fixRange'](_0x48f370,_0x137fca){return this[_0x2308('0xba')]['model'][_0x2308('0x54')](this[_0x2308('0xae')](_0x48f370['start'],_0x137fca),this[_0x2308('0xae')](_0x48f370['end'],_0x137fca));}['_fixPosition'](_0x4f59f6,_0xe27f7f){return this[_0x2308('0xba')][_0x2308('0x25')][_0x2308('0x51')](_0xe27f7f,_0x4f59f6['path'],_0x4f59f6[_0x2308('0xc0')]);}[_0x2308('0x21')](_0x44c9a9){const _0x52f998=this[_0x2308('0x58')][_0x2308('0xd9')](_0x44c9a9[_0x2308('0xe0')][_0x2308('0xbc')][_0x2308('0xd7')]),_0xc11b6c=this[_0x2308('0xae')](_0x44c9a9['position'],_0x52f998),_0xf57a0c=null===_0x44c9a9[_0x2308('0xb9')]?null:_0x44c9a9[_0x2308('0xb9')]||this[_0x2308('0xba')]['plugins']['get'](_0x2308('0x26'))['me']['id'],_0x1c7638=_0xc11b6c['parent'],_0x1b60d5=this[_0x2308('0xc5')],_0x3bfb06=[];for(const _0xb91436 of _0x44c9a9[_0x2308('0x85')])if(_0xb91436['is']('element'))_0x3bfb06[_0x2308('0x75')](this[_0x2308('0xad')](_0xb91436));else for(let _0x233882=0x0;_0x233882<_0xb91436[_0x2308('0xc1')];_0x233882++)_0x3bfb06[_0x2308('0x75')](new _0x4f47c4('$text',{'vid':this['_revisionId']++}));const _0x48351b=this[_0x2308('0xc5')];for(let _0x11c417=_0x1b60d5;_0x11c417<_0x48351b;_0x11c417++)this[_0x2308('0xd')][_0x2308('0x6')](_0x11c417,{'userId':_0xf57a0c});_0x1c7638[_0x2308('0xd6')](_0xc11b6c[_0x2308('0x39')],_0x3bfb06);}[_0x2308('0x78')](_0x51ac77){(_0x51ac77=this[_0x2308('0xa6')](_0x51ac77,this['_idsRoots']))['_execute']();const _0x2a245f=null===_0x51ac77[_0x2308('0xb9')]?null:_0x51ac77[_0x2308('0xb9')]||this[_0x2308('0xba')][_0x2308('0xa4')][_0x2308('0xd9')](_0x2308('0x26'))['me']['id'],_0x109dda=_0x51ac77['getMovedRangeStart'](),_0x876fbb=_0x109dda[_0x2308('0x27')],_0x2be796=_0x109dda[_0x2308('0x39')];!function _0x3a1388(_0x3c02bf,_0xc68e04,_0x1b243d,_0x1bffe7){for(let _0x19f5a9=_0x1b243d;_0x19f5a9<_0x1bffe7;_0x19f5a9++){const _0x437d97=_0xc68e04['getChild'](_0x19f5a9);_0x437d97['is'](_0x2308('0xa3'),'$text')?_0x3c02bf[_0x2308('0x6')](_0x437d97[_0x2308('0x29')](_0x2308('0x88')),{'userId':_0x2a245f}):(_0x3c02bf[_0x2308('0x6')](_0x437d97[_0x2308('0x29')](_0x2308('0xa1')),{'userId':_0x2a245f}),_0x3a1388(_0x3c02bf,_0x437d97,0x0,_0x437d97['childCount']),_0x3c02bf[_0x2308('0x6')](_0x437d97['getAttribute'](_0x2308('0x76')),{'userId':_0x2a245f}));}}(this['_touched'],_0x876fbb,_0x2be796,_0x2be796+_0x51ac77[_0x2308('0x20')]);}[_0x2308('0x8b')](_0x1ee6a4){const _0x26aeee=null===(_0x1ee6a4=this['_cloneOperation'](_0x1ee6a4,this[_0x2308('0x58')]))[_0x2308('0xb9')]?null:_0x1ee6a4['_authorId']||this[_0x2308('0xba')][_0x2308('0xa4')][_0x2308('0xd9')]('Users')['me']['id'],_0x2519eb=_0x1ee6a4[_0x2308('0xc3')][_0x2308('0x27')],_0x5e2057=_0x1ee6a4['sourcePosition'][_0x2308('0x27')],_0x39dc63=_0x2519eb[_0x2308('0x29')](_0x2308('0x76')),_0x4da131=_0x5e2057[_0x2308('0x29')]('vid_start');_0x2519eb[_0x2308('0x19')](_0x2308('0x76'),_0x5e2057[_0x2308('0x29')](_0x2308('0x76'))),_0x5e2057[_0x2308('0x19')]('vid_end',_0x39dc63),this[_0x2308('0xd')]['set'](_0x4da131,{'userId':_0x26aeee}),this[_0x2308('0xd')]['set'](_0x39dc63,{'userId':_0x26aeee}),_0x1ee6a4[_0x2308('0x70')]();}['_handleSplitOperation'](_0x51c59c){const _0x4e185f=null===(_0x51c59c=this['_cloneOperation'](_0x51c59c,this[_0x2308('0x58')]))[_0x2308('0xb9')]?null:_0x51c59c[_0x2308('0xb9')]||this[_0x2308('0xba')][_0x2308('0xa4')]['get'](_0x2308('0x26'))['me']['id'],_0x23f406=_0x51c59c[_0x2308('0xe5')],_0x4dcf6f=_0x51c59c[_0x2308('0xb1')][_0x2308('0x27')];_0x51c59c['_execute']();const _0x4f3499=_0x4dcf6f[_0x2308('0x29')]('vid_end'),_0x219bf3=_0x51c59c[_0x2308('0xe4')][_0x2308('0x9b')];if(_0x23f406){const _0x1a0f7e=_0x219bf3[_0x2308('0x29')]('vid_end'),_0x3de38a=_0x4dcf6f['getAttribute']('vid_end');_0x4dcf6f[_0x2308('0x19')]('vid_end',_0x1a0f7e),_0x219bf3[_0x2308('0x19')](_0x2308('0x76'),_0x3de38a),this['_touched']['set'](_0x4dcf6f[_0x2308('0x29')](_0x2308('0x76')),{'userId':_0x4e185f}),this[_0x2308('0xd')][_0x2308('0x6')](_0x219bf3['getAttribute'](_0x2308('0xa1')),{'userId':_0x4e185f});}else{const _0x35e151=this['_revisionId']++,_0x328ef9=this[_0x2308('0xc5')]++;_0x4dcf6f[_0x2308('0x19')]('vid_end',_0x35e151),_0x219bf3['_setAttribute'](_0x2308('0xa1'),_0x328ef9),_0x219bf3[_0x2308('0x19')](_0x2308('0x76'),_0x4f3499),this[_0x2308('0xd')][_0x2308('0x6')](_0x35e151,{'userId':_0x4e185f}),this[_0x2308('0xd')]['set'](_0x328ef9,{'userId':_0x4e185f});}}['_handleMarkerOperation'](_0x765af7){if(!_0x765af7[_0x2308('0x3c')])return;const _0x9a6f19=(_0x765af7=this[_0x2308('0xa6')](_0x765af7,this[_0x2308('0x80')]))[_0x2308('0x52')]?_0x765af7['oldRange'][_0x2308('0xbc')]:null,_0xc9b70d=_0x765af7['newRange']?_0x765af7[_0x2308('0xf1')]['root']:null;_0x9a6f19&&this[_0x2308('0xdf')]['delete'](_0x765af7[_0x2308('0x0')]),_0xc9b70d&&this[_0x2308('0xdf')][_0x2308('0x6')](_0x765af7[_0x2308('0x0')],_0x765af7[_0x2308('0xf1')][_0x2308('0xee')]());const _0x1713eb=null===_0x765af7[_0x2308('0xb9')]?null:_0x765af7['_authorId']||this[_0x2308('0xba')][_0x2308('0xa4')][_0x2308('0xd9')](_0x2308('0x26'))['me']['id'],_0x58fc7b=_0x765af7[_0x2308('0x0')];if(!this[_0x2308('0x73')]['has'](_0x58fc7b))return void this[_0x2308('0x73')][_0x2308('0x6')](_0x58fc7b,{'range':_0x765af7[_0x2308('0x52')],'userId':_0x1713eb});const _0x3d1093=this[_0x2308('0x73')][_0x2308('0xd9')](_0x58fc7b),_0xba3757=_0x3d1093[_0x2308('0x7e')],_0x244f4b=_0x765af7[_0x2308('0xf1')];null==_0xba3757&&null==_0x244f4b||_0xba3757&&_0x244f4b&&_0xba3757[_0x2308('0x7c')](_0x244f4b)?this[_0x2308('0x73')][_0x2308('0xd0')](_0x765af7[_0x2308('0x0')]):_0x3d1093[_0x2308('0x36')]=_0x1713eb;}[_0x2308('0xb')](_0x12557b,_0x2d929c){this[_0x2308('0x80')]['has'](_0x12557b[_0x2308('0xd7')])?this[_0x2308('0x80')][_0x2308('0xd9')](_0x12557b[_0x2308('0xd7')])[_0x2308('0xf2')]=_0x12557b[_0x2308('0xa0')]:(this[_0x2308('0x80')][_0x2308('0x6')](_0x12557b[_0x2308('0xd7')],H(_0x12557b[_0x2308('0xd7')],!0x0)),this[_0x2308('0x9a')][_0x2308('0x6')](_0x12557b[_0x2308('0xd7')],{}),_0x2d929c&&this[_0x2308('0x58')][_0x2308('0x6')](_0x12557b['rootName'],H(_0x12557b[_0x2308('0xd7')],!0x0)));const _0x2235ca=null===_0x12557b[_0x2308('0xb9')]?null:_0x12557b['_authorId']||this[_0x2308('0xba')]['plugins']['get']('Users')['me']['id'],_0x143bdb=this[_0x2308('0xc6')]['get'](_0x12557b[_0x2308('0xd7')]);_0x143bdb&&_0x143bdb['userId']===_0x2235ca?this['_touchedRoots'][_0x2308('0xd0')](_0x12557b[_0x2308('0xd7')]):this['_touchedRoots'][_0x2308('0x6')](_0x12557b['rootName'],{'userId':_0x2235ca,'isAttached':_0x12557b['isAdd']});}[_0x2308('0xf9')](_0x26df6b){const _0x385151=this[_0x2308('0x9a')][_0x2308('0xd9')](_0x26df6b[_0x2308('0xbc')]['rootName']);null===_0x26df6b['newValue']?delete _0x385151[_0x26df6b[_0x2308('0x5d')]]:_0x385151[_0x26df6b[_0x2308('0x5d')]]=_0x26df6b[_0x2308('0xaf')];}}function J(_0x4352e2){const _0xf7d5b8=H(_0x4352e2[_0x2308('0xd7')],_0x4352e2['isAttached']());for(const _0x5be25b of _0x4352e2[_0x2308('0xb8')]()){const _0xcaf175=_0x5be25b[_0x2308('0x98')](!0x0);_0xf7d5b8[_0x2308('0xb3')](_0xcaf175);}return _0xf7d5b8;}function H(_0x1e1bbf,_0x44fb01=!0x0){const _0xbf04c6=new _0x507c98();return _0xbf04c6['rootName']=_0x1e1bbf,_0xbf04c6['_isAttached']=_0x44fb01,_0xbf04c6[_0x2308('0x42')]=()=>_0xbf04c6[_0x2308('0xf2')],_0xbf04c6;}function q(_0x58ac32,_0x25f4f0,_0x16a893){const _0x470c95=_0x2308('0xce')==_0x58ac32[_0x2308('0xc7')]?_0x16a893['createPositionAt'](_0x58ac32[_0x2308('0x30')],_0x2308('0x1f')):_0x16a893[_0x2308('0x5')](_0x58ac32[_0x2308('0x30')]);return _0x16a893[_0x2308('0x51')](_0x25f4f0,_0x470c95[_0x2308('0x1b')],_0x470c95[_0x2308('0xc0')]);}function G(_0x53546d,_0x2cd58f,_0x2e9c2a){const _0x108311=_0x2308('0x6f')==_0x53546d[_0x2308('0xc7')]?_0x2e9c2a[_0x2308('0xb2')](_0x53546d[_0x2308('0x30')],0x0):_0x2e9c2a[_0x2308('0xe3')](_0x53546d[_0x2308('0x30')]);return _0x2e9c2a[_0x2308('0x51')](_0x2cd58f,_0x108311['path'],_0x108311[_0x2308('0xc0')]);}
|
|
23
|
+
const _0x2996=['saveRevision','splitPosition','hasContent','clone','startsWith','afterInit','deletion','_bufferUpdate','_makeRevision','_getVidAttributeName','getRevisionDocumentData','revision-start','repository','_getState','_handleSplitOperation','paragraph','_getFromVersion','oldRange','authors','_isAttached','string','_baseRoots','data-revision-','end','sendBufferedUpdates','_baseRootsAttributes','_getViewJson','shift','processor','$graveyard','find','get','getOperations','locale','attributesBefore','name','history','getCurrentRevisionId','toVersion','_lastTo','elementEnd','_handleMoveOperation','markers','deletions','isEnabled','keepParagraph','_handleRootOperation','position','_handleInsertOperation','_addPendingAction','_makeModelFromViewString','createRevision','_handleMergeOperation','_loadState','version','_authorId','_clone','_createCurrentRevision','_continueCurrentRevision','revisionHistory.resumeUnsavedRevision','_diffRoots','split','_operations','source','_removeMetaData','fromEntries','updateRevisions','_processRootBeforeSave','define','_touched','insert','toView','_markers','_startingRevisionId','element','pluginName','addRevisionData','affectsData','marked','data','_createFromRanges','item','_removeRevisionMarkers','_removePendingAction','reinsert','from','createRange','vid','vid_start','_saveMetaData','reverse','documentFragment','stickiness','slice','isReady','getChild','_revisionDataBuilder','tableCell','upcast','_calculateMetaData','PendingActions','values','children','size','forEach','keys','vid_end','_reset','revision:','sort','_transformMarkers','_isPendingUpdate','_prepareViewToSave','_savedMetaData','length','createPositionAfter','includes','editing','_insertChild','some','_copyMarkers','then','Users','graveyardPosition','getData','Empty\x20document','attributes','getRange','PENDING_ACTION_REVISION_HISTORY','marker','_getPreviousFrom','_initialRevisionId','_isInit','RevisionTracker','childCount','view','revision','getTime','currentRevision','createPositionFromPath','type','update','rootName','_fixPosition','resolve','has','NEGATIVE_INFINITY','_fixOperation','init','_revisionId','bind','set','dataDowncast','_setConversion','map','_pendingAction','_appendChild','ready','filter','root','path','insertion','max','isAdd','clear','initialData','getUser','getAttribute','_handleRootAttributeOperation','isAttached','buildRevisionData','_cloneOperation','getIndex','_execute','elementStart','range','model','createPositionBefore','diffData','_touchedRoots','_loadRevisionData','getRevisionRootsAttributes','previousPosition','getRoot','setSource','_baseIdsRoots','offsetSize','createRangeIn','document','_makeIdsRoot','getRevision','newRange','userId','_setAttribute','loadState','_lastFrom','_source','collaboration.channelId','getMovedRangeStart','_touchedMarkers','config','_bufferedUpdates','createdAt','addRevision','useFillerType','move','rootsAttributes','add','insertions','_handleMarkerOperation','delete','getTransformedByOperation','start','Initial\x20revision','remove','plugins','getRevisions','_applyOperations','getLatestVersion','editor','_handleOperation','attributesAfter','setRevisionData','attachChange','howMany','fromVersion','push','_update','createPositionAt','creator','adapter','$text','RevisionsRepository','getNodeByPath','_initialRoots','_idsRoots','_generateTape','insertionPosition','authorsIds','getChildren','offset','conversion','_getBaseVids','newValue','text','_createInitialRevision','_diffRootsAttributes','_startingVersion','markerToData','parent','_fixRange','stringify','key','getRootNames','_loadedStateData'];(function(_0x215aa4,_0x2996ac){const _0x5c2906=function(_0x5d5216){while(--_0x5d5216){_0x215aa4['push'](_0x215aa4['shift']());}};_0x5c2906(++_0x2996ac);}(_0x2996,0xf0));const _0x5c29=function(_0x215aa4,_0x2996ac){_0x215aa4=_0x215aa4-0x0;let _0x5c2906=_0x2996[_0x215aa4];return _0x5c2906;};import{Users as _0x3b697a}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x2d496e,PendingActions as _0x5f29c7}from'ckeditor5/src/core';import{logWarning as _0x2103b2,uid as _0x303538}from'ckeditor5/src/utils';import{Position as _0x1c842a,Range as _0x4814c5,Element as _0x21b98a,DocumentFragment as _0x230184,ViewText as _0x2eae4d,ViewElement as _0x1b5f4c,ViewContainerElement as _0x3fbd4c,ViewAttributeElement as _0x49d1dc,ViewEmptyElement as _0x37fee2,ViewRawElement as _0x1b844c,ViewUIElement as _0x90e925,ViewDocumentFragment as _0x38aa6b}from'ckeditor5/src/engine';import _0x4cb07e from'./revisionsrepository';import{getTranslation as _0x34c13d}from'./utils/common-translations';import{cloneDeep as _0x118057,isEqual as _0x1b36ee}from'lodash-es';const B={'c':_0x3fbd4c,'a':_0x49d1dc,'e':_0x37fee2,'r':_0x1b844c,'u':_0x90e925};export default class l extends _0x2d496e{static get[_0x5c29('0x5a')](){return _0x5c29('0x94');}static get['requires'](){return[_0x3b697a,_0x4cb07e,_0x5f29c7];}constructor(_0x103f8d){super(_0x103f8d),this['adapter']=null,this[_0x5c29('0x99')]=null,this[_0x5c29('0x6f')]=new H(this[_0x5c29('0xea')]),this['_initialRevisionId']=this[_0x5c29('0xea')][_0x5c29('0xd7')]['get'](_0x5c29('0xd4'))||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2242fe=_0x303538();this[_0x5c29('0xd3')]={'history':this[_0x5c29('0xea')][_0x5c29('0xbf')][_0x5c29('0xcb')][_0x5c29('0x33')],'getLatestVersion':()=>Promise[_0x5c29('0x9f')](this[_0x5c29('0xea')]['model'][_0x5c29('0xcb')][_0x5c29('0x45')]),'getCurrentRevisionId':()=>_0x2242fe},this['set'](_0x5c29('0x6d'),!0x1),this['set'](_0x5c29('0x3b'),!0x0),this[_0x5c29('0xa6')](_0x5c29('0x7e'),!0x1),this[_0x5c29('0xea')]['config'][_0x5c29('0x53')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x5c29('0xea')]['conversion']['for'](_0x5c29('0x71'))['dataToMarker']({'view':'revision'});}[_0x5c29('0xa3')](){this[_0x5c29('0x1b')]=this['editor'][_0x5c29('0xe6')][_0x5c29('0x2e')](_0x5c29('0xf7')),this[_0x5c29('0xa8')](),this[_0x5c29('0xea')][_0x5c29('0x5e')]['on'](_0x5c29('0xac'),()=>{const _0x5dfc96=this[_0x5c29('0x1b')][_0x5c29('0xcd')](0x0),_0x5bc8f2=_0x5dfc96&&null===_0x5dfc96[_0x5c29('0xf4')]?_0x5dfc96:null;if(this[_0x5c29('0x49')]=!!_0x5bc8f2&&this[_0x5c29('0xea')][_0x5c29('0xd7')][_0x5c29('0x2e')](_0x5c29('0x4a')),this[_0x5c29('0xea')][_0x5c29('0xe6')]['has']('RealTimeCollaborationClient')){const _0x500d89=this['_source']['getCurrentRevisionId'](),_0x51d7af=this[_0x5c29('0x1b')]['getRevision'](_0x500d89);if(_0x51d7af)this[_0x5c29('0x7')]=_0x51d7af[_0x5c29('0xf0')],this[_0x5c29('0x49')]=!0x1;else{const _0x473e51=this[_0x5c29('0xd3')][_0x5c29('0x33')][_0x5c29('0x4d')]['find'](_0x3b8d6b=>!_0x3b8d6b[_0x5c29('0x93')]),_0x3c80f8=_0x473e51?_0x473e51['baseVersion']:this[_0x5c29('0xd3')][_0x5c29('0x33')][_0x5c29('0x45')];_0x5dfc96?(_0x5dfc96[_0x5c29('0x35')]<_0x3c80f8&&_0x5dfc96[_0x5c29('0xf2')]({'toVersion':_0x3c80f8}),this[_0x5c29('0x49')]?(this['_source'][_0x5c29('0x34')]=()=>_0x5bc8f2['id'],this[_0x5c29('0x7')]=_0x5bc8f2[_0x5c29('0xf0')]):(this[_0x5c29('0x7')]=_0x5dfc96['toVersion'],this[_0x5c29('0x49')]=!0x1)):(this['_startingVersion']=_0x3c80f8,this[_0x5c29('0x49')]=!0x1);}}else _0x5bc8f2&&(this[_0x5c29('0xea')]['model'][_0x5c29('0xcb')]['history'][_0x5c29('0x45')]=Math[_0x5c29('0xb1')](_0x5bc8f2['toVersion'],this[_0x5c29('0xea')]['model'][_0x5c29('0xcb')]['history'][_0x5c29('0x45')]),_0x5bc8f2[_0x5c29('0xf0')]===_0x5bc8f2[_0x5c29('0x35')]?(0x0!==_0x5bc8f2[_0x5c29('0xf0')]&&(this['_source'][_0x5c29('0x34')]=()=>_0x5bc8f2['id']),this[_0x5c29('0x49')]=!0x1):this[_0x5c29('0x49')]&&(this[_0x5c29('0xd3')]['getCurrentRevisionId']=()=>_0x5bc8f2['id'],this['_startingVersion']=_0x5bc8f2['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor'][_0x5c29('0xbf')][_0x5c29('0xcb')][_0x5c29('0x45')]);this[_0x5c29('0x6f')][_0x5c29('0xa3')](this[_0x5c29('0xd3')][_0x5c29('0x33')]),this[_0x5c29('0x5')](this[_0x5c29('0x7')]),this[_0x5c29('0x48')](this[_0x5c29('0x7')]),this[_0x5c29('0xf5')]&&this[_0x5c29('0x27')]();}),this[_0x5c29('0xa5')]('isReady')['to'](this,_0x5c29('0x7e'),_0x484b92=>!_0x484b92);}async[_0x5c29('0x14')](){if(this['repository']['length']>0x0){const _0x33e051=this[_0x5c29('0x1b')][_0x5c29('0xcd')](0x0),_0x4e5597=await this['getRevisionDocumentData'](_0x33e051),_0x4eb354=await this[_0x5c29('0xc4')](_0x33e051);this['_replaceEditorDataWithRevisionData'](_0x4e5597,_0x4eb354);}}[_0x5c29('0xc7')](_0x449852){this[_0x5c29('0xd3')]=_0x449852;}async[_0x5c29('0x9c')](){const _0x4b9522=await this[_0x5c29('0xd3')][_0x5c29('0xe9')]();if(_0x4b9522>this['currentRevision'][_0x5c29('0x35')]){await this[_0x5c29('0x44')]();const _0x278ee1=this[_0x5c29('0xb9')]({'revision':this[_0x5c29('0x99')],'to':_0x4b9522});_0x278ee1[_0x5c29('0x21')]=_0x278ee1[_0x5c29('0xfd')][_0x5c29('0xa9')](_0x4c9c03=>this['editor'][_0x5c29('0xe6')][_0x5c29('0x2e')](_0x5c29('0x89'))[_0x5c29('0xb5')](_0x4c9c03)),this['currentRevision']['_update'](_0x278ee1);}}async['_loadState'](){this[_0x5c29('0x49')]&&!this[_0x5c29('0xe')]&&(await this[_0x5c29('0xc3')](this[_0x5c29('0x99')]),this[_0x5c29('0x6f')][_0x5c29('0xd1')](this[_0x5c29('0x99')]),this['_loadedStateData']={'fromVersion':this[_0x5c29('0x99')]['fromVersion'],'authors':this[_0x5c29('0x99')]['authors'][_0x5c29('0x6c')]()});}async[_0x5c29('0xf')](_0x1a549f={},_0x469bca=null){const _0x465d44=[];await this[_0x5c29('0x44')](),this[_0x5c29('0x49')]=!0x1,_0x469bca>this[_0x5c29('0x99')][_0x5c29('0x35')]&&(_0x469bca=null),null===_0x469bca&&(_0x469bca=await this[_0x5c29('0xd3')][_0x5c29('0xe9')]());const _0x3610c5=this[_0x5c29('0x1f')](_0x469bca),_0x9d43b2=this[_0x5c29('0xb9')]({'from':_0x3610c5,'to':_0x469bca});if(this['currentRevision'][_0x5c29('0x35')]<_0x469bca){const _0x11033f=this[_0x5c29('0xb9')]({'revision':this[_0x5c29('0x99')],'from':_0x469bca,'to':_0x469bca});_0x11033f['authors']=[],_0x11033f[_0x5c29('0xfd')]=[],_0x11033f['id']=this['currentRevision']['id'],this[_0x5c29('0x99')][_0x5c29('0xf2')](_0x11033f,!0x0),delete _0x11033f['authors'],_0x465d44[_0x5c29('0xf1')](_0x11033f);}_0x1a549f['creatorId']=this[_0x5c29('0xea')][_0x5c29('0xe6')]['get'](_0x5c29('0x89'))['me']['id'],_0x1a549f[_0x5c29('0x32')]=_0x1a549f[_0x5c29('0x32')]||null,_0x1a549f['id']=_0x1a549f['id']||_0x303538(),_0x1a549f={..._0x1a549f,..._0x9d43b2};const _0x86bc56=this[_0x5c29('0x5b')](_0x1a549f);_0x465d44[_0x5c29('0xf1')](_0x1a549f);const _0x4fc6dd=this[_0x5c29('0x1b')][_0x5c29('0xbb')](_0x86bc56);if(0x0!==_0x4fc6dd){const _0x487073=this[_0x5c29('0x1b')]['getRevision'](_0x4fc6dd-0x1);if(_0x487073[_0x5c29('0xf0')]!==_0x469bca){const _0x2d5fb9=this[_0x5c29('0x6f')]['getData'](_0x469bca,_0x487073[_0x5c29('0x35')]),_0x27e02e={'id':_0x487073['id'],'diffData':_0x2d5fb9[_0x5c29('0xc1')],'authorsIds':_0x2d5fb9[_0x5c29('0xfd')],'authors':_0x2d5fb9[_0x5c29('0xfd')]['map'](_0x3c5af9=>this[_0x5c29('0xea')]['plugins'][_0x5c29('0x2e')]('Users')[_0x5c29('0xb5')](_0x3c5af9)),'fromVersion':_0x469bca};_0x487073===this['currentRevision']&&(_0x27e02e[_0x5c29('0xd9')]=new Date(_0x1a549f[_0x5c29('0xd9')][_0x5c29('0x98')]()+0xa)),_0x487073[_0x5c29('0xf2')](_0x27e02e,!0x0),delete _0x27e02e[_0x5c29('0x21')],_0x465d44[_0x5c29('0xf1')](_0x27e02e);}}if(this['adapter']){for(const _0x112952 of _0x465d44)this[_0x5c29('0x16')](_0x112952['id'],_0x112952,!0x0);this['sendBufferedUpdates']();}return _0x86bc56;}['addRevisionData'](_0x12e771){const _0x102dbf=this[_0x5c29('0x1b')][_0x5c29('0x42')](_0x12e771);return this[_0x5c29('0xf5')]&&_0x102dbf['on'](_0x5c29('0xf2'),(_0x2f0f86,_0x9ffa51,_0x4780e6)=>{_0x4780e6||(this[_0x5c29('0x16')](_0x9ffa51['id'],_0x9ffa51,!0x0),this['sendBufferedUpdates']());}),this[_0x5c29('0x1b')][_0x5c29('0xda')](_0x102dbf,this['_findInsertionIndex'](_0x102dbf)),_0x102dbf;}async[_0x5c29('0x19')](_0x13d648){await this[_0x5c29('0xc3')](_0x13d648);const _0x279f31={};for(const _0xc867b0 in _0x13d648['diffData']){if(_0x13d648[_0x5c29('0xc1')][_0xc867b0][_0x5c29('0xee')]&&!_0x13d648[_0x5c29('0xc1')][_0xc867b0]['attachChange'][_0x5c29('0xb8')])continue;const _0x42abf7=this[_0x5c29('0x61')](JSON['parse'](_0x13d648['diffData'][_0xc867b0][_0x5c29('0xdf')])),_0xfdbe3a=this[_0x5c29('0xea')][_0x5c29('0x84')][_0x5c29('0x96')][_0x5c29('0xcb')],_0x4d195c=new _0x38aa6b(_0xfdbe3a,_0x42abf7[_0x5c29('0xa9')](_0x590cbe=>J(_0x590cbe,this[_0x5c29('0xea')])));this[_0x5c29('0xea')][_0x5c29('0x5e')][_0x5c29('0x2b')]['useFillerType'](_0x5c29('0x5d')),_0x279f31[_0xc867b0]=this[_0x5c29('0xea')][_0x5c29('0x5e')]['processor']['toData'](_0x4d195c),this[_0x5c29('0xea')]['data'][_0x5c29('0x2b')][_0x5c29('0xdb')]('default');}return _0x279f31;}async[_0x5c29('0xc4')](_0x337b0b){await this[_0x5c29('0xc3')](_0x337b0b);const _0xb122cb={};for(const _0x274b3c in _0x337b0b[_0x5c29('0xc1')])_0x337b0b[_0x5c29('0xc1')][_0x274b3c][_0x5c29('0xee')]&&!_0x337b0b[_0x5c29('0xc1')][_0x274b3c]['attachChange']['isAttached']||(_0xb122cb[_0x274b3c]=_0x337b0b[_0x5c29('0xc1')][_0x274b3c][_0x5c29('0xec')]||{});return _0xb122cb;}[_0x5c29('0x27')](){if(0x0===this[_0x5c29('0xd8')][_0x5c29('0x76')])return;if(this['_isPendingUpdate'])return;let _0x335cf8=Array['from'](this[_0x5c29('0xd8')]['values']());this['_bufferedUpdates'][_0x5c29('0xb3')]();for(let _0x544cc1=0x0;_0x544cc1<_0x335cf8[_0x5c29('0x81')];_0x544cc1++){const _0xaa2305=_0x335cf8[_0x544cc1];let _0x172a8d=!0x1;for(const _0x1042cc of Object[_0x5c29('0x78')](_0xaa2305))void 0x0===_0xaa2305[_0x1042cc]?delete _0xaa2305[_0x1042cc]:'id'!==_0x1042cc&&(_0x172a8d=!0x0);_0x172a8d||(_0x335cf8[_0x544cc1]=null);}if(_0x335cf8=_0x335cf8[_0x5c29('0xad')](_0x402db9=>null!==_0x402db9),!_0x335cf8['length'])return;for(let _0x5d89bc=0x0;_0x5d89bc<_0x335cf8[_0x5c29('0x81')];_0x5d89bc++){const _0x313de0=_0x335cf8[_0x5d89bc];void 0x0!==_0x313de0['fromVersion']&&void 0x0===_0x313de0[_0x5c29('0x35')]&&(_0x313de0[_0x5c29('0x35')]=this[_0x5c29('0x1b')][_0x5c29('0xcd')](_0x313de0['id'])['toVersion']),void 0x0!==_0x313de0[_0x5c29('0x35')]&&void 0x0===_0x313de0[_0x5c29('0xf0')]&&(_0x313de0[_0x5c29('0xf0')]=this[_0x5c29('0x1b')][_0x5c29('0xcd')](_0x313de0['id'])['fromVersion']);}const _0x56c454=this[_0x5c29('0xea')][_0x5c29('0xd7')][_0x5c29('0x2e')](_0x5c29('0xd4'));this[_0x5c29('0x7e')]=!0x0,this[_0x5c29('0x40')](),this[_0x5c29('0xf5')][_0x5c29('0x51')](_0x335cf8,_0x56c454)['finally'](()=>{this[_0x5c29('0x7e')]=!0x1;})[_0x5c29('0x88')](_0x12886f=>{if(_0x12886f)for(const _0x5dcd74 of _0x12886f)this['setRevisionData']({'id':_0x5dcd74['id'],'createdAt':_0x5dcd74['createdAt']});this[_0x5c29('0x62')](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1046bd,_0xad9af1){let _0x226ae0=this[_0x5c29('0xea')][_0x5c29('0xd7')][_0x5c29('0x2e')](_0x5c29('0xb4')),_0x2dbed5=this[_0x5c29('0xea')]['config'][_0x5c29('0x2e')](_0x5c29('0xdd'));if(void 0x0===_0x226ae0){_0x226ae0={};for(const _0x50d1bd of this[_0x5c29('0xea')][_0x5c29('0xbf')][_0x5c29('0xcb')][_0x5c29('0xd')]())_0x226ae0[_0x50d1bd]='';}if(_0x5c29('0x23')==typeof _0x226ae0&&(_0x226ae0={'main':_0x226ae0}),void 0x0===_0x2dbed5){_0x2dbed5={};for(const _0x3b3c51 of this[_0x5c29('0xea')]['model'][_0x5c29('0xcb')][_0x5c29('0xd')]())_0x2dbed5[_0x3b3c51]={};}let _0x5bc945=!0x1;const _0x338d87=Object['keys'](_0x226ae0),_0x1889ec=Object['keys'](_0x1046bd);for(const _0xfd93df of _0x338d87){if(_0x226ae0[_0xfd93df]!==_0x1046bd[_0xfd93df]&&''!==_0x226ae0[_0xfd93df]['trim']()){_0x5bc945=!0x0;break;}if(!_0x1b36ee(_0x2dbed5[_0xfd93df],_0xad9af1[_0xfd93df])&&Object[_0x5c29('0x78')](_0x2dbed5[_0xfd93df])['length']>0x0){_0x5bc945=!0x0;break;}}_0x5bc945||(_0x5bc945=_0x1889ec[_0x5c29('0x86')](_0x4abf4a=>!_0x338d87[_0x5c29('0x83')](_0x4abf4a))),_0x5bc945&&_0x2103b2('editor-initial-data-replaced-with-revision-data',{'editorData':_0x226ae0,'editorRootsAttributes':_0x2dbed5,'revisionData':_0x1046bd,'revisionRootsAttributes':_0xad9af1}),this[_0x5c29('0xea')][_0x5c29('0xd7')]['set'](_0x5c29('0xb4'),_0x1046bd),this[_0x5c29('0xea')][_0x5c29('0xd7')][_0x5c29('0xa6')]('rootsAttributes',_0xad9af1);}[_0x5c29('0x40')](){if(!this[_0x5c29('0xaa')]){const _0x11c523=this[_0x5c29('0xea')]['plugins']['get'](_0x5c29('0x73'));this['_pendingAction']=_0x11c523[_0x5c29('0xde')](_0x34c13d(this[_0x5c29('0xea')][_0x5c29('0x30')],_0x5c29('0x8f')));}}['_removePendingAction'](){this[_0x5c29('0xaa')]&&(this[_0x5c29('0xea')][_0x5c29('0xe6')]['get'](_0x5c29('0x73'))['remove'](this['_pendingAction']),this[_0x5c29('0xaa')]=null);}['_findInsertionIndex'](_0x1087f7){const _0x51d665=this['repository'][_0x5c29('0xe7')]();_0x51d665[_0x5c29('0x69')]();let _0x476d85=0x0;for(;_0x476d85<_0x51d665[_0x5c29('0x81')];){const _0x5c0a01=_0x51d665[_0x476d85];if(_0x5c0a01===this['currentRevision']){_0x476d85++;continue;}if(_0x5c0a01['id']===this[_0x5c29('0x92')])break;const _0x33a62c=_0x1087f7[_0x5c29('0x35')]-_0x5c0a01[_0x5c29('0x35')]||_0x1087f7[_0x5c29('0xf0')]-_0x5c0a01['fromVersion'];if(_0x33a62c>0x0)break;if(_0x33a62c<0x0)_0x476d85++;else{if(!_0x1087f7[_0x5c29('0xf4')]&&_0x5c0a01['creator'])break;if(_0x5c0a01[_0x5c29('0xf4')]||!_0x1087f7['creator']){if(_0x1087f7['createdAt']>_0x5c0a01[_0x5c29('0xd9')])break;_0x476d85++;}else _0x476d85++;}}return _0x476d85;}[_0x5c29('0xed')](_0x1748eb){const _0x18e1b6=this[_0x5c29('0x1b')][_0x5c29('0xcd')](_0x1748eb['id']);if(_0x1748eb['createdAt']&&(_0x1748eb['createdAt']=new Date(_0x1748eb[_0x5c29('0xd9')])),_0x1748eb['authorsIds']){const _0x5b1b8b=this[_0x5c29('0xea')][_0x5c29('0xe6')]['get'](_0x5c29('0x89'));_0x1748eb[_0x5c29('0x21')]=_0x1748eb['authorsIds'][_0x5c29('0xa9')](_0x4ec9bf=>_0x5b1b8b[_0x5c29('0xb5')](_0x4ec9bf));}_0x18e1b6['_update'](_0x1748eb,!0x0);}[_0x5c29('0xb9')]({revision:_0x5a66de=null,from:_0x102841=null,to:_0x314d39=null}){_0x102841=null!==_0x102841?_0x102841:_0x5a66de['fromVersion'],_0x314d39=null!==_0x314d39?_0x314d39:_0x5a66de[_0x5c29('0x35')];const _0x383035=this['_revisionDataBuilder']['getData'](_0x102841,_0x314d39),_0x2d32c1={'diffData':_0x383035[_0x5c29('0xc1')],'authorsIds':_0x383035['authorsIds'],'fromVersion':_0x102841,'toVersion':_0x314d39};if(!_0x5a66de||_0x314d39!==_0x5a66de['toVersion']){const _0x10a10a=_0x314d39-0x1,_0x52875b=this[_0x5c29('0xd3')][_0x5c29('0x33')]['getOperation'](_0x10a10a);_0x2d32c1[_0x5c29('0xd9')]=_0x52875b&&_0x52875b[_0x5c29('0xd9')]||new Date();}if(this[_0x5c29('0xe')]&&_0x102841===this[_0x5c29('0xe')]['fromVersion'])for(const _0x333460 of this[_0x5c29('0xe')]['authors'])_0x2d32c1[_0x5c29('0xfd')]['includes'](_0x333460['id'])||_0x2d32c1[_0x5c29('0xfd')][_0x5c29('0xf1')](_0x333460['id']);return _0x2d32c1;}[_0x5c29('0xc3')](_0x1d48a7){if(!_0x1d48a7||_0x1d48a7[_0x5c29('0xc1')])return Promise['resolve']();{const _0x47f243=this[_0x5c29('0xea')]['config'][_0x5c29('0x2e')]('collaboration.channelId');return this[_0x5c29('0xf5')][_0x5c29('0xcd')]({'channelId':_0x47f243,'revisionId':_0x1d48a7['id']})['then'](_0x31dceb=>{_0x1d48a7['diffData']=_0x31dceb['diffData'];});}}[_0x5c29('0x16')](_0x5cda42,_0x153a38,_0x56879f){if(this[_0x5c29('0xd8')][_0x5c29('0xa0')](_0x5cda42)){const _0x40e058=this[_0x5c29('0xd8')]['get'](_0x5cda42);_0x153a38=_0x56879f?{..._0x40e058,..._0x153a38}:{..._0x153a38,..._0x40e058};}this[_0x5c29('0xd8')][_0x5c29('0xa6')](_0x5cda42,_0x153a38);}[_0x5c29('0x1f')](_0x187073){const _0x3bd2e6=this['repository'][_0x5c29('0xe7')]();_0x3bd2e6[_0x5c29('0x69')](),_0x3bd2e6[_0x5c29('0x2a')]();const _0x36b4f6=_0x3bd2e6[_0x5c29('0x2d')](_0x28e5d7=>_0x28e5d7[_0x5c29('0x35')]<=_0x187073)['toVersion'];return _0x36b4f6<this[_0x5c29('0x7')]?this[_0x5c29('0x7')]:_0x36b4f6;}[_0x5c29('0x5')](_0x3d4fb2){const _0x5df678=this[_0x5c29('0x1b')][_0x5c29('0xcd')](this[_0x5c29('0x1b')]['length']-0x1);if(_0x5df678)this[_0x5c29('0x92')]=_0x5df678['id'];else{const _0x5bb0d0=!this[_0x5c29('0xea')][_0x5c29('0xbf')][_0x5c29('0xcb')]['roots']['find'](_0x1dc6ad=>this['editor'][_0x5c29('0xbf')][_0x5c29('0x11')](_0x1dc6ad)),_0x2fb097=this[_0x5c29('0xea')]['plugins'][_0x5c29('0x2e')](_0x5c29('0x89'))['me']['id'],_0xf0697a=_0x34c13d(this[_0x5c29('0xea')]['locale'],_0x5bb0d0?_0x5c29('0x8c'):_0x5c29('0xe4'));this[_0x5c29('0x17')]({'from':_0x3d4fb2,'to':_0x3d4fb2,'id':this[_0x5c29('0x92')],'name':_0xf0697a,'creatorId':_0x2fb097});}}['_createCurrentRevision'](_0x4930c3){const _0xb5459d=this['_source'][_0x5c29('0x34')]();this[_0x5c29('0x99')]=this['repository']['getRevision'](_0xb5459d),this[_0x5c29('0x99')]||(this['currentRevision']=this[_0x5c29('0x17')]({'from':_0x4930c3,'to':_0x4930c3,'id':_0xb5459d,'name':'','creatorId':null}));}[_0x5c29('0x17')]({name:_0x2ac569,from:_0x24d331,to:_0x31f8ff,creatorId:_0x15a65c,id:_0x2b1733}){const _0xaad65d=this[_0x5c29('0xb9')]({'from':_0x24d331,'to':_0x31f8ff});_0xaad65d[_0x5c29('0x32')]=_0x2ac569,_0xaad65d['creatorId']=_0x15a65c,_0xaad65d['id']=_0x2b1733;const _0x517c4f=this['addRevisionData'](_0xaad65d);return this[_0x5c29('0xf5')]&&this[_0x5c29('0x16')](_0xaad65d['id'],_0xaad65d,!0x0),_0x517c4f;}[_0x5c29('0xa8')](){this[_0x5c29('0xea')][_0x5c29('0x1')]['for'](_0x5c29('0xa7'))[_0x5c29('0x8')]({'model':_0x5c29('0x97')});}[_0x5c29('0x61')](_0x1d86cb){return(_0x1d86cb=_0x1d86cb[_0x5c29('0xad')](_0x17f0e7=>!_0x17f0e7['name']||_0x5c29('0x1a')!==_0x17f0e7[_0x5c29('0x32')]&&'revision-end'!==_0x17f0e7[_0x5c29('0x32')]))[_0x5c29('0x77')](_0x5e6abe=>{'string'!=typeof _0x5e6abe&&(_0x5e6abe[_0x5c29('0x75')]=this['_removeRevisionMarkers'](_0x5e6abe['children']),_0x5e6abe[_0x5c29('0x8d')]=_0x5e6abe['attributes'][_0x5c29('0xad')](_0x553350=>!_0x553350[0x0][_0x5c29('0x13')](_0x5c29('0x25'))));}),_0x1d86cb;}}function J(_0x341189,_0x480619){const _0x436ad2=_0x480619[_0x5c29('0x84')]['view'][_0x5c29('0xcb')];if(_0x5c29('0x23')==typeof _0x341189)return new _0x2eae4d(_0x436ad2,_0x341189);{const _0x4e39c4=_0x341189[_0x5c29('0x75')][_0x5c29('0xa9')](_0x5b3c8a=>J(_0x5b3c8a,_0x480619));return new(B[_0x341189[(_0x5c29('0x9b'))]]||_0x1b5f4c)(_0x436ad2,_0x341189[_0x5c29('0x32')],_0x341189['attributes'],_0x4e39c4);}}class H{constructor(_0x56235f){this['editor']=_0x56235f,this[_0x5c29('0x80')]=new Map(),this['_lastFrom']=-0x1,this[_0x5c29('0x36')]=-0x1,this[_0x5c29('0x57')]=new Map(),this[_0x5c29('0x4b')]=new Map(),this[_0x5c29('0x6')]=new Map(),this[_0x5c29('0x24')]=new Map(),this[_0x5c29('0x28')]=new Map(),this[_0x5c29('0xfa')]=new Map(),this[_0x5c29('0xc8')]=new Map(),this[_0x5c29('0x54')]=new Map(),this[_0x5c29('0xd6')]=new Map(),this[_0x5c29('0xc2')]=new Map(),this[_0x5c29('0xa4')]=0x1,this[_0x5c29('0xf9')]=this[_0x5c29('0xea')][_0x5c29('0xbf')][_0x5c29('0xcb')]['getRootNames'](),this[_0x5c29('0xf9')][_0x5c29('0xf1')]('$graveyard');}[_0x5c29('0xa3')](_0xd6cc6){this[_0x5c29('0x4e')]=_0xd6cc6;const _0x5496d4=new Map(),_0x2cde3f=new Map(),_0x4ae6c5=this[_0x5c29('0xea')][_0x5c29('0xbf')]['document'][_0x5c29('0xd')](!0x0);_0x4ae6c5[_0x5c29('0xf1')]('$graveyard');for(const _0x54db78 of _0x4ae6c5){const _0x198cca=this[_0x5c29('0xea')][_0x5c29('0xbf')][_0x5c29('0xcb')][_0x5c29('0xc6')](_0x54db78),_0x4aae93=q(_0x198cca);_0x5496d4[_0x5c29('0xa6')](_0x54db78,_0x4aae93),_0x2cde3f['set'](_0x54db78,Object[_0x5c29('0x50')](_0x198cca['getAttributes']()));}const _0x5a61e3=Array[_0x5c29('0x64')](this[_0x5c29('0xea')][_0x5c29('0xbf')][_0x5c29('0x39')])[_0x5c29('0xa9')](_0x53570f=>[_0x53570f['name'],_0x53570f[_0x5c29('0x8e')]()]),_0x4a05c3=this['source'][_0x5c29('0x45')];this[_0x5c29('0x68')](_0x4a05c3,_0x5496d4,_0x5a61e3,_0x2cde3f),this['_startingRevisionId']=this[_0x5c29('0xa4')];const _0x4d615f=new Map(),_0x34f3ca=new Map();for(const _0x20b2c8 of this[_0x5c29('0xf9')]){const _0x4519f9=G(_0x20b2c8);_0x4d615f[_0x5c29('0xa6')](_0x20b2c8,_0x4519f9),_0x34f3ca[_0x5c29('0xa6')](_0x20b2c8,{});}this['_saveMetaData'](Number[_0x5c29('0xa1')],_0x4d615f,[],_0x34f3ca);}[_0x5c29('0x8b')](_0x3b427c,_0x36317f){if(this[_0x5c29('0xd2')]===_0x3b427c&&this['_lastTo']<=_0x36317f)this[_0x5c29('0x80')]['size']>0x1&&this[_0x5c29('0x4f')](this[_0x5c29('0x36')]),this['_applyOperations'](this['_lastTo'],_0x36317f,!0x0);else{if(!this[_0x5c29('0x80')][_0x5c29('0xa0')](_0x3b427c)){const _0x5ac08b=this[_0x5c29('0x91')](_0x3b427c);this[_0x5c29('0x72')](_0x5ac08b,_0x3b427c,!0x1);}this[_0x5c29('0x72')](_0x3b427c,_0x36317f,!0x0);}return this['_lastFrom']=_0x3b427c,this[_0x5c29('0x36')]=_0x36317f,this['_getState']();}['loadState'](_0x1734ab){this['_reset'](),this['_lastFrom']=_0x1734ab[_0x5c29('0xf0')],this[_0x5c29('0x36')]=_0x1734ab[_0x5c29('0x35')];for(const _0x1399c1 in _0x1734ab[_0x5c29('0xc1')]){const _0x21018e=_0x1734ab[_0x5c29('0xc1')][_0x1399c1]['attachChange'],_0x5b2b35=_0x118057(_0x1734ab[_0x5c29('0xc1')][_0x1399c1][_0x5c29('0x31')])||{},_0x26c340=this[_0x5c29('0x41')](_0x1734ab['diffData'][_0x1399c1][_0x5c29('0x3a')]);_0x26c340[_0x5c29('0x9d')]=_0x1399c1,_0x26c340['_isAttached']=!_0x21018e||!_0x21018e[_0x5c29('0xb8')],_0x26c340[_0x5c29('0xb8')]=()=>_0x26c340[_0x5c29('0x22')],this[_0x5c29('0x24')]['set'](_0x1399c1,_0x26c340),this['_baseRootsAttributes'][_0x5c29('0xa6')](_0x1399c1,_0x5b2b35),_0x21018e&&this[_0x5c29('0xc2')]['set'](_0x1399c1,_0x21018e);const _0xac7930=this[_0x5c29('0xcc')](_0x26c340);this[_0x5c29('0xc8')][_0x5c29('0xa6')](_0x1399c1,_0xac7930);for(const [_0x312ee7,_0x25c492]of _0x26c340[_0x5c29('0x39')]){if(!_0x312ee7[_0x5c29('0x13')](_0x5c29('0x7b')))continue;const _0x1d8100=_0x312ee7[_0x5c29('0x4c')](':')[0x2];for(const _0x1f65ed of _0x25c492['getWalker']({'singleCharacters':!0x0})){const _0x3c4551=this[_0x5c29('0x18')](_0x1f65ed),_0x1ed590=_0x5c29('0x37')==_0x1f65ed[_0x5c29('0x9b')]?_0x1f65ed['previousPosition'][_0x5c29('0xaf')][_0x5c29('0x6c')](0x0,-0x1):_0x1f65ed[_0x5c29('0xc5')][_0x5c29('0xaf')],_0x2565fa=_0xac7930[_0x5c29('0xf8')](_0x1ed590)[_0x5c29('0xb6')](_0x3c4551);this['_touched'][_0x5c29('0xa6')](_0x2565fa,{'userId':_0x1d8100});}}}this['_startingRevisionId']=this[_0x5c29('0xa4')];const _0x2a8762=[...Array(this[_0x5c29('0xa4')])['keys']()]['slice'](0x1)['filter'](_0x128efd=>!this['_touched'][_0x5c29('0xa0')](_0x128efd));let _0x266fa0=0x0;const _0x4e4212=new Map();for(const _0x49b60c in _0x1734ab['diffData']){const _0xc6ac1=_0x1734ab['diffData'][_0x49b60c][_0x5c29('0xee')],_0x10af4c=_0x118057(_0x1734ab[_0x5c29('0xc1')][_0x49b60c]['attributesAfter'])||{},_0x16912a=this['_makeModelFromViewString'](_0x1734ab[_0x5c29('0xc1')][_0x49b60c][_0x5c29('0xdf')]);_0x16912a['rootName']=_0x49b60c,_0x16912a['_isAttached']=!_0xc6ac1||_0xc6ac1[_0x5c29('0xb8')],_0x16912a[_0x5c29('0xb8')]=()=>_0x16912a[_0x5c29('0x22')],this[_0x5c29('0x4b')][_0x5c29('0xa6')](_0x49b60c,_0x16912a),this[_0x5c29('0x6')][_0x5c29('0xa6')](_0x49b60c,_0x10af4c);const _0x537d2d=this[_0x5c29('0xcc')](_0x16912a,Number[_0x5c29('0xa1')]);this[_0x5c29('0xfa')]['set'](_0x49b60c,_0x537d2d),_0x4e4212['set'](_0x49b60c,_0x16912a[_0x5c29('0xb8')]()?_0x10af4c:{});for(const [_0x20affb,_0x59a235]of _0x16912a[_0x5c29('0x39')]){if(!_0x20affb[_0x5c29('0x13')]('revision:'))continue;const _0x432019=_0x20affb[_0x5c29('0x4c')](':')[0x2];for(const _0x5b9444 of _0x59a235['getWalker']({'singleCharacters':!0x0})){const _0x44375a=this[_0x5c29('0x18')](_0x5b9444),_0xad189c=this[_0x5c29('0xa4')]++,_0xd0cb8e='elementEnd'==_0x5b9444[_0x5c29('0x9b')]?_0x5b9444[_0x5c29('0xc5')][_0x5c29('0xaf')][_0x5c29('0x6c')](0x0,-0x1):_0x5b9444[_0x5c29('0xc5')]['path'];_0x537d2d[_0x5c29('0xf8')](_0xd0cb8e)[_0x5c29('0xd0')](_0x44375a,_0xad189c),this['_touched'][_0x5c29('0xa6')](_0xad189c,{'userId':_0x432019});}}for(const _0x413d07 of this['editor'][_0x5c29('0xbf')][_0x5c29('0xca')](_0x16912a)['getWalker']({'singleCharacters':!0x0})){const _0x1de81a=this[_0x5c29('0x18')](_0x413d07),_0x3e1c0b=_0x5c29('0x37')==_0x413d07['type']?_0x413d07[_0x5c29('0xc5')][_0x5c29('0xaf')][_0x5c29('0x6c')](0x0,-0x1):_0x413d07[_0x5c29('0xc5')]['path'],_0xa23b2b=_0x537d2d[_0x5c29('0xf8')](_0x3e1c0b);_0xa23b2b[_0x5c29('0xb6')](_0x1de81a)>0x0||_0xa23b2b[_0x5c29('0xd0')](_0x1de81a,_0x2a8762[_0x266fa0++]);}for(const [_0x44d75b,_0x467ad1]of _0x16912a[_0x5c29('0x39')])_0x44d75b['startsWith'](_0x5c29('0x7b'))||this[_0x5c29('0x57')][_0x5c29('0xa6')](_0x44d75b,_0x467ad1);}const _0x2a72bc=G('$graveyard');this[_0x5c29('0x24')][_0x5c29('0xa6')]('$graveyard',_0x2a72bc),this[_0x5c29('0xc8')]['set'](_0x5c29('0x2c'),this[_0x5c29('0xcc')](_0x2a72bc,0x1));const _0x531a26=G(_0x5c29('0x2c'));this[_0x5c29('0x4b')][_0x5c29('0xa6')](_0x5c29('0x2c'),_0x531a26),this[_0x5c29('0xfa')][_0x5c29('0xa6')](_0x5c29('0x2c'),this[_0x5c29('0xcc')](_0x531a26,0x1));const _0x43ec2b=Array[_0x5c29('0x64')](this[_0x5c29('0x4b')])[_0x5c29('0xa9')](([_0x599540,_0x448728])=>[_0x599540,q(_0x448728)]);this[_0x5c29('0x68')](this[_0x5c29('0x36')],_0x43ec2b,this[_0x5c29('0x57')],_0x4e4212);}[_0x5c29('0x41')](_0x451265){const _0x40dd8f=JSON['parse'](_0x451265),_0x4b0075=this[_0x5c29('0xea')][_0x5c29('0x84')]['view'][_0x5c29('0xcb')],_0x513672=new _0x38aa6b(_0x4b0075,_0x40dd8f[_0x5c29('0xa9')](_0x5455c6=>J(_0x5455c6,this[_0x5c29('0xea')])));return this[_0x5c29('0xea')]['data']['toModel'](_0x513672);}[_0x5c29('0x68')](_0x5b9944,_0x253701,_0x1fc5ad,_0x17bf20){const _0x2e2bd9=new Map(_0x253701),_0x1cd0fb=new Map(_0x118057(_0x17bf20)),_0x25bf8d=new Map();for(const [_0x1b7404,_0x4255d8]of _0x1fc5ad)_0x25bf8d[_0x5c29('0xa6')](_0x1b7404,{'start':_0x4255d8[_0x5c29('0xe3')][_0x5c29('0x12')](),'end':_0x4255d8[_0x5c29('0x26')][_0x5c29('0x12')](),'rootName':_0x4255d8[_0x5c29('0xae')]['rootName']});this[_0x5c29('0x80')][_0x5c29('0xa6')](_0x5b9944,{'roots':_0x2e2bd9,'markers':_0x25bf8d,'rootsAttributes':_0x1cd0fb});}[_0x5c29('0x4f')](_0x2fffbf){this[_0x5c29('0x80')][_0x5c29('0xe1')](_0x2fffbf);}['reInit'](){this[_0x5c29('0x7a')](),this['_lastFrom']=-0x1,this[_0x5c29('0x36')]=-0x1,this[_0x5c29('0x80')][_0x5c29('0xb3')](),this[_0x5c29('0xa3')](this['source']);}['_reset'](){this[_0x5c29('0x54')]['clear'](),this[_0x5c29('0xd6')][_0x5c29('0xb3')](),this[_0x5c29('0xc2')][_0x5c29('0xb3')](),this[_0x5c29('0x4b')][_0x5c29('0xb3')](),this[_0x5c29('0x6')][_0x5c29('0xb3')](),this[_0x5c29('0x24')][_0x5c29('0xb3')](),this[_0x5c29('0x28')]['clear'](),this[_0x5c29('0xfa')]['clear'](),this[_0x5c29('0xc8')][_0x5c29('0xb3')](),this[_0x5c29('0x57')]['clear'](),this['_revisionId']=0x1,this[_0x5c29('0x58')]=this['_revisionId'];}[_0x5c29('0xcc')](_0x2bf0a9,_0x24519c=null){let _0x13c0fe=null;_0x2bf0a9['is'](_0x5c29('0x6a'))||(_0x13c0fe=new _0x21b98a(_0x2bf0a9[_0x5c29('0x32')],{'vid_start':null===_0x24519c?this[_0x5c29('0xa4')]++:_0x24519c++}));const _0x2fe172=[];for(const _0x4cccd4 of _0x2bf0a9[_0x5c29('0xfe')]())if(_0x4cccd4['is'](_0x5c29('0x59'))){_0x2fe172[_0x5c29('0xf1')](this[_0x5c29('0xcc')](_0x4cccd4,_0x24519c));const _0xe2c560=_0x2fe172[_0x2fe172['length']-0x1];null!==_0x24519c&&(_0x24519c=_0xe2c560['is']('element','$text')?_0xe2c560['getAttribute'](_0x5c29('0x66'))+0x1:_0xe2c560[_0x5c29('0xb6')](_0x5c29('0x79'))+0x1);}else for(let _0x527022=0x0;_0x527022<_0x4cccd4[_0x5c29('0xc9')];_0x527022++)_0x2fe172[_0x5c29('0xf1')](new _0x21b98a('$text',{'vid':null===_0x24519c?this[_0x5c29('0xa4')]++:_0x24519c++}));if(_0x2bf0a9['is'](_0x5c29('0x6a'))){const _0x28dc1b=G(_0x2bf0a9[_0x5c29('0x9d')]);return _0x28dc1b[_0x5c29('0x85')](0x0,_0x2fe172),_0x28dc1b;}return _0x13c0fe[_0x5c29('0xd0')](_0x5c29('0x79'),null===_0x24519c?this[_0x5c29('0xa4')]++:_0x24519c++),_0x13c0fe[_0x5c29('0x85')](0x0,_0x2fe172),_0x13c0fe;}['_calculateMetaData'](_0x33f473,_0x3e9708,_0x3ffc7a){this[_0x5c29('0x7a')]();const {roots:_0x512fae,markers:_0x18e19d,rootsAttributes:_0x4d8716}=this[_0x5c29('0x80')][_0x5c29('0x2e')](_0x33f473);this[_0x5c29('0x24')]=new Map(_0x512fae),this[_0x5c29('0x28')]=new Map(_0x118057(_0x4d8716));for(const [_0x1b8d13,_0x3a6245]of this[_0x5c29('0x24')])if('$graveyard'!==_0x1b8d13&&(this[_0x5c29('0x4b')][_0x5c29('0xa6')](_0x1b8d13,q(_0x3a6245)),this[_0x5c29('0x6')]=new Map(_0x118057(_0x4d8716)),_0x3ffc7a)){const _0x23a241=this[_0x5c29('0xa4')];this[_0x5c29('0xfa')][_0x5c29('0xa6')](_0x1b8d13,this[_0x5c29('0xcc')](_0x3a6245)),this[_0x5c29('0xc8')][_0x5c29('0xa6')](_0x1b8d13,this[_0x5c29('0xcc')](_0x3a6245,_0x23a241));}this[_0x5c29('0x58')]=this[_0x5c29('0xa4')],this['_diffRoots'][_0x5c29('0xa6')](_0x5c29('0x2c'),q(this[_0x5c29('0x24')][_0x5c29('0x2e')](_0x5c29('0x2c')))),_0x3ffc7a&&this[_0x5c29('0xfa')][_0x5c29('0xa6')]('$graveyard',this[_0x5c29('0xcc')](this[_0x5c29('0x24')][_0x5c29('0x2e')](_0x5c29('0x2c'))));for(const [_0x3fc9d8,_0x5772a1]of _0x18e19d){const _0x4db175=this[_0x5c29('0x24')]['get'](_0x5772a1[_0x5c29('0x9d')]),_0x3cbee9=this[_0x5c29('0x4b')][_0x5c29('0x2e')](_0x5772a1['rootName']),_0x3d59c5=new _0x4814c5(this['_fixPosition'](_0x5772a1[_0x5c29('0xe3')],_0x4db175),this[_0x5c29('0x9e')](_0x5772a1[_0x5c29('0x26')],_0x4db175)),_0x1bdd7f=this['_fixRange'](_0x3d59c5,_0x3cbee9);_0x4db175[_0x5c29('0x39')][_0x5c29('0xa6')](_0x3fc9d8,_0x3d59c5),this['_markers'][_0x5c29('0xa6')](_0x3fc9d8,_0x1bdd7f);}this[_0x5c29('0xe8')](_0x33f473,_0x3e9708,_0x3ffc7a);}[_0x5c29('0xe8')](_0x5e4e90,_0x21e34d,_0x229676){for(const _0x472cd8 of this[_0x5c29('0x4e')][_0x5c29('0x2f')](_0x5e4e90,_0x21e34d))this[_0x5c29('0xeb')](_0x472cd8,_0x229676);for(const _0x6b60a5 of this['_diffRoots'][_0x5c29('0x74')]())_0x6b60a5[_0x5c29('0x39')]['clear']();for(const [_0xce9ef4,_0x40059d]of this['_markers']){this[_0x5c29('0x4b')][_0x5c29('0x2e')](_0x40059d[_0x5c29('0xae')][_0x5c29('0x9d')])[_0x5c29('0x39')][_0x5c29('0xa6')](_0xce9ef4,_0x40059d[_0x5c29('0x12')]());}const _0x1f35fd=new Map(),_0x1860f7=new Map();for(const [_0x591bdb,_0x22449c]of this[_0x5c29('0x4b')])_0x1f35fd['set'](_0x591bdb,q(_0x22449c)),_0x1860f7[_0x5c29('0xa6')](_0x591bdb,this[_0x5c29('0x6')]['get'](_0x591bdb));this[_0x5c29('0x68')](_0x21e34d,_0x1f35fd,this[_0x5c29('0x57')],_0x1860f7);}[_0x5c29('0x91')](_0x42a316){const _0x2c3dd4=Array['from'](this[_0x5c29('0x80')]['keys']());_0x2c3dd4[_0x5c29('0x7c')]((_0x49f94c,_0x1416d6)=>_0x49f94c-_0x1416d6),_0x2c3dd4[_0x5c29('0x69')]();for(const _0x4a357b of _0x2c3dd4)if(_0x4a357b<_0x42a316)return _0x4a357b;return Number[_0x5c29('0xa1')];}[_0x5c29('0x87')](_0x446982,_0x19ed5d){const _0x221658=Array['from'](_0x19ed5d[_0x5c29('0x39')])[_0x5c29('0xa9')](([_0x12590e,_0x5125f5])=>[_0x12590e,this['_fixRange'](_0x5125f5,_0x446982)]);_0x446982[_0x5c29('0x39')]=new Map(_0x221658);}[_0x5c29('0x7d')](_0x267374){for(const _0x22bb45 of this[_0x5c29('0x57')][_0x5c29('0x74')]()){const _0x5e79be=_0x22bb45[_0x5c29('0xe2')](_0x267374),_0x1d4e8c=_0x4814c5[_0x5c29('0x5f')](_0x5e79be);_0x22bb45[_0x5c29('0xe3')]=_0x1d4e8c[_0x5c29('0xe3')],_0x22bb45[_0x5c29('0x26')]=_0x1d4e8c[_0x5c29('0x26')];}}[_0x5c29('0xeb')](_0x2d84c5,_0x41ae47){if('addRoot'==_0x2d84c5['type']||'detachRoot'==_0x2d84c5[_0x5c29('0x9b')])return void this[_0x5c29('0x3d')](_0x2d84c5,_0x41ae47);if('insert'==_0x2d84c5[_0x5c29('0x9b')]){const _0x657e3d=_0x2d84c5[_0x5c29('0x3e')][_0x5c29('0xae')][_0x5c29('0x9d')];this[_0x5c29('0x4b')][_0x5c29('0xa0')](_0x657e3d)||(this[_0x5c29('0x4b')][_0x5c29('0xa6')](_0x657e3d,G(_0x657e3d,!0x0)),this[_0x5c29('0x6')][_0x5c29('0xa6')](_0x657e3d,{}),_0x41ae47&&this[_0x5c29('0xfa')][_0x5c29('0xa6')](_0x657e3d,G(_0x657e3d,!0x0)));}if('addRootAttribute'==_0x2d84c5[_0x5c29('0x9b')]||'removeRootAttribute'==_0x2d84c5[_0x5c29('0x9b')]||'changeRootAttribute'==_0x2d84c5[_0x5c29('0x9b')])return void this['_handleRootAttributeOperation'](_0x2d84c5);const _0x3db1b5=this[_0x5c29('0xba')](_0x2d84c5,this[_0x5c29('0x4b')]);if(_0x5c29('0x90')!==_0x2d84c5[_0x5c29('0x9b')]&&(_0x3db1b5[_0x5c29('0xbc')](),this[_0x5c29('0x7d')](_0x3db1b5)),_0x41ae47)switch(_0x3db1b5[_0x5c29('0x9b')]){case _0x5c29('0x55'):this[_0x5c29('0x3f')](_0x2d84c5);break;case _0x5c29('0xdc'):case _0x5c29('0xe5'):case _0x5c29('0x63'):this[_0x5c29('0x38')](_0x2d84c5);break;case'merge':this[_0x5c29('0x43')](_0x2d84c5);break;case _0x5c29('0x4c'):this[_0x5c29('0x1d')](_0x2d84c5);break;case _0x5c29('0x90'):this['_handleMarkerOperation'](_0x2d84c5);}}['_cloneOperation'](_0x396fa5,_0x6a7c15){const _0x372644=_0x396fa5['clone']();return _0x372644[_0x5c29('0x46')]=_0x396fa5[_0x5c29('0x46')],this[_0x5c29('0xa2')](_0x372644,_0x6a7c15),_0x372644;}[_0x5c29('0x2')](_0x5e8e5b){return _0x5e8e5b[_0x5c29('0xa9')](_0x4a4667=>{const _0x587df0=this['_getVidAttributeName'](_0x4a4667);return Number(_0x4a4667[_0x5c29('0x60')]['getAttribute'](_0x587df0));});}['_generateTape'](_0x589409,_0xf23303){if(_0x589409['is'](_0x5c29('0x59'),_0x5c29('0xf6')))_0xf23303[_0x5c29('0xf1')]({'item':_0x589409,'type':_0x5c29('0x4')});else{_0x589409['is']('element')&&_0xf23303[_0x5c29('0xf1')]({'item':_0x589409,'type':_0x5c29('0xbd')});for(const _0x1b736d of _0x589409[_0x5c29('0xfe')]())this[_0x5c29('0xfb')](_0x1b736d,_0xf23303);_0x589409['is'](_0x5c29('0x59'))&&_0xf23303['push']({'item':_0x589409,'type':_0x5c29('0x37')});}return _0xf23303;}[_0x5c29('0x1c')](){const _0x12e501=new Map(this[_0x5c29('0x54')]),_0x4a9582=new Map(_0x12e501),_0xecd2f=new Map(),_0xb7fd36={'insertions':{},'deletions':{}},_0x441786={'insertions':{},'deletions':{}},_0x1f7a77=new Map(),_0x319842=new Set([...this[_0x5c29('0x24')]['keys'](),...this['_diffRoots'][_0x5c29('0x78')]()]);_0x319842['delete'](_0x5c29('0x2c'));for(const _0x22e319 of _0x319842){const _0x447867=this[_0x5c29('0x4b')]['get'](_0x22e319)||G(_0x22e319,!0x1),_0x2c3115=this['_baseRoots'][_0x5c29('0x2e')](_0x22e319)||G(_0x22e319,!0x1);_0x447867['isAttached']()||_0x2c3115[_0x5c29('0xb8')]()?(_0xb7fd36[_0x5c29('0xdf')][_0x22e319]=q(_0x447867),_0xb7fd36[_0x5c29('0x3a')][_0x22e319]=q(_0x2c3115),this[_0x5c29('0x87')](_0xb7fd36[_0x5c29('0x3a')][_0x22e319],_0x2c3115),this['_copyMarkers'](_0xb7fd36[_0x5c29('0xdf')][_0x22e319],_0x447867),_0x441786['insertions'][_0x22e319]=this[_0x5c29('0xfb')](this[_0x5c29('0xfa')][_0x5c29('0x2e')](_0x22e319),[]),_0x441786[_0x5c29('0x3a')][_0x22e319]=this[_0x5c29('0xfb')](this[_0x5c29('0xc8')]['get'](_0x22e319)||G(_0x22e319,!0x1),[])):_0x319842['delete'](_0x22e319);}for(const _0x40b10c of _0x319842){const _0x3061b6=_0x441786[_0x5c29('0xdf')][_0x40b10c];for(const _0x3072b9 of _0x3061b6){const _0x5f00bd=this[_0x5c29('0x18')](_0x3072b9),_0x136867=_0x3072b9['item'][_0x5c29('0xb6')](_0x5f00bd);_0x4a9582[_0x5c29('0xe1')](_0x136867),_0x136867>=this[_0x5c29('0x58')]&&_0xecd2f[_0x5c29('0xa6')](_0x136867,_0x12e501[_0x5c29('0x2e')](_0x136867));}}for(const _0x1193a1 of _0x319842){const _0x3c76db=_0x441786[_0x5c29('0xdf')][_0x1193a1],_0x425871=this[_0x5c29('0x2')](_0x441786[_0x5c29('0x3a')][_0x1193a1]);let _0x5cd9a9=0x0;for(const _0x48938d of _0x3c76db){const _0x2c63b7=this[_0x5c29('0x18')](_0x48938d),_0x55afa6=_0x48938d['item'][_0x5c29('0xb6')](_0x2c63b7);if(!_0xecd2f[_0x5c29('0xa0')](_0x55afa6)&&!_0x1f7a77['has'](_0x55afa6)){if(_0x4a9582[_0x5c29('0xa0')](_0x55afa6))_0x5cd9a9++;else{if(_0x55afa6!=_0x425871[_0x5cd9a9]){const _0x1462f8=_0x12e501['get'](_0x55afa6)||_0x12e501[_0x5c29('0x2e')](_0x425871[_0x5cd9a9]);for(;_0x55afa6!=_0x425871[_0x5cd9a9];)_0x4a9582[_0x5c29('0xa0')](_0x425871[_0x5cd9a9])||(_0x1f7a77[_0x5c29('0xa6')](_0x425871[_0x5cd9a9],_0x1462f8),_0x12e501[_0x5c29('0xa6')](_0x425871[_0x5cd9a9],_0x1462f8)),_0x5cd9a9++;}_0x5cd9a9++;}}}}for(const _0x57335e of _0x319842){const _0x4a3f44=_0x441786[_0x5c29('0xdf')][_0x57335e];for(const _0x4c3867 of _0x4a3f44){const _0x42e27e=this['_getVidAttributeName'](_0x4c3867),_0x32cadb=_0x4c3867[_0x5c29('0x60')]['getAttribute'](_0x42e27e);if(_0x1f7a77[_0x5c29('0xa0')](_0x32cadb)){const _0x2c1320=_0x1f7a77[_0x5c29('0x2e')](_0x32cadb);_0x4a9582[_0x5c29('0xa0')](_0x32cadb)||_0x4a9582['set'](_0x32cadb,{..._0x2c1320}),_0xecd2f[_0x5c29('0xa6')](_0x32cadb,{..._0x2c1320});}}}for(const _0x557f43 of _0x4a9582[_0x5c29('0x78')]())_0x557f43>=this[_0x5c29('0x58')]&&_0x4a9582[_0x5c29('0xe1')](_0x557f43);const _0x582824=new Map();for(const _0x3ae736 of _0x319842){let _0x2f485b=_0x441786[_0x5c29('0xdf')][_0x3ae736];for(const _0x263d0c of _0x2f485b)if(_0x263d0c[_0x5c29('0x60')]['is'](_0x5c29('0x59'),_0x5c29('0x70'))){const _0x55f396=this[_0x5c29('0x18')](_0x263d0c),_0x27d360=_0x263d0c[_0x5c29('0x60')][_0x5c29('0xb6')](_0x55f396);if(_0xecd2f[_0x5c29('0xa0')](_0x27d360)){const _0x57ee49=_0x263d0c[_0x5c29('0x60')][_0x5c29('0x9')][_0x5c29('0x9')][_0x5c29('0xb6')](_0x5c29('0x67')),_0x1f3946=_0x582824[_0x5c29('0x2e')](_0x57ee49)||new Set();_0x1f3946[_0x5c29('0xde')](_0xecd2f['get'](_0x27d360)[_0x5c29('0xcf')]),_0x582824[_0x5c29('0xa6')](_0x57ee49,_0x1f3946);}}_0x2f485b=_0x441786[_0x5c29('0x3a')][_0x3ae736];for(const _0x24b001 of _0x2f485b)if(_0x24b001['item']['is'](_0x5c29('0x59'),_0x5c29('0x70'))){const _0x5303ef=this[_0x5c29('0x18')](_0x24b001),_0x3824c1=_0x24b001['item'][_0x5c29('0xb6')](_0x5303ef);if(_0x4a9582[_0x5c29('0xa0')](_0x3824c1)){const _0xd5abd3=_0x24b001[_0x5c29('0x60')][_0x5c29('0x9')][_0x5c29('0x9')]['getAttribute'](_0x5c29('0x67')),_0x509d0e=_0x582824[_0x5c29('0x2e')](_0xd5abd3)||new Set();_0x509d0e[_0x5c29('0xde')](_0x4a9582[_0x5c29('0x2e')](_0x3824c1)[_0x5c29('0xcf')]),_0x582824[_0x5c29('0xa6')](_0xd5abd3,_0x509d0e);}}for(const _0x3e2230 of _0x582824[_0x5c29('0x78')]())(_0xecd2f[_0x5c29('0xa0')](_0x3e2230)||_0x4a9582[_0x5c29('0xa0')](_0x3e2230))&&_0x582824[_0x5c29('0xe1')](_0x3e2230);}for(const _0x4d8663 of _0x319842){const _0x3dacde=_0x441786[_0x5c29('0xdf')][_0x4d8663];let _0x4af7cd=null,_0x18d6be=null;for(const _0x13f234 of _0x3dacde){const _0x45eb51=this['_getVidAttributeName'](_0x13f234),_0x4a29c8=_0x13f234[_0x5c29('0x60')][_0x5c29('0xb6')](_0x45eb51),_0x4f5962=_0x582824[_0x5c29('0x2e')](_0x4a29c8);_0x4f5962&&_0x5c29('0xbd')==_0x13f234[_0x5c29('0x9b')]&&(_0x4af7cd=Array['from'](_0x4f5962)[0x0],_0x18d6be=_0x13f234[_0x5c29('0x60')][_0x5c29('0xb6')](_0x5c29('0x79'))),_0x4af7cd&&(_0x4a9582[_0x5c29('0xa6')](_0x4a29c8,{'userId':_0x4af7cd}),_0xecd2f[_0x5c29('0xa6')](_0x4a29c8,{'userId':_0x4af7cd})),_0x4a29c8==_0x18d6be&&(_0x4af7cd=null,_0x18d6be=null);}}const _0x13ada2={},_0x20e691=new Set();for(const _0x3c403e of _0x319842){const _0x2b5f20=_0xb7fd36[_0x5c29('0x3a')][_0x3c403e],_0x11f9f4=_0xb7fd36[_0x5c29('0xdf')][_0x3c403e];for(const {userId:_0x1c1796}of this[_0x5c29('0xd6')][_0x5c29('0x74')]())null!==_0x1c1796&&_0x20e691[_0x5c29('0xde')](_0x1c1796);for(const {userId:_0x591893}of this[_0x5c29('0xc2')]['values']())null!==_0x591893&&_0x20e691['add'](_0x591893);this['_markChanges'](_0x11f9f4,_0x441786[_0x5c29('0xdf')][_0x3c403e],_0xecd2f,_0x5c29('0xb0'),_0x20e691),this['_markChanges'](_0x2b5f20,_0x441786[_0x5c29('0x3a')][_0x3c403e],_0x4a9582,_0x5c29('0x15'),_0x20e691),_0x13ada2[_0x3c403e]={'insertions':this[_0x5c29('0x7f')](_0x11f9f4),'deletions':this['_prepareViewToSave'](_0x2b5f20),'attachChange':this['_touchedRoots'][_0x5c29('0x2e')](_0x3c403e)||null,'attributesBefore':_0x118057(this[_0x5c29('0x28')][_0x5c29('0x2e')](_0x3c403e))||{},'attributesAfter':_0x118057(this[_0x5c29('0x6')]['get'](_0x3c403e))};}return{'diffData':_0x13ada2,'authorsIds':Array['from'](_0x20e691)};}[_0x5c29('0x52')](_0x1b2af){for(const [,_0x1f4836]of _0x1b2af[_0x5c29('0x39')]){const _0xfc0231=_0x1f4836[_0x5c29('0xe3')]['getAncestors']()[_0x5c29('0xad')](_0x482dfe=>_0x5c29('0x70')==_0x482dfe[_0x5c29('0x32')]);for(const _0x5a0372 of _0xfc0231)0x1==_0x5a0372[_0x5c29('0x95')]&&_0x5a0372[_0x5c29('0x6e')](0x0)['is'](_0x5c29('0x59'),_0x5c29('0x1e'))&&_0x5a0372[_0x5c29('0x6e')](0x0)['_setAttribute'](_0x5c29('0x3c'),!0x0);}}['_prepareViewToSave'](_0x4a8a87){this['_processRootBeforeSave'](_0x4a8a87);const _0x31f026=this[_0x5c29('0xea')][_0x5c29('0x5e')][_0x5c29('0x56')](_0x4a8a87,{}),_0x9cc20a=Array[_0x5c29('0x64')](_0x31f026[_0x5c29('0xfe')]())['map'](_0x4171e0=>this[_0x5c29('0x29')](_0x4171e0));return JSON[_0x5c29('0xb')](_0x9cc20a);}[_0x5c29('0x29')](_0x40ae1c){if(_0x40ae1c['is'](_0x5c29('0xf6')))return _0x40ae1c[_0x5c29('0x5e')];{const _0x54883d=_0x40ae1c;return{'type':Object[_0x5c29('0x78')](B)[_0x5c29('0x2d')](_0x5bca8d=>_0x40ae1c instanceof B[_0x5bca8d]),'name':_0x54883d[_0x5c29('0x32')],'attributes':Array[_0x5c29('0x64')](_0x54883d['getAttributes']()),'children':Array[_0x5c29('0x64')](_0x54883d[_0x5c29('0xfe')]())[_0x5c29('0xa9')](_0x3d66a3=>this[_0x5c29('0x29')](_0x3d66a3))};}}['_markChanges'](_0x4a580e,_0x37eff2,_0x1fddbe,_0x1c964d,_0x5f5821){let _0x24e0b9=null,_0x222764=null,_0x21608f=0x0;const _0x1ce55d=this['editor'][_0x5c29('0xbf')];for(let _0x26f1b9=0x0;_0x26f1b9<_0x37eff2[_0x5c29('0x81')];_0x26f1b9++){const _0x47eed3=this[_0x5c29('0x18')](_0x37eff2[_0x26f1b9]),_0x32514e=_0x37eff2[_0x26f1b9][_0x5c29('0x60')][_0x5c29('0xb6')](_0x47eed3),_0x2f136f=_0x1fddbe[_0x5c29('0x2e')](_0x32514e),_0x2c685c=_0x26f1b9==_0x37eff2[_0x5c29('0x81')]-0x1;(!_0x24e0b9&&_0x2f136f&&(_0x24e0b9=_0x2f136f,_0x222764=_0x37eff2[_0x26f1b9]),_0x24e0b9&&(!_0x2f136f||_0x2f136f[_0x5c29('0xcf')]!=_0x24e0b9[_0x5c29('0xcf')]))&&(_0x3d9967(_0x2f136f,L(_0x222764,_0x4a580e,_0x1ce55d),L(_0x37eff2[_0x26f1b9],_0x4a580e,_0x1ce55d)),_0x24e0b9=_0x2f136f||null,_0x222764=_0x2f136f?_0x37eff2[_0x26f1b9]:null),_0x24e0b9&&_0x2c685c&&_0x3d9967(_0x2f136f,L(_0x222764,_0x4a580e,_0x1ce55d),W(_0x37eff2[_0x26f1b9],_0x4a580e,_0x1ce55d));}function _0x3d9967(_0x44cc97,_0x238f84,_0x32c41b){const _0x8a257b=_0x24e0b9[_0x5c29('0xcf')],_0xdf2d84='revision:'+_0x1c964d+':'+_0x8a257b+':'+_0x21608f++,_0x4362d1=_0x1ce55d[_0x5c29('0x65')](_0x238f84,_0x32c41b);_0x4a580e['markers']['set'](_0xdf2d84,_0x4362d1),null!==_0x8a257b&&_0x5f5821[_0x5c29('0xde')](_0x8a257b);}}[_0x5c29('0x18')](_0x3b9ad7){switch(_0x3b9ad7[_0x5c29('0x9b')]){case'elementStart':return _0x5c29('0x67');case _0x5c29('0x37'):return _0x5c29('0x79');default:return _0x5c29('0x66');}}[_0x5c29('0xa2')](_0x39edff,_0x5a22f3){_0x39edff['baseVersion']=null;for(const _0x10be92 in _0x39edff){const _0x4eee47=_0x39edff[_0x10be92];if(_0x4eee47 instanceof _0x1c842a){const _0x511946=_0x5a22f3[_0x5c29('0x2e')](_0x4eee47[_0x5c29('0xae')]['rootName']);_0x39edff[_0x10be92]=this[_0x5c29('0x9e')](_0x4eee47,_0x511946);}if(_0x4eee47 instanceof _0x4814c5){const _0xeb464f=_0x5a22f3[_0x5c29('0x2e')](_0x4eee47[_0x5c29('0xae')][_0x5c29('0x9d')]);_0x39edff[_0x10be92]=this[_0x5c29('0xa')](_0x4eee47,_0xeb464f);}'root'===_0x10be92&&(_0x39edff[_0x5c29('0xae')]=_0x5a22f3[_0x5c29('0x2e')](_0x39edff['root'][_0x5c29('0x9d')]));}}['_fixRange'](_0x53bdba,_0x277f3d){return this[_0x5c29('0xea')]['model']['createRange'](this[_0x5c29('0x9e')](_0x53bdba[_0x5c29('0xe3')],_0x277f3d),this[_0x5c29('0x9e')](_0x53bdba['end'],_0x277f3d));}[_0x5c29('0x9e')](_0x9d99f4,_0x2fadeb){return this[_0x5c29('0xea')][_0x5c29('0xbf')]['createPositionFromPath'](_0x2fadeb,_0x9d99f4[_0x5c29('0xaf')],_0x9d99f4[_0x5c29('0x6b')]);}['_handleInsertOperation'](_0x1d71a6){const _0x4a78de=this[_0x5c29('0xfa')][_0x5c29('0x2e')](_0x1d71a6['position']['root'][_0x5c29('0x9d')]),_0x1ccf66=this[_0x5c29('0x9e')](_0x1d71a6[_0x5c29('0x3e')],_0x4a78de),_0x61c7b4=null===_0x1d71a6['_authorId']?null:_0x1d71a6[_0x5c29('0x46')]||this[_0x5c29('0xea')]['plugins'][_0x5c29('0x2e')]('Users')['me']['id'],_0x5a23de=_0x1ccf66[_0x5c29('0x9')],_0xcc200a=this['_revisionId'],_0xe94cc1=[];for(const _0x38be18 of _0x1d71a6['nodes'])if(_0x38be18['is'](_0x5c29('0x59')))_0xe94cc1[_0x5c29('0xf1')](this[_0x5c29('0xcc')](_0x38be18));else for(let _0x52b39a=0x0;_0x52b39a<_0x38be18[_0x5c29('0xc9')];_0x52b39a++)_0xe94cc1[_0x5c29('0xf1')](new _0x21b98a(_0x5c29('0xf6'),{'vid':this[_0x5c29('0xa4')]++}));const _0x2b5ece=this[_0x5c29('0xa4')];for(let _0x42d65d=_0xcc200a;_0x42d65d<_0x2b5ece;_0x42d65d++)this[_0x5c29('0x54')][_0x5c29('0xa6')](_0x42d65d,{'userId':_0x61c7b4});_0x5a23de[_0x5c29('0x85')](_0x1ccf66[_0x5c29('0x0')],_0xe94cc1);}[_0x5c29('0x38')](_0x2c650d){(_0x2c650d=this[_0x5c29('0xba')](_0x2c650d,this[_0x5c29('0xfa')]))[_0x5c29('0xbc')]();const _0x513fa3=null===_0x2c650d[_0x5c29('0x46')]?null:_0x2c650d['_authorId']||this['editor']['plugins'][_0x5c29('0x2e')](_0x5c29('0x89'))['me']['id'],_0x5a2c77=_0x2c650d[_0x5c29('0xd5')](),_0x5b0a14=_0x5a2c77['parent'],_0x1c210e=_0x5a2c77[_0x5c29('0x0')];!function _0x2180de(_0x54e21c,_0x3b7255,_0x31a72a,_0x16dc94){for(let _0x237dfb=_0x31a72a;_0x237dfb<_0x16dc94;_0x237dfb++){const _0x13cb11=_0x3b7255[_0x5c29('0x6e')](_0x237dfb);_0x13cb11['is']('element',_0x5c29('0xf6'))?_0x54e21c[_0x5c29('0xa6')](_0x13cb11[_0x5c29('0xb6')](_0x5c29('0x66')),{'userId':_0x513fa3}):(_0x54e21c[_0x5c29('0xa6')](_0x13cb11[_0x5c29('0xb6')](_0x5c29('0x67')),{'userId':_0x513fa3}),_0x2180de(_0x54e21c,_0x13cb11,0x0,_0x13cb11[_0x5c29('0x95')]),_0x54e21c[_0x5c29('0xa6')](_0x13cb11[_0x5c29('0xb6')](_0x5c29('0x79')),{'userId':_0x513fa3}));}}(this[_0x5c29('0x54')],_0x5b0a14,_0x1c210e,_0x1c210e+_0x2c650d[_0x5c29('0xef')]);}['_handleMergeOperation'](_0x1cfbd5){const _0x582598=null===(_0x1cfbd5=this[_0x5c29('0xba')](_0x1cfbd5,this[_0x5c29('0xfa')]))['_authorId']?null:_0x1cfbd5['_authorId']||this[_0x5c29('0xea')][_0x5c29('0xe6')][_0x5c29('0x2e')]('Users')['me']['id'],_0x6af824=_0x1cfbd5['targetPosition'][_0x5c29('0x9')],_0x3f377c=_0x1cfbd5['sourcePosition'][_0x5c29('0x9')],_0x441609=_0x6af824[_0x5c29('0xb6')]('vid_end'),_0x5803bb=_0x3f377c[_0x5c29('0xb6')](_0x5c29('0x67'));_0x6af824['_setAttribute'](_0x5c29('0x79'),_0x3f377c[_0x5c29('0xb6')](_0x5c29('0x79'))),_0x3f377c[_0x5c29('0xd0')]('vid_end',_0x441609),this[_0x5c29('0x54')][_0x5c29('0xa6')](_0x5803bb,{'userId':_0x582598}),this[_0x5c29('0x54')][_0x5c29('0xa6')](_0x441609,{'userId':_0x582598}),_0x1cfbd5[_0x5c29('0xbc')]();}['_handleSplitOperation'](_0x4c0306){const _0x9f3b82=null===(_0x4c0306=this[_0x5c29('0xba')](_0x4c0306,this[_0x5c29('0xfa')]))[_0x5c29('0x46')]?null:_0x4c0306[_0x5c29('0x46')]||this[_0x5c29('0xea')]['plugins'][_0x5c29('0x2e')](_0x5c29('0x89'))['me']['id'],_0x28bd8d=_0x4c0306[_0x5c29('0x8a')],_0x7324e4=_0x4c0306[_0x5c29('0x10')][_0x5c29('0x9')];_0x4c0306[_0x5c29('0xbc')]();const _0x5d6490=_0x7324e4[_0x5c29('0xb6')](_0x5c29('0x79')),_0x5823a2=_0x4c0306[_0x5c29('0xfc')]['nodeAfter'];if(_0x28bd8d){const _0x2ede55=_0x5823a2[_0x5c29('0xb6')]('vid_end'),_0x21cd47=_0x7324e4[_0x5c29('0xb6')](_0x5c29('0x79'));_0x7324e4['_setAttribute']('vid_end',_0x2ede55),_0x5823a2[_0x5c29('0xd0')]('vid_end',_0x21cd47),this[_0x5c29('0x54')][_0x5c29('0xa6')](_0x7324e4[_0x5c29('0xb6')](_0x5c29('0x79')),{'userId':_0x9f3b82}),this[_0x5c29('0x54')][_0x5c29('0xa6')](_0x5823a2[_0x5c29('0xb6')]('vid_start'),{'userId':_0x9f3b82});}else{const _0x442a01=this[_0x5c29('0xa4')]++,_0x160503=this['_revisionId']++;_0x7324e4[_0x5c29('0xd0')]('vid_end',_0x442a01),_0x5823a2[_0x5c29('0xd0')](_0x5c29('0x67'),_0x160503),_0x5823a2[_0x5c29('0xd0')](_0x5c29('0x79'),_0x5d6490),this['_touched'][_0x5c29('0xa6')](_0x442a01,{'userId':_0x9f3b82}),this['_touched'][_0x5c29('0xa6')](_0x160503,{'userId':_0x9f3b82});}}[_0x5c29('0xe0')](_0x2f68b3){if(!_0x2f68b3[_0x5c29('0x5c')])return;const _0x24f1a2=(_0x2f68b3=this[_0x5c29('0xba')](_0x2f68b3,this[_0x5c29('0x4b')]))[_0x5c29('0x20')]?_0x2f68b3[_0x5c29('0x20')][_0x5c29('0xae')]:null,_0x204502=_0x2f68b3['newRange']?_0x2f68b3['newRange']['root']:null;_0x24f1a2&&this[_0x5c29('0x57')][_0x5c29('0xe1')](_0x2f68b3[_0x5c29('0x32')]),_0x204502&&this[_0x5c29('0x57')][_0x5c29('0xa6')](_0x2f68b3[_0x5c29('0x32')],_0x2f68b3[_0x5c29('0xce')][_0x5c29('0x12')]());const _0x282bb3=null===_0x2f68b3['_authorId']?null:_0x2f68b3[_0x5c29('0x46')]||this[_0x5c29('0xea')][_0x5c29('0xe6')][_0x5c29('0x2e')](_0x5c29('0x89'))['me']['id'],_0x3ad4da=_0x2f68b3[_0x5c29('0x32')];if(!this[_0x5c29('0xd6')][_0x5c29('0xa0')](_0x3ad4da))return void this['_touchedMarkers'][_0x5c29('0xa6')](_0x3ad4da,{'range':_0x2f68b3[_0x5c29('0x20')],'userId':_0x282bb3});const _0xea6062=this[_0x5c29('0xd6')][_0x5c29('0x2e')](_0x3ad4da),_0x5425f1=_0xea6062[_0x5c29('0xbe')],_0x15cc9d=_0x2f68b3['newRange'];null==_0x5425f1&&null==_0x15cc9d||_0x5425f1&&_0x15cc9d&&_0x5425f1['isEqual'](_0x15cc9d)?this[_0x5c29('0xd6')]['delete'](_0x2f68b3[_0x5c29('0x32')]):_0xea6062[_0x5c29('0xcf')]=_0x282bb3;}[_0x5c29('0x3d')](_0x596b0e,_0x4185c7){this[_0x5c29('0x4b')][_0x5c29('0xa0')](_0x596b0e[_0x5c29('0x9d')])?this[_0x5c29('0x4b')][_0x5c29('0x2e')](_0x596b0e[_0x5c29('0x9d')])[_0x5c29('0x22')]=_0x596b0e[_0x5c29('0xb2')]:(this['_diffRoots']['set'](_0x596b0e[_0x5c29('0x9d')],G(_0x596b0e['rootName'],!0x0)),this[_0x5c29('0x6')][_0x5c29('0xa6')](_0x596b0e[_0x5c29('0x9d')],{}),_0x4185c7&&this[_0x5c29('0xfa')][_0x5c29('0xa6')](_0x596b0e[_0x5c29('0x9d')],G(_0x596b0e[_0x5c29('0x9d')],!0x0)));const _0x1fe67e=null===_0x596b0e[_0x5c29('0x46')]?null:_0x596b0e[_0x5c29('0x46')]||this['editor']['plugins']['get'](_0x5c29('0x89'))['me']['id'],_0x43f8f7=this['_touchedRoots'][_0x5c29('0x2e')](_0x596b0e['rootName']);_0x43f8f7&&_0x43f8f7[_0x5c29('0xcf')]===_0x1fe67e?this[_0x5c29('0xc2')]['delete'](_0x596b0e['rootName']):this['_touchedRoots'][_0x5c29('0xa6')](_0x596b0e['rootName'],{'userId':_0x1fe67e,'isAttached':_0x596b0e['isAdd']});}[_0x5c29('0xb7')](_0x41db32){const _0x15e037=this[_0x5c29('0x6')][_0x5c29('0x2e')](_0x41db32['root'][_0x5c29('0x9d')]);null===_0x41db32[_0x5c29('0x3')]?delete _0x15e037[_0x41db32[_0x5c29('0xc')]]:_0x15e037[_0x41db32[_0x5c29('0xc')]]=_0x41db32[_0x5c29('0x3')];}}function q(_0x5adbe0){const _0x25da64=G(_0x5adbe0[_0x5c29('0x9d')],_0x5adbe0[_0x5c29('0xb8')]());for(const _0x1e8033 of _0x5adbe0[_0x5c29('0xfe')]()){const _0xf963a0=_0x1e8033[_0x5c29('0x47')](!0x0);_0x25da64[_0x5c29('0xab')](_0xf963a0);}return _0x25da64;}function G(_0x48000c,_0x5541fc=!0x0){const _0x5f12c9=new _0x230184();return _0x5f12c9[_0x5c29('0x9d')]=_0x48000c,_0x5f12c9['_isAttached']=_0x5541fc,_0x5f12c9['isAttached']=()=>_0x5f12c9[_0x5c29('0x22')],_0x5f12c9;}function L(_0x13f4d1,_0x5a9baf,_0x1c9a74){const _0x39b1d9=_0x5c29('0x37')==_0x13f4d1['type']?_0x1c9a74[_0x5c29('0xf3')](_0x13f4d1[_0x5c29('0x60')],'end'):_0x1c9a74[_0x5c29('0xc0')](_0x13f4d1[_0x5c29('0x60')]);return _0x1c9a74[_0x5c29('0x9a')](_0x5a9baf,_0x39b1d9[_0x5c29('0xaf')],_0x39b1d9['stickiness']);}function W(_0x525140,_0x181c9b,_0x1e5273){const _0x24b313=_0x5c29('0xbd')==_0x525140['type']?_0x1e5273['createPositionAt'](_0x525140['item'],0x0):_0x1e5273[_0x5c29('0x82')](_0x525140[_0x5c29('0x60')]);return _0x1e5273[_0x5c29('0x9a')](_0x181c9b,_0x24b313[_0x5c29('0xaf')],_0x24b313[_0x5c29('0x6b')]);}
|