@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240128.0 → 0.0.0-nightly-20240130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +5 -5
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5f07=['_removeMissingPairs','editingDowncast','shift','first','startsWith','parent','enqueueChange','attributes','_changeView','authors','has','_getViewObj','top','_cleanUp','_balloon','sort','createUIElement','isEqual','_setConversion','editing','repository','domEvent','enableReadOnlyMode','listenTo','marked','ck-suggestion-marker--active','revision-suggestion:','consumable','isOnRoot','index','addRevisionData','get','_changeIdToChange','vid','newRevisionId','next','abs','children','ck-revision-history-root-add','revisionHistoryAttachChange','_makeModelFromViewString','showNextChange','isReady','_markMarkers','isBlock','getRevisionData','toViewElement','start','find','_appendChild','name','mousedown','_removeRevisionMarkers','_removeUnsupportedChanges','addHighlight','isRemoved','isEnabled','_update','collaboration.channelId','createRange','document','getAttribute','keys','error','isCollapsed','distance','getRoot','addMarker:revision','startIndex','highest','adapter','object','mapper','all','change:isEnabled','getCustomProperty','isAddSuggestion','unbindElementFromMarkerName','setAttribute','add','_getChangeFromId','_getViewForChange','forEach','revision-comment:','_markInsertions','addMarker:revision-suggestion:insertion','ck-editor__editable__overlay','revisionHistoryLabel','_makeTape','affectsData','return','left','merge','nextPosition','elementToAttribute','conversion','getRootNames','destroy','isAtEnd','loadRevisionData','markers','toViewPosition','slice','ck-revision-history-root--active','right','schema','insertions','isNavigationMode','markersEnd','nodeAfter','_threeWayMerge','removeMarker:revision-suggestion','wrap','addMarker:revision-suggestion:deletion','bind','markerToData','activeChange','removeMarker','deletions','createAttributeElement','length','_initInteractions','RevisionsRepository','change','userId','getClientRects','isAttached','map','getRevisionRootsAttributes','forward','includes','offsetSize','ck-suggestion-marker-split','upcast','indexOf','filter','_getDiff','_makeModelFromTape','compare','restoreRevision','low','writer','isBefore','_activeViewTarget','useFillerType','isAdded','from','ck-suggestion-marker-merge','revision-suggestion','_findChangeIdFromDomTarget','isAfter','data','item','_markSuggestions','revision-end','hasClass','unshift','changes','changeId','domConverter','previousPosition','uiElement','type','removeClass','WidgetToolbarRepository','element:pre','change:activeChange','push','createPositionFromPath','suggestion:','softBreak','view','downcastDispatcher','pluginName','maxOffset','stop','backward','refresh','getIndex','revision-viewer','nextSibling','_setDistance','diffData','target','deletion','isSuggestion','isContent','text','config','model','rootName','getAttributes','addClass','_markMismatchedRemovedTags','values','done','processor','elementEnd','attributesBefore','dataDowncast','consume','string','for','_data','test','toData','currentChangeNumber','showPreviousChange','-new','markerRange','revision','insertion','markerNameToElements','_cleanMarkers','_processTape','high','resolve','pairId','ck-suggestion-marker','clear','revisionHistory','markerName','element','span','isObject','addRevision','suggestion','addRoot','delete','isInline','level','revision-start','set','ck-revision-history-root-','concat','isLimit','reconvertMarker','modelRange','viewItem','isIncorrect','getChild','ck-suggestion-preview-marker-','toViewRange','default','execute','markersStart','bindElementToMarker','commands','end','parse','mouseover','endIndex','vid_start','insert','showStack','checkAttribute','_sortAndFilterDiffChanges','POSITIVE_INFINITY','getDomRoot','code','diff','_joinTapes','dataToMarker','split','revision:','attachChange','hasAttribute','catch','splice','_step','side','then','change:numberOfChanges','ck-suggestion-marker-','_fixObsoleteTags','vid_end','activeView','plugins','oldRevisionId','getWalker','getRevision','selection','remove','_getRevisionsRange','detachRoot','change:isReady','editor','isRemoveSuggestion','elementStart'];(function(_0x6699ca,_0x5f07f6){const _0x353037=function(_0x3e51a6){while(--_0x3e51a6){_0x6699ca['push'](_0x6699ca['shift']());}};_0x353037(++_0x5f07f6);}(_0x5f07,0x7e));const _0x3530=function(_0x6699ca,_0x5f07f6){_0x6699ca=_0x6699ca-0x0;let _0x353037=_0x5f07[_0x6699ca];return _0x353037;};import{Plugin as _0x5b0ff6,Command as _0x346961}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x11d83f}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x3957c4}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x4979a3,Element as _0x3a563a,Text as _0x2a94dd,ViewDocumentFragment as _0x51d369,ViewText as _0x1b9783,ViewElement as _0x5e509c,ViewContainerElement as _0x49720b,ViewAttributeElement as _0x548b55,ViewEmptyElement as _0x47abc2,ViewRawElement as _0x28e7ac,ViewUIElement as _0x1fab77}from'ckeditor5/src/engine.js';import{Users as _0x115596,getMarkerDomElement as _0x4630dd}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x4de4eb from'./ui/revisionviewer/changedetailsview.js';import _0x32c6e4 from'./revisionsrepository.js';import _0x793295 from'./changeitem.js';import{default as _0x5ed6b5}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x370b3f}from'lodash-es';const tt={'c':_0x49720b,'a':_0x548b55,'e':_0x47abc2,'r':_0x28e7ac,'u':_0x1fab77};export default class d extends _0x5b0ff6{static get[_0x3530('0x2f')](){return'RevisionViewer';}static get['requires'](){return[_0x115596,_0x3957c4,_0x32c6e4];}constructor(_0x572bb1){super(_0x572bb1),this[_0x3530('0xb7')]=this[_0x3530('0xa0')][_0x3530('0x97')][_0x3530('0xc2')](_0x3530('0x11d')),this[_0x3530('0x6a')](_0x3530('0x117'),null),this[_0x3530('0x6a')](_0x3530('0x96'),null),this['_activeViewTarget']=null,this[_0x3530('0x6a')](_0x3530('0x86'),null),this[_0x3530('0x6a')](_0x3530('0xcd'),!0x1),this['set'](_0x3530('0xdb'),!0x0),this['on'](_0x3530('0xed'),(_0x2f2e5a,_0x4f115a,_0x162a99)=>{this[_0x3530('0x117')]=null,this[_0x3530('0x96')]=null,this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')]['change'](_0x4f7ba3=>{for(const _0x4fc3d0 of this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')]['document']['roots'])_0x162a99?_0x4f7ba3[_0x3530('0x25')](_0x3530('0xf9'),_0x4fc3d0):_0x4f7ba3[_0x3530('0x42')](_0x3530('0xf9'),_0x4fc3d0);});}),this[_0x3530('0x115')](_0x3530('0x10e'))['to'](this,_0x3530('0x117'),_0x2e731a=>null!==_0x2e731a),this['bind'](_0x3530('0x50'))['to'](this,'isReady',this,'diff',this,_0x3530('0x117'),(_0x53c8ff,_0x51932c,_0x42bec7)=>_0x53c8ff&&_0x42bec7?_0x51932c[_0x3530('0x1f')][_0x3530('0x34')](_0x42bec7):0x0),this['bind']('numberOfChanges')['to'](this,_0x3530('0xcd'),this,_0x3530('0x86'),(_0x29aebe,_0x3a51d0)=>_0x29aebe?_0x3a51d0[_0x3530('0x1f')][_0x3530('0x11b')]:0x0),this['_changeView']=null,this[_0x3530('0xc3')]=new Map(),this['adapter']=null,this[_0x3530('0xb1')]=this[_0x3530('0xa0')][_0x3530('0x97')][_0x3530('0xc2')](_0x3957c4);}['init'](){const _0x4def3b=this[_0x3530('0xa0')],_0x318c15=new ShowChangeCommand(_0x4def3b,{'direction':_0x3530('0x32')}),_0x3318eb=new ShowChangeCommand(_0x4def3b,{'direction':'forward'});(_0x4def3b[_0x3530('0x79')][_0x3530('0xf2')](_0x3530('0x51'),_0x318c15),_0x4def3b['commands'][_0x3530('0xf2')](_0x3530('0xcc'),_0x3318eb),_0x4def3b[_0x3530('0x79')]['add'](_0x3530('0xd'),new RestoreRevisionCommand(_0x4def3b)),this['on'](_0x3530('0x92'),()=>{_0x318c15[_0x3530('0x33')](),_0x3318eb['refresh']();}),this[_0x3530('0xb5')](),this[_0x3530('0x11c')](),_0x4def3b[_0x3530('0xb9')](_0x3530('0x35')),_0x4def3b['plugins']['has'](_0x3530('0x26')))&&_0x4def3b[_0x3530('0x97')][_0x3530('0xc2')](_0x3530('0x26'))['forceDisabled'](_0x3530('0x35'));}async[_0x3530('0xd0')](_0x2ee2d4){await this[_0x3530('0x106')](_0x2ee2d4);const _0x24e464={};for(const _0x5c2c4b in _0x2ee2d4['diffData']){if(_0x2ee2d4[_0x3530('0x38')][_0x5c2c4b][_0x3530('0x8b')]&&!_0x2ee2d4[_0x3530('0x38')][_0x5c2c4b]['attachChange']['isAttached'])continue;const _0x3e6a15=this[_0x3530('0xd7')](JSON[_0x3530('0x7b')](_0x2ee2d4[_0x3530('0x38')][_0x5c2c4b][_0x3530('0x10d')])),_0xe97a05=this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')]['document'],_0x576c3d=new _0x51d369(_0xe97a05,_0x3e6a15['map'](_0x27df9a=>this[_0x3530('0xae')](_0x27df9a)));this[_0x3530('0xa0')][_0x3530('0x19')][_0x3530('0x46')][_0x3530('0x12')](_0x3530('0xbb')),_0x24e464[_0x5c2c4b]=this[_0x3530('0xa0')]['data'][_0x3530('0x46')][_0x3530('0x4f')](_0x576c3d),this[_0x3530('0xa0')][_0x3530('0x19')][_0x3530('0x46')]['useFillerType'](_0x3530('0x75'));}return _0x24e464;}async[_0x3530('0x2')](_0x46827b){await this[_0x3530('0x106')](_0x46827b);const _0x57518c={};for(const _0x2ed4f8 in _0x46827b[_0x3530('0x38')])_0x46827b['diffData'][_0x2ed4f8][_0x3530('0x8b')]&&!_0x46827b[_0x3530('0x38')][_0x2ed4f8][_0x3530('0x8b')]['isAttached']||(_0x57518c[_0x2ed4f8]=_0x46827b[_0x3530('0x38')][_0x2ed4f8]['attributesAfter']||{});return _0x57518c;}[_0x3530('0xd7')](_0x206c0c){return(_0x206c0c=_0x206c0c[_0x3530('0x9')](_0x524be0=>!_0x524be0['name']||_0x3530('0x69')!==_0x524be0[_0x3530('0xd5')]&&_0x3530('0x1c')!==_0x524be0[_0x3530('0xd5')]))['forEach'](_0x4eb2ac=>{_0x3530('0x4b')!=typeof _0x4eb2ac&&(_0x4eb2ac[_0x3530('0xc8')]=this[_0x3530('0xd7')](_0x4eb2ac[_0x3530('0xc8')]),_0x4eb2ac['attributes']=_0x4eb2ac[_0x3530('0xaa')][_0x3530('0x9')](_0x41f38c=>!_0x41f38c[0x0][_0x3530('0xa7')]('data-revision-')));}),_0x206c0c;}async[_0x3530('0xc')](_0x2a635a,_0xde84aa,_0x571206=!0x1){if(!this['isEnabled'])return;const _0x3e1fef=this[_0x3530('0x86')],_0x3400fc=this[_0x3530('0xb7')],_0x196c6a=_0x3530('0x4b')==typeof _0x2a635a?_0x3400fc[_0x3530('0x9a')](_0x2a635a):_0x2a635a,_0x310585=_0x3530('0x4b')==typeof _0xde84aa?_0x3400fc[_0x3530('0x9a')](_0xde84aa):_0xde84aa,_0x48354e=_0x196c6a['id'],_0x2b45db=_0x310585?_0x310585['id']:null;if(!_0x571206&&this[_0x3530('0x86')]&&this[_0x3530('0x86')][_0x3530('0xc5')]===_0x48354e&&this[_0x3530('0x86')][_0x3530('0x98')]===_0x2b45db)return Promise[_0x3530('0x5a')]();this[_0x3530('0xcd')]=!0x1,this[_0x3530('0x96')]=null,this['activeChange']=null,this['diff']=new _0x5ed6b5(_0x48354e,_0x2b45db);const _0x5901d0=this[_0x3530('0x9d')](_0x196c6a,_0x310585,!0x0)[_0x3530('0x1')](_0x34a708=>this['loadRevisionData'](_0x34a708));return _0x5901d0[_0x3530('0x29')](new Promise(_0x1b6f35=>{setTimeout(_0x1b6f35,0x14);})),Promise[_0x3530('0xec')](_0x5901d0)['then'](()=>{if(!this[_0x3530('0xdb')])return;this[_0x3530('0xb0')]();const _0x10ad87=this['_getDiff'](_0x48354e,_0x2b45db);for(const _0x14f3ab of _0x10ad87[_0x3530('0x1f')])this[_0x3530('0xc3')][_0x3530('0x6a')](_0x14f3ab['id'],_0x14f3ab);this[_0x3530('0xa0')][_0x3530('0x3f')]['enqueueChange']({'isUndoable':!0x1},_0x902932=>{for(const _0x285eea of this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0xdf')][_0x3530('0x103')]())_0x902932[_0x3530('0x9e')](_0x285eea);for(const _0x43693d of Object[_0x3530('0xe1')](_0x10ad87[_0x3530('0x3f')])){const _0x42958c=_0x902932[_0x3530('0x65')](_0x43693d);for(const _0x4dd83e of Object[_0x3530('0xe1')](_0x10ad87['attributes'][_0x43693d]))_0x902932['setAttribute'](_0x4dd83e,_0x10ad87[_0x3530('0xaa')][_0x43693d][_0x4dd83e],_0x42958c);_0x902932['insert'](_0x10ad87['model'][_0x43693d],_0x42958c,0x0);}}),this[_0x3530('0x86')]['_setChanges'](this[_0x3530('0x82')](_0x10ad87[_0x3530('0x1f')])),this['isReady']=!0x0;})[_0x3530('0x8d')](_0x5006e1=>{console[_0x3530('0xe2')](_0x5006e1),this[_0x3530('0xb0')](),_0x3e1fef&&(this[_0x3530('0x86')]=_0x3e1fef),this[_0x3530('0xcd')]=!0x0;});}[_0x3530('0xc1')](_0x378bba,_0x3fde4d){const _0x451af9=this[_0x3530('0xb7')]['createRevision'](_0x378bba);return _0x451af9['on'](_0x3530('0xdc'),(_0x32417a,_0x3750b3,_0x1fb27c)=>_0x3fde4d(_0x3750b3,_0x1fb27c,_0x451af9)),this[_0x3530('0xb7')][_0x3530('0x63')](_0x451af9),_0x451af9;}[_0x3530('0x106')](_0x88b04a){if(!_0x88b04a||_0x88b04a['diffData'])return Promise[_0x3530('0x5a')]();{const _0x69603=this[_0x3530('0xa0')]['config'][_0x3530('0xc2')](_0x3530('0xdd'));return this[_0x3530('0xe9')][_0x3530('0x9a')]({'channelId':_0x69603,'revisionId':_0x88b04a['id']})[_0x3530('0x91')](_0x42f604=>{_0x88b04a['_update']({'diffData':_0x42f604[_0x3530('0x38')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x3530('0x57')](),this[_0x3530('0xab')]&&this['_changeView'][_0x3530('0x104')](),this[_0x3530('0xab')]=null,this[_0x3530('0xc3')][_0x3530('0x5d')](),this['editor'][_0x3530('0x3f')][_0x3530('0xa9')]({'isUndoable':!0x1},_0x2a0b14=>{for(const _0x173041 of this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0xdf')][_0x3530('0x103')]())_0x2a0b14['detachRoot'](_0x173041);});}[_0x3530('0x82')](_0x2dc57f){const _0x58d735=[],_0xb09d1=new Map();for(const _0x5111a6 of this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0xdf')][_0x3530('0x103')]()){const _0x500086=this[_0x3530('0xa0')]['editing']['view'][_0x3530('0x84')](_0x5111a6);if(!_0x500086)continue;const _0xca6acf=_0x500086[_0x3530('0x120')]()[_0x3530('0x1a')](0x0);_0xca6acf&&(_0x58d735[_0x3530('0x29')](_0x5111a6),_0xb09d1['set'](_0x5111a6,_0xca6acf));}return _0x58d735['sort']((_0x3624b3,_0x2caf2b)=>{const _0x1ac672=_0xb09d1[_0x3530('0xc2')](_0x3624b3),_0x51dc2c=_0xb09d1['get'](_0x2caf2b);return _0x1ac672['y']-_0x51dc2c['y']||_0x1ac672['x']-_0x51dc2c['x'];}),(_0x2dc57f=_0x2dc57f[_0x3530('0x9')](_0x1bf215=>_0x58d735[_0x3530('0x4')](_0x1bf215[_0x3530('0x40')])))[_0x3530('0xb2')]((_0x108336,_0x35c800)=>_0x58d735[_0x3530('0x8')](_0x108336[_0x3530('0x40')])-_0x58d735[_0x3530('0x8')](_0x35c800[_0x3530('0x40')])),_0x2dc57f;}[_0x3530('0xfb')](_0x19c1ea){const _0x2665ba=Array[_0x3530('0x14')](_0x19c1ea[_0x3530('0x107')])[_0x3530('0x9')](([_0x3b0a17,_0x4f5b2b])=>_0x3b0a17[_0x3530('0xa7')](_0x3530('0x8a'))&&!_0x4f5b2b[_0x3530('0xe3')]),_0x1bff9b=Array[_0x3530('0x14')](this[_0x3530('0xa0')][_0x3530('0x3f')]['createRangeIn'](_0x19c1ea)[_0x3530('0x99')]({'singleCharacters':!0x0}));if(0x0!=_0x2665ba[_0x3530('0x11b')])for(const _0xa18fa2 of _0x1bff9b){const [_0x273a4b,_0x10c8d5]=_0x2665ba[0x0],[,_0x4b67db,_0x14c044]=_0x273a4b[_0x3530('0x89')](':');if(_0x10c8d5[_0x3530('0x7a')]['isEqual'](_0xa18fa2[_0x3530('0x100')])&&_0x2665ba[_0x3530('0xa5')](),(_0xa18fa2[_0x3530('0x22')][_0x3530('0xb4')](_0x10c8d5['start'])||_0xa18fa2[_0x3530('0x22')][_0x3530('0x18')](_0x10c8d5[_0x3530('0xd2')]))&&(_0x3530('0x55')==_0x4b67db?_0xa18fa2[_0x3530('0x13')]={'userId':_0x14c044}:'deletion'==_0x4b67db&&(_0xa18fa2[_0x3530('0xda')]={'userId':_0x14c044})),0x0==_0x2665ba['length'])break;}return _0x1bff9b;}['_refreshStartEndIndex'](_0x2873a8){const _0x56e89d=new Map();for(let _0x4550bb=0x0;_0x4550bb<_0x2873a8[_0x3530('0x11b')];_0x4550bb++)_0x3530('0x3d')===_0x2873a8[_0x4550bb][_0x3530('0x24')]?(_0x2873a8[_0x4550bb][_0x3530('0x1a')]['startIndex']=_0x4550bb,_0x2873a8[_0x4550bb][_0x3530('0x1a')][_0x3530('0x7d')]=_0x4550bb):('elementStart'===_0x2873a8[_0x4550bb][_0x3530('0x24')]?_0x2873a8[_0x4550bb][_0x3530('0x1a')][_0x3530('0xe7')]=_0x4550bb:_0x3530('0x47')===_0x2873a8[_0x4550bb]['type']&&(_0x2873a8[_0x4550bb][_0x3530('0x1a')]['endIndex']=_0x4550bb),_0x56e89d['set'](_0x2873a8[_0x4550bb]['id'],_0x4550bb));for(const _0x412aaa of _0x56e89d[_0x3530('0x44')]())_0x3530('0xa2')===_0x2873a8[_0x412aaa][_0x3530('0x24')]?_0x2873a8[_0x412aaa][_0x3530('0x1a')][_0x3530('0x7d')]=_0x56e89d[_0x3530('0xc2')](_0x2873a8[_0x412aaa][_0x3530('0x5b')]):'elementEnd'===_0x2873a8[_0x412aaa]['type']&&(_0x2873a8[_0x412aaa]['item'][_0x3530('0xe7')]=_0x56e89d[_0x3530('0xc2')](_0x2873a8[_0x412aaa]['pairId']));}['_processTape'](_0x4c7424){for(let _0x3ea8f0=0x0;_0x3ea8f0<_0x4c7424[_0x3530('0x11b')];_0x3ea8f0++){if(_0x3530('0xa2')===_0x4c7424[_0x3ea8f0][_0x3530('0x24')])_0x4c7424[_0x3ea8f0]['item'][_0x3530('0xe7')]=_0x3ea8f0;else{if(_0x3530('0x47')===_0x4c7424[_0x3ea8f0][_0x3530('0x24')]){_0x4c7424[_0x3ea8f0][_0x3530('0x1a')][_0x3530('0x7d')]=_0x3ea8f0;const _0x4bb87b=_0x4c7424[_0x3ea8f0][_0x3530('0x1a')][_0x3530('0xe7')];_0x4c7424[_0x4bb87b]['pairId']=_0x4c7424[_0x3ea8f0]['id'],_0x4c7424[_0x3ea8f0][_0x3530('0x5b')]=_0x4c7424[_0x4bb87b]['id'];}else _0x4c7424[_0x3ea8f0][_0x3530('0x1a')][_0x3530('0xe7')]=_0x3ea8f0,_0x4c7424[_0x3ea8f0]['item'][_0x3530('0x7d')]=_0x3ea8f0,_0x4c7424[_0x3ea8f0]['pairId']=null;}_0x4c7424[_0x3ea8f0]['markersStart']||(_0x4c7424[_0x3ea8f0][_0x3530('0x77')]=[],_0x4c7424[_0x3ea8f0]['markersEnd']=[]);}}[_0x3530('0xf7')](_0x25aa9b,_0x2d7d26){const _0x225af2=_0x25aa9b['filter'](_0x3a97f7=>!_0x3a97f7[_0x3530('0x13')]);for(let _0x12f6b6=0x0;_0x12f6b6<_0x2d7d26[_0x3530('0x11b')];_0x12f6b6++)_0x2d7d26[_0x12f6b6][_0x3530('0x13')]&&(_0x225af2[_0x12f6b6][_0x3530('0x13')]=_0x2d7d26[_0x12f6b6]['isAdded']);}['_makeModelFromViewString'](_0x11d11d){const _0x3b0880=JSON[_0x3530('0x7b')](_0x11d11d),_0x57c23f=this[_0x3530('0xa0')]['editing'][_0x3530('0x2d')][_0x3530('0xdf')],_0x2c7810=new _0x51d369(_0x57c23f,_0x3b0880[_0x3530('0x1')](_0x32c35a=>this[_0x3530('0xae')](_0x32c35a)));return this[_0x3530('0xa0')][_0x3530('0x19')]['toModel'](_0x2c7810);}[_0x3530('0xae')](_0x30b671){const _0x4cfec4=this[_0x3530('0xa0')][_0x3530('0xb6')]['view'][_0x3530('0xdf')];if(_0x3530('0x4b')==typeof _0x30b671)return new _0x1b9783(_0x4cfec4,_0x30b671);{const _0x55470a=_0x30b671[_0x3530('0xc8')][_0x3530('0x1')](_0xf1ba0e=>this[_0x3530('0xae')](_0xf1ba0e));return new(tt[_0x30b671[(_0x3530('0x24'))]]||_0x5e509c)(_0x4cfec4,_0x30b671[_0x3530('0xd5')],_0x30b671['attributes'],_0x55470a);}}[_0x3530('0xa')](_0x42ccf7,_0x5cab8a=null){const _0x12d8cd=this[_0x3530('0xb7')][_0x3530('0x9a')](_0x42ccf7),_0x13da79=_0x5cab8a?this['repository']['getRevision'](_0x5cab8a):null,_0x36bc3a=this[_0x3530('0x9d')](_0x12d8cd,_0x13da79),_0x3c053d=_0x36bc3a[_0x36bc3a['length']-0x1],_0x2b7301=new Map(),_0x269f09={'model':{},'attributes':{},'changes':[]},_0x3c32e7=new Set(),_0x341c5b=new Map();for(let _0x233cb0=_0x36bc3a[_0x3530('0x11b')]-0x1;_0x233cb0>=0x0;_0x233cb0--){const _0x94f21e=_0x36bc3a[_0x233cb0];for(const _0x4fbfa3 of Object[_0x3530('0xe1')](_0x94f21e[_0x3530('0x38')]))if(_0x94f21e[_0x3530('0x38')][_0x4fbfa3][_0x3530('0x8b')]){const _0x38d0a0=_0x94f21e[_0x3530('0x38')][_0x4fbfa3][_0x3530('0x8b')];_0x38d0a0[_0x3530('0x0')]?(_0x3c32e7[_0x3530('0xf2')](_0x4fbfa3),_0x341c5b[_0x3530('0xad')](_0x4fbfa3)&&_0x341c5b['get'](_0x4fbfa3)[_0x3530('0x11f')]==_0x38d0a0['userId']?_0x341c5b[_0x3530('0x66')](_0x4fbfa3):_0x341c5b[_0x3530('0x6a')](_0x4fbfa3,_0x38d0a0)):_0x341c5b[_0x3530('0xad')](_0x4fbfa3)?(_0x3c32e7['delete'](_0x4fbfa3),_0x341c5b[_0x3530('0x66')](_0x4fbfa3)):(_0x3c32e7[_0x3530('0xf2')](_0x4fbfa3),_0x341c5b[_0x3530('0x6a')](_0x4fbfa3,_0x38d0a0));}else _0x3c32e7['add'](_0x4fbfa3);}for(const _0xb89b6f of _0x3c32e7){const _0x25afa0=_0x341c5b[_0x3530('0xad')](_0xb89b6f)&&!_0x341c5b[_0x3530('0xc2')](_0xb89b6f)[_0x3530('0x0')];let _0x1fc490=_0x25afa0?_0x36bc3a[_0x3530('0x11b')]-0x1:0x0;const _0x261b65=_0x25afa0?-0x1:0x1;for(;_0x36bc3a[_0x1fc490];){const _0xf77521=_0x36bc3a[_0x1fc490];if(_0xf77521[_0x3530('0x38')][_0xb89b6f]){const _0x5e4d08=_0x25afa0?_0xf77521[_0x3530('0x38')][_0xb89b6f][_0x3530('0x48')]:_0xf77521[_0x3530('0x38')][_0xb89b6f]['attributesAfter'];_0x269f09[_0x3530('0xaa')][_0xb89b6f]=_0x5e4d08?_0x370b3f(_0x5e4d08):{};break;}_0x1fc490+=_0x261b65;}}for(const _0x524dd9 of _0x36bc3a){_0x524dd9[_0x3530('0x3f')]={};for(const _0x407801 of _0x524dd9[_0x3530('0xac')])_0x2b7301[_0x3530('0x6a')](_0x407801['id'],_0x407801);for(const _0x5916a9 of _0x3c32e7){const _0x1636fc=_0x524dd9[_0x3530('0x38')][_0x5916a9]?_0x524dd9[_0x3530('0x38')][_0x5916a9]['insertions']:'[]',_0x4b180e=_0x524dd9['diffData'][_0x5916a9]?_0x524dd9['diffData'][_0x5916a9][_0x3530('0x119')]:'[]';_0x524dd9[_0x3530('0x3f')][_0x5916a9]={'insertions':this[_0x3530('0xcb')](_0x1636fc),'deletions':this[_0x3530('0xcb')](_0x4b180e)};}}for(const _0x127dff of _0x3c32e7){let _0x59e59b=null,_0x132203=0x0;const _0xb93ae5=new Map(Array['from'](_0x12d8cd[_0x3530('0x3f')][_0x127dff][_0x3530('0x10d')]['markers'])[_0x3530('0x9')](([_0x40debb])=>!_0x40debb[_0x3530('0xa7')](_0x3530('0x8a'))));let _0x26e7e7=0x0;for(const _0x38a169 of _0x36bc3a){const _0x2d5f4d=this[_0x3530('0xfb')](_0x38a169[_0x3530('0x3f')][_0x127dff][_0x3530('0x10d')]);_0x38a169==_0x12d8cd?(_0x59e59b=_0x2d5f4d,_0x132203=_0x59e59b[_0x3530('0x11b')],_0x59e59b['forEach'](_0x1f6a6e=>{_0x1f6a6e['id']=_0x26e7e7++;}),this[_0x3530('0x58')](_0x59e59b)):this[_0x3530('0xf7')](_0x59e59b,_0x2d5f4d);const _0x4e5d5c=_0x59e59b[_0x3530('0x9')](_0x2121bf=>!_0x2121bf[_0x3530('0x13')])[_0x3530('0x1')](_0x308647=>_0x308647['id']);let _0x442fe7=0x0;const _0x4e1573=this[_0x3530('0xfb')](_0x38a169[_0x3530('0x3f')][_0x127dff][_0x3530('0x119')]);_0x4e1573[_0x3530('0xf5')](_0x2d34de=>{_0x2d34de[_0x3530('0xda')]?_0x2d34de['id']=_0x132203++:_0x2d34de['id']=_0x4e5d5c[_0x442fe7++];}),this['_processTape'](_0x4e1573),this[_0x3530('0x37')](_0x59e59b,_0x3530('0x13')),this[_0x3530('0x37')](_0x4e1573,_0x3530('0xda')),_0x38a169==_0x12d8cd&&this['_markMarkers'](_0x59e59b,_0xb93ae5),_0x59e59b=this['_joinTapes'](_0x59e59b,_0x4e1573),this['_refreshStartEndIndex'](_0x59e59b),this[_0x3530('0x37')](_0x59e59b,_0x3530('0xda'));}_0x59e59b=_0x59e59b[_0x3530('0x9')](_0x580ab1=>!(_0x580ab1[_0x3530('0x13')]&&_0x580ab1[_0x3530('0xda')]));const _0x2defe0=new Map(_0x3c053d[_0x3530('0x3f')][_0x127dff][_0x3530('0x119')][_0x3530('0x107')]),_0x3020bb=new Set(_0xb93ae5[_0x3530('0xe1')]());for(const _0x1d8382 of _0x2defe0[_0x3530('0xe1')]())_0x3020bb[_0x3530('0x66')](_0x1d8382);this[_0x3530('0x1b')](_0x59e59b,_0x3020bb),this[_0x3530('0x94')](_0x59e59b),_0x59e59b=this['_removeMissingPairs'](_0x59e59b),_0x59e59b=this[_0x3530('0x43')](_0x59e59b),_0x59e59b=this[_0x3530('0xd8')](_0x59e59b);const {root:_0x2242f4,changes:_0xeefb5a}=this[_0x3530('0xb')](_0x59e59b,_0x2b7301,_0x127dff);_0x269f09[_0x3530('0x3f')][_0x127dff]=_0x2242f4;const _0x1ee00b=_0x341c5b[_0x3530('0xc2')](_0x127dff);if(_0x1ee00b){const _0x53f8d8=_0x2b7301['get'](_0x1ee00b['userId']),_0x1dce7f=new _0x793295({'author':_0x53f8d8,'type':_0x1ee00b[_0x3530('0x0')]?_0x3530('0xf2'):_0x3530('0x9c'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x127dff});_0xeefb5a[_0x3530('0x1e')](_0x1dce7f),_0x269f09[_0x3530('0xaa')][_0x127dff][_0x3530('0xca')]=_0x1dce7f['id'];}_0x269f09['changes']=_0x269f09[_0x3530('0x1f')][_0x3530('0x6c')](_0xeefb5a);}return _0x269f09;}[_0x3530('0xce')](_0x4ab8e8,_0x4445fa){for(let _0x24149f=0x0;_0x24149f<_0x4ab8e8[_0x3530('0x11b')];_0x24149f++)for(const [_0x599f1b,_0x47e43e]of _0x4445fa)_0x47e43e['start'][_0x3530('0xb4')](_0x4ab8e8[_0x24149f]['previousPosition'])&&_0x4ab8e8[_0x24149f][_0x3530('0x77')][_0x3530('0x29')](_0x599f1b),_0x47e43e[_0x3530('0x7a')]['isEqual'](_0x4ab8e8[_0x24149f]['nextPosition'])&&_0x4ab8e8[_0x24149f][_0x3530('0x10f')][_0x3530('0x29')](_0x599f1b);}[_0x3530('0x87')](_0x42a584,_0x5a5152){let _0x36c362=[],_0x4fa901=0x0,_0x5a87e5=0x0;for(;_0x4fa901<_0x42a584[_0x3530('0x11b')]||_0x5a87e5<_0x5a5152[_0x3530('0x11b')];){const _0x54e36b=_0x42a584[_0x4fa901]||{},_0x4cdbd7=_0x5a5152[_0x5a87e5]||{};if(_0x54e36b['id']==_0x4cdbd7['id'])_0x4fa901++,_0x5a87e5++,_0x36c362[_0x3530('0x29')](_0x54e36b);else{if(_0x4cdbd7[_0x3530('0xda')]&&_0x54e36b['isAdded']){const {commonTape:_0x532bce,iEnd:_0x3cc1d4,jEnd:_0x527dad}=this[_0x3530('0x111')](_0x42a584,_0x4fa901,_0x5a5152,_0x5a87e5);_0x36c362=_0x36c362[_0x3530('0x6c')](_0x532bce),_0x4fa901=_0x3cc1d4,_0x5a87e5=_0x527dad;}else _0x4cdbd7['isRemoved']?(_0x5a87e5++,_0x36c362[_0x3530('0x29')](_0x4cdbd7)):(_0x4fa901++,_0x36c362[_0x3530('0x29')](_0x54e36b));}}return _0x36c362;}[_0x3530('0x1b')](_0x245db3,_0x4076a1){const _0x3017f7=[];for(let _0x4ba37a=0x0;_0x4ba37a<_0x245db3[_0x3530('0x11b')];_0x4ba37a++){for(let _0x51f4a1=0x0;_0x51f4a1<_0x245db3[_0x4ba37a]['markersStart'][_0x3530('0x11b')];_0x51f4a1++){const _0x3c469b=_0x245db3[_0x4ba37a][_0x3530('0x77')][_0x51f4a1];if(!_0x4076a1['has'](_0x3c469b))continue;const {group:_0xdbb4be,type:_0x2836d6,authorId:_0x41ae6c}=_0x46d389(_0x3c469b);'revision-suggestion'!=_0xdbb4be||'insertion'!=_0x2836d6&&_0x3530('0x3a')!=_0x2836d6||(_0x3017f7['unshift']({'type':_0x2836d6,'name':_0x3c469b,'userId':_0x41ae6c}),_0x245db3[_0x4ba37a][_0x3530('0x77')][_0x3530('0x8e')](_0x51f4a1,0x1),_0x51f4a1--);}_0x435279(_0x245db3[_0x4ba37a]);for(let _0x2581c1=0x0;_0x2581c1<_0x245db3[_0x4ba37a][_0x3530('0x10f')][_0x3530('0x11b')];_0x2581c1++){const _0x23a3d2=_0x245db3[_0x4ba37a][_0x3530('0x10f')][_0x2581c1];if(!_0x4076a1['has'](_0x23a3d2))continue;const {group:_0x1eecef,type:_0x3af700}=_0x46d389(_0x23a3d2);if(_0x3530('0x16')!=_0x1eecef||_0x3530('0x55')!=_0x3af700&&'deletion'!=_0x3af700)continue;_0x245db3[_0x4ba37a]['markersEnd'][_0x3530('0x8e')](_0x2581c1,0x1),_0x2581c1--;const _0x4ab239=_0x3017f7['findIndex'](_0x4011ca=>_0x4011ca[_0x3530('0xd5')]==_0x23a3d2);_0x4ab239>-0x1&&_0x3017f7[_0x3530('0x8e')](_0x4ab239,0x1);}}function _0x46d389(_0x283a1d){const _0x8ff5f5=_0x283a1d[_0x3530('0x89')](':');return{'group':_0x8ff5f5[0x0],'type':_0x8ff5f5[0x1],'subType':_0x8ff5f5[_0x3530('0x11b')]>=0x5?_0x8ff5f5[0x2]:null,'id':_0x8ff5f5['length']<0x5?_0x8ff5f5[0x2]:_0x8ff5f5[0x3],'authorId':_0x8ff5f5[_0x3530('0x11b')]<0x5?_0x8ff5f5[0x3]:_0x8ff5f5[0x4],'markerCount':0x6==_0x8ff5f5['length']?_0x8ff5f5[0x5]:null};}function _0x435279(_0x258837){for(let _0x13b71c=0x0;_0x13b71c<_0x3017f7[_0x3530('0x11b')];_0x13b71c++){if(_0x258837['isAdded']&&_0x3530('0x55')==_0x3017f7[_0x13b71c]['type'])return _0x258837['isAddSuggestion']=_0x3017f7[_0x13b71c],void delete _0x258837[_0x3530('0x13')];if(!_0x258837[_0x3530('0x13')]&&!_0x258837[_0x3530('0xda')]&&_0x3530('0x3a')==_0x3017f7[_0x13b71c][_0x3530('0x24')])return void(_0x258837[_0x3530('0xa1')]=_0x3017f7[_0x13b71c]);}}}['_setDistance'](_0x18bf00,_0x5e69d8){let _0x262cb6=0x0,_0x564ff9=!0x1;const _0x3049ad=new Map();for(const _0x2cd91c of _0x18bf00)_0x2cd91c[_0x5e69d8]?_0x564ff9&&(_0x262cb6++,_0x564ff9=!0x1):(_0x262cb6++,_0x564ff9=!0x0),_0x3049ad[_0x3530('0x6a')](_0x2cd91c['id'],_0x262cb6);for(let _0x27babd=0x0;_0x27babd<_0x18bf00[_0x3530('0x11b')];_0x27babd++){if('isRemoved'==_0x5e69d8&&_0x18bf00[_0x27babd][_0x3530('0x13')]||_0x3530('0x13')==_0x5e69d8&&_0x18bf00[_0x27babd][_0x3530('0xda')])continue;if('text'==_0x18bf00[_0x27babd][_0x3530('0x24')]){_0x18bf00[_0x27babd][_0x3530('0xe4')]=0x0;continue;}const _0x2ed781=_0x3049ad[_0x3530('0xc2')](_0x18bf00[_0x27babd][_0x3530('0x5b')]),_0x1c3f8c=_0x3049ad[_0x3530('0xc2')](_0x18bf00[_0x27babd]['id']);_0x18bf00[_0x27babd][_0x3530('0xe4')]=_0x2ed781-_0x1c3f8c;}}['_getRevisionsRange'](_0x11f22f,_0xe5ffe5,_0x1acff9=!0x1){const _0x5e32f0=[];let _0x4a18b4=this[_0x3530('0xb7')][_0x3530('0x34')](_0x11f22f),_0x343a9a=this[_0x3530('0xb7')][_0x3530('0x34')](_0xe5ffe5);for(-0x1==_0x343a9a&&(_0x343a9a=this[_0x3530('0xb7')]['_revisions'][_0x3530('0x11b')],_0x1acff9=!0x1);_0x4a18b4<_0x343a9a;)_0x5e32f0['push'](this[_0x3530('0xb7')][_0x3530('0x9a')](_0x4a18b4)),_0x4a18b4++;return _0x1acff9&&_0x5e32f0['push'](this[_0x3530('0xb7')][_0x3530('0x9a')](_0x4a18b4)),_0x5e32f0;}[_0x3530('0x111')](_0x56d53b,_0x68735e,_0x2a92c4,_0x5a7418){const _0x2259b0=this['editor'][_0x3530('0x3f')]['schema'];let _0x3a5bfb=_0x68735e;for(;_0x56d53b[_0x3a5bfb]&&_0x56d53b[_0x3a5bfb][_0x3530('0x13')];)_0x3a5bfb++;let _0x5e07bd=_0x5a7418;for(;_0x2a92c4[_0x5e07bd]&&_0x2a92c4[_0x5e07bd][_0x3530('0xda')];)_0x5e07bd++;_0x4aeb3a(_0x56d53b,_0x68735e,_0x3a5bfb),_0x4aeb3a(_0x2a92c4,_0x5a7418,_0x5e07bd);const _0x475b4e=_0x2a92c4[_0x3530('0x109')](_0x5a7418,_0x5e07bd)['concat'](_0x56d53b[_0x3530('0x109')](_0x68735e,_0x3a5bfb));return _0x475b4e[_0x3530('0xb2')]((_0x1821b3,_0x2e5575)=>_0x1821b3['side']!=_0x2e5575['side']?_0x1821b3['side']-_0x2e5575[_0x3530('0x90')]:_0x1821b3[_0x3530('0x68')]!=_0x2e5575['level']?_0x1821b3[_0x3530('0x68')]-_0x2e5575[_0x3530('0x68')]:_0x1821b3[_0x3530('0xe4')]!=_0x2e5575['distance']?_0x2e5575['distance']-_0x1821b3['distance']:!!_0x1821b3[_0x3530('0x13')]!=!!_0x2e5575[_0x3530('0x13')]?-0x1==_0x1821b3[_0x3530('0x90')]||0x0==_0x1821b3[_0x3530('0x90')]?_0x1821b3[_0x3530('0x13')]?-0x1:0x1:_0x1821b3[_0x3530('0x13')]?0x1:-0x1:_0x1821b3[_0x3530('0xc0')]-_0x2e5575[_0x3530('0xc0')]),{'commonTape':_0x475b4e,'iEnd':_0x3a5bfb,'jEnd':_0x5e07bd};function _0x4aeb3a(_0x486784,_0x1a8161,_0x2f8caf){let _0x4deca9=-0x1,_0x1fdc04=Number[_0x3530('0x83')],_0x53a7fa=!0x0;for(let _0x51eece=_0x1a8161;_0x51eece<_0x2f8caf;_0x51eece++)if(_0x2259b0[_0x3530('0x67')](_0x486784[_0x51eece][_0x3530('0x1a')])||(_0x53a7fa=!0x1),_0x486784[_0x51eece][_0x3530('0x1a')][_0x3530('0xe7')]<_0x1a8161&&(_0x4deca9=_0x51eece),_0x486784[_0x51eece]['item'][_0x3530('0x7d')]>=_0x2f8caf){_0x1fdc04=_0x51eece;break;}_0x53a7fa&&(_0x4deca9=_0x2f8caf-0x1);for(let _0x3a28f5=_0x1a8161;_0x3a28f5<_0x2f8caf;_0x3a28f5++)_0x486784[_0x3a28f5]['side']=_0x3a28f5<=_0x4deca9?-0x1:_0x3a28f5<_0x1fdc04?0x0:0x1,_0x486784[_0x3a28f5][_0x3530('0xc0')]=_0x3a28f5;let _0x3e3420=0x0;for(let _0x25c664=_0x1a8161;_0x25c664<=_0x4deca9;_0x25c664++)0x0==_0x486784[_0x25c664][_0x3530('0xe4')]?_0x486784[_0x25c664][_0x3530('0x68')]=_0x3e3420:(_0x3e3420++,_0x486784[_0x25c664][_0x3530('0x68')]=_0x3e3420,_0x3e3420++);for(let _0x29ed63=_0x1a8161;_0x29ed63<_0x2f8caf;_0x29ed63++)0x0==_0x486784[_0x29ed63]['side']&&(_0x486784[_0x29ed63][_0x3530('0x68')]=_0x3e3420);_0x3e3420=0x0;for(let _0x3ac8ce=_0x2f8caf-0x1;_0x3ac8ce>=_0x1fdc04;_0x3ac8ce--)0x0==_0x486784[_0x3ac8ce][_0x3530('0xe4')]?_0x486784[_0x3ac8ce][_0x3530('0x68')]=_0x3e3420:(_0x3e3420--,_0x486784[_0x3ac8ce][_0x3530('0x68')]=_0x3e3420,_0x3e3420--);}}['_fixObsoleteTags'](_0x4a3dfb){const _0x5cc7b7=new Map(),_0xfc8a2d=this['editor']['model'][_0x3530('0x10c')];for(let _0xde95ad=0x1;_0xde95ad<_0x4a3dfb[_0x3530('0x11b')];_0xde95ad++){let _0x15f7a7,_0x40eaa3,_0x4b3e4a;const _0x2ae113=_0x4a3dfb[_0xde95ad],_0x4092a0=_0x4a3dfb[_0xde95ad-0x1];if(_0x3530('0x3d')==_0x2ae113['type'])continue;if(_0x2ae113[_0x3530('0x24')]!=_0x4092a0['type'])continue;if(!_0xfc8a2d[_0x3530('0xcf')](_0x4092a0['item'])||_0xfc8a2d[_0x3530('0x6d')](_0x4092a0[_0x3530('0x1a')]))continue;if(!_0xfc8a2d[_0x3530('0xcf')](_0x2ae113[_0x3530('0x1a')])||_0xfc8a2d[_0x3530('0x6d')](_0x2ae113[_0x3530('0x1a')]))continue;if((_0x4a3dfb[_0xde95ad]['isAdded']||_0x4a3dfb[_0xde95ad][_0x3530('0xef')])&&_0x4a3dfb[_0xde95ad-0x1]['isRemoved'])_0x15f7a7=_0x4a3dfb[_0xde95ad],_0x40eaa3=_0x4a3dfb[_0xde95ad-0x1],_0x4b3e4a=_0xde95ad-0x1;else{if(!_0x4a3dfb[_0xde95ad][_0x3530('0xda')]||!_0x4a3dfb[_0xde95ad-0x1][_0x3530('0x13')]&&!_0x4a3dfb[_0xde95ad-0x1][_0x3530('0xef')])continue;_0x15f7a7=_0x4a3dfb[_0xde95ad-0x1],_0x40eaa3=_0x4a3dfb[_0xde95ad],_0x4b3e4a=_0xde95ad;}const _0x4d146f=_0x15f7a7['level']==_0x40eaa3[_0x3530('0x68')],_0x420ab9=Math[_0x3530('0xc7')](_0x15f7a7[_0x3530('0x68')])<Math[_0x3530('0xc7')](_0x40eaa3[_0x3530('0x68')])&&0x0==_0x40eaa3[_0x3530('0xe4')];(_0x4d146f||_0x420ab9)&&(_0x5cc7b7[_0x3530('0x6a')](_0x40eaa3['id'],_0x15f7a7['id']),_0x4a3dfb[_0x3530('0x8e')](_0x4b3e4a,0x1),_0xde95ad--,_0x15f7a7[_0x3530('0x13')]=!0x1);}for(let _0x2f8ade=0x0;_0x2f8ade<_0x4a3dfb[_0x3530('0x11b')];_0x2f8ade++)_0x5cc7b7['has'](_0x4a3dfb[_0x2f8ade][_0x3530('0x5b')])&&(_0x4a3dfb[_0x2f8ade][_0x3530('0x5b')]=_0x5cc7b7[_0x3530('0xc2')](_0x4a3dfb[_0x2f8ade][_0x3530('0x5b')]));}[_0x3530('0xa3')](_0x485b27){const _0x40f684=new Set(_0x485b27[_0x3530('0x1')](_0x58201c=>_0x58201c['id']));for(let _0x5bd269=0x0;_0x5bd269<_0x485b27[_0x3530('0x11b')];_0x5bd269++)_0x40f684[_0x3530('0xad')](_0x485b27[_0x5bd269][_0x3530('0x5b')])||0x0==_0x485b27[_0x5bd269][_0x3530('0xe4')]||(_0x485b27[_0x5bd269][_0x3530('0x71')]=!0x0);return _0x485b27[_0x3530('0x9')](_0x1ca741=>!_0x1ca741[_0x3530('0x71')]);}['_markMismatchedRemovedTags'](_0x5ab350){const _0x12bac7=new Set();for(let _0x473b34=0x0;_0x473b34<_0x5ab350['length'];_0x473b34++){if(_0x12bac7[_0x3530('0xad')](_0x5ab350[_0x473b34]['id'])&&_0x5ab350[_0x473b34]['isRemoved']&&(_0x5ab350[_0x473b34]['isIncorrect']=!0x0),_0x5ab350[_0x473b34][_0x3530('0x71')])continue;if(0x0==_0x5ab350[_0x473b34][_0x3530('0xe4')])continue;if('elementStart'!=_0x5ab350[_0x473b34]['type'])continue;if(null==_0x5ab350[_0x473b34]['pairId'])continue;let _0x31ee50=_0x473b34+0x1,_0x23c3e4=0x0;for(;_0x5ab350[_0x31ee50]['id']!=_0x5ab350[_0x473b34]['pairId'];)_0x3530('0xa2')==_0x5ab350[_0x31ee50][_0x3530('0x24')]?_0x23c3e4++:_0x3530('0x47')==_0x5ab350[_0x31ee50][_0x3530('0x24')]&&_0x23c3e4--,_0x31ee50++;if(0x0!=_0x23c3e4){if(_0x5ab350[_0x473b34][_0x3530('0xda')])_0x5ab350[_0x473b34][_0x3530('0x71')]=!0x0;else for(;_0x31ee50!=_0x473b34;)_0x5ab350[_0x31ee50][_0x3530('0xda')]&&0x0!=_0x5ab350[_0x31ee50][_0x3530('0xe4')]&&(_0x5ab350[_0x31ee50][_0x3530('0x71')]=!0x0,_0x12bac7[_0x3530('0xf2')](_0x5ab350[_0x31ee50][_0x3530('0x5b')])),_0x31ee50--;}}return _0x5ab350[_0x3530('0x9')](_0x3a307a=>!_0x3a307a['isIncorrect']);}[_0x3530('0xd8')](_0x400532){const _0x17fb6f=this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0x10c')];for(let _0x3b8e5c=0x0;_0x3b8e5c<_0x400532[_0x3530('0x11b')];_0x3b8e5c++){if(!(_0x400532[_0x3b8e5c][_0x3530('0x13')]||_0x400532[_0x3b8e5c][_0x3530('0xef')]||_0x400532[_0x3b8e5c][_0x3530('0xda')]||_0x400532[_0x3b8e5c]['isRemoveSuggestion']))continue;if(0x0==_0x400532[_0x3b8e5c][_0x3530('0xe4')])continue;const _0x228b61=_0x400532[_0x3b8e5c]['item'];_0x17fb6f['isBlock'](_0x228b61)||_0x17fb6f[_0x3530('0x6d')](_0x228b61)||(_0x400532[_0x3b8e5c][_0x3530('0x13')]&&delete _0x400532[_0x3b8e5c][_0x3530('0x13')],_0x400532[_0x3b8e5c]['isAddSuggestion']&&delete _0x400532[_0x3b8e5c][_0x3530('0xef')],_0x400532[_0x3b8e5c][_0x3530('0xa1')]&&delete _0x400532[_0x3b8e5c][_0x3530('0xa1')],_0x400532[_0x3b8e5c]['isRemoved']&&(_0x400532[_0x3b8e5c][_0x3530('0x71')]=!0x0));}return _0x400532[_0x3530('0x9')](_0x1ee63d=>!_0x1ee63d['isIncorrect']);}[_0x3530('0xb')](_0x4a05fa,_0x46f3e1,_0x5bdd82){const _0x5b5955=new _0x4979a3(),_0x1146ed=[],_0x5d0fb3=new Map(),_0x2a8330=this[_0x3530('0xa0')][_0x3530('0x3f')],_0x2e3a8e=_0x2a8330[_0x3530('0x10c')],_0x2d95dc=[_0x5b5955],_0x1acd9e={},_0x1d5278={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x45aba0=null;const _0x370154=[0x0];for(let _0x169d76=0x0;_0x169d76<_0x4a05fa[_0x3530('0x11b')];_0x169d76++){let _0x2f0beb,_0x3a89bc;if('elementStart'===_0x4a05fa[_0x169d76][_0x3530('0x24')]){_0x2f0beb=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154);const _0x159a1a=new _0x3a563a(_0x4a05fa[_0x169d76]['item'][_0x3530('0xd5')],_0x4a05fa[_0x169d76]['item'][_0x3530('0x41')]());_0x2d95dc[0x0][_0x3530('0xd4')](_0x159a1a),_0x370154['push'](0x0),_0x2d95dc[_0x3530('0x1e')](_0x159a1a),_0x3a89bc=_0x2a8330[_0x3530('0x2a')](_0x5b5955,_0x370154),_0x45aba0=null;}else{if(_0x3530('0x47')===_0x4a05fa[_0x169d76][_0x3530('0x24')])_0x2d95dc[_0x3530('0xa5')](),_0x2f0beb=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154),_0x370154['pop'](),_0x370154[_0x370154[_0x3530('0x11b')]-0x1]++,_0x3a89bc=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154),_0x45aba0=null;else{if(_0x2f0beb=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154),_0x45aba0&&_0x377393(_0x45aba0,_0x4a05fa[_0x169d76][_0x3530('0x1a')]))_0x45aba0[_0x3530('0x4d')]+=_0x4a05fa[_0x169d76][_0x3530('0x1a')]['data'];else{const _0x5a33b8=new _0x2a94dd(_0x4a05fa[_0x169d76]['item'][_0x3530('0x19')],_0x4a05fa[_0x169d76][_0x3530('0x1a')][_0x3530('0x41')]());_0x2d95dc[0x0][_0x3530('0xd4')](_0x5a33b8),_0x45aba0=_0x5a33b8;}_0x370154[_0x370154[_0x3530('0x11b')]-0x1]+=_0x4a05fa[_0x169d76][_0x3530('0x1a')][_0x3530('0x5')],_0x3a89bc=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154);}}for(const _0x1514ea of _0x4a05fa[_0x169d76][_0x3530('0x77')])_0x5d0fb3[_0x3530('0x6a')](_0x1514ea,{'start':_0x2f0beb,'end':null});_0x4944cd(_0x3530('0xa1'),_0x169d76,_0x2f0beb,_0x3a89bc),_0x4944cd(_0x3530('0xef'),_0x169d76,_0x2f0beb,_0x3a89bc),_0x4944cd(_0x3530('0xda'),_0x169d76,_0x2f0beb,_0x3a89bc),_0x4944cd(_0x3530('0x13'),_0x169d76,_0x2f0beb,_0x3a89bc);for(const _0x419a05 of _0x4a05fa[_0x169d76][_0x3530('0x10f')]){_0x5d0fb3[_0x3530('0xc2')](_0x419a05)['end']=_0x3a89bc;}}for(const [_0x5cfd73,_0x41f2b0]of _0x5d0fb3){const _0x29e913=this['editor'][_0x3530('0x3f')][_0x3530('0xde')](_0x41f2b0['start'],_0x41f2b0['end']);_0x5b5955['markers']['set'](_0x5cfd73,_0x29e913);}return _0x1146ed[_0x3530('0xb2')]((_0x17b05f,_0x25aeee)=>{const _0x38bb52=_0x5b5955[_0x3530('0x107')][_0x3530('0xc2')]('revision:'+_0x17b05f['id']),_0x5eb7de=_0x5b5955[_0x3530('0x107')][_0x3530('0xc2')]('revision:'+_0x25aeee['id']);return _0x38bb52[_0x3530('0xd2')][_0x3530('0x10')](_0x5eb7de[_0x3530('0xd2')])?-0x1:_0x38bb52[_0x3530('0xd2')][_0x3530('0x18')](_0x5eb7de[_0x3530('0xd2')])?0x1:_0x38bb52[_0x3530('0x7a')][_0x3530('0x10')](_0x5eb7de[_0x3530('0x7a')])?-0x1:_0x38bb52['end']['isAfter'](_0x5eb7de['end'])?0x1:_0x3530('0xf2')===_0x17b05f[_0x3530('0x24')]?-0x1:0x1;}),{'root':_0x5b5955,'changes':_0x1146ed};function _0x4944cd(_0x15796b,_0x3f6ad4,_0x16108f,_0x5e9420){const _0x2b6a05=!!_0x4a05fa[_0x3f6ad4][_0x15796b],_0x2b056f=_0x2b6a05?_0x4a05fa[_0x3f6ad4][_0x15796b]['userId']:null,_0x5e7e6e=_0x3f6ad4===_0x4a05fa[_0x3530('0x11b')]-0x1,_0x515b17=_0x1d5278[_0x15796b][0x0],_0x236181=_0x2e3a8e[_0x3530('0x62')](_0x4a05fa[_0x3f6ad4][_0x3530('0x1a')]);!_0x1acd9e[_0x15796b]&&_0x2b6a05?_0x1acd9e[_0x15796b]={'start':_0x16108f,'tapeItem':_0x4a05fa[_0x3f6ad4],'userId':_0x2b056f,'type':_0x15796b}:_0x1acd9e[_0x15796b]&&!_0x2b6a05?(_0x1acd9e[_0x15796b][_0x3530('0x7a')]=_0x16108f,_0x36afe4(_0x1acd9e[_0x15796b]),_0x1acd9e[_0x15796b]=null):_0x1acd9e[_0x15796b]&&_0x2b6a05&&_0x1acd9e[_0x15796b][_0x3530('0x11f')]!==_0x2b056f&&(_0x1acd9e[_0x15796b][_0x3530('0x7a')]=_0x16108f,_0x515b17&&_0x515b17[_0x3530('0x11f')]===_0x1acd9e[_0x15796b]['userId']||_0x36afe4(_0x1acd9e[_0x15796b]),_0x1acd9e[_0x15796b]={'start':_0x16108f,'tapeItem':_0x4a05fa[_0x3f6ad4],'userId':_0x2b056f,'type':_0x15796b}),_0x1acd9e[_0x15796b]&&_0x236181&&(_0x3530('0xa2')!==_0x4a05fa[_0x3f6ad4]['type']||_0x515b17&&_0x515b17[_0x3530('0x11f')]===_0x2b056f||_0x1d5278[_0x15796b][_0x3530('0x1e')]({'userId':_0x2b056f,'object':_0x4a05fa[_0x3f6ad4]['item'],'change':_0x1acd9e[_0x15796b]}),_0x3530('0x47')===_0x4a05fa[_0x3f6ad4][_0x3530('0x24')]&&_0x515b17&&_0x515b17[_0x3530('0xea')]===_0x4a05fa[_0x3f6ad4][_0x3530('0x1a')]&&(_0x1d5278[_0x15796b][_0x3530('0xa5')](),_0x1acd9e[_0x15796b]=_0x515b17[_0x3530('0x11e')])),_0x1acd9e[_0x15796b]&&_0x5e7e6e&&(_0x1acd9e[_0x15796b]['end']=_0x5e9420,_0x36afe4(_0x1acd9e[_0x15796b]),_0x1acd9e[_0x15796b]=null);}function _0x36afe4({start:_0x3ca2f0,end:_0x3f6143,tapeItem:_0x3988f2,userId:_0x4ff057,type:_0x2740ce}){const _0x5961b4=_0x3988f2[_0x3530('0x1a')],_0x5abb0b=_0x2a8330[_0x3530('0x10c')][_0x3530('0xcf')](_0x5961b4)&&!_0x2a8330[_0x3530('0x10c')]['isLimit'](_0x5961b4),_0x1bc9f4=_0x3ca2f0[_0x3530('0x110')]==_0x3f6143['parent']&&_0x3f6143['isAtStart'];if(_0x5abb0b&&_0x1bc9f4)return;const _0x5ee027=_0x2a8330['createRange'](_0x3ca2f0,_0x3f6143),_0xc89338=_0x46f3e1[_0x3530('0xc2')](_0x4ff057),_0x520f49=new _0x793295({'author':_0xc89338,'type':_0x3530('0x13')==_0x2740ce||_0x3530('0xef')==_0x2740ce?'add':_0x3530('0x9c'),'data':{'isSuggestion':_0x3530('0xef')==_0x2740ce||_0x3530('0xa1')==_0x2740ce},'createdAt':new Date(),'rootName':_0x5bdd82});_0x1146ed[_0x3530('0x29')](_0x520f49),_0x5b5955['markers'][_0x3530('0x6a')](_0x3530('0x8a')+_0x520f49['id'],_0x5ee027);}function _0x377393(_0x4eba6f,_0x35ae63){const _0x161f1d=_0x4eba6f['getAttributes'](),_0x3c9696=_0x35ae63[_0x3530('0x41')]();for(const _0x4c1d40 of _0x161f1d){if(_0x4c1d40[0x1]!==_0x35ae63['getAttribute'](_0x4c1d40[0x0]))return!0x1;_0x3c9696[_0x3530('0xc6')]();}return _0x3c9696[_0x3530('0xc6')]()[_0x3530('0x45')];}}[_0x3530('0xb5')](){this[_0x3530('0xa0')][_0x3530('0x102')][_0x3530('0x4c')](_0x3530('0x7'))[_0x3530('0x88')]({'view':_0x3530('0x54')}),this[_0x3530('0xa0')][_0x3530('0x102')]['for'](_0x3530('0xa4'))['markerToHighlight']({'model':_0x3530('0x54'),'view':_0x5ef9ff=>{const _0xf83308=_0x5ef9ff['markerName'][_0x3530('0x89')](':')[0x1],_0x1ffc10=this[_0x3530('0xf3')](_0xf83308);if(!_0x1ffc10)return null;const _0x273120=_0x3530('0xf2')==_0x1ffc10['type']?_0x3530('0x55'):_0x3530('0x3a'),_0x2b4304=[_0x3530('0x5c'),_0x3530('0x93')+_0x273120];return _0x1ffc10[_0x3530('0x19')][_0x3530('0x3b')]&&_0x2b4304[_0x3530('0x29')](_0x3530('0x93')+_0x273120+_0x3530('0x52')),this[_0x3530('0x117')]==_0x1ffc10&&_0x2b4304[_0x3530('0x29')](_0x3530('0xbc')),{'classes':_0x2b4304,'attributes':{'data-change-id':_0xf83308}};}}),this[_0x3530('0xa0')][_0x3530('0x102')][_0x3530('0x4c')](_0x3530('0x7'))[_0x3530('0xf2')](_0xf0fb3f=>{_0xf0fb3f['on'](_0x3530('0x27'),(_0x5dc271,_0x43a8fa,_0x310b3e)=>{const _0x30f6c3=_0x43a8fa[_0x3530('0x70')][_0x3530('0x72')](0x0);if(!_0x30f6c3||!_0x30f6c3['is'](_0x3530('0x60'),_0x3530('0x85')))return;if(!_0x310b3e[_0x3530('0xbe')]['consume'](_0x30f6c3,{'attributes':[_0x3530('0x7e'),_0x3530('0x95')]}))return;const _0x187c8c=_0x43a8fa['modelRange']['start']['nodeAfter'];_0x310b3e['writer'][_0x3530('0xf1')](_0x3530('0x7e'),_0x30f6c3['getAttribute'](_0x3530('0x7e')),_0x187c8c),_0x310b3e[_0x3530('0xf')]['setAttribute'](_0x3530('0x95'),_0x30f6c3['getAttribute'](_0x3530('0x95')),_0x187c8c);},{'priority':_0x3530('0xe')});}),this['editor'][_0x3530('0x102')]['for'](_0x3530('0x7'))['add'](_0x1c9093=>{_0x1c9093['on'](_0x3530('0x60'),(_0x30a19f,_0x21f578,_0x2e3912)=>{if(!_0x2e3912['consumable'][_0x3530('0x4a')](_0x21f578[_0x3530('0x70')],{'attributes':['vid_start',_0x3530('0x95')]}))return;if(_0x21f578['modelRange'][_0x3530('0xe3')])return;const _0x416b1b=_0x21f578[_0x3530('0x6f')][_0x3530('0xd2')][_0x3530('0x110')];_0x416b1b[_0x3530('0x8c')]('vid_start')||_0x416b1b[_0x3530('0x8c')]('vid')||(_0x2e3912[_0x3530('0xf')][_0x3530('0xf1')](_0x3530('0x7e'),_0x21f578[_0x3530('0x70')][_0x3530('0xe0')](_0x3530('0x7e')),_0x416b1b),_0x2e3912[_0x3530('0xf')][_0x3530('0xf1')]('vid_end',_0x21f578[_0x3530('0x70')][_0x3530('0xe0')]('vid_end'),_0x416b1b));},{'priority':_0x3530('0xe')});}),this[_0x3530('0xa0')][_0x3530('0x102')]['for'](_0x3530('0x7'))[_0x3530('0x101')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x350b36=>_0x350b36[_0x3530('0xe0')](_0x3530('0xc4'))}}),this['editor'][_0x3530('0x3f')]['schema']['on'](_0x3530('0x81'),(_0x1d136c,[,_0x54a56b])=>{[_0x3530('0x7e'),'vid_end',_0x3530('0xc4')][_0x3530('0x4')](_0x54a56b)&&(_0x1d136c[_0x3530('0xfd')]=!0x0,_0x1d136c[_0x3530('0x31')]());},{'priority':'highest'}),this[_0x3530('0xa0')][_0x3530('0x102')][_0x3530('0x4c')](_0x3530('0x49'))[_0x3530('0xf2')](_0x4782ca=>{_0x4782ca['on']('attribute:vid',(_0x21111d,_0xccfdb2,_0x14692b)=>{if('\x20'!=_0xccfdb2[_0x3530('0x1a')][_0x3530('0x19')]||_0xccfdb2['item'][_0x3530('0xa8')][_0x3530('0x30')]>0x1)return;if(!_0x14692b['consumable']['consume'](_0xccfdb2[_0x3530('0x1a')],_0x21111d[_0x3530('0xd5')]))return;const _0x4333dd=_0x14692b['writer'],_0x1fd5e8=_0x14692b[_0x3530('0xeb')][_0x3530('0x74')](_0xccfdb2['range']);_0x4333dd[_0x3530('0x113')](_0x1fd5e8,_0x4333dd[_0x3530('0x11a')]('span'));});}),this[_0x3530('0xa0')]['conversion']['for'](_0x3530('0x49'))[_0x3530('0x116')]({'model':_0x3530('0x54')}),this['editor'][_0x3530('0xb6')][_0x3530('0x2e')]['on'](_0x3530('0xe6'),function(_0xb8fde7){const _0x5cf19f=_0xb8fde7['plugins'][_0x3530('0xc2')]('RevisionViewer');return(_0x535ea7,_0x475239,_0x2caf52)=>{const _0x3775a4=_0x475239[_0x3530('0x5f')][_0x3530('0x89')](':')[0x1],_0x4305ee=_0x5cf19f[_0x3530('0xf3')](_0x3775a4);if(!_0x4305ee)return null;const _0x2ba6e5='add'==_0x4305ee[_0x3530('0x24')]?_0x3530('0x89'):_0x3530('0xff');if(!_0x2caf52['consumable'][_0x3530('0x4e')](_0x475239['markerRange'],_0x535ea7['name']))return;const _0x22f64f=_0x475239[_0x3530('0x53')][_0x3530('0x99')](),_0x2ae8f4=_0x475239[_0x3530('0x53')][_0x3530('0xd2')],_0x1be173=_0xb8fde7[_0x3530('0x3f')][_0x3530('0x10c')];let _0x437355=null,_0x5f53bc=null,_0x144006=!0x1,_0x2454f8=!0x1;for(const _0x344063 of _0x22f64f){const _0xe69e3c=_0x344063['item'];_0x144006=_0x144006||_0x1be173['isContent'](_0xe69e3c);const _0x5eb0f7=_0x2caf52['mapper'][_0x3530('0xd1')](_0xe69e3c);if(_0x5eb0f7&&_0x5eb0f7[_0x3530('0xee')](_0x3530('0xd9')))return;_0x3530('0x47')==_0x344063[_0x3530('0x24')]&&(_0x1be173[_0x3530('0xcf')](_0xe69e3c)&&!_0x1be173['isLimit'](_0xe69e3c)&&(_0xe69e3c[_0x3530('0x36')]||_0x2ae8f4[_0x3530('0x105')]?_0x437355&&_0x437355['parent']==_0xe69e3c||(_0x437355=_0xe69e3c,_0x57ba87(_0x344063[_0x3530('0x22')]),_0x2454f8=!0x0):_0x5f53bc=_0x5f53bc||_0x344063[_0x3530('0x22')]));}function _0x57ba87(_0x1f772b){const _0x1ad502=_0x2caf52[_0x3530('0xf')][_0x3530('0xb3')]('span',{'class':'ck-suggestion-marker-'+_0x2ba6e5}),_0x26f98d=_0x2caf52[_0x3530('0xeb')]['toViewPosition'](_0x1f772b);_0x4305ee[_0x3530('0x19')]['isSuggestion']&&_0x2caf52[_0x3530('0xf')][_0x3530('0x42')](_0x3530('0x93')+_0x2ba6e5+_0x3530('0x52'),_0x1ad502),_0x5cf19f[_0x3530('0x117')]==_0x4305ee&&_0x2caf52[_0x3530('0xf')][_0x3530('0x42')](_0x3530('0xbc'),_0x1ad502),_0x2caf52['writer']['insert'](_0x26f98d,_0x1ad502),_0x2caf52[_0x3530('0xeb')][_0x3530('0x78')](_0x1ad502,_0x475239[_0x3530('0x5f')]);}_0x144006||_0x2454f8||!_0x5f53bc||_0x57ba87(_0x5f53bc);};}(this['editor']),{'priority':_0x3530('0x59')}),this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2e')]['on']('removeMarker:revision',(_0x1d8d99,_0x441097,_0x4fb7ff)=>{const _0xd3c2bd=_0x4fb7ff[_0x3530('0xeb')][_0x3530('0x56')](_0x441097[_0x3530('0x5f')]);if(_0xd3c2bd)for(const _0x2ea36b of _0xd3c2bd)(_0x2ea36b[_0x3530('0x1d')](_0x3530('0x6'))||_0x2ea36b['hasClass'](_0x3530('0x15')))&&(_0x4fb7ff[_0x3530('0xeb')]['unbindElementFromMarkerName'](_0x2ea36b,_0x441097[_0x3530('0x5f')]),_0x4fb7ff[_0x3530('0xf')][_0x3530('0x9c')](_0x2ea36b));},{'priority':_0x3530('0x59')}),this[_0x3530('0xa0')][_0x3530('0xb6')]['downcastDispatcher']['on']('addMarker:revision',(_0x2b2399,_0x587f43,_0x42d5ad)=>{const _0x440e12=_0x587f43[_0x3530('0x5f')][_0x3530('0x89')](':')[0x1],_0x4a3c65=this[_0x3530('0xf3')](_0x440e12);if(!_0x4a3c65)return null;const _0x25fde9=_0x3530('0xf2')==_0x4a3c65[_0x3530('0x24')]?_0x3530('0x89'):_0x3530('0xff');if(_0x42d5ad['consumable'][_0x3530('0x4e')](_0x587f43['markerRange'],_0x2b2399[_0x3530('0xd5')]))for(const _0x1a466e of _0x587f43[_0x3530('0x53')]['getItems']()){if(!_0x1a466e['is'](_0x3530('0x60'),_0x3530('0x2c')))continue;const _0x1de424=_0x42d5ad[_0x3530('0xf')][_0x3530('0xb3')]('span',{'class':_0x3530('0x93')+_0x25fde9}),_0x3150e0=_0x42d5ad['mapper'][_0x3530('0x108')](this['editor'][_0x3530('0x3f')]['createPositionBefore'](_0x1a466e));_0x4a3c65[_0x3530('0x19')][_0x3530('0x3b')]&&_0x42d5ad['writer'][_0x3530('0x42')](_0x3530('0x93')+_0x25fde9+_0x3530('0x52'),_0x1de424),this[_0x3530('0x117')]==_0x4a3c65&&_0x42d5ad['writer']['addClass'](_0x3530('0xbc'),_0x1de424),_0x42d5ad[_0x3530('0xf')]['insert'](_0x3150e0,_0x1de424),_0x42d5ad[_0x3530('0xeb')][_0x3530('0x78')](_0x1de424,_0x587f43[_0x3530('0x5f')]);}},{'priority':_0x3530('0x59')}),this['editor']['model'][_0x3530('0xdf')]['on'](_0x3530('0x11e'),()=>{this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')][_0x3530('0x11e')](_0x283757=>{for(const _0xbb9966 of this['editor'][_0x3530('0x3f')][_0x3530('0xdf')][_0x3530('0x103')]()){const _0x40cb6c=this['editor'][_0x3530('0x3f')][_0x3530('0xdf')]['getRoot'](_0xbb9966),_0x396400=this[_0x3530('0xa0')][_0x3530('0xb6')]['view'][_0x3530('0xdf')]['getRoot'](_0xbb9966);if(_0x396400){const _0x384a30=_0x40cb6c[_0x3530('0xe0')]('revisionHistoryAttachChange');if(_0x283757['removeAttribute']('data-change-id',_0x396400),_0x283757['removeClass'](_0x3530('0xc9'),_0x396400),_0x283757[_0x3530('0x25')]('ck-revision-history-root-remove',_0x396400),_0x283757['removeClass'](_0x3530('0x10a'),_0x396400),_0x384a30){const _0x5aeceb=this[_0x3530('0xf3')](_0x384a30);if(!_0x5aeceb)return null;_0x283757[_0x3530('0xf1')]('data-change-id',_0x384a30,_0x396400),_0x283757[_0x3530('0x42')](_0x3530('0x6b')+_0x5aeceb[_0x3530('0x24')],_0x396400),this[_0x3530('0x117')]==_0x5aeceb&&_0x283757[_0x3530('0x42')]('ck-revision-history-root--active',_0x396400);}}}});}),this[_0x3530('0xa0')][_0x3530('0x102')]['for'](_0x3530('0x7'))[_0x3530('0x88')]({'view':'comment','model':_0x54feae=>_0x3530('0xf6')+_0x54feae,'converterPriority':_0x3530('0xe8')}),this['editor'][_0x3530('0x102')]['for']('upcast')[_0x3530('0x88')]({'view':_0x3530('0x64'),'model':_0x457601=>_0x3530('0xbd')+_0x457601,'converterPriority':_0x3530('0xe8')}),this[_0x3530('0xa0')][_0x3530('0x102')]['for'](_0x3530('0x49'))[_0x3530('0x116')]({'model':'revision-suggestion','view':_0x346fa9=>({'name':_0x3530('0x2b')+_0x346fa9,'group':_0x3530('0x16')}),'converterPriority':_0x3530('0xe8')}),this[_0x3530('0xa0')][_0x3530('0x102')][_0x3530('0x4c')](_0x3530('0xa4'))['markerToHighlight']({'model':_0x3530('0x16'),'view':_0x28c2f9=>{const _0x49663b=_0x28c2f9[_0x3530('0x5f')][_0x3530('0x89')](':')[0x1];return _0x3530('0x55')!=_0x49663b&&_0x3530('0x3a')!=_0x49663b?null:{'classes':['ck-suggestion-preview-marker',_0x3530('0x73')+_0x49663b]};}}),this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2e')]['on'](_0x3530('0x114'),et(this[_0x3530('0xa0')],_0x3530('0xff')),{'priority':_0x3530('0x59')}),this[_0x3530('0xa0')][_0x3530('0xb6')]['downcastDispatcher']['on'](_0x3530('0xf8'),et(this[_0x3530('0xa0')],_0x3530('0x89')),{'priority':'high'}),this['editor'][_0x3530('0xb6')][_0x3530('0x2e')]['on'](_0x3530('0x112'),(_0x145525,_0x389637,_0x44dc22)=>{const _0x354e63=_0x44dc22[_0x3530('0xeb')][_0x3530('0x56')](_0x389637[_0x3530('0x5f')]);if(_0x354e63)for(const _0x5ec3e1 of _0x354e63)_0x5ec3e1['is'](_0x3530('0x23'))&&(_0x44dc22['mapper'][_0x3530('0xf0')](_0x5ec3e1,_0x389637[_0x3530('0x5f')]),_0x44dc22[_0x3530('0xf')][_0x3530('0x9c')](_0x5ec3e1));},{'priority':'high'});}['_getChangeFromId'](_0x28d880){return this[_0x3530('0xc3')][_0x3530('0xc2')](_0x28d880);}[_0x3530('0xf4')](_0x5ebd09){return this[_0x3530('0xab')]&&this['_changeView'][_0x3530('0x104')](),this['_changeView']=new _0x4de4eb(this[_0x3530('0xa0')]['locale'],_0x5ebd09),this['_changeView'];}['_initInteractions'](){this['editor']['model'][_0x3530('0xdf')][_0x3530('0x9b')]['observeMarkers'](_0x3530('0x54')),this['on']('change:activeView',(_0x236b1f,_0x1c22b0,_0x35d372,_0x2a2ea9)=>{_0x2a2ea9&&this[_0x3530('0xb1')][_0x3530('0x9c')](_0x2a2ea9),_0x35d372&&(this[_0x3530('0xb1')][_0x3530('0xf2')]({'view':_0x35d372,'stackId':_0x3530('0xfa'),'position':{'target':()=>{const _0x1cbc30=this[_0x3530('0xa0')][_0x3530('0xb6')],_0x5a5bc1=this['_getChangeFromId'](_0x35d372[_0x3530('0x20')]);let _0x35724b;if(_0x5a5bc1[_0x3530('0x19')][_0x3530('0xbf')]){const _0xf8a75=_0x1cbc30[_0x3530('0x2d')][_0x3530('0x84')](_0x5a5bc1[_0x3530('0x40')]);_0x35724b=Array['from'](_0xf8a75[_0x3530('0x120')]());}else{const _0x120eb7=this[_0x3530('0xa0')][_0x3530('0x3f')]['markers'][_0x3530('0xc2')]('revision:'+_0x35d372['changeId']);_0x35724b=Array[_0x3530('0x14')](_0x1cbc30['mapper'][_0x3530('0x56')](_0x120eb7[_0x3530('0xd5')]))['map'](_0x341e7f=>_0x1cbc30[_0x3530('0x2d')][_0x3530('0x21')]['mapViewToDom'](_0x341e7f))[_0x3530('0x1')](_0x413a05=>Array[_0x3530('0x14')](_0x413a05[_0x3530('0x120')]()))['flat']();}if(!this['_activeViewTarget'])return _0x35724b[0x0];return _0x35724b[_0x3530('0xd3')](_0x2f43cc=>_0x2f43cc[_0x3530('0xaf')]-0x3<=this[_0x3530('0x11')]['y']&&_0x2f43cc['bottom']+0x3>=this[_0x3530('0x11')]['y']&&_0x2f43cc[_0x3530('0xfe')]-0x3<=this[_0x3530('0x11')]['x']&&_0x2f43cc[_0x3530('0x10b')]+0x3>=this[_0x3530('0x11')]['x'])||_0x35724b[0x0];}}}),this[_0x3530('0xb1')][_0x3530('0x80')](_0x3530('0xfa')));}),this['on'](_0x3530('0x28'),(_0x520e2f,_0x309680,_0x2d820b,_0xc6083)=>{this['activeView']=_0x2d820b?this[_0x3530('0xf4')](_0x2d820b):null,this[_0x3530('0xa0')][_0x3530('0x3f')]['change'](()=>{const _0x21ce49=this['editor'][_0x3530('0xb6')];_0xc6083&&(_0xc6083[_0x3530('0x19')][_0x3530('0xbf')]?_0x21ce49[_0x3530('0x2d')][_0x3530('0x11e')](_0x5ec1b5=>{_0x5ec1b5[_0x3530('0x25')]('ck-revision-history-root--active',_0x21ce49[_0x3530('0x2d')][_0x3530('0xdf')][_0x3530('0xe5')](_0xc6083[_0x3530('0x40')]));}):_0x21ce49[_0x3530('0x6e')](_0x3530('0x8a')+_0xc6083['id'])),_0x2d820b&&(_0x2d820b[_0x3530('0x19')][_0x3530('0xbf')]?_0x21ce49[_0x3530('0x2d')][_0x3530('0x11e')](_0xb4e3f7=>{_0xb4e3f7[_0x3530('0x42')](_0x3530('0x10a'),_0x21ce49['view']['document'][_0x3530('0xe5')](_0x2d820b[_0x3530('0x40')]));}):_0x21ce49['reconvertMarker'](_0x3530('0x8a')+_0x2d820b['id']));});}),this[_0x3530('0xba')](this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')]['document'],_0x3530('0x7c'),(_0x265a4c,_0x543d58)=>{if(this[_0x3530('0x117')])return;const _0x7dcbcd=this[_0x3530('0x17')](_0x543d58['target']),_0x2198f9=this[_0x3530('0xc3')][_0x3530('0xc2')](_0x7dcbcd);_0x2198f9?(this[_0x3530('0x11')]={'x':_0x543d58['domEvent']['x'],'y':_0x543d58['domEvent']['y']},this['activeView']=this[_0x3530('0xf4')](_0x2198f9)):(this[_0x3530('0x11')]=null,this[_0x3530('0x96')]=null);}),this['listenTo'](this['editor'][_0x3530('0xb6')]['view'][_0x3530('0xdf')],_0x3530('0xd6'),(_0x443135,_0x328c2d)=>{const _0x21f942=this['_findChangeIdFromDomTarget'](_0x328c2d[_0x3530('0x39')]),_0x4a2bac=this['_changeIdToChange'][_0x3530('0xc2')](_0x21f942);_0x4a2bac?(this[_0x3530('0x11')]={'x':_0x328c2d[_0x3530('0xb8')]['x'],'y':_0x328c2d['domEvent']['y']},_0x4a2bac===this['activeChange']?this[_0x3530('0xb1')]['updatePosition']():this[_0x3530('0x117')]=_0x4a2bac):(this[_0x3530('0x11')]=null,this[_0x3530('0x117')]=null);});}['_findChangeIdFromDomTarget'](_0x2ab6de){do{const _0x42c67a=_0x2ab6de[_0x3530('0xe0')]('data-change-id');if(_0x42c67a)return _0x42c67a;_0x2ab6de=_0x2ab6de['parent'];}while(_0x2ab6de);return null;}[_0x3530('0x57')](){this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0x11e')](_0xfbc2dc=>{for(const _0x338e2f of this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0x107')])_0xfbc2dc[_0x3530('0x118')](_0x338e2f);});}}function et(_0x404b22,_0x29f2df){return(_0x1de3c5,_0x49fc57,_0x4af3d0)=>{if(!_0x4af3d0[_0x3530('0xbe')][_0x3530('0x4e')](_0x49fc57[_0x3530('0x53')],_0x1de3c5['name']))return;const _0x5f559a=_0x49fc57[_0x3530('0x53')][_0x3530('0x99')](),_0x412c25=_0x49fc57['markerRange'][_0x3530('0xd2')],_0x4fcc46=_0x404b22[_0x3530('0x3f')][_0x3530('0x10c')];let _0x2b4713=null,_0x3d0d62=null,_0x202346=!0x1,_0x196fad=!0x1;for(const _0x381f91 of _0x5f559a){const _0x5bf403=_0x381f91['item'];_0x202346=_0x202346||_0x4fcc46[_0x3530('0x3c')](_0x5bf403);const _0x4270e7=_0x4af3d0[_0x3530('0xeb')]['toViewElement'](_0x5bf403);if(_0x4270e7&&_0x4270e7['getCustomProperty'](_0x3530('0xd9')))return;_0x3530('0x47')==_0x381f91[_0x3530('0x24')]&&(_0x4fcc46['isBlock'](_0x5bf403)&&!_0x4fcc46[_0x3530('0x6d')](_0x5bf403)&&(_0x5bf403['nextSibling']||_0x412c25[_0x3530('0x105')]?_0x2b4713&&_0x2b4713['parent']==_0x5bf403||(_0x2b4713=_0x5bf403,_0x34c587(_0x381f91[_0x3530('0x22')]),_0x196fad=!0x0):_0x3d0d62=_0x3d0d62||_0x381f91['previousPosition']));}function _0x34c587(_0x1940c8){const _0x120604=_0x4af3d0[_0x3530('0xeb')][_0x3530('0x108')](_0x1940c8),_0x3a4013=_0x4af3d0[_0x3530('0xf')][_0x3530('0xb3')](_0x3530('0x61'),{'class':_0x3530('0x73')+_0x29f2df});_0x4af3d0['writer'][_0x3530('0x7f')](_0x120604,_0x3a4013),_0x4af3d0['mapper']['bindElementToMarker'](_0x3a4013,_0x49fc57['markerName']);}_0x202346||_0x196fad||!_0x3d0d62||_0x34c587(_0x3d0d62);};}export class RestoreRevisionCommand extends _0x346961{constructor(_0x5cba7a){super(_0x5cba7a);const _0xa6bc1c=_0x5cba7a[_0x3530('0x97')][_0x3530('0xc2')](d);this[_0x3530('0xfc')]=!0x1,this[_0x3530('0xba')](_0xa6bc1c,_0x3530('0x9f'),()=>this['refresh']()),this[_0x3530('0xba')](_0xa6bc1c,_0x3530('0xed'),()=>this[_0x3530('0x33')]());}[_0x3530('0x76')](){const _0x54a93b=this[_0x3530('0xa0')],_0x80ef95=_0x54a93b[_0x3530('0x97')][_0x3530('0xc2')](d),_0x1ac6fe=_0x80ef95[_0x3530('0xcd')]?_0x80ef95['diff'][_0x3530('0xc5')]:null;_0x54a93b[_0x3530('0x3e')][_0x3530('0xc2')](_0x3530('0x5e'))['restoreRevisionCallback'](_0x1ac6fe);}['refresh'](){const {isReady:_0x100647,isEnabled:_0x3a3ae0}=this[_0x3530('0xa0')][_0x3530('0x97')][_0x3530('0xc2')](d);this[_0x3530('0xdb')]=_0x100647&&_0x3a3ae0;}}export class ShowChangeCommand extends _0x346961{constructor(_0x432a0c,{direction:_0x3d2597}){super(_0x432a0c);const _0x47c04f=_0x432a0c[_0x3530('0x97')]['get'](d);this[_0x3530('0xfc')]=!0x1,this[_0x3530('0x8f')]=_0x3530('0x3')===_0x3d2597?0x1:-0x1,this[_0x3530('0xba')](_0x47c04f,_0x3530('0x9f'),()=>this[_0x3530('0x33')]()),this['listenTo'](_0x47c04f,_0x3530('0xed'),()=>this[_0x3530('0x33')]()),this['listenTo'](_0x47c04f,_0x3530('0x28'),()=>this[_0x3530('0x33')]());}[_0x3530('0x76')](){const _0x11a523=this[_0x3530('0xa0')],_0x1e0dad=_0x11a523[_0x3530('0x97')][_0x3530('0xc2')](d),{isNavigationMode:_0x5cd7e1,currentChangeNumber:_0x5b69f0}=_0x1e0dad;let _0x1b8231;if(_0x1e0dad[_0x3530('0x117')]=_0x5cd7e1?_0x1e0dad[_0x3530('0x86')][_0x3530('0x1f')][_0x3530('0xc2')](_0x5b69f0+this[_0x3530('0x8f')]):_0x1e0dad[_0x3530('0x86')][_0x3530('0x1f')][_0x3530('0xa6')],_0x1e0dad['activeChange'][_0x3530('0x19')]['isOnRoot'])_0x1b8231=_0x11a523['editing']['view'][_0x3530('0x84')](_0x1e0dad[_0x3530('0x117')]['rootName']);else{const _0x289570=_0x11a523[_0x3530('0x3f')][_0x3530('0x107')][_0x3530('0xc2')](_0x3530('0x8a')+_0x1e0dad['activeChange']['id']);_0x1b8231=_0x4630dd(_0x11a523[_0x3530('0xb6')],_0x289570);}_0x11d83f({'target':_0x1b8231,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1c0bfc,currentChangeNumber:_0x3ddc1f,numberOfChanges:_0x57efa3,isReady:_0x441a42,isEnabled:_0x37b866}=this['editor']['plugins'][_0x3530('0xc2')](d);this['isEnabled']=!!(_0x37b866&&_0x441a42&&_0x57efa3)&&(!_0x1c0bfc||(0x1===this[_0x3530('0x8f')]?_0x3ddc1f<_0x57efa3-0x1:_0x3ddc1f>0x0));}}
|
|
23
|
+
const _0x5b97=['change:isReady','string','getCustomProperty','isSuggestion','merge','level','addHighlight','name','comment','RevisionViewer','_fixObsoleteTags','ck-editor__editable__overlay','getRootNames','getRoot','left','index','length','mousedown','editor','newRevisionId','shift','markersStart','toData','enableReadOnlyMode','getAttribute','change:numberOfChanges','_getRevisionsRange','then','text','_markSuggestions','_getChangeFromId','attributesAfter','activeView','addClass','span','end','get','revisionHistoryAttachChange','useFillerType','markerToData','abs','revisionHistory','_setConversion','isAttached','ck-revision-history-root-remove','split','authors','_changeView','isOnRoot','_getViewForChange','slice','clear','showPreviousChange','_makeTape','sort','markerNameToElements','parent','activeChange','upcast','repository','unbindElementFromMarkerName','elementToAttribute','deletion','distance','bindElementToMarker','_processTape','start','add','viewItem','refresh','showStack','_step','isRemoveSuggestion','conversion','maxOffset','code','revision-viewer','view','change','getAttributes','target','createUIElement','nodeAfter','revision-suggestion','RevisionsRepository','schema','flat','domEvent','_setDistance','push','isRemoved','ck-revision-history-root-add','default','nextPosition','toViewElement','insertion','_joinTapes','dataToMarker','locale','markerToHighlight','filter','isNavigationMode','removeMarker:revision','isContent','offsetSize','_markMarkers','consume','suggestion:','return','isEnabled','createAttributeElement','downcastDispatcher','delete','isAtEnd','revision-comment:','_removeRevisionMarkers','detachRoot','model','forceDisabled','revision','isBefore','attribute:vid','createPositionBefore','getWalker','createPositionFromPath','adapter','insert','listenTo','removeMarker','writer','_cleanUp','_sortAndFilterDiffChanges','_removeMissingPairs','side','right','pairId','oldRevisionId','rootName','_data','_appendChild','object','markerName','set','vid_start','wrap','hasAttribute','loadRevisionData','error','createRevision','getClientRects','resolve','currentChangeNumber','ck-revision-history-root--active','diff','isBlock','find','endIndex','softBreak','affectsData','isCollapsed','getDomRoot','restoreRevisionCallback','remove','deletions','revisionHistoryLabel','_removeUnsupportedChanges','addMarker:revision','compare','ck-suggestion-preview-marker-','-new','mapper','dataDowncast','_threeWayMerge','plugins','getRevisionData','element','vid','startsWith','vid_end','showNextChange','isLimit','forEach','change:isEnabled','changes','_getViewObj','ck-suggestion-marker--active','data','toViewPosition','elementStart','_findChangeIdFromDomTarget','has','parse','item','revision-end','attributesBefore','userId','_refreshStartEndIndex','pop','done','isReady','high','isAdded','indexOf','forward','restoreRevision','highest','_setChanges','init','isAddSuggestion','catch','createRange','suggestion','ck-suggestion-preview-marker','isAfter','_getDiff','next','findIndex','markersEnd','change:activeChange','for','getRevisionRootsAttributes','hasClass','editing','requires','selection','roots','children','getIndex','domConverter','processor','markerRange','changeId','concat','getChild','config','document','enqueueChange','addRevision','splice','startIndex','insertions','_initInteractions','toViewRange','ck-suggestion-marker-merge','data-change-id','reconvertMarker','attachChange','destroy','pluginName','test','modelRange','_changeIdToChange','ck-suggestion-marker-split','nextSibling','markers','POSITIVE_INFINITY','_cleanMarkers','mouseover','setAttribute','keys','elementEnd','from','isInline','getRevision','isObject','ck-suggestion-marker-','_makeModelFromTape','low','previousPosition','_balloon','consumable','execute','diffData','WidgetToolbarRepository','data-revision-','_update','removeClass','addMarker:revision-suggestion:deletion','isEqual','map','toModel','type','isIncorrect','all','element:pre','uiElement','revision-suggestion:','_activeViewTarget','unshift','removeMarker:revision-suggestion','revision:','addMarker:revision-suggestion:insertion','commands','_makeModelFromViewString','_markInsertions','attributes'];(function(_0x1fd78d,_0x5b9763){const _0x2065e5=function(_0x41439c){while(--_0x41439c){_0x1fd78d['push'](_0x1fd78d['shift']());}};_0x2065e5(++_0x5b9763);}(_0x5b97,0xe9));const _0x2065=function(_0x1fd78d,_0x5b9763){_0x1fd78d=_0x1fd78d-0x0;let _0x2065e5=_0x5b97[_0x1fd78d];return _0x2065e5;};import{Plugin as _0x3afffd,Command as _0x4e6f4e}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x24de7d}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x356a69}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x25d544,Element as _0x5f1470,Text as _0x323b78,ViewDocumentFragment as _0x21d6df,ViewText as _0x2d7f9d,ViewElement as _0x1496d2,ViewContainerElement as _0x1e280a,ViewAttributeElement as _0x2fa9fa,ViewEmptyElement as _0x2fa656,ViewRawElement as _0x4af870,ViewUIElement as _0x306989}from'ckeditor5/src/engine.js';import{Users as _0xebea60,getMarkerDomElement as _0xe0fa1e}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x5e0533 from'./ui/revisionviewer/changedetailsview.js';import _0x2952d6 from'./revisionsrepository.js';import _0x10a5a2 from'./changeitem.js';import{default as _0x375135}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x30e204}from'lodash-es';const tt={'c':_0x1e280a,'a':_0x2fa9fa,'e':_0x2fa656,'r':_0x4af870,'u':_0x306989};export default class d extends _0x3afffd{static get[_0x2065('0xf')](){return _0x2065('0x48');}static get[_0x2065('0x11e')](){return[_0xebea60,_0x356a69,_0x2952d6];}constructor(_0x20f2dc){super(_0x20f2dc),this[_0x2065('0x7a')]=this['editor']['plugins']['get'](_0x2065('0x93')),this[_0x2065('0xcd')](_0x2065('0x78'),null),this[_0x2065('0xcd')](_0x2065('0x5f'),null),this[_0x2065('0x36')]=null,this[_0x2065('0xcd')](_0x2065('0xd8'),null),this[_0x2065('0xcd')](_0x2065('0x106'),!0x1),this['set'](_0x2065('0xac'),!0x0),this['on'](_0x2065('0xf5'),(_0x4ce8ff,_0x4f2632,_0x216e4a)=>{this[_0x2065('0x78')]=null,this['activeView']=null,this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0x8c')][_0x2065('0x8d')](_0x5bfeea=>{for(const _0x5cf882 of this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0x8c')]['document'][_0x2065('0x120')])_0x216e4a?_0x5bfeea[_0x2065('0x2b')](_0x2065('0x4a'),_0x5cf882):_0x5bfeea['addClass']('ck-editor__editable__overlay',_0x5cf882);});}),this['bind'](_0x2065('0xa4'))['to'](this,_0x2065('0x78'),_0x26500b=>null!==_0x26500b),this['bind'](_0x2065('0xd6'))['to'](this,_0x2065('0x106'),this,_0x2065('0xd8'),this,'activeChange',(_0x13445a,_0x223ef1,_0x5dca3a)=>_0x13445a&&_0x5dca3a?_0x223ef1['changes']['getIndex'](_0x5dca3a):0x0),this['bind']('numberOfChanges')['to'](this,_0x2065('0x106'),this,_0x2065('0xd8'),(_0x17d79c,_0x465f5f)=>_0x17d79c?_0x465f5f[_0x2065('0xf6')][_0x2065('0x4f')]:0x0),this['_changeView']=null,this[_0x2065('0x12')]=new Map(),this[_0x2065('0xbc')]=null,this[_0x2065('0x24')]=this[_0x2065('0x51')]['plugins'][_0x2065('0x63')](_0x356a69);}[_0x2065('0x10e')](){const _0x1f74a8=this[_0x2065('0x51')],_0x13cd3f=new ShowChangeCommand(_0x1f74a8,{'direction':'backward'}),_0x2d0785=new ShowChangeCommand(_0x1f74a8,{'direction':_0x2065('0x10a')});(_0x1f74a8[_0x2065('0x3b')][_0x2065('0x82')](_0x2065('0x73'),_0x13cd3f),_0x1f74a8[_0x2065('0x3b')]['add'](_0x2065('0xf2'),_0x2d0785),_0x1f74a8[_0x2065('0x3b')][_0x2065('0x82')](_0x2065('0x10b'),new RestoreRevisionCommand(_0x1f74a8)),this['on'](_0x2065('0x58'),()=>{_0x13cd3f[_0x2065('0x84')](),_0x2d0785['refresh']();}),this[_0x2065('0x69')](),this[_0x2065('0x8')](),_0x1f74a8[_0x2065('0x56')](_0x2065('0x8b')),_0x1f74a8[_0x2065('0xec')]['has'](_0x2065('0x28')))&&_0x1f74a8[_0x2065('0xec')][_0x2065('0x63')](_0x2065('0x28'))[_0x2065('0xb5')](_0x2065('0x8b'));}async[_0x2065('0xed')](_0x181528){await this[_0x2065('0xd1')](_0x181528);const _0x294d8c={};for(const _0x50b1ca in _0x181528[_0x2065('0x27')]){if(_0x181528[_0x2065('0x27')][_0x50b1ca][_0x2065('0xd')]&&!_0x181528['diffData'][_0x50b1ca]['attachChange'][_0x2065('0x6a')])continue;const _0x216b73=this[_0x2065('0xb2')](JSON[_0x2065('0xfe')](_0x181528[_0x2065('0x27')][_0x50b1ca]['insertions'])),_0x5e9ef6=this[_0x2065('0x51')][_0x2065('0x11d')]['view'][_0x2065('0x2')],_0x1996c0=new _0x21d6df(_0x5e9ef6,_0x216b73[_0x2065('0x2e')](_0x14f785=>this['_getViewObj'](_0x14f785)));this[_0x2065('0x51')]['data']['processor'][_0x2065('0x65')]('marked'),_0x294d8c[_0x50b1ca]=this[_0x2065('0x51')][_0x2065('0xf9')][_0x2065('0x124')][_0x2065('0x55')](_0x1996c0),this[_0x2065('0x51')][_0x2065('0xf9')][_0x2065('0x124')][_0x2065('0x65')](_0x2065('0x9b'));}return _0x294d8c;}async[_0x2065('0x11b')](_0x4bf02a){await this[_0x2065('0xd1')](_0x4bf02a);const _0x379c2e={};for(const _0xc52086 in _0x4bf02a[_0x2065('0x27')])_0x4bf02a[_0x2065('0x27')][_0xc52086][_0x2065('0xd')]&&!_0x4bf02a['diffData'][_0xc52086]['attachChange'][_0x2065('0x6a')]||(_0x379c2e[_0xc52086]=_0x4bf02a[_0x2065('0x27')][_0xc52086][_0x2065('0x5e')]||{});return _0x379c2e;}['_removeRevisionMarkers'](_0x387d32){return(_0x387d32=_0x387d32[_0x2065('0xa3')](_0xf8f022=>!_0xf8f022[_0x2065('0x46')]||'revision-start'!==_0xf8f022[_0x2065('0x46')]&&_0x2065('0x100')!==_0xf8f022[_0x2065('0x46')]))[_0x2065('0xf4')](_0x4332a1=>{_0x2065('0x40')!=typeof _0x4332a1&&(_0x4332a1['children']=this[_0x2065('0xb2')](_0x4332a1[_0x2065('0x121')]),_0x4332a1[_0x2065('0x3e')]=_0x4332a1['attributes'][_0x2065('0xa3')](_0x3c826b=>!_0x3c826b[0x0][_0x2065('0xf0')](_0x2065('0x29'))));}),_0x387d32;}async[_0x2065('0xe6')](_0x590aa0,_0x2a5d62,_0x33262b=!0x1){if(!this[_0x2065('0xac')])return;const _0x35ad70=this['diff'],_0x1b6302=this[_0x2065('0x7a')],_0x273c55=_0x2065('0x40')==typeof _0x590aa0?_0x1b6302['getRevision'](_0x590aa0):_0x590aa0,_0x501f9b=_0x2065('0x40')==typeof _0x2a5d62?_0x1b6302[_0x2065('0x1e')](_0x2a5d62):_0x2a5d62,_0x483bb2=_0x273c55['id'],_0x333846=_0x501f9b?_0x501f9b['id']:null;if(!_0x33262b&&this[_0x2065('0xd8')]&&this[_0x2065('0xd8')][_0x2065('0x52')]===_0x483bb2&&this['diff'][_0x2065('0xc7')]===_0x333846)return Promise[_0x2065('0xd5')]();this[_0x2065('0x106')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0x2065('0xd8')]=new _0x375135(_0x483bb2,_0x333846);const _0x2907bd=this[_0x2065('0x59')](_0x273c55,_0x501f9b,!0x0)['map'](_0x4a1a1c=>this[_0x2065('0xd1')](_0x4a1a1c));return _0x2907bd[_0x2065('0x98')](new Promise(_0x18fcd7=>{setTimeout(_0x18fcd7,0x14);})),Promise[_0x2065('0x32')](_0x2907bd)[_0x2065('0x5a')](()=>{if(!this[_0x2065('0xac')])return;this['_cleanUp']();const _0x2692d5=this['_getDiff'](_0x483bb2,_0x333846);for(const _0x5f1402 of _0x2692d5[_0x2065('0xf6')])this[_0x2065('0x12')][_0x2065('0xcd')](_0x5f1402['id'],_0x5f1402);this['editor']['model'][_0x2065('0x3')]({'isUndoable':!0x1},_0x267d6a=>{for(const _0x530c18 of this['editor'][_0x2065('0xb4')][_0x2065('0x2')][_0x2065('0x4b')]())_0x267d6a[_0x2065('0xb3')](_0x530c18);for(const _0x29ac41 of Object[_0x2065('0x1a')](_0x2692d5['model'])){const _0x563c06=_0x267d6a['addRoot'](_0x29ac41);for(const _0x3814fa of Object['keys'](_0x2692d5[_0x2065('0x3e')][_0x29ac41]))_0x267d6a[_0x2065('0x19')](_0x3814fa,_0x2692d5['attributes'][_0x29ac41][_0x3814fa],_0x563c06);_0x267d6a[_0x2065('0xbd')](_0x2692d5[_0x2065('0xb4')][_0x29ac41],_0x563c06,0x0);}}),this[_0x2065('0xd8')][_0x2065('0x10d')](this[_0x2065('0xc2')](_0x2692d5[_0x2065('0xf6')])),this[_0x2065('0x106')]=!0x0;})[_0x2065('0x110')](_0x2856ec=>{console[_0x2065('0xd2')](_0x2856ec),this[_0x2065('0xc1')](),_0x35ad70&&(this[_0x2065('0xd8')]=_0x35ad70),this[_0x2065('0x106')]=!0x0;});}['addRevisionData'](_0x401399,_0x3de438){const _0x1ac0a0=this[_0x2065('0x7a')][_0x2065('0xd3')](_0x401399);return _0x1ac0a0['on'](_0x2065('0x2a'),(_0x20d9d7,_0x58d84c,_0x27af3b)=>_0x3de438(_0x58d84c,_0x27af3b,_0x1ac0a0)),this[_0x2065('0x7a')][_0x2065('0x4')](_0x1ac0a0),_0x1ac0a0;}['loadRevisionData'](_0x2d734b){if(!_0x2d734b||_0x2d734b['diffData'])return Promise['resolve']();{const _0x22834d=this['editor']['config'][_0x2065('0x63')]('collaboration.channelId');return this['adapter'][_0x2065('0x1e')]({'channelId':_0x22834d,'revisionId':_0x2d734b['id']})[_0x2065('0x5a')](_0x4db6ef=>{_0x2d734b[_0x2065('0x2a')]({'diffData':_0x4db6ef[_0x2065('0x27')]},!0x0);});}}[_0x2065('0xc1')](){this[_0x2065('0x78')]=null,this[_0x2065('0x17')](),this[_0x2065('0x6e')]&&this[_0x2065('0x6e')]['destroy'](),this[_0x2065('0x6e')]=null,this[_0x2065('0x12')][_0x2065('0x72')](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5ded08=>{for(const _0x29f8d6 of this[_0x2065('0x51')][_0x2065('0xb4')]['document'][_0x2065('0x4b')]())_0x5ded08[_0x2065('0xb3')](_0x29f8d6);});}[_0x2065('0xc2')](_0x19eb0e){const _0x5e10ea=[],_0x401aee=new Map();for(const _0x4e8a41 of this[_0x2065('0x51')][_0x2065('0xb4')]['document']['getRootNames']()){const _0x1909d8=this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0x8c')][_0x2065('0xdf')](_0x4e8a41);if(!_0x1909d8)continue;const _0x2c6612=_0x1909d8[_0x2065('0xd4')]()[_0x2065('0xff')](0x0);_0x2c6612&&(_0x5e10ea[_0x2065('0x98')](_0x4e8a41),_0x401aee[_0x2065('0xcd')](_0x4e8a41,_0x2c6612));}return _0x5e10ea[_0x2065('0x75')]((_0xc07340,_0x210309)=>{const _0x2d3ef2=_0x401aee['get'](_0xc07340),_0x8b0ad2=_0x401aee[_0x2065('0x63')](_0x210309);return _0x2d3ef2['y']-_0x8b0ad2['y']||_0x2d3ef2['x']-_0x8b0ad2['x'];}),(_0x19eb0e=_0x19eb0e[_0x2065('0xa3')](_0x1fb5eb=>_0x5e10ea['includes'](_0x1fb5eb[_0x2065('0xc8')])))[_0x2065('0x75')]((_0x5d6316,_0x1f7f70)=>_0x5e10ea[_0x2065('0x109')](_0x5d6316['rootName'])-_0x5e10ea['indexOf'](_0x1f7f70[_0x2065('0xc8')])),_0x19eb0e;}['_makeTape'](_0x3e3d86){const _0x5e152c=Array[_0x2065('0x1c')](_0x3e3d86[_0x2065('0x15')])[_0x2065('0xa3')](([_0x18eb65,_0x29c735])=>_0x18eb65[_0x2065('0xf0')](_0x2065('0x39'))&&!_0x29c735[_0x2065('0xde')]),_0x5765fe=Array[_0x2065('0x1c')](this['editor']['model']['createRangeIn'](_0x3e3d86)[_0x2065('0xba')]({'singleCharacters':!0x0}));if(0x0!=_0x5e152c[_0x2065('0x4f')])for(const _0x28d5ec of _0x5765fe){const [_0x1c9d66,_0x1cee71]=_0x5e152c[0x0],[,_0x322c7c,_0x538a17]=_0x1c9d66['split'](':');if(_0x1cee71['end']['isEqual'](_0x28d5ec[_0x2065('0x9c')])&&_0x5e152c[_0x2065('0x53')](),(_0x28d5ec[_0x2065('0x23')][_0x2065('0x2d')](_0x1cee71['start'])||_0x28d5ec[_0x2065('0x23')]['isAfter'](_0x1cee71[_0x2065('0x81')]))&&(_0x2065('0x9e')==_0x322c7c?_0x28d5ec[_0x2065('0x108')]={'userId':_0x538a17}:'deletion'==_0x322c7c&&(_0x28d5ec[_0x2065('0x99')]={'userId':_0x538a17})),0x0==_0x5e152c[_0x2065('0x4f')])break;}return _0x5765fe;}[_0x2065('0x103')](_0x17b343){const _0x6ec62a=new Map();for(let _0x5e756b=0x0;_0x5e756b<_0x17b343[_0x2065('0x4f')];_0x5e756b++)_0x2065('0x5b')===_0x17b343[_0x5e756b][_0x2065('0x30')]?(_0x17b343[_0x5e756b]['item'][_0x2065('0x6')]=_0x5e756b,_0x17b343[_0x5e756b]['item']['endIndex']=_0x5e756b):(_0x2065('0xfb')===_0x17b343[_0x5e756b][_0x2065('0x30')]?_0x17b343[_0x5e756b][_0x2065('0xff')]['startIndex']=_0x5e756b:_0x2065('0x1b')===_0x17b343[_0x5e756b][_0x2065('0x30')]&&(_0x17b343[_0x5e756b]['item'][_0x2065('0xdb')]=_0x5e756b),_0x6ec62a[_0x2065('0xcd')](_0x17b343[_0x5e756b]['id'],_0x5e756b));for(const _0x28fbdc of _0x6ec62a['values']())_0x2065('0xfb')===_0x17b343[_0x28fbdc][_0x2065('0x30')]?_0x17b343[_0x28fbdc]['item'][_0x2065('0xdb')]=_0x6ec62a[_0x2065('0x63')](_0x17b343[_0x28fbdc][_0x2065('0xc6')]):_0x2065('0x1b')===_0x17b343[_0x28fbdc][_0x2065('0x30')]&&(_0x17b343[_0x28fbdc][_0x2065('0xff')][_0x2065('0x6')]=_0x6ec62a[_0x2065('0x63')](_0x17b343[_0x28fbdc]['pairId']));}[_0x2065('0x80')](_0x446554){for(let _0x84685a=0x0;_0x84685a<_0x446554[_0x2065('0x4f')];_0x84685a++){if('elementStart'===_0x446554[_0x84685a][_0x2065('0x30')])_0x446554[_0x84685a][_0x2065('0xff')][_0x2065('0x6')]=_0x84685a;else{if(_0x2065('0x1b')===_0x446554[_0x84685a][_0x2065('0x30')]){_0x446554[_0x84685a][_0x2065('0xff')][_0x2065('0xdb')]=_0x84685a;const _0x1b2335=_0x446554[_0x84685a][_0x2065('0xff')][_0x2065('0x6')];_0x446554[_0x1b2335]['pairId']=_0x446554[_0x84685a]['id'],_0x446554[_0x84685a]['pairId']=_0x446554[_0x1b2335]['id'];}else _0x446554[_0x84685a]['item']['startIndex']=_0x84685a,_0x446554[_0x84685a][_0x2065('0xff')][_0x2065('0xdb')]=_0x84685a,_0x446554[_0x84685a]['pairId']=null;}_0x446554[_0x84685a][_0x2065('0x54')]||(_0x446554[_0x84685a][_0x2065('0x54')]=[],_0x446554[_0x84685a][_0x2065('0x118')]=[]);}}[_0x2065('0x3d')](_0x2ad1e7,_0x3e1cad){const _0x4bcb99=_0x2ad1e7['filter'](_0x589723=>!_0x589723['isAdded']);for(let _0x344292=0x0;_0x344292<_0x3e1cad[_0x2065('0x4f')];_0x344292++)_0x3e1cad[_0x344292][_0x2065('0x108')]&&(_0x4bcb99[_0x344292][_0x2065('0x108')]=_0x3e1cad[_0x344292][_0x2065('0x108')]);}[_0x2065('0x3c')](_0xe9b57f){const _0x5509ae=JSON[_0x2065('0xfe')](_0xe9b57f),_0x19a8e6=this['editor'][_0x2065('0x11d')]['view'][_0x2065('0x2')],_0x34b571=new _0x21d6df(_0x19a8e6,_0x5509ae[_0x2065('0x2e')](_0x477ac0=>this[_0x2065('0xf7')](_0x477ac0)));return this[_0x2065('0x51')]['data'][_0x2065('0x2f')](_0x34b571);}[_0x2065('0xf7')](_0xc32877){const _0x2f9a0e=this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0x8c')][_0x2065('0x2')];if(_0x2065('0x40')==typeof _0xc32877)return new _0x2d7f9d(_0x2f9a0e,_0xc32877);{const _0x189835=_0xc32877[_0x2065('0x121')][_0x2065('0x2e')](_0x549f3e=>this[_0x2065('0xf7')](_0x549f3e));return new(tt[_0xc32877[(_0x2065('0x30'))]]||_0x1496d2)(_0x2f9a0e,_0xc32877['name'],_0xc32877[_0x2065('0x3e')],_0x189835);}}[_0x2065('0x115')](_0x1721c1,_0x231b3e=null){const _0x1a4883=this['repository'][_0x2065('0x1e')](_0x1721c1),_0x599710=_0x231b3e?this['repository']['getRevision'](_0x231b3e):null,_0x16da1b=this[_0x2065('0x59')](_0x1a4883,_0x599710),_0x7446f3=_0x16da1b[_0x16da1b[_0x2065('0x4f')]-0x1],_0x14e862=new Map(),_0x50d271={'model':{},'attributes':{},'changes':[]},_0x4a7626=new Set(),_0x552a59=new Map();for(let _0x21e2bc=_0x16da1b[_0x2065('0x4f')]-0x1;_0x21e2bc>=0x0;_0x21e2bc--){const _0x2ce7ca=_0x16da1b[_0x21e2bc];for(const _0xab131a of Object[_0x2065('0x1a')](_0x2ce7ca['diffData']))if(_0x2ce7ca[_0x2065('0x27')][_0xab131a]['attachChange']){const _0x2478dc=_0x2ce7ca['diffData'][_0xab131a]['attachChange'];_0x2478dc[_0x2065('0x6a')]?(_0x4a7626[_0x2065('0x82')](_0xab131a),_0x552a59[_0x2065('0xfd')](_0xab131a)&&_0x552a59[_0x2065('0x63')](_0xab131a)[_0x2065('0x102')]==_0x2478dc[_0x2065('0x102')]?_0x552a59['delete'](_0xab131a):_0x552a59[_0x2065('0xcd')](_0xab131a,_0x2478dc)):_0x552a59[_0x2065('0xfd')](_0xab131a)?(_0x4a7626[_0x2065('0xaf')](_0xab131a),_0x552a59[_0x2065('0xaf')](_0xab131a)):(_0x4a7626[_0x2065('0x82')](_0xab131a),_0x552a59[_0x2065('0xcd')](_0xab131a,_0x2478dc));}else _0x4a7626['add'](_0xab131a);}for(const _0x45d42c of _0x4a7626){const _0x20780e=_0x552a59['has'](_0x45d42c)&&!_0x552a59[_0x2065('0x63')](_0x45d42c)[_0x2065('0x6a')];let _0x356a4b=_0x20780e?_0x16da1b[_0x2065('0x4f')]-0x1:0x0;const _0x19cb53=_0x20780e?-0x1:0x1;for(;_0x16da1b[_0x356a4b];){const _0x2bab12=_0x16da1b[_0x356a4b];if(_0x2bab12[_0x2065('0x27')][_0x45d42c]){const _0x1b267a=_0x20780e?_0x2bab12[_0x2065('0x27')][_0x45d42c][_0x2065('0x101')]:_0x2bab12['diffData'][_0x45d42c]['attributesAfter'];_0x50d271['attributes'][_0x45d42c]=_0x1b267a?_0x30e204(_0x1b267a):{};break;}_0x356a4b+=_0x19cb53;}}for(const _0x4f5e6d of _0x16da1b){_0x4f5e6d[_0x2065('0xb4')]={};for(const _0x1b2d1c of _0x4f5e6d[_0x2065('0x6d')])_0x14e862['set'](_0x1b2d1c['id'],_0x1b2d1c);for(const _0x577c81 of _0x4a7626){const _0xcf22b1=_0x4f5e6d[_0x2065('0x27')][_0x577c81]?_0x4f5e6d[_0x2065('0x27')][_0x577c81][_0x2065('0x7')]:'[]',_0x2111e1=_0x4f5e6d['diffData'][_0x577c81]?_0x4f5e6d[_0x2065('0x27')][_0x577c81][_0x2065('0xe2')]:'[]';_0x4f5e6d[_0x2065('0xb4')][_0x577c81]={'insertions':this['_makeModelFromViewString'](_0xcf22b1),'deletions':this[_0x2065('0x3c')](_0x2111e1)};}}for(const _0x214cec of _0x4a7626){let _0x437702=null,_0x466b10=0x0;const _0xcc0ea7=new Map(Array[_0x2065('0x1c')](_0x1a4883[_0x2065('0xb4')][_0x214cec][_0x2065('0x7')][_0x2065('0x15')])['filter'](([_0x45b96e])=>!_0x45b96e[_0x2065('0xf0')](_0x2065('0x39'))));let _0x14126a=0x0;for(const _0x31bed7 of _0x16da1b){const _0x1d79ff=this[_0x2065('0x74')](_0x31bed7[_0x2065('0xb4')][_0x214cec][_0x2065('0x7')]);_0x31bed7==_0x1a4883?(_0x437702=_0x1d79ff,_0x466b10=_0x437702['length'],_0x437702['forEach'](_0x2a38c9=>{_0x2a38c9['id']=_0x14126a++;}),this[_0x2065('0x80')](_0x437702)):this['_markInsertions'](_0x437702,_0x1d79ff);const _0x9c9a47=_0x437702[_0x2065('0xa3')](_0x1b4642=>!_0x1b4642['isAdded'])['map'](_0x588186=>_0x588186['id']);let _0x3aef93=0x0;const _0x508a98=this[_0x2065('0x74')](_0x31bed7[_0x2065('0xb4')][_0x214cec][_0x2065('0xe2')]);_0x508a98[_0x2065('0xf4')](_0x4f648e=>{_0x4f648e[_0x2065('0x99')]?_0x4f648e['id']=_0x466b10++:_0x4f648e['id']=_0x9c9a47[_0x3aef93++];}),this['_processTape'](_0x508a98),this['_setDistance'](_0x437702,_0x2065('0x108')),this['_setDistance'](_0x508a98,_0x2065('0x99')),_0x31bed7==_0x1a4883&&this['_markMarkers'](_0x437702,_0xcc0ea7),_0x437702=this[_0x2065('0x9f')](_0x437702,_0x508a98),this[_0x2065('0x103')](_0x437702),this[_0x2065('0x97')](_0x437702,_0x2065('0x99'));}_0x437702=_0x437702['filter'](_0x1161b2=>!(_0x1161b2['isAdded']&&_0x1161b2[_0x2065('0x99')]));const _0x500b07=new Map(_0x7446f3[_0x2065('0xb4')][_0x214cec]['deletions'][_0x2065('0x15')]),_0x421adc=new Set(_0xcc0ea7[_0x2065('0x1a')]());for(const _0x59295b of _0x500b07[_0x2065('0x1a')]())_0x421adc['delete'](_0x59295b);this[_0x2065('0x5c')](_0x437702,_0x421adc),this[_0x2065('0x49')](_0x437702),_0x437702=this['_removeMissingPairs'](_0x437702),_0x437702=this['_markMismatchedRemovedTags'](_0x437702),_0x437702=this[_0x2065('0xe4')](_0x437702);const {root:_0x5ca947,changes:_0x52be7a}=this[_0x2065('0x21')](_0x437702,_0x14e862,_0x214cec);_0x50d271[_0x2065('0xb4')][_0x214cec]=_0x5ca947;const _0x42de32=_0x552a59[_0x2065('0x63')](_0x214cec);if(_0x42de32){const _0x411e0e=_0x14e862['get'](_0x42de32[_0x2065('0x102')]),_0x2f2183=new _0x10a5a2({'author':_0x411e0e,'type':_0x42de32['isAttached']?_0x2065('0x82'):_0x2065('0xe1'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x214cec});_0x52be7a[_0x2065('0x37')](_0x2f2183),_0x50d271[_0x2065('0x3e')][_0x214cec][_0x2065('0x64')]=_0x2f2183['id'];}_0x50d271[_0x2065('0xf6')]=_0x50d271[_0x2065('0xf6')][_0x2065('0x127')](_0x52be7a);}return _0x50d271;}[_0x2065('0xa8')](_0x31bd97,_0x3ba3fc){for(let _0x549021=0x0;_0x549021<_0x31bd97[_0x2065('0x4f')];_0x549021++)for(const [_0x338c46,_0x46e201]of _0x3ba3fc)_0x46e201[_0x2065('0x81')][_0x2065('0x2d')](_0x31bd97[_0x549021][_0x2065('0x23')])&&_0x31bd97[_0x549021][_0x2065('0x54')]['push'](_0x338c46),_0x46e201[_0x2065('0x62')][_0x2065('0x2d')](_0x31bd97[_0x549021][_0x2065('0x9c')])&&_0x31bd97[_0x549021]['markersEnd'][_0x2065('0x98')](_0x338c46);}['_joinTapes'](_0x234c1d,_0x1061ae){let _0x463cf6=[],_0x1f4298=0x0,_0x1b4062=0x0;for(;_0x1f4298<_0x234c1d[_0x2065('0x4f')]||_0x1b4062<_0x1061ae[_0x2065('0x4f')];){const _0xb275ad=_0x234c1d[_0x1f4298]||{},_0x405fba=_0x1061ae[_0x1b4062]||{};if(_0xb275ad['id']==_0x405fba['id'])_0x1f4298++,_0x1b4062++,_0x463cf6[_0x2065('0x98')](_0xb275ad);else{if(_0x405fba[_0x2065('0x99')]&&_0xb275ad[_0x2065('0x108')]){const {commonTape:_0x1527f9,iEnd:_0x2d6472,jEnd:_0x5eaf20}=this[_0x2065('0xeb')](_0x234c1d,_0x1f4298,_0x1061ae,_0x1b4062);_0x463cf6=_0x463cf6[_0x2065('0x127')](_0x1527f9),_0x1f4298=_0x2d6472,_0x1b4062=_0x5eaf20;}else _0x405fba[_0x2065('0x99')]?(_0x1b4062++,_0x463cf6[_0x2065('0x98')](_0x405fba)):(_0x1f4298++,_0x463cf6[_0x2065('0x98')](_0xb275ad));}}return _0x463cf6;}[_0x2065('0x5c')](_0x97307e,_0x5cc0dc){const _0x4a0869=[];for(let _0x2e3d9e=0x0;_0x2e3d9e<_0x97307e['length'];_0x2e3d9e++){for(let _0x3219b2=0x0;_0x3219b2<_0x97307e[_0x2e3d9e]['markersStart'][_0x2065('0x4f')];_0x3219b2++){const _0x294b14=_0x97307e[_0x2e3d9e][_0x2065('0x54')][_0x3219b2];if(!_0x5cc0dc[_0x2065('0xfd')](_0x294b14))continue;const {group:_0x45b9c2,type:_0x480f57,authorId:_0x479c91}=_0x17be12(_0x294b14);'revision-suggestion'!=_0x45b9c2||_0x2065('0x9e')!=_0x480f57&&_0x2065('0x7d')!=_0x480f57||(_0x4a0869[_0x2065('0x37')]({'type':_0x480f57,'name':_0x294b14,'userId':_0x479c91}),_0x97307e[_0x2e3d9e]['markersStart'][_0x2065('0x5')](_0x3219b2,0x1),_0x3219b2--);}_0x24e28f(_0x97307e[_0x2e3d9e]);for(let _0x173c32=0x0;_0x173c32<_0x97307e[_0x2e3d9e][_0x2065('0x118')][_0x2065('0x4f')];_0x173c32++){const _0x5baca0=_0x97307e[_0x2e3d9e]['markersEnd'][_0x173c32];if(!_0x5cc0dc['has'](_0x5baca0))continue;const {group:_0x11dbb7,type:_0x58c1bb}=_0x17be12(_0x5baca0);if(_0x2065('0x92')!=_0x11dbb7||'insertion'!=_0x58c1bb&&_0x2065('0x7d')!=_0x58c1bb)continue;_0x97307e[_0x2e3d9e][_0x2065('0x118')][_0x2065('0x5')](_0x173c32,0x1),_0x173c32--;const _0x3f2404=_0x4a0869[_0x2065('0x117')](_0x461fba=>_0x461fba[_0x2065('0x46')]==_0x5baca0);_0x3f2404>-0x1&&_0x4a0869[_0x2065('0x5')](_0x3f2404,0x1);}}function _0x17be12(_0x32bdd9){const _0x27d0ea=_0x32bdd9[_0x2065('0x6c')](':');return{'group':_0x27d0ea[0x0],'type':_0x27d0ea[0x1],'subType':_0x27d0ea['length']>=0x5?_0x27d0ea[0x2]:null,'id':_0x27d0ea['length']<0x5?_0x27d0ea[0x2]:_0x27d0ea[0x3],'authorId':_0x27d0ea[_0x2065('0x4f')]<0x5?_0x27d0ea[0x3]:_0x27d0ea[0x4],'markerCount':0x6==_0x27d0ea[_0x2065('0x4f')]?_0x27d0ea[0x5]:null};}function _0x24e28f(_0x497908){for(let _0x181fc6=0x0;_0x181fc6<_0x4a0869[_0x2065('0x4f')];_0x181fc6++){if(_0x497908[_0x2065('0x108')]&&_0x2065('0x9e')==_0x4a0869[_0x181fc6]['type'])return _0x497908[_0x2065('0x10f')]=_0x4a0869[_0x181fc6],void delete _0x497908['isAdded'];if(!_0x497908['isAdded']&&!_0x497908[_0x2065('0x99')]&&_0x2065('0x7d')==_0x4a0869[_0x181fc6]['type'])return void(_0x497908['isRemoveSuggestion']=_0x4a0869[_0x181fc6]);}}}[_0x2065('0x97')](_0x154108,_0x3bb0c6){let _0xe624b2=0x0,_0x157633=!0x1;const _0xf9fc3=new Map();for(const _0x4b0809 of _0x154108)_0x4b0809[_0x3bb0c6]?_0x157633&&(_0xe624b2++,_0x157633=!0x1):(_0xe624b2++,_0x157633=!0x0),_0xf9fc3['set'](_0x4b0809['id'],_0xe624b2);for(let _0x4d2144=0x0;_0x4d2144<_0x154108['length'];_0x4d2144++){if(_0x2065('0x99')==_0x3bb0c6&&_0x154108[_0x4d2144][_0x2065('0x108')]||_0x2065('0x108')==_0x3bb0c6&&_0x154108[_0x4d2144][_0x2065('0x99')])continue;if(_0x2065('0x5b')==_0x154108[_0x4d2144]['type']){_0x154108[_0x4d2144][_0x2065('0x7e')]=0x0;continue;}const _0x5cd942=_0xf9fc3[_0x2065('0x63')](_0x154108[_0x4d2144][_0x2065('0xc6')]),_0xe23b2c=_0xf9fc3[_0x2065('0x63')](_0x154108[_0x4d2144]['id']);_0x154108[_0x4d2144][_0x2065('0x7e')]=_0x5cd942-_0xe23b2c;}}['_getRevisionsRange'](_0x1f34a2,_0xca07f1,_0x1c677e=!0x1){const _0x47743a=[];let _0x2ebba9=this[_0x2065('0x7a')][_0x2065('0x122')](_0x1f34a2),_0x1131f5=this[_0x2065('0x7a')][_0x2065('0x122')](_0xca07f1);for(-0x1==_0x1131f5&&(_0x1131f5=this[_0x2065('0x7a')]['_revisions'][_0x2065('0x4f')],_0x1c677e=!0x1);_0x2ebba9<_0x1131f5;)_0x47743a[_0x2065('0x98')](this[_0x2065('0x7a')][_0x2065('0x1e')](_0x2ebba9)),_0x2ebba9++;return _0x1c677e&&_0x47743a[_0x2065('0x98')](this['repository'][_0x2065('0x1e')](_0x2ebba9)),_0x47743a;}['_threeWayMerge'](_0x430603,_0x2a12e8,_0x5b864f,_0x36e92a){const _0x436359=this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0x94')];let _0x46479a=_0x2a12e8;for(;_0x430603[_0x46479a]&&_0x430603[_0x46479a][_0x2065('0x108')];)_0x46479a++;let _0x559079=_0x36e92a;for(;_0x5b864f[_0x559079]&&_0x5b864f[_0x559079]['isRemoved'];)_0x559079++;_0x24e856(_0x430603,_0x2a12e8,_0x46479a),_0x24e856(_0x5b864f,_0x36e92a,_0x559079);const _0x2e6fbe=_0x5b864f['slice'](_0x36e92a,_0x559079)['concat'](_0x430603[_0x2065('0x71')](_0x2a12e8,_0x46479a));return _0x2e6fbe['sort']((_0x536642,_0x786438)=>_0x536642[_0x2065('0xc4')]!=_0x786438[_0x2065('0xc4')]?_0x536642['side']-_0x786438[_0x2065('0xc4')]:_0x536642[_0x2065('0x44')]!=_0x786438['level']?_0x536642['level']-_0x786438[_0x2065('0x44')]:_0x536642['distance']!=_0x786438['distance']?_0x786438[_0x2065('0x7e')]-_0x536642[_0x2065('0x7e')]:!!_0x536642[_0x2065('0x108')]!=!!_0x786438[_0x2065('0x108')]?-0x1==_0x536642['side']||0x0==_0x536642[_0x2065('0xc4')]?_0x536642[_0x2065('0x108')]?-0x1:0x1:_0x536642['isAdded']?0x1:-0x1:_0x536642[_0x2065('0x4e')]-_0x786438[_0x2065('0x4e')]),{'commonTape':_0x2e6fbe,'iEnd':_0x46479a,'jEnd':_0x559079};function _0x24e856(_0x45528a,_0x1fc697,_0x17eb0f){let _0x259907=-0x1,_0x359f2a=Number[_0x2065('0x16')],_0x604f1e=!0x0;for(let _0x292fa4=_0x1fc697;_0x292fa4<_0x17eb0f;_0x292fa4++)if(_0x436359[_0x2065('0x1d')](_0x45528a[_0x292fa4][_0x2065('0xff')])||(_0x604f1e=!0x1),_0x45528a[_0x292fa4]['item']['startIndex']<_0x1fc697&&(_0x259907=_0x292fa4),_0x45528a[_0x292fa4][_0x2065('0xff')]['endIndex']>=_0x17eb0f){_0x359f2a=_0x292fa4;break;}_0x604f1e&&(_0x259907=_0x17eb0f-0x1);for(let _0x50f6c3=_0x1fc697;_0x50f6c3<_0x17eb0f;_0x50f6c3++)_0x45528a[_0x50f6c3][_0x2065('0xc4')]=_0x50f6c3<=_0x259907?-0x1:_0x50f6c3<_0x359f2a?0x0:0x1,_0x45528a[_0x50f6c3][_0x2065('0x4e')]=_0x50f6c3;let _0x4a07ee=0x0;for(let _0x18ba65=_0x1fc697;_0x18ba65<=_0x259907;_0x18ba65++)0x0==_0x45528a[_0x18ba65]['distance']?_0x45528a[_0x18ba65][_0x2065('0x44')]=_0x4a07ee:(_0x4a07ee++,_0x45528a[_0x18ba65][_0x2065('0x44')]=_0x4a07ee,_0x4a07ee++);for(let _0x4f7290=_0x1fc697;_0x4f7290<_0x17eb0f;_0x4f7290++)0x0==_0x45528a[_0x4f7290][_0x2065('0xc4')]&&(_0x45528a[_0x4f7290][_0x2065('0x44')]=_0x4a07ee);_0x4a07ee=0x0;for(let _0x43b271=_0x17eb0f-0x1;_0x43b271>=_0x359f2a;_0x43b271--)0x0==_0x45528a[_0x43b271]['distance']?_0x45528a[_0x43b271][_0x2065('0x44')]=_0x4a07ee:(_0x4a07ee--,_0x45528a[_0x43b271][_0x2065('0x44')]=_0x4a07ee,_0x4a07ee--);}}[_0x2065('0x49')](_0x38731d){const _0x316759=new Map(),_0x46bcc=this[_0x2065('0x51')]['model'][_0x2065('0x94')];for(let _0x31fbba=0x1;_0x31fbba<_0x38731d[_0x2065('0x4f')];_0x31fbba++){let _0x3eb06a,_0x5943d3,_0x53d49b;const _0x404e0d=_0x38731d[_0x31fbba],_0x578ad4=_0x38731d[_0x31fbba-0x1];if(_0x2065('0x5b')==_0x404e0d[_0x2065('0x30')])continue;if(_0x404e0d['type']!=_0x578ad4[_0x2065('0x30')])continue;if(!_0x46bcc[_0x2065('0xd9')](_0x578ad4[_0x2065('0xff')])||_0x46bcc[_0x2065('0xf3')](_0x578ad4[_0x2065('0xff')]))continue;if(!_0x46bcc['isBlock'](_0x404e0d['item'])||_0x46bcc[_0x2065('0xf3')](_0x404e0d[_0x2065('0xff')]))continue;if((_0x38731d[_0x31fbba][_0x2065('0x108')]||_0x38731d[_0x31fbba][_0x2065('0x10f')])&&_0x38731d[_0x31fbba-0x1][_0x2065('0x99')])_0x3eb06a=_0x38731d[_0x31fbba],_0x5943d3=_0x38731d[_0x31fbba-0x1],_0x53d49b=_0x31fbba-0x1;else{if(!_0x38731d[_0x31fbba][_0x2065('0x99')]||!_0x38731d[_0x31fbba-0x1][_0x2065('0x108')]&&!_0x38731d[_0x31fbba-0x1][_0x2065('0x10f')])continue;_0x3eb06a=_0x38731d[_0x31fbba-0x1],_0x5943d3=_0x38731d[_0x31fbba],_0x53d49b=_0x31fbba;}const _0x5e62b0=_0x3eb06a[_0x2065('0x44')]==_0x5943d3[_0x2065('0x44')],_0x3a8061=Math[_0x2065('0x67')](_0x3eb06a[_0x2065('0x44')])<Math['abs'](_0x5943d3[_0x2065('0x44')])&&0x0==_0x5943d3[_0x2065('0x7e')];(_0x5e62b0||_0x3a8061)&&(_0x316759[_0x2065('0xcd')](_0x5943d3['id'],_0x3eb06a['id']),_0x38731d['splice'](_0x53d49b,0x1),_0x31fbba--,_0x3eb06a[_0x2065('0x108')]=!0x1);}for(let _0x355d6d=0x0;_0x355d6d<_0x38731d[_0x2065('0x4f')];_0x355d6d++)_0x316759[_0x2065('0xfd')](_0x38731d[_0x355d6d][_0x2065('0xc6')])&&(_0x38731d[_0x355d6d]['pairId']=_0x316759[_0x2065('0x63')](_0x38731d[_0x355d6d][_0x2065('0xc6')]));}[_0x2065('0xc3')](_0x26aacf){const _0x576d1d=new Set(_0x26aacf['map'](_0x5b6520=>_0x5b6520['id']));for(let _0x1f2d0c=0x0;_0x1f2d0c<_0x26aacf[_0x2065('0x4f')];_0x1f2d0c++)_0x576d1d[_0x2065('0xfd')](_0x26aacf[_0x1f2d0c][_0x2065('0xc6')])||0x0==_0x26aacf[_0x1f2d0c][_0x2065('0x7e')]||(_0x26aacf[_0x1f2d0c][_0x2065('0x31')]=!0x0);return _0x26aacf[_0x2065('0xa3')](_0x3d618d=>!_0x3d618d[_0x2065('0x31')]);}['_markMismatchedRemovedTags'](_0x525ada){const _0x1aae3f=new Set();for(let _0x3c2974=0x0;_0x3c2974<_0x525ada[_0x2065('0x4f')];_0x3c2974++){if(_0x1aae3f['has'](_0x525ada[_0x3c2974]['id'])&&_0x525ada[_0x3c2974][_0x2065('0x99')]&&(_0x525ada[_0x3c2974][_0x2065('0x31')]=!0x0),_0x525ada[_0x3c2974][_0x2065('0x31')])continue;if(0x0==_0x525ada[_0x3c2974][_0x2065('0x7e')])continue;if(_0x2065('0xfb')!=_0x525ada[_0x3c2974][_0x2065('0x30')])continue;if(null==_0x525ada[_0x3c2974][_0x2065('0xc6')])continue;let _0x22d231=_0x3c2974+0x1,_0x149aea=0x0;for(;_0x525ada[_0x22d231]['id']!=_0x525ada[_0x3c2974][_0x2065('0xc6')];)_0x2065('0xfb')==_0x525ada[_0x22d231][_0x2065('0x30')]?_0x149aea++:_0x2065('0x1b')==_0x525ada[_0x22d231]['type']&&_0x149aea--,_0x22d231++;if(0x0!=_0x149aea){if(_0x525ada[_0x3c2974][_0x2065('0x99')])_0x525ada[_0x3c2974]['isIncorrect']=!0x0;else for(;_0x22d231!=_0x3c2974;)_0x525ada[_0x22d231][_0x2065('0x99')]&&0x0!=_0x525ada[_0x22d231]['distance']&&(_0x525ada[_0x22d231][_0x2065('0x31')]=!0x0,_0x1aae3f[_0x2065('0x82')](_0x525ada[_0x22d231][_0x2065('0xc6')])),_0x22d231--;}}return _0x525ada['filter'](_0x45d9b=>!_0x45d9b[_0x2065('0x31')]);}[_0x2065('0xe4')](_0x22ecbf){const _0x1b9d76=this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0x94')];for(let _0x43144c=0x0;_0x43144c<_0x22ecbf[_0x2065('0x4f')];_0x43144c++){if(!(_0x22ecbf[_0x43144c][_0x2065('0x108')]||_0x22ecbf[_0x43144c][_0x2065('0x10f')]||_0x22ecbf[_0x43144c][_0x2065('0x99')]||_0x22ecbf[_0x43144c][_0x2065('0x87')]))continue;if(0x0==_0x22ecbf[_0x43144c][_0x2065('0x7e')])continue;const _0xbc19ad=_0x22ecbf[_0x43144c]['item'];_0x1b9d76[_0x2065('0xd9')](_0xbc19ad)||_0x1b9d76['isLimit'](_0xbc19ad)||(_0x22ecbf[_0x43144c][_0x2065('0x108')]&&delete _0x22ecbf[_0x43144c][_0x2065('0x108')],_0x22ecbf[_0x43144c][_0x2065('0x10f')]&&delete _0x22ecbf[_0x43144c][_0x2065('0x10f')],_0x22ecbf[_0x43144c][_0x2065('0x87')]&&delete _0x22ecbf[_0x43144c][_0x2065('0x87')],_0x22ecbf[_0x43144c][_0x2065('0x99')]&&(_0x22ecbf[_0x43144c][_0x2065('0x31')]=!0x0));}return _0x22ecbf['filter'](_0x470341=>!_0x470341[_0x2065('0x31')]);}[_0x2065('0x21')](_0x22ec4d,_0x3a0b04,_0x1ee68a){const _0x2c2109=new _0x25d544(),_0x482e6a=[],_0x30df11=new Map(),_0x57504e=this['editor']['model'],_0x22ba37=_0x57504e[_0x2065('0x94')],_0x2746c3=[_0x2c2109],_0x215b78={},_0x47d382={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x42b791=null;const _0x26f7c2=[0x0];for(let _0xda134a=0x0;_0xda134a<_0x22ec4d[_0x2065('0x4f')];_0xda134a++){let _0x4b1c55,_0x3940e5;if(_0x2065('0xfb')===_0x22ec4d[_0xda134a][_0x2065('0x30')]){_0x4b1c55=_0x57504e[_0x2065('0xbb')](_0x2c2109,_0x26f7c2);const _0x438c16=new _0x5f1470(_0x22ec4d[_0xda134a][_0x2065('0xff')]['name'],_0x22ec4d[_0xda134a]['item']['getAttributes']());_0x2746c3[0x0]['_appendChild'](_0x438c16),_0x26f7c2[_0x2065('0x98')](0x0),_0x2746c3[_0x2065('0x37')](_0x438c16),_0x3940e5=_0x57504e['createPositionFromPath'](_0x2c2109,_0x26f7c2),_0x42b791=null;}else{if(_0x2065('0x1b')===_0x22ec4d[_0xda134a][_0x2065('0x30')])_0x2746c3[_0x2065('0x53')](),_0x4b1c55=_0x57504e[_0x2065('0xbb')](_0x2c2109,_0x26f7c2),_0x26f7c2[_0x2065('0x104')](),_0x26f7c2[_0x26f7c2['length']-0x1]++,_0x3940e5=_0x57504e[_0x2065('0xbb')](_0x2c2109,_0x26f7c2),_0x42b791=null;else{if(_0x4b1c55=_0x57504e[_0x2065('0xbb')](_0x2c2109,_0x26f7c2),_0x42b791&&_0x3988b0(_0x42b791,_0x22ec4d[_0xda134a][_0x2065('0xff')]))_0x42b791[_0x2065('0xc9')]+=_0x22ec4d[_0xda134a][_0x2065('0xff')][_0x2065('0xf9')];else{const _0x4c3f9d=new _0x323b78(_0x22ec4d[_0xda134a][_0x2065('0xff')][_0x2065('0xf9')],_0x22ec4d[_0xda134a][_0x2065('0xff')][_0x2065('0x8e')]());_0x2746c3[0x0][_0x2065('0xca')](_0x4c3f9d),_0x42b791=_0x4c3f9d;}_0x26f7c2[_0x26f7c2['length']-0x1]+=_0x22ec4d[_0xda134a]['item'][_0x2065('0xa7')],_0x3940e5=_0x57504e[_0x2065('0xbb')](_0x2c2109,_0x26f7c2);}}for(const _0x2f048c of _0x22ec4d[_0xda134a]['markersStart'])_0x30df11[_0x2065('0xcd')](_0x2f048c,{'start':_0x4b1c55,'end':null});_0xeb2dc5(_0x2065('0x87'),_0xda134a,_0x4b1c55,_0x3940e5),_0xeb2dc5(_0x2065('0x10f'),_0xda134a,_0x4b1c55,_0x3940e5),_0xeb2dc5('isRemoved',_0xda134a,_0x4b1c55,_0x3940e5),_0xeb2dc5(_0x2065('0x108'),_0xda134a,_0x4b1c55,_0x3940e5);for(const _0x2a9a9f of _0x22ec4d[_0xda134a][_0x2065('0x118')]){_0x30df11['get'](_0x2a9a9f)[_0x2065('0x62')]=_0x3940e5;}}for(const [_0x20343e,_0x2be0aa]of _0x30df11){const _0xe6dc4b=this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0x111')](_0x2be0aa[_0x2065('0x81')],_0x2be0aa[_0x2065('0x62')]);_0x2c2109[_0x2065('0x15')][_0x2065('0xcd')](_0x20343e,_0xe6dc4b);}return _0x482e6a[_0x2065('0x75')]((_0x4fd1de,_0x67f14f)=>{const _0x10a474=_0x2c2109[_0x2065('0x15')][_0x2065('0x63')](_0x2065('0x39')+_0x4fd1de['id']),_0x4d3531=_0x2c2109[_0x2065('0x15')][_0x2065('0x63')]('revision:'+_0x67f14f['id']);return _0x10a474['start'][_0x2065('0xb7')](_0x4d3531[_0x2065('0x81')])?-0x1:_0x10a474[_0x2065('0x81')]['isAfter'](_0x4d3531[_0x2065('0x81')])?0x1:_0x10a474[_0x2065('0x62')][_0x2065('0xb7')](_0x4d3531[_0x2065('0x62')])?-0x1:_0x10a474[_0x2065('0x62')][_0x2065('0x114')](_0x4d3531[_0x2065('0x62')])?0x1:_0x2065('0x82')===_0x4fd1de[_0x2065('0x30')]?-0x1:0x1;}),{'root':_0x2c2109,'changes':_0x482e6a};function _0xeb2dc5(_0x7d4d38,_0x25257d,_0x31f0a9,_0x571538){const _0x32a2ff=!!_0x22ec4d[_0x25257d][_0x7d4d38],_0x4b4f43=_0x32a2ff?_0x22ec4d[_0x25257d][_0x7d4d38]['userId']:null,_0x4a94c8=_0x25257d===_0x22ec4d[_0x2065('0x4f')]-0x1,_0x48f643=_0x47d382[_0x7d4d38][0x0],_0x588c33=_0x22ba37[_0x2065('0x1f')](_0x22ec4d[_0x25257d][_0x2065('0xff')]);!_0x215b78[_0x7d4d38]&&_0x32a2ff?_0x215b78[_0x7d4d38]={'start':_0x31f0a9,'tapeItem':_0x22ec4d[_0x25257d],'userId':_0x4b4f43,'type':_0x7d4d38}:_0x215b78[_0x7d4d38]&&!_0x32a2ff?(_0x215b78[_0x7d4d38][_0x2065('0x62')]=_0x31f0a9,_0x583639(_0x215b78[_0x7d4d38]),_0x215b78[_0x7d4d38]=null):_0x215b78[_0x7d4d38]&&_0x32a2ff&&_0x215b78[_0x7d4d38][_0x2065('0x102')]!==_0x4b4f43&&(_0x215b78[_0x7d4d38][_0x2065('0x62')]=_0x31f0a9,_0x48f643&&_0x48f643[_0x2065('0x102')]===_0x215b78[_0x7d4d38][_0x2065('0x102')]||_0x583639(_0x215b78[_0x7d4d38]),_0x215b78[_0x7d4d38]={'start':_0x31f0a9,'tapeItem':_0x22ec4d[_0x25257d],'userId':_0x4b4f43,'type':_0x7d4d38}),_0x215b78[_0x7d4d38]&&_0x588c33&&(_0x2065('0xfb')!==_0x22ec4d[_0x25257d][_0x2065('0x30')]||_0x48f643&&_0x48f643['userId']===_0x4b4f43||_0x47d382[_0x7d4d38][_0x2065('0x37')]({'userId':_0x4b4f43,'object':_0x22ec4d[_0x25257d][_0x2065('0xff')],'change':_0x215b78[_0x7d4d38]}),'elementEnd'===_0x22ec4d[_0x25257d]['type']&&_0x48f643&&_0x48f643[_0x2065('0xcb')]===_0x22ec4d[_0x25257d]['item']&&(_0x47d382[_0x7d4d38]['shift'](),_0x215b78[_0x7d4d38]=_0x48f643['change'])),_0x215b78[_0x7d4d38]&&_0x4a94c8&&(_0x215b78[_0x7d4d38][_0x2065('0x62')]=_0x571538,_0x583639(_0x215b78[_0x7d4d38]),_0x215b78[_0x7d4d38]=null);}function _0x583639({start:_0x23441d,end:_0x12dc7a,tapeItem:_0x589732,userId:_0x3fec35,type:_0x421783}){const _0x1c436b=_0x589732['item'],_0xa7a4a6=_0x57504e['schema'][_0x2065('0xd9')](_0x1c436b)&&!_0x57504e[_0x2065('0x94')]['isLimit'](_0x1c436b),_0x3afb96=_0x23441d['nodeAfter']==_0x12dc7a[_0x2065('0x77')]&&_0x12dc7a['isAtStart'];if(_0xa7a4a6&&_0x3afb96)return;const _0x43b869=_0x57504e[_0x2065('0x111')](_0x23441d,_0x12dc7a),_0x88c1ba=_0x3a0b04[_0x2065('0x63')](_0x3fec35),_0x26055f=new _0x10a5a2({'author':_0x88c1ba,'type':_0x2065('0x108')==_0x421783||'isAddSuggestion'==_0x421783?'add':_0x2065('0xe1'),'data':{'isSuggestion':_0x2065('0x10f')==_0x421783||_0x2065('0x87')==_0x421783},'createdAt':new Date(),'rootName':_0x1ee68a});_0x482e6a[_0x2065('0x98')](_0x26055f),_0x2c2109[_0x2065('0x15')][_0x2065('0xcd')]('revision:'+_0x26055f['id'],_0x43b869);}function _0x3988b0(_0x5f152f,_0x195019){const _0x23208f=_0x5f152f[_0x2065('0x8e')](),_0x565a5d=_0x195019[_0x2065('0x8e')]();for(const _0x595ad3 of _0x23208f){if(_0x595ad3[0x1]!==_0x195019[_0x2065('0x57')](_0x595ad3[0x0]))return!0x1;_0x565a5d[_0x2065('0x116')]();}return _0x565a5d[_0x2065('0x116')]()[_0x2065('0x105')];}}[_0x2065('0x69')](){this[_0x2065('0x51')]['conversion']['for'](_0x2065('0x79'))[_0x2065('0xa0')]({'view':_0x2065('0xb6')}),this[_0x2065('0x51')][_0x2065('0x88')][_0x2065('0x11a')]('editingDowncast')[_0x2065('0xa2')]({'model':'revision','view':_0x18f9ee=>{const _0x37d65b=_0x18f9ee['markerName'][_0x2065('0x6c')](':')[0x1],_0x4e98a5=this[_0x2065('0x5d')](_0x37d65b);if(!_0x4e98a5)return null;const _0x3f1bdf='add'==_0x4e98a5[_0x2065('0x30')]?_0x2065('0x9e'):_0x2065('0x7d'),_0x2e33d3=['ck-suggestion-marker',_0x2065('0x20')+_0x3f1bdf];return _0x4e98a5['data'][_0x2065('0x42')]&&_0x2e33d3[_0x2065('0x98')](_0x2065('0x20')+_0x3f1bdf+_0x2065('0xe8')),this[_0x2065('0x78')]==_0x4e98a5&&_0x2e33d3['push']('ck-suggestion-marker--active'),{'classes':_0x2e33d3,'attributes':{'data-change-id':_0x37d65b}};}}),this[_0x2065('0x51')]['conversion'][_0x2065('0x11a')](_0x2065('0x79'))['add'](_0x2a009d=>{_0x2a009d['on'](_0x2065('0x33'),(_0x4f5ade,_0x3ce110,_0xa48c55)=>{const _0x17e31e=_0x3ce110[_0x2065('0x83')][_0x2065('0x0')](0x0);if(!_0x17e31e||!_0x17e31e['is'](_0x2065('0xee'),_0x2065('0x8a')))return;if(!_0xa48c55[_0x2065('0x25')][_0x2065('0xa9')](_0x17e31e,{'attributes':[_0x2065('0xce'),_0x2065('0xf1')]}))return;const _0x5996b8=_0x3ce110[_0x2065('0x11')]['start'][_0x2065('0x91')];_0xa48c55[_0x2065('0xc0')][_0x2065('0x19')](_0x2065('0xce'),_0x17e31e['getAttribute'](_0x2065('0xce')),_0x5996b8),_0xa48c55[_0x2065('0xc0')][_0x2065('0x19')](_0x2065('0xf1'),_0x17e31e['getAttribute'](_0x2065('0xf1')),_0x5996b8);},{'priority':_0x2065('0x22')});}),this[_0x2065('0x51')][_0x2065('0x88')][_0x2065('0x11a')](_0x2065('0x79'))[_0x2065('0x82')](_0x4181f0=>{_0x4181f0['on'](_0x2065('0xee'),(_0x3795f6,_0x3775c4,_0x475ff8)=>{if(!_0x475ff8[_0x2065('0x25')][_0x2065('0xa9')](_0x3775c4['viewItem'],{'attributes':[_0x2065('0xce'),_0x2065('0xf1')]}))return;if(_0x3775c4['modelRange'][_0x2065('0xde')])return;const _0x1f934e=_0x3775c4['modelRange'][_0x2065('0x81')][_0x2065('0x91')];_0x1f934e['hasAttribute'](_0x2065('0xce'))||_0x1f934e[_0x2065('0xd0')](_0x2065('0xef'))||(_0x475ff8['writer'][_0x2065('0x19')](_0x2065('0xce'),_0x3775c4[_0x2065('0x83')][_0x2065('0x57')]('vid_start'),_0x1f934e),_0x475ff8[_0x2065('0xc0')][_0x2065('0x19')]('vid_end',_0x3775c4['viewItem'][_0x2065('0x57')](_0x2065('0xf1')),_0x1f934e));},{'priority':_0x2065('0x22')});}),this[_0x2065('0x51')][_0x2065('0x88')][_0x2065('0x11a')](_0x2065('0x79'))[_0x2065('0x7c')]({'view':{'name':_0x2065('0x61'),'attributes':{'vid':!0x0}},'model':{'key':_0x2065('0xef'),'value':_0x3a01b6=>_0x3a01b6['getAttribute'](_0x2065('0xef'))}}),this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0x94')]['on']('checkAttribute',(_0x41d61c,[,_0x3f8a0d])=>{[_0x2065('0xce'),_0x2065('0xf1'),'vid']['includes'](_0x3f8a0d)&&(_0x41d61c[_0x2065('0xab')]=!0x0,_0x41d61c['stop']());},{'priority':'highest'}),this[_0x2065('0x51')]['conversion'][_0x2065('0x11a')](_0x2065('0xea'))[_0x2065('0x82')](_0x14b432=>{_0x14b432['on'](_0x2065('0xb8'),(_0x4ac768,_0x10c3a4,_0x387882)=>{if('\x20'!=_0x10c3a4[_0x2065('0xff')]['data']||_0x10c3a4[_0x2065('0xff')][_0x2065('0x77')][_0x2065('0x89')]>0x1)return;if(!_0x387882[_0x2065('0x25')][_0x2065('0xa9')](_0x10c3a4[_0x2065('0xff')],_0x4ac768[_0x2065('0x46')]))return;const _0x30b6a7=_0x387882[_0x2065('0xc0')],_0x24ed41=_0x387882[_0x2065('0xe9')][_0x2065('0x9')](_0x10c3a4['range']);_0x30b6a7[_0x2065('0xcf')](_0x24ed41,_0x30b6a7[_0x2065('0xad')]('span'));});}),this[_0x2065('0x51')][_0x2065('0x88')][_0x2065('0x11a')]('dataDowncast')['markerToData']({'model':'revision'}),this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0xae')]['on'](_0x2065('0xe5'),function(_0x5baead){const _0x4bacdb=_0x5baead['plugins'][_0x2065('0x63')]('RevisionViewer');return(_0x56a205,_0x4d5aa1,_0x218a3f)=>{const _0x40c4ca=_0x4d5aa1['markerName'][_0x2065('0x6c')](':')[0x1],_0x3a8b25=_0x4bacdb[_0x2065('0x5d')](_0x40c4ca);if(!_0x3a8b25)return null;const _0x52aa4e=_0x2065('0x82')==_0x3a8b25[_0x2065('0x30')]?_0x2065('0x6c'):_0x2065('0x43');if(!_0x218a3f[_0x2065('0x25')][_0x2065('0x10')](_0x4d5aa1['markerRange'],_0x56a205[_0x2065('0x46')]))return;const _0x221e7e=_0x4d5aa1[_0x2065('0x125')]['getWalker'](),_0x24b331=_0x4d5aa1[_0x2065('0x125')][_0x2065('0x81')],_0x1f2832=_0x5baead[_0x2065('0xb4')]['schema'];let _0x22d1cd=null,_0x8ee75e=null,_0x391c25=!0x1,_0x281570=!0x1;for(const _0x540c89 of _0x221e7e){const _0x1c044b=_0x540c89['item'];_0x391c25=_0x391c25||_0x1f2832[_0x2065('0xa6')](_0x1c044b);const _0x265bc5=_0x218a3f['mapper'][_0x2065('0x9d')](_0x1c044b);if(_0x265bc5&&_0x265bc5[_0x2065('0x41')](_0x2065('0x45')))return;_0x2065('0x1b')==_0x540c89[_0x2065('0x30')]&&(_0x1f2832[_0x2065('0xd9')](_0x1c044b)&&!_0x1f2832[_0x2065('0xf3')](_0x1c044b)&&(_0x1c044b['nextSibling']||_0x24b331[_0x2065('0xb0')]?_0x22d1cd&&_0x22d1cd[_0x2065('0x77')]==_0x1c044b||(_0x22d1cd=_0x1c044b,_0xc54608(_0x540c89[_0x2065('0x23')]),_0x281570=!0x0):_0x8ee75e=_0x8ee75e||_0x540c89[_0x2065('0x23')]));}function _0xc54608(_0x5cd51a){const _0x4a5865=_0x218a3f[_0x2065('0xc0')][_0x2065('0x90')]('span',{'class':'ck-suggestion-marker-'+_0x52aa4e}),_0x11aa49=_0x218a3f['mapper'][_0x2065('0xfa')](_0x5cd51a);_0x3a8b25[_0x2065('0xf9')][_0x2065('0x42')]&&_0x218a3f[_0x2065('0xc0')][_0x2065('0x60')](_0x2065('0x20')+_0x52aa4e+_0x2065('0xe8'),_0x4a5865),_0x4bacdb[_0x2065('0x78')]==_0x3a8b25&&_0x218a3f[_0x2065('0xc0')][_0x2065('0x60')](_0x2065('0xf8'),_0x4a5865),_0x218a3f[_0x2065('0xc0')]['insert'](_0x11aa49,_0x4a5865),_0x218a3f[_0x2065('0xe9')][_0x2065('0x7f')](_0x4a5865,_0x4d5aa1['markerName']);}_0x391c25||_0x281570||!_0x8ee75e||_0xc54608(_0x8ee75e);};}(this[_0x2065('0x51')]),{'priority':_0x2065('0x107')}),this['editor']['editing']['downcastDispatcher']['on'](_0x2065('0xa5'),(_0x1d9e0b,_0xa186dd,_0x1f48b6)=>{const _0x37f41f=_0x1f48b6['mapper'][_0x2065('0x76')](_0xa186dd[_0x2065('0xcc')]);if(_0x37f41f)for(const _0x14732f of _0x37f41f)(_0x14732f[_0x2065('0x11c')](_0x2065('0x13'))||_0x14732f[_0x2065('0x11c')](_0x2065('0xa')))&&(_0x1f48b6['mapper'][_0x2065('0x7b')](_0x14732f,_0xa186dd[_0x2065('0xcc')]),_0x1f48b6['writer'][_0x2065('0xe1')](_0x14732f));},{'priority':_0x2065('0x107')}),this[_0x2065('0x51')][_0x2065('0x11d')]['downcastDispatcher']['on']('addMarker:revision',(_0x507612,_0xd8362b,_0x190714)=>{const _0x23d16d=_0xd8362b['markerName']['split'](':')[0x1],_0x1bace4=this[_0x2065('0x5d')](_0x23d16d);if(!_0x1bace4)return null;const _0x105c6d=_0x2065('0x82')==_0x1bace4[_0x2065('0x30')]?_0x2065('0x6c'):'merge';if(_0x190714['consumable'][_0x2065('0x10')](_0xd8362b['markerRange'],_0x507612[_0x2065('0x46')]))for(const _0x58026b of _0xd8362b[_0x2065('0x125')]['getItems']()){if(!_0x58026b['is'](_0x2065('0xee'),_0x2065('0xdc')))continue;const _0x4451b6=_0x190714[_0x2065('0xc0')][_0x2065('0x90')]('span',{'class':_0x2065('0x20')+_0x105c6d}),_0x4fbe60=_0x190714[_0x2065('0xe9')][_0x2065('0xfa')](this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0xb9')](_0x58026b));_0x1bace4[_0x2065('0xf9')][_0x2065('0x42')]&&_0x190714[_0x2065('0xc0')][_0x2065('0x60')](_0x2065('0x20')+_0x105c6d+'-new',_0x4451b6),this[_0x2065('0x78')]==_0x1bace4&&_0x190714[_0x2065('0xc0')]['addClass']('ck-suggestion-marker--active',_0x4451b6),_0x190714[_0x2065('0xc0')]['insert'](_0x4fbe60,_0x4451b6),_0x190714[_0x2065('0xe9')][_0x2065('0x7f')](_0x4451b6,_0xd8362b[_0x2065('0xcc')]);}},{'priority':'high'}),this[_0x2065('0x51')]['model']['document']['on'](_0x2065('0x8d'),()=>{this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0x8c')]['change'](_0x979dab=>{for(const _0x15a1fa of this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0x2')][_0x2065('0x4b')]()){const _0x5ed4e8=this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0x2')]['getRoot'](_0x15a1fa),_0x26d4a4=this[_0x2065('0x51')][_0x2065('0x11d')]['view'][_0x2065('0x2')]['getRoot'](_0x15a1fa);if(_0x26d4a4){const _0x55c8ec=_0x5ed4e8[_0x2065('0x57')](_0x2065('0x64'));if(_0x979dab['removeAttribute'](_0x2065('0xb'),_0x26d4a4),_0x979dab['removeClass'](_0x2065('0x9a'),_0x26d4a4),_0x979dab[_0x2065('0x2b')](_0x2065('0x6b'),_0x26d4a4),_0x979dab['removeClass'](_0x2065('0xd7'),_0x26d4a4),_0x55c8ec){const _0x37c9cc=this[_0x2065('0x5d')](_0x55c8ec);if(!_0x37c9cc)return null;_0x979dab[_0x2065('0x19')](_0x2065('0xb'),_0x55c8ec,_0x26d4a4),_0x979dab[_0x2065('0x60')]('ck-revision-history-root-'+_0x37c9cc[_0x2065('0x30')],_0x26d4a4),this[_0x2065('0x78')]==_0x37c9cc&&_0x979dab[_0x2065('0x60')](_0x2065('0xd7'),_0x26d4a4);}}}});}),this['editor'][_0x2065('0x88')]['for'](_0x2065('0x79'))[_0x2065('0xa0')]({'view':_0x2065('0x47'),'model':_0x521f77=>_0x2065('0xb1')+_0x521f77,'converterPriority':_0x2065('0x10c')}),this[_0x2065('0x51')][_0x2065('0x88')][_0x2065('0x11a')](_0x2065('0x79'))[_0x2065('0xa0')]({'view':_0x2065('0x112'),'model':_0x55c413=>_0x2065('0x35')+_0x55c413,'converterPriority':'highest'}),this[_0x2065('0x51')][_0x2065('0x88')][_0x2065('0x11a')](_0x2065('0xea'))[_0x2065('0x66')]({'model':_0x2065('0x92'),'view':_0x561a6e=>({'name':_0x2065('0xaa')+_0x561a6e,'group':_0x2065('0x92')}),'converterPriority':_0x2065('0x10c')}),this[_0x2065('0x51')]['conversion'][_0x2065('0x11a')]('editingDowncast')[_0x2065('0xa2')]({'model':_0x2065('0x92'),'view':_0x282fd6=>{const _0x24b045=_0x282fd6[_0x2065('0xcc')][_0x2065('0x6c')](':')[0x1];return _0x2065('0x9e')!=_0x24b045&&_0x2065('0x7d')!=_0x24b045?null:{'classes':[_0x2065('0x113'),_0x2065('0xe7')+_0x24b045]};}}),this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0xae')]['on'](_0x2065('0x2c'),et(this[_0x2065('0x51')],_0x2065('0x43')),{'priority':_0x2065('0x107')}),this['editor'][_0x2065('0x11d')]['downcastDispatcher']['on'](_0x2065('0x3a'),et(this[_0x2065('0x51')],_0x2065('0x6c')),{'priority':_0x2065('0x107')}),this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0xae')]['on'](_0x2065('0x38'),(_0x494267,_0x1bb660,_0xb48438)=>{const _0x55dc0d=_0xb48438[_0x2065('0xe9')][_0x2065('0x76')](_0x1bb660['markerName']);if(_0x55dc0d)for(const _0x4f899c of _0x55dc0d)_0x4f899c['is'](_0x2065('0x34'))&&(_0xb48438[_0x2065('0xe9')][_0x2065('0x7b')](_0x4f899c,_0x1bb660['markerName']),_0xb48438[_0x2065('0xc0')][_0x2065('0xe1')](_0x4f899c));},{'priority':'high'});}['_getChangeFromId'](_0x283c7c){return this['_changeIdToChange'][_0x2065('0x63')](_0x283c7c);}[_0x2065('0x70')](_0x2bd591){return this[_0x2065('0x6e')]&&this[_0x2065('0x6e')][_0x2065('0xe')](),this['_changeView']=new _0x5e0533(this[_0x2065('0x51')][_0x2065('0xa1')],_0x2bd591),this[_0x2065('0x6e')];}['_initInteractions'](){this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0x2')][_0x2065('0x11f')]['observeMarkers'](_0x2065('0xb6')),this['on']('change:activeView',(_0x428273,_0x2e55d5,_0xf788b1,_0x4631bd)=>{_0x4631bd&&this[_0x2065('0x24')][_0x2065('0xe1')](_0x4631bd),_0xf788b1&&(this['_balloon'][_0x2065('0x82')]({'view':_0xf788b1,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4b76f9=this[_0x2065('0x51')][_0x2065('0x11d')],_0x1e4aad=this['_getChangeFromId'](_0xf788b1[_0x2065('0x126')]);let _0x12094a;if(_0x1e4aad[_0x2065('0xf9')]['isOnRoot']){const _0x1622ad=_0x4b76f9['view'][_0x2065('0xdf')](_0x1e4aad[_0x2065('0xc8')]);_0x12094a=Array['from'](_0x1622ad[_0x2065('0xd4')]());}else{const _0x33758e=this[_0x2065('0x51')][_0x2065('0xb4')][_0x2065('0x15')]['get'](_0x2065('0x39')+_0xf788b1[_0x2065('0x126')]);_0x12094a=Array[_0x2065('0x1c')](_0x4b76f9[_0x2065('0xe9')]['markerNameToElements'](_0x33758e[_0x2065('0x46')]))[_0x2065('0x2e')](_0x124e4d=>_0x4b76f9[_0x2065('0x8c')][_0x2065('0x123')]['mapViewToDom'](_0x124e4d))[_0x2065('0x2e')](_0x5a6650=>Array[_0x2065('0x1c')](_0x5a6650[_0x2065('0xd4')]()))[_0x2065('0x95')]();}if(!this[_0x2065('0x36')])return _0x12094a[0x0];return _0x12094a[_0x2065('0xda')](_0x15ee71=>_0x15ee71['top']-0x3<=this[_0x2065('0x36')]['y']&&_0x15ee71['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x15ee71[_0x2065('0x4d')]-0x3<=this[_0x2065('0x36')]['x']&&_0x15ee71[_0x2065('0xc5')]+0x3>=this[_0x2065('0x36')]['x'])||_0x12094a[0x0];}}}),this['_balloon'][_0x2065('0x85')](_0x2065('0xe3')));}),this['on'](_0x2065('0x119'),(_0x128eb9,_0x3bc10c,_0x18ee54,_0x33fe94)=>{this[_0x2065('0x5f')]=_0x18ee54?this[_0x2065('0x70')](_0x18ee54):null,this[_0x2065('0x51')][_0x2065('0xb4')]['change'](()=>{const _0x22476a=this[_0x2065('0x51')]['editing'];_0x33fe94&&(_0x33fe94[_0x2065('0xf9')][_0x2065('0x6f')]?_0x22476a['view'][_0x2065('0x8d')](_0x313f47=>{_0x313f47['removeClass'](_0x2065('0xd7'),_0x22476a[_0x2065('0x8c')][_0x2065('0x2')][_0x2065('0x4c')](_0x33fe94[_0x2065('0xc8')]));}):_0x22476a[_0x2065('0xc')]('revision:'+_0x33fe94['id'])),_0x18ee54&&(_0x18ee54[_0x2065('0xf9')][_0x2065('0x6f')]?_0x22476a[_0x2065('0x8c')][_0x2065('0x8d')](_0x18d68c=>{_0x18d68c[_0x2065('0x60')](_0x2065('0xd7'),_0x22476a[_0x2065('0x8c')][_0x2065('0x2')][_0x2065('0x4c')](_0x18ee54[_0x2065('0xc8')]));}):_0x22476a[_0x2065('0xc')](_0x2065('0x39')+_0x18ee54['id']));});}),this[_0x2065('0xbe')](this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0x8c')][_0x2065('0x2')],_0x2065('0x18'),(_0x56612a,_0x5bb846)=>{if(this[_0x2065('0x78')])return;const _0x56d125=this[_0x2065('0xfc')](_0x5bb846[_0x2065('0x8f')]),_0x170c57=this[_0x2065('0x12')][_0x2065('0x63')](_0x56d125);_0x170c57?(this[_0x2065('0x36')]={'x':_0x5bb846[_0x2065('0x96')]['x'],'y':_0x5bb846[_0x2065('0x96')]['y']},this['activeView']=this[_0x2065('0x70')](_0x170c57)):(this['_activeViewTarget']=null,this['activeView']=null);}),this[_0x2065('0xbe')](this[_0x2065('0x51')][_0x2065('0x11d')][_0x2065('0x8c')][_0x2065('0x2')],_0x2065('0x50'),(_0x573eb0,_0x2da535)=>{const _0x2968b5=this[_0x2065('0xfc')](_0x2da535[_0x2065('0x8f')]),_0x42ed57=this['_changeIdToChange'][_0x2065('0x63')](_0x2968b5);_0x42ed57?(this['_activeViewTarget']={'x':_0x2da535[_0x2065('0x96')]['x'],'y':_0x2da535[_0x2065('0x96')]['y']},_0x42ed57===this[_0x2065('0x78')]?this[_0x2065('0x24')]['updatePosition']():this['activeChange']=_0x42ed57):(this[_0x2065('0x36')]=null,this[_0x2065('0x78')]=null);});}['_findChangeIdFromDomTarget'](_0x81364c){do{const _0x482be0=_0x81364c[_0x2065('0x57')](_0x2065('0xb'));if(_0x482be0)return _0x482be0;_0x81364c=_0x81364c['parent'];}while(_0x81364c);return null;}['_cleanMarkers'](){this[_0x2065('0x51')]['model'][_0x2065('0x8d')](_0x4567b1=>{for(const _0x43cb42 of this['editor']['model'][_0x2065('0x15')])_0x4567b1[_0x2065('0xbf')](_0x43cb42);});}}function et(_0x352822,_0x2cda11){return(_0x50ec3d,_0x259f48,_0x4fb384)=>{if(!_0x4fb384[_0x2065('0x25')][_0x2065('0x10')](_0x259f48[_0x2065('0x125')],_0x50ec3d[_0x2065('0x46')]))return;const _0x335212=_0x259f48['markerRange']['getWalker'](),_0x27a1dc=_0x259f48[_0x2065('0x125')][_0x2065('0x81')],_0x2b0a34=_0x352822[_0x2065('0xb4')]['schema'];let _0x4baaea=null,_0x349712=null,_0x32a70b=!0x1,_0x3f21f0=!0x1;for(const _0x478b02 of _0x335212){const _0x3a3d69=_0x478b02[_0x2065('0xff')];_0x32a70b=_0x32a70b||_0x2b0a34[_0x2065('0xa6')](_0x3a3d69);const _0x38fbf8=_0x4fb384['mapper'][_0x2065('0x9d')](_0x3a3d69);if(_0x38fbf8&&_0x38fbf8[_0x2065('0x41')](_0x2065('0x45')))return;'elementEnd'==_0x478b02[_0x2065('0x30')]&&(_0x2b0a34['isBlock'](_0x3a3d69)&&!_0x2b0a34[_0x2065('0xf3')](_0x3a3d69)&&(_0x3a3d69[_0x2065('0x14')]||_0x27a1dc[_0x2065('0xb0')]?_0x4baaea&&_0x4baaea['parent']==_0x3a3d69||(_0x4baaea=_0x3a3d69,_0x38e119(_0x478b02[_0x2065('0x23')]),_0x3f21f0=!0x0):_0x349712=_0x349712||_0x478b02['previousPosition']));}function _0x38e119(_0x4992ab){const _0x2bfb7a=_0x4fb384[_0x2065('0xe9')][_0x2065('0xfa')](_0x4992ab),_0x502ec4=_0x4fb384[_0x2065('0xc0')]['createUIElement'](_0x2065('0x61'),{'class':_0x2065('0xe7')+_0x2cda11});_0x4fb384[_0x2065('0xc0')][_0x2065('0xbd')](_0x2bfb7a,_0x502ec4),_0x4fb384[_0x2065('0xe9')][_0x2065('0x7f')](_0x502ec4,_0x259f48[_0x2065('0xcc')]);}_0x32a70b||_0x3f21f0||!_0x349712||_0x38e119(_0x349712);};}export class RestoreRevisionCommand extends _0x4e6f4e{constructor(_0x76b35a){super(_0x76b35a);const _0x2f8076=_0x76b35a[_0x2065('0xec')][_0x2065('0x63')](d);this[_0x2065('0xdd')]=!0x1,this[_0x2065('0xbe')](_0x2f8076,_0x2065('0x3f'),()=>this[_0x2065('0x84')]()),this[_0x2065('0xbe')](_0x2f8076,_0x2065('0xf5'),()=>this['refresh']());}[_0x2065('0x26')](){const _0x25d549=this[_0x2065('0x51')],_0x133d75=_0x25d549[_0x2065('0xec')][_0x2065('0x63')](d),_0x224b24=_0x133d75[_0x2065('0x106')]?_0x133d75['diff'][_0x2065('0x52')]:null;_0x25d549[_0x2065('0x1')][_0x2065('0x63')](_0x2065('0x68'))[_0x2065('0xe0')](_0x224b24);}[_0x2065('0x84')](){const {isReady:_0x11447a,isEnabled:_0x24de6b}=this[_0x2065('0x51')]['plugins'][_0x2065('0x63')](d);this[_0x2065('0xac')]=_0x11447a&&_0x24de6b;}}export class ShowChangeCommand extends _0x4e6f4e{constructor(_0x20b830,{direction:_0x2f0332}){super(_0x20b830);const _0x208528=_0x20b830[_0x2065('0xec')][_0x2065('0x63')](d);this[_0x2065('0xdd')]=!0x1,this[_0x2065('0x86')]=_0x2065('0x10a')===_0x2f0332?0x1:-0x1,this[_0x2065('0xbe')](_0x208528,'change:isReady',()=>this[_0x2065('0x84')]()),this[_0x2065('0xbe')](_0x208528,_0x2065('0xf5'),()=>this[_0x2065('0x84')]()),this['listenTo'](_0x208528,'change:activeChange',()=>this[_0x2065('0x84')]());}['execute'](){const _0x5c9e2d=this[_0x2065('0x51')],_0x274c56=_0x5c9e2d['plugins'][_0x2065('0x63')](d),{isNavigationMode:_0x2c8f35,currentChangeNumber:_0x3253e8}=_0x274c56;let _0x31280b;if(_0x274c56[_0x2065('0x78')]=_0x2c8f35?_0x274c56['diff'][_0x2065('0xf6')][_0x2065('0x63')](_0x3253e8+this['_step']):_0x274c56['diff'][_0x2065('0xf6')]['first'],_0x274c56[_0x2065('0x78')][_0x2065('0xf9')][_0x2065('0x6f')])_0x31280b=_0x5c9e2d[_0x2065('0x11d')][_0x2065('0x8c')][_0x2065('0xdf')](_0x274c56['activeChange'][_0x2065('0xc8')]);else{const _0x3bd827=_0x5c9e2d['model'][_0x2065('0x15')]['get'](_0x2065('0x39')+_0x274c56['activeChange']['id']);_0x31280b=_0xe0fa1e(_0x5c9e2d['editing'],_0x3bd827);}_0x24de7d({'target':_0x31280b,'viewportOffset':0x28});}[_0x2065('0x84')](){const {isNavigationMode:_0x11602f,currentChangeNumber:_0x453b65,numberOfChanges:_0xcc5ce9,isReady:_0x5b0ae6,isEnabled:_0x2c4f83}=this[_0x2065('0x51')]['plugins'][_0x2065('0x63')](d);this[_0x2065('0xac')]=!!(_0x2c4f83&&_0x5b0ae6&&_0xcc5ce9)&&(!_0x11602f||(0x1===this[_0x2065('0x86')]?_0x453b65<_0xcc5ce9-0x1:_0x453b65>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4dc9=['ck-revision-history-sidebar__revision__actions','locale','bind','items','find','bindTemplate','Name\x20this\x20revision','threeVerticalDots','isVisible','set','function','buttonView','add','isActionsDropdownOpen','action','listenTo','listView','first','stopPropagation','isEnabled','source','name','change:isActionsDropdownOpen','Restore\x20this\x20revision','isOpen','execute','Show\x20more\x20items','_action','map','extendTemplate'];(function(_0x41807f,_0x4dc9fa){const _0x223d19=function(_0x2cbe4f){while(--_0x2cbe4f){_0x41807f['push'](_0x41807f['shift']());}};_0x223d19(++_0x4dc9fa);}(_0x4dc9,0x177));const _0x223d=function(_0x41807f,_0x4dc9fa){_0x41807f=_0x41807f-0x0;let _0x223d19=_0x4dc9[_0x41807f];return _0x223d19;};import{Collection as _0x51b7d8}from'ckeditor5/src/utils.js';import{icons as _0x169e63}from'ckeditor5/src/core.js';import{ViewModel as _0x20fd75,addListToDropdown as _0x4bd276,createDropdown as _0x15365e}from'ckeditor5/src/ui.js';import{getTranslation as _0x1e777d}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0xe12048,_0x1c4ec6){const _0x5d8de9=_0xe12048[_0x223d('0x14')],_0x26b5aa=_0xe12048['locale'],_0x5dfe9=_0x15365e(_0x26b5aa);_0x5dfe9['panelPosition']='sw';const _0x4445f6=function(_0x312d61,_0x2eeabd){const _0x521e76=function(_0x5a4f15,_0x296390){const _0x14b6e6=_0x5a4f15[_0x223d('0x10')],_0x1f2326={'Compare\x20against\x20selected':_0x1e777d(_0x14b6e6,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x1e777d(_0x14b6e6,_0x223d('0x15')),'Restore\x20this\x20revision':_0x1e777d(_0x14b6e6,_0x223d('0x8'))};return _0x296390[_0x223d('0xd')](_0x3fcca2=>{const _0x229349=_0x1f2326[_0x3fcca2['name']];return _0x229349&&_0x229349!==_0x3fcca2[_0x223d('0x6')]&&(_0x3fcca2['name']=_0x229349),_0x3fcca2;});}(_0x312d61,_0x2eeabd),_0x4daeb9=new _0x51b7d8();for(const _0x38fc58 of _0x521e76){const _0x1e4ab9={'type':'button','model':new _0x20fd75({'label':_0x38fc58[_0x223d('0x6')],'class':_0x38fc58['class'],'withText':!0x0,'_action':_0x38fc58[_0x223d('0x1d')]})};_0x1e4ab9['model'][_0x223d('0x11')](_0x223d('0x4'))['to'](_0x312d61,_0x223d('0x1c'),_0x3d85cb=>_0x223d('0x19')!=typeof _0x38fc58['isEnabled']||(!_0x3d85cb||_0x38fc58[_0x223d('0x4')](_0x312d61))),_0x4daeb9[_0x223d('0x1b')](_0x1e4ab9);}return _0x4daeb9;}(_0xe12048,_0x1c4ec6);return _0xe12048[_0x223d('0x11')]('isActionsDropdownOpen')['to'](_0x5dfe9,_0x223d('0x9')),_0x5dfe9[_0x223d('0x1a')][_0x223d('0x18')]({'label':_0x1e777d(_0x26b5aa,_0x223d('0xb')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x169e63[_0x223d('0x16')]}),_0x5dfe9[_0x223d('0xe')]({'attributes':{'class':[_0x223d('0xf'),_0x5d8de9['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5d8de9['to'](_0x4a4743=>_0x4a4743[_0x223d('0x3')]())}}),_0x5dfe9['on'](_0x223d('0xa'),_0x1bffa2=>{_0xe12048['isReady']&&_0x223d('0x19')==typeof _0x1bffa2['source'][_0x223d('0xc')]&&_0x1bffa2[_0x223d('0x5')][_0x223d('0xc')](_0xe12048);}),_0x4bd276(_0x5dfe9,_0x4445f6),_0x5dfe9[_0x223d('0x0')](_0xe12048,_0x223d('0x7'),(_0x655d2,_0x3d88e6,_0x5ee2b5)=>{if(_0x5ee2b5)for(const _0x4bcae4 of _0x5dfe9[_0x223d('0x1')][_0x223d('0x12')]){const _0x602ad6=_0x4bcae4['children'][_0x223d('0x2')],_0x536803=_0x1c4ec6[_0x223d('0x13')](_0x329223=>_0x329223[_0x223d('0x1d')]===_0x602ad6['_action'])[_0x223d('0x17')];_0x4bcae4['isVisible']=void 0x0===_0x536803||_0x536803(_0xe12048);}}),_0x5dfe9;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2cbd=['ck-revision-history-sidebar__revision-author__name','Revision\x20author','Revision\x20creator','setTemplate','name'];(function(_0x5c9f4d,_0x2cbdeb){const _0x4164f7=function(_0x5b39a8){while(--_0x5b39a8){_0x5c9f4d['push'](_0x5c9f4d['shift']());}};_0x4164f7(++_0x2cbdeb);}(_0x2cbd,0x1e9));const _0x4164=function(_0x5c9f4d,_0x2cbdeb){_0x5c9f4d=_0x5c9f4d-0x0;let _0x4164f7=_0x2cbd[_0x5c9f4d];return _0x4164f7;};import{View as _0x230424,IconView as _0x40b823}from'ckeditor5/src/ui.js';import{getTranslation as _0x5c3a35}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x6e9aef from'../../../theme/icons/user.svg';export default class ti extends _0x230424{constructor(_0x597087,_0xcfee0a,_0x3d2f51){super(_0x597087);const _0x294650=new _0x40b823();_0x294650['set']({'content':_0x6e9aef,'viewBox':'0\x200\x2011\x2010'});const _0x105a95=['ck','ck-revision-history-sidebar__revision-author'];_0x3d2f51&&_0x105a95['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5db3ae=[{'tag':'span','attributes':{'class':['ck',_0x4164('0x1')],'title':_0x5c3a35(_0x597087,_0x3d2f51?_0x4164('0x3'):_0x4164('0x2'))},'children':[_0x294650,_0xcfee0a[_0x4164('0x0')]]}];this[_0x4164('0x4')]({'tag':'li','attributes':{'class':_0x105a95},'children':_0x5db3ae});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x85c3=['span','Revision\x20name','extendTemplate'];(function(_0x5f973e,_0x85c3d1){var _0x88062b=function(_0x2c7ef5){while(--_0x2c7ef5){_0x5f973e['push'](_0x5f973e['shift']());}};_0x88062b(++_0x85c3d1);}(_0x85c3,0x7d));var _0x8806=function(_0x5f973e,_0x85c3d1){_0x5f973e=_0x5f973e-0x0;var _0x88062b=_0x85c3[_0x5f973e];return _0x88062b;};import{LabeledFieldView as _0x288191}from'ckeditor5/src/ui.js';import{getTranslation as _0x3bad99}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x288191{constructor(_0x32b870,_0x9efcdd){super(_0x32b870,_0x9efcdd),this['set']({'label':_0x3bad99(_0x32b870,_0x8806('0x2'))}),this[_0x8806('0x0')]({'tag':_0x8806('0x1'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d9f=['setName','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','revisionNameView','filter','ck-revision-history-sidebar__revision_highlighted','creator','unshift','closest','bindTemplate','ck-disabled','value','select','unhighlight','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__date','isHighlighted','_createdAtFormatted','setTemplate','authors','change','revisionActionsView','isEnabled','highlight','div','render','220','bind','deselect','isReady','createdAt','_revision','listenTo','placeholder','.ck-thread__remove-confirm','fieldView','set','ck-revision-history-sidebar__revision-wrapper','uiLanguage','map','ck-revision-history-sidebar__revision__controls-wrapper','isSelected','fire','element','ck-reset','extendTemplate','isConfirm','ck-revision-history-sidebar__revision-authors'];(function(_0x545da7,_0x1d9ff8){const _0x2c7fe9=function(_0x53c2b5){while(--_0x53c2b5){_0x545da7['push'](_0x545da7['shift']());}};_0x2c7fe9(++_0x1d9ff8);}(_0x1d9f,0x1c6));const _0x2c7f=function(_0x545da7,_0x1d9ff8){_0x545da7=_0x545da7-0x0;let _0x2c7fe9=_0x1d9f[_0x545da7];return _0x2c7fe9;};import{View as _0x32fd3d,createLabeledInputText as _0x3d7dce}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x9d6ed8}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x47d128 from'./revisionnameview.js';import _0x143c90 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x461e62}from'./utils.js';import{createActionsDropdownView as _0x3ea924}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x9d6ed8(_0x32fd3d){constructor(_0x1e5b76,_0x5adc57,_0x5e6f08){super(_0x1e5b76);const _0x4dd1b3=this[_0x2c7f('0x18')],_0x2f15cf=function(_0x4ed750,_0x32f9d7){const _0x239489=Array['from'](_0x32f9d7[_0x2c7f('0x22')])[_0x2c7f('0x13')](_0x3a7615=>_0x3a7615!=_0x32f9d7[_0x2c7f('0x15')]);return _0x32f9d7['creator']&&_0x239489[_0x2c7f('0x16')](_0x32f9d7[_0x2c7f('0x15')]),_0x239489[_0x2c7f('0x7')](_0xb9d93b=>new _0x143c90(_0x4ed750,_0xb9d93b,_0xb9d93b==_0x32f9d7['creator']));}(_0x1e5b76,_0x5adc57);this['id']=_0x5adc57['id'],this[_0x2c7f('0x2e')]=_0x5adc57,this[_0x2c7f('0x2a')]('name',_0x2c7f('0x2d'))['to'](_0x5adc57),this[_0x2c7f('0x2a')](_0x2c7f('0x20'))['to'](this,_0x2c7f('0x2d'),_0x2f5a0f=>_0x2f5a0f?_0x461e62(_0x1e5b76[_0x2c7f('0x6')],_0x2f5a0f):void 0x0),this['set'](_0x2c7f('0x9'),!0x1),this[_0x2c7f('0x4')](_0x2c7f('0x1f'),!0x1),this[_0x2c7f('0x4')]('isActionsDropdownOpen',!0x1),this[_0x2c7f('0x4')]('isReady',!0x1),this[_0x2c7f('0x4')](_0x2c7f('0x25'),!0x1),this[_0x2c7f('0x12')]=new _0x47d128(_0x1e5b76,_0x3d7dce),this['revisionNameView'][_0x2c7f('0x3')][_0x2c7f('0xd')]({'attributes':{'maxlength':_0x2c7f('0x29')}}),this[_0x2c7f('0x12')][_0x2c7f('0x3')][_0x2c7f('0x2a')](_0x2c7f('0x1a'),_0x2c7f('0x1'))['to'](this,'name',_0x2c7f('0x20')),this[_0x2c7f('0x12')][_0x2c7f('0x2a')](_0x2c7f('0x25'))['to'](this,_0x2c7f('0x9'),this,_0x2c7f('0x25'),(_0x2a850d,_0x5f59ea)=>_0x2a850d&&_0x5f59ea),this[_0x2c7f('0x24')]=_0x5e6f08&&_0x5e6f08['length']?_0x3ea924(this,_0x5e6f08):'',this[_0x2c7f('0x24')]&&this[_0x2c7f('0x24')][_0x2c7f('0x2a')]('isEnabled')['to'](this),this[_0x2c7f('0x21')]({'tag':_0x2c7f('0x27'),'attributes':{'class':['ck','ck-reset',_0x2c7f('0x5'),_0x4dd1b3['if'](_0x2c7f('0xe'),_0x2c7f('0x11'))]},'children':[{'tag':_0x2c7f('0x27'),'attributes':{'class':['ck',_0x2c7f('0xc'),'ck-revision-history-sidebar__revision',_0x4dd1b3['if'](_0x2c7f('0x25'),_0x2c7f('0x19'),_0x4fe0d1=>!_0x4fe0d1),_0x4dd1b3['if'](_0x2c7f('0x9'),_0x2c7f('0x1d')),_0x4dd1b3['if'](_0x2c7f('0x1f'),_0x2c7f('0x14')),_0x4dd1b3['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x2c7f('0x12')],{'tag':'span','attributes':{'class':['ck',_0x2c7f('0x1e')]},'children':[{'text':_0x4dd1b3['to'](_0x2c7f('0x20'))}]},{'tag':_0x2c7f('0x27'),'attributes':{'class':['ck',_0x2c7f('0x8')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x2c7f('0xf')]},'children':_0x2f15cf}]},this[_0x2c7f('0x24')]],'on':{'click':_0x4dd1b3['to'](_0x10cf7d=>{_0x10cf7d['srcElement'][_0x2c7f('0x17')](_0x2c7f('0x2'))||this[_0x2c7f('0x2c')]&&this[_0x2c7f('0x25')]&&this[_0x2c7f('0xa')](_0x2c7f('0x1b'),{'id':this['id']});})}}]});}[_0x2c7f('0x28')](){super[_0x2c7f('0x28')]();const _0x392014=this[_0x2c7f('0x12')][_0x2c7f('0x3')][_0x2c7f('0xb')];this[_0x2c7f('0x0')](_0x392014,_0x2c7f('0x23'),()=>{this['fire'](_0x2c7f('0x10'),{'id':this['id'],'name':_0x392014['value']});});}[_0x2c7f('0x1b')](){this['isSelected']=!0x0;}[_0x2c7f('0x2b')](){this[_0x2c7f('0x9')]=!0x1;}[_0x2c7f('0x26')](){this[_0x2c7f('0x1f')]=!0x0;}[_0x2c7f('0x1c')](){this[_0x2c7f('0x1f')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ce1=['bindTemplate','click','toggle','isVisible','false','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-revision-history-sidebar__subrevision-collapser__inner','set','true','span'];(function(_0x5bc97c,_0x2ce183){const _0xdfef92=function(_0x28f2ed){while(--_0x28f2ed){_0x5bc97c['push'](_0x5bc97c['shift']());}};_0xdfef92(++_0x2ce183);}(_0x2ce1,0x1e5));const _0xdfef=function(_0x5bc97c,_0x2ce183){_0x5bc97c=_0x5bc97c-0x0;let _0xdfef92=_0x2ce1[_0x5bc97c];return _0xdfef92;};import{View as _0x3253b7}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x3253b7{constructor(_0x1cefe8){super(_0x1cefe8);const _0xf19a90=this[_0xdfef('0xa')];this[_0xdfef('0x7')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0xdfef('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0xf19a90['if'](_0xdfef('0x2'),'ck-hidden',_0x4b33cb=>!_0x4b33cb),_0xf19a90['if'](_0xdfef('0x4'),_0xdfef('0x5'))],'role':'button','aria-pressed':_0xf19a90['to'](_0xdfef('0x4'),_0x39b207=>_0x39b207?_0xdfef('0x3'):_0xdfef('0x8'))},'children':[{'tag':_0xdfef('0x9'),'attributes':{'class':['ck',_0xdfef('0x6')]}}],'on':{'click':_0xf19a90['to'](_0xdfef('0x0'))}});}[_0xdfef('0x1')](){this[_0xdfef('0x4')]=!this[_0xdfef('0x4')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfae3=['ck-reset','select','bind','createdAt','div','isSelected','_parentRevisionId','ck-revision-history-sidebar__revision__date','creator','setTemplate','_createdAtFormatted','deselect','span','ck-revision-history-sidebar__subrevision'];(function(_0x2f47a8,_0xfae3ef){const _0x4114f0=function(_0x290875){while(--_0x290875){_0x2f47a8['push'](_0x2f47a8['shift']());}};_0x4114f0(++_0xfae3ef);}(_0xfae3,0x12a));const _0x4114=function(_0x2f47a8,_0xfae3ef){_0x2f47a8=_0x2f47a8-0x0;let _0x4114f0=_0xfae3[_0x2f47a8];return _0x4114f0;};import{View as _0x1fbba7}from'ckeditor5/src/ui.js';import _0x421de5 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x25df22}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x1fbba7{constructor(_0xc8781,_0x3bc901,_0x3c3062){super(_0xc8781);const _0x46fa08=this['bindTemplate'];this['id']=_0x3bc901['id'],this['bind'](_0x4114('0xd'))['to'](_0x3bc901),this['set']('isSelected',!0x1),this[_0x4114('0xc')](_0x4114('0x6'))['to'](this,_0x4114('0xd'),_0x5a295e=>_0x5a295e?_0x25df22(_0xc8781['uiLanguage'],_0x5a295e):void 0x0),this['_parentRevisionId']=_0x3c3062,this[_0x4114('0x5')]({'tag':_0x4114('0x0'),'attributes':{'class':['ck',_0x4114('0xa'),'ck-revision-history-sidebar__revision',_0x4114('0x9'),_0x46fa08['if'](_0x4114('0x1'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x4114('0x8'),'attributes':{'class':['ck',_0x4114('0x3')]},'children':[{'text':_0x46fa08['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x421de5(_0xc8781,_0x3bc901[_0x4114('0x4')],!0x0)]}],'on':{'click':_0x46fa08['to'](this[_0x4114('0xb')][_0x4114('0xc')](this))}});}['select'](){this[_0x4114('0x1')]=!0x0,this['fire'](_0x4114('0xb'),{'parentId':this[_0x4114('0x2')]});}[_0x4114('0x7')](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x562d=['long','toLocaleTimeString','numeric'];(function(_0x365950,_0x562d02){var _0x3d3b3b=function(_0x4cebd0){while(--_0x4cebd0){_0x365950['push'](_0x365950['shift']());}};_0x3d3b3b(++_0x562d02);}(_0x562d,0x148));var _0x3d3b=function(_0x365950,_0x562d02){_0x365950=_0x365950-0x0;var _0x3d3b3b=_0x562d[_0x365950];return _0x3d3b3b;};export function dateToPrettyFormat(_0xa57762,_0x13bb13){return _0x13bb13['toLocaleDateString'](_0xa57762,{'month':_0x3d3b('0x2'),'day':'numeric'})+',\x20'+_0x13bb13[_0x3d3b('0x0')](_0xa57762,{'hour':_0x3d3b('0x1'),'minute':'numeric'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d83=['element','fieldView','value','add','submit','check','arrowdown','delegate','Save','arrowup','keystrokes','input','_createRevisionNameInput','render','saveButtonView','stopPropagation','revisionNameInputValue','focusFirst','form','label','_focusables','_createButton','220','cancelButtonView','shift\x20+\x20tab','trim','ck-button-save','type','locale','set','_focusCycler','revisionNameInputView','revisionName','execute','forEach','ck-button-cancel','focusTracker','Name\x20of\x20the\x20revision\x20(optional)','reset','extendTemplate','focus','arrowright','cancel'];(function(_0x3b00f1,_0x3d833d){const _0x43e741=function(_0x5cc407){while(--_0x5cc407){_0x3b00f1['push'](_0x3b00f1['shift']());}};_0x43e741(++_0x3d833d);}(_0x3d83,0x15c));const _0x43e7=function(_0x3b00f1,_0x3d833d){_0x3b00f1=_0x3b00f1-0x0;let _0x43e741=_0x3d83[_0x3b00f1];return _0x43e741;};import{icons as _0x1c1bfe}from'ckeditor5/src/core.js';import{ButtonView as _0x5379ba,FocusCycler as _0x4ae80e,LabeledFieldView as _0x37f40c,View as _0x5008e1,ViewCollection as _0x5eab3a,createLabeledInputText as _0x3a06a0,injectCssTransitionDisabler as _0x4be7c5,submitHandler as _0x37fe45}from'ckeditor5/src/ui.js';import{FocusTracker as _0x73f292,KeystrokeHandler as _0x512d7b}from'ckeditor5/src/utils.js';import{getTranslation as _0x5da161}from'../../utils/common-translations.js';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x5008e1{constructor(_0x1c921c){super(_0x1c921c),this['focusTracker']=new _0x73f292(),this[_0x43e7('0x6')]=new _0x512d7b(),this['set'](_0x43e7('0xc'),''),this[_0x43e7('0x1b')]=this['_createRevisionNameInput'](),this['saveButtonView']=this['_createButton'](_0x5da161(_0x1c921c,_0x43e7('0x4')),_0x1c1bfe[_0x43e7('0x1')],_0x43e7('0x16')),this[_0x43e7('0xa')][_0x43e7('0x17')]=_0x43e7('0x0'),this[_0x43e7('0x13')]=this[_0x43e7('0x11')](_0x5da161(_0x1c921c,'Cancel'),_0x1c1bfe['cancel'],_0x43e7('0x1f'),_0x43e7('0x26')),this[_0x43e7('0x10')]=new _0x5eab3a(),this[_0x43e7('0x1a')]=new _0x4ae80e({'focusables':this[_0x43e7('0x10')],'focusTracker':this[_0x43e7('0x20')],'keystrokeHandler':this[_0x43e7('0x6')],'actions':{'focusPrevious':_0x43e7('0x14'),'focusNext':'tab'}}),this['setTemplate']({'tag':_0x43e7('0xe'),'attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x43e7('0xa')],this[_0x43e7('0x13')]]}),_0x4be7c5(this);}[_0x43e7('0x9')](){super[_0x43e7('0x9')](),_0x37fe45({'view':this}),([this['revisionNameInputView'],this[_0x43e7('0xa')],this[_0x43e7('0x13')]][_0x43e7('0x1e')](_0x447b87=>{this[_0x43e7('0x10')][_0x43e7('0x2a')](_0x447b87),this[_0x43e7('0x20')][_0x43e7('0x2a')](_0x447b87[_0x43e7('0x27')]);}),this[_0x43e7('0x6')]['listenTo'](this[_0x43e7('0x27')]));const _0x5def38=_0x2e8819=>_0x2e8819[_0x43e7('0xb')]();this[_0x43e7('0x6')][_0x43e7('0x19')](_0x43e7('0x25'),_0x5def38),this[_0x43e7('0x6')][_0x43e7('0x19')]('arrowleft',_0x5def38),this[_0x43e7('0x6')][_0x43e7('0x19')](_0x43e7('0x5'),_0x5def38),this[_0x43e7('0x6')][_0x43e7('0x19')](_0x43e7('0x2'),_0x5def38);}[_0x43e7('0x24')](){this[_0x43e7('0x1a')][_0x43e7('0xd')]();}get[_0x43e7('0x1c')](){return this[_0x43e7('0x1b')]['fieldView'][_0x43e7('0x27')][_0x43e7('0x29')][_0x43e7('0x15')]();}set[_0x43e7('0x1c')](_0x1c4525){this[_0x43e7('0x1b')][_0x43e7('0x28')][_0x43e7('0x27')]['value']=_0x1c4525[_0x43e7('0x15')]();}[_0x43e7('0x22')](){this[_0x43e7('0x1b')]['fieldView'][_0x43e7('0x27')][_0x43e7('0x29')]='';}[_0x43e7('0x8')](){const _0x11e1c1=new _0x37f40c(this['locale'],_0x3a06a0),_0x2e80fb=_0x11e1c1[_0x43e7('0x28')];return _0x2e80fb[_0x43e7('0x23')]({'attributes':{'maxlength':_0x43e7('0x12')}}),_0x11e1c1[_0x43e7('0xf')]=_0x5da161(this['locale'],_0x43e7('0x21')),_0x2e80fb['on'](_0x43e7('0x7'),()=>{this[_0x43e7('0xc')]=_0x2e80fb[_0x43e7('0x27')][_0x43e7('0x29')][_0x43e7('0x15')]();}),_0x11e1c1;}[_0x43e7('0x11')](_0x12b579,_0x38c94a,_0x494571,_0x40d1d3){const _0x2034f6=new _0x5379ba(this[_0x43e7('0x18')]);return _0x2034f6[_0x43e7('0x19')]({'label':_0x12b579,'icon':_0x38c94a,'tooltip':!0x0}),_0x2034f6['extendTemplate']({'attributes':{'class':_0x494571}}),_0x40d1d3&&_0x2034f6[_0x43e7('0x3')](_0x43e7('0x1d'))['to'](this,_0x40d1d3),_0x2034f6;}}
|