@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240130.0 → 0.0.0-nightly-20240201.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 +5 -5
- 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 _0x5b97=['change:isReady','string','getCustomProperty','isSuggestion','merge','level','addHighlight','name','comment','RevisionViewer','_fixObsoleteTags','ck-editor__editable__overlay','getRootNames','getRoot','left','index','length','mousedown','editor','newRevisionId','shift','markersStart','toData','enableReadOnlyMode','getAttribute','change:numberOfChanges','_getRevisionsRange','then','text','_markSuggestions','_getChangeFromId','attributesAfter','activeView','addClass','span','end','get','revisionHistoryAttachChange','useFillerType','markerToData','abs','revisionHistory','_setConversion','isAttached','ck-revision-history-root-remove','split','authors','_changeView','isOnRoot','_getViewForChange','slice','clear','showPreviousChange','_makeTape','sort','markerNameToElements','parent','activeChange','upcast','repository','unbindElementFromMarkerName','elementToAttribute','deletion','distance','bindElementToMarker','_processTape','start','add','viewItem','refresh','showStack','_step','isRemoveSuggestion','conversion','maxOffset','code','revision-viewer','view','change','getAttributes','target','createUIElement','nodeAfter','revision-suggestion','RevisionsRepository','schema','flat','domEvent','_setDistance','push','isRemoved','ck-revision-history-root-add','default','nextPosition','toViewElement','insertion','_joinTapes','dataToMarker','locale','markerToHighlight','filter','isNavigationMode','removeMarker:revision','isContent','offsetSize','_markMarkers','consume','suggestion:','return','isEnabled','createAttributeElement','downcastDispatcher','delete','isAtEnd','revision-comment:','_removeRevisionMarkers','detachRoot','model','forceDisabled','revision','isBefore','attribute:vid','createPositionBefore','getWalker','createPositionFromPath','adapter','insert','listenTo','removeMarker','writer','_cleanUp','_sortAndFilterDiffChanges','_removeMissingPairs','side','right','pairId','oldRevisionId','rootName','_data','_appendChild','object','markerName','set','vid_start','wrap','hasAttribute','loadRevisionData','error','createRevision','getClientRects','resolve','currentChangeNumber','ck-revision-history-root--active','diff','isBlock','find','endIndex','softBreak','affectsData','isCollapsed','getDomRoot','restoreRevisionCallback','remove','deletions','revisionHistoryLabel','_removeUnsupportedChanges','addMarker:revision','compare','ck-suggestion-preview-marker-','-new','mapper','dataDowncast','_threeWayMerge','plugins','getRevisionData','element','vid','startsWith','vid_end','showNextChange','isLimit','forEach','change:isEnabled','changes','_getViewObj','ck-suggestion-marker--active','data','toViewPosition','elementStart','_findChangeIdFromDomTarget','has','parse','item','revision-end','attributesBefore','userId','_refreshStartEndIndex','pop','done','isReady','high','isAdded','indexOf','forward','restoreRevision','highest','_setChanges','init','isAddSuggestion','catch','createRange','suggestion','ck-suggestion-preview-marker','isAfter','_getDiff','next','findIndex','markersEnd','change:activeChange','for','getRevisionRootsAttributes','hasClass','editing','requires','selection','roots','children','getIndex','domConverter','processor','markerRange','changeId','concat','getChild','config','document','enqueueChange','addRevision','splice','startIndex','insertions','_initInteractions','toViewRange','ck-suggestion-marker-merge','data-change-id','reconvertMarker','attachChange','destroy','pluginName','test','modelRange','_changeIdToChange','ck-suggestion-marker-split','nextSibling','markers','POSITIVE_INFINITY','_cleanMarkers','mouseover','setAttribute','keys','elementEnd','from','isInline','getRevision','isObject','ck-suggestion-marker-','_makeModelFromTape','low','previousPosition','_balloon','consumable','execute','diffData','WidgetToolbarRepository','data-revision-','_update','removeClass','addMarker:revision-suggestion:deletion','isEqual','map','toModel','type','isIncorrect','all','element:pre','uiElement','revision-suggestion:','_activeViewTarget','unshift','removeMarker:revision-suggestion','revision:','addMarker:revision-suggestion:insertion','commands','_makeModelFromViewString','_markInsertions','attributes'];(function(_0x1fd78d,_0x5b9763){const _0x2065e5=function(_0x41439c){while(--_0x41439c){_0x1fd78d['push'](_0x1fd78d['shift']());}};_0x2065e5(++_0x5b9763);}(_0x5b97,0xe9));const _0x2065=function(_0x1fd78d,_0x5b9763){_0x1fd78d=_0x1fd78d-0x0;let _0x2065e5=_0x5b97[_0x1fd78d];return _0x2065e5;};import{Plugin as _0x3afffd,Command as _0x4e6f4e}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x24de7d}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x356a69}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x25d544,Element as _0x5f1470,Text as _0x323b78,ViewDocumentFragment as _0x21d6df,ViewText as _0x2d7f9d,ViewElement as _0x1496d2,ViewContainerElement as _0x1e280a,ViewAttributeElement as _0x2fa9fa,ViewEmptyElement as _0x2fa656,ViewRawElement as _0x4af870,ViewUIElement as _0x306989}from'ckeditor5/src/engine.js';import{Users as _0xebea60,getMarkerDomElement as _0xe0fa1e}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x5e0533 from'./ui/revisionviewer/changedetailsview.js';import _0x2952d6 from'./revisionsrepository.js';import _0x10a5a2 from'./changeitem.js';import{default as _0x375135}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x30e204}from'lodash-es';const tt={'c':_0x1e280a,'a':_0x2fa9fa,'e':_0x2fa656,'r':_0x4af870,'u':_0x306989};export default class d extends _0x3afffd{static get[_0x2065('0xf')](){return _0x2065('0x48');}static get[_0x2065('0x11e')](){return[_0xebea60,_0x356a69,_0x2952d6];}constructor(_0x20f2dc){super(_0x20f2dc),this[_0x2065('0x7a')]=this['editor']['plugins']['get'](_0x2065('0x93')),this[_0x2065('0xcd')](_0x2065('0x78'),null),this[_0x2065('0xcd')](_0x2065('0x5f'),null),this[_0x2065('0x36')]=null,this[_0x2065('0xcd')](_0x2065('0xd8'),null),this[_0x2065('0xcd')](_0x2065('0x106'),!0x1),this['set'](_0x2065('0xac'),!0x0),this['on'](_0x2065('0xf5'),(_0x4ce8ff,_0x4f2632,_0x216e4a)=>{this[_0x2065('0x78')]=null,this['activeView']=null,this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0x8c')][_0x2065('0x8d')](_0x5bfeea=>{for(const _0x5cf882 of this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0x8c')]['document'][_0x2065('0x120')])_0x216e4a?_0x5bfeea[_0x2065('0x2b')](_0x2065('0x4a'),_0x5cf882):_0x5bfeea['addClass']('ck-editor__editable__overlay',_0x5cf882);});}),this['bind'](_0x2065('0xa4'))['to'](this,_0x2065('0x78'),_0x26500b=>null!==_0x26500b),this['bind'](_0x2065('0xd6'))['to'](this,_0x2065('0x106'),this,_0x2065('0xd8'),this,'activeChange',(_0x13445a,_0x223ef1,_0x5dca3a)=>_0x13445a&&_0x5dca3a?_0x223ef1['changes']['getIndex'](_0x5dca3a):0x0),this['bind']('numberOfChanges')['to'](this,_0x2065('0x106'),this,_0x2065('0xd8'),(_0x17d79c,_0x465f5f)=>_0x17d79c?_0x465f5f[_0x2065('0xf6')][_0x2065('0x4f')]:0x0),this['_changeView']=null,this[_0x2065('0x12')]=new Map(),this[_0x2065('0xbc')]=null,this[_0x2065('0x24')]=this[_0x2065('0x51')]['plugins'][_0x2065('0x63')](_0x356a69);}[_0x2065('0x10e')](){const _0x1f74a8=this[_0x2065('0x51')],_0x13cd3f=new ShowChangeCommand(_0x1f74a8,{'direction':'backward'}),_0x2d0785=new ShowChangeCommand(_0x1f74a8,{'direction':_0x2065('0x10a')});(_0x1f74a8[_0x2065('0x3b')][_0x2065('0x82')](_0x2065('0x73'),_0x13cd3f),_0x1f74a8[_0x2065('0x3b')]['add'](_0x2065('0xf2'),_0x2d0785),_0x1f74a8[_0x2065('0x3b')][_0x2065('0x82')](_0x2065('0x10b'),new RestoreRevisionCommand(_0x1f74a8)),this['on'](_0x2065('0x58'),()=>{_0x13cd3f[_0x2065('0x84')](),_0x2d0785['refresh']();}),this[_0x2065('0x69')](),this[_0x2065('0x8')](),_0x1f74a8[_0x2065('0x56')](_0x2065('0x8b')),_0x1f74a8[_0x2065('0xec')]['has'](_0x2065('0x28')))&&_0x1f74a8[_0x2065('0xec')][_0x2065('0x63')](_0x2065('0x28'))[_0x2065('0xb5')](_0x2065('0x8b'));}async[_0x2065('0xed')](_0x181528){await this[_0x2065('0xd1')](_0x181528);const _0x294d8c={};for(const _0x50b1ca in _0x181528[_0x2065('0x27')]){if(_0x181528[_0x2065('0x27')][_0x50b1ca][_0x2065('0xd')]&&!_0x181528['diffData'][_0x50b1ca]['attachChange'][_0x2065('0x6a')])continue;const _0x216b73=this[_0x2065('0xb2')](JSON[_0x2065('0xfe')](_0x181528[_0x2065('0x27')][_0x50b1ca]['insertions'])),_0x5e9ef6=this[_0x2065('0x51')][_0x2065('0x11d')]['view'][_0x2065('0x2')],_0x1996c0=new _0x21d6df(_0x5e9ef6,_0x216b73[_0x2065('0x2e')](_0x14f785=>this['_getViewObj'](_0x14f785)));this[_0x2065('0x51')]['data']['processor'][_0x2065('0x65')]('marked'),_0x294d8c[_0x50b1ca]=this[_0x2065('0x51')][_0x2065('0xf9')][_0x2065('0x124')][_0x2065('0x55')](_0x1996c0),this[_0x2065('0x51')][_0x2065('0xf9')][_0x2065('0x124')][_0x2065('0x65')](_0x2065('0x9b'));}return _0x294d8c;}async[_0x2065('0x11b')](_0x4bf02a){await this[_0x2065('0xd1')](_0x4bf02a);const _0x379c2e={};for(const _0xc52086 in _0x4bf02a[_0x2065('0x27')])_0x4bf02a[_0x2065('0x27')][_0xc52086][_0x2065('0xd')]&&!_0x4bf02a['diffData'][_0xc52086]['attachChange'][_0x2065('0x6a')]||(_0x379c2e[_0xc52086]=_0x4bf02a[_0x2065('0x27')][_0xc52086][_0x2065('0x5e')]||{});return _0x379c2e;}['_removeRevisionMarkers'](_0x387d32){return(_0x387d32=_0x387d32[_0x2065('0xa3')](_0xf8f022=>!_0xf8f022[_0x2065('0x46')]||'revision-start'!==_0xf8f022[_0x2065('0x46')]&&_0x2065('0x100')!==_0xf8f022[_0x2065('0x46')]))[_0x2065('0xf4')](_0x4332a1=>{_0x2065('0x40')!=typeof _0x4332a1&&(_0x4332a1['children']=this[_0x2065('0xb2')](_0x4332a1[_0x2065('0x121')]),_0x4332a1[_0x2065('0x3e')]=_0x4332a1['attributes'][_0x2065('0xa3')](_0x3c826b=>!_0x3c826b[0x0][_0x2065('0xf0')](_0x2065('0x29'))));}),_0x387d32;}async[_0x2065('0xe6')](_0x590aa0,_0x2a5d62,_0x33262b=!0x1){if(!this[_0x2065('0xac')])return;const _0x35ad70=this['diff'],_0x1b6302=this[_0x2065('0x7a')],_0x273c55=_0x2065('0x40')==typeof _0x590aa0?_0x1b6302['getRevision'](_0x590aa0):_0x590aa0,_0x501f9b=_0x2065('0x40')==typeof _0x2a5d62?_0x1b6302[_0x2065('0x1e')](_0x2a5d62):_0x2a5d62,_0x483bb2=_0x273c55['id'],_0x333846=_0x501f9b?_0x501f9b['id']:null;if(!_0x33262b&&this[_0x2065('0xd8')]&&this[_0x2065('0xd8')][_0x2065('0x52')]===_0x483bb2&&this['diff'][_0x2065('0xc7')]===_0x333846)return Promise[_0x2065('0xd5')]();this[_0x2065('0x106')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0x2065('0xd8')]=new _0x375135(_0x483bb2,_0x333846);const _0x2907bd=this[_0x2065('0x59')](_0x273c55,_0x501f9b,!0x0)['map'](_0x4a1a1c=>this[_0x2065('0xd1')](_0x4a1a1c));return _0x2907bd[_0x2065('0x98')](new Promise(_0x18fcd7=>{setTimeout(_0x18fcd7,0x14);})),Promise[_0x2065('0x32')](_0x2907bd)[_0x2065('0x5a')](()=>{if(!this[_0x2065('0xac')])return;this['_cleanUp']();const _0x2692d5=this['_getDiff'](_0x483bb2,_0x333846);for(const _0x5f1402 of _0x2692d5[_0x2065('0xf6')])this[_0x2065('0x12')][_0x2065('0xcd')](_0x5f1402['id'],_0x5f1402);this['editor']['model'][_0x2065('0x3')]({'isUndoable':!0x1},_0x267d6a=>{for(const _0x530c18 of this['editor'][_0x2065('0xb4')][_0x2065('0x2')][_0x2065('0x4b')]())_0x267d6a[_0x2065('0xb3')](_0x530c18);for(const _0x29ac41 of Object[_0x2065('0x1a')](_0x2692d5['model'])){const _0x563c06=_0x267d6a['addRoot'](_0x29ac41);for(const _0x3814fa of Object['keys'](_0x2692d5[_0x2065('0x3e')][_0x29ac41]))_0x267d6a[_0x2065('0x19')](_0x3814fa,_0x2692d5['attributes'][_0x29ac41][_0x3814fa],_0x563c06);_0x267d6a[_0x2065('0xbd')](_0x2692d5[_0x2065('0xb4')][_0x29ac41],_0x563c06,0x0);}}),this[_0x2065('0xd8')][_0x2065('0x10d')](this[_0x2065('0xc2')](_0x2692d5[_0x2065('0xf6')])),this[_0x2065('0x106')]=!0x0;})[_0x2065('0x110')](_0x2856ec=>{console[_0x2065('0xd2')](_0x2856ec),this[_0x2065('0xc1')](),_0x35ad70&&(this[_0x2065('0xd8')]=_0x35ad70),this[_0x2065('0x106')]=!0x0;});}['addRevisionData'](_0x401399,_0x3de438){const _0x1ac0a0=this[_0x2065('0x7a')][_0x2065('0xd3')](_0x401399);return _0x1ac0a0['on'](_0x2065('0x2a'),(_0x20d9d7,_0x58d84c,_0x27af3b)=>_0x3de438(_0x58d84c,_0x27af3b,_0x1ac0a0)),this[_0x2065('0x7a')][_0x2065('0x4')](_0x1ac0a0),_0x1ac0a0;}['loadRevisionData'](_0x2d734b){if(!_0x2d734b||_0x2d734b['diffData'])return Promise['resolve']();{const _0x22834d=this['editor']['config'][_0x2065('0x63')]('collaboration.channelId');return this['adapter'][_0x2065('0x1e')]({'channelId':_0x22834d,'revisionId':_0x2d734b['id']})[_0x2065('0x5a')](_0x4db6ef=>{_0x2d734b[_0x2065('0x2a')]({'diffData':_0x4db6ef[_0x2065('0x27')]},!0x0);});}}[_0x2065('0xc1')](){this[_0x2065('0x78')]=null,this[_0x2065('0x17')](),this[_0x2065('0x6e')]&&this[_0x2065('0x6e')]['destroy'](),this[_0x2065('0x6e')]=null,this[_0x2065('0x12')][_0x2065('0x72')](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5ded08=>{for(const _0x29f8d6 of this[_0x2065('0x51')][_0x2065('0xb4')]['document'][_0x2065('0x4b')]())_0x5ded08[_0x2065('0xb3')](_0x29f8d6);});}[_0x2065('0xc2')](_0x19eb0e){const _0x5e10ea=[],_0x401aee=new Map();for(const _0x4e8a41 of this[_0x2065('0x51')][_0x2065('0xb4')]['document']['getRootNames']()){const _0x1909d8=this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0x8c')][_0x2065('0xdf')](_0x4e8a41);if(!_0x1909d8)continue;const _0x2c6612=_0x1909d8[_0x2065('0xd4')]()[_0x2065('0xff')](0x0);_0x2c6612&&(_0x5e10ea[_0x2065('0x98')](_0x4e8a41),_0x401aee[_0x2065('0xcd')](_0x4e8a41,_0x2c6612));}return _0x5e10ea[_0x2065('0x75')]((_0xc07340,_0x210309)=>{const _0x2d3ef2=_0x401aee['get'](_0xc07340),_0x8b0ad2=_0x401aee[_0x2065('0x63')](_0x210309);return _0x2d3ef2['y']-_0x8b0ad2['y']||_0x2d3ef2['x']-_0x8b0ad2['x'];}),(_0x19eb0e=_0x19eb0e[_0x2065('0xa3')](_0x1fb5eb=>_0x5e10ea['includes'](_0x1fb5eb[_0x2065('0xc8')])))[_0x2065('0x75')]((_0x5d6316,_0x1f7f70)=>_0x5e10ea[_0x2065('0x109')](_0x5d6316['rootName'])-_0x5e10ea['indexOf'](_0x1f7f70[_0x2065('0xc8')])),_0x19eb0e;}['_makeTape'](_0x3e3d86){const _0x5e152c=Array[_0x2065('0x1c')](_0x3e3d86[_0x2065('0x15')])[_0x2065('0xa3')](([_0x18eb65,_0x29c735])=>_0x18eb65[_0x2065('0xf0')](_0x2065('0x39'))&&!_0x29c735[_0x2065('0xde')]),_0x5765fe=Array[_0x2065('0x1c')](this['editor']['model']['createRangeIn'](_0x3e3d86)[_0x2065('0xba')]({'singleCharacters':!0x0}));if(0x0!=_0x5e152c[_0x2065('0x4f')])for(const _0x28d5ec of _0x5765fe){const [_0x1c9d66,_0x1cee71]=_0x5e152c[0x0],[,_0x322c7c,_0x538a17]=_0x1c9d66['split'](':');if(_0x1cee71['end']['isEqual'](_0x28d5ec[_0x2065('0x9c')])&&_0x5e152c[_0x2065('0x53')](),(_0x28d5ec[_0x2065('0x23')][_0x2065('0x2d')](_0x1cee71['start'])||_0x28d5ec[_0x2065('0x23')]['isAfter'](_0x1cee71[_0x2065('0x81')]))&&(_0x2065('0x9e')==_0x322c7c?_0x28d5ec[_0x2065('0x108')]={'userId':_0x538a17}:'deletion'==_0x322c7c&&(_0x28d5ec[_0x2065('0x99')]={'userId':_0x538a17})),0x0==_0x5e152c[_0x2065('0x4f')])break;}return _0x5765fe;}[_0x2065('0x103')](_0x17b343){const _0x6ec62a=new Map();for(let _0x5e756b=0x0;_0x5e756b<_0x17b343[_0x2065('0x4f')];_0x5e756b++)_0x2065('0x5b')===_0x17b343[_0x5e756b][_0x2065('0x30')]?(_0x17b343[_0x5e756b]['item'][_0x2065('0x6')]=_0x5e756b,_0x17b343[_0x5e756b]['item']['endIndex']=_0x5e756b):(_0x2065('0xfb')===_0x17b343[_0x5e756b][_0x2065('0x30')]?_0x17b343[_0x5e756b][_0x2065('0xff')]['startIndex']=_0x5e756b:_0x2065('0x1b')===_0x17b343[_0x5e756b][_0x2065('0x30')]&&(_0x17b343[_0x5e756b]['item'][_0x2065('0xdb')]=_0x5e756b),_0x6ec62a[_0x2065('0xcd')](_0x17b343[_0x5e756b]['id'],_0x5e756b));for(const _0x28fbdc of _0x6ec62a['values']())_0x2065('0xfb')===_0x17b343[_0x28fbdc][_0x2065('0x30')]?_0x17b343[_0x28fbdc]['item'][_0x2065('0xdb')]=_0x6ec62a[_0x2065('0x63')](_0x17b343[_0x28fbdc][_0x2065('0xc6')]):_0x2065('0x1b')===_0x17b343[_0x28fbdc][_0x2065('0x30')]&&(_0x17b343[_0x28fbdc][_0x2065('0xff')][_0x2065('0x6')]=_0x6ec62a[_0x2065('0x63')](_0x17b343[_0x28fbdc]['pairId']));}[_0x2065('0x80')](_0x446554){for(let _0x84685a=0x0;_0x84685a<_0x446554[_0x2065('0x4f')];_0x84685a++){if('elementStart'===_0x446554[_0x84685a][_0x2065('0x30')])_0x446554[_0x84685a][_0x2065('0xff')][_0x2065('0x6')]=_0x84685a;else{if(_0x2065('0x1b')===_0x446554[_0x84685a][_0x2065('0x30')]){_0x446554[_0x84685a][_0x2065('0xff')][_0x2065('0xdb')]=_0x84685a;const _0x1b2335=_0x446554[_0x84685a][_0x2065('0xff')][_0x2065('0x6')];_0x446554[_0x1b2335]['pairId']=_0x446554[_0x84685a]['id'],_0x446554[_0x84685a]['pairId']=_0x446554[_0x1b2335]['id'];}else _0x446554[_0x84685a]['item']['startIndex']=_0x84685a,_0x446554[_0x84685a][_0x2065('0xff')][_0x2065('0xdb')]=_0x84685a,_0x446554[_0x84685a]['pairId']=null;}_0x446554[_0x84685a][_0x2065('0x54')]||(_0x446554[_0x84685a][_0x2065('0x54')]=[],_0x446554[_0x84685a][_0x2065('0x118')]=[]);}}[_0x2065('0x3d')](_0x2ad1e7,_0x3e1cad){const _0x4bcb99=_0x2ad1e7['filter'](_0x589723=>!_0x589723['isAdded']);for(let _0x344292=0x0;_0x344292<_0x3e1cad[_0x2065('0x4f')];_0x344292++)_0x3e1cad[_0x344292][_0x2065('0x108')]&&(_0x4bcb99[_0x344292][_0x2065('0x108')]=_0x3e1cad[_0x344292][_0x2065('0x108')]);}[_0x2065('0x3c')](_0xe9b57f){const _0x5509ae=JSON[_0x2065('0xfe')](_0xe9b57f),_0x19a8e6=this['editor'][_0x2065('0x11d')]['view'][_0x2065('0x2')],_0x34b571=new _0x21d6df(_0x19a8e6,_0x5509ae[_0x2065('0x2e')](_0x477ac0=>this[_0x2065('0xf7')](_0x477ac0)));return this[_0x2065('0x51')]['data'][_0x2065('0x2f')](_0x34b571);}[_0x2065('0xf7')](_0xc32877){const _0x2f9a0e=this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0x8c')][_0x2065('0x2')];if(_0x2065('0x40')==typeof _0xc32877)return new _0x2d7f9d(_0x2f9a0e,_0xc32877);{const _0x189835=_0xc32877[_0x2065('0x121')][_0x2065('0x2e')](_0x549f3e=>this[_0x2065('0xf7')](_0x549f3e));return new(tt[_0xc32877[(_0x2065('0x30'))]]||_0x1496d2)(_0x2f9a0e,_0xc32877['name'],_0xc32877[_0x2065('0x3e')],_0x189835);}}[_0x2065('0x115')](_0x1721c1,_0x231b3e=null){const _0x1a4883=this['repository'][_0x2065('0x1e')](_0x1721c1),_0x599710=_0x231b3e?this['repository']['getRevision'](_0x231b3e):null,_0x16da1b=this[_0x2065('0x59')](_0x1a4883,_0x599710),_0x7446f3=_0x16da1b[_0x16da1b[_0x2065('0x4f')]-0x1],_0x14e862=new Map(),_0x50d271={'model':{},'attributes':{},'changes':[]},_0x4a7626=new Set(),_0x552a59=new Map();for(let _0x21e2bc=_0x16da1b[_0x2065('0x4f')]-0x1;_0x21e2bc>=0x0;_0x21e2bc--){const _0x2ce7ca=_0x16da1b[_0x21e2bc];for(const _0xab131a of Object[_0x2065('0x1a')](_0x2ce7ca['diffData']))if(_0x2ce7ca[_0x2065('0x27')][_0xab131a]['attachChange']){const _0x2478dc=_0x2ce7ca['diffData'][_0xab131a]['attachChange'];_0x2478dc[_0x2065('0x6a')]?(_0x4a7626[_0x2065('0x82')](_0xab131a),_0x552a59[_0x2065('0xfd')](_0xab131a)&&_0x552a59[_0x2065('0x63')](_0xab131a)[_0x2065('0x102')]==_0x2478dc[_0x2065('0x102')]?_0x552a59['delete'](_0xab131a):_0x552a59[_0x2065('0xcd')](_0xab131a,_0x2478dc)):_0x552a59[_0x2065('0xfd')](_0xab131a)?(_0x4a7626[_0x2065('0xaf')](_0xab131a),_0x552a59[_0x2065('0xaf')](_0xab131a)):(_0x4a7626[_0x2065('0x82')](_0xab131a),_0x552a59[_0x2065('0xcd')](_0xab131a,_0x2478dc));}else _0x4a7626['add'](_0xab131a);}for(const _0x45d42c of _0x4a7626){const _0x20780e=_0x552a59['has'](_0x45d42c)&&!_0x552a59[_0x2065('0x63')](_0x45d42c)[_0x2065('0x6a')];let _0x356a4b=_0x20780e?_0x16da1b[_0x2065('0x4f')]-0x1:0x0;const _0x19cb53=_0x20780e?-0x1:0x1;for(;_0x16da1b[_0x356a4b];){const _0x2bab12=_0x16da1b[_0x356a4b];if(_0x2bab12[_0x2065('0x27')][_0x45d42c]){const _0x1b267a=_0x20780e?_0x2bab12[_0x2065('0x27')][_0x45d42c][_0x2065('0x101')]:_0x2bab12['diffData'][_0x45d42c]['attributesAfter'];_0x50d271['attributes'][_0x45d42c]=_0x1b267a?_0x30e204(_0x1b267a):{};break;}_0x356a4b+=_0x19cb53;}}for(const _0x4f5e6d of _0x16da1b){_0x4f5e6d[_0x2065('0xb4')]={};for(const _0x1b2d1c of _0x4f5e6d[_0x2065('0x6d')])_0x14e862['set'](_0x1b2d1c['id'],_0x1b2d1c);for(const _0x577c81 of _0x4a7626){const _0xcf22b1=_0x4f5e6d[_0x2065('0x27')][_0x577c81]?_0x4f5e6d[_0x2065('0x27')][_0x577c81][_0x2065('0x7')]:'[]',_0x2111e1=_0x4f5e6d['diffData'][_0x577c81]?_0x4f5e6d[_0x2065('0x27')][_0x577c81][_0x2065('0xe2')]:'[]';_0x4f5e6d[_0x2065('0xb4')][_0x577c81]={'insertions':this['_makeModelFromViewString'](_0xcf22b1),'deletions':this[_0x2065('0x3c')](_0x2111e1)};}}for(const _0x214cec of _0x4a7626){let _0x437702=null,_0x466b10=0x0;const _0xcc0ea7=new Map(Array[_0x2065('0x1c')](_0x1a4883[_0x2065('0xb4')][_0x214cec][_0x2065('0x7')][_0x2065('0x15')])['filter'](([_0x45b96e])=>!_0x45b96e[_0x2065('0xf0')](_0x2065('0x39'))));let _0x14126a=0x0;for(const _0x31bed7 of _0x16da1b){const _0x1d79ff=this[_0x2065('0x74')](_0x31bed7[_0x2065('0xb4')][_0x214cec][_0x2065('0x7')]);_0x31bed7==_0x1a4883?(_0x437702=_0x1d79ff,_0x466b10=_0x437702['length'],_0x437702['forEach'](_0x2a38c9=>{_0x2a38c9['id']=_0x14126a++;}),this[_0x2065('0x80')](_0x437702)):this['_markInsertions'](_0x437702,_0x1d79ff);const _0x9c9a47=_0x437702[_0x2065('0xa3')](_0x1b4642=>!_0x1b4642['isAdded'])['map'](_0x588186=>_0x588186['id']);let _0x3aef93=0x0;const _0x508a98=this[_0x2065('0x74')](_0x31bed7[_0x2065('0xb4')][_0x214cec][_0x2065('0xe2')]);_0x508a98[_0x2065('0xf4')](_0x4f648e=>{_0x4f648e[_0x2065('0x99')]?_0x4f648e['id']=_0x466b10++:_0x4f648e['id']=_0x9c9a47[_0x3aef93++];}),this['_processTape'](_0x508a98),this['_setDistance'](_0x437702,_0x2065('0x108')),this['_setDistance'](_0x508a98,_0x2065('0x99')),_0x31bed7==_0x1a4883&&this['_markMarkers'](_0x437702,_0xcc0ea7),_0x437702=this[_0x2065('0x9f')](_0x437702,_0x508a98),this[_0x2065('0x103')](_0x437702),this[_0x2065('0x97')](_0x437702,_0x2065('0x99'));}_0x437702=_0x437702['filter'](_0x1161b2=>!(_0x1161b2['isAdded']&&_0x1161b2[_0x2065('0x99')]));const _0x500b07=new Map(_0x7446f3[_0x2065('0xb4')][_0x214cec]['deletions'][_0x2065('0x15')]),_0x421adc=new Set(_0xcc0ea7[_0x2065('0x1a')]());for(const _0x59295b of _0x500b07[_0x2065('0x1a')]())_0x421adc['delete'](_0x59295b);this[_0x2065('0x5c')](_0x437702,_0x421adc),this[_0x2065('0x49')](_0x437702),_0x437702=this['_removeMissingPairs'](_0x437702),_0x437702=this['_markMismatchedRemovedTags'](_0x437702),_0x437702=this[_0x2065('0xe4')](_0x437702);const {root:_0x5ca947,changes:_0x52be7a}=this[_0x2065('0x21')](_0x437702,_0x14e862,_0x214cec);_0x50d271[_0x2065('0xb4')][_0x214cec]=_0x5ca947;const _0x42de32=_0x552a59[_0x2065('0x63')](_0x214cec);if(_0x42de32){const _0x411e0e=_0x14e862['get'](_0x42de32[_0x2065('0x102')]),_0x2f2183=new _0x10a5a2({'author':_0x411e0e,'type':_0x42de32['isAttached']?_0x2065('0x82'):_0x2065('0xe1'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x214cec});_0x52be7a[_0x2065('0x37')](_0x2f2183),_0x50d271[_0x2065('0x3e')][_0x214cec][_0x2065('0x64')]=_0x2f2183['id'];}_0x50d271[_0x2065('0xf6')]=_0x50d271[_0x2065('0xf6')][_0x2065('0x127')](_0x52be7a);}return _0x50d271;}[_0x2065('0xa8')](_0x31bd97,_0x3ba3fc){for(let _0x549021=0x0;_0x549021<_0x31bd97[_0x2065('0x4f')];_0x549021++)for(const [_0x338c46,_0x46e201]of _0x3ba3fc)_0x46e201[_0x2065('0x81')][_0x2065('0x2d')](_0x31bd97[_0x549021][_0x2065('0x23')])&&_0x31bd97[_0x549021][_0x2065('0x54')]['push'](_0x338c46),_0x46e201[_0x2065('0x62')][_0x2065('0x2d')](_0x31bd97[_0x549021][_0x2065('0x9c')])&&_0x31bd97[_0x549021]['markersEnd'][_0x2065('0x98')](_0x338c46);}['_joinTapes'](_0x234c1d,_0x1061ae){let _0x463cf6=[],_0x1f4298=0x0,_0x1b4062=0x0;for(;_0x1f4298<_0x234c1d[_0x2065('0x4f')]||_0x1b4062<_0x1061ae[_0x2065('0x4f')];){const _0xb275ad=_0x234c1d[_0x1f4298]||{},_0x405fba=_0x1061ae[_0x1b4062]||{};if(_0xb275ad['id']==_0x405fba['id'])_0x1f4298++,_0x1b4062++,_0x463cf6[_0x2065('0x98')](_0xb275ad);else{if(_0x405fba[_0x2065('0x99')]&&_0xb275ad[_0x2065('0x108')]){const {commonTape:_0x1527f9,iEnd:_0x2d6472,jEnd:_0x5eaf20}=this[_0x2065('0xeb')](_0x234c1d,_0x1f4298,_0x1061ae,_0x1b4062);_0x463cf6=_0x463cf6[_0x2065('0x127')](_0x1527f9),_0x1f4298=_0x2d6472,_0x1b4062=_0x5eaf20;}else _0x405fba[_0x2065('0x99')]?(_0x1b4062++,_0x463cf6[_0x2065('0x98')](_0x405fba)):(_0x1f4298++,_0x463cf6[_0x2065('0x98')](_0xb275ad));}}return _0x463cf6;}[_0x2065('0x5c')](_0x97307e,_0x5cc0dc){const _0x4a0869=[];for(let _0x2e3d9e=0x0;_0x2e3d9e<_0x97307e['length'];_0x2e3d9e++){for(let _0x3219b2=0x0;_0x3219b2<_0x97307e[_0x2e3d9e]['markersStart'][_0x2065('0x4f')];_0x3219b2++){const _0x294b14=_0x97307e[_0x2e3d9e][_0x2065('0x54')][_0x3219b2];if(!_0x5cc0dc[_0x2065('0xfd')](_0x294b14))continue;const {group:_0x45b9c2,type:_0x480f57,authorId:_0x479c91}=_0x17be12(_0x294b14);'revision-suggestion'!=_0x45b9c2||_0x2065('0x9e')!=_0x480f57&&_0x2065('0x7d')!=_0x480f57||(_0x4a0869[_0x2065('0x37')]({'type':_0x480f57,'name':_0x294b14,'userId':_0x479c91}),_0x97307e[_0x2e3d9e]['markersStart'][_0x2065('0x5')](_0x3219b2,0x1),_0x3219b2--);}_0x24e28f(_0x97307e[_0x2e3d9e]);for(let _0x173c32=0x0;_0x173c32<_0x97307e[_0x2e3d9e][_0x2065('0x118')][_0x2065('0x4f')];_0x173c32++){const _0x5baca0=_0x97307e[_0x2e3d9e]['markersEnd'][_0x173c32];if(!_0x5cc0dc['has'](_0x5baca0))continue;const {group:_0x11dbb7,type:_0x58c1bb}=_0x17be12(_0x5baca0);if(_0x2065('0x92')!=_0x11dbb7||'insertion'!=_0x58c1bb&&_0x2065('0x7d')!=_0x58c1bb)continue;_0x97307e[_0x2e3d9e][_0x2065('0x118')][_0x2065('0x5')](_0x173c32,0x1),_0x173c32--;const _0x3f2404=_0x4a0869[_0x2065('0x117')](_0x461fba=>_0x461fba[_0x2065('0x46')]==_0x5baca0);_0x3f2404>-0x1&&_0x4a0869[_0x2065('0x5')](_0x3f2404,0x1);}}function _0x17be12(_0x32bdd9){const _0x27d0ea=_0x32bdd9[_0x2065('0x6c')](':');return{'group':_0x27d0ea[0x0],'type':_0x27d0ea[0x1],'subType':_0x27d0ea['length']>=0x5?_0x27d0ea[0x2]:null,'id':_0x27d0ea['length']<0x5?_0x27d0ea[0x2]:_0x27d0ea[0x3],'authorId':_0x27d0ea[_0x2065('0x4f')]<0x5?_0x27d0ea[0x3]:_0x27d0ea[0x4],'markerCount':0x6==_0x27d0ea[_0x2065('0x4f')]?_0x27d0ea[0x5]:null};}function _0x24e28f(_0x497908){for(let _0x181fc6=0x0;_0x181fc6<_0x4a0869[_0x2065('0x4f')];_0x181fc6++){if(_0x497908[_0x2065('0x108')]&&_0x2065('0x9e')==_0x4a0869[_0x181fc6]['type'])return _0x497908[_0x2065('0x10f')]=_0x4a0869[_0x181fc6],void delete _0x497908['isAdded'];if(!_0x497908['isAdded']&&!_0x497908[_0x2065('0x99')]&&_0x2065('0x7d')==_0x4a0869[_0x181fc6]['type'])return void(_0x497908['isRemoveSuggestion']=_0x4a0869[_0x181fc6]);}}}[_0x2065('0x97')](_0x154108,_0x3bb0c6){let _0xe624b2=0x0,_0x157633=!0x1;const _0xf9fc3=new Map();for(const _0x4b0809 of _0x154108)_0x4b0809[_0x3bb0c6]?_0x157633&&(_0xe624b2++,_0x157633=!0x1):(_0xe624b2++,_0x157633=!0x0),_0xf9fc3['set'](_0x4b0809['id'],_0xe624b2);for(let _0x4d2144=0x0;_0x4d2144<_0x154108['length'];_0x4d2144++){if(_0x2065('0x99')==_0x3bb0c6&&_0x154108[_0x4d2144][_0x2065('0x108')]||_0x2065('0x108')==_0x3bb0c6&&_0x154108[_0x4d2144][_0x2065('0x99')])continue;if(_0x2065('0x5b')==_0x154108[_0x4d2144]['type']){_0x154108[_0x4d2144][_0x2065('0x7e')]=0x0;continue;}const _0x5cd942=_0xf9fc3[_0x2065('0x63')](_0x154108[_0x4d2144][_0x2065('0xc6')]),_0xe23b2c=_0xf9fc3[_0x2065('0x63')](_0x154108[_0x4d2144]['id']);_0x154108[_0x4d2144][_0x2065('0x7e')]=_0x5cd942-_0xe23b2c;}}['_getRevisionsRange'](_0x1f34a2,_0xca07f1,_0x1c677e=!0x1){const _0x47743a=[];let _0x2ebba9=this[_0x2065('0x7a')][_0x2065('0x122')](_0x1f34a2),_0x1131f5=this[_0x2065('0x7a')][_0x2065('0x122')](_0xca07f1);for(-0x1==_0x1131f5&&(_0x1131f5=this[_0x2065('0x7a')]['_revisions'][_0x2065('0x4f')],_0x1c677e=!0x1);_0x2ebba9<_0x1131f5;)_0x47743a[_0x2065('0x98')](this[_0x2065('0x7a')][_0x2065('0x1e')](_0x2ebba9)),_0x2ebba9++;return _0x1c677e&&_0x47743a[_0x2065('0x98')](this['repository'][_0x2065('0x1e')](_0x2ebba9)),_0x47743a;}['_threeWayMerge'](_0x430603,_0x2a12e8,_0x5b864f,_0x36e92a){const _0x436359=this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0x94')];let _0x46479a=_0x2a12e8;for(;_0x430603[_0x46479a]&&_0x430603[_0x46479a][_0x2065('0x108')];)_0x46479a++;let _0x559079=_0x36e92a;for(;_0x5b864f[_0x559079]&&_0x5b864f[_0x559079]['isRemoved'];)_0x559079++;_0x24e856(_0x430603,_0x2a12e8,_0x46479a),_0x24e856(_0x5b864f,_0x36e92a,_0x559079);const _0x2e6fbe=_0x5b864f['slice'](_0x36e92a,_0x559079)['concat'](_0x430603[_0x2065('0x71')](_0x2a12e8,_0x46479a));return _0x2e6fbe['sort']((_0x536642,_0x786438)=>_0x536642[_0x2065('0xc4')]!=_0x786438[_0x2065('0xc4')]?_0x536642['side']-_0x786438[_0x2065('0xc4')]:_0x536642[_0x2065('0x44')]!=_0x786438['level']?_0x536642['level']-_0x786438[_0x2065('0x44')]:_0x536642['distance']!=_0x786438['distance']?_0x786438[_0x2065('0x7e')]-_0x536642[_0x2065('0x7e')]:!!_0x536642[_0x2065('0x108')]!=!!_0x786438[_0x2065('0x108')]?-0x1==_0x536642['side']||0x0==_0x536642[_0x2065('0xc4')]?_0x536642[_0x2065('0x108')]?-0x1:0x1:_0x536642['isAdded']?0x1:-0x1:_0x536642[_0x2065('0x4e')]-_0x786438[_0x2065('0x4e')]),{'commonTape':_0x2e6fbe,'iEnd':_0x46479a,'jEnd':_0x559079};function _0x24e856(_0x45528a,_0x1fc697,_0x17eb0f){let _0x259907=-0x1,_0x359f2a=Number[_0x2065('0x16')],_0x604f1e=!0x0;for(let _0x292fa4=_0x1fc697;_0x292fa4<_0x17eb0f;_0x292fa4++)if(_0x436359[_0x2065('0x1d')](_0x45528a[_0x292fa4][_0x2065('0xff')])||(_0x604f1e=!0x1),_0x45528a[_0x292fa4]['item']['startIndex']<_0x1fc697&&(_0x259907=_0x292fa4),_0x45528a[_0x292fa4][_0x2065('0xff')]['endIndex']>=_0x17eb0f){_0x359f2a=_0x292fa4;break;}_0x604f1e&&(_0x259907=_0x17eb0f-0x1);for(let _0x50f6c3=_0x1fc697;_0x50f6c3<_0x17eb0f;_0x50f6c3++)_0x45528a[_0x50f6c3][_0x2065('0xc4')]=_0x50f6c3<=_0x259907?-0x1:_0x50f6c3<_0x359f2a?0x0:0x1,_0x45528a[_0x50f6c3][_0x2065('0x4e')]=_0x50f6c3;let _0x4a07ee=0x0;for(let _0x18ba65=_0x1fc697;_0x18ba65<=_0x259907;_0x18ba65++)0x0==_0x45528a[_0x18ba65]['distance']?_0x45528a[_0x18ba65][_0x2065('0x44')]=_0x4a07ee:(_0x4a07ee++,_0x45528a[_0x18ba65][_0x2065('0x44')]=_0x4a07ee,_0x4a07ee++);for(let _0x4f7290=_0x1fc697;_0x4f7290<_0x17eb0f;_0x4f7290++)0x0==_0x45528a[_0x4f7290][_0x2065('0xc4')]&&(_0x45528a[_0x4f7290][_0x2065('0x44')]=_0x4a07ee);_0x4a07ee=0x0;for(let _0x43b271=_0x17eb0f-0x1;_0x43b271>=_0x359f2a;_0x43b271--)0x0==_0x45528a[_0x43b271]['distance']?_0x45528a[_0x43b271][_0x2065('0x44')]=_0x4a07ee:(_0x4a07ee--,_0x45528a[_0x43b271][_0x2065('0x44')]=_0x4a07ee,_0x4a07ee--);}}[_0x2065('0x49')](_0x38731d){const _0x316759=new Map(),_0x46bcc=this[_0x2065('0x51')]['model'][_0x2065('0x94')];for(let _0x31fbba=0x1;_0x31fbba<_0x38731d[_0x2065('0x4f')];_0x31fbba++){let _0x3eb06a,_0x5943d3,_0x53d49b;const _0x404e0d=_0x38731d[_0x31fbba],_0x578ad4=_0x38731d[_0x31fbba-0x1];if(_0x2065('0x5b')==_0x404e0d[_0x2065('0x30')])continue;if(_0x404e0d['type']!=_0x578ad4[_0x2065('0x30')])continue;if(!_0x46bcc[_0x2065('0xd9')](_0x578ad4[_0x2065('0xff')])||_0x46bcc[_0x2065('0xf3')](_0x578ad4[_0x2065('0xff')]))continue;if(!_0x46bcc['isBlock'](_0x404e0d['item'])||_0x46bcc[_0x2065('0xf3')](_0x404e0d[_0x2065('0xff')]))continue;if((_0x38731d[_0x31fbba][_0x2065('0x108')]||_0x38731d[_0x31fbba][_0x2065('0x10f')])&&_0x38731d[_0x31fbba-0x1][_0x2065('0x99')])_0x3eb06a=_0x38731d[_0x31fbba],_0x5943d3=_0x38731d[_0x31fbba-0x1],_0x53d49b=_0x31fbba-0x1;else{if(!_0x38731d[_0x31fbba][_0x2065('0x99')]||!_0x38731d[_0x31fbba-0x1][_0x2065('0x108')]&&!_0x38731d[_0x31fbba-0x1][_0x2065('0x10f')])continue;_0x3eb06a=_0x38731d[_0x31fbba-0x1],_0x5943d3=_0x38731d[_0x31fbba],_0x53d49b=_0x31fbba;}const _0x5e62b0=_0x3eb06a[_0x2065('0x44')]==_0x5943d3[_0x2065('0x44')],_0x3a8061=Math[_0x2065('0x67')](_0x3eb06a[_0x2065('0x44')])<Math['abs'](_0x5943d3[_0x2065('0x44')])&&0x0==_0x5943d3[_0x2065('0x7e')];(_0x5e62b0||_0x3a8061)&&(_0x316759[_0x2065('0xcd')](_0x5943d3['id'],_0x3eb06a['id']),_0x38731d['splice'](_0x53d49b,0x1),_0x31fbba--,_0x3eb06a[_0x2065('0x108')]=!0x1);}for(let _0x355d6d=0x0;_0x355d6d<_0x38731d[_0x2065('0x4f')];_0x355d6d++)_0x316759[_0x2065('0xfd')](_0x38731d[_0x355d6d][_0x2065('0xc6')])&&(_0x38731d[_0x355d6d]['pairId']=_0x316759[_0x2065('0x63')](_0x38731d[_0x355d6d][_0x2065('0xc6')]));}[_0x2065('0xc3')](_0x26aacf){const _0x576d1d=new Set(_0x26aacf['map'](_0x5b6520=>_0x5b6520['id']));for(let _0x1f2d0c=0x0;_0x1f2d0c<_0x26aacf[_0x2065('0x4f')];_0x1f2d0c++)_0x576d1d[_0x2065('0xfd')](_0x26aacf[_0x1f2d0c][_0x2065('0xc6')])||0x0==_0x26aacf[_0x1f2d0c][_0x2065('0x7e')]||(_0x26aacf[_0x1f2d0c][_0x2065('0x31')]=!0x0);return _0x26aacf[_0x2065('0xa3')](_0x3d618d=>!_0x3d618d[_0x2065('0x31')]);}['_markMismatchedRemovedTags'](_0x525ada){const _0x1aae3f=new Set();for(let _0x3c2974=0x0;_0x3c2974<_0x525ada[_0x2065('0x4f')];_0x3c2974++){if(_0x1aae3f['has'](_0x525ada[_0x3c2974]['id'])&&_0x525ada[_0x3c2974][_0x2065('0x99')]&&(_0x525ada[_0x3c2974][_0x2065('0x31')]=!0x0),_0x525ada[_0x3c2974][_0x2065('0x31')])continue;if(0x0==_0x525ada[_0x3c2974][_0x2065('0x7e')])continue;if(_0x2065('0xfb')!=_0x525ada[_0x3c2974][_0x2065('0x30')])continue;if(null==_0x525ada[_0x3c2974][_0x2065('0xc6')])continue;let _0x22d231=_0x3c2974+0x1,_0x149aea=0x0;for(;_0x525ada[_0x22d231]['id']!=_0x525ada[_0x3c2974][_0x2065('0xc6')];)_0x2065('0xfb')==_0x525ada[_0x22d231][_0x2065('0x30')]?_0x149aea++:_0x2065('0x1b')==_0x525ada[_0x22d231]['type']&&_0x149aea--,_0x22d231++;if(0x0!=_0x149aea){if(_0x525ada[_0x3c2974][_0x2065('0x99')])_0x525ada[_0x3c2974]['isIncorrect']=!0x0;else for(;_0x22d231!=_0x3c2974;)_0x525ada[_0x22d231][_0x2065('0x99')]&&0x0!=_0x525ada[_0x22d231]['distance']&&(_0x525ada[_0x22d231][_0x2065('0x31')]=!0x0,_0x1aae3f[_0x2065('0x82')](_0x525ada[_0x22d231][_0x2065('0xc6')])),_0x22d231--;}}return _0x525ada['filter'](_0x45d9b=>!_0x45d9b[_0x2065('0x31')]);}[_0x2065('0xe4')](_0x22ecbf){const _0x1b9d76=this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0x94')];for(let _0x43144c=0x0;_0x43144c<_0x22ecbf[_0x2065('0x4f')];_0x43144c++){if(!(_0x22ecbf[_0x43144c][_0x2065('0x108')]||_0x22ecbf[_0x43144c][_0x2065('0x10f')]||_0x22ecbf[_0x43144c][_0x2065('0x99')]||_0x22ecbf[_0x43144c][_0x2065('0x87')]))continue;if(0x0==_0x22ecbf[_0x43144c][_0x2065('0x7e')])continue;const _0xbc19ad=_0x22ecbf[_0x43144c]['item'];_0x1b9d76[_0x2065('0xd9')](_0xbc19ad)||_0x1b9d76['isLimit'](_0xbc19ad)||(_0x22ecbf[_0x43144c][_0x2065('0x108')]&&delete _0x22ecbf[_0x43144c][_0x2065('0x108')],_0x22ecbf[_0x43144c][_0x2065('0x10f')]&&delete _0x22ecbf[_0x43144c][_0x2065('0x10f')],_0x22ecbf[_0x43144c][_0x2065('0x87')]&&delete _0x22ecbf[_0x43144c][_0x2065('0x87')],_0x22ecbf[_0x43144c][_0x2065('0x99')]&&(_0x22ecbf[_0x43144c][_0x2065('0x31')]=!0x0));}return _0x22ecbf['filter'](_0x470341=>!_0x470341[_0x2065('0x31')]);}[_0x2065('0x21')](_0x22ec4d,_0x3a0b04,_0x1ee68a){const _0x2c2109=new _0x25d544(),_0x482e6a=[],_0x30df11=new Map(),_0x57504e=this['editor']['model'],_0x22ba37=_0x57504e[_0x2065('0x94')],_0x2746c3=[_0x2c2109],_0x215b78={},_0x47d382={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x42b791=null;const _0x26f7c2=[0x0];for(let _0xda134a=0x0;_0xda134a<_0x22ec4d[_0x2065('0x4f')];_0xda134a++){let _0x4b1c55,_0x3940e5;if(_0x2065('0xfb')===_0x22ec4d[_0xda134a][_0x2065('0x30')]){_0x4b1c55=_0x57504e[_0x2065('0xbb')](_0x2c2109,_0x26f7c2);const _0x438c16=new _0x5f1470(_0x22ec4d[_0xda134a][_0x2065('0xff')]['name'],_0x22ec4d[_0xda134a]['item']['getAttributes']());_0x2746c3[0x0]['_appendChild'](_0x438c16),_0x26f7c2[_0x2065('0x98')](0x0),_0x2746c3[_0x2065('0x37')](_0x438c16),_0x3940e5=_0x57504e['createPositionFromPath'](_0x2c2109,_0x26f7c2),_0x42b791=null;}else{if(_0x2065('0x1b')===_0x22ec4d[_0xda134a][_0x2065('0x30')])_0x2746c3[_0x2065('0x53')](),_0x4b1c55=_0x57504e[_0x2065('0xbb')](_0x2c2109,_0x26f7c2),_0x26f7c2[_0x2065('0x104')](),_0x26f7c2[_0x26f7c2['length']-0x1]++,_0x3940e5=_0x57504e[_0x2065('0xbb')](_0x2c2109,_0x26f7c2),_0x42b791=null;else{if(_0x4b1c55=_0x57504e[_0x2065('0xbb')](_0x2c2109,_0x26f7c2),_0x42b791&&_0x3988b0(_0x42b791,_0x22ec4d[_0xda134a][_0x2065('0xff')]))_0x42b791[_0x2065('0xc9')]+=_0x22ec4d[_0xda134a][_0x2065('0xff')][_0x2065('0xf9')];else{const _0x4c3f9d=new _0x323b78(_0x22ec4d[_0xda134a][_0x2065('0xff')][_0x2065('0xf9')],_0x22ec4d[_0xda134a][_0x2065('0xff')][_0x2065('0x8e')]());_0x2746c3[0x0][_0x2065('0xca')](_0x4c3f9d),_0x42b791=_0x4c3f9d;}_0x26f7c2[_0x26f7c2['length']-0x1]+=_0x22ec4d[_0xda134a]['item'][_0x2065('0xa7')],_0x3940e5=_0x57504e[_0x2065('0xbb')](_0x2c2109,_0x26f7c2);}}for(const _0x2f048c of _0x22ec4d[_0xda134a]['markersStart'])_0x30df11[_0x2065('0xcd')](_0x2f048c,{'start':_0x4b1c55,'end':null});_0xeb2dc5(_0x2065('0x87'),_0xda134a,_0x4b1c55,_0x3940e5),_0xeb2dc5(_0x2065('0x10f'),_0xda134a,_0x4b1c55,_0x3940e5),_0xeb2dc5('isRemoved',_0xda134a,_0x4b1c55,_0x3940e5),_0xeb2dc5(_0x2065('0x108'),_0xda134a,_0x4b1c55,_0x3940e5);for(const _0x2a9a9f of _0x22ec4d[_0xda134a][_0x2065('0x118')]){_0x30df11['get'](_0x2a9a9f)[_0x2065('0x62')]=_0x3940e5;}}for(const [_0x20343e,_0x2be0aa]of _0x30df11){const _0xe6dc4b=this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0x111')](_0x2be0aa[_0x2065('0x81')],_0x2be0aa[_0x2065('0x62')]);_0x2c2109[_0x2065('0x15')][_0x2065('0xcd')](_0x20343e,_0xe6dc4b);}return _0x482e6a[_0x2065('0x75')]((_0x4fd1de,_0x67f14f)=>{const _0x10a474=_0x2c2109[_0x2065('0x15')][_0x2065('0x63')](_0x2065('0x39')+_0x4fd1de['id']),_0x4d3531=_0x2c2109[_0x2065('0x15')][_0x2065('0x63')]('revision:'+_0x67f14f['id']);return _0x10a474['start'][_0x2065('0xb7')](_0x4d3531[_0x2065('0x81')])?-0x1:_0x10a474[_0x2065('0x81')]['isAfter'](_0x4d3531[_0x2065('0x81')])?0x1:_0x10a474[_0x2065('0x62')][_0x2065('0xb7')](_0x4d3531[_0x2065('0x62')])?-0x1:_0x10a474[_0x2065('0x62')][_0x2065('0x114')](_0x4d3531[_0x2065('0x62')])?0x1:_0x2065('0x82')===_0x4fd1de[_0x2065('0x30')]?-0x1:0x1;}),{'root':_0x2c2109,'changes':_0x482e6a};function _0xeb2dc5(_0x7d4d38,_0x25257d,_0x31f0a9,_0x571538){const _0x32a2ff=!!_0x22ec4d[_0x25257d][_0x7d4d38],_0x4b4f43=_0x32a2ff?_0x22ec4d[_0x25257d][_0x7d4d38]['userId']:null,_0x4a94c8=_0x25257d===_0x22ec4d[_0x2065('0x4f')]-0x1,_0x48f643=_0x47d382[_0x7d4d38][0x0],_0x588c33=_0x22ba37[_0x2065('0x1f')](_0x22ec4d[_0x25257d][_0x2065('0xff')]);!_0x215b78[_0x7d4d38]&&_0x32a2ff?_0x215b78[_0x7d4d38]={'start':_0x31f0a9,'tapeItem':_0x22ec4d[_0x25257d],'userId':_0x4b4f43,'type':_0x7d4d38}:_0x215b78[_0x7d4d38]&&!_0x32a2ff?(_0x215b78[_0x7d4d38][_0x2065('0x62')]=_0x31f0a9,_0x583639(_0x215b78[_0x7d4d38]),_0x215b78[_0x7d4d38]=null):_0x215b78[_0x7d4d38]&&_0x32a2ff&&_0x215b78[_0x7d4d38][_0x2065('0x102')]!==_0x4b4f43&&(_0x215b78[_0x7d4d38][_0x2065('0x62')]=_0x31f0a9,_0x48f643&&_0x48f643[_0x2065('0x102')]===_0x215b78[_0x7d4d38][_0x2065('0x102')]||_0x583639(_0x215b78[_0x7d4d38]),_0x215b78[_0x7d4d38]={'start':_0x31f0a9,'tapeItem':_0x22ec4d[_0x25257d],'userId':_0x4b4f43,'type':_0x7d4d38}),_0x215b78[_0x7d4d38]&&_0x588c33&&(_0x2065('0xfb')!==_0x22ec4d[_0x25257d][_0x2065('0x30')]||_0x48f643&&_0x48f643['userId']===_0x4b4f43||_0x47d382[_0x7d4d38][_0x2065('0x37')]({'userId':_0x4b4f43,'object':_0x22ec4d[_0x25257d][_0x2065('0xff')],'change':_0x215b78[_0x7d4d38]}),'elementEnd'===_0x22ec4d[_0x25257d]['type']&&_0x48f643&&_0x48f643[_0x2065('0xcb')]===_0x22ec4d[_0x25257d]['item']&&(_0x47d382[_0x7d4d38]['shift'](),_0x215b78[_0x7d4d38]=_0x48f643['change'])),_0x215b78[_0x7d4d38]&&_0x4a94c8&&(_0x215b78[_0x7d4d38][_0x2065('0x62')]=_0x571538,_0x583639(_0x215b78[_0x7d4d38]),_0x215b78[_0x7d4d38]=null);}function _0x583639({start:_0x23441d,end:_0x12dc7a,tapeItem:_0x589732,userId:_0x3fec35,type:_0x421783}){const _0x1c436b=_0x589732['item'],_0xa7a4a6=_0x57504e['schema'][_0x2065('0xd9')](_0x1c436b)&&!_0x57504e[_0x2065('0x94')]['isLimit'](_0x1c436b),_0x3afb96=_0x23441d['nodeAfter']==_0x12dc7a[_0x2065('0x77')]&&_0x12dc7a['isAtStart'];if(_0xa7a4a6&&_0x3afb96)return;const _0x43b869=_0x57504e[_0x2065('0x111')](_0x23441d,_0x12dc7a),_0x88c1ba=_0x3a0b04[_0x2065('0x63')](_0x3fec35),_0x26055f=new _0x10a5a2({'author':_0x88c1ba,'type':_0x2065('0x108')==_0x421783||'isAddSuggestion'==_0x421783?'add':_0x2065('0xe1'),'data':{'isSuggestion':_0x2065('0x10f')==_0x421783||_0x2065('0x87')==_0x421783},'createdAt':new Date(),'rootName':_0x1ee68a});_0x482e6a[_0x2065('0x98')](_0x26055f),_0x2c2109[_0x2065('0x15')][_0x2065('0xcd')]('revision:'+_0x26055f['id'],_0x43b869);}function _0x3988b0(_0x5f152f,_0x195019){const _0x23208f=_0x5f152f[_0x2065('0x8e')](),_0x565a5d=_0x195019[_0x2065('0x8e')]();for(const _0x595ad3 of _0x23208f){if(_0x595ad3[0x1]!==_0x195019[_0x2065('0x57')](_0x595ad3[0x0]))return!0x1;_0x565a5d[_0x2065('0x116')]();}return _0x565a5d[_0x2065('0x116')]()[_0x2065('0x105')];}}[_0x2065('0x69')](){this[_0x2065('0x51')]['conversion']['for'](_0x2065('0x79'))[_0x2065('0xa0')]({'view':_0x2065('0xb6')}),this[_0x2065('0x51')][_0x2065('0x88')][_0x2065('0x11a')]('editingDowncast')[_0x2065('0xa2')]({'model':'revision','view':_0x18f9ee=>{const _0x37d65b=_0x18f9ee['markerName'][_0x2065('0x6c')](':')[0x1],_0x4e98a5=this[_0x2065('0x5d')](_0x37d65b);if(!_0x4e98a5)return null;const _0x3f1bdf='add'==_0x4e98a5[_0x2065('0x30')]?_0x2065('0x9e'):_0x2065('0x7d'),_0x2e33d3=['ck-suggestion-marker',_0x2065('0x20')+_0x3f1bdf];return _0x4e98a5['data'][_0x2065('0x42')]&&_0x2e33d3[_0x2065('0x98')](_0x2065('0x20')+_0x3f1bdf+_0x2065('0xe8')),this[_0x2065('0x78')]==_0x4e98a5&&_0x2e33d3['push']('ck-suggestion-marker--active'),{'classes':_0x2e33d3,'attributes':{'data-change-id':_0x37d65b}};}}),this[_0x2065('0x51')]['conversion'][_0x2065('0x11a')](_0x2065('0x79'))['add'](_0x2a009d=>{_0x2a009d['on'](_0x2065('0x33'),(_0x4f5ade,_0x3ce110,_0xa48c55)=>{const _0x17e31e=_0x3ce110[_0x2065('0x83')][_0x2065('0x0')](0x0);if(!_0x17e31e||!_0x17e31e['is'](_0x2065('0xee'),_0x2065('0x8a')))return;if(!_0xa48c55[_0x2065('0x25')][_0x2065('0xa9')](_0x17e31e,{'attributes':[_0x2065('0xce'),_0x2065('0xf1')]}))return;const _0x5996b8=_0x3ce110[_0x2065('0x11')]['start'][_0x2065('0x91')];_0xa48c55[_0x2065('0xc0')][_0x2065('0x19')](_0x2065('0xce'),_0x17e31e['getAttribute'](_0x2065('0xce')),_0x5996b8),_0xa48c55[_0x2065('0xc0')][_0x2065('0x19')](_0x2065('0xf1'),_0x17e31e['getAttribute'](_0x2065('0xf1')),_0x5996b8);},{'priority':_0x2065('0x22')});}),this[_0x2065('0x51')][_0x2065('0x88')][_0x2065('0x11a')](_0x2065('0x79'))[_0x2065('0x82')](_0x4181f0=>{_0x4181f0['on'](_0x2065('0xee'),(_0x3795f6,_0x3775c4,_0x475ff8)=>{if(!_0x475ff8[_0x2065('0x25')][_0x2065('0xa9')](_0x3775c4['viewItem'],{'attributes':[_0x2065('0xce'),_0x2065('0xf1')]}))return;if(_0x3775c4['modelRange'][_0x2065('0xde')])return;const _0x1f934e=_0x3775c4['modelRange'][_0x2065('0x81')][_0x2065('0x91')];_0x1f934e['hasAttribute'](_0x2065('0xce'))||_0x1f934e[_0x2065('0xd0')](_0x2065('0xef'))||(_0x475ff8['writer'][_0x2065('0x19')](_0x2065('0xce'),_0x3775c4[_0x2065('0x83')][_0x2065('0x57')]('vid_start'),_0x1f934e),_0x475ff8[_0x2065('0xc0')][_0x2065('0x19')]('vid_end',_0x3775c4['viewItem'][_0x2065('0x57')](_0x2065('0xf1')),_0x1f934e));},{'priority':_0x2065('0x22')});}),this[_0x2065('0x51')][_0x2065('0x88')][_0x2065('0x11a')](_0x2065('0x79'))[_0x2065('0x7c')]({'view':{'name':_0x2065('0x61'),'attributes':{'vid':!0x0}},'model':{'key':_0x2065('0xef'),'value':_0x3a01b6=>_0x3a01b6['getAttribute'](_0x2065('0xef'))}}),this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0x94')]['on']('checkAttribute',(_0x41d61c,[,_0x3f8a0d])=>{[_0x2065('0xce'),_0x2065('0xf1'),'vid']['includes'](_0x3f8a0d)&&(_0x41d61c[_0x2065('0xab')]=!0x0,_0x41d61c['stop']());},{'priority':'highest'}),this[_0x2065('0x51')]['conversion'][_0x2065('0x11a')](_0x2065('0xea'))[_0x2065('0x82')](_0x14b432=>{_0x14b432['on'](_0x2065('0xb8'),(_0x4ac768,_0x10c3a4,_0x387882)=>{if('\x20'!=_0x10c3a4[_0x2065('0xff')]['data']||_0x10c3a4[_0x2065('0xff')][_0x2065('0x77')][_0x2065('0x89')]>0x1)return;if(!_0x387882[_0x2065('0x25')][_0x2065('0xa9')](_0x10c3a4[_0x2065('0xff')],_0x4ac768[_0x2065('0x46')]))return;const _0x30b6a7=_0x387882[_0x2065('0xc0')],_0x24ed41=_0x387882[_0x2065('0xe9')][_0x2065('0x9')](_0x10c3a4['range']);_0x30b6a7[_0x2065('0xcf')](_0x24ed41,_0x30b6a7[_0x2065('0xad')]('span'));});}),this[_0x2065('0x51')][_0x2065('0x88')][_0x2065('0x11a')]('dataDowncast')['markerToData']({'model':'revision'}),this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0xae')]['on'](_0x2065('0xe5'),function(_0x5baead){const _0x4bacdb=_0x5baead['plugins'][_0x2065('0x63')]('RevisionViewer');return(_0x56a205,_0x4d5aa1,_0x218a3f)=>{const _0x40c4ca=_0x4d5aa1['markerName'][_0x2065('0x6c')](':')[0x1],_0x3a8b25=_0x4bacdb[_0x2065('0x5d')](_0x40c4ca);if(!_0x3a8b25)return null;const _0x52aa4e=_0x2065('0x82')==_0x3a8b25[_0x2065('0x30')]?_0x2065('0x6c'):_0x2065('0x43');if(!_0x218a3f[_0x2065('0x25')][_0x2065('0x10')](_0x4d5aa1['markerRange'],_0x56a205[_0x2065('0x46')]))return;const _0x221e7e=_0x4d5aa1[_0x2065('0x125')]['getWalker'](),_0x24b331=_0x4d5aa1[_0x2065('0x125')][_0x2065('0x81')],_0x1f2832=_0x5baead[_0x2065('0xb4')]['schema'];let _0x22d1cd=null,_0x8ee75e=null,_0x391c25=!0x1,_0x281570=!0x1;for(const _0x540c89 of _0x221e7e){const _0x1c044b=_0x540c89['item'];_0x391c25=_0x391c25||_0x1f2832[_0x2065('0xa6')](_0x1c044b);const _0x265bc5=_0x218a3f['mapper'][_0x2065('0x9d')](_0x1c044b);if(_0x265bc5&&_0x265bc5[_0x2065('0x41')](_0x2065('0x45')))return;_0x2065('0x1b')==_0x540c89[_0x2065('0x30')]&&(_0x1f2832[_0x2065('0xd9')](_0x1c044b)&&!_0x1f2832[_0x2065('0xf3')](_0x1c044b)&&(_0x1c044b['nextSibling']||_0x24b331[_0x2065('0xb0')]?_0x22d1cd&&_0x22d1cd[_0x2065('0x77')]==_0x1c044b||(_0x22d1cd=_0x1c044b,_0xc54608(_0x540c89[_0x2065('0x23')]),_0x281570=!0x0):_0x8ee75e=_0x8ee75e||_0x540c89[_0x2065('0x23')]));}function _0xc54608(_0x5cd51a){const _0x4a5865=_0x218a3f[_0x2065('0xc0')][_0x2065('0x90')]('span',{'class':'ck-suggestion-marker-'+_0x52aa4e}),_0x11aa49=_0x218a3f['mapper'][_0x2065('0xfa')](_0x5cd51a);_0x3a8b25[_0x2065('0xf9')][_0x2065('0x42')]&&_0x218a3f[_0x2065('0xc0')][_0x2065('0x60')](_0x2065('0x20')+_0x52aa4e+_0x2065('0xe8'),_0x4a5865),_0x4bacdb[_0x2065('0x78')]==_0x3a8b25&&_0x218a3f[_0x2065('0xc0')][_0x2065('0x60')](_0x2065('0xf8'),_0x4a5865),_0x218a3f[_0x2065('0xc0')]['insert'](_0x11aa49,_0x4a5865),_0x218a3f[_0x2065('0xe9')][_0x2065('0x7f')](_0x4a5865,_0x4d5aa1['markerName']);}_0x391c25||_0x281570||!_0x8ee75e||_0xc54608(_0x8ee75e);};}(this[_0x2065('0x51')]),{'priority':_0x2065('0x107')}),this['editor']['editing']['downcastDispatcher']['on'](_0x2065('0xa5'),(_0x1d9e0b,_0xa186dd,_0x1f48b6)=>{const _0x37f41f=_0x1f48b6['mapper'][_0x2065('0x76')](_0xa186dd[_0x2065('0xcc')]);if(_0x37f41f)for(const _0x14732f of _0x37f41f)(_0x14732f[_0x2065('0x11c')](_0x2065('0x13'))||_0x14732f[_0x2065('0x11c')](_0x2065('0xa')))&&(_0x1f48b6['mapper'][_0x2065('0x7b')](_0x14732f,_0xa186dd[_0x2065('0xcc')]),_0x1f48b6['writer'][_0x2065('0xe1')](_0x14732f));},{'priority':_0x2065('0x107')}),this[_0x2065('0x51')][_0x2065('0x11d')]['downcastDispatcher']['on']('addMarker:revision',(_0x507612,_0xd8362b,_0x190714)=>{const _0x23d16d=_0xd8362b['markerName']['split'](':')[0x1],_0x1bace4=this[_0x2065('0x5d')](_0x23d16d);if(!_0x1bace4)return null;const _0x105c6d=_0x2065('0x82')==_0x1bace4[_0x2065('0x30')]?_0x2065('0x6c'):'merge';if(_0x190714['consumable'][_0x2065('0x10')](_0xd8362b['markerRange'],_0x507612[_0x2065('0x46')]))for(const _0x58026b of _0xd8362b[_0x2065('0x125')]['getItems']()){if(!_0x58026b['is'](_0x2065('0xee'),_0x2065('0xdc')))continue;const _0x4451b6=_0x190714[_0x2065('0xc0')][_0x2065('0x90')]('span',{'class':_0x2065('0x20')+_0x105c6d}),_0x4fbe60=_0x190714[_0x2065('0xe9')][_0x2065('0xfa')](this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0xb9')](_0x58026b));_0x1bace4[_0x2065('0xf9')][_0x2065('0x42')]&&_0x190714[_0x2065('0xc0')][_0x2065('0x60')](_0x2065('0x20')+_0x105c6d+'-new',_0x4451b6),this[_0x2065('0x78')]==_0x1bace4&&_0x190714[_0x2065('0xc0')]['addClass']('ck-suggestion-marker--active',_0x4451b6),_0x190714[_0x2065('0xc0')]['insert'](_0x4fbe60,_0x4451b6),_0x190714[_0x2065('0xe9')][_0x2065('0x7f')](_0x4451b6,_0xd8362b[_0x2065('0xcc')]);}},{'priority':'high'}),this[_0x2065('0x51')]['model']['document']['on'](_0x2065('0x8d'),()=>{this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0x8c')]['change'](_0x979dab=>{for(const _0x15a1fa of this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0x2')][_0x2065('0x4b')]()){const _0x5ed4e8=this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0x2')]['getRoot'](_0x15a1fa),_0x26d4a4=this[_0x2065('0x51')][_0x2065('0x11d')]['view'][_0x2065('0x2')]['getRoot'](_0x15a1fa);if(_0x26d4a4){const _0x55c8ec=_0x5ed4e8[_0x2065('0x57')](_0x2065('0x64'));if(_0x979dab['removeAttribute'](_0x2065('0xb'),_0x26d4a4),_0x979dab['removeClass'](_0x2065('0x9a'),_0x26d4a4),_0x979dab[_0x2065('0x2b')](_0x2065('0x6b'),_0x26d4a4),_0x979dab['removeClass'](_0x2065('0xd7'),_0x26d4a4),_0x55c8ec){const _0x37c9cc=this[_0x2065('0x5d')](_0x55c8ec);if(!_0x37c9cc)return null;_0x979dab[_0x2065('0x19')](_0x2065('0xb'),_0x55c8ec,_0x26d4a4),_0x979dab[_0x2065('0x60')]('ck-revision-history-root-'+_0x37c9cc[_0x2065('0x30')],_0x26d4a4),this[_0x2065('0x78')]==_0x37c9cc&&_0x979dab[_0x2065('0x60')](_0x2065('0xd7'),_0x26d4a4);}}}});}),this['editor'][_0x2065('0x88')]['for'](_0x2065('0x79'))[_0x2065('0xa0')]({'view':_0x2065('0x47'),'model':_0x521f77=>_0x2065('0xb1')+_0x521f77,'converterPriority':_0x2065('0x10c')}),this[_0x2065('0x51')][_0x2065('0x88')][_0x2065('0x11a')](_0x2065('0x79'))[_0x2065('0xa0')]({'view':_0x2065('0x112'),'model':_0x55c413=>_0x2065('0x35')+_0x55c413,'converterPriority':'highest'}),this[_0x2065('0x51')][_0x2065('0x88')][_0x2065('0x11a')](_0x2065('0xea'))[_0x2065('0x66')]({'model':_0x2065('0x92'),'view':_0x561a6e=>({'name':_0x2065('0xaa')+_0x561a6e,'group':_0x2065('0x92')}),'converterPriority':_0x2065('0x10c')}),this[_0x2065('0x51')]['conversion'][_0x2065('0x11a')]('editingDowncast')[_0x2065('0xa2')]({'model':_0x2065('0x92'),'view':_0x282fd6=>{const _0x24b045=_0x282fd6[_0x2065('0xcc')][_0x2065('0x6c')](':')[0x1];return _0x2065('0x9e')!=_0x24b045&&_0x2065('0x7d')!=_0x24b045?null:{'classes':[_0x2065('0x113'),_0x2065('0xe7')+_0x24b045]};}}),this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0xae')]['on'](_0x2065('0x2c'),et(this[_0x2065('0x51')],_0x2065('0x43')),{'priority':_0x2065('0x107')}),this['editor'][_0x2065('0x11d')]['downcastDispatcher']['on'](_0x2065('0x3a'),et(this[_0x2065('0x51')],_0x2065('0x6c')),{'priority':_0x2065('0x107')}),this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0xae')]['on'](_0x2065('0x38'),(_0x494267,_0x1bb660,_0xb48438)=>{const _0x55dc0d=_0xb48438[_0x2065('0xe9')][_0x2065('0x76')](_0x1bb660['markerName']);if(_0x55dc0d)for(const _0x4f899c of _0x55dc0d)_0x4f899c['is'](_0x2065('0x34'))&&(_0xb48438[_0x2065('0xe9')][_0x2065('0x7b')](_0x4f899c,_0x1bb660['markerName']),_0xb48438[_0x2065('0xc0')][_0x2065('0xe1')](_0x4f899c));},{'priority':'high'});}['_getChangeFromId'](_0x283c7c){return this['_changeIdToChange'][_0x2065('0x63')](_0x283c7c);}[_0x2065('0x70')](_0x2bd591){return this[_0x2065('0x6e')]&&this[_0x2065('0x6e')][_0x2065('0xe')](),this['_changeView']=new _0x5e0533(this[_0x2065('0x51')][_0x2065('0xa1')],_0x2bd591),this[_0x2065('0x6e')];}['_initInteractions'](){this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0x2')][_0x2065('0x11f')]['observeMarkers'](_0x2065('0xb6')),this['on']('change:activeView',(_0x428273,_0x2e55d5,_0xf788b1,_0x4631bd)=>{_0x4631bd&&this[_0x2065('0x24')][_0x2065('0xe1')](_0x4631bd),_0xf788b1&&(this['_balloon'][_0x2065('0x82')]({'view':_0xf788b1,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4b76f9=this[_0x2065('0x51')][_0x2065('0x11d')],_0x1e4aad=this['_getChangeFromId'](_0xf788b1[_0x2065('0x126')]);let _0x12094a;if(_0x1e4aad[_0x2065('0xf9')]['isOnRoot']){const _0x1622ad=_0x4b76f9['view'][_0x2065('0xdf')](_0x1e4aad[_0x2065('0xc8')]);_0x12094a=Array['from'](_0x1622ad[_0x2065('0xd4')]());}else{const _0x33758e=this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0x15')]['get'](_0x2065('0x39')+_0xf788b1[_0x2065('0x126')]);_0x12094a=Array[_0x2065('0x1c')](_0x4b76f9[_0x2065('0xe9')]['markerNameToElements'](_0x33758e[_0x2065('0x46')]))[_0x2065('0x2e')](_0x124e4d=>_0x4b76f9[_0x2065('0x8c')][_0x2065('0x123')]['mapViewToDom'](_0x124e4d))[_0x2065('0x2e')](_0x5a6650=>Array[_0x2065('0x1c')](_0x5a6650[_0x2065('0xd4')]()))[_0x2065('0x95')]();}if(!this[_0x2065('0x36')])return _0x12094a[0x0];return _0x12094a[_0x2065('0xda')](_0x15ee71=>_0x15ee71['top']-0x3<=this[_0x2065('0x36')]['y']&&_0x15ee71['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x15ee71[_0x2065('0x4d')]-0x3<=this[_0x2065('0x36')]['x']&&_0x15ee71[_0x2065('0xc5')]+0x3>=this[_0x2065('0x36')]['x'])||_0x12094a[0x0];}}}),this['_balloon'][_0x2065('0x85')](_0x2065('0xe3')));}),this['on'](_0x2065('0x119'),(_0x128eb9,_0x3bc10c,_0x18ee54,_0x33fe94)=>{this[_0x2065('0x5f')]=_0x18ee54?this[_0x2065('0x70')](_0x18ee54):null,this[_0x2065('0x51')][_0x2065('0xb4')]['change'](()=>{const _0x22476a=this[_0x2065('0x51')]['editing'];_0x33fe94&&(_0x33fe94[_0x2065('0xf9')][_0x2065('0x6f')]?_0x22476a['view'][_0x2065('0x8d')](_0x313f47=>{_0x313f47['removeClass'](_0x2065('0xd7'),_0x22476a[_0x2065('0x8c')][_0x2065('0x2')][_0x2065('0x4c')](_0x33fe94[_0x2065('0xc8')]));}):_0x22476a[_0x2065('0xc')]('revision:'+_0x33fe94['id'])),_0x18ee54&&(_0x18ee54[_0x2065('0xf9')][_0x2065('0x6f')]?_0x22476a[_0x2065('0x8c')][_0x2065('0x8d')](_0x18d68c=>{_0x18d68c[_0x2065('0x60')](_0x2065('0xd7'),_0x22476a[_0x2065('0x8c')][_0x2065('0x2')][_0x2065('0x4c')](_0x18ee54[_0x2065('0xc8')]));}):_0x22476a[_0x2065('0xc')](_0x2065('0x39')+_0x18ee54['id']));});}),this[_0x2065('0xbe')](this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0x8c')][_0x2065('0x2')],_0x2065('0x18'),(_0x56612a,_0x5bb846)=>{if(this[_0x2065('0x78')])return;const _0x56d125=this[_0x2065('0xfc')](_0x5bb846[_0x2065('0x8f')]),_0x170c57=this[_0x2065('0x12')][_0x2065('0x63')](_0x56d125);_0x170c57?(this[_0x2065('0x36')]={'x':_0x5bb846[_0x2065('0x96')]['x'],'y':_0x5bb846[_0x2065('0x96')]['y']},this['activeView']=this[_0x2065('0x70')](_0x170c57)):(this['_activeViewTarget']=null,this['activeView']=null);}),this[_0x2065('0xbe')](this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0x8c')][_0x2065('0x2')],_0x2065('0x50'),(_0x573eb0,_0x2da535)=>{const _0x2968b5=this[_0x2065('0xfc')](_0x2da535[_0x2065('0x8f')]),_0x42ed57=this['_changeIdToChange'][_0x2065('0x63')](_0x2968b5);_0x42ed57?(this['_activeViewTarget']={'x':_0x2da535[_0x2065('0x96')]['x'],'y':_0x2da535[_0x2065('0x96')]['y']},_0x42ed57===this[_0x2065('0x78')]?this[_0x2065('0x24')]['updatePosition']():this['activeChange']=_0x42ed57):(this[_0x2065('0x36')]=null,this[_0x2065('0x78')]=null);});}['_findChangeIdFromDomTarget'](_0x81364c){do{const _0x482be0=_0x81364c[_0x2065('0x57')](_0x2065('0xb'));if(_0x482be0)return _0x482be0;_0x81364c=_0x81364c['parent'];}while(_0x81364c);return null;}['_cleanMarkers'](){this[_0x2065('0x51')]['model'][_0x2065('0x8d')](_0x4567b1=>{for(const _0x43cb42 of this['editor']['model'][_0x2065('0x15')])_0x4567b1[_0x2065('0xbf')](_0x43cb42);});}}function et(_0x352822,_0x2cda11){return(_0x50ec3d,_0x259f48,_0x4fb384)=>{if(!_0x4fb384[_0x2065('0x25')][_0x2065('0x10')](_0x259f48[_0x2065('0x125')],_0x50ec3d[_0x2065('0x46')]))return;const _0x335212=_0x259f48['markerRange']['getWalker'](),_0x27a1dc=_0x259f48[_0x2065('0x125')][_0x2065('0x81')],_0x2b0a34=_0x352822[_0x2065('0xb4')]['schema'];let _0x4baaea=null,_0x349712=null,_0x32a70b=!0x1,_0x3f21f0=!0x1;for(const _0x478b02 of _0x335212){const _0x3a3d69=_0x478b02[_0x2065('0xff')];_0x32a70b=_0x32a70b||_0x2b0a34[_0x2065('0xa6')](_0x3a3d69);const _0x38fbf8=_0x4fb384['mapper'][_0x2065('0x9d')](_0x3a3d69);if(_0x38fbf8&&_0x38fbf8[_0x2065('0x41')](_0x2065('0x45')))return;'elementEnd'==_0x478b02[_0x2065('0x30')]&&(_0x2b0a34['isBlock'](_0x3a3d69)&&!_0x2b0a34[_0x2065('0xf3')](_0x3a3d69)&&(_0x3a3d69[_0x2065('0x14')]||_0x27a1dc[_0x2065('0xb0')]?_0x4baaea&&_0x4baaea['parent']==_0x3a3d69||(_0x4baaea=_0x3a3d69,_0x38e119(_0x478b02[_0x2065('0x23')]),_0x3f21f0=!0x0):_0x349712=_0x349712||_0x478b02['previousPosition']));}function _0x38e119(_0x4992ab){const _0x2bfb7a=_0x4fb384[_0x2065('0xe9')][_0x2065('0xfa')](_0x4992ab),_0x502ec4=_0x4fb384[_0x2065('0xc0')]['createUIElement'](_0x2065('0x61'),{'class':_0x2065('0xe7')+_0x2cda11});_0x4fb384[_0x2065('0xc0')][_0x2065('0xbd')](_0x2bfb7a,_0x502ec4),_0x4fb384[_0x2065('0xe9')][_0x2065('0x7f')](_0x502ec4,_0x259f48[_0x2065('0xcc')]);}_0x32a70b||_0x3f21f0||!_0x349712||_0x38e119(_0x349712);};}export class RestoreRevisionCommand extends _0x4e6f4e{constructor(_0x76b35a){super(_0x76b35a);const _0x2f8076=_0x76b35a[_0x2065('0xec')][_0x2065('0x63')](d);this[_0x2065('0xdd')]=!0x1,this[_0x2065('0xbe')](_0x2f8076,_0x2065('0x3f'),()=>this[_0x2065('0x84')]()),this[_0x2065('0xbe')](_0x2f8076,_0x2065('0xf5'),()=>this['refresh']());}[_0x2065('0x26')](){const _0x25d549=this[_0x2065('0x51')],_0x133d75=_0x25d549[_0x2065('0xec')][_0x2065('0x63')](d),_0x224b24=_0x133d75[_0x2065('0x106')]?_0x133d75['diff'][_0x2065('0x52')]:null;_0x25d549[_0x2065('0x1')][_0x2065('0x63')](_0x2065('0x68'))[_0x2065('0xe0')](_0x224b24);}[_0x2065('0x84')](){const {isReady:_0x11447a,isEnabled:_0x24de6b}=this[_0x2065('0x51')]['plugins'][_0x2065('0x63')](d);this[_0x2065('0xac')]=_0x11447a&&_0x24de6b;}}export class ShowChangeCommand extends _0x4e6f4e{constructor(_0x20b830,{direction:_0x2f0332}){super(_0x20b830);const _0x208528=_0x20b830[_0x2065('0xec')][_0x2065('0x63')](d);this[_0x2065('0xdd')]=!0x1,this[_0x2065('0x86')]=_0x2065('0x10a')===_0x2f0332?0x1:-0x1,this[_0x2065('0xbe')](_0x208528,'change:isReady',()=>this[_0x2065('0x84')]()),this[_0x2065('0xbe')](_0x208528,_0x2065('0xf5'),()=>this[_0x2065('0x84')]()),this['listenTo'](_0x208528,'change:activeChange',()=>this[_0x2065('0x84')]());}['execute'](){const _0x5c9e2d=this[_0x2065('0x51')],_0x274c56=_0x5c9e2d['plugins'][_0x2065('0x63')](d),{isNavigationMode:_0x2c8f35,currentChangeNumber:_0x3253e8}=_0x274c56;let _0x31280b;if(_0x274c56[_0x2065('0x78')]=_0x2c8f35?_0x274c56['diff'][_0x2065('0xf6')][_0x2065('0x63')](_0x3253e8+this['_step']):_0x274c56['diff'][_0x2065('0xf6')]['first'],_0x274c56[_0x2065('0x78')][_0x2065('0xf9')][_0x2065('0x6f')])_0x31280b=_0x5c9e2d[_0x2065('0x11d')][_0x2065('0x8c')][_0x2065('0xdf')](_0x274c56['activeChange'][_0x2065('0xc8')]);else{const _0x3bd827=_0x5c9e2d['model'][_0x2065('0x15')]['get'](_0x2065('0x39')+_0x274c56['activeChange']['id']);_0x31280b=_0xe0fa1e(_0x5c9e2d['editing'],_0x3bd827);}_0x24de7d({'target':_0x31280b,'viewportOffset':0x28});}[_0x2065('0x84')](){const {isNavigationMode:_0x11602f,currentChangeNumber:_0x453b65,numberOfChanges:_0xcc5ce9,isReady:_0x5b0ae6,isEnabled:_0x2c4f83}=this[_0x2065('0x51')]['plugins'][_0x2065('0x63')](d);this[_0x2065('0xac')]=!!(_0x2c4f83&&_0x5b0ae6&&_0xcc5ce9)&&(!_0x11602f||(0x1===this[_0x2065('0x86')]?_0x453b65<_0xcc5ce9-0x1:_0x453b65>0x0));}}
|
|
23
|
+
const _0x2649=['model','_setChanges','ck-revision-history-root-remove','offsetSize','modelRange','findIndex','forEach','_changeIdToChange','refresh','softBreak','_cleanMarkers','_makeModelFromTape','-new','diffData','revision-comment:','toModel','_appendChild','enableReadOnlyMode','end','vid_end','wrap','isContent','error','nextSibling','getRevision','vid_start','listenTo','deletions','revision-end','isEqual','rootName','splice','markersStart','useFillerType','parent','high','POSITIVE_INFINITY','change:isReady','attributes','keys','isAfter','element:pre','_getRevisionsRange','locale','_revisions','observeMarkers','elementEnd','index','restoreRevisionCallback','_getChangeFromId','authors','done','_update','deletion','parse','diff','insertions','suggestion:','ck-suggestion-marker-split','pop','data','resolve','restoreRevision','loadRevisionData','_markSuggestions','destroy','element','_setConversion','processor','getDomRoot','_activeViewTarget','for','revision:','_cleanUp','level','viewItem','insertion','getWalker','isNavigationMode','getIndex','commands','ck-suggestion-preview-marker-','editingDowncast','ck-revision-history-root-','left','updatePosition','_removeMissingPairs','_data','isCollapsed','range','includes','activeChange','isAtEnd','showNextChange','WidgetToolbarRepository','dataDowncast','flat','toViewElement','markerNameToElements','schema','createPositionBefore','addMarker:revision-suggestion:deletion','ck-revision-history-root-add','showStack','getRevisionRootsAttributes','pairId','remove','hasClass','comment','domEvent','_threeWayMerge','editor','low','isLimit','ck-suggestion-marker-merge','forceDisabled','removeMarker','consumable','set','enqueueChange','markerName','downcastDispatcher','children','attributesBefore','startIndex','text','isObject','unshift','revision-viewer','indexOf','mousedown','startsWith','from','item','_getViewObj','push','shift','_refreshStartEndIndex','upcast','clear','createRevision','_setDistance','consume','revisionHistoryAttachChange','markers','side','conversion','_getDiff','_changeView','editing','compare','document','isBlock','_getViewForChange','_markMarkers','insert','createUIElement','revisionHistory','attachChange','_removeRevisionMarkers','right','isAdded','mouseover','removeMarker:revision-suggestion','backward','RevisionViewer','mapViewToDom','nextPosition','change:isEnabled','view','currentChangeNumber','addRevisionData','oldRevisionId','length','isEnabled','markerToData','values','attributesAfter','revision','distance','getRootNames','userId','isOnRoot','change','attribute:vid','target','addRevision','_step','dataToMarker','span','createRangeIn','data-change-id','get','slice','type','markerRange','catch','_makeModelFromViewString','addRoot','highest','createRange','delete','repository','toViewPosition','concat','_fixObsoleteTags','activeView','default','createPositionFromPath','removeClass','split','isAttached','bind','has','ck-editor__editable__overlay','revision-start','code','isRemoved','all','adapter','ck-revision-history-root--active','isBefore','changeId','mapper','find','_markInsertions','isRemoveSuggestion','getRevisionData','nodeAfter','_makeTape','getAttributes','setAttribute','checkAttribute','addClass','numberOfChanges','merge','ck-suggestion-marker','add','start','map','revisionHistoryLabel','_processTape','domConverter','ck-suggestion-marker-','abs','bindElementToMarker','previousPosition','newRevisionId','changes','filter','markersEnd','getCustomProperty','change:activeChange','reconvertMarker','pluginName','_removeUnsupportedChanges','bottom','isIncorrect','_balloon','uiElement','writer','maxOffset','removeAttribute','execute','string','test','isAddSuggestion','toData','addMarker:revision','unbindElementFromMarkerName','_markMismatchedRemovedTags','sort','isInline','showPreviousChange','getAttribute','elementToAttribute','elementStart','affectsData','plugins','isReady','endIndex','name','getItems','addHighlight','vid','getRoot','then','_sortAndFilterDiffChanges','config','_findChangeIdFromDomTarget','revision-suggestion'];(function(_0xfa2be5,_0x26494e){const _0xeb7d72=function(_0x2c9f62){while(--_0x2c9f62){_0xfa2be5['push'](_0xfa2be5['shift']());}};_0xeb7d72(++_0x26494e);}(_0x2649,0xa5));const _0xeb7d=function(_0xfa2be5,_0x26494e){_0xfa2be5=_0xfa2be5-0x0;let _0xeb7d72=_0x2649[_0xfa2be5];return _0xeb7d72;};import{Plugin as _0x2cdec0,Command as _0x45f7a9}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x7cc601}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x438a8a}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x5604cc,Element as _0x1cc4ae,Text as _0x3bd1f2,ViewDocumentFragment as _0x387dcb,ViewText as _0x2d39e5,ViewElement as _0x15953e,ViewContainerElement as _0x4c25b8,ViewAttributeElement as _0x3a3bdb,ViewEmptyElement as _0x2980a9,ViewRawElement as _0xc85b94,ViewUIElement as _0x47707a}from'ckeditor5/src/engine.js';import{Users as _0x12edd1,getMarkerDomElement as _0x4ea41f}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x172e38 from'./ui/revisionviewer/changedetailsview.js';import _0x4c4a32 from'./revisionsrepository.js';import _0x3bc349 from'./changeitem.js';import{default as _0x5892e4}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x440dc}from'lodash-es';const tt={'c':_0x4c25b8,'a':_0x3a3bdb,'e':_0x2980a9,'r':_0xc85b94,'u':_0x47707a};export default class d extends _0x2cdec0{static get[_0xeb7d('0x59')](){return _0xeb7d('0x0');}static get['requires'](){return[_0x12edd1,_0x438a8a,_0x4c4a32];}constructor(_0x3e38eb){super(_0x3e38eb),this[_0xeb7d('0x25')]=this[_0xeb7d('0xed')]['plugins']['get']('RevisionsRepository'),this[_0xeb7d('0xf4')](_0xeb7d('0xd9'),null),this[_0xeb7d('0xf4')](_0xeb7d('0x29'),null),this[_0xeb7d('0xc4')]=null,this[_0xeb7d('0xf4')](_0xeb7d('0xb5'),null),this[_0xeb7d('0xf4')](_0xeb7d('0x72'),!0x1),this[_0xeb7d('0xf4')](_0xeb7d('0x9'),!0x0),this['on'](_0xeb7d('0x3'),(_0x3975e2,_0x59c7f0,_0x495401)=>{this[_0xeb7d('0xd9')]=null,this['activeView']=null,this[_0xeb7d('0xed')][_0xeb7d('0x113')][_0xeb7d('0x4')][_0xeb7d('0x12')](_0xece6c6=>{for(const _0x49a621 of this[_0xeb7d('0xed')][_0xeb7d('0x113')][_0xeb7d('0x4')]['document']['roots'])_0x495401?_0xece6c6[_0xeb7d('0x2c')](_0xeb7d('0x31'),_0x49a621):_0xece6c6[_0xeb7d('0x44')](_0xeb7d('0x31'),_0x49a621);});}),this['bind'](_0xeb7d('0xcc'))['to'](this,_0xeb7d('0xd9'),_0x591796=>null!==_0x591796),this[_0xeb7d('0x2f')](_0xeb7d('0x5'))['to'](this,_0xeb7d('0x72'),this,_0xeb7d('0xb5'),this,_0xeb7d('0xd9'),(_0x2fbe1f,_0x34282c,_0x4843c3)=>_0x2fbe1f&&_0x4843c3?_0x34282c[_0xeb7d('0x53')][_0xeb7d('0xcd')](_0x4843c3):0x0),this['bind'](_0xeb7d('0x45'))['to'](this,_0xeb7d('0x72'),this,_0xeb7d('0xb5'),(_0x2b1b70,_0xef051d)=>_0x2b1b70?_0xef051d[_0xeb7d('0x53')][_0xeb7d('0x8')]:0x0),this[_0xeb7d('0x112')]=null,this[_0xeb7d('0x85')]=new Map(),this[_0xeb7d('0x36')]=null,this[_0xeb7d('0x5d')]=this['editor'][_0xeb7d('0x71')][_0xeb7d('0x1b')](_0x438a8a);}['init'](){const _0xde3bca=this[_0xeb7d('0xed')],_0x16dadb=new ShowChangeCommand(_0xde3bca,{'direction':_0xeb7d('0x122')}),_0x25e4f4=new ShowChangeCommand(_0xde3bca,{'direction':'forward'});(_0xde3bca[_0xeb7d('0xce')][_0xeb7d('0x48')](_0xeb7d('0x6c'),_0x16dadb),_0xde3bca['commands']['add'](_0xeb7d('0xdb'),_0x25e4f4),_0xde3bca[_0xeb7d('0xce')][_0xeb7d('0x48')](_0xeb7d('0xbc'),new RestoreRevisionCommand(_0xde3bca)),this['on']('change:numberOfChanges',()=>{_0x16dadb[_0xeb7d('0x86')](),_0x25e4f4[_0xeb7d('0x86')]();}),this[_0xeb7d('0xc1')](),this['_initInteractions'](),_0xde3bca[_0xeb7d('0x8f')](_0xeb7d('0xfe')),_0xde3bca[_0xeb7d('0x71')][_0xeb7d('0x30')](_0xeb7d('0xdc')))&&_0xde3bca['plugins']['get']('WidgetToolbarRepository')[_0xeb7d('0xf1')](_0xeb7d('0xfe'));}async[_0xeb7d('0x3e')](_0x34afc2){await this[_0xeb7d('0xbd')](_0x34afc2);const _0x228871={};for(const _0x5e1d45 in _0x34afc2[_0xeb7d('0x8b')]){if(_0x34afc2['diffData'][_0x5e1d45][_0xeb7d('0x11c')]&&!_0x34afc2[_0xeb7d('0x8b')][_0x5e1d45][_0xeb7d('0x11c')][_0xeb7d('0x2e')])continue;const _0x1ef4f0=this[_0xeb7d('0x11d')](JSON[_0xeb7d('0xb4')](_0x34afc2[_0xeb7d('0x8b')][_0x5e1d45]['insertions'])),_0x478730=this[_0xeb7d('0xed')][_0xeb7d('0x113')][_0xeb7d('0x4')]['document'],_0xb45012=new _0x387dcb(_0x478730,_0x1ef4f0['map'](_0x36c4c5=>this[_0xeb7d('0x104')](_0x36c4c5)));this[_0xeb7d('0xed')][_0xeb7d('0xba')][_0xeb7d('0xc2')][_0xeb7d('0x9f')]('marked'),_0x228871[_0x5e1d45]=this[_0xeb7d('0xed')][_0xeb7d('0xba')][_0xeb7d('0xc2')][_0xeb7d('0x66')](_0xb45012),this[_0xeb7d('0xed')][_0xeb7d('0xba')]['processor'][_0xeb7d('0x9f')](_0xeb7d('0x2a'));}return _0x228871;}async[_0xeb7d('0xe6')](_0x119761){await this[_0xeb7d('0xbd')](_0x119761);const _0x178965={};for(const _0xb8526d in _0x119761[_0xeb7d('0x8b')])_0x119761[_0xeb7d('0x8b')][_0xb8526d]['attachChange']&&!_0x119761[_0xeb7d('0x8b')][_0xb8526d][_0xeb7d('0x11c')][_0xeb7d('0x2e')]||(_0x178965[_0xb8526d]=_0x119761[_0xeb7d('0x8b')][_0xb8526d][_0xeb7d('0xc')]||{});return _0x178965;}[_0xeb7d('0x11d')](_0x2ae939){return(_0x2ae939=_0x2ae939[_0xeb7d('0x54')](_0x1d14a9=>!_0x1d14a9[_0xeb7d('0x74')]||_0xeb7d('0x32')!==_0x1d14a9[_0xeb7d('0x74')]&&_0xeb7d('0x9a')!==_0x1d14a9[_0xeb7d('0x74')]))[_0xeb7d('0x84')](_0x707dff=>{_0xeb7d('0x63')!=typeof _0x707dff&&(_0x707dff[_0xeb7d('0xf8')]=this[_0xeb7d('0x11d')](_0x707dff[_0xeb7d('0xf8')]),_0x707dff['attributes']=_0x707dff['attributes']['filter'](_0x2ec94f=>!_0x2ec94f[0x0][_0xeb7d('0x101')]('data-revision-')));}),_0x2ae939;}async[_0xeb7d('0x114')](_0x155f01,_0x23ef90,_0x58f864=!0x1){if(!this[_0xeb7d('0x9')])return;const _0x1b6fb6=this[_0xeb7d('0xb5')],_0x183a88=this[_0xeb7d('0x25')],_0x5cc62b=_0xeb7d('0x63')==typeof _0x155f01?_0x183a88[_0xeb7d('0x96')](_0x155f01):_0x155f01,_0x5ef1d9='string'==typeof _0x23ef90?_0x183a88[_0xeb7d('0x96')](_0x23ef90):_0x23ef90,_0x1368cc=_0x5cc62b['id'],_0x553fb2=_0x5ef1d9?_0x5ef1d9['id']:null;if(!_0x58f864&&this[_0xeb7d('0xb5')]&&this['diff'][_0xeb7d('0x52')]===_0x1368cc&&this['diff'][_0xeb7d('0x7')]===_0x553fb2)return Promise[_0xeb7d('0xbb')]();this[_0xeb7d('0x72')]=!0x1,this[_0xeb7d('0x29')]=null,this[_0xeb7d('0xd9')]=null,this[_0xeb7d('0xb5')]=new _0x5892e4(_0x1368cc,_0x553fb2);const _0x55b112=this[_0xeb7d('0xa8')](_0x5cc62b,_0x5ef1d9,!0x0)[_0xeb7d('0x4a')](_0xe32b75=>this['loadRevisionData'](_0xe32b75));return _0x55b112[_0xeb7d('0x105')](new Promise(_0x1ca307=>{setTimeout(_0x1ca307,0x14);})),Promise[_0xeb7d('0x35')](_0x55b112)[_0xeb7d('0x79')](()=>{if(!this[_0xeb7d('0x9')])return;this[_0xeb7d('0xc7')]();const _0x11a9c7=this[_0xeb7d('0x111')](_0x1368cc,_0x553fb2);for(const _0x2b4092 of _0x11a9c7[_0xeb7d('0x53')])this[_0xeb7d('0x85')]['set'](_0x2b4092['id'],_0x2b4092);this[_0xeb7d('0xed')][_0xeb7d('0x7e')][_0xeb7d('0xf5')]({'isUndoable':!0x1},_0x549a6c=>{for(const _0x4a613a of this[_0xeb7d('0xed')]['model'][_0xeb7d('0x115')][_0xeb7d('0xf')]())_0x549a6c['detachRoot'](_0x4a613a);for(const _0x759103 of Object['keys'](_0x11a9c7[_0xeb7d('0x7e')])){const _0x4541ee=_0x549a6c[_0xeb7d('0x21')](_0x759103);for(const _0x13aa33 of Object[_0xeb7d('0xa5')](_0x11a9c7['attributes'][_0x759103]))_0x549a6c[_0xeb7d('0x42')](_0x13aa33,_0x11a9c7[_0xeb7d('0xa4')][_0x759103][_0x13aa33],_0x4541ee);_0x549a6c[_0xeb7d('0x119')](_0x11a9c7['model'][_0x759103],_0x4541ee,0x0);}}),this[_0xeb7d('0xb5')][_0xeb7d('0x7f')](this[_0xeb7d('0x7a')](_0x11a9c7[_0xeb7d('0x53')])),this[_0xeb7d('0x72')]=!0x0;})[_0xeb7d('0x1f')](_0x3df7ce=>{console[_0xeb7d('0x94')](_0x3df7ce),this['_cleanUp'](),_0x1b6fb6&&(this[_0xeb7d('0xb5')]=_0x1b6fb6),this['isReady']=!0x0;});}[_0xeb7d('0x6')](_0x3657c7,_0x4d5b93){const _0x53a07c=this[_0xeb7d('0x25')][_0xeb7d('0x10a')](_0x3657c7);return _0x53a07c['on']('_update',(_0x48859d,_0x494d47,_0x2f63fd)=>_0x4d5b93(_0x494d47,_0x2f63fd,_0x53a07c)),this[_0xeb7d('0x25')][_0xeb7d('0x15')](_0x53a07c),_0x53a07c;}[_0xeb7d('0xbd')](_0x5e49f8){if(!_0x5e49f8||_0x5e49f8[_0xeb7d('0x8b')])return Promise[_0xeb7d('0xbb')]();{const _0x3a2493=this[_0xeb7d('0xed')]['config'][_0xeb7d('0x1b')]('collaboration.channelId');return this[_0xeb7d('0x36')]['getRevision']({'channelId':_0x3a2493,'revisionId':_0x5e49f8['id']})[_0xeb7d('0x79')](_0x3c602a=>{_0x5e49f8[_0xeb7d('0xb2')]({'diffData':_0x3c602a[_0xeb7d('0x8b')]},!0x0);});}}[_0xeb7d('0xc7')](){this['activeChange']=null,this[_0xeb7d('0x88')](),this[_0xeb7d('0x112')]&&this[_0xeb7d('0x112')][_0xeb7d('0xbf')](),this['_changeView']=null,this[_0xeb7d('0x85')][_0xeb7d('0x109')](),this[_0xeb7d('0xed')][_0xeb7d('0x7e')]['enqueueChange']({'isUndoable':!0x1},_0x1153da=>{for(const _0x2aeeca of this[_0xeb7d('0xed')][_0xeb7d('0x7e')]['document'][_0xeb7d('0xf')]())_0x1153da['detachRoot'](_0x2aeeca);});}['_sortAndFilterDiffChanges'](_0x591ba8){const _0x4612ff=[],_0x355cb2=new Map();for(const _0x11110e of this['editor'][_0xeb7d('0x7e')][_0xeb7d('0x115')]['getRootNames']()){const _0x3b7372=this[_0xeb7d('0xed')][_0xeb7d('0x113')][_0xeb7d('0x4')][_0xeb7d('0xc3')](_0x11110e);if(!_0x3b7372)continue;const _0x125bca=_0x3b7372['getClientRects']()[_0xeb7d('0x103')](0x0);_0x125bca&&(_0x4612ff[_0xeb7d('0x105')](_0x11110e),_0x355cb2['set'](_0x11110e,_0x125bca));}return _0x4612ff[_0xeb7d('0x6a')]((_0x1586dc,_0x405746)=>{const _0x449b4d=_0x355cb2[_0xeb7d('0x1b')](_0x1586dc),_0x2d1abe=_0x355cb2[_0xeb7d('0x1b')](_0x405746);return _0x449b4d['y']-_0x2d1abe['y']||_0x449b4d['x']-_0x2d1abe['x'];}),(_0x591ba8=_0x591ba8[_0xeb7d('0x54')](_0x29c154=>_0x4612ff[_0xeb7d('0xd8')](_0x29c154[_0xeb7d('0x9c')])))['sort']((_0x955718,_0x1e6e7e)=>_0x4612ff[_0xeb7d('0xff')](_0x955718['rootName'])-_0x4612ff[_0xeb7d('0xff')](_0x1e6e7e['rootName'])),_0x591ba8;}[_0xeb7d('0x40')](_0x6ebd23){const _0x846290=Array['from'](_0x6ebd23[_0xeb7d('0x10e')])[_0xeb7d('0x54')](([_0x865fe4,_0x18221f])=>_0x865fe4[_0xeb7d('0x101')](_0xeb7d('0xc6'))&&!_0x18221f[_0xeb7d('0xd6')]),_0x1f8613=Array[_0xeb7d('0x102')](this['editor']['model'][_0xeb7d('0x19')](_0x6ebd23)[_0xeb7d('0xcb')]({'singleCharacters':!0x0}));if(0x0!=_0x846290[_0xeb7d('0x8')])for(const _0x4277e1 of _0x1f8613){const [_0x5196f7,_0x4a10c7]=_0x846290[0x0],[,_0x2a8f88,_0x11c034]=_0x5196f7[_0xeb7d('0x2d')](':');if(_0x4a10c7['end'][_0xeb7d('0x9b')](_0x4277e1[_0xeb7d('0x2')])&&_0x846290[_0xeb7d('0x106')](),(_0x4277e1['previousPosition'][_0xeb7d('0x9b')](_0x4a10c7[_0xeb7d('0x49')])||_0x4277e1[_0xeb7d('0x51')][_0xeb7d('0xa6')](_0x4a10c7[_0xeb7d('0x49')]))&&(_0xeb7d('0xca')==_0x2a8f88?_0x4277e1[_0xeb7d('0x11f')]={'userId':_0x11c034}:_0xeb7d('0xb3')==_0x2a8f88&&(_0x4277e1[_0xeb7d('0x34')]={'userId':_0x11c034})),0x0==_0x846290[_0xeb7d('0x8')])break;}return _0x1f8613;}[_0xeb7d('0x107')](_0x36a175){const _0x5863ea=new Map();for(let _0x47a0b1=0x0;_0x47a0b1<_0x36a175[_0xeb7d('0x8')];_0x47a0b1++)_0xeb7d('0xfb')===_0x36a175[_0x47a0b1][_0xeb7d('0x1d')]?(_0x36a175[_0x47a0b1]['item'][_0xeb7d('0xfa')]=_0x47a0b1,_0x36a175[_0x47a0b1][_0xeb7d('0x103')]['endIndex']=_0x47a0b1):(_0xeb7d('0x6f')===_0x36a175[_0x47a0b1][_0xeb7d('0x1d')]?_0x36a175[_0x47a0b1]['item'][_0xeb7d('0xfa')]=_0x47a0b1:'elementEnd'===_0x36a175[_0x47a0b1][_0xeb7d('0x1d')]&&(_0x36a175[_0x47a0b1][_0xeb7d('0x103')][_0xeb7d('0x73')]=_0x47a0b1),_0x5863ea[_0xeb7d('0xf4')](_0x36a175[_0x47a0b1]['id'],_0x47a0b1));for(const _0x45eecd of _0x5863ea[_0xeb7d('0xb')]())'elementStart'===_0x36a175[_0x45eecd]['type']?_0x36a175[_0x45eecd][_0xeb7d('0x103')][_0xeb7d('0x73')]=_0x5863ea[_0xeb7d('0x1b')](_0x36a175[_0x45eecd][_0xeb7d('0xe7')]):_0xeb7d('0xac')===_0x36a175[_0x45eecd][_0xeb7d('0x1d')]&&(_0x36a175[_0x45eecd][_0xeb7d('0x103')][_0xeb7d('0xfa')]=_0x5863ea['get'](_0x36a175[_0x45eecd]['pairId']));}[_0xeb7d('0x4c')](_0x17b81d){for(let _0x49a294=0x0;_0x49a294<_0x17b81d['length'];_0x49a294++){if('elementStart'===_0x17b81d[_0x49a294]['type'])_0x17b81d[_0x49a294][_0xeb7d('0x103')][_0xeb7d('0xfa')]=_0x49a294;else{if(_0xeb7d('0xac')===_0x17b81d[_0x49a294][_0xeb7d('0x1d')]){_0x17b81d[_0x49a294]['item']['endIndex']=_0x49a294;const _0x2d598d=_0x17b81d[_0x49a294]['item'][_0xeb7d('0xfa')];_0x17b81d[_0x2d598d][_0xeb7d('0xe7')]=_0x17b81d[_0x49a294]['id'],_0x17b81d[_0x49a294][_0xeb7d('0xe7')]=_0x17b81d[_0x2d598d]['id'];}else _0x17b81d[_0x49a294][_0xeb7d('0x103')][_0xeb7d('0xfa')]=_0x49a294,_0x17b81d[_0x49a294][_0xeb7d('0x103')][_0xeb7d('0x73')]=_0x49a294,_0x17b81d[_0x49a294][_0xeb7d('0xe7')]=null;}_0x17b81d[_0x49a294][_0xeb7d('0x9e')]||(_0x17b81d[_0x49a294][_0xeb7d('0x9e')]=[],_0x17b81d[_0x49a294][_0xeb7d('0x55')]=[]);}}[_0xeb7d('0x3c')](_0x3dd355,_0x4a6270){const _0x26a7f6=_0x3dd355[_0xeb7d('0x54')](_0xe70ffb=>!_0xe70ffb[_0xeb7d('0x11f')]);for(let _0x1f1f2f=0x0;_0x1f1f2f<_0x4a6270['length'];_0x1f1f2f++)_0x4a6270[_0x1f1f2f][_0xeb7d('0x11f')]&&(_0x26a7f6[_0x1f1f2f]['isAdded']=_0x4a6270[_0x1f1f2f][_0xeb7d('0x11f')]);}[_0xeb7d('0x20')](_0x2551d7){const _0x439b13=JSON[_0xeb7d('0xb4')](_0x2551d7),_0x1430ac=this['editor']['editing'][_0xeb7d('0x4')][_0xeb7d('0x115')],_0x1588be=new _0x387dcb(_0x1430ac,_0x439b13[_0xeb7d('0x4a')](_0x420785=>this[_0xeb7d('0x104')](_0x420785)));return this[_0xeb7d('0xed')][_0xeb7d('0xba')][_0xeb7d('0x8d')](_0x1588be);}[_0xeb7d('0x104')](_0x575382){const _0x4e081d=this[_0xeb7d('0xed')][_0xeb7d('0x113')][_0xeb7d('0x4')][_0xeb7d('0x115')];if(_0xeb7d('0x63')==typeof _0x575382)return new _0x2d39e5(_0x4e081d,_0x575382);{const _0x58ebed=_0x575382[_0xeb7d('0xf8')][_0xeb7d('0x4a')](_0x5a1907=>this['_getViewObj'](_0x5a1907));return new(tt[_0x575382[(_0xeb7d('0x1d'))]]||_0x15953e)(_0x4e081d,_0x575382[_0xeb7d('0x74')],_0x575382[_0xeb7d('0xa4')],_0x58ebed);}}[_0xeb7d('0x111')](_0x55e462,_0x11d526=null){const _0x17451f=this[_0xeb7d('0x25')][_0xeb7d('0x96')](_0x55e462),_0x5a5c5d=_0x11d526?this['repository'][_0xeb7d('0x96')](_0x11d526):null,_0x1d823c=this[_0xeb7d('0xa8')](_0x17451f,_0x5a5c5d),_0x5856f7=_0x1d823c[_0x1d823c[_0xeb7d('0x8')]-0x1],_0x155da4=new Map(),_0xc26316={'model':{},'attributes':{},'changes':[]},_0x377040=new Set(),_0x264057=new Map();for(let _0x167150=_0x1d823c['length']-0x1;_0x167150>=0x0;_0x167150--){const _0x5973c6=_0x1d823c[_0x167150];for(const _0x162201 of Object[_0xeb7d('0xa5')](_0x5973c6[_0xeb7d('0x8b')]))if(_0x5973c6[_0xeb7d('0x8b')][_0x162201]['attachChange']){const _0x326d95=_0x5973c6[_0xeb7d('0x8b')][_0x162201]['attachChange'];_0x326d95['isAttached']?(_0x377040[_0xeb7d('0x48')](_0x162201),_0x264057[_0xeb7d('0x30')](_0x162201)&&_0x264057['get'](_0x162201)[_0xeb7d('0x10')]==_0x326d95[_0xeb7d('0x10')]?_0x264057[_0xeb7d('0x24')](_0x162201):_0x264057[_0xeb7d('0xf4')](_0x162201,_0x326d95)):_0x264057['has'](_0x162201)?(_0x377040[_0xeb7d('0x24')](_0x162201),_0x264057[_0xeb7d('0x24')](_0x162201)):(_0x377040[_0xeb7d('0x48')](_0x162201),_0x264057[_0xeb7d('0xf4')](_0x162201,_0x326d95));}else _0x377040[_0xeb7d('0x48')](_0x162201);}for(const _0x2721ec of _0x377040){const _0x3f5071=_0x264057['has'](_0x2721ec)&&!_0x264057['get'](_0x2721ec)[_0xeb7d('0x2e')];let _0x7a4625=_0x3f5071?_0x1d823c[_0xeb7d('0x8')]-0x1:0x0;const _0x1a6957=_0x3f5071?-0x1:0x1;for(;_0x1d823c[_0x7a4625];){const _0x10eede=_0x1d823c[_0x7a4625];if(_0x10eede[_0xeb7d('0x8b')][_0x2721ec]){const _0x44b669=_0x3f5071?_0x10eede[_0xeb7d('0x8b')][_0x2721ec][_0xeb7d('0xf9')]:_0x10eede['diffData'][_0x2721ec][_0xeb7d('0xc')];_0xc26316[_0xeb7d('0xa4')][_0x2721ec]=_0x44b669?_0x440dc(_0x44b669):{};break;}_0x7a4625+=_0x1a6957;}}for(const _0x4bdecb of _0x1d823c){_0x4bdecb['model']={};for(const _0x57020c of _0x4bdecb[_0xeb7d('0xb0')])_0x155da4['set'](_0x57020c['id'],_0x57020c);for(const _0x26c83a of _0x377040){const _0x2ccf5e=_0x4bdecb[_0xeb7d('0x8b')][_0x26c83a]?_0x4bdecb['diffData'][_0x26c83a][_0xeb7d('0xb6')]:'[]',_0x1fed82=_0x4bdecb['diffData'][_0x26c83a]?_0x4bdecb[_0xeb7d('0x8b')][_0x26c83a][_0xeb7d('0x99')]:'[]';_0x4bdecb[_0xeb7d('0x7e')][_0x26c83a]={'insertions':this[_0xeb7d('0x20')](_0x2ccf5e),'deletions':this[_0xeb7d('0x20')](_0x1fed82)};}}for(const _0x2496f0 of _0x377040){let _0x1c19bc=null,_0x1811f5=0x0;const _0x17e070=new Map(Array[_0xeb7d('0x102')](_0x17451f[_0xeb7d('0x7e')][_0x2496f0][_0xeb7d('0xb6')][_0xeb7d('0x10e')])[_0xeb7d('0x54')](([_0x1f7e08])=>!_0x1f7e08[_0xeb7d('0x101')](_0xeb7d('0xc6'))));let _0x34e9bd=0x0;for(const _0x56fa0a of _0x1d823c){const _0x1e4196=this[_0xeb7d('0x40')](_0x56fa0a[_0xeb7d('0x7e')][_0x2496f0][_0xeb7d('0xb6')]);_0x56fa0a==_0x17451f?(_0x1c19bc=_0x1e4196,_0x1811f5=_0x1c19bc['length'],_0x1c19bc['forEach'](_0x25f5d6=>{_0x25f5d6['id']=_0x34e9bd++;}),this['_processTape'](_0x1c19bc)):this['_markInsertions'](_0x1c19bc,_0x1e4196);const _0x1fb037=_0x1c19bc['filter'](_0x658c6c=>!_0x658c6c[_0xeb7d('0x11f')])[_0xeb7d('0x4a')](_0xe9a01=>_0xe9a01['id']);let _0xd76c53=0x0;const _0x5d4ff5=this[_0xeb7d('0x40')](_0x56fa0a['model'][_0x2496f0][_0xeb7d('0x99')]);_0x5d4ff5['forEach'](_0x2239f3=>{_0x2239f3[_0xeb7d('0x34')]?_0x2239f3['id']=_0x1811f5++:_0x2239f3['id']=_0x1fb037[_0xd76c53++];}),this['_processTape'](_0x5d4ff5),this['_setDistance'](_0x1c19bc,_0xeb7d('0x11f')),this[_0xeb7d('0x10b')](_0x5d4ff5,_0xeb7d('0x34')),_0x56fa0a==_0x17451f&&this['_markMarkers'](_0x1c19bc,_0x17e070),_0x1c19bc=this['_joinTapes'](_0x1c19bc,_0x5d4ff5),this[_0xeb7d('0x107')](_0x1c19bc),this[_0xeb7d('0x10b')](_0x1c19bc,_0xeb7d('0x34'));}_0x1c19bc=_0x1c19bc[_0xeb7d('0x54')](_0x39687c=>!(_0x39687c[_0xeb7d('0x11f')]&&_0x39687c[_0xeb7d('0x34')]));const _0x498167=new Map(_0x5856f7[_0xeb7d('0x7e')][_0x2496f0][_0xeb7d('0x99')]['markers']),_0x52cb3d=new Set(_0x17e070[_0xeb7d('0xa5')]());for(const _0x313085 of _0x498167[_0xeb7d('0xa5')]())_0x52cb3d[_0xeb7d('0x24')](_0x313085);this['_markSuggestions'](_0x1c19bc,_0x52cb3d),this[_0xeb7d('0x28')](_0x1c19bc),_0x1c19bc=this[_0xeb7d('0xd4')](_0x1c19bc),_0x1c19bc=this['_markMismatchedRemovedTags'](_0x1c19bc),_0x1c19bc=this[_0xeb7d('0x5a')](_0x1c19bc);const {root:_0x5e9615,changes:_0x2abe25}=this[_0xeb7d('0x89')](_0x1c19bc,_0x155da4,_0x2496f0);_0xc26316['model'][_0x2496f0]=_0x5e9615;const _0x58eaf0=_0x264057['get'](_0x2496f0);if(_0x58eaf0){const _0x261f09=_0x155da4[_0xeb7d('0x1b')](_0x58eaf0[_0xeb7d('0x10')]),_0x350fcb=new _0x3bc349({'author':_0x261f09,'type':_0x58eaf0[_0xeb7d('0x2e')]?_0xeb7d('0x48'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2496f0});_0x2abe25[_0xeb7d('0xfd')](_0x350fcb),_0xc26316[_0xeb7d('0xa4')][_0x2496f0][_0xeb7d('0x10d')]=_0x350fcb['id'];}_0xc26316[_0xeb7d('0x53')]=_0xc26316[_0xeb7d('0x53')][_0xeb7d('0x27')](_0x2abe25);}return _0xc26316;}[_0xeb7d('0x118')](_0xbf3747,_0x5460ed){for(let _0x731075=0x0;_0x731075<_0xbf3747[_0xeb7d('0x8')];_0x731075++)for(const [_0x216e37,_0x4283d5]of _0x5460ed)_0x4283d5[_0xeb7d('0x49')]['isEqual'](_0xbf3747[_0x731075][_0xeb7d('0x51')])&&_0xbf3747[_0x731075][_0xeb7d('0x9e')][_0xeb7d('0x105')](_0x216e37),_0x4283d5[_0xeb7d('0x90')][_0xeb7d('0x9b')](_0xbf3747[_0x731075]['nextPosition'])&&_0xbf3747[_0x731075][_0xeb7d('0x55')][_0xeb7d('0x105')](_0x216e37);}['_joinTapes'](_0x50f4cc,_0x9f5eec){let _0x51990c=[],_0x273c13=0x0,_0x21cec1=0x0;for(;_0x273c13<_0x50f4cc[_0xeb7d('0x8')]||_0x21cec1<_0x9f5eec[_0xeb7d('0x8')];){const _0x5156e7=_0x50f4cc[_0x273c13]||{},_0x424f42=_0x9f5eec[_0x21cec1]||{};if(_0x5156e7['id']==_0x424f42['id'])_0x273c13++,_0x21cec1++,_0x51990c['push'](_0x5156e7);else{if(_0x424f42[_0xeb7d('0x34')]&&_0x5156e7[_0xeb7d('0x11f')]){const {commonTape:_0xe6fb82,iEnd:_0x758cf9,jEnd:_0x392325}=this['_threeWayMerge'](_0x50f4cc,_0x273c13,_0x9f5eec,_0x21cec1);_0x51990c=_0x51990c[_0xeb7d('0x27')](_0xe6fb82),_0x273c13=_0x758cf9,_0x21cec1=_0x392325;}else _0x424f42['isRemoved']?(_0x21cec1++,_0x51990c[_0xeb7d('0x105')](_0x424f42)):(_0x273c13++,_0x51990c['push'](_0x5156e7));}}return _0x51990c;}[_0xeb7d('0xbe')](_0x287d00,_0x105c0c){const _0x1d620a=[];for(let _0x1d9663=0x0;_0x1d9663<_0x287d00[_0xeb7d('0x8')];_0x1d9663++){for(let _0x2ee4cb=0x0;_0x2ee4cb<_0x287d00[_0x1d9663][_0xeb7d('0x9e')][_0xeb7d('0x8')];_0x2ee4cb++){const _0x120083=_0x287d00[_0x1d9663][_0xeb7d('0x9e')][_0x2ee4cb];if(!_0x105c0c[_0xeb7d('0x30')](_0x120083))continue;const {group:_0x1809f8,type:_0x4923a7,authorId:_0x54b72b}=_0x5ceaf3(_0x120083);_0xeb7d('0x7d')!=_0x1809f8||_0xeb7d('0xca')!=_0x4923a7&&_0xeb7d('0xb3')!=_0x4923a7||(_0x1d620a[_0xeb7d('0xfd')]({'type':_0x4923a7,'name':_0x120083,'userId':_0x54b72b}),_0x287d00[_0x1d9663][_0xeb7d('0x9e')][_0xeb7d('0x9d')](_0x2ee4cb,0x1),_0x2ee4cb--);}_0xe54f1e(_0x287d00[_0x1d9663]);for(let _0x10c186=0x0;_0x10c186<_0x287d00[_0x1d9663][_0xeb7d('0x55')]['length'];_0x10c186++){const _0x3e13a4=_0x287d00[_0x1d9663]['markersEnd'][_0x10c186];if(!_0x105c0c[_0xeb7d('0x30')](_0x3e13a4))continue;const {group:_0x293039,type:_0x51db0b}=_0x5ceaf3(_0x3e13a4);if(_0xeb7d('0x7d')!=_0x293039||_0xeb7d('0xca')!=_0x51db0b&&_0xeb7d('0xb3')!=_0x51db0b)continue;_0x287d00[_0x1d9663][_0xeb7d('0x55')]['splice'](_0x10c186,0x1),_0x10c186--;const _0x34db97=_0x1d620a[_0xeb7d('0x83')](_0x41cb28=>_0x41cb28['name']==_0x3e13a4);_0x34db97>-0x1&&_0x1d620a[_0xeb7d('0x9d')](_0x34db97,0x1);}}function _0x5ceaf3(_0x27e9be){const _0x470661=_0x27e9be[_0xeb7d('0x2d')](':');return{'group':_0x470661[0x0],'type':_0x470661[0x1],'subType':_0x470661[_0xeb7d('0x8')]>=0x5?_0x470661[0x2]:null,'id':_0x470661[_0xeb7d('0x8')]<0x5?_0x470661[0x2]:_0x470661[0x3],'authorId':_0x470661[_0xeb7d('0x8')]<0x5?_0x470661[0x3]:_0x470661[0x4],'markerCount':0x6==_0x470661[_0xeb7d('0x8')]?_0x470661[0x5]:null};}function _0xe54f1e(_0x51e9f0){for(let _0x1e518=0x0;_0x1e518<_0x1d620a[_0xeb7d('0x8')];_0x1e518++){if(_0x51e9f0[_0xeb7d('0x11f')]&&_0xeb7d('0xca')==_0x1d620a[_0x1e518]['type'])return _0x51e9f0[_0xeb7d('0x65')]=_0x1d620a[_0x1e518],void delete _0x51e9f0[_0xeb7d('0x11f')];if(!_0x51e9f0[_0xeb7d('0x11f')]&&!_0x51e9f0[_0xeb7d('0x34')]&&_0xeb7d('0xb3')==_0x1d620a[_0x1e518][_0xeb7d('0x1d')])return void(_0x51e9f0[_0xeb7d('0x3d')]=_0x1d620a[_0x1e518]);}}}[_0xeb7d('0x10b')](_0x512817,_0x7fef51){let _0x4b9989=0x0,_0x3bea33=!0x1;const _0x50ca39=new Map();for(const _0x53a32d of _0x512817)_0x53a32d[_0x7fef51]?_0x3bea33&&(_0x4b9989++,_0x3bea33=!0x1):(_0x4b9989++,_0x3bea33=!0x0),_0x50ca39['set'](_0x53a32d['id'],_0x4b9989);for(let _0x3d2967=0x0;_0x3d2967<_0x512817[_0xeb7d('0x8')];_0x3d2967++){if(_0xeb7d('0x34')==_0x7fef51&&_0x512817[_0x3d2967][_0xeb7d('0x11f')]||'isAdded'==_0x7fef51&&_0x512817[_0x3d2967]['isRemoved'])continue;if('text'==_0x512817[_0x3d2967][_0xeb7d('0x1d')]){_0x512817[_0x3d2967][_0xeb7d('0xe')]=0x0;continue;}const _0x3a20e1=_0x50ca39['get'](_0x512817[_0x3d2967][_0xeb7d('0xe7')]),_0x1ac8b3=_0x50ca39[_0xeb7d('0x1b')](_0x512817[_0x3d2967]['id']);_0x512817[_0x3d2967][_0xeb7d('0xe')]=_0x3a20e1-_0x1ac8b3;}}[_0xeb7d('0xa8')](_0x38dcc2,_0x436ded,_0x36535d=!0x1){const _0x534f87=[];let _0x2cea3e=this[_0xeb7d('0x25')][_0xeb7d('0xcd')](_0x38dcc2),_0x351e36=this[_0xeb7d('0x25')][_0xeb7d('0xcd')](_0x436ded);for(-0x1==_0x351e36&&(_0x351e36=this[_0xeb7d('0x25')][_0xeb7d('0xaa')]['length'],_0x36535d=!0x1);_0x2cea3e<_0x351e36;)_0x534f87['push'](this['repository'][_0xeb7d('0x96')](_0x2cea3e)),_0x2cea3e++;return _0x36535d&&_0x534f87[_0xeb7d('0x105')](this[_0xeb7d('0x25')]['getRevision'](_0x2cea3e)),_0x534f87;}[_0xeb7d('0xec')](_0x314243,_0x58cdf8,_0x4e08b1,_0x24f1e9){const _0x1b22c7=this[_0xeb7d('0xed')]['model'][_0xeb7d('0xe1')];let _0x461084=_0x58cdf8;for(;_0x314243[_0x461084]&&_0x314243[_0x461084][_0xeb7d('0x11f')];)_0x461084++;let _0x587bf7=_0x24f1e9;for(;_0x4e08b1[_0x587bf7]&&_0x4e08b1[_0x587bf7][_0xeb7d('0x34')];)_0x587bf7++;_0x3fc954(_0x314243,_0x58cdf8,_0x461084),_0x3fc954(_0x4e08b1,_0x24f1e9,_0x587bf7);const _0x124d56=_0x4e08b1[_0xeb7d('0x1c')](_0x24f1e9,_0x587bf7)[_0xeb7d('0x27')](_0x314243[_0xeb7d('0x1c')](_0x58cdf8,_0x461084));return _0x124d56[_0xeb7d('0x6a')]((_0x21ad58,_0x31b838)=>_0x21ad58[_0xeb7d('0x10f')]!=_0x31b838[_0xeb7d('0x10f')]?_0x21ad58[_0xeb7d('0x10f')]-_0x31b838[_0xeb7d('0x10f')]:_0x21ad58[_0xeb7d('0xc8')]!=_0x31b838['level']?_0x21ad58[_0xeb7d('0xc8')]-_0x31b838[_0xeb7d('0xc8')]:_0x21ad58[_0xeb7d('0xe')]!=_0x31b838['distance']?_0x31b838[_0xeb7d('0xe')]-_0x21ad58[_0xeb7d('0xe')]:!!_0x21ad58[_0xeb7d('0x11f')]!=!!_0x31b838['isAdded']?-0x1==_0x21ad58[_0xeb7d('0x10f')]||0x0==_0x21ad58['side']?_0x21ad58[_0xeb7d('0x11f')]?-0x1:0x1:_0x21ad58['isAdded']?0x1:-0x1:_0x21ad58[_0xeb7d('0xad')]-_0x31b838['index']),{'commonTape':_0x124d56,'iEnd':_0x461084,'jEnd':_0x587bf7};function _0x3fc954(_0x2984e6,_0x2e9de3,_0x3c3a03){let _0x861b61=-0x1,_0x1ad5cc=Number[_0xeb7d('0xa2')],_0x19869b=!0x0;for(let _0x1657c4=_0x2e9de3;_0x1657c4<_0x3c3a03;_0x1657c4++)if(_0x1b22c7[_0xeb7d('0x6b')](_0x2984e6[_0x1657c4]['item'])||(_0x19869b=!0x1),_0x2984e6[_0x1657c4]['item'][_0xeb7d('0xfa')]<_0x2e9de3&&(_0x861b61=_0x1657c4),_0x2984e6[_0x1657c4]['item']['endIndex']>=_0x3c3a03){_0x1ad5cc=_0x1657c4;break;}_0x19869b&&(_0x861b61=_0x3c3a03-0x1);for(let _0x33ab9a=_0x2e9de3;_0x33ab9a<_0x3c3a03;_0x33ab9a++)_0x2984e6[_0x33ab9a]['side']=_0x33ab9a<=_0x861b61?-0x1:_0x33ab9a<_0x1ad5cc?0x0:0x1,_0x2984e6[_0x33ab9a]['index']=_0x33ab9a;let _0x7b9212=0x0;for(let _0x2d4df5=_0x2e9de3;_0x2d4df5<=_0x861b61;_0x2d4df5++)0x0==_0x2984e6[_0x2d4df5][_0xeb7d('0xe')]?_0x2984e6[_0x2d4df5]['level']=_0x7b9212:(_0x7b9212++,_0x2984e6[_0x2d4df5][_0xeb7d('0xc8')]=_0x7b9212,_0x7b9212++);for(let _0x2d55a2=_0x2e9de3;_0x2d55a2<_0x3c3a03;_0x2d55a2++)0x0==_0x2984e6[_0x2d55a2]['side']&&(_0x2984e6[_0x2d55a2][_0xeb7d('0xc8')]=_0x7b9212);_0x7b9212=0x0;for(let _0x21e7e2=_0x3c3a03-0x1;_0x21e7e2>=_0x1ad5cc;_0x21e7e2--)0x0==_0x2984e6[_0x21e7e2][_0xeb7d('0xe')]?_0x2984e6[_0x21e7e2][_0xeb7d('0xc8')]=_0x7b9212:(_0x7b9212--,_0x2984e6[_0x21e7e2][_0xeb7d('0xc8')]=_0x7b9212,_0x7b9212--);}}[_0xeb7d('0x28')](_0x151c47){const _0x285047=new Map(),_0x13d990=this[_0xeb7d('0xed')][_0xeb7d('0x7e')][_0xeb7d('0xe1')];for(let _0x314d64=0x1;_0x314d64<_0x151c47[_0xeb7d('0x8')];_0x314d64++){let _0x3d5996,_0x10bfc6,_0xf3e637;const _0x456e40=_0x151c47[_0x314d64],_0x58e304=_0x151c47[_0x314d64-0x1];if(_0xeb7d('0xfb')==_0x456e40[_0xeb7d('0x1d')])continue;if(_0x456e40['type']!=_0x58e304[_0xeb7d('0x1d')])continue;if(!_0x13d990['isBlock'](_0x58e304[_0xeb7d('0x103')])||_0x13d990[_0xeb7d('0xef')](_0x58e304['item']))continue;if(!_0x13d990[_0xeb7d('0x116')](_0x456e40['item'])||_0x13d990[_0xeb7d('0xef')](_0x456e40[_0xeb7d('0x103')]))continue;if((_0x151c47[_0x314d64]['isAdded']||_0x151c47[_0x314d64][_0xeb7d('0x65')])&&_0x151c47[_0x314d64-0x1]['isRemoved'])_0x3d5996=_0x151c47[_0x314d64],_0x10bfc6=_0x151c47[_0x314d64-0x1],_0xf3e637=_0x314d64-0x1;else{if(!_0x151c47[_0x314d64][_0xeb7d('0x34')]||!_0x151c47[_0x314d64-0x1][_0xeb7d('0x11f')]&&!_0x151c47[_0x314d64-0x1][_0xeb7d('0x65')])continue;_0x3d5996=_0x151c47[_0x314d64-0x1],_0x10bfc6=_0x151c47[_0x314d64],_0xf3e637=_0x314d64;}const _0x1c94cc=_0x3d5996['level']==_0x10bfc6[_0xeb7d('0xc8')],_0x55f791=Math['abs'](_0x3d5996[_0xeb7d('0xc8')])<Math[_0xeb7d('0x4f')](_0x10bfc6[_0xeb7d('0xc8')])&&0x0==_0x10bfc6[_0xeb7d('0xe')];(_0x1c94cc||_0x55f791)&&(_0x285047[_0xeb7d('0xf4')](_0x10bfc6['id'],_0x3d5996['id']),_0x151c47['splice'](_0xf3e637,0x1),_0x314d64--,_0x3d5996['isAdded']=!0x1);}for(let _0x1e493a=0x0;_0x1e493a<_0x151c47[_0xeb7d('0x8')];_0x1e493a++)_0x285047[_0xeb7d('0x30')](_0x151c47[_0x1e493a][_0xeb7d('0xe7')])&&(_0x151c47[_0x1e493a]['pairId']=_0x285047[_0xeb7d('0x1b')](_0x151c47[_0x1e493a][_0xeb7d('0xe7')]));}[_0xeb7d('0xd4')](_0x3073af){const _0x1ba6c3=new Set(_0x3073af[_0xeb7d('0x4a')](_0x30db30=>_0x30db30['id']));for(let _0x5766a7=0x0;_0x5766a7<_0x3073af['length'];_0x5766a7++)_0x1ba6c3[_0xeb7d('0x30')](_0x3073af[_0x5766a7][_0xeb7d('0xe7')])||0x0==_0x3073af[_0x5766a7][_0xeb7d('0xe')]||(_0x3073af[_0x5766a7]['isIncorrect']=!0x0);return _0x3073af[_0xeb7d('0x54')](_0xa7b5c1=>!_0xa7b5c1[_0xeb7d('0x5c')]);}[_0xeb7d('0x69')](_0x14ab67){const _0x184bed=new Set();for(let _0x51b7e4=0x0;_0x51b7e4<_0x14ab67['length'];_0x51b7e4++){if(_0x184bed['has'](_0x14ab67[_0x51b7e4]['id'])&&_0x14ab67[_0x51b7e4][_0xeb7d('0x34')]&&(_0x14ab67[_0x51b7e4][_0xeb7d('0x5c')]=!0x0),_0x14ab67[_0x51b7e4][_0xeb7d('0x5c')])continue;if(0x0==_0x14ab67[_0x51b7e4][_0xeb7d('0xe')])continue;if(_0xeb7d('0x6f')!=_0x14ab67[_0x51b7e4][_0xeb7d('0x1d')])continue;if(null==_0x14ab67[_0x51b7e4][_0xeb7d('0xe7')])continue;let _0x310c3c=_0x51b7e4+0x1,_0x3187c6=0x0;for(;_0x14ab67[_0x310c3c]['id']!=_0x14ab67[_0x51b7e4]['pairId'];)'elementStart'==_0x14ab67[_0x310c3c][_0xeb7d('0x1d')]?_0x3187c6++:_0xeb7d('0xac')==_0x14ab67[_0x310c3c][_0xeb7d('0x1d')]&&_0x3187c6--,_0x310c3c++;if(0x0!=_0x3187c6){if(_0x14ab67[_0x51b7e4][_0xeb7d('0x34')])_0x14ab67[_0x51b7e4][_0xeb7d('0x5c')]=!0x0;else for(;_0x310c3c!=_0x51b7e4;)_0x14ab67[_0x310c3c][_0xeb7d('0x34')]&&0x0!=_0x14ab67[_0x310c3c][_0xeb7d('0xe')]&&(_0x14ab67[_0x310c3c][_0xeb7d('0x5c')]=!0x0,_0x184bed[_0xeb7d('0x48')](_0x14ab67[_0x310c3c][_0xeb7d('0xe7')])),_0x310c3c--;}}return _0x14ab67[_0xeb7d('0x54')](_0x480fd3=>!_0x480fd3[_0xeb7d('0x5c')]);}[_0xeb7d('0x5a')](_0x10a417){const _0x788f6c=this[_0xeb7d('0xed')][_0xeb7d('0x7e')]['schema'];for(let _0x5aec29=0x0;_0x5aec29<_0x10a417[_0xeb7d('0x8')];_0x5aec29++){if(!(_0x10a417[_0x5aec29][_0xeb7d('0x11f')]||_0x10a417[_0x5aec29]['isAddSuggestion']||_0x10a417[_0x5aec29][_0xeb7d('0x34')]||_0x10a417[_0x5aec29]['isRemoveSuggestion']))continue;if(0x0==_0x10a417[_0x5aec29]['distance'])continue;const _0x21d384=_0x10a417[_0x5aec29]['item'];_0x788f6c[_0xeb7d('0x116')](_0x21d384)||_0x788f6c['isLimit'](_0x21d384)||(_0x10a417[_0x5aec29][_0xeb7d('0x11f')]&&delete _0x10a417[_0x5aec29]['isAdded'],_0x10a417[_0x5aec29]['isAddSuggestion']&&delete _0x10a417[_0x5aec29][_0xeb7d('0x65')],_0x10a417[_0x5aec29][_0xeb7d('0x3d')]&&delete _0x10a417[_0x5aec29][_0xeb7d('0x3d')],_0x10a417[_0x5aec29][_0xeb7d('0x34')]&&(_0x10a417[_0x5aec29][_0xeb7d('0x5c')]=!0x0));}return _0x10a417[_0xeb7d('0x54')](_0x100f1e=>!_0x100f1e[_0xeb7d('0x5c')]);}[_0xeb7d('0x89')](_0x40d3f7,_0x3cf644,_0x346b73){const _0x4fbeb9=new _0x5604cc(),_0x210e58=[],_0x110556=new Map(),_0x22a957=this[_0xeb7d('0xed')][_0xeb7d('0x7e')],_0x3f3aec=_0x22a957[_0xeb7d('0xe1')],_0x4677d7=[_0x4fbeb9],_0x2cfea4={},_0x264d4b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x42c9db=null;const _0x3dee38=[0x0];for(let _0x54755b=0x0;_0x54755b<_0x40d3f7[_0xeb7d('0x8')];_0x54755b++){let _0x1888e0,_0x6418cb;if('elementStart'===_0x40d3f7[_0x54755b][_0xeb7d('0x1d')]){_0x1888e0=_0x22a957[_0xeb7d('0x2b')](_0x4fbeb9,_0x3dee38);const _0x1f595e=new _0x1cc4ae(_0x40d3f7[_0x54755b]['item']['name'],_0x40d3f7[_0x54755b][_0xeb7d('0x103')]['getAttributes']());_0x4677d7[0x0][_0xeb7d('0x8e')](_0x1f595e),_0x3dee38[_0xeb7d('0x105')](0x0),_0x4677d7[_0xeb7d('0xfd')](_0x1f595e),_0x6418cb=_0x22a957['createPositionFromPath'](_0x4fbeb9,_0x3dee38),_0x42c9db=null;}else{if('elementEnd'===_0x40d3f7[_0x54755b]['type'])_0x4677d7[_0xeb7d('0x106')](),_0x1888e0=_0x22a957[_0xeb7d('0x2b')](_0x4fbeb9,_0x3dee38),_0x3dee38[_0xeb7d('0xb9')](),_0x3dee38[_0x3dee38[_0xeb7d('0x8')]-0x1]++,_0x6418cb=_0x22a957[_0xeb7d('0x2b')](_0x4fbeb9,_0x3dee38),_0x42c9db=null;else{if(_0x1888e0=_0x22a957[_0xeb7d('0x2b')](_0x4fbeb9,_0x3dee38),_0x42c9db&&_0x217cfe(_0x42c9db,_0x40d3f7[_0x54755b][_0xeb7d('0x103')]))_0x42c9db[_0xeb7d('0xd5')]+=_0x40d3f7[_0x54755b][_0xeb7d('0x103')][_0xeb7d('0xba')];else{const _0x18ef5c=new _0x3bd1f2(_0x40d3f7[_0x54755b][_0xeb7d('0x103')][_0xeb7d('0xba')],_0x40d3f7[_0x54755b][_0xeb7d('0x103')]['getAttributes']());_0x4677d7[0x0][_0xeb7d('0x8e')](_0x18ef5c),_0x42c9db=_0x18ef5c;}_0x3dee38[_0x3dee38[_0xeb7d('0x8')]-0x1]+=_0x40d3f7[_0x54755b][_0xeb7d('0x103')][_0xeb7d('0x81')],_0x6418cb=_0x22a957[_0xeb7d('0x2b')](_0x4fbeb9,_0x3dee38);}}for(const _0x195611 of _0x40d3f7[_0x54755b][_0xeb7d('0x9e')])_0x110556['set'](_0x195611,{'start':_0x1888e0,'end':null});_0x248e86(_0xeb7d('0x3d'),_0x54755b,_0x1888e0,_0x6418cb),_0x248e86(_0xeb7d('0x65'),_0x54755b,_0x1888e0,_0x6418cb),_0x248e86(_0xeb7d('0x34'),_0x54755b,_0x1888e0,_0x6418cb),_0x248e86(_0xeb7d('0x11f'),_0x54755b,_0x1888e0,_0x6418cb);for(const _0xe154b4 of _0x40d3f7[_0x54755b]['markersEnd']){_0x110556[_0xeb7d('0x1b')](_0xe154b4)[_0xeb7d('0x90')]=_0x6418cb;}}for(const [_0x37d030,_0x292153]of _0x110556){const _0x206b91=this['editor'][_0xeb7d('0x7e')][_0xeb7d('0x23')](_0x292153[_0xeb7d('0x49')],_0x292153[_0xeb7d('0x90')]);_0x4fbeb9[_0xeb7d('0x10e')][_0xeb7d('0xf4')](_0x37d030,_0x206b91);}return _0x210e58['sort']((_0x1c3761,_0x51f98f)=>{const _0x13da5e=_0x4fbeb9['markers'][_0xeb7d('0x1b')](_0xeb7d('0xc6')+_0x1c3761['id']),_0x11be30=_0x4fbeb9[_0xeb7d('0x10e')][_0xeb7d('0x1b')](_0xeb7d('0xc6')+_0x51f98f['id']);return _0x13da5e['start'][_0xeb7d('0x38')](_0x11be30[_0xeb7d('0x49')])?-0x1:_0x13da5e[_0xeb7d('0x49')]['isAfter'](_0x11be30[_0xeb7d('0x49')])?0x1:_0x13da5e[_0xeb7d('0x90')][_0xeb7d('0x38')](_0x11be30[_0xeb7d('0x90')])?-0x1:_0x13da5e[_0xeb7d('0x90')][_0xeb7d('0xa6')](_0x11be30[_0xeb7d('0x90')])?0x1:_0xeb7d('0x48')===_0x1c3761[_0xeb7d('0x1d')]?-0x1:0x1;}),{'root':_0x4fbeb9,'changes':_0x210e58};function _0x248e86(_0x3de180,_0x4123e6,_0x2d936c,_0x539fc5){const _0x4463b6=!!_0x40d3f7[_0x4123e6][_0x3de180],_0x20a7d5=_0x4463b6?_0x40d3f7[_0x4123e6][_0x3de180][_0xeb7d('0x10')]:null,_0x5b5c83=_0x4123e6===_0x40d3f7[_0xeb7d('0x8')]-0x1,_0x1046dc=_0x264d4b[_0x3de180][0x0],_0x37b659=_0x3f3aec[_0xeb7d('0xfc')](_0x40d3f7[_0x4123e6][_0xeb7d('0x103')]);!_0x2cfea4[_0x3de180]&&_0x4463b6?_0x2cfea4[_0x3de180]={'start':_0x2d936c,'tapeItem':_0x40d3f7[_0x4123e6],'userId':_0x20a7d5,'type':_0x3de180}:_0x2cfea4[_0x3de180]&&!_0x4463b6?(_0x2cfea4[_0x3de180][_0xeb7d('0x90')]=_0x2d936c,_0x5204c8(_0x2cfea4[_0x3de180]),_0x2cfea4[_0x3de180]=null):_0x2cfea4[_0x3de180]&&_0x4463b6&&_0x2cfea4[_0x3de180]['userId']!==_0x20a7d5&&(_0x2cfea4[_0x3de180][_0xeb7d('0x90')]=_0x2d936c,_0x1046dc&&_0x1046dc[_0xeb7d('0x10')]===_0x2cfea4[_0x3de180][_0xeb7d('0x10')]||_0x5204c8(_0x2cfea4[_0x3de180]),_0x2cfea4[_0x3de180]={'start':_0x2d936c,'tapeItem':_0x40d3f7[_0x4123e6],'userId':_0x20a7d5,'type':_0x3de180}),_0x2cfea4[_0x3de180]&&_0x37b659&&(_0xeb7d('0x6f')!==_0x40d3f7[_0x4123e6][_0xeb7d('0x1d')]||_0x1046dc&&_0x1046dc[_0xeb7d('0x10')]===_0x20a7d5||_0x264d4b[_0x3de180]['unshift']({'userId':_0x20a7d5,'object':_0x40d3f7[_0x4123e6][_0xeb7d('0x103')],'change':_0x2cfea4[_0x3de180]}),_0xeb7d('0xac')===_0x40d3f7[_0x4123e6][_0xeb7d('0x1d')]&&_0x1046dc&&_0x1046dc['object']===_0x40d3f7[_0x4123e6][_0xeb7d('0x103')]&&(_0x264d4b[_0x3de180][_0xeb7d('0x106')](),_0x2cfea4[_0x3de180]=_0x1046dc[_0xeb7d('0x12')])),_0x2cfea4[_0x3de180]&&_0x5b5c83&&(_0x2cfea4[_0x3de180][_0xeb7d('0x90')]=_0x539fc5,_0x5204c8(_0x2cfea4[_0x3de180]),_0x2cfea4[_0x3de180]=null);}function _0x5204c8({start:_0x5e8bbf,end:_0x4391e0,tapeItem:_0x48e975,userId:_0x2b82dd,type:_0x4f3b6c}){const _0x39c20e=_0x48e975[_0xeb7d('0x103')],_0x4478ed=_0x22a957[_0xeb7d('0xe1')]['isBlock'](_0x39c20e)&&!_0x22a957[_0xeb7d('0xe1')][_0xeb7d('0xef')](_0x39c20e),_0x582ba8=_0x5e8bbf['nodeAfter']==_0x4391e0[_0xeb7d('0xa0')]&&_0x4391e0['isAtStart'];if(_0x4478ed&&_0x582ba8)return;const _0x59b6b8=_0x22a957['createRange'](_0x5e8bbf,_0x4391e0),_0x5b428c=_0x3cf644[_0xeb7d('0x1b')](_0x2b82dd),_0x23796d=new _0x3bc349({'author':_0x5b428c,'type':'isAdded'==_0x4f3b6c||_0xeb7d('0x65')==_0x4f3b6c?'add':_0xeb7d('0xe8'),'data':{'isSuggestion':_0xeb7d('0x65')==_0x4f3b6c||_0xeb7d('0x3d')==_0x4f3b6c},'createdAt':new Date(),'rootName':_0x346b73});_0x210e58[_0xeb7d('0x105')](_0x23796d),_0x4fbeb9[_0xeb7d('0x10e')]['set'](_0xeb7d('0xc6')+_0x23796d['id'],_0x59b6b8);}function _0x217cfe(_0x21886c,_0x490e26){const _0x53b187=_0x21886c[_0xeb7d('0x41')](),_0xf0dc0a=_0x490e26[_0xeb7d('0x41')]();for(const _0x56bd45 of _0x53b187){if(_0x56bd45[0x1]!==_0x490e26['getAttribute'](_0x56bd45[0x0]))return!0x1;_0xf0dc0a['next']();}return _0xf0dc0a['next']()[_0xeb7d('0xb1')];}}[_0xeb7d('0xc1')](){this[_0xeb7d('0xed')]['conversion']['for'](_0xeb7d('0x108'))[_0xeb7d('0x17')]({'view':'revision'}),this[_0xeb7d('0xed')][_0xeb7d('0x110')][_0xeb7d('0xc5')](_0xeb7d('0xd0'))['markerToHighlight']({'model':_0xeb7d('0xd'),'view':_0x1cd149=>{const _0x2ae026=_0x1cd149['markerName'][_0xeb7d('0x2d')](':')[0x1],_0x53ca0c=this[_0xeb7d('0xaf')](_0x2ae026);if(!_0x53ca0c)return null;const _0xc70bc7=_0xeb7d('0x48')==_0x53ca0c[_0xeb7d('0x1d')]?'insertion':'deletion',_0x1fd3ca=[_0xeb7d('0x47'),_0xeb7d('0x4e')+_0xc70bc7];return _0x53ca0c['data']['isSuggestion']&&_0x1fd3ca['push'](_0xeb7d('0x4e')+_0xc70bc7+_0xeb7d('0x8a')),this[_0xeb7d('0xd9')]==_0x53ca0c&&_0x1fd3ca[_0xeb7d('0x105')]('ck-suggestion-marker--active'),{'classes':_0x1fd3ca,'attributes':{'data-change-id':_0x2ae026}};}}),this['editor'][_0xeb7d('0x110')]['for'](_0xeb7d('0x108'))[_0xeb7d('0x48')](_0xe544c8=>{_0xe544c8['on'](_0xeb7d('0xa7'),(_0x4140b1,_0x4f8992,_0x5cb22b)=>{const _0x18956a=_0x4f8992[_0xeb7d('0xc9')]['getChild'](0x0);if(!_0x18956a||!_0x18956a['is']('element',_0xeb7d('0x33')))return;if(!_0x5cb22b['consumable'][_0xeb7d('0x10c')](_0x18956a,{'attributes':['vid_start',_0xeb7d('0x91')]}))return;const _0x4eff47=_0x4f8992[_0xeb7d('0x82')][_0xeb7d('0x49')][_0xeb7d('0x3f')];_0x5cb22b[_0xeb7d('0x5f')]['setAttribute'](_0xeb7d('0x97'),_0x18956a[_0xeb7d('0x6d')](_0xeb7d('0x97')),_0x4eff47),_0x5cb22b[_0xeb7d('0x5f')]['setAttribute']('vid_end',_0x18956a[_0xeb7d('0x6d')]('vid_end'),_0x4eff47);},{'priority':_0xeb7d('0xee')});}),this[_0xeb7d('0xed')][_0xeb7d('0x110')][_0xeb7d('0xc5')]('upcast')[_0xeb7d('0x48')](_0x431887=>{_0x431887['on'](_0xeb7d('0xc0'),(_0x175184,_0x534e93,_0xd6bb40)=>{if(!_0xd6bb40['consumable'][_0xeb7d('0x10c')](_0x534e93[_0xeb7d('0xc9')],{'attributes':[_0xeb7d('0x97'),_0xeb7d('0x91')]}))return;if(_0x534e93[_0xeb7d('0x82')][_0xeb7d('0xd6')])return;const _0x5bfef9=_0x534e93[_0xeb7d('0x82')]['start'][_0xeb7d('0x3f')];_0x5bfef9['hasAttribute'](_0xeb7d('0x97'))||_0x5bfef9['hasAttribute'](_0xeb7d('0x77'))||(_0xd6bb40[_0xeb7d('0x5f')][_0xeb7d('0x42')](_0xeb7d('0x97'),_0x534e93[_0xeb7d('0xc9')][_0xeb7d('0x6d')](_0xeb7d('0x97')),_0x5bfef9),_0xd6bb40[_0xeb7d('0x5f')][_0xeb7d('0x42')]('vid_end',_0x534e93['viewItem']['getAttribute']('vid_end'),_0x5bfef9));},{'priority':_0xeb7d('0xee')});}),this['editor']['conversion'][_0xeb7d('0xc5')](_0xeb7d('0x108'))[_0xeb7d('0x6e')]({'view':{'name':_0xeb7d('0x18'),'attributes':{'vid':!0x0}},'model':{'key':_0xeb7d('0x77'),'value':_0x105a18=>_0x105a18[_0xeb7d('0x6d')](_0xeb7d('0x77'))}}),this[_0xeb7d('0xed')]['model'][_0xeb7d('0xe1')]['on'](_0xeb7d('0x43'),(_0x44027c,[,_0x2c108f])=>{[_0xeb7d('0x97'),'vid_end',_0xeb7d('0x77')][_0xeb7d('0xd8')](_0x2c108f)&&(_0x44027c['return']=!0x0,_0x44027c['stop']());},{'priority':'highest'}),this[_0xeb7d('0xed')][_0xeb7d('0x110')]['for'](_0xeb7d('0xdd'))['add'](_0x2845e0=>{_0x2845e0['on'](_0xeb7d('0x13'),(_0x5227c7,_0x283976,_0x443fe6)=>{if('\x20'!=_0x283976['item'][_0xeb7d('0xba')]||_0x283976[_0xeb7d('0x103')][_0xeb7d('0xa0')][_0xeb7d('0x60')]>0x1)return;if(!_0x443fe6[_0xeb7d('0xf3')][_0xeb7d('0x10c')](_0x283976[_0xeb7d('0x103')],_0x5227c7[_0xeb7d('0x74')]))return;const _0x402730=_0x443fe6[_0xeb7d('0x5f')],_0x3c4be9=_0x443fe6[_0xeb7d('0x3a')]['toViewRange'](_0x283976[_0xeb7d('0xd7')]);_0x402730[_0xeb7d('0x92')](_0x3c4be9,_0x402730['createAttributeElement']('span'));});}),this[_0xeb7d('0xed')][_0xeb7d('0x110')][_0xeb7d('0xc5')](_0xeb7d('0xdd'))[_0xeb7d('0xa')]({'model':'revision'}),this[_0xeb7d('0xed')][_0xeb7d('0x113')][_0xeb7d('0xf7')]['on']('addMarker:revision',function(_0x518f46){const _0x13830a=_0x518f46[_0xeb7d('0x71')]['get'](_0xeb7d('0x0'));return(_0x2fc834,_0x49a5df,_0x1142b3)=>{const _0x2e1a3f=_0x49a5df[_0xeb7d('0xf6')][_0xeb7d('0x2d')](':')[0x1],_0x5c05df=_0x13830a[_0xeb7d('0xaf')](_0x2e1a3f);if(!_0x5c05df)return null;const _0x4c415b=_0xeb7d('0x48')==_0x5c05df[_0xeb7d('0x1d')]?'split':_0xeb7d('0x46');if(!_0x1142b3[_0xeb7d('0xf3')]['test'](_0x49a5df[_0xeb7d('0x1e')],_0x2fc834[_0xeb7d('0x74')]))return;const _0x224aa4=_0x49a5df[_0xeb7d('0x1e')][_0xeb7d('0xcb')](),_0x46874f=_0x49a5df[_0xeb7d('0x1e')][_0xeb7d('0x49')],_0x5c9f9d=_0x518f46[_0xeb7d('0x7e')][_0xeb7d('0xe1')];let _0x5338cf=null,_0x23d391=null,_0x42891b=!0x1,_0x12b391=!0x1;for(const _0x2288d0 of _0x224aa4){const _0x92e1d2=_0x2288d0[_0xeb7d('0x103')];_0x42891b=_0x42891b||_0x5c9f9d['isContent'](_0x92e1d2);const _0x10095a=_0x1142b3[_0xeb7d('0x3a')]['toViewElement'](_0x92e1d2);if(_0x10095a&&_0x10095a[_0xeb7d('0x56')](_0xeb7d('0x76')))return;_0xeb7d('0xac')==_0x2288d0[_0xeb7d('0x1d')]&&(_0x5c9f9d['isBlock'](_0x92e1d2)&&!_0x5c9f9d[_0xeb7d('0xef')](_0x92e1d2)&&(_0x92e1d2[_0xeb7d('0x95')]||_0x46874f[_0xeb7d('0xda')]?_0x5338cf&&_0x5338cf['parent']==_0x92e1d2||(_0x5338cf=_0x92e1d2,_0x99f264(_0x2288d0[_0xeb7d('0x51')]),_0x12b391=!0x0):_0x23d391=_0x23d391||_0x2288d0[_0xeb7d('0x51')]));}function _0x99f264(_0x598da6){const _0x1378ed=_0x1142b3[_0xeb7d('0x5f')][_0xeb7d('0x11a')](_0xeb7d('0x18'),{'class':'ck-suggestion-marker-'+_0x4c415b}),_0x369583=_0x1142b3[_0xeb7d('0x3a')][_0xeb7d('0x26')](_0x598da6);_0x5c05df[_0xeb7d('0xba')]['isSuggestion']&&_0x1142b3[_0xeb7d('0x5f')][_0xeb7d('0x44')](_0xeb7d('0x4e')+_0x4c415b+_0xeb7d('0x8a'),_0x1378ed),_0x13830a[_0xeb7d('0xd9')]==_0x5c05df&&_0x1142b3['writer'][_0xeb7d('0x44')]('ck-suggestion-marker--active',_0x1378ed),_0x1142b3[_0xeb7d('0x5f')][_0xeb7d('0x119')](_0x369583,_0x1378ed),_0x1142b3[_0xeb7d('0x3a')][_0xeb7d('0x50')](_0x1378ed,_0x49a5df[_0xeb7d('0xf6')]);}_0x42891b||_0x12b391||!_0x23d391||_0x99f264(_0x23d391);};}(this[_0xeb7d('0xed')]),{'priority':'high'}),this[_0xeb7d('0xed')]['editing'][_0xeb7d('0xf7')]['on']('removeMarker:revision',(_0x6a81f0,_0x3fff19,_0x560740)=>{const _0x4d0187=_0x560740[_0xeb7d('0x3a')]['markerNameToElements'](_0x3fff19[_0xeb7d('0xf6')]);if(_0x4d0187)for(const _0x209da8 of _0x4d0187)(_0x209da8[_0xeb7d('0xe9')](_0xeb7d('0xb8'))||_0x209da8[_0xeb7d('0xe9')](_0xeb7d('0xf0')))&&(_0x560740[_0xeb7d('0x3a')]['unbindElementFromMarkerName'](_0x209da8,_0x3fff19[_0xeb7d('0xf6')]),_0x560740[_0xeb7d('0x5f')][_0xeb7d('0xe8')](_0x209da8));},{'priority':_0xeb7d('0xa1')}),this[_0xeb7d('0xed')][_0xeb7d('0x113')]['downcastDispatcher']['on'](_0xeb7d('0x67'),(_0x226a64,_0x5c3549,_0x4216c2)=>{const _0x275cdf=_0x5c3549[_0xeb7d('0xf6')][_0xeb7d('0x2d')](':')[0x1],_0x43e9c2=this['_getChangeFromId'](_0x275cdf);if(!_0x43e9c2)return null;const _0x50afaf='add'==_0x43e9c2['type']?_0xeb7d('0x2d'):_0xeb7d('0x46');if(_0x4216c2[_0xeb7d('0xf3')][_0xeb7d('0x64')](_0x5c3549[_0xeb7d('0x1e')],_0x226a64[_0xeb7d('0x74')]))for(const _0x5631b9 of _0x5c3549[_0xeb7d('0x1e')][_0xeb7d('0x75')]()){if(!_0x5631b9['is'](_0xeb7d('0xc0'),_0xeb7d('0x87')))continue;const _0x1578c3=_0x4216c2[_0xeb7d('0x5f')]['createUIElement'](_0xeb7d('0x18'),{'class':'ck-suggestion-marker-'+_0x50afaf}),_0x4c22d3=_0x4216c2['mapper'][_0xeb7d('0x26')](this[_0xeb7d('0xed')]['model'][_0xeb7d('0xe2')](_0x5631b9));_0x43e9c2[_0xeb7d('0xba')]['isSuggestion']&&_0x4216c2[_0xeb7d('0x5f')]['addClass']('ck-suggestion-marker-'+_0x50afaf+_0xeb7d('0x8a'),_0x1578c3),this[_0xeb7d('0xd9')]==_0x43e9c2&&_0x4216c2[_0xeb7d('0x5f')][_0xeb7d('0x44')]('ck-suggestion-marker--active',_0x1578c3),_0x4216c2['writer'][_0xeb7d('0x119')](_0x4c22d3,_0x1578c3),_0x4216c2['mapper'][_0xeb7d('0x50')](_0x1578c3,_0x5c3549[_0xeb7d('0xf6')]);}},{'priority':'high'}),this[_0xeb7d('0xed')]['model'][_0xeb7d('0x115')]['on'](_0xeb7d('0x12'),()=>{this[_0xeb7d('0xed')][_0xeb7d('0x113')]['view'][_0xeb7d('0x12')](_0x3c85a1=>{for(const _0x2b1051 of this[_0xeb7d('0xed')]['model'][_0xeb7d('0x115')][_0xeb7d('0xf')]()){const _0x28afbf=this[_0xeb7d('0xed')][_0xeb7d('0x7e')][_0xeb7d('0x115')]['getRoot'](_0x2b1051),_0x1a80df=this['editor']['editing']['view'][_0xeb7d('0x115')]['getRoot'](_0x2b1051);if(_0x1a80df){const _0x344df3=_0x28afbf['getAttribute'](_0xeb7d('0x10d'));if(_0x3c85a1[_0xeb7d('0x61')]('data-change-id',_0x1a80df),_0x3c85a1[_0xeb7d('0x2c')](_0xeb7d('0xe4'),_0x1a80df),_0x3c85a1['removeClass'](_0xeb7d('0x80'),_0x1a80df),_0x3c85a1['removeClass'](_0xeb7d('0x37'),_0x1a80df),_0x344df3){const _0x1a57a0=this['_getChangeFromId'](_0x344df3);if(!_0x1a57a0)return null;_0x3c85a1['setAttribute'](_0xeb7d('0x1a'),_0x344df3,_0x1a80df),_0x3c85a1[_0xeb7d('0x44')](_0xeb7d('0xd1')+_0x1a57a0[_0xeb7d('0x1d')],_0x1a80df),this[_0xeb7d('0xd9')]==_0x1a57a0&&_0x3c85a1[_0xeb7d('0x44')](_0xeb7d('0x37'),_0x1a80df);}}}});}),this[_0xeb7d('0xed')][_0xeb7d('0x110')]['for'](_0xeb7d('0x108'))[_0xeb7d('0x17')]({'view':_0xeb7d('0xea'),'model':_0x5b6c30=>_0xeb7d('0x8c')+_0x5b6c30,'converterPriority':_0xeb7d('0x22')}),this[_0xeb7d('0xed')][_0xeb7d('0x110')][_0xeb7d('0xc5')](_0xeb7d('0x108'))['dataToMarker']({'view':'suggestion','model':_0x460554=>'revision-suggestion:'+_0x460554,'converterPriority':_0xeb7d('0x22')}),this['editor'][_0xeb7d('0x110')]['for'](_0xeb7d('0xdd'))[_0xeb7d('0xa')]({'model':_0xeb7d('0x7d'),'view':_0x2a9844=>({'name':_0xeb7d('0xb7')+_0x2a9844,'group':'revision-suggestion'}),'converterPriority':_0xeb7d('0x22')}),this[_0xeb7d('0xed')][_0xeb7d('0x110')][_0xeb7d('0xc5')]('editingDowncast')['markerToHighlight']({'model':_0xeb7d('0x7d'),'view':_0x178375=>{const _0x5a4c2f=_0x178375['markerName'][_0xeb7d('0x2d')](':')[0x1];return _0xeb7d('0xca')!=_0x5a4c2f&&_0xeb7d('0xb3')!=_0x5a4c2f?null:{'classes':['ck-suggestion-preview-marker',_0xeb7d('0xcf')+_0x5a4c2f]};}}),this[_0xeb7d('0xed')]['editing'][_0xeb7d('0xf7')]['on'](_0xeb7d('0xe3'),et(this[_0xeb7d('0xed')],_0xeb7d('0x46')),{'priority':_0xeb7d('0xa1')}),this['editor']['editing'][_0xeb7d('0xf7')]['on']('addMarker:revision-suggestion:insertion',et(this[_0xeb7d('0xed')],_0xeb7d('0x2d')),{'priority':_0xeb7d('0xa1')}),this[_0xeb7d('0xed')][_0xeb7d('0x113')][_0xeb7d('0xf7')]['on'](_0xeb7d('0x121'),(_0x5a1b65,_0x15ba9d,_0x1f0585)=>{const _0x4b4f5e=_0x1f0585[_0xeb7d('0x3a')][_0xeb7d('0xe0')](_0x15ba9d[_0xeb7d('0xf6')]);if(_0x4b4f5e)for(const _0x32d5f6 of _0x4b4f5e)_0x32d5f6['is'](_0xeb7d('0x5e'))&&(_0x1f0585[_0xeb7d('0x3a')][_0xeb7d('0x68')](_0x32d5f6,_0x15ba9d[_0xeb7d('0xf6')]),_0x1f0585[_0xeb7d('0x5f')]['remove'](_0x32d5f6));},{'priority':_0xeb7d('0xa1')});}['_getChangeFromId'](_0x1a4377){return this[_0xeb7d('0x85')]['get'](_0x1a4377);}[_0xeb7d('0x117')](_0x19723d){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new _0x172e38(this[_0xeb7d('0xed')][_0xeb7d('0xa9')],_0x19723d),this['_changeView'];}['_initInteractions'](){this[_0xeb7d('0xed')]['model'][_0xeb7d('0x115')]['selection'][_0xeb7d('0xab')](_0xeb7d('0xd')),this['on']('change:activeView',(_0x3f7700,_0x4e3ab1,_0x38c7a1,_0x4668b0)=>{_0x4668b0&&this[_0xeb7d('0x5d')][_0xeb7d('0xe8')](_0x4668b0),_0x38c7a1&&(this[_0xeb7d('0x5d')][_0xeb7d('0x48')]({'view':_0x38c7a1,'stackId':_0xeb7d('0x4b'),'position':{'target':()=>{const _0x5c89df=this['editor']['editing'],_0x4f25a9=this[_0xeb7d('0xaf')](_0x38c7a1[_0xeb7d('0x39')]);let _0x2eff7e;if(_0x4f25a9[_0xeb7d('0xba')][_0xeb7d('0x11')]){const _0x3f90ea=_0x5c89df[_0xeb7d('0x4')][_0xeb7d('0xc3')](_0x4f25a9['rootName']);_0x2eff7e=Array[_0xeb7d('0x102')](_0x3f90ea['getClientRects']());}else{const _0x4c92a4=this[_0xeb7d('0xed')][_0xeb7d('0x7e')]['markers'][_0xeb7d('0x1b')]('revision:'+_0x38c7a1[_0xeb7d('0x39')]);_0x2eff7e=Array[_0xeb7d('0x102')](_0x5c89df[_0xeb7d('0x3a')][_0xeb7d('0xe0')](_0x4c92a4[_0xeb7d('0x74')]))[_0xeb7d('0x4a')](_0x433267=>_0x5c89df[_0xeb7d('0x4')][_0xeb7d('0x4d')][_0xeb7d('0x1')](_0x433267))[_0xeb7d('0x4a')](_0x135196=>Array['from'](_0x135196['getClientRects']()))[_0xeb7d('0xde')]();}if(!this[_0xeb7d('0xc4')])return _0x2eff7e[0x0];return _0x2eff7e[_0xeb7d('0x3b')](_0x35ba0f=>_0x35ba0f['top']-0x3<=this[_0xeb7d('0xc4')]['y']&&_0x35ba0f[_0xeb7d('0x5b')]+0x3>=this[_0xeb7d('0xc4')]['y']&&_0x35ba0f[_0xeb7d('0xd2')]-0x3<=this[_0xeb7d('0xc4')]['x']&&_0x35ba0f[_0xeb7d('0x11e')]+0x3>=this[_0xeb7d('0xc4')]['x'])||_0x2eff7e[0x0];}}}),this[_0xeb7d('0x5d')][_0xeb7d('0xe5')](_0xeb7d('0x4b')));}),this['on'](_0xeb7d('0x57'),(_0x28dfc0,_0xa885b3,_0x7b963d,_0x52a892)=>{this['activeView']=_0x7b963d?this[_0xeb7d('0x117')](_0x7b963d):null,this['editor'][_0xeb7d('0x7e')]['change'](()=>{const _0x56108f=this[_0xeb7d('0xed')]['editing'];_0x52a892&&(_0x52a892[_0xeb7d('0xba')][_0xeb7d('0x11')]?_0x56108f[_0xeb7d('0x4')][_0xeb7d('0x12')](_0xe9d6c5=>{_0xe9d6c5[_0xeb7d('0x2c')](_0xeb7d('0x37'),_0x56108f[_0xeb7d('0x4')][_0xeb7d('0x115')]['getRoot'](_0x52a892[_0xeb7d('0x9c')]));}):_0x56108f[_0xeb7d('0x58')]('revision:'+_0x52a892['id'])),_0x7b963d&&(_0x7b963d[_0xeb7d('0xba')][_0xeb7d('0x11')]?_0x56108f[_0xeb7d('0x4')]['change'](_0x4afa3f=>{_0x4afa3f[_0xeb7d('0x44')](_0xeb7d('0x37'),_0x56108f[_0xeb7d('0x4')][_0xeb7d('0x115')][_0xeb7d('0x78')](_0x7b963d[_0xeb7d('0x9c')]));}):_0x56108f[_0xeb7d('0x58')](_0xeb7d('0xc6')+_0x7b963d['id']));});}),this[_0xeb7d('0x98')](this[_0xeb7d('0xed')]['editing'][_0xeb7d('0x4')][_0xeb7d('0x115')],_0xeb7d('0x120'),(_0x155c00,_0x2e4cf1)=>{if(this[_0xeb7d('0xd9')])return;const _0x2f70b0=this['_findChangeIdFromDomTarget'](_0x2e4cf1['target']),_0x53b75f=this['_changeIdToChange']['get'](_0x2f70b0);_0x53b75f?(this[_0xeb7d('0xc4')]={'x':_0x2e4cf1[_0xeb7d('0xeb')]['x'],'y':_0x2e4cf1[_0xeb7d('0xeb')]['y']},this[_0xeb7d('0x29')]=this['_getViewForChange'](_0x53b75f)):(this[_0xeb7d('0xc4')]=null,this[_0xeb7d('0x29')]=null);}),this[_0xeb7d('0x98')](this['editor'][_0xeb7d('0x113')][_0xeb7d('0x4')][_0xeb7d('0x115')],_0xeb7d('0x100'),(_0xb80828,_0x5d8650)=>{const _0x6bec8c=this[_0xeb7d('0x7c')](_0x5d8650[_0xeb7d('0x14')]),_0x56a1f8=this[_0xeb7d('0x85')][_0xeb7d('0x1b')](_0x6bec8c);_0x56a1f8?(this['_activeViewTarget']={'x':_0x5d8650[_0xeb7d('0xeb')]['x'],'y':_0x5d8650[_0xeb7d('0xeb')]['y']},_0x56a1f8===this[_0xeb7d('0xd9')]?this['_balloon'][_0xeb7d('0xd3')]():this[_0xeb7d('0xd9')]=_0x56a1f8):(this[_0xeb7d('0xc4')]=null,this[_0xeb7d('0xd9')]=null);});}[_0xeb7d('0x7c')](_0x43a716){do{const _0x235134=_0x43a716[_0xeb7d('0x6d')]('data-change-id');if(_0x235134)return _0x235134;_0x43a716=_0x43a716[_0xeb7d('0xa0')];}while(_0x43a716);return null;}[_0xeb7d('0x88')](){this[_0xeb7d('0xed')][_0xeb7d('0x7e')][_0xeb7d('0x12')](_0x229b05=>{for(const _0x1688c1 of this[_0xeb7d('0xed')]['model'][_0xeb7d('0x10e')])_0x229b05[_0xeb7d('0xf2')](_0x1688c1);});}}function et(_0x272c89,_0x5190fd){return(_0x2f665b,_0x49ddfd,_0x2065a1)=>{if(!_0x2065a1['consumable']['test'](_0x49ddfd[_0xeb7d('0x1e')],_0x2f665b[_0xeb7d('0x74')]))return;const _0x5de844=_0x49ddfd[_0xeb7d('0x1e')][_0xeb7d('0xcb')](),_0x41058f=_0x49ddfd[_0xeb7d('0x1e')][_0xeb7d('0x49')],_0x12af04=_0x272c89['model'][_0xeb7d('0xe1')];let _0x467d95=null,_0x14f17f=null,_0x222e0e=!0x1,_0xbaa493=!0x1;for(const _0x4f8682 of _0x5de844){const _0x26f288=_0x4f8682['item'];_0x222e0e=_0x222e0e||_0x12af04[_0xeb7d('0x93')](_0x26f288);const _0x2c184e=_0x2065a1[_0xeb7d('0x3a')][_0xeb7d('0xdf')](_0x26f288);if(_0x2c184e&&_0x2c184e[_0xeb7d('0x56')](_0xeb7d('0x76')))return;_0xeb7d('0xac')==_0x4f8682['type']&&(_0x12af04['isBlock'](_0x26f288)&&!_0x12af04[_0xeb7d('0xef')](_0x26f288)&&(_0x26f288[_0xeb7d('0x95')]||_0x41058f[_0xeb7d('0xda')]?_0x467d95&&_0x467d95[_0xeb7d('0xa0')]==_0x26f288||(_0x467d95=_0x26f288,_0x5942ff(_0x4f8682[_0xeb7d('0x51')]),_0xbaa493=!0x0):_0x14f17f=_0x14f17f||_0x4f8682['previousPosition']));}function _0x5942ff(_0x53328f){const _0x4338f0=_0x2065a1['mapper'][_0xeb7d('0x26')](_0x53328f),_0x535169=_0x2065a1['writer'][_0xeb7d('0x11a')](_0xeb7d('0x18'),{'class':_0xeb7d('0xcf')+_0x5190fd});_0x2065a1[_0xeb7d('0x5f')][_0xeb7d('0x119')](_0x4338f0,_0x535169),_0x2065a1[_0xeb7d('0x3a')]['bindElementToMarker'](_0x535169,_0x49ddfd[_0xeb7d('0xf6')]);}_0x222e0e||_0xbaa493||!_0x14f17f||_0x5942ff(_0x14f17f);};}export class RestoreRevisionCommand extends _0x45f7a9{constructor(_0xb5c9fa){super(_0xb5c9fa);const _0x13546=_0xb5c9fa[_0xeb7d('0x71')]['get'](d);this[_0xeb7d('0x70')]=!0x1,this['listenTo'](_0x13546,_0xeb7d('0xa3'),()=>this[_0xeb7d('0x86')]()),this[_0xeb7d('0x98')](_0x13546,'change:isEnabled',()=>this['refresh']());}[_0xeb7d('0x62')](){const _0x4bb097=this[_0xeb7d('0xed')],_0x1f198f=_0x4bb097[_0xeb7d('0x71')][_0xeb7d('0x1b')](d),_0x2c3956=_0x1f198f[_0xeb7d('0x72')]?_0x1f198f[_0xeb7d('0xb5')][_0xeb7d('0x52')]:null;_0x4bb097[_0xeb7d('0x7b')][_0xeb7d('0x1b')](_0xeb7d('0x11b'))[_0xeb7d('0xae')](_0x2c3956);}[_0xeb7d('0x86')](){const {isReady:_0x427b3a,isEnabled:_0x235f63}=this['editor'][_0xeb7d('0x71')][_0xeb7d('0x1b')](d);this[_0xeb7d('0x9')]=_0x427b3a&&_0x235f63;}}export class ShowChangeCommand extends _0x45f7a9{constructor(_0x5246bb,{direction:_0x244ce5}){super(_0x5246bb);const _0x523be4=_0x5246bb[_0xeb7d('0x71')][_0xeb7d('0x1b')](d);this[_0xeb7d('0x70')]=!0x1,this['_step']='forward'===_0x244ce5?0x1:-0x1,this[_0xeb7d('0x98')](_0x523be4,_0xeb7d('0xa3'),()=>this[_0xeb7d('0x86')]()),this[_0xeb7d('0x98')](_0x523be4,'change:isEnabled',()=>this[_0xeb7d('0x86')]()),this[_0xeb7d('0x98')](_0x523be4,'change:activeChange',()=>this[_0xeb7d('0x86')]());}['execute'](){const _0x3f605c=this[_0xeb7d('0xed')],_0x374396=_0x3f605c[_0xeb7d('0x71')][_0xeb7d('0x1b')](d),{isNavigationMode:_0x22fc9f,currentChangeNumber:_0x41e66a}=_0x374396;let _0x56239a;if(_0x374396[_0xeb7d('0xd9')]=_0x22fc9f?_0x374396[_0xeb7d('0xb5')][_0xeb7d('0x53')][_0xeb7d('0x1b')](_0x41e66a+this[_0xeb7d('0x16')]):_0x374396['diff']['changes']['first'],_0x374396[_0xeb7d('0xd9')][_0xeb7d('0xba')][_0xeb7d('0x11')])_0x56239a=_0x3f605c[_0xeb7d('0x113')][_0xeb7d('0x4')][_0xeb7d('0xc3')](_0x374396[_0xeb7d('0xd9')][_0xeb7d('0x9c')]);else{const _0x52ac33=_0x3f605c['model'][_0xeb7d('0x10e')][_0xeb7d('0x1b')](_0xeb7d('0xc6')+_0x374396[_0xeb7d('0xd9')]['id']);_0x56239a=_0x4ea41f(_0x3f605c['editing'],_0x52ac33);}_0x7cc601({'target':_0x56239a,'viewportOffset':0x28});}[_0xeb7d('0x86')](){const {isNavigationMode:_0x3f575f,currentChangeNumber:_0x322f41,numberOfChanges:_0x1ca16c,isReady:_0xa81d8e,isEnabled:_0x368ecd}=this[_0xeb7d('0xed')]['plugins'][_0xeb7d('0x1b')](d);this['isEnabled']=!!(_0x368ecd&&_0xa81d8e&&_0x1ca16c)&&(!_0x3f575f||(0x1===this[_0xeb7d('0x16')]?_0x322f41<_0x1ca16c-0x1:_0x322f41>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55b3=['threeVerticalDots','function','Show\x20more\x20items','items','class','children','buttonView','bindTemplate','isOpen','map','stopPropagation','add','_action','isVisible','extendTemplate','set','isEnabled','model','Name\x20this\x20revision','source','Restore\x20this\x20revision','action','first','execute','button','Compare\x20against\x20selected','isActionsDropdownOpen','listView','name','panelPosition','change:isActionsDropdownOpen','locale','find'];(function(_0x395d11,_0x55b3ed){const _0x51299f=function(_0x2f9d10){while(--_0x2f9d10){_0x395d11['push'](_0x395d11['shift']());}};_0x51299f(++_0x55b3ed);}(_0x55b3,0x155));const _0x5129=function(_0x395d11,_0x55b3ed){_0x395d11=_0x395d11-0x0;let _0x51299f=_0x55b3[_0x395d11];return _0x51299f;};import{Collection as _0x53d90e}from'ckeditor5/src/utils.js';import{icons as _0x530b6e}from'ckeditor5/src/core.js';import{ViewModel as _0x40f699,addListToDropdown as _0x55c881,createDropdown as _0x3aecba}from'ckeditor5/src/ui.js';import{getTranslation as _0x56373f}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x550a54,_0x258d1e){const _0x45cb99=_0x550a54[_0x5129('0x1d')],_0x4c7701=_0x550a54[_0x5129('0x14')],_0x428bf6=_0x3aecba(_0x4c7701);_0x428bf6[_0x5129('0x12')]='sw';const _0x642809=function(_0x4ebe4b,_0x3d8ef9){const _0x32135d=function(_0xce2806,_0x2d5453){const _0x1f3a23=_0xce2806[_0x5129('0x14')],_0x1f1c81={'Compare\x20against\x20selected':_0x56373f(_0x1f3a23,_0x5129('0xe')),'Name\x20this\x20revision':_0x56373f(_0x1f3a23,_0x5129('0x7')),'Restore\x20this\x20revision':_0x56373f(_0x1f3a23,_0x5129('0x9'))};return _0x2d5453[_0x5129('0x1f')](_0x3b02e1=>{const _0x3b25e8=_0x1f1c81[_0x3b02e1[_0x5129('0x11')]];return _0x3b25e8&&_0x3b25e8!==_0x3b02e1[_0x5129('0x11')]&&(_0x3b02e1[_0x5129('0x11')]=_0x3b25e8),_0x3b02e1;});}(_0x4ebe4b,_0x3d8ef9),_0x27b78c=new _0x53d90e();for(const _0x3acb8d of _0x32135d){const _0x578b5f={'type':_0x5129('0xd'),'model':new _0x40f699({'label':_0x3acb8d[_0x5129('0x11')],'class':_0x3acb8d[_0x5129('0x1a')],'withText':!0x0,'_action':_0x3acb8d['action']})};_0x578b5f[_0x5129('0x6')]['bind'](_0x5129('0x5'))['to'](_0x4ebe4b,'isActionsDropdownOpen',_0x216d0c=>_0x5129('0x17')!=typeof _0x3acb8d[_0x5129('0x5')]||(!_0x216d0c||_0x3acb8d[_0x5129('0x5')](_0x4ebe4b))),_0x27b78c[_0x5129('0x0')](_0x578b5f);}return _0x27b78c;}(_0x550a54,_0x258d1e);return _0x550a54['bind'](_0x5129('0xf'))['to'](_0x428bf6,_0x5129('0x1e')),_0x428bf6[_0x5129('0x1c')][_0x5129('0x4')]({'label':_0x56373f(_0x4c7701,_0x5129('0x18')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x530b6e[_0x5129('0x16')]}),_0x428bf6[_0x5129('0x3')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x45cb99['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x45cb99['to'](_0x3b27d2=>_0x3b27d2[_0x5129('0x20')]())}}),_0x428bf6['on'](_0x5129('0xc'),_0x80b3bf=>{_0x550a54['isReady']&&_0x5129('0x17')==typeof _0x80b3bf[_0x5129('0x8')]['_action']&&_0x80b3bf[_0x5129('0x8')][_0x5129('0x1')](_0x550a54);}),_0x55c881(_0x428bf6,_0x642809),_0x428bf6['listenTo'](_0x550a54,_0x5129('0x13'),(_0x519f06,_0x30d359,_0x231f74)=>{if(_0x231f74)for(const _0x50b33c of _0x428bf6[_0x5129('0x10')][_0x5129('0x19')]){const _0x1b947f=_0x50b33c[_0x5129('0x1b')][_0x5129('0xb')],_0x3d13dc=_0x258d1e[_0x5129('0x15')](_0xfb0341=>_0xfb0341[_0x5129('0xa')]===_0x1b947f[_0x5129('0x1')])[_0x5129('0x2')];_0x50b33c[_0x5129('0x2')]=void 0x0===_0x3d13dc||_0x3d13dc(_0x550a54);}}),_0x428bf6;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5aa0=['setTemplate','push','name','ck-revision-history-sidebar__revision-author','span','0\x200\x2011\x2010'];(function(_0x599b45,_0x5aa062){const _0x1ce857=function(_0x407bdc){while(--_0x407bdc){_0x599b45['push'](_0x599b45['shift']());}};_0x1ce857(++_0x5aa062);}(_0x5aa0,0x1dc));const _0x1ce8=function(_0x599b45,_0x5aa062){_0x599b45=_0x599b45-0x0;let _0x1ce857=_0x5aa0[_0x599b45];return _0x1ce857;};import{View as _0x35a0d9,IconView as _0xa1da12}from'ckeditor5/src/ui.js';import{getTranslation as _0x41124b}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x21c966 from'../../../theme/icons/user.svg';export default class ti extends _0x35a0d9{constructor(_0x2ea688,_0x4c510d,_0x2b2fbd){super(_0x2ea688);const _0x1bf0fc=new _0xa1da12();_0x1bf0fc['set']({'content':_0x21c966,'viewBox':_0x1ce8('0x3')});const _0x4412d3=['ck',_0x1ce8('0x1')];_0x2b2fbd&&_0x4412d3[_0x1ce8('0x5')]('ck-revision-history-sidebar__revision-author_creator');const _0x5c81c6=[{'tag':_0x1ce8('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x41124b(_0x2ea688,_0x2b2fbd?'Revision\x20creator':'Revision\x20author')},'children':[_0x1bf0fc,_0x4c510d[_0x1ce8('0x0')]]}];this[_0x1ce8('0x4')]({'tag':'li','attributes':{'class':_0x4412d3},'children':_0x5c81c6});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xb48d=['Revision\x20name','extendTemplate','set','ck-revision-history-sidebar__revision-name'];(function(_0x37f712,_0xb48dce){var _0x1314e6=function(_0x1a157d){while(--_0x1a157d){_0x37f712['push'](_0x37f712['shift']());}};_0x1314e6(++_0xb48dce);}(_0xb48d,0x14f));var _0x1314=function(_0x37f712,_0xb48dce){_0x37f712=_0x37f712-0x0;var _0x1314e6=_0xb48d[_0x37f712];return _0x1314e6;};import{LabeledFieldView as _0x5ee273}from'ckeditor5/src/ui.js';import{getTranslation as _0x565062}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x5ee273{constructor(_0x48564f,_0x585d50){super(_0x48564f,_0x585d50),this[_0x1314('0x3')]({'label':_0x565062(_0x48564f,_0x1314('0x1'))}),this[_0x1314('0x2')]({'tag':'span','attributes':{'class':[_0x1314('0x0')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11d0=['creator','span','bind','filter','isEnabled','ck-revision-history-sidebar__revision_highlighted','name','closest','ck-disabled','ck-revision-history-sidebar__revision_selected','value','isActionsDropdownOpen','ck-revision-history-sidebar__revision','from','listenTo','deselect','unshift','revisionActionsView','unhighlight','setName','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','revisionNameView','select','isSelected','createdAt','element','render','fieldView','isReady','set','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision-authors','div','isHighlighted','_createdAtFormatted','isConfirm','_revision','authors','.ck-thread__remove-confirm','length','placeholder','ck-reset'];(function(_0x5a215e,_0x11d080){const _0x50dda7=function(_0x514380){while(--_0x514380){_0x5a215e['push'](_0x5a215e['shift']());}};_0x50dda7(++_0x11d080);}(_0x11d0,0x1de));const _0x50dd=function(_0x5a215e,_0x11d080){_0x5a215e=_0x5a215e-0x0;let _0x50dda7=_0x11d0[_0x5a215e];return _0x50dda7;};import{View as _0x3f0197,createLabeledInputText as _0x5a4384}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x40f184}from'ckeditor5-collaboration/src/collaboration-core.js';import _0xb2ac0e from'./revisionnameview.js';import _0x5c5097 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x303d79}from'./utils.js';import{createActionsDropdownView as _0x4b3fe6}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x40f184(_0x3f0197){constructor(_0x3013c8,_0x59fd0f,_0x3a6e85){super(_0x3013c8);const _0x5e3df3=this['bindTemplate'],_0x5972b0=function(_0x5e9813,_0x4308ed){const _0xf5a738=Array[_0x50dd('0x27')](_0x4308ed[_0x50dd('0x15')])[_0x50dd('0x1d')](_0x468a83=>_0x468a83!=_0x4308ed[_0x50dd('0x1a')]);return _0x4308ed['creator']&&_0xf5a738[_0x50dd('0x0')](_0x4308ed['creator']),_0xf5a738['map'](_0x3cbb40=>new _0x5c5097(_0x5e9813,_0x3cbb40,_0x3cbb40==_0x4308ed['creator']));}(_0x3013c8,_0x59fd0f);this['id']=_0x59fd0f['id'],this[_0x50dd('0x14')]=_0x59fd0f,this[_0x50dd('0x1c')]('name',_0x50dd('0x8'))['to'](_0x59fd0f),this['bind'](_0x50dd('0x12'))['to'](this,_0x50dd('0x8'),_0x3cec51=>_0x3cec51?_0x303d79(_0x3013c8['uiLanguage'],_0x3cec51):void 0x0),this[_0x50dd('0xd')](_0x50dd('0x7'),!0x1),this[_0x50dd('0xd')](_0x50dd('0x11'),!0x1),this[_0x50dd('0xd')](_0x50dd('0x25'),!0x1),this[_0x50dd('0xd')](_0x50dd('0xc'),!0x1),this[_0x50dd('0xd')](_0x50dd('0x1e'),!0x1),this['revisionNameView']=new _0xb2ac0e(_0x3013c8,_0x5a4384),this[_0x50dd('0x5')][_0x50dd('0xb')]['extendTemplate']({'attributes':{'maxlength':'220'}}),this[_0x50dd('0x5')][_0x50dd('0xb')][_0x50dd('0x1c')](_0x50dd('0x24'),_0x50dd('0x18'))['to'](this,_0x50dd('0x20'),_0x50dd('0x12')),this[_0x50dd('0x5')][_0x50dd('0x1c')](_0x50dd('0x1e'))['to'](this,_0x50dd('0x7'),this,_0x50dd('0x1e'),(_0xe396ce,_0x108a59)=>_0xe396ce&&_0x108a59),this[_0x50dd('0x1')]=_0x3a6e85&&_0x3a6e85[_0x50dd('0x17')]?_0x4b3fe6(this,_0x3a6e85):'',this['revisionActionsView']&&this[_0x50dd('0x1')][_0x50dd('0x1c')](_0x50dd('0x1e'))['to'](this),this['setTemplate']({'tag':_0x50dd('0x10'),'attributes':{'class':['ck',_0x50dd('0x19'),'ck-revision-history-sidebar__revision-wrapper',_0x5e3df3['if'](_0x50dd('0x13'),_0x50dd('0x4'))]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset',_0x50dd('0x26'),_0x5e3df3['if']('isEnabled',_0x50dd('0x22'),_0xa4846b=>!_0xa4846b),_0x5e3df3['if'](_0x50dd('0x7'),_0x50dd('0x23')),_0x5e3df3['if']('isHighlighted',_0x50dd('0x1f')),_0x5e3df3['if'](_0x50dd('0x25'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x50dd('0x5')],{'tag':_0x50dd('0x1b'),'attributes':{'class':['ck',_0x50dd('0xe')]},'children':[{'text':_0x5e3df3['to'](_0x50dd('0x12'))}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x50dd('0xf')]},'children':_0x5972b0}]},this[_0x50dd('0x1')]],'on':{'click':_0x5e3df3['to'](_0x142496=>{_0x142496['srcElement'][_0x50dd('0x21')](_0x50dd('0x16'))||this['isReady']&&this['isEnabled']&&this['fire'](_0x50dd('0x6'),{'id':this['id']});})}}]});}[_0x50dd('0xa')](){super[_0x50dd('0xa')]();const _0x628462=this[_0x50dd('0x5')][_0x50dd('0xb')][_0x50dd('0x9')];this[_0x50dd('0x28')](_0x628462,'change',()=>{this['fire'](_0x50dd('0x3'),{'id':this['id'],'name':_0x628462[_0x50dd('0x24')]});});}['select'](){this[_0x50dd('0x7')]=!0x0;}[_0x50dd('0x29')](){this[_0x50dd('0x7')]=!0x1;}['highlight'](){this[_0x50dd('0x11')]=!0x0;}[_0x50dd('0x2')](){this['isHighlighted']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x419b=['ck-hidden','button','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser__inner','bindTemplate','isVisible','false','click','ck-revision-history-sidebar__subrevision-collapser_collapsed','span','set'];(function(_0x37cf2e,_0x419b74){const _0x3197c3=function(_0x4ff6ac){while(--_0x4ff6ac){_0x37cf2e['push'](_0x37cf2e['shift']());}};_0x3197c3(++_0x419b74);}(_0x419b,0x14e));const _0x3197=function(_0x37cf2e,_0x419b74){_0x37cf2e=_0x37cf2e-0x0;let _0x3197c3=_0x419b[_0x37cf2e];return _0x3197c3;};import{View as _0x21ab3b}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x21ab3b{constructor(_0x23eebc){super(_0x23eebc);const _0x9e7f66=this[_0x3197('0x0')];this[_0x3197('0x6')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x9e7f66['if'](_0x3197('0x1'),_0x3197('0x7'),_0x461787=>!_0x461787),_0x9e7f66['if'](_0x3197('0x9'),_0x3197('0x4'))],'role':_0x3197('0x8'),'aria-pressed':_0x9e7f66['to'](_0x3197('0x9'),_0x2ceaf1=>_0x2ceaf1?_0x3197('0x2'):'true')},'children':[{'tag':_0x3197('0x5'),'attributes':{'class':['ck',_0x3197('0xa')]}}],'on':{'click':_0x9e7f66['to'](_0x3197('0x3'))}});}['toggle'](){this[_0x3197('0x9')]=!this['_isCollapsed'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f89=['creator','createdAt','isSelected','_parentRevisionId','ck-reset','ck-revision-history-sidebar__revision','deselect','ck-revision-history-sidebar__revision_selected','bindTemplate','_createdAtFormatted','ck-revision-history-sidebar__revision__date','select','div','bind'];(function(_0xa5a8b7,_0x2f89d8){const _0x2d2748=function(_0x39319e){while(--_0x39319e){_0xa5a8b7['push'](_0xa5a8b7['shift']());}};_0x2d2748(++_0x2f89d8);}(_0x2f89,0x8f));const _0x2d27=function(_0xa5a8b7,_0x2f89d8){_0xa5a8b7=_0xa5a8b7-0x0;let _0x2d2748=_0x2f89[_0xa5a8b7];return _0x2d2748;};import{View as _0xfdf1f}from'ckeditor5/src/ui.js';import _0x563f95 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x59c5b3}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0xfdf1f{constructor(_0x5b34c1,_0x303a63,_0x1bd0ae){super(_0x5b34c1);const _0x58d7c6=this[_0x2d27('0x5')];this['id']=_0x303a63['id'],this[_0x2d27('0xa')](_0x2d27('0xc'))['to'](_0x303a63),this['set'](_0x2d27('0xd'),!0x1),this[_0x2d27('0xa')](_0x2d27('0x6'))['to'](this,_0x2d27('0xc'),_0x3acc66=>_0x3acc66?_0x59c5b3(_0x5b34c1['uiLanguage'],_0x3acc66):void 0x0),this[_0x2d27('0x0')]=_0x1bd0ae,this['setTemplate']({'tag':_0x2d27('0x9'),'attributes':{'class':['ck',_0x2d27('0x1'),_0x2d27('0x2'),'ck-revision-history-sidebar__subrevision',_0x58d7c6['if'](_0x2d27('0xd'),_0x2d27('0x4'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x2d27('0x7')]},'children':[{'text':_0x58d7c6['to'](_0x2d27('0x6'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x563f95(_0x5b34c1,_0x303a63[_0x2d27('0xb')],!0x0)]}],'on':{'click':_0x58d7c6['to'](this[_0x2d27('0x8')][_0x2d27('0xa')](this))}});}[_0x2d27('0x8')](){this[_0x2d27('0xd')]=!0x0,this['fire'](_0x2d27('0x8'),{'parentId':this[_0x2d27('0x0')]});}[_0x2d27('0x3')](){this[_0x2d27('0xd')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xf190=['toLocaleDateString','numeric','toLocaleTimeString','long'];(function(_0x24ef44,_0xf19036){var _0x27319c=function(_0x57607f){while(--_0x57607f){_0x24ef44['push'](_0x24ef44['shift']());}};_0x27319c(++_0xf19036);}(_0xf190,0xff));var _0x2731=function(_0x24ef44,_0xf19036){_0x24ef44=_0x24ef44-0x0;var _0x27319c=_0xf190[_0x24ef44];return _0x27319c;};export function dateToPrettyFormat(_0x5d44be,_0x39d94c){return _0x39d94c[_0x2731('0x1')](_0x5d44be,{'month':_0x2731('0x0'),'day':_0x2731('0x2')})+',\x20'+_0x39d94c[_0x2731('0x3')](_0x5d44be,{'hour':_0x2731('0x2'),'minute':_0x2731('0x2')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d55=['revisionName','setTemplate','_createRevisionNameInput','cancel','revisionNameInputValue','focus','trim','stopPropagation','form','arrowup','set','arrowdown','value','220','tab','_createButton','keystrokes','_focusCycler','listenTo','focusTracker','check','revisionNameInputView','render','Cancel','arrowright','locale','saveButtonView','forEach','add','extendTemplate','Name\x20of\x20the\x20revision\x20(optional)','element','cancelButtonView','reset','input','ck-responsive-form','ck-button-cancel','arrowleft','fieldView','delegate'];(function(_0x5790a4,_0x4d5537){const _0x5e71a9=function(_0x52388f){while(--_0x52388f){_0x5790a4['push'](_0x5790a4['shift']());}};_0x5e71a9(++_0x4d5537);}(_0x4d55,0x1d4));const _0x5e71=function(_0x5790a4,_0x4d5537){_0x5790a4=_0x5790a4-0x0;let _0x5e71a9=_0x4d55[_0x5790a4];return _0x5e71a9;};import{icons as _0x41573d}from'ckeditor5/src/core.js';import{ButtonView as _0x47095a,FocusCycler as _0x56d6fe,LabeledFieldView as _0x2c4bc3,View as _0xed7c3c,ViewCollection as _0xa79b44,createLabeledInputText as _0x2fd636,injectCssTransitionDisabler as _0x46884b,submitHandler as _0x49835f}from'ckeditor5/src/ui.js';import{FocusTracker as _0x13421b,KeystrokeHandler as _0x37305e}from'ckeditor5/src/utils.js';import{getTranslation as _0x3d7223}from'../../utils/common-translations.js';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0xed7c3c{constructor(_0x5c9635){super(_0x5c9635),this[_0x5e71('0x1f')]=new _0x13421b(),this[_0x5e71('0x1c')]=new _0x37305e(),this['set'](_0x5e71('0x10'),''),this[_0x5e71('0x21')]=this[_0x5e71('0xe')](),this['saveButtonView']=this[_0x5e71('0x1b')](_0x3d7223(_0x5c9635,'Save'),_0x41573d[_0x5e71('0x20')],'ck-button-save'),this[_0x5e71('0x26')]['type']='submit',this[_0x5e71('0x4')]=this[_0x5e71('0x1b')](_0x3d7223(_0x5c9635,_0x5e71('0x23')),_0x41573d[_0x5e71('0xf')],_0x5e71('0x8'),_0x5e71('0xf')),this['_focusables']=new _0xa79b44(),this['_focusCycler']=new _0x56d6fe({'focusables':this['_focusables'],'focusTracker':this[_0x5e71('0x1f')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x5e71('0x1a')}}),this[_0x5e71('0xd')]({'tag':_0x5e71('0x14'),'attributes':{'class':['ck','ck-revision-history-save-revision-form',_0x5e71('0x7')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x5e71('0x26')],this[_0x5e71('0x4')]]}),_0x46884b(this);}['render'](){super[_0x5e71('0x22')](),_0x49835f({'view':this}),([this[_0x5e71('0x21')],this[_0x5e71('0x26')],this[_0x5e71('0x4')]][_0x5e71('0x27')](_0xeb9eeb=>{this['_focusables'][_0x5e71('0x0')](_0xeb9eeb),this[_0x5e71('0x1f')][_0x5e71('0x0')](_0xeb9eeb[_0x5e71('0x3')]);}),this[_0x5e71('0x1c')][_0x5e71('0x1e')](this[_0x5e71('0x3')]));const _0x3d4ab7=_0x48f441=>_0x48f441[_0x5e71('0x13')]();this[_0x5e71('0x1c')]['set'](_0x5e71('0x24'),_0x3d4ab7),this[_0x5e71('0x1c')]['set'](_0x5e71('0x9'),_0x3d4ab7),this['keystrokes'][_0x5e71('0x16')](_0x5e71('0x15'),_0x3d4ab7),this[_0x5e71('0x1c')][_0x5e71('0x16')](_0x5e71('0x17'),_0x3d4ab7);}[_0x5e71('0x11')](){this[_0x5e71('0x1d')]['focusFirst']();}get['revisionName'](){return this[_0x5e71('0x21')][_0x5e71('0xa')][_0x5e71('0x3')][_0x5e71('0x18')]['trim']();}set[_0x5e71('0xc')](_0x282dc2){this[_0x5e71('0x21')][_0x5e71('0xa')][_0x5e71('0x3')]['value']=_0x282dc2[_0x5e71('0x12')]();}[_0x5e71('0x5')](){this[_0x5e71('0x21')][_0x5e71('0xa')][_0x5e71('0x3')][_0x5e71('0x18')]='';}[_0x5e71('0xe')](){const _0x54f163=new _0x2c4bc3(this['locale'],_0x2fd636),_0x2ad0aa=_0x54f163[_0x5e71('0xa')];return _0x2ad0aa[_0x5e71('0x1')]({'attributes':{'maxlength':_0x5e71('0x19')}}),_0x54f163['label']=_0x3d7223(this[_0x5e71('0x25')],_0x5e71('0x2')),_0x2ad0aa['on'](_0x5e71('0x6'),()=>{this[_0x5e71('0x10')]=_0x2ad0aa[_0x5e71('0x3')][_0x5e71('0x18')]['trim']();}),_0x54f163;}[_0x5e71('0x1b')](_0x454c66,_0x4c9b7a,_0x4c33b4,_0x51a849){const _0x3ebffa=new _0x47095a(this[_0x5e71('0x25')]);return _0x3ebffa[_0x5e71('0x16')]({'label':_0x454c66,'icon':_0x4c9b7a,'tooltip':!0x0}),_0x3ebffa['extendTemplate']({'attributes':{'class':_0x4c33b4}}),_0x51a849&&_0x3ebffa[_0x5e71('0xb')]('execute')['to'](this,_0x51a849),_0x3ebffa;}}
|