@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230810.0 → 0.0.0-nightly-20230811.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.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16db=['domEvent','index','isAtStart','removeMarker:revision-suggestion','isReady','execute','toViewElement','elementToAttribute','schema','_findChangeIdFromDomTarget','hasClass','plugins','-new','ck-suggestion-marker-','getRevision','isObject','markers','elementStart','markersStart','dataToMarker','range','unbindElementFromMarkerName','newRevisionId','refresh','useFillerType','abs','first','attribute:vid','markerToHighlight','resolve','_getChangeFromId','createRangeIn','setAttribute','adapter','POSITIVE_INFINITY','set','getWalker','editor','dataDowncast','_getDiff','slice','element:pre','isRemoved','loadRevisionData','vid_start','detachRoot','removeMarker:revision','forward','_appendChild','left','userId','delete','data-change-id','restoreRevision','_markInsertions','_cleanUp','map','change:activeChange','suggestion','markerNameToElements','revision','top','getClientRects','collaboration.channelId','affectsData','changes','reconvertMarker','done','find','high','oldRevisionId','text','attributesAfter','hasAttribute','_processTape','forEach','test','isEqual','children','_step','viewItem','model','_refreshStartEndIndex','_getViewObj','attributes','nextSibling','_makeTape','highest','markerRange','startsWith','add','deletions','processor','isContent','locale','addRoot','getChild','nextPosition','destroy','addRevisionData','getIndex','markersEnd','get','comment','createAttributeElement','_removeUnsupportedChanges','removeClass','removeMarker','change:numberOfChanges','revision-viewer','_fixObsoleteTags','target','isInline','revisionHistoryLabel','insertions','createUIElement','config','isAdded','domConverter','data','nodeAfter','roots','_cleanMarkers','softBreak','attachChange','length','isAttached','startIndex','span','editingDowncast','toViewRange','attributesBefore','previousPosition','sort','then','isBlock','getAttribute','side','distance','getRoot','_activeViewTarget','default','has','ck-suggestion-marker','bottom','bind','consumable','mapViewToDom','addHighlight','parent','revision-suggestion','split','conversion','mapper','ck-revision-history-root--active','getRevisionData','revision-suggestion:','start','downcastDispatcher','_makeModelFromTape','revision:','view','right','isAfter','splice','isAddSuggestion','ck-suggestion-preview-marker-','parse','isSuggestion','toModel','item','_data','_removeRevisionMarkers','ck-revision-history-root-remove','addMarker:revision','repository','level','insert','_update','upcast','_getRevisionsRange','filter','_removeMissingPairs','getRootNames','compare','isCollapsed','activeView','_getViewForChange','revision-end','uiElement','flat','_initInteractions','ck-editor__editable__overlay','name','push','ck-revision-history-root-add','_markMismatchedRemovedTags','data-revision-','isBefore','observeMarkers','getDomRoot','_markMarkers','getAttributes','vid','insertion','rootName','marked','revisionHistoryAttachChange','consume','_balloon','getItems','string','bindElementToMarker','endIndex','pluginName','deletion','shift','ck-suggestion-marker-split','addRevision','vid_end','addMarker:revision-suggestion:deletion','isRemoveSuggestion','listenTo','isOnRoot','diffData','element','RevisionViewer','unshift','isIncorrect','_joinTapes','backward','return','document','maxOffset','modelRange','enableReadOnlyMode','code','isNavigationMode','getCustomProperty','addMarker:revision-suggestion:insertion','low','includes','merge','elementEnd','change:isEnabled','remove','change:isReady','isLimit','enqueueChange','concat','writer','_makeModelFromViewString','activeChange','change','createPositionFromPath','end','authors','requires','for','_setConversion','changeId','pairId','editing','next','all','markerToData','_changeIdToChange','RevisionsRepository','_setDistance','mousedown','_revisions','_changeView','_setChanges','diff','restoreRevisionCallback','ck-suggestion-marker--active','commands','addClass','WidgetToolbarRepository','isAtEnd','findIndex','type','from','keys','toViewPosition','markerName','createRange','createPositionBefore','_threeWayMerge','isEnabled','currentChangeNumber','_markSuggestions'];(function(_0x3eb463,_0x16db7c){const _0xafe059=function(_0x164c4f){while(--_0x164c4f){_0x3eb463['push'](_0x3eb463['shift']());}};_0xafe059(++_0x16db7c);}(_0x16db,0x16b));const _0xafe0=function(_0x3eb463,_0x16db7c){_0x3eb463=_0x3eb463-0x0;let _0xafe059=_0x16db[_0x3eb463];return _0xafe059;};import{Plugin as _0xe5bd2f,Command as _0x2b2918}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1260c8}from'ckeditor5/src/utils';import{ContextualBalloon as _0x499dac}from'ckeditor5/src/ui';import{DocumentFragment as _0x1aa534,Element as _0x4f99d2,Text as _0x1c85de,ViewDocumentFragment as _0x2cf70f,ViewText as _0x11204e,ViewElement as _0xf195ed,ViewContainerElement as _0x2c533a,ViewAttributeElement as _0x1fde8c,ViewEmptyElement as _0x39993a,ViewRawElement as _0x14ad45,ViewUIElement as _0x3f8154}from'ckeditor5/src/engine';import{Users as _0x5e1b77,getMarkerDomElement as _0x20865c}from'ckeditor5-collaboration/src/collaboration-core';import _0x3ddc6a from'./ui/revisionviewer/changedetailsview';import _0x2b21c1 from'./revisionsrepository';import _0x5a441c from'./changeitem';import{default as _0x47daaf}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x18f1ff}from'lodash-es';const tt={'c':_0x2c533a,'a':_0x1fde8c,'e':_0x39993a,'r':_0x14ad45,'u':_0x3f8154};export default class d extends _0xe5bd2f{static get[_0xafe0('0x8f')](){return _0xafe0('0x9b');}static get[_0xafe0('0xba')](){return[_0x5e1b77,_0x499dac,_0x2b21c1];}constructor(_0x2552ef){super(_0x2552ef),this[_0xafe0('0x68')]=this[_0xafe0('0x102')][_0xafe0('0xe8')]['get'](_0xafe0('0xc4')),this[_0xafe0('0x100')](_0xafe0('0xb5'),null),this[_0xafe0('0x100')]('activeView',null),this[_0xafe0('0x45')]=null,this[_0xafe0('0x100')](_0xafe0('0xca'),null),this[_0xafe0('0x100')](_0xafe0('0xe1'),!0x1),this[_0xafe0('0x100')]('isEnabled',!0x0),this['on'](_0xafe0('0xad'),(_0x34ad60,_0x407984,_0x1a71bd)=>{this[_0xafe0('0xb5')]=null,this[_0xafe0('0x73')]=null,this[_0xafe0('0x102')][_0xafe0('0xbf')]['view']['change'](_0x4b9336=>{for(const _0x2b2502 of this[_0xafe0('0x102')]['editing'][_0xafe0('0x5a')][_0xafe0('0xa1')][_0xafe0('0x32')])_0x1a71bd?_0x4b9336[_0xafe0('0x23')]('ck-editor__editable__overlay',_0x2b2502):_0x4b9336[_0xafe0('0xce')](_0xafe0('0x79'),_0x2b2502);});}),this['bind'](_0xafe0('0xa6'))['to'](this,'activeChange',_0x3fc6e7=>null!==_0x3fc6e7),this['bind'](_0xafe0('0xdb'))['to'](this,'isReady',this,'diff',this,'activeChange',(_0x492945,_0x15e7bd,_0x2b36f1)=>_0x492945&&_0x2b36f1?_0x15e7bd[_0xafe0('0x11e')]['getIndex'](_0x2b36f1):0x0),this[_0xafe0('0x4a')]('numberOfChanges')['to'](this,_0xafe0('0xe1'),this,'diff',(_0x3cf8d5,_0x33d1d6)=>_0x3cf8d5?_0x33d1d6[_0xafe0('0x11e')][_0xafe0('0x36')]:0x0),this[_0xafe0('0xc8')]=null,this[_0xafe0('0xc3')]=new Map(),this[_0xafe0('0xfe')]=null,this[_0xafe0('0x8a')]=this[_0xafe0('0x102')][_0xafe0('0xe8')]['get'](_0x499dac);}['init'](){const _0x357ae7=this[_0xafe0('0x102')],_0x4693d1=new ShowChangeCommand(_0x357ae7,{'direction':_0xafe0('0x9f')}),_0x1eb0b8=new ShowChangeCommand(_0x357ae7,{'direction':_0xafe0('0x10c')});(_0x357ae7[_0xafe0('0xcd')][_0xafe0('0x13')]('showPreviousChange',_0x4693d1),_0x357ae7['commands']['add']('showNextChange',_0x1eb0b8),_0x357ae7[_0xafe0('0xcd')][_0xafe0('0x13')](_0xafe0('0x112'),new RestoreRevisionCommand(_0x357ae7)),this['on'](_0xafe0('0x25'),()=>{_0x4693d1[_0xafe0('0xf4')](),_0x1eb0b8[_0xafe0('0xf4')]();}),this[_0xafe0('0xbc')](),this[_0xafe0('0x78')](),_0x357ae7[_0xafe0('0xa4')](_0xafe0('0x26')),_0x357ae7[_0xafe0('0xe8')][_0xafe0('0x47')]('WidgetToolbarRepository'))&&_0x357ae7['plugins'][_0xafe0('0x1f')](_0xafe0('0xcf'))['forceDisabled'](_0xafe0('0x26'));}async[_0xafe0('0x54')](_0xa6dde8){await this[_0xafe0('0x108')](_0xa6dde8);const _0x2e08a4={};for(const _0x3b82f2 in _0xa6dde8[_0xafe0('0x99')]){if(_0xa6dde8['diffData'][_0x3b82f2]['attachChange']&&!_0xa6dde8[_0xafe0('0x99')][_0x3b82f2][_0xafe0('0x35')]['isAttached'])continue;const _0x571b60=this['_removeRevisionMarkers'](JSON['parse'](_0xa6dde8[_0xafe0('0x99')][_0x3b82f2][_0xafe0('0x2b')])),_0x3f21ae=this[_0xafe0('0x102')]['editing'][_0xafe0('0x5a')][_0xafe0('0xa1')],_0x2f67a6=new _0x2cf70f(_0x3f21ae,_0x571b60[_0xafe0('0x115')](_0x1d8def=>this[_0xafe0('0xc')](_0x1d8def)));this[_0xafe0('0x102')][_0xafe0('0x30')][_0xafe0('0x15')][_0xafe0('0xf5')](_0xafe0('0x87')),_0x2e08a4[_0x3b82f2]=this[_0xafe0('0x102')][_0xafe0('0x30')]['processor']['toData'](_0x2f67a6),this[_0xafe0('0x102')][_0xafe0('0x30')][_0xafe0('0x15')][_0xafe0('0xf5')](_0xafe0('0x46'));}return _0x2e08a4;}async['getRevisionRootsAttributes'](_0x15a6df){await this[_0xafe0('0x108')](_0x15a6df);const _0x3b9bc6={};for(const _0x5252ad in _0x15a6df[_0xafe0('0x99')])_0x15a6df[_0xafe0('0x99')][_0x5252ad][_0xafe0('0x35')]&&!_0x15a6df['diffData'][_0x5252ad][_0xafe0('0x35')][_0xafe0('0x37')]||(_0x3b9bc6[_0x5252ad]=_0x15a6df[_0xafe0('0x99')][_0x5252ad]['attributesAfter']||{});return _0x3b9bc6;}[_0xafe0('0x65')](_0x1571ee){return(_0x1571ee=_0x1571ee[_0xafe0('0x6e')](_0xcba178=>!_0xcba178[_0xafe0('0x7a')]||'revision-start'!==_0xcba178[_0xafe0('0x7a')]&&_0xafe0('0x75')!==_0xcba178[_0xafe0('0x7a')]))[_0xafe0('0x4')](_0x4f0500=>{_0xafe0('0x8c')!=typeof _0x4f0500&&(_0x4f0500['children']=this[_0xafe0('0x65')](_0x4f0500[_0xafe0('0x7')]),_0x4f0500['attributes']=_0x4f0500['attributes'][_0xafe0('0x6e')](_0x4275dc=>!_0x4275dc[0x0]['startsWith'](_0xafe0('0x7e'))));}),_0x1571ee;}async[_0xafe0('0x71')](_0x467cbe,_0x1cabb4,_0x4d91f3=!0x1){if(!this[_0xafe0('0xda')])return;const _0x35117f=this[_0xafe0('0xca')],_0x27f109=this[_0xafe0('0x68')],_0x1dfd91=_0xafe0('0x8c')==typeof _0x467cbe?_0x27f109['getRevision'](_0x467cbe):_0x467cbe,_0x46f9e0=_0xafe0('0x8c')==typeof _0x1cabb4?_0x27f109[_0xafe0('0xeb')](_0x1cabb4):_0x1cabb4,_0xfebce2=_0x1dfd91['id'],_0x265d97=_0x46f9e0?_0x46f9e0['id']:null;if(!_0x4d91f3&&this['diff']&&this['diff'][_0xafe0('0xf3')]===_0xfebce2&&this[_0xafe0('0xca')][_0xafe0('0x123')]===_0x265d97)return Promise[_0xafe0('0xfa')]();this['isReady']=!0x1,this[_0xafe0('0x73')]=null,this[_0xafe0('0xb5')]=null,this['diff']=new _0x47daaf(_0xfebce2,_0x265d97);const _0x4a3b75=this['_getRevisionsRange'](_0x1dfd91,_0x46f9e0,!0x0)[_0xafe0('0x115')](_0x2ddafe=>this[_0xafe0('0x108')](_0x2ddafe));return _0x4a3b75[_0xafe0('0x7b')](new Promise(_0xc0b36e=>{setTimeout(_0xc0b36e,0x14);})),Promise[_0xafe0('0xc1')](_0x4a3b75)[_0xafe0('0x3f')](()=>{if(!this[_0xafe0('0xda')])return;this['_cleanUp']();const _0x399197=this[_0xafe0('0x104')](_0xfebce2,_0x265d97);for(const _0xd50f56 of _0x399197[_0xafe0('0x11e')])this[_0xafe0('0xc3')]['set'](_0xd50f56['id'],_0xd50f56);this['editor'][_0xafe0('0xa')][_0xafe0('0xb1')]({'isUndoable':!0x1},_0x25676b=>{for(const _0x3118f3 of this[_0xafe0('0x102')][_0xafe0('0xa')]['document'][_0xafe0('0x70')]())_0x25676b[_0xafe0('0x10a')](_0x3118f3);for(const _0x3ae7ec of Object[_0xafe0('0xd4')](_0x399197[_0xafe0('0xa')])){const _0x111e9e=_0x25676b[_0xafe0('0x18')](_0x3ae7ec);for(const _0x46b031 of Object[_0xafe0('0xd4')](_0x399197['attributes'][_0x3ae7ec]))_0x25676b['setAttribute'](_0x46b031,_0x399197[_0xafe0('0xd')][_0x3ae7ec][_0x46b031],_0x111e9e);_0x25676b[_0xafe0('0x6a')](_0x399197['model'][_0x3ae7ec],_0x111e9e,0x0);}}),this['diff'][_0xafe0('0xc9')](this['_sortAndFilterDiffChanges'](_0x399197[_0xafe0('0x11e')])),this['isReady']=!0x0;})['catch'](_0x2a78e9=>{console['error'](_0x2a78e9),this[_0xafe0('0x114')](),_0x35117f&&(this[_0xafe0('0xca')]=_0x35117f),this[_0xafe0('0xe1')]=!0x0;});}[_0xafe0('0x1c')](_0x4d4cb2,_0x91020e){const _0x3fa0dc=this['repository']['createRevision'](_0x4d4cb2);return _0x3fa0dc['on']('_update',(_0x25254a,_0x5f00e0,_0x124366)=>_0x91020e(_0x5f00e0,_0x124366,_0x3fa0dc)),this[_0xafe0('0x68')][_0xafe0('0x93')](_0x3fa0dc),_0x3fa0dc;}[_0xafe0('0x108')](_0x2968a9){if(!_0x2968a9||_0x2968a9[_0xafe0('0x99')])return Promise[_0xafe0('0xfa')]();{const _0x202d08=this[_0xafe0('0x102')][_0xafe0('0x2d')][_0xafe0('0x1f')](_0xafe0('0x11c'));return this[_0xafe0('0xfe')][_0xafe0('0xeb')]({'channelId':_0x202d08,'revisionId':_0x2968a9['id']})[_0xafe0('0x3f')](_0x32f4c3=>{_0x2968a9[_0xafe0('0x6b')]({'diffData':_0x32f4c3['diffData']},!0x0);});}}[_0xafe0('0x114')](){this['activeChange']=null,this[_0xafe0('0x33')](),this['_changeView']&&this[_0xafe0('0xc8')][_0xafe0('0x1b')](),this[_0xafe0('0xc8')]=null,this[_0xafe0('0xc3')]['clear'](),this[_0xafe0('0x102')]['model']['enqueueChange']({'isUndoable':!0x1},_0x1bec07=>{for(const _0x3af571 of this[_0xafe0('0x102')][_0xafe0('0xa')][_0xafe0('0xa1')][_0xafe0('0x70')]())_0x1bec07['detachRoot'](_0x3af571);});}['_sortAndFilterDiffChanges'](_0x4520ca){const _0x45f2b7=[],_0x1b1ea0=new Map();for(const _0x190791 of this[_0xafe0('0x102')][_0xafe0('0xa')]['document'][_0xafe0('0x70')]()){const _0x3ae798=this[_0xafe0('0x102')][_0xafe0('0xbf')]['view'][_0xafe0('0x81')](_0x190791);if(!_0x3ae798)continue;const _0x1a74d7=_0x3ae798['getClientRects']()['item'](0x0);_0x1a74d7&&(_0x45f2b7['push'](_0x190791),_0x1b1ea0[_0xafe0('0x100')](_0x190791,_0x1a74d7));}return _0x45f2b7['sort']((_0x4e952e,_0x58ef0a)=>{const _0x2aa787=_0x1b1ea0[_0xafe0('0x1f')](_0x4e952e),_0x3d2cb8=_0x1b1ea0[_0xafe0('0x1f')](_0x58ef0a);return _0x2aa787['y']-_0x3d2cb8['y']||_0x2aa787['x']-_0x3d2cb8['x'];}),(_0x4520ca=_0x4520ca[_0xafe0('0x6e')](_0x1aa04f=>_0x45f2b7['includes'](_0x1aa04f[_0xafe0('0x86')])))[_0xafe0('0x3e')]((_0x3f993d,_0x26075d)=>_0x45f2b7['indexOf'](_0x3f993d[_0xafe0('0x86')])-_0x45f2b7['indexOf'](_0x26075d[_0xafe0('0x86')])),_0x4520ca;}[_0xafe0('0xf')](_0x2d2db8){const _0x19bb38=Array[_0xafe0('0xd3')](_0x2d2db8['markers'])[_0xafe0('0x6e')](([_0xdc1ff8,_0x5a1f1d])=>_0xdc1ff8[_0xafe0('0x12')](_0xafe0('0x59'))&&!_0x5a1f1d[_0xafe0('0x72')]),_0xbc2f8a=Array[_0xafe0('0xd3')](this[_0xafe0('0x102')][_0xafe0('0xa')][_0xafe0('0xfc')](_0x2d2db8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x19bb38[_0xafe0('0x36')])for(const _0x40e802 of _0xbc2f8a){const [_0x27df6f,_0x5af203]=_0x19bb38[0x0],[,_0x40bc10,_0x5ac832]=_0x27df6f['split'](':');if(_0x5af203[_0xafe0('0xb8')]['isEqual'](_0x40e802[_0xafe0('0x1a')])&&_0x19bb38[_0xafe0('0x91')](),(_0x40e802[_0xafe0('0x3d')][_0xafe0('0x6')](_0x5af203[_0xafe0('0x56')])||_0x40e802[_0xafe0('0x3d')][_0xafe0('0x5c')](_0x5af203[_0xafe0('0x56')]))&&(_0xafe0('0x85')==_0x40bc10?_0x40e802['isAdded']={'userId':_0x5ac832}:_0xafe0('0x90')==_0x40bc10&&(_0x40e802[_0xafe0('0x107')]={'userId':_0x5ac832})),0x0==_0x19bb38['length'])break;}return _0xbc2f8a;}[_0xafe0('0xb')](_0x343e72){const _0x5485a9=new Map();for(let _0x49e354=0x0;_0x49e354<_0x343e72[_0xafe0('0x36')];_0x49e354++)_0xafe0('0x0')===_0x343e72[_0x49e354]['type']?(_0x343e72[_0x49e354][_0xafe0('0x63')][_0xafe0('0x38')]=_0x49e354,_0x343e72[_0x49e354][_0xafe0('0x63')][_0xafe0('0x8e')]=_0x49e354):(_0xafe0('0xee')===_0x343e72[_0x49e354][_0xafe0('0xd2')]?_0x343e72[_0x49e354]['item'][_0xafe0('0x38')]=_0x49e354:'elementEnd'===_0x343e72[_0x49e354]['type']&&(_0x343e72[_0x49e354][_0xafe0('0x63')]['endIndex']=_0x49e354),_0x5485a9[_0xafe0('0x100')](_0x343e72[_0x49e354]['id'],_0x49e354));for(const _0x505ae3 of _0x5485a9['values']())_0xafe0('0xee')===_0x343e72[_0x505ae3][_0xafe0('0xd2')]?_0x343e72[_0x505ae3][_0xafe0('0x63')][_0xafe0('0x8e')]=_0x5485a9[_0xafe0('0x1f')](_0x343e72[_0x505ae3]['pairId']):_0xafe0('0xac')===_0x343e72[_0x505ae3]['type']&&(_0x343e72[_0x505ae3][_0xafe0('0x63')]['startIndex']=_0x5485a9[_0xafe0('0x1f')](_0x343e72[_0x505ae3][_0xafe0('0xbe')]));}[_0xafe0('0x3')](_0x4f5249){for(let _0xb4323c=0x0;_0xb4323c<_0x4f5249[_0xafe0('0x36')];_0xb4323c++){if(_0xafe0('0xee')===_0x4f5249[_0xb4323c][_0xafe0('0xd2')])_0x4f5249[_0xb4323c]['item']['startIndex']=_0xb4323c;else{if(_0xafe0('0xac')===_0x4f5249[_0xb4323c][_0xafe0('0xd2')]){_0x4f5249[_0xb4323c]['item'][_0xafe0('0x8e')]=_0xb4323c;const _0x4d7b66=_0x4f5249[_0xb4323c][_0xafe0('0x63')][_0xafe0('0x38')];_0x4f5249[_0x4d7b66][_0xafe0('0xbe')]=_0x4f5249[_0xb4323c]['id'],_0x4f5249[_0xb4323c]['pairId']=_0x4f5249[_0x4d7b66]['id'];}else _0x4f5249[_0xb4323c]['item']['startIndex']=_0xb4323c,_0x4f5249[_0xb4323c][_0xafe0('0x63')][_0xafe0('0x8e')]=_0xb4323c,_0x4f5249[_0xb4323c][_0xafe0('0xbe')]=null;}_0x4f5249[_0xb4323c][_0xafe0('0xef')]||(_0x4f5249[_0xb4323c][_0xafe0('0xef')]=[],_0x4f5249[_0xb4323c]['markersEnd']=[]);}}[_0xafe0('0x113')](_0x345012,_0x57d346){const _0x501063=_0x345012[_0xafe0('0x6e')](_0x1b8c76=>!_0x1b8c76['isAdded']);for(let _0x59c58f=0x0;_0x59c58f<_0x57d346[_0xafe0('0x36')];_0x59c58f++)_0x57d346[_0x59c58f]['isAdded']&&(_0x501063[_0x59c58f][_0xafe0('0x2e')]=_0x57d346[_0x59c58f][_0xafe0('0x2e')]);}['_makeModelFromViewString'](_0x311e25){const _0x3f5d59=JSON[_0xafe0('0x60')](_0x311e25),_0x30284b=this[_0xafe0('0x102')][_0xafe0('0xbf')]['view'][_0xafe0('0xa1')],_0x3ee971=new _0x2cf70f(_0x30284b,_0x3f5d59['map'](_0x136f86=>this[_0xafe0('0xc')](_0x136f86)));return this['editor'][_0xafe0('0x30')][_0xafe0('0x62')](_0x3ee971);}[_0xafe0('0xc')](_0x31cd9a){const _0x3491aa=this[_0xafe0('0x102')][_0xafe0('0xbf')]['view']['document'];if('string'==typeof _0x31cd9a)return new _0x11204e(_0x3491aa,_0x31cd9a);{const _0x513aef=_0x31cd9a[_0xafe0('0x7')][_0xafe0('0x115')](_0x10c7c1=>this['_getViewObj'](_0x10c7c1));return new(tt[_0x31cd9a['type']]||_0xf195ed)(_0x3491aa,_0x31cd9a[_0xafe0('0x7a')],_0x31cd9a[_0xafe0('0xd')],_0x513aef);}}['_getDiff'](_0x1c1820,_0xefef10=null){const _0x3c8672=this[_0xafe0('0x68')][_0xafe0('0xeb')](_0x1c1820),_0x453406=_0xefef10?this['repository'][_0xafe0('0xeb')](_0xefef10):null,_0x39932f=this[_0xafe0('0x6d')](_0x3c8672,_0x453406),_0x1fde16=_0x39932f[_0x39932f[_0xafe0('0x36')]-0x1],_0x45048c=new Map(),_0x29ff28={'model':{},'attributes':{},'changes':[]},_0x20831c=new Set(),_0x35bed0=new Map();for(let _0x4748b6=_0x39932f[_0xafe0('0x36')]-0x1;_0x4748b6>=0x0;_0x4748b6--){const _0x3b80f0=_0x39932f[_0x4748b6];for(const _0x3b28cc of Object['keys'](_0x3b80f0['diffData']))if(_0x3b80f0[_0xafe0('0x99')][_0x3b28cc][_0xafe0('0x35')]){const _0x290d29=_0x3b80f0['diffData'][_0x3b28cc][_0xafe0('0x35')];_0x290d29[_0xafe0('0x37')]?(_0x20831c[_0xafe0('0x13')](_0x3b28cc),_0x35bed0[_0xafe0('0x47')](_0x3b28cc)&&_0x35bed0[_0xafe0('0x1f')](_0x3b28cc)[_0xafe0('0x10f')]==_0x290d29['userId']?_0x35bed0[_0xafe0('0x110')](_0x3b28cc):_0x35bed0[_0xafe0('0x100')](_0x3b28cc,_0x290d29)):_0x35bed0[_0xafe0('0x47')](_0x3b28cc)?(_0x20831c[_0xafe0('0x110')](_0x3b28cc),_0x35bed0[_0xafe0('0x110')](_0x3b28cc)):(_0x20831c[_0xafe0('0x13')](_0x3b28cc),_0x35bed0[_0xafe0('0x100')](_0x3b28cc,_0x290d29));}else _0x20831c[_0xafe0('0x13')](_0x3b28cc);}for(const _0x33bc8a of _0x20831c){const _0x21767c=_0x35bed0['has'](_0x33bc8a)&&!_0x35bed0['get'](_0x33bc8a)['isAttached'];let _0x451869=_0x21767c?_0x39932f['length']-0x1:0x0;const _0x247d38=_0x21767c?-0x1:0x1;for(;_0x39932f[_0x451869];){const _0x9939c2=_0x39932f[_0x451869];if(_0x9939c2[_0xafe0('0x99')][_0x33bc8a]){const _0x4481f5=_0x21767c?_0x9939c2[_0xafe0('0x99')][_0x33bc8a][_0xafe0('0x3c')]:_0x9939c2['diffData'][_0x33bc8a][_0xafe0('0x1')];_0x29ff28[_0xafe0('0xd')][_0x33bc8a]=_0x4481f5?_0x18f1ff(_0x4481f5):{};break;}_0x451869+=_0x247d38;}}for(const _0x1e8030 of _0x39932f){_0x1e8030[_0xafe0('0xa')]={};for(const _0x53cf64 of _0x1e8030[_0xafe0('0xb9')])_0x45048c[_0xafe0('0x100')](_0x53cf64['id'],_0x53cf64);for(const _0x5e8178 of _0x20831c){const _0x4e84ec=_0x1e8030[_0xafe0('0x99')][_0x5e8178]?_0x1e8030[_0xafe0('0x99')][_0x5e8178][_0xafe0('0x2b')]:'[]',_0x1006a8=_0x1e8030[_0xafe0('0x99')][_0x5e8178]?_0x1e8030['diffData'][_0x5e8178][_0xafe0('0x14')]:'[]';_0x1e8030[_0xafe0('0xa')][_0x5e8178]={'insertions':this['_makeModelFromViewString'](_0x4e84ec),'deletions':this[_0xafe0('0xb4')](_0x1006a8)};}}for(const _0x55c33a of _0x20831c){let _0xe3b5c=null,_0x54dbf9=0x0;const _0x2f5e74=new Map(Array[_0xafe0('0xd3')](_0x3c8672[_0xafe0('0xa')][_0x55c33a][_0xafe0('0x2b')]['markers'])['filter'](([_0xadbb46])=>!_0xadbb46[_0xafe0('0x12')]('revision:')));let _0x4dd3ca=0x0;for(const _0x38a0af of _0x39932f){const _0x5c4bf5=this[_0xafe0('0xf')](_0x38a0af['model'][_0x55c33a][_0xafe0('0x2b')]);_0x38a0af==_0x3c8672?(_0xe3b5c=_0x5c4bf5,_0x54dbf9=_0xe3b5c[_0xafe0('0x36')],_0xe3b5c['forEach'](_0x51beb3=>{_0x51beb3['id']=_0x4dd3ca++;}),this[_0xafe0('0x3')](_0xe3b5c)):this['_markInsertions'](_0xe3b5c,_0x5c4bf5);const _0x318e2f=_0xe3b5c[_0xafe0('0x6e')](_0x38c975=>!_0x38c975[_0xafe0('0x2e')])[_0xafe0('0x115')](_0xb4e1fc=>_0xb4e1fc['id']);let _0x162aaa=0x0;const _0xc67cd5=this[_0xafe0('0xf')](_0x38a0af[_0xafe0('0xa')][_0x55c33a]['deletions']);_0xc67cd5['forEach'](_0x5ea9f0=>{_0x5ea9f0[_0xafe0('0x107')]?_0x5ea9f0['id']=_0x54dbf9++:_0x5ea9f0['id']=_0x318e2f[_0x162aaa++];}),this[_0xafe0('0x3')](_0xc67cd5),this[_0xafe0('0xc5')](_0xe3b5c,_0xafe0('0x2e')),this[_0xafe0('0xc5')](_0xc67cd5,_0xafe0('0x107')),_0x38a0af==_0x3c8672&&this[_0xafe0('0x82')](_0xe3b5c,_0x2f5e74),_0xe3b5c=this[_0xafe0('0x9e')](_0xe3b5c,_0xc67cd5),this['_refreshStartEndIndex'](_0xe3b5c),this[_0xafe0('0xc5')](_0xe3b5c,_0xafe0('0x107'));}_0xe3b5c=_0xe3b5c['filter'](_0xa2fbce=>!(_0xa2fbce[_0xafe0('0x2e')]&&_0xa2fbce['isRemoved']));const _0x361658=new Map(_0x1fde16[_0xafe0('0xa')][_0x55c33a][_0xafe0('0x14')]['markers']),_0x4c57b9=new Set(_0x2f5e74[_0xafe0('0xd4')]());for(const _0x4f44ac of _0x361658['keys']())_0x4c57b9[_0xafe0('0x110')](_0x4f44ac);this[_0xafe0('0xdc')](_0xe3b5c,_0x4c57b9),this[_0xafe0('0x27')](_0xe3b5c),_0xe3b5c=this[_0xafe0('0x6f')](_0xe3b5c),_0xe3b5c=this[_0xafe0('0x7d')](_0xe3b5c),_0xe3b5c=this[_0xafe0('0x22')](_0xe3b5c);const {root:_0x1944de,changes:_0x16315b}=this[_0xafe0('0x58')](_0xe3b5c,_0x45048c,_0x55c33a);_0x29ff28[_0xafe0('0xa')][_0x55c33a]=_0x1944de;const _0x380594=_0x35bed0[_0xafe0('0x1f')](_0x55c33a);if(_0x380594){const _0x530bcc=_0x45048c['get'](_0x380594[_0xafe0('0x10f')]),_0x2828fa=new _0x5a441c({'author':_0x530bcc,'type':_0x380594[_0xafe0('0x37')]?_0xafe0('0x13'):_0xafe0('0xae'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x55c33a});_0x16315b[_0xafe0('0x9c')](_0x2828fa),_0x29ff28[_0xafe0('0xd')][_0x55c33a][_0xafe0('0x88')]=_0x2828fa['id'];}_0x29ff28[_0xafe0('0x11e')]=_0x29ff28[_0xafe0('0x11e')][_0xafe0('0xb2')](_0x16315b);}return _0x29ff28;}[_0xafe0('0x82')](_0x338b21,_0xb9b8c5){for(let _0x4c861b=0x0;_0x4c861b<_0x338b21[_0xafe0('0x36')];_0x4c861b++)for(const [_0x27a852,_0x2375f1]of _0xb9b8c5)_0x2375f1[_0xafe0('0x56')][_0xafe0('0x6')](_0x338b21[_0x4c861b][_0xafe0('0x3d')])&&_0x338b21[_0x4c861b][_0xafe0('0xef')][_0xafe0('0x7b')](_0x27a852),_0x2375f1[_0xafe0('0xb8')][_0xafe0('0x6')](_0x338b21[_0x4c861b][_0xafe0('0x1a')])&&_0x338b21[_0x4c861b][_0xafe0('0x1e')]['push'](_0x27a852);}[_0xafe0('0x9e')](_0x7d4e4b,_0x3e12f9){let _0x48fad5=[],_0xf970eb=0x0,_0x199277=0x0;for(;_0xf970eb<_0x7d4e4b[_0xafe0('0x36')]||_0x199277<_0x3e12f9[_0xafe0('0x36')];){const _0x53d863=_0x7d4e4b[_0xf970eb]||{},_0x19268f=_0x3e12f9[_0x199277]||{};if(_0x53d863['id']==_0x19268f['id'])_0xf970eb++,_0x199277++,_0x48fad5[_0xafe0('0x7b')](_0x53d863);else{if(_0x19268f[_0xafe0('0x107')]&&_0x53d863[_0xafe0('0x2e')]){const {commonTape:_0x37ba70,iEnd:_0x140f10,jEnd:_0x4d5fed}=this['_threeWayMerge'](_0x7d4e4b,_0xf970eb,_0x3e12f9,_0x199277);_0x48fad5=_0x48fad5[_0xafe0('0xb2')](_0x37ba70),_0xf970eb=_0x140f10,_0x199277=_0x4d5fed;}else _0x19268f[_0xafe0('0x107')]?(_0x199277++,_0x48fad5[_0xafe0('0x7b')](_0x19268f)):(_0xf970eb++,_0x48fad5['push'](_0x53d863));}}return _0x48fad5;}[_0xafe0('0xdc')](_0x476bac,_0x934a4e){const _0x4b752d=[];for(let _0x4c2e83=0x0;_0x4c2e83<_0x476bac['length'];_0x4c2e83++){for(let _0x128e39=0x0;_0x128e39<_0x476bac[_0x4c2e83][_0xafe0('0xef')][_0xafe0('0x36')];_0x128e39++){const _0x190eb5=_0x476bac[_0x4c2e83][_0xafe0('0xef')][_0x128e39];if(!_0x934a4e[_0xafe0('0x47')](_0x190eb5))continue;const {group:_0x25c685,type:_0x599d54,authorId:_0x5b231d}=_0xf8a7de(_0x190eb5);_0xafe0('0x4f')!=_0x25c685||_0xafe0('0x85')!=_0x599d54&&_0xafe0('0x90')!=_0x599d54||(_0x4b752d[_0xafe0('0x9c')]({'type':_0x599d54,'name':_0x190eb5,'userId':_0x5b231d}),_0x476bac[_0x4c2e83][_0xafe0('0xef')][_0xafe0('0x5d')](_0x128e39,0x1),_0x128e39--);}_0x1abdbe(_0x476bac[_0x4c2e83]);for(let _0x22c23a=0x0;_0x22c23a<_0x476bac[_0x4c2e83]['markersEnd'][_0xafe0('0x36')];_0x22c23a++){const _0xa9bb37=_0x476bac[_0x4c2e83][_0xafe0('0x1e')][_0x22c23a];if(!_0x934a4e['has'](_0xa9bb37))continue;const {group:_0xd42ce6,type:_0x9c1072}=_0xf8a7de(_0xa9bb37);if(_0xafe0('0x4f')!=_0xd42ce6||_0xafe0('0x85')!=_0x9c1072&&'deletion'!=_0x9c1072)continue;_0x476bac[_0x4c2e83][_0xafe0('0x1e')][_0xafe0('0x5d')](_0x22c23a,0x1),_0x22c23a--;const _0x1daa81=_0x4b752d[_0xafe0('0xd1')](_0x3873fe=>_0x3873fe[_0xafe0('0x7a')]==_0xa9bb37);_0x1daa81>-0x1&&_0x4b752d[_0xafe0('0x5d')](_0x1daa81,0x1);}}function _0xf8a7de(_0xb3cd82){const _0x4dc103=_0xb3cd82[_0xafe0('0x50')](':');return{'group':_0x4dc103[0x0],'type':_0x4dc103[0x1],'subType':_0x4dc103[_0xafe0('0x36')]>=0x5?_0x4dc103[0x2]:null,'id':_0x4dc103[_0xafe0('0x36')]<0x5?_0x4dc103[0x2]:_0x4dc103[0x3],'authorId':_0x4dc103[_0xafe0('0x36')]<0x5?_0x4dc103[0x3]:_0x4dc103[0x4],'markerCount':0x6==_0x4dc103[_0xafe0('0x36')]?_0x4dc103[0x5]:null};}function _0x1abdbe(_0x42da1c){for(let _0x2e47fb=0x0;_0x2e47fb<_0x4b752d['length'];_0x2e47fb++){if(_0x42da1c['isAdded']&&_0xafe0('0x85')==_0x4b752d[_0x2e47fb][_0xafe0('0xd2')])return _0x42da1c[_0xafe0('0x5e')]=_0x4b752d[_0x2e47fb],void delete _0x42da1c[_0xafe0('0x2e')];if(!_0x42da1c[_0xafe0('0x2e')]&&!_0x42da1c[_0xafe0('0x107')]&&_0xafe0('0x90')==_0x4b752d[_0x2e47fb][_0xafe0('0xd2')])return void(_0x42da1c['isRemoveSuggestion']=_0x4b752d[_0x2e47fb]);}}}[_0xafe0('0xc5')](_0x2a178e,_0x596910){let _0x22f8c9=0x0,_0x2d9cbc=!0x1;const _0x4167d4=new Map();for(const _0x2f2836 of _0x2a178e)_0x2f2836[_0x596910]?_0x2d9cbc&&(_0x22f8c9++,_0x2d9cbc=!0x1):(_0x22f8c9++,_0x2d9cbc=!0x0),_0x4167d4[_0xafe0('0x100')](_0x2f2836['id'],_0x22f8c9);for(let _0x4e691c=0x0;_0x4e691c<_0x2a178e[_0xafe0('0x36')];_0x4e691c++){if(_0xafe0('0x107')==_0x596910&&_0x2a178e[_0x4e691c][_0xafe0('0x2e')]||_0xafe0('0x2e')==_0x596910&&_0x2a178e[_0x4e691c][_0xafe0('0x107')])continue;if('text'==_0x2a178e[_0x4e691c]['type']){_0x2a178e[_0x4e691c][_0xafe0('0x43')]=0x0;continue;}const _0x38dab2=_0x4167d4[_0xafe0('0x1f')](_0x2a178e[_0x4e691c][_0xafe0('0xbe')]),_0x4d1ab4=_0x4167d4['get'](_0x2a178e[_0x4e691c]['id']);_0x2a178e[_0x4e691c][_0xafe0('0x43')]=_0x38dab2-_0x4d1ab4;}}[_0xafe0('0x6d')](_0x387e15,_0x58a47f,_0x5a19e4=!0x1){const _0xbd2462=[];let _0x5bc0ce=this[_0xafe0('0x68')][_0xafe0('0x1d')](_0x387e15),_0x57068f=this[_0xafe0('0x68')]['getIndex'](_0x58a47f);for(-0x1==_0x57068f&&(_0x57068f=this[_0xafe0('0x68')][_0xafe0('0xc7')][_0xafe0('0x36')],_0x5a19e4=!0x1);_0x5bc0ce<_0x57068f;)_0xbd2462[_0xafe0('0x7b')](this['repository'][_0xafe0('0xeb')](_0x5bc0ce)),_0x5bc0ce++;return _0x5a19e4&&_0xbd2462['push'](this[_0xafe0('0x68')]['getRevision'](_0x5bc0ce)),_0xbd2462;}[_0xafe0('0xd9')](_0xec1193,_0x3621be,_0x393f63,_0x49ab42){const _0x16aa87=this['editor'][_0xafe0('0xa')][_0xafe0('0xe5')];let _0x4849ca=_0x3621be;for(;_0xec1193[_0x4849ca]&&_0xec1193[_0x4849ca]['isAdded'];)_0x4849ca++;let _0x2356a4=_0x49ab42;for(;_0x393f63[_0x2356a4]&&_0x393f63[_0x2356a4]['isRemoved'];)_0x2356a4++;_0x37a319(_0xec1193,_0x3621be,_0x4849ca),_0x37a319(_0x393f63,_0x49ab42,_0x2356a4);const _0x42f185=_0x393f63[_0xafe0('0x105')](_0x49ab42,_0x2356a4)[_0xafe0('0xb2')](_0xec1193[_0xafe0('0x105')](_0x3621be,_0x4849ca));return _0x42f185['sort']((_0x167368,_0x370080)=>_0x167368[_0xafe0('0x42')]!=_0x370080['side']?_0x167368[_0xafe0('0x42')]-_0x370080[_0xafe0('0x42')]:_0x167368[_0xafe0('0x69')]!=_0x370080[_0xafe0('0x69')]?_0x167368[_0xafe0('0x69')]-_0x370080[_0xafe0('0x69')]:_0x167368[_0xafe0('0x43')]!=_0x370080[_0xafe0('0x43')]?_0x370080[_0xafe0('0x43')]-_0x167368[_0xafe0('0x43')]:!!_0x167368[_0xafe0('0x2e')]!=!!_0x370080[_0xafe0('0x2e')]?-0x1==_0x167368[_0xafe0('0x42')]||0x0==_0x167368['side']?_0x167368[_0xafe0('0x2e')]?-0x1:0x1:_0x167368['isAdded']?0x1:-0x1:_0x167368['index']-_0x370080[_0xafe0('0xde')]),{'commonTape':_0x42f185,'iEnd':_0x4849ca,'jEnd':_0x2356a4};function _0x37a319(_0x1b849a,_0xcb844c,_0x4eb006){let _0x24d2eb=-0x1,_0x484445=Number[_0xafe0('0xff')],_0x2e3690=!0x0;for(let _0x3cae16=_0xcb844c;_0x3cae16<_0x4eb006;_0x3cae16++)if(_0x16aa87[_0xafe0('0x29')](_0x1b849a[_0x3cae16][_0xafe0('0x63')])||(_0x2e3690=!0x1),_0x1b849a[_0x3cae16]['item'][_0xafe0('0x38')]<_0xcb844c&&(_0x24d2eb=_0x3cae16),_0x1b849a[_0x3cae16][_0xafe0('0x63')][_0xafe0('0x8e')]>=_0x4eb006){_0x484445=_0x3cae16;break;}_0x2e3690&&(_0x24d2eb=_0x4eb006-0x1);for(let _0x5d2b79=_0xcb844c;_0x5d2b79<_0x4eb006;_0x5d2b79++)_0x1b849a[_0x5d2b79][_0xafe0('0x42')]=_0x5d2b79<=_0x24d2eb?-0x1:_0x5d2b79<_0x484445?0x0:0x1,_0x1b849a[_0x5d2b79][_0xafe0('0xde')]=_0x5d2b79;let _0x2b519d=0x0;for(let _0x18ff33=_0xcb844c;_0x18ff33<=_0x24d2eb;_0x18ff33++)0x0==_0x1b849a[_0x18ff33][_0xafe0('0x43')]?_0x1b849a[_0x18ff33][_0xafe0('0x69')]=_0x2b519d:(_0x2b519d++,_0x1b849a[_0x18ff33][_0xafe0('0x69')]=_0x2b519d,_0x2b519d++);for(let _0x1755f5=_0xcb844c;_0x1755f5<_0x4eb006;_0x1755f5++)0x0==_0x1b849a[_0x1755f5][_0xafe0('0x42')]&&(_0x1b849a[_0x1755f5][_0xafe0('0x69')]=_0x2b519d);_0x2b519d=0x0;for(let _0x1857e7=_0x4eb006-0x1;_0x1857e7>=_0x484445;_0x1857e7--)0x0==_0x1b849a[_0x1857e7]['distance']?_0x1b849a[_0x1857e7][_0xafe0('0x69')]=_0x2b519d:(_0x2b519d--,_0x1b849a[_0x1857e7][_0xafe0('0x69')]=_0x2b519d,_0x2b519d--);}}['_fixObsoleteTags'](_0x7d6339){const _0x4bb153=new Map(),_0x5485a5=this[_0xafe0('0x102')][_0xafe0('0xa')][_0xafe0('0xe5')];for(let _0x127c53=0x1;_0x127c53<_0x7d6339[_0xafe0('0x36')];_0x127c53++){let _0x3c5607,_0x4f30f2,_0xc1f482;const _0x2cdd54=_0x7d6339[_0x127c53],_0x227de0=_0x7d6339[_0x127c53-0x1];if(_0xafe0('0x0')==_0x2cdd54[_0xafe0('0xd2')])continue;if(_0x2cdd54[_0xafe0('0xd2')]!=_0x227de0[_0xafe0('0xd2')])continue;if(!_0x5485a5[_0xafe0('0x40')](_0x227de0[_0xafe0('0x63')])||_0x5485a5[_0xafe0('0xb0')](_0x227de0[_0xafe0('0x63')]))continue;if(!_0x5485a5[_0xafe0('0x40')](_0x2cdd54['item'])||_0x5485a5[_0xafe0('0xb0')](_0x2cdd54[_0xafe0('0x63')]))continue;if((_0x7d6339[_0x127c53]['isAdded']||_0x7d6339[_0x127c53]['isAddSuggestion'])&&_0x7d6339[_0x127c53-0x1][_0xafe0('0x107')])_0x3c5607=_0x7d6339[_0x127c53],_0x4f30f2=_0x7d6339[_0x127c53-0x1],_0xc1f482=_0x127c53-0x1;else{if(!_0x7d6339[_0x127c53][_0xafe0('0x107')]||!_0x7d6339[_0x127c53-0x1][_0xafe0('0x2e')]&&!_0x7d6339[_0x127c53-0x1][_0xafe0('0x5e')])continue;_0x3c5607=_0x7d6339[_0x127c53-0x1],_0x4f30f2=_0x7d6339[_0x127c53],_0xc1f482=_0x127c53;}const _0x51432e=_0x3c5607['level']==_0x4f30f2[_0xafe0('0x69')],_0x3d48a9=Math[_0xafe0('0xf6')](_0x3c5607[_0xafe0('0x69')])<Math[_0xafe0('0xf6')](_0x4f30f2['level'])&&0x0==_0x4f30f2[_0xafe0('0x43')];(_0x51432e||_0x3d48a9)&&(_0x4bb153[_0xafe0('0x100')](_0x4f30f2['id'],_0x3c5607['id']),_0x7d6339['splice'](_0xc1f482,0x1),_0x127c53--,_0x3c5607[_0xafe0('0x2e')]=!0x1);}for(let _0x2fa19d=0x0;_0x2fa19d<_0x7d6339['length'];_0x2fa19d++)_0x4bb153[_0xafe0('0x47')](_0x7d6339[_0x2fa19d][_0xafe0('0xbe')])&&(_0x7d6339[_0x2fa19d][_0xafe0('0xbe')]=_0x4bb153[_0xafe0('0x1f')](_0x7d6339[_0x2fa19d][_0xafe0('0xbe')]));}[_0xafe0('0x6f')](_0x23cc9f){const _0x3212ec=new Set(_0x23cc9f[_0xafe0('0x115')](_0x36a9ef=>_0x36a9ef['id']));for(let _0x22c87f=0x0;_0x22c87f<_0x23cc9f[_0xafe0('0x36')];_0x22c87f++)_0x3212ec[_0xafe0('0x47')](_0x23cc9f[_0x22c87f]['pairId'])||0x0==_0x23cc9f[_0x22c87f]['distance']||(_0x23cc9f[_0x22c87f][_0xafe0('0x9d')]=!0x0);return _0x23cc9f[_0xafe0('0x6e')](_0x3d64ea=>!_0x3d64ea[_0xafe0('0x9d')]);}[_0xafe0('0x7d')](_0x2366f8){const _0x17d08f=new Set();for(let _0x2cbf33=0x0;_0x2cbf33<_0x2366f8[_0xafe0('0x36')];_0x2cbf33++){if(_0x17d08f[_0xafe0('0x47')](_0x2366f8[_0x2cbf33]['id'])&&_0x2366f8[_0x2cbf33][_0xafe0('0x107')]&&(_0x2366f8[_0x2cbf33]['isIncorrect']=!0x0),_0x2366f8[_0x2cbf33][_0xafe0('0x9d')])continue;if(0x0==_0x2366f8[_0x2cbf33][_0xafe0('0x43')])continue;if(_0xafe0('0xee')!=_0x2366f8[_0x2cbf33][_0xafe0('0xd2')])continue;if(null==_0x2366f8[_0x2cbf33][_0xafe0('0xbe')])continue;let _0x268cb5=_0x2cbf33+0x1,_0x4a847a=0x0;for(;_0x2366f8[_0x268cb5]['id']!=_0x2366f8[_0x2cbf33][_0xafe0('0xbe')];)_0xafe0('0xee')==_0x2366f8[_0x268cb5][_0xafe0('0xd2')]?_0x4a847a++:_0xafe0('0xac')==_0x2366f8[_0x268cb5]['type']&&_0x4a847a--,_0x268cb5++;if(0x0!=_0x4a847a){if(_0x2366f8[_0x2cbf33][_0xafe0('0x107')])_0x2366f8[_0x2cbf33]['isIncorrect']=!0x0;else for(;_0x268cb5!=_0x2cbf33;)_0x2366f8[_0x268cb5][_0xafe0('0x107')]&&0x0!=_0x2366f8[_0x268cb5][_0xafe0('0x43')]&&(_0x2366f8[_0x268cb5][_0xafe0('0x9d')]=!0x0,_0x17d08f['add'](_0x2366f8[_0x268cb5][_0xafe0('0xbe')])),_0x268cb5--;}}return _0x2366f8[_0xafe0('0x6e')](_0x16520f=>!_0x16520f[_0xafe0('0x9d')]);}[_0xafe0('0x22')](_0x383cbb){const _0x16ebdb=this['editor'][_0xafe0('0xa')][_0xafe0('0xe5')];for(let _0x4ef512=0x0;_0x4ef512<_0x383cbb[_0xafe0('0x36')];_0x4ef512++){if(!(_0x383cbb[_0x4ef512]['isAdded']||_0x383cbb[_0x4ef512]['isAddSuggestion']||_0x383cbb[_0x4ef512]['isRemoved']||_0x383cbb[_0x4ef512][_0xafe0('0x96')]))continue;if(0x0==_0x383cbb[_0x4ef512][_0xafe0('0x43')])continue;const _0x46ff5c=_0x383cbb[_0x4ef512][_0xafe0('0x63')];_0x16ebdb[_0xafe0('0x40')](_0x46ff5c)||_0x16ebdb[_0xafe0('0xb0')](_0x46ff5c)||(_0x383cbb[_0x4ef512]['isAdded']&&delete _0x383cbb[_0x4ef512]['isAdded'],_0x383cbb[_0x4ef512][_0xafe0('0x5e')]&&delete _0x383cbb[_0x4ef512][_0xafe0('0x5e')],_0x383cbb[_0x4ef512][_0xafe0('0x96')]&&delete _0x383cbb[_0x4ef512][_0xafe0('0x96')],_0x383cbb[_0x4ef512][_0xafe0('0x107')]&&(_0x383cbb[_0x4ef512][_0xafe0('0x9d')]=!0x0));}return _0x383cbb[_0xafe0('0x6e')](_0x562fbf=>!_0x562fbf[_0xafe0('0x9d')]);}[_0xafe0('0x58')](_0x1607c7,_0x4bf76f,_0x2a572f){const _0x4f2b4=new _0x1aa534(),_0x176f5c=[],_0x212d74=new Map(),_0x13192c=this[_0xafe0('0x102')][_0xafe0('0xa')],_0x1d9aac=_0x13192c[_0xafe0('0xe5')],_0x243c32=[_0x4f2b4],_0x3e5d7c={},_0xead95d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5dcb69=null;const _0x4b7263=[0x0];for(let _0x33037d=0x0;_0x33037d<_0x1607c7[_0xafe0('0x36')];_0x33037d++){let _0x3184d2,_0x34e66d;if(_0xafe0('0xee')===_0x1607c7[_0x33037d]['type']){_0x3184d2=_0x13192c[_0xafe0('0xb7')](_0x4f2b4,_0x4b7263);const _0x989be0=new _0x4f99d2(_0x1607c7[_0x33037d][_0xafe0('0x63')]['name'],_0x1607c7[_0x33037d][_0xafe0('0x63')][_0xafe0('0x83')]());_0x243c32[0x0][_0xafe0('0x10d')](_0x989be0),_0x4b7263[_0xafe0('0x7b')](0x0),_0x243c32['unshift'](_0x989be0),_0x34e66d=_0x13192c[_0xafe0('0xb7')](_0x4f2b4,_0x4b7263),_0x5dcb69=null;}else{if('elementEnd'===_0x1607c7[_0x33037d][_0xafe0('0xd2')])_0x243c32[_0xafe0('0x91')](),_0x3184d2=_0x13192c['createPositionFromPath'](_0x4f2b4,_0x4b7263),_0x4b7263['pop'](),_0x4b7263[_0x4b7263[_0xafe0('0x36')]-0x1]++,_0x34e66d=_0x13192c['createPositionFromPath'](_0x4f2b4,_0x4b7263),_0x5dcb69=null;else{if(_0x3184d2=_0x13192c[_0xafe0('0xb7')](_0x4f2b4,_0x4b7263),_0x5dcb69&&_0xcb86a(_0x5dcb69,_0x1607c7[_0x33037d][_0xafe0('0x63')]))_0x5dcb69[_0xafe0('0x64')]+=_0x1607c7[_0x33037d][_0xafe0('0x63')][_0xafe0('0x30')];else{const _0x412594=new _0x1c85de(_0x1607c7[_0x33037d][_0xafe0('0x63')][_0xafe0('0x30')],_0x1607c7[_0x33037d][_0xafe0('0x63')][_0xafe0('0x83')]());_0x243c32[0x0]['_appendChild'](_0x412594),_0x5dcb69=_0x412594;}_0x4b7263[_0x4b7263['length']-0x1]+=_0x1607c7[_0x33037d][_0xafe0('0x63')]['offsetSize'],_0x34e66d=_0x13192c[_0xafe0('0xb7')](_0x4f2b4,_0x4b7263);}}for(const _0x128bdd of _0x1607c7[_0x33037d][_0xafe0('0xef')])_0x212d74[_0xafe0('0x100')](_0x128bdd,{'start':_0x3184d2,'end':null});_0x31b625(_0xafe0('0x96'),_0x33037d,_0x3184d2,_0x34e66d),_0x31b625(_0xafe0('0x5e'),_0x33037d,_0x3184d2,_0x34e66d),_0x31b625(_0xafe0('0x107'),_0x33037d,_0x3184d2,_0x34e66d),_0x31b625(_0xafe0('0x2e'),_0x33037d,_0x3184d2,_0x34e66d);for(const _0x228848 of _0x1607c7[_0x33037d][_0xafe0('0x1e')]){_0x212d74[_0xafe0('0x1f')](_0x228848)[_0xafe0('0xb8')]=_0x34e66d;}}for(const [_0x49daf9,_0x281971]of _0x212d74){const _0x1beada=this['editor'][_0xafe0('0xa')]['createRange'](_0x281971[_0xafe0('0x56')],_0x281971['end']);_0x4f2b4[_0xafe0('0xed')][_0xafe0('0x100')](_0x49daf9,_0x1beada);}return _0x176f5c[_0xafe0('0x3e')]((_0x5e08ae,_0xea9ed5)=>{const _0x1a944c=_0x4f2b4[_0xafe0('0xed')][_0xafe0('0x1f')]('revision:'+_0x5e08ae['id']),_0x303d6f=_0x4f2b4[_0xafe0('0xed')][_0xafe0('0x1f')](_0xafe0('0x59')+_0xea9ed5['id']);return _0x1a944c[_0xafe0('0x56')]['isBefore'](_0x303d6f[_0xafe0('0x56')])?-0x1:_0x1a944c[_0xafe0('0x56')][_0xafe0('0x5c')](_0x303d6f[_0xafe0('0x56')])?0x1:_0x1a944c['end'][_0xafe0('0x7f')](_0x303d6f[_0xafe0('0xb8')])?-0x1:_0x1a944c['end'][_0xafe0('0x5c')](_0x303d6f[_0xafe0('0xb8')])?0x1:_0xafe0('0x13')===_0x5e08ae['type']?-0x1:0x1;}),{'root':_0x4f2b4,'changes':_0x176f5c};function _0x31b625(_0x166712,_0xafe16c,_0x574706,_0x32c73e){const _0x40fde8=!!_0x1607c7[_0xafe16c][_0x166712],_0x48ca5f=_0x40fde8?_0x1607c7[_0xafe16c][_0x166712][_0xafe0('0x10f')]:null,_0x41a061=_0xafe16c===_0x1607c7[_0xafe0('0x36')]-0x1,_0x152306=_0xead95d[_0x166712][0x0],_0x5c293b=_0x1d9aac[_0xafe0('0xec')](_0x1607c7[_0xafe16c][_0xafe0('0x63')]);!_0x3e5d7c[_0x166712]&&_0x40fde8?_0x3e5d7c[_0x166712]={'start':_0x574706,'tapeItem':_0x1607c7[_0xafe16c],'userId':_0x48ca5f,'type':_0x166712}:_0x3e5d7c[_0x166712]&&!_0x40fde8?(_0x3e5d7c[_0x166712][_0xafe0('0xb8')]=_0x574706,_0x3438b1(_0x3e5d7c[_0x166712]),_0x3e5d7c[_0x166712]=null):_0x3e5d7c[_0x166712]&&_0x40fde8&&_0x3e5d7c[_0x166712][_0xafe0('0x10f')]!==_0x48ca5f&&(_0x3e5d7c[_0x166712][_0xafe0('0xb8')]=_0x574706,_0x152306&&_0x152306[_0xafe0('0x10f')]===_0x3e5d7c[_0x166712][_0xafe0('0x10f')]||_0x3438b1(_0x3e5d7c[_0x166712]),_0x3e5d7c[_0x166712]={'start':_0x574706,'tapeItem':_0x1607c7[_0xafe16c],'userId':_0x48ca5f,'type':_0x166712}),_0x3e5d7c[_0x166712]&&_0x5c293b&&('elementStart'!==_0x1607c7[_0xafe16c]['type']||_0x152306&&_0x152306[_0xafe0('0x10f')]===_0x48ca5f||_0xead95d[_0x166712]['unshift']({'userId':_0x48ca5f,'object':_0x1607c7[_0xafe16c][_0xafe0('0x63')],'change':_0x3e5d7c[_0x166712]}),_0xafe0('0xac')===_0x1607c7[_0xafe16c][_0xafe0('0xd2')]&&_0x152306&&_0x152306['object']===_0x1607c7[_0xafe16c][_0xafe0('0x63')]&&(_0xead95d[_0x166712][_0xafe0('0x91')](),_0x3e5d7c[_0x166712]=_0x152306['change'])),_0x3e5d7c[_0x166712]&&_0x41a061&&(_0x3e5d7c[_0x166712]['end']=_0x32c73e,_0x3438b1(_0x3e5d7c[_0x166712]),_0x3e5d7c[_0x166712]=null);}function _0x3438b1({start:_0xfbd38b,end:_0x15adda,tapeItem:_0x39b729,userId:_0x10d681,type:_0x3650de}){const _0x2ef899=_0x39b729[_0xafe0('0x63')],_0x5c8e9e=_0x13192c[_0xafe0('0xe5')][_0xafe0('0x40')](_0x2ef899)&&!_0x13192c[_0xafe0('0xe5')][_0xafe0('0xb0')](_0x2ef899),_0x41aacb=_0xfbd38b[_0xafe0('0x31')]==_0x15adda[_0xafe0('0x4e')]&&_0x15adda[_0xafe0('0xdf')];if(_0x5c8e9e&&_0x41aacb)return;const _0x182f4c=_0x13192c[_0xafe0('0xd7')](_0xfbd38b,_0x15adda),_0x450eab=_0x4bf76f[_0xafe0('0x1f')](_0x10d681),_0x54409a=new _0x5a441c({'author':_0x450eab,'type':_0xafe0('0x2e')==_0x3650de||'isAddSuggestion'==_0x3650de?_0xafe0('0x13'):_0xafe0('0xae'),'data':{'isSuggestion':_0xafe0('0x5e')==_0x3650de||_0xafe0('0x96')==_0x3650de},'createdAt':new Date(),'rootName':_0x2a572f});_0x176f5c[_0xafe0('0x7b')](_0x54409a),_0x4f2b4[_0xafe0('0xed')][_0xafe0('0x100')]('revision:'+_0x54409a['id'],_0x182f4c);}function _0xcb86a(_0x150436,_0x372398){const _0x5a1f13=_0x150436['getAttributes'](),_0x25aa76=_0x372398[_0xafe0('0x83')]();for(const _0x4bbfab of _0x5a1f13){if(_0x4bbfab[0x1]!==_0x372398['getAttribute'](_0x4bbfab[0x0]))return!0x1;_0x25aa76[_0xafe0('0xc0')]();}return _0x25aa76[_0xafe0('0xc0')]()[_0xafe0('0x120')];}}[_0xafe0('0xbc')](){this[_0xafe0('0x102')]['conversion'][_0xafe0('0xbb')]('upcast')[_0xafe0('0xf0')]({'view':_0xafe0('0x119')}),this[_0xafe0('0x102')]['conversion'][_0xafe0('0xbb')]('editingDowncast')[_0xafe0('0xf9')]({'model':_0xafe0('0x119'),'view':_0x167b6e=>{const _0x4caa67=_0x167b6e['markerName']['split'](':')[0x1],_0x3fead8=this[_0xafe0('0xfb')](_0x4caa67);if(!_0x3fead8)return null;const _0x4b3587='add'==_0x3fead8['type']?_0xafe0('0x85'):'deletion',_0x48384d=[_0xafe0('0x48'),_0xafe0('0xea')+_0x4b3587];return _0x3fead8['data'][_0xafe0('0x61')]&&_0x48384d['push'](_0xafe0('0xea')+_0x4b3587+_0xafe0('0xe9')),this[_0xafe0('0xb5')]==_0x3fead8&&_0x48384d[_0xafe0('0x7b')](_0xafe0('0xcc')),{'classes':_0x48384d,'attributes':{'data-change-id':_0x4caa67}};}}),this[_0xafe0('0x102')][_0xafe0('0x51')]['for']('upcast')[_0xafe0('0x13')](_0x46c19d=>{_0x46c19d['on'](_0xafe0('0x106'),(_0x419c5f,_0x461942,_0x799234)=>{const _0x178675=_0x461942[_0xafe0('0x9')][_0xafe0('0x19')](0x0);if(!_0x178675||!_0x178675['is']('element',_0xafe0('0xa5')))return;if(!_0x799234['consumable']['consume'](_0x178675,{'attributes':[_0xafe0('0x109'),_0xafe0('0x94')]}))return;const _0x2e76af=_0x461942[_0xafe0('0xa3')][_0xafe0('0x56')][_0xafe0('0x31')];_0x799234[_0xafe0('0xb3')]['setAttribute'](_0xafe0('0x109'),_0x178675[_0xafe0('0x41')](_0xafe0('0x109')),_0x2e76af),_0x799234[_0xafe0('0xb3')]['setAttribute'](_0xafe0('0x94'),_0x178675[_0xafe0('0x41')](_0xafe0('0x94')),_0x2e76af);},{'priority':'low'});}),this[_0xafe0('0x102')][_0xafe0('0x51')][_0xafe0('0xbb')]('upcast')[_0xafe0('0x13')](_0x17b723=>{_0x17b723['on'](_0xafe0('0x9a'),(_0x37fc55,_0x141304,_0x5da3e9)=>{if(!_0x5da3e9['consumable'][_0xafe0('0x89')](_0x141304[_0xafe0('0x9')],{'attributes':[_0xafe0('0x109'),_0xafe0('0x94')]}))return;if(_0x141304['modelRange'][_0xafe0('0x72')])return;const _0x31b99e=_0x141304['modelRange']['start'][_0xafe0('0x31')];_0x31b99e['hasAttribute'](_0xafe0('0x109'))||_0x31b99e[_0xafe0('0x2')](_0xafe0('0x84'))||(_0x5da3e9[_0xafe0('0xb3')][_0xafe0('0xfd')](_0xafe0('0x109'),_0x141304['viewItem'][_0xafe0('0x41')](_0xafe0('0x109')),_0x31b99e),_0x5da3e9[_0xafe0('0xb3')][_0xafe0('0xfd')](_0xafe0('0x94'),_0x141304[_0xafe0('0x9')][_0xafe0('0x41')](_0xafe0('0x94')),_0x31b99e));},{'priority':_0xafe0('0xa9')});}),this[_0xafe0('0x102')][_0xafe0('0x51')][_0xafe0('0xbb')](_0xafe0('0x6c'))[_0xafe0('0xe4')]({'view':{'name':_0xafe0('0x39'),'attributes':{'vid':!0x0}},'model':{'key':_0xafe0('0x84'),'value':_0x336ac3=>_0x336ac3['getAttribute'](_0xafe0('0x84'))}}),this[_0xafe0('0x102')][_0xafe0('0xa')][_0xafe0('0xe5')]['on']('checkAttribute',(_0x2469e6,[,_0xbb914d])=>{[_0xafe0('0x109'),_0xafe0('0x94'),_0xafe0('0x84')][_0xafe0('0xaa')](_0xbb914d)&&(_0x2469e6[_0xafe0('0xa0')]=!0x0,_0x2469e6['stop']());},{'priority':_0xafe0('0x10')}),this[_0xafe0('0x102')][_0xafe0('0x51')]['for'](_0xafe0('0x103'))[_0xafe0('0x13')](_0xc9f31=>{_0xc9f31['on'](_0xafe0('0xf8'),(_0x195e56,_0x826bb0,_0x56520b)=>{if('\x20'!=_0x826bb0[_0xafe0('0x63')][_0xafe0('0x30')]||_0x826bb0[_0xafe0('0x63')][_0xafe0('0x4e')][_0xafe0('0xa2')]>0x1)return;if(!_0x56520b[_0xafe0('0x4b')][_0xafe0('0x89')](_0x826bb0['item'],_0x195e56[_0xafe0('0x7a')]))return;const _0x54e102=_0x56520b['writer'],_0x56cfd2=_0x56520b['mapper'][_0xafe0('0x3b')](_0x826bb0[_0xafe0('0xf1')]);_0x54e102['wrap'](_0x56cfd2,_0x54e102[_0xafe0('0x21')](_0xafe0('0x39')));});}),this['editor'][_0xafe0('0x51')][_0xafe0('0xbb')](_0xafe0('0x103'))['markerToData']({'model':_0xafe0('0x119')}),this[_0xafe0('0x102')][_0xafe0('0xbf')][_0xafe0('0x57')]['on']('addMarker:revision',function(_0x5c67c1){const _0x35c9ff=_0x5c67c1[_0xafe0('0xe8')][_0xafe0('0x1f')](_0xafe0('0x9b'));return(_0x48bb18,_0x222cdc,_0x43e9b8)=>{const _0x426c9a=_0x222cdc['markerName'][_0xafe0('0x50')](':')[0x1],_0x278873=_0x35c9ff[_0xafe0('0xfb')](_0x426c9a);if(!_0x278873)return null;const _0x1fd3a5='add'==_0x278873[_0xafe0('0xd2')]?_0xafe0('0x50'):_0xafe0('0xab');if(!_0x43e9b8['consumable']['test'](_0x222cdc[_0xafe0('0x11')],_0x48bb18[_0xafe0('0x7a')]))return;const _0x3cf10c=_0x222cdc['markerRange'][_0xafe0('0x101')](),_0x103c54=_0x222cdc[_0xafe0('0x11')][_0xafe0('0x56')],_0x43bb94=_0x5c67c1[_0xafe0('0xa')][_0xafe0('0xe5')];let _0x450ce7=null,_0x2cd8a8=null,_0x4623d4=!0x1,_0x489afa=!0x1;for(const _0x42d45b of _0x3cf10c){const _0x3184ec=_0x42d45b['item'];_0x4623d4=_0x4623d4||_0x43bb94['isContent'](_0x3184ec);const _0x144d9f=_0x43e9b8[_0xafe0('0x52')][_0xafe0('0xe3')](_0x3184ec);if(_0x144d9f&&_0x144d9f[_0xafe0('0xa7')](_0xafe0('0x4d')))return;_0xafe0('0xac')==_0x42d45b[_0xafe0('0xd2')]&&(_0x43bb94[_0xafe0('0x40')](_0x3184ec)&&!_0x43bb94[_0xafe0('0xb0')](_0x3184ec)&&(_0x3184ec['nextSibling']||_0x103c54[_0xafe0('0xd0')]?_0x450ce7&&_0x450ce7[_0xafe0('0x4e')]==_0x3184ec||(_0x450ce7=_0x3184ec,_0x2b67b8(_0x42d45b['previousPosition']),_0x489afa=!0x0):_0x2cd8a8=_0x2cd8a8||_0x42d45b[_0xafe0('0x3d')]));}function _0x2b67b8(_0x202ff7){const _0xc1c10=_0x43e9b8[_0xafe0('0xb3')][_0xafe0('0x2c')](_0xafe0('0x39'),{'class':_0xafe0('0xea')+_0x1fd3a5}),_0x50fabc=_0x43e9b8[_0xafe0('0x52')]['toViewPosition'](_0x202ff7);_0x278873[_0xafe0('0x30')]['isSuggestion']&&_0x43e9b8['writer'][_0xafe0('0xce')]('ck-suggestion-marker-'+_0x1fd3a5+_0xafe0('0xe9'),_0xc1c10),_0x35c9ff['activeChange']==_0x278873&&_0x43e9b8[_0xafe0('0xb3')][_0xafe0('0xce')](_0xafe0('0xcc'),_0xc1c10),_0x43e9b8[_0xafe0('0xb3')][_0xafe0('0x6a')](_0x50fabc,_0xc1c10),_0x43e9b8[_0xafe0('0x52')][_0xafe0('0x8d')](_0xc1c10,_0x222cdc[_0xafe0('0xd6')]);}_0x4623d4||_0x489afa||!_0x2cd8a8||_0x2b67b8(_0x2cd8a8);};}(this[_0xafe0('0x102')]),{'priority':'high'}),this[_0xafe0('0x102')][_0xafe0('0xbf')][_0xafe0('0x57')]['on'](_0xafe0('0x10b'),(_0x476764,_0xffb2d,_0xd4d85e)=>{const _0x33c9cf=_0xd4d85e[_0xafe0('0x52')]['markerNameToElements'](_0xffb2d[_0xafe0('0xd6')]);if(_0x33c9cf)for(const _0x58082b of _0x33c9cf)(_0x58082b[_0xafe0('0xe7')](_0xafe0('0x92'))||_0x58082b[_0xafe0('0xe7')]('ck-suggestion-marker-merge'))&&(_0xd4d85e[_0xafe0('0x52')][_0xafe0('0xf2')](_0x58082b,_0xffb2d['markerName']),_0xd4d85e[_0xafe0('0xb3')][_0xafe0('0xae')](_0x58082b));},{'priority':_0xafe0('0x122')}),this[_0xafe0('0x102')][_0xafe0('0xbf')][_0xafe0('0x57')]['on'](_0xafe0('0x67'),(_0x1c4b99,_0x383618,_0x3dcfde)=>{const _0x68eb90=_0x383618['markerName']['split'](':')[0x1],_0x14d799=this[_0xafe0('0xfb')](_0x68eb90);if(!_0x14d799)return null;const _0x3b61e4='add'==_0x14d799['type']?_0xafe0('0x50'):_0xafe0('0xab');if(_0x3dcfde[_0xafe0('0x4b')][_0xafe0('0x5')](_0x383618['markerRange'],_0x1c4b99[_0xafe0('0x7a')]))for(const _0x160887 of _0x383618[_0xafe0('0x11')][_0xafe0('0x8b')]()){if(!_0x160887['is'](_0xafe0('0x9a'),_0xafe0('0x34')))continue;const _0x3aea4e=_0x3dcfde[_0xafe0('0xb3')][_0xafe0('0x2c')](_0xafe0('0x39'),{'class':'ck-suggestion-marker-'+_0x3b61e4}),_0x48c489=_0x3dcfde[_0xafe0('0x52')][_0xafe0('0xd5')](this[_0xafe0('0x102')]['model'][_0xafe0('0xd8')](_0x160887));_0x14d799[_0xafe0('0x30')][_0xafe0('0x61')]&&_0x3dcfde[_0xafe0('0xb3')][_0xafe0('0xce')](_0xafe0('0xea')+_0x3b61e4+_0xafe0('0xe9'),_0x3aea4e),this[_0xafe0('0xb5')]==_0x14d799&&_0x3dcfde[_0xafe0('0xb3')][_0xafe0('0xce')](_0xafe0('0xcc'),_0x3aea4e),_0x3dcfde['writer'][_0xafe0('0x6a')](_0x48c489,_0x3aea4e),_0x3dcfde[_0xafe0('0x52')][_0xafe0('0x8d')](_0x3aea4e,_0x383618[_0xafe0('0xd6')]);}},{'priority':_0xafe0('0x122')}),this['editor']['model'][_0xafe0('0xa1')]['on'](_0xafe0('0xb6'),()=>{this[_0xafe0('0x102')][_0xafe0('0xbf')][_0xafe0('0x5a')][_0xafe0('0xb6')](_0x5e3b4a=>{for(const _0x1db544 of this[_0xafe0('0x102')][_0xafe0('0xa')][_0xafe0('0xa1')][_0xafe0('0x70')]()){const _0x4ce524=this[_0xafe0('0x102')][_0xafe0('0xa')][_0xafe0('0xa1')]['getRoot'](_0x1db544),_0x181b94=this['editor'][_0xafe0('0xbf')][_0xafe0('0x5a')]['document']['getRoot'](_0x1db544);if(_0x181b94){const _0x1ba856=_0x4ce524[_0xafe0('0x41')](_0xafe0('0x88'));if(_0x5e3b4a['removeAttribute'](_0xafe0('0x111'),_0x181b94),_0x5e3b4a[_0xafe0('0x23')](_0xafe0('0x7c'),_0x181b94),_0x5e3b4a[_0xafe0('0x23')](_0xafe0('0x66'),_0x181b94),_0x5e3b4a['removeClass'](_0xafe0('0x53'),_0x181b94),_0x1ba856){const _0x130d8f=this['_getChangeFromId'](_0x1ba856);if(!_0x130d8f)return null;_0x5e3b4a[_0xafe0('0xfd')](_0xafe0('0x111'),_0x1ba856,_0x181b94),_0x5e3b4a[_0xafe0('0xce')]('ck-revision-history-root-'+_0x130d8f[_0xafe0('0xd2')],_0x181b94),this['activeChange']==_0x130d8f&&_0x5e3b4a[_0xafe0('0xce')](_0xafe0('0x53'),_0x181b94);}}}});}),this[_0xafe0('0x102')][_0xafe0('0x51')][_0xafe0('0xbb')](_0xafe0('0x6c'))['dataToMarker']({'view':_0xafe0('0x20'),'model':_0x23a9e1=>'revision-comment:'+_0x23a9e1,'converterPriority':_0xafe0('0x10')}),this[_0xafe0('0x102')][_0xafe0('0x51')][_0xafe0('0xbb')](_0xafe0('0x6c'))[_0xafe0('0xf0')]({'view':_0xafe0('0x117'),'model':_0x49ff82=>_0xafe0('0x55')+_0x49ff82,'converterPriority':'highest'}),this[_0xafe0('0x102')][_0xafe0('0x51')][_0xafe0('0xbb')]('dataDowncast')[_0xafe0('0xc2')]({'model':_0xafe0('0x4f'),'view':_0x5e013a=>({'name':'suggestion:'+_0x5e013a,'group':_0xafe0('0x4f')}),'converterPriority':'highest'}),this[_0xafe0('0x102')][_0xafe0('0x51')][_0xafe0('0xbb')](_0xafe0('0x3a'))[_0xafe0('0xf9')]({'model':_0xafe0('0x4f'),'view':_0x30cccc=>{const _0x4ab82d=_0x30cccc[_0xafe0('0xd6')][_0xafe0('0x50')](':')[0x1];return'insertion'!=_0x4ab82d&&_0xafe0('0x90')!=_0x4ab82d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4ab82d]};}}),this[_0xafe0('0x102')]['editing'][_0xafe0('0x57')]['on'](_0xafe0('0x95'),et(this[_0xafe0('0x102')],_0xafe0('0xab')),{'priority':_0xafe0('0x122')}),this['editor'][_0xafe0('0xbf')]['downcastDispatcher']['on'](_0xafe0('0xa8'),et(this[_0xafe0('0x102')],'split'),{'priority':_0xafe0('0x122')}),this[_0xafe0('0x102')][_0xafe0('0xbf')][_0xafe0('0x57')]['on'](_0xafe0('0xe0'),(_0x52476c,_0x3ece25,_0x2e2cc2)=>{const _0x39e03e=_0x2e2cc2[_0xafe0('0x52')]['markerNameToElements'](_0x3ece25['markerName']);if(_0x39e03e)for(const _0x1006f6 of _0x39e03e)_0x1006f6['is'](_0xafe0('0x76'))&&(_0x2e2cc2[_0xafe0('0x52')][_0xafe0('0xf2')](_0x1006f6,_0x3ece25[_0xafe0('0xd6')]),_0x2e2cc2['writer'][_0xafe0('0xae')](_0x1006f6));},{'priority':'high'});}[_0xafe0('0xfb')](_0x1f6da9){return this[_0xafe0('0xc3')]['get'](_0x1f6da9);}[_0xafe0('0x74')](_0x59db9a){return this['_changeView']&&this[_0xafe0('0xc8')][_0xafe0('0x1b')](),this[_0xafe0('0xc8')]=new _0x3ddc6a(this[_0xafe0('0x102')][_0xafe0('0x17')],_0x59db9a),this[_0xafe0('0xc8')];}[_0xafe0('0x78')](){this[_0xafe0('0x102')][_0xafe0('0xa')][_0xafe0('0xa1')]['selection'][_0xafe0('0x80')](_0xafe0('0x119')),this['on']('change:activeView',(_0x301f76,_0x254416,_0x152298,_0x8273c9)=>{_0x8273c9&&this[_0xafe0('0x8a')]['remove'](_0x8273c9),_0x152298&&(this[_0xafe0('0x8a')][_0xafe0('0x13')]({'view':_0x152298,'stackId':_0xafe0('0x2a'),'position':{'target':()=>{const _0x25a5b3=this[_0xafe0('0x102')][_0xafe0('0xbf')],_0x40418f=this['_getChangeFromId'](_0x152298[_0xafe0('0xbd')]);let _0x41dcc6;if(_0x40418f['data'][_0xafe0('0x98')]){const _0x8b5fef=_0x25a5b3[_0xafe0('0x5a')][_0xafe0('0x81')](_0x40418f['rootName']);_0x41dcc6=Array['from'](_0x8b5fef[_0xafe0('0x11b')]());}else{const _0x5f7328=this['editor'][_0xafe0('0xa')][_0xafe0('0xed')][_0xafe0('0x1f')](_0xafe0('0x59')+_0x152298[_0xafe0('0xbd')]);_0x41dcc6=Array[_0xafe0('0xd3')](_0x25a5b3[_0xafe0('0x52')][_0xafe0('0x118')](_0x5f7328[_0xafe0('0x7a')]))[_0xafe0('0x115')](_0x579b23=>_0x25a5b3['view'][_0xafe0('0x2f')][_0xafe0('0x4c')](_0x579b23))['map'](_0x367c3e=>Array['from'](_0x367c3e['getClientRects']()))[_0xafe0('0x77')]();}if(!this['_activeViewTarget'])return _0x41dcc6[0x0];return _0x41dcc6[_0xafe0('0x121')](_0x34d9cd=>_0x34d9cd[_0xafe0('0x11a')]-0x3<=this[_0xafe0('0x45')]['y']&&_0x34d9cd[_0xafe0('0x49')]+0x3>=this['_activeViewTarget']['y']&&_0x34d9cd[_0xafe0('0x10e')]-0x3<=this[_0xafe0('0x45')]['x']&&_0x34d9cd[_0xafe0('0x5b')]+0x3>=this['_activeViewTarget']['x'])||_0x41dcc6[0x0];}}}),this[_0xafe0('0x8a')]['showStack']('revisionHistoryLabel'));}),this['on'](_0xafe0('0x116'),(_0x2d4f48,_0x3bfbdc,_0x5d0c5d,_0x5159c7)=>{this[_0xafe0('0x73')]=_0x5d0c5d?this[_0xafe0('0x74')](_0x5d0c5d):null,this[_0xafe0('0x102')]['model']['change'](()=>{const _0x5cd0fe=this['editor'][_0xafe0('0xbf')];_0x5159c7&&(_0x5159c7['data'][_0xafe0('0x98')]?_0x5cd0fe[_0xafe0('0x5a')][_0xafe0('0xb6')](_0x428db4=>{_0x428db4[_0xafe0('0x23')](_0xafe0('0x53'),_0x5cd0fe['view'][_0xafe0('0xa1')]['getRoot'](_0x5159c7[_0xafe0('0x86')]));}):_0x5cd0fe[_0xafe0('0x11f')](_0xafe0('0x59')+_0x5159c7['id'])),_0x5d0c5d&&(_0x5d0c5d['data']['isOnRoot']?_0x5cd0fe[_0xafe0('0x5a')][_0xafe0('0xb6')](_0x127a18=>{_0x127a18[_0xafe0('0xce')](_0xafe0('0x53'),_0x5cd0fe['view'][_0xafe0('0xa1')][_0xafe0('0x44')](_0x5d0c5d[_0xafe0('0x86')]));}):_0x5cd0fe[_0xafe0('0x11f')](_0xafe0('0x59')+_0x5d0c5d['id']));});}),this[_0xafe0('0x97')](this[_0xafe0('0x102')][_0xafe0('0xbf')][_0xafe0('0x5a')][_0xafe0('0xa1')],'mouseover',(_0x26254b,_0x335a7f)=>{if(this['activeChange'])return;const _0x234011=this[_0xafe0('0xe6')](_0x335a7f[_0xafe0('0x28')]),_0x5c6393=this['_changeIdToChange'][_0xafe0('0x1f')](_0x234011);_0x5c6393?(this[_0xafe0('0x45')]={'x':_0x335a7f[_0xafe0('0xdd')]['x'],'y':_0x335a7f['domEvent']['y']},this[_0xafe0('0x73')]=this[_0xafe0('0x74')](_0x5c6393)):(this[_0xafe0('0x45')]=null,this[_0xafe0('0x73')]=null);}),this[_0xafe0('0x97')](this['editor'][_0xafe0('0xbf')][_0xafe0('0x5a')][_0xafe0('0xa1')],_0xafe0('0xc6'),(_0x5215ae,_0x5cb2b2)=>{const _0x3587ed=this[_0xafe0('0xe6')](_0x5cb2b2['target']),_0x355466=this[_0xafe0('0xc3')][_0xafe0('0x1f')](_0x3587ed);_0x355466?(this[_0xafe0('0x45')]={'x':_0x5cb2b2[_0xafe0('0xdd')]['x'],'y':_0x5cb2b2[_0xafe0('0xdd')]['y']},_0x355466===this['activeChange']?this['_balloon']['updatePosition']():this[_0xafe0('0xb5')]=_0x355466):(this[_0xafe0('0x45')]=null,this[_0xafe0('0xb5')]=null);});}['_findChangeIdFromDomTarget'](_0x1d22d4){do{const _0x1cc9cf=_0x1d22d4[_0xafe0('0x41')](_0xafe0('0x111'));if(_0x1cc9cf)return _0x1cc9cf;_0x1d22d4=_0x1d22d4[_0xafe0('0x4e')];}while(_0x1d22d4);return null;}[_0xafe0('0x33')](){this['editor'][_0xafe0('0xa')][_0xafe0('0xb6')](_0x2bc7a2=>{for(const _0x146210 of this['editor'][_0xafe0('0xa')]['markers'])_0x2bc7a2[_0xafe0('0x24')](_0x146210);});}}function et(_0x3a2822,_0x109ed7){return(_0x4ad22c,_0x3f2cb9,_0x48041a)=>{if(!_0x48041a['consumable']['test'](_0x3f2cb9[_0xafe0('0x11')],_0x4ad22c[_0xafe0('0x7a')]))return;const _0x217ce9=_0x3f2cb9[_0xafe0('0x11')][_0xafe0('0x101')](),_0x5efad3=_0x3f2cb9[_0xafe0('0x11')][_0xafe0('0x56')],_0x555cbf=_0x3a2822[_0xafe0('0xa')]['schema'];let _0x4fe84b=null,_0x1f255a=null,_0x3754aa=!0x1,_0x48cb7d=!0x1;for(const _0x2eebf3 of _0x217ce9){const _0x5abe57=_0x2eebf3[_0xafe0('0x63')];_0x3754aa=_0x3754aa||_0x555cbf[_0xafe0('0x16')](_0x5abe57);const _0x41ac68=_0x48041a[_0xafe0('0x52')]['toViewElement'](_0x5abe57);if(_0x41ac68&&_0x41ac68['getCustomProperty'](_0xafe0('0x4d')))return;_0xafe0('0xac')==_0x2eebf3[_0xafe0('0xd2')]&&(_0x555cbf[_0xafe0('0x40')](_0x5abe57)&&!_0x555cbf[_0xafe0('0xb0')](_0x5abe57)&&(_0x5abe57[_0xafe0('0xe')]||_0x5efad3['isAtEnd']?_0x4fe84b&&_0x4fe84b[_0xafe0('0x4e')]==_0x5abe57||(_0x4fe84b=_0x5abe57,_0x59fb18(_0x2eebf3['previousPosition']),_0x48cb7d=!0x0):_0x1f255a=_0x1f255a||_0x2eebf3[_0xafe0('0x3d')]));}function _0x59fb18(_0x2be0e4){const _0x5ac6ec=_0x48041a[_0xafe0('0x52')]['toViewPosition'](_0x2be0e4),_0x24dec1=_0x48041a[_0xafe0('0xb3')]['createUIElement'](_0xafe0('0x39'),{'class':_0xafe0('0x5f')+_0x109ed7});_0x48041a[_0xafe0('0xb3')][_0xafe0('0x6a')](_0x5ac6ec,_0x24dec1),_0x48041a[_0xafe0('0x52')]['bindElementToMarker'](_0x24dec1,_0x3f2cb9[_0xafe0('0xd6')]);}_0x3754aa||_0x48cb7d||!_0x1f255a||_0x59fb18(_0x1f255a);};}export class RestoreRevisionCommand extends _0x2b2918{constructor(_0x2accce){super(_0x2accce);const _0x143264=_0x2accce[_0xafe0('0xe8')]['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x143264,_0xafe0('0xaf'),()=>this[_0xafe0('0xf4')]()),this['listenTo'](_0x143264,'change:isEnabled',()=>this[_0xafe0('0xf4')]());}[_0xafe0('0xe2')](){const _0x5f3c49=this[_0xafe0('0x102')],_0x1cb25d=_0x5f3c49[_0xafe0('0xe8')][_0xafe0('0x1f')](d),_0x28a00e=_0x1cb25d[_0xafe0('0xe1')]?_0x1cb25d[_0xafe0('0xca')][_0xafe0('0xf3')]:null;_0x5f3c49['config']['get']('revisionHistory')[_0xafe0('0xcb')](_0x28a00e);}[_0xafe0('0xf4')](){const {isReady:_0x1929af,isEnabled:_0x3461f7}=this[_0xafe0('0x102')][_0xafe0('0xe8')][_0xafe0('0x1f')](d);this[_0xafe0('0xda')]=_0x1929af&&_0x3461f7;}}export class ShowChangeCommand extends _0x2b2918{constructor(_0xa8d4d0,{direction:_0x51a1cb}){super(_0xa8d4d0);const _0x43b094=_0xa8d4d0[_0xafe0('0xe8')]['get'](d);this[_0xafe0('0x11d')]=!0x1,this[_0xafe0('0x8')]=_0xafe0('0x10c')===_0x51a1cb?0x1:-0x1,this['listenTo'](_0x43b094,_0xafe0('0xaf'),()=>this[_0xafe0('0xf4')]()),this[_0xafe0('0x97')](_0x43b094,_0xafe0('0xad'),()=>this[_0xafe0('0xf4')]()),this[_0xafe0('0x97')](_0x43b094,_0xafe0('0x116'),()=>this[_0xafe0('0xf4')]());}[_0xafe0('0xe2')](){const _0x151e26=this[_0xafe0('0x102')],_0x313701=_0x151e26['plugins']['get'](d),{isNavigationMode:_0x25760c,currentChangeNumber:_0x53dac4}=_0x313701;let _0x2974f5;if(_0x313701[_0xafe0('0xb5')]=_0x25760c?_0x313701[_0xafe0('0xca')]['changes']['get'](_0x53dac4+this[_0xafe0('0x8')]):_0x313701[_0xafe0('0xca')][_0xafe0('0x11e')][_0xafe0('0xf7')],_0x313701[_0xafe0('0xb5')][_0xafe0('0x30')][_0xafe0('0x98')])_0x2974f5=_0x151e26['editing'][_0xafe0('0x5a')]['getDomRoot'](_0x313701[_0xafe0('0xb5')]['rootName']);else{const _0x6effd3=_0x151e26[_0xafe0('0xa')][_0xafe0('0xed')]['get'](_0xafe0('0x59')+_0x313701[_0xafe0('0xb5')]['id']);_0x2974f5=_0x20865c(_0x151e26['editing'],_0x6effd3);}_0x1260c8({'target':_0x2974f5,'viewportOffset':0x28});}[_0xafe0('0xf4')](){const {isNavigationMode:_0x12645b,currentChangeNumber:_0x462c79,numberOfChanges:_0x385446,isReady:_0x4be042,isEnabled:_0x2fcff6}=this[_0xafe0('0x102')][_0xafe0('0xe8')][_0xafe0('0x1f')](d);this[_0xafe0('0xda')]=!!(_0x2fcff6&&_0x4be042&&_0x385446)&&(!_0x12645b||(0x1===this[_0xafe0('0x8')]?_0x462c79<_0x385446-0x1:_0x462c79>0x0));}}
23
+ const _0x397e=['modelRange','_cleanMarkers','ck-revision-history-root-','bindElementToMarker','indexOf','ck-editor__editable__overlay','split','_revisions','revision','isInline','_balloon','sort','isAfter','toViewPosition','affectsData','flat','getChild','_threeWayMerge','from','mouseover','isSuggestion','elementStart','ck-suggestion-preview-marker','ck-revision-history-root-add','createRevision','_processTape','newRevisionId','toViewRange','index','currentChangeNumber','catch','_activeViewTarget','revision-start','forward','abs','resolve','start','markersStart','isAddSuggestion','nextPosition','concat','suggestion:','text','element:pre','consume','isBlock','data','isOnRoot','commands','showNextChange','revisionHistoryLabel','insertion','_markSuggestions','maxOffset','elementEnd','_cleanUp','markersEnd','schema','useFillerType','_changeView','revision-suggestion:','isAttached','-new','editing','isRemoveSuggestion','attributesAfter','delete','error','shift','compare','numberOfChanges','map','attribute:vid','getRoot','listenTo','ck-suggestion-preview-marker-','restoreRevision','_sortAndFilterDiffChanges','for','deletions','isCollapsed','item','done','writer','left','_getViewObj','activeView','previousPosition','enableReadOnlyMode','startsWith','createRangeIn','bind','addMarker:revision-suggestion:insertion','filter','isLimit','toModel','domEvent','test','isEqual','_update','hasClass','_initInteractions','children','element','ck-revision-history-root-remove','upcast','insert','isNavigationMode','revision-end','first','high','clear','ck-revision-history-root--active','markerToHighlight','side','has','ck-suggestion-marker-','_setChanges','diff','right','addMarker:revision-suggestion:deletion','addRevisionData','plugins','_appendChild','refresh','detachRoot','data-revision-','processor','distance','_makeModelFromTape','viewItem','changeId','hasAttribute','RevisionViewer','unbindElementFromMarkerName','isAdded','_removeRevisionMarkers','document','change:isReady','keys','POSITIVE_INFINITY','view','addHighlight','insertions','attributes','addClass','_joinTapes','_step','mapper','parent','code','target','isIncorrect','revision-comment:','domConverter','execute','pop','nodeAfter','return','offsetSize','getWalker','removeClass','model','consumable','diffData','_makeModelFromViewString','change:activeChange','getDomRoot','length','next','startIndex','_markInsertions','activeChange','vid_end','markerName','add','getRootNames','_changeIdToChange','pairId','vid','find','restoreRevisionCallback','_fixObsoleteTags','getClientRects','type','enqueueChange','addRoot','isRemoved','nextSibling','merge','adapter','highest','low','downcastDispatcher','change:isEnabled','config','findIndex','get','setAttribute','set','showStack','end','parse','getIndex','userId','forceDisabled','all','getItems','markerNameToElements','ck-suggestion-marker-merge','isEnabled','markerRange','revisionHistory','softBreak','attachChange','data-change-id','uiElement','push','vid_start','WidgetToolbarRepository','bottom','init','change','forEach','_removeMissingPairs','rootName','deletion','addMarker:revision','reconvertMarker','changes','level','slice','_setDistance','getRevision','_getDiff','toViewElement','string','revision-viewer','mousedown','change:activeView','endIndex','locale','revision-suggestion','ck-suggestion-marker--active','editingDowncast','span','remove','stop','createPositionFromPath','getAttributes','top','oldRevisionId','markers','_getViewForChange','createUIElement','_markMarkers','authors','wrap','createAttributeElement','destroy','unshift','splice','getAttribute','_getChangeFromId','collaboration.channelId','revisionHistoryAttachChange','editor','_markMismatchedRemovedTags','name','isReady','revision:','then','change:numberOfChanges','_setConversion','showPreviousChange','dataDowncast','isAtStart','isAtEnd','getRevisionRootsAttributes','markerToData','dataToMarker','repository','conversion','roots','toData','_removeUnsupportedChanges','_makeTape','ck-suggestion-marker-split','getCustomProperty','_findChangeIdFromDomTarget','comment','includes','loadRevisionData'];(function(_0x4cd812,_0x397ef7){const _0x5f56eb=function(_0x2d4061){while(--_0x2d4061){_0x4cd812['push'](_0x4cd812['shift']());}};_0x5f56eb(++_0x397ef7);}(_0x397e,0x1a7));const _0x5f56=function(_0x4cd812,_0x397ef7){_0x4cd812=_0x4cd812-0x0;let _0x5f56eb=_0x397e[_0x4cd812];return _0x5f56eb;};import{Plugin as _0x5e3775,Command as _0x14259b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x455a82}from'ckeditor5/src/utils';import{ContextualBalloon as _0x38ab13}from'ckeditor5/src/ui';import{DocumentFragment as _0x2dd089,Element as _0x33325d,Text as _0x3840ba,ViewDocumentFragment as _0x2d9ce0,ViewText as _0x1cd1ec,ViewElement as _0x119151,ViewContainerElement as _0xcd952c,ViewAttributeElement as _0x5e4e34,ViewEmptyElement as _0x165648,ViewRawElement as _0x39344b,ViewUIElement as _0x310436}from'ckeditor5/src/engine';import{Users as _0x26dad2,getMarkerDomElement as _0x43e17b}from'ckeditor5-collaboration/src/collaboration-core';import _0x3a00c8 from'./ui/revisionviewer/changedetailsview';import _0x2f3486 from'./revisionsrepository';import _0x3348ea from'./changeitem';import{default as _0xe16e1c}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x413fed}from'lodash-es';const tt={'c':_0xcd952c,'a':_0x5e4e34,'e':_0x165648,'r':_0x39344b,'u':_0x310436};export default class d extends _0x5e3775{static get['pluginName'](){return _0x5f56('0x3');}static get['requires'](){return[_0x26dad2,_0x38ab13,_0x2f3486];}constructor(_0x12e070){super(_0x12e070),this[_0x5f56('0x97')]=this[_0x5f56('0x88')]['plugins'][_0x5f56('0x43')]('RevisionsRepository'),this[_0x5f56('0x45')](_0x5f56('0x2a'),null),this[_0x5f56('0x45')](_0x5f56('0xf9'),null),this[_0x5f56('0xc2')]=null,this[_0x5f56('0x45')]('diff',null),this[_0x5f56('0x45')](_0x5f56('0x8b'),!0x1),this[_0x5f56('0x45')](_0x5f56('0x50'),!0x0),this['on'](_0x5f56('0x40'),(_0x411913,_0x568d6d,_0xc5831c)=>{this[_0x5f56('0x2a')]=null,this['activeView']=null,this[_0x5f56('0x88')][_0x5f56('0xe2')][_0x5f56('0xb')]['change'](_0x551320=>{for(const _0x278ccf of this[_0x5f56('0x88')][_0x5f56('0xe2')][_0x5f56('0xb')][_0x5f56('0x7')][_0x5f56('0x99')])_0xc5831c?_0x551320[_0x5f56('0x1f')]('ck-editor__editable__overlay',_0x278ccf):_0x551320[_0x5f56('0xf')](_0x5f56('0xa8'),_0x278ccf);});}),this['bind'](_0x5f56('0x10e'))['to'](this,'activeChange',_0x2bf6b4=>null!==_0x2bf6b4),this['bind'](_0x5f56('0xc0'))['to'](this,_0x5f56('0x8b'),this,_0x5f56('0x119'),this,_0x5f56('0x2a'),(_0x1e6bfb,_0x2b863d,_0xf6614b)=>_0x1e6bfb&&_0xf6614b?_0x2b863d[_0x5f56('0x63')][_0x5f56('0x49')](_0xf6614b):0x0),this[_0x5f56('0xfe')](_0x5f56('0xe9'))['to'](this,_0x5f56('0x8b'),this,_0x5f56('0x119'),(_0x56de28,_0x3d8417)=>_0x56de28?_0x3d8417[_0x5f56('0x63')][_0x5f56('0x26')]:0x0),this[_0x5f56('0xde')]=null,this[_0x5f56('0x2f')]=new Map(),this[_0x5f56('0x3c')]=null,this['_balloon']=this['editor'][_0x5f56('0x11d')][_0x5f56('0x43')](_0x38ab13);}[_0x5f56('0x5b')](){const _0x4f67bd=this[_0x5f56('0x88')],_0x1cf2f5=new ShowChangeCommand(_0x4f67bd,{'direction':'backward'}),_0x590451=new ShowChangeCommand(_0x4f67bd,{'direction':_0x5f56('0xc4')});(_0x4f67bd['commands']['add'](_0x5f56('0x90'),_0x1cf2f5),_0x4f67bd['commands'][_0x5f56('0x2d')](_0x5f56('0xd4'),_0x590451),_0x4f67bd[_0x5f56('0xd3')][_0x5f56('0x2d')](_0x5f56('0xef'),new RestoreRevisionCommand(_0x4f67bd)),this['on'](_0x5f56('0x8e'),()=>{_0x1cf2f5[_0x5f56('0x11f')](),_0x590451[_0x5f56('0x11f')]();}),this[_0x5f56('0x8f')](),this['_initInteractions'](),_0x4f67bd[_0x5f56('0xfb')](_0x5f56('0x6b')),_0x4f67bd['plugins'][_0x5f56('0x116')](_0x5f56('0x59')))&&_0x4f67bd[_0x5f56('0x11d')]['get'](_0x5f56('0x59'))[_0x5f56('0x4b')]('revision-viewer');}async['getRevisionData'](_0x2d4e8d){await this[_0x5f56('0xa2')](_0x2d4e8d);const _0xe5cb4a={};for(const _0x3b6736 in _0x2d4e8d[_0x5f56('0x22')]){if(_0x2d4e8d['diffData'][_0x3b6736][_0x5f56('0x54')]&&!_0x2d4e8d[_0x5f56('0x22')][_0x3b6736][_0x5f56('0x54')][_0x5f56('0xe0')])continue;const _0x1f564c=this[_0x5f56('0x6')](JSON[_0x5f56('0x48')](_0x2d4e8d[_0x5f56('0x22')][_0x3b6736][_0x5f56('0xd')])),_0x4fb574=this[_0x5f56('0x88')]['editing'][_0x5f56('0xb')][_0x5f56('0x7')],_0x1f623d=new _0x2d9ce0(_0x4fb574,_0x1f564c[_0x5f56('0xea')](_0x4b3f43=>this[_0x5f56('0xf8')](_0x4b3f43)));this[_0x5f56('0x88')][_0x5f56('0xd1')]['processor']['useFillerType']('marked'),_0xe5cb4a[_0x3b6736]=this['editor']['data']['processor'][_0x5f56('0x9a')](_0x1f623d),this['editor'][_0x5f56('0xd1')][_0x5f56('0x122')][_0x5f56('0xdd')]('default');}return _0xe5cb4a;}async[_0x5f56('0x94')](_0x55ae0b){await this[_0x5f56('0xa2')](_0x55ae0b);const _0x818fcd={};for(const _0x249362 in _0x55ae0b[_0x5f56('0x22')])_0x55ae0b[_0x5f56('0x22')][_0x249362]['attachChange']&&!_0x55ae0b[_0x5f56('0x22')][_0x249362][_0x5f56('0x54')][_0x5f56('0xe0')]||(_0x818fcd[_0x249362]=_0x55ae0b[_0x5f56('0x22')][_0x249362][_0x5f56('0xe4')]||{});return _0x818fcd;}['_removeRevisionMarkers'](_0x311eb4){return(_0x311eb4=_0x311eb4[_0x5f56('0x100')](_0x132424=>!_0x132424[_0x5f56('0x8a')]||_0x5f56('0xc3')!==_0x132424['name']&&_0x5f56('0x10f')!==_0x132424[_0x5f56('0x8a')]))[_0x5f56('0x5d')](_0x1e4b18=>{_0x5f56('0x6a')!=typeof _0x1e4b18&&(_0x1e4b18[_0x5f56('0x109')]=this[_0x5f56('0x6')](_0x1e4b18[_0x5f56('0x109')]),_0x1e4b18[_0x5f56('0xe')]=_0x1e4b18['attributes']['filter'](_0x27e114=>!_0x27e114[0x0][_0x5f56('0xfc')](_0x5f56('0x121'))));}),_0x311eb4;}async[_0x5f56('0xe8')](_0x42ba2b,_0xc14e58,_0xa701cb=!0x1){if(!this[_0x5f56('0x50')])return;const _0x51d66d=this['diff'],_0x55e3d5=this[_0x5f56('0x97')],_0x1d3e73=_0x5f56('0x6a')==typeof _0x42ba2b?_0x55e3d5[_0x5f56('0x67')](_0x42ba2b):_0x42ba2b,_0x154f52=_0x5f56('0x6a')==typeof _0xc14e58?_0x55e3d5[_0x5f56('0x67')](_0xc14e58):_0xc14e58,_0x2f6907=_0x1d3e73['id'],_0x1b75db=_0x154f52?_0x154f52['id']:null;if(!_0xa701cb&&this[_0x5f56('0x119')]&&this[_0x5f56('0x119')][_0x5f56('0xbd')]===_0x2f6907&&this[_0x5f56('0x119')][_0x5f56('0x79')]===_0x1b75db)return Promise[_0x5f56('0xc6')]();this['isReady']=!0x1,this['activeView']=null,this[_0x5f56('0x2a')]=null,this[_0x5f56('0x119')]=new _0xe16e1c(_0x2f6907,_0x1b75db);const _0x18214e=this['_getRevisionsRange'](_0x1d3e73,_0x154f52,!0x0)['map'](_0xfc2021=>this['loadRevisionData'](_0xfc2021));return _0x18214e[_0x5f56('0x57')](new Promise(_0x21045b=>{setTimeout(_0x21045b,0x14);})),Promise[_0x5f56('0x4c')](_0x18214e)[_0x5f56('0x8d')](()=>{if(!this[_0x5f56('0x50')])return;this[_0x5f56('0xda')]();const _0x1781e0=this[_0x5f56('0x68')](_0x2f6907,_0x1b75db);for(const _0x1b075a of _0x1781e0[_0x5f56('0x63')])this[_0x5f56('0x2f')][_0x5f56('0x45')](_0x1b075a['id'],_0x1b075a);this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0x37')]({'isUndoable':!0x1},_0x135660=>{for(const _0x30a672 of this['editor'][_0x5f56('0x20')][_0x5f56('0x7')][_0x5f56('0x2e')]())_0x135660[_0x5f56('0x120')](_0x30a672);for(const _0x278696 of Object['keys'](_0x1781e0[_0x5f56('0x20')])){const _0x4e1d90=_0x135660[_0x5f56('0x38')](_0x278696);for(const _0x2f59f0 of Object[_0x5f56('0x9')](_0x1781e0[_0x5f56('0xe')][_0x278696]))_0x135660[_0x5f56('0x44')](_0x2f59f0,_0x1781e0['attributes'][_0x278696][_0x2f59f0],_0x4e1d90);_0x135660[_0x5f56('0x10d')](_0x1781e0['model'][_0x278696],_0x4e1d90,0x0);}}),this[_0x5f56('0x119')][_0x5f56('0x118')](this[_0x5f56('0xf0')](_0x1781e0[_0x5f56('0x63')])),this['isReady']=!0x0;})[_0x5f56('0xc1')](_0x3ae99a=>{console[_0x5f56('0xe6')](_0x3ae99a),this[_0x5f56('0xda')](),_0x51d66d&&(this[_0x5f56('0x119')]=_0x51d66d),this[_0x5f56('0x8b')]=!0x0;});}[_0x5f56('0x11c')](_0x21c268,_0x1a406a){const _0x587e72=this[_0x5f56('0x97')][_0x5f56('0xbb')](_0x21c268);return _0x587e72['on']('_update',(_0x2c262c,_0x5c92e6,_0x6ea07b)=>_0x1a406a(_0x5c92e6,_0x6ea07b,_0x587e72)),this[_0x5f56('0x97')]['addRevision'](_0x587e72),_0x587e72;}[_0x5f56('0xa2')](_0x515e58){if(!_0x515e58||_0x515e58[_0x5f56('0x22')])return Promise['resolve']();{const _0x4660b8=this['editor'][_0x5f56('0x41')][_0x5f56('0x43')](_0x5f56('0x86'));return this[_0x5f56('0x3c')][_0x5f56('0x67')]({'channelId':_0x4660b8,'revisionId':_0x515e58['id']})[_0x5f56('0x8d')](_0x4cc305=>{_0x515e58[_0x5f56('0x106')]({'diffData':_0x4cc305['diffData']},!0x0);});}}[_0x5f56('0xda')](){this['activeChange']=null,this[_0x5f56('0xa4')](),this[_0x5f56('0xde')]&&this[_0x5f56('0xde')][_0x5f56('0x81')](),this[_0x5f56('0xde')]=null,this[_0x5f56('0x2f')][_0x5f56('0x112')](),this[_0x5f56('0x88')][_0x5f56('0x20')]['enqueueChange']({'isUndoable':!0x1},_0x3113e0=>{for(const _0x585d3b of this['editor'][_0x5f56('0x20')][_0x5f56('0x7')][_0x5f56('0x2e')]())_0x3113e0[_0x5f56('0x120')](_0x585d3b);});}[_0x5f56('0xf0')](_0x3d94d0){const _0x27c440=[],_0x528ed6=new Map();for(const _0x3d865c of this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0x7')][_0x5f56('0x2e')]()){const _0x4d6b21=this[_0x5f56('0x88')]['editing'][_0x5f56('0xb')][_0x5f56('0x25')](_0x3d865c);if(!_0x4d6b21)continue;const _0x417cd6=_0x4d6b21[_0x5f56('0x35')]()[_0x5f56('0xf4')](0x0);_0x417cd6&&(_0x27c440['push'](_0x3d865c),_0x528ed6[_0x5f56('0x45')](_0x3d865c,_0x417cd6));}return _0x27c440[_0x5f56('0xae')]((_0x214df9,_0x5b5f5b)=>{const _0x2398c6=_0x528ed6[_0x5f56('0x43')](_0x214df9),_0x1e2dcd=_0x528ed6[_0x5f56('0x43')](_0x5b5f5b);return _0x2398c6['y']-_0x1e2dcd['y']||_0x2398c6['x']-_0x1e2dcd['x'];}),(_0x3d94d0=_0x3d94d0['filter'](_0x49d375=>_0x27c440[_0x5f56('0xa1')](_0x49d375[_0x5f56('0x5f')])))[_0x5f56('0xae')]((_0x464726,_0x215854)=>_0x27c440[_0x5f56('0xa7')](_0x464726[_0x5f56('0x5f')])-_0x27c440[_0x5f56('0xa7')](_0x215854['rootName'])),_0x3d94d0;}[_0x5f56('0x9c')](_0x494b25){const _0x2d51e3=Array[_0x5f56('0xb5')](_0x494b25['markers'])[_0x5f56('0x100')](([_0x3e80fc,_0x5b0493])=>_0x3e80fc['startsWith']('revision:')&&!_0x5b0493[_0x5f56('0xf3')]),_0x3d414e=Array[_0x5f56('0xb5')](this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0xfd')](_0x494b25)[_0x5f56('0x1e')]({'singleCharacters':!0x0}));if(0x0!=_0x2d51e3[_0x5f56('0x26')])for(const _0xd9c778 of _0x3d414e){const [_0x5b67d0,_0xaf8667]=_0x2d51e3[0x0],[,_0x24787f,_0x544d3d]=_0x5b67d0[_0x5f56('0xa9')](':');if(_0xaf8667[_0x5f56('0x47')][_0x5f56('0x105')](_0xd9c778[_0x5f56('0xca')])&&_0x2d51e3[_0x5f56('0xe7')](),(_0xd9c778['previousPosition'][_0x5f56('0x105')](_0xaf8667['start'])||_0xd9c778['previousPosition'][_0x5f56('0xaf')](_0xaf8667[_0x5f56('0xc7')]))&&(_0x5f56('0xd6')==_0x24787f?_0xd9c778[_0x5f56('0x5')]={'userId':_0x544d3d}:'deletion'==_0x24787f&&(_0xd9c778[_0x5f56('0x39')]={'userId':_0x544d3d})),0x0==_0x2d51e3[_0x5f56('0x26')])break;}return _0x3d414e;}['_refreshStartEndIndex'](_0x264815){const _0x2c2813=new Map();for(let _0x4bf6f1=0x0;_0x4bf6f1<_0x264815['length'];_0x4bf6f1++)_0x5f56('0xcd')===_0x264815[_0x4bf6f1][_0x5f56('0x36')]?(_0x264815[_0x4bf6f1][_0x5f56('0xf4')][_0x5f56('0x28')]=_0x4bf6f1,_0x264815[_0x4bf6f1]['item']['endIndex']=_0x4bf6f1):('elementStart'===_0x264815[_0x4bf6f1][_0x5f56('0x36')]?_0x264815[_0x4bf6f1][_0x5f56('0xf4')][_0x5f56('0x28')]=_0x4bf6f1:_0x5f56('0xd9')===_0x264815[_0x4bf6f1][_0x5f56('0x36')]&&(_0x264815[_0x4bf6f1][_0x5f56('0xf4')][_0x5f56('0x6e')]=_0x4bf6f1),_0x2c2813['set'](_0x264815[_0x4bf6f1]['id'],_0x4bf6f1));for(const _0x2b90da of _0x2c2813['values']())_0x5f56('0xb8')===_0x264815[_0x2b90da][_0x5f56('0x36')]?_0x264815[_0x2b90da][_0x5f56('0xf4')][_0x5f56('0x6e')]=_0x2c2813[_0x5f56('0x43')](_0x264815[_0x2b90da][_0x5f56('0x30')]):_0x5f56('0xd9')===_0x264815[_0x2b90da]['type']&&(_0x264815[_0x2b90da][_0x5f56('0xf4')][_0x5f56('0x28')]=_0x2c2813[_0x5f56('0x43')](_0x264815[_0x2b90da][_0x5f56('0x30')]));}[_0x5f56('0xbc')](_0x15e190){for(let _0x11ba2b=0x0;_0x11ba2b<_0x15e190[_0x5f56('0x26')];_0x11ba2b++){if(_0x5f56('0xb8')===_0x15e190[_0x11ba2b][_0x5f56('0x36')])_0x15e190[_0x11ba2b]['item']['startIndex']=_0x11ba2b;else{if('elementEnd'===_0x15e190[_0x11ba2b]['type']){_0x15e190[_0x11ba2b][_0x5f56('0xf4')][_0x5f56('0x6e')]=_0x11ba2b;const _0x2cd40f=_0x15e190[_0x11ba2b][_0x5f56('0xf4')][_0x5f56('0x28')];_0x15e190[_0x2cd40f][_0x5f56('0x30')]=_0x15e190[_0x11ba2b]['id'],_0x15e190[_0x11ba2b][_0x5f56('0x30')]=_0x15e190[_0x2cd40f]['id'];}else _0x15e190[_0x11ba2b][_0x5f56('0xf4')][_0x5f56('0x28')]=_0x11ba2b,_0x15e190[_0x11ba2b][_0x5f56('0xf4')][_0x5f56('0x6e')]=_0x11ba2b,_0x15e190[_0x11ba2b]['pairId']=null;}_0x15e190[_0x11ba2b][_0x5f56('0xc8')]||(_0x15e190[_0x11ba2b][_0x5f56('0xc8')]=[],_0x15e190[_0x11ba2b][_0x5f56('0xdb')]=[]);}}['_markInsertions'](_0x3627f5,_0x1abfc1){const _0x1ca9fe=_0x3627f5['filter'](_0x28334f=>!_0x28334f[_0x5f56('0x5')]);for(let _0x46c672=0x0;_0x46c672<_0x1abfc1[_0x5f56('0x26')];_0x46c672++)_0x1abfc1[_0x46c672][_0x5f56('0x5')]&&(_0x1ca9fe[_0x46c672]['isAdded']=_0x1abfc1[_0x46c672][_0x5f56('0x5')]);}[_0x5f56('0x23')](_0x53eba8){const _0x3fffbc=JSON['parse'](_0x53eba8),_0x205990=this['editor'][_0x5f56('0xe2')][_0x5f56('0xb')][_0x5f56('0x7')],_0x13d417=new _0x2d9ce0(_0x205990,_0x3fffbc[_0x5f56('0xea')](_0x47caf4=>this[_0x5f56('0xf8')](_0x47caf4)));return this['editor'][_0x5f56('0xd1')][_0x5f56('0x102')](_0x13d417);}['_getViewObj'](_0x4f2eec){const _0x5e1fb9=this[_0x5f56('0x88')][_0x5f56('0xe2')][_0x5f56('0xb')][_0x5f56('0x7')];if(_0x5f56('0x6a')==typeof _0x4f2eec)return new _0x1cd1ec(_0x5e1fb9,_0x4f2eec);{const _0x5a48e0=_0x4f2eec[_0x5f56('0x109')][_0x5f56('0xea')](_0x63df2a=>this['_getViewObj'](_0x63df2a));return new(tt[_0x4f2eec['type']]||_0x119151)(_0x5e1fb9,_0x4f2eec[_0x5f56('0x8a')],_0x4f2eec['attributes'],_0x5a48e0);}}[_0x5f56('0x68')](_0x185a38,_0xb0de78=null){const _0xf24dd3=this[_0x5f56('0x97')][_0x5f56('0x67')](_0x185a38),_0x1caed6=_0xb0de78?this[_0x5f56('0x97')][_0x5f56('0x67')](_0xb0de78):null,_0x182b89=this['_getRevisionsRange'](_0xf24dd3,_0x1caed6),_0xff95fd=_0x182b89[_0x182b89['length']-0x1],_0xdb4a7f=new Map(),_0x1c006e={'model':{},'attributes':{},'changes':[]},_0x2b2be3=new Set(),_0x8d000d=new Map();for(let _0x1bf6ca=_0x182b89[_0x5f56('0x26')]-0x1;_0x1bf6ca>=0x0;_0x1bf6ca--){const _0x5c9750=_0x182b89[_0x1bf6ca];for(const _0x275c48 of Object['keys'](_0x5c9750['diffData']))if(_0x5c9750[_0x5f56('0x22')][_0x275c48][_0x5f56('0x54')]){const _0x360a8e=_0x5c9750[_0x5f56('0x22')][_0x275c48][_0x5f56('0x54')];_0x360a8e[_0x5f56('0xe0')]?(_0x2b2be3[_0x5f56('0x2d')](_0x275c48),_0x8d000d[_0x5f56('0x116')](_0x275c48)&&_0x8d000d['get'](_0x275c48)[_0x5f56('0x4a')]==_0x360a8e[_0x5f56('0x4a')]?_0x8d000d[_0x5f56('0xe5')](_0x275c48):_0x8d000d[_0x5f56('0x45')](_0x275c48,_0x360a8e)):_0x8d000d[_0x5f56('0x116')](_0x275c48)?(_0x2b2be3[_0x5f56('0xe5')](_0x275c48),_0x8d000d[_0x5f56('0xe5')](_0x275c48)):(_0x2b2be3[_0x5f56('0x2d')](_0x275c48),_0x8d000d['set'](_0x275c48,_0x360a8e));}else _0x2b2be3[_0x5f56('0x2d')](_0x275c48);}for(const _0x33838b of _0x2b2be3){const _0x344a61=_0x8d000d['has'](_0x33838b)&&!_0x8d000d[_0x5f56('0x43')](_0x33838b)[_0x5f56('0xe0')];let _0x3a6481=_0x344a61?_0x182b89[_0x5f56('0x26')]-0x1:0x0;const _0x2a675e=_0x344a61?-0x1:0x1;for(;_0x182b89[_0x3a6481];){const _0x119095=_0x182b89[_0x3a6481];if(_0x119095[_0x5f56('0x22')][_0x33838b]){const _0x101b56=_0x344a61?_0x119095[_0x5f56('0x22')][_0x33838b]['attributesBefore']:_0x119095[_0x5f56('0x22')][_0x33838b][_0x5f56('0xe4')];_0x1c006e[_0x5f56('0xe')][_0x33838b]=_0x101b56?_0x413fed(_0x101b56):{};break;}_0x3a6481+=_0x2a675e;}}for(const _0x51f5c8 of _0x182b89){_0x51f5c8[_0x5f56('0x20')]={};for(const _0x4603f5 of _0x51f5c8[_0x5f56('0x7e')])_0xdb4a7f['set'](_0x4603f5['id'],_0x4603f5);for(const _0xf81b81 of _0x2b2be3){const _0x488707=_0x51f5c8[_0x5f56('0x22')][_0xf81b81]?_0x51f5c8['diffData'][_0xf81b81][_0x5f56('0xd')]:'[]',_0x20cfd0=_0x51f5c8[_0x5f56('0x22')][_0xf81b81]?_0x51f5c8['diffData'][_0xf81b81][_0x5f56('0xf2')]:'[]';_0x51f5c8[_0x5f56('0x20')][_0xf81b81]={'insertions':this[_0x5f56('0x23')](_0x488707),'deletions':this['_makeModelFromViewString'](_0x20cfd0)};}}for(const _0xe1d8e5 of _0x2b2be3){let _0x2672a0=null,_0x59860c=0x0;const _0x40901a=new Map(Array['from'](_0xf24dd3[_0x5f56('0x20')][_0xe1d8e5][_0x5f56('0xd')][_0x5f56('0x7a')])[_0x5f56('0x100')](([_0x1fa14c])=>!_0x1fa14c[_0x5f56('0xfc')]('revision:')));let _0x52befe=0x0;for(const _0x2779cd of _0x182b89){const _0x36cc72=this[_0x5f56('0x9c')](_0x2779cd[_0x5f56('0x20')][_0xe1d8e5][_0x5f56('0xd')]);_0x2779cd==_0xf24dd3?(_0x2672a0=_0x36cc72,_0x59860c=_0x2672a0[_0x5f56('0x26')],_0x2672a0['forEach'](_0x1fe845=>{_0x1fe845['id']=_0x52befe++;}),this[_0x5f56('0xbc')](_0x2672a0)):this[_0x5f56('0x29')](_0x2672a0,_0x36cc72);const _0x93a445=_0x2672a0['filter'](_0x194ea2=>!_0x194ea2[_0x5f56('0x5')])[_0x5f56('0xea')](_0x45dcf1=>_0x45dcf1['id']);let _0x2796d7=0x0;const _0x1afec3=this['_makeTape'](_0x2779cd['model'][_0xe1d8e5][_0x5f56('0xf2')]);_0x1afec3[_0x5f56('0x5d')](_0x4aea69=>{_0x4aea69[_0x5f56('0x39')]?_0x4aea69['id']=_0x59860c++:_0x4aea69['id']=_0x93a445[_0x2796d7++];}),this['_processTape'](_0x1afec3),this[_0x5f56('0x66')](_0x2672a0,'isAdded'),this['_setDistance'](_0x1afec3,_0x5f56('0x39')),_0x2779cd==_0xf24dd3&&this[_0x5f56('0x7d')](_0x2672a0,_0x40901a),_0x2672a0=this[_0x5f56('0x10')](_0x2672a0,_0x1afec3),this['_refreshStartEndIndex'](_0x2672a0),this[_0x5f56('0x66')](_0x2672a0,_0x5f56('0x39'));}_0x2672a0=_0x2672a0[_0x5f56('0x100')](_0x283bf5=>!(_0x283bf5['isAdded']&&_0x283bf5['isRemoved']));const _0x2d0497=new Map(_0xff95fd[_0x5f56('0x20')][_0xe1d8e5][_0x5f56('0xf2')][_0x5f56('0x7a')]),_0x40ebec=new Set(_0x40901a[_0x5f56('0x9')]());for(const _0x287a2f of _0x2d0497['keys']())_0x40ebec['delete'](_0x287a2f);this['_markSuggestions'](_0x2672a0,_0x40ebec),this[_0x5f56('0x34')](_0x2672a0),_0x2672a0=this[_0x5f56('0x5e')](_0x2672a0),_0x2672a0=this[_0x5f56('0x89')](_0x2672a0),_0x2672a0=this['_removeUnsupportedChanges'](_0x2672a0);const {root:_0x21ff87,changes:_0x4216ac}=this[_0x5f56('0x124')](_0x2672a0,_0xdb4a7f,_0xe1d8e5);_0x1c006e[_0x5f56('0x20')][_0xe1d8e5]=_0x21ff87;const _0x198a03=_0x8d000d[_0x5f56('0x43')](_0xe1d8e5);if(_0x198a03){const _0x554b52=_0xdb4a7f[_0x5f56('0x43')](_0x198a03[_0x5f56('0x4a')]),_0x56e6e6=new _0x3348ea({'author':_0x554b52,'type':_0x198a03[_0x5f56('0xe0')]?_0x5f56('0x2d'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xe1d8e5});_0x4216ac['unshift'](_0x56e6e6),_0x1c006e[_0x5f56('0xe')][_0xe1d8e5][_0x5f56('0x87')]=_0x56e6e6['id'];}_0x1c006e['changes']=_0x1c006e[_0x5f56('0x63')][_0x5f56('0xcb')](_0x4216ac);}return _0x1c006e;}['_markMarkers'](_0x4008ef,_0x544561){for(let _0x10f08b=0x0;_0x10f08b<_0x4008ef[_0x5f56('0x26')];_0x10f08b++)for(const [_0x3931d2,_0x4081fd]of _0x544561)_0x4081fd[_0x5f56('0xc7')][_0x5f56('0x105')](_0x4008ef[_0x10f08b]['previousPosition'])&&_0x4008ef[_0x10f08b][_0x5f56('0xc8')]['push'](_0x3931d2),_0x4081fd[_0x5f56('0x47')][_0x5f56('0x105')](_0x4008ef[_0x10f08b][_0x5f56('0xca')])&&_0x4008ef[_0x10f08b]['markersEnd']['push'](_0x3931d2);}[_0x5f56('0x10')](_0x18ca1d,_0xb8845){let _0x45711b=[],_0x3d2910=0x0,_0x31de2b=0x0;for(;_0x3d2910<_0x18ca1d[_0x5f56('0x26')]||_0x31de2b<_0xb8845[_0x5f56('0x26')];){const _0x24cb74=_0x18ca1d[_0x3d2910]||{},_0x56c954=_0xb8845[_0x31de2b]||{};if(_0x24cb74['id']==_0x56c954['id'])_0x3d2910++,_0x31de2b++,_0x45711b[_0x5f56('0x57')](_0x24cb74);else{if(_0x56c954[_0x5f56('0x39')]&&_0x24cb74[_0x5f56('0x5')]){const {commonTape:_0x12d1b4,iEnd:_0xa6aa1d,jEnd:_0x3b67f7}=this[_0x5f56('0xb4')](_0x18ca1d,_0x3d2910,_0xb8845,_0x31de2b);_0x45711b=_0x45711b[_0x5f56('0xcb')](_0x12d1b4),_0x3d2910=_0xa6aa1d,_0x31de2b=_0x3b67f7;}else _0x56c954[_0x5f56('0x39')]?(_0x31de2b++,_0x45711b['push'](_0x56c954)):(_0x3d2910++,_0x45711b['push'](_0x24cb74));}}return _0x45711b;}[_0x5f56('0xd7')](_0x2cac46,_0x4156d9){const _0x5e7ad9=[];for(let _0x361a66=0x0;_0x361a66<_0x2cac46['length'];_0x361a66++){for(let _0x4aa114=0x0;_0x4aa114<_0x2cac46[_0x361a66][_0x5f56('0xc8')]['length'];_0x4aa114++){const _0x124906=_0x2cac46[_0x361a66][_0x5f56('0xc8')][_0x4aa114];if(!_0x4156d9['has'](_0x124906))continue;const {group:_0x162906,type:_0x2a36c2,authorId:_0x1bc4f7}=_0x40fd91(_0x124906);_0x5f56('0x70')!=_0x162906||_0x5f56('0xd6')!=_0x2a36c2&&_0x5f56('0x60')!=_0x2a36c2||(_0x5e7ad9['unshift']({'type':_0x2a36c2,'name':_0x124906,'userId':_0x1bc4f7}),_0x2cac46[_0x361a66]['markersStart'][_0x5f56('0x83')](_0x4aa114,0x1),_0x4aa114--);}_0xc73d31(_0x2cac46[_0x361a66]);for(let _0x2aa8c7=0x0;_0x2aa8c7<_0x2cac46[_0x361a66][_0x5f56('0xdb')][_0x5f56('0x26')];_0x2aa8c7++){const _0x497a8d=_0x2cac46[_0x361a66][_0x5f56('0xdb')][_0x2aa8c7];if(!_0x4156d9[_0x5f56('0x116')](_0x497a8d))continue;const {group:_0x22dd6e,type:_0x1e283c}=_0x40fd91(_0x497a8d);if(_0x5f56('0x70')!=_0x22dd6e||'insertion'!=_0x1e283c&&_0x5f56('0x60')!=_0x1e283c)continue;_0x2cac46[_0x361a66]['markersEnd'][_0x5f56('0x83')](_0x2aa8c7,0x1),_0x2aa8c7--;const _0x47ccfa=_0x5e7ad9[_0x5f56('0x42')](_0x7f3261=>_0x7f3261[_0x5f56('0x8a')]==_0x497a8d);_0x47ccfa>-0x1&&_0x5e7ad9['splice'](_0x47ccfa,0x1);}}function _0x40fd91(_0x5558c8){const _0x41d17f=_0x5558c8[_0x5f56('0xa9')](':');return{'group':_0x41d17f[0x0],'type':_0x41d17f[0x1],'subType':_0x41d17f[_0x5f56('0x26')]>=0x5?_0x41d17f[0x2]:null,'id':_0x41d17f['length']<0x5?_0x41d17f[0x2]:_0x41d17f[0x3],'authorId':_0x41d17f[_0x5f56('0x26')]<0x5?_0x41d17f[0x3]:_0x41d17f[0x4],'markerCount':0x6==_0x41d17f[_0x5f56('0x26')]?_0x41d17f[0x5]:null};}function _0xc73d31(_0x279453){for(let _0x4bb4bf=0x0;_0x4bb4bf<_0x5e7ad9[_0x5f56('0x26')];_0x4bb4bf++){if(_0x279453[_0x5f56('0x5')]&&_0x5f56('0xd6')==_0x5e7ad9[_0x4bb4bf]['type'])return _0x279453['isAddSuggestion']=_0x5e7ad9[_0x4bb4bf],void delete _0x279453[_0x5f56('0x5')];if(!_0x279453[_0x5f56('0x5')]&&!_0x279453['isRemoved']&&'deletion'==_0x5e7ad9[_0x4bb4bf][_0x5f56('0x36')])return void(_0x279453[_0x5f56('0xe3')]=_0x5e7ad9[_0x4bb4bf]);}}}[_0x5f56('0x66')](_0x189168,_0x5ab3f5){let _0x3ab354=0x0,_0x35d142=!0x1;const _0x61411f=new Map();for(const _0x156c5d of _0x189168)_0x156c5d[_0x5ab3f5]?_0x35d142&&(_0x3ab354++,_0x35d142=!0x1):(_0x3ab354++,_0x35d142=!0x0),_0x61411f['set'](_0x156c5d['id'],_0x3ab354);for(let _0x193cc5=0x0;_0x193cc5<_0x189168[_0x5f56('0x26')];_0x193cc5++){if(_0x5f56('0x39')==_0x5ab3f5&&_0x189168[_0x193cc5]['isAdded']||_0x5f56('0x5')==_0x5ab3f5&&_0x189168[_0x193cc5][_0x5f56('0x39')])continue;if(_0x5f56('0xcd')==_0x189168[_0x193cc5]['type']){_0x189168[_0x193cc5]['distance']=0x0;continue;}const _0x5910d1=_0x61411f[_0x5f56('0x43')](_0x189168[_0x193cc5]['pairId']),_0xc90977=_0x61411f[_0x5f56('0x43')](_0x189168[_0x193cc5]['id']);_0x189168[_0x193cc5]['distance']=_0x5910d1-_0xc90977;}}['_getRevisionsRange'](_0x1b84e8,_0x7aff19,_0x64d96c=!0x1){const _0x40260d=[];let _0x3c1b50=this[_0x5f56('0x97')]['getIndex'](_0x1b84e8),_0x23f45d=this[_0x5f56('0x97')][_0x5f56('0x49')](_0x7aff19);for(-0x1==_0x23f45d&&(_0x23f45d=this[_0x5f56('0x97')][_0x5f56('0xaa')]['length'],_0x64d96c=!0x1);_0x3c1b50<_0x23f45d;)_0x40260d[_0x5f56('0x57')](this[_0x5f56('0x97')][_0x5f56('0x67')](_0x3c1b50)),_0x3c1b50++;return _0x64d96c&&_0x40260d[_0x5f56('0x57')](this['repository'][_0x5f56('0x67')](_0x3c1b50)),_0x40260d;}['_threeWayMerge'](_0x54fcba,_0x1b7757,_0x55757c,_0x262a2a){const _0x1d6595=this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0xdc')];let _0x4b7ca8=_0x1b7757;for(;_0x54fcba[_0x4b7ca8]&&_0x54fcba[_0x4b7ca8][_0x5f56('0x5')];)_0x4b7ca8++;let _0x260f2c=_0x262a2a;for(;_0x55757c[_0x260f2c]&&_0x55757c[_0x260f2c][_0x5f56('0x39')];)_0x260f2c++;_0x42e74f(_0x54fcba,_0x1b7757,_0x4b7ca8),_0x42e74f(_0x55757c,_0x262a2a,_0x260f2c);const _0x41746e=_0x55757c[_0x5f56('0x65')](_0x262a2a,_0x260f2c)['concat'](_0x54fcba[_0x5f56('0x65')](_0x1b7757,_0x4b7ca8));return _0x41746e[_0x5f56('0xae')]((_0x30927f,_0x4a9fab)=>_0x30927f['side']!=_0x4a9fab['side']?_0x30927f[_0x5f56('0x115')]-_0x4a9fab[_0x5f56('0x115')]:_0x30927f[_0x5f56('0x64')]!=_0x4a9fab[_0x5f56('0x64')]?_0x30927f[_0x5f56('0x64')]-_0x4a9fab['level']:_0x30927f[_0x5f56('0x123')]!=_0x4a9fab['distance']?_0x4a9fab[_0x5f56('0x123')]-_0x30927f[_0x5f56('0x123')]:!!_0x30927f['isAdded']!=!!_0x4a9fab[_0x5f56('0x5')]?-0x1==_0x30927f[_0x5f56('0x115')]||0x0==_0x30927f[_0x5f56('0x115')]?_0x30927f['isAdded']?-0x1:0x1:_0x30927f[_0x5f56('0x5')]?0x1:-0x1:_0x30927f[_0x5f56('0xbf')]-_0x4a9fab[_0x5f56('0xbf')]),{'commonTape':_0x41746e,'iEnd':_0x4b7ca8,'jEnd':_0x260f2c};function _0x42e74f(_0x5999fc,_0x42315f,_0x1477b5){let _0x232f05=-0x1,_0x2f1c78=Number[_0x5f56('0xa')],_0x349950=!0x0;for(let _0x33f89c=_0x42315f;_0x33f89c<_0x1477b5;_0x33f89c++)if(_0x1d6595[_0x5f56('0xac')](_0x5999fc[_0x33f89c]['item'])||(_0x349950=!0x1),_0x5999fc[_0x33f89c][_0x5f56('0xf4')]['startIndex']<_0x42315f&&(_0x232f05=_0x33f89c),_0x5999fc[_0x33f89c][_0x5f56('0xf4')][_0x5f56('0x6e')]>=_0x1477b5){_0x2f1c78=_0x33f89c;break;}_0x349950&&(_0x232f05=_0x1477b5-0x1);for(let _0x3904c9=_0x42315f;_0x3904c9<_0x1477b5;_0x3904c9++)_0x5999fc[_0x3904c9][_0x5f56('0x115')]=_0x3904c9<=_0x232f05?-0x1:_0x3904c9<_0x2f1c78?0x0:0x1,_0x5999fc[_0x3904c9][_0x5f56('0xbf')]=_0x3904c9;let _0x2d7fe1=0x0;for(let _0x12691d=_0x42315f;_0x12691d<=_0x232f05;_0x12691d++)0x0==_0x5999fc[_0x12691d]['distance']?_0x5999fc[_0x12691d][_0x5f56('0x64')]=_0x2d7fe1:(_0x2d7fe1++,_0x5999fc[_0x12691d]['level']=_0x2d7fe1,_0x2d7fe1++);for(let _0x2a2bc7=_0x42315f;_0x2a2bc7<_0x1477b5;_0x2a2bc7++)0x0==_0x5999fc[_0x2a2bc7][_0x5f56('0x115')]&&(_0x5999fc[_0x2a2bc7][_0x5f56('0x64')]=_0x2d7fe1);_0x2d7fe1=0x0;for(let _0x53455b=_0x1477b5-0x1;_0x53455b>=_0x2f1c78;_0x53455b--)0x0==_0x5999fc[_0x53455b][_0x5f56('0x123')]?_0x5999fc[_0x53455b][_0x5f56('0x64')]=_0x2d7fe1:(_0x2d7fe1--,_0x5999fc[_0x53455b]['level']=_0x2d7fe1,_0x2d7fe1--);}}[_0x5f56('0x34')](_0x27ca97){const _0x40f118=new Map(),_0xbb9fbe=this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0xdc')];for(let _0x159051=0x1;_0x159051<_0x27ca97[_0x5f56('0x26')];_0x159051++){let _0xf13c5d,_0x217de6,_0x2ba13b;const _0x277ce2=_0x27ca97[_0x159051],_0x41106c=_0x27ca97[_0x159051-0x1];if(_0x5f56('0xcd')==_0x277ce2[_0x5f56('0x36')])continue;if(_0x277ce2['type']!=_0x41106c['type'])continue;if(!_0xbb9fbe[_0x5f56('0xd0')](_0x41106c[_0x5f56('0xf4')])||_0xbb9fbe[_0x5f56('0x101')](_0x41106c[_0x5f56('0xf4')]))continue;if(!_0xbb9fbe[_0x5f56('0xd0')](_0x277ce2['item'])||_0xbb9fbe[_0x5f56('0x101')](_0x277ce2[_0x5f56('0xf4')]))continue;if((_0x27ca97[_0x159051][_0x5f56('0x5')]||_0x27ca97[_0x159051][_0x5f56('0xc9')])&&_0x27ca97[_0x159051-0x1][_0x5f56('0x39')])_0xf13c5d=_0x27ca97[_0x159051],_0x217de6=_0x27ca97[_0x159051-0x1],_0x2ba13b=_0x159051-0x1;else{if(!_0x27ca97[_0x159051]['isRemoved']||!_0x27ca97[_0x159051-0x1][_0x5f56('0x5')]&&!_0x27ca97[_0x159051-0x1][_0x5f56('0xc9')])continue;_0xf13c5d=_0x27ca97[_0x159051-0x1],_0x217de6=_0x27ca97[_0x159051],_0x2ba13b=_0x159051;}const _0x50202f=_0xf13c5d[_0x5f56('0x64')]==_0x217de6[_0x5f56('0x64')],_0x3c36f3=Math['abs'](_0xf13c5d[_0x5f56('0x64')])<Math[_0x5f56('0xc5')](_0x217de6[_0x5f56('0x64')])&&0x0==_0x217de6[_0x5f56('0x123')];(_0x50202f||_0x3c36f3)&&(_0x40f118['set'](_0x217de6['id'],_0xf13c5d['id']),_0x27ca97[_0x5f56('0x83')](_0x2ba13b,0x1),_0x159051--,_0xf13c5d[_0x5f56('0x5')]=!0x1);}for(let _0xbc2061=0x0;_0xbc2061<_0x27ca97[_0x5f56('0x26')];_0xbc2061++)_0x40f118[_0x5f56('0x116')](_0x27ca97[_0xbc2061][_0x5f56('0x30')])&&(_0x27ca97[_0xbc2061][_0x5f56('0x30')]=_0x40f118[_0x5f56('0x43')](_0x27ca97[_0xbc2061][_0x5f56('0x30')]));}[_0x5f56('0x5e')](_0x3dc124){const _0x1e4602=new Set(_0x3dc124['map'](_0x270ec8=>_0x270ec8['id']));for(let _0x26d7a3=0x0;_0x26d7a3<_0x3dc124[_0x5f56('0x26')];_0x26d7a3++)_0x1e4602[_0x5f56('0x116')](_0x3dc124[_0x26d7a3][_0x5f56('0x30')])||0x0==_0x3dc124[_0x26d7a3][_0x5f56('0x123')]||(_0x3dc124[_0x26d7a3][_0x5f56('0x16')]=!0x0);return _0x3dc124['filter'](_0x15c8b9=>!_0x15c8b9[_0x5f56('0x16')]);}[_0x5f56('0x89')](_0x41eaf3){const _0x39da05=new Set();for(let _0x59e923=0x0;_0x59e923<_0x41eaf3[_0x5f56('0x26')];_0x59e923++){if(_0x39da05[_0x5f56('0x116')](_0x41eaf3[_0x59e923]['id'])&&_0x41eaf3[_0x59e923][_0x5f56('0x39')]&&(_0x41eaf3[_0x59e923][_0x5f56('0x16')]=!0x0),_0x41eaf3[_0x59e923]['isIncorrect'])continue;if(0x0==_0x41eaf3[_0x59e923][_0x5f56('0x123')])continue;if('elementStart'!=_0x41eaf3[_0x59e923][_0x5f56('0x36')])continue;if(null==_0x41eaf3[_0x59e923][_0x5f56('0x30')])continue;let _0x2ee31a=_0x59e923+0x1,_0x3047cc=0x0;for(;_0x41eaf3[_0x2ee31a]['id']!=_0x41eaf3[_0x59e923][_0x5f56('0x30')];)'elementStart'==_0x41eaf3[_0x2ee31a][_0x5f56('0x36')]?_0x3047cc++:_0x5f56('0xd9')==_0x41eaf3[_0x2ee31a]['type']&&_0x3047cc--,_0x2ee31a++;if(0x0!=_0x3047cc){if(_0x41eaf3[_0x59e923][_0x5f56('0x39')])_0x41eaf3[_0x59e923][_0x5f56('0x16')]=!0x0;else for(;_0x2ee31a!=_0x59e923;)_0x41eaf3[_0x2ee31a][_0x5f56('0x39')]&&0x0!=_0x41eaf3[_0x2ee31a][_0x5f56('0x123')]&&(_0x41eaf3[_0x2ee31a][_0x5f56('0x16')]=!0x0,_0x39da05[_0x5f56('0x2d')](_0x41eaf3[_0x2ee31a][_0x5f56('0x30')])),_0x2ee31a--;}}return _0x41eaf3[_0x5f56('0x100')](_0x3d1fa0=>!_0x3d1fa0[_0x5f56('0x16')]);}[_0x5f56('0x9b')](_0x25f1ef){const _0x495972=this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0xdc')];for(let _0x320304=0x0;_0x320304<_0x25f1ef['length'];_0x320304++){if(!(_0x25f1ef[_0x320304][_0x5f56('0x5')]||_0x25f1ef[_0x320304][_0x5f56('0xc9')]||_0x25f1ef[_0x320304][_0x5f56('0x39')]||_0x25f1ef[_0x320304][_0x5f56('0xe3')]))continue;if(0x0==_0x25f1ef[_0x320304]['distance'])continue;const _0x2a13eb=_0x25f1ef[_0x320304]['item'];_0x495972[_0x5f56('0xd0')](_0x2a13eb)||_0x495972[_0x5f56('0x101')](_0x2a13eb)||(_0x25f1ef[_0x320304][_0x5f56('0x5')]&&delete _0x25f1ef[_0x320304]['isAdded'],_0x25f1ef[_0x320304]['isAddSuggestion']&&delete _0x25f1ef[_0x320304][_0x5f56('0xc9')],_0x25f1ef[_0x320304]['isRemoveSuggestion']&&delete _0x25f1ef[_0x320304][_0x5f56('0xe3')],_0x25f1ef[_0x320304][_0x5f56('0x39')]&&(_0x25f1ef[_0x320304][_0x5f56('0x16')]=!0x0));}return _0x25f1ef['filter'](_0x3951c6=>!_0x3951c6['isIncorrect']);}['_makeModelFromTape'](_0x4389ea,_0x3c0901,_0x3108e3){const _0x10163a=new _0x2dd089(),_0x56c193=[],_0x3aca30=new Map(),_0x5afb84=this[_0x5f56('0x88')][_0x5f56('0x20')],_0x1af381=_0x5afb84[_0x5f56('0xdc')],_0xa82261=[_0x10163a],_0x4589d3={},_0x5f2e81={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x921040=null;const _0x45336c=[0x0];for(let _0x5a601c=0x0;_0x5a601c<_0x4389ea['length'];_0x5a601c++){let _0x21fe4c,_0x2a687f;if(_0x5f56('0xb8')===_0x4389ea[_0x5a601c][_0x5f56('0x36')]){_0x21fe4c=_0x5afb84[_0x5f56('0x76')](_0x10163a,_0x45336c);const _0x14c427=new _0x33325d(_0x4389ea[_0x5a601c][_0x5f56('0xf4')][_0x5f56('0x8a')],_0x4389ea[_0x5a601c][_0x5f56('0xf4')][_0x5f56('0x77')]());_0xa82261[0x0][_0x5f56('0x11e')](_0x14c427),_0x45336c['push'](0x0),_0xa82261['unshift'](_0x14c427),_0x2a687f=_0x5afb84[_0x5f56('0x76')](_0x10163a,_0x45336c),_0x921040=null;}else{if(_0x5f56('0xd9')===_0x4389ea[_0x5a601c][_0x5f56('0x36')])_0xa82261[_0x5f56('0xe7')](),_0x21fe4c=_0x5afb84[_0x5f56('0x76')](_0x10163a,_0x45336c),_0x45336c[_0x5f56('0x1a')](),_0x45336c[_0x45336c[_0x5f56('0x26')]-0x1]++,_0x2a687f=_0x5afb84[_0x5f56('0x76')](_0x10163a,_0x45336c),_0x921040=null;else{if(_0x21fe4c=_0x5afb84[_0x5f56('0x76')](_0x10163a,_0x45336c),_0x921040&&_0x171a31(_0x921040,_0x4389ea[_0x5a601c]['item']))_0x921040['_data']+=_0x4389ea[_0x5a601c][_0x5f56('0xf4')][_0x5f56('0xd1')];else{const _0x415d96=new _0x3840ba(_0x4389ea[_0x5a601c][_0x5f56('0xf4')]['data'],_0x4389ea[_0x5a601c]['item']['getAttributes']());_0xa82261[0x0][_0x5f56('0x11e')](_0x415d96),_0x921040=_0x415d96;}_0x45336c[_0x45336c[_0x5f56('0x26')]-0x1]+=_0x4389ea[_0x5a601c][_0x5f56('0xf4')][_0x5f56('0x1d')],_0x2a687f=_0x5afb84['createPositionFromPath'](_0x10163a,_0x45336c);}}for(const _0x272ae4 of _0x4389ea[_0x5a601c][_0x5f56('0xc8')])_0x3aca30[_0x5f56('0x45')](_0x272ae4,{'start':_0x21fe4c,'end':null});_0x57e0db(_0x5f56('0xe3'),_0x5a601c,_0x21fe4c,_0x2a687f),_0x57e0db(_0x5f56('0xc9'),_0x5a601c,_0x21fe4c,_0x2a687f),_0x57e0db(_0x5f56('0x39'),_0x5a601c,_0x21fe4c,_0x2a687f),_0x57e0db(_0x5f56('0x5'),_0x5a601c,_0x21fe4c,_0x2a687f);for(const _0x5c7d7b of _0x4389ea[_0x5a601c][_0x5f56('0xdb')]){_0x3aca30[_0x5f56('0x43')](_0x5c7d7b)[_0x5f56('0x47')]=_0x2a687f;}}for(const [_0x15eef2,_0x2ad660]of _0x3aca30){const _0x4c9897=this[_0x5f56('0x88')][_0x5f56('0x20')]['createRange'](_0x2ad660[_0x5f56('0xc7')],_0x2ad660[_0x5f56('0x47')]);_0x10163a[_0x5f56('0x7a')][_0x5f56('0x45')](_0x15eef2,_0x4c9897);}return _0x56c193[_0x5f56('0xae')]((_0x3d743d,_0x2ed00f)=>{const _0x553513=_0x10163a['markers'][_0x5f56('0x43')](_0x5f56('0x8c')+_0x3d743d['id']),_0x400642=_0x10163a[_0x5f56('0x7a')][_0x5f56('0x43')]('revision:'+_0x2ed00f['id']);return _0x553513[_0x5f56('0xc7')]['isBefore'](_0x400642[_0x5f56('0xc7')])?-0x1:_0x553513['start'][_0x5f56('0xaf')](_0x400642[_0x5f56('0xc7')])?0x1:_0x553513[_0x5f56('0x47')]['isBefore'](_0x400642[_0x5f56('0x47')])?-0x1:_0x553513[_0x5f56('0x47')][_0x5f56('0xaf')](_0x400642[_0x5f56('0x47')])?0x1:_0x5f56('0x2d')===_0x3d743d[_0x5f56('0x36')]?-0x1:0x1;}),{'root':_0x10163a,'changes':_0x56c193};function _0x57e0db(_0x1dbb82,_0x10acf2,_0x524760,_0xb23b0f){const _0x444a30=!!_0x4389ea[_0x10acf2][_0x1dbb82],_0x5df634=_0x444a30?_0x4389ea[_0x10acf2][_0x1dbb82][_0x5f56('0x4a')]:null,_0x21d78b=_0x10acf2===_0x4389ea[_0x5f56('0x26')]-0x1,_0x16d84a=_0x5f2e81[_0x1dbb82][0x0],_0x425c55=_0x1af381['isObject'](_0x4389ea[_0x10acf2][_0x5f56('0xf4')]);!_0x4589d3[_0x1dbb82]&&_0x444a30?_0x4589d3[_0x1dbb82]={'start':_0x524760,'tapeItem':_0x4389ea[_0x10acf2],'userId':_0x5df634,'type':_0x1dbb82}:_0x4589d3[_0x1dbb82]&&!_0x444a30?(_0x4589d3[_0x1dbb82]['end']=_0x524760,_0x65bab3(_0x4589d3[_0x1dbb82]),_0x4589d3[_0x1dbb82]=null):_0x4589d3[_0x1dbb82]&&_0x444a30&&_0x4589d3[_0x1dbb82][_0x5f56('0x4a')]!==_0x5df634&&(_0x4589d3[_0x1dbb82][_0x5f56('0x47')]=_0x524760,_0x16d84a&&_0x16d84a[_0x5f56('0x4a')]===_0x4589d3[_0x1dbb82][_0x5f56('0x4a')]||_0x65bab3(_0x4589d3[_0x1dbb82]),_0x4589d3[_0x1dbb82]={'start':_0x524760,'tapeItem':_0x4389ea[_0x10acf2],'userId':_0x5df634,'type':_0x1dbb82}),_0x4589d3[_0x1dbb82]&&_0x425c55&&(_0x5f56('0xb8')!==_0x4389ea[_0x10acf2][_0x5f56('0x36')]||_0x16d84a&&_0x16d84a['userId']===_0x5df634||_0x5f2e81[_0x1dbb82][_0x5f56('0x82')]({'userId':_0x5df634,'object':_0x4389ea[_0x10acf2]['item'],'change':_0x4589d3[_0x1dbb82]}),_0x5f56('0xd9')===_0x4389ea[_0x10acf2][_0x5f56('0x36')]&&_0x16d84a&&_0x16d84a['object']===_0x4389ea[_0x10acf2][_0x5f56('0xf4')]&&(_0x5f2e81[_0x1dbb82]['shift'](),_0x4589d3[_0x1dbb82]=_0x16d84a[_0x5f56('0x5c')])),_0x4589d3[_0x1dbb82]&&_0x21d78b&&(_0x4589d3[_0x1dbb82][_0x5f56('0x47')]=_0xb23b0f,_0x65bab3(_0x4589d3[_0x1dbb82]),_0x4589d3[_0x1dbb82]=null);}function _0x65bab3({start:_0xdeeba7,end:_0x585609,tapeItem:_0x81eca5,userId:_0x1dc269,type:_0x551e07}){const _0xc93a2e=_0x81eca5[_0x5f56('0xf4')],_0x48bb17=_0x5afb84['schema'][_0x5f56('0xd0')](_0xc93a2e)&&!_0x5afb84[_0x5f56('0xdc')][_0x5f56('0x101')](_0xc93a2e),_0x20b5ce=_0xdeeba7[_0x5f56('0x1b')]==_0x585609['parent']&&_0x585609[_0x5f56('0x92')];if(_0x48bb17&&_0x20b5ce)return;const _0x29201a=_0x5afb84['createRange'](_0xdeeba7,_0x585609),_0x3db4cc=_0x3c0901[_0x5f56('0x43')](_0x1dc269),_0x2808d9=new _0x3348ea({'author':_0x3db4cc,'type':_0x5f56('0x5')==_0x551e07||_0x5f56('0xc9')==_0x551e07?'add':'remove','data':{'isSuggestion':_0x5f56('0xc9')==_0x551e07||_0x5f56('0xe3')==_0x551e07},'createdAt':new Date(),'rootName':_0x3108e3});_0x56c193['push'](_0x2808d9),_0x10163a[_0x5f56('0x7a')]['set'](_0x5f56('0x8c')+_0x2808d9['id'],_0x29201a);}function _0x171a31(_0x5fca0e,_0x1c74fa){const _0x1e0e2b=_0x5fca0e[_0x5f56('0x77')](),_0x573542=_0x1c74fa[_0x5f56('0x77')]();for(const _0x2f90fc of _0x1e0e2b){if(_0x2f90fc[0x1]!==_0x1c74fa[_0x5f56('0x84')](_0x2f90fc[0x0]))return!0x1;_0x573542[_0x5f56('0x27')]();}return _0x573542[_0x5f56('0x27')]()[_0x5f56('0xf5')];}}[_0x5f56('0x8f')](){this['editor'][_0x5f56('0x98')][_0x5f56('0xf1')](_0x5f56('0x10c'))[_0x5f56('0x96')]({'view':_0x5f56('0xab')}),this[_0x5f56('0x88')][_0x5f56('0x98')]['for'](_0x5f56('0x72'))['markerToHighlight']({'model':_0x5f56('0xab'),'view':_0x594db7=>{const _0x15bb77=_0x594db7[_0x5f56('0x2c')][_0x5f56('0xa9')](':')[0x1],_0x470e10=this['_getChangeFromId'](_0x15bb77);if(!_0x470e10)return null;const _0x4524c4=_0x5f56('0x2d')==_0x470e10[_0x5f56('0x36')]?'insertion':_0x5f56('0x60'),_0xe4757c=['ck-suggestion-marker',_0x5f56('0x117')+_0x4524c4];return _0x470e10[_0x5f56('0xd1')][_0x5f56('0xb7')]&&_0xe4757c[_0x5f56('0x57')](_0x5f56('0x117')+_0x4524c4+_0x5f56('0xe1')),this[_0x5f56('0x2a')]==_0x470e10&&_0xe4757c[_0x5f56('0x57')](_0x5f56('0x71')),{'classes':_0xe4757c,'attributes':{'data-change-id':_0x15bb77}};}}),this['editor']['conversion'][_0x5f56('0xf1')]('upcast')['add'](_0x2e1243=>{_0x2e1243['on'](_0x5f56('0xce'),(_0x582489,_0x28ceaf,_0x42946b)=>{const _0x37c699=_0x28ceaf[_0x5f56('0x0')][_0x5f56('0xb3')](0x0);if(!_0x37c699||!_0x37c699['is'](_0x5f56('0x10a'),_0x5f56('0x14')))return;if(!_0x42946b[_0x5f56('0x21')][_0x5f56('0xcf')](_0x37c699,{'attributes':[_0x5f56('0x58'),_0x5f56('0x2b')]}))return;const _0x3d1d0f=_0x28ceaf['modelRange'][_0x5f56('0xc7')][_0x5f56('0x1b')];_0x42946b['writer'][_0x5f56('0x44')](_0x5f56('0x58'),_0x37c699[_0x5f56('0x84')](_0x5f56('0x58')),_0x3d1d0f),_0x42946b[_0x5f56('0xf6')][_0x5f56('0x44')](_0x5f56('0x2b'),_0x37c699[_0x5f56('0x84')]('vid_end'),_0x3d1d0f);},{'priority':_0x5f56('0x3e')});}),this[_0x5f56('0x88')][_0x5f56('0x98')][_0x5f56('0xf1')](_0x5f56('0x10c'))[_0x5f56('0x2d')](_0x289215=>{_0x289215['on'](_0x5f56('0x10a'),(_0x1e9bdf,_0x119301,_0x4fe5d8)=>{if(!_0x4fe5d8[_0x5f56('0x21')][_0x5f56('0xcf')](_0x119301[_0x5f56('0x0')],{'attributes':[_0x5f56('0x58'),_0x5f56('0x2b')]}))return;if(_0x119301[_0x5f56('0xa3')][_0x5f56('0xf3')])return;const _0x11aab6=_0x119301[_0x5f56('0xa3')][_0x5f56('0xc7')][_0x5f56('0x1b')];_0x11aab6[_0x5f56('0x2')](_0x5f56('0x58'))||_0x11aab6[_0x5f56('0x2')](_0x5f56('0x31'))||(_0x4fe5d8[_0x5f56('0xf6')][_0x5f56('0x44')](_0x5f56('0x58'),_0x119301[_0x5f56('0x0')][_0x5f56('0x84')](_0x5f56('0x58')),_0x11aab6),_0x4fe5d8[_0x5f56('0xf6')]['setAttribute'](_0x5f56('0x2b'),_0x119301[_0x5f56('0x0')][_0x5f56('0x84')]('vid_end'),_0x11aab6));},{'priority':'low'});}),this['editor'][_0x5f56('0x98')]['for'](_0x5f56('0x10c'))['elementToAttribute']({'view':{'name':_0x5f56('0x73'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x27f92b=>_0x27f92b[_0x5f56('0x84')]('vid')}}),this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0xdc')]['on']('checkAttribute',(_0x4f3a8d,[,_0x48a7c2])=>{['vid_start',_0x5f56('0x2b'),_0x5f56('0x31')][_0x5f56('0xa1')](_0x48a7c2)&&(_0x4f3a8d[_0x5f56('0x1c')]=!0x0,_0x4f3a8d[_0x5f56('0x75')]());},{'priority':_0x5f56('0x3d')}),this[_0x5f56('0x88')]['conversion'][_0x5f56('0xf1')](_0x5f56('0x91'))[_0x5f56('0x2d')](_0x12619f=>{_0x12619f['on'](_0x5f56('0xeb'),(_0x1ac025,_0x52dbfe,_0x25e952)=>{if('\x20'!=_0x52dbfe['item'][_0x5f56('0xd1')]||_0x52dbfe[_0x5f56('0xf4')][_0x5f56('0x13')][_0x5f56('0xd8')]>0x1)return;if(!_0x25e952[_0x5f56('0x21')][_0x5f56('0xcf')](_0x52dbfe[_0x5f56('0xf4')],_0x1ac025['name']))return;const _0xdc66a5=_0x25e952['writer'],_0x51110b=_0x25e952['mapper'][_0x5f56('0xbe')](_0x52dbfe['range']);_0xdc66a5[_0x5f56('0x7f')](_0x51110b,_0xdc66a5[_0x5f56('0x80')](_0x5f56('0x73')));});}),this[_0x5f56('0x88')][_0x5f56('0x98')][_0x5f56('0xf1')](_0x5f56('0x91'))['markerToData']({'model':_0x5f56('0xab')}),this[_0x5f56('0x88')][_0x5f56('0xe2')][_0x5f56('0x3f')]['on'](_0x5f56('0x61'),function(_0x2f8e70){const _0x422a0a=_0x2f8e70[_0x5f56('0x11d')][_0x5f56('0x43')]('RevisionViewer');return(_0x4b17a3,_0x3fe722,_0x4fbd25)=>{const _0x1d37b2=_0x3fe722[_0x5f56('0x2c')]['split'](':')[0x1],_0x1d222a=_0x422a0a[_0x5f56('0x85')](_0x1d37b2);if(!_0x1d222a)return null;const _0x5ab115='add'==_0x1d222a[_0x5f56('0x36')]?'split':_0x5f56('0x3b');if(!_0x4fbd25[_0x5f56('0x21')][_0x5f56('0x104')](_0x3fe722[_0x5f56('0x51')],_0x4b17a3[_0x5f56('0x8a')]))return;const _0x28070d=_0x3fe722[_0x5f56('0x51')]['getWalker'](),_0x4c5584=_0x3fe722[_0x5f56('0x51')][_0x5f56('0xc7')],_0x5dcb32=_0x2f8e70[_0x5f56('0x20')][_0x5f56('0xdc')];let _0x563b62=null,_0x5b7e03=null,_0x24a4c8=!0x1,_0x322d30=!0x1;for(const _0x502cf1 of _0x28070d){const _0x563684=_0x502cf1['item'];_0x24a4c8=_0x24a4c8||_0x5dcb32['isContent'](_0x563684);const _0x4d98a3=_0x4fbd25[_0x5f56('0x12')]['toViewElement'](_0x563684);if(_0x4d98a3&&_0x4d98a3['getCustomProperty'](_0x5f56('0xc')))return;_0x5f56('0xd9')==_0x502cf1[_0x5f56('0x36')]&&(_0x5dcb32[_0x5f56('0xd0')](_0x563684)&&!_0x5dcb32[_0x5f56('0x101')](_0x563684)&&(_0x563684[_0x5f56('0x3a')]||_0x4c5584[_0x5f56('0x93')]?_0x563b62&&_0x563b62['parent']==_0x563684||(_0x563b62=_0x563684,_0x21b42c(_0x502cf1['previousPosition']),_0x322d30=!0x0):_0x5b7e03=_0x5b7e03||_0x502cf1[_0x5f56('0xfa')]));}function _0x21b42c(_0x3bdf27){const _0x5b2eef=_0x4fbd25[_0x5f56('0xf6')]['createUIElement'](_0x5f56('0x73'),{'class':'ck-suggestion-marker-'+_0x5ab115}),_0x14f936=_0x4fbd25[_0x5f56('0x12')]['toViewPosition'](_0x3bdf27);_0x1d222a[_0x5f56('0xd1')][_0x5f56('0xb7')]&&_0x4fbd25['writer'][_0x5f56('0xf')]('ck-suggestion-marker-'+_0x5ab115+_0x5f56('0xe1'),_0x5b2eef),_0x422a0a[_0x5f56('0x2a')]==_0x1d222a&&_0x4fbd25['writer'][_0x5f56('0xf')](_0x5f56('0x71'),_0x5b2eef),_0x4fbd25['writer'][_0x5f56('0x10d')](_0x14f936,_0x5b2eef),_0x4fbd25[_0x5f56('0x12')][_0x5f56('0xa6')](_0x5b2eef,_0x3fe722['markerName']);}_0x24a4c8||_0x322d30||!_0x5b7e03||_0x21b42c(_0x5b7e03);};}(this['editor']),{'priority':_0x5f56('0x111')}),this[_0x5f56('0x88')]['editing'][_0x5f56('0x3f')]['on']('removeMarker:revision',(_0xc454e6,_0x48934e,_0x50f357)=>{const _0xa7feed=_0x50f357[_0x5f56('0x12')]['markerNameToElements'](_0x48934e[_0x5f56('0x2c')]);if(_0xa7feed)for(const _0x425325 of _0xa7feed)(_0x425325[_0x5f56('0x107')](_0x5f56('0x9d'))||_0x425325[_0x5f56('0x107')](_0x5f56('0x4f')))&&(_0x50f357['mapper'][_0x5f56('0x4')](_0x425325,_0x48934e[_0x5f56('0x2c')]),_0x50f357[_0x5f56('0xf6')]['remove'](_0x425325));},{'priority':'high'}),this[_0x5f56('0x88')][_0x5f56('0xe2')][_0x5f56('0x3f')]['on'](_0x5f56('0x61'),(_0x5c7cc0,_0x4a7d55,_0x50cbf2)=>{const _0x49b0df=_0x4a7d55['markerName'][_0x5f56('0xa9')](':')[0x1],_0x5de801=this['_getChangeFromId'](_0x49b0df);if(!_0x5de801)return null;const _0x1043b5=_0x5f56('0x2d')==_0x5de801['type']?_0x5f56('0xa9'):_0x5f56('0x3b');if(_0x50cbf2[_0x5f56('0x21')][_0x5f56('0x104')](_0x4a7d55[_0x5f56('0x51')],_0x5c7cc0['name']))for(const _0x3bd9f9 of _0x4a7d55[_0x5f56('0x51')][_0x5f56('0x4d')]()){if(!_0x3bd9f9['is'](_0x5f56('0x10a'),_0x5f56('0x53')))continue;const _0x79f52e=_0x50cbf2[_0x5f56('0xf6')]['createUIElement'](_0x5f56('0x73'),{'class':_0x5f56('0x117')+_0x1043b5}),_0x114df3=_0x50cbf2[_0x5f56('0x12')][_0x5f56('0xb0')](this['editor']['model']['createPositionBefore'](_0x3bd9f9));_0x5de801[_0x5f56('0xd1')]['isSuggestion']&&_0x50cbf2['writer'][_0x5f56('0xf')](_0x5f56('0x117')+_0x1043b5+_0x5f56('0xe1'),_0x79f52e),this['activeChange']==_0x5de801&&_0x50cbf2[_0x5f56('0xf6')]['addClass']('ck-suggestion-marker--active',_0x79f52e),_0x50cbf2[_0x5f56('0xf6')][_0x5f56('0x10d')](_0x114df3,_0x79f52e),_0x50cbf2[_0x5f56('0x12')][_0x5f56('0xa6')](_0x79f52e,_0x4a7d55['markerName']);}},{'priority':_0x5f56('0x111')}),this[_0x5f56('0x88')]['model']['document']['on'](_0x5f56('0x5c'),()=>{this['editor'][_0x5f56('0xe2')][_0x5f56('0xb')][_0x5f56('0x5c')](_0x965850=>{for(const _0x558bf0 of this[_0x5f56('0x88')][_0x5f56('0x20')]['document']['getRootNames']()){const _0x3cbb10=this[_0x5f56('0x88')][_0x5f56('0x20')]['document'][_0x5f56('0xec')](_0x558bf0),_0x53ed49=this[_0x5f56('0x88')]['editing'][_0x5f56('0xb')][_0x5f56('0x7')][_0x5f56('0xec')](_0x558bf0);if(_0x53ed49){const _0x49c441=_0x3cbb10[_0x5f56('0x84')]('revisionHistoryAttachChange');if(_0x965850['removeAttribute'](_0x5f56('0x55'),_0x53ed49),_0x965850[_0x5f56('0x1f')](_0x5f56('0xba'),_0x53ed49),_0x965850['removeClass'](_0x5f56('0x10b'),_0x53ed49),_0x965850[_0x5f56('0x1f')]('ck-revision-history-root--active',_0x53ed49),_0x49c441){const _0x2bf07f=this['_getChangeFromId'](_0x49c441);if(!_0x2bf07f)return null;_0x965850[_0x5f56('0x44')]('data-change-id',_0x49c441,_0x53ed49),_0x965850[_0x5f56('0xf')](_0x5f56('0xa5')+_0x2bf07f[_0x5f56('0x36')],_0x53ed49),this['activeChange']==_0x2bf07f&&_0x965850[_0x5f56('0xf')]('ck-revision-history-root--active',_0x53ed49);}}}});}),this[_0x5f56('0x88')][_0x5f56('0x98')][_0x5f56('0xf1')](_0x5f56('0x10c'))[_0x5f56('0x96')]({'view':_0x5f56('0xa0'),'model':_0x19a9bd=>_0x5f56('0x17')+_0x19a9bd,'converterPriority':_0x5f56('0x3d')}),this[_0x5f56('0x88')][_0x5f56('0x98')]['for'](_0x5f56('0x10c'))['dataToMarker']({'view':'suggestion','model':_0x5ac50c=>_0x5f56('0xdf')+_0x5ac50c,'converterPriority':_0x5f56('0x3d')}),this['editor'][_0x5f56('0x98')][_0x5f56('0xf1')](_0x5f56('0x91'))[_0x5f56('0x95')]({'model':_0x5f56('0x70'),'view':_0x20726b=>({'name':_0x5f56('0xcc')+_0x20726b,'group':_0x5f56('0x70')}),'converterPriority':_0x5f56('0x3d')}),this[_0x5f56('0x88')][_0x5f56('0x98')][_0x5f56('0xf1')]('editingDowncast')[_0x5f56('0x114')]({'model':_0x5f56('0x70'),'view':_0xf7575b=>{const _0x497517=_0xf7575b['markerName'][_0x5f56('0xa9')](':')[0x1];return'insertion'!=_0x497517&&_0x5f56('0x60')!=_0x497517?null:{'classes':[_0x5f56('0xb9'),_0x5f56('0xee')+_0x497517]};}}),this['editor']['editing'][_0x5f56('0x3f')]['on'](_0x5f56('0x11b'),et(this[_0x5f56('0x88')],_0x5f56('0x3b')),{'priority':'high'}),this[_0x5f56('0x88')][_0x5f56('0xe2')]['downcastDispatcher']['on'](_0x5f56('0xff'),et(this[_0x5f56('0x88')],'split'),{'priority':_0x5f56('0x111')}),this[_0x5f56('0x88')]['editing'][_0x5f56('0x3f')]['on']('removeMarker:revision-suggestion',(_0x3b0ebe,_0x2f10b6,_0x300fe3)=>{const _0x547f2a=_0x300fe3[_0x5f56('0x12')]['markerNameToElements'](_0x2f10b6[_0x5f56('0x2c')]);if(_0x547f2a)for(const _0x41abbe of _0x547f2a)_0x41abbe['is'](_0x5f56('0x56'))&&(_0x300fe3[_0x5f56('0x12')][_0x5f56('0x4')](_0x41abbe,_0x2f10b6[_0x5f56('0x2c')]),_0x300fe3['writer'][_0x5f56('0x74')](_0x41abbe));},{'priority':_0x5f56('0x111')});}[_0x5f56('0x85')](_0x1ad6f4){return this['_changeIdToChange'][_0x5f56('0x43')](_0x1ad6f4);}[_0x5f56('0x7b')](_0xecbc32){return this[_0x5f56('0xde')]&&this[_0x5f56('0xde')][_0x5f56('0x81')](),this['_changeView']=new _0x3a00c8(this[_0x5f56('0x88')][_0x5f56('0x6f')],_0xecbc32),this[_0x5f56('0xde')];}[_0x5f56('0x108')](){this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0x7')]['selection']['observeMarkers'](_0x5f56('0xab')),this['on'](_0x5f56('0x6d'),(_0x237fdd,_0x23b1d0,_0x28f592,_0x32f4f7)=>{_0x32f4f7&&this[_0x5f56('0xad')]['remove'](_0x32f4f7),_0x28f592&&(this[_0x5f56('0xad')][_0x5f56('0x2d')]({'view':_0x28f592,'stackId':_0x5f56('0xd5'),'position':{'target':()=>{const _0x5b030a=this[_0x5f56('0x88')][_0x5f56('0xe2')],_0x264216=this['_getChangeFromId'](_0x28f592[_0x5f56('0x1')]);let _0x20a91f;if(_0x264216[_0x5f56('0xd1')][_0x5f56('0xd2')]){const _0x2b588d=_0x5b030a[_0x5f56('0xb')][_0x5f56('0x25')](_0x264216[_0x5f56('0x5f')]);_0x20a91f=Array[_0x5f56('0xb5')](_0x2b588d['getClientRects']());}else{const _0x1d5358=this[_0x5f56('0x88')]['model'][_0x5f56('0x7a')][_0x5f56('0x43')]('revision:'+_0x28f592['changeId']);_0x20a91f=Array[_0x5f56('0xb5')](_0x5b030a[_0x5f56('0x12')][_0x5f56('0x4e')](_0x1d5358['name']))['map'](_0x4c4a76=>_0x5b030a[_0x5f56('0xb')][_0x5f56('0x18')]['mapViewToDom'](_0x4c4a76))[_0x5f56('0xea')](_0x13fe67=>Array['from'](_0x13fe67[_0x5f56('0x35')]()))[_0x5f56('0xb2')]();}if(!this[_0x5f56('0xc2')])return _0x20a91f[0x0];return _0x20a91f[_0x5f56('0x32')](_0xdcabd4=>_0xdcabd4[_0x5f56('0x78')]-0x3<=this['_activeViewTarget']['y']&&_0xdcabd4[_0x5f56('0x5a')]+0x3>=this[_0x5f56('0xc2')]['y']&&_0xdcabd4[_0x5f56('0xf7')]-0x3<=this['_activeViewTarget']['x']&&_0xdcabd4[_0x5f56('0x11a')]+0x3>=this[_0x5f56('0xc2')]['x'])||_0x20a91f[0x0];}}}),this['_balloon'][_0x5f56('0x46')](_0x5f56('0xd5')));}),this['on']('change:activeChange',(_0x4c04e0,_0x3fb728,_0x5ece2b,_0x194384)=>{this[_0x5f56('0xf9')]=_0x5ece2b?this[_0x5f56('0x7b')](_0x5ece2b):null,this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0x5c')](()=>{const _0x27d61e=this[_0x5f56('0x88')][_0x5f56('0xe2')];_0x194384&&(_0x194384[_0x5f56('0xd1')][_0x5f56('0xd2')]?_0x27d61e[_0x5f56('0xb')][_0x5f56('0x5c')](_0x54901e=>{_0x54901e[_0x5f56('0x1f')](_0x5f56('0x113'),_0x27d61e[_0x5f56('0xb')][_0x5f56('0x7')]['getRoot'](_0x194384[_0x5f56('0x5f')]));}):_0x27d61e[_0x5f56('0x62')](_0x5f56('0x8c')+_0x194384['id'])),_0x5ece2b&&(_0x5ece2b[_0x5f56('0xd1')]['isOnRoot']?_0x27d61e['view']['change'](_0x4eae71=>{_0x4eae71[_0x5f56('0xf')]('ck-revision-history-root--active',_0x27d61e[_0x5f56('0xb')][_0x5f56('0x7')]['getRoot'](_0x5ece2b[_0x5f56('0x5f')]));}):_0x27d61e[_0x5f56('0x62')](_0x5f56('0x8c')+_0x5ece2b['id']));});}),this[_0x5f56('0xed')](this['editor']['editing'][_0x5f56('0xb')][_0x5f56('0x7')],_0x5f56('0xb6'),(_0x114ba4,_0x33c80b)=>{if(this[_0x5f56('0x2a')])return;const _0x1cbbba=this['_findChangeIdFromDomTarget'](_0x33c80b[_0x5f56('0x15')]),_0x304cdd=this['_changeIdToChange'][_0x5f56('0x43')](_0x1cbbba);_0x304cdd?(this['_activeViewTarget']={'x':_0x33c80b['domEvent']['x'],'y':_0x33c80b['domEvent']['y']},this['activeView']=this[_0x5f56('0x7b')](_0x304cdd)):(this[_0x5f56('0xc2')]=null,this[_0x5f56('0xf9')]=null);}),this['listenTo'](this['editor'][_0x5f56('0xe2')]['view']['document'],_0x5f56('0x6c'),(_0x298940,_0x224325)=>{const _0x34f18f=this[_0x5f56('0x9f')](_0x224325[_0x5f56('0x15')]),_0xc0e4c6=this[_0x5f56('0x2f')][_0x5f56('0x43')](_0x34f18f);_0xc0e4c6?(this[_0x5f56('0xc2')]={'x':_0x224325[_0x5f56('0x103')]['x'],'y':_0x224325[_0x5f56('0x103')]['y']},_0xc0e4c6===this[_0x5f56('0x2a')]?this[_0x5f56('0xad')]['updatePosition']():this[_0x5f56('0x2a')]=_0xc0e4c6):(this[_0x5f56('0xc2')]=null,this[_0x5f56('0x2a')]=null);});}['_findChangeIdFromDomTarget'](_0x1933c8){do{const _0x413f4b=_0x1933c8[_0x5f56('0x84')](_0x5f56('0x55'));if(_0x413f4b)return _0x413f4b;_0x1933c8=_0x1933c8[_0x5f56('0x13')];}while(_0x1933c8);return null;}[_0x5f56('0xa4')](){this['editor'][_0x5f56('0x20')][_0x5f56('0x5c')](_0x6d211f=>{for(const _0xd98461 of this['editor'][_0x5f56('0x20')][_0x5f56('0x7a')])_0x6d211f['removeMarker'](_0xd98461);});}}function et(_0x13e6ce,_0x2c7946){return(_0x3a494f,_0x3cf5b0,_0x4d9ff8)=>{if(!_0x4d9ff8[_0x5f56('0x21')][_0x5f56('0x104')](_0x3cf5b0[_0x5f56('0x51')],_0x3a494f[_0x5f56('0x8a')]))return;const _0x1d9660=_0x3cf5b0[_0x5f56('0x51')][_0x5f56('0x1e')](),_0x3ca6d6=_0x3cf5b0[_0x5f56('0x51')][_0x5f56('0xc7')],_0x3911e6=_0x13e6ce[_0x5f56('0x20')]['schema'];let _0x183e7e=null,_0x467196=null,_0x40794f=!0x1,_0x16a2e5=!0x1;for(const _0xcae28e of _0x1d9660){const _0x2eb172=_0xcae28e[_0x5f56('0xf4')];_0x40794f=_0x40794f||_0x3911e6['isContent'](_0x2eb172);const _0x4d7aff=_0x4d9ff8[_0x5f56('0x12')][_0x5f56('0x69')](_0x2eb172);if(_0x4d7aff&&_0x4d7aff[_0x5f56('0x9e')]('addHighlight'))return;'elementEnd'==_0xcae28e['type']&&(_0x3911e6['isBlock'](_0x2eb172)&&!_0x3911e6[_0x5f56('0x101')](_0x2eb172)&&(_0x2eb172['nextSibling']||_0x3ca6d6[_0x5f56('0x93')]?_0x183e7e&&_0x183e7e[_0x5f56('0x13')]==_0x2eb172||(_0x183e7e=_0x2eb172,_0x50e0e2(_0xcae28e[_0x5f56('0xfa')]),_0x16a2e5=!0x0):_0x467196=_0x467196||_0xcae28e[_0x5f56('0xfa')]));}function _0x50e0e2(_0x1df923){const _0x3f84f=_0x4d9ff8[_0x5f56('0x12')][_0x5f56('0xb0')](_0x1df923),_0x26f480=_0x4d9ff8[_0x5f56('0xf6')][_0x5f56('0x7c')](_0x5f56('0x73'),{'class':_0x5f56('0xee')+_0x2c7946});_0x4d9ff8[_0x5f56('0xf6')][_0x5f56('0x10d')](_0x3f84f,_0x26f480),_0x4d9ff8[_0x5f56('0x12')][_0x5f56('0xa6')](_0x26f480,_0x3cf5b0['markerName']);}_0x40794f||_0x16a2e5||!_0x467196||_0x50e0e2(_0x467196);};}export class RestoreRevisionCommand extends _0x14259b{constructor(_0x52b2c4){super(_0x52b2c4);const _0x2a49c9=_0x52b2c4[_0x5f56('0x11d')][_0x5f56('0x43')](d);this[_0x5f56('0xb1')]=!0x1,this['listenTo'](_0x2a49c9,_0x5f56('0x8'),()=>this['refresh']()),this[_0x5f56('0xed')](_0x2a49c9,_0x5f56('0x40'),()=>this[_0x5f56('0x11f')]());}[_0x5f56('0x19')](){const _0x5609fc=this[_0x5f56('0x88')],_0x48540d=_0x5609fc[_0x5f56('0x11d')][_0x5f56('0x43')](d),_0x56be13=_0x48540d[_0x5f56('0x8b')]?_0x48540d[_0x5f56('0x119')][_0x5f56('0xbd')]:null;_0x5609fc[_0x5f56('0x41')][_0x5f56('0x43')](_0x5f56('0x52'))[_0x5f56('0x33')](_0x56be13);}[_0x5f56('0x11f')](){const {isReady:_0x11f824,isEnabled:_0x30fd51}=this[_0x5f56('0x88')][_0x5f56('0x11d')][_0x5f56('0x43')](d);this['isEnabled']=_0x11f824&&_0x30fd51;}}export class ShowChangeCommand extends _0x14259b{constructor(_0x44e7f4,{direction:_0x3c7a87}){super(_0x44e7f4);const _0x51dc77=_0x44e7f4['plugins'][_0x5f56('0x43')](d);this[_0x5f56('0xb1')]=!0x1,this['_step']=_0x5f56('0xc4')===_0x3c7a87?0x1:-0x1,this[_0x5f56('0xed')](_0x51dc77,_0x5f56('0x8'),()=>this[_0x5f56('0x11f')]()),this[_0x5f56('0xed')](_0x51dc77,_0x5f56('0x40'),()=>this['refresh']()),this['listenTo'](_0x51dc77,_0x5f56('0x24'),()=>this['refresh']());}['execute'](){const _0x1b7a6f=this[_0x5f56('0x88')],_0x4ba9a2=_0x1b7a6f[_0x5f56('0x11d')]['get'](d),{isNavigationMode:_0x7d2c7b,currentChangeNumber:_0x493a79}=_0x4ba9a2;let _0x55dc7b;if(_0x4ba9a2[_0x5f56('0x2a')]=_0x7d2c7b?_0x4ba9a2[_0x5f56('0x119')][_0x5f56('0x63')][_0x5f56('0x43')](_0x493a79+this[_0x5f56('0x11')]):_0x4ba9a2['diff'][_0x5f56('0x63')][_0x5f56('0x110')],_0x4ba9a2[_0x5f56('0x2a')][_0x5f56('0xd1')]['isOnRoot'])_0x55dc7b=_0x1b7a6f[_0x5f56('0xe2')][_0x5f56('0xb')][_0x5f56('0x25')](_0x4ba9a2[_0x5f56('0x2a')][_0x5f56('0x5f')]);else{const _0xefc275=_0x1b7a6f[_0x5f56('0x20')][_0x5f56('0x7a')][_0x5f56('0x43')](_0x5f56('0x8c')+_0x4ba9a2['activeChange']['id']);_0x55dc7b=_0x43e17b(_0x1b7a6f[_0x5f56('0xe2')],_0xefc275);}_0x455a82({'target':_0x55dc7b,'viewportOffset':0x28});}[_0x5f56('0x11f')](){const {isNavigationMode:_0x1da2eb,currentChangeNumber:_0x4a2796,numberOfChanges:_0x3ac77e,isReady:_0x33e973,isEnabled:_0x31fb0b}=this[_0x5f56('0x88')][_0x5f56('0x11d')]['get'](d);this['isEnabled']=!!(_0x31fb0b&&_0x33e973&&_0x3ac77e)&&(!_0x1da2eb||(0x1===this[_0x5f56('0x11')]?_0x4a2796<_0x3ac77e-0x1:_0x4a2796>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2235=['locale','add','isOpen','buttonView','extendTemplate','Name\x20this\x20revision','execute','source','map','set','items','bindTemplate','panelPosition','ck-revision-history-sidebar__revision__actions','Compare\x20against\x20selected','change:isActionsDropdownOpen','find','isEnabled','isActionsDropdownOpen','Show\x20more\x20items','listView','ck-on','isVisible','isReady','name','children','class','model','function','stopPropagation','action','_action','bind','button','Restore\x20this\x20revision'];(function(_0x4faa5e,_0x223567){const _0x2f8882=function(_0x9297d2){while(--_0x9297d2){_0x4faa5e['push'](_0x4faa5e['shift']());}};_0x2f8882(++_0x223567);}(_0x2235,0x1b2));const _0x2f88=function(_0x4faa5e,_0x223567){_0x4faa5e=_0x4faa5e-0x0;let _0x2f8882=_0x2235[_0x4faa5e];return _0x2f8882;};import{Collection as _0x239f1b}from'ckeditor5/src/utils';import{icons as _0x23cd24}from'ckeditor5/src/core';import{Model as _0x3b411f,addListToDropdown as _0x34df33,createDropdown as _0x36cdb7}from'ckeditor5/src/ui';import{getTranslation as _0x3766f0}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0xc13bed,_0x2e28e4){const _0x2ffdb8=_0xc13bed[_0x2f88('0x20')],_0x4c4cc9=_0xc13bed[_0x2f88('0x15')],_0x2adf2f=_0x36cdb7(_0x4c4cc9);_0x2adf2f[_0x2f88('0x21')]='sw';const _0xabc241=function(_0x20ce7d,_0x4b2be2){const _0x14b47f=function(_0x3f7216,_0x4cb8c1){const _0x1028fb=_0x3f7216[_0x2f88('0x15')],_0x1092f3={'Compare\x20against\x20selected':_0x3766f0(_0x1028fb,_0x2f88('0x0')),'Name\x20this\x20revision':_0x3766f0(_0x1028fb,_0x2f88('0x1a')),'Restore\x20this\x20revision':_0x3766f0(_0x1028fb,_0x2f88('0x14'))};return _0x4cb8c1[_0x2f88('0x1d')](_0x3b2b7e=>{const _0x1cc55d=_0x1092f3[_0x3b2b7e['name']];return _0x1cc55d&&_0x1cc55d!==_0x3b2b7e[_0x2f88('0xa')]&&(_0x3b2b7e[_0x2f88('0xa')]=_0x1cc55d),_0x3b2b7e;});}(_0x20ce7d,_0x4b2be2),_0x362bb8=new _0x239f1b();for(const _0x1144ba of _0x14b47f){const _0x37e47c={'type':_0x2f88('0x13'),'model':new _0x3b411f({'label':_0x1144ba[_0x2f88('0xa')],'class':_0x1144ba[_0x2f88('0xc')],'withText':!0x0,'_action':_0x1144ba[_0x2f88('0x10')]})};_0x37e47c[_0x2f88('0xd')][_0x2f88('0x12')]('isEnabled')['to'](_0x20ce7d,_0x2f88('0x4'),_0x5eadfd=>'function'!=typeof _0x1144ba[_0x2f88('0x3')]||(!_0x5eadfd||_0x1144ba[_0x2f88('0x3')](_0x20ce7d))),_0x362bb8[_0x2f88('0x16')](_0x37e47c);}return _0x362bb8;}(_0xc13bed,_0x2e28e4);return _0xc13bed['bind'](_0x2f88('0x4'))['to'](_0x2adf2f,_0x2f88('0x17')),_0x2adf2f[_0x2f88('0x18')][_0x2f88('0x1e')]({'label':_0x3766f0(_0x4c4cc9,_0x2f88('0x5')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x23cd24['threeVerticalDots']}),_0x2adf2f[_0x2f88('0x19')]({'attributes':{'class':[_0x2f88('0x22'),_0x2ffdb8['if']('isActionsDropdownOpen',_0x2f88('0x7'))]},'on':{'click':_0x2ffdb8['to'](_0x3a67e4=>_0x3a67e4[_0x2f88('0xf')]())}}),_0x2adf2f['on'](_0x2f88('0x1b'),_0x86cca7=>{_0xc13bed[_0x2f88('0x9')]&&_0x2f88('0xe')==typeof _0x86cca7[_0x2f88('0x1c')]['_action']&&_0x86cca7[_0x2f88('0x1c')][_0x2f88('0x11')](_0xc13bed);}),_0x34df33(_0x2adf2f,_0xabc241),_0x2adf2f['listenTo'](_0xc13bed,_0x2f88('0x1'),(_0x2c75cd,_0x4ab91c,_0x3c38fd)=>{if(_0x3c38fd)for(const _0x3cab0d of _0x2adf2f[_0x2f88('0x6')][_0x2f88('0x1f')]){const _0x35f3ae=_0x3cab0d[_0x2f88('0xb')]['first'],_0x1ed586=_0x2e28e4[_0x2f88('0x2')](_0x176568=>_0x176568[_0x2f88('0x10')]===_0x35f3ae[_0x2f88('0x11')])[_0x2f88('0x8')];_0x3cab0d[_0x2f88('0x8')]=void 0x0===_0x1ed586||_0x1ed586(_0xc13bed);}}),_0x2adf2f;}
23
+ const _0x8117=['source','threeVerticalDots','isActionsDropdownOpen','bindTemplate','class','button','first','ck-on','function','find','bind','Name\x20this\x20revision','ck-revision-history-sidebar__revision__actions','listenTo','Compare\x20against\x20selected','items','Show\x20more\x20items','model','add','panelPosition','isVisible','isReady','action','change:isActionsDropdownOpen','isEnabled','name','children','Restore\x20this\x20revision','set','isOpen','locale','map','buttonView','_action'];(function(_0x2d806b,_0x81176e){const _0x1308d0=function(_0x4676ce){while(--_0x4676ce){_0x2d806b['push'](_0x2d806b['shift']());}};_0x1308d0(++_0x81176e);}(_0x8117,0x123));const _0x1308=function(_0x2d806b,_0x81176e){_0x2d806b=_0x2d806b-0x0;let _0x1308d0=_0x8117[_0x2d806b];return _0x1308d0;};import{Collection as _0x4765a6}from'ckeditor5/src/utils';import{icons as _0x4bbad9}from'ckeditor5/src/core';import{Model as _0x1ae7cd,addListToDropdown as _0x270320,createDropdown as _0x393b1b}from'ckeditor5/src/ui';import{getTranslation as _0x594b21}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x2ee79b,_0x493cef){const _0x2c2101=_0x2ee79b[_0x1308('0x12')],_0x25b9fb=_0x2ee79b[_0x1308('0xb')],_0x565444=_0x393b1b(_0x25b9fb);_0x565444[_0x1308('0x0')]='sw';const _0x37cbb1=function(_0xad669b,_0x1de375){const _0xf8321d=function(_0xfa9ff5,_0x2bf5bc){const _0xb4a6a=_0xfa9ff5[_0x1308('0xb')],_0x1e4939={'Compare\x20against\x20selected':_0x594b21(_0xb4a6a,_0x1308('0x1d')),'Name\x20this\x20revision':_0x594b21(_0xb4a6a,_0x1308('0x1a')),'Restore\x20this\x20revision':_0x594b21(_0xb4a6a,_0x1308('0x8'))};return _0x2bf5bc[_0x1308('0xc')](_0x5dc6a4=>{const _0xd83e70=_0x1e4939[_0x5dc6a4[_0x1308('0x6')]];return _0xd83e70&&_0xd83e70!==_0x5dc6a4[_0x1308('0x6')]&&(_0x5dc6a4[_0x1308('0x6')]=_0xd83e70),_0x5dc6a4;});}(_0xad669b,_0x1de375),_0x353755=new _0x4765a6();for(const _0x55be37 of _0xf8321d){const _0x2ffb60={'type':_0x1308('0x14'),'model':new _0x1ae7cd({'label':_0x55be37[_0x1308('0x6')],'class':_0x55be37[_0x1308('0x13')],'withText':!0x0,'_action':_0x55be37[_0x1308('0x3')]})};_0x2ffb60[_0x1308('0x20')][_0x1308('0x19')](_0x1308('0x5'))['to'](_0xad669b,'isActionsDropdownOpen',_0x596fd1=>_0x1308('0x17')!=typeof _0x55be37['isEnabled']||(!_0x596fd1||_0x55be37[_0x1308('0x5')](_0xad669b))),_0x353755[_0x1308('0x21')](_0x2ffb60);}return _0x353755;}(_0x2ee79b,_0x493cef);return _0x2ee79b[_0x1308('0x19')](_0x1308('0x11'))['to'](_0x565444,_0x1308('0xa')),_0x565444[_0x1308('0xd')][_0x1308('0x9')]({'label':_0x594b21(_0x25b9fb,_0x1308('0x1f')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4bbad9[_0x1308('0x10')]}),_0x565444['extendTemplate']({'attributes':{'class':[_0x1308('0x1b'),_0x2c2101['if']('isActionsDropdownOpen',_0x1308('0x16'))]},'on':{'click':_0x2c2101['to'](_0x3a1017=>_0x3a1017['stopPropagation']())}}),_0x565444['on']('execute',_0x312404=>{_0x2ee79b[_0x1308('0x2')]&&'function'==typeof _0x312404['source'][_0x1308('0xe')]&&_0x312404[_0x1308('0xf')]['_action'](_0x2ee79b);}),_0x270320(_0x565444,_0x37cbb1),_0x565444[_0x1308('0x1c')](_0x2ee79b,_0x1308('0x4'),(_0x522e73,_0x2d9f59,_0x28f7e7)=>{if(_0x28f7e7)for(const _0x18748b of _0x565444['listView'][_0x1308('0x1e')]){const _0x51e99e=_0x18748b[_0x1308('0x7')][_0x1308('0x15')],_0x157082=_0x493cef[_0x1308('0x18')](_0x56443f=>_0x56443f[_0x1308('0x3')]===_0x51e99e[_0x1308('0xe')])['isVisible'];_0x18748b[_0x1308('0x1')]=void 0x0===_0x157082||_0x157082(_0x2ee79b);}}),_0x565444;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12d9=['ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author','Revision\x20creator','push','0\x200\x2011\x2010','setTemplate','span','name'];(function(_0x1d0b49,_0x12d907){const _0x44de0d=function(_0x1b02c9){while(--_0x1b02c9){_0x1d0b49['push'](_0x1d0b49['shift']());}};_0x44de0d(++_0x12d907);}(_0x12d9,0xde));const _0x44de=function(_0x1d0b49,_0x12d907){_0x1d0b49=_0x1d0b49-0x0;let _0x44de0d=_0x12d9[_0x1d0b49];return _0x44de0d;};import{View as _0x3d8ed7,IconView as _0x590ba7}from'ckeditor5/src/ui';import{getTranslation as _0x2969a1}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x1a5adb from'../../../theme/icons/user.svg';export default class ti extends _0x3d8ed7{constructor(_0x43f12b,_0x12d742,_0x178f7f){super(_0x43f12b);const _0x241d8d=new _0x590ba7();_0x241d8d['set']({'content':_0x1a5adb,'viewBox':_0x44de('0x8')});const _0x2ca317=['ck',_0x44de('0x5')];_0x178f7f&&_0x2ca317[_0x44de('0x7')](_0x44de('0x4'));const _0x149eae=[{'tag':_0x44de('0x1'),'attributes':{'class':['ck',_0x44de('0x3')],'title':_0x2969a1(_0x43f12b,_0x178f7f?_0x44de('0x6'):'Revision\x20author')},'children':[_0x241d8d,_0x12d742[_0x44de('0x2')]]}];this[_0x44de('0x0')]({'tag':'li','attributes':{'class':_0x2ca317},'children':_0x149eae});}}
23
+ const _0x59c2=['name','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author','set','Revision\x20creator','Revision\x20author'];(function(_0x48b524,_0x59c2f9){const _0x36ab3c=function(_0x36c34f){while(--_0x36c34f){_0x48b524['push'](_0x48b524['shift']());}};_0x36ab3c(++_0x59c2f9);}(_0x59c2,0x195));const _0x36ab=function(_0x48b524,_0x59c2f9){_0x48b524=_0x48b524-0x0;let _0x36ab3c=_0x59c2[_0x48b524];return _0x36ab3c;};import{View as _0x102ced,IconView as _0xceaef6}from'ckeditor5/src/ui';import{getTranslation as _0x29ac21}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x3f5338 from'../../../theme/icons/user.svg';export default class ti extends _0x102ced{constructor(_0x4e3acd,_0x5f423b,_0x45e828){super(_0x4e3acd);const _0x581200=new _0xceaef6();_0x581200[_0x36ab('0x0')]({'content':_0x3f5338,'viewBox':_0x36ab('0x4')});const _0xd7dbc2=['ck',_0x36ab('0x5')];_0x45e828&&_0xd7dbc2['push']('ck-revision-history-sidebar__revision-author_creator');const _0x57abce=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x29ac21(_0x4e3acd,_0x45e828?_0x36ab('0x1'):_0x36ab('0x2'))},'children':[_0x581200,_0x5f423b[_0x36ab('0x3')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xd7dbc2},'children':_0x57abce});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x629e=['Revision\x20name','span','extendTemplate','set'];(function(_0x51781a,_0x629ed5){var _0x30cfbd=function(_0x24bda7){while(--_0x24bda7){_0x51781a['push'](_0x51781a['shift']());}};_0x30cfbd(++_0x629ed5);}(_0x629e,0x1ba));var _0x30cf=function(_0x51781a,_0x629ed5){_0x51781a=_0x51781a-0x0;var _0x30cfbd=_0x629e[_0x51781a];return _0x30cfbd;};import{LabeledFieldView as _0x3f1d5c}from'ckeditor5/src/ui';import{getTranslation as _0x114c89}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x3f1d5c{constructor(_0x8116b3,_0x4d9102){super(_0x8116b3,_0x4d9102),this[_0x30cf('0x1')]({'label':_0x114c89(_0x8116b3,_0x30cf('0x2'))}),this[_0x30cf('0x0')]({'tag':_0x30cf('0x3'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x2c5b=['ck-revision-history-sidebar__revision-name','span'];(function(_0x276c46,_0x2c5bc2){var _0x1760bd=function(_0x3750ae){while(--_0x3750ae){_0x276c46['push'](_0x276c46['shift']());}};_0x1760bd(++_0x2c5bc2);}(_0x2c5b,0x109));var _0x1760=function(_0x276c46,_0x2c5bc2){_0x276c46=_0x276c46-0x0;var _0x1760bd=_0x2c5b[_0x276c46];return _0x1760bd;};import{LabeledFieldView as _0x57303b}from'ckeditor5/src/ui';import{getTranslation as _0x24c93f}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x57303b{constructor(_0x4dc402,_0x33834f){super(_0x4dc402,_0x33834f),this['set']({'label':_0x24c93f(_0x4dc402,'Revision\x20name')}),this['extendTemplate']({'tag':_0x1760('0x0'),'attributes':{'class':[_0x1760('0x1')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x575d=['filter','deselect','extendTemplate','fire','ck-revision-history-sidebar__revision__controls-wrapper','isEnabled','value','ck-reset','isHighlighted','220','ck-revision-history-sidebar__revision_highlighted','name','bind','select','span','ck-revision-history-sidebar__revision-authors','srcElement','creator','unhighlight','change','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision__date','isReady','div','isActionsDropdownOpen','setTemplate','ck-revision-history-sidebar__revision_selected','_revision','ck-revision-history-sidebar__revision','setName','placeholder','listenTo','element','unshift','isConfirm','ck-disabled','revisionNameView','ck-revision-history-sidebar__revision-wrapper','closest','.ck-thread__remove-confirm','isSelected','length','render','uiLanguage','bindTemplate','_createdAtFormatted','set','createdAt','revisionActionsView','fieldView'];(function(_0x1f1eb7,_0x575d9c){const _0x3c6811=function(_0x35af5a){while(--_0x35af5a){_0x1f1eb7['push'](_0x1f1eb7['shift']());}};_0x3c6811(++_0x575d9c);}(_0x575d,0xe6));const _0x3c68=function(_0x1f1eb7,_0x575d9c){_0x1f1eb7=_0x1f1eb7-0x0;let _0x3c6811=_0x575d[_0x1f1eb7];return _0x3c6811;};import{View as _0x202d0d,createLabeledInputText as _0x46823d}from'ckeditor5/src/ui';import{ConfirmMixin as _0x249140}from'ckeditor5-collaboration/src/collaboration-core';import _0x121399 from'./revisionnameview';import _0xb85a0 from'./revisionauthorview';import{dateToPrettyFormat as _0x30b92f}from'./utils';import{createActionsDropdownView as _0x499dff}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x249140(_0x202d0d){constructor(_0x21a40f,_0x243ffe,_0x1f5ae5){super(_0x21a40f);const _0x3e0dde=this[_0x3c68('0xe')],_0x3bcbae=function(_0xbad4fe,_0xfc131b){const _0x46b3a3=Array['from'](_0xfc131b['authors'])[_0x3c68('0x14')](_0x50241e=>_0x50241e!=_0xfc131b[_0x3c68('0x25')]);return _0xfc131b[_0x3c68('0x25')]&&_0x46b3a3[_0x3c68('0x3')](_0xfc131b[_0x3c68('0x25')]),_0x46b3a3['map'](_0x51b7c9=>new _0xb85a0(_0xbad4fe,_0x51b7c9,_0x51b7c9==_0xfc131b[_0x3c68('0x25')]));}(_0x21a40f,_0x243ffe);this['id']=_0x243ffe['id'],this[_0x3c68('0x2f')]=_0x243ffe,this['bind'](_0x3c68('0x1f'),_0x3c68('0x11'))['to'](_0x243ffe),this[_0x3c68('0x20')]('_createdAtFormatted')['to'](this,_0x3c68('0x11'),_0x22a588=>_0x22a588?_0x30b92f(_0x21a40f[_0x3c68('0xd')],_0x22a588):void 0x0),this[_0x3c68('0x10')](_0x3c68('0xa'),!0x1),this[_0x3c68('0x10')](_0x3c68('0x1c'),!0x1),this[_0x3c68('0x10')](_0x3c68('0x2c'),!0x1),this[_0x3c68('0x10')](_0x3c68('0x2a'),!0x1),this[_0x3c68('0x10')](_0x3c68('0x19'),!0x1),this[_0x3c68('0x6')]=new _0x121399(_0x21a40f,_0x46823d),this[_0x3c68('0x6')][_0x3c68('0x13')][_0x3c68('0x16')]({'attributes':{'maxlength':_0x3c68('0x1d')}}),this[_0x3c68('0x6')][_0x3c68('0x13')]['bind'](_0x3c68('0x1a'),_0x3c68('0x0'))['to'](this,_0x3c68('0x1f'),_0x3c68('0xf')),this[_0x3c68('0x6')][_0x3c68('0x20')]('isEnabled')['to'](this,'isSelected',this,_0x3c68('0x19'),(_0x3a4223,_0x5f594f)=>_0x3a4223&&_0x5f594f),this[_0x3c68('0x12')]=_0x1f5ae5&&_0x1f5ae5[_0x3c68('0xb')]?_0x499dff(this,_0x1f5ae5):'',this[_0x3c68('0x12')]&&this[_0x3c68('0x12')][_0x3c68('0x20')]('isEnabled')['to'](this),this[_0x3c68('0x2d')]({'tag':_0x3c68('0x2b'),'attributes':{'class':['ck',_0x3c68('0x1b'),_0x3c68('0x7'),_0x3e0dde['if'](_0x3c68('0x4'),_0x3c68('0x28'))]},'children':[{'tag':_0x3c68('0x2b'),'attributes':{'class':['ck',_0x3c68('0x1b'),_0x3c68('0x30'),_0x3e0dde['if']('isEnabled',_0x3c68('0x5'),_0x902d7b=>!_0x902d7b),_0x3e0dde['if'](_0x3c68('0xa'),_0x3c68('0x2e')),_0x3e0dde['if']('isHighlighted',_0x3c68('0x1e')),_0x3e0dde['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':_0x3c68('0x22'),'attributes':{'class':['ck',_0x3c68('0x29')]},'children':[{'text':_0x3e0dde['to'](_0x3c68('0xf'))}]},{'tag':_0x3c68('0x2b'),'attributes':{'class':['ck',_0x3c68('0x18')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x3c68('0x23')]},'children':_0x3bcbae}]},this['revisionActionsView']],'on':{'click':_0x3e0dde['to'](_0x2ebd62=>{_0x2ebd62[_0x3c68('0x24')][_0x3c68('0x8')](_0x3c68('0x9'))||this[_0x3c68('0x2a')]&&this[_0x3c68('0x19')]&&this[_0x3c68('0x17')](_0x3c68('0x21'),{'id':this['id']});})}}]});}[_0x3c68('0xc')](){super[_0x3c68('0xc')]();const _0x1702d9=this[_0x3c68('0x6')]['fieldView'][_0x3c68('0x2')];this[_0x3c68('0x1')](_0x1702d9,_0x3c68('0x27'),()=>{this[_0x3c68('0x17')](_0x3c68('0x31'),{'id':this['id'],'name':_0x1702d9[_0x3c68('0x1a')]});});}['select'](){this['isSelected']=!0x0;}[_0x3c68('0x15')](){this[_0x3c68('0xa')]=!0x1;}['highlight'](){this[_0x3c68('0x1c')]=!0x0;}[_0x3c68('0x26')](){this['isHighlighted']=!0x1;}}
23
+ const _0x2330=['ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','isConfirm','ck-revision-history-sidebar__revision__date','isHighlighted','revisionNameView','span','authors','revisionActionsView','bindTemplate','select','isSelected','creator','filter','createdAt','ck-reset','placeholder','from','listenTo','setTemplate','unshift','.ck-thread__remove-confirm','ck-revision-history-sidebar__revision__controls-wrapper','isActionsDropdownOpen','highlight','render','extendTemplate','value','fire','set','bind','isEnabled','ck-revision-history-sidebar__actions_dropdown_open','uiLanguage','element','fieldView','closest','change','_createdAtFormatted','srcElement','ck-revision-history-sidebar__revision','map','name','div','ck-revision-history-sidebar__revision-wrapper','deselect','ck-disabled'];(function(_0x152f0d,_0x2330e4){const _0x10384b=function(_0x4beeba){while(--_0x4beeba){_0x152f0d['push'](_0x152f0d['shift']());}};_0x10384b(++_0x2330e4);}(_0x2330,0xbd));const _0x1038=function(_0x152f0d,_0x2330e4){_0x152f0d=_0x152f0d-0x0;let _0x10384b=_0x2330[_0x152f0d];return _0x10384b;};import{View as _0x42d547,createLabeledInputText as _0xb89a9d}from'ckeditor5/src/ui';import{ConfirmMixin as _0x40bb18}from'ckeditor5-collaboration/src/collaboration-core';import _0x23febc from'./revisionnameview';import _0x11c188 from'./revisionauthorview';import{dateToPrettyFormat as _0x4950d5}from'./utils';import{createActionsDropdownView as _0x504691}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x40bb18(_0x42d547){constructor(_0x3c9ca9,_0xd8564,_0x4dd3d2){super(_0x3c9ca9);const _0x524954=this[_0x1038('0x8')],_0x54d453=function(_0x1acf35,_0x12b3f7){const _0x103aeb=Array[_0x1038('0x10')](_0x12b3f7[_0x1038('0x6')])[_0x1038('0xc')](_0x28c080=>_0x28c080!=_0x12b3f7[_0x1038('0xb')]);return _0x12b3f7['creator']&&_0x103aeb[_0x1038('0x13')](_0x12b3f7[_0x1038('0xb')]),_0x103aeb[_0x1038('0x28')](_0x3cb5a3=>new _0x11c188(_0x1acf35,_0x3cb5a3,_0x3cb5a3==_0x12b3f7[_0x1038('0xb')]));}(_0x3c9ca9,_0xd8564);this['id']=_0xd8564['id'],this['_revision']=_0xd8564,this['bind'](_0x1038('0x29'),_0x1038('0xd'))['to'](_0xd8564),this[_0x1038('0x1d')](_0x1038('0x25'))['to'](this,'createdAt',_0x457abb=>_0x457abb?_0x4950d5(_0x3c9ca9[_0x1038('0x20')],_0x457abb):void 0x0),this[_0x1038('0x1c')](_0x1038('0xa'),!0x1),this[_0x1038('0x1c')](_0x1038('0x3'),!0x1),this[_0x1038('0x1c')](_0x1038('0x16'),!0x1),this[_0x1038('0x1c')]('isReady',!0x1),this[_0x1038('0x1c')](_0x1038('0x1e'),!0x1),this[_0x1038('0x4')]=new _0x23febc(_0x3c9ca9,_0xb89a9d),this['revisionNameView']['fieldView'][_0x1038('0x19')]({'attributes':{'maxlength':'220'}}),this[_0x1038('0x4')][_0x1038('0x22')][_0x1038('0x1d')](_0x1038('0x1a'),_0x1038('0xf'))['to'](this,'name',_0x1038('0x25')),this[_0x1038('0x4')][_0x1038('0x1d')](_0x1038('0x1e'))['to'](this,_0x1038('0xa'),this,'isEnabled',(_0x55699b,_0x186e45)=>_0x55699b&&_0x186e45),this[_0x1038('0x7')]=_0x4dd3d2&&_0x4dd3d2['length']?_0x504691(this,_0x4dd3d2):'',this[_0x1038('0x7')]&&this['revisionActionsView'][_0x1038('0x1d')](_0x1038('0x1e'))['to'](this),this[_0x1038('0x12')]({'tag':_0x1038('0x2a'),'attributes':{'class':['ck','ck-reset',_0x1038('0x2b'),_0x524954['if'](_0x1038('0x1'),_0x1038('0x0'))]},'children':[{'tag':_0x1038('0x2a'),'attributes':{'class':['ck',_0x1038('0xe'),_0x1038('0x27'),_0x524954['if'](_0x1038('0x1e'),_0x1038('0x2d'),_0x365ffe=>!_0x365ffe),_0x524954['if'](_0x1038('0xa'),'ck-revision-history-sidebar__revision_selected'),_0x524954['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x524954['if'](_0x1038('0x16'),_0x1038('0x1f'))]},'children':[this['revisionNameView'],{'tag':_0x1038('0x5'),'attributes':{'class':['ck',_0x1038('0x2')]},'children':[{'text':_0x524954['to'](_0x1038('0x25'))}]},{'tag':_0x1038('0x2a'),'attributes':{'class':['ck',_0x1038('0x15')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x1038('0x2e')]},'children':_0x54d453}]},this['revisionActionsView']],'on':{'click':_0x524954['to'](_0x58b0ba=>{_0x58b0ba[_0x1038('0x26')][_0x1038('0x23')](_0x1038('0x14'))||this['isReady']&&this['isEnabled']&&this[_0x1038('0x1b')](_0x1038('0x9'),{'id':this['id']});})}}]});}['render'](){super[_0x1038('0x18')]();const _0x34bc2d=this[_0x1038('0x4')][_0x1038('0x22')][_0x1038('0x21')];this[_0x1038('0x11')](_0x34bc2d,_0x1038('0x24'),()=>{this[_0x1038('0x1b')]('setName',{'id':this['id'],'name':_0x34bc2d[_0x1038('0x1a')]});});}[_0x1038('0x9')](){this[_0x1038('0xa')]=!0x0;}[_0x1038('0x2c')](){this[_0x1038('0xa')]=!0x1;}[_0x1038('0x17')](){this[_0x1038('0x3')]=!0x0;}['unhighlight'](){this[_0x1038('0x3')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x248e=['setTemplate','set','isVisible','ck-revision-history-sidebar__subrevision-collapser','toggle','ck-hidden','_isCollapsed','false','button'];(function(_0x275a74,_0x248ea6){const _0x388d5e=function(_0x4b513b){while(--_0x4b513b){_0x275a74['push'](_0x275a74['shift']());}};_0x388d5e(++_0x248ea6);}(_0x248e,0x109));const _0x388d=function(_0x275a74,_0x248ea6){_0x275a74=_0x275a74-0x0;let _0x388d5e=_0x248e[_0x275a74];return _0x388d5e;};import{View as _0x2f9aa1}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2f9aa1{constructor(_0x3b22ac){super(_0x3b22ac);const _0x23dd40=this['bindTemplate'];this[_0x388d('0x6')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x388d('0x5')]({'tag':'span','attributes':{'class':['ck',_0x388d('0x8'),_0x23dd40['if'](_0x388d('0x7'),_0x388d('0x1'),_0x2b4216=>!_0x2b4216),_0x23dd40['if'](_0x388d('0x2'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x388d('0x4'),'aria-pressed':_0x23dd40['to'](_0x388d('0x2'),_0x305c30=>_0x305c30?_0x388d('0x3'):'true')},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x23dd40['to']('click')}});}[_0x388d('0x0')](){this[_0x388d('0x2')]=!this[_0x388d('0x2')];}}
23
+ const _0x2258=['ck-revision-history-sidebar__subrevision-collapser__inner','toggle','isVisible','setTemplate','_isCollapsed','click','button','bindTemplate','true','ck-hidden','false','ck-revision-history-sidebar__subrevision-collapser','set'];(function(_0x25be16,_0x225875){const _0x153c69=function(_0x263c12){while(--_0x263c12){_0x25be16['push'](_0x25be16['shift']());}};_0x153c69(++_0x225875);}(_0x2258,0x102));const _0x153c=function(_0x25be16,_0x225875){_0x25be16=_0x25be16-0x0;let _0x153c69=_0x2258[_0x25be16];return _0x153c69;};import{View as _0x529f65}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x529f65{constructor(_0x53ed61){super(_0x53ed61);const _0x349449=this[_0x153c('0x9')];this[_0x153c('0x1')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x153c('0x5')]({'tag':'span','attributes':{'class':['ck',_0x153c('0x0'),_0x349449['if'](_0x153c('0x4'),_0x153c('0xb'),_0x545593=>!_0x545593),_0x349449['if'](_0x153c('0x6'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x153c('0x8'),'aria-pressed':_0x349449['to']('_isCollapsed',_0x235980=>_0x235980?_0x153c('0xc'):_0x153c('0xa'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x153c('0x2')]}}],'on':{'click':_0x349449['to'](_0x153c('0x7'))}});}[_0x153c('0x3')](){this[_0x153c('0x6')]=!this[_0x153c('0x6')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x181e=['createdAt','ck-revision-history-sidebar__revision-authors','set','_parentRevisionId','bind','creator','select','_createdAtFormatted','bindTemplate','deselect','ck-reset','ck-revision-history-sidebar__subrevision','isSelected','div','span'];(function(_0x15c701,_0x181e1d){const _0x29c209=function(_0x31a029){while(--_0x31a029){_0x15c701['push'](_0x15c701['shift']());}};_0x29c209(++_0x181e1d);}(_0x181e,0xbf));const _0x29c2=function(_0x15c701,_0x181e1d){_0x15c701=_0x15c701-0x0;let _0x29c209=_0x181e[_0x15c701];return _0x29c209;};import{View as _0x510950}from'ckeditor5/src/ui';import _0x45aad8 from'./revisionauthorview';import{dateToPrettyFormat as _0x4741e3}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x510950{constructor(_0x4a2452,_0x4cc0e2,_0x2bd0ac){super(_0x4a2452);const _0x3fbe1c=this[_0x29c2('0xc')];this['id']=_0x4cc0e2['id'],this['bind'](_0x29c2('0x4'))['to'](_0x4cc0e2),this[_0x29c2('0x6')](_0x29c2('0x1'),!0x1),this[_0x29c2('0x8')](_0x29c2('0xb'))['to'](this,_0x29c2('0x4'),_0x424f36=>_0x424f36?_0x4741e3(_0x4a2452['uiLanguage'],_0x424f36):void 0x0),this[_0x29c2('0x7')]=_0x2bd0ac,this['setTemplate']({'tag':_0x29c2('0x2'),'attributes':{'class':['ck',_0x29c2('0xe'),'ck-revision-history-sidebar__revision',_0x29c2('0x0'),_0x3fbe1c['if']('isSelected','ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x29c2('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x3fbe1c['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x29c2('0x5')]},'children':[new _0x45aad8(_0x4a2452,_0x4cc0e2[_0x29c2('0x9')],!0x0)]}],'on':{'click':_0x3fbe1c['to'](this[_0x29c2('0xa')][_0x29c2('0x8')](this))}});}[_0x29c2('0xa')](){this[_0x29c2('0x1')]=!0x0,this['fire'](_0x29c2('0xa'),{'parentId':this[_0x29c2('0x7')]});}[_0x29c2('0xd')](){this[_0x29c2('0x1')]=!0x1;}}
23
+ const _0x7547=['select','ck-revision-history-sidebar__subrevision','_createdAtFormatted','bindTemplate','bind','fire','isSelected','_parentRevisionId','span','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision__date','createdAt','set','div'];(function(_0x24f836,_0x754741){const _0x10886e=function(_0x34f207){while(--_0x34f207){_0x24f836['push'](_0x24f836['shift']());}};_0x10886e(++_0x754741);}(_0x7547,0xff));const _0x1088=function(_0x24f836,_0x754741){_0x24f836=_0x24f836-0x0;let _0x10886e=_0x7547[_0x24f836];return _0x10886e;};import{View as _0xef5dbc}from'ckeditor5/src/ui';import _0x13dabe from'./revisionauthorview';import{dateToPrettyFormat as _0x38d1fb}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0xef5dbc{constructor(_0x567455,_0x6cc58a,_0x28086f){super(_0x567455);const _0x5c699a=this[_0x1088('0x0')];this['id']=_0x6cc58a['id'],this[_0x1088('0x1')](_0x1088('0x8'))['to'](_0x6cc58a),this[_0x1088('0x9')](_0x1088('0x3'),!0x1),this['bind'](_0x1088('0xd'))['to'](this,_0x1088('0x8'),_0x1c6c1f=>_0x1c6c1f?_0x38d1fb(_0x567455['uiLanguage'],_0x1c6c1f):void 0x0),this[_0x1088('0x4')]=_0x28086f,this['setTemplate']({'tag':_0x1088('0xa'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1088('0xc'),_0x5c699a['if'](_0x1088('0x3'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x1088('0x5'),'attributes':{'class':['ck',_0x1088('0x7')]},'children':[{'text':_0x5c699a['to'](_0x1088('0xd'))}]},{'tag':'ul','attributes':{'class':['ck',_0x1088('0x6')]},'children':[new _0x13dabe(_0x567455,_0x6cc58a['creator'],!0x0)]}],'on':{'click':_0x5c699a['to'](this['select'][_0x1088('0x1')](this))}});}[_0x1088('0xb')](){this[_0x1088('0x3')]=!0x0,this[_0x1088('0x2')](_0x1088('0xb'),{'parentId':this[_0x1088('0x4')]});}['deselect'](){this['isSelected']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x40d1=['long','numeric','toLocaleTimeString','toLocaleDateString'];(function(_0x48b18d,_0x40d1ec){var _0x2dc923=function(_0x6590bd){while(--_0x6590bd){_0x48b18d['push'](_0x48b18d['shift']());}};_0x2dc923(++_0x40d1ec);}(_0x40d1,0x195));var _0x2dc9=function(_0x48b18d,_0x40d1ec){_0x48b18d=_0x48b18d-0x0;var _0x2dc923=_0x40d1[_0x48b18d];return _0x2dc923;};export function dateToPrettyFormat(_0x3969c8,_0x3b1d7b){return _0x3b1d7b[_0x2dc9('0x2')](_0x3969c8,{'month':_0x2dc9('0x3'),'day':_0x2dc9('0x0')})+',\x20'+_0x3b1d7b[_0x2dc9('0x1')](_0x3969c8,{'hour':_0x2dc9('0x0'),'minute':_0x2dc9('0x0')});}
23
+ var _0x178e=['toLocaleTimeString','toLocaleDateString','long','numeric'];(function(_0x2230a6,_0x178eb5){var _0x2da4d6=function(_0x5084a7){while(--_0x5084a7){_0x2230a6['push'](_0x2230a6['shift']());}};_0x2da4d6(++_0x178eb5);}(_0x178e,0xf3));var _0x2da4=function(_0x2230a6,_0x178eb5){_0x2230a6=_0x2230a6-0x0;var _0x2da4d6=_0x178e[_0x2230a6];return _0x2da4d6;};export function dateToPrettyFormat(_0x2c9388,_0x1324ec){return _0x1324ec[_0x2da4('0x2')](_0x2c9388,{'month':_0x2da4('0x3'),'day':_0x2da4('0x0')})+',\x20'+_0x1324ec[_0x2da4('0x1')](_0x2c9388,{'hour':'numeric','minute':_0x2da4('0x0')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29aa=['Save','arrowdown','input','form','ck-revision-history-save-revision-form','_createButton','focus','add','_focusables','delegate','forEach','trim','type','arrowleft','set','render','revisionNameInputView','ck-button-cancel','ck-button-save','stopPropagation','saveButtonView','label','extendTemplate','cancel','fieldView','setTemplate','shift\x20+\x20tab','element','_createRevisionNameInput','value','Name\x20of\x20the\x20revision\x20(optional)','ck-responsive-form','reset','focusTracker','revisionNameInputValue','_focusCycler','focusFirst','cancelButtonView','tab','keystrokes','submit','listenTo'];(function(_0x354447,_0x29aa81){const _0x302f85=function(_0x4e8764){while(--_0x4e8764){_0x354447['push'](_0x354447['shift']());}};_0x302f85(++_0x29aa81);}(_0x29aa,0x143));const _0x302f=function(_0x354447,_0x29aa81){_0x354447=_0x354447-0x0;let _0x302f85=_0x29aa[_0x354447];return _0x302f85;};import{icons as _0x573e31}from'ckeditor5/src/core';import{ButtonView as _0x48670f,FocusCycler as _0x5020bf,LabeledFieldView as _0x413760,View as _0xc19c0d,ViewCollection as _0x41ba38,createLabeledInputText as _0x46978f,injectCssTransitionDisabler as _0x1a6639,submitHandler as _0x3fad62}from'ckeditor5/src/ui';import{FocusTracker as _0x5648e1,KeystrokeHandler as _0x116d18}from'ckeditor5/src/utils';import{getTranslation as _0x888144}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0xc19c0d{constructor(_0x242e13){super(_0x242e13),this[_0x302f('0x4')]=new _0x5648e1(),this[_0x302f('0xa')]=new _0x116d18(),this['set'](_0x302f('0x5'),''),this['revisionNameInputView']=this[_0x302f('0x29')](),this[_0x302f('0x21')]=this[_0x302f('0x12')](_0x888144(_0x242e13,_0x302f('0xd')),_0x573e31['check'],_0x302f('0x1f')),this[_0x302f('0x21')][_0x302f('0x19')]=_0x302f('0xb'),this[_0x302f('0x8')]=this[_0x302f('0x12')](_0x888144(_0x242e13,'Cancel'),_0x573e31[_0x302f('0x24')],_0x302f('0x1e'),_0x302f('0x24')),this[_0x302f('0x15')]=new _0x41ba38(),this[_0x302f('0x6')]=new _0x5020bf({'focusables':this['_focusables'],'focusTracker':this[_0x302f('0x4')],'keystrokeHandler':this[_0x302f('0xa')],'actions':{'focusPrevious':_0x302f('0x27'),'focusNext':_0x302f('0x9')}}),this[_0x302f('0x26')]({'tag':_0x302f('0x10'),'attributes':{'class':['ck',_0x302f('0x11'),_0x302f('0x2')],'tabindex':'-1'},'children':[this[_0x302f('0x1d')],this['saveButtonView'],this[_0x302f('0x8')]]}),_0x1a6639(this);}['render'](){super[_0x302f('0x1c')](),_0x3fad62({'view':this}),([this[_0x302f('0x1d')],this['saveButtonView'],this[_0x302f('0x8')]][_0x302f('0x17')](_0x3ebf7a=>{this[_0x302f('0x15')][_0x302f('0x14')](_0x3ebf7a),this[_0x302f('0x4')][_0x302f('0x14')](_0x3ebf7a[_0x302f('0x28')]);}),this[_0x302f('0xa')][_0x302f('0xc')](this[_0x302f('0x28')]));const _0x14a8ce=_0x1fc535=>_0x1fc535[_0x302f('0x20')]();this[_0x302f('0xa')][_0x302f('0x1b')]('arrowright',_0x14a8ce),this[_0x302f('0xa')][_0x302f('0x1b')](_0x302f('0x1a'),_0x14a8ce),this['keystrokes'][_0x302f('0x1b')]('arrowup',_0x14a8ce),this['keystrokes']['set'](_0x302f('0xe'),_0x14a8ce);}[_0x302f('0x13')](){this[_0x302f('0x6')][_0x302f('0x7')]();}get['revisionName'](){return this[_0x302f('0x1d')]['fieldView'][_0x302f('0x28')][_0x302f('0x0')][_0x302f('0x18')]();}set['revisionName'](_0x2e5c17){this['revisionNameInputView'][_0x302f('0x25')][_0x302f('0x28')][_0x302f('0x0')]=_0x2e5c17[_0x302f('0x18')]();}[_0x302f('0x3')](){this[_0x302f('0x1d')][_0x302f('0x25')][_0x302f('0x28')]['value']='';}[_0x302f('0x29')](){const _0x342f40=new _0x413760(this['locale'],_0x46978f),_0x5f3f96=_0x342f40[_0x302f('0x25')];return _0x5f3f96[_0x302f('0x23')]({'attributes':{'maxlength':'220'}}),_0x342f40[_0x302f('0x22')]=_0x888144(this['locale'],_0x302f('0x1')),_0x5f3f96['on'](_0x302f('0xf'),()=>{this['revisionNameInputValue']=_0x5f3f96[_0x302f('0x28')][_0x302f('0x0')][_0x302f('0x18')]();}),_0x342f40;}[_0x302f('0x12')](_0x983eaa,_0x1bb05a,_0x4ad3b5,_0x1cca5b){const _0x312a83=new _0x48670f(this['locale']);return _0x312a83['set']({'label':_0x983eaa,'icon':_0x1bb05a,'tooltip':!0x0}),_0x312a83[_0x302f('0x23')]({'attributes':{'class':_0x4ad3b5}}),_0x1cca5b&&_0x312a83[_0x302f('0x16')]('execute')['to'](this,_0x1cca5b),_0x312a83;}}
23
+ const _0x13e3=['keystrokes','revisionName','cancelButtonView','ck-responsive-form','_focusCycler','fieldView','add','_createButton','render','form','Save','forEach','_focusables','revisionNameInputValue','revisionNameInputView','tab','ck-revision-history-save-revision-form','focusTracker','ck-button-save','type','label','locale','_createRevisionNameInput','trim','saveButtonView','element','submit','listenTo','extendTemplate','ck-button-cancel','input','setTemplate','set','stopPropagation','shift\x20+\x20tab','arrowleft','220','check','focusFirst','value','arrowright','cancel','delegate','Cancel','Name\x20of\x20the\x20revision\x20(optional)'];(function(_0xac75c5,_0x13e36d){const _0x1dfcb4=function(_0x39d06b){while(--_0x39d06b){_0xac75c5['push'](_0xac75c5['shift']());}};_0x1dfcb4(++_0x13e36d);}(_0x13e3,0x91));const _0x1dfc=function(_0xac75c5,_0x13e36d){_0xac75c5=_0xac75c5-0x0;let _0x1dfcb4=_0x13e3[_0xac75c5];return _0x1dfcb4;};import{icons as _0x94e75}from'ckeditor5/src/core';import{ButtonView as _0x111fda,FocusCycler as _0x2c1db7,LabeledFieldView as _0x94a6fa,View as _0xd3889f,ViewCollection as _0x2a8bb7,createLabeledInputText as _0x328927,injectCssTransitionDisabler as _0x466162,submitHandler as _0x2280b5}from'ckeditor5/src/ui';import{FocusTracker as _0x4aa7c9,KeystrokeHandler as _0x43546b}from'ckeditor5/src/utils';import{getTranslation as _0x4071d5}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class xt extends _0xd3889f{constructor(_0x402ecd){super(_0x402ecd),this[_0x1dfc('0x7')]=new _0x4aa7c9(),this[_0x1dfc('0x23')]=new _0x43546b(),this[_0x1dfc('0x16')](_0x1dfc('0x3'),''),this[_0x1dfc('0x4')]=this[_0x1dfc('0xc')](),this[_0x1dfc('0xe')]=this[_0x1dfc('0x2a')](_0x4071d5(_0x402ecd,_0x1dfc('0x0')),_0x94e75[_0x1dfc('0x1b')],_0x1dfc('0x8')),this[_0x1dfc('0xe')][_0x1dfc('0x9')]=_0x1dfc('0x10'),this[_0x1dfc('0x25')]=this[_0x1dfc('0x2a')](_0x4071d5(_0x402ecd,_0x1dfc('0x21')),_0x94e75['cancel'],_0x1dfc('0x13'),_0x1dfc('0x1f')),this[_0x1dfc('0x2')]=new _0x2a8bb7(),this[_0x1dfc('0x27')]=new _0x2c1db7({'focusables':this[_0x1dfc('0x2')],'focusTracker':this[_0x1dfc('0x7')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x1dfc('0x18'),'focusNext':_0x1dfc('0x5')}}),this[_0x1dfc('0x15')]({'tag':_0x1dfc('0x2c'),'attributes':{'class':['ck',_0x1dfc('0x6'),_0x1dfc('0x26')],'tabindex':'-1'},'children':[this[_0x1dfc('0x4')],this[_0x1dfc('0xe')],this[_0x1dfc('0x25')]]}),_0x466162(this);}[_0x1dfc('0x2b')](){super['render'](),_0x2280b5({'view':this}),([this[_0x1dfc('0x4')],this['saveButtonView'],this[_0x1dfc('0x25')]][_0x1dfc('0x1')](_0x3c0998=>{this[_0x1dfc('0x2')][_0x1dfc('0x29')](_0x3c0998),this[_0x1dfc('0x7')][_0x1dfc('0x29')](_0x3c0998['element']);}),this['keystrokes'][_0x1dfc('0x11')](this[_0x1dfc('0xf')]));const _0xb61c6e=_0x259d71=>_0x259d71[_0x1dfc('0x17')]();this[_0x1dfc('0x23')][_0x1dfc('0x16')](_0x1dfc('0x1e'),_0xb61c6e),this[_0x1dfc('0x23')][_0x1dfc('0x16')](_0x1dfc('0x19'),_0xb61c6e),this[_0x1dfc('0x23')][_0x1dfc('0x16')]('arrowup',_0xb61c6e),this[_0x1dfc('0x23')][_0x1dfc('0x16')]('arrowdown',_0xb61c6e);}['focus'](){this[_0x1dfc('0x27')][_0x1dfc('0x1c')]();}get[_0x1dfc('0x24')](){return this['revisionNameInputView']['fieldView'][_0x1dfc('0xf')][_0x1dfc('0x1d')][_0x1dfc('0xd')]();}set['revisionName'](_0x4df341){this[_0x1dfc('0x4')][_0x1dfc('0x28')][_0x1dfc('0xf')][_0x1dfc('0x1d')]=_0x4df341[_0x1dfc('0xd')]();}['reset'](){this[_0x1dfc('0x4')][_0x1dfc('0x28')][_0x1dfc('0xf')][_0x1dfc('0x1d')]='';}[_0x1dfc('0xc')](){const _0x2e26c1=new _0x94a6fa(this['locale'],_0x328927),_0x52009d=_0x2e26c1['fieldView'];return _0x52009d[_0x1dfc('0x12')]({'attributes':{'maxlength':_0x1dfc('0x1a')}}),_0x2e26c1[_0x1dfc('0xa')]=_0x4071d5(this['locale'],_0x1dfc('0x22')),_0x52009d['on'](_0x1dfc('0x14'),()=>{this['revisionNameInputValue']=_0x52009d[_0x1dfc('0xf')][_0x1dfc('0x1d')][_0x1dfc('0xd')]();}),_0x2e26c1;}[_0x1dfc('0x2a')](_0xfbc3e4,_0x20f8b7,_0x224e16,_0x21b7f4){const _0x53f84d=new _0x111fda(this[_0x1dfc('0xb')]);return _0x53f84d['set']({'label':_0xfbc3e4,'icon':_0x20f8b7,'tooltip':!0x0}),_0x53f84d['extendTemplate']({'attributes':{'class':_0x224e16}}),_0x21b7f4&&_0x53f84d[_0x1dfc('0x20')]('execute')['to'](this,_0x21b7f4),_0x53f84d;}}