@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231127.0 → 0.0.0-nightly-20231128.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 _0xb233=['change:isReady','createAttributeElement','name','restoreRevision','attribute:vid','element:pre','isContent','_processTape','roots','forceDisabled','revisionHistory','_findChangeIdFromDomTarget','isEnabled','error','editingDowncast','children','bottom','revision-comment:','splice','getRevisionRootsAttributes','concat','end','revision','stop','POSITIVE_INFINITY','markerToHighlight','upcast','_initInteractions','getWalker','highest','index','parent','dataToMarker','diffData','includes','createPositionFromPath','writer','attachChange','get','getRootNames','_changeIdToChange','high','editor','ck-revision-history-root-remove','isAdded','refresh','target','nextSibling','insertion','_refreshStartEndIndex','element','has','adapter','view','revisionHistoryAttachChange','removeMarker','addHighlight','createRevision','isBefore','remove','abs','_removeUnsupportedChanges','repository','deletion','findIndex','data-change-id','hasAttribute','from','isLimit','span','_appendChild','dataDowncast','revision-viewer','bind','split','numberOfChanges','rootName','showStack','_sortAndFilterDiffChanges','revisionHistoryLabel','then','sort','low','_getViewForChange','isAtEnd','previousPosition','addMarker:revision','_activeViewTarget','elementEnd','isAttached','mousedown','markerNameToElements','isBlock','execute','checkAttribute','isOnRoot','side','oldRevisionId','_markMismatchedRemovedTags','isAfter','getAttributes','merge','viewItem','_setDistance','currentChangeNumber','change','done','enqueueChange','isInline','activeView','isReady','suggestion:','revision-end','_removeRevisionMarkers','_removeMissingPairs','config','isEqual','indexOf','downcastDispatcher','getChild','deletions','addMarker:revision-suggestion:deletion','ck-suggestion-preview-marker-','markerRange','commands','isAddSuggestion','range','elementToAttribute','revision-suggestion:','all','_joinTapes','comment','_step','test','removeMarker:revision','change:activeChange','forEach','revision-suggestion','_makeModelFromViewString','shift','_cleanMarkers','insertions','left','offsetSize','toModel','getDomRoot','markerToData','addRevision','startIndex','for','toData','getRoot','text','consumable','ck-suggestion-marker--active','pluginName','catch','isRemoved','ck-revision-history-root-add','ck-suggestion-marker','data-revision-','loadRevisionData','hasClass','affectsData','code','removeClass','userId','consume','mapper','diff','change:isEnabled','getRevision','restoreRevisionCallback','useFillerType','clear','filter','init','slice','createRangeIn','data','find','changes','WidgetToolbarRepository','getClientRects','add','nodeAfter','pairId','document','_makeTape','nextPosition','elementStart','observeMarkers','getItems','requires','_changeView','string','_balloon','attributes','isRemoveSuggestion','markersEnd','_makeModelFromTape','conversion','change:activeView','revision:','getAttribute','_getChangeFromId','start','_setChanges','_getDiff','editing','vid_end','_getViewObj','unbindElementFromMarkerName','ck-editor__editable__overlay','createRange','item','maxOffset','showNextChange','wrap','_setConversion','addMarker:revision-suggestion:insertion','_threeWayMerge','attributesAfter','map','processor','authors','uiElement','suggestion','markersStart','_markMarkers','listenTo','selection','detachRoot','modelRange','addClass','compare','unshift','destroy','isNavigationMode','isObject','bindElementToMarker','isAtStart','endIndex','RevisionsRepository','_fixObsoleteTags','_data','markers','_cleanUp','_getRevisionsRange','domConverter','schema','type','-new','locale','set','length','getIndex','activeChange','isCollapsed','object','vid','markerName','softBreak','insert','marked','startsWith','ck-suggestion-marker-','plugins','push','reconvertMarker','vid_start','delete','level','model','next','_markSuggestions','createUIElement','_markInsertions','_update','ck-revision-history-root--active','isIncorrect','keys','isSuggestion','getCustomProperty','distance','setAttribute','toViewPosition','first','changeId','domEvent','RevisionViewer'];(function(_0x2d735b,_0xb23323){const _0x234b76=function(_0x1d74ad){while(--_0x1d74ad){_0x2d735b['push'](_0x2d735b['shift']());}};_0x234b76(++_0xb23323);}(_0xb233,0x123));const _0x234b=function(_0x2d735b,_0xb23323){_0x2d735b=_0x2d735b-0x0;let _0x234b76=_0xb233[_0x2d735b];return _0x234b76;};import{Plugin as _0x2e0c8d,Command as _0x349962}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x46ecbd}from'ckeditor5/src/utils';import{ContextualBalloon as _0x28bc6c}from'ckeditor5/src/ui';import{DocumentFragment as _0x5611e1,Element as _0x30e2cd,Text as _0x5bcfa1,ViewDocumentFragment as _0x561f79,ViewText as _0x524404,ViewElement as _0x68b40a,ViewContainerElement as _0x4b94fa,ViewAttributeElement as _0x19e4b2,ViewEmptyElement as _0x21a0e2,ViewRawElement as _0x50f20a,ViewUIElement as _0x922b7a}from'ckeditor5/src/engine';import{Users as _0x2cd8b7,getMarkerDomElement as _0x1d3894}from'ckeditor5-collaboration/src/collaboration-core';import _0x3d3978 from'./ui/revisionviewer/changedetailsview';import _0x2055b9 from'./revisionsrepository';import _0x5656c0 from'./changeitem';import{default as _0x2e9d2b}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x28b9ba}from'lodash-es';const tt={'c':_0x4b94fa,'a':_0x19e4b2,'e':_0x21a0e2,'r':_0x50f20a,'u':_0x922b7a};export default class d extends _0x2e0c8d{static get[_0x234b('0x9b')](){return _0x234b('0x122');}static get[_0x234b('0xc1')](){return[_0x2cd8b7,_0x28bc6c,_0x2055b9];}constructor(_0xb3e726){super(_0xb3e726),this[_0x234b('0x3e')]=this[_0x234b('0x2a')][_0x234b('0x10b')]['get'](_0x234b('0xf3')),this[_0x234b('0xfe')](_0x234b('0x101'),null),this['set'](_0x234b('0x6d'),null),this[_0x234b('0x57')]=null,this[_0x234b('0xfe')](_0x234b('0xa9'),null),this[_0x234b('0xfe')](_0x234b('0x6e'),!0x1),this['set']('isEnabled',!0x0),this['on'](_0x234b('0xaa'),(_0x5607d1,_0x4cee4b,_0xf7bc3a)=>{this[_0x234b('0x101')]=null,this['activeView']=null,this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0x69')](_0x2e2649=>{for(const _0x40ebe8 of this['editor'][_0x234b('0xd1')][_0x234b('0x35')]['document'][_0x234b('0x8')])_0xf7bc3a?_0x2e2649[_0x234b('0xa5')](_0x234b('0xd5'),_0x40ebe8):_0x2e2649[_0x234b('0xea')]('ck-editor__editable__overlay',_0x40ebe8);});}),this[_0x234b('0x49')](_0x234b('0xee'))['to'](this,_0x234b('0x101'),_0x287940=>null!==_0x287940),this[_0x234b('0x49')](_0x234b('0x68'))['to'](this,'isReady',this,'diff',this,_0x234b('0x101'),(_0x5ef7db,_0x460153,_0x22b7d0)=>_0x5ef7db&&_0x22b7d0?_0x460153[_0x234b('0xb5')]['getIndex'](_0x22b7d0):0x0),this['bind'](_0x234b('0x4b'))['to'](this,_0x234b('0x6e'),this,_0x234b('0xa9'),(_0x396516,_0x245fc4)=>_0x396516?_0x245fc4['changes'][_0x234b('0xff')]:0x0),this[_0x234b('0xc2')]=null,this[_0x234b('0x28')]=new Map(),this[_0x234b('0x34')]=null,this['_balloon']=this[_0x234b('0x2a')]['plugins'][_0x234b('0x26')](_0x28bc6c);}[_0x234b('0xb0')](){const _0x12b66a=this[_0x234b('0x2a')],_0x266ce9=new ShowChangeCommand(_0x12b66a,{'direction':'backward'}),_0x1681c5=new ShowChangeCommand(_0x12b66a,{'direction':'forward'});(_0x12b66a[_0x234b('0x7c')]['add']('showPreviousChange',_0x266ce9),_0x12b66a[_0x234b('0x7c')]['add'](_0x234b('0xd9'),_0x1681c5),_0x12b66a[_0x234b('0x7c')][_0x234b('0xb8')](_0x234b('0x3'),new RestoreRevisionCommand(_0x12b66a)),this['on']('change:numberOfChanges',()=>{_0x266ce9[_0x234b('0x2d')](),_0x1681c5[_0x234b('0x2d')]();}),this[_0x234b('0xdb')](),this[_0x234b('0x1b')](),_0x12b66a['enableReadOnlyMode']('revision-viewer'),_0x12b66a['plugins'][_0x234b('0x33')]('WidgetToolbarRepository'))&&_0x12b66a['plugins'][_0x234b('0x26')](_0x234b('0xb6'))[_0x234b('0x9')](_0x234b('0x48'));}async['getRevisionData'](_0x1f2d0f){await this[_0x234b('0xa1')](_0x1f2d0f);const _0x35ca52={};for(const _0x32ec75 in _0x1f2d0f['diffData']){if(_0x1f2d0f[_0x234b('0x21')][_0x32ec75][_0x234b('0x25')]&&!_0x1f2d0f[_0x234b('0x21')][_0x32ec75]['attachChange'][_0x234b('0x59')])continue;const _0x41afd3=this[_0x234b('0x71')](JSON['parse'](_0x1f2d0f[_0x234b('0x21')][_0x32ec75][_0x234b('0x8d')])),_0xb1d4ee=this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')]['document'],_0x1f1b13=new _0x561f79(_0xb1d4ee,_0x41afd3['map'](_0x966b73=>this['_getViewObj'](_0x966b73)));this[_0x234b('0x2a')][_0x234b('0xb3')][_0x234b('0xe0')]['useFillerType'](_0x234b('0x108')),_0x35ca52[_0x32ec75]=this[_0x234b('0x2a')][_0x234b('0xb3')][_0x234b('0xe0')][_0x234b('0x96')](_0x1f1b13),this[_0x234b('0x2a')][_0x234b('0xb3')][_0x234b('0xe0')][_0x234b('0xad')]('default');}return _0x35ca52;}async[_0x234b('0x13')](_0x506e0d){await this[_0x234b('0xa1')](_0x506e0d);const _0x5c544a={};for(const _0x26eaf0 in _0x506e0d[_0x234b('0x21')])_0x506e0d[_0x234b('0x21')][_0x26eaf0][_0x234b('0x25')]&&!_0x506e0d[_0x234b('0x21')][_0x26eaf0]['attachChange']['isAttached']||(_0x5c544a[_0x26eaf0]=_0x506e0d['diffData'][_0x26eaf0][_0x234b('0xde')]||{});return _0x5c544a;}['_removeRevisionMarkers'](_0x44112e){return(_0x44112e=_0x44112e[_0x234b('0xaf')](_0x9a799=>!_0x9a799[_0x234b('0x2')]||'revision-start'!==_0x9a799[_0x234b('0x2')]&&_0x234b('0x70')!==_0x9a799[_0x234b('0x2')]))['forEach'](_0x479954=>{_0x234b('0xc3')!=typeof _0x479954&&(_0x479954['children']=this[_0x234b('0x71')](_0x479954['children']),_0x479954[_0x234b('0xc5')]=_0x479954[_0x234b('0xc5')][_0x234b('0xaf')](_0x2f8867=>!_0x2f8867[0x0][_0x234b('0x109')](_0x234b('0xa0'))));}),_0x44112e;}async[_0x234b('0xeb')](_0x24e4c1,_0x568d39,_0x1e4855=!0x1){if(!this[_0x234b('0xc')])return;const _0x27d9be=this[_0x234b('0xa9')],_0x4c73e8=this[_0x234b('0x3e')],_0x13fd60=_0x234b('0xc3')==typeof _0x24e4c1?_0x4c73e8[_0x234b('0xab')](_0x24e4c1):_0x24e4c1,_0xf4576f=_0x234b('0xc3')==typeof _0x568d39?_0x4c73e8[_0x234b('0xab')](_0x568d39):_0x568d39,_0x51ae97=_0x13fd60['id'],_0x54d2d3=_0xf4576f?_0xf4576f['id']:null;if(!_0x1e4855&&this[_0x234b('0xa9')]&&this[_0x234b('0xa9')]['newRevisionId']===_0x51ae97&&this[_0x234b('0xa9')][_0x234b('0x61')]===_0x54d2d3)return Promise['resolve']();this['isReady']=!0x1,this[_0x234b('0x6d')]=null,this[_0x234b('0x101')]=null,this['diff']=new _0x2e9d2b(_0x51ae97,_0x54d2d3);const _0x51cc22=this[_0x234b('0xf8')](_0x13fd60,_0xf4576f,!0x0)[_0x234b('0xdf')](_0x3f8ad4=>this['loadRevisionData'](_0x3f8ad4));return _0x51cc22['push'](new Promise(_0x4146a5=>{setTimeout(_0x4146a5,0x14);})),Promise[_0x234b('0x81')](_0x51cc22)['then'](()=>{if(!this[_0x234b('0xc')])return;this[_0x234b('0xf7')]();const _0x5ac68e=this[_0x234b('0xd0')](_0x51ae97,_0x54d2d3);for(const _0x1de02c of _0x5ac68e[_0x234b('0xb5')])this[_0x234b('0x28')][_0x234b('0xfe')](_0x1de02c['id'],_0x1de02c);this['editor'][_0x234b('0x111')][_0x234b('0x6b')]({'isUndoable':!0x1},_0x52c274=>{for(const _0x1451f8 of this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xbb')][_0x234b('0x27')]())_0x52c274['detachRoot'](_0x1451f8);for(const _0x4ebe66 of Object[_0x234b('0x119')](_0x5ac68e['model'])){const _0x1437ed=_0x52c274['addRoot'](_0x4ebe66);for(const _0x4b50f6 of Object['keys'](_0x5ac68e[_0x234b('0xc5')][_0x4ebe66]))_0x52c274['setAttribute'](_0x4b50f6,_0x5ac68e[_0x234b('0xc5')][_0x4ebe66][_0x4b50f6],_0x1437ed);_0x52c274['insert'](_0x5ac68e[_0x234b('0x111')][_0x4ebe66],_0x1437ed,0x0);}}),this[_0x234b('0xa9')][_0x234b('0xcf')](this[_0x234b('0x4e')](_0x5ac68e[_0x234b('0xb5')])),this[_0x234b('0x6e')]=!0x0;})[_0x234b('0x9c')](_0x102280=>{console[_0x234b('0xd')](_0x102280),this[_0x234b('0xf7')](),_0x27d9be&&(this['diff']=_0x27d9be),this[_0x234b('0x6e')]=!0x0;});}['addRevisionData'](_0x346ece,_0x277c6c){const _0x2a0183=this[_0x234b('0x3e')][_0x234b('0x39')](_0x346ece);return _0x2a0183['on'](_0x234b('0x116'),(_0x407534,_0x3b1492,_0x14b73d)=>_0x277c6c(_0x3b1492,_0x14b73d,_0x2a0183)),this[_0x234b('0x3e')][_0x234b('0x93')](_0x2a0183),_0x2a0183;}[_0x234b('0xa1')](_0x2458a1){if(!_0x2458a1||_0x2458a1['diffData'])return Promise['resolve']();{const _0x221b07=this[_0x234b('0x2a')][_0x234b('0x73')][_0x234b('0x26')]('collaboration.channelId');return this['adapter'][_0x234b('0xab')]({'channelId':_0x221b07,'revisionId':_0x2458a1['id']})[_0x234b('0x50')](_0x59f23b=>{_0x2458a1[_0x234b('0x116')]({'diffData':_0x59f23b['diffData']},!0x0);});}}[_0x234b('0xf7')](){this[_0x234b('0x101')]=null,this['_cleanMarkers'](),this[_0x234b('0xc2')]&&this[_0x234b('0xc2')][_0x234b('0xed')](),this[_0x234b('0xc2')]=null,this['_changeIdToChange'][_0x234b('0xae')](),this[_0x234b('0x2a')]['model'][_0x234b('0x6b')]({'isUndoable':!0x1},_0x466a37=>{for(const _0x4b26d8 of this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xbb')][_0x234b('0x27')]())_0x466a37[_0x234b('0xe8')](_0x4b26d8);});}[_0x234b('0x4e')](_0x1fe1ce){const _0x5b2159=[],_0x5b6cc6=new Map();for(const _0xbf1e2b of this['editor'][_0x234b('0x111')][_0x234b('0xbb')][_0x234b('0x27')]()){const _0x14eaac=this['editor'][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0x91')](_0xbf1e2b);if(!_0x14eaac)continue;const _0x3d2a33=_0x14eaac[_0x234b('0xb7')]()['item'](0x0);_0x3d2a33&&(_0x5b2159[_0x234b('0x10c')](_0xbf1e2b),_0x5b6cc6['set'](_0xbf1e2b,_0x3d2a33));}return _0x5b2159[_0x234b('0x51')]((_0x24cc86,_0x26ede5)=>{const _0x34cadd=_0x5b6cc6[_0x234b('0x26')](_0x24cc86),_0xe8abe2=_0x5b6cc6[_0x234b('0x26')](_0x26ede5);return _0x34cadd['y']-_0xe8abe2['y']||_0x34cadd['x']-_0xe8abe2['x'];}),(_0x1fe1ce=_0x1fe1ce['filter'](_0x2c96c9=>_0x5b2159['includes'](_0x2c96c9[_0x234b('0x4c')])))[_0x234b('0x51')]((_0x3b18d0,_0xd92641)=>_0x5b2159[_0x234b('0x75')](_0x3b18d0[_0x234b('0x4c')])-_0x5b2159['indexOf'](_0xd92641[_0x234b('0x4c')])),_0x1fe1ce;}['_makeTape'](_0x5f9226){const _0x533db1=Array['from'](_0x5f9226[_0x234b('0xf6')])[_0x234b('0xaf')](([_0x5ea261,_0x133e2c])=>_0x5ea261[_0x234b('0x109')]('revision:')&&!_0x133e2c[_0x234b('0x102')]),_0x51b135=Array[_0x234b('0x43')](this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xb2')](_0x5f9226)[_0x234b('0x1c')]({'singleCharacters':!0x0}));if(0x0!=_0x533db1[_0x234b('0xff')])for(const _0x32d7c7 of _0x51b135){const [_0x7f129a,_0x5b6c17]=_0x533db1[0x0],[,_0x339ea8,_0x425fb9]=_0x7f129a[_0x234b('0x4a')](':');if(_0x5b6c17[_0x234b('0x15')][_0x234b('0x74')](_0x32d7c7['nextPosition'])&&_0x533db1[_0x234b('0x8b')](),(_0x32d7c7[_0x234b('0x55')]['isEqual'](_0x5b6c17[_0x234b('0xce')])||_0x32d7c7[_0x234b('0x55')][_0x234b('0x63')](_0x5b6c17[_0x234b('0xce')]))&&(_0x234b('0x30')==_0x339ea8?_0x32d7c7[_0x234b('0x2c')]={'userId':_0x425fb9}:'deletion'==_0x339ea8&&(_0x32d7c7[_0x234b('0x9d')]={'userId':_0x425fb9})),0x0==_0x533db1[_0x234b('0xff')])break;}return _0x51b135;}[_0x234b('0x31')](_0x189763){const _0x4789fc=new Map();for(let _0x4b0aad=0x0;_0x4b0aad<_0x189763[_0x234b('0xff')];_0x4b0aad++)_0x234b('0x98')===_0x189763[_0x4b0aad][_0x234b('0xfb')]?(_0x189763[_0x4b0aad][_0x234b('0xd7')][_0x234b('0x94')]=_0x4b0aad,_0x189763[_0x4b0aad]['item'][_0x234b('0xf2')]=_0x4b0aad):('elementStart'===_0x189763[_0x4b0aad][_0x234b('0xfb')]?_0x189763[_0x4b0aad][_0x234b('0xd7')][_0x234b('0x94')]=_0x4b0aad:_0x234b('0x58')===_0x189763[_0x4b0aad][_0x234b('0xfb')]&&(_0x189763[_0x4b0aad]['item']['endIndex']=_0x4b0aad),_0x4789fc[_0x234b('0xfe')](_0x189763[_0x4b0aad]['id'],_0x4b0aad));for(const _0x4ec4ae of _0x4789fc['values']())_0x234b('0xbe')===_0x189763[_0x4ec4ae][_0x234b('0xfb')]?_0x189763[_0x4ec4ae][_0x234b('0xd7')][_0x234b('0xf2')]=_0x4789fc[_0x234b('0x26')](_0x189763[_0x4ec4ae][_0x234b('0xba')]):_0x234b('0x58')===_0x189763[_0x4ec4ae][_0x234b('0xfb')]&&(_0x189763[_0x4ec4ae][_0x234b('0xd7')][_0x234b('0x94')]=_0x4789fc[_0x234b('0x26')](_0x189763[_0x4ec4ae]['pairId']));}[_0x234b('0x7')](_0x32207c){for(let _0x47c24c=0x0;_0x47c24c<_0x32207c[_0x234b('0xff')];_0x47c24c++){if(_0x234b('0xbe')===_0x32207c[_0x47c24c][_0x234b('0xfb')])_0x32207c[_0x47c24c][_0x234b('0xd7')][_0x234b('0x94')]=_0x47c24c;else{if(_0x234b('0x58')===_0x32207c[_0x47c24c]['type']){_0x32207c[_0x47c24c][_0x234b('0xd7')]['endIndex']=_0x47c24c;const _0x28ad84=_0x32207c[_0x47c24c][_0x234b('0xd7')][_0x234b('0x94')];_0x32207c[_0x28ad84][_0x234b('0xba')]=_0x32207c[_0x47c24c]['id'],_0x32207c[_0x47c24c][_0x234b('0xba')]=_0x32207c[_0x28ad84]['id'];}else _0x32207c[_0x47c24c][_0x234b('0xd7')][_0x234b('0x94')]=_0x47c24c,_0x32207c[_0x47c24c][_0x234b('0xd7')][_0x234b('0xf2')]=_0x47c24c,_0x32207c[_0x47c24c][_0x234b('0xba')]=null;}_0x32207c[_0x47c24c][_0x234b('0xe4')]||(_0x32207c[_0x47c24c][_0x234b('0xe4')]=[],_0x32207c[_0x47c24c][_0x234b('0xc7')]=[]);}}[_0x234b('0x115')](_0x562f78,_0x2e7e73){const _0x572d10=_0x562f78[_0x234b('0xaf')](_0x54fa4a=>!_0x54fa4a['isAdded']);for(let _0x12f0a3=0x0;_0x12f0a3<_0x2e7e73[_0x234b('0xff')];_0x12f0a3++)_0x2e7e73[_0x12f0a3][_0x234b('0x2c')]&&(_0x572d10[_0x12f0a3][_0x234b('0x2c')]=_0x2e7e73[_0x12f0a3]['isAdded']);}['_makeModelFromViewString'](_0x21e7ba){const _0x340d94=JSON['parse'](_0x21e7ba),_0x623bca=this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')],_0xd7aecd=new _0x561f79(_0x623bca,_0x340d94[_0x234b('0xdf')](_0x1f5e98=>this[_0x234b('0xd3')](_0x1f5e98)));return this[_0x234b('0x2a')][_0x234b('0xb3')][_0x234b('0x90')](_0xd7aecd);}['_getViewObj'](_0x170f25){const _0xaaf21e=this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')];if('string'==typeof _0x170f25)return new _0x524404(_0xaaf21e,_0x170f25);{const _0x1bb17a=_0x170f25[_0x234b('0xf')][_0x234b('0xdf')](_0x186c15=>this[_0x234b('0xd3')](_0x186c15));return new(tt[_0x170f25[(_0x234b('0xfb'))]]||_0x68b40a)(_0xaaf21e,_0x170f25[_0x234b('0x2')],_0x170f25[_0x234b('0xc5')],_0x1bb17a);}}['_getDiff'](_0x3754b7,_0x363284=null){const _0x5c7ced=this['repository'][_0x234b('0xab')](_0x3754b7),_0x1c8bad=_0x363284?this[_0x234b('0x3e')][_0x234b('0xab')](_0x363284):null,_0x4e409f=this[_0x234b('0xf8')](_0x5c7ced,_0x1c8bad),_0x2362c5=_0x4e409f[_0x4e409f[_0x234b('0xff')]-0x1],_0xe3b5a2=new Map(),_0x4bdd4f={'model':{},'attributes':{},'changes':[]},_0x46a910=new Set(),_0x588155=new Map();for(let _0x2cd68b=_0x4e409f['length']-0x1;_0x2cd68b>=0x0;_0x2cd68b--){const _0x23bb6b=_0x4e409f[_0x2cd68b];for(const _0x3f63a8 of Object['keys'](_0x23bb6b[_0x234b('0x21')]))if(_0x23bb6b['diffData'][_0x3f63a8]['attachChange']){const _0x40461e=_0x23bb6b[_0x234b('0x21')][_0x3f63a8][_0x234b('0x25')];_0x40461e[_0x234b('0x59')]?(_0x46a910[_0x234b('0xb8')](_0x3f63a8),_0x588155[_0x234b('0x33')](_0x3f63a8)&&_0x588155[_0x234b('0x26')](_0x3f63a8)['userId']==_0x40461e[_0x234b('0xa6')]?_0x588155[_0x234b('0x10f')](_0x3f63a8):_0x588155['set'](_0x3f63a8,_0x40461e)):_0x588155['has'](_0x3f63a8)?(_0x46a910[_0x234b('0x10f')](_0x3f63a8),_0x588155[_0x234b('0x10f')](_0x3f63a8)):(_0x46a910['add'](_0x3f63a8),_0x588155[_0x234b('0xfe')](_0x3f63a8,_0x40461e));}else _0x46a910[_0x234b('0xb8')](_0x3f63a8);}for(const _0x2a4ee9 of _0x46a910){const _0xe4da4f=_0x588155[_0x234b('0x33')](_0x2a4ee9)&&!_0x588155[_0x234b('0x26')](_0x2a4ee9)[_0x234b('0x59')];let _0x5093a7=_0xe4da4f?_0x4e409f[_0x234b('0xff')]-0x1:0x0;const _0x35d14a=_0xe4da4f?-0x1:0x1;for(;_0x4e409f[_0x5093a7];){const _0x32880c=_0x4e409f[_0x5093a7];if(_0x32880c['diffData'][_0x2a4ee9]){const _0x31ea1f=_0xe4da4f?_0x32880c[_0x234b('0x21')][_0x2a4ee9]['attributesBefore']:_0x32880c[_0x234b('0x21')][_0x2a4ee9]['attributesAfter'];_0x4bdd4f['attributes'][_0x2a4ee9]=_0x31ea1f?_0x28b9ba(_0x31ea1f):{};break;}_0x5093a7+=_0x35d14a;}}for(const _0x2bc356 of _0x4e409f){_0x2bc356[_0x234b('0x111')]={};for(const _0x3e359a of _0x2bc356[_0x234b('0xe1')])_0xe3b5a2['set'](_0x3e359a['id'],_0x3e359a);for(const _0x1c55e9 of _0x46a910){const _0x21db5d=_0x2bc356[_0x234b('0x21')][_0x1c55e9]?_0x2bc356['diffData'][_0x1c55e9][_0x234b('0x8d')]:'[]',_0x426650=_0x2bc356[_0x234b('0x21')][_0x1c55e9]?_0x2bc356[_0x234b('0x21')][_0x1c55e9]['deletions']:'[]';_0x2bc356[_0x234b('0x111')][_0x1c55e9]={'insertions':this[_0x234b('0x8a')](_0x21db5d),'deletions':this[_0x234b('0x8a')](_0x426650)};}}for(const _0x258bf2 of _0x46a910){let _0x34b2b2=null,_0x5e0a3d=0x0;const _0x522ded=new Map(Array[_0x234b('0x43')](_0x5c7ced[_0x234b('0x111')][_0x258bf2][_0x234b('0x8d')][_0x234b('0xf6')])['filter'](([_0x76eaec])=>!_0x76eaec[_0x234b('0x109')](_0x234b('0xcb'))));let _0x3dabad=0x0;for(const _0x4b49da of _0x4e409f){const _0x69bafd=this[_0x234b('0xbc')](_0x4b49da['model'][_0x258bf2][_0x234b('0x8d')]);_0x4b49da==_0x5c7ced?(_0x34b2b2=_0x69bafd,_0x5e0a3d=_0x34b2b2[_0x234b('0xff')],_0x34b2b2['forEach'](_0x5519df=>{_0x5519df['id']=_0x3dabad++;}),this[_0x234b('0x7')](_0x34b2b2)):this['_markInsertions'](_0x34b2b2,_0x69bafd);const _0x551a2b=_0x34b2b2[_0x234b('0xaf')](_0x46133d=>!_0x46133d[_0x234b('0x2c')])[_0x234b('0xdf')](_0x42caf0=>_0x42caf0['id']);let _0x3d5577=0x0;const _0x933c40=this['_makeTape'](_0x4b49da[_0x234b('0x111')][_0x258bf2][_0x234b('0x78')]);_0x933c40[_0x234b('0x88')](_0xc58518=>{_0xc58518[_0x234b('0x9d')]?_0xc58518['id']=_0x5e0a3d++:_0xc58518['id']=_0x551a2b[_0x3d5577++];}),this['_processTape'](_0x933c40),this[_0x234b('0x67')](_0x34b2b2,_0x234b('0x2c')),this[_0x234b('0x67')](_0x933c40,'isRemoved'),_0x4b49da==_0x5c7ced&&this[_0x234b('0xe5')](_0x34b2b2,_0x522ded),_0x34b2b2=this[_0x234b('0x82')](_0x34b2b2,_0x933c40),this[_0x234b('0x31')](_0x34b2b2),this[_0x234b('0x67')](_0x34b2b2,_0x234b('0x9d'));}_0x34b2b2=_0x34b2b2[_0x234b('0xaf')](_0x9d902a=>!(_0x9d902a[_0x234b('0x2c')]&&_0x9d902a[_0x234b('0x9d')]));const _0xaf4397=new Map(_0x2362c5['model'][_0x258bf2][_0x234b('0x78')][_0x234b('0xf6')]),_0x44ab19=new Set(_0x522ded[_0x234b('0x119')]());for(const _0x4d059e of _0xaf4397[_0x234b('0x119')]())_0x44ab19[_0x234b('0x10f')](_0x4d059e);this['_markSuggestions'](_0x34b2b2,_0x44ab19),this['_fixObsoleteTags'](_0x34b2b2),_0x34b2b2=this[_0x234b('0x72')](_0x34b2b2),_0x34b2b2=this['_markMismatchedRemovedTags'](_0x34b2b2),_0x34b2b2=this[_0x234b('0x3d')](_0x34b2b2);const {root:_0x34f1b8,changes:_0x181900}=this[_0x234b('0xc8')](_0x34b2b2,_0xe3b5a2,_0x258bf2);_0x4bdd4f[_0x234b('0x111')][_0x258bf2]=_0x34f1b8;const _0x33b5d5=_0x588155[_0x234b('0x26')](_0x258bf2);if(_0x33b5d5){const _0x270677=_0xe3b5a2['get'](_0x33b5d5['userId']),_0x145175=new _0x5656c0({'author':_0x270677,'type':_0x33b5d5['isAttached']?_0x234b('0xb8'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x258bf2});_0x181900[_0x234b('0xec')](_0x145175),_0x4bdd4f[_0x234b('0xc5')][_0x258bf2][_0x234b('0x36')]=_0x145175['id'];}_0x4bdd4f[_0x234b('0xb5')]=_0x4bdd4f['changes'][_0x234b('0x14')](_0x181900);}return _0x4bdd4f;}['_markMarkers'](_0x319c28,_0x29ecc9){for(let _0x574438=0x0;_0x574438<_0x319c28[_0x234b('0xff')];_0x574438++)for(const [_0x93be27,_0x5f5a66]of _0x29ecc9)_0x5f5a66[_0x234b('0xce')][_0x234b('0x74')](_0x319c28[_0x574438][_0x234b('0x55')])&&_0x319c28[_0x574438][_0x234b('0xe4')][_0x234b('0x10c')](_0x93be27),_0x5f5a66[_0x234b('0x15')][_0x234b('0x74')](_0x319c28[_0x574438][_0x234b('0xbd')])&&_0x319c28[_0x574438][_0x234b('0xc7')]['push'](_0x93be27);}[_0x234b('0x82')](_0x12e97d,_0x4c4d82){let _0x593c3a=[],_0x42845f=0x0,_0x3613e4=0x0;for(;_0x42845f<_0x12e97d[_0x234b('0xff')]||_0x3613e4<_0x4c4d82[_0x234b('0xff')];){const _0xefc53f=_0x12e97d[_0x42845f]||{},_0x1b2d16=_0x4c4d82[_0x3613e4]||{};if(_0xefc53f['id']==_0x1b2d16['id'])_0x42845f++,_0x3613e4++,_0x593c3a[_0x234b('0x10c')](_0xefc53f);else{if(_0x1b2d16[_0x234b('0x9d')]&&_0xefc53f['isAdded']){const {commonTape:_0x58de7f,iEnd:_0xad94ac,jEnd:_0x3511f3}=this['_threeWayMerge'](_0x12e97d,_0x42845f,_0x4c4d82,_0x3613e4);_0x593c3a=_0x593c3a[_0x234b('0x14')](_0x58de7f),_0x42845f=_0xad94ac,_0x3613e4=_0x3511f3;}else _0x1b2d16[_0x234b('0x9d')]?(_0x3613e4++,_0x593c3a[_0x234b('0x10c')](_0x1b2d16)):(_0x42845f++,_0x593c3a[_0x234b('0x10c')](_0xefc53f));}}return _0x593c3a;}[_0x234b('0x113')](_0xc2ee8e,_0x3de6d9){const _0x1a4c95=[];for(let _0x38b8c6=0x0;_0x38b8c6<_0xc2ee8e['length'];_0x38b8c6++){for(let _0x3c7d38=0x0;_0x3c7d38<_0xc2ee8e[_0x38b8c6][_0x234b('0xe4')]['length'];_0x3c7d38++){const _0x2ffedc=_0xc2ee8e[_0x38b8c6][_0x234b('0xe4')][_0x3c7d38];if(!_0x3de6d9['has'](_0x2ffedc))continue;const {group:_0x5ae783,type:_0x43b1c4,authorId:_0x53f03b}=_0x993aa7(_0x2ffedc);'revision-suggestion'!=_0x5ae783||_0x234b('0x30')!=_0x43b1c4&&_0x234b('0x3f')!=_0x43b1c4||(_0x1a4c95[_0x234b('0xec')]({'type':_0x43b1c4,'name':_0x2ffedc,'userId':_0x53f03b}),_0xc2ee8e[_0x38b8c6][_0x234b('0xe4')]['splice'](_0x3c7d38,0x1),_0x3c7d38--);}_0x590b03(_0xc2ee8e[_0x38b8c6]);for(let _0x1d613a=0x0;_0x1d613a<_0xc2ee8e[_0x38b8c6][_0x234b('0xc7')]['length'];_0x1d613a++){const _0x1f3035=_0xc2ee8e[_0x38b8c6][_0x234b('0xc7')][_0x1d613a];if(!_0x3de6d9[_0x234b('0x33')](_0x1f3035))continue;const {group:_0x17f723,type:_0x546bee}=_0x993aa7(_0x1f3035);if(_0x234b('0x89')!=_0x17f723||'insertion'!=_0x546bee&&_0x234b('0x3f')!=_0x546bee)continue;_0xc2ee8e[_0x38b8c6][_0x234b('0xc7')]['splice'](_0x1d613a,0x1),_0x1d613a--;const _0x1eca38=_0x1a4c95[_0x234b('0x40')](_0x177674=>_0x177674[_0x234b('0x2')]==_0x1f3035);_0x1eca38>-0x1&&_0x1a4c95['splice'](_0x1eca38,0x1);}}function _0x993aa7(_0x53ea60){const _0x3da905=_0x53ea60[_0x234b('0x4a')](':');return{'group':_0x3da905[0x0],'type':_0x3da905[0x1],'subType':_0x3da905['length']>=0x5?_0x3da905[0x2]:null,'id':_0x3da905[_0x234b('0xff')]<0x5?_0x3da905[0x2]:_0x3da905[0x3],'authorId':_0x3da905[_0x234b('0xff')]<0x5?_0x3da905[0x3]:_0x3da905[0x4],'markerCount':0x6==_0x3da905[_0x234b('0xff')]?_0x3da905[0x5]:null};}function _0x590b03(_0x18856e){for(let _0x2afe1e=0x0;_0x2afe1e<_0x1a4c95[_0x234b('0xff')];_0x2afe1e++){if(_0x18856e[_0x234b('0x2c')]&&_0x234b('0x30')==_0x1a4c95[_0x2afe1e][_0x234b('0xfb')])return _0x18856e[_0x234b('0x7d')]=_0x1a4c95[_0x2afe1e],void delete _0x18856e[_0x234b('0x2c')];if(!_0x18856e['isAdded']&&!_0x18856e['isRemoved']&&_0x234b('0x3f')==_0x1a4c95[_0x2afe1e][_0x234b('0xfb')])return void(_0x18856e['isRemoveSuggestion']=_0x1a4c95[_0x2afe1e]);}}}[_0x234b('0x67')](_0x3206f7,_0x52cd1d){let _0x4dc33e=0x0,_0x433ddb=!0x1;const _0x200b89=new Map();for(const _0x320d14 of _0x3206f7)_0x320d14[_0x52cd1d]?_0x433ddb&&(_0x4dc33e++,_0x433ddb=!0x1):(_0x4dc33e++,_0x433ddb=!0x0),_0x200b89['set'](_0x320d14['id'],_0x4dc33e);for(let _0x283491=0x0;_0x283491<_0x3206f7[_0x234b('0xff')];_0x283491++){if(_0x234b('0x9d')==_0x52cd1d&&_0x3206f7[_0x283491][_0x234b('0x2c')]||'isAdded'==_0x52cd1d&&_0x3206f7[_0x283491][_0x234b('0x9d')])continue;if('text'==_0x3206f7[_0x283491][_0x234b('0xfb')]){_0x3206f7[_0x283491][_0x234b('0x11c')]=0x0;continue;}const _0x3446e3=_0x200b89[_0x234b('0x26')](_0x3206f7[_0x283491][_0x234b('0xba')]),_0x562670=_0x200b89[_0x234b('0x26')](_0x3206f7[_0x283491]['id']);_0x3206f7[_0x283491]['distance']=_0x3446e3-_0x562670;}}[_0x234b('0xf8')](_0x4f46cd,_0x5a94f6,_0x4dfc69=!0x1){const _0x59ddd8=[];let _0x47508d=this[_0x234b('0x3e')][_0x234b('0x100')](_0x4f46cd),_0x2c610f=this[_0x234b('0x3e')][_0x234b('0x100')](_0x5a94f6);for(-0x1==_0x2c610f&&(_0x2c610f=this[_0x234b('0x3e')]['_revisions'][_0x234b('0xff')],_0x4dfc69=!0x1);_0x47508d<_0x2c610f;)_0x59ddd8[_0x234b('0x10c')](this[_0x234b('0x3e')][_0x234b('0xab')](_0x47508d)),_0x47508d++;return _0x4dfc69&&_0x59ddd8[_0x234b('0x10c')](this[_0x234b('0x3e')][_0x234b('0xab')](_0x47508d)),_0x59ddd8;}[_0x234b('0xdd')](_0xdacf50,_0x519c7b,_0x1f51d0,_0x356b7d){const _0x193390=this[_0x234b('0x2a')]['model'][_0x234b('0xfa')];let _0x2903c7=_0x519c7b;for(;_0xdacf50[_0x2903c7]&&_0xdacf50[_0x2903c7][_0x234b('0x2c')];)_0x2903c7++;let _0x3eb93d=_0x356b7d;for(;_0x1f51d0[_0x3eb93d]&&_0x1f51d0[_0x3eb93d][_0x234b('0x9d')];)_0x3eb93d++;_0x21d794(_0xdacf50,_0x519c7b,_0x2903c7),_0x21d794(_0x1f51d0,_0x356b7d,_0x3eb93d);const _0x3332c6=_0x1f51d0[_0x234b('0xb1')](_0x356b7d,_0x3eb93d)['concat'](_0xdacf50[_0x234b('0xb1')](_0x519c7b,_0x2903c7));return _0x3332c6[_0x234b('0x51')]((_0x359bce,_0x426d52)=>_0x359bce[_0x234b('0x60')]!=_0x426d52[_0x234b('0x60')]?_0x359bce['side']-_0x426d52['side']:_0x359bce['level']!=_0x426d52['level']?_0x359bce[_0x234b('0x110')]-_0x426d52['level']:_0x359bce['distance']!=_0x426d52[_0x234b('0x11c')]?_0x426d52[_0x234b('0x11c')]-_0x359bce[_0x234b('0x11c')]:!!_0x359bce[_0x234b('0x2c')]!=!!_0x426d52[_0x234b('0x2c')]?-0x1==_0x359bce[_0x234b('0x60')]||0x0==_0x359bce[_0x234b('0x60')]?_0x359bce['isAdded']?-0x1:0x1:_0x359bce[_0x234b('0x2c')]?0x1:-0x1:_0x359bce[_0x234b('0x1e')]-_0x426d52[_0x234b('0x1e')]),{'commonTape':_0x3332c6,'iEnd':_0x2903c7,'jEnd':_0x3eb93d};function _0x21d794(_0xe7c91e,_0x57bc84,_0x3ef6e7){let _0x568537=-0x1,_0x2e3b6a=Number[_0x234b('0x18')],_0x520cd1=!0x0;for(let _0xf8dc13=_0x57bc84;_0xf8dc13<_0x3ef6e7;_0xf8dc13++)if(_0x193390[_0x234b('0x6c')](_0xe7c91e[_0xf8dc13][_0x234b('0xd7')])||(_0x520cd1=!0x1),_0xe7c91e[_0xf8dc13][_0x234b('0xd7')][_0x234b('0x94')]<_0x57bc84&&(_0x568537=_0xf8dc13),_0xe7c91e[_0xf8dc13][_0x234b('0xd7')]['endIndex']>=_0x3ef6e7){_0x2e3b6a=_0xf8dc13;break;}_0x520cd1&&(_0x568537=_0x3ef6e7-0x1);for(let _0x1b5b51=_0x57bc84;_0x1b5b51<_0x3ef6e7;_0x1b5b51++)_0xe7c91e[_0x1b5b51][_0x234b('0x60')]=_0x1b5b51<=_0x568537?-0x1:_0x1b5b51<_0x2e3b6a?0x0:0x1,_0xe7c91e[_0x1b5b51][_0x234b('0x1e')]=_0x1b5b51;let _0x224ea5=0x0;for(let _0x2bfe64=_0x57bc84;_0x2bfe64<=_0x568537;_0x2bfe64++)0x0==_0xe7c91e[_0x2bfe64][_0x234b('0x11c')]?_0xe7c91e[_0x2bfe64]['level']=_0x224ea5:(_0x224ea5++,_0xe7c91e[_0x2bfe64][_0x234b('0x110')]=_0x224ea5,_0x224ea5++);for(let _0x1695ff=_0x57bc84;_0x1695ff<_0x3ef6e7;_0x1695ff++)0x0==_0xe7c91e[_0x1695ff][_0x234b('0x60')]&&(_0xe7c91e[_0x1695ff][_0x234b('0x110')]=_0x224ea5);_0x224ea5=0x0;for(let _0x34c5fb=_0x3ef6e7-0x1;_0x34c5fb>=_0x2e3b6a;_0x34c5fb--)0x0==_0xe7c91e[_0x34c5fb][_0x234b('0x11c')]?_0xe7c91e[_0x34c5fb][_0x234b('0x110')]=_0x224ea5:(_0x224ea5--,_0xe7c91e[_0x34c5fb][_0x234b('0x110')]=_0x224ea5,_0x224ea5--);}}[_0x234b('0xf4')](_0xff4e62){const _0x359697=new Map(),_0x136e2f=this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xfa')];for(let _0x5ac80e=0x1;_0x5ac80e<_0xff4e62[_0x234b('0xff')];_0x5ac80e++){let _0x5e4586,_0x3db19f,_0x23880e;const _0x499ebd=_0xff4e62[_0x5ac80e],_0x2ea360=_0xff4e62[_0x5ac80e-0x1];if(_0x234b('0x98')==_0x499ebd['type'])continue;if(_0x499ebd[_0x234b('0xfb')]!=_0x2ea360[_0x234b('0xfb')])continue;if(!_0x136e2f['isBlock'](_0x2ea360['item'])||_0x136e2f[_0x234b('0x44')](_0x2ea360[_0x234b('0xd7')]))continue;if(!_0x136e2f[_0x234b('0x5c')](_0x499ebd[_0x234b('0xd7')])||_0x136e2f['isLimit'](_0x499ebd[_0x234b('0xd7')]))continue;if((_0xff4e62[_0x5ac80e][_0x234b('0x2c')]||_0xff4e62[_0x5ac80e]['isAddSuggestion'])&&_0xff4e62[_0x5ac80e-0x1][_0x234b('0x9d')])_0x5e4586=_0xff4e62[_0x5ac80e],_0x3db19f=_0xff4e62[_0x5ac80e-0x1],_0x23880e=_0x5ac80e-0x1;else{if(!_0xff4e62[_0x5ac80e][_0x234b('0x9d')]||!_0xff4e62[_0x5ac80e-0x1][_0x234b('0x2c')]&&!_0xff4e62[_0x5ac80e-0x1]['isAddSuggestion'])continue;_0x5e4586=_0xff4e62[_0x5ac80e-0x1],_0x3db19f=_0xff4e62[_0x5ac80e],_0x23880e=_0x5ac80e;}const _0x3d1476=_0x5e4586[_0x234b('0x110')]==_0x3db19f[_0x234b('0x110')],_0xf5f2d0=Math['abs'](_0x5e4586[_0x234b('0x110')])<Math[_0x234b('0x3c')](_0x3db19f[_0x234b('0x110')])&&0x0==_0x3db19f[_0x234b('0x11c')];(_0x3d1476||_0xf5f2d0)&&(_0x359697[_0x234b('0xfe')](_0x3db19f['id'],_0x5e4586['id']),_0xff4e62[_0x234b('0x12')](_0x23880e,0x1),_0x5ac80e--,_0x5e4586['isAdded']=!0x1);}for(let _0x4cd791=0x0;_0x4cd791<_0xff4e62[_0x234b('0xff')];_0x4cd791++)_0x359697[_0x234b('0x33')](_0xff4e62[_0x4cd791][_0x234b('0xba')])&&(_0xff4e62[_0x4cd791]['pairId']=_0x359697[_0x234b('0x26')](_0xff4e62[_0x4cd791][_0x234b('0xba')]));}['_removeMissingPairs'](_0x4cedea){const _0x330080=new Set(_0x4cedea[_0x234b('0xdf')](_0x1917d9=>_0x1917d9['id']));for(let _0x3bf2c2=0x0;_0x3bf2c2<_0x4cedea['length'];_0x3bf2c2++)_0x330080[_0x234b('0x33')](_0x4cedea[_0x3bf2c2][_0x234b('0xba')])||0x0==_0x4cedea[_0x3bf2c2][_0x234b('0x11c')]||(_0x4cedea[_0x3bf2c2][_0x234b('0x118')]=!0x0);return _0x4cedea[_0x234b('0xaf')](_0x49a1ce=>!_0x49a1ce[_0x234b('0x118')]);}[_0x234b('0x62')](_0x1a2fcf){const _0xb54ae7=new Set();for(let _0x8397a9=0x0;_0x8397a9<_0x1a2fcf[_0x234b('0xff')];_0x8397a9++){if(_0xb54ae7[_0x234b('0x33')](_0x1a2fcf[_0x8397a9]['id'])&&_0x1a2fcf[_0x8397a9]['isRemoved']&&(_0x1a2fcf[_0x8397a9][_0x234b('0x118')]=!0x0),_0x1a2fcf[_0x8397a9][_0x234b('0x118')])continue;if(0x0==_0x1a2fcf[_0x8397a9][_0x234b('0x11c')])continue;if(_0x234b('0xbe')!=_0x1a2fcf[_0x8397a9][_0x234b('0xfb')])continue;if(null==_0x1a2fcf[_0x8397a9][_0x234b('0xba')])continue;let _0x1af4da=_0x8397a9+0x1,_0xb68286=0x0;for(;_0x1a2fcf[_0x1af4da]['id']!=_0x1a2fcf[_0x8397a9][_0x234b('0xba')];)_0x234b('0xbe')==_0x1a2fcf[_0x1af4da]['type']?_0xb68286++:_0x234b('0x58')==_0x1a2fcf[_0x1af4da][_0x234b('0xfb')]&&_0xb68286--,_0x1af4da++;if(0x0!=_0xb68286){if(_0x1a2fcf[_0x8397a9][_0x234b('0x9d')])_0x1a2fcf[_0x8397a9][_0x234b('0x118')]=!0x0;else for(;_0x1af4da!=_0x8397a9;)_0x1a2fcf[_0x1af4da][_0x234b('0x9d')]&&0x0!=_0x1a2fcf[_0x1af4da][_0x234b('0x11c')]&&(_0x1a2fcf[_0x1af4da][_0x234b('0x118')]=!0x0,_0xb54ae7[_0x234b('0xb8')](_0x1a2fcf[_0x1af4da]['pairId'])),_0x1af4da--;}}return _0x1a2fcf[_0x234b('0xaf')](_0x1a3798=>!_0x1a3798[_0x234b('0x118')]);}[_0x234b('0x3d')](_0x1a4342){const _0x352e44=this['editor']['model'][_0x234b('0xfa')];for(let _0xb30fc8=0x0;_0xb30fc8<_0x1a4342[_0x234b('0xff')];_0xb30fc8++){if(!(_0x1a4342[_0xb30fc8]['isAdded']||_0x1a4342[_0xb30fc8]['isAddSuggestion']||_0x1a4342[_0xb30fc8][_0x234b('0x9d')]||_0x1a4342[_0xb30fc8][_0x234b('0xc6')]))continue;if(0x0==_0x1a4342[_0xb30fc8][_0x234b('0x11c')])continue;const _0x2f42f4=_0x1a4342[_0xb30fc8][_0x234b('0xd7')];_0x352e44['isBlock'](_0x2f42f4)||_0x352e44['isLimit'](_0x2f42f4)||(_0x1a4342[_0xb30fc8][_0x234b('0x2c')]&&delete _0x1a4342[_0xb30fc8][_0x234b('0x2c')],_0x1a4342[_0xb30fc8][_0x234b('0x7d')]&&delete _0x1a4342[_0xb30fc8][_0x234b('0x7d')],_0x1a4342[_0xb30fc8]['isRemoveSuggestion']&&delete _0x1a4342[_0xb30fc8][_0x234b('0xc6')],_0x1a4342[_0xb30fc8][_0x234b('0x9d')]&&(_0x1a4342[_0xb30fc8]['isIncorrect']=!0x0));}return _0x1a4342[_0x234b('0xaf')](_0x1e13da=>!_0x1e13da[_0x234b('0x118')]);}[_0x234b('0xc8')](_0x29d353,_0xfe1aa2,_0x38a3de){const _0xe1301a=new _0x5611e1(),_0x5055c4=[],_0x4de747=new Map(),_0x327ae4=this[_0x234b('0x2a')]['model'],_0xce8471=_0x327ae4[_0x234b('0xfa')],_0x566703=[_0xe1301a],_0x884428={},_0x52d387={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x35a86d=null;const _0x46cc60=[0x0];for(let _0x4273ff=0x0;_0x4273ff<_0x29d353['length'];_0x4273ff++){let _0x10d688,_0xa63869;if(_0x234b('0xbe')===_0x29d353[_0x4273ff][_0x234b('0xfb')]){_0x10d688=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60);const _0x223f16=new _0x30e2cd(_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0x2')],_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0x64')]());_0x566703[0x0][_0x234b('0x46')](_0x223f16),_0x46cc60[_0x234b('0x10c')](0x0),_0x566703['unshift'](_0x223f16),_0xa63869=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60),_0x35a86d=null;}else{if(_0x234b('0x58')===_0x29d353[_0x4273ff][_0x234b('0xfb')])_0x566703[_0x234b('0x8b')](),_0x10d688=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60),_0x46cc60['pop'](),_0x46cc60[_0x46cc60[_0x234b('0xff')]-0x1]++,_0xa63869=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60),_0x35a86d=null;else{if(_0x10d688=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60),_0x35a86d&&_0x5b9029(_0x35a86d,_0x29d353[_0x4273ff][_0x234b('0xd7')]))_0x35a86d[_0x234b('0xf5')]+=_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0xb3')];else{const _0x144ca6=new _0x5bcfa1(_0x29d353[_0x4273ff][_0x234b('0xd7')]['data'],_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0x64')]());_0x566703[0x0][_0x234b('0x46')](_0x144ca6),_0x35a86d=_0x144ca6;}_0x46cc60[_0x46cc60['length']-0x1]+=_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0x8f')],_0xa63869=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60);}}for(const _0x509f20 of _0x29d353[_0x4273ff][_0x234b('0xe4')])_0x4de747[_0x234b('0xfe')](_0x509f20,{'start':_0x10d688,'end':null});_0x5bf409('isRemoveSuggestion',_0x4273ff,_0x10d688,_0xa63869),_0x5bf409(_0x234b('0x7d'),_0x4273ff,_0x10d688,_0xa63869),_0x5bf409(_0x234b('0x9d'),_0x4273ff,_0x10d688,_0xa63869),_0x5bf409(_0x234b('0x2c'),_0x4273ff,_0x10d688,_0xa63869);for(const _0x17320c of _0x29d353[_0x4273ff][_0x234b('0xc7')]){_0x4de747[_0x234b('0x26')](_0x17320c)['end']=_0xa63869;}}for(const [_0x485ab6,_0x1c39ea]of _0x4de747){const _0x4fa36b=this[_0x234b('0x2a')]['model'][_0x234b('0xd6')](_0x1c39ea['start'],_0x1c39ea[_0x234b('0x15')]);_0xe1301a['markers'][_0x234b('0xfe')](_0x485ab6,_0x4fa36b);}return _0x5055c4[_0x234b('0x51')]((_0x4449c4,_0x7e66b6)=>{const _0x556bf5=_0xe1301a['markers'][_0x234b('0x26')](_0x234b('0xcb')+_0x4449c4['id']),_0x5237c8=_0xe1301a[_0x234b('0xf6')]['get']('revision:'+_0x7e66b6['id']);return _0x556bf5['start']['isBefore'](_0x5237c8[_0x234b('0xce')])?-0x1:_0x556bf5[_0x234b('0xce')][_0x234b('0x63')](_0x5237c8[_0x234b('0xce')])?0x1:_0x556bf5[_0x234b('0x15')][_0x234b('0x3a')](_0x5237c8[_0x234b('0x15')])?-0x1:_0x556bf5[_0x234b('0x15')][_0x234b('0x63')](_0x5237c8[_0x234b('0x15')])?0x1:_0x234b('0xb8')===_0x4449c4['type']?-0x1:0x1;}),{'root':_0xe1301a,'changes':_0x5055c4};function _0x5bf409(_0x4d304f,_0x463f7a,_0x3aab35,_0x1fc1b1){const _0x5a05cc=!!_0x29d353[_0x463f7a][_0x4d304f],_0x3a8383=_0x5a05cc?_0x29d353[_0x463f7a][_0x4d304f][_0x234b('0xa6')]:null,_0x4fda59=_0x463f7a===_0x29d353[_0x234b('0xff')]-0x1,_0x25bc1f=_0x52d387[_0x4d304f][0x0],_0x59cc4a=_0xce8471[_0x234b('0xef')](_0x29d353[_0x463f7a]['item']);!_0x884428[_0x4d304f]&&_0x5a05cc?_0x884428[_0x4d304f]={'start':_0x3aab35,'tapeItem':_0x29d353[_0x463f7a],'userId':_0x3a8383,'type':_0x4d304f}:_0x884428[_0x4d304f]&&!_0x5a05cc?(_0x884428[_0x4d304f][_0x234b('0x15')]=_0x3aab35,_0x2a3c07(_0x884428[_0x4d304f]),_0x884428[_0x4d304f]=null):_0x884428[_0x4d304f]&&_0x5a05cc&&_0x884428[_0x4d304f][_0x234b('0xa6')]!==_0x3a8383&&(_0x884428[_0x4d304f][_0x234b('0x15')]=_0x3aab35,_0x25bc1f&&_0x25bc1f[_0x234b('0xa6')]===_0x884428[_0x4d304f][_0x234b('0xa6')]||_0x2a3c07(_0x884428[_0x4d304f]),_0x884428[_0x4d304f]={'start':_0x3aab35,'tapeItem':_0x29d353[_0x463f7a],'userId':_0x3a8383,'type':_0x4d304f}),_0x884428[_0x4d304f]&&_0x59cc4a&&('elementStart'!==_0x29d353[_0x463f7a][_0x234b('0xfb')]||_0x25bc1f&&_0x25bc1f[_0x234b('0xa6')]===_0x3a8383||_0x52d387[_0x4d304f][_0x234b('0xec')]({'userId':_0x3a8383,'object':_0x29d353[_0x463f7a][_0x234b('0xd7')],'change':_0x884428[_0x4d304f]}),_0x234b('0x58')===_0x29d353[_0x463f7a]['type']&&_0x25bc1f&&_0x25bc1f[_0x234b('0x103')]===_0x29d353[_0x463f7a][_0x234b('0xd7')]&&(_0x52d387[_0x4d304f][_0x234b('0x8b')](),_0x884428[_0x4d304f]=_0x25bc1f[_0x234b('0x69')])),_0x884428[_0x4d304f]&&_0x4fda59&&(_0x884428[_0x4d304f]['end']=_0x1fc1b1,_0x2a3c07(_0x884428[_0x4d304f]),_0x884428[_0x4d304f]=null);}function _0x2a3c07({start:_0x4dc165,end:_0x14808c,tapeItem:_0x51b39a,userId:_0x115b6f,type:_0x597e83}){const _0x3e66cd=_0x51b39a['item'],_0x5d646c=_0x327ae4['schema']['isBlock'](_0x3e66cd)&&!_0x327ae4['schema'][_0x234b('0x44')](_0x3e66cd),_0x3c41e0=_0x4dc165[_0x234b('0xb9')]==_0x14808c['parent']&&_0x14808c[_0x234b('0xf1')];if(_0x5d646c&&_0x3c41e0)return;const _0x3a5414=_0x327ae4[_0x234b('0xd6')](_0x4dc165,_0x14808c),_0x1c1822=_0xfe1aa2[_0x234b('0x26')](_0x115b6f),_0xeaa320=new _0x5656c0({'author':_0x1c1822,'type':_0x234b('0x2c')==_0x597e83||_0x234b('0x7d')==_0x597e83?_0x234b('0xb8'):'remove','data':{'isSuggestion':_0x234b('0x7d')==_0x597e83||_0x234b('0xc6')==_0x597e83},'createdAt':new Date(),'rootName':_0x38a3de});_0x5055c4[_0x234b('0x10c')](_0xeaa320),_0xe1301a[_0x234b('0xf6')][_0x234b('0xfe')](_0x234b('0xcb')+_0xeaa320['id'],_0x3a5414);}function _0x5b9029(_0x133f14,_0x4dfaa9){const _0x24ba15=_0x133f14[_0x234b('0x64')](),_0x27205f=_0x4dfaa9[_0x234b('0x64')]();for(const _0x12b490 of _0x24ba15){if(_0x12b490[0x1]!==_0x4dfaa9[_0x234b('0xcc')](_0x12b490[0x0]))return!0x1;_0x27205f[_0x234b('0x112')]();}return _0x27205f[_0x234b('0x112')]()[_0x234b('0x6a')];}}[_0x234b('0xdb')](){this['editor'][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0x1a'))[_0x234b('0x20')]({'view':_0x234b('0x16')}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0xe'))['markerToHighlight']({'model':_0x234b('0x16'),'view':_0x34d7dd=>{const _0xd33a10=_0x34d7dd[_0x234b('0x105')][_0x234b('0x4a')](':')[0x1],_0x24a8e1=this['_getChangeFromId'](_0xd33a10);if(!_0x24a8e1)return null;const _0x15ab34='add'==_0x24a8e1[_0x234b('0xfb')]?_0x234b('0x30'):_0x234b('0x3f'),_0x5e44ca=[_0x234b('0x9f'),_0x234b('0x10a')+_0x15ab34];return _0x24a8e1[_0x234b('0xb3')][_0x234b('0x11a')]&&_0x5e44ca[_0x234b('0x10c')](_0x234b('0x10a')+_0x15ab34+_0x234b('0xfc')),this[_0x234b('0x101')]==_0x24a8e1&&_0x5e44ca[_0x234b('0x10c')](_0x234b('0x9a')),{'classes':_0x5e44ca,'attributes':{'data-change-id':_0xd33a10}};}}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0x1a'))['add'](_0x11c17b=>{_0x11c17b['on'](_0x234b('0x5'),(_0x38b42a,_0x2e4d11,_0x29a3f)=>{const _0x24f349=_0x2e4d11[_0x234b('0x66')][_0x234b('0x77')](0x0);if(!_0x24f349||!_0x24f349['is'](_0x234b('0x32'),_0x234b('0xa4')))return;if(!_0x29a3f['consumable'][_0x234b('0xa7')](_0x24f349,{'attributes':[_0x234b('0x10e'),_0x234b('0xd2')]}))return;const _0x44e6c7=_0x2e4d11[_0x234b('0xe9')][_0x234b('0xce')]['nodeAfter'];_0x29a3f[_0x234b('0x24')][_0x234b('0x11d')]('vid_start',_0x24f349['getAttribute']('vid_start'),_0x44e6c7),_0x29a3f[_0x234b('0x24')][_0x234b('0x11d')](_0x234b('0xd2'),_0x24f349[_0x234b('0xcc')](_0x234b('0xd2')),_0x44e6c7);},{'priority':_0x234b('0x52')});}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0x1a'))[_0x234b('0xb8')](_0x5afd26=>{_0x5afd26['on'](_0x234b('0x32'),(_0x5c0558,_0x1e68df,_0x2ff815)=>{if(!_0x2ff815[_0x234b('0x99')][_0x234b('0xa7')](_0x1e68df['viewItem'],{'attributes':['vid_start',_0x234b('0xd2')]}))return;if(_0x1e68df['modelRange']['isCollapsed'])return;const _0x2c39ca=_0x1e68df['modelRange'][_0x234b('0xce')][_0x234b('0xb9')];_0x2c39ca[_0x234b('0x42')](_0x234b('0x10e'))||_0x2c39ca[_0x234b('0x42')](_0x234b('0x104'))||(_0x2ff815[_0x234b('0x24')][_0x234b('0x11d')]('vid_start',_0x1e68df[_0x234b('0x66')][_0x234b('0xcc')](_0x234b('0x10e')),_0x2c39ca),_0x2ff815['writer'][_0x234b('0x11d')](_0x234b('0xd2'),_0x1e68df[_0x234b('0x66')][_0x234b('0xcc')](_0x234b('0xd2')),_0x2c39ca));},{'priority':_0x234b('0x52')});}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0x1a'))[_0x234b('0x7f')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x234b('0x104'),'value':_0x4eabdd=>_0x4eabdd[_0x234b('0xcc')](_0x234b('0x104'))}}),this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xfa')]['on'](_0x234b('0x5e'),(_0x51d636,[,_0xbd6151])=>{[_0x234b('0x10e'),_0x234b('0xd2'),_0x234b('0x104')][_0x234b('0x22')](_0xbd6151)&&(_0x51d636['return']=!0x0,_0x51d636[_0x234b('0x17')]());},{'priority':_0x234b('0x1d')}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')]('dataDowncast')[_0x234b('0xb8')](_0x5440e8=>{_0x5440e8['on'](_0x234b('0x4'),(_0xa85408,_0x4e6bf5,_0x598aea)=>{if('\x20'!=_0x4e6bf5[_0x234b('0xd7')]['data']||_0x4e6bf5['item'][_0x234b('0x1f')][_0x234b('0xd8')]>0x1)return;if(!_0x598aea[_0x234b('0x99')][_0x234b('0xa7')](_0x4e6bf5[_0x234b('0xd7')],_0xa85408[_0x234b('0x2')]))return;const _0x263477=_0x598aea[_0x234b('0x24')],_0xa726d0=_0x598aea[_0x234b('0xa8')]['toViewRange'](_0x4e6bf5[_0x234b('0x7e')]);_0x263477[_0x234b('0xda')](_0xa726d0,_0x263477[_0x234b('0x1')](_0x234b('0x45')));});}),this[_0x234b('0x2a')]['conversion'][_0x234b('0x95')](_0x234b('0x47'))[_0x234b('0x92')]({'model':_0x234b('0x16')}),this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x76')]['on'](_0x234b('0x56'),function(_0xdae6ac){const _0x37e292=_0xdae6ac['plugins'][_0x234b('0x26')](_0x234b('0x122'));return(_0x3e532f,_0x2d305c,_0xfa4530)=>{const _0x643514=_0x2d305c[_0x234b('0x105')][_0x234b('0x4a')](':')[0x1],_0x219383=_0x37e292[_0x234b('0xcd')](_0x643514);if(!_0x219383)return null;const _0x1a82ba=_0x234b('0xb8')==_0x219383[_0x234b('0xfb')]?_0x234b('0x4a'):'merge';if(!_0xfa4530[_0x234b('0x99')]['test'](_0x2d305c['markerRange'],_0x3e532f['name']))return;const _0x553991=_0x2d305c[_0x234b('0x7b')][_0x234b('0x1c')](),_0x327d22=_0x2d305c[_0x234b('0x7b')][_0x234b('0xce')],_0x20fade=_0xdae6ac['model'][_0x234b('0xfa')];let _0x18a2e7=null,_0x211959=null,_0x12e7a0=!0x1,_0x26e154=!0x1;for(const _0x5b73d6 of _0x553991){const _0x33e992=_0x5b73d6[_0x234b('0xd7')];_0x12e7a0=_0x12e7a0||_0x20fade['isContent'](_0x33e992);const _0x111778=_0xfa4530[_0x234b('0xa8')]['toViewElement'](_0x33e992);if(_0x111778&&_0x111778[_0x234b('0x11b')](_0x234b('0x38')))return;_0x234b('0x58')==_0x5b73d6['type']&&(_0x20fade[_0x234b('0x5c')](_0x33e992)&&!_0x20fade['isLimit'](_0x33e992)&&(_0x33e992[_0x234b('0x2f')]||_0x327d22['isAtEnd']?_0x18a2e7&&_0x18a2e7['parent']==_0x33e992||(_0x18a2e7=_0x33e992,_0xca04c7(_0x5b73d6['previousPosition']),_0x26e154=!0x0):_0x211959=_0x211959||_0x5b73d6['previousPosition']));}function _0xca04c7(_0x1cd058){const _0x30d593=_0xfa4530[_0x234b('0x24')]['createUIElement'](_0x234b('0x45'),{'class':_0x234b('0x10a')+_0x1a82ba}),_0x13e17b=_0xfa4530['mapper'][_0x234b('0x11e')](_0x1cd058);_0x219383[_0x234b('0xb3')]['isSuggestion']&&_0xfa4530[_0x234b('0x24')][_0x234b('0xea')](_0x234b('0x10a')+_0x1a82ba+_0x234b('0xfc'),_0x30d593),_0x37e292[_0x234b('0x101')]==_0x219383&&_0xfa4530[_0x234b('0x24')][_0x234b('0xea')](_0x234b('0x9a'),_0x30d593),_0xfa4530[_0x234b('0x24')][_0x234b('0x107')](_0x13e17b,_0x30d593),_0xfa4530[_0x234b('0xa8')][_0x234b('0xf0')](_0x30d593,_0x2d305c['markerName']);}_0x12e7a0||_0x26e154||!_0x211959||_0xca04c7(_0x211959);};}(this['editor']),{'priority':_0x234b('0x29')}),this[_0x234b('0x2a')][_0x234b('0xd1')]['downcastDispatcher']['on'](_0x234b('0x86'),(_0x466c52,_0xea034f,_0x4a67ed)=>{const _0x59bf8e=_0x4a67ed[_0x234b('0xa8')]['markerNameToElements'](_0xea034f['markerName']);if(_0x59bf8e)for(const _0x20e8cf of _0x59bf8e)(_0x20e8cf[_0x234b('0xa2')]('ck-suggestion-marker-split')||_0x20e8cf[_0x234b('0xa2')]('ck-suggestion-marker-merge'))&&(_0x4a67ed['mapper'][_0x234b('0xd4')](_0x20e8cf,_0xea034f[_0x234b('0x105')]),_0x4a67ed[_0x234b('0x24')]['remove'](_0x20e8cf));},{'priority':_0x234b('0x29')}),this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x76')]['on'](_0x234b('0x56'),(_0x10d482,_0xaa7930,_0x3e3ace)=>{const _0x766a8b=_0xaa7930[_0x234b('0x105')][_0x234b('0x4a')](':')[0x1],_0x35379d=this['_getChangeFromId'](_0x766a8b);if(!_0x35379d)return null;const _0x5dcd18=_0x234b('0xb8')==_0x35379d[_0x234b('0xfb')]?'split':_0x234b('0x65');if(_0x3e3ace[_0x234b('0x99')][_0x234b('0x85')](_0xaa7930[_0x234b('0x7b')],_0x10d482['name']))for(const _0x5d45a8 of _0xaa7930[_0x234b('0x7b')][_0x234b('0xc0')]()){if(!_0x5d45a8['is'](_0x234b('0x32'),_0x234b('0x106')))continue;const _0x2e8698=_0x3e3ace[_0x234b('0x24')][_0x234b('0x114')](_0x234b('0x45'),{'class':_0x234b('0x10a')+_0x5dcd18}),_0x278070=_0x3e3ace['mapper'][_0x234b('0x11e')](this[_0x234b('0x2a')][_0x234b('0x111')]['createPositionBefore'](_0x5d45a8));_0x35379d['data']['isSuggestion']&&_0x3e3ace[_0x234b('0x24')][_0x234b('0xea')]('ck-suggestion-marker-'+_0x5dcd18+_0x234b('0xfc'),_0x2e8698),this['activeChange']==_0x35379d&&_0x3e3ace[_0x234b('0x24')][_0x234b('0xea')](_0x234b('0x9a'),_0x2e8698),_0x3e3ace[_0x234b('0x24')][_0x234b('0x107')](_0x278070,_0x2e8698),_0x3e3ace['mapper']['bindElementToMarker'](_0x2e8698,_0xaa7930['markerName']);}},{'priority':_0x234b('0x29')}),this['editor'][_0x234b('0x111')][_0x234b('0xbb')]['on'](_0x234b('0x69'),()=>{this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0x69')](_0x19f667=>{for(const _0x425563 of this[_0x234b('0x2a')][_0x234b('0x111')]['document'][_0x234b('0x27')]()){const _0x2ca774=this[_0x234b('0x2a')][_0x234b('0x111')]['document']['getRoot'](_0x425563),_0x5c505c=this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')][_0x234b('0x97')](_0x425563);if(_0x5c505c){const _0x458d79=_0x2ca774[_0x234b('0xcc')](_0x234b('0x36'));if(_0x19f667['removeAttribute'](_0x234b('0x41'),_0x5c505c),_0x19f667[_0x234b('0xa5')](_0x234b('0x9e'),_0x5c505c),_0x19f667[_0x234b('0xa5')](_0x234b('0x2b'),_0x5c505c),_0x19f667['removeClass'](_0x234b('0x117'),_0x5c505c),_0x458d79){const _0x571298=this[_0x234b('0xcd')](_0x458d79);if(!_0x571298)return null;_0x19f667[_0x234b('0x11d')](_0x234b('0x41'),_0x458d79,_0x5c505c),_0x19f667['addClass']('ck-revision-history-root-'+_0x571298[_0x234b('0xfb')],_0x5c505c),this[_0x234b('0x101')]==_0x571298&&_0x19f667[_0x234b('0xea')](_0x234b('0x117'),_0x5c505c);}}}});}),this['editor']['conversion']['for'](_0x234b('0x1a'))[_0x234b('0x20')]({'view':_0x234b('0x83'),'model':_0x589b38=>_0x234b('0x11')+_0x589b38,'converterPriority':_0x234b('0x1d')}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')]('upcast')[_0x234b('0x20')]({'view':_0x234b('0xe3'),'model':_0x1ee07f=>_0x234b('0x80')+_0x1ee07f,'converterPriority':_0x234b('0x1d')}),this[_0x234b('0x2a')]['conversion'][_0x234b('0x95')]('dataDowncast')[_0x234b('0x92')]({'model':_0x234b('0x89'),'view':_0x36841b=>({'name':_0x234b('0x6f')+_0x36841b,'group':_0x234b('0x89')}),'converterPriority':_0x234b('0x1d')}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0xe'))[_0x234b('0x19')]({'model':_0x234b('0x89'),'view':_0x543f5b=>{const _0xa4d937=_0x543f5b[_0x234b('0x105')][_0x234b('0x4a')](':')[0x1];return _0x234b('0x30')!=_0xa4d937&&_0x234b('0x3f')!=_0xa4d937?null:{'classes':['ck-suggestion-preview-marker',_0x234b('0x7a')+_0xa4d937]};}}),this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x76')]['on'](_0x234b('0x79'),et(this[_0x234b('0x2a')],_0x234b('0x65')),{'priority':_0x234b('0x29')}),this['editor'][_0x234b('0xd1')][_0x234b('0x76')]['on'](_0x234b('0xdc'),et(this[_0x234b('0x2a')],'split'),{'priority':_0x234b('0x29')}),this[_0x234b('0x2a')]['editing'][_0x234b('0x76')]['on']('removeMarker:revision-suggestion',(_0xcaa285,_0x58421e,_0x38fc3d)=>{const _0x5bb839=_0x38fc3d[_0x234b('0xa8')][_0x234b('0x5b')](_0x58421e[_0x234b('0x105')]);if(_0x5bb839)for(const _0x256d02 of _0x5bb839)_0x256d02['is'](_0x234b('0xe2'))&&(_0x38fc3d[_0x234b('0xa8')][_0x234b('0xd4')](_0x256d02,_0x58421e['markerName']),_0x38fc3d[_0x234b('0x24')][_0x234b('0x3b')](_0x256d02));},{'priority':_0x234b('0x29')});}[_0x234b('0xcd')](_0x3eeb93){return this['_changeIdToChange'][_0x234b('0x26')](_0x3eeb93);}[_0x234b('0x53')](_0x3d5ffc){return this[_0x234b('0xc2')]&&this[_0x234b('0xc2')][_0x234b('0xed')](),this[_0x234b('0xc2')]=new _0x3d3978(this[_0x234b('0x2a')][_0x234b('0xfd')],_0x3d5ffc),this[_0x234b('0xc2')];}[_0x234b('0x1b')](){this['editor'][_0x234b('0x111')][_0x234b('0xbb')][_0x234b('0xe7')][_0x234b('0xbf')](_0x234b('0x16')),this['on'](_0x234b('0xca'),(_0x2b1bf7,_0x49eab0,_0x435933,_0x39cf3e)=>{_0x39cf3e&&this['_balloon'][_0x234b('0x3b')](_0x39cf3e),_0x435933&&(this[_0x234b('0xc4')][_0x234b('0xb8')]({'view':_0x435933,'stackId':_0x234b('0x4f'),'position':{'target':()=>{const _0x557327=this[_0x234b('0x2a')][_0x234b('0xd1')],_0x343af1=this[_0x234b('0xcd')](_0x435933[_0x234b('0x120')]);let _0x680095;if(_0x343af1[_0x234b('0xb3')][_0x234b('0x5f')]){const _0x2b53f5=_0x557327[_0x234b('0x35')][_0x234b('0x91')](_0x343af1[_0x234b('0x4c')]);_0x680095=Array[_0x234b('0x43')](_0x2b53f5[_0x234b('0xb7')]());}else{const _0x43df5d=this['editor'][_0x234b('0x111')][_0x234b('0xf6')][_0x234b('0x26')](_0x234b('0xcb')+_0x435933[_0x234b('0x120')]);_0x680095=Array[_0x234b('0x43')](_0x557327[_0x234b('0xa8')]['markerNameToElements'](_0x43df5d[_0x234b('0x2')]))['map'](_0x5df3ed=>_0x557327[_0x234b('0x35')][_0x234b('0xf9')]['mapViewToDom'](_0x5df3ed))['map'](_0x412a1c=>Array[_0x234b('0x43')](_0x412a1c[_0x234b('0xb7')]()))['flat']();}if(!this[_0x234b('0x57')])return _0x680095[0x0];return _0x680095[_0x234b('0xb4')](_0x141c8d=>_0x141c8d['top']-0x3<=this[_0x234b('0x57')]['y']&&_0x141c8d[_0x234b('0x10')]+0x3>=this[_0x234b('0x57')]['y']&&_0x141c8d[_0x234b('0x8e')]-0x3<=this[_0x234b('0x57')]['x']&&_0x141c8d['right']+0x3>=this['_activeViewTarget']['x'])||_0x680095[0x0];}}}),this['_balloon'][_0x234b('0x4d')](_0x234b('0x4f')));}),this['on'](_0x234b('0x87'),(_0x5bdf66,_0xbae009,_0x3c2a93,_0x2dc6a7)=>{this['activeView']=_0x3c2a93?this[_0x234b('0x53')](_0x3c2a93):null,this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0x69')](()=>{const _0xb6023d=this[_0x234b('0x2a')]['editing'];_0x2dc6a7&&(_0x2dc6a7['data']['isOnRoot']?_0xb6023d[_0x234b('0x35')][_0x234b('0x69')](_0x177877=>{_0x177877[_0x234b('0xa5')](_0x234b('0x117'),_0xb6023d['view'][_0x234b('0xbb')][_0x234b('0x97')](_0x2dc6a7[_0x234b('0x4c')]));}):_0xb6023d['reconvertMarker'](_0x234b('0xcb')+_0x2dc6a7['id'])),_0x3c2a93&&(_0x3c2a93[_0x234b('0xb3')]['isOnRoot']?_0xb6023d[_0x234b('0x35')][_0x234b('0x69')](_0x2080b1=>{_0x2080b1[_0x234b('0xea')](_0x234b('0x117'),_0xb6023d['view']['document'][_0x234b('0x97')](_0x3c2a93[_0x234b('0x4c')]));}):_0xb6023d[_0x234b('0x10d')](_0x234b('0xcb')+_0x3c2a93['id']));});}),this[_0x234b('0xe6')](this['editor'][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')],'mouseover',(_0x4f927c,_0x5e1a33)=>{if(this['activeChange'])return;const _0x4086db=this[_0x234b('0xb')](_0x5e1a33[_0x234b('0x2e')]),_0x4b5bd7=this[_0x234b('0x28')][_0x234b('0x26')](_0x4086db);_0x4b5bd7?(this[_0x234b('0x57')]={'x':_0x5e1a33['domEvent']['x'],'y':_0x5e1a33[_0x234b('0x121')]['y']},this[_0x234b('0x6d')]=this['_getViewForChange'](_0x4b5bd7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')],_0x234b('0x5a'),(_0x5cd2a2,_0xdc1a17)=>{const _0x453324=this['_findChangeIdFromDomTarget'](_0xdc1a17[_0x234b('0x2e')]),_0x1cafef=this[_0x234b('0x28')][_0x234b('0x26')](_0x453324);_0x1cafef?(this[_0x234b('0x57')]={'x':_0xdc1a17[_0x234b('0x121')]['x'],'y':_0xdc1a17[_0x234b('0x121')]['y']},_0x1cafef===this[_0x234b('0x101')]?this['_balloon']['updatePosition']():this['activeChange']=_0x1cafef):(this[_0x234b('0x57')]=null,this['activeChange']=null);});}[_0x234b('0xb')](_0x1b93e6){do{const _0xc9e3e1=_0x1b93e6['getAttribute'](_0x234b('0x41'));if(_0xc9e3e1)return _0xc9e3e1;_0x1b93e6=_0x1b93e6[_0x234b('0x1f')];}while(_0x1b93e6);return null;}[_0x234b('0x8c')](){this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0x69')](_0x36adb9=>{for(const _0x3d6440 of this[_0x234b('0x2a')]['model'][_0x234b('0xf6')])_0x36adb9[_0x234b('0x37')](_0x3d6440);});}}function et(_0x588aa6,_0xee45bd){return(_0x5efd2f,_0x15840c,_0x25eac0)=>{if(!_0x25eac0[_0x234b('0x99')][_0x234b('0x85')](_0x15840c[_0x234b('0x7b')],_0x5efd2f[_0x234b('0x2')]))return;const _0x54ec82=_0x15840c[_0x234b('0x7b')]['getWalker'](),_0x1004b5=_0x15840c['markerRange'][_0x234b('0xce')],_0x41ee5a=_0x588aa6[_0x234b('0x111')][_0x234b('0xfa')];let _0x5dc804=null,_0x2f06a0=null,_0x4e2638=!0x1,_0x21368a=!0x1;for(const _0x2a784c of _0x54ec82){const _0x14749b=_0x2a784c[_0x234b('0xd7')];_0x4e2638=_0x4e2638||_0x41ee5a[_0x234b('0x6')](_0x14749b);const _0xaa8d61=_0x25eac0[_0x234b('0xa8')]['toViewElement'](_0x14749b);if(_0xaa8d61&&_0xaa8d61[_0x234b('0x11b')]('addHighlight'))return;_0x234b('0x58')==_0x2a784c['type']&&(_0x41ee5a[_0x234b('0x5c')](_0x14749b)&&!_0x41ee5a[_0x234b('0x44')](_0x14749b)&&(_0x14749b[_0x234b('0x2f')]||_0x1004b5[_0x234b('0x54')]?_0x5dc804&&_0x5dc804[_0x234b('0x1f')]==_0x14749b||(_0x5dc804=_0x14749b,_0x584711(_0x2a784c[_0x234b('0x55')]),_0x21368a=!0x0):_0x2f06a0=_0x2f06a0||_0x2a784c[_0x234b('0x55')]));}function _0x584711(_0xf4d798){const _0xea41bf=_0x25eac0['mapper'][_0x234b('0x11e')](_0xf4d798),_0x5dc5de=_0x25eac0[_0x234b('0x24')][_0x234b('0x114')](_0x234b('0x45'),{'class':'ck-suggestion-preview-marker-'+_0xee45bd});_0x25eac0[_0x234b('0x24')]['insert'](_0xea41bf,_0x5dc5de),_0x25eac0[_0x234b('0xa8')]['bindElementToMarker'](_0x5dc5de,_0x15840c[_0x234b('0x105')]);}_0x4e2638||_0x21368a||!_0x2f06a0||_0x584711(_0x2f06a0);};}export class RestoreRevisionCommand extends _0x349962{constructor(_0x5f103b){super(_0x5f103b);const _0x47a4a5=_0x5f103b['plugins'][_0x234b('0x26')](d);this[_0x234b('0xa3')]=!0x1,this[_0x234b('0xe6')](_0x47a4a5,'change:isReady',()=>this[_0x234b('0x2d')]()),this[_0x234b('0xe6')](_0x47a4a5,_0x234b('0xaa'),()=>this['refresh']());}['execute'](){const _0x19e3b7=this[_0x234b('0x2a')],_0x5e111c=_0x19e3b7[_0x234b('0x10b')]['get'](d),_0x549bae=_0x5e111c[_0x234b('0x6e')]?_0x5e111c[_0x234b('0xa9')]['newRevisionId']:null;_0x19e3b7['config'][_0x234b('0x26')](_0x234b('0xa'))[_0x234b('0xac')](_0x549bae);}['refresh'](){const {isReady:_0x127141,isEnabled:_0x2869b6}=this[_0x234b('0x2a')][_0x234b('0x10b')][_0x234b('0x26')](d);this[_0x234b('0xc')]=_0x127141&&_0x2869b6;}}export class ShowChangeCommand extends _0x349962{constructor(_0xb76121,{direction:_0x258abd}){super(_0xb76121);const _0x2fa319=_0xb76121[_0x234b('0x10b')][_0x234b('0x26')](d);this[_0x234b('0xa3')]=!0x1,this[_0x234b('0x84')]='forward'===_0x258abd?0x1:-0x1,this[_0x234b('0xe6')](_0x2fa319,_0x234b('0x0'),()=>this[_0x234b('0x2d')]()),this[_0x234b('0xe6')](_0x2fa319,_0x234b('0xaa'),()=>this[_0x234b('0x2d')]()),this['listenTo'](_0x2fa319,_0x234b('0x87'),()=>this[_0x234b('0x2d')]());}[_0x234b('0x5d')](){const _0x179954=this['editor'],_0x3a928c=_0x179954[_0x234b('0x10b')]['get'](d),{isNavigationMode:_0x25a373,currentChangeNumber:_0x589198}=_0x3a928c;let _0x306334;if(_0x3a928c[_0x234b('0x101')]=_0x25a373?_0x3a928c['diff'][_0x234b('0xb5')][_0x234b('0x26')](_0x589198+this[_0x234b('0x84')]):_0x3a928c[_0x234b('0xa9')]['changes'][_0x234b('0x11f')],_0x3a928c[_0x234b('0x101')][_0x234b('0xb3')][_0x234b('0x5f')])_0x306334=_0x179954[_0x234b('0xd1')][_0x234b('0x35')]['getDomRoot'](_0x3a928c[_0x234b('0x101')][_0x234b('0x4c')]);else{const _0x276a24=_0x179954[_0x234b('0x111')][_0x234b('0xf6')][_0x234b('0x26')]('revision:'+_0x3a928c['activeChange']['id']);_0x306334=_0x1d3894(_0x179954[_0x234b('0xd1')],_0x276a24);}_0x46ecbd({'target':_0x306334,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x19eb8b,currentChangeNumber:_0x1acbc3,numberOfChanges:_0x1f350e,isReady:_0x277825,isEnabled:_0x391c8b}=this[_0x234b('0x2a')][_0x234b('0x10b')][_0x234b('0x26')](d);this['isEnabled']=!!(_0x391c8b&&_0x277825&&_0x1f350e)&&(!_0x19eb8b||(0x1===this['_step']?_0x1acbc3<_0x1f350e-0x1:_0x1acbc3>0x0));}}
23
+ const _0x224c=['markerRange','forward','WidgetToolbarRepository','commands','split','deletions','editing','revision','upcast','startsWith','elementStart','getRevisionRootsAttributes','softBreak','view','config','_getChangeFromId','revisionHistoryAttachChange','_initInteractions','filter','uiElement','insert','adapter','locale','diff','pluginName','all','createRange','schema','toModel','isBefore','side','abs','change:activeView','RevisionViewer','getAttribute','showStack','getCustomProperty','consume','bind','getWalker','-new','data','vid_end','isEnabled','_markInsertions','processor','removeAttribute','_getDiff','addRevision','keys','parent','roots','isSuggestion','detachRoot','revisionHistoryLabel','_cleanUp','level','shift','isIncorrect','attributesAfter','hasClass','toData','_changeView','isReady','catch','right','isInline','_fixObsoleteTags','affectsData','values','_update','removeMarker','first','mousedown','concat','revision-suggestion:','left','getAttributes','dataToMarker','toViewRange','_removeUnsupportedChanges','ck-editor__editable__overlay','listenTo','rootName','consumable','includes','_getViewForChange','revision-suggestion','push','_getRevisionsRange','from','_sortAndFilterDiffChanges','isLimit','data-revision-','isRemoved','_activeViewTarget','authors','markerToData','suggestion','isAfter','activeView','children','loadRevisionData','highest','forceDisabled','editor','model','markerNameToElements','map','addClass','numberOfChanges','item','document','remove','change:activeChange','change','newRevisionId','for','removeClass','markers','insertion','_markMismatchedRemovedTags','ck-suggestion-preview-marker','isCollapsed','merge','change:isReady','_makeModelFromViewString','domConverter','repository','has','name','isOnRoot','revision:','_balloon','isObject','viewItem','getRoot','nextSibling','restoreRevisionCallback','_removeMissingPairs','unbindElementFromMarkerName','pop','ck-revision-history-root-add','top','isAtEnd','marked','_makeModelFromTape','changes','delete','pairId','_setDistance','then','ck-revision-history-root--active','offsetSize','currentChangeNumber','span','flat','getChild','execute','addMarker:revision-suggestion:insertion','add','reconvertMarker','element:pre','done','_getViewObj','endIndex','range','init','addMarker:revision-suggestion:deletion','useFillerType','enableReadOnlyMode','wrap','low','test','_appendChild','next','deletion','createAttributeElement','maxOffset','addMarker:revision','destroy','editingDowncast','createPositionFromPath','high','activeChange','change:isEnabled','getDomRoot','_processTape','suggestion:','downcastDispatcher','data-change-id','removeMarker:revision','diffData','findIndex','get','isEqual','domEvent','vid','comment','string','elementEnd','attachChange','revisionHistory','addRevisionData','ck-suggestion-marker-merge','return','startIndex','enqueueChange','showNextChange','refresh','_threeWayMerge','ck-suggestion-marker--active','addHighlight','selection','splice','error','attributesBefore','getIndex','restoreRevision','type','getRootNames','default','_setConversion','forEach','_cleanMarkers','mapper','conversion','markerToHighlight','ck-suggestion-marker-','isAdded','RevisionsRepository','sort','previousPosition','createUIElement','userId','modelRange','insertions','_makeTape','end','markerName','getRevisionData','vid_start','start','toViewPosition','_refreshStartEndIndex','isAtStart','bindElementToMarker','getClientRects','markersStart','attributes','ck-suggestion-preview-marker-','POSITIVE_INFINITY','_changeIdToChange','length','distance','isAddSuggestion','find','isRemoveSuggestion','unshift','_step','plugins','indexOf','isBlock','revision-viewer','compare','getRevision','resolve','collaboration.channelId','_setChanges','text','slice','markersEnd','revision-comment:','set','parse','showPreviousChange','object','toViewElement','updatePosition','_findChangeIdFromDomTarget','hasAttribute','writer','mapViewToDom','ck-revision-history-root-remove','isAttached','nextPosition','_joinTapes','addRoot','target','nodeAfter','index','_markSuggestions','_removeRevisionMarkers','element','setAttribute'];(function(_0x42e2c7,_0x224c4a){const _0x3c13bb=function(_0xf3dccb){while(--_0xf3dccb){_0x42e2c7['push'](_0x42e2c7['shift']());}};_0x3c13bb(++_0x224c4a);}(_0x224c,0x75));const _0x3c13=function(_0x42e2c7,_0x224c4a){_0x42e2c7=_0x42e2c7-0x0;let _0x3c13bb=_0x224c[_0x42e2c7];return _0x3c13bb;};import{Plugin as _0x2b7b9c,Command as _0x17e90c}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x28c5c9}from'ckeditor5/src/utils';import{ContextualBalloon as _0xad9068}from'ckeditor5/src/ui';import{DocumentFragment as _0x357518,Element as _0x5020ed,Text as _0x57709f,ViewDocumentFragment as _0x2c2406,ViewText as _0x3435c4,ViewElement as _0x32fc8b,ViewContainerElement as _0x262a4d,ViewAttributeElement as _0x5b5a6f,ViewEmptyElement as _0x54d03b,ViewRawElement as _0x5b0b42,ViewUIElement as _0x18498a}from'ckeditor5/src/engine';import{Users as _0x1b6f7a,getMarkerDomElement as _0x382f5c}from'ckeditor5-collaboration/src/collaboration-core';import _0x5e0073 from'./ui/revisionviewer/changedetailsview';import _0x138e4c from'./revisionsrepository';import _0x164e19 from'./changeitem';import{default as _0x2883e3}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x3c5713}from'lodash-es';const tt={'c':_0x262a4d,'a':_0x5b5a6f,'e':_0x54d03b,'r':_0x5b0b42,'u':_0x18498a};export default class d extends _0x2b7b9c{static get[_0x3c13('0xca')](){return'RevisionViewer';}static get['requires'](){return[_0x1b6f7a,_0xad9068,_0x138e4c];}constructor(_0x4b570a){super(_0x4b570a),this[_0x3c13('0xb')]=this['editor'][_0x3c13('0x8f')][_0x3c13('0x4d')](_0x3c13('0x71')),this[_0x3c13('0x9c')](_0x3c13('0x43'),null),this[_0x3c13('0x9c')](_0x3c13('0x116'),null),this[_0x3c13('0x111')]=null,this['set'](_0x3c13('0xc9'),null),this[_0x3c13('0x9c')]('isReady',!0x1),this[_0x3c13('0x9c')](_0x3c13('0xdd'),!0x0),this['on'](_0x3c13('0x44'),(_0x5a7d3a,_0xdabdb,_0x314b52)=>{this[_0x3c13('0x43')]=null,this[_0x3c13('0x116')]=null,this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0xbf')]['change'](_0x1bc516=>{for(const _0x2acca7 of this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0xbf')][_0x3c13('0x122')][_0x3c13('0xe5')])_0x314b52?_0x1bc516[_0x3c13('0x1')](_0x3c13('0x103'),_0x2acca7):_0x1bc516[_0x3c13('0x11f')](_0x3c13('0x103'),_0x2acca7);});}),this['bind']('isNavigationMode')['to'](this,_0x3c13('0x43'),_0x28b021=>null!==_0x28b021),this[_0x3c13('0xd8')](_0x3c13('0x25'))['to'](this,_0x3c13('0xf1'),this,_0x3c13('0xc9'),this,_0x3c13('0x43'),(_0x1d3066,_0x30a716,_0x50c724)=>_0x1d3066&&_0x50c724?_0x30a716['changes'][_0x3c13('0x64')](_0x50c724):0x0),this[_0x3c13('0xd8')](_0x3c13('0x120'))['to'](this,_0x3c13('0xf1'),this,_0x3c13('0xc9'),(_0x1bafad,_0x322317)=>_0x1bafad?_0x322317[_0x3c13('0x1e')][_0x3c13('0x88')]:0x0),this['_changeView']=null,this[_0x3c13('0x87')]=new Map(),this['adapter']=null,this[_0x3c13('0x10')]=this[_0x3c13('0x11b')][_0x3c13('0x8f')][_0x3c13('0x4d')](_0xad9068);}[_0x3c13('0x32')](){const _0x237ed1=this[_0x3c13('0x11b')],_0x1f04d1=new ShowChangeCommand(_0x237ed1,{'direction':'backward'}),_0x35b211=new ShowChangeCommand(_0x237ed1,{'direction':'forward'});(_0x237ed1['commands'][_0x3c13('0x2b')](_0x3c13('0x9e'),_0x1f04d1),_0x237ed1[_0x3c13('0xb5')][_0x3c13('0x2b')](_0x3c13('0x5b'),_0x35b211),_0x237ed1[_0x3c13('0xb5')][_0x3c13('0x2b')](_0x3c13('0x65'),new RestoreRevisionCommand(_0x237ed1)),this['on']('change:numberOfChanges',()=>{_0x1f04d1[_0x3c13('0x5c')](),_0x35b211[_0x3c13('0x5c')]();}),this[_0x3c13('0x69')](),this[_0x3c13('0xc3')](),_0x237ed1[_0x3c13('0x35')](_0x3c13('0x92')),_0x237ed1[_0x3c13('0x8f')][_0x3c13('0xc')](_0x3c13('0xb4')))&&_0x237ed1[_0x3c13('0x8f')]['get']('WidgetToolbarRepository')[_0x3c13('0x11a')](_0x3c13('0x92'));}async[_0x3c13('0x7b')](_0x3b6090){await this['loadRevisionData'](_0x3b6090);const _0x37a73b={};for(const _0x138500 in _0x3b6090[_0x3c13('0x4b')]){if(_0x3b6090[_0x3c13('0x4b')][_0x138500][_0x3c13('0x54')]&&!_0x3b6090['diffData'][_0x138500]['attachChange'][_0x3c13('0xa7')])continue;const _0xa1bf1a=this[_0x3c13('0xaf')](JSON[_0x3c13('0x9d')](_0x3b6090['diffData'][_0x138500][_0x3c13('0x77')])),_0x1e5298=this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0xbf')][_0x3c13('0x122')],_0x2f5d1a=new _0x2c2406(_0x1e5298,_0xa1bf1a[_0x3c13('0x11e')](_0x499c26=>this['_getViewObj'](_0x499c26)));this[_0x3c13('0x11b')][_0x3c13('0xdb')][_0x3c13('0xdf')][_0x3c13('0x34')](_0x3c13('0x1c')),_0x37a73b[_0x138500]=this[_0x3c13('0x11b')][_0x3c13('0xdb')][_0x3c13('0xdf')][_0x3c13('0xef')](_0x2f5d1a),this['editor'][_0x3c13('0xdb')][_0x3c13('0xdf')]['useFillerType'](_0x3c13('0x68'));}return _0x37a73b;}async[_0x3c13('0xbd')](_0x57a5e8){await this[_0x3c13('0x118')](_0x57a5e8);const _0x13e190={};for(const _0x717d5e in _0x57a5e8['diffData'])_0x57a5e8[_0x3c13('0x4b')][_0x717d5e]['attachChange']&&!_0x57a5e8['diffData'][_0x717d5e][_0x3c13('0x54')][_0x3c13('0xa7')]||(_0x13e190[_0x717d5e]=_0x57a5e8[_0x3c13('0x4b')][_0x717d5e]['attributesAfter']||{});return _0x13e190;}[_0x3c13('0xaf')](_0x55ee3a){return(_0x55ee3a=_0x55ee3a[_0x3c13('0xc4')](_0x51d19e=>!_0x51d19e['name']||'revision-start'!==_0x51d19e[_0x3c13('0xd')]&&'revision-end'!==_0x51d19e[_0x3c13('0xd')]))[_0x3c13('0x6a')](_0x5c3c1e=>{'string'!=typeof _0x5c3c1e&&(_0x5c3c1e[_0x3c13('0x117')]=this[_0x3c13('0xaf')](_0x5c3c1e['children']),_0x5c3c1e[_0x3c13('0x84')]=_0x5c3c1e['attributes'][_0x3c13('0xc4')](_0x42bf69=>!_0x42bf69[0x0]['startsWith'](_0x3c13('0x10f'))));}),_0x55ee3a;}async[_0x3c13('0x93')](_0x373903,_0x48318d,_0x1a69f6=!0x1){if(!this[_0x3c13('0xdd')])return;const _0x442266=this[_0x3c13('0xc9')],_0x50e2f1=this['repository'],_0x33bb61=_0x3c13('0x52')==typeof _0x373903?_0x50e2f1[_0x3c13('0x94')](_0x373903):_0x373903,_0x22b82b=_0x3c13('0x52')==typeof _0x48318d?_0x50e2f1['getRevision'](_0x48318d):_0x48318d,_0x5d000d=_0x33bb61['id'],_0x4942eb=_0x22b82b?_0x22b82b['id']:null;if(!_0x1a69f6&&this['diff']&&this['diff'][_0x3c13('0x126')]===_0x5d000d&&this[_0x3c13('0xc9')]['oldRevisionId']===_0x4942eb)return Promise['resolve']();this[_0x3c13('0xf1')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0x3c13('0xc9')]=new _0x2883e3(_0x5d000d,_0x4942eb);const _0x30dcf5=this[_0x3c13('0x10b')](_0x33bb61,_0x22b82b,!0x0)[_0x3c13('0x11e')](_0x2a6b07=>this[_0x3c13('0x118')](_0x2a6b07));return _0x30dcf5[_0x3c13('0x10a')](new Promise(_0x271bd0=>{setTimeout(_0x271bd0,0x14);})),Promise[_0x3c13('0xcb')](_0x30dcf5)[_0x3c13('0x22')](()=>{if(!this[_0x3c13('0xdd')])return;this['_cleanUp']();const _0x29d221=this[_0x3c13('0xe1')](_0x5d000d,_0x4942eb);for(const _0x295da0 of _0x29d221[_0x3c13('0x1e')])this[_0x3c13('0x87')]['set'](_0x295da0['id'],_0x295da0);this[_0x3c13('0x11b')][_0x3c13('0x11c')]['enqueueChange']({'isUndoable':!0x1},_0x5bfe25=>{for(const _0x62564d of this['editor'][_0x3c13('0x11c')]['document'][_0x3c13('0x67')]())_0x5bfe25[_0x3c13('0xe7')](_0x62564d);for(const _0x14c790 of Object[_0x3c13('0xe3')](_0x29d221[_0x3c13('0x11c')])){const _0x13f125=_0x5bfe25[_0x3c13('0xaa')](_0x14c790);for(const _0x3c329f of Object['keys'](_0x29d221['attributes'][_0x14c790]))_0x5bfe25[_0x3c13('0xb1')](_0x3c329f,_0x29d221[_0x3c13('0x84')][_0x14c790][_0x3c329f],_0x13f125);_0x5bfe25[_0x3c13('0xc6')](_0x29d221[_0x3c13('0x11c')][_0x14c790],_0x13f125,0x0);}}),this['diff'][_0x3c13('0x97')](this['_sortAndFilterDiffChanges'](_0x29d221['changes'])),this[_0x3c13('0xf1')]=!0x0;})[_0x3c13('0xf2')](_0xfd7014=>{console[_0x3c13('0x62')](_0xfd7014),this[_0x3c13('0xe9')](),_0x442266&&(this[_0x3c13('0xc9')]=_0x442266),this[_0x3c13('0xf1')]=!0x0;});}[_0x3c13('0x56')](_0x1068c4,_0x314dd2){const _0x19bb72=this[_0x3c13('0xb')]['createRevision'](_0x1068c4);return _0x19bb72['on'](_0x3c13('0xf8'),(_0x3b0bf6,_0x781bf9,_0x381467)=>_0x314dd2(_0x781bf9,_0x381467,_0x19bb72)),this['repository'][_0x3c13('0xe2')](_0x19bb72),_0x19bb72;}[_0x3c13('0x118')](_0xc3bc8a){if(!_0xc3bc8a||_0xc3bc8a['diffData'])return Promise[_0x3c13('0x95')]();{const _0x345bec=this['editor'][_0x3c13('0xc0')][_0x3c13('0x4d')](_0x3c13('0x96'));return this[_0x3c13('0xc7')][_0x3c13('0x94')]({'channelId':_0x345bec,'revisionId':_0xc3bc8a['id']})[_0x3c13('0x22')](_0x523ff1=>{_0xc3bc8a[_0x3c13('0xf8')]({'diffData':_0x523ff1[_0x3c13('0x4b')]},!0x0);});}}[_0x3c13('0xe9')](){this[_0x3c13('0x43')]=null,this[_0x3c13('0x6b')](),this[_0x3c13('0xf0')]&&this[_0x3c13('0xf0')][_0x3c13('0x3f')](),this[_0x3c13('0xf0')]=null,this[_0x3c13('0x87')]['clear'](),this[_0x3c13('0x11b')][_0x3c13('0x11c')][_0x3c13('0x5a')]({'isUndoable':!0x1},_0x596734=>{for(const _0x487ed1 of this['editor'][_0x3c13('0x11c')]['document'][_0x3c13('0x67')]())_0x596734[_0x3c13('0xe7')](_0x487ed1);});}[_0x3c13('0x10d')](_0x24e7c7){const _0x361964=[],_0x110c17=new Map();for(const _0x24bb1e of this[_0x3c13('0x11b')]['model'][_0x3c13('0x122')]['getRootNames']()){const _0x32c770=this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0xbf')][_0x3c13('0x45')](_0x24bb1e);if(!_0x32c770)continue;const _0x1483a4=_0x32c770[_0x3c13('0x82')]()['item'](0x0);_0x1483a4&&(_0x361964[_0x3c13('0x10a')](_0x24bb1e),_0x110c17[_0x3c13('0x9c')](_0x24bb1e,_0x1483a4));}return _0x361964[_0x3c13('0x72')]((_0x4625a9,_0x2fe2b9)=>{const _0x40ce18=_0x110c17['get'](_0x4625a9),_0x2e906c=_0x110c17[_0x3c13('0x4d')](_0x2fe2b9);return _0x40ce18['y']-_0x2e906c['y']||_0x40ce18['x']-_0x2e906c['x'];}),(_0x24e7c7=_0x24e7c7[_0x3c13('0xc4')](_0x387857=>_0x361964[_0x3c13('0x107')](_0x387857[_0x3c13('0x105')])))[_0x3c13('0x72')]((_0xa7ce14,_0x2c3ea0)=>_0x361964[_0x3c13('0x90')](_0xa7ce14[_0x3c13('0x105')])-_0x361964[_0x3c13('0x90')](_0x2c3ea0[_0x3c13('0x105')])),_0x24e7c7;}[_0x3c13('0x78')](_0x67ba2b){const _0x3390a9=Array['from'](_0x67ba2b[_0x3c13('0x2')])[_0x3c13('0xc4')](([_0x29b32d,_0x2b7b39])=>_0x29b32d[_0x3c13('0xbb')](_0x3c13('0xf'))&&!_0x2b7b39[_0x3c13('0x6')]),_0x3870b0=Array['from'](this[_0x3c13('0x11b')]['model']['createRangeIn'](_0x67ba2b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3390a9[_0x3c13('0x88')])for(const _0x4c8172 of _0x3870b0){const [_0x56448e,_0x1e9591]=_0x3390a9[0x0],[,_0x45771f,_0x28fb2d]=_0x56448e[_0x3c13('0xb6')](':');if(_0x1e9591[_0x3c13('0x79')][_0x3c13('0x4e')](_0x4c8172[_0x3c13('0xa8')])&&_0x3390a9[_0x3c13('0xeb')](),(_0x4c8172[_0x3c13('0x73')][_0x3c13('0x4e')](_0x1e9591[_0x3c13('0x7d')])||_0x4c8172[_0x3c13('0x73')][_0x3c13('0x115')](_0x1e9591[_0x3c13('0x7d')]))&&(_0x3c13('0x3')==_0x45771f?_0x4c8172[_0x3c13('0x70')]={'userId':_0x28fb2d}:_0x3c13('0x3b')==_0x45771f&&(_0x4c8172[_0x3c13('0x110')]={'userId':_0x28fb2d})),0x0==_0x3390a9[_0x3c13('0x88')])break;}return _0x3870b0;}[_0x3c13('0x7f')](_0x3069c6){const _0x512c3e=new Map();for(let _0x4707a9=0x0;_0x4707a9<_0x3069c6[_0x3c13('0x88')];_0x4707a9++)_0x3c13('0x98')===_0x3069c6[_0x4707a9][_0x3c13('0x66')]?(_0x3069c6[_0x4707a9]['item'][_0x3c13('0x59')]=_0x4707a9,_0x3069c6[_0x4707a9]['item'][_0x3c13('0x30')]=_0x4707a9):(_0x3c13('0xbc')===_0x3069c6[_0x4707a9][_0x3c13('0x66')]?_0x3069c6[_0x4707a9][_0x3c13('0x121')][_0x3c13('0x59')]=_0x4707a9:_0x3c13('0x53')===_0x3069c6[_0x4707a9][_0x3c13('0x66')]&&(_0x3069c6[_0x4707a9]['item']['endIndex']=_0x4707a9),_0x512c3e['set'](_0x3069c6[_0x4707a9]['id'],_0x4707a9));for(const _0x10fda3 of _0x512c3e[_0x3c13('0xf7')]())_0x3c13('0xbc')===_0x3069c6[_0x10fda3][_0x3c13('0x66')]?_0x3069c6[_0x10fda3][_0x3c13('0x121')][_0x3c13('0x30')]=_0x512c3e[_0x3c13('0x4d')](_0x3069c6[_0x10fda3][_0x3c13('0x20')]):_0x3c13('0x53')===_0x3069c6[_0x10fda3][_0x3c13('0x66')]&&(_0x3069c6[_0x10fda3]['item'][_0x3c13('0x59')]=_0x512c3e[_0x3c13('0x4d')](_0x3069c6[_0x10fda3][_0x3c13('0x20')]));}['_processTape'](_0x4a8fd9){for(let _0x49357a=0x0;_0x49357a<_0x4a8fd9['length'];_0x49357a++){if(_0x3c13('0xbc')===_0x4a8fd9[_0x49357a][_0x3c13('0x66')])_0x4a8fd9[_0x49357a][_0x3c13('0x121')][_0x3c13('0x59')]=_0x49357a;else{if(_0x3c13('0x53')===_0x4a8fd9[_0x49357a][_0x3c13('0x66')]){_0x4a8fd9[_0x49357a][_0x3c13('0x121')][_0x3c13('0x30')]=_0x49357a;const _0x2d4b10=_0x4a8fd9[_0x49357a][_0x3c13('0x121')][_0x3c13('0x59')];_0x4a8fd9[_0x2d4b10]['pairId']=_0x4a8fd9[_0x49357a]['id'],_0x4a8fd9[_0x49357a][_0x3c13('0x20')]=_0x4a8fd9[_0x2d4b10]['id'];}else _0x4a8fd9[_0x49357a][_0x3c13('0x121')]['startIndex']=_0x49357a,_0x4a8fd9[_0x49357a][_0x3c13('0x121')][_0x3c13('0x30')]=_0x49357a,_0x4a8fd9[_0x49357a][_0x3c13('0x20')]=null;}_0x4a8fd9[_0x49357a]['markersStart']||(_0x4a8fd9[_0x49357a]['markersStart']=[],_0x4a8fd9[_0x49357a]['markersEnd']=[]);}}[_0x3c13('0xde')](_0x4175be,_0x3f2db9){const _0x28038c=_0x4175be['filter'](_0xce6815=>!_0xce6815['isAdded']);for(let _0x576cba=0x0;_0x576cba<_0x3f2db9['length'];_0x576cba++)_0x3f2db9[_0x576cba][_0x3c13('0x70')]&&(_0x28038c[_0x576cba][_0x3c13('0x70')]=_0x3f2db9[_0x576cba][_0x3c13('0x70')]);}[_0x3c13('0x9')](_0x226584){const _0xfdb589=JSON[_0x3c13('0x9d')](_0x226584),_0x2146a3=this['editor'][_0x3c13('0xb8')]['view'][_0x3c13('0x122')],_0x197492=new _0x2c2406(_0x2146a3,_0xfdb589[_0x3c13('0x11e')](_0x25cab3=>this[_0x3c13('0x2f')](_0x25cab3)));return this[_0x3c13('0x11b')]['data'][_0x3c13('0xce')](_0x197492);}[_0x3c13('0x2f')](_0x5bfb27){const _0x1708f3=this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0xbf')][_0x3c13('0x122')];if(_0x3c13('0x52')==typeof _0x5bfb27)return new _0x3435c4(_0x1708f3,_0x5bfb27);{const _0x4f92dc=_0x5bfb27[_0x3c13('0x117')]['map'](_0x3900f3=>this[_0x3c13('0x2f')](_0x3900f3));return new(tt[_0x5bfb27[(_0x3c13('0x66'))]]||_0x32fc8b)(_0x1708f3,_0x5bfb27[_0x3c13('0xd')],_0x5bfb27[_0x3c13('0x84')],_0x4f92dc);}}['_getDiff'](_0x2290ed,_0x5d138b=null){const _0x51adf8=this['repository'][_0x3c13('0x94')](_0x2290ed),_0x4faf85=_0x5d138b?this['repository'][_0x3c13('0x94')](_0x5d138b):null,_0x310d8d=this[_0x3c13('0x10b')](_0x51adf8,_0x4faf85),_0x340a2a=_0x310d8d[_0x310d8d[_0x3c13('0x88')]-0x1],_0x2685f1=new Map(),_0x411d3f={'model':{},'attributes':{},'changes':[]},_0x27bf96=new Set(),_0x12f1c9=new Map();for(let _0xf0ed9c=_0x310d8d[_0x3c13('0x88')]-0x1;_0xf0ed9c>=0x0;_0xf0ed9c--){const _0x45c6b2=_0x310d8d[_0xf0ed9c];for(const _0x4bf650 of Object['keys'](_0x45c6b2['diffData']))if(_0x45c6b2[_0x3c13('0x4b')][_0x4bf650][_0x3c13('0x54')]){const _0x7e676f=_0x45c6b2[_0x3c13('0x4b')][_0x4bf650][_0x3c13('0x54')];_0x7e676f[_0x3c13('0xa7')]?(_0x27bf96[_0x3c13('0x2b')](_0x4bf650),_0x12f1c9[_0x3c13('0xc')](_0x4bf650)&&_0x12f1c9[_0x3c13('0x4d')](_0x4bf650)[_0x3c13('0x75')]==_0x7e676f[_0x3c13('0x75')]?_0x12f1c9['delete'](_0x4bf650):_0x12f1c9[_0x3c13('0x9c')](_0x4bf650,_0x7e676f)):_0x12f1c9['has'](_0x4bf650)?(_0x27bf96[_0x3c13('0x1f')](_0x4bf650),_0x12f1c9['delete'](_0x4bf650)):(_0x27bf96[_0x3c13('0x2b')](_0x4bf650),_0x12f1c9[_0x3c13('0x9c')](_0x4bf650,_0x7e676f));}else _0x27bf96[_0x3c13('0x2b')](_0x4bf650);}for(const _0x40687e of _0x27bf96){const _0x3035ec=_0x12f1c9[_0x3c13('0xc')](_0x40687e)&&!_0x12f1c9[_0x3c13('0x4d')](_0x40687e)[_0x3c13('0xa7')];let _0xa0e7fe=_0x3035ec?_0x310d8d[_0x3c13('0x88')]-0x1:0x0;const _0x585513=_0x3035ec?-0x1:0x1;for(;_0x310d8d[_0xa0e7fe];){const _0x1b02ec=_0x310d8d[_0xa0e7fe];if(_0x1b02ec[_0x3c13('0x4b')][_0x40687e]){const _0x1da8ef=_0x3035ec?_0x1b02ec[_0x3c13('0x4b')][_0x40687e][_0x3c13('0x63')]:_0x1b02ec[_0x3c13('0x4b')][_0x40687e][_0x3c13('0xed')];_0x411d3f[_0x3c13('0x84')][_0x40687e]=_0x1da8ef?_0x3c5713(_0x1da8ef):{};break;}_0xa0e7fe+=_0x585513;}}for(const _0x2b84e6 of _0x310d8d){_0x2b84e6[_0x3c13('0x11c')]={};for(const _0x5024f6 of _0x2b84e6[_0x3c13('0x112')])_0x2685f1[_0x3c13('0x9c')](_0x5024f6['id'],_0x5024f6);for(const _0x11fae6 of _0x27bf96){const _0x667348=_0x2b84e6[_0x3c13('0x4b')][_0x11fae6]?_0x2b84e6[_0x3c13('0x4b')][_0x11fae6][_0x3c13('0x77')]:'[]',_0x258af4=_0x2b84e6[_0x3c13('0x4b')][_0x11fae6]?_0x2b84e6['diffData'][_0x11fae6]['deletions']:'[]';_0x2b84e6[_0x3c13('0x11c')][_0x11fae6]={'insertions':this[_0x3c13('0x9')](_0x667348),'deletions':this[_0x3c13('0x9')](_0x258af4)};}}for(const _0x58b263 of _0x27bf96){let _0x8cc95=null,_0x2b6e4d=0x0;const _0x3ce9c4=new Map(Array[_0x3c13('0x10c')](_0x51adf8[_0x3c13('0x11c')][_0x58b263][_0x3c13('0x77')]['markers'])[_0x3c13('0xc4')](([_0xdd332e])=>!_0xdd332e[_0x3c13('0xbb')](_0x3c13('0xf'))));let _0x114c49=0x0;for(const _0x5dc1e8 of _0x310d8d){const _0x108ad8=this[_0x3c13('0x78')](_0x5dc1e8[_0x3c13('0x11c')][_0x58b263][_0x3c13('0x77')]);_0x5dc1e8==_0x51adf8?(_0x8cc95=_0x108ad8,_0x2b6e4d=_0x8cc95[_0x3c13('0x88')],_0x8cc95[_0x3c13('0x6a')](_0x59218f=>{_0x59218f['id']=_0x114c49++;}),this['_processTape'](_0x8cc95)):this[_0x3c13('0xde')](_0x8cc95,_0x108ad8);const _0x384be9=_0x8cc95['filter'](_0x5c2058=>!_0x5c2058[_0x3c13('0x70')])[_0x3c13('0x11e')](_0xacce24=>_0xacce24['id']);let _0x5add90=0x0;const _0x2d3a8b=this[_0x3c13('0x78')](_0x5dc1e8['model'][_0x58b263][_0x3c13('0xb7')]);_0x2d3a8b[_0x3c13('0x6a')](_0x195518=>{_0x195518[_0x3c13('0x110')]?_0x195518['id']=_0x2b6e4d++:_0x195518['id']=_0x384be9[_0x5add90++];}),this[_0x3c13('0x46')](_0x2d3a8b),this['_setDistance'](_0x8cc95,'isAdded'),this[_0x3c13('0x21')](_0x2d3a8b,_0x3c13('0x110')),_0x5dc1e8==_0x51adf8&&this['_markMarkers'](_0x8cc95,_0x3ce9c4),_0x8cc95=this[_0x3c13('0xa9')](_0x8cc95,_0x2d3a8b),this[_0x3c13('0x7f')](_0x8cc95),this[_0x3c13('0x21')](_0x8cc95,_0x3c13('0x110'));}_0x8cc95=_0x8cc95[_0x3c13('0xc4')](_0x3f8332=>!(_0x3f8332[_0x3c13('0x70')]&&_0x3f8332[_0x3c13('0x110')]));const _0xf883f0=new Map(_0x340a2a['model'][_0x58b263]['deletions'][_0x3c13('0x2')]),_0x387679=new Set(_0x3ce9c4['keys']());for(const _0x422660 of _0xf883f0[_0x3c13('0xe3')]())_0x387679[_0x3c13('0x1f')](_0x422660);this[_0x3c13('0xae')](_0x8cc95,_0x387679),this['_fixObsoleteTags'](_0x8cc95),_0x8cc95=this[_0x3c13('0x16')](_0x8cc95),_0x8cc95=this[_0x3c13('0x4')](_0x8cc95),_0x8cc95=this[_0x3c13('0x102')](_0x8cc95);const {root:_0x545f22,changes:_0x3ef82d}=this[_0x3c13('0x1d')](_0x8cc95,_0x2685f1,_0x58b263);_0x411d3f[_0x3c13('0x11c')][_0x58b263]=_0x545f22;const _0x5089e0=_0x12f1c9[_0x3c13('0x4d')](_0x58b263);if(_0x5089e0){const _0x3bccfb=_0x2685f1[_0x3c13('0x4d')](_0x5089e0['userId']),_0x772063=new _0x164e19({'author':_0x3bccfb,'type':_0x5089e0['isAttached']?'add':_0x3c13('0x123'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x58b263});_0x3ef82d[_0x3c13('0x8d')](_0x772063),_0x411d3f['attributes'][_0x58b263][_0x3c13('0xc2')]=_0x772063['id'];}_0x411d3f['changes']=_0x411d3f[_0x3c13('0x1e')][_0x3c13('0xfc')](_0x3ef82d);}return _0x411d3f;}['_markMarkers'](_0x524302,_0x572924){for(let _0xab04a8=0x0;_0xab04a8<_0x524302['length'];_0xab04a8++)for(const [_0x32296c,_0x356d57]of _0x572924)_0x356d57[_0x3c13('0x7d')][_0x3c13('0x4e')](_0x524302[_0xab04a8][_0x3c13('0x73')])&&_0x524302[_0xab04a8][_0x3c13('0x83')]['push'](_0x32296c),_0x356d57['end'][_0x3c13('0x4e')](_0x524302[_0xab04a8][_0x3c13('0xa8')])&&_0x524302[_0xab04a8]['markersEnd'][_0x3c13('0x10a')](_0x32296c);}[_0x3c13('0xa9')](_0xab8bd0,_0x48185a){let _0x2fb85d=[],_0x156df9=0x0,_0x4a9560=0x0;for(;_0x156df9<_0xab8bd0['length']||_0x4a9560<_0x48185a[_0x3c13('0x88')];){const _0x5003ee=_0xab8bd0[_0x156df9]||{},_0x27c43d=_0x48185a[_0x4a9560]||{};if(_0x5003ee['id']==_0x27c43d['id'])_0x156df9++,_0x4a9560++,_0x2fb85d[_0x3c13('0x10a')](_0x5003ee);else{if(_0x27c43d[_0x3c13('0x110')]&&_0x5003ee[_0x3c13('0x70')]){const {commonTape:_0x2b2372,iEnd:_0x436faf,jEnd:_0x8a3324}=this['_threeWayMerge'](_0xab8bd0,_0x156df9,_0x48185a,_0x4a9560);_0x2fb85d=_0x2fb85d[_0x3c13('0xfc')](_0x2b2372),_0x156df9=_0x436faf,_0x4a9560=_0x8a3324;}else _0x27c43d[_0x3c13('0x110')]?(_0x4a9560++,_0x2fb85d['push'](_0x27c43d)):(_0x156df9++,_0x2fb85d['push'](_0x5003ee));}}return _0x2fb85d;}[_0x3c13('0xae')](_0x2683cb,_0x409f31){const _0x4f8319=[];for(let _0x256ce2=0x0;_0x256ce2<_0x2683cb['length'];_0x256ce2++){for(let _0x110570=0x0;_0x110570<_0x2683cb[_0x256ce2][_0x3c13('0x83')][_0x3c13('0x88')];_0x110570++){const _0x4770e5=_0x2683cb[_0x256ce2]['markersStart'][_0x110570];if(!_0x409f31[_0x3c13('0xc')](_0x4770e5))continue;const {group:_0x50de9c,type:_0x577c47,authorId:_0x175dfe}=_0x54daf3(_0x4770e5);_0x3c13('0x109')!=_0x50de9c||_0x3c13('0x3')!=_0x577c47&&_0x3c13('0x3b')!=_0x577c47||(_0x4f8319['unshift']({'type':_0x577c47,'name':_0x4770e5,'userId':_0x175dfe}),_0x2683cb[_0x256ce2]['markersStart'][_0x3c13('0x61')](_0x110570,0x1),_0x110570--);}_0x31f2f6(_0x2683cb[_0x256ce2]);for(let _0x6fa875=0x0;_0x6fa875<_0x2683cb[_0x256ce2][_0x3c13('0x9a')][_0x3c13('0x88')];_0x6fa875++){const _0x3c2058=_0x2683cb[_0x256ce2][_0x3c13('0x9a')][_0x6fa875];if(!_0x409f31[_0x3c13('0xc')](_0x3c2058))continue;const {group:_0x32a2e0,type:_0x1fe9ef}=_0x54daf3(_0x3c2058);if('revision-suggestion'!=_0x32a2e0||_0x3c13('0x3')!=_0x1fe9ef&&_0x3c13('0x3b')!=_0x1fe9ef)continue;_0x2683cb[_0x256ce2][_0x3c13('0x9a')][_0x3c13('0x61')](_0x6fa875,0x1),_0x6fa875--;const _0x566506=_0x4f8319[_0x3c13('0x4c')](_0x364e36=>_0x364e36[_0x3c13('0xd')]==_0x3c2058);_0x566506>-0x1&&_0x4f8319['splice'](_0x566506,0x1);}}function _0x54daf3(_0xef81fb){const _0x1332ab=_0xef81fb['split'](':');return{'group':_0x1332ab[0x0],'type':_0x1332ab[0x1],'subType':_0x1332ab['length']>=0x5?_0x1332ab[0x2]:null,'id':_0x1332ab['length']<0x5?_0x1332ab[0x2]:_0x1332ab[0x3],'authorId':_0x1332ab[_0x3c13('0x88')]<0x5?_0x1332ab[0x3]:_0x1332ab[0x4],'markerCount':0x6==_0x1332ab[_0x3c13('0x88')]?_0x1332ab[0x5]:null};}function _0x31f2f6(_0x34a75c){for(let _0x201f52=0x0;_0x201f52<_0x4f8319[_0x3c13('0x88')];_0x201f52++){if(_0x34a75c[_0x3c13('0x70')]&&'insertion'==_0x4f8319[_0x201f52][_0x3c13('0x66')])return _0x34a75c[_0x3c13('0x8a')]=_0x4f8319[_0x201f52],void delete _0x34a75c[_0x3c13('0x70')];if(!_0x34a75c[_0x3c13('0x70')]&&!_0x34a75c['isRemoved']&&'deletion'==_0x4f8319[_0x201f52][_0x3c13('0x66')])return void(_0x34a75c[_0x3c13('0x8c')]=_0x4f8319[_0x201f52]);}}}['_setDistance'](_0x37ef8c,_0x2a3542){let _0x106750=0x0,_0x732499=!0x1;const _0x223da2=new Map();for(const _0x212ca7 of _0x37ef8c)_0x212ca7[_0x2a3542]?_0x732499&&(_0x106750++,_0x732499=!0x1):(_0x106750++,_0x732499=!0x0),_0x223da2['set'](_0x212ca7['id'],_0x106750);for(let _0x2a534e=0x0;_0x2a534e<_0x37ef8c[_0x3c13('0x88')];_0x2a534e++){if(_0x3c13('0x110')==_0x2a3542&&_0x37ef8c[_0x2a534e][_0x3c13('0x70')]||'isAdded'==_0x2a3542&&_0x37ef8c[_0x2a534e][_0x3c13('0x110')])continue;if('text'==_0x37ef8c[_0x2a534e][_0x3c13('0x66')]){_0x37ef8c[_0x2a534e][_0x3c13('0x89')]=0x0;continue;}const _0x4fa4cd=_0x223da2[_0x3c13('0x4d')](_0x37ef8c[_0x2a534e]['pairId']),_0x3f2709=_0x223da2['get'](_0x37ef8c[_0x2a534e]['id']);_0x37ef8c[_0x2a534e][_0x3c13('0x89')]=_0x4fa4cd-_0x3f2709;}}[_0x3c13('0x10b')](_0x81a6f6,_0x4cc760,_0x29e189=!0x1){const _0xb4793=[];let _0x54a2fd=this[_0x3c13('0xb')][_0x3c13('0x64')](_0x81a6f6),_0x29fd0c=this[_0x3c13('0xb')][_0x3c13('0x64')](_0x4cc760);for(-0x1==_0x29fd0c&&(_0x29fd0c=this[_0x3c13('0xb')]['_revisions']['length'],_0x29e189=!0x1);_0x54a2fd<_0x29fd0c;)_0xb4793[_0x3c13('0x10a')](this['repository']['getRevision'](_0x54a2fd)),_0x54a2fd++;return _0x29e189&&_0xb4793[_0x3c13('0x10a')](this[_0x3c13('0xb')][_0x3c13('0x94')](_0x54a2fd)),_0xb4793;}[_0x3c13('0x5d')](_0x5d1323,_0x5625ec,_0x23f992,_0xec1c26){const _0xe234d3=this[_0x3c13('0x11b')]['model'][_0x3c13('0xcd')];let _0x55e9d4=_0x5625ec;for(;_0x5d1323[_0x55e9d4]&&_0x5d1323[_0x55e9d4][_0x3c13('0x70')];)_0x55e9d4++;let _0x1215bd=_0xec1c26;for(;_0x23f992[_0x1215bd]&&_0x23f992[_0x1215bd][_0x3c13('0x110')];)_0x1215bd++;_0x2a7497(_0x5d1323,_0x5625ec,_0x55e9d4),_0x2a7497(_0x23f992,_0xec1c26,_0x1215bd);const _0x3a0751=_0x23f992[_0x3c13('0x99')](_0xec1c26,_0x1215bd)[_0x3c13('0xfc')](_0x5d1323[_0x3c13('0x99')](_0x5625ec,_0x55e9d4));return _0x3a0751['sort']((_0x900d5,_0x5d73c5)=>_0x900d5[_0x3c13('0xd0')]!=_0x5d73c5[_0x3c13('0xd0')]?_0x900d5[_0x3c13('0xd0')]-_0x5d73c5['side']:_0x900d5[_0x3c13('0xea')]!=_0x5d73c5[_0x3c13('0xea')]?_0x900d5[_0x3c13('0xea')]-_0x5d73c5[_0x3c13('0xea')]:_0x900d5[_0x3c13('0x89')]!=_0x5d73c5[_0x3c13('0x89')]?_0x5d73c5[_0x3c13('0x89')]-_0x900d5['distance']:!!_0x900d5[_0x3c13('0x70')]!=!!_0x5d73c5['isAdded']?-0x1==_0x900d5['side']||0x0==_0x900d5['side']?_0x900d5['isAdded']?-0x1:0x1:_0x900d5['isAdded']?0x1:-0x1:_0x900d5[_0x3c13('0xad')]-_0x5d73c5[_0x3c13('0xad')]),{'commonTape':_0x3a0751,'iEnd':_0x55e9d4,'jEnd':_0x1215bd};function _0x2a7497(_0x3a031a,_0x49c0bb,_0x169ca9){let _0x103ba4=-0x1,_0x55504d=Number[_0x3c13('0x86')],_0x79d3ae=!0x0;for(let _0xe6d132=_0x49c0bb;_0xe6d132<_0x169ca9;_0xe6d132++)if(_0xe234d3[_0x3c13('0xf4')](_0x3a031a[_0xe6d132]['item'])||(_0x79d3ae=!0x1),_0x3a031a[_0xe6d132]['item']['startIndex']<_0x49c0bb&&(_0x103ba4=_0xe6d132),_0x3a031a[_0xe6d132]['item'][_0x3c13('0x30')]>=_0x169ca9){_0x55504d=_0xe6d132;break;}_0x79d3ae&&(_0x103ba4=_0x169ca9-0x1);for(let _0x50a084=_0x49c0bb;_0x50a084<_0x169ca9;_0x50a084++)_0x3a031a[_0x50a084][_0x3c13('0xd0')]=_0x50a084<=_0x103ba4?-0x1:_0x50a084<_0x55504d?0x0:0x1,_0x3a031a[_0x50a084]['index']=_0x50a084;let _0x33458=0x0;for(let _0x561850=_0x49c0bb;_0x561850<=_0x103ba4;_0x561850++)0x0==_0x3a031a[_0x561850]['distance']?_0x3a031a[_0x561850][_0x3c13('0xea')]=_0x33458:(_0x33458++,_0x3a031a[_0x561850]['level']=_0x33458,_0x33458++);for(let _0x4f916e=_0x49c0bb;_0x4f916e<_0x169ca9;_0x4f916e++)0x0==_0x3a031a[_0x4f916e][_0x3c13('0xd0')]&&(_0x3a031a[_0x4f916e]['level']=_0x33458);_0x33458=0x0;for(let _0x14f0e2=_0x169ca9-0x1;_0x14f0e2>=_0x55504d;_0x14f0e2--)0x0==_0x3a031a[_0x14f0e2]['distance']?_0x3a031a[_0x14f0e2]['level']=_0x33458:(_0x33458--,_0x3a031a[_0x14f0e2]['level']=_0x33458,_0x33458--);}}[_0x3c13('0xf5')](_0xf3d06e){const _0x1a60ed=new Map(),_0x54c779=this[_0x3c13('0x11b')]['model'][_0x3c13('0xcd')];for(let _0x2e7ce5=0x1;_0x2e7ce5<_0xf3d06e[_0x3c13('0x88')];_0x2e7ce5++){let _0x12f644,_0x5277ed,_0x2652a8;const _0x32c975=_0xf3d06e[_0x2e7ce5],_0x5bb404=_0xf3d06e[_0x2e7ce5-0x1];if('text'==_0x32c975[_0x3c13('0x66')])continue;if(_0x32c975[_0x3c13('0x66')]!=_0x5bb404[_0x3c13('0x66')])continue;if(!_0x54c779[_0x3c13('0x91')](_0x5bb404[_0x3c13('0x121')])||_0x54c779['isLimit'](_0x5bb404['item']))continue;if(!_0x54c779[_0x3c13('0x91')](_0x32c975[_0x3c13('0x121')])||_0x54c779[_0x3c13('0x10e')](_0x32c975['item']))continue;if((_0xf3d06e[_0x2e7ce5][_0x3c13('0x70')]||_0xf3d06e[_0x2e7ce5]['isAddSuggestion'])&&_0xf3d06e[_0x2e7ce5-0x1][_0x3c13('0x110')])_0x12f644=_0xf3d06e[_0x2e7ce5],_0x5277ed=_0xf3d06e[_0x2e7ce5-0x1],_0x2652a8=_0x2e7ce5-0x1;else{if(!_0xf3d06e[_0x2e7ce5][_0x3c13('0x110')]||!_0xf3d06e[_0x2e7ce5-0x1][_0x3c13('0x70')]&&!_0xf3d06e[_0x2e7ce5-0x1][_0x3c13('0x8a')])continue;_0x12f644=_0xf3d06e[_0x2e7ce5-0x1],_0x5277ed=_0xf3d06e[_0x2e7ce5],_0x2652a8=_0x2e7ce5;}const _0x15494b=_0x12f644[_0x3c13('0xea')]==_0x5277ed[_0x3c13('0xea')],_0x101c5b=Math[_0x3c13('0xd1')](_0x12f644['level'])<Math[_0x3c13('0xd1')](_0x5277ed[_0x3c13('0xea')])&&0x0==_0x5277ed[_0x3c13('0x89')];(_0x15494b||_0x101c5b)&&(_0x1a60ed[_0x3c13('0x9c')](_0x5277ed['id'],_0x12f644['id']),_0xf3d06e['splice'](_0x2652a8,0x1),_0x2e7ce5--,_0x12f644[_0x3c13('0x70')]=!0x1);}for(let _0x196ae7=0x0;_0x196ae7<_0xf3d06e[_0x3c13('0x88')];_0x196ae7++)_0x1a60ed[_0x3c13('0xc')](_0xf3d06e[_0x196ae7]['pairId'])&&(_0xf3d06e[_0x196ae7]['pairId']=_0x1a60ed['get'](_0xf3d06e[_0x196ae7][_0x3c13('0x20')]));}[_0x3c13('0x16')](_0xa13d98){const _0x3fdc26=new Set(_0xa13d98[_0x3c13('0x11e')](_0x4151fd=>_0x4151fd['id']));for(let _0x591a19=0x0;_0x591a19<_0xa13d98[_0x3c13('0x88')];_0x591a19++)_0x3fdc26[_0x3c13('0xc')](_0xa13d98[_0x591a19][_0x3c13('0x20')])||0x0==_0xa13d98[_0x591a19][_0x3c13('0x89')]||(_0xa13d98[_0x591a19]['isIncorrect']=!0x0);return _0xa13d98[_0x3c13('0xc4')](_0x36b8d6=>!_0x36b8d6['isIncorrect']);}[_0x3c13('0x4')](_0x1f3c8a){const _0x49e38a=new Set();for(let _0x3cc39c=0x0;_0x3cc39c<_0x1f3c8a[_0x3c13('0x88')];_0x3cc39c++){if(_0x49e38a[_0x3c13('0xc')](_0x1f3c8a[_0x3cc39c]['id'])&&_0x1f3c8a[_0x3cc39c]['isRemoved']&&(_0x1f3c8a[_0x3cc39c][_0x3c13('0xec')]=!0x0),_0x1f3c8a[_0x3cc39c]['isIncorrect'])continue;if(0x0==_0x1f3c8a[_0x3cc39c][_0x3c13('0x89')])continue;if(_0x3c13('0xbc')!=_0x1f3c8a[_0x3cc39c][_0x3c13('0x66')])continue;if(null==_0x1f3c8a[_0x3cc39c][_0x3c13('0x20')])continue;let _0x2aaa5b=_0x3cc39c+0x1,_0x248ff3=0x0;for(;_0x1f3c8a[_0x2aaa5b]['id']!=_0x1f3c8a[_0x3cc39c][_0x3c13('0x20')];)_0x3c13('0xbc')==_0x1f3c8a[_0x2aaa5b][_0x3c13('0x66')]?_0x248ff3++:_0x3c13('0x53')==_0x1f3c8a[_0x2aaa5b]['type']&&_0x248ff3--,_0x2aaa5b++;if(0x0!=_0x248ff3){if(_0x1f3c8a[_0x3cc39c]['isRemoved'])_0x1f3c8a[_0x3cc39c][_0x3c13('0xec')]=!0x0;else for(;_0x2aaa5b!=_0x3cc39c;)_0x1f3c8a[_0x2aaa5b][_0x3c13('0x110')]&&0x0!=_0x1f3c8a[_0x2aaa5b][_0x3c13('0x89')]&&(_0x1f3c8a[_0x2aaa5b][_0x3c13('0xec')]=!0x0,_0x49e38a[_0x3c13('0x2b')](_0x1f3c8a[_0x2aaa5b][_0x3c13('0x20')])),_0x2aaa5b--;}}return _0x1f3c8a[_0x3c13('0xc4')](_0x2d7546=>!_0x2d7546['isIncorrect']);}[_0x3c13('0x102')](_0x524f55){const _0x30b72e=this['editor'][_0x3c13('0x11c')][_0x3c13('0xcd')];for(let _0x5ba0d1=0x0;_0x5ba0d1<_0x524f55[_0x3c13('0x88')];_0x5ba0d1++){if(!(_0x524f55[_0x5ba0d1][_0x3c13('0x70')]||_0x524f55[_0x5ba0d1][_0x3c13('0x8a')]||_0x524f55[_0x5ba0d1][_0x3c13('0x110')]||_0x524f55[_0x5ba0d1][_0x3c13('0x8c')]))continue;if(0x0==_0x524f55[_0x5ba0d1]['distance'])continue;const _0x1c50d0=_0x524f55[_0x5ba0d1]['item'];_0x30b72e['isBlock'](_0x1c50d0)||_0x30b72e['isLimit'](_0x1c50d0)||(_0x524f55[_0x5ba0d1]['isAdded']&&delete _0x524f55[_0x5ba0d1]['isAdded'],_0x524f55[_0x5ba0d1][_0x3c13('0x8a')]&&delete _0x524f55[_0x5ba0d1]['isAddSuggestion'],_0x524f55[_0x5ba0d1][_0x3c13('0x8c')]&&delete _0x524f55[_0x5ba0d1]['isRemoveSuggestion'],_0x524f55[_0x5ba0d1][_0x3c13('0x110')]&&(_0x524f55[_0x5ba0d1][_0x3c13('0xec')]=!0x0));}return _0x524f55[_0x3c13('0xc4')](_0x408795=>!_0x408795[_0x3c13('0xec')]);}[_0x3c13('0x1d')](_0x214641,_0x390b9a,_0x79f2bb){const _0x2bea07=new _0x357518(),_0xdb1296=[],_0x39d725=new Map(),_0x36237b=this['editor']['model'],_0xcfef43=_0x36237b[_0x3c13('0xcd')],_0x31b189=[_0x2bea07],_0x28d500={},_0x502170={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5e8978=null;const _0x1ad802=[0x0];for(let _0x1fc11a=0x0;_0x1fc11a<_0x214641[_0x3c13('0x88')];_0x1fc11a++){let _0x12db9e,_0x1491ab;if(_0x3c13('0xbc')===_0x214641[_0x1fc11a][_0x3c13('0x66')]){_0x12db9e=_0x36237b[_0x3c13('0x41')](_0x2bea07,_0x1ad802);const _0x438c87=new _0x5020ed(_0x214641[_0x1fc11a][_0x3c13('0x121')][_0x3c13('0xd')],_0x214641[_0x1fc11a][_0x3c13('0x121')]['getAttributes']());_0x31b189[0x0][_0x3c13('0x39')](_0x438c87),_0x1ad802[_0x3c13('0x10a')](0x0),_0x31b189[_0x3c13('0x8d')](_0x438c87),_0x1491ab=_0x36237b[_0x3c13('0x41')](_0x2bea07,_0x1ad802),_0x5e8978=null;}else{if(_0x3c13('0x53')===_0x214641[_0x1fc11a][_0x3c13('0x66')])_0x31b189[_0x3c13('0xeb')](),_0x12db9e=_0x36237b['createPositionFromPath'](_0x2bea07,_0x1ad802),_0x1ad802[_0x3c13('0x18')](),_0x1ad802[_0x1ad802['length']-0x1]++,_0x1491ab=_0x36237b['createPositionFromPath'](_0x2bea07,_0x1ad802),_0x5e8978=null;else{if(_0x12db9e=_0x36237b[_0x3c13('0x41')](_0x2bea07,_0x1ad802),_0x5e8978&&_0x68f84d(_0x5e8978,_0x214641[_0x1fc11a]['item']))_0x5e8978['_data']+=_0x214641[_0x1fc11a]['item']['data'];else{const _0x5b276f=new _0x57709f(_0x214641[_0x1fc11a][_0x3c13('0x121')][_0x3c13('0xdb')],_0x214641[_0x1fc11a][_0x3c13('0x121')][_0x3c13('0xff')]());_0x31b189[0x0][_0x3c13('0x39')](_0x5b276f),_0x5e8978=_0x5b276f;}_0x1ad802[_0x1ad802[_0x3c13('0x88')]-0x1]+=_0x214641[_0x1fc11a][_0x3c13('0x121')][_0x3c13('0x24')],_0x1491ab=_0x36237b[_0x3c13('0x41')](_0x2bea07,_0x1ad802);}}for(const _0x294232 of _0x214641[_0x1fc11a][_0x3c13('0x83')])_0x39d725['set'](_0x294232,{'start':_0x12db9e,'end':null});_0x499905(_0x3c13('0x8c'),_0x1fc11a,_0x12db9e,_0x1491ab),_0x499905(_0x3c13('0x8a'),_0x1fc11a,_0x12db9e,_0x1491ab),_0x499905(_0x3c13('0x110'),_0x1fc11a,_0x12db9e,_0x1491ab),_0x499905(_0x3c13('0x70'),_0x1fc11a,_0x12db9e,_0x1491ab);for(const _0x24586f of _0x214641[_0x1fc11a][_0x3c13('0x9a')]){_0x39d725['get'](_0x24586f)[_0x3c13('0x79')]=_0x1491ab;}}for(const [_0x5d290f,_0x47f17d]of _0x39d725){const _0x5ce116=this[_0x3c13('0x11b')][_0x3c13('0x11c')][_0x3c13('0xcc')](_0x47f17d[_0x3c13('0x7d')],_0x47f17d[_0x3c13('0x79')]);_0x2bea07[_0x3c13('0x2')][_0x3c13('0x9c')](_0x5d290f,_0x5ce116);}return _0xdb1296[_0x3c13('0x72')]((_0x1ffab0,_0x1a776d)=>{const _0x3d7fa4=_0x2bea07[_0x3c13('0x2')]['get'](_0x3c13('0xf')+_0x1ffab0['id']),_0x37dd44=_0x2bea07[_0x3c13('0x2')][_0x3c13('0x4d')](_0x3c13('0xf')+_0x1a776d['id']);return _0x3d7fa4[_0x3c13('0x7d')][_0x3c13('0xcf')](_0x37dd44[_0x3c13('0x7d')])?-0x1:_0x3d7fa4[_0x3c13('0x7d')][_0x3c13('0x115')](_0x37dd44[_0x3c13('0x7d')])?0x1:_0x3d7fa4[_0x3c13('0x79')][_0x3c13('0xcf')](_0x37dd44['end'])?-0x1:_0x3d7fa4['end'][_0x3c13('0x115')](_0x37dd44[_0x3c13('0x79')])?0x1:'add'===_0x1ffab0[_0x3c13('0x66')]?-0x1:0x1;}),{'root':_0x2bea07,'changes':_0xdb1296};function _0x499905(_0x171568,_0x4da63b,_0x1ca7a0,_0x491aae){const _0x15d460=!!_0x214641[_0x4da63b][_0x171568],_0x59ced9=_0x15d460?_0x214641[_0x4da63b][_0x171568][_0x3c13('0x75')]:null,_0x27ac00=_0x4da63b===_0x214641[_0x3c13('0x88')]-0x1,_0x392551=_0x502170[_0x171568][0x0],_0x4d7a32=_0xcfef43[_0x3c13('0x11')](_0x214641[_0x4da63b][_0x3c13('0x121')]);!_0x28d500[_0x171568]&&_0x15d460?_0x28d500[_0x171568]={'start':_0x1ca7a0,'tapeItem':_0x214641[_0x4da63b],'userId':_0x59ced9,'type':_0x171568}:_0x28d500[_0x171568]&&!_0x15d460?(_0x28d500[_0x171568]['end']=_0x1ca7a0,_0x23a990(_0x28d500[_0x171568]),_0x28d500[_0x171568]=null):_0x28d500[_0x171568]&&_0x15d460&&_0x28d500[_0x171568][_0x3c13('0x75')]!==_0x59ced9&&(_0x28d500[_0x171568][_0x3c13('0x79')]=_0x1ca7a0,_0x392551&&_0x392551[_0x3c13('0x75')]===_0x28d500[_0x171568]['userId']||_0x23a990(_0x28d500[_0x171568]),_0x28d500[_0x171568]={'start':_0x1ca7a0,'tapeItem':_0x214641[_0x4da63b],'userId':_0x59ced9,'type':_0x171568}),_0x28d500[_0x171568]&&_0x4d7a32&&('elementStart'!==_0x214641[_0x4da63b][_0x3c13('0x66')]||_0x392551&&_0x392551[_0x3c13('0x75')]===_0x59ced9||_0x502170[_0x171568][_0x3c13('0x8d')]({'userId':_0x59ced9,'object':_0x214641[_0x4da63b][_0x3c13('0x121')],'change':_0x28d500[_0x171568]}),_0x3c13('0x53')===_0x214641[_0x4da63b][_0x3c13('0x66')]&&_0x392551&&_0x392551[_0x3c13('0x9f')]===_0x214641[_0x4da63b][_0x3c13('0x121')]&&(_0x502170[_0x171568][_0x3c13('0xeb')](),_0x28d500[_0x171568]=_0x392551[_0x3c13('0x125')])),_0x28d500[_0x171568]&&_0x27ac00&&(_0x28d500[_0x171568][_0x3c13('0x79')]=_0x491aae,_0x23a990(_0x28d500[_0x171568]),_0x28d500[_0x171568]=null);}function _0x23a990({start:_0xa29ba2,end:_0x1003e3,tapeItem:_0xd89442,userId:_0x4e455f,type:_0x403f39}){const _0x1aaee0=_0xd89442[_0x3c13('0x121')],_0x36a870=_0x36237b['schema'][_0x3c13('0x91')](_0x1aaee0)&&!_0x36237b[_0x3c13('0xcd')][_0x3c13('0x10e')](_0x1aaee0),_0x5e08eb=_0xa29ba2[_0x3c13('0xac')]==_0x1003e3[_0x3c13('0xe4')]&&_0x1003e3[_0x3c13('0x80')];if(_0x36a870&&_0x5e08eb)return;const _0x381378=_0x36237b[_0x3c13('0xcc')](_0xa29ba2,_0x1003e3),_0x39c276=_0x390b9a['get'](_0x4e455f),_0x92de53=new _0x164e19({'author':_0x39c276,'type':_0x3c13('0x70')==_0x403f39||_0x3c13('0x8a')==_0x403f39?'add':_0x3c13('0x123'),'data':{'isSuggestion':_0x3c13('0x8a')==_0x403f39||_0x3c13('0x8c')==_0x403f39},'createdAt':new Date(),'rootName':_0x79f2bb});_0xdb1296[_0x3c13('0x10a')](_0x92de53),_0x2bea07[_0x3c13('0x2')][_0x3c13('0x9c')](_0x3c13('0xf')+_0x92de53['id'],_0x381378);}function _0x68f84d(_0x4c082f,_0x41c5b9){const _0x3b306c=_0x4c082f[_0x3c13('0xff')](),_0x2d0c64=_0x41c5b9[_0x3c13('0xff')]();for(const _0x343001 of _0x3b306c){if(_0x343001[0x1]!==_0x41c5b9[_0x3c13('0xd4')](_0x343001[0x0]))return!0x1;_0x2d0c64[_0x3c13('0x3a')]();}return _0x2d0c64[_0x3c13('0x3a')]()[_0x3c13('0x2e')];}}[_0x3c13('0x69')](){this[_0x3c13('0x11b')]['conversion']['for'](_0x3c13('0xba'))['dataToMarker']({'view':'revision'}),this[_0x3c13('0x11b')][_0x3c13('0x6d')]['for']('editingDowncast')[_0x3c13('0x6e')]({'model':'revision','view':_0x3adeb8=>{const _0x2cda8b=_0x3adeb8['markerName']['split'](':')[0x1],_0x5a190e=this[_0x3c13('0xc1')](_0x2cda8b);if(!_0x5a190e)return null;const _0x10b133=_0x3c13('0x2b')==_0x5a190e[_0x3c13('0x66')]?_0x3c13('0x3'):_0x3c13('0x3b'),_0x5acd29=['ck-suggestion-marker',_0x3c13('0x6f')+_0x10b133];return _0x5a190e[_0x3c13('0xdb')][_0x3c13('0xe6')]&&_0x5acd29['push'](_0x3c13('0x6f')+_0x10b133+_0x3c13('0xda')),this[_0x3c13('0x43')]==_0x5a190e&&_0x5acd29[_0x3c13('0x10a')](_0x3c13('0x5e')),{'classes':_0x5acd29,'attributes':{'data-change-id':_0x2cda8b}};}}),this[_0x3c13('0x11b')][_0x3c13('0x6d')][_0x3c13('0x0')](_0x3c13('0xba'))[_0x3c13('0x2b')](_0x3a33e1=>{_0x3a33e1['on'](_0x3c13('0x2d'),(_0x482e24,_0x5ccf94,_0x53130e)=>{const _0x4306bd=_0x5ccf94[_0x3c13('0x12')][_0x3c13('0x28')](0x0);if(!_0x4306bd||!_0x4306bd['is']('element','code'))return;if(!_0x53130e[_0x3c13('0x106')][_0x3c13('0xd7')](_0x4306bd,{'attributes':[_0x3c13('0x7c'),_0x3c13('0xdc')]}))return;const _0x35d4af=_0x5ccf94['modelRange'][_0x3c13('0x7d')]['nodeAfter'];_0x53130e[_0x3c13('0xa4')][_0x3c13('0xb1')](_0x3c13('0x7c'),_0x4306bd[_0x3c13('0xd4')]('vid_start'),_0x35d4af),_0x53130e[_0x3c13('0xa4')]['setAttribute']('vid_end',_0x4306bd[_0x3c13('0xd4')](_0x3c13('0xdc')),_0x35d4af);},{'priority':_0x3c13('0x37')});}),this['editor'][_0x3c13('0x6d')][_0x3c13('0x0')](_0x3c13('0xba'))[_0x3c13('0x2b')](_0x27df71=>{_0x27df71['on'](_0x3c13('0xb0'),(_0x4d871f,_0xf42f27,_0xc962fa)=>{if(!_0xc962fa[_0x3c13('0x106')][_0x3c13('0xd7')](_0xf42f27[_0x3c13('0x12')],{'attributes':[_0x3c13('0x7c'),_0x3c13('0xdc')]}))return;if(_0xf42f27[_0x3c13('0x76')]['isCollapsed'])return;const _0x1583f0=_0xf42f27[_0x3c13('0x76')][_0x3c13('0x7d')][_0x3c13('0xac')];_0x1583f0[_0x3c13('0xa3')](_0x3c13('0x7c'))||_0x1583f0['hasAttribute'](_0x3c13('0x50'))||(_0xc962fa[_0x3c13('0xa4')][_0x3c13('0xb1')](_0x3c13('0x7c'),_0xf42f27[_0x3c13('0x12')][_0x3c13('0xd4')](_0x3c13('0x7c')),_0x1583f0),_0xc962fa['writer'][_0x3c13('0xb1')](_0x3c13('0xdc'),_0xf42f27['viewItem'][_0x3c13('0xd4')]('vid_end'),_0x1583f0));},{'priority':'low'});}),this['editor'][_0x3c13('0x6d')]['for'](_0x3c13('0xba'))['elementToAttribute']({'view':{'name':_0x3c13('0x26'),'attributes':{'vid':!0x0}},'model':{'key':_0x3c13('0x50'),'value':_0x1850c4=>_0x1850c4[_0x3c13('0xd4')](_0x3c13('0x50'))}}),this[_0x3c13('0x11b')]['model'][_0x3c13('0xcd')]['on']('checkAttribute',(_0x4279bf,[,_0x2819cb])=>{[_0x3c13('0x7c'),_0x3c13('0xdc'),'vid']['includes'](_0x2819cb)&&(_0x4279bf[_0x3c13('0x58')]=!0x0,_0x4279bf['stop']());},{'priority':_0x3c13('0x119')}),this['editor']['conversion'][_0x3c13('0x0')]('dataDowncast')[_0x3c13('0x2b')](_0x27d7b9=>{_0x27d7b9['on']('attribute:vid',(_0x30b35f,_0x2b85ec,_0x27c2b9)=>{if('\x20'!=_0x2b85ec[_0x3c13('0x121')][_0x3c13('0xdb')]||_0x2b85ec[_0x3c13('0x121')][_0x3c13('0xe4')][_0x3c13('0x3d')]>0x1)return;if(!_0x27c2b9[_0x3c13('0x106')][_0x3c13('0xd7')](_0x2b85ec['item'],_0x30b35f[_0x3c13('0xd')]))return;const _0x46259d=_0x27c2b9[_0x3c13('0xa4')],_0x194ff7=_0x27c2b9[_0x3c13('0x6c')][_0x3c13('0x101')](_0x2b85ec[_0x3c13('0x31')]);_0x46259d[_0x3c13('0x36')](_0x194ff7,_0x46259d[_0x3c13('0x3c')](_0x3c13('0x26')));});}),this[_0x3c13('0x11b')]['conversion'][_0x3c13('0x0')]('dataDowncast')[_0x3c13('0x113')]({'model':_0x3c13('0xb9')}),this['editor']['editing'][_0x3c13('0x48')]['on'](_0x3c13('0x3e'),function(_0x81c7f7){const _0x5f05e5=_0x81c7f7[_0x3c13('0x8f')]['get'](_0x3c13('0xd3'));return(_0x28ba29,_0x26396e,_0x29efc9)=>{const _0x2abb92=_0x26396e[_0x3c13('0x7a')][_0x3c13('0xb6')](':')[0x1],_0x563404=_0x5f05e5[_0x3c13('0xc1')](_0x2abb92);if(!_0x563404)return null;const _0x2b9fa4='add'==_0x563404['type']?'split':_0x3c13('0x7');if(!_0x29efc9[_0x3c13('0x106')][_0x3c13('0x38')](_0x26396e[_0x3c13('0xb2')],_0x28ba29[_0x3c13('0xd')]))return;const _0x285456=_0x26396e[_0x3c13('0xb2')][_0x3c13('0xd9')](),_0x34067b=_0x26396e[_0x3c13('0xb2')][_0x3c13('0x7d')],_0x2412c5=_0x81c7f7[_0x3c13('0x11c')][_0x3c13('0xcd')];let _0x5ee645=null,_0xee736a=null,_0x68472a=!0x1,_0x31a5cb=!0x1;for(const _0x47baaa of _0x285456){const _0x2e9317=_0x47baaa['item'];_0x68472a=_0x68472a||_0x2412c5['isContent'](_0x2e9317);const _0x182c37=_0x29efc9[_0x3c13('0x6c')][_0x3c13('0xa0')](_0x2e9317);if(_0x182c37&&_0x182c37[_0x3c13('0xd6')]('addHighlight'))return;_0x3c13('0x53')==_0x47baaa[_0x3c13('0x66')]&&(_0x2412c5[_0x3c13('0x91')](_0x2e9317)&&!_0x2412c5[_0x3c13('0x10e')](_0x2e9317)&&(_0x2e9317[_0x3c13('0x14')]||_0x34067b[_0x3c13('0x1b')]?_0x5ee645&&_0x5ee645[_0x3c13('0xe4')]==_0x2e9317||(_0x5ee645=_0x2e9317,_0x5e58cd(_0x47baaa['previousPosition']),_0x31a5cb=!0x0):_0xee736a=_0xee736a||_0x47baaa[_0x3c13('0x73')]));}function _0x5e58cd(_0x1a27ac){const _0x50b15a=_0x29efc9[_0x3c13('0xa4')][_0x3c13('0x74')]('span',{'class':_0x3c13('0x6f')+_0x2b9fa4}),_0x47d512=_0x29efc9['mapper'][_0x3c13('0x7e')](_0x1a27ac);_0x563404['data'][_0x3c13('0xe6')]&&_0x29efc9[_0x3c13('0xa4')][_0x3c13('0x11f')](_0x3c13('0x6f')+_0x2b9fa4+'-new',_0x50b15a),_0x5f05e5['activeChange']==_0x563404&&_0x29efc9[_0x3c13('0xa4')][_0x3c13('0x11f')]('ck-suggestion-marker--active',_0x50b15a),_0x29efc9['writer'][_0x3c13('0xc6')](_0x47d512,_0x50b15a),_0x29efc9['mapper'][_0x3c13('0x81')](_0x50b15a,_0x26396e[_0x3c13('0x7a')]);}_0x68472a||_0x31a5cb||!_0xee736a||_0x5e58cd(_0xee736a);};}(this[_0x3c13('0x11b')]),{'priority':_0x3c13('0x42')}),this['editor'][_0x3c13('0xb8')]['downcastDispatcher']['on'](_0x3c13('0x4a'),(_0x35ddb2,_0x4791fb,_0x350e8f)=>{const _0x28f4a1=_0x350e8f[_0x3c13('0x6c')][_0x3c13('0x11d')](_0x4791fb[_0x3c13('0x7a')]);if(_0x28f4a1)for(const _0xb1ab8a of _0x28f4a1)(_0xb1ab8a[_0x3c13('0xee')]('ck-suggestion-marker-split')||_0xb1ab8a[_0x3c13('0xee')](_0x3c13('0x57')))&&(_0x350e8f[_0x3c13('0x6c')][_0x3c13('0x17')](_0xb1ab8a,_0x4791fb[_0x3c13('0x7a')]),_0x350e8f[_0x3c13('0xa4')][_0x3c13('0x123')](_0xb1ab8a));},{'priority':_0x3c13('0x42')}),this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0x48')]['on']('addMarker:revision',(_0x3864a3,_0x58d043,_0x5bd1f5)=>{const _0x3470cf=_0x58d043[_0x3c13('0x7a')][_0x3c13('0xb6')](':')[0x1],_0x56e8b6=this[_0x3c13('0xc1')](_0x3470cf);if(!_0x56e8b6)return null;const _0x17a961=_0x3c13('0x2b')==_0x56e8b6['type']?'split':_0x3c13('0x7');if(_0x5bd1f5['consumable'][_0x3c13('0x38')](_0x58d043[_0x3c13('0xb2')],_0x3864a3[_0x3c13('0xd')]))for(const _0x5c6026 of _0x58d043[_0x3c13('0xb2')]['getItems']()){if(!_0x5c6026['is']('element',_0x3c13('0xbe')))continue;const _0x3eab0c=_0x5bd1f5[_0x3c13('0xa4')][_0x3c13('0x74')](_0x3c13('0x26'),{'class':_0x3c13('0x6f')+_0x17a961}),_0x443c17=_0x5bd1f5[_0x3c13('0x6c')][_0x3c13('0x7e')](this[_0x3c13('0x11b')][_0x3c13('0x11c')]['createPositionBefore'](_0x5c6026));_0x56e8b6[_0x3c13('0xdb')][_0x3c13('0xe6')]&&_0x5bd1f5[_0x3c13('0xa4')][_0x3c13('0x11f')](_0x3c13('0x6f')+_0x17a961+_0x3c13('0xda'),_0x3eab0c),this['activeChange']==_0x56e8b6&&_0x5bd1f5[_0x3c13('0xa4')][_0x3c13('0x11f')](_0x3c13('0x5e'),_0x3eab0c),_0x5bd1f5[_0x3c13('0xa4')]['insert'](_0x443c17,_0x3eab0c),_0x5bd1f5['mapper'][_0x3c13('0x81')](_0x3eab0c,_0x58d043[_0x3c13('0x7a')]);}},{'priority':'high'}),this['editor'][_0x3c13('0x11c')][_0x3c13('0x122')]['on'](_0x3c13('0x125'),()=>{this[_0x3c13('0x11b')]['editing'][_0x3c13('0xbf')][_0x3c13('0x125')](_0x43168d=>{for(const _0x19bd8d of this[_0x3c13('0x11b')][_0x3c13('0x11c')]['document'][_0x3c13('0x67')]()){const _0x2535c5=this['editor'][_0x3c13('0x11c')][_0x3c13('0x122')][_0x3c13('0x13')](_0x19bd8d),_0x1d06f5=this[_0x3c13('0x11b')]['editing'][_0x3c13('0xbf')][_0x3c13('0x122')]['getRoot'](_0x19bd8d);if(_0x1d06f5){const _0x58c009=_0x2535c5['getAttribute']('revisionHistoryAttachChange');if(_0x43168d[_0x3c13('0xe0')](_0x3c13('0x49'),_0x1d06f5),_0x43168d[_0x3c13('0x1')](_0x3c13('0x19'),_0x1d06f5),_0x43168d[_0x3c13('0x1')](_0x3c13('0xa6'),_0x1d06f5),_0x43168d[_0x3c13('0x1')](_0x3c13('0x23'),_0x1d06f5),_0x58c009){const _0x35faec=this[_0x3c13('0xc1')](_0x58c009);if(!_0x35faec)return null;_0x43168d['setAttribute'](_0x3c13('0x49'),_0x58c009,_0x1d06f5),_0x43168d[_0x3c13('0x11f')]('ck-revision-history-root-'+_0x35faec['type'],_0x1d06f5),this['activeChange']==_0x35faec&&_0x43168d[_0x3c13('0x11f')](_0x3c13('0x23'),_0x1d06f5);}}}});}),this[_0x3c13('0x11b')][_0x3c13('0x6d')]['for'](_0x3c13('0xba'))[_0x3c13('0x100')]({'view':_0x3c13('0x51'),'model':_0x25d48b=>_0x3c13('0x9b')+_0x25d48b,'converterPriority':_0x3c13('0x119')}),this[_0x3c13('0x11b')][_0x3c13('0x6d')][_0x3c13('0x0')](_0x3c13('0xba'))[_0x3c13('0x100')]({'view':_0x3c13('0x114'),'model':_0x10e036=>_0x3c13('0xfd')+_0x10e036,'converterPriority':_0x3c13('0x119')}),this[_0x3c13('0x11b')][_0x3c13('0x6d')][_0x3c13('0x0')]('dataDowncast')[_0x3c13('0x113')]({'model':'revision-suggestion','view':_0x24ecbb=>({'name':_0x3c13('0x47')+_0x24ecbb,'group':_0x3c13('0x109')}),'converterPriority':_0x3c13('0x119')}),this[_0x3c13('0x11b')]['conversion'][_0x3c13('0x0')](_0x3c13('0x40'))[_0x3c13('0x6e')]({'model':_0x3c13('0x109'),'view':_0x40a3e8=>{const _0x2597b5=_0x40a3e8[_0x3c13('0x7a')][_0x3c13('0xb6')](':')[0x1];return _0x3c13('0x3')!=_0x2597b5&&_0x3c13('0x3b')!=_0x2597b5?null:{'classes':[_0x3c13('0x5'),_0x3c13('0x85')+_0x2597b5]};}}),this['editor'][_0x3c13('0xb8')][_0x3c13('0x48')]['on'](_0x3c13('0x33'),et(this['editor'],'merge'),{'priority':_0x3c13('0x42')}),this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0x48')]['on'](_0x3c13('0x2a'),et(this[_0x3c13('0x11b')],_0x3c13('0xb6')),{'priority':_0x3c13('0x42')}),this['editor'][_0x3c13('0xb8')][_0x3c13('0x48')]['on']('removeMarker:revision-suggestion',(_0x51ebc1,_0x4f3f45,_0x1ee657)=>{const _0x527555=_0x1ee657[_0x3c13('0x6c')][_0x3c13('0x11d')](_0x4f3f45[_0x3c13('0x7a')]);if(_0x527555)for(const _0x1f0c3f of _0x527555)_0x1f0c3f['is'](_0x3c13('0xc5'))&&(_0x1ee657[_0x3c13('0x6c')]['unbindElementFromMarkerName'](_0x1f0c3f,_0x4f3f45[_0x3c13('0x7a')]),_0x1ee657['writer'][_0x3c13('0x123')](_0x1f0c3f));},{'priority':_0x3c13('0x42')});}[_0x3c13('0xc1')](_0x304c98){return this[_0x3c13('0x87')][_0x3c13('0x4d')](_0x304c98);}[_0x3c13('0x108')](_0x25de2d){return this[_0x3c13('0xf0')]&&this['_changeView']['destroy'](),this['_changeView']=new _0x5e0073(this[_0x3c13('0x11b')][_0x3c13('0xc8')],_0x25de2d),this[_0x3c13('0xf0')];}['_initInteractions'](){this['editor']['model']['document'][_0x3c13('0x60')]['observeMarkers']('revision'),this['on'](_0x3c13('0xd2'),(_0x249fb4,_0x390c82,_0x5d5805,_0x3e3e35)=>{_0x3e3e35&&this[_0x3c13('0x10')]['remove'](_0x3e3e35),_0x5d5805&&(this[_0x3c13('0x10')]['add']({'view':_0x5d5805,'stackId':_0x3c13('0xe8'),'position':{'target':()=>{const _0x3024a6=this[_0x3c13('0x11b')]['editing'],_0x44262b=this[_0x3c13('0xc1')](_0x5d5805['changeId']);let _0x43a1f6;if(_0x44262b['data']['isOnRoot']){const _0x41d7c8=_0x3024a6[_0x3c13('0xbf')]['getDomRoot'](_0x44262b['rootName']);_0x43a1f6=Array['from'](_0x41d7c8[_0x3c13('0x82')]());}else{const _0x4aa37e=this[_0x3c13('0x11b')][_0x3c13('0x11c')][_0x3c13('0x2')]['get'](_0x3c13('0xf')+_0x5d5805['changeId']);_0x43a1f6=Array[_0x3c13('0x10c')](_0x3024a6[_0x3c13('0x6c')][_0x3c13('0x11d')](_0x4aa37e[_0x3c13('0xd')]))[_0x3c13('0x11e')](_0x1ac96b=>_0x3024a6[_0x3c13('0xbf')][_0x3c13('0xa')][_0x3c13('0xa5')](_0x1ac96b))[_0x3c13('0x11e')](_0x3ed27c=>Array[_0x3c13('0x10c')](_0x3ed27c[_0x3c13('0x82')]()))[_0x3c13('0x27')]();}if(!this[_0x3c13('0x111')])return _0x43a1f6[0x0];return _0x43a1f6[_0x3c13('0x8b')](_0x7ba2f3=>_0x7ba2f3[_0x3c13('0x1a')]-0x3<=this[_0x3c13('0x111')]['y']&&_0x7ba2f3['bottom']+0x3>=this[_0x3c13('0x111')]['y']&&_0x7ba2f3[_0x3c13('0xfe')]-0x3<=this['_activeViewTarget']['x']&&_0x7ba2f3[_0x3c13('0xf3')]+0x3>=this['_activeViewTarget']['x'])||_0x43a1f6[0x0];}}}),this['_balloon'][_0x3c13('0xd5')](_0x3c13('0xe8')));}),this['on'](_0x3c13('0x124'),(_0x42223a,_0x25a403,_0x1f9ebf,_0x8f3801)=>{this[_0x3c13('0x116')]=_0x1f9ebf?this[_0x3c13('0x108')](_0x1f9ebf):null,this[_0x3c13('0x11b')]['model'][_0x3c13('0x125')](()=>{const _0x4133aa=this['editor'][_0x3c13('0xb8')];_0x8f3801&&(_0x8f3801[_0x3c13('0xdb')]['isOnRoot']?_0x4133aa[_0x3c13('0xbf')][_0x3c13('0x125')](_0xcadcfd=>{_0xcadcfd[_0x3c13('0x1')](_0x3c13('0x23'),_0x4133aa[_0x3c13('0xbf')][_0x3c13('0x122')][_0x3c13('0x13')](_0x8f3801[_0x3c13('0x105')]));}):_0x4133aa[_0x3c13('0x2c')](_0x3c13('0xf')+_0x8f3801['id'])),_0x1f9ebf&&(_0x1f9ebf[_0x3c13('0xdb')][_0x3c13('0xe')]?_0x4133aa[_0x3c13('0xbf')]['change'](_0x512073=>{_0x512073[_0x3c13('0x11f')]('ck-revision-history-root--active',_0x4133aa[_0x3c13('0xbf')][_0x3c13('0x122')][_0x3c13('0x13')](_0x1f9ebf[_0x3c13('0x105')]));}):_0x4133aa[_0x3c13('0x2c')](_0x3c13('0xf')+_0x1f9ebf['id']));});}),this[_0x3c13('0x104')](this['editor'][_0x3c13('0xb8')][_0x3c13('0xbf')][_0x3c13('0x122')],'mouseover',(_0xe15403,_0x1af41b)=>{if(this['activeChange'])return;const _0x520b09=this[_0x3c13('0xa2')](_0x1af41b[_0x3c13('0xab')]),_0x19826c=this[_0x3c13('0x87')][_0x3c13('0x4d')](_0x520b09);_0x19826c?(this['_activeViewTarget']={'x':_0x1af41b[_0x3c13('0x4f')]['x'],'y':_0x1af41b['domEvent']['y']},this[_0x3c13('0x116')]=this['_getViewForChange'](_0x19826c)):(this[_0x3c13('0x111')]=null,this[_0x3c13('0x116')]=null);}),this['listenTo'](this['editor'][_0x3c13('0xb8')]['view'][_0x3c13('0x122')],_0x3c13('0xfb'),(_0x1487d0,_0x137bcf)=>{const _0x5e45f4=this[_0x3c13('0xa2')](_0x137bcf[_0x3c13('0xab')]),_0x1fc0cd=this['_changeIdToChange'][_0x3c13('0x4d')](_0x5e45f4);_0x1fc0cd?(this[_0x3c13('0x111')]={'x':_0x137bcf[_0x3c13('0x4f')]['x'],'y':_0x137bcf[_0x3c13('0x4f')]['y']},_0x1fc0cd===this[_0x3c13('0x43')]?this[_0x3c13('0x10')][_0x3c13('0xa1')]():this[_0x3c13('0x43')]=_0x1fc0cd):(this['_activeViewTarget']=null,this[_0x3c13('0x43')]=null);});}[_0x3c13('0xa2')](_0x21068a){do{const _0x2364c6=_0x21068a[_0x3c13('0xd4')]('data-change-id');if(_0x2364c6)return _0x2364c6;_0x21068a=_0x21068a[_0x3c13('0xe4')];}while(_0x21068a);return null;}[_0x3c13('0x6b')](){this[_0x3c13('0x11b')][_0x3c13('0x11c')]['change'](_0x3d9f30=>{for(const _0x5b7112 of this[_0x3c13('0x11b')][_0x3c13('0x11c')]['markers'])_0x3d9f30[_0x3c13('0xf9')](_0x5b7112);});}}function et(_0x1eddad,_0x8712f4){return(_0x3d12dc,_0x3989a5,_0x5edef3)=>{if(!_0x5edef3[_0x3c13('0x106')][_0x3c13('0x38')](_0x3989a5[_0x3c13('0xb2')],_0x3d12dc[_0x3c13('0xd')]))return;const _0x2a5ecb=_0x3989a5[_0x3c13('0xb2')][_0x3c13('0xd9')](),_0x369b49=_0x3989a5[_0x3c13('0xb2')][_0x3c13('0x7d')],_0x1ffe55=_0x1eddad[_0x3c13('0x11c')][_0x3c13('0xcd')];let _0x32282b=null,_0x5002b9=null,_0x2573cd=!0x1,_0x361da0=!0x1;for(const _0x2284dd of _0x2a5ecb){const _0x3d5e74=_0x2284dd[_0x3c13('0x121')];_0x2573cd=_0x2573cd||_0x1ffe55['isContent'](_0x3d5e74);const _0x4db8b3=_0x5edef3['mapper']['toViewElement'](_0x3d5e74);if(_0x4db8b3&&_0x4db8b3[_0x3c13('0xd6')](_0x3c13('0x5f')))return;_0x3c13('0x53')==_0x2284dd[_0x3c13('0x66')]&&(_0x1ffe55[_0x3c13('0x91')](_0x3d5e74)&&!_0x1ffe55[_0x3c13('0x10e')](_0x3d5e74)&&(_0x3d5e74[_0x3c13('0x14')]||_0x369b49[_0x3c13('0x1b')]?_0x32282b&&_0x32282b[_0x3c13('0xe4')]==_0x3d5e74||(_0x32282b=_0x3d5e74,_0x82fb58(_0x2284dd['previousPosition']),_0x361da0=!0x0):_0x5002b9=_0x5002b9||_0x2284dd[_0x3c13('0x73')]));}function _0x82fb58(_0x1dfa68){const _0x3e86f6=_0x5edef3['mapper']['toViewPosition'](_0x1dfa68),_0x521b6a=_0x5edef3[_0x3c13('0xa4')]['createUIElement'](_0x3c13('0x26'),{'class':_0x3c13('0x85')+_0x8712f4});_0x5edef3[_0x3c13('0xa4')][_0x3c13('0xc6')](_0x3e86f6,_0x521b6a),_0x5edef3[_0x3c13('0x6c')][_0x3c13('0x81')](_0x521b6a,_0x3989a5[_0x3c13('0x7a')]);}_0x2573cd||_0x361da0||!_0x5002b9||_0x82fb58(_0x5002b9);};}export class RestoreRevisionCommand extends _0x17e90c{constructor(_0x4a9ee8){super(_0x4a9ee8);const _0x221c44=_0x4a9ee8['plugins'][_0x3c13('0x4d')](d);this[_0x3c13('0xf6')]=!0x1,this[_0x3c13('0x104')](_0x221c44,_0x3c13('0x8'),()=>this[_0x3c13('0x5c')]()),this[_0x3c13('0x104')](_0x221c44,_0x3c13('0x44'),()=>this['refresh']());}['execute'](){const _0x18d566=this[_0x3c13('0x11b')],_0x5386c8=_0x18d566['plugins'][_0x3c13('0x4d')](d),_0x13be75=_0x5386c8[_0x3c13('0xf1')]?_0x5386c8[_0x3c13('0xc9')][_0x3c13('0x126')]:null;_0x18d566['config'][_0x3c13('0x4d')](_0x3c13('0x55'))[_0x3c13('0x15')](_0x13be75);}['refresh'](){const {isReady:_0x304179,isEnabled:_0x3d4c80}=this[_0x3c13('0x11b')][_0x3c13('0x8f')][_0x3c13('0x4d')](d);this[_0x3c13('0xdd')]=_0x304179&&_0x3d4c80;}}export class ShowChangeCommand extends _0x17e90c{constructor(_0x4b4be4,{direction:_0xd5f69b}){super(_0x4b4be4);const _0x57877b=_0x4b4be4[_0x3c13('0x8f')][_0x3c13('0x4d')](d);this[_0x3c13('0xf6')]=!0x1,this[_0x3c13('0x8e')]=_0x3c13('0xb3')===_0xd5f69b?0x1:-0x1,this[_0x3c13('0x104')](_0x57877b,_0x3c13('0x8'),()=>this[_0x3c13('0x5c')]()),this[_0x3c13('0x104')](_0x57877b,_0x3c13('0x44'),()=>this['refresh']()),this[_0x3c13('0x104')](_0x57877b,'change:activeChange',()=>this[_0x3c13('0x5c')]());}[_0x3c13('0x29')](){const _0x3f7c6d=this[_0x3c13('0x11b')],_0x4f8cc8=_0x3f7c6d[_0x3c13('0x8f')]['get'](d),{isNavigationMode:_0x4efb16,currentChangeNumber:_0x3bb0a6}=_0x4f8cc8;let _0x4dbc87;if(_0x4f8cc8[_0x3c13('0x43')]=_0x4efb16?_0x4f8cc8['diff']['changes']['get'](_0x3bb0a6+this[_0x3c13('0x8e')]):_0x4f8cc8['diff'][_0x3c13('0x1e')][_0x3c13('0xfa')],_0x4f8cc8[_0x3c13('0x43')]['data'][_0x3c13('0xe')])_0x4dbc87=_0x3f7c6d['editing']['view']['getDomRoot'](_0x4f8cc8['activeChange'][_0x3c13('0x105')]);else{const _0x1aae45=_0x3f7c6d[_0x3c13('0x11c')][_0x3c13('0x2')][_0x3c13('0x4d')](_0x3c13('0xf')+_0x4f8cc8[_0x3c13('0x43')]['id']);_0x4dbc87=_0x382f5c(_0x3f7c6d[_0x3c13('0xb8')],_0x1aae45);}_0x28c5c9({'target':_0x4dbc87,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x350318,currentChangeNumber:_0x4c8014,numberOfChanges:_0x4f8fc2,isReady:_0x464224,isEnabled:_0x509158}=this[_0x3c13('0x11b')]['plugins'][_0x3c13('0x4d')](d);this[_0x3c13('0xdd')]=!!(_0x509158&&_0x464224&&_0x4f8fc2)&&(!_0x350318||(0x1===this['_step']?_0x4c8014<_0x4f8fc2-0x1:_0x4c8014>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x392c=['class','first','execute','find','add','function','listenTo','children','action','items','threeVerticalDots','change:isActionsDropdownOpen','panelPosition','isVisible','name','stopPropagation','set','isOpen','Name\x20this\x20revision','listView','isActionsDropdownOpen','button','buttonView','ck-revision-history-sidebar__revision__actions','Restore\x20this\x20revision','locale','source','bind','bindTemplate','isReady','_action','isEnabled'];(function(_0x579b1b,_0x392c5d){const _0x501cbb=function(_0x1d105e){while(--_0x1d105e){_0x579b1b['push'](_0x579b1b['shift']());}};_0x501cbb(++_0x392c5d);}(_0x392c,0x1d4));const _0x501c=function(_0x579b1b,_0x392c5d){_0x579b1b=_0x579b1b-0x0;let _0x501cbb=_0x392c[_0x579b1b];return _0x501cbb;};import{Collection as _0x2e126b}from'ckeditor5/src/utils';import{icons as _0x1130d8}from'ckeditor5/src/core';import{Model as _0x59a1e1,addListToDropdown as _0x1bc17e,createDropdown as _0x383949}from'ckeditor5/src/ui';import{getTranslation as _0x4f11ac}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x48e23b,_0x4e02cb){const _0x98131c=_0x48e23b[_0x501c('0x8')],_0x451b6a=_0x48e23b[_0x501c('0x5')],_0x56d868=_0x383949(_0x451b6a);_0x56d868[_0x501c('0x18')]='sw';const _0x2f7abe=function(_0x294615,_0x3defd7){const _0x120894=function(_0x40a1af,_0x139f7f){const _0x229252=_0x40a1af['locale'],_0x46178e={'Compare\x20against\x20selected':_0x4f11ac(_0x229252,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x4f11ac(_0x229252,_0x501c('0x1e')),'Restore\x20this\x20revision':_0x4f11ac(_0x229252,_0x501c('0x4'))};return _0x139f7f['map'](_0x43cac8=>{const _0x4992c9=_0x46178e[_0x43cac8['name']];return _0x4992c9&&_0x4992c9!==_0x43cac8[_0x501c('0x1a')]&&(_0x43cac8[_0x501c('0x1a')]=_0x4992c9),_0x43cac8;});}(_0x294615,_0x3defd7),_0x14b9ea=new _0x2e126b();for(const _0x742309 of _0x120894){const _0x36a947={'type':_0x501c('0x1'),'model':new _0x59a1e1({'label':_0x742309[_0x501c('0x1a')],'class':_0x742309[_0x501c('0xc')],'withText':!0x0,'_action':_0x742309['action']})};_0x36a947['model']['bind'](_0x501c('0xb'))['to'](_0x294615,_0x501c('0x0'),_0x6ce7ed=>_0x501c('0x11')!=typeof _0x742309[_0x501c('0xb')]||(!_0x6ce7ed||_0x742309[_0x501c('0xb')](_0x294615))),_0x14b9ea[_0x501c('0x10')](_0x36a947);}return _0x14b9ea;}(_0x48e23b,_0x4e02cb);return _0x48e23b[_0x501c('0x7')](_0x501c('0x0'))['to'](_0x56d868,_0x501c('0x1d')),_0x56d868[_0x501c('0x2')][_0x501c('0x1c')]({'label':_0x4f11ac(_0x451b6a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1130d8[_0x501c('0x16')]}),_0x56d868['extendTemplate']({'attributes':{'class':[_0x501c('0x3'),_0x98131c['if'](_0x501c('0x0'),'ck-on')]},'on':{'click':_0x98131c['to'](_0x50dc92=>_0x50dc92[_0x501c('0x1b')]())}}),_0x56d868['on'](_0x501c('0xe'),_0x2ff21d=>{_0x48e23b[_0x501c('0x9')]&&'function'==typeof _0x2ff21d[_0x501c('0x6')][_0x501c('0xa')]&&_0x2ff21d[_0x501c('0x6')][_0x501c('0xa')](_0x48e23b);}),_0x1bc17e(_0x56d868,_0x2f7abe),_0x56d868[_0x501c('0x12')](_0x48e23b,_0x501c('0x17'),(_0x3613bc,_0x2a74ed,_0xe5fe0d)=>{if(_0xe5fe0d)for(const _0x133352 of _0x56d868[_0x501c('0x1f')][_0x501c('0x15')]){const _0xb9a91e=_0x133352[_0x501c('0x13')][_0x501c('0xd')],_0xc114e7=_0x4e02cb[_0x501c('0xf')](_0x120af1=>_0x120af1[_0x501c('0x14')]===_0xb9a91e[_0x501c('0xa')])[_0x501c('0x19')];_0x133352[_0x501c('0x19')]=void 0x0===_0xc114e7||_0xc114e7(_0x48e23b);}}),_0x56d868;}
23
+ const _0x3253=['function','locale','Show\x20more\x20items','map','ck-on','execute','extendTemplate','isVisible','bindTemplate','bind','isEnabled','set','isActionsDropdownOpen','find','class','action','threeVerticalDots','listView','buttonView','add','ck-revision-history-sidebar__revision__actions','stopPropagation','change:isActionsDropdownOpen','source','name','_action','panelPosition','Compare\x20against\x20selected','isReady','isOpen'];(function(_0x40086b,_0x3253d3){const _0x3e02f5=function(_0x4efde2){while(--_0x4efde2){_0x40086b['push'](_0x40086b['shift']());}};_0x3e02f5(++_0x3253d3);}(_0x3253,0x171));const _0x3e02=function(_0x40086b,_0x3253d3){_0x40086b=_0x40086b-0x0;let _0x3e02f5=_0x3253[_0x40086b];return _0x3e02f5;};import{Collection as _0x4bab36}from'ckeditor5/src/utils';import{icons as _0x1758b4}from'ckeditor5/src/core';import{Model as _0x3977f8,addListToDropdown as _0x5b1ff0,createDropdown as _0x417a5c}from'ckeditor5/src/ui';import{getTranslation as _0x3dab76}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x351c35,_0x5828af){const _0x12a705=_0x351c35[_0x3e02('0x1d')],_0x165159=_0x351c35['locale'],_0x50838d=_0x417a5c(_0x165159);_0x50838d[_0x3e02('0x11')]='sw';const _0x3daecd=function(_0x5d2f3e,_0xff37f8){const _0x169fd5=function(_0x493f59,_0x318f58){const _0x1d7d10=_0x493f59[_0x3e02('0x16')],_0x11546e={'Compare\x20against\x20selected':_0x3dab76(_0x1d7d10,_0x3e02('0x12')),'Name\x20this\x20revision':_0x3dab76(_0x1d7d10,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x3dab76(_0x1d7d10,'Restore\x20this\x20revision')};return _0x318f58[_0x3e02('0x18')](_0x306c7e=>{const _0x582848=_0x11546e[_0x306c7e['name']];return _0x582848&&_0x582848!==_0x306c7e['name']&&(_0x306c7e[_0x3e02('0xf')]=_0x582848),_0x306c7e;});}(_0x5d2f3e,_0xff37f8),_0x1171a8=new _0x4bab36();for(const _0x2d3543 of _0x169fd5){const _0x183aca={'type':'button','model':new _0x3977f8({'label':_0x2d3543[_0x3e02('0xf')],'class':_0x2d3543[_0x3e02('0x5')],'withText':!0x0,'_action':_0x2d3543[_0x3e02('0x6')]})};_0x183aca['model']['bind'](_0x3e02('0x1'))['to'](_0x5d2f3e,_0x3e02('0x3'),_0x258cc5=>_0x3e02('0x15')!=typeof _0x2d3543[_0x3e02('0x1')]||(!_0x258cc5||_0x2d3543[_0x3e02('0x1')](_0x5d2f3e))),_0x1171a8[_0x3e02('0xa')](_0x183aca);}return _0x1171a8;}(_0x351c35,_0x5828af);return _0x351c35[_0x3e02('0x0')](_0x3e02('0x3'))['to'](_0x50838d,_0x3e02('0x14')),_0x50838d[_0x3e02('0x9')][_0x3e02('0x2')]({'label':_0x3dab76(_0x165159,_0x3e02('0x17')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1758b4[_0x3e02('0x7')]}),_0x50838d[_0x3e02('0x1b')]({'attributes':{'class':[_0x3e02('0xb'),_0x12a705['if'](_0x3e02('0x3'),_0x3e02('0x19'))]},'on':{'click':_0x12a705['to'](_0x5ada1d=>_0x5ada1d[_0x3e02('0xc')]())}}),_0x50838d['on'](_0x3e02('0x1a'),_0x507b43=>{_0x351c35[_0x3e02('0x13')]&&'function'==typeof _0x507b43['source'][_0x3e02('0x10')]&&_0x507b43[_0x3e02('0xe')][_0x3e02('0x10')](_0x351c35);}),_0x5b1ff0(_0x50838d,_0x3daecd),_0x50838d['listenTo'](_0x351c35,_0x3e02('0xd'),(_0x273f71,_0x13809b,_0x4a5303)=>{if(_0x4a5303)for(const _0x23325b of _0x50838d[_0x3e02('0x8')]['items']){const _0x41cc3e=_0x23325b['children']['first'],_0x53696a=_0x5828af[_0x3e02('0x4')](_0x403157=>_0x403157[_0x3e02('0x6')]===_0x41cc3e['_action'])[_0x3e02('0x1c')];_0x23325b[_0x3e02('0x1c')]=void 0x0===_0x53696a||_0x53696a(_0x351c35);}}),_0x50838d;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a0a=['Revision\x20author','name','setTemplate','Revision\x20creator','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author__name','span'];(function(_0x5efb5c,_0x4a0a1b){const _0x210b24=function(_0x3e9823){while(--_0x3e9823){_0x5efb5c['push'](_0x5efb5c['shift']());}};_0x210b24(++_0x4a0a1b);}(_0x4a0a,0x1f3));const _0x210b=function(_0x5efb5c,_0x4a0a1b){_0x5efb5c=_0x5efb5c-0x0;let _0x210b24=_0x4a0a[_0x5efb5c];return _0x210b24;};import{View as _0x565772,IconView as _0x7ba919}from'ckeditor5/src/ui';import{getTranslation as _0x45dd9d}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x35ce93 from'../../../theme/icons/user.svg';export default class ti extends _0x565772{constructor(_0x1cbe96,_0x6ac0bf,_0xaa7377){super(_0x1cbe96);const _0x22c59e=new _0x7ba919();_0x22c59e['set']({'content':_0x35ce93,'viewBox':'0\x200\x2011\x2010'});const _0x21e033=['ck',_0x210b('0x2')];_0xaa7377&&_0x21e033['push']('ck-revision-history-sidebar__revision-author_creator');const _0xdfabaa=[{'tag':_0x210b('0x4'),'attributes':{'class':['ck',_0x210b('0x3')],'title':_0x45dd9d(_0x1cbe96,_0xaa7377?_0x210b('0x1'):_0x210b('0x5'))},'children':[_0x22c59e,_0x6ac0bf[_0x210b('0x6')]]}];this[_0x210b('0x0')]({'tag':'li','attributes':{'class':_0x21e033},'children':_0xdfabaa});}}
23
+ const _0x14de=['Revision\x20creator','span','name','Revision\x20author','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author__name','setTemplate','set'];(function(_0x35d253,_0x14defa){const _0x18e951=function(_0x24cbb7){while(--_0x24cbb7){_0x35d253['push'](_0x35d253['shift']());}};_0x18e951(++_0x14defa);}(_0x14de,0x146));const _0x18e9=function(_0x35d253,_0x14defa){_0x35d253=_0x35d253-0x0;let _0x18e951=_0x14de[_0x35d253];return _0x18e951;};import{View as _0x3826df,IconView as _0xa97dc}from'ckeditor5/src/ui';import{getTranslation as _0xde6840}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x35f368 from'../../../theme/icons/user.svg';export default class ti extends _0x3826df{constructor(_0x52eded,_0x34221a,_0x5f1a29){super(_0x52eded);const _0x41330d=new _0xa97dc();_0x41330d[_0x18e9('0x1')]({'content':_0x35f368,'viewBox':_0x18e9('0x6')});const _0x3bd7de=['ck','ck-revision-history-sidebar__revision-author'];_0x5f1a29&&_0x3bd7de['push']('ck-revision-history-sidebar__revision-author_creator');const _0x299905=[{'tag':_0x18e9('0x3'),'attributes':{'class':['ck',_0x18e9('0x7')],'title':_0xde6840(_0x52eded,_0x5f1a29?_0x18e9('0x2'):_0x18e9('0x5'))},'children':[_0x41330d,_0x34221a[_0x18e9('0x4')]]}];this[_0x18e9('0x0')]({'tag':'li','attributes':{'class':_0x3bd7de},'children':_0x299905});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2a8e=['extendTemplate','ck-revision-history-sidebar__revision-name','set','Revision\x20name'];(function(_0xd320b2,_0x2a8e60){var _0x565158=function(_0x572357){while(--_0x572357){_0xd320b2['push'](_0xd320b2['shift']());}};_0x565158(++_0x2a8e60);}(_0x2a8e,0x9b));var _0x5651=function(_0xd320b2,_0x2a8e60){_0xd320b2=_0xd320b2-0x0;var _0x565158=_0x2a8e[_0xd320b2];return _0x565158;};import{LabeledFieldView as _0x51fe15}from'ckeditor5/src/ui';import{getTranslation as _0x1f538e}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x51fe15{constructor(_0x2efdb7,_0x354a0a){super(_0x2efdb7,_0x354a0a),this[_0x5651('0x3')]({'label':_0x1f538e(_0x2efdb7,_0x5651('0x0'))}),this[_0x5651('0x1')]({'tag':'span','attributes':{'class':[_0x5651('0x2')]}});}}
23
+ var _0x3b8e=['span','set','Revision\x20name','ck-revision-history-sidebar__revision-name'];(function(_0x1f859a,_0x3b8e46){var _0x3196f0=function(_0x2a1f9f){while(--_0x2a1f9f){_0x1f859a['push'](_0x1f859a['shift']());}};_0x3196f0(++_0x3b8e46);}(_0x3b8e,0xe8));var _0x3196=function(_0x1f859a,_0x3b8e46){_0x1f859a=_0x1f859a-0x0;var _0x3196f0=_0x3b8e[_0x1f859a];return _0x3196f0;};import{LabeledFieldView as _0x3e91a0}from'ckeditor5/src/ui';import{getTranslation as _0x819861}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x3e91a0{constructor(_0x1deeeb,_0x543622){super(_0x1deeeb,_0x543622),this[_0x3196('0x1')]({'label':_0x819861(_0x1deeeb,_0x3196('0x2'))}),this['extendTemplate']({'tag':_0x3196('0x0'),'attributes':{'class':[_0x3196('0x3')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ac5=['name','ck-disabled','span','isEnabled','ck-revision-history-sidebar__revision__date','bindTemplate','render','length','from','isHighlighted','isReady','value','set','setTemplate','isSelected','element','ck-revision-history-sidebar__revision','220','_createdAtFormatted','div','extendTemplate','ck-revision-history-sidebar__revision_selected','revisionNameView','highlight','ck-reset','revisionActionsView','.ck-thread__remove-confirm','fire','ck-revision-history-sidebar__revision__controls-wrapper','placeholder','select','closest','bind','srcElement','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','_revision','isActionsDropdownOpen','creator','fieldView','map','deselect','createdAt','ck-revision-history-sidebar__revision_highlighted','ck-revision-history-sidebar__actions_dropdown_open','unshift'];(function(_0x2db954,_0x4ac583){const _0x29c3ca=function(_0x12808c){while(--_0x12808c){_0x2db954['push'](_0x2db954['shift']());}};_0x29c3ca(++_0x4ac583);}(_0x4ac5,0x124));const _0x29c3=function(_0x2db954,_0x4ac583){_0x2db954=_0x2db954-0x0;let _0x29c3ca=_0x4ac5[_0x2db954];return _0x29c3ca;};import{View as _0x3210dc,createLabeledInputText as _0x2ca384}from'ckeditor5/src/ui';import{ConfirmMixin as _0xc6ea05}from'ckeditor5-collaboration/src/collaboration-core';import _0x3da5c9 from'./revisionnameview';import _0x193724 from'./revisionauthorview';import{dateToPrettyFormat as _0x34be19}from'./utils';import{createActionsDropdownView as _0x58068e}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0xc6ea05(_0x3210dc){constructor(_0x3a5620,_0x5359c9,_0x31cd45){super(_0x3a5620);const _0x3d1019=this[_0x29c3('0x23')],_0x293277=function(_0x6a25e3,_0x36896a){const _0xd40618=Array[_0x29c3('0x26')](_0x36896a['authors'])['filter'](_0x3fedc1=>_0x3fedc1!=_0x36896a[_0x29c3('0x16')]);return _0x36896a[_0x29c3('0x16')]&&_0xd40618[_0x29c3('0x1d')](_0x36896a[_0x29c3('0x16')]),_0xd40618[_0x29c3('0x18')](_0x19de39=>new _0x193724(_0x6a25e3,_0x19de39,_0x19de39==_0x36896a[_0x29c3('0x16')]));}(_0x3a5620,_0x5359c9);this['id']=_0x5359c9['id'],this[_0x29c3('0x14')]=_0x5359c9,this['bind'](_0x29c3('0x1e'),_0x29c3('0x1a'))['to'](_0x5359c9),this['bind']('_createdAtFormatted')['to'](this,_0x29c3('0x1a'),_0x37835b=>_0x37835b?_0x34be19(_0x3a5620['uiLanguage'],_0x37835b):void 0x0),this['set'](_0x29c3('0x2c'),!0x1),this[_0x29c3('0x2a')]('isHighlighted',!0x1),this[_0x29c3('0x2a')]('isActionsDropdownOpen',!0x1),this[_0x29c3('0x2a')]('isReady',!0x1),this[_0x29c3('0x2a')](_0x29c3('0x21'),!0x1),this[_0x29c3('0x6')]=new _0x3da5c9(_0x3a5620,_0x2ca384),this[_0x29c3('0x6')][_0x29c3('0x17')][_0x29c3('0x4')]({'attributes':{'maxlength':_0x29c3('0x1')}}),this[_0x29c3('0x6')][_0x29c3('0x17')]['bind'](_0x29c3('0x29'),_0x29c3('0xd'))['to'](this,_0x29c3('0x1e'),_0x29c3('0x2')),this[_0x29c3('0x6')][_0x29c3('0x10')](_0x29c3('0x21'))['to'](this,_0x29c3('0x2c'),this,_0x29c3('0x21'),(_0xb3bead,_0x246b63)=>_0xb3bead&&_0x246b63),this[_0x29c3('0x9')]=_0x31cd45&&_0x31cd45[_0x29c3('0x25')]?_0x58068e(this,_0x31cd45):'',this[_0x29c3('0x9')]&&this[_0x29c3('0x9')][_0x29c3('0x10')](_0x29c3('0x21'))['to'](this),this[_0x29c3('0x2b')]({'tag':_0x29c3('0x3'),'attributes':{'class':['ck',_0x29c3('0x8'),'ck-revision-history-sidebar__revision-wrapper',_0x3d1019['if']('isConfirm',_0x29c3('0x13'))]},'children':[{'tag':_0x29c3('0x3'),'attributes':{'class':['ck',_0x29c3('0x8'),_0x29c3('0x0'),_0x3d1019['if'](_0x29c3('0x21'),_0x29c3('0x1f'),_0xe9f546=>!_0xe9f546),_0x3d1019['if'](_0x29c3('0x2c'),_0x29c3('0x5')),_0x3d1019['if'](_0x29c3('0x27'),_0x29c3('0x1b')),_0x3d1019['if'](_0x29c3('0x15'),_0x29c3('0x1c'))]},'children':[this['revisionNameView'],{'tag':_0x29c3('0x20'),'attributes':{'class':['ck',_0x29c3('0x22')]},'children':[{'text':_0x3d1019['to'](_0x29c3('0x2'))}]},{'tag':_0x29c3('0x3'),'attributes':{'class':['ck',_0x29c3('0xc')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x29c3('0x12')]},'children':_0x293277}]},this[_0x29c3('0x9')]],'on':{'click':_0x3d1019['to'](_0x424792=>{_0x424792[_0x29c3('0x11')][_0x29c3('0xf')](_0x29c3('0xa'))||this[_0x29c3('0x28')]&&this[_0x29c3('0x21')]&&this[_0x29c3('0xb')]('select',{'id':this['id']});})}}]});}['render'](){super[_0x29c3('0x24')]();const _0x28c945=this[_0x29c3('0x6')][_0x29c3('0x17')][_0x29c3('0x2d')];this['listenTo'](_0x28c945,'change',()=>{this[_0x29c3('0xb')]('setName',{'id':this['id'],'name':_0x28c945[_0x29c3('0x29')]});});}[_0x29c3('0xe')](){this[_0x29c3('0x2c')]=!0x0;}[_0x29c3('0x19')](){this[_0x29c3('0x2c')]=!0x1;}[_0x29c3('0x7')](){this[_0x29c3('0x27')]=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}
23
+ const _0x4bd2=['ck-reset','map','.ck-thread__remove-confirm','ck-revision-history-sidebar__revision_highlighted','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision__controls-wrapper','set','isReady','ck-revision-history-sidebar__revision','span','select','isActionsDropdownOpen','fieldView','placeholder','ck-revision-history-sidebar__revision__date','revisionNameView','isConfirm','extendTemplate','render','setTemplate','unshift','listenTo','div','filter','highlight','isEnabled','createdAt','srcElement','revisionActionsView','deselect','ck-disabled','bind','creator','length','element','220','isSelected','_createdAtFormatted','value','unhighlight','from','isHighlighted','bindTemplate','setName','name','fire','ck-revision-history-sidebar__actions_dropdown_open','_revision','ck-revision-history-sidebar__revision-authors'];(function(_0x2aa11e,_0x4bd26c){const _0x5bc08b=function(_0x32904b){while(--_0x32904b){_0x2aa11e['push'](_0x2aa11e['shift']());}};_0x5bc08b(++_0x4bd26c);}(_0x4bd2,0x117));const _0x5bc0=function(_0x2aa11e,_0x4bd26c){_0x2aa11e=_0x2aa11e-0x0;let _0x5bc08b=_0x4bd2[_0x2aa11e];return _0x5bc08b;};import{View as _0x590094,createLabeledInputText as _0x58ca4d}from'ckeditor5/src/ui';import{ConfirmMixin as _0x2ca79f}from'ckeditor5-collaboration/src/collaboration-core';import _0x4773d1 from'./revisionnameview';import _0x1c741c from'./revisionauthorview';import{dateToPrettyFormat as _0x314269}from'./utils';import{createActionsDropdownView as _0x11739f}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x2ca79f(_0x590094){constructor(_0x215d45,_0x2e7c58,_0x45a6ff){super(_0x215d45);const _0x7f780a=this[_0x5bc0('0x8')],_0x1b3e8c=function(_0xfd4767,_0x581145){const _0x4cbfbf=Array[_0x5bc0('0x6')](_0x581145['authors'])[_0x5bc0('0x26')](_0x312204=>_0x312204!=_0x581145[_0x5bc0('0x2f')]);return _0x581145[_0x5bc0('0x2f')]&&_0x4cbfbf[_0x5bc0('0x23')](_0x581145[_0x5bc0('0x2f')]),_0x4cbfbf[_0x5bc0('0x10')](_0x2ab3ac=>new _0x1c741c(_0xfd4767,_0x2ab3ac,_0x2ab3ac==_0x581145[_0x5bc0('0x2f')]));}(_0x215d45,_0x2e7c58);this['id']=_0x2e7c58['id'],this[_0x5bc0('0xd')]=_0x2e7c58,this['bind'](_0x5bc0('0xa'),_0x5bc0('0x29'))['to'](_0x2e7c58),this[_0x5bc0('0x2e')](_0x5bc0('0x3'))['to'](this,'createdAt',_0x4867ba=>_0x4867ba?_0x314269(_0x215d45['uiLanguage'],_0x4867ba):void 0x0),this[_0x5bc0('0x15')](_0x5bc0('0x2'),!0x1),this[_0x5bc0('0x15')]('isHighlighted',!0x1),this['set'](_0x5bc0('0x1a'),!0x1),this[_0x5bc0('0x15')](_0x5bc0('0x16'),!0x1),this[_0x5bc0('0x15')](_0x5bc0('0x28'),!0x1),this['revisionNameView']=new _0x4773d1(_0x215d45,_0x58ca4d),this[_0x5bc0('0x1e')][_0x5bc0('0x1b')][_0x5bc0('0x20')]({'attributes':{'maxlength':_0x5bc0('0x1')}}),this['revisionNameView']['fieldView'][_0x5bc0('0x2e')](_0x5bc0('0x4'),_0x5bc0('0x1c'))['to'](this,_0x5bc0('0xa'),'_createdAtFormatted'),this[_0x5bc0('0x1e')][_0x5bc0('0x2e')](_0x5bc0('0x28'))['to'](this,_0x5bc0('0x2'),this,'isEnabled',(_0x52750d,_0x363256)=>_0x52750d&&_0x363256),this[_0x5bc0('0x2b')]=_0x45a6ff&&_0x45a6ff[_0x5bc0('0x30')]?_0x11739f(this,_0x45a6ff):'',this[_0x5bc0('0x2b')]&&this['revisionActionsView'][_0x5bc0('0x2e')]('isEnabled')['to'](this),this[_0x5bc0('0x22')]({'tag':_0x5bc0('0x25'),'attributes':{'class':['ck',_0x5bc0('0xf'),'ck-revision-history-sidebar__revision-wrapper',_0x7f780a['if'](_0x5bc0('0x1f'),_0x5bc0('0x13'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x5bc0('0xf'),_0x5bc0('0x17'),_0x7f780a['if']('isEnabled',_0x5bc0('0x2d'),_0x505c3c=>!_0x505c3c),_0x7f780a['if'](_0x5bc0('0x2'),'ck-revision-history-sidebar__revision_selected'),_0x7f780a['if'](_0x5bc0('0x7'),_0x5bc0('0x12')),_0x7f780a['if'](_0x5bc0('0x1a'),_0x5bc0('0xc'))]},'children':[this['revisionNameView'],{'tag':_0x5bc0('0x18'),'attributes':{'class':['ck',_0x5bc0('0x1d')]},'children':[{'text':_0x7f780a['to'](_0x5bc0('0x3'))}]},{'tag':_0x5bc0('0x25'),'attributes':{'class':['ck',_0x5bc0('0x14')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x5bc0('0xe')]},'children':_0x1b3e8c}]},this[_0x5bc0('0x2b')]],'on':{'click':_0x7f780a['to'](_0x13fef0=>{_0x13fef0[_0x5bc0('0x2a')]['closest'](_0x5bc0('0x11'))||this[_0x5bc0('0x16')]&&this[_0x5bc0('0x28')]&&this[_0x5bc0('0xb')](_0x5bc0('0x19'),{'id':this['id']});})}}]});}['render'](){super[_0x5bc0('0x21')]();const _0x4c27af=this['revisionNameView'][_0x5bc0('0x1b')][_0x5bc0('0x0')];this[_0x5bc0('0x24')](_0x4c27af,'change',()=>{this[_0x5bc0('0xb')](_0x5bc0('0x9'),{'id':this['id'],'name':_0x4c27af[_0x5bc0('0x4')]});});}[_0x5bc0('0x19')](){this[_0x5bc0('0x2')]=!0x0;}[_0x5bc0('0x2c')](){this[_0x5bc0('0x2')]=!0x1;}[_0x5bc0('0x27')](){this[_0x5bc0('0x7')]=!0x0;}[_0x5bc0('0x5')](){this['isHighlighted']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1847=['_isCollapsed','bindTemplate','set','toggle','true','button','span','ck-hidden','isVisible','ck-revision-history-sidebar__subrevision-collapser','ck-revision-history-sidebar__subrevision-collapser__inner','setTemplate'];(function(_0x1a917b,_0x1847c0){const _0x50ad26=function(_0x220805){while(--_0x220805){_0x1a917b['push'](_0x1a917b['shift']());}};_0x50ad26(++_0x1847c0);}(_0x1847,0xd3));const _0x50ad=function(_0x1a917b,_0x1847c0){_0x1a917b=_0x1a917b-0x0;let _0x50ad26=_0x1847[_0x1a917b];return _0x50ad26;};import{View as _0x2da169}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2da169{constructor(_0x38ad81){super(_0x38ad81);const _0x22180d=this[_0x50ad('0x6')];this[_0x50ad('0x7')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x50ad('0x4')]({'tag':'span','attributes':{'class':['ck',_0x50ad('0x2'),_0x22180d['if'](_0x50ad('0x1'),_0x50ad('0x0'),_0x32d73b=>!_0x32d73b),_0x22180d['if'](_0x50ad('0x5'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x50ad('0xa'),'aria-pressed':_0x22180d['to'](_0x50ad('0x5'),_0x491040=>_0x491040?'false':_0x50ad('0x9'))},'children':[{'tag':_0x50ad('0xb'),'attributes':{'class':['ck',_0x50ad('0x3')]}}],'on':{'click':_0x22180d['to']('click')}});}[_0x50ad('0x8')](){this[_0x50ad('0x5')]=!this[_0x50ad('0x5')];}}
23
+ const _0x5a99=['button','_isCollapsed','span','false','set','ck-hidden','setTemplate','bindTemplate','ck-revision-history-sidebar__subrevision-collapser','ck-revision-history-sidebar__subrevision-collapser_collapsed','true'];(function(_0x1e9093,_0x5a990f){const _0x245211=function(_0x2861c9){while(--_0x2861c9){_0x1e9093['push'](_0x1e9093['shift']());}};_0x245211(++_0x5a990f);}(_0x5a99,0xe4));const _0x2452=function(_0x1e9093,_0x5a990f){_0x1e9093=_0x1e9093-0x0;let _0x245211=_0x5a99[_0x1e9093];return _0x245211;};import{View as _0x4e954b}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x4e954b{constructor(_0x36a3d2){super(_0x36a3d2);const _0x371b11=this[_0x2452('0xa')];this[_0x2452('0x7')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x2452('0x9')]({'tag':_0x2452('0x5'),'attributes':{'class':['ck',_0x2452('0x0'),_0x371b11['if']('isVisible',_0x2452('0x8'),_0x2d2b04=>!_0x2d2b04),_0x371b11['if'](_0x2452('0x4'),_0x2452('0x1'))],'role':_0x2452('0x3'),'aria-pressed':_0x371b11['to']('_isCollapsed',_0x97e15a=>_0x97e15a?_0x2452('0x6'):_0x2452('0x2'))},'children':[{'tag':_0x2452('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x371b11['to']('click')}});}['toggle'](){this['_isCollapsed']=!this[_0x2452('0x4')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c6f=['createdAt','div','isSelected','select','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__date','bind','deselect','_createdAtFormatted','creator','ck-reset','ck-revision-history-sidebar__revision-authors','span','_parentRevisionId','bindTemplate','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision','uiLanguage'];(function(_0xd188d8,_0x5c6f5f){const _0x19ae79=function(_0x150297){while(--_0x150297){_0xd188d8['push'](_0xd188d8['shift']());}};_0x19ae79(++_0x5c6f5f);}(_0x5c6f,0x9b));const _0x19ae=function(_0xd188d8,_0x5c6f5f){_0xd188d8=_0xd188d8-0x0;let _0x19ae79=_0x5c6f[_0xd188d8];return _0x19ae79;};import{View as _0x3c72d9}from'ckeditor5/src/ui';import _0xbc5505 from'./revisionauthorview';import{dateToPrettyFormat as _0x73d907}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x3c72d9{constructor(_0x50995f,_0x3142a8,_0x49bfff){super(_0x50995f);const _0x5617b0=this[_0x19ae('0x3')];this['id']=_0x3142a8['id'],this['bind'](_0x19ae('0x7'))['to'](_0x3142a8),this['set'](_0x19ae('0x9'),!0x1),this[_0x19ae('0xd')](_0x19ae('0xf'))['to'](this,_0x19ae('0x7'),_0x5c8366=>_0x5c8366?_0x73d907(_0x50995f[_0x19ae('0x6')],_0x5c8366):void 0x0),this['_parentRevisionId']=_0x49bfff,this['setTemplate']({'tag':_0x19ae('0x8'),'attributes':{'class':['ck',_0x19ae('0x11'),_0x19ae('0x5'),_0x19ae('0x4'),_0x5617b0['if'](_0x19ae('0x9'),_0x19ae('0xb'))]},'children':[{'tag':_0x19ae('0x1'),'attributes':{'class':['ck',_0x19ae('0xc')]},'children':[{'text':_0x5617b0['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x19ae('0x0')]},'children':[new _0xbc5505(_0x50995f,_0x3142a8[_0x19ae('0x10')],!0x0)]}],'on':{'click':_0x5617b0['to'](this[_0x19ae('0xa')][_0x19ae('0xd')](this))}});}[_0x19ae('0xa')](){this[_0x19ae('0x9')]=!0x0,this['fire']('select',{'parentId':this[_0x19ae('0x2')]});}[_0x19ae('0xe')](){this['isSelected']=!0x1;}}
23
+ const _0x26bf=['_createdAtFormatted','select','bind','bindTemplate','ck-reset','uiLanguage','fire','creator','span','isSelected','createdAt','ck-revision-history-sidebar__revision__date','_parentRevisionId','setTemplate','deselect'];(function(_0x148f27,_0x26bf4f){const _0x51e369=function(_0x273128){while(--_0x273128){_0x148f27['push'](_0x148f27['shift']());}};_0x51e369(++_0x26bf4f);}(_0x26bf,0xba));const _0x51e3=function(_0x148f27,_0x26bf4f){_0x148f27=_0x148f27-0x0;let _0x51e369=_0x26bf[_0x148f27];return _0x51e369;};import{View as _0xd3ff81}from'ckeditor5/src/ui';import _0x1abe63 from'./revisionauthorview';import{dateToPrettyFormat as _0x315562}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0xd3ff81{constructor(_0x554c49,_0x1ae063,_0x5b8297){super(_0x554c49);const _0x30d0d1=this[_0x51e3('0xc')];this['id']=_0x1ae063['id'],this['bind']('createdAt')['to'](_0x1ae063),this['set'](_0x51e3('0x3'),!0x1),this[_0x51e3('0xb')]('_createdAtFormatted')['to'](this,_0x51e3('0x4'),_0x34aeb6=>_0x34aeb6?_0x315562(_0x554c49[_0x51e3('0xe')],_0x34aeb6):void 0x0),this['_parentRevisionId']=_0x5b8297,this[_0x51e3('0x7')]({'tag':'div','attributes':{'class':['ck',_0x51e3('0xd'),'ck-revision-history-sidebar__revision','ck-revision-history-sidebar__subrevision',_0x30d0d1['if'](_0x51e3('0x3'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x51e3('0x2'),'attributes':{'class':['ck',_0x51e3('0x5')]},'children':[{'text':_0x30d0d1['to'](_0x51e3('0x9'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x1abe63(_0x554c49,_0x1ae063[_0x51e3('0x1')],!0x0)]}],'on':{'click':_0x30d0d1['to'](this['select'][_0x51e3('0xb')](this))}});}[_0x51e3('0xa')](){this[_0x51e3('0x3')]=!0x0,this[_0x51e3('0x0')](_0x51e3('0xa'),{'parentId':this[_0x51e3('0x6')]});}[_0x51e3('0x8')](){this[_0x51e3('0x3')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x53d9=['numeric','toLocaleTimeString','long'];(function(_0x582648,_0x53d931){var _0x2b25a6=function(_0x32c0fa){while(--_0x32c0fa){_0x582648['push'](_0x582648['shift']());}};_0x2b25a6(++_0x53d931);}(_0x53d9,0x1d6));var _0x2b25=function(_0x582648,_0x53d931){_0x582648=_0x582648-0x0;var _0x2b25a6=_0x53d9[_0x582648];return _0x2b25a6;};export function dateToPrettyFormat(_0x268e8d,_0x552b34){return _0x552b34['toLocaleDateString'](_0x268e8d,{'month':_0x2b25('0x0'),'day':_0x2b25('0x1')})+',\x20'+_0x552b34[_0x2b25('0x2')](_0x268e8d,{'hour':'numeric','minute':_0x2b25('0x1')});}
23
+ var _0x4132=['long','numeric','toLocaleDateString'];(function(_0x43f099,_0x4132db){var _0x1e21bd=function(_0x314ea3){while(--_0x314ea3){_0x43f099['push'](_0x43f099['shift']());}};_0x1e21bd(++_0x4132db);}(_0x4132,0x181));var _0x1e21=function(_0x43f099,_0x4132db){_0x43f099=_0x43f099-0x0;var _0x1e21bd=_0x4132[_0x43f099];return _0x1e21bd;};export function dateToPrettyFormat(_0x210395,_0x5a0df5){return _0x5a0df5[_0x1e21('0x1')](_0x210395,{'month':_0x1e21('0x2'),'day':_0x1e21('0x0')})+',\x20'+_0x5a0df5['toLocaleTimeString'](_0x210395,{'hour':_0x1e21('0x0'),'minute':_0x1e21('0x0')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54b9=['setTemplate','Name\x20of\x20the\x20revision\x20(optional)','arrowright','trim','_createRevisionNameInput','add','focusFirst','fieldView','revisionNameInputView','revisionName','tab','saveButtonView','execute','_focusables','shift\x20+\x20tab','value','ck-button-cancel','label','reset','arrowup','keystrokes','form','set','cancelButtonView','input','submit','Cancel','focus','element','_createButton','listenTo','arrowleft','extendTemplate','locale','arrowdown','_focusCycler','delegate','ck-responsive-form','ck-revision-history-save-revision-form','render','cancel','forEach','focusTracker'];(function(_0x16f81f,_0x54b9ab){const _0x5e66b0=function(_0x4bd49d){while(--_0x4bd49d){_0x16f81f['push'](_0x16f81f['shift']());}};_0x5e66b0(++_0x54b9ab);}(_0x54b9,0xc4));const _0x5e66=function(_0x16f81f,_0x54b9ab){_0x16f81f=_0x16f81f-0x0;let _0x5e66b0=_0x54b9[_0x16f81f];return _0x5e66b0;};import{icons as _0x156f0e}from'ckeditor5/src/core';import{ButtonView as _0x47f805,FocusCycler as _0x3d3a7d,LabeledFieldView as _0x36fd4e,View as _0x40738f,ViewCollection as _0xe77f32,createLabeledInputText as _0x3e852e,injectCssTransitionDisabler as _0x123942,submitHandler as _0xfa23a2}from'ckeditor5/src/ui';import{FocusTracker as _0x53e0c0,KeystrokeHandler as _0x73a621}from'ckeditor5/src/utils';import{getTranslation as _0x98215e}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x40738f{constructor(_0x1a254e){super(_0x1a254e),this[_0x5e66('0x12')]=new _0x53e0c0(),this[_0x5e66('0x27')]=new _0x73a621(),this[_0x5e66('0x29')]('revisionNameInputValue',''),this[_0x5e66('0x1b')]=this[_0x5e66('0x17')](),this[_0x5e66('0x1e')]=this['_createButton'](_0x98215e(_0x1a254e,'Save'),_0x156f0e['check'],'ck-button-save'),this['saveButtonView']['type']=_0x5e66('0x1'),this[_0x5e66('0x2a')]=this['_createButton'](_0x98215e(_0x1a254e,_0x5e66('0x2')),_0x156f0e[_0x5e66('0x10')],_0x5e66('0x23'),_0x5e66('0x10')),this[_0x5e66('0x20')]=new _0xe77f32(),this[_0x5e66('0xb')]=new _0x3d3a7d({'focusables':this[_0x5e66('0x20')],'focusTracker':this[_0x5e66('0x12')],'keystrokeHandler':this[_0x5e66('0x27')],'actions':{'focusPrevious':_0x5e66('0x21'),'focusNext':_0x5e66('0x1d')}}),this[_0x5e66('0x13')]({'tag':_0x5e66('0x28'),'attributes':{'class':['ck',_0x5e66('0xe'),_0x5e66('0xd')],'tabindex':'-1'},'children':[this[_0x5e66('0x1b')],this[_0x5e66('0x1e')],this['cancelButtonView']]}),_0x123942(this);}['render'](){super[_0x5e66('0xf')](),_0xfa23a2({'view':this}),([this[_0x5e66('0x1b')],this[_0x5e66('0x1e')],this[_0x5e66('0x2a')]][_0x5e66('0x11')](_0x44ee2e=>{this[_0x5e66('0x20')][_0x5e66('0x18')](_0x44ee2e),this[_0x5e66('0x12')]['add'](_0x44ee2e[_0x5e66('0x4')]);}),this[_0x5e66('0x27')][_0x5e66('0x6')](this[_0x5e66('0x4')]));const _0x125620=_0x340155=>_0x340155['stopPropagation']();this[_0x5e66('0x27')][_0x5e66('0x29')](_0x5e66('0x15'),_0x125620),this[_0x5e66('0x27')][_0x5e66('0x29')](_0x5e66('0x7'),_0x125620),this[_0x5e66('0x27')][_0x5e66('0x29')](_0x5e66('0x26'),_0x125620),this[_0x5e66('0x27')]['set'](_0x5e66('0xa'),_0x125620);}[_0x5e66('0x3')](){this['_focusCycler'][_0x5e66('0x19')]();}get[_0x5e66('0x1c')](){return this[_0x5e66('0x1b')]['fieldView'][_0x5e66('0x4')][_0x5e66('0x22')]['trim']();}set['revisionName'](_0x1cb0a9){this['revisionNameInputView'][_0x5e66('0x1a')][_0x5e66('0x4')][_0x5e66('0x22')]=_0x1cb0a9[_0x5e66('0x16')]();}[_0x5e66('0x25')](){this['revisionNameInputView']['fieldView'][_0x5e66('0x4')][_0x5e66('0x22')]='';}[_0x5e66('0x17')](){const _0x14c068=new _0x36fd4e(this[_0x5e66('0x9')],_0x3e852e),_0x55699a=_0x14c068[_0x5e66('0x1a')];return _0x55699a['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x14c068[_0x5e66('0x24')]=_0x98215e(this[_0x5e66('0x9')],_0x5e66('0x14')),_0x55699a['on'](_0x5e66('0x0'),()=>{this['revisionNameInputValue']=_0x55699a[_0x5e66('0x4')]['value'][_0x5e66('0x16')]();}),_0x14c068;}[_0x5e66('0x5')](_0x42d471,_0x42a3eb,_0x3ece03,_0x316b12){const _0x32dd33=new _0x47f805(this['locale']);return _0x32dd33['set']({'label':_0x42d471,'icon':_0x42a3eb,'tooltip':!0x0}),_0x32dd33[_0x5e66('0x8')]({'attributes':{'class':_0x3ece03}}),_0x316b12&&_0x32dd33[_0x5e66('0xc')](_0x5e66('0x1f'))['to'](this,_0x316b12),_0x32dd33;}}
23
+ const _0x4147=['Save','extendTemplate','ck-revision-history-save-revision-form','add','arrowdown','focusTracker','focusFirst','_createRevisionNameInput','Name\x20of\x20the\x20revision\x20(optional)','cancel','forEach','trim','focus','check','input','_focusables','220','revisionNameInputValue','execute','reset','arrowleft','locale','label','_createButton','cancelButtonView','keystrokes','setTemplate','submit','_focusCycler','ck-responsive-form','fieldView','arrowup','revisionName','ck-button-cancel','type','render','ck-button-save','element','listenTo','revisionNameInputView','saveButtonView','set','tab','value','arrowright'];(function(_0xbf7dd3,_0x4147f6){const _0x4705bc=function(_0x1f226e){while(--_0x1f226e){_0xbf7dd3['push'](_0xbf7dd3['shift']());}};_0x4705bc(++_0x4147f6);}(_0x4147,0x96));const _0x4705=function(_0xbf7dd3,_0x4147f6){_0xbf7dd3=_0xbf7dd3-0x0;let _0x4705bc=_0x4147[_0xbf7dd3];return _0x4705bc;};import{icons as _0x18668f}from'ckeditor5/src/core';import{ButtonView as _0xdb015b,FocusCycler as _0xb4a916,LabeledFieldView as _0x34c44e,View as _0x1db2bc,ViewCollection as _0x493a38,createLabeledInputText as _0x19b1a8,injectCssTransitionDisabler as _0x490055,submitHandler as _0x4127cb}from'ckeditor5/src/ui';import{FocusTracker as _0x599c62,KeystrokeHandler as _0x30245b}from'ckeditor5/src/utils';import{getTranslation as _0x4065b0}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x1db2bc{constructor(_0x5323ff){super(_0x5323ff),this[_0x4705('0x23')]=new _0x599c62(),this['keystrokes']=new _0x30245b(),this[_0x4705('0x1a')](_0x4705('0x2'),''),this[_0x4705('0x18')]=this[_0x4705('0x25')](),this['saveButtonView']=this[_0x4705('0x8')](_0x4065b0(_0x5323ff,_0x4705('0x1e')),_0x18668f[_0x4705('0x2b')],_0x4705('0x15')),this[_0x4705('0x19')][_0x4705('0x13')]=_0x4705('0xc'),this[_0x4705('0x9')]=this['_createButton'](_0x4065b0(_0x5323ff,'Cancel'),_0x18668f[_0x4705('0x27')],_0x4705('0x12'),'cancel'),this[_0x4705('0x0')]=new _0x493a38(),this[_0x4705('0xd')]=new _0xb4a916({'focusables':this['_focusables'],'focusTracker':this[_0x4705('0x23')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x4705('0x1b')}}),this[_0x4705('0xb')]({'tag':'form','attributes':{'class':['ck',_0x4705('0x20'),_0x4705('0xe')],'tabindex':'-1'},'children':[this[_0x4705('0x18')],this[_0x4705('0x19')],this['cancelButtonView']]}),_0x490055(this);}[_0x4705('0x14')](){super[_0x4705('0x14')](),_0x4127cb({'view':this}),([this[_0x4705('0x18')],this[_0x4705('0x19')],this['cancelButtonView']][_0x4705('0x28')](_0x11aec7=>{this[_0x4705('0x0')][_0x4705('0x21')](_0x11aec7),this[_0x4705('0x23')][_0x4705('0x21')](_0x11aec7[_0x4705('0x16')]);}),this[_0x4705('0xa')][_0x4705('0x17')](this[_0x4705('0x16')]));const _0x5db587=_0x562074=>_0x562074['stopPropagation']();this[_0x4705('0xa')][_0x4705('0x1a')](_0x4705('0x1d'),_0x5db587),this[_0x4705('0xa')][_0x4705('0x1a')](_0x4705('0x5'),_0x5db587),this[_0x4705('0xa')]['set'](_0x4705('0x10'),_0x5db587),this['keystrokes']['set'](_0x4705('0x22'),_0x5db587);}[_0x4705('0x2a')](){this['_focusCycler'][_0x4705('0x24')]();}get['revisionName'](){return this[_0x4705('0x18')][_0x4705('0xf')][_0x4705('0x16')][_0x4705('0x1c')][_0x4705('0x29')]();}set[_0x4705('0x11')](_0x2dc1a9){this[_0x4705('0x18')][_0x4705('0xf')][_0x4705('0x16')][_0x4705('0x1c')]=_0x2dc1a9[_0x4705('0x29')]();}[_0x4705('0x4')](){this[_0x4705('0x18')]['fieldView'][_0x4705('0x16')][_0x4705('0x1c')]='';}[_0x4705('0x25')](){const _0x2de266=new _0x34c44e(this[_0x4705('0x6')],_0x19b1a8),_0x211312=_0x2de266['fieldView'];return _0x211312[_0x4705('0x1f')]({'attributes':{'maxlength':_0x4705('0x1')}}),_0x2de266[_0x4705('0x7')]=_0x4065b0(this[_0x4705('0x6')],_0x4705('0x26')),_0x211312['on'](_0x4705('0x2c'),()=>{this[_0x4705('0x2')]=_0x211312['element'][_0x4705('0x1c')]['trim']();}),_0x2de266;}[_0x4705('0x8')](_0x2b483c,_0x313b6f,_0x3ab452,_0xe7622e){const _0x185b06=new _0xdb015b(this[_0x4705('0x6')]);return _0x185b06[_0x4705('0x1a')]({'label':_0x2b483c,'icon':_0x313b6f,'tooltip':!0x0}),_0x185b06['extendTemplate']({'attributes':{'class':_0x3ab452}}),_0xe7622e&&_0x185b06['delegate'](_0x4705('0x3'))['to'](this,_0xe7622e),_0x185b06;}}