@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230818.0 → 0.0.0-nightly-20230818.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/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 _0xd7d1=['toViewPosition','_cleanUp','consumable','_markInsertions','shift','set','numberOfChanges','_markMismatchedRemovedTags','getDomRoot','model','_markSuggestions','isAtEnd','compare','schema','forEach','isRemoveSuggestion','_getRevisionsRange','getRevision','add','_makeModelFromViewString','clear','isEqual','revision','processor','activeView','conversion','change:activeChange','length','toModel','_getViewForChange','mapViewToDom','getClientRects','_changeView','then','plugins','_removeUnsupportedChanges','softBreak','hasAttribute','ck-revision-history-root--active','unbindElementFromMarkerName','_getViewObj','name','code','activeChange','attachChange','left','init','userId','getRevisionData','checkAttribute','createUIElement','refresh','map','from','hasClass','isReady','createPositionBefore','range','target','sort','ck-suggestion-marker--active','done','startIndex','isNavigationMode','addRevisionData','string','_makeTape','WidgetToolbarRepository','markers','resolve','isCollapsed','writer','object','level','data-revision-','createRevision','nextSibling','element','markerRange','uiElement','addHighlight','forceDisabled','span','showNextChange','suggestion','flat','next','change:isReady','revision-viewer','revisionHistoryLabel','all','revision-comment:','detachRoot','vid','elementStart','splice','keys','mouseover','end','low','nodeAfter','insertion','isAttached','collaboration.channelId','restoreRevision','_makeModelFromTape','useFillerType','removeMarker','pairId','_appendChild','getChild','_activeViewTarget','ck-suggestion-preview-marker-','isAtStart','elementEnd','getIndex','affectsData','revision-suggestion:','domConverter','toData','loadRevisionData','_initInteractions','previousPosition','endIndex','right','isSuggestion','_setDistance','rootName','_removeMissingPairs','distance','side','changes','_fixObsoleteTags','slice','parse','isOnRoot','diffData','isAddSuggestion','get','editingDowncast','isAfter','revision-suggestion','createPositionFromPath','push','view','_markMarkers','ck-suggestion-preview-marker','split','attributesBefore','insertions','_changeIdToChange','bindElementToMarker','data','_update','adapter','_refreshStartEndIndex','bottom','item','revisionHistory','for','concat','setAttribute','ck-suggestion-marker-split','changeId','values','ck-suggestion-marker-','delete','isContent','_threeWayMerge','execute','getCustomProperty','remove','showStack','document','enableReadOnlyMode','isBlock','RevisionsRepository','destroy','_joinTapes','_data','_setConversion','marked','getRoot','find','newRevisionId','getItems','mapper','change:isEnabled','config','merge','unshift','_revisions','markerNameToElements','dataDowncast','-new','repository','ck-editor__editable__overlay','markerToData','highest','getAttribute','ck-suggestion-marker','addRoot','markersEnd','error','startsWith','has','bind','deletions','children','nextPosition','consume','editing','_cleanMarkers','upcast','authors','attributes','commands','return','isBefore','isRemoved','revisionHistoryAttachChange','selection','roots','reconvertMarker','isAdded','createRange','filter','POSITIVE_INFINITY','markerName','enqueueChange','data-change-id','index','listenTo','offsetSize','test','parent','isInline','_setChanges','RevisionViewer','vid_end','editor','_getChangeFromId','isEnabled','high','viewItem','getWalker','downcastDispatcher','addMarker:revision','removeClass','isIncorrect','getAttributes','deletion','toViewElement','_processTape','revision:','getRootNames','catch','change','wrap','addClass','markersStart','vid_start','currentChangeNumber','modelRange','markerToHighlight','text','ck-revision-history-root-add','_sortAndFilterDiffChanges','mousedown','backward','domEvent','attributesAfter','locale','indexOf','_removeRevisionMarkers','start','insert','_step','abs','isLimit','attribute:vid','type','_balloon','dataToMarker','diff','addMarker:revision-suggestion:insertion'];(function(_0x4ec448,_0xd7d107){const _0x3bc164=function(_0x17797c){while(--_0x17797c){_0x4ec448['push'](_0x4ec448['shift']());}};_0x3bc164(++_0xd7d107);}(_0xd7d1,0x1af));const _0x3bc1=function(_0x4ec448,_0xd7d107){_0x4ec448=_0x4ec448-0x0;let _0x3bc164=_0xd7d1[_0x4ec448];return _0x3bc164;};import{Plugin as _0x92dd13,Command as _0x484f37}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x23e2a0}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1a4322}from'ckeditor5/src/ui';import{DocumentFragment as _0x111441,Element as _0x6329a5,Text as _0x1fd28b,ViewDocumentFragment as _0x42248a,ViewText as _0x679ba5,ViewElement as _0x184656,ViewContainerElement as _0x19b6be,ViewAttributeElement as _0x8e8bde,ViewEmptyElement as _0x32c15c,ViewRawElement as _0x32b0b0,ViewUIElement as _0x56cce6}from'ckeditor5/src/engine';import{Users as _0x128512,getMarkerDomElement as _0x1340aa}from'ckeditor5-collaboration/src/collaboration-core';import _0x44934d from'./ui/revisionviewer/changedetailsview';import _0x361e7e from'./revisionsrepository';import _0x28f86b from'./changeitem';import{default as _0x210a4a}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4c670b}from'lodash-es';const tt={'c':_0x19b6be,'a':_0x8e8bde,'e':_0x32c15c,'r':_0x32b0b0,'u':_0x56cce6};export default class d extends _0x92dd13{static get['pluginName'](){return _0x3bc1('0x5d');}static get['requires'](){return[_0x128512,_0x1a4322,_0x361e7e];}constructor(_0x430d15){super(_0x430d15),this[_0x3bc1('0x32')]=this[_0x3bc1('0x5f')][_0x3bc1('0xaf')][_0x3bc1('0x117')](_0x3bc1('0x1f')),this[_0x3bc1('0x92')](_0x3bc1('0xb8'),null),this['set']('activeView',null),this[_0x3bc1('0xfc')]=null,this[_0x3bc1('0x92')]('diff',null),this[_0x3bc1('0x92')](_0x3bc1('0xc4'),!0x1),this[_0x3bc1('0x92')]('isEnabled',!0x0),this['on'](_0x3bc1('0x2a'),(_0x327794,_0x388527,_0x3ebd05)=>{this['activeChange']=null,this[_0x3bc1('0xa5')]=null,this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x70')](_0x9a8426=>{for(const _0x727fa0 of this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x1c')][_0x3bc1('0x4d')])_0x3ebd05?_0x9a8426[_0x3bc1('0x67')](_0x3bc1('0x33'),_0x727fa0):_0x9a8426[_0x3bc1('0x72')](_0x3bc1('0x33'),_0x727fa0);});}),this['bind'](_0x3bc1('0xcc'))['to'](this,_0x3bc1('0xb8'),_0x1c7294=>null!==_0x1c7294),this[_0x3bc1('0x3d')](_0x3bc1('0x75'))['to'](this,'isReady',this,_0x3bc1('0x8b'),this,_0x3bc1('0xb8'),(_0x57cccb,_0x143206,_0x2b76a1)=>_0x57cccb&&_0x2b76a1?_0x143206['changes'][_0x3bc1('0x100')](_0x2b76a1):0x0),this[_0x3bc1('0x3d')](_0x3bc1('0x93'))['to'](this,_0x3bc1('0xc4'),this,_0x3bc1('0x8b'),(_0x4eb346,_0x460227)=>_0x4eb346?_0x460227[_0x3bc1('0x110')][_0x3bc1('0xa8')]:0x0),this[_0x3bc1('0xad')]=null,this[_0x3bc1('0x5')]=new Map(),this[_0x3bc1('0x9')]=null,this[_0x3bc1('0x89')]=this[_0x3bc1('0x5f')]['plugins'][_0x3bc1('0x117')](_0x1a4322);}[_0x3bc1('0xbb')](){const _0x3bbd16=this['editor'],_0xc72be5=new ShowChangeCommand(_0x3bbd16,{'direction':_0x3bc1('0x7c')}),_0x401860=new ShowChangeCommand(_0x3bbd16,{'direction':'forward'});(_0x3bbd16['commands'][_0x3bc1('0x9f')]('showPreviousChange',_0xc72be5),_0x3bbd16[_0x3bc1('0x47')][_0x3bc1('0x9f')](_0x3bc1('0xe0'),_0x401860),_0x3bbd16[_0x3bc1('0x47')][_0x3bc1('0x9f')](_0x3bc1('0xf5'),new RestoreRevisionCommand(_0x3bbd16)),this['on']('change:numberOfChanges',()=>{_0xc72be5['refresh'](),_0x401860['refresh']();}),this[_0x3bc1('0x23')](),this[_0x3bc1('0x106')](),_0x3bbd16[_0x3bc1('0x1d')](_0x3bc1('0xe5')),_0x3bbd16[_0x3bc1('0xaf')]['has'](_0x3bc1('0xd0')))&&_0x3bbd16[_0x3bc1('0xaf')][_0x3bc1('0x117')](_0x3bc1('0xd0'))[_0x3bc1('0xde')]('revision-viewer');}async[_0x3bc1('0xbd')](_0x290dc0){await this['loadRevisionData'](_0x290dc0);const _0x5698b6={};for(const _0x212aa6 in _0x290dc0[_0x3bc1('0x115')]){if(_0x290dc0[_0x3bc1('0x115')][_0x212aa6][_0x3bc1('0xb9')]&&!_0x290dc0[_0x3bc1('0x115')][_0x212aa6]['attachChange'][_0x3bc1('0xf3')])continue;const _0x4b3239=this[_0x3bc1('0x81')](JSON[_0x3bc1('0x113')](_0x290dc0[_0x3bc1('0x115')][_0x212aa6][_0x3bc1('0x4')])),_0x3dda83=this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x1c')],_0x3bc37c=new _0x42248a(_0x3dda83,_0x4b3239[_0x3bc1('0xc1')](_0x160486=>this['_getViewObj'](_0x160486)));this['editor']['data'][_0x3bc1('0xa4')]['useFillerType'](_0x3bc1('0x24')),_0x5698b6[_0x212aa6]=this['editor'][_0x3bc1('0x7')][_0x3bc1('0xa4')][_0x3bc1('0x104')](_0x3bc37c),this[_0x3bc1('0x5f')][_0x3bc1('0x7')][_0x3bc1('0xa4')][_0x3bc1('0xf7')]('default');}return _0x5698b6;}async['getRevisionRootsAttributes'](_0x432ff1){await this[_0x3bc1('0x105')](_0x432ff1);const _0x34ef08={};for(const _0x10de5a in _0x432ff1['diffData'])_0x432ff1['diffData'][_0x10de5a][_0x3bc1('0xb9')]&&!_0x432ff1[_0x3bc1('0x115')][_0x10de5a][_0x3bc1('0xb9')][_0x3bc1('0xf3')]||(_0x34ef08[_0x10de5a]=_0x432ff1[_0x3bc1('0x115')][_0x10de5a]['attributesAfter']||{});return _0x34ef08;}[_0x3bc1('0x81')](_0x41c4ae){return(_0x41c4ae=_0x41c4ae[_0x3bc1('0x51')](_0x569c62=>!_0x569c62[_0x3bc1('0xb6')]||'revision-start'!==_0x569c62[_0x3bc1('0xb6')]&&'revision-end'!==_0x569c62[_0x3bc1('0xb6')]))['forEach'](_0x4a6a74=>{_0x3bc1('0xce')!=typeof _0x4a6a74&&(_0x4a6a74[_0x3bc1('0x3f')]=this[_0x3bc1('0x81')](_0x4a6a74[_0x3bc1('0x3f')]),_0x4a6a74[_0x3bc1('0x46')]=_0x4a6a74[_0x3bc1('0x46')][_0x3bc1('0x51')](_0x473df4=>!_0x473df4[0x0][_0x3bc1('0x3b')](_0x3bc1('0xd7'))));}),_0x41c4ae;}async[_0x3bc1('0x99')](_0x5796a9,_0x13b2a9,_0x22adcd=!0x1){if(!this[_0x3bc1('0x61')])return;const _0x5edc23=this[_0x3bc1('0x8b')],_0x292ca0=this[_0x3bc1('0x32')],_0x142742=_0x3bc1('0xce')==typeof _0x5796a9?_0x292ca0[_0x3bc1('0x9e')](_0x5796a9):_0x5796a9,_0x41929c=_0x3bc1('0xce')==typeof _0x13b2a9?_0x292ca0[_0x3bc1('0x9e')](_0x13b2a9):_0x13b2a9,_0x345104=_0x142742['id'],_0x4c5255=_0x41929c?_0x41929c['id']:null;if(!_0x22adcd&&this[_0x3bc1('0x8b')]&&this[_0x3bc1('0x8b')][_0x3bc1('0x27')]===_0x345104&&this[_0x3bc1('0x8b')]['oldRevisionId']===_0x4c5255)return Promise[_0x3bc1('0xd2')]();this[_0x3bc1('0xc4')]=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new _0x210a4a(_0x345104,_0x4c5255);const _0x310c64=this[_0x3bc1('0x9d')](_0x142742,_0x41929c,!0x0)[_0x3bc1('0xc1')](_0xa3b091=>this[_0x3bc1('0x105')](_0xa3b091));return _0x310c64[_0x3bc1('0x11c')](new Promise(_0x2dcfd1=>{setTimeout(_0x2dcfd1,0x14);})),Promise[_0x3bc1('0xe7')](_0x310c64)[_0x3bc1('0xae')](()=>{if(!this['isEnabled'])return;this[_0x3bc1('0x8e')]();const _0x312899=this['_getDiff'](_0x345104,_0x4c5255);for(const _0x3d6593 of _0x312899['changes'])this[_0x3bc1('0x5')][_0x3bc1('0x92')](_0x3d6593['id'],_0x3d6593);this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['enqueueChange']({'isUndoable':!0x1},_0x1963a7=>{for(const _0x1417ff of this[_0x3bc1('0x5f')]['model'][_0x3bc1('0x1c')][_0x3bc1('0x6e')]())_0x1963a7[_0x3bc1('0xe9')](_0x1417ff);for(const _0x2dfd7c of Object[_0x3bc1('0xed')](_0x312899[_0x3bc1('0x96')])){const _0x3e5b2b=_0x1963a7[_0x3bc1('0x38')](_0x2dfd7c);for(const _0x1a2243 of Object[_0x3bc1('0xed')](_0x312899['attributes'][_0x2dfd7c]))_0x1963a7['setAttribute'](_0x1a2243,_0x312899[_0x3bc1('0x46')][_0x2dfd7c][_0x1a2243],_0x3e5b2b);_0x1963a7['insert'](_0x312899['model'][_0x2dfd7c],_0x3e5b2b,0x0);}}),this[_0x3bc1('0x8b')][_0x3bc1('0x5c')](this[_0x3bc1('0x7a')](_0x312899['changes'])),this['isReady']=!0x0;})[_0x3bc1('0x6f')](_0x3b6c36=>{console[_0x3bc1('0x3a')](_0x3b6c36),this['_cleanUp'](),_0x5edc23&&(this[_0x3bc1('0x8b')]=_0x5edc23),this[_0x3bc1('0xc4')]=!0x0;});}[_0x3bc1('0xcd')](_0x3640d7,_0x146288){const _0x1b88ff=this[_0x3bc1('0x32')][_0x3bc1('0xd8')](_0x3640d7);return _0x1b88ff['on'](_0x3bc1('0x8'),(_0xb0fe09,_0x5a35db,_0x489a15)=>_0x146288(_0x5a35db,_0x489a15,_0x1b88ff)),this['repository']['addRevision'](_0x1b88ff),_0x1b88ff;}[_0x3bc1('0x105')](_0x15029f){if(!_0x15029f||_0x15029f[_0x3bc1('0x115')])return Promise[_0x3bc1('0xd2')]();{const _0x13b082=this['editor'][_0x3bc1('0x2b')][_0x3bc1('0x117')](_0x3bc1('0xf4'));return this[_0x3bc1('0x9')][_0x3bc1('0x9e')]({'channelId':_0x13b082,'revisionId':_0x15029f['id']})[_0x3bc1('0xae')](_0x4d0aeb=>{_0x15029f[_0x3bc1('0x8')]({'diffData':_0x4d0aeb[_0x3bc1('0x115')]},!0x0);});}}[_0x3bc1('0x8e')](){this[_0x3bc1('0xb8')]=null,this['_cleanMarkers'](),this[_0x3bc1('0xad')]&&this[_0x3bc1('0xad')][_0x3bc1('0x20')](),this[_0x3bc1('0xad')]=null,this[_0x3bc1('0x5')][_0x3bc1('0xa1')](),this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0x54')]({'isUndoable':!0x1},_0x954a74=>{for(const _0x1b25ae of this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0x1c')][_0x3bc1('0x6e')]())_0x954a74[_0x3bc1('0xe9')](_0x1b25ae);});}[_0x3bc1('0x7a')](_0x5cfcda){const _0x372ba6=[],_0x48f330=new Map();for(const _0x10bc6b of this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0x1c')][_0x3bc1('0x6e')]()){const _0x8df368=this[_0x3bc1('0x5f')]['editing'][_0x3bc1('0x11d')][_0x3bc1('0x95')](_0x10bc6b);if(!_0x8df368)continue;const _0x5654ea=_0x8df368['getClientRects']()[_0x3bc1('0xc')](0x0);_0x5654ea&&(_0x372ba6[_0x3bc1('0x11c')](_0x10bc6b),_0x48f330[_0x3bc1('0x92')](_0x10bc6b,_0x5654ea));}return _0x372ba6['sort']((_0xd51cb5,_0x26d1d0)=>{const _0x32b02e=_0x48f330[_0x3bc1('0x117')](_0xd51cb5),_0x2931a1=_0x48f330[_0x3bc1('0x117')](_0x26d1d0);return _0x32b02e['y']-_0x2931a1['y']||_0x32b02e['x']-_0x2931a1['x'];}),(_0x5cfcda=_0x5cfcda[_0x3bc1('0x51')](_0x4e5a48=>_0x372ba6['includes'](_0x4e5a48[_0x3bc1('0x10c')])))[_0x3bc1('0xc8')]((_0x2b60fa,_0x5b4068)=>_0x372ba6['indexOf'](_0x2b60fa['rootName'])-_0x372ba6[_0x3bc1('0x80')](_0x5b4068[_0x3bc1('0x10c')])),_0x5cfcda;}[_0x3bc1('0xcf')](_0x215f9f){const _0x3da36c=Array[_0x3bc1('0xc2')](_0x215f9f['markers'])[_0x3bc1('0x51')](([_0x5d6e80,_0x2513bd])=>_0x5d6e80[_0x3bc1('0x3b')](_0x3bc1('0x6d'))&&!_0x2513bd[_0x3bc1('0xd3')]),_0x510fd1=Array['from'](this[_0x3bc1('0x5f')]['model']['createRangeIn'](_0x215f9f)[_0x3bc1('0x64')]({'singleCharacters':!0x0}));if(0x0!=_0x3da36c[_0x3bc1('0xa8')])for(const _0xa8875d of _0x510fd1){const [_0x297c79,_0x12e9dd]=_0x3da36c[0x0],[,_0x54cc60,_0x464d21]=_0x297c79[_0x3bc1('0x2')](':');if(_0x12e9dd[_0x3bc1('0xef')][_0x3bc1('0xa2')](_0xa8875d['nextPosition'])&&_0x3da36c[_0x3bc1('0x91')](),(_0xa8875d[_0x3bc1('0x107')][_0x3bc1('0xa2')](_0x12e9dd[_0x3bc1('0x82')])||_0xa8875d['previousPosition'][_0x3bc1('0x119')](_0x12e9dd[_0x3bc1('0x82')]))&&(_0x3bc1('0xf2')==_0x54cc60?_0xa8875d['isAdded']={'userId':_0x464d21}:_0x3bc1('0x6a')==_0x54cc60&&(_0xa8875d[_0x3bc1('0x4a')]={'userId':_0x464d21})),0x0==_0x3da36c[_0x3bc1('0xa8')])break;}return _0x510fd1;}[_0x3bc1('0xa')](_0x275da3){const _0x3f8bf3=new Map();for(let _0x4c3d37=0x0;_0x4c3d37<_0x275da3[_0x3bc1('0xa8')];_0x4c3d37++)_0x3bc1('0x78')===_0x275da3[_0x4c3d37]['type']?(_0x275da3[_0x4c3d37][_0x3bc1('0xc')][_0x3bc1('0xcb')]=_0x4c3d37,_0x275da3[_0x4c3d37][_0x3bc1('0xc')][_0x3bc1('0x108')]=_0x4c3d37):(_0x3bc1('0xeb')===_0x275da3[_0x4c3d37][_0x3bc1('0x88')]?_0x275da3[_0x4c3d37]['item'][_0x3bc1('0xcb')]=_0x4c3d37:_0x3bc1('0xff')===_0x275da3[_0x4c3d37][_0x3bc1('0x88')]&&(_0x275da3[_0x4c3d37][_0x3bc1('0xc')][_0x3bc1('0x108')]=_0x4c3d37),_0x3f8bf3[_0x3bc1('0x92')](_0x275da3[_0x4c3d37]['id'],_0x4c3d37));for(const _0x474f9 of _0x3f8bf3[_0x3bc1('0x13')]())_0x3bc1('0xeb')===_0x275da3[_0x474f9][_0x3bc1('0x88')]?_0x275da3[_0x474f9][_0x3bc1('0xc')][_0x3bc1('0x108')]=_0x3f8bf3[_0x3bc1('0x117')](_0x275da3[_0x474f9][_0x3bc1('0xf9')]):_0x3bc1('0xff')===_0x275da3[_0x474f9][_0x3bc1('0x88')]&&(_0x275da3[_0x474f9][_0x3bc1('0xc')][_0x3bc1('0xcb')]=_0x3f8bf3[_0x3bc1('0x117')](_0x275da3[_0x474f9][_0x3bc1('0xf9')]));}['_processTape'](_0x27089a){for(let _0x591845=0x0;_0x591845<_0x27089a['length'];_0x591845++){if(_0x3bc1('0xeb')===_0x27089a[_0x591845][_0x3bc1('0x88')])_0x27089a[_0x591845][_0x3bc1('0xc')]['startIndex']=_0x591845;else{if(_0x3bc1('0xff')===_0x27089a[_0x591845][_0x3bc1('0x88')]){_0x27089a[_0x591845][_0x3bc1('0xc')]['endIndex']=_0x591845;const _0x14f1a2=_0x27089a[_0x591845][_0x3bc1('0xc')][_0x3bc1('0xcb')];_0x27089a[_0x14f1a2][_0x3bc1('0xf9')]=_0x27089a[_0x591845]['id'],_0x27089a[_0x591845][_0x3bc1('0xf9')]=_0x27089a[_0x14f1a2]['id'];}else _0x27089a[_0x591845][_0x3bc1('0xc')][_0x3bc1('0xcb')]=_0x591845,_0x27089a[_0x591845][_0x3bc1('0xc')][_0x3bc1('0x108')]=_0x591845,_0x27089a[_0x591845][_0x3bc1('0xf9')]=null;}_0x27089a[_0x591845][_0x3bc1('0x73')]||(_0x27089a[_0x591845][_0x3bc1('0x73')]=[],_0x27089a[_0x591845][_0x3bc1('0x39')]=[]);}}[_0x3bc1('0x90')](_0x51d908,_0xfd21f2){const _0x18500f=_0x51d908[_0x3bc1('0x51')](_0x5dd08d=>!_0x5dd08d[_0x3bc1('0x4f')]);for(let _0x43d56a=0x0;_0x43d56a<_0xfd21f2[_0x3bc1('0xa8')];_0x43d56a++)_0xfd21f2[_0x43d56a][_0x3bc1('0x4f')]&&(_0x18500f[_0x43d56a][_0x3bc1('0x4f')]=_0xfd21f2[_0x43d56a][_0x3bc1('0x4f')]);}[_0x3bc1('0xa0')](_0x5f551c){const _0x2ad62e=JSON[_0x3bc1('0x113')](_0x5f551c),_0x5dc178=this[_0x3bc1('0x5f')][_0x3bc1('0x42')]['view'][_0x3bc1('0x1c')],_0x118e55=new _0x42248a(_0x5dc178,_0x2ad62e[_0x3bc1('0xc1')](_0x59b6c4=>this[_0x3bc1('0xb5')](_0x59b6c4)));return this[_0x3bc1('0x5f')]['data'][_0x3bc1('0xa9')](_0x118e55);}[_0x3bc1('0xb5')](_0x5af161){const _0x1ebf50=this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x1c')];if(_0x3bc1('0xce')==typeof _0x5af161)return new _0x679ba5(_0x1ebf50,_0x5af161);{const _0x3018fc=_0x5af161[_0x3bc1('0x3f')]['map'](_0x35f354=>this['_getViewObj'](_0x35f354));return new(tt[_0x5af161[(_0x3bc1('0x88'))]]||_0x184656)(_0x1ebf50,_0x5af161[_0x3bc1('0xb6')],_0x5af161[_0x3bc1('0x46')],_0x3018fc);}}['_getDiff'](_0x27ae75,_0x4356a9=null){const _0x3e0b0a=this['repository'][_0x3bc1('0x9e')](_0x27ae75),_0x1fcabb=_0x4356a9?this[_0x3bc1('0x32')][_0x3bc1('0x9e')](_0x4356a9):null,_0x16a15a=this[_0x3bc1('0x9d')](_0x3e0b0a,_0x1fcabb),_0x5303ea=_0x16a15a[_0x16a15a[_0x3bc1('0xa8')]-0x1],_0x4f269b=new Map(),_0x17a8c7={'model':{},'attributes':{},'changes':[]},_0x47cd1c=new Set(),_0xf45022=new Map();for(let _0x396f9c=_0x16a15a[_0x3bc1('0xa8')]-0x1;_0x396f9c>=0x0;_0x396f9c--){const _0x17bde9=_0x16a15a[_0x396f9c];for(const _0x2105f3 of Object[_0x3bc1('0xed')](_0x17bde9[_0x3bc1('0x115')]))if(_0x17bde9[_0x3bc1('0x115')][_0x2105f3]['attachChange']){const _0x308cd7=_0x17bde9[_0x3bc1('0x115')][_0x2105f3][_0x3bc1('0xb9')];_0x308cd7['isAttached']?(_0x47cd1c[_0x3bc1('0x9f')](_0x2105f3),_0xf45022[_0x3bc1('0x3c')](_0x2105f3)&&_0xf45022[_0x3bc1('0x117')](_0x2105f3)[_0x3bc1('0xbc')]==_0x308cd7[_0x3bc1('0xbc')]?_0xf45022[_0x3bc1('0x15')](_0x2105f3):_0xf45022[_0x3bc1('0x92')](_0x2105f3,_0x308cd7)):_0xf45022[_0x3bc1('0x3c')](_0x2105f3)?(_0x47cd1c['delete'](_0x2105f3),_0xf45022[_0x3bc1('0x15')](_0x2105f3)):(_0x47cd1c[_0x3bc1('0x9f')](_0x2105f3),_0xf45022[_0x3bc1('0x92')](_0x2105f3,_0x308cd7));}else _0x47cd1c[_0x3bc1('0x9f')](_0x2105f3);}for(const _0x4cacd4 of _0x47cd1c){const _0x3a897b=_0xf45022[_0x3bc1('0x3c')](_0x4cacd4)&&!_0xf45022[_0x3bc1('0x117')](_0x4cacd4)['isAttached'];let _0x1a4c06=_0x3a897b?_0x16a15a[_0x3bc1('0xa8')]-0x1:0x0;const _0x26ec1e=_0x3a897b?-0x1:0x1;for(;_0x16a15a[_0x1a4c06];){const _0x1b84b9=_0x16a15a[_0x1a4c06];if(_0x1b84b9['diffData'][_0x4cacd4]){const _0x172435=_0x3a897b?_0x1b84b9['diffData'][_0x4cacd4][_0x3bc1('0x3')]:_0x1b84b9['diffData'][_0x4cacd4][_0x3bc1('0x7e')];_0x17a8c7[_0x3bc1('0x46')][_0x4cacd4]=_0x172435?_0x4c670b(_0x172435):{};break;}_0x1a4c06+=_0x26ec1e;}}for(const _0x150d1c of _0x16a15a){_0x150d1c[_0x3bc1('0x96')]={};for(const _0x30040a of _0x150d1c[_0x3bc1('0x45')])_0x4f269b[_0x3bc1('0x92')](_0x30040a['id'],_0x30040a);for(const _0x2bd8df of _0x47cd1c){const _0x33de7e=_0x150d1c[_0x3bc1('0x115')][_0x2bd8df]?_0x150d1c[_0x3bc1('0x115')][_0x2bd8df][_0x3bc1('0x4')]:'[]',_0x2f0821=_0x150d1c[_0x3bc1('0x115')][_0x2bd8df]?_0x150d1c['diffData'][_0x2bd8df][_0x3bc1('0x3e')]:'[]';_0x150d1c[_0x3bc1('0x96')][_0x2bd8df]={'insertions':this[_0x3bc1('0xa0')](_0x33de7e),'deletions':this['_makeModelFromViewString'](_0x2f0821)};}}for(const _0x50bcc4 of _0x47cd1c){let _0x1b4010=null,_0x5b5d67=0x0;const _0x2fe265=new Map(Array[_0x3bc1('0xc2')](_0x3e0b0a['model'][_0x50bcc4]['insertions'][_0x3bc1('0xd1')])[_0x3bc1('0x51')](([_0x54a843])=>!_0x54a843['startsWith'](_0x3bc1('0x6d'))));let _0x225bcd=0x0;for(const _0x2935c1 of _0x16a15a){const _0x413527=this['_makeTape'](_0x2935c1[_0x3bc1('0x96')][_0x50bcc4][_0x3bc1('0x4')]);_0x2935c1==_0x3e0b0a?(_0x1b4010=_0x413527,_0x5b5d67=_0x1b4010[_0x3bc1('0xa8')],_0x1b4010[_0x3bc1('0x9b')](_0x292155=>{_0x292155['id']=_0x225bcd++;}),this[_0x3bc1('0x6c')](_0x1b4010)):this['_markInsertions'](_0x1b4010,_0x413527);const _0x863586=_0x1b4010[_0x3bc1('0x51')](_0x35304e=>!_0x35304e['isAdded'])[_0x3bc1('0xc1')](_0x52a6ed=>_0x52a6ed['id']);let _0x1964fd=0x0;const _0x2fdba1=this[_0x3bc1('0xcf')](_0x2935c1[_0x3bc1('0x96')][_0x50bcc4][_0x3bc1('0x3e')]);_0x2fdba1[_0x3bc1('0x9b')](_0x2c68db=>{_0x2c68db['isRemoved']?_0x2c68db['id']=_0x5b5d67++:_0x2c68db['id']=_0x863586[_0x1964fd++];}),this[_0x3bc1('0x6c')](_0x2fdba1),this[_0x3bc1('0x10b')](_0x1b4010,'isAdded'),this[_0x3bc1('0x10b')](_0x2fdba1,_0x3bc1('0x4a')),_0x2935c1==_0x3e0b0a&&this[_0x3bc1('0x0')](_0x1b4010,_0x2fe265),_0x1b4010=this[_0x3bc1('0x21')](_0x1b4010,_0x2fdba1),this[_0x3bc1('0xa')](_0x1b4010),this['_setDistance'](_0x1b4010,_0x3bc1('0x4a'));}_0x1b4010=_0x1b4010['filter'](_0x5b4b32=>!(_0x5b4b32['isAdded']&&_0x5b4b32['isRemoved']));const _0x566419=new Map(_0x5303ea[_0x3bc1('0x96')][_0x50bcc4][_0x3bc1('0x3e')][_0x3bc1('0xd1')]),_0x522d21=new Set(_0x2fe265[_0x3bc1('0xed')]());for(const _0x4b86bf of _0x566419[_0x3bc1('0xed')]())_0x522d21[_0x3bc1('0x15')](_0x4b86bf);this['_markSuggestions'](_0x1b4010,_0x522d21),this[_0x3bc1('0x111')](_0x1b4010),_0x1b4010=this[_0x3bc1('0x10d')](_0x1b4010),_0x1b4010=this['_markMismatchedRemovedTags'](_0x1b4010),_0x1b4010=this['_removeUnsupportedChanges'](_0x1b4010);const {root:_0x3ca1af,changes:_0x5d6053}=this[_0x3bc1('0xf6')](_0x1b4010,_0x4f269b,_0x50bcc4);_0x17a8c7[_0x3bc1('0x96')][_0x50bcc4]=_0x3ca1af;const _0x591572=_0xf45022[_0x3bc1('0x117')](_0x50bcc4);if(_0x591572){const _0x3b0389=_0x4f269b[_0x3bc1('0x117')](_0x591572[_0x3bc1('0xbc')]),_0x596c67=new _0x28f86b({'author':_0x3b0389,'type':_0x591572[_0x3bc1('0xf3')]?_0x3bc1('0x9f'):_0x3bc1('0x1a'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x50bcc4});_0x5d6053[_0x3bc1('0x2d')](_0x596c67),_0x17a8c7[_0x3bc1('0x46')][_0x50bcc4]['revisionHistoryAttachChange']=_0x596c67['id'];}_0x17a8c7[_0x3bc1('0x110')]=_0x17a8c7['changes'][_0x3bc1('0xf')](_0x5d6053);}return _0x17a8c7;}[_0x3bc1('0x0')](_0x215268,_0x37a317){for(let _0x38a7f9=0x0;_0x38a7f9<_0x215268['length'];_0x38a7f9++)for(const [_0xc11435,_0xea5245]of _0x37a317)_0xea5245[_0x3bc1('0x82')][_0x3bc1('0xa2')](_0x215268[_0x38a7f9][_0x3bc1('0x107')])&&_0x215268[_0x38a7f9]['markersStart'][_0x3bc1('0x11c')](_0xc11435),_0xea5245[_0x3bc1('0xef')]['isEqual'](_0x215268[_0x38a7f9][_0x3bc1('0x40')])&&_0x215268[_0x38a7f9][_0x3bc1('0x39')]['push'](_0xc11435);}[_0x3bc1('0x21')](_0xa0824f,_0x188db0){let _0x4a503e=[],_0x9ad945=0x0,_0x409f0a=0x0;for(;_0x9ad945<_0xa0824f[_0x3bc1('0xa8')]||_0x409f0a<_0x188db0[_0x3bc1('0xa8')];){const _0xdafd7d=_0xa0824f[_0x9ad945]||{},_0x3f1302=_0x188db0[_0x409f0a]||{};if(_0xdafd7d['id']==_0x3f1302['id'])_0x9ad945++,_0x409f0a++,_0x4a503e['push'](_0xdafd7d);else{if(_0x3f1302['isRemoved']&&_0xdafd7d[_0x3bc1('0x4f')]){const {commonTape:_0x2ffc61,iEnd:_0x5c5558,jEnd:_0x5ebb80}=this[_0x3bc1('0x17')](_0xa0824f,_0x9ad945,_0x188db0,_0x409f0a);_0x4a503e=_0x4a503e['concat'](_0x2ffc61),_0x9ad945=_0x5c5558,_0x409f0a=_0x5ebb80;}else _0x3f1302['isRemoved']?(_0x409f0a++,_0x4a503e[_0x3bc1('0x11c')](_0x3f1302)):(_0x9ad945++,_0x4a503e[_0x3bc1('0x11c')](_0xdafd7d));}}return _0x4a503e;}[_0x3bc1('0x97')](_0x228c2f,_0xbe17ee){const _0x490595=[];for(let _0x40b66d=0x0;_0x40b66d<_0x228c2f[_0x3bc1('0xa8')];_0x40b66d++){for(let _0x587c65=0x0;_0x587c65<_0x228c2f[_0x40b66d]['markersStart'][_0x3bc1('0xa8')];_0x587c65++){const _0x493a3e=_0x228c2f[_0x40b66d]['markersStart'][_0x587c65];if(!_0xbe17ee[_0x3bc1('0x3c')](_0x493a3e))continue;const {group:_0x44c07c,type:_0x27fe62,authorId:_0x21b56d}=_0x514063(_0x493a3e);'revision-suggestion'!=_0x44c07c||'insertion'!=_0x27fe62&&'deletion'!=_0x27fe62||(_0x490595[_0x3bc1('0x2d')]({'type':_0x27fe62,'name':_0x493a3e,'userId':_0x21b56d}),_0x228c2f[_0x40b66d][_0x3bc1('0x73')][_0x3bc1('0xec')](_0x587c65,0x1),_0x587c65--);}_0x50643a(_0x228c2f[_0x40b66d]);for(let _0x11847e=0x0;_0x11847e<_0x228c2f[_0x40b66d][_0x3bc1('0x39')]['length'];_0x11847e++){const _0x2c9a72=_0x228c2f[_0x40b66d][_0x3bc1('0x39')][_0x11847e];if(!_0xbe17ee[_0x3bc1('0x3c')](_0x2c9a72))continue;const {group:_0x5a6b90,type:_0x369ff7}=_0x514063(_0x2c9a72);if(_0x3bc1('0x11a')!=_0x5a6b90||'insertion'!=_0x369ff7&&_0x3bc1('0x6a')!=_0x369ff7)continue;_0x228c2f[_0x40b66d]['markersEnd'][_0x3bc1('0xec')](_0x11847e,0x1),_0x11847e--;const _0x433edd=_0x490595['findIndex'](_0x31ecd2=>_0x31ecd2['name']==_0x2c9a72);_0x433edd>-0x1&&_0x490595['splice'](_0x433edd,0x1);}}function _0x514063(_0x248865){const _0x109e50=_0x248865[_0x3bc1('0x2')](':');return{'group':_0x109e50[0x0],'type':_0x109e50[0x1],'subType':_0x109e50[_0x3bc1('0xa8')]>=0x5?_0x109e50[0x2]:null,'id':_0x109e50['length']<0x5?_0x109e50[0x2]:_0x109e50[0x3],'authorId':_0x109e50[_0x3bc1('0xa8')]<0x5?_0x109e50[0x3]:_0x109e50[0x4],'markerCount':0x6==_0x109e50['length']?_0x109e50[0x5]:null};}function _0x50643a(_0xbab19){for(let _0xb92374=0x0;_0xb92374<_0x490595[_0x3bc1('0xa8')];_0xb92374++){if(_0xbab19[_0x3bc1('0x4f')]&&_0x3bc1('0xf2')==_0x490595[_0xb92374][_0x3bc1('0x88')])return _0xbab19[_0x3bc1('0x116')]=_0x490595[_0xb92374],void delete _0xbab19[_0x3bc1('0x4f')];if(!_0xbab19['isAdded']&&!_0xbab19[_0x3bc1('0x4a')]&&_0x3bc1('0x6a')==_0x490595[_0xb92374][_0x3bc1('0x88')])return void(_0xbab19[_0x3bc1('0x9c')]=_0x490595[_0xb92374]);}}}[_0x3bc1('0x10b')](_0x54470c,_0x6a8e09){let _0x4b09a2=0x0,_0x1de569=!0x1;const _0x6d0a53=new Map();for(const _0x3519ad of _0x54470c)_0x3519ad[_0x6a8e09]?_0x1de569&&(_0x4b09a2++,_0x1de569=!0x1):(_0x4b09a2++,_0x1de569=!0x0),_0x6d0a53[_0x3bc1('0x92')](_0x3519ad['id'],_0x4b09a2);for(let _0x276915=0x0;_0x276915<_0x54470c[_0x3bc1('0xa8')];_0x276915++){if(_0x3bc1('0x4a')==_0x6a8e09&&_0x54470c[_0x276915]['isAdded']||_0x3bc1('0x4f')==_0x6a8e09&&_0x54470c[_0x276915][_0x3bc1('0x4a')])continue;if(_0x3bc1('0x78')==_0x54470c[_0x276915][_0x3bc1('0x88')]){_0x54470c[_0x276915][_0x3bc1('0x10e')]=0x0;continue;}const _0x48e7d=_0x6d0a53[_0x3bc1('0x117')](_0x54470c[_0x276915][_0x3bc1('0xf9')]),_0x59254e=_0x6d0a53[_0x3bc1('0x117')](_0x54470c[_0x276915]['id']);_0x54470c[_0x276915][_0x3bc1('0x10e')]=_0x48e7d-_0x59254e;}}['_getRevisionsRange'](_0x36e871,_0x43f0fa,_0x5ea1d4=!0x1){const _0x5adac0=[];let _0x4eed79=this[_0x3bc1('0x32')][_0x3bc1('0x100')](_0x36e871),_0x166bb0=this['repository']['getIndex'](_0x43f0fa);for(-0x1==_0x166bb0&&(_0x166bb0=this['repository'][_0x3bc1('0x2e')]['length'],_0x5ea1d4=!0x1);_0x4eed79<_0x166bb0;)_0x5adac0[_0x3bc1('0x11c')](this[_0x3bc1('0x32')]['getRevision'](_0x4eed79)),_0x4eed79++;return _0x5ea1d4&&_0x5adac0['push'](this['repository'][_0x3bc1('0x9e')](_0x4eed79)),_0x5adac0;}[_0x3bc1('0x17')](_0xee4a69,_0x3b2868,_0x67614e,_0x5c9896){const _0x3804df=this['editor'][_0x3bc1('0x96')][_0x3bc1('0x9a')];let _0x4b0fc7=_0x3b2868;for(;_0xee4a69[_0x4b0fc7]&&_0xee4a69[_0x4b0fc7][_0x3bc1('0x4f')];)_0x4b0fc7++;let _0x85139f=_0x5c9896;for(;_0x67614e[_0x85139f]&&_0x67614e[_0x85139f]['isRemoved'];)_0x85139f++;_0x3c8638(_0xee4a69,_0x3b2868,_0x4b0fc7),_0x3c8638(_0x67614e,_0x5c9896,_0x85139f);const _0xa7a529=_0x67614e[_0x3bc1('0x112')](_0x5c9896,_0x85139f)['concat'](_0xee4a69[_0x3bc1('0x112')](_0x3b2868,_0x4b0fc7));return _0xa7a529[_0x3bc1('0xc8')]((_0x36fc8d,_0x3522a0)=>_0x36fc8d[_0x3bc1('0x10f')]!=_0x3522a0[_0x3bc1('0x10f')]?_0x36fc8d['side']-_0x3522a0[_0x3bc1('0x10f')]:_0x36fc8d[_0x3bc1('0xd6')]!=_0x3522a0[_0x3bc1('0xd6')]?_0x36fc8d[_0x3bc1('0xd6')]-_0x3522a0['level']:_0x36fc8d[_0x3bc1('0x10e')]!=_0x3522a0[_0x3bc1('0x10e')]?_0x3522a0[_0x3bc1('0x10e')]-_0x36fc8d['distance']:!!_0x36fc8d[_0x3bc1('0x4f')]!=!!_0x3522a0['isAdded']?-0x1==_0x36fc8d['side']||0x0==_0x36fc8d[_0x3bc1('0x10f')]?_0x36fc8d['isAdded']?-0x1:0x1:_0x36fc8d[_0x3bc1('0x4f')]?0x1:-0x1:_0x36fc8d[_0x3bc1('0x56')]-_0x3522a0['index']),{'commonTape':_0xa7a529,'iEnd':_0x4b0fc7,'jEnd':_0x85139f};function _0x3c8638(_0x370779,_0x10ac75,_0x5a5deb){let _0x11d5e0=-0x1,_0x113a65=Number[_0x3bc1('0x52')],_0x46c373=!0x0;for(let _0x52c812=_0x10ac75;_0x52c812<_0x5a5deb;_0x52c812++)if(_0x3804df[_0x3bc1('0x5b')](_0x370779[_0x52c812][_0x3bc1('0xc')])||(_0x46c373=!0x1),_0x370779[_0x52c812][_0x3bc1('0xc')][_0x3bc1('0xcb')]<_0x10ac75&&(_0x11d5e0=_0x52c812),_0x370779[_0x52c812][_0x3bc1('0xc')][_0x3bc1('0x108')]>=_0x5a5deb){_0x113a65=_0x52c812;break;}_0x46c373&&(_0x11d5e0=_0x5a5deb-0x1);for(let _0x5f5d41=_0x10ac75;_0x5f5d41<_0x5a5deb;_0x5f5d41++)_0x370779[_0x5f5d41][_0x3bc1('0x10f')]=_0x5f5d41<=_0x11d5e0?-0x1:_0x5f5d41<_0x113a65?0x0:0x1,_0x370779[_0x5f5d41]['index']=_0x5f5d41;let _0x2842c4=0x0;for(let _0x14ce2c=_0x10ac75;_0x14ce2c<=_0x11d5e0;_0x14ce2c++)0x0==_0x370779[_0x14ce2c][_0x3bc1('0x10e')]?_0x370779[_0x14ce2c][_0x3bc1('0xd6')]=_0x2842c4:(_0x2842c4++,_0x370779[_0x14ce2c][_0x3bc1('0xd6')]=_0x2842c4,_0x2842c4++);for(let _0x58031f=_0x10ac75;_0x58031f<_0x5a5deb;_0x58031f++)0x0==_0x370779[_0x58031f]['side']&&(_0x370779[_0x58031f][_0x3bc1('0xd6')]=_0x2842c4);_0x2842c4=0x0;for(let _0x253e70=_0x5a5deb-0x1;_0x253e70>=_0x113a65;_0x253e70--)0x0==_0x370779[_0x253e70][_0x3bc1('0x10e')]?_0x370779[_0x253e70][_0x3bc1('0xd6')]=_0x2842c4:(_0x2842c4--,_0x370779[_0x253e70][_0x3bc1('0xd6')]=_0x2842c4,_0x2842c4--);}}[_0x3bc1('0x111')](_0x2ab1d1){const _0x19bc53=new Map(),_0x4e2870=this[_0x3bc1('0x5f')]['model']['schema'];for(let _0xd341a1=0x1;_0xd341a1<_0x2ab1d1[_0x3bc1('0xa8')];_0xd341a1++){let _0x33ac5a,_0x1d88e5,_0x2e08c6;const _0x6b2f49=_0x2ab1d1[_0xd341a1],_0x32c7ec=_0x2ab1d1[_0xd341a1-0x1];if(_0x3bc1('0x78')==_0x6b2f49[_0x3bc1('0x88')])continue;if(_0x6b2f49[_0x3bc1('0x88')]!=_0x32c7ec[_0x3bc1('0x88')])continue;if(!_0x4e2870[_0x3bc1('0x1e')](_0x32c7ec[_0x3bc1('0xc')])||_0x4e2870[_0x3bc1('0x86')](_0x32c7ec[_0x3bc1('0xc')]))continue;if(!_0x4e2870[_0x3bc1('0x1e')](_0x6b2f49[_0x3bc1('0xc')])||_0x4e2870['isLimit'](_0x6b2f49[_0x3bc1('0xc')]))continue;if((_0x2ab1d1[_0xd341a1][_0x3bc1('0x4f')]||_0x2ab1d1[_0xd341a1][_0x3bc1('0x116')])&&_0x2ab1d1[_0xd341a1-0x1][_0x3bc1('0x4a')])_0x33ac5a=_0x2ab1d1[_0xd341a1],_0x1d88e5=_0x2ab1d1[_0xd341a1-0x1],_0x2e08c6=_0xd341a1-0x1;else{if(!_0x2ab1d1[_0xd341a1][_0x3bc1('0x4a')]||!_0x2ab1d1[_0xd341a1-0x1][_0x3bc1('0x4f')]&&!_0x2ab1d1[_0xd341a1-0x1][_0x3bc1('0x116')])continue;_0x33ac5a=_0x2ab1d1[_0xd341a1-0x1],_0x1d88e5=_0x2ab1d1[_0xd341a1],_0x2e08c6=_0xd341a1;}const _0x139ba2=_0x33ac5a[_0x3bc1('0xd6')]==_0x1d88e5[_0x3bc1('0xd6')],_0x28092f=Math[_0x3bc1('0x85')](_0x33ac5a['level'])<Math[_0x3bc1('0x85')](_0x1d88e5['level'])&&0x0==_0x1d88e5[_0x3bc1('0x10e')];(_0x139ba2||_0x28092f)&&(_0x19bc53[_0x3bc1('0x92')](_0x1d88e5['id'],_0x33ac5a['id']),_0x2ab1d1[_0x3bc1('0xec')](_0x2e08c6,0x1),_0xd341a1--,_0x33ac5a[_0x3bc1('0x4f')]=!0x1);}for(let _0x486d67=0x0;_0x486d67<_0x2ab1d1['length'];_0x486d67++)_0x19bc53['has'](_0x2ab1d1[_0x486d67][_0x3bc1('0xf9')])&&(_0x2ab1d1[_0x486d67][_0x3bc1('0xf9')]=_0x19bc53[_0x3bc1('0x117')](_0x2ab1d1[_0x486d67][_0x3bc1('0xf9')]));}[_0x3bc1('0x10d')](_0x4a05cb){const _0x3e0d2a=new Set(_0x4a05cb['map'](_0x4a153f=>_0x4a153f['id']));for(let _0x3b8a59=0x0;_0x3b8a59<_0x4a05cb[_0x3bc1('0xa8')];_0x3b8a59++)_0x3e0d2a[_0x3bc1('0x3c')](_0x4a05cb[_0x3b8a59][_0x3bc1('0xf9')])||0x0==_0x4a05cb[_0x3b8a59][_0x3bc1('0x10e')]||(_0x4a05cb[_0x3b8a59]['isIncorrect']=!0x0);return _0x4a05cb[_0x3bc1('0x51')](_0x8360ae=>!_0x8360ae['isIncorrect']);}[_0x3bc1('0x94')](_0x2f3add){const _0xe633dd=new Set();for(let _0x2be8b8=0x0;_0x2be8b8<_0x2f3add['length'];_0x2be8b8++){if(_0xe633dd[_0x3bc1('0x3c')](_0x2f3add[_0x2be8b8]['id'])&&_0x2f3add[_0x2be8b8][_0x3bc1('0x4a')]&&(_0x2f3add[_0x2be8b8]['isIncorrect']=!0x0),_0x2f3add[_0x2be8b8][_0x3bc1('0x68')])continue;if(0x0==_0x2f3add[_0x2be8b8][_0x3bc1('0x10e')])continue;if(_0x3bc1('0xeb')!=_0x2f3add[_0x2be8b8][_0x3bc1('0x88')])continue;if(null==_0x2f3add[_0x2be8b8][_0x3bc1('0xf9')])continue;let _0x3197c2=_0x2be8b8+0x1,_0x285150=0x0;for(;_0x2f3add[_0x3197c2]['id']!=_0x2f3add[_0x2be8b8][_0x3bc1('0xf9')];)_0x3bc1('0xeb')==_0x2f3add[_0x3197c2]['type']?_0x285150++:'elementEnd'==_0x2f3add[_0x3197c2][_0x3bc1('0x88')]&&_0x285150--,_0x3197c2++;if(0x0!=_0x285150){if(_0x2f3add[_0x2be8b8]['isRemoved'])_0x2f3add[_0x2be8b8][_0x3bc1('0x68')]=!0x0;else for(;_0x3197c2!=_0x2be8b8;)_0x2f3add[_0x3197c2][_0x3bc1('0x4a')]&&0x0!=_0x2f3add[_0x3197c2][_0x3bc1('0x10e')]&&(_0x2f3add[_0x3197c2][_0x3bc1('0x68')]=!0x0,_0xe633dd[_0x3bc1('0x9f')](_0x2f3add[_0x3197c2][_0x3bc1('0xf9')])),_0x3197c2--;}}return _0x2f3add['filter'](_0x107bf2=>!_0x107bf2[_0x3bc1('0x68')]);}[_0x3bc1('0xb0')](_0x2aa02a){const _0x4bb7c0=this['editor'][_0x3bc1('0x96')][_0x3bc1('0x9a')];for(let _0x34db51=0x0;_0x34db51<_0x2aa02a[_0x3bc1('0xa8')];_0x34db51++){if(!(_0x2aa02a[_0x34db51][_0x3bc1('0x4f')]||_0x2aa02a[_0x34db51][_0x3bc1('0x116')]||_0x2aa02a[_0x34db51][_0x3bc1('0x4a')]||_0x2aa02a[_0x34db51][_0x3bc1('0x9c')]))continue;if(0x0==_0x2aa02a[_0x34db51][_0x3bc1('0x10e')])continue;const _0x4c3c14=_0x2aa02a[_0x34db51][_0x3bc1('0xc')];_0x4bb7c0['isBlock'](_0x4c3c14)||_0x4bb7c0[_0x3bc1('0x86')](_0x4c3c14)||(_0x2aa02a[_0x34db51]['isAdded']&&delete _0x2aa02a[_0x34db51][_0x3bc1('0x4f')],_0x2aa02a[_0x34db51]['isAddSuggestion']&&delete _0x2aa02a[_0x34db51][_0x3bc1('0x116')],_0x2aa02a[_0x34db51]['isRemoveSuggestion']&&delete _0x2aa02a[_0x34db51][_0x3bc1('0x9c')],_0x2aa02a[_0x34db51][_0x3bc1('0x4a')]&&(_0x2aa02a[_0x34db51][_0x3bc1('0x68')]=!0x0));}return _0x2aa02a[_0x3bc1('0x51')](_0x3ae074=>!_0x3ae074[_0x3bc1('0x68')]);}[_0x3bc1('0xf6')](_0x1a5608,_0x145bd3,_0xd78e20){const _0x233b33=new _0x111441(),_0x4312d8=[],_0x56219a=new Map(),_0x59133e=this[_0x3bc1('0x5f')][_0x3bc1('0x96')],_0x2c2810=_0x59133e[_0x3bc1('0x9a')],_0x1ed306=[_0x233b33],_0x1d7490={},_0x47650a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xa3af25=null;const _0x1c3e7c=[0x0];for(let _0x232bee=0x0;_0x232bee<_0x1a5608[_0x3bc1('0xa8')];_0x232bee++){let _0x236e73,_0x4d1d69;if('elementStart'===_0x1a5608[_0x232bee]['type']){_0x236e73=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c);const _0x449432=new _0x6329a5(_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0xb6')],_0x1a5608[_0x232bee]['item'][_0x3bc1('0x69')]());_0x1ed306[0x0][_0x3bc1('0xfa')](_0x449432),_0x1c3e7c['push'](0x0),_0x1ed306[_0x3bc1('0x2d')](_0x449432),_0x4d1d69=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c),_0xa3af25=null;}else{if(_0x3bc1('0xff')===_0x1a5608[_0x232bee]['type'])_0x1ed306[_0x3bc1('0x91')](),_0x236e73=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c),_0x1c3e7c['pop'](),_0x1c3e7c[_0x1c3e7c['length']-0x1]++,_0x4d1d69=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c),_0xa3af25=null;else{if(_0x236e73=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c),_0xa3af25&&_0x27fff3(_0xa3af25,_0x1a5608[_0x232bee][_0x3bc1('0xc')]))_0xa3af25[_0x3bc1('0x22')]+=_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0x7')];else{const _0x169b4=new _0x1fd28b(_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0x7')],_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0x69')]());_0x1ed306[0x0]['_appendChild'](_0x169b4),_0xa3af25=_0x169b4;}_0x1c3e7c[_0x1c3e7c[_0x3bc1('0xa8')]-0x1]+=_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0x58')],_0x4d1d69=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c);}}for(const _0x6606da of _0x1a5608[_0x232bee][_0x3bc1('0x73')])_0x56219a[_0x3bc1('0x92')](_0x6606da,{'start':_0x236e73,'end':null});_0x2d7448(_0x3bc1('0x9c'),_0x232bee,_0x236e73,_0x4d1d69),_0x2d7448(_0x3bc1('0x116'),_0x232bee,_0x236e73,_0x4d1d69),_0x2d7448(_0x3bc1('0x4a'),_0x232bee,_0x236e73,_0x4d1d69),_0x2d7448(_0x3bc1('0x4f'),_0x232bee,_0x236e73,_0x4d1d69);for(const _0x31fc98 of _0x1a5608[_0x232bee][_0x3bc1('0x39')]){_0x56219a[_0x3bc1('0x117')](_0x31fc98)['end']=_0x4d1d69;}}for(const [_0x64578f,_0x541b49]of _0x56219a){const _0x1bd1c6=this['editor'][_0x3bc1('0x96')][_0x3bc1('0x50')](_0x541b49['start'],_0x541b49[_0x3bc1('0xef')]);_0x233b33[_0x3bc1('0xd1')][_0x3bc1('0x92')](_0x64578f,_0x1bd1c6);}return _0x4312d8[_0x3bc1('0xc8')]((_0x262b64,_0x1e97e2)=>{const _0x543a57=_0x233b33[_0x3bc1('0xd1')][_0x3bc1('0x117')](_0x3bc1('0x6d')+_0x262b64['id']),_0x366065=_0x233b33[_0x3bc1('0xd1')][_0x3bc1('0x117')](_0x3bc1('0x6d')+_0x1e97e2['id']);return _0x543a57[_0x3bc1('0x82')][_0x3bc1('0x49')](_0x366065['start'])?-0x1:_0x543a57[_0x3bc1('0x82')][_0x3bc1('0x119')](_0x366065['start'])?0x1:_0x543a57['end'][_0x3bc1('0x49')](_0x366065['end'])?-0x1:_0x543a57[_0x3bc1('0xef')][_0x3bc1('0x119')](_0x366065[_0x3bc1('0xef')])?0x1:'add'===_0x262b64[_0x3bc1('0x88')]?-0x1:0x1;}),{'root':_0x233b33,'changes':_0x4312d8};function _0x2d7448(_0x1edc2f,_0xea406f,_0x495ae4,_0x1767d5){const _0x3b1371=!!_0x1a5608[_0xea406f][_0x1edc2f],_0x32a4e2=_0x3b1371?_0x1a5608[_0xea406f][_0x1edc2f][_0x3bc1('0xbc')]:null,_0x6f3d52=_0xea406f===_0x1a5608['length']-0x1,_0xa17e50=_0x47650a[_0x1edc2f][0x0],_0x2482d6=_0x2c2810['isObject'](_0x1a5608[_0xea406f][_0x3bc1('0xc')]);!_0x1d7490[_0x1edc2f]&&_0x3b1371?_0x1d7490[_0x1edc2f]={'start':_0x495ae4,'tapeItem':_0x1a5608[_0xea406f],'userId':_0x32a4e2,'type':_0x1edc2f}:_0x1d7490[_0x1edc2f]&&!_0x3b1371?(_0x1d7490[_0x1edc2f][_0x3bc1('0xef')]=_0x495ae4,_0x40728f(_0x1d7490[_0x1edc2f]),_0x1d7490[_0x1edc2f]=null):_0x1d7490[_0x1edc2f]&&_0x3b1371&&_0x1d7490[_0x1edc2f][_0x3bc1('0xbc')]!==_0x32a4e2&&(_0x1d7490[_0x1edc2f][_0x3bc1('0xef')]=_0x495ae4,_0xa17e50&&_0xa17e50[_0x3bc1('0xbc')]===_0x1d7490[_0x1edc2f][_0x3bc1('0xbc')]||_0x40728f(_0x1d7490[_0x1edc2f]),_0x1d7490[_0x1edc2f]={'start':_0x495ae4,'tapeItem':_0x1a5608[_0xea406f],'userId':_0x32a4e2,'type':_0x1edc2f}),_0x1d7490[_0x1edc2f]&&_0x2482d6&&(_0x3bc1('0xeb')!==_0x1a5608[_0xea406f][_0x3bc1('0x88')]||_0xa17e50&&_0xa17e50[_0x3bc1('0xbc')]===_0x32a4e2||_0x47650a[_0x1edc2f][_0x3bc1('0x2d')]({'userId':_0x32a4e2,'object':_0x1a5608[_0xea406f]['item'],'change':_0x1d7490[_0x1edc2f]}),_0x3bc1('0xff')===_0x1a5608[_0xea406f][_0x3bc1('0x88')]&&_0xa17e50&&_0xa17e50[_0x3bc1('0xd5')]===_0x1a5608[_0xea406f][_0x3bc1('0xc')]&&(_0x47650a[_0x1edc2f][_0x3bc1('0x91')](),_0x1d7490[_0x1edc2f]=_0xa17e50[_0x3bc1('0x70')])),_0x1d7490[_0x1edc2f]&&_0x6f3d52&&(_0x1d7490[_0x1edc2f]['end']=_0x1767d5,_0x40728f(_0x1d7490[_0x1edc2f]),_0x1d7490[_0x1edc2f]=null);}function _0x40728f({start:_0x12795e,end:_0x433fa0,tapeItem:_0x1f92d8,userId:_0x4c750c,type:_0x592a4c}){const _0x41ed69=_0x1f92d8['item'],_0x46c0b2=_0x59133e[_0x3bc1('0x9a')][_0x3bc1('0x1e')](_0x41ed69)&&!_0x59133e[_0x3bc1('0x9a')]['isLimit'](_0x41ed69),_0x38977e=_0x12795e[_0x3bc1('0xf1')]==_0x433fa0[_0x3bc1('0x5a')]&&_0x433fa0[_0x3bc1('0xfe')];if(_0x46c0b2&&_0x38977e)return;const _0x3ecde1=_0x59133e['createRange'](_0x12795e,_0x433fa0),_0x60f2e0=_0x145bd3[_0x3bc1('0x117')](_0x4c750c),_0x3d9cec=new _0x28f86b({'author':_0x60f2e0,'type':_0x3bc1('0x4f')==_0x592a4c||_0x3bc1('0x116')==_0x592a4c?_0x3bc1('0x9f'):_0x3bc1('0x1a'),'data':{'isSuggestion':'isAddSuggestion'==_0x592a4c||'isRemoveSuggestion'==_0x592a4c},'createdAt':new Date(),'rootName':_0xd78e20});_0x4312d8[_0x3bc1('0x11c')](_0x3d9cec),_0x233b33[_0x3bc1('0xd1')][_0x3bc1('0x92')](_0x3bc1('0x6d')+_0x3d9cec['id'],_0x3ecde1);}function _0x27fff3(_0x1f34d0,_0x964e4d){const _0xa398c2=_0x1f34d0[_0x3bc1('0x69')](),_0x34b250=_0x964e4d['getAttributes']();for(const _0x476495 of _0xa398c2){if(_0x476495[0x1]!==_0x964e4d[_0x3bc1('0x36')](_0x476495[0x0]))return!0x1;_0x34b250[_0x3bc1('0xe3')]();}return _0x34b250[_0x3bc1('0xe3')]()[_0x3bc1('0xca')];}}[_0x3bc1('0x23')](){this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))[_0x3bc1('0x8a')]({'view':_0x3bc1('0xa3')}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')]['for'](_0x3bc1('0x118'))['markerToHighlight']({'model':'revision','view':_0x5d2594=>{const _0x3a6508=_0x5d2594['markerName']['split'](':')[0x1],_0x50b18b=this['_getChangeFromId'](_0x3a6508);if(!_0x50b18b)return null;const _0x3dafd8=_0x3bc1('0x9f')==_0x50b18b[_0x3bc1('0x88')]?_0x3bc1('0xf2'):'deletion',_0x1429f9=[_0x3bc1('0x37'),'ck-suggestion-marker-'+_0x3dafd8];return _0x50b18b[_0x3bc1('0x7')][_0x3bc1('0x10a')]&&_0x1429f9['push'](_0x3bc1('0x14')+_0x3dafd8+_0x3bc1('0x31')),this[_0x3bc1('0xb8')]==_0x50b18b&&_0x1429f9[_0x3bc1('0x11c')](_0x3bc1('0xc9')),{'classes':_0x1429f9,'attributes':{'data-change-id':_0x3a6508}};}}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))[_0x3bc1('0x9f')](_0x45fcdf=>{_0x45fcdf['on']('element:pre',(_0x301210,_0x12a186,_0x45576c)=>{const _0x35b9cf=_0x12a186[_0x3bc1('0x63')][_0x3bc1('0xfb')](0x0);if(!_0x35b9cf||!_0x35b9cf['is'](_0x3bc1('0xda'),_0x3bc1('0xb7')))return;if(!_0x45576c[_0x3bc1('0x8f')][_0x3bc1('0x41')](_0x35b9cf,{'attributes':[_0x3bc1('0x74'),_0x3bc1('0x5e')]}))return;const _0x1e66fa=_0x12a186['modelRange'][_0x3bc1('0x82')][_0x3bc1('0xf1')];_0x45576c[_0x3bc1('0xd4')][_0x3bc1('0x10')](_0x3bc1('0x74'),_0x35b9cf[_0x3bc1('0x36')](_0x3bc1('0x74')),_0x1e66fa),_0x45576c['writer'][_0x3bc1('0x10')](_0x3bc1('0x5e'),_0x35b9cf[_0x3bc1('0x36')](_0x3bc1('0x5e')),_0x1e66fa);},{'priority':_0x3bc1('0xf0')});}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))['add'](_0x539def=>{_0x539def['on']('element',(_0x5dc332,_0x1a515f,_0x37e4f2)=>{if(!_0x37e4f2['consumable'][_0x3bc1('0x41')](_0x1a515f['viewItem'],{'attributes':[_0x3bc1('0x74'),_0x3bc1('0x5e')]}))return;if(_0x1a515f[_0x3bc1('0x76')][_0x3bc1('0xd3')])return;const _0x4d4965=_0x1a515f[_0x3bc1('0x76')][_0x3bc1('0x82')]['nodeAfter'];_0x4d4965[_0x3bc1('0xb2')](_0x3bc1('0x74'))||_0x4d4965[_0x3bc1('0xb2')]('vid')||(_0x37e4f2[_0x3bc1('0xd4')][_0x3bc1('0x10')](_0x3bc1('0x74'),_0x1a515f[_0x3bc1('0x63')][_0x3bc1('0x36')](_0x3bc1('0x74')),_0x4d4965),_0x37e4f2['writer']['setAttribute'](_0x3bc1('0x5e'),_0x1a515f[_0x3bc1('0x63')][_0x3bc1('0x36')]('vid_end'),_0x4d4965));},{'priority':_0x3bc1('0xf0')});}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x552a85=>_0x552a85[_0x3bc1('0x36')]('vid')}}),this['editor'][_0x3bc1('0x96')][_0x3bc1('0x9a')]['on'](_0x3bc1('0xbe'),(_0x4ab610,[,_0x3e8602])=>{[_0x3bc1('0x74'),_0x3bc1('0x5e'),_0x3bc1('0xea')]['includes'](_0x3e8602)&&(_0x4ab610[_0x3bc1('0x48')]=!0x0,_0x4ab610['stop']());},{'priority':'highest'}),this[_0x3bc1('0x5f')]['conversion'][_0x3bc1('0xe')](_0x3bc1('0x30'))[_0x3bc1('0x9f')](_0x2e64a9=>{_0x2e64a9['on'](_0x3bc1('0x87'),(_0x1a85e7,_0x2f05f3,_0x3a6bcb)=>{if('\x20'!=_0x2f05f3[_0x3bc1('0xc')][_0x3bc1('0x7')]||_0x2f05f3[_0x3bc1('0xc')]['parent']['maxOffset']>0x1)return;if(!_0x3a6bcb[_0x3bc1('0x8f')][_0x3bc1('0x41')](_0x2f05f3['item'],_0x1a85e7[_0x3bc1('0xb6')]))return;const _0x38f411=_0x3a6bcb[_0x3bc1('0xd4')],_0x231127=_0x3a6bcb[_0x3bc1('0x29')]['toViewRange'](_0x2f05f3[_0x3bc1('0xc6')]);_0x38f411[_0x3bc1('0x71')](_0x231127,_0x38f411['createAttributeElement'](_0x3bc1('0xdf')));});}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x30'))[_0x3bc1('0x34')]({'model':_0x3bc1('0xa3')}),this[_0x3bc1('0x5f')]['editing']['downcastDispatcher']['on'](_0x3bc1('0x66'),function(_0x528169){const _0x29977a=_0x528169[_0x3bc1('0xaf')][_0x3bc1('0x117')](_0x3bc1('0x5d'));return(_0x8c2bf0,_0x473967,_0x33ad36)=>{const _0x2cfdc8=_0x473967['markerName'][_0x3bc1('0x2')](':')[0x1],_0x436739=_0x29977a[_0x3bc1('0x60')](_0x2cfdc8);if(!_0x436739)return null;const _0x5b85ec='add'==_0x436739[_0x3bc1('0x88')]?_0x3bc1('0x2'):'merge';if(!_0x33ad36[_0x3bc1('0x8f')][_0x3bc1('0x59')](_0x473967[_0x3bc1('0xdb')],_0x8c2bf0[_0x3bc1('0xb6')]))return;const _0x1252f5=_0x473967['markerRange'][_0x3bc1('0x64')](),_0x5e486a=_0x473967[_0x3bc1('0xdb')]['start'],_0x36f53c=_0x528169['model']['schema'];let _0x319bcd=null,_0x5d1e3e=null,_0x45609a=!0x1,_0x1ebd72=!0x1;for(const _0x13097a of _0x1252f5){const _0xae206=_0x13097a[_0x3bc1('0xc')];_0x45609a=_0x45609a||_0x36f53c['isContent'](_0xae206);const _0x787092=_0x33ad36[_0x3bc1('0x29')][_0x3bc1('0x6b')](_0xae206);if(_0x787092&&_0x787092[_0x3bc1('0x19')](_0x3bc1('0xdd')))return;_0x3bc1('0xff')==_0x13097a['type']&&(_0x36f53c[_0x3bc1('0x1e')](_0xae206)&&!_0x36f53c['isLimit'](_0xae206)&&(_0xae206['nextSibling']||_0x5e486a[_0x3bc1('0x98')]?_0x319bcd&&_0x319bcd[_0x3bc1('0x5a')]==_0xae206||(_0x319bcd=_0xae206,_0x9a9e91(_0x13097a[_0x3bc1('0x107')]),_0x1ebd72=!0x0):_0x5d1e3e=_0x5d1e3e||_0x13097a['previousPosition']));}function _0x9a9e91(_0x42d1f4){const _0x15c04d=_0x33ad36[_0x3bc1('0xd4')][_0x3bc1('0xbf')](_0x3bc1('0xdf'),{'class':_0x3bc1('0x14')+_0x5b85ec}),_0x3973ba=_0x33ad36[_0x3bc1('0x29')][_0x3bc1('0x8d')](_0x42d1f4);_0x436739[_0x3bc1('0x7')]['isSuggestion']&&_0x33ad36[_0x3bc1('0xd4')]['addClass']('ck-suggestion-marker-'+_0x5b85ec+_0x3bc1('0x31'),_0x15c04d),_0x29977a[_0x3bc1('0xb8')]==_0x436739&&_0x33ad36[_0x3bc1('0xd4')]['addClass'](_0x3bc1('0xc9'),_0x15c04d),_0x33ad36[_0x3bc1('0xd4')][_0x3bc1('0x83')](_0x3973ba,_0x15c04d),_0x33ad36[_0x3bc1('0x29')]['bindElementToMarker'](_0x15c04d,_0x473967[_0x3bc1('0x53')]);}_0x45609a||_0x1ebd72||!_0x5d1e3e||_0x9a9e91(_0x5d1e3e);};}(this['editor']),{'priority':'high'}),this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x65')]['on']('removeMarker:revision',(_0x59e318,_0x179bd5,_0x3d1f8b)=>{const _0x14f7c2=_0x3d1f8b[_0x3bc1('0x29')][_0x3bc1('0x2f')](_0x179bd5[_0x3bc1('0x53')]);if(_0x14f7c2)for(const _0x27e8ee of _0x14f7c2)(_0x27e8ee[_0x3bc1('0xc3')](_0x3bc1('0x11'))||_0x27e8ee['hasClass']('ck-suggestion-marker-merge'))&&(_0x3d1f8b['mapper'][_0x3bc1('0xb4')](_0x27e8ee,_0x179bd5['markerName']),_0x3d1f8b[_0x3bc1('0xd4')]['remove'](_0x27e8ee));},{'priority':_0x3bc1('0x62')}),this[_0x3bc1('0x5f')][_0x3bc1('0x42')]['downcastDispatcher']['on'](_0x3bc1('0x66'),(_0x3c8f9d,_0x39ec00,_0x292bed)=>{const _0x3c9ad4=_0x39ec00[_0x3bc1('0x53')]['split'](':')[0x1],_0x20f67f=this[_0x3bc1('0x60')](_0x3c9ad4);if(!_0x20f67f)return null;const _0x61c5f9=_0x3bc1('0x9f')==_0x20f67f[_0x3bc1('0x88')]?_0x3bc1('0x2'):_0x3bc1('0x2c');if(_0x292bed[_0x3bc1('0x8f')][_0x3bc1('0x59')](_0x39ec00[_0x3bc1('0xdb')],_0x3c8f9d[_0x3bc1('0xb6')]))for(const _0x41917c of _0x39ec00[_0x3bc1('0xdb')][_0x3bc1('0x28')]()){if(!_0x41917c['is'](_0x3bc1('0xda'),_0x3bc1('0xb1')))continue;const _0x318dd5=_0x292bed[_0x3bc1('0xd4')][_0x3bc1('0xbf')](_0x3bc1('0xdf'),{'class':_0x3bc1('0x14')+_0x61c5f9}),_0x2f8c16=_0x292bed[_0x3bc1('0x29')][_0x3bc1('0x8d')](this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0xc5')](_0x41917c));_0x20f67f[_0x3bc1('0x7')][_0x3bc1('0x10a')]&&_0x292bed[_0x3bc1('0xd4')][_0x3bc1('0x72')]('ck-suggestion-marker-'+_0x61c5f9+_0x3bc1('0x31'),_0x318dd5),this[_0x3bc1('0xb8')]==_0x20f67f&&_0x292bed['writer'][_0x3bc1('0x72')](_0x3bc1('0xc9'),_0x318dd5),_0x292bed[_0x3bc1('0xd4')][_0x3bc1('0x83')](_0x2f8c16,_0x318dd5),_0x292bed[_0x3bc1('0x29')][_0x3bc1('0x6')](_0x318dd5,_0x39ec00[_0x3bc1('0x53')]);}},{'priority':'high'}),this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['document']['on'](_0x3bc1('0x70'),()=>{this['editor'][_0x3bc1('0x42')][_0x3bc1('0x11d')]['change'](_0x22ce1c=>{for(const _0x31a933 of this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['document'][_0x3bc1('0x6e')]()){const _0x551f08=this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0x1c')]['getRoot'](_0x31a933),_0x1d08b8=this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')]['document'][_0x3bc1('0x25')](_0x31a933);if(_0x1d08b8){const _0x241845=_0x551f08[_0x3bc1('0x36')](_0x3bc1('0x4b'));if(_0x22ce1c['removeAttribute']('data-change-id',_0x1d08b8),_0x22ce1c['removeClass'](_0x3bc1('0x79'),_0x1d08b8),_0x22ce1c[_0x3bc1('0x67')]('ck-revision-history-root-remove',_0x1d08b8),_0x22ce1c['removeClass'](_0x3bc1('0xb3'),_0x1d08b8),_0x241845){const _0x43f8a5=this[_0x3bc1('0x60')](_0x241845);if(!_0x43f8a5)return null;_0x22ce1c['setAttribute'](_0x3bc1('0x55'),_0x241845,_0x1d08b8),_0x22ce1c[_0x3bc1('0x72')]('ck-revision-history-root-'+_0x43f8a5[_0x3bc1('0x88')],_0x1d08b8),this[_0x3bc1('0xb8')]==_0x43f8a5&&_0x22ce1c[_0x3bc1('0x72')](_0x3bc1('0xb3'),_0x1d08b8);}}}});}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')]['for']('upcast')[_0x3bc1('0x8a')]({'view':'comment','model':_0x5717b0=>_0x3bc1('0xe8')+_0x5717b0,'converterPriority':_0x3bc1('0x35')}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))['dataToMarker']({'view':_0x3bc1('0xe1'),'model':_0xcc70ed=>_0x3bc1('0x102')+_0xcc70ed,'converterPriority':_0x3bc1('0x35')}),this['editor'][_0x3bc1('0xa6')]['for'](_0x3bc1('0x30'))['markerToData']({'model':_0x3bc1('0x11a'),'view':_0x59ab80=>({'name':'suggestion:'+_0x59ab80,'group':_0x3bc1('0x11a')}),'converterPriority':_0x3bc1('0x35')}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x118'))[_0x3bc1('0x77')]({'model':_0x3bc1('0x11a'),'view':_0x30b8c2=>{const _0x57eba7=_0x30b8c2[_0x3bc1('0x53')][_0x3bc1('0x2')](':')[0x1];return _0x3bc1('0xf2')!=_0x57eba7&&_0x3bc1('0x6a')!=_0x57eba7?null:{'classes':[_0x3bc1('0x1'),_0x3bc1('0xfd')+_0x57eba7]};}}),this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x65')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x3bc1('0x5f')],'merge'),{'priority':_0x3bc1('0x62')}),this[_0x3bc1('0x5f')][_0x3bc1('0x42')]['downcastDispatcher']['on'](_0x3bc1('0x8c'),et(this[_0x3bc1('0x5f')],_0x3bc1('0x2')),{'priority':_0x3bc1('0x62')}),this[_0x3bc1('0x5f')]['editing'][_0x3bc1('0x65')]['on']('removeMarker:revision-suggestion',(_0x424845,_0x214d37,_0x525c55)=>{const _0x14804e=_0x525c55[_0x3bc1('0x29')][_0x3bc1('0x2f')](_0x214d37[_0x3bc1('0x53')]);if(_0x14804e)for(const _0x22a1a8 of _0x14804e)_0x22a1a8['is'](_0x3bc1('0xdc'))&&(_0x525c55[_0x3bc1('0x29')]['unbindElementFromMarkerName'](_0x22a1a8,_0x214d37[_0x3bc1('0x53')]),_0x525c55[_0x3bc1('0xd4')]['remove'](_0x22a1a8));},{'priority':_0x3bc1('0x62')});}['_getChangeFromId'](_0x58252f){return this[_0x3bc1('0x5')][_0x3bc1('0x117')](_0x58252f);}['_getViewForChange'](_0x28a39a){return this[_0x3bc1('0xad')]&&this[_0x3bc1('0xad')][_0x3bc1('0x20')](),this[_0x3bc1('0xad')]=new _0x44934d(this['editor'][_0x3bc1('0x7f')],_0x28a39a),this[_0x3bc1('0xad')];}[_0x3bc1('0x106')](){this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['document'][_0x3bc1('0x4c')]['observeMarkers'](_0x3bc1('0xa3')),this['on']('change:activeView',(_0x30afc8,_0xd8187,_0x22c00e,_0x4b779e)=>{_0x4b779e&&this[_0x3bc1('0x89')][_0x3bc1('0x1a')](_0x4b779e),_0x22c00e&&(this[_0x3bc1('0x89')][_0x3bc1('0x9f')]({'view':_0x22c00e,'stackId':_0x3bc1('0xe6'),'position':{'target':()=>{const _0x474a7e=this[_0x3bc1('0x5f')]['editing'],_0x196f36=this[_0x3bc1('0x60')](_0x22c00e[_0x3bc1('0x12')]);let _0x39d5d6;if(_0x196f36['data'][_0x3bc1('0x114')]){const _0x55f401=_0x474a7e[_0x3bc1('0x11d')]['getDomRoot'](_0x196f36[_0x3bc1('0x10c')]);_0x39d5d6=Array['from'](_0x55f401[_0x3bc1('0xac')]());}else{const _0x18b25f=this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0xd1')][_0x3bc1('0x117')](_0x3bc1('0x6d')+_0x22c00e[_0x3bc1('0x12')]);_0x39d5d6=Array[_0x3bc1('0xc2')](_0x474a7e[_0x3bc1('0x29')][_0x3bc1('0x2f')](_0x18b25f[_0x3bc1('0xb6')]))[_0x3bc1('0xc1')](_0x59171e=>_0x474a7e[_0x3bc1('0x11d')][_0x3bc1('0x103')][_0x3bc1('0xab')](_0x59171e))[_0x3bc1('0xc1')](_0x1f464b=>Array[_0x3bc1('0xc2')](_0x1f464b[_0x3bc1('0xac')]()))[_0x3bc1('0xe2')]();}if(!this[_0x3bc1('0xfc')])return _0x39d5d6[0x0];return _0x39d5d6[_0x3bc1('0x26')](_0x59d19e=>_0x59d19e['top']-0x3<=this[_0x3bc1('0xfc')]['y']&&_0x59d19e[_0x3bc1('0xb')]+0x3>=this[_0x3bc1('0xfc')]['y']&&_0x59d19e[_0x3bc1('0xba')]-0x3<=this[_0x3bc1('0xfc')]['x']&&_0x59d19e[_0x3bc1('0x109')]+0x3>=this[_0x3bc1('0xfc')]['x'])||_0x39d5d6[0x0];}}}),this[_0x3bc1('0x89')][_0x3bc1('0x1b')]('revisionHistoryLabel'));}),this['on'](_0x3bc1('0xa7'),(_0x4be7b9,_0x592399,_0x218c3e,_0x42c099)=>{this['activeView']=_0x218c3e?this[_0x3bc1('0xaa')](_0x218c3e):null,this[_0x3bc1('0x5f')]['model']['change'](()=>{const _0x5c39cc=this['editor'][_0x3bc1('0x42')];_0x42c099&&(_0x42c099['data'][_0x3bc1('0x114')]?_0x5c39cc[_0x3bc1('0x11d')][_0x3bc1('0x70')](_0x167c4b=>{_0x167c4b[_0x3bc1('0x67')](_0x3bc1('0xb3'),_0x5c39cc[_0x3bc1('0x11d')][_0x3bc1('0x1c')][_0x3bc1('0x25')](_0x42c099[_0x3bc1('0x10c')]));}):_0x5c39cc[_0x3bc1('0x4e')](_0x3bc1('0x6d')+_0x42c099['id'])),_0x218c3e&&(_0x218c3e[_0x3bc1('0x7')]['isOnRoot']?_0x5c39cc[_0x3bc1('0x11d')][_0x3bc1('0x70')](_0x1e9ba2=>{_0x1e9ba2[_0x3bc1('0x72')](_0x3bc1('0xb3'),_0x5c39cc[_0x3bc1('0x11d')][_0x3bc1('0x1c')][_0x3bc1('0x25')](_0x218c3e[_0x3bc1('0x10c')]));}):_0x5c39cc[_0x3bc1('0x4e')]('revision:'+_0x218c3e['id']));});}),this[_0x3bc1('0x57')](this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x1c')],_0x3bc1('0xee'),(_0x2d235b,_0x39db5d)=>{if(this[_0x3bc1('0xb8')])return;const _0x565ab6=this['_findChangeIdFromDomTarget'](_0x39db5d[_0x3bc1('0xc7')]),_0x3dfc2e=this[_0x3bc1('0x5')]['get'](_0x565ab6);_0x3dfc2e?(this['_activeViewTarget']={'x':_0x39db5d[_0x3bc1('0x7d')]['x'],'y':_0x39db5d['domEvent']['y']},this[_0x3bc1('0xa5')]=this[_0x3bc1('0xaa')](_0x3dfc2e)):(this[_0x3bc1('0xfc')]=null,this['activeView']=null);}),this[_0x3bc1('0x57')](this[_0x3bc1('0x5f')]['editing']['view'][_0x3bc1('0x1c')],_0x3bc1('0x7b'),(_0x18d2a3,_0x2c8d0f)=>{const _0x58a85e=this['_findChangeIdFromDomTarget'](_0x2c8d0f[_0x3bc1('0xc7')]),_0x1c205b=this['_changeIdToChange'][_0x3bc1('0x117')](_0x58a85e);_0x1c205b?(this[_0x3bc1('0xfc')]={'x':_0x2c8d0f[_0x3bc1('0x7d')]['x'],'y':_0x2c8d0f[_0x3bc1('0x7d')]['y']},_0x1c205b===this[_0x3bc1('0xb8')]?this[_0x3bc1('0x89')]['updatePosition']():this['activeChange']=_0x1c205b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x475427){do{const _0x4ac670=_0x475427['getAttribute'](_0x3bc1('0x55'));if(_0x4ac670)return _0x4ac670;_0x475427=_0x475427[_0x3bc1('0x5a')];}while(_0x475427);return null;}[_0x3bc1('0x43')](){this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['change'](_0x3c0253=>{for(const _0x2a79ca of this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['markers'])_0x3c0253[_0x3bc1('0xf8')](_0x2a79ca);});}}function et(_0x172fce,_0x593898){return(_0x5988c3,_0x2312d0,_0x291f18)=>{if(!_0x291f18[_0x3bc1('0x8f')][_0x3bc1('0x59')](_0x2312d0[_0x3bc1('0xdb')],_0x5988c3['name']))return;const _0x5ec43b=_0x2312d0[_0x3bc1('0xdb')][_0x3bc1('0x64')](),_0x24f9ba=_0x2312d0[_0x3bc1('0xdb')]['start'],_0x258614=_0x172fce['model'][_0x3bc1('0x9a')];let _0x2396d1=null,_0x431a85=null,_0x28bb21=!0x1,_0x264049=!0x1;for(const _0x189850 of _0x5ec43b){const _0x51f52d=_0x189850[_0x3bc1('0xc')];_0x28bb21=_0x28bb21||_0x258614[_0x3bc1('0x16')](_0x51f52d);const _0x2271a8=_0x291f18[_0x3bc1('0x29')][_0x3bc1('0x6b')](_0x51f52d);if(_0x2271a8&&_0x2271a8[_0x3bc1('0x19')](_0x3bc1('0xdd')))return;'elementEnd'==_0x189850[_0x3bc1('0x88')]&&(_0x258614[_0x3bc1('0x1e')](_0x51f52d)&&!_0x258614[_0x3bc1('0x86')](_0x51f52d)&&(_0x51f52d[_0x3bc1('0xd9')]||_0x24f9ba[_0x3bc1('0x98')]?_0x2396d1&&_0x2396d1[_0x3bc1('0x5a')]==_0x51f52d||(_0x2396d1=_0x51f52d,_0x3d78ec(_0x189850[_0x3bc1('0x107')]),_0x264049=!0x0):_0x431a85=_0x431a85||_0x189850[_0x3bc1('0x107')]));}function _0x3d78ec(_0x2e4798){const _0x4952f2=_0x291f18[_0x3bc1('0x29')][_0x3bc1('0x8d')](_0x2e4798),_0x193d30=_0x291f18[_0x3bc1('0xd4')][_0x3bc1('0xbf')](_0x3bc1('0xdf'),{'class':_0x3bc1('0xfd')+_0x593898});_0x291f18['writer'][_0x3bc1('0x83')](_0x4952f2,_0x193d30),_0x291f18[_0x3bc1('0x29')]['bindElementToMarker'](_0x193d30,_0x2312d0['markerName']);}_0x28bb21||_0x264049||!_0x431a85||_0x3d78ec(_0x431a85);};}export class RestoreRevisionCommand extends _0x484f37{constructor(_0x1bfc13){super(_0x1bfc13);const _0x320004=_0x1bfc13[_0x3bc1('0xaf')][_0x3bc1('0x117')](d);this[_0x3bc1('0x101')]=!0x1,this[_0x3bc1('0x57')](_0x320004,_0x3bc1('0xe4'),()=>this[_0x3bc1('0xc0')]()),this[_0x3bc1('0x57')](_0x320004,_0x3bc1('0x2a'),()=>this['refresh']());}['execute'](){const _0x19efc7=this['editor'],_0x124e5d=_0x19efc7[_0x3bc1('0xaf')][_0x3bc1('0x117')](d),_0x1b2b6b=_0x124e5d[_0x3bc1('0xc4')]?_0x124e5d[_0x3bc1('0x8b')][_0x3bc1('0x27')]:null;_0x19efc7[_0x3bc1('0x2b')][_0x3bc1('0x117')](_0x3bc1('0xd'))['restoreRevisionCallback'](_0x1b2b6b);}[_0x3bc1('0xc0')](){const {isReady:_0x3e7094,isEnabled:_0x9a19f1}=this[_0x3bc1('0x5f')][_0x3bc1('0xaf')]['get'](d);this[_0x3bc1('0x61')]=_0x3e7094&&_0x9a19f1;}}export class ShowChangeCommand extends _0x484f37{constructor(_0x16e669,{direction:_0x157b93}){super(_0x16e669);const _0x565b48=_0x16e669[_0x3bc1('0xaf')][_0x3bc1('0x117')](d);this[_0x3bc1('0x101')]=!0x1,this[_0x3bc1('0x84')]='forward'===_0x157b93?0x1:-0x1,this[_0x3bc1('0x57')](_0x565b48,_0x3bc1('0xe4'),()=>this[_0x3bc1('0xc0')]()),this[_0x3bc1('0x57')](_0x565b48,'change:isEnabled',()=>this[_0x3bc1('0xc0')]()),this['listenTo'](_0x565b48,_0x3bc1('0xa7'),()=>this['refresh']());}[_0x3bc1('0x18')](){const _0x5eec64=this[_0x3bc1('0x5f')],_0x399773=_0x5eec64[_0x3bc1('0xaf')][_0x3bc1('0x117')](d),{isNavigationMode:_0x5bac03,currentChangeNumber:_0x59e13f}=_0x399773;let _0x473aac;if(_0x399773[_0x3bc1('0xb8')]=_0x5bac03?_0x399773[_0x3bc1('0x8b')]['changes'][_0x3bc1('0x117')](_0x59e13f+this['_step']):_0x399773[_0x3bc1('0x8b')][_0x3bc1('0x110')]['first'],_0x399773[_0x3bc1('0xb8')][_0x3bc1('0x7')][_0x3bc1('0x114')])_0x473aac=_0x5eec64[_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x95')](_0x399773[_0x3bc1('0xb8')][_0x3bc1('0x10c')]);else{const _0x217efa=_0x5eec64[_0x3bc1('0x96')][_0x3bc1('0xd1')][_0x3bc1('0x117')](_0x3bc1('0x6d')+_0x399773[_0x3bc1('0xb8')]['id']);_0x473aac=_0x1340aa(_0x5eec64[_0x3bc1('0x42')],_0x217efa);}_0x23e2a0({'target':_0x473aac,'viewportOffset':0x28});}[_0x3bc1('0xc0')](){const {isNavigationMode:_0x2f2acd,currentChangeNumber:_0x3d9d55,numberOfChanges:_0x28b4b2,isReady:_0x3db022,isEnabled:_0xaaca10}=this[_0x3bc1('0x5f')][_0x3bc1('0xaf')][_0x3bc1('0x117')](d);this[_0x3bc1('0x61')]=!!(_0xaaca10&&_0x3db022&&_0x28b4b2)&&(!_0x2f2acd||(0x1===this['_step']?_0x3d9d55<_0x28b4b2-0x1:_0x3d9d55>0x0));}}
|
|
23
|
+
const _0x59c4=['_makeModelFromViewString','getItems','name','ck-editor__editable__overlay','removeMarker','_makeModelFromTape','revision','changeId','createRevision','next','oldRevisionId','model','authors','addMarker:revision','includes','vid','span','processor','POSITIVE_INFINITY','deletion','all','_getDiff','isObject','deletions','_cleanUp','compare','find','push','pluginName','getRevision','revision-suggestion','_appendChild','dataDowncast','low','enqueueChange','markerRange','isCollapsed','_setDistance','_removeUnsupportedChanges','attachChange','removeMarker:revision','writer','high','plugins','data-revision-','_markInsertions','_balloon','shift','remove','collaboration.channelId','target','text','_initInteractions','startsWith','view','affectsData','consume','filter','change:isReady','code','attributesAfter','adapter','bindElementToMarker','ck-suggestion-marker','getClientRects','isLimit','getWalker','refresh','length','suggestion:','_threeWayMerge','addRevisionData','return','ck-suggestion-marker-merge','requires','restoreRevisionCallback','showPreviousChange','useFillerType','dataToMarker','level','modelRange','revision:','elementEnd','attributes','hasAttribute','test','isOnRoot','change','createAttributeElement','resolve','_sortAndFilterDiffChanges','abs','elementToAttribute','-new','forward','insertions','has','hasClass','pop','isReady','change:numberOfChanges','removeClass','values','side','diff','_getRevisionsRange','getRevisionRootsAttributes','insertion','_markMismatchedRemovedTags','isBlock','uiElement','getCustomProperty','nextSibling','markersStart','getRootNames','markerNameToElements','markerToData','_setConversion','getAttributes','attribute:vid','roots','distance','ck-suggestion-marker-split','setAttribute','endIndex','_update','map','isInline','isAfter','nodeAfter','concat','previousPosition','revision-viewer','default','editing','repository','editingDowncast','_findChangeIdFromDomTarget','_getChangeFromId','_makeTape','removeMarker:revision-suggestion','markerName','upcast','viewItem','bottom','removeAttribute','listenTo','item','checkAttribute','execute','createPositionBefore','detachRoot','editor','isIncorrect','revisionHistoryAttachChange','unshift','suggestion','children','domConverter','vid_end','_getViewForChange','currentChangeNumber','conversion','revisionHistory','document','maxOffset','addRevision','observeMarkers','getRevisionData','isRemoved','data','_removeRevisionMarkers','mousedown','getIndex','activeView','enableReadOnlyMode','nextPosition','startIndex','forEach','activeChange','getAttribute','revision-start','backward','isBefore','_markMarkers','change:activeChange','getDomRoot','WidgetToolbarRepository','rootName','unbindElementFromMarkerName','markerToHighlight','isNavigationMode','merge','keys','set','_step','parent','wrap','ck-revision-history-root-','isEqual','revisionHistoryLabel','element','get','toViewPosition','first','userId','showStack','updatePosition','isSuggestion','_joinTapes','slice','RevisionViewer','addHighlight','downcastDispatcher','RevisionsRepository','toViewRange','toModel','_markSuggestions','_getViewObj','_fixObsoleteTags','pairId','type','addClass','createPositionFromPath','top','domEvent','_activeViewTarget','reconvertMarker','isContent','isRemoveSuggestion','createUIElement','isAddSuggestion','index','createRange','isAdded','getRoot','ck-revision-history-root-remove','_revisions','end','start','delete','commands','destroy','ck-suggestion-marker--active','splice','_processTape','ck-suggestion-preview-marker-','markers','from','elementStart','config','then','addRoot','split','sort','vid_start','for','schema','changes','string','loadRevisionData','_refreshStartEndIndex','stop','_cleanMarkers','element:pre','findIndex','isAtStart','data-change-id','forceDisabled','ck-suggestion-preview-marker','highest','markersEnd','catch','addMarker:revision-suggestion:insertion','mouseover','change:isEnabled','ck-suggestion-marker-','left','newRevisionId','isEnabled','parse','isAttached','ck-revision-history-root--active','consumable','_changeView','_changeIdToChange','revision-comment:','ck-revision-history-root-add','flat','insert','add','error','bind','_setChanges','mapper','diffData'];(function(_0x5d92ff,_0x59c462){const _0x47caaa=function(_0x37543c){while(--_0x37543c){_0x5d92ff['push'](_0x5d92ff['shift']());}};_0x47caaa(++_0x59c462);}(_0x59c4,0x1ed));const _0x47ca=function(_0x5d92ff,_0x59c462){_0x5d92ff=_0x5d92ff-0x0;let _0x47caaa=_0x59c4[_0x5d92ff];return _0x47caaa;};import{Plugin as _0xf99a6e,Command as _0xc82726}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3fdf1f}from'ckeditor5/src/utils';import{ContextualBalloon as _0x20f041}from'ckeditor5/src/ui';import{DocumentFragment as _0x249b21,Element as _0x4a66fb,Text as _0x24f32e,ViewDocumentFragment as _0x328c26,ViewText as _0x23338c,ViewElement as _0x3e7844,ViewContainerElement as _0x221827,ViewAttributeElement as _0x353d3f,ViewEmptyElement as _0x3adc7d,ViewRawElement as _0x4eb8c3,ViewUIElement as _0x50a834}from'ckeditor5/src/engine';import{Users as _0x345b28,getMarkerDomElement as _0x4f1b98}from'ckeditor5-collaboration/src/collaboration-core';import _0x4a531f from'./ui/revisionviewer/changedetailsview';import _0x48200f from'./revisionsrepository';import _0xeb78f6 from'./changeitem';import{default as _0xe13e1e}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x31d9d2}from'lodash-es';const tt={'c':_0x221827,'a':_0x353d3f,'e':_0x3adc7d,'r':_0x4eb8c3,'u':_0x50a834};export default class d extends _0xf99a6e{static get[_0x47ca('0x7f')](){return'RevisionViewer';}static get[_0x47ca('0xad')](){return[_0x345b28,_0x20f041,_0x48200f];}constructor(_0x1768bf){super(_0x1768bf),this[_0x47ca('0xea')]=this['editor'][_0x47ca('0x8e')][_0x47ca('0x5')](_0x47ca('0x11')),this['set'](_0x47ca('0x116'),null),this[_0x47ca('0x125')](_0x47ca('0x111'),null),this[_0x47ca('0x1d')]=null,this['set'](_0x47ca('0xcb'),null),this[_0x47ca('0x125')]('isReady',!0x1),this[_0x47ca('0x125')](_0x47ca('0x52'),!0x0),this['on'](_0x47ca('0x4e'),(_0x2d3d7e,_0x551635,_0x3fbf14)=>{this[_0x47ca('0x116')]=null,this[_0x47ca('0x111')]=null,this[_0x47ca('0xfb')][_0x47ca('0xe9')][_0x47ca('0x99')]['change'](_0x4ea076=>{for(const _0x53e144 of this['editor'][_0x47ca('0xe9')]['view']['document'][_0x47ca('0xdb')])_0x3fbf14?_0x4ea076['removeClass'](_0x47ca('0x66'),_0x53e144):_0x4ea076[_0x47ca('0x19')]('ck-editor__editable__overlay',_0x53e144);});}),this[_0x47ca('0x5f')](_0x47ca('0x122'))['to'](this,_0x47ca('0x116'),_0x164289=>null!==_0x164289),this[_0x47ca('0x5f')](_0x47ca('0x104'))['to'](this,'isReady',this,'diff',this,_0x47ca('0x116'),(_0x4ec1bb,_0xb08eb,_0x45b66d)=>_0x4ec1bb&&_0x45b66d?_0xb08eb['changes']['getIndex'](_0x45b66d):0x0),this[_0x47ca('0x5f')]('numberOfChanges')['to'](this,_0x47ca('0xc6'),this,_0x47ca('0xcb'),(_0x142b3c,_0x205f6c)=>_0x142b3c?_0x205f6c[_0x47ca('0x3d')][_0x47ca('0xa7')]:0x0),this[_0x47ca('0x57')]=null,this[_0x47ca('0x58')]=new Map(),this[_0x47ca('0xa0')]=null,this['_balloon']=this[_0x47ca('0xfb')][_0x47ca('0x8e')]['get'](_0x20f041);}['init'](){const _0x3ce187=this['editor'],_0x47bbf4=new ShowChangeCommand(_0x3ce187,{'direction':_0x47ca('0x119')}),_0x4f3af2=new ShowChangeCommand(_0x3ce187,{'direction':_0x47ca('0xc1')});(_0x3ce187['commands'][_0x47ca('0x5d')](_0x47ca('0xaf'),_0x47bbf4),_0x3ce187[_0x47ca('0x2c')][_0x47ca('0x5d')]('showNextChange',_0x4f3af2),_0x3ce187['commands'][_0x47ca('0x5d')]('restoreRevision',new RestoreRevisionCommand(_0x3ce187)),this['on'](_0x47ca('0xc7'),()=>{_0x47bbf4[_0x47ca('0xa6')](),_0x4f3af2[_0x47ca('0xa6')]();}),this['_setConversion'](),this[_0x47ca('0x97')](),_0x3ce187[_0x47ca('0x112')](_0x47ca('0xe7')),_0x3ce187['plugins']['has']('WidgetToolbarRepository'))&&_0x3ce187[_0x47ca('0x8e')][_0x47ca('0x5')](_0x47ca('0x11e'))[_0x47ca('0x47')](_0x47ca('0xe7'));}async[_0x47ca('0x10b')](_0x5e61ea){await this[_0x47ca('0x3f')](_0x5e61ea);const _0x21e26e={};for(const _0x32707e in _0x5e61ea[_0x47ca('0x62')]){if(_0x5e61ea[_0x47ca('0x62')][_0x32707e][_0x47ca('0x8a')]&&!_0x5e61ea['diffData'][_0x32707e][_0x47ca('0x8a')][_0x47ca('0x54')])continue;const _0x50b3a6=this[_0x47ca('0x10e')](JSON[_0x47ca('0x53')](_0x5e61ea[_0x47ca('0x62')][_0x32707e]['insertions'])),_0x16e502=this[_0x47ca('0xfb')]['editing'][_0x47ca('0x99')][_0x47ca('0x107')],_0x2e9c4d=new _0x328c26(_0x16e502,_0x50b3a6[_0x47ca('0xe1')](_0x2839b5=>this[_0x47ca('0x15')](_0x2839b5)));this['editor'][_0x47ca('0x10d')][_0x47ca('0x74')][_0x47ca('0xb0')]('marked'),_0x21e26e[_0x32707e]=this[_0x47ca('0xfb')][_0x47ca('0x10d')][_0x47ca('0x74')]['toData'](_0x2e9c4d),this[_0x47ca('0xfb')][_0x47ca('0x10d')][_0x47ca('0x74')][_0x47ca('0xb0')](_0x47ca('0xe8'));}return _0x21e26e;}async[_0x47ca('0xcd')](_0x285ffc){await this['loadRevisionData'](_0x285ffc);const _0x46c174={};for(const _0xa916ce in _0x285ffc[_0x47ca('0x62')])_0x285ffc['diffData'][_0xa916ce]['attachChange']&&!_0x285ffc[_0x47ca('0x62')][_0xa916ce][_0x47ca('0x8a')]['isAttached']||(_0x46c174[_0xa916ce]=_0x285ffc[_0x47ca('0x62')][_0xa916ce][_0x47ca('0x9f')]||{});return _0x46c174;}['_removeRevisionMarkers'](_0x5199e3){return(_0x5199e3=_0x5199e3[_0x47ca('0x9c')](_0x56e583=>!_0x56e583[_0x47ca('0x65')]||_0x47ca('0x118')!==_0x56e583[_0x47ca('0x65')]&&'revision-end'!==_0x56e583[_0x47ca('0x65')]))[_0x47ca('0x115')](_0x4f906f=>{_0x47ca('0x3e')!=typeof _0x4f906f&&(_0x4f906f['children']=this['_removeRevisionMarkers'](_0x4f906f[_0x47ca('0x100')]),_0x4f906f['attributes']=_0x4f906f[_0x47ca('0xb6')][_0x47ca('0x9c')](_0x27e1c4=>!_0x27e1c4[0x0]['startsWith'](_0x47ca('0x8f'))));}),_0x5199e3;}async[_0x47ca('0x7c')](_0x2c5906,_0x4dc263,_0x2fe799=!0x1){if(!this['isEnabled'])return;const _0x1a1e7e=this['diff'],_0x5e1777=this[_0x47ca('0xea')],_0x4a5f1e=_0x47ca('0x3e')==typeof _0x2c5906?_0x5e1777[_0x47ca('0x80')](_0x2c5906):_0x2c5906,_0x5b8026=_0x47ca('0x3e')==typeof _0x4dc263?_0x5e1777[_0x47ca('0x80')](_0x4dc263):_0x4dc263,_0x43b95c=_0x4a5f1e['id'],_0x1dac85=_0x5b8026?_0x5b8026['id']:null;if(!_0x2fe799&&this[_0x47ca('0xcb')]&&this[_0x47ca('0xcb')]['newRevisionId']===_0x43b95c&&this['diff'][_0x47ca('0x6d')]===_0x1dac85)return Promise['resolve']();this[_0x47ca('0xc6')]=!0x1,this[_0x47ca('0x111')]=null,this['activeChange']=null,this[_0x47ca('0xcb')]=new _0xe13e1e(_0x43b95c,_0x1dac85);const _0x4f9a34=this['_getRevisionsRange'](_0x4a5f1e,_0x5b8026,!0x0)[_0x47ca('0xe1')](_0x6b402b=>this['loadRevisionData'](_0x6b402b));return _0x4f9a34[_0x47ca('0x7e')](new Promise(_0xa97d49=>{setTimeout(_0xa97d49,0x14);})),Promise[_0x47ca('0x77')](_0x4f9a34)['then'](()=>{if(!this[_0x47ca('0x52')])return;this['_cleanUp']();const _0x218586=this['_getDiff'](_0x43b95c,_0x1dac85);for(const _0x208ef6 of _0x218586[_0x47ca('0x3d')])this[_0x47ca('0x58')][_0x47ca('0x125')](_0x208ef6['id'],_0x208ef6);this[_0x47ca('0xfb')]['model'][_0x47ca('0x85')]({'isUndoable':!0x1},_0x4d9882=>{for(const _0x410492 of this[_0x47ca('0xfb')][_0x47ca('0x6e')][_0x47ca('0x107')][_0x47ca('0xd5')]())_0x4d9882[_0x47ca('0xfa')](_0x410492);for(const _0x1d38d7 of Object[_0x47ca('0x124')](_0x218586[_0x47ca('0x6e')])){const _0x58f966=_0x4d9882[_0x47ca('0x37')](_0x1d38d7);for(const _0x3fc8c4 of Object['keys'](_0x218586['attributes'][_0x1d38d7]))_0x4d9882[_0x47ca('0xde')](_0x3fc8c4,_0x218586['attributes'][_0x1d38d7][_0x3fc8c4],_0x58f966);_0x4d9882[_0x47ca('0x5c')](_0x218586[_0x47ca('0x6e')][_0x1d38d7],_0x58f966,0x0);}}),this['diff'][_0x47ca('0x60')](this[_0x47ca('0xbd')](_0x218586[_0x47ca('0x3d')])),this['isReady']=!0x0;})[_0x47ca('0x4b')](_0x16a2ad=>{console[_0x47ca('0x5e')](_0x16a2ad),this['_cleanUp'](),_0x1a1e7e&&(this['diff']=_0x1a1e7e),this[_0x47ca('0xc6')]=!0x0;});}[_0x47ca('0xaa')](_0x29c4a1,_0x165e8c){const _0x277a28=this[_0x47ca('0xea')][_0x47ca('0x6b')](_0x29c4a1);return _0x277a28['on'](_0x47ca('0xe0'),(_0x4fb5aa,_0x10f0d6,_0x1cc976)=>_0x165e8c(_0x10f0d6,_0x1cc976,_0x277a28)),this['repository'][_0x47ca('0x109')](_0x277a28),_0x277a28;}[_0x47ca('0x3f')](_0x5343c4){if(!_0x5343c4||_0x5343c4[_0x47ca('0x62')])return Promise[_0x47ca('0xbc')]();{const _0xe6de4b=this[_0x47ca('0xfb')]['config'][_0x47ca('0x5')](_0x47ca('0x94'));return this['adapter'][_0x47ca('0x80')]({'channelId':_0xe6de4b,'revisionId':_0x5343c4['id']})[_0x47ca('0x36')](_0x2eef1e=>{_0x5343c4[_0x47ca('0xe0')]({'diffData':_0x2eef1e[_0x47ca('0x62')]},!0x0);});}}[_0x47ca('0x7b')](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x47ca('0x57')]&&this['_changeView'][_0x47ca('0x2d')](),this['_changeView']=null,this[_0x47ca('0x58')]['clear'](),this[_0x47ca('0xfb')][_0x47ca('0x6e')]['enqueueChange']({'isUndoable':!0x1},_0xdd6afa=>{for(const _0x43c17a of this[_0x47ca('0xfb')][_0x47ca('0x6e')]['document'][_0x47ca('0xd5')]())_0xdd6afa[_0x47ca('0xfa')](_0x43c17a);});}[_0x47ca('0xbd')](_0x24231b){const _0xc83c86=[],_0x319245=new Map();for(const _0x3ed3ff of this[_0x47ca('0xfb')][_0x47ca('0x6e')]['document'][_0x47ca('0xd5')]()){const _0x2c3538=this[_0x47ca('0xfb')][_0x47ca('0xe9')]['view'][_0x47ca('0x11d')](_0x3ed3ff);if(!_0x2c3538)continue;const _0x13481f=_0x2c3538[_0x47ca('0xa3')]()[_0x47ca('0xf6')](0x0);_0x13481f&&(_0xc83c86[_0x47ca('0x7e')](_0x3ed3ff),_0x319245[_0x47ca('0x125')](_0x3ed3ff,_0x13481f));}return _0xc83c86[_0x47ca('0x39')]((_0x3a2e83,_0x335a2b)=>{const _0x3556e7=_0x319245[_0x47ca('0x5')](_0x3a2e83),_0x4a8e16=_0x319245[_0x47ca('0x5')](_0x335a2b);return _0x3556e7['y']-_0x4a8e16['y']||_0x3556e7['x']-_0x4a8e16['x'];}),(_0x24231b=_0x24231b[_0x47ca('0x9c')](_0x29492c=>_0xc83c86[_0x47ca('0x71')](_0x29492c['rootName'])))[_0x47ca('0x39')]((_0x3f7abf,_0x489daf)=>_0xc83c86['indexOf'](_0x3f7abf[_0x47ca('0x11f')])-_0xc83c86['indexOf'](_0x489daf[_0x47ca('0x11f')])),_0x24231b;}['_makeTape'](_0x4f17d1){const _0x241748=Array[_0x47ca('0x33')](_0x4f17d1[_0x47ca('0x32')])['filter'](([_0x1f990f,_0x17e487])=>_0x1f990f[_0x47ca('0x98')](_0x47ca('0xb4'))&&!_0x17e487[_0x47ca('0x87')]),_0xae960e=Array['from'](this['editor'][_0x47ca('0x6e')]['createRangeIn'](_0x4f17d1)[_0x47ca('0xa5')]({'singleCharacters':!0x0}));if(0x0!=_0x241748[_0x47ca('0xa7')])for(const _0x37e6f0 of _0xae960e){const [_0x43c8fc,_0xd296cb]=_0x241748[0x0],[,_0x579eec,_0x344275]=_0x43c8fc[_0x47ca('0x38')](':');if(_0xd296cb[_0x47ca('0x29')][_0x47ca('0x2')](_0x37e6f0[_0x47ca('0x113')])&&_0x241748['shift'](),(_0x37e6f0[_0x47ca('0xe6')]['isEqual'](_0xd296cb[_0x47ca('0x2a')])||_0x37e6f0[_0x47ca('0xe6')][_0x47ca('0xe3')](_0xd296cb['start']))&&(_0x47ca('0xce')==_0x579eec?_0x37e6f0['isAdded']={'userId':_0x344275}:_0x47ca('0x76')==_0x579eec&&(_0x37e6f0[_0x47ca('0x10c')]={'userId':_0x344275})),0x0==_0x241748[_0x47ca('0xa7')])break;}return _0xae960e;}[_0x47ca('0x40')](_0x16dfa8){const _0x57fb88=new Map();for(let _0x565ac9=0x0;_0x565ac9<_0x16dfa8[_0x47ca('0xa7')];_0x565ac9++)_0x47ca('0x96')===_0x16dfa8[_0x565ac9][_0x47ca('0x18')]?(_0x16dfa8[_0x565ac9][_0x47ca('0xf6')][_0x47ca('0x114')]=_0x565ac9,_0x16dfa8[_0x565ac9][_0x47ca('0xf6')]['endIndex']=_0x565ac9):('elementStart'===_0x16dfa8[_0x565ac9]['type']?_0x16dfa8[_0x565ac9]['item']['startIndex']=_0x565ac9:'elementEnd'===_0x16dfa8[_0x565ac9][_0x47ca('0x18')]&&(_0x16dfa8[_0x565ac9][_0x47ca('0xf6')][_0x47ca('0xdf')]=_0x565ac9),_0x57fb88[_0x47ca('0x125')](_0x16dfa8[_0x565ac9]['id'],_0x565ac9));for(const _0x58a0ed of _0x57fb88[_0x47ca('0xc9')]())'elementStart'===_0x16dfa8[_0x58a0ed][_0x47ca('0x18')]?_0x16dfa8[_0x58a0ed]['item'][_0x47ca('0xdf')]=_0x57fb88[_0x47ca('0x5')](_0x16dfa8[_0x58a0ed][_0x47ca('0x17')]):_0x47ca('0xb5')===_0x16dfa8[_0x58a0ed][_0x47ca('0x18')]&&(_0x16dfa8[_0x58a0ed][_0x47ca('0xf6')][_0x47ca('0x114')]=_0x57fb88[_0x47ca('0x5')](_0x16dfa8[_0x58a0ed][_0x47ca('0x17')]));}[_0x47ca('0x30')](_0x47ed93){for(let _0x3a1e03=0x0;_0x3a1e03<_0x47ed93['length'];_0x3a1e03++){if(_0x47ca('0x34')===_0x47ed93[_0x3a1e03][_0x47ca('0x18')])_0x47ed93[_0x3a1e03][_0x47ca('0xf6')][_0x47ca('0x114')]=_0x3a1e03;else{if(_0x47ca('0xb5')===_0x47ed93[_0x3a1e03][_0x47ca('0x18')]){_0x47ed93[_0x3a1e03][_0x47ca('0xf6')][_0x47ca('0xdf')]=_0x3a1e03;const _0x3f64ce=_0x47ed93[_0x3a1e03][_0x47ca('0xf6')][_0x47ca('0x114')];_0x47ed93[_0x3f64ce][_0x47ca('0x17')]=_0x47ed93[_0x3a1e03]['id'],_0x47ed93[_0x3a1e03][_0x47ca('0x17')]=_0x47ed93[_0x3f64ce]['id'];}else _0x47ed93[_0x3a1e03]['item'][_0x47ca('0x114')]=_0x3a1e03,_0x47ed93[_0x3a1e03][_0x47ca('0xf6')][_0x47ca('0xdf')]=_0x3a1e03,_0x47ed93[_0x3a1e03]['pairId']=null;}_0x47ed93[_0x3a1e03][_0x47ca('0xd4')]||(_0x47ed93[_0x3a1e03][_0x47ca('0xd4')]=[],_0x47ed93[_0x3a1e03][_0x47ca('0x4a')]=[]);}}[_0x47ca('0x90')](_0x2ddff8,_0x4f68d5){const _0x3b325e=_0x2ddff8[_0x47ca('0x9c')](_0x541408=>!_0x541408[_0x47ca('0x25')]);for(let _0x2b4ff2=0x0;_0x2b4ff2<_0x4f68d5['length'];_0x2b4ff2++)_0x4f68d5[_0x2b4ff2][_0x47ca('0x25')]&&(_0x3b325e[_0x2b4ff2][_0x47ca('0x25')]=_0x4f68d5[_0x2b4ff2][_0x47ca('0x25')]);}[_0x47ca('0x63')](_0x380071){const _0x62f313=JSON[_0x47ca('0x53')](_0x380071),_0x18390c=this[_0x47ca('0xfb')][_0x47ca('0xe9')]['view'][_0x47ca('0x107')],_0x40d936=new _0x328c26(_0x18390c,_0x62f313[_0x47ca('0xe1')](_0x58f573=>this[_0x47ca('0x15')](_0x58f573)));return this['editor'][_0x47ca('0x10d')][_0x47ca('0x13')](_0x40d936);}[_0x47ca('0x15')](_0x5864aa){const _0x2e471c=this[_0x47ca('0xfb')][_0x47ca('0xe9')][_0x47ca('0x99')][_0x47ca('0x107')];if(_0x47ca('0x3e')==typeof _0x5864aa)return new _0x23338c(_0x2e471c,_0x5864aa);{const _0x1fd600=_0x5864aa[_0x47ca('0x100')][_0x47ca('0xe1')](_0x38ddeb=>this['_getViewObj'](_0x38ddeb));return new(tt[_0x5864aa[(_0x47ca('0x18'))]]||_0x3e7844)(_0x2e471c,_0x5864aa['name'],_0x5864aa['attributes'],_0x1fd600);}}[_0x47ca('0x78')](_0x12091e,_0xa32b6a=null){const _0x27f540=this['repository'][_0x47ca('0x80')](_0x12091e),_0x4a064d=_0xa32b6a?this['repository']['getRevision'](_0xa32b6a):null,_0x565d67=this['_getRevisionsRange'](_0x27f540,_0x4a064d),_0x3f98d0=_0x565d67[_0x565d67[_0x47ca('0xa7')]-0x1],_0x30b46b=new Map(),_0x111b90={'model':{},'attributes':{},'changes':[]},_0x19cf58=new Set(),_0x393806=new Map();for(let _0x1869d1=_0x565d67[_0x47ca('0xa7')]-0x1;_0x1869d1>=0x0;_0x1869d1--){const _0x2cdebe=_0x565d67[_0x1869d1];for(const _0x45c588 of Object['keys'](_0x2cdebe[_0x47ca('0x62')]))if(_0x2cdebe[_0x47ca('0x62')][_0x45c588][_0x47ca('0x8a')]){const _0x599cc8=_0x2cdebe[_0x47ca('0x62')][_0x45c588]['attachChange'];_0x599cc8[_0x47ca('0x54')]?(_0x19cf58['add'](_0x45c588),_0x393806['has'](_0x45c588)&&_0x393806[_0x47ca('0x5')](_0x45c588)[_0x47ca('0x8')]==_0x599cc8[_0x47ca('0x8')]?_0x393806[_0x47ca('0x2b')](_0x45c588):_0x393806[_0x47ca('0x125')](_0x45c588,_0x599cc8)):_0x393806['has'](_0x45c588)?(_0x19cf58['delete'](_0x45c588),_0x393806[_0x47ca('0x2b')](_0x45c588)):(_0x19cf58[_0x47ca('0x5d')](_0x45c588),_0x393806[_0x47ca('0x125')](_0x45c588,_0x599cc8));}else _0x19cf58[_0x47ca('0x5d')](_0x45c588);}for(const _0x3436c8 of _0x19cf58){const _0x393715=_0x393806[_0x47ca('0xc3')](_0x3436c8)&&!_0x393806[_0x47ca('0x5')](_0x3436c8)['isAttached'];let _0x54f68c=_0x393715?_0x565d67[_0x47ca('0xa7')]-0x1:0x0;const _0x3f6612=_0x393715?-0x1:0x1;for(;_0x565d67[_0x54f68c];){const _0x5f19f7=_0x565d67[_0x54f68c];if(_0x5f19f7['diffData'][_0x3436c8]){const _0x4a06de=_0x393715?_0x5f19f7[_0x47ca('0x62')][_0x3436c8]['attributesBefore']:_0x5f19f7[_0x47ca('0x62')][_0x3436c8][_0x47ca('0x9f')];_0x111b90[_0x47ca('0xb6')][_0x3436c8]=_0x4a06de?_0x31d9d2(_0x4a06de):{};break;}_0x54f68c+=_0x3f6612;}}for(const _0x4dd6df of _0x565d67){_0x4dd6df['model']={};for(const _0x39f82a of _0x4dd6df[_0x47ca('0x6f')])_0x30b46b['set'](_0x39f82a['id'],_0x39f82a);for(const _0x5d5735 of _0x19cf58){const _0x4d6bb2=_0x4dd6df[_0x47ca('0x62')][_0x5d5735]?_0x4dd6df[_0x47ca('0x62')][_0x5d5735]['insertions']:'[]',_0x4a8c3e=_0x4dd6df['diffData'][_0x5d5735]?_0x4dd6df['diffData'][_0x5d5735][_0x47ca('0x7a')]:'[]';_0x4dd6df[_0x47ca('0x6e')][_0x5d5735]={'insertions':this[_0x47ca('0x63')](_0x4d6bb2),'deletions':this[_0x47ca('0x63')](_0x4a8c3e)};}}for(const _0x44cc41 of _0x19cf58){let _0x4cf949=null,_0x3ef438=0x0;const _0x3d9b2d=new Map(Array['from'](_0x27f540['model'][_0x44cc41][_0x47ca('0xc2')][_0x47ca('0x32')])[_0x47ca('0x9c')](([_0x515ee7])=>!_0x515ee7[_0x47ca('0x98')](_0x47ca('0xb4'))));let _0xcbbf54=0x0;for(const _0x148682 of _0x565d67){const _0x5873ec=this[_0x47ca('0xee')](_0x148682[_0x47ca('0x6e')][_0x44cc41]['insertions']);_0x148682==_0x27f540?(_0x4cf949=_0x5873ec,_0x3ef438=_0x4cf949['length'],_0x4cf949[_0x47ca('0x115')](_0x3912c2=>{_0x3912c2['id']=_0xcbbf54++;}),this[_0x47ca('0x30')](_0x4cf949)):this[_0x47ca('0x90')](_0x4cf949,_0x5873ec);const _0x49e292=_0x4cf949[_0x47ca('0x9c')](_0xa9542b=>!_0xa9542b[_0x47ca('0x25')])[_0x47ca('0xe1')](_0x2fd1c9=>_0x2fd1c9['id']);let _0x352a9e=0x0;const _0x575699=this['_makeTape'](_0x148682[_0x47ca('0x6e')][_0x44cc41]['deletions']);_0x575699['forEach'](_0x371ee3=>{_0x371ee3['isRemoved']?_0x371ee3['id']=_0x3ef438++:_0x371ee3['id']=_0x49e292[_0x352a9e++];}),this[_0x47ca('0x30')](_0x575699),this[_0x47ca('0x88')](_0x4cf949,_0x47ca('0x25')),this[_0x47ca('0x88')](_0x575699,_0x47ca('0x10c')),_0x148682==_0x27f540&&this['_markMarkers'](_0x4cf949,_0x3d9b2d),_0x4cf949=this[_0x47ca('0xc')](_0x4cf949,_0x575699),this[_0x47ca('0x40')](_0x4cf949),this[_0x47ca('0x88')](_0x4cf949,_0x47ca('0x10c'));}_0x4cf949=_0x4cf949['filter'](_0x1c9884=>!(_0x1c9884['isAdded']&&_0x1c9884[_0x47ca('0x10c')]));const _0x30e635=new Map(_0x3f98d0[_0x47ca('0x6e')][_0x44cc41]['deletions']['markers']),_0x40a865=new Set(_0x3d9b2d[_0x47ca('0x124')]());for(const _0x3a24f6 of _0x30e635[_0x47ca('0x124')]())_0x40a865[_0x47ca('0x2b')](_0x3a24f6);this[_0x47ca('0x14')](_0x4cf949,_0x40a865),this[_0x47ca('0x16')](_0x4cf949),_0x4cf949=this['_removeMissingPairs'](_0x4cf949),_0x4cf949=this[_0x47ca('0xcf')](_0x4cf949),_0x4cf949=this[_0x47ca('0x89')](_0x4cf949);const {root:_0x4f0662,changes:_0x4fef7f}=this[_0x47ca('0x68')](_0x4cf949,_0x30b46b,_0x44cc41);_0x111b90[_0x47ca('0x6e')][_0x44cc41]=_0x4f0662;const _0x44ac65=_0x393806[_0x47ca('0x5')](_0x44cc41);if(_0x44ac65){const _0x178dbc=_0x30b46b['get'](_0x44ac65['userId']),_0x298c20=new _0xeb78f6({'author':_0x178dbc,'type':_0x44ac65['isAttached']?_0x47ca('0x5d'):_0x47ca('0x93'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x44cc41});_0x4fef7f[_0x47ca('0xfe')](_0x298c20),_0x111b90[_0x47ca('0xb6')][_0x44cc41]['revisionHistoryAttachChange']=_0x298c20['id'];}_0x111b90[_0x47ca('0x3d')]=_0x111b90[_0x47ca('0x3d')][_0x47ca('0xe5')](_0x4fef7f);}return _0x111b90;}[_0x47ca('0x11b')](_0x4edcf7,_0x1c911c){for(let _0x6e5737=0x0;_0x6e5737<_0x4edcf7['length'];_0x6e5737++)for(const [_0x361594,_0x95939]of _0x1c911c)_0x95939[_0x47ca('0x2a')][_0x47ca('0x2')](_0x4edcf7[_0x6e5737][_0x47ca('0xe6')])&&_0x4edcf7[_0x6e5737][_0x47ca('0xd4')][_0x47ca('0x7e')](_0x361594),_0x95939['end']['isEqual'](_0x4edcf7[_0x6e5737]['nextPosition'])&&_0x4edcf7[_0x6e5737]['markersEnd'][_0x47ca('0x7e')](_0x361594);}['_joinTapes'](_0x19a29b,_0x12093a){let _0x275759=[],_0x3a6655=0x0,_0x362fac=0x0;for(;_0x3a6655<_0x19a29b[_0x47ca('0xa7')]||_0x362fac<_0x12093a[_0x47ca('0xa7')];){const _0x3b4464=_0x19a29b[_0x3a6655]||{},_0x76def6=_0x12093a[_0x362fac]||{};if(_0x3b4464['id']==_0x76def6['id'])_0x3a6655++,_0x362fac++,_0x275759[_0x47ca('0x7e')](_0x3b4464);else{if(_0x76def6['isRemoved']&&_0x3b4464[_0x47ca('0x25')]){const {commonTape:_0x3db894,iEnd:_0x288516,jEnd:_0x49da10}=this['_threeWayMerge'](_0x19a29b,_0x3a6655,_0x12093a,_0x362fac);_0x275759=_0x275759[_0x47ca('0xe5')](_0x3db894),_0x3a6655=_0x288516,_0x362fac=_0x49da10;}else _0x76def6[_0x47ca('0x10c')]?(_0x362fac++,_0x275759[_0x47ca('0x7e')](_0x76def6)):(_0x3a6655++,_0x275759[_0x47ca('0x7e')](_0x3b4464));}}return _0x275759;}['_markSuggestions'](_0x16c8c6,_0x21a34b){const _0x4b273f=[];for(let _0x410466=0x0;_0x410466<_0x16c8c6[_0x47ca('0xa7')];_0x410466++){for(let _0x1244fb=0x0;_0x1244fb<_0x16c8c6[_0x410466]['markersStart']['length'];_0x1244fb++){const _0x21dce9=_0x16c8c6[_0x410466][_0x47ca('0xd4')][_0x1244fb];if(!_0x21a34b[_0x47ca('0xc3')](_0x21dce9))continue;const {group:_0x4bc47b,type:_0x375c61,authorId:_0x40c0fa}=_0x11d609(_0x21dce9);_0x47ca('0x81')!=_0x4bc47b||_0x47ca('0xce')!=_0x375c61&&'deletion'!=_0x375c61||(_0x4b273f[_0x47ca('0xfe')]({'type':_0x375c61,'name':_0x21dce9,'userId':_0x40c0fa}),_0x16c8c6[_0x410466][_0x47ca('0xd4')]['splice'](_0x1244fb,0x1),_0x1244fb--);}_0x3c7cef(_0x16c8c6[_0x410466]);for(let _0x4f8a74=0x0;_0x4f8a74<_0x16c8c6[_0x410466][_0x47ca('0x4a')][_0x47ca('0xa7')];_0x4f8a74++){const _0x169c39=_0x16c8c6[_0x410466][_0x47ca('0x4a')][_0x4f8a74];if(!_0x21a34b[_0x47ca('0xc3')](_0x169c39))continue;const {group:_0x3967ed,type:_0x299744}=_0x11d609(_0x169c39);if('revision-suggestion'!=_0x3967ed||_0x47ca('0xce')!=_0x299744&&_0x47ca('0x76')!=_0x299744)continue;_0x16c8c6[_0x410466][_0x47ca('0x4a')][_0x47ca('0x2f')](_0x4f8a74,0x1),_0x4f8a74--;const _0x724962=_0x4b273f[_0x47ca('0x44')](_0x18a68=>_0x18a68[_0x47ca('0x65')]==_0x169c39);_0x724962>-0x1&&_0x4b273f['splice'](_0x724962,0x1);}}function _0x11d609(_0x557bee){const _0x3b5e15=_0x557bee[_0x47ca('0x38')](':');return{'group':_0x3b5e15[0x0],'type':_0x3b5e15[0x1],'subType':_0x3b5e15[_0x47ca('0xa7')]>=0x5?_0x3b5e15[0x2]:null,'id':_0x3b5e15[_0x47ca('0xa7')]<0x5?_0x3b5e15[0x2]:_0x3b5e15[0x3],'authorId':_0x3b5e15[_0x47ca('0xa7')]<0x5?_0x3b5e15[0x3]:_0x3b5e15[0x4],'markerCount':0x6==_0x3b5e15[_0x47ca('0xa7')]?_0x3b5e15[0x5]:null};}function _0x3c7cef(_0x381ef9){for(let _0x23d50e=0x0;_0x23d50e<_0x4b273f['length'];_0x23d50e++){if(_0x381ef9[_0x47ca('0x25')]&&_0x47ca('0xce')==_0x4b273f[_0x23d50e][_0x47ca('0x18')])return _0x381ef9[_0x47ca('0x22')]=_0x4b273f[_0x23d50e],void delete _0x381ef9['isAdded'];if(!_0x381ef9[_0x47ca('0x25')]&&!_0x381ef9['isRemoved']&&_0x47ca('0x76')==_0x4b273f[_0x23d50e]['type'])return void(_0x381ef9[_0x47ca('0x20')]=_0x4b273f[_0x23d50e]);}}}['_setDistance'](_0x3efebd,_0x55e91b){let _0x1e1b54=0x0,_0x5c294e=!0x1;const _0x4bede9=new Map();for(const _0x362c6a of _0x3efebd)_0x362c6a[_0x55e91b]?_0x5c294e&&(_0x1e1b54++,_0x5c294e=!0x1):(_0x1e1b54++,_0x5c294e=!0x0),_0x4bede9[_0x47ca('0x125')](_0x362c6a['id'],_0x1e1b54);for(let _0x39f4d4=0x0;_0x39f4d4<_0x3efebd[_0x47ca('0xa7')];_0x39f4d4++){if(_0x47ca('0x10c')==_0x55e91b&&_0x3efebd[_0x39f4d4][_0x47ca('0x25')]||_0x47ca('0x25')==_0x55e91b&&_0x3efebd[_0x39f4d4]['isRemoved'])continue;if(_0x47ca('0x96')==_0x3efebd[_0x39f4d4][_0x47ca('0x18')]){_0x3efebd[_0x39f4d4][_0x47ca('0xdc')]=0x0;continue;}const _0x2d63b6=_0x4bede9[_0x47ca('0x5')](_0x3efebd[_0x39f4d4][_0x47ca('0x17')]),_0x2e76c7=_0x4bede9[_0x47ca('0x5')](_0x3efebd[_0x39f4d4]['id']);_0x3efebd[_0x39f4d4][_0x47ca('0xdc')]=_0x2d63b6-_0x2e76c7;}}[_0x47ca('0xcc')](_0x5212a6,_0x1793f0,_0x239cfc=!0x1){const _0x3ec53a=[];let _0x4595dc=this[_0x47ca('0xea')][_0x47ca('0x110')](_0x5212a6),_0x285791=this[_0x47ca('0xea')]['getIndex'](_0x1793f0);for(-0x1==_0x285791&&(_0x285791=this[_0x47ca('0xea')][_0x47ca('0x28')][_0x47ca('0xa7')],_0x239cfc=!0x1);_0x4595dc<_0x285791;)_0x3ec53a[_0x47ca('0x7e')](this['repository']['getRevision'](_0x4595dc)),_0x4595dc++;return _0x239cfc&&_0x3ec53a['push'](this[_0x47ca('0xea')][_0x47ca('0x80')](_0x4595dc)),_0x3ec53a;}[_0x47ca('0xa9')](_0x2f0963,_0x26828d,_0x454053,_0x2b6050){const _0x5f132a=this[_0x47ca('0xfb')][_0x47ca('0x6e')][_0x47ca('0x3c')];let _0x1b0053=_0x26828d;for(;_0x2f0963[_0x1b0053]&&_0x2f0963[_0x1b0053][_0x47ca('0x25')];)_0x1b0053++;let _0x447afa=_0x2b6050;for(;_0x454053[_0x447afa]&&_0x454053[_0x447afa]['isRemoved'];)_0x447afa++;_0x1906a5(_0x2f0963,_0x26828d,_0x1b0053),_0x1906a5(_0x454053,_0x2b6050,_0x447afa);const _0x50fbef=_0x454053[_0x47ca('0xd')](_0x2b6050,_0x447afa)['concat'](_0x2f0963[_0x47ca('0xd')](_0x26828d,_0x1b0053));return _0x50fbef[_0x47ca('0x39')]((_0x46e5bb,_0x4a1491)=>_0x46e5bb[_0x47ca('0xca')]!=_0x4a1491[_0x47ca('0xca')]?_0x46e5bb[_0x47ca('0xca')]-_0x4a1491[_0x47ca('0xca')]:_0x46e5bb[_0x47ca('0xb2')]!=_0x4a1491[_0x47ca('0xb2')]?_0x46e5bb[_0x47ca('0xb2')]-_0x4a1491['level']:_0x46e5bb[_0x47ca('0xdc')]!=_0x4a1491['distance']?_0x4a1491[_0x47ca('0xdc')]-_0x46e5bb[_0x47ca('0xdc')]:!!_0x46e5bb['isAdded']!=!!_0x4a1491['isAdded']?-0x1==_0x46e5bb[_0x47ca('0xca')]||0x0==_0x46e5bb['side']?_0x46e5bb[_0x47ca('0x25')]?-0x1:0x1:_0x46e5bb[_0x47ca('0x25')]?0x1:-0x1:_0x46e5bb['index']-_0x4a1491[_0x47ca('0x23')]),{'commonTape':_0x50fbef,'iEnd':_0x1b0053,'jEnd':_0x447afa};function _0x1906a5(_0x38eacb,_0x269c73,_0x179a6d){let _0x348121=-0x1,_0x4dbdbe=Number[_0x47ca('0x75')],_0x402d31=!0x0;for(let _0x10fd06=_0x269c73;_0x10fd06<_0x179a6d;_0x10fd06++)if(_0x5f132a[_0x47ca('0xe2')](_0x38eacb[_0x10fd06]['item'])||(_0x402d31=!0x1),_0x38eacb[_0x10fd06][_0x47ca('0xf6')][_0x47ca('0x114')]<_0x269c73&&(_0x348121=_0x10fd06),_0x38eacb[_0x10fd06][_0x47ca('0xf6')][_0x47ca('0xdf')]>=_0x179a6d){_0x4dbdbe=_0x10fd06;break;}_0x402d31&&(_0x348121=_0x179a6d-0x1);for(let _0x559775=_0x269c73;_0x559775<_0x179a6d;_0x559775++)_0x38eacb[_0x559775][_0x47ca('0xca')]=_0x559775<=_0x348121?-0x1:_0x559775<_0x4dbdbe?0x0:0x1,_0x38eacb[_0x559775][_0x47ca('0x23')]=_0x559775;let _0x4808f3=0x0;for(let _0x356205=_0x269c73;_0x356205<=_0x348121;_0x356205++)0x0==_0x38eacb[_0x356205][_0x47ca('0xdc')]?_0x38eacb[_0x356205][_0x47ca('0xb2')]=_0x4808f3:(_0x4808f3++,_0x38eacb[_0x356205][_0x47ca('0xb2')]=_0x4808f3,_0x4808f3++);for(let _0x557482=_0x269c73;_0x557482<_0x179a6d;_0x557482++)0x0==_0x38eacb[_0x557482][_0x47ca('0xca')]&&(_0x38eacb[_0x557482]['level']=_0x4808f3);_0x4808f3=0x0;for(let _0x18150d=_0x179a6d-0x1;_0x18150d>=_0x4dbdbe;_0x18150d--)0x0==_0x38eacb[_0x18150d][_0x47ca('0xdc')]?_0x38eacb[_0x18150d][_0x47ca('0xb2')]=_0x4808f3:(_0x4808f3--,_0x38eacb[_0x18150d][_0x47ca('0xb2')]=_0x4808f3,_0x4808f3--);}}[_0x47ca('0x16')](_0x46f506){const _0x4689f9=new Map(),_0x5d8e56=this[_0x47ca('0xfb')]['model'][_0x47ca('0x3c')];for(let _0x3dbd79=0x1;_0x3dbd79<_0x46f506['length'];_0x3dbd79++){let _0x2de30b,_0x561e4e,_0x396fa2;const _0x347a64=_0x46f506[_0x3dbd79],_0x3469a8=_0x46f506[_0x3dbd79-0x1];if(_0x47ca('0x96')==_0x347a64[_0x47ca('0x18')])continue;if(_0x347a64['type']!=_0x3469a8[_0x47ca('0x18')])continue;if(!_0x5d8e56[_0x47ca('0xd0')](_0x3469a8[_0x47ca('0xf6')])||_0x5d8e56['isLimit'](_0x3469a8['item']))continue;if(!_0x5d8e56[_0x47ca('0xd0')](_0x347a64['item'])||_0x5d8e56[_0x47ca('0xa4')](_0x347a64[_0x47ca('0xf6')]))continue;if((_0x46f506[_0x3dbd79][_0x47ca('0x25')]||_0x46f506[_0x3dbd79][_0x47ca('0x22')])&&_0x46f506[_0x3dbd79-0x1]['isRemoved'])_0x2de30b=_0x46f506[_0x3dbd79],_0x561e4e=_0x46f506[_0x3dbd79-0x1],_0x396fa2=_0x3dbd79-0x1;else{if(!_0x46f506[_0x3dbd79][_0x47ca('0x10c')]||!_0x46f506[_0x3dbd79-0x1]['isAdded']&&!_0x46f506[_0x3dbd79-0x1][_0x47ca('0x22')])continue;_0x2de30b=_0x46f506[_0x3dbd79-0x1],_0x561e4e=_0x46f506[_0x3dbd79],_0x396fa2=_0x3dbd79;}const _0x57cd1e=_0x2de30b[_0x47ca('0xb2')]==_0x561e4e[_0x47ca('0xb2')],_0x1a83b3=Math['abs'](_0x2de30b[_0x47ca('0xb2')])<Math[_0x47ca('0xbe')](_0x561e4e['level'])&&0x0==_0x561e4e[_0x47ca('0xdc')];(_0x57cd1e||_0x1a83b3)&&(_0x4689f9['set'](_0x561e4e['id'],_0x2de30b['id']),_0x46f506['splice'](_0x396fa2,0x1),_0x3dbd79--,_0x2de30b[_0x47ca('0x25')]=!0x1);}for(let _0x27454f=0x0;_0x27454f<_0x46f506['length'];_0x27454f++)_0x4689f9[_0x47ca('0xc3')](_0x46f506[_0x27454f][_0x47ca('0x17')])&&(_0x46f506[_0x27454f]['pairId']=_0x4689f9[_0x47ca('0x5')](_0x46f506[_0x27454f][_0x47ca('0x17')]));}['_removeMissingPairs'](_0x381d63){const _0x52a55e=new Set(_0x381d63[_0x47ca('0xe1')](_0x29866a=>_0x29866a['id']));for(let _0x2540e1=0x0;_0x2540e1<_0x381d63[_0x47ca('0xa7')];_0x2540e1++)_0x52a55e[_0x47ca('0xc3')](_0x381d63[_0x2540e1][_0x47ca('0x17')])||0x0==_0x381d63[_0x2540e1][_0x47ca('0xdc')]||(_0x381d63[_0x2540e1][_0x47ca('0xfc')]=!0x0);return _0x381d63[_0x47ca('0x9c')](_0x3ec01c=>!_0x3ec01c[_0x47ca('0xfc')]);}[_0x47ca('0xcf')](_0x4a4d1c){const _0x312514=new Set();for(let _0x45de44=0x0;_0x45de44<_0x4a4d1c[_0x47ca('0xa7')];_0x45de44++){if(_0x312514[_0x47ca('0xc3')](_0x4a4d1c[_0x45de44]['id'])&&_0x4a4d1c[_0x45de44]['isRemoved']&&(_0x4a4d1c[_0x45de44][_0x47ca('0xfc')]=!0x0),_0x4a4d1c[_0x45de44]['isIncorrect'])continue;if(0x0==_0x4a4d1c[_0x45de44][_0x47ca('0xdc')])continue;if(_0x47ca('0x34')!=_0x4a4d1c[_0x45de44][_0x47ca('0x18')])continue;if(null==_0x4a4d1c[_0x45de44][_0x47ca('0x17')])continue;let _0x5c8efb=_0x45de44+0x1,_0x5d8af0=0x0;for(;_0x4a4d1c[_0x5c8efb]['id']!=_0x4a4d1c[_0x45de44]['pairId'];)_0x47ca('0x34')==_0x4a4d1c[_0x5c8efb][_0x47ca('0x18')]?_0x5d8af0++:_0x47ca('0xb5')==_0x4a4d1c[_0x5c8efb][_0x47ca('0x18')]&&_0x5d8af0--,_0x5c8efb++;if(0x0!=_0x5d8af0){if(_0x4a4d1c[_0x45de44][_0x47ca('0x10c')])_0x4a4d1c[_0x45de44]['isIncorrect']=!0x0;else for(;_0x5c8efb!=_0x45de44;)_0x4a4d1c[_0x5c8efb][_0x47ca('0x10c')]&&0x0!=_0x4a4d1c[_0x5c8efb][_0x47ca('0xdc')]&&(_0x4a4d1c[_0x5c8efb][_0x47ca('0xfc')]=!0x0,_0x312514['add'](_0x4a4d1c[_0x5c8efb][_0x47ca('0x17')])),_0x5c8efb--;}}return _0x4a4d1c['filter'](_0x58e19d=>!_0x58e19d['isIncorrect']);}[_0x47ca('0x89')](_0xf58455){const _0x369591=this[_0x47ca('0xfb')][_0x47ca('0x6e')]['schema'];for(let _0x3e3dfa=0x0;_0x3e3dfa<_0xf58455['length'];_0x3e3dfa++){if(!(_0xf58455[_0x3e3dfa][_0x47ca('0x25')]||_0xf58455[_0x3e3dfa][_0x47ca('0x22')]||_0xf58455[_0x3e3dfa][_0x47ca('0x10c')]||_0xf58455[_0x3e3dfa][_0x47ca('0x20')]))continue;if(0x0==_0xf58455[_0x3e3dfa][_0x47ca('0xdc')])continue;const _0x35589f=_0xf58455[_0x3e3dfa][_0x47ca('0xf6')];_0x369591[_0x47ca('0xd0')](_0x35589f)||_0x369591[_0x47ca('0xa4')](_0x35589f)||(_0xf58455[_0x3e3dfa][_0x47ca('0x25')]&&delete _0xf58455[_0x3e3dfa]['isAdded'],_0xf58455[_0x3e3dfa][_0x47ca('0x22')]&&delete _0xf58455[_0x3e3dfa][_0x47ca('0x22')],_0xf58455[_0x3e3dfa][_0x47ca('0x20')]&&delete _0xf58455[_0x3e3dfa][_0x47ca('0x20')],_0xf58455[_0x3e3dfa][_0x47ca('0x10c')]&&(_0xf58455[_0x3e3dfa][_0x47ca('0xfc')]=!0x0));}return _0xf58455[_0x47ca('0x9c')](_0x192bca=>!_0x192bca[_0x47ca('0xfc')]);}[_0x47ca('0x68')](_0x5d272c,_0x551952,_0x54f065){const _0x5856e3=new _0x249b21(),_0x20abbb=[],_0x23118b=new Map(),_0x28c7f7=this[_0x47ca('0xfb')][_0x47ca('0x6e')],_0x31356d=_0x28c7f7[_0x47ca('0x3c')],_0x383924=[_0x5856e3],_0xa93c7b={},_0x4fdd42={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x52fdea=null;const _0x4e2aaa=[0x0];for(let _0x4d00a0=0x0;_0x4d00a0<_0x5d272c[_0x47ca('0xa7')];_0x4d00a0++){let _0x46a24e,_0x3436e7;if(_0x47ca('0x34')===_0x5d272c[_0x4d00a0][_0x47ca('0x18')]){_0x46a24e=_0x28c7f7[_0x47ca('0x1a')](_0x5856e3,_0x4e2aaa);const _0x168ed0=new _0x4a66fb(_0x5d272c[_0x4d00a0][_0x47ca('0xf6')][_0x47ca('0x65')],_0x5d272c[_0x4d00a0][_0x47ca('0xf6')][_0x47ca('0xd9')]());_0x383924[0x0]['_appendChild'](_0x168ed0),_0x4e2aaa[_0x47ca('0x7e')](0x0),_0x383924[_0x47ca('0xfe')](_0x168ed0),_0x3436e7=_0x28c7f7[_0x47ca('0x1a')](_0x5856e3,_0x4e2aaa),_0x52fdea=null;}else{if('elementEnd'===_0x5d272c[_0x4d00a0][_0x47ca('0x18')])_0x383924[_0x47ca('0x92')](),_0x46a24e=_0x28c7f7[_0x47ca('0x1a')](_0x5856e3,_0x4e2aaa),_0x4e2aaa[_0x47ca('0xc5')](),_0x4e2aaa[_0x4e2aaa[_0x47ca('0xa7')]-0x1]++,_0x3436e7=_0x28c7f7['createPositionFromPath'](_0x5856e3,_0x4e2aaa),_0x52fdea=null;else{if(_0x46a24e=_0x28c7f7[_0x47ca('0x1a')](_0x5856e3,_0x4e2aaa),_0x52fdea&&_0x3f3748(_0x52fdea,_0x5d272c[_0x4d00a0][_0x47ca('0xf6')]))_0x52fdea['_data']+=_0x5d272c[_0x4d00a0]['item'][_0x47ca('0x10d')];else{const _0x8fc358=new _0x24f32e(_0x5d272c[_0x4d00a0][_0x47ca('0xf6')][_0x47ca('0x10d')],_0x5d272c[_0x4d00a0][_0x47ca('0xf6')][_0x47ca('0xd9')]());_0x383924[0x0][_0x47ca('0x82')](_0x8fc358),_0x52fdea=_0x8fc358;}_0x4e2aaa[_0x4e2aaa['length']-0x1]+=_0x5d272c[_0x4d00a0][_0x47ca('0xf6')]['offsetSize'],_0x3436e7=_0x28c7f7[_0x47ca('0x1a')](_0x5856e3,_0x4e2aaa);}}for(const _0x2187e4 of _0x5d272c[_0x4d00a0][_0x47ca('0xd4')])_0x23118b[_0x47ca('0x125')](_0x2187e4,{'start':_0x46a24e,'end':null});_0x3a0ff8(_0x47ca('0x20'),_0x4d00a0,_0x46a24e,_0x3436e7),_0x3a0ff8(_0x47ca('0x22'),_0x4d00a0,_0x46a24e,_0x3436e7),_0x3a0ff8('isRemoved',_0x4d00a0,_0x46a24e,_0x3436e7),_0x3a0ff8('isAdded',_0x4d00a0,_0x46a24e,_0x3436e7);for(const _0x39d761 of _0x5d272c[_0x4d00a0][_0x47ca('0x4a')]){_0x23118b['get'](_0x39d761)[_0x47ca('0x29')]=_0x3436e7;}}for(const [_0x4c95c9,_0x1d1581]of _0x23118b){const _0x4cc09f=this[_0x47ca('0xfb')][_0x47ca('0x6e')][_0x47ca('0x24')](_0x1d1581[_0x47ca('0x2a')],_0x1d1581[_0x47ca('0x29')]);_0x5856e3[_0x47ca('0x32')]['set'](_0x4c95c9,_0x4cc09f);}return _0x20abbb[_0x47ca('0x39')]((_0x30355b,_0x5ba7d2)=>{const _0x4a47aa=_0x5856e3[_0x47ca('0x32')]['get'](_0x47ca('0xb4')+_0x30355b['id']),_0x29dc4c=_0x5856e3['markers']['get'](_0x47ca('0xb4')+_0x5ba7d2['id']);return _0x4a47aa[_0x47ca('0x2a')]['isBefore'](_0x29dc4c[_0x47ca('0x2a')])?-0x1:_0x4a47aa[_0x47ca('0x2a')]['isAfter'](_0x29dc4c['start'])?0x1:_0x4a47aa[_0x47ca('0x29')][_0x47ca('0x11a')](_0x29dc4c[_0x47ca('0x29')])?-0x1:_0x4a47aa[_0x47ca('0x29')]['isAfter'](_0x29dc4c[_0x47ca('0x29')])?0x1:_0x47ca('0x5d')===_0x30355b[_0x47ca('0x18')]?-0x1:0x1;}),{'root':_0x5856e3,'changes':_0x20abbb};function _0x3a0ff8(_0x31c757,_0x1a4260,_0x4e521f,_0x527a2e){const _0x43f9ab=!!_0x5d272c[_0x1a4260][_0x31c757],_0x48afd6=_0x43f9ab?_0x5d272c[_0x1a4260][_0x31c757][_0x47ca('0x8')]:null,_0x224799=_0x1a4260===_0x5d272c[_0x47ca('0xa7')]-0x1,_0x4bfa5a=_0x4fdd42[_0x31c757][0x0],_0x560e78=_0x31356d[_0x47ca('0x79')](_0x5d272c[_0x1a4260]['item']);!_0xa93c7b[_0x31c757]&&_0x43f9ab?_0xa93c7b[_0x31c757]={'start':_0x4e521f,'tapeItem':_0x5d272c[_0x1a4260],'userId':_0x48afd6,'type':_0x31c757}:_0xa93c7b[_0x31c757]&&!_0x43f9ab?(_0xa93c7b[_0x31c757][_0x47ca('0x29')]=_0x4e521f,_0x22dc24(_0xa93c7b[_0x31c757]),_0xa93c7b[_0x31c757]=null):_0xa93c7b[_0x31c757]&&_0x43f9ab&&_0xa93c7b[_0x31c757][_0x47ca('0x8')]!==_0x48afd6&&(_0xa93c7b[_0x31c757]['end']=_0x4e521f,_0x4bfa5a&&_0x4bfa5a[_0x47ca('0x8')]===_0xa93c7b[_0x31c757]['userId']||_0x22dc24(_0xa93c7b[_0x31c757]),_0xa93c7b[_0x31c757]={'start':_0x4e521f,'tapeItem':_0x5d272c[_0x1a4260],'userId':_0x48afd6,'type':_0x31c757}),_0xa93c7b[_0x31c757]&&_0x560e78&&('elementStart'!==_0x5d272c[_0x1a4260]['type']||_0x4bfa5a&&_0x4bfa5a[_0x47ca('0x8')]===_0x48afd6||_0x4fdd42[_0x31c757][_0x47ca('0xfe')]({'userId':_0x48afd6,'object':_0x5d272c[_0x1a4260][_0x47ca('0xf6')],'change':_0xa93c7b[_0x31c757]}),_0x47ca('0xb5')===_0x5d272c[_0x1a4260][_0x47ca('0x18')]&&_0x4bfa5a&&_0x4bfa5a['object']===_0x5d272c[_0x1a4260][_0x47ca('0xf6')]&&(_0x4fdd42[_0x31c757][_0x47ca('0x92')](),_0xa93c7b[_0x31c757]=_0x4bfa5a['change'])),_0xa93c7b[_0x31c757]&&_0x224799&&(_0xa93c7b[_0x31c757]['end']=_0x527a2e,_0x22dc24(_0xa93c7b[_0x31c757]),_0xa93c7b[_0x31c757]=null);}function _0x22dc24({start:_0x1f5152,end:_0x10dcdd,tapeItem:_0x1b6038,userId:_0x2b0db8,type:_0x521419}){const _0x3bf9b7=_0x1b6038['item'],_0x288a4d=_0x28c7f7[_0x47ca('0x3c')][_0x47ca('0xd0')](_0x3bf9b7)&&!_0x28c7f7[_0x47ca('0x3c')][_0x47ca('0xa4')](_0x3bf9b7),_0x22787d=_0x1f5152[_0x47ca('0xe4')]==_0x10dcdd[_0x47ca('0x127')]&&_0x10dcdd[_0x47ca('0x45')];if(_0x288a4d&&_0x22787d)return;const _0x296380=_0x28c7f7[_0x47ca('0x24')](_0x1f5152,_0x10dcdd),_0x4564c6=_0x551952['get'](_0x2b0db8),_0x321d72=new _0xeb78f6({'author':_0x4564c6,'type':_0x47ca('0x25')==_0x521419||_0x47ca('0x22')==_0x521419?_0x47ca('0x5d'):_0x47ca('0x93'),'data':{'isSuggestion':'isAddSuggestion'==_0x521419||_0x47ca('0x20')==_0x521419},'createdAt':new Date(),'rootName':_0x54f065});_0x20abbb[_0x47ca('0x7e')](_0x321d72),_0x5856e3[_0x47ca('0x32')][_0x47ca('0x125')](_0x47ca('0xb4')+_0x321d72['id'],_0x296380);}function _0x3f3748(_0x37f9d7,_0x2e149f){const _0x1e6ac5=_0x37f9d7[_0x47ca('0xd9')](),_0x3a5d0e=_0x2e149f['getAttributes']();for(const _0x3cfaa9 of _0x1e6ac5){if(_0x3cfaa9[0x1]!==_0x2e149f[_0x47ca('0x117')](_0x3cfaa9[0x0]))return!0x1;_0x3a5d0e[_0x47ca('0x6c')]();}return _0x3a5d0e[_0x47ca('0x6c')]()['done'];}}[_0x47ca('0xd8')](){this['editor'][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))[_0x47ca('0xb1')]({'view':_0x47ca('0x69')}),this[_0x47ca('0xfb')][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xeb'))[_0x47ca('0x121')]({'model':_0x47ca('0x69'),'view':_0x2faea5=>{const _0x257ffd=_0x2faea5[_0x47ca('0xf0')]['split'](':')[0x1],_0x4b6b43=this[_0x47ca('0xed')](_0x257ffd);if(!_0x4b6b43)return null;const _0x446a12=_0x47ca('0x5d')==_0x4b6b43[_0x47ca('0x18')]?_0x47ca('0xce'):'deletion',_0x515078=[_0x47ca('0xa2'),_0x47ca('0x4f')+_0x446a12];return _0x4b6b43[_0x47ca('0x10d')][_0x47ca('0xb')]&&_0x515078[_0x47ca('0x7e')](_0x47ca('0x4f')+_0x446a12+'-new'),this[_0x47ca('0x116')]==_0x4b6b43&&_0x515078[_0x47ca('0x7e')](_0x47ca('0x2e')),{'classes':_0x515078,'attributes':{'data-change-id':_0x257ffd}};}}),this[_0x47ca('0xfb')][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))[_0x47ca('0x5d')](_0x26dc27=>{_0x26dc27['on'](_0x47ca('0x43'),(_0x435dd9,_0x9370f7,_0x523f58)=>{const _0x1c99ca=_0x9370f7[_0x47ca('0xf2')]['getChild'](0x0);if(!_0x1c99ca||!_0x1c99ca['is'](_0x47ca('0x4'),_0x47ca('0x9e')))return;if(!_0x523f58[_0x47ca('0x56')][_0x47ca('0x9b')](_0x1c99ca,{'attributes':[_0x47ca('0x3a'),'vid_end']}))return;const _0x53b9d9=_0x9370f7['modelRange'][_0x47ca('0x2a')][_0x47ca('0xe4')];_0x523f58[_0x47ca('0x8c')]['setAttribute'](_0x47ca('0x3a'),_0x1c99ca[_0x47ca('0x117')](_0x47ca('0x3a')),_0x53b9d9),_0x523f58[_0x47ca('0x8c')][_0x47ca('0xde')](_0x47ca('0x102'),_0x1c99ca[_0x47ca('0x117')](_0x47ca('0x102')),_0x53b9d9);},{'priority':'low'});}),this['editor'][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))[_0x47ca('0x5d')](_0x47631b=>{_0x47631b['on'](_0x47ca('0x4'),(_0x45f5ef,_0xda0f9e,_0x22cf11)=>{if(!_0x22cf11['consumable'][_0x47ca('0x9b')](_0xda0f9e[_0x47ca('0xf2')],{'attributes':[_0x47ca('0x3a'),_0x47ca('0x102')]}))return;if(_0xda0f9e['modelRange']['isCollapsed'])return;const _0x288e79=_0xda0f9e[_0x47ca('0xb3')][_0x47ca('0x2a')][_0x47ca('0xe4')];_0x288e79[_0x47ca('0xb7')]('vid_start')||_0x288e79['hasAttribute']('vid')||(_0x22cf11[_0x47ca('0x8c')][_0x47ca('0xde')](_0x47ca('0x3a'),_0xda0f9e[_0x47ca('0xf2')][_0x47ca('0x117')](_0x47ca('0x3a')),_0x288e79),_0x22cf11[_0x47ca('0x8c')][_0x47ca('0xde')](_0x47ca('0x102'),_0xda0f9e[_0x47ca('0xf2')][_0x47ca('0x117')](_0x47ca('0x102')),_0x288e79));},{'priority':_0x47ca('0x84')});}),this['editor'][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))[_0x47ca('0xbf')]({'view':{'name':_0x47ca('0x73'),'attributes':{'vid':!0x0}},'model':{'key':_0x47ca('0x72'),'value':_0x4b7f42=>_0x4b7f42[_0x47ca('0x117')](_0x47ca('0x72'))}}),this[_0x47ca('0xfb')]['model']['schema']['on'](_0x47ca('0xf7'),(_0x4f06f7,[,_0x3e96e4])=>{[_0x47ca('0x3a'),'vid_end',_0x47ca('0x72')]['includes'](_0x3e96e4)&&(_0x4f06f7[_0x47ca('0xab')]=!0x0,_0x4f06f7[_0x47ca('0x41')]());},{'priority':_0x47ca('0x49')}),this[_0x47ca('0xfb')][_0x47ca('0x105')]['for'](_0x47ca('0x83'))[_0x47ca('0x5d')](_0x8c1f95=>{_0x8c1f95['on'](_0x47ca('0xda'),(_0x54eccd,_0x407e68,_0x5c6e58)=>{if('\x20'!=_0x407e68[_0x47ca('0xf6')][_0x47ca('0x10d')]||_0x407e68[_0x47ca('0xf6')][_0x47ca('0x127')][_0x47ca('0x108')]>0x1)return;if(!_0x5c6e58[_0x47ca('0x56')][_0x47ca('0x9b')](_0x407e68['item'],_0x54eccd[_0x47ca('0x65')]))return;const _0x84a71c=_0x5c6e58['writer'],_0x1b87f6=_0x5c6e58[_0x47ca('0x61')][_0x47ca('0x12')](_0x407e68['range']);_0x84a71c[_0x47ca('0x0')](_0x1b87f6,_0x84a71c[_0x47ca('0xbb')](_0x47ca('0x73')));});}),this['editor'][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0x83'))['markerToData']({'model':_0x47ca('0x69')}),this[_0x47ca('0xfb')][_0x47ca('0xe9')][_0x47ca('0x10')]['on'](_0x47ca('0x70'),function(_0x151c54){const _0x23959b=_0x151c54[_0x47ca('0x8e')][_0x47ca('0x5')](_0x47ca('0xe'));return(_0x358360,_0x334332,_0x16ae9e)=>{const _0x44c088=_0x334332[_0x47ca('0xf0')][_0x47ca('0x38')](':')[0x1],_0x18fa3b=_0x23959b['_getChangeFromId'](_0x44c088);if(!_0x18fa3b)return null;const _0x47eb30=_0x47ca('0x5d')==_0x18fa3b['type']?_0x47ca('0x38'):_0x47ca('0x123');if(!_0x16ae9e[_0x47ca('0x56')]['test'](_0x334332['markerRange'],_0x358360[_0x47ca('0x65')]))return;const _0x2a842a=_0x334332[_0x47ca('0x86')][_0x47ca('0xa5')](),_0x44c1aa=_0x334332[_0x47ca('0x86')][_0x47ca('0x2a')],_0x19f525=_0x151c54[_0x47ca('0x6e')]['schema'];let _0x454702=null,_0x402569=null,_0xaf54e0=!0x1,_0x1d8799=!0x1;for(const _0xab68d3 of _0x2a842a){const _0x53b024=_0xab68d3[_0x47ca('0xf6')];_0xaf54e0=_0xaf54e0||_0x19f525['isContent'](_0x53b024);const _0x1adc85=_0x16ae9e[_0x47ca('0x61')]['toViewElement'](_0x53b024);if(_0x1adc85&&_0x1adc85[_0x47ca('0xd2')](_0x47ca('0xf')))return;_0x47ca('0xb5')==_0xab68d3[_0x47ca('0x18')]&&(_0x19f525[_0x47ca('0xd0')](_0x53b024)&&!_0x19f525[_0x47ca('0xa4')](_0x53b024)&&(_0x53b024[_0x47ca('0xd3')]||_0x44c1aa['isAtEnd']?_0x454702&&_0x454702[_0x47ca('0x127')]==_0x53b024||(_0x454702=_0x53b024,_0xa709d1(_0xab68d3[_0x47ca('0xe6')]),_0x1d8799=!0x0):_0x402569=_0x402569||_0xab68d3['previousPosition']));}function _0xa709d1(_0x1131c8){const _0x38e26d=_0x16ae9e[_0x47ca('0x8c')]['createUIElement']('span',{'class':_0x47ca('0x4f')+_0x47eb30}),_0x25a235=_0x16ae9e[_0x47ca('0x61')][_0x47ca('0x6')](_0x1131c8);_0x18fa3b[_0x47ca('0x10d')][_0x47ca('0xb')]&&_0x16ae9e['writer'][_0x47ca('0x19')]('ck-suggestion-marker-'+_0x47eb30+_0x47ca('0xc0'),_0x38e26d),_0x23959b['activeChange']==_0x18fa3b&&_0x16ae9e[_0x47ca('0x8c')][_0x47ca('0x19')](_0x47ca('0x2e'),_0x38e26d),_0x16ae9e[_0x47ca('0x8c')]['insert'](_0x25a235,_0x38e26d),_0x16ae9e[_0x47ca('0x61')][_0x47ca('0xa1')](_0x38e26d,_0x334332[_0x47ca('0xf0')]);}_0xaf54e0||_0x1d8799||!_0x402569||_0xa709d1(_0x402569);};}(this['editor']),{'priority':_0x47ca('0x8d')}),this['editor'][_0x47ca('0xe9')][_0x47ca('0x10')]['on'](_0x47ca('0x8b'),(_0x34e4ff,_0x2d090,_0x1b11ef)=>{const _0x38ec9a=_0x1b11ef[_0x47ca('0x61')]['markerNameToElements'](_0x2d090[_0x47ca('0xf0')]);if(_0x38ec9a)for(const _0x38e47d of _0x38ec9a)(_0x38e47d['hasClass'](_0x47ca('0xdd'))||_0x38e47d[_0x47ca('0xc4')](_0x47ca('0xac')))&&(_0x1b11ef[_0x47ca('0x61')][_0x47ca('0x120')](_0x38e47d,_0x2d090['markerName']),_0x1b11ef[_0x47ca('0x8c')][_0x47ca('0x93')](_0x38e47d));},{'priority':_0x47ca('0x8d')}),this[_0x47ca('0xfb')][_0x47ca('0xe9')][_0x47ca('0x10')]['on']('addMarker:revision',(_0x528442,_0x25b122,_0x528b24)=>{const _0x4db9d2=_0x25b122[_0x47ca('0xf0')][_0x47ca('0x38')](':')[0x1],_0x51810d=this[_0x47ca('0xed')](_0x4db9d2);if(!_0x51810d)return null;const _0x1a195a='add'==_0x51810d['type']?'split':_0x47ca('0x123');if(_0x528b24[_0x47ca('0x56')][_0x47ca('0xb8')](_0x25b122[_0x47ca('0x86')],_0x528442[_0x47ca('0x65')]))for(const _0x56d0c4 of _0x25b122['markerRange'][_0x47ca('0x64')]()){if(!_0x56d0c4['is']('element','softBreak'))continue;const _0x1ebc6b=_0x528b24[_0x47ca('0x8c')]['createUIElement'](_0x47ca('0x73'),{'class':'ck-suggestion-marker-'+_0x1a195a}),_0x18e0da=_0x528b24[_0x47ca('0x61')][_0x47ca('0x6')](this['editor'][_0x47ca('0x6e')][_0x47ca('0xf9')](_0x56d0c4));_0x51810d[_0x47ca('0x10d')]['isSuggestion']&&_0x528b24[_0x47ca('0x8c')]['addClass'](_0x47ca('0x4f')+_0x1a195a+_0x47ca('0xc0'),_0x1ebc6b),this[_0x47ca('0x116')]==_0x51810d&&_0x528b24[_0x47ca('0x8c')][_0x47ca('0x19')]('ck-suggestion-marker--active',_0x1ebc6b),_0x528b24['writer'][_0x47ca('0x5c')](_0x18e0da,_0x1ebc6b),_0x528b24['mapper'][_0x47ca('0xa1')](_0x1ebc6b,_0x25b122[_0x47ca('0xf0')]);}},{'priority':_0x47ca('0x8d')}),this[_0x47ca('0xfb')]['model'][_0x47ca('0x107')]['on'](_0x47ca('0xba'),()=>{this['editor'][_0x47ca('0xe9')][_0x47ca('0x99')][_0x47ca('0xba')](_0x36d79c=>{for(const _0x3383bd of this[_0x47ca('0xfb')][_0x47ca('0x6e')]['document'][_0x47ca('0xd5')]()){const _0x2068d0=this['editor'][_0x47ca('0x6e')][_0x47ca('0x107')]['getRoot'](_0x3383bd),_0x1b646d=this['editor'][_0x47ca('0xe9')][_0x47ca('0x99')]['document'][_0x47ca('0x26')](_0x3383bd);if(_0x1b646d){const _0x45c446=_0x2068d0[_0x47ca('0x117')](_0x47ca('0xfd'));if(_0x36d79c[_0x47ca('0xf4')](_0x47ca('0x46'),_0x1b646d),_0x36d79c[_0x47ca('0xc8')](_0x47ca('0x5a'),_0x1b646d),_0x36d79c[_0x47ca('0xc8')](_0x47ca('0x27'),_0x1b646d),_0x36d79c['removeClass']('ck-revision-history-root--active',_0x1b646d),_0x45c446){const _0x1eeeec=this['_getChangeFromId'](_0x45c446);if(!_0x1eeeec)return null;_0x36d79c[_0x47ca('0xde')]('data-change-id',_0x45c446,_0x1b646d),_0x36d79c[_0x47ca('0x19')](_0x47ca('0x1')+_0x1eeeec[_0x47ca('0x18')],_0x1b646d),this[_0x47ca('0x116')]==_0x1eeeec&&_0x36d79c[_0x47ca('0x19')](_0x47ca('0x55'),_0x1b646d);}}}});}),this[_0x47ca('0xfb')][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))['dataToMarker']({'view':'comment','model':_0x268d69=>_0x47ca('0x59')+_0x268d69,'converterPriority':_0x47ca('0x49')}),this['editor'][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))['dataToMarker']({'view':_0x47ca('0xff'),'model':_0x5bb99a=>'revision-suggestion:'+_0x5bb99a,'converterPriority':_0x47ca('0x49')}),this['editor'][_0x47ca('0x105')]['for']('dataDowncast')[_0x47ca('0xd7')]({'model':_0x47ca('0x81'),'view':_0x1dd83a=>({'name':_0x47ca('0xa8')+_0x1dd83a,'group':_0x47ca('0x81')}),'converterPriority':_0x47ca('0x49')}),this['editor'][_0x47ca('0x105')]['for'](_0x47ca('0xeb'))[_0x47ca('0x121')]({'model':'revision-suggestion','view':_0x2ea350=>{const _0x8c1e0e=_0x2ea350[_0x47ca('0xf0')][_0x47ca('0x38')](':')[0x1];return _0x47ca('0xce')!=_0x8c1e0e&&_0x47ca('0x76')!=_0x8c1e0e?null:{'classes':[_0x47ca('0x48'),_0x47ca('0x31')+_0x8c1e0e]};}}),this[_0x47ca('0xfb')][_0x47ca('0xe9')][_0x47ca('0x10')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x47ca('0xfb')],'merge'),{'priority':_0x47ca('0x8d')}),this[_0x47ca('0xfb')]['editing'][_0x47ca('0x10')]['on'](_0x47ca('0x4c'),et(this['editor'],_0x47ca('0x38')),{'priority':_0x47ca('0x8d')}),this[_0x47ca('0xfb')]['editing'][_0x47ca('0x10')]['on'](_0x47ca('0xef'),(_0x230213,_0xa7f03a,_0x31e2de)=>{const _0x417f81=_0x31e2de[_0x47ca('0x61')][_0x47ca('0xd6')](_0xa7f03a['markerName']);if(_0x417f81)for(const _0x4a270a of _0x417f81)_0x4a270a['is'](_0x47ca('0xd1'))&&(_0x31e2de['mapper']['unbindElementFromMarkerName'](_0x4a270a,_0xa7f03a['markerName']),_0x31e2de[_0x47ca('0x8c')]['remove'](_0x4a270a));},{'priority':_0x47ca('0x8d')});}[_0x47ca('0xed')](_0x279fd4){return this[_0x47ca('0x58')]['get'](_0x279fd4);}['_getViewForChange'](_0x4b13b6){return this[_0x47ca('0x57')]&&this[_0x47ca('0x57')][_0x47ca('0x2d')](),this[_0x47ca('0x57')]=new _0x4a531f(this[_0x47ca('0xfb')]['locale'],_0x4b13b6),this[_0x47ca('0x57')];}[_0x47ca('0x97')](){this[_0x47ca('0xfb')]['model'][_0x47ca('0x107')]['selection'][_0x47ca('0x10a')](_0x47ca('0x69')),this['on']('change:activeView',(_0x20c371,_0x6159a4,_0x335f49,_0x676087)=>{_0x676087&&this[_0x47ca('0x91')][_0x47ca('0x93')](_0x676087),_0x335f49&&(this[_0x47ca('0x91')]['add']({'view':_0x335f49,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xd232d0=this[_0x47ca('0xfb')][_0x47ca('0xe9')],_0x3ea151=this[_0x47ca('0xed')](_0x335f49[_0x47ca('0x6a')]);let _0x5bdbc0;if(_0x3ea151[_0x47ca('0x10d')][_0x47ca('0xb9')]){const _0x14966c=_0xd232d0[_0x47ca('0x99')][_0x47ca('0x11d')](_0x3ea151[_0x47ca('0x11f')]);_0x5bdbc0=Array[_0x47ca('0x33')](_0x14966c[_0x47ca('0xa3')]());}else{const _0x2b76c7=this[_0x47ca('0xfb')][_0x47ca('0x6e')][_0x47ca('0x32')][_0x47ca('0x5')]('revision:'+_0x335f49['changeId']);_0x5bdbc0=Array[_0x47ca('0x33')](_0xd232d0[_0x47ca('0x61')]['markerNameToElements'](_0x2b76c7['name']))[_0x47ca('0xe1')](_0x36ded5=>_0xd232d0[_0x47ca('0x99')][_0x47ca('0x101')]['mapViewToDom'](_0x36ded5))[_0x47ca('0xe1')](_0x4c2285=>Array[_0x47ca('0x33')](_0x4c2285['getClientRects']()))[_0x47ca('0x5b')]();}if(!this['_activeViewTarget'])return _0x5bdbc0[0x0];return _0x5bdbc0[_0x47ca('0x7d')](_0x296f60=>_0x296f60[_0x47ca('0x1b')]-0x3<=this[_0x47ca('0x1d')]['y']&&_0x296f60[_0x47ca('0xf3')]+0x3>=this[_0x47ca('0x1d')]['y']&&_0x296f60[_0x47ca('0x50')]-0x3<=this[_0x47ca('0x1d')]['x']&&_0x296f60['right']+0x3>=this[_0x47ca('0x1d')]['x'])||_0x5bdbc0[0x0];}}}),this['_balloon'][_0x47ca('0x9')](_0x47ca('0x3')));}),this['on'](_0x47ca('0x11c'),(_0x308523,_0x58a7b4,_0x4e191e,_0x5a403c)=>{this[_0x47ca('0x111')]=_0x4e191e?this[_0x47ca('0x103')](_0x4e191e):null,this[_0x47ca('0xfb')][_0x47ca('0x6e')][_0x47ca('0xba')](()=>{const _0x28b5be=this[_0x47ca('0xfb')]['editing'];_0x5a403c&&(_0x5a403c[_0x47ca('0x10d')][_0x47ca('0xb9')]?_0x28b5be[_0x47ca('0x99')]['change'](_0x4c66b1=>{_0x4c66b1[_0x47ca('0xc8')]('ck-revision-history-root--active',_0x28b5be[_0x47ca('0x99')][_0x47ca('0x107')][_0x47ca('0x26')](_0x5a403c[_0x47ca('0x11f')]));}):_0x28b5be[_0x47ca('0x1e')](_0x47ca('0xb4')+_0x5a403c['id'])),_0x4e191e&&(_0x4e191e[_0x47ca('0x10d')][_0x47ca('0xb9')]?_0x28b5be[_0x47ca('0x99')]['change'](_0x557f61=>{_0x557f61[_0x47ca('0x19')](_0x47ca('0x55'),_0x28b5be[_0x47ca('0x99')][_0x47ca('0x107')][_0x47ca('0x26')](_0x4e191e[_0x47ca('0x11f')]));}):_0x28b5be['reconvertMarker']('revision:'+_0x4e191e['id']));});}),this[_0x47ca('0xf5')](this[_0x47ca('0xfb')]['editing'][_0x47ca('0x99')]['document'],_0x47ca('0x4d'),(_0x2a5dc6,_0x7c4a68)=>{if(this[_0x47ca('0x116')])return;const _0x571eb9=this['_findChangeIdFromDomTarget'](_0x7c4a68['target']),_0x2755ca=this[_0x47ca('0x58')][_0x47ca('0x5')](_0x571eb9);_0x2755ca?(this['_activeViewTarget']={'x':_0x7c4a68[_0x47ca('0x1c')]['x'],'y':_0x7c4a68['domEvent']['y']},this[_0x47ca('0x111')]=this[_0x47ca('0x103')](_0x2755ca)):(this[_0x47ca('0x1d')]=null,this['activeView']=null);}),this[_0x47ca('0xf5')](this[_0x47ca('0xfb')]['editing'][_0x47ca('0x99')][_0x47ca('0x107')],_0x47ca('0x10f'),(_0x179ea2,_0x9e0d19)=>{const _0xdddfb8=this[_0x47ca('0xec')](_0x9e0d19[_0x47ca('0x95')]),_0x34359b=this[_0x47ca('0x58')][_0x47ca('0x5')](_0xdddfb8);_0x34359b?(this[_0x47ca('0x1d')]={'x':_0x9e0d19[_0x47ca('0x1c')]['x'],'y':_0x9e0d19['domEvent']['y']},_0x34359b===this[_0x47ca('0x116')]?this[_0x47ca('0x91')][_0x47ca('0xa')]():this[_0x47ca('0x116')]=_0x34359b):(this[_0x47ca('0x1d')]=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x454abd){do{const _0x1926e3=_0x454abd[_0x47ca('0x117')](_0x47ca('0x46'));if(_0x1926e3)return _0x1926e3;_0x454abd=_0x454abd[_0x47ca('0x127')];}while(_0x454abd);return null;}[_0x47ca('0x42')](){this[_0x47ca('0xfb')][_0x47ca('0x6e')]['change'](_0x5663e5=>{for(const _0x4d3e49 of this['editor']['model'][_0x47ca('0x32')])_0x5663e5[_0x47ca('0x67')](_0x4d3e49);});}}function et(_0x23eed3,_0x1b2105){return(_0x2a8159,_0x391a3a,_0x5cff2b)=>{if(!_0x5cff2b[_0x47ca('0x56')][_0x47ca('0xb8')](_0x391a3a['markerRange'],_0x2a8159[_0x47ca('0x65')]))return;const _0x214a52=_0x391a3a[_0x47ca('0x86')][_0x47ca('0xa5')](),_0x2da401=_0x391a3a[_0x47ca('0x86')][_0x47ca('0x2a')],_0x173468=_0x23eed3[_0x47ca('0x6e')]['schema'];let _0x35ea6f=null,_0x475fb3=null,_0x1e6104=!0x1,_0x29a03b=!0x1;for(const _0x241685 of _0x214a52){const _0xebd171=_0x241685[_0x47ca('0xf6')];_0x1e6104=_0x1e6104||_0x173468[_0x47ca('0x1f')](_0xebd171);const _0x502cbb=_0x5cff2b['mapper']['toViewElement'](_0xebd171);if(_0x502cbb&&_0x502cbb['getCustomProperty'](_0x47ca('0xf')))return;_0x47ca('0xb5')==_0x241685['type']&&(_0x173468[_0x47ca('0xd0')](_0xebd171)&&!_0x173468[_0x47ca('0xa4')](_0xebd171)&&(_0xebd171[_0x47ca('0xd3')]||_0x2da401['isAtEnd']?_0x35ea6f&&_0x35ea6f[_0x47ca('0x127')]==_0xebd171||(_0x35ea6f=_0xebd171,_0x222f5c(_0x241685[_0x47ca('0xe6')]),_0x29a03b=!0x0):_0x475fb3=_0x475fb3||_0x241685[_0x47ca('0xe6')]));}function _0x222f5c(_0x25e47b){const _0x245b2e=_0x5cff2b['mapper'][_0x47ca('0x6')](_0x25e47b),_0x915ad3=_0x5cff2b[_0x47ca('0x8c')][_0x47ca('0x21')](_0x47ca('0x73'),{'class':_0x47ca('0x31')+_0x1b2105});_0x5cff2b['writer']['insert'](_0x245b2e,_0x915ad3),_0x5cff2b[_0x47ca('0x61')]['bindElementToMarker'](_0x915ad3,_0x391a3a[_0x47ca('0xf0')]);}_0x1e6104||_0x29a03b||!_0x475fb3||_0x222f5c(_0x475fb3);};}export class RestoreRevisionCommand extends _0xc82726{constructor(_0x386d75){super(_0x386d75);const _0x2a9b48=_0x386d75[_0x47ca('0x8e')]['get'](d);this[_0x47ca('0x9a')]=!0x1,this[_0x47ca('0xf5')](_0x2a9b48,_0x47ca('0x9d'),()=>this[_0x47ca('0xa6')]()),this[_0x47ca('0xf5')](_0x2a9b48,'change:isEnabled',()=>this[_0x47ca('0xa6')]());}['execute'](){const _0x54cc29=this[_0x47ca('0xfb')],_0xa316d4=_0x54cc29[_0x47ca('0x8e')][_0x47ca('0x5')](d),_0x6f112f=_0xa316d4[_0x47ca('0xc6')]?_0xa316d4['diff'][_0x47ca('0x51')]:null;_0x54cc29[_0x47ca('0x35')][_0x47ca('0x5')](_0x47ca('0x106'))[_0x47ca('0xae')](_0x6f112f);}[_0x47ca('0xa6')](){const {isReady:_0xd67725,isEnabled:_0x7334f1}=this[_0x47ca('0xfb')][_0x47ca('0x8e')][_0x47ca('0x5')](d);this[_0x47ca('0x52')]=_0xd67725&&_0x7334f1;}}export class ShowChangeCommand extends _0xc82726{constructor(_0x44cd15,{direction:_0x25348f}){super(_0x44cd15);const _0x4c6a87=_0x44cd15[_0x47ca('0x8e')][_0x47ca('0x5')](d);this[_0x47ca('0x9a')]=!0x1,this[_0x47ca('0x126')]='forward'===_0x25348f?0x1:-0x1,this['listenTo'](_0x4c6a87,'change:isReady',()=>this[_0x47ca('0xa6')]()),this['listenTo'](_0x4c6a87,_0x47ca('0x4e'),()=>this[_0x47ca('0xa6')]()),this[_0x47ca('0xf5')](_0x4c6a87,_0x47ca('0x11c'),()=>this[_0x47ca('0xa6')]());}[_0x47ca('0xf8')](){const _0x3ea744=this['editor'],_0x3a2857=_0x3ea744['plugins']['get'](d),{isNavigationMode:_0x1a67b3,currentChangeNumber:_0x171dfe}=_0x3a2857;let _0x825699;if(_0x3a2857[_0x47ca('0x116')]=_0x1a67b3?_0x3a2857['diff'][_0x47ca('0x3d')][_0x47ca('0x5')](_0x171dfe+this[_0x47ca('0x126')]):_0x3a2857[_0x47ca('0xcb')][_0x47ca('0x3d')][_0x47ca('0x7')],_0x3a2857[_0x47ca('0x116')][_0x47ca('0x10d')][_0x47ca('0xb9')])_0x825699=_0x3ea744[_0x47ca('0xe9')][_0x47ca('0x99')]['getDomRoot'](_0x3a2857[_0x47ca('0x116')][_0x47ca('0x11f')]);else{const _0x409a15=_0x3ea744['model'][_0x47ca('0x32')][_0x47ca('0x5')](_0x47ca('0xb4')+_0x3a2857[_0x47ca('0x116')]['id']);_0x825699=_0x4f1b98(_0x3ea744[_0x47ca('0xe9')],_0x409a15);}_0x3fdf1f({'target':_0x825699,'viewportOffset':0x28});}[_0x47ca('0xa6')](){const {isNavigationMode:_0x5d5199,currentChangeNumber:_0x4a8072,numberOfChanges:_0x392167,isReady:_0x5d958a,isEnabled:_0x2c987b}=this[_0x47ca('0xfb')][_0x47ca('0x8e')]['get'](d);this[_0x47ca('0x52')]=!!(_0x2c987b&&_0x5d958a&&_0x392167)&&(!_0x5d5199||(0x1===this[_0x47ca('0x126')]?_0x4a8072<_0x392167-0x1:_0x4a8072>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4df8=['execute','change:isActionsDropdownOpen','_action','Name\x20this\x20revision','ck-on','locale','name','set','panelPosition','map','buttonView','children','isEnabled','listView','isActionsDropdownOpen','stopPropagation','isVisible','threeVerticalDots','source','action','items','find','Restore\x20this\x20revision','add','function','ck-revision-history-sidebar__revision__actions','extendTemplate','model','bindTemplate','Compare\x20against\x20selected','first','Show\x20more\x20items'];(function(_0x37396a,_0x4df86a){const _0x239f77=function(_0x57eabc){while(--_0x57eabc){_0x37396a['push'](_0x37396a['shift']());}};_0x239f77(++_0x4df86a);}(_0x4df8,0x14c));const _0x239f=function(_0x37396a,_0x4df86a){_0x37396a=_0x37396a-0x0;let _0x239f77=_0x4df8[_0x37396a];return _0x239f77;};import{Collection as _0x2986e0}from'ckeditor5/src/utils';import{icons as _0x1c0ad5}from'ckeditor5/src/core';import{Model as _0x233442,addListToDropdown as _0x3b68f5,createDropdown as _0x502e4b}from'ckeditor5/src/ui';import{getTranslation as _0x2f2e34}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x5eece3,_0x4d4ca9){const _0x90314c=_0x5eece3[_0x239f('0x10')],_0x3204ce=_0x5eece3[_0x239f('0x19')],_0x55fabe=_0x502e4b(_0x3204ce);_0x55fabe[_0x239f('0x1c')]='sw';const _0x197672=function(_0x41277a,_0x4e172a){const _0x13d3ef=function(_0x113914,_0xcaba0f){const _0x5ec64b=_0x113914[_0x239f('0x19')],_0x18e7d5={'Compare\x20against\x20selected':_0x2f2e34(_0x5ec64b,_0x239f('0x11')),'Name\x20this\x20revision':_0x2f2e34(_0x5ec64b,_0x239f('0x17')),'Restore\x20this\x20revision':_0x2f2e34(_0x5ec64b,_0x239f('0xa'))};return _0xcaba0f[_0x239f('0x1d')](_0x2e257c=>{const _0x5e1c54=_0x18e7d5[_0x2e257c['name']];return _0x5e1c54&&_0x5e1c54!==_0x2e257c[_0x239f('0x1a')]&&(_0x2e257c[_0x239f('0x1a')]=_0x5e1c54),_0x2e257c;});}(_0x41277a,_0x4e172a),_0x40f3bd=new _0x2986e0();for(const _0x6fc635 of _0x13d3ef){const _0xb82f2b={'type':'button','model':new _0x233442({'label':_0x6fc635[_0x239f('0x1a')],'class':_0x6fc635['class'],'withText':!0x0,'_action':_0x6fc635[_0x239f('0x7')]})};_0xb82f2b[_0x239f('0xf')]['bind'](_0x239f('0x0'))['to'](_0x41277a,_0x239f('0x2'),_0x3f6ed6=>_0x239f('0xc')!=typeof _0x6fc635['isEnabled']||(!_0x3f6ed6||_0x6fc635['isEnabled'](_0x41277a))),_0x40f3bd[_0x239f('0xb')](_0xb82f2b);}return _0x40f3bd;}(_0x5eece3,_0x4d4ca9);return _0x5eece3['bind'](_0x239f('0x2'))['to'](_0x55fabe,'isOpen'),_0x55fabe[_0x239f('0x1e')][_0x239f('0x1b')]({'label':_0x2f2e34(_0x3204ce,_0x239f('0x13')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1c0ad5[_0x239f('0x5')]}),_0x55fabe[_0x239f('0xe')]({'attributes':{'class':[_0x239f('0xd'),_0x90314c['if']('isActionsDropdownOpen',_0x239f('0x18'))]},'on':{'click':_0x90314c['to'](_0x2db2b1=>_0x2db2b1[_0x239f('0x3')]())}}),_0x55fabe['on'](_0x239f('0x14'),_0x34b7a0=>{_0x5eece3['isReady']&&_0x239f('0xc')==typeof _0x34b7a0[_0x239f('0x6')][_0x239f('0x16')]&&_0x34b7a0[_0x239f('0x6')][_0x239f('0x16')](_0x5eece3);}),_0x3b68f5(_0x55fabe,_0x197672),_0x55fabe['listenTo'](_0x5eece3,_0x239f('0x15'),(_0x2b5e23,_0x53ef31,_0x2c927e)=>{if(_0x2c927e)for(const _0x30730d of _0x55fabe[_0x239f('0x1')][_0x239f('0x8')]){const _0x172972=_0x30730d[_0x239f('0x1f')][_0x239f('0x12')],_0x58aa41=_0x4d4ca9[_0x239f('0x9')](_0xef5d8a=>_0xef5d8a['action']===_0x172972['_action'])[_0x239f('0x4')];_0x30730d[_0x239f('0x4')]=void 0x0===_0x58aa41||_0x58aa41(_0x5eece3);}}),_0x55fabe;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52e8=['setTemplate','span','set','Revision\x20author','ck-revision-history-sidebar__revision-author__name','name','ck-revision-history-sidebar__revision-author','Revision\x20creator'];(function(_0x13f779,_0x52e8fe){const _0x5bf6cd=function(_0x537e5e){while(--_0x537e5e){_0x13f779['push'](_0x13f779['shift']());}};_0x5bf6cd(++_0x52e8fe);}(_0x52e8,0xb7));const _0x5bf6=function(_0x13f779,_0x52e8fe){_0x13f779=_0x13f779-0x0;let _0x5bf6cd=_0x52e8[_0x13f779];return _0x5bf6cd;};import{View as _0x35ca4c,IconView as _0x18c115}from'ckeditor5/src/ui';import{getTranslation as _0x5b40ae}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x3a7a99 from'../../../theme/icons/user.svg';export default class ti extends _0x35ca4c{constructor(_0x36c045,_0x74d9ba,_0x36417e){super(_0x36c045);const _0x15a74b=new _0x18c115();_0x15a74b[_0x5bf6('0x3')]({'content':_0x3a7a99,'viewBox':'0\x200\x2011\x2010'});const _0x5c95a4=['ck',_0x5bf6('0x7')];_0x36417e&&_0x5c95a4['push']('ck-revision-history-sidebar__revision-author_creator');const _0x48e45f=[{'tag':_0x5bf6('0x2'),'attributes':{'class':['ck',_0x5bf6('0x5')],'title':_0x5b40ae(_0x36c045,_0x36417e?_0x5bf6('0x0'):_0x5bf6('0x4'))},'children':[_0x15a74b,_0x74d9ba[_0x5bf6('0x6')]]}];this[_0x5bf6('0x1')]({'tag':'li','attributes':{'class':_0x5c95a4},'children':_0x48e45f});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4dd1=['Revision\x20name','ck-revision-history-sidebar__revision-name','span'];(function(_0x5a1244,_0x4dd1c7){var _0x2a7f45=function(_0x466c85){while(--_0x466c85){_0x5a1244['push'](_0x5a1244['shift']());}};_0x2a7f45(++_0x4dd1c7);}(_0x4dd1,0x1de));var _0x2a7f=function(_0x5a1244,_0x4dd1c7){_0x5a1244=_0x5a1244-0x0;var _0x2a7f45=_0x4dd1[_0x5a1244];return _0x2a7f45;};import{LabeledFieldView as _0x2ebf68}from'ckeditor5/src/ui';import{getTranslation as _0x8dceb5}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x2ebf68{constructor(_0x5c86a6,_0x4d196d){super(_0x5c86a6,_0x4d196d),this['set']({'label':_0x8dceb5(_0x5c86a6,_0x2a7f('0x2'))}),this['extendTemplate']({'tag':_0x2a7f('0x1'),'attributes':{'class':[_0x2a7f('0x0')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x397d=['set','_revision','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__actions_dropdown_open','revisionNameView','creator','value','srcElement','length','isEnabled','filter','ck-reset','fire','220','select','from','deselect','ck-revision-history-sidebar__revision__date','authors','isSelected','render','.ck-thread__remove-confirm','bindTemplate','ck-revision-history-sidebar__revision_highlighted','uiLanguage','ck-revision-history-sidebar__revision__controls-wrapper','isHighlighted','isActionsDropdownOpen','element','bind','fieldView','extendTemplate','isReady','closest','unshift','_createdAtFormatted','highlight','name','revisionActionsView','listenTo','createdAt'];(function(_0x27a9c9,_0x397dec){const _0xa4ef3d=function(_0x38b6af){while(--_0x38b6af){_0x27a9c9['push'](_0x27a9c9['shift']());}};_0xa4ef3d(++_0x397dec);}(_0x397d,0x10a));const _0xa4ef=function(_0x27a9c9,_0x397dec){_0x27a9c9=_0x27a9c9-0x0;let _0xa4ef3d=_0x397d[_0x27a9c9];return _0xa4ef3d;};import{View as _0x3e7930,createLabeledInputText as _0x51a769}from'ckeditor5/src/ui';import{ConfirmMixin as _0x343d2a}from'ckeditor5-collaboration/src/collaboration-core';import _0xe2b42b from'./revisionnameview';import _0x2274e5 from'./revisionauthorview';import{dateToPrettyFormat as _0x2db3ed}from'./utils';import{createActionsDropdownView as _0x45e05f}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x343d2a(_0x3e7930){constructor(_0x52eb17,_0x1302b4,_0x26e817){super(_0x52eb17);const _0x282c1e=this[_0xa4ef('0x2')],_0x5809dd=function(_0x42dc8a,_0x39be77){const _0x5dc416=Array[_0xa4ef('0x24')](_0x39be77[_0xa4ef('0x27')])[_0xa4ef('0x1f')](_0x2434ef=>_0x2434ef!=_0x39be77[_0xa4ef('0x1a')]);return _0x39be77[_0xa4ef('0x1a')]&&_0x5dc416[_0xa4ef('0xe')](_0x39be77[_0xa4ef('0x1a')]),_0x5dc416['map'](_0x3454a2=>new _0x2274e5(_0x42dc8a,_0x3454a2,_0x3454a2==_0x39be77['creator']));}(_0x52eb17,_0x1302b4);this['id']=_0x1302b4['id'],this[_0xa4ef('0x16')]=_0x1302b4,this['bind'](_0xa4ef('0x11'),'createdAt')['to'](_0x1302b4),this[_0xa4ef('0x9')](_0xa4ef('0xf'))['to'](this,_0xa4ef('0x14'),_0x164999=>_0x164999?_0x2db3ed(_0x52eb17[_0xa4ef('0x4')],_0x164999):void 0x0),this[_0xa4ef('0x15')](_0xa4ef('0x28'),!0x1),this[_0xa4ef('0x15')](_0xa4ef('0x6'),!0x1),this[_0xa4ef('0x15')](_0xa4ef('0x7'),!0x1),this[_0xa4ef('0x15')](_0xa4ef('0xc'),!0x1),this[_0xa4ef('0x15')](_0xa4ef('0x1e'),!0x1),this[_0xa4ef('0x19')]=new _0xe2b42b(_0x52eb17,_0x51a769),this[_0xa4ef('0x19')][_0xa4ef('0xa')][_0xa4ef('0xb')]({'attributes':{'maxlength':_0xa4ef('0x22')}}),this[_0xa4ef('0x19')][_0xa4ef('0xa')]['bind'](_0xa4ef('0x1b'),'placeholder')['to'](this,'name',_0xa4ef('0xf')),this[_0xa4ef('0x19')][_0xa4ef('0x9')](_0xa4ef('0x1e'))['to'](this,_0xa4ef('0x28'),this,_0xa4ef('0x1e'),(_0x1f5ed7,_0x5ebdd2)=>_0x1f5ed7&&_0x5ebdd2),this[_0xa4ef('0x12')]=_0x26e817&&_0x26e817[_0xa4ef('0x1d')]?_0x45e05f(this,_0x26e817):'',this[_0xa4ef('0x12')]&&this[_0xa4ef('0x12')][_0xa4ef('0x9')](_0xa4ef('0x1e'))['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0xa4ef('0x20'),'ck-revision-history-sidebar__revision-wrapper',_0x282c1e['if']('isConfirm',_0xa4ef('0x17'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0xa4ef('0x20'),'ck-revision-history-sidebar__revision',_0x282c1e['if'](_0xa4ef('0x1e'),'ck-disabled',_0x514472=>!_0x514472),_0x282c1e['if'](_0xa4ef('0x28'),'ck-revision-history-sidebar__revision_selected'),_0x282c1e['if'](_0xa4ef('0x6'),_0xa4ef('0x3')),_0x282c1e['if']('isActionsDropdownOpen',_0xa4ef('0x18'))]},'children':[this[_0xa4ef('0x19')],{'tag':'span','attributes':{'class':['ck',_0xa4ef('0x26')]},'children':[{'text':_0x282c1e['to'](_0xa4ef('0xf'))}]},{'tag':'div','attributes':{'class':['ck',_0xa4ef('0x5')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x5809dd}]},this[_0xa4ef('0x12')]],'on':{'click':_0x282c1e['to'](_0x2c73ed=>{_0x2c73ed[_0xa4ef('0x1c')][_0xa4ef('0xd')](_0xa4ef('0x1'))||this[_0xa4ef('0xc')]&&this['isEnabled']&&this[_0xa4ef('0x21')](_0xa4ef('0x23'),{'id':this['id']});})}}]});}['render'](){super[_0xa4ef('0x0')]();const _0xbf904b=this[_0xa4ef('0x19')][_0xa4ef('0xa')][_0xa4ef('0x8')];this[_0xa4ef('0x13')](_0xbf904b,'change',()=>{this['fire']('setName',{'id':this['id'],'name':_0xbf904b[_0xa4ef('0x1b')]});});}['select'](){this[_0xa4ef('0x28')]=!0x0;}[_0xa4ef('0x25')](){this[_0xa4ef('0x28')]=!0x1;}[_0xa4ef('0x10')](){this[_0xa4ef('0x6')]=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xda7c=['click','bindTemplate','isVisible','_isCollapsed','setTemplate','toggle','ck-revision-history-sidebar__subrevision-collapser','button','ck-revision-history-sidebar__subrevision-collapser__inner','ck-hidden','span'];(function(_0x552591,_0xda7c34){const _0x41a5f9=function(_0x537506){while(--_0x537506){_0x552591['push'](_0x552591['shift']());}};_0x41a5f9(++_0xda7c34);}(_0xda7c,0x7a));const _0x41a5=function(_0x552591,_0xda7c34){_0x552591=_0x552591-0x0;let _0x41a5f9=_0xda7c[_0x552591];return _0x41a5f9;};import{View as _0x360d7d}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x360d7d{constructor(_0x3c1b2a){super(_0x3c1b2a);const _0x418e40=this[_0x41a5('0x0')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x41a5('0x3')]({'tag':'span','attributes':{'class':['ck',_0x41a5('0x5'),_0x418e40['if'](_0x41a5('0x1'),_0x41a5('0x8'),_0x509066=>!_0x509066),_0x418e40['if'](_0x41a5('0x2'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x41a5('0x6'),'aria-pressed':_0x418e40['to']('_isCollapsed',_0x8ed31=>_0x8ed31?'false':'true')},'children':[{'tag':_0x41a5('0x9'),'attributes':{'class':['ck',_0x41a5('0x7')]}}],'on':{'click':_0x418e40['to'](_0x41a5('0xa'))}});}[_0x41a5('0x4')](){this[_0x41a5('0x2')]=!this[_0x41a5('0x2')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e76=['creator','isSelected','ck-revision-history-sidebar__revision-authors','uiLanguage','div','select','ck-revision-history-sidebar__subrevision','set','deselect','bind','span','fire','ck-revision-history-sidebar__revision_selected','_parentRevisionId','setTemplate','ck-reset','ck-revision-history-sidebar__revision__date','createdAt'];(function(_0x4bd1c5,_0x5e768d){const _0x297c62=function(_0x52feef){while(--_0x52feef){_0x4bd1c5['push'](_0x4bd1c5['shift']());}};_0x297c62(++_0x5e768d);}(_0x5e76,0x1a2));const _0x297c=function(_0x4bd1c5,_0x5e768d){_0x4bd1c5=_0x4bd1c5-0x0;let _0x297c62=_0x5e76[_0x4bd1c5];return _0x297c62;};import{View as _0x3bcb87}from'ckeditor5/src/ui';import _0xe34d69 from'./revisionauthorview';import{dateToPrettyFormat as _0x441754}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x3bcb87{constructor(_0x578dbf,_0x52eb8e,_0x5518a9){super(_0x578dbf);const _0x151f47=this['bindTemplate'];this['id']=_0x52eb8e['id'],this[_0x297c('0x5')](_0x297c('0xd'))['to'](_0x52eb8e),this[_0x297c('0x3')](_0x297c('0xf'),!0x1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x40df94=>_0x40df94?_0x441754(_0x578dbf[_0x297c('0x11')],_0x40df94):void 0x0),this['_parentRevisionId']=_0x5518a9,this[_0x297c('0xa')]({'tag':_0x297c('0x0'),'attributes':{'class':['ck',_0x297c('0xb'),'ck-revision-history-sidebar__revision',_0x297c('0x2'),_0x151f47['if'](_0x297c('0xf'),_0x297c('0x8'))]},'children':[{'tag':_0x297c('0x6'),'attributes':{'class':['ck',_0x297c('0xc')]},'children':[{'text':_0x151f47['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x297c('0x10')]},'children':[new _0xe34d69(_0x578dbf,_0x52eb8e[_0x297c('0xe')],!0x0)]}],'on':{'click':_0x151f47['to'](this['select']['bind'](this))}});}[_0x297c('0x1')](){this['isSelected']=!0x0,this[_0x297c('0x7')](_0x297c('0x1'),{'parentId':this[_0x297c('0x9')]});}[_0x297c('0x4')](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x47b7=['long','toLocaleTimeString','toLocaleDateString','numeric'];(function(_0x175a72,_0x47b75d){var _0x3fc1d1=function(_0x40b178){while(--_0x40b178){_0x175a72['push'](_0x175a72['shift']());}};_0x3fc1d1(++_0x47b75d);}(_0x47b7,0xc6));var _0x3fc1=function(_0x175a72,_0x47b75d){_0x175a72=_0x175a72-0x0;var _0x3fc1d1=_0x47b7[_0x175a72];return _0x3fc1d1;};export function dateToPrettyFormat(_0x36d07e,_0x309845){return _0x309845[_0x3fc1('0x0')](_0x36d07e,{'month':_0x3fc1('0x2'),'day':_0x3fc1('0x1')})+',\x20'+_0x309845[_0x3fc1('0x3')](_0x36d07e,{'hour':_0x3fc1('0x1'),'minute':_0x3fc1('0x1')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x32dd=['type','_focusables','set','revisionNameInputValue','value','reset','arrowup','220','form','stopPropagation','ck-button-cancel','tab','Cancel','fieldView','_createRevisionNameInput','label','focusFirst','submit','cancel','focusTracker','delegate','add','forEach','_focusCycler','cancelButtonView','setTemplate','arrowdown','extendTemplate','revisionName','_createButton','keystrokes','saveButtonView','ck-responsive-form','locale','revisionNameInputView','input','render','element','trim'];(function(_0x2ecfc7,_0x32ddb7){const _0xa5f50b=function(_0x412249){while(--_0x412249){_0x2ecfc7['push'](_0x2ecfc7['shift']());}};_0xa5f50b(++_0x32ddb7);}(_0x32dd,0x70));const _0xa5f5=function(_0x2ecfc7,_0x32ddb7){_0x2ecfc7=_0x2ecfc7-0x0;let _0xa5f50b=_0x32dd[_0x2ecfc7];return _0xa5f50b;};import{icons as _0x33e769}from'ckeditor5/src/core';import{ButtonView as _0x49733d,FocusCycler as _0xfe0dd,LabeledFieldView as _0x428869,View as _0x489b94,ViewCollection as _0x5d8d16,createLabeledInputText as _0x3cda18,injectCssTransitionDisabler as _0x4641c5,submitHandler as _0xeb0ff4}from'ckeditor5/src/ui';import{FocusTracker as _0x51e2f7,KeystrokeHandler as _0x2c1021}from'ckeditor5/src/utils';import{getTranslation as _0x18b63a}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x489b94{constructor(_0x1b3861){super(_0x1b3861),this['focusTracker']=new _0x51e2f7(),this['keystrokes']=new _0x2c1021(),this[_0xa5f5('0x7')](_0xa5f5('0x8'),''),this[_0xa5f5('0x0')]=this[_0xa5f5('0x13')](),this[_0xa5f5('0x24')]=this[_0xa5f5('0x22')](_0x18b63a(_0x1b3861,'Save'),_0x33e769['check'],'ck-button-save'),this['saveButtonView'][_0xa5f5('0x5')]=_0xa5f5('0x16'),this[_0xa5f5('0x1d')]=this[_0xa5f5('0x22')](_0x18b63a(_0x1b3861,_0xa5f5('0x11')),_0x33e769[_0xa5f5('0x17')],_0xa5f5('0xf'),_0xa5f5('0x17')),this[_0xa5f5('0x6')]=new _0x5d8d16(),this[_0xa5f5('0x1c')]=new _0xfe0dd({'focusables':this[_0xa5f5('0x6')],'focusTracker':this[_0xa5f5('0x18')],'keystrokeHandler':this[_0xa5f5('0x23')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0xa5f5('0x10')}}),this[_0xa5f5('0x1e')]({'tag':_0xa5f5('0xd'),'attributes':{'class':['ck','ck-revision-history-save-revision-form',_0xa5f5('0x25')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0xa5f5('0x24')],this['cancelButtonView']]}),_0x4641c5(this);}[_0xa5f5('0x2')](){super[_0xa5f5('0x2')](),_0xeb0ff4({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this[_0xa5f5('0x1d')]][_0xa5f5('0x1b')](_0x265011=>{this[_0xa5f5('0x6')][_0xa5f5('0x1a')](_0x265011),this[_0xa5f5('0x18')][_0xa5f5('0x1a')](_0x265011[_0xa5f5('0x3')]);}),this['keystrokes']['listenTo'](this[_0xa5f5('0x3')]));const _0x35115c=_0x19bcc5=>_0x19bcc5[_0xa5f5('0xe')]();this['keystrokes']['set']('arrowright',_0x35115c),this['keystrokes']['set']('arrowleft',_0x35115c),this['keystrokes'][_0xa5f5('0x7')](_0xa5f5('0xb'),_0x35115c),this['keystrokes'][_0xa5f5('0x7')](_0xa5f5('0x1f'),_0x35115c);}['focus'](){this['_focusCycler'][_0xa5f5('0x15')]();}get['revisionName'](){return this[_0xa5f5('0x0')][_0xa5f5('0x12')]['element']['value'][_0xa5f5('0x4')]();}set[_0xa5f5('0x21')](_0x525414){this[_0xa5f5('0x0')][_0xa5f5('0x12')]['element'][_0xa5f5('0x9')]=_0x525414[_0xa5f5('0x4')]();}[_0xa5f5('0xa')](){this[_0xa5f5('0x0')][_0xa5f5('0x12')][_0xa5f5('0x3')]['value']='';}[_0xa5f5('0x13')](){const _0x3e2ed9=new _0x428869(this[_0xa5f5('0x26')],_0x3cda18),_0x3ce66c=_0x3e2ed9['fieldView'];return _0x3ce66c['extendTemplate']({'attributes':{'maxlength':_0xa5f5('0xc')}}),_0x3e2ed9[_0xa5f5('0x14')]=_0x18b63a(this[_0xa5f5('0x26')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x3ce66c['on'](_0xa5f5('0x1'),()=>{this[_0xa5f5('0x8')]=_0x3ce66c['element']['value']['trim']();}),_0x3e2ed9;}[_0xa5f5('0x22')](_0x2ba319,_0x535a3a,_0x42974c,_0x2d218a){const _0x3ab189=new _0x49733d(this[_0xa5f5('0x26')]);return _0x3ab189[_0xa5f5('0x7')]({'label':_0x2ba319,'icon':_0x535a3a,'tooltip':!0x0}),_0x3ab189[_0xa5f5('0x20')]({'attributes':{'class':_0x42974c}}),_0x2d218a&&_0x3ab189[_0xa5f5('0x19')]('execute')['to'](this,_0x2d218a),_0x3ab189;}}
|