@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231013.0 → 0.0.0-nightly-20231015.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/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2fb1=['default','newRevisionId','conversion','_revisions','addMarker:revision-suggestion:deletion','isEnabled','compare','deletion','find','unshift','low','_getChangeFromId','isBlock','wrap','addRevisionData','concat','ck-suggestion-preview-marker','_fixObsoleteTags','repository','isNavigationMode','maxOffset','isRemoved','addRevision','_getDiff','first','init','isContent','activeView','removeMarker:revision','roots','getClientRects','ck-revision-history-root-','splice','userId','attributes','isReady','mouseover','range','adapter','_makeModelFromViewString','oldRevisionId','attribute:vid','softBreak','markerName','getChild','revisionHistoryAttachChange','vid','upcast','activeChange','_threeWayMerge','attributesAfter','editingDowncast','isCollapsed','editor','processor','from','delete','change:numberOfChanges','getIndex','consumable','highest','uiElement','toViewPosition','markerNameToElements','startsWith','nodeAfter','consume','locale','all','change:activeView','model','_balloon','mousedown','clear','removeClass','next','shift','name','_step','ck-suggestion-marker-merge','includes','document','pairId','string','end','_appendChild','elementStart','vid_start','commands','showStack','selection','destroy','filter','bindElementToMarker','execute','_removeUnsupportedChanges','ck-editor__editable__overlay','getRevisionData','isObject','dataToMarker','writer','addMarker:revision-suggestion:insertion','revision-viewer','createPositionFromPath','changes','useFillerType','forward','change:isEnabled','isAddSuggestion','RevisionsRepository','has','_data','code','insertions','requires','_setDistance','modelRange','_makeModelFromTape','revision-suggestion','level','_activeViewTarget','bind','elementToAttribute','revision:','_cleanUp','keys','downcastDispatcher','enableReadOnlyMode','ck-suggestion-preview-marker-','suggestion:','getDomRoot','POSITIVE_INFINITY','isInline','distance','ck-suggestion-marker-','collaboration.channelId','observeMarkers','getRootNames','isLimit','dataDowncast','mapper','push','ck-revision-history-root-add','_refreshStartEndIndex','_markSuggestions','_joinTapes','attachChange','children','isIncorrect','revision-suggestion:','plugins','_update','refresh','nextSibling','test','createRange','addClass','backward','sort','_removeRevisionMarkers','rootName','change:isReady','removeAttribute','get','nextPosition','isBefore','bottom','domEvent','affectsData','_processTape','getAttribute','add','left','start','_markMarkers','enqueueChange','createRevision','ck-revision-history-root-remove','span','changeId','done','_cleanMarkers','revisionHistoryLabel','isEqual','resolve','data-change-id','markerRange','restoreRevision','text','then','split','getItems','getRevision','isAtEnd','target','getAttributes','_findChangeIdFromDomTarget','getCustomProperty','indexOf','toViewRange','addHighlight','RevisionViewer','isAfter','getWalker','editing','toModel','_markMismatchedRemovedTags','_getViewObj','markersEnd','numberOfChanges','createUIElement','isSuggestion','deletions','change:activeChange','-new','_getRevisionsRange','WidgetToolbarRepository','schema','for','endIndex','_getViewForChange','high','hasClass','element','remove','stop','index','showNextChange','authors','parse','isRemoveSuggestion','_changeView','removeMarker:revision-suggestion','setAttribute','markerToHighlight','startIndex','currentChangeNumber','ck-suggestion-marker--active','item','loadRevisionData','createRangeIn','isOnRoot','set','toViewElement','listenTo','type','_removeMissingPairs','abs','insert','_markInsertions','addMarker:revision','revisionHistory','viewItem','isAtStart','vid_end','insertion','_changeIdToChange','config','createAttributeElement','_sortAndFilterDiffChanges','comment','ck-revision-history-root--active','unbindElementFromMarkerName','getRoot','error','view','isAdded','map','reconvertMarker','diffData','parent','checkAttribute','side','length','elementEnd','_initInteractions','merge','pluginName','change','pop','previousPosition','markers','revision','slice','revision-start','right','data','isAttached','attributesBefore','diff','_setChanges','forEach','markersStart'];(function(_0x4b9377,_0x2fb1d5){const _0x186ab0=function(_0x59b1e2){while(--_0x59b1e2){_0x4b9377['push'](_0x4b9377['shift']());}};_0x186ab0(++_0x2fb1d5);}(_0x2fb1,0x77));const _0x186a=function(_0x4b9377,_0x2fb1d5){_0x4b9377=_0x4b9377-0x0;let _0x186ab0=_0x2fb1[_0x4b9377];return _0x186ab0;};import{Plugin as _0x55afca,Command as _0x49ffb8}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x225745}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1acc54}from'ckeditor5/src/ui';import{DocumentFragment as _0xbee08,Element as _0x5e7e65,Text as _0x57c2d3,ViewDocumentFragment as _0x4ec7a3,ViewText as _0x3a18cf,ViewElement as _0x4247fb,ViewContainerElement as _0x52cfd0,ViewAttributeElement as _0x2bbe70,ViewEmptyElement as _0x507be4,ViewRawElement as _0x4ba731,ViewUIElement as _0x579a40}from'ckeditor5/src/engine';import{Users as _0x27136f,getMarkerDomElement as _0x20bc80}from'ckeditor5-collaboration/src/collaboration-core';import _0x514d1f from'./ui/revisionviewer/changedetailsview';import _0x113ba8 from'./revisionsrepository';import _0x3c4202 from'./changeitem';import{default as _0x209175}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x40b5ea}from'lodash-es';const tt={'c':_0x52cfd0,'a':_0x2bbe70,'e':_0x507be4,'r':_0x4ba731,'u':_0x579a40};export default class d extends _0x55afca{static get[_0x186a('0x9e')](){return _0x186a('0x52');}static get[_0x186a('0x120')](){return[_0x27136f,_0x1acc54,_0x113ba8];}constructor(_0xa9bfa8){super(_0xa9bfa8),this[_0x186a('0xc0')]=this[_0x186a('0xe3')]['plugins'][_0x186a('0x2c')](_0x186a('0x11b')),this[_0x186a('0x7b')](_0x186a('0xde'),null),this[_0x186a('0x7b')](_0x186a('0xc9'),null),this[_0x186a('0x1')]=null,this[_0x186a('0x7b')](_0x186a('0xaa'),null),this[_0x186a('0x7b')](_0x186a('0xd1'),!0x1),this[_0x186a('0x7b')]('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1e3c31,_0x4ea8ff,_0x370549)=>{this[_0x186a('0xde')]=null,this['activeView']=null,this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0x9f')](_0x2dda9e=>{for(const _0x3a9174 of this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0xff')][_0x186a('0xcb')])_0x370549?_0x2dda9e[_0x186a('0xf8')](_0x186a('0x10e'),_0x3a9174):_0x2dda9e[_0x186a('0x25')](_0x186a('0x10e'),_0x3a9174);});}),this[_0x186a('0x2')](_0x186a('0xc1'))['to'](this,_0x186a('0xde'),_0xf33359=>null!==_0xf33359),this[_0x186a('0x2')](_0x186a('0x75'))['to'](this,_0x186a('0xd1'),this,_0x186a('0xaa'),this,_0x186a('0xde'),(_0x5d430f,_0x2ff8ec,_0x35f08c)=>_0x5d430f&&_0x35f08c?_0x2ff8ec['changes'][_0x186a('0xe8')](_0x35f08c):0x0),this[_0x186a('0x2')](_0x186a('0x5a'))['to'](this,_0x186a('0xd1'),this,'diff',(_0x4936cd,_0x1b3686)=>_0x4936cd?_0x1b3686[_0x186a('0x116')]['length']:0x0),this[_0x186a('0x70')]=null,this[_0x186a('0x89')]=new Map(),this['adapter']=null,this[_0x186a('0xf5')]=this[_0x186a('0xe3')][_0x186a('0x1f')]['get'](_0x1acc54);}[_0x186a('0xc7')](){const _0x17774e=this[_0x186a('0xe3')],_0x57c3bb=new ShowChangeCommand(_0x17774e,{'direction':_0x186a('0x26')}),_0xdb091b=new ShowChangeCommand(_0x17774e,{'direction':_0x186a('0x118')});(_0x17774e[_0x186a('0x106')][_0x186a('0x34')]('showPreviousChange',_0x57c3bb),_0x17774e[_0x186a('0x106')]['add'](_0x186a('0x6c'),_0xdb091b),_0x17774e[_0x186a('0x106')][_0x186a('0x34')](_0x186a('0x44'),new RestoreRevisionCommand(_0x17774e)),this['on'](_0x186a('0xe7'),()=>{_0x57c3bb['refresh'](),_0xdb091b[_0x186a('0x21')]();}),this['_setConversion'](),this[_0x186a('0x9c')](),_0x17774e[_0x186a('0x8')](_0x186a('0x114')),_0x17774e[_0x186a('0x1f')][_0x186a('0x11c')](_0x186a('0x61')))&&_0x17774e[_0x186a('0x1f')][_0x186a('0x2c')](_0x186a('0x61'))['forceDisabled'](_0x186a('0x114'));}async[_0x186a('0x10f')](_0x5635b9){await this[_0x186a('0x78')](_0x5635b9);const _0x2b330d={};for(const _0xdeca6d in _0x5635b9[_0x186a('0x96')]){if(_0x5635b9[_0x186a('0x96')][_0xdeca6d][_0x186a('0x1b')]&&!_0x5635b9[_0x186a('0x96')][_0xdeca6d]['attachChange'][_0x186a('0xa8')])continue;const _0x5c53f0=this[_0x186a('0x28')](JSON['parse'](_0x5635b9[_0x186a('0x96')][_0xdeca6d]['insertions'])),_0x359f21=this[_0x186a('0xe3')]['editing'][_0x186a('0x92')][_0x186a('0xff')],_0x3010bc=new _0x4ec7a3(_0x359f21,_0x5c53f0[_0x186a('0x94')](_0x5e44eb=>this['_getViewObj'](_0x5e44eb)));this[_0x186a('0xe3')]['data']['processor']['useFillerType']('marked'),_0x2b330d[_0xdeca6d]=this['editor'][_0x186a('0xa7')][_0x186a('0xe4')]['toData'](_0x3010bc),this['editor']['data'][_0x186a('0xe4')][_0x186a('0x117')](_0x186a('0xae'));}return _0x2b330d;}async['getRevisionRootsAttributes'](_0x309e56){await this[_0x186a('0x78')](_0x309e56);const _0x1e991e={};for(const _0x2995dd in _0x309e56[_0x186a('0x96')])_0x309e56[_0x186a('0x96')][_0x2995dd]['attachChange']&&!_0x309e56[_0x186a('0x96')][_0x2995dd][_0x186a('0x1b')][_0x186a('0xa8')]||(_0x1e991e[_0x2995dd]=_0x309e56[_0x186a('0x96')][_0x2995dd][_0x186a('0xe0')]||{});return _0x1e991e;}[_0x186a('0x28')](_0x24b548){return(_0x24b548=_0x24b548['filter'](_0x5d235f=>!_0x5d235f['name']||_0x186a('0xa5')!==_0x5d235f['name']&&'revision-end'!==_0x5d235f[_0x186a('0xfb')]))[_0x186a('0xac')](_0x3a4882=>{_0x186a('0x101')!=typeof _0x3a4882&&(_0x3a4882[_0x186a('0x1c')]=this[_0x186a('0x28')](_0x3a4882['children']),_0x3a4882[_0x186a('0xd0')]=_0x3a4882[_0x186a('0xd0')]['filter'](_0x4de715=>!_0x4de715[0x0][_0x186a('0xee')]('data-revision-')));}),_0x24b548;}async[_0x186a('0xb4')](_0x191a92,_0x5e8443,_0x32a694=!0x1){if(!this['isEnabled'])return;const _0x4eaaf9=this[_0x186a('0xaa')],_0x55fbc6=this[_0x186a('0xc0')],_0x54e34a=_0x186a('0x101')==typeof _0x191a92?_0x55fbc6[_0x186a('0x49')](_0x191a92):_0x191a92,_0x5378e5=_0x186a('0x101')==typeof _0x5e8443?_0x55fbc6[_0x186a('0x49')](_0x5e8443):_0x5e8443,_0x32d8bb=_0x54e34a['id'],_0x12f825=_0x5378e5?_0x5378e5['id']:null;if(!_0x32a694&&this[_0x186a('0xaa')]&&this[_0x186a('0xaa')][_0x186a('0xaf')]===_0x32d8bb&&this[_0x186a('0xaa')][_0x186a('0xd6')]===_0x12f825)return Promise[_0x186a('0x41')]();this['isReady']=!0x1,this[_0x186a('0xc9')]=null,this[_0x186a('0xde')]=null,this[_0x186a('0xaa')]=new _0x209175(_0x32d8bb,_0x12f825);const _0x3bd632=this['_getRevisionsRange'](_0x54e34a,_0x5378e5,!0x0)[_0x186a('0x94')](_0x155f0b=>this[_0x186a('0x78')](_0x155f0b));return _0x3bd632[_0x186a('0x16')](new Promise(_0x3c6fec=>{setTimeout(_0x3c6fec,0x14);})),Promise[_0x186a('0xf2')](_0x3bd632)[_0x186a('0x46')](()=>{if(!this[_0x186a('0xb3')])return;this[_0x186a('0x5')]();const _0x3416ee=this[_0x186a('0xc5')](_0x32d8bb,_0x12f825);for(const _0x33d429 of _0x3416ee[_0x186a('0x116')])this[_0x186a('0x89')][_0x186a('0x7b')](_0x33d429['id'],_0x33d429);this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x38')]({'isUndoable':!0x1},_0x458c5f=>{for(const _0x4e792d of this[_0x186a('0xe3')][_0x186a('0xf4')]['document']['getRootNames']())_0x458c5f['detachRoot'](_0x4e792d);for(const _0x2d430a of Object[_0x186a('0x6')](_0x3416ee[_0x186a('0xf4')])){const _0x2dd5b1=_0x458c5f['addRoot'](_0x2d430a);for(const _0x2958b3 of Object[_0x186a('0x6')](_0x3416ee[_0x186a('0xd0')][_0x2d430a]))_0x458c5f[_0x186a('0x72')](_0x2958b3,_0x3416ee[_0x186a('0xd0')][_0x2d430a][_0x2958b3],_0x2dd5b1);_0x458c5f[_0x186a('0x81')](_0x3416ee[_0x186a('0xf4')][_0x2d430a],_0x2dd5b1,0x0);}}),this[_0x186a('0xaa')][_0x186a('0xab')](this[_0x186a('0x8c')](_0x3416ee[_0x186a('0x116')])),this[_0x186a('0xd1')]=!0x0;})['catch'](_0x2899b6=>{console[_0x186a('0x91')](_0x2899b6),this[_0x186a('0x5')](),_0x4eaaf9&&(this[_0x186a('0xaa')]=_0x4eaaf9),this[_0x186a('0xd1')]=!0x0;});}[_0x186a('0xbc')](_0x174310,_0x2fe01e){const _0x549da4=this[_0x186a('0xc0')][_0x186a('0x39')](_0x174310);return _0x549da4['on'](_0x186a('0x20'),(_0x4a8171,_0x4b22fa,_0x2e7fc8)=>_0x2fe01e(_0x4b22fa,_0x2e7fc8,_0x549da4)),this[_0x186a('0xc0')][_0x186a('0xc4')](_0x549da4),_0x549da4;}[_0x186a('0x78')](_0x5bcb6a){if(!_0x5bcb6a||_0x5bcb6a[_0x186a('0x96')])return Promise['resolve']();{const _0x5b6814=this['editor'][_0x186a('0x8a')][_0x186a('0x2c')](_0x186a('0x10'));return this[_0x186a('0xd4')][_0x186a('0x49')]({'channelId':_0x5b6814,'revisionId':_0x5bcb6a['id']})[_0x186a('0x46')](_0x45d14d=>{_0x5bcb6a['_update']({'diffData':_0x45d14d[_0x186a('0x96')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this[_0x186a('0x70')][_0x186a('0x109')](),this[_0x186a('0x70')]=null,this['_changeIdToChange'][_0x186a('0xf7')](),this[_0x186a('0xe3')]['model'][_0x186a('0x38')]({'isUndoable':!0x1},_0x27ff19=>{for(const _0x53e404 of this['editor'][_0x186a('0xf4')][_0x186a('0xff')][_0x186a('0x12')]())_0x27ff19['detachRoot'](_0x53e404);});}[_0x186a('0x8c')](_0x58b0c1){const _0x2efeed=[],_0x2b5986=new Map();for(const _0x370208 of this[_0x186a('0xe3')][_0x186a('0xf4')]['document']['getRootNames']()){const _0x119b9e=this['editor'][_0x186a('0x55')]['view']['getDomRoot'](_0x370208);if(!_0x119b9e)continue;const _0x4a1382=_0x119b9e[_0x186a('0xcc')]()['item'](0x0);_0x4a1382&&(_0x2efeed[_0x186a('0x16')](_0x370208),_0x2b5986[_0x186a('0x7b')](_0x370208,_0x4a1382));}return _0x2efeed[_0x186a('0x27')]((_0x3e762e,_0x58c7c8)=>{const _0x861cb3=_0x2b5986[_0x186a('0x2c')](_0x3e762e),_0x532624=_0x2b5986[_0x186a('0x2c')](_0x58c7c8);return _0x861cb3['y']-_0x532624['y']||_0x861cb3['x']-_0x532624['x'];}),(_0x58b0c1=_0x58b0c1[_0x186a('0x10a')](_0x4412c7=>_0x2efeed[_0x186a('0xfe')](_0x4412c7[_0x186a('0x29')])))[_0x186a('0x27')]((_0x550ef0,_0x2a2be7)=>_0x2efeed[_0x186a('0x4f')](_0x550ef0[_0x186a('0x29')])-_0x2efeed[_0x186a('0x4f')](_0x2a2be7[_0x186a('0x29')])),_0x58b0c1;}['_makeTape'](_0x390337){const _0x5dde86=Array[_0x186a('0xe5')](_0x390337['markers'])[_0x186a('0x10a')](([_0x5cf352,_0x1ff598])=>_0x5cf352[_0x186a('0xee')]('revision:')&&!_0x1ff598['isCollapsed']),_0x2f8dd1=Array['from'](this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x79')](_0x390337)[_0x186a('0x54')]({'singleCharacters':!0x0}));if(0x0!=_0x5dde86[_0x186a('0x9a')])for(const _0x4004df of _0x2f8dd1){const [_0x152b1e,_0xb76f57]=_0x5dde86[0x0],[,_0x2acd22,_0x570467]=_0x152b1e[_0x186a('0x47')](':');if(_0xb76f57[_0x186a('0x102')]['isEqual'](_0x4004df[_0x186a('0x2d')])&&_0x5dde86['shift'](),(_0x4004df['previousPosition'][_0x186a('0x40')](_0xb76f57[_0x186a('0x36')])||_0x4004df[_0x186a('0xa1')]['isAfter'](_0xb76f57[_0x186a('0x36')]))&&(_0x186a('0x88')==_0x2acd22?_0x4004df[_0x186a('0x93')]={'userId':_0x570467}:_0x186a('0xb5')==_0x2acd22&&(_0x4004df['isRemoved']={'userId':_0x570467})),0x0==_0x5dde86[_0x186a('0x9a')])break;}return _0x2f8dd1;}[_0x186a('0x18')](_0x4c931d){const _0x94add2=new Map();for(let _0x349e62=0x0;_0x349e62<_0x4c931d['length'];_0x349e62++)_0x186a('0x45')===_0x4c931d[_0x349e62][_0x186a('0x7e')]?(_0x4c931d[_0x349e62][_0x186a('0x77')][_0x186a('0x74')]=_0x349e62,_0x4c931d[_0x349e62]['item']['endIndex']=_0x349e62):(_0x186a('0x104')===_0x4c931d[_0x349e62]['type']?_0x4c931d[_0x349e62][_0x186a('0x77')][_0x186a('0x74')]=_0x349e62:_0x186a('0x9b')===_0x4c931d[_0x349e62][_0x186a('0x7e')]&&(_0x4c931d[_0x349e62][_0x186a('0x77')]['endIndex']=_0x349e62),_0x94add2['set'](_0x4c931d[_0x349e62]['id'],_0x349e62));for(const _0x15d34f of _0x94add2['values']())'elementStart'===_0x4c931d[_0x15d34f]['type']?_0x4c931d[_0x15d34f][_0x186a('0x77')][_0x186a('0x64')]=_0x94add2[_0x186a('0x2c')](_0x4c931d[_0x15d34f]['pairId']):_0x186a('0x9b')===_0x4c931d[_0x15d34f][_0x186a('0x7e')]&&(_0x4c931d[_0x15d34f][_0x186a('0x77')][_0x186a('0x74')]=_0x94add2[_0x186a('0x2c')](_0x4c931d[_0x15d34f]['pairId']));}['_processTape'](_0x1a8f3c){for(let _0x3623d3=0x0;_0x3623d3<_0x1a8f3c['length'];_0x3623d3++){if('elementStart'===_0x1a8f3c[_0x3623d3][_0x186a('0x7e')])_0x1a8f3c[_0x3623d3][_0x186a('0x77')][_0x186a('0x74')]=_0x3623d3;else{if(_0x186a('0x9b')===_0x1a8f3c[_0x3623d3]['type']){_0x1a8f3c[_0x3623d3][_0x186a('0x77')][_0x186a('0x64')]=_0x3623d3;const _0x142500=_0x1a8f3c[_0x3623d3][_0x186a('0x77')][_0x186a('0x74')];_0x1a8f3c[_0x142500][_0x186a('0x100')]=_0x1a8f3c[_0x3623d3]['id'],_0x1a8f3c[_0x3623d3][_0x186a('0x100')]=_0x1a8f3c[_0x142500]['id'];}else _0x1a8f3c[_0x3623d3]['item']['startIndex']=_0x3623d3,_0x1a8f3c[_0x3623d3][_0x186a('0x77')]['endIndex']=_0x3623d3,_0x1a8f3c[_0x3623d3][_0x186a('0x100')]=null;}_0x1a8f3c[_0x3623d3][_0x186a('0xad')]||(_0x1a8f3c[_0x3623d3][_0x186a('0xad')]=[],_0x1a8f3c[_0x3623d3][_0x186a('0x59')]=[]);}}[_0x186a('0x82')](_0x13fcf6,_0x50ac76){const _0x13e04a=_0x13fcf6[_0x186a('0x10a')](_0x47f865=>!_0x47f865[_0x186a('0x93')]);for(let _0x100137=0x0;_0x100137<_0x50ac76['length'];_0x100137++)_0x50ac76[_0x100137][_0x186a('0x93')]&&(_0x13e04a[_0x100137][_0x186a('0x93')]=_0x50ac76[_0x100137]['isAdded']);}['_makeModelFromViewString'](_0x274887){const _0x280f90=JSON[_0x186a('0x6e')](_0x274887),_0x27a95e=this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0xff')],_0x427074=new _0x4ec7a3(_0x27a95e,_0x280f90[_0x186a('0x94')](_0x2b8b72=>this['_getViewObj'](_0x2b8b72)));return this[_0x186a('0xe3')]['data'][_0x186a('0x56')](_0x427074);}[_0x186a('0x58')](_0x1a240e){const _0x1361ff=this['editor'][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0xff')];if('string'==typeof _0x1a240e)return new _0x3a18cf(_0x1361ff,_0x1a240e);{const _0x54ee0c=_0x1a240e[_0x186a('0x1c')][_0x186a('0x94')](_0x50a585=>this[_0x186a('0x58')](_0x50a585));return new(tt[_0x1a240e['type']]||_0x4247fb)(_0x1361ff,_0x1a240e[_0x186a('0xfb')],_0x1a240e[_0x186a('0xd0')],_0x54ee0c);}}[_0x186a('0xc5')](_0x35441f,_0x5502ff=null){const _0x48299b=this['repository'][_0x186a('0x49')](_0x35441f),_0x3509e9=_0x5502ff?this['repository']['getRevision'](_0x5502ff):null,_0x421705=this[_0x186a('0x60')](_0x48299b,_0x3509e9),_0x52814f=_0x421705[_0x421705['length']-0x1],_0x5f4fad=new Map(),_0xe026f5={'model':{},'attributes':{},'changes':[]},_0x3ce817=new Set(),_0x2b0014=new Map();for(let _0x3946c1=_0x421705[_0x186a('0x9a')]-0x1;_0x3946c1>=0x0;_0x3946c1--){const _0x582d7c=_0x421705[_0x3946c1];for(const _0x5efdb8 of Object[_0x186a('0x6')](_0x582d7c[_0x186a('0x96')]))if(_0x582d7c['diffData'][_0x5efdb8][_0x186a('0x1b')]){const _0x26ba13=_0x582d7c['diffData'][_0x5efdb8][_0x186a('0x1b')];_0x26ba13[_0x186a('0xa8')]?(_0x3ce817[_0x186a('0x34')](_0x5efdb8),_0x2b0014['has'](_0x5efdb8)&&_0x2b0014['get'](_0x5efdb8)[_0x186a('0xcf')]==_0x26ba13[_0x186a('0xcf')]?_0x2b0014['delete'](_0x5efdb8):_0x2b0014[_0x186a('0x7b')](_0x5efdb8,_0x26ba13)):_0x2b0014[_0x186a('0x11c')](_0x5efdb8)?(_0x3ce817[_0x186a('0xe6')](_0x5efdb8),_0x2b0014[_0x186a('0xe6')](_0x5efdb8)):(_0x3ce817[_0x186a('0x34')](_0x5efdb8),_0x2b0014[_0x186a('0x7b')](_0x5efdb8,_0x26ba13));}else _0x3ce817[_0x186a('0x34')](_0x5efdb8);}for(const _0x1d2d10 of _0x3ce817){const _0x3d55e7=_0x2b0014[_0x186a('0x11c')](_0x1d2d10)&&!_0x2b0014[_0x186a('0x2c')](_0x1d2d10)['isAttached'];let _0x3fc5d2=_0x3d55e7?_0x421705[_0x186a('0x9a')]-0x1:0x0;const _0x27093c=_0x3d55e7?-0x1:0x1;for(;_0x421705[_0x3fc5d2];){const _0x4f94cf=_0x421705[_0x3fc5d2];if(_0x4f94cf['diffData'][_0x1d2d10]){const _0xd08410=_0x3d55e7?_0x4f94cf[_0x186a('0x96')][_0x1d2d10][_0x186a('0xa9')]:_0x4f94cf[_0x186a('0x96')][_0x1d2d10][_0x186a('0xe0')];_0xe026f5['attributes'][_0x1d2d10]=_0xd08410?_0x40b5ea(_0xd08410):{};break;}_0x3fc5d2+=_0x27093c;}}for(const _0x584584 of _0x421705){_0x584584['model']={};for(const _0x51e47f of _0x584584[_0x186a('0x6d')])_0x5f4fad[_0x186a('0x7b')](_0x51e47f['id'],_0x51e47f);for(const _0x446c4a of _0x3ce817){const _0x5c8ba6=_0x584584['diffData'][_0x446c4a]?_0x584584[_0x186a('0x96')][_0x446c4a][_0x186a('0x11f')]:'[]',_0x14fdd9=_0x584584[_0x186a('0x96')][_0x446c4a]?_0x584584[_0x186a('0x96')][_0x446c4a][_0x186a('0x5d')]:'[]';_0x584584[_0x186a('0xf4')][_0x446c4a]={'insertions':this[_0x186a('0xd5')](_0x5c8ba6),'deletions':this[_0x186a('0xd5')](_0x14fdd9)};}}for(const _0x3dc270 of _0x3ce817){let _0x4adc77=null,_0x5d00b0=0x0;const _0x1cce75=new Map(Array['from'](_0x48299b['model'][_0x3dc270][_0x186a('0x11f')][_0x186a('0xa2')])['filter'](([_0x397f03])=>!_0x397f03['startsWith'](_0x186a('0x4'))));let _0x50d1bd=0x0;for(const _0x399350 of _0x421705){const _0x171624=this['_makeTape'](_0x399350[_0x186a('0xf4')][_0x3dc270][_0x186a('0x11f')]);_0x399350==_0x48299b?(_0x4adc77=_0x171624,_0x5d00b0=_0x4adc77['length'],_0x4adc77['forEach'](_0x4b55ac=>{_0x4b55ac['id']=_0x50d1bd++;}),this[_0x186a('0x32')](_0x4adc77)):this[_0x186a('0x82')](_0x4adc77,_0x171624);const _0x3b8087=_0x4adc77[_0x186a('0x10a')](_0x65c7be=>!_0x65c7be[_0x186a('0x93')])[_0x186a('0x94')](_0x162b73=>_0x162b73['id']);let _0x862a6=0x0;const _0x24934b=this['_makeTape'](_0x399350[_0x186a('0xf4')][_0x3dc270][_0x186a('0x5d')]);_0x24934b[_0x186a('0xac')](_0x488da6=>{_0x488da6[_0x186a('0xc3')]?_0x488da6['id']=_0x5d00b0++:_0x488da6['id']=_0x3b8087[_0x862a6++];}),this[_0x186a('0x32')](_0x24934b),this[_0x186a('0x121')](_0x4adc77,_0x186a('0x93')),this[_0x186a('0x121')](_0x24934b,_0x186a('0xc3')),_0x399350==_0x48299b&&this[_0x186a('0x37')](_0x4adc77,_0x1cce75),_0x4adc77=this[_0x186a('0x1a')](_0x4adc77,_0x24934b),this['_refreshStartEndIndex'](_0x4adc77),this['_setDistance'](_0x4adc77,_0x186a('0xc3'));}_0x4adc77=_0x4adc77[_0x186a('0x10a')](_0x344633=>!(_0x344633['isAdded']&&_0x344633[_0x186a('0xc3')]));const _0x3040c0=new Map(_0x52814f['model'][_0x3dc270][_0x186a('0x5d')]['markers']),_0x2b0394=new Set(_0x1cce75['keys']());for(const _0x1464fb of _0x3040c0['keys']())_0x2b0394['delete'](_0x1464fb);this['_markSuggestions'](_0x4adc77,_0x2b0394),this['_fixObsoleteTags'](_0x4adc77),_0x4adc77=this[_0x186a('0x7f')](_0x4adc77),_0x4adc77=this[_0x186a('0x57')](_0x4adc77),_0x4adc77=this[_0x186a('0x10d')](_0x4adc77);const {root:_0x2a8105,changes:_0x3f003d}=this[_0x186a('0x123')](_0x4adc77,_0x5f4fad,_0x3dc270);_0xe026f5[_0x186a('0xf4')][_0x3dc270]=_0x2a8105;const _0xed9b1c=_0x2b0014['get'](_0x3dc270);if(_0xed9b1c){const _0xd64cc3=_0x5f4fad[_0x186a('0x2c')](_0xed9b1c[_0x186a('0xcf')]),_0x135764=new _0x3c4202({'author':_0xd64cc3,'type':_0xed9b1c['isAttached']?_0x186a('0x34'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3dc270});_0x3f003d[_0x186a('0xb7')](_0x135764),_0xe026f5['attributes'][_0x3dc270][_0x186a('0xdb')]=_0x135764['id'];}_0xe026f5['changes']=_0xe026f5[_0x186a('0x116')][_0x186a('0xbd')](_0x3f003d);}return _0xe026f5;}[_0x186a('0x37')](_0x40d656,_0x3f053f){for(let _0x744bde=0x0;_0x744bde<_0x40d656[_0x186a('0x9a')];_0x744bde++)for(const [_0x5c483d,_0x56aa9b]of _0x3f053f)_0x56aa9b[_0x186a('0x36')][_0x186a('0x40')](_0x40d656[_0x744bde][_0x186a('0xa1')])&&_0x40d656[_0x744bde][_0x186a('0xad')]['push'](_0x5c483d),_0x56aa9b[_0x186a('0x102')][_0x186a('0x40')](_0x40d656[_0x744bde][_0x186a('0x2d')])&&_0x40d656[_0x744bde][_0x186a('0x59')][_0x186a('0x16')](_0x5c483d);}['_joinTapes'](_0x21bd76,_0x47e454){let _0x8b5886=[],_0x3c3384=0x0,_0x2dd731=0x0;for(;_0x3c3384<_0x21bd76[_0x186a('0x9a')]||_0x2dd731<_0x47e454[_0x186a('0x9a')];){const _0x1efa21=_0x21bd76[_0x3c3384]||{},_0x35e5a7=_0x47e454[_0x2dd731]||{};if(_0x1efa21['id']==_0x35e5a7['id'])_0x3c3384++,_0x2dd731++,_0x8b5886[_0x186a('0x16')](_0x1efa21);else{if(_0x35e5a7['isRemoved']&&_0x1efa21[_0x186a('0x93')]){const {commonTape:_0x3e984c,iEnd:_0x5006ae,jEnd:_0xae4988}=this[_0x186a('0xdf')](_0x21bd76,_0x3c3384,_0x47e454,_0x2dd731);_0x8b5886=_0x8b5886['concat'](_0x3e984c),_0x3c3384=_0x5006ae,_0x2dd731=_0xae4988;}else _0x35e5a7[_0x186a('0xc3')]?(_0x2dd731++,_0x8b5886[_0x186a('0x16')](_0x35e5a7)):(_0x3c3384++,_0x8b5886[_0x186a('0x16')](_0x1efa21));}}return _0x8b5886;}[_0x186a('0x19')](_0x51c147,_0x4ca741){const _0x210516=[];for(let _0x2cdb3c=0x0;_0x2cdb3c<_0x51c147[_0x186a('0x9a')];_0x2cdb3c++){for(let _0xb5b8cb=0x0;_0xb5b8cb<_0x51c147[_0x2cdb3c]['markersStart'][_0x186a('0x9a')];_0xb5b8cb++){const _0x3b683e=_0x51c147[_0x2cdb3c][_0x186a('0xad')][_0xb5b8cb];if(!_0x4ca741[_0x186a('0x11c')](_0x3b683e))continue;const {group:_0x29f426,type:_0x1d0983,authorId:_0x56ca01}=_0x3c7cdd(_0x3b683e);'revision-suggestion'!=_0x29f426||_0x186a('0x88')!=_0x1d0983&&'deletion'!=_0x1d0983||(_0x210516[_0x186a('0xb7')]({'type':_0x1d0983,'name':_0x3b683e,'userId':_0x56ca01}),_0x51c147[_0x2cdb3c][_0x186a('0xad')][_0x186a('0xce')](_0xb5b8cb,0x1),_0xb5b8cb--);}_0x41ea84(_0x51c147[_0x2cdb3c]);for(let _0x48b282=0x0;_0x48b282<_0x51c147[_0x2cdb3c][_0x186a('0x59')][_0x186a('0x9a')];_0x48b282++){const _0x40b3e8=_0x51c147[_0x2cdb3c][_0x186a('0x59')][_0x48b282];if(!_0x4ca741[_0x186a('0x11c')](_0x40b3e8))continue;const {group:_0x5a3f64,type:_0x45b82b}=_0x3c7cdd(_0x40b3e8);if(_0x186a('0x124')!=_0x5a3f64||'insertion'!=_0x45b82b&&_0x186a('0xb5')!=_0x45b82b)continue;_0x51c147[_0x2cdb3c][_0x186a('0x59')][_0x186a('0xce')](_0x48b282,0x1),_0x48b282--;const _0x655a15=_0x210516['findIndex'](_0x261ed4=>_0x261ed4[_0x186a('0xfb')]==_0x40b3e8);_0x655a15>-0x1&&_0x210516[_0x186a('0xce')](_0x655a15,0x1);}}function _0x3c7cdd(_0xd33459){const _0x348421=_0xd33459[_0x186a('0x47')](':');return{'group':_0x348421[0x0],'type':_0x348421[0x1],'subType':_0x348421[_0x186a('0x9a')]>=0x5?_0x348421[0x2]:null,'id':_0x348421[_0x186a('0x9a')]<0x5?_0x348421[0x2]:_0x348421[0x3],'authorId':_0x348421[_0x186a('0x9a')]<0x5?_0x348421[0x3]:_0x348421[0x4],'markerCount':0x6==_0x348421[_0x186a('0x9a')]?_0x348421[0x5]:null};}function _0x41ea84(_0x24637a){for(let _0x123663=0x0;_0x123663<_0x210516['length'];_0x123663++){if(_0x24637a[_0x186a('0x93')]&&_0x186a('0x88')==_0x210516[_0x123663][_0x186a('0x7e')])return _0x24637a['isAddSuggestion']=_0x210516[_0x123663],void delete _0x24637a['isAdded'];if(!_0x24637a[_0x186a('0x93')]&&!_0x24637a[_0x186a('0xc3')]&&_0x186a('0xb5')==_0x210516[_0x123663][_0x186a('0x7e')])return void(_0x24637a[_0x186a('0x6f')]=_0x210516[_0x123663]);}}}[_0x186a('0x121')](_0x16ca87,_0x2758cf){let _0x55cc67=0x0,_0x23f9a9=!0x1;const _0x158d5d=new Map();for(const _0x5156cd of _0x16ca87)_0x5156cd[_0x2758cf]?_0x23f9a9&&(_0x55cc67++,_0x23f9a9=!0x1):(_0x55cc67++,_0x23f9a9=!0x0),_0x158d5d[_0x186a('0x7b')](_0x5156cd['id'],_0x55cc67);for(let _0x1ee767=0x0;_0x1ee767<_0x16ca87[_0x186a('0x9a')];_0x1ee767++){if('isRemoved'==_0x2758cf&&_0x16ca87[_0x1ee767][_0x186a('0x93')]||'isAdded'==_0x2758cf&&_0x16ca87[_0x1ee767]['isRemoved'])continue;if('text'==_0x16ca87[_0x1ee767][_0x186a('0x7e')]){_0x16ca87[_0x1ee767][_0x186a('0xe')]=0x0;continue;}const _0x3b19e0=_0x158d5d['get'](_0x16ca87[_0x1ee767][_0x186a('0x100')]),_0x37a35d=_0x158d5d[_0x186a('0x2c')](_0x16ca87[_0x1ee767]['id']);_0x16ca87[_0x1ee767]['distance']=_0x3b19e0-_0x37a35d;}}['_getRevisionsRange'](_0x260f5a,_0x438266,_0x42e5ae=!0x1){const _0x3824af=[];let _0xde1e12=this['repository']['getIndex'](_0x260f5a),_0x4f006e=this[_0x186a('0xc0')][_0x186a('0xe8')](_0x438266);for(-0x1==_0x4f006e&&(_0x4f006e=this[_0x186a('0xc0')][_0x186a('0xb1')]['length'],_0x42e5ae=!0x1);_0xde1e12<_0x4f006e;)_0x3824af['push'](this['repository'][_0x186a('0x49')](_0xde1e12)),_0xde1e12++;return _0x42e5ae&&_0x3824af[_0x186a('0x16')](this[_0x186a('0xc0')][_0x186a('0x49')](_0xde1e12)),_0x3824af;}[_0x186a('0xdf')](_0x5521d8,_0x26eed9,_0x539293,_0x231b3e){const _0x1067ee=this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x62')];let _0x227e10=_0x26eed9;for(;_0x5521d8[_0x227e10]&&_0x5521d8[_0x227e10][_0x186a('0x93')];)_0x227e10++;let _0x3f1a5a=_0x231b3e;for(;_0x539293[_0x3f1a5a]&&_0x539293[_0x3f1a5a][_0x186a('0xc3')];)_0x3f1a5a++;_0x2dba67(_0x5521d8,_0x26eed9,_0x227e10),_0x2dba67(_0x539293,_0x231b3e,_0x3f1a5a);const _0x2e6c64=_0x539293[_0x186a('0xa4')](_0x231b3e,_0x3f1a5a)[_0x186a('0xbd')](_0x5521d8['slice'](_0x26eed9,_0x227e10));return _0x2e6c64['sort']((_0x363caf,_0xa3a445)=>_0x363caf['side']!=_0xa3a445[_0x186a('0x99')]?_0x363caf[_0x186a('0x99')]-_0xa3a445[_0x186a('0x99')]:_0x363caf[_0x186a('0x0')]!=_0xa3a445['level']?_0x363caf[_0x186a('0x0')]-_0xa3a445[_0x186a('0x0')]:_0x363caf[_0x186a('0xe')]!=_0xa3a445[_0x186a('0xe')]?_0xa3a445[_0x186a('0xe')]-_0x363caf[_0x186a('0xe')]:!!_0x363caf['isAdded']!=!!_0xa3a445[_0x186a('0x93')]?-0x1==_0x363caf[_0x186a('0x99')]||0x0==_0x363caf['side']?_0x363caf['isAdded']?-0x1:0x1:_0x363caf[_0x186a('0x93')]?0x1:-0x1:_0x363caf[_0x186a('0x6b')]-_0xa3a445['index']),{'commonTape':_0x2e6c64,'iEnd':_0x227e10,'jEnd':_0x3f1a5a};function _0x2dba67(_0x1ff79c,_0x2d59c0,_0x5ac95c){let _0x4563b1=-0x1,_0x3420a4=Number[_0x186a('0xc')],_0x1e99bd=!0x0;for(let _0x1fd08e=_0x2d59c0;_0x1fd08e<_0x5ac95c;_0x1fd08e++)if(_0x1067ee[_0x186a('0xd')](_0x1ff79c[_0x1fd08e][_0x186a('0x77')])||(_0x1e99bd=!0x1),_0x1ff79c[_0x1fd08e][_0x186a('0x77')][_0x186a('0x74')]<_0x2d59c0&&(_0x4563b1=_0x1fd08e),_0x1ff79c[_0x1fd08e][_0x186a('0x77')]['endIndex']>=_0x5ac95c){_0x3420a4=_0x1fd08e;break;}_0x1e99bd&&(_0x4563b1=_0x5ac95c-0x1);for(let _0x1b91b0=_0x2d59c0;_0x1b91b0<_0x5ac95c;_0x1b91b0++)_0x1ff79c[_0x1b91b0][_0x186a('0x99')]=_0x1b91b0<=_0x4563b1?-0x1:_0x1b91b0<_0x3420a4?0x0:0x1,_0x1ff79c[_0x1b91b0][_0x186a('0x6b')]=_0x1b91b0;let _0x4d2caf=0x0;for(let _0x470966=_0x2d59c0;_0x470966<=_0x4563b1;_0x470966++)0x0==_0x1ff79c[_0x470966][_0x186a('0xe')]?_0x1ff79c[_0x470966]['level']=_0x4d2caf:(_0x4d2caf++,_0x1ff79c[_0x470966][_0x186a('0x0')]=_0x4d2caf,_0x4d2caf++);for(let _0x1a1371=_0x2d59c0;_0x1a1371<_0x5ac95c;_0x1a1371++)0x0==_0x1ff79c[_0x1a1371][_0x186a('0x99')]&&(_0x1ff79c[_0x1a1371][_0x186a('0x0')]=_0x4d2caf);_0x4d2caf=0x0;for(let _0x426f69=_0x5ac95c-0x1;_0x426f69>=_0x3420a4;_0x426f69--)0x0==_0x1ff79c[_0x426f69][_0x186a('0xe')]?_0x1ff79c[_0x426f69][_0x186a('0x0')]=_0x4d2caf:(_0x4d2caf--,_0x1ff79c[_0x426f69][_0x186a('0x0')]=_0x4d2caf,_0x4d2caf--);}}[_0x186a('0xbf')](_0x1929e3){const _0x573aa5=new Map(),_0x2d1bb6=this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x62')];for(let _0x4d304b=0x1;_0x4d304b<_0x1929e3[_0x186a('0x9a')];_0x4d304b++){let _0x96a485,_0x2a0093,_0x4b6b4b;const _0x32dc0a=_0x1929e3[_0x4d304b],_0x1a71bb=_0x1929e3[_0x4d304b-0x1];if(_0x186a('0x45')==_0x32dc0a[_0x186a('0x7e')])continue;if(_0x32dc0a[_0x186a('0x7e')]!=_0x1a71bb['type'])continue;if(!_0x2d1bb6[_0x186a('0xba')](_0x1a71bb[_0x186a('0x77')])||_0x2d1bb6['isLimit'](_0x1a71bb['item']))continue;if(!_0x2d1bb6[_0x186a('0xba')](_0x32dc0a[_0x186a('0x77')])||_0x2d1bb6[_0x186a('0x13')](_0x32dc0a[_0x186a('0x77')]))continue;if((_0x1929e3[_0x4d304b][_0x186a('0x93')]||_0x1929e3[_0x4d304b]['isAddSuggestion'])&&_0x1929e3[_0x4d304b-0x1][_0x186a('0xc3')])_0x96a485=_0x1929e3[_0x4d304b],_0x2a0093=_0x1929e3[_0x4d304b-0x1],_0x4b6b4b=_0x4d304b-0x1;else{if(!_0x1929e3[_0x4d304b][_0x186a('0xc3')]||!_0x1929e3[_0x4d304b-0x1]['isAdded']&&!_0x1929e3[_0x4d304b-0x1][_0x186a('0x11a')])continue;_0x96a485=_0x1929e3[_0x4d304b-0x1],_0x2a0093=_0x1929e3[_0x4d304b],_0x4b6b4b=_0x4d304b;}const _0x22b8cf=_0x96a485['level']==_0x2a0093[_0x186a('0x0')],_0x34051d=Math[_0x186a('0x80')](_0x96a485[_0x186a('0x0')])<Math[_0x186a('0x80')](_0x2a0093['level'])&&0x0==_0x2a0093[_0x186a('0xe')];(_0x22b8cf||_0x34051d)&&(_0x573aa5[_0x186a('0x7b')](_0x2a0093['id'],_0x96a485['id']),_0x1929e3['splice'](_0x4b6b4b,0x1),_0x4d304b--,_0x96a485[_0x186a('0x93')]=!0x1);}for(let _0x45276d=0x0;_0x45276d<_0x1929e3['length'];_0x45276d++)_0x573aa5[_0x186a('0x11c')](_0x1929e3[_0x45276d]['pairId'])&&(_0x1929e3[_0x45276d][_0x186a('0x100')]=_0x573aa5[_0x186a('0x2c')](_0x1929e3[_0x45276d]['pairId']));}[_0x186a('0x7f')](_0x5856df){const _0x11a780=new Set(_0x5856df[_0x186a('0x94')](_0x279fed=>_0x279fed['id']));for(let _0x155e7a=0x0;_0x155e7a<_0x5856df[_0x186a('0x9a')];_0x155e7a++)_0x11a780[_0x186a('0x11c')](_0x5856df[_0x155e7a][_0x186a('0x100')])||0x0==_0x5856df[_0x155e7a][_0x186a('0xe')]||(_0x5856df[_0x155e7a][_0x186a('0x1d')]=!0x0);return _0x5856df[_0x186a('0x10a')](_0x29229f=>!_0x29229f[_0x186a('0x1d')]);}[_0x186a('0x57')](_0x32fc40){const _0x3dc3c6=new Set();for(let _0x43b8b5=0x0;_0x43b8b5<_0x32fc40[_0x186a('0x9a')];_0x43b8b5++){if(_0x3dc3c6[_0x186a('0x11c')](_0x32fc40[_0x43b8b5]['id'])&&_0x32fc40[_0x43b8b5][_0x186a('0xc3')]&&(_0x32fc40[_0x43b8b5][_0x186a('0x1d')]=!0x0),_0x32fc40[_0x43b8b5][_0x186a('0x1d')])continue;if(0x0==_0x32fc40[_0x43b8b5]['distance'])continue;if(_0x186a('0x104')!=_0x32fc40[_0x43b8b5][_0x186a('0x7e')])continue;if(null==_0x32fc40[_0x43b8b5][_0x186a('0x100')])continue;let _0x3b6057=_0x43b8b5+0x1,_0x4309af=0x0;for(;_0x32fc40[_0x3b6057]['id']!=_0x32fc40[_0x43b8b5][_0x186a('0x100')];)'elementStart'==_0x32fc40[_0x3b6057][_0x186a('0x7e')]?_0x4309af++:'elementEnd'==_0x32fc40[_0x3b6057][_0x186a('0x7e')]&&_0x4309af--,_0x3b6057++;if(0x0!=_0x4309af){if(_0x32fc40[_0x43b8b5][_0x186a('0xc3')])_0x32fc40[_0x43b8b5][_0x186a('0x1d')]=!0x0;else for(;_0x3b6057!=_0x43b8b5;)_0x32fc40[_0x3b6057]['isRemoved']&&0x0!=_0x32fc40[_0x3b6057]['distance']&&(_0x32fc40[_0x3b6057][_0x186a('0x1d')]=!0x0,_0x3dc3c6[_0x186a('0x34')](_0x32fc40[_0x3b6057][_0x186a('0x100')])),_0x3b6057--;}}return _0x32fc40['filter'](_0x167d58=>!_0x167d58[_0x186a('0x1d')]);}[_0x186a('0x10d')](_0x163e94){const _0x36b7f0=this[_0x186a('0xe3')][_0x186a('0xf4')]['schema'];for(let _0xec6e69=0x0;_0xec6e69<_0x163e94[_0x186a('0x9a')];_0xec6e69++){if(!(_0x163e94[_0xec6e69][_0x186a('0x93')]||_0x163e94[_0xec6e69][_0x186a('0x11a')]||_0x163e94[_0xec6e69][_0x186a('0xc3')]||_0x163e94[_0xec6e69][_0x186a('0x6f')]))continue;if(0x0==_0x163e94[_0xec6e69][_0x186a('0xe')])continue;const _0x3c8f05=_0x163e94[_0xec6e69]['item'];_0x36b7f0[_0x186a('0xba')](_0x3c8f05)||_0x36b7f0[_0x186a('0x13')](_0x3c8f05)||(_0x163e94[_0xec6e69][_0x186a('0x93')]&&delete _0x163e94[_0xec6e69]['isAdded'],_0x163e94[_0xec6e69]['isAddSuggestion']&&delete _0x163e94[_0xec6e69][_0x186a('0x11a')],_0x163e94[_0xec6e69][_0x186a('0x6f')]&&delete _0x163e94[_0xec6e69][_0x186a('0x6f')],_0x163e94[_0xec6e69]['isRemoved']&&(_0x163e94[_0xec6e69]['isIncorrect']=!0x0));}return _0x163e94[_0x186a('0x10a')](_0x36c999=>!_0x36c999['isIncorrect']);}[_0x186a('0x123')](_0x2a4765,_0x1d2043,_0x153e5d){const _0xb2b57e=new _0xbee08(),_0xb75fa1=[],_0x598649=new Map(),_0xe9123=this[_0x186a('0xe3')]['model'],_0x1d3319=_0xe9123[_0x186a('0x62')],_0x568e45=[_0xb2b57e],_0x2e4e31={},_0x4c6353={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1e7307=null;const _0x804a10=[0x0];for(let _0x44968b=0x0;_0x44968b<_0x2a4765[_0x186a('0x9a')];_0x44968b++){let _0xdab94c,_0x58b225;if(_0x186a('0x104')===_0x2a4765[_0x44968b][_0x186a('0x7e')]){_0xdab94c=_0xe9123[_0x186a('0x115')](_0xb2b57e,_0x804a10);const _0x4cca4a=new _0x5e7e65(_0x2a4765[_0x44968b][_0x186a('0x77')][_0x186a('0xfb')],_0x2a4765[_0x44968b][_0x186a('0x77')]['getAttributes']());_0x568e45[0x0][_0x186a('0x103')](_0x4cca4a),_0x804a10[_0x186a('0x16')](0x0),_0x568e45[_0x186a('0xb7')](_0x4cca4a),_0x58b225=_0xe9123[_0x186a('0x115')](_0xb2b57e,_0x804a10),_0x1e7307=null;}else{if(_0x186a('0x9b')===_0x2a4765[_0x44968b][_0x186a('0x7e')])_0x568e45[_0x186a('0xfa')](),_0xdab94c=_0xe9123['createPositionFromPath'](_0xb2b57e,_0x804a10),_0x804a10[_0x186a('0xa0')](),_0x804a10[_0x804a10[_0x186a('0x9a')]-0x1]++,_0x58b225=_0xe9123[_0x186a('0x115')](_0xb2b57e,_0x804a10),_0x1e7307=null;else{if(_0xdab94c=_0xe9123[_0x186a('0x115')](_0xb2b57e,_0x804a10),_0x1e7307&&_0x30cd1d(_0x1e7307,_0x2a4765[_0x44968b][_0x186a('0x77')]))_0x1e7307[_0x186a('0x11d')]+=_0x2a4765[_0x44968b][_0x186a('0x77')][_0x186a('0xa7')];else{const _0x10806e=new _0x57c2d3(_0x2a4765[_0x44968b][_0x186a('0x77')]['data'],_0x2a4765[_0x44968b][_0x186a('0x77')]['getAttributes']());_0x568e45[0x0]['_appendChild'](_0x10806e),_0x1e7307=_0x10806e;}_0x804a10[_0x804a10[_0x186a('0x9a')]-0x1]+=_0x2a4765[_0x44968b][_0x186a('0x77')]['offsetSize'],_0x58b225=_0xe9123[_0x186a('0x115')](_0xb2b57e,_0x804a10);}}for(const _0x33d497 of _0x2a4765[_0x44968b][_0x186a('0xad')])_0x598649[_0x186a('0x7b')](_0x33d497,{'start':_0xdab94c,'end':null});_0x4bdde9('isRemoveSuggestion',_0x44968b,_0xdab94c,_0x58b225),_0x4bdde9(_0x186a('0x11a'),_0x44968b,_0xdab94c,_0x58b225),_0x4bdde9('isRemoved',_0x44968b,_0xdab94c,_0x58b225),_0x4bdde9('isAdded',_0x44968b,_0xdab94c,_0x58b225);for(const _0x417d6a of _0x2a4765[_0x44968b][_0x186a('0x59')]){_0x598649[_0x186a('0x2c')](_0x417d6a)['end']=_0x58b225;}}for(const [_0x5a4b1b,_0x1b174d]of _0x598649){const _0x6d1c32=this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x24')](_0x1b174d[_0x186a('0x36')],_0x1b174d[_0x186a('0x102')]);_0xb2b57e[_0x186a('0xa2')][_0x186a('0x7b')](_0x5a4b1b,_0x6d1c32);}return _0xb75fa1[_0x186a('0x27')]((_0x2622dd,_0x52b88a)=>{const _0x582f30=_0xb2b57e[_0x186a('0xa2')][_0x186a('0x2c')](_0x186a('0x4')+_0x2622dd['id']),_0x323d7c=_0xb2b57e[_0x186a('0xa2')]['get'](_0x186a('0x4')+_0x52b88a['id']);return _0x582f30[_0x186a('0x36')][_0x186a('0x2e')](_0x323d7c[_0x186a('0x36')])?-0x1:_0x582f30[_0x186a('0x36')][_0x186a('0x53')](_0x323d7c[_0x186a('0x36')])?0x1:_0x582f30['end'][_0x186a('0x2e')](_0x323d7c['end'])?-0x1:_0x582f30[_0x186a('0x102')][_0x186a('0x53')](_0x323d7c['end'])?0x1:_0x186a('0x34')===_0x2622dd[_0x186a('0x7e')]?-0x1:0x1;}),{'root':_0xb2b57e,'changes':_0xb75fa1};function _0x4bdde9(_0x5cb87f,_0x39460c,_0x1fb507,_0x2a4898){const _0x2a47a4=!!_0x2a4765[_0x39460c][_0x5cb87f],_0x121ffc=_0x2a47a4?_0x2a4765[_0x39460c][_0x5cb87f][_0x186a('0xcf')]:null,_0x164fd6=_0x39460c===_0x2a4765['length']-0x1,_0x30293e=_0x4c6353[_0x5cb87f][0x0],_0x365bf3=_0x1d3319[_0x186a('0x110')](_0x2a4765[_0x39460c]['item']);!_0x2e4e31[_0x5cb87f]&&_0x2a47a4?_0x2e4e31[_0x5cb87f]={'start':_0x1fb507,'tapeItem':_0x2a4765[_0x39460c],'userId':_0x121ffc,'type':_0x5cb87f}:_0x2e4e31[_0x5cb87f]&&!_0x2a47a4?(_0x2e4e31[_0x5cb87f]['end']=_0x1fb507,_0x1e5909(_0x2e4e31[_0x5cb87f]),_0x2e4e31[_0x5cb87f]=null):_0x2e4e31[_0x5cb87f]&&_0x2a47a4&&_0x2e4e31[_0x5cb87f][_0x186a('0xcf')]!==_0x121ffc&&(_0x2e4e31[_0x5cb87f]['end']=_0x1fb507,_0x30293e&&_0x30293e[_0x186a('0xcf')]===_0x2e4e31[_0x5cb87f][_0x186a('0xcf')]||_0x1e5909(_0x2e4e31[_0x5cb87f]),_0x2e4e31[_0x5cb87f]={'start':_0x1fb507,'tapeItem':_0x2a4765[_0x39460c],'userId':_0x121ffc,'type':_0x5cb87f}),_0x2e4e31[_0x5cb87f]&&_0x365bf3&&(_0x186a('0x104')!==_0x2a4765[_0x39460c][_0x186a('0x7e')]||_0x30293e&&_0x30293e[_0x186a('0xcf')]===_0x121ffc||_0x4c6353[_0x5cb87f][_0x186a('0xb7')]({'userId':_0x121ffc,'object':_0x2a4765[_0x39460c][_0x186a('0x77')],'change':_0x2e4e31[_0x5cb87f]}),_0x186a('0x9b')===_0x2a4765[_0x39460c][_0x186a('0x7e')]&&_0x30293e&&_0x30293e['object']===_0x2a4765[_0x39460c]['item']&&(_0x4c6353[_0x5cb87f][_0x186a('0xfa')](),_0x2e4e31[_0x5cb87f]=_0x30293e['change'])),_0x2e4e31[_0x5cb87f]&&_0x164fd6&&(_0x2e4e31[_0x5cb87f]['end']=_0x2a4898,_0x1e5909(_0x2e4e31[_0x5cb87f]),_0x2e4e31[_0x5cb87f]=null);}function _0x1e5909({start:_0x3f38a4,end:_0x4b5284,tapeItem:_0x26d462,userId:_0xc624a7,type:_0x466072}){const _0x5aa44d=_0x26d462['item'],_0x28fcc4=_0xe9123[_0x186a('0x62')][_0x186a('0xba')](_0x5aa44d)&&!_0xe9123[_0x186a('0x62')]['isLimit'](_0x5aa44d),_0x318979=_0x3f38a4[_0x186a('0xef')]==_0x4b5284[_0x186a('0x97')]&&_0x4b5284[_0x186a('0x86')];if(_0x28fcc4&&_0x318979)return;const _0x272932=_0xe9123[_0x186a('0x24')](_0x3f38a4,_0x4b5284),_0x540077=_0x1d2043[_0x186a('0x2c')](_0xc624a7),_0x3dadad=new _0x3c4202({'author':_0x540077,'type':_0x186a('0x93')==_0x466072||_0x186a('0x11a')==_0x466072?_0x186a('0x34'):'remove','data':{'isSuggestion':_0x186a('0x11a')==_0x466072||'isRemoveSuggestion'==_0x466072},'createdAt':new Date(),'rootName':_0x153e5d});_0xb75fa1[_0x186a('0x16')](_0x3dadad),_0xb2b57e['markers'][_0x186a('0x7b')]('revision:'+_0x3dadad['id'],_0x272932);}function _0x30cd1d(_0x335d05,_0x1460a2){const _0x58c583=_0x335d05[_0x186a('0x4c')](),_0xf63394=_0x1460a2[_0x186a('0x4c')]();for(const _0x486abe of _0x58c583){if(_0x486abe[0x1]!==_0x1460a2['getAttribute'](_0x486abe[0x0]))return!0x1;_0xf63394[_0x186a('0xf9')]();}return _0xf63394['next']()[_0x186a('0x3d')];}}['_setConversion'](){this[_0x186a('0xe3')][_0x186a('0xb0')][_0x186a('0x63')]('upcast')[_0x186a('0x111')]({'view':_0x186a('0xa3')}),this[_0x186a('0xe3')][_0x186a('0xb0')][_0x186a('0x63')](_0x186a('0xe1'))[_0x186a('0x73')]({'model':'revision','view':_0x590da7=>{const _0x3be034=_0x590da7[_0x186a('0xd9')][_0x186a('0x47')](':')[0x1],_0x590347=this[_0x186a('0xb9')](_0x3be034);if(!_0x590347)return null;const _0x19728b='add'==_0x590347[_0x186a('0x7e')]?_0x186a('0x88'):_0x186a('0xb5'),_0x379c71=['ck-suggestion-marker',_0x186a('0xf')+_0x19728b];return _0x590347[_0x186a('0xa7')][_0x186a('0x5c')]&&_0x379c71['push'](_0x186a('0xf')+_0x19728b+_0x186a('0x5f')),this[_0x186a('0xde')]==_0x590347&&_0x379c71['push']('ck-suggestion-marker--active'),{'classes':_0x379c71,'attributes':{'data-change-id':_0x3be034}};}}),this[_0x186a('0xe3')][_0x186a('0xb0')]['for'](_0x186a('0xdd'))[_0x186a('0x34')](_0x11a66a=>{_0x11a66a['on']('element:pre',(_0x388dc5,_0x202626,_0x3aa108)=>{const _0x318fe6=_0x202626['viewItem'][_0x186a('0xda')](0x0);if(!_0x318fe6||!_0x318fe6['is'](_0x186a('0x68'),_0x186a('0x11e')))return;if(!_0x3aa108[_0x186a('0xe9')][_0x186a('0xf0')](_0x318fe6,{'attributes':[_0x186a('0x105'),_0x186a('0x87')]}))return;const _0x5c2b48=_0x202626[_0x186a('0x122')]['start'][_0x186a('0xef')];_0x3aa108[_0x186a('0x112')][_0x186a('0x72')](_0x186a('0x105'),_0x318fe6[_0x186a('0x33')](_0x186a('0x105')),_0x5c2b48),_0x3aa108[_0x186a('0x112')][_0x186a('0x72')](_0x186a('0x87'),_0x318fe6['getAttribute']('vid_end'),_0x5c2b48);},{'priority':'low'});}),this[_0x186a('0xe3')][_0x186a('0xb0')][_0x186a('0x63')](_0x186a('0xdd'))[_0x186a('0x34')](_0x4a0807=>{_0x4a0807['on'](_0x186a('0x68'),(_0x20600b,_0x28945d,_0x50881d)=>{if(!_0x50881d[_0x186a('0xe9')]['consume'](_0x28945d[_0x186a('0x85')],{'attributes':[_0x186a('0x105'),'vid_end']}))return;if(_0x28945d['modelRange'][_0x186a('0xe2')])return;const _0x421e60=_0x28945d[_0x186a('0x122')][_0x186a('0x36')][_0x186a('0xef')];_0x421e60['hasAttribute'](_0x186a('0x105'))||_0x421e60['hasAttribute'](_0x186a('0xdc'))||(_0x50881d[_0x186a('0x112')]['setAttribute']('vid_start',_0x28945d[_0x186a('0x85')]['getAttribute'](_0x186a('0x105')),_0x421e60),_0x50881d['writer']['setAttribute'](_0x186a('0x87'),_0x28945d[_0x186a('0x85')][_0x186a('0x33')]('vid_end'),_0x421e60));},{'priority':_0x186a('0xb8')});}),this['editor'][_0x186a('0xb0')][_0x186a('0x63')]('upcast')[_0x186a('0x3')]({'view':{'name':_0x186a('0x3b'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x28f499=>_0x28f499[_0x186a('0x33')](_0x186a('0xdc'))}}),this[_0x186a('0xe3')][_0x186a('0xf4')]['schema']['on'](_0x186a('0x98'),(_0x27a778,[,_0x26806f])=>{['vid_start',_0x186a('0x87'),_0x186a('0xdc')][_0x186a('0xfe')](_0x26806f)&&(_0x27a778['return']=!0x0,_0x27a778[_0x186a('0x6a')]());},{'priority':'highest'}),this['editor'][_0x186a('0xb0')]['for'](_0x186a('0x14'))['add'](_0x22d460=>{_0x22d460['on'](_0x186a('0xd7'),(_0x55073d,_0x25d3e2,_0x48563c)=>{if('\x20'!=_0x25d3e2[_0x186a('0x77')][_0x186a('0xa7')]||_0x25d3e2[_0x186a('0x77')][_0x186a('0x97')][_0x186a('0xc2')]>0x1)return;if(!_0x48563c[_0x186a('0xe9')][_0x186a('0xf0')](_0x25d3e2[_0x186a('0x77')],_0x55073d[_0x186a('0xfb')]))return;const _0x2706f4=_0x48563c[_0x186a('0x112')],_0x1cb1e1=_0x48563c[_0x186a('0x15')][_0x186a('0x50')](_0x25d3e2[_0x186a('0xd3')]);_0x2706f4[_0x186a('0xbb')](_0x1cb1e1,_0x2706f4[_0x186a('0x8b')](_0x186a('0x3b')));});}),this[_0x186a('0xe3')]['conversion'][_0x186a('0x63')](_0x186a('0x14'))['markerToData']({'model':_0x186a('0xa3')}),this[_0x186a('0xe3')][_0x186a('0x55')]['downcastDispatcher']['on']('addMarker:revision',function(_0x57f13b){const _0x8c5d5a=_0x57f13b[_0x186a('0x1f')]['get'](_0x186a('0x52'));return(_0x200f41,_0x1174a7,_0x20eaf5)=>{const _0x56bc82=_0x1174a7[_0x186a('0xd9')][_0x186a('0x47')](':')[0x1],_0x1c9435=_0x8c5d5a[_0x186a('0xb9')](_0x56bc82);if(!_0x1c9435)return null;const _0xfab08d='add'==_0x1c9435[_0x186a('0x7e')]?_0x186a('0x47'):_0x186a('0x9d');if(!_0x20eaf5[_0x186a('0xe9')][_0x186a('0x23')](_0x1174a7[_0x186a('0x43')],_0x200f41[_0x186a('0xfb')]))return;const _0x13b1fd=_0x1174a7[_0x186a('0x43')][_0x186a('0x54')](),_0x4328da=_0x1174a7[_0x186a('0x43')][_0x186a('0x36')],_0x12fa92=_0x57f13b[_0x186a('0xf4')][_0x186a('0x62')];let _0x3a2002=null,_0x3ac628=null,_0x1692c2=!0x1,_0x2fa601=!0x1;for(const _0x3f48cf of _0x13b1fd){const _0x3f22b0=_0x3f48cf['item'];_0x1692c2=_0x1692c2||_0x12fa92[_0x186a('0xc8')](_0x3f22b0);const _0x11d5a2=_0x20eaf5[_0x186a('0x15')][_0x186a('0x7c')](_0x3f22b0);if(_0x11d5a2&&_0x11d5a2[_0x186a('0x4e')]('addHighlight'))return;'elementEnd'==_0x3f48cf['type']&&(_0x12fa92[_0x186a('0xba')](_0x3f22b0)&&!_0x12fa92[_0x186a('0x13')](_0x3f22b0)&&(_0x3f22b0[_0x186a('0x22')]||_0x4328da[_0x186a('0x4a')]?_0x3a2002&&_0x3a2002['parent']==_0x3f22b0||(_0x3a2002=_0x3f22b0,_0x1695d3(_0x3f48cf[_0x186a('0xa1')]),_0x2fa601=!0x0):_0x3ac628=_0x3ac628||_0x3f48cf[_0x186a('0xa1')]));}function _0x1695d3(_0x186683){const _0x232679=_0x20eaf5['writer'][_0x186a('0x5b')](_0x186a('0x3b'),{'class':_0x186a('0xf')+_0xfab08d}),_0x200e3b=_0x20eaf5[_0x186a('0x15')][_0x186a('0xec')](_0x186683);_0x1c9435[_0x186a('0xa7')]['isSuggestion']&&_0x20eaf5[_0x186a('0x112')][_0x186a('0x25')](_0x186a('0xf')+_0xfab08d+_0x186a('0x5f'),_0x232679),_0x8c5d5a[_0x186a('0xde')]==_0x1c9435&&_0x20eaf5[_0x186a('0x112')][_0x186a('0x25')](_0x186a('0x76'),_0x232679),_0x20eaf5[_0x186a('0x112')][_0x186a('0x81')](_0x200e3b,_0x232679),_0x20eaf5[_0x186a('0x15')][_0x186a('0x10b')](_0x232679,_0x1174a7['markerName']);}_0x1692c2||_0x2fa601||!_0x3ac628||_0x1695d3(_0x3ac628);};}(this[_0x186a('0xe3')]),{'priority':'high'}),this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x7')]['on'](_0x186a('0xca'),(_0x9eab6f,_0x15b9ac,_0x490df1)=>{const _0x424280=_0x490df1[_0x186a('0x15')]['markerNameToElements'](_0x15b9ac[_0x186a('0xd9')]);if(_0x424280)for(const _0x2e5610 of _0x424280)(_0x2e5610[_0x186a('0x67')]('ck-suggestion-marker-split')||_0x2e5610[_0x186a('0x67')](_0x186a('0xfd')))&&(_0x490df1[_0x186a('0x15')][_0x186a('0x8f')](_0x2e5610,_0x15b9ac['markerName']),_0x490df1[_0x186a('0x112')]['remove'](_0x2e5610));},{'priority':'high'}),this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x7')]['on'](_0x186a('0x83'),(_0x210270,_0x5c22e3,_0x435f5b)=>{const _0x546051=_0x5c22e3['markerName'][_0x186a('0x47')](':')[0x1],_0x51c9c2=this['_getChangeFromId'](_0x546051);if(!_0x51c9c2)return null;const _0x25d6d1=_0x186a('0x34')==_0x51c9c2[_0x186a('0x7e')]?_0x186a('0x47'):_0x186a('0x9d');if(_0x435f5b[_0x186a('0xe9')][_0x186a('0x23')](_0x5c22e3[_0x186a('0x43')],_0x210270['name']))for(const _0x59b51f of _0x5c22e3['markerRange'][_0x186a('0x48')]()){if(!_0x59b51f['is']('element',_0x186a('0xd8')))continue;const _0x232989=_0x435f5b['writer'][_0x186a('0x5b')]('span',{'class':_0x186a('0xf')+_0x25d6d1}),_0x1efa53=_0x435f5b[_0x186a('0x15')][_0x186a('0xec')](this[_0x186a('0xe3')][_0x186a('0xf4')]['createPositionBefore'](_0x59b51f));_0x51c9c2[_0x186a('0xa7')][_0x186a('0x5c')]&&_0x435f5b[_0x186a('0x112')][_0x186a('0x25')](_0x186a('0xf')+_0x25d6d1+_0x186a('0x5f'),_0x232989),this[_0x186a('0xde')]==_0x51c9c2&&_0x435f5b[_0x186a('0x112')][_0x186a('0x25')](_0x186a('0x76'),_0x232989),_0x435f5b[_0x186a('0x112')][_0x186a('0x81')](_0x1efa53,_0x232989),_0x435f5b['mapper'][_0x186a('0x10b')](_0x232989,_0x5c22e3[_0x186a('0xd9')]);}},{'priority':_0x186a('0x66')}),this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0xff')]['on']('change',()=>{this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0x9f')](_0x12dc8d=>{for(const _0x944742 of this[_0x186a('0xe3')][_0x186a('0xf4')]['document'][_0x186a('0x12')]()){const _0x324bb0=this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0xff')][_0x186a('0x90')](_0x944742),_0x203215=this[_0x186a('0xe3')][_0x186a('0x55')]['view']['document'][_0x186a('0x90')](_0x944742);if(_0x203215){const _0x32dbeb=_0x324bb0[_0x186a('0x33')](_0x186a('0xdb'));if(_0x12dc8d[_0x186a('0x2b')]('data-change-id',_0x203215),_0x12dc8d[_0x186a('0xf8')](_0x186a('0x17'),_0x203215),_0x12dc8d[_0x186a('0xf8')](_0x186a('0x3a'),_0x203215),_0x12dc8d[_0x186a('0xf8')](_0x186a('0x8e'),_0x203215),_0x32dbeb){const _0x5272a9=this['_getChangeFromId'](_0x32dbeb);if(!_0x5272a9)return null;_0x12dc8d[_0x186a('0x72')](_0x186a('0x42'),_0x32dbeb,_0x203215),_0x12dc8d['addClass'](_0x186a('0xcd')+_0x5272a9[_0x186a('0x7e')],_0x203215),this[_0x186a('0xde')]==_0x5272a9&&_0x12dc8d[_0x186a('0x25')]('ck-revision-history-root--active',_0x203215);}}}});}),this['editor']['conversion'][_0x186a('0x63')](_0x186a('0xdd'))[_0x186a('0x111')]({'view':_0x186a('0x8d'),'model':_0x1d888b=>'revision-comment:'+_0x1d888b,'converterPriority':'highest'}),this['editor'][_0x186a('0xb0')]['for'](_0x186a('0xdd'))[_0x186a('0x111')]({'view':'suggestion','model':_0x12ce5f=>_0x186a('0x1e')+_0x12ce5f,'converterPriority':_0x186a('0xea')}),this[_0x186a('0xe3')][_0x186a('0xb0')][_0x186a('0x63')](_0x186a('0x14'))['markerToData']({'model':'revision-suggestion','view':_0x2f7741=>({'name':_0x186a('0xa')+_0x2f7741,'group':_0x186a('0x124')}),'converterPriority':_0x186a('0xea')}),this[_0x186a('0xe3')]['conversion'][_0x186a('0x63')](_0x186a('0xe1'))[_0x186a('0x73')]({'model':_0x186a('0x124'),'view':_0x4d2b5b=>{const _0x3a9748=_0x4d2b5b[_0x186a('0xd9')][_0x186a('0x47')](':')[0x1];return _0x186a('0x88')!=_0x3a9748&&_0x186a('0xb5')!=_0x3a9748?null:{'classes':[_0x186a('0xbe'),'ck-suggestion-preview-marker-'+_0x3a9748]};}}),this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x7')]['on'](_0x186a('0xb2'),et(this[_0x186a('0xe3')],_0x186a('0x9d')),{'priority':_0x186a('0x66')}),this[_0x186a('0xe3')][_0x186a('0x55')]['downcastDispatcher']['on'](_0x186a('0x113'),et(this['editor'],_0x186a('0x47')),{'priority':_0x186a('0x66')}),this[_0x186a('0xe3')][_0x186a('0x55')]['downcastDispatcher']['on'](_0x186a('0x71'),(_0x1a9e58,_0x5a0a78,_0x5c8ca1)=>{const _0x254267=_0x5c8ca1[_0x186a('0x15')][_0x186a('0xed')](_0x5a0a78[_0x186a('0xd9')]);if(_0x254267)for(const _0x44e1c8 of _0x254267)_0x44e1c8['is'](_0x186a('0xeb'))&&(_0x5c8ca1[_0x186a('0x15')][_0x186a('0x8f')](_0x44e1c8,_0x5a0a78[_0x186a('0xd9')]),_0x5c8ca1[_0x186a('0x112')][_0x186a('0x69')](_0x44e1c8));},{'priority':_0x186a('0x66')});}[_0x186a('0xb9')](_0x15bd14){return this[_0x186a('0x89')][_0x186a('0x2c')](_0x15bd14);}[_0x186a('0x65')](_0x96eb07){return this[_0x186a('0x70')]&&this['_changeView'][_0x186a('0x109')](),this['_changeView']=new _0x514d1f(this[_0x186a('0xe3')][_0x186a('0xf1')],_0x96eb07),this[_0x186a('0x70')];}[_0x186a('0x9c')](){this[_0x186a('0xe3')][_0x186a('0xf4')]['document'][_0x186a('0x108')][_0x186a('0x11')](_0x186a('0xa3')),this['on'](_0x186a('0xf3'),(_0x2313f6,_0x2c9d08,_0x162361,_0x5160c1)=>{_0x5160c1&&this[_0x186a('0xf5')][_0x186a('0x69')](_0x5160c1),_0x162361&&(this[_0x186a('0xf5')]['add']({'view':_0x162361,'stackId':_0x186a('0x3f'),'position':{'target':()=>{const _0x45610e=this['editor'][_0x186a('0x55')],_0x20ddf0=this[_0x186a('0xb9')](_0x162361['changeId']);let _0xfda108;if(_0x20ddf0['data'][_0x186a('0x7a')]){const _0x3053dc=_0x45610e[_0x186a('0x92')]['getDomRoot'](_0x20ddf0[_0x186a('0x29')]);_0xfda108=Array['from'](_0x3053dc['getClientRects']());}else{const _0xd57e8c=this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0xa2')][_0x186a('0x2c')]('revision:'+_0x162361[_0x186a('0x3c')]);_0xfda108=Array['from'](_0x45610e[_0x186a('0x15')][_0x186a('0xed')](_0xd57e8c['name']))[_0x186a('0x94')](_0x4c479c=>_0x45610e[_0x186a('0x92')]['domConverter']['mapViewToDom'](_0x4c479c))[_0x186a('0x94')](_0x51c32a=>Array['from'](_0x51c32a[_0x186a('0xcc')]()))['flat']();}if(!this[_0x186a('0x1')])return _0xfda108[0x0];return _0xfda108[_0x186a('0xb6')](_0xd37732=>_0xd37732['top']-0x3<=this[_0x186a('0x1')]['y']&&_0xd37732[_0x186a('0x2f')]+0x3>=this[_0x186a('0x1')]['y']&&_0xd37732[_0x186a('0x35')]-0x3<=this['_activeViewTarget']['x']&&_0xd37732[_0x186a('0xa6')]+0x3>=this[_0x186a('0x1')]['x'])||_0xfda108[0x0];}}}),this['_balloon'][_0x186a('0x107')](_0x186a('0x3f')));}),this['on'](_0x186a('0x5e'),(_0x435a34,_0x4fccb9,_0x1efaaa,_0x2f2c35)=>{this[_0x186a('0xc9')]=_0x1efaaa?this[_0x186a('0x65')](_0x1efaaa):null,this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x9f')](()=>{const _0x387cd3=this[_0x186a('0xe3')][_0x186a('0x55')];_0x2f2c35&&(_0x2f2c35[_0x186a('0xa7')]['isOnRoot']?_0x387cd3['view'][_0x186a('0x9f')](_0x303c2f=>{_0x303c2f[_0x186a('0xf8')](_0x186a('0x8e'),_0x387cd3[_0x186a('0x92')][_0x186a('0xff')][_0x186a('0x90')](_0x2f2c35[_0x186a('0x29')]));}):_0x387cd3[_0x186a('0x95')](_0x186a('0x4')+_0x2f2c35['id'])),_0x1efaaa&&(_0x1efaaa['data'][_0x186a('0x7a')]?_0x387cd3[_0x186a('0x92')][_0x186a('0x9f')](_0x2f17b7=>{_0x2f17b7[_0x186a('0x25')]('ck-revision-history-root--active',_0x387cd3[_0x186a('0x92')][_0x186a('0xff')][_0x186a('0x90')](_0x1efaaa[_0x186a('0x29')]));}):_0x387cd3[_0x186a('0x95')](_0x186a('0x4')+_0x1efaaa['id']));});}),this['listenTo'](this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')]['document'],_0x186a('0xd2'),(_0x4561d7,_0x48d6b5)=>{if(this[_0x186a('0xde')])return;const _0x59bccb=this[_0x186a('0x4d')](_0x48d6b5[_0x186a('0x4b')]),_0x1f62a2=this[_0x186a('0x89')][_0x186a('0x2c')](_0x59bccb);_0x1f62a2?(this[_0x186a('0x1')]={'x':_0x48d6b5[_0x186a('0x30')]['x'],'y':_0x48d6b5[_0x186a('0x30')]['y']},this[_0x186a('0xc9')]=this[_0x186a('0x65')](_0x1f62a2)):(this[_0x186a('0x1')]=null,this[_0x186a('0xc9')]=null);}),this['listenTo'](this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0xff')],_0x186a('0xf6'),(_0x58c3a4,_0x5751b1)=>{const _0x102eb1=this['_findChangeIdFromDomTarget'](_0x5751b1['target']),_0xdcc926=this[_0x186a('0x89')]['get'](_0x102eb1);_0xdcc926?(this[_0x186a('0x1')]={'x':_0x5751b1['domEvent']['x'],'y':_0x5751b1[_0x186a('0x30')]['y']},_0xdcc926===this[_0x186a('0xde')]?this[_0x186a('0xf5')]['updatePosition']():this[_0x186a('0xde')]=_0xdcc926):(this['_activeViewTarget']=null,this[_0x186a('0xde')]=null);});}[_0x186a('0x4d')](_0x42d219){do{const _0x28b3f2=_0x42d219[_0x186a('0x33')](_0x186a('0x42'));if(_0x28b3f2)return _0x28b3f2;_0x42d219=_0x42d219[_0x186a('0x97')];}while(_0x42d219);return null;}[_0x186a('0x3e')](){this[_0x186a('0xe3')]['model']['change'](_0x53e15f=>{for(const _0x58f84b of this[_0x186a('0xe3')][_0x186a('0xf4')]['markers'])_0x53e15f['removeMarker'](_0x58f84b);});}}function et(_0x11eacc,_0x32710b){return(_0x5da563,_0x25c0a8,_0x5398b5)=>{if(!_0x5398b5[_0x186a('0xe9')][_0x186a('0x23')](_0x25c0a8[_0x186a('0x43')],_0x5da563[_0x186a('0xfb')]))return;const _0x196693=_0x25c0a8['markerRange'][_0x186a('0x54')](),_0x3a04a0=_0x25c0a8[_0x186a('0x43')][_0x186a('0x36')],_0x1cab1d=_0x11eacc[_0x186a('0xf4')][_0x186a('0x62')];let _0x3a6646=null,_0xf6e04f=null,_0x5c036c=!0x1,_0x2bf36b=!0x1;for(const _0x1d18b5 of _0x196693){const _0x550ebf=_0x1d18b5['item'];_0x5c036c=_0x5c036c||_0x1cab1d['isContent'](_0x550ebf);const _0x28e649=_0x5398b5[_0x186a('0x15')]['toViewElement'](_0x550ebf);if(_0x28e649&&_0x28e649[_0x186a('0x4e')](_0x186a('0x51')))return;_0x186a('0x9b')==_0x1d18b5[_0x186a('0x7e')]&&(_0x1cab1d[_0x186a('0xba')](_0x550ebf)&&!_0x1cab1d[_0x186a('0x13')](_0x550ebf)&&(_0x550ebf[_0x186a('0x22')]||_0x3a04a0[_0x186a('0x4a')]?_0x3a6646&&_0x3a6646[_0x186a('0x97')]==_0x550ebf||(_0x3a6646=_0x550ebf,_0x1da82a(_0x1d18b5[_0x186a('0xa1')]),_0x2bf36b=!0x0):_0xf6e04f=_0xf6e04f||_0x1d18b5[_0x186a('0xa1')]));}function _0x1da82a(_0x190504){const _0x30c8af=_0x5398b5[_0x186a('0x15')][_0x186a('0xec')](_0x190504),_0x5a22ab=_0x5398b5[_0x186a('0x112')][_0x186a('0x5b')]('span',{'class':_0x186a('0x9')+_0x32710b});_0x5398b5[_0x186a('0x112')]['insert'](_0x30c8af,_0x5a22ab),_0x5398b5['mapper'][_0x186a('0x10b')](_0x5a22ab,_0x25c0a8['markerName']);}_0x5c036c||_0x2bf36b||!_0xf6e04f||_0x1da82a(_0xf6e04f);};}export class RestoreRevisionCommand extends _0x49ffb8{constructor(_0x29a8e1){super(_0x29a8e1);const _0x51ea99=_0x29a8e1[_0x186a('0x1f')][_0x186a('0x2c')](d);this[_0x186a('0x31')]=!0x1,this['listenTo'](_0x51ea99,_0x186a('0x2a'),()=>this[_0x186a('0x21')]()),this[_0x186a('0x7d')](_0x51ea99,_0x186a('0x119'),()=>this['refresh']());}[_0x186a('0x10c')](){const _0x5cdd03=this['editor'],_0x2ecbb4=_0x5cdd03[_0x186a('0x1f')][_0x186a('0x2c')](d),_0x5f1b9e=_0x2ecbb4[_0x186a('0xd1')]?_0x2ecbb4[_0x186a('0xaa')][_0x186a('0xaf')]:null;_0x5cdd03[_0x186a('0x8a')][_0x186a('0x2c')](_0x186a('0x84'))['restoreRevisionCallback'](_0x5f1b9e);}['refresh'](){const {isReady:_0xf4cebf,isEnabled:_0x5f8c9b}=this[_0x186a('0xe3')][_0x186a('0x1f')][_0x186a('0x2c')](d);this[_0x186a('0xb3')]=_0xf4cebf&&_0x5f8c9b;}}export class ShowChangeCommand extends _0x49ffb8{constructor(_0x35ff70,{direction:_0x5ceb33}){super(_0x35ff70);const _0xf5e9fc=_0x35ff70['plugins']['get'](d);this[_0x186a('0x31')]=!0x1,this[_0x186a('0xfc')]=_0x186a('0x118')===_0x5ceb33?0x1:-0x1,this[_0x186a('0x7d')](_0xf5e9fc,_0x186a('0x2a'),()=>this[_0x186a('0x21')]()),this[_0x186a('0x7d')](_0xf5e9fc,'change:isEnabled',()=>this[_0x186a('0x21')]()),this[_0x186a('0x7d')](_0xf5e9fc,_0x186a('0x5e'),()=>this[_0x186a('0x21')]());}[_0x186a('0x10c')](){const _0x499761=this[_0x186a('0xe3')],_0x3bd7cf=_0x499761[_0x186a('0x1f')][_0x186a('0x2c')](d),{isNavigationMode:_0x5e7e6a,currentChangeNumber:_0x2852eb}=_0x3bd7cf;let _0x91848e;if(_0x3bd7cf['activeChange']=_0x5e7e6a?_0x3bd7cf[_0x186a('0xaa')][_0x186a('0x116')][_0x186a('0x2c')](_0x2852eb+this[_0x186a('0xfc')]):_0x3bd7cf[_0x186a('0xaa')][_0x186a('0x116')][_0x186a('0xc6')],_0x3bd7cf['activeChange'][_0x186a('0xa7')][_0x186a('0x7a')])_0x91848e=_0x499761['editing'][_0x186a('0x92')][_0x186a('0xb')](_0x3bd7cf['activeChange'][_0x186a('0x29')]);else{const _0x4622ae=_0x499761['model'][_0x186a('0xa2')][_0x186a('0x2c')](_0x186a('0x4')+_0x3bd7cf[_0x186a('0xde')]['id']);_0x91848e=_0x20bc80(_0x499761[_0x186a('0x55')],_0x4622ae);}_0x225745({'target':_0x91848e,'viewportOffset':0x28});}[_0x186a('0x21')](){const {isNavigationMode:_0x9d22f4,currentChangeNumber:_0x5617b0,numberOfChanges:_0x2da18b,isReady:_0x20ff97,isEnabled:_0x368c0a}=this[_0x186a('0xe3')][_0x186a('0x1f')]['get'](d);this[_0x186a('0xb3')]=!!(_0x368c0a&&_0x20ff97&&_0x2da18b)&&(!_0x9d22f4||(0x1===this['_step']?_0x5617b0<_0x2da18b-0x1:_0x5617b0>0x0));}}
|
|
23
|
+
const _0x3aab=['_makeModelFromTape','changeId','viewItem','maxOffset','_step','_makeModelFromViewString','isOnRoot','_update','detachRoot','slice','revision-suggestion','ck-suggestion-marker-split','isCollapsed','toData','getRootNames','isInline','addMarker:revision-suggestion:insertion','element','model','ck-editor__editable__overlay','_markMarkers','flat','getAttribute','ck-revision-history-root-','observeMarkers','revision','low','_markSuggestions','unbindElementFromMarkerName','attachChange','getRevision','_markMismatchedRemovedTags','_findChangeIdFromDomTarget','isEqual','level','find','RevisionsRepository','_cleanMarkers','_sortAndFilterDiffChanges','push','domConverter','revisionHistory','authors','activeChange','getChild','getRevisionRootsAttributes','mousedown','return','isLimit','diff','clear','markersStart','deletions','isObject','bottom','toModel','toViewElement','isEnabled','showNextChange','ck-revision-history-root-remove','get','numberOfChanges','addHighlight','bind','newRevisionId','editor','_processTape','RevisionViewer','filter','attributesAfter','parent','activeView','revision-start','getIndex','item','ck-revision-history-root--active','downcastDispatcher','length','changes','attributesBefore','init','ck-suggestion-preview-marker','uiElement','pairId','add','vid_end','markers','change:numberOfChanges','dataDowncast','map','elementStart','addMarker:revision-suggestion:deletion','_setChanges','change:isEnabled','mapViewToDom','collaboration.channelId','top','enableReadOnlyMode','createAttributeElement','next','toViewRange','children','_balloon','change','pop','domEvent','change:isReady','markerToHighlight','addRevision','view','diffData','vid_start','WidgetToolbarRepository','offsetSize','previousPosition','target','addRoot','getItems','destroy','-new','getCustomProperty','nextSibling','change:activeView','index','_markInsertions','addMarker:revision','_getViewObj','shift','object','vid','execute','default','start','isAddSuggestion','elementEnd','_getChangeFromId','includes','useFillerType','markerRange','markerNameToElements','reconvertMarker','bindElementToMarker','getAttributes','endIndex','createUIElement','_setDistance','consumable','POSITIVE_INFINITY','forEach','remove','distance','data','addClass','mapper','indexOf','config','isAdded','isBefore','has','listenTo','removeMarker','span','_getRevisionsRange','forward','enqueueChange','consume','left','sort','insertions','removeMarker:revision-suggestion','_getViewForChange','_activeViewTarget','type','hasClass','commands','currentChangeNumber','unshift','deletion','test','text','revisionHistoryAttachChange','showPreviousChange','revision-comment:','restoreRevisionCallback','_appendChild','isAfter','comment','_makeTape','restoreRevision','attribute:vid','wrap','isIncorrect','concat','revision-suggestion:','getClientRects','isBlock','startsWith','modelRange','userId','isNavigationMode','rootName','adapter','conversion','document','_cleanUp','abs','schema','then','compare','findIndex','nodeAfter','isRemoveSuggestion','_joinTapes','_setConversion','revision-viewer','mouseover','range','data-change-id','_getDiff','getDomRoot','hasAttribute','requires','side','string','checkAttribute','_changeView','ck-suggestion-marker-merge','error','ck-suggestion-marker--active','processor','high','markerToData','keys','delete','parse','isAttached','loadRevisionData','isRemoved','isContent','upcast','_fixObsoleteTags','pluginName','editingDowncast','first','suggestion:','isAtEnd','roots','createPositionBefore','createRange','all','for','data-revision-','dataToMarker','isSuggestion','removeClass','plugins','_refreshStartEndIndex','locale','setAttribute','_removeMissingPairs','getWalker','attributes','revision:','_removeRevisionMarkers','resolve','insert','createPositionFromPath','repository','getRoot','name','_changeIdToChange','createRevision','highest','merge','selection','refresh','done','revisionHistoryLabel','insertion','set','end','startIndex','split','ck-suggestion-marker-','_initInteractions','splice','writer','editing','toViewPosition','markerName','ck-suggestion-preview-marker-','change:activeChange','backward','_revisions','ck-revision-history-root-add','from','isReady','markersEnd'];(function(_0x2fa8ee,_0x3aabec){const _0x10d632=function(_0x573327){while(--_0x573327){_0x2fa8ee['push'](_0x2fa8ee['shift']());}};_0x10d632(++_0x3aabec);}(_0x3aab,0x70));const _0x10d6=function(_0x2fa8ee,_0x3aabec){_0x2fa8ee=_0x2fa8ee-0x0;let _0x10d632=_0x3aab[_0x2fa8ee];return _0x10d632;};import{Plugin as _0x451ee7,Command as _0x5ab159}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x154fcd}from'ckeditor5/src/utils';import{ContextualBalloon as _0x4aa902}from'ckeditor5/src/ui';import{DocumentFragment as _0x469446,Element as _0x99abb8,Text as _0x37723c,ViewDocumentFragment as _0x409c19,ViewText as _0x41cb49,ViewElement as _0x2c9b78,ViewContainerElement as _0x3a0ba3,ViewAttributeElement as _0x426074,ViewEmptyElement as _0x5b0573,ViewRawElement as _0x1bd6d6,ViewUIElement as _0x4c566e}from'ckeditor5/src/engine';import{Users as _0x35ab2f,getMarkerDomElement as _0x2d8e50}from'ckeditor5-collaboration/src/collaboration-core';import _0xe2d2d7 from'./ui/revisionviewer/changedetailsview';import _0x1b14d9 from'./revisionsrepository';import _0x26840e from'./changeitem';import{default as _0x4c06d3}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x17e379}from'lodash-es';const tt={'c':_0x3a0ba3,'a':_0x426074,'e':_0x5b0573,'r':_0x1bd6d6,'u':_0x4c566e};export default class d extends _0x451ee7{static get[_0x10d6('0x81')](){return _0x10d6('0xfd');}static get[_0x10d6('0x6d')](){return[_0x35ab2f,_0x4aa902,_0x1b14d9];}constructor(_0x5bcd8f){super(_0x5bcd8f),this[_0x10d6('0x9b')]=this['editor'][_0x10d6('0x8f')]['get'](_0x10d6('0xde')),this[_0x10d6('0xa7')](_0x10d6('0xe5'),null),this[_0x10d6('0xa7')]('activeView',null),this['_activeViewTarget']=null,this[_0x10d6('0xa7')](_0x10d6('0xeb'),null),this[_0x10d6('0xa7')](_0x10d6('0xb8'),!0x1),this[_0x10d6('0xa7')](_0x10d6('0xf3'),!0x0),this['on'](_0x10d6('0x117'),(_0x17d7ba,_0x4109de,_0x2a4aea)=>{this[_0x10d6('0xe5')]=null,this[_0x10d6('0x101')]=null,this['editor'][_0x10d6('0xaf')][_0x10d6('0x127')][_0x10d6('0x121')](_0x2a411f=>{for(const _0x1b3bd8 of this['editor']['editing'][_0x10d6('0x127')]['document'][_0x10d6('0x86')])_0x2a4aea?_0x2a411f['removeClass'](_0x10d6('0xcd'),_0x1b3bd8):_0x2a411f[_0x10d6('0x28')](_0x10d6('0xcd'),_0x1b3bd8);});}),this[_0x10d6('0xf9')](_0x10d6('0x57'))['to'](this,'activeChange',_0x16002e=>null!==_0x16002e),this[_0x10d6('0xf9')](_0x10d6('0x3f'))['to'](this,_0x10d6('0xb8'),this,_0x10d6('0xeb'),this,_0x10d6('0xe5'),(_0x5409f4,_0x420d52,_0x442791)=>_0x5409f4&&_0x442791?_0x420d52[_0x10d6('0x108')][_0x10d6('0x103')](_0x442791):0x0),this[_0x10d6('0xf9')](_0x10d6('0xf7'))['to'](this,'isReady',this,_0x10d6('0xeb'),(_0x423dc7,_0x423c6e)=>_0x423dc7?_0x423c6e['changes'][_0x10d6('0x107')]:0x0),this[_0x10d6('0x71')]=null,this[_0x10d6('0x9e')]=new Map(),this[_0x10d6('0x59')]=null,this[_0x10d6('0x120')]=this['editor'][_0x10d6('0x8f')][_0x10d6('0xf6')](_0x4aa902);}[_0x10d6('0x10a')](){const _0x7d5b97=this['editor'],_0x500b93=new ShowChangeCommand(_0x7d5b97,{'direction':_0x10d6('0xb4')}),_0x4dadc5=new ShowChangeCommand(_0x7d5b97,{'direction':_0x10d6('0x33')});(_0x7d5b97[_0x10d6('0x3e')][_0x10d6('0x10e')](_0x10d6('0x45'),_0x500b93),_0x7d5b97[_0x10d6('0x3e')][_0x10d6('0x10e')](_0x10d6('0xf4'),_0x4dadc5),_0x7d5b97['commands'][_0x10d6('0x10e')](_0x10d6('0x4c'),new RestoreRevisionCommand(_0x7d5b97)),this['on'](_0x10d6('0x111'),()=>{_0x500b93['refresh'](),_0x4dadc5[_0x10d6('0xa3')]();}),this[_0x10d6('0x65')](),this[_0x10d6('0xac')](),_0x7d5b97[_0x10d6('0x11b')](_0x10d6('0x66')),_0x7d5b97['plugins'][_0x10d6('0x2e')](_0x10d6('0x0')))&&_0x7d5b97['plugins'][_0x10d6('0xf6')]('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x39537e){await this[_0x10d6('0x7c')](_0x39537e);const _0x5e20df={};for(const _0x3a7214 in _0x39537e['diffData']){if(_0x39537e[_0x10d6('0x128')][_0x3a7214]['attachChange']&&!_0x39537e[_0x10d6('0x128')][_0x3a7214][_0x10d6('0xd7')][_0x10d6('0x7b')])continue;const _0x315d8d=this[_0x10d6('0x97')](JSON[_0x10d6('0x7a')](_0x39537e[_0x10d6('0x128')][_0x3a7214][_0x10d6('0x38')])),_0x14d01a=this[_0x10d6('0xfb')][_0x10d6('0xaf')]['view'][_0x10d6('0x5b')],_0x4a3188=new _0x409c19(_0x14d01a,_0x315d8d[_0x10d6('0x113')](_0x3791d4=>this[_0x10d6('0xe')](_0x3791d4)));this[_0x10d6('0xfb')][_0x10d6('0x27')][_0x10d6('0x75')]['useFillerType']('marked'),_0x5e20df[_0x3a7214]=this[_0x10d6('0xfb')][_0x10d6('0x27')][_0x10d6('0x75')][_0x10d6('0xc7')](_0x4a3188),this[_0x10d6('0xfb')][_0x10d6('0x27')]['processor'][_0x10d6('0x19')](_0x10d6('0x13'));}return _0x5e20df;}async[_0x10d6('0xe7')](_0x20387f){await this[_0x10d6('0x7c')](_0x20387f);const _0x1a82f9={};for(const _0x3548b9 in _0x20387f[_0x10d6('0x128')])_0x20387f[_0x10d6('0x128')][_0x3548b9]['attachChange']&&!_0x20387f[_0x10d6('0x128')][_0x3548b9][_0x10d6('0xd7')]['isAttached']||(_0x1a82f9[_0x3548b9]=_0x20387f[_0x10d6('0x128')][_0x3548b9][_0x10d6('0xff')]||{});return _0x1a82f9;}[_0x10d6('0x97')](_0x47bdf6){return(_0x47bdf6=_0x47bdf6['filter'](_0x529100=>!_0x529100[_0x10d6('0x9d')]||_0x10d6('0x102')!==_0x529100[_0x10d6('0x9d')]&&'revision-end'!==_0x529100[_0x10d6('0x9d')]))[_0x10d6('0x24')](_0x45739f=>{_0x10d6('0x6f')!=typeof _0x45739f&&(_0x45739f[_0x10d6('0x11f')]=this[_0x10d6('0x97')](_0x45739f[_0x10d6('0x11f')]),_0x45739f['attributes']=_0x45739f[_0x10d6('0x95')][_0x10d6('0xfe')](_0x4922bc=>!_0x4922bc[0x0][_0x10d6('0x54')](_0x10d6('0x8b'))));}),_0x47bdf6;}async[_0x10d6('0x60')](_0xa3c954,_0x3e7048,_0x563d30=!0x1){if(!this[_0x10d6('0xf3')])return;const _0x292a6a=this['diff'],_0x385e13=this['repository'],_0x145765='string'==typeof _0xa3c954?_0x385e13['getRevision'](_0xa3c954):_0xa3c954,_0x483185='string'==typeof _0x3e7048?_0x385e13[_0x10d6('0xd8')](_0x3e7048):_0x3e7048,_0x168215=_0x145765['id'],_0x2004a1=_0x483185?_0x483185['id']:null;if(!_0x563d30&&this[_0x10d6('0xeb')]&&this[_0x10d6('0xeb')][_0x10d6('0xfa')]===_0x168215&&this[_0x10d6('0xeb')]['oldRevisionId']===_0x2004a1)return Promise[_0x10d6('0x98')]();this[_0x10d6('0xb8')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0x10d6('0xeb')]=new _0x4c06d3(_0x168215,_0x2004a1);const _0x123eb5=this[_0x10d6('0x32')](_0x145765,_0x483185,!0x0)[_0x10d6('0x113')](_0x292211=>this[_0x10d6('0x7c')](_0x292211));return _0x123eb5[_0x10d6('0xe1')](new Promise(_0x4fa8dd=>{setTimeout(_0x4fa8dd,0x14);})),Promise[_0x10d6('0x89')](_0x123eb5)[_0x10d6('0x5f')](()=>{if(!this['isEnabled'])return;this[_0x10d6('0x5c')]();const _0x1ed507=this[_0x10d6('0x6a')](_0x168215,_0x2004a1);for(const _0x41582c of _0x1ed507[_0x10d6('0x108')])this[_0x10d6('0x9e')][_0x10d6('0xa7')](_0x41582c['id'],_0x41582c);this[_0x10d6('0xfb')]['model'][_0x10d6('0x34')]({'isUndoable':!0x1},_0x1658d3=>{for(const _0x984af5 of this[_0x10d6('0xfb')]['model'][_0x10d6('0x5b')][_0x10d6('0xc8')]())_0x1658d3[_0x10d6('0xc2')](_0x984af5);for(const _0x49b276 of Object[_0x10d6('0x78')](_0x1ed507[_0x10d6('0xcc')])){const _0x57514b=_0x1658d3[_0x10d6('0x4')](_0x49b276);for(const _0x173dbc of Object[_0x10d6('0x78')](_0x1ed507[_0x10d6('0x95')][_0x49b276]))_0x1658d3['setAttribute'](_0x173dbc,_0x1ed507[_0x10d6('0x95')][_0x49b276][_0x173dbc],_0x57514b);_0x1658d3[_0x10d6('0x99')](_0x1ed507[_0x10d6('0xcc')][_0x49b276],_0x57514b,0x0);}}),this[_0x10d6('0xeb')][_0x10d6('0x116')](this[_0x10d6('0xe0')](_0x1ed507[_0x10d6('0x108')])),this[_0x10d6('0xb8')]=!0x0;})['catch'](_0xae76e2=>{console[_0x10d6('0x73')](_0xae76e2),this[_0x10d6('0x5c')](),_0x292a6a&&(this[_0x10d6('0xeb')]=_0x292a6a),this[_0x10d6('0xb8')]=!0x0;});}['addRevisionData'](_0x766b37,_0x4ea65e){const _0x34eb70=this[_0x10d6('0x9b')][_0x10d6('0x9f')](_0x766b37);return _0x34eb70['on'](_0x10d6('0xc1'),(_0x53a752,_0x56c102,_0x58a525)=>_0x4ea65e(_0x56c102,_0x58a525,_0x34eb70)),this[_0x10d6('0x9b')][_0x10d6('0x126')](_0x34eb70),_0x34eb70;}['loadRevisionData'](_0xb4c8f7){if(!_0xb4c8f7||_0xb4c8f7[_0x10d6('0x128')])return Promise[_0x10d6('0x98')]();{const _0x5e72a3=this[_0x10d6('0xfb')][_0x10d6('0x2b')]['get'](_0x10d6('0x119'));return this[_0x10d6('0x59')][_0x10d6('0xd8')]({'channelId':_0x5e72a3,'revisionId':_0xb4c8f7['id']})[_0x10d6('0x5f')](_0xe36993=>{_0xb4c8f7[_0x10d6('0xc1')]({'diffData':_0xe36993[_0x10d6('0x128')]},!0x0);});}}[_0x10d6('0x5c')](){this[_0x10d6('0xe5')]=null,this[_0x10d6('0xdf')](),this['_changeView']&&this['_changeView'][_0x10d6('0x6')](),this[_0x10d6('0x71')]=null,this['_changeIdToChange'][_0x10d6('0xec')](),this[_0x10d6('0xfb')][_0x10d6('0xcc')][_0x10d6('0x34')]({'isUndoable':!0x1},_0x1de3ad=>{for(const _0x234e11 of this[_0x10d6('0xfb')][_0x10d6('0xcc')]['document'][_0x10d6('0xc8')]())_0x1de3ad['detachRoot'](_0x234e11);});}['_sortAndFilterDiffChanges'](_0x2760ec){const _0x210b2c=[],_0x42b231=new Map();for(const _0x334d1b of this[_0x10d6('0xfb')][_0x10d6('0xcc')][_0x10d6('0x5b')][_0x10d6('0xc8')]()){const _0x1138a0=this['editor']['editing']['view'][_0x10d6('0x6b')](_0x334d1b);if(!_0x1138a0)continue;const _0xe8fa6c=_0x1138a0['getClientRects']()[_0x10d6('0x104')](0x0);_0xe8fa6c&&(_0x210b2c[_0x10d6('0xe1')](_0x334d1b),_0x42b231[_0x10d6('0xa7')](_0x334d1b,_0xe8fa6c));}return _0x210b2c[_0x10d6('0x37')]((_0x550c71,_0x5b0a52)=>{const _0x440af0=_0x42b231[_0x10d6('0xf6')](_0x550c71),_0x123c22=_0x42b231[_0x10d6('0xf6')](_0x5b0a52);return _0x440af0['y']-_0x123c22['y']||_0x440af0['x']-_0x123c22['x'];}),(_0x2760ec=_0x2760ec[_0x10d6('0xfe')](_0x31158e=>_0x210b2c[_0x10d6('0x18')](_0x31158e['rootName'])))['sort']((_0x2addc5,_0xd751b7)=>_0x210b2c[_0x10d6('0x2a')](_0x2addc5[_0x10d6('0x58')])-_0x210b2c[_0x10d6('0x2a')](_0xd751b7[_0x10d6('0x58')])),_0x2760ec;}['_makeTape'](_0x157a37){const _0x2bcec5=Array['from'](_0x157a37[_0x10d6('0x110')])[_0x10d6('0xfe')](([_0x53f87a,_0x3fff26])=>_0x53f87a['startsWith'](_0x10d6('0x96'))&&!_0x3fff26[_0x10d6('0xc6')]),_0x12061c=Array[_0x10d6('0xb7')](this[_0x10d6('0xfb')]['model']['createRangeIn'](_0x157a37)[_0x10d6('0x94')]({'singleCharacters':!0x0}));if(0x0!=_0x2bcec5[_0x10d6('0x107')])for(const _0x114a8a of _0x12061c){const [_0x46b11f,_0x87f842]=_0x2bcec5[0x0],[,_0x552475,_0x4eec92]=_0x46b11f[_0x10d6('0xaa')](':');if(_0x87f842[_0x10d6('0xa8')][_0x10d6('0xdb')](_0x114a8a['nextPosition'])&&_0x2bcec5['shift'](),(_0x114a8a['previousPosition'][_0x10d6('0xdb')](_0x87f842[_0x10d6('0x14')])||_0x114a8a[_0x10d6('0x2')][_0x10d6('0x49')](_0x87f842[_0x10d6('0x14')]))&&(_0x10d6('0xa6')==_0x552475?_0x114a8a[_0x10d6('0x2c')]={'userId':_0x4eec92}:'deletion'==_0x552475&&(_0x114a8a[_0x10d6('0x7d')]={'userId':_0x4eec92})),0x0==_0x2bcec5[_0x10d6('0x107')])break;}return _0x12061c;}[_0x10d6('0x90')](_0x22461d){const _0x2782a0=new Map();for(let _0x422409=0x0;_0x422409<_0x22461d[_0x10d6('0x107')];_0x422409++)_0x10d6('0x43')===_0x22461d[_0x422409][_0x10d6('0x3c')]?(_0x22461d[_0x422409][_0x10d6('0x104')]['startIndex']=_0x422409,_0x22461d[_0x422409][_0x10d6('0x104')][_0x10d6('0x1f')]=_0x422409):(_0x10d6('0x114')===_0x22461d[_0x422409][_0x10d6('0x3c')]?_0x22461d[_0x422409]['item'][_0x10d6('0xa9')]=_0x422409:_0x10d6('0x16')===_0x22461d[_0x422409][_0x10d6('0x3c')]&&(_0x22461d[_0x422409][_0x10d6('0x104')][_0x10d6('0x1f')]=_0x422409),_0x2782a0[_0x10d6('0xa7')](_0x22461d[_0x422409]['id'],_0x422409));for(const _0x1fee8a of _0x2782a0['values']())_0x10d6('0x114')===_0x22461d[_0x1fee8a][_0x10d6('0x3c')]?_0x22461d[_0x1fee8a][_0x10d6('0x104')]['endIndex']=_0x2782a0[_0x10d6('0xf6')](_0x22461d[_0x1fee8a][_0x10d6('0x10d')]):_0x10d6('0x16')===_0x22461d[_0x1fee8a][_0x10d6('0x3c')]&&(_0x22461d[_0x1fee8a][_0x10d6('0x104')][_0x10d6('0xa9')]=_0x2782a0[_0x10d6('0xf6')](_0x22461d[_0x1fee8a]['pairId']));}[_0x10d6('0xfc')](_0x4f1ce2){for(let _0x1edb34=0x0;_0x1edb34<_0x4f1ce2[_0x10d6('0x107')];_0x1edb34++){if('elementStart'===_0x4f1ce2[_0x1edb34][_0x10d6('0x3c')])_0x4f1ce2[_0x1edb34][_0x10d6('0x104')][_0x10d6('0xa9')]=_0x1edb34;else{if(_0x10d6('0x16')===_0x4f1ce2[_0x1edb34][_0x10d6('0x3c')]){_0x4f1ce2[_0x1edb34][_0x10d6('0x104')][_0x10d6('0x1f')]=_0x1edb34;const _0x589039=_0x4f1ce2[_0x1edb34][_0x10d6('0x104')][_0x10d6('0xa9')];_0x4f1ce2[_0x589039][_0x10d6('0x10d')]=_0x4f1ce2[_0x1edb34]['id'],_0x4f1ce2[_0x1edb34][_0x10d6('0x10d')]=_0x4f1ce2[_0x589039]['id'];}else _0x4f1ce2[_0x1edb34]['item'][_0x10d6('0xa9')]=_0x1edb34,_0x4f1ce2[_0x1edb34][_0x10d6('0x104')][_0x10d6('0x1f')]=_0x1edb34,_0x4f1ce2[_0x1edb34][_0x10d6('0x10d')]=null;}_0x4f1ce2[_0x1edb34]['markersStart']||(_0x4f1ce2[_0x1edb34][_0x10d6('0xed')]=[],_0x4f1ce2[_0x1edb34]['markersEnd']=[]);}}[_0x10d6('0xc')](_0x239607,_0x4c2994){const _0x1cbfea=_0x239607[_0x10d6('0xfe')](_0x24361e=>!_0x24361e['isAdded']);for(let _0x5949eb=0x0;_0x5949eb<_0x4c2994[_0x10d6('0x107')];_0x5949eb++)_0x4c2994[_0x5949eb]['isAdded']&&(_0x1cbfea[_0x5949eb][_0x10d6('0x2c')]=_0x4c2994[_0x5949eb][_0x10d6('0x2c')]);}['_makeModelFromViewString'](_0x4519a5){const _0x43b145=JSON['parse'](_0x4519a5),_0x38aea5=this['editor']['editing']['view'][_0x10d6('0x5b')],_0x39d560=new _0x409c19(_0x38aea5,_0x43b145[_0x10d6('0x113')](_0x49c1df=>this[_0x10d6('0xe')](_0x49c1df)));return this['editor'][_0x10d6('0x27')][_0x10d6('0xf1')](_0x39d560);}[_0x10d6('0xe')](_0x1327a7){const _0x19e922=this[_0x10d6('0xfb')][_0x10d6('0xaf')][_0x10d6('0x127')][_0x10d6('0x5b')];if(_0x10d6('0x6f')==typeof _0x1327a7)return new _0x41cb49(_0x19e922,_0x1327a7);{const _0x4cff0a=_0x1327a7[_0x10d6('0x11f')]['map'](_0x2a2b29=>this[_0x10d6('0xe')](_0x2a2b29));return new(tt[_0x1327a7[(_0x10d6('0x3c'))]]||_0x2c9b78)(_0x19e922,_0x1327a7[_0x10d6('0x9d')],_0x1327a7[_0x10d6('0x95')],_0x4cff0a);}}[_0x10d6('0x6a')](_0x41de19,_0x30b7f2=null){const _0x4fd1bf=this[_0x10d6('0x9b')][_0x10d6('0xd8')](_0x41de19),_0x4b790c=_0x30b7f2?this[_0x10d6('0x9b')][_0x10d6('0xd8')](_0x30b7f2):null,_0x3ec11d=this[_0x10d6('0x32')](_0x4fd1bf,_0x4b790c),_0x4ccf42=_0x3ec11d[_0x3ec11d[_0x10d6('0x107')]-0x1],_0x2d6d63=new Map(),_0x22282f={'model':{},'attributes':{},'changes':[]},_0x361dc1=new Set(),_0x4a2215=new Map();for(let _0x23a6ab=_0x3ec11d['length']-0x1;_0x23a6ab>=0x0;_0x23a6ab--){const _0x534a67=_0x3ec11d[_0x23a6ab];for(const _0x245c09 of Object[_0x10d6('0x78')](_0x534a67[_0x10d6('0x128')]))if(_0x534a67[_0x10d6('0x128')][_0x245c09]['attachChange']){const _0x3b6409=_0x534a67[_0x10d6('0x128')][_0x245c09][_0x10d6('0xd7')];_0x3b6409[_0x10d6('0x7b')]?(_0x361dc1[_0x10d6('0x10e')](_0x245c09),_0x4a2215[_0x10d6('0x2e')](_0x245c09)&&_0x4a2215[_0x10d6('0xf6')](_0x245c09)[_0x10d6('0x56')]==_0x3b6409['userId']?_0x4a2215[_0x10d6('0x79')](_0x245c09):_0x4a2215[_0x10d6('0xa7')](_0x245c09,_0x3b6409)):_0x4a2215[_0x10d6('0x2e')](_0x245c09)?(_0x361dc1[_0x10d6('0x79')](_0x245c09),_0x4a2215[_0x10d6('0x79')](_0x245c09)):(_0x361dc1[_0x10d6('0x10e')](_0x245c09),_0x4a2215[_0x10d6('0xa7')](_0x245c09,_0x3b6409));}else _0x361dc1[_0x10d6('0x10e')](_0x245c09);}for(const _0x2bb652 of _0x361dc1){const _0x45b9be=_0x4a2215['has'](_0x2bb652)&&!_0x4a2215['get'](_0x2bb652)[_0x10d6('0x7b')];let _0x9e8132=_0x45b9be?_0x3ec11d['length']-0x1:0x0;const _0x53d218=_0x45b9be?-0x1:0x1;for(;_0x3ec11d[_0x9e8132];){const _0x3cd895=_0x3ec11d[_0x9e8132];if(_0x3cd895[_0x10d6('0x128')][_0x2bb652]){const _0x3adff4=_0x45b9be?_0x3cd895[_0x10d6('0x128')][_0x2bb652][_0x10d6('0x109')]:_0x3cd895[_0x10d6('0x128')][_0x2bb652][_0x10d6('0xff')];_0x22282f[_0x10d6('0x95')][_0x2bb652]=_0x3adff4?_0x17e379(_0x3adff4):{};break;}_0x9e8132+=_0x53d218;}}for(const _0x2b29e8 of _0x3ec11d){_0x2b29e8[_0x10d6('0xcc')]={};for(const _0xd92157 of _0x2b29e8[_0x10d6('0xe4')])_0x2d6d63['set'](_0xd92157['id'],_0xd92157);for(const _0x249513 of _0x361dc1){const _0x5e15c7=_0x2b29e8[_0x10d6('0x128')][_0x249513]?_0x2b29e8['diffData'][_0x249513]['insertions']:'[]',_0x3672aa=_0x2b29e8['diffData'][_0x249513]?_0x2b29e8[_0x10d6('0x128')][_0x249513][_0x10d6('0xee')]:'[]';_0x2b29e8['model'][_0x249513]={'insertions':this[_0x10d6('0xbf')](_0x5e15c7),'deletions':this[_0x10d6('0xbf')](_0x3672aa)};}}for(const _0xf4a092 of _0x361dc1){let _0x196ae8=null,_0x590ad0=0x0;const _0x5377bd=new Map(Array[_0x10d6('0xb7')](_0x4fd1bf[_0x10d6('0xcc')][_0xf4a092][_0x10d6('0x38')][_0x10d6('0x110')])[_0x10d6('0xfe')](([_0x193336])=>!_0x193336[_0x10d6('0x54')](_0x10d6('0x96'))));let _0x12b012=0x0;for(const _0x461aea of _0x3ec11d){const _0x7cc74=this[_0x10d6('0x4b')](_0x461aea[_0x10d6('0xcc')][_0xf4a092][_0x10d6('0x38')]);_0x461aea==_0x4fd1bf?(_0x196ae8=_0x7cc74,_0x590ad0=_0x196ae8[_0x10d6('0x107')],_0x196ae8[_0x10d6('0x24')](_0xcea3e2=>{_0xcea3e2['id']=_0x12b012++;}),this[_0x10d6('0xfc')](_0x196ae8)):this['_markInsertions'](_0x196ae8,_0x7cc74);const _0x27dc7e=_0x196ae8[_0x10d6('0xfe')](_0x3debe5=>!_0x3debe5[_0x10d6('0x2c')])[_0x10d6('0x113')](_0xd71185=>_0xd71185['id']);let _0x130603=0x0;const _0x5c1ed9=this['_makeTape'](_0x461aea[_0x10d6('0xcc')][_0xf4a092][_0x10d6('0xee')]);_0x5c1ed9[_0x10d6('0x24')](_0x403fb5=>{_0x403fb5['isRemoved']?_0x403fb5['id']=_0x590ad0++:_0x403fb5['id']=_0x27dc7e[_0x130603++];}),this[_0x10d6('0xfc')](_0x5c1ed9),this['_setDistance'](_0x196ae8,_0x10d6('0x2c')),this['_setDistance'](_0x5c1ed9,'isRemoved'),_0x461aea==_0x4fd1bf&&this['_markMarkers'](_0x196ae8,_0x5377bd),_0x196ae8=this[_0x10d6('0x64')](_0x196ae8,_0x5c1ed9),this[_0x10d6('0x90')](_0x196ae8),this['_setDistance'](_0x196ae8,_0x10d6('0x7d'));}_0x196ae8=_0x196ae8[_0x10d6('0xfe')](_0x45a3c9=>!(_0x45a3c9['isAdded']&&_0x45a3c9[_0x10d6('0x7d')]));const _0x4c36e6=new Map(_0x4ccf42[_0x10d6('0xcc')][_0xf4a092][_0x10d6('0xee')][_0x10d6('0x110')]),_0x145a74=new Set(_0x5377bd[_0x10d6('0x78')]());for(const _0x19b216 of _0x4c36e6[_0x10d6('0x78')]())_0x145a74[_0x10d6('0x79')](_0x19b216);this[_0x10d6('0xd5')](_0x196ae8,_0x145a74),this[_0x10d6('0x80')](_0x196ae8),_0x196ae8=this[_0x10d6('0x93')](_0x196ae8),_0x196ae8=this['_markMismatchedRemovedTags'](_0x196ae8),_0x196ae8=this['_removeUnsupportedChanges'](_0x196ae8);const {root:_0x20acab,changes:_0x3666e6}=this[_0x10d6('0xba')](_0x196ae8,_0x2d6d63,_0xf4a092);_0x22282f[_0x10d6('0xcc')][_0xf4a092]=_0x20acab;const _0x1b3258=_0x4a2215[_0x10d6('0xf6')](_0xf4a092);if(_0x1b3258){const _0x2e85aa=_0x2d6d63[_0x10d6('0xf6')](_0x1b3258[_0x10d6('0x56')]),_0x94b673=new _0x26840e({'author':_0x2e85aa,'type':_0x1b3258[_0x10d6('0x7b')]?_0x10d6('0x10e'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xf4a092});_0x3666e6['unshift'](_0x94b673),_0x22282f[_0x10d6('0x95')][_0xf4a092][_0x10d6('0x44')]=_0x94b673['id'];}_0x22282f['changes']=_0x22282f['changes'][_0x10d6('0x50')](_0x3666e6);}return _0x22282f;}[_0x10d6('0xce')](_0x4476ae,_0x27a863){for(let _0x9ebbc4=0x0;_0x9ebbc4<_0x4476ae[_0x10d6('0x107')];_0x9ebbc4++)for(const [_0xb48c23,_0x4786ed]of _0x27a863)_0x4786ed[_0x10d6('0x14')][_0x10d6('0xdb')](_0x4476ae[_0x9ebbc4][_0x10d6('0x2')])&&_0x4476ae[_0x9ebbc4][_0x10d6('0xed')][_0x10d6('0xe1')](_0xb48c23),_0x4786ed[_0x10d6('0xa8')][_0x10d6('0xdb')](_0x4476ae[_0x9ebbc4]['nextPosition'])&&_0x4476ae[_0x9ebbc4][_0x10d6('0xb9')][_0x10d6('0xe1')](_0xb48c23);}[_0x10d6('0x64')](_0x537c9f,_0x1cf56c){let _0x1bf837=[],_0x1cce74=0x0,_0x3f3d1c=0x0;for(;_0x1cce74<_0x537c9f[_0x10d6('0x107')]||_0x3f3d1c<_0x1cf56c['length'];){const _0x4740e4=_0x537c9f[_0x1cce74]||{},_0x222260=_0x1cf56c[_0x3f3d1c]||{};if(_0x4740e4['id']==_0x222260['id'])_0x1cce74++,_0x3f3d1c++,_0x1bf837[_0x10d6('0xe1')](_0x4740e4);else{if(_0x222260[_0x10d6('0x7d')]&&_0x4740e4[_0x10d6('0x2c')]){const {commonTape:_0x3a7487,iEnd:_0x419a15,jEnd:_0x4edf9c}=this['_threeWayMerge'](_0x537c9f,_0x1cce74,_0x1cf56c,_0x3f3d1c);_0x1bf837=_0x1bf837[_0x10d6('0x50')](_0x3a7487),_0x1cce74=_0x419a15,_0x3f3d1c=_0x4edf9c;}else _0x222260['isRemoved']?(_0x3f3d1c++,_0x1bf837[_0x10d6('0xe1')](_0x222260)):(_0x1cce74++,_0x1bf837[_0x10d6('0xe1')](_0x4740e4));}}return _0x1bf837;}['_markSuggestions'](_0x26c531,_0xf59358){const _0x41e505=[];for(let _0x3f89e6=0x0;_0x3f89e6<_0x26c531[_0x10d6('0x107')];_0x3f89e6++){for(let _0x27b925=0x0;_0x27b925<_0x26c531[_0x3f89e6]['markersStart'][_0x10d6('0x107')];_0x27b925++){const _0x404905=_0x26c531[_0x3f89e6]['markersStart'][_0x27b925];if(!_0xf59358[_0x10d6('0x2e')](_0x404905))continue;const {group:_0x216b49,type:_0x1cadf9,authorId:_0x5f568e}=_0x5b896f(_0x404905);_0x10d6('0xc4')!=_0x216b49||_0x10d6('0xa6')!=_0x1cadf9&&_0x10d6('0x41')!=_0x1cadf9||(_0x41e505[_0x10d6('0x40')]({'type':_0x1cadf9,'name':_0x404905,'userId':_0x5f568e}),_0x26c531[_0x3f89e6][_0x10d6('0xed')][_0x10d6('0xad')](_0x27b925,0x1),_0x27b925--);}_0x412689(_0x26c531[_0x3f89e6]);for(let _0x1e43fd=0x0;_0x1e43fd<_0x26c531[_0x3f89e6][_0x10d6('0xb9')][_0x10d6('0x107')];_0x1e43fd++){const _0x4ee34e=_0x26c531[_0x3f89e6][_0x10d6('0xb9')][_0x1e43fd];if(!_0xf59358[_0x10d6('0x2e')](_0x4ee34e))continue;const {group:_0x5a8b19,type:_0x65573e}=_0x5b896f(_0x4ee34e);if('revision-suggestion'!=_0x5a8b19||_0x10d6('0xa6')!=_0x65573e&&_0x10d6('0x41')!=_0x65573e)continue;_0x26c531[_0x3f89e6][_0x10d6('0xb9')][_0x10d6('0xad')](_0x1e43fd,0x1),_0x1e43fd--;const _0xcbc73a=_0x41e505[_0x10d6('0x61')](_0x5e2b3c=>_0x5e2b3c[_0x10d6('0x9d')]==_0x4ee34e);_0xcbc73a>-0x1&&_0x41e505['splice'](_0xcbc73a,0x1);}}function _0x5b896f(_0x171ffc){const _0x1c84d2=_0x171ffc['split'](':');return{'group':_0x1c84d2[0x0],'type':_0x1c84d2[0x1],'subType':_0x1c84d2[_0x10d6('0x107')]>=0x5?_0x1c84d2[0x2]:null,'id':_0x1c84d2[_0x10d6('0x107')]<0x5?_0x1c84d2[0x2]:_0x1c84d2[0x3],'authorId':_0x1c84d2[_0x10d6('0x107')]<0x5?_0x1c84d2[0x3]:_0x1c84d2[0x4],'markerCount':0x6==_0x1c84d2[_0x10d6('0x107')]?_0x1c84d2[0x5]:null};}function _0x412689(_0x5b6f4e){for(let _0x507300=0x0;_0x507300<_0x41e505[_0x10d6('0x107')];_0x507300++){if(_0x5b6f4e[_0x10d6('0x2c')]&&_0x10d6('0xa6')==_0x41e505[_0x507300][_0x10d6('0x3c')])return _0x5b6f4e[_0x10d6('0x15')]=_0x41e505[_0x507300],void delete _0x5b6f4e[_0x10d6('0x2c')];if(!_0x5b6f4e[_0x10d6('0x2c')]&&!_0x5b6f4e['isRemoved']&&_0x10d6('0x41')==_0x41e505[_0x507300][_0x10d6('0x3c')])return void(_0x5b6f4e[_0x10d6('0x63')]=_0x41e505[_0x507300]);}}}[_0x10d6('0x21')](_0x2a772b,_0x5f3652){let _0x561f4c=0x0,_0x14c9d4=!0x1;const _0x1514aa=new Map();for(const _0x3fc07c of _0x2a772b)_0x3fc07c[_0x5f3652]?_0x14c9d4&&(_0x561f4c++,_0x14c9d4=!0x1):(_0x561f4c++,_0x14c9d4=!0x0),_0x1514aa['set'](_0x3fc07c['id'],_0x561f4c);for(let _0x32fbef=0x0;_0x32fbef<_0x2a772b[_0x10d6('0x107')];_0x32fbef++){if(_0x10d6('0x7d')==_0x5f3652&&_0x2a772b[_0x32fbef][_0x10d6('0x2c')]||_0x10d6('0x2c')==_0x5f3652&&_0x2a772b[_0x32fbef][_0x10d6('0x7d')])continue;if(_0x10d6('0x43')==_0x2a772b[_0x32fbef][_0x10d6('0x3c')]){_0x2a772b[_0x32fbef][_0x10d6('0x26')]=0x0;continue;}const _0x5ac5cb=_0x1514aa[_0x10d6('0xf6')](_0x2a772b[_0x32fbef][_0x10d6('0x10d')]),_0x5a2484=_0x1514aa[_0x10d6('0xf6')](_0x2a772b[_0x32fbef]['id']);_0x2a772b[_0x32fbef][_0x10d6('0x26')]=_0x5ac5cb-_0x5a2484;}}['_getRevisionsRange'](_0x5d5023,_0x18bd39,_0x5a92f5=!0x1){const _0x397e9b=[];let _0x5a9995=this[_0x10d6('0x9b')]['getIndex'](_0x5d5023),_0x154161=this[_0x10d6('0x9b')][_0x10d6('0x103')](_0x18bd39);for(-0x1==_0x154161&&(_0x154161=this[_0x10d6('0x9b')][_0x10d6('0xb5')]['length'],_0x5a92f5=!0x1);_0x5a9995<_0x154161;)_0x397e9b[_0x10d6('0xe1')](this['repository']['getRevision'](_0x5a9995)),_0x5a9995++;return _0x5a92f5&&_0x397e9b[_0x10d6('0xe1')](this[_0x10d6('0x9b')][_0x10d6('0xd8')](_0x5a9995)),_0x397e9b;}['_threeWayMerge'](_0x3ee382,_0x125a9b,_0x54d063,_0x38e5fe){const _0xa2c8a2=this[_0x10d6('0xfb')][_0x10d6('0xcc')][_0x10d6('0x5e')];let _0x382a01=_0x125a9b;for(;_0x3ee382[_0x382a01]&&_0x3ee382[_0x382a01][_0x10d6('0x2c')];)_0x382a01++;let _0x40c31c=_0x38e5fe;for(;_0x54d063[_0x40c31c]&&_0x54d063[_0x40c31c][_0x10d6('0x7d')];)_0x40c31c++;_0x31c2ea(_0x3ee382,_0x125a9b,_0x382a01),_0x31c2ea(_0x54d063,_0x38e5fe,_0x40c31c);const _0x2639bc=_0x54d063[_0x10d6('0xc3')](_0x38e5fe,_0x40c31c)['concat'](_0x3ee382[_0x10d6('0xc3')](_0x125a9b,_0x382a01));return _0x2639bc[_0x10d6('0x37')]((_0x160ce9,_0x2f671d)=>_0x160ce9[_0x10d6('0x6e')]!=_0x2f671d[_0x10d6('0x6e')]?_0x160ce9[_0x10d6('0x6e')]-_0x2f671d[_0x10d6('0x6e')]:_0x160ce9[_0x10d6('0xdc')]!=_0x2f671d['level']?_0x160ce9['level']-_0x2f671d[_0x10d6('0xdc')]:_0x160ce9[_0x10d6('0x26')]!=_0x2f671d[_0x10d6('0x26')]?_0x2f671d['distance']-_0x160ce9['distance']:!!_0x160ce9[_0x10d6('0x2c')]!=!!_0x2f671d['isAdded']?-0x1==_0x160ce9[_0x10d6('0x6e')]||0x0==_0x160ce9[_0x10d6('0x6e')]?_0x160ce9['isAdded']?-0x1:0x1:_0x160ce9[_0x10d6('0x2c')]?0x1:-0x1:_0x160ce9['index']-_0x2f671d[_0x10d6('0xb')]),{'commonTape':_0x2639bc,'iEnd':_0x382a01,'jEnd':_0x40c31c};function _0x31c2ea(_0x393ca5,_0x1b0e14,_0x1d9fe7){let _0x3e39dc=-0x1,_0x377a34=Number[_0x10d6('0x23')],_0x42c043=!0x0;for(let _0x119983=_0x1b0e14;_0x119983<_0x1d9fe7;_0x119983++)if(_0xa2c8a2[_0x10d6('0xc9')](_0x393ca5[_0x119983][_0x10d6('0x104')])||(_0x42c043=!0x1),_0x393ca5[_0x119983][_0x10d6('0x104')][_0x10d6('0xa9')]<_0x1b0e14&&(_0x3e39dc=_0x119983),_0x393ca5[_0x119983][_0x10d6('0x104')][_0x10d6('0x1f')]>=_0x1d9fe7){_0x377a34=_0x119983;break;}_0x42c043&&(_0x3e39dc=_0x1d9fe7-0x1);for(let _0x1db6a1=_0x1b0e14;_0x1db6a1<_0x1d9fe7;_0x1db6a1++)_0x393ca5[_0x1db6a1][_0x10d6('0x6e')]=_0x1db6a1<=_0x3e39dc?-0x1:_0x1db6a1<_0x377a34?0x0:0x1,_0x393ca5[_0x1db6a1][_0x10d6('0xb')]=_0x1db6a1;let _0x5f4241=0x0;for(let _0x1157ba=_0x1b0e14;_0x1157ba<=_0x3e39dc;_0x1157ba++)0x0==_0x393ca5[_0x1157ba][_0x10d6('0x26')]?_0x393ca5[_0x1157ba][_0x10d6('0xdc')]=_0x5f4241:(_0x5f4241++,_0x393ca5[_0x1157ba][_0x10d6('0xdc')]=_0x5f4241,_0x5f4241++);for(let _0x57ce62=_0x1b0e14;_0x57ce62<_0x1d9fe7;_0x57ce62++)0x0==_0x393ca5[_0x57ce62][_0x10d6('0x6e')]&&(_0x393ca5[_0x57ce62][_0x10d6('0xdc')]=_0x5f4241);_0x5f4241=0x0;for(let _0x5e72db=_0x1d9fe7-0x1;_0x5e72db>=_0x377a34;_0x5e72db--)0x0==_0x393ca5[_0x5e72db][_0x10d6('0x26')]?_0x393ca5[_0x5e72db][_0x10d6('0xdc')]=_0x5f4241:(_0x5f4241--,_0x393ca5[_0x5e72db][_0x10d6('0xdc')]=_0x5f4241,_0x5f4241--);}}[_0x10d6('0x80')](_0x216ceb){const _0x588ba3=new Map(),_0x52c39b=this[_0x10d6('0xfb')][_0x10d6('0xcc')]['schema'];for(let _0x1916e6=0x1;_0x1916e6<_0x216ceb[_0x10d6('0x107')];_0x1916e6++){let _0x4287ff,_0x4b362a,_0xe1ab89;const _0x21611d=_0x216ceb[_0x1916e6],_0x301153=_0x216ceb[_0x1916e6-0x1];if('text'==_0x21611d[_0x10d6('0x3c')])continue;if(_0x21611d[_0x10d6('0x3c')]!=_0x301153[_0x10d6('0x3c')])continue;if(!_0x52c39b[_0x10d6('0x53')](_0x301153[_0x10d6('0x104')])||_0x52c39b[_0x10d6('0xea')](_0x301153['item']))continue;if(!_0x52c39b['isBlock'](_0x21611d[_0x10d6('0x104')])||_0x52c39b[_0x10d6('0xea')](_0x21611d[_0x10d6('0x104')]))continue;if((_0x216ceb[_0x1916e6][_0x10d6('0x2c')]||_0x216ceb[_0x1916e6][_0x10d6('0x15')])&&_0x216ceb[_0x1916e6-0x1][_0x10d6('0x7d')])_0x4287ff=_0x216ceb[_0x1916e6],_0x4b362a=_0x216ceb[_0x1916e6-0x1],_0xe1ab89=_0x1916e6-0x1;else{if(!_0x216ceb[_0x1916e6][_0x10d6('0x7d')]||!_0x216ceb[_0x1916e6-0x1][_0x10d6('0x2c')]&&!_0x216ceb[_0x1916e6-0x1][_0x10d6('0x15')])continue;_0x4287ff=_0x216ceb[_0x1916e6-0x1],_0x4b362a=_0x216ceb[_0x1916e6],_0xe1ab89=_0x1916e6;}const _0x56d1e7=_0x4287ff[_0x10d6('0xdc')]==_0x4b362a['level'],_0x410f28=Math[_0x10d6('0x5d')](_0x4287ff[_0x10d6('0xdc')])<Math[_0x10d6('0x5d')](_0x4b362a[_0x10d6('0xdc')])&&0x0==_0x4b362a[_0x10d6('0x26')];(_0x56d1e7||_0x410f28)&&(_0x588ba3['set'](_0x4b362a['id'],_0x4287ff['id']),_0x216ceb[_0x10d6('0xad')](_0xe1ab89,0x1),_0x1916e6--,_0x4287ff[_0x10d6('0x2c')]=!0x1);}for(let _0x4be03f=0x0;_0x4be03f<_0x216ceb[_0x10d6('0x107')];_0x4be03f++)_0x588ba3['has'](_0x216ceb[_0x4be03f]['pairId'])&&(_0x216ceb[_0x4be03f][_0x10d6('0x10d')]=_0x588ba3[_0x10d6('0xf6')](_0x216ceb[_0x4be03f][_0x10d6('0x10d')]));}[_0x10d6('0x93')](_0x17da64){const _0x411789=new Set(_0x17da64[_0x10d6('0x113')](_0xe786ed=>_0xe786ed['id']));for(let _0x3f6bc8=0x0;_0x3f6bc8<_0x17da64[_0x10d6('0x107')];_0x3f6bc8++)_0x411789[_0x10d6('0x2e')](_0x17da64[_0x3f6bc8][_0x10d6('0x10d')])||0x0==_0x17da64[_0x3f6bc8]['distance']||(_0x17da64[_0x3f6bc8]['isIncorrect']=!0x0);return _0x17da64[_0x10d6('0xfe')](_0x294416=>!_0x294416[_0x10d6('0x4f')]);}[_0x10d6('0xd9')](_0x2e005c){const _0x156d50=new Set();for(let _0x21043a=0x0;_0x21043a<_0x2e005c[_0x10d6('0x107')];_0x21043a++){if(_0x156d50[_0x10d6('0x2e')](_0x2e005c[_0x21043a]['id'])&&_0x2e005c[_0x21043a][_0x10d6('0x7d')]&&(_0x2e005c[_0x21043a][_0x10d6('0x4f')]=!0x0),_0x2e005c[_0x21043a][_0x10d6('0x4f')])continue;if(0x0==_0x2e005c[_0x21043a][_0x10d6('0x26')])continue;if(_0x10d6('0x114')!=_0x2e005c[_0x21043a][_0x10d6('0x3c')])continue;if(null==_0x2e005c[_0x21043a][_0x10d6('0x10d')])continue;let _0x54d60d=_0x21043a+0x1,_0x51e9f4=0x0;for(;_0x2e005c[_0x54d60d]['id']!=_0x2e005c[_0x21043a][_0x10d6('0x10d')];)'elementStart'==_0x2e005c[_0x54d60d][_0x10d6('0x3c')]?_0x51e9f4++:_0x10d6('0x16')==_0x2e005c[_0x54d60d][_0x10d6('0x3c')]&&_0x51e9f4--,_0x54d60d++;if(0x0!=_0x51e9f4){if(_0x2e005c[_0x21043a][_0x10d6('0x7d')])_0x2e005c[_0x21043a]['isIncorrect']=!0x0;else for(;_0x54d60d!=_0x21043a;)_0x2e005c[_0x54d60d][_0x10d6('0x7d')]&&0x0!=_0x2e005c[_0x54d60d][_0x10d6('0x26')]&&(_0x2e005c[_0x54d60d]['isIncorrect']=!0x0,_0x156d50[_0x10d6('0x10e')](_0x2e005c[_0x54d60d][_0x10d6('0x10d')])),_0x54d60d--;}}return _0x2e005c[_0x10d6('0xfe')](_0x1a141c=>!_0x1a141c[_0x10d6('0x4f')]);}['_removeUnsupportedChanges'](_0x201c22){const _0x3bdc09=this[_0x10d6('0xfb')][_0x10d6('0xcc')][_0x10d6('0x5e')];for(let _0x53e792=0x0;_0x53e792<_0x201c22[_0x10d6('0x107')];_0x53e792++){if(!(_0x201c22[_0x53e792][_0x10d6('0x2c')]||_0x201c22[_0x53e792][_0x10d6('0x15')]||_0x201c22[_0x53e792][_0x10d6('0x7d')]||_0x201c22[_0x53e792][_0x10d6('0x63')]))continue;if(0x0==_0x201c22[_0x53e792][_0x10d6('0x26')])continue;const _0x2e7e2d=_0x201c22[_0x53e792]['item'];_0x3bdc09[_0x10d6('0x53')](_0x2e7e2d)||_0x3bdc09['isLimit'](_0x2e7e2d)||(_0x201c22[_0x53e792][_0x10d6('0x2c')]&&delete _0x201c22[_0x53e792][_0x10d6('0x2c')],_0x201c22[_0x53e792]['isAddSuggestion']&&delete _0x201c22[_0x53e792][_0x10d6('0x15')],_0x201c22[_0x53e792]['isRemoveSuggestion']&&delete _0x201c22[_0x53e792][_0x10d6('0x63')],_0x201c22[_0x53e792][_0x10d6('0x7d')]&&(_0x201c22[_0x53e792][_0x10d6('0x4f')]=!0x0));}return _0x201c22['filter'](_0x2fcac0=>!_0x2fcac0[_0x10d6('0x4f')]);}['_makeModelFromTape'](_0x9e52e6,_0xcaa58,_0x12486a){const _0x36c9ae=new _0x469446(),_0x56bf2c=[],_0xea6510=new Map(),_0x4d920f=this[_0x10d6('0xfb')]['model'],_0x49ac06=_0x4d920f[_0x10d6('0x5e')],_0x54f574=[_0x36c9ae],_0x1ed86e={},_0x11cb77={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2304fd=null;const _0x3a60af=[0x0];for(let _0x56dd46=0x0;_0x56dd46<_0x9e52e6[_0x10d6('0x107')];_0x56dd46++){let _0x26a859,_0x4c519e;if(_0x10d6('0x114')===_0x9e52e6[_0x56dd46][_0x10d6('0x3c')]){_0x26a859=_0x4d920f['createPositionFromPath'](_0x36c9ae,_0x3a60af);const _0xebc06e=new _0x99abb8(_0x9e52e6[_0x56dd46][_0x10d6('0x104')][_0x10d6('0x9d')],_0x9e52e6[_0x56dd46]['item']['getAttributes']());_0x54f574[0x0][_0x10d6('0x48')](_0xebc06e),_0x3a60af[_0x10d6('0xe1')](0x0),_0x54f574[_0x10d6('0x40')](_0xebc06e),_0x4c519e=_0x4d920f['createPositionFromPath'](_0x36c9ae,_0x3a60af),_0x2304fd=null;}else{if(_0x10d6('0x16')===_0x9e52e6[_0x56dd46]['type'])_0x54f574[_0x10d6('0xf')](),_0x26a859=_0x4d920f[_0x10d6('0x9a')](_0x36c9ae,_0x3a60af),_0x3a60af[_0x10d6('0x122')](),_0x3a60af[_0x3a60af[_0x10d6('0x107')]-0x1]++,_0x4c519e=_0x4d920f[_0x10d6('0x9a')](_0x36c9ae,_0x3a60af),_0x2304fd=null;else{if(_0x26a859=_0x4d920f[_0x10d6('0x9a')](_0x36c9ae,_0x3a60af),_0x2304fd&&_0xc691a0(_0x2304fd,_0x9e52e6[_0x56dd46]['item']))_0x2304fd['_data']+=_0x9e52e6[_0x56dd46][_0x10d6('0x104')][_0x10d6('0x27')];else{const _0x4198d0=new _0x37723c(_0x9e52e6[_0x56dd46][_0x10d6('0x104')][_0x10d6('0x27')],_0x9e52e6[_0x56dd46][_0x10d6('0x104')][_0x10d6('0x1e')]());_0x54f574[0x0][_0x10d6('0x48')](_0x4198d0),_0x2304fd=_0x4198d0;}_0x3a60af[_0x3a60af['length']-0x1]+=_0x9e52e6[_0x56dd46][_0x10d6('0x104')][_0x10d6('0x1')],_0x4c519e=_0x4d920f[_0x10d6('0x9a')](_0x36c9ae,_0x3a60af);}}for(const _0x20c02a of _0x9e52e6[_0x56dd46][_0x10d6('0xed')])_0xea6510['set'](_0x20c02a,{'start':_0x26a859,'end':null});_0x4ca068(_0x10d6('0x63'),_0x56dd46,_0x26a859,_0x4c519e),_0x4ca068(_0x10d6('0x15'),_0x56dd46,_0x26a859,_0x4c519e),_0x4ca068('isRemoved',_0x56dd46,_0x26a859,_0x4c519e),_0x4ca068(_0x10d6('0x2c'),_0x56dd46,_0x26a859,_0x4c519e);for(const _0x3a8a17 of _0x9e52e6[_0x56dd46][_0x10d6('0xb9')]){_0xea6510[_0x10d6('0xf6')](_0x3a8a17)['end']=_0x4c519e;}}for(const [_0x4e77fd,_0x52cfa7]of _0xea6510){const _0x546013=this[_0x10d6('0xfb')][_0x10d6('0xcc')][_0x10d6('0x88')](_0x52cfa7[_0x10d6('0x14')],_0x52cfa7[_0x10d6('0xa8')]);_0x36c9ae[_0x10d6('0x110')][_0x10d6('0xa7')](_0x4e77fd,_0x546013);}return _0x56bf2c[_0x10d6('0x37')]((_0x4fdeeb,_0x476d0d)=>{const _0x2cb942=_0x36c9ae[_0x10d6('0x110')][_0x10d6('0xf6')](_0x10d6('0x96')+_0x4fdeeb['id']),_0x5291fc=_0x36c9ae['markers']['get']('revision:'+_0x476d0d['id']);return _0x2cb942[_0x10d6('0x14')][_0x10d6('0x2d')](_0x5291fc['start'])?-0x1:_0x2cb942[_0x10d6('0x14')][_0x10d6('0x49')](_0x5291fc[_0x10d6('0x14')])?0x1:_0x2cb942[_0x10d6('0xa8')][_0x10d6('0x2d')](_0x5291fc['end'])?-0x1:_0x2cb942['end'][_0x10d6('0x49')](_0x5291fc[_0x10d6('0xa8')])?0x1:_0x10d6('0x10e')===_0x4fdeeb['type']?-0x1:0x1;}),{'root':_0x36c9ae,'changes':_0x56bf2c};function _0x4ca068(_0x3017ca,_0x5c0ece,_0x3f2f44,_0x1c7b37){const _0x384e4d=!!_0x9e52e6[_0x5c0ece][_0x3017ca],_0x215a6c=_0x384e4d?_0x9e52e6[_0x5c0ece][_0x3017ca][_0x10d6('0x56')]:null,_0x53597c=_0x5c0ece===_0x9e52e6['length']-0x1,_0x122738=_0x11cb77[_0x3017ca][0x0],_0x2f6a2b=_0x49ac06[_0x10d6('0xef')](_0x9e52e6[_0x5c0ece][_0x10d6('0x104')]);!_0x1ed86e[_0x3017ca]&&_0x384e4d?_0x1ed86e[_0x3017ca]={'start':_0x3f2f44,'tapeItem':_0x9e52e6[_0x5c0ece],'userId':_0x215a6c,'type':_0x3017ca}:_0x1ed86e[_0x3017ca]&&!_0x384e4d?(_0x1ed86e[_0x3017ca][_0x10d6('0xa8')]=_0x3f2f44,_0x22346c(_0x1ed86e[_0x3017ca]),_0x1ed86e[_0x3017ca]=null):_0x1ed86e[_0x3017ca]&&_0x384e4d&&_0x1ed86e[_0x3017ca]['userId']!==_0x215a6c&&(_0x1ed86e[_0x3017ca][_0x10d6('0xa8')]=_0x3f2f44,_0x122738&&_0x122738[_0x10d6('0x56')]===_0x1ed86e[_0x3017ca][_0x10d6('0x56')]||_0x22346c(_0x1ed86e[_0x3017ca]),_0x1ed86e[_0x3017ca]={'start':_0x3f2f44,'tapeItem':_0x9e52e6[_0x5c0ece],'userId':_0x215a6c,'type':_0x3017ca}),_0x1ed86e[_0x3017ca]&&_0x2f6a2b&&(_0x10d6('0x114')!==_0x9e52e6[_0x5c0ece][_0x10d6('0x3c')]||_0x122738&&_0x122738[_0x10d6('0x56')]===_0x215a6c||_0x11cb77[_0x3017ca]['unshift']({'userId':_0x215a6c,'object':_0x9e52e6[_0x5c0ece][_0x10d6('0x104')],'change':_0x1ed86e[_0x3017ca]}),_0x10d6('0x16')===_0x9e52e6[_0x5c0ece][_0x10d6('0x3c')]&&_0x122738&&_0x122738[_0x10d6('0x10')]===_0x9e52e6[_0x5c0ece][_0x10d6('0x104')]&&(_0x11cb77[_0x3017ca]['shift'](),_0x1ed86e[_0x3017ca]=_0x122738[_0x10d6('0x121')])),_0x1ed86e[_0x3017ca]&&_0x53597c&&(_0x1ed86e[_0x3017ca][_0x10d6('0xa8')]=_0x1c7b37,_0x22346c(_0x1ed86e[_0x3017ca]),_0x1ed86e[_0x3017ca]=null);}function _0x22346c({start:_0x3dfccc,end:_0x3e8164,tapeItem:_0xec8a0,userId:_0x3ceee0,type:_0x58aa80}){const _0x22fb51=_0xec8a0[_0x10d6('0x104')],_0x5e201c=_0x4d920f['schema'][_0x10d6('0x53')](_0x22fb51)&&!_0x4d920f[_0x10d6('0x5e')]['isLimit'](_0x22fb51),_0x45528b=_0x3dfccc[_0x10d6('0x62')]==_0x3e8164['parent']&&_0x3e8164['isAtStart'];if(_0x5e201c&&_0x45528b)return;const _0x9622e0=_0x4d920f[_0x10d6('0x88')](_0x3dfccc,_0x3e8164),_0x5ac6be=_0xcaa58[_0x10d6('0xf6')](_0x3ceee0),_0x491f87=new _0x26840e({'author':_0x5ac6be,'type':_0x10d6('0x2c')==_0x58aa80||_0x10d6('0x15')==_0x58aa80?_0x10d6('0x10e'):'remove','data':{'isSuggestion':'isAddSuggestion'==_0x58aa80||_0x10d6('0x63')==_0x58aa80},'createdAt':new Date(),'rootName':_0x12486a});_0x56bf2c[_0x10d6('0xe1')](_0x491f87),_0x36c9ae[_0x10d6('0x110')][_0x10d6('0xa7')](_0x10d6('0x96')+_0x491f87['id'],_0x9622e0);}function _0xc691a0(_0x841c06,_0x511c1b){const _0x5c45ed=_0x841c06['getAttributes'](),_0x525234=_0x511c1b['getAttributes']();for(const _0x1f4eb6 of _0x5c45ed){if(_0x1f4eb6[0x1]!==_0x511c1b[_0x10d6('0xd0')](_0x1f4eb6[0x0]))return!0x1;_0x525234[_0x10d6('0x11d')]();}return _0x525234[_0x10d6('0x11d')]()[_0x10d6('0xa4')];}}[_0x10d6('0x65')](){this[_0x10d6('0xfb')][_0x10d6('0x5a')][_0x10d6('0x8a')]('upcast')[_0x10d6('0x8c')]({'view':_0x10d6('0xd3')}),this['editor'][_0x10d6('0x5a')][_0x10d6('0x8a')]('editingDowncast')['markerToHighlight']({'model':_0x10d6('0xd3'),'view':_0x19b27e=>{const _0x2a22ac=_0x19b27e[_0x10d6('0xb1')][_0x10d6('0xaa')](':')[0x1],_0x4efbf8=this[_0x10d6('0x17')](_0x2a22ac);if(!_0x4efbf8)return null;const _0x249342='add'==_0x4efbf8['type']?_0x10d6('0xa6'):'deletion',_0xdb229b=['ck-suggestion-marker',_0x10d6('0xab')+_0x249342];return _0x4efbf8[_0x10d6('0x27')][_0x10d6('0x8d')]&&_0xdb229b[_0x10d6('0xe1')](_0x10d6('0xab')+_0x249342+'-new'),this[_0x10d6('0xe5')]==_0x4efbf8&&_0xdb229b['push'](_0x10d6('0x74')),{'classes':_0xdb229b,'attributes':{'data-change-id':_0x2a22ac}};}}),this['editor']['conversion'][_0x10d6('0x8a')]('upcast')['add'](_0x3087a2=>{_0x3087a2['on']('element:pre',(_0x2c0824,_0x6e7458,_0x553392)=>{const _0x5125ed=_0x6e7458[_0x10d6('0xbc')][_0x10d6('0xe6')](0x0);if(!_0x5125ed||!_0x5125ed['is'](_0x10d6('0xcb'),'code'))return;if(!_0x553392[_0x10d6('0x22')][_0x10d6('0x35')](_0x5125ed,{'attributes':[_0x10d6('0x129'),_0x10d6('0x10f')]}))return;const _0xe0b2ac=_0x6e7458['modelRange'][_0x10d6('0x14')][_0x10d6('0x62')];_0x553392[_0x10d6('0xae')][_0x10d6('0x92')](_0x10d6('0x129'),_0x5125ed[_0x10d6('0xd0')](_0x10d6('0x129')),_0xe0b2ac),_0x553392[_0x10d6('0xae')][_0x10d6('0x92')](_0x10d6('0x10f'),_0x5125ed[_0x10d6('0xd0')](_0x10d6('0x10f')),_0xe0b2ac);},{'priority':'low'});}),this[_0x10d6('0xfb')][_0x10d6('0x5a')][_0x10d6('0x8a')](_0x10d6('0x7f'))[_0x10d6('0x10e')](_0x3e9359=>{_0x3e9359['on']('element',(_0x164ef7,_0x235ede,_0x478ea8)=>{if(!_0x478ea8[_0x10d6('0x22')][_0x10d6('0x35')](_0x235ede[_0x10d6('0xbc')],{'attributes':['vid_start',_0x10d6('0x10f')]}))return;if(_0x235ede['modelRange']['isCollapsed'])return;const _0xdee988=_0x235ede[_0x10d6('0x55')]['start'][_0x10d6('0x62')];_0xdee988['hasAttribute'](_0x10d6('0x129'))||_0xdee988[_0x10d6('0x6c')]('vid')||(_0x478ea8[_0x10d6('0xae')]['setAttribute'](_0x10d6('0x129'),_0x235ede[_0x10d6('0xbc')]['getAttribute'](_0x10d6('0x129')),_0xdee988),_0x478ea8[_0x10d6('0xae')]['setAttribute'](_0x10d6('0x10f'),_0x235ede[_0x10d6('0xbc')][_0x10d6('0xd0')](_0x10d6('0x10f')),_0xdee988));},{'priority':_0x10d6('0xd4')});}),this[_0x10d6('0xfb')][_0x10d6('0x5a')]['for'](_0x10d6('0x7f'))['elementToAttribute']({'view':{'name':_0x10d6('0x31'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2d4d0f=>_0x2d4d0f[_0x10d6('0xd0')](_0x10d6('0x11'))}}),this['editor'][_0x10d6('0xcc')][_0x10d6('0x5e')]['on'](_0x10d6('0x70'),(_0x572edc,[,_0x5a628a])=>{[_0x10d6('0x129'),_0x10d6('0x10f'),_0x10d6('0x11')]['includes'](_0x5a628a)&&(_0x572edc[_0x10d6('0xe9')]=!0x0,_0x572edc['stop']());},{'priority':'highest'}),this['editor'][_0x10d6('0x5a')][_0x10d6('0x8a')](_0x10d6('0x112'))['add'](_0x1b5758=>{_0x1b5758['on'](_0x10d6('0x4d'),(_0x4613e3,_0x477328,_0x4c9678)=>{if('\x20'!=_0x477328[_0x10d6('0x104')][_0x10d6('0x27')]||_0x477328[_0x10d6('0x104')][_0x10d6('0x100')][_0x10d6('0xbd')]>0x1)return;if(!_0x4c9678['consumable'][_0x10d6('0x35')](_0x477328[_0x10d6('0x104')],_0x4613e3[_0x10d6('0x9d')]))return;const _0x417f7a=_0x4c9678[_0x10d6('0xae')],_0x2b959b=_0x4c9678['mapper'][_0x10d6('0x11e')](_0x477328[_0x10d6('0x68')]);_0x417f7a[_0x10d6('0x4e')](_0x2b959b,_0x417f7a[_0x10d6('0x11c')](_0x10d6('0x31')));});}),this[_0x10d6('0xfb')][_0x10d6('0x5a')][_0x10d6('0x8a')](_0x10d6('0x112'))[_0x10d6('0x77')]({'model':_0x10d6('0xd3')}),this[_0x10d6('0xfb')]['editing'][_0x10d6('0x106')]['on'](_0x10d6('0xd'),function(_0x5cbc6f){const _0x43eaa4=_0x5cbc6f[_0x10d6('0x8f')][_0x10d6('0xf6')](_0x10d6('0xfd'));return(_0x56d1e1,_0x2623c8,_0x92a4b1)=>{const _0xe7561e=_0x2623c8[_0x10d6('0xb1')][_0x10d6('0xaa')](':')[0x1],_0x1521fd=_0x43eaa4[_0x10d6('0x17')](_0xe7561e);if(!_0x1521fd)return null;const _0x5a3de4=_0x10d6('0x10e')==_0x1521fd[_0x10d6('0x3c')]?_0x10d6('0xaa'):_0x10d6('0xa1');if(!_0x92a4b1['consumable']['test'](_0x2623c8[_0x10d6('0x1a')],_0x56d1e1['name']))return;const _0x282022=_0x2623c8[_0x10d6('0x1a')][_0x10d6('0x94')](),_0x3d6309=_0x2623c8[_0x10d6('0x1a')][_0x10d6('0x14')],_0x2b40ba=_0x5cbc6f[_0x10d6('0xcc')][_0x10d6('0x5e')];let _0x5d66ab=null,_0x490f99=null,_0x95c22a=!0x1,_0x219787=!0x1;for(const _0x53a58c of _0x282022){const _0x340ff7=_0x53a58c['item'];_0x95c22a=_0x95c22a||_0x2b40ba[_0x10d6('0x7e')](_0x340ff7);const _0x3c069f=_0x92a4b1[_0x10d6('0x29')][_0x10d6('0xf2')](_0x340ff7);if(_0x3c069f&&_0x3c069f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x53a58c[_0x10d6('0x3c')]&&(_0x2b40ba[_0x10d6('0x53')](_0x340ff7)&&!_0x2b40ba['isLimit'](_0x340ff7)&&(_0x340ff7[_0x10d6('0x9')]||_0x3d6309[_0x10d6('0x85')]?_0x5d66ab&&_0x5d66ab[_0x10d6('0x100')]==_0x340ff7||(_0x5d66ab=_0x340ff7,_0x533853(_0x53a58c[_0x10d6('0x2')]),_0x219787=!0x0):_0x490f99=_0x490f99||_0x53a58c['previousPosition']));}function _0x533853(_0x2687f3){const _0x34ab0c=_0x92a4b1[_0x10d6('0xae')]['createUIElement']('span',{'class':_0x10d6('0xab')+_0x5a3de4}),_0x2d4887=_0x92a4b1[_0x10d6('0x29')][_0x10d6('0xb0')](_0x2687f3);_0x1521fd[_0x10d6('0x27')][_0x10d6('0x8d')]&&_0x92a4b1['writer'][_0x10d6('0x28')](_0x10d6('0xab')+_0x5a3de4+'-new',_0x34ab0c),_0x43eaa4['activeChange']==_0x1521fd&&_0x92a4b1[_0x10d6('0xae')][_0x10d6('0x28')]('ck-suggestion-marker--active',_0x34ab0c),_0x92a4b1[_0x10d6('0xae')]['insert'](_0x2d4887,_0x34ab0c),_0x92a4b1[_0x10d6('0x29')][_0x10d6('0x1d')](_0x34ab0c,_0x2623c8[_0x10d6('0xb1')]);}_0x95c22a||_0x219787||!_0x490f99||_0x533853(_0x490f99);};}(this['editor']),{'priority':_0x10d6('0x76')}),this['editor'][_0x10d6('0xaf')][_0x10d6('0x106')]['on']('removeMarker:revision',(_0x1de19d,_0x206ca6,_0x4c6d30)=>{const _0xe5cc46=_0x4c6d30['mapper'][_0x10d6('0x1b')](_0x206ca6['markerName']);if(_0xe5cc46)for(const _0x4477e1 of _0xe5cc46)(_0x4477e1[_0x10d6('0x3d')](_0x10d6('0xc5'))||_0x4477e1[_0x10d6('0x3d')](_0x10d6('0x72')))&&(_0x4c6d30['mapper'][_0x10d6('0xd6')](_0x4477e1,_0x206ca6[_0x10d6('0xb1')]),_0x4c6d30[_0x10d6('0xae')][_0x10d6('0x25')](_0x4477e1));},{'priority':_0x10d6('0x76')}),this['editor'][_0x10d6('0xaf')][_0x10d6('0x106')]['on'](_0x10d6('0xd'),(_0x2ef78a,_0x1a4b64,_0x10dbe7)=>{const _0x5e5d03=_0x1a4b64['markerName']['split'](':')[0x1],_0x464c35=this[_0x10d6('0x17')](_0x5e5d03);if(!_0x464c35)return null;const _0x5b88c7=_0x10d6('0x10e')==_0x464c35[_0x10d6('0x3c')]?_0x10d6('0xaa'):'merge';if(_0x10dbe7[_0x10d6('0x22')][_0x10d6('0x42')](_0x1a4b64[_0x10d6('0x1a')],_0x2ef78a[_0x10d6('0x9d')]))for(const _0x5594ea of _0x1a4b64[_0x10d6('0x1a')][_0x10d6('0x5')]()){if(!_0x5594ea['is']('element','softBreak'))continue;const _0xa077e4=_0x10dbe7[_0x10d6('0xae')][_0x10d6('0x20')](_0x10d6('0x31'),{'class':_0x10d6('0xab')+_0x5b88c7}),_0x41d9c3=_0x10dbe7['mapper'][_0x10d6('0xb0')](this[_0x10d6('0xfb')][_0x10d6('0xcc')][_0x10d6('0x87')](_0x5594ea));_0x464c35[_0x10d6('0x27')][_0x10d6('0x8d')]&&_0x10dbe7[_0x10d6('0xae')][_0x10d6('0x28')](_0x10d6('0xab')+_0x5b88c7+_0x10d6('0x7'),_0xa077e4),this['activeChange']==_0x464c35&&_0x10dbe7[_0x10d6('0xae')][_0x10d6('0x28')]('ck-suggestion-marker--active',_0xa077e4),_0x10dbe7[_0x10d6('0xae')][_0x10d6('0x99')](_0x41d9c3,_0xa077e4),_0x10dbe7[_0x10d6('0x29')][_0x10d6('0x1d')](_0xa077e4,_0x1a4b64[_0x10d6('0xb1')]);}},{'priority':'high'}),this[_0x10d6('0xfb')][_0x10d6('0xcc')]['document']['on']('change',()=>{this['editor'][_0x10d6('0xaf')][_0x10d6('0x127')]['change'](_0x3e2b6f=>{for(const _0x23a97c of this['editor'][_0x10d6('0xcc')][_0x10d6('0x5b')][_0x10d6('0xc8')]()){const _0x180c0a=this[_0x10d6('0xfb')]['model'][_0x10d6('0x5b')][_0x10d6('0x9c')](_0x23a97c),_0x377b90=this[_0x10d6('0xfb')]['editing'][_0x10d6('0x127')][_0x10d6('0x5b')]['getRoot'](_0x23a97c);if(_0x377b90){const _0x1e7af4=_0x180c0a[_0x10d6('0xd0')]('revisionHistoryAttachChange');if(_0x3e2b6f['removeAttribute'](_0x10d6('0x69'),_0x377b90),_0x3e2b6f[_0x10d6('0x8e')](_0x10d6('0xb6'),_0x377b90),_0x3e2b6f[_0x10d6('0x8e')](_0x10d6('0xf5'),_0x377b90),_0x3e2b6f[_0x10d6('0x8e')](_0x10d6('0x105'),_0x377b90),_0x1e7af4){const _0x27f0e9=this[_0x10d6('0x17')](_0x1e7af4);if(!_0x27f0e9)return null;_0x3e2b6f[_0x10d6('0x92')](_0x10d6('0x69'),_0x1e7af4,_0x377b90),_0x3e2b6f[_0x10d6('0x28')](_0x10d6('0xd1')+_0x27f0e9[_0x10d6('0x3c')],_0x377b90),this[_0x10d6('0xe5')]==_0x27f0e9&&_0x3e2b6f[_0x10d6('0x28')]('ck-revision-history-root--active',_0x377b90);}}}});}),this['editor']['conversion'][_0x10d6('0x8a')]('upcast')[_0x10d6('0x8c')]({'view':_0x10d6('0x4a'),'model':_0x556927=>_0x10d6('0x46')+_0x556927,'converterPriority':_0x10d6('0xa0')}),this[_0x10d6('0xfb')][_0x10d6('0x5a')][_0x10d6('0x8a')]('upcast')['dataToMarker']({'view':'suggestion','model':_0x7fb6e9=>_0x10d6('0x51')+_0x7fb6e9,'converterPriority':_0x10d6('0xa0')}),this[_0x10d6('0xfb')][_0x10d6('0x5a')][_0x10d6('0x8a')](_0x10d6('0x112'))['markerToData']({'model':_0x10d6('0xc4'),'view':_0x4e5ef5=>({'name':_0x10d6('0x84')+_0x4e5ef5,'group':_0x10d6('0xc4')}),'converterPriority':'highest'}),this[_0x10d6('0xfb')][_0x10d6('0x5a')]['for'](_0x10d6('0x82'))[_0x10d6('0x125')]({'model':'revision-suggestion','view':_0x1b7fac=>{const _0x1fc611=_0x1b7fac[_0x10d6('0xb1')][_0x10d6('0xaa')](':')[0x1];return'insertion'!=_0x1fc611&&_0x10d6('0x41')!=_0x1fc611?null:{'classes':[_0x10d6('0x10b'),_0x10d6('0xb2')+_0x1fc611]};}}),this[_0x10d6('0xfb')][_0x10d6('0xaf')]['downcastDispatcher']['on'](_0x10d6('0x115'),et(this['editor'],_0x10d6('0xa1')),{'priority':_0x10d6('0x76')}),this['editor']['editing']['downcastDispatcher']['on'](_0x10d6('0xca'),et(this[_0x10d6('0xfb')],_0x10d6('0xaa')),{'priority':'high'}),this[_0x10d6('0xfb')][_0x10d6('0xaf')]['downcastDispatcher']['on'](_0x10d6('0x39'),(_0x3d8513,_0x3cf3d1,_0x4bbc77)=>{const _0x2e708b=_0x4bbc77[_0x10d6('0x29')][_0x10d6('0x1b')](_0x3cf3d1['markerName']);if(_0x2e708b)for(const _0x3e359d of _0x2e708b)_0x3e359d['is'](_0x10d6('0x10c'))&&(_0x4bbc77[_0x10d6('0x29')][_0x10d6('0xd6')](_0x3e359d,_0x3cf3d1[_0x10d6('0xb1')]),_0x4bbc77[_0x10d6('0xae')]['remove'](_0x3e359d));},{'priority':_0x10d6('0x76')});}['_getChangeFromId'](_0xf5323a){return this[_0x10d6('0x9e')]['get'](_0xf5323a);}[_0x10d6('0x3a')](_0x407535){return this[_0x10d6('0x71')]&&this[_0x10d6('0x71')][_0x10d6('0x6')](),this[_0x10d6('0x71')]=new _0xe2d2d7(this[_0x10d6('0xfb')][_0x10d6('0x91')],_0x407535),this[_0x10d6('0x71')];}[_0x10d6('0xac')](){this[_0x10d6('0xfb')][_0x10d6('0xcc')]['document'][_0x10d6('0xa2')][_0x10d6('0xd2')](_0x10d6('0xd3')),this['on'](_0x10d6('0xa'),(_0xacea01,_0x2c0e60,_0x1b9c13,_0x4f4aff)=>{_0x4f4aff&&this[_0x10d6('0x120')][_0x10d6('0x25')](_0x4f4aff),_0x1b9c13&&(this['_balloon'][_0x10d6('0x10e')]({'view':_0x1b9c13,'stackId':_0x10d6('0xa5'),'position':{'target':()=>{const _0x19dd7a=this['editor'][_0x10d6('0xaf')],_0x37608c=this[_0x10d6('0x17')](_0x1b9c13['changeId']);let _0x12687f;if(_0x37608c['data'][_0x10d6('0xc0')]){const _0x877ed6=_0x19dd7a['view'][_0x10d6('0x6b')](_0x37608c[_0x10d6('0x58')]);_0x12687f=Array[_0x10d6('0xb7')](_0x877ed6['getClientRects']());}else{const _0x4928a4=this[_0x10d6('0xfb')]['model'][_0x10d6('0x110')][_0x10d6('0xf6')](_0x10d6('0x96')+_0x1b9c13[_0x10d6('0xbb')]);_0x12687f=Array[_0x10d6('0xb7')](_0x19dd7a[_0x10d6('0x29')][_0x10d6('0x1b')](_0x4928a4['name']))[_0x10d6('0x113')](_0x5bbf30=>_0x19dd7a[_0x10d6('0x127')][_0x10d6('0xe2')][_0x10d6('0x118')](_0x5bbf30))['map'](_0x1ad0f4=>Array['from'](_0x1ad0f4[_0x10d6('0x52')]()))[_0x10d6('0xcf')]();}if(!this[_0x10d6('0x3b')])return _0x12687f[0x0];return _0x12687f[_0x10d6('0xdd')](_0x567e05=>_0x567e05[_0x10d6('0x11a')]-0x3<=this[_0x10d6('0x3b')]['y']&&_0x567e05[_0x10d6('0xf0')]+0x3>=this[_0x10d6('0x3b')]['y']&&_0x567e05[_0x10d6('0x36')]-0x3<=this[_0x10d6('0x3b')]['x']&&_0x567e05['right']+0x3>=this[_0x10d6('0x3b')]['x'])||_0x12687f[0x0];}}}),this['_balloon']['showStack'](_0x10d6('0xa5')));}),this['on'](_0x10d6('0xb3'),(_0x494149,_0x3ffe2c,_0x11a25e,_0x2469c1)=>{this[_0x10d6('0x101')]=_0x11a25e?this[_0x10d6('0x3a')](_0x11a25e):null,this[_0x10d6('0xfb')][_0x10d6('0xcc')][_0x10d6('0x121')](()=>{const _0x4c87d0=this[_0x10d6('0xfb')][_0x10d6('0xaf')];_0x2469c1&&(_0x2469c1[_0x10d6('0x27')][_0x10d6('0xc0')]?_0x4c87d0['view']['change'](_0x529161=>{_0x529161['removeClass']('ck-revision-history-root--active',_0x4c87d0[_0x10d6('0x127')][_0x10d6('0x5b')]['getRoot'](_0x2469c1[_0x10d6('0x58')]));}):_0x4c87d0[_0x10d6('0x1c')](_0x10d6('0x96')+_0x2469c1['id'])),_0x11a25e&&(_0x11a25e['data']['isOnRoot']?_0x4c87d0[_0x10d6('0x127')][_0x10d6('0x121')](_0x772631=>{_0x772631['addClass'](_0x10d6('0x105'),_0x4c87d0['view'][_0x10d6('0x5b')][_0x10d6('0x9c')](_0x11a25e[_0x10d6('0x58')]));}):_0x4c87d0[_0x10d6('0x1c')](_0x10d6('0x96')+_0x11a25e['id']));});}),this[_0x10d6('0x2f')](this[_0x10d6('0xfb')][_0x10d6('0xaf')]['view'][_0x10d6('0x5b')],_0x10d6('0x67'),(_0x5d61ed,_0x25eb85)=>{if(this['activeChange'])return;const _0x377da0=this[_0x10d6('0xda')](_0x25eb85['target']),_0x5f3bc1=this[_0x10d6('0x9e')][_0x10d6('0xf6')](_0x377da0);_0x5f3bc1?(this[_0x10d6('0x3b')]={'x':_0x25eb85['domEvent']['x'],'y':_0x25eb85['domEvent']['y']},this[_0x10d6('0x101')]=this[_0x10d6('0x3a')](_0x5f3bc1)):(this[_0x10d6('0x3b')]=null,this[_0x10d6('0x101')]=null);}),this[_0x10d6('0x2f')](this[_0x10d6('0xfb')][_0x10d6('0xaf')][_0x10d6('0x127')][_0x10d6('0x5b')],_0x10d6('0xe8'),(_0x23ec8f,_0x45fbae)=>{const _0x5b9cbe=this[_0x10d6('0xda')](_0x45fbae[_0x10d6('0x3')]),_0x42e4cb=this['_changeIdToChange']['get'](_0x5b9cbe);_0x42e4cb?(this['_activeViewTarget']={'x':_0x45fbae[_0x10d6('0x123')]['x'],'y':_0x45fbae[_0x10d6('0x123')]['y']},_0x42e4cb===this[_0x10d6('0xe5')]?this[_0x10d6('0x120')]['updatePosition']():this['activeChange']=_0x42e4cb):(this[_0x10d6('0x3b')]=null,this['activeChange']=null);});}[_0x10d6('0xda')](_0xfe3b7f){do{const _0x28cc43=_0xfe3b7f['getAttribute'](_0x10d6('0x69'));if(_0x28cc43)return _0x28cc43;_0xfe3b7f=_0xfe3b7f[_0x10d6('0x100')];}while(_0xfe3b7f);return null;}[_0x10d6('0xdf')](){this[_0x10d6('0xfb')]['model'][_0x10d6('0x121')](_0x16844b=>{for(const _0x5c84e3 of this[_0x10d6('0xfb')][_0x10d6('0xcc')]['markers'])_0x16844b[_0x10d6('0x30')](_0x5c84e3);});}}function et(_0x631101,_0x2e70fa){return(_0x284c8e,_0x59c1f1,_0x155914)=>{if(!_0x155914[_0x10d6('0x22')][_0x10d6('0x42')](_0x59c1f1[_0x10d6('0x1a')],_0x284c8e[_0x10d6('0x9d')]))return;const _0xe23887=_0x59c1f1[_0x10d6('0x1a')][_0x10d6('0x94')](),_0x3b3da2=_0x59c1f1['markerRange']['start'],_0xadf9d3=_0x631101[_0x10d6('0xcc')][_0x10d6('0x5e')];let _0x1444eb=null,_0x307470=null,_0x3d152c=!0x1,_0x13763f=!0x1;for(const _0x5a10ca of _0xe23887){const _0xf113fc=_0x5a10ca[_0x10d6('0x104')];_0x3d152c=_0x3d152c||_0xadf9d3[_0x10d6('0x7e')](_0xf113fc);const _0x3dde0f=_0x155914['mapper'][_0x10d6('0xf2')](_0xf113fc);if(_0x3dde0f&&_0x3dde0f[_0x10d6('0x8')](_0x10d6('0xf8')))return;_0x10d6('0x16')==_0x5a10ca[_0x10d6('0x3c')]&&(_0xadf9d3[_0x10d6('0x53')](_0xf113fc)&&!_0xadf9d3[_0x10d6('0xea')](_0xf113fc)&&(_0xf113fc[_0x10d6('0x9')]||_0x3b3da2[_0x10d6('0x85')]?_0x1444eb&&_0x1444eb['parent']==_0xf113fc||(_0x1444eb=_0xf113fc,_0x43beb7(_0x5a10ca[_0x10d6('0x2')]),_0x13763f=!0x0):_0x307470=_0x307470||_0x5a10ca[_0x10d6('0x2')]));}function _0x43beb7(_0x425215){const _0x145534=_0x155914['mapper']['toViewPosition'](_0x425215),_0x3ff388=_0x155914['writer'][_0x10d6('0x20')]('span',{'class':_0x10d6('0xb2')+_0x2e70fa});_0x155914['writer'][_0x10d6('0x99')](_0x145534,_0x3ff388),_0x155914[_0x10d6('0x29')]['bindElementToMarker'](_0x3ff388,_0x59c1f1[_0x10d6('0xb1')]);}_0x3d152c||_0x13763f||!_0x307470||_0x43beb7(_0x307470);};}export class RestoreRevisionCommand extends _0x5ab159{constructor(_0xb64eff){super(_0xb64eff);const _0x17f18a=_0xb64eff['plugins'][_0x10d6('0xf6')](d);this['affectsData']=!0x1,this['listenTo'](_0x17f18a,_0x10d6('0x124'),()=>this[_0x10d6('0xa3')]()),this[_0x10d6('0x2f')](_0x17f18a,_0x10d6('0x117'),()=>this[_0x10d6('0xa3')]());}[_0x10d6('0x12')](){const _0x1bd118=this[_0x10d6('0xfb')],_0x5be3c7=_0x1bd118['plugins'][_0x10d6('0xf6')](d),_0x2c36ef=_0x5be3c7['isReady']?_0x5be3c7[_0x10d6('0xeb')][_0x10d6('0xfa')]:null;_0x1bd118[_0x10d6('0x2b')][_0x10d6('0xf6')](_0x10d6('0xe3'))[_0x10d6('0x47')](_0x2c36ef);}[_0x10d6('0xa3')](){const {isReady:_0x4394ea,isEnabled:_0x4cb1a6}=this[_0x10d6('0xfb')][_0x10d6('0x8f')][_0x10d6('0xf6')](d);this[_0x10d6('0xf3')]=_0x4394ea&&_0x4cb1a6;}}export class ShowChangeCommand extends _0x5ab159{constructor(_0x5e8795,{direction:_0x3e9f9a}){super(_0x5e8795);const _0x5e2671=_0x5e8795[_0x10d6('0x8f')][_0x10d6('0xf6')](d);this['affectsData']=!0x1,this[_0x10d6('0xbe')]=_0x10d6('0x33')===_0x3e9f9a?0x1:-0x1,this[_0x10d6('0x2f')](_0x5e2671,_0x10d6('0x124'),()=>this[_0x10d6('0xa3')]()),this[_0x10d6('0x2f')](_0x5e2671,_0x10d6('0x117'),()=>this[_0x10d6('0xa3')]()),this['listenTo'](_0x5e2671,_0x10d6('0xb3'),()=>this[_0x10d6('0xa3')]());}[_0x10d6('0x12')](){const _0x556e97=this['editor'],_0x41ee2a=_0x556e97[_0x10d6('0x8f')]['get'](d),{isNavigationMode:_0x38cbef,currentChangeNumber:_0xd0fc4d}=_0x41ee2a;let _0x738ebd;if(_0x41ee2a[_0x10d6('0xe5')]=_0x38cbef?_0x41ee2a[_0x10d6('0xeb')][_0x10d6('0x108')][_0x10d6('0xf6')](_0xd0fc4d+this[_0x10d6('0xbe')]):_0x41ee2a[_0x10d6('0xeb')][_0x10d6('0x108')][_0x10d6('0x83')],_0x41ee2a[_0x10d6('0xe5')][_0x10d6('0x27')]['isOnRoot'])_0x738ebd=_0x556e97[_0x10d6('0xaf')]['view']['getDomRoot'](_0x41ee2a['activeChange'][_0x10d6('0x58')]);else{const _0x4088ea=_0x556e97[_0x10d6('0xcc')][_0x10d6('0x110')][_0x10d6('0xf6')](_0x10d6('0x96')+_0x41ee2a[_0x10d6('0xe5')]['id']);_0x738ebd=_0x2d8e50(_0x556e97['editing'],_0x4088ea);}_0x154fcd({'target':_0x738ebd,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4277f1,currentChangeNumber:_0x27b0a4,numberOfChanges:_0x1083c3,isReady:_0x4437f2,isEnabled:_0x46c261}=this[_0x10d6('0xfb')][_0x10d6('0x8f')][_0x10d6('0xf6')](d);this[_0x10d6('0xf3')]=!!(_0x46c261&&_0x4437f2&&_0x1083c3)&&(!_0x4277f1||(0x1===this[_0x10d6('0xbe')]?_0x27b0a4<_0x1083c3-0x1:_0x27b0a4>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4caa=['action','first','listenTo','children','threeVerticalDots','execute','isActionsDropdownOpen','bind','name','buttonView','find','Show\x20more\x20items','class','button','bindTemplate','extendTemplate','set','items','panelPosition','add','isEnabled','Restore\x20this\x20revision','Compare\x20against\x20selected','isReady','locale','change:isActionsDropdownOpen','source','_action'];(function(_0x46d71a,_0x4caa03){const _0x406740=function(_0x4110e3){while(--_0x4110e3){_0x46d71a['push'](_0x46d71a['shift']());}};_0x406740(++_0x4caa03);}(_0x4caa,0x18d));const _0x4067=function(_0x46d71a,_0x4caa03){_0x46d71a=_0x46d71a-0x0;let _0x406740=_0x4caa[_0x46d71a];return _0x406740;};import{Collection as _0x5b6b1a}from'ckeditor5/src/utils';import{icons as _0x28c1fb}from'ckeditor5/src/core';import{Model as _0x570202,addListToDropdown as _0x47abc7,createDropdown as _0x49ba4d}from'ckeditor5/src/ui';import{getTranslation as _0x296636}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x1b30c1,_0x16f40e){const _0x170551=_0x1b30c1[_0x4067('0x9')],_0x990ee7=_0x1b30c1[_0x4067('0x13')],_0x34535e=_0x49ba4d(_0x990ee7);_0x34535e[_0x4067('0xd')]='sw';const _0x3cb171=function(_0x5a844a,_0x3195ad){const _0x91dcea=function(_0x1657fe,_0x333508){const _0x2ee300=_0x1657fe['locale'],_0x1a8dea={'Compare\x20against\x20selected':_0x296636(_0x2ee300,_0x4067('0x11')),'Name\x20this\x20revision':_0x296636(_0x2ee300,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x296636(_0x2ee300,_0x4067('0x10'))};return _0x333508['map'](_0x441c6d=>{const _0x49c977=_0x1a8dea[_0x441c6d['name']];return _0x49c977&&_0x49c977!==_0x441c6d[_0x4067('0x3')]&&(_0x441c6d[_0x4067('0x3')]=_0x49c977),_0x441c6d;});}(_0x5a844a,_0x3195ad),_0x21d9db=new _0x5b6b1a();for(const _0x45fc66 of _0x91dcea){const _0x276288={'type':_0x4067('0x8'),'model':new _0x570202({'label':_0x45fc66[_0x4067('0x3')],'class':_0x45fc66[_0x4067('0x7')],'withText':!0x0,'_action':_0x45fc66[_0x4067('0x17')]})};_0x276288['model'][_0x4067('0x2')]('isEnabled')['to'](_0x5a844a,'isActionsDropdownOpen',_0x3b8b7b=>'function'!=typeof _0x45fc66[_0x4067('0xf')]||(!_0x3b8b7b||_0x45fc66[_0x4067('0xf')](_0x5a844a))),_0x21d9db[_0x4067('0xe')](_0x276288);}return _0x21d9db;}(_0x1b30c1,_0x16f40e);return _0x1b30c1[_0x4067('0x2')](_0x4067('0x1'))['to'](_0x34535e,'isOpen'),_0x34535e[_0x4067('0x4')][_0x4067('0xb')]({'label':_0x296636(_0x990ee7,_0x4067('0x6')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x28c1fb[_0x4067('0x1b')]}),_0x34535e[_0x4067('0xa')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x170551['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x170551['to'](_0x1513f2=>_0x1513f2['stopPropagation']())}}),_0x34535e['on'](_0x4067('0x0'),_0x8fa6b3=>{_0x1b30c1[_0x4067('0x12')]&&'function'==typeof _0x8fa6b3[_0x4067('0x15')][_0x4067('0x16')]&&_0x8fa6b3['source']['_action'](_0x1b30c1);}),_0x47abc7(_0x34535e,_0x3cb171),_0x34535e[_0x4067('0x19')](_0x1b30c1,_0x4067('0x14'),(_0x3053c9,_0x23ceed,_0x3c891d)=>{if(_0x3c891d)for(const _0x69352d of _0x34535e['listView'][_0x4067('0xc')]){const _0x327a34=_0x69352d[_0x4067('0x1a')][_0x4067('0x18')],_0x185f52=_0x16f40e[_0x4067('0x5')](_0x3de992=>_0x3de992[_0x4067('0x17')]===_0x327a34['_action'])['isVisible'];_0x69352d['isVisible']=void 0x0===_0x185f52||_0x185f52(_0x1b30c1);}}),_0x34535e;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4880=['ck-revision-history-sidebar__revision-author','Revision\x20creator','span','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author_creator','Revision\x20author','setTemplate'];(function(_0x1d0c1d,_0x4880f0){const _0x25888d=function(_0x44527a){while(--_0x44527a){_0x1d0c1d['push'](_0x1d0c1d['shift']());}};_0x25888d(++_0x4880f0);}(_0x4880,0xde));const _0x2588=function(_0x1d0c1d,_0x4880f0){_0x1d0c1d=_0x1d0c1d-0x0;let _0x25888d=_0x4880[_0x1d0c1d];return _0x25888d;};import{View as _0x31f1d2,IconView as _0x4c1232}from'ckeditor5/src/ui';import{getTranslation as _0x511a8a}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x398f75 from'../../../theme/icons/user.svg';export default class ti extends _0x31f1d2{constructor(_0xc7136e,_0x40a979,_0x1597f8){super(_0xc7136e);const _0x31a157=new _0x4c1232();_0x31a157['set']({'content':_0x398f75,'viewBox':_0x2588('0x5')});const _0x148165=['ck',_0x2588('0x2')];_0x1597f8&&_0x148165['push'](_0x2588('0x7'));const _0x336d6e=[{'tag':_0x2588('0x4'),'attributes':{'class':['ck',_0x2588('0x6')],'title':_0x511a8a(_0xc7136e,_0x1597f8?_0x2588('0x3'):_0x2588('0x0'))},'children':[_0x31a157,_0x40a979['name']]}];this[_0x2588('0x1')]({'tag':'li','attributes':{'class':_0x148165},'children':_0x336d6e});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x41c4=['Revision\x20name','set','span','ck-revision-history-sidebar__revision-name'];(function(_0x3cbea7,_0x41c4a4){var _0x517fb3=function(_0x436d0d){while(--_0x436d0d){_0x3cbea7['push'](_0x3cbea7['shift']());}};_0x517fb3(++_0x41c4a4);}(_0x41c4,0x163));var _0x517f=function(_0x3cbea7,_0x41c4a4){_0x3cbea7=_0x3cbea7-0x0;var _0x517fb3=_0x41c4[_0x3cbea7];return _0x517fb3;};import{LabeledFieldView as _0xb76f08}from'ckeditor5/src/ui';import{getTranslation as _0x2b6762}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0xb76f08{constructor(_0x1c9d74,_0x54f4ba){super(_0x1c9d74,_0x54f4ba),this[_0x517f('0x2')]({'label':_0x2b6762(_0x1c9d74,_0x517f('0x1'))}),this['extendTemplate']({'tag':_0x517f('0x3'),'attributes':{'class':[_0x517f('0x0')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xdead=['render','ck-revision-history-sidebar__revision-authors','element','ck-revision-history-sidebar__revision-wrapper','set','revisionNameView','authors','_createdAtFormatted','placeholder','div','bind','extendTemplate','unhighlight','ck-revision-history-sidebar__revision__date','value','fire','revisionActionsView','length','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','highlight','from','creator','ck-revision-history-sidebar__actions_dropdown_open','isActionsDropdownOpen','createdAt','fieldView','isReady','setTemplate','ck-revision-history-sidebar__revision__controls-wrapper','ck-disabled','ck-revision-history-sidebar__revision_selected','name','setName','isEnabled','_revision','srcElement','ck-revision-history-sidebar__revision','map','closest','span','ck-reset','uiLanguage','select','.ck-thread__remove-confirm','unshift','isHighlighted','isSelected','deselect'];(function(_0x3dfdab,_0xdeadf5){const _0x55e525=function(_0x1fabf3){while(--_0x1fabf3){_0x3dfdab['push'](_0x3dfdab['shift']());}};_0x55e525(++_0xdeadf5);}(_0xdead,0x168));const _0x55e5=function(_0x3dfdab,_0xdeadf5){_0x3dfdab=_0x3dfdab-0x0;let _0x55e525=_0xdead[_0x3dfdab];return _0x55e525;};import{View as _0x3ac1f5,createLabeledInputText as _0x451d29}from'ckeditor5/src/ui';import{ConfirmMixin as _0x256896}from'ckeditor5-collaboration/src/collaboration-core';import _0x38efe8 from'./revisionnameview';import _0x3587f5 from'./revisionauthorview';import{dateToPrettyFormat as _0x288469}from'./utils';import{createActionsDropdownView as _0x31986f}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x256896(_0x3ac1f5){constructor(_0x48602e,_0x1d6e13,_0x5bdc02){super(_0x48602e);const _0x3c84a9=this['bindTemplate'],_0x4c695a=function(_0x4e19b8,_0xa67dc3){const _0x5e1b2d=Array[_0x55e5('0x2c')](_0xa67dc3[_0x55e5('0x1e')])['filter'](_0x41a3d3=>_0x41a3d3!=_0xa67dc3[_0x55e5('0x2d')]);return _0xa67dc3[_0x55e5('0x2d')]&&_0x5e1b2d[_0x55e5('0x14')](_0xa67dc3[_0x55e5('0x2d')]),_0x5e1b2d[_0x55e5('0xd')](_0x468aab=>new _0x3587f5(_0x4e19b8,_0x468aab,_0x468aab==_0xa67dc3[_0x55e5('0x2d')]));}(_0x48602e,_0x1d6e13);this['id']=_0x1d6e13['id'],this[_0x55e5('0xa')]=_0x1d6e13,this[_0x55e5('0x22')](_0x55e5('0x7'),_0x55e5('0x0'))['to'](_0x1d6e13),this[_0x55e5('0x22')]('_createdAtFormatted')['to'](this,_0x55e5('0x0'),_0xb98cd2=>_0xb98cd2?_0x288469(_0x48602e[_0x55e5('0x11')],_0xb98cd2):void 0x0),this['set'](_0x55e5('0x16'),!0x1),this[_0x55e5('0x1c')](_0x55e5('0x15'),!0x1),this[_0x55e5('0x1c')]('isActionsDropdownOpen',!0x1),this['set'](_0x55e5('0x2'),!0x1),this[_0x55e5('0x1c')](_0x55e5('0x9'),!0x1),this[_0x55e5('0x1d')]=new _0x38efe8(_0x48602e,_0x451d29),this[_0x55e5('0x1d')][_0x55e5('0x1')][_0x55e5('0x23')]({'attributes':{'maxlength':'220'}}),this[_0x55e5('0x1d')][_0x55e5('0x1')][_0x55e5('0x22')](_0x55e5('0x26'),_0x55e5('0x20'))['to'](this,_0x55e5('0x7'),'_createdAtFormatted'),this[_0x55e5('0x1d')][_0x55e5('0x22')](_0x55e5('0x9'))['to'](this,'isSelected',this,_0x55e5('0x9'),(_0x564050,_0x3c8a05)=>_0x564050&&_0x3c8a05),this[_0x55e5('0x28')]=_0x5bdc02&&_0x5bdc02[_0x55e5('0x29')]?_0x31986f(this,_0x5bdc02):'',this[_0x55e5('0x28')]&&this[_0x55e5('0x28')][_0x55e5('0x22')]('isEnabled')['to'](this),this[_0x55e5('0x3')]({'tag':'div','attributes':{'class':['ck',_0x55e5('0x10'),_0x55e5('0x1b'),_0x3c84a9['if']('isConfirm',_0x55e5('0x2a'))]},'children':[{'tag':_0x55e5('0x21'),'attributes':{'class':['ck',_0x55e5('0x10'),_0x55e5('0xc'),_0x3c84a9['if'](_0x55e5('0x9'),_0x55e5('0x5'),_0x1319ec=>!_0x1319ec),_0x3c84a9['if'](_0x55e5('0x16'),_0x55e5('0x6')),_0x3c84a9['if'](_0x55e5('0x15'),'ck-revision-history-sidebar__revision_highlighted'),_0x3c84a9['if'](_0x55e5('0x2f'),_0x55e5('0x2e'))]},'children':[this[_0x55e5('0x1d')],{'tag':_0x55e5('0xf'),'attributes':{'class':['ck',_0x55e5('0x25')]},'children':[{'text':_0x3c84a9['to'](_0x55e5('0x1f'))}]},{'tag':_0x55e5('0x21'),'attributes':{'class':['ck',_0x55e5('0x4')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x55e5('0x19')]},'children':_0x4c695a}]},this[_0x55e5('0x28')]],'on':{'click':_0x3c84a9['to'](_0x191fa5=>{_0x191fa5[_0x55e5('0xb')][_0x55e5('0xe')](_0x55e5('0x13'))||this['isReady']&&this[_0x55e5('0x9')]&&this['fire'](_0x55e5('0x12'),{'id':this['id']});})}}]});}[_0x55e5('0x18')](){super['render']();const _0x3be22e=this['revisionNameView'][_0x55e5('0x1')][_0x55e5('0x1a')];this['listenTo'](_0x3be22e,'change',()=>{this[_0x55e5('0x27')](_0x55e5('0x8'),{'id':this['id'],'name':_0x3be22e[_0x55e5('0x26')]});});}[_0x55e5('0x12')](){this[_0x55e5('0x16')]=!0x0;}[_0x55e5('0x17')](){this[_0x55e5('0x16')]=!0x1;}[_0x55e5('0x2b')](){this[_0x55e5('0x15')]=!0x0;}[_0x55e5('0x24')](){this['isHighlighted']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ea1=['isVisible','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser__inner','span','bindTemplate','toggle','click','set','ck-revision-history-sidebar__subrevision-collapser_collapsed','button','true'];(function(_0x1f7b59,_0x5ea112){const _0x3ddfa7=function(_0x58edb7){while(--_0x58edb7){_0x1f7b59['push'](_0x1f7b59['shift']());}};_0x3ddfa7(++_0x5ea112);}(_0x5ea1,0xe8));const _0x3ddf=function(_0x1f7b59,_0x5ea112){_0x1f7b59=_0x1f7b59-0x0;let _0x3ddfa7=_0x5ea1[_0x1f7b59];return _0x3ddfa7;};import{View as _0x271d9c}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x271d9c{constructor(_0x2e7a27){super(_0x2e7a27);const _0x50b19f=this[_0x3ddf('0x3')];this[_0x3ddf('0x6')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x3ddf('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x50b19f['if'](_0x3ddf('0xa'),'ck-hidden',_0x3207a2=>!_0x3207a2),_0x50b19f['if']('_isCollapsed',_0x3ddf('0x7'))],'role':_0x3ddf('0x8'),'aria-pressed':_0x50b19f['to'](_0x3ddf('0x0'),_0x17deb2=>_0x17deb2?'false':_0x3ddf('0x9'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x3ddf('0x1')]}}],'on':{'click':_0x50b19f['to'](_0x3ddf('0x5'))}});}[_0x3ddf('0x4')](){this[_0x3ddf('0x0')]=!this[_0x3ddf('0x0')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1554=['_createdAtFormatted','ck-revision-history-sidebar__subrevision','ck-reset','ck-revision-history-sidebar__revision_selected','bindTemplate','isSelected','_parentRevisionId','span','creator','uiLanguage','ck-revision-history-sidebar__revision','fire','div','select','bind','createdAt'];(function(_0x38a9b3,_0x155427){const _0x3b5d5e=function(_0x3f3f4e){while(--_0x3f3f4e){_0x38a9b3['push'](_0x38a9b3['shift']());}};_0x3b5d5e(++_0x155427);}(_0x1554,0x72));const _0x3b5d=function(_0x38a9b3,_0x155427){_0x38a9b3=_0x38a9b3-0x0;let _0x3b5d5e=_0x1554[_0x38a9b3];return _0x3b5d5e;};import{View as _0x5de156}from'ckeditor5/src/ui';import _0x1359a7 from'./revisionauthorview';import{dateToPrettyFormat as _0x3243ef}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x5de156{constructor(_0x5f362c,_0x4268ad,_0x1d4029){super(_0x5f362c);const _0x120da3=this[_0x3b5d('0x2')];this['id']=_0x4268ad['id'],this[_0x3b5d('0xc')](_0x3b5d('0xd'))['to'](_0x4268ad),this['set']('isSelected',!0x1),this[_0x3b5d('0xc')]('_createdAtFormatted')['to'](this,_0x3b5d('0xd'),_0x1c4a4c=>_0x1c4a4c?_0x3243ef(_0x5f362c[_0x3b5d('0x7')],_0x1c4a4c):void 0x0),this[_0x3b5d('0x4')]=_0x1d4029,this['setTemplate']({'tag':_0x3b5d('0xa'),'attributes':{'class':['ck',_0x3b5d('0x0'),_0x3b5d('0x8'),_0x3b5d('0xf'),_0x120da3['if'](_0x3b5d('0x3'),_0x3b5d('0x1'))]},'children':[{'tag':_0x3b5d('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x120da3['to'](_0x3b5d('0xe'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x1359a7(_0x5f362c,_0x4268ad[_0x3b5d('0x6')],!0x0)]}],'on':{'click':_0x120da3['to'](this['select'][_0x3b5d('0xc')](this))}});}[_0x3b5d('0xb')](){this[_0x3b5d('0x3')]=!0x0,this[_0x3b5d('0x9')](_0x3b5d('0xb'),{'parentId':this[_0x3b5d('0x4')]});}['deselect'](){this[_0x3b5d('0x3')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x25e0=['long','numeric','toLocaleTimeString'];(function(_0x3673c0,_0x25e00b){var _0xde6223=function(_0x4bbbfd){while(--_0x4bbbfd){_0x3673c0['push'](_0x3673c0['shift']());}};_0xde6223(++_0x25e00b);}(_0x25e0,0x148));var _0xde62=function(_0x3673c0,_0x25e00b){_0x3673c0=_0x3673c0-0x0;var _0xde6223=_0x25e0[_0x3673c0];return _0xde6223;};export function dateToPrettyFormat(_0x421ae4,_0x2295f5){return _0x2295f5['toLocaleDateString'](_0x421ae4,{'month':_0xde62('0x2'),'day':_0xde62('0x0')})+',\x20'+_0x2295f5[_0xde62('0x1')](_0x421ae4,{'hour':'numeric','minute':_0xde62('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3fea=['arrowleft','input','keystrokes','Name\x20of\x20the\x20revision\x20(optional)','Save','element','_focusCycler','shift\x20+\x20tab','stopPropagation','add','forEach','focus','revisionNameInputView','Cancel','revisionName','extendTemplate','execute','reset','focusFirst','cancel','_createButton','trim','revisionNameInputValue','arrowright','set','saveButtonView','check','_createRevisionNameInput','ck-revision-history-save-revision-form','_focusables','listenTo','value','type','label','submit','focusTracker'];(function(_0x1f97a1,_0x3fea7f){const _0x47e165=function(_0x3540a1){while(--_0x3540a1){_0x1f97a1['push'](_0x1f97a1['shift']());}};_0x47e165(++_0x3fea7f);}(_0x3fea,0xe8));const _0x47e1=function(_0x1f97a1,_0x3fea7f){_0x1f97a1=_0x1f97a1-0x0;let _0x47e165=_0x3fea[_0x1f97a1];return _0x47e165;};import{icons as _0x1fe123}from'ckeditor5/src/core';import{ButtonView as _0x4e8190,FocusCycler as _0x1008a0,LabeledFieldView as _0xbf6933,View as _0x76512a,ViewCollection as _0x31d693,createLabeledInputText as _0x58062b,injectCssTransitionDisabler as _0xb4a4d2,submitHandler as _0x47d0c0}from'ckeditor5/src/ui';import{FocusTracker as _0x23edbf,KeystrokeHandler as _0x5c82cc}from'ckeditor5/src/utils';import{getTranslation as _0x582773}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x76512a{constructor(_0x460344){super(_0x460344),this['focusTracker']=new _0x23edbf(),this[_0x47e1('0x16')]=new _0x5c82cc(),this[_0x47e1('0x8')]('revisionNameInputValue',''),this[_0x47e1('0x20')]=this['_createRevisionNameInput'](),this[_0x47e1('0x9')]=this[_0x47e1('0x4')](_0x582773(_0x460344,_0x47e1('0x18')),_0x1fe123[_0x47e1('0xa')],'ck-button-save'),this[_0x47e1('0x9')][_0x47e1('0x10')]=_0x47e1('0x12'),this['cancelButtonView']=this[_0x47e1('0x4')](_0x582773(_0x460344,_0x47e1('0x21')),_0x1fe123[_0x47e1('0x3')],'ck-button-cancel','cancel'),this[_0x47e1('0xd')]=new _0x31d693(),this['_focusCycler']=new _0x1008a0({'focusables':this[_0x47e1('0xd')],'focusTracker':this[_0x47e1('0x13')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x47e1('0x1b'),'focusNext':'tab'}}),this['setTemplate']({'tag':'form','attributes':{'class':['ck',_0x47e1('0xc'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x47e1('0x20')],this['saveButtonView'],this['cancelButtonView']]}),_0xb4a4d2(this);}['render'](){super['render'](),_0x47d0c0({'view':this}),([this[_0x47e1('0x20')],this[_0x47e1('0x9')],this['cancelButtonView']][_0x47e1('0x1e')](_0x1d6eb5=>{this[_0x47e1('0xd')][_0x47e1('0x1d')](_0x1d6eb5),this[_0x47e1('0x13')]['add'](_0x1d6eb5[_0x47e1('0x19')]);}),this['keystrokes'][_0x47e1('0xe')](this[_0x47e1('0x19')]));const _0x481149=_0x20a1fa=>_0x20a1fa[_0x47e1('0x1c')]();this[_0x47e1('0x16')][_0x47e1('0x8')](_0x47e1('0x7'),_0x481149),this[_0x47e1('0x16')][_0x47e1('0x8')](_0x47e1('0x14'),_0x481149),this[_0x47e1('0x16')]['set']('arrowup',_0x481149),this['keystrokes'][_0x47e1('0x8')]('arrowdown',_0x481149);}[_0x47e1('0x1f')](){this[_0x47e1('0x1a')][_0x47e1('0x2')]();}get[_0x47e1('0x22')](){return this[_0x47e1('0x20')]['fieldView'][_0x47e1('0x19')][_0x47e1('0xf')]['trim']();}set[_0x47e1('0x22')](_0x17cf83){this[_0x47e1('0x20')]['fieldView'][_0x47e1('0x19')][_0x47e1('0xf')]=_0x17cf83['trim']();}[_0x47e1('0x1')](){this[_0x47e1('0x20')]['fieldView'][_0x47e1('0x19')]['value']='';}[_0x47e1('0xb')](){const _0x39fc2d=new _0xbf6933(this['locale'],_0x58062b),_0x7ef595=_0x39fc2d['fieldView'];return _0x7ef595[_0x47e1('0x23')]({'attributes':{'maxlength':'220'}}),_0x39fc2d[_0x47e1('0x11')]=_0x582773(this['locale'],_0x47e1('0x17')),_0x7ef595['on'](_0x47e1('0x15'),()=>{this[_0x47e1('0x6')]=_0x7ef595['element'][_0x47e1('0xf')][_0x47e1('0x5')]();}),_0x39fc2d;}[_0x47e1('0x4')](_0x18e842,_0x5d082d,_0x467704,_0x47e390){const _0x392257=new _0x4e8190(this['locale']);return _0x392257[_0x47e1('0x8')]({'label':_0x18e842,'icon':_0x5d082d,'tooltip':!0x0}),_0x392257[_0x47e1('0x23')]({'attributes':{'class':_0x467704}}),_0x47e390&&_0x392257['delegate'](_0x47e1('0x0'))['to'](this,_0x47e390),_0x392257;}}
|