@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230818.1 → 0.0.0-nightly-20230819.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 _0x59c4=['_makeModelFromViewString','getItems','name','ck-editor__editable__overlay','removeMarker','_makeModelFromTape','revision','changeId','createRevision','next','oldRevisionId','model','authors','addMarker:revision','includes','vid','span','processor','POSITIVE_INFINITY','deletion','all','_getDiff','isObject','deletions','_cleanUp','compare','find','push','pluginName','getRevision','revision-suggestion','_appendChild','dataDowncast','low','enqueueChange','markerRange','isCollapsed','_setDistance','_removeUnsupportedChanges','attachChange','removeMarker:revision','writer','high','plugins','data-revision-','_markInsertions','_balloon','shift','remove','collaboration.channelId','target','text','_initInteractions','startsWith','view','affectsData','consume','filter','change:isReady','code','attributesAfter','adapter','bindElementToMarker','ck-suggestion-marker','getClientRects','isLimit','getWalker','refresh','length','suggestion:','_threeWayMerge','addRevisionData','return','ck-suggestion-marker-merge','requires','restoreRevisionCallback','showPreviousChange','useFillerType','dataToMarker','level','modelRange','revision:','elementEnd','attributes','hasAttribute','test','isOnRoot','change','createAttributeElement','resolve','_sortAndFilterDiffChanges','abs','elementToAttribute','-new','forward','insertions','has','hasClass','pop','isReady','change:numberOfChanges','removeClass','values','side','diff','_getRevisionsRange','getRevisionRootsAttributes','insertion','_markMismatchedRemovedTags','isBlock','uiElement','getCustomProperty','nextSibling','markersStart','getRootNames','markerNameToElements','markerToData','_setConversion','getAttributes','attribute:vid','roots','distance','ck-suggestion-marker-split','setAttribute','endIndex','_update','map','isInline','isAfter','nodeAfter','concat','previousPosition','revision-viewer','default','editing','repository','editingDowncast','_findChangeIdFromDomTarget','_getChangeFromId','_makeTape','removeMarker:revision-suggestion','markerName','upcast','viewItem','bottom','removeAttribute','listenTo','item','checkAttribute','execute','createPositionBefore','detachRoot','editor','isIncorrect','revisionHistoryAttachChange','unshift','suggestion','children','domConverter','vid_end','_getViewForChange','currentChangeNumber','conversion','revisionHistory','document','maxOffset','addRevision','observeMarkers','getRevisionData','isRemoved','data','_removeRevisionMarkers','mousedown','getIndex','activeView','enableReadOnlyMode','nextPosition','startIndex','forEach','activeChange','getAttribute','revision-start','backward','isBefore','_markMarkers','change:activeChange','getDomRoot','WidgetToolbarRepository','rootName','unbindElementFromMarkerName','markerToHighlight','isNavigationMode','merge','keys','set','_step','parent','wrap','ck-revision-history-root-','isEqual','revisionHistoryLabel','element','get','toViewPosition','first','userId','showStack','updatePosition','isSuggestion','_joinTapes','slice','RevisionViewer','addHighlight','downcastDispatcher','RevisionsRepository','toViewRange','toModel','_markSuggestions','_getViewObj','_fixObsoleteTags','pairId','type','addClass','createPositionFromPath','top','domEvent','_activeViewTarget','reconvertMarker','isContent','isRemoveSuggestion','createUIElement','isAddSuggestion','index','createRange','isAdded','getRoot','ck-revision-history-root-remove','_revisions','end','start','delete','commands','destroy','ck-suggestion-marker--active','splice','_processTape','ck-suggestion-preview-marker-','markers','from','elementStart','config','then','addRoot','split','sort','vid_start','for','schema','changes','string','loadRevisionData','_refreshStartEndIndex','stop','_cleanMarkers','element:pre','findIndex','isAtStart','data-change-id','forceDisabled','ck-suggestion-preview-marker','highest','markersEnd','catch','addMarker:revision-suggestion:insertion','mouseover','change:isEnabled','ck-suggestion-marker-','left','newRevisionId','isEnabled','parse','isAttached','ck-revision-history-root--active','consumable','_changeView','_changeIdToChange','revision-comment:','ck-revision-history-root-add','flat','insert','add','error','bind','_setChanges','mapper','diffData'];(function(_0x5d92ff,_0x59c462){const _0x47caaa=function(_0x37543c){while(--_0x37543c){_0x5d92ff['push'](_0x5d92ff['shift']());}};_0x47caaa(++_0x59c462);}(_0x59c4,0x1ed));const _0x47ca=function(_0x5d92ff,_0x59c462){_0x5d92ff=_0x5d92ff-0x0;let _0x47caaa=_0x59c4[_0x5d92ff];return _0x47caaa;};import{Plugin as _0xf99a6e,Command as _0xc82726}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3fdf1f}from'ckeditor5/src/utils';import{ContextualBalloon as _0x20f041}from'ckeditor5/src/ui';import{DocumentFragment as _0x249b21,Element as _0x4a66fb,Text as _0x24f32e,ViewDocumentFragment as _0x328c26,ViewText as _0x23338c,ViewElement as _0x3e7844,ViewContainerElement as _0x221827,ViewAttributeElement as _0x353d3f,ViewEmptyElement as _0x3adc7d,ViewRawElement as _0x4eb8c3,ViewUIElement as _0x50a834}from'ckeditor5/src/engine';import{Users as _0x345b28,getMarkerDomElement as _0x4f1b98}from'ckeditor5-collaboration/src/collaboration-core';import _0x4a531f from'./ui/revisionviewer/changedetailsview';import _0x48200f from'./revisionsrepository';import _0xeb78f6 from'./changeitem';import{default as _0xe13e1e}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x31d9d2}from'lodash-es';const tt={'c':_0x221827,'a':_0x353d3f,'e':_0x3adc7d,'r':_0x4eb8c3,'u':_0x50a834};export default class d extends _0xf99a6e{static get[_0x47ca('0x7f')](){return'RevisionViewer';}static get[_0x47ca('0xad')](){return[_0x345b28,_0x20f041,_0x48200f];}constructor(_0x1768bf){super(_0x1768bf),this[_0x47ca('0xea')]=this['editor'][_0x47ca('0x8e')][_0x47ca('0x5')](_0x47ca('0x11')),this['set'](_0x47ca('0x116'),null),this[_0x47ca('0x125')](_0x47ca('0x111'),null),this[_0x47ca('0x1d')]=null,this['set'](_0x47ca('0xcb'),null),this[_0x47ca('0x125')]('isReady',!0x1),this[_0x47ca('0x125')](_0x47ca('0x52'),!0x0),this['on'](_0x47ca('0x4e'),(_0x2d3d7e,_0x551635,_0x3fbf14)=>{this[_0x47ca('0x116')]=null,this[_0x47ca('0x111')]=null,this[_0x47ca('0xfb')][_0x47ca('0xe9')][_0x47ca('0x99')]['change'](_0x4ea076=>{for(const _0x53e144 of this['editor'][_0x47ca('0xe9')]['view']['document'][_0x47ca('0xdb')])_0x3fbf14?_0x4ea076['removeClass'](_0x47ca('0x66'),_0x53e144):_0x4ea076[_0x47ca('0x19')]('ck-editor__editable__overlay',_0x53e144);});}),this[_0x47ca('0x5f')](_0x47ca('0x122'))['to'](this,_0x47ca('0x116'),_0x164289=>null!==_0x164289),this[_0x47ca('0x5f')](_0x47ca('0x104'))['to'](this,'isReady',this,'diff',this,_0x47ca('0x116'),(_0x4ec1bb,_0xb08eb,_0x45b66d)=>_0x4ec1bb&&_0x45b66d?_0xb08eb['changes']['getIndex'](_0x45b66d):0x0),this[_0x47ca('0x5f')]('numberOfChanges')['to'](this,_0x47ca('0xc6'),this,_0x47ca('0xcb'),(_0x142b3c,_0x205f6c)=>_0x142b3c?_0x205f6c[_0x47ca('0x3d')][_0x47ca('0xa7')]:0x0),this[_0x47ca('0x57')]=null,this[_0x47ca('0x58')]=new Map(),this[_0x47ca('0xa0')]=null,this['_balloon']=this[_0x47ca('0xfb')][_0x47ca('0x8e')]['get'](_0x20f041);}['init'](){const _0x3ce187=this['editor'],_0x47bbf4=new ShowChangeCommand(_0x3ce187,{'direction':_0x47ca('0x119')}),_0x4f3af2=new ShowChangeCommand(_0x3ce187,{'direction':_0x47ca('0xc1')});(_0x3ce187['commands'][_0x47ca('0x5d')](_0x47ca('0xaf'),_0x47bbf4),_0x3ce187[_0x47ca('0x2c')][_0x47ca('0x5d')]('showNextChange',_0x4f3af2),_0x3ce187['commands'][_0x47ca('0x5d')]('restoreRevision',new RestoreRevisionCommand(_0x3ce187)),this['on'](_0x47ca('0xc7'),()=>{_0x47bbf4[_0x47ca('0xa6')](),_0x4f3af2[_0x47ca('0xa6')]();}),this['_setConversion'](),this[_0x47ca('0x97')](),_0x3ce187[_0x47ca('0x112')](_0x47ca('0xe7')),_0x3ce187['plugins']['has']('WidgetToolbarRepository'))&&_0x3ce187[_0x47ca('0x8e')][_0x47ca('0x5')](_0x47ca('0x11e'))[_0x47ca('0x47')](_0x47ca('0xe7'));}async[_0x47ca('0x10b')](_0x5e61ea){await this[_0x47ca('0x3f')](_0x5e61ea);const _0x21e26e={};for(const _0x32707e in _0x5e61ea[_0x47ca('0x62')]){if(_0x5e61ea[_0x47ca('0x62')][_0x32707e][_0x47ca('0x8a')]&&!_0x5e61ea['diffData'][_0x32707e][_0x47ca('0x8a')][_0x47ca('0x54')])continue;const _0x50b3a6=this[_0x47ca('0x10e')](JSON[_0x47ca('0x53')](_0x5e61ea[_0x47ca('0x62')][_0x32707e]['insertions'])),_0x16e502=this[_0x47ca('0xfb')]['editing'][_0x47ca('0x99')][_0x47ca('0x107')],_0x2e9c4d=new _0x328c26(_0x16e502,_0x50b3a6[_0x47ca('0xe1')](_0x2839b5=>this[_0x47ca('0x15')](_0x2839b5)));this['editor'][_0x47ca('0x10d')][_0x47ca('0x74')][_0x47ca('0xb0')]('marked'),_0x21e26e[_0x32707e]=this[_0x47ca('0xfb')][_0x47ca('0x10d')][_0x47ca('0x74')]['toData'](_0x2e9c4d),this[_0x47ca('0xfb')][_0x47ca('0x10d')][_0x47ca('0x74')][_0x47ca('0xb0')](_0x47ca('0xe8'));}return _0x21e26e;}async[_0x47ca('0xcd')](_0x285ffc){await this['loadRevisionData'](_0x285ffc);const _0x46c174={};for(const _0xa916ce in _0x285ffc[_0x47ca('0x62')])_0x285ffc['diffData'][_0xa916ce]['attachChange']&&!_0x285ffc[_0x47ca('0x62')][_0xa916ce][_0x47ca('0x8a')]['isAttached']||(_0x46c174[_0xa916ce]=_0x285ffc[_0x47ca('0x62')][_0xa916ce][_0x47ca('0x9f')]||{});return _0x46c174;}['_removeRevisionMarkers'](_0x5199e3){return(_0x5199e3=_0x5199e3[_0x47ca('0x9c')](_0x56e583=>!_0x56e583[_0x47ca('0x65')]||_0x47ca('0x118')!==_0x56e583[_0x47ca('0x65')]&&'revision-end'!==_0x56e583[_0x47ca('0x65')]))[_0x47ca('0x115')](_0x4f906f=>{_0x47ca('0x3e')!=typeof _0x4f906f&&(_0x4f906f['children']=this['_removeRevisionMarkers'](_0x4f906f[_0x47ca('0x100')]),_0x4f906f['attributes']=_0x4f906f[_0x47ca('0xb6')][_0x47ca('0x9c')](_0x27e1c4=>!_0x27e1c4[0x0]['startsWith'](_0x47ca('0x8f'))));}),_0x5199e3;}async[_0x47ca('0x7c')](_0x2c5906,_0x4dc263,_0x2fe799=!0x1){if(!this['isEnabled'])return;const _0x1a1e7e=this['diff'],_0x5e1777=this[_0x47ca('0xea')],_0x4a5f1e=_0x47ca('0x3e')==typeof _0x2c5906?_0x5e1777[_0x47ca('0x80')](_0x2c5906):_0x2c5906,_0x5b8026=_0x47ca('0x3e')==typeof _0x4dc263?_0x5e1777[_0x47ca('0x80')](_0x4dc263):_0x4dc263,_0x43b95c=_0x4a5f1e['id'],_0x1dac85=_0x5b8026?_0x5b8026['id']:null;if(!_0x2fe799&&this[_0x47ca('0xcb')]&&this[_0x47ca('0xcb')]['newRevisionId']===_0x43b95c&&this['diff'][_0x47ca('0x6d')]===_0x1dac85)return Promise['resolve']();this[_0x47ca('0xc6')]=!0x1,this[_0x47ca('0x111')]=null,this['activeChange']=null,this[_0x47ca('0xcb')]=new _0xe13e1e(_0x43b95c,_0x1dac85);const _0x4f9a34=this['_getRevisionsRange'](_0x4a5f1e,_0x5b8026,!0x0)[_0x47ca('0xe1')](_0x6b402b=>this['loadRevisionData'](_0x6b402b));return _0x4f9a34[_0x47ca('0x7e')](new Promise(_0xa97d49=>{setTimeout(_0xa97d49,0x14);})),Promise[_0x47ca('0x77')](_0x4f9a34)['then'](()=>{if(!this[_0x47ca('0x52')])return;this['_cleanUp']();const _0x218586=this['_getDiff'](_0x43b95c,_0x1dac85);for(const _0x208ef6 of _0x218586[_0x47ca('0x3d')])this[_0x47ca('0x58')][_0x47ca('0x125')](_0x208ef6['id'],_0x208ef6);this[_0x47ca('0xfb')]['model'][_0x47ca('0x85')]({'isUndoable':!0x1},_0x4d9882=>{for(const _0x410492 of this[_0x47ca('0xfb')][_0x47ca('0x6e')][_0x47ca('0x107')][_0x47ca('0xd5')]())_0x4d9882[_0x47ca('0xfa')](_0x410492);for(const _0x1d38d7 of Object[_0x47ca('0x124')](_0x218586[_0x47ca('0x6e')])){const _0x58f966=_0x4d9882[_0x47ca('0x37')](_0x1d38d7);for(const _0x3fc8c4 of Object['keys'](_0x218586['attributes'][_0x1d38d7]))_0x4d9882[_0x47ca('0xde')](_0x3fc8c4,_0x218586['attributes'][_0x1d38d7][_0x3fc8c4],_0x58f966);_0x4d9882[_0x47ca('0x5c')](_0x218586[_0x47ca('0x6e')][_0x1d38d7],_0x58f966,0x0);}}),this['diff'][_0x47ca('0x60')](this[_0x47ca('0xbd')](_0x218586[_0x47ca('0x3d')])),this['isReady']=!0x0;})[_0x47ca('0x4b')](_0x16a2ad=>{console[_0x47ca('0x5e')](_0x16a2ad),this['_cleanUp'](),_0x1a1e7e&&(this['diff']=_0x1a1e7e),this[_0x47ca('0xc6')]=!0x0;});}[_0x47ca('0xaa')](_0x29c4a1,_0x165e8c){const _0x277a28=this[_0x47ca('0xea')][_0x47ca('0x6b')](_0x29c4a1);return _0x277a28['on'](_0x47ca('0xe0'),(_0x4fb5aa,_0x10f0d6,_0x1cc976)=>_0x165e8c(_0x10f0d6,_0x1cc976,_0x277a28)),this['repository'][_0x47ca('0x109')](_0x277a28),_0x277a28;}[_0x47ca('0x3f')](_0x5343c4){if(!_0x5343c4||_0x5343c4[_0x47ca('0x62')])return Promise[_0x47ca('0xbc')]();{const _0xe6de4b=this[_0x47ca('0xfb')]['config'][_0x47ca('0x5')](_0x47ca('0x94'));return this['adapter'][_0x47ca('0x80')]({'channelId':_0xe6de4b,'revisionId':_0x5343c4['id']})[_0x47ca('0x36')](_0x2eef1e=>{_0x5343c4[_0x47ca('0xe0')]({'diffData':_0x2eef1e[_0x47ca('0x62')]},!0x0);});}}[_0x47ca('0x7b')](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x47ca('0x57')]&&this['_changeView'][_0x47ca('0x2d')](),this['_changeView']=null,this[_0x47ca('0x58')]['clear'](),this[_0x47ca('0xfb')][_0x47ca('0x6e')]['enqueueChange']({'isUndoable':!0x1},_0xdd6afa=>{for(const _0x43c17a of this[_0x47ca('0xfb')][_0x47ca('0x6e')]['document'][_0x47ca('0xd5')]())_0xdd6afa[_0x47ca('0xfa')](_0x43c17a);});}[_0x47ca('0xbd')](_0x24231b){const _0xc83c86=[],_0x319245=new Map();for(const _0x3ed3ff of this[_0x47ca('0xfb')][_0x47ca('0x6e')]['document'][_0x47ca('0xd5')]()){const _0x2c3538=this[_0x47ca('0xfb')][_0x47ca('0xe9')]['view'][_0x47ca('0x11d')](_0x3ed3ff);if(!_0x2c3538)continue;const _0x13481f=_0x2c3538[_0x47ca('0xa3')]()[_0x47ca('0xf6')](0x0);_0x13481f&&(_0xc83c86[_0x47ca('0x7e')](_0x3ed3ff),_0x319245[_0x47ca('0x125')](_0x3ed3ff,_0x13481f));}return _0xc83c86[_0x47ca('0x39')]((_0x3a2e83,_0x335a2b)=>{const _0x3556e7=_0x319245[_0x47ca('0x5')](_0x3a2e83),_0x4a8e16=_0x319245[_0x47ca('0x5')](_0x335a2b);return _0x3556e7['y']-_0x4a8e16['y']||_0x3556e7['x']-_0x4a8e16['x'];}),(_0x24231b=_0x24231b[_0x47ca('0x9c')](_0x29492c=>_0xc83c86[_0x47ca('0x71')](_0x29492c['rootName'])))[_0x47ca('0x39')]((_0x3f7abf,_0x489daf)=>_0xc83c86['indexOf'](_0x3f7abf[_0x47ca('0x11f')])-_0xc83c86['indexOf'](_0x489daf[_0x47ca('0x11f')])),_0x24231b;}['_makeTape'](_0x4f17d1){const _0x241748=Array[_0x47ca('0x33')](_0x4f17d1[_0x47ca('0x32')])['filter'](([_0x1f990f,_0x17e487])=>_0x1f990f[_0x47ca('0x98')](_0x47ca('0xb4'))&&!_0x17e487[_0x47ca('0x87')]),_0xae960e=Array['from'](this['editor'][_0x47ca('0x6e')]['createRangeIn'](_0x4f17d1)[_0x47ca('0xa5')]({'singleCharacters':!0x0}));if(0x0!=_0x241748[_0x47ca('0xa7')])for(const _0x37e6f0 of _0xae960e){const [_0x43c8fc,_0xd296cb]=_0x241748[0x0],[,_0x579eec,_0x344275]=_0x43c8fc[_0x47ca('0x38')](':');if(_0xd296cb[_0x47ca('0x29')][_0x47ca('0x2')](_0x37e6f0[_0x47ca('0x113')])&&_0x241748['shift'](),(_0x37e6f0[_0x47ca('0xe6')]['isEqual'](_0xd296cb[_0x47ca('0x2a')])||_0x37e6f0[_0x47ca('0xe6')][_0x47ca('0xe3')](_0xd296cb['start']))&&(_0x47ca('0xce')==_0x579eec?_0x37e6f0['isAdded']={'userId':_0x344275}:_0x47ca('0x76')==_0x579eec&&(_0x37e6f0[_0x47ca('0x10c')]={'userId':_0x344275})),0x0==_0x241748[_0x47ca('0xa7')])break;}return _0xae960e;}[_0x47ca('0x40')](_0x16dfa8){const _0x57fb88=new Map();for(let _0x565ac9=0x0;_0x565ac9<_0x16dfa8[_0x47ca('0xa7')];_0x565ac9++)_0x47ca('0x96')===_0x16dfa8[_0x565ac9][_0x47ca('0x18')]?(_0x16dfa8[_0x565ac9][_0x47ca('0xf6')][_0x47ca('0x114')]=_0x565ac9,_0x16dfa8[_0x565ac9][_0x47ca('0xf6')]['endIndex']=_0x565ac9):('elementStart'===_0x16dfa8[_0x565ac9]['type']?_0x16dfa8[_0x565ac9]['item']['startIndex']=_0x565ac9:'elementEnd'===_0x16dfa8[_0x565ac9][_0x47ca('0x18')]&&(_0x16dfa8[_0x565ac9][_0x47ca('0xf6')][_0x47ca('0xdf')]=_0x565ac9),_0x57fb88[_0x47ca('0x125')](_0x16dfa8[_0x565ac9]['id'],_0x565ac9));for(const _0x58a0ed of _0x57fb88[_0x47ca('0xc9')]())'elementStart'===_0x16dfa8[_0x58a0ed][_0x47ca('0x18')]?_0x16dfa8[_0x58a0ed]['item'][_0x47ca('0xdf')]=_0x57fb88[_0x47ca('0x5')](_0x16dfa8[_0x58a0ed][_0x47ca('0x17')]):_0x47ca('0xb5')===_0x16dfa8[_0x58a0ed][_0x47ca('0x18')]&&(_0x16dfa8[_0x58a0ed][_0x47ca('0xf6')][_0x47ca('0x114')]=_0x57fb88[_0x47ca('0x5')](_0x16dfa8[_0x58a0ed][_0x47ca('0x17')]));}[_0x47ca('0x30')](_0x47ed93){for(let _0x3a1e03=0x0;_0x3a1e03<_0x47ed93['length'];_0x3a1e03++){if(_0x47ca('0x34')===_0x47ed93[_0x3a1e03][_0x47ca('0x18')])_0x47ed93[_0x3a1e03][_0x47ca('0xf6')][_0x47ca('0x114')]=_0x3a1e03;else{if(_0x47ca('0xb5')===_0x47ed93[_0x3a1e03][_0x47ca('0x18')]){_0x47ed93[_0x3a1e03][_0x47ca('0xf6')][_0x47ca('0xdf')]=_0x3a1e03;const _0x3f64ce=_0x47ed93[_0x3a1e03][_0x47ca('0xf6')][_0x47ca('0x114')];_0x47ed93[_0x3f64ce][_0x47ca('0x17')]=_0x47ed93[_0x3a1e03]['id'],_0x47ed93[_0x3a1e03][_0x47ca('0x17')]=_0x47ed93[_0x3f64ce]['id'];}else _0x47ed93[_0x3a1e03]['item'][_0x47ca('0x114')]=_0x3a1e03,_0x47ed93[_0x3a1e03][_0x47ca('0xf6')][_0x47ca('0xdf')]=_0x3a1e03,_0x47ed93[_0x3a1e03]['pairId']=null;}_0x47ed93[_0x3a1e03][_0x47ca('0xd4')]||(_0x47ed93[_0x3a1e03][_0x47ca('0xd4')]=[],_0x47ed93[_0x3a1e03][_0x47ca('0x4a')]=[]);}}[_0x47ca('0x90')](_0x2ddff8,_0x4f68d5){const _0x3b325e=_0x2ddff8[_0x47ca('0x9c')](_0x541408=>!_0x541408[_0x47ca('0x25')]);for(let _0x2b4ff2=0x0;_0x2b4ff2<_0x4f68d5['length'];_0x2b4ff2++)_0x4f68d5[_0x2b4ff2][_0x47ca('0x25')]&&(_0x3b325e[_0x2b4ff2][_0x47ca('0x25')]=_0x4f68d5[_0x2b4ff2][_0x47ca('0x25')]);}[_0x47ca('0x63')](_0x380071){const _0x62f313=JSON[_0x47ca('0x53')](_0x380071),_0x18390c=this[_0x47ca('0xfb')][_0x47ca('0xe9')]['view'][_0x47ca('0x107')],_0x40d936=new _0x328c26(_0x18390c,_0x62f313[_0x47ca('0xe1')](_0x58f573=>this[_0x47ca('0x15')](_0x58f573)));return this['editor'][_0x47ca('0x10d')][_0x47ca('0x13')](_0x40d936);}[_0x47ca('0x15')](_0x5864aa){const _0x2e471c=this[_0x47ca('0xfb')][_0x47ca('0xe9')][_0x47ca('0x99')][_0x47ca('0x107')];if(_0x47ca('0x3e')==typeof _0x5864aa)return new _0x23338c(_0x2e471c,_0x5864aa);{const _0x1fd600=_0x5864aa[_0x47ca('0x100')][_0x47ca('0xe1')](_0x38ddeb=>this['_getViewObj'](_0x38ddeb));return new(tt[_0x5864aa[(_0x47ca('0x18'))]]||_0x3e7844)(_0x2e471c,_0x5864aa['name'],_0x5864aa['attributes'],_0x1fd600);}}[_0x47ca('0x78')](_0x12091e,_0xa32b6a=null){const _0x27f540=this['repository'][_0x47ca('0x80')](_0x12091e),_0x4a064d=_0xa32b6a?this['repository']['getRevision'](_0xa32b6a):null,_0x565d67=this['_getRevisionsRange'](_0x27f540,_0x4a064d),_0x3f98d0=_0x565d67[_0x565d67[_0x47ca('0xa7')]-0x1],_0x30b46b=new Map(),_0x111b90={'model':{},'attributes':{},'changes':[]},_0x19cf58=new Set(),_0x393806=new Map();for(let _0x1869d1=_0x565d67[_0x47ca('0xa7')]-0x1;_0x1869d1>=0x0;_0x1869d1--){const _0x2cdebe=_0x565d67[_0x1869d1];for(const _0x45c588 of Object['keys'](_0x2cdebe[_0x47ca('0x62')]))if(_0x2cdebe[_0x47ca('0x62')][_0x45c588][_0x47ca('0x8a')]){const _0x599cc8=_0x2cdebe[_0x47ca('0x62')][_0x45c588]['attachChange'];_0x599cc8[_0x47ca('0x54')]?(_0x19cf58['add'](_0x45c588),_0x393806['has'](_0x45c588)&&_0x393806[_0x47ca('0x5')](_0x45c588)[_0x47ca('0x8')]==_0x599cc8[_0x47ca('0x8')]?_0x393806[_0x47ca('0x2b')](_0x45c588):_0x393806[_0x47ca('0x125')](_0x45c588,_0x599cc8)):_0x393806['has'](_0x45c588)?(_0x19cf58['delete'](_0x45c588),_0x393806[_0x47ca('0x2b')](_0x45c588)):(_0x19cf58[_0x47ca('0x5d')](_0x45c588),_0x393806[_0x47ca('0x125')](_0x45c588,_0x599cc8));}else _0x19cf58[_0x47ca('0x5d')](_0x45c588);}for(const _0x3436c8 of _0x19cf58){const _0x393715=_0x393806[_0x47ca('0xc3')](_0x3436c8)&&!_0x393806[_0x47ca('0x5')](_0x3436c8)['isAttached'];let _0x54f68c=_0x393715?_0x565d67[_0x47ca('0xa7')]-0x1:0x0;const _0x3f6612=_0x393715?-0x1:0x1;for(;_0x565d67[_0x54f68c];){const _0x5f19f7=_0x565d67[_0x54f68c];if(_0x5f19f7['diffData'][_0x3436c8]){const _0x4a06de=_0x393715?_0x5f19f7[_0x47ca('0x62')][_0x3436c8]['attributesBefore']:_0x5f19f7[_0x47ca('0x62')][_0x3436c8][_0x47ca('0x9f')];_0x111b90[_0x47ca('0xb6')][_0x3436c8]=_0x4a06de?_0x31d9d2(_0x4a06de):{};break;}_0x54f68c+=_0x3f6612;}}for(const _0x4dd6df of _0x565d67){_0x4dd6df['model']={};for(const _0x39f82a of _0x4dd6df[_0x47ca('0x6f')])_0x30b46b['set'](_0x39f82a['id'],_0x39f82a);for(const _0x5d5735 of _0x19cf58){const _0x4d6bb2=_0x4dd6df[_0x47ca('0x62')][_0x5d5735]?_0x4dd6df[_0x47ca('0x62')][_0x5d5735]['insertions']:'[]',_0x4a8c3e=_0x4dd6df['diffData'][_0x5d5735]?_0x4dd6df['diffData'][_0x5d5735][_0x47ca('0x7a')]:'[]';_0x4dd6df[_0x47ca('0x6e')][_0x5d5735]={'insertions':this[_0x47ca('0x63')](_0x4d6bb2),'deletions':this[_0x47ca('0x63')](_0x4a8c3e)};}}for(const _0x44cc41 of _0x19cf58){let _0x4cf949=null,_0x3ef438=0x0;const _0x3d9b2d=new Map(Array['from'](_0x27f540['model'][_0x44cc41][_0x47ca('0xc2')][_0x47ca('0x32')])[_0x47ca('0x9c')](([_0x515ee7])=>!_0x515ee7[_0x47ca('0x98')](_0x47ca('0xb4'))));let _0xcbbf54=0x0;for(const _0x148682 of _0x565d67){const _0x5873ec=this[_0x47ca('0xee')](_0x148682[_0x47ca('0x6e')][_0x44cc41]['insertions']);_0x148682==_0x27f540?(_0x4cf949=_0x5873ec,_0x3ef438=_0x4cf949['length'],_0x4cf949[_0x47ca('0x115')](_0x3912c2=>{_0x3912c2['id']=_0xcbbf54++;}),this[_0x47ca('0x30')](_0x4cf949)):this[_0x47ca('0x90')](_0x4cf949,_0x5873ec);const _0x49e292=_0x4cf949[_0x47ca('0x9c')](_0xa9542b=>!_0xa9542b[_0x47ca('0x25')])[_0x47ca('0xe1')](_0x2fd1c9=>_0x2fd1c9['id']);let _0x352a9e=0x0;const _0x575699=this['_makeTape'](_0x148682[_0x47ca('0x6e')][_0x44cc41]['deletions']);_0x575699['forEach'](_0x371ee3=>{_0x371ee3['isRemoved']?_0x371ee3['id']=_0x3ef438++:_0x371ee3['id']=_0x49e292[_0x352a9e++];}),this[_0x47ca('0x30')](_0x575699),this[_0x47ca('0x88')](_0x4cf949,_0x47ca('0x25')),this[_0x47ca('0x88')](_0x575699,_0x47ca('0x10c')),_0x148682==_0x27f540&&this['_markMarkers'](_0x4cf949,_0x3d9b2d),_0x4cf949=this[_0x47ca('0xc')](_0x4cf949,_0x575699),this[_0x47ca('0x40')](_0x4cf949),this[_0x47ca('0x88')](_0x4cf949,_0x47ca('0x10c'));}_0x4cf949=_0x4cf949['filter'](_0x1c9884=>!(_0x1c9884['isAdded']&&_0x1c9884[_0x47ca('0x10c')]));const _0x30e635=new Map(_0x3f98d0[_0x47ca('0x6e')][_0x44cc41]['deletions']['markers']),_0x40a865=new Set(_0x3d9b2d[_0x47ca('0x124')]());for(const _0x3a24f6 of _0x30e635[_0x47ca('0x124')]())_0x40a865[_0x47ca('0x2b')](_0x3a24f6);this[_0x47ca('0x14')](_0x4cf949,_0x40a865),this[_0x47ca('0x16')](_0x4cf949),_0x4cf949=this['_removeMissingPairs'](_0x4cf949),_0x4cf949=this[_0x47ca('0xcf')](_0x4cf949),_0x4cf949=this[_0x47ca('0x89')](_0x4cf949);const {root:_0x4f0662,changes:_0x4fef7f}=this[_0x47ca('0x68')](_0x4cf949,_0x30b46b,_0x44cc41);_0x111b90[_0x47ca('0x6e')][_0x44cc41]=_0x4f0662;const _0x44ac65=_0x393806[_0x47ca('0x5')](_0x44cc41);if(_0x44ac65){const _0x178dbc=_0x30b46b['get'](_0x44ac65['userId']),_0x298c20=new _0xeb78f6({'author':_0x178dbc,'type':_0x44ac65['isAttached']?_0x47ca('0x5d'):_0x47ca('0x93'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x44cc41});_0x4fef7f[_0x47ca('0xfe')](_0x298c20),_0x111b90[_0x47ca('0xb6')][_0x44cc41]['revisionHistoryAttachChange']=_0x298c20['id'];}_0x111b90[_0x47ca('0x3d')]=_0x111b90[_0x47ca('0x3d')][_0x47ca('0xe5')](_0x4fef7f);}return _0x111b90;}[_0x47ca('0x11b')](_0x4edcf7,_0x1c911c){for(let _0x6e5737=0x0;_0x6e5737<_0x4edcf7['length'];_0x6e5737++)for(const [_0x361594,_0x95939]of _0x1c911c)_0x95939[_0x47ca('0x2a')][_0x47ca('0x2')](_0x4edcf7[_0x6e5737][_0x47ca('0xe6')])&&_0x4edcf7[_0x6e5737][_0x47ca('0xd4')][_0x47ca('0x7e')](_0x361594),_0x95939['end']['isEqual'](_0x4edcf7[_0x6e5737]['nextPosition'])&&_0x4edcf7[_0x6e5737]['markersEnd'][_0x47ca('0x7e')](_0x361594);}['_joinTapes'](_0x19a29b,_0x12093a){let _0x275759=[],_0x3a6655=0x0,_0x362fac=0x0;for(;_0x3a6655<_0x19a29b[_0x47ca('0xa7')]||_0x362fac<_0x12093a[_0x47ca('0xa7')];){const _0x3b4464=_0x19a29b[_0x3a6655]||{},_0x76def6=_0x12093a[_0x362fac]||{};if(_0x3b4464['id']==_0x76def6['id'])_0x3a6655++,_0x362fac++,_0x275759[_0x47ca('0x7e')](_0x3b4464);else{if(_0x76def6['isRemoved']&&_0x3b4464[_0x47ca('0x25')]){const {commonTape:_0x3db894,iEnd:_0x288516,jEnd:_0x49da10}=this['_threeWayMerge'](_0x19a29b,_0x3a6655,_0x12093a,_0x362fac);_0x275759=_0x275759[_0x47ca('0xe5')](_0x3db894),_0x3a6655=_0x288516,_0x362fac=_0x49da10;}else _0x76def6[_0x47ca('0x10c')]?(_0x362fac++,_0x275759[_0x47ca('0x7e')](_0x76def6)):(_0x3a6655++,_0x275759[_0x47ca('0x7e')](_0x3b4464));}}return _0x275759;}['_markSuggestions'](_0x16c8c6,_0x21a34b){const _0x4b273f=[];for(let _0x410466=0x0;_0x410466<_0x16c8c6[_0x47ca('0xa7')];_0x410466++){for(let _0x1244fb=0x0;_0x1244fb<_0x16c8c6[_0x410466]['markersStart']['length'];_0x1244fb++){const _0x21dce9=_0x16c8c6[_0x410466][_0x47ca('0xd4')][_0x1244fb];if(!_0x21a34b[_0x47ca('0xc3')](_0x21dce9))continue;const {group:_0x4bc47b,type:_0x375c61,authorId:_0x40c0fa}=_0x11d609(_0x21dce9);_0x47ca('0x81')!=_0x4bc47b||_0x47ca('0xce')!=_0x375c61&&'deletion'!=_0x375c61||(_0x4b273f[_0x47ca('0xfe')]({'type':_0x375c61,'name':_0x21dce9,'userId':_0x40c0fa}),_0x16c8c6[_0x410466][_0x47ca('0xd4')]['splice'](_0x1244fb,0x1),_0x1244fb--);}_0x3c7cef(_0x16c8c6[_0x410466]);for(let _0x4f8a74=0x0;_0x4f8a74<_0x16c8c6[_0x410466][_0x47ca('0x4a')][_0x47ca('0xa7')];_0x4f8a74++){const _0x169c39=_0x16c8c6[_0x410466][_0x47ca('0x4a')][_0x4f8a74];if(!_0x21a34b[_0x47ca('0xc3')](_0x169c39))continue;const {group:_0x3967ed,type:_0x299744}=_0x11d609(_0x169c39);if('revision-suggestion'!=_0x3967ed||_0x47ca('0xce')!=_0x299744&&_0x47ca('0x76')!=_0x299744)continue;_0x16c8c6[_0x410466][_0x47ca('0x4a')][_0x47ca('0x2f')](_0x4f8a74,0x1),_0x4f8a74--;const _0x724962=_0x4b273f[_0x47ca('0x44')](_0x18a68=>_0x18a68[_0x47ca('0x65')]==_0x169c39);_0x724962>-0x1&&_0x4b273f['splice'](_0x724962,0x1);}}function _0x11d609(_0x557bee){const _0x3b5e15=_0x557bee[_0x47ca('0x38')](':');return{'group':_0x3b5e15[0x0],'type':_0x3b5e15[0x1],'subType':_0x3b5e15[_0x47ca('0xa7')]>=0x5?_0x3b5e15[0x2]:null,'id':_0x3b5e15[_0x47ca('0xa7')]<0x5?_0x3b5e15[0x2]:_0x3b5e15[0x3],'authorId':_0x3b5e15[_0x47ca('0xa7')]<0x5?_0x3b5e15[0x3]:_0x3b5e15[0x4],'markerCount':0x6==_0x3b5e15[_0x47ca('0xa7')]?_0x3b5e15[0x5]:null};}function _0x3c7cef(_0x381ef9){for(let _0x23d50e=0x0;_0x23d50e<_0x4b273f['length'];_0x23d50e++){if(_0x381ef9[_0x47ca('0x25')]&&_0x47ca('0xce')==_0x4b273f[_0x23d50e][_0x47ca('0x18')])return _0x381ef9[_0x47ca('0x22')]=_0x4b273f[_0x23d50e],void delete _0x381ef9['isAdded'];if(!_0x381ef9[_0x47ca('0x25')]&&!_0x381ef9['isRemoved']&&_0x47ca('0x76')==_0x4b273f[_0x23d50e]['type'])return void(_0x381ef9[_0x47ca('0x20')]=_0x4b273f[_0x23d50e]);}}}['_setDistance'](_0x3efebd,_0x55e91b){let _0x1e1b54=0x0,_0x5c294e=!0x1;const _0x4bede9=new Map();for(const _0x362c6a of _0x3efebd)_0x362c6a[_0x55e91b]?_0x5c294e&&(_0x1e1b54++,_0x5c294e=!0x1):(_0x1e1b54++,_0x5c294e=!0x0),_0x4bede9[_0x47ca('0x125')](_0x362c6a['id'],_0x1e1b54);for(let _0x39f4d4=0x0;_0x39f4d4<_0x3efebd[_0x47ca('0xa7')];_0x39f4d4++){if(_0x47ca('0x10c')==_0x55e91b&&_0x3efebd[_0x39f4d4][_0x47ca('0x25')]||_0x47ca('0x25')==_0x55e91b&&_0x3efebd[_0x39f4d4]['isRemoved'])continue;if(_0x47ca('0x96')==_0x3efebd[_0x39f4d4][_0x47ca('0x18')]){_0x3efebd[_0x39f4d4][_0x47ca('0xdc')]=0x0;continue;}const _0x2d63b6=_0x4bede9[_0x47ca('0x5')](_0x3efebd[_0x39f4d4][_0x47ca('0x17')]),_0x2e76c7=_0x4bede9[_0x47ca('0x5')](_0x3efebd[_0x39f4d4]['id']);_0x3efebd[_0x39f4d4][_0x47ca('0xdc')]=_0x2d63b6-_0x2e76c7;}}[_0x47ca('0xcc')](_0x5212a6,_0x1793f0,_0x239cfc=!0x1){const _0x3ec53a=[];let _0x4595dc=this[_0x47ca('0xea')][_0x47ca('0x110')](_0x5212a6),_0x285791=this[_0x47ca('0xea')]['getIndex'](_0x1793f0);for(-0x1==_0x285791&&(_0x285791=this[_0x47ca('0xea')][_0x47ca('0x28')][_0x47ca('0xa7')],_0x239cfc=!0x1);_0x4595dc<_0x285791;)_0x3ec53a[_0x47ca('0x7e')](this['repository']['getRevision'](_0x4595dc)),_0x4595dc++;return _0x239cfc&&_0x3ec53a['push'](this[_0x47ca('0xea')][_0x47ca('0x80')](_0x4595dc)),_0x3ec53a;}[_0x47ca('0xa9')](_0x2f0963,_0x26828d,_0x454053,_0x2b6050){const _0x5f132a=this[_0x47ca('0xfb')][_0x47ca('0x6e')][_0x47ca('0x3c')];let _0x1b0053=_0x26828d;for(;_0x2f0963[_0x1b0053]&&_0x2f0963[_0x1b0053][_0x47ca('0x25')];)_0x1b0053++;let _0x447afa=_0x2b6050;for(;_0x454053[_0x447afa]&&_0x454053[_0x447afa]['isRemoved'];)_0x447afa++;_0x1906a5(_0x2f0963,_0x26828d,_0x1b0053),_0x1906a5(_0x454053,_0x2b6050,_0x447afa);const _0x50fbef=_0x454053[_0x47ca('0xd')](_0x2b6050,_0x447afa)['concat'](_0x2f0963[_0x47ca('0xd')](_0x26828d,_0x1b0053));return _0x50fbef[_0x47ca('0x39')]((_0x46e5bb,_0x4a1491)=>_0x46e5bb[_0x47ca('0xca')]!=_0x4a1491[_0x47ca('0xca')]?_0x46e5bb[_0x47ca('0xca')]-_0x4a1491[_0x47ca('0xca')]:_0x46e5bb[_0x47ca('0xb2')]!=_0x4a1491[_0x47ca('0xb2')]?_0x46e5bb[_0x47ca('0xb2')]-_0x4a1491['level']:_0x46e5bb[_0x47ca('0xdc')]!=_0x4a1491['distance']?_0x4a1491[_0x47ca('0xdc')]-_0x46e5bb[_0x47ca('0xdc')]:!!_0x46e5bb['isAdded']!=!!_0x4a1491['isAdded']?-0x1==_0x46e5bb[_0x47ca('0xca')]||0x0==_0x46e5bb['side']?_0x46e5bb[_0x47ca('0x25')]?-0x1:0x1:_0x46e5bb[_0x47ca('0x25')]?0x1:-0x1:_0x46e5bb['index']-_0x4a1491[_0x47ca('0x23')]),{'commonTape':_0x50fbef,'iEnd':_0x1b0053,'jEnd':_0x447afa};function _0x1906a5(_0x38eacb,_0x269c73,_0x179a6d){let _0x348121=-0x1,_0x4dbdbe=Number[_0x47ca('0x75')],_0x402d31=!0x0;for(let _0x10fd06=_0x269c73;_0x10fd06<_0x179a6d;_0x10fd06++)if(_0x5f132a[_0x47ca('0xe2')](_0x38eacb[_0x10fd06]['item'])||(_0x402d31=!0x1),_0x38eacb[_0x10fd06][_0x47ca('0xf6')][_0x47ca('0x114')]<_0x269c73&&(_0x348121=_0x10fd06),_0x38eacb[_0x10fd06][_0x47ca('0xf6')][_0x47ca('0xdf')]>=_0x179a6d){_0x4dbdbe=_0x10fd06;break;}_0x402d31&&(_0x348121=_0x179a6d-0x1);for(let _0x559775=_0x269c73;_0x559775<_0x179a6d;_0x559775++)_0x38eacb[_0x559775][_0x47ca('0xca')]=_0x559775<=_0x348121?-0x1:_0x559775<_0x4dbdbe?0x0:0x1,_0x38eacb[_0x559775][_0x47ca('0x23')]=_0x559775;let _0x4808f3=0x0;for(let _0x356205=_0x269c73;_0x356205<=_0x348121;_0x356205++)0x0==_0x38eacb[_0x356205][_0x47ca('0xdc')]?_0x38eacb[_0x356205][_0x47ca('0xb2')]=_0x4808f3:(_0x4808f3++,_0x38eacb[_0x356205][_0x47ca('0xb2')]=_0x4808f3,_0x4808f3++);for(let _0x557482=_0x269c73;_0x557482<_0x179a6d;_0x557482++)0x0==_0x38eacb[_0x557482][_0x47ca('0xca')]&&(_0x38eacb[_0x557482]['level']=_0x4808f3);_0x4808f3=0x0;for(let _0x18150d=_0x179a6d-0x1;_0x18150d>=_0x4dbdbe;_0x18150d--)0x0==_0x38eacb[_0x18150d][_0x47ca('0xdc')]?_0x38eacb[_0x18150d][_0x47ca('0xb2')]=_0x4808f3:(_0x4808f3--,_0x38eacb[_0x18150d][_0x47ca('0xb2')]=_0x4808f3,_0x4808f3--);}}[_0x47ca('0x16')](_0x46f506){const _0x4689f9=new Map(),_0x5d8e56=this[_0x47ca('0xfb')]['model'][_0x47ca('0x3c')];for(let _0x3dbd79=0x1;_0x3dbd79<_0x46f506['length'];_0x3dbd79++){let _0x2de30b,_0x561e4e,_0x396fa2;const _0x347a64=_0x46f506[_0x3dbd79],_0x3469a8=_0x46f506[_0x3dbd79-0x1];if(_0x47ca('0x96')==_0x347a64[_0x47ca('0x18')])continue;if(_0x347a64['type']!=_0x3469a8[_0x47ca('0x18')])continue;if(!_0x5d8e56[_0x47ca('0xd0')](_0x3469a8[_0x47ca('0xf6')])||_0x5d8e56['isLimit'](_0x3469a8['item']))continue;if(!_0x5d8e56[_0x47ca('0xd0')](_0x347a64['item'])||_0x5d8e56[_0x47ca('0xa4')](_0x347a64[_0x47ca('0xf6')]))continue;if((_0x46f506[_0x3dbd79][_0x47ca('0x25')]||_0x46f506[_0x3dbd79][_0x47ca('0x22')])&&_0x46f506[_0x3dbd79-0x1]['isRemoved'])_0x2de30b=_0x46f506[_0x3dbd79],_0x561e4e=_0x46f506[_0x3dbd79-0x1],_0x396fa2=_0x3dbd79-0x1;else{if(!_0x46f506[_0x3dbd79][_0x47ca('0x10c')]||!_0x46f506[_0x3dbd79-0x1]['isAdded']&&!_0x46f506[_0x3dbd79-0x1][_0x47ca('0x22')])continue;_0x2de30b=_0x46f506[_0x3dbd79-0x1],_0x561e4e=_0x46f506[_0x3dbd79],_0x396fa2=_0x3dbd79;}const _0x57cd1e=_0x2de30b[_0x47ca('0xb2')]==_0x561e4e[_0x47ca('0xb2')],_0x1a83b3=Math['abs'](_0x2de30b[_0x47ca('0xb2')])<Math[_0x47ca('0xbe')](_0x561e4e['level'])&&0x0==_0x561e4e[_0x47ca('0xdc')];(_0x57cd1e||_0x1a83b3)&&(_0x4689f9['set'](_0x561e4e['id'],_0x2de30b['id']),_0x46f506['splice'](_0x396fa2,0x1),_0x3dbd79--,_0x2de30b[_0x47ca('0x25')]=!0x1);}for(let _0x27454f=0x0;_0x27454f<_0x46f506['length'];_0x27454f++)_0x4689f9[_0x47ca('0xc3')](_0x46f506[_0x27454f][_0x47ca('0x17')])&&(_0x46f506[_0x27454f]['pairId']=_0x4689f9[_0x47ca('0x5')](_0x46f506[_0x27454f][_0x47ca('0x17')]));}['_removeMissingPairs'](_0x381d63){const _0x52a55e=new Set(_0x381d63[_0x47ca('0xe1')](_0x29866a=>_0x29866a['id']));for(let _0x2540e1=0x0;_0x2540e1<_0x381d63[_0x47ca('0xa7')];_0x2540e1++)_0x52a55e[_0x47ca('0xc3')](_0x381d63[_0x2540e1][_0x47ca('0x17')])||0x0==_0x381d63[_0x2540e1][_0x47ca('0xdc')]||(_0x381d63[_0x2540e1][_0x47ca('0xfc')]=!0x0);return _0x381d63[_0x47ca('0x9c')](_0x3ec01c=>!_0x3ec01c[_0x47ca('0xfc')]);}[_0x47ca('0xcf')](_0x4a4d1c){const _0x312514=new Set();for(let _0x45de44=0x0;_0x45de44<_0x4a4d1c[_0x47ca('0xa7')];_0x45de44++){if(_0x312514[_0x47ca('0xc3')](_0x4a4d1c[_0x45de44]['id'])&&_0x4a4d1c[_0x45de44]['isRemoved']&&(_0x4a4d1c[_0x45de44][_0x47ca('0xfc')]=!0x0),_0x4a4d1c[_0x45de44]['isIncorrect'])continue;if(0x0==_0x4a4d1c[_0x45de44][_0x47ca('0xdc')])continue;if(_0x47ca('0x34')!=_0x4a4d1c[_0x45de44][_0x47ca('0x18')])continue;if(null==_0x4a4d1c[_0x45de44][_0x47ca('0x17')])continue;let _0x5c8efb=_0x45de44+0x1,_0x5d8af0=0x0;for(;_0x4a4d1c[_0x5c8efb]['id']!=_0x4a4d1c[_0x45de44]['pairId'];)_0x47ca('0x34')==_0x4a4d1c[_0x5c8efb][_0x47ca('0x18')]?_0x5d8af0++:_0x47ca('0xb5')==_0x4a4d1c[_0x5c8efb][_0x47ca('0x18')]&&_0x5d8af0--,_0x5c8efb++;if(0x0!=_0x5d8af0){if(_0x4a4d1c[_0x45de44][_0x47ca('0x10c')])_0x4a4d1c[_0x45de44]['isIncorrect']=!0x0;else for(;_0x5c8efb!=_0x45de44;)_0x4a4d1c[_0x5c8efb][_0x47ca('0x10c')]&&0x0!=_0x4a4d1c[_0x5c8efb][_0x47ca('0xdc')]&&(_0x4a4d1c[_0x5c8efb][_0x47ca('0xfc')]=!0x0,_0x312514['add'](_0x4a4d1c[_0x5c8efb][_0x47ca('0x17')])),_0x5c8efb--;}}return _0x4a4d1c['filter'](_0x58e19d=>!_0x58e19d['isIncorrect']);}[_0x47ca('0x89')](_0xf58455){const _0x369591=this[_0x47ca('0xfb')][_0x47ca('0x6e')]['schema'];for(let _0x3e3dfa=0x0;_0x3e3dfa<_0xf58455['length'];_0x3e3dfa++){if(!(_0xf58455[_0x3e3dfa][_0x47ca('0x25')]||_0xf58455[_0x3e3dfa][_0x47ca('0x22')]||_0xf58455[_0x3e3dfa][_0x47ca('0x10c')]||_0xf58455[_0x3e3dfa][_0x47ca('0x20')]))continue;if(0x0==_0xf58455[_0x3e3dfa][_0x47ca('0xdc')])continue;const _0x35589f=_0xf58455[_0x3e3dfa][_0x47ca('0xf6')];_0x369591[_0x47ca('0xd0')](_0x35589f)||_0x369591[_0x47ca('0xa4')](_0x35589f)||(_0xf58455[_0x3e3dfa][_0x47ca('0x25')]&&delete _0xf58455[_0x3e3dfa]['isAdded'],_0xf58455[_0x3e3dfa][_0x47ca('0x22')]&&delete _0xf58455[_0x3e3dfa][_0x47ca('0x22')],_0xf58455[_0x3e3dfa][_0x47ca('0x20')]&&delete _0xf58455[_0x3e3dfa][_0x47ca('0x20')],_0xf58455[_0x3e3dfa][_0x47ca('0x10c')]&&(_0xf58455[_0x3e3dfa][_0x47ca('0xfc')]=!0x0));}return _0xf58455[_0x47ca('0x9c')](_0x192bca=>!_0x192bca[_0x47ca('0xfc')]);}[_0x47ca('0x68')](_0x5d272c,_0x551952,_0x54f065){const _0x5856e3=new _0x249b21(),_0x20abbb=[],_0x23118b=new Map(),_0x28c7f7=this[_0x47ca('0xfb')][_0x47ca('0x6e')],_0x31356d=_0x28c7f7[_0x47ca('0x3c')],_0x383924=[_0x5856e3],_0xa93c7b={},_0x4fdd42={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x52fdea=null;const _0x4e2aaa=[0x0];for(let _0x4d00a0=0x0;_0x4d00a0<_0x5d272c[_0x47ca('0xa7')];_0x4d00a0++){let _0x46a24e,_0x3436e7;if(_0x47ca('0x34')===_0x5d272c[_0x4d00a0][_0x47ca('0x18')]){_0x46a24e=_0x28c7f7[_0x47ca('0x1a')](_0x5856e3,_0x4e2aaa);const _0x168ed0=new _0x4a66fb(_0x5d272c[_0x4d00a0][_0x47ca('0xf6')][_0x47ca('0x65')],_0x5d272c[_0x4d00a0][_0x47ca('0xf6')][_0x47ca('0xd9')]());_0x383924[0x0]['_appendChild'](_0x168ed0),_0x4e2aaa[_0x47ca('0x7e')](0x0),_0x383924[_0x47ca('0xfe')](_0x168ed0),_0x3436e7=_0x28c7f7[_0x47ca('0x1a')](_0x5856e3,_0x4e2aaa),_0x52fdea=null;}else{if('elementEnd'===_0x5d272c[_0x4d00a0][_0x47ca('0x18')])_0x383924[_0x47ca('0x92')](),_0x46a24e=_0x28c7f7[_0x47ca('0x1a')](_0x5856e3,_0x4e2aaa),_0x4e2aaa[_0x47ca('0xc5')](),_0x4e2aaa[_0x4e2aaa[_0x47ca('0xa7')]-0x1]++,_0x3436e7=_0x28c7f7['createPositionFromPath'](_0x5856e3,_0x4e2aaa),_0x52fdea=null;else{if(_0x46a24e=_0x28c7f7[_0x47ca('0x1a')](_0x5856e3,_0x4e2aaa),_0x52fdea&&_0x3f3748(_0x52fdea,_0x5d272c[_0x4d00a0][_0x47ca('0xf6')]))_0x52fdea['_data']+=_0x5d272c[_0x4d00a0]['item'][_0x47ca('0x10d')];else{const _0x8fc358=new _0x24f32e(_0x5d272c[_0x4d00a0][_0x47ca('0xf6')][_0x47ca('0x10d')],_0x5d272c[_0x4d00a0][_0x47ca('0xf6')][_0x47ca('0xd9')]());_0x383924[0x0][_0x47ca('0x82')](_0x8fc358),_0x52fdea=_0x8fc358;}_0x4e2aaa[_0x4e2aaa['length']-0x1]+=_0x5d272c[_0x4d00a0][_0x47ca('0xf6')]['offsetSize'],_0x3436e7=_0x28c7f7[_0x47ca('0x1a')](_0x5856e3,_0x4e2aaa);}}for(const _0x2187e4 of _0x5d272c[_0x4d00a0][_0x47ca('0xd4')])_0x23118b[_0x47ca('0x125')](_0x2187e4,{'start':_0x46a24e,'end':null});_0x3a0ff8(_0x47ca('0x20'),_0x4d00a0,_0x46a24e,_0x3436e7),_0x3a0ff8(_0x47ca('0x22'),_0x4d00a0,_0x46a24e,_0x3436e7),_0x3a0ff8('isRemoved',_0x4d00a0,_0x46a24e,_0x3436e7),_0x3a0ff8('isAdded',_0x4d00a0,_0x46a24e,_0x3436e7);for(const _0x39d761 of _0x5d272c[_0x4d00a0][_0x47ca('0x4a')]){_0x23118b['get'](_0x39d761)[_0x47ca('0x29')]=_0x3436e7;}}for(const [_0x4c95c9,_0x1d1581]of _0x23118b){const _0x4cc09f=this[_0x47ca('0xfb')][_0x47ca('0x6e')][_0x47ca('0x24')](_0x1d1581[_0x47ca('0x2a')],_0x1d1581[_0x47ca('0x29')]);_0x5856e3[_0x47ca('0x32')]['set'](_0x4c95c9,_0x4cc09f);}return _0x20abbb[_0x47ca('0x39')]((_0x30355b,_0x5ba7d2)=>{const _0x4a47aa=_0x5856e3[_0x47ca('0x32')]['get'](_0x47ca('0xb4')+_0x30355b['id']),_0x29dc4c=_0x5856e3['markers']['get'](_0x47ca('0xb4')+_0x5ba7d2['id']);return _0x4a47aa[_0x47ca('0x2a')]['isBefore'](_0x29dc4c[_0x47ca('0x2a')])?-0x1:_0x4a47aa[_0x47ca('0x2a')]['isAfter'](_0x29dc4c['start'])?0x1:_0x4a47aa[_0x47ca('0x29')][_0x47ca('0x11a')](_0x29dc4c[_0x47ca('0x29')])?-0x1:_0x4a47aa[_0x47ca('0x29')]['isAfter'](_0x29dc4c[_0x47ca('0x29')])?0x1:_0x47ca('0x5d')===_0x30355b[_0x47ca('0x18')]?-0x1:0x1;}),{'root':_0x5856e3,'changes':_0x20abbb};function _0x3a0ff8(_0x31c757,_0x1a4260,_0x4e521f,_0x527a2e){const _0x43f9ab=!!_0x5d272c[_0x1a4260][_0x31c757],_0x48afd6=_0x43f9ab?_0x5d272c[_0x1a4260][_0x31c757][_0x47ca('0x8')]:null,_0x224799=_0x1a4260===_0x5d272c[_0x47ca('0xa7')]-0x1,_0x4bfa5a=_0x4fdd42[_0x31c757][0x0],_0x560e78=_0x31356d[_0x47ca('0x79')](_0x5d272c[_0x1a4260]['item']);!_0xa93c7b[_0x31c757]&&_0x43f9ab?_0xa93c7b[_0x31c757]={'start':_0x4e521f,'tapeItem':_0x5d272c[_0x1a4260],'userId':_0x48afd6,'type':_0x31c757}:_0xa93c7b[_0x31c757]&&!_0x43f9ab?(_0xa93c7b[_0x31c757][_0x47ca('0x29')]=_0x4e521f,_0x22dc24(_0xa93c7b[_0x31c757]),_0xa93c7b[_0x31c757]=null):_0xa93c7b[_0x31c757]&&_0x43f9ab&&_0xa93c7b[_0x31c757][_0x47ca('0x8')]!==_0x48afd6&&(_0xa93c7b[_0x31c757]['end']=_0x4e521f,_0x4bfa5a&&_0x4bfa5a[_0x47ca('0x8')]===_0xa93c7b[_0x31c757]['userId']||_0x22dc24(_0xa93c7b[_0x31c757]),_0xa93c7b[_0x31c757]={'start':_0x4e521f,'tapeItem':_0x5d272c[_0x1a4260],'userId':_0x48afd6,'type':_0x31c757}),_0xa93c7b[_0x31c757]&&_0x560e78&&('elementStart'!==_0x5d272c[_0x1a4260]['type']||_0x4bfa5a&&_0x4bfa5a[_0x47ca('0x8')]===_0x48afd6||_0x4fdd42[_0x31c757][_0x47ca('0xfe')]({'userId':_0x48afd6,'object':_0x5d272c[_0x1a4260][_0x47ca('0xf6')],'change':_0xa93c7b[_0x31c757]}),_0x47ca('0xb5')===_0x5d272c[_0x1a4260][_0x47ca('0x18')]&&_0x4bfa5a&&_0x4bfa5a['object']===_0x5d272c[_0x1a4260][_0x47ca('0xf6')]&&(_0x4fdd42[_0x31c757][_0x47ca('0x92')](),_0xa93c7b[_0x31c757]=_0x4bfa5a['change'])),_0xa93c7b[_0x31c757]&&_0x224799&&(_0xa93c7b[_0x31c757]['end']=_0x527a2e,_0x22dc24(_0xa93c7b[_0x31c757]),_0xa93c7b[_0x31c757]=null);}function _0x22dc24({start:_0x1f5152,end:_0x10dcdd,tapeItem:_0x1b6038,userId:_0x2b0db8,type:_0x521419}){const _0x3bf9b7=_0x1b6038['item'],_0x288a4d=_0x28c7f7[_0x47ca('0x3c')][_0x47ca('0xd0')](_0x3bf9b7)&&!_0x28c7f7[_0x47ca('0x3c')][_0x47ca('0xa4')](_0x3bf9b7),_0x22787d=_0x1f5152[_0x47ca('0xe4')]==_0x10dcdd[_0x47ca('0x127')]&&_0x10dcdd[_0x47ca('0x45')];if(_0x288a4d&&_0x22787d)return;const _0x296380=_0x28c7f7[_0x47ca('0x24')](_0x1f5152,_0x10dcdd),_0x4564c6=_0x551952['get'](_0x2b0db8),_0x321d72=new _0xeb78f6({'author':_0x4564c6,'type':_0x47ca('0x25')==_0x521419||_0x47ca('0x22')==_0x521419?_0x47ca('0x5d'):_0x47ca('0x93'),'data':{'isSuggestion':'isAddSuggestion'==_0x521419||_0x47ca('0x20')==_0x521419},'createdAt':new Date(),'rootName':_0x54f065});_0x20abbb[_0x47ca('0x7e')](_0x321d72),_0x5856e3[_0x47ca('0x32')][_0x47ca('0x125')](_0x47ca('0xb4')+_0x321d72['id'],_0x296380);}function _0x3f3748(_0x37f9d7,_0x2e149f){const _0x1e6ac5=_0x37f9d7[_0x47ca('0xd9')](),_0x3a5d0e=_0x2e149f['getAttributes']();for(const _0x3cfaa9 of _0x1e6ac5){if(_0x3cfaa9[0x1]!==_0x2e149f[_0x47ca('0x117')](_0x3cfaa9[0x0]))return!0x1;_0x3a5d0e[_0x47ca('0x6c')]();}return _0x3a5d0e[_0x47ca('0x6c')]()['done'];}}[_0x47ca('0xd8')](){this['editor'][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))[_0x47ca('0xb1')]({'view':_0x47ca('0x69')}),this[_0x47ca('0xfb')][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xeb'))[_0x47ca('0x121')]({'model':_0x47ca('0x69'),'view':_0x2faea5=>{const _0x257ffd=_0x2faea5[_0x47ca('0xf0')]['split'](':')[0x1],_0x4b6b43=this[_0x47ca('0xed')](_0x257ffd);if(!_0x4b6b43)return null;const _0x446a12=_0x47ca('0x5d')==_0x4b6b43[_0x47ca('0x18')]?_0x47ca('0xce'):'deletion',_0x515078=[_0x47ca('0xa2'),_0x47ca('0x4f')+_0x446a12];return _0x4b6b43[_0x47ca('0x10d')][_0x47ca('0xb')]&&_0x515078[_0x47ca('0x7e')](_0x47ca('0x4f')+_0x446a12+'-new'),this[_0x47ca('0x116')]==_0x4b6b43&&_0x515078[_0x47ca('0x7e')](_0x47ca('0x2e')),{'classes':_0x515078,'attributes':{'data-change-id':_0x257ffd}};}}),this[_0x47ca('0xfb')][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))[_0x47ca('0x5d')](_0x26dc27=>{_0x26dc27['on'](_0x47ca('0x43'),(_0x435dd9,_0x9370f7,_0x523f58)=>{const _0x1c99ca=_0x9370f7[_0x47ca('0xf2')]['getChild'](0x0);if(!_0x1c99ca||!_0x1c99ca['is'](_0x47ca('0x4'),_0x47ca('0x9e')))return;if(!_0x523f58[_0x47ca('0x56')][_0x47ca('0x9b')](_0x1c99ca,{'attributes':[_0x47ca('0x3a'),'vid_end']}))return;const _0x53b9d9=_0x9370f7['modelRange'][_0x47ca('0x2a')][_0x47ca('0xe4')];_0x523f58[_0x47ca('0x8c')]['setAttribute'](_0x47ca('0x3a'),_0x1c99ca[_0x47ca('0x117')](_0x47ca('0x3a')),_0x53b9d9),_0x523f58[_0x47ca('0x8c')][_0x47ca('0xde')](_0x47ca('0x102'),_0x1c99ca[_0x47ca('0x117')](_0x47ca('0x102')),_0x53b9d9);},{'priority':'low'});}),this['editor'][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))[_0x47ca('0x5d')](_0x47631b=>{_0x47631b['on'](_0x47ca('0x4'),(_0x45f5ef,_0xda0f9e,_0x22cf11)=>{if(!_0x22cf11['consumable'][_0x47ca('0x9b')](_0xda0f9e[_0x47ca('0xf2')],{'attributes':[_0x47ca('0x3a'),_0x47ca('0x102')]}))return;if(_0xda0f9e['modelRange']['isCollapsed'])return;const _0x288e79=_0xda0f9e[_0x47ca('0xb3')][_0x47ca('0x2a')][_0x47ca('0xe4')];_0x288e79[_0x47ca('0xb7')]('vid_start')||_0x288e79['hasAttribute']('vid')||(_0x22cf11[_0x47ca('0x8c')][_0x47ca('0xde')](_0x47ca('0x3a'),_0xda0f9e[_0x47ca('0xf2')][_0x47ca('0x117')](_0x47ca('0x3a')),_0x288e79),_0x22cf11[_0x47ca('0x8c')][_0x47ca('0xde')](_0x47ca('0x102'),_0xda0f9e[_0x47ca('0xf2')][_0x47ca('0x117')](_0x47ca('0x102')),_0x288e79));},{'priority':_0x47ca('0x84')});}),this['editor'][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))[_0x47ca('0xbf')]({'view':{'name':_0x47ca('0x73'),'attributes':{'vid':!0x0}},'model':{'key':_0x47ca('0x72'),'value':_0x4b7f42=>_0x4b7f42[_0x47ca('0x117')](_0x47ca('0x72'))}}),this[_0x47ca('0xfb')]['model']['schema']['on'](_0x47ca('0xf7'),(_0x4f06f7,[,_0x3e96e4])=>{[_0x47ca('0x3a'),'vid_end',_0x47ca('0x72')]['includes'](_0x3e96e4)&&(_0x4f06f7[_0x47ca('0xab')]=!0x0,_0x4f06f7[_0x47ca('0x41')]());},{'priority':_0x47ca('0x49')}),this[_0x47ca('0xfb')][_0x47ca('0x105')]['for'](_0x47ca('0x83'))[_0x47ca('0x5d')](_0x8c1f95=>{_0x8c1f95['on'](_0x47ca('0xda'),(_0x54eccd,_0x407e68,_0x5c6e58)=>{if('\x20'!=_0x407e68[_0x47ca('0xf6')][_0x47ca('0x10d')]||_0x407e68[_0x47ca('0xf6')][_0x47ca('0x127')][_0x47ca('0x108')]>0x1)return;if(!_0x5c6e58[_0x47ca('0x56')][_0x47ca('0x9b')](_0x407e68['item'],_0x54eccd[_0x47ca('0x65')]))return;const _0x84a71c=_0x5c6e58['writer'],_0x1b87f6=_0x5c6e58[_0x47ca('0x61')][_0x47ca('0x12')](_0x407e68['range']);_0x84a71c[_0x47ca('0x0')](_0x1b87f6,_0x84a71c[_0x47ca('0xbb')](_0x47ca('0x73')));});}),this['editor'][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0x83'))['markerToData']({'model':_0x47ca('0x69')}),this[_0x47ca('0xfb')][_0x47ca('0xe9')][_0x47ca('0x10')]['on'](_0x47ca('0x70'),function(_0x151c54){const _0x23959b=_0x151c54[_0x47ca('0x8e')][_0x47ca('0x5')](_0x47ca('0xe'));return(_0x358360,_0x334332,_0x16ae9e)=>{const _0x44c088=_0x334332[_0x47ca('0xf0')][_0x47ca('0x38')](':')[0x1],_0x18fa3b=_0x23959b['_getChangeFromId'](_0x44c088);if(!_0x18fa3b)return null;const _0x47eb30=_0x47ca('0x5d')==_0x18fa3b['type']?_0x47ca('0x38'):_0x47ca('0x123');if(!_0x16ae9e[_0x47ca('0x56')]['test'](_0x334332['markerRange'],_0x358360[_0x47ca('0x65')]))return;const _0x2a842a=_0x334332[_0x47ca('0x86')][_0x47ca('0xa5')](),_0x44c1aa=_0x334332[_0x47ca('0x86')][_0x47ca('0x2a')],_0x19f525=_0x151c54[_0x47ca('0x6e')]['schema'];let _0x454702=null,_0x402569=null,_0xaf54e0=!0x1,_0x1d8799=!0x1;for(const _0xab68d3 of _0x2a842a){const _0x53b024=_0xab68d3[_0x47ca('0xf6')];_0xaf54e0=_0xaf54e0||_0x19f525['isContent'](_0x53b024);const _0x1adc85=_0x16ae9e[_0x47ca('0x61')]['toViewElement'](_0x53b024);if(_0x1adc85&&_0x1adc85[_0x47ca('0xd2')](_0x47ca('0xf')))return;_0x47ca('0xb5')==_0xab68d3[_0x47ca('0x18')]&&(_0x19f525[_0x47ca('0xd0')](_0x53b024)&&!_0x19f525[_0x47ca('0xa4')](_0x53b024)&&(_0x53b024[_0x47ca('0xd3')]||_0x44c1aa['isAtEnd']?_0x454702&&_0x454702[_0x47ca('0x127')]==_0x53b024||(_0x454702=_0x53b024,_0xa709d1(_0xab68d3[_0x47ca('0xe6')]),_0x1d8799=!0x0):_0x402569=_0x402569||_0xab68d3['previousPosition']));}function _0xa709d1(_0x1131c8){const _0x38e26d=_0x16ae9e[_0x47ca('0x8c')]['createUIElement']('span',{'class':_0x47ca('0x4f')+_0x47eb30}),_0x25a235=_0x16ae9e[_0x47ca('0x61')][_0x47ca('0x6')](_0x1131c8);_0x18fa3b[_0x47ca('0x10d')][_0x47ca('0xb')]&&_0x16ae9e['writer'][_0x47ca('0x19')]('ck-suggestion-marker-'+_0x47eb30+_0x47ca('0xc0'),_0x38e26d),_0x23959b['activeChange']==_0x18fa3b&&_0x16ae9e[_0x47ca('0x8c')][_0x47ca('0x19')](_0x47ca('0x2e'),_0x38e26d),_0x16ae9e[_0x47ca('0x8c')]['insert'](_0x25a235,_0x38e26d),_0x16ae9e[_0x47ca('0x61')][_0x47ca('0xa1')](_0x38e26d,_0x334332[_0x47ca('0xf0')]);}_0xaf54e0||_0x1d8799||!_0x402569||_0xa709d1(_0x402569);};}(this['editor']),{'priority':_0x47ca('0x8d')}),this['editor'][_0x47ca('0xe9')][_0x47ca('0x10')]['on'](_0x47ca('0x8b'),(_0x34e4ff,_0x2d090,_0x1b11ef)=>{const _0x38ec9a=_0x1b11ef[_0x47ca('0x61')]['markerNameToElements'](_0x2d090[_0x47ca('0xf0')]);if(_0x38ec9a)for(const _0x38e47d of _0x38ec9a)(_0x38e47d['hasClass'](_0x47ca('0xdd'))||_0x38e47d[_0x47ca('0xc4')](_0x47ca('0xac')))&&(_0x1b11ef[_0x47ca('0x61')][_0x47ca('0x120')](_0x38e47d,_0x2d090['markerName']),_0x1b11ef[_0x47ca('0x8c')][_0x47ca('0x93')](_0x38e47d));},{'priority':_0x47ca('0x8d')}),this[_0x47ca('0xfb')][_0x47ca('0xe9')][_0x47ca('0x10')]['on']('addMarker:revision',(_0x528442,_0x25b122,_0x528b24)=>{const _0x4db9d2=_0x25b122[_0x47ca('0xf0')][_0x47ca('0x38')](':')[0x1],_0x51810d=this[_0x47ca('0xed')](_0x4db9d2);if(!_0x51810d)return null;const _0x1a195a='add'==_0x51810d['type']?'split':_0x47ca('0x123');if(_0x528b24[_0x47ca('0x56')][_0x47ca('0xb8')](_0x25b122[_0x47ca('0x86')],_0x528442[_0x47ca('0x65')]))for(const _0x56d0c4 of _0x25b122['markerRange'][_0x47ca('0x64')]()){if(!_0x56d0c4['is']('element','softBreak'))continue;const _0x1ebc6b=_0x528b24[_0x47ca('0x8c')]['createUIElement'](_0x47ca('0x73'),{'class':'ck-suggestion-marker-'+_0x1a195a}),_0x18e0da=_0x528b24[_0x47ca('0x61')][_0x47ca('0x6')](this['editor'][_0x47ca('0x6e')][_0x47ca('0xf9')](_0x56d0c4));_0x51810d[_0x47ca('0x10d')]['isSuggestion']&&_0x528b24[_0x47ca('0x8c')]['addClass'](_0x47ca('0x4f')+_0x1a195a+_0x47ca('0xc0'),_0x1ebc6b),this[_0x47ca('0x116')]==_0x51810d&&_0x528b24[_0x47ca('0x8c')][_0x47ca('0x19')]('ck-suggestion-marker--active',_0x1ebc6b),_0x528b24['writer'][_0x47ca('0x5c')](_0x18e0da,_0x1ebc6b),_0x528b24['mapper'][_0x47ca('0xa1')](_0x1ebc6b,_0x25b122[_0x47ca('0xf0')]);}},{'priority':_0x47ca('0x8d')}),this[_0x47ca('0xfb')]['model'][_0x47ca('0x107')]['on'](_0x47ca('0xba'),()=>{this['editor'][_0x47ca('0xe9')][_0x47ca('0x99')][_0x47ca('0xba')](_0x36d79c=>{for(const _0x3383bd of this[_0x47ca('0xfb')][_0x47ca('0x6e')]['document'][_0x47ca('0xd5')]()){const _0x2068d0=this['editor'][_0x47ca('0x6e')][_0x47ca('0x107')]['getRoot'](_0x3383bd),_0x1b646d=this['editor'][_0x47ca('0xe9')][_0x47ca('0x99')]['document'][_0x47ca('0x26')](_0x3383bd);if(_0x1b646d){const _0x45c446=_0x2068d0[_0x47ca('0x117')](_0x47ca('0xfd'));if(_0x36d79c[_0x47ca('0xf4')](_0x47ca('0x46'),_0x1b646d),_0x36d79c[_0x47ca('0xc8')](_0x47ca('0x5a'),_0x1b646d),_0x36d79c[_0x47ca('0xc8')](_0x47ca('0x27'),_0x1b646d),_0x36d79c['removeClass']('ck-revision-history-root--active',_0x1b646d),_0x45c446){const _0x1eeeec=this['_getChangeFromId'](_0x45c446);if(!_0x1eeeec)return null;_0x36d79c[_0x47ca('0xde')]('data-change-id',_0x45c446,_0x1b646d),_0x36d79c[_0x47ca('0x19')](_0x47ca('0x1')+_0x1eeeec[_0x47ca('0x18')],_0x1b646d),this[_0x47ca('0x116')]==_0x1eeeec&&_0x36d79c[_0x47ca('0x19')](_0x47ca('0x55'),_0x1b646d);}}}});}),this[_0x47ca('0xfb')][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))['dataToMarker']({'view':'comment','model':_0x268d69=>_0x47ca('0x59')+_0x268d69,'converterPriority':_0x47ca('0x49')}),this['editor'][_0x47ca('0x105')][_0x47ca('0x3b')](_0x47ca('0xf1'))['dataToMarker']({'view':_0x47ca('0xff'),'model':_0x5bb99a=>'revision-suggestion:'+_0x5bb99a,'converterPriority':_0x47ca('0x49')}),this['editor'][_0x47ca('0x105')]['for']('dataDowncast')[_0x47ca('0xd7')]({'model':_0x47ca('0x81'),'view':_0x1dd83a=>({'name':_0x47ca('0xa8')+_0x1dd83a,'group':_0x47ca('0x81')}),'converterPriority':_0x47ca('0x49')}),this['editor'][_0x47ca('0x105')]['for'](_0x47ca('0xeb'))[_0x47ca('0x121')]({'model':'revision-suggestion','view':_0x2ea350=>{const _0x8c1e0e=_0x2ea350[_0x47ca('0xf0')][_0x47ca('0x38')](':')[0x1];return _0x47ca('0xce')!=_0x8c1e0e&&_0x47ca('0x76')!=_0x8c1e0e?null:{'classes':[_0x47ca('0x48'),_0x47ca('0x31')+_0x8c1e0e]};}}),this[_0x47ca('0xfb')][_0x47ca('0xe9')][_0x47ca('0x10')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x47ca('0xfb')],'merge'),{'priority':_0x47ca('0x8d')}),this[_0x47ca('0xfb')]['editing'][_0x47ca('0x10')]['on'](_0x47ca('0x4c'),et(this['editor'],_0x47ca('0x38')),{'priority':_0x47ca('0x8d')}),this[_0x47ca('0xfb')]['editing'][_0x47ca('0x10')]['on'](_0x47ca('0xef'),(_0x230213,_0xa7f03a,_0x31e2de)=>{const _0x417f81=_0x31e2de[_0x47ca('0x61')][_0x47ca('0xd6')](_0xa7f03a['markerName']);if(_0x417f81)for(const _0x4a270a of _0x417f81)_0x4a270a['is'](_0x47ca('0xd1'))&&(_0x31e2de['mapper']['unbindElementFromMarkerName'](_0x4a270a,_0xa7f03a['markerName']),_0x31e2de[_0x47ca('0x8c')]['remove'](_0x4a270a));},{'priority':_0x47ca('0x8d')});}[_0x47ca('0xed')](_0x279fd4){return this[_0x47ca('0x58')]['get'](_0x279fd4);}['_getViewForChange'](_0x4b13b6){return this[_0x47ca('0x57')]&&this[_0x47ca('0x57')][_0x47ca('0x2d')](),this[_0x47ca('0x57')]=new _0x4a531f(this[_0x47ca('0xfb')]['locale'],_0x4b13b6),this[_0x47ca('0x57')];}[_0x47ca('0x97')](){this[_0x47ca('0xfb')]['model'][_0x47ca('0x107')]['selection'][_0x47ca('0x10a')](_0x47ca('0x69')),this['on']('change:activeView',(_0x20c371,_0x6159a4,_0x335f49,_0x676087)=>{_0x676087&&this[_0x47ca('0x91')][_0x47ca('0x93')](_0x676087),_0x335f49&&(this[_0x47ca('0x91')]['add']({'view':_0x335f49,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xd232d0=this[_0x47ca('0xfb')][_0x47ca('0xe9')],_0x3ea151=this[_0x47ca('0xed')](_0x335f49[_0x47ca('0x6a')]);let _0x5bdbc0;if(_0x3ea151[_0x47ca('0x10d')][_0x47ca('0xb9')]){const _0x14966c=_0xd232d0[_0x47ca('0x99')][_0x47ca('0x11d')](_0x3ea151[_0x47ca('0x11f')]);_0x5bdbc0=Array[_0x47ca('0x33')](_0x14966c[_0x47ca('0xa3')]());}else{const _0x2b76c7=this[_0x47ca('0xfb')][_0x47ca('0x6e')][_0x47ca('0x32')][_0x47ca('0x5')]('revision:'+_0x335f49['changeId']);_0x5bdbc0=Array[_0x47ca('0x33')](_0xd232d0[_0x47ca('0x61')]['markerNameToElements'](_0x2b76c7['name']))[_0x47ca('0xe1')](_0x36ded5=>_0xd232d0[_0x47ca('0x99')][_0x47ca('0x101')]['mapViewToDom'](_0x36ded5))[_0x47ca('0xe1')](_0x4c2285=>Array[_0x47ca('0x33')](_0x4c2285['getClientRects']()))[_0x47ca('0x5b')]();}if(!this['_activeViewTarget'])return _0x5bdbc0[0x0];return _0x5bdbc0[_0x47ca('0x7d')](_0x296f60=>_0x296f60[_0x47ca('0x1b')]-0x3<=this[_0x47ca('0x1d')]['y']&&_0x296f60[_0x47ca('0xf3')]+0x3>=this[_0x47ca('0x1d')]['y']&&_0x296f60[_0x47ca('0x50')]-0x3<=this[_0x47ca('0x1d')]['x']&&_0x296f60['right']+0x3>=this[_0x47ca('0x1d')]['x'])||_0x5bdbc0[0x0];}}}),this['_balloon'][_0x47ca('0x9')](_0x47ca('0x3')));}),this['on'](_0x47ca('0x11c'),(_0x308523,_0x58a7b4,_0x4e191e,_0x5a403c)=>{this[_0x47ca('0x111')]=_0x4e191e?this[_0x47ca('0x103')](_0x4e191e):null,this[_0x47ca('0xfb')][_0x47ca('0x6e')][_0x47ca('0xba')](()=>{const _0x28b5be=this[_0x47ca('0xfb')]['editing'];_0x5a403c&&(_0x5a403c[_0x47ca('0x10d')][_0x47ca('0xb9')]?_0x28b5be[_0x47ca('0x99')]['change'](_0x4c66b1=>{_0x4c66b1[_0x47ca('0xc8')]('ck-revision-history-root--active',_0x28b5be[_0x47ca('0x99')][_0x47ca('0x107')][_0x47ca('0x26')](_0x5a403c[_0x47ca('0x11f')]));}):_0x28b5be[_0x47ca('0x1e')](_0x47ca('0xb4')+_0x5a403c['id'])),_0x4e191e&&(_0x4e191e[_0x47ca('0x10d')][_0x47ca('0xb9')]?_0x28b5be[_0x47ca('0x99')]['change'](_0x557f61=>{_0x557f61[_0x47ca('0x19')](_0x47ca('0x55'),_0x28b5be[_0x47ca('0x99')][_0x47ca('0x107')][_0x47ca('0x26')](_0x4e191e[_0x47ca('0x11f')]));}):_0x28b5be['reconvertMarker']('revision:'+_0x4e191e['id']));});}),this[_0x47ca('0xf5')](this[_0x47ca('0xfb')]['editing'][_0x47ca('0x99')]['document'],_0x47ca('0x4d'),(_0x2a5dc6,_0x7c4a68)=>{if(this[_0x47ca('0x116')])return;const _0x571eb9=this['_findChangeIdFromDomTarget'](_0x7c4a68['target']),_0x2755ca=this[_0x47ca('0x58')][_0x47ca('0x5')](_0x571eb9);_0x2755ca?(this['_activeViewTarget']={'x':_0x7c4a68[_0x47ca('0x1c')]['x'],'y':_0x7c4a68['domEvent']['y']},this[_0x47ca('0x111')]=this[_0x47ca('0x103')](_0x2755ca)):(this[_0x47ca('0x1d')]=null,this['activeView']=null);}),this[_0x47ca('0xf5')](this[_0x47ca('0xfb')]['editing'][_0x47ca('0x99')][_0x47ca('0x107')],_0x47ca('0x10f'),(_0x179ea2,_0x9e0d19)=>{const _0xdddfb8=this[_0x47ca('0xec')](_0x9e0d19[_0x47ca('0x95')]),_0x34359b=this[_0x47ca('0x58')][_0x47ca('0x5')](_0xdddfb8);_0x34359b?(this[_0x47ca('0x1d')]={'x':_0x9e0d19[_0x47ca('0x1c')]['x'],'y':_0x9e0d19['domEvent']['y']},_0x34359b===this[_0x47ca('0x116')]?this[_0x47ca('0x91')][_0x47ca('0xa')]():this[_0x47ca('0x116')]=_0x34359b):(this[_0x47ca('0x1d')]=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x454abd){do{const _0x1926e3=_0x454abd[_0x47ca('0x117')](_0x47ca('0x46'));if(_0x1926e3)return _0x1926e3;_0x454abd=_0x454abd[_0x47ca('0x127')];}while(_0x454abd);return null;}[_0x47ca('0x42')](){this[_0x47ca('0xfb')][_0x47ca('0x6e')]['change'](_0x5663e5=>{for(const _0x4d3e49 of this['editor']['model'][_0x47ca('0x32')])_0x5663e5[_0x47ca('0x67')](_0x4d3e49);});}}function et(_0x23eed3,_0x1b2105){return(_0x2a8159,_0x391a3a,_0x5cff2b)=>{if(!_0x5cff2b[_0x47ca('0x56')][_0x47ca('0xb8')](_0x391a3a['markerRange'],_0x2a8159[_0x47ca('0x65')]))return;const _0x214a52=_0x391a3a[_0x47ca('0x86')][_0x47ca('0xa5')](),_0x2da401=_0x391a3a[_0x47ca('0x86')][_0x47ca('0x2a')],_0x173468=_0x23eed3[_0x47ca('0x6e')]['schema'];let _0x35ea6f=null,_0x475fb3=null,_0x1e6104=!0x1,_0x29a03b=!0x1;for(const _0x241685 of _0x214a52){const _0xebd171=_0x241685[_0x47ca('0xf6')];_0x1e6104=_0x1e6104||_0x173468[_0x47ca('0x1f')](_0xebd171);const _0x502cbb=_0x5cff2b['mapper']['toViewElement'](_0xebd171);if(_0x502cbb&&_0x502cbb['getCustomProperty'](_0x47ca('0xf')))return;_0x47ca('0xb5')==_0x241685['type']&&(_0x173468[_0x47ca('0xd0')](_0xebd171)&&!_0x173468[_0x47ca('0xa4')](_0xebd171)&&(_0xebd171[_0x47ca('0xd3')]||_0x2da401['isAtEnd']?_0x35ea6f&&_0x35ea6f[_0x47ca('0x127')]==_0xebd171||(_0x35ea6f=_0xebd171,_0x222f5c(_0x241685[_0x47ca('0xe6')]),_0x29a03b=!0x0):_0x475fb3=_0x475fb3||_0x241685[_0x47ca('0xe6')]));}function _0x222f5c(_0x25e47b){const _0x245b2e=_0x5cff2b['mapper'][_0x47ca('0x6')](_0x25e47b),_0x915ad3=_0x5cff2b[_0x47ca('0x8c')][_0x47ca('0x21')](_0x47ca('0x73'),{'class':_0x47ca('0x31')+_0x1b2105});_0x5cff2b['writer']['insert'](_0x245b2e,_0x915ad3),_0x5cff2b[_0x47ca('0x61')]['bindElementToMarker'](_0x915ad3,_0x391a3a[_0x47ca('0xf0')]);}_0x1e6104||_0x29a03b||!_0x475fb3||_0x222f5c(_0x475fb3);};}export class RestoreRevisionCommand extends _0xc82726{constructor(_0x386d75){super(_0x386d75);const _0x2a9b48=_0x386d75[_0x47ca('0x8e')]['get'](d);this[_0x47ca('0x9a')]=!0x1,this[_0x47ca('0xf5')](_0x2a9b48,_0x47ca('0x9d'),()=>this[_0x47ca('0xa6')]()),this[_0x47ca('0xf5')](_0x2a9b48,'change:isEnabled',()=>this[_0x47ca('0xa6')]());}['execute'](){const _0x54cc29=this[_0x47ca('0xfb')],_0xa316d4=_0x54cc29[_0x47ca('0x8e')][_0x47ca('0x5')](d),_0x6f112f=_0xa316d4[_0x47ca('0xc6')]?_0xa316d4['diff'][_0x47ca('0x51')]:null;_0x54cc29[_0x47ca('0x35')][_0x47ca('0x5')](_0x47ca('0x106'))[_0x47ca('0xae')](_0x6f112f);}[_0x47ca('0xa6')](){const {isReady:_0xd67725,isEnabled:_0x7334f1}=this[_0x47ca('0xfb')][_0x47ca('0x8e')][_0x47ca('0x5')](d);this[_0x47ca('0x52')]=_0xd67725&&_0x7334f1;}}export class ShowChangeCommand extends _0xc82726{constructor(_0x44cd15,{direction:_0x25348f}){super(_0x44cd15);const _0x4c6a87=_0x44cd15[_0x47ca('0x8e')][_0x47ca('0x5')](d);this[_0x47ca('0x9a')]=!0x1,this[_0x47ca('0x126')]='forward'===_0x25348f?0x1:-0x1,this['listenTo'](_0x4c6a87,'change:isReady',()=>this[_0x47ca('0xa6')]()),this['listenTo'](_0x4c6a87,_0x47ca('0x4e'),()=>this[_0x47ca('0xa6')]()),this[_0x47ca('0xf5')](_0x4c6a87,_0x47ca('0x11c'),()=>this[_0x47ca('0xa6')]());}[_0x47ca('0xf8')](){const _0x3ea744=this['editor'],_0x3a2857=_0x3ea744['plugins']['get'](d),{isNavigationMode:_0x1a67b3,currentChangeNumber:_0x171dfe}=_0x3a2857;let _0x825699;if(_0x3a2857[_0x47ca('0x116')]=_0x1a67b3?_0x3a2857['diff'][_0x47ca('0x3d')][_0x47ca('0x5')](_0x171dfe+this[_0x47ca('0x126')]):_0x3a2857[_0x47ca('0xcb')][_0x47ca('0x3d')][_0x47ca('0x7')],_0x3a2857[_0x47ca('0x116')][_0x47ca('0x10d')][_0x47ca('0xb9')])_0x825699=_0x3ea744[_0x47ca('0xe9')][_0x47ca('0x99')]['getDomRoot'](_0x3a2857[_0x47ca('0x116')][_0x47ca('0x11f')]);else{const _0x409a15=_0x3ea744['model'][_0x47ca('0x32')][_0x47ca('0x5')](_0x47ca('0xb4')+_0x3a2857[_0x47ca('0x116')]['id']);_0x825699=_0x4f1b98(_0x3ea744[_0x47ca('0xe9')],_0x409a15);}_0x3fdf1f({'target':_0x825699,'viewportOffset':0x28});}[_0x47ca('0xa6')](){const {isNavigationMode:_0x5d5199,currentChangeNumber:_0x4a8072,numberOfChanges:_0x392167,isReady:_0x5d958a,isEnabled:_0x2c987b}=this[_0x47ca('0xfb')][_0x47ca('0x8e')]['get'](d);this[_0x47ca('0x52')]=!!(_0x2c987b&&_0x5d958a&&_0x392167)&&(!_0x5d5199||(0x1===this[_0x47ca('0x126')]?_0x4a8072<_0x392167-0x1:_0x4a8072>0x0));}}
23
+ const _0x8135=['sort','_removeMissingPairs','isLimit','restoreRevision','dataDowncast','start','add','revision','splice','range','vid_end','createPositionBefore','pop','side','markers','authors','roots','startsWith','mapViewToDom','elementStart','backward','hasClass','nodeAfter','abs','reconvertMarker','map','_makeTape','next','getIndex','isRemoved','newRevisionId','isIncorrect','isNavigationMode','WidgetToolbarRepository','getCustomProperty','change','high','isSuggestion','changeId','vid','type','change:isEnabled','upcast','_changeView','mousedown','execute','isContent','_getRevisionsRange','_fixObsoleteTags','createPositionFromPath','_makeModelFromTape','span','getAttribute','isOnRoot','change:activeChange','isRemoveSuggestion','_setDistance','document','isAddSuggestion','collaboration.channelId','text','shift','_changeIdToChange','name','pairId','startIndex','createRevision','_initInteractions','right','model','revisionHistoryLabel','_cleanUp','numberOfChanges','markerNameToElements','rootName','toViewElement','writer','error','addRevisionData','currentChangeNumber','useFillerType','downcastDispatcher','keys','_refreshStartEndIndex','editing','isInline','attributes','concat','comment','markerName','target','_makeModelFromViewString','changes','element:pre','_data','suggestion:','createRangeIn','affectsData','_getViewObj','ck-revision-history-root-','_markMarkers','showStack','_getChangeFromId','nextSibling','markerRange','parse','getRoot','from','change:numberOfChanges','suggestion','updatePosition','_step','_removeRevisionMarkers','config','diff','elementToAttribute','then','markerToData','pluginName','commands','enqueueChange','ck-suggestion-marker-','_findChangeIdFromDomTarget','for','test','consume','_markInsertions','createUIElement','data-revision-','ck-editor__editable__overlay','_activeViewTarget','removeMarker:revision','vid_start','unshift','unbindElementFromMarkerName','end','editor','removeClass','getRevisionData','left','offsetSize','push','conversion','revisionHistory','change:activeView','markersStart','showNextChange','get','remove','attachChange','getRevision','detachRoot','repository','ck-revision-history-root-add','revision-comment:','nextPosition','markersEnd','_setChanges','viewItem','_cleanMarkers','userId','mapper','uiElement','toViewPosition','string','activeView','attributesBefore','adapter','checkAttribute','addHighlight','view','RevisionViewer','_balloon','-new','change:isReady','isAtStart','object','isAfter','parent','revision-suggestion','_removeUnsupportedChanges','set','delete','getRootNames','_processTape','processor','default','_markMismatchedRemovedTags','dataToMarker','forEach','getAttributes','element','_update','loadRevisionData','bindElementToMarker','_getViewForChange','showPreviousChange','locale','ck-revision-history-root--active','isBefore','ck-suggestion-marker-split','mouseover','deletions','hasAttribute','includes','length','deletion','addMarker:revision-suggestion:insertion','_markSuggestions','highest','all','level','endIndex','_setConversion','clear','distance','insertions','isBlock','item','isEnabled','consumable','schema','isAttached','requires','findIndex','marked','getClientRects','setAttribute','indexOf','softBreak','revisionHistoryAttachChange','diffData','addMarker:revision','resolve','activeChange','merge','filter','_appendChild','toData','data-change-id','has','insertion','attributesAfter','index','split','getItems','getDomRoot','isAtEnd','maxOffset','removeMarker','data','forceDisabled','domEvent','stop','addClass','ck-suggestion-marker-merge','listenTo','_getDiff','revision-end','getWalker','editingDowncast','_sortAndFilterDiffChanges','previousPosition','selection','insert','ck-suggestion-preview-marker-','plugins','ck-suggestion-preview-marker','getRevisionRootsAttributes','compare','isEqual','slice','createRange','restoreRevisionCallback','isReady','ck-suggestion-marker--active','isAdded','forward','_threeWayMerge','revision:','low','bind','refresh','getChild','revision-start','top','modelRange','find','_joinTapes','elementEnd'];(function(_0x254c27,_0x813510){const _0x5859a4=function(_0x1c3a9e){while(--_0x1c3a9e){_0x254c27['push'](_0x254c27['shift']());}};_0x5859a4(++_0x813510);}(_0x8135,0x100));const _0x5859=function(_0x254c27,_0x813510){_0x254c27=_0x254c27-0x0;let _0x5859a4=_0x8135[_0x254c27];return _0x5859a4;};import{Plugin as _0x193c24,Command as _0x4034ce}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5cbda3}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1efa1b}from'ckeditor5/src/ui';import{DocumentFragment as _0x5ae4b3,Element as _0x1c5b79,Text as _0xd2c2f,ViewDocumentFragment as _0x5e5cb4,ViewText as _0x59ce10,ViewElement as _0x2f41ac,ViewContainerElement as _0xb4abbf,ViewAttributeElement as _0x2a3e28,ViewEmptyElement as _0xda6fa2,ViewRawElement as _0x5e8a04,ViewUIElement as _0x3aa07c}from'ckeditor5/src/engine';import{Users as _0x5f1a33,getMarkerDomElement as _0x5a0b75}from'ckeditor5-collaboration/src/collaboration-core';import _0xbeef29 from'./ui/revisionviewer/changedetailsview';import _0x53ab8c from'./revisionsrepository';import _0x31e9c7 from'./changeitem';import{default as _0xc41a6e}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x27c916}from'lodash-es';const tt={'c':_0xb4abbf,'a':_0x2a3e28,'e':_0xda6fa2,'r':_0x5e8a04,'u':_0x3aa07c};export default class d extends _0x193c24{static get[_0x5859('0x98')](){return'RevisionViewer';}static get[_0x5859('0x101')](){return[_0x5f1a33,_0x1efa1b,_0x53ab8c];}constructor(_0x95b7b8){super(_0x95b7b8),this[_0x5859('0xba')]=this[_0x5859('0xaa')][_0x5859('0xa')][_0x5859('0xb5')]('RevisionsRepository'),this['set'](_0x5859('0x10c'),null),this[_0x5859('0xd7')](_0x5859('0xc7'),null),this[_0x5859('0xa4')]=null,this[_0x5859('0xd7')]('diff',null),this[_0x5859('0xd7')]('isReady',!0x1),this[_0x5859('0xd7')](_0x5859('0xfd'),!0x0),this['on']('change:isEnabled',(_0x337d82,_0x264a21,_0x488d5d)=>{this[_0x5859('0x10c')]=null,this[_0x5859('0xc7')]=null,this[_0x5859('0xaa')][_0x5859('0x76')]['view'][_0x5859('0x45')](_0x323b52=>{for(const _0x4a54b7 of this[_0x5859('0xaa')]['editing'][_0x5859('0xcc')][_0x5859('0x5b')][_0x5859('0x32')])_0x488d5d?_0x323b52[_0x5859('0xab')](_0x5859('0xa3'),_0x4a54b7):_0x323b52[_0x5859('0x120')](_0x5859('0xa3'),_0x4a54b7);});}),this[_0x5859('0x19')](_0x5859('0x42'))['to'](this,_0x5859('0x10c'),_0x489bbd=>null!==_0x489bbd),this[_0x5859('0x19')](_0x5859('0x71'))['to'](this,_0x5859('0x12'),this,_0x5859('0x94'),this,_0x5859('0x10c'),(_0x361a7b,_0x48401a,_0x22271b)=>_0x361a7b&&_0x22271b?_0x48401a[_0x5859('0x7e')][_0x5859('0x3e')](_0x22271b):0x0),this[_0x5859('0x19')](_0x5859('0x6a'))['to'](this,'isReady',this,_0x5859('0x94'),(_0x1f033d,_0x341869)=>_0x1f033d?_0x341869['changes'][_0x5859('0xef')]:0x0),this[_0x5859('0x4d')]=null,this[_0x5859('0x60')]=new Map(),this[_0x5859('0xc9')]=null,this[_0x5859('0xce')]=this['editor'][_0x5859('0xa')][_0x5859('0xb5')](_0x1efa1b);}['init'](){const _0x53707b=this[_0x5859('0xaa')],_0x41aeac=new ShowChangeCommand(_0x53707b,{'direction':_0x5859('0x36')}),_0x5f33ee=new ShowChangeCommand(_0x53707b,{'direction':'forward'});(_0x53707b[_0x5859('0x99')][_0x5859('0x28')](_0x5859('0xe6'),_0x41aeac),_0x53707b[_0x5859('0x99')]['add'](_0x5859('0xb4'),_0x5f33ee),_0x53707b['commands'][_0x5859('0x28')](_0x5859('0x25'),new RestoreRevisionCommand(_0x53707b)),this['on'](_0x5859('0x8e'),()=>{_0x41aeac['refresh'](),_0x5f33ee[_0x5859('0x1a')]();}),this[_0x5859('0xf7')](),this['_initInteractions'](),_0x53707b['enableReadOnlyMode']('revision-viewer'),_0x53707b[_0x5859('0xa')][_0x5859('0x112')](_0x5859('0x43')))&&_0x53707b[_0x5859('0xa')][_0x5859('0xb5')](_0x5859('0x43'))[_0x5859('0x11d')]('revision-viewer');}async[_0x5859('0xac')](_0x3ac132){await this[_0x5859('0xe3')](_0x3ac132);const _0x5a3da7={};for(const _0x5a6d4b in _0x3ac132[_0x5859('0x109')]){if(_0x3ac132[_0x5859('0x109')][_0x5a6d4b][_0x5859('0xb7')]&&!_0x3ac132[_0x5859('0x109')][_0x5a6d4b][_0x5859('0xb7')][_0x5859('0x100')])continue;const _0x55cc1e=this[_0x5859('0x92')](JSON['parse'](_0x3ac132[_0x5859('0x109')][_0x5a6d4b]['insertions'])),_0x1ec4a4=this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0xcc')]['document'],_0x2868f3=new _0x5e5cb4(_0x1ec4a4,_0x55cc1e['map'](_0x5a2d7d=>this['_getViewObj'](_0x5a2d7d)));this['editor']['data']['processor']['useFillerType'](_0x5859('0x103')),_0x5a3da7[_0x5a6d4b]=this[_0x5859('0xaa')][_0x5859('0x11c')][_0x5859('0xdb')][_0x5859('0x110')](_0x2868f3),this['editor'][_0x5859('0x11c')]['processor'][_0x5859('0x72')](_0x5859('0xdc'));}return _0x5a3da7;}async[_0x5859('0xc')](_0x570937){await this['loadRevisionData'](_0x570937);const _0x5a5bab={};for(const _0x567c10 in _0x570937['diffData'])_0x570937[_0x5859('0x109')][_0x567c10]['attachChange']&&!_0x570937['diffData'][_0x567c10][_0x5859('0xb7')][_0x5859('0x100')]||(_0x5a5bab[_0x567c10]=_0x570937[_0x5859('0x109')][_0x567c10][_0x5859('0x114')]||{});return _0x5a5bab;}[_0x5859('0x92')](_0x330a55){return(_0x330a55=_0x330a55[_0x5859('0x10e')](_0x3618e3=>!_0x3618e3['name']||_0x5859('0x1c')!==_0x3618e3[_0x5859('0x61')]&&_0x5859('0x2')!==_0x3618e3['name']))['forEach'](_0x21a622=>{_0x5859('0xc6')!=typeof _0x21a622&&(_0x21a622['children']=this[_0x5859('0x92')](_0x21a622['children']),_0x21a622[_0x5859('0x78')]=_0x21a622[_0x5859('0x78')][_0x5859('0x10e')](_0x38ed2c=>!_0x38ed2c[0x0][_0x5859('0x33')](_0x5859('0xa2'))));}),_0x330a55;}async[_0x5859('0xd')](_0x32386e,_0xeed90f,_0x51c6fd=!0x1){if(!this[_0x5859('0xfd')])return;const _0x938c60=this['diff'],_0xd8fc83=this['repository'],_0x2622ad='string'==typeof _0x32386e?_0xd8fc83[_0x5859('0xb8')](_0x32386e):_0x32386e,_0x20e408=_0x5859('0xc6')==typeof _0xeed90f?_0xd8fc83[_0x5859('0xb8')](_0xeed90f):_0xeed90f,_0x3bdd8e=_0x2622ad['id'],_0x4e3df5=_0x20e408?_0x20e408['id']:null;if(!_0x51c6fd&&this[_0x5859('0x94')]&&this[_0x5859('0x94')][_0x5859('0x40')]===_0x3bdd8e&&this[_0x5859('0x94')]['oldRevisionId']===_0x4e3df5)return Promise['resolve']();this[_0x5859('0x12')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0x5859('0x94')]=new _0xc41a6e(_0x3bdd8e,_0x4e3df5);const _0x6baf0b=this[_0x5859('0x51')](_0x2622ad,_0x20e408,!0x0)['map'](_0x565b4f=>this[_0x5859('0xe3')](_0x565b4f));return _0x6baf0b['push'](new Promise(_0x3af885=>{setTimeout(_0x3af885,0x14);})),Promise[_0x5859('0xf4')](_0x6baf0b)[_0x5859('0x96')](()=>{if(!this[_0x5859('0xfd')])return;this[_0x5859('0x69')]();const _0x115f1f=this[_0x5859('0x1')](_0x3bdd8e,_0x4e3df5);for(const _0x49ac60 of _0x115f1f[_0x5859('0x7e')])this[_0x5859('0x60')]['set'](_0x49ac60['id'],_0x49ac60);this[_0x5859('0xaa')]['model']['enqueueChange']({'isUndoable':!0x1},_0x3f10f7=>{for(const _0x5dfa1a of this['editor'][_0x5859('0x67')][_0x5859('0x5b')][_0x5859('0xd9')]())_0x3f10f7[_0x5859('0xb9')](_0x5dfa1a);for(const _0x4a93d2 of Object[_0x5859('0x74')](_0x115f1f[_0x5859('0x67')])){const _0xa62110=_0x3f10f7['addRoot'](_0x4a93d2);for(const _0x42e991 of Object[_0x5859('0x74')](_0x115f1f['attributes'][_0x4a93d2]))_0x3f10f7[_0x5859('0x105')](_0x42e991,_0x115f1f[_0x5859('0x78')][_0x4a93d2][_0x42e991],_0xa62110);_0x3f10f7['insert'](_0x115f1f['model'][_0x4a93d2],_0xa62110,0x0);}}),this[_0x5859('0x94')][_0x5859('0xbf')](this[_0x5859('0x5')](_0x115f1f[_0x5859('0x7e')])),this[_0x5859('0x12')]=!0x0;})['catch'](_0x39c53a=>{console[_0x5859('0x6f')](_0x39c53a),this['_cleanUp'](),_0x938c60&&(this[_0x5859('0x94')]=_0x938c60),this[_0x5859('0x12')]=!0x0;});}[_0x5859('0x70')](_0x4133fd,_0x29c4ba){const _0x174f57=this[_0x5859('0xba')][_0x5859('0x64')](_0x4133fd);return _0x174f57['on'](_0x5859('0xe2'),(_0x37d55e,_0x5d2fdd,_0x27fd65)=>_0x29c4ba(_0x5d2fdd,_0x27fd65,_0x174f57)),this[_0x5859('0xba')]['addRevision'](_0x174f57),_0x174f57;}['loadRevisionData'](_0x300ea6){if(!_0x300ea6||_0x300ea6[_0x5859('0x109')])return Promise[_0x5859('0x10b')]();{const _0x15a3d7=this[_0x5859('0xaa')][_0x5859('0x93')]['get'](_0x5859('0x5d'));return this[_0x5859('0xc9')][_0x5859('0xb8')]({'channelId':_0x15a3d7,'revisionId':_0x300ea6['id']})['then'](_0x504f1a=>{_0x300ea6[_0x5859('0xe2')]({'diffData':_0x504f1a[_0x5859('0x109')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x5859('0xc1')](),this['_changeView']&&this[_0x5859('0x4d')]['destroy'](),this[_0x5859('0x4d')]=null,this[_0x5859('0x60')][_0x5859('0xf8')](),this[_0x5859('0xaa')]['model'][_0x5859('0x9a')]({'isUndoable':!0x1},_0x38322e=>{for(const _0x2cf5cf of this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x5b')][_0x5859('0xd9')]())_0x38322e[_0x5859('0xb9')](_0x2cf5cf);});}[_0x5859('0x5')](_0x2d7e3c){const _0x38396f=[],_0x38f240=new Map();for(const _0x2217ce of this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x5b')][_0x5859('0xd9')]()){const _0x127acc=this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0xcc')][_0x5859('0x118')](_0x2217ce);if(!_0x127acc)continue;const _0x1f8a74=_0x127acc[_0x5859('0x104')]()[_0x5859('0xfc')](0x0);_0x1f8a74&&(_0x38396f['push'](_0x2217ce),_0x38f240[_0x5859('0xd7')](_0x2217ce,_0x1f8a74));}return _0x38396f[_0x5859('0x22')]((_0x51ffc0,_0x8e8ac8)=>{const _0x54b30c=_0x38f240[_0x5859('0xb5')](_0x51ffc0),_0x33f0f6=_0x38f240[_0x5859('0xb5')](_0x8e8ac8);return _0x54b30c['y']-_0x33f0f6['y']||_0x54b30c['x']-_0x33f0f6['x'];}),(_0x2d7e3c=_0x2d7e3c[_0x5859('0x10e')](_0x370bf8=>_0x38396f['includes'](_0x370bf8[_0x5859('0x6c')])))[_0x5859('0x22')]((_0x280a40,_0x8a74aa)=>_0x38396f[_0x5859('0x106')](_0x280a40['rootName'])-_0x38396f[_0x5859('0x106')](_0x8a74aa[_0x5859('0x6c')])),_0x2d7e3c;}['_makeTape'](_0x316a73){const _0x224672=Array[_0x5859('0x8d')](_0x316a73[_0x5859('0x30')])['filter'](([_0x14b57e,_0x1f4b5c])=>_0x14b57e['startsWith']('revision:')&&!_0x1f4b5c['isCollapsed']),_0x133ae5=Array[_0x5859('0x8d')](this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x82')](_0x316a73)[_0x5859('0x3')]({'singleCharacters':!0x0}));if(0x0!=_0x224672[_0x5859('0xef')])for(const _0x25057c of _0x133ae5){const [_0x162c29,_0x55c6f8]=_0x224672[0x0],[,_0x4b017e,_0x478fff]=_0x162c29[_0x5859('0x116')](':');if(_0x55c6f8['end'][_0x5859('0xe')](_0x25057c[_0x5859('0xbd')])&&_0x224672[_0x5859('0x5f')](),(_0x25057c[_0x5859('0x6')]['isEqual'](_0x55c6f8[_0x5859('0x27')])||_0x25057c[_0x5859('0x6')][_0x5859('0xd3')](_0x55c6f8[_0x5859('0x27')]))&&(_0x5859('0x113')==_0x4b017e?_0x25057c[_0x5859('0x14')]={'userId':_0x478fff}:_0x5859('0xf0')==_0x4b017e&&(_0x25057c[_0x5859('0x3f')]={'userId':_0x478fff})),0x0==_0x224672['length'])break;}return _0x133ae5;}[_0x5859('0x75')](_0x211135){const _0x1e9e72=new Map();for(let _0x4e35b3=0x0;_0x4e35b3<_0x211135['length'];_0x4e35b3++)_0x5859('0x5e')===_0x211135[_0x4e35b3][_0x5859('0x4a')]?(_0x211135[_0x4e35b3][_0x5859('0xfc')]['startIndex']=_0x4e35b3,_0x211135[_0x4e35b3][_0x5859('0xfc')]['endIndex']=_0x4e35b3):('elementStart'===_0x211135[_0x4e35b3]['type']?_0x211135[_0x4e35b3][_0x5859('0xfc')][_0x5859('0x63')]=_0x4e35b3:_0x5859('0x21')===_0x211135[_0x4e35b3][_0x5859('0x4a')]&&(_0x211135[_0x4e35b3]['item']['endIndex']=_0x4e35b3),_0x1e9e72['set'](_0x211135[_0x4e35b3]['id'],_0x4e35b3));for(const _0x1f4527 of _0x1e9e72['values']())_0x5859('0x35')===_0x211135[_0x1f4527][_0x5859('0x4a')]?_0x211135[_0x1f4527][_0x5859('0xfc')][_0x5859('0xf6')]=_0x1e9e72[_0x5859('0xb5')](_0x211135[_0x1f4527][_0x5859('0x62')]):_0x5859('0x21')===_0x211135[_0x1f4527]['type']&&(_0x211135[_0x1f4527]['item'][_0x5859('0x63')]=_0x1e9e72[_0x5859('0xb5')](_0x211135[_0x1f4527][_0x5859('0x62')]));}[_0x5859('0xda')](_0xf42b08){for(let _0x180032=0x0;_0x180032<_0xf42b08[_0x5859('0xef')];_0x180032++){if('elementStart'===_0xf42b08[_0x180032][_0x5859('0x4a')])_0xf42b08[_0x180032][_0x5859('0xfc')][_0x5859('0x63')]=_0x180032;else{if(_0x5859('0x21')===_0xf42b08[_0x180032][_0x5859('0x4a')]){_0xf42b08[_0x180032][_0x5859('0xfc')][_0x5859('0xf6')]=_0x180032;const _0x1e1682=_0xf42b08[_0x180032][_0x5859('0xfc')][_0x5859('0x63')];_0xf42b08[_0x1e1682][_0x5859('0x62')]=_0xf42b08[_0x180032]['id'],_0xf42b08[_0x180032]['pairId']=_0xf42b08[_0x1e1682]['id'];}else _0xf42b08[_0x180032]['item'][_0x5859('0x63')]=_0x180032,_0xf42b08[_0x180032][_0x5859('0xfc')]['endIndex']=_0x180032,_0xf42b08[_0x180032][_0x5859('0x62')]=null;}_0xf42b08[_0x180032]['markersStart']||(_0xf42b08[_0x180032][_0x5859('0xb3')]=[],_0xf42b08[_0x180032][_0x5859('0xbe')]=[]);}}[_0x5859('0xa0')](_0xf0aee8,_0x47b81b){const _0x5065f1=_0xf0aee8[_0x5859('0x10e')](_0x48f030=>!_0x48f030['isAdded']);for(let _0x26ff5e=0x0;_0x26ff5e<_0x47b81b['length'];_0x26ff5e++)_0x47b81b[_0x26ff5e][_0x5859('0x14')]&&(_0x5065f1[_0x26ff5e][_0x5859('0x14')]=_0x47b81b[_0x26ff5e][_0x5859('0x14')]);}[_0x5859('0x7d')](_0x5df227){const _0x10b817=JSON[_0x5859('0x8b')](_0x5df227),_0x21597a=this[_0x5859('0xaa')]['editing']['view'][_0x5859('0x5b')],_0x395c2b=new _0x5e5cb4(_0x21597a,_0x10b817[_0x5859('0x3b')](_0x13b335=>this[_0x5859('0x84')](_0x13b335)));return this['editor'][_0x5859('0x11c')]['toModel'](_0x395c2b);}[_0x5859('0x84')](_0x1d7a48){const _0x43670e=this['editor'][_0x5859('0x76')][_0x5859('0xcc')][_0x5859('0x5b')];if(_0x5859('0xc6')==typeof _0x1d7a48)return new _0x59ce10(_0x43670e,_0x1d7a48);{const _0x4e6f37=_0x1d7a48['children'][_0x5859('0x3b')](_0x57ca38=>this[_0x5859('0x84')](_0x57ca38));return new(tt[_0x1d7a48[(_0x5859('0x4a'))]]||_0x2f41ac)(_0x43670e,_0x1d7a48[_0x5859('0x61')],_0x1d7a48['attributes'],_0x4e6f37);}}[_0x5859('0x1')](_0x1f77c7,_0x13ba78=null){const _0x49977b=this[_0x5859('0xba')][_0x5859('0xb8')](_0x1f77c7),_0x2db545=_0x13ba78?this['repository'][_0x5859('0xb8')](_0x13ba78):null,_0x5d7e67=this[_0x5859('0x51')](_0x49977b,_0x2db545),_0x16fb54=_0x5d7e67[_0x5d7e67[_0x5859('0xef')]-0x1],_0x4b332e=new Map(),_0x3db07b={'model':{},'attributes':{},'changes':[]},_0x40db0e=new Set(),_0x5d6e40=new Map();for(let _0x4e31a2=_0x5d7e67[_0x5859('0xef')]-0x1;_0x4e31a2>=0x0;_0x4e31a2--){const _0xc607fd=_0x5d7e67[_0x4e31a2];for(const _0x4fe581 of Object[_0x5859('0x74')](_0xc607fd[_0x5859('0x109')]))if(_0xc607fd[_0x5859('0x109')][_0x4fe581][_0x5859('0xb7')]){const _0x58c0f9=_0xc607fd[_0x5859('0x109')][_0x4fe581][_0x5859('0xb7')];_0x58c0f9[_0x5859('0x100')]?(_0x40db0e[_0x5859('0x28')](_0x4fe581),_0x5d6e40['has'](_0x4fe581)&&_0x5d6e40['get'](_0x4fe581)['userId']==_0x58c0f9[_0x5859('0xc2')]?_0x5d6e40['delete'](_0x4fe581):_0x5d6e40[_0x5859('0xd7')](_0x4fe581,_0x58c0f9)):_0x5d6e40[_0x5859('0x112')](_0x4fe581)?(_0x40db0e[_0x5859('0xd8')](_0x4fe581),_0x5d6e40['delete'](_0x4fe581)):(_0x40db0e[_0x5859('0x28')](_0x4fe581),_0x5d6e40[_0x5859('0xd7')](_0x4fe581,_0x58c0f9));}else _0x40db0e['add'](_0x4fe581);}for(const _0x553f8b of _0x40db0e){const _0x144ba2=_0x5d6e40[_0x5859('0x112')](_0x553f8b)&&!_0x5d6e40[_0x5859('0xb5')](_0x553f8b)[_0x5859('0x100')];let _0x18b7b6=_0x144ba2?_0x5d7e67[_0x5859('0xef')]-0x1:0x0;const _0x129413=_0x144ba2?-0x1:0x1;for(;_0x5d7e67[_0x18b7b6];){const _0x1d28e7=_0x5d7e67[_0x18b7b6];if(_0x1d28e7[_0x5859('0x109')][_0x553f8b]){const _0x50f119=_0x144ba2?_0x1d28e7[_0x5859('0x109')][_0x553f8b][_0x5859('0xc8')]:_0x1d28e7['diffData'][_0x553f8b][_0x5859('0x114')];_0x3db07b['attributes'][_0x553f8b]=_0x50f119?_0x27c916(_0x50f119):{};break;}_0x18b7b6+=_0x129413;}}for(const _0x272ecd of _0x5d7e67){_0x272ecd[_0x5859('0x67')]={};for(const _0x23a2e8 of _0x272ecd[_0x5859('0x31')])_0x4b332e[_0x5859('0xd7')](_0x23a2e8['id'],_0x23a2e8);for(const _0x3fdd4b of _0x40db0e){const _0x57448d=_0x272ecd['diffData'][_0x3fdd4b]?_0x272ecd['diffData'][_0x3fdd4b][_0x5859('0xfa')]:'[]',_0x3ec2b5=_0x272ecd[_0x5859('0x109')][_0x3fdd4b]?_0x272ecd[_0x5859('0x109')][_0x3fdd4b]['deletions']:'[]';_0x272ecd[_0x5859('0x67')][_0x3fdd4b]={'insertions':this['_makeModelFromViewString'](_0x57448d),'deletions':this[_0x5859('0x7d')](_0x3ec2b5)};}}for(const _0x363d0c of _0x40db0e){let _0x2ebe6e=null,_0x4acb22=0x0;const _0x260cb3=new Map(Array[_0x5859('0x8d')](_0x49977b[_0x5859('0x67')][_0x363d0c][_0x5859('0xfa')][_0x5859('0x30')])[_0x5859('0x10e')](([_0x20c38a])=>!_0x20c38a[_0x5859('0x33')](_0x5859('0x17'))));let _0x228d57=0x0;for(const _0x5672d9 of _0x5d7e67){const _0x5b8429=this[_0x5859('0x3c')](_0x5672d9[_0x5859('0x67')][_0x363d0c][_0x5859('0xfa')]);_0x5672d9==_0x49977b?(_0x2ebe6e=_0x5b8429,_0x4acb22=_0x2ebe6e['length'],_0x2ebe6e[_0x5859('0xdf')](_0x38cb96=>{_0x38cb96['id']=_0x228d57++;}),this[_0x5859('0xda')](_0x2ebe6e)):this[_0x5859('0xa0')](_0x2ebe6e,_0x5b8429);const _0x1dc430=_0x2ebe6e[_0x5859('0x10e')](_0x3dd11d=>!_0x3dd11d[_0x5859('0x14')])[_0x5859('0x3b')](_0x290aee=>_0x290aee['id']);let _0x46cc9f=0x0;const _0x55bd57=this[_0x5859('0x3c')](_0x5672d9[_0x5859('0x67')][_0x363d0c]['deletions']);_0x55bd57[_0x5859('0xdf')](_0x4074ab=>{_0x4074ab[_0x5859('0x3f')]?_0x4074ab['id']=_0x4acb22++:_0x4074ab['id']=_0x1dc430[_0x46cc9f++];}),this[_0x5859('0xda')](_0x55bd57),this['_setDistance'](_0x2ebe6e,_0x5859('0x14')),this[_0x5859('0x5a')](_0x55bd57,_0x5859('0x3f')),_0x5672d9==_0x49977b&&this['_markMarkers'](_0x2ebe6e,_0x260cb3),_0x2ebe6e=this[_0x5859('0x20')](_0x2ebe6e,_0x55bd57),this[_0x5859('0x75')](_0x2ebe6e),this['_setDistance'](_0x2ebe6e,'isRemoved');}_0x2ebe6e=_0x2ebe6e[_0x5859('0x10e')](_0x3d95a1=>!(_0x3d95a1[_0x5859('0x14')]&&_0x3d95a1['isRemoved']));const _0x4da9df=new Map(_0x16fb54[_0x5859('0x67')][_0x363d0c][_0x5859('0xec')][_0x5859('0x30')]),_0x56be8c=new Set(_0x260cb3[_0x5859('0x74')]());for(const _0x50a60b of _0x4da9df[_0x5859('0x74')]())_0x56be8c[_0x5859('0xd8')](_0x50a60b);this[_0x5859('0xf2')](_0x2ebe6e,_0x56be8c),this[_0x5859('0x52')](_0x2ebe6e),_0x2ebe6e=this[_0x5859('0x23')](_0x2ebe6e),_0x2ebe6e=this[_0x5859('0xdd')](_0x2ebe6e),_0x2ebe6e=this[_0x5859('0xd6')](_0x2ebe6e);const {root:_0x4e9c70,changes:_0x5f4e69}=this[_0x5859('0x54')](_0x2ebe6e,_0x4b332e,_0x363d0c);_0x3db07b[_0x5859('0x67')][_0x363d0c]=_0x4e9c70;const _0x135fcb=_0x5d6e40['get'](_0x363d0c);if(_0x135fcb){const _0x53deb7=_0x4b332e[_0x5859('0xb5')](_0x135fcb[_0x5859('0xc2')]),_0x3ffeb3=new _0x31e9c7({'author':_0x53deb7,'type':_0x135fcb[_0x5859('0x100')]?'add':_0x5859('0xb6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x363d0c});_0x5f4e69[_0x5859('0xa7')](_0x3ffeb3),_0x3db07b['attributes'][_0x363d0c]['revisionHistoryAttachChange']=_0x3ffeb3['id'];}_0x3db07b[_0x5859('0x7e')]=_0x3db07b[_0x5859('0x7e')][_0x5859('0x79')](_0x5f4e69);}return _0x3db07b;}[_0x5859('0x86')](_0x52fda4,_0x27218d){for(let _0x1da0ce=0x0;_0x1da0ce<_0x52fda4['length'];_0x1da0ce++)for(const [_0x4867a6,_0x31a2b0]of _0x27218d)_0x31a2b0[_0x5859('0x27')][_0x5859('0xe')](_0x52fda4[_0x1da0ce]['previousPosition'])&&_0x52fda4[_0x1da0ce]['markersStart'][_0x5859('0xaf')](_0x4867a6),_0x31a2b0[_0x5859('0xa9')][_0x5859('0xe')](_0x52fda4[_0x1da0ce]['nextPosition'])&&_0x52fda4[_0x1da0ce][_0x5859('0xbe')][_0x5859('0xaf')](_0x4867a6);}[_0x5859('0x20')](_0x7a3936,_0x572eae){let _0x19523f=[],_0x2b2c03=0x0,_0x5888c7=0x0;for(;_0x2b2c03<_0x7a3936[_0x5859('0xef')]||_0x5888c7<_0x572eae[_0x5859('0xef')];){const _0x19db11=_0x7a3936[_0x2b2c03]||{},_0x42f8c4=_0x572eae[_0x5888c7]||{};if(_0x19db11['id']==_0x42f8c4['id'])_0x2b2c03++,_0x5888c7++,_0x19523f[_0x5859('0xaf')](_0x19db11);else{if(_0x42f8c4['isRemoved']&&_0x19db11[_0x5859('0x14')]){const {commonTape:_0x327a3b,iEnd:_0x297830,jEnd:_0x43fa82}=this[_0x5859('0x16')](_0x7a3936,_0x2b2c03,_0x572eae,_0x5888c7);_0x19523f=_0x19523f['concat'](_0x327a3b),_0x2b2c03=_0x297830,_0x5888c7=_0x43fa82;}else _0x42f8c4['isRemoved']?(_0x5888c7++,_0x19523f[_0x5859('0xaf')](_0x42f8c4)):(_0x2b2c03++,_0x19523f[_0x5859('0xaf')](_0x19db11));}}return _0x19523f;}['_markSuggestions'](_0x10dd90,_0x1560f8){const _0x134322=[];for(let _0x386c3a=0x0;_0x386c3a<_0x10dd90[_0x5859('0xef')];_0x386c3a++){for(let _0x2cd3bf=0x0;_0x2cd3bf<_0x10dd90[_0x386c3a][_0x5859('0xb3')][_0x5859('0xef')];_0x2cd3bf++){const _0x229048=_0x10dd90[_0x386c3a][_0x5859('0xb3')][_0x2cd3bf];if(!_0x1560f8[_0x5859('0x112')](_0x229048))continue;const {group:_0x56bff1,type:_0x22c130,authorId:_0x21fe7e}=_0x36101b(_0x229048);_0x5859('0xd5')!=_0x56bff1||_0x5859('0x113')!=_0x22c130&&'deletion'!=_0x22c130||(_0x134322['unshift']({'type':_0x22c130,'name':_0x229048,'userId':_0x21fe7e}),_0x10dd90[_0x386c3a]['markersStart'][_0x5859('0x2a')](_0x2cd3bf,0x1),_0x2cd3bf--);}_0x1e4fe7(_0x10dd90[_0x386c3a]);for(let _0x3f46de=0x0;_0x3f46de<_0x10dd90[_0x386c3a]['markersEnd'][_0x5859('0xef')];_0x3f46de++){const _0x716948=_0x10dd90[_0x386c3a][_0x5859('0xbe')][_0x3f46de];if(!_0x1560f8[_0x5859('0x112')](_0x716948))continue;const {group:_0x1ddca2,type:_0x11510c}=_0x36101b(_0x716948);if(_0x5859('0xd5')!=_0x1ddca2||'insertion'!=_0x11510c&&'deletion'!=_0x11510c)continue;_0x10dd90[_0x386c3a]['markersEnd'][_0x5859('0x2a')](_0x3f46de,0x1),_0x3f46de--;const _0x2dda88=_0x134322[_0x5859('0x102')](_0x3ad91c=>_0x3ad91c[_0x5859('0x61')]==_0x716948);_0x2dda88>-0x1&&_0x134322[_0x5859('0x2a')](_0x2dda88,0x1);}}function _0x36101b(_0x4355d2){const _0x25267b=_0x4355d2[_0x5859('0x116')](':');return{'group':_0x25267b[0x0],'type':_0x25267b[0x1],'subType':_0x25267b[_0x5859('0xef')]>=0x5?_0x25267b[0x2]:null,'id':_0x25267b[_0x5859('0xef')]<0x5?_0x25267b[0x2]:_0x25267b[0x3],'authorId':_0x25267b[_0x5859('0xef')]<0x5?_0x25267b[0x3]:_0x25267b[0x4],'markerCount':0x6==_0x25267b[_0x5859('0xef')]?_0x25267b[0x5]:null};}function _0x1e4fe7(_0x3f9395){for(let _0x3c6afd=0x0;_0x3c6afd<_0x134322['length'];_0x3c6afd++){if(_0x3f9395[_0x5859('0x14')]&&_0x5859('0x113')==_0x134322[_0x3c6afd]['type'])return _0x3f9395[_0x5859('0x5c')]=_0x134322[_0x3c6afd],void delete _0x3f9395[_0x5859('0x14')];if(!_0x3f9395[_0x5859('0x14')]&&!_0x3f9395[_0x5859('0x3f')]&&'deletion'==_0x134322[_0x3c6afd][_0x5859('0x4a')])return void(_0x3f9395[_0x5859('0x59')]=_0x134322[_0x3c6afd]);}}}[_0x5859('0x5a')](_0x3ce3cf,_0x5e23f0){let _0x5576d3=0x0,_0x454918=!0x1;const _0x3f0f93=new Map();for(const _0x8ac3d7 of _0x3ce3cf)_0x8ac3d7[_0x5e23f0]?_0x454918&&(_0x5576d3++,_0x454918=!0x1):(_0x5576d3++,_0x454918=!0x0),_0x3f0f93[_0x5859('0xd7')](_0x8ac3d7['id'],_0x5576d3);for(let _0x4ff996=0x0;_0x4ff996<_0x3ce3cf[_0x5859('0xef')];_0x4ff996++){if('isRemoved'==_0x5e23f0&&_0x3ce3cf[_0x4ff996][_0x5859('0x14')]||_0x5859('0x14')==_0x5e23f0&&_0x3ce3cf[_0x4ff996][_0x5859('0x3f')])continue;if(_0x5859('0x5e')==_0x3ce3cf[_0x4ff996][_0x5859('0x4a')]){_0x3ce3cf[_0x4ff996]['distance']=0x0;continue;}const _0x3d0dfb=_0x3f0f93[_0x5859('0xb5')](_0x3ce3cf[_0x4ff996][_0x5859('0x62')]),_0x1f7215=_0x3f0f93[_0x5859('0xb5')](_0x3ce3cf[_0x4ff996]['id']);_0x3ce3cf[_0x4ff996][_0x5859('0xf9')]=_0x3d0dfb-_0x1f7215;}}[_0x5859('0x51')](_0x51d9bd,_0x4c62e8,_0x246bcf=!0x1){const _0x1614f4=[];let _0x59ce58=this['repository']['getIndex'](_0x51d9bd),_0x46de7b=this['repository'][_0x5859('0x3e')](_0x4c62e8);for(-0x1==_0x46de7b&&(_0x46de7b=this['repository']['_revisions']['length'],_0x246bcf=!0x1);_0x59ce58<_0x46de7b;)_0x1614f4['push'](this[_0x5859('0xba')][_0x5859('0xb8')](_0x59ce58)),_0x59ce58++;return _0x246bcf&&_0x1614f4[_0x5859('0xaf')](this['repository']['getRevision'](_0x59ce58)),_0x1614f4;}[_0x5859('0x16')](_0x20f73c,_0x3ac397,_0x46a4ef,_0x53b04e){const _0x58f098=this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0xff')];let _0x37552b=_0x3ac397;for(;_0x20f73c[_0x37552b]&&_0x20f73c[_0x37552b]['isAdded'];)_0x37552b++;let _0x15a554=_0x53b04e;for(;_0x46a4ef[_0x15a554]&&_0x46a4ef[_0x15a554][_0x5859('0x3f')];)_0x15a554++;_0x46f89d(_0x20f73c,_0x3ac397,_0x37552b),_0x46f89d(_0x46a4ef,_0x53b04e,_0x15a554);const _0x197a12=_0x46a4ef[_0x5859('0xf')](_0x53b04e,_0x15a554)[_0x5859('0x79')](_0x20f73c['slice'](_0x3ac397,_0x37552b));return _0x197a12[_0x5859('0x22')]((_0x5521ef,_0x5ba517)=>_0x5521ef['side']!=_0x5ba517[_0x5859('0x2f')]?_0x5521ef[_0x5859('0x2f')]-_0x5ba517[_0x5859('0x2f')]:_0x5521ef['level']!=_0x5ba517[_0x5859('0xf5')]?_0x5521ef[_0x5859('0xf5')]-_0x5ba517[_0x5859('0xf5')]:_0x5521ef[_0x5859('0xf9')]!=_0x5ba517[_0x5859('0xf9')]?_0x5ba517[_0x5859('0xf9')]-_0x5521ef[_0x5859('0xf9')]:!!_0x5521ef[_0x5859('0x14')]!=!!_0x5ba517['isAdded']?-0x1==_0x5521ef[_0x5859('0x2f')]||0x0==_0x5521ef[_0x5859('0x2f')]?_0x5521ef[_0x5859('0x14')]?-0x1:0x1:_0x5521ef['isAdded']?0x1:-0x1:_0x5521ef[_0x5859('0x115')]-_0x5ba517[_0x5859('0x115')]),{'commonTape':_0x197a12,'iEnd':_0x37552b,'jEnd':_0x15a554};function _0x46f89d(_0x7a0911,_0x435e31,_0x245cc3){let _0x5436cb=-0x1,_0x8c1f3b=Number['POSITIVE_INFINITY'],_0x4b79a2=!0x0;for(let _0x1e17e9=_0x435e31;_0x1e17e9<_0x245cc3;_0x1e17e9++)if(_0x58f098[_0x5859('0x77')](_0x7a0911[_0x1e17e9][_0x5859('0xfc')])||(_0x4b79a2=!0x1),_0x7a0911[_0x1e17e9][_0x5859('0xfc')][_0x5859('0x63')]<_0x435e31&&(_0x5436cb=_0x1e17e9),_0x7a0911[_0x1e17e9][_0x5859('0xfc')]['endIndex']>=_0x245cc3){_0x8c1f3b=_0x1e17e9;break;}_0x4b79a2&&(_0x5436cb=_0x245cc3-0x1);for(let _0x493779=_0x435e31;_0x493779<_0x245cc3;_0x493779++)_0x7a0911[_0x493779][_0x5859('0x2f')]=_0x493779<=_0x5436cb?-0x1:_0x493779<_0x8c1f3b?0x0:0x1,_0x7a0911[_0x493779][_0x5859('0x115')]=_0x493779;let _0x1ca393=0x0;for(let _0x21bcf1=_0x435e31;_0x21bcf1<=_0x5436cb;_0x21bcf1++)0x0==_0x7a0911[_0x21bcf1][_0x5859('0xf9')]?_0x7a0911[_0x21bcf1]['level']=_0x1ca393:(_0x1ca393++,_0x7a0911[_0x21bcf1][_0x5859('0xf5')]=_0x1ca393,_0x1ca393++);for(let _0xfd36b7=_0x435e31;_0xfd36b7<_0x245cc3;_0xfd36b7++)0x0==_0x7a0911[_0xfd36b7][_0x5859('0x2f')]&&(_0x7a0911[_0xfd36b7][_0x5859('0xf5')]=_0x1ca393);_0x1ca393=0x0;for(let _0x1c589c=_0x245cc3-0x1;_0x1c589c>=_0x8c1f3b;_0x1c589c--)0x0==_0x7a0911[_0x1c589c]['distance']?_0x7a0911[_0x1c589c][_0x5859('0xf5')]=_0x1ca393:(_0x1ca393--,_0x7a0911[_0x1c589c][_0x5859('0xf5')]=_0x1ca393,_0x1ca393--);}}[_0x5859('0x52')](_0x3254f5){const _0x5452bf=new Map(),_0x442af6=this[_0x5859('0xaa')][_0x5859('0x67')]['schema'];for(let _0x4dbfdd=0x1;_0x4dbfdd<_0x3254f5[_0x5859('0xef')];_0x4dbfdd++){let _0x1ff052,_0x772add,_0xd07fde;const _0x3bce3e=_0x3254f5[_0x4dbfdd],_0x5590bf=_0x3254f5[_0x4dbfdd-0x1];if(_0x5859('0x5e')==_0x3bce3e[_0x5859('0x4a')])continue;if(_0x3bce3e[_0x5859('0x4a')]!=_0x5590bf[_0x5859('0x4a')])continue;if(!_0x442af6[_0x5859('0xfb')](_0x5590bf[_0x5859('0xfc')])||_0x442af6[_0x5859('0x24')](_0x5590bf[_0x5859('0xfc')]))continue;if(!_0x442af6['isBlock'](_0x3bce3e[_0x5859('0xfc')])||_0x442af6[_0x5859('0x24')](_0x3bce3e[_0x5859('0xfc')]))continue;if((_0x3254f5[_0x4dbfdd][_0x5859('0x14')]||_0x3254f5[_0x4dbfdd][_0x5859('0x5c')])&&_0x3254f5[_0x4dbfdd-0x1][_0x5859('0x3f')])_0x1ff052=_0x3254f5[_0x4dbfdd],_0x772add=_0x3254f5[_0x4dbfdd-0x1],_0xd07fde=_0x4dbfdd-0x1;else{if(!_0x3254f5[_0x4dbfdd]['isRemoved']||!_0x3254f5[_0x4dbfdd-0x1][_0x5859('0x14')]&&!_0x3254f5[_0x4dbfdd-0x1][_0x5859('0x5c')])continue;_0x1ff052=_0x3254f5[_0x4dbfdd-0x1],_0x772add=_0x3254f5[_0x4dbfdd],_0xd07fde=_0x4dbfdd;}const _0x459e4f=_0x1ff052[_0x5859('0xf5')]==_0x772add[_0x5859('0xf5')],_0x3be896=Math[_0x5859('0x39')](_0x1ff052['level'])<Math['abs'](_0x772add[_0x5859('0xf5')])&&0x0==_0x772add['distance'];(_0x459e4f||_0x3be896)&&(_0x5452bf[_0x5859('0xd7')](_0x772add['id'],_0x1ff052['id']),_0x3254f5[_0x5859('0x2a')](_0xd07fde,0x1),_0x4dbfdd--,_0x1ff052[_0x5859('0x14')]=!0x1);}for(let _0x57ab10=0x0;_0x57ab10<_0x3254f5['length'];_0x57ab10++)_0x5452bf[_0x5859('0x112')](_0x3254f5[_0x57ab10][_0x5859('0x62')])&&(_0x3254f5[_0x57ab10][_0x5859('0x62')]=_0x5452bf[_0x5859('0xb5')](_0x3254f5[_0x57ab10][_0x5859('0x62')]));}[_0x5859('0x23')](_0x2bc6b3){const _0x5a0eb4=new Set(_0x2bc6b3[_0x5859('0x3b')](_0x4a14f0=>_0x4a14f0['id']));for(let _0x207686=0x0;_0x207686<_0x2bc6b3[_0x5859('0xef')];_0x207686++)_0x5a0eb4['has'](_0x2bc6b3[_0x207686][_0x5859('0x62')])||0x0==_0x2bc6b3[_0x207686][_0x5859('0xf9')]||(_0x2bc6b3[_0x207686][_0x5859('0x41')]=!0x0);return _0x2bc6b3[_0x5859('0x10e')](_0x32987f=>!_0x32987f[_0x5859('0x41')]);}[_0x5859('0xdd')](_0x228916){const _0x24d72c=new Set();for(let _0x26526b=0x0;_0x26526b<_0x228916['length'];_0x26526b++){if(_0x24d72c[_0x5859('0x112')](_0x228916[_0x26526b]['id'])&&_0x228916[_0x26526b]['isRemoved']&&(_0x228916[_0x26526b][_0x5859('0x41')]=!0x0),_0x228916[_0x26526b][_0x5859('0x41')])continue;if(0x0==_0x228916[_0x26526b][_0x5859('0xf9')])continue;if(_0x5859('0x35')!=_0x228916[_0x26526b]['type'])continue;if(null==_0x228916[_0x26526b][_0x5859('0x62')])continue;let _0x48d1d1=_0x26526b+0x1,_0x1c4c30=0x0;for(;_0x228916[_0x48d1d1]['id']!=_0x228916[_0x26526b][_0x5859('0x62')];)'elementStart'==_0x228916[_0x48d1d1]['type']?_0x1c4c30++:'elementEnd'==_0x228916[_0x48d1d1][_0x5859('0x4a')]&&_0x1c4c30--,_0x48d1d1++;if(0x0!=_0x1c4c30){if(_0x228916[_0x26526b][_0x5859('0x3f')])_0x228916[_0x26526b][_0x5859('0x41')]=!0x0;else for(;_0x48d1d1!=_0x26526b;)_0x228916[_0x48d1d1][_0x5859('0x3f')]&&0x0!=_0x228916[_0x48d1d1][_0x5859('0xf9')]&&(_0x228916[_0x48d1d1][_0x5859('0x41')]=!0x0,_0x24d72c['add'](_0x228916[_0x48d1d1][_0x5859('0x62')])),_0x48d1d1--;}}return _0x228916['filter'](_0x25e104=>!_0x25e104[_0x5859('0x41')]);}[_0x5859('0xd6')](_0x453989){const _0x3d0f10=this[_0x5859('0xaa')][_0x5859('0x67')]['schema'];for(let _0x58c8de=0x0;_0x58c8de<_0x453989[_0x5859('0xef')];_0x58c8de++){if(!(_0x453989[_0x58c8de][_0x5859('0x14')]||_0x453989[_0x58c8de][_0x5859('0x5c')]||_0x453989[_0x58c8de][_0x5859('0x3f')]||_0x453989[_0x58c8de][_0x5859('0x59')]))continue;if(0x0==_0x453989[_0x58c8de][_0x5859('0xf9')])continue;const _0x500e98=_0x453989[_0x58c8de][_0x5859('0xfc')];_0x3d0f10[_0x5859('0xfb')](_0x500e98)||_0x3d0f10['isLimit'](_0x500e98)||(_0x453989[_0x58c8de][_0x5859('0x14')]&&delete _0x453989[_0x58c8de][_0x5859('0x14')],_0x453989[_0x58c8de][_0x5859('0x5c')]&&delete _0x453989[_0x58c8de][_0x5859('0x5c')],_0x453989[_0x58c8de][_0x5859('0x59')]&&delete _0x453989[_0x58c8de][_0x5859('0x59')],_0x453989[_0x58c8de]['isRemoved']&&(_0x453989[_0x58c8de][_0x5859('0x41')]=!0x0));}return _0x453989[_0x5859('0x10e')](_0x8aecbc=>!_0x8aecbc[_0x5859('0x41')]);}[_0x5859('0x54')](_0x5e77d1,_0x11746f,_0x578c24){const _0x2b7c75=new _0x5ae4b3(),_0x32ba53=[],_0x1c4313=new Map(),_0x385066=this['editor'][_0x5859('0x67')],_0x2bd1dc=_0x385066[_0x5859('0xff')],_0x4f2942=[_0x2b7c75],_0x348f62={},_0xc23985={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x290384=null;const _0x898c93=[0x0];for(let _0x2ff813=0x0;_0x2ff813<_0x5e77d1[_0x5859('0xef')];_0x2ff813++){let _0x52efe5,_0x1de1e1;if(_0x5859('0x35')===_0x5e77d1[_0x2ff813]['type']){_0x52efe5=_0x385066['createPositionFromPath'](_0x2b7c75,_0x898c93);const _0x4ade35=new _0x1c5b79(_0x5e77d1[_0x2ff813]['item'][_0x5859('0x61')],_0x5e77d1[_0x2ff813][_0x5859('0xfc')][_0x5859('0xe0')]());_0x4f2942[0x0][_0x5859('0x10f')](_0x4ade35),_0x898c93[_0x5859('0xaf')](0x0),_0x4f2942[_0x5859('0xa7')](_0x4ade35),_0x1de1e1=_0x385066['createPositionFromPath'](_0x2b7c75,_0x898c93),_0x290384=null;}else{if(_0x5859('0x21')===_0x5e77d1[_0x2ff813][_0x5859('0x4a')])_0x4f2942[_0x5859('0x5f')](),_0x52efe5=_0x385066[_0x5859('0x53')](_0x2b7c75,_0x898c93),_0x898c93[_0x5859('0x2e')](),_0x898c93[_0x898c93[_0x5859('0xef')]-0x1]++,_0x1de1e1=_0x385066[_0x5859('0x53')](_0x2b7c75,_0x898c93),_0x290384=null;else{if(_0x52efe5=_0x385066['createPositionFromPath'](_0x2b7c75,_0x898c93),_0x290384&&_0x1f194e(_0x290384,_0x5e77d1[_0x2ff813][_0x5859('0xfc')]))_0x290384[_0x5859('0x80')]+=_0x5e77d1[_0x2ff813][_0x5859('0xfc')][_0x5859('0x11c')];else{const _0x404f6f=new _0xd2c2f(_0x5e77d1[_0x2ff813][_0x5859('0xfc')][_0x5859('0x11c')],_0x5e77d1[_0x2ff813][_0x5859('0xfc')][_0x5859('0xe0')]());_0x4f2942[0x0][_0x5859('0x10f')](_0x404f6f),_0x290384=_0x404f6f;}_0x898c93[_0x898c93['length']-0x1]+=_0x5e77d1[_0x2ff813][_0x5859('0xfc')][_0x5859('0xae')],_0x1de1e1=_0x385066[_0x5859('0x53')](_0x2b7c75,_0x898c93);}}for(const _0xb1834a of _0x5e77d1[_0x2ff813][_0x5859('0xb3')])_0x1c4313['set'](_0xb1834a,{'start':_0x52efe5,'end':null});_0x19d9af('isRemoveSuggestion',_0x2ff813,_0x52efe5,_0x1de1e1),_0x19d9af('isAddSuggestion',_0x2ff813,_0x52efe5,_0x1de1e1),_0x19d9af('isRemoved',_0x2ff813,_0x52efe5,_0x1de1e1),_0x19d9af('isAdded',_0x2ff813,_0x52efe5,_0x1de1e1);for(const _0x1b997c of _0x5e77d1[_0x2ff813][_0x5859('0xbe')]){_0x1c4313[_0x5859('0xb5')](_0x1b997c)[_0x5859('0xa9')]=_0x1de1e1;}}for(const [_0x3ea78c,_0x3a90d7]of _0x1c4313){const _0x46b3b0=this[_0x5859('0xaa')][_0x5859('0x67')]['createRange'](_0x3a90d7['start'],_0x3a90d7[_0x5859('0xa9')]);_0x2b7c75[_0x5859('0x30')][_0x5859('0xd7')](_0x3ea78c,_0x46b3b0);}return _0x32ba53[_0x5859('0x22')]((_0x105bba,_0x437fa1)=>{const _0x316c8a=_0x2b7c75[_0x5859('0x30')][_0x5859('0xb5')](_0x5859('0x17')+_0x105bba['id']),_0x83f199=_0x2b7c75[_0x5859('0x30')][_0x5859('0xb5')](_0x5859('0x17')+_0x437fa1['id']);return _0x316c8a[_0x5859('0x27')][_0x5859('0xe9')](_0x83f199[_0x5859('0x27')])?-0x1:_0x316c8a['start'][_0x5859('0xd3')](_0x83f199[_0x5859('0x27')])?0x1:_0x316c8a[_0x5859('0xa9')][_0x5859('0xe9')](_0x83f199[_0x5859('0xa9')])?-0x1:_0x316c8a['end'][_0x5859('0xd3')](_0x83f199[_0x5859('0xa9')])?0x1:'add'===_0x105bba[_0x5859('0x4a')]?-0x1:0x1;}),{'root':_0x2b7c75,'changes':_0x32ba53};function _0x19d9af(_0x2889af,_0x1fe24b,_0x2de5c4,_0x23b621){const _0x163dfb=!!_0x5e77d1[_0x1fe24b][_0x2889af],_0x2f0d8e=_0x163dfb?_0x5e77d1[_0x1fe24b][_0x2889af][_0x5859('0xc2')]:null,_0x4a892c=_0x1fe24b===_0x5e77d1[_0x5859('0xef')]-0x1,_0x30f8c5=_0xc23985[_0x2889af][0x0],_0x2a654d=_0x2bd1dc['isObject'](_0x5e77d1[_0x1fe24b][_0x5859('0xfc')]);!_0x348f62[_0x2889af]&&_0x163dfb?_0x348f62[_0x2889af]={'start':_0x2de5c4,'tapeItem':_0x5e77d1[_0x1fe24b],'userId':_0x2f0d8e,'type':_0x2889af}:_0x348f62[_0x2889af]&&!_0x163dfb?(_0x348f62[_0x2889af][_0x5859('0xa9')]=_0x2de5c4,_0x514160(_0x348f62[_0x2889af]),_0x348f62[_0x2889af]=null):_0x348f62[_0x2889af]&&_0x163dfb&&_0x348f62[_0x2889af][_0x5859('0xc2')]!==_0x2f0d8e&&(_0x348f62[_0x2889af][_0x5859('0xa9')]=_0x2de5c4,_0x30f8c5&&_0x30f8c5[_0x5859('0xc2')]===_0x348f62[_0x2889af]['userId']||_0x514160(_0x348f62[_0x2889af]),_0x348f62[_0x2889af]={'start':_0x2de5c4,'tapeItem':_0x5e77d1[_0x1fe24b],'userId':_0x2f0d8e,'type':_0x2889af}),_0x348f62[_0x2889af]&&_0x2a654d&&(_0x5859('0x35')!==_0x5e77d1[_0x1fe24b][_0x5859('0x4a')]||_0x30f8c5&&_0x30f8c5[_0x5859('0xc2')]===_0x2f0d8e||_0xc23985[_0x2889af][_0x5859('0xa7')]({'userId':_0x2f0d8e,'object':_0x5e77d1[_0x1fe24b]['item'],'change':_0x348f62[_0x2889af]}),_0x5859('0x21')===_0x5e77d1[_0x1fe24b]['type']&&_0x30f8c5&&_0x30f8c5[_0x5859('0xd2')]===_0x5e77d1[_0x1fe24b]['item']&&(_0xc23985[_0x2889af][_0x5859('0x5f')](),_0x348f62[_0x2889af]=_0x30f8c5[_0x5859('0x45')])),_0x348f62[_0x2889af]&&_0x4a892c&&(_0x348f62[_0x2889af][_0x5859('0xa9')]=_0x23b621,_0x514160(_0x348f62[_0x2889af]),_0x348f62[_0x2889af]=null);}function _0x514160({start:_0x56b34e,end:_0x46f7ef,tapeItem:_0x20c810,userId:_0x47587b,type:_0x315c07}){const _0x3b660b=_0x20c810[_0x5859('0xfc')],_0x14adb8=_0x385066[_0x5859('0xff')][_0x5859('0xfb')](_0x3b660b)&&!_0x385066[_0x5859('0xff')][_0x5859('0x24')](_0x3b660b),_0x318c13=_0x56b34e[_0x5859('0x38')]==_0x46f7ef[_0x5859('0xd4')]&&_0x46f7ef[_0x5859('0xd1')];if(_0x14adb8&&_0x318c13)return;const _0x42c6a7=_0x385066[_0x5859('0x10')](_0x56b34e,_0x46f7ef),_0x21f071=_0x11746f['get'](_0x47587b),_0x378120=new _0x31e9c7({'author':_0x21f071,'type':_0x5859('0x14')==_0x315c07||_0x5859('0x5c')==_0x315c07?_0x5859('0x28'):_0x5859('0xb6'),'data':{'isSuggestion':_0x5859('0x5c')==_0x315c07||_0x5859('0x59')==_0x315c07},'createdAt':new Date(),'rootName':_0x578c24});_0x32ba53[_0x5859('0xaf')](_0x378120),_0x2b7c75[_0x5859('0x30')]['set'](_0x5859('0x17')+_0x378120['id'],_0x42c6a7);}function _0x1f194e(_0x590d19,_0x5a1b0c){const _0x5282ef=_0x590d19[_0x5859('0xe0')](),_0x387cc1=_0x5a1b0c[_0x5859('0xe0')]();for(const _0x54b116 of _0x5282ef){if(_0x54b116[0x1]!==_0x5a1b0c[_0x5859('0x56')](_0x54b116[0x0]))return!0x1;_0x387cc1['next']();}return _0x387cc1[_0x5859('0x3d')]()['done'];}}[_0x5859('0xf7')](){this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')]('upcast')['dataToMarker']({'view':_0x5859('0x29')}),this[_0x5859('0xaa')][_0x5859('0xb0')]['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x27771e=>{const _0x3c2578=_0x27771e[_0x5859('0x7b')][_0x5859('0x116')](':')[0x1],_0x12f2f4=this[_0x5859('0x88')](_0x3c2578);if(!_0x12f2f4)return null;const _0x262ec1=_0x5859('0x28')==_0x12f2f4[_0x5859('0x4a')]?'insertion':'deletion',_0x17e37d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x262ec1];return _0x12f2f4[_0x5859('0x11c')][_0x5859('0x47')]&&_0x17e37d[_0x5859('0xaf')](_0x5859('0x9b')+_0x262ec1+_0x5859('0xcf')),this['activeChange']==_0x12f2f4&&_0x17e37d['push']('ck-suggestion-marker--active'),{'classes':_0x17e37d,'attributes':{'data-change-id':_0x3c2578}};}}),this['editor'][_0x5859('0xb0')][_0x5859('0x9d')](_0x5859('0x4c'))['add'](_0x464dbf=>{_0x464dbf['on'](_0x5859('0x7f'),(_0x4ce6bd,_0x47fa15,_0x7f0ac6)=>{const _0x2b8d92=_0x47fa15[_0x5859('0xc0')][_0x5859('0x1b')](0x0);if(!_0x2b8d92||!_0x2b8d92['is']('element','code'))return;if(!_0x7f0ac6[_0x5859('0xfe')][_0x5859('0x9f')](_0x2b8d92,{'attributes':[_0x5859('0xa6'),'vid_end']}))return;const _0x35c9c6=_0x47fa15[_0x5859('0x1e')][_0x5859('0x27')]['nodeAfter'];_0x7f0ac6[_0x5859('0x6e')][_0x5859('0x105')](_0x5859('0xa6'),_0x2b8d92['getAttribute'](_0x5859('0xa6')),_0x35c9c6),_0x7f0ac6[_0x5859('0x6e')][_0x5859('0x105')]('vid_end',_0x2b8d92[_0x5859('0x56')]('vid_end'),_0x35c9c6);},{'priority':'low'});}),this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')](_0x5859('0x4c'))[_0x5859('0x28')](_0x513502=>{_0x513502['on']('element',(_0x470223,_0x932a5a,_0xb701b7)=>{if(!_0xb701b7[_0x5859('0xfe')][_0x5859('0x9f')](_0x932a5a[_0x5859('0xc0')],{'attributes':['vid_start','vid_end']}))return;if(_0x932a5a[_0x5859('0x1e')]['isCollapsed'])return;const _0x44a9cf=_0x932a5a['modelRange'][_0x5859('0x27')][_0x5859('0x38')];_0x44a9cf[_0x5859('0xed')](_0x5859('0xa6'))||_0x44a9cf[_0x5859('0xed')](_0x5859('0x49'))||(_0xb701b7['writer'][_0x5859('0x105')](_0x5859('0xa6'),_0x932a5a[_0x5859('0xc0')]['getAttribute'](_0x5859('0xa6')),_0x44a9cf),_0xb701b7[_0x5859('0x6e')][_0x5859('0x105')](_0x5859('0x2c'),_0x932a5a[_0x5859('0xc0')][_0x5859('0x56')]('vid_end'),_0x44a9cf));},{'priority':_0x5859('0x18')});}),this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')](_0x5859('0x4c'))[_0x5859('0x95')]({'view':{'name':_0x5859('0x55'),'attributes':{'vid':!0x0}},'model':{'key':_0x5859('0x49'),'value':_0x12c004=>_0x12c004[_0x5859('0x56')](_0x5859('0x49'))}}),this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0xff')]['on'](_0x5859('0xca'),(_0x4ba9c7,[,_0x47cc15])=>{[_0x5859('0xa6'),'vid_end',_0x5859('0x49')][_0x5859('0xee')](_0x47cc15)&&(_0x4ba9c7['return']=!0x0,_0x4ba9c7[_0x5859('0x11f')]());},{'priority':_0x5859('0xf3')}),this['editor'][_0x5859('0xb0')][_0x5859('0x9d')](_0x5859('0x26'))[_0x5859('0x28')](_0x4d4601=>{_0x4d4601['on']('attribute:vid',(_0xaa1a21,_0x4a5d6d,_0x2a6cc8)=>{if('\x20'!=_0x4a5d6d['item'][_0x5859('0x11c')]||_0x4a5d6d[_0x5859('0xfc')][_0x5859('0xd4')][_0x5859('0x11a')]>0x1)return;if(!_0x2a6cc8[_0x5859('0xfe')][_0x5859('0x9f')](_0x4a5d6d['item'],_0xaa1a21[_0x5859('0x61')]))return;const _0x11601d=_0x2a6cc8['writer'],_0x1eccd4=_0x2a6cc8[_0x5859('0xc3')]['toViewRange'](_0x4a5d6d[_0x5859('0x2b')]);_0x11601d['wrap'](_0x1eccd4,_0x11601d['createAttributeElement'](_0x5859('0x55')));});}),this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')]('dataDowncast')[_0x5859('0x97')]({'model':_0x5859('0x29')}),this[_0x5859('0xaa')]['editing']['downcastDispatcher']['on'](_0x5859('0x10a'),function(_0x27f9f4){const _0x2eeb0d=_0x27f9f4[_0x5859('0xa')][_0x5859('0xb5')](_0x5859('0xcd'));return(_0x4bd0d6,_0x4bcafb,_0x4d9b71)=>{const _0x1d0fee=_0x4bcafb[_0x5859('0x7b')][_0x5859('0x116')](':')[0x1],_0x2858ff=_0x2eeb0d['_getChangeFromId'](_0x1d0fee);if(!_0x2858ff)return null;const _0x42eaba=_0x5859('0x28')==_0x2858ff[_0x5859('0x4a')]?'split':_0x5859('0x10d');if(!_0x4d9b71[_0x5859('0xfe')][_0x5859('0x9e')](_0x4bcafb[_0x5859('0x8a')],_0x4bd0d6[_0x5859('0x61')]))return;const _0x2a4aa3=_0x4bcafb[_0x5859('0x8a')][_0x5859('0x3')](),_0x1660dc=_0x4bcafb[_0x5859('0x8a')][_0x5859('0x27')],_0x2da316=_0x27f9f4[_0x5859('0x67')]['schema'];let _0x112a64=null,_0x564fa6=null,_0x4b194f=!0x1,_0xfc4a7c=!0x1;for(const _0x46656e of _0x2a4aa3){const _0x55a5dc=_0x46656e[_0x5859('0xfc')];_0x4b194f=_0x4b194f||_0x2da316['isContent'](_0x55a5dc);const _0x1f0e4e=_0x4d9b71[_0x5859('0xc3')][_0x5859('0x6d')](_0x55a5dc);if(_0x1f0e4e&&_0x1f0e4e['getCustomProperty'](_0x5859('0xcb')))return;_0x5859('0x21')==_0x46656e[_0x5859('0x4a')]&&(_0x2da316[_0x5859('0xfb')](_0x55a5dc)&&!_0x2da316[_0x5859('0x24')](_0x55a5dc)&&(_0x55a5dc[_0x5859('0x89')]||_0x1660dc['isAtEnd']?_0x112a64&&_0x112a64['parent']==_0x55a5dc||(_0x112a64=_0x55a5dc,_0x39b4cb(_0x46656e[_0x5859('0x6')]),_0xfc4a7c=!0x0):_0x564fa6=_0x564fa6||_0x46656e[_0x5859('0x6')]));}function _0x39b4cb(_0x123814){const _0x5bda41=_0x4d9b71[_0x5859('0x6e')][_0x5859('0xa1')]('span',{'class':'ck-suggestion-marker-'+_0x42eaba}),_0x365653=_0x4d9b71[_0x5859('0xc3')][_0x5859('0xc5')](_0x123814);_0x2858ff[_0x5859('0x11c')]['isSuggestion']&&_0x4d9b71[_0x5859('0x6e')][_0x5859('0x120')](_0x5859('0x9b')+_0x42eaba+_0x5859('0xcf'),_0x5bda41),_0x2eeb0d['activeChange']==_0x2858ff&&_0x4d9b71[_0x5859('0x6e')]['addClass'](_0x5859('0x13'),_0x5bda41),_0x4d9b71[_0x5859('0x6e')]['insert'](_0x365653,_0x5bda41),_0x4d9b71['mapper'][_0x5859('0xe4')](_0x5bda41,_0x4bcafb[_0x5859('0x7b')]);}_0x4b194f||_0xfc4a7c||!_0x564fa6||_0x39b4cb(_0x564fa6);};}(this[_0x5859('0xaa')]),{'priority':'high'}),this[_0x5859('0xaa')]['editing']['downcastDispatcher']['on'](_0x5859('0xa5'),(_0x2a8053,_0x6ff939,_0x59dd00)=>{const _0x1d6305=_0x59dd00['mapper'][_0x5859('0x6b')](_0x6ff939['markerName']);if(_0x1d6305)for(const _0x2d368b of _0x1d6305)(_0x2d368b[_0x5859('0x37')](_0x5859('0xea'))||_0x2d368b[_0x5859('0x37')](_0x5859('0x121')))&&(_0x59dd00[_0x5859('0xc3')][_0x5859('0xa8')](_0x2d368b,_0x6ff939[_0x5859('0x7b')]),_0x59dd00[_0x5859('0x6e')][_0x5859('0xb6')](_0x2d368b));},{'priority':_0x5859('0x46')}),this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0x73')]['on'](_0x5859('0x10a'),(_0x5af706,_0x174d53,_0x487493)=>{const _0x2a027d=_0x174d53['markerName'][_0x5859('0x116')](':')[0x1],_0x2a4aba=this[_0x5859('0x88')](_0x2a027d);if(!_0x2a4aba)return null;const _0x3b0769=_0x5859('0x28')==_0x2a4aba[_0x5859('0x4a')]?_0x5859('0x116'):_0x5859('0x10d');if(_0x487493[_0x5859('0xfe')]['test'](_0x174d53[_0x5859('0x8a')],_0x5af706[_0x5859('0x61')]))for(const _0x446c47 of _0x174d53['markerRange'][_0x5859('0x117')]()){if(!_0x446c47['is'](_0x5859('0xe1'),_0x5859('0x107')))continue;const _0x1171da=_0x487493[_0x5859('0x6e')]['createUIElement'](_0x5859('0x55'),{'class':_0x5859('0x9b')+_0x3b0769}),_0x59c87d=_0x487493['mapper'][_0x5859('0xc5')](this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x2d')](_0x446c47));_0x2a4aba['data'][_0x5859('0x47')]&&_0x487493[_0x5859('0x6e')][_0x5859('0x120')](_0x5859('0x9b')+_0x3b0769+_0x5859('0xcf'),_0x1171da),this[_0x5859('0x10c')]==_0x2a4aba&&_0x487493['writer']['addClass'](_0x5859('0x13'),_0x1171da),_0x487493[_0x5859('0x6e')][_0x5859('0x8')](_0x59c87d,_0x1171da),_0x487493[_0x5859('0xc3')]['bindElementToMarker'](_0x1171da,_0x174d53['markerName']);}},{'priority':_0x5859('0x46')}),this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x5b')]['on']('change',()=>{this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0xcc')]['change'](_0x34f572=>{for(const _0x246558 of this[_0x5859('0xaa')]['model'][_0x5859('0x5b')][_0x5859('0xd9')]()){const _0x35c19a=this[_0x5859('0xaa')][_0x5859('0x67')]['document'][_0x5859('0x8c')](_0x246558),_0x3900e4=this[_0x5859('0xaa')][_0x5859('0x76')]['view']['document']['getRoot'](_0x246558);if(_0x3900e4){const _0x51a0d5=_0x35c19a[_0x5859('0x56')](_0x5859('0x108'));if(_0x34f572['removeAttribute'](_0x5859('0x111'),_0x3900e4),_0x34f572['removeClass'](_0x5859('0xbb'),_0x3900e4),_0x34f572['removeClass']('ck-revision-history-root-remove',_0x3900e4),_0x34f572[_0x5859('0xab')]('ck-revision-history-root--active',_0x3900e4),_0x51a0d5){const _0x30f4fb=this[_0x5859('0x88')](_0x51a0d5);if(!_0x30f4fb)return null;_0x34f572[_0x5859('0x105')](_0x5859('0x111'),_0x51a0d5,_0x3900e4),_0x34f572[_0x5859('0x120')](_0x5859('0x85')+_0x30f4fb[_0x5859('0x4a')],_0x3900e4),this['activeChange']==_0x30f4fb&&_0x34f572['addClass'](_0x5859('0xe8'),_0x3900e4);}}}});}),this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')]('upcast')[_0x5859('0xde')]({'view':_0x5859('0x7a'),'model':_0x1b5d52=>_0x5859('0xbc')+_0x1b5d52,'converterPriority':_0x5859('0xf3')}),this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')](_0x5859('0x4c'))[_0x5859('0xde')]({'view':_0x5859('0x8f'),'model':_0xcbff38=>'revision-suggestion:'+_0xcbff38,'converterPriority':'highest'}),this[_0x5859('0xaa')]['conversion']['for'](_0x5859('0x26'))[_0x5859('0x97')]({'model':_0x5859('0xd5'),'view':_0x3f457c=>({'name':_0x5859('0x81')+_0x3f457c,'group':'revision-suggestion'}),'converterPriority':_0x5859('0xf3')}),this['editor'][_0x5859('0xb0')]['for'](_0x5859('0x4'))['markerToHighlight']({'model':_0x5859('0xd5'),'view':_0x2129ad=>{const _0x577f2b=_0x2129ad['markerName'][_0x5859('0x116')](':')[0x1];return _0x5859('0x113')!=_0x577f2b&&'deletion'!=_0x577f2b?null:{'classes':[_0x5859('0xb'),_0x5859('0x9')+_0x577f2b]};}}),this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0x73')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x5859('0xaa')],_0x5859('0x10d')),{'priority':'high'}),this['editor'][_0x5859('0x76')][_0x5859('0x73')]['on'](_0x5859('0xf1'),et(this[_0x5859('0xaa')],'split'),{'priority':_0x5859('0x46')}),this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0x73')]['on']('removeMarker:revision-suggestion',(_0x4cd766,_0x260247,_0x31a468)=>{const _0x20cb3d=_0x31a468[_0x5859('0xc3')][_0x5859('0x6b')](_0x260247[_0x5859('0x7b')]);if(_0x20cb3d)for(const _0x1fd772 of _0x20cb3d)_0x1fd772['is'](_0x5859('0xc4'))&&(_0x31a468['mapper'][_0x5859('0xa8')](_0x1fd772,_0x260247[_0x5859('0x7b')]),_0x31a468[_0x5859('0x6e')]['remove'](_0x1fd772));},{'priority':'high'});}[_0x5859('0x88')](_0x587c48){return this[_0x5859('0x60')]['get'](_0x587c48);}[_0x5859('0xe5')](_0x30b3c8){return this['_changeView']&&this[_0x5859('0x4d')]['destroy'](),this[_0x5859('0x4d')]=new _0xbeef29(this['editor'][_0x5859('0xe7')],_0x30b3c8),this[_0x5859('0x4d')];}[_0x5859('0x65')](){this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x5b')][_0x5859('0x7')]['observeMarkers'](_0x5859('0x29')),this['on'](_0x5859('0xb2'),(_0x187616,_0x3335f3,_0x3eb193,_0x1ce59e)=>{_0x1ce59e&&this[_0x5859('0xce')][_0x5859('0xb6')](_0x1ce59e),_0x3eb193&&(this[_0x5859('0xce')]['add']({'view':_0x3eb193,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3368a4=this[_0x5859('0xaa')][_0x5859('0x76')],_0x1d9833=this['_getChangeFromId'](_0x3eb193[_0x5859('0x48')]);let _0x39b50c;if(_0x1d9833[_0x5859('0x11c')][_0x5859('0x57')]){const _0x3c8d1d=_0x3368a4[_0x5859('0xcc')]['getDomRoot'](_0x1d9833[_0x5859('0x6c')]);_0x39b50c=Array[_0x5859('0x8d')](_0x3c8d1d['getClientRects']());}else{const _0x34d8c4=this['editor']['model'][_0x5859('0x30')][_0x5859('0xb5')](_0x5859('0x17')+_0x3eb193['changeId']);_0x39b50c=Array[_0x5859('0x8d')](_0x3368a4['mapper'][_0x5859('0x6b')](_0x34d8c4['name']))[_0x5859('0x3b')](_0x40a9c1=>_0x3368a4[_0x5859('0xcc')]['domConverter'][_0x5859('0x34')](_0x40a9c1))[_0x5859('0x3b')](_0x5019b3=>Array[_0x5859('0x8d')](_0x5019b3[_0x5859('0x104')]()))['flat']();}if(!this[_0x5859('0xa4')])return _0x39b50c[0x0];return _0x39b50c[_0x5859('0x1f')](_0x32e2d8=>_0x32e2d8[_0x5859('0x1d')]-0x3<=this['_activeViewTarget']['y']&&_0x32e2d8['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x32e2d8[_0x5859('0xad')]-0x3<=this[_0x5859('0xa4')]['x']&&_0x32e2d8[_0x5859('0x66')]+0x3>=this['_activeViewTarget']['x'])||_0x39b50c[0x0];}}}),this[_0x5859('0xce')][_0x5859('0x87')](_0x5859('0x68')));}),this['on'](_0x5859('0x58'),(_0x1d1e8a,_0x3d0037,_0x7e47f2,_0x27178e)=>{this[_0x5859('0xc7')]=_0x7e47f2?this[_0x5859('0xe5')](_0x7e47f2):null,this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x45')](()=>{const _0x20b26f=this[_0x5859('0xaa')]['editing'];_0x27178e&&(_0x27178e[_0x5859('0x11c')]['isOnRoot']?_0x20b26f['view'][_0x5859('0x45')](_0x2c1d25=>{_0x2c1d25['removeClass'](_0x5859('0xe8'),_0x20b26f[_0x5859('0xcc')][_0x5859('0x5b')][_0x5859('0x8c')](_0x27178e[_0x5859('0x6c')]));}):_0x20b26f[_0x5859('0x3a')](_0x5859('0x17')+_0x27178e['id'])),_0x7e47f2&&(_0x7e47f2['data']['isOnRoot']?_0x20b26f[_0x5859('0xcc')][_0x5859('0x45')](_0x22bcf2=>{_0x22bcf2[_0x5859('0x120')](_0x5859('0xe8'),_0x20b26f[_0x5859('0xcc')][_0x5859('0x5b')][_0x5859('0x8c')](_0x7e47f2[_0x5859('0x6c')]));}):_0x20b26f[_0x5859('0x3a')](_0x5859('0x17')+_0x7e47f2['id']));});}),this[_0x5859('0x0')](this['editor']['editing'][_0x5859('0xcc')]['document'],_0x5859('0xeb'),(_0xecbf1f,_0x12214d)=>{if(this[_0x5859('0x10c')])return;const _0x4abda7=this['_findChangeIdFromDomTarget'](_0x12214d[_0x5859('0x7c')]),_0x5e3184=this[_0x5859('0x60')][_0x5859('0xb5')](_0x4abda7);_0x5e3184?(this[_0x5859('0xa4')]={'x':_0x12214d['domEvent']['x'],'y':_0x12214d[_0x5859('0x11e')]['y']},this[_0x5859('0xc7')]=this[_0x5859('0xe5')](_0x5e3184)):(this[_0x5859('0xa4')]=null,this[_0x5859('0xc7')]=null);}),this[_0x5859('0x0')](this[_0x5859('0xaa')][_0x5859('0x76')]['view']['document'],_0x5859('0x4e'),(_0x588d72,_0x45f105)=>{const _0x5bc9cb=this[_0x5859('0x9c')](_0x45f105[_0x5859('0x7c')]),_0x103bde=this['_changeIdToChange']['get'](_0x5bc9cb);_0x103bde?(this[_0x5859('0xa4')]={'x':_0x45f105['domEvent']['x'],'y':_0x45f105[_0x5859('0x11e')]['y']},_0x103bde===this[_0x5859('0x10c')]?this[_0x5859('0xce')][_0x5859('0x90')]():this[_0x5859('0x10c')]=_0x103bde):(this['_activeViewTarget']=null,this[_0x5859('0x10c')]=null);});}['_findChangeIdFromDomTarget'](_0x3e261f){do{const _0x46d276=_0x3e261f[_0x5859('0x56')]('data-change-id');if(_0x46d276)return _0x46d276;_0x3e261f=_0x3e261f[_0x5859('0xd4')];}while(_0x3e261f);return null;}['_cleanMarkers'](){this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x45')](_0x2c1611=>{for(const _0x2adb8b of this['editor'][_0x5859('0x67')]['markers'])_0x2c1611[_0x5859('0x11b')](_0x2adb8b);});}}function et(_0x23ef96,_0x23f7a8){return(_0x2cf7f1,_0x10f71c,_0x15ad98)=>{if(!_0x15ad98[_0x5859('0xfe')][_0x5859('0x9e')](_0x10f71c[_0x5859('0x8a')],_0x2cf7f1[_0x5859('0x61')]))return;const _0x1b922c=_0x10f71c['markerRange'][_0x5859('0x3')](),_0x4fc342=_0x10f71c['markerRange'][_0x5859('0x27')],_0x20261d=_0x23ef96[_0x5859('0x67')][_0x5859('0xff')];let _0x2e453a=null,_0x5f538a=null,_0x558b0c=!0x1,_0x2068fe=!0x1;for(const _0x283652 of _0x1b922c){const _0x381d9a=_0x283652[_0x5859('0xfc')];_0x558b0c=_0x558b0c||_0x20261d[_0x5859('0x50')](_0x381d9a);const _0x484e1e=_0x15ad98['mapper'][_0x5859('0x6d')](_0x381d9a);if(_0x484e1e&&_0x484e1e[_0x5859('0x44')]('addHighlight'))return;_0x5859('0x21')==_0x283652[_0x5859('0x4a')]&&(_0x20261d[_0x5859('0xfb')](_0x381d9a)&&!_0x20261d[_0x5859('0x24')](_0x381d9a)&&(_0x381d9a[_0x5859('0x89')]||_0x4fc342[_0x5859('0x119')]?_0x2e453a&&_0x2e453a[_0x5859('0xd4')]==_0x381d9a||(_0x2e453a=_0x381d9a,_0x41c99d(_0x283652[_0x5859('0x6')]),_0x2068fe=!0x0):_0x5f538a=_0x5f538a||_0x283652[_0x5859('0x6')]));}function _0x41c99d(_0x1f890d){const _0x7dfe5f=_0x15ad98[_0x5859('0xc3')][_0x5859('0xc5')](_0x1f890d),_0x3c9f3e=_0x15ad98[_0x5859('0x6e')][_0x5859('0xa1')]('span',{'class':_0x5859('0x9')+_0x23f7a8});_0x15ad98[_0x5859('0x6e')]['insert'](_0x7dfe5f,_0x3c9f3e),_0x15ad98[_0x5859('0xc3')][_0x5859('0xe4')](_0x3c9f3e,_0x10f71c[_0x5859('0x7b')]);}_0x558b0c||_0x2068fe||!_0x5f538a||_0x41c99d(_0x5f538a);};}export class RestoreRevisionCommand extends _0x4034ce{constructor(_0x379ed3){super(_0x379ed3);const _0xb1b445=_0x379ed3[_0x5859('0xa')][_0x5859('0xb5')](d);this[_0x5859('0x83')]=!0x1,this[_0x5859('0x0')](_0xb1b445,_0x5859('0xd0'),()=>this['refresh']()),this['listenTo'](_0xb1b445,'change:isEnabled',()=>this[_0x5859('0x1a')]());}[_0x5859('0x4f')](){const _0x13cb84=this[_0x5859('0xaa')],_0x938076=_0x13cb84[_0x5859('0xa')][_0x5859('0xb5')](d),_0x370422=_0x938076[_0x5859('0x12')]?_0x938076[_0x5859('0x94')][_0x5859('0x40')]:null;_0x13cb84['config'][_0x5859('0xb5')](_0x5859('0xb1'))[_0x5859('0x11')](_0x370422);}[_0x5859('0x1a')](){const {isReady:_0x43ba79,isEnabled:_0x4b002c}=this[_0x5859('0xaa')]['plugins'][_0x5859('0xb5')](d);this[_0x5859('0xfd')]=_0x43ba79&&_0x4b002c;}}export class ShowChangeCommand extends _0x4034ce{constructor(_0xb9a75c,{direction:_0x9e70e2}){super(_0xb9a75c);const _0x3c9a8d=_0xb9a75c[_0x5859('0xa')][_0x5859('0xb5')](d);this[_0x5859('0x83')]=!0x1,this[_0x5859('0x91')]=_0x5859('0x15')===_0x9e70e2?0x1:-0x1,this[_0x5859('0x0')](_0x3c9a8d,_0x5859('0xd0'),()=>this[_0x5859('0x1a')]()),this[_0x5859('0x0')](_0x3c9a8d,_0x5859('0x4b'),()=>this[_0x5859('0x1a')]()),this[_0x5859('0x0')](_0x3c9a8d,'change:activeChange',()=>this[_0x5859('0x1a')]());}['execute'](){const _0xc3523c=this[_0x5859('0xaa')],_0x270ebf=_0xc3523c[_0x5859('0xa')][_0x5859('0xb5')](d),{isNavigationMode:_0xee6536,currentChangeNumber:_0x2f3abb}=_0x270ebf;let _0x2cdf0a;if(_0x270ebf[_0x5859('0x10c')]=_0xee6536?_0x270ebf[_0x5859('0x94')]['changes'][_0x5859('0xb5')](_0x2f3abb+this['_step']):_0x270ebf[_0x5859('0x94')][_0x5859('0x7e')]['first'],_0x270ebf[_0x5859('0x10c')][_0x5859('0x11c')]['isOnRoot'])_0x2cdf0a=_0xc3523c[_0x5859('0x76')][_0x5859('0xcc')]['getDomRoot'](_0x270ebf[_0x5859('0x10c')][_0x5859('0x6c')]);else{const _0x232d3e=_0xc3523c[_0x5859('0x67')]['markers'][_0x5859('0xb5')](_0x5859('0x17')+_0x270ebf[_0x5859('0x10c')]['id']);_0x2cdf0a=_0x5a0b75(_0xc3523c['editing'],_0x232d3e);}_0x5cbda3({'target':_0x2cdf0a,'viewportOffset':0x28});}[_0x5859('0x1a')](){const {isNavigationMode:_0x568de6,currentChangeNumber:_0x7740f8,numberOfChanges:_0x422a78,isReady:_0x11eb63,isEnabled:_0x4c6730}=this['editor'][_0x5859('0xa')][_0x5859('0xb5')](d);this['isEnabled']=!!(_0x4c6730&&_0x11eb63&&_0x422a78)&&(!_0x568de6||(0x1===this[_0x5859('0x91')]?_0x7740f8<_0x422a78-0x1:_0x7740f8>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4df8=['execute','change:isActionsDropdownOpen','_action','Name\x20this\x20revision','ck-on','locale','name','set','panelPosition','map','buttonView','children','isEnabled','listView','isActionsDropdownOpen','stopPropagation','isVisible','threeVerticalDots','source','action','items','find','Restore\x20this\x20revision','add','function','ck-revision-history-sidebar__revision__actions','extendTemplate','model','bindTemplate','Compare\x20against\x20selected','first','Show\x20more\x20items'];(function(_0x37396a,_0x4df86a){const _0x239f77=function(_0x57eabc){while(--_0x57eabc){_0x37396a['push'](_0x37396a['shift']());}};_0x239f77(++_0x4df86a);}(_0x4df8,0x14c));const _0x239f=function(_0x37396a,_0x4df86a){_0x37396a=_0x37396a-0x0;let _0x239f77=_0x4df8[_0x37396a];return _0x239f77;};import{Collection as _0x2986e0}from'ckeditor5/src/utils';import{icons as _0x1c0ad5}from'ckeditor5/src/core';import{Model as _0x233442,addListToDropdown as _0x3b68f5,createDropdown as _0x502e4b}from'ckeditor5/src/ui';import{getTranslation as _0x2f2e34}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x5eece3,_0x4d4ca9){const _0x90314c=_0x5eece3[_0x239f('0x10')],_0x3204ce=_0x5eece3[_0x239f('0x19')],_0x55fabe=_0x502e4b(_0x3204ce);_0x55fabe[_0x239f('0x1c')]='sw';const _0x197672=function(_0x41277a,_0x4e172a){const _0x13d3ef=function(_0x113914,_0xcaba0f){const _0x5ec64b=_0x113914[_0x239f('0x19')],_0x18e7d5={'Compare\x20against\x20selected':_0x2f2e34(_0x5ec64b,_0x239f('0x11')),'Name\x20this\x20revision':_0x2f2e34(_0x5ec64b,_0x239f('0x17')),'Restore\x20this\x20revision':_0x2f2e34(_0x5ec64b,_0x239f('0xa'))};return _0xcaba0f[_0x239f('0x1d')](_0x2e257c=>{const _0x5e1c54=_0x18e7d5[_0x2e257c['name']];return _0x5e1c54&&_0x5e1c54!==_0x2e257c[_0x239f('0x1a')]&&(_0x2e257c[_0x239f('0x1a')]=_0x5e1c54),_0x2e257c;});}(_0x41277a,_0x4e172a),_0x40f3bd=new _0x2986e0();for(const _0x6fc635 of _0x13d3ef){const _0xb82f2b={'type':'button','model':new _0x233442({'label':_0x6fc635[_0x239f('0x1a')],'class':_0x6fc635['class'],'withText':!0x0,'_action':_0x6fc635[_0x239f('0x7')]})};_0xb82f2b[_0x239f('0xf')]['bind'](_0x239f('0x0'))['to'](_0x41277a,_0x239f('0x2'),_0x3f6ed6=>_0x239f('0xc')!=typeof _0x6fc635['isEnabled']||(!_0x3f6ed6||_0x6fc635['isEnabled'](_0x41277a))),_0x40f3bd[_0x239f('0xb')](_0xb82f2b);}return _0x40f3bd;}(_0x5eece3,_0x4d4ca9);return _0x5eece3['bind'](_0x239f('0x2'))['to'](_0x55fabe,'isOpen'),_0x55fabe[_0x239f('0x1e')][_0x239f('0x1b')]({'label':_0x2f2e34(_0x3204ce,_0x239f('0x13')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1c0ad5[_0x239f('0x5')]}),_0x55fabe[_0x239f('0xe')]({'attributes':{'class':[_0x239f('0xd'),_0x90314c['if']('isActionsDropdownOpen',_0x239f('0x18'))]},'on':{'click':_0x90314c['to'](_0x2db2b1=>_0x2db2b1[_0x239f('0x3')]())}}),_0x55fabe['on'](_0x239f('0x14'),_0x34b7a0=>{_0x5eece3['isReady']&&_0x239f('0xc')==typeof _0x34b7a0[_0x239f('0x6')][_0x239f('0x16')]&&_0x34b7a0[_0x239f('0x6')][_0x239f('0x16')](_0x5eece3);}),_0x3b68f5(_0x55fabe,_0x197672),_0x55fabe['listenTo'](_0x5eece3,_0x239f('0x15'),(_0x2b5e23,_0x53ef31,_0x2c927e)=>{if(_0x2c927e)for(const _0x30730d of _0x55fabe[_0x239f('0x1')][_0x239f('0x8')]){const _0x172972=_0x30730d[_0x239f('0x1f')][_0x239f('0x12')],_0x58aa41=_0x4d4ca9[_0x239f('0x9')](_0xef5d8a=>_0xef5d8a['action']===_0x172972['_action'])[_0x239f('0x4')];_0x30730d[_0x239f('0x4')]=void 0x0===_0x58aa41||_0x58aa41(_0x5eece3);}}),_0x55fabe;}
23
+ const _0xc530=['children','bind','change:isActionsDropdownOpen','extendTemplate','find','ck-revision-history-sidebar__revision__actions','function','Name\x20this\x20revision','isEnabled','map','Restore\x20this\x20revision','add','_action','source','buttonView','name','isActionsDropdownOpen','panelPosition','Compare\x20against\x20selected','ck-on','isReady','action','set','execute','model','threeVerticalDots','listView','button','isVisible'];(function(_0x2b15fc,_0xc5307f){const _0x112f62=function(_0x3eb474){while(--_0x3eb474){_0x2b15fc['push'](_0x2b15fc['shift']());}};_0x112f62(++_0xc5307f);}(_0xc530,0x119));const _0x112f=function(_0x2b15fc,_0xc5307f){_0x2b15fc=_0x2b15fc-0x0;let _0x112f62=_0xc530[_0x2b15fc];return _0x112f62;};import{Collection as _0x216c2c}from'ckeditor5/src/utils';import{icons as _0x417057}from'ckeditor5/src/core';import{Model as _0x5dfe4c,addListToDropdown as _0x36856d,createDropdown as _0x277f67}from'ckeditor5/src/ui';import{getTranslation as _0x2ec075}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x43a6d5,_0x49f54e){const _0x114618=_0x43a6d5['bindTemplate'],_0x4a7036=_0x43a6d5['locale'],_0x1f5868=_0x277f67(_0x4a7036);_0x1f5868[_0x112f('0x1a')]='sw';const _0x15b94c=function(_0x38a13a,_0x3f7e79){const _0x4e9157=function(_0x31f424,_0x1d3014){const _0x2aaf7b=_0x31f424['locale'],_0x26f5ff={'Compare\x20against\x20selected':_0x2ec075(_0x2aaf7b,_0x112f('0x1b')),'Name\x20this\x20revision':_0x2ec075(_0x2aaf7b,_0x112f('0x10')),'Restore\x20this\x20revision':_0x2ec075(_0x2aaf7b,_0x112f('0x13'))};return _0x1d3014[_0x112f('0x12')](_0x25271c=>{const _0x89b631=_0x26f5ff[_0x25271c['name']];return _0x89b631&&_0x89b631!==_0x25271c[_0x112f('0x18')]&&(_0x25271c[_0x112f('0x18')]=_0x89b631),_0x25271c;});}(_0x38a13a,_0x3f7e79),_0x7da905=new _0x216c2c();for(const _0xe2dd24 of _0x4e9157){const _0x270d2b={'type':_0x112f('0x7'),'model':new _0x5dfe4c({'label':_0xe2dd24[_0x112f('0x18')],'class':_0xe2dd24['class'],'withText':!0x0,'_action':_0xe2dd24[_0x112f('0x1')]})};_0x270d2b[_0x112f('0x4')]['bind'](_0x112f('0x11'))['to'](_0x38a13a,_0x112f('0x19'),_0x2327d9=>_0x112f('0xf')!=typeof _0xe2dd24[_0x112f('0x11')]||(!_0x2327d9||_0xe2dd24[_0x112f('0x11')](_0x38a13a))),_0x7da905[_0x112f('0x14')](_0x270d2b);}return _0x7da905;}(_0x43a6d5,_0x49f54e);return _0x43a6d5[_0x112f('0xa')](_0x112f('0x19'))['to'](_0x1f5868,'isOpen'),_0x1f5868[_0x112f('0x17')][_0x112f('0x2')]({'label':_0x2ec075(_0x4a7036,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x417057[_0x112f('0x5')]}),_0x1f5868[_0x112f('0xc')]({'attributes':{'class':[_0x112f('0xe'),_0x114618['if'](_0x112f('0x19'),_0x112f('0x1c'))]},'on':{'click':_0x114618['to'](_0x3bfdd7=>_0x3bfdd7['stopPropagation']())}}),_0x1f5868['on'](_0x112f('0x3'),_0x2c0cc6=>{_0x43a6d5[_0x112f('0x0')]&&_0x112f('0xf')==typeof _0x2c0cc6['source'][_0x112f('0x15')]&&_0x2c0cc6[_0x112f('0x16')][_0x112f('0x15')](_0x43a6d5);}),_0x36856d(_0x1f5868,_0x15b94c),_0x1f5868['listenTo'](_0x43a6d5,_0x112f('0xb'),(_0x3fd457,_0xe7498e,_0x35b8d2)=>{if(_0x35b8d2)for(const _0x52404c of _0x1f5868[_0x112f('0x6')]['items']){const _0x108233=_0x52404c[_0x112f('0x9')]['first'],_0x16501e=_0x49f54e[_0x112f('0xd')](_0x1081a8=>_0x1081a8[_0x112f('0x1')]===_0x108233[_0x112f('0x15')])[_0x112f('0x8')];_0x52404c[_0x112f('0x8')]=void 0x0===_0x16501e||_0x16501e(_0x43a6d5);}}),_0x1f5868;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52e8=['setTemplate','span','set','Revision\x20author','ck-revision-history-sidebar__revision-author__name','name','ck-revision-history-sidebar__revision-author','Revision\x20creator'];(function(_0x13f779,_0x52e8fe){const _0x5bf6cd=function(_0x537e5e){while(--_0x537e5e){_0x13f779['push'](_0x13f779['shift']());}};_0x5bf6cd(++_0x52e8fe);}(_0x52e8,0xb7));const _0x5bf6=function(_0x13f779,_0x52e8fe){_0x13f779=_0x13f779-0x0;let _0x5bf6cd=_0x52e8[_0x13f779];return _0x5bf6cd;};import{View as _0x35ca4c,IconView as _0x18c115}from'ckeditor5/src/ui';import{getTranslation as _0x5b40ae}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x3a7a99 from'../../../theme/icons/user.svg';export default class ti extends _0x35ca4c{constructor(_0x36c045,_0x74d9ba,_0x36417e){super(_0x36c045);const _0x15a74b=new _0x18c115();_0x15a74b[_0x5bf6('0x3')]({'content':_0x3a7a99,'viewBox':'0\x200\x2011\x2010'});const _0x5c95a4=['ck',_0x5bf6('0x7')];_0x36417e&&_0x5c95a4['push']('ck-revision-history-sidebar__revision-author_creator');const _0x48e45f=[{'tag':_0x5bf6('0x2'),'attributes':{'class':['ck',_0x5bf6('0x5')],'title':_0x5b40ae(_0x36c045,_0x36417e?_0x5bf6('0x0'):_0x5bf6('0x4'))},'children':[_0x15a74b,_0x74d9ba[_0x5bf6('0x6')]]}];this[_0x5bf6('0x1')]({'tag':'li','attributes':{'class':_0x5c95a4},'children':_0x48e45f});}}
23
+ const _0x61fa=['Revision\x20creator','setTemplate','push','span','Revision\x20author','0\x200\x2011\x2010','set','ck-revision-history-sidebar__revision-author__name','name','ck-revision-history-sidebar__revision-author_creator'];(function(_0x24a900,_0x61fa44){const _0x22988a=function(_0x3361ea){while(--_0x3361ea){_0x24a900['push'](_0x24a900['shift']());}};_0x22988a(++_0x61fa44);}(_0x61fa,0x6d));const _0x2298=function(_0x24a900,_0x61fa44){_0x24a900=_0x24a900-0x0;let _0x22988a=_0x61fa[_0x24a900];return _0x22988a;};import{View as _0x158df7,IconView as _0x4e5629}from'ckeditor5/src/ui';import{getTranslation as _0x205f2f}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x4b3adc from'../../../theme/icons/user.svg';export default class ti extends _0x158df7{constructor(_0x12919b,_0x1eff3b,_0x3b8e41){super(_0x12919b);const _0x559480=new _0x4e5629();_0x559480[_0x2298('0x7')]({'content':_0x4b3adc,'viewBox':_0x2298('0x6')});const _0x18bca4=['ck','ck-revision-history-sidebar__revision-author'];_0x3b8e41&&_0x18bca4[_0x2298('0x3')](_0x2298('0x0'));const _0x5e1615=[{'tag':_0x2298('0x4'),'attributes':{'class':['ck',_0x2298('0x8')],'title':_0x205f2f(_0x12919b,_0x3b8e41?_0x2298('0x1'):_0x2298('0x5'))},'children':[_0x559480,_0x1eff3b[_0x2298('0x9')]]}];this[_0x2298('0x2')]({'tag':'li','attributes':{'class':_0x18bca4},'children':_0x5e1615});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4dd1=['Revision\x20name','ck-revision-history-sidebar__revision-name','span'];(function(_0x5a1244,_0x4dd1c7){var _0x2a7f45=function(_0x466c85){while(--_0x466c85){_0x5a1244['push'](_0x5a1244['shift']());}};_0x2a7f45(++_0x4dd1c7);}(_0x4dd1,0x1de));var _0x2a7f=function(_0x5a1244,_0x4dd1c7){_0x5a1244=_0x5a1244-0x0;var _0x2a7f45=_0x4dd1[_0x5a1244];return _0x2a7f45;};import{LabeledFieldView as _0x2ebf68}from'ckeditor5/src/ui';import{getTranslation as _0x8dceb5}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x2ebf68{constructor(_0x5c86a6,_0x4d196d){super(_0x5c86a6,_0x4d196d),this['set']({'label':_0x8dceb5(_0x5c86a6,_0x2a7f('0x2'))}),this['extendTemplate']({'tag':_0x2a7f('0x1'),'attributes':{'class':[_0x2a7f('0x0')]}});}}
23
+ var _0x53f8=['ck-revision-history-sidebar__revision-name','extendTemplate','set','Revision\x20name'];(function(_0x46d110,_0x53f810){var _0x18a9e6=function(_0x36cb30){while(--_0x36cb30){_0x46d110['push'](_0x46d110['shift']());}};_0x18a9e6(++_0x53f810);}(_0x53f8,0x18d));var _0x18a9=function(_0x46d110,_0x53f810){_0x46d110=_0x46d110-0x0;var _0x18a9e6=_0x53f8[_0x46d110];return _0x18a9e6;};import{LabeledFieldView as _0x21fd53}from'ckeditor5/src/ui';import{getTranslation as _0x4a956c}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x21fd53{constructor(_0x309a87,_0x4375ae){super(_0x309a87,_0x4375ae),this[_0x18a9('0x1')]({'label':_0x4a956c(_0x309a87,_0x18a9('0x2'))}),this[_0x18a9('0x0')]({'tag':'span','attributes':{'class':[_0x18a9('0x3')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x397d=['set','_revision','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__actions_dropdown_open','revisionNameView','creator','value','srcElement','length','isEnabled','filter','ck-reset','fire','220','select','from','deselect','ck-revision-history-sidebar__revision__date','authors','isSelected','render','.ck-thread__remove-confirm','bindTemplate','ck-revision-history-sidebar__revision_highlighted','uiLanguage','ck-revision-history-sidebar__revision__controls-wrapper','isHighlighted','isActionsDropdownOpen','element','bind','fieldView','extendTemplate','isReady','closest','unshift','_createdAtFormatted','highlight','name','revisionActionsView','listenTo','createdAt'];(function(_0x27a9c9,_0x397dec){const _0xa4ef3d=function(_0x38b6af){while(--_0x38b6af){_0x27a9c9['push'](_0x27a9c9['shift']());}};_0xa4ef3d(++_0x397dec);}(_0x397d,0x10a));const _0xa4ef=function(_0x27a9c9,_0x397dec){_0x27a9c9=_0x27a9c9-0x0;let _0xa4ef3d=_0x397d[_0x27a9c9];return _0xa4ef3d;};import{View as _0x3e7930,createLabeledInputText as _0x51a769}from'ckeditor5/src/ui';import{ConfirmMixin as _0x343d2a}from'ckeditor5-collaboration/src/collaboration-core';import _0xe2b42b from'./revisionnameview';import _0x2274e5 from'./revisionauthorview';import{dateToPrettyFormat as _0x2db3ed}from'./utils';import{createActionsDropdownView as _0x45e05f}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x343d2a(_0x3e7930){constructor(_0x52eb17,_0x1302b4,_0x26e817){super(_0x52eb17);const _0x282c1e=this[_0xa4ef('0x2')],_0x5809dd=function(_0x42dc8a,_0x39be77){const _0x5dc416=Array[_0xa4ef('0x24')](_0x39be77[_0xa4ef('0x27')])[_0xa4ef('0x1f')](_0x2434ef=>_0x2434ef!=_0x39be77[_0xa4ef('0x1a')]);return _0x39be77[_0xa4ef('0x1a')]&&_0x5dc416[_0xa4ef('0xe')](_0x39be77[_0xa4ef('0x1a')]),_0x5dc416['map'](_0x3454a2=>new _0x2274e5(_0x42dc8a,_0x3454a2,_0x3454a2==_0x39be77['creator']));}(_0x52eb17,_0x1302b4);this['id']=_0x1302b4['id'],this[_0xa4ef('0x16')]=_0x1302b4,this['bind'](_0xa4ef('0x11'),'createdAt')['to'](_0x1302b4),this[_0xa4ef('0x9')](_0xa4ef('0xf'))['to'](this,_0xa4ef('0x14'),_0x164999=>_0x164999?_0x2db3ed(_0x52eb17[_0xa4ef('0x4')],_0x164999):void 0x0),this[_0xa4ef('0x15')](_0xa4ef('0x28'),!0x1),this[_0xa4ef('0x15')](_0xa4ef('0x6'),!0x1),this[_0xa4ef('0x15')](_0xa4ef('0x7'),!0x1),this[_0xa4ef('0x15')](_0xa4ef('0xc'),!0x1),this[_0xa4ef('0x15')](_0xa4ef('0x1e'),!0x1),this[_0xa4ef('0x19')]=new _0xe2b42b(_0x52eb17,_0x51a769),this[_0xa4ef('0x19')][_0xa4ef('0xa')][_0xa4ef('0xb')]({'attributes':{'maxlength':_0xa4ef('0x22')}}),this[_0xa4ef('0x19')][_0xa4ef('0xa')]['bind'](_0xa4ef('0x1b'),'placeholder')['to'](this,'name',_0xa4ef('0xf')),this[_0xa4ef('0x19')][_0xa4ef('0x9')](_0xa4ef('0x1e'))['to'](this,_0xa4ef('0x28'),this,_0xa4ef('0x1e'),(_0x1f5ed7,_0x5ebdd2)=>_0x1f5ed7&&_0x5ebdd2),this[_0xa4ef('0x12')]=_0x26e817&&_0x26e817[_0xa4ef('0x1d')]?_0x45e05f(this,_0x26e817):'',this[_0xa4ef('0x12')]&&this[_0xa4ef('0x12')][_0xa4ef('0x9')](_0xa4ef('0x1e'))['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0xa4ef('0x20'),'ck-revision-history-sidebar__revision-wrapper',_0x282c1e['if']('isConfirm',_0xa4ef('0x17'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0xa4ef('0x20'),'ck-revision-history-sidebar__revision',_0x282c1e['if'](_0xa4ef('0x1e'),'ck-disabled',_0x514472=>!_0x514472),_0x282c1e['if'](_0xa4ef('0x28'),'ck-revision-history-sidebar__revision_selected'),_0x282c1e['if'](_0xa4ef('0x6'),_0xa4ef('0x3')),_0x282c1e['if']('isActionsDropdownOpen',_0xa4ef('0x18'))]},'children':[this[_0xa4ef('0x19')],{'tag':'span','attributes':{'class':['ck',_0xa4ef('0x26')]},'children':[{'text':_0x282c1e['to'](_0xa4ef('0xf'))}]},{'tag':'div','attributes':{'class':['ck',_0xa4ef('0x5')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x5809dd}]},this[_0xa4ef('0x12')]],'on':{'click':_0x282c1e['to'](_0x2c73ed=>{_0x2c73ed[_0xa4ef('0x1c')][_0xa4ef('0xd')](_0xa4ef('0x1'))||this[_0xa4ef('0xc')]&&this['isEnabled']&&this[_0xa4ef('0x21')](_0xa4ef('0x23'),{'id':this['id']});})}}]});}['render'](){super[_0xa4ef('0x0')]();const _0xbf904b=this[_0xa4ef('0x19')][_0xa4ef('0xa')][_0xa4ef('0x8')];this[_0xa4ef('0x13')](_0xbf904b,'change',()=>{this['fire']('setName',{'id':this['id'],'name':_0xbf904b[_0xa4ef('0x1b')]});});}['select'](){this[_0xa4ef('0x28')]=!0x0;}[_0xa4ef('0x25')](){this[_0xa4ef('0x28')]=!0x1;}[_0xa4ef('0x10')](){this[_0xa4ef('0x6')]=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}
23
+ const _0xef72=['render','uiLanguage','_createdAtFormatted','220','placeholder','name','filter','isActionsDropdownOpen','div','createdAt','ck-revision-history-sidebar__revision-authors','ck-reset','unhighlight','listenTo','length','ck-revision-history-sidebar__revision','fieldView','_revision','highlight','ck-revision-history-sidebar__revision__date','isHighlighted','unshift','ck-revision-history-sidebar__actions_dropdown_open','isConfirm','select','isSelected','revisionActionsView','set','ck-revision-history-sidebar__revision_selected','isEnabled','span','srcElement','value','closest','.ck-thread__remove-confirm','bind','extendTemplate','revisionNameView','creator','setName','setTemplate','map','fire','bindTemplate','from','element','ck-revision-history-sidebar__revision__controls-wrapper','change','ck-revision-history-sidebar__revision_highlighted'];(function(_0x1b066e,_0xef72ca){const _0x346e56=function(_0x34c5ef){while(--_0x34c5ef){_0x1b066e['push'](_0x1b066e['shift']());}};_0x346e56(++_0xef72ca);}(_0xef72,0xd5));const _0x346e=function(_0x1b066e,_0xef72ca){_0x1b066e=_0x1b066e-0x0;let _0x346e56=_0xef72[_0x1b066e];return _0x346e56;};import{View as _0x473d69,createLabeledInputText as _0x434c2b}from'ckeditor5/src/ui';import{ConfirmMixin as _0x52bcdf}from'ckeditor5-collaboration/src/collaboration-core';import _0x4c6ac9 from'./revisionnameview';import _0x5a3331 from'./revisionauthorview';import{dateToPrettyFormat as _0x5efb26}from'./utils';import{createActionsDropdownView as _0x3c7dde}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x52bcdf(_0x473d69){constructor(_0x1805aa,_0x3ad4d7,_0x1132d0){super(_0x1805aa);const _0x56bffc=this[_0x346e('0x1a')],_0x4396b5=function(_0x66a1fa,_0x2b7201){const _0x280bff=Array[_0x346e('0x1b')](_0x2b7201['authors'])[_0x346e('0x26')](_0x56ab21=>_0x56ab21!=_0x2b7201[_0x346e('0x15')]);return _0x2b7201[_0x346e('0x15')]&&_0x280bff[_0x346e('0x4')](_0x2b7201[_0x346e('0x15')]),_0x280bff[_0x346e('0x18')](_0x526e06=>new _0x5a3331(_0x66a1fa,_0x526e06,_0x526e06==_0x2b7201['creator']));}(_0x1805aa,_0x3ad4d7);this['id']=_0x3ad4d7['id'],this[_0x346e('0x0')]=_0x3ad4d7,this[_0x346e('0x12')](_0x346e('0x25'),_0x346e('0x29'))['to'](_0x3ad4d7),this[_0x346e('0x12')]('_createdAtFormatted')['to'](this,_0x346e('0x29'),_0x2d2c24=>_0x2d2c24?_0x5efb26(_0x1805aa[_0x346e('0x21')],_0x2d2c24):void 0x0),this[_0x346e('0xa')](_0x346e('0x8'),!0x1),this[_0x346e('0xa')](_0x346e('0x3'),!0x1),this['set']('isActionsDropdownOpen',!0x1),this[_0x346e('0xa')]('isReady',!0x1),this[_0x346e('0xa')]('isEnabled',!0x1),this[_0x346e('0x14')]=new _0x4c6ac9(_0x1805aa,_0x434c2b),this[_0x346e('0x14')][_0x346e('0x30')][_0x346e('0x13')]({'attributes':{'maxlength':_0x346e('0x23')}}),this[_0x346e('0x14')]['fieldView'][_0x346e('0x12')]('value',_0x346e('0x24'))['to'](this,'name',_0x346e('0x22')),this[_0x346e('0x14')][_0x346e('0x12')](_0x346e('0xc'))['to'](this,_0x346e('0x8'),this,'isEnabled',(_0x4d20e5,_0x948627)=>_0x4d20e5&&_0x948627),this[_0x346e('0x9')]=_0x1132d0&&_0x1132d0[_0x346e('0x2e')]?_0x3c7dde(this,_0x1132d0):'',this[_0x346e('0x9')]&&this[_0x346e('0x9')][_0x346e('0x12')](_0x346e('0xc'))['to'](this),this[_0x346e('0x17')]({'tag':'div','attributes':{'class':['ck',_0x346e('0x2b'),'ck-revision-history-sidebar__revision-wrapper',_0x56bffc['if'](_0x346e('0x6'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x346e('0x28'),'attributes':{'class':['ck',_0x346e('0x2b'),_0x346e('0x2f'),_0x56bffc['if'](_0x346e('0xc'),'ck-disabled',_0x5af1f1=>!_0x5af1f1),_0x56bffc['if'](_0x346e('0x8'),_0x346e('0xb')),_0x56bffc['if'](_0x346e('0x3'),_0x346e('0x1f')),_0x56bffc['if'](_0x346e('0x27'),_0x346e('0x5'))]},'children':[this[_0x346e('0x14')],{'tag':_0x346e('0xd'),'attributes':{'class':['ck',_0x346e('0x2')]},'children':[{'text':_0x56bffc['to'](_0x346e('0x22'))}]},{'tag':_0x346e('0x28'),'attributes':{'class':['ck',_0x346e('0x1d')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x346e('0x2a')]},'children':_0x4396b5}]},this[_0x346e('0x9')]],'on':{'click':_0x56bffc['to'](_0x54198d=>{_0x54198d[_0x346e('0xe')][_0x346e('0x10')](_0x346e('0x11'))||this['isReady']&&this[_0x346e('0xc')]&&this[_0x346e('0x19')]('select',{'id':this['id']});})}}]});}[_0x346e('0x20')](){super['render']();const _0x1739b0=this[_0x346e('0x14')][_0x346e('0x30')][_0x346e('0x1c')];this[_0x346e('0x2d')](_0x1739b0,_0x346e('0x1e'),()=>{this[_0x346e('0x19')](_0x346e('0x16'),{'id':this['id'],'name':_0x1739b0[_0x346e('0xf')]});});}[_0x346e('0x7')](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}[_0x346e('0x1')](){this[_0x346e('0x3')]=!0x0;}[_0x346e('0x2c')](){this[_0x346e('0x3')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xda7c=['click','bindTemplate','isVisible','_isCollapsed','setTemplate','toggle','ck-revision-history-sidebar__subrevision-collapser','button','ck-revision-history-sidebar__subrevision-collapser__inner','ck-hidden','span'];(function(_0x552591,_0xda7c34){const _0x41a5f9=function(_0x537506){while(--_0x537506){_0x552591['push'](_0x552591['shift']());}};_0x41a5f9(++_0xda7c34);}(_0xda7c,0x7a));const _0x41a5=function(_0x552591,_0xda7c34){_0x552591=_0x552591-0x0;let _0x41a5f9=_0xda7c[_0x552591];return _0x41a5f9;};import{View as _0x360d7d}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x360d7d{constructor(_0x3c1b2a){super(_0x3c1b2a);const _0x418e40=this[_0x41a5('0x0')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x41a5('0x3')]({'tag':'span','attributes':{'class':['ck',_0x41a5('0x5'),_0x418e40['if'](_0x41a5('0x1'),_0x41a5('0x8'),_0x509066=>!_0x509066),_0x418e40['if'](_0x41a5('0x2'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x41a5('0x6'),'aria-pressed':_0x418e40['to']('_isCollapsed',_0x8ed31=>_0x8ed31?'false':'true')},'children':[{'tag':_0x41a5('0x9'),'attributes':{'class':['ck',_0x41a5('0x7')]}}],'on':{'click':_0x418e40['to'](_0x41a5('0xa'))}});}[_0x41a5('0x4')](){this[_0x41a5('0x2')]=!this[_0x41a5('0x2')];}}
23
+ const _0x1a7a=['ck-revision-history-sidebar__subrevision-collapser','span','_isCollapsed','true','ck-hidden','toggle','false','set','ck-revision-history-sidebar__subrevision-collapser__inner','ck-revision-history-sidebar__subrevision-collapser_collapsed','setTemplate','bindTemplate','click'];(function(_0x2507a3,_0x1a7aec){const _0x76dd96=function(_0x98901e){while(--_0x98901e){_0x2507a3['push'](_0x2507a3['shift']());}};_0x76dd96(++_0x1a7aec);}(_0x1a7a,0xff));const _0x76dd=function(_0x2507a3,_0x1a7aec){_0x2507a3=_0x2507a3-0x0;let _0x76dd96=_0x1a7a[_0x2507a3];return _0x76dd96;};import{View as _0x2bc59d}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2bc59d{constructor(_0x2924a7){super(_0x2924a7);const _0x20ebb5=this[_0x76dd('0x3')];this[_0x76dd('0xc')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x76dd('0x2')]({'tag':_0x76dd('0x6'),'attributes':{'class':['ck',_0x76dd('0x5'),_0x20ebb5['if']('isVisible',_0x76dd('0x9'),_0x34370d=>!_0x34370d),_0x20ebb5['if'](_0x76dd('0x7'),_0x76dd('0x1'))],'role':'button','aria-pressed':_0x20ebb5['to'](_0x76dd('0x7'),_0x498848=>_0x498848?_0x76dd('0xb'):_0x76dd('0x8'))},'children':[{'tag':_0x76dd('0x6'),'attributes':{'class':['ck',_0x76dd('0x0')]}}],'on':{'click':_0x20ebb5['to'](_0x76dd('0x4'))}});}[_0x76dd('0xa')](){this[_0x76dd('0x7')]=!this[_0x76dd('0x7')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e76=['creator','isSelected','ck-revision-history-sidebar__revision-authors','uiLanguage','div','select','ck-revision-history-sidebar__subrevision','set','deselect','bind','span','fire','ck-revision-history-sidebar__revision_selected','_parentRevisionId','setTemplate','ck-reset','ck-revision-history-sidebar__revision__date','createdAt'];(function(_0x4bd1c5,_0x5e768d){const _0x297c62=function(_0x52feef){while(--_0x52feef){_0x4bd1c5['push'](_0x4bd1c5['shift']());}};_0x297c62(++_0x5e768d);}(_0x5e76,0x1a2));const _0x297c=function(_0x4bd1c5,_0x5e768d){_0x4bd1c5=_0x4bd1c5-0x0;let _0x297c62=_0x5e76[_0x4bd1c5];return _0x297c62;};import{View as _0x3bcb87}from'ckeditor5/src/ui';import _0xe34d69 from'./revisionauthorview';import{dateToPrettyFormat as _0x441754}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x3bcb87{constructor(_0x578dbf,_0x52eb8e,_0x5518a9){super(_0x578dbf);const _0x151f47=this['bindTemplate'];this['id']=_0x52eb8e['id'],this[_0x297c('0x5')](_0x297c('0xd'))['to'](_0x52eb8e),this[_0x297c('0x3')](_0x297c('0xf'),!0x1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x40df94=>_0x40df94?_0x441754(_0x578dbf[_0x297c('0x11')],_0x40df94):void 0x0),this['_parentRevisionId']=_0x5518a9,this[_0x297c('0xa')]({'tag':_0x297c('0x0'),'attributes':{'class':['ck',_0x297c('0xb'),'ck-revision-history-sidebar__revision',_0x297c('0x2'),_0x151f47['if'](_0x297c('0xf'),_0x297c('0x8'))]},'children':[{'tag':_0x297c('0x6'),'attributes':{'class':['ck',_0x297c('0xc')]},'children':[{'text':_0x151f47['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x297c('0x10')]},'children':[new _0xe34d69(_0x578dbf,_0x52eb8e[_0x297c('0xe')],!0x0)]}],'on':{'click':_0x151f47['to'](this['select']['bind'](this))}});}[_0x297c('0x1')](){this['isSelected']=!0x0,this[_0x297c('0x7')](_0x297c('0x1'),{'parentId':this[_0x297c('0x9')]});}[_0x297c('0x4')](){this['isSelected']=!0x1;}}
23
+ const _0x4f70=['deselect','ck-revision-history-sidebar__subrevision','isSelected','bind','fire','select','set','creator','setTemplate','ck-revision-history-sidebar__revision','createdAt','bindTemplate','ck-reset','uiLanguage','ck-revision-history-sidebar__revision_selected'];(function(_0xbc5837,_0x4f7070){const _0x22a26b=function(_0x3220c0){while(--_0x3220c0){_0xbc5837['push'](_0xbc5837['shift']());}};_0x22a26b(++_0x4f7070);}(_0x4f70,0x95));const _0x22a2=function(_0xbc5837,_0x4f7070){_0xbc5837=_0xbc5837-0x0;let _0x22a26b=_0x4f70[_0xbc5837];return _0x22a26b;};import{View as _0xb3136f}from'ckeditor5/src/ui';import _0x1ae2da from'./revisionauthorview';import{dateToPrettyFormat as _0x5391d2}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0xb3136f{constructor(_0x1e56c8,_0x1a25dd,_0x5ccd2d){super(_0x1e56c8);const _0x34ad0b=this[_0x22a2('0xc')];this['id']=_0x1a25dd['id'],this['bind'](_0x22a2('0xb'))['to'](_0x1a25dd),this[_0x22a2('0x7')](_0x22a2('0x3'),!0x1),this[_0x22a2('0x4')]('_createdAtFormatted')['to'](this,_0x22a2('0xb'),_0x2f95fa=>_0x2f95fa?_0x5391d2(_0x1e56c8[_0x22a2('0xe')],_0x2f95fa):void 0x0),this['_parentRevisionId']=_0x5ccd2d,this[_0x22a2('0x9')]({'tag':'div','attributes':{'class':['ck',_0x22a2('0xd'),_0x22a2('0xa'),_0x22a2('0x2'),_0x34ad0b['if'](_0x22a2('0x3'),_0x22a2('0x0'))]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x34ad0b['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x1ae2da(_0x1e56c8,_0x1a25dd[_0x22a2('0x8')],!0x0)]}],'on':{'click':_0x34ad0b['to'](this[_0x22a2('0x6')][_0x22a2('0x4')](this))}});}[_0x22a2('0x6')](){this[_0x22a2('0x3')]=!0x0,this[_0x22a2('0x5')](_0x22a2('0x6'),{'parentId':this['_parentRevisionId']});}[_0x22a2('0x1')](){this[_0x22a2('0x3')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x47b7=['long','toLocaleTimeString','toLocaleDateString','numeric'];(function(_0x175a72,_0x47b75d){var _0x3fc1d1=function(_0x40b178){while(--_0x40b178){_0x175a72['push'](_0x175a72['shift']());}};_0x3fc1d1(++_0x47b75d);}(_0x47b7,0xc6));var _0x3fc1=function(_0x175a72,_0x47b75d){_0x175a72=_0x175a72-0x0;var _0x3fc1d1=_0x47b7[_0x175a72];return _0x3fc1d1;};export function dateToPrettyFormat(_0x36d07e,_0x309845){return _0x309845[_0x3fc1('0x0')](_0x36d07e,{'month':_0x3fc1('0x2'),'day':_0x3fc1('0x1')})+',\x20'+_0x309845[_0x3fc1('0x3')](_0x36d07e,{'hour':_0x3fc1('0x1'),'minute':_0x3fc1('0x1')});}
23
+ var _0xa74b=['long','toLocaleTimeString','numeric'];(function(_0x492b73,_0xa74baa){var _0x43f0da=function(_0x594ffd){while(--_0x594ffd){_0x492b73['push'](_0x492b73['shift']());}};_0x43f0da(++_0xa74baa);}(_0xa74b,0x197));var _0x43f0=function(_0x492b73,_0xa74baa){_0x492b73=_0x492b73-0x0;var _0x43f0da=_0xa74b[_0x492b73];return _0x43f0da;};export function dateToPrettyFormat(_0x5b67e5,_0x339516){return _0x339516['toLocaleDateString'](_0x5b67e5,{'month':_0x43f0('0x1'),'day':'numeric'})+',\x20'+_0x339516[_0x43f0('0x2')](_0x5b67e5,{'hour':'numeric','minute':_0x43f0('0x0')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x32dd=['type','_focusables','set','revisionNameInputValue','value','reset','arrowup','220','form','stopPropagation','ck-button-cancel','tab','Cancel','fieldView','_createRevisionNameInput','label','focusFirst','submit','cancel','focusTracker','delegate','add','forEach','_focusCycler','cancelButtonView','setTemplate','arrowdown','extendTemplate','revisionName','_createButton','keystrokes','saveButtonView','ck-responsive-form','locale','revisionNameInputView','input','render','element','trim'];(function(_0x2ecfc7,_0x32ddb7){const _0xa5f50b=function(_0x412249){while(--_0x412249){_0x2ecfc7['push'](_0x2ecfc7['shift']());}};_0xa5f50b(++_0x32ddb7);}(_0x32dd,0x70));const _0xa5f5=function(_0x2ecfc7,_0x32ddb7){_0x2ecfc7=_0x2ecfc7-0x0;let _0xa5f50b=_0x32dd[_0x2ecfc7];return _0xa5f50b;};import{icons as _0x33e769}from'ckeditor5/src/core';import{ButtonView as _0x49733d,FocusCycler as _0xfe0dd,LabeledFieldView as _0x428869,View as _0x489b94,ViewCollection as _0x5d8d16,createLabeledInputText as _0x3cda18,injectCssTransitionDisabler as _0x4641c5,submitHandler as _0xeb0ff4}from'ckeditor5/src/ui';import{FocusTracker as _0x51e2f7,KeystrokeHandler as _0x2c1021}from'ckeditor5/src/utils';import{getTranslation as _0x18b63a}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x489b94{constructor(_0x1b3861){super(_0x1b3861),this['focusTracker']=new _0x51e2f7(),this['keystrokes']=new _0x2c1021(),this[_0xa5f5('0x7')](_0xa5f5('0x8'),''),this[_0xa5f5('0x0')]=this[_0xa5f5('0x13')](),this[_0xa5f5('0x24')]=this[_0xa5f5('0x22')](_0x18b63a(_0x1b3861,'Save'),_0x33e769['check'],'ck-button-save'),this['saveButtonView'][_0xa5f5('0x5')]=_0xa5f5('0x16'),this[_0xa5f5('0x1d')]=this[_0xa5f5('0x22')](_0x18b63a(_0x1b3861,_0xa5f5('0x11')),_0x33e769[_0xa5f5('0x17')],_0xa5f5('0xf'),_0xa5f5('0x17')),this[_0xa5f5('0x6')]=new _0x5d8d16(),this[_0xa5f5('0x1c')]=new _0xfe0dd({'focusables':this[_0xa5f5('0x6')],'focusTracker':this[_0xa5f5('0x18')],'keystrokeHandler':this[_0xa5f5('0x23')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0xa5f5('0x10')}}),this[_0xa5f5('0x1e')]({'tag':_0xa5f5('0xd'),'attributes':{'class':['ck','ck-revision-history-save-revision-form',_0xa5f5('0x25')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0xa5f5('0x24')],this['cancelButtonView']]}),_0x4641c5(this);}[_0xa5f5('0x2')](){super[_0xa5f5('0x2')](),_0xeb0ff4({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this[_0xa5f5('0x1d')]][_0xa5f5('0x1b')](_0x265011=>{this[_0xa5f5('0x6')][_0xa5f5('0x1a')](_0x265011),this[_0xa5f5('0x18')][_0xa5f5('0x1a')](_0x265011[_0xa5f5('0x3')]);}),this['keystrokes']['listenTo'](this[_0xa5f5('0x3')]));const _0x35115c=_0x19bcc5=>_0x19bcc5[_0xa5f5('0xe')]();this['keystrokes']['set']('arrowright',_0x35115c),this['keystrokes']['set']('arrowleft',_0x35115c),this['keystrokes'][_0xa5f5('0x7')](_0xa5f5('0xb'),_0x35115c),this['keystrokes'][_0xa5f5('0x7')](_0xa5f5('0x1f'),_0x35115c);}['focus'](){this['_focusCycler'][_0xa5f5('0x15')]();}get['revisionName'](){return this[_0xa5f5('0x0')][_0xa5f5('0x12')]['element']['value'][_0xa5f5('0x4')]();}set[_0xa5f5('0x21')](_0x525414){this[_0xa5f5('0x0')][_0xa5f5('0x12')]['element'][_0xa5f5('0x9')]=_0x525414[_0xa5f5('0x4')]();}[_0xa5f5('0xa')](){this[_0xa5f5('0x0')][_0xa5f5('0x12')][_0xa5f5('0x3')]['value']='';}[_0xa5f5('0x13')](){const _0x3e2ed9=new _0x428869(this[_0xa5f5('0x26')],_0x3cda18),_0x3ce66c=_0x3e2ed9['fieldView'];return _0x3ce66c['extendTemplate']({'attributes':{'maxlength':_0xa5f5('0xc')}}),_0x3e2ed9[_0xa5f5('0x14')]=_0x18b63a(this[_0xa5f5('0x26')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x3ce66c['on'](_0xa5f5('0x1'),()=>{this[_0xa5f5('0x8')]=_0x3ce66c['element']['value']['trim']();}),_0x3e2ed9;}[_0xa5f5('0x22')](_0x2ba319,_0x535a3a,_0x42974c,_0x2d218a){const _0x3ab189=new _0x49733d(this[_0xa5f5('0x26')]);return _0x3ab189[_0xa5f5('0x7')]({'label':_0x2ba319,'icon':_0x535a3a,'tooltip':!0x0}),_0x3ab189[_0xa5f5('0x20')]({'attributes':{'class':_0x42974c}}),_0x2d218a&&_0x3ab189[_0xa5f5('0x19')]('execute')['to'](this,_0x2d218a),_0x3ab189;}}
23
+ const _0x10b8=['element','saveButtonView','_focusables','Save','delegate','arrowright','focus','setTemplate','render','_focusCycler','label','cancel','reset','Cancel','fieldView','shift\x20+\x20tab','submit','input','form','revisionNameInputView','_createButton','focusTracker','cancelButtonView','add','execute','extendTemplate','Name\x20of\x20the\x20revision\x20(optional)','revisionName','revisionNameInputValue','trim','forEach','locale','ck-responsive-form','ck-button-cancel','focusFirst','value','set','arrowleft','220','ck-button-save','ck-revision-history-save-revision-form','keystrokes'];(function(_0x58f9b4,_0x10b82c){const _0x3c87cc=function(_0x5c4e7f){while(--_0x5c4e7f){_0x58f9b4['push'](_0x58f9b4['shift']());}};_0x3c87cc(++_0x10b82c);}(_0x10b8,0x1da));const _0x3c87=function(_0x58f9b4,_0x10b82c){_0x58f9b4=_0x58f9b4-0x0;let _0x3c87cc=_0x10b8[_0x58f9b4];return _0x3c87cc;};import{icons as _0x47085b}from'ckeditor5/src/core';import{ButtonView as _0x1fcc71,FocusCycler as _0xf19c9d,LabeledFieldView as _0x54d184,View as _0x147b00,ViewCollection as _0x2014d0,createLabeledInputText as _0xf2d240,injectCssTransitionDisabler as _0x274455,submitHandler as _0x54bb75}from'ckeditor5/src/ui';import{FocusTracker as _0x3d5a07,KeystrokeHandler as _0x217d8b}from'ckeditor5/src/utils';import{getTranslation as _0x597856}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x147b00{constructor(_0x248d3d){super(_0x248d3d),this[_0x3c87('0x9')]=new _0x3d5a07(),this[_0x3c87('0x1d')]=new _0x217d8b(),this[_0x3c87('0x18')](_0x3c87('0x10'),''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this[_0x3c87('0x1f')]=this[_0x3c87('0x8')](_0x597856(_0x248d3d,_0x3c87('0x21')),_0x47085b['check'],_0x3c87('0x1b')),this[_0x3c87('0x1f')]['type']=_0x3c87('0x4'),this[_0x3c87('0xa')]=this[_0x3c87('0x8')](_0x597856(_0x248d3d,_0x3c87('0x1')),_0x47085b[_0x3c87('0x29')],_0x3c87('0x15'),_0x3c87('0x29')),this[_0x3c87('0x20')]=new _0x2014d0(),this[_0x3c87('0x27')]=new _0xf19c9d({'focusables':this[_0x3c87('0x20')],'focusTracker':this[_0x3c87('0x9')],'keystrokeHandler':this[_0x3c87('0x1d')],'actions':{'focusPrevious':_0x3c87('0x3'),'focusNext':'tab'}}),this[_0x3c87('0x25')]({'tag':_0x3c87('0x6'),'attributes':{'class':['ck',_0x3c87('0x1c'),_0x3c87('0x14')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x3c87('0x1f')],this[_0x3c87('0xa')]]}),_0x274455(this);}['render'](){super[_0x3c87('0x26')](),_0x54bb75({'view':this}),([this[_0x3c87('0x7')],this[_0x3c87('0x1f')],this[_0x3c87('0xa')]][_0x3c87('0x12')](_0x40638d=>{this[_0x3c87('0x20')][_0x3c87('0xb')](_0x40638d),this['focusTracker']['add'](_0x40638d[_0x3c87('0x1e')]);}),this[_0x3c87('0x1d')]['listenTo'](this[_0x3c87('0x1e')]));const _0x4a2d01=_0x54b11=>_0x54b11['stopPropagation']();this[_0x3c87('0x1d')][_0x3c87('0x18')](_0x3c87('0x23'),_0x4a2d01),this['keystrokes'][_0x3c87('0x18')](_0x3c87('0x19'),_0x4a2d01),this[_0x3c87('0x1d')]['set']('arrowup',_0x4a2d01),this[_0x3c87('0x1d')][_0x3c87('0x18')]('arrowdown',_0x4a2d01);}[_0x3c87('0x24')](){this[_0x3c87('0x27')][_0x3c87('0x16')]();}get[_0x3c87('0xf')](){return this[_0x3c87('0x7')][_0x3c87('0x2')][_0x3c87('0x1e')][_0x3c87('0x17')]['trim']();}set[_0x3c87('0xf')](_0x5544f0){this[_0x3c87('0x7')]['fieldView'][_0x3c87('0x1e')][_0x3c87('0x17')]=_0x5544f0[_0x3c87('0x11')]();}[_0x3c87('0x0')](){this[_0x3c87('0x7')][_0x3c87('0x2')]['element']['value']='';}['_createRevisionNameInput'](){const _0x365afd=new _0x54d184(this[_0x3c87('0x13')],_0xf2d240),_0x1e488c=_0x365afd[_0x3c87('0x2')];return _0x1e488c[_0x3c87('0xd')]({'attributes':{'maxlength':_0x3c87('0x1a')}}),_0x365afd[_0x3c87('0x28')]=_0x597856(this[_0x3c87('0x13')],_0x3c87('0xe')),_0x1e488c['on'](_0x3c87('0x5'),()=>{this['revisionNameInputValue']=_0x1e488c['element'][_0x3c87('0x17')][_0x3c87('0x11')]();}),_0x365afd;}[_0x3c87('0x8')](_0x339b4b,_0x23b74c,_0x145814,_0x28769f){const _0x4b51d7=new _0x1fcc71(this[_0x3c87('0x13')]);return _0x4b51d7[_0x3c87('0x18')]({'label':_0x339b4b,'icon':_0x23b74c,'tooltip':!0x0}),_0x4b51d7[_0x3c87('0xd')]({'attributes':{'class':_0x145814}}),_0x28769f&&_0x4b51d7[_0x3c87('0x22')](_0x3c87('0xc'))['to'](this,_0x28769f),_0x4b51d7;}}