@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230710.0 → 0.0.0-nightly-20230711.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 _0x259c=['refresh','elementToAttribute','enqueueChange','schema','values','document','_refreshStartEndIndex','getRootNames','bottom','removeMarker:revision','insertion','get','getAttributes','ck-revision-history-root--active','activeChange','removeClass','end','removeMarker:revision-suggestion','marked','-new','_removeRevisionMarkers','_getChangeFromId','next','writer','startsWith','deletions','getRevisionRootsAttributes','_getDiff','getRoot','pluginName','isRemoveSuggestion','data','changeId','ck-revision-history-root-','isEqual','consumable','ck-editor__editable__overlay','slice','bind','collaboration.channelId','isSuggestion','uiElement','roots','dataDowncast','vid_start','backward','enableReadOnlyMode','_threeWayMerge','useFillerType','insertions','createPositionBefore','_cleanUp','oldRevisionId','selection','addRevision','rootName','createPositionFromPath','markers','isCollapsed','_activeViewTarget','abs','vid_end','config','unbindElementFromMarkerName','isAttached','level','getRevisionData','diffData','view','WidgetToolbarRepository','parent','_changeIdToChange','add','side','setAttribute','push','revisionHistoryAttachChange','ck-suggestion-preview-marker-','getChild','revision-comment:','remove','_setConversion','children','forward','getIndex','data-revision-','revision-end','showNextChange','isRemoved','startIndex','markerNameToElements','markerRange','revision','editingDowncast','ck-suggestion-marker','loadRevisionData','highest','domConverter','ck-revision-history-root-remove','object','mousedown','authors','data-change-id','nextPosition','type','split','ck-suggestion-marker-merge','nextSibling','offsetSize','POSITIVE_INFINITY','span','test','addMarker:revision','markerToData','_initInteractions','createUIElement','delete','insert','addMarker:revision-suggestion:insertion','isAddSuggestion','forEach','bindElementToMarker','_setDistance','_update','compare','merge','domEvent','element:pre','keys','from','pairId','_getRevisionsRange','string','then','destroy','activeView','ck-revision-history-root-add','attributesAfter','showStack','hasClass','change:activeChange','revision:','wrap','change:activeView','high','editor','isBlock','_data','markerName','change:isEnabled','viewItem','RevisionViewer','previousPosition','deletion','addRoot','resolve','commands','nodeAfter','attributes','index','set','change','comment','dataToMarker','getAttribute','range','filter','numberOfChanges','default','markersEnd','ck-suggestion-marker--active','getCustomProperty','createRangeIn','vid','_appendChild','isEnabled','sort','target','map','_sortAndFilterDiffChanges','_cleanMarkers','code','has','toViewRange','isAfter','conversion','attribute:vid','isAtStart','elementStart','change:isReady','addHighlight','_markMarkers','reconvertMarker','getClientRects','item','_getViewObj','includes','start','distance','mapper','for','_balloon','name','isIncorrect','checkAttribute','mouseover','isNavigationMode','upcast','_makeModelFromTape','findIndex','elementEnd','getDomRoot','ck-suggestion-marker-split','removeMarker','_removeUnsupportedChanges','_getViewForChange','top','_findChangeIdFromDomTarget','userId','repository','editing','revision-suggestion','return','isLimit','toViewPosition','listenTo','processor','createAttributeElement','maxOffset','isOnRoot','plugins','text','currentChangeNumber','splice','_setChanges','toData','_revisions','removeAttribute','adapter','createRange','done','_markMismatchedRemovedTags','isAtEnd','diff','change:numberOfChanges','element','endIndex','markerToHighlight','_makeTape','getItems','revisionHistoryLabel','_changeView','shift','getWalker','catch','changes','attachChange','isObject','softBreak','newRevisionId','_fixObsoleteTags','isAdded','getRevision','_removeMissingPairs','length','right','RevisionsRepository','model','error','downcastDispatcher','first','isReady','_processTape','indexOf','observeMarkers','init','_markInsertions','ck-suggestion-marker-','modelRange','markersStart','execute','unshift','addMarker:revision-suggestion:deletion','detachRoot','hasAttribute','revisionHistory','consume','toViewElement','revision-viewer','concat','isContent','addClass','_step','_makeModelFromViewString'];(function(_0x37087c,_0x259c73){const _0x4f22c2=function(_0xf63fb0){while(--_0xf63fb0){_0x37087c['push'](_0x37087c['shift']());}};_0x4f22c2(++_0x259c73);}(_0x259c,0x14b));const _0x4f22=function(_0x37087c,_0x259c73){_0x37087c=_0x37087c-0x0;let _0x4f22c2=_0x259c[_0x37087c];return _0x4f22c2;};import{Plugin as _0x279042,Command as _0x35688b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3c451b}from'ckeditor5/src/utils';import{ContextualBalloon as _0x15d37b}from'ckeditor5/src/ui';import{DocumentFragment as _0x448404,Element as _0x340e18,Text as _0x21d0f8,ViewDocumentFragment as _0xbcd63c,ViewText as _0x5207c2,ViewElement as _0x371eda,ViewContainerElement as _0x49d4fd,ViewAttributeElement as _0x2f3a53,ViewEmptyElement as _0x7c8eb7,ViewRawElement as _0x19772b,ViewUIElement as _0x38347b}from'ckeditor5/src/engine';import{Users as _0x34c33f,getMarkerDomElement as _0x313195}from'ckeditor5-collaboration/src/collaboration-core';import _0x249774 from'./ui/revisionviewer/changedetailsview';import _0x2e7230 from'./revisionsrepository';import _0x2f0fc5 from'./changeitem';import{default as _0x353e10}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4c96ef}from'lodash-es';const Y={'c':_0x49d4fd,'a':_0x2f3a53,'e':_0x7c8eb7,'r':_0x19772b,'u':_0x38347b};export default class d extends _0x279042{static get[_0x4f22('0x11e')](){return _0x4f22('0x72');}static get['requires'](){return[_0x34c33f,_0x15d37b,_0x2e7230];}constructor(_0x1c52ab){super(_0x1c52ab),this[_0x4f22('0xb6')]=this[_0x4f22('0x6c')][_0x4f22('0xc1')]['get'](_0x4f22('0xe5')),this[_0x4f22('0x7b')](_0x4f22('0x10f'),null),this['set'](_0x4f22('0x62'),null),this[_0x4f22('0x16')]=null,this['set'](_0x4f22('0xce'),null),this[_0x4f22('0x7b')](_0x4f22('0xea'),!0x1),this['set']('isEnabled',!0x0),this['on'](_0x4f22('0x70'),(_0x12eebf,_0x26d7cb,_0x533011)=>{this[_0x4f22('0x10f')]=null,this[_0x4f22('0x62')]=null,this[_0x4f22('0x6c')]['editing'][_0x4f22('0x1f')][_0x4f22('0x7c')](_0x3357b3=>{for(const _0x595046 of this['editor'][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x106')][_0x4f22('0x5')])_0x533011?_0x3357b3['removeClass'](_0x4f22('0x125'),_0x595046):_0x3357b3[_0x4f22('0xfe')](_0x4f22('0x125'),_0x595046);});}),this[_0x4f22('0x1')](_0x4f22('0xa9'))['to'](this,_0x4f22('0x10f'),_0x2c7407=>null!==_0x2c7407),this[_0x4f22('0x1')](_0x4f22('0xc3'))['to'](this,_0x4f22('0xea'),this,_0x4f22('0xce'),this,_0x4f22('0x10f'),(_0x874a2c,_0x189a71,_0x29bb40)=>_0x874a2c&&_0x29bb40?_0x189a71[_0x4f22('0xda')][_0x4f22('0x2f')](_0x29bb40):0x0),this[_0x4f22('0x1')](_0x4f22('0x82'))['to'](this,'isReady',this,_0x4f22('0xce'),(_0x3d4c35,_0x2e7c8f)=>_0x3d4c35?_0x2e7c8f[_0x4f22('0xda')][_0x4f22('0xe3')]:0x0),this[_0x4f22('0xd6')]=null,this[_0x4f22('0x22')]=new Map(),this[_0x4f22('0xc9')]=null,this[_0x4f22('0xa4')]=this['editor'][_0x4f22('0xc1')][_0x4f22('0x10c')](_0x15d37b);}[_0x4f22('0xee')](){const _0x1f0bab=this[_0x4f22('0x6c')],_0x359dac=new ShowChangeCommand(_0x1f0bab,{'direction':_0x4f22('0x8')}),_0x3b1d53=new ShowChangeCommand(_0x1f0bab,{'direction':'forward'});(_0x1f0bab['commands']['add']('showPreviousChange',_0x359dac),_0x1f0bab['commands'][_0x4f22('0x23')](_0x4f22('0x32'),_0x3b1d53),_0x1f0bab[_0x4f22('0x77')][_0x4f22('0x23')]('restoreRevision',new RestoreRevisionCommand(_0x1f0bab)),this['on'](_0x4f22('0xcf'),()=>{_0x359dac['refresh'](),_0x3b1d53['refresh']();}),this[_0x4f22('0x2c')](),this[_0x4f22('0x4d')](),_0x1f0bab[_0x4f22('0x9')](_0x4f22('0xfb')),_0x1f0bab[_0x4f22('0xc1')][_0x4f22('0x91')](_0x4f22('0x20')))&&_0x1f0bab[_0x4f22('0xc1')][_0x4f22('0x10c')](_0x4f22('0x20'))['forceDisabled'](_0x4f22('0xfb'));}async[_0x4f22('0x1d')](_0x1c24ff){await this[_0x4f22('0x3a')](_0x1c24ff);const _0x3698a1={};for(const _0x5eb89b in _0x1c24ff[_0x4f22('0x1e')]){if(_0x1c24ff[_0x4f22('0x1e')][_0x5eb89b][_0x4f22('0xdb')]&&!_0x1c24ff['diffData'][_0x5eb89b][_0x4f22('0xdb')][_0x4f22('0x1b')])continue;const _0x31e62f=this['_removeRevisionMarkers'](JSON['parse'](_0x1c24ff[_0x4f22('0x1e')][_0x5eb89b]['insertions'])),_0x4a7214=this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x106')],_0x20c17a=new _0xbcd63c(_0x4a7214,_0x31e62f[_0x4f22('0x8d')](_0x1db344=>this[_0x4f22('0x9e')](_0x1db344)));this[_0x4f22('0x6c')][_0x4f22('0x120')][_0x4f22('0xbd')]['useFillerType'](_0x4f22('0x113')),_0x3698a1[_0x5eb89b]=this[_0x4f22('0x6c')]['data'][_0x4f22('0xbd')][_0x4f22('0xc6')](_0x20c17a),this[_0x4f22('0x6c')][_0x4f22('0x120')][_0x4f22('0xbd')][_0x4f22('0xb')](_0x4f22('0x83'));}return _0x3698a1;}async[_0x4f22('0x11b')](_0x42311d){await this[_0x4f22('0x3a')](_0x42311d);const _0x3c09a8={};for(const _0x1bb199 in _0x42311d[_0x4f22('0x1e')])_0x42311d[_0x4f22('0x1e')][_0x1bb199][_0x4f22('0xdb')]&&!_0x42311d['diffData'][_0x1bb199][_0x4f22('0xdb')][_0x4f22('0x1b')]||(_0x3c09a8[_0x1bb199]=_0x42311d[_0x4f22('0x1e')][_0x1bb199]['attributesAfter']||{});return _0x3c09a8;}[_0x4f22('0x115')](_0x40f022){return(_0x40f022=_0x40f022[_0x4f22('0x81')](_0x41e39e=>!_0x41e39e[_0x4f22('0xa5')]||'revision-start'!==_0x41e39e[_0x4f22('0xa5')]&&_0x4f22('0x31')!==_0x41e39e[_0x4f22('0xa5')]))[_0x4f22('0x53')](_0x188c96=>{_0x4f22('0x5f')!=typeof _0x188c96&&(_0x188c96['children']=this[_0x4f22('0x115')](_0x188c96[_0x4f22('0x2d')]),_0x188c96[_0x4f22('0x79')]=_0x188c96[_0x4f22('0x79')][_0x4f22('0x81')](_0x2b952f=>!_0x2b952f[0x0][_0x4f22('0x119')](_0x4f22('0x30'))));}),_0x40f022;}async[_0x4f22('0x57')](_0x341645,_0xd0cbf4,_0x2833d3=!0x1){if(!this['isEnabled'])return;const _0x3bffaf=this[_0x4f22('0xce')],_0x31b649=this['repository'],_0x595485=_0x4f22('0x5f')==typeof _0x341645?_0x31b649['getRevision'](_0x341645):_0x341645,_0x326ae4='string'==typeof _0xd0cbf4?_0x31b649[_0x4f22('0xe1')](_0xd0cbf4):_0xd0cbf4,_0x4e017c=_0x595485['id'],_0x3068ad=_0x326ae4?_0x326ae4['id']:null;if(!_0x2833d3&&this[_0x4f22('0xce')]&&this[_0x4f22('0xce')][_0x4f22('0xde')]===_0x4e017c&&this[_0x4f22('0xce')][_0x4f22('0xf')]===_0x3068ad)return Promise[_0x4f22('0x76')]();this['isReady']=!0x1,this[_0x4f22('0x62')]=null,this[_0x4f22('0x10f')]=null,this[_0x4f22('0xce')]=new _0x353e10(_0x4e017c,_0x3068ad);const _0x13cf55=this[_0x4f22('0x5e')](_0x595485,_0x326ae4,!0x0)[_0x4f22('0x8d')](_0x5d16d8=>this[_0x4f22('0x3a')](_0x5d16d8));return _0x13cf55[_0x4f22('0x26')](new Promise(_0xfa997c=>{setTimeout(_0xfa997c,0x14);})),Promise['all'](_0x13cf55)[_0x4f22('0x60')](()=>{if(!this[_0x4f22('0x8a')])return;this[_0x4f22('0xe')]();const _0x4a6244=this[_0x4f22('0x11c')](_0x4e017c,_0x3068ad);for(const _0x2dec33 of _0x4a6244[_0x4f22('0xda')])this[_0x4f22('0x22')][_0x4f22('0x7b')](_0x2dec33['id'],_0x2dec33);this[_0x4f22('0x6c')]['model'][_0x4f22('0x103')]({'isUndoable':!0x1},_0x35ec39=>{for(const _0x2e8004 of this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x106')][_0x4f22('0x108')]())_0x35ec39['detachRoot'](_0x2e8004);for(const _0x377e71 of Object[_0x4f22('0x5b')](_0x4a6244['model'])){const _0x51096b=_0x35ec39[_0x4f22('0x75')](_0x377e71);for(const _0x16afa5 of Object[_0x4f22('0x5b')](_0x4a6244[_0x4f22('0x79')][_0x377e71]))_0x35ec39[_0x4f22('0x25')](_0x16afa5,_0x4a6244['attributes'][_0x377e71][_0x16afa5],_0x51096b);_0x35ec39[_0x4f22('0x50')](_0x4a6244[_0x4f22('0xe6')][_0x377e71],_0x51096b,0x0);}}),this['diff'][_0x4f22('0xc5')](this[_0x4f22('0x8e')](_0x4a6244[_0x4f22('0xda')])),this[_0x4f22('0xea')]=!0x0;})[_0x4f22('0xd9')](_0x4b4002=>{console[_0x4f22('0xe7')](_0x4b4002),this[_0x4f22('0xe')](),_0x3bffaf&&(this[_0x4f22('0xce')]=_0x3bffaf),this[_0x4f22('0xea')]=!0x0;});}['addRevisionData'](_0x52e4f3,_0x14f073){const _0x51e5a3=this['repository']['createRevision'](_0x52e4f3);return _0x51e5a3['on'](_0x4f22('0x56'),(_0x4f5284,_0x5582f7,_0x357c5e)=>_0x14f073(_0x5582f7,_0x357c5e,_0x51e5a3)),this[_0x4f22('0xb6')][_0x4f22('0x11')](_0x51e5a3),_0x51e5a3;}[_0x4f22('0x3a')](_0x4cfdfb){if(!_0x4cfdfb||_0x4cfdfb['diffData'])return Promise[_0x4f22('0x76')]();{const _0x46c0e3=this['editor'][_0x4f22('0x19')][_0x4f22('0x10c')](_0x4f22('0x2'));return this[_0x4f22('0xc9')][_0x4f22('0xe1')]({'channelId':_0x46c0e3,'revisionId':_0x4cfdfb['id']})[_0x4f22('0x60')](_0x973190=>{_0x4cfdfb[_0x4f22('0x56')]({'diffData':_0x973190[_0x4f22('0x1e')]},!0x0);});}}['_cleanUp'](){this[_0x4f22('0x10f')]=null,this['_cleanMarkers'](),this['_changeView']&&this[_0x4f22('0xd6')][_0x4f22('0x61')](),this[_0x4f22('0xd6')]=null,this['_changeIdToChange']['clear'](),this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x103')]({'isUndoable':!0x1},_0x28683c=>{for(const _0x4c3128 of this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x106')][_0x4f22('0x108')]())_0x28683c[_0x4f22('0xf6')](_0x4c3128);});}[_0x4f22('0x8e')](_0x147158){const _0x3949f2=[],_0x549010=new Map();for(const _0x15f98e of this['editor']['model']['document']['getRootNames']()){const _0x16419a=this[_0x4f22('0x6c')][_0x4f22('0xb7')]['view'][_0x4f22('0xae')](_0x15f98e);if(!_0x16419a)continue;const _0x52d4a9=_0x16419a[_0x4f22('0x9c')]()[_0x4f22('0x9d')](0x0);_0x52d4a9&&(_0x3949f2[_0x4f22('0x26')](_0x15f98e),_0x549010[_0x4f22('0x7b')](_0x15f98e,_0x52d4a9));}return _0x3949f2[_0x4f22('0x8b')]((_0x57c0f2,_0x5dfdf4)=>{const _0x5e99ab=_0x549010[_0x4f22('0x10c')](_0x57c0f2),_0x1406d3=_0x549010[_0x4f22('0x10c')](_0x5dfdf4);return _0x5e99ab['y']-_0x1406d3['y']||_0x5e99ab['x']-_0x1406d3['x'];}),(_0x147158=_0x147158[_0x4f22('0x81')](_0x5692a3=>_0x3949f2['includes'](_0x5692a3['rootName'])))[_0x4f22('0x8b')]((_0x26d373,_0x5198af)=>_0x3949f2[_0x4f22('0xec')](_0x26d373[_0x4f22('0x12')])-_0x3949f2['indexOf'](_0x5198af['rootName'])),_0x147158;}[_0x4f22('0xd3')](_0x5785b0){const _0x1f97e8=Array[_0x4f22('0x5c')](_0x5785b0['markers'])[_0x4f22('0x81')](([_0xe32195,_0x252fb2])=>_0xe32195[_0x4f22('0x119')](_0x4f22('0x68'))&&!_0x252fb2[_0x4f22('0x15')]),_0x249491=Array['from'](this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x87')](_0x5785b0)[_0x4f22('0xd8')]({'singleCharacters':!0x0}));if(0x0!=_0x1f97e8[_0x4f22('0xe3')])for(const _0x5cd368 of _0x249491){const [_0x377cf1,_0x1c15f4]=_0x1f97e8[0x0],[,_0x52f7ba,_0x494389]=_0x377cf1[_0x4f22('0x44')](':');if(_0x1c15f4[_0x4f22('0x111')][_0x4f22('0x123')](_0x5cd368[_0x4f22('0x42')])&&_0x1f97e8[_0x4f22('0xd7')](),(_0x5cd368[_0x4f22('0x73')][_0x4f22('0x123')](_0x1c15f4[_0x4f22('0xa0')])||_0x5cd368[_0x4f22('0x73')]['isAfter'](_0x1c15f4[_0x4f22('0xa0')]))&&(_0x4f22('0x10b')==_0x52f7ba?_0x5cd368[_0x4f22('0xe0')]={'userId':_0x494389}:_0x4f22('0x74')==_0x52f7ba&&(_0x5cd368[_0x4f22('0x33')]={'userId':_0x494389})),0x0==_0x1f97e8[_0x4f22('0xe3')])break;}return _0x249491;}[_0x4f22('0x107')](_0x5cef78){const _0x25c8cc=new Map();for(let _0x1102ba=0x0;_0x1102ba<_0x5cef78[_0x4f22('0xe3')];_0x1102ba++)_0x4f22('0xc2')===_0x5cef78[_0x1102ba][_0x4f22('0x43')]?(_0x5cef78[_0x1102ba][_0x4f22('0x9d')][_0x4f22('0x34')]=_0x1102ba,_0x5cef78[_0x1102ba][_0x4f22('0x9d')][_0x4f22('0xd1')]=_0x1102ba):(_0x4f22('0x97')===_0x5cef78[_0x1102ba][_0x4f22('0x43')]?_0x5cef78[_0x1102ba][_0x4f22('0x9d')]['startIndex']=_0x1102ba:_0x4f22('0xad')===_0x5cef78[_0x1102ba]['type']&&(_0x5cef78[_0x1102ba][_0x4f22('0x9d')]['endIndex']=_0x1102ba),_0x25c8cc[_0x4f22('0x7b')](_0x5cef78[_0x1102ba]['id'],_0x1102ba));for(const _0x527c0a of _0x25c8cc[_0x4f22('0x105')]())'elementStart'===_0x5cef78[_0x527c0a][_0x4f22('0x43')]?_0x5cef78[_0x527c0a]['item'][_0x4f22('0xd1')]=_0x25c8cc[_0x4f22('0x10c')](_0x5cef78[_0x527c0a][_0x4f22('0x5d')]):_0x4f22('0xad')===_0x5cef78[_0x527c0a][_0x4f22('0x43')]&&(_0x5cef78[_0x527c0a][_0x4f22('0x9d')][_0x4f22('0x34')]=_0x25c8cc[_0x4f22('0x10c')](_0x5cef78[_0x527c0a][_0x4f22('0x5d')]));}[_0x4f22('0xeb')](_0x441884){for(let _0x190e4e=0x0;_0x190e4e<_0x441884['length'];_0x190e4e++){if(_0x4f22('0x97')===_0x441884[_0x190e4e][_0x4f22('0x43')])_0x441884[_0x190e4e][_0x4f22('0x9d')][_0x4f22('0x34')]=_0x190e4e;else{if('elementEnd'===_0x441884[_0x190e4e][_0x4f22('0x43')]){_0x441884[_0x190e4e][_0x4f22('0x9d')][_0x4f22('0xd1')]=_0x190e4e;const _0x450a4e=_0x441884[_0x190e4e][_0x4f22('0x9d')]['startIndex'];_0x441884[_0x450a4e]['pairId']=_0x441884[_0x190e4e]['id'],_0x441884[_0x190e4e]['pairId']=_0x441884[_0x450a4e]['id'];}else _0x441884[_0x190e4e]['item'][_0x4f22('0x34')]=_0x190e4e,_0x441884[_0x190e4e][_0x4f22('0x9d')][_0x4f22('0xd1')]=_0x190e4e,_0x441884[_0x190e4e][_0x4f22('0x5d')]=null;}_0x441884[_0x190e4e][_0x4f22('0xf2')]||(_0x441884[_0x190e4e][_0x4f22('0xf2')]=[],_0x441884[_0x190e4e][_0x4f22('0x84')]=[]);}}[_0x4f22('0xef')](_0x3bf566,_0x38a12f){const _0x5a1e4f=_0x3bf566[_0x4f22('0x81')](_0x17fda1=>!_0x17fda1[_0x4f22('0xe0')]);for(let _0x4f7bcc=0x0;_0x4f7bcc<_0x38a12f['length'];_0x4f7bcc++)_0x38a12f[_0x4f7bcc]['isAdded']&&(_0x5a1e4f[_0x4f7bcc][_0x4f22('0xe0')]=_0x38a12f[_0x4f7bcc][_0x4f22('0xe0')]);}[_0x4f22('0x100')](_0x10083f){const _0x2ed796=JSON['parse'](_0x10083f),_0x19458b=this['editor'][_0x4f22('0xb7')]['view'][_0x4f22('0x106')],_0x574cae=new _0xbcd63c(_0x19458b,_0x2ed796['map'](_0xfba7e5=>this[_0x4f22('0x9e')](_0xfba7e5)));return this[_0x4f22('0x6c')][_0x4f22('0x120')]['toModel'](_0x574cae);}[_0x4f22('0x9e')](_0x213bce){const _0x49875c=this[_0x4f22('0x6c')]['editing'][_0x4f22('0x1f')][_0x4f22('0x106')];if(_0x4f22('0x5f')==typeof _0x213bce)return new _0x5207c2(_0x49875c,_0x213bce);{const _0x4595fa=_0x213bce[_0x4f22('0x2d')]['map'](_0x8753c9=>this[_0x4f22('0x9e')](_0x8753c9));return new(Y[_0x213bce['type']]||_0x371eda)(_0x49875c,_0x213bce[_0x4f22('0xa5')],_0x213bce['attributes'],_0x4595fa);}}[_0x4f22('0x11c')](_0x373463,_0x533996=null){const _0x4b5f24=this['repository'][_0x4f22('0xe1')](_0x373463),_0x49c007=_0x533996?this[_0x4f22('0xb6')][_0x4f22('0xe1')](_0x533996):null,_0x548ee1=this[_0x4f22('0x5e')](_0x4b5f24,_0x49c007),_0x333752=_0x548ee1[_0x548ee1[_0x4f22('0xe3')]-0x1],_0x38970d=new Map(),_0x5f2406={'model':{},'attributes':{},'changes':[]},_0x3e4f91=new Set(),_0xaef6b2=new Map();for(let _0x3b1775=_0x548ee1[_0x4f22('0xe3')]-0x1;_0x3b1775>=0x0;_0x3b1775--){const _0x1fc355=_0x548ee1[_0x3b1775];for(const _0x296e32 of Object[_0x4f22('0x5b')](_0x1fc355[_0x4f22('0x1e')]))if(_0x1fc355[_0x4f22('0x1e')][_0x296e32]['attachChange']){const _0x2ff47e=_0x1fc355['diffData'][_0x296e32]['attachChange'];_0x2ff47e['isAttached']?(_0x3e4f91['add'](_0x296e32),_0xaef6b2[_0x4f22('0x91')](_0x296e32)&&_0xaef6b2[_0x4f22('0x10c')](_0x296e32)['userId']==_0x2ff47e['userId']?_0xaef6b2[_0x4f22('0x4f')](_0x296e32):_0xaef6b2[_0x4f22('0x7b')](_0x296e32,_0x2ff47e)):_0xaef6b2[_0x4f22('0x91')](_0x296e32)?(_0x3e4f91[_0x4f22('0x4f')](_0x296e32),_0xaef6b2['delete'](_0x296e32)):(_0x3e4f91['add'](_0x296e32),_0xaef6b2[_0x4f22('0x7b')](_0x296e32,_0x2ff47e));}else _0x3e4f91['add'](_0x296e32);}for(const _0x4a6297 of _0x3e4f91){const _0x4498e4=_0xaef6b2[_0x4f22('0x91')](_0x4a6297)&&!_0xaef6b2[_0x4f22('0x10c')](_0x4a6297)[_0x4f22('0x1b')];let _0x84c577=_0x4498e4?_0x548ee1[_0x4f22('0xe3')]-0x1:0x0;const _0x5993be=_0x4498e4?-0x1:0x1;for(;_0x548ee1[_0x84c577];){const _0x5dbeb2=_0x548ee1[_0x84c577];if(_0x5dbeb2['diffData'][_0x4a6297]){const _0x5e99bb=_0x4498e4?_0x5dbeb2[_0x4f22('0x1e')][_0x4a6297]['attributesBefore']:_0x5dbeb2['diffData'][_0x4a6297][_0x4f22('0x64')];_0x5f2406['attributes'][_0x4a6297]=_0x5e99bb?_0x4c96ef(_0x5e99bb):{};break;}_0x84c577+=_0x5993be;}}for(const _0xc42ba4 of _0x548ee1){_0xc42ba4[_0x4f22('0xe6')]={};for(const _0x5694d of _0xc42ba4[_0x4f22('0x40')])_0x38970d[_0x4f22('0x7b')](_0x5694d['id'],_0x5694d);for(const _0x53464a of _0x3e4f91){const _0x3c1f80=_0xc42ba4[_0x4f22('0x1e')][_0x53464a]?_0xc42ba4[_0x4f22('0x1e')][_0x53464a][_0x4f22('0xc')]:'[]',_0x5b30b8=_0xc42ba4[_0x4f22('0x1e')][_0x53464a]?_0xc42ba4[_0x4f22('0x1e')][_0x53464a]['deletions']:'[]';_0xc42ba4[_0x4f22('0xe6')][_0x53464a]={'insertions':this['_makeModelFromViewString'](_0x3c1f80),'deletions':this[_0x4f22('0x100')](_0x5b30b8)};}}for(const _0x1a6ee0 of _0x3e4f91){let _0x551b3b=null,_0x382ab2=0x0;const _0x5ca079=new Map(Array[_0x4f22('0x5c')](_0x4b5f24[_0x4f22('0xe6')][_0x1a6ee0][_0x4f22('0xc')][_0x4f22('0x14')])[_0x4f22('0x81')](([_0x28dfa5])=>!_0x28dfa5[_0x4f22('0x119')](_0x4f22('0x68'))));let _0x4b66b4=0x0;for(const _0x516f64 of _0x548ee1){const _0x1952c9=this[_0x4f22('0xd3')](_0x516f64[_0x4f22('0xe6')][_0x1a6ee0][_0x4f22('0xc')]);_0x516f64==_0x4b5f24?(_0x551b3b=_0x1952c9,_0x382ab2=_0x551b3b[_0x4f22('0xe3')],_0x551b3b[_0x4f22('0x53')](_0x19de66=>{_0x19de66['id']=_0x4b66b4++;}),this['_processTape'](_0x551b3b)):this['_markInsertions'](_0x551b3b,_0x1952c9);const _0x3776e6=_0x551b3b[_0x4f22('0x81')](_0x556cd7=>!_0x556cd7[_0x4f22('0xe0')])[_0x4f22('0x8d')](_0x2e87c4=>_0x2e87c4['id']);let _0x178967=0x0;const _0x48d4fd=this['_makeTape'](_0x516f64[_0x4f22('0xe6')][_0x1a6ee0][_0x4f22('0x11a')]);_0x48d4fd['forEach'](_0x2678ac=>{_0x2678ac['isRemoved']?_0x2678ac['id']=_0x382ab2++:_0x2678ac['id']=_0x3776e6[_0x178967++];}),this[_0x4f22('0xeb')](_0x48d4fd),this[_0x4f22('0x55')](_0x551b3b,_0x4f22('0xe0')),this['_setDistance'](_0x48d4fd,_0x4f22('0x33')),_0x516f64==_0x4b5f24&&this[_0x4f22('0x9a')](_0x551b3b,_0x5ca079),_0x551b3b=this['_joinTapes'](_0x551b3b,_0x48d4fd),this[_0x4f22('0x107')](_0x551b3b),this['_setDistance'](_0x551b3b,_0x4f22('0x33'));}_0x551b3b=_0x551b3b[_0x4f22('0x81')](_0x7b1765=>!(_0x7b1765[_0x4f22('0xe0')]&&_0x7b1765[_0x4f22('0x33')]));const _0x217bea=new Map(_0x333752['model'][_0x1a6ee0]['deletions'][_0x4f22('0x14')]),_0x26303c=new Set(_0x5ca079[_0x4f22('0x5b')]());for(const _0x11d194 of _0x217bea[_0x4f22('0x5b')]())_0x26303c[_0x4f22('0x4f')](_0x11d194);this['_markSuggestions'](_0x551b3b,_0x26303c),this[_0x4f22('0xdf')](_0x551b3b),_0x551b3b=this['_removeMissingPairs'](_0x551b3b),_0x551b3b=this[_0x4f22('0xcc')](_0x551b3b),_0x551b3b=this[_0x4f22('0xb1')](_0x551b3b);const {root:_0x26a6d,changes:_0x3922e1}=this['_makeModelFromTape'](_0x551b3b,_0x38970d,_0x1a6ee0);_0x5f2406[_0x4f22('0xe6')][_0x1a6ee0]=_0x26a6d;const _0x366c7f=_0xaef6b2[_0x4f22('0x10c')](_0x1a6ee0);if(_0x366c7f){const _0x2d1b29=_0x38970d[_0x4f22('0x10c')](_0x366c7f[_0x4f22('0xb5')]),_0x1c6d93=new _0x2f0fc5({'author':_0x2d1b29,'type':_0x366c7f[_0x4f22('0x1b')]?'add':_0x4f22('0x2b'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1a6ee0});_0x3922e1[_0x4f22('0xf4')](_0x1c6d93),_0x5f2406[_0x4f22('0x79')][_0x1a6ee0][_0x4f22('0x27')]=_0x1c6d93['id'];}_0x5f2406[_0x4f22('0xda')]=_0x5f2406[_0x4f22('0xda')][_0x4f22('0xfc')](_0x3922e1);}return _0x5f2406;}[_0x4f22('0x9a')](_0x482df4,_0x36edad){for(let _0xe2bd37=0x0;_0xe2bd37<_0x482df4['length'];_0xe2bd37++)for(const [_0x5e500b,_0x13be3a]of _0x36edad)_0x13be3a[_0x4f22('0xa0')]['isEqual'](_0x482df4[_0xe2bd37]['previousPosition'])&&_0x482df4[_0xe2bd37][_0x4f22('0xf2')][_0x4f22('0x26')](_0x5e500b),_0x13be3a['end'][_0x4f22('0x123')](_0x482df4[_0xe2bd37][_0x4f22('0x42')])&&_0x482df4[_0xe2bd37][_0x4f22('0x84')]['push'](_0x5e500b);}['_joinTapes'](_0x5854d6,_0x44be03){let _0x594e11=[],_0x3474a7=0x0,_0x1cd7f7=0x0;for(;_0x3474a7<_0x5854d6[_0x4f22('0xe3')]||_0x1cd7f7<_0x44be03[_0x4f22('0xe3')];){const _0x4af272=_0x5854d6[_0x3474a7]||{},_0x5032cf=_0x44be03[_0x1cd7f7]||{};if(_0x4af272['id']==_0x5032cf['id'])_0x3474a7++,_0x1cd7f7++,_0x594e11['push'](_0x4af272);else{if(_0x5032cf[_0x4f22('0x33')]&&_0x4af272['isAdded']){const {commonTape:_0x16bee7,iEnd:_0x2f5a80,jEnd:_0x5e6a92}=this[_0x4f22('0xa')](_0x5854d6,_0x3474a7,_0x44be03,_0x1cd7f7);_0x594e11=_0x594e11['concat'](_0x16bee7),_0x3474a7=_0x2f5a80,_0x1cd7f7=_0x5e6a92;}else _0x5032cf[_0x4f22('0x33')]?(_0x1cd7f7++,_0x594e11['push'](_0x5032cf)):(_0x3474a7++,_0x594e11['push'](_0x4af272));}}return _0x594e11;}['_markSuggestions'](_0x3be9e2,_0x737483){const _0x3acb97=[];for(let _0x5e33a4=0x0;_0x5e33a4<_0x3be9e2[_0x4f22('0xe3')];_0x5e33a4++){for(let _0x2e2128=0x0;_0x2e2128<_0x3be9e2[_0x5e33a4][_0x4f22('0xf2')][_0x4f22('0xe3')];_0x2e2128++){const _0x343795=_0x3be9e2[_0x5e33a4][_0x4f22('0xf2')][_0x2e2128];if(!_0x737483[_0x4f22('0x91')](_0x343795))continue;const {group:_0xe167c3,type:_0x213a85,authorId:_0x165890}=_0x2adccb(_0x343795);_0x4f22('0xb8')!=_0xe167c3||_0x4f22('0x10b')!=_0x213a85&&_0x4f22('0x74')!=_0x213a85||(_0x3acb97['unshift']({'type':_0x213a85,'name':_0x343795,'userId':_0x165890}),_0x3be9e2[_0x5e33a4][_0x4f22('0xf2')][_0x4f22('0xc4')](_0x2e2128,0x1),_0x2e2128--);}_0xf198e4(_0x3be9e2[_0x5e33a4]);for(let _0x1fff23=0x0;_0x1fff23<_0x3be9e2[_0x5e33a4][_0x4f22('0x84')][_0x4f22('0xe3')];_0x1fff23++){const _0x374737=_0x3be9e2[_0x5e33a4]['markersEnd'][_0x1fff23];if(!_0x737483[_0x4f22('0x91')](_0x374737))continue;const {group:_0x435b76,type:_0x4f522b}=_0x2adccb(_0x374737);if(_0x4f22('0xb8')!=_0x435b76||_0x4f22('0x10b')!=_0x4f522b&&_0x4f22('0x74')!=_0x4f522b)continue;_0x3be9e2[_0x5e33a4][_0x4f22('0x84')][_0x4f22('0xc4')](_0x1fff23,0x1),_0x1fff23--;const _0x1f40b4=_0x3acb97[_0x4f22('0xac')](_0x565996=>_0x565996[_0x4f22('0xa5')]==_0x374737);_0x1f40b4>-0x1&&_0x3acb97['splice'](_0x1f40b4,0x1);}}function _0x2adccb(_0x2db3a4){const _0x2259a7=_0x2db3a4[_0x4f22('0x44')](':');return{'group':_0x2259a7[0x0],'type':_0x2259a7[0x1],'subType':_0x2259a7[_0x4f22('0xe3')]>=0x5?_0x2259a7[0x2]:null,'id':_0x2259a7[_0x4f22('0xe3')]<0x5?_0x2259a7[0x2]:_0x2259a7[0x3],'authorId':_0x2259a7[_0x4f22('0xe3')]<0x5?_0x2259a7[0x3]:_0x2259a7[0x4],'markerCount':0x6==_0x2259a7[_0x4f22('0xe3')]?_0x2259a7[0x5]:null};}function _0xf198e4(_0x186ed4){for(let _0x128bb6=0x0;_0x128bb6<_0x3acb97[_0x4f22('0xe3')];_0x128bb6++){if(_0x186ed4[_0x4f22('0xe0')]&&_0x4f22('0x10b')==_0x3acb97[_0x128bb6][_0x4f22('0x43')])return _0x186ed4['isAddSuggestion']=_0x3acb97[_0x128bb6],void delete _0x186ed4[_0x4f22('0xe0')];if(!_0x186ed4[_0x4f22('0xe0')]&&!_0x186ed4[_0x4f22('0x33')]&&_0x4f22('0x74')==_0x3acb97[_0x128bb6][_0x4f22('0x43')])return void(_0x186ed4[_0x4f22('0x11f')]=_0x3acb97[_0x128bb6]);}}}[_0x4f22('0x55')](_0x355f21,_0x183ae4){let _0x435bba=0x0,_0x56fe7f=!0x1;const _0xdd2e7b=new Map();for(const _0x2741e0 of _0x355f21)_0x2741e0[_0x183ae4]?_0x56fe7f&&(_0x435bba++,_0x56fe7f=!0x1):(_0x435bba++,_0x56fe7f=!0x0),_0xdd2e7b[_0x4f22('0x7b')](_0x2741e0['id'],_0x435bba);for(let _0xee8ef7=0x0;_0xee8ef7<_0x355f21['length'];_0xee8ef7++){if(_0x4f22('0x33')==_0x183ae4&&_0x355f21[_0xee8ef7][_0x4f22('0xe0')]||'isAdded'==_0x183ae4&&_0x355f21[_0xee8ef7][_0x4f22('0x33')])continue;if(_0x4f22('0xc2')==_0x355f21[_0xee8ef7][_0x4f22('0x43')]){_0x355f21[_0xee8ef7][_0x4f22('0xa1')]=0x0;continue;}const _0x34da0d=_0xdd2e7b[_0x4f22('0x10c')](_0x355f21[_0xee8ef7][_0x4f22('0x5d')]),_0x2c8487=_0xdd2e7b[_0x4f22('0x10c')](_0x355f21[_0xee8ef7]['id']);_0x355f21[_0xee8ef7][_0x4f22('0xa1')]=_0x34da0d-_0x2c8487;}}['_getRevisionsRange'](_0xededc4,_0x1fed71,_0x1c227d=!0x1){const _0x27ecdb=[];let _0x5cf6e9=this['repository'][_0x4f22('0x2f')](_0xededc4),_0x40e7bf=this[_0x4f22('0xb6')][_0x4f22('0x2f')](_0x1fed71);for(-0x1==_0x40e7bf&&(_0x40e7bf=this[_0x4f22('0xb6')][_0x4f22('0xc7')]['length'],_0x1c227d=!0x1);_0x5cf6e9<_0x40e7bf;)_0x27ecdb[_0x4f22('0x26')](this['repository'][_0x4f22('0xe1')](_0x5cf6e9)),_0x5cf6e9++;return _0x1c227d&&_0x27ecdb[_0x4f22('0x26')](this['repository']['getRevision'](_0x5cf6e9)),_0x27ecdb;}[_0x4f22('0xa')](_0x176834,_0x59d643,_0x1b122f,_0x15c3de){const _0x3250e9=this['editor']['model'][_0x4f22('0x104')];let _0x41f863=_0x59d643;for(;_0x176834[_0x41f863]&&_0x176834[_0x41f863][_0x4f22('0xe0')];)_0x41f863++;let _0x43b3ff=_0x15c3de;for(;_0x1b122f[_0x43b3ff]&&_0x1b122f[_0x43b3ff]['isRemoved'];)_0x43b3ff++;_0x320dfb(_0x176834,_0x59d643,_0x41f863),_0x320dfb(_0x1b122f,_0x15c3de,_0x43b3ff);const _0x5df12e=_0x1b122f['slice'](_0x15c3de,_0x43b3ff)[_0x4f22('0xfc')](_0x176834[_0x4f22('0x0')](_0x59d643,_0x41f863));return _0x5df12e[_0x4f22('0x8b')]((_0x25eee9,_0x230164)=>_0x25eee9[_0x4f22('0x24')]!=_0x230164['side']?_0x25eee9[_0x4f22('0x24')]-_0x230164['side']:_0x25eee9[_0x4f22('0x1c')]!=_0x230164['level']?_0x25eee9[_0x4f22('0x1c')]-_0x230164[_0x4f22('0x1c')]:_0x25eee9[_0x4f22('0xa1')]!=_0x230164[_0x4f22('0xa1')]?_0x230164[_0x4f22('0xa1')]-_0x25eee9['distance']:!!_0x25eee9['isAdded']!=!!_0x230164['isAdded']?-0x1==_0x25eee9['side']||0x0==_0x25eee9[_0x4f22('0x24')]?_0x25eee9[_0x4f22('0xe0')]?-0x1:0x1:_0x25eee9[_0x4f22('0xe0')]?0x1:-0x1:_0x25eee9['index']-_0x230164[_0x4f22('0x7a')]),{'commonTape':_0x5df12e,'iEnd':_0x41f863,'jEnd':_0x43b3ff};function _0x320dfb(_0x26fb25,_0x2fae27,_0x1e6081){let _0x57874c=-0x1,_0x2e845c=Number[_0x4f22('0x48')],_0x1976e9=!0x0;for(let _0xb92e30=_0x2fae27;_0xb92e30<_0x1e6081;_0xb92e30++)if(_0x3250e9['isInline'](_0x26fb25[_0xb92e30][_0x4f22('0x9d')])||(_0x1976e9=!0x1),_0x26fb25[_0xb92e30][_0x4f22('0x9d')][_0x4f22('0x34')]<_0x2fae27&&(_0x57874c=_0xb92e30),_0x26fb25[_0xb92e30][_0x4f22('0x9d')][_0x4f22('0xd1')]>=_0x1e6081){_0x2e845c=_0xb92e30;break;}_0x1976e9&&(_0x57874c=_0x1e6081-0x1);for(let _0x3c25a4=_0x2fae27;_0x3c25a4<_0x1e6081;_0x3c25a4++)_0x26fb25[_0x3c25a4][_0x4f22('0x24')]=_0x3c25a4<=_0x57874c?-0x1:_0x3c25a4<_0x2e845c?0x0:0x1,_0x26fb25[_0x3c25a4][_0x4f22('0x7a')]=_0x3c25a4;let _0x28babb=0x0;for(let _0x4a181d=_0x2fae27;_0x4a181d<=_0x57874c;_0x4a181d++)0x0==_0x26fb25[_0x4a181d][_0x4f22('0xa1')]?_0x26fb25[_0x4a181d]['level']=_0x28babb:(_0x28babb++,_0x26fb25[_0x4a181d][_0x4f22('0x1c')]=_0x28babb,_0x28babb++);for(let _0x1b2298=_0x2fae27;_0x1b2298<_0x1e6081;_0x1b2298++)0x0==_0x26fb25[_0x1b2298]['side']&&(_0x26fb25[_0x1b2298][_0x4f22('0x1c')]=_0x28babb);_0x28babb=0x0;for(let _0x2474a0=_0x1e6081-0x1;_0x2474a0>=_0x2e845c;_0x2474a0--)0x0==_0x26fb25[_0x2474a0][_0x4f22('0xa1')]?_0x26fb25[_0x2474a0]['level']=_0x28babb:(_0x28babb--,_0x26fb25[_0x2474a0]['level']=_0x28babb,_0x28babb--);}}['_fixObsoleteTags'](_0x2bafe4){const _0x3c14e5=new Map(),_0x4d2bb1=this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x104')];for(let _0x41e03f=0x1;_0x41e03f<_0x2bafe4[_0x4f22('0xe3')];_0x41e03f++){let _0xa73dfc,_0x177089,_0x30ca68;const _0x1c0e9b=_0x2bafe4[_0x41e03f],_0x3d5a8b=_0x2bafe4[_0x41e03f-0x1];if(_0x4f22('0xc2')==_0x1c0e9b[_0x4f22('0x43')])continue;if(_0x1c0e9b[_0x4f22('0x43')]!=_0x3d5a8b['type'])continue;if(!_0x4d2bb1[_0x4f22('0x6d')](_0x3d5a8b['item'])||_0x4d2bb1['isLimit'](_0x3d5a8b['item']))continue;if(!_0x4d2bb1['isBlock'](_0x1c0e9b[_0x4f22('0x9d')])||_0x4d2bb1[_0x4f22('0xba')](_0x1c0e9b['item']))continue;if((_0x2bafe4[_0x41e03f]['isAdded']||_0x2bafe4[_0x41e03f][_0x4f22('0x52')])&&_0x2bafe4[_0x41e03f-0x1][_0x4f22('0x33')])_0xa73dfc=_0x2bafe4[_0x41e03f],_0x177089=_0x2bafe4[_0x41e03f-0x1],_0x30ca68=_0x41e03f-0x1;else{if(!_0x2bafe4[_0x41e03f][_0x4f22('0x33')]||!_0x2bafe4[_0x41e03f-0x1][_0x4f22('0xe0')]&&!_0x2bafe4[_0x41e03f-0x1][_0x4f22('0x52')])continue;_0xa73dfc=_0x2bafe4[_0x41e03f-0x1],_0x177089=_0x2bafe4[_0x41e03f],_0x30ca68=_0x41e03f;}const _0xe9ece8=_0xa73dfc[_0x4f22('0x1c')]==_0x177089[_0x4f22('0x1c')],_0xcc4458=Math[_0x4f22('0x17')](_0xa73dfc[_0x4f22('0x1c')])<Math[_0x4f22('0x17')](_0x177089[_0x4f22('0x1c')])&&0x0==_0x177089[_0x4f22('0xa1')];(_0xe9ece8||_0xcc4458)&&(_0x3c14e5[_0x4f22('0x7b')](_0x177089['id'],_0xa73dfc['id']),_0x2bafe4[_0x4f22('0xc4')](_0x30ca68,0x1),_0x41e03f--,_0xa73dfc['isAdded']=!0x1);}for(let _0x215470=0x0;_0x215470<_0x2bafe4['length'];_0x215470++)_0x3c14e5[_0x4f22('0x91')](_0x2bafe4[_0x215470]['pairId'])&&(_0x2bafe4[_0x215470][_0x4f22('0x5d')]=_0x3c14e5[_0x4f22('0x10c')](_0x2bafe4[_0x215470][_0x4f22('0x5d')]));}[_0x4f22('0xe2')](_0x20eebe){const _0x915bd7=new Set(_0x20eebe[_0x4f22('0x8d')](_0x52f6be=>_0x52f6be['id']));for(let _0x4cde0b=0x0;_0x4cde0b<_0x20eebe[_0x4f22('0xe3')];_0x4cde0b++)_0x915bd7['has'](_0x20eebe[_0x4cde0b][_0x4f22('0x5d')])||0x0==_0x20eebe[_0x4cde0b]['distance']||(_0x20eebe[_0x4cde0b][_0x4f22('0xa6')]=!0x0);return _0x20eebe[_0x4f22('0x81')](_0x2b3bea=>!_0x2b3bea['isIncorrect']);}[_0x4f22('0xcc')](_0x4660bb){const _0x426815=new Set();for(let _0x31342d=0x0;_0x31342d<_0x4660bb[_0x4f22('0xe3')];_0x31342d++){if(_0x426815['has'](_0x4660bb[_0x31342d]['id'])&&_0x4660bb[_0x31342d][_0x4f22('0x33')]&&(_0x4660bb[_0x31342d][_0x4f22('0xa6')]=!0x0),_0x4660bb[_0x31342d][_0x4f22('0xa6')])continue;if(0x0==_0x4660bb[_0x31342d]['distance'])continue;if(_0x4f22('0x97')!=_0x4660bb[_0x31342d][_0x4f22('0x43')])continue;if(null==_0x4660bb[_0x31342d][_0x4f22('0x5d')])continue;let _0x14f713=_0x31342d+0x1,_0x127c81=0x0;for(;_0x4660bb[_0x14f713]['id']!=_0x4660bb[_0x31342d][_0x4f22('0x5d')];)_0x4f22('0x97')==_0x4660bb[_0x14f713][_0x4f22('0x43')]?_0x127c81++:'elementEnd'==_0x4660bb[_0x14f713]['type']&&_0x127c81--,_0x14f713++;if(0x0!=_0x127c81){if(_0x4660bb[_0x31342d][_0x4f22('0x33')])_0x4660bb[_0x31342d][_0x4f22('0xa6')]=!0x0;else for(;_0x14f713!=_0x31342d;)_0x4660bb[_0x14f713][_0x4f22('0x33')]&&0x0!=_0x4660bb[_0x14f713][_0x4f22('0xa1')]&&(_0x4660bb[_0x14f713][_0x4f22('0xa6')]=!0x0,_0x426815[_0x4f22('0x23')](_0x4660bb[_0x14f713][_0x4f22('0x5d')])),_0x14f713--;}}return _0x4660bb[_0x4f22('0x81')](_0x163d74=>!_0x163d74['isIncorrect']);}[_0x4f22('0xb1')](_0x186de2){const _0x1f2775=this[_0x4f22('0x6c')][_0x4f22('0xe6')]['schema'];for(let _0x1bbffc=0x0;_0x1bbffc<_0x186de2['length'];_0x1bbffc++){if(!(_0x186de2[_0x1bbffc][_0x4f22('0xe0')]||_0x186de2[_0x1bbffc]['isAddSuggestion']||_0x186de2[_0x1bbffc][_0x4f22('0x33')]||_0x186de2[_0x1bbffc]['isRemoveSuggestion']))continue;if(0x0==_0x186de2[_0x1bbffc][_0x4f22('0xa1')])continue;const _0x465f44=_0x186de2[_0x1bbffc][_0x4f22('0x9d')];_0x1f2775[_0x4f22('0x6d')](_0x465f44)||_0x1f2775['isLimit'](_0x465f44)||(_0x186de2[_0x1bbffc]['isAdded']&&delete _0x186de2[_0x1bbffc][_0x4f22('0xe0')],_0x186de2[_0x1bbffc][_0x4f22('0x52')]&&delete _0x186de2[_0x1bbffc]['isAddSuggestion'],_0x186de2[_0x1bbffc][_0x4f22('0x11f')]&&delete _0x186de2[_0x1bbffc][_0x4f22('0x11f')],_0x186de2[_0x1bbffc][_0x4f22('0x33')]&&(_0x186de2[_0x1bbffc][_0x4f22('0xa6')]=!0x0));}return _0x186de2[_0x4f22('0x81')](_0x2de353=>!_0x2de353[_0x4f22('0xa6')]);}[_0x4f22('0xab')](_0x344747,_0x5a945a,_0x301e1a){const _0x2f181a=new _0x448404(),_0x1aac78=[],_0x1220db=new Map(),_0x288f9f=this[_0x4f22('0x6c')][_0x4f22('0xe6')],_0x373cc8=_0x288f9f[_0x4f22('0x104')],_0x1dc7b8=[_0x2f181a],_0x3c5a21={},_0x501cc2={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3fe734=null;const _0x194126=[0x0];for(let _0x25f807=0x0;_0x25f807<_0x344747[_0x4f22('0xe3')];_0x25f807++){let _0x30b13a,_0x2e6ad9;if(_0x4f22('0x97')===_0x344747[_0x25f807][_0x4f22('0x43')]){_0x30b13a=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126);const _0x58d76f=new _0x340e18(_0x344747[_0x25f807]['item'][_0x4f22('0xa5')],_0x344747[_0x25f807][_0x4f22('0x9d')]['getAttributes']());_0x1dc7b8[0x0][_0x4f22('0x89')](_0x58d76f),_0x194126[_0x4f22('0x26')](0x0),_0x1dc7b8['unshift'](_0x58d76f),_0x2e6ad9=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126),_0x3fe734=null;}else{if('elementEnd'===_0x344747[_0x25f807][_0x4f22('0x43')])_0x1dc7b8[_0x4f22('0xd7')](),_0x30b13a=_0x288f9f['createPositionFromPath'](_0x2f181a,_0x194126),_0x194126['pop'](),_0x194126[_0x194126[_0x4f22('0xe3')]-0x1]++,_0x2e6ad9=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126),_0x3fe734=null;else{if(_0x30b13a=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126),_0x3fe734&&_0x4f2dd6(_0x3fe734,_0x344747[_0x25f807][_0x4f22('0x9d')]))_0x3fe734[_0x4f22('0x6e')]+=_0x344747[_0x25f807][_0x4f22('0x9d')][_0x4f22('0x120')];else{const _0x3caf6d=new _0x21d0f8(_0x344747[_0x25f807][_0x4f22('0x9d')][_0x4f22('0x120')],_0x344747[_0x25f807][_0x4f22('0x9d')][_0x4f22('0x10d')]());_0x1dc7b8[0x0][_0x4f22('0x89')](_0x3caf6d),_0x3fe734=_0x3caf6d;}_0x194126[_0x194126[_0x4f22('0xe3')]-0x1]+=_0x344747[_0x25f807][_0x4f22('0x9d')][_0x4f22('0x47')],_0x2e6ad9=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126);}}for(const _0x3038c5 of _0x344747[_0x25f807]['markersStart'])_0x1220db[_0x4f22('0x7b')](_0x3038c5,{'start':_0x30b13a,'end':null});_0x2e8e22(_0x4f22('0x11f'),_0x25f807,_0x30b13a,_0x2e6ad9),_0x2e8e22('isAddSuggestion',_0x25f807,_0x30b13a,_0x2e6ad9),_0x2e8e22(_0x4f22('0x33'),_0x25f807,_0x30b13a,_0x2e6ad9),_0x2e8e22(_0x4f22('0xe0'),_0x25f807,_0x30b13a,_0x2e6ad9);for(const _0x242ae2 of _0x344747[_0x25f807][_0x4f22('0x84')]){_0x1220db[_0x4f22('0x10c')](_0x242ae2)[_0x4f22('0x111')]=_0x2e6ad9;}}for(const [_0x58b2cc,_0x17eeae]of _0x1220db){const _0x65d9e=this[_0x4f22('0x6c')]['model'][_0x4f22('0xca')](_0x17eeae[_0x4f22('0xa0')],_0x17eeae[_0x4f22('0x111')]);_0x2f181a['markers'][_0x4f22('0x7b')](_0x58b2cc,_0x65d9e);}return _0x1aac78[_0x4f22('0x8b')]((_0xf51ea,_0x415d33)=>{const _0x1953c5=_0x2f181a['markers'][_0x4f22('0x10c')](_0x4f22('0x68')+_0xf51ea['id']),_0xef17cf=_0x2f181a[_0x4f22('0x14')]['get']('revision:'+_0x415d33['id']);return _0x1953c5[_0x4f22('0xa0')]['isBefore'](_0xef17cf[_0x4f22('0xa0')])?-0x1:_0x1953c5[_0x4f22('0xa0')]['isAfter'](_0xef17cf[_0x4f22('0xa0')])?0x1:_0x1953c5['end']['isBefore'](_0xef17cf['end'])?-0x1:_0x1953c5[_0x4f22('0x111')][_0x4f22('0x93')](_0xef17cf[_0x4f22('0x111')])?0x1:_0x4f22('0x23')===_0xf51ea[_0x4f22('0x43')]?-0x1:0x1;}),{'root':_0x2f181a,'changes':_0x1aac78};function _0x2e8e22(_0x3317c4,_0x5494e1,_0x29100c,_0x5b607e){const _0x36def9=!!_0x344747[_0x5494e1][_0x3317c4],_0xd0858a=_0x36def9?_0x344747[_0x5494e1][_0x3317c4][_0x4f22('0xb5')]:null,_0x2197d2=_0x5494e1===_0x344747[_0x4f22('0xe3')]-0x1,_0x46d21d=_0x501cc2[_0x3317c4][0x0],_0x3d0609=_0x373cc8[_0x4f22('0xdc')](_0x344747[_0x5494e1][_0x4f22('0x9d')]);!_0x3c5a21[_0x3317c4]&&_0x36def9?_0x3c5a21[_0x3317c4]={'start':_0x29100c,'tapeItem':_0x344747[_0x5494e1],'userId':_0xd0858a,'type':_0x3317c4}:_0x3c5a21[_0x3317c4]&&!_0x36def9?(_0x3c5a21[_0x3317c4][_0x4f22('0x111')]=_0x29100c,_0x5eb8fd(_0x3c5a21[_0x3317c4]),_0x3c5a21[_0x3317c4]=null):_0x3c5a21[_0x3317c4]&&_0x36def9&&_0x3c5a21[_0x3317c4]['userId']!==_0xd0858a&&(_0x3c5a21[_0x3317c4][_0x4f22('0x111')]=_0x29100c,_0x46d21d&&_0x46d21d['userId']===_0x3c5a21[_0x3317c4][_0x4f22('0xb5')]||_0x5eb8fd(_0x3c5a21[_0x3317c4]),_0x3c5a21[_0x3317c4]={'start':_0x29100c,'tapeItem':_0x344747[_0x5494e1],'userId':_0xd0858a,'type':_0x3317c4}),_0x3c5a21[_0x3317c4]&&_0x3d0609&&(_0x4f22('0x97')!==_0x344747[_0x5494e1][_0x4f22('0x43')]||_0x46d21d&&_0x46d21d[_0x4f22('0xb5')]===_0xd0858a||_0x501cc2[_0x3317c4][_0x4f22('0xf4')]({'userId':_0xd0858a,'object':_0x344747[_0x5494e1][_0x4f22('0x9d')],'change':_0x3c5a21[_0x3317c4]}),_0x4f22('0xad')===_0x344747[_0x5494e1]['type']&&_0x46d21d&&_0x46d21d[_0x4f22('0x3e')]===_0x344747[_0x5494e1][_0x4f22('0x9d')]&&(_0x501cc2[_0x3317c4][_0x4f22('0xd7')](),_0x3c5a21[_0x3317c4]=_0x46d21d['change'])),_0x3c5a21[_0x3317c4]&&_0x2197d2&&(_0x3c5a21[_0x3317c4]['end']=_0x5b607e,_0x5eb8fd(_0x3c5a21[_0x3317c4]),_0x3c5a21[_0x3317c4]=null);}function _0x5eb8fd({start:_0x4a3c53,end:_0xa51cf7,tapeItem:_0xa4492d,userId:_0x242ad3,type:_0x280af9}){const _0x3e21e5=_0xa4492d['item'],_0x9f58e2=_0x288f9f[_0x4f22('0x104')][_0x4f22('0x6d')](_0x3e21e5)&&!_0x288f9f[_0x4f22('0x104')][_0x4f22('0xba')](_0x3e21e5),_0x43a6d0=_0x4a3c53[_0x4f22('0x78')]==_0xa51cf7['parent']&&_0xa51cf7[_0x4f22('0x96')];if(_0x9f58e2&&_0x43a6d0)return;const _0x404d25=_0x288f9f[_0x4f22('0xca')](_0x4a3c53,_0xa51cf7),_0x21a161=_0x5a945a[_0x4f22('0x10c')](_0x242ad3),_0x233db8=new _0x2f0fc5({'author':_0x21a161,'type':_0x4f22('0xe0')==_0x280af9||'isAddSuggestion'==_0x280af9?_0x4f22('0x23'):_0x4f22('0x2b'),'data':{'isSuggestion':_0x4f22('0x52')==_0x280af9||_0x4f22('0x11f')==_0x280af9},'createdAt':new Date(),'rootName':_0x301e1a});_0x1aac78['push'](_0x233db8),_0x2f181a[_0x4f22('0x14')][_0x4f22('0x7b')](_0x4f22('0x68')+_0x233db8['id'],_0x404d25);}function _0x4f2dd6(_0x37b11f,_0x1d2234){const _0x546c0f=_0x37b11f['getAttributes'](),_0xa02aad=_0x1d2234[_0x4f22('0x10d')]();for(const _0x2b5521 of _0x546c0f){if(_0x2b5521[0x1]!==_0x1d2234['getAttribute'](_0x2b5521[0x0]))return!0x1;_0xa02aad['next']();}return _0xa02aad[_0x4f22('0x117')]()[_0x4f22('0xcb')];}}[_0x4f22('0x2c')](){this['editor'][_0x4f22('0x94')][_0x4f22('0xa3')](_0x4f22('0xaa'))[_0x4f22('0x7e')]({'view':_0x4f22('0x37')}),this[_0x4f22('0x6c')]['conversion'][_0x4f22('0xa3')](_0x4f22('0x38'))['markerToHighlight']({'model':_0x4f22('0x37'),'view':_0x4ccf36=>{const _0x48993a=_0x4ccf36['markerName'][_0x4f22('0x44')](':')[0x1],_0x22fe6f=this[_0x4f22('0x116')](_0x48993a);if(!_0x22fe6f)return null;const _0x55a8c1='add'==_0x22fe6f[_0x4f22('0x43')]?'insertion':'deletion',_0x349b40=[_0x4f22('0x39'),_0x4f22('0xf0')+_0x55a8c1];return _0x22fe6f[_0x4f22('0x120')][_0x4f22('0x3')]&&_0x349b40[_0x4f22('0x26')](_0x4f22('0xf0')+_0x55a8c1+_0x4f22('0x114')),this[_0x4f22('0x10f')]==_0x22fe6f&&_0x349b40[_0x4f22('0x26')](_0x4f22('0x85')),{'classes':_0x349b40,'attributes':{'data-change-id':_0x48993a}};}}),this['editor'][_0x4f22('0x94')][_0x4f22('0xa3')]('upcast')[_0x4f22('0x23')](_0x10ffb8=>{_0x10ffb8['on'](_0x4f22('0x5a'),(_0x3b5dfa,_0x2e29c8,_0x2a1a04)=>{const _0x22bae8=_0x2e29c8[_0x4f22('0x71')][_0x4f22('0x29')](0x0);if(!_0x22bae8||!_0x22bae8['is'](_0x4f22('0xd0'),_0x4f22('0x90')))return;if(!_0x2a1a04[_0x4f22('0x124')][_0x4f22('0xf9')](_0x22bae8,{'attributes':[_0x4f22('0x7'),'vid_end']}))return;const _0x5ce5b2=_0x2e29c8[_0x4f22('0xf1')][_0x4f22('0xa0')][_0x4f22('0x78')];_0x2a1a04[_0x4f22('0x118')][_0x4f22('0x25')]('vid_start',_0x22bae8['getAttribute'](_0x4f22('0x7')),_0x5ce5b2),_0x2a1a04['writer'][_0x4f22('0x25')]('vid_end',_0x22bae8[_0x4f22('0x7f')]('vid_end'),_0x5ce5b2);},{'priority':'low'});}),this[_0x4f22('0x6c')][_0x4f22('0x94')][_0x4f22('0xa3')]('upcast')[_0x4f22('0x23')](_0x438f08=>{_0x438f08['on'](_0x4f22('0xd0'),(_0x28a728,_0x4cabbc,_0x113ebb)=>{if(!_0x113ebb[_0x4f22('0x124')]['consume'](_0x4cabbc[_0x4f22('0x71')],{'attributes':[_0x4f22('0x7'),_0x4f22('0x18')]}))return;if(_0x4cabbc[_0x4f22('0xf1')]['isCollapsed'])return;const _0x26829e=_0x4cabbc[_0x4f22('0xf1')][_0x4f22('0xa0')]['nodeAfter'];_0x26829e[_0x4f22('0xf7')]('vid_start')||_0x26829e[_0x4f22('0xf7')](_0x4f22('0x88'))||(_0x113ebb[_0x4f22('0x118')]['setAttribute'](_0x4f22('0x7'),_0x4cabbc[_0x4f22('0x71')][_0x4f22('0x7f')](_0x4f22('0x7')),_0x26829e),_0x113ebb[_0x4f22('0x118')]['setAttribute'](_0x4f22('0x18'),_0x4cabbc[_0x4f22('0x71')][_0x4f22('0x7f')]('vid_end'),_0x26829e));},{'priority':'low'});}),this[_0x4f22('0x6c')][_0x4f22('0x94')][_0x4f22('0xa3')](_0x4f22('0xaa'))[_0x4f22('0x102')]({'view':{'name':_0x4f22('0x49'),'attributes':{'vid':!0x0}},'model':{'key':_0x4f22('0x88'),'value':_0x3886c8=>_0x3886c8['getAttribute'](_0x4f22('0x88'))}}),this['editor'][_0x4f22('0xe6')][_0x4f22('0x104')]['on'](_0x4f22('0xa7'),(_0x2e3b7d,[,_0x31e541])=>{['vid_start',_0x4f22('0x18'),'vid'][_0x4f22('0x9f')](_0x31e541)&&(_0x2e3b7d[_0x4f22('0xb9')]=!0x0,_0x2e3b7d['stop']());},{'priority':_0x4f22('0x3b')}),this[_0x4f22('0x6c')]['conversion'][_0x4f22('0xa3')](_0x4f22('0x6'))[_0x4f22('0x23')](_0x340063=>{_0x340063['on'](_0x4f22('0x95'),(_0x826ebb,_0x121503,_0x2f8e1a)=>{if('\x20'!=_0x121503[_0x4f22('0x9d')]['data']||_0x121503['item']['parent'][_0x4f22('0xbf')]>0x1)return;if(!_0x2f8e1a[_0x4f22('0x124')]['consume'](_0x121503[_0x4f22('0x9d')],_0x826ebb['name']))return;const _0x23eda3=_0x2f8e1a[_0x4f22('0x118')],_0x2c7cda=_0x2f8e1a['mapper'][_0x4f22('0x92')](_0x121503[_0x4f22('0x80')]);_0x23eda3[_0x4f22('0x69')](_0x2c7cda,_0x23eda3[_0x4f22('0xbe')](_0x4f22('0x49')));});}),this[_0x4f22('0x6c')][_0x4f22('0x94')][_0x4f22('0xa3')]('dataDowncast')[_0x4f22('0x4c')]({'model':_0x4f22('0x37')}),this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0xe8')]['on'](_0x4f22('0x4b'),function(_0x19585e){const _0x35f3d8=_0x19585e['plugins'][_0x4f22('0x10c')](_0x4f22('0x72'));return(_0xa6b8b7,_0x345f65,_0x4f1ad3)=>{const _0x3e0f95=_0x345f65[_0x4f22('0x6f')][_0x4f22('0x44')](':')[0x1],_0x32b2e4=_0x35f3d8[_0x4f22('0x116')](_0x3e0f95);if(!_0x32b2e4)return null;const _0x5ca7d9=_0x4f22('0x23')==_0x32b2e4['type']?_0x4f22('0x44'):_0x4f22('0x58');if(!_0x4f1ad3[_0x4f22('0x124')][_0x4f22('0x4a')](_0x345f65[_0x4f22('0x36')],_0xa6b8b7[_0x4f22('0xa5')]))return;const _0x4ecdb7=_0x345f65[_0x4f22('0x36')][_0x4f22('0xd8')](),_0x1501ba=_0x345f65[_0x4f22('0x36')][_0x4f22('0xa0')],_0x17d7cf=_0x19585e['model'][_0x4f22('0x104')];let _0x397386=null,_0x30bf78=null,_0x4ebe78=!0x1,_0x332f65=!0x1;for(const _0x142d61 of _0x4ecdb7){const _0x5d5716=_0x142d61[_0x4f22('0x9d')];_0x4ebe78=_0x4ebe78||_0x17d7cf[_0x4f22('0xfd')](_0x5d5716);const _0x1870b4=_0x4f1ad3[_0x4f22('0xa2')]['toViewElement'](_0x5d5716);if(_0x1870b4&&_0x1870b4['getCustomProperty'](_0x4f22('0x99')))return;'elementEnd'==_0x142d61[_0x4f22('0x43')]&&(_0x17d7cf['isBlock'](_0x5d5716)&&!_0x17d7cf[_0x4f22('0xba')](_0x5d5716)&&(_0x5d5716[_0x4f22('0x46')]||_0x1501ba[_0x4f22('0xcd')]?_0x397386&&_0x397386[_0x4f22('0x21')]==_0x5d5716||(_0x397386=_0x5d5716,_0x24e527(_0x142d61['previousPosition']),_0x332f65=!0x0):_0x30bf78=_0x30bf78||_0x142d61['previousPosition']));}function _0x24e527(_0x2db218){const _0x33ba1a=_0x4f1ad3['writer'][_0x4f22('0x4e')](_0x4f22('0x49'),{'class':_0x4f22('0xf0')+_0x5ca7d9}),_0x3043d1=_0x4f1ad3['mapper'][_0x4f22('0xbb')](_0x2db218);_0x32b2e4[_0x4f22('0x120')][_0x4f22('0x3')]&&_0x4f1ad3[_0x4f22('0x118')][_0x4f22('0xfe')](_0x4f22('0xf0')+_0x5ca7d9+_0x4f22('0x114'),_0x33ba1a),_0x35f3d8[_0x4f22('0x10f')]==_0x32b2e4&&_0x4f1ad3[_0x4f22('0x118')]['addClass'](_0x4f22('0x85'),_0x33ba1a),_0x4f1ad3[_0x4f22('0x118')][_0x4f22('0x50')](_0x3043d1,_0x33ba1a),_0x4f1ad3[_0x4f22('0xa2')][_0x4f22('0x54')](_0x33ba1a,_0x345f65[_0x4f22('0x6f')]);}_0x4ebe78||_0x332f65||!_0x30bf78||_0x24e527(_0x30bf78);};}(this[_0x4f22('0x6c')]),{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')]['editing'][_0x4f22('0xe8')]['on'](_0x4f22('0x10a'),(_0x4934ca,_0x37c2ed,_0x14fc5a)=>{const _0x11da56=_0x14fc5a[_0x4f22('0xa2')]['markerNameToElements'](_0x37c2ed['markerName']);if(_0x11da56)for(const _0xadef02 of _0x11da56)(_0xadef02[_0x4f22('0x66')](_0x4f22('0xaf'))||_0xadef02[_0x4f22('0x66')](_0x4f22('0x45')))&&(_0x14fc5a[_0x4f22('0xa2')][_0x4f22('0x1a')](_0xadef02,_0x37c2ed[_0x4f22('0x6f')]),_0x14fc5a[_0x4f22('0x118')][_0x4f22('0x2b')](_0xadef02));},{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0xe8')]['on'](_0x4f22('0x4b'),(_0x5a7caa,_0x26f91d,_0x18666f)=>{const _0x58bf3f=_0x26f91d['markerName'][_0x4f22('0x44')](':')[0x1],_0x4e173c=this[_0x4f22('0x116')](_0x58bf3f);if(!_0x4e173c)return null;const _0x3961cc=_0x4f22('0x23')==_0x4e173c[_0x4f22('0x43')]?_0x4f22('0x44'):'merge';if(_0x18666f[_0x4f22('0x124')][_0x4f22('0x4a')](_0x26f91d[_0x4f22('0x36')],_0x5a7caa[_0x4f22('0xa5')]))for(const _0x29e99d of _0x26f91d[_0x4f22('0x36')][_0x4f22('0xd4')]()){if(!_0x29e99d['is']('element',_0x4f22('0xdd')))continue;const _0xf6d6af=_0x18666f[_0x4f22('0x118')][_0x4f22('0x4e')]('span',{'class':_0x4f22('0xf0')+_0x3961cc}),_0x35418b=_0x18666f['mapper']['toViewPosition'](this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0xd')](_0x29e99d));_0x4e173c[_0x4f22('0x120')][_0x4f22('0x3')]&&_0x18666f[_0x4f22('0x118')][_0x4f22('0xfe')](_0x4f22('0xf0')+_0x3961cc+_0x4f22('0x114'),_0xf6d6af),this[_0x4f22('0x10f')]==_0x4e173c&&_0x18666f[_0x4f22('0x118')]['addClass']('ck-suggestion-marker--active',_0xf6d6af),_0x18666f['writer'][_0x4f22('0x50')](_0x35418b,_0xf6d6af),_0x18666f[_0x4f22('0xa2')][_0x4f22('0x54')](_0xf6d6af,_0x26f91d[_0x4f22('0x6f')]);}},{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')][_0x4f22('0xe6')]['document']['on'](_0x4f22('0x7c'),()=>{this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x7c')](_0xe01fc2=>{for(const _0x3364dd of this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x106')][_0x4f22('0x108')]()){const _0x275419=this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x106')][_0x4f22('0x11d')](_0x3364dd),_0x951a71=this['editor'][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x106')][_0x4f22('0x11d')](_0x3364dd);if(_0x951a71){const _0x2bc6f3=_0x275419['getAttribute'](_0x4f22('0x27'));if(_0xe01fc2[_0x4f22('0xc8')](_0x4f22('0x41'),_0x951a71),_0xe01fc2[_0x4f22('0x110')](_0x4f22('0x63'),_0x951a71),_0xe01fc2[_0x4f22('0x110')](_0x4f22('0x3d'),_0x951a71),_0xe01fc2['removeClass'](_0x4f22('0x10e'),_0x951a71),_0x2bc6f3){const _0x587329=this['_getChangeFromId'](_0x2bc6f3);if(!_0x587329)return null;_0xe01fc2[_0x4f22('0x25')](_0x4f22('0x41'),_0x2bc6f3,_0x951a71),_0xe01fc2[_0x4f22('0xfe')](_0x4f22('0x122')+_0x587329[_0x4f22('0x43')],_0x951a71),this['activeChange']==_0x587329&&_0xe01fc2[_0x4f22('0xfe')](_0x4f22('0x10e'),_0x951a71);}}}});}),this[_0x4f22('0x6c')][_0x4f22('0x94')]['for'](_0x4f22('0xaa'))[_0x4f22('0x7e')]({'view':_0x4f22('0x7d'),'model':_0x3e8be9=>_0x4f22('0x2a')+_0x3e8be9,'converterPriority':'highest'}),this[_0x4f22('0x6c')][_0x4f22('0x94')][_0x4f22('0xa3')](_0x4f22('0xaa'))['dataToMarker']({'view':'suggestion','model':_0x2134a6=>'revision-suggestion:'+_0x2134a6,'converterPriority':_0x4f22('0x3b')}),this[_0x4f22('0x6c')][_0x4f22('0x94')]['for'](_0x4f22('0x6'))[_0x4f22('0x4c')]({'model':_0x4f22('0xb8'),'view':_0xb9c967=>({'name':'suggestion:'+_0xb9c967,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor'][_0x4f22('0x94')][_0x4f22('0xa3')](_0x4f22('0x38'))[_0x4f22('0xd2')]({'model':_0x4f22('0xb8'),'view':_0x50fca6=>{const _0x40959f=_0x50fca6[_0x4f22('0x6f')]['split'](':')[0x1];return _0x4f22('0x10b')!=_0x40959f&&'deletion'!=_0x40959f?null:{'classes':['ck-suggestion-preview-marker',_0x4f22('0x28')+_0x40959f]};}}),this[_0x4f22('0x6c')]['editing'][_0x4f22('0xe8')]['on'](_0x4f22('0xf5'),Z(this[_0x4f22('0x6c')],_0x4f22('0x58')),{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0xe8')]['on'](_0x4f22('0x51'),Z(this[_0x4f22('0x6c')],_0x4f22('0x44')),{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0xe8')]['on'](_0x4f22('0x112'),(_0xa1b7e8,_0x2b9315,_0x53c38c)=>{const _0x2359a2=_0x53c38c[_0x4f22('0xa2')]['markerNameToElements'](_0x2b9315[_0x4f22('0x6f')]);if(_0x2359a2)for(const _0x12bb38 of _0x2359a2)_0x12bb38['is'](_0x4f22('0x4'))&&(_0x53c38c[_0x4f22('0xa2')][_0x4f22('0x1a')](_0x12bb38,_0x2b9315[_0x4f22('0x6f')]),_0x53c38c[_0x4f22('0x118')]['remove'](_0x12bb38));},{'priority':_0x4f22('0x6b')});}[_0x4f22('0x116')](_0x297b21){return this[_0x4f22('0x22')][_0x4f22('0x10c')](_0x297b21);}['_getViewForChange'](_0x236b75){return this[_0x4f22('0xd6')]&&this['_changeView'][_0x4f22('0x61')](),this[_0x4f22('0xd6')]=new _0x249774(this[_0x4f22('0x6c')]['locale'],_0x236b75),this[_0x4f22('0xd6')];}[_0x4f22('0x4d')](){this[_0x4f22('0x6c')]['model'][_0x4f22('0x106')][_0x4f22('0x10')][_0x4f22('0xed')](_0x4f22('0x37')),this['on'](_0x4f22('0x6a'),(_0x121a0b,_0xf201ca,_0x5a5ea5,_0x56c4fa)=>{_0x56c4fa&&this[_0x4f22('0xa4')][_0x4f22('0x2b')](_0x56c4fa),_0x5a5ea5&&(this[_0x4f22('0xa4')][_0x4f22('0x23')]({'view':_0x5a5ea5,'stackId':_0x4f22('0xd5'),'position':{'target':()=>{const _0x1e7510=this['editor'][_0x4f22('0xb7')],_0x50c6d7=this[_0x4f22('0x116')](_0x5a5ea5[_0x4f22('0x121')]);let _0x219456;if(_0x50c6d7[_0x4f22('0x120')][_0x4f22('0xc0')]){const _0x464c3f=_0x1e7510[_0x4f22('0x1f')][_0x4f22('0xae')](_0x50c6d7[_0x4f22('0x12')]);_0x219456=Array[_0x4f22('0x5c')](_0x464c3f[_0x4f22('0x9c')]());}else{const _0x394ca9=this[_0x4f22('0x6c')][_0x4f22('0xe6')]['markers'][_0x4f22('0x10c')](_0x4f22('0x68')+_0x5a5ea5[_0x4f22('0x121')]);_0x219456=Array[_0x4f22('0x5c')](_0x1e7510['mapper'][_0x4f22('0x35')](_0x394ca9[_0x4f22('0xa5')]))[_0x4f22('0x8d')](_0x4c5d2b=>_0x1e7510[_0x4f22('0x1f')][_0x4f22('0x3c')]['mapViewToDom'](_0x4c5d2b))[_0x4f22('0x8d')](_0x3495f3=>Array[_0x4f22('0x5c')](_0x3495f3[_0x4f22('0x9c')]()))['flat']();}if(!this[_0x4f22('0x16')])return _0x219456[0x0];return _0x219456['find'](_0x5cb08b=>_0x5cb08b[_0x4f22('0xb3')]-0x3<=this['_activeViewTarget']['y']&&_0x5cb08b[_0x4f22('0x109')]+0x3>=this[_0x4f22('0x16')]['y']&&_0x5cb08b['left']-0x3<=this[_0x4f22('0x16')]['x']&&_0x5cb08b[_0x4f22('0xe4')]+0x3>=this[_0x4f22('0x16')]['x'])||_0x219456[0x0];}}}),this[_0x4f22('0xa4')][_0x4f22('0x65')](_0x4f22('0xd5')));}),this['on'](_0x4f22('0x67'),(_0x200318,_0x262213,_0x27259a,_0x475618)=>{this['activeView']=_0x27259a?this[_0x4f22('0xb2')](_0x27259a):null,this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x7c')](()=>{const _0x68459e=this[_0x4f22('0x6c')][_0x4f22('0xb7')];_0x475618&&(_0x475618[_0x4f22('0x120')][_0x4f22('0xc0')]?_0x68459e[_0x4f22('0x1f')][_0x4f22('0x7c')](_0x5ebd04=>{_0x5ebd04[_0x4f22('0x110')](_0x4f22('0x10e'),_0x68459e['view'][_0x4f22('0x106')]['getRoot'](_0x475618[_0x4f22('0x12')]));}):_0x68459e[_0x4f22('0x9b')](_0x4f22('0x68')+_0x475618['id'])),_0x27259a&&(_0x27259a[_0x4f22('0x120')]['isOnRoot']?_0x68459e['view'][_0x4f22('0x7c')](_0x46ca9e=>{_0x46ca9e[_0x4f22('0xfe')](_0x4f22('0x10e'),_0x68459e[_0x4f22('0x1f')][_0x4f22('0x106')]['getRoot'](_0x27259a[_0x4f22('0x12')]));}):_0x68459e[_0x4f22('0x9b')]('revision:'+_0x27259a['id']));});}),this[_0x4f22('0xbc')](this[_0x4f22('0x6c')][_0x4f22('0xb7')]['view'][_0x4f22('0x106')],_0x4f22('0xa8'),(_0x2d11af,_0x1c0820)=>{if(this[_0x4f22('0x10f')])return;const _0x392171=this[_0x4f22('0xb4')](_0x1c0820[_0x4f22('0x8c')]),_0x58e69c=this[_0x4f22('0x22')][_0x4f22('0x10c')](_0x392171);_0x58e69c?(this[_0x4f22('0x16')]={'x':_0x1c0820[_0x4f22('0x59')]['x'],'y':_0x1c0820[_0x4f22('0x59')]['y']},this['activeView']=this[_0x4f22('0xb2')](_0x58e69c)):(this[_0x4f22('0x16')]=null,this[_0x4f22('0x62')]=null);}),this[_0x4f22('0xbc')](this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x106')],_0x4f22('0x3f'),(_0x5daa67,_0x7c1602)=>{const _0x1ba3c0=this[_0x4f22('0xb4')](_0x7c1602[_0x4f22('0x8c')]),_0x27c96c=this['_changeIdToChange']['get'](_0x1ba3c0);_0x27c96c?(this[_0x4f22('0x16')]={'x':_0x7c1602[_0x4f22('0x59')]['x'],'y':_0x7c1602[_0x4f22('0x59')]['y']},_0x27c96c===this[_0x4f22('0x10f')]?this['_balloon']['updatePosition']():this[_0x4f22('0x10f')]=_0x27c96c):(this[_0x4f22('0x16')]=null,this[_0x4f22('0x10f')]=null);});}[_0x4f22('0xb4')](_0x2188a8){do{const _0x28a4aa=_0x2188a8[_0x4f22('0x7f')](_0x4f22('0x41'));if(_0x28a4aa)return _0x28a4aa;_0x2188a8=_0x2188a8[_0x4f22('0x21')];}while(_0x2188a8);return null;}[_0x4f22('0x8f')](){this['editor'][_0x4f22('0xe6')][_0x4f22('0x7c')](_0x4ee7b0=>{for(const _0x1c1b17 of this[_0x4f22('0x6c')]['model'][_0x4f22('0x14')])_0x4ee7b0[_0x4f22('0xb0')](_0x1c1b17);});}}function Z(_0x1f8614,_0x47352e){return(_0x5bfb10,_0xedceb4,_0x5258dd)=>{if(!_0x5258dd[_0x4f22('0x124')]['test'](_0xedceb4['markerRange'],_0x5bfb10[_0x4f22('0xa5')]))return;const _0xf07e36=_0xedceb4[_0x4f22('0x36')][_0x4f22('0xd8')](),_0x2cd068=_0xedceb4['markerRange'][_0x4f22('0xa0')],_0x20eebf=_0x1f8614[_0x4f22('0xe6')][_0x4f22('0x104')];let _0x1a8885=null,_0x5a6777=null,_0x597c81=!0x1,_0x1a1008=!0x1;for(const _0x38efcc of _0xf07e36){const _0x5a35bc=_0x38efcc[_0x4f22('0x9d')];_0x597c81=_0x597c81||_0x20eebf[_0x4f22('0xfd')](_0x5a35bc);const _0x3924a2=_0x5258dd[_0x4f22('0xa2')][_0x4f22('0xfa')](_0x5a35bc);if(_0x3924a2&&_0x3924a2[_0x4f22('0x86')](_0x4f22('0x99')))return;_0x4f22('0xad')==_0x38efcc[_0x4f22('0x43')]&&(_0x20eebf[_0x4f22('0x6d')](_0x5a35bc)&&!_0x20eebf['isLimit'](_0x5a35bc)&&(_0x5a35bc[_0x4f22('0x46')]||_0x2cd068[_0x4f22('0xcd')]?_0x1a8885&&_0x1a8885[_0x4f22('0x21')]==_0x5a35bc||(_0x1a8885=_0x5a35bc,_0x46f242(_0x38efcc['previousPosition']),_0x1a1008=!0x0):_0x5a6777=_0x5a6777||_0x38efcc[_0x4f22('0x73')]));}function _0x46f242(_0x141311){const _0x578ab6=_0x5258dd[_0x4f22('0xa2')][_0x4f22('0xbb')](_0x141311),_0x3b3e3b=_0x5258dd[_0x4f22('0x118')]['createUIElement'](_0x4f22('0x49'),{'class':_0x4f22('0x28')+_0x47352e});_0x5258dd[_0x4f22('0x118')][_0x4f22('0x50')](_0x578ab6,_0x3b3e3b),_0x5258dd['mapper'][_0x4f22('0x54')](_0x3b3e3b,_0xedceb4[_0x4f22('0x6f')]);}_0x597c81||_0x1a1008||!_0x5a6777||_0x46f242(_0x5a6777);};}export class RestoreRevisionCommand extends _0x35688b{constructor(_0xf403fc){super(_0xf403fc);const _0x2925c4=_0xf403fc[_0x4f22('0xc1')]['get'](d);this['affectsData']=!0x1,this[_0x4f22('0xbc')](_0x2925c4,_0x4f22('0x98'),()=>this[_0x4f22('0x101')]()),this['listenTo'](_0x2925c4,_0x4f22('0x70'),()=>this[_0x4f22('0x101')]());}[_0x4f22('0xf3')](){const _0x50c39a=this[_0x4f22('0x6c')],_0x36b7a1=_0x50c39a[_0x4f22('0xc1')]['get'](d),_0xd4d6ec=_0x36b7a1[_0x4f22('0xea')]?_0x36b7a1[_0x4f22('0xce')][_0x4f22('0xde')]:null;_0x50c39a[_0x4f22('0x19')]['get'](_0x4f22('0xf8'))['restoreRevisionCallback'](_0xd4d6ec);}[_0x4f22('0x101')](){const {isReady:_0x26703d,isEnabled:_0x598af4}=this[_0x4f22('0x6c')][_0x4f22('0xc1')][_0x4f22('0x10c')](d);this[_0x4f22('0x8a')]=_0x26703d&&_0x598af4;}}export class ShowChangeCommand extends _0x35688b{constructor(_0x486481,{direction:_0x2d65b9}){super(_0x486481);const _0x5a308d=_0x486481[_0x4f22('0xc1')][_0x4f22('0x10c')](d);this['affectsData']=!0x1,this[_0x4f22('0xff')]=_0x4f22('0x2e')===_0x2d65b9?0x1:-0x1,this['listenTo'](_0x5a308d,_0x4f22('0x98'),()=>this[_0x4f22('0x101')]()),this[_0x4f22('0xbc')](_0x5a308d,_0x4f22('0x70'),()=>this[_0x4f22('0x101')]());}[_0x4f22('0xf3')](){const _0x2b3b29=this[_0x4f22('0x6c')],_0x555b70=_0x2b3b29[_0x4f22('0xc1')][_0x4f22('0x10c')](d),{isNavigationMode:_0x1f7ac1,currentChangeNumber:_0xfe4bcc}=_0x555b70;let _0x17b714;if(_0x555b70['activeChange']=_0x1f7ac1?_0x555b70[_0x4f22('0xce')]['changes'][_0x4f22('0x10c')](_0xfe4bcc+this['_step']):_0x555b70[_0x4f22('0xce')][_0x4f22('0xda')][_0x4f22('0xe9')],_0x555b70[_0x4f22('0x10f')][_0x4f22('0x120')][_0x4f22('0xc0')])_0x17b714=_0x2b3b29[_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0xae')](_0x555b70[_0x4f22('0x10f')][_0x4f22('0x12')]);else{const _0x2c89f6=_0x2b3b29[_0x4f22('0xe6')][_0x4f22('0x14')][_0x4f22('0x10c')](_0x4f22('0x68')+_0x555b70[_0x4f22('0x10f')]['id']);_0x17b714=_0x313195(_0x2b3b29['editing'],_0x2c89f6);}_0x3c451b({'target':_0x17b714,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x59fb4c,currentChangeNumber:_0x2544c7,numberOfChanges:_0x3f129b,isReady:_0x1bda5f,isEnabled:_0x34e593}=this[_0x4f22('0x6c')][_0x4f22('0xc1')][_0x4f22('0x10c')](d);this[_0x4f22('0x8a')]=!!(_0x34e593&&_0x1bda5f&&_0x3f129b)&&(!_0x59fb4c||(0x1===this[_0x4f22('0xff')]?_0x2544c7<_0x3f129b-0x1:_0x2544c7>0x0));}}
23
+ const _0x25a2=['getIndex','toViewRange','elementStart','ck-suggestion-marker--active','distance','ck-revision-history-root-','activeView','_step','element','_markMarkers','init','RevisionsRepository','attachChange','startIndex','insertion','change','_makeTape','compare','removeAttribute','uiElement','destroy','delete','newRevisionId','deletion','previousPosition','nodeAfter','resolve','ck-revision-history-root-add','modelRange','addHighlight','_cleanMarkers','getClientRects','updatePosition','isAtStart','range','revision-suggestion:','from','_getChangeFromId','userId','_markInsertions','indexOf','target','isRemoved','_processTape','remove','forEach','span','authors','abs','markerRange','unshift','rootName','getCustomProperty','getRevisionData','revision:','config','mouseover','getRootNames','selection','suggestion:','_changeIdToChange','return','low','useFillerType','item','concat','WidgetToolbarRepository','splice','revision','markerNameToElements','sort','toViewElement','processor','has','toViewPosition','isRemoveSuggestion','locale','_setConversion','parent','for','unbindElementFromMarkerName','_markMismatchedRemovedTags','find','enqueueChange','index','isAddSuggestion','execute','high','ck-suggestion-preview-marker-','isCollapsed','isEnabled','-new','isContent','_balloon','_getViewForChange','attributesBefore','children','flat','collaboration.channelId','deletions','_appendChild','detachRoot','toData','shift','_changeView','getDomRoot','change:activeView','reconvertMarker','_cleanUp','ck-suggestion-preview-marker','loadRevisionData','_removeUnsupportedChanges','showStack','isSuggestion','upcast','_fixObsoleteTags','isAfter','softBreak','top','endIndex','revision-suggestion','getRevisionRootsAttributes','_findChangeIdFromDomTarget','addClass','editingDowncast','wrap','isInline','restoreRevisionCallback','removeMarker','type','change:isEnabled','viewItem','plugins','isBefore','comment','revision-viewer','mapViewToDom','length','markerToHighlight','left','_makeModelFromViewString','model','getWalker','editing','name','isAttached','diff','schema','right','next','getAttribute','setAttribute','split','diffData','elementToAttribute','string','RevisionViewer','then','createRangeIn','ck-editor__editable__overlay','isEqual','parse','data','revision-comment:','isAdded','keys','_removeRevisionMarkers','set','_getRevisionsRange','isNavigationMode','bindElementToMarker','vid_start','removeMarker:revision-suggestion','end','includes','text','markersEnd','downcastDispatcher','dataToMarker','dataDowncast','_sortAndFilterDiffChanges','change:isReady','document','slice','ck-suggestion-marker','createPositionFromPath','observeMarkers','done','push','createRange','_setChanges','ck-revision-history-root--active','adapter','default','showNextChange','isIncorrect','first','writer','map','catch','vid_end','ck-suggestion-marker-merge','insert','level','consumable','getRevision','addRevision','addMarker:revision','code','changes','side','createUIElement','add','editor','view','isLimit','clear','hasClass','_data','markerName','refresh','addMarker:revision-suggestion:deletion','getRoot','_getDiff','isAtEnd','createRevision','_joinTapes','highest','start','getAttributes','domEvent','markers','isOnRoot','merge','data-change-id','isBlock','repository','removeClass','conversion','currentChangeNumber','showPreviousChange','nextPosition','element:pre','revision-end','data-revision-','test','elementEnd','domConverter','offsetSize','_refreshStartEndIndex','object','insertions','addRevisionData','oldRevisionId','mapper','activeChange','revisionHistory','_revisions','toModel','_activeViewTarget','createAttributeElement','markersStart','_setDistance','pairId','addMarker:revision-suggestion:insertion','filter','attributes','listenTo','roots','vid','revisionHistoryAttachChange','enableReadOnlyMode','backward','consume','get','affectsData','_update','attributesAfter','error','change:activeChange','maxOffset','commands','_markSuggestions','POSITIVE_INFINITY','_threeWayMerge','bind','revisionHistoryLabel','ck-suggestion-marker-','isReady','pluginName','startsWith','forward','removeMarker:revision','forceDisabled','hasAttribute','attribute:vid','numberOfChanges','marked','_getViewObj','_initInteractions','restoreRevision'];(function(_0x2d2fc1,_0x25a2ef){const _0x286a14=function(_0x166e7e){while(--_0x166e7e){_0x2d2fc1['push'](_0x2d2fc1['shift']());}};_0x286a14(++_0x25a2ef);}(_0x25a2,0x121));const _0x286a=function(_0x2d2fc1,_0x25a2ef){_0x2d2fc1=_0x2d2fc1-0x0;let _0x286a14=_0x25a2[_0x2d2fc1];return _0x286a14;};import{Plugin as _0x444a86,Command as _0x33b267}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2f86b7}from'ckeditor5/src/utils';import{ContextualBalloon as _0x385299}from'ckeditor5/src/ui';import{DocumentFragment as _0x17a945,Element as _0x2875e4,Text as _0x17a10a,ViewDocumentFragment as _0x1cc2d7,ViewText as _0x3e7a5f,ViewElement as _0x2d860d,ViewContainerElement as _0x3faf5a,ViewAttributeElement as _0x173d3e,ViewEmptyElement as _0x3cdeb7,ViewRawElement as _0x3584ec,ViewUIElement as _0x4563c5}from'ckeditor5/src/engine';import{Users as _0x5df280,getMarkerDomElement as _0xd62a0c}from'ckeditor5-collaboration/src/collaboration-core';import _0x191933 from'./ui/revisionviewer/changedetailsview';import _0x26d6f8 from'./revisionsrepository';import _0x229602 from'./changeitem';import{default as _0x5b46bd}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4382c7}from'lodash-es';const tt={'c':_0x3faf5a,'a':_0x173d3e,'e':_0x3cdeb7,'r':_0x3584ec,'u':_0x4563c5};export default class d extends _0x444a86{static get[_0x286a('0x0')](){return _0x286a('0xa8');}static get['requires'](){return[_0x5df280,_0x385299,_0x26d6f8];}constructor(_0x6b2f98){super(_0x6b2f98),this['repository']=this[_0x286a('0xe1')]['plugins'][_0x286a('0x11e')](_0x286a('0x17')),this[_0x286a('0xb3')](_0x286a('0x10b'),null),this[_0x286a('0xb3')]('activeView',null),this['_activeViewTarget']=null,this[_0x286a('0xb3')](_0x286a('0x9e'),null),this[_0x286a('0xb3')]('isReady',!0x1),this[_0x286a('0xb3')](_0x286a('0x66'),!0x0),this['on'](_0x286a('0x8e'),(_0x515bd1,_0x58a8b9,_0x2b24ce)=>{this[_0x286a('0x10b')]=null,this[_0x286a('0x12')]=null,this['editor'][_0x286a('0x9b')][_0x286a('0xe2')][_0x286a('0x1b')](_0x102d4e=>{for(const _0x428229 of this[_0x286a('0xe1')]['editing'][_0x286a('0xe2')][_0x286a('0xc2')][_0x286a('0x118')])_0x2b24ce?_0x102d4e[_0x286a('0xf9')](_0x286a('0xab'),_0x428229):_0x102d4e[_0x286a('0x87')]('ck-editor__editable__overlay',_0x428229);});}),this[_0x286a('0x129')](_0x286a('0xb5'))['to'](this,_0x286a('0x10b'),_0x918e99=>null!==_0x918e99),this[_0x286a('0x129')](_0x286a('0xfb'))['to'](this,_0x286a('0x12c'),this,'diff',this,_0x286a('0x10b'),(_0x132481,_0x62b4d8,_0x582869)=>_0x132481&&_0x582869?_0x62b4d8[_0x286a('0xdd')]['getIndex'](_0x582869):0x0),this[_0x286a('0x129')](_0x286a('0x7'))['to'](this,'isReady',this,_0x286a('0x9e'),(_0x233663,_0x23738d)=>_0x233663?_0x23738d[_0x286a('0xdd')]['length']:0x0),this['_changeView']=null,this[_0x286a('0x48')]=new Map(),this[_0x286a('0xcc')]=null,this[_0x286a('0x69')]=this[_0x286a('0xe1')][_0x286a('0x90')]['get'](_0x385299);}[_0x286a('0x16')](){const _0x1e69d2=this[_0x286a('0xe1')],_0x1c9250=new ShowChangeCommand(_0x1e69d2,{'direction':_0x286a('0x11c')}),_0x261a1e=new ShowChangeCommand(_0x1e69d2,{'direction':_0x286a('0x2')});(_0x1e69d2['commands'][_0x286a('0xe0')](_0x286a('0xfc'),_0x1c9250),_0x1e69d2[_0x286a('0x125')][_0x286a('0xe0')](_0x286a('0xce'),_0x261a1e),_0x1e69d2[_0x286a('0x125')][_0x286a('0xe0')](_0x286a('0xb'),new RestoreRevisionCommand(_0x1e69d2)),this['on']('change:numberOfChanges',()=>{_0x1c9250[_0x286a('0xe8')](),_0x261a1e[_0x286a('0xe8')]();}),this[_0x286a('0x59')](),this['_initInteractions'](),_0x1e69d2[_0x286a('0x11b')](_0x286a('0x93')),_0x1e69d2[_0x286a('0x90')][_0x286a('0x55')](_0x286a('0x4e')))&&_0x1e69d2['plugins'][_0x286a('0x11e')](_0x286a('0x4e'))[_0x286a('0x4')]('revision-viewer');}async[_0x286a('0x41')](_0x1c899a){await this[_0x286a('0x7a')](_0x1c899a);const _0x29ee12={};for(const _0x30188b in _0x1c899a[_0x286a('0xa5')]){if(_0x1c899a[_0x286a('0xa5')][_0x30188b][_0x286a('0x18')]&&!_0x1c899a[_0x286a('0xa5')][_0x30188b][_0x286a('0x18')][_0x286a('0x9d')])continue;const _0x4e5edc=this['_removeRevisionMarkers'](JSON[_0x286a('0xad')](_0x1c899a[_0x286a('0xa5')][_0x30188b][_0x286a('0x107')])),_0x297706=this[_0x286a('0xe1')][_0x286a('0x9b')][_0x286a('0xe2')][_0x286a('0xc2')],_0x468d1c=new _0x1cc2d7(_0x297706,_0x4e5edc[_0x286a('0xd2')](_0x268f84=>this[_0x286a('0x9')](_0x268f84)));this['editor']['data'][_0x286a('0x54')][_0x286a('0x4b')](_0x286a('0x8')),_0x29ee12[_0x30188b]=this[_0x286a('0xe1')][_0x286a('0xae')][_0x286a('0x54')][_0x286a('0x72')](_0x468d1c),this['editor']['data'][_0x286a('0x54')][_0x286a('0x4b')](_0x286a('0xcd'));}return _0x29ee12;}async[_0x286a('0x85')](_0x22eeb1){await this[_0x286a('0x7a')](_0x22eeb1);const _0x1393ca={};for(const _0xe1b644 in _0x22eeb1[_0x286a('0xa5')])_0x22eeb1[_0x286a('0xa5')][_0xe1b644][_0x286a('0x18')]&&!_0x22eeb1['diffData'][_0xe1b644]['attachChange']['isAttached']||(_0x1393ca[_0xe1b644]=_0x22eeb1[_0x286a('0xa5')][_0xe1b644][_0x286a('0x121')]||{});return _0x1393ca;}['_removeRevisionMarkers'](_0xb9880c){return(_0xb9880c=_0xb9880c[_0x286a('0x115')](_0x4d45ad=>!_0x4d45ad[_0x286a('0x9c')]||'revision-start'!==_0x4d45ad[_0x286a('0x9c')]&&_0x286a('0xff')!==_0x4d45ad[_0x286a('0x9c')]))[_0x286a('0x39')](_0x12c5b7=>{_0x286a('0xa7')!=typeof _0x12c5b7&&(_0x12c5b7[_0x286a('0x6c')]=this[_0x286a('0xb2')](_0x12c5b7[_0x286a('0x6c')]),_0x12c5b7['attributes']=_0x12c5b7['attributes'][_0x286a('0x115')](_0x19efde=>!_0x19efde[0x0][_0x286a('0x1')](_0x286a('0x100'))));}),_0xb9880c;}async[_0x286a('0x1d')](_0x5efbe5,_0x51e672,_0x2a35e9=!0x1){if(!this['isEnabled'])return;const _0x5ab8ef=this[_0x286a('0x9e')],_0x2aa81b=this[_0x286a('0xf8')],_0x30f988='string'==typeof _0x5efbe5?_0x2aa81b[_0x286a('0xd9')](_0x5efbe5):_0x5efbe5,_0x2a2ce2='string'==typeof _0x51e672?_0x2aa81b['getRevision'](_0x51e672):_0x51e672,_0x2a8381=_0x30f988['id'],_0x50b16b=_0x2a2ce2?_0x2a2ce2['id']:null;if(!_0x2a35e9&&this[_0x286a('0x9e')]&&this[_0x286a('0x9e')][_0x286a('0x22')]===_0x2a8381&&this['diff'][_0x286a('0x109')]===_0x50b16b)return Promise[_0x286a('0x26')]();this[_0x286a('0x12c')]=!0x1,this[_0x286a('0x12')]=null,this[_0x286a('0x10b')]=null,this['diff']=new _0x5b46bd(_0x2a8381,_0x50b16b);const _0x34dfb0=this[_0x286a('0xb4')](_0x30f988,_0x2a2ce2,!0x0)[_0x286a('0xd2')](_0x425989=>this[_0x286a('0x7a')](_0x425989));return _0x34dfb0[_0x286a('0xc8')](new Promise(_0x58afd7=>{setTimeout(_0x58afd7,0x14);})),Promise['all'](_0x34dfb0)[_0x286a('0xa9')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x18b46f=this[_0x286a('0xeb')](_0x2a8381,_0x50b16b);for(const _0x402b57 of _0x18b46f[_0x286a('0xdd')])this['_changeIdToChange'][_0x286a('0xb3')](_0x402b57['id'],_0x402b57);this[_0x286a('0xe1')][_0x286a('0x99')]['enqueueChange']({'isUndoable':!0x1},_0x1a6d77=>{for(const _0x3b0b36 of this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0xc2')]['getRootNames']())_0x1a6d77[_0x286a('0x71')](_0x3b0b36);for(const _0x4d986a of Object[_0x286a('0xb1')](_0x18b46f[_0x286a('0x99')])){const _0x1ea63d=_0x1a6d77['addRoot'](_0x4d986a);for(const _0x1b5aa8 of Object[_0x286a('0xb1')](_0x18b46f[_0x286a('0x116')][_0x4d986a]))_0x1a6d77[_0x286a('0xa3')](_0x1b5aa8,_0x18b46f[_0x286a('0x116')][_0x4d986a][_0x1b5aa8],_0x1ea63d);_0x1a6d77[_0x286a('0xd6')](_0x18b46f[_0x286a('0x99')][_0x4d986a],_0x1ea63d,0x0);}}),this[_0x286a('0x9e')][_0x286a('0xca')](this[_0x286a('0xc0')](_0x18b46f[_0x286a('0xdd')])),this[_0x286a('0x12c')]=!0x0;})[_0x286a('0xd3')](_0x35a3e0=>{console[_0x286a('0x122')](_0x35a3e0),this['_cleanUp'](),_0x5ab8ef&&(this[_0x286a('0x9e')]=_0x5ab8ef),this[_0x286a('0x12c')]=!0x0;});}[_0x286a('0x108')](_0x893a34,_0x3d9bad){const _0x1cbdd5=this[_0x286a('0xf8')][_0x286a('0xed')](_0x893a34);return _0x1cbdd5['on']('_update',(_0x4fd62d,_0x1bdafc,_0x1bb7ac)=>_0x3d9bad(_0x1bdafc,_0x1bb7ac,_0x1cbdd5)),this[_0x286a('0xf8')][_0x286a('0xda')](_0x1cbdd5),_0x1cbdd5;}[_0x286a('0x7a')](_0x2d8927){if(!_0x2d8927||_0x2d8927[_0x286a('0xa5')])return Promise[_0x286a('0x26')]();{const _0x90675d=this[_0x286a('0xe1')][_0x286a('0x43')]['get'](_0x286a('0x6e'));return this[_0x286a('0xcc')][_0x286a('0xd9')]({'channelId':_0x90675d,'revisionId':_0x2d8927['id']})['then'](_0x99fde7=>{_0x2d8927[_0x286a('0x120')]({'diffData':_0x99fde7[_0x286a('0xa5')]},!0x0);});}}[_0x286a('0x78')](){this[_0x286a('0x10b')]=null,this[_0x286a('0x2a')](),this[_0x286a('0x74')]&&this[_0x286a('0x74')][_0x286a('0x20')](),this[_0x286a('0x74')]=null,this['_changeIdToChange'][_0x286a('0xe4')](),this['editor'][_0x286a('0x99')][_0x286a('0x5f')]({'isUndoable':!0x1},_0xf5a236=>{for(const _0x32b290 of this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0xc2')][_0x286a('0x45')]())_0xf5a236[_0x286a('0x71')](_0x32b290);});}[_0x286a('0xc0')](_0x1b296d){const _0x426150=[],_0x4497c8=new Map();for(const _0x3afc2d of this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0xc2')][_0x286a('0x45')]()){const _0x4ad8a6=this[_0x286a('0xe1')][_0x286a('0x9b')]['view']['getDomRoot'](_0x3afc2d);if(!_0x4ad8a6)continue;const _0x1e2e03=_0x4ad8a6[_0x286a('0x2b')]()[_0x286a('0x4c')](0x0);_0x1e2e03&&(_0x426150['push'](_0x3afc2d),_0x4497c8[_0x286a('0xb3')](_0x3afc2d,_0x1e2e03));}return _0x426150[_0x286a('0x52')]((_0x4276fe,_0x4c695f)=>{const _0x4c2e30=_0x4497c8[_0x286a('0x11e')](_0x4276fe),_0x47f7b6=_0x4497c8[_0x286a('0x11e')](_0x4c695f);return _0x4c2e30['y']-_0x47f7b6['y']||_0x4c2e30['x']-_0x47f7b6['x'];}),(_0x1b296d=_0x1b296d[_0x286a('0x115')](_0x6d9f07=>_0x426150[_0x286a('0xba')](_0x6d9f07[_0x286a('0x3f')])))[_0x286a('0x52')]((_0x1ef09a,_0x27eb54)=>_0x426150[_0x286a('0x34')](_0x1ef09a[_0x286a('0x3f')])-_0x426150[_0x286a('0x34')](_0x27eb54[_0x286a('0x3f')])),_0x1b296d;}[_0x286a('0x1c')](_0x454cee){const _0x58130e=Array[_0x286a('0x30')](_0x454cee[_0x286a('0xf3')])['filter'](([_0x59fb7d,_0x5a76eb])=>_0x59fb7d[_0x286a('0x1')](_0x286a('0x42'))&&!_0x5a76eb[_0x286a('0x65')]),_0xd9888d=Array['from'](this['editor']['model'][_0x286a('0xaa')](_0x454cee)[_0x286a('0x9a')]({'singleCharacters':!0x0}));if(0x0!=_0x58130e[_0x286a('0x95')])for(const _0x1b23b8 of _0xd9888d){const [_0x292a96,_0x5709f9]=_0x58130e[0x0],[,_0x23ea39,_0x146f13]=_0x292a96[_0x286a('0xa4')](':');if(_0x5709f9[_0x286a('0xb9')][_0x286a('0xac')](_0x1b23b8[_0x286a('0xfd')])&&_0x58130e[_0x286a('0x73')](),(_0x1b23b8['previousPosition'][_0x286a('0xac')](_0x5709f9[_0x286a('0xf0')])||_0x1b23b8[_0x286a('0x24')][_0x286a('0x80')](_0x5709f9[_0x286a('0xf0')]))&&(_0x286a('0x1a')==_0x23ea39?_0x1b23b8[_0x286a('0xb0')]={'userId':_0x146f13}:_0x286a('0x23')==_0x23ea39&&(_0x1b23b8[_0x286a('0x36')]={'userId':_0x146f13})),0x0==_0x58130e[_0x286a('0x95')])break;}return _0xd9888d;}[_0x286a('0x105')](_0x2465db){const _0x38b85c=new Map();for(let _0x393066=0x0;_0x393066<_0x2465db['length'];_0x393066++)'text'===_0x2465db[_0x393066][_0x286a('0x8d')]?(_0x2465db[_0x393066][_0x286a('0x4c')][_0x286a('0x19')]=_0x393066,_0x2465db[_0x393066][_0x286a('0x4c')]['endIndex']=_0x393066):(_0x286a('0xe')===_0x2465db[_0x393066][_0x286a('0x8d')]?_0x2465db[_0x393066][_0x286a('0x4c')]['startIndex']=_0x393066:'elementEnd'===_0x2465db[_0x393066][_0x286a('0x8d')]&&(_0x2465db[_0x393066][_0x286a('0x4c')][_0x286a('0x83')]=_0x393066),_0x38b85c[_0x286a('0xb3')](_0x2465db[_0x393066]['id'],_0x393066));for(const _0x313d4b of _0x38b85c['values']())_0x286a('0xe')===_0x2465db[_0x313d4b][_0x286a('0x8d')]?_0x2465db[_0x313d4b][_0x286a('0x4c')]['endIndex']=_0x38b85c[_0x286a('0x11e')](_0x2465db[_0x313d4b]['pairId']):_0x286a('0x102')===_0x2465db[_0x313d4b][_0x286a('0x8d')]&&(_0x2465db[_0x313d4b][_0x286a('0x4c')][_0x286a('0x19')]=_0x38b85c[_0x286a('0x11e')](_0x2465db[_0x313d4b][_0x286a('0x113')]));}[_0x286a('0x37')](_0x1c4026){for(let _0x41aec9=0x0;_0x41aec9<_0x1c4026[_0x286a('0x95')];_0x41aec9++){if(_0x286a('0xe')===_0x1c4026[_0x41aec9]['type'])_0x1c4026[_0x41aec9][_0x286a('0x4c')]['startIndex']=_0x41aec9;else{if('elementEnd'===_0x1c4026[_0x41aec9]['type']){_0x1c4026[_0x41aec9][_0x286a('0x4c')]['endIndex']=_0x41aec9;const _0x489e02=_0x1c4026[_0x41aec9][_0x286a('0x4c')][_0x286a('0x19')];_0x1c4026[_0x489e02]['pairId']=_0x1c4026[_0x41aec9]['id'],_0x1c4026[_0x41aec9][_0x286a('0x113')]=_0x1c4026[_0x489e02]['id'];}else _0x1c4026[_0x41aec9]['item']['startIndex']=_0x41aec9,_0x1c4026[_0x41aec9][_0x286a('0x4c')][_0x286a('0x83')]=_0x41aec9,_0x1c4026[_0x41aec9][_0x286a('0x113')]=null;}_0x1c4026[_0x41aec9][_0x286a('0x111')]||(_0x1c4026[_0x41aec9][_0x286a('0x111')]=[],_0x1c4026[_0x41aec9]['markersEnd']=[]);}}[_0x286a('0x33')](_0x1c48be,_0x2a5c3a){const _0x346f58=_0x1c48be[_0x286a('0x115')](_0x4b3e38=>!_0x4b3e38[_0x286a('0xb0')]);for(let _0x4e497b=0x0;_0x4e497b<_0x2a5c3a[_0x286a('0x95')];_0x4e497b++)_0x2a5c3a[_0x4e497b][_0x286a('0xb0')]&&(_0x346f58[_0x4e497b][_0x286a('0xb0')]=_0x2a5c3a[_0x4e497b]['isAdded']);}[_0x286a('0x98')](_0x1ad315){const _0x29d081=JSON[_0x286a('0xad')](_0x1ad315),_0x5ba547=this[_0x286a('0xe1')]['editing'][_0x286a('0xe2')][_0x286a('0xc2')],_0x422611=new _0x1cc2d7(_0x5ba547,_0x29d081[_0x286a('0xd2')](_0x4b3ae3=>this[_0x286a('0x9')](_0x4b3ae3)));return this[_0x286a('0xe1')][_0x286a('0xae')][_0x286a('0x10e')](_0x422611);}[_0x286a('0x9')](_0x5e7550){const _0x4efda3=this[_0x286a('0xe1')][_0x286a('0x9b')]['view']['document'];if(_0x286a('0xa7')==typeof _0x5e7550)return new _0x3e7a5f(_0x4efda3,_0x5e7550);{const _0x13c7aa=_0x5e7550[_0x286a('0x6c')]['map'](_0x39dce8=>this[_0x286a('0x9')](_0x39dce8));return new(tt[_0x5e7550[(_0x286a('0x8d'))]]||_0x2d860d)(_0x4efda3,_0x5e7550[_0x286a('0x9c')],_0x5e7550['attributes'],_0x13c7aa);}}[_0x286a('0xeb')](_0x3b20d1,_0x43e34c=null){const _0x1811fe=this['repository']['getRevision'](_0x3b20d1),_0x2af899=_0x43e34c?this[_0x286a('0xf8')][_0x286a('0xd9')](_0x43e34c):null,_0x183a93=this[_0x286a('0xb4')](_0x1811fe,_0x2af899),_0x1515d1=_0x183a93[_0x183a93['length']-0x1],_0x4bc2ee=new Map(),_0x294706={'model':{},'attributes':{},'changes':[]},_0xa1d502=new Set(),_0x50a3fa=new Map();for(let _0x29ff77=_0x183a93[_0x286a('0x95')]-0x1;_0x29ff77>=0x0;_0x29ff77--){const _0x5031ff=_0x183a93[_0x29ff77];for(const _0x20ed39 of Object[_0x286a('0xb1')](_0x5031ff[_0x286a('0xa5')]))if(_0x5031ff[_0x286a('0xa5')][_0x20ed39]['attachChange']){const _0x1f60b1=_0x5031ff[_0x286a('0xa5')][_0x20ed39][_0x286a('0x18')];_0x1f60b1['isAttached']?(_0xa1d502[_0x286a('0xe0')](_0x20ed39),_0x50a3fa[_0x286a('0x55')](_0x20ed39)&&_0x50a3fa[_0x286a('0x11e')](_0x20ed39)[_0x286a('0x32')]==_0x1f60b1[_0x286a('0x32')]?_0x50a3fa['delete'](_0x20ed39):_0x50a3fa['set'](_0x20ed39,_0x1f60b1)):_0x50a3fa[_0x286a('0x55')](_0x20ed39)?(_0xa1d502[_0x286a('0x21')](_0x20ed39),_0x50a3fa['delete'](_0x20ed39)):(_0xa1d502[_0x286a('0xe0')](_0x20ed39),_0x50a3fa[_0x286a('0xb3')](_0x20ed39,_0x1f60b1));}else _0xa1d502[_0x286a('0xe0')](_0x20ed39);}for(const _0x1b5b2a of _0xa1d502){const _0x233e48=_0x50a3fa[_0x286a('0x55')](_0x1b5b2a)&&!_0x50a3fa[_0x286a('0x11e')](_0x1b5b2a)['isAttached'];let _0x324bc6=_0x233e48?_0x183a93[_0x286a('0x95')]-0x1:0x0;const _0x17d545=_0x233e48?-0x1:0x1;for(;_0x183a93[_0x324bc6];){const _0x27e671=_0x183a93[_0x324bc6];if(_0x27e671[_0x286a('0xa5')][_0x1b5b2a]){const _0x54d295=_0x233e48?_0x27e671[_0x286a('0xa5')][_0x1b5b2a][_0x286a('0x6b')]:_0x27e671[_0x286a('0xa5')][_0x1b5b2a][_0x286a('0x121')];_0x294706[_0x286a('0x116')][_0x1b5b2a]=_0x54d295?_0x4382c7(_0x54d295):{};break;}_0x324bc6+=_0x17d545;}}for(const _0x508afc of _0x183a93){_0x508afc['model']={};for(const _0xed10d of _0x508afc[_0x286a('0x3b')])_0x4bc2ee[_0x286a('0xb3')](_0xed10d['id'],_0xed10d);for(const _0x2162e8 of _0xa1d502){const _0x9ff73a=_0x508afc[_0x286a('0xa5')][_0x2162e8]?_0x508afc['diffData'][_0x2162e8][_0x286a('0x107')]:'[]',_0x511f95=_0x508afc[_0x286a('0xa5')][_0x2162e8]?_0x508afc[_0x286a('0xa5')][_0x2162e8]['deletions']:'[]';_0x508afc[_0x286a('0x99')][_0x2162e8]={'insertions':this[_0x286a('0x98')](_0x9ff73a),'deletions':this[_0x286a('0x98')](_0x511f95)};}}for(const _0xa52acd of _0xa1d502){let _0x3ce889=null,_0x200667=0x0;const _0xaa0db4=new Map(Array[_0x286a('0x30')](_0x1811fe[_0x286a('0x99')][_0xa52acd][_0x286a('0x107')]['markers'])[_0x286a('0x115')](([_0x50d49c])=>!_0x50d49c[_0x286a('0x1')](_0x286a('0x42'))));let _0x478b2a=0x0;for(const _0x4b8b51 of _0x183a93){const _0x2fa8c2=this[_0x286a('0x1c')](_0x4b8b51['model'][_0xa52acd][_0x286a('0x107')]);_0x4b8b51==_0x1811fe?(_0x3ce889=_0x2fa8c2,_0x200667=_0x3ce889['length'],_0x3ce889['forEach'](_0x56209d=>{_0x56209d['id']=_0x478b2a++;}),this['_processTape'](_0x3ce889)):this[_0x286a('0x33')](_0x3ce889,_0x2fa8c2);const _0x27fa1e=_0x3ce889[_0x286a('0x115')](_0x18de3e=>!_0x18de3e['isAdded'])[_0x286a('0xd2')](_0x3bcfd5=>_0x3bcfd5['id']);let _0xe4144c=0x0;const _0x6843f7=this[_0x286a('0x1c')](_0x4b8b51['model'][_0xa52acd][_0x286a('0x6f')]);_0x6843f7[_0x286a('0x39')](_0x49e0c6=>{_0x49e0c6['isRemoved']?_0x49e0c6['id']=_0x200667++:_0x49e0c6['id']=_0x27fa1e[_0xe4144c++];}),this['_processTape'](_0x6843f7),this[_0x286a('0x112')](_0x3ce889,'isAdded'),this['_setDistance'](_0x6843f7,_0x286a('0x36')),_0x4b8b51==_0x1811fe&&this[_0x286a('0x15')](_0x3ce889,_0xaa0db4),_0x3ce889=this[_0x286a('0xee')](_0x3ce889,_0x6843f7),this['_refreshStartEndIndex'](_0x3ce889),this[_0x286a('0x112')](_0x3ce889,'isRemoved');}_0x3ce889=_0x3ce889[_0x286a('0x115')](_0x2a7f02=>!(_0x2a7f02['isAdded']&&_0x2a7f02['isRemoved']));const _0x43dbc8=new Map(_0x1515d1[_0x286a('0x99')][_0xa52acd][_0x286a('0x6f')][_0x286a('0xf3')]),_0x27ba26=new Set(_0xaa0db4['keys']());for(const _0x373e6f of _0x43dbc8[_0x286a('0xb1')]())_0x27ba26[_0x286a('0x21')](_0x373e6f);this[_0x286a('0x126')](_0x3ce889,_0x27ba26),this[_0x286a('0x7f')](_0x3ce889),_0x3ce889=this['_removeMissingPairs'](_0x3ce889),_0x3ce889=this[_0x286a('0x5d')](_0x3ce889),_0x3ce889=this[_0x286a('0x7b')](_0x3ce889);const {root:_0xd28e7,changes:_0x1afdaf}=this['_makeModelFromTape'](_0x3ce889,_0x4bc2ee,_0xa52acd);_0x294706['model'][_0xa52acd]=_0xd28e7;const _0x3d3276=_0x50a3fa[_0x286a('0x11e')](_0xa52acd);if(_0x3d3276){const _0x157aaa=_0x4bc2ee[_0x286a('0x11e')](_0x3d3276[_0x286a('0x32')]),_0x158bfa=new _0x229602({'author':_0x157aaa,'type':_0x3d3276[_0x286a('0x9d')]?_0x286a('0xe0'):_0x286a('0x38'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xa52acd});_0x1afdaf[_0x286a('0x3e')](_0x158bfa),_0x294706['attributes'][_0xa52acd]['revisionHistoryAttachChange']=_0x158bfa['id'];}_0x294706[_0x286a('0xdd')]=_0x294706[_0x286a('0xdd')][_0x286a('0x4d')](_0x1afdaf);}return _0x294706;}[_0x286a('0x15')](_0x583e87,_0x172e95){for(let _0x587859=0x0;_0x587859<_0x583e87[_0x286a('0x95')];_0x587859++)for(const [_0x4ee779,_0x598a67]of _0x172e95)_0x598a67[_0x286a('0xf0')][_0x286a('0xac')](_0x583e87[_0x587859][_0x286a('0x24')])&&_0x583e87[_0x587859][_0x286a('0x111')]['push'](_0x4ee779),_0x598a67['end'][_0x286a('0xac')](_0x583e87[_0x587859][_0x286a('0xfd')])&&_0x583e87[_0x587859][_0x286a('0xbc')]['push'](_0x4ee779);}[_0x286a('0xee')](_0x507089,_0x1f916d){let _0x5a08d9=[],_0x3d655b=0x0,_0x54050e=0x0;for(;_0x3d655b<_0x507089[_0x286a('0x95')]||_0x54050e<_0x1f916d['length'];){const _0x3b768c=_0x507089[_0x3d655b]||{},_0xa3cadf=_0x1f916d[_0x54050e]||{};if(_0x3b768c['id']==_0xa3cadf['id'])_0x3d655b++,_0x54050e++,_0x5a08d9['push'](_0x3b768c);else{if(_0xa3cadf[_0x286a('0x36')]&&_0x3b768c[_0x286a('0xb0')]){const {commonTape:_0x429b08,iEnd:_0x1ecaa4,jEnd:_0x3c65af}=this[_0x286a('0x128')](_0x507089,_0x3d655b,_0x1f916d,_0x54050e);_0x5a08d9=_0x5a08d9[_0x286a('0x4d')](_0x429b08),_0x3d655b=_0x1ecaa4,_0x54050e=_0x3c65af;}else _0xa3cadf[_0x286a('0x36')]?(_0x54050e++,_0x5a08d9[_0x286a('0xc8')](_0xa3cadf)):(_0x3d655b++,_0x5a08d9[_0x286a('0xc8')](_0x3b768c));}}return _0x5a08d9;}[_0x286a('0x126')](_0x476199,_0x432961){const _0x150836=[];for(let _0xcc362d=0x0;_0xcc362d<_0x476199['length'];_0xcc362d++){for(let _0x3434ab=0x0;_0x3434ab<_0x476199[_0xcc362d]['markersStart']['length'];_0x3434ab++){const _0x5d69c8=_0x476199[_0xcc362d]['markersStart'][_0x3434ab];if(!_0x432961[_0x286a('0x55')](_0x5d69c8))continue;const {group:_0x520594,type:_0x5b1d55,authorId:_0x3d9c17}=_0x26715c(_0x5d69c8);'revision-suggestion'!=_0x520594||_0x286a('0x1a')!=_0x5b1d55&&_0x286a('0x23')!=_0x5b1d55||(_0x150836['unshift']({'type':_0x5b1d55,'name':_0x5d69c8,'userId':_0x3d9c17}),_0x476199[_0xcc362d]['markersStart'][_0x286a('0x4f')](_0x3434ab,0x1),_0x3434ab--);}_0x23b533(_0x476199[_0xcc362d]);for(let _0x270a1d=0x0;_0x270a1d<_0x476199[_0xcc362d][_0x286a('0xbc')][_0x286a('0x95')];_0x270a1d++){const _0x592595=_0x476199[_0xcc362d]['markersEnd'][_0x270a1d];if(!_0x432961['has'](_0x592595))continue;const {group:_0x256164,type:_0x264b8a}=_0x26715c(_0x592595);if(_0x286a('0x84')!=_0x256164||_0x286a('0x1a')!=_0x264b8a&&_0x286a('0x23')!=_0x264b8a)continue;_0x476199[_0xcc362d][_0x286a('0xbc')][_0x286a('0x4f')](_0x270a1d,0x1),_0x270a1d--;const _0x60928c=_0x150836['findIndex'](_0x33d1c3=>_0x33d1c3[_0x286a('0x9c')]==_0x592595);_0x60928c>-0x1&&_0x150836[_0x286a('0x4f')](_0x60928c,0x1);}}function _0x26715c(_0x473ee2){const _0x79dbb7=_0x473ee2[_0x286a('0xa4')](':');return{'group':_0x79dbb7[0x0],'type':_0x79dbb7[0x1],'subType':_0x79dbb7[_0x286a('0x95')]>=0x5?_0x79dbb7[0x2]:null,'id':_0x79dbb7[_0x286a('0x95')]<0x5?_0x79dbb7[0x2]:_0x79dbb7[0x3],'authorId':_0x79dbb7[_0x286a('0x95')]<0x5?_0x79dbb7[0x3]:_0x79dbb7[0x4],'markerCount':0x6==_0x79dbb7[_0x286a('0x95')]?_0x79dbb7[0x5]:null};}function _0x23b533(_0x1d1537){for(let _0x1b121b=0x0;_0x1b121b<_0x150836[_0x286a('0x95')];_0x1b121b++){if(_0x1d1537[_0x286a('0xb0')]&&_0x286a('0x1a')==_0x150836[_0x1b121b][_0x286a('0x8d')])return _0x1d1537[_0x286a('0x61')]=_0x150836[_0x1b121b],void delete _0x1d1537[_0x286a('0xb0')];if(!_0x1d1537[_0x286a('0xb0')]&&!_0x1d1537[_0x286a('0x36')]&&_0x286a('0x23')==_0x150836[_0x1b121b][_0x286a('0x8d')])return void(_0x1d1537['isRemoveSuggestion']=_0x150836[_0x1b121b]);}}}[_0x286a('0x112')](_0x536cdd,_0x24c676){let _0xc122f2=0x0,_0x45214d=!0x1;const _0x41daca=new Map();for(const _0x308940 of _0x536cdd)_0x308940[_0x24c676]?_0x45214d&&(_0xc122f2++,_0x45214d=!0x1):(_0xc122f2++,_0x45214d=!0x0),_0x41daca['set'](_0x308940['id'],_0xc122f2);for(let _0x48c853=0x0;_0x48c853<_0x536cdd['length'];_0x48c853++){if(_0x286a('0x36')==_0x24c676&&_0x536cdd[_0x48c853][_0x286a('0xb0')]||'isAdded'==_0x24c676&&_0x536cdd[_0x48c853][_0x286a('0x36')])continue;if(_0x286a('0xbb')==_0x536cdd[_0x48c853][_0x286a('0x8d')]){_0x536cdd[_0x48c853]['distance']=0x0;continue;}const _0x4e9205=_0x41daca[_0x286a('0x11e')](_0x536cdd[_0x48c853][_0x286a('0x113')]),_0xe15cf1=_0x41daca[_0x286a('0x11e')](_0x536cdd[_0x48c853]['id']);_0x536cdd[_0x48c853][_0x286a('0x10')]=_0x4e9205-_0xe15cf1;}}[_0x286a('0xb4')](_0x28f3c2,_0x356ea6,_0x3448de=!0x1){const _0x3f2f98=[];let _0x43f47f=this['repository'][_0x286a('0xc')](_0x28f3c2),_0x45f82a=this[_0x286a('0xf8')][_0x286a('0xc')](_0x356ea6);for(-0x1==_0x45f82a&&(_0x45f82a=this[_0x286a('0xf8')][_0x286a('0x10d')]['length'],_0x3448de=!0x1);_0x43f47f<_0x45f82a;)_0x3f2f98['push'](this['repository'][_0x286a('0xd9')](_0x43f47f)),_0x43f47f++;return _0x3448de&&_0x3f2f98['push'](this['repository'][_0x286a('0xd9')](_0x43f47f)),_0x3f2f98;}[_0x286a('0x128')](_0x5567ff,_0x4748a9,_0x229ca5,_0x4a5179){const _0x4cd5a4=this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0x9f')];let _0xa4aa9a=_0x4748a9;for(;_0x5567ff[_0xa4aa9a]&&_0x5567ff[_0xa4aa9a]['isAdded'];)_0xa4aa9a++;let _0x132462=_0x4a5179;for(;_0x229ca5[_0x132462]&&_0x229ca5[_0x132462]['isRemoved'];)_0x132462++;_0x161599(_0x5567ff,_0x4748a9,_0xa4aa9a),_0x161599(_0x229ca5,_0x4a5179,_0x132462);const _0x114557=_0x229ca5['slice'](_0x4a5179,_0x132462)[_0x286a('0x4d')](_0x5567ff[_0x286a('0xc3')](_0x4748a9,_0xa4aa9a));return _0x114557[_0x286a('0x52')]((_0x2d44d3,_0x2aec67)=>_0x2d44d3[_0x286a('0xde')]!=_0x2aec67['side']?_0x2d44d3[_0x286a('0xde')]-_0x2aec67[_0x286a('0xde')]:_0x2d44d3['level']!=_0x2aec67[_0x286a('0xd7')]?_0x2d44d3[_0x286a('0xd7')]-_0x2aec67[_0x286a('0xd7')]:_0x2d44d3[_0x286a('0x10')]!=_0x2aec67[_0x286a('0x10')]?_0x2aec67['distance']-_0x2d44d3['distance']:!!_0x2d44d3[_0x286a('0xb0')]!=!!_0x2aec67[_0x286a('0xb0')]?-0x1==_0x2d44d3['side']||0x0==_0x2d44d3[_0x286a('0xde')]?_0x2d44d3[_0x286a('0xb0')]?-0x1:0x1:_0x2d44d3['isAdded']?0x1:-0x1:_0x2d44d3['index']-_0x2aec67['index']),{'commonTape':_0x114557,'iEnd':_0xa4aa9a,'jEnd':_0x132462};function _0x161599(_0x3391f2,_0x375e0a,_0x266f31){let _0xc7078b=-0x1,_0x5c60d0=Number[_0x286a('0x127')],_0x290c28=!0x0;for(let _0x110df2=_0x375e0a;_0x110df2<_0x266f31;_0x110df2++)if(_0x4cd5a4[_0x286a('0x8a')](_0x3391f2[_0x110df2][_0x286a('0x4c')])||(_0x290c28=!0x1),_0x3391f2[_0x110df2][_0x286a('0x4c')][_0x286a('0x19')]<_0x375e0a&&(_0xc7078b=_0x110df2),_0x3391f2[_0x110df2][_0x286a('0x4c')]['endIndex']>=_0x266f31){_0x5c60d0=_0x110df2;break;}_0x290c28&&(_0xc7078b=_0x266f31-0x1);for(let _0x44d160=_0x375e0a;_0x44d160<_0x266f31;_0x44d160++)_0x3391f2[_0x44d160][_0x286a('0xde')]=_0x44d160<=_0xc7078b?-0x1:_0x44d160<_0x5c60d0?0x0:0x1,_0x3391f2[_0x44d160][_0x286a('0x60')]=_0x44d160;let _0x23ca5a=0x0;for(let _0x1ac9ea=_0x375e0a;_0x1ac9ea<=_0xc7078b;_0x1ac9ea++)0x0==_0x3391f2[_0x1ac9ea][_0x286a('0x10')]?_0x3391f2[_0x1ac9ea][_0x286a('0xd7')]=_0x23ca5a:(_0x23ca5a++,_0x3391f2[_0x1ac9ea]['level']=_0x23ca5a,_0x23ca5a++);for(let _0x31d474=_0x375e0a;_0x31d474<_0x266f31;_0x31d474++)0x0==_0x3391f2[_0x31d474][_0x286a('0xde')]&&(_0x3391f2[_0x31d474][_0x286a('0xd7')]=_0x23ca5a);_0x23ca5a=0x0;for(let _0x3b3a88=_0x266f31-0x1;_0x3b3a88>=_0x5c60d0;_0x3b3a88--)0x0==_0x3391f2[_0x3b3a88][_0x286a('0x10')]?_0x3391f2[_0x3b3a88][_0x286a('0xd7')]=_0x23ca5a:(_0x23ca5a--,_0x3391f2[_0x3b3a88][_0x286a('0xd7')]=_0x23ca5a,_0x23ca5a--);}}[_0x286a('0x7f')](_0x4c82a3){const _0x5dbd2f=new Map(),_0x146caf=this[_0x286a('0xe1')]['model']['schema'];for(let _0x4a18c0=0x1;_0x4a18c0<_0x4c82a3[_0x286a('0x95')];_0x4a18c0++){let _0x2e0c8a,_0xf2f990,_0x55023b;const _0x1f5dbf=_0x4c82a3[_0x4a18c0],_0x34bc33=_0x4c82a3[_0x4a18c0-0x1];if(_0x286a('0xbb')==_0x1f5dbf[_0x286a('0x8d')])continue;if(_0x1f5dbf['type']!=_0x34bc33[_0x286a('0x8d')])continue;if(!_0x146caf[_0x286a('0xf7')](_0x34bc33['item'])||_0x146caf[_0x286a('0xe3')](_0x34bc33[_0x286a('0x4c')]))continue;if(!_0x146caf[_0x286a('0xf7')](_0x1f5dbf[_0x286a('0x4c')])||_0x146caf[_0x286a('0xe3')](_0x1f5dbf['item']))continue;if((_0x4c82a3[_0x4a18c0][_0x286a('0xb0')]||_0x4c82a3[_0x4a18c0][_0x286a('0x61')])&&_0x4c82a3[_0x4a18c0-0x1][_0x286a('0x36')])_0x2e0c8a=_0x4c82a3[_0x4a18c0],_0xf2f990=_0x4c82a3[_0x4a18c0-0x1],_0x55023b=_0x4a18c0-0x1;else{if(!_0x4c82a3[_0x4a18c0][_0x286a('0x36')]||!_0x4c82a3[_0x4a18c0-0x1][_0x286a('0xb0')]&&!_0x4c82a3[_0x4a18c0-0x1][_0x286a('0x61')])continue;_0x2e0c8a=_0x4c82a3[_0x4a18c0-0x1],_0xf2f990=_0x4c82a3[_0x4a18c0],_0x55023b=_0x4a18c0;}const _0x4a539d=_0x2e0c8a[_0x286a('0xd7')]==_0xf2f990['level'],_0x2f9680=Math[_0x286a('0x3c')](_0x2e0c8a[_0x286a('0xd7')])<Math[_0x286a('0x3c')](_0xf2f990[_0x286a('0xd7')])&&0x0==_0xf2f990[_0x286a('0x10')];(_0x4a539d||_0x2f9680)&&(_0x5dbd2f['set'](_0xf2f990['id'],_0x2e0c8a['id']),_0x4c82a3['splice'](_0x55023b,0x1),_0x4a18c0--,_0x2e0c8a['isAdded']=!0x1);}for(let _0x2673bb=0x0;_0x2673bb<_0x4c82a3[_0x286a('0x95')];_0x2673bb++)_0x5dbd2f[_0x286a('0x55')](_0x4c82a3[_0x2673bb][_0x286a('0x113')])&&(_0x4c82a3[_0x2673bb][_0x286a('0x113')]=_0x5dbd2f[_0x286a('0x11e')](_0x4c82a3[_0x2673bb][_0x286a('0x113')]));}['_removeMissingPairs'](_0x53861c){const _0xf16ed4=new Set(_0x53861c[_0x286a('0xd2')](_0x109ff1=>_0x109ff1['id']));for(let _0x28ecf5=0x0;_0x28ecf5<_0x53861c['length'];_0x28ecf5++)_0xf16ed4[_0x286a('0x55')](_0x53861c[_0x28ecf5][_0x286a('0x113')])||0x0==_0x53861c[_0x28ecf5]['distance']||(_0x53861c[_0x28ecf5][_0x286a('0xcf')]=!0x0);return _0x53861c[_0x286a('0x115')](_0x4d3e69=>!_0x4d3e69[_0x286a('0xcf')]);}['_markMismatchedRemovedTags'](_0xc7f806){const _0x2828bb=new Set();for(let _0x492bd8=0x0;_0x492bd8<_0xc7f806[_0x286a('0x95')];_0x492bd8++){if(_0x2828bb[_0x286a('0x55')](_0xc7f806[_0x492bd8]['id'])&&_0xc7f806[_0x492bd8][_0x286a('0x36')]&&(_0xc7f806[_0x492bd8]['isIncorrect']=!0x0),_0xc7f806[_0x492bd8][_0x286a('0xcf')])continue;if(0x0==_0xc7f806[_0x492bd8][_0x286a('0x10')])continue;if(_0x286a('0xe')!=_0xc7f806[_0x492bd8][_0x286a('0x8d')])continue;if(null==_0xc7f806[_0x492bd8][_0x286a('0x113')])continue;let _0x4d888f=_0x492bd8+0x1,_0x4658df=0x0;for(;_0xc7f806[_0x4d888f]['id']!=_0xc7f806[_0x492bd8]['pairId'];)_0x286a('0xe')==_0xc7f806[_0x4d888f][_0x286a('0x8d')]?_0x4658df++:_0x286a('0x102')==_0xc7f806[_0x4d888f]['type']&&_0x4658df--,_0x4d888f++;if(0x0!=_0x4658df){if(_0xc7f806[_0x492bd8][_0x286a('0x36')])_0xc7f806[_0x492bd8][_0x286a('0xcf')]=!0x0;else for(;_0x4d888f!=_0x492bd8;)_0xc7f806[_0x4d888f]['isRemoved']&&0x0!=_0xc7f806[_0x4d888f]['distance']&&(_0xc7f806[_0x4d888f][_0x286a('0xcf')]=!0x0,_0x2828bb[_0x286a('0xe0')](_0xc7f806[_0x4d888f][_0x286a('0x113')])),_0x4d888f--;}}return _0xc7f806['filter'](_0x521d9c=>!_0x521d9c[_0x286a('0xcf')]);}['_removeUnsupportedChanges'](_0x2cca2a){const _0x5f1c20=this[_0x286a('0xe1')]['model'][_0x286a('0x9f')];for(let _0x85f1af=0x0;_0x85f1af<_0x2cca2a[_0x286a('0x95')];_0x85f1af++){if(!(_0x2cca2a[_0x85f1af]['isAdded']||_0x2cca2a[_0x85f1af][_0x286a('0x61')]||_0x2cca2a[_0x85f1af][_0x286a('0x36')]||_0x2cca2a[_0x85f1af][_0x286a('0x57')]))continue;if(0x0==_0x2cca2a[_0x85f1af][_0x286a('0x10')])continue;const _0xb10aa6=_0x2cca2a[_0x85f1af][_0x286a('0x4c')];_0x5f1c20['isBlock'](_0xb10aa6)||_0x5f1c20[_0x286a('0xe3')](_0xb10aa6)||(_0x2cca2a[_0x85f1af]['isAdded']&&delete _0x2cca2a[_0x85f1af][_0x286a('0xb0')],_0x2cca2a[_0x85f1af][_0x286a('0x61')]&&delete _0x2cca2a[_0x85f1af][_0x286a('0x61')],_0x2cca2a[_0x85f1af][_0x286a('0x57')]&&delete _0x2cca2a[_0x85f1af][_0x286a('0x57')],_0x2cca2a[_0x85f1af]['isRemoved']&&(_0x2cca2a[_0x85f1af][_0x286a('0xcf')]=!0x0));}return _0x2cca2a['filter'](_0x490c72=>!_0x490c72[_0x286a('0xcf')]);}['_makeModelFromTape'](_0x3f16f8,_0x59fdb6,_0x55252f){const _0x4c792a=new _0x17a945(),_0x21b62f=[],_0x5cb764=new Map(),_0x2b5926=this[_0x286a('0xe1')]['model'],_0x848db1=_0x2b5926['schema'],_0x10f9fe=[_0x4c792a],_0x461547={},_0x511344={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x23c5e0=null;const _0x5cc2a4=[0x0];for(let _0xc4d3aa=0x0;_0xc4d3aa<_0x3f16f8[_0x286a('0x95')];_0xc4d3aa++){let _0x239bcb,_0x2ec6b5;if(_0x286a('0xe')===_0x3f16f8[_0xc4d3aa][_0x286a('0x8d')]){_0x239bcb=_0x2b5926[_0x286a('0xc5')](_0x4c792a,_0x5cc2a4);const _0x20d472=new _0x2875e4(_0x3f16f8[_0xc4d3aa][_0x286a('0x4c')][_0x286a('0x9c')],_0x3f16f8[_0xc4d3aa][_0x286a('0x4c')][_0x286a('0xf1')]());_0x10f9fe[0x0][_0x286a('0x70')](_0x20d472),_0x5cc2a4[_0x286a('0xc8')](0x0),_0x10f9fe[_0x286a('0x3e')](_0x20d472),_0x2ec6b5=_0x2b5926[_0x286a('0xc5')](_0x4c792a,_0x5cc2a4),_0x23c5e0=null;}else{if(_0x286a('0x102')===_0x3f16f8[_0xc4d3aa][_0x286a('0x8d')])_0x10f9fe[_0x286a('0x73')](),_0x239bcb=_0x2b5926['createPositionFromPath'](_0x4c792a,_0x5cc2a4),_0x5cc2a4['pop'](),_0x5cc2a4[_0x5cc2a4[_0x286a('0x95')]-0x1]++,_0x2ec6b5=_0x2b5926['createPositionFromPath'](_0x4c792a,_0x5cc2a4),_0x23c5e0=null;else{if(_0x239bcb=_0x2b5926[_0x286a('0xc5')](_0x4c792a,_0x5cc2a4),_0x23c5e0&&_0x34813c(_0x23c5e0,_0x3f16f8[_0xc4d3aa][_0x286a('0x4c')]))_0x23c5e0[_0x286a('0xe6')]+=_0x3f16f8[_0xc4d3aa]['item'][_0x286a('0xae')];else{const _0x245fcd=new _0x17a10a(_0x3f16f8[_0xc4d3aa]['item'][_0x286a('0xae')],_0x3f16f8[_0xc4d3aa][_0x286a('0x4c')][_0x286a('0xf1')]());_0x10f9fe[0x0][_0x286a('0x70')](_0x245fcd),_0x23c5e0=_0x245fcd;}_0x5cc2a4[_0x5cc2a4[_0x286a('0x95')]-0x1]+=_0x3f16f8[_0xc4d3aa][_0x286a('0x4c')][_0x286a('0x104')],_0x2ec6b5=_0x2b5926['createPositionFromPath'](_0x4c792a,_0x5cc2a4);}}for(const _0x5f1d78 of _0x3f16f8[_0xc4d3aa]['markersStart'])_0x5cb764[_0x286a('0xb3')](_0x5f1d78,{'start':_0x239bcb,'end':null});_0x5ceaf2(_0x286a('0x57'),_0xc4d3aa,_0x239bcb,_0x2ec6b5),_0x5ceaf2(_0x286a('0x61'),_0xc4d3aa,_0x239bcb,_0x2ec6b5),_0x5ceaf2(_0x286a('0x36'),_0xc4d3aa,_0x239bcb,_0x2ec6b5),_0x5ceaf2(_0x286a('0xb0'),_0xc4d3aa,_0x239bcb,_0x2ec6b5);for(const _0x1ad824 of _0x3f16f8[_0xc4d3aa][_0x286a('0xbc')]){_0x5cb764[_0x286a('0x11e')](_0x1ad824)['end']=_0x2ec6b5;}}for(const [_0x2ec289,_0x1a5d46]of _0x5cb764){const _0x5729a7=this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0xc9')](_0x1a5d46[_0x286a('0xf0')],_0x1a5d46[_0x286a('0xb9')]);_0x4c792a[_0x286a('0xf3')][_0x286a('0xb3')](_0x2ec289,_0x5729a7);}return _0x21b62f[_0x286a('0x52')]((_0xe32fc7,_0x269564)=>{const _0x5b6481=_0x4c792a[_0x286a('0xf3')][_0x286a('0x11e')](_0x286a('0x42')+_0xe32fc7['id']),_0x3fa3cd=_0x4c792a[_0x286a('0xf3')]['get']('revision:'+_0x269564['id']);return _0x5b6481[_0x286a('0xf0')][_0x286a('0x91')](_0x3fa3cd['start'])?-0x1:_0x5b6481[_0x286a('0xf0')]['isAfter'](_0x3fa3cd['start'])?0x1:_0x5b6481[_0x286a('0xb9')][_0x286a('0x91')](_0x3fa3cd[_0x286a('0xb9')])?-0x1:_0x5b6481['end']['isAfter'](_0x3fa3cd['end'])?0x1:_0x286a('0xe0')===_0xe32fc7[_0x286a('0x8d')]?-0x1:0x1;}),{'root':_0x4c792a,'changes':_0x21b62f};function _0x5ceaf2(_0x65c263,_0x206b47,_0x6d56fd,_0x425e09){const _0x34739e=!!_0x3f16f8[_0x206b47][_0x65c263],_0x3f40d6=_0x34739e?_0x3f16f8[_0x206b47][_0x65c263][_0x286a('0x32')]:null,_0xbe019e=_0x206b47===_0x3f16f8[_0x286a('0x95')]-0x1,_0x4bcd94=_0x511344[_0x65c263][0x0],_0xfb172b=_0x848db1['isObject'](_0x3f16f8[_0x206b47]['item']);!_0x461547[_0x65c263]&&_0x34739e?_0x461547[_0x65c263]={'start':_0x6d56fd,'tapeItem':_0x3f16f8[_0x206b47],'userId':_0x3f40d6,'type':_0x65c263}:_0x461547[_0x65c263]&&!_0x34739e?(_0x461547[_0x65c263]['end']=_0x6d56fd,_0x1c4ddf(_0x461547[_0x65c263]),_0x461547[_0x65c263]=null):_0x461547[_0x65c263]&&_0x34739e&&_0x461547[_0x65c263][_0x286a('0x32')]!==_0x3f40d6&&(_0x461547[_0x65c263][_0x286a('0xb9')]=_0x6d56fd,_0x4bcd94&&_0x4bcd94[_0x286a('0x32')]===_0x461547[_0x65c263][_0x286a('0x32')]||_0x1c4ddf(_0x461547[_0x65c263]),_0x461547[_0x65c263]={'start':_0x6d56fd,'tapeItem':_0x3f16f8[_0x206b47],'userId':_0x3f40d6,'type':_0x65c263}),_0x461547[_0x65c263]&&_0xfb172b&&(_0x286a('0xe')!==_0x3f16f8[_0x206b47][_0x286a('0x8d')]||_0x4bcd94&&_0x4bcd94[_0x286a('0x32')]===_0x3f40d6||_0x511344[_0x65c263]['unshift']({'userId':_0x3f40d6,'object':_0x3f16f8[_0x206b47][_0x286a('0x4c')],'change':_0x461547[_0x65c263]}),_0x286a('0x102')===_0x3f16f8[_0x206b47][_0x286a('0x8d')]&&_0x4bcd94&&_0x4bcd94[_0x286a('0x106')]===_0x3f16f8[_0x206b47]['item']&&(_0x511344[_0x65c263][_0x286a('0x73')](),_0x461547[_0x65c263]=_0x4bcd94[_0x286a('0x1b')])),_0x461547[_0x65c263]&&_0xbe019e&&(_0x461547[_0x65c263][_0x286a('0xb9')]=_0x425e09,_0x1c4ddf(_0x461547[_0x65c263]),_0x461547[_0x65c263]=null);}function _0x1c4ddf({start:_0x265e86,end:_0x696370,tapeItem:_0x269c1c,userId:_0x6a2ca0,type:_0x33748b}){const _0x486929=_0x269c1c[_0x286a('0x4c')],_0x34fc44=_0x2b5926[_0x286a('0x9f')][_0x286a('0xf7')](_0x486929)&&!_0x2b5926[_0x286a('0x9f')]['isLimit'](_0x486929),_0x22eb4e=_0x265e86[_0x286a('0x25')]==_0x696370[_0x286a('0x5a')]&&_0x696370[_0x286a('0x2d')];if(_0x34fc44&&_0x22eb4e)return;const _0x5ada9e=_0x2b5926[_0x286a('0xc9')](_0x265e86,_0x696370),_0x59ab8e=_0x59fdb6['get'](_0x6a2ca0),_0x3f7d65=new _0x229602({'author':_0x59ab8e,'type':_0x286a('0xb0')==_0x33748b||_0x286a('0x61')==_0x33748b?'add':_0x286a('0x38'),'data':{'isSuggestion':_0x286a('0x61')==_0x33748b||_0x286a('0x57')==_0x33748b},'createdAt':new Date(),'rootName':_0x55252f});_0x21b62f[_0x286a('0xc8')](_0x3f7d65),_0x4c792a[_0x286a('0xf3')]['set']('revision:'+_0x3f7d65['id'],_0x5ada9e);}function _0x34813c(_0x40b720,_0x45e35c){const _0x3bdf0e=_0x40b720[_0x286a('0xf1')](),_0xcff7a3=_0x45e35c[_0x286a('0xf1')]();for(const _0x359e6f of _0x3bdf0e){if(_0x359e6f[0x1]!==_0x45e35c[_0x286a('0xa2')](_0x359e6f[0x0]))return!0x1;_0xcff7a3[_0x286a('0xa1')]();}return _0xcff7a3[_0x286a('0xa1')]()[_0x286a('0xc7')];}}[_0x286a('0x59')](){this[_0x286a('0xe1')]['conversion'][_0x286a('0x5b')]('upcast')[_0x286a('0xbe')]({'view':_0x286a('0x50')}),this[_0x286a('0xe1')]['conversion']['for'](_0x286a('0x88'))['markerToHighlight']({'model':'revision','view':_0xda90bf=>{const _0x4ea2ed=_0xda90bf[_0x286a('0xe7')][_0x286a('0xa4')](':')[0x1],_0x138ec6=this[_0x286a('0x31')](_0x4ea2ed);if(!_0x138ec6)return null;const _0x45ebaf='add'==_0x138ec6[_0x286a('0x8d')]?'insertion':'deletion',_0x405afb=[_0x286a('0xc4'),_0x286a('0x12b')+_0x45ebaf];return _0x138ec6[_0x286a('0xae')]['isSuggestion']&&_0x405afb[_0x286a('0xc8')](_0x286a('0x12b')+_0x45ebaf+_0x286a('0x67')),this[_0x286a('0x10b')]==_0x138ec6&&_0x405afb[_0x286a('0xc8')](_0x286a('0xf')),{'classes':_0x405afb,'attributes':{'data-change-id':_0x4ea2ed}};}}),this[_0x286a('0xe1')][_0x286a('0xfa')]['for'](_0x286a('0x7e'))['add'](_0x3e2283=>{_0x3e2283['on'](_0x286a('0xfe'),(_0x21ec74,_0x57ae63,_0x37b322)=>{const _0x5bc4ed=_0x57ae63[_0x286a('0x8f')]['getChild'](0x0);if(!_0x5bc4ed||!_0x5bc4ed['is'](_0x286a('0x14'),_0x286a('0xdc')))return;if(!_0x37b322[_0x286a('0xd8')][_0x286a('0x11d')](_0x5bc4ed,{'attributes':[_0x286a('0xb7'),'vid_end']}))return;const _0x2cb12b=_0x57ae63[_0x286a('0x28')][_0x286a('0xf0')][_0x286a('0x25')];_0x37b322[_0x286a('0xd1')][_0x286a('0xa3')]('vid_start',_0x5bc4ed['getAttribute'](_0x286a('0xb7')),_0x2cb12b),_0x37b322[_0x286a('0xd1')][_0x286a('0xa3')]('vid_end',_0x5bc4ed[_0x286a('0xa2')]('vid_end'),_0x2cb12b);},{'priority':_0x286a('0x4a')});}),this[_0x286a('0xe1')][_0x286a('0xfa')][_0x286a('0x5b')](_0x286a('0x7e'))[_0x286a('0xe0')](_0x3ab3c3=>{_0x3ab3c3['on'](_0x286a('0x14'),(_0x4c1b87,_0x137b66,_0x163985)=>{if(!_0x163985[_0x286a('0xd8')][_0x286a('0x11d')](_0x137b66[_0x286a('0x8f')],{'attributes':[_0x286a('0xb7'),_0x286a('0xd4')]}))return;if(_0x137b66[_0x286a('0x28')][_0x286a('0x65')])return;const _0x4ac657=_0x137b66[_0x286a('0x28')][_0x286a('0xf0')]['nodeAfter'];_0x4ac657[_0x286a('0x5')](_0x286a('0xb7'))||_0x4ac657[_0x286a('0x5')](_0x286a('0x119'))||(_0x163985['writer'][_0x286a('0xa3')](_0x286a('0xb7'),_0x137b66['viewItem'][_0x286a('0xa2')]('vid_start'),_0x4ac657),_0x163985[_0x286a('0xd1')]['setAttribute'](_0x286a('0xd4'),_0x137b66[_0x286a('0x8f')][_0x286a('0xa2')](_0x286a('0xd4')),_0x4ac657));},{'priority':_0x286a('0x4a')});}),this[_0x286a('0xe1')][_0x286a('0xfa')][_0x286a('0x5b')](_0x286a('0x7e'))[_0x286a('0xa6')]({'view':{'name':_0x286a('0x3a'),'attributes':{'vid':!0x0}},'model':{'key':_0x286a('0x119'),'value':_0x1043e9=>_0x1043e9['getAttribute'](_0x286a('0x119'))}}),this['editor'][_0x286a('0x99')][_0x286a('0x9f')]['on']('checkAttribute',(_0x3954ba,[,_0x1df9e6])=>{[_0x286a('0xb7'),_0x286a('0xd4'),_0x286a('0x119')][_0x286a('0xba')](_0x1df9e6)&&(_0x3954ba[_0x286a('0x49')]=!0x0,_0x3954ba['stop']());},{'priority':_0x286a('0xef')}),this['editor'][_0x286a('0xfa')]['for'](_0x286a('0xbf'))[_0x286a('0xe0')](_0x54552f=>{_0x54552f['on'](_0x286a('0x6'),(_0x1883e6,_0x383ef3,_0x14b375)=>{if('\x20'!=_0x383ef3[_0x286a('0x4c')][_0x286a('0xae')]||_0x383ef3[_0x286a('0x4c')][_0x286a('0x5a')][_0x286a('0x124')]>0x1)return;if(!_0x14b375[_0x286a('0xd8')][_0x286a('0x11d')](_0x383ef3[_0x286a('0x4c')],_0x1883e6['name']))return;const _0x33dcf5=_0x14b375[_0x286a('0xd1')],_0x1812f7=_0x14b375['mapper'][_0x286a('0xd')](_0x383ef3[_0x286a('0x2e')]);_0x33dcf5[_0x286a('0x89')](_0x1812f7,_0x33dcf5[_0x286a('0x110')]('span'));});}),this[_0x286a('0xe1')][_0x286a('0xfa')]['for'](_0x286a('0xbf'))['markerToData']({'model':_0x286a('0x50')}),this[_0x286a('0xe1')][_0x286a('0x9b')][_0x286a('0xbd')]['on']('addMarker:revision',function(_0x2e79b3){const _0x480479=_0x2e79b3[_0x286a('0x90')][_0x286a('0x11e')](_0x286a('0xa8'));return(_0x2fcdf8,_0xd0cfff,_0x5b1995)=>{const _0x47751c=_0xd0cfff['markerName']['split'](':')[0x1],_0x46be8b=_0x480479[_0x286a('0x31')](_0x47751c);if(!_0x46be8b)return null;const _0x98c882=_0x286a('0xe0')==_0x46be8b[_0x286a('0x8d')]?_0x286a('0xa4'):_0x286a('0xf5');if(!_0x5b1995['consumable'][_0x286a('0x101')](_0xd0cfff[_0x286a('0x3d')],_0x2fcdf8[_0x286a('0x9c')]))return;const _0x5e0133=_0xd0cfff[_0x286a('0x3d')]['getWalker'](),_0x59326d=_0xd0cfff[_0x286a('0x3d')][_0x286a('0xf0')],_0x15fc1c=_0x2e79b3[_0x286a('0x99')][_0x286a('0x9f')];let _0x13013b=null,_0x49abb5=null,_0xc442f3=!0x1,_0x1b90fb=!0x1;for(const _0x2ac74 of _0x5e0133){const _0x36ce95=_0x2ac74[_0x286a('0x4c')];_0xc442f3=_0xc442f3||_0x15fc1c[_0x286a('0x68')](_0x36ce95);const _0x28cd77=_0x5b1995[_0x286a('0x10a')][_0x286a('0x53')](_0x36ce95);if(_0x28cd77&&_0x28cd77[_0x286a('0x40')](_0x286a('0x29')))return;'elementEnd'==_0x2ac74[_0x286a('0x8d')]&&(_0x15fc1c[_0x286a('0xf7')](_0x36ce95)&&!_0x15fc1c['isLimit'](_0x36ce95)&&(_0x36ce95['nextSibling']||_0x59326d[_0x286a('0xec')]?_0x13013b&&_0x13013b[_0x286a('0x5a')]==_0x36ce95||(_0x13013b=_0x36ce95,_0x5edc34(_0x2ac74[_0x286a('0x24')]),_0x1b90fb=!0x0):_0x49abb5=_0x49abb5||_0x2ac74[_0x286a('0x24')]));}function _0x5edc34(_0x18d334){const _0x184d64=_0x5b1995[_0x286a('0xd1')][_0x286a('0xdf')](_0x286a('0x3a'),{'class':_0x286a('0x12b')+_0x98c882}),_0x45a32b=_0x5b1995['mapper']['toViewPosition'](_0x18d334);_0x46be8b[_0x286a('0xae')]['isSuggestion']&&_0x5b1995[_0x286a('0xd1')][_0x286a('0x87')](_0x286a('0x12b')+_0x98c882+'-new',_0x184d64),_0x480479[_0x286a('0x10b')]==_0x46be8b&&_0x5b1995[_0x286a('0xd1')][_0x286a('0x87')](_0x286a('0xf'),_0x184d64),_0x5b1995[_0x286a('0xd1')]['insert'](_0x45a32b,_0x184d64),_0x5b1995[_0x286a('0x10a')]['bindElementToMarker'](_0x184d64,_0xd0cfff[_0x286a('0xe7')]);}_0xc442f3||_0x1b90fb||!_0x49abb5||_0x5edc34(_0x49abb5);};}(this[_0x286a('0xe1')]),{'priority':_0x286a('0x63')}),this[_0x286a('0xe1')][_0x286a('0x9b')][_0x286a('0xbd')]['on'](_0x286a('0x3'),(_0x4dd040,_0x3bd650,_0x508933)=>{const _0x7d5b2d=_0x508933[_0x286a('0x10a')][_0x286a('0x51')](_0x3bd650[_0x286a('0xe7')]);if(_0x7d5b2d)for(const _0xee55d of _0x7d5b2d)(_0xee55d['hasClass']('ck-suggestion-marker-split')||_0xee55d[_0x286a('0xe5')](_0x286a('0xd5')))&&(_0x508933[_0x286a('0x10a')][_0x286a('0x5c')](_0xee55d,_0x3bd650[_0x286a('0xe7')]),_0x508933[_0x286a('0xd1')][_0x286a('0x38')](_0xee55d));},{'priority':_0x286a('0x63')}),this[_0x286a('0xe1')][_0x286a('0x9b')]['downcastDispatcher']['on'](_0x286a('0xdb'),(_0x1ae30d,_0x204d60,_0x1f8dc4)=>{const _0x2a40c2=_0x204d60[_0x286a('0xe7')][_0x286a('0xa4')](':')[0x1],_0x98ebdb=this[_0x286a('0x31')](_0x2a40c2);if(!_0x98ebdb)return null;const _0x568e7c=_0x286a('0xe0')==_0x98ebdb[_0x286a('0x8d')]?_0x286a('0xa4'):_0x286a('0xf5');if(_0x1f8dc4[_0x286a('0xd8')][_0x286a('0x101')](_0x204d60[_0x286a('0x3d')],_0x1ae30d['name']))for(const _0x30400b of _0x204d60[_0x286a('0x3d')]['getItems']()){if(!_0x30400b['is'](_0x286a('0x14'),_0x286a('0x81')))continue;const _0x183dac=_0x1f8dc4['writer']['createUIElement'](_0x286a('0x3a'),{'class':'ck-suggestion-marker-'+_0x568e7c}),_0x538f20=_0x1f8dc4[_0x286a('0x10a')][_0x286a('0x56')](this[_0x286a('0xe1')][_0x286a('0x99')]['createPositionBefore'](_0x30400b));_0x98ebdb[_0x286a('0xae')][_0x286a('0x7d')]&&_0x1f8dc4[_0x286a('0xd1')]['addClass'](_0x286a('0x12b')+_0x568e7c+_0x286a('0x67'),_0x183dac),this[_0x286a('0x10b')]==_0x98ebdb&&_0x1f8dc4[_0x286a('0xd1')][_0x286a('0x87')](_0x286a('0xf'),_0x183dac),_0x1f8dc4[_0x286a('0xd1')][_0x286a('0xd6')](_0x538f20,_0x183dac),_0x1f8dc4[_0x286a('0x10a')][_0x286a('0xb6')](_0x183dac,_0x204d60['markerName']);}},{'priority':_0x286a('0x63')}),this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0xc2')]['on']('change',()=>{this[_0x286a('0xe1')][_0x286a('0x9b')]['view'][_0x286a('0x1b')](_0x3cb888=>{for(const _0x25bcab of this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0xc2')][_0x286a('0x45')]()){const _0x356cc2=this[_0x286a('0xe1')][_0x286a('0x99')]['document'][_0x286a('0xea')](_0x25bcab),_0x5ed2e0=this[_0x286a('0xe1')]['editing'][_0x286a('0xe2')][_0x286a('0xc2')][_0x286a('0xea')](_0x25bcab);if(_0x5ed2e0){const _0x5884bd=_0x356cc2['getAttribute'](_0x286a('0x11a'));if(_0x3cb888[_0x286a('0x1e')](_0x286a('0xf6'),_0x5ed2e0),_0x3cb888[_0x286a('0xf9')](_0x286a('0x27'),_0x5ed2e0),_0x3cb888[_0x286a('0xf9')]('ck-revision-history-root-remove',_0x5ed2e0),_0x3cb888['removeClass'](_0x286a('0xcb'),_0x5ed2e0),_0x5884bd){const _0x17f055=this[_0x286a('0x31')](_0x5884bd);if(!_0x17f055)return null;_0x3cb888[_0x286a('0xa3')](_0x286a('0xf6'),_0x5884bd,_0x5ed2e0),_0x3cb888[_0x286a('0x87')](_0x286a('0x11')+_0x17f055[_0x286a('0x8d')],_0x5ed2e0),this[_0x286a('0x10b')]==_0x17f055&&_0x3cb888[_0x286a('0x87')](_0x286a('0xcb'),_0x5ed2e0);}}}});}),this['editor'][_0x286a('0xfa')][_0x286a('0x5b')]('upcast')[_0x286a('0xbe')]({'view':_0x286a('0x92'),'model':_0x2cfc47=>_0x286a('0xaf')+_0x2cfc47,'converterPriority':_0x286a('0xef')}),this[_0x286a('0xe1')][_0x286a('0xfa')][_0x286a('0x5b')]('upcast')[_0x286a('0xbe')]({'view':'suggestion','model':_0xc32601=>_0x286a('0x2f')+_0xc32601,'converterPriority':_0x286a('0xef')}),this['editor'][_0x286a('0xfa')][_0x286a('0x5b')](_0x286a('0xbf'))['markerToData']({'model':'revision-suggestion','view':_0x3f31ac=>({'name':_0x286a('0x47')+_0x3f31ac,'group':_0x286a('0x84')}),'converterPriority':_0x286a('0xef')}),this[_0x286a('0xe1')][_0x286a('0xfa')][_0x286a('0x5b')](_0x286a('0x88'))[_0x286a('0x96')]({'model':_0x286a('0x84'),'view':_0x404be0=>{const _0x4c27a9=_0x404be0[_0x286a('0xe7')][_0x286a('0xa4')](':')[0x1];return _0x286a('0x1a')!=_0x4c27a9&&'deletion'!=_0x4c27a9?null:{'classes':[_0x286a('0x79'),'ck-suggestion-preview-marker-'+_0x4c27a9]};}}),this[_0x286a('0xe1')]['editing']['downcastDispatcher']['on'](_0x286a('0xe9'),et(this[_0x286a('0xe1')],_0x286a('0xf5')),{'priority':'high'}),this['editor'][_0x286a('0x9b')][_0x286a('0xbd')]['on'](_0x286a('0x114'),et(this[_0x286a('0xe1')],'split'),{'priority':_0x286a('0x63')}),this['editor'][_0x286a('0x9b')][_0x286a('0xbd')]['on'](_0x286a('0xb8'),(_0x2c8e45,_0xb4ca00,_0x3aceda)=>{const _0x1d4d84=_0x3aceda[_0x286a('0x10a')][_0x286a('0x51')](_0xb4ca00[_0x286a('0xe7')]);if(_0x1d4d84)for(const _0x3fe0ae of _0x1d4d84)_0x3fe0ae['is'](_0x286a('0x1f'))&&(_0x3aceda['mapper'][_0x286a('0x5c')](_0x3fe0ae,_0xb4ca00['markerName']),_0x3aceda['writer']['remove'](_0x3fe0ae));},{'priority':_0x286a('0x63')});}['_getChangeFromId'](_0x331e32){return this[_0x286a('0x48')]['get'](_0x331e32);}[_0x286a('0x6a')](_0x5b695f){return this[_0x286a('0x74')]&&this[_0x286a('0x74')][_0x286a('0x20')](),this[_0x286a('0x74')]=new _0x191933(this[_0x286a('0xe1')][_0x286a('0x58')],_0x5b695f),this[_0x286a('0x74')];}[_0x286a('0xa')](){this[_0x286a('0xe1')][_0x286a('0x99')]['document'][_0x286a('0x46')][_0x286a('0xc6')](_0x286a('0x50')),this['on'](_0x286a('0x76'),(_0x2bc577,_0x41ac02,_0x44e0d4,_0x27571a)=>{_0x27571a&&this[_0x286a('0x69')][_0x286a('0x38')](_0x27571a),_0x44e0d4&&(this[_0x286a('0x69')][_0x286a('0xe0')]({'view':_0x44e0d4,'stackId':_0x286a('0x12a'),'position':{'target':()=>{const _0x144586=this[_0x286a('0xe1')]['editing'],_0x297147=this['_getChangeFromId'](_0x44e0d4['changeId']);let _0x4cd644;if(_0x297147[_0x286a('0xae')]['isOnRoot']){const _0x2e7696=_0x144586['view']['getDomRoot'](_0x297147[_0x286a('0x3f')]);_0x4cd644=Array[_0x286a('0x30')](_0x2e7696['getClientRects']());}else{const _0x88b002=this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0xf3')][_0x286a('0x11e')]('revision:'+_0x44e0d4['changeId']);_0x4cd644=Array['from'](_0x144586[_0x286a('0x10a')][_0x286a('0x51')](_0x88b002[_0x286a('0x9c')]))[_0x286a('0xd2')](_0x323dea=>_0x144586[_0x286a('0xe2')][_0x286a('0x103')][_0x286a('0x94')](_0x323dea))['map'](_0x8bcda9=>Array[_0x286a('0x30')](_0x8bcda9[_0x286a('0x2b')]()))[_0x286a('0x6d')]();}if(!this['_activeViewTarget'])return _0x4cd644[0x0];return _0x4cd644[_0x286a('0x5e')](_0x448bff=>_0x448bff[_0x286a('0x82')]-0x3<=this[_0x286a('0x10f')]['y']&&_0x448bff['bottom']+0x3>=this[_0x286a('0x10f')]['y']&&_0x448bff[_0x286a('0x97')]-0x3<=this[_0x286a('0x10f')]['x']&&_0x448bff[_0x286a('0xa0')]+0x3>=this[_0x286a('0x10f')]['x'])||_0x4cd644[0x0];}}}),this['_balloon'][_0x286a('0x7c')](_0x286a('0x12a')));}),this['on'](_0x286a('0x123'),(_0x4589d3,_0x3538cc,_0xcdddc0,_0x589d8f)=>{this['activeView']=_0xcdddc0?this[_0x286a('0x6a')](_0xcdddc0):null,this[_0x286a('0xe1')][_0x286a('0x99')]['change'](()=>{const _0x3564f3=this['editor']['editing'];_0x589d8f&&(_0x589d8f[_0x286a('0xae')][_0x286a('0xf4')]?_0x3564f3[_0x286a('0xe2')][_0x286a('0x1b')](_0x395028=>{_0x395028[_0x286a('0xf9')]('ck-revision-history-root--active',_0x3564f3[_0x286a('0xe2')]['document']['getRoot'](_0x589d8f[_0x286a('0x3f')]));}):_0x3564f3[_0x286a('0x77')]('revision:'+_0x589d8f['id'])),_0xcdddc0&&(_0xcdddc0[_0x286a('0xae')][_0x286a('0xf4')]?_0x3564f3['view'][_0x286a('0x1b')](_0x50d01c=>{_0x50d01c[_0x286a('0x87')](_0x286a('0xcb'),_0x3564f3[_0x286a('0xe2')][_0x286a('0xc2')][_0x286a('0xea')](_0xcdddc0[_0x286a('0x3f')]));}):_0x3564f3[_0x286a('0x77')](_0x286a('0x42')+_0xcdddc0['id']));});}),this[_0x286a('0x117')](this[_0x286a('0xe1')][_0x286a('0x9b')]['view'][_0x286a('0xc2')],_0x286a('0x44'),(_0x2a4948,_0x1332d8)=>{if(this[_0x286a('0x10b')])return;const _0xdaa903=this[_0x286a('0x86')](_0x1332d8[_0x286a('0x35')]),_0x495629=this[_0x286a('0x48')]['get'](_0xdaa903);_0x495629?(this[_0x286a('0x10f')]={'x':_0x1332d8[_0x286a('0xf2')]['x'],'y':_0x1332d8['domEvent']['y']},this[_0x286a('0x12')]=this[_0x286a('0x6a')](_0x495629)):(this[_0x286a('0x10f')]=null,this[_0x286a('0x12')]=null);}),this['listenTo'](this[_0x286a('0xe1')][_0x286a('0x9b')][_0x286a('0xe2')]['document'],'mousedown',(_0x48bbdb,_0x1da322)=>{const _0x189a49=this[_0x286a('0x86')](_0x1da322['target']),_0x13a59d=this[_0x286a('0x48')][_0x286a('0x11e')](_0x189a49);_0x13a59d?(this['_activeViewTarget']={'x':_0x1da322[_0x286a('0xf2')]['x'],'y':_0x1da322[_0x286a('0xf2')]['y']},_0x13a59d===this[_0x286a('0x10b')]?this[_0x286a('0x69')][_0x286a('0x2c')]():this[_0x286a('0x10b')]=_0x13a59d):(this[_0x286a('0x10f')]=null,this['activeChange']=null);});}[_0x286a('0x86')](_0x51a7a4){do{const _0x28d7e2=_0x51a7a4[_0x286a('0xa2')](_0x286a('0xf6'));if(_0x28d7e2)return _0x28d7e2;_0x51a7a4=_0x51a7a4[_0x286a('0x5a')];}while(_0x51a7a4);return null;}[_0x286a('0x2a')](){this[_0x286a('0xe1')][_0x286a('0x99')][_0x286a('0x1b')](_0x90988a=>{for(const _0xd37d1a of this[_0x286a('0xe1')]['model'][_0x286a('0xf3')])_0x90988a[_0x286a('0x8c')](_0xd37d1a);});}}function et(_0x12d823,_0x30c583){return(_0x46c132,_0x1c34c4,_0xca29cb)=>{if(!_0xca29cb['consumable']['test'](_0x1c34c4[_0x286a('0x3d')],_0x46c132[_0x286a('0x9c')]))return;const _0x2804c7=_0x1c34c4[_0x286a('0x3d')][_0x286a('0x9a')](),_0x116eb5=_0x1c34c4[_0x286a('0x3d')][_0x286a('0xf0')],_0x2c2f42=_0x12d823[_0x286a('0x99')]['schema'];let _0x38e277=null,_0x5a0589=null,_0x555ea8=!0x1,_0x3af26d=!0x1;for(const _0x17774b of _0x2804c7){const _0x20a15b=_0x17774b[_0x286a('0x4c')];_0x555ea8=_0x555ea8||_0x2c2f42[_0x286a('0x68')](_0x20a15b);const _0x4f2852=_0xca29cb[_0x286a('0x10a')]['toViewElement'](_0x20a15b);if(_0x4f2852&&_0x4f2852['getCustomProperty'](_0x286a('0x29')))return;_0x286a('0x102')==_0x17774b['type']&&(_0x2c2f42['isBlock'](_0x20a15b)&&!_0x2c2f42[_0x286a('0xe3')](_0x20a15b)&&(_0x20a15b['nextSibling']||_0x116eb5[_0x286a('0xec')]?_0x38e277&&_0x38e277[_0x286a('0x5a')]==_0x20a15b||(_0x38e277=_0x20a15b,_0x42c34d(_0x17774b[_0x286a('0x24')]),_0x3af26d=!0x0):_0x5a0589=_0x5a0589||_0x17774b[_0x286a('0x24')]));}function _0x42c34d(_0x547da4){const _0x46ecb0=_0xca29cb[_0x286a('0x10a')][_0x286a('0x56')](_0x547da4),_0x5794ad=_0xca29cb[_0x286a('0xd1')]['createUIElement']('span',{'class':_0x286a('0x64')+_0x30c583});_0xca29cb[_0x286a('0xd1')][_0x286a('0xd6')](_0x46ecb0,_0x5794ad),_0xca29cb['mapper']['bindElementToMarker'](_0x5794ad,_0x1c34c4['markerName']);}_0x555ea8||_0x3af26d||!_0x5a0589||_0x42c34d(_0x5a0589);};}export class RestoreRevisionCommand extends _0x33b267{constructor(_0x59bdbb){super(_0x59bdbb);const _0x190c80=_0x59bdbb[_0x286a('0x90')][_0x286a('0x11e')](d);this[_0x286a('0x11f')]=!0x1,this[_0x286a('0x117')](_0x190c80,_0x286a('0xc1'),()=>this['refresh']()),this[_0x286a('0x117')](_0x190c80,_0x286a('0x8e'),()=>this[_0x286a('0xe8')]());}[_0x286a('0x62')](){const _0x3a8206=this[_0x286a('0xe1')],_0x2b5b51=_0x3a8206[_0x286a('0x90')][_0x286a('0x11e')](d),_0x43e6b2=_0x2b5b51[_0x286a('0x12c')]?_0x2b5b51[_0x286a('0x9e')][_0x286a('0x22')]:null;_0x3a8206[_0x286a('0x43')][_0x286a('0x11e')](_0x286a('0x10c'))[_0x286a('0x8b')](_0x43e6b2);}[_0x286a('0xe8')](){const {isReady:_0x14a458,isEnabled:_0xf600f0}=this[_0x286a('0xe1')]['plugins']['get'](d);this[_0x286a('0x66')]=_0x14a458&&_0xf600f0;}}export class ShowChangeCommand extends _0x33b267{constructor(_0x347f72,{direction:_0x566331}){super(_0x347f72);const _0x2cbf43=_0x347f72[_0x286a('0x90')][_0x286a('0x11e')](d);this[_0x286a('0x11f')]=!0x1,this[_0x286a('0x13')]=_0x286a('0x2')===_0x566331?0x1:-0x1,this[_0x286a('0x117')](_0x2cbf43,_0x286a('0xc1'),()=>this['refresh']()),this[_0x286a('0x117')](_0x2cbf43,_0x286a('0x8e'),()=>this[_0x286a('0xe8')]());}[_0x286a('0x62')](){const _0x5ef914=this[_0x286a('0xe1')],_0x354856=_0x5ef914[_0x286a('0x90')]['get'](d),{isNavigationMode:_0x2b6a6d,currentChangeNumber:_0x1bfd05}=_0x354856;let _0x1622bf;if(_0x354856[_0x286a('0x10b')]=_0x2b6a6d?_0x354856[_0x286a('0x9e')][_0x286a('0xdd')][_0x286a('0x11e')](_0x1bfd05+this['_step']):_0x354856[_0x286a('0x9e')][_0x286a('0xdd')][_0x286a('0xd0')],_0x354856[_0x286a('0x10b')][_0x286a('0xae')][_0x286a('0xf4')])_0x1622bf=_0x5ef914['editing'][_0x286a('0xe2')][_0x286a('0x75')](_0x354856[_0x286a('0x10b')][_0x286a('0x3f')]);else{const _0x438164=_0x5ef914[_0x286a('0x99')]['markers'][_0x286a('0x11e')](_0x286a('0x42')+_0x354856['activeChange']['id']);_0x1622bf=_0xd62a0c(_0x5ef914[_0x286a('0x9b')],_0x438164);}_0x2f86b7({'target':_0x1622bf,'viewportOffset':0x28});}[_0x286a('0xe8')](){const {isNavigationMode:_0x2cbf2e,currentChangeNumber:_0x1c4f25,numberOfChanges:_0x9684ac,isReady:_0x3349bc,isEnabled:_0x31e838}=this[_0x286a('0xe1')][_0x286a('0x90')]['get'](d);this[_0x286a('0x66')]=!!(_0x31e838&&_0x3349bc&&_0x9684ac)&&(!_0x2cbf2e||(0x1===this[_0x286a('0x13')]?_0x1c4f25<_0x9684ac-0x1:_0x1c4f25>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1327=['bindTemplate','extendTemplate','buttonView','isEnabled','_action','ck-on','isReady','isActionsDropdownOpen','first','items','isOpen','listView','change:isActionsDropdownOpen','source','map','button','action','locale','listenTo','function','execute','class','ck-revision-history-sidebar__revision__actions','set','name','model','isVisible'];(function(_0x2d5dbe,_0x13275c){const _0x4cc089=function(_0x396561){while(--_0x396561){_0x2d5dbe['push'](_0x2d5dbe['shift']());}};_0x4cc089(++_0x13275c);}(_0x1327,0x122));const _0x4cc0=function(_0x2d5dbe,_0x13275c){_0x2d5dbe=_0x2d5dbe-0x0;let _0x4cc089=_0x1327[_0x2d5dbe];return _0x4cc089;};import{Collection as _0x2f3d82}from'ckeditor5/src/utils';import{icons as _0x8ce893}from'ckeditor5/src/core';import{Model as _0x1d9ba0,addListToDropdown as _0x15a5be,createDropdown as _0x4197c6}from'ckeditor5/src/ui';import{getTranslation as _0x2a0534}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x3139bf,_0x54e3ab){const _0x54cd3c=_0x3139bf[_0x4cc0('0x7')],_0x5a0679=_0x3139bf[_0x4cc0('0x18')],_0x31963b=_0x4197c6(_0x5a0679);_0x31963b['panelPosition']='sw';const _0x38bb0e=function(_0x145685,_0xbd794b){const _0x5856bc=function(_0x22cb01,_0x162044){const _0x17aa24=_0x22cb01[_0x4cc0('0x18')],_0x202f6f={'Compare\x20against\x20selected':_0x2a0534(_0x17aa24,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x2a0534(_0x17aa24,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x2a0534(_0x17aa24,'Restore\x20this\x20revision')};return _0x162044[_0x4cc0('0x15')](_0x56c0bb=>{const _0x333a11=_0x202f6f[_0x56c0bb['name']];return _0x333a11&&_0x333a11!==_0x56c0bb[_0x4cc0('0x4')]&&(_0x56c0bb[_0x4cc0('0x4')]=_0x333a11),_0x56c0bb;});}(_0x145685,_0xbd794b),_0x62d5a3=new _0x2f3d82();for(const _0x38a8a9 of _0x5856bc){const _0x5c4d62={'type':_0x4cc0('0x16'),'model':new _0x1d9ba0({'label':_0x38a8a9['name'],'class':_0x38a8a9[_0x4cc0('0x1')],'withText':!0x0,'_action':_0x38a8a9[_0x4cc0('0x17')]})};_0x5c4d62[_0x4cc0('0x5')]['bind'](_0x4cc0('0xa'))['to'](_0x145685,_0x4cc0('0xe'),_0x31bf11=>_0x4cc0('0x1a')!=typeof _0x38a8a9[_0x4cc0('0xa')]||(!_0x31bf11||_0x38a8a9['isEnabled'](_0x145685))),_0x62d5a3['add'](_0x5c4d62);}return _0x62d5a3;}(_0x3139bf,_0x54e3ab);return _0x3139bf['bind']('isActionsDropdownOpen')['to'](_0x31963b,_0x4cc0('0x11')),_0x31963b[_0x4cc0('0x9')][_0x4cc0('0x3')]({'label':_0x2a0534(_0x5a0679,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x8ce893['threeVerticalDots']}),_0x31963b[_0x4cc0('0x8')]({'attributes':{'class':[_0x4cc0('0x2'),_0x54cd3c['if'](_0x4cc0('0xe'),_0x4cc0('0xc'))]},'on':{'click':_0x54cd3c['to'](_0x49e893=>_0x49e893['stopPropagation']())}}),_0x31963b['on'](_0x4cc0('0x0'),_0x44362f=>{_0x3139bf[_0x4cc0('0xd')]&&_0x4cc0('0x1a')==typeof _0x44362f[_0x4cc0('0x14')][_0x4cc0('0xb')]&&_0x44362f[_0x4cc0('0x14')][_0x4cc0('0xb')](_0x3139bf);}),_0x15a5be(_0x31963b,_0x38bb0e),_0x31963b[_0x4cc0('0x19')](_0x3139bf,_0x4cc0('0x13'),(_0x451c56,_0x4a0107,_0x483637)=>{if(_0x483637)for(const _0x4d3fc6 of _0x31963b[_0x4cc0('0x12')][_0x4cc0('0x10')]){const _0x1e16e4=_0x4d3fc6['children'][_0x4cc0('0xf')],_0x3357c2=_0x54e3ab['find'](_0x186434=>_0x186434[_0x4cc0('0x17')]===_0x1e16e4[_0x4cc0('0xb')])[_0x4cc0('0x6')];_0x4d3fc6[_0x4cc0('0x6')]=void 0x0===_0x3357c2||_0x3357c2(_0x3139bf);}}),_0x31963b;}
23
+ const _0x4789=['isVisible','find','execute','action','first','ck-revision-history-sidebar__revision__actions','bindTemplate','children','locale','add','panelPosition','Show\x20more\x20items','extendTemplate','isOpen','source','stopPropagation','function','items','isActionsDropdownOpen','ck-on','bind','buttonView','name','Restore\x20this\x20revision','isEnabled','Name\x20this\x20revision','model','threeVerticalDots','listView','button','_action','map','Compare\x20against\x20selected','class'];(function(_0x1ee263,_0x478972){const _0x22cee9=function(_0x1f6a44){while(--_0x1f6a44){_0x1ee263['push'](_0x1ee263['shift']());}};_0x22cee9(++_0x478972);}(_0x4789,0xe5));const _0x22ce=function(_0x1ee263,_0x478972){_0x1ee263=_0x1ee263-0x0;let _0x22cee9=_0x4789[_0x1ee263];return _0x22cee9;};import{Collection as _0x21326e}from'ckeditor5/src/utils';import{icons as _0x2cf214}from'ckeditor5/src/core';import{Model as _0x46a1f5,addListToDropdown as _0x44b36c,createDropdown as _0x2d9d27}from'ckeditor5/src/ui';import{getTranslation as _0x4e171e}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x3dfe98,_0x382bef){const _0x189dc1=_0x3dfe98[_0x22ce('0xf')],_0x1f9292=_0x3dfe98[_0x22ce('0x11')],_0x1dfb26=_0x2d9d27(_0x1f9292);_0x1dfb26[_0x22ce('0x13')]='sw';const _0x5721c1=function(_0x59204f,_0x19c3f2){const _0x9b62b5=function(_0x1a0f58,_0x4197f3){const _0x45e34c=_0x1a0f58[_0x22ce('0x11')],_0x30de03={'Compare\x20against\x20selected':_0x4e171e(_0x45e34c,_0x22ce('0x7')),'Name\x20this\x20revision':_0x4e171e(_0x45e34c,_0x22ce('0x0')),'Restore\x20this\x20revision':_0x4e171e(_0x45e34c,_0x22ce('0x20'))};return _0x4197f3[_0x22ce('0x6')](_0x10cf34=>{const _0xaeab3e=_0x30de03[_0x10cf34[_0x22ce('0x1f')]];return _0xaeab3e&&_0xaeab3e!==_0x10cf34[_0x22ce('0x1f')]&&(_0x10cf34[_0x22ce('0x1f')]=_0xaeab3e),_0x10cf34;});}(_0x59204f,_0x19c3f2),_0x22eea5=new _0x21326e();for(const _0x1140d8 of _0x9b62b5){const _0x36527d={'type':_0x22ce('0x4'),'model':new _0x46a1f5({'label':_0x1140d8[_0x22ce('0x1f')],'class':_0x1140d8[_0x22ce('0x8')],'withText':!0x0,'_action':_0x1140d8[_0x22ce('0xc')]})};_0x36527d[_0x22ce('0x1')][_0x22ce('0x1d')](_0x22ce('0x21'))['to'](_0x59204f,_0x22ce('0x1b'),_0x626b13=>_0x22ce('0x19')!=typeof _0x1140d8[_0x22ce('0x21')]||(!_0x626b13||_0x1140d8[_0x22ce('0x21')](_0x59204f))),_0x22eea5[_0x22ce('0x12')](_0x36527d);}return _0x22eea5;}(_0x3dfe98,_0x382bef);return _0x3dfe98[_0x22ce('0x1d')](_0x22ce('0x1b'))['to'](_0x1dfb26,_0x22ce('0x16')),_0x1dfb26[_0x22ce('0x1e')]['set']({'label':_0x4e171e(_0x1f9292,_0x22ce('0x14')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2cf214[_0x22ce('0x2')]}),_0x1dfb26[_0x22ce('0x15')]({'attributes':{'class':[_0x22ce('0xe'),_0x189dc1['if'](_0x22ce('0x1b'),_0x22ce('0x1c'))]},'on':{'click':_0x189dc1['to'](_0x4be46d=>_0x4be46d[_0x22ce('0x18')]())}}),_0x1dfb26['on'](_0x22ce('0xb'),_0x29be97=>{_0x3dfe98['isReady']&&_0x22ce('0x19')==typeof _0x29be97[_0x22ce('0x17')][_0x22ce('0x5')]&&_0x29be97[_0x22ce('0x17')][_0x22ce('0x5')](_0x3dfe98);}),_0x44b36c(_0x1dfb26,_0x5721c1),_0x1dfb26['listenTo'](_0x3dfe98,'change:isActionsDropdownOpen',(_0x7bbd51,_0x3555bc,_0x5a714d)=>{if(_0x5a714d)for(const _0x346963 of _0x1dfb26[_0x22ce('0x3')][_0x22ce('0x1a')]){const _0x29ac77=_0x346963[_0x22ce('0x10')][_0x22ce('0xd')],_0x4bd3b7=_0x382bef[_0x22ce('0xa')](_0x3b17c7=>_0x3b17c7['action']===_0x29ac77[_0x22ce('0x5')])[_0x22ce('0x9')];_0x346963[_0x22ce('0x9')]=void 0x0===_0x4bd3b7||_0x4bd3b7(_0x3dfe98);}}),_0x1dfb26;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa769=['Revision\x20creator','push','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author_creator','setTemplate','ck-revision-history-sidebar__revision-author__name','set','span'];(function(_0x4823d1,_0xa76913){const _0x29b1c9=function(_0x1f3da7){while(--_0x1f3da7){_0x4823d1['push'](_0x4823d1['shift']());}};_0x29b1c9(++_0xa76913);}(_0xa769,0x193));const _0x29b1=function(_0x4823d1,_0xa76913){_0x4823d1=_0x4823d1-0x0;let _0x29b1c9=_0xa769[_0x4823d1];return _0x29b1c9;};import{View as _0x3155ae,IconView as _0x31f582}from'ckeditor5/src/ui';import{getTranslation as _0x5bfaed}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x112e88 from'../../../theme/icons/user.svg';export default class ti extends _0x3155ae{constructor(_0x463e08,_0x3044b8,_0x22b445){super(_0x463e08);const _0x30f74c=new _0x31f582();_0x30f74c[_0x29b1('0x3')]({'content':_0x112e88,'viewBox':'0\x200\x2011\x2010'});const _0x54ddfc=['ck',_0x29b1('0x7')];_0x22b445&&_0x54ddfc[_0x29b1('0x6')](_0x29b1('0x0'));const _0x4d8a4c=[{'tag':_0x29b1('0x4'),'attributes':{'class':['ck',_0x29b1('0x2')],'title':_0x5bfaed(_0x463e08,_0x22b445?_0x29b1('0x5'):'Revision\x20author')},'children':[_0x30f74c,_0x3044b8['name']]}];this[_0x29b1('0x1')]({'tag':'li','attributes':{'class':_0x54ddfc},'children':_0x4d8a4c});}}
23
+ const _0x4c7e=['name','span','Revision\x20creator','Revision\x20author','ck-revision-history-sidebar__revision-author__name','setTemplate','ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author','0\x200\x2011\x2010','set','push'];(function(_0x50c434,_0x4c7e57){const _0x3cb3b8=function(_0x1f4bb0){while(--_0x1f4bb0){_0x50c434['push'](_0x50c434['shift']());}};_0x3cb3b8(++_0x4c7e57);}(_0x4c7e,0x1b7));const _0x3cb3=function(_0x50c434,_0x4c7e57){_0x50c434=_0x50c434-0x0;let _0x3cb3b8=_0x4c7e[_0x50c434];return _0x3cb3b8;};import{View as _0x44b18c,IconView as _0xa46e87}from'ckeditor5/src/ui';import{getTranslation as _0x53f610}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x169a62 from'../../../theme/icons/user.svg';export default class ti extends _0x44b18c{constructor(_0x44177d,_0x1f1339,_0x271c32){super(_0x44177d);const _0x31866c=new _0xa46e87();_0x31866c[_0x3cb3('0xa')]({'content':_0x169a62,'viewBox':_0x3cb3('0x9')});const _0x1f626a=['ck',_0x3cb3('0x8')];_0x271c32&&_0x1f626a[_0x3cb3('0x0')](_0x3cb3('0x7'));const _0xa9aa91=[{'tag':_0x3cb3('0x2'),'attributes':{'class':['ck',_0x3cb3('0x5')],'title':_0x53f610(_0x44177d,_0x271c32?_0x3cb3('0x3'):_0x3cb3('0x4'))},'children':[_0x31866c,_0x1f1339[_0x3cb3('0x1')]]}];this[_0x3cb3('0x6')]({'tag':'li','attributes':{'class':_0x1f626a},'children':_0xa9aa91});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2831=['set','span','Revision\x20name','extendTemplate'];(function(_0x5f57be,_0x2831a7){var _0x3e7905=function(_0x277a3b){while(--_0x277a3b){_0x5f57be['push'](_0x5f57be['shift']());}};_0x3e7905(++_0x2831a7);}(_0x2831,0x1f4));var _0x3e79=function(_0x5f57be,_0x2831a7){_0x5f57be=_0x5f57be-0x0;var _0x3e7905=_0x2831[_0x5f57be];return _0x3e7905;};import{LabeledFieldView as _0x2834ff}from'ckeditor5/src/ui';import{getTranslation as _0x26f4f0}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x2834ff{constructor(_0x5e6bb8,_0x41b110){super(_0x5e6bb8,_0x41b110),this[_0x3e79('0x0')]({'label':_0x26f4f0(_0x5e6bb8,_0x3e79('0x2'))}),this[_0x3e79('0x3')]({'tag':_0x3e79('0x1'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x3a80=['ck-revision-history-sidebar__revision-name','span','extendTemplate','set'];(function(_0x2c36aa,_0x3a8018){var _0x4ab9e7=function(_0xd60c1a){while(--_0xd60c1a){_0x2c36aa['push'](_0x2c36aa['shift']());}};_0x4ab9e7(++_0x3a8018);}(_0x3a80,0x11d));var _0x4ab9=function(_0x2c36aa,_0x3a8018){_0x2c36aa=_0x2c36aa-0x0;var _0x4ab9e7=_0x3a80[_0x2c36aa];return _0x4ab9e7;};import{LabeledFieldView as _0x47afaa}from'ckeditor5/src/ui';import{getTranslation as _0x70a42}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x47afaa{constructor(_0x326635,_0x1aa01d){super(_0x326635,_0x1aa01d),this[_0x4ab9('0x2')]({'label':_0x70a42(_0x326635,'Revision\x20name')}),this[_0x4ab9('0x1')]({'tag':_0x4ab9('0x0'),'attributes':{'class':[_0x4ab9('0x3')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5476=['fieldView','bindTemplate','deselect','set','unshift','placeholder','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','div','createdAt','revisionNameView','from','filter','setTemplate','ck-disabled','length','render','authors','listenTo','highlight','unhighlight','uiLanguage','isSelected','select','ck-revision-history-sidebar__actions_dropdown_open','map','span','ck-revision-history-sidebar__revision__date','creator','isHighlighted','bind','revisionActionsView','isActionsDropdownOpen','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision-authors','.ck-thread__remove-confirm','isEnabled','extendTemplate','ck-revision-history-sidebar__revision__controls-wrapper','closest','element','setName','fire','name','change','ck-revision-history-sidebar__revision_highlighted','220','_createdAtFormatted','value'];(function(_0xa38b69,_0x547650){const _0xbdc77f=function(_0x2486d7){while(--_0x2486d7){_0xa38b69['push'](_0xa38b69['shift']());}};_0xbdc77f(++_0x547650);}(_0x5476,0x8e));const _0xbdc7=function(_0xa38b69,_0x547650){_0xa38b69=_0xa38b69-0x0;let _0xbdc77f=_0x5476[_0xa38b69];return _0xbdc77f;};import{View as _0x49e9c1,createLabeledInputText as _0x2fab31}from'ckeditor5/src/ui';import{ConfirmMixin as _0x5d3f10}from'ckeditor5-collaboration/src/collaboration-core';import _0x3a0907 from'./revisionnameview';import _0x4798b2 from'./revisionauthorview';import{dateToPrettyFormat as _0x12659d}from'./utils';import{createActionsDropdownView as _0x4a85c9}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x5d3f10(_0x49e9c1){constructor(_0x3d53f2,_0x297cc0,_0x2101d1){super(_0x3d53f2);const _0x6e13f9=this[_0xbdc7('0x3')],_0x25425e=function(_0x15179c,_0x37b172){const _0x38ac67=Array[_0xbdc7('0xc')](_0x37b172[_0xbdc7('0x12')])[_0xbdc7('0xd')](_0x691c76=>_0x691c76!=_0x37b172[_0xbdc7('0x1d')]);return _0x37b172[_0xbdc7('0x1d')]&&_0x38ac67[_0xbdc7('0x6')](_0x37b172[_0xbdc7('0x1d')]),_0x38ac67[_0xbdc7('0x1a')](_0xb7949b=>new _0x4798b2(_0x15179c,_0xb7949b,_0xb7949b==_0x37b172[_0xbdc7('0x1d')]));}(_0x3d53f2,_0x297cc0);this['id']=_0x297cc0['id'],this['_revision']=_0x297cc0,this[_0xbdc7('0x1f')](_0xbdc7('0x2c'),_0xbdc7('0xa'))['to'](_0x297cc0),this[_0xbdc7('0x1f')](_0xbdc7('0x0'))['to'](this,_0xbdc7('0xa'),_0x42a889=>_0x42a889?_0x12659d(_0x3d53f2[_0xbdc7('0x16')],_0x42a889):void 0x0),this[_0xbdc7('0x5')]('isSelected',!0x1),this[_0xbdc7('0x5')](_0xbdc7('0x1e'),!0x1),this[_0xbdc7('0x5')](_0xbdc7('0x21'),!0x1),this[_0xbdc7('0x5')]('isReady',!0x1),this[_0xbdc7('0x5')]('isEnabled',!0x1),this['revisionNameView']=new _0x3a0907(_0x3d53f2,_0x2fab31),this[_0xbdc7('0xb')][_0xbdc7('0x2')][_0xbdc7('0x26')]({'attributes':{'maxlength':_0xbdc7('0x2f')}}),this[_0xbdc7('0xb')][_0xbdc7('0x2')]['bind'](_0xbdc7('0x1'),_0xbdc7('0x7'))['to'](this,_0xbdc7('0x2c'),_0xbdc7('0x0')),this[_0xbdc7('0xb')]['bind']('isEnabled')['to'](this,_0xbdc7('0x17'),this,_0xbdc7('0x25'),(_0x2df6c6,_0x4a03f8)=>_0x2df6c6&&_0x4a03f8),this['revisionActionsView']=_0x2101d1&&_0x2101d1[_0xbdc7('0x10')]?_0x4a85c9(this,_0x2101d1):'',this['revisionActionsView']&&this[_0xbdc7('0x20')][_0xbdc7('0x1f')](_0xbdc7('0x25'))['to'](this),this[_0xbdc7('0xe')]({'tag':_0xbdc7('0x9'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x6e13f9['if']('isConfirm',_0xbdc7('0x8'))]},'children':[{'tag':_0xbdc7('0x9'),'attributes':{'class':['ck','ck-reset',_0xbdc7('0x22'),_0x6e13f9['if']('isEnabled',_0xbdc7('0xf'),_0x395f87=>!_0x395f87),_0x6e13f9['if'](_0xbdc7('0x17'),'ck-revision-history-sidebar__revision_selected'),_0x6e13f9['if'](_0xbdc7('0x1e'),_0xbdc7('0x2e')),_0x6e13f9['if'](_0xbdc7('0x21'),_0xbdc7('0x19'))]},'children':[this[_0xbdc7('0xb')],{'tag':_0xbdc7('0x1b'),'attributes':{'class':['ck',_0xbdc7('0x1c')]},'children':[{'text':_0x6e13f9['to'](_0xbdc7('0x0'))}]},{'tag':_0xbdc7('0x9'),'attributes':{'class':['ck',_0xbdc7('0x27')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0xbdc7('0x23')]},'children':_0x25425e}]},this[_0xbdc7('0x20')]],'on':{'click':_0x6e13f9['to'](_0x23728f=>{_0x23728f['srcElement'][_0xbdc7('0x28')](_0xbdc7('0x24'))||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}[_0xbdc7('0x11')](){super[_0xbdc7('0x11')]();const _0x1f1d1c=this['revisionNameView'][_0xbdc7('0x2')][_0xbdc7('0x29')];this[_0xbdc7('0x13')](_0x1f1d1c,_0xbdc7('0x2d'),()=>{this[_0xbdc7('0x2b')](_0xbdc7('0x2a'),{'id':this['id'],'name':_0x1f1d1c[_0xbdc7('0x1')]});});}[_0xbdc7('0x18')](){this[_0xbdc7('0x17')]=!0x0;}[_0xbdc7('0x4')](){this[_0xbdc7('0x17')]=!0x1;}[_0xbdc7('0x14')](){this[_0xbdc7('0x1e')]=!0x0;}[_0xbdc7('0x15')](){this[_0xbdc7('0x1e')]=!0x1;}}
23
+ const _0x5539=['_revision','ck-revision-history-sidebar__revision_selected','revisionActionsView','closest','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','.ck-thread__remove-confirm','render','isReady','unshift','creator','from','highlight','extendTemplate','ck-revision-history-sidebar__revision_highlighted','fire','isSelected','isEnabled','unhighlight','value','ck-revision-history-sidebar__revision-wrapper','set','ck-revision-history-sidebar__revision__controls-wrapper','bind','filter','revisionNameView','fieldView','element','authors','deselect','ck-revision-history-sidebar__revision__date','_createdAtFormatted','createdAt','div','listenTo','map','placeholder','ck-disabled','ck-revision-history-sidebar__actions_dropdown_open','select','name','uiLanguage','change','ck-reset','isConfirm','setTemplate','span','isHighlighted','ck-revision-history-sidebar__revision'];(function(_0x24f598,_0x5539f6){const _0x17b4ef=function(_0x36f596){while(--_0x36f596){_0x24f598['push'](_0x24f598['shift']());}};_0x17b4ef(++_0x5539f6);}(_0x5539,0xff));const _0x17b4=function(_0x24f598,_0x5539f6){_0x24f598=_0x24f598-0x0;let _0x17b4ef=_0x5539[_0x24f598];return _0x17b4ef;};import{View as _0x23c76b,createLabeledInputText as _0x480bf0}from'ckeditor5/src/ui';import{ConfirmMixin as _0x25c5c6}from'ckeditor5-collaboration/src/collaboration-core';import _0x325755 from'./revisionnameview';import _0x197778 from'./revisionauthorview';import{dateToPrettyFormat as _0x1e26d2}from'./utils';import{createActionsDropdownView as _0x545078}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x25c5c6(_0x23c76b){constructor(_0x18c4c5,_0x6ae9a6,_0x34cf61){super(_0x18c4c5);const _0x2e8305=this['bindTemplate'],_0x201397=function(_0x3df003,_0x48e466){const _0x32cd75=Array[_0x17b4('0x2b')](_0x48e466[_0x17b4('0xc')])[_0x17b4('0x8')](_0x4250d0=>_0x4250d0!=_0x48e466['creator']);return _0x48e466[_0x17b4('0x2a')]&&_0x32cd75[_0x17b4('0x29')](_0x48e466['creator']),_0x32cd75[_0x17b4('0x13')](_0x31939f=>new _0x197778(_0x3df003,_0x31939f,_0x31939f==_0x48e466[_0x17b4('0x2a')]));}(_0x18c4c5,_0x6ae9a6);this['id']=_0x6ae9a6['id'],this[_0x17b4('0x21')]=_0x6ae9a6,this[_0x17b4('0x7')](_0x17b4('0x18'),_0x17b4('0x10'))['to'](_0x6ae9a6),this[_0x17b4('0x7')](_0x17b4('0xf'))['to'](this,'createdAt',_0x4b05b4=>_0x4b05b4?_0x1e26d2(_0x18c4c5[_0x17b4('0x19')],_0x4b05b4):void 0x0),this[_0x17b4('0x5')](_0x17b4('0x0'),!0x1),this['set'](_0x17b4('0x1f'),!0x1),this[_0x17b4('0x5')]('isActionsDropdownOpen',!0x1),this['set'](_0x17b4('0x28'),!0x1),this[_0x17b4('0x5')](_0x17b4('0x1'),!0x1),this['revisionNameView']=new _0x325755(_0x18c4c5,_0x480bf0),this[_0x17b4('0x9')][_0x17b4('0xa')][_0x17b4('0x2d')]({'attributes':{'maxlength':'220'}}),this[_0x17b4('0x9')][_0x17b4('0xa')][_0x17b4('0x7')](_0x17b4('0x3'),_0x17b4('0x14'))['to'](this,_0x17b4('0x18'),'_createdAtFormatted'),this[_0x17b4('0x9')][_0x17b4('0x7')]('isEnabled')['to'](this,_0x17b4('0x0'),this,'isEnabled',(_0x5b936c,_0xc0114)=>_0x5b936c&&_0xc0114),this[_0x17b4('0x23')]=_0x34cf61&&_0x34cf61['length']?_0x545078(this,_0x34cf61):'',this[_0x17b4('0x23')]&&this[_0x17b4('0x23')]['bind'](_0x17b4('0x1'))['to'](this),this[_0x17b4('0x1d')]({'tag':_0x17b4('0x11'),'attributes':{'class':['ck',_0x17b4('0x1b'),_0x17b4('0x4'),_0x2e8305['if'](_0x17b4('0x1c'),_0x17b4('0x25'))]},'children':[{'tag':_0x17b4('0x11'),'attributes':{'class':['ck',_0x17b4('0x1b'),_0x17b4('0x20'),_0x2e8305['if'](_0x17b4('0x1'),_0x17b4('0x15'),_0x3139ab=>!_0x3139ab),_0x2e8305['if'](_0x17b4('0x0'),_0x17b4('0x22')),_0x2e8305['if']('isHighlighted',_0x17b4('0x2e')),_0x2e8305['if']('isActionsDropdownOpen',_0x17b4('0x16'))]},'children':[this[_0x17b4('0x9')],{'tag':_0x17b4('0x1e'),'attributes':{'class':['ck',_0x17b4('0xe')]},'children':[{'text':_0x2e8305['to'](_0x17b4('0xf'))}]},{'tag':_0x17b4('0x11'),'attributes':{'class':['ck',_0x17b4('0x6')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x201397}]},this[_0x17b4('0x23')]],'on':{'click':_0x2e8305['to'](_0x10ff81=>{_0x10ff81['srcElement'][_0x17b4('0x24')](_0x17b4('0x26'))||this[_0x17b4('0x28')]&&this['isEnabled']&&this[_0x17b4('0x2f')]('select',{'id':this['id']});})}}]});}[_0x17b4('0x27')](){super['render']();const _0x47cc80=this[_0x17b4('0x9')][_0x17b4('0xa')][_0x17b4('0xb')];this[_0x17b4('0x12')](_0x47cc80,_0x17b4('0x1a'),()=>{this['fire']('setName',{'id':this['id'],'name':_0x47cc80[_0x17b4('0x3')]});});}[_0x17b4('0x17')](){this[_0x17b4('0x0')]=!0x0;}[_0x17b4('0xd')](){this[_0x17b4('0x0')]=!0x1;}[_0x17b4('0x2c')](){this[_0x17b4('0x1f')]=!0x0;}[_0x17b4('0x2')](){this['isHighlighted']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1fe8=['bindTemplate','false','button','click','ck-revision-history-sidebar__subrevision-collapser__inner','span','ck-hidden','isVisible','_isCollapsed','set'];(function(_0x344593,_0x1fe855){const _0x1250ae=function(_0x43382b){while(--_0x43382b){_0x344593['push'](_0x344593['shift']());}};_0x1250ae(++_0x1fe855);}(_0x1fe8,0x13f));const _0x1250=function(_0x344593,_0x1fe855){_0x344593=_0x344593-0x0;let _0x1250ae=_0x1fe8[_0x344593];return _0x1250ae;};import{View as _0xbb756b}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0xbb756b{constructor(_0x29cd94){super(_0x29cd94);const _0x2ad937=this[_0x1250('0x1')];this[_0x1250('0x0')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x1250('0x6'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x2ad937['if'](_0x1250('0x8'),_0x1250('0x7'),_0x3445ff=>!_0x3445ff),_0x2ad937['if'](_0x1250('0x9'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x1250('0x3'),'aria-pressed':_0x2ad937['to'](_0x1250('0x9'),_0xdf2fad=>_0xdf2fad?_0x1250('0x2'):'true')},'children':[{'tag':_0x1250('0x6'),'attributes':{'class':['ck',_0x1250('0x5')]}}],'on':{'click':_0x2ad937['to'](_0x1250('0x4'))}});}['toggle'](){this[_0x1250('0x9')]=!this[_0x1250('0x9')];}}
23
+ const _0x57b9=['ck-revision-history-sidebar__subrevision-collapser_collapsed','set','false','_isCollapsed','toggle','setTemplate','ck-revision-history-sidebar__subrevision-collapser','click','button','bindTemplate','span','isVisible'];(function(_0x483015,_0x57b9f2){const _0x58812d=function(_0x441169){while(--_0x441169){_0x483015['push'](_0x483015['shift']());}};_0x58812d(++_0x57b9f2);}(_0x57b9,0x76));const _0x5881=function(_0x483015,_0x57b9f2){_0x483015=_0x483015-0x0;let _0x58812d=_0x57b9[_0x483015];return _0x58812d;};import{View as _0x117a5b}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x117a5b{constructor(_0x2a716f){super(_0x2a716f);const _0x594361=this[_0x5881('0xb')];this[_0x5881('0x3')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5881('0x7')]({'tag':_0x5881('0x0'),'attributes':{'class':['ck',_0x5881('0x8'),_0x594361['if'](_0x5881('0x1'),'ck-hidden',_0x342444=>!_0x342444),_0x594361['if'](_0x5881('0x5'),_0x5881('0x2'))],'role':_0x5881('0xa'),'aria-pressed':_0x594361['to'](_0x5881('0x5'),_0x2ac001=>_0x2ac001?_0x5881('0x4'):'true')},'children':[{'tag':_0x5881('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x594361['to'](_0x5881('0x9'))}});}[_0x5881('0x6')](){this[_0x5881('0x5')]=!this[_0x5881('0x5')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x452d=['ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision','uiLanguage','span','fire','_createdAtFormatted','bindTemplate','isSelected','creator','bind','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__date','_parentRevisionId','set','select','deselect','setTemplate'];(function(_0x2aee1a,_0x452d77){const _0x45a360=function(_0x514610){while(--_0x514610){_0x2aee1a['push'](_0x2aee1a['shift']());}};_0x45a360(++_0x452d77);}(_0x452d,0x118));const _0x45a3=function(_0x2aee1a,_0x452d77){_0x2aee1a=_0x2aee1a-0x0;let _0x45a360=_0x452d[_0x2aee1a];return _0x45a360;};import{View as _0xc72a5f}from'ckeditor5/src/ui';import _0x8d4faf from'./revisionauthorview';import{dateToPrettyFormat as _0x2665d6}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0xc72a5f{constructor(_0x375dc3,_0x43eeee,_0x3a1c83){super(_0x375dc3);const _0x514ed7=this[_0x45a3('0xf')];this['id']=_0x43eeee['id'],this['bind']('createdAt')['to'](_0x43eeee),this[_0x45a3('0x4')](_0x45a3('0x10'),!0x1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4cf7f7=>_0x4cf7f7?_0x2665d6(_0x375dc3[_0x45a3('0xb')],_0x4cf7f7):void 0x0),this[_0x45a3('0x3')]=_0x3a1c83,this[_0x45a3('0x7')]({'tag':'div','attributes':{'class':['ck','ck-reset',_0x45a3('0xa'),_0x45a3('0x9'),_0x514ed7['if'](_0x45a3('0x10'),_0x45a3('0x1'))]},'children':[{'tag':_0x45a3('0xc'),'attributes':{'class':['ck',_0x45a3('0x2')]},'children':[{'text':_0x514ed7['to'](_0x45a3('0xe'))}]},{'tag':'ul','attributes':{'class':['ck',_0x45a3('0x8')]},'children':[new _0x8d4faf(_0x375dc3,_0x43eeee[_0x45a3('0x11')],!0x0)]}],'on':{'click':_0x514ed7['to'](this[_0x45a3('0x5')][_0x45a3('0x0')](this))}});}[_0x45a3('0x5')](){this[_0x45a3('0x10')]=!0x0,this[_0x45a3('0xd')](_0x45a3('0x5'),{'parentId':this[_0x45a3('0x3')]});}[_0x45a3('0x6')](){this[_0x45a3('0x10')]=!0x1;}}
23
+ const _0x35c9=['ck-revision-history-sidebar__revision__date','createdAt','deselect','span','isSelected','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision-authors','div','select','ck-revision-history-sidebar__subrevision','uiLanguage','ck-reset','fire','bind','creator','setTemplate','_parentRevisionId','ck-revision-history-sidebar__revision_selected','_createdAtFormatted'];(function(_0x489f3a,_0x35c944){const _0x53adfa=function(_0x47bef6){while(--_0x47bef6){_0x489f3a['push'](_0x489f3a['shift']());}};_0x53adfa(++_0x35c944);}(_0x35c9,0x195));const _0x53ad=function(_0x489f3a,_0x35c944){_0x489f3a=_0x489f3a-0x0;let _0x53adfa=_0x35c9[_0x489f3a];return _0x53adfa;};import{View as _0x25407c}from'ckeditor5/src/ui';import _0x44f6e0 from'./revisionauthorview';import{dateToPrettyFormat as _0x5313f6}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x25407c{constructor(_0x45fc1d,_0x4bcceb,_0x4294e8){super(_0x45fc1d);const _0x364ab0=this['bindTemplate'];this['id']=_0x4bcceb['id'],this[_0x53ad('0x7')](_0x53ad('0xe'))['to'](_0x4bcceb),this['set'](_0x53ad('0x11'),!0x1),this[_0x53ad('0x7')](_0x53ad('0xc'))['to'](this,'createdAt',_0x51532a=>_0x51532a?_0x5313f6(_0x45fc1d[_0x53ad('0x4')],_0x51532a):void 0x0),this[_0x53ad('0xa')]=_0x4294e8,this[_0x53ad('0x9')]({'tag':_0x53ad('0x1'),'attributes':{'class':['ck',_0x53ad('0x5'),_0x53ad('0x12'),_0x53ad('0x3'),_0x364ab0['if'](_0x53ad('0x11'),_0x53ad('0xb'))]},'children':[{'tag':_0x53ad('0x10'),'attributes':{'class':['ck',_0x53ad('0xd')]},'children':[{'text':_0x364ab0['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x53ad('0x0')]},'children':[new _0x44f6e0(_0x45fc1d,_0x4bcceb[_0x53ad('0x8')],!0x0)]}],'on':{'click':_0x364ab0['to'](this['select'][_0x53ad('0x7')](this))}});}[_0x53ad('0x2')](){this[_0x53ad('0x11')]=!0x0,this[_0x53ad('0x6')](_0x53ad('0x2'),{'parentId':this[_0x53ad('0xa')]});}[_0x53ad('0xf')](){this[_0x53ad('0x11')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x43f8=['toLocaleTimeString','numeric','long'];(function(_0x36bacb,_0x43f890){var _0x7252d9=function(_0x10232b){while(--_0x10232b){_0x36bacb['push'](_0x36bacb['shift']());}};_0x7252d9(++_0x43f890);}(_0x43f8,0x14a));var _0x7252=function(_0x36bacb,_0x43f890){_0x36bacb=_0x36bacb-0x0;var _0x7252d9=_0x43f8[_0x36bacb];return _0x7252d9;};export function dateToPrettyFormat(_0x298194,_0x572dd8){return _0x572dd8['toLocaleDateString'](_0x298194,{'month':_0x7252('0x2'),'day':_0x7252('0x1')})+',\x20'+_0x572dd8[_0x7252('0x0')](_0x298194,{'hour':_0x7252('0x1'),'minute':_0x7252('0x1')});}
23
+ var _0x2f05=['toLocaleTimeString','long','toLocaleDateString','numeric'];(function(_0x439282,_0x2f05a5){var _0x5aa273=function(_0xd4ef60){while(--_0xd4ef60){_0x439282['push'](_0x439282['shift']());}};_0x5aa273(++_0x2f05a5);}(_0x2f05,0x180));var _0x5aa2=function(_0x439282,_0x2f05a5){_0x439282=_0x439282-0x0;var _0x5aa273=_0x2f05[_0x439282];return _0x5aa273;};export function dateToPrettyFormat(_0x250e95,_0x3b5446){return _0x3b5446[_0x5aa2('0x2')](_0x250e95,{'month':_0x5aa2('0x1'),'day':'numeric'})+',\x20'+_0x3b5446[_0x5aa2('0x0')](_0x250e95,{'hour':'numeric','minute':_0x5aa2('0x3')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52ae=['listenTo','execute','reset','keystrokes','_focusCycler','ck-responsive-form','saveButtonView','cancelButtonView','Save','value','input','revisionName','fieldView','set','forEach','220','_createButton','submit','focus','type','cancel','arrowleft','stopPropagation','tab','label','trim','add','element','revisionNameInputValue','focusTracker','arrowright','setTemplate','ck-button-cancel','ck-revision-history-save-revision-form','revisionNameInputView','locale','_focusables','render','extendTemplate','_createRevisionNameInput'];(function(_0x1fe5f5,_0x52ae69){const _0x27690b=function(_0xfdf869){while(--_0xfdf869){_0x1fe5f5['push'](_0x1fe5f5['shift']());}};_0x27690b(++_0x52ae69);}(_0x52ae,0x6c));const _0x2769=function(_0x1fe5f5,_0x52ae69){_0x1fe5f5=_0x1fe5f5-0x0;let _0x27690b=_0x52ae[_0x1fe5f5];return _0x27690b;};import{icons as _0x11fb3f}from'ckeditor5/src/core';import{ButtonView as _0x22db60,FocusCycler as _0x22fc75,LabeledFieldView as _0x5b1850,View as _0x435bdb,ViewCollection as _0x26b4fb,createLabeledInputText as _0x4989aa,injectCssTransitionDisabler as _0x923df0,submitHandler as _0x2a1c63}from'ckeditor5/src/ui';import{FocusTracker as _0x3c1bae,KeystrokeHandler as _0x32bc89}from'ckeditor5/src/utils';import{getTranslation as _0x123abb}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class bt extends _0x435bdb{constructor(_0x4f9be3){super(_0x4f9be3),this['focusTracker']=new _0x3c1bae(),this['keystrokes']=new _0x32bc89(),this[_0x2769('0x19')](_0x2769('0x0'),''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this[_0x2769('0x12')]=this['_createButton'](_0x123abb(_0x4f9be3,_0x2769('0x14')),_0x11fb3f['check'],'ck-button-save'),this[_0x2769('0x12')][_0x2769('0x1f')]=_0x2769('0x1d'),this[_0x2769('0x13')]=this[_0x2769('0x1c')](_0x123abb(_0x4f9be3,'Cancel'),_0x11fb3f['cancel'],_0x2769('0x4'),_0x2769('0x20')),this[_0x2769('0x8')]=new _0x26b4fb(),this[_0x2769('0x10')]=new _0x22fc75({'focusables':this[_0x2769('0x8')],'focusTracker':this[_0x2769('0x1')],'keystrokeHandler':this[_0x2769('0xf')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x2769('0x23')}}),this[_0x2769('0x3')]({'tag':'form','attributes':{'class':['ck',_0x2769('0x5'),_0x2769('0x11')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x2769('0x12')],this[_0x2769('0x13')]]}),_0x923df0(this);}[_0x2769('0x9')](){super['render'](),_0x2a1c63({'view':this}),([this[_0x2769('0x6')],this[_0x2769('0x12')],this[_0x2769('0x13')]][_0x2769('0x1a')](_0x17fac7=>{this[_0x2769('0x8')]['add'](_0x17fac7),this[_0x2769('0x1')][_0x2769('0x26')](_0x17fac7[_0x2769('0x27')]);}),this[_0x2769('0xf')][_0x2769('0xc')](this['element']));const _0x313be5=_0x9a3746=>_0x9a3746[_0x2769('0x22')]();this[_0x2769('0xf')][_0x2769('0x19')](_0x2769('0x2'),_0x313be5),this[_0x2769('0xf')][_0x2769('0x19')](_0x2769('0x21'),_0x313be5),this[_0x2769('0xf')][_0x2769('0x19')]('arrowup',_0x313be5),this[_0x2769('0xf')][_0x2769('0x19')]('arrowdown',_0x313be5);}[_0x2769('0x1e')](){this['_focusCycler']['focusFirst']();}get[_0x2769('0x17')](){return this[_0x2769('0x6')]['fieldView'][_0x2769('0x27')][_0x2769('0x15')][_0x2769('0x25')]();}set[_0x2769('0x17')](_0x429d19){this[_0x2769('0x6')][_0x2769('0x18')][_0x2769('0x27')][_0x2769('0x15')]=_0x429d19[_0x2769('0x25')]();}[_0x2769('0xe')](){this[_0x2769('0x6')][_0x2769('0x18')][_0x2769('0x27')][_0x2769('0x15')]='';}[_0x2769('0xb')](){const _0x2edfde=new _0x5b1850(this[_0x2769('0x7')],_0x4989aa),_0x48a27c=_0x2edfde[_0x2769('0x18')];return _0x48a27c[_0x2769('0xa')]({'attributes':{'maxlength':_0x2769('0x1b')}}),_0x2edfde[_0x2769('0x24')]=_0x123abb(this[_0x2769('0x7')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x48a27c['on'](_0x2769('0x16'),()=>{this[_0x2769('0x0')]=_0x48a27c[_0x2769('0x27')][_0x2769('0x15')][_0x2769('0x25')]();}),_0x2edfde;}[_0x2769('0x1c')](_0x580787,_0x3e4ecd,_0x8c87d5,_0x53d065){const _0x3447ee=new _0x22db60(this[_0x2769('0x7')]);return _0x3447ee['set']({'label':_0x580787,'icon':_0x3e4ecd,'tooltip':!0x0}),_0x3447ee[_0x2769('0xa')]({'attributes':{'class':_0x8c87d5}}),_0x53d065&&_0x3447ee['delegate'](_0x2769('0xd'))['to'](this,_0x53d065),_0x3447ee;}}
23
+ const _0x38e3=['element','stopPropagation','revisionName','cancelButtonView','listenTo','setTemplate','revisionNameInputValue','arrowright','arrowdown','form','value','ck-button-cancel','shift\x20+\x20tab','_focusables','fieldView','render','keystrokes','tab','arrowleft','_createButton','trim','label','locale','set','Name\x20of\x20the\x20revision\x20(optional)','add','focusTracker','Save','cancel','input','ck-revision-history-save-revision-form','_focusCycler','type','ck-button-save','submit','220','revisionNameInputView','delegate','ck-responsive-form','extendTemplate','saveButtonView','focusFirst','_createRevisionNameInput'];(function(_0x403dc0,_0x38e36d){const _0x164e01=function(_0x5539bf){while(--_0x5539bf){_0x403dc0['push'](_0x403dc0['shift']());}};_0x164e01(++_0x38e36d);}(_0x38e3,0x172));const _0x164e=function(_0x403dc0,_0x38e36d){_0x403dc0=_0x403dc0-0x0;let _0x164e01=_0x38e3[_0x403dc0];return _0x164e01;};import{icons as _0x30465e}from'ckeditor5/src/core';import{ButtonView as _0x4653cf,FocusCycler as _0x2c6a91,LabeledFieldView as _0x29c16a,View as _0x54f36d,ViewCollection as _0x2ad4e6,createLabeledInputText as _0x32e84e,injectCssTransitionDisabler as _0x541ca8,submitHandler as _0x428aec}from'ckeditor5/src/ui';import{FocusTracker as _0x2ddca4,KeystrokeHandler as _0x152ffb}from'ckeditor5/src/utils';import{getTranslation as _0x41aab9}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x54f36d{constructor(_0x31ab49){super(_0x31ab49),this[_0x164e('0x0')]=new _0x2ddca4(),this[_0x164e('0x21')]=new _0x152ffb(),this[_0x164e('0x28')](_0x164e('0x17'),''),this[_0x164e('0xa')]=this[_0x164e('0x10')](),this['saveButtonView']=this[_0x164e('0x24')](_0x41aab9(_0x31ab49,_0x164e('0x1')),_0x30465e['check'],_0x164e('0x7')),this[_0x164e('0xe')][_0x164e('0x6')]=_0x164e('0x8'),this[_0x164e('0x14')]=this[_0x164e('0x24')](_0x41aab9(_0x31ab49,'Cancel'),_0x30465e[_0x164e('0x2')],_0x164e('0x1c'),_0x164e('0x2')),this[_0x164e('0x1e')]=new _0x2ad4e6(),this[_0x164e('0x5')]=new _0x2c6a91({'focusables':this[_0x164e('0x1e')],'focusTracker':this[_0x164e('0x0')],'keystrokeHandler':this[_0x164e('0x21')],'actions':{'focusPrevious':_0x164e('0x1d'),'focusNext':_0x164e('0x22')}}),this[_0x164e('0x16')]({'tag':_0x164e('0x1a'),'attributes':{'class':['ck',_0x164e('0x4'),_0x164e('0xc')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x164e('0xe')],this[_0x164e('0x14')]]}),_0x541ca8(this);}['render'](){super[_0x164e('0x20')](),_0x428aec({'view':this}),([this['revisionNameInputView'],this[_0x164e('0xe')],this[_0x164e('0x14')]]['forEach'](_0xe518c0=>{this[_0x164e('0x1e')][_0x164e('0x2a')](_0xe518c0),this['focusTracker'][_0x164e('0x2a')](_0xe518c0[_0x164e('0x11')]);}),this['keystrokes'][_0x164e('0x15')](this[_0x164e('0x11')]));const _0x2dc82b=_0x5038da=>_0x5038da[_0x164e('0x12')]();this[_0x164e('0x21')]['set'](_0x164e('0x18'),_0x2dc82b),this['keystrokes']['set'](_0x164e('0x23'),_0x2dc82b),this[_0x164e('0x21')]['set']('arrowup',_0x2dc82b),this['keystrokes'][_0x164e('0x28')](_0x164e('0x19'),_0x2dc82b);}['focus'](){this['_focusCycler'][_0x164e('0xf')]();}get[_0x164e('0x13')](){return this[_0x164e('0xa')][_0x164e('0x1f')][_0x164e('0x11')][_0x164e('0x1b')][_0x164e('0x25')]();}set[_0x164e('0x13')](_0x56a780){this[_0x164e('0xa')][_0x164e('0x1f')][_0x164e('0x11')][_0x164e('0x1b')]=_0x56a780[_0x164e('0x25')]();}['reset'](){this[_0x164e('0xa')]['fieldView'][_0x164e('0x11')][_0x164e('0x1b')]='';}[_0x164e('0x10')](){const _0x26a18a=new _0x29c16a(this[_0x164e('0x27')],_0x32e84e),_0xef9bbb=_0x26a18a[_0x164e('0x1f')];return _0xef9bbb[_0x164e('0xd')]({'attributes':{'maxlength':_0x164e('0x9')}}),_0x26a18a[_0x164e('0x26')]=_0x41aab9(this[_0x164e('0x27')],_0x164e('0x29')),_0xef9bbb['on'](_0x164e('0x3'),()=>{this[_0x164e('0x17')]=_0xef9bbb[_0x164e('0x11')][_0x164e('0x1b')][_0x164e('0x25')]();}),_0x26a18a;}[_0x164e('0x24')](_0x22cb87,_0x2f82eb,_0x5b03f3,_0x3d49f8){const _0x3b3520=new _0x4653cf(this[_0x164e('0x27')]);return _0x3b3520[_0x164e('0x28')]({'label':_0x22cb87,'icon':_0x2f82eb,'tooltip':!0x0}),_0x3b3520[_0x164e('0xd')]({'attributes':{'class':_0x5b03f3}}),_0x3d49f8&&_0x3b3520[_0x164e('0xb')]('execute')['to'](this,_0x3d49f8),_0x3b3520;}}