@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230811.0 → 0.0.0-nightly-20230812.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 _0xe1ab=['some','push','getTransformedByOperation','setSource','type','$graveyard','nodes','_revisionDataBuilder','_copyMarkers','rootsAttributes','_removeMetaData','getChild','model','then','attributes','updateRevisions','source','collaboration.channelId','sendBufferedUpdates','hasContent','ready','initialData','processor','_baseRoots','paragraph','vid','elementStart','getLatestVersion','stringify','getTime','isAttached','_makeIdsRoot','$text','get','define','_applyOperations','_handleRootOperation','update','_diffRootsAttributes','pluginName','_operations','includes','_lastFrom','shift','insert','document','_touchedMarkers','parent','getUser','_loadRevisionData','_getBaseVids','filter','isAdd','elementEnd','NEGATIVE_INFINITY','getAttribute','removeRootAttribute','createPositionAfter','tableCell','history','upcast','getOperations','Users','text','_getPreviousFrom','Initial\x20revision','for','_handleMergeOperation','fromEntries','vid_end','children','_baseIdsRoots','_initialRevisionId','getRange','_startingRevisionId','documentFragment','size','startsWith','deletion','toModel','revision:','_handleSplitOperation','createRevision','detachRoot','_savedMetaData','_getViewJson','_removePendingAction','_makeRevision','_saveMetaData','_calculateMetaData','_handleOperation','marker','path','graveyardPosition','dataToMarker','affectsData','_baseRootsAttributes','markerToData','_createInitialRevision','_fixOperation','isReady','RevisionTracker','getRoot','createPositionFromPath','data','insertionPosition','getAncestors','map','getData','_continueCurrentRevision','roots','_handleMarkerOperation','_startingVersion','parse','toData','config','from','repository','editing','requires','clear','diffData','marked','attachChange','position','buildRevisionData','conversion','_getState','has','_lastTo','_markChanges','createPositionBefore','attributesBefore','getWalker','values','reverse','finally','Empty\x20document','insertion','_findInsertionIndex','loadState','data-revision-','createPositionAt','revisionHistory.resumeUnsavedRevision','_execute','_source','clone','_fixPosition','slice','userId','offset','authorsIds','item','_bufferUpdate','_removeRevisionMarkers','_cloneOperation','offsetSize','_clone','saveRevision','key','getRootNames','addRevision','_setConversion','isEqual','newRange','getAttributes','setRevisionData','getChildren','view','getRevisions','_transformMarkers','add','_generateTape','bind','creator','_isPendingUpdate','createRange','_update','reInit','root','PendingActions','getRevision','version','name','_prepareViewToSave','createdAt','plugins','fromVersion','_revisionId','attributesAfter','_pendingAction','previousPosition','addRevisionData','set','_diffRoots','_idsRoots','addRootAttribute','_handleInsertOperation','getCurrentRevisionId','_reset','start','end','authors','keys','newValue','max','sort','getRevisionDocumentData','PENDING_ACTION_REVISION_HISTORY','resolve','stickiness','isEnabled','delete','_loadedStateData','createRangeIn','_makeModelFromViewString','_touchedRoots','reinsert','getRevisionRootsAttributes','_isAttached','_bufferedUpdates','toView','useFillerType','length','_fixRange','remove','getNodeByPath','addRoot','insertions','creatorId','_touched','_createCurrentRevision','markers','vid_start','_markers','_setAttribute','afterInit','find','baseVersion','_handleMoveOperation','deletions','howMany','_insertChild','_processRootBeforeSave','init','getIndex','rootName','element','_loadState','_getFromVersion','string','forEach','_replaceEditorDataWithRevisionData','oldRange','RevisionsRepository','targetPosition','_getVidAttributeName','toVersion','split','_authorId','editor','currentRevision','changeRootAttribute','adapter','sourcePosition'];(function(_0x1c8105,_0xe1abc){const _0x1a24ef=function(_0x1fec88){while(--_0x1fec88){_0x1c8105['push'](_0x1c8105['shift']());}};_0x1a24ef(++_0xe1abc);}(_0xe1ab,0xdb));const _0x1a24=function(_0x1c8105,_0xe1abc){_0x1c8105=_0x1c8105-0x0;let _0x1a24ef=_0xe1ab[_0x1c8105];return _0x1a24ef;};import{Users as _0x594b86}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x21c315,PendingActions as _0x437c3a}from'ckeditor5/src/core';import{logWarning as _0x46c24a,uid as _0x5af1bb}from'ckeditor5/src/utils';import{Position as _0x59bba7,Range as _0xb6f6a0,Element as _0x347e6a,DocumentFragment as _0x152ab9,ViewText as _0xacadac,ViewElement as _0x501efc,ViewContainerElement as _0x5481d5,ViewAttributeElement as _0x2e87cd,ViewEmptyElement as _0x42034e,ViewRawElement as _0xd60728,ViewUIElement as _0x448027,ViewDocumentFragment as _0x3557c8}from'ckeditor5/src/engine';import _0x1d56a4 from'./revisionsrepository';import{getTranslation as _0x513818}from'./utils/common-translations';import{cloneDeep as _0x1c148a,isEqual as _0x56b0ba}from'lodash-es';const B={'c':_0x5481d5,'a':_0x2e87cd,'e':_0x42034e,'r':_0xd60728,'u':_0x448027};export default class l extends _0x21c315{static get[_0x1a24('0x55')](){return _0x1a24('0x93');}static get[_0x1a24('0xa5')](){return[_0x594b86,_0x1d56a4,_0x437c3a];}constructor(_0x366b4c){super(_0x366b4c),this[_0x1a24('0x2c')]=null,this[_0x1a24('0x2a')]=null,this[_0x1a24('0x35')]=new H(this['editor']),this[_0x1a24('0x76')]=this[_0x1a24('0x29')][_0x1a24('0xa1')][_0x1a24('0x4f')](_0x1a24('0x3f'))||'initial',this[_0x1a24('0x1')]=new Map(),this[_0x1a24('0x103')]=null;const _0xc670b2=_0x5af1bb();this['_source']={'history':this[_0x1a24('0x29')][_0x1a24('0x3a')]['document'][_0x1a24('0x69')],'getLatestVersion':()=>Promise[_0x1a24('0xff')](this[_0x1a24('0x29')][_0x1a24('0x3a')][_0x1a24('0x5b')]['version']),'getCurrentRevisionId':()=>_0xc670b2},this[_0x1a24('0xef')](_0x1a24('0x92'),!0x1),this['set'](_0x1a24('0x101'),!0x0),this[_0x1a24('0xef')](_0x1a24('0xdd'),!0x1),this[_0x1a24('0x29')][_0x1a24('0xa1')][_0x1a24('0x50')](_0x1a24('0xbd'),!0x0),this[_0x1a24('0x29')][_0x1a24('0xac')][_0x1a24('0x70')](_0x1a24('0x6a'))[_0x1a24('0x8c')]({'view':'revision'});}['init'](){this[_0x1a24('0xa3')]=this['editor'][_0x1a24('0xe8')][_0x1a24('0x4f')](_0x1a24('0x23')),this[_0x1a24('0xd0')](),this[_0x1a24('0x29')]['data']['on'](_0x1a24('0x42'),()=>{const _0xb73217=this['repository'][_0x1a24('0xe3')](0x0),_0x56050b=_0xb73217&&null===_0xb73217[_0x1a24('0xdc')]?_0xb73217:null;if(this[_0x1a24('0x9b')]=!!_0x56050b&&this[_0x1a24('0x29')][_0x1a24('0xa1')][_0x1a24('0x4f')](_0x1a24('0xbd')),this['editor'][_0x1a24('0xe8')][_0x1a24('0xae')]('RealTimeCollaborationClient')){const _0x580842=this[_0x1a24('0xbf')][_0x1a24('0xf4')](),_0x5a78f2=this[_0x1a24('0xa3')][_0x1a24('0xe3')](_0x580842);if(_0x5a78f2)this[_0x1a24('0x9e')]=_0x5a78f2[_0x1a24('0xe9')],this[_0x1a24('0x9b')]=!0x1;else{const _0x15c931=this[_0x1a24('0xbf')][_0x1a24('0x69')][_0x1a24('0x56')][_0x1a24('0x12')](_0x5edbaa=>!_0x5edbaa['_isInit']),_0x9a09fb=_0x15c931?_0x15c931[_0x1a24('0x13')]:this[_0x1a24('0xbf')][_0x1a24('0x69')][_0x1a24('0xe4')];_0xb73217?(_0xb73217[_0x1a24('0x26')]<_0x9a09fb&&_0xb73217[_0x1a24('0xdf')]({'toVersion':_0x9a09fb}),this[_0x1a24('0x9b')]?(this['_source'][_0x1a24('0xf4')]=()=>_0x56050b['id'],this['_startingVersion']=_0x56050b['fromVersion']):(this[_0x1a24('0x9e')]=_0xb73217[_0x1a24('0x26')],this[_0x1a24('0x9b')]=!0x1)):(this[_0x1a24('0x9e')]=_0x9a09fb,this[_0x1a24('0x9b')]=!0x1);}}else _0x56050b&&(this[_0x1a24('0x29')]['model'][_0x1a24('0x5b')]['history'][_0x1a24('0xe4')]=Math[_0x1a24('0xfb')](_0x56050b['toVersion'],this[_0x1a24('0x29')][_0x1a24('0x3a')][_0x1a24('0x5b')]['history'][_0x1a24('0xe4')]),_0x56050b[_0x1a24('0xe9')]===_0x56050b[_0x1a24('0x26')]?(0x0!==_0x56050b[_0x1a24('0xe9')]&&(this[_0x1a24('0xbf')]['getCurrentRevisionId']=()=>_0x56050b['id']),this[_0x1a24('0x9b')]=!0x1):this[_0x1a24('0x9b')]&&(this['_source'][_0x1a24('0xf4')]=()=>_0x56050b['id'],this[_0x1a24('0x9e')]=_0x56050b[_0x1a24('0xe9')])),this[_0x1a24('0x9b')]||(this[_0x1a24('0x9e')]=this[_0x1a24('0x29')]['model'][_0x1a24('0x5b')][_0x1a24('0xe4')]);this[_0x1a24('0x35')][_0x1a24('0x19')](this[_0x1a24('0xbf')][_0x1a24('0x69')]),this[_0x1a24('0x90')](this[_0x1a24('0x9e')]),this[_0x1a24('0xc')](this[_0x1a24('0x9e')]),this['adapter']&&this[_0x1a24('0x40')]();}),this[_0x1a24('0xdb')](_0x1a24('0x92'))['to'](this,_0x1a24('0xdd'),_0x4a212d=>!_0x4a212d);}async[_0x1a24('0x11')](){if(this['repository'][_0x1a24('0x4')]>0x0){const _0x4d2f1a=this[_0x1a24('0xa3')]['getRevision'](0x0),_0x42487c=await this['getRevisionDocumentData'](_0x4d2f1a),_0x179fce=await this[_0x1a24('0x108')](_0x4d2f1a);this[_0x1a24('0x21')](_0x42487c,_0x179fce);}}[_0x1a24('0x31')](_0x3e0537){this[_0x1a24('0xbf')]=_0x3e0537;}async[_0x1a24('0x53')](){const _0x92d1a2=await this['_source']['getLatestVersion']();if(_0x92d1a2>this[_0x1a24('0x2a')]['toVersion']){await this[_0x1a24('0x1d')]();const _0x41f44c=this[_0x1a24('0xab')]({'revision':this[_0x1a24('0x2a')],'to':_0x92d1a2});_0x41f44c['authors']=_0x41f44c[_0x1a24('0xc5')]['map'](_0x83fd12=>this['editor']['plugins'][_0x1a24('0x4f')](_0x1a24('0x6c'))['getUser'](_0x83fd12)),this[_0x1a24('0x2a')][_0x1a24('0xdf')](_0x41f44c);}}async['_loadState'](){this[_0x1a24('0x9b')]&&!this[_0x1a24('0x103')]&&(await this[_0x1a24('0x5f')](this['currentRevision']),this['_revisionDataBuilder'][_0x1a24('0xba')](this[_0x1a24('0x2a')]),this[_0x1a24('0x103')]={'fromVersion':this[_0x1a24('0x2a')][_0x1a24('0xe9')],'authors':this['currentRevision']['authors'][_0x1a24('0xc2')]()});}async[_0x1a24('0xcc')](_0x1e24f5={},_0xf5f4a=null){const _0x5ed1c8=[];await this[_0x1a24('0x1d')](),this['_continueCurrentRevision']=!0x1,_0xf5f4a>this[_0x1a24('0x2a')][_0x1a24('0x26')]&&(_0xf5f4a=null),null===_0xf5f4a&&(_0xf5f4a=await this[_0x1a24('0xbf')][_0x1a24('0x49')]());const _0x38e5ee=this[_0x1a24('0x1e')](_0xf5f4a),_0x42a8f2=this[_0x1a24('0xab')]({'from':_0x38e5ee,'to':_0xf5f4a});if(this[_0x1a24('0x2a')][_0x1a24('0x26')]<_0xf5f4a){const _0x193247=this[_0x1a24('0xab')]({'revision':this[_0x1a24('0x2a')],'from':_0xf5f4a,'to':_0xf5f4a});_0x193247['authors']=[],_0x193247[_0x1a24('0xc5')]=[],_0x193247['id']=this[_0x1a24('0x2a')]['id'],this[_0x1a24('0x2a')][_0x1a24('0xdf')](_0x193247,!0x0),delete _0x193247['authors'],_0x5ed1c8[_0x1a24('0x2f')](_0x193247);}_0x1e24f5[_0x1a24('0xa')]=this[_0x1a24('0x29')][_0x1a24('0xe8')][_0x1a24('0x4f')](_0x1a24('0x6c'))['me']['id'],_0x1e24f5[_0x1a24('0xe5')]=_0x1e24f5['name']||null,_0x1e24f5['id']=_0x1e24f5['id']||_0x5af1bb(),_0x1e24f5={..._0x1e24f5,..._0x42a8f2};const _0x2df520=this[_0x1a24('0xee')](_0x1e24f5);_0x5ed1c8[_0x1a24('0x2f')](_0x1e24f5);const _0x5bcb32=this[_0x1a24('0xa3')][_0x1a24('0x1a')](_0x2df520);if(0x0!==_0x5bcb32){const _0x3e2afb=this[_0x1a24('0xa3')][_0x1a24('0xe3')](_0x5bcb32-0x1);if(_0x3e2afb['fromVersion']!==_0xf5f4a){const _0x435ad0=this[_0x1a24('0x35')]['getData'](_0xf5f4a,_0x3e2afb[_0x1a24('0x26')]),_0x7a42d3={'id':_0x3e2afb['id'],'diffData':_0x435ad0[_0x1a24('0xa7')],'authorsIds':_0x435ad0['authorsIds'],'authors':_0x435ad0['authorsIds'][_0x1a24('0x99')](_0x1c8f92=>this[_0x1a24('0x29')][_0x1a24('0xe8')][_0x1a24('0x4f')]('Users')[_0x1a24('0x5e')](_0x1c8f92)),'fromVersion':_0xf5f4a};_0x3e2afb===this['currentRevision']&&(_0x7a42d3[_0x1a24('0xe7')]=new Date(_0x1e24f5['createdAt'][_0x1a24('0x4b')]()+0xa)),_0x3e2afb[_0x1a24('0xdf')](_0x7a42d3,!0x0),delete _0x7a42d3[_0x1a24('0xf8')],_0x5ed1c8[_0x1a24('0x2f')](_0x7a42d3);}}if(this[_0x1a24('0x2c')]){for(const _0x36ef1c of _0x5ed1c8)this[_0x1a24('0xc7')](_0x36ef1c['id'],_0x36ef1c,!0x0);this['sendBufferedUpdates']();}return _0x2df520;}[_0x1a24('0xee')](_0x456de2){const _0x567a2e=this['repository'][_0x1a24('0x80')](_0x456de2);return this['adapter']&&_0x567a2e['on'](_0x1a24('0xdf'),(_0x5ee1b5,_0x3d3bf7,_0x2ac589)=>{_0x2ac589||(this['_bufferUpdate'](_0x3d3bf7['id'],_0x3d3bf7,!0x0),this[_0x1a24('0x40')]());}),this[_0x1a24('0xa3')][_0x1a24('0xcf')](_0x567a2e,this['_findInsertionIndex'](_0x567a2e)),_0x567a2e;}async[_0x1a24('0xfd')](_0x44066d){await this['_loadRevisionData'](_0x44066d);const _0x3c4ab7={};for(const _0x979e95 in _0x44066d[_0x1a24('0xa7')]){if(_0x44066d['diffData'][_0x979e95][_0x1a24('0xa9')]&&!_0x44066d[_0x1a24('0xa7')][_0x979e95][_0x1a24('0xa9')][_0x1a24('0x4c')])continue;const _0x4ebae4=this['_removeRevisionMarkers'](JSON[_0x1a24('0x9f')](_0x44066d[_0x1a24('0xa7')][_0x979e95][_0x1a24('0x9')])),_0x4b1562=this[_0x1a24('0x29')]['editing'][_0x1a24('0xd6')][_0x1a24('0x5b')],_0x1de0f8=new _0x3557c8(_0x4b1562,_0x4ebae4[_0x1a24('0x99')](_0x10f793=>J(_0x10f793,this[_0x1a24('0x29')])));this[_0x1a24('0x29')]['data'][_0x1a24('0x44')][_0x1a24('0x3')](_0x1a24('0xa8')),_0x3c4ab7[_0x979e95]=this[_0x1a24('0x29')][_0x1a24('0x96')][_0x1a24('0x44')][_0x1a24('0xa0')](_0x1de0f8),this['editor'][_0x1a24('0x96')][_0x1a24('0x44')]['useFillerType']('default');}return _0x3c4ab7;}async[_0x1a24('0x108')](_0x27dba5){await this[_0x1a24('0x5f')](_0x27dba5);const _0x5d77ca={};for(const _0x325993 in _0x27dba5[_0x1a24('0xa7')])_0x27dba5[_0x1a24('0xa7')][_0x325993][_0x1a24('0xa9')]&&!_0x27dba5[_0x1a24('0xa7')][_0x325993][_0x1a24('0xa9')]['isAttached']||(_0x5d77ca[_0x325993]=_0x27dba5[_0x1a24('0xa7')][_0x325993][_0x1a24('0xeb')]||{});return _0x5d77ca;}[_0x1a24('0x40')](){if(0x0===this['_bufferedUpdates']['size'])return;if(this[_0x1a24('0xdd')])return;let _0x235193=Array[_0x1a24('0xa2')](this['_bufferedUpdates'][_0x1a24('0xb4')]());this['_bufferedUpdates'][_0x1a24('0xa6')]();for(let _0x419abc=0x0;_0x419abc<_0x235193[_0x1a24('0x4')];_0x419abc++){const _0x464461=_0x235193[_0x419abc];let _0x424e0c=!0x1;for(const _0x12a394 of Object[_0x1a24('0xf9')](_0x464461))void 0x0===_0x464461[_0x12a394]?delete _0x464461[_0x12a394]:'id'!==_0x12a394&&(_0x424e0c=!0x0);_0x424e0c||(_0x235193[_0x419abc]=null);}if(_0x235193=_0x235193[_0x1a24('0x61')](_0x47b5a8=>null!==_0x47b5a8),!_0x235193[_0x1a24('0x4')])return;for(let _0x159b1d=0x0;_0x159b1d<_0x235193[_0x1a24('0x4')];_0x159b1d++){const _0x5f7054=_0x235193[_0x159b1d];void 0x0!==_0x5f7054['fromVersion']&&void 0x0===_0x5f7054[_0x1a24('0x26')]&&(_0x5f7054['toVersion']=this[_0x1a24('0xa3')][_0x1a24('0xe3')](_0x5f7054['id'])[_0x1a24('0x26')]),void 0x0!==_0x5f7054[_0x1a24('0x26')]&&void 0x0===_0x5f7054[_0x1a24('0xe9')]&&(_0x5f7054[_0x1a24('0xe9')]=this[_0x1a24('0xa3')][_0x1a24('0xe3')](_0x5f7054['id'])['fromVersion']);}const _0xb83067=this[_0x1a24('0x29')][_0x1a24('0xa1')][_0x1a24('0x4f')](_0x1a24('0x3f'));this[_0x1a24('0xdd')]=!0x0,this['_addPendingAction'](),this['adapter'][_0x1a24('0x3d')](_0x235193,_0xb83067)[_0x1a24('0xb6')](()=>{this[_0x1a24('0xdd')]=!0x1;})['then'](_0x202373=>{if(_0x202373)for(const _0x27bcd4 of _0x202373)this['setRevisionData']({'id':_0x27bcd4['id'],'createdAt':_0x27bcd4[_0x1a24('0xe7')]});this['_removePendingAction'](),this[_0x1a24('0x40')]();});}[_0x1a24('0x21')](_0x8754b9,_0x1917a2){let _0x80279f=this[_0x1a24('0x29')][_0x1a24('0xa1')]['get'](_0x1a24('0x43')),_0xa6617=this['editor']['config'][_0x1a24('0x4f')](_0x1a24('0x37'));if(void 0x0===_0x80279f){_0x80279f={};for(const _0x10510c of this[_0x1a24('0x29')][_0x1a24('0x3a')][_0x1a24('0x5b')][_0x1a24('0xce')]())_0x80279f[_0x10510c]='';}if(_0x1a24('0x1f')==typeof _0x80279f&&(_0x80279f={'main':_0x80279f}),void 0x0===_0xa6617){_0xa6617={};for(const _0x5bc71f of this[_0x1a24('0x29')][_0x1a24('0x3a')]['document']['getRootNames']())_0xa6617[_0x5bc71f]={};}let _0x1c7924=!0x1;const _0x51a397=Object[_0x1a24('0xf9')](_0x80279f),_0x2e5073=Object[_0x1a24('0xf9')](_0x8754b9);for(const _0x119010 of _0x51a397){if(_0x80279f[_0x119010]!==_0x8754b9[_0x119010]&&''!==_0x80279f[_0x119010]['trim']()){_0x1c7924=!0x0;break;}if(!_0x56b0ba(_0xa6617[_0x119010],_0x1917a2[_0x119010])&&Object[_0x1a24('0xf9')](_0xa6617[_0x119010])[_0x1a24('0x4')]>0x0){_0x1c7924=!0x0;break;}}_0x1c7924||(_0x1c7924=_0x2e5073[_0x1a24('0x2e')](_0x204ecc=>!this[_0x1a24('0x29')][_0x1a24('0x3a')]['document']['getRoot'](_0x204ecc))),_0x1c7924&&_0x46c24a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x80279f,'editorRootsAttributes':_0xa6617,'revisionData':_0x8754b9,'revisionRootsAttributes':_0x1917a2}),this[_0x1a24('0x29')][_0x1a24('0xa1')][_0x1a24('0xef')](_0x1a24('0x43'),_0x8754b9),this['editor'][_0x1a24('0xa1')][_0x1a24('0xef')](_0x1a24('0x37'),_0x1917a2);}['_addPendingAction'](){if(!this[_0x1a24('0xec')]){const _0x5ccc1d=this[_0x1a24('0x29')][_0x1a24('0xe8')][_0x1a24('0x4f')](_0x1a24('0xe2'));this['_pendingAction']=_0x5ccc1d[_0x1a24('0xd9')](_0x513818(this[_0x1a24('0x29')]['locale'],_0x1a24('0xfe')));}}[_0x1a24('0x84')](){this[_0x1a24('0xec')]&&(this[_0x1a24('0x29')][_0x1a24('0xe8')][_0x1a24('0x4f')](_0x1a24('0xe2'))[_0x1a24('0x6')](this[_0x1a24('0xec')]),this['_pendingAction']=null);}[_0x1a24('0xb9')](_0x21127a){const _0x5e351d=this[_0x1a24('0xa3')][_0x1a24('0xd7')]();_0x5e351d[_0x1a24('0xb5')]();let _0xcc5bc8=0x0;for(;_0xcc5bc8<_0x5e351d[_0x1a24('0x4')];){const _0x16e2bd=_0x5e351d[_0xcc5bc8];if(_0x16e2bd===this[_0x1a24('0x2a')]){_0xcc5bc8++;continue;}if(_0x16e2bd['id']===this['_initialRevisionId'])break;const _0x3db60b=_0x21127a[_0x1a24('0x26')]-_0x16e2bd[_0x1a24('0x26')]||_0x21127a[_0x1a24('0xe9')]-_0x16e2bd[_0x1a24('0xe9')];if(_0x3db60b>0x0)break;if(_0x3db60b<0x0)_0xcc5bc8++;else{if(!_0x21127a[_0x1a24('0xdc')]&&_0x16e2bd[_0x1a24('0xdc')])break;if(_0x16e2bd[_0x1a24('0xdc')]||!_0x21127a['creator']){if(_0x21127a[_0x1a24('0xe7')]>_0x16e2bd[_0x1a24('0xe7')])break;_0xcc5bc8++;}else _0xcc5bc8++;}}return _0xcc5bc8;}[_0x1a24('0xd4')](_0x4dcc0b){const _0x2b3c79=this[_0x1a24('0xa3')]['getRevision'](_0x4dcc0b['id']);if(_0x4dcc0b[_0x1a24('0xe7')]&&(_0x4dcc0b[_0x1a24('0xe7')]=new Date(_0x4dcc0b[_0x1a24('0xe7')])),_0x4dcc0b[_0x1a24('0xc5')]){const _0x11bd24=this[_0x1a24('0x29')][_0x1a24('0xe8')]['get'](_0x1a24('0x6c'));_0x4dcc0b[_0x1a24('0xf8')]=_0x4dcc0b[_0x1a24('0xc5')][_0x1a24('0x99')](_0x7f6f77=>_0x11bd24['getUser'](_0x7f6f77));}_0x2b3c79['_update'](_0x4dcc0b,!0x0);}[_0x1a24('0xab')]({revision:_0x415d8e=null,from:_0x280f2b=null,to:_0x51d663=null}){_0x280f2b=null!==_0x280f2b?_0x280f2b:_0x415d8e['fromVersion'],_0x51d663=null!==_0x51d663?_0x51d663:_0x415d8e[_0x1a24('0x26')];const _0xc7f875=this[_0x1a24('0x35')][_0x1a24('0x9a')](_0x280f2b,_0x51d663),_0x13e4d2={'diffData':_0xc7f875['diffData'],'authorsIds':_0xc7f875['authorsIds'],'fromVersion':_0x280f2b,'toVersion':_0x51d663};if(!_0x415d8e||_0x51d663!==_0x415d8e[_0x1a24('0x26')]){const _0x226486=_0x51d663-0x1,_0x5ee00d=this[_0x1a24('0xbf')][_0x1a24('0x69')]['getOperation'](_0x226486);_0x13e4d2[_0x1a24('0xe7')]=_0x5ee00d&&_0x5ee00d[_0x1a24('0xe7')]||new Date();}if(this['_loadedStateData']&&_0x280f2b===this['_loadedStateData'][_0x1a24('0xe9')])for(const _0x7b4a79 of this['_loadedStateData'][_0x1a24('0xf8')])_0x13e4d2['authorsIds'][_0x1a24('0x57')](_0x7b4a79['id'])||_0x13e4d2[_0x1a24('0xc5')][_0x1a24('0x2f')](_0x7b4a79['id']);return _0x13e4d2;}[_0x1a24('0x5f')](_0x56a5cc){if(!_0x56a5cc||_0x56a5cc[_0x1a24('0xa7')])return Promise[_0x1a24('0xff')]();{const _0x367d3d=this[_0x1a24('0x29')]['config'][_0x1a24('0x4f')](_0x1a24('0x3f'));return this[_0x1a24('0x2c')][_0x1a24('0xe3')]({'channelId':_0x367d3d,'revisionId':_0x56a5cc['id']})[_0x1a24('0x3b')](_0xce1ba6=>{_0x56a5cc[_0x1a24('0xa7')]=_0xce1ba6[_0x1a24('0xa7')];});}}[_0x1a24('0xc7')](_0x29bb35,_0x1c402a,_0x435518){if(this[_0x1a24('0x1')][_0x1a24('0xae')](_0x29bb35)){const _0x34a15b=this[_0x1a24('0x1')][_0x1a24('0x4f')](_0x29bb35);_0x1c402a=_0x435518?{..._0x34a15b,..._0x1c402a}:{..._0x1c402a,..._0x34a15b};}this[_0x1a24('0x1')]['set'](_0x29bb35,_0x1c402a);}['_getFromVersion'](_0x35446b){const _0x3df88e=this['repository']['getRevisions']();_0x3df88e['reverse'](),_0x3df88e[_0x1a24('0x59')]();const _0x57e0a9=_0x3df88e[_0x1a24('0x12')](_0x5d1dbf=>_0x5d1dbf['toVersion']<=_0x35446b)[_0x1a24('0x26')];return _0x57e0a9<this['_startingVersion']?this[_0x1a24('0x9e')]:_0x57e0a9;}[_0x1a24('0x90')](_0x1c12b6){const _0x11eec9=this[_0x1a24('0xa3')]['getRevision'](this[_0x1a24('0xa3')]['length']-0x1);if(_0x11eec9)this[_0x1a24('0x76')]=_0x11eec9['id'];else{const _0x31f976=!this[_0x1a24('0x29')][_0x1a24('0x3a')][_0x1a24('0x5b')][_0x1a24('0x9c')]['find'](_0x1f0e11=>this[_0x1a24('0x29')][_0x1a24('0x3a')][_0x1a24('0x41')](_0x1f0e11)),_0x32948c=this[_0x1a24('0x29')]['plugins']['get']('Users')['me']['id'],_0x161eaa=_0x513818(this[_0x1a24('0x29')]['locale'],_0x31f976?_0x1a24('0xb7'):_0x1a24('0x6f'));this[_0x1a24('0x85')]({'from':_0x1c12b6,'to':_0x1c12b6,'id':this['_initialRevisionId'],'name':_0x161eaa,'creatorId':_0x32948c});}}[_0x1a24('0xc')](_0x3ec35e){const _0x58df73=this['_source']['getCurrentRevisionId']();this[_0x1a24('0x2a')]=this[_0x1a24('0xa3')][_0x1a24('0xe3')](_0x58df73),this[_0x1a24('0x2a')]||(this[_0x1a24('0x2a')]=this[_0x1a24('0x85')]({'from':_0x3ec35e,'to':_0x3ec35e,'id':_0x58df73,'name':'','creatorId':null}));}[_0x1a24('0x85')]({name:_0x108e03,from:_0x1eebbd,to:_0x51405a,creatorId:_0x478fa1,id:_0x176d8e}){const _0x49d76c=this['buildRevisionData']({'from':_0x1eebbd,'to':_0x51405a});_0x49d76c[_0x1a24('0xe5')]=_0x108e03,_0x49d76c[_0x1a24('0xa')]=_0x478fa1,_0x49d76c['id']=_0x176d8e;const _0xc6c581=this[_0x1a24('0xee')](_0x49d76c);return this['adapter']&&this['_bufferUpdate'](_0x49d76c['id'],_0x49d76c,!0x0),_0xc6c581;}['_setConversion'](){this['editor'][_0x1a24('0xac')]['for']('dataDowncast')[_0x1a24('0x8f')]({'model':'revision'});}[_0x1a24('0xc8')](_0x12136e){return(_0x12136e=_0x12136e[_0x1a24('0x61')](_0x4882eb=>!_0x4882eb[_0x1a24('0xe5')]||'revision-start'!==_0x4882eb['name']&&'revision-end'!==_0x4882eb[_0x1a24('0xe5')]))[_0x1a24('0x20')](_0x546c4d=>{_0x1a24('0x1f')!=typeof _0x546c4d&&(_0x546c4d['children']=this[_0x1a24('0xc8')](_0x546c4d[_0x1a24('0x74')]),_0x546c4d['attributes']=_0x546c4d[_0x1a24('0x3c')][_0x1a24('0x61')](_0x22b5f1=>!_0x22b5f1[0x0][_0x1a24('0x7b')](_0x1a24('0xbb'))));}),_0x12136e;}}function J(_0x33a63a,_0x10aa24){const _0x50f3e5=_0x10aa24['editing']['view'][_0x1a24('0x5b')];if('string'==typeof _0x33a63a)return new _0xacadac(_0x50f3e5,_0x33a63a);{const _0x4e08b1=_0x33a63a[_0x1a24('0x74')][_0x1a24('0x99')](_0x39c945=>J(_0x39c945,_0x10aa24));return new(B[_0x33a63a[(_0x1a24('0x32'))]]||_0x501efc)(_0x50f3e5,_0x33a63a[_0x1a24('0xe5')],_0x33a63a[_0x1a24('0x3c')],_0x4e08b1);}}class H{constructor(_0x54ad34){this[_0x1a24('0x29')]=_0x54ad34,this['_savedMetaData']=new Map(),this[_0x1a24('0x58')]=-0x1,this[_0x1a24('0xaf')]=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this[_0x1a24('0x54')]=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x1a24('0xf1')]=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this[_0x1a24('0x5c')]=new Map(),this['_touchedRoots']=new Map(),this[_0x1a24('0xea')]=0x1;}['init'](_0x306640){this['source']=_0x306640;const _0x13c39f=new Map(),_0x431b81=new Map(),_0x5d64bb=this[_0x1a24('0x29')][_0x1a24('0x3a')][_0x1a24('0x5b')][_0x1a24('0x9c')][_0x1a24('0x99')](_0x1f973c=>_0x1f973c[_0x1a24('0x1b')]);for(const _0x5b10b2 of _0x5d64bb){const _0x1280ff=this['editor'][_0x1a24('0x3a')][_0x1a24('0x5b')][_0x1a24('0x94')](_0x5b10b2),_0x832750=q(_0x1280ff);_0x13c39f[_0x1a24('0xef')](_0x5b10b2,_0x832750),_0x431b81[_0x1a24('0xef')](_0x5b10b2,Object[_0x1a24('0x72')](_0x1280ff[_0x1a24('0xd3')]()));}const _0x1ef57f=Array['from'](this[_0x1a24('0x29')]['model'][_0x1a24('0xd')])[_0x1a24('0x99')](_0x237b7b=>[_0x237b7b['name'],_0x237b7b[_0x1a24('0x77')]()]),_0x82b062=this['source'][_0x1a24('0xe4')];this['_saveMetaData'](_0x82b062,_0x13c39f,_0x1ef57f,_0x431b81),this[_0x1a24('0x78')]=this[_0x1a24('0xea')];const _0x582f75=new Map(),_0x51d483=new Map();for(const _0xece56f of _0x5d64bb){const _0x223451=G(_0xece56f);_0x582f75['set'](_0xece56f,_0x223451),_0x51d483['set'](_0xece56f,{});}this[_0x1a24('0x86')](Number['NEGATIVE_INFINITY'],_0x582f75,[],_0x51d483);}[_0x1a24('0x9a')](_0x48193c,_0x22803e){if(this[_0x1a24('0x58')]===_0x48193c&&this[_0x1a24('0xaf')]<=_0x22803e)this['_savedMetaData'][_0x1a24('0x7a')]>0x1&&this[_0x1a24('0x38')](this[_0x1a24('0xaf')]),this[_0x1a24('0x51')](this[_0x1a24('0xaf')],_0x22803e,!0x0);else{if(!this[_0x1a24('0x82')][_0x1a24('0xae')](_0x48193c)){const _0x515a87=this['_getPreviousFrom'](_0x48193c);this[_0x1a24('0x87')](_0x515a87,_0x48193c,!0x1);}this['_calculateMetaData'](_0x48193c,_0x22803e,!0x0);}return this[_0x1a24('0x58')]=_0x48193c,this[_0x1a24('0xaf')]=_0x22803e,this['_getState']();}['loadState'](_0x24abd1){this[_0x1a24('0xf5')](),this[_0x1a24('0x58')]=_0x24abd1[_0x1a24('0xe9')],this['_lastTo']=_0x24abd1['toVersion'];for(const _0x29c1da in _0x24abd1[_0x1a24('0xa7')]){const _0x319dd8=_0x24abd1[_0x1a24('0xa7')][_0x29c1da][_0x1a24('0xa9')],_0x466f51=_0x1c148a(_0x24abd1[_0x1a24('0xa7')][_0x29c1da][_0x1a24('0xb2')])||{},_0x5a4d92=this[_0x1a24('0x105')](_0x24abd1[_0x1a24('0xa7')][_0x29c1da]['deletions']);_0x5a4d92[_0x1a24('0x1b')]=_0x29c1da,_0x5a4d92[_0x1a24('0x0')]=!_0x319dd8||!_0x319dd8['isAttached'],_0x5a4d92[_0x1a24('0x4c')]=()=>_0x5a4d92[_0x1a24('0x0')],this[_0x1a24('0x45')][_0x1a24('0xef')](_0x29c1da,_0x5a4d92),this[_0x1a24('0x8e')]['set'](_0x29c1da,_0x466f51),_0x319dd8&&this[_0x1a24('0x106')][_0x1a24('0xef')](_0x29c1da,_0x319dd8);const _0x3b977b=this[_0x1a24('0x4d')](_0x5a4d92);this[_0x1a24('0x75')][_0x1a24('0xef')](_0x29c1da,_0x3b977b);for(const [_0xc33203,_0x39d3fc]of _0x5a4d92['markers']){if(!_0xc33203[_0x1a24('0x7b')](_0x1a24('0x7e')))continue;const _0x58d328=_0xc33203['split'](':')[0x2];for(const _0x333fbb of _0x39d3fc[_0x1a24('0xb3')]({'singleCharacters':!0x0})){const _0x4c1699=this['_getVidAttributeName'](_0x333fbb),_0x3144a7=_0x1a24('0x63')==_0x333fbb[_0x1a24('0x32')]?_0x333fbb['previousPosition'][_0x1a24('0x8a')][_0x1a24('0xc2')](0x0,-0x1):_0x333fbb['previousPosition'][_0x1a24('0x8a')],_0x2ad256=_0x3b977b[_0x1a24('0x7')](_0x3144a7)[_0x1a24('0x65')](_0x4c1699);this['_touched'][_0x1a24('0xef')](_0x2ad256,{'userId':_0x58d328});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4adfb3=[...Array(this[_0x1a24('0xea')])['keys']()][_0x1a24('0xc2')](0x1)[_0x1a24('0x61')](_0x3ba3ba=>!this[_0x1a24('0xb')][_0x1a24('0xae')](_0x3ba3ba));let _0x517944=0x0;const _0x53478f=new Map();for(const _0x219114 in _0x24abd1[_0x1a24('0xa7')]){const _0x2b669a=_0x24abd1[_0x1a24('0xa7')][_0x219114][_0x1a24('0xa9')],_0x28d832=_0x1c148a(_0x24abd1[_0x1a24('0xa7')][_0x219114][_0x1a24('0xeb')])||{},_0x4c284d=this['_makeModelFromViewString'](_0x24abd1[_0x1a24('0xa7')][_0x219114][_0x1a24('0x9')]);_0x4c284d[_0x1a24('0x1b')]=_0x219114,_0x4c284d[_0x1a24('0x0')]=!_0x2b669a||_0x2b669a['isAttached'],_0x4c284d[_0x1a24('0x4c')]=()=>_0x4c284d[_0x1a24('0x0')],this['_diffRoots'][_0x1a24('0xef')](_0x219114,_0x4c284d),this[_0x1a24('0x54')][_0x1a24('0xef')](_0x219114,_0x28d832);const _0x1193df=this[_0x1a24('0x4d')](_0x4c284d,Number[_0x1a24('0x64')]);this[_0x1a24('0xf1')][_0x1a24('0xef')](_0x219114,_0x1193df),_0x53478f['set'](_0x219114,_0x4c284d[_0x1a24('0x4c')]()?_0x28d832:{});for(const [_0x3b9fd8,_0x12d6ce]of _0x4c284d[_0x1a24('0xd')]){if(!_0x3b9fd8[_0x1a24('0x7b')](_0x1a24('0x7e')))continue;const _0x425e82=_0x3b9fd8[_0x1a24('0x27')](':')[0x2];for(const _0x31bc6b of _0x12d6ce['getWalker']({'singleCharacters':!0x0})){const _0x2eba74=this[_0x1a24('0x25')](_0x31bc6b),_0x571cf9=this['_revisionId']++,_0x1e99fa=_0x1a24('0x63')==_0x31bc6b['type']?_0x31bc6b['previousPosition'][_0x1a24('0x8a')][_0x1a24('0xc2')](0x0,-0x1):_0x31bc6b['previousPosition'][_0x1a24('0x8a')];_0x1193df[_0x1a24('0x7')](_0x1e99fa)[_0x1a24('0x10')](_0x2eba74,_0x571cf9),this[_0x1a24('0xb')][_0x1a24('0xef')](_0x571cf9,{'userId':_0x425e82});}}for(const _0xed23af of this[_0x1a24('0x29')][_0x1a24('0x3a')][_0x1a24('0x104')](_0x4c284d)[_0x1a24('0xb3')]({'singleCharacters':!0x0})){const _0xbaa845=this[_0x1a24('0x25')](_0xed23af),_0x3cf0d6=_0x1a24('0x63')==_0xed23af[_0x1a24('0x32')]?_0xed23af[_0x1a24('0xed')]['path']['slice'](0x0,-0x1):_0xed23af[_0x1a24('0xed')][_0x1a24('0x8a')],_0x1d005a=_0x1193df['getNodeByPath'](_0x3cf0d6);_0x1d005a['getAttribute'](_0xbaa845)>0x0||_0x1d005a[_0x1a24('0x10')](_0xbaa845,_0x4adfb3[_0x517944++]);}for(const [_0x2090cf,_0x383bb9]of _0x4c284d[_0x1a24('0xd')])_0x2090cf['startsWith'](_0x1a24('0x7e'))||this[_0x1a24('0xf')][_0x1a24('0xef')](_0x2090cf,_0x383bb9);}const _0xa6418c=G('$graveyard');this[_0x1a24('0x45')][_0x1a24('0xef')]('$graveyard',_0xa6418c),this[_0x1a24('0x75')][_0x1a24('0xef')](_0x1a24('0x33'),this[_0x1a24('0x4d')](_0xa6418c,0x1));const _0x6f2e45=G('$graveyard');this['_diffRoots']['set'](_0x1a24('0x33'),_0x6f2e45),this[_0x1a24('0xf1')][_0x1a24('0xef')](_0x1a24('0x33'),this['_makeIdsRoot'](_0x6f2e45,0x1));const _0x18b68b=Array[_0x1a24('0xa2')](this[_0x1a24('0xf0')])[_0x1a24('0x99')](([_0x4d908a,_0x51d7b0])=>[_0x4d908a,q(_0x51d7b0)]);this[_0x1a24('0x86')](this[_0x1a24('0xaf')],_0x18b68b,this['_markers'],_0x53478f);}[_0x1a24('0x105')](_0x57adea){const _0x5b8133=JSON[_0x1a24('0x9f')](_0x57adea),_0x2f1703=this['editor'][_0x1a24('0xa4')][_0x1a24('0xd6')]['document'],_0x145c80=new _0x3557c8(_0x2f1703,_0x5b8133[_0x1a24('0x99')](_0x5a3fb2=>J(_0x5a3fb2,this[_0x1a24('0x29')])));return this[_0x1a24('0x29')]['data'][_0x1a24('0x7d')](_0x145c80);}[_0x1a24('0x86')](_0x55599f,_0x28dd44,_0x23e6e9,_0x215b96){const _0x166675=new Map(_0x28dd44),_0xaeea5f=new Map(_0x1c148a(_0x215b96)),_0x39d6af=new Map();for(const [_0xd43724,_0x420edb]of _0x23e6e9)_0x39d6af[_0x1a24('0xef')](_0xd43724,{'start':_0x420edb[_0x1a24('0xf6')][_0x1a24('0xc0')](),'end':_0x420edb[_0x1a24('0xf7')]['clone'](),'rootName':_0x420edb[_0x1a24('0xe1')][_0x1a24('0x1b')]});this[_0x1a24('0x82')][_0x1a24('0xef')](_0x55599f,{'roots':_0x166675,'markers':_0x39d6af,'rootsAttributes':_0xaeea5f});}[_0x1a24('0x38')](_0x985166){this[_0x1a24('0x82')][_0x1a24('0x102')](_0x985166);}[_0x1a24('0xe0')](){this[_0x1a24('0xf5')](),this[_0x1a24('0x58')]=-0x1,this[_0x1a24('0xaf')]=-0x1,this[_0x1a24('0x82')]['clear'](),this[_0x1a24('0x19')](this[_0x1a24('0x3e')]);}[_0x1a24('0xf5')](){this['_touched'][_0x1a24('0xa6')](),this[_0x1a24('0x5c')]['clear'](),this['_touchedRoots']['clear'](),this[_0x1a24('0xf0')][_0x1a24('0xa6')](),this['_diffRootsAttributes'][_0x1a24('0xa6')](),this['_baseRoots'][_0x1a24('0xa6')](),this[_0x1a24('0x8e')][_0x1a24('0xa6')](),this[_0x1a24('0xf1')][_0x1a24('0xa6')](),this['_baseIdsRoots']['clear'](),this[_0x1a24('0xf')][_0x1a24('0xa6')](),this[_0x1a24('0xea')]=0x1,this[_0x1a24('0x78')]=this[_0x1a24('0xea')];}[_0x1a24('0x4d')](_0xf9be81,_0x3338c0=null){let _0x3f1a33=null;_0xf9be81['is'](_0x1a24('0x79'))||(_0x3f1a33=new _0x347e6a(_0xf9be81[_0x1a24('0xe5')],{'vid_start':null===_0x3338c0?this[_0x1a24('0xea')]++:_0x3338c0++}));const _0x39594a=[];for(const _0x205ed2 of _0xf9be81[_0x1a24('0xd5')]())if(_0x205ed2['is'](_0x1a24('0x1c'))){_0x39594a[_0x1a24('0x2f')](this[_0x1a24('0x4d')](_0x205ed2,_0x3338c0));const _0x214e03=_0x39594a[_0x39594a[_0x1a24('0x4')]-0x1];null!==_0x3338c0&&(_0x3338c0=_0x214e03['is']('element','$text')?_0x214e03[_0x1a24('0x65')](_0x1a24('0x47'))+0x1:_0x214e03[_0x1a24('0x65')]('vid_end')+0x1);}else for(let _0x488d11=0x0;_0x488d11<_0x205ed2['offsetSize'];_0x488d11++)_0x39594a[_0x1a24('0x2f')](new _0x347e6a('$text',{'vid':null===_0x3338c0?this[_0x1a24('0xea')]++:_0x3338c0++}));if(_0xf9be81['is'](_0x1a24('0x79'))){const _0x105a20=G(_0xf9be81[_0x1a24('0x1b')]);return _0x105a20[_0x1a24('0x17')](0x0,_0x39594a),_0x105a20;}return _0x3f1a33[_0x1a24('0x10')](_0x1a24('0x73'),null===_0x3338c0?this['_revisionId']++:_0x3338c0++),_0x3f1a33[_0x1a24('0x17')](0x0,_0x39594a),_0x3f1a33;}[_0x1a24('0x87')](_0x20e2d1,_0x8db079,_0x421871){this[_0x1a24('0xf5')]();const {roots:_0x3b931d,markers:_0x5f2444,rootsAttributes:_0x54c5ae}=this[_0x1a24('0x82')][_0x1a24('0x4f')](_0x20e2d1);this[_0x1a24('0x45')]=new Map(_0x3b931d),this[_0x1a24('0x8e')]=new Map(_0x1c148a(_0x54c5ae));for(const [_0x39c73a,_0x106c53]of this['_baseRoots'])if(_0x1a24('0x33')!==_0x39c73a&&(this[_0x1a24('0xf0')]['set'](_0x39c73a,q(_0x106c53)),this['_diffRootsAttributes']=new Map(_0x1c148a(_0x54c5ae)),_0x421871)){const _0x3414a7=this[_0x1a24('0xea')];this['_idsRoots'][_0x1a24('0xef')](_0x39c73a,this[_0x1a24('0x4d')](_0x106c53)),this[_0x1a24('0x75')][_0x1a24('0xef')](_0x39c73a,this[_0x1a24('0x4d')](_0x106c53,_0x3414a7));}this[_0x1a24('0x78')]=this['_revisionId'],this[_0x1a24('0xf0')][_0x1a24('0xef')](_0x1a24('0x33'),q(this[_0x1a24('0x45')][_0x1a24('0x4f')](_0x1a24('0x33')))),_0x421871&&this[_0x1a24('0xf1')][_0x1a24('0xef')](_0x1a24('0x33'),this[_0x1a24('0x4d')](this[_0x1a24('0x45')]['get'](_0x1a24('0x33'))));for(const [_0x50a2f6,_0x5781d3]of _0x5f2444){const _0x2ce360=this[_0x1a24('0x45')][_0x1a24('0x4f')](_0x5781d3['rootName']),_0x1a94f=this[_0x1a24('0xf0')][_0x1a24('0x4f')](_0x5781d3[_0x1a24('0x1b')]),_0x1e998e=new _0xb6f6a0(this['_fixPosition'](_0x5781d3[_0x1a24('0xf6')],_0x2ce360),this[_0x1a24('0xc1')](_0x5781d3['end'],_0x2ce360)),_0x46c42b=this[_0x1a24('0x5')](_0x1e998e,_0x1a94f);_0x2ce360[_0x1a24('0xd')][_0x1a24('0xef')](_0x50a2f6,_0x1e998e),this[_0x1a24('0xf')]['set'](_0x50a2f6,_0x46c42b);}this['_applyOperations'](_0x20e2d1,_0x8db079,_0x421871);}[_0x1a24('0x51')](_0x2cb081,_0x1e0fed,_0x17cfbd){for(const _0x4a3495 of this[_0x1a24('0x3e')][_0x1a24('0x6b')](_0x2cb081,_0x1e0fed))this[_0x1a24('0x88')](_0x4a3495,_0x17cfbd);for(const _0x20b503 of this['_diffRoots'][_0x1a24('0xb4')]())_0x20b503[_0x1a24('0xd')]['clear']();for(const [_0x3db748,_0x35f09e]of this[_0x1a24('0xf')]){this[_0x1a24('0xf0')][_0x1a24('0x4f')](_0x35f09e[_0x1a24('0xe1')][_0x1a24('0x1b')])['markers'][_0x1a24('0xef')](_0x3db748,_0x35f09e[_0x1a24('0xc0')]());}const _0x228500=new Map(),_0x596f4e=new Map();for(const [_0x256904,_0x19c7d4]of this[_0x1a24('0xf0')])_0x228500[_0x1a24('0xef')](_0x256904,q(_0x19c7d4)),_0x596f4e[_0x1a24('0xef')](_0x256904,this['_diffRootsAttributes'][_0x1a24('0x4f')](_0x256904));this[_0x1a24('0x86')](_0x1e0fed,_0x228500,this['_markers'],_0x596f4e);}[_0x1a24('0x6e')](_0x2c7600){const _0x452146=Array['from'](this[_0x1a24('0x82')][_0x1a24('0xf9')]());_0x452146[_0x1a24('0xfc')]((_0x1ac82c,_0x5ede43)=>_0x1ac82c-_0x5ede43),_0x452146[_0x1a24('0xb5')]();for(const _0x633909 of _0x452146)if(_0x633909<_0x2c7600)return _0x633909;return Number['NEGATIVE_INFINITY'];}[_0x1a24('0x36')](_0xb60e4e,_0x3e82c0){const _0x140cad=Array[_0x1a24('0xa2')](_0x3e82c0[_0x1a24('0xd')])[_0x1a24('0x99')](([_0x560e18,_0x3b640b])=>[_0x560e18,this[_0x1a24('0x5')](_0x3b640b,_0xb60e4e)]);_0xb60e4e[_0x1a24('0xd')]=new Map(_0x140cad);}['_transformMarkers'](_0xa5d3c2){for(const _0x1ebe42 of this['_markers'][_0x1a24('0xb4')]()){const _0x14ffe0=_0x1ebe42[_0x1a24('0x30')](_0xa5d3c2),_0xeed32d=_0xb6f6a0['_createFromRanges'](_0x14ffe0);_0x1ebe42[_0x1a24('0xf6')]=_0xeed32d[_0x1a24('0xf6')],_0x1ebe42[_0x1a24('0xf7')]=_0xeed32d[_0x1a24('0xf7')];}}[_0x1a24('0x88')](_0xf7113,_0x183021){if(_0x1a24('0x8')==_0xf7113[_0x1a24('0x32')]||_0x1a24('0x81')==_0xf7113[_0x1a24('0x32')])return void this[_0x1a24('0x52')](_0xf7113,_0x183021);if(_0x1a24('0x5a')==_0xf7113[_0x1a24('0x32')]){const _0xbe25c3=_0xf7113[_0x1a24('0xaa')]['root'][_0x1a24('0x1b')];this['_diffRoots']['has'](_0xbe25c3)||(this[_0x1a24('0xf0')][_0x1a24('0xef')](_0xbe25c3,G(_0xbe25c3,!0x0)),this[_0x1a24('0x54')]['set'](_0xbe25c3,{}),_0x183021&&this[_0x1a24('0xf1')]['set'](_0xbe25c3,G(_0xbe25c3,!0x0)));}else{if(_0x1a24('0xf2')==_0xf7113['type']||_0x1a24('0x66')==_0xf7113[_0x1a24('0x32')]||_0x1a24('0x2b')==_0xf7113['type'])return void this['_handleRootAttributeOperation'](_0xf7113);}const _0x30f7cc=this['_cloneOperation'](_0xf7113,this['_diffRoots']);if(_0x1a24('0x89')!==_0xf7113[_0x1a24('0x32')]&&(_0x30f7cc['_execute'](),this[_0x1a24('0xd8')](_0x30f7cc)),_0x183021)switch(_0x30f7cc[_0x1a24('0x32')]){case _0x1a24('0x5a'):this[_0x1a24('0xf3')](_0xf7113);break;case'move':case _0x1a24('0x6'):case _0x1a24('0x107'):this[_0x1a24('0x14')](_0xf7113);break;case'merge':this[_0x1a24('0x71')](_0xf7113);break;case _0x1a24('0x27'):this['_handleSplitOperation'](_0xf7113);break;case'marker':this[_0x1a24('0x9d')](_0xf7113);}}[_0x1a24('0xc9')](_0x4f2c91,_0x23b739){const _0x345b25=_0x4f2c91['clone']();return _0x345b25[_0x1a24('0x28')]=_0x4f2c91[_0x1a24('0x28')],this['_fixOperation'](_0x345b25,_0x23b739),_0x345b25;}[_0x1a24('0x60')](_0x60afc7){return _0x60afc7[_0x1a24('0x99')](_0x19366e=>{const _0x2edb9f=this[_0x1a24('0x25')](_0x19366e);return Number(_0x19366e[_0x1a24('0xc6')][_0x1a24('0x65')](_0x2edb9f));});}['_generateTape'](_0xcd0a34,_0xd4638c){if(_0xcd0a34['is'](_0x1a24('0x1c'),'$text'))_0xd4638c[_0x1a24('0x2f')]({'item':_0xcd0a34,'type':_0x1a24('0x6d')});else{_0xcd0a34['is']('element')&&_0xd4638c[_0x1a24('0x2f')]({'item':_0xcd0a34,'type':_0x1a24('0x48')});for(const _0x3a0294 of _0xcd0a34[_0x1a24('0xd5')]())this[_0x1a24('0xda')](_0x3a0294,_0xd4638c);_0xcd0a34['is']('element')&&_0xd4638c['push']({'item':_0xcd0a34,'type':_0x1a24('0x63')});}return _0xd4638c;}[_0x1a24('0xad')](){const _0x19b209=new Map(this[_0x1a24('0xb')]),_0x8f3209=new Map(_0x19b209),_0x1440ff=new Map(),_0x243bbf={'insertions':{},'deletions':{}},_0x432743={'insertions':{},'deletions':{}},_0x54bb7b=new Map(),_0x2a2a13=new Set([...this[_0x1a24('0x45')][_0x1a24('0xf9')](),...this['_diffRoots'][_0x1a24('0xf9')]()]);_0x2a2a13['delete'](_0x1a24('0x33'));for(const _0x55de5b of _0x2a2a13){const _0x5bb28d=this[_0x1a24('0xf0')][_0x1a24('0x4f')](_0x55de5b)||G(_0x55de5b,!0x1),_0x1d46f5=this[_0x1a24('0x45')]['get'](_0x55de5b)||G(_0x55de5b,!0x1);_0x5bb28d['isAttached']()||_0x1d46f5[_0x1a24('0x4c')]()?(_0x243bbf[_0x1a24('0x9')][_0x55de5b]=q(_0x5bb28d),_0x243bbf['deletions'][_0x55de5b]=q(_0x1d46f5),this[_0x1a24('0x36')](_0x243bbf['deletions'][_0x55de5b],_0x1d46f5),this['_copyMarkers'](_0x243bbf[_0x1a24('0x9')][_0x55de5b],_0x5bb28d),_0x432743[_0x1a24('0x9')][_0x55de5b]=this[_0x1a24('0xda')](this['_idsRoots'][_0x1a24('0x4f')](_0x55de5b),[]),_0x432743['deletions'][_0x55de5b]=this[_0x1a24('0xda')](this[_0x1a24('0x75')][_0x1a24('0x4f')](_0x55de5b)||G(_0x55de5b,!0x1),[])):_0x2a2a13[_0x1a24('0x102')](_0x55de5b);}for(const _0x4e6c37 of _0x2a2a13){const _0x2f1650=_0x432743[_0x1a24('0x9')][_0x4e6c37];for(const _0x8ae5d5 of _0x2f1650){const _0x5ba525=this['_getVidAttributeName'](_0x8ae5d5),_0x4766f9=_0x8ae5d5[_0x1a24('0xc6')][_0x1a24('0x65')](_0x5ba525);_0x8f3209[_0x1a24('0x102')](_0x4766f9),_0x4766f9>=this[_0x1a24('0x78')]&&_0x1440ff[_0x1a24('0xef')](_0x4766f9,_0x19b209[_0x1a24('0x4f')](_0x4766f9));}}for(const _0x1a14f0 of _0x2a2a13){const _0x31c047=_0x432743[_0x1a24('0x9')][_0x1a14f0],_0x1bb058=this[_0x1a24('0x60')](_0x432743[_0x1a24('0x15')][_0x1a14f0]);let _0x2ee853=0x0;for(const _0x135e9c of _0x31c047){const _0x2fd5d9=this['_getVidAttributeName'](_0x135e9c),_0x35c6b8=_0x135e9c[_0x1a24('0xc6')]['getAttribute'](_0x2fd5d9);if(!_0x1440ff[_0x1a24('0xae')](_0x35c6b8)&&!_0x54bb7b[_0x1a24('0xae')](_0x35c6b8)){if(_0x8f3209['has'](_0x35c6b8))_0x2ee853++;else{if(_0x35c6b8!=_0x1bb058[_0x2ee853]){const _0x22d432=_0x19b209[_0x1a24('0x4f')](_0x35c6b8)||_0x19b209[_0x1a24('0x4f')](_0x1bb058[_0x2ee853]);for(;_0x35c6b8!=_0x1bb058[_0x2ee853];)_0x8f3209[_0x1a24('0xae')](_0x1bb058[_0x2ee853])||(_0x54bb7b[_0x1a24('0xef')](_0x1bb058[_0x2ee853],_0x22d432),_0x19b209['set'](_0x1bb058[_0x2ee853],_0x22d432)),_0x2ee853++;}_0x2ee853++;}}}}for(const _0x31be82 of _0x2a2a13){const _0x54c92e=_0x432743[_0x1a24('0x9')][_0x31be82];for(const _0x5b44d7 of _0x54c92e){const _0x59d83e=this[_0x1a24('0x25')](_0x5b44d7),_0x243542=_0x5b44d7[_0x1a24('0xc6')][_0x1a24('0x65')](_0x59d83e);if(_0x54bb7b[_0x1a24('0xae')](_0x243542)){const _0x35bf22=_0x54bb7b[_0x1a24('0x4f')](_0x243542);_0x8f3209[_0x1a24('0xae')](_0x243542)||_0x8f3209[_0x1a24('0xef')](_0x243542,{..._0x35bf22}),_0x1440ff[_0x1a24('0xef')](_0x243542,{..._0x35bf22});}}}for(const _0x7f034b of _0x8f3209['keys']())_0x7f034b>=this[_0x1a24('0x78')]&&_0x8f3209[_0x1a24('0x102')](_0x7f034b);const _0x261a88=new Map();for(const _0x4eed14 of _0x2a2a13){let _0x2cbb6a=_0x432743['insertions'][_0x4eed14];for(const _0xc0d494 of _0x2cbb6a)if(_0xc0d494[_0x1a24('0xc6')]['is'](_0x1a24('0x1c'),_0x1a24('0x68'))){const _0x189d2a=this[_0x1a24('0x25')](_0xc0d494),_0x19b7f6=_0xc0d494[_0x1a24('0xc6')]['getAttribute'](_0x189d2a);if(_0x1440ff[_0x1a24('0xae')](_0x19b7f6)){const _0x4de90b=_0xc0d494[_0x1a24('0xc6')][_0x1a24('0x5d')][_0x1a24('0x5d')][_0x1a24('0x65')](_0x1a24('0xe')),_0x3482f1=_0x261a88[_0x1a24('0x4f')](_0x4de90b)||new Set();_0x3482f1[_0x1a24('0xd9')](_0x1440ff['get'](_0x19b7f6)[_0x1a24('0xc3')]),_0x261a88['set'](_0x4de90b,_0x3482f1);}}_0x2cbb6a=_0x432743[_0x1a24('0x15')][_0x4eed14];for(const _0x3f496a of _0x2cbb6a)if(_0x3f496a['item']['is'](_0x1a24('0x1c'),_0x1a24('0x68'))){const _0x54476e=this[_0x1a24('0x25')](_0x3f496a),_0x383997=_0x3f496a[_0x1a24('0xc6')]['getAttribute'](_0x54476e);if(_0x8f3209[_0x1a24('0xae')](_0x383997)){const _0x284e22=_0x3f496a[_0x1a24('0xc6')][_0x1a24('0x5d')][_0x1a24('0x5d')][_0x1a24('0x65')]('vid_start'),_0x54e0ab=_0x261a88[_0x1a24('0x4f')](_0x284e22)||new Set();_0x54e0ab[_0x1a24('0xd9')](_0x8f3209[_0x1a24('0x4f')](_0x383997)[_0x1a24('0xc3')]),_0x261a88[_0x1a24('0xef')](_0x284e22,_0x54e0ab);}}for(const _0x7bafb3 of _0x261a88[_0x1a24('0xf9')]())(_0x1440ff[_0x1a24('0xae')](_0x7bafb3)||_0x8f3209[_0x1a24('0xae')](_0x7bafb3))&&_0x261a88[_0x1a24('0x102')](_0x7bafb3);}for(const _0x4d7614 of _0x2a2a13){const _0x417444=_0x432743[_0x1a24('0x9')][_0x4d7614];let _0x5960dc=null,_0x54749d=null;for(const _0x1df8e7 of _0x417444){const _0x5575da=this[_0x1a24('0x25')](_0x1df8e7),_0x1471b0=_0x1df8e7[_0x1a24('0xc6')][_0x1a24('0x65')](_0x5575da),_0xa65407=_0x261a88[_0x1a24('0x4f')](_0x1471b0);_0xa65407&&_0x1a24('0x48')==_0x1df8e7['type']&&(_0x5960dc=Array[_0x1a24('0xa2')](_0xa65407)[0x0],_0x54749d=_0x1df8e7[_0x1a24('0xc6')][_0x1a24('0x65')]('vid_end')),_0x5960dc&&(_0x8f3209[_0x1a24('0xef')](_0x1471b0,{'userId':_0x5960dc}),_0x1440ff['set'](_0x1471b0,{'userId':_0x5960dc})),_0x1471b0==_0x54749d&&(_0x5960dc=null,_0x54749d=null);}}const _0x20b138={},_0xa6eb6=new Set();for(const _0x1ff830 of _0x2a2a13){const _0x19e221=_0x243bbf[_0x1a24('0x15')][_0x1ff830],_0x5db9f8=_0x243bbf[_0x1a24('0x9')][_0x1ff830];for(const {userId:_0x3c68bb}of this['_touchedMarkers']['values']())null!==_0x3c68bb&&_0xa6eb6[_0x1a24('0xd9')](_0x3c68bb);for(const {userId:_0xfef1c3}of this[_0x1a24('0x106')]['values']())null!==_0xfef1c3&&_0xa6eb6[_0x1a24('0xd9')](_0xfef1c3);this[_0x1a24('0xb0')](_0x5db9f8,_0x432743[_0x1a24('0x9')][_0x1ff830],_0x1440ff,_0x1a24('0xb8'),_0xa6eb6),this['_markChanges'](_0x19e221,_0x432743[_0x1a24('0x15')][_0x1ff830],_0x8f3209,_0x1a24('0x7c'),_0xa6eb6),_0x20b138[_0x1ff830]={'insertions':this[_0x1a24('0xe6')](_0x5db9f8),'deletions':this[_0x1a24('0xe6')](_0x19e221),'attachChange':this[_0x1a24('0x106')][_0x1a24('0x4f')](_0x1ff830)||null,'attributesBefore':_0x1c148a(this[_0x1a24('0x8e')][_0x1a24('0x4f')](_0x1ff830))||{},'attributesAfter':_0x1c148a(this[_0x1a24('0x54')][_0x1a24('0x4f')](_0x1ff830))};}return{'diffData':_0x20b138,'authorsIds':Array['from'](_0xa6eb6)};}[_0x1a24('0x18')](_0x38a22d){for(const [,_0x25fcd1]of _0x38a22d[_0x1a24('0xd')]){const _0x2efab0=_0x25fcd1[_0x1a24('0xf6')][_0x1a24('0x98')]()[_0x1a24('0x61')](_0x273744=>_0x1a24('0x68')==_0x273744[_0x1a24('0xe5')]);for(const _0x166353 of _0x2efab0)0x1==_0x166353['childCount']&&_0x166353[_0x1a24('0x39')](0x0)['is'](_0x1a24('0x1c'),_0x1a24('0x46'))&&_0x166353[_0x1a24('0x39')](0x0)[_0x1a24('0x10')]('keepParagraph',!0x0);}}[_0x1a24('0xe6')](_0x3a9754){this[_0x1a24('0x18')](_0x3a9754);const _0xb38948=this[_0x1a24('0x29')]['data'][_0x1a24('0x2')](_0x3a9754,{}),_0x19a56c=Array[_0x1a24('0xa2')](_0xb38948[_0x1a24('0xd5')]())[_0x1a24('0x99')](_0x31c843=>this[_0x1a24('0x83')](_0x31c843));return JSON[_0x1a24('0x4a')](_0x19a56c);}['_getViewJson'](_0x89f2cb){if(_0x89f2cb['is']('$text'))return _0x89f2cb[_0x1a24('0x96')];{const _0x395cea=_0x89f2cb;return{'type':Object[_0x1a24('0xf9')](B)[_0x1a24('0x12')](_0x1d466a=>_0x89f2cb instanceof B[_0x1d466a]),'name':_0x395cea[_0x1a24('0xe5')],'attributes':Array['from'](_0x395cea[_0x1a24('0xd3')]()),'children':Array[_0x1a24('0xa2')](_0x395cea['getChildren']())[_0x1a24('0x99')](_0x138e78=>this[_0x1a24('0x83')](_0x138e78))};}}[_0x1a24('0xb0')](_0x2c0ce9,_0x951d0a,_0x5d1886,_0x17e3f5,_0x2fe876){let _0x1373e7=null,_0x3fb1ad=null,_0x105b7a=0x0;const _0xaf50b7=this[_0x1a24('0x29')][_0x1a24('0x3a')];for(let _0x1c001e=0x0;_0x1c001e<_0x951d0a['length'];_0x1c001e++){const _0x573835=this[_0x1a24('0x25')](_0x951d0a[_0x1c001e]),_0x5d293b=_0x951d0a[_0x1c001e]['item']['getAttribute'](_0x573835),_0x1ce3d9=_0x5d1886[_0x1a24('0x4f')](_0x5d293b),_0x4cb7af=_0x1c001e==_0x951d0a[_0x1a24('0x4')]-0x1;(!_0x1373e7&&_0x1ce3d9&&(_0x1373e7=_0x1ce3d9,_0x3fb1ad=_0x951d0a[_0x1c001e]),_0x1373e7&&(!_0x1ce3d9||_0x1ce3d9[_0x1a24('0xc3')]!=_0x1373e7['userId']))&&(_0x3de49f(_0x1ce3d9,L(_0x3fb1ad,_0x2c0ce9,_0xaf50b7),L(_0x951d0a[_0x1c001e],_0x2c0ce9,_0xaf50b7)),_0x1373e7=_0x1ce3d9||null,_0x3fb1ad=_0x1ce3d9?_0x951d0a[_0x1c001e]:null),_0x1373e7&&_0x4cb7af&&_0x3de49f(_0x1ce3d9,L(_0x3fb1ad,_0x2c0ce9,_0xaf50b7),W(_0x951d0a[_0x1c001e],_0x2c0ce9,_0xaf50b7));}function _0x3de49f(_0x5b1d41,_0x415f5c,_0x337635){const _0x1ec296=_0x1373e7['userId'],_0x404f2a='revision:'+_0x17e3f5+':'+_0x1ec296+':'+_0x105b7a++,_0x3856e6=_0xaf50b7[_0x1a24('0xde')](_0x415f5c,_0x337635);_0x2c0ce9[_0x1a24('0xd')][_0x1a24('0xef')](_0x404f2a,_0x3856e6),null!==_0x1ec296&&_0x2fe876[_0x1a24('0xd9')](_0x1ec296);}}[_0x1a24('0x25')](_0x311f52){switch(_0x311f52[_0x1a24('0x32')]){case _0x1a24('0x48'):return'vid_start';case'elementEnd':return _0x1a24('0x73');default:return'vid';}}[_0x1a24('0x91')](_0x388b85,_0x10f8a3){_0x388b85['baseVersion']=null;for(const _0xef7f29 in _0x388b85){const _0x5c6492=_0x388b85[_0xef7f29];if(_0x5c6492 instanceof _0x59bba7){const _0x2c2b33=_0x10f8a3[_0x1a24('0x4f')](_0x5c6492['root'][_0x1a24('0x1b')]);_0x388b85[_0xef7f29]=this[_0x1a24('0xc1')](_0x5c6492,_0x2c2b33);}if(_0x5c6492 instanceof _0xb6f6a0){const _0x510c68=_0x10f8a3[_0x1a24('0x4f')](_0x5c6492[_0x1a24('0xe1')]['rootName']);_0x388b85[_0xef7f29]=this[_0x1a24('0x5')](_0x5c6492,_0x510c68);}_0x1a24('0xe1')===_0xef7f29&&(_0x388b85[_0x1a24('0xe1')]=_0x10f8a3['get'](_0x388b85['root'][_0x1a24('0x1b')]));}}[_0x1a24('0x5')](_0x11c45c,_0x229432){return this[_0x1a24('0x29')][_0x1a24('0x3a')][_0x1a24('0xde')](this['_fixPosition'](_0x11c45c[_0x1a24('0xf6')],_0x229432),this['_fixPosition'](_0x11c45c[_0x1a24('0xf7')],_0x229432));}[_0x1a24('0xc1')](_0x45da19,_0x44500e){return this[_0x1a24('0x29')][_0x1a24('0x3a')]['createPositionFromPath'](_0x44500e,_0x45da19[_0x1a24('0x8a')],_0x45da19[_0x1a24('0x100')]);}['_handleInsertOperation'](_0x49c40d){const _0x10d3f1=this[_0x1a24('0xf1')]['get'](_0x49c40d[_0x1a24('0xaa')][_0x1a24('0xe1')]['rootName']),_0x10e14d=this[_0x1a24('0xc1')](_0x49c40d[_0x1a24('0xaa')],_0x10d3f1),_0x47804c=null===_0x49c40d[_0x1a24('0x28')]?null:_0x49c40d['_authorId']||this[_0x1a24('0x29')]['plugins'][_0x1a24('0x4f')](_0x1a24('0x6c'))['me']['id'],_0x3db0aa=_0x10e14d[_0x1a24('0x5d')],_0x41fe73=this[_0x1a24('0xea')],_0x3f0ca7=[];for(const _0x2cd002 of _0x49c40d[_0x1a24('0x34')])if(_0x2cd002['is'](_0x1a24('0x1c')))_0x3f0ca7[_0x1a24('0x2f')](this[_0x1a24('0x4d')](_0x2cd002));else for(let _0x53ac17=0x0;_0x53ac17<_0x2cd002[_0x1a24('0xca')];_0x53ac17++)_0x3f0ca7[_0x1a24('0x2f')](new _0x347e6a(_0x1a24('0x4e'),{'vid':this['_revisionId']++}));const _0x468889=this[_0x1a24('0xea')];for(let _0x1301e1=_0x41fe73;_0x1301e1<_0x468889;_0x1301e1++)this[_0x1a24('0xb')][_0x1a24('0xef')](_0x1301e1,{'userId':_0x47804c});_0x3db0aa['_insertChild'](_0x10e14d['offset'],_0x3f0ca7);}[_0x1a24('0x14')](_0x3e06be){(_0x3e06be=this[_0x1a24('0xc9')](_0x3e06be,this[_0x1a24('0xf1')]))['_execute']();const _0x457b91=null===_0x3e06be[_0x1a24('0x28')]?null:_0x3e06be['_authorId']||this[_0x1a24('0x29')]['plugins']['get']('Users')['me']['id'],_0x17d81a=_0x3e06be['getMovedRangeStart'](),_0x2bca4b=_0x17d81a[_0x1a24('0x5d')],_0x2cec72=_0x17d81a[_0x1a24('0xc4')];!function _0x1e0fd3(_0x389ba6,_0x175df7,_0x55ec3d,_0x4ab5c5){for(let _0x2e5446=_0x55ec3d;_0x2e5446<_0x4ab5c5;_0x2e5446++){const _0x3393e5=_0x175df7[_0x1a24('0x39')](_0x2e5446);_0x3393e5['is'](_0x1a24('0x1c'),_0x1a24('0x4e'))?_0x389ba6[_0x1a24('0xef')](_0x3393e5[_0x1a24('0x65')]('vid'),{'userId':_0x457b91}):(_0x389ba6[_0x1a24('0xef')](_0x3393e5['getAttribute'](_0x1a24('0xe')),{'userId':_0x457b91}),_0x1e0fd3(_0x389ba6,_0x3393e5,0x0,_0x3393e5['childCount']),_0x389ba6[_0x1a24('0xef')](_0x3393e5[_0x1a24('0x65')]('vid_end'),{'userId':_0x457b91}));}}(this[_0x1a24('0xb')],_0x2bca4b,_0x2cec72,_0x2cec72+_0x3e06be[_0x1a24('0x16')]);}[_0x1a24('0x71')](_0x1eaa6a){const _0x885915=null===(_0x1eaa6a=this[_0x1a24('0xc9')](_0x1eaa6a,this[_0x1a24('0xf1')]))[_0x1a24('0x28')]?null:_0x1eaa6a['_authorId']||this[_0x1a24('0x29')][_0x1a24('0xe8')]['get'](_0x1a24('0x6c'))['me']['id'],_0x42e91f=_0x1eaa6a[_0x1a24('0x24')][_0x1a24('0x5d')],_0x25f5b5=_0x1eaa6a[_0x1a24('0x2d')][_0x1a24('0x5d')],_0x5c6c49=_0x42e91f[_0x1a24('0x65')](_0x1a24('0x73')),_0x5b371d=_0x25f5b5[_0x1a24('0x65')]('vid_start');_0x42e91f['_setAttribute'](_0x1a24('0x73'),_0x25f5b5[_0x1a24('0x65')](_0x1a24('0x73'))),_0x25f5b5[_0x1a24('0x10')](_0x1a24('0x73'),_0x5c6c49),this['_touched'][_0x1a24('0xef')](_0x5b371d,{'userId':_0x885915}),this[_0x1a24('0xb')][_0x1a24('0xef')](_0x5c6c49,{'userId':_0x885915}),_0x1eaa6a[_0x1a24('0xbe')]();}[_0x1a24('0x7f')](_0x33fb94){const _0x407c69=null===(_0x33fb94=this[_0x1a24('0xc9')](_0x33fb94,this['_idsRoots']))['_authorId']?null:_0x33fb94['_authorId']||this['editor']['plugins'][_0x1a24('0x4f')](_0x1a24('0x6c'))['me']['id'],_0x1e71a2=_0x33fb94[_0x1a24('0x8b')],_0x27f64f=_0x33fb94['splitPosition'][_0x1a24('0x5d')];_0x33fb94[_0x1a24('0xbe')]();const _0x4ccaf1=_0x27f64f['getAttribute']('vid_end'),_0x10b539=_0x33fb94[_0x1a24('0x97')]['nodeAfter'];if(_0x1e71a2){const _0x471b13=_0x10b539[_0x1a24('0x65')]('vid_end'),_0x48d69c=_0x27f64f['getAttribute'](_0x1a24('0x73'));_0x27f64f[_0x1a24('0x10')](_0x1a24('0x73'),_0x471b13),_0x10b539['_setAttribute'](_0x1a24('0x73'),_0x48d69c),this['_touched'][_0x1a24('0xef')](_0x27f64f[_0x1a24('0x65')](_0x1a24('0x73')),{'userId':_0x407c69}),this[_0x1a24('0xb')][_0x1a24('0xef')](_0x10b539['getAttribute'](_0x1a24('0xe')),{'userId':_0x407c69});}else{const _0x13a883=this['_revisionId']++,_0x4d7721=this[_0x1a24('0xea')]++;_0x27f64f[_0x1a24('0x10')](_0x1a24('0x73'),_0x13a883),_0x10b539[_0x1a24('0x10')]('vid_start',_0x4d7721),_0x10b539[_0x1a24('0x10')](_0x1a24('0x73'),_0x4ccaf1),this['_touched'][_0x1a24('0xef')](_0x13a883,{'userId':_0x407c69}),this[_0x1a24('0xb')][_0x1a24('0xef')](_0x4d7721,{'userId':_0x407c69});}}[_0x1a24('0x9d')](_0x21103c){if(!_0x21103c[_0x1a24('0x8d')])return;const _0x22898f=(_0x21103c=this[_0x1a24('0xc9')](_0x21103c,this[_0x1a24('0xf0')]))[_0x1a24('0x22')]?_0x21103c[_0x1a24('0x22')][_0x1a24('0xe1')]:null,_0x2f12d9=_0x21103c[_0x1a24('0xd2')]?_0x21103c[_0x1a24('0xd2')][_0x1a24('0xe1')]:null;_0x22898f&&this[_0x1a24('0xf')]['delete'](_0x21103c[_0x1a24('0xe5')]),_0x2f12d9&&this['_markers'][_0x1a24('0xef')](_0x21103c[_0x1a24('0xe5')],_0x21103c['newRange'][_0x1a24('0xc0')]());const _0x8783e=null===_0x21103c[_0x1a24('0x28')]?null:_0x21103c[_0x1a24('0x28')]||this[_0x1a24('0x29')][_0x1a24('0xe8')][_0x1a24('0x4f')](_0x1a24('0x6c'))['me']['id'],_0x248375=_0x21103c['name'];if(!this[_0x1a24('0x5c')][_0x1a24('0xae')](_0x248375))return void this['_touchedMarkers'][_0x1a24('0xef')](_0x248375,{'range':_0x21103c[_0x1a24('0x22')],'userId':_0x8783e});const _0x126fad=this[_0x1a24('0x5c')][_0x1a24('0x4f')](_0x248375),_0x1e0d10=_0x126fad['range'],_0x2a373c=_0x21103c['newRange'];null==_0x1e0d10&&null==_0x2a373c||_0x1e0d10&&_0x2a373c&&_0x1e0d10[_0x1a24('0xd1')](_0x2a373c)?this[_0x1a24('0x5c')][_0x1a24('0x102')](_0x21103c[_0x1a24('0xe5')]):_0x126fad[_0x1a24('0xc3')]=_0x8783e;}[_0x1a24('0x52')](_0x479579,_0x5a3156){this[_0x1a24('0xf0')][_0x1a24('0xae')](_0x479579[_0x1a24('0x1b')])?this[_0x1a24('0xf0')][_0x1a24('0x4f')](_0x479579[_0x1a24('0x1b')])[_0x1a24('0x0')]=_0x479579['isAdd']:(this['_diffRoots'][_0x1a24('0xef')](_0x479579[_0x1a24('0x1b')],G(_0x479579['rootName'],!0x0)),this[_0x1a24('0x54')][_0x1a24('0xef')](_0x479579[_0x1a24('0x1b')],{}),_0x5a3156&&this[_0x1a24('0xf1')][_0x1a24('0xef')](_0x479579['rootName'],G(_0x479579['rootName'],!0x0)));const _0x3e17ab=null===_0x479579[_0x1a24('0x28')]?null:_0x479579['_authorId']||this['editor'][_0x1a24('0xe8')]['get']('Users')['me']['id'],_0x356e2a=this[_0x1a24('0x106')][_0x1a24('0x4f')](_0x479579[_0x1a24('0x1b')]);_0x356e2a&&_0x356e2a[_0x1a24('0xc3')]===_0x3e17ab?this['_touchedRoots']['delete'](_0x479579['rootName']):this[_0x1a24('0x106')]['set'](_0x479579[_0x1a24('0x1b')],{'userId':_0x3e17ab,'isAttached':_0x479579[_0x1a24('0x62')]});}['_handleRootAttributeOperation'](_0x4dec78){const _0x476555=this[_0x1a24('0x54')][_0x1a24('0x4f')](_0x4dec78['root'][_0x1a24('0x1b')]);null===_0x4dec78[_0x1a24('0xfa')]?delete _0x476555[_0x4dec78[_0x1a24('0xcd')]]:_0x476555[_0x4dec78[_0x1a24('0xcd')]]=_0x4dec78[_0x1a24('0xfa')];}}function q(_0x3e0f93){const _0x585c80=G(_0x3e0f93[_0x1a24('0x1b')],_0x3e0f93[_0x1a24('0x4c')]());for(const _0x1d885a of _0x3e0f93['getChildren']()){const _0x1d6e0f=_0x1d885a[_0x1a24('0xcb')](!0x0);_0x585c80['_appendChild'](_0x1d6e0f);}return _0x585c80;}function G(_0x4f8236,_0x2e6b33=!0x0){const _0xe68236=new _0x152ab9();return _0xe68236[_0x1a24('0x1b')]=_0x4f8236,_0xe68236[_0x1a24('0x0')]=_0x2e6b33,_0xe68236[_0x1a24('0x4c')]=()=>_0xe68236[_0x1a24('0x0')],_0xe68236;}function L(_0x31e873,_0x9432af,_0x371e51){const _0x503e06=_0x1a24('0x63')==_0x31e873[_0x1a24('0x32')]?_0x371e51[_0x1a24('0xbc')](_0x31e873[_0x1a24('0xc6')],_0x1a24('0xf7')):_0x371e51[_0x1a24('0xb1')](_0x31e873[_0x1a24('0xc6')]);return _0x371e51[_0x1a24('0x95')](_0x9432af,_0x503e06[_0x1a24('0x8a')],_0x503e06['stickiness']);}function W(_0x2d6f8c,_0x1db755,_0x9c8e79){const _0x6ef9a8='elementStart'==_0x2d6f8c['type']?_0x9c8e79[_0x1a24('0xbc')](_0x2d6f8c[_0x1a24('0xc6')],0x0):_0x9c8e79[_0x1a24('0x67')](_0x2d6f8c[_0x1a24('0xc6')]);return _0x9c8e79[_0x1a24('0x95')](_0x1db755,_0x6ef9a8[_0x1a24('0x8a')],_0x6ef9a8[_0x1a24('0x100')]);}
|
|
23
|
+
const _0x2dd9=['newValue','parent','getRoot','_revisionDataBuilder','getWalker','isAttached','_getPreviousFrom','start','getRevisionDocumentData','split','sort','addRoot','getOperations','adapter','startsWith','move','_reset','_source','userId','_getViewJson','_savedMetaData','reInit','_getVidAttributeName','root','_startingVersion','_getBaseVids','_handleMergeOperation','affectsData','_isAttached','_execute','elementEnd','set','delete','getMovedRangeStart','deletion','attributesAfter','_removePendingAction','getCurrentRevisionId','elementStart','values','insert','push','_loadedStateData','_copyMarkers','getNodeByPath','dataDowncast','authors','setSource','Users','getRootNames','_transformMarkers','newRange','toData','diffData','previousPosition','_appendChild','locale','_createInitialRevision','createPositionAfter','targetPosition','_createFromRanges','config','baseVersion','roots','creator','getTime','keepParagraph','size','vid_start','init','_replaceEditorDataWithRevisionData','keys','data-revision-','tableCell','getLatestVersion','ready','_setAttribute','finally','getChildren','vid_end','revision:','view','addRevision','_baseIdsRoots','model','has','_fixRange','getAttribute','hasContent','$graveyard','getIndex','_handleInsertOperation','add','_processRootBeforeSave','_revisionId','default','_generateTape','_insertChild','oldRange','includes','rootName','isAdd','$text','attachChange','stringify','resolve','_lastFrom','NEGATIVE_INFINITY','element','insertionPosition','useFillerType','text','_bufferUpdate','RealTimeCollaborationClient','_loadState','paragraph','addRevisionData','version','find','markers','attributesBefore','_touchedRoots','_authorId','_clone','max','for','_update','data','update','get','getData','documentFragment','Empty\x20document','attributes','_handleMarkerOperation','_handleRootOperation','_baseRootsAttributes','requires','revision','rootsAttributes','_bufferedUpdates','clone','fromVersion','toVersion','initialData','plugins','getUser','_lastTo','reinsert','nodes','merge','createPositionAt','_loadRevisionData','saveRevision','_createCurrentRevision','deletions','currentRevision','reverse','_handleMoveOperation','removeRootAttribute','slice','_makeIdsRoot','_initialRevisionId','_applyOperations','howMany','stickiness','getOperation','isEqual','afterInit','_calculateMetaData','PendingActions','map','createdAt','toView','from','_handleOperation','editor-initial-data-replaced-with-revision-data','item','getAncestors','dataToMarker','childCount','end','PENDING_ACTION_REVISION_HISTORY','_handleSplitOperation','key','_removeMetaData','getRevision','RevisionsRepository','position','_prepareViewToSave','_pendingAction','_makeModelFromViewString','string','createPositionFromPath','fromEntries','_isPendingUpdate','_diffRootsAttributes','path','filter','editor','editing','_findInsertionIndex','_markChanges','source','marker','createRange','getChild','getRevisions','updateRevisions','buildRevisionData','then','insertions','revisionHistory.resumeUnsavedRevision','parse','_isInit','conversion','collaboration.channelId','_startingRevisionId','_makeRevision','changeRootAttribute','length','marked','_saveMetaData','name','revision-end','processor','_addPendingAction','_touched','isEnabled','_touchedMarkers','_fixOperation','document','vid','repository','_idsRoots','_continueCurrentRevision','clear','_getFromVersion','type','range','getRevisionRootsAttributes','loadState','children','_fixPosition','toModel','_cloneOperation','RevisionTracker','history','sourcePosition','getTransformedByOperation','_handleRootAttributeOperation','remove','_markers','isReady','sendBufferedUpdates','authorsIds','upcast','getAttributes','_diffRoots','offsetSize','_baseRoots'];(function(_0x56f3b0,_0x2dd96e){const _0x17fd80=function(_0x23546d){while(--_0x23546d){_0x56f3b0['push'](_0x56f3b0['shift']());}};_0x17fd80(++_0x2dd96e);}(_0x2dd9,0x1d1));const _0x17fd=function(_0x56f3b0,_0x2dd96e){_0x56f3b0=_0x56f3b0-0x0;let _0x17fd80=_0x2dd9[_0x56f3b0];return _0x17fd80;};import{Users as _0x1d2e7a}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x48be07,PendingActions as _0x6193a7}from'ckeditor5/src/core';import{logWarning as _0x290bb0,uid as _0x14b210}from'ckeditor5/src/utils';import{Position as _0x4d3384,Range as _0x6a91e2,Element as _0x35eb5d,DocumentFragment as _0x5a2348,ViewText as _0x18fc7a,ViewElement as _0x22537f,ViewContainerElement as _0x31db59,ViewAttributeElement as _0xead1ce,ViewEmptyElement as _0x56e117,ViewRawElement as _0x3bfcfe,ViewUIElement as _0x4147bc,ViewDocumentFragment as _0x42e188}from'ckeditor5/src/engine';import _0x49b74d from'./revisionsrepository';import{getTranslation as _0x3c5750}from'./utils/common-translations';import{cloneDeep as _0x20b4e8,isEqual as _0x1d5f1c}from'lodash-es';const B={'c':_0x31db59,'a':_0xead1ce,'e':_0x56e117,'r':_0x3bfcfe,'u':_0x4147bc};export default class l extends _0x48be07{static get['pluginName'](){return _0x17fd('0x2a');}static get[_0x17fd('0xc2')](){return[_0x1d2e7a,_0x49b74d,_0x6193a7];}constructor(_0x5ba494){super(_0x5ba494),this['adapter']=null,this[_0x17fd('0xd5')]=null,this['_revisionDataBuilder']=new H(this[_0x17fd('0x100')]),this['_initialRevisionId']=this[_0x17fd('0x100')][_0x17fd('0x76')][_0x17fd('0xba')](_0x17fd('0xc'))||'initial',this[_0x17fd('0xc5')]=new Map(),this['_loadedStateData']=null;const _0x2dd7f5=_0x14b210();this[_0x17fd('0x4a')]={'history':this[_0x17fd('0x100')]['model'][_0x17fd('0x1b')][_0x17fd('0x2b')],'getLatestVersion':()=>Promise[_0x17fd('0xa2')](this['editor']['model'][_0x17fd('0x1b')][_0x17fd('0xae')]),'getCurrentRevisionId':()=>_0x2dd7f5},this[_0x17fd('0x58')](_0x17fd('0x31'),!0x1),this[_0x17fd('0x58')](_0x17fd('0x18'),!0x0),this[_0x17fd('0x58')](_0x17fd('0xfc'),!0x1),this[_0x17fd('0x100')][_0x17fd('0x76')]['define'](_0x17fd('0x8'),!0x0),this[_0x17fd('0x100')]['conversion'][_0x17fd('0xb6')](_0x17fd('0x34'))[_0x17fd('0xec')]({'view':_0x17fd('0xc3')});}['init'](){this[_0x17fd('0x1d')]=this[_0x17fd('0x100')][_0x17fd('0xca')][_0x17fd('0xba')](_0x17fd('0xf4')),this['_setConversion'](),this[_0x17fd('0x100')][_0x17fd('0xb8')]['on'](_0x17fd('0x84'),()=>{const _0x5246d1=this[_0x17fd('0x1d')][_0x17fd('0xf3')](0x0),_0x391243=_0x5246d1&&null===_0x5246d1[_0x17fd('0x79')]?_0x5246d1:null;if(this[_0x17fd('0x1f')]=!!_0x391243&&this['editor']['config'][_0x17fd('0xba')]('revisionHistory.resumeUnsavedRevision'),this[_0x17fd('0x100')][_0x17fd('0xca')]['has'](_0x17fd('0xaa'))){const _0x4d2615=this[_0x17fd('0x4a')]['getCurrentRevisionId'](),_0x2ef5c9=this['repository']['getRevision'](_0x4d2615);if(_0x2ef5c9)this[_0x17fd('0x51')]=_0x2ef5c9[_0x17fd('0xc7')],this[_0x17fd('0x1f')]=!0x1;else{const _0x3389dd=this[_0x17fd('0x4a')][_0x17fd('0x2b')]['_operations'][_0x17fd('0xaf')](_0x39e9dd=>!_0x39e9dd[_0x17fd('0xa')]),_0x193b04=_0x3389dd?_0x3389dd[_0x17fd('0x77')]:this[_0x17fd('0x4a')][_0x17fd('0x2b')][_0x17fd('0xae')];_0x5246d1?(_0x5246d1[_0x17fd('0xc8')]<_0x193b04&&_0x5246d1[_0x17fd('0xb7')]({'toVersion':_0x193b04}),this[_0x17fd('0x1f')]?(this['_source'][_0x17fd('0x5e')]=()=>_0x391243['id'],this[_0x17fd('0x51')]=_0x391243[_0x17fd('0xc7')]):(this[_0x17fd('0x51')]=_0x5246d1[_0x17fd('0xc8')],this['_continueCurrentRevision']=!0x1)):(this[_0x17fd('0x51')]=_0x193b04,this[_0x17fd('0x1f')]=!0x1);}}else _0x391243&&(this[_0x17fd('0x100')][_0x17fd('0x8d')][_0x17fd('0x1b')][_0x17fd('0x2b')][_0x17fd('0xae')]=Math[_0x17fd('0xb5')](_0x391243[_0x17fd('0xc8')],this[_0x17fd('0x100')][_0x17fd('0x8d')]['document'][_0x17fd('0x2b')][_0x17fd('0xae')]),_0x391243[_0x17fd('0xc7')]===_0x391243[_0x17fd('0xc8')]?(0x0!==_0x391243[_0x17fd('0xc7')]&&(this[_0x17fd('0x4a')][_0x17fd('0x5e')]=()=>_0x391243['id']),this[_0x17fd('0x1f')]=!0x1):this[_0x17fd('0x1f')]&&(this[_0x17fd('0x4a')][_0x17fd('0x5e')]=()=>_0x391243['id'],this[_0x17fd('0x51')]=_0x391243[_0x17fd('0xc7')])),this[_0x17fd('0x1f')]||(this[_0x17fd('0x51')]=this['editor'][_0x17fd('0x8d')][_0x17fd('0x1b')][_0x17fd('0xae')]);this[_0x17fd('0x3c')]['init'](this[_0x17fd('0x4a')][_0x17fd('0x2b')]),this[_0x17fd('0x72')](this['_startingVersion']),this['_createCurrentRevision'](this[_0x17fd('0x51')]),this['adapter']&&this[_0x17fd('0x32')]();}),this['bind'](_0x17fd('0x31'))['to'](this,'_isPendingUpdate',_0x2a6713=>!_0x2a6713);}async[_0x17fd('0xe1')](){if(this[_0x17fd('0x1d')][_0x17fd('0x10')]>0x0){const _0x23d0f9=this[_0x17fd('0x1d')][_0x17fd('0xf3')](0x0),_0xfbb714=await this[_0x17fd('0x41')](_0x23d0f9),_0x4c35d0=await this[_0x17fd('0x24')](_0x23d0f9);this['_replaceEditorDataWithRevisionData'](_0xfbb714,_0x4c35d0);}}[_0x17fd('0x68')](_0x3c800f){this['_source']=_0x3c800f;}async[_0x17fd('0xb9')](){const _0x4e5614=await this['_source'][_0x17fd('0x83')]();if(_0x4e5614>this['currentRevision'][_0x17fd('0xc8')]){await this['_loadState']();const _0x473a87=this[_0x17fd('0x5')]({'revision':this['currentRevision'],'to':_0x4e5614});_0x473a87['authors']=_0x473a87[_0x17fd('0x33')][_0x17fd('0xe4')](_0xc053e6=>this['editor'][_0x17fd('0xca')][_0x17fd('0xba')](_0x17fd('0x69'))[_0x17fd('0xcb')](_0xc053e6)),this[_0x17fd('0xd5')]['_update'](_0x473a87);}}async['_loadState'](){this[_0x17fd('0x1f')]&&!this[_0x17fd('0x63')]&&(await this[_0x17fd('0xd1')](this[_0x17fd('0xd5')]),this[_0x17fd('0x3c')]['loadState'](this[_0x17fd('0xd5')]),this[_0x17fd('0x63')]={'fromVersion':this[_0x17fd('0xd5')][_0x17fd('0xc7')],'authors':this[_0x17fd('0xd5')][_0x17fd('0x67')][_0x17fd('0xd9')]()});}async[_0x17fd('0xd2')](_0xf5d18a={},_0x1f15dc=null){const _0x14f188=[];await this[_0x17fd('0xab')](),this[_0x17fd('0x1f')]=!0x1,_0x1f15dc>this[_0x17fd('0xd5')][_0x17fd('0xc8')]&&(_0x1f15dc=null),null===_0x1f15dc&&(_0x1f15dc=await this['_source'][_0x17fd('0x83')]());const _0x9566cc=this[_0x17fd('0x21')](_0x1f15dc),_0x3f7624=this[_0x17fd('0x5')]({'from':_0x9566cc,'to':_0x1f15dc});if(this['currentRevision'][_0x17fd('0xc8')]<_0x1f15dc){const _0x274f26=this[_0x17fd('0x5')]({'revision':this[_0x17fd('0xd5')],'from':_0x1f15dc,'to':_0x1f15dc});_0x274f26[_0x17fd('0x67')]=[],_0x274f26['authorsIds']=[],_0x274f26['id']=this[_0x17fd('0xd5')]['id'],this[_0x17fd('0xd5')][_0x17fd('0xb7')](_0x274f26,!0x0),delete _0x274f26[_0x17fd('0x67')],_0x14f188[_0x17fd('0x62')](_0x274f26);}_0xf5d18a['creatorId']=this[_0x17fd('0x100')][_0x17fd('0xca')][_0x17fd('0xba')](_0x17fd('0x69'))['me']['id'],_0xf5d18a[_0x17fd('0x13')]=_0xf5d18a[_0x17fd('0x13')]||null,_0xf5d18a['id']=_0xf5d18a['id']||_0x14b210(),_0xf5d18a={..._0xf5d18a,..._0x3f7624};const _0x4a7301=this[_0x17fd('0xad')](_0xf5d18a);_0x14f188[_0x17fd('0x62')](_0xf5d18a);const _0x5747c9=this['repository'][_0x17fd('0x93')](_0x4a7301);if(0x0!==_0x5747c9){const _0x155f09=this[_0x17fd('0x1d')]['getRevision'](_0x5747c9-0x1);if(_0x155f09[_0x17fd('0xc7')]!==_0x1f15dc){const _0x355f4a=this[_0x17fd('0x3c')][_0x17fd('0xbb')](_0x1f15dc,_0x155f09[_0x17fd('0xc8')]),_0x300697={'id':_0x155f09['id'],'diffData':_0x355f4a[_0x17fd('0x6e')],'authorsIds':_0x355f4a[_0x17fd('0x33')],'authors':_0x355f4a['authorsIds'][_0x17fd('0xe4')](_0x3ba732=>this['editor'][_0x17fd('0xca')][_0x17fd('0xba')](_0x17fd('0x69'))['getUser'](_0x3ba732)),'fromVersion':_0x1f15dc};_0x155f09===this[_0x17fd('0xd5')]&&(_0x300697[_0x17fd('0xe5')]=new Date(_0xf5d18a['createdAt'][_0x17fd('0x7a')]()+0xa)),_0x155f09[_0x17fd('0xb7')](_0x300697,!0x0),delete _0x300697[_0x17fd('0x67')],_0x14f188['push'](_0x300697);}}if(this['adapter']){for(const _0x1201e0 of _0x14f188)this[_0x17fd('0xa9')](_0x1201e0['id'],_0x1201e0,!0x0);this[_0x17fd('0x32')]();}return _0x4a7301;}[_0x17fd('0xad')](_0x4ee84c){const _0x3ed7b2=this[_0x17fd('0x1d')]['createRevision'](_0x4ee84c);return this[_0x17fd('0x46')]&&_0x3ed7b2['on'](_0x17fd('0xb7'),(_0xb3d8ec,_0x48111e,_0x4b2271)=>{_0x4b2271||(this[_0x17fd('0xa9')](_0x48111e['id'],_0x48111e,!0x0),this['sendBufferedUpdates']());}),this['repository'][_0x17fd('0x8b')](_0x3ed7b2,this[_0x17fd('0x102')](_0x3ed7b2)),_0x3ed7b2;}async[_0x17fd('0x41')](_0x143260){await this['_loadRevisionData'](_0x143260);const _0x5da135={};for(const _0x18485e in _0x143260[_0x17fd('0x6e')]){if(_0x143260[_0x17fd('0x6e')][_0x18485e][_0x17fd('0xa0')]&&!_0x143260[_0x17fd('0x6e')][_0x18485e][_0x17fd('0xa0')][_0x17fd('0x3e')])continue;const _0x3ed6d6=this['_removeRevisionMarkers'](JSON[_0x17fd('0x9')](_0x143260[_0x17fd('0x6e')][_0x18485e][_0x17fd('0x7')])),_0x2cdf74=this['editor']['editing'][_0x17fd('0x8a')][_0x17fd('0x1b')],_0x2d6eea=new _0x42e188(_0x2cdf74,_0x3ed6d6[_0x17fd('0xe4')](_0x744b47=>J(_0x744b47,this['editor'])));this[_0x17fd('0x100')][_0x17fd('0xb8')][_0x17fd('0x15')][_0x17fd('0xa7')](_0x17fd('0x11')),_0x5da135[_0x18485e]=this[_0x17fd('0x100')]['data']['processor'][_0x17fd('0x6d')](_0x2d6eea),this['editor']['data'][_0x17fd('0x15')]['useFillerType'](_0x17fd('0x98'));}return _0x5da135;}async[_0x17fd('0x24')](_0x473ae2){await this[_0x17fd('0xd1')](_0x473ae2);const _0x3e3475={};for(const _0x54dd7e in _0x473ae2['diffData'])_0x473ae2[_0x17fd('0x6e')][_0x54dd7e][_0x17fd('0xa0')]&&!_0x473ae2[_0x17fd('0x6e')][_0x54dd7e][_0x17fd('0xa0')][_0x17fd('0x3e')]||(_0x3e3475[_0x54dd7e]=_0x473ae2[_0x17fd('0x6e')][_0x54dd7e][_0x17fd('0x5c')]||{});return _0x3e3475;}[_0x17fd('0x32')](){if(0x0===this[_0x17fd('0xc5')][_0x17fd('0x7c')])return;if(this['_isPendingUpdate'])return;let _0x513c2a=Array[_0x17fd('0xe7')](this['_bufferedUpdates']['values']());this[_0x17fd('0xc5')][_0x17fd('0x20')]();for(let _0x447f30=0x0;_0x447f30<_0x513c2a[_0x17fd('0x10')];_0x447f30++){const _0x3149c7=_0x513c2a[_0x447f30];let _0x52cf54=!0x1;for(const _0x814595 of Object[_0x17fd('0x80')](_0x3149c7))void 0x0===_0x3149c7[_0x814595]?delete _0x3149c7[_0x814595]:'id'!==_0x814595&&(_0x52cf54=!0x0);_0x52cf54||(_0x513c2a[_0x447f30]=null);}if(_0x513c2a=_0x513c2a[_0x17fd('0xff')](_0xcc477d=>null!==_0xcc477d),!_0x513c2a['length'])return;for(let _0x54cdc9=0x0;_0x54cdc9<_0x513c2a[_0x17fd('0x10')];_0x54cdc9++){const _0x45c572=_0x513c2a[_0x54cdc9];void 0x0!==_0x45c572[_0x17fd('0xc7')]&&void 0x0===_0x45c572[_0x17fd('0xc8')]&&(_0x45c572[_0x17fd('0xc8')]=this[_0x17fd('0x1d')][_0x17fd('0xf3')](_0x45c572['id'])[_0x17fd('0xc8')]),void 0x0!==_0x45c572[_0x17fd('0xc8')]&&void 0x0===_0x45c572['fromVersion']&&(_0x45c572[_0x17fd('0xc7')]=this[_0x17fd('0x1d')][_0x17fd('0xf3')](_0x45c572['id'])['fromVersion']);}const _0x5e0e1a=this[_0x17fd('0x100')][_0x17fd('0x76')][_0x17fd('0xba')](_0x17fd('0xc'));this[_0x17fd('0xfc')]=!0x0,this[_0x17fd('0x16')](),this[_0x17fd('0x46')][_0x17fd('0x4')](_0x513c2a,_0x5e0e1a)[_0x17fd('0x86')](()=>{this[_0x17fd('0xfc')]=!0x1;})[_0x17fd('0x6')](_0x27fbeb=>{if(_0x27fbeb)for(const _0x15a35d of _0x27fbeb)this['setRevisionData']({'id':_0x15a35d['id'],'createdAt':_0x15a35d[_0x17fd('0xe5')]});this[_0x17fd('0x5d')](),this['sendBufferedUpdates']();});}[_0x17fd('0x7f')](_0x533126,_0x4ecdc0){let _0x254896=this[_0x17fd('0x100')]['config'][_0x17fd('0xba')](_0x17fd('0xc9')),_0xb2adfd=this['editor'][_0x17fd('0x76')][_0x17fd('0xba')](_0x17fd('0xc4'));if(void 0x0===_0x254896){_0x254896={};for(const _0xbc2309 of this[_0x17fd('0x100')]['model'][_0x17fd('0x1b')][_0x17fd('0x6a')]())_0x254896[_0xbc2309]='';}if(_0x17fd('0xf9')==typeof _0x254896&&(_0x254896={'main':_0x254896}),void 0x0===_0xb2adfd){_0xb2adfd={};for(const _0x5d0202 of this[_0x17fd('0x100')]['model']['document'][_0x17fd('0x6a')]())_0xb2adfd[_0x5d0202]={};}let _0x8b286=!0x1;const _0x418b0e=Object[_0x17fd('0x80')](_0x254896),_0x1d48f4=Object[_0x17fd('0x80')](_0x533126);for(const _0x24e4c8 of _0x418b0e){if(_0x254896[_0x24e4c8]!==_0x533126[_0x24e4c8]&&''!==_0x254896[_0x24e4c8]['trim']()){_0x8b286=!0x0;break;}if(!_0x1d5f1c(_0xb2adfd[_0x24e4c8],_0x4ecdc0[_0x24e4c8])&&Object[_0x17fd('0x80')](_0xb2adfd[_0x24e4c8])[_0x17fd('0x10')]>0x0){_0x8b286=!0x0;break;}}_0x8b286||(_0x8b286=_0x1d48f4['some'](_0x3e22e7=>!this['editor'][_0x17fd('0x8d')][_0x17fd('0x1b')][_0x17fd('0x3b')](_0x3e22e7))),_0x8b286&&_0x290bb0(_0x17fd('0xe9'),{'editorData':_0x254896,'editorRootsAttributes':_0xb2adfd,'revisionData':_0x533126,'revisionRootsAttributes':_0x4ecdc0}),this[_0x17fd('0x100')]['config'][_0x17fd('0x58')]('initialData',_0x533126),this[_0x17fd('0x100')][_0x17fd('0x76')][_0x17fd('0x58')](_0x17fd('0xc4'),_0x4ecdc0);}[_0x17fd('0x16')](){if(!this[_0x17fd('0xf7')]){const _0x41c313=this['editor'][_0x17fd('0xca')][_0x17fd('0xba')](_0x17fd('0xe3'));this['_pendingAction']=_0x41c313[_0x17fd('0x95')](_0x3c5750(this[_0x17fd('0x100')][_0x17fd('0x71')],_0x17fd('0xef')));}}[_0x17fd('0x5d')](){this[_0x17fd('0xf7')]&&(this[_0x17fd('0x100')][_0x17fd('0xca')]['get'](_0x17fd('0xe3'))['remove'](this[_0x17fd('0xf7')]),this[_0x17fd('0xf7')]=null);}['_findInsertionIndex'](_0x2e8e57){const _0x5b89bb=this['repository'][_0x17fd('0x3')]();_0x5b89bb[_0x17fd('0xd6')]();let _0x194801=0x0;for(;_0x194801<_0x5b89bb[_0x17fd('0x10')];){const _0x3bcc7f=_0x5b89bb[_0x194801];if(_0x3bcc7f===this[_0x17fd('0xd5')]){_0x194801++;continue;}if(_0x3bcc7f['id']===this[_0x17fd('0xdb')])break;const _0x309ff9=_0x2e8e57[_0x17fd('0xc8')]-_0x3bcc7f[_0x17fd('0xc8')]||_0x2e8e57['fromVersion']-_0x3bcc7f['fromVersion'];if(_0x309ff9>0x0)break;if(_0x309ff9<0x0)_0x194801++;else{if(!_0x2e8e57['creator']&&_0x3bcc7f[_0x17fd('0x79')])break;if(_0x3bcc7f['creator']||!_0x2e8e57[_0x17fd('0x79')]){if(_0x2e8e57[_0x17fd('0xe5')]>_0x3bcc7f['createdAt'])break;_0x194801++;}else _0x194801++;}}return _0x194801;}['setRevisionData'](_0x50c94b){const _0x128f37=this[_0x17fd('0x1d')][_0x17fd('0xf3')](_0x50c94b['id']);if(_0x50c94b['createdAt']&&(_0x50c94b['createdAt']=new Date(_0x50c94b['createdAt'])),_0x50c94b[_0x17fd('0x33')]){const _0x55a22b=this['editor'][_0x17fd('0xca')]['get']('Users');_0x50c94b[_0x17fd('0x67')]=_0x50c94b[_0x17fd('0x33')][_0x17fd('0xe4')](_0x477a4b=>_0x55a22b['getUser'](_0x477a4b));}_0x128f37[_0x17fd('0xb7')](_0x50c94b,!0x0);}[_0x17fd('0x5')]({revision:_0xf0daa3=null,from:_0x322fe7=null,to:_0x321233=null}){_0x322fe7=null!==_0x322fe7?_0x322fe7:_0xf0daa3['fromVersion'],_0x321233=null!==_0x321233?_0x321233:_0xf0daa3['toVersion'];const _0x5cd808=this[_0x17fd('0x3c')][_0x17fd('0xbb')](_0x322fe7,_0x321233),_0x2ca47a={'diffData':_0x5cd808[_0x17fd('0x6e')],'authorsIds':_0x5cd808[_0x17fd('0x33')],'fromVersion':_0x322fe7,'toVersion':_0x321233};if(!_0xf0daa3||_0x321233!==_0xf0daa3[_0x17fd('0xc8')]){const _0x23c15e=_0x321233-0x1,_0x55cdc8=this[_0x17fd('0x4a')][_0x17fd('0x2b')][_0x17fd('0xdf')](_0x23c15e);_0x2ca47a[_0x17fd('0xe5')]=_0x55cdc8&&_0x55cdc8['createdAt']||new Date();}if(this[_0x17fd('0x63')]&&_0x322fe7===this[_0x17fd('0x63')][_0x17fd('0xc7')])for(const _0x2c97a0 of this[_0x17fd('0x63')][_0x17fd('0x67')])_0x2ca47a[_0x17fd('0x33')][_0x17fd('0x9c')](_0x2c97a0['id'])||_0x2ca47a[_0x17fd('0x33')][_0x17fd('0x62')](_0x2c97a0['id']);return _0x2ca47a;}['_loadRevisionData'](_0x41f1b9){if(!_0x41f1b9||_0x41f1b9[_0x17fd('0x6e')])return Promise[_0x17fd('0xa2')]();{const _0xf81eed=this[_0x17fd('0x100')][_0x17fd('0x76')][_0x17fd('0xba')]('collaboration.channelId');return this[_0x17fd('0x46')]['getRevision']({'channelId':_0xf81eed,'revisionId':_0x41f1b9['id']})[_0x17fd('0x6')](_0x1eec51=>{_0x41f1b9['diffData']=_0x1eec51[_0x17fd('0x6e')];});}}[_0x17fd('0xa9')](_0x35a72f,_0x3a0846,_0x245872){if(this[_0x17fd('0xc5')]['has'](_0x35a72f)){const _0x5d9445=this[_0x17fd('0xc5')]['get'](_0x35a72f);_0x3a0846=_0x245872?{..._0x5d9445,..._0x3a0846}:{..._0x3a0846,..._0x5d9445};}this['_bufferedUpdates'][_0x17fd('0x58')](_0x35a72f,_0x3a0846);}[_0x17fd('0x21')](_0x50c6ce){const _0x3d4396=this[_0x17fd('0x1d')]['getRevisions']();_0x3d4396['reverse'](),_0x3d4396['shift']();const _0x489f95=_0x3d4396[_0x17fd('0xaf')](_0x947c8d=>_0x947c8d['toVersion']<=_0x50c6ce)[_0x17fd('0xc8')];return _0x489f95<this[_0x17fd('0x51')]?this[_0x17fd('0x51')]:_0x489f95;}[_0x17fd('0x72')](_0x7c7752){const _0xc1fc45=this[_0x17fd('0x1d')][_0x17fd('0xf3')](this[_0x17fd('0x1d')][_0x17fd('0x10')]-0x1);if(_0xc1fc45)this['_initialRevisionId']=_0xc1fc45['id'];else{const _0xc0afa0=!this['editor']['model'][_0x17fd('0x1b')][_0x17fd('0x78')][_0x17fd('0xaf')](_0x370c31=>this['editor']['model'][_0x17fd('0x91')](_0x370c31)),_0x1545b7=this[_0x17fd('0x100')][_0x17fd('0xca')][_0x17fd('0xba')](_0x17fd('0x69'))['me']['id'],_0xdf59c6=_0x3c5750(this[_0x17fd('0x100')]['locale'],_0xc0afa0?_0x17fd('0xbd'):'Initial\x20revision');this[_0x17fd('0xe')]({'from':_0x7c7752,'to':_0x7c7752,'id':this[_0x17fd('0xdb')],'name':_0xdf59c6,'creatorId':_0x1545b7});}}[_0x17fd('0xd3')](_0x573891){const _0x331faa=this[_0x17fd('0x4a')]['getCurrentRevisionId']();this['currentRevision']=this[_0x17fd('0x1d')]['getRevision'](_0x331faa),this['currentRevision']||(this[_0x17fd('0xd5')]=this[_0x17fd('0xe')]({'from':_0x573891,'to':_0x573891,'id':_0x331faa,'name':'','creatorId':null}));}[_0x17fd('0xe')]({name:_0x67693d,from:_0x44836d,to:_0x40cc56,creatorId:_0x468ab4,id:_0x5b933b}){const _0x43a49d=this['buildRevisionData']({'from':_0x44836d,'to':_0x40cc56});_0x43a49d[_0x17fd('0x13')]=_0x67693d,_0x43a49d['creatorId']=_0x468ab4,_0x43a49d['id']=_0x5b933b;const _0x3aa718=this[_0x17fd('0xad')](_0x43a49d);return this[_0x17fd('0x46')]&&this[_0x17fd('0xa9')](_0x43a49d['id'],_0x43a49d,!0x0),_0x3aa718;}['_setConversion'](){this[_0x17fd('0x100')][_0x17fd('0xb')][_0x17fd('0xb6')](_0x17fd('0x66'))['markerToData']({'model':_0x17fd('0xc3')});}['_removeRevisionMarkers'](_0x21b338){return(_0x21b338=_0x21b338[_0x17fd('0xff')](_0x4ee89e=>!_0x4ee89e[_0x17fd('0x13')]||'revision-start'!==_0x4ee89e[_0x17fd('0x13')]&&_0x17fd('0x14')!==_0x4ee89e[_0x17fd('0x13')]))['forEach'](_0x11848a=>{_0x17fd('0xf9')!=typeof _0x11848a&&(_0x11848a['children']=this['_removeRevisionMarkers'](_0x11848a[_0x17fd('0x26')]),_0x11848a[_0x17fd('0xbe')]=_0x11848a[_0x17fd('0xbe')][_0x17fd('0xff')](_0x3fe5d1=>!_0x3fe5d1[0x0][_0x17fd('0x47')](_0x17fd('0x81'))));}),_0x21b338;}}function J(_0x1e1da2,_0x53a496){const _0x617d1e=_0x53a496[_0x17fd('0x101')][_0x17fd('0x8a')][_0x17fd('0x1b')];if(_0x17fd('0xf9')==typeof _0x1e1da2)return new _0x18fc7a(_0x617d1e,_0x1e1da2);{const _0x30b055=_0x1e1da2[_0x17fd('0x26')][_0x17fd('0xe4')](_0x35ba78=>J(_0x35ba78,_0x53a496));return new(B[_0x1e1da2[(_0x17fd('0x22'))]]||_0x22537f)(_0x617d1e,_0x1e1da2[_0x17fd('0x13')],_0x1e1da2[_0x17fd('0xbe')],_0x30b055);}}class H{constructor(_0x4a407b){this[_0x17fd('0x100')]=_0x4a407b,this['_savedMetaData']=new Map(),this[_0x17fd('0xa3')]=-0x1,this[_0x17fd('0xcc')]=-0x1,this[_0x17fd('0x30')]=new Map(),this['_diffRoots']=new Map(),this[_0x17fd('0xfd')]=new Map(),this[_0x17fd('0x38')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x17fd('0x1e')]=new Map(),this[_0x17fd('0x8c')]=new Map(),this['_touched']=new Map(),this[_0x17fd('0x19')]=new Map(),this[_0x17fd('0xb2')]=new Map(),this['_revisionId']=0x1;}[_0x17fd('0x7e')](_0x109138){this[_0x17fd('0x104')]=_0x109138;const _0x44eb86=new Map(),_0x5467e1=new Map(),_0x38a341=this[_0x17fd('0x100')]['model']['document'][_0x17fd('0x78')][_0x17fd('0xe4')](_0x265136=>_0x265136[_0x17fd('0x9d')]);for(const _0x1351bd of _0x38a341){const _0x55ee36=this[_0x17fd('0x100')][_0x17fd('0x8d')][_0x17fd('0x1b')][_0x17fd('0x3b')](_0x1351bd),_0x407e4f=q(_0x55ee36);_0x44eb86[_0x17fd('0x58')](_0x1351bd,_0x407e4f),_0x5467e1[_0x17fd('0x58')](_0x1351bd,Object[_0x17fd('0xfb')](_0x55ee36['getAttributes']()));}const _0x239170=Array[_0x17fd('0xe7')](this[_0x17fd('0x100')][_0x17fd('0x8d')][_0x17fd('0xb0')])['map'](_0x147b42=>[_0x147b42['name'],_0x147b42['getRange']()]),_0x50837f=this[_0x17fd('0x104')][_0x17fd('0xae')];this[_0x17fd('0x12')](_0x50837f,_0x44eb86,_0x239170,_0x5467e1),this[_0x17fd('0xd')]=this['_revisionId'];const _0x38f6a6=new Map(),_0x1a18f9=new Map();for(const _0xedbc81 of _0x38a341){const _0x5dfc80=G(_0xedbc81);_0x38f6a6[_0x17fd('0x58')](_0xedbc81,_0x5dfc80),_0x1a18f9[_0x17fd('0x58')](_0xedbc81,{});}this[_0x17fd('0x12')](Number[_0x17fd('0xa4')],_0x38f6a6,[],_0x1a18f9);}[_0x17fd('0xbb')](_0x5841f6,_0x27980a){if(this[_0x17fd('0xa3')]===_0x5841f6&&this[_0x17fd('0xcc')]<=_0x27980a)this[_0x17fd('0x4d')][_0x17fd('0x7c')]>0x1&&this[_0x17fd('0xf2')](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x27980a,!0x0);else{if(!this[_0x17fd('0x4d')][_0x17fd('0x8e')](_0x5841f6)){const _0x51a1df=this[_0x17fd('0x3f')](_0x5841f6);this[_0x17fd('0xe2')](_0x51a1df,_0x5841f6,!0x1);}this[_0x17fd('0xe2')](_0x5841f6,_0x27980a,!0x0);}return this['_lastFrom']=_0x5841f6,this['_lastTo']=_0x27980a,this['_getState']();}[_0x17fd('0x25')](_0x130feb){this['_reset'](),this[_0x17fd('0xa3')]=_0x130feb[_0x17fd('0xc7')],this[_0x17fd('0xcc')]=_0x130feb[_0x17fd('0xc8')];for(const _0x54e2a6 in _0x130feb['diffData']){const _0x587adc=_0x130feb[_0x17fd('0x6e')][_0x54e2a6]['attachChange'],_0x35df3c=_0x20b4e8(_0x130feb['diffData'][_0x54e2a6][_0x17fd('0xb1')])||{},_0x5504ff=this[_0x17fd('0xf8')](_0x130feb['diffData'][_0x54e2a6]['deletions']);_0x5504ff[_0x17fd('0x9d')]=_0x54e2a6,_0x5504ff[_0x17fd('0x55')]=!_0x587adc||!_0x587adc[_0x17fd('0x3e')],_0x5504ff[_0x17fd('0x3e')]=()=>_0x5504ff[_0x17fd('0x55')],this[_0x17fd('0x38')][_0x17fd('0x58')](_0x54e2a6,_0x5504ff),this[_0x17fd('0xc1')][_0x17fd('0x58')](_0x54e2a6,_0x35df3c),_0x587adc&&this[_0x17fd('0xb2')]['set'](_0x54e2a6,_0x587adc);const _0x2caf9c=this[_0x17fd('0xda')](_0x5504ff);this[_0x17fd('0x8c')][_0x17fd('0x58')](_0x54e2a6,_0x2caf9c);for(const [_0x472632,_0x3e3de6]of _0x5504ff['markers']){if(!_0x472632[_0x17fd('0x47')](_0x17fd('0x89')))continue;const _0xdd950e=_0x472632[_0x17fd('0x42')](':')[0x2];for(const _0x2b89ef of _0x3e3de6[_0x17fd('0x3d')]({'singleCharacters':!0x0})){const _0x203166=this['_getVidAttributeName'](_0x2b89ef),_0x43d15b=_0x17fd('0x57')==_0x2b89ef['type']?_0x2b89ef[_0x17fd('0x6f')][_0x17fd('0xfe')][_0x17fd('0xd9')](0x0,-0x1):_0x2b89ef[_0x17fd('0x6f')][_0x17fd('0xfe')],_0x4d795e=_0x2caf9c[_0x17fd('0x65')](_0x43d15b)[_0x17fd('0x90')](_0x203166);this[_0x17fd('0x17')][_0x17fd('0x58')](_0x4d795e,{'userId':_0xdd950e});}}}this[_0x17fd('0xd')]=this[_0x17fd('0x97')];const _0x93be30=[...Array(this[_0x17fd('0x97')])[_0x17fd('0x80')]()][_0x17fd('0xd9')](0x1)[_0x17fd('0xff')](_0x48c487=>!this[_0x17fd('0x17')][_0x17fd('0x8e')](_0x48c487));let _0x94a3ae=0x0;const _0xbb580e=new Map();for(const _0x30db36 in _0x130feb[_0x17fd('0x6e')]){const _0x2b62e9=_0x130feb['diffData'][_0x30db36]['attachChange'],_0x3b13f2=_0x20b4e8(_0x130feb[_0x17fd('0x6e')][_0x30db36][_0x17fd('0x5c')])||{},_0x3a6bb7=this[_0x17fd('0xf8')](_0x130feb['diffData'][_0x30db36]['insertions']);_0x3a6bb7[_0x17fd('0x9d')]=_0x30db36,_0x3a6bb7[_0x17fd('0x55')]=!_0x2b62e9||_0x2b62e9[_0x17fd('0x3e')],_0x3a6bb7[_0x17fd('0x3e')]=()=>_0x3a6bb7[_0x17fd('0x55')],this[_0x17fd('0x36')]['set'](_0x30db36,_0x3a6bb7),this[_0x17fd('0xfd')]['set'](_0x30db36,_0x3b13f2);const _0x18615a=this[_0x17fd('0xda')](_0x3a6bb7,Number[_0x17fd('0xa4')]);this[_0x17fd('0x1e')][_0x17fd('0x58')](_0x30db36,_0x18615a),_0xbb580e[_0x17fd('0x58')](_0x30db36,_0x3a6bb7[_0x17fd('0x3e')]()?_0x3b13f2:{});for(const [_0x461806,_0x4b6a7a]of _0x3a6bb7[_0x17fd('0xb0')]){if(!_0x461806[_0x17fd('0x47')](_0x17fd('0x89')))continue;const _0x2abaed=_0x461806[_0x17fd('0x42')](':')[0x2];for(const _0x50be9c of _0x4b6a7a[_0x17fd('0x3d')]({'singleCharacters':!0x0})){const _0x1b6a1b=this[_0x17fd('0x4f')](_0x50be9c),_0x4cf859=this['_revisionId']++,_0x3de89f=_0x17fd('0x57')==_0x50be9c[_0x17fd('0x22')]?_0x50be9c[_0x17fd('0x6f')][_0x17fd('0xfe')]['slice'](0x0,-0x1):_0x50be9c[_0x17fd('0x6f')][_0x17fd('0xfe')];_0x18615a[_0x17fd('0x65')](_0x3de89f)[_0x17fd('0x85')](_0x1b6a1b,_0x4cf859),this[_0x17fd('0x17')]['set'](_0x4cf859,{'userId':_0x2abaed});}}for(const _0x2c90ac of this[_0x17fd('0x100')]['model']['createRangeIn'](_0x3a6bb7)[_0x17fd('0x3d')]({'singleCharacters':!0x0})){const _0x3bbc67=this[_0x17fd('0x4f')](_0x2c90ac),_0x3a3828='elementEnd'==_0x2c90ac[_0x17fd('0x22')]?_0x2c90ac[_0x17fd('0x6f')][_0x17fd('0xfe')]['slice'](0x0,-0x1):_0x2c90ac[_0x17fd('0x6f')]['path'],_0x3cb196=_0x18615a[_0x17fd('0x65')](_0x3a3828);_0x3cb196[_0x17fd('0x90')](_0x3bbc67)>0x0||_0x3cb196['_setAttribute'](_0x3bbc67,_0x93be30[_0x94a3ae++]);}for(const [_0x138e7c,_0x4c19f2]of _0x3a6bb7[_0x17fd('0xb0')])_0x138e7c['startsWith'](_0x17fd('0x89'))||this[_0x17fd('0x30')][_0x17fd('0x58')](_0x138e7c,_0x4c19f2);}const _0x3616cf=G(_0x17fd('0x92'));this[_0x17fd('0x38')][_0x17fd('0x58')](_0x17fd('0x92'),_0x3616cf),this[_0x17fd('0x8c')][_0x17fd('0x58')](_0x17fd('0x92'),this['_makeIdsRoot'](_0x3616cf,0x1));const _0x58977f=G(_0x17fd('0x92'));this['_diffRoots']['set'](_0x17fd('0x92'),_0x58977f),this[_0x17fd('0x1e')][_0x17fd('0x58')]('$graveyard',this['_makeIdsRoot'](_0x58977f,0x1));const _0x2e2b0a=Array[_0x17fd('0xe7')](this[_0x17fd('0x36')])[_0x17fd('0xe4')](([_0x580212,_0x3b72e0])=>[_0x580212,q(_0x3b72e0)]);this[_0x17fd('0x12')](this['_lastTo'],_0x2e2b0a,this[_0x17fd('0x30')],_0xbb580e);}[_0x17fd('0xf8')](_0x39f5a5){const _0x432df9=JSON['parse'](_0x39f5a5),_0x29cce3=this[_0x17fd('0x100')][_0x17fd('0x101')][_0x17fd('0x8a')][_0x17fd('0x1b')],_0x5df9ec=new _0x42e188(_0x29cce3,_0x432df9['map'](_0x113bda=>J(_0x113bda,this[_0x17fd('0x100')])));return this['editor'][_0x17fd('0xb8')][_0x17fd('0x28')](_0x5df9ec);}[_0x17fd('0x12')](_0x596349,_0x7ccf45,_0x17939c,_0x3269a8){const _0x19fd94=new Map(_0x7ccf45),_0x4f8025=new Map(_0x20b4e8(_0x3269a8)),_0x2f770e=new Map();for(const [_0x499397,_0x14e7be]of _0x17939c)_0x2f770e[_0x17fd('0x58')](_0x499397,{'start':_0x14e7be[_0x17fd('0x40')]['clone'](),'end':_0x14e7be[_0x17fd('0xee')][_0x17fd('0xc6')](),'rootName':_0x14e7be[_0x17fd('0x50')][_0x17fd('0x9d')]});this[_0x17fd('0x4d')][_0x17fd('0x58')](_0x596349,{'roots':_0x19fd94,'markers':_0x2f770e,'rootsAttributes':_0x4f8025});}['_removeMetaData'](_0x399e99){this[_0x17fd('0x4d')][_0x17fd('0x59')](_0x399e99);}[_0x17fd('0x4e')](){this[_0x17fd('0x49')](),this[_0x17fd('0xa3')]=-0x1,this['_lastTo']=-0x1,this[_0x17fd('0x4d')]['clear'](),this[_0x17fd('0x7e')](this['source']);}['_reset'](){this[_0x17fd('0x17')]['clear'](),this[_0x17fd('0x19')][_0x17fd('0x20')](),this[_0x17fd('0xb2')]['clear'](),this[_0x17fd('0x36')]['clear'](),this[_0x17fd('0xfd')][_0x17fd('0x20')](),this['_baseRoots'][_0x17fd('0x20')](),this[_0x17fd('0xc1')][_0x17fd('0x20')](),this[_0x17fd('0x1e')]['clear'](),this[_0x17fd('0x8c')][_0x17fd('0x20')](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}[_0x17fd('0xda')](_0x5de9bb,_0x3396a1=null){let _0x8880ca=null;_0x5de9bb['is'](_0x17fd('0xbc'))||(_0x8880ca=new _0x35eb5d(_0x5de9bb[_0x17fd('0x13')],{'vid_start':null===_0x3396a1?this[_0x17fd('0x97')]++:_0x3396a1++}));const _0x58081a=[];for(const _0xe28a5d of _0x5de9bb[_0x17fd('0x87')]())if(_0xe28a5d['is'](_0x17fd('0xa5'))){_0x58081a[_0x17fd('0x62')](this['_makeIdsRoot'](_0xe28a5d,_0x3396a1));const _0x9a887b=_0x58081a[_0x58081a[_0x17fd('0x10')]-0x1];null!==_0x3396a1&&(_0x3396a1=_0x9a887b['is']('element',_0x17fd('0x9f'))?_0x9a887b[_0x17fd('0x90')](_0x17fd('0x1c'))+0x1:_0x9a887b[_0x17fd('0x90')]('vid_end')+0x1);}else for(let _0x489524=0x0;_0x489524<_0xe28a5d[_0x17fd('0x37')];_0x489524++)_0x58081a['push'](new _0x35eb5d('$text',{'vid':null===_0x3396a1?this[_0x17fd('0x97')]++:_0x3396a1++}));if(_0x5de9bb['is']('documentFragment')){const _0xad77ec=G(_0x5de9bb['rootName']);return _0xad77ec[_0x17fd('0x9a')](0x0,_0x58081a),_0xad77ec;}return _0x8880ca[_0x17fd('0x85')](_0x17fd('0x88'),null===_0x3396a1?this[_0x17fd('0x97')]++:_0x3396a1++),_0x8880ca[_0x17fd('0x9a')](0x0,_0x58081a),_0x8880ca;}[_0x17fd('0xe2')](_0x3d930c,_0xa999a,_0x388468){this[_0x17fd('0x49')]();const {roots:_0x1b6d99,markers:_0x5c9512,rootsAttributes:_0xa7f4a7}=this[_0x17fd('0x4d')][_0x17fd('0xba')](_0x3d930c);this[_0x17fd('0x38')]=new Map(_0x1b6d99),this[_0x17fd('0xc1')]=new Map(_0x20b4e8(_0xa7f4a7));for(const [_0x30e23a,_0x29c7ad]of this[_0x17fd('0x38')])if(_0x17fd('0x92')!==_0x30e23a&&(this[_0x17fd('0x36')][_0x17fd('0x58')](_0x30e23a,q(_0x29c7ad)),this['_diffRootsAttributes']=new Map(_0x20b4e8(_0xa7f4a7)),_0x388468)){const _0xbc1959=this['_revisionId'];this[_0x17fd('0x1e')]['set'](_0x30e23a,this[_0x17fd('0xda')](_0x29c7ad)),this[_0x17fd('0x8c')][_0x17fd('0x58')](_0x30e23a,this[_0x17fd('0xda')](_0x29c7ad,_0xbc1959));}this['_startingRevisionId']=this[_0x17fd('0x97')],this[_0x17fd('0x36')][_0x17fd('0x58')](_0x17fd('0x92'),q(this['_baseRoots'][_0x17fd('0xba')]('$graveyard'))),_0x388468&&this[_0x17fd('0x1e')][_0x17fd('0x58')](_0x17fd('0x92'),this[_0x17fd('0xda')](this[_0x17fd('0x38')][_0x17fd('0xba')]('$graveyard')));for(const [_0x4a8a92,_0x24f6c9]of _0x5c9512){const _0x5c1f3d=this[_0x17fd('0x38')]['get'](_0x24f6c9[_0x17fd('0x9d')]),_0x4dd555=this[_0x17fd('0x36')][_0x17fd('0xba')](_0x24f6c9[_0x17fd('0x9d')]),_0x57df61=new _0x6a91e2(this[_0x17fd('0x27')](_0x24f6c9['start'],_0x5c1f3d),this[_0x17fd('0x27')](_0x24f6c9[_0x17fd('0xee')],_0x5c1f3d)),_0x3ae860=this[_0x17fd('0x8f')](_0x57df61,_0x4dd555);_0x5c1f3d[_0x17fd('0xb0')][_0x17fd('0x58')](_0x4a8a92,_0x57df61),this['_markers']['set'](_0x4a8a92,_0x3ae860);}this[_0x17fd('0xdc')](_0x3d930c,_0xa999a,_0x388468);}[_0x17fd('0xdc')](_0x20a05c,_0x30224d,_0x45b42d){for(const _0x178d81 of this['source'][_0x17fd('0x45')](_0x20a05c,_0x30224d))this[_0x17fd('0xe8')](_0x178d81,_0x45b42d);for(const _0x406f64 of this[_0x17fd('0x36')][_0x17fd('0x60')]())_0x406f64['markers'][_0x17fd('0x20')]();for(const [_0x38768e,_0x49b506]of this[_0x17fd('0x30')]){this['_diffRoots'][_0x17fd('0xba')](_0x49b506['root'][_0x17fd('0x9d')])[_0x17fd('0xb0')][_0x17fd('0x58')](_0x38768e,_0x49b506[_0x17fd('0xc6')]());}const _0x1973c4=new Map(),_0x3d3cc9=new Map();for(const [_0x564b27,_0x2ae76f]of this[_0x17fd('0x36')])_0x1973c4[_0x17fd('0x58')](_0x564b27,q(_0x2ae76f)),_0x3d3cc9[_0x17fd('0x58')](_0x564b27,this[_0x17fd('0xfd')][_0x17fd('0xba')](_0x564b27));this['_saveMetaData'](_0x30224d,_0x1973c4,this[_0x17fd('0x30')],_0x3d3cc9);}[_0x17fd('0x3f')](_0x263d09){const _0x3c1e64=Array[_0x17fd('0xe7')](this[_0x17fd('0x4d')]['keys']());_0x3c1e64[_0x17fd('0x43')]((_0x3487c5,_0x5dda57)=>_0x3487c5-_0x5dda57),_0x3c1e64[_0x17fd('0xd6')]();for(const _0x2e8e95 of _0x3c1e64)if(_0x2e8e95<_0x263d09)return _0x2e8e95;return Number[_0x17fd('0xa4')];}[_0x17fd('0x64')](_0x4c7e95,_0x4af267){const _0x178c63=Array[_0x17fd('0xe7')](_0x4af267[_0x17fd('0xb0')])[_0x17fd('0xe4')](([_0x3be11a,_0x5a1741])=>[_0x3be11a,this[_0x17fd('0x8f')](_0x5a1741,_0x4c7e95)]);_0x4c7e95[_0x17fd('0xb0')]=new Map(_0x178c63);}[_0x17fd('0x6b')](_0x215cb3){for(const _0x4393d3 of this[_0x17fd('0x30')][_0x17fd('0x60')]()){const _0x36f8c7=_0x4393d3[_0x17fd('0x2d')](_0x215cb3),_0x10a201=_0x6a91e2[_0x17fd('0x75')](_0x36f8c7);_0x4393d3['start']=_0x10a201[_0x17fd('0x40')],_0x4393d3['end']=_0x10a201[_0x17fd('0xee')];}}[_0x17fd('0xe8')](_0x2f0215,_0x294ff2){if(_0x17fd('0x44')==_0x2f0215[_0x17fd('0x22')]||'detachRoot'==_0x2f0215[_0x17fd('0x22')])return void this[_0x17fd('0xc0')](_0x2f0215,_0x294ff2);if(_0x17fd('0x61')==_0x2f0215['type']){const _0x366207=_0x2f0215[_0x17fd('0xf5')][_0x17fd('0x50')][_0x17fd('0x9d')];this['_diffRoots']['has'](_0x366207)||(this[_0x17fd('0x36')]['set'](_0x366207,G(_0x366207,!0x0)),this['_diffRootsAttributes']['set'](_0x366207,{}),_0x294ff2&&this[_0x17fd('0x1e')]['set'](_0x366207,G(_0x366207,!0x0)));}else{if('addRootAttribute'==_0x2f0215[_0x17fd('0x22')]||_0x17fd('0xd8')==_0x2f0215[_0x17fd('0x22')]||_0x17fd('0xf')==_0x2f0215[_0x17fd('0x22')])return void this[_0x17fd('0x2e')](_0x2f0215);}const _0x576264=this[_0x17fd('0x29')](_0x2f0215,this[_0x17fd('0x36')]);if(_0x17fd('0x0')!==_0x2f0215[_0x17fd('0x22')]&&(_0x576264['_execute'](),this[_0x17fd('0x6b')](_0x576264)),_0x294ff2)switch(_0x576264[_0x17fd('0x22')]){case _0x17fd('0x61'):this['_handleInsertOperation'](_0x2f0215);break;case _0x17fd('0x48'):case _0x17fd('0x2f'):case _0x17fd('0xcd'):this[_0x17fd('0xd7')](_0x2f0215);break;case _0x17fd('0xcf'):this[_0x17fd('0x53')](_0x2f0215);break;case _0x17fd('0x42'):this['_handleSplitOperation'](_0x2f0215);break;case _0x17fd('0x0'):this[_0x17fd('0xbf')](_0x2f0215);}}['_cloneOperation'](_0x17b41b,_0x39b317){const _0x26a86f=_0x17b41b[_0x17fd('0xc6')]();return _0x26a86f[_0x17fd('0xb3')]=_0x17b41b[_0x17fd('0xb3')],this[_0x17fd('0x1a')](_0x26a86f,_0x39b317),_0x26a86f;}[_0x17fd('0x52')](_0x3d2b92){return _0x3d2b92[_0x17fd('0xe4')](_0x450e53=>{const _0x7836e8=this[_0x17fd('0x4f')](_0x450e53);return Number(_0x450e53[_0x17fd('0xea')][_0x17fd('0x90')](_0x7836e8));});}[_0x17fd('0x99')](_0x34a69a,_0x56260f){if(_0x34a69a['is'](_0x17fd('0xa5'),_0x17fd('0x9f')))_0x56260f[_0x17fd('0x62')]({'item':_0x34a69a,'type':_0x17fd('0xa8')});else{_0x34a69a['is']('element')&&_0x56260f[_0x17fd('0x62')]({'item':_0x34a69a,'type':_0x17fd('0x5f')});for(const _0x3bc6b4 of _0x34a69a[_0x17fd('0x87')]())this[_0x17fd('0x99')](_0x3bc6b4,_0x56260f);_0x34a69a['is']('element')&&_0x56260f[_0x17fd('0x62')]({'item':_0x34a69a,'type':_0x17fd('0x57')});}return _0x56260f;}['_getState'](){const _0x424b6c=new Map(this[_0x17fd('0x17')]),_0x3c1f67=new Map(_0x424b6c),_0x27f242=new Map(),_0x5bc10f={'insertions':{},'deletions':{}},_0x276342={'insertions':{},'deletions':{}},_0x13517a=new Map(),_0x45f4ab=new Set([...this[_0x17fd('0x38')][_0x17fd('0x80')](),...this[_0x17fd('0x36')]['keys']()]);_0x45f4ab[_0x17fd('0x59')]('$graveyard');for(const _0x2364b2 of _0x45f4ab){const _0xb74643=this[_0x17fd('0x36')][_0x17fd('0xba')](_0x2364b2)||G(_0x2364b2,!0x1),_0x58a897=this[_0x17fd('0x38')][_0x17fd('0xba')](_0x2364b2)||G(_0x2364b2,!0x1);_0xb74643[_0x17fd('0x3e')]()||_0x58a897[_0x17fd('0x3e')]()?(_0x5bc10f['insertions'][_0x2364b2]=q(_0xb74643),_0x5bc10f[_0x17fd('0xd4')][_0x2364b2]=q(_0x58a897),this[_0x17fd('0x64')](_0x5bc10f['deletions'][_0x2364b2],_0x58a897),this[_0x17fd('0x64')](_0x5bc10f[_0x17fd('0x7')][_0x2364b2],_0xb74643),_0x276342[_0x17fd('0x7')][_0x2364b2]=this[_0x17fd('0x99')](this[_0x17fd('0x1e')][_0x17fd('0xba')](_0x2364b2),[]),_0x276342['deletions'][_0x2364b2]=this[_0x17fd('0x99')](this['_baseIdsRoots'][_0x17fd('0xba')](_0x2364b2)||G(_0x2364b2,!0x1),[])):_0x45f4ab[_0x17fd('0x59')](_0x2364b2);}for(const _0xa981d3 of _0x45f4ab){const _0x1dc56f=_0x276342[_0x17fd('0x7')][_0xa981d3];for(const _0x33b62e of _0x1dc56f){const _0x3940eb=this[_0x17fd('0x4f')](_0x33b62e),_0x4b3dd8=_0x33b62e['item'][_0x17fd('0x90')](_0x3940eb);_0x3c1f67[_0x17fd('0x59')](_0x4b3dd8),_0x4b3dd8>=this['_startingRevisionId']&&_0x27f242[_0x17fd('0x58')](_0x4b3dd8,_0x424b6c[_0x17fd('0xba')](_0x4b3dd8));}}for(const _0x176fa4 of _0x45f4ab){const _0x23bc0a=_0x276342['insertions'][_0x176fa4],_0x262e7b=this[_0x17fd('0x52')](_0x276342[_0x17fd('0xd4')][_0x176fa4]);let _0x32efd8=0x0;for(const _0x22d439 of _0x23bc0a){const _0x22aab2=this[_0x17fd('0x4f')](_0x22d439),_0x55a4f5=_0x22d439[_0x17fd('0xea')]['getAttribute'](_0x22aab2);if(!_0x27f242[_0x17fd('0x8e')](_0x55a4f5)&&!_0x13517a[_0x17fd('0x8e')](_0x55a4f5)){if(_0x3c1f67[_0x17fd('0x8e')](_0x55a4f5))_0x32efd8++;else{if(_0x55a4f5!=_0x262e7b[_0x32efd8]){const _0xb930f6=_0x424b6c[_0x17fd('0xba')](_0x55a4f5)||_0x424b6c['get'](_0x262e7b[_0x32efd8]);for(;_0x55a4f5!=_0x262e7b[_0x32efd8];)_0x3c1f67[_0x17fd('0x8e')](_0x262e7b[_0x32efd8])||(_0x13517a[_0x17fd('0x58')](_0x262e7b[_0x32efd8],_0xb930f6),_0x424b6c[_0x17fd('0x58')](_0x262e7b[_0x32efd8],_0xb930f6)),_0x32efd8++;}_0x32efd8++;}}}}for(const _0xc1e614 of _0x45f4ab){const _0x37ce6f=_0x276342[_0x17fd('0x7')][_0xc1e614];for(const _0x25da5e of _0x37ce6f){const _0x4ac724=this[_0x17fd('0x4f')](_0x25da5e),_0x42791f=_0x25da5e[_0x17fd('0xea')][_0x17fd('0x90')](_0x4ac724);if(_0x13517a['has'](_0x42791f)){const _0x2c133c=_0x13517a[_0x17fd('0xba')](_0x42791f);_0x3c1f67[_0x17fd('0x8e')](_0x42791f)||_0x3c1f67[_0x17fd('0x58')](_0x42791f,{..._0x2c133c}),_0x27f242['set'](_0x42791f,{..._0x2c133c});}}}for(const _0x3f7401 of _0x3c1f67[_0x17fd('0x80')]())_0x3f7401>=this['_startingRevisionId']&&_0x3c1f67['delete'](_0x3f7401);const _0x108c58=new Map();for(const _0x3c4081 of _0x45f4ab){let _0x54d8fa=_0x276342['insertions'][_0x3c4081];for(const _0x4ff5cc of _0x54d8fa)if(_0x4ff5cc[_0x17fd('0xea')]['is'](_0x17fd('0xa5'),'tableCell')){const _0x3266e1=this[_0x17fd('0x4f')](_0x4ff5cc),_0x36bb9e=_0x4ff5cc[_0x17fd('0xea')][_0x17fd('0x90')](_0x3266e1);if(_0x27f242[_0x17fd('0x8e')](_0x36bb9e)){const _0x41e0e5=_0x4ff5cc['item']['parent'][_0x17fd('0x3a')][_0x17fd('0x90')]('vid_start'),_0x13520b=_0x108c58[_0x17fd('0xba')](_0x41e0e5)||new Set();_0x13520b[_0x17fd('0x95')](_0x27f242[_0x17fd('0xba')](_0x36bb9e)['userId']),_0x108c58[_0x17fd('0x58')](_0x41e0e5,_0x13520b);}}_0x54d8fa=_0x276342['deletions'][_0x3c4081];for(const _0x345e35 of _0x54d8fa)if(_0x345e35[_0x17fd('0xea')]['is'](_0x17fd('0xa5'),_0x17fd('0x82'))){const _0x2ba20f=this[_0x17fd('0x4f')](_0x345e35),_0xd66f4c=_0x345e35[_0x17fd('0xea')][_0x17fd('0x90')](_0x2ba20f);if(_0x3c1f67['has'](_0xd66f4c)){const _0x5b815a=_0x345e35['item'][_0x17fd('0x3a')]['parent']['getAttribute'](_0x17fd('0x7d')),_0x11d27c=_0x108c58[_0x17fd('0xba')](_0x5b815a)||new Set();_0x11d27c[_0x17fd('0x95')](_0x3c1f67[_0x17fd('0xba')](_0xd66f4c)[_0x17fd('0x4b')]),_0x108c58[_0x17fd('0x58')](_0x5b815a,_0x11d27c);}}for(const _0x3484c8 of _0x108c58[_0x17fd('0x80')]())(_0x27f242[_0x17fd('0x8e')](_0x3484c8)||_0x3c1f67['has'](_0x3484c8))&&_0x108c58[_0x17fd('0x59')](_0x3484c8);}for(const _0x1e4117 of _0x45f4ab){const _0x31bcb9=_0x276342[_0x17fd('0x7')][_0x1e4117];let _0x4f31a2=null,_0x28e690=null;for(const _0x20b09c of _0x31bcb9){const _0x9c66f0=this[_0x17fd('0x4f')](_0x20b09c),_0x35d547=_0x20b09c[_0x17fd('0xea')][_0x17fd('0x90')](_0x9c66f0),_0x54e66b=_0x108c58[_0x17fd('0xba')](_0x35d547);_0x54e66b&&_0x17fd('0x5f')==_0x20b09c[_0x17fd('0x22')]&&(_0x4f31a2=Array['from'](_0x54e66b)[0x0],_0x28e690=_0x20b09c[_0x17fd('0xea')][_0x17fd('0x90')](_0x17fd('0x88'))),_0x4f31a2&&(_0x3c1f67[_0x17fd('0x58')](_0x35d547,{'userId':_0x4f31a2}),_0x27f242['set'](_0x35d547,{'userId':_0x4f31a2})),_0x35d547==_0x28e690&&(_0x4f31a2=null,_0x28e690=null);}}const _0x48c78f={},_0x296565=new Set();for(const _0x24675c of _0x45f4ab){const _0x418c68=_0x5bc10f[_0x17fd('0xd4')][_0x24675c],_0xac2ccd=_0x5bc10f[_0x17fd('0x7')][_0x24675c];for(const {userId:_0x4f6ed1}of this[_0x17fd('0x19')][_0x17fd('0x60')]())null!==_0x4f6ed1&&_0x296565[_0x17fd('0x95')](_0x4f6ed1);for(const {userId:_0x2e73c4}of this[_0x17fd('0xb2')][_0x17fd('0x60')]())null!==_0x2e73c4&&_0x296565['add'](_0x2e73c4);this[_0x17fd('0x103')](_0xac2ccd,_0x276342[_0x17fd('0x7')][_0x24675c],_0x27f242,'insertion',_0x296565),this[_0x17fd('0x103')](_0x418c68,_0x276342[_0x17fd('0xd4')][_0x24675c],_0x3c1f67,_0x17fd('0x5b'),_0x296565),_0x48c78f[_0x24675c]={'insertions':this['_prepareViewToSave'](_0xac2ccd),'deletions':this[_0x17fd('0xf6')](_0x418c68),'attachChange':this[_0x17fd('0xb2')][_0x17fd('0xba')](_0x24675c)||null,'attributesBefore':_0x20b4e8(this[_0x17fd('0xc1')][_0x17fd('0xba')](_0x24675c))||{},'attributesAfter':_0x20b4e8(this['_diffRootsAttributes']['get'](_0x24675c))};}return{'diffData':_0x48c78f,'authorsIds':Array[_0x17fd('0xe7')](_0x296565)};}[_0x17fd('0x96')](_0x42686c){for(const [,_0x346bd9]of _0x42686c[_0x17fd('0xb0')]){const _0x110ecf=_0x346bd9[_0x17fd('0x40')][_0x17fd('0xeb')]()[_0x17fd('0xff')](_0x5a0a30=>_0x17fd('0x82')==_0x5a0a30['name']);for(const _0x427920 of _0x110ecf)0x1==_0x427920['childCount']&&_0x427920[_0x17fd('0x2')](0x0)['is'](_0x17fd('0xa5'),_0x17fd('0xac'))&&_0x427920['getChild'](0x0)['_setAttribute'](_0x17fd('0x7b'),!0x0);}}['_prepareViewToSave'](_0x10150c){this['_processRootBeforeSave'](_0x10150c);const _0x50c249=this[_0x17fd('0x100')][_0x17fd('0xb8')][_0x17fd('0xe6')](_0x10150c,{}),_0x1228a2=Array['from'](_0x50c249['getChildren']())[_0x17fd('0xe4')](_0x1e1ba2=>this[_0x17fd('0x4c')](_0x1e1ba2));return JSON[_0x17fd('0xa1')](_0x1228a2);}[_0x17fd('0x4c')](_0x428bb9){if(_0x428bb9['is']('$text'))return _0x428bb9[_0x17fd('0xb8')];{const _0x1c5cd2=_0x428bb9;return{'type':Object[_0x17fd('0x80')](B)[_0x17fd('0xaf')](_0x414017=>_0x428bb9 instanceof B[_0x414017]),'name':_0x1c5cd2['name'],'attributes':Array[_0x17fd('0xe7')](_0x1c5cd2[_0x17fd('0x35')]()),'children':Array[_0x17fd('0xe7')](_0x1c5cd2[_0x17fd('0x87')]())[_0x17fd('0xe4')](_0x6cd95c=>this[_0x17fd('0x4c')](_0x6cd95c))};}}['_markChanges'](_0x1b620f,_0x3111ec,_0x5ce1fa,_0x2aa4c5,_0xe02a1c){let _0x4d5d6d=null,_0x17bba2=null,_0x3f465e=0x0;const _0x89d6b5=this[_0x17fd('0x100')][_0x17fd('0x8d')];for(let _0x566ce8=0x0;_0x566ce8<_0x3111ec['length'];_0x566ce8++){const _0xef5509=this['_getVidAttributeName'](_0x3111ec[_0x566ce8]),_0x5bcaff=_0x3111ec[_0x566ce8][_0x17fd('0xea')][_0x17fd('0x90')](_0xef5509),_0x312648=_0x5ce1fa['get'](_0x5bcaff),_0x4bd9f7=_0x566ce8==_0x3111ec[_0x17fd('0x10')]-0x1;(!_0x4d5d6d&&_0x312648&&(_0x4d5d6d=_0x312648,_0x17bba2=_0x3111ec[_0x566ce8]),_0x4d5d6d&&(!_0x312648||_0x312648['userId']!=_0x4d5d6d[_0x17fd('0x4b')]))&&(_0xe8c684(_0x312648,L(_0x17bba2,_0x1b620f,_0x89d6b5),L(_0x3111ec[_0x566ce8],_0x1b620f,_0x89d6b5)),_0x4d5d6d=_0x312648||null,_0x17bba2=_0x312648?_0x3111ec[_0x566ce8]:null),_0x4d5d6d&&_0x4bd9f7&&_0xe8c684(_0x312648,L(_0x17bba2,_0x1b620f,_0x89d6b5),W(_0x3111ec[_0x566ce8],_0x1b620f,_0x89d6b5));}function _0xe8c684(_0x6ceb8b,_0x354849,_0x41a450){const _0x4b3393=_0x4d5d6d[_0x17fd('0x4b')],_0x5f3822='revision:'+_0x2aa4c5+':'+_0x4b3393+':'+_0x3f465e++,_0x148d4d=_0x89d6b5[_0x17fd('0x1')](_0x354849,_0x41a450);_0x1b620f['markers'][_0x17fd('0x58')](_0x5f3822,_0x148d4d),null!==_0x4b3393&&_0xe02a1c['add'](_0x4b3393);}}['_getVidAttributeName'](_0x5501ab){switch(_0x5501ab[_0x17fd('0x22')]){case _0x17fd('0x5f'):return _0x17fd('0x7d');case _0x17fd('0x57'):return _0x17fd('0x88');default:return _0x17fd('0x1c');}}[_0x17fd('0x1a')](_0x2e24b7,_0x350064){_0x2e24b7[_0x17fd('0x77')]=null;for(const _0x15fa8c in _0x2e24b7){const _0x2829a7=_0x2e24b7[_0x15fa8c];if(_0x2829a7 instanceof _0x4d3384){const _0x43e9d5=_0x350064[_0x17fd('0xba')](_0x2829a7[_0x17fd('0x50')]['rootName']);_0x2e24b7[_0x15fa8c]=this[_0x17fd('0x27')](_0x2829a7,_0x43e9d5);}if(_0x2829a7 instanceof _0x6a91e2){const _0x3d077d=_0x350064[_0x17fd('0xba')](_0x2829a7[_0x17fd('0x50')][_0x17fd('0x9d')]);_0x2e24b7[_0x15fa8c]=this[_0x17fd('0x8f')](_0x2829a7,_0x3d077d);}_0x17fd('0x50')===_0x15fa8c&&(_0x2e24b7[_0x17fd('0x50')]=_0x350064[_0x17fd('0xba')](_0x2e24b7[_0x17fd('0x50')]['rootName']));}}[_0x17fd('0x8f')](_0x211b59,_0x2d877c){return this[_0x17fd('0x100')]['model'][_0x17fd('0x1')](this[_0x17fd('0x27')](_0x211b59[_0x17fd('0x40')],_0x2d877c),this[_0x17fd('0x27')](_0x211b59[_0x17fd('0xee')],_0x2d877c));}[_0x17fd('0x27')](_0x1e5f09,_0x1a2621){return this[_0x17fd('0x100')]['model'][_0x17fd('0xfa')](_0x1a2621,_0x1e5f09[_0x17fd('0xfe')],_0x1e5f09[_0x17fd('0xde')]);}[_0x17fd('0x94')](_0x13b530){const _0x270e9c=this[_0x17fd('0x1e')][_0x17fd('0xba')](_0x13b530[_0x17fd('0xf5')][_0x17fd('0x50')][_0x17fd('0x9d')]),_0x3e407a=this[_0x17fd('0x27')](_0x13b530[_0x17fd('0xf5')],_0x270e9c),_0xff5069=null===_0x13b530[_0x17fd('0xb3')]?null:_0x13b530[_0x17fd('0xb3')]||this['editor'][_0x17fd('0xca')][_0x17fd('0xba')](_0x17fd('0x69'))['me']['id'],_0x2758cc=_0x3e407a[_0x17fd('0x3a')],_0x155081=this[_0x17fd('0x97')],_0xd3a5fc=[];for(const _0x5db39a of _0x13b530[_0x17fd('0xce')])if(_0x5db39a['is']('element'))_0xd3a5fc[_0x17fd('0x62')](this['_makeIdsRoot'](_0x5db39a));else for(let _0x604b16=0x0;_0x604b16<_0x5db39a['offsetSize'];_0x604b16++)_0xd3a5fc['push'](new _0x35eb5d(_0x17fd('0x9f'),{'vid':this['_revisionId']++}));const _0x45fc99=this[_0x17fd('0x97')];for(let _0x590958=_0x155081;_0x590958<_0x45fc99;_0x590958++)this['_touched'][_0x17fd('0x58')](_0x590958,{'userId':_0xff5069});_0x2758cc[_0x17fd('0x9a')](_0x3e407a['offset'],_0xd3a5fc);}[_0x17fd('0xd7')](_0x32e0fe){(_0x32e0fe=this[_0x17fd('0x29')](_0x32e0fe,this[_0x17fd('0x1e')]))[_0x17fd('0x56')]();const _0x3bd8e5=null===_0x32e0fe[_0x17fd('0xb3')]?null:_0x32e0fe[_0x17fd('0xb3')]||this[_0x17fd('0x100')][_0x17fd('0xca')][_0x17fd('0xba')]('Users')['me']['id'],_0x476bc8=_0x32e0fe[_0x17fd('0x5a')](),_0x2fcc6e=_0x476bc8[_0x17fd('0x3a')],_0x1f42a7=_0x476bc8['offset'];!function _0x154ba8(_0x3f6afb,_0x70e753,_0x464fd4,_0x3a9c44){for(let _0x557659=_0x464fd4;_0x557659<_0x3a9c44;_0x557659++){const _0xe4aefc=_0x70e753['getChild'](_0x557659);_0xe4aefc['is'](_0x17fd('0xa5'),_0x17fd('0x9f'))?_0x3f6afb['set'](_0xe4aefc['getAttribute'](_0x17fd('0x1c')),{'userId':_0x3bd8e5}):(_0x3f6afb['set'](_0xe4aefc['getAttribute']('vid_start'),{'userId':_0x3bd8e5}),_0x154ba8(_0x3f6afb,_0xe4aefc,0x0,_0xe4aefc[_0x17fd('0xed')]),_0x3f6afb[_0x17fd('0x58')](_0xe4aefc[_0x17fd('0x90')]('vid_end'),{'userId':_0x3bd8e5}));}}(this[_0x17fd('0x17')],_0x2fcc6e,_0x1f42a7,_0x1f42a7+_0x32e0fe[_0x17fd('0xdd')]);}[_0x17fd('0x53')](_0x40377c){const _0x39e135=null===(_0x40377c=this['_cloneOperation'](_0x40377c,this[_0x17fd('0x1e')]))[_0x17fd('0xb3')]?null:_0x40377c[_0x17fd('0xb3')]||this[_0x17fd('0x100')][_0x17fd('0xca')]['get']('Users')['me']['id'],_0x3038ac=_0x40377c[_0x17fd('0x74')]['parent'],_0x40e221=_0x40377c[_0x17fd('0x2c')][_0x17fd('0x3a')],_0x1193e2=_0x3038ac['getAttribute']('vid_end'),_0x514a0d=_0x40e221[_0x17fd('0x90')](_0x17fd('0x7d'));_0x3038ac[_0x17fd('0x85')]('vid_end',_0x40e221[_0x17fd('0x90')](_0x17fd('0x88'))),_0x40e221['_setAttribute'](_0x17fd('0x88'),_0x1193e2),this[_0x17fd('0x17')]['set'](_0x514a0d,{'userId':_0x39e135}),this['_touched']['set'](_0x1193e2,{'userId':_0x39e135}),_0x40377c[_0x17fd('0x56')]();}[_0x17fd('0xf0')](_0x59c0ac){const _0x46c250=null===(_0x59c0ac=this[_0x17fd('0x29')](_0x59c0ac,this[_0x17fd('0x1e')]))[_0x17fd('0xb3')]?null:_0x59c0ac[_0x17fd('0xb3')]||this['editor']['plugins']['get'](_0x17fd('0x69'))['me']['id'],_0x42d940=_0x59c0ac['graveyardPosition'],_0x235d00=_0x59c0ac['splitPosition'][_0x17fd('0x3a')];_0x59c0ac[_0x17fd('0x56')]();const _0x13f3f8=_0x235d00[_0x17fd('0x90')]('vid_end'),_0x79bae3=_0x59c0ac[_0x17fd('0xa6')]['nodeAfter'];if(_0x42d940){const _0x26ea5b=_0x79bae3[_0x17fd('0x90')](_0x17fd('0x88')),_0x6e8b8a=_0x235d00[_0x17fd('0x90')]('vid_end');_0x235d00[_0x17fd('0x85')](_0x17fd('0x88'),_0x26ea5b),_0x79bae3['_setAttribute']('vid_end',_0x6e8b8a),this[_0x17fd('0x17')]['set'](_0x235d00[_0x17fd('0x90')](_0x17fd('0x88')),{'userId':_0x46c250}),this[_0x17fd('0x17')][_0x17fd('0x58')](_0x79bae3['getAttribute'](_0x17fd('0x7d')),{'userId':_0x46c250});}else{const _0x1901e3=this[_0x17fd('0x97')]++,_0x7aade5=this[_0x17fd('0x97')]++;_0x235d00['_setAttribute'](_0x17fd('0x88'),_0x1901e3),_0x79bae3[_0x17fd('0x85')](_0x17fd('0x7d'),_0x7aade5),_0x79bae3['_setAttribute'](_0x17fd('0x88'),_0x13f3f8),this[_0x17fd('0x17')]['set'](_0x1901e3,{'userId':_0x46c250}),this['_touched']['set'](_0x7aade5,{'userId':_0x46c250});}}[_0x17fd('0xbf')](_0x4c668f){if(!_0x4c668f[_0x17fd('0x54')])return;const _0x4e5e0b=(_0x4c668f=this[_0x17fd('0x29')](_0x4c668f,this[_0x17fd('0x36')]))['oldRange']?_0x4c668f[_0x17fd('0x9b')][_0x17fd('0x50')]:null,_0x10f901=_0x4c668f[_0x17fd('0x6c')]?_0x4c668f['newRange'][_0x17fd('0x50')]:null;_0x4e5e0b&&this[_0x17fd('0x30')][_0x17fd('0x59')](_0x4c668f[_0x17fd('0x13')]),_0x10f901&&this['_markers'][_0x17fd('0x58')](_0x4c668f['name'],_0x4c668f[_0x17fd('0x6c')]['clone']());const _0x241406=null===_0x4c668f[_0x17fd('0xb3')]?null:_0x4c668f[_0x17fd('0xb3')]||this['editor'][_0x17fd('0xca')][_0x17fd('0xba')]('Users')['me']['id'],_0x11a7b6=_0x4c668f[_0x17fd('0x13')];if(!this[_0x17fd('0x19')]['has'](_0x11a7b6))return void this[_0x17fd('0x19')]['set'](_0x11a7b6,{'range':_0x4c668f['oldRange'],'userId':_0x241406});const _0x32f95f=this['_touchedMarkers'][_0x17fd('0xba')](_0x11a7b6),_0x536833=_0x32f95f[_0x17fd('0x23')],_0x256089=_0x4c668f[_0x17fd('0x6c')];null==_0x536833&&null==_0x256089||_0x536833&&_0x256089&&_0x536833[_0x17fd('0xe0')](_0x256089)?this[_0x17fd('0x19')][_0x17fd('0x59')](_0x4c668f[_0x17fd('0x13')]):_0x32f95f[_0x17fd('0x4b')]=_0x241406;}[_0x17fd('0xc0')](_0x3b2e9f,_0x247383){this[_0x17fd('0x36')]['has'](_0x3b2e9f[_0x17fd('0x9d')])?this[_0x17fd('0x36')][_0x17fd('0xba')](_0x3b2e9f[_0x17fd('0x9d')])[_0x17fd('0x55')]=_0x3b2e9f['isAdd']:(this[_0x17fd('0x36')][_0x17fd('0x58')](_0x3b2e9f[_0x17fd('0x9d')],G(_0x3b2e9f['rootName'],!0x0)),this['_diffRootsAttributes'][_0x17fd('0x58')](_0x3b2e9f[_0x17fd('0x9d')],{}),_0x247383&&this[_0x17fd('0x1e')][_0x17fd('0x58')](_0x3b2e9f[_0x17fd('0x9d')],G(_0x3b2e9f[_0x17fd('0x9d')],!0x0)));const _0x5ce670=null===_0x3b2e9f['_authorId']?null:_0x3b2e9f[_0x17fd('0xb3')]||this[_0x17fd('0x100')]['plugins'][_0x17fd('0xba')](_0x17fd('0x69'))['me']['id'],_0x502f31=this[_0x17fd('0xb2')][_0x17fd('0xba')](_0x3b2e9f[_0x17fd('0x9d')]);_0x502f31&&_0x502f31[_0x17fd('0x4b')]===_0x5ce670?this[_0x17fd('0xb2')][_0x17fd('0x59')](_0x3b2e9f['rootName']):this['_touchedRoots'][_0x17fd('0x58')](_0x3b2e9f['rootName'],{'userId':_0x5ce670,'isAttached':_0x3b2e9f[_0x17fd('0x9e')]});}[_0x17fd('0x2e')](_0x54a0f3){const _0x2ca440=this[_0x17fd('0xfd')]['get'](_0x54a0f3[_0x17fd('0x50')][_0x17fd('0x9d')]);null===_0x54a0f3[_0x17fd('0x39')]?delete _0x2ca440[_0x54a0f3[_0x17fd('0xf1')]]:_0x2ca440[_0x54a0f3[_0x17fd('0xf1')]]=_0x54a0f3[_0x17fd('0x39')];}}function q(_0xd1da7c){const _0x80cf79=G(_0xd1da7c[_0x17fd('0x9d')],_0xd1da7c[_0x17fd('0x3e')]());for(const _0x48e9af of _0xd1da7c[_0x17fd('0x87')]()){const _0x4e0f43=_0x48e9af[_0x17fd('0xb4')](!0x0);_0x80cf79[_0x17fd('0x70')](_0x4e0f43);}return _0x80cf79;}function G(_0x1723d8,_0x8fa552=!0x0){const _0x54f0f6=new _0x5a2348();return _0x54f0f6[_0x17fd('0x9d')]=_0x1723d8,_0x54f0f6[_0x17fd('0x55')]=_0x8fa552,_0x54f0f6[_0x17fd('0x3e')]=()=>_0x54f0f6[_0x17fd('0x55')],_0x54f0f6;}function L(_0x10b7bf,_0x54b040,_0x5437c8){const _0x50b702=_0x17fd('0x57')==_0x10b7bf[_0x17fd('0x22')]?_0x5437c8[_0x17fd('0xd0')](_0x10b7bf[_0x17fd('0xea')],_0x17fd('0xee')):_0x5437c8['createPositionBefore'](_0x10b7bf[_0x17fd('0xea')]);return _0x5437c8[_0x17fd('0xfa')](_0x54b040,_0x50b702[_0x17fd('0xfe')],_0x50b702[_0x17fd('0xde')]);}function W(_0x2912a5,_0x3e9c32,_0x463008){const _0x368621='elementStart'==_0x2912a5[_0x17fd('0x22')]?_0x463008[_0x17fd('0xd0')](_0x2912a5[_0x17fd('0xea')],0x0):_0x463008[_0x17fd('0x73')](_0x2912a5[_0x17fd('0xea')]);return _0x463008[_0x17fd('0xfa')](_0x3e9c32,_0x368621[_0x17fd('0xfe')],_0x368621[_0x17fd('0xde')]);}
|