@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231008.0 → 0.0.0-nightly-20231010.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 _0x55da=['loadRevisionData','getCustomProperty','isAtStart','_changeView','mapper','attributesAfter','split','_activeViewTarget','change:activeChange','ck-suggestion-preview-marker-','highest','POSITIVE_INFINITY','isAfter','startIndex','removeMarker:revision','offsetSize','_getDiff','diff','insert','getRevision','set','getWalker','createUIElement','showPreviousChange','change','revision-suggestion','compare','_makeTape','markersStart','destroy','bindElementToMarker','object','observeMarkers','viewItem','previousPosition','getDomRoot','revision-end','showNextChange','right','getRoot','start','toViewElement','selection','forceDisabled','adapter','useFillerType','attribute:vid','_makeModelFromViewString','indexOf','removeMarker:revision-suggestion','wrap','shift','low','WidgetToolbarRepository','addMarker:revision','target','-new','ck-revision-history-root-','_appendChild','flat','userId','revision-suggestion:','rootName','nextSibling','change:isEnabled','isBlock','isRemoveSuggestion','_refreshStartEndIndex','consume','currentChangeNumber','backward','isAtEnd','pairId','_processTape','_cleanMarkers','isEqual','isRemoved','bind','isLimit','sort','downcastDispatcher','nodeAfter','_initInteractions','_setChanges','_getViewObj','isNavigationMode','revisionHistoryAttachChange','side','abs','changes','ck-suggestion-marker-','_joinTapes','addRoot','pluginName','elementEnd','change:isReady','hasClass','listenTo','_makeModelFromTape','suggestion:','_getChangeFromId','isBefore','toViewPosition','code','addRevisionData','isOnRoot','insertion','changeId','oldRevisionId','vid_start','addHighlight','endIndex','attributes','markerNameToElements','_threeWayMerge','view','_balloon','text','_setConversion','filter','getClientRects','enqueueChange','bottom','toModel','schema','end','_markInsertions','upcast','removeMarker','isObject','item','removeClass','createRevision','unbindElementFromMarkerName','has','diffData','config','revision:','conversion','findIndex','change:activeView','addMarker:revision-suggestion:deletion','commands','activeView','name','next','_markMismatchedRemovedTags','test','range','element','getAttributes','plugins','remove','string','span','keys','markerRange','from','modelRange','_removeMissingPairs','isInline','_setDistance','vid_end','activeChange','addMarker:revision-suggestion:insertion','comment','_update','children','isAttached','model','revisionHistoryLabel','splice','editor','delete','elementToAttribute','reconvertMarker','forward','_revisions','ck-suggestion-marker--active','RevisionViewer','editingDowncast','return','restoreRevisionCallback','revision-viewer','createRange','getItems','first','type','deletions','isAdded','_changeIdToChange','markerToData','isReady','processor','error','unshift','enableReadOnlyMode','element:pre','createAttributeElement','startsWith','data-revision-','revisionHistory','includes','hasAttribute','getAttribute','getIndex','markerName','toData','nextPosition','consumable','add','_step','isAddSuggestion','mapViewToDom','updatePosition','change:numberOfChanges','ck-revision-history-root-remove','elementStart','markerToHighlight','_findChangeIdFromDomTarget','forEach','distance','document','marked','get','dataDowncast','find','showStack','editing','init','level','markersEnd','vid','getRootNames','slice','locale','values','map','attachChange','writer','dataToMarker','maxOffset','data-change-id','_markMarkers','_sortAndFilterDiffChanges','_markSuggestions','_removeRevisionMarkers','ck-suggestion-marker-merge','ck-revision-history-root--active','isContent','resolve','affectsData','repository','domEvent','isEnabled','mouseover','_getViewForChange','createPositionBefore','requires','parent','pop','revision-comment:','ck-suggestion-marker-split','_getRevisionsRange','high','createPositionFromPath','concat','_data','isIncorrect','addClass','refresh','isCollapsed','push','softBreak','then','ck-revision-history-root-add','index','_cleanUp','for','data','revision','setAttribute','numberOfChanges','suggestion','toViewRange','execute','markers','merge','deletion','done','uiElement','isSuggestion','length'];(function(_0x330e14,_0x55da35){const _0x154145=function(_0x14c755){while(--_0x14c755){_0x330e14['push'](_0x330e14['shift']());}};_0x154145(++_0x55da35);}(_0x55da,0x71));const _0x1541=function(_0x330e14,_0x55da35){_0x330e14=_0x330e14-0x0;let _0x154145=_0x55da[_0x330e14];return _0x154145;};import{Plugin as _0xc50a9,Command as _0x2b67f2}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x142e83}from'ckeditor5/src/utils';import{ContextualBalloon as _0x586a0f}from'ckeditor5/src/ui';import{DocumentFragment as _0x4390f7,Element as _0x24838a,Text as _0x4109a4,ViewDocumentFragment as _0x50f55e,ViewText as _0x21a021,ViewElement as _0x3bf22,ViewContainerElement as _0x144727,ViewAttributeElement as _0x5147e8,ViewEmptyElement as _0x12029b,ViewRawElement as _0x1778ab,ViewUIElement as _0x3c5547}from'ckeditor5/src/engine';import{Users as _0x5c6c21,getMarkerDomElement as _0x10b913}from'ckeditor5-collaboration/src/collaboration-core';import _0x4e0c7a from'./ui/revisionviewer/changedetailsview';import _0x245276 from'./revisionsrepository';import _0x90d829 from'./changeitem';import{default as _0x328195}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x1fa925}from'lodash-es';const tt={'c':_0x144727,'a':_0x5147e8,'e':_0x12029b,'r':_0x1778ab,'u':_0x3c5547};export default class d extends _0xc50a9{static get[_0x1541('0x111')](){return _0x1541('0x42');}static get[_0x1541('0x91')](){return[_0x5c6c21,_0x586a0f,_0x245276];}constructor(_0x2d2fec){super(_0x2d2fec),this[_0x1541('0x8b')]=this[_0x1541('0x3b')]['plugins'][_0x1541('0x6f')]('RevisionsRepository'),this[_0x1541('0xc8')](_0x1541('0x32'),null),this[_0x1541('0xc8')](_0x1541('0x1e'),null),this[_0x1541('0xbb')]=null,this[_0x1541('0xc8')](_0x1541('0xc5'),null),this['set']('isReady',!0x1),this[_0x1541('0xc8')](_0x1541('0x8d'),!0x0),this['on'](_0x1541('0xf4'),(_0x5cbe39,_0x30e000,_0x102837)=>{this[_0x1541('0x32')]=null,this['activeView']=null,this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x2')]['change'](_0x168e63=>{for(const _0xb5690f of this[_0x1541('0x3b')]['editing'][_0x1541('0x2')][_0x1541('0x6d')]['roots'])_0x102837?_0x168e63[_0x1541('0x12')]('ck-editor__editable__overlay',_0xb5690f):_0x168e63['addClass']('ck-editor__editable__overlay',_0xb5690f);});}),this[_0x1541('0x101')](_0x1541('0x109'))['to'](this,_0x1541('0x32'),_0x35bb24=>null!==_0x35bb24),this['bind'](_0x1541('0xf9'))['to'](this,_0x1541('0x4f'),this,'diff',this,_0x1541('0x32'),(_0x35d166,_0x3e101c,_0x30aa2b)=>_0x35d166&&_0x30aa2b?_0x3e101c[_0x1541('0x10d')]['getIndex'](_0x30aa2b):0x0),this[_0x1541('0x101')](_0x1541('0xa9'))['to'](this,_0x1541('0x4f'),this,_0x1541('0xc5'),(_0x44cc0e,_0x4a7566)=>_0x44cc0e?_0x4a7566[_0x1541('0x10d')][_0x1541('0xb3')]:0x0),this[_0x1541('0xb7')]=null,this[_0x1541('0x4d')]=new Map(),this[_0x1541('0xe0')]=null,this[_0x1541('0x3')]=this['editor'][_0x1541('0x26')]['get'](_0x586a0f);}[_0x1541('0x74')](){const _0x21ad04=this[_0x1541('0x3b')],_0x47629a=new ShowChangeCommand(_0x21ad04,{'direction':_0x1541('0xfa')}),_0x2806d6=new ShowChangeCommand(_0x21ad04,{'direction':_0x1541('0x3f')});(_0x21ad04['commands']['add'](_0x1541('0xcb'),_0x47629a),_0x21ad04[_0x1541('0x1d')][_0x1541('0x61')](_0x1541('0xd9'),_0x2806d6),_0x21ad04['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x21ad04)),this['on'](_0x1541('0x66'),()=>{_0x47629a[_0x1541('0x9d')](),_0x2806d6[_0x1541('0x9d')]();}),this[_0x1541('0x5')](),this['_initInteractions'](),_0x21ad04[_0x1541('0x53')](_0x1541('0x46')),_0x21ad04[_0x1541('0x26')][_0x1541('0x15')](_0x1541('0xe9')))&&_0x21ad04[_0x1541('0x26')][_0x1541('0x6f')]('WidgetToolbarRepository')[_0x1541('0xdf')](_0x1541('0x46'));}async['getRevisionData'](_0x394885){await this[_0x1541('0xb4')](_0x394885);const _0x5dc72b={};for(const _0x5d0ef9 in _0x394885[_0x1541('0x16')]){if(_0x394885['diffData'][_0x5d0ef9][_0x1541('0x7d')]&&!_0x394885[_0x1541('0x16')][_0x5d0ef9]['attachChange']['isAttached'])continue;const _0x38f671=this[_0x1541('0x85')](JSON['parse'](_0x394885[_0x1541('0x16')][_0x5d0ef9]['insertions'])),_0x52c754=this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x2')]['document'],_0x8ea774=new _0x50f55e(_0x52c754,_0x38f671[_0x1541('0x7c')](_0x8fe96a=>this[_0x1541('0x108')](_0x8fe96a)));this[_0x1541('0x3b')][_0x1541('0xa6')][_0x1541('0x50')][_0x1541('0xe1')](_0x1541('0x6e')),_0x5dc72b[_0x5d0ef9]=this[_0x1541('0x3b')][_0x1541('0xa6')][_0x1541('0x50')][_0x1541('0x5e')](_0x8ea774),this[_0x1541('0x3b')][_0x1541('0xa6')][_0x1541('0x50')][_0x1541('0xe1')]('default');}return _0x5dc72b;}async['getRevisionRootsAttributes'](_0x23f10f){await this[_0x1541('0xb4')](_0x23f10f);const _0x4c5939={};for(const _0x125a81 in _0x23f10f[_0x1541('0x16')])_0x23f10f[_0x1541('0x16')][_0x125a81][_0x1541('0x7d')]&&!_0x23f10f[_0x1541('0x16')][_0x125a81]['attachChange']['isAttached']||(_0x4c5939[_0x125a81]=_0x23f10f[_0x1541('0x16')][_0x125a81][_0x1541('0xb9')]||{});return _0x4c5939;}[_0x1541('0x85')](_0xccda6d){return(_0xccda6d=_0xccda6d[_0x1541('0x6')](_0x448a4e=>!_0x448a4e['name']||'revision-start'!==_0x448a4e[_0x1541('0x1f')]&&_0x1541('0xd8')!==_0x448a4e['name']))[_0x1541('0x6b')](_0x1fd9ef=>{'string'!=typeof _0x1fd9ef&&(_0x1fd9ef[_0x1541('0x36')]=this[_0x1541('0x85')](_0x1fd9ef['children']),_0x1fd9ef[_0x1541('0x124')]=_0x1fd9ef[_0x1541('0x124')][_0x1541('0x6')](_0x36ca70=>!_0x36ca70[0x0][_0x1541('0x56')](_0x1541('0x57'))));}),_0xccda6d;}async[_0x1541('0xce')](_0x47d23b,_0x23771e,_0x2d1f1c=!0x1){if(!this[_0x1541('0x8d')])return;const _0x193405=this[_0x1541('0xc5')],_0x2c17c2=this[_0x1541('0x8b')],_0x4b3121=_0x1541('0x28')==typeof _0x47d23b?_0x2c17c2[_0x1541('0xc7')](_0x47d23b):_0x47d23b,_0x2de21b=_0x1541('0x28')==typeof _0x23771e?_0x2c17c2[_0x1541('0xc7')](_0x23771e):_0x23771e,_0x3dcf68=_0x4b3121['id'],_0x5c63ba=_0x2de21b?_0x2de21b['id']:null;if(!_0x2d1f1c&&this['diff']&&this[_0x1541('0xc5')]['newRevisionId']===_0x3dcf68&&this[_0x1541('0xc5')][_0x1541('0x120')]===_0x5c63ba)return Promise[_0x1541('0x89')]();this[_0x1541('0x4f')]=!0x1,this[_0x1541('0x1e')]=null,this[_0x1541('0x32')]=null,this[_0x1541('0xc5')]=new _0x328195(_0x3dcf68,_0x5c63ba);const _0x3c7317=this[_0x1541('0x96')](_0x4b3121,_0x2de21b,!0x0)[_0x1541('0x7c')](_0x10217f=>this[_0x1541('0xb4')](_0x10217f));return _0x3c7317[_0x1541('0x9f')](new Promise(_0x4ecb10=>{setTimeout(_0x4ecb10,0x14);})),Promise['all'](_0x3c7317)['then'](()=>{if(!this[_0x1541('0x8d')])return;this[_0x1541('0xa4')]();const _0x5452ce=this[_0x1541('0xc4')](_0x3dcf68,_0x5c63ba);for(const _0x2b4fae of _0x5452ce[_0x1541('0x10d')])this[_0x1541('0x4d')][_0x1541('0xc8')](_0x2b4fae['id'],_0x2b4fae);this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x8')]({'isUndoable':!0x1},_0x4aa5ce=>{for(const _0xc7544b of this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x6d')][_0x1541('0x78')]())_0x4aa5ce['detachRoot'](_0xc7544b);for(const _0x2c97a1 of Object[_0x1541('0x2a')](_0x5452ce['model'])){const _0x516a5f=_0x4aa5ce[_0x1541('0x110')](_0x2c97a1);for(const _0x1bceec of Object[_0x1541('0x2a')](_0x5452ce[_0x1541('0x124')][_0x2c97a1]))_0x4aa5ce[_0x1541('0xa8')](_0x1bceec,_0x5452ce[_0x1541('0x124')][_0x2c97a1][_0x1bceec],_0x516a5f);_0x4aa5ce[_0x1541('0xc6')](_0x5452ce['model'][_0x2c97a1],_0x516a5f,0x0);}}),this[_0x1541('0xc5')][_0x1541('0x107')](this['_sortAndFilterDiffChanges'](_0x5452ce['changes'])),this['isReady']=!0x0;})['catch'](_0x5165c0=>{console[_0x1541('0x51')](_0x5165c0),this[_0x1541('0xa4')](),_0x193405&&(this[_0x1541('0xc5')]=_0x193405),this['isReady']=!0x0;});}[_0x1541('0x11c')](_0x445a81,_0x4dca22){const _0x5733da=this[_0x1541('0x8b')][_0x1541('0x13')](_0x445a81);return _0x5733da['on'](_0x1541('0x35'),(_0x5adfd6,_0x2640cd,_0x1a23be)=>_0x4dca22(_0x2640cd,_0x1a23be,_0x5733da)),this[_0x1541('0x8b')]['addRevision'](_0x5733da),_0x5733da;}[_0x1541('0xb4')](_0x2c5c1f){if(!_0x2c5c1f||_0x2c5c1f[_0x1541('0x16')])return Promise[_0x1541('0x89')]();{const _0x594159=this[_0x1541('0x3b')]['config'][_0x1541('0x6f')]('collaboration.channelId');return this[_0x1541('0xe0')]['getRevision']({'channelId':_0x594159,'revisionId':_0x2c5c1f['id']})[_0x1541('0xa1')](_0x5d429f=>{_0x2c5c1f[_0x1541('0x35')]({'diffData':_0x5d429f[_0x1541('0x16')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x1541('0xfe')](),this[_0x1541('0xb7')]&&this['_changeView'][_0x1541('0xd1')](),this[_0x1541('0xb7')]=null,this['_changeIdToChange']['clear'](),this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x8')]({'isUndoable':!0x1},_0x311d8b=>{for(const _0xe37c18 of this['editor'][_0x1541('0x38')]['document'][_0x1541('0x78')]())_0x311d8b['detachRoot'](_0xe37c18);});}[_0x1541('0x83')](_0x1985be){const _0x178496=[],_0xe21987=new Map();for(const _0x348bd5 of this[_0x1541('0x3b')]['model'][_0x1541('0x6d')][_0x1541('0x78')]()){const _0x2e6058=this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x2')][_0x1541('0xd7')](_0x348bd5);if(!_0x2e6058)continue;const _0x4d1409=_0x2e6058[_0x1541('0x7')]()['item'](0x0);_0x4d1409&&(_0x178496[_0x1541('0x9f')](_0x348bd5),_0xe21987[_0x1541('0xc8')](_0x348bd5,_0x4d1409));}return _0x178496['sort']((_0xc72d9c,_0xb66cfb)=>{const _0x5c0ab3=_0xe21987[_0x1541('0x6f')](_0xc72d9c),_0xa9321c=_0xe21987['get'](_0xb66cfb);return _0x5c0ab3['y']-_0xa9321c['y']||_0x5c0ab3['x']-_0xa9321c['x'];}),(_0x1985be=_0x1985be[_0x1541('0x6')](_0x1b41aa=>_0x178496[_0x1541('0x59')](_0x1b41aa[_0x1541('0xf2')])))[_0x1541('0x103')]((_0x116391,_0x2a587f)=>_0x178496[_0x1541('0xe4')](_0x116391[_0x1541('0xf2')])-_0x178496[_0x1541('0xe4')](_0x2a587f[_0x1541('0xf2')])),_0x1985be;}['_makeTape'](_0x5170bb){const _0x5d96a0=Array[_0x1541('0x2c')](_0x5170bb[_0x1541('0xad')])[_0x1541('0x6')](([_0x57831f,_0x2781ae])=>_0x57831f[_0x1541('0x56')](_0x1541('0x18'))&&!_0x2781ae[_0x1541('0x9e')]),_0x5c2fc4=Array[_0x1541('0x2c')](this[_0x1541('0x3b')][_0x1541('0x38')]['createRangeIn'](_0x5170bb)[_0x1541('0xc9')]({'singleCharacters':!0x0}));if(0x0!=_0x5d96a0['length'])for(const _0x223f76 of _0x5c2fc4){const [_0x311945,_0x2131d4]=_0x5d96a0[0x0],[,_0x8693f6,_0x177df7]=_0x311945[_0x1541('0xba')](':');if(_0x2131d4[_0x1541('0xc')]['isEqual'](_0x223f76[_0x1541('0x5f')])&&_0x5d96a0[_0x1541('0xe7')](),(_0x223f76[_0x1541('0xd6')]['isEqual'](_0x2131d4[_0x1541('0xdc')])||_0x223f76['previousPosition'][_0x1541('0xc0')](_0x2131d4[_0x1541('0xdc')]))&&(_0x1541('0x11e')==_0x8693f6?_0x223f76[_0x1541('0x4c')]={'userId':_0x177df7}:'deletion'==_0x8693f6&&(_0x223f76[_0x1541('0x100')]={'userId':_0x177df7})),0x0==_0x5d96a0[_0x1541('0xb3')])break;}return _0x5c2fc4;}[_0x1541('0xf7')](_0x246434){const _0x55ebb7=new Map();for(let _0x1317da=0x0;_0x1317da<_0x246434[_0x1541('0xb3')];_0x1317da++)_0x1541('0x4')===_0x246434[_0x1317da]['type']?(_0x246434[_0x1317da][_0x1541('0x11')][_0x1541('0xc1')]=_0x1317da,_0x246434[_0x1317da][_0x1541('0x11')][_0x1541('0x123')]=_0x1317da):(_0x1541('0x68')===_0x246434[_0x1317da]['type']?_0x246434[_0x1317da]['item']['startIndex']=_0x1317da:_0x1541('0x112')===_0x246434[_0x1317da][_0x1541('0x4a')]&&(_0x246434[_0x1317da]['item'][_0x1541('0x123')]=_0x1317da),_0x55ebb7['set'](_0x246434[_0x1317da]['id'],_0x1317da));for(const _0x479e3b of _0x55ebb7[_0x1541('0x7b')]())'elementStart'===_0x246434[_0x479e3b][_0x1541('0x4a')]?_0x246434[_0x479e3b][_0x1541('0x11')]['endIndex']=_0x55ebb7[_0x1541('0x6f')](_0x246434[_0x479e3b][_0x1541('0xfc')]):_0x1541('0x112')===_0x246434[_0x479e3b][_0x1541('0x4a')]&&(_0x246434[_0x479e3b][_0x1541('0x11')]['startIndex']=_0x55ebb7[_0x1541('0x6f')](_0x246434[_0x479e3b][_0x1541('0xfc')]));}[_0x1541('0xfd')](_0x5a8560){for(let _0x389475=0x0;_0x389475<_0x5a8560[_0x1541('0xb3')];_0x389475++){if(_0x1541('0x68')===_0x5a8560[_0x389475]['type'])_0x5a8560[_0x389475][_0x1541('0x11')]['startIndex']=_0x389475;else{if(_0x1541('0x112')===_0x5a8560[_0x389475]['type']){_0x5a8560[_0x389475][_0x1541('0x11')][_0x1541('0x123')]=_0x389475;const _0x1b38f5=_0x5a8560[_0x389475][_0x1541('0x11')][_0x1541('0xc1')];_0x5a8560[_0x1b38f5]['pairId']=_0x5a8560[_0x389475]['id'],_0x5a8560[_0x389475][_0x1541('0xfc')]=_0x5a8560[_0x1b38f5]['id'];}else _0x5a8560[_0x389475][_0x1541('0x11')][_0x1541('0xc1')]=_0x389475,_0x5a8560[_0x389475][_0x1541('0x11')][_0x1541('0x123')]=_0x389475,_0x5a8560[_0x389475][_0x1541('0xfc')]=null;}_0x5a8560[_0x389475]['markersStart']||(_0x5a8560[_0x389475]['markersStart']=[],_0x5a8560[_0x389475][_0x1541('0x76')]=[]);}}[_0x1541('0xd')](_0x3ee86a,_0x3e89cb){const _0x2d9892=_0x3ee86a[_0x1541('0x6')](_0x461851=>!_0x461851[_0x1541('0x4c')]);for(let _0x465509=0x0;_0x465509<_0x3e89cb[_0x1541('0xb3')];_0x465509++)_0x3e89cb[_0x465509][_0x1541('0x4c')]&&(_0x2d9892[_0x465509][_0x1541('0x4c')]=_0x3e89cb[_0x465509][_0x1541('0x4c')]);}[_0x1541('0xe3')](_0x27e8c9){const _0x4a97f9=JSON['parse'](_0x27e8c9),_0x518c9d=this[_0x1541('0x3b')][_0x1541('0x73')]['view']['document'],_0x20ff63=new _0x50f55e(_0x518c9d,_0x4a97f9[_0x1541('0x7c')](_0x4ea949=>this[_0x1541('0x108')](_0x4ea949)));return this[_0x1541('0x3b')][_0x1541('0xa6')][_0x1541('0xa')](_0x20ff63);}[_0x1541('0x108')](_0x303092){const _0x7e0b0e=this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x2')][_0x1541('0x6d')];if(_0x1541('0x28')==typeof _0x303092)return new _0x21a021(_0x7e0b0e,_0x303092);{const _0x54c0f1=_0x303092[_0x1541('0x36')][_0x1541('0x7c')](_0x3d3208=>this['_getViewObj'](_0x3d3208));return new(tt[_0x303092[(_0x1541('0x4a'))]]||_0x3bf22)(_0x7e0b0e,_0x303092[_0x1541('0x1f')],_0x303092[_0x1541('0x124')],_0x54c0f1);}}['_getDiff'](_0x28526e,_0x543b9b=null){const _0x4a6b4e=this['repository'][_0x1541('0xc7')](_0x28526e),_0x5983f3=_0x543b9b?this[_0x1541('0x8b')][_0x1541('0xc7')](_0x543b9b):null,_0x25cfdf=this[_0x1541('0x96')](_0x4a6b4e,_0x5983f3),_0x6df84=_0x25cfdf[_0x25cfdf['length']-0x1],_0x5d5e26=new Map(),_0x5d6212={'model':{},'attributes':{},'changes':[]},_0x2b8781=new Set(),_0x19dbd7=new Map();for(let _0x2b7127=_0x25cfdf['length']-0x1;_0x2b7127>=0x0;_0x2b7127--){const _0x15109b=_0x25cfdf[_0x2b7127];for(const _0x4cbdd5 of Object['keys'](_0x15109b[_0x1541('0x16')]))if(_0x15109b['diffData'][_0x4cbdd5]['attachChange']){const _0x3f736a=_0x15109b[_0x1541('0x16')][_0x4cbdd5][_0x1541('0x7d')];_0x3f736a[_0x1541('0x37')]?(_0x2b8781[_0x1541('0x61')](_0x4cbdd5),_0x19dbd7['has'](_0x4cbdd5)&&_0x19dbd7[_0x1541('0x6f')](_0x4cbdd5)['userId']==_0x3f736a[_0x1541('0xf0')]?_0x19dbd7[_0x1541('0x3c')](_0x4cbdd5):_0x19dbd7['set'](_0x4cbdd5,_0x3f736a)):_0x19dbd7['has'](_0x4cbdd5)?(_0x2b8781[_0x1541('0x3c')](_0x4cbdd5),_0x19dbd7[_0x1541('0x3c')](_0x4cbdd5)):(_0x2b8781[_0x1541('0x61')](_0x4cbdd5),_0x19dbd7[_0x1541('0xc8')](_0x4cbdd5,_0x3f736a));}else _0x2b8781[_0x1541('0x61')](_0x4cbdd5);}for(const _0x1220db of _0x2b8781){const _0x5ac097=_0x19dbd7['has'](_0x1220db)&&!_0x19dbd7[_0x1541('0x6f')](_0x1220db)[_0x1541('0x37')];let _0x307335=_0x5ac097?_0x25cfdf['length']-0x1:0x0;const _0x58f364=_0x5ac097?-0x1:0x1;for(;_0x25cfdf[_0x307335];){const _0x9f8a97=_0x25cfdf[_0x307335];if(_0x9f8a97['diffData'][_0x1220db]){const _0x4b1557=_0x5ac097?_0x9f8a97[_0x1541('0x16')][_0x1220db]['attributesBefore']:_0x9f8a97['diffData'][_0x1220db][_0x1541('0xb9')];_0x5d6212[_0x1541('0x124')][_0x1220db]=_0x4b1557?_0x1fa925(_0x4b1557):{};break;}_0x307335+=_0x58f364;}}for(const _0x2e0e20 of _0x25cfdf){_0x2e0e20[_0x1541('0x38')]={};for(const _0x121832 of _0x2e0e20['authors'])_0x5d5e26[_0x1541('0xc8')](_0x121832['id'],_0x121832);for(const _0x54a4a0 of _0x2b8781){const _0x45463f=_0x2e0e20[_0x1541('0x16')][_0x54a4a0]?_0x2e0e20[_0x1541('0x16')][_0x54a4a0]['insertions']:'[]',_0x2622a7=_0x2e0e20[_0x1541('0x16')][_0x54a4a0]?_0x2e0e20[_0x1541('0x16')][_0x54a4a0]['deletions']:'[]';_0x2e0e20['model'][_0x54a4a0]={'insertions':this[_0x1541('0xe3')](_0x45463f),'deletions':this['_makeModelFromViewString'](_0x2622a7)};}}for(const _0x5f2f70 of _0x2b8781){let _0x4606f0=null,_0x26e920=0x0;const _0x5a58bd=new Map(Array['from'](_0x4a6b4e['model'][_0x5f2f70]['insertions'][_0x1541('0xad')])[_0x1541('0x6')](([_0x546fad])=>!_0x546fad[_0x1541('0x56')](_0x1541('0x18'))));let _0x278a6c=0x0;for(const _0x1292fe of _0x25cfdf){const _0x105904=this[_0x1541('0xcf')](_0x1292fe[_0x1541('0x38')][_0x5f2f70]['insertions']);_0x1292fe==_0x4a6b4e?(_0x4606f0=_0x105904,_0x26e920=_0x4606f0[_0x1541('0xb3')],_0x4606f0[_0x1541('0x6b')](_0x498dca=>{_0x498dca['id']=_0x278a6c++;}),this[_0x1541('0xfd')](_0x4606f0)):this['_markInsertions'](_0x4606f0,_0x105904);const _0xf3910a=_0x4606f0[_0x1541('0x6')](_0x16be59=>!_0x16be59[_0x1541('0x4c')])[_0x1541('0x7c')](_0x3d4e15=>_0x3d4e15['id']);let _0x4e0d59=0x0;const _0x5a3e3b=this['_makeTape'](_0x1292fe['model'][_0x5f2f70]['deletions']);_0x5a3e3b['forEach'](_0x1988fd=>{_0x1988fd[_0x1541('0x100')]?_0x1988fd['id']=_0x26e920++:_0x1988fd['id']=_0xf3910a[_0x4e0d59++];}),this['_processTape'](_0x5a3e3b),this['_setDistance'](_0x4606f0,_0x1541('0x4c')),this[_0x1541('0x30')](_0x5a3e3b,_0x1541('0x100')),_0x1292fe==_0x4a6b4e&&this[_0x1541('0x82')](_0x4606f0,_0x5a58bd),_0x4606f0=this[_0x1541('0x10f')](_0x4606f0,_0x5a3e3b),this[_0x1541('0xf7')](_0x4606f0),this[_0x1541('0x30')](_0x4606f0,_0x1541('0x100'));}_0x4606f0=_0x4606f0[_0x1541('0x6')](_0x4a564a=>!(_0x4a564a[_0x1541('0x4c')]&&_0x4a564a[_0x1541('0x100')]));const _0xdb3cea=new Map(_0x6df84[_0x1541('0x38')][_0x5f2f70][_0x1541('0x4b')][_0x1541('0xad')]),_0x142d0c=new Set(_0x5a58bd['keys']());for(const _0x53c28c of _0xdb3cea[_0x1541('0x2a')]())_0x142d0c['delete'](_0x53c28c);this[_0x1541('0x84')](_0x4606f0,_0x142d0c),this['_fixObsoleteTags'](_0x4606f0),_0x4606f0=this[_0x1541('0x2e')](_0x4606f0),_0x4606f0=this[_0x1541('0x21')](_0x4606f0),_0x4606f0=this['_removeUnsupportedChanges'](_0x4606f0);const {root:_0x90eb05,changes:_0x71b98f}=this[_0x1541('0x116')](_0x4606f0,_0x5d5e26,_0x5f2f70);_0x5d6212['model'][_0x5f2f70]=_0x90eb05;const _0x3e94ab=_0x19dbd7[_0x1541('0x6f')](_0x5f2f70);if(_0x3e94ab){const _0x3b073a=_0x5d5e26[_0x1541('0x6f')](_0x3e94ab['userId']),_0x165bdd=new _0x90d829({'author':_0x3b073a,'type':_0x3e94ab[_0x1541('0x37')]?_0x1541('0x61'):_0x1541('0x27'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5f2f70});_0x71b98f[_0x1541('0x52')](_0x165bdd),_0x5d6212[_0x1541('0x124')][_0x5f2f70][_0x1541('0x10a')]=_0x165bdd['id'];}_0x5d6212['changes']=_0x5d6212[_0x1541('0x10d')][_0x1541('0x99')](_0x71b98f);}return _0x5d6212;}['_markMarkers'](_0x4c7d02,_0x5a00c8){for(let _0x593fa8=0x0;_0x593fa8<_0x4c7d02[_0x1541('0xb3')];_0x593fa8++)for(const [_0x5a67d3,_0x5907ac]of _0x5a00c8)_0x5907ac[_0x1541('0xdc')]['isEqual'](_0x4c7d02[_0x593fa8][_0x1541('0xd6')])&&_0x4c7d02[_0x593fa8][_0x1541('0xd0')][_0x1541('0x9f')](_0x5a67d3),_0x5907ac['end'][_0x1541('0xff')](_0x4c7d02[_0x593fa8][_0x1541('0x5f')])&&_0x4c7d02[_0x593fa8][_0x1541('0x76')][_0x1541('0x9f')](_0x5a67d3);}[_0x1541('0x10f')](_0x13047c,_0x28fc2b){let _0x27ba92=[],_0x57c87e=0x0,_0x197cac=0x0;for(;_0x57c87e<_0x13047c['length']||_0x197cac<_0x28fc2b[_0x1541('0xb3')];){const _0x313e52=_0x13047c[_0x57c87e]||{},_0x117294=_0x28fc2b[_0x197cac]||{};if(_0x313e52['id']==_0x117294['id'])_0x57c87e++,_0x197cac++,_0x27ba92['push'](_0x313e52);else{if(_0x117294[_0x1541('0x100')]&&_0x313e52[_0x1541('0x4c')]){const {commonTape:_0x115112,iEnd:_0x1dfb16,jEnd:_0x584ed2}=this[_0x1541('0x1')](_0x13047c,_0x57c87e,_0x28fc2b,_0x197cac);_0x27ba92=_0x27ba92[_0x1541('0x99')](_0x115112),_0x57c87e=_0x1dfb16,_0x197cac=_0x584ed2;}else _0x117294['isRemoved']?(_0x197cac++,_0x27ba92['push'](_0x117294)):(_0x57c87e++,_0x27ba92[_0x1541('0x9f')](_0x313e52));}}return _0x27ba92;}[_0x1541('0x84')](_0x395a3c,_0x52af06){const _0x11cb7c=[];for(let _0x572a32=0x0;_0x572a32<_0x395a3c['length'];_0x572a32++){for(let _0x434f1b=0x0;_0x434f1b<_0x395a3c[_0x572a32]['markersStart']['length'];_0x434f1b++){const _0x1a3846=_0x395a3c[_0x572a32][_0x1541('0xd0')][_0x434f1b];if(!_0x52af06[_0x1541('0x15')](_0x1a3846))continue;const {group:_0x4ccb21,type:_0x14a467,authorId:_0x2e196c}=_0x4edc10(_0x1a3846);_0x1541('0xcd')!=_0x4ccb21||'insertion'!=_0x14a467&&'deletion'!=_0x14a467||(_0x11cb7c[_0x1541('0x52')]({'type':_0x14a467,'name':_0x1a3846,'userId':_0x2e196c}),_0x395a3c[_0x572a32][_0x1541('0xd0')][_0x1541('0x3a')](_0x434f1b,0x1),_0x434f1b--);}_0x3d869d(_0x395a3c[_0x572a32]);for(let _0xdda860=0x0;_0xdda860<_0x395a3c[_0x572a32][_0x1541('0x76')][_0x1541('0xb3')];_0xdda860++){const _0xdfddd3=_0x395a3c[_0x572a32][_0x1541('0x76')][_0xdda860];if(!_0x52af06[_0x1541('0x15')](_0xdfddd3))continue;const {group:_0x4f6233,type:_0x4b051a}=_0x4edc10(_0xdfddd3);if(_0x1541('0xcd')!=_0x4f6233||'insertion'!=_0x4b051a&&_0x1541('0xaf')!=_0x4b051a)continue;_0x395a3c[_0x572a32][_0x1541('0x76')][_0x1541('0x3a')](_0xdda860,0x1),_0xdda860--;const _0x136803=_0x11cb7c[_0x1541('0x1a')](_0xcb581d=>_0xcb581d[_0x1541('0x1f')]==_0xdfddd3);_0x136803>-0x1&&_0x11cb7c[_0x1541('0x3a')](_0x136803,0x1);}}function _0x4edc10(_0x337a5a){const _0x3ad80e=_0x337a5a[_0x1541('0xba')](':');return{'group':_0x3ad80e[0x0],'type':_0x3ad80e[0x1],'subType':_0x3ad80e[_0x1541('0xb3')]>=0x5?_0x3ad80e[0x2]:null,'id':_0x3ad80e['length']<0x5?_0x3ad80e[0x2]:_0x3ad80e[0x3],'authorId':_0x3ad80e['length']<0x5?_0x3ad80e[0x3]:_0x3ad80e[0x4],'markerCount':0x6==_0x3ad80e['length']?_0x3ad80e[0x5]:null};}function _0x3d869d(_0x3e8cf9){for(let _0x5369dc=0x0;_0x5369dc<_0x11cb7c[_0x1541('0xb3')];_0x5369dc++){if(_0x3e8cf9[_0x1541('0x4c')]&&_0x1541('0x11e')==_0x11cb7c[_0x5369dc][_0x1541('0x4a')])return _0x3e8cf9['isAddSuggestion']=_0x11cb7c[_0x5369dc],void delete _0x3e8cf9[_0x1541('0x4c')];if(!_0x3e8cf9['isAdded']&&!_0x3e8cf9[_0x1541('0x100')]&&_0x1541('0xaf')==_0x11cb7c[_0x5369dc][_0x1541('0x4a')])return void(_0x3e8cf9[_0x1541('0xf6')]=_0x11cb7c[_0x5369dc]);}}}['_setDistance'](_0x4492d6,_0x145b20){let _0x20287c=0x0,_0x257a51=!0x1;const _0x7a345c=new Map();for(const _0x19eb79 of _0x4492d6)_0x19eb79[_0x145b20]?_0x257a51&&(_0x20287c++,_0x257a51=!0x1):(_0x20287c++,_0x257a51=!0x0),_0x7a345c[_0x1541('0xc8')](_0x19eb79['id'],_0x20287c);for(let _0x4221b7=0x0;_0x4221b7<_0x4492d6['length'];_0x4221b7++){if(_0x1541('0x100')==_0x145b20&&_0x4492d6[_0x4221b7][_0x1541('0x4c')]||_0x1541('0x4c')==_0x145b20&&_0x4492d6[_0x4221b7]['isRemoved'])continue;if(_0x1541('0x4')==_0x4492d6[_0x4221b7]['type']){_0x4492d6[_0x4221b7][_0x1541('0x6c')]=0x0;continue;}const _0x4c83dd=_0x7a345c[_0x1541('0x6f')](_0x4492d6[_0x4221b7][_0x1541('0xfc')]),_0x4a549c=_0x7a345c[_0x1541('0x6f')](_0x4492d6[_0x4221b7]['id']);_0x4492d6[_0x4221b7][_0x1541('0x6c')]=_0x4c83dd-_0x4a549c;}}[_0x1541('0x96')](_0x2c46a9,_0x288aed,_0x4d0477=!0x1){const _0x525ee5=[];let _0x40573e=this[_0x1541('0x8b')][_0x1541('0x5c')](_0x2c46a9),_0x59ba30=this[_0x1541('0x8b')][_0x1541('0x5c')](_0x288aed);for(-0x1==_0x59ba30&&(_0x59ba30=this[_0x1541('0x8b')][_0x1541('0x40')][_0x1541('0xb3')],_0x4d0477=!0x1);_0x40573e<_0x59ba30;)_0x525ee5[_0x1541('0x9f')](this[_0x1541('0x8b')][_0x1541('0xc7')](_0x40573e)),_0x40573e++;return _0x4d0477&&_0x525ee5[_0x1541('0x9f')](this['repository'][_0x1541('0xc7')](_0x40573e)),_0x525ee5;}[_0x1541('0x1')](_0xebd0a,_0x497636,_0x451213,_0x558814){const _0x544bb7=this[_0x1541('0x3b')]['model']['schema'];let _0x233102=_0x497636;for(;_0xebd0a[_0x233102]&&_0xebd0a[_0x233102]['isAdded'];)_0x233102++;let _0x4c7128=_0x558814;for(;_0x451213[_0x4c7128]&&_0x451213[_0x4c7128]['isRemoved'];)_0x4c7128++;_0x33ac72(_0xebd0a,_0x497636,_0x233102),_0x33ac72(_0x451213,_0x558814,_0x4c7128);const _0x5b7ee8=_0x451213['slice'](_0x558814,_0x4c7128)['concat'](_0xebd0a[_0x1541('0x79')](_0x497636,_0x233102));return _0x5b7ee8[_0x1541('0x103')]((_0x51dd1f,_0x487118)=>_0x51dd1f[_0x1541('0x10b')]!=_0x487118['side']?_0x51dd1f['side']-_0x487118[_0x1541('0x10b')]:_0x51dd1f[_0x1541('0x75')]!=_0x487118[_0x1541('0x75')]?_0x51dd1f[_0x1541('0x75')]-_0x487118[_0x1541('0x75')]:_0x51dd1f['distance']!=_0x487118[_0x1541('0x6c')]?_0x487118[_0x1541('0x6c')]-_0x51dd1f[_0x1541('0x6c')]:!!_0x51dd1f[_0x1541('0x4c')]!=!!_0x487118['isAdded']?-0x1==_0x51dd1f[_0x1541('0x10b')]||0x0==_0x51dd1f[_0x1541('0x10b')]?_0x51dd1f[_0x1541('0x4c')]?-0x1:0x1:_0x51dd1f[_0x1541('0x4c')]?0x1:-0x1:_0x51dd1f[_0x1541('0xa3')]-_0x487118[_0x1541('0xa3')]),{'commonTape':_0x5b7ee8,'iEnd':_0x233102,'jEnd':_0x4c7128};function _0x33ac72(_0x361e1c,_0x2f95d3,_0x36cda1){let _0x59e9c6=-0x1,_0x52a943=Number[_0x1541('0xbf')],_0x1eb222=!0x0;for(let _0x8051f2=_0x2f95d3;_0x8051f2<_0x36cda1;_0x8051f2++)if(_0x544bb7[_0x1541('0x2f')](_0x361e1c[_0x8051f2][_0x1541('0x11')])||(_0x1eb222=!0x1),_0x361e1c[_0x8051f2][_0x1541('0x11')][_0x1541('0xc1')]<_0x2f95d3&&(_0x59e9c6=_0x8051f2),_0x361e1c[_0x8051f2]['item'][_0x1541('0x123')]>=_0x36cda1){_0x52a943=_0x8051f2;break;}_0x1eb222&&(_0x59e9c6=_0x36cda1-0x1);for(let _0x46a5ed=_0x2f95d3;_0x46a5ed<_0x36cda1;_0x46a5ed++)_0x361e1c[_0x46a5ed][_0x1541('0x10b')]=_0x46a5ed<=_0x59e9c6?-0x1:_0x46a5ed<_0x52a943?0x0:0x1,_0x361e1c[_0x46a5ed][_0x1541('0xa3')]=_0x46a5ed;let _0x12a5b8=0x0;for(let _0x89768d=_0x2f95d3;_0x89768d<=_0x59e9c6;_0x89768d++)0x0==_0x361e1c[_0x89768d]['distance']?_0x361e1c[_0x89768d][_0x1541('0x75')]=_0x12a5b8:(_0x12a5b8++,_0x361e1c[_0x89768d]['level']=_0x12a5b8,_0x12a5b8++);for(let _0x540793=_0x2f95d3;_0x540793<_0x36cda1;_0x540793++)0x0==_0x361e1c[_0x540793][_0x1541('0x10b')]&&(_0x361e1c[_0x540793][_0x1541('0x75')]=_0x12a5b8);_0x12a5b8=0x0;for(let _0x4ccb04=_0x36cda1-0x1;_0x4ccb04>=_0x52a943;_0x4ccb04--)0x0==_0x361e1c[_0x4ccb04][_0x1541('0x6c')]?_0x361e1c[_0x4ccb04][_0x1541('0x75')]=_0x12a5b8:(_0x12a5b8--,_0x361e1c[_0x4ccb04][_0x1541('0x75')]=_0x12a5b8,_0x12a5b8--);}}['_fixObsoleteTags'](_0x1076b5){const _0x1393a0=new Map(),_0x505021=this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0xb')];for(let _0x39c758=0x1;_0x39c758<_0x1076b5[_0x1541('0xb3')];_0x39c758++){let _0x3c632f,_0x3b0c65,_0x1d18a1;const _0x427be3=_0x1076b5[_0x39c758],_0x52038d=_0x1076b5[_0x39c758-0x1];if('text'==_0x427be3[_0x1541('0x4a')])continue;if(_0x427be3['type']!=_0x52038d[_0x1541('0x4a')])continue;if(!_0x505021[_0x1541('0xf5')](_0x52038d['item'])||_0x505021[_0x1541('0x102')](_0x52038d[_0x1541('0x11')]))continue;if(!_0x505021[_0x1541('0xf5')](_0x427be3[_0x1541('0x11')])||_0x505021[_0x1541('0x102')](_0x427be3[_0x1541('0x11')]))continue;if((_0x1076b5[_0x39c758][_0x1541('0x4c')]||_0x1076b5[_0x39c758][_0x1541('0x63')])&&_0x1076b5[_0x39c758-0x1]['isRemoved'])_0x3c632f=_0x1076b5[_0x39c758],_0x3b0c65=_0x1076b5[_0x39c758-0x1],_0x1d18a1=_0x39c758-0x1;else{if(!_0x1076b5[_0x39c758][_0x1541('0x100')]||!_0x1076b5[_0x39c758-0x1][_0x1541('0x4c')]&&!_0x1076b5[_0x39c758-0x1][_0x1541('0x63')])continue;_0x3c632f=_0x1076b5[_0x39c758-0x1],_0x3b0c65=_0x1076b5[_0x39c758],_0x1d18a1=_0x39c758;}const _0x574929=_0x3c632f[_0x1541('0x75')]==_0x3b0c65[_0x1541('0x75')],_0x52c008=Math['abs'](_0x3c632f[_0x1541('0x75')])<Math[_0x1541('0x10c')](_0x3b0c65[_0x1541('0x75')])&&0x0==_0x3b0c65['distance'];(_0x574929||_0x52c008)&&(_0x1393a0['set'](_0x3b0c65['id'],_0x3c632f['id']),_0x1076b5[_0x1541('0x3a')](_0x1d18a1,0x1),_0x39c758--,_0x3c632f[_0x1541('0x4c')]=!0x1);}for(let _0x181bfb=0x0;_0x181bfb<_0x1076b5[_0x1541('0xb3')];_0x181bfb++)_0x1393a0[_0x1541('0x15')](_0x1076b5[_0x181bfb][_0x1541('0xfc')])&&(_0x1076b5[_0x181bfb][_0x1541('0xfc')]=_0x1393a0['get'](_0x1076b5[_0x181bfb][_0x1541('0xfc')]));}[_0x1541('0x2e')](_0x502dd0){const _0x2f19fc=new Set(_0x502dd0[_0x1541('0x7c')](_0x22303e=>_0x22303e['id']));for(let _0x1b75b9=0x0;_0x1b75b9<_0x502dd0['length'];_0x1b75b9++)_0x2f19fc[_0x1541('0x15')](_0x502dd0[_0x1b75b9][_0x1541('0xfc')])||0x0==_0x502dd0[_0x1b75b9][_0x1541('0x6c')]||(_0x502dd0[_0x1b75b9][_0x1541('0x9b')]=!0x0);return _0x502dd0['filter'](_0x42b2c4=>!_0x42b2c4['isIncorrect']);}[_0x1541('0x21')](_0x509b53){const _0xec84dd=new Set();for(let _0x1a4112=0x0;_0x1a4112<_0x509b53[_0x1541('0xb3')];_0x1a4112++){if(_0xec84dd[_0x1541('0x15')](_0x509b53[_0x1a4112]['id'])&&_0x509b53[_0x1a4112][_0x1541('0x100')]&&(_0x509b53[_0x1a4112]['isIncorrect']=!0x0),_0x509b53[_0x1a4112][_0x1541('0x9b')])continue;if(0x0==_0x509b53[_0x1a4112]['distance'])continue;if(_0x1541('0x68')!=_0x509b53[_0x1a4112]['type'])continue;if(null==_0x509b53[_0x1a4112][_0x1541('0xfc')])continue;let _0x10c7fd=_0x1a4112+0x1,_0xad055=0x0;for(;_0x509b53[_0x10c7fd]['id']!=_0x509b53[_0x1a4112][_0x1541('0xfc')];)_0x1541('0x68')==_0x509b53[_0x10c7fd][_0x1541('0x4a')]?_0xad055++:_0x1541('0x112')==_0x509b53[_0x10c7fd][_0x1541('0x4a')]&&_0xad055--,_0x10c7fd++;if(0x0!=_0xad055){if(_0x509b53[_0x1a4112][_0x1541('0x100')])_0x509b53[_0x1a4112][_0x1541('0x9b')]=!0x0;else for(;_0x10c7fd!=_0x1a4112;)_0x509b53[_0x10c7fd][_0x1541('0x100')]&&0x0!=_0x509b53[_0x10c7fd]['distance']&&(_0x509b53[_0x10c7fd][_0x1541('0x9b')]=!0x0,_0xec84dd['add'](_0x509b53[_0x10c7fd]['pairId'])),_0x10c7fd--;}}return _0x509b53[_0x1541('0x6')](_0x5b4220=>!_0x5b4220['isIncorrect']);}['_removeUnsupportedChanges'](_0x4575aa){const _0x5c5def=this['editor'][_0x1541('0x38')]['schema'];for(let _0x108b31=0x0;_0x108b31<_0x4575aa[_0x1541('0xb3')];_0x108b31++){if(!(_0x4575aa[_0x108b31]['isAdded']||_0x4575aa[_0x108b31]['isAddSuggestion']||_0x4575aa[_0x108b31][_0x1541('0x100')]||_0x4575aa[_0x108b31]['isRemoveSuggestion']))continue;if(0x0==_0x4575aa[_0x108b31]['distance'])continue;const _0x9e7bfe=_0x4575aa[_0x108b31]['item'];_0x5c5def[_0x1541('0xf5')](_0x9e7bfe)||_0x5c5def[_0x1541('0x102')](_0x9e7bfe)||(_0x4575aa[_0x108b31][_0x1541('0x4c')]&&delete _0x4575aa[_0x108b31][_0x1541('0x4c')],_0x4575aa[_0x108b31][_0x1541('0x63')]&&delete _0x4575aa[_0x108b31]['isAddSuggestion'],_0x4575aa[_0x108b31][_0x1541('0xf6')]&&delete _0x4575aa[_0x108b31][_0x1541('0xf6')],_0x4575aa[_0x108b31][_0x1541('0x100')]&&(_0x4575aa[_0x108b31][_0x1541('0x9b')]=!0x0));}return _0x4575aa[_0x1541('0x6')](_0x4d48a5=>!_0x4d48a5['isIncorrect']);}[_0x1541('0x116')](_0x3c3f83,_0x503103,_0x5a30dd){const _0x3071ca=new _0x4390f7(),_0x234aca=[],_0x38363f=new Map(),_0x294a46=this[_0x1541('0x3b')]['model'],_0x3037bc=_0x294a46[_0x1541('0xb')],_0x6b217=[_0x3071ca],_0x22691f={},_0x355bc0={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x23b5dc=null;const _0x99cf9d=[0x0];for(let _0x1a4459=0x0;_0x1a4459<_0x3c3f83[_0x1541('0xb3')];_0x1a4459++){let _0x22873b,_0x5d470f;if('elementStart'===_0x3c3f83[_0x1a4459][_0x1541('0x4a')]){_0x22873b=_0x294a46[_0x1541('0x98')](_0x3071ca,_0x99cf9d);const _0x231c79=new _0x24838a(_0x3c3f83[_0x1a4459][_0x1541('0x11')]['name'],_0x3c3f83[_0x1a4459]['item'][_0x1541('0x25')]());_0x6b217[0x0][_0x1541('0xee')](_0x231c79),_0x99cf9d['push'](0x0),_0x6b217[_0x1541('0x52')](_0x231c79),_0x5d470f=_0x294a46['createPositionFromPath'](_0x3071ca,_0x99cf9d),_0x23b5dc=null;}else{if(_0x1541('0x112')===_0x3c3f83[_0x1a4459][_0x1541('0x4a')])_0x6b217['shift'](),_0x22873b=_0x294a46['createPositionFromPath'](_0x3071ca,_0x99cf9d),_0x99cf9d[_0x1541('0x93')](),_0x99cf9d[_0x99cf9d[_0x1541('0xb3')]-0x1]++,_0x5d470f=_0x294a46[_0x1541('0x98')](_0x3071ca,_0x99cf9d),_0x23b5dc=null;else{if(_0x22873b=_0x294a46[_0x1541('0x98')](_0x3071ca,_0x99cf9d),_0x23b5dc&&_0x51ff52(_0x23b5dc,_0x3c3f83[_0x1a4459][_0x1541('0x11')]))_0x23b5dc[_0x1541('0x9a')]+=_0x3c3f83[_0x1a4459]['item'][_0x1541('0xa6')];else{const _0x434367=new _0x4109a4(_0x3c3f83[_0x1a4459][_0x1541('0x11')]['data'],_0x3c3f83[_0x1a4459][_0x1541('0x11')][_0x1541('0x25')]());_0x6b217[0x0]['_appendChild'](_0x434367),_0x23b5dc=_0x434367;}_0x99cf9d[_0x99cf9d[_0x1541('0xb3')]-0x1]+=_0x3c3f83[_0x1a4459][_0x1541('0x11')][_0x1541('0xc3')],_0x5d470f=_0x294a46[_0x1541('0x98')](_0x3071ca,_0x99cf9d);}}for(const _0x20f173 of _0x3c3f83[_0x1a4459][_0x1541('0xd0')])_0x38363f[_0x1541('0xc8')](_0x20f173,{'start':_0x22873b,'end':null});_0x31ae5f(_0x1541('0xf6'),_0x1a4459,_0x22873b,_0x5d470f),_0x31ae5f(_0x1541('0x63'),_0x1a4459,_0x22873b,_0x5d470f),_0x31ae5f(_0x1541('0x100'),_0x1a4459,_0x22873b,_0x5d470f),_0x31ae5f(_0x1541('0x4c'),_0x1a4459,_0x22873b,_0x5d470f);for(const _0x2d9ed5 of _0x3c3f83[_0x1a4459]['markersEnd']){_0x38363f[_0x1541('0x6f')](_0x2d9ed5)[_0x1541('0xc')]=_0x5d470f;}}for(const [_0x24b1dc,_0x2bbe1c]of _0x38363f){const _0x17968f=this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x47')](_0x2bbe1c[_0x1541('0xdc')],_0x2bbe1c[_0x1541('0xc')]);_0x3071ca[_0x1541('0xad')][_0x1541('0xc8')](_0x24b1dc,_0x17968f);}return _0x234aca['sort']((_0x275b6a,_0x23f783)=>{const _0x14cac3=_0x3071ca['markers'][_0x1541('0x6f')](_0x1541('0x18')+_0x275b6a['id']),_0x3580c9=_0x3071ca[_0x1541('0xad')]['get'](_0x1541('0x18')+_0x23f783['id']);return _0x14cac3[_0x1541('0xdc')]['isBefore'](_0x3580c9[_0x1541('0xdc')])?-0x1:_0x14cac3[_0x1541('0xdc')]['isAfter'](_0x3580c9[_0x1541('0xdc')])?0x1:_0x14cac3[_0x1541('0xc')][_0x1541('0x119')](_0x3580c9[_0x1541('0xc')])?-0x1:_0x14cac3[_0x1541('0xc')][_0x1541('0xc0')](_0x3580c9[_0x1541('0xc')])?0x1:_0x1541('0x61')===_0x275b6a[_0x1541('0x4a')]?-0x1:0x1;}),{'root':_0x3071ca,'changes':_0x234aca};function _0x31ae5f(_0x477ba4,_0x40501e,_0x2b6b5a,_0x196921){const _0x429128=!!_0x3c3f83[_0x40501e][_0x477ba4],_0x19a2b1=_0x429128?_0x3c3f83[_0x40501e][_0x477ba4][_0x1541('0xf0')]:null,_0x3859f4=_0x40501e===_0x3c3f83[_0x1541('0xb3')]-0x1,_0x4f78f2=_0x355bc0[_0x477ba4][0x0],_0x140c85=_0x3037bc[_0x1541('0x10')](_0x3c3f83[_0x40501e]['item']);!_0x22691f[_0x477ba4]&&_0x429128?_0x22691f[_0x477ba4]={'start':_0x2b6b5a,'tapeItem':_0x3c3f83[_0x40501e],'userId':_0x19a2b1,'type':_0x477ba4}:_0x22691f[_0x477ba4]&&!_0x429128?(_0x22691f[_0x477ba4][_0x1541('0xc')]=_0x2b6b5a,_0x284f4a(_0x22691f[_0x477ba4]),_0x22691f[_0x477ba4]=null):_0x22691f[_0x477ba4]&&_0x429128&&_0x22691f[_0x477ba4][_0x1541('0xf0')]!==_0x19a2b1&&(_0x22691f[_0x477ba4][_0x1541('0xc')]=_0x2b6b5a,_0x4f78f2&&_0x4f78f2[_0x1541('0xf0')]===_0x22691f[_0x477ba4][_0x1541('0xf0')]||_0x284f4a(_0x22691f[_0x477ba4]),_0x22691f[_0x477ba4]={'start':_0x2b6b5a,'tapeItem':_0x3c3f83[_0x40501e],'userId':_0x19a2b1,'type':_0x477ba4}),_0x22691f[_0x477ba4]&&_0x140c85&&(_0x1541('0x68')!==_0x3c3f83[_0x40501e][_0x1541('0x4a')]||_0x4f78f2&&_0x4f78f2[_0x1541('0xf0')]===_0x19a2b1||_0x355bc0[_0x477ba4][_0x1541('0x52')]({'userId':_0x19a2b1,'object':_0x3c3f83[_0x40501e][_0x1541('0x11')],'change':_0x22691f[_0x477ba4]}),_0x1541('0x112')===_0x3c3f83[_0x40501e]['type']&&_0x4f78f2&&_0x4f78f2[_0x1541('0xd3')]===_0x3c3f83[_0x40501e][_0x1541('0x11')]&&(_0x355bc0[_0x477ba4][_0x1541('0xe7')](),_0x22691f[_0x477ba4]=_0x4f78f2['change'])),_0x22691f[_0x477ba4]&&_0x3859f4&&(_0x22691f[_0x477ba4][_0x1541('0xc')]=_0x196921,_0x284f4a(_0x22691f[_0x477ba4]),_0x22691f[_0x477ba4]=null);}function _0x284f4a({start:_0x19ec73,end:_0x3f6d8f,tapeItem:_0x4c0996,userId:_0x4c64e2,type:_0x23894d}){const _0xdee98d=_0x4c0996[_0x1541('0x11')],_0x188505=_0x294a46[_0x1541('0xb')][_0x1541('0xf5')](_0xdee98d)&&!_0x294a46[_0x1541('0xb')][_0x1541('0x102')](_0xdee98d),_0x6ae4dc=_0x19ec73['nodeAfter']==_0x3f6d8f[_0x1541('0x92')]&&_0x3f6d8f[_0x1541('0xb6')];if(_0x188505&&_0x6ae4dc)return;const _0x5656e8=_0x294a46[_0x1541('0x47')](_0x19ec73,_0x3f6d8f),_0x43bf03=_0x503103[_0x1541('0x6f')](_0x4c64e2),_0x22daff=new _0x90d829({'author':_0x43bf03,'type':_0x1541('0x4c')==_0x23894d||_0x1541('0x63')==_0x23894d?_0x1541('0x61'):_0x1541('0x27'),'data':{'isSuggestion':_0x1541('0x63')==_0x23894d||_0x1541('0xf6')==_0x23894d},'createdAt':new Date(),'rootName':_0x5a30dd});_0x234aca[_0x1541('0x9f')](_0x22daff),_0x3071ca[_0x1541('0xad')][_0x1541('0xc8')](_0x1541('0x18')+_0x22daff['id'],_0x5656e8);}function _0x51ff52(_0x1c88ca,_0x26f864){const _0x177288=_0x1c88ca[_0x1541('0x25')](),_0x5b5a4e=_0x26f864[_0x1541('0x25')]();for(const _0x166689 of _0x177288){if(_0x166689[0x1]!==_0x26f864[_0x1541('0x5b')](_0x166689[0x0]))return!0x1;_0x5b5a4e[_0x1541('0x20')]();}return _0x5b5a4e['next']()[_0x1541('0xb0')];}}[_0x1541('0x5')](){this[_0x1541('0x3b')]['conversion']['for'](_0x1541('0xe'))[_0x1541('0x7f')]({'view':_0x1541('0xa7')}),this['editor'][_0x1541('0x19')][_0x1541('0xa5')]('editingDowncast')['markerToHighlight']({'model':_0x1541('0xa7'),'view':_0x1a2b90=>{const _0x31d845=_0x1a2b90['markerName'][_0x1541('0xba')](':')[0x1],_0x5558a1=this[_0x1541('0x118')](_0x31d845);if(!_0x5558a1)return null;const _0x16a306=_0x1541('0x61')==_0x5558a1[_0x1541('0x4a')]?_0x1541('0x11e'):_0x1541('0xaf'),_0x5d816b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x16a306];return _0x5558a1[_0x1541('0xa6')][_0x1541('0xb2')]&&_0x5d816b[_0x1541('0x9f')](_0x1541('0x10e')+_0x16a306+'-new'),this[_0x1541('0x32')]==_0x5558a1&&_0x5d816b['push'](_0x1541('0x41')),{'classes':_0x5d816b,'attributes':{'data-change-id':_0x31d845}};}}),this[_0x1541('0x3b')][_0x1541('0x19')][_0x1541('0xa5')](_0x1541('0xe'))['add'](_0x26c4d1=>{_0x26c4d1['on'](_0x1541('0x54'),(_0x298375,_0x13255a,_0x50fb0d)=>{const _0x139355=_0x13255a[_0x1541('0xd5')]['getChild'](0x0);if(!_0x139355||!_0x139355['is'](_0x1541('0x24'),_0x1541('0x11b')))return;if(!_0x50fb0d[_0x1541('0x60')][_0x1541('0xf8')](_0x139355,{'attributes':[_0x1541('0x121'),'vid_end']}))return;const _0x31c374=_0x13255a['modelRange'][_0x1541('0xdc')]['nodeAfter'];_0x50fb0d[_0x1541('0x7e')][_0x1541('0xa8')]('vid_start',_0x139355[_0x1541('0x5b')]('vid_start'),_0x31c374),_0x50fb0d[_0x1541('0x7e')][_0x1541('0xa8')]('vid_end',_0x139355[_0x1541('0x5b')](_0x1541('0x31')),_0x31c374);},{'priority':'low'});}),this[_0x1541('0x3b')][_0x1541('0x19')][_0x1541('0xa5')](_0x1541('0xe'))[_0x1541('0x61')](_0x2525be=>{_0x2525be['on'](_0x1541('0x24'),(_0x736b25,_0x1107bc,_0x2b4c31)=>{if(!_0x2b4c31['consumable']['consume'](_0x1107bc[_0x1541('0xd5')],{'attributes':[_0x1541('0x121'),'vid_end']}))return;if(_0x1107bc[_0x1541('0x2d')][_0x1541('0x9e')])return;const _0x55cc46=_0x1107bc['modelRange']['start'][_0x1541('0x105')];_0x55cc46['hasAttribute'](_0x1541('0x121'))||_0x55cc46[_0x1541('0x5a')](_0x1541('0x77'))||(_0x2b4c31[_0x1541('0x7e')][_0x1541('0xa8')](_0x1541('0x121'),_0x1107bc['viewItem']['getAttribute'](_0x1541('0x121')),_0x55cc46),_0x2b4c31[_0x1541('0x7e')][_0x1541('0xa8')](_0x1541('0x31'),_0x1107bc[_0x1541('0xd5')][_0x1541('0x5b')](_0x1541('0x31')),_0x55cc46));},{'priority':_0x1541('0xe8')});}),this[_0x1541('0x3b')][_0x1541('0x19')][_0x1541('0xa5')](_0x1541('0xe'))[_0x1541('0x3d')]({'view':{'name':_0x1541('0x29'),'attributes':{'vid':!0x0}},'model':{'key':_0x1541('0x77'),'value':_0x3e2805=>_0x3e2805[_0x1541('0x5b')](_0x1541('0x77'))}}),this[_0x1541('0x3b')][_0x1541('0x38')]['schema']['on']('checkAttribute',(_0x4609a5,[,_0x56f1b9])=>{[_0x1541('0x121'),_0x1541('0x31'),_0x1541('0x77')][_0x1541('0x59')](_0x56f1b9)&&(_0x4609a5[_0x1541('0x44')]=!0x0,_0x4609a5['stop']());},{'priority':_0x1541('0xbe')}),this[_0x1541('0x3b')][_0x1541('0x19')][_0x1541('0xa5')](_0x1541('0x70'))['add'](_0x556023=>{_0x556023['on'](_0x1541('0xe2'),(_0x314d79,_0x3d6947,_0x568a9e)=>{if('\x20'!=_0x3d6947['item'][_0x1541('0xa6')]||_0x3d6947[_0x1541('0x11')][_0x1541('0x92')][_0x1541('0x80')]>0x1)return;if(!_0x568a9e[_0x1541('0x60')]['consume'](_0x3d6947['item'],_0x314d79[_0x1541('0x1f')]))return;const _0x4f5709=_0x568a9e['writer'],_0x21a9d0=_0x568a9e[_0x1541('0xb8')][_0x1541('0xab')](_0x3d6947[_0x1541('0x23')]);_0x4f5709[_0x1541('0xe6')](_0x21a9d0,_0x4f5709[_0x1541('0x55')]('span'));});}),this[_0x1541('0x3b')][_0x1541('0x19')]['for'](_0x1541('0x70'))[_0x1541('0x4e')]({'model':'revision'}),this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x104')]['on'](_0x1541('0xea'),function(_0x2f4241){const _0x28403b=_0x2f4241['plugins'][_0x1541('0x6f')](_0x1541('0x42'));return(_0x42a09d,_0x2b497a,_0x42ca3f)=>{const _0x4098c8=_0x2b497a[_0x1541('0x5d')][_0x1541('0xba')](':')[0x1],_0x2ee003=_0x28403b[_0x1541('0x118')](_0x4098c8);if(!_0x2ee003)return null;const _0x34d68d=_0x1541('0x61')==_0x2ee003[_0x1541('0x4a')]?_0x1541('0xba'):_0x1541('0xae');if(!_0x42ca3f[_0x1541('0x60')]['test'](_0x2b497a['markerRange'],_0x42a09d[_0x1541('0x1f')]))return;const _0x4e8136=_0x2b497a[_0x1541('0x2b')][_0x1541('0xc9')](),_0x240fcd=_0x2b497a[_0x1541('0x2b')][_0x1541('0xdc')],_0x418487=_0x2f4241[_0x1541('0x38')]['schema'];let _0x4fc95f=null,_0x4578a4=null,_0x5b345=!0x1,_0x4a0245=!0x1;for(const _0x493082 of _0x4e8136){const _0xb60f2=_0x493082['item'];_0x5b345=_0x5b345||_0x418487[_0x1541('0x88')](_0xb60f2);const _0x5a34d1=_0x42ca3f[_0x1541('0xb8')][_0x1541('0xdd')](_0xb60f2);if(_0x5a34d1&&_0x5a34d1[_0x1541('0xb5')](_0x1541('0x122')))return;_0x1541('0x112')==_0x493082[_0x1541('0x4a')]&&(_0x418487[_0x1541('0xf5')](_0xb60f2)&&!_0x418487[_0x1541('0x102')](_0xb60f2)&&(_0xb60f2['nextSibling']||_0x240fcd[_0x1541('0xfb')]?_0x4fc95f&&_0x4fc95f[_0x1541('0x92')]==_0xb60f2||(_0x4fc95f=_0xb60f2,_0x3a89e0(_0x493082[_0x1541('0xd6')]),_0x4a0245=!0x0):_0x4578a4=_0x4578a4||_0x493082[_0x1541('0xd6')]));}function _0x3a89e0(_0x428918){const _0xb7514d=_0x42ca3f[_0x1541('0x7e')][_0x1541('0xca')]('span',{'class':_0x1541('0x10e')+_0x34d68d}),_0x53390f=_0x42ca3f[_0x1541('0xb8')][_0x1541('0x11a')](_0x428918);_0x2ee003[_0x1541('0xa6')][_0x1541('0xb2')]&&_0x42ca3f[_0x1541('0x7e')][_0x1541('0x9c')](_0x1541('0x10e')+_0x34d68d+_0x1541('0xec'),_0xb7514d),_0x28403b['activeChange']==_0x2ee003&&_0x42ca3f[_0x1541('0x7e')][_0x1541('0x9c')](_0x1541('0x41'),_0xb7514d),_0x42ca3f['writer'][_0x1541('0xc6')](_0x53390f,_0xb7514d),_0x42ca3f['mapper'][_0x1541('0xd2')](_0xb7514d,_0x2b497a[_0x1541('0x5d')]);}_0x5b345||_0x4a0245||!_0x4578a4||_0x3a89e0(_0x4578a4);};}(this['editor']),{'priority':_0x1541('0x97')}),this['editor'][_0x1541('0x73')][_0x1541('0x104')]['on'](_0x1541('0xc2'),(_0x29ee74,_0x36d205,_0x11f7c0)=>{const _0x28351d=_0x11f7c0[_0x1541('0xb8')][_0x1541('0x0')](_0x36d205[_0x1541('0x5d')]);if(_0x28351d)for(const _0x3c8cdc of _0x28351d)(_0x3c8cdc[_0x1541('0x114')](_0x1541('0x95'))||_0x3c8cdc['hasClass'](_0x1541('0x86')))&&(_0x11f7c0[_0x1541('0xb8')][_0x1541('0x14')](_0x3c8cdc,_0x36d205[_0x1541('0x5d')]),_0x11f7c0[_0x1541('0x7e')][_0x1541('0x27')](_0x3c8cdc));},{'priority':_0x1541('0x97')}),this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x104')]['on']('addMarker:revision',(_0xe26a9b,_0x3ac5d9,_0x8d2618)=>{const _0x426d4a=_0x3ac5d9['markerName'][_0x1541('0xba')](':')[0x1],_0x1c5dd5=this[_0x1541('0x118')](_0x426d4a);if(!_0x1c5dd5)return null;const _0x67b9ea=_0x1541('0x61')==_0x1c5dd5[_0x1541('0x4a')]?_0x1541('0xba'):'merge';if(_0x8d2618[_0x1541('0x60')]['test'](_0x3ac5d9[_0x1541('0x2b')],_0xe26a9b[_0x1541('0x1f')]))for(const _0x47ef9e of _0x3ac5d9[_0x1541('0x2b')][_0x1541('0x48')]()){if(!_0x47ef9e['is'](_0x1541('0x24'),_0x1541('0xa0')))continue;const _0x3c0a2b=_0x8d2618[_0x1541('0x7e')]['createUIElement'](_0x1541('0x29'),{'class':_0x1541('0x10e')+_0x67b9ea}),_0x405444=_0x8d2618[_0x1541('0xb8')][_0x1541('0x11a')](this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x90')](_0x47ef9e));_0x1c5dd5['data'][_0x1541('0xb2')]&&_0x8d2618[_0x1541('0x7e')]['addClass']('ck-suggestion-marker-'+_0x67b9ea+_0x1541('0xec'),_0x3c0a2b),this[_0x1541('0x32')]==_0x1c5dd5&&_0x8d2618[_0x1541('0x7e')]['addClass']('ck-suggestion-marker--active',_0x3c0a2b),_0x8d2618[_0x1541('0x7e')]['insert'](_0x405444,_0x3c0a2b),_0x8d2618[_0x1541('0xb8')][_0x1541('0xd2')](_0x3c0a2b,_0x3ac5d9['markerName']);}},{'priority':_0x1541('0x97')}),this[_0x1541('0x3b')][_0x1541('0x38')]['document']['on']('change',()=>{this['editor'][_0x1541('0x73')][_0x1541('0x2')][_0x1541('0xcc')](_0x517937=>{for(const _0x23ac5c of this['editor'][_0x1541('0x38')][_0x1541('0x6d')][_0x1541('0x78')]()){const _0x5a4c66=this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x6d')]['getRoot'](_0x23ac5c),_0x5a1f7c=this[_0x1541('0x3b')]['editing'][_0x1541('0x2')][_0x1541('0x6d')][_0x1541('0xdb')](_0x23ac5c);if(_0x5a1f7c){const _0x430048=_0x5a4c66[_0x1541('0x5b')](_0x1541('0x10a'));if(_0x517937['removeAttribute'](_0x1541('0x81'),_0x5a1f7c),_0x517937[_0x1541('0x12')](_0x1541('0xa2'),_0x5a1f7c),_0x517937[_0x1541('0x12')](_0x1541('0x67'),_0x5a1f7c),_0x517937[_0x1541('0x12')]('ck-revision-history-root--active',_0x5a1f7c),_0x430048){const _0x3089bf=this[_0x1541('0x118')](_0x430048);if(!_0x3089bf)return null;_0x517937[_0x1541('0xa8')](_0x1541('0x81'),_0x430048,_0x5a1f7c),_0x517937[_0x1541('0x9c')](_0x1541('0xed')+_0x3089bf[_0x1541('0x4a')],_0x5a1f7c),this[_0x1541('0x32')]==_0x3089bf&&_0x517937['addClass']('ck-revision-history-root--active',_0x5a1f7c);}}}});}),this[_0x1541('0x3b')]['conversion'][_0x1541('0xa5')](_0x1541('0xe'))['dataToMarker']({'view':_0x1541('0x34'),'model':_0x491c81=>_0x1541('0x94')+_0x491c81,'converterPriority':_0x1541('0xbe')}),this[_0x1541('0x3b')]['conversion']['for'](_0x1541('0xe'))['dataToMarker']({'view':_0x1541('0xaa'),'model':_0xea8a2d=>_0x1541('0xf1')+_0xea8a2d,'converterPriority':_0x1541('0xbe')}),this[_0x1541('0x3b')]['conversion'][_0x1541('0xa5')](_0x1541('0x70'))[_0x1541('0x4e')]({'model':_0x1541('0xcd'),'view':_0x2b9810=>({'name':_0x1541('0x117')+_0x2b9810,'group':'revision-suggestion'}),'converterPriority':'highest'}),this[_0x1541('0x3b')][_0x1541('0x19')][_0x1541('0xa5')](_0x1541('0x43'))[_0x1541('0x69')]({'model':_0x1541('0xcd'),'view':_0x150ab6=>{const _0x551991=_0x150ab6[_0x1541('0x5d')][_0x1541('0xba')](':')[0x1];return _0x1541('0x11e')!=_0x551991&&_0x1541('0xaf')!=_0x551991?null:{'classes':['ck-suggestion-preview-marker',_0x1541('0xbd')+_0x551991]};}}),this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x104')]['on'](_0x1541('0x1c'),et(this[_0x1541('0x3b')],'merge'),{'priority':_0x1541('0x97')}),this['editor'][_0x1541('0x73')]['downcastDispatcher']['on'](_0x1541('0x33'),et(this[_0x1541('0x3b')],_0x1541('0xba')),{'priority':_0x1541('0x97')}),this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x104')]['on'](_0x1541('0xe5'),(_0x3dbd88,_0x2acd58,_0x2d26fb)=>{const _0x1e90de=_0x2d26fb[_0x1541('0xb8')][_0x1541('0x0')](_0x2acd58[_0x1541('0x5d')]);if(_0x1e90de)for(const _0x4869ff of _0x1e90de)_0x4869ff['is'](_0x1541('0xb1'))&&(_0x2d26fb[_0x1541('0xb8')][_0x1541('0x14')](_0x4869ff,_0x2acd58[_0x1541('0x5d')]),_0x2d26fb[_0x1541('0x7e')][_0x1541('0x27')](_0x4869ff));},{'priority':_0x1541('0x97')});}[_0x1541('0x118')](_0x105e14){return this['_changeIdToChange'][_0x1541('0x6f')](_0x105e14);}[_0x1541('0x8f')](_0x27f49e){return this[_0x1541('0xb7')]&&this[_0x1541('0xb7')][_0x1541('0xd1')](),this[_0x1541('0xb7')]=new _0x4e0c7a(this[_0x1541('0x3b')][_0x1541('0x7a')],_0x27f49e),this[_0x1541('0xb7')];}[_0x1541('0x106')](){this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x6d')][_0x1541('0xde')][_0x1541('0xd4')](_0x1541('0xa7')),this['on'](_0x1541('0x1b'),(_0x4e5a22,_0x3ce941,_0x7bfdc0,_0xb0d1b4)=>{_0xb0d1b4&&this[_0x1541('0x3')][_0x1541('0x27')](_0xb0d1b4),_0x7bfdc0&&(this[_0x1541('0x3')][_0x1541('0x61')]({'view':_0x7bfdc0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x503e38=this[_0x1541('0x3b')][_0x1541('0x73')],_0x237717=this['_getChangeFromId'](_0x7bfdc0[_0x1541('0x11f')]);let _0x5463a5;if(_0x237717['data'][_0x1541('0x11d')]){const _0x12345d=_0x503e38[_0x1541('0x2')]['getDomRoot'](_0x237717[_0x1541('0xf2')]);_0x5463a5=Array[_0x1541('0x2c')](_0x12345d['getClientRects']());}else{const _0x225d51=this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0xad')][_0x1541('0x6f')](_0x1541('0x18')+_0x7bfdc0[_0x1541('0x11f')]);_0x5463a5=Array[_0x1541('0x2c')](_0x503e38[_0x1541('0xb8')][_0x1541('0x0')](_0x225d51[_0x1541('0x1f')]))[_0x1541('0x7c')](_0x175840=>_0x503e38[_0x1541('0x2')]['domConverter'][_0x1541('0x64')](_0x175840))['map'](_0x203040=>Array[_0x1541('0x2c')](_0x203040[_0x1541('0x7')]()))[_0x1541('0xef')]();}if(!this[_0x1541('0xbb')])return _0x5463a5[0x0];return _0x5463a5[_0x1541('0x71')](_0xb83fdd=>_0xb83fdd['top']-0x3<=this['_activeViewTarget']['y']&&_0xb83fdd[_0x1541('0x9')]+0x3>=this[_0x1541('0xbb')]['y']&&_0xb83fdd['left']-0x3<=this[_0x1541('0xbb')]['x']&&_0xb83fdd[_0x1541('0xda')]+0x3>=this[_0x1541('0xbb')]['x'])||_0x5463a5[0x0];}}}),this[_0x1541('0x3')][_0x1541('0x72')](_0x1541('0x39')));}),this['on'](_0x1541('0xbc'),(_0x72f325,_0x5d2b57,_0x3f105b,_0x5de37d)=>{this[_0x1541('0x1e')]=_0x3f105b?this[_0x1541('0x8f')](_0x3f105b):null,this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0xcc')](()=>{const _0x20d182=this[_0x1541('0x3b')][_0x1541('0x73')];_0x5de37d&&(_0x5de37d[_0x1541('0xa6')][_0x1541('0x11d')]?_0x20d182[_0x1541('0x2')][_0x1541('0xcc')](_0x1a53ba=>{_0x1a53ba[_0x1541('0x12')](_0x1541('0x87'),_0x20d182['view'][_0x1541('0x6d')]['getRoot'](_0x5de37d[_0x1541('0xf2')]));}):_0x20d182[_0x1541('0x3e')](_0x1541('0x18')+_0x5de37d['id'])),_0x3f105b&&(_0x3f105b[_0x1541('0xa6')][_0x1541('0x11d')]?_0x20d182[_0x1541('0x2')][_0x1541('0xcc')](_0x3c8660=>{_0x3c8660['addClass']('ck-revision-history-root--active',_0x20d182[_0x1541('0x2')]['document'][_0x1541('0xdb')](_0x3f105b[_0x1541('0xf2')]));}):_0x20d182[_0x1541('0x3e')](_0x1541('0x18')+_0x3f105b['id']));});}),this[_0x1541('0x115')](this[_0x1541('0x3b')]['editing'][_0x1541('0x2')]['document'],_0x1541('0x8e'),(_0x348d33,_0x2ecf73)=>{if(this[_0x1541('0x32')])return;const _0x4c29db=this[_0x1541('0x6a')](_0x2ecf73[_0x1541('0xeb')]),_0x162b99=this[_0x1541('0x4d')][_0x1541('0x6f')](_0x4c29db);_0x162b99?(this[_0x1541('0xbb')]={'x':_0x2ecf73['domEvent']['x'],'y':_0x2ecf73[_0x1541('0x8c')]['y']},this[_0x1541('0x1e')]=this['_getViewForChange'](_0x162b99)):(this[_0x1541('0xbb')]=null,this[_0x1541('0x1e')]=null);}),this[_0x1541('0x115')](this[_0x1541('0x3b')]['editing'][_0x1541('0x2')][_0x1541('0x6d')],'mousedown',(_0xdb7e49,_0x3a763e)=>{const _0x24a7c5=this[_0x1541('0x6a')](_0x3a763e[_0x1541('0xeb')]),_0x2f5034=this[_0x1541('0x4d')]['get'](_0x24a7c5);_0x2f5034?(this[_0x1541('0xbb')]={'x':_0x3a763e[_0x1541('0x8c')]['x'],'y':_0x3a763e[_0x1541('0x8c')]['y']},_0x2f5034===this['activeChange']?this['_balloon'][_0x1541('0x65')]():this[_0x1541('0x32')]=_0x2f5034):(this[_0x1541('0xbb')]=null,this[_0x1541('0x32')]=null);});}[_0x1541('0x6a')](_0x36b879){do{const _0xb03e6c=_0x36b879[_0x1541('0x5b')](_0x1541('0x81'));if(_0xb03e6c)return _0xb03e6c;_0x36b879=_0x36b879[_0x1541('0x92')];}while(_0x36b879);return null;}['_cleanMarkers'](){this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0xcc')](_0x4be012=>{for(const _0x1438d5 of this[_0x1541('0x3b')]['model'][_0x1541('0xad')])_0x4be012[_0x1541('0xf')](_0x1438d5);});}}function et(_0x547893,_0x5e6f16){return(_0x1614f8,_0x4bcdb2,_0x2c47f0)=>{if(!_0x2c47f0[_0x1541('0x60')][_0x1541('0x22')](_0x4bcdb2['markerRange'],_0x1614f8['name']))return;const _0x406d1d=_0x4bcdb2['markerRange'][_0x1541('0xc9')](),_0x543fed=_0x4bcdb2['markerRange'][_0x1541('0xdc')],_0x69faea=_0x547893[_0x1541('0x38')][_0x1541('0xb')];let _0x1fac10=null,_0x195805=null,_0x327130=!0x1,_0x19e99d=!0x1;for(const _0x1ace5f of _0x406d1d){const _0x5082e0=_0x1ace5f[_0x1541('0x11')];_0x327130=_0x327130||_0x69faea[_0x1541('0x88')](_0x5082e0);const _0x1c284b=_0x2c47f0[_0x1541('0xb8')][_0x1541('0xdd')](_0x5082e0);if(_0x1c284b&&_0x1c284b[_0x1541('0xb5')](_0x1541('0x122')))return;_0x1541('0x112')==_0x1ace5f['type']&&(_0x69faea[_0x1541('0xf5')](_0x5082e0)&&!_0x69faea[_0x1541('0x102')](_0x5082e0)&&(_0x5082e0[_0x1541('0xf3')]||_0x543fed['isAtEnd']?_0x1fac10&&_0x1fac10[_0x1541('0x92')]==_0x5082e0||(_0x1fac10=_0x5082e0,_0x14f47e(_0x1ace5f[_0x1541('0xd6')]),_0x19e99d=!0x0):_0x195805=_0x195805||_0x1ace5f[_0x1541('0xd6')]));}function _0x14f47e(_0x55e41f){const _0x157e88=_0x2c47f0[_0x1541('0xb8')][_0x1541('0x11a')](_0x55e41f),_0xfd6e8e=_0x2c47f0[_0x1541('0x7e')][_0x1541('0xca')](_0x1541('0x29'),{'class':_0x1541('0xbd')+_0x5e6f16});_0x2c47f0['writer'][_0x1541('0xc6')](_0x157e88,_0xfd6e8e),_0x2c47f0['mapper'][_0x1541('0xd2')](_0xfd6e8e,_0x4bcdb2[_0x1541('0x5d')]);}_0x327130||_0x19e99d||!_0x195805||_0x14f47e(_0x195805);};}export class RestoreRevisionCommand extends _0x2b67f2{constructor(_0x4f73ff){super(_0x4f73ff);const _0x4647ad=_0x4f73ff[_0x1541('0x26')]['get'](d);this[_0x1541('0x8a')]=!0x1,this[_0x1541('0x115')](_0x4647ad,'change:isReady',()=>this['refresh']()),this[_0x1541('0x115')](_0x4647ad,_0x1541('0xf4'),()=>this[_0x1541('0x9d')]());}['execute'](){const _0x9472f2=this[_0x1541('0x3b')],_0xa6cfd6=_0x9472f2['plugins'][_0x1541('0x6f')](d),_0x26752a=_0xa6cfd6[_0x1541('0x4f')]?_0xa6cfd6[_0x1541('0xc5')]['newRevisionId']:null;_0x9472f2[_0x1541('0x17')][_0x1541('0x6f')](_0x1541('0x58'))[_0x1541('0x45')](_0x26752a);}[_0x1541('0x9d')](){const {isReady:_0x52c8b6,isEnabled:_0x143cfd}=this[_0x1541('0x3b')][_0x1541('0x26')][_0x1541('0x6f')](d);this[_0x1541('0x8d')]=_0x52c8b6&&_0x143cfd;}}export class ShowChangeCommand extends _0x2b67f2{constructor(_0x2a17bb,{direction:_0x52e5ba}){super(_0x2a17bb);const _0x43e5d7=_0x2a17bb[_0x1541('0x26')][_0x1541('0x6f')](d);this[_0x1541('0x8a')]=!0x1,this['_step']=_0x1541('0x3f')===_0x52e5ba?0x1:-0x1,this[_0x1541('0x115')](_0x43e5d7,_0x1541('0x113'),()=>this[_0x1541('0x9d')]()),this[_0x1541('0x115')](_0x43e5d7,_0x1541('0xf4'),()=>this[_0x1541('0x9d')]()),this['listenTo'](_0x43e5d7,'change:activeChange',()=>this[_0x1541('0x9d')]());}[_0x1541('0xac')](){const _0x35d91d=this[_0x1541('0x3b')],_0x6bdb21=_0x35d91d[_0x1541('0x26')][_0x1541('0x6f')](d),{isNavigationMode:_0x5b5910,currentChangeNumber:_0x30b28e}=_0x6bdb21;let _0x13821c;if(_0x6bdb21[_0x1541('0x32')]=_0x5b5910?_0x6bdb21[_0x1541('0xc5')][_0x1541('0x10d')][_0x1541('0x6f')](_0x30b28e+this[_0x1541('0x62')]):_0x6bdb21['diff']['changes'][_0x1541('0x49')],_0x6bdb21['activeChange'][_0x1541('0xa6')][_0x1541('0x11d')])_0x13821c=_0x35d91d[_0x1541('0x73')]['view'][_0x1541('0xd7')](_0x6bdb21['activeChange'][_0x1541('0xf2')]);else{const _0x594219=_0x35d91d[_0x1541('0x38')][_0x1541('0xad')][_0x1541('0x6f')]('revision:'+_0x6bdb21['activeChange']['id']);_0x13821c=_0x10b913(_0x35d91d[_0x1541('0x73')],_0x594219);}_0x142e83({'target':_0x13821c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x19d59e,currentChangeNumber:_0x19dd97,numberOfChanges:_0x53fcf1,isReady:_0xbd14c6,isEnabled:_0x298971}=this[_0x1541('0x3b')][_0x1541('0x26')]['get'](d);this[_0x1541('0x8d')]=!!(_0x298971&&_0xbd14c6&&_0x53fcf1)&&(!_0x19d59e||(0x1===this[_0x1541('0x62')]?_0x19dd97<_0x53fcf1-0x1:_0x19dd97>0x0));}}
23
+ const _0x5b32=['offsetSize','findIndex','comment','top','keys','_getChangeFromId','_cleanMarkers','getCustomProperty','config','restoreRevisionCallback','_sortAndFilterDiffChanges','document','concat','dataDowncast','createPositionFromPath','markerToData','index','createUIElement','isEqual','_initInteractions','getRootNames','level','ck-suggestion-marker-split','target','element','side','_markSuggestions','getWalker','toData','range','vid_end','insertion','name','first','_refreshStartEndIndex','_getRevisionsRange','activeView','_joinTapes','ck-suggestion-preview-marker','getAttributes','resolve','getIndex','ck-suggestion-marker-merge','consumable','addClass','toModel','parent','isSuggestion','children','RevisionViewer','_findChangeIdFromDomTarget','isAddSuggestion','forceDisabled','isOnRoot','isInline','getRoot','dataToMarker','_appendChild','modelRange','listenTo','startIndex','mapper','reconvertMarker','get','removeClass','getClientRects','revision-suggestion','createAttributeElement','schema','markerName','newRevisionId','isContent','refresh','catch','set','bindElementToMarker','vid_start','suggestion','for','revision-suggestion:','adapter','revisionHistoryAttachChange','_removeUnsupportedChanges','oldRevisionId','remove','uiElement','editing','_revisions','flat','bind','isRemoved','locale','add','startsWith','_makeTape','consume','isAtEnd','deletions','repository','bottom','toViewPosition','upcast','_setDistance','data-change-id','end','changes','high','distance','start','isNavigationMode','WidgetToolbarRepository','data','domConverter','revisionHistoryLabel','_balloon','nextSibling','_markInsertions','length','element:pre','ck-revision-history-root-remove','isAdded','type','backward','nodeAfter','enqueueChange','indexOf','insertions','isAfter','test','_setConversion','_getViewObj','isAtStart','selection','rootName','removeMarker:revision','markers','getAttribute','map','enableReadOnlyMode','addHighlight','_activeViewTarget','_cleanUp','data-revision-','model','domEvent','has','from','endIndex','isBlock','useFillerType','_threeWayMerge','includes','affectsData','change:isReady','unshift','_changeIdToChange','_processTape','forward','shift','elementStart','ck-revision-history-root--active','_removeRevisionMarkers','execute','code','markerNameToElements','getItems','ck-revision-history-root-add','addRevisionData','attachChange','suggestion:','downcastDispatcher','isBefore','next','_data','diff','isReady','getDomRoot','change','conversion','pairId','_fixObsoleteTags','isRemoveSuggestion','markersStart','view','addRoot','unbindElementFromMarkerName','activeChange','currentChangeNumber','requires','ck-revision-history-root-','_changeView','revision','init','commands','change:activeChange','mousedown','change:activeView','all','deletion','editingDowncast','toViewElement','createPositionBefore','_step','wrap','slice','ck-suggestion-marker--active','setAttribute','showNextChange','then','item','ck-suggestion-marker','editor','destroy','compare','_markMarkers','plugins','change:isEnabled','abs','splice','isEnabled','done','_markMismatchedRemovedTags','filter','createRange','forEach','revision:','return','softBreak','mapViewToDom','markerToHighlight','mouseover','isLimit','-new','highest','writer','getChild','previousPosition','addMarker:revision','nextPosition','text','low','attributesBefore','split','string','attributes','markersEnd','stop','object','elementEnd','isIncorrect','maxOffset','RevisionsRepository','markerRange','isAttached','diffData','_update','clear','userId','_removeMissingPairs','_setChanges','getRevision','isCollapsed','revision-comment:','viewItem','revision-viewer','loadRevisionData','getRevisionRootsAttributes','addMarker:revision-suggestion:insertion','detachRoot','delete','sort','attributesAfter','hasAttribute','changeId','_getViewForChange','vid','span','ck-suggestion-marker-','push','_makeModelFromViewString','parse','addRevision','insert','revisionHistory','ck-editor__editable__overlay','right','merge','_makeModelFromTape','processor'];(function(_0x525bb1,_0x5b328f){const _0x20bf46=function(_0x5f3b7b){while(--_0x5f3b7b){_0x525bb1['push'](_0x525bb1['shift']());}};_0x20bf46(++_0x5b328f);}(_0x5b32,0x1be));const _0x20bf=function(_0x525bb1,_0x5b328f){_0x525bb1=_0x525bb1-0x0;let _0x20bf46=_0x5b32[_0x525bb1];return _0x20bf46;};import{Plugin as _0x1f5549,Command as _0x48e309}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x98832}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5ad0f0}from'ckeditor5/src/ui';import{DocumentFragment as _0x5600b3,Element as _0xf7bb48,Text as _0x43992d,ViewDocumentFragment as _0x5421bf,ViewText as _0x1017eb,ViewElement as _0x161ef3,ViewContainerElement as _0x250000,ViewAttributeElement as _0x52c04f,ViewEmptyElement as _0x27094d,ViewRawElement as _0x140c49,ViewUIElement as _0x7a41c0}from'ckeditor5/src/engine';import{Users as _0x3c7e7a,getMarkerDomElement as _0xd912bf}from'ckeditor5-collaboration/src/collaboration-core';import _0x1c09bf from'./ui/revisionviewer/changedetailsview';import _0x22a1d1 from'./revisionsrepository';import _0x45af27 from'./changeitem';import{default as _0xf859ff}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x38bd10}from'lodash-es';const tt={'c':_0x250000,'a':_0x52c04f,'e':_0x27094d,'r':_0x140c49,'u':_0x7a41c0};export default class d extends _0x1f5549{static get['pluginName'](){return _0x20bf('0xb5');}static get[_0x20bf('0x1f')](){return[_0x3c7e7a,_0x5ad0f0,_0x22a1d1];}constructor(_0x47807d){super(_0x47807d),this[_0x20bf('0xe6')]=this[_0x20bf('0x36')]['plugins'][_0x20bf('0xc3')](_0x20bf('0x5e')),this['set'](_0x20bf('0x1d'),null),this['set'](_0x20bf('0xa8'),null),this[_0x20bf('0x110')]=null,this[_0x20bf('0xce')](_0x20bf('0x11'),null),this[_0x20bf('0xce')]('isReady',!0x1),this[_0x20bf('0xce')]('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1db370,_0x5f288c,_0x3d36a4)=>{this['activeChange']=null,this[_0x20bf('0xa8')]=null,this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0x1a')][_0x20bf('0x14')](_0x131748=>{for(const _0x425f55 of this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0x1a')][_0x20bf('0x8f')]['roots'])_0x3d36a4?_0x131748[_0x20bf('0xc4')](_0x20bf('0x7f'),_0x425f55):_0x131748[_0x20bf('0xb0')](_0x20bf('0x7f'),_0x425f55);});}),this[_0x20bf('0xdd')](_0x20bf('0xf1'))['to'](this,'activeChange',_0x49a39c=>null!==_0x49a39c),this[_0x20bf('0xdd')](_0x20bf('0x1e'))['to'](this,'isReady',this,_0x20bf('0x11'),this,'activeChange',(_0x3d9f42,_0x172a6e,_0x47f758)=>_0x3d9f42&&_0x47f758?_0x172a6e[_0x20bf('0xed')][_0x20bf('0xad')](_0x47f758):0x0),this[_0x20bf('0xdd')]('numberOfChanges')['to'](this,_0x20bf('0x12'),this,_0x20bf('0x11'),(_0x202ca7,_0x328b86)=>_0x202ca7?_0x328b86[_0x20bf('0xed')][_0x20bf('0xf9')]:0x0),this[_0x20bf('0x21')]=null,this[_0x20bf('0x11f')]=new Map(),this[_0x20bf('0xd4')]=null,this[_0x20bf('0xf6')]=this['editor'][_0x20bf('0x3a')][_0x20bf('0xc3')](_0x5ad0f0);}[_0x20bf('0x23')](){const _0x34af69=this[_0x20bf('0x36')],_0x1c48f9=new ShowChangeCommand(_0x34af69,{'direction':_0x20bf('0xfe')}),_0x25bd45=new ShowChangeCommand(_0x34af69,{'direction':_0x20bf('0x0')});(_0x34af69[_0x20bf('0x24')][_0x20bf('0xe0')]('showPreviousChange',_0x1c48f9),_0x34af69['commands'][_0x20bf('0xe0')](_0x20bf('0x32'),_0x25bd45),_0x34af69[_0x20bf('0x24')][_0x20bf('0xe0')]('restoreRevision',new RestoreRevisionCommand(_0x34af69)),this['on']('change:numberOfChanges',()=>{_0x1c48f9[_0x20bf('0xcc')](),_0x25bd45[_0x20bf('0xcc')]();}),this[_0x20bf('0x105')](),this[_0x20bf('0x97')](),_0x34af69[_0x20bf('0x10e')]('revision-viewer'),_0x34af69[_0x20bf('0x3a')][_0x20bf('0x115')](_0x20bf('0xf2')))&&_0x34af69[_0x20bf('0x3a')][_0x20bf('0xc3')](_0x20bf('0xf2'))[_0x20bf('0xb8')](_0x20bf('0x6b'));}async['getRevisionData'](_0x49458b){await this['loadRevisionData'](_0x49458b);const _0x284a4c={};for(const _0x119470 in _0x49458b[_0x20bf('0x61')]){if(_0x49458b['diffData'][_0x119470]['attachChange']&&!_0x49458b[_0x20bf('0x61')][_0x119470][_0x20bf('0xb')][_0x20bf('0x60')])continue;const _0x4aabad=this[_0x20bf('0x4')](JSON[_0x20bf('0x7b')](_0x49458b[_0x20bf('0x61')][_0x119470]['insertions'])),_0x56f9ae=this[_0x20bf('0x36')]['editing'][_0x20bf('0x1a')]['document'],_0x436704=new _0x5421bf(_0x56f9ae,_0x4aabad[_0x20bf('0x10d')](_0x31857c=>this[_0x20bf('0x106')](_0x31857c)));this[_0x20bf('0x36')][_0x20bf('0xf3')][_0x20bf('0x83')][_0x20bf('0x119')]('marked'),_0x284a4c[_0x119470]=this[_0x20bf('0x36')][_0x20bf('0xf3')][_0x20bf('0x83')][_0x20bf('0xa0')](_0x436704),this['editor']['data'][_0x20bf('0x83')][_0x20bf('0x119')]('default');}return _0x284a4c;}async[_0x20bf('0x6d')](_0x474a5b){await this[_0x20bf('0x6c')](_0x474a5b);const _0x418d3c={};for(const _0x29bd96 in _0x474a5b[_0x20bf('0x61')])_0x474a5b['diffData'][_0x29bd96][_0x20bf('0xb')]&&!_0x474a5b[_0x20bf('0x61')][_0x29bd96][_0x20bf('0xb')][_0x20bf('0x60')]||(_0x418d3c[_0x29bd96]=_0x474a5b['diffData'][_0x29bd96]['attributesAfter']||{});return _0x418d3c;}['_removeRevisionMarkers'](_0x1e0d8a){return(_0x1e0d8a=_0x1e0d8a[_0x20bf('0x41')](_0x504662=>!_0x504662[_0x20bf('0xa4')]||'revision-start'!==_0x504662[_0x20bf('0xa4')]&&'revision-end'!==_0x504662['name']))[_0x20bf('0x43')](_0x35f203=>{_0x20bf('0x56')!=typeof _0x35f203&&(_0x35f203[_0x20bf('0xb4')]=this['_removeRevisionMarkers'](_0x35f203['children']),_0x35f203[_0x20bf('0x57')]=_0x35f203[_0x20bf('0x57')][_0x20bf('0x41')](_0x4ec497=>!_0x4ec497[0x0][_0x20bf('0xe1')](_0x20bf('0x112'))));}),_0x1e0d8a;}async[_0x20bf('0x38')](_0x5844e5,_0xe0a2b2,_0x53f4c9=!0x1){if(!this['isEnabled'])return;const _0x43c4a6=this[_0x20bf('0x11')],_0x36a917=this[_0x20bf('0xe6')],_0xbe9ddc=_0x20bf('0x56')==typeof _0x5844e5?_0x36a917['getRevision'](_0x5844e5):_0x5844e5,_0x390a55=_0x20bf('0x56')==typeof _0xe0a2b2?_0x36a917['getRevision'](_0xe0a2b2):_0xe0a2b2,_0x4bec9a=_0xbe9ddc['id'],_0x4c4f70=_0x390a55?_0x390a55['id']:null;if(!_0x53f4c9&&this[_0x20bf('0x11')]&&this[_0x20bf('0x11')]['newRevisionId']===_0x4bec9a&&this[_0x20bf('0x11')][_0x20bf('0xd7')]===_0x4c4f70)return Promise['resolve']();this['isReady']=!0x1,this[_0x20bf('0xa8')]=null,this['activeChange']=null,this['diff']=new _0xf859ff(_0x4bec9a,_0x4c4f70);const _0x2c93f9=this[_0x20bf('0xa7')](_0xbe9ddc,_0x390a55,!0x0)['map'](_0x43b5f6=>this['loadRevisionData'](_0x43b5f6));return _0x2c93f9[_0x20bf('0x79')](new Promise(_0x53848a=>{setTimeout(_0x53848a,0x14);})),Promise[_0x20bf('0x28')](_0x2c93f9)[_0x20bf('0x33')](()=>{if(!this[_0x20bf('0x3e')])return;this['_cleanUp']();const _0x1d3df3=this['_getDiff'](_0x4bec9a,_0x4c4f70);for(const _0x28791f of _0x1d3df3[_0x20bf('0xed')])this[_0x20bf('0x11f')][_0x20bf('0xce')](_0x28791f['id'],_0x28791f);this['editor'][_0x20bf('0x113')]['enqueueChange']({'isUndoable':!0x1},_0x5b02a1=>{for(const _0x4a041e of this[_0x20bf('0x36')][_0x20bf('0x113')][_0x20bf('0x8f')][_0x20bf('0x98')]())_0x5b02a1['detachRoot'](_0x4a041e);for(const _0x1aede5 of Object['keys'](_0x1d3df3[_0x20bf('0x113')])){const _0x501c0c=_0x5b02a1[_0x20bf('0x1b')](_0x1aede5);for(const _0x1375fb of Object['keys'](_0x1d3df3[_0x20bf('0x57')][_0x1aede5]))_0x5b02a1[_0x20bf('0x31')](_0x1375fb,_0x1d3df3[_0x20bf('0x57')][_0x1aede5][_0x1375fb],_0x501c0c);_0x5b02a1[_0x20bf('0x7d')](_0x1d3df3['model'][_0x1aede5],_0x501c0c,0x0);}}),this[_0x20bf('0x11')][_0x20bf('0x66')](this[_0x20bf('0x8e')](_0x1d3df3['changes'])),this['isReady']=!0x0;})[_0x20bf('0xcd')](_0x1cf004=>{console['error'](_0x1cf004),this['_cleanUp'](),_0x43c4a6&&(this[_0x20bf('0x11')]=_0x43c4a6),this[_0x20bf('0x12')]=!0x0;});}[_0x20bf('0xa')](_0x2521a9,_0x3355f8){const _0x480d2=this[_0x20bf('0xe6')]['createRevision'](_0x2521a9);return _0x480d2['on'](_0x20bf('0x62'),(_0x5e3d52,_0x345836,_0x30e1ea)=>_0x3355f8(_0x345836,_0x30e1ea,_0x480d2)),this[_0x20bf('0xe6')][_0x20bf('0x7c')](_0x480d2),_0x480d2;}[_0x20bf('0x6c')](_0x3dcfd0){if(!_0x3dcfd0||_0x3dcfd0[_0x20bf('0x61')])return Promise[_0x20bf('0xac')]();{const _0x1c0b75=this['editor']['config'][_0x20bf('0xc3')]('collaboration.channelId');return this[_0x20bf('0xd4')][_0x20bf('0x67')]({'channelId':_0x1c0b75,'revisionId':_0x3dcfd0['id']})[_0x20bf('0x33')](_0x18325f=>{_0x3dcfd0['_update']({'diffData':_0x18325f[_0x20bf('0x61')]},!0x0);});}}[_0x20bf('0x111')](){this[_0x20bf('0x1d')]=null,this[_0x20bf('0x8a')](),this[_0x20bf('0x21')]&&this[_0x20bf('0x21')]['destroy'](),this[_0x20bf('0x21')]=null,this[_0x20bf('0x11f')][_0x20bf('0x63')](),this[_0x20bf('0x36')][_0x20bf('0x113')][_0x20bf('0x100')]({'isUndoable':!0x1},_0x2846bb=>{for(const _0x9ebc5c of this[_0x20bf('0x36')]['model'][_0x20bf('0x8f')][_0x20bf('0x98')]())_0x2846bb[_0x20bf('0x6f')](_0x9ebc5c);});}[_0x20bf('0x8e')](_0x3cfe77){const _0x48f3a7=[],_0x18dc0f=new Map();for(const _0x323f25 of this['editor'][_0x20bf('0x113')][_0x20bf('0x8f')]['getRootNames']()){const _0x486b8c=this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0x1a')][_0x20bf('0x13')](_0x323f25);if(!_0x486b8c)continue;const _0x7e4ef7=_0x486b8c['getClientRects']()['item'](0x0);_0x7e4ef7&&(_0x48f3a7[_0x20bf('0x79')](_0x323f25),_0x18dc0f[_0x20bf('0xce')](_0x323f25,_0x7e4ef7));}return _0x48f3a7[_0x20bf('0x71')]((_0x453fec,_0x4589e6)=>{const _0x11a3b4=_0x18dc0f[_0x20bf('0xc3')](_0x453fec),_0x17442c=_0x18dc0f['get'](_0x4589e6);return _0x11a3b4['y']-_0x17442c['y']||_0x11a3b4['x']-_0x17442c['x'];}),(_0x3cfe77=_0x3cfe77['filter'](_0x5b9cae=>_0x48f3a7[_0x20bf('0x11b')](_0x5b9cae[_0x20bf('0x109')])))[_0x20bf('0x71')]((_0x4bdf62,_0x233d7a)=>_0x48f3a7[_0x20bf('0x101')](_0x4bdf62[_0x20bf('0x109')])-_0x48f3a7[_0x20bf('0x101')](_0x233d7a[_0x20bf('0x109')])),_0x3cfe77;}[_0x20bf('0xe2')](_0x384a30){const _0x187948=Array[_0x20bf('0x116')](_0x384a30[_0x20bf('0x10b')])[_0x20bf('0x41')](([_0x30e4bd,_0x2a387e])=>_0x30e4bd[_0x20bf('0xe1')](_0x20bf('0x44'))&&!_0x2a387e[_0x20bf('0x68')]),_0x14ffc5=Array[_0x20bf('0x116')](this[_0x20bf('0x36')]['model']['createRangeIn'](_0x384a30)[_0x20bf('0x9f')]({'singleCharacters':!0x0}));if(0x0!=_0x187948[_0x20bf('0xf9')])for(const _0x118a81 of _0x14ffc5){const [_0xa6474b,_0x1dbb83]=_0x187948[0x0],[,_0x47f393,_0x5b0975]=_0xa6474b[_0x20bf('0x55')](':');if(_0x1dbb83[_0x20bf('0xec')]['isEqual'](_0x118a81[_0x20bf('0x51')])&&_0x187948['shift'](),(_0x118a81[_0x20bf('0x4f')][_0x20bf('0x96')](_0x1dbb83['start'])||_0x118a81[_0x20bf('0x4f')][_0x20bf('0x103')](_0x1dbb83[_0x20bf('0xf0')]))&&(_0x20bf('0xa3')==_0x47f393?_0x118a81[_0x20bf('0xfc')]={'userId':_0x5b0975}:'deletion'==_0x47f393&&(_0x118a81[_0x20bf('0xde')]={'userId':_0x5b0975})),0x0==_0x187948['length'])break;}return _0x14ffc5;}['_refreshStartEndIndex'](_0x50002d){const _0x51889c=new Map();for(let _0x3b4ef5=0x0;_0x3b4ef5<_0x50002d['length'];_0x3b4ef5++)_0x20bf('0x52')===_0x50002d[_0x3b4ef5]['type']?(_0x50002d[_0x3b4ef5][_0x20bf('0x34')]['startIndex']=_0x3b4ef5,_0x50002d[_0x3b4ef5]['item'][_0x20bf('0x117')]=_0x3b4ef5):(_0x20bf('0x2')===_0x50002d[_0x3b4ef5][_0x20bf('0xfd')]?_0x50002d[_0x3b4ef5][_0x20bf('0x34')][_0x20bf('0xc0')]=_0x3b4ef5:_0x20bf('0x5b')===_0x50002d[_0x3b4ef5][_0x20bf('0xfd')]&&(_0x50002d[_0x3b4ef5][_0x20bf('0x34')][_0x20bf('0x117')]=_0x3b4ef5),_0x51889c['set'](_0x50002d[_0x3b4ef5]['id'],_0x3b4ef5));for(const _0x5e07a1 of _0x51889c['values']())'elementStart'===_0x50002d[_0x5e07a1]['type']?_0x50002d[_0x5e07a1]['item'][_0x20bf('0x117')]=_0x51889c[_0x20bf('0xc3')](_0x50002d[_0x5e07a1][_0x20bf('0x16')]):_0x20bf('0x5b')===_0x50002d[_0x5e07a1][_0x20bf('0xfd')]&&(_0x50002d[_0x5e07a1][_0x20bf('0x34')][_0x20bf('0xc0')]=_0x51889c[_0x20bf('0xc3')](_0x50002d[_0x5e07a1][_0x20bf('0x16')]));}[_0x20bf('0x120')](_0x2ba03e){for(let _0x6d9aad=0x0;_0x6d9aad<_0x2ba03e[_0x20bf('0xf9')];_0x6d9aad++){if(_0x20bf('0x2')===_0x2ba03e[_0x6d9aad][_0x20bf('0xfd')])_0x2ba03e[_0x6d9aad][_0x20bf('0x34')]['startIndex']=_0x6d9aad;else{if(_0x20bf('0x5b')===_0x2ba03e[_0x6d9aad]['type']){_0x2ba03e[_0x6d9aad]['item'][_0x20bf('0x117')]=_0x6d9aad;const _0x2ebc6e=_0x2ba03e[_0x6d9aad][_0x20bf('0x34')][_0x20bf('0xc0')];_0x2ba03e[_0x2ebc6e][_0x20bf('0x16')]=_0x2ba03e[_0x6d9aad]['id'],_0x2ba03e[_0x6d9aad][_0x20bf('0x16')]=_0x2ba03e[_0x2ebc6e]['id'];}else _0x2ba03e[_0x6d9aad][_0x20bf('0x34')][_0x20bf('0xc0')]=_0x6d9aad,_0x2ba03e[_0x6d9aad][_0x20bf('0x34')]['endIndex']=_0x6d9aad,_0x2ba03e[_0x6d9aad][_0x20bf('0x16')]=null;}_0x2ba03e[_0x6d9aad][_0x20bf('0x19')]||(_0x2ba03e[_0x6d9aad][_0x20bf('0x19')]=[],_0x2ba03e[_0x6d9aad]['markersEnd']=[]);}}[_0x20bf('0xf8')](_0x1dcb60,_0x212693){const _0x438a63=_0x1dcb60['filter'](_0x5271fd=>!_0x5271fd[_0x20bf('0xfc')]);for(let _0x1cadda=0x0;_0x1cadda<_0x212693['length'];_0x1cadda++)_0x212693[_0x1cadda][_0x20bf('0xfc')]&&(_0x438a63[_0x1cadda][_0x20bf('0xfc')]=_0x212693[_0x1cadda][_0x20bf('0xfc')]);}['_makeModelFromViewString'](_0x3da0fe){const _0x3b6a97=JSON[_0x20bf('0x7b')](_0x3da0fe),_0x70a92f=this[_0x20bf('0x36')]['editing']['view']['document'],_0x35db0f=new _0x5421bf(_0x70a92f,_0x3b6a97['map'](_0x3ab7c2=>this[_0x20bf('0x106')](_0x3ab7c2)));return this[_0x20bf('0x36')]['data'][_0x20bf('0xb1')](_0x35db0f);}[_0x20bf('0x106')](_0x22befb){const _0x347e33=this[_0x20bf('0x36')]['editing'][_0x20bf('0x1a')][_0x20bf('0x8f')];if(_0x20bf('0x56')==typeof _0x22befb)return new _0x1017eb(_0x347e33,_0x22befb);{const _0x9bde61=_0x22befb[_0x20bf('0xb4')][_0x20bf('0x10d')](_0x252030=>this[_0x20bf('0x106')](_0x252030));return new(tt[_0x22befb['type']]||_0x161ef3)(_0x347e33,_0x22befb[_0x20bf('0xa4')],_0x22befb['attributes'],_0x9bde61);}}['_getDiff'](_0x31107b,_0x141469=null){const _0x103ff2=this[_0x20bf('0xe6')]['getRevision'](_0x31107b),_0x504ba2=_0x141469?this['repository'][_0x20bf('0x67')](_0x141469):null,_0x5dc3cf=this[_0x20bf('0xa7')](_0x103ff2,_0x504ba2),_0x41f9d2=_0x5dc3cf[_0x5dc3cf['length']-0x1],_0x2c6513=new Map(),_0x1242a2={'model':{},'attributes':{},'changes':[]},_0x11b2b6=new Set(),_0x3b5081=new Map();for(let _0x165523=_0x5dc3cf[_0x20bf('0xf9')]-0x1;_0x165523>=0x0;_0x165523--){const _0x1f2add=_0x5dc3cf[_0x165523];for(const _0x448ade of Object[_0x20bf('0x88')](_0x1f2add[_0x20bf('0x61')]))if(_0x1f2add['diffData'][_0x448ade][_0x20bf('0xb')]){const _0x406c47=_0x1f2add[_0x20bf('0x61')][_0x448ade][_0x20bf('0xb')];_0x406c47[_0x20bf('0x60')]?(_0x11b2b6[_0x20bf('0xe0')](_0x448ade),_0x3b5081['has'](_0x448ade)&&_0x3b5081[_0x20bf('0xc3')](_0x448ade)['userId']==_0x406c47[_0x20bf('0x64')]?_0x3b5081['delete'](_0x448ade):_0x3b5081[_0x20bf('0xce')](_0x448ade,_0x406c47)):_0x3b5081['has'](_0x448ade)?(_0x11b2b6[_0x20bf('0x70')](_0x448ade),_0x3b5081[_0x20bf('0x70')](_0x448ade)):(_0x11b2b6['add'](_0x448ade),_0x3b5081[_0x20bf('0xce')](_0x448ade,_0x406c47));}else _0x11b2b6[_0x20bf('0xe0')](_0x448ade);}for(const _0x71ffde of _0x11b2b6){const _0xadb5a=_0x3b5081[_0x20bf('0x115')](_0x71ffde)&&!_0x3b5081['get'](_0x71ffde)[_0x20bf('0x60')];let _0x9e2e57=_0xadb5a?_0x5dc3cf[_0x20bf('0xf9')]-0x1:0x0;const _0x23c620=_0xadb5a?-0x1:0x1;for(;_0x5dc3cf[_0x9e2e57];){const _0x34ec07=_0x5dc3cf[_0x9e2e57];if(_0x34ec07['diffData'][_0x71ffde]){const _0x5b9059=_0xadb5a?_0x34ec07[_0x20bf('0x61')][_0x71ffde][_0x20bf('0x54')]:_0x34ec07[_0x20bf('0x61')][_0x71ffde][_0x20bf('0x72')];_0x1242a2['attributes'][_0x71ffde]=_0x5b9059?_0x38bd10(_0x5b9059):{};break;}_0x9e2e57+=_0x23c620;}}for(const _0x4c511e of _0x5dc3cf){_0x4c511e['model']={};for(const _0x33b0db of _0x4c511e['authors'])_0x2c6513[_0x20bf('0xce')](_0x33b0db['id'],_0x33b0db);for(const _0x46f389 of _0x11b2b6){const _0x4d056c=_0x4c511e[_0x20bf('0x61')][_0x46f389]?_0x4c511e[_0x20bf('0x61')][_0x46f389][_0x20bf('0x102')]:'[]',_0x2a9b3d=_0x4c511e['diffData'][_0x46f389]?_0x4c511e[_0x20bf('0x61')][_0x46f389][_0x20bf('0xe5')]:'[]';_0x4c511e[_0x20bf('0x113')][_0x46f389]={'insertions':this[_0x20bf('0x7a')](_0x4d056c),'deletions':this[_0x20bf('0x7a')](_0x2a9b3d)};}}for(const _0x5d11af of _0x11b2b6){let _0x4dca64=null,_0x1f5a01=0x0;const _0x34a9b2=new Map(Array[_0x20bf('0x116')](_0x103ff2['model'][_0x5d11af]['insertions'][_0x20bf('0x10b')])['filter'](([_0x2d64d5])=>!_0x2d64d5[_0x20bf('0xe1')](_0x20bf('0x44'))));let _0x3c6cd1=0x0;for(const _0xe7417 of _0x5dc3cf){const _0x58343d=this['_makeTape'](_0xe7417[_0x20bf('0x113')][_0x5d11af][_0x20bf('0x102')]);_0xe7417==_0x103ff2?(_0x4dca64=_0x58343d,_0x1f5a01=_0x4dca64[_0x20bf('0xf9')],_0x4dca64[_0x20bf('0x43')](_0x1f4441=>{_0x1f4441['id']=_0x3c6cd1++;}),this[_0x20bf('0x120')](_0x4dca64)):this[_0x20bf('0xf8')](_0x4dca64,_0x58343d);const _0x128aaa=_0x4dca64['filter'](_0x723d61=>!_0x723d61['isAdded'])[_0x20bf('0x10d')](_0x24496e=>_0x24496e['id']);let _0x26c1a6=0x0;const _0x3ddaec=this[_0x20bf('0xe2')](_0xe7417[_0x20bf('0x113')][_0x5d11af][_0x20bf('0xe5')]);_0x3ddaec[_0x20bf('0x43')](_0x25f9af=>{_0x25f9af[_0x20bf('0xde')]?_0x25f9af['id']=_0x1f5a01++:_0x25f9af['id']=_0x128aaa[_0x26c1a6++];}),this['_processTape'](_0x3ddaec),this['_setDistance'](_0x4dca64,_0x20bf('0xfc')),this[_0x20bf('0xea')](_0x3ddaec,'isRemoved'),_0xe7417==_0x103ff2&&this[_0x20bf('0x39')](_0x4dca64,_0x34a9b2),_0x4dca64=this[_0x20bf('0xa9')](_0x4dca64,_0x3ddaec),this[_0x20bf('0xa6')](_0x4dca64),this['_setDistance'](_0x4dca64,'isRemoved');}_0x4dca64=_0x4dca64['filter'](_0x239bd6=>!(_0x239bd6[_0x20bf('0xfc')]&&_0x239bd6[_0x20bf('0xde')]));const _0x1b2d3b=new Map(_0x41f9d2[_0x20bf('0x113')][_0x5d11af]['deletions']['markers']),_0x2dd1ba=new Set(_0x34a9b2[_0x20bf('0x88')]());for(const _0x27f8c9 of _0x1b2d3b['keys']())_0x2dd1ba[_0x20bf('0x70')](_0x27f8c9);this['_markSuggestions'](_0x4dca64,_0x2dd1ba),this[_0x20bf('0x17')](_0x4dca64),_0x4dca64=this['_removeMissingPairs'](_0x4dca64),_0x4dca64=this[_0x20bf('0x40')](_0x4dca64),_0x4dca64=this[_0x20bf('0xd6')](_0x4dca64);const {root:_0x23c6bf,changes:_0x3cb073}=this[_0x20bf('0x82')](_0x4dca64,_0x2c6513,_0x5d11af);_0x1242a2[_0x20bf('0x113')][_0x5d11af]=_0x23c6bf;const _0x4fda98=_0x3b5081[_0x20bf('0xc3')](_0x5d11af);if(_0x4fda98){const _0x3ebf7b=_0x2c6513[_0x20bf('0xc3')](_0x4fda98[_0x20bf('0x64')]),_0x4927f4=new _0x45af27({'author':_0x3ebf7b,'type':_0x4fda98[_0x20bf('0x60')]?_0x20bf('0xe0'):_0x20bf('0xd8'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5d11af});_0x3cb073[_0x20bf('0x11e')](_0x4927f4),_0x1242a2[_0x20bf('0x57')][_0x5d11af]['revisionHistoryAttachChange']=_0x4927f4['id'];}_0x1242a2[_0x20bf('0xed')]=_0x1242a2['changes'][_0x20bf('0x90')](_0x3cb073);}return _0x1242a2;}[_0x20bf('0x39')](_0x51c129,_0x44afbb){for(let _0x2a4fb0=0x0;_0x2a4fb0<_0x51c129['length'];_0x2a4fb0++)for(const [_0x54b8d1,_0x10ec11]of _0x44afbb)_0x10ec11['start'][_0x20bf('0x96')](_0x51c129[_0x2a4fb0]['previousPosition'])&&_0x51c129[_0x2a4fb0]['markersStart'][_0x20bf('0x79')](_0x54b8d1),_0x10ec11[_0x20bf('0xec')]['isEqual'](_0x51c129[_0x2a4fb0]['nextPosition'])&&_0x51c129[_0x2a4fb0][_0x20bf('0x58')]['push'](_0x54b8d1);}[_0x20bf('0xa9')](_0x3b63bd,_0x11f584){let _0x143b8c=[],_0x5f478d=0x0,_0x14bf0e=0x0;for(;_0x5f478d<_0x3b63bd[_0x20bf('0xf9')]||_0x14bf0e<_0x11f584[_0x20bf('0xf9')];){const _0x5d4564=_0x3b63bd[_0x5f478d]||{},_0x51c48c=_0x11f584[_0x14bf0e]||{};if(_0x5d4564['id']==_0x51c48c['id'])_0x5f478d++,_0x14bf0e++,_0x143b8c[_0x20bf('0x79')](_0x5d4564);else{if(_0x51c48c[_0x20bf('0xde')]&&_0x5d4564['isAdded']){const {commonTape:_0x2051f1,iEnd:_0x43a69e,jEnd:_0x475649}=this['_threeWayMerge'](_0x3b63bd,_0x5f478d,_0x11f584,_0x14bf0e);_0x143b8c=_0x143b8c[_0x20bf('0x90')](_0x2051f1),_0x5f478d=_0x43a69e,_0x14bf0e=_0x475649;}else _0x51c48c[_0x20bf('0xde')]?(_0x14bf0e++,_0x143b8c[_0x20bf('0x79')](_0x51c48c)):(_0x5f478d++,_0x143b8c[_0x20bf('0x79')](_0x5d4564));}}return _0x143b8c;}[_0x20bf('0x9e')](_0x341335,_0x15e538){const _0x286f52=[];for(let _0x590e6a=0x0;_0x590e6a<_0x341335[_0x20bf('0xf9')];_0x590e6a++){for(let _0x3ba26c=0x0;_0x3ba26c<_0x341335[_0x590e6a][_0x20bf('0x19')][_0x20bf('0xf9')];_0x3ba26c++){const _0x5ee9c8=_0x341335[_0x590e6a]['markersStart'][_0x3ba26c];if(!_0x15e538[_0x20bf('0x115')](_0x5ee9c8))continue;const {group:_0x26090b,type:_0x2a4c61,authorId:_0x2cff41}=_0x236a6b(_0x5ee9c8);_0x20bf('0xc6')!=_0x26090b||_0x20bf('0xa3')!=_0x2a4c61&&_0x20bf('0x29')!=_0x2a4c61||(_0x286f52[_0x20bf('0x11e')]({'type':_0x2a4c61,'name':_0x5ee9c8,'userId':_0x2cff41}),_0x341335[_0x590e6a][_0x20bf('0x19')][_0x20bf('0x3d')](_0x3ba26c,0x1),_0x3ba26c--);}_0x2f2d53(_0x341335[_0x590e6a]);for(let _0x26d202=0x0;_0x26d202<_0x341335[_0x590e6a]['markersEnd'][_0x20bf('0xf9')];_0x26d202++){const _0x35ffff=_0x341335[_0x590e6a][_0x20bf('0x58')][_0x26d202];if(!_0x15e538[_0x20bf('0x115')](_0x35ffff))continue;const {group:_0xf960e4,type:_0x5448fa}=_0x236a6b(_0x35ffff);if(_0x20bf('0xc6')!=_0xf960e4||_0x20bf('0xa3')!=_0x5448fa&&_0x20bf('0x29')!=_0x5448fa)continue;_0x341335[_0x590e6a]['markersEnd'][_0x20bf('0x3d')](_0x26d202,0x1),_0x26d202--;const _0x1eba44=_0x286f52[_0x20bf('0x85')](_0xce83e0=>_0xce83e0[_0x20bf('0xa4')]==_0x35ffff);_0x1eba44>-0x1&&_0x286f52[_0x20bf('0x3d')](_0x1eba44,0x1);}}function _0x236a6b(_0x34f7ff){const _0x238aca=_0x34f7ff[_0x20bf('0x55')](':');return{'group':_0x238aca[0x0],'type':_0x238aca[0x1],'subType':_0x238aca[_0x20bf('0xf9')]>=0x5?_0x238aca[0x2]:null,'id':_0x238aca[_0x20bf('0xf9')]<0x5?_0x238aca[0x2]:_0x238aca[0x3],'authorId':_0x238aca[_0x20bf('0xf9')]<0x5?_0x238aca[0x3]:_0x238aca[0x4],'markerCount':0x6==_0x238aca['length']?_0x238aca[0x5]:null};}function _0x2f2d53(_0x512674){for(let _0x1e46c8=0x0;_0x1e46c8<_0x286f52[_0x20bf('0xf9')];_0x1e46c8++){if(_0x512674[_0x20bf('0xfc')]&&_0x20bf('0xa3')==_0x286f52[_0x1e46c8]['type'])return _0x512674['isAddSuggestion']=_0x286f52[_0x1e46c8],void delete _0x512674['isAdded'];if(!_0x512674['isAdded']&&!_0x512674[_0x20bf('0xde')]&&_0x20bf('0x29')==_0x286f52[_0x1e46c8][_0x20bf('0xfd')])return void(_0x512674['isRemoveSuggestion']=_0x286f52[_0x1e46c8]);}}}[_0x20bf('0xea')](_0x58528b,_0x3add6){let _0x14dbb6=0x0,_0x229732=!0x1;const _0x136635=new Map();for(const _0x558a22 of _0x58528b)_0x558a22[_0x3add6]?_0x229732&&(_0x14dbb6++,_0x229732=!0x1):(_0x14dbb6++,_0x229732=!0x0),_0x136635['set'](_0x558a22['id'],_0x14dbb6);for(let _0x2a88de=0x0;_0x2a88de<_0x58528b['length'];_0x2a88de++){if(_0x20bf('0xde')==_0x3add6&&_0x58528b[_0x2a88de]['isAdded']||_0x20bf('0xfc')==_0x3add6&&_0x58528b[_0x2a88de][_0x20bf('0xde')])continue;if(_0x20bf('0x52')==_0x58528b[_0x2a88de][_0x20bf('0xfd')]){_0x58528b[_0x2a88de][_0x20bf('0xef')]=0x0;continue;}const _0x2ff741=_0x136635[_0x20bf('0xc3')](_0x58528b[_0x2a88de][_0x20bf('0x16')]),_0x379f0c=_0x136635[_0x20bf('0xc3')](_0x58528b[_0x2a88de]['id']);_0x58528b[_0x2a88de][_0x20bf('0xef')]=_0x2ff741-_0x379f0c;}}[_0x20bf('0xa7')](_0x506027,_0x579c4a,_0x1c0ea0=!0x1){const _0xb504e6=[];let _0x4aee3f=this['repository']['getIndex'](_0x506027),_0x598cc0=this[_0x20bf('0xe6')][_0x20bf('0xad')](_0x579c4a);for(-0x1==_0x598cc0&&(_0x598cc0=this['repository'][_0x20bf('0xdb')][_0x20bf('0xf9')],_0x1c0ea0=!0x1);_0x4aee3f<_0x598cc0;)_0xb504e6['push'](this[_0x20bf('0xe6')]['getRevision'](_0x4aee3f)),_0x4aee3f++;return _0x1c0ea0&&_0xb504e6[_0x20bf('0x79')](this['repository'][_0x20bf('0x67')](_0x4aee3f)),_0xb504e6;}[_0x20bf('0x11a')](_0x17650a,_0x4d5b10,_0x3af90b,_0x56b112){const _0x34c762=this[_0x20bf('0x36')]['model'][_0x20bf('0xc8')];let _0x401792=_0x4d5b10;for(;_0x17650a[_0x401792]&&_0x17650a[_0x401792][_0x20bf('0xfc')];)_0x401792++;let _0x448052=_0x56b112;for(;_0x3af90b[_0x448052]&&_0x3af90b[_0x448052][_0x20bf('0xde')];)_0x448052++;_0x53be8a(_0x17650a,_0x4d5b10,_0x401792),_0x53be8a(_0x3af90b,_0x56b112,_0x448052);const _0x139061=_0x3af90b['slice'](_0x56b112,_0x448052)['concat'](_0x17650a[_0x20bf('0x2f')](_0x4d5b10,_0x401792));return _0x139061['sort']((_0x414911,_0x59ba7b)=>_0x414911[_0x20bf('0x9d')]!=_0x59ba7b[_0x20bf('0x9d')]?_0x414911[_0x20bf('0x9d')]-_0x59ba7b[_0x20bf('0x9d')]:_0x414911[_0x20bf('0x99')]!=_0x59ba7b['level']?_0x414911[_0x20bf('0x99')]-_0x59ba7b[_0x20bf('0x99')]:_0x414911[_0x20bf('0xef')]!=_0x59ba7b['distance']?_0x59ba7b[_0x20bf('0xef')]-_0x414911[_0x20bf('0xef')]:!!_0x414911[_0x20bf('0xfc')]!=!!_0x59ba7b[_0x20bf('0xfc')]?-0x1==_0x414911[_0x20bf('0x9d')]||0x0==_0x414911[_0x20bf('0x9d')]?_0x414911[_0x20bf('0xfc')]?-0x1:0x1:_0x414911[_0x20bf('0xfc')]?0x1:-0x1:_0x414911[_0x20bf('0x94')]-_0x59ba7b[_0x20bf('0x94')]),{'commonTape':_0x139061,'iEnd':_0x401792,'jEnd':_0x448052};function _0x53be8a(_0x451e52,_0x409d73,_0xd1772a){let _0x55f9c3=-0x1,_0xfa35b=Number['POSITIVE_INFINITY'],_0x9c7312=!0x0;for(let _0x541fd2=_0x409d73;_0x541fd2<_0xd1772a;_0x541fd2++)if(_0x34c762[_0x20bf('0xba')](_0x451e52[_0x541fd2]['item'])||(_0x9c7312=!0x1),_0x451e52[_0x541fd2][_0x20bf('0x34')]['startIndex']<_0x409d73&&(_0x55f9c3=_0x541fd2),_0x451e52[_0x541fd2][_0x20bf('0x34')][_0x20bf('0x117')]>=_0xd1772a){_0xfa35b=_0x541fd2;break;}_0x9c7312&&(_0x55f9c3=_0xd1772a-0x1);for(let _0x21113f=_0x409d73;_0x21113f<_0xd1772a;_0x21113f++)_0x451e52[_0x21113f][_0x20bf('0x9d')]=_0x21113f<=_0x55f9c3?-0x1:_0x21113f<_0xfa35b?0x0:0x1,_0x451e52[_0x21113f]['index']=_0x21113f;let _0x4376b1=0x0;for(let _0x301263=_0x409d73;_0x301263<=_0x55f9c3;_0x301263++)0x0==_0x451e52[_0x301263][_0x20bf('0xef')]?_0x451e52[_0x301263]['level']=_0x4376b1:(_0x4376b1++,_0x451e52[_0x301263]['level']=_0x4376b1,_0x4376b1++);for(let _0x1219f3=_0x409d73;_0x1219f3<_0xd1772a;_0x1219f3++)0x0==_0x451e52[_0x1219f3][_0x20bf('0x9d')]&&(_0x451e52[_0x1219f3][_0x20bf('0x99')]=_0x4376b1);_0x4376b1=0x0;for(let _0x11bbe8=_0xd1772a-0x1;_0x11bbe8>=_0xfa35b;_0x11bbe8--)0x0==_0x451e52[_0x11bbe8][_0x20bf('0xef')]?_0x451e52[_0x11bbe8][_0x20bf('0x99')]=_0x4376b1:(_0x4376b1--,_0x451e52[_0x11bbe8][_0x20bf('0x99')]=_0x4376b1,_0x4376b1--);}}[_0x20bf('0x17')](_0x4d19f9){const _0x2f1c56=new Map(),_0x523670=this[_0x20bf('0x36')]['model'][_0x20bf('0xc8')];for(let _0x27a5f2=0x1;_0x27a5f2<_0x4d19f9[_0x20bf('0xf9')];_0x27a5f2++){let _0x5bf453,_0x2d3fc0,_0x290770;const _0x13b9c6=_0x4d19f9[_0x27a5f2],_0x1ad827=_0x4d19f9[_0x27a5f2-0x1];if(_0x20bf('0x52')==_0x13b9c6[_0x20bf('0xfd')])continue;if(_0x13b9c6['type']!=_0x1ad827[_0x20bf('0xfd')])continue;if(!_0x523670[_0x20bf('0x118')](_0x1ad827['item'])||_0x523670[_0x20bf('0x4a')](_0x1ad827[_0x20bf('0x34')]))continue;if(!_0x523670[_0x20bf('0x118')](_0x13b9c6['item'])||_0x523670[_0x20bf('0x4a')](_0x13b9c6[_0x20bf('0x34')]))continue;if((_0x4d19f9[_0x27a5f2]['isAdded']||_0x4d19f9[_0x27a5f2]['isAddSuggestion'])&&_0x4d19f9[_0x27a5f2-0x1]['isRemoved'])_0x5bf453=_0x4d19f9[_0x27a5f2],_0x2d3fc0=_0x4d19f9[_0x27a5f2-0x1],_0x290770=_0x27a5f2-0x1;else{if(!_0x4d19f9[_0x27a5f2][_0x20bf('0xde')]||!_0x4d19f9[_0x27a5f2-0x1][_0x20bf('0xfc')]&&!_0x4d19f9[_0x27a5f2-0x1][_0x20bf('0xb7')])continue;_0x5bf453=_0x4d19f9[_0x27a5f2-0x1],_0x2d3fc0=_0x4d19f9[_0x27a5f2],_0x290770=_0x27a5f2;}const _0x3692d4=_0x5bf453[_0x20bf('0x99')]==_0x2d3fc0[_0x20bf('0x99')],_0x2184c5=Math[_0x20bf('0x3c')](_0x5bf453[_0x20bf('0x99')])<Math[_0x20bf('0x3c')](_0x2d3fc0[_0x20bf('0x99')])&&0x0==_0x2d3fc0[_0x20bf('0xef')];(_0x3692d4||_0x2184c5)&&(_0x2f1c56[_0x20bf('0xce')](_0x2d3fc0['id'],_0x5bf453['id']),_0x4d19f9[_0x20bf('0x3d')](_0x290770,0x1),_0x27a5f2--,_0x5bf453['isAdded']=!0x1);}for(let _0xd31b39=0x0;_0xd31b39<_0x4d19f9[_0x20bf('0xf9')];_0xd31b39++)_0x2f1c56[_0x20bf('0x115')](_0x4d19f9[_0xd31b39][_0x20bf('0x16')])&&(_0x4d19f9[_0xd31b39][_0x20bf('0x16')]=_0x2f1c56['get'](_0x4d19f9[_0xd31b39][_0x20bf('0x16')]));}[_0x20bf('0x65')](_0x236e9d){const _0x7937f1=new Set(_0x236e9d[_0x20bf('0x10d')](_0x542151=>_0x542151['id']));for(let _0x4c7362=0x0;_0x4c7362<_0x236e9d['length'];_0x4c7362++)_0x7937f1[_0x20bf('0x115')](_0x236e9d[_0x4c7362][_0x20bf('0x16')])||0x0==_0x236e9d[_0x4c7362]['distance']||(_0x236e9d[_0x4c7362][_0x20bf('0x5c')]=!0x0);return _0x236e9d[_0x20bf('0x41')](_0x3ecda7=>!_0x3ecda7[_0x20bf('0x5c')]);}[_0x20bf('0x40')](_0x317ad0){const _0x1dba82=new Set();for(let _0x292791=0x0;_0x292791<_0x317ad0[_0x20bf('0xf9')];_0x292791++){if(_0x1dba82['has'](_0x317ad0[_0x292791]['id'])&&_0x317ad0[_0x292791][_0x20bf('0xde')]&&(_0x317ad0[_0x292791][_0x20bf('0x5c')]=!0x0),_0x317ad0[_0x292791][_0x20bf('0x5c')])continue;if(0x0==_0x317ad0[_0x292791][_0x20bf('0xef')])continue;if(_0x20bf('0x2')!=_0x317ad0[_0x292791][_0x20bf('0xfd')])continue;if(null==_0x317ad0[_0x292791][_0x20bf('0x16')])continue;let _0x275040=_0x292791+0x1,_0x4d0c63=0x0;for(;_0x317ad0[_0x275040]['id']!=_0x317ad0[_0x292791][_0x20bf('0x16')];)_0x20bf('0x2')==_0x317ad0[_0x275040]['type']?_0x4d0c63++:_0x20bf('0x5b')==_0x317ad0[_0x275040]['type']&&_0x4d0c63--,_0x275040++;if(0x0!=_0x4d0c63){if(_0x317ad0[_0x292791][_0x20bf('0xde')])_0x317ad0[_0x292791][_0x20bf('0x5c')]=!0x0;else for(;_0x275040!=_0x292791;)_0x317ad0[_0x275040][_0x20bf('0xde')]&&0x0!=_0x317ad0[_0x275040][_0x20bf('0xef')]&&(_0x317ad0[_0x275040][_0x20bf('0x5c')]=!0x0,_0x1dba82['add'](_0x317ad0[_0x275040][_0x20bf('0x16')])),_0x275040--;}}return _0x317ad0[_0x20bf('0x41')](_0xec4ae9=>!_0xec4ae9[_0x20bf('0x5c')]);}['_removeUnsupportedChanges'](_0x19e840){const _0x377ee4=this[_0x20bf('0x36')][_0x20bf('0x113')][_0x20bf('0xc8')];for(let _0x487230=0x0;_0x487230<_0x19e840[_0x20bf('0xf9')];_0x487230++){if(!(_0x19e840[_0x487230][_0x20bf('0xfc')]||_0x19e840[_0x487230][_0x20bf('0xb7')]||_0x19e840[_0x487230][_0x20bf('0xde')]||_0x19e840[_0x487230][_0x20bf('0x18')]))continue;if(0x0==_0x19e840[_0x487230][_0x20bf('0xef')])continue;const _0xcfe21b=_0x19e840[_0x487230][_0x20bf('0x34')];_0x377ee4[_0x20bf('0x118')](_0xcfe21b)||_0x377ee4[_0x20bf('0x4a')](_0xcfe21b)||(_0x19e840[_0x487230][_0x20bf('0xfc')]&&delete _0x19e840[_0x487230][_0x20bf('0xfc')],_0x19e840[_0x487230][_0x20bf('0xb7')]&&delete _0x19e840[_0x487230][_0x20bf('0xb7')],_0x19e840[_0x487230][_0x20bf('0x18')]&&delete _0x19e840[_0x487230][_0x20bf('0x18')],_0x19e840[_0x487230][_0x20bf('0xde')]&&(_0x19e840[_0x487230][_0x20bf('0x5c')]=!0x0));}return _0x19e840[_0x20bf('0x41')](_0x23aad0=>!_0x23aad0['isIncorrect']);}[_0x20bf('0x82')](_0x261202,_0x122769,_0x57e6fe){const _0x4d5c08=new _0x5600b3(),_0x233a51=[],_0x5c5d8d=new Map(),_0x2df721=this[_0x20bf('0x36')][_0x20bf('0x113')],_0x4c1849=_0x2df721[_0x20bf('0xc8')],_0x463417=[_0x4d5c08],_0x5865f2={},_0x5dadbd={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x24cd63=null;const _0x5506dd=[0x0];for(let _0x56133e=0x0;_0x56133e<_0x261202[_0x20bf('0xf9')];_0x56133e++){let _0x29dcfd,_0x3806ac;if(_0x20bf('0x2')===_0x261202[_0x56133e][_0x20bf('0xfd')]){_0x29dcfd=_0x2df721[_0x20bf('0x92')](_0x4d5c08,_0x5506dd);const _0x4fdabf=new _0xf7bb48(_0x261202[_0x56133e][_0x20bf('0x34')][_0x20bf('0xa4')],_0x261202[_0x56133e][_0x20bf('0x34')][_0x20bf('0xab')]());_0x463417[0x0]['_appendChild'](_0x4fdabf),_0x5506dd['push'](0x0),_0x463417['unshift'](_0x4fdabf),_0x3806ac=_0x2df721[_0x20bf('0x92')](_0x4d5c08,_0x5506dd),_0x24cd63=null;}else{if(_0x20bf('0x5b')===_0x261202[_0x56133e]['type'])_0x463417[_0x20bf('0x1')](),_0x29dcfd=_0x2df721['createPositionFromPath'](_0x4d5c08,_0x5506dd),_0x5506dd['pop'](),_0x5506dd[_0x5506dd[_0x20bf('0xf9')]-0x1]++,_0x3806ac=_0x2df721['createPositionFromPath'](_0x4d5c08,_0x5506dd),_0x24cd63=null;else{if(_0x29dcfd=_0x2df721[_0x20bf('0x92')](_0x4d5c08,_0x5506dd),_0x24cd63&&_0x5f05aa(_0x24cd63,_0x261202[_0x56133e][_0x20bf('0x34')]))_0x24cd63[_0x20bf('0x10')]+=_0x261202[_0x56133e][_0x20bf('0x34')]['data'];else{const _0x309d69=new _0x43992d(_0x261202[_0x56133e][_0x20bf('0x34')][_0x20bf('0xf3')],_0x261202[_0x56133e][_0x20bf('0x34')][_0x20bf('0xab')]());_0x463417[0x0][_0x20bf('0xbd')](_0x309d69),_0x24cd63=_0x309d69;}_0x5506dd[_0x5506dd[_0x20bf('0xf9')]-0x1]+=_0x261202[_0x56133e]['item'][_0x20bf('0x84')],_0x3806ac=_0x2df721[_0x20bf('0x92')](_0x4d5c08,_0x5506dd);}}for(const _0x2b47c4 of _0x261202[_0x56133e][_0x20bf('0x19')])_0x5c5d8d['set'](_0x2b47c4,{'start':_0x29dcfd,'end':null});_0x5408b6(_0x20bf('0x18'),_0x56133e,_0x29dcfd,_0x3806ac),_0x5408b6(_0x20bf('0xb7'),_0x56133e,_0x29dcfd,_0x3806ac),_0x5408b6(_0x20bf('0xde'),_0x56133e,_0x29dcfd,_0x3806ac),_0x5408b6(_0x20bf('0xfc'),_0x56133e,_0x29dcfd,_0x3806ac);for(const _0x2e7735 of _0x261202[_0x56133e][_0x20bf('0x58')]){_0x5c5d8d[_0x20bf('0xc3')](_0x2e7735)['end']=_0x3806ac;}}for(const [_0x38c9ac,_0x227a63]of _0x5c5d8d){const _0x4724dc=this['editor'][_0x20bf('0x113')][_0x20bf('0x42')](_0x227a63[_0x20bf('0xf0')],_0x227a63[_0x20bf('0xec')]);_0x4d5c08[_0x20bf('0x10b')][_0x20bf('0xce')](_0x38c9ac,_0x4724dc);}return _0x233a51['sort']((_0x535448,_0x1434a2)=>{const _0x46ff96=_0x4d5c08[_0x20bf('0x10b')]['get']('revision:'+_0x535448['id']),_0x1aa11f=_0x4d5c08[_0x20bf('0x10b')]['get'](_0x20bf('0x44')+_0x1434a2['id']);return _0x46ff96[_0x20bf('0xf0')][_0x20bf('0xe')](_0x1aa11f[_0x20bf('0xf0')])?-0x1:_0x46ff96[_0x20bf('0xf0')][_0x20bf('0x103')](_0x1aa11f[_0x20bf('0xf0')])?0x1:_0x46ff96['end'][_0x20bf('0xe')](_0x1aa11f['end'])?-0x1:_0x46ff96[_0x20bf('0xec')][_0x20bf('0x103')](_0x1aa11f[_0x20bf('0xec')])?0x1:'add'===_0x535448[_0x20bf('0xfd')]?-0x1:0x1;}),{'root':_0x4d5c08,'changes':_0x233a51};function _0x5408b6(_0x525ed5,_0x384e91,_0x115f68,_0x55c082){const _0x1a022f=!!_0x261202[_0x384e91][_0x525ed5],_0x198fd2=_0x1a022f?_0x261202[_0x384e91][_0x525ed5][_0x20bf('0x64')]:null,_0x55569a=_0x384e91===_0x261202['length']-0x1,_0x3bb3bf=_0x5dadbd[_0x525ed5][0x0],_0x52f8a2=_0x4c1849['isObject'](_0x261202[_0x384e91][_0x20bf('0x34')]);!_0x5865f2[_0x525ed5]&&_0x1a022f?_0x5865f2[_0x525ed5]={'start':_0x115f68,'tapeItem':_0x261202[_0x384e91],'userId':_0x198fd2,'type':_0x525ed5}:_0x5865f2[_0x525ed5]&&!_0x1a022f?(_0x5865f2[_0x525ed5][_0x20bf('0xec')]=_0x115f68,_0x168125(_0x5865f2[_0x525ed5]),_0x5865f2[_0x525ed5]=null):_0x5865f2[_0x525ed5]&&_0x1a022f&&_0x5865f2[_0x525ed5]['userId']!==_0x198fd2&&(_0x5865f2[_0x525ed5]['end']=_0x115f68,_0x3bb3bf&&_0x3bb3bf[_0x20bf('0x64')]===_0x5865f2[_0x525ed5][_0x20bf('0x64')]||_0x168125(_0x5865f2[_0x525ed5]),_0x5865f2[_0x525ed5]={'start':_0x115f68,'tapeItem':_0x261202[_0x384e91],'userId':_0x198fd2,'type':_0x525ed5}),_0x5865f2[_0x525ed5]&&_0x52f8a2&&(_0x20bf('0x2')!==_0x261202[_0x384e91][_0x20bf('0xfd')]||_0x3bb3bf&&_0x3bb3bf['userId']===_0x198fd2||_0x5dadbd[_0x525ed5][_0x20bf('0x11e')]({'userId':_0x198fd2,'object':_0x261202[_0x384e91][_0x20bf('0x34')],'change':_0x5865f2[_0x525ed5]}),_0x20bf('0x5b')===_0x261202[_0x384e91][_0x20bf('0xfd')]&&_0x3bb3bf&&_0x3bb3bf[_0x20bf('0x5a')]===_0x261202[_0x384e91][_0x20bf('0x34')]&&(_0x5dadbd[_0x525ed5][_0x20bf('0x1')](),_0x5865f2[_0x525ed5]=_0x3bb3bf[_0x20bf('0x14')])),_0x5865f2[_0x525ed5]&&_0x55569a&&(_0x5865f2[_0x525ed5]['end']=_0x55c082,_0x168125(_0x5865f2[_0x525ed5]),_0x5865f2[_0x525ed5]=null);}function _0x168125({start:_0x45f6ab,end:_0x3ab7e6,tapeItem:_0x6d1431,userId:_0x186f34,type:_0x403b4a}){const _0x2fbd81=_0x6d1431[_0x20bf('0x34')],_0x5cf701=_0x2df721[_0x20bf('0xc8')][_0x20bf('0x118')](_0x2fbd81)&&!_0x2df721['schema']['isLimit'](_0x2fbd81),_0x4e3e49=_0x45f6ab[_0x20bf('0xff')]==_0x3ab7e6[_0x20bf('0xb2')]&&_0x3ab7e6[_0x20bf('0x107')];if(_0x5cf701&&_0x4e3e49)return;const _0x321ba5=_0x2df721[_0x20bf('0x42')](_0x45f6ab,_0x3ab7e6),_0x473750=_0x122769[_0x20bf('0xc3')](_0x186f34),_0x1a8260=new _0x45af27({'author':_0x473750,'type':_0x20bf('0xfc')==_0x403b4a||_0x20bf('0xb7')==_0x403b4a?'add':_0x20bf('0xd8'),'data':{'isSuggestion':_0x20bf('0xb7')==_0x403b4a||_0x20bf('0x18')==_0x403b4a},'createdAt':new Date(),'rootName':_0x57e6fe});_0x233a51[_0x20bf('0x79')](_0x1a8260),_0x4d5c08['markers']['set'](_0x20bf('0x44')+_0x1a8260['id'],_0x321ba5);}function _0x5f05aa(_0x218a71,_0x582e07){const _0x282292=_0x218a71['getAttributes'](),_0x1f80d3=_0x582e07[_0x20bf('0xab')]();for(const _0x338e80 of _0x282292){if(_0x338e80[0x1]!==_0x582e07['getAttribute'](_0x338e80[0x0]))return!0x1;_0x1f80d3['next']();}return _0x1f80d3[_0x20bf('0xf')]()[_0x20bf('0x3f')];}}[_0x20bf('0x105')](){this[_0x20bf('0x36')][_0x20bf('0x15')]['for'](_0x20bf('0xe9'))[_0x20bf('0xbc')]({'view':_0x20bf('0x22')}),this['editor'][_0x20bf('0x15')][_0x20bf('0xd2')]('editingDowncast')[_0x20bf('0x48')]({'model':'revision','view':_0x2749a7=>{const _0x2dc8ea=_0x2749a7[_0x20bf('0xc9')][_0x20bf('0x55')](':')[0x1],_0x225dd5=this['_getChangeFromId'](_0x2dc8ea);if(!_0x225dd5)return null;const _0x1de0cc=_0x20bf('0xe0')==_0x225dd5[_0x20bf('0xfd')]?_0x20bf('0xa3'):_0x20bf('0x29'),_0x2e41b6=[_0x20bf('0x35'),_0x20bf('0x78')+_0x1de0cc];return _0x225dd5[_0x20bf('0xf3')][_0x20bf('0xb3')]&&_0x2e41b6[_0x20bf('0x79')](_0x20bf('0x78')+_0x1de0cc+_0x20bf('0x4b')),this[_0x20bf('0x1d')]==_0x225dd5&&_0x2e41b6[_0x20bf('0x79')]('ck-suggestion-marker--active'),{'classes':_0x2e41b6,'attributes':{'data-change-id':_0x2dc8ea}};}}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')]('upcast')[_0x20bf('0xe0')](_0x899518=>{_0x899518['on'](_0x20bf('0xfa'),(_0x5f5553,_0x1aed45,_0x55e4a8)=>{const _0x9082fa=_0x1aed45[_0x20bf('0x6a')][_0x20bf('0x4e')](0x0);if(!_0x9082fa||!_0x9082fa['is'](_0x20bf('0x9c'),_0x20bf('0x6')))return;if(!_0x55e4a8[_0x20bf('0xaf')][_0x20bf('0xe3')](_0x9082fa,{'attributes':[_0x20bf('0xd0'),'vid_end']}))return;const _0x5bc862=_0x1aed45[_0x20bf('0xbe')][_0x20bf('0xf0')]['nodeAfter'];_0x55e4a8[_0x20bf('0x4d')][_0x20bf('0x31')](_0x20bf('0xd0'),_0x9082fa[_0x20bf('0x10c')]('vid_start'),_0x5bc862),_0x55e4a8[_0x20bf('0x4d')]['setAttribute'](_0x20bf('0xa2'),_0x9082fa[_0x20bf('0x10c')](_0x20bf('0xa2')),_0x5bc862);},{'priority':_0x20bf('0x53')});}),this[_0x20bf('0x36')][_0x20bf('0x15')]['for'](_0x20bf('0xe9'))[_0x20bf('0xe0')](_0x83a821=>{_0x83a821['on']('element',(_0x56c89f,_0x2de912,_0x5e0c33)=>{if(!_0x5e0c33['consumable']['consume'](_0x2de912[_0x20bf('0x6a')],{'attributes':[_0x20bf('0xd0'),_0x20bf('0xa2')]}))return;if(_0x2de912['modelRange'][_0x20bf('0x68')])return;const _0x4bc4c2=_0x2de912['modelRange'][_0x20bf('0xf0')][_0x20bf('0xff')];_0x4bc4c2[_0x20bf('0x73')](_0x20bf('0xd0'))||_0x4bc4c2[_0x20bf('0x73')](_0x20bf('0x76'))||(_0x5e0c33[_0x20bf('0x4d')][_0x20bf('0x31')](_0x20bf('0xd0'),_0x2de912[_0x20bf('0x6a')][_0x20bf('0x10c')](_0x20bf('0xd0')),_0x4bc4c2),_0x5e0c33[_0x20bf('0x4d')]['setAttribute'](_0x20bf('0xa2'),_0x2de912[_0x20bf('0x6a')]['getAttribute'](_0x20bf('0xa2')),_0x4bc4c2));},{'priority':_0x20bf('0x53')});}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')](_0x20bf('0xe9'))['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1cc5fa=>_0x1cc5fa[_0x20bf('0x10c')](_0x20bf('0x76'))}}),this['editor']['model'][_0x20bf('0xc8')]['on']('checkAttribute',(_0x3f3854,[,_0x1f3141])=>{[_0x20bf('0xd0'),'vid_end',_0x20bf('0x76')]['includes'](_0x1f3141)&&(_0x3f3854[_0x20bf('0x45')]=!0x0,_0x3f3854[_0x20bf('0x59')]());},{'priority':'highest'}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')]('dataDowncast')['add'](_0x142df4=>{_0x142df4['on']('attribute:vid',(_0x28f6f6,_0x4d1275,_0xca3190)=>{if('\x20'!=_0x4d1275[_0x20bf('0x34')][_0x20bf('0xf3')]||_0x4d1275['item'][_0x20bf('0xb2')][_0x20bf('0x5d')]>0x1)return;if(!_0xca3190[_0x20bf('0xaf')][_0x20bf('0xe3')](_0x4d1275[_0x20bf('0x34')],_0x28f6f6['name']))return;const _0x3970c3=_0xca3190['writer'],_0x11dc4b=_0xca3190['mapper']['toViewRange'](_0x4d1275[_0x20bf('0xa1')]);_0x3970c3[_0x20bf('0x2e')](_0x11dc4b,_0x3970c3[_0x20bf('0xc7')](_0x20bf('0x77')));});}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')](_0x20bf('0x91'))[_0x20bf('0x93')]({'model':_0x20bf('0x22')}),this[_0x20bf('0x36')]['editing']['downcastDispatcher']['on'](_0x20bf('0x50'),function(_0xdf0535){const _0x532b5f=_0xdf0535[_0x20bf('0x3a')][_0x20bf('0xc3')](_0x20bf('0xb5'));return(_0x972bfd,_0x4615a5,_0x150ff8)=>{const _0xd85606=_0x4615a5[_0x20bf('0xc9')]['split'](':')[0x1],_0x3fd800=_0x532b5f['_getChangeFromId'](_0xd85606);if(!_0x3fd800)return null;const _0x5d5ab5=_0x20bf('0xe0')==_0x3fd800[_0x20bf('0xfd')]?_0x20bf('0x55'):_0x20bf('0x81');if(!_0x150ff8[_0x20bf('0xaf')][_0x20bf('0x104')](_0x4615a5[_0x20bf('0x5f')],_0x972bfd[_0x20bf('0xa4')]))return;const _0x171963=_0x4615a5['markerRange'][_0x20bf('0x9f')](),_0x5b1d08=_0x4615a5[_0x20bf('0x5f')][_0x20bf('0xf0')],_0x245f83=_0xdf0535['model'][_0x20bf('0xc8')];let _0x25818c=null,_0x3483bd=null,_0x5199c5=!0x1,_0x4f144c=!0x1;for(const _0xe69ec of _0x171963){const _0x73b228=_0xe69ec[_0x20bf('0x34')];_0x5199c5=_0x5199c5||_0x245f83['isContent'](_0x73b228);const _0x4c322f=_0x150ff8[_0x20bf('0xc1')][_0x20bf('0x2b')](_0x73b228);if(_0x4c322f&&_0x4c322f[_0x20bf('0x8b')](_0x20bf('0x10f')))return;_0x20bf('0x5b')==_0xe69ec[_0x20bf('0xfd')]&&(_0x245f83[_0x20bf('0x118')](_0x73b228)&&!_0x245f83[_0x20bf('0x4a')](_0x73b228)&&(_0x73b228[_0x20bf('0xf7')]||_0x5b1d08[_0x20bf('0xe4')]?_0x25818c&&_0x25818c[_0x20bf('0xb2')]==_0x73b228||(_0x25818c=_0x73b228,_0x29ae71(_0xe69ec[_0x20bf('0x4f')]),_0x4f144c=!0x0):_0x3483bd=_0x3483bd||_0xe69ec[_0x20bf('0x4f')]));}function _0x29ae71(_0x45f488){const _0x60fd37=_0x150ff8[_0x20bf('0x4d')][_0x20bf('0x95')](_0x20bf('0x77'),{'class':_0x20bf('0x78')+_0x5d5ab5}),_0x51d1f3=_0x150ff8[_0x20bf('0xc1')][_0x20bf('0xe8')](_0x45f488);_0x3fd800[_0x20bf('0xf3')]['isSuggestion']&&_0x150ff8[_0x20bf('0x4d')][_0x20bf('0xb0')](_0x20bf('0x78')+_0x5d5ab5+_0x20bf('0x4b'),_0x60fd37),_0x532b5f[_0x20bf('0x1d')]==_0x3fd800&&_0x150ff8[_0x20bf('0x4d')][_0x20bf('0xb0')](_0x20bf('0x30'),_0x60fd37),_0x150ff8['writer'][_0x20bf('0x7d')](_0x51d1f3,_0x60fd37),_0x150ff8[_0x20bf('0xc1')]['bindElementToMarker'](_0x60fd37,_0x4615a5[_0x20bf('0xc9')]);}_0x5199c5||_0x4f144c||!_0x3483bd||_0x29ae71(_0x3483bd);};}(this['editor']),{'priority':_0x20bf('0xee')}),this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0xd')]['on'](_0x20bf('0x10a'),(_0x18789d,_0x4c8b74,_0x52d05d)=>{const _0x1dde47=_0x52d05d[_0x20bf('0xc1')][_0x20bf('0x7')](_0x4c8b74[_0x20bf('0xc9')]);if(_0x1dde47)for(const _0x2c829e of _0x1dde47)(_0x2c829e['hasClass'](_0x20bf('0x9a'))||_0x2c829e['hasClass'](_0x20bf('0xae')))&&(_0x52d05d[_0x20bf('0xc1')][_0x20bf('0x1c')](_0x2c829e,_0x4c8b74[_0x20bf('0xc9')]),_0x52d05d[_0x20bf('0x4d')][_0x20bf('0xd8')](_0x2c829e));},{'priority':'high'}),this['editor'][_0x20bf('0xda')]['downcastDispatcher']['on']('addMarker:revision',(_0x534fb1,_0x4bf8b3,_0xa2460d)=>{const _0x26e607=_0x4bf8b3[_0x20bf('0xc9')][_0x20bf('0x55')](':')[0x1],_0x2549d7=this[_0x20bf('0x89')](_0x26e607);if(!_0x2549d7)return null;const _0x455818=_0x20bf('0xe0')==_0x2549d7[_0x20bf('0xfd')]?_0x20bf('0x55'):'merge';if(_0xa2460d['consumable'][_0x20bf('0x104')](_0x4bf8b3['markerRange'],_0x534fb1[_0x20bf('0xa4')]))for(const _0x35fe44 of _0x4bf8b3[_0x20bf('0x5f')][_0x20bf('0x8')]()){if(!_0x35fe44['is'](_0x20bf('0x9c'),_0x20bf('0x46')))continue;const _0x4fc1b9=_0xa2460d['writer'][_0x20bf('0x95')](_0x20bf('0x77'),{'class':_0x20bf('0x78')+_0x455818}),_0x148133=_0xa2460d['mapper'][_0x20bf('0xe8')](this[_0x20bf('0x36')][_0x20bf('0x113')][_0x20bf('0x2c')](_0x35fe44));_0x2549d7[_0x20bf('0xf3')][_0x20bf('0xb3')]&&_0xa2460d['writer'][_0x20bf('0xb0')](_0x20bf('0x78')+_0x455818+_0x20bf('0x4b'),_0x4fc1b9),this[_0x20bf('0x1d')]==_0x2549d7&&_0xa2460d['writer'][_0x20bf('0xb0')](_0x20bf('0x30'),_0x4fc1b9),_0xa2460d[_0x20bf('0x4d')]['insert'](_0x148133,_0x4fc1b9),_0xa2460d['mapper'][_0x20bf('0xcf')](_0x4fc1b9,_0x4bf8b3[_0x20bf('0xc9')]);}},{'priority':_0x20bf('0xee')}),this[_0x20bf('0x36')][_0x20bf('0x113')]['document']['on'](_0x20bf('0x14'),()=>{this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0x1a')][_0x20bf('0x14')](_0x2ce9c9=>{for(const _0x4c3e3f of this['editor'][_0x20bf('0x113')][_0x20bf('0x8f')][_0x20bf('0x98')]()){const _0x3e5f50=this[_0x20bf('0x36')][_0x20bf('0x113')]['document'][_0x20bf('0xbb')](_0x4c3e3f),_0x8fe38f=this[_0x20bf('0x36')]['editing']['view']['document'][_0x20bf('0xbb')](_0x4c3e3f);if(_0x8fe38f){const _0x148379=_0x3e5f50[_0x20bf('0x10c')](_0x20bf('0xd5'));if(_0x2ce9c9['removeAttribute']('data-change-id',_0x8fe38f),_0x2ce9c9[_0x20bf('0xc4')](_0x20bf('0x9'),_0x8fe38f),_0x2ce9c9[_0x20bf('0xc4')](_0x20bf('0xfb'),_0x8fe38f),_0x2ce9c9[_0x20bf('0xc4')]('ck-revision-history-root--active',_0x8fe38f),_0x148379){const _0x723644=this['_getChangeFromId'](_0x148379);if(!_0x723644)return null;_0x2ce9c9[_0x20bf('0x31')]('data-change-id',_0x148379,_0x8fe38f),_0x2ce9c9[_0x20bf('0xb0')](_0x20bf('0x20')+_0x723644[_0x20bf('0xfd')],_0x8fe38f),this[_0x20bf('0x1d')]==_0x723644&&_0x2ce9c9[_0x20bf('0xb0')](_0x20bf('0x3'),_0x8fe38f);}}}});}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')](_0x20bf('0xe9'))['dataToMarker']({'view':_0x20bf('0x86'),'model':_0x56b76e=>_0x20bf('0x69')+_0x56b76e,'converterPriority':_0x20bf('0x4c')}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')]('upcast')['dataToMarker']({'view':_0x20bf('0xd1'),'model':_0x123af3=>_0x20bf('0xd3')+_0x123af3,'converterPriority':_0x20bf('0x4c')}),this[_0x20bf('0x36')]['conversion']['for'](_0x20bf('0x91'))[_0x20bf('0x93')]({'model':'revision-suggestion','view':_0x214cf5=>({'name':_0x20bf('0xc')+_0x214cf5,'group':'revision-suggestion'}),'converterPriority':_0x20bf('0x4c')}),this[_0x20bf('0x36')][_0x20bf('0x15')]['for'](_0x20bf('0x2a'))[_0x20bf('0x48')]({'model':_0x20bf('0xc6'),'view':_0x31c074=>{const _0x1bdb0c=_0x31c074['markerName'][_0x20bf('0x55')](':')[0x1];return _0x20bf('0xa3')!=_0x1bdb0c&&_0x20bf('0x29')!=_0x1bdb0c?null:{'classes':[_0x20bf('0xaa'),'ck-suggestion-preview-marker-'+_0x1bdb0c]};}}),this['editor'][_0x20bf('0xda')][_0x20bf('0xd')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x20bf('0x36')],_0x20bf('0x81')),{'priority':'high'}),this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0xd')]['on'](_0x20bf('0x6e'),et(this[_0x20bf('0x36')],_0x20bf('0x55')),{'priority':_0x20bf('0xee')}),this[_0x20bf('0x36')][_0x20bf('0xda')]['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1974ea,_0x4bd201,_0x2f3da4)=>{const _0x552578=_0x2f3da4[_0x20bf('0xc1')]['markerNameToElements'](_0x4bd201[_0x20bf('0xc9')]);if(_0x552578)for(const _0x3be0e1 of _0x552578)_0x3be0e1['is'](_0x20bf('0xd9'))&&(_0x2f3da4[_0x20bf('0xc1')][_0x20bf('0x1c')](_0x3be0e1,_0x4bd201['markerName']),_0x2f3da4[_0x20bf('0x4d')][_0x20bf('0xd8')](_0x3be0e1));},{'priority':_0x20bf('0xee')});}[_0x20bf('0x89')](_0xbd43b2){return this['_changeIdToChange'][_0x20bf('0xc3')](_0xbd43b2);}[_0x20bf('0x75')](_0x30375f){return this[_0x20bf('0x21')]&&this[_0x20bf('0x21')][_0x20bf('0x37')](),this['_changeView']=new _0x1c09bf(this[_0x20bf('0x36')][_0x20bf('0xdf')],_0x30375f),this['_changeView'];}[_0x20bf('0x97')](){this[_0x20bf('0x36')][_0x20bf('0x113')][_0x20bf('0x8f')][_0x20bf('0x108')]['observeMarkers'](_0x20bf('0x22')),this['on'](_0x20bf('0x27'),(_0x2c6e6d,_0x1593b2,_0x5537f2,_0x3aad63)=>{_0x3aad63&&this[_0x20bf('0xf6')]['remove'](_0x3aad63),_0x5537f2&&(this[_0x20bf('0xf6')][_0x20bf('0xe0')]({'view':_0x5537f2,'stackId':_0x20bf('0xf5'),'position':{'target':()=>{const _0x59f1fe=this[_0x20bf('0x36')][_0x20bf('0xda')],_0xd03065=this[_0x20bf('0x89')](_0x5537f2[_0x20bf('0x74')]);let _0x3bba55;if(_0xd03065[_0x20bf('0xf3')][_0x20bf('0xb9')]){const _0x21a8a8=_0x59f1fe[_0x20bf('0x1a')][_0x20bf('0x13')](_0xd03065[_0x20bf('0x109')]);_0x3bba55=Array[_0x20bf('0x116')](_0x21a8a8[_0x20bf('0xc5')]());}else{const _0x1a6440=this[_0x20bf('0x36')]['model'][_0x20bf('0x10b')][_0x20bf('0xc3')]('revision:'+_0x5537f2[_0x20bf('0x74')]);_0x3bba55=Array[_0x20bf('0x116')](_0x59f1fe[_0x20bf('0xc1')]['markerNameToElements'](_0x1a6440[_0x20bf('0xa4')]))[_0x20bf('0x10d')](_0x33c6f4=>_0x59f1fe[_0x20bf('0x1a')][_0x20bf('0xf4')][_0x20bf('0x47')](_0x33c6f4))[_0x20bf('0x10d')](_0x448e42=>Array[_0x20bf('0x116')](_0x448e42[_0x20bf('0xc5')]()))[_0x20bf('0xdc')]();}if(!this[_0x20bf('0x110')])return _0x3bba55[0x0];return _0x3bba55['find'](_0x3a6bd8=>_0x3a6bd8[_0x20bf('0x87')]-0x3<=this[_0x20bf('0x110')]['y']&&_0x3a6bd8[_0x20bf('0xe7')]+0x3>=this[_0x20bf('0x110')]['y']&&_0x3a6bd8['left']-0x3<=this[_0x20bf('0x110')]['x']&&_0x3a6bd8[_0x20bf('0x80')]+0x3>=this['_activeViewTarget']['x'])||_0x3bba55[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x40c0ff,_0x47ac37,_0x2ddde0,_0x17ada9)=>{this[_0x20bf('0xa8')]=_0x2ddde0?this[_0x20bf('0x75')](_0x2ddde0):null,this[_0x20bf('0x36')]['model'][_0x20bf('0x14')](()=>{const _0xdb8e39=this[_0x20bf('0x36')][_0x20bf('0xda')];_0x17ada9&&(_0x17ada9[_0x20bf('0xf3')][_0x20bf('0xb9')]?_0xdb8e39['view'][_0x20bf('0x14')](_0x55aebf=>{_0x55aebf[_0x20bf('0xc4')](_0x20bf('0x3'),_0xdb8e39[_0x20bf('0x1a')][_0x20bf('0x8f')]['getRoot'](_0x17ada9[_0x20bf('0x109')]));}):_0xdb8e39['reconvertMarker'](_0x20bf('0x44')+_0x17ada9['id'])),_0x2ddde0&&(_0x2ddde0[_0x20bf('0xf3')][_0x20bf('0xb9')]?_0xdb8e39['view']['change'](_0xb1f107=>{_0xb1f107['addClass'](_0x20bf('0x3'),_0xdb8e39[_0x20bf('0x1a')]['document'][_0x20bf('0xbb')](_0x2ddde0[_0x20bf('0x109')]));}):_0xdb8e39[_0x20bf('0xc2')](_0x20bf('0x44')+_0x2ddde0['id']));});}),this[_0x20bf('0xbf')](this[_0x20bf('0x36')]['editing'][_0x20bf('0x1a')][_0x20bf('0x8f')],_0x20bf('0x49'),(_0x383116,_0x244235)=>{if(this[_0x20bf('0x1d')])return;const _0x134fdd=this[_0x20bf('0xb6')](_0x244235[_0x20bf('0x9b')]),_0x249b8a=this[_0x20bf('0x11f')][_0x20bf('0xc3')](_0x134fdd);_0x249b8a?(this[_0x20bf('0x110')]={'x':_0x244235['domEvent']['x'],'y':_0x244235[_0x20bf('0x114')]['y']},this[_0x20bf('0xa8')]=this[_0x20bf('0x75')](_0x249b8a)):(this[_0x20bf('0x110')]=null,this[_0x20bf('0xa8')]=null);}),this[_0x20bf('0xbf')](this['editor'][_0x20bf('0xda')][_0x20bf('0x1a')][_0x20bf('0x8f')],_0x20bf('0x26'),(_0x47e0af,_0x55b97f)=>{const _0x37c414=this[_0x20bf('0xb6')](_0x55b97f[_0x20bf('0x9b')]),_0x1463bc=this[_0x20bf('0x11f')][_0x20bf('0xc3')](_0x37c414);_0x1463bc?(this[_0x20bf('0x110')]={'x':_0x55b97f['domEvent']['x'],'y':_0x55b97f[_0x20bf('0x114')]['y']},_0x1463bc===this['activeChange']?this[_0x20bf('0xf6')]['updatePosition']():this[_0x20bf('0x1d')]=_0x1463bc):(this[_0x20bf('0x110')]=null,this[_0x20bf('0x1d')]=null);});}[_0x20bf('0xb6')](_0x17dff2){do{const _0x25af53=_0x17dff2[_0x20bf('0x10c')](_0x20bf('0xeb'));if(_0x25af53)return _0x25af53;_0x17dff2=_0x17dff2[_0x20bf('0xb2')];}while(_0x17dff2);return null;}[_0x20bf('0x8a')](){this[_0x20bf('0x36')]['model'][_0x20bf('0x14')](_0x40d856=>{for(const _0x3c1a70 of this['editor'][_0x20bf('0x113')][_0x20bf('0x10b')])_0x40d856['removeMarker'](_0x3c1a70);});}}function et(_0x4f9f56,_0x4bdc07){return(_0x1d2396,_0x3d2ae2,_0x31a6d4)=>{if(!_0x31a6d4[_0x20bf('0xaf')]['test'](_0x3d2ae2[_0x20bf('0x5f')],_0x1d2396['name']))return;const _0x5a0c55=_0x3d2ae2['markerRange'][_0x20bf('0x9f')](),_0x3a8371=_0x3d2ae2['markerRange'][_0x20bf('0xf0')],_0x20afd2=_0x4f9f56[_0x20bf('0x113')][_0x20bf('0xc8')];let _0x5d8fd4=null,_0x4d4efa=null,_0xe15e3b=!0x1,_0x3be90b=!0x1;for(const _0x3a6637 of _0x5a0c55){const _0x25b499=_0x3a6637['item'];_0xe15e3b=_0xe15e3b||_0x20afd2[_0x20bf('0xcb')](_0x25b499);const _0x16f646=_0x31a6d4['mapper'][_0x20bf('0x2b')](_0x25b499);if(_0x16f646&&_0x16f646[_0x20bf('0x8b')](_0x20bf('0x10f')))return;_0x20bf('0x5b')==_0x3a6637[_0x20bf('0xfd')]&&(_0x20afd2[_0x20bf('0x118')](_0x25b499)&&!_0x20afd2[_0x20bf('0x4a')](_0x25b499)&&(_0x25b499[_0x20bf('0xf7')]||_0x3a8371[_0x20bf('0xe4')]?_0x5d8fd4&&_0x5d8fd4['parent']==_0x25b499||(_0x5d8fd4=_0x25b499,_0x23f357(_0x3a6637[_0x20bf('0x4f')]),_0x3be90b=!0x0):_0x4d4efa=_0x4d4efa||_0x3a6637['previousPosition']));}function _0x23f357(_0x1f43ef){const _0x8bccd1=_0x31a6d4[_0x20bf('0xc1')][_0x20bf('0xe8')](_0x1f43ef),_0x11dce3=_0x31a6d4[_0x20bf('0x4d')][_0x20bf('0x95')]('span',{'class':'ck-suggestion-preview-marker-'+_0x4bdc07});_0x31a6d4[_0x20bf('0x4d')][_0x20bf('0x7d')](_0x8bccd1,_0x11dce3),_0x31a6d4[_0x20bf('0xc1')][_0x20bf('0xcf')](_0x11dce3,_0x3d2ae2['markerName']);}_0xe15e3b||_0x3be90b||!_0x4d4efa||_0x23f357(_0x4d4efa);};}export class RestoreRevisionCommand extends _0x48e309{constructor(_0x2934a1){super(_0x2934a1);const _0x3d29ba=_0x2934a1[_0x20bf('0x3a')]['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x3d29ba,_0x20bf('0x11d'),()=>this['refresh']()),this[_0x20bf('0xbf')](_0x3d29ba,_0x20bf('0x3b'),()=>this[_0x20bf('0xcc')]());}[_0x20bf('0x5')](){const _0x1d97c8=this['editor'],_0x435d60=_0x1d97c8['plugins']['get'](d),_0x1298a3=_0x435d60[_0x20bf('0x12')]?_0x435d60[_0x20bf('0x11')][_0x20bf('0xca')]:null;_0x1d97c8[_0x20bf('0x8c')]['get'](_0x20bf('0x7e'))[_0x20bf('0x8d')](_0x1298a3);}[_0x20bf('0xcc')](){const {isReady:_0x4f19ea,isEnabled:_0x5468af}=this[_0x20bf('0x36')][_0x20bf('0x3a')]['get'](d);this['isEnabled']=_0x4f19ea&&_0x5468af;}}export class ShowChangeCommand extends _0x48e309{constructor(_0x312e12,{direction:_0x15e186}){super(_0x312e12);const _0x255f8b=_0x312e12[_0x20bf('0x3a')][_0x20bf('0xc3')](d);this[_0x20bf('0x11c')]=!0x1,this['_step']=_0x20bf('0x0')===_0x15e186?0x1:-0x1,this[_0x20bf('0xbf')](_0x255f8b,_0x20bf('0x11d'),()=>this[_0x20bf('0xcc')]()),this['listenTo'](_0x255f8b,'change:isEnabled',()=>this[_0x20bf('0xcc')]()),this[_0x20bf('0xbf')](_0x255f8b,_0x20bf('0x25'),()=>this[_0x20bf('0xcc')]());}['execute'](){const _0x16b569=this['editor'],_0x1b060a=_0x16b569['plugins'][_0x20bf('0xc3')](d),{isNavigationMode:_0x5b58c4,currentChangeNumber:_0x2de763}=_0x1b060a;let _0x5b3859;if(_0x1b060a[_0x20bf('0x1d')]=_0x5b58c4?_0x1b060a[_0x20bf('0x11')][_0x20bf('0xed')][_0x20bf('0xc3')](_0x2de763+this[_0x20bf('0x2d')]):_0x1b060a[_0x20bf('0x11')][_0x20bf('0xed')][_0x20bf('0xa5')],_0x1b060a[_0x20bf('0x1d')]['data'][_0x20bf('0xb9')])_0x5b3859=_0x16b569['editing'][_0x20bf('0x1a')][_0x20bf('0x13')](_0x1b060a[_0x20bf('0x1d')][_0x20bf('0x109')]);else{const _0x53955e=_0x16b569[_0x20bf('0x113')][_0x20bf('0x10b')]['get']('revision:'+_0x1b060a[_0x20bf('0x1d')]['id']);_0x5b3859=_0xd912bf(_0x16b569['editing'],_0x53955e);}_0x98832({'target':_0x5b3859,'viewportOffset':0x28});}[_0x20bf('0xcc')](){const {isNavigationMode:_0x492038,currentChangeNumber:_0x2a7961,numberOfChanges:_0x28c291,isReady:_0x3ddf26,isEnabled:_0x4e6ca9}=this[_0x20bf('0x36')][_0x20bf('0x3a')][_0x20bf('0xc3')](d);this[_0x20bf('0x3e')]=!!(_0x4e6ca9&&_0x3ddf26&&_0x28c291)&&(!_0x492038||(0x1===this['_step']?_0x2a7961<_0x28c291-0x1:_0x2a7961>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2184=['buttonView','Compare\x20against\x20selected','locale','children','class','Name\x20this\x20revision','isReady','extendTemplate','listenTo','_action','source','set','listView','isEnabled','Show\x20more\x20items','isActionsDropdownOpen','find','name','button','change:isActionsDropdownOpen','add','stopPropagation','first','bind','isVisible','panelPosition','items','bindTemplate','ck-on','function','action'];(function(_0x595473,_0x218429){const _0x1981ff=function(_0x553d38){while(--_0x553d38){_0x595473['push'](_0x595473['shift']());}};_0x1981ff(++_0x218429);}(_0x2184,0x1db));const _0x1981=function(_0x595473,_0x218429){_0x595473=_0x595473-0x0;let _0x1981ff=_0x2184[_0x595473];return _0x1981ff;};import{Collection as _0xc49d42}from'ckeditor5/src/utils';import{icons as _0x1c91df}from'ckeditor5/src/core';import{Model as _0x5e790a,addListToDropdown as _0x102008,createDropdown as _0x2df76e}from'ckeditor5/src/ui';import{getTranslation as _0x5d5537}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x283458,_0x40be32){const _0x2f53ae=_0x283458[_0x1981('0x11')],_0x376bd5=_0x283458[_0x1981('0x17')],_0x2e3a6b=_0x2df76e(_0x376bd5);_0x2e3a6b[_0x1981('0xf')]='sw';const _0xfc9c84=function(_0x9e26de,_0x429816){const _0x11c485=function(_0x2e599d,_0x1b2120){const _0x3cdc9d=_0x2e599d[_0x1981('0x17')],_0x3f9e13={'Compare\x20against\x20selected':_0x5d5537(_0x3cdc9d,_0x1981('0x16')),'Name\x20this\x20revision':_0x5d5537(_0x3cdc9d,_0x1981('0x1a')),'Restore\x20this\x20revision':_0x5d5537(_0x3cdc9d,'Restore\x20this\x20revision')};return _0x1b2120['map'](_0xcc7d3f=>{const _0x5f23dd=_0x3f9e13[_0xcc7d3f[_0x1981('0x7')]];return _0x5f23dd&&_0x5f23dd!==_0xcc7d3f[_0x1981('0x7')]&&(_0xcc7d3f[_0x1981('0x7')]=_0x5f23dd),_0xcc7d3f;});}(_0x9e26de,_0x429816),_0x1d7fa3=new _0xc49d42();for(const _0x1ec0e8 of _0x11c485){const _0x371376={'type':_0x1981('0x8'),'model':new _0x5e790a({'label':_0x1ec0e8['name'],'class':_0x1ec0e8[_0x1981('0x19')],'withText':!0x0,'_action':_0x1ec0e8[_0x1981('0x14')]})};_0x371376['model'][_0x1981('0xd')](_0x1981('0x3'))['to'](_0x9e26de,_0x1981('0x5'),_0x3ecf65=>_0x1981('0x13')!=typeof _0x1ec0e8['isEnabled']||(!_0x3ecf65||_0x1ec0e8['isEnabled'](_0x9e26de))),_0x1d7fa3[_0x1981('0xa')](_0x371376);}return _0x1d7fa3;}(_0x283458,_0x40be32);return _0x283458[_0x1981('0xd')](_0x1981('0x5'))['to'](_0x2e3a6b,'isOpen'),_0x2e3a6b[_0x1981('0x15')][_0x1981('0x1')]({'label':_0x5d5537(_0x376bd5,_0x1981('0x4')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1c91df['threeVerticalDots']}),_0x2e3a6b[_0x1981('0x1c')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2f53ae['if'](_0x1981('0x5'),_0x1981('0x12'))]},'on':{'click':_0x2f53ae['to'](_0x1d9f8=>_0x1d9f8[_0x1981('0xb')]())}}),_0x2e3a6b['on']('execute',_0x54c99e=>{_0x283458[_0x1981('0x1b')]&&_0x1981('0x13')==typeof _0x54c99e[_0x1981('0x0')][_0x1981('0x1e')]&&_0x54c99e[_0x1981('0x0')][_0x1981('0x1e')](_0x283458);}),_0x102008(_0x2e3a6b,_0xfc9c84),_0x2e3a6b[_0x1981('0x1d')](_0x283458,_0x1981('0x9'),(_0x3135e4,_0x4b052c,_0x3f6a86)=>{if(_0x3f6a86)for(const _0x5bc647 of _0x2e3a6b[_0x1981('0x2')][_0x1981('0x10')]){const _0x417b02=_0x5bc647[_0x1981('0x18')][_0x1981('0xc')],_0x1109a9=_0x40be32[_0x1981('0x6')](_0x11945c=>_0x11945c['action']===_0x417b02[_0x1981('0x1e')])[_0x1981('0xe')];_0x5bc647[_0x1981('0xe')]=void 0x0===_0x1109a9||_0x1109a9(_0x283458);}}),_0x2e3a6b;}
23
+ const _0x16f2=['isEnabled','Name\x20this\x20revision','buttonView','Show\x20more\x20items','isReady','bind','name','isVisible','set','execute','ck-revision-history-sidebar__revision__actions','model','_action','ck-on','function','listView','Compare\x20against\x20selected','isActionsDropdownOpen','children','first','stopPropagation','action','map','find','change:isActionsDropdownOpen','button','Restore\x20this\x20revision','items','source'];(function(_0x480c2a,_0x16f276){const _0x5f4e08=function(_0x20909a){while(--_0x20909a){_0x480c2a['push'](_0x480c2a['shift']());}};_0x5f4e08(++_0x16f276);}(_0x16f2,0x192));const _0x5f4e=function(_0x480c2a,_0x16f276){_0x480c2a=_0x480c2a-0x0;let _0x5f4e08=_0x16f2[_0x480c2a];return _0x5f4e08;};import{Collection as _0x3a856a}from'ckeditor5/src/utils';import{icons as _0x518fae}from'ckeditor5/src/core';import{Model as _0x33bd31,addListToDropdown as _0x1cc0b5,createDropdown as _0x34aded}from'ckeditor5/src/ui';import{getTranslation as _0x241f7b}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x2cf890,_0x26d85b){const _0x1a50f7=_0x2cf890['bindTemplate'],_0xfafaf2=_0x2cf890['locale'],_0x543fcf=_0x34aded(_0xfafaf2);_0x543fcf['panelPosition']='sw';const _0x5a0fe0=function(_0x4af0f2,_0x4d85fa){const _0x30eaba=function(_0x41ea7b,_0x5dc993){const _0x71a9de=_0x41ea7b['locale'],_0x58f924={'Compare\x20against\x20selected':_0x241f7b(_0x71a9de,_0x5f4e('0x14')),'Name\x20this\x20revision':_0x241f7b(_0x71a9de,_0x5f4e('0x5')),'Restore\x20this\x20revision':_0x241f7b(_0x71a9de,_0x5f4e('0x1'))};return _0x5dc993[_0x5f4e('0x1a')](_0x2ffe0b=>{const _0x34ce27=_0x58f924[_0x2ffe0b['name']];return _0x34ce27&&_0x34ce27!==_0x2ffe0b['name']&&(_0x2ffe0b[_0x5f4e('0xa')]=_0x34ce27),_0x2ffe0b;});}(_0x4af0f2,_0x4d85fa),_0x3a43c3=new _0x3a856a();for(const _0x379801 of _0x30eaba){const _0x384f8a={'type':_0x5f4e('0x0'),'model':new _0x33bd31({'label':_0x379801[_0x5f4e('0xa')],'class':_0x379801['class'],'withText':!0x0,'_action':_0x379801[_0x5f4e('0x19')]})};_0x384f8a[_0x5f4e('0xf')]['bind'](_0x5f4e('0x4'))['to'](_0x4af0f2,'isActionsDropdownOpen',_0x37c0b1=>_0x5f4e('0x12')!=typeof _0x379801[_0x5f4e('0x4')]||(!_0x37c0b1||_0x379801[_0x5f4e('0x4')](_0x4af0f2))),_0x3a43c3['add'](_0x384f8a);}return _0x3a43c3;}(_0x2cf890,_0x26d85b);return _0x2cf890[_0x5f4e('0x9')](_0x5f4e('0x15'))['to'](_0x543fcf,'isOpen'),_0x543fcf[_0x5f4e('0x6')][_0x5f4e('0xc')]({'label':_0x241f7b(_0xfafaf2,_0x5f4e('0x7')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x518fae['threeVerticalDots']}),_0x543fcf['extendTemplate']({'attributes':{'class':[_0x5f4e('0xe'),_0x1a50f7['if'](_0x5f4e('0x15'),_0x5f4e('0x11'))]},'on':{'click':_0x1a50f7['to'](_0x5bf2b0=>_0x5bf2b0[_0x5f4e('0x18')]())}}),_0x543fcf['on'](_0x5f4e('0xd'),_0x1871ab=>{_0x2cf890[_0x5f4e('0x8')]&&_0x5f4e('0x12')==typeof _0x1871ab[_0x5f4e('0x3')][_0x5f4e('0x10')]&&_0x1871ab[_0x5f4e('0x3')][_0x5f4e('0x10')](_0x2cf890);}),_0x1cc0b5(_0x543fcf,_0x5a0fe0),_0x543fcf['listenTo'](_0x2cf890,_0x5f4e('0x1c'),(_0x3c350d,_0x14b681,_0x1db885)=>{if(_0x1db885)for(const _0x1fe140 of _0x543fcf[_0x5f4e('0x13')][_0x5f4e('0x2')]){const _0x55bc6e=_0x1fe140[_0x5f4e('0x16')][_0x5f4e('0x17')],_0x51b2d2=_0x26d85b[_0x5f4e('0x1b')](_0x146939=>_0x146939['action']===_0x55bc6e['_action'])[_0x5f4e('0xb')];_0x1fe140[_0x5f4e('0xb')]=void 0x0===_0x51b2d2||_0x51b2d2(_0x2cf890);}}),_0x543fcf;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c32=['push','ck-revision-history-sidebar__revision-author__name','Revision\x20author','span','ck-revision-history-sidebar__revision-author','name','0\x200\x2011\x2010','setTemplate','Revision\x20creator'];(function(_0x5db984,_0x3c32ee){const _0x53410c=function(_0x2af928){while(--_0x2af928){_0x5db984['push'](_0x5db984['shift']());}};_0x53410c(++_0x3c32ee);}(_0x3c32,0x1ee));const _0x5341=function(_0x5db984,_0x3c32ee){_0x5db984=_0x5db984-0x0;let _0x53410c=_0x3c32[_0x5db984];return _0x53410c;};import{View as _0x3f565a,IconView as _0x23381d}from'ckeditor5/src/ui';import{getTranslation as _0x3e2271}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x47cba8 from'../../../theme/icons/user.svg';export default class ti extends _0x3f565a{constructor(_0x2b98ec,_0xae2758,_0x30d4bd){super(_0x2b98ec);const _0x55661f=new _0x23381d();_0x55661f['set']({'content':_0x47cba8,'viewBox':_0x5341('0x7')});const _0x39da23=['ck',_0x5341('0x5')];_0x30d4bd&&_0x39da23[_0x5341('0x1')]('ck-revision-history-sidebar__revision-author_creator');const _0x34a835=[{'tag':_0x5341('0x4'),'attributes':{'class':['ck',_0x5341('0x2')],'title':_0x3e2271(_0x2b98ec,_0x30d4bd?_0x5341('0x0'):_0x5341('0x3'))},'children':[_0x55661f,_0xae2758[_0x5341('0x6')]]}];this[_0x5341('0x8')]({'tag':'li','attributes':{'class':_0x39da23},'children':_0x34a835});}}
23
+ const _0x4f2c=['set','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author_creator','setTemplate','name'];(function(_0x1e4e4b,_0x4f2cd6){const _0x2069db=function(_0x3b04a6){while(--_0x3b04a6){_0x1e4e4b['push'](_0x1e4e4b['shift']());}};_0x2069db(++_0x4f2cd6);}(_0x4f2c,0x6b));const _0x2069=function(_0x1e4e4b,_0x4f2cd6){_0x1e4e4b=_0x1e4e4b-0x0;let _0x2069db=_0x4f2c[_0x1e4e4b];return _0x2069db;};import{View as _0x4493a2,IconView as _0x3065e7}from'ckeditor5/src/ui';import{getTranslation as _0x4c7efe}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x446665 from'../../../theme/icons/user.svg';export default class ti extends _0x4493a2{constructor(_0x15e4aa,_0xc3a685,_0x304ef4){super(_0x15e4aa);const _0x2d2ad9=new _0x3065e7();_0x2d2ad9[_0x2069('0x3')]({'content':_0x446665,'viewBox':'0\x200\x2011\x2010'});const _0x88a461=['ck',_0x2069('0x4')];_0x304ef4&&_0x88a461['push'](_0x2069('0x0'));const _0x34c353=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x4c7efe(_0x15e4aa,_0x304ef4?'Revision\x20creator':'Revision\x20author')},'children':[_0x2d2ad9,_0xc3a685[_0x2069('0x2')]]}];this[_0x2069('0x1')]({'tag':'li','attributes':{'class':_0x88a461},'children':_0x34c353});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2980=['ck-revision-history-sidebar__revision-name','span','set','Revision\x20name'];(function(_0x4d945f,_0x2980d1){var _0x6f1c2=function(_0x42e0b9){while(--_0x42e0b9){_0x4d945f['push'](_0x4d945f['shift']());}};_0x6f1c2(++_0x2980d1);}(_0x2980,0x1aa));var _0x6f1c=function(_0x4d945f,_0x2980d1){_0x4d945f=_0x4d945f-0x0;var _0x6f1c2=_0x2980[_0x4d945f];return _0x6f1c2;};import{LabeledFieldView as _0x593001}from'ckeditor5/src/ui';import{getTranslation as _0x41fa6f}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x593001{constructor(_0x53e46b,_0x3b8868){super(_0x53e46b,_0x3b8868),this[_0x6f1c('0x0')]({'label':_0x41fa6f(_0x53e46b,_0x6f1c('0x1'))}),this['extendTemplate']({'tag':_0x6f1c('0x3'),'attributes':{'class':[_0x6f1c('0x2')]}});}}
23
+ var _0x3530=['span','extendTemplate','Revision\x20name'];(function(_0x9a3300,_0x353030){var _0x1b81b6=function(_0x25eaa6){while(--_0x25eaa6){_0x9a3300['push'](_0x9a3300['shift']());}};_0x1b81b6(++_0x353030);}(_0x3530,0x8c));var _0x1b81=function(_0x9a3300,_0x353030){_0x9a3300=_0x9a3300-0x0;var _0x1b81b6=_0x3530[_0x9a3300];return _0x1b81b6;};import{LabeledFieldView as _0x11a1d5}from'ckeditor5/src/ui';import{getTranslation as _0x1d253b}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x11a1d5{constructor(_0x17b632,_0x1660b8){super(_0x17b632,_0x1660b8),this['set']({'label':_0x1d253b(_0x17b632,_0x1b81('0x0'))}),this[_0x1b81('0x2')]({'tag':_0x1b81('0x1'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc095=['listenTo','_createdAtFormatted','ck-revision-history-sidebar__actions_dropdown_open','span','ck-revision-history-sidebar__revision_selected','from','closest','authors','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','div','unshift','map','isConfirm','name','uiLanguage','isEnabled','change','_revision','element','length','fieldView','createdAt','set','revisionActionsView','ck-disabled','deselect','srcElement','fire','isSelected','.ck-thread__remove-confirm','isHighlighted','ck-revision-history-sidebar__revision__controls-wrapper','isReady','unhighlight','creator','revisionNameView','ck-revision-history-sidebar__revision-authors','filter','isActionsDropdownOpen','highlight','ck-reset','select','value','ck-revision-history-sidebar__revision__date','bind','bindTemplate','setTemplate','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision_highlighted'];(function(_0x44f4a3,_0xc095ce){const _0x55f499=function(_0x10ed5b){while(--_0x10ed5b){_0x44f4a3['push'](_0x44f4a3['shift']());}};_0x55f499(++_0xc095ce);}(_0xc095,0x185));const _0x55f4=function(_0x44f4a3,_0xc095ce){_0x44f4a3=_0x44f4a3-0x0;let _0x55f499=_0xc095[_0x44f4a3];return _0x55f499;};import{View as _0x16fb83,createLabeledInputText as _0x3681e9}from'ckeditor5/src/ui';import{ConfirmMixin as _0x5163ff}from'ckeditor5-collaboration/src/collaboration-core';import _0xfe269c from'./revisionnameview';import _0x22ee94 from'./revisionauthorview';import{dateToPrettyFormat as _0x25d2ad}from'./utils';import{createActionsDropdownView as _0x3c396b}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x5163ff(_0x16fb83){constructor(_0x35cb23,_0x5eba1b,_0x3378e9){super(_0x35cb23);const _0x6210a7=this[_0x55f4('0x30')],_0x4d6ee7=function(_0x3a0f62,_0x3054bd){const _0x204481=Array[_0x55f4('0x8')](_0x3054bd[_0x55f4('0xa')])[_0x55f4('0x28')](_0x187d14=>_0x187d14!=_0x3054bd[_0x55f4('0x25')]);return _0x3054bd[_0x55f4('0x25')]&&_0x204481[_0x55f4('0xd')](_0x3054bd[_0x55f4('0x25')]),_0x204481[_0x55f4('0xe')](_0x191f1b=>new _0x22ee94(_0x3a0f62,_0x191f1b,_0x191f1b==_0x3054bd[_0x55f4('0x25')]));}(_0x35cb23,_0x5eba1b);this['id']=_0x5eba1b['id'],this[_0x55f4('0x14')]=_0x5eba1b,this['bind'](_0x55f4('0x10'),_0x55f4('0x18'))['to'](_0x5eba1b),this[_0x55f4('0x2f')](_0x55f4('0x4'))['to'](this,_0x55f4('0x18'),_0x10ff9b=>_0x10ff9b?_0x25d2ad(_0x35cb23[_0x55f4('0x11')],_0x10ff9b):void 0x0),this['set'](_0x55f4('0x1f'),!0x1),this[_0x55f4('0x19')]('isHighlighted',!0x1),this[_0x55f4('0x19')](_0x55f4('0x29'),!0x1),this[_0x55f4('0x19')](_0x55f4('0x23'),!0x1),this[_0x55f4('0x19')](_0x55f4('0x12'),!0x1),this['revisionNameView']=new _0xfe269c(_0x35cb23,_0x3681e9),this[_0x55f4('0x26')][_0x55f4('0x17')]['extendTemplate']({'attributes':{'maxlength':'220'}}),this[_0x55f4('0x26')]['fieldView'][_0x55f4('0x2f')](_0x55f4('0x2d'),'placeholder')['to'](this,'name',_0x55f4('0x4')),this['revisionNameView'][_0x55f4('0x2f')](_0x55f4('0x12'))['to'](this,_0x55f4('0x1f'),this,_0x55f4('0x12'),(_0x5d3dab,_0x548e41)=>_0x5d3dab&&_0x548e41),this[_0x55f4('0x1a')]=_0x3378e9&&_0x3378e9[_0x55f4('0x16')]?_0x3c396b(this,_0x3378e9):'',this[_0x55f4('0x1a')]&&this[_0x55f4('0x1a')]['bind'](_0x55f4('0x12'))['to'](this),this[_0x55f4('0x0')]({'tag':'div','attributes':{'class':['ck',_0x55f4('0x2b'),_0x55f4('0x1'),_0x6210a7['if'](_0x55f4('0xf'),_0x55f4('0xb'))]},'children':[{'tag':_0x55f4('0xc'),'attributes':{'class':['ck',_0x55f4('0x2b'),'ck-revision-history-sidebar__revision',_0x6210a7['if'](_0x55f4('0x12'),_0x55f4('0x1b'),_0x305372=>!_0x305372),_0x6210a7['if'](_0x55f4('0x1f'),_0x55f4('0x7')),_0x6210a7['if'](_0x55f4('0x21'),_0x55f4('0x2')),_0x6210a7['if']('isActionsDropdownOpen',_0x55f4('0x5'))]},'children':[this['revisionNameView'],{'tag':_0x55f4('0x6'),'attributes':{'class':['ck',_0x55f4('0x2e')]},'children':[{'text':_0x6210a7['to'](_0x55f4('0x4'))}]},{'tag':'div','attributes':{'class':['ck',_0x55f4('0x22')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x55f4('0x27')]},'children':_0x4d6ee7}]},this[_0x55f4('0x1a')]],'on':{'click':_0x6210a7['to'](_0x44521b=>{_0x44521b[_0x55f4('0x1d')][_0x55f4('0x9')](_0x55f4('0x20'))||this[_0x55f4('0x23')]&&this[_0x55f4('0x12')]&&this['fire'](_0x55f4('0x2c'),{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1fd00e=this['revisionNameView']['fieldView'][_0x55f4('0x15')];this[_0x55f4('0x3')](_0x1fd00e,_0x55f4('0x13'),()=>{this[_0x55f4('0x1e')]('setName',{'id':this['id'],'name':_0x1fd00e[_0x55f4('0x2d')]});});}[_0x55f4('0x2c')](){this[_0x55f4('0x1f')]=!0x0;}[_0x55f4('0x1c')](){this[_0x55f4('0x1f')]=!0x1;}[_0x55f4('0x2a')](){this[_0x55f4('0x21')]=!0x0;}[_0x55f4('0x24')](){this['isHighlighted']=!0x1;}}
23
+ const _0x1091=['isSelected','listenTo','unhighlight','map','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','extendTemplate','change','ck-revision-history-sidebar__revision_selected','revisionActionsView','ck-disabled','setTemplate','fire','from','_revision','value','span','ck-revision-history-sidebar__revision','uiLanguage','closest','authors','createdAt','isHighlighted','unshift','_createdAtFormatted','ck-revision-history-sidebar__revision__date','filter','fieldView','bind','ck-revision-history-sidebar__revision-authors','setName','isActionsDropdownOpen','ck-reset','placeholder','render','creator','isConfirm','select','name','isReady','div','isEnabled','ck-revision-history-sidebar__revision__controls-wrapper','highlight','revisionNameView','bindTemplate','set'];(function(_0x2ee788,_0x109116){const _0x3e834d=function(_0x500454){while(--_0x500454){_0x2ee788['push'](_0x2ee788['shift']());}};_0x3e834d(++_0x109116);}(_0x1091,0x129));const _0x3e83=function(_0x2ee788,_0x109116){_0x2ee788=_0x2ee788-0x0;let _0x3e834d=_0x1091[_0x2ee788];return _0x3e834d;};import{View as _0x1fdaee,createLabeledInputText as _0x5ae541}from'ckeditor5/src/ui';import{ConfirmMixin as _0x43fe03}from'ckeditor5-collaboration/src/collaboration-core';import _0x20b481 from'./revisionnameview';import _0x297324 from'./revisionauthorview';import{dateToPrettyFormat as _0x2bfa1f}from'./utils';import{createActionsDropdownView as _0xfe8431}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x43fe03(_0x1fdaee){constructor(_0x5f4de3,_0x2a6fc1,_0x332424){super(_0x5f4de3);const _0x326abb=this[_0x3e83('0x17')],_0x2798c7=function(_0x1091e3,_0x2e99c4){const _0x357a8e=Array[_0x3e83('0x25')](_0x2e99c4[_0x3e83('0x2c')])[_0x3e83('0x4')](_0x2d3727=>_0x2d3727!=_0x2e99c4['creator']);return _0x2e99c4[_0x3e83('0xd')]&&_0x357a8e[_0x3e83('0x1')](_0x2e99c4[_0x3e83('0xd')]),_0x357a8e[_0x3e83('0x1c')](_0x28ffb8=>new _0x297324(_0x1091e3,_0x28ffb8,_0x28ffb8==_0x2e99c4[_0x3e83('0xd')]));}(_0x5f4de3,_0x2a6fc1);this['id']=_0x2a6fc1['id'],this[_0x3e83('0x26')]=_0x2a6fc1,this['bind'](_0x3e83('0x10'),_0x3e83('0x2d'))['to'](_0x2a6fc1),this[_0x3e83('0x6')](_0x3e83('0x2'))['to'](this,'createdAt',_0x440d55=>_0x440d55?_0x2bfa1f(_0x5f4de3[_0x3e83('0x2a')],_0x440d55):void 0x0),this['set']('isSelected',!0x1),this[_0x3e83('0x18')]('isHighlighted',!0x1),this['set'](_0x3e83('0x9'),!0x1),this[_0x3e83('0x18')]('isReady',!0x1),this[_0x3e83('0x18')](_0x3e83('0x13'),!0x1),this['revisionNameView']=new _0x20b481(_0x5f4de3,_0x5ae541),this[_0x3e83('0x16')]['fieldView'][_0x3e83('0x1e')]({'attributes':{'maxlength':'220'}}),this[_0x3e83('0x16')]['fieldView'][_0x3e83('0x6')]('value',_0x3e83('0xb'))['to'](this,_0x3e83('0x10'),_0x3e83('0x2')),this['revisionNameView'][_0x3e83('0x6')](_0x3e83('0x13'))['to'](this,_0x3e83('0x19'),this,'isEnabled',(_0x41fafd,_0x98d488)=>_0x41fafd&&_0x98d488),this[_0x3e83('0x21')]=_0x332424&&_0x332424['length']?_0xfe8431(this,_0x332424):'',this[_0x3e83('0x21')]&&this['revisionActionsView'][_0x3e83('0x6')](_0x3e83('0x13'))['to'](this),this[_0x3e83('0x23')]({'tag':_0x3e83('0x12'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x326abb['if'](_0x3e83('0xe'),_0x3e83('0x1d'))]},'children':[{'tag':_0x3e83('0x12'),'attributes':{'class':['ck',_0x3e83('0xa'),_0x3e83('0x29'),_0x326abb['if'](_0x3e83('0x13'),_0x3e83('0x22'),_0xf9b4d6=>!_0xf9b4d6),_0x326abb['if'](_0x3e83('0x19'),_0x3e83('0x20')),_0x326abb['if'](_0x3e83('0x0'),'ck-revision-history-sidebar__revision_highlighted'),_0x326abb['if'](_0x3e83('0x9'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x3e83('0x16')],{'tag':_0x3e83('0x28'),'attributes':{'class':['ck',_0x3e83('0x3')]},'children':[{'text':_0x326abb['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck',_0x3e83('0x14')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x3e83('0x7')]},'children':_0x2798c7}]},this[_0x3e83('0x21')]],'on':{'click':_0x326abb['to'](_0x41f7ae=>{_0x41f7ae['srcElement'][_0x3e83('0x2b')]('.ck-thread__remove-confirm')||this[_0x3e83('0x11')]&&this[_0x3e83('0x13')]&&this[_0x3e83('0x24')](_0x3e83('0xf'),{'id':this['id']});})}}]});}[_0x3e83('0xc')](){super[_0x3e83('0xc')]();const _0x47f11f=this[_0x3e83('0x16')][_0x3e83('0x5')]['element'];this[_0x3e83('0x1a')](_0x47f11f,_0x3e83('0x1f'),()=>{this[_0x3e83('0x24')](_0x3e83('0x8'),{'id':this['id'],'name':_0x47f11f[_0x3e83('0x27')]});});}[_0x3e83('0xf')](){this[_0x3e83('0x19')]=!0x0;}['deselect'](){this[_0x3e83('0x19')]=!0x1;}[_0x3e83('0x15')](){this[_0x3e83('0x0')]=!0x0;}[_0x3e83('0x1b')](){this[_0x3e83('0x0')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c95=['button','ck-revision-history-sidebar__subrevision-collapser__inner','toggle','ck-revision-history-sidebar__subrevision-collapser_collapsed','setTemplate','isVisible','ck-revision-history-sidebar__subrevision-collapser','click','ck-hidden','bindTemplate','span','set','true','_isCollapsed'];(function(_0x563a3a,_0x1c9511){const _0x47a8f2=function(_0x1683e6){while(--_0x1683e6){_0x563a3a['push'](_0x563a3a['shift']());}};_0x47a8f2(++_0x1c9511);}(_0x1c95,0x1ce));const _0x47a8=function(_0x563a3a,_0x1c9511){_0x563a3a=_0x563a3a-0x0;let _0x47a8f2=_0x1c95[_0x563a3a];return _0x47a8f2;};import{View as _0x32fc5e}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x32fc5e{constructor(_0x48e575){super(_0x48e575);const _0x489117=this[_0x47a8('0x9')];this[_0x47a8('0xb')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x47a8('0x4')]({'tag':_0x47a8('0xa'),'attributes':{'class':['ck',_0x47a8('0x6'),_0x489117['if'](_0x47a8('0x5'),_0x47a8('0x8'),_0x3f6b39=>!_0x3f6b39),_0x489117['if']('_isCollapsed',_0x47a8('0x3'))],'role':_0x47a8('0x0'),'aria-pressed':_0x489117['to'](_0x47a8('0xd'),_0x2568d0=>_0x2568d0?'false':_0x47a8('0xc'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x47a8('0x1')]}}],'on':{'click':_0x489117['to'](_0x47a8('0x7'))}});}[_0x47a8('0x2')](){this['_isCollapsed']=!this[_0x47a8('0xd')];}}
23
+ const _0xe97a=['button','ck-hidden','ck-revision-history-sidebar__subrevision-collapser','click','isVisible','_isCollapsed','toggle','false','ck-revision-history-sidebar__subrevision-collapser_collapsed','bindTemplate','span','set','setTemplate','true'];(function(_0x4d93ce,_0xe97a0c){const _0x5508d8=function(_0x2f43ae){while(--_0x2f43ae){_0x4d93ce['push'](_0x4d93ce['shift']());}};_0x5508d8(++_0xe97a0c);}(_0xe97a,0x1aa));const _0x5508=function(_0x4d93ce,_0xe97a0c){_0x4d93ce=_0x4d93ce-0x0;let _0x5508d8=_0xe97a[_0x4d93ce];return _0x5508d8;};import{View as _0x25a206}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x25a206{constructor(_0x407092){super(_0x407092);const _0x5b861b=this[_0x5508('0x3')];this[_0x5508('0x5')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5508('0x6')]({'tag':_0x5508('0x4'),'attributes':{'class':['ck',_0x5508('0xa'),_0x5b861b['if'](_0x5508('0xc'),_0x5508('0x9'),_0x19dd2b=>!_0x19dd2b),_0x5b861b['if'](_0x5508('0xd'),_0x5508('0x2'))],'role':_0x5508('0x8'),'aria-pressed':_0x5b861b['to']('_isCollapsed',_0x1b31dc=>_0x1b31dc?_0x5508('0x1'):_0x5508('0x7'))},'children':[{'tag':_0x5508('0x4'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x5b861b['to'](_0x5508('0xb'))}});}[_0x5508('0x0')](){this[_0x5508('0xd')]=!this['_isCollapsed'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x326e=['select','creator','setTemplate','bind','deselect','ck-revision-history-sidebar__revision_selected','div','ck-revision-history-sidebar__revision-authors','uiLanguage','_createdAtFormatted','bindTemplate','_parentRevisionId','createdAt','fire','isSelected','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__subrevision'];(function(_0x4c7c61,_0x326e71){const _0x81be11=function(_0x183f3a){while(--_0x183f3a){_0x4c7c61['push'](_0x4c7c61['shift']());}};_0x81be11(++_0x326e71);}(_0x326e,0x1a5));const _0x81be=function(_0x4c7c61,_0x326e71){_0x4c7c61=_0x4c7c61-0x0;let _0x81be11=_0x326e[_0x4c7c61];return _0x81be11;};import{View as _0x2583dc}from'ckeditor5/src/ui';import _0x5c212e from'./revisionauthorview';import{dateToPrettyFormat as _0x5b7fb1}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x2583dc{constructor(_0x2c26b6,_0x37308b,_0x172158){super(_0x2c26b6);const _0x5c7343=this[_0x81be('0x3')];this['id']=_0x37308b['id'],this['bind']('createdAt')['to'](_0x37308b),this['set'](_0x81be('0x7'),!0x1),this[_0x81be('0xe')](_0x81be('0x2'))['to'](this,_0x81be('0x5'),_0x208c90=>_0x208c90?_0x5b7fb1(_0x2c26b6[_0x81be('0x1')],_0x208c90):void 0x0),this[_0x81be('0x4')]=_0x172158,this[_0x81be('0xd')]({'tag':_0x81be('0x11'),'attributes':{'class':['ck','ck-reset',_0x81be('0x9'),_0x81be('0xa'),_0x5c7343['if']('isSelected',_0x81be('0x10'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x81be('0x8')]},'children':[{'text':_0x5c7343['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x81be('0x0')]},'children':[new _0x5c212e(_0x2c26b6,_0x37308b[_0x81be('0xc')],!0x0)]}],'on':{'click':_0x5c7343['to'](this['select']['bind'](this))}});}[_0x81be('0xb')](){this[_0x81be('0x7')]=!0x0,this[_0x81be('0x6')]('select',{'parentId':this[_0x81be('0x4')]});}[_0x81be('0xf')](){this[_0x81be('0x7')]=!0x1;}}
23
+ const _0x5bd8=['bind','span','set','setTemplate','_parentRevisionId','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision','createdAt','div','ck-revision-history-sidebar__revision__date','bindTemplate','deselect','isSelected','uiLanguage','select','ck-revision-history-sidebar__subrevision'];(function(_0x7700a2,_0x5bd87e){const _0x259a6c=function(_0x18775e){while(--_0x18775e){_0x7700a2['push'](_0x7700a2['shift']());}};_0x259a6c(++_0x5bd87e);}(_0x5bd8,0x83));const _0x259a=function(_0x7700a2,_0x5bd87e){_0x7700a2=_0x7700a2-0x0;let _0x259a6c=_0x5bd8[_0x7700a2];return _0x259a6c;};import{View as _0x43af3a}from'ckeditor5/src/ui';import _0x471aad from'./revisionauthorview';import{dateToPrettyFormat as _0x455227}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x43af3a{constructor(_0x2ade40,_0x4f0036,_0x2ee4d3){super(_0x2ade40);const _0x1156af=this[_0x259a('0x7')];this['id']=_0x4f0036['id'],this[_0x259a('0xd')](_0x259a('0x4'))['to'](_0x4f0036),this[_0x259a('0xf')]('isSelected',!0x1),this[_0x259a('0xd')]('_createdAtFormatted')['to'](this,_0x259a('0x4'),_0xa38311=>_0xa38311?_0x455227(_0x2ade40[_0x259a('0xa')],_0xa38311):void 0x0),this['_parentRevisionId']=_0x2ee4d3,this[_0x259a('0x0')]({'tag':_0x259a('0x5'),'attributes':{'class':['ck','ck-reset',_0x259a('0x3'),_0x259a('0xc'),_0x1156af['if'](_0x259a('0x9'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x259a('0xe'),'attributes':{'class':['ck',_0x259a('0x6')]},'children':[{'text':_0x1156af['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x259a('0x2')]},'children':[new _0x471aad(_0x2ade40,_0x4f0036['creator'],!0x0)]}],'on':{'click':_0x1156af['to'](this[_0x259a('0xb')]['bind'](this))}});}['select'](){this[_0x259a('0x9')]=!0x0,this['fire'](_0x259a('0xb'),{'parentId':this[_0x259a('0x1')]});}[_0x259a('0x8')](){this[_0x259a('0x9')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2fee=['numeric','long','toLocaleDateString','toLocaleTimeString'];(function(_0x32d5ea,_0x2fee33){var _0x54df88=function(_0x891e07){while(--_0x891e07){_0x32d5ea['push'](_0x32d5ea['shift']());}};_0x54df88(++_0x2fee33);}(_0x2fee,0x139));var _0x54df=function(_0x32d5ea,_0x2fee33){_0x32d5ea=_0x32d5ea-0x0;var _0x54df88=_0x2fee[_0x32d5ea];return _0x54df88;};export function dateToPrettyFormat(_0xf27c96,_0x92db07){return _0x92db07[_0x54df('0x1')](_0xf27c96,{'month':_0x54df('0x0'),'day':_0x54df('0x3')})+',\x20'+_0x92db07[_0x54df('0x2')](_0xf27c96,{'hour':'numeric','minute':_0x54df('0x3')});}
23
+ var _0x3cf5=['toLocaleTimeString','numeric'];(function(_0x3710cd,_0x3cf520){var _0x51870a=function(_0x30d899){while(--_0x30d899){_0x3710cd['push'](_0x3710cd['shift']());}};_0x51870a(++_0x3cf520);}(_0x3cf5,0x14b));var _0x5187=function(_0x3710cd,_0x3cf520){_0x3710cd=_0x3710cd-0x0;var _0x51870a=_0x3cf5[_0x3710cd];return _0x51870a;};export function dateToPrettyFormat(_0x216a73,_0x3b4bfe){return _0x3b4bfe['toLocaleDateString'](_0x216a73,{'month':'long','day':_0x5187('0x0')})+',\x20'+_0x3b4bfe[_0x5187('0x1')](_0x216a73,{'hour':_0x5187('0x0'),'minute':_0x5187('0x0')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x38f8=['value','revisionNameInputValue','arrowdown','delegate','reset','tab','arrowright','extendTemplate','cancelButtonView','submit','ck-responsive-form','_focusCycler','render','keystrokes','add','fieldView','input','focusTracker','trim','set','saveButtonView','stopPropagation','Save','type','focusFirst','listenTo','focus','element','arrowleft','revisionNameInputView','arrowup','220','forEach','form','cancel','Cancel','shift\x20+\x20tab','_createRevisionNameInput','_createButton','locale','_focusables','revisionName'];(function(_0x2f173b,_0x38f88f){const _0x3060f9=function(_0x276b10){while(--_0x276b10){_0x2f173b['push'](_0x2f173b['shift']());}};_0x3060f9(++_0x38f88f);}(_0x38f8,0x129));const _0x3060=function(_0x2f173b,_0x38f88f){_0x2f173b=_0x2f173b-0x0;let _0x3060f9=_0x38f8[_0x2f173b];return _0x3060f9;};import{icons as _0x4f9cbc}from'ckeditor5/src/core';import{ButtonView as _0x20f421,FocusCycler as _0x32d891,LabeledFieldView as _0xe5c541,View as _0x2fa817,ViewCollection as _0x5934df,createLabeledInputText as _0x55b4cd,injectCssTransitionDisabler as _0x44c32f,submitHandler as _0xf93fa2}from'ckeditor5/src/ui';import{FocusTracker as _0x55e30b,KeystrokeHandler as _0x4610c6}from'ckeditor5/src/utils';import{getTranslation as _0x240433}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x2fa817{constructor(_0x3d7880){super(_0x3d7880),this[_0x3060('0xe')]=new _0x55e30b(),this['keystrokes']=new _0x4610c6(),this[_0x3060('0x10')](_0x3060('0x28'),''),this[_0x3060('0x1a')]=this[_0x3060('0x22')](),this['saveButtonView']=this[_0x3060('0x23')](_0x240433(_0x3d7880,_0x3060('0x13')),_0x4f9cbc['check'],'ck-button-save'),this[_0x3060('0x11')][_0x3060('0x14')]=_0x3060('0x6'),this[_0x3060('0x5')]=this[_0x3060('0x23')](_0x240433(_0x3d7880,_0x3060('0x20')),_0x4f9cbc['cancel'],'ck-button-cancel',_0x3060('0x1f')),this[_0x3060('0x25')]=new _0x5934df(),this['_focusCycler']=new _0x32d891({'focusables':this[_0x3060('0x25')],'focusTracker':this[_0x3060('0xe')],'keystrokeHandler':this[_0x3060('0xa')],'actions':{'focusPrevious':_0x3060('0x21'),'focusNext':_0x3060('0x2')}}),this['setTemplate']({'tag':_0x3060('0x1e'),'attributes':{'class':['ck','ck-revision-history-save-revision-form',_0x3060('0x7')],'tabindex':'-1'},'children':[this[_0x3060('0x1a')],this[_0x3060('0x11')],this[_0x3060('0x5')]]}),_0x44c32f(this);}[_0x3060('0x9')](){super[_0x3060('0x9')](),_0xf93fa2({'view':this}),([this[_0x3060('0x1a')],this[_0x3060('0x11')],this['cancelButtonView']][_0x3060('0x1d')](_0x579ddb=>{this[_0x3060('0x25')][_0x3060('0xb')](_0x579ddb),this['focusTracker'][_0x3060('0xb')](_0x579ddb['element']);}),this[_0x3060('0xa')][_0x3060('0x16')](this[_0x3060('0x18')]));const _0x3dcb99=_0x47fdec=>_0x47fdec[_0x3060('0x12')]();this[_0x3060('0xa')][_0x3060('0x10')](_0x3060('0x3'),_0x3dcb99),this[_0x3060('0xa')][_0x3060('0x10')](_0x3060('0x19'),_0x3dcb99),this[_0x3060('0xa')][_0x3060('0x10')](_0x3060('0x1b'),_0x3dcb99),this[_0x3060('0xa')][_0x3060('0x10')](_0x3060('0x29'),_0x3dcb99);}[_0x3060('0x17')](){this[_0x3060('0x8')][_0x3060('0x15')]();}get[_0x3060('0x26')](){return this[_0x3060('0x1a')][_0x3060('0xc')][_0x3060('0x18')]['value']['trim']();}set[_0x3060('0x26')](_0x380950){this[_0x3060('0x1a')][_0x3060('0xc')][_0x3060('0x18')]['value']=_0x380950['trim']();}[_0x3060('0x1')](){this['revisionNameInputView'][_0x3060('0xc')]['element'][_0x3060('0x27')]='';}[_0x3060('0x22')](){const _0x1dd66b=new _0xe5c541(this[_0x3060('0x24')],_0x55b4cd),_0x491196=_0x1dd66b['fieldView'];return _0x491196[_0x3060('0x4')]({'attributes':{'maxlength':_0x3060('0x1c')}}),_0x1dd66b['label']=_0x240433(this[_0x3060('0x24')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x491196['on'](_0x3060('0xd'),()=>{this[_0x3060('0x28')]=_0x491196[_0x3060('0x18')][_0x3060('0x27')][_0x3060('0xf')]();}),_0x1dd66b;}['_createButton'](_0x57f219,_0x1e99d9,_0x556351,_0x57bce7){const _0x5c597e=new _0x20f421(this['locale']);return _0x5c597e[_0x3060('0x10')]({'label':_0x57f219,'icon':_0x1e99d9,'tooltip':!0x0}),_0x5c597e[_0x3060('0x4')]({'attributes':{'class':_0x556351}}),_0x57bce7&&_0x5c597e[_0x3060('0x0')]('execute')['to'](this,_0x57bce7),_0x5c597e;}}
23
+ const _0x264d=['revisionNameInputValue','trim','setTemplate','value','arrowright','cancel','fieldView','ck-responsive-form','_focusCycler','_createRevisionNameInput','ck-revision-history-save-revision-form','add','220','tab','submit','_focusables','execute','forEach','type','form','focus','set','cancelButtonView','listenTo','Save','element','saveButtonView','extendTemplate','delegate','focusTracker','revisionName','arrowdown','_createButton','revisionNameInputView','locale','shift\x20+\x20tab','ck-button-save','keystrokes','render'];(function(_0x69e9a4,_0x264da6){const _0x5e916c=function(_0x381553){while(--_0x381553){_0x69e9a4['push'](_0x69e9a4['shift']());}};_0x5e916c(++_0x264da6);}(_0x264d,0x7f));const _0x5e91=function(_0x69e9a4,_0x264da6){_0x69e9a4=_0x69e9a4-0x0;let _0x5e916c=_0x264d[_0x69e9a4];return _0x5e916c;};import{icons as _0x1604eb}from'ckeditor5/src/core';import{ButtonView as _0x458ac1,FocusCycler as _0xc47607,LabeledFieldView as _0x4fe103,View as _0x1098cf,ViewCollection as _0x5ceffa,createLabeledInputText as _0x4272e9,injectCssTransitionDisabler as _0x53d7a7,submitHandler as _0x1b935f}from'ckeditor5/src/ui';import{FocusTracker as _0x161b91,KeystrokeHandler as _0x220d2e}from'ckeditor5/src/utils';import{getTranslation as _0x292c94}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x1098cf{constructor(_0x2788e5){super(_0x2788e5),this[_0x5e91('0x13')]=new _0x161b91(),this[_0x5e91('0x1b')]=new _0x220d2e(),this[_0x5e91('0xb')](_0x5e91('0x1d'),''),this[_0x5e91('0x17')]=this[_0x5e91('0x26')](),this[_0x5e91('0x10')]=this[_0x5e91('0x16')](_0x292c94(_0x2788e5,_0x5e91('0xe')),_0x1604eb['check'],_0x5e91('0x1a')),this[_0x5e91('0x10')][_0x5e91('0x8')]=_0x5e91('0x4'),this[_0x5e91('0xc')]=this[_0x5e91('0x16')](_0x292c94(_0x2788e5,'Cancel'),_0x1604eb[_0x5e91('0x22')],'ck-button-cancel',_0x5e91('0x22')),this[_0x5e91('0x5')]=new _0x5ceffa(),this[_0x5e91('0x25')]=new _0xc47607({'focusables':this[_0x5e91('0x5')],'focusTracker':this[_0x5e91('0x13')],'keystrokeHandler':this[_0x5e91('0x1b')],'actions':{'focusPrevious':_0x5e91('0x19'),'focusNext':_0x5e91('0x3')}}),this[_0x5e91('0x1f')]({'tag':_0x5e91('0x9'),'attributes':{'class':['ck',_0x5e91('0x0'),_0x5e91('0x24')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this[_0x5e91('0xc')]]}),_0x53d7a7(this);}[_0x5e91('0x1c')](){super[_0x5e91('0x1c')](),_0x1b935f({'view':this}),([this[_0x5e91('0x17')],this['saveButtonView'],this[_0x5e91('0xc')]][_0x5e91('0x7')](_0x3e7bef=>{this[_0x5e91('0x5')][_0x5e91('0x1')](_0x3e7bef),this[_0x5e91('0x13')][_0x5e91('0x1')](_0x3e7bef[_0x5e91('0xf')]);}),this[_0x5e91('0x1b')][_0x5e91('0xd')](this[_0x5e91('0xf')]));const _0x4d4de8=_0x6d594d=>_0x6d594d['stopPropagation']();this['keystrokes'][_0x5e91('0xb')](_0x5e91('0x21'),_0x4d4de8),this[_0x5e91('0x1b')][_0x5e91('0xb')]('arrowleft',_0x4d4de8),this[_0x5e91('0x1b')][_0x5e91('0xb')]('arrowup',_0x4d4de8),this[_0x5e91('0x1b')][_0x5e91('0xb')](_0x5e91('0x15'),_0x4d4de8);}[_0x5e91('0xa')](){this[_0x5e91('0x25')]['focusFirst']();}get[_0x5e91('0x14')](){return this['revisionNameInputView']['fieldView'][_0x5e91('0xf')]['value'][_0x5e91('0x1e')]();}set['revisionName'](_0x4874ea){this[_0x5e91('0x17')][_0x5e91('0x23')][_0x5e91('0xf')][_0x5e91('0x20')]=_0x4874ea[_0x5e91('0x1e')]();}['reset'](){this[_0x5e91('0x17')][_0x5e91('0x23')][_0x5e91('0xf')]['value']='';}[_0x5e91('0x26')](){const _0x46290d=new _0x4fe103(this[_0x5e91('0x18')],_0x4272e9),_0x1ca597=_0x46290d[_0x5e91('0x23')];return _0x1ca597[_0x5e91('0x11')]({'attributes':{'maxlength':_0x5e91('0x2')}}),_0x46290d['label']=_0x292c94(this[_0x5e91('0x18')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x1ca597['on']('input',()=>{this[_0x5e91('0x1d')]=_0x1ca597[_0x5e91('0xf')]['value'][_0x5e91('0x1e')]();}),_0x46290d;}[_0x5e91('0x16')](_0x19abc0,_0x591148,_0x5332c3,_0x2a0ff6){const _0x1ae07d=new _0x458ac1(this['locale']);return _0x1ae07d[_0x5e91('0xb')]({'label':_0x19abc0,'icon':_0x591148,'tooltip':!0x0}),_0x1ae07d['extendTemplate']({'attributes':{'class':_0x5332c3}}),_0x2a0ff6&&_0x1ae07d[_0x5e91('0x12')](_0x5e91('0x6'))['to'](this,_0x2a0ff6),_0x1ae07d;}}