@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231018.0 → 0.0.0-nightly-20231020.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 _0x1e5b=['getAttributes','text','getChild','conversion','revision-suggestion','_markSuggestions','ck-revision-history-root-add','isAdded','startIndex','removeAttribute','_refreshStartEndIndex','consume','right','rootName','adapter','_appendChild','all','revision-viewer','_markMismatchedRemovedTags','change:isEnabled','repository','createUIElement','modelRange','addHighlight','getClientRects','revision-end','ck-editor__editable__overlay','markerName','execute','getRoot','activeView','refresh','ck-suggestion-marker','attributes','toData','parse','mapper','unbindElementFromMarkerName','low','elementStart','getItems','change:activeChange','length','forward','POSITIVE_INFINITY','highest','distance','remove','isInline','shift','done','getRootNames','_initInteractions','revisionHistoryLabel','isAfter','deletions','map','ck-revision-history-root-remove','sort','_getViewObj','item','previousPosition','delete','ck-suggestion-marker-','offsetSize','restoreRevision','revisionHistoryAttachChange','insertions','data-change-id','_setConversion','revision-suggestion:','getRevision','nextSibling','insert','consumable','toViewRange','removeMarker','attributesBefore','data','first','ck-suggestion-marker--active','next','get','push','listenTo','element:pre','isRemoved','upcast','dataDowncast','changes','error','values','removeMarker:revision','_removeMissingPairs','editingDowncast','loadRevisionData','createRangeIn','_getRevisionsRange','add','vid','showPreviousChange','uiElement','schema','children','updatePosition','markerNameToElements','_threeWayMerge','addMarker:revision','default','selection','getAttribute','_markInsertions','top','side','suggestion:','test','unshift','activeChange','RevisionViewer','writer','hasAttribute','changeId','stop','endIndex','affectsData','WidgetToolbarRepository','downcastDispatcher','diff','_sortAndFilterDiffChanges','_removeRevisionMarkers','bottom','abs','isReady','createPositionFromPath','ck-revision-history-root-','hasClass','string','isLimit','config','_cleanUp','markerToHighlight','editor','change:activeView','startsWith','createPositionBefore','mapViewToDom','parent','isContent','start','_balloon','collaboration.channelId','nodeAfter','_makeModelFromViewString','roots','isBefore','checkAttribute','end','revision:','_fixObsoleteTags','editing','mouseover','_markMarkers','toViewPosition','marked','insertion','includes','markersEnd','_setChanges','filter','change','isBlock','isAddSuggestion','attributesAfter','_findChangeIdFromDomTarget','removeMarker:revision-suggestion','domEvent','vid_end','elementToAttribute','markerToData','-new','_processTape','dataToMarker','restoreRevisionCallback','split','isSuggestion','attribute:vid','deletion','index','pluginName','vid_start','high','document','getIndex','locale','code','_makeTape','forceDisabled','isAttached','reconvertMarker','elementEnd','isEnabled','createRevision','_getDiff','mousedown','userId','getRevisionRootsAttributes','attachChange','showNextChange','compare','_data','slice','concat','addMarker:revision-suggestion:deletion','requires','_removeUnsupportedChanges','useFillerType','data-revision-','plugins','pop','resolve','getWalker','_makeModelFromTape','numberOfChanges','removeClass','isOnRoot','_setDistance','has','observeMarkers','softBreak','ck-suggestion-marker-split','ck-revision-history-root--active','_getViewForChange','name','RevisionsRepository','revisionHistory','createRange','type','_update','set','markerRange','isIncorrect','newRevisionId','isAtEnd','view','diffData','bindElementToMarker','then','detachRoot','forEach','model','viewItem','processor','_activeViewTarget','isNavigationMode','addRoot','addClass','markersStart','_step','from','toViewElement','for','destroy','keys','_getChangeFromId','clear','oldRevisionId','isRemoveSuggestion','getDomRoot','_changeView','setAttribute','addRevision','suggestion','revision-start','bind','wrap','level','toModel','revision','commands','getCustomProperty','nextPosition','element','_joinTapes','pairId','_cleanMarkers','isEqual','_changeIdToChange','span','merge','object','markers'];(function(_0x51640c,_0x1e5b5d){const _0x48dbba=function(_0x34da7a){while(--_0x34da7a){_0x51640c['push'](_0x51640c['shift']());}};_0x48dbba(++_0x1e5b5d);}(_0x1e5b,0x1ba));const _0x48db=function(_0x51640c,_0x1e5b5d){_0x51640c=_0x51640c-0x0;let _0x48dbba=_0x1e5b[_0x51640c];return _0x48dbba;};import{Plugin as _0x5bc0ff,Command as _0x28f02b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x46b1aa}from'ckeditor5/src/utils';import{ContextualBalloon as _0x4e383d}from'ckeditor5/src/ui';import{DocumentFragment as _0x489477,Element as _0x3294a3,Text as _0xb4ccc7,ViewDocumentFragment as _0x69a544,ViewText as _0x4973e7,ViewElement as _0x461813,ViewContainerElement as _0x228da0,ViewAttributeElement as _0x5e0814,ViewEmptyElement as _0x137acf,ViewRawElement as _0x174b99,ViewUIElement as _0x3153b5}from'ckeditor5/src/engine';import{Users as _0x1be1b8,getMarkerDomElement as _0x15e21b}from'ckeditor5-collaboration/src/collaboration-core';import _0x138681 from'./ui/revisionviewer/changedetailsview';import _0x53c1c2 from'./revisionsrepository';import _0x265e6d from'./changeitem';import{default as _0x252790}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x58dbae}from'lodash-es';const tt={'c':_0x228da0,'a':_0x5e0814,'e':_0x137acf,'r':_0x174b99,'u':_0x3153b5};export default class d extends _0x5bc0ff{static get[_0x48db('0x25')](){return _0x48db('0x102');}static get[_0x48db('0x3e')](){return[_0x1be1b8,_0x4e383d,_0x53c1c2];}constructor(_0x50d981){super(_0x50d981),this[_0x48db('0xa0')]=this[_0x48db('0x119')]['plugins'][_0x48db('0xde')](_0x48db('0x52')),this[_0x48db('0x57')](_0x48db('0x101'),null),this[_0x48db('0x57')](_0x48db('0xaa'),null),this[_0x48db('0x65')]=null,this[_0x48db('0x57')](_0x48db('0x10b'),null),this[_0x48db('0x57')](_0x48db('0x110'),!0x1),this[_0x48db('0x57')](_0x48db('0x31'),!0x0),this['on'](_0x48db('0x9f'),(_0x4b222b,_0x552531,_0x3d8db5)=>{this['activeChange']=null,this[_0x48db('0xaa')]=null,this[_0x48db('0x119')][_0x48db('0x8')]['view'][_0x48db('0x12')](_0x73c432=>{for(const _0x2fd641 of this[_0x48db('0x119')][_0x48db('0x8')]['view'][_0x48db('0x28')][_0x48db('0x2')])_0x3d8db5?_0x73c432['removeClass']('ck-editor__editable__overlay',_0x2fd641):_0x73c432[_0x48db('0x68')](_0x48db('0xa6'),_0x2fd641);});}),this[_0x48db('0x7a')](_0x48db('0x66'))['to'](this,'activeChange',_0x2019bc=>null!==_0x2019bc),this[_0x48db('0x7a')]('currentChangeNumber')['to'](this,'isReady',this,_0x48db('0x10b'),this,_0x48db('0x101'),(_0x31d5e3,_0x5f6c26,_0x23d325)=>_0x31d5e3&&_0x23d325?_0x5f6c26[_0x48db('0xe5')][_0x48db('0x29')](_0x23d325):0x0),this['bind'](_0x48db('0x47'))['to'](this,_0x48db('0x110'),this,_0x48db('0x10b'),(_0x86e3ee,_0x4630e4)=>_0x86e3ee?_0x4630e4[_0x48db('0xe5')][_0x48db('0xb6')]:0x0),this[_0x48db('0x75')]=null,this[_0x48db('0x87')]=new Map(),this[_0x48db('0x9a')]=null,this[_0x48db('0x121')]=this[_0x48db('0x119')][_0x48db('0x42')]['get'](_0x4e383d);}['init'](){const _0x1ff7f7=this[_0x48db('0x119')],_0x49d5c5=new ShowChangeCommand(_0x1ff7f7,{'direction':'backward'}),_0x306fa2=new ShowChangeCommand(_0x1ff7f7,{'direction':_0x48db('0xb7')});(_0x1ff7f7[_0x48db('0x7f')][_0x48db('0xee')](_0x48db('0xf0'),_0x49d5c5),_0x1ff7f7[_0x48db('0x7f')][_0x48db('0xee')](_0x48db('0x38'),_0x306fa2),_0x1ff7f7[_0x48db('0x7f')][_0x48db('0xee')](_0x48db('0xcd'),new RestoreRevisionCommand(_0x1ff7f7)),this['on']('change:numberOfChanges',()=>{_0x49d5c5[_0x48db('0xab')](),_0x306fa2[_0x48db('0xab')]();}),this['_setConversion'](),this[_0x48db('0xc0')](),_0x1ff7f7['enableReadOnlyMode'](_0x48db('0x9d')),_0x1ff7f7['plugins']['has'](_0x48db('0x109')))&&_0x1ff7f7[_0x48db('0x42')]['get'](_0x48db('0x109'))[_0x48db('0x2d')]('revision-viewer');}async['getRevisionData'](_0x45c6d5){await this[_0x48db('0xeb')](_0x45c6d5);const _0x4a6489={};for(const _0x12018c in _0x45c6d5[_0x48db('0x5d')]){if(_0x45c6d5[_0x48db('0x5d')][_0x12018c]['attachChange']&&!_0x45c6d5['diffData'][_0x12018c][_0x48db('0x37')]['isAttached'])continue;const _0x30cae5=this[_0x48db('0x10d')](JSON[_0x48db('0xaf')](_0x45c6d5['diffData'][_0x12018c][_0x48db('0xcf')])),_0x4a8574=this['editor']['editing'][_0x48db('0x5c')][_0x48db('0x28')],_0x266798=new _0x69a544(_0x4a8574,_0x30cae5[_0x48db('0xc4')](_0x3fea52=>this[_0x48db('0xc7')](_0x3fea52)));this[_0x48db('0x119')][_0x48db('0xda')][_0x48db('0x64')][_0x48db('0x40')](_0x48db('0xc')),_0x4a6489[_0x12018c]=this['editor'][_0x48db('0xda')]['processor'][_0x48db('0xae')](_0x266798),this[_0x48db('0x119')][_0x48db('0xda')][_0x48db('0x64')][_0x48db('0x40')](_0x48db('0xf8'));}return _0x4a6489;}async[_0x48db('0x36')](_0x56f20d){await this[_0x48db('0xeb')](_0x56f20d);const _0x35575f={};for(const _0x521267 in _0x56f20d[_0x48db('0x5d')])_0x56f20d[_0x48db('0x5d')][_0x521267]['attachChange']&&!_0x56f20d[_0x48db('0x5d')][_0x521267][_0x48db('0x37')][_0x48db('0x2e')]||(_0x35575f[_0x521267]=_0x56f20d[_0x48db('0x5d')][_0x521267]['attributesAfter']||{});return _0x35575f;}[_0x48db('0x10d')](_0x1da059){return(_0x1da059=_0x1da059['filter'](_0x2f5400=>!_0x2f5400[_0x48db('0x51')]||_0x48db('0x79')!==_0x2f5400['name']&&_0x48db('0xa5')!==_0x2f5400['name']))[_0x48db('0x61')](_0xe48fd3=>{_0x48db('0x114')!=typeof _0xe48fd3&&(_0xe48fd3['children']=this[_0x48db('0x10d')](_0xe48fd3[_0x48db('0xf3')]),_0xe48fd3['attributes']=_0xe48fd3['attributes'][_0x48db('0x11')](_0x538c11=>!_0x538c11[0x0][_0x48db('0x11b')](_0x48db('0x41'))));}),_0x1da059;}async[_0x48db('0x39')](_0x19aceb,_0x1eaf83,_0x571a79=!0x1){if(!this[_0x48db('0x31')])return;const _0x49b576=this[_0x48db('0x10b')],_0xce61c0=this['repository'],_0x3517a3=_0x48db('0x114')==typeof _0x19aceb?_0xce61c0['getRevision'](_0x19aceb):_0x19aceb,_0x2505d4=_0x48db('0x114')==typeof _0x1eaf83?_0xce61c0[_0x48db('0xd3')](_0x1eaf83):_0x1eaf83,_0x332993=_0x3517a3['id'],_0x1f3ae7=_0x2505d4?_0x2505d4['id']:null;if(!_0x571a79&&this[_0x48db('0x10b')]&&this['diff'][_0x48db('0x5a')]===_0x332993&&this['diff'][_0x48db('0x72')]===_0x1f3ae7)return Promise[_0x48db('0x44')]();this[_0x48db('0x110')]=!0x1,this[_0x48db('0xaa')]=null,this['activeChange']=null,this[_0x48db('0x10b')]=new _0x252790(_0x332993,_0x1f3ae7);const _0x465a45=this[_0x48db('0xed')](_0x3517a3,_0x2505d4,!0x0)['map'](_0x2ec625=>this[_0x48db('0xeb')](_0x2ec625));return _0x465a45[_0x48db('0xdf')](new Promise(_0x956fc2=>{setTimeout(_0x956fc2,0x14);})),Promise[_0x48db('0x9c')](_0x465a45)[_0x48db('0x5f')](()=>{if(!this['isEnabled'])return;this[_0x48db('0x117')]();const _0x33af3d=this['_getDiff'](_0x332993,_0x1f3ae7);for(const _0x543d4c of _0x33af3d['changes'])this['_changeIdToChange']['set'](_0x543d4c['id'],_0x543d4c);this[_0x48db('0x119')][_0x48db('0x62')]['enqueueChange']({'isUndoable':!0x1},_0x15b40e=>{for(const _0x47905f of this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x28')]['getRootNames']())_0x15b40e[_0x48db('0x60')](_0x47905f);for(const _0x31398b of Object[_0x48db('0x6f')](_0x33af3d[_0x48db('0x62')])){const _0x508c3c=_0x15b40e[_0x48db('0x67')](_0x31398b);for(const _0x28e996 of Object[_0x48db('0x6f')](_0x33af3d['attributes'][_0x31398b]))_0x15b40e[_0x48db('0x76')](_0x28e996,_0x33af3d[_0x48db('0xad')][_0x31398b][_0x28e996],_0x508c3c);_0x15b40e[_0x48db('0xd5')](_0x33af3d[_0x48db('0x62')][_0x31398b],_0x508c3c,0x0);}}),this[_0x48db('0x10b')][_0x48db('0x10')](this[_0x48db('0x10c')](_0x33af3d['changes'])),this[_0x48db('0x110')]=!0x0;})['catch'](_0x36ea15=>{console[_0x48db('0xe6')](_0x36ea15),this[_0x48db('0x117')](),_0x49b576&&(this['diff']=_0x49b576),this[_0x48db('0x110')]=!0x0;});}['addRevisionData'](_0x2bc569,_0x2f518c){const _0xe3e5ce=this['repository'][_0x48db('0x32')](_0x2bc569);return _0xe3e5ce['on'](_0x48db('0x56'),(_0x41a9b1,_0x30bf0c,_0x500f55)=>_0x2f518c(_0x30bf0c,_0x500f55,_0xe3e5ce)),this[_0x48db('0xa0')][_0x48db('0x77')](_0xe3e5ce),_0xe3e5ce;}['loadRevisionData'](_0x2e067c){if(!_0x2e067c||_0x2e067c[_0x48db('0x5d')])return Promise['resolve']();{const _0x85f53a=this['editor'][_0x48db('0x116')][_0x48db('0xde')](_0x48db('0x122'));return this[_0x48db('0x9a')][_0x48db('0xd3')]({'channelId':_0x85f53a,'revisionId':_0x2e067c['id']})['then'](_0x21e1cc=>{_0x2e067c[_0x48db('0x56')]({'diffData':_0x21e1cc[_0x48db('0x5d')]},!0x0);});}}[_0x48db('0x117')](){this[_0x48db('0x101')]=null,this[_0x48db('0x85')](),this[_0x48db('0x75')]&&this[_0x48db('0x75')][_0x48db('0x6e')](),this['_changeView']=null,this[_0x48db('0x87')][_0x48db('0x71')](),this[_0x48db('0x119')][_0x48db('0x62')]['enqueueChange']({'isUndoable':!0x1},_0x2358fe=>{for(const _0x4ef8a9 of this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x28')][_0x48db('0xbf')]())_0x2358fe['detachRoot'](_0x4ef8a9);});}[_0x48db('0x10c')](_0x213631){const _0x3347a5=[],_0x5498f4=new Map();for(const _0x3f17e5 of this[_0x48db('0x119')]['model'][_0x48db('0x28')][_0x48db('0xbf')]()){const _0x5181d7=this[_0x48db('0x119')]['editing'][_0x48db('0x5c')]['getDomRoot'](_0x3f17e5);if(!_0x5181d7)continue;const _0x5c8b3b=_0x5181d7[_0x48db('0xa4')]()[_0x48db('0xc8')](0x0);_0x5c8b3b&&(_0x3347a5[_0x48db('0xdf')](_0x3f17e5),_0x5498f4['set'](_0x3f17e5,_0x5c8b3b));}return _0x3347a5[_0x48db('0xc6')]((_0x582c9a,_0x4a02d4)=>{const _0x382464=_0x5498f4[_0x48db('0xde')](_0x582c9a),_0x3b38d4=_0x5498f4[_0x48db('0xde')](_0x4a02d4);return _0x382464['y']-_0x3b38d4['y']||_0x382464['x']-_0x3b38d4['x'];}),(_0x213631=_0x213631[_0x48db('0x11')](_0x450b4e=>_0x3347a5['includes'](_0x450b4e[_0x48db('0x99')])))[_0x48db('0xc6')]((_0x2c07c6,_0x16e539)=>_0x3347a5['indexOf'](_0x2c07c6[_0x48db('0x99')])-_0x3347a5['indexOf'](_0x16e539['rootName'])),_0x213631;}[_0x48db('0x2c')](_0x4999a6){const _0x501cf8=Array['from'](_0x4999a6['markers'])['filter'](([_0x54183f,_0x2a508b])=>_0x54183f[_0x48db('0x11b')](_0x48db('0x6'))&&!_0x2a508b['isCollapsed']),_0x37f875=Array['from'](this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0xec')](_0x4999a6)[_0x48db('0x45')]({'singleCharacters':!0x0}));if(0x0!=_0x501cf8['length'])for(const _0x548d2d of _0x37f875){const [_0xaf50de,_0xc0e381]=_0x501cf8[0x0],[,_0x30d8a1,_0x412419]=_0xaf50de[_0x48db('0x20')](':');if(_0xc0e381['end'][_0x48db('0x86')](_0x548d2d['nextPosition'])&&_0x501cf8[_0x48db('0xbd')](),(_0x548d2d[_0x48db('0xc9')][_0x48db('0x86')](_0xc0e381[_0x48db('0x120')])||_0x548d2d[_0x48db('0xc9')][_0x48db('0xc2')](_0xc0e381[_0x48db('0x120')]))&&(_0x48db('0xd')==_0x30d8a1?_0x548d2d[_0x48db('0x93')]={'userId':_0x412419}:_0x48db('0x23')==_0x30d8a1&&(_0x548d2d[_0x48db('0xe2')]={'userId':_0x412419})),0x0==_0x501cf8['length'])break;}return _0x37f875;}[_0x48db('0x96')](_0x2df0e6){const _0x174c10=new Map();for(let _0x58486c=0x0;_0x58486c<_0x2df0e6[_0x48db('0xb6')];_0x58486c++)_0x48db('0x8d')===_0x2df0e6[_0x58486c][_0x48db('0x55')]?(_0x2df0e6[_0x58486c][_0x48db('0xc8')][_0x48db('0x94')]=_0x58486c,_0x2df0e6[_0x58486c][_0x48db('0xc8')][_0x48db('0x107')]=_0x58486c):(_0x48db('0xb3')===_0x2df0e6[_0x58486c]['type']?_0x2df0e6[_0x58486c][_0x48db('0xc8')]['startIndex']=_0x58486c:_0x48db('0x30')===_0x2df0e6[_0x58486c]['type']&&(_0x2df0e6[_0x58486c][_0x48db('0xc8')][_0x48db('0x107')]=_0x58486c),_0x174c10[_0x48db('0x57')](_0x2df0e6[_0x58486c]['id'],_0x58486c));for(const _0x3cd0a5 of _0x174c10[_0x48db('0xe7')]())_0x48db('0xb3')===_0x2df0e6[_0x3cd0a5][_0x48db('0x55')]?_0x2df0e6[_0x3cd0a5][_0x48db('0xc8')][_0x48db('0x107')]=_0x174c10[_0x48db('0xde')](_0x2df0e6[_0x3cd0a5][_0x48db('0x84')]):_0x48db('0x30')===_0x2df0e6[_0x3cd0a5]['type']&&(_0x2df0e6[_0x3cd0a5]['item']['startIndex']=_0x174c10[_0x48db('0xde')](_0x2df0e6[_0x3cd0a5]['pairId']));}[_0x48db('0x1d')](_0x170957){for(let _0x56cf05=0x0;_0x56cf05<_0x170957[_0x48db('0xb6')];_0x56cf05++){if('elementStart'===_0x170957[_0x56cf05][_0x48db('0x55')])_0x170957[_0x56cf05][_0x48db('0xc8')][_0x48db('0x94')]=_0x56cf05;else{if('elementEnd'===_0x170957[_0x56cf05]['type']){_0x170957[_0x56cf05][_0x48db('0xc8')][_0x48db('0x107')]=_0x56cf05;const _0x309cc3=_0x170957[_0x56cf05][_0x48db('0xc8')][_0x48db('0x94')];_0x170957[_0x309cc3]['pairId']=_0x170957[_0x56cf05]['id'],_0x170957[_0x56cf05][_0x48db('0x84')]=_0x170957[_0x309cc3]['id'];}else _0x170957[_0x56cf05][_0x48db('0xc8')]['startIndex']=_0x56cf05,_0x170957[_0x56cf05][_0x48db('0xc8')][_0x48db('0x107')]=_0x56cf05,_0x170957[_0x56cf05]['pairId']=null;}_0x170957[_0x56cf05][_0x48db('0x69')]||(_0x170957[_0x56cf05]['markersStart']=[],_0x170957[_0x56cf05][_0x48db('0xf')]=[]);}}[_0x48db('0xfb')](_0x229e46,_0x5a9fee){const _0x277746=_0x229e46[_0x48db('0x11')](_0x3015d7=>!_0x3015d7[_0x48db('0x93')]);for(let _0xc8a981=0x0;_0xc8a981<_0x5a9fee[_0x48db('0xb6')];_0xc8a981++)_0x5a9fee[_0xc8a981][_0x48db('0x93')]&&(_0x277746[_0xc8a981][_0x48db('0x93')]=_0x5a9fee[_0xc8a981][_0x48db('0x93')]);}['_makeModelFromViewString'](_0x3885f4){const _0x1f3698=JSON['parse'](_0x3885f4),_0x14163e=this[_0x48db('0x119')][_0x48db('0x8')]['view']['document'],_0x5be8eb=new _0x69a544(_0x14163e,_0x1f3698[_0x48db('0xc4')](_0x30505a=>this[_0x48db('0xc7')](_0x30505a)));return this['editor'][_0x48db('0xda')][_0x48db('0x7d')](_0x5be8eb);}[_0x48db('0xc7')](_0x221ce2){const _0x38199d=this[_0x48db('0x119')][_0x48db('0x8')]['view'][_0x48db('0x28')];if(_0x48db('0x114')==typeof _0x221ce2)return new _0x4973e7(_0x38199d,_0x221ce2);{const _0x5e7025=_0x221ce2['children'][_0x48db('0xc4')](_0x552032=>this[_0x48db('0xc7')](_0x552032));return new(tt[_0x221ce2['type']]||_0x461813)(_0x38199d,_0x221ce2[_0x48db('0x51')],_0x221ce2[_0x48db('0xad')],_0x5e7025);}}[_0x48db('0x33')](_0x274758,_0x19f86e=null){const _0x5c8a44=this[_0x48db('0xa0')][_0x48db('0xd3')](_0x274758),_0x432c7f=_0x19f86e?this[_0x48db('0xa0')]['getRevision'](_0x19f86e):null,_0x2ff499=this['_getRevisionsRange'](_0x5c8a44,_0x432c7f),_0x165d1d=_0x2ff499[_0x2ff499[_0x48db('0xb6')]-0x1],_0x270190=new Map(),_0x261b9a={'model':{},'attributes':{},'changes':[]},_0x579079=new Set(),_0x2039e8=new Map();for(let _0x2543d9=_0x2ff499[_0x48db('0xb6')]-0x1;_0x2543d9>=0x0;_0x2543d9--){const _0x2b186b=_0x2ff499[_0x2543d9];for(const _0x326d7b of Object['keys'](_0x2b186b[_0x48db('0x5d')]))if(_0x2b186b['diffData'][_0x326d7b]['attachChange']){const _0x5d22f9=_0x2b186b[_0x48db('0x5d')][_0x326d7b][_0x48db('0x37')];_0x5d22f9[_0x48db('0x2e')]?(_0x579079[_0x48db('0xee')](_0x326d7b),_0x2039e8['has'](_0x326d7b)&&_0x2039e8['get'](_0x326d7b)[_0x48db('0x35')]==_0x5d22f9[_0x48db('0x35')]?_0x2039e8[_0x48db('0xca')](_0x326d7b):_0x2039e8[_0x48db('0x57')](_0x326d7b,_0x5d22f9)):_0x2039e8[_0x48db('0x4b')](_0x326d7b)?(_0x579079[_0x48db('0xca')](_0x326d7b),_0x2039e8['delete'](_0x326d7b)):(_0x579079['add'](_0x326d7b),_0x2039e8[_0x48db('0x57')](_0x326d7b,_0x5d22f9));}else _0x579079[_0x48db('0xee')](_0x326d7b);}for(const _0x113244 of _0x579079){const _0x4cf642=_0x2039e8[_0x48db('0x4b')](_0x113244)&&!_0x2039e8[_0x48db('0xde')](_0x113244)['isAttached'];let _0x4e6c5e=_0x4cf642?_0x2ff499[_0x48db('0xb6')]-0x1:0x0;const _0xbc862e=_0x4cf642?-0x1:0x1;for(;_0x2ff499[_0x4e6c5e];){const _0x356851=_0x2ff499[_0x4e6c5e];if(_0x356851[_0x48db('0x5d')][_0x113244]){const _0x3cf24b=_0x4cf642?_0x356851[_0x48db('0x5d')][_0x113244][_0x48db('0xd9')]:_0x356851[_0x48db('0x5d')][_0x113244][_0x48db('0x15')];_0x261b9a[_0x48db('0xad')][_0x113244]=_0x3cf24b?_0x58dbae(_0x3cf24b):{};break;}_0x4e6c5e+=_0xbc862e;}}for(const _0x35cb18 of _0x2ff499){_0x35cb18['model']={};for(const _0x42c626 of _0x35cb18['authors'])_0x270190[_0x48db('0x57')](_0x42c626['id'],_0x42c626);for(const _0x2024b0 of _0x579079){const _0x529522=_0x35cb18[_0x48db('0x5d')][_0x2024b0]?_0x35cb18[_0x48db('0x5d')][_0x2024b0]['insertions']:'[]',_0x9fb50e=_0x35cb18[_0x48db('0x5d')][_0x2024b0]?_0x35cb18[_0x48db('0x5d')][_0x2024b0][_0x48db('0xc3')]:'[]';_0x35cb18[_0x48db('0x62')][_0x2024b0]={'insertions':this[_0x48db('0x1')](_0x529522),'deletions':this['_makeModelFromViewString'](_0x9fb50e)};}}for(const _0x133f8d of _0x579079){let _0x3acf25=null,_0x22ba35=0x0;const _0x3cad3f=new Map(Array[_0x48db('0x6b')](_0x5c8a44[_0x48db('0x62')][_0x133f8d][_0x48db('0xcf')][_0x48db('0x8b')])[_0x48db('0x11')](([_0x5c96ac])=>!_0x5c96ac['startsWith'](_0x48db('0x6'))));let _0x522a36=0x0;for(const _0x56b58a of _0x2ff499){const _0x7cc9c7=this['_makeTape'](_0x56b58a[_0x48db('0x62')][_0x133f8d][_0x48db('0xcf')]);_0x56b58a==_0x5c8a44?(_0x3acf25=_0x7cc9c7,_0x22ba35=_0x3acf25[_0x48db('0xb6')],_0x3acf25[_0x48db('0x61')](_0x2a0c56=>{_0x2a0c56['id']=_0x522a36++;}),this[_0x48db('0x1d')](_0x3acf25)):this['_markInsertions'](_0x3acf25,_0x7cc9c7);const _0x58a67e=_0x3acf25[_0x48db('0x11')](_0x3c1f26=>!_0x3c1f26[_0x48db('0x93')])[_0x48db('0xc4')](_0x76d314=>_0x76d314['id']);let _0x292cc0=0x0;const _0x1787f8=this[_0x48db('0x2c')](_0x56b58a[_0x48db('0x62')][_0x133f8d][_0x48db('0xc3')]);_0x1787f8[_0x48db('0x61')](_0x248945=>{_0x248945['isRemoved']?_0x248945['id']=_0x22ba35++:_0x248945['id']=_0x58a67e[_0x292cc0++];}),this['_processTape'](_0x1787f8),this['_setDistance'](_0x3acf25,'isAdded'),this[_0x48db('0x4a')](_0x1787f8,_0x48db('0xe2')),_0x56b58a==_0x5c8a44&&this[_0x48db('0xa')](_0x3acf25,_0x3cad3f),_0x3acf25=this[_0x48db('0x83')](_0x3acf25,_0x1787f8),this[_0x48db('0x96')](_0x3acf25),this[_0x48db('0x4a')](_0x3acf25,_0x48db('0xe2'));}_0x3acf25=_0x3acf25[_0x48db('0x11')](_0x216f40=>!(_0x216f40[_0x48db('0x93')]&&_0x216f40[_0x48db('0xe2')]));const _0x8c54c1=new Map(_0x165d1d[_0x48db('0x62')][_0x133f8d][_0x48db('0xc3')][_0x48db('0x8b')]),_0x5cc99a=new Set(_0x3cad3f[_0x48db('0x6f')]());for(const _0x16d3b6 of _0x8c54c1[_0x48db('0x6f')]())_0x5cc99a[_0x48db('0xca')](_0x16d3b6);this[_0x48db('0x91')](_0x3acf25,_0x5cc99a),this['_fixObsoleteTags'](_0x3acf25),_0x3acf25=this[_0x48db('0xe9')](_0x3acf25),_0x3acf25=this[_0x48db('0x9e')](_0x3acf25),_0x3acf25=this['_removeUnsupportedChanges'](_0x3acf25);const {root:_0x5f1ca7,changes:_0x2d5c3c}=this[_0x48db('0x46')](_0x3acf25,_0x270190,_0x133f8d);_0x261b9a[_0x48db('0x62')][_0x133f8d]=_0x5f1ca7;const _0x286ffa=_0x2039e8[_0x48db('0xde')](_0x133f8d);if(_0x286ffa){const _0x46cd6b=_0x270190[_0x48db('0xde')](_0x286ffa[_0x48db('0x35')]),_0x411f3e=new _0x265e6d({'author':_0x46cd6b,'type':_0x286ffa[_0x48db('0x2e')]?_0x48db('0xee'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x133f8d});_0x2d5c3c['unshift'](_0x411f3e),_0x261b9a[_0x48db('0xad')][_0x133f8d][_0x48db('0xce')]=_0x411f3e['id'];}_0x261b9a[_0x48db('0xe5')]=_0x261b9a[_0x48db('0xe5')][_0x48db('0x3c')](_0x2d5c3c);}return _0x261b9a;}[_0x48db('0xa')](_0x40495c,_0x4ad722){for(let _0x5307cf=0x0;_0x5307cf<_0x40495c[_0x48db('0xb6')];_0x5307cf++)for(const [_0x5b1e8e,_0x2d8cee]of _0x4ad722)_0x2d8cee[_0x48db('0x120')][_0x48db('0x86')](_0x40495c[_0x5307cf][_0x48db('0xc9')])&&_0x40495c[_0x5307cf][_0x48db('0x69')][_0x48db('0xdf')](_0x5b1e8e),_0x2d8cee[_0x48db('0x5')][_0x48db('0x86')](_0x40495c[_0x5307cf][_0x48db('0x81')])&&_0x40495c[_0x5307cf][_0x48db('0xf')][_0x48db('0xdf')](_0x5b1e8e);}[_0x48db('0x83')](_0x5650dc,_0x31385a){let _0x1c173c=[],_0xcded59=0x0,_0x1a09a8=0x0;for(;_0xcded59<_0x5650dc[_0x48db('0xb6')]||_0x1a09a8<_0x31385a['length'];){const _0x5c0346=_0x5650dc[_0xcded59]||{},_0x337098=_0x31385a[_0x1a09a8]||{};if(_0x5c0346['id']==_0x337098['id'])_0xcded59++,_0x1a09a8++,_0x1c173c[_0x48db('0xdf')](_0x5c0346);else{if(_0x337098['isRemoved']&&_0x5c0346[_0x48db('0x93')]){const {commonTape:_0x55ba36,iEnd:_0x9156d9,jEnd:_0x21a1c3}=this[_0x48db('0xf6')](_0x5650dc,_0xcded59,_0x31385a,_0x1a09a8);_0x1c173c=_0x1c173c[_0x48db('0x3c')](_0x55ba36),_0xcded59=_0x9156d9,_0x1a09a8=_0x21a1c3;}else _0x337098[_0x48db('0xe2')]?(_0x1a09a8++,_0x1c173c[_0x48db('0xdf')](_0x337098)):(_0xcded59++,_0x1c173c[_0x48db('0xdf')](_0x5c0346));}}return _0x1c173c;}[_0x48db('0x91')](_0x8c77fc,_0x345650){const _0x53e444=[];for(let _0x5ac852=0x0;_0x5ac852<_0x8c77fc[_0x48db('0xb6')];_0x5ac852++){for(let _0x436738=0x0;_0x436738<_0x8c77fc[_0x5ac852][_0x48db('0x69')][_0x48db('0xb6')];_0x436738++){const _0x6347da=_0x8c77fc[_0x5ac852][_0x48db('0x69')][_0x436738];if(!_0x345650['has'](_0x6347da))continue;const {group:_0x15ace0,type:_0x4ee840,authorId:_0x372b25}=_0xfd0106(_0x6347da);_0x48db('0x90')!=_0x15ace0||'insertion'!=_0x4ee840&&_0x48db('0x23')!=_0x4ee840||(_0x53e444[_0x48db('0x100')]({'type':_0x4ee840,'name':_0x6347da,'userId':_0x372b25}),_0x8c77fc[_0x5ac852][_0x48db('0x69')]['splice'](_0x436738,0x1),_0x436738--);}_0x3292cb(_0x8c77fc[_0x5ac852]);for(let _0x1cb7fc=0x0;_0x1cb7fc<_0x8c77fc[_0x5ac852][_0x48db('0xf')]['length'];_0x1cb7fc++){const _0x8fd7a5=_0x8c77fc[_0x5ac852]['markersEnd'][_0x1cb7fc];if(!_0x345650[_0x48db('0x4b')](_0x8fd7a5))continue;const {group:_0xac010a,type:_0x16d889}=_0xfd0106(_0x8fd7a5);if(_0x48db('0x90')!=_0xac010a||_0x48db('0xd')!=_0x16d889&&_0x48db('0x23')!=_0x16d889)continue;_0x8c77fc[_0x5ac852][_0x48db('0xf')]['splice'](_0x1cb7fc,0x1),_0x1cb7fc--;const _0x31a0b0=_0x53e444['findIndex'](_0x3ac8e6=>_0x3ac8e6[_0x48db('0x51')]==_0x8fd7a5);_0x31a0b0>-0x1&&_0x53e444['splice'](_0x31a0b0,0x1);}}function _0xfd0106(_0x333a04){const _0x292285=_0x333a04[_0x48db('0x20')](':');return{'group':_0x292285[0x0],'type':_0x292285[0x1],'subType':_0x292285['length']>=0x5?_0x292285[0x2]:null,'id':_0x292285[_0x48db('0xb6')]<0x5?_0x292285[0x2]:_0x292285[0x3],'authorId':_0x292285[_0x48db('0xb6')]<0x5?_0x292285[0x3]:_0x292285[0x4],'markerCount':0x6==_0x292285[_0x48db('0xb6')]?_0x292285[0x5]:null};}function _0x3292cb(_0x17e06b){for(let _0x4df7aa=0x0;_0x4df7aa<_0x53e444[_0x48db('0xb6')];_0x4df7aa++){if(_0x17e06b[_0x48db('0x93')]&&'insertion'==_0x53e444[_0x4df7aa][_0x48db('0x55')])return _0x17e06b[_0x48db('0x14')]=_0x53e444[_0x4df7aa],void delete _0x17e06b[_0x48db('0x93')];if(!_0x17e06b[_0x48db('0x93')]&&!_0x17e06b[_0x48db('0xe2')]&&_0x48db('0x23')==_0x53e444[_0x4df7aa][_0x48db('0x55')])return void(_0x17e06b[_0x48db('0x73')]=_0x53e444[_0x4df7aa]);}}}[_0x48db('0x4a')](_0x1579f1,_0x2ca497){let _0x10ee07=0x0,_0x30ecdd=!0x1;const _0x16c017=new Map();for(const _0x19e83b of _0x1579f1)_0x19e83b[_0x2ca497]?_0x30ecdd&&(_0x10ee07++,_0x30ecdd=!0x1):(_0x10ee07++,_0x30ecdd=!0x0),_0x16c017['set'](_0x19e83b['id'],_0x10ee07);for(let _0x3fecab=0x0;_0x3fecab<_0x1579f1[_0x48db('0xb6')];_0x3fecab++){if(_0x48db('0xe2')==_0x2ca497&&_0x1579f1[_0x3fecab][_0x48db('0x93')]||_0x48db('0x93')==_0x2ca497&&_0x1579f1[_0x3fecab]['isRemoved'])continue;if('text'==_0x1579f1[_0x3fecab]['type']){_0x1579f1[_0x3fecab][_0x48db('0xba')]=0x0;continue;}const _0x4fc8df=_0x16c017[_0x48db('0xde')](_0x1579f1[_0x3fecab]['pairId']),_0x2bfe1d=_0x16c017[_0x48db('0xde')](_0x1579f1[_0x3fecab]['id']);_0x1579f1[_0x3fecab][_0x48db('0xba')]=_0x4fc8df-_0x2bfe1d;}}[_0x48db('0xed')](_0x17923c,_0x21d7db,_0x487e31=!0x1){const _0xd5dfe3=[];let _0x57b9d0=this[_0x48db('0xa0')][_0x48db('0x29')](_0x17923c),_0x47c96b=this[_0x48db('0xa0')][_0x48db('0x29')](_0x21d7db);for(-0x1==_0x47c96b&&(_0x47c96b=this[_0x48db('0xa0')]['_revisions'][_0x48db('0xb6')],_0x487e31=!0x1);_0x57b9d0<_0x47c96b;)_0xd5dfe3['push'](this[_0x48db('0xa0')][_0x48db('0xd3')](_0x57b9d0)),_0x57b9d0++;return _0x487e31&&_0xd5dfe3['push'](this[_0x48db('0xa0')][_0x48db('0xd3')](_0x57b9d0)),_0xd5dfe3;}[_0x48db('0xf6')](_0x4a409f,_0x5c79c8,_0xec0345,_0x563e2a){const _0x130219=this['editor'][_0x48db('0x62')][_0x48db('0xf2')];let _0x4b5cdd=_0x5c79c8;for(;_0x4a409f[_0x4b5cdd]&&_0x4a409f[_0x4b5cdd]['isAdded'];)_0x4b5cdd++;let _0x21b211=_0x563e2a;for(;_0xec0345[_0x21b211]&&_0xec0345[_0x21b211][_0x48db('0xe2')];)_0x21b211++;_0x3e1392(_0x4a409f,_0x5c79c8,_0x4b5cdd),_0x3e1392(_0xec0345,_0x563e2a,_0x21b211);const _0x5dcfa4=_0xec0345[_0x48db('0x3b')](_0x563e2a,_0x21b211)[_0x48db('0x3c')](_0x4a409f[_0x48db('0x3b')](_0x5c79c8,_0x4b5cdd));return _0x5dcfa4['sort']((_0x45bbe7,_0x4fcbeb)=>_0x45bbe7[_0x48db('0xfd')]!=_0x4fcbeb['side']?_0x45bbe7[_0x48db('0xfd')]-_0x4fcbeb[_0x48db('0xfd')]:_0x45bbe7[_0x48db('0x7c')]!=_0x4fcbeb[_0x48db('0x7c')]?_0x45bbe7['level']-_0x4fcbeb[_0x48db('0x7c')]:_0x45bbe7[_0x48db('0xba')]!=_0x4fcbeb[_0x48db('0xba')]?_0x4fcbeb[_0x48db('0xba')]-_0x45bbe7[_0x48db('0xba')]:!!_0x45bbe7['isAdded']!=!!_0x4fcbeb['isAdded']?-0x1==_0x45bbe7['side']||0x0==_0x45bbe7[_0x48db('0xfd')]?_0x45bbe7[_0x48db('0x93')]?-0x1:0x1:_0x45bbe7[_0x48db('0x93')]?0x1:-0x1:_0x45bbe7[_0x48db('0x24')]-_0x4fcbeb[_0x48db('0x24')]),{'commonTape':_0x5dcfa4,'iEnd':_0x4b5cdd,'jEnd':_0x21b211};function _0x3e1392(_0x35ba35,_0xb9d0f,_0x36ce61){let _0xcf42b2=-0x1,_0x37db82=Number[_0x48db('0xb8')],_0x47973e=!0x0;for(let _0x2e2ac3=_0xb9d0f;_0x2e2ac3<_0x36ce61;_0x2e2ac3++)if(_0x130219[_0x48db('0xbc')](_0x35ba35[_0x2e2ac3][_0x48db('0xc8')])||(_0x47973e=!0x1),_0x35ba35[_0x2e2ac3][_0x48db('0xc8')][_0x48db('0x94')]<_0xb9d0f&&(_0xcf42b2=_0x2e2ac3),_0x35ba35[_0x2e2ac3][_0x48db('0xc8')][_0x48db('0x107')]>=_0x36ce61){_0x37db82=_0x2e2ac3;break;}_0x47973e&&(_0xcf42b2=_0x36ce61-0x1);for(let _0x2a7d2=_0xb9d0f;_0x2a7d2<_0x36ce61;_0x2a7d2++)_0x35ba35[_0x2a7d2][_0x48db('0xfd')]=_0x2a7d2<=_0xcf42b2?-0x1:_0x2a7d2<_0x37db82?0x0:0x1,_0x35ba35[_0x2a7d2][_0x48db('0x24')]=_0x2a7d2;let _0x466c6f=0x0;for(let _0x4e8e8e=_0xb9d0f;_0x4e8e8e<=_0xcf42b2;_0x4e8e8e++)0x0==_0x35ba35[_0x4e8e8e][_0x48db('0xba')]?_0x35ba35[_0x4e8e8e]['level']=_0x466c6f:(_0x466c6f++,_0x35ba35[_0x4e8e8e][_0x48db('0x7c')]=_0x466c6f,_0x466c6f++);for(let _0x33f822=_0xb9d0f;_0x33f822<_0x36ce61;_0x33f822++)0x0==_0x35ba35[_0x33f822][_0x48db('0xfd')]&&(_0x35ba35[_0x33f822][_0x48db('0x7c')]=_0x466c6f);_0x466c6f=0x0;for(let _0x2a70a1=_0x36ce61-0x1;_0x2a70a1>=_0x37db82;_0x2a70a1--)0x0==_0x35ba35[_0x2a70a1][_0x48db('0xba')]?_0x35ba35[_0x2a70a1][_0x48db('0x7c')]=_0x466c6f:(_0x466c6f--,_0x35ba35[_0x2a70a1]['level']=_0x466c6f,_0x466c6f--);}}[_0x48db('0x7')](_0x13dffd){const _0x2d9296=new Map(),_0x3ec712=this[_0x48db('0x119')][_0x48db('0x62')]['schema'];for(let _0x52199a=0x1;_0x52199a<_0x13dffd[_0x48db('0xb6')];_0x52199a++){let _0x42dfeb,_0x5039fb,_0x290c74;const _0xdb50b7=_0x13dffd[_0x52199a],_0x53b2a5=_0x13dffd[_0x52199a-0x1];if(_0x48db('0x8d')==_0xdb50b7[_0x48db('0x55')])continue;if(_0xdb50b7[_0x48db('0x55')]!=_0x53b2a5[_0x48db('0x55')])continue;if(!_0x3ec712[_0x48db('0x13')](_0x53b2a5[_0x48db('0xc8')])||_0x3ec712['isLimit'](_0x53b2a5[_0x48db('0xc8')]))continue;if(!_0x3ec712[_0x48db('0x13')](_0xdb50b7[_0x48db('0xc8')])||_0x3ec712[_0x48db('0x115')](_0xdb50b7['item']))continue;if((_0x13dffd[_0x52199a][_0x48db('0x93')]||_0x13dffd[_0x52199a][_0x48db('0x14')])&&_0x13dffd[_0x52199a-0x1][_0x48db('0xe2')])_0x42dfeb=_0x13dffd[_0x52199a],_0x5039fb=_0x13dffd[_0x52199a-0x1],_0x290c74=_0x52199a-0x1;else{if(!_0x13dffd[_0x52199a][_0x48db('0xe2')]||!_0x13dffd[_0x52199a-0x1][_0x48db('0x93')]&&!_0x13dffd[_0x52199a-0x1]['isAddSuggestion'])continue;_0x42dfeb=_0x13dffd[_0x52199a-0x1],_0x5039fb=_0x13dffd[_0x52199a],_0x290c74=_0x52199a;}const _0x507316=_0x42dfeb[_0x48db('0x7c')]==_0x5039fb['level'],_0x3ebc80=Math[_0x48db('0x10f')](_0x42dfeb['level'])<Math[_0x48db('0x10f')](_0x5039fb['level'])&&0x0==_0x5039fb[_0x48db('0xba')];(_0x507316||_0x3ebc80)&&(_0x2d9296[_0x48db('0x57')](_0x5039fb['id'],_0x42dfeb['id']),_0x13dffd['splice'](_0x290c74,0x1),_0x52199a--,_0x42dfeb[_0x48db('0x93')]=!0x1);}for(let _0x829d9f=0x0;_0x829d9f<_0x13dffd[_0x48db('0xb6')];_0x829d9f++)_0x2d9296['has'](_0x13dffd[_0x829d9f][_0x48db('0x84')])&&(_0x13dffd[_0x829d9f][_0x48db('0x84')]=_0x2d9296[_0x48db('0xde')](_0x13dffd[_0x829d9f][_0x48db('0x84')]));}[_0x48db('0xe9')](_0x436a4e){const _0x1a7062=new Set(_0x436a4e['map'](_0x402090=>_0x402090['id']));for(let _0x3124c6=0x0;_0x3124c6<_0x436a4e[_0x48db('0xb6')];_0x3124c6++)_0x1a7062['has'](_0x436a4e[_0x3124c6][_0x48db('0x84')])||0x0==_0x436a4e[_0x3124c6]['distance']||(_0x436a4e[_0x3124c6][_0x48db('0x59')]=!0x0);return _0x436a4e[_0x48db('0x11')](_0xb0245a=>!_0xb0245a[_0x48db('0x59')]);}[_0x48db('0x9e')](_0x36f8f3){const _0x5e5da7=new Set();for(let _0x1c5566=0x0;_0x1c5566<_0x36f8f3['length'];_0x1c5566++){if(_0x5e5da7[_0x48db('0x4b')](_0x36f8f3[_0x1c5566]['id'])&&_0x36f8f3[_0x1c5566][_0x48db('0xe2')]&&(_0x36f8f3[_0x1c5566][_0x48db('0x59')]=!0x0),_0x36f8f3[_0x1c5566][_0x48db('0x59')])continue;if(0x0==_0x36f8f3[_0x1c5566][_0x48db('0xba')])continue;if('elementStart'!=_0x36f8f3[_0x1c5566][_0x48db('0x55')])continue;if(null==_0x36f8f3[_0x1c5566]['pairId'])continue;let _0x5c1aa6=_0x1c5566+0x1,_0x42bedb=0x0;for(;_0x36f8f3[_0x5c1aa6]['id']!=_0x36f8f3[_0x1c5566][_0x48db('0x84')];)_0x48db('0xb3')==_0x36f8f3[_0x5c1aa6]['type']?_0x42bedb++:_0x48db('0x30')==_0x36f8f3[_0x5c1aa6][_0x48db('0x55')]&&_0x42bedb--,_0x5c1aa6++;if(0x0!=_0x42bedb){if(_0x36f8f3[_0x1c5566][_0x48db('0xe2')])_0x36f8f3[_0x1c5566]['isIncorrect']=!0x0;else for(;_0x5c1aa6!=_0x1c5566;)_0x36f8f3[_0x5c1aa6][_0x48db('0xe2')]&&0x0!=_0x36f8f3[_0x5c1aa6][_0x48db('0xba')]&&(_0x36f8f3[_0x5c1aa6][_0x48db('0x59')]=!0x0,_0x5e5da7[_0x48db('0xee')](_0x36f8f3[_0x5c1aa6][_0x48db('0x84')])),_0x5c1aa6--;}}return _0x36f8f3['filter'](_0x130773=>!_0x130773[_0x48db('0x59')]);}[_0x48db('0x3f')](_0x21eec7){const _0x4a0994=this['editor'][_0x48db('0x62')][_0x48db('0xf2')];for(let _0x5abafc=0x0;_0x5abafc<_0x21eec7['length'];_0x5abafc++){if(!(_0x21eec7[_0x5abafc][_0x48db('0x93')]||_0x21eec7[_0x5abafc][_0x48db('0x14')]||_0x21eec7[_0x5abafc][_0x48db('0xe2')]||_0x21eec7[_0x5abafc][_0x48db('0x73')]))continue;if(0x0==_0x21eec7[_0x5abafc][_0x48db('0xba')])continue;const _0x45cced=_0x21eec7[_0x5abafc]['item'];_0x4a0994[_0x48db('0x13')](_0x45cced)||_0x4a0994[_0x48db('0x115')](_0x45cced)||(_0x21eec7[_0x5abafc][_0x48db('0x93')]&&delete _0x21eec7[_0x5abafc]['isAdded'],_0x21eec7[_0x5abafc][_0x48db('0x14')]&&delete _0x21eec7[_0x5abafc][_0x48db('0x14')],_0x21eec7[_0x5abafc][_0x48db('0x73')]&&delete _0x21eec7[_0x5abafc][_0x48db('0x73')],_0x21eec7[_0x5abafc][_0x48db('0xe2')]&&(_0x21eec7[_0x5abafc]['isIncorrect']=!0x0));}return _0x21eec7[_0x48db('0x11')](_0x6d02e4=>!_0x6d02e4['isIncorrect']);}[_0x48db('0x46')](_0x4bff99,_0xf1a30c,_0x906c72){const _0x7f03be=new _0x489477(),_0x28aad6=[],_0xf66174=new Map(),_0x1f367f=this[_0x48db('0x119')][_0x48db('0x62')],_0x285a6f=_0x1f367f['schema'],_0x4b67dc=[_0x7f03be],_0xeb69a8={},_0x106376={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1d0b12=null;const _0x5b0b07=[0x0];for(let _0x3938eb=0x0;_0x3938eb<_0x4bff99[_0x48db('0xb6')];_0x3938eb++){let _0x34fd33,_0x1810c0;if('elementStart'===_0x4bff99[_0x3938eb][_0x48db('0x55')]){_0x34fd33=_0x1f367f['createPositionFromPath'](_0x7f03be,_0x5b0b07);const _0x480635=new _0x3294a3(_0x4bff99[_0x3938eb][_0x48db('0xc8')][_0x48db('0x51')],_0x4bff99[_0x3938eb][_0x48db('0xc8')][_0x48db('0x8c')]());_0x4b67dc[0x0][_0x48db('0x9b')](_0x480635),_0x5b0b07[_0x48db('0xdf')](0x0),_0x4b67dc[_0x48db('0x100')](_0x480635),_0x1810c0=_0x1f367f['createPositionFromPath'](_0x7f03be,_0x5b0b07),_0x1d0b12=null;}else{if(_0x48db('0x30')===_0x4bff99[_0x3938eb][_0x48db('0x55')])_0x4b67dc['shift'](),_0x34fd33=_0x1f367f[_0x48db('0x111')](_0x7f03be,_0x5b0b07),_0x5b0b07[_0x48db('0x43')](),_0x5b0b07[_0x5b0b07['length']-0x1]++,_0x1810c0=_0x1f367f['createPositionFromPath'](_0x7f03be,_0x5b0b07),_0x1d0b12=null;else{if(_0x34fd33=_0x1f367f[_0x48db('0x111')](_0x7f03be,_0x5b0b07),_0x1d0b12&&_0x1acc4a(_0x1d0b12,_0x4bff99[_0x3938eb][_0x48db('0xc8')]))_0x1d0b12[_0x48db('0x3a')]+=_0x4bff99[_0x3938eb][_0x48db('0xc8')]['data'];else{const _0x287246=new _0xb4ccc7(_0x4bff99[_0x3938eb][_0x48db('0xc8')][_0x48db('0xda')],_0x4bff99[_0x3938eb][_0x48db('0xc8')]['getAttributes']());_0x4b67dc[0x0][_0x48db('0x9b')](_0x287246),_0x1d0b12=_0x287246;}_0x5b0b07[_0x5b0b07[_0x48db('0xb6')]-0x1]+=_0x4bff99[_0x3938eb][_0x48db('0xc8')][_0x48db('0xcc')],_0x1810c0=_0x1f367f[_0x48db('0x111')](_0x7f03be,_0x5b0b07);}}for(const _0x5550bc of _0x4bff99[_0x3938eb][_0x48db('0x69')])_0xf66174[_0x48db('0x57')](_0x5550bc,{'start':_0x34fd33,'end':null});_0x2757b2('isRemoveSuggestion',_0x3938eb,_0x34fd33,_0x1810c0),_0x2757b2(_0x48db('0x14'),_0x3938eb,_0x34fd33,_0x1810c0),_0x2757b2(_0x48db('0xe2'),_0x3938eb,_0x34fd33,_0x1810c0),_0x2757b2('isAdded',_0x3938eb,_0x34fd33,_0x1810c0);for(const _0x158342 of _0x4bff99[_0x3938eb][_0x48db('0xf')]){_0xf66174[_0x48db('0xde')](_0x158342)[_0x48db('0x5')]=_0x1810c0;}}for(const [_0x4a5042,_0x142a7]of _0xf66174){const _0x3cb1ba=this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x54')](_0x142a7['start'],_0x142a7['end']);_0x7f03be[_0x48db('0x8b')][_0x48db('0x57')](_0x4a5042,_0x3cb1ba);}return _0x28aad6['sort']((_0x5b823e,_0x7f6eac)=>{const _0x48c7ba=_0x7f03be[_0x48db('0x8b')][_0x48db('0xde')](_0x48db('0x6')+_0x5b823e['id']),_0xd1ca89=_0x7f03be[_0x48db('0x8b')][_0x48db('0xde')](_0x48db('0x6')+_0x7f6eac['id']);return _0x48c7ba[_0x48db('0x120')][_0x48db('0x3')](_0xd1ca89[_0x48db('0x120')])?-0x1:_0x48c7ba['start'][_0x48db('0xc2')](_0xd1ca89[_0x48db('0x120')])?0x1:_0x48c7ba[_0x48db('0x5')]['isBefore'](_0xd1ca89[_0x48db('0x5')])?-0x1:_0x48c7ba[_0x48db('0x5')][_0x48db('0xc2')](_0xd1ca89[_0x48db('0x5')])?0x1:_0x48db('0xee')===_0x5b823e[_0x48db('0x55')]?-0x1:0x1;}),{'root':_0x7f03be,'changes':_0x28aad6};function _0x2757b2(_0x1efd10,_0x425b9f,_0x143ed5,_0x52608a){const _0xcf6bf2=!!_0x4bff99[_0x425b9f][_0x1efd10],_0x16e8a2=_0xcf6bf2?_0x4bff99[_0x425b9f][_0x1efd10][_0x48db('0x35')]:null,_0x58a170=_0x425b9f===_0x4bff99[_0x48db('0xb6')]-0x1,_0x1323b3=_0x106376[_0x1efd10][0x0],_0x36a4f7=_0x285a6f['isObject'](_0x4bff99[_0x425b9f][_0x48db('0xc8')]);!_0xeb69a8[_0x1efd10]&&_0xcf6bf2?_0xeb69a8[_0x1efd10]={'start':_0x143ed5,'tapeItem':_0x4bff99[_0x425b9f],'userId':_0x16e8a2,'type':_0x1efd10}:_0xeb69a8[_0x1efd10]&&!_0xcf6bf2?(_0xeb69a8[_0x1efd10]['end']=_0x143ed5,_0x4bcab8(_0xeb69a8[_0x1efd10]),_0xeb69a8[_0x1efd10]=null):_0xeb69a8[_0x1efd10]&&_0xcf6bf2&&_0xeb69a8[_0x1efd10][_0x48db('0x35')]!==_0x16e8a2&&(_0xeb69a8[_0x1efd10][_0x48db('0x5')]=_0x143ed5,_0x1323b3&&_0x1323b3[_0x48db('0x35')]===_0xeb69a8[_0x1efd10]['userId']||_0x4bcab8(_0xeb69a8[_0x1efd10]),_0xeb69a8[_0x1efd10]={'start':_0x143ed5,'tapeItem':_0x4bff99[_0x425b9f],'userId':_0x16e8a2,'type':_0x1efd10}),_0xeb69a8[_0x1efd10]&&_0x36a4f7&&('elementStart'!==_0x4bff99[_0x425b9f][_0x48db('0x55')]||_0x1323b3&&_0x1323b3[_0x48db('0x35')]===_0x16e8a2||_0x106376[_0x1efd10][_0x48db('0x100')]({'userId':_0x16e8a2,'object':_0x4bff99[_0x425b9f][_0x48db('0xc8')],'change':_0xeb69a8[_0x1efd10]}),'elementEnd'===_0x4bff99[_0x425b9f][_0x48db('0x55')]&&_0x1323b3&&_0x1323b3[_0x48db('0x8a')]===_0x4bff99[_0x425b9f][_0x48db('0xc8')]&&(_0x106376[_0x1efd10][_0x48db('0xbd')](),_0xeb69a8[_0x1efd10]=_0x1323b3[_0x48db('0x12')])),_0xeb69a8[_0x1efd10]&&_0x58a170&&(_0xeb69a8[_0x1efd10]['end']=_0x52608a,_0x4bcab8(_0xeb69a8[_0x1efd10]),_0xeb69a8[_0x1efd10]=null);}function _0x4bcab8({start:_0x55a0f6,end:_0x2a1542,tapeItem:_0x2025d7,userId:_0x5c08ef,type:_0x2e7ff8}){const _0xd6905f=_0x2025d7[_0x48db('0xc8')],_0x3b4e81=_0x1f367f[_0x48db('0xf2')]['isBlock'](_0xd6905f)&&!_0x1f367f[_0x48db('0xf2')][_0x48db('0x115')](_0xd6905f),_0x4918b6=_0x55a0f6[_0x48db('0x0')]==_0x2a1542[_0x48db('0x11e')]&&_0x2a1542['isAtStart'];if(_0x3b4e81&&_0x4918b6)return;const _0x329ace=_0x1f367f[_0x48db('0x54')](_0x55a0f6,_0x2a1542),_0x1555b7=_0xf1a30c['get'](_0x5c08ef),_0x17de43=new _0x265e6d({'author':_0x1555b7,'type':'isAdded'==_0x2e7ff8||_0x48db('0x14')==_0x2e7ff8?_0x48db('0xee'):_0x48db('0xbb'),'data':{'isSuggestion':_0x48db('0x14')==_0x2e7ff8||'isRemoveSuggestion'==_0x2e7ff8},'createdAt':new Date(),'rootName':_0x906c72});_0x28aad6[_0x48db('0xdf')](_0x17de43),_0x7f03be[_0x48db('0x8b')][_0x48db('0x57')](_0x48db('0x6')+_0x17de43['id'],_0x329ace);}function _0x1acc4a(_0x428da9,_0x4db5a0){const _0x32f133=_0x428da9[_0x48db('0x8c')](),_0x55b6f3=_0x4db5a0[_0x48db('0x8c')]();for(const _0x4a0922 of _0x32f133){if(_0x4a0922[0x1]!==_0x4db5a0[_0x48db('0xfa')](_0x4a0922[0x0]))return!0x1;_0x55b6f3[_0x48db('0xdd')]();}return _0x55b6f3['next']()[_0x48db('0xbe')];}}[_0x48db('0xd1')](){this[_0x48db('0x119')][_0x48db('0x8f')]['for'](_0x48db('0xe3'))[_0x48db('0x1e')]({'view':_0x48db('0x7e')}),this[_0x48db('0x119')][_0x48db('0x8f')][_0x48db('0x6d')](_0x48db('0xea'))[_0x48db('0x118')]({'model':_0x48db('0x7e'),'view':_0x3b05cb=>{const _0x374482=_0x3b05cb[_0x48db('0xa7')][_0x48db('0x20')](':')[0x1],_0x428d9c=this[_0x48db('0x70')](_0x374482);if(!_0x428d9c)return null;const _0x32245e=_0x48db('0xee')==_0x428d9c[_0x48db('0x55')]?'insertion':_0x48db('0x23'),_0x1ecc8a=[_0x48db('0xac'),_0x48db('0xcb')+_0x32245e];return _0x428d9c[_0x48db('0xda')][_0x48db('0x21')]&&_0x1ecc8a[_0x48db('0xdf')](_0x48db('0xcb')+_0x32245e+_0x48db('0x1c')),this[_0x48db('0x101')]==_0x428d9c&&_0x1ecc8a[_0x48db('0xdf')](_0x48db('0xdc')),{'classes':_0x1ecc8a,'attributes':{'data-change-id':_0x374482}};}}),this[_0x48db('0x119')][_0x48db('0x8f')][_0x48db('0x6d')](_0x48db('0xe3'))[_0x48db('0xee')](_0x39980b=>{_0x39980b['on'](_0x48db('0xe1'),(_0x54fd00,_0x48a126,_0x5b2583)=>{const _0xf33267=_0x48a126[_0x48db('0x63')][_0x48db('0x8e')](0x0);if(!_0xf33267||!_0xf33267['is'](_0x48db('0x82'),_0x48db('0x2b')))return;if(!_0x5b2583['consumable']['consume'](_0xf33267,{'attributes':[_0x48db('0x26'),_0x48db('0x19')]}))return;const _0x2a31ee=_0x48a126['modelRange'][_0x48db('0x120')]['nodeAfter'];_0x5b2583['writer']['setAttribute'](_0x48db('0x26'),_0xf33267[_0x48db('0xfa')](_0x48db('0x26')),_0x2a31ee),_0x5b2583['writer']['setAttribute'](_0x48db('0x19'),_0xf33267['getAttribute'](_0x48db('0x19')),_0x2a31ee);},{'priority':'low'});}),this['editor'][_0x48db('0x8f')][_0x48db('0x6d')](_0x48db('0xe3'))[_0x48db('0xee')](_0x16bae2=>{_0x16bae2['on'](_0x48db('0x82'),(_0x4b63e2,_0x2d0c63,_0x13cd5a)=>{if(!_0x13cd5a[_0x48db('0xd6')]['consume'](_0x2d0c63[_0x48db('0x63')],{'attributes':[_0x48db('0x26'),_0x48db('0x19')]}))return;if(_0x2d0c63[_0x48db('0xa2')]['isCollapsed'])return;const _0x19f2b5=_0x2d0c63[_0x48db('0xa2')]['start'][_0x48db('0x0')];_0x19f2b5['hasAttribute'](_0x48db('0x26'))||_0x19f2b5[_0x48db('0x104')](_0x48db('0xef'))||(_0x13cd5a[_0x48db('0x103')][_0x48db('0x76')](_0x48db('0x26'),_0x2d0c63[_0x48db('0x63')][_0x48db('0xfa')](_0x48db('0x26')),_0x19f2b5),_0x13cd5a['writer']['setAttribute']('vid_end',_0x2d0c63[_0x48db('0x63')][_0x48db('0xfa')](_0x48db('0x19')),_0x19f2b5));},{'priority':_0x48db('0xb2')});}),this['editor'][_0x48db('0x8f')]['for'](_0x48db('0xe3'))[_0x48db('0x1a')]({'view':{'name':_0x48db('0x88'),'attributes':{'vid':!0x0}},'model':{'key':_0x48db('0xef'),'value':_0x36b216=>_0x36b216[_0x48db('0xfa')](_0x48db('0xef'))}}),this['editor'][_0x48db('0x62')][_0x48db('0xf2')]['on'](_0x48db('0x4'),(_0x5662db,[,_0x466959])=>{[_0x48db('0x26'),'vid_end',_0x48db('0xef')][_0x48db('0xe')](_0x466959)&&(_0x5662db['return']=!0x0,_0x5662db[_0x48db('0x106')]());},{'priority':_0x48db('0xb9')}),this['editor']['conversion'][_0x48db('0x6d')](_0x48db('0xe4'))[_0x48db('0xee')](_0x1b6a83=>{_0x1b6a83['on'](_0x48db('0x22'),(_0x2efa5a,_0x106b1b,_0x52082e)=>{if('\x20'!=_0x106b1b[_0x48db('0xc8')]['data']||_0x106b1b['item'][_0x48db('0x11e')]['maxOffset']>0x1)return;if(!_0x52082e['consumable'][_0x48db('0x97')](_0x106b1b[_0x48db('0xc8')],_0x2efa5a['name']))return;const _0x34dbb1=_0x52082e[_0x48db('0x103')],_0x53758f=_0x52082e[_0x48db('0xb0')][_0x48db('0xd7')](_0x106b1b['range']);_0x34dbb1[_0x48db('0x7b')](_0x53758f,_0x34dbb1['createAttributeElement'](_0x48db('0x88')));});}),this[_0x48db('0x119')][_0x48db('0x8f')]['for']('dataDowncast')[_0x48db('0x1b')]({'model':'revision'}),this[_0x48db('0x119')][_0x48db('0x8')][_0x48db('0x10a')]['on']('addMarker:revision',function(_0x4ee3d7){const _0x442a6f=_0x4ee3d7[_0x48db('0x42')][_0x48db('0xde')]('RevisionViewer');return(_0x401b9a,_0x330df3,_0x3f9390)=>{const _0x3a280b=_0x330df3['markerName'][_0x48db('0x20')](':')[0x1],_0x238718=_0x442a6f[_0x48db('0x70')](_0x3a280b);if(!_0x238718)return null;const _0x27e999=_0x48db('0xee')==_0x238718[_0x48db('0x55')]?_0x48db('0x20'):_0x48db('0x89');if(!_0x3f9390['consumable'][_0x48db('0xff')](_0x330df3[_0x48db('0x58')],_0x401b9a['name']))return;const _0x524865=_0x330df3[_0x48db('0x58')][_0x48db('0x45')](),_0x1b0186=_0x330df3[_0x48db('0x58')][_0x48db('0x120')],_0x6a7698=_0x4ee3d7[_0x48db('0x62')][_0x48db('0xf2')];let _0x2deecb=null,_0x51cec0=null,_0x19a2f5=!0x1,_0x4265ee=!0x1;for(const _0xf04816 of _0x524865){const _0x3606ee=_0xf04816[_0x48db('0xc8')];_0x19a2f5=_0x19a2f5||_0x6a7698[_0x48db('0x11f')](_0x3606ee);const _0x4cbba4=_0x3f9390[_0x48db('0xb0')][_0x48db('0x6c')](_0x3606ee);if(_0x4cbba4&&_0x4cbba4[_0x48db('0x80')](_0x48db('0xa3')))return;_0x48db('0x30')==_0xf04816[_0x48db('0x55')]&&(_0x6a7698[_0x48db('0x13')](_0x3606ee)&&!_0x6a7698[_0x48db('0x115')](_0x3606ee)&&(_0x3606ee['nextSibling']||_0x1b0186[_0x48db('0x5b')]?_0x2deecb&&_0x2deecb[_0x48db('0x11e')]==_0x3606ee||(_0x2deecb=_0x3606ee,_0x51a884(_0xf04816[_0x48db('0xc9')]),_0x4265ee=!0x0):_0x51cec0=_0x51cec0||_0xf04816[_0x48db('0xc9')]));}function _0x51a884(_0x4af2e9){const _0x175359=_0x3f9390[_0x48db('0x103')][_0x48db('0xa1')]('span',{'class':_0x48db('0xcb')+_0x27e999}),_0x42549b=_0x3f9390['mapper'][_0x48db('0xb')](_0x4af2e9);_0x238718[_0x48db('0xda')][_0x48db('0x21')]&&_0x3f9390[_0x48db('0x103')]['addClass']('ck-suggestion-marker-'+_0x27e999+'-new',_0x175359),_0x442a6f[_0x48db('0x101')]==_0x238718&&_0x3f9390[_0x48db('0x103')]['addClass']('ck-suggestion-marker--active',_0x175359),_0x3f9390[_0x48db('0x103')][_0x48db('0xd5')](_0x42549b,_0x175359),_0x3f9390[_0x48db('0xb0')]['bindElementToMarker'](_0x175359,_0x330df3[_0x48db('0xa7')]);}_0x19a2f5||_0x4265ee||!_0x51cec0||_0x51a884(_0x51cec0);};}(this[_0x48db('0x119')]),{'priority':_0x48db('0x27')}),this[_0x48db('0x119')][_0x48db('0x8')]['downcastDispatcher']['on'](_0x48db('0xe8'),(_0x17f4c6,_0x44f43c,_0x5ef6a5)=>{const _0x4c326c=_0x5ef6a5['mapper']['markerNameToElements'](_0x44f43c['markerName']);if(_0x4c326c)for(const _0x366768 of _0x4c326c)(_0x366768['hasClass'](_0x48db('0x4e'))||_0x366768[_0x48db('0x113')]('ck-suggestion-marker-merge'))&&(_0x5ef6a5['mapper'][_0x48db('0xb1')](_0x366768,_0x44f43c['markerName']),_0x5ef6a5[_0x48db('0x103')][_0x48db('0xbb')](_0x366768));},{'priority':_0x48db('0x27')}),this[_0x48db('0x119')][_0x48db('0x8')][_0x48db('0x10a')]['on'](_0x48db('0xf7'),(_0x50c079,_0x1a4adf,_0x3ad504)=>{const _0x1c9fda=_0x1a4adf[_0x48db('0xa7')]['split'](':')[0x1],_0x570530=this[_0x48db('0x70')](_0x1c9fda);if(!_0x570530)return null;const _0x59451c=_0x48db('0xee')==_0x570530[_0x48db('0x55')]?_0x48db('0x20'):_0x48db('0x89');if(_0x3ad504['consumable'][_0x48db('0xff')](_0x1a4adf['markerRange'],_0x50c079[_0x48db('0x51')]))for(const _0x2795f7 of _0x1a4adf[_0x48db('0x58')][_0x48db('0xb4')]()){if(!_0x2795f7['is'](_0x48db('0x82'),_0x48db('0x4d')))continue;const _0x173b0a=_0x3ad504[_0x48db('0x103')][_0x48db('0xa1')](_0x48db('0x88'),{'class':_0x48db('0xcb')+_0x59451c}),_0x4214ce=_0x3ad504[_0x48db('0xb0')][_0x48db('0xb')](this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x11c')](_0x2795f7));_0x570530[_0x48db('0xda')][_0x48db('0x21')]&&_0x3ad504[_0x48db('0x103')][_0x48db('0x68')](_0x48db('0xcb')+_0x59451c+_0x48db('0x1c'),_0x173b0a),this[_0x48db('0x101')]==_0x570530&&_0x3ad504[_0x48db('0x103')]['addClass'](_0x48db('0xdc'),_0x173b0a),_0x3ad504[_0x48db('0x103')]['insert'](_0x4214ce,_0x173b0a),_0x3ad504['mapper'][_0x48db('0x5e')](_0x173b0a,_0x1a4adf[_0x48db('0xa7')]);}},{'priority':_0x48db('0x27')}),this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x28')]['on'](_0x48db('0x12'),()=>{this['editor']['editing'][_0x48db('0x5c')][_0x48db('0x12')](_0x361236=>{for(const _0x250629 of this[_0x48db('0x119')]['model'][_0x48db('0x28')][_0x48db('0xbf')]()){const _0x372526=this['editor'][_0x48db('0x62')]['document'][_0x48db('0xa9')](_0x250629),_0x3e17ae=this[_0x48db('0x119')][_0x48db('0x8')][_0x48db('0x5c')][_0x48db('0x28')]['getRoot'](_0x250629);if(_0x3e17ae){const _0x1c410e=_0x372526[_0x48db('0xfa')](_0x48db('0xce'));if(_0x361236[_0x48db('0x95')]('data-change-id',_0x3e17ae),_0x361236[_0x48db('0x48')](_0x48db('0x92'),_0x3e17ae),_0x361236[_0x48db('0x48')](_0x48db('0xc5'),_0x3e17ae),_0x361236[_0x48db('0x48')](_0x48db('0x4f'),_0x3e17ae),_0x1c410e){const _0x50b944=this[_0x48db('0x70')](_0x1c410e);if(!_0x50b944)return null;_0x361236[_0x48db('0x76')](_0x48db('0xd0'),_0x1c410e,_0x3e17ae),_0x361236[_0x48db('0x68')](_0x48db('0x112')+_0x50b944[_0x48db('0x55')],_0x3e17ae),this[_0x48db('0x101')]==_0x50b944&&_0x361236[_0x48db('0x68')](_0x48db('0x4f'),_0x3e17ae);}}}});}),this[_0x48db('0x119')][_0x48db('0x8f')][_0x48db('0x6d')](_0x48db('0xe3'))['dataToMarker']({'view':'comment','model':_0x3e19b2=>'revision-comment:'+_0x3e19b2,'converterPriority':_0x48db('0xb9')}),this[_0x48db('0x119')]['conversion'][_0x48db('0x6d')](_0x48db('0xe3'))['dataToMarker']({'view':_0x48db('0x78'),'model':_0x2c34ef=>_0x48db('0xd2')+_0x2c34ef,'converterPriority':'highest'}),this[_0x48db('0x119')][_0x48db('0x8f')][_0x48db('0x6d')]('dataDowncast')[_0x48db('0x1b')]({'model':_0x48db('0x90'),'view':_0x4ee370=>({'name':_0x48db('0xfe')+_0x4ee370,'group':_0x48db('0x90')}),'converterPriority':'highest'}),this[_0x48db('0x119')][_0x48db('0x8f')]['for'](_0x48db('0xea'))[_0x48db('0x118')]({'model':'revision-suggestion','view':_0x491f4b=>{const _0x4f91d7=_0x491f4b[_0x48db('0xa7')]['split'](':')[0x1];return _0x48db('0xd')!=_0x4f91d7&&_0x48db('0x23')!=_0x4f91d7?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4f91d7]};}}),this[_0x48db('0x119')][_0x48db('0x8')][_0x48db('0x10a')]['on'](_0x48db('0x3d'),et(this['editor'],_0x48db('0x89')),{'priority':_0x48db('0x27')}),this[_0x48db('0x119')][_0x48db('0x8')][_0x48db('0x10a')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x48db('0x119')],_0x48db('0x20')),{'priority':_0x48db('0x27')}),this['editor'][_0x48db('0x8')]['downcastDispatcher']['on'](_0x48db('0x17'),(_0x552ff0,_0x1bd163,_0x3133ec)=>{const _0x42a6c9=_0x3133ec[_0x48db('0xb0')][_0x48db('0xf5')](_0x1bd163[_0x48db('0xa7')]);if(_0x42a6c9)for(const _0x8c2b3c of _0x42a6c9)_0x8c2b3c['is'](_0x48db('0xf1'))&&(_0x3133ec[_0x48db('0xb0')][_0x48db('0xb1')](_0x8c2b3c,_0x1bd163[_0x48db('0xa7')]),_0x3133ec[_0x48db('0x103')][_0x48db('0xbb')](_0x8c2b3c));},{'priority':_0x48db('0x27')});}[_0x48db('0x70')](_0x36cf7f){return this[_0x48db('0x87')][_0x48db('0xde')](_0x36cf7f);}[_0x48db('0x50')](_0x18f145){return this[_0x48db('0x75')]&&this[_0x48db('0x75')][_0x48db('0x6e')](),this[_0x48db('0x75')]=new _0x138681(this[_0x48db('0x119')][_0x48db('0x2a')],_0x18f145),this[_0x48db('0x75')];}[_0x48db('0xc0')](){this[_0x48db('0x119')]['model'][_0x48db('0x28')][_0x48db('0xf9')][_0x48db('0x4c')](_0x48db('0x7e')),this['on'](_0x48db('0x11a'),(_0x40769e,_0x40133a,_0x39749c,_0x14a55b)=>{_0x14a55b&&this[_0x48db('0x121')][_0x48db('0xbb')](_0x14a55b),_0x39749c&&(this['_balloon']['add']({'view':_0x39749c,'stackId':_0x48db('0xc1'),'position':{'target':()=>{const _0x4c7ba0=this[_0x48db('0x119')][_0x48db('0x8')],_0xa12500=this['_getChangeFromId'](_0x39749c[_0x48db('0x105')]);let _0x589302;if(_0xa12500[_0x48db('0xda')][_0x48db('0x49')]){const _0x46f19f=_0x4c7ba0[_0x48db('0x5c')][_0x48db('0x74')](_0xa12500[_0x48db('0x99')]);_0x589302=Array[_0x48db('0x6b')](_0x46f19f[_0x48db('0xa4')]());}else{const _0x3a3227=this['editor'][_0x48db('0x62')][_0x48db('0x8b')][_0x48db('0xde')](_0x48db('0x6')+_0x39749c[_0x48db('0x105')]);_0x589302=Array[_0x48db('0x6b')](_0x4c7ba0[_0x48db('0xb0')][_0x48db('0xf5')](_0x3a3227['name']))[_0x48db('0xc4')](_0xa8d161=>_0x4c7ba0[_0x48db('0x5c')]['domConverter'][_0x48db('0x11d')](_0xa8d161))[_0x48db('0xc4')](_0x4bd563=>Array[_0x48db('0x6b')](_0x4bd563[_0x48db('0xa4')]()))['flat']();}if(!this['_activeViewTarget'])return _0x589302[0x0];return _0x589302['find'](_0xb79937=>_0xb79937[_0x48db('0xfc')]-0x3<=this[_0x48db('0x65')]['y']&&_0xb79937[_0x48db('0x10e')]+0x3>=this['_activeViewTarget']['y']&&_0xb79937['left']-0x3<=this[_0x48db('0x65')]['x']&&_0xb79937[_0x48db('0x98')]+0x3>=this[_0x48db('0x65')]['x'])||_0x589302[0x0];}}}),this[_0x48db('0x121')]['showStack'](_0x48db('0xc1')));}),this['on']('change:activeChange',(_0x512a18,_0x3e62ac,_0x141fb3,_0xf7136c)=>{this['activeView']=_0x141fb3?this[_0x48db('0x50')](_0x141fb3):null,this[_0x48db('0x119')]['model'][_0x48db('0x12')](()=>{const _0x38177f=this[_0x48db('0x119')]['editing'];_0xf7136c&&(_0xf7136c[_0x48db('0xda')][_0x48db('0x49')]?_0x38177f[_0x48db('0x5c')][_0x48db('0x12')](_0x4f5dcf=>{_0x4f5dcf[_0x48db('0x48')](_0x48db('0x4f'),_0x38177f[_0x48db('0x5c')]['document']['getRoot'](_0xf7136c['rootName']));}):_0x38177f[_0x48db('0x2f')]('revision:'+_0xf7136c['id'])),_0x141fb3&&(_0x141fb3[_0x48db('0xda')][_0x48db('0x49')]?_0x38177f[_0x48db('0x5c')][_0x48db('0x12')](_0x417422=>{_0x417422[_0x48db('0x68')](_0x48db('0x4f'),_0x38177f[_0x48db('0x5c')][_0x48db('0x28')]['getRoot'](_0x141fb3[_0x48db('0x99')]));}):_0x38177f['reconvertMarker'](_0x48db('0x6')+_0x141fb3['id']));});}),this[_0x48db('0xe0')](this[_0x48db('0x119')][_0x48db('0x8')]['view'][_0x48db('0x28')],_0x48db('0x9'),(_0x5bfe43,_0x4d21ff)=>{if(this['activeChange'])return;const _0x3405d1=this[_0x48db('0x16')](_0x4d21ff['target']),_0xf18bce=this[_0x48db('0x87')][_0x48db('0xde')](_0x3405d1);_0xf18bce?(this[_0x48db('0x65')]={'x':_0x4d21ff[_0x48db('0x18')]['x'],'y':_0x4d21ff[_0x48db('0x18')]['y']},this['activeView']=this[_0x48db('0x50')](_0xf18bce)):(this[_0x48db('0x65')]=null,this['activeView']=null);}),this[_0x48db('0xe0')](this['editor'][_0x48db('0x8')][_0x48db('0x5c')][_0x48db('0x28')],_0x48db('0x34'),(_0x2cf617,_0xedb964)=>{const _0x5aca35=this[_0x48db('0x16')](_0xedb964['target']),_0x4c3ac2=this['_changeIdToChange'][_0x48db('0xde')](_0x5aca35);_0x4c3ac2?(this['_activeViewTarget']={'x':_0xedb964[_0x48db('0x18')]['x'],'y':_0xedb964['domEvent']['y']},_0x4c3ac2===this[_0x48db('0x101')]?this[_0x48db('0x121')][_0x48db('0xf4')]():this[_0x48db('0x101')]=_0x4c3ac2):(this[_0x48db('0x65')]=null,this[_0x48db('0x101')]=null);});}[_0x48db('0x16')](_0x5b63a6){do{const _0x287c6c=_0x5b63a6['getAttribute']('data-change-id');if(_0x287c6c)return _0x287c6c;_0x5b63a6=_0x5b63a6[_0x48db('0x11e')];}while(_0x5b63a6);return null;}['_cleanMarkers'](){this[_0x48db('0x119')][_0x48db('0x62')]['change'](_0x24d8db=>{for(const _0x3b330e of this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x8b')])_0x24d8db[_0x48db('0xd8')](_0x3b330e);});}}function et(_0x5a3aba,_0xbb9cab){return(_0x804a70,_0x2fae5b,_0x51bd87)=>{if(!_0x51bd87['consumable'][_0x48db('0xff')](_0x2fae5b[_0x48db('0x58')],_0x804a70[_0x48db('0x51')]))return;const _0x942477=_0x2fae5b['markerRange'][_0x48db('0x45')](),_0x607aff=_0x2fae5b[_0x48db('0x58')][_0x48db('0x120')],_0x823243=_0x5a3aba['model'][_0x48db('0xf2')];let _0x21f27b=null,_0x197a09=null,_0x32a823=!0x1,_0x5ef382=!0x1;for(const _0x80e34 of _0x942477){const _0x1c18e6=_0x80e34['item'];_0x32a823=_0x32a823||_0x823243[_0x48db('0x11f')](_0x1c18e6);const _0x19d7d0=_0x51bd87[_0x48db('0xb0')][_0x48db('0x6c')](_0x1c18e6);if(_0x19d7d0&&_0x19d7d0[_0x48db('0x80')](_0x48db('0xa3')))return;_0x48db('0x30')==_0x80e34[_0x48db('0x55')]&&(_0x823243[_0x48db('0x13')](_0x1c18e6)&&!_0x823243[_0x48db('0x115')](_0x1c18e6)&&(_0x1c18e6[_0x48db('0xd4')]||_0x607aff[_0x48db('0x5b')]?_0x21f27b&&_0x21f27b['parent']==_0x1c18e6||(_0x21f27b=_0x1c18e6,_0x4f3246(_0x80e34[_0x48db('0xc9')]),_0x5ef382=!0x0):_0x197a09=_0x197a09||_0x80e34[_0x48db('0xc9')]));}function _0x4f3246(_0x3d3ef9){const _0x37f113=_0x51bd87[_0x48db('0xb0')][_0x48db('0xb')](_0x3d3ef9),_0xcb3e9f=_0x51bd87[_0x48db('0x103')][_0x48db('0xa1')](_0x48db('0x88'),{'class':'ck-suggestion-preview-marker-'+_0xbb9cab});_0x51bd87[_0x48db('0x103')][_0x48db('0xd5')](_0x37f113,_0xcb3e9f),_0x51bd87[_0x48db('0xb0')][_0x48db('0x5e')](_0xcb3e9f,_0x2fae5b[_0x48db('0xa7')]);}_0x32a823||_0x5ef382||!_0x197a09||_0x4f3246(_0x197a09);};}export class RestoreRevisionCommand extends _0x28f02b{constructor(_0x47d924){super(_0x47d924);const _0x43ce20=_0x47d924['plugins'][_0x48db('0xde')](d);this[_0x48db('0x108')]=!0x1,this[_0x48db('0xe0')](_0x43ce20,'change:isReady',()=>this['refresh']()),this[_0x48db('0xe0')](_0x43ce20,_0x48db('0x9f'),()=>this[_0x48db('0xab')]());}[_0x48db('0xa8')](){const _0x1ad191=this[_0x48db('0x119')],_0x575e44=_0x1ad191[_0x48db('0x42')][_0x48db('0xde')](d),_0x9a6143=_0x575e44[_0x48db('0x110')]?_0x575e44[_0x48db('0x10b')][_0x48db('0x5a')]:null;_0x1ad191['config'][_0x48db('0xde')](_0x48db('0x53'))[_0x48db('0x1f')](_0x9a6143);}[_0x48db('0xab')](){const {isReady:_0x472458,isEnabled:_0x121fb2}=this[_0x48db('0x119')][_0x48db('0x42')]['get'](d);this[_0x48db('0x31')]=_0x472458&&_0x121fb2;}}export class ShowChangeCommand extends _0x28f02b{constructor(_0x582ce1,{direction:_0x4b745a}){super(_0x582ce1);const _0x5b967d=_0x582ce1[_0x48db('0x42')]['get'](d);this[_0x48db('0x108')]=!0x1,this['_step']=_0x48db('0xb7')===_0x4b745a?0x1:-0x1,this[_0x48db('0xe0')](_0x5b967d,'change:isReady',()=>this[_0x48db('0xab')]()),this[_0x48db('0xe0')](_0x5b967d,_0x48db('0x9f'),()=>this[_0x48db('0xab')]()),this[_0x48db('0xe0')](_0x5b967d,_0x48db('0xb5'),()=>this[_0x48db('0xab')]());}[_0x48db('0xa8')](){const _0x3e0693=this[_0x48db('0x119')],_0x12f4e6=_0x3e0693[_0x48db('0x42')][_0x48db('0xde')](d),{isNavigationMode:_0x30148f,currentChangeNumber:_0x34c2ff}=_0x12f4e6;let _0x522f56;if(_0x12f4e6[_0x48db('0x101')]=_0x30148f?_0x12f4e6['diff']['changes'][_0x48db('0xde')](_0x34c2ff+this[_0x48db('0x6a')]):_0x12f4e6['diff'][_0x48db('0xe5')][_0x48db('0xdb')],_0x12f4e6[_0x48db('0x101')][_0x48db('0xda')][_0x48db('0x49')])_0x522f56=_0x3e0693[_0x48db('0x8')]['view'][_0x48db('0x74')](_0x12f4e6[_0x48db('0x101')][_0x48db('0x99')]);else{const _0x5ce795=_0x3e0693[_0x48db('0x62')][_0x48db('0x8b')][_0x48db('0xde')](_0x48db('0x6')+_0x12f4e6['activeChange']['id']);_0x522f56=_0x15e21b(_0x3e0693['editing'],_0x5ce795);}_0x46b1aa({'target':_0x522f56,'viewportOffset':0x28});}[_0x48db('0xab')](){const {isNavigationMode:_0xc31926,currentChangeNumber:_0x4b53dc,numberOfChanges:_0x5c4d2a,isReady:_0x1da595,isEnabled:_0x388e1e}=this[_0x48db('0x119')][_0x48db('0x42')][_0x48db('0xde')](d);this[_0x48db('0x31')]=!!(_0x388e1e&&_0x1da595&&_0x5c4d2a)&&(!_0xc31926||(0x1===this['_step']?_0x4b53dc<_0x5c4d2a-0x1:_0x4b53dc>0x0));}}
23
+ const _0x4b12=['downcastDispatcher','diff','revision-suggestion','first','mapper','isSuggestion','editingDowncast','schema','_processTape','set','isRemoved','name','_step','all','changes','clear','isBefore','createRangeIn','upcast','destroy','addRevisionData','ck-revision-history-root-','ck-suggestion-marker-split','activeView','RevisionViewer','createUIElement','markers','_getViewForChange','text','_sortAndFilterDiffChanges','getRevision','writer','_findChangeIdFromDomTarget','bottom','_getChangeFromId','toData','has','for','type','elementEnd','removeMarker:revision-suggestion','POSITIVE_INFINITY','isAttached','_balloon','_markMarkers','hasAttribute','concat','dataToMarker','test','_markMismatchedRemovedTags','backward','getCustomProperty','reconvertMarker','get','_getRevisionsRange','findIndex','deletion','repository','domEvent','isAtStart','ck-revision-history-root-add','string','keys','getRoot','data-revision-','comment','done','isCollapsed','setAttribute','split','hasClass','processor','_makeModelFromViewString','listenTo','startsWith','markerNameToElements','_markInsertions','_setConversion','newRevisionId','createPositionFromPath','add','revision-end','dataDowncast','change:isEnabled','bind','indexOf','consume','ck-suggestion-marker-','shift','_fixObsoleteTags','isIncorrect','attribute:vid','_removeRevisionMarkers','editor','detachRoot','showStack','vid','unbindElementFromMarkerName','change:numberOfChanges','isAtEnd','rootName','bindElementToMarker','getRevisionRootsAttributes','isEnabled','revision-viewer','abs','revisionHistoryLabel','updatePosition','unshift','index','diffData','softBreak','values','range','merge','numberOfChanges','markersStart','error','userId','sort','ck-suggestion-marker','_cleanMarkers','config','isRemoveSuggestion','getChild','offsetSize','WidgetToolbarRepository','isObject','length','editing','_threeWayMerge','getAttribute','ck-suggestion-marker-merge','toModel','authors','_getViewObj','getAttributes','element','addMarker:revision-suggestion:insertion','isContent','_setChanges','isNavigationMode','addClass','ck-suggestion-marker--active','viewItem','filter','loadRevisionData','markerToData','vid_end','forward','nextSibling','_setDistance','addMarker:revision','_markSuggestions','next','revisionHistoryAttachChange','ck-editor__editable__overlay','children','revision:','push','_changeIdToChange','return','startIndex','revision-comment:','endIndex','target','markerName','elementToAttribute','useFillerType','change','forceDisabled','deletions','left','remove','_activeViewTarget','enableReadOnlyMode','_removeUnsupportedChanges','commands','pop','isReady','consumable','insert','marked','vid_start','document','side','restoreRevisionCallback','distance','revision-start','_refreshStartEndIndex','toViewElement','createRange','default','attributes','data','_update','from','code','addHighlight','parent','getClientRects','high','end','wrap','maxOffset','change:isReady','then','isAddSuggestion','suggestion','getWalker','delete','right','removeMarker','map','_makeTape','item','addRoot','_makeModelFromTape','isEqual','parse','low','mapViewToDom','_getDiff','forEach','compare','showNextChange','pairId','createAttributeElement','modelRange','view','locale','insertions','init','splice','attachChange','conversion','_cleanUp','execute','affectsData','start','pluginName','isOnRoot','getRootNames','previousPosition','elementStart','_changeView','getIndex','change:activeChange','-new','removeClass','refresh','_joinTapes','activeChange','nextPosition','markersEnd','currentChangeNumber','data-change-id','includes','_removeMissingPairs','level','markerToHighlight','toViewPosition','requires','insertion','isAdded','revision','isAfter','roots','ck-suggestion-preview-marker-','resolve','attributesBefore','highest','getDomRoot','enqueueChange','ck-revision-history-root--active','isLimit','isBlock','find','markerRange','model','slice','removeAttribute','plugins','addMarker:revision-suggestion:deletion','span'];(function(_0x44c060,_0x4b125a){const _0x406698=function(_0xc379bd){while(--_0xc379bd){_0x44c060['push'](_0x44c060['shift']());}};_0x406698(++_0x4b125a);}(_0x4b12,0x185));const _0x4066=function(_0x44c060,_0x4b125a){_0x44c060=_0x44c060-0x0;let _0x406698=_0x4b12[_0x44c060];return _0x406698;};import{Plugin as _0x35ab16,Command as _0x5dfb1c}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x102840}from'ckeditor5/src/utils';import{ContextualBalloon as _0x3d4910}from'ckeditor5/src/ui';import{DocumentFragment as _0x11b0d7,Element as _0x10cc25,Text as _0x1f52a6,ViewDocumentFragment as _0x184fc5,ViewText as _0x555435,ViewElement as _0x523df2,ViewContainerElement as _0x39ad77,ViewAttributeElement as _0x52a953,ViewEmptyElement as _0x2e8728,ViewRawElement as _0x1a0965,ViewUIElement as _0x1ca1d8}from'ckeditor5/src/engine';import{Users as _0x310f84,getMarkerDomElement as _0x198c25}from'ckeditor5-collaboration/src/collaboration-core';import _0x2dd857 from'./ui/revisionviewer/changedetailsview';import _0x34d53f from'./revisionsrepository';import _0x149bf1 from'./changeitem';import{default as _0x2a6e4a}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4bfe03}from'lodash-es';const tt={'c':_0x39ad77,'a':_0x52a953,'e':_0x2e8728,'r':_0x1a0965,'u':_0x1ca1d8};export default class d extends _0x35ab16{static get[_0x4066('0x88')](){return _0x4066('0xcd');}static get[_0x4066('0x9e')](){return[_0x310f84,_0x3d4910,_0x34d53f];}constructor(_0x433443){super(_0x433443),this[_0x4066('0xee')]=this['editor'][_0x4066('0xb2')][_0x4066('0xea')]('RevisionsRepository'),this[_0x4066('0xbe')](_0x4066('0x94'),null),this[_0x4066('0xbe')]('activeView',null),this[_0x4066('0x46')]=null,this[_0x4066('0xbe')](_0x4066('0xb6'),null),this[_0x4066('0xbe')]('isReady',!0x1),this['set'](_0x4066('0x11c'),!0x0),this['on']('change:isEnabled',(_0x26e2d5,_0x1c53e8,_0x245e55)=>{this[_0x4066('0x94')]=null,this[_0x4066('0xcc')]=null,this[_0x4066('0x112')][_0x4066('0x19')][_0x4066('0x7d')][_0x4066('0x41')](_0x252e9d=>{for(const _0x9717ed of this[_0x4066('0x112')]['editing']['view'][_0x4066('0x50')][_0x4066('0xa3')])_0x245e55?_0x252e9d[_0x4066('0x91')](_0x4066('0x34'),_0x9717ed):_0x252e9d[_0x4066('0x26')](_0x4066('0x34'),_0x9717ed);});}),this[_0x4066('0x109')](_0x4066('0x25'))['to'](this,_0x4066('0x94'),_0xe04f5c=>null!==_0xe04f5c),this[_0x4066('0x109')](_0x4066('0x97'))['to'](this,'isReady',this,_0x4066('0xb6'),this,_0x4066('0x94'),(_0x2ed15a,_0x13cfc5,_0x81aa67)=>_0x2ed15a&&_0x81aa67?_0x13cfc5['changes']['getIndex'](_0x81aa67):0x0),this[_0x4066('0x109')](_0x4066('0xb'))['to'](this,_0x4066('0x4b'),this,_0x4066('0xb6'),(_0xfaff4f,_0x394afe)=>_0xfaff4f?_0x394afe[_0x4066('0xc3')][_0x4066('0x18')]:0x0),this['_changeView']=null,this[_0x4066('0x38')]=new Map(),this['adapter']=null,this[_0x4066('0xe0')]=this['editor']['plugins'][_0x4066('0xea')](_0x3d4910);}[_0x4066('0x80')](){const _0x4ce914=this[_0x4066('0x112')],_0x294c03=new ShowChangeCommand(_0x4ce914,{'direction':_0x4066('0xe7')}),_0x1cb62a=new ShowChangeCommand(_0x4ce914,{'direction':_0x4066('0x2d')});(_0x4ce914['commands'][_0x4066('0x105')]('showPreviousChange',_0x294c03),_0x4ce914[_0x4066('0x49')][_0x4066('0x105')](_0x4066('0x79'),_0x1cb62a),_0x4ce914['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x4ce914)),this['on'](_0x4066('0x117'),()=>{_0x294c03[_0x4066('0x92')](),_0x1cb62a[_0x4066('0x92')]();}),this[_0x4066('0x102')](),this['_initInteractions'](),_0x4ce914[_0x4066('0x47')]('revision-viewer'),_0x4ce914[_0x4066('0xb2')][_0x4066('0xd9')](_0x4066('0x16')))&&_0x4ce914[_0x4066('0xb2')][_0x4066('0xea')]('WidgetToolbarRepository')[_0x4066('0x42')](_0x4066('0x0'));}async['getRevisionData'](_0x5f561a){await this[_0x4066('0x2a')](_0x5f561a);const _0x513f68={};for(const _0x2b44aa in _0x5f561a[_0x4066('0x6')]){if(_0x5f561a[_0x4066('0x6')][_0x2b44aa][_0x4066('0x82')]&&!_0x5f561a[_0x4066('0x6')][_0x2b44aa]['attachChange'][_0x4066('0xdf')])continue;const _0x524b99=this[_0x4066('0x111')](JSON[_0x4066('0x73')](_0x5f561a[_0x4066('0x6')][_0x2b44aa][_0x4066('0x7f')])),_0xb8ffa4=this[_0x4066('0x112')][_0x4066('0x19')][_0x4066('0x7d')][_0x4066('0x50')],_0x2af530=new _0x184fc5(_0xb8ffa4,_0x524b99[_0x4066('0x6d')](_0x49a784=>this[_0x4066('0x1f')](_0x49a784)));this[_0x4066('0x112')][_0x4066('0x5a')][_0x4066('0xfc')][_0x4066('0x40')](_0x4066('0x4e')),_0x513f68[_0x2b44aa]=this[_0x4066('0x112')]['data'][_0x4066('0xfc')][_0x4066('0xd8')](_0x2af530),this[_0x4066('0x112')][_0x4066('0x5a')][_0x4066('0xfc')][_0x4066('0x40')](_0x4066('0x58'));}return _0x513f68;}async[_0x4066('0x11b')](_0x21aee9){await this['loadRevisionData'](_0x21aee9);const _0x21d4fc={};for(const _0x1431e4 in _0x21aee9['diffData'])_0x21aee9[_0x4066('0x6')][_0x1431e4][_0x4066('0x82')]&&!_0x21aee9[_0x4066('0x6')][_0x1431e4]['attachChange']['isAttached']||(_0x21d4fc[_0x1431e4]=_0x21aee9[_0x4066('0x6')][_0x1431e4]['attributesAfter']||{});return _0x21d4fc;}[_0x4066('0x111')](_0x59b477){return(_0x59b477=_0x59b477[_0x4066('0x29')](_0x33c0c3=>!_0x33c0c3['name']||_0x4066('0x54')!==_0x33c0c3[_0x4066('0xc0')]&&_0x4066('0x106')!==_0x33c0c3[_0x4066('0xc0')]))[_0x4066('0x77')](_0x25925b=>{_0x4066('0xf2')!=typeof _0x25925b&&(_0x25925b[_0x4066('0x35')]=this[_0x4066('0x111')](_0x25925b[_0x4066('0x35')]),_0x25925b[_0x4066('0x59')]=_0x25925b[_0x4066('0x59')]['filter'](_0x9897da=>!_0x9897da[0x0][_0x4066('0xff')](_0x4066('0xf5'))));}),_0x59b477;}async[_0x4066('0x78')](_0x8bc2b3,_0x12957c,_0x57a222=!0x1){if(!this[_0x4066('0x11c')])return;const _0x2a108f=this[_0x4066('0xb6')],_0xb0575b=this['repository'],_0x25508e=_0x4066('0xf2')==typeof _0x8bc2b3?_0xb0575b[_0x4066('0xd3')](_0x8bc2b3):_0x8bc2b3,_0x17359=_0x4066('0xf2')==typeof _0x12957c?_0xb0575b[_0x4066('0xd3')](_0x12957c):_0x12957c,_0x535d68=_0x25508e['id'],_0x568832=_0x17359?_0x17359['id']:null;if(!_0x57a222&&this[_0x4066('0xb6')]&&this[_0x4066('0xb6')][_0x4066('0x103')]===_0x535d68&&this['diff']['oldRevisionId']===_0x568832)return Promise[_0x4066('0xa5')]();this[_0x4066('0x4b')]=!0x1,this[_0x4066('0xcc')]=null,this[_0x4066('0x94')]=null,this[_0x4066('0xb6')]=new _0x2a6e4a(_0x535d68,_0x568832);const _0x2fd6e1=this[_0x4066('0xeb')](_0x25508e,_0x17359,!0x0)['map'](_0x165ad3=>this[_0x4066('0x2a')](_0x165ad3));return _0x2fd6e1[_0x4066('0x37')](new Promise(_0x4bddae=>{setTimeout(_0x4bddae,0x14);})),Promise[_0x4066('0xc2')](_0x2fd6e1)['then'](()=>{if(!this[_0x4066('0x11c')])return;this['_cleanUp']();const _0x557cfa=this['_getDiff'](_0x535d68,_0x568832);for(const _0x582b11 of _0x557cfa[_0x4066('0xc3')])this['_changeIdToChange'][_0x4066('0xbe')](_0x582b11['id'],_0x582b11);this[_0x4066('0x112')][_0x4066('0xaf')]['enqueueChange']({'isUndoable':!0x1},_0x4d4a10=>{for(const _0x359930 of this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0x50')][_0x4066('0x8a')]())_0x4d4a10[_0x4066('0x113')](_0x359930);for(const _0x158dee of Object[_0x4066('0xf3')](_0x557cfa[_0x4066('0xaf')])){const _0x4c013d=_0x4d4a10[_0x4066('0x70')](_0x158dee);for(const _0x588835 of Object['keys'](_0x557cfa['attributes'][_0x158dee]))_0x4d4a10[_0x4066('0xf9')](_0x588835,_0x557cfa[_0x4066('0x59')][_0x158dee][_0x588835],_0x4c013d);_0x4d4a10[_0x4066('0x4d')](_0x557cfa[_0x4066('0xaf')][_0x158dee],_0x4c013d,0x0);}}),this[_0x4066('0xb6')][_0x4066('0x24')](this[_0x4066('0xd2')](_0x557cfa[_0x4066('0xc3')])),this[_0x4066('0x4b')]=!0x0;})['catch'](_0x4b1251=>{console[_0x4066('0xd')](_0x4b1251),this[_0x4066('0x84')](),_0x2a108f&&(this[_0x4066('0xb6')]=_0x2a108f),this[_0x4066('0x4b')]=!0x0;});}[_0x4066('0xc9')](_0xf09aa,_0x2dbe07){const _0x5803c2=this[_0x4066('0xee')]['createRevision'](_0xf09aa);return _0x5803c2['on'](_0x4066('0x5b'),(_0x62e58,_0x178b92,_0x131067)=>_0x2dbe07(_0x178b92,_0x131067,_0x5803c2)),this[_0x4066('0xee')]['addRevision'](_0x5803c2),_0x5803c2;}[_0x4066('0x2a')](_0x50b7cc){if(!_0x50b7cc||_0x50b7cc[_0x4066('0x6')])return Promise[_0x4066('0xa5')]();{const _0x51203f=this[_0x4066('0x112')]['config'][_0x4066('0xea')]('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x51203f,'revisionId':_0x50b7cc['id']})[_0x4066('0x66')](_0x5d938a=>{_0x50b7cc[_0x4066('0x5b')]({'diffData':_0x5d938a[_0x4066('0x6')]},!0x0);});}}[_0x4066('0x84')](){this[_0x4066('0x94')]=null,this[_0x4066('0x11')](),this['_changeView']&&this['_changeView'][_0x4066('0xc8')](),this[_0x4066('0x8d')]=null,this[_0x4066('0x38')][_0x4066('0xc4')](),this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0xa9')]({'isUndoable':!0x1},_0x256a3c=>{for(const _0x5e89aa of this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0x50')][_0x4066('0x8a')]())_0x256a3c[_0x4066('0x113')](_0x5e89aa);});}['_sortAndFilterDiffChanges'](_0x263ff4){const _0x43d239=[],_0xc3af41=new Map();for(const _0x326728 of this['editor'][_0x4066('0xaf')]['document'][_0x4066('0x8a')]()){const _0x11bcb3=this[_0x4066('0x112')]['editing'][_0x4066('0x7d')][_0x4066('0xa8')](_0x326728);if(!_0x11bcb3)continue;const _0x23ef32=_0x11bcb3[_0x4066('0x60')]()[_0x4066('0x6f')](0x0);_0x23ef32&&(_0x43d239[_0x4066('0x37')](_0x326728),_0xc3af41['set'](_0x326728,_0x23ef32));}return _0x43d239['sort']((_0x5e01b4,_0x3f51a3)=>{const _0x36aba1=_0xc3af41[_0x4066('0xea')](_0x5e01b4),_0x11e3d8=_0xc3af41[_0x4066('0xea')](_0x3f51a3);return _0x36aba1['y']-_0x11e3d8['y']||_0x36aba1['x']-_0x11e3d8['x'];}),(_0x263ff4=_0x263ff4['filter'](_0xe11207=>_0x43d239[_0x4066('0x99')](_0xe11207['rootName'])))[_0x4066('0xf')]((_0x459735,_0x52f6ef)=>_0x43d239[_0x4066('0x10a')](_0x459735[_0x4066('0x119')])-_0x43d239[_0x4066('0x10a')](_0x52f6ef[_0x4066('0x119')])),_0x263ff4;}[_0x4066('0x6e')](_0x5637ce){const _0x220d6b=Array['from'](_0x5637ce[_0x4066('0xcf')])[_0x4066('0x29')](([_0x57c96d,_0x361e79])=>_0x57c96d[_0x4066('0xff')]('revision:')&&!_0x361e79['isCollapsed']),_0x4ecf14=Array['from'](this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0xc6')](_0x5637ce)[_0x4066('0x69')]({'singleCharacters':!0x0}));if(0x0!=_0x220d6b['length'])for(const _0x206971 of _0x4ecf14){const [_0x4478a6,_0x36e973]=_0x220d6b[0x0],[,_0x586b69,_0x559565]=_0x4478a6[_0x4066('0xfa')](':');if(_0x36e973['end']['isEqual'](_0x206971[_0x4066('0x95')])&&_0x220d6b[_0x4066('0x10d')](),(_0x206971['previousPosition'][_0x4066('0x72')](_0x36e973[_0x4066('0x87')])||_0x206971[_0x4066('0x8b')][_0x4066('0xa2')](_0x36e973[_0x4066('0x87')]))&&(_0x4066('0x9f')==_0x586b69?_0x206971[_0x4066('0xa0')]={'userId':_0x559565}:_0x4066('0xed')==_0x586b69&&(_0x206971['isRemoved']={'userId':_0x559565})),0x0==_0x220d6b[_0x4066('0x18')])break;}return _0x4ecf14;}['_refreshStartEndIndex'](_0xb8d74b){const _0x4d9727=new Map();for(let _0x53cc64=0x0;_0x53cc64<_0xb8d74b[_0x4066('0x18')];_0x53cc64++)_0x4066('0xd1')===_0xb8d74b[_0x53cc64]['type']?(_0xb8d74b[_0x53cc64]['item']['startIndex']=_0x53cc64,_0xb8d74b[_0x53cc64][_0x4066('0x6f')][_0x4066('0x3c')]=_0x53cc64):(_0x4066('0x8c')===_0xb8d74b[_0x53cc64][_0x4066('0xdb')]?_0xb8d74b[_0x53cc64][_0x4066('0x6f')]['startIndex']=_0x53cc64:_0x4066('0xdc')===_0xb8d74b[_0x53cc64]['type']&&(_0xb8d74b[_0x53cc64][_0x4066('0x6f')][_0x4066('0x3c')]=_0x53cc64),_0x4d9727[_0x4066('0xbe')](_0xb8d74b[_0x53cc64]['id'],_0x53cc64));for(const _0x34fea2 of _0x4d9727[_0x4066('0x8')]())_0x4066('0x8c')===_0xb8d74b[_0x34fea2]['type']?_0xb8d74b[_0x34fea2]['item']['endIndex']=_0x4d9727['get'](_0xb8d74b[_0x34fea2][_0x4066('0x7a')]):_0x4066('0xdc')===_0xb8d74b[_0x34fea2][_0x4066('0xdb')]&&(_0xb8d74b[_0x34fea2][_0x4066('0x6f')][_0x4066('0x3a')]=_0x4d9727[_0x4066('0xea')](_0xb8d74b[_0x34fea2][_0x4066('0x7a')]));}[_0x4066('0xbd')](_0x5c25dc){for(let _0xe35d15=0x0;_0xe35d15<_0x5c25dc[_0x4066('0x18')];_0xe35d15++){if(_0x4066('0x8c')===_0x5c25dc[_0xe35d15][_0x4066('0xdb')])_0x5c25dc[_0xe35d15]['item'][_0x4066('0x3a')]=_0xe35d15;else{if('elementEnd'===_0x5c25dc[_0xe35d15][_0x4066('0xdb')]){_0x5c25dc[_0xe35d15][_0x4066('0x6f')][_0x4066('0x3c')]=_0xe35d15;const _0x14f7c4=_0x5c25dc[_0xe35d15][_0x4066('0x6f')][_0x4066('0x3a')];_0x5c25dc[_0x14f7c4][_0x4066('0x7a')]=_0x5c25dc[_0xe35d15]['id'],_0x5c25dc[_0xe35d15][_0x4066('0x7a')]=_0x5c25dc[_0x14f7c4]['id'];}else _0x5c25dc[_0xe35d15][_0x4066('0x6f')][_0x4066('0x3a')]=_0xe35d15,_0x5c25dc[_0xe35d15][_0x4066('0x6f')][_0x4066('0x3c')]=_0xe35d15,_0x5c25dc[_0xe35d15][_0x4066('0x7a')]=null;}_0x5c25dc[_0xe35d15][_0x4066('0xc')]||(_0x5c25dc[_0xe35d15]['markersStart']=[],_0x5c25dc[_0xe35d15][_0x4066('0x96')]=[]);}}[_0x4066('0x101')](_0x1c10fe,_0x595190){const _0x64d1c=_0x1c10fe['filter'](_0x2f066a=>!_0x2f066a['isAdded']);for(let _0x52b1a1=0x0;_0x52b1a1<_0x595190[_0x4066('0x18')];_0x52b1a1++)_0x595190[_0x52b1a1]['isAdded']&&(_0x64d1c[_0x52b1a1][_0x4066('0xa0')]=_0x595190[_0x52b1a1][_0x4066('0xa0')]);}[_0x4066('0xfd')](_0x295526){const _0x2bd946=JSON[_0x4066('0x73')](_0x295526),_0x2d423a=this[_0x4066('0x112')][_0x4066('0x19')]['view'][_0x4066('0x50')],_0x3025db=new _0x184fc5(_0x2d423a,_0x2bd946[_0x4066('0x6d')](_0x5eeace=>this[_0x4066('0x1f')](_0x5eeace)));return this['editor'][_0x4066('0x5a')][_0x4066('0x1d')](_0x3025db);}[_0x4066('0x1f')](_0x41cf62){const _0x291dde=this[_0x4066('0x112')][_0x4066('0x19')]['view'][_0x4066('0x50')];if(_0x4066('0xf2')==typeof _0x41cf62)return new _0x555435(_0x291dde,_0x41cf62);{const _0x19d70f=_0x41cf62[_0x4066('0x35')]['map'](_0x29d8d2=>this[_0x4066('0x1f')](_0x29d8d2));return new(tt[_0x41cf62[(_0x4066('0xdb'))]]||_0x523df2)(_0x291dde,_0x41cf62[_0x4066('0xc0')],_0x41cf62[_0x4066('0x59')],_0x19d70f);}}[_0x4066('0x76')](_0x1f8932,_0x293352=null){const _0x5d3fc8=this[_0x4066('0xee')][_0x4066('0xd3')](_0x1f8932),_0x4872f7=_0x293352?this[_0x4066('0xee')][_0x4066('0xd3')](_0x293352):null,_0x2ff6a2=this['_getRevisionsRange'](_0x5d3fc8,_0x4872f7),_0x165544=_0x2ff6a2[_0x2ff6a2[_0x4066('0x18')]-0x1],_0x16183a=new Map(),_0xc3b30a={'model':{},'attributes':{},'changes':[]},_0x27f5f6=new Set(),_0x2a0c41=new Map();for(let _0x6c1e4a=_0x2ff6a2['length']-0x1;_0x6c1e4a>=0x0;_0x6c1e4a--){const _0x3147af=_0x2ff6a2[_0x6c1e4a];for(const _0xe34f7 of Object[_0x4066('0xf3')](_0x3147af[_0x4066('0x6')]))if(_0x3147af[_0x4066('0x6')][_0xe34f7][_0x4066('0x82')]){const _0xde39e5=_0x3147af[_0x4066('0x6')][_0xe34f7]['attachChange'];_0xde39e5[_0x4066('0xdf')]?(_0x27f5f6[_0x4066('0x105')](_0xe34f7),_0x2a0c41[_0x4066('0xd9')](_0xe34f7)&&_0x2a0c41[_0x4066('0xea')](_0xe34f7)['userId']==_0xde39e5[_0x4066('0xe')]?_0x2a0c41[_0x4066('0x6a')](_0xe34f7):_0x2a0c41[_0x4066('0xbe')](_0xe34f7,_0xde39e5)):_0x2a0c41[_0x4066('0xd9')](_0xe34f7)?(_0x27f5f6[_0x4066('0x6a')](_0xe34f7),_0x2a0c41['delete'](_0xe34f7)):(_0x27f5f6[_0x4066('0x105')](_0xe34f7),_0x2a0c41[_0x4066('0xbe')](_0xe34f7,_0xde39e5));}else _0x27f5f6[_0x4066('0x105')](_0xe34f7);}for(const _0x3a32a7 of _0x27f5f6){const _0x22ee39=_0x2a0c41[_0x4066('0xd9')](_0x3a32a7)&&!_0x2a0c41[_0x4066('0xea')](_0x3a32a7)[_0x4066('0xdf')];let _0x54abe2=_0x22ee39?_0x2ff6a2[_0x4066('0x18')]-0x1:0x0;const _0x5362be=_0x22ee39?-0x1:0x1;for(;_0x2ff6a2[_0x54abe2];){const _0x5a4188=_0x2ff6a2[_0x54abe2];if(_0x5a4188[_0x4066('0x6')][_0x3a32a7]){const _0x218deb=_0x22ee39?_0x5a4188[_0x4066('0x6')][_0x3a32a7][_0x4066('0xa6')]:_0x5a4188[_0x4066('0x6')][_0x3a32a7]['attributesAfter'];_0xc3b30a[_0x4066('0x59')][_0x3a32a7]=_0x218deb?_0x4bfe03(_0x218deb):{};break;}_0x54abe2+=_0x5362be;}}for(const _0x943638 of _0x2ff6a2){_0x943638['model']={};for(const _0x7a697e of _0x943638[_0x4066('0x1e')])_0x16183a['set'](_0x7a697e['id'],_0x7a697e);for(const _0x59c733 of _0x27f5f6){const _0x3d5ee3=_0x943638[_0x4066('0x6')][_0x59c733]?_0x943638[_0x4066('0x6')][_0x59c733]['insertions']:'[]',_0x55fcd3=_0x943638[_0x4066('0x6')][_0x59c733]?_0x943638['diffData'][_0x59c733][_0x4066('0x43')]:'[]';_0x943638[_0x4066('0xaf')][_0x59c733]={'insertions':this[_0x4066('0xfd')](_0x3d5ee3),'deletions':this[_0x4066('0xfd')](_0x55fcd3)};}}for(const _0x11acaf of _0x27f5f6){let _0xa077a2=null,_0x2de2b9=0x0;const _0x337dce=new Map(Array['from'](_0x5d3fc8[_0x4066('0xaf')][_0x11acaf][_0x4066('0x7f')][_0x4066('0xcf')])[_0x4066('0x29')](([_0x366051])=>!_0x366051[_0x4066('0xff')](_0x4066('0x36'))));let _0x173c93=0x0;for(const _0x257b39 of _0x2ff6a2){const _0x5cb9bd=this[_0x4066('0x6e')](_0x257b39[_0x4066('0xaf')][_0x11acaf]['insertions']);_0x257b39==_0x5d3fc8?(_0xa077a2=_0x5cb9bd,_0x2de2b9=_0xa077a2['length'],_0xa077a2['forEach'](_0x25bda4=>{_0x25bda4['id']=_0x173c93++;}),this['_processTape'](_0xa077a2)):this[_0x4066('0x101')](_0xa077a2,_0x5cb9bd);const _0x51cb6f=_0xa077a2[_0x4066('0x29')](_0x432499=>!_0x432499[_0x4066('0xa0')])[_0x4066('0x6d')](_0x1a2f54=>_0x1a2f54['id']);let _0x1b3df3=0x0;const _0x39d51a=this[_0x4066('0x6e')](_0x257b39[_0x4066('0xaf')][_0x11acaf]['deletions']);_0x39d51a[_0x4066('0x77')](_0x3b7529=>{_0x3b7529[_0x4066('0xbf')]?_0x3b7529['id']=_0x2de2b9++:_0x3b7529['id']=_0x51cb6f[_0x1b3df3++];}),this[_0x4066('0xbd')](_0x39d51a),this[_0x4066('0x2f')](_0xa077a2,_0x4066('0xa0')),this[_0x4066('0x2f')](_0x39d51a,'isRemoved'),_0x257b39==_0x5d3fc8&&this[_0x4066('0xe1')](_0xa077a2,_0x337dce),_0xa077a2=this[_0x4066('0x93')](_0xa077a2,_0x39d51a),this[_0x4066('0x55')](_0xa077a2),this[_0x4066('0x2f')](_0xa077a2,_0x4066('0xbf'));}_0xa077a2=_0xa077a2[_0x4066('0x29')](_0x44b162=>!(_0x44b162['isAdded']&&_0x44b162[_0x4066('0xbf')]));const _0x6b24dc=new Map(_0x165544[_0x4066('0xaf')][_0x11acaf]['deletions'][_0x4066('0xcf')]),_0x482e2e=new Set(_0x337dce['keys']());for(const _0x3e5933 of _0x6b24dc[_0x4066('0xf3')]())_0x482e2e['delete'](_0x3e5933);this[_0x4066('0x31')](_0xa077a2,_0x482e2e),this[_0x4066('0x10e')](_0xa077a2),_0xa077a2=this[_0x4066('0x9a')](_0xa077a2),_0xa077a2=this['_markMismatchedRemovedTags'](_0xa077a2),_0xa077a2=this[_0x4066('0x48')](_0xa077a2);const {root:_0x59f7b1,changes:_0x515a96}=this[_0x4066('0x71')](_0xa077a2,_0x16183a,_0x11acaf);_0xc3b30a[_0x4066('0xaf')][_0x11acaf]=_0x59f7b1;const _0x3bd45a=_0x2a0c41['get'](_0x11acaf);if(_0x3bd45a){const _0x2e2d1f=_0x16183a[_0x4066('0xea')](_0x3bd45a[_0x4066('0xe')]),_0xfa9aa3=new _0x149bf1({'author':_0x2e2d1f,'type':_0x3bd45a[_0x4066('0xdf')]?_0x4066('0x105'):_0x4066('0x45'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x11acaf});_0x515a96[_0x4066('0x4')](_0xfa9aa3),_0xc3b30a['attributes'][_0x11acaf][_0x4066('0x33')]=_0xfa9aa3['id'];}_0xc3b30a[_0x4066('0xc3')]=_0xc3b30a[_0x4066('0xc3')][_0x4066('0xe3')](_0x515a96);}return _0xc3b30a;}['_markMarkers'](_0x3d3ddb,_0x4cf4aa){for(let _0x4f5ca5=0x0;_0x4f5ca5<_0x3d3ddb[_0x4066('0x18')];_0x4f5ca5++)for(const [_0x54a1ef,_0xadd660]of _0x4cf4aa)_0xadd660[_0x4066('0x87')]['isEqual'](_0x3d3ddb[_0x4f5ca5][_0x4066('0x8b')])&&_0x3d3ddb[_0x4f5ca5][_0x4066('0xc')][_0x4066('0x37')](_0x54a1ef),_0xadd660['end'][_0x4066('0x72')](_0x3d3ddb[_0x4f5ca5][_0x4066('0x95')])&&_0x3d3ddb[_0x4f5ca5][_0x4066('0x96')][_0x4066('0x37')](_0x54a1ef);}[_0x4066('0x93')](_0x2dc3a1,_0x1cf9b7){let _0x2c6da2=[],_0x107cbd=0x0,_0x534d3c=0x0;for(;_0x107cbd<_0x2dc3a1[_0x4066('0x18')]||_0x534d3c<_0x1cf9b7[_0x4066('0x18')];){const _0x1c6dcb=_0x2dc3a1[_0x107cbd]||{},_0x41b9e1=_0x1cf9b7[_0x534d3c]||{};if(_0x1c6dcb['id']==_0x41b9e1['id'])_0x107cbd++,_0x534d3c++,_0x2c6da2[_0x4066('0x37')](_0x1c6dcb);else{if(_0x41b9e1[_0x4066('0xbf')]&&_0x1c6dcb['isAdded']){const {commonTape:_0xaf416c,iEnd:_0x508611,jEnd:_0x4ba309}=this[_0x4066('0x1a')](_0x2dc3a1,_0x107cbd,_0x1cf9b7,_0x534d3c);_0x2c6da2=_0x2c6da2['concat'](_0xaf416c),_0x107cbd=_0x508611,_0x534d3c=_0x4ba309;}else _0x41b9e1['isRemoved']?(_0x534d3c++,_0x2c6da2['push'](_0x41b9e1)):(_0x107cbd++,_0x2c6da2[_0x4066('0x37')](_0x1c6dcb));}}return _0x2c6da2;}[_0x4066('0x31')](_0x24d65b,_0xa01057){const _0x1386bd=[];for(let _0x2004a8=0x0;_0x2004a8<_0x24d65b[_0x4066('0x18')];_0x2004a8++){for(let _0x4cdd54=0x0;_0x4cdd54<_0x24d65b[_0x2004a8][_0x4066('0xc')][_0x4066('0x18')];_0x4cdd54++){const _0x4e46bd=_0x24d65b[_0x2004a8][_0x4066('0xc')][_0x4cdd54];if(!_0xa01057[_0x4066('0xd9')](_0x4e46bd))continue;const {group:_0x478f1b,type:_0x4eea28,authorId:_0x376f95}=_0x3bb3e6(_0x4e46bd);'revision-suggestion'!=_0x478f1b||_0x4066('0x9f')!=_0x4eea28&&'deletion'!=_0x4eea28||(_0x1386bd[_0x4066('0x4')]({'type':_0x4eea28,'name':_0x4e46bd,'userId':_0x376f95}),_0x24d65b[_0x2004a8][_0x4066('0xc')][_0x4066('0x81')](_0x4cdd54,0x1),_0x4cdd54--);}_0x396424(_0x24d65b[_0x2004a8]);for(let _0x387226=0x0;_0x387226<_0x24d65b[_0x2004a8][_0x4066('0x96')]['length'];_0x387226++){const _0x29c811=_0x24d65b[_0x2004a8]['markersEnd'][_0x387226];if(!_0xa01057[_0x4066('0xd9')](_0x29c811))continue;const {group:_0xfc73be,type:_0x49d9b6}=_0x3bb3e6(_0x29c811);if(_0x4066('0xb7')!=_0xfc73be||'insertion'!=_0x49d9b6&&_0x4066('0xed')!=_0x49d9b6)continue;_0x24d65b[_0x2004a8][_0x4066('0x96')][_0x4066('0x81')](_0x387226,0x1),_0x387226--;const _0x5c1cc0=_0x1386bd[_0x4066('0xec')](_0x5362dc=>_0x5362dc[_0x4066('0xc0')]==_0x29c811);_0x5c1cc0>-0x1&&_0x1386bd[_0x4066('0x81')](_0x5c1cc0,0x1);}}function _0x3bb3e6(_0x564bb2){const _0x522f0d=_0x564bb2[_0x4066('0xfa')](':');return{'group':_0x522f0d[0x0],'type':_0x522f0d[0x1],'subType':_0x522f0d['length']>=0x5?_0x522f0d[0x2]:null,'id':_0x522f0d[_0x4066('0x18')]<0x5?_0x522f0d[0x2]:_0x522f0d[0x3],'authorId':_0x522f0d[_0x4066('0x18')]<0x5?_0x522f0d[0x3]:_0x522f0d[0x4],'markerCount':0x6==_0x522f0d[_0x4066('0x18')]?_0x522f0d[0x5]:null};}function _0x396424(_0x291c14){for(let _0xb302fb=0x0;_0xb302fb<_0x1386bd[_0x4066('0x18')];_0xb302fb++){if(_0x291c14[_0x4066('0xa0')]&&_0x4066('0x9f')==_0x1386bd[_0xb302fb]['type'])return _0x291c14[_0x4066('0x67')]=_0x1386bd[_0xb302fb],void delete _0x291c14[_0x4066('0xa0')];if(!_0x291c14[_0x4066('0xa0')]&&!_0x291c14[_0x4066('0xbf')]&&_0x4066('0xed')==_0x1386bd[_0xb302fb][_0x4066('0xdb')])return void(_0x291c14[_0x4066('0x13')]=_0x1386bd[_0xb302fb]);}}}[_0x4066('0x2f')](_0x1301ff,_0x1e6ea2){let _0x3fda0b=0x0,_0x10d0b4=!0x1;const _0x1df541=new Map();for(const _0x3fd778 of _0x1301ff)_0x3fd778[_0x1e6ea2]?_0x10d0b4&&(_0x3fda0b++,_0x10d0b4=!0x1):(_0x3fda0b++,_0x10d0b4=!0x0),_0x1df541[_0x4066('0xbe')](_0x3fd778['id'],_0x3fda0b);for(let _0x3fd3a1=0x0;_0x3fd3a1<_0x1301ff[_0x4066('0x18')];_0x3fd3a1++){if(_0x4066('0xbf')==_0x1e6ea2&&_0x1301ff[_0x3fd3a1][_0x4066('0xa0')]||_0x4066('0xa0')==_0x1e6ea2&&_0x1301ff[_0x3fd3a1][_0x4066('0xbf')])continue;if(_0x4066('0xd1')==_0x1301ff[_0x3fd3a1][_0x4066('0xdb')]){_0x1301ff[_0x3fd3a1][_0x4066('0x53')]=0x0;continue;}const _0x19e7d8=_0x1df541[_0x4066('0xea')](_0x1301ff[_0x3fd3a1]['pairId']),_0x40bc47=_0x1df541[_0x4066('0xea')](_0x1301ff[_0x3fd3a1]['id']);_0x1301ff[_0x3fd3a1][_0x4066('0x53')]=_0x19e7d8-_0x40bc47;}}[_0x4066('0xeb')](_0x4aa693,_0xbe4b1,_0x59f4a6=!0x1){const _0x1e3b72=[];let _0x3205af=this[_0x4066('0xee')]['getIndex'](_0x4aa693),_0x3e9457=this[_0x4066('0xee')][_0x4066('0x8e')](_0xbe4b1);for(-0x1==_0x3e9457&&(_0x3e9457=this['repository']['_revisions'][_0x4066('0x18')],_0x59f4a6=!0x1);_0x3205af<_0x3e9457;)_0x1e3b72[_0x4066('0x37')](this[_0x4066('0xee')][_0x4066('0xd3')](_0x3205af)),_0x3205af++;return _0x59f4a6&&_0x1e3b72['push'](this[_0x4066('0xee')][_0x4066('0xd3')](_0x3205af)),_0x1e3b72;}[_0x4066('0x1a')](_0x295f4d,_0x192440,_0x34fff0,_0x487d48){const _0x2f0213=this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0xbc')];let _0xd4b0c=_0x192440;for(;_0x295f4d[_0xd4b0c]&&_0x295f4d[_0xd4b0c][_0x4066('0xa0')];)_0xd4b0c++;let _0x3f3191=_0x487d48;for(;_0x34fff0[_0x3f3191]&&_0x34fff0[_0x3f3191][_0x4066('0xbf')];)_0x3f3191++;_0xb2af31(_0x295f4d,_0x192440,_0xd4b0c),_0xb2af31(_0x34fff0,_0x487d48,_0x3f3191);const _0x3ebc93=_0x34fff0['slice'](_0x487d48,_0x3f3191)[_0x4066('0xe3')](_0x295f4d[_0x4066('0xb0')](_0x192440,_0xd4b0c));return _0x3ebc93['sort']((_0x321444,_0x51d21e)=>_0x321444['side']!=_0x51d21e[_0x4066('0x51')]?_0x321444[_0x4066('0x51')]-_0x51d21e[_0x4066('0x51')]:_0x321444[_0x4066('0x9b')]!=_0x51d21e[_0x4066('0x9b')]?_0x321444[_0x4066('0x9b')]-_0x51d21e[_0x4066('0x9b')]:_0x321444[_0x4066('0x53')]!=_0x51d21e['distance']?_0x51d21e[_0x4066('0x53')]-_0x321444[_0x4066('0x53')]:!!_0x321444['isAdded']!=!!_0x51d21e['isAdded']?-0x1==_0x321444[_0x4066('0x51')]||0x0==_0x321444['side']?_0x321444[_0x4066('0xa0')]?-0x1:0x1:_0x321444[_0x4066('0xa0')]?0x1:-0x1:_0x321444[_0x4066('0x5')]-_0x51d21e[_0x4066('0x5')]),{'commonTape':_0x3ebc93,'iEnd':_0xd4b0c,'jEnd':_0x3f3191};function _0xb2af31(_0xcfa044,_0x497586,_0x6b31b7){let _0x1aeaf0=-0x1,_0xd9e602=Number[_0x4066('0xde')],_0x49ed28=!0x0;for(let _0x2abfb7=_0x497586;_0x2abfb7<_0x6b31b7;_0x2abfb7++)if(_0x2f0213['isInline'](_0xcfa044[_0x2abfb7][_0x4066('0x6f')])||(_0x49ed28=!0x1),_0xcfa044[_0x2abfb7][_0x4066('0x6f')]['startIndex']<_0x497586&&(_0x1aeaf0=_0x2abfb7),_0xcfa044[_0x2abfb7][_0x4066('0x6f')]['endIndex']>=_0x6b31b7){_0xd9e602=_0x2abfb7;break;}_0x49ed28&&(_0x1aeaf0=_0x6b31b7-0x1);for(let _0x4d0479=_0x497586;_0x4d0479<_0x6b31b7;_0x4d0479++)_0xcfa044[_0x4d0479][_0x4066('0x51')]=_0x4d0479<=_0x1aeaf0?-0x1:_0x4d0479<_0xd9e602?0x0:0x1,_0xcfa044[_0x4d0479][_0x4066('0x5')]=_0x4d0479;let _0x2342fc=0x0;for(let _0x5ecfab=_0x497586;_0x5ecfab<=_0x1aeaf0;_0x5ecfab++)0x0==_0xcfa044[_0x5ecfab][_0x4066('0x53')]?_0xcfa044[_0x5ecfab][_0x4066('0x9b')]=_0x2342fc:(_0x2342fc++,_0xcfa044[_0x5ecfab][_0x4066('0x9b')]=_0x2342fc,_0x2342fc++);for(let _0x19f098=_0x497586;_0x19f098<_0x6b31b7;_0x19f098++)0x0==_0xcfa044[_0x19f098]['side']&&(_0xcfa044[_0x19f098][_0x4066('0x9b')]=_0x2342fc);_0x2342fc=0x0;for(let _0xd4f9ac=_0x6b31b7-0x1;_0xd4f9ac>=_0xd9e602;_0xd4f9ac--)0x0==_0xcfa044[_0xd4f9ac][_0x4066('0x53')]?_0xcfa044[_0xd4f9ac][_0x4066('0x9b')]=_0x2342fc:(_0x2342fc--,_0xcfa044[_0xd4f9ac][_0x4066('0x9b')]=_0x2342fc,_0x2342fc--);}}[_0x4066('0x10e')](_0x90a844){const _0x59cf0b=new Map(),_0x372e20=this[_0x4066('0x112')]['model']['schema'];for(let _0x149f36=0x1;_0x149f36<_0x90a844[_0x4066('0x18')];_0x149f36++){let _0x4dcf67,_0x1b8242,_0x302bcd;const _0x305406=_0x90a844[_0x149f36],_0x57879b=_0x90a844[_0x149f36-0x1];if(_0x4066('0xd1')==_0x305406[_0x4066('0xdb')])continue;if(_0x305406[_0x4066('0xdb')]!=_0x57879b[_0x4066('0xdb')])continue;if(!_0x372e20['isBlock'](_0x57879b[_0x4066('0x6f')])||_0x372e20['isLimit'](_0x57879b['item']))continue;if(!_0x372e20[_0x4066('0xac')](_0x305406[_0x4066('0x6f')])||_0x372e20[_0x4066('0xab')](_0x305406['item']))continue;if((_0x90a844[_0x149f36][_0x4066('0xa0')]||_0x90a844[_0x149f36]['isAddSuggestion'])&&_0x90a844[_0x149f36-0x1]['isRemoved'])_0x4dcf67=_0x90a844[_0x149f36],_0x1b8242=_0x90a844[_0x149f36-0x1],_0x302bcd=_0x149f36-0x1;else{if(!_0x90a844[_0x149f36][_0x4066('0xbf')]||!_0x90a844[_0x149f36-0x1]['isAdded']&&!_0x90a844[_0x149f36-0x1][_0x4066('0x67')])continue;_0x4dcf67=_0x90a844[_0x149f36-0x1],_0x1b8242=_0x90a844[_0x149f36],_0x302bcd=_0x149f36;}const _0x3b33ee=_0x4dcf67['level']==_0x1b8242[_0x4066('0x9b')],_0x205052=Math['abs'](_0x4dcf67['level'])<Math[_0x4066('0x1')](_0x1b8242['level'])&&0x0==_0x1b8242[_0x4066('0x53')];(_0x3b33ee||_0x205052)&&(_0x59cf0b['set'](_0x1b8242['id'],_0x4dcf67['id']),_0x90a844[_0x4066('0x81')](_0x302bcd,0x1),_0x149f36--,_0x4dcf67[_0x4066('0xa0')]=!0x1);}for(let _0x2926ab=0x0;_0x2926ab<_0x90a844[_0x4066('0x18')];_0x2926ab++)_0x59cf0b['has'](_0x90a844[_0x2926ab][_0x4066('0x7a')])&&(_0x90a844[_0x2926ab]['pairId']=_0x59cf0b[_0x4066('0xea')](_0x90a844[_0x2926ab]['pairId']));}[_0x4066('0x9a')](_0x4c182b){const _0x143f43=new Set(_0x4c182b[_0x4066('0x6d')](_0x2cde7a=>_0x2cde7a['id']));for(let _0x38c78b=0x0;_0x38c78b<_0x4c182b[_0x4066('0x18')];_0x38c78b++)_0x143f43[_0x4066('0xd9')](_0x4c182b[_0x38c78b][_0x4066('0x7a')])||0x0==_0x4c182b[_0x38c78b][_0x4066('0x53')]||(_0x4c182b[_0x38c78b][_0x4066('0x10f')]=!0x0);return _0x4c182b[_0x4066('0x29')](_0x4ee3db=>!_0x4ee3db[_0x4066('0x10f')]);}[_0x4066('0xe6')](_0x3c0598){const _0x260155=new Set();for(let _0x279199=0x0;_0x279199<_0x3c0598['length'];_0x279199++){if(_0x260155[_0x4066('0xd9')](_0x3c0598[_0x279199]['id'])&&_0x3c0598[_0x279199][_0x4066('0xbf')]&&(_0x3c0598[_0x279199]['isIncorrect']=!0x0),_0x3c0598[_0x279199][_0x4066('0x10f')])continue;if(0x0==_0x3c0598[_0x279199][_0x4066('0x53')])continue;if('elementStart'!=_0x3c0598[_0x279199][_0x4066('0xdb')])continue;if(null==_0x3c0598[_0x279199][_0x4066('0x7a')])continue;let _0x2f0308=_0x279199+0x1,_0x200f85=0x0;for(;_0x3c0598[_0x2f0308]['id']!=_0x3c0598[_0x279199][_0x4066('0x7a')];)_0x4066('0x8c')==_0x3c0598[_0x2f0308][_0x4066('0xdb')]?_0x200f85++:_0x4066('0xdc')==_0x3c0598[_0x2f0308][_0x4066('0xdb')]&&_0x200f85--,_0x2f0308++;if(0x0!=_0x200f85){if(_0x3c0598[_0x279199]['isRemoved'])_0x3c0598[_0x279199][_0x4066('0x10f')]=!0x0;else for(;_0x2f0308!=_0x279199;)_0x3c0598[_0x2f0308][_0x4066('0xbf')]&&0x0!=_0x3c0598[_0x2f0308][_0x4066('0x53')]&&(_0x3c0598[_0x2f0308][_0x4066('0x10f')]=!0x0,_0x260155['add'](_0x3c0598[_0x2f0308][_0x4066('0x7a')])),_0x2f0308--;}}return _0x3c0598['filter'](_0x161180=>!_0x161180[_0x4066('0x10f')]);}[_0x4066('0x48')](_0x11ecaf){const _0x424fdf=this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0xbc')];for(let _0x4d8d4b=0x0;_0x4d8d4b<_0x11ecaf['length'];_0x4d8d4b++){if(!(_0x11ecaf[_0x4d8d4b][_0x4066('0xa0')]||_0x11ecaf[_0x4d8d4b][_0x4066('0x67')]||_0x11ecaf[_0x4d8d4b][_0x4066('0xbf')]||_0x11ecaf[_0x4d8d4b]['isRemoveSuggestion']))continue;if(0x0==_0x11ecaf[_0x4d8d4b][_0x4066('0x53')])continue;const _0x9c4774=_0x11ecaf[_0x4d8d4b]['item'];_0x424fdf[_0x4066('0xac')](_0x9c4774)||_0x424fdf[_0x4066('0xab')](_0x9c4774)||(_0x11ecaf[_0x4d8d4b][_0x4066('0xa0')]&&delete _0x11ecaf[_0x4d8d4b][_0x4066('0xa0')],_0x11ecaf[_0x4d8d4b][_0x4066('0x67')]&&delete _0x11ecaf[_0x4d8d4b][_0x4066('0x67')],_0x11ecaf[_0x4d8d4b]['isRemoveSuggestion']&&delete _0x11ecaf[_0x4d8d4b][_0x4066('0x13')],_0x11ecaf[_0x4d8d4b][_0x4066('0xbf')]&&(_0x11ecaf[_0x4d8d4b][_0x4066('0x10f')]=!0x0));}return _0x11ecaf[_0x4066('0x29')](_0x53518b=>!_0x53518b[_0x4066('0x10f')]);}['_makeModelFromTape'](_0x584a89,_0x304b1b,_0x5467fb){const _0x3e08ed=new _0x11b0d7(),_0x40748a=[],_0x54a92f=new Map(),_0x1923be=this['editor'][_0x4066('0xaf')],_0x121d83=_0x1923be['schema'],_0xc4f063=[_0x3e08ed],_0xb6050b={},_0x38ea3b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x504035=null;const _0x3db317=[0x0];for(let _0x47fe78=0x0;_0x47fe78<_0x584a89['length'];_0x47fe78++){let _0x3face6,_0x49183e;if(_0x4066('0x8c')===_0x584a89[_0x47fe78][_0x4066('0xdb')]){_0x3face6=_0x1923be[_0x4066('0x104')](_0x3e08ed,_0x3db317);const _0x31f158=new _0x10cc25(_0x584a89[_0x47fe78]['item'][_0x4066('0xc0')],_0x584a89[_0x47fe78][_0x4066('0x6f')][_0x4066('0x20')]());_0xc4f063[0x0]['_appendChild'](_0x31f158),_0x3db317[_0x4066('0x37')](0x0),_0xc4f063[_0x4066('0x4')](_0x31f158),_0x49183e=_0x1923be[_0x4066('0x104')](_0x3e08ed,_0x3db317),_0x504035=null;}else{if(_0x4066('0xdc')===_0x584a89[_0x47fe78]['type'])_0xc4f063['shift'](),_0x3face6=_0x1923be[_0x4066('0x104')](_0x3e08ed,_0x3db317),_0x3db317[_0x4066('0x4a')](),_0x3db317[_0x3db317[_0x4066('0x18')]-0x1]++,_0x49183e=_0x1923be[_0x4066('0x104')](_0x3e08ed,_0x3db317),_0x504035=null;else{if(_0x3face6=_0x1923be['createPositionFromPath'](_0x3e08ed,_0x3db317),_0x504035&&_0x122159(_0x504035,_0x584a89[_0x47fe78]['item']))_0x504035['_data']+=_0x584a89[_0x47fe78]['item']['data'];else{const _0x73c4f7=new _0x1f52a6(_0x584a89[_0x47fe78][_0x4066('0x6f')][_0x4066('0x5a')],_0x584a89[_0x47fe78]['item'][_0x4066('0x20')]());_0xc4f063[0x0]['_appendChild'](_0x73c4f7),_0x504035=_0x73c4f7;}_0x3db317[_0x3db317[_0x4066('0x18')]-0x1]+=_0x584a89[_0x47fe78][_0x4066('0x6f')][_0x4066('0x15')],_0x49183e=_0x1923be[_0x4066('0x104')](_0x3e08ed,_0x3db317);}}for(const _0x5d1344 of _0x584a89[_0x47fe78]['markersStart'])_0x54a92f[_0x4066('0xbe')](_0x5d1344,{'start':_0x3face6,'end':null});_0x51b106(_0x4066('0x13'),_0x47fe78,_0x3face6,_0x49183e),_0x51b106(_0x4066('0x67'),_0x47fe78,_0x3face6,_0x49183e),_0x51b106(_0x4066('0xbf'),_0x47fe78,_0x3face6,_0x49183e),_0x51b106(_0x4066('0xa0'),_0x47fe78,_0x3face6,_0x49183e);for(const _0x19cdcf of _0x584a89[_0x47fe78]['markersEnd']){_0x54a92f['get'](_0x19cdcf)[_0x4066('0x62')]=_0x49183e;}}for(const [_0x4ccca3,_0x1dad51]of _0x54a92f){const _0x2b3e47=this['editor'][_0x4066('0xaf')][_0x4066('0x57')](_0x1dad51[_0x4066('0x87')],_0x1dad51[_0x4066('0x62')]);_0x3e08ed[_0x4066('0xcf')]['set'](_0x4ccca3,_0x2b3e47);}return _0x40748a[_0x4066('0xf')]((_0x569257,_0x1254a2)=>{const _0x3fd63d=_0x3e08ed[_0x4066('0xcf')][_0x4066('0xea')](_0x4066('0x36')+_0x569257['id']),_0x4ba917=_0x3e08ed['markers'][_0x4066('0xea')](_0x4066('0x36')+_0x1254a2['id']);return _0x3fd63d[_0x4066('0x87')][_0x4066('0xc5')](_0x4ba917[_0x4066('0x87')])?-0x1:_0x3fd63d[_0x4066('0x87')][_0x4066('0xa2')](_0x4ba917[_0x4066('0x87')])?0x1:_0x3fd63d[_0x4066('0x62')][_0x4066('0xc5')](_0x4ba917[_0x4066('0x62')])?-0x1:_0x3fd63d[_0x4066('0x62')][_0x4066('0xa2')](_0x4ba917[_0x4066('0x62')])?0x1:_0x4066('0x105')===_0x569257['type']?-0x1:0x1;}),{'root':_0x3e08ed,'changes':_0x40748a};function _0x51b106(_0x1d3567,_0x2e5ea2,_0x28083e,_0x19434a){const _0x364b9d=!!_0x584a89[_0x2e5ea2][_0x1d3567],_0x3ec191=_0x364b9d?_0x584a89[_0x2e5ea2][_0x1d3567][_0x4066('0xe')]:null,_0x1c3e96=_0x2e5ea2===_0x584a89[_0x4066('0x18')]-0x1,_0x555e49=_0x38ea3b[_0x1d3567][0x0],_0x10f9b3=_0x121d83[_0x4066('0x17')](_0x584a89[_0x2e5ea2][_0x4066('0x6f')]);!_0xb6050b[_0x1d3567]&&_0x364b9d?_0xb6050b[_0x1d3567]={'start':_0x28083e,'tapeItem':_0x584a89[_0x2e5ea2],'userId':_0x3ec191,'type':_0x1d3567}:_0xb6050b[_0x1d3567]&&!_0x364b9d?(_0xb6050b[_0x1d3567][_0x4066('0x62')]=_0x28083e,_0x4e0341(_0xb6050b[_0x1d3567]),_0xb6050b[_0x1d3567]=null):_0xb6050b[_0x1d3567]&&_0x364b9d&&_0xb6050b[_0x1d3567][_0x4066('0xe')]!==_0x3ec191&&(_0xb6050b[_0x1d3567][_0x4066('0x62')]=_0x28083e,_0x555e49&&_0x555e49[_0x4066('0xe')]===_0xb6050b[_0x1d3567]['userId']||_0x4e0341(_0xb6050b[_0x1d3567]),_0xb6050b[_0x1d3567]={'start':_0x28083e,'tapeItem':_0x584a89[_0x2e5ea2],'userId':_0x3ec191,'type':_0x1d3567}),_0xb6050b[_0x1d3567]&&_0x10f9b3&&('elementStart'!==_0x584a89[_0x2e5ea2][_0x4066('0xdb')]||_0x555e49&&_0x555e49[_0x4066('0xe')]===_0x3ec191||_0x38ea3b[_0x1d3567][_0x4066('0x4')]({'userId':_0x3ec191,'object':_0x584a89[_0x2e5ea2]['item'],'change':_0xb6050b[_0x1d3567]}),'elementEnd'===_0x584a89[_0x2e5ea2]['type']&&_0x555e49&&_0x555e49['object']===_0x584a89[_0x2e5ea2][_0x4066('0x6f')]&&(_0x38ea3b[_0x1d3567][_0x4066('0x10d')](),_0xb6050b[_0x1d3567]=_0x555e49[_0x4066('0x41')])),_0xb6050b[_0x1d3567]&&_0x1c3e96&&(_0xb6050b[_0x1d3567][_0x4066('0x62')]=_0x19434a,_0x4e0341(_0xb6050b[_0x1d3567]),_0xb6050b[_0x1d3567]=null);}function _0x4e0341({start:_0x20cb0d,end:_0x669ce1,tapeItem:_0x3313b3,userId:_0x5571da,type:_0x31356a}){const _0x18091a=_0x3313b3[_0x4066('0x6f')],_0x384d77=_0x1923be[_0x4066('0xbc')][_0x4066('0xac')](_0x18091a)&&!_0x1923be[_0x4066('0xbc')][_0x4066('0xab')](_0x18091a),_0x68ae40=_0x20cb0d['nodeAfter']==_0x669ce1[_0x4066('0x5f')]&&_0x669ce1[_0x4066('0xf0')];if(_0x384d77&&_0x68ae40)return;const _0xec12b0=_0x1923be[_0x4066('0x57')](_0x20cb0d,_0x669ce1),_0x5a22bb=_0x304b1b['get'](_0x5571da),_0x2e27b5=new _0x149bf1({'author':_0x5a22bb,'type':_0x4066('0xa0')==_0x31356a||_0x4066('0x67')==_0x31356a?'add':_0x4066('0x45'),'data':{'isSuggestion':_0x4066('0x67')==_0x31356a||'isRemoveSuggestion'==_0x31356a},'createdAt':new Date(),'rootName':_0x5467fb});_0x40748a['push'](_0x2e27b5),_0x3e08ed[_0x4066('0xcf')][_0x4066('0xbe')]('revision:'+_0x2e27b5['id'],_0xec12b0);}function _0x122159(_0x4d4b6f,_0x10882c){const _0x3cc7ec=_0x4d4b6f['getAttributes'](),_0x54e978=_0x10882c[_0x4066('0x20')]();for(const _0xe5d0a8 of _0x3cc7ec){if(_0xe5d0a8[0x1]!==_0x10882c[_0x4066('0x1b')](_0xe5d0a8[0x0]))return!0x1;_0x54e978[_0x4066('0x32')]();}return _0x54e978['next']()[_0x4066('0xf7')];}}[_0x4066('0x102')](){this[_0x4066('0x112')][_0x4066('0x83')][_0x4066('0xda')](_0x4066('0xc7'))[_0x4066('0xe4')]({'view':_0x4066('0xa1')}),this['editor']['conversion'][_0x4066('0xda')]('editingDowncast')[_0x4066('0x9c')]({'model':_0x4066('0xa1'),'view':_0x19e217=>{const _0x22ffe1=_0x19e217['markerName'][_0x4066('0xfa')](':')[0x1],_0x3ec420=this['_getChangeFromId'](_0x22ffe1);if(!_0x3ec420)return null;const _0x3c88ad=_0x4066('0x105')==_0x3ec420[_0x4066('0xdb')]?_0x4066('0x9f'):'deletion',_0x3224cd=[_0x4066('0x10'),_0x4066('0x10c')+_0x3c88ad];return _0x3ec420[_0x4066('0x5a')][_0x4066('0xba')]&&_0x3224cd[_0x4066('0x37')](_0x4066('0x10c')+_0x3c88ad+_0x4066('0x90')),this[_0x4066('0x94')]==_0x3ec420&&_0x3224cd[_0x4066('0x37')](_0x4066('0x27')),{'classes':_0x3224cd,'attributes':{'data-change-id':_0x22ffe1}};}}),this[_0x4066('0x112')][_0x4066('0x83')][_0x4066('0xda')](_0x4066('0xc7'))[_0x4066('0x105')](_0x15493f=>{_0x15493f['on']('element:pre',(_0x4d5624,_0x77ddc1,_0x33019b)=>{const _0x1d1d99=_0x77ddc1[_0x4066('0x28')][_0x4066('0x14')](0x0);if(!_0x1d1d99||!_0x1d1d99['is'](_0x4066('0x21'),_0x4066('0x5d')))return;if(!_0x33019b[_0x4066('0x4c')][_0x4066('0x10b')](_0x1d1d99,{'attributes':[_0x4066('0x4f'),'vid_end']}))return;const _0x1c3b0e=_0x77ddc1[_0x4066('0x7c')]['start']['nodeAfter'];_0x33019b[_0x4066('0xd4')][_0x4066('0xf9')]('vid_start',_0x1d1d99[_0x4066('0x1b')]('vid_start'),_0x1c3b0e),_0x33019b[_0x4066('0xd4')][_0x4066('0xf9')](_0x4066('0x2c'),_0x1d1d99['getAttribute'](_0x4066('0x2c')),_0x1c3b0e);},{'priority':_0x4066('0x74')});}),this['editor']['conversion']['for'](_0x4066('0xc7'))['add'](_0x25d703=>{_0x25d703['on'](_0x4066('0x21'),(_0x34c9e1,_0x5306f2,_0x3b714e)=>{if(!_0x3b714e[_0x4066('0x4c')][_0x4066('0x10b')](_0x5306f2[_0x4066('0x28')],{'attributes':['vid_start',_0x4066('0x2c')]}))return;if(_0x5306f2[_0x4066('0x7c')][_0x4066('0xf8')])return;const _0x4b1d78=_0x5306f2[_0x4066('0x7c')]['start']['nodeAfter'];_0x4b1d78[_0x4066('0xe2')]('vid_start')||_0x4b1d78['hasAttribute'](_0x4066('0x115'))||(_0x3b714e[_0x4066('0xd4')][_0x4066('0xf9')](_0x4066('0x4f'),_0x5306f2[_0x4066('0x28')][_0x4066('0x1b')](_0x4066('0x4f')),_0x4b1d78),_0x3b714e[_0x4066('0xd4')][_0x4066('0xf9')]('vid_end',_0x5306f2[_0x4066('0x28')]['getAttribute'](_0x4066('0x2c')),_0x4b1d78));},{'priority':_0x4066('0x74')});}),this[_0x4066('0x112')][_0x4066('0x83')][_0x4066('0xda')]('upcast')[_0x4066('0x3f')]({'view':{'name':_0x4066('0xb4'),'attributes':{'vid':!0x0}},'model':{'key':_0x4066('0x115'),'value':_0x352467=>_0x352467[_0x4066('0x1b')](_0x4066('0x115'))}}),this['editor'][_0x4066('0xaf')][_0x4066('0xbc')]['on']('checkAttribute',(_0x12288a,[,_0x4bf9ff])=>{[_0x4066('0x4f'),_0x4066('0x2c'),_0x4066('0x115')][_0x4066('0x99')](_0x4bf9ff)&&(_0x12288a[_0x4066('0x39')]=!0x0,_0x12288a['stop']());},{'priority':'highest'}),this[_0x4066('0x112')][_0x4066('0x83')][_0x4066('0xda')](_0x4066('0x107'))['add'](_0x5c6327=>{_0x5c6327['on'](_0x4066('0x110'),(_0x51d46a,_0x2d65d4,_0x27e270)=>{if('\x20'!=_0x2d65d4['item'][_0x4066('0x5a')]||_0x2d65d4['item'][_0x4066('0x5f')][_0x4066('0x64')]>0x1)return;if(!_0x27e270[_0x4066('0x4c')][_0x4066('0x10b')](_0x2d65d4['item'],_0x51d46a['name']))return;const _0x41f8e7=_0x27e270[_0x4066('0xd4')],_0x4f1920=_0x27e270[_0x4066('0xb9')]['toViewRange'](_0x2d65d4[_0x4066('0x9')]);_0x41f8e7[_0x4066('0x63')](_0x4f1920,_0x41f8e7[_0x4066('0x7b')](_0x4066('0xb4')));});}),this['editor'][_0x4066('0x83')]['for'](_0x4066('0x107'))['markerToData']({'model':_0x4066('0xa1')}),this[_0x4066('0x112')]['editing'][_0x4066('0xb5')]['on'](_0x4066('0x30'),function(_0x320c32){const _0x465e84=_0x320c32['plugins'][_0x4066('0xea')](_0x4066('0xcd'));return(_0x36434f,_0xbc8c03,_0x4645a8)=>{const _0x5d10a1=_0xbc8c03[_0x4066('0x3e')][_0x4066('0xfa')](':')[0x1],_0x18015b=_0x465e84[_0x4066('0xd7')](_0x5d10a1);if(!_0x18015b)return null;const _0x5a24bb=_0x4066('0x105')==_0x18015b[_0x4066('0xdb')]?_0x4066('0xfa'):_0x4066('0xa');if(!_0x4645a8['consumable'][_0x4066('0xe5')](_0xbc8c03[_0x4066('0xae')],_0x36434f['name']))return;const _0x7be93b=_0xbc8c03['markerRange'][_0x4066('0x69')](),_0x931289=_0xbc8c03[_0x4066('0xae')][_0x4066('0x87')],_0xeed5fb=_0x320c32[_0x4066('0xaf')][_0x4066('0xbc')];let _0x5cd66f=null,_0x2c8597=null,_0x3057d8=!0x1,_0x346e5d=!0x1;for(const _0x2bd28e of _0x7be93b){const _0x39a6ed=_0x2bd28e[_0x4066('0x6f')];_0x3057d8=_0x3057d8||_0xeed5fb[_0x4066('0x23')](_0x39a6ed);const _0x4f8bd0=_0x4645a8['mapper'][_0x4066('0x56')](_0x39a6ed);if(_0x4f8bd0&&_0x4f8bd0[_0x4066('0xe8')](_0x4066('0x5e')))return;_0x4066('0xdc')==_0x2bd28e[_0x4066('0xdb')]&&(_0xeed5fb['isBlock'](_0x39a6ed)&&!_0xeed5fb[_0x4066('0xab')](_0x39a6ed)&&(_0x39a6ed[_0x4066('0x2e')]||_0x931289[_0x4066('0x118')]?_0x5cd66f&&_0x5cd66f['parent']==_0x39a6ed||(_0x5cd66f=_0x39a6ed,_0x1bcfa3(_0x2bd28e['previousPosition']),_0x346e5d=!0x0):_0x2c8597=_0x2c8597||_0x2bd28e[_0x4066('0x8b')]));}function _0x1bcfa3(_0x16a6e5){const _0x5fbb20=_0x4645a8['writer'][_0x4066('0xce')](_0x4066('0xb4'),{'class':_0x4066('0x10c')+_0x5a24bb}),_0x1c9ea7=_0x4645a8[_0x4066('0xb9')][_0x4066('0x9d')](_0x16a6e5);_0x18015b[_0x4066('0x5a')][_0x4066('0xba')]&&_0x4645a8[_0x4066('0xd4')]['addClass'](_0x4066('0x10c')+_0x5a24bb+_0x4066('0x90'),_0x5fbb20),_0x465e84[_0x4066('0x94')]==_0x18015b&&_0x4645a8[_0x4066('0xd4')][_0x4066('0x26')](_0x4066('0x27'),_0x5fbb20),_0x4645a8[_0x4066('0xd4')][_0x4066('0x4d')](_0x1c9ea7,_0x5fbb20),_0x4645a8[_0x4066('0xb9')][_0x4066('0x11a')](_0x5fbb20,_0xbc8c03[_0x4066('0x3e')]);}_0x3057d8||_0x346e5d||!_0x2c8597||_0x1bcfa3(_0x2c8597);};}(this[_0x4066('0x112')]),{'priority':_0x4066('0x61')}),this[_0x4066('0x112')][_0x4066('0x19')][_0x4066('0xb5')]['on']('removeMarker:revision',(_0x4849d3,_0x1eeb8f,_0xc1c0fb)=>{const _0x221e3d=_0xc1c0fb[_0x4066('0xb9')][_0x4066('0x100')](_0x1eeb8f[_0x4066('0x3e')]);if(_0x221e3d)for(const _0x7de5c6 of _0x221e3d)(_0x7de5c6[_0x4066('0xfb')](_0x4066('0xcb'))||_0x7de5c6[_0x4066('0xfb')](_0x4066('0x1c')))&&(_0xc1c0fb[_0x4066('0xb9')][_0x4066('0x116')](_0x7de5c6,_0x1eeb8f[_0x4066('0x3e')]),_0xc1c0fb[_0x4066('0xd4')][_0x4066('0x45')](_0x7de5c6));},{'priority':_0x4066('0x61')}),this['editor'][_0x4066('0x19')]['downcastDispatcher']['on']('addMarker:revision',(_0x4d9c21,_0x490d11,_0x35c06b)=>{const _0x48a0f8=_0x490d11[_0x4066('0x3e')][_0x4066('0xfa')](':')[0x1],_0xfa17a9=this[_0x4066('0xd7')](_0x48a0f8);if(!_0xfa17a9)return null;const _0x5aa55a=_0x4066('0x105')==_0xfa17a9['type']?_0x4066('0xfa'):'merge';if(_0x35c06b[_0x4066('0x4c')]['test'](_0x490d11[_0x4066('0xae')],_0x4d9c21[_0x4066('0xc0')]))for(const _0x38e132 of _0x490d11[_0x4066('0xae')]['getItems']()){if(!_0x38e132['is']('element',_0x4066('0x7')))continue;const _0x4fa85c=_0x35c06b['writer'][_0x4066('0xce')](_0x4066('0xb4'),{'class':_0x4066('0x10c')+_0x5aa55a}),_0xf49d00=_0x35c06b[_0x4066('0xb9')][_0x4066('0x9d')](this[_0x4066('0x112')][_0x4066('0xaf')]['createPositionBefore'](_0x38e132));_0xfa17a9[_0x4066('0x5a')][_0x4066('0xba')]&&_0x35c06b[_0x4066('0xd4')]['addClass'](_0x4066('0x10c')+_0x5aa55a+_0x4066('0x90'),_0x4fa85c),this['activeChange']==_0xfa17a9&&_0x35c06b[_0x4066('0xd4')][_0x4066('0x26')](_0x4066('0x27'),_0x4fa85c),_0x35c06b[_0x4066('0xd4')]['insert'](_0xf49d00,_0x4fa85c),_0x35c06b[_0x4066('0xb9')][_0x4066('0x11a')](_0x4fa85c,_0x490d11[_0x4066('0x3e')]);}},{'priority':_0x4066('0x61')}),this[_0x4066('0x112')]['model'][_0x4066('0x50')]['on'](_0x4066('0x41'),()=>{this[_0x4066('0x112')]['editing'][_0x4066('0x7d')]['change'](_0x1e217c=>{for(const _0x1740aa of this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0x50')][_0x4066('0x8a')]()){const _0x41ddf3=this['editor']['model'][_0x4066('0x50')][_0x4066('0xf4')](_0x1740aa),_0x15d323=this[_0x4066('0x112')][_0x4066('0x19')]['view'][_0x4066('0x50')][_0x4066('0xf4')](_0x1740aa);if(_0x15d323){const _0x2fcf28=_0x41ddf3[_0x4066('0x1b')](_0x4066('0x33'));if(_0x1e217c[_0x4066('0xb1')](_0x4066('0x98'),_0x15d323),_0x1e217c['removeClass'](_0x4066('0xf1'),_0x15d323),_0x1e217c[_0x4066('0x91')]('ck-revision-history-root-remove',_0x15d323),_0x1e217c[_0x4066('0x91')](_0x4066('0xaa'),_0x15d323),_0x2fcf28){const _0x19a2a6=this['_getChangeFromId'](_0x2fcf28);if(!_0x19a2a6)return null;_0x1e217c[_0x4066('0xf9')]('data-change-id',_0x2fcf28,_0x15d323),_0x1e217c[_0x4066('0x26')](_0x4066('0xca')+_0x19a2a6[_0x4066('0xdb')],_0x15d323),this[_0x4066('0x94')]==_0x19a2a6&&_0x1e217c['addClass'](_0x4066('0xaa'),_0x15d323);}}}});}),this[_0x4066('0x112')]['conversion'][_0x4066('0xda')](_0x4066('0xc7'))[_0x4066('0xe4')]({'view':_0x4066('0xf6'),'model':_0x36402a=>_0x4066('0x3b')+_0x36402a,'converterPriority':_0x4066('0xa7')}),this[_0x4066('0x112')]['conversion'][_0x4066('0xda')](_0x4066('0xc7'))[_0x4066('0xe4')]({'view':_0x4066('0x68'),'model':_0x401dba=>'revision-suggestion:'+_0x401dba,'converterPriority':_0x4066('0xa7')}),this[_0x4066('0x112')]['conversion'][_0x4066('0xda')](_0x4066('0x107'))[_0x4066('0x2b')]({'model':'revision-suggestion','view':_0x1828af=>({'name':'suggestion:'+_0x1828af,'group':_0x4066('0xb7')}),'converterPriority':_0x4066('0xa7')}),this['editor'][_0x4066('0x83')]['for'](_0x4066('0xbb'))[_0x4066('0x9c')]({'model':_0x4066('0xb7'),'view':_0x4f81c3=>{const _0x1b0bf0=_0x4f81c3[_0x4066('0x3e')][_0x4066('0xfa')](':')[0x1];return'insertion'!=_0x1b0bf0&&_0x4066('0xed')!=_0x1b0bf0?null:{'classes':['ck-suggestion-preview-marker',_0x4066('0xa4')+_0x1b0bf0]};}}),this[_0x4066('0x112')][_0x4066('0x19')]['downcastDispatcher']['on'](_0x4066('0xb3'),et(this[_0x4066('0x112')],_0x4066('0xa')),{'priority':_0x4066('0x61')}),this[_0x4066('0x112')][_0x4066('0x19')][_0x4066('0xb5')]['on'](_0x4066('0x22'),et(this[_0x4066('0x112')],_0x4066('0xfa')),{'priority':_0x4066('0x61')}),this[_0x4066('0x112')]['editing'][_0x4066('0xb5')]['on'](_0x4066('0xdd'),(_0x30184c,_0x2ab622,_0x2ee347)=>{const _0x59db87=_0x2ee347['mapper'][_0x4066('0x100')](_0x2ab622['markerName']);if(_0x59db87)for(const _0x13f025 of _0x59db87)_0x13f025['is']('uiElement')&&(_0x2ee347['mapper']['unbindElementFromMarkerName'](_0x13f025,_0x2ab622[_0x4066('0x3e')]),_0x2ee347[_0x4066('0xd4')][_0x4066('0x45')](_0x13f025));},{'priority':_0x4066('0x61')});}[_0x4066('0xd7')](_0x2623ad){return this['_changeIdToChange'][_0x4066('0xea')](_0x2623ad);}[_0x4066('0xd0')](_0x21d47d){return this['_changeView']&&this[_0x4066('0x8d')][_0x4066('0xc8')](),this[_0x4066('0x8d')]=new _0x2dd857(this[_0x4066('0x112')][_0x4066('0x7e')],_0x21d47d),this[_0x4066('0x8d')];}['_initInteractions'](){this[_0x4066('0x112')][_0x4066('0xaf')]['document']['selection']['observeMarkers'](_0x4066('0xa1')),this['on']('change:activeView',(_0x16cc87,_0x3f01ce,_0x4ede96,_0x1e30e6)=>{_0x1e30e6&&this['_balloon'][_0x4066('0x45')](_0x1e30e6),_0x4ede96&&(this['_balloon'][_0x4066('0x105')]({'view':_0x4ede96,'stackId':_0x4066('0x2'),'position':{'target':()=>{const _0x45b219=this[_0x4066('0x112')][_0x4066('0x19')],_0x3efb64=this['_getChangeFromId'](_0x4ede96['changeId']);let _0x1fb41b;if(_0x3efb64['data'][_0x4066('0x89')]){const _0x477bc6=_0x45b219[_0x4066('0x7d')]['getDomRoot'](_0x3efb64[_0x4066('0x119')]);_0x1fb41b=Array['from'](_0x477bc6['getClientRects']());}else{const _0x311a8c=this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0xcf')][_0x4066('0xea')](_0x4066('0x36')+_0x4ede96['changeId']);_0x1fb41b=Array[_0x4066('0x5c')](_0x45b219[_0x4066('0xb9')][_0x4066('0x100')](_0x311a8c[_0x4066('0xc0')]))['map'](_0x2cce23=>_0x45b219['view']['domConverter'][_0x4066('0x75')](_0x2cce23))[_0x4066('0x6d')](_0x4daa74=>Array[_0x4066('0x5c')](_0x4daa74[_0x4066('0x60')]()))['flat']();}if(!this['_activeViewTarget'])return _0x1fb41b[0x0];return _0x1fb41b[_0x4066('0xad')](_0x137a29=>_0x137a29['top']-0x3<=this['_activeViewTarget']['y']&&_0x137a29[_0x4066('0xd6')]+0x3>=this[_0x4066('0x46')]['y']&&_0x137a29[_0x4066('0x44')]-0x3<=this[_0x4066('0x46')]['x']&&_0x137a29[_0x4066('0x6b')]+0x3>=this[_0x4066('0x46')]['x'])||_0x1fb41b[0x0];}}}),this['_balloon'][_0x4066('0x114')](_0x4066('0x2')));}),this['on'](_0x4066('0x8f'),(_0x3d1ba2,_0x1012c6,_0x5d51b8,_0x509817)=>{this[_0x4066('0xcc')]=_0x5d51b8?this[_0x4066('0xd0')](_0x5d51b8):null,this[_0x4066('0x112')]['model'][_0x4066('0x41')](()=>{const _0x5fbaac=this[_0x4066('0x112')][_0x4066('0x19')];_0x509817&&(_0x509817[_0x4066('0x5a')]['isOnRoot']?_0x5fbaac[_0x4066('0x7d')][_0x4066('0x41')](_0x261fe9=>{_0x261fe9[_0x4066('0x91')](_0x4066('0xaa'),_0x5fbaac[_0x4066('0x7d')]['document'][_0x4066('0xf4')](_0x509817[_0x4066('0x119')]));}):_0x5fbaac[_0x4066('0xe9')](_0x4066('0x36')+_0x509817['id'])),_0x5d51b8&&(_0x5d51b8[_0x4066('0x5a')][_0x4066('0x89')]?_0x5fbaac[_0x4066('0x7d')][_0x4066('0x41')](_0x359c47=>{_0x359c47[_0x4066('0x26')](_0x4066('0xaa'),_0x5fbaac['view']['document'][_0x4066('0xf4')](_0x5d51b8[_0x4066('0x119')]));}):_0x5fbaac[_0x4066('0xe9')](_0x4066('0x36')+_0x5d51b8['id']));});}),this[_0x4066('0xfe')](this[_0x4066('0x112')]['editing'][_0x4066('0x7d')][_0x4066('0x50')],'mouseover',(_0x535109,_0xdd42e0)=>{if(this['activeChange'])return;const _0x273b2d=this['_findChangeIdFromDomTarget'](_0xdd42e0[_0x4066('0x3d')]),_0x30094d=this['_changeIdToChange'][_0x4066('0xea')](_0x273b2d);_0x30094d?(this['_activeViewTarget']={'x':_0xdd42e0['domEvent']['x'],'y':_0xdd42e0[_0x4066('0xef')]['y']},this[_0x4066('0xcc')]=this[_0x4066('0xd0')](_0x30094d)):(this[_0x4066('0x46')]=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing'][_0x4066('0x7d')][_0x4066('0x50')],'mousedown',(_0x8e975e,_0x50a634)=>{const _0x5c2da2=this['_findChangeIdFromDomTarget'](_0x50a634[_0x4066('0x3d')]),_0x48c0a3=this[_0x4066('0x38')][_0x4066('0xea')](_0x5c2da2);_0x48c0a3?(this[_0x4066('0x46')]={'x':_0x50a634[_0x4066('0xef')]['x'],'y':_0x50a634[_0x4066('0xef')]['y']},_0x48c0a3===this[_0x4066('0x94')]?this[_0x4066('0xe0')][_0x4066('0x3')]():this['activeChange']=_0x48c0a3):(this[_0x4066('0x46')]=null,this[_0x4066('0x94')]=null);});}[_0x4066('0xd5')](_0x408374){do{const _0x191e24=_0x408374['getAttribute']('data-change-id');if(_0x191e24)return _0x191e24;_0x408374=_0x408374[_0x4066('0x5f')];}while(_0x408374);return null;}[_0x4066('0x11')](){this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0x41')](_0x594565=>{for(const _0x40cdb8 of this['editor'][_0x4066('0xaf')][_0x4066('0xcf')])_0x594565[_0x4066('0x6c')](_0x40cdb8);});}}function et(_0x2e0935,_0x25ef8c){return(_0x516088,_0x243bb2,_0x1b4f54)=>{if(!_0x1b4f54[_0x4066('0x4c')][_0x4066('0xe5')](_0x243bb2['markerRange'],_0x516088['name']))return;const _0x4149b6=_0x243bb2['markerRange'][_0x4066('0x69')](),_0x367fab=_0x243bb2['markerRange']['start'],_0x15f10d=_0x2e0935[_0x4066('0xaf')][_0x4066('0xbc')];let _0x252bcc=null,_0x596567=null,_0x8108dd=!0x1,_0x8e6bf4=!0x1;for(const _0x4d1157 of _0x4149b6){const _0x29dbf9=_0x4d1157['item'];_0x8108dd=_0x8108dd||_0x15f10d[_0x4066('0x23')](_0x29dbf9);const _0x104139=_0x1b4f54[_0x4066('0xb9')][_0x4066('0x56')](_0x29dbf9);if(_0x104139&&_0x104139[_0x4066('0xe8')]('addHighlight'))return;_0x4066('0xdc')==_0x4d1157['type']&&(_0x15f10d[_0x4066('0xac')](_0x29dbf9)&&!_0x15f10d[_0x4066('0xab')](_0x29dbf9)&&(_0x29dbf9[_0x4066('0x2e')]||_0x367fab['isAtEnd']?_0x252bcc&&_0x252bcc[_0x4066('0x5f')]==_0x29dbf9||(_0x252bcc=_0x29dbf9,_0x1d31a3(_0x4d1157[_0x4066('0x8b')]),_0x8e6bf4=!0x0):_0x596567=_0x596567||_0x4d1157[_0x4066('0x8b')]));}function _0x1d31a3(_0x4d5127){const _0x26ed96=_0x1b4f54['mapper']['toViewPosition'](_0x4d5127),_0x343191=_0x1b4f54['writer'][_0x4066('0xce')](_0x4066('0xb4'),{'class':'ck-suggestion-preview-marker-'+_0x25ef8c});_0x1b4f54['writer'][_0x4066('0x4d')](_0x26ed96,_0x343191),_0x1b4f54['mapper'][_0x4066('0x11a')](_0x343191,_0x243bb2[_0x4066('0x3e')]);}_0x8108dd||_0x8e6bf4||!_0x596567||_0x1d31a3(_0x596567);};}export class RestoreRevisionCommand extends _0x5dfb1c{constructor(_0x2e9701){super(_0x2e9701);const _0x319504=_0x2e9701[_0x4066('0xb2')][_0x4066('0xea')](d);this[_0x4066('0x86')]=!0x1,this['listenTo'](_0x319504,_0x4066('0x65'),()=>this['refresh']()),this[_0x4066('0xfe')](_0x319504,_0x4066('0x108'),()=>this[_0x4066('0x92')]());}['execute'](){const _0x5839a9=this['editor'],_0xb6b6fd=_0x5839a9[_0x4066('0xb2')][_0x4066('0xea')](d),_0x28e0d6=_0xb6b6fd[_0x4066('0x4b')]?_0xb6b6fd['diff']['newRevisionId']:null;_0x5839a9[_0x4066('0x12')][_0x4066('0xea')]('revisionHistory')[_0x4066('0x52')](_0x28e0d6);}[_0x4066('0x92')](){const {isReady:_0x359bc7,isEnabled:_0x56664c}=this[_0x4066('0x112')]['plugins'][_0x4066('0xea')](d);this[_0x4066('0x11c')]=_0x359bc7&&_0x56664c;}}export class ShowChangeCommand extends _0x5dfb1c{constructor(_0x19e842,{direction:_0x3588a4}){super(_0x19e842);const _0x1801f9=_0x19e842[_0x4066('0xb2')][_0x4066('0xea')](d);this[_0x4066('0x86')]=!0x1,this[_0x4066('0xc1')]='forward'===_0x3588a4?0x1:-0x1,this[_0x4066('0xfe')](_0x1801f9,'change:isReady',()=>this[_0x4066('0x92')]()),this[_0x4066('0xfe')](_0x1801f9,'change:isEnabled',()=>this[_0x4066('0x92')]()),this[_0x4066('0xfe')](_0x1801f9,'change:activeChange',()=>this[_0x4066('0x92')]());}[_0x4066('0x85')](){const _0x1d8787=this['editor'],_0x49f0ff=_0x1d8787[_0x4066('0xb2')]['get'](d),{isNavigationMode:_0x25c10e,currentChangeNumber:_0x461335}=_0x49f0ff;let _0x39d577;if(_0x49f0ff[_0x4066('0x94')]=_0x25c10e?_0x49f0ff[_0x4066('0xb6')][_0x4066('0xc3')][_0x4066('0xea')](_0x461335+this[_0x4066('0xc1')]):_0x49f0ff['diff'][_0x4066('0xc3')][_0x4066('0xb8')],_0x49f0ff[_0x4066('0x94')][_0x4066('0x5a')][_0x4066('0x89')])_0x39d577=_0x1d8787['editing'][_0x4066('0x7d')][_0x4066('0xa8')](_0x49f0ff[_0x4066('0x94')][_0x4066('0x119')]);else{const _0xd261fb=_0x1d8787[_0x4066('0xaf')]['markers'][_0x4066('0xea')](_0x4066('0x36')+_0x49f0ff[_0x4066('0x94')]['id']);_0x39d577=_0x198c25(_0x1d8787[_0x4066('0x19')],_0xd261fb);}_0x102840({'target':_0x39d577,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2153e8,currentChangeNumber:_0x1b8ab3,numberOfChanges:_0x568f94,isReady:_0x129aa7,isEnabled:_0xd36a46}=this[_0x4066('0x112')]['plugins'][_0x4066('0xea')](d);this['isEnabled']=!!(_0xd36a46&&_0x129aa7&&_0x568f94)&&(!_0x2153e8||(0x1===this[_0x4066('0xc1')]?_0x1b8ab3<_0x568f94-0x1:_0x1b8ab3>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ca5=['action','isVisible','items','map','bind','listView','source','class','locale','button','extendTemplate','set','ck-on','isReady','first','children','function','buttonView','name','panelPosition','Show\x20more\x20items','threeVerticalDots','bindTemplate','Name\x20this\x20revision','ck-revision-history-sidebar__revision__actions','isEnabled','listenTo','Restore\x20this\x20revision','_action','change:isActionsDropdownOpen','isActionsDropdownOpen','stopPropagation'];(function(_0x258dc0,_0x5ca5e2){const _0x30ca9d=function(_0x21a3a3){while(--_0x21a3a3){_0x258dc0['push'](_0x258dc0['shift']());}};_0x30ca9d(++_0x5ca5e2);}(_0x5ca5,0x101));const _0x30ca=function(_0x258dc0,_0x5ca5e2){_0x258dc0=_0x258dc0-0x0;let _0x30ca9d=_0x5ca5[_0x258dc0];return _0x30ca9d;};import{Collection as _0x4e5e8f}from'ckeditor5/src/utils';import{icons as _0x31daf4}from'ckeditor5/src/core';import{Model as _0x4e4347,addListToDropdown as _0x2091a3,createDropdown as _0x369607}from'ckeditor5/src/ui';import{getTranslation as _0xc82a9b}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x44df91,_0x48bbed){const _0x3a273c=_0x44df91[_0x30ca('0x15')],_0x29a750=_0x44df91[_0x30ca('0x7')],_0x1352fe=_0x369607(_0x29a750);_0x1352fe[_0x30ca('0x12')]='sw';const _0x157592=function(_0x28171d,_0x3e19f8){const _0x3f47b7=function(_0x57d8b1,_0x1e2eac){const _0x27faa0=_0x57d8b1['locale'],_0x23b987={'Compare\x20against\x20selected':_0xc82a9b(_0x27faa0,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0xc82a9b(_0x27faa0,_0x30ca('0x16')),'Restore\x20this\x20revision':_0xc82a9b(_0x27faa0,_0x30ca('0x1a'))};return _0x1e2eac[_0x30ca('0x2')](_0x29438c=>{const _0x18b8a4=_0x23b987[_0x29438c[_0x30ca('0x11')]];return _0x18b8a4&&_0x18b8a4!==_0x29438c[_0x30ca('0x11')]&&(_0x29438c[_0x30ca('0x11')]=_0x18b8a4),_0x29438c;});}(_0x28171d,_0x3e19f8),_0x5d0011=new _0x4e5e8f();for(const _0x3d553e of _0x3f47b7){const _0x576d44={'type':_0x30ca('0x8'),'model':new _0x4e4347({'label':_0x3d553e[_0x30ca('0x11')],'class':_0x3d553e[_0x30ca('0x6')],'withText':!0x0,'_action':_0x3d553e[_0x30ca('0x1f')]})};_0x576d44['model'][_0x30ca('0x3')](_0x30ca('0x18'))['to'](_0x28171d,_0x30ca('0x1d'),_0x5d48eb=>'function'!=typeof _0x3d553e[_0x30ca('0x18')]||(!_0x5d48eb||_0x3d553e[_0x30ca('0x18')](_0x28171d))),_0x5d0011['add'](_0x576d44);}return _0x5d0011;}(_0x44df91,_0x48bbed);return _0x44df91[_0x30ca('0x3')](_0x30ca('0x1d'))['to'](_0x1352fe,'isOpen'),_0x1352fe[_0x30ca('0x10')][_0x30ca('0xa')]({'label':_0xc82a9b(_0x29a750,_0x30ca('0x13')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x31daf4[_0x30ca('0x14')]}),_0x1352fe[_0x30ca('0x9')]({'attributes':{'class':[_0x30ca('0x17'),_0x3a273c['if'](_0x30ca('0x1d'),_0x30ca('0xb'))]},'on':{'click':_0x3a273c['to'](_0x4ff3da=>_0x4ff3da[_0x30ca('0x1e')]())}}),_0x1352fe['on']('execute',_0x21ca0a=>{_0x44df91[_0x30ca('0xc')]&&_0x30ca('0xf')==typeof _0x21ca0a[_0x30ca('0x5')]['_action']&&_0x21ca0a[_0x30ca('0x5')]['_action'](_0x44df91);}),_0x2091a3(_0x1352fe,_0x157592),_0x1352fe[_0x30ca('0x19')](_0x44df91,_0x30ca('0x1c'),(_0x48614b,_0x3de00d,_0x35697c)=>{if(_0x35697c)for(const _0x4813d3 of _0x1352fe[_0x30ca('0x4')][_0x30ca('0x1')]){const _0x24dd1d=_0x4813d3[_0x30ca('0xe')][_0x30ca('0xd')],_0x1f4132=_0x48bbed['find'](_0x704a4f=>_0x704a4f[_0x30ca('0x1f')]===_0x24dd1d[_0x30ca('0x1b')])['isVisible'];_0x4813d3[_0x30ca('0x0')]=void 0x0===_0x1f4132||_0x1f4132(_0x44df91);}}),_0x1352fe;}
23
+ const _0x49d6=['locale','bindTemplate','listView','find','name','isOpen','buttonView','extendTemplate','isEnabled','Restore\x20this\x20revision','isVisible','action','stopPropagation','threeVerticalDots','Show\x20more\x20items','bind','_action','first','function','execute','class','ck-on','ck-revision-history-sidebar__revision__actions','listenTo','map','source','add','isActionsDropdownOpen','set','isReady','children','button'];(function(_0x1ca99f,_0x49d6f6){const _0x1a5e1f=function(_0x3375ed){while(--_0x3375ed){_0x1ca99f['push'](_0x1ca99f['shift']());}};_0x1a5e1f(++_0x49d6f6);}(_0x49d6,0xdc));const _0x1a5e=function(_0x1ca99f,_0x49d6f6){_0x1ca99f=_0x1ca99f-0x0;let _0x1a5e1f=_0x49d6[_0x1ca99f];return _0x1a5e1f;};import{Collection as _0x5d2dd5}from'ckeditor5/src/utils';import{icons as _0x4f6091}from'ckeditor5/src/core';import{Model as _0x3e3370,addListToDropdown as _0x51fd5b,createDropdown as _0xa97841}from'ckeditor5/src/ui';import{getTranslation as _0x5bb825}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0xb44a5,_0x286058){const _0x4d565b=_0xb44a5[_0x1a5e('0x5')],_0x395c63=_0xb44a5['locale'],_0x5636d0=_0xa97841(_0x395c63);_0x5636d0['panelPosition']='sw';const _0x1708d7=function(_0x2c01f7,_0x1b80b3){const _0x1a0c89=function(_0x38fd65,_0x34c28b){const _0x17b952=_0x38fd65[_0x1a5e('0x4')],_0x44bd4e={'Compare\x20against\x20selected':_0x5bb825(_0x17b952,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x5bb825(_0x17b952,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x5bb825(_0x17b952,_0x1a5e('0xd'))};return _0x34c28b[_0x1a5e('0x1c')](_0x5d65fe=>{const _0x298e2b=_0x44bd4e[_0x5d65fe[_0x1a5e('0x8')]];return _0x298e2b&&_0x298e2b!==_0x5d65fe['name']&&(_0x5d65fe[_0x1a5e('0x8')]=_0x298e2b),_0x5d65fe;});}(_0x2c01f7,_0x1b80b3),_0x7564a4=new _0x5d2dd5();for(const _0x137fc7 of _0x1a0c89){const _0x12a48d={'type':_0x1a5e('0x3'),'model':new _0x3e3370({'label':_0x137fc7[_0x1a5e('0x8')],'class':_0x137fc7[_0x1a5e('0x18')],'withText':!0x0,'_action':_0x137fc7['action']})};_0x12a48d['model']['bind'](_0x1a5e('0xc'))['to'](_0x2c01f7,_0x1a5e('0x1f'),_0x5165c7=>_0x1a5e('0x16')!=typeof _0x137fc7[_0x1a5e('0xc')]||(!_0x5165c7||_0x137fc7[_0x1a5e('0xc')](_0x2c01f7))),_0x7564a4[_0x1a5e('0x1e')](_0x12a48d);}return _0x7564a4;}(_0xb44a5,_0x286058);return _0xb44a5[_0x1a5e('0x13')](_0x1a5e('0x1f'))['to'](_0x5636d0,_0x1a5e('0x9')),_0x5636d0[_0x1a5e('0xa')][_0x1a5e('0x0')]({'label':_0x5bb825(_0x395c63,_0x1a5e('0x12')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4f6091[_0x1a5e('0x11')]}),_0x5636d0[_0x1a5e('0xb')]({'attributes':{'class':[_0x1a5e('0x1a'),_0x4d565b['if'](_0x1a5e('0x1f'),_0x1a5e('0x19'))]},'on':{'click':_0x4d565b['to'](_0x58a919=>_0x58a919[_0x1a5e('0x10')]())}}),_0x5636d0['on'](_0x1a5e('0x17'),_0xa5b793=>{_0xb44a5[_0x1a5e('0x1')]&&_0x1a5e('0x16')==typeof _0xa5b793[_0x1a5e('0x1d')][_0x1a5e('0x14')]&&_0xa5b793[_0x1a5e('0x1d')][_0x1a5e('0x14')](_0xb44a5);}),_0x51fd5b(_0x5636d0,_0x1708d7),_0x5636d0[_0x1a5e('0x1b')](_0xb44a5,'change:isActionsDropdownOpen',(_0x446954,_0x14f9d0,_0x50b628)=>{if(_0x50b628)for(const _0x25918b of _0x5636d0[_0x1a5e('0x6')]['items']){const _0x276071=_0x25918b[_0x1a5e('0x2')][_0x1a5e('0x15')],_0x33b38f=_0x286058[_0x1a5e('0x7')](_0x3e00d1=>_0x3e00d1[_0x1a5e('0xf')]===_0x276071[_0x1a5e('0x14')])[_0x1a5e('0xe')];_0x25918b['isVisible']=void 0x0===_0x33b38f||_0x33b38f(_0xb44a5);}}),_0x5636d0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4993=['ck-revision-history-sidebar__revision-author__name','set','Revision\x20creator','ck-revision-history-sidebar__revision-author','name','push','0\x200\x2011\x2010'];(function(_0x359f2b,_0x49930a){const _0x12b37e=function(_0x5f2fd5){while(--_0x5f2fd5){_0x359f2b['push'](_0x359f2b['shift']());}};_0x12b37e(++_0x49930a);}(_0x4993,0x72));const _0x12b3=function(_0x359f2b,_0x49930a){_0x359f2b=_0x359f2b-0x0;let _0x12b37e=_0x4993[_0x359f2b];return _0x12b37e;};import{View as _0x1b38c9,IconView as _0x48671e}from'ckeditor5/src/ui';import{getTranslation as _0x7c95ab}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x133f74 from'../../../theme/icons/user.svg';export default class ti extends _0x1b38c9{constructor(_0x5caede,_0x45c705,_0x24a2a4){super(_0x5caede);const _0x47c380=new _0x48671e();_0x47c380[_0x12b3('0x6')]({'content':_0x133f74,'viewBox':_0x12b3('0x4')});const _0x1ae216=['ck',_0x12b3('0x1')];_0x24a2a4&&_0x1ae216[_0x12b3('0x3')]('ck-revision-history-sidebar__revision-author_creator');const _0x2e4302=[{'tag':'span','attributes':{'class':['ck',_0x12b3('0x5')],'title':_0x7c95ab(_0x5caede,_0x24a2a4?_0x12b3('0x0'):'Revision\x20author')},'children':[_0x47c380,_0x45c705[_0x12b3('0x2')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1ae216},'children':_0x2e4302});}}
23
+ const _0x57f7=['ck-revision-history-sidebar__revision-author','Revision\x20author','ck-revision-history-sidebar__revision-author_creator','set','Revision\x20creator','ck-revision-history-sidebar__revision-author__name','push','0\x200\x2011\x2010','setTemplate','name'];(function(_0x4e11ff,_0x57f75f){const _0x1d39da=function(_0x1c12f7){while(--_0x1c12f7){_0x4e11ff['push'](_0x4e11ff['shift']());}};_0x1d39da(++_0x57f75f);}(_0x57f7,0x1ac));const _0x1d39=function(_0x4e11ff,_0x57f75f){_0x4e11ff=_0x4e11ff-0x0;let _0x1d39da=_0x57f7[_0x4e11ff];return _0x1d39da;};import{View as _0x242807,IconView as _0x59b14d}from'ckeditor5/src/ui';import{getTranslation as _0x383dc4}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x267fd5 from'../../../theme/icons/user.svg';export default class ti extends _0x242807{constructor(_0x384331,_0x1d770e,_0x3c9c41){super(_0x384331);const _0x8225c4=new _0x59b14d();_0x8225c4[_0x1d39('0x5')]({'content':_0x267fd5,'viewBox':_0x1d39('0x9')});const _0x3b9929=['ck',_0x1d39('0x2')];_0x3c9c41&&_0x3b9929[_0x1d39('0x8')](_0x1d39('0x4'));const _0x2c931d=[{'tag':'span','attributes':{'class':['ck',_0x1d39('0x7')],'title':_0x383dc4(_0x384331,_0x3c9c41?_0x1d39('0x6'):_0x1d39('0x3'))},'children':[_0x8225c4,_0x1d770e[_0x1d39('0x1')]]}];this[_0x1d39('0x0')]({'tag':'li','attributes':{'class':_0x3b9929},'children':_0x2c931d});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x10cc=['span','set','extendTemplate'];(function(_0x4baa0d,_0x10cce5){var _0x355690=function(_0xa8760e){while(--_0xa8760e){_0x4baa0d['push'](_0x4baa0d['shift']());}};_0x355690(++_0x10cce5);}(_0x10cc,0x1a2));var _0x3556=function(_0x4baa0d,_0x10cce5){_0x4baa0d=_0x4baa0d-0x0;var _0x355690=_0x10cc[_0x4baa0d];return _0x355690;};import{LabeledFieldView as _0xfcefa2}from'ckeditor5/src/ui';import{getTranslation as _0x2c63b7}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0xfcefa2{constructor(_0x52dbbc,_0x2f5e73){super(_0x52dbbc,_0x2f5e73),this[_0x3556('0x0')]({'label':_0x2c63b7(_0x52dbbc,'Revision\x20name')}),this[_0x3556('0x1')]({'tag':_0x3556('0x2'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x1f96=['Revision\x20name','extendTemplate','set'];(function(_0x1697bd,_0x1f9668){var _0xeb245e=function(_0x402bd6){while(--_0x402bd6){_0x1697bd['push'](_0x1697bd['shift']());}};_0xeb245e(++_0x1f9668);}(_0x1f96,0xc2));var _0xeb24=function(_0x1697bd,_0x1f9668){_0x1697bd=_0x1697bd-0x0;var _0xeb245e=_0x1f96[_0x1697bd];return _0xeb245e;};import{LabeledFieldView as _0x2da163}from'ckeditor5/src/ui';import{getTranslation as _0x3d6ac9}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x2da163{constructor(_0xeaebb4,_0x5b9944){super(_0xeaebb4,_0x5b9944),this[_0xeb24('0x0')]({'label':_0x3d6ac9(_0xeaebb4,_0xeb24('0x1'))}),this[_0xeb24('0x2')]({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x58d8=['ck-revision-history-sidebar__revision','authors','length','createdAt','element','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','220','unshift','from','ck-reset','creator','render','uiLanguage','ck-revision-history-sidebar__revision__controls-wrapper','unhighlight','_createdAtFormatted','placeholder','change','fire','set','_revision','name','fieldView','.ck-thread__remove-confirm','ck-disabled','closest','filter','revisionActionsView','div','highlight','value','isSelected','setName','extendTemplate','ck-revision-history-sidebar__revision_selected','bind','srcElement','ck-revision-history-sidebar__revision-wrapper','isActionsDropdownOpen','select','isEnabled','isHighlighted','isConfirm','map','revisionNameView','isReady','setTemplate','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision-authors','listenTo'];(function(_0x95521,_0x58d8b6){const _0x3bd168=function(_0x18c9bf){while(--_0x18c9bf){_0x95521['push'](_0x95521['shift']());}};_0x3bd168(++_0x58d8b6);}(_0x58d8,0x66));const _0x3bd1=function(_0x95521,_0x58d8b6){_0x95521=_0x95521-0x0;let _0x3bd168=_0x58d8[_0x95521];return _0x3bd168;};import{View as _0x1e2bfd,createLabeledInputText as _0x4308b0}from'ckeditor5/src/ui';import{ConfirmMixin as _0x972798}from'ckeditor5-collaboration/src/collaboration-core';import _0x37fba8 from'./revisionnameview';import _0x4b000a from'./revisionauthorview';import{dateToPrettyFormat as _0x1bb1e2}from'./utils';import{createActionsDropdownView as _0x22b78f}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x972798(_0x1e2bfd){constructor(_0xd30490,_0x3bec34,_0x3a4697){super(_0xd30490);const _0x48a5ba=this['bindTemplate'],_0x2507e0=function(_0x2d0db1,_0x614725){const _0x5c06cd=Array[_0x3bd1('0x6')](_0x614725[_0x3bd1('0x31')])[_0x3bd1('0x18')](_0x327f1b=>_0x327f1b!=_0x614725['creator']);return _0x614725[_0x3bd1('0x8')]&&_0x5c06cd[_0x3bd1('0x5')](_0x614725['creator']),_0x5c06cd[_0x3bd1('0x29')](_0x3cff55=>new _0x4b000a(_0x2d0db1,_0x3cff55,_0x3cff55==_0x614725[_0x3bd1('0x8')]));}(_0xd30490,_0x3bec34);this['id']=_0x3bec34['id'],this[_0x3bd1('0x12')]=_0x3bec34,this[_0x3bd1('0x21')](_0x3bd1('0x13'),_0x3bd1('0x1'))['to'](_0x3bec34),this[_0x3bd1('0x21')](_0x3bd1('0xd'))['to'](this,'createdAt',_0x512cc0=>_0x512cc0?_0x1bb1e2(_0xd30490[_0x3bd1('0xa')],_0x512cc0):void 0x0),this[_0x3bd1('0x11')](_0x3bd1('0x1d'),!0x1),this[_0x3bd1('0x11')](_0x3bd1('0x27'),!0x1),this['set'](_0x3bd1('0x24'),!0x1),this[_0x3bd1('0x11')](_0x3bd1('0x2b'),!0x1),this[_0x3bd1('0x11')](_0x3bd1('0x26'),!0x1),this[_0x3bd1('0x2a')]=new _0x37fba8(_0xd30490,_0x4308b0),this[_0x3bd1('0x2a')][_0x3bd1('0x14')][_0x3bd1('0x1f')]({'attributes':{'maxlength':_0x3bd1('0x4')}}),this[_0x3bd1('0x2a')][_0x3bd1('0x14')]['bind'](_0x3bd1('0x1c'),_0x3bd1('0xe'))['to'](this,_0x3bd1('0x13'),_0x3bd1('0xd')),this[_0x3bd1('0x2a')][_0x3bd1('0x21')](_0x3bd1('0x26'))['to'](this,_0x3bd1('0x1d'),this,'isEnabled',(_0x501b3d,_0x2e57d6)=>_0x501b3d&&_0x2e57d6),this[_0x3bd1('0x19')]=_0x3a4697&&_0x3a4697[_0x3bd1('0x0')]?_0x22b78f(this,_0x3a4697):'',this[_0x3bd1('0x19')]&&this[_0x3bd1('0x19')][_0x3bd1('0x21')](_0x3bd1('0x26'))['to'](this),this[_0x3bd1('0x2c')]({'tag':'div','attributes':{'class':['ck',_0x3bd1('0x7'),_0x3bd1('0x23'),_0x48a5ba['if'](_0x3bd1('0x28'),_0x3bd1('0x3'))]},'children':[{'tag':_0x3bd1('0x1a'),'attributes':{'class':['ck',_0x3bd1('0x7'),_0x3bd1('0x30'),_0x48a5ba['if'](_0x3bd1('0x26'),_0x3bd1('0x16'),_0x4e5844=>!_0x4e5844),_0x48a5ba['if'](_0x3bd1('0x1d'),_0x3bd1('0x20')),_0x48a5ba['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x48a5ba['if']('isActionsDropdownOpen',_0x3bd1('0x2d'))]},'children':[this[_0x3bd1('0x2a')],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x48a5ba['to'](_0x3bd1('0xd'))}]},{'tag':_0x3bd1('0x1a'),'attributes':{'class':['ck',_0x3bd1('0xb')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x3bd1('0x2e')]},'children':_0x2507e0}]},this[_0x3bd1('0x19')]],'on':{'click':_0x48a5ba['to'](_0x37e749=>{_0x37e749[_0x3bd1('0x22')][_0x3bd1('0x17')](_0x3bd1('0x15'))||this['isReady']&&this[_0x3bd1('0x26')]&&this[_0x3bd1('0x10')](_0x3bd1('0x25'),{'id':this['id']});})}}]});}[_0x3bd1('0x9')](){super[_0x3bd1('0x9')]();const _0x234afb=this[_0x3bd1('0x2a')][_0x3bd1('0x14')][_0x3bd1('0x2')];this[_0x3bd1('0x2f')](_0x234afb,_0x3bd1('0xf'),()=>{this[_0x3bd1('0x10')](_0x3bd1('0x1e'),{'id':this['id'],'name':_0x234afb['value']});});}[_0x3bd1('0x25')](){this[_0x3bd1('0x1d')]=!0x0;}['deselect'](){this['isSelected']=!0x1;}[_0x3bd1('0x1b')](){this['isHighlighted']=!0x0;}[_0x3bd1('0xc')](){this[_0x3bd1('0x27')]=!0x1;}}
23
+ const _0xefab=['bind','_revision','unshift','ck-revision-history-sidebar__revision-wrapper','_createdAtFormatted','deselect','ck-reset','value','closest','isSelected','ck-revision-history-sidebar__revision_selected','setTemplate','revisionNameView','listenTo','fire','select','ck-revision-history-sidebar__revision__controls-wrapper','unhighlight','ck-revision-history-sidebar__revision_highlighted','ck-revision-history-sidebar__revision-authors','length','from','ck-disabled','isActionsDropdownOpen','bindTemplate','isEnabled','revisionActionsView','div','.ck-thread__remove-confirm','isReady','change','ck-revision-history-sidebar__revision__date','placeholder','creator','ck-revision-history-sidebar__revision','isHighlighted','createdAt','filter','fieldView','isConfirm','srcElement','span','name','ck-revision-history-sidebar__actions_dropdown_open','authors','extendTemplate','render','set','220','ck-revision-history-sidebar__revision-wrapper_confirmation_visible'];(function(_0x5b4faf,_0xefab81){const _0x5c3777=function(_0x47808a){while(--_0x47808a){_0x5b4faf['push'](_0x5b4faf['shift']());}};_0x5c3777(++_0xefab81);}(_0xefab,0x1e3));const _0x5c37=function(_0x5b4faf,_0xefab81){_0x5b4faf=_0x5b4faf-0x0;let _0x5c3777=_0xefab[_0x5b4faf];return _0x5c3777;};import{View as _0x4f4949,createLabeledInputText as _0x435020}from'ckeditor5/src/ui';import{ConfirmMixin as _0x7c22f3}from'ckeditor5-collaboration/src/collaboration-core';import _0x13e67b from'./revisionnameview';import _0xd52089 from'./revisionauthorview';import{dateToPrettyFormat as _0x14b107}from'./utils';import{createActionsDropdownView as _0x49af97}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x7c22f3(_0x4f4949){constructor(_0x3f746a,_0x468484,_0x435408){super(_0x3f746a);const _0x5a572e=this[_0x5c37('0x29')],_0x20e795=function(_0x56f3da,_0x397bec){const _0x58df73=Array[_0x5c37('0x26')](_0x397bec[_0x5c37('0xb')])[_0x5c37('0x4')](_0xda684a=>_0xda684a!=_0x397bec[_0x5c37('0x0')]);return _0x397bec[_0x5c37('0x0')]&&_0x58df73[_0x5c37('0x13')](_0x397bec[_0x5c37('0x0')]),_0x58df73['map'](_0x332a62=>new _0xd52089(_0x56f3da,_0x332a62,_0x332a62==_0x397bec[_0x5c37('0x0')]));}(_0x3f746a,_0x468484);this['id']=_0x468484['id'],this[_0x5c37('0x12')]=_0x468484,this[_0x5c37('0x11')](_0x5c37('0x9'),_0x5c37('0x3'))['to'](_0x468484),this['bind'](_0x5c37('0x15'))['to'](this,_0x5c37('0x3'),_0x372541=>_0x372541?_0x14b107(_0x3f746a['uiLanguage'],_0x372541):void 0x0),this[_0x5c37('0xe')]('isSelected',!0x1),this[_0x5c37('0xe')](_0x5c37('0x2'),!0x1),this[_0x5c37('0xe')](_0x5c37('0x28'),!0x1),this[_0x5c37('0xe')]('isReady',!0x1),this[_0x5c37('0xe')](_0x5c37('0x2a'),!0x1),this[_0x5c37('0x1d')]=new _0x13e67b(_0x3f746a,_0x435020),this['revisionNameView'][_0x5c37('0x5')][_0x5c37('0xc')]({'attributes':{'maxlength':_0x5c37('0xf')}}),this[_0x5c37('0x1d')]['fieldView']['bind'](_0x5c37('0x18'),_0x5c37('0x31'))['to'](this,_0x5c37('0x9'),'_createdAtFormatted'),this[_0x5c37('0x1d')][_0x5c37('0x11')]('isEnabled')['to'](this,_0x5c37('0x1a'),this,_0x5c37('0x2a'),(_0x18032c,_0x190ee0)=>_0x18032c&&_0x190ee0),this[_0x5c37('0x2b')]=_0x435408&&_0x435408[_0x5c37('0x25')]?_0x49af97(this,_0x435408):'',this[_0x5c37('0x2b')]&&this['revisionActionsView'][_0x5c37('0x11')](_0x5c37('0x2a'))['to'](this),this[_0x5c37('0x1c')]({'tag':_0x5c37('0x2c'),'attributes':{'class':['ck',_0x5c37('0x17'),_0x5c37('0x14'),_0x5a572e['if'](_0x5c37('0x6'),_0x5c37('0x10'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x5c37('0x17'),_0x5c37('0x1'),_0x5a572e['if']('isEnabled',_0x5c37('0x27'),_0x22126e=>!_0x22126e),_0x5a572e['if'](_0x5c37('0x1a'),_0x5c37('0x1b')),_0x5a572e['if'](_0x5c37('0x2'),_0x5c37('0x23')),_0x5a572e['if'](_0x5c37('0x28'),_0x5c37('0xa'))]},'children':[this[_0x5c37('0x1d')],{'tag':_0x5c37('0x8'),'attributes':{'class':['ck',_0x5c37('0x30')]},'children':[{'text':_0x5a572e['to']('_createdAtFormatted')}]},{'tag':_0x5c37('0x2c'),'attributes':{'class':['ck',_0x5c37('0x21')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x5c37('0x24')]},'children':_0x20e795}]},this[_0x5c37('0x2b')]],'on':{'click':_0x5a572e['to'](_0x38c744=>{_0x38c744[_0x5c37('0x7')][_0x5c37('0x19')](_0x5c37('0x2d'))||this[_0x5c37('0x2e')]&&this[_0x5c37('0x2a')]&&this['fire']('select',{'id':this['id']});})}}]});}[_0x5c37('0xd')](){super[_0x5c37('0xd')]();const _0x3a7ef3=this[_0x5c37('0x1d')]['fieldView']['element'];this[_0x5c37('0x1e')](_0x3a7ef3,_0x5c37('0x2f'),()=>{this[_0x5c37('0x1f')]('setName',{'id':this['id'],'name':_0x3a7ef3[_0x5c37('0x18')]});});}[_0x5c37('0x20')](){this[_0x5c37('0x1a')]=!0x0;}[_0x5c37('0x16')](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}[_0x5c37('0x22')](){this[_0x5c37('0x2')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11f9=['button','ck-revision-history-sidebar__subrevision-collapser','bindTemplate','ck-hidden','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser__inner','click','set','isVisible','true','span','toggle'];(function(_0x54ff64,_0x11f971){const _0xd7c52e=function(_0x101c19){while(--_0x101c19){_0x54ff64['push'](_0x54ff64['shift']());}};_0xd7c52e(++_0x11f971);}(_0x11f9,0x1c9));const _0xd7c5=function(_0x54ff64,_0x11f971){_0x54ff64=_0x54ff64-0x0;let _0xd7c52e=_0x11f9[_0x54ff64];return _0xd7c52e;};import{View as _0x436b2b}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x436b2b{constructor(_0x17caa9){super(_0x17caa9);const _0x5c67d6=this[_0xd7c5('0x1')];this[_0xd7c5('0x6')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0xd7c5('0x9'),'attributes':{'class':['ck',_0xd7c5('0x0'),_0x5c67d6['if'](_0xd7c5('0x7'),_0xd7c5('0x2'),_0x179065=>!_0x179065),_0x5c67d6['if']('_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0xd7c5('0xb'),'aria-pressed':_0x5c67d6['to']('_isCollapsed',_0x28072f=>_0x28072f?'false':_0xd7c5('0x8'))},'children':[{'tag':_0xd7c5('0x9'),'attributes':{'class':['ck',_0xd7c5('0x4')]}}],'on':{'click':_0x5c67d6['to'](_0xd7c5('0x5'))}});}[_0xd7c5('0xa')](){this[_0xd7c5('0x3')]=!this[_0xd7c5('0x3')];}}
23
+ const _0x4464=['false','set','isVisible','click','ck-hidden','_isCollapsed','toggle','ck-revision-history-sidebar__subrevision-collapser__inner','span','bindTemplate','setTemplate'];(function(_0x4dca89,_0x44644f){const _0x2be326=function(_0x4d2cfc){while(--_0x4d2cfc){_0x4dca89['push'](_0x4dca89['shift']());}};_0x2be326(++_0x44644f);}(_0x4464,0x1ab));const _0x2be3=function(_0x4dca89,_0x44644f){_0x4dca89=_0x4dca89-0x0;let _0x2be326=_0x4464[_0x4dca89];return _0x2be326;};import{View as _0x5c8ea1}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x5c8ea1{constructor(_0x2be749){super(_0x2be749);const _0x3de5b1=this[_0x2be3('0x0')];this[_0x2be3('0x3')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x2be3('0x1')]({'tag':_0x2be3('0xa'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x3de5b1['if'](_0x2be3('0x4'),_0x2be3('0x6'),_0xd05973=>!_0xd05973),_0x3de5b1['if'](_0x2be3('0x7'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':'button','aria-pressed':_0x3de5b1['to'](_0x2be3('0x7'),_0x13b110=>_0x13b110?_0x2be3('0x2'):'true')},'children':[{'tag':_0x2be3('0xa'),'attributes':{'class':['ck',_0x2be3('0x9')]}}],'on':{'click':_0x3de5b1['to'](_0x2be3('0x5'))}});}[_0x2be3('0x8')](){this[_0x2be3('0x7')]=!this[_0x2be3('0x7')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46ee=['creator','createdAt','bind','deselect','setTemplate','ck-revision-history-sidebar__revision_selected','bindTemplate','div','ck-revision-history-sidebar__revision-authors','span','_createdAtFormatted','ck-revision-history-sidebar__revision__date','uiLanguage','isSelected','ck-reset','select','set'];(function(_0x516373,_0x46eeca){const _0x3d8f45=function(_0x316f04){while(--_0x316f04){_0x516373['push'](_0x516373['shift']());}};_0x3d8f45(++_0x46eeca);}(_0x46ee,0x1ba));const _0x3d8f=function(_0x516373,_0x46eeca){_0x516373=_0x516373-0x0;let _0x3d8f45=_0x46ee[_0x516373];return _0x3d8f45;};import{View as _0x2fbef0}from'ckeditor5/src/ui';import _0x3a5bdb from'./revisionauthorview';import{dateToPrettyFormat as _0x254608}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x2fbef0{constructor(_0x46fb75,_0x1ecfb6,_0x2e0b49){super(_0x46fb75);const _0x3045cf=this[_0x3d8f('0x6')];this['id']=_0x1ecfb6['id'],this['bind'](_0x3d8f('0x1'))['to'](_0x1ecfb6),this[_0x3d8f('0x10')](_0x3d8f('0xd'),!0x1),this[_0x3d8f('0x2')]('_createdAtFormatted')['to'](this,_0x3d8f('0x1'),_0x3d5cf0=>_0x3d5cf0?_0x254608(_0x46fb75[_0x3d8f('0xc')],_0x3d5cf0):void 0x0),this['_parentRevisionId']=_0x2e0b49,this[_0x3d8f('0x4')]({'tag':_0x3d8f('0x7'),'attributes':{'class':['ck',_0x3d8f('0xe'),'ck-revision-history-sidebar__revision','ck-revision-history-sidebar__subrevision',_0x3045cf['if'](_0x3d8f('0xd'),_0x3d8f('0x5'))]},'children':[{'tag':_0x3d8f('0x9'),'attributes':{'class':['ck',_0x3d8f('0xb')]},'children':[{'text':_0x3045cf['to'](_0x3d8f('0xa'))}]},{'tag':'ul','attributes':{'class':['ck',_0x3d8f('0x8')]},'children':[new _0x3a5bdb(_0x46fb75,_0x1ecfb6[_0x3d8f('0x0')],!0x0)]}],'on':{'click':_0x3045cf['to'](this[_0x3d8f('0xf')][_0x3d8f('0x2')](this))}});}[_0x3d8f('0xf')](){this['isSelected']=!0x0,this['fire'](_0x3d8f('0xf'),{'parentId':this['_parentRevisionId']});}[_0x3d8f('0x3')](){this[_0x3d8f('0xd')]=!0x1;}}
23
+ const _0x3e86=['uiLanguage','_parentRevisionId','_createdAtFormatted','select','isSelected','ck-reset','creator','fire','ck-revision-history-sidebar__revision','bindTemplate','ck-revision-history-sidebar__revision-authors','span','ck-revision-history-sidebar__revision__date','createdAt','bind','ck-revision-history-sidebar__subrevision'];(function(_0x2b778a,_0x3e86fb){const _0x50a49b=function(_0x19daa1){while(--_0x19daa1){_0x2b778a['push'](_0x2b778a['shift']());}};_0x50a49b(++_0x3e86fb);}(_0x3e86,0x11a));const _0x50a4=function(_0x2b778a,_0x3e86fb){_0x2b778a=_0x2b778a-0x0;let _0x50a49b=_0x3e86[_0x2b778a];return _0x50a49b;};import{View as _0x41dee5}from'ckeditor5/src/ui';import _0x360763 from'./revisionauthorview';import{dateToPrettyFormat as _0x58e8cc}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x41dee5{constructor(_0x5aad8c,_0x3c0cf2,_0x8fb2d7){super(_0x5aad8c);const _0xffd8da=this[_0x50a4('0xf')];this['id']=_0x3c0cf2['id'],this[_0x50a4('0x4')](_0x50a4('0x3'))['to'](_0x3c0cf2),this['set'](_0x50a4('0xa'),!0x1),this[_0x50a4('0x4')](_0x50a4('0x8'))['to'](this,_0x50a4('0x3'),_0x526cd9=>_0x526cd9?_0x58e8cc(_0x5aad8c[_0x50a4('0x6')],_0x526cd9):void 0x0),this['_parentRevisionId']=_0x8fb2d7,this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x50a4('0xb'),_0x50a4('0xe'),_0x50a4('0x5'),_0xffd8da['if'](_0x50a4('0xa'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x50a4('0x1'),'attributes':{'class':['ck',_0x50a4('0x2')]},'children':[{'text':_0xffd8da['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x50a4('0x0')]},'children':[new _0x360763(_0x5aad8c,_0x3c0cf2[_0x50a4('0xc')],!0x0)]}],'on':{'click':_0xffd8da['to'](this[_0x50a4('0x9')]['bind'](this))}});}['select'](){this[_0x50a4('0xa')]=!0x0,this[_0x50a4('0xd')](_0x50a4('0x9'),{'parentId':this[_0x50a4('0x7')]});}['deselect'](){this['isSelected']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x31df=['numeric','toLocaleTimeString','toLocaleDateString'];(function(_0x38db43,_0x31dfda){var _0x81f444=function(_0x53eb3f){while(--_0x53eb3f){_0x38db43['push'](_0x38db43['shift']());}};_0x81f444(++_0x31dfda);}(_0x31df,0x153));var _0x81f4=function(_0x38db43,_0x31dfda){_0x38db43=_0x38db43-0x0;var _0x81f444=_0x31df[_0x38db43];return _0x81f444;};export function dateToPrettyFormat(_0xc2874f,_0x420782){return _0x420782[_0x81f4('0x2')](_0xc2874f,{'month':'long','day':_0x81f4('0x0')})+',\x20'+_0x420782[_0x81f4('0x1')](_0xc2874f,{'hour':'numeric','minute':_0x81f4('0x0')});}
23
+ var _0x2f76=['numeric','toLocaleDateString','long'];(function(_0x229460,_0x2f762a){var _0x380048=function(_0x5708a7){while(--_0x5708a7){_0x229460['push'](_0x229460['shift']());}};_0x380048(++_0x2f762a);}(_0x2f76,0xf5));var _0x3800=function(_0x229460,_0x2f762a){_0x229460=_0x229460-0x0;var _0x380048=_0x2f76[_0x229460];return _0x380048;};export function dateToPrettyFormat(_0x46097e,_0x40014e){return _0x40014e[_0x3800('0x2')](_0x46097e,{'month':_0x3800('0x0'),'day':_0x3800('0x1')})+',\x20'+_0x40014e['toLocaleTimeString'](_0x46097e,{'hour':_0x3800('0x1'),'minute':_0x3800('0x1')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x453b=['220','arrowleft','set','arrowdown','tab','trim','locale','listenTo','ck-revision-history-save-revision-form','_createButton','cancelButtonView','input','_focusables','check','ck-button-save','revisionName','revisionNameInputView','label','_createRevisionNameInput','revisionNameInputValue','form','submit','_focusCycler','focusTracker','add','forEach','Cancel','stopPropagation','value','execute','render','element','fieldView','arrowright','keystrokes','cancel','Name\x20of\x20the\x20revision\x20(optional)','focus','setTemplate','arrowup','saveButtonView'];(function(_0x23bb60,_0x453b42){const _0xc5abb3=function(_0x4e5a8e){while(--_0x4e5a8e){_0x23bb60['push'](_0x23bb60['shift']());}};_0xc5abb3(++_0x453b42);}(_0x453b,0xfa));const _0xc5ab=function(_0x23bb60,_0x453b42){_0x23bb60=_0x23bb60-0x0;let _0xc5abb3=_0x453b[_0x23bb60];return _0xc5abb3;};import{icons as _0x4992da}from'ckeditor5/src/core';import{ButtonView as _0x3d3615,FocusCycler as _0x40b2c8,LabeledFieldView as _0x45eac7,View as _0x36aca2,ViewCollection as _0x22108d,createLabeledInputText as _0x85fc04,injectCssTransitionDisabler as _0x261c04,submitHandler as _0x534242}from'ckeditor5/src/ui';import{FocusTracker as _0x5ad574,KeystrokeHandler as _0x4f7b18}from'ckeditor5/src/utils';import{getTranslation as _0x40f7db}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x36aca2{constructor(_0x4ac2f5){super(_0x4ac2f5),this[_0xc5ab('0x13')]=new _0x5ad574(),this[_0xc5ab('0x1e')]=new _0x4f7b18(),this['set'](_0xc5ab('0xf'),''),this[_0xc5ab('0xc')]=this[_0xc5ab('0xe')](),this[_0xc5ab('0x24')]=this[_0xc5ab('0x5')](_0x40f7db(_0x4ac2f5,'Save'),_0x4992da[_0xc5ab('0x9')],_0xc5ab('0xa')),this[_0xc5ab('0x24')]['type']=_0xc5ab('0x11'),this[_0xc5ab('0x6')]=this[_0xc5ab('0x5')](_0x40f7db(_0x4ac2f5,_0xc5ab('0x16')),_0x4992da[_0xc5ab('0x1f')],'ck-button-cancel',_0xc5ab('0x1f')),this[_0xc5ab('0x8')]=new _0x22108d(),this[_0xc5ab('0x12')]=new _0x40b2c8({'focusables':this[_0xc5ab('0x8')],'focusTracker':this[_0xc5ab('0x13')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0xc5ab('0x0')}}),this[_0xc5ab('0x22')]({'tag':_0xc5ab('0x10'),'attributes':{'class':['ck',_0xc5ab('0x4'),'ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0xc5ab('0x24')],this['cancelButtonView']]}),_0x261c04(this);}[_0xc5ab('0x1a')](){super[_0xc5ab('0x1a')](),_0x534242({'view':this}),([this[_0xc5ab('0xc')],this[_0xc5ab('0x24')],this[_0xc5ab('0x6')]][_0xc5ab('0x15')](_0x3a06d6=>{this['_focusables']['add'](_0x3a06d6),this[_0xc5ab('0x13')][_0xc5ab('0x14')](_0x3a06d6[_0xc5ab('0x1b')]);}),this[_0xc5ab('0x1e')][_0xc5ab('0x3')](this['element']));const _0x51339c=_0x12eb8a=>_0x12eb8a[_0xc5ab('0x17')]();this[_0xc5ab('0x1e')][_0xc5ab('0x27')](_0xc5ab('0x1d'),_0x51339c),this['keystrokes'][_0xc5ab('0x27')](_0xc5ab('0x26'),_0x51339c),this[_0xc5ab('0x1e')]['set'](_0xc5ab('0x23'),_0x51339c),this[_0xc5ab('0x1e')][_0xc5ab('0x27')](_0xc5ab('0x28'),_0x51339c);}[_0xc5ab('0x21')](){this[_0xc5ab('0x12')]['focusFirst']();}get['revisionName'](){return this[_0xc5ab('0xc')][_0xc5ab('0x1c')][_0xc5ab('0x1b')][_0xc5ab('0x18')]['trim']();}set[_0xc5ab('0xb')](_0x5e6168){this[_0xc5ab('0xc')][_0xc5ab('0x1c')][_0xc5ab('0x1b')][_0xc5ab('0x18')]=_0x5e6168[_0xc5ab('0x1')]();}['reset'](){this[_0xc5ab('0xc')][_0xc5ab('0x1c')][_0xc5ab('0x1b')]['value']='';}[_0xc5ab('0xe')](){const _0xdae54b=new _0x45eac7(this[_0xc5ab('0x2')],_0x85fc04),_0x167428=_0xdae54b[_0xc5ab('0x1c')];return _0x167428['extendTemplate']({'attributes':{'maxlength':_0xc5ab('0x25')}}),_0xdae54b[_0xc5ab('0xd')]=_0x40f7db(this[_0xc5ab('0x2')],_0xc5ab('0x20')),_0x167428['on'](_0xc5ab('0x7'),()=>{this['revisionNameInputValue']=_0x167428['element'][_0xc5ab('0x18')][_0xc5ab('0x1')]();}),_0xdae54b;}[_0xc5ab('0x5')](_0x6b84d0,_0x249ddf,_0x146796,_0x30b590){const _0x5456e2=new _0x3d3615(this[_0xc5ab('0x2')]);return _0x5456e2[_0xc5ab('0x27')]({'label':_0x6b84d0,'icon':_0x249ddf,'tooltip':!0x0}),_0x5456e2['extendTemplate']({'attributes':{'class':_0x146796}}),_0x30b590&&_0x5456e2['delegate'](_0xc5ab('0x19'))['to'](this,_0x30b590),_0x5456e2;}}
23
+ const _0x1839=['arrowleft','focusFirst','_createButton','element','revisionName','arrowright','execute','focusTracker','tab','reset','extendTemplate','input','Name\x20of\x20the\x20revision\x20(optional)','saveButtonView','arrowup','listenTo','add','value','trim','Cancel','keystrokes','label','fieldView','Save','set','ck-button-cancel','revisionNameInputValue','revisionNameInputView','type','stopPropagation','_createRevisionNameInput','ck-button-save','check','submit','forEach','220','_focusables','delegate','cancel','render','locale','_focusCycler','cancelButtonView','focus'];(function(_0x3cf33a,_0x1839f5){const _0xf303ad=function(_0x6eecba){while(--_0x6eecba){_0x3cf33a['push'](_0x3cf33a['shift']());}};_0xf303ad(++_0x1839f5);}(_0x1839,0x164));const _0xf303=function(_0x3cf33a,_0x1839f5){_0x3cf33a=_0x3cf33a-0x0;let _0xf303ad=_0x1839[_0x3cf33a];return _0xf303ad;};import{icons as _0x28ae92}from'ckeditor5/src/core';import{ButtonView as _0x519131,FocusCycler as _0x2220eb,LabeledFieldView as _0x2abcdc,View as _0x358d14,ViewCollection as _0x293ef0,createLabeledInputText as _0x159a99,injectCssTransitionDisabler as _0x394567,submitHandler as _0x5e9d1b}from'ckeditor5/src/ui';import{FocusTracker as _0x5b51ad,KeystrokeHandler as _0x52fe28}from'ckeditor5/src/utils';import{getTranslation as _0x4aef02}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x358d14{constructor(_0x41c831){super(_0x41c831),this[_0xf303('0x3')]=new _0x5b51ad(),this[_0xf303('0x10')]=new _0x52fe28(),this['set'](_0xf303('0x16'),''),this[_0xf303('0x17')]=this[_0xf303('0x1a')](),this['saveButtonView']=this[_0xf303('0x2a')](_0x4aef02(_0x41c831,_0xf303('0x13')),_0x28ae92[_0xf303('0x1c')],_0xf303('0x1b')),this[_0xf303('0x9')][_0xf303('0x18')]=_0xf303('0x1d'),this[_0xf303('0x26')]=this['_createButton'](_0x4aef02(_0x41c831,_0xf303('0xf')),_0x28ae92['cancel'],_0xf303('0x15'),_0xf303('0x22')),this[_0xf303('0x20')]=new _0x293ef0(),this[_0xf303('0x25')]=new _0x2220eb({'focusables':this[_0xf303('0x20')],'focusTracker':this[_0xf303('0x3')],'keystrokeHandler':this[_0xf303('0x10')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0xf303('0x4')}}),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this[_0xf303('0x17')],this['saveButtonView'],this['cancelButtonView']]}),_0x394567(this);}['render'](){super[_0xf303('0x23')](),_0x5e9d1b({'view':this}),([this[_0xf303('0x17')],this[_0xf303('0x9')],this[_0xf303('0x26')]][_0xf303('0x1e')](_0xa71ec7=>{this['_focusables'][_0xf303('0xc')](_0xa71ec7),this['focusTracker']['add'](_0xa71ec7[_0xf303('0x2b')]);}),this[_0xf303('0x10')][_0xf303('0xb')](this[_0xf303('0x2b')]));const _0x3e5da1=_0x1cfd90=>_0x1cfd90[_0xf303('0x19')]();this[_0xf303('0x10')][_0xf303('0x14')](_0xf303('0x1'),_0x3e5da1),this[_0xf303('0x10')][_0xf303('0x14')](_0xf303('0x28'),_0x3e5da1),this[_0xf303('0x10')]['set'](_0xf303('0xa'),_0x3e5da1),this['keystrokes']['set']('arrowdown',_0x3e5da1);}[_0xf303('0x27')](){this['_focusCycler'][_0xf303('0x29')]();}get['revisionName'](){return this[_0xf303('0x17')][_0xf303('0x12')][_0xf303('0x2b')][_0xf303('0xd')][_0xf303('0xe')]();}set[_0xf303('0x0')](_0xf6ba9c){this[_0xf303('0x17')]['fieldView'][_0xf303('0x2b')][_0xf303('0xd')]=_0xf6ba9c[_0xf303('0xe')]();}[_0xf303('0x5')](){this[_0xf303('0x17')][_0xf303('0x12')][_0xf303('0x2b')][_0xf303('0xd')]='';}[_0xf303('0x1a')](){const _0xe9586d=new _0x2abcdc(this['locale'],_0x159a99),_0x24e674=_0xe9586d['fieldView'];return _0x24e674['extendTemplate']({'attributes':{'maxlength':_0xf303('0x1f')}}),_0xe9586d[_0xf303('0x11')]=_0x4aef02(this[_0xf303('0x24')],_0xf303('0x8')),_0x24e674['on'](_0xf303('0x7'),()=>{this[_0xf303('0x16')]=_0x24e674[_0xf303('0x2b')][_0xf303('0xd')][_0xf303('0xe')]();}),_0xe9586d;}[_0xf303('0x2a')](_0x4140d1,_0x43e6fd,_0x58bf39,_0x17c3b9){const _0x399a11=new _0x519131(this[_0xf303('0x24')]);return _0x399a11[_0xf303('0x14')]({'label':_0x4140d1,'icon':_0x43e6fd,'tooltip':!0x0}),_0x399a11[_0xf303('0x6')]({'attributes':{'class':_0x58bf39}}),_0x17c3b9&&_0x399a11[_0xf303('0x21')](_0xf303('0x2'))['to'](this,_0x17c3b9),_0x399a11;}}