@ckeditor/ckeditor5-revision-history 37.0.0-rc.0 → 37.0.1

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 _0x11d8=['revision-viewer','getChild','setAttribute','_getViewForChange','getItems','high','plugins','start','offsetSize','getClientRects','editor','removeMarker:revision','enableReadOnlyMode','deletion','diffData','revision-suggestion:','_markSuggestions','_fixObsoleteTags','end','markerToHighlight','unshift','abs','startsWith','bindElementToMarker','ck-editor__editable__overlay','_makeModelFromTape','markersEnd','isBlock','stop','toViewPosition','test','addMarker:revision-suggestion:insertion','changes','bottom','RevisionViewer','isReady','writer','refresh','parent','revision-start','_threeWayMerge','_findChangeIdFromDomTarget','low','_setConversion','distance','from','viewItem','_removeUnsupportedChanges','remove','commands','activeView','keys','newRevisionId','ck-suggestion-marker--active','type','isObject','startIndex','createRevision','revision:','forceDisabled','side','readOnlyMode','editingDowncast','element','ck-suggestion-marker-merge','mapViewToDom','getCustomProperty','getIndex','then','<p></p>','checkAttribute','_data','length','removeMarker:revision-suggestion','insertion','data','vid_end','createRange','map','execute','markersStart','change','_getChangeFromId','done','comment','pluginName','reconvertMarker','getRevisionData','isAtStart','sort','getWalker','delete','forward','_activeViewTarget','get','_setData','_removeMissingPairs','createPositionFromPath','next','_step','mouseover','filter','revisionHistoryLabel','destroy','markerToData','suggestion:','processor','findIndex','has','clear','add','getAttribute','currentChangeNumber','nextPosition','dataToMarker','showPreviousChange','compare','markerName','isSuggestion','_update','range','domConverter','createAttributeElement','ck-suggestion-marker-split','document','userId','stopListening','item','isContent','find','config','_removeRevisionMarkers','enqueueChange','model','authors','ck-suggestion-marker-','_changeIdToChange','useFillerType','editing','-new','catch','restoreRevisionCallback','split','previousPosition','repository','maxOffset','revision','element:pre','upcast','numberOfChanges','isAddSuggestion','isIncorrect','right','view','isEqual','endIndex','_markMarkers','isNavigationMode','revisionHistory','conversion','isLimit','isCollapsed','_makeTape','toModel','isAtEnd','markerRange','isRemoved','error','name','string','mapper','ck-suggestion-preview-marker-','isBefore','toViewElement','createRangeIn','revision-suggestion','downcastDispatcher','getRevision','isAdded','change:isEnabled','markers','hasClass','_changeView','level','target','values','uiElement','activeChange','modelRange','_cleanMarkers','bind','vid','attributes','_cleanUp','merge','_markInsertions','schema','left','children','revision-end','softBreak','removeMarker','dataDowncast','isEnabled','clearForceDisabled','insert','elementEnd','oldRevisionId','change:activeView','listenTo','_initInteractions','set','markerNameToElements','splice','restoreRevision','for','highest','span','insertions','addMarker:revision-suggestion:deletion','parse','adapter','change:numberOfChanges','addClass','_processTape','_setDistance','loadRevisionData','isRemoveSuggestion','change:isReadOnly','createUIElement','_getViewObj','hasAttribute','unbindElementFromMarkerName','consume','_appendChild','return','concat','code','createPositionBefore','updatePosition','data-change-id','forEach','elementStart','_refreshStartEndIndex','_revisions','_joinTapes','_balloon','isAfter','wrap','addMarker:revision','_getDiff','addHighlight','RevisionsRepository','_getRevisionsRange','pairId','includes','index','top','push','consumable','slice','ck-suggestion-preview-marker','POSITIVE_INFINITY','nodeAfter','shift','diff','domEvent','text','requires','WidgetToolbarRepository','marked','addRevisionData','data-revision-','toViewRange','flat','change:isReady','vid_start','getAttributes','first','_markMismatchedRemovedTags'];(function(_0x268f05,_0x11d85b){const _0x111918=function(_0x10d43b){while(--_0x10d43b){_0x268f05['push'](_0x268f05['shift']());}};_0x111918(++_0x11d85b);}(_0x11d8,0x106));const _0x1119=function(_0x268f05,_0x11d85b){_0x268f05=_0x268f05-0x0;let _0x111918=_0x11d8[_0x268f05];return _0x111918;};import{Plugin as _0x49c6ba,Command as _0x51c7a9}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x572c4d}from'ckeditor5/src/utils';import{ContextualBalloon as _0x8b468e}from'ckeditor5/src/ui';import{DocumentFragment as _0x13b4fb,Element as _0x4b0204,Text as _0x303393,ViewDocumentFragment as _0x4de3cb,ViewText as _0x3bd61c,ViewElement as _0x5d7abe,ViewContainerElement as _0x1d53bf,ViewAttributeElement as _0x4d2106,ViewEmptyElement as _0x3d249d,ViewRawElement as _0x34acfd,ViewUIElement as _0x4c26c7}from'ckeditor5/src/engine';import{Users as _0x27647a,getMarkerDomElement as _0x112317}from'ckeditor5-collaboration/src/collaboration-core';import _0x2a8a3e from'./ui/revisionviewer/changedetailsview';import _0xc876b from'./revisionsrepository';import _0x306fe0 from'./changeitem';import{default as _0x224b8a}from'./revisiondiff';import'../theme/revisionviewer.css';const K={'c':_0x1d53bf,'a':_0x4d2106,'e':_0x3d249d,'r':_0x34acfd,'u':_0x4c26c7};export default class y extends _0x49c6ba{static get[_0x1119('0x67')](){return _0x1119('0x34');}static get[_0x1119('0x6')](){return[_0x27647a,_0x8b468e,_0xc876b];}constructor(_0x47eb21){super(_0x47eb21),this['repository']=this[_0x1119('0x1c')][_0x1119('0x18')][_0x1119('0x70')](_0x1119('0x10e')),this[_0x1119('0xe5')]('activeChange',null),this[_0x1119('0xe5')](_0x1119('0x44'),null),this[_0x1119('0x6f')]=null,this[_0x1119('0xe5')](_0x1119('0x3'),null),this['set'](_0x1119('0x35'),!0x1),this['set'](_0x1119('0xdd'),!0x0),this['on']('change:isEnabled',(_0x287c03,_0x23efea,_0x2976de)=>{this[_0x1119('0xcd')]=null,this[_0x1119('0x44')]=null,this[_0x1119('0x1c')][_0x1119('0x9c')][_0x1119('0xab')][_0x1119('0x63')](_0x23219e=>{for(const _0x3f7a56 of this[_0x1119('0x1c')]['editing']['view'][_0x1119('0x8e')]['roots'])_0x2976de?_0x23219e['removeClass'](_0x1119('0x2a'),_0x3f7a56):_0x23219e[_0x1119('0xf1')](_0x1119('0x2a'),_0x3f7a56);});}),this['bind'](_0x1119('0xaf'))['to'](this,'activeChange',_0x37e47c=>null!==_0x37e47c),this[_0x1119('0xd0')](_0x1119('0x82'))['to'](this,_0x1119('0x35'),this,'diff',this,'activeChange',(_0x3650bd,_0x16af45,_0x4e0bb9)=>_0x3650bd&&_0x4e0bb9?_0x16af45[_0x1119('0x32')][_0x1119('0x55')](_0x4e0bb9):0x0),this[_0x1119('0xd0')](_0x1119('0xa7'))['to'](this,_0x1119('0x35'),this,_0x1119('0x3'),(_0x120457,_0x370c3e)=>_0x120457?_0x370c3e['changes']['length']:0x0),this[_0x1119('0xc8')]=null,this['_changeIdToChange']=new Map(),this[_0x1119('0xef')]=null,this[_0x1119('0x108')]=this[_0x1119('0x1c')][_0x1119('0x18')][_0x1119('0x70')](_0x8b468e);}['init'](){const _0xd55971=this[_0x1119('0x1c')],_0x176a70=new ShowChangeCommand(_0xd55971,{'direction':'backward'}),_0x10ef6c=new ShowChangeCommand(_0xd55971,{'direction':_0x1119('0x6e')});(_0xd55971[_0x1119('0x43')][_0x1119('0x80')](_0x1119('0x85'),_0x176a70),_0xd55971['commands']['add']('showNextChange',_0x10ef6c),_0xd55971['commands'][_0x1119('0x80')](_0x1119('0xe8'),new RestoreRevisionCommand(_0xd55971)),this['on'](_0x1119('0xf0'),()=>{_0x176a70[_0x1119('0x37')](),_0x10ef6c[_0x1119('0x37')]();}),this['_setConversion'](),this[_0x1119('0xe4')](),_0xd55971[_0x1119('0x1e')]('revision-viewer'),_0xd55971['plugins'][_0x1119('0x7e')](_0x1119('0x7')))&&_0xd55971[_0x1119('0x18')]['get']('WidgetToolbarRepository')[_0x1119('0x4d')](_0x1119('0x12'));}async[_0x1119('0x69')](_0x5f275c){await this[_0x1119('0xf4')](_0x5f275c);const _0x220eee={};for(const _0x292ec7 in _0x5f275c[_0x1119('0x20')]){const _0x90ee38=this[_0x1119('0x95')](JSON[_0x1119('0xee')](_0x5f275c[_0x1119('0x20')][_0x292ec7]['insertions'])),_0x4cd6a8=this[_0x1119('0x1c')][_0x1119('0x9c')]['view'][_0x1119('0x8e')],_0x40a9e6=new _0x4de3cb(_0x4cd6a8,_0x90ee38[_0x1119('0x60')](_0x355db4=>this[_0x1119('0xf8')](_0x355db4)));this[_0x1119('0x1c')][_0x1119('0x5d')][_0x1119('0x7c')]['useFillerType'](_0x1119('0x8')),_0x220eee[_0x292ec7]=this['editor'][_0x1119('0x5d')]['processor']['toData'](_0x40a9e6),this[_0x1119('0x1c')][_0x1119('0x5d')][_0x1119('0x7c')][_0x1119('0x9b')]('default');}return _0x220eee;}['_removeRevisionMarkers'](_0x34eb59){return(_0x34eb59=_0x34eb59[_0x1119('0x77')](_0x486890=>!_0x486890[_0x1119('0xba')]||_0x1119('0x39')!==_0x486890[_0x1119('0xba')]&&_0x1119('0xd9')!==_0x486890[_0x1119('0xba')]))[_0x1119('0x103')](_0x5a7810=>{_0x1119('0xbb')!=typeof _0x5a7810&&(_0x5a7810[_0x1119('0xd8')]=this['_removeRevisionMarkers'](_0x5a7810[_0x1119('0xd8')]),_0x5a7810[_0x1119('0xd2')]=_0x5a7810[_0x1119('0xd2')][_0x1119('0x77')](_0x4f7e8e=>!_0x4f7e8e[0x0][_0x1119('0x28')](_0x1119('0xa'))));}),_0x34eb59;}async[_0x1119('0x86')](_0x5a50c8,_0xdcda18,_0x233df4=!0x1){if(!this[_0x1119('0xdd')])return;const _0x2b785a=this[_0x1119('0x3')],_0x1181db=this['repository'],_0x584ee3=_0x1119('0xbb')==typeof _0x5a50c8?_0x1181db['getRevision'](_0x5a50c8):_0x5a50c8,_0x49b855='string'==typeof _0xdcda18?_0x1181db['getRevision'](_0xdcda18):_0xdcda18,_0x23ecf1=_0x584ee3['id'],_0x39f971=_0x49b855?_0x49b855['id']:null;if(!_0x233df4&&this[_0x1119('0x3')]&&this[_0x1119('0x3')]['newRevisionId']===_0x23ecf1&&this[_0x1119('0x3')][_0x1119('0xe1')]===_0x39f971)return Promise['resolve']();this[_0x1119('0x35')]=!0x1,this[_0x1119('0x44')]=null,this['activeChange']=null,this[_0x1119('0x3')]=new _0x224b8a(_0x23ecf1,_0x39f971);const _0x43ac84=this[_0x1119('0x10f')](_0x584ee3,_0x49b855,!0x0)[_0x1119('0x60')](_0x101fed=>this['loadRevisionData'](_0x101fed));return _0x43ac84['push'](new Promise(_0x31b0d9=>{setTimeout(_0x31b0d9,0x14);})),Promise['all'](_0x43ac84)[_0x1119('0x56')](()=>{if(!this[_0x1119('0xdd')])return;this[_0x1119('0xd3')]();const _0x268a5c=this[_0x1119('0x10c')](_0x23ecf1,_0x39f971);this[_0x1119('0x3')][_0x1119('0x71')](_0x268a5c);for(const _0x593fad of this['diff']['changes'])this['_changeIdToChange'][_0x1119('0xe5')](_0x593fad['id'],_0x593fad);this[_0x1119('0x1c')][_0x1119('0x97')][_0x1119('0x96')]({'isUndoable':!0x1},_0x53d578=>{for(const _0x2ff57a of Object[_0x1119('0x45')](_0x268a5c[_0x1119('0x97')])){const _0x52a9df=this[_0x1119('0x1c')][_0x1119('0x97')]['document']['getRoot'](_0x2ff57a);_0x53d578['remove'](_0x53d578['createRangeIn'](_0x52a9df)),_0x53d578[_0x1119('0xdf')](_0x268a5c[_0x1119('0x97')][_0x2ff57a],_0x52a9df,0x0);}}),this[_0x1119('0x35')]=!0x0;})[_0x1119('0x9e')](_0x263810=>{console[_0x1119('0xb9')](_0x263810),this[_0x1119('0xd3')](),_0x2b785a?this[_0x1119('0x3')]=_0x2b785a:this[_0x1119('0x1c')][_0x1119('0x5d')]['set'](_0x1119('0x57')),this[_0x1119('0x35')]=!0x0;});}[_0x1119('0x79')](){this[_0x1119('0x44')]=null,this[_0x1119('0xc8')]&&this['_changeView'][_0x1119('0x79')]();}[_0x1119('0x9')](_0x20384c,_0x5d18d7){const _0x174010=this[_0x1119('0xa2')][_0x1119('0x4b')](_0x20384c);return _0x174010['on'](_0x1119('0x89'),(_0x18f471,_0x138d44,_0x5a61fc)=>_0x5d18d7(_0x138d44,_0x5a61fc,_0x174010)),this[_0x1119('0xa2')]['addRevision'](_0x174010),_0x174010;}[_0x1119('0xf4')](_0x49548e){if(!_0x49548e||_0x49548e[_0x1119('0x20')])return Promise['resolve']();{const _0x2a5f45=this[_0x1119('0x1c')][_0x1119('0x94')]['get']('collaboration.channelId');return this['adapter'][_0x1119('0xc3')]({'channelId':_0x2a5f45,'revisionId':_0x49548e['id']})[_0x1119('0x56')](_0x4e23f5=>{_0x49548e[_0x1119('0x89')]({'diffData':_0x4e23f5['diffData']},!0x0);});}}[_0x1119('0xd3')](){this[_0x1119('0xcd')]=null,this[_0x1119('0xcf')](),this[_0x1119('0xc8')]&&this[_0x1119('0xc8')][_0x1119('0x79')](),this[_0x1119('0xc8')]=null,this[_0x1119('0x9a')][_0x1119('0x7f')]();}[_0x1119('0xb4')](_0x44a48b){const _0x102ab2=Array[_0x1119('0x3f')](_0x44a48b[_0x1119('0xc6')])[_0x1119('0x77')](([_0xf290d,_0x207f92])=>_0xf290d[_0x1119('0x28')]('revision:')&&!_0x207f92[_0x1119('0xb3')]),_0x41bde8=Array['from'](this['editor']['model'][_0x1119('0xc0')](_0x44a48b)[_0x1119('0x6c')]({'singleCharacters':!0x0}));if(0x0!=_0x102ab2['length'])for(const _0xe386b3 of _0x41bde8){const [_0x1c31ec,_0x52fa47]=_0x102ab2[0x0],[,_0x507aaa,_0x36634f]=_0x1c31ec['split'](':');if(_0x52fa47[_0x1119('0x24')][_0x1119('0xac')](_0xe386b3[_0x1119('0x83')])&&_0x102ab2[_0x1119('0x2')](),(_0xe386b3[_0x1119('0xa1')][_0x1119('0xac')](_0x52fa47['start'])||_0xe386b3[_0x1119('0xa1')][_0x1119('0x109')](_0x52fa47[_0x1119('0x19')]))&&(_0x1119('0x5c')==_0x507aaa?_0xe386b3[_0x1119('0xc4')]={'userId':_0x36634f}:_0x1119('0x1f')==_0x507aaa&&(_0xe386b3[_0x1119('0xb8')]={'userId':_0x36634f})),0x0==_0x102ab2[_0x1119('0x5a')])break;}return _0x41bde8;}['_refreshStartEndIndex'](_0x442659){const _0x32749b=new Map();for(let _0x3021e1=0x0;_0x3021e1<_0x442659[_0x1119('0x5a')];_0x3021e1++)_0x1119('0x5')===_0x442659[_0x3021e1][_0x1119('0x48')]?(_0x442659[_0x3021e1][_0x1119('0x91')][_0x1119('0x4a')]=_0x3021e1,_0x442659[_0x3021e1][_0x1119('0x91')]['endIndex']=_0x3021e1):(_0x1119('0x104')===_0x442659[_0x3021e1][_0x1119('0x48')]?_0x442659[_0x3021e1][_0x1119('0x91')][_0x1119('0x4a')]=_0x3021e1:'elementEnd'===_0x442659[_0x3021e1][_0x1119('0x48')]&&(_0x442659[_0x3021e1]['item'][_0x1119('0xad')]=_0x3021e1),_0x32749b[_0x1119('0xe5')](_0x442659[_0x3021e1]['id'],_0x3021e1));for(const _0x5c559b of _0x32749b[_0x1119('0xcb')]())_0x1119('0x104')===_0x442659[_0x5c559b][_0x1119('0x48')]?_0x442659[_0x5c559b][_0x1119('0x91')]['endIndex']=_0x32749b['get'](_0x442659[_0x5c559b][_0x1119('0x110')]):'elementEnd'===_0x442659[_0x5c559b][_0x1119('0x48')]&&(_0x442659[_0x5c559b][_0x1119('0x91')]['startIndex']=_0x32749b[_0x1119('0x70')](_0x442659[_0x5c559b][_0x1119('0x110')]));}[_0x1119('0xf2')](_0x12ca49){for(let _0x529b7b=0x0;_0x529b7b<_0x12ca49[_0x1119('0x5a')];_0x529b7b++){if(_0x1119('0x104')===_0x12ca49[_0x529b7b][_0x1119('0x48')])_0x12ca49[_0x529b7b][_0x1119('0x91')][_0x1119('0x4a')]=_0x529b7b;else{if('elementEnd'===_0x12ca49[_0x529b7b][_0x1119('0x48')]){_0x12ca49[_0x529b7b]['item'][_0x1119('0xad')]=_0x529b7b;const _0x39f78b=_0x12ca49[_0x529b7b]['item'][_0x1119('0x4a')];_0x12ca49[_0x39f78b][_0x1119('0x110')]=_0x12ca49[_0x529b7b]['id'],_0x12ca49[_0x529b7b][_0x1119('0x110')]=_0x12ca49[_0x39f78b]['id'];}else _0x12ca49[_0x529b7b][_0x1119('0x91')][_0x1119('0x4a')]=_0x529b7b,_0x12ca49[_0x529b7b][_0x1119('0x91')][_0x1119('0xad')]=_0x529b7b,_0x12ca49[_0x529b7b][_0x1119('0x110')]=null;}_0x12ca49[_0x529b7b]['markersStart']||(_0x12ca49[_0x529b7b][_0x1119('0x62')]=[],_0x12ca49[_0x529b7b][_0x1119('0x2c')]=[]);}}['_markInsertions'](_0x4afe67,_0x2ee7e4){const _0x5bacba=_0x4afe67[_0x1119('0x77')](_0x2a3356=>!_0x2a3356[_0x1119('0xc4')]);for(let _0x2f43fd=0x0;_0x2f43fd<_0x2ee7e4['length'];_0x2f43fd++)_0x2ee7e4[_0x2f43fd][_0x1119('0xc4')]&&(_0x5bacba[_0x2f43fd][_0x1119('0xc4')]=_0x2ee7e4[_0x2f43fd][_0x1119('0xc4')]);}['_makeModelFromViewString'](_0x243a76){const _0x1a5ebd=JSON[_0x1119('0xee')](_0x243a76),_0x5ed9fa=this[_0x1119('0x1c')][_0x1119('0x9c')][_0x1119('0xab')][_0x1119('0x8e')],_0xa47e78=new _0x4de3cb(_0x5ed9fa,_0x1a5ebd['map'](_0x1e4bfd=>this[_0x1119('0xf8')](_0x1e4bfd)));return this['editor'][_0x1119('0x5d')][_0x1119('0xb5')](_0xa47e78);}[_0x1119('0xf8')](_0x1a3f35){const _0x1fde3e=this[_0x1119('0x1c')][_0x1119('0x9c')]['view'][_0x1119('0x8e')];if('string'==typeof _0x1a3f35)return new _0x3bd61c(_0x1fde3e,_0x1a3f35);{const _0x2fc6c2=_0x1a3f35[_0x1119('0xd8')]['map'](_0x4f0863=>this['_getViewObj'](_0x4f0863));return new(K[_0x1a3f35[(_0x1119('0x48'))]]||_0x5d7abe)(_0x1fde3e,_0x1a3f35['name'],_0x1a3f35[_0x1119('0xd2')],_0x2fc6c2);}}[_0x1119('0x10c')](_0x4fcac5,_0x2e2b37=null){const _0xdebddf=this[_0x1119('0xa2')]['getRevision'](_0x4fcac5),_0x47e593=_0x2e2b37?this[_0x1119('0xa2')][_0x1119('0xc3')](_0x2e2b37):null,_0x30390d=this[_0x1119('0x10f')](_0xdebddf,_0x47e593),_0x5a70b9=_0x30390d[_0x30390d[_0x1119('0x5a')]-0x1],_0x8a29a6=new Map();for(const _0x4eaf92 of _0x30390d){_0x4eaf92[_0x1119('0x97')]={};for(const _0x599ac9 of _0x4eaf92[_0x1119('0x98')])_0x8a29a6[_0x1119('0xe5')](_0x599ac9['id'],_0x599ac9);for(const _0x1c0520 of this[_0x1119('0x1c')]['model']['document']['getRootNames']())_0x4eaf92[_0x1119('0x20')][_0x1c0520]||(_0x4eaf92[_0x1119('0x20')][_0x1c0520]={'insertions':'[]','deletions':'[]'}),_0x4eaf92['model'][_0x1c0520]={'insertions':this['_makeModelFromViewString'](_0x4eaf92['diffData'][_0x1c0520][_0x1119('0xec')]),'deletions':this['_makeModelFromViewString'](_0x4eaf92[_0x1119('0x20')][_0x1c0520]['deletions'])};}const _0x401260={'model':{},'changes':[]};for(const _0x1ac7dc of this[_0x1119('0x1c')][_0x1119('0x97')][_0x1119('0x8e')]['getRootNames']()){let _0x49e063=null,_0x5578fb=0x0;const _0xf4259d=new Map(Array[_0x1119('0x3f')](_0xdebddf[_0x1119('0x97')][_0x1ac7dc][_0x1119('0xec')][_0x1119('0xc6')])[_0x1119('0x77')](([_0x2b8529])=>!_0x2b8529['startsWith'](_0x1119('0x4c'))));let _0x15e16a=0x0;for(const _0x4d6f9b of _0x30390d){const _0x8a2f17=this[_0x1119('0xb4')](_0x4d6f9b[_0x1119('0x97')][_0x1ac7dc][_0x1119('0xec')]);_0x4d6f9b==_0xdebddf?(_0x49e063=_0x8a2f17,_0x5578fb=_0x49e063[_0x1119('0x5a')],_0x49e063[_0x1119('0x103')](_0x41a84f=>{_0x41a84f['id']=_0x15e16a++;}),this['_processTape'](_0x49e063)):this[_0x1119('0xd5')](_0x49e063,_0x8a2f17);const _0x16f9e0=_0x49e063[_0x1119('0x77')](_0x5d0f9c=>!_0x5d0f9c[_0x1119('0xc4')])[_0x1119('0x60')](_0xf58e2d=>_0xf58e2d['id']);let _0x5cb2c4=0x0;const _0x90954f=this['_makeTape'](_0x4d6f9b['model'][_0x1ac7dc]['deletions']);_0x90954f[_0x1119('0x103')](_0x571437=>{_0x571437[_0x1119('0xb8')]?_0x571437['id']=_0x5578fb++:_0x571437['id']=_0x16f9e0[_0x5cb2c4++];}),this['_processTape'](_0x90954f),this['_setDistance'](_0x49e063,_0x1119('0xc4')),this[_0x1119('0xf3')](_0x90954f,_0x1119('0xb8')),_0x4d6f9b==_0xdebddf&&this[_0x1119('0xae')](_0x49e063,_0xf4259d),_0x49e063=this[_0x1119('0x107')](_0x49e063,_0x90954f),this[_0x1119('0x105')](_0x49e063),this['_setDistance'](_0x49e063,_0x1119('0xb8'));}_0x49e063=_0x49e063[_0x1119('0x77')](_0x39cc09=>!(_0x39cc09[_0x1119('0xc4')]&&_0x39cc09[_0x1119('0xb8')]));const _0x5b3936=new Map(_0x5a70b9['model'][_0x1ac7dc]['deletions'][_0x1119('0xc6')]),_0x36cebb=new Set(_0xf4259d['keys']());for(const _0x4fb461 of _0x5b3936[_0x1119('0x45')]())_0x36cebb[_0x1119('0x6d')](_0x4fb461);this[_0x1119('0x22')](_0x49e063,_0x36cebb),this[_0x1119('0x23')](_0x49e063),_0x49e063=this[_0x1119('0x72')](_0x49e063),_0x49e063=this[_0x1119('0x11')](_0x49e063),_0x49e063=this[_0x1119('0x41')](_0x49e063);const {root:_0x577216,changes:_0xaef89e}=this[_0x1119('0x2b')](_0x49e063,_0x8a29a6);_0x401260[_0x1119('0x97')][_0x1ac7dc]=_0x577216,_0x401260[_0x1119('0x32')]=_0x401260[_0x1119('0x32')]['concat'](_0xaef89e);}return _0x401260;}[_0x1119('0xae')](_0x455eab,_0x41efc4){for(let _0x564233=0x0;_0x564233<_0x455eab[_0x1119('0x5a')];_0x564233++)for(const [_0x349fdf,_0x1b3846]of _0x41efc4)_0x1b3846[_0x1119('0x19')][_0x1119('0xac')](_0x455eab[_0x564233][_0x1119('0xa1')])&&_0x455eab[_0x564233][_0x1119('0x62')][_0x1119('0x114')](_0x349fdf),_0x1b3846['end']['isEqual'](_0x455eab[_0x564233][_0x1119('0x83')])&&_0x455eab[_0x564233][_0x1119('0x2c')]['push'](_0x349fdf);}[_0x1119('0x107')](_0x72543e,_0x3dc0f8){let _0xaac911=[],_0x4f1c6b=0x0,_0xd9df9=0x0;for(;_0x4f1c6b<_0x72543e['length']||_0xd9df9<_0x3dc0f8['length'];){const _0x1a6fea=_0x72543e[_0x4f1c6b]||{},_0x3001d9=_0x3dc0f8[_0xd9df9]||{};if(_0x1a6fea['id']==_0x3001d9['id'])_0x4f1c6b++,_0xd9df9++,_0xaac911['push'](_0x1a6fea);else{if(_0x3001d9[_0x1119('0xb8')]&&_0x1a6fea[_0x1119('0xc4')]){const {commonTape:_0x270225,iEnd:_0x460a20,jEnd:_0x3d65c4}=this[_0x1119('0x3a')](_0x72543e,_0x4f1c6b,_0x3dc0f8,_0xd9df9);_0xaac911=_0xaac911['concat'](_0x270225),_0x4f1c6b=_0x460a20,_0xd9df9=_0x3d65c4;}else _0x3001d9[_0x1119('0xb8')]?(_0xd9df9++,_0xaac911[_0x1119('0x114')](_0x3001d9)):(_0x4f1c6b++,_0xaac911['push'](_0x1a6fea));}}return _0xaac911;}['_markSuggestions'](_0x38f832,_0x20c4a4){const _0x44964e=[];for(let _0x1d67d4=0x0;_0x1d67d4<_0x38f832['length'];_0x1d67d4++){for(let _0x468412=0x0;_0x468412<_0x38f832[_0x1d67d4][_0x1119('0x62')][_0x1119('0x5a')];_0x468412++){const _0xcff1af=_0x38f832[_0x1d67d4][_0x1119('0x62')][_0x468412];if(!_0x20c4a4[_0x1119('0x7e')](_0xcff1af))continue;const {group:_0x364155,type:_0xf7605d,authorId:_0x1f2e98}=_0x4b70e8(_0xcff1af);'revision-suggestion'!=_0x364155||'insertion'!=_0xf7605d&&_0x1119('0x1f')!=_0xf7605d||(_0x44964e[_0x1119('0x26')]({'type':_0xf7605d,'name':_0xcff1af,'userId':_0x1f2e98}),_0x38f832[_0x1d67d4]['markersStart'][_0x1119('0xe7')](_0x468412,0x1),_0x468412--);}_0x10727b(_0x38f832[_0x1d67d4]);for(let _0x542b93=0x0;_0x542b93<_0x38f832[_0x1d67d4]['markersEnd'][_0x1119('0x5a')];_0x542b93++){const _0x373b5a=_0x38f832[_0x1d67d4]['markersEnd'][_0x542b93];if(!_0x20c4a4[_0x1119('0x7e')](_0x373b5a))continue;const {group:_0xe85269,type:_0x5967a2}=_0x4b70e8(_0x373b5a);if(_0x1119('0xc1')!=_0xe85269||_0x1119('0x5c')!=_0x5967a2&&_0x1119('0x1f')!=_0x5967a2)continue;_0x38f832[_0x1d67d4][_0x1119('0x2c')][_0x1119('0xe7')](_0x542b93,0x1),_0x542b93--;const _0x2567c9=_0x44964e[_0x1119('0x7d')](_0x30c1db=>_0x30c1db[_0x1119('0xba')]==_0x373b5a);_0x2567c9>-0x1&&_0x44964e['splice'](_0x2567c9,0x1);}}function _0x4b70e8(_0x37695d){const _0x36ee3b=_0x37695d[_0x1119('0xa0')](':');return{'group':_0x36ee3b[0x0],'type':_0x36ee3b[0x1],'subType':_0x36ee3b[_0x1119('0x5a')]>=0x5?_0x36ee3b[0x2]:null,'id':_0x36ee3b[_0x1119('0x5a')]<0x5?_0x36ee3b[0x2]:_0x36ee3b[0x3],'authorId':_0x36ee3b[_0x1119('0x5a')]<0x5?_0x36ee3b[0x3]:_0x36ee3b[0x4],'markerCount':0x6==_0x36ee3b[_0x1119('0x5a')]?_0x36ee3b[0x5]:null};}function _0x10727b(_0x230f6f){for(let _0x3e4e00=0x0;_0x3e4e00<_0x44964e[_0x1119('0x5a')];_0x3e4e00++){if(_0x230f6f[_0x1119('0xc4')]&&_0x1119('0x5c')==_0x44964e[_0x3e4e00]['type'])return _0x230f6f[_0x1119('0xa8')]=_0x44964e[_0x3e4e00],void delete _0x230f6f[_0x1119('0xc4')];if(!_0x230f6f[_0x1119('0xc4')]&&!_0x230f6f[_0x1119('0xb8')]&&'deletion'==_0x44964e[_0x3e4e00]['type'])return void(_0x230f6f[_0x1119('0xf5')]=_0x44964e[_0x3e4e00]);}}}[_0x1119('0xf3')](_0x3d661b,_0x55f0a0){let _0x254458=0x0,_0x33ab68=!0x1;const _0x108b43=new Map();for(const _0x5abf4a of _0x3d661b)_0x5abf4a[_0x55f0a0]?_0x33ab68&&(_0x254458++,_0x33ab68=!0x1):(_0x254458++,_0x33ab68=!0x0),_0x108b43[_0x1119('0xe5')](_0x5abf4a['id'],_0x254458);for(let _0x2097fd=0x0;_0x2097fd<_0x3d661b[_0x1119('0x5a')];_0x2097fd++){if(_0x1119('0xb8')==_0x55f0a0&&_0x3d661b[_0x2097fd][_0x1119('0xc4')]||_0x1119('0xc4')==_0x55f0a0&&_0x3d661b[_0x2097fd][_0x1119('0xb8')])continue;if(_0x1119('0x5')==_0x3d661b[_0x2097fd][_0x1119('0x48')]){_0x3d661b[_0x2097fd][_0x1119('0x3e')]=0x0;continue;}const _0x311431=_0x108b43[_0x1119('0x70')](_0x3d661b[_0x2097fd]['pairId']),_0x46015f=_0x108b43[_0x1119('0x70')](_0x3d661b[_0x2097fd]['id']);_0x3d661b[_0x2097fd][_0x1119('0x3e')]=_0x311431-_0x46015f;}}[_0x1119('0x10f')](_0xcb86b0,_0x35e8ad,_0x4e14a8=!0x1){const _0x379ba4=[];let _0x3538f9=this[_0x1119('0xa2')][_0x1119('0x55')](_0xcb86b0),_0x34c539=this[_0x1119('0xa2')][_0x1119('0x55')](_0x35e8ad);for(-0x1==_0x34c539&&(_0x34c539=this[_0x1119('0xa2')][_0x1119('0x106')]['length'],_0x4e14a8=!0x1);_0x3538f9<_0x34c539;)_0x379ba4[_0x1119('0x114')](this[_0x1119('0xa2')]['getRevision'](_0x3538f9)),_0x3538f9++;return _0x4e14a8&&_0x379ba4[_0x1119('0x114')](this[_0x1119('0xa2')]['getRevision'](_0x3538f9)),_0x379ba4;}[_0x1119('0x3a')](_0xbf9cc9,_0x2cf77d,_0x450c9b,_0xddf408){const _0x279d72=this['editor'][_0x1119('0x97')][_0x1119('0xd6')];let _0x36940f=_0x2cf77d;for(;_0xbf9cc9[_0x36940f]&&_0xbf9cc9[_0x36940f][_0x1119('0xc4')];)_0x36940f++;let _0x12a188=_0xddf408;for(;_0x450c9b[_0x12a188]&&_0x450c9b[_0x12a188][_0x1119('0xb8')];)_0x12a188++;_0x27768c(_0xbf9cc9,_0x2cf77d,_0x36940f),_0x27768c(_0x450c9b,_0xddf408,_0x12a188);const _0x4ace1f=_0x450c9b[_0x1119('0x116')](_0xddf408,_0x12a188)[_0x1119('0xfe')](_0xbf9cc9[_0x1119('0x116')](_0x2cf77d,_0x36940f));return _0x4ace1f[_0x1119('0x6b')]((_0xa6e058,_0x27e47f)=>_0xa6e058[_0x1119('0x4e')]!=_0x27e47f[_0x1119('0x4e')]?_0xa6e058['side']-_0x27e47f['side']:_0xa6e058['level']!=_0x27e47f[_0x1119('0xc9')]?_0xa6e058['level']-_0x27e47f[_0x1119('0xc9')]:_0xa6e058['distance']!=_0x27e47f['distance']?_0x27e47f[_0x1119('0x3e')]-_0xa6e058[_0x1119('0x3e')]:!!_0xa6e058[_0x1119('0xc4')]!=!!_0x27e47f['isAdded']?-0x1==_0xa6e058[_0x1119('0x4e')]||0x0==_0xa6e058[_0x1119('0x4e')]?_0xa6e058['isAdded']?-0x1:0x1:_0xa6e058['isAdded']?0x1:-0x1:_0xa6e058[_0x1119('0x112')]-_0x27e47f[_0x1119('0x112')]),{'commonTape':_0x4ace1f,'iEnd':_0x36940f,'jEnd':_0x12a188};function _0x27768c(_0x41b6e0,_0xdf17a8,_0x29f768){let _0x74a2a0=-0x1,_0x4cbe1b=Number[_0x1119('0x0')],_0x546ddb=!0x0;for(let _0x3a27a3=_0xdf17a8;_0x3a27a3<_0x29f768;_0x3a27a3++)if(_0x279d72['isInline'](_0x41b6e0[_0x3a27a3][_0x1119('0x91')])||(_0x546ddb=!0x1),_0x41b6e0[_0x3a27a3][_0x1119('0x91')][_0x1119('0x4a')]<_0xdf17a8&&(_0x74a2a0=_0x3a27a3),_0x41b6e0[_0x3a27a3][_0x1119('0x91')]['endIndex']>=_0x29f768){_0x4cbe1b=_0x3a27a3;break;}_0x546ddb&&(_0x74a2a0=_0x29f768-0x1);for(let _0x4d41f2=_0xdf17a8;_0x4d41f2<_0x29f768;_0x4d41f2++)_0x41b6e0[_0x4d41f2][_0x1119('0x4e')]=_0x4d41f2<=_0x74a2a0?-0x1:_0x4d41f2<_0x4cbe1b?0x0:0x1,_0x41b6e0[_0x4d41f2][_0x1119('0x112')]=_0x4d41f2;let _0x307d31=0x0;for(let _0x372b8c=_0xdf17a8;_0x372b8c<=_0x74a2a0;_0x372b8c++)0x0==_0x41b6e0[_0x372b8c][_0x1119('0x3e')]?_0x41b6e0[_0x372b8c][_0x1119('0xc9')]=_0x307d31:(_0x307d31++,_0x41b6e0[_0x372b8c]['level']=_0x307d31,_0x307d31++);for(let _0x171057=_0xdf17a8;_0x171057<_0x29f768;_0x171057++)0x0==_0x41b6e0[_0x171057]['side']&&(_0x41b6e0[_0x171057][_0x1119('0xc9')]=_0x307d31);_0x307d31=0x0;for(let _0x1d49b2=_0x29f768-0x1;_0x1d49b2>=_0x4cbe1b;_0x1d49b2--)0x0==_0x41b6e0[_0x1d49b2][_0x1119('0x3e')]?_0x41b6e0[_0x1d49b2][_0x1119('0xc9')]=_0x307d31:(_0x307d31--,_0x41b6e0[_0x1d49b2]['level']=_0x307d31,_0x307d31--);}}['_fixObsoleteTags'](_0x1e166a){const _0x1335f8=new Map(),_0x2c9c56=this[_0x1119('0x1c')][_0x1119('0x97')][_0x1119('0xd6')];for(let _0x1d7b79=0x1;_0x1d7b79<_0x1e166a['length'];_0x1d7b79++){let _0x4cccae,_0x54c31c,_0x24cfe0;const _0xecdbd5=_0x1e166a[_0x1d7b79],_0x444171=_0x1e166a[_0x1d7b79-0x1];if(_0x1119('0x5')==_0xecdbd5['type'])continue;if(_0xecdbd5[_0x1119('0x48')]!=_0x444171['type'])continue;if(!_0x2c9c56[_0x1119('0x2d')](_0x444171[_0x1119('0x91')])||_0x2c9c56[_0x1119('0xb2')](_0x444171[_0x1119('0x91')]))continue;if(!_0x2c9c56[_0x1119('0x2d')](_0xecdbd5[_0x1119('0x91')])||_0x2c9c56[_0x1119('0xb2')](_0xecdbd5[_0x1119('0x91')]))continue;if((_0x1e166a[_0x1d7b79][_0x1119('0xc4')]||_0x1e166a[_0x1d7b79][_0x1119('0xa8')])&&_0x1e166a[_0x1d7b79-0x1][_0x1119('0xb8')])_0x4cccae=_0x1e166a[_0x1d7b79],_0x54c31c=_0x1e166a[_0x1d7b79-0x1],_0x24cfe0=_0x1d7b79-0x1;else{if(!_0x1e166a[_0x1d7b79][_0x1119('0xb8')]||!_0x1e166a[_0x1d7b79-0x1][_0x1119('0xc4')]&&!_0x1e166a[_0x1d7b79-0x1][_0x1119('0xa8')])continue;_0x4cccae=_0x1e166a[_0x1d7b79-0x1],_0x54c31c=_0x1e166a[_0x1d7b79],_0x24cfe0=_0x1d7b79;}const _0x12732d=_0x4cccae[_0x1119('0xc9')]==_0x54c31c[_0x1119('0xc9')],_0x381306=Math[_0x1119('0x27')](_0x4cccae[_0x1119('0xc9')])<Math['abs'](_0x54c31c[_0x1119('0xc9')])&&0x0==_0x54c31c['distance'];(_0x12732d||_0x381306)&&(_0x1335f8[_0x1119('0xe5')](_0x54c31c['id'],_0x4cccae['id']),_0x1e166a[_0x1119('0xe7')](_0x24cfe0,0x1),_0x1d7b79--,_0x4cccae[_0x1119('0xc4')]=!0x1);}for(let _0x190958=0x0;_0x190958<_0x1e166a[_0x1119('0x5a')];_0x190958++)_0x1335f8[_0x1119('0x7e')](_0x1e166a[_0x190958]['pairId'])&&(_0x1e166a[_0x190958][_0x1119('0x110')]=_0x1335f8['get'](_0x1e166a[_0x190958][_0x1119('0x110')]));}[_0x1119('0x72')](_0x2fdaec){const _0x2087fd=new Set(_0x2fdaec[_0x1119('0x60')](_0x14f4aa=>_0x14f4aa['id']));for(let _0x418be5=0x0;_0x418be5<_0x2fdaec[_0x1119('0x5a')];_0x418be5++)_0x2087fd['has'](_0x2fdaec[_0x418be5][_0x1119('0x110')])||0x0==_0x2fdaec[_0x418be5]['distance']||(_0x2fdaec[_0x418be5][_0x1119('0xa9')]=!0x0);return _0x2fdaec[_0x1119('0x77')](_0x58099e=>!_0x58099e[_0x1119('0xa9')]);}[_0x1119('0x11')](_0x1c4f14){const _0x156095=new Set();for(let _0x929fe=0x0;_0x929fe<_0x1c4f14[_0x1119('0x5a')];_0x929fe++){if(_0x156095[_0x1119('0x7e')](_0x1c4f14[_0x929fe]['id'])&&_0x1c4f14[_0x929fe]['isRemoved']&&(_0x1c4f14[_0x929fe][_0x1119('0xa9')]=!0x0),_0x1c4f14[_0x929fe][_0x1119('0xa9')])continue;if(0x0==_0x1c4f14[_0x929fe][_0x1119('0x3e')])continue;if(_0x1119('0x104')!=_0x1c4f14[_0x929fe][_0x1119('0x48')])continue;if(null==_0x1c4f14[_0x929fe][_0x1119('0x110')])continue;let _0x39242e=_0x929fe+0x1,_0x2ec6f2=0x0;for(;_0x1c4f14[_0x39242e]['id']!=_0x1c4f14[_0x929fe][_0x1119('0x110')];)'elementStart'==_0x1c4f14[_0x39242e][_0x1119('0x48')]?_0x2ec6f2++:'elementEnd'==_0x1c4f14[_0x39242e][_0x1119('0x48')]&&_0x2ec6f2--,_0x39242e++;if(0x0!=_0x2ec6f2){if(_0x1c4f14[_0x929fe][_0x1119('0xb8')])_0x1c4f14[_0x929fe][_0x1119('0xa9')]=!0x0;else for(;_0x39242e!=_0x929fe;)_0x1c4f14[_0x39242e][_0x1119('0xb8')]&&0x0!=_0x1c4f14[_0x39242e]['distance']&&(_0x1c4f14[_0x39242e][_0x1119('0xa9')]=!0x0,_0x156095[_0x1119('0x80')](_0x1c4f14[_0x39242e][_0x1119('0x110')])),_0x39242e--;}}return _0x1c4f14[_0x1119('0x77')](_0x3ac9de=>!_0x3ac9de['isIncorrect']);}['_removeUnsupportedChanges'](_0x237eaa){const _0x4c48c4=this[_0x1119('0x1c')][_0x1119('0x97')]['schema'];for(let _0x301e75=0x0;_0x301e75<_0x237eaa['length'];_0x301e75++){if(!(_0x237eaa[_0x301e75][_0x1119('0xc4')]||_0x237eaa[_0x301e75][_0x1119('0xa8')]||_0x237eaa[_0x301e75][_0x1119('0xb8')]||_0x237eaa[_0x301e75][_0x1119('0xf5')]))continue;if(0x0==_0x237eaa[_0x301e75][_0x1119('0x3e')])continue;const _0x4087c0=_0x237eaa[_0x301e75]['item'];_0x4c48c4[_0x1119('0x2d')](_0x4087c0)||_0x4c48c4[_0x1119('0xb2')](_0x4087c0)||(_0x237eaa[_0x301e75][_0x1119('0xc4')]&&delete _0x237eaa[_0x301e75][_0x1119('0xc4')],_0x237eaa[_0x301e75][_0x1119('0xa8')]&&delete _0x237eaa[_0x301e75][_0x1119('0xa8')],_0x237eaa[_0x301e75]['isRemoveSuggestion']&&delete _0x237eaa[_0x301e75][_0x1119('0xf5')],_0x237eaa[_0x301e75][_0x1119('0xb8')]&&(_0x237eaa[_0x301e75]['isIncorrect']=!0x0));}return _0x237eaa['filter'](_0x886f4a=>!_0x886f4a[_0x1119('0xa9')]);}[_0x1119('0x2b')](_0x3610e0,_0x30a3ad){const _0x43c5a2=new _0x13b4fb(),_0x13b5a7=[],_0x24e588=new Map(),_0x1fcebc=this[_0x1119('0x1c')]['model'],_0x22b164=_0x1fcebc[_0x1119('0xd6')],_0x2316f3=[_0x43c5a2],_0x42d072={},_0x46f68b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5d5ea4=null;const _0x2146df=[0x0];for(let _0xebe6b3=0x0;_0xebe6b3<_0x3610e0['length'];_0xebe6b3++){let _0x3dd026,_0x1d0adf;if('elementStart'===_0x3610e0[_0xebe6b3][_0x1119('0x48')]){_0x3dd026=_0x1fcebc['createPositionFromPath'](_0x43c5a2,_0x2146df);const _0x21c7d4=new _0x4b0204(_0x3610e0[_0xebe6b3][_0x1119('0x91')][_0x1119('0xba')],_0x3610e0[_0xebe6b3][_0x1119('0x91')][_0x1119('0xf')]());_0x2316f3[0x0][_0x1119('0xfc')](_0x21c7d4),_0x2146df[_0x1119('0x114')](0x0),_0x2316f3[_0x1119('0x26')](_0x21c7d4),_0x1d0adf=_0x1fcebc[_0x1119('0x73')](_0x43c5a2,_0x2146df),_0x5d5ea4=null;}else{if(_0x1119('0xe0')===_0x3610e0[_0xebe6b3]['type'])_0x2316f3[_0x1119('0x2')](),_0x3dd026=_0x1fcebc[_0x1119('0x73')](_0x43c5a2,_0x2146df),_0x2146df['pop'](),_0x2146df[_0x2146df['length']-0x1]++,_0x1d0adf=_0x1fcebc[_0x1119('0x73')](_0x43c5a2,_0x2146df),_0x5d5ea4=null;else{if(_0x3dd026=_0x1fcebc[_0x1119('0x73')](_0x43c5a2,_0x2146df),_0x5d5ea4&&_0x14d9ae(_0x5d5ea4,_0x3610e0[_0xebe6b3][_0x1119('0x91')]))_0x5d5ea4[_0x1119('0x59')]+=_0x3610e0[_0xebe6b3][_0x1119('0x91')][_0x1119('0x5d')];else{const _0x22a548=new _0x303393(_0x3610e0[_0xebe6b3][_0x1119('0x91')][_0x1119('0x5d')],_0x3610e0[_0xebe6b3][_0x1119('0x91')][_0x1119('0xf')]());_0x2316f3[0x0]['_appendChild'](_0x22a548),_0x5d5ea4=_0x22a548;}_0x2146df[_0x2146df['length']-0x1]+=_0x3610e0[_0xebe6b3][_0x1119('0x91')][_0x1119('0x1a')],_0x1d0adf=_0x1fcebc[_0x1119('0x73')](_0x43c5a2,_0x2146df);}}for(const _0x5bbe56 of _0x3610e0[_0xebe6b3][_0x1119('0x62')])_0x24e588[_0x1119('0xe5')](_0x5bbe56,{'start':_0x3dd026,'end':null});_0x5c5852('isRemoveSuggestion',_0xebe6b3,_0x3dd026,_0x1d0adf),_0x5c5852('isAddSuggestion',_0xebe6b3,_0x3dd026,_0x1d0adf),_0x5c5852(_0x1119('0xb8'),_0xebe6b3,_0x3dd026,_0x1d0adf),_0x5c5852(_0x1119('0xc4'),_0xebe6b3,_0x3dd026,_0x1d0adf);for(const _0x529905 of _0x3610e0[_0xebe6b3][_0x1119('0x2c')]){_0x24e588[_0x1119('0x70')](_0x529905)[_0x1119('0x24')]=_0x1d0adf;}}for(const [_0x47c031,_0xa15578]of _0x24e588){const _0x1f0ad8=this[_0x1119('0x1c')]['model'][_0x1119('0x5f')](_0xa15578[_0x1119('0x19')],_0xa15578['end']);_0x43c5a2['markers'][_0x1119('0xe5')](_0x47c031,_0x1f0ad8);}return _0x13b5a7['sort']((_0x4be90c,_0x313bf0)=>{const _0x10e64f=_0x43c5a2[_0x1119('0xc6')][_0x1119('0x70')](_0x1119('0x4c')+_0x4be90c['id']),_0x4d51ba=_0x43c5a2[_0x1119('0xc6')][_0x1119('0x70')](_0x1119('0x4c')+_0x313bf0['id']);return _0x10e64f[_0x1119('0x19')][_0x1119('0xbe')](_0x4d51ba['start'])?-0x1:_0x10e64f[_0x1119('0x19')]['isAfter'](_0x4d51ba[_0x1119('0x19')])?0x1:_0x10e64f[_0x1119('0x24')][_0x1119('0xbe')](_0x4d51ba[_0x1119('0x24')])?-0x1:_0x10e64f[_0x1119('0x24')][_0x1119('0x109')](_0x4d51ba[_0x1119('0x24')])?0x1:_0x1119('0x80')===_0x4be90c[_0x1119('0x48')]?-0x1:0x1;}),{'root':_0x43c5a2,'changes':_0x13b5a7};function _0x5c5852(_0x472845,_0x5dea7c,_0x4d857e,_0x467b69){const _0xf4d9bb=!!_0x3610e0[_0x5dea7c][_0x472845],_0x25e378=_0xf4d9bb?_0x3610e0[_0x5dea7c][_0x472845][_0x1119('0x8f')]:null,_0xed3502=_0x5dea7c===_0x3610e0[_0x1119('0x5a')]-0x1,_0x5e0d65=_0x46f68b[_0x472845][0x0],_0x5f3cb4=_0x22b164[_0x1119('0x49')](_0x3610e0[_0x5dea7c][_0x1119('0x91')]);!_0x42d072[_0x472845]&&_0xf4d9bb?_0x42d072[_0x472845]={'start':_0x4d857e,'tapeItem':_0x3610e0[_0x5dea7c],'userId':_0x25e378,'type':_0x472845}:_0x42d072[_0x472845]&&!_0xf4d9bb?(_0x42d072[_0x472845][_0x1119('0x24')]=_0x4d857e,_0x4e051e(_0x42d072[_0x472845]),_0x42d072[_0x472845]=null):_0x42d072[_0x472845]&&_0xf4d9bb&&_0x42d072[_0x472845]['userId']!==_0x25e378&&(_0x42d072[_0x472845][_0x1119('0x24')]=_0x4d857e,_0x5e0d65&&_0x5e0d65[_0x1119('0x8f')]===_0x42d072[_0x472845][_0x1119('0x8f')]||_0x4e051e(_0x42d072[_0x472845]),_0x42d072[_0x472845]={'start':_0x4d857e,'tapeItem':_0x3610e0[_0x5dea7c],'userId':_0x25e378,'type':_0x472845}),_0x42d072[_0x472845]&&_0x5f3cb4&&(_0x1119('0x104')!==_0x3610e0[_0x5dea7c]['type']||_0x5e0d65&&_0x5e0d65[_0x1119('0x8f')]===_0x25e378||_0x46f68b[_0x472845][_0x1119('0x26')]({'userId':_0x25e378,'object':_0x3610e0[_0x5dea7c]['item'],'change':_0x42d072[_0x472845]}),_0x1119('0xe0')===_0x3610e0[_0x5dea7c][_0x1119('0x48')]&&_0x5e0d65&&_0x5e0d65['object']===_0x3610e0[_0x5dea7c][_0x1119('0x91')]&&(_0x46f68b[_0x472845]['shift'](),_0x42d072[_0x472845]=_0x5e0d65[_0x1119('0x63')])),_0x42d072[_0x472845]&&_0xed3502&&(_0x42d072[_0x472845]['end']=_0x467b69,_0x4e051e(_0x42d072[_0x472845]),_0x42d072[_0x472845]=null);}function _0x4e051e({start:_0x24307f,end:_0x1e045d,tapeItem:_0x7e6cff,userId:_0x539a9e,type:_0x433988}){const _0x3d9c46=_0x7e6cff[_0x1119('0x91')],_0x556f3f=_0x1fcebc[_0x1119('0xd6')]['isBlock'](_0x3d9c46)&&!_0x1fcebc['schema']['isLimit'](_0x3d9c46),_0x10db97=_0x24307f['nodeAfter']==_0x1e045d[_0x1119('0x38')]&&_0x1e045d[_0x1119('0x6a')];if(_0x556f3f&&_0x10db97)return;const _0x20a294=_0x1fcebc[_0x1119('0x5f')](_0x24307f,_0x1e045d),_0x3819fa=_0x30a3ad[_0x1119('0x70')](_0x539a9e),_0xab0b8c=new _0x306fe0({'author':_0x3819fa,'type':_0x1119('0xc4')==_0x433988||_0x1119('0xa8')==_0x433988?_0x1119('0x80'):_0x1119('0x42'),'data':{'isSuggestion':_0x1119('0xa8')==_0x433988||_0x1119('0xf5')==_0x433988},'createdAt':new Date()});_0x13b5a7['push'](_0xab0b8c),_0x43c5a2[_0x1119('0xc6')]['set'](_0x1119('0x4c')+_0xab0b8c['id'],_0x20a294);}function _0x14d9ae(_0x75649c,_0x882825){const _0x2e209c=_0x75649c['getAttributes'](),_0x59aeb5=_0x882825[_0x1119('0xf')]();for(const _0x3cb058 of _0x2e209c){if(_0x3cb058[0x1]!==_0x882825[_0x1119('0x81')](_0x3cb058[0x0]))return!0x1;_0x59aeb5[_0x1119('0x74')]();}return _0x59aeb5[_0x1119('0x74')]()[_0x1119('0x65')];}}[_0x1119('0x3d')](){this[_0x1119('0x1c')][_0x1119('0xb1')][_0x1119('0xe9')](_0x1119('0xa6'))[_0x1119('0x84')]({'view':_0x1119('0xa4')}),this[_0x1119('0x1c')][_0x1119('0xb1')][_0x1119('0xe9')](_0x1119('0x50'))[_0x1119('0x25')]({'model':_0x1119('0xa4'),'view':_0x438cd3=>{const _0x5a1b3d=_0x438cd3['markerName']['split'](':')[0x1],_0x1e62c4=this['_getChangeFromId'](_0x5a1b3d);if(!_0x1e62c4)return null;const _0x3199d1=_0x1119('0x80')==_0x1e62c4[_0x1119('0x48')]?'insertion':_0x1119('0x1f'),_0x3538b9=['ck-suggestion-marker',_0x1119('0x99')+_0x3199d1];return _0x1e62c4['data'][_0x1119('0x88')]&&_0x3538b9['push'](_0x1119('0x99')+_0x3199d1+_0x1119('0x9d')),this[_0x1119('0xcd')]==_0x1e62c4&&_0x3538b9[_0x1119('0x114')](_0x1119('0x47')),{'classes':_0x3538b9,'attributes':{'data-change-id':_0x5a1b3d}};}}),this[_0x1119('0x1c')]['conversion'][_0x1119('0xe9')](_0x1119('0xa6'))['add'](_0x6a9617=>{_0x6a9617['on'](_0x1119('0xa5'),(_0x9cc043,_0x3cabe7,_0x881bab)=>{const _0x4c0455=_0x3cabe7['viewItem'][_0x1119('0x13')](0x0);if(!_0x4c0455||!_0x4c0455['is']('element',_0x1119('0xff')))return;if(!_0x881bab[_0x1119('0x115')][_0x1119('0xfb')](_0x4c0455,{'attributes':[_0x1119('0xe'),_0x1119('0x5e')]}))return;const _0x4f3c7c=_0x3cabe7[_0x1119('0xce')][_0x1119('0x19')]['nodeAfter'];_0x881bab['writer']['setAttribute']('vid_start',_0x4c0455[_0x1119('0x81')](_0x1119('0xe')),_0x4f3c7c),_0x881bab[_0x1119('0x36')][_0x1119('0x14')](_0x1119('0x5e'),_0x4c0455['getAttribute'](_0x1119('0x5e')),_0x4f3c7c);},{'priority':_0x1119('0x3c')});}),this[_0x1119('0x1c')]['conversion'][_0x1119('0xe9')](_0x1119('0xa6'))[_0x1119('0x80')](_0x2af069=>{_0x2af069['on']('element',(_0x1dd54e,_0x4983cb,_0x4926b4)=>{if(!_0x4926b4[_0x1119('0x115')][_0x1119('0xfb')](_0x4983cb[_0x1119('0x40')],{'attributes':[_0x1119('0xe'),_0x1119('0x5e')]}))return;if(_0x4983cb['modelRange'][_0x1119('0xb3')])return;const _0x425572=_0x4983cb[_0x1119('0xce')][_0x1119('0x19')][_0x1119('0x1')];_0x425572[_0x1119('0xf9')]('vid_start')||_0x425572[_0x1119('0xf9')](_0x1119('0xd1'))||(_0x4926b4[_0x1119('0x36')][_0x1119('0x14')]('vid_start',_0x4983cb[_0x1119('0x40')]['getAttribute'](_0x1119('0xe')),_0x425572),_0x4926b4[_0x1119('0x36')][_0x1119('0x14')](_0x1119('0x5e'),_0x4983cb[_0x1119('0x40')]['getAttribute'](_0x1119('0x5e')),_0x425572));},{'priority':'low'});}),this[_0x1119('0x1c')][_0x1119('0xb1')][_0x1119('0xe9')](_0x1119('0xa6'))['elementToAttribute']({'view':{'name':_0x1119('0xeb'),'attributes':{'vid':!0x0}},'model':{'key':_0x1119('0xd1'),'value':_0x25abc0=>_0x25abc0[_0x1119('0x81')](_0x1119('0xd1'))}}),this['editor'][_0x1119('0x97')][_0x1119('0xd6')]['on'](_0x1119('0x58'),(_0x320543,[,_0x214035])=>{[_0x1119('0xe'),_0x1119('0x5e'),_0x1119('0xd1')][_0x1119('0x111')](_0x214035)&&(_0x320543[_0x1119('0xfd')]=!0x0,_0x320543[_0x1119('0x2e')]());},{'priority':_0x1119('0xea')}),this[_0x1119('0x1c')]['conversion'][_0x1119('0xe9')](_0x1119('0xdc'))[_0x1119('0x80')](_0x152ef4=>{_0x152ef4['on']('attribute:vid',(_0x2a5cec,_0x4d3af9,_0xd0bae7)=>{if('\x20'!=_0x4d3af9[_0x1119('0x91')][_0x1119('0x5d')]||_0x4d3af9[_0x1119('0x91')][_0x1119('0x38')][_0x1119('0xa3')]>0x1)return;if(!_0xd0bae7[_0x1119('0x115')][_0x1119('0xfb')](_0x4d3af9[_0x1119('0x91')],_0x2a5cec[_0x1119('0xba')]))return;const _0x71eb7f=_0xd0bae7[_0x1119('0x36')],_0xd7620d=_0xd0bae7[_0x1119('0xbc')][_0x1119('0xb')](_0x4d3af9[_0x1119('0x8a')]);_0x71eb7f[_0x1119('0x10a')](_0xd7620d,_0x71eb7f[_0x1119('0x8c')](_0x1119('0xeb')));});}),this[_0x1119('0x1c')][_0x1119('0xb1')][_0x1119('0xe9')](_0x1119('0xdc'))[_0x1119('0x7a')]({'model':_0x1119('0xa4')}),this[_0x1119('0x1c')][_0x1119('0x9c')]['downcastDispatcher']['on'](_0x1119('0x10b'),function(_0x19538c){const _0x4b38f9=_0x19538c['plugins'][_0x1119('0x70')]('RevisionViewer');return(_0x2bd219,_0x16d32a,_0x34c4f6)=>{const _0x34d1e9=_0x16d32a['markerName']['split'](':')[0x1],_0xaf044e=_0x4b38f9[_0x1119('0x64')](_0x34d1e9);if(!_0xaf044e)return null;const _0x43b33c=_0x1119('0x80')==_0xaf044e[_0x1119('0x48')]?_0x1119('0xa0'):_0x1119('0xd4');if(!_0x34c4f6[_0x1119('0x115')]['test'](_0x16d32a['markerRange'],_0x2bd219[_0x1119('0xba')]))return;const _0x3d3a77=_0x16d32a[_0x1119('0xb7')][_0x1119('0x6c')](),_0x2c4187=_0x16d32a['markerRange'][_0x1119('0x19')],_0x171b06=_0x19538c[_0x1119('0x97')]['schema'];let _0x37d37c=null,_0x4a6d7e=null,_0x57c874=!0x1,_0x3c0858=!0x1;for(const _0x173a27 of _0x3d3a77){const _0xb8cd54=_0x173a27['item'];_0x57c874=_0x57c874||_0x171b06[_0x1119('0x92')](_0xb8cd54);const _0x1f983a=_0x34c4f6[_0x1119('0xbc')][_0x1119('0xbf')](_0xb8cd54);if(_0x1f983a&&_0x1f983a['getCustomProperty'](_0x1119('0x10d')))return;_0x1119('0xe0')==_0x173a27[_0x1119('0x48')]&&(_0x171b06['isBlock'](_0xb8cd54)&&!_0x171b06[_0x1119('0xb2')](_0xb8cd54)&&(_0xb8cd54['nextSibling']||_0x2c4187[_0x1119('0xb6')]?_0x37d37c&&_0x37d37c[_0x1119('0x38')]==_0xb8cd54||(_0x37d37c=_0xb8cd54,_0x562adc(_0x173a27[_0x1119('0xa1')]),_0x3c0858=!0x0):_0x4a6d7e=_0x4a6d7e||_0x173a27['previousPosition']));}function _0x562adc(_0x4a22e3){const _0xc86e35=_0x34c4f6[_0x1119('0x36')]['createUIElement'](_0x1119('0xeb'),{'class':'ck-suggestion-marker-'+_0x43b33c}),_0x506d15=_0x34c4f6['mapper'][_0x1119('0x2f')](_0x4a22e3);_0xaf044e['data']['isSuggestion']&&_0x34c4f6[_0x1119('0x36')][_0x1119('0xf1')](_0x1119('0x99')+_0x43b33c+'-new',_0xc86e35),_0x4b38f9[_0x1119('0xcd')]==_0xaf044e&&_0x34c4f6[_0x1119('0x36')]['addClass'](_0x1119('0x47'),_0xc86e35),_0x34c4f6[_0x1119('0x36')][_0x1119('0xdf')](_0x506d15,_0xc86e35),_0x34c4f6['mapper']['bindElementToMarker'](_0xc86e35,_0x16d32a[_0x1119('0x87')]);}_0x57c874||_0x3c0858||!_0x4a6d7e||_0x562adc(_0x4a6d7e);};}(this[_0x1119('0x1c')]),{'priority':'high'}),this[_0x1119('0x1c')][_0x1119('0x9c')][_0x1119('0xc2')]['on'](_0x1119('0x1d'),(_0x59efb6,_0x1c2316,_0xc92850)=>{const _0x3608b7=_0xc92850[_0x1119('0xbc')][_0x1119('0xe6')](_0x1c2316[_0x1119('0x87')]);if(_0x3608b7)for(const _0x5832ca of _0x3608b7)(_0x5832ca[_0x1119('0xc7')](_0x1119('0x8d'))||_0x5832ca[_0x1119('0xc7')](_0x1119('0x52')))&&(_0xc92850[_0x1119('0xbc')]['unbindElementFromMarkerName'](_0x5832ca,_0x1c2316[_0x1119('0x87')]),_0xc92850[_0x1119('0x36')][_0x1119('0x42')](_0x5832ca));},{'priority':'high'}),this['editor']['editing'][_0x1119('0xc2')]['on'](_0x1119('0x10b'),(_0x2ea218,_0x33ce18,_0x1e906b)=>{const _0x2cdc96=_0x33ce18['markerName']['split'](':')[0x1],_0x34d36b=this['_getChangeFromId'](_0x2cdc96);if(!_0x34d36b)return null;const _0x2e3abc=_0x1119('0x80')==_0x34d36b[_0x1119('0x48')]?_0x1119('0xa0'):'merge';if(_0x1e906b[_0x1119('0x115')]['test'](_0x33ce18[_0x1119('0xb7')],_0x2ea218['name']))for(const _0x44c4ed of _0x33ce18[_0x1119('0xb7')][_0x1119('0x16')]()){if(!_0x44c4ed['is'](_0x1119('0x51'),_0x1119('0xda')))continue;const _0x16450c=_0x1e906b[_0x1119('0x36')][_0x1119('0xf7')](_0x1119('0xeb'),{'class':_0x1119('0x99')+_0x2e3abc}),_0x455860=_0x1e906b[_0x1119('0xbc')][_0x1119('0x2f')](this[_0x1119('0x1c')]['model'][_0x1119('0x100')](_0x44c4ed));_0x34d36b[_0x1119('0x5d')][_0x1119('0x88')]&&_0x1e906b[_0x1119('0x36')][_0x1119('0xf1')](_0x1119('0x99')+_0x2e3abc+'-new',_0x16450c),this[_0x1119('0xcd')]==_0x34d36b&&_0x1e906b['writer'][_0x1119('0xf1')](_0x1119('0x47'),_0x16450c),_0x1e906b[_0x1119('0x36')]['insert'](_0x455860,_0x16450c),_0x1e906b[_0x1119('0xbc')]['bindElementToMarker'](_0x16450c,_0x33ce18['markerName']);}},{'priority':_0x1119('0x17')}),this[_0x1119('0x1c')][_0x1119('0xb1')][_0x1119('0xe9')]('upcast')[_0x1119('0x84')]({'view':_0x1119('0x66'),'model':_0x5b33c5=>'revision-comment:'+_0x5b33c5,'converterPriority':_0x1119('0xea')}),this[_0x1119('0x1c')][_0x1119('0xb1')][_0x1119('0xe9')](_0x1119('0xa6'))[_0x1119('0x84')]({'view':'suggestion','model':_0x5364fd=>_0x1119('0x21')+_0x5364fd,'converterPriority':_0x1119('0xea')}),this[_0x1119('0x1c')][_0x1119('0xb1')][_0x1119('0xe9')](_0x1119('0xdc'))['markerToData']({'model':_0x1119('0xc1'),'view':_0x52432e=>({'name':_0x1119('0x7b')+_0x52432e,'group':'revision-suggestion'}),'converterPriority':_0x1119('0xea')}),this['editor']['conversion']['for'](_0x1119('0x50'))[_0x1119('0x25')]({'model':'revision-suggestion','view':_0x4b2eb2=>{const _0x1e0611=_0x4b2eb2['markerName'][_0x1119('0xa0')](':')[0x1];return _0x1119('0x5c')!=_0x1e0611&&_0x1119('0x1f')!=_0x1e0611?null:{'classes':[_0x1119('0x117'),_0x1119('0xbd')+_0x1e0611]};}}),this[_0x1119('0x1c')][_0x1119('0x9c')][_0x1119('0xc2')]['on'](_0x1119('0xed'),Q(this[_0x1119('0x1c')],'merge'),{'priority':_0x1119('0x17')}),this[_0x1119('0x1c')][_0x1119('0x9c')][_0x1119('0xc2')]['on'](_0x1119('0x31'),Q(this['editor'],'split'),{'priority':_0x1119('0x17')}),this['editor'][_0x1119('0x9c')][_0x1119('0xc2')]['on'](_0x1119('0x5b'),(_0x3afe59,_0x32dbf9,_0x20f890)=>{const _0x4c4048=_0x20f890[_0x1119('0xbc')][_0x1119('0xe6')](_0x32dbf9[_0x1119('0x87')]);if(_0x4c4048)for(const _0x584bed of _0x4c4048)_0x584bed['is'](_0x1119('0xcc'))&&(_0x20f890[_0x1119('0xbc')][_0x1119('0xfa')](_0x584bed,_0x32dbf9['markerName']),_0x20f890[_0x1119('0x36')][_0x1119('0x42')](_0x584bed));},{'priority':_0x1119('0x17')});}[_0x1119('0x64')](_0xd74e67){return this[_0x1119('0x9a')][_0x1119('0x70')](_0xd74e67);}['_getViewForChange'](_0x1b9a1b){return this[_0x1119('0xc8')]&&this[_0x1119('0xc8')]['destroy'](),this[_0x1119('0xc8')]=new _0x2a8a3e(this['editor']['locale'],_0x1b9a1b),this[_0x1119('0xc8')];}[_0x1119('0xe4')](){this['editor'][_0x1119('0x97')][_0x1119('0x8e')]['selection']['observeMarkers']('revision'),this['on'](_0x1119('0xe2'),(_0xe9d7f3,_0x4d419d,_0x2d34bf,_0x2adbc3)=>{_0x2adbc3&&this[_0x1119('0x108')][_0x1119('0x42')](_0x2adbc3),_0x2d34bf&&(this[_0x1119('0x108')][_0x1119('0x80')]({'view':_0x2d34bf,'stackId':_0x1119('0x78'),'position':{'target':()=>{const _0x1134da=this['editor'][_0x1119('0x9c')],_0x36705c=this['editor'][_0x1119('0x97')][_0x1119('0xc6')][_0x1119('0x70')](_0x1119('0x4c')+_0x2d34bf['changeId']),_0x57fbe8=Array[_0x1119('0x3f')](_0x1134da[_0x1119('0xbc')][_0x1119('0xe6')](_0x36705c[_0x1119('0xba')]))[_0x1119('0x60')](_0x538a23=>_0x1134da['view'][_0x1119('0x8b')][_0x1119('0x53')](_0x538a23))['map'](_0x15ae4f=>Array['from'](_0x15ae4f[_0x1119('0x1b')]()))[_0x1119('0xc')]();if(!this[_0x1119('0x6f')])return _0x57fbe8[0x0];return _0x57fbe8[_0x1119('0x93')](_0x374d36=>_0x374d36[_0x1119('0x113')]-0x3<=this[_0x1119('0x6f')]['y']&&_0x374d36[_0x1119('0x33')]+0x3>=this['_activeViewTarget']['y']&&_0x374d36[_0x1119('0xd7')]-0x3<=this['_activeViewTarget']['x']&&_0x374d36[_0x1119('0xaa')]+0x3>=this[_0x1119('0x6f')]['x'])||_0x57fbe8[0x0];}}}),this[_0x1119('0x108')]['showStack'](_0x1119('0x78')));}),this['on']('change:activeChange',(_0x52fbe1,_0x1a44b6,_0x4a9686,_0x513481)=>{this[_0x1119('0x44')]=_0x4a9686?this[_0x1119('0x15')](_0x4a9686):null,this['editor'][_0x1119('0x97')][_0x1119('0x63')](()=>{const _0x5e89a3=this[_0x1119('0x1c')][_0x1119('0x9c')];_0x513481&&_0x5e89a3[_0x1119('0x68')](_0x1119('0x4c')+_0x513481['id']),_0x4a9686&&_0x5e89a3[_0x1119('0x68')](_0x1119('0x4c')+_0x4a9686['id']);});}),this[_0x1119('0xe3')](this[_0x1119('0x1c')][_0x1119('0x9c')]['view'][_0x1119('0x8e')],_0x1119('0x76'),(_0x475410,_0x36603b)=>{if(this[_0x1119('0xcd')])return;const _0x3bc94=this[_0x1119('0x3b')](_0x36603b[_0x1119('0xca')]),_0x2300ef=this[_0x1119('0x9a')]['get'](_0x3bc94);_0x2300ef?(this[_0x1119('0x6f')]={'x':_0x36603b[_0x1119('0x4')]['x'],'y':_0x36603b['domEvent']['y']},this[_0x1119('0x44')]=this['_getViewForChange'](_0x2300ef)):(this['_activeViewTarget']=null,this[_0x1119('0x44')]=null);}),this[_0x1119('0xe3')](this[_0x1119('0x1c')][_0x1119('0x9c')][_0x1119('0xab')]['document'],'mousedown',(_0x3253e6,_0xee4b82)=>{const _0x33a922=this[_0x1119('0x3b')](_0xee4b82[_0x1119('0xca')]),_0x5db51e=this[_0x1119('0x9a')][_0x1119('0x70')](_0x33a922);_0x5db51e?(this[_0x1119('0x6f')]={'x':_0xee4b82['domEvent']['x'],'y':_0xee4b82[_0x1119('0x4')]['y']},_0x5db51e===this['activeChange']?this[_0x1119('0x108')][_0x1119('0x101')]():this[_0x1119('0xcd')]=_0x5db51e):(this[_0x1119('0x6f')]=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xd8f4e3){do{const _0x47da3d=_0xd8f4e3[_0x1119('0x81')](_0x1119('0x102'));if(_0x47da3d)return _0x47da3d;_0xd8f4e3=_0xd8f4e3['parent'];}while(_0xd8f4e3);return null;}[_0x1119('0xcf')](){this[_0x1119('0x1c')][_0x1119('0x97')][_0x1119('0x63')](_0x3d71ee=>{for(const _0x50f7dc of this[_0x1119('0x1c')][_0x1119('0x97')][_0x1119('0xc6')])_0x3d71ee[_0x1119('0xdb')](_0x50f7dc);});}}function Q(_0x58e413,_0x10dc4f){return(_0x2e89cf,_0x36b70f,_0x3c25d5)=>{if(!_0x3c25d5[_0x1119('0x115')][_0x1119('0x30')](_0x36b70f['markerRange'],_0x2e89cf[_0x1119('0xba')]))return;const _0x36a52c=_0x36b70f[_0x1119('0xb7')]['getWalker'](),_0x5941c2=_0x36b70f[_0x1119('0xb7')][_0x1119('0x19')],_0x4f797a=_0x58e413[_0x1119('0x97')][_0x1119('0xd6')];let _0x1ecdc7=null,_0x2f5606=null,_0x5f4c76=!0x1,_0x502692=!0x1;for(const _0x27a658 of _0x36a52c){const _0x1ea56b=_0x27a658[_0x1119('0x91')];_0x5f4c76=_0x5f4c76||_0x4f797a[_0x1119('0x92')](_0x1ea56b);const _0x587b43=_0x3c25d5[_0x1119('0xbc')][_0x1119('0xbf')](_0x1ea56b);if(_0x587b43&&_0x587b43[_0x1119('0x54')](_0x1119('0x10d')))return;_0x1119('0xe0')==_0x27a658[_0x1119('0x48')]&&(_0x4f797a[_0x1119('0x2d')](_0x1ea56b)&&!_0x4f797a[_0x1119('0xb2')](_0x1ea56b)&&(_0x1ea56b['nextSibling']||_0x5941c2[_0x1119('0xb6')]?_0x1ecdc7&&_0x1ecdc7[_0x1119('0x38')]==_0x1ea56b||(_0x1ecdc7=_0x1ea56b,_0x13acf4(_0x27a658[_0x1119('0xa1')]),_0x502692=!0x0):_0x2f5606=_0x2f5606||_0x27a658[_0x1119('0xa1')]));}function _0x13acf4(_0x498bc5){const _0x7d08dc=_0x3c25d5[_0x1119('0xbc')][_0x1119('0x2f')](_0x498bc5),_0x4d7018=_0x3c25d5[_0x1119('0x36')][_0x1119('0xf7')](_0x1119('0xeb'),{'class':_0x1119('0xbd')+_0x10dc4f});_0x3c25d5['writer']['insert'](_0x7d08dc,_0x4d7018),_0x3c25d5[_0x1119('0xbc')][_0x1119('0x29')](_0x4d7018,_0x36b70f['markerName']);}_0x5f4c76||_0x502692||!_0x2f5606||_0x13acf4(_0x2f5606);};}export class RestoreRevisionCommand extends _0x51c7a9{constructor(_0x153f0d){super(_0x153f0d);const _0x5948b1=_0x153f0d['plugins'][_0x1119('0x70')](y);this[_0x1119('0x90')](_0x153f0d,_0x1119('0xf6')),this[_0x1119('0xde')](_0x1119('0x4f')),this[_0x1119('0xe3')](_0x5948b1,_0x1119('0xd'),()=>this[_0x1119('0x37')]()),this['listenTo'](_0x5948b1,'change:isEnabled',()=>this[_0x1119('0x37')]());}[_0x1119('0x61')](){const _0x19f7b0=this[_0x1119('0x1c')],_0x2616e0=_0x19f7b0[_0x1119('0x18')]['get'](y),_0x535d9e=_0x2616e0['isReady']?_0x2616e0[_0x1119('0x3')][_0x1119('0x46')]:null;_0x19f7b0[_0x1119('0x94')]['get'](_0x1119('0xb0'))[_0x1119('0x9f')](_0x535d9e);}[_0x1119('0x37')](){const {isReady:_0x296f71,isEnabled:_0x279a3a}=this['editor'][_0x1119('0x18')][_0x1119('0x70')](y);this['isEnabled']=_0x296f71&&_0x279a3a;}}export class ShowChangeCommand extends _0x51c7a9{constructor(_0x1463e3,{direction:_0x94e831}){super(_0x1463e3);const _0x10db11=_0x1463e3[_0x1119('0x18')][_0x1119('0x70')](y);this[_0x1119('0x90')](_0x1463e3,_0x1119('0xf6')),this[_0x1119('0xde')](_0x1119('0x4f')),this[_0x1119('0x75')]=_0x1119('0x6e')===_0x94e831?0x1:-0x1,this[_0x1119('0xe3')](_0x10db11,_0x1119('0xd'),()=>this[_0x1119('0x37')]()),this['listenTo'](_0x10db11,_0x1119('0xc5'),()=>this[_0x1119('0x37')]());}[_0x1119('0x61')](){const _0x1e3a89=this[_0x1119('0x1c')],_0x5b6d7c=_0x1e3a89[_0x1119('0x18')][_0x1119('0x70')](y),{isNavigationMode:_0xa0efe6,currentChangeNumber:_0x10c799}=_0x5b6d7c;_0x5b6d7c['activeChange']=_0xa0efe6?_0x5b6d7c[_0x1119('0x3')]['changes'][_0x1119('0x70')](_0x10c799+this[_0x1119('0x75')]):_0x5b6d7c['diff'][_0x1119('0x32')][_0x1119('0x10')];const _0x1945da=_0x1e3a89['model'][_0x1119('0xc6')][_0x1119('0x70')](_0x1119('0x4c')+_0x5b6d7c[_0x1119('0xcd')]['id']),_0x59b507=_0x112317(_0x1e3a89['editing'],_0x1945da);_0x572c4d({'target':_0x59b507,'viewportOffset':0x28});}[_0x1119('0x37')](){const {isNavigationMode:_0x1ab8ae,currentChangeNumber:_0x34061c,numberOfChanges:_0x30e392,isReady:_0x14eec8,isEnabled:_0x106594}=this['editor'][_0x1119('0x18')]['get'](y);this[_0x1119('0xdd')]=!!(_0x106594&&_0x14eec8&&_0x30e392)&&(!_0x1ab8ae||(0x1===this['_step']?_0x34061c<_0x30e392-0x1:_0x34061c>0x0));}}
23
+ const _0x246a=['view','enqueueChange','toViewPosition','upcast','refresh','startIndex','markers','vid','change:isReadOnly','vid_start','ck-suggestion-preview-marker-','isIncorrect','getRoot','revisionHistoryLabel','removeMarker','wrap','WidgetToolbarRepository','activeView','compare','mapper','elementToAttribute','includes','bindElementToMarker','data-change-id','isSuggestion','locale','_setConversion','checkAttribute','shift','_markSuggestions','then','children','consume','name','addHighlight','conversion','findIndex','highest','forEach','_makeModelFromTape','markersStart','setAttribute','insertion','parse','remove','downcastDispatcher','mapViewToDom','_findChangeIdFromDomTarget','_joinTapes','isInline','_removeUnsupportedChanges','config','newRevisionId','index','isContent','split','stopListening','_refreshStartEndIndex','_processTape','stop','bottom','writer','createAttributeElement','previousPosition','createRangeIn','_changeView','_setDistance','repository','target','createPositionBefore','activeChange','POSITIVE_INFINITY','first','_revisions','_getDiff','_initInteractions','isCollapsed','text','insert','getIndex','_data','isAtEnd','parent','sort','toData','roots','dataDowncast','high','element:pre','addMarker:revision-suggestion:deletion','model','loadRevisionData','pop','isReady','distance','editing','isRemoved','hasClass','_getViewForChange','bind','listenTo','nodeAfter','slice','removeMarker:revision-suggestion','editingDowncast','change:numberOfChanges','change:isReady','nextSibling','change:isEnabled','getRevision','abs','userId','_markInsertions','domConverter','set','_markMarkers','consumable','left','toViewElement','startsWith','createRange','authors','createUIElement','readOnlyMode','commands','catch','changeId','enableReadOnlyMode','_balloon','end','removeMarker:revision','editor','deletion','getRootNames','_setData','string','filter','elementEnd','modelRange','keys','for','getWalker','addMarker:revision-suggestion:insertion','_getChangeFromId','item','getAttributes','RevisionsRepository','collaboration.channelId','markerRange','getCustomProperty','processor','_activeViewTarget','restoreRevision','document','getRevisionData','pairId','isBefore','_changeIdToChange','element','viewItem','unshift','change','nextPosition','ck-editor__editable__overlay','level','addClass','createPositionFromPath','length','isAfter','change:activeView','revisionHistory','resolve','isEnabled','ck-suggestion-preview-marker','<p></p>','revision','requires','mouseover','isBlock','side','showNextChange','hasAttribute','revision:','revision-start','adapter','schema','ck-suggestion-marker-merge','start','createRevision','merge','_markMismatchedRemovedTags','markerToHighlight','return','ck-suggestion-marker--active','next','toViewRange','diff','reconvertMarker','clearForceDisabled','values','endIndex','get','_removeMissingPairs','selection','_appendChild','attributes','_threeWayMerge','useFillerType','markerName','_makeTape','splice','right','_removeRevisionMarkers','markersEnd','all','concat','_update','RevisionViewer','unbindElementFromMarkerName','dataToMarker','isNavigationMode','addMarker:revision','ck-suggestion-marker-','clear','_cleanUp','_getRevisionsRange','add','elementStart','done','removeClass','from','isEqual','plugins','attribute:vid','-new','getItems','push','map','_cleanMarkers','domEvent','forward','data','type','getClientRects','toModel','vid_end','forceDisabled','revision-viewer','execute','markerNameToElements','_makeModelFromViewString','revision-suggestion:','addRevision','change:activeChange','diffData','revision-suggestion','error','isAdded','isRemoveSuggestion','changes','getAttribute','low','isLimit','span','_getViewObj','_step','has','insertions','isAddSuggestion','destroy','find','test'];(function(_0x12f3e5,_0x246a04){const _0xc5f2fe=function(_0x2daa4c){while(--_0x2daa4c){_0x12f3e5['push'](_0x12f3e5['shift']());}};_0xc5f2fe(++_0x246a04);}(_0x246a,0xb3));const _0xc5f2=function(_0x12f3e5,_0x246a04){_0x12f3e5=_0x12f3e5-0x0;let _0xc5f2fe=_0x246a[_0x12f3e5];return _0xc5f2fe;};import{Plugin as _0x444b94,Command as _0x4f7e50}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1c7f51}from'ckeditor5/src/utils';import{ContextualBalloon as _0x34b568}from'ckeditor5/src/ui';import{DocumentFragment as _0x5c2dd3,Element as _0x5bd6bc,Text as _0x4ca4e1,ViewDocumentFragment as _0x5ef541,ViewText as _0x56676a,ViewElement as _0x5f3663,ViewContainerElement as _0x5553d5,ViewAttributeElement as _0xce7e5d,ViewEmptyElement as _0x191466,ViewRawElement as _0x182754,ViewUIElement as _0x332932}from'ckeditor5/src/engine';import{Users as _0x12b71b,getMarkerDomElement as _0x11e2f9}from'ckeditor5-collaboration/src/collaboration-core';import _0x4de06a from'./ui/revisionviewer/changedetailsview';import _0x1ba97a from'./revisionsrepository';import _0x129f34 from'./changeitem';import{default as _0x2bb4f5}from'./revisiondiff';import'../theme/revisionviewer.css';const K={'c':_0x5553d5,'a':_0xce7e5d,'e':_0x191466,'r':_0x182754,'u':_0x332932};export default class y extends _0x444b94{static get['pluginName'](){return _0xc5f2('0x26');}static get[_0xc5f2('0x10d')](){return[_0x12b71b,_0x34b568,_0x1ba97a];}constructor(_0x1e6b5b){super(_0x1e6b5b),this['repository']=this[_0xc5f2('0xe0')][_0xc5f2('0x35')][_0xc5f2('0x16')](_0xc5f2('0xef')),this[_0xc5f2('0xcf')](_0xc5f2('0xa3'),null),this[_0xc5f2('0xcf')]('activeView',null),this[_0xc5f2('0xf4')]=null,this['set'](_0xc5f2('0x11'),null),this[_0xc5f2('0xcf')]('isReady',!0x1),this[_0xc5f2('0xcf')](_0xc5f2('0x109'),!0x0),this['on'](_0xc5f2('0xc9'),(_0x32e9e2,_0xf8f64a,_0x2642dd)=>{this['activeChange']=null,this[_0xc5f2('0x6e')]=null,this[_0xc5f2('0xe0')]['editing'][_0xc5f2('0x5d')][_0xc5f2('0xfe')](_0x3f33b9=>{for(const _0xad4544 of this[_0xc5f2('0xe0')]['editing']['view'][_0xc5f2('0xf6')][_0xc5f2('0xb2')])_0x2642dd?_0x3f33b9[_0xc5f2('0x32')]('ck-editor__editable__overlay',_0xad4544):_0x3f33b9[_0xc5f2('0x102')](_0xc5f2('0x100'),_0xad4544);});}),this['bind'](_0xc5f2('0x29'))['to'](this,_0xc5f2('0xa3'),_0x522ab7=>null!==_0x522ab7),this[_0xc5f2('0xc0')]('currentChangeNumber')['to'](this,'isReady',this,_0xc5f2('0x11'),this,_0xc5f2('0xa3'),(_0x51c55f,_0x2d266d,_0x2d1f68)=>_0x51c55f&&_0x2d1f68?_0x2d266d[_0xc5f2('0x50')][_0xc5f2('0xac')](_0x2d1f68):0x0),this[_0xc5f2('0xc0')]('numberOfChanges')['to'](this,_0xc5f2('0xba'),this,_0xc5f2('0x11'),(_0x493d36,_0x2c3e62)=>_0x493d36?_0x2c3e62[_0xc5f2('0x50')][_0xc5f2('0x104')]:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this[_0xc5f2('0x5')]=null,this['_balloon']=this['editor'][_0xc5f2('0x35')][_0xc5f2('0x16')](_0x34b568);}['init'](){const _0x3e2319=this[_0xc5f2('0xe0')],_0x7c36d7=new ShowChangeCommand(_0x3e2319,{'direction':'backward'}),_0x2fe495=new ShowChangeCommand(_0x3e2319,{'direction':_0xc5f2('0x3d')});(_0x3e2319[_0xc5f2('0xd9')][_0xc5f2('0x2f')]('showPreviousChange',_0x7c36d7),_0x3e2319[_0xc5f2('0xd9')]['add'](_0xc5f2('0x1'),_0x2fe495),_0x3e2319[_0xc5f2('0xd9')][_0xc5f2('0x2f')](_0xc5f2('0xf5'),new RestoreRevisionCommand(_0x3e2319)),this['on'](_0xc5f2('0xc6'),()=>{_0x7c36d7[_0xc5f2('0x61')](),_0x2fe495[_0xc5f2('0x61')]();}),this[_0xc5f2('0x77')](),this[_0xc5f2('0xa8')](),_0x3e2319[_0xc5f2('0xdc')](_0xc5f2('0x44')),_0x3e2319[_0xc5f2('0x35')][_0xc5f2('0x57')](_0xc5f2('0x6d')))&&_0x3e2319[_0xc5f2('0x35')][_0xc5f2('0x16')](_0xc5f2('0x6d'))[_0xc5f2('0x43')]('revision-viewer');}async[_0xc5f2('0xf7')](_0x237218){await this[_0xc5f2('0xb8')](_0x237218);const _0x39f20f={};for(const _0x5437c2 in _0x237218[_0xc5f2('0x4b')]){const _0x267b64=this[_0xc5f2('0x21')](JSON[_0xc5f2('0x88')](_0x237218['diffData'][_0x5437c2][_0xc5f2('0x58')])),_0x5c6398=this[_0xc5f2('0xe0')][_0xc5f2('0xbc')][_0xc5f2('0x5d')]['document'],_0x34cfff=new _0x5ef541(_0x5c6398,_0x267b64[_0xc5f2('0x3a')](_0x5c4fd8=>this[_0xc5f2('0x55')](_0x5c4fd8)));this[_0xc5f2('0xe0')][_0xc5f2('0x3e')]['processor'][_0xc5f2('0x1c')]('marked'),_0x39f20f[_0x5437c2]=this['editor'][_0xc5f2('0x3e')]['processor'][_0xc5f2('0xb1')](_0x34cfff),this[_0xc5f2('0xe0')][_0xc5f2('0x3e')][_0xc5f2('0xf3')][_0xc5f2('0x1c')]('default');}return _0x39f20f;}['_removeRevisionMarkers'](_0x3b4f0c){return(_0x3b4f0c=_0x3b4f0c[_0xc5f2('0xe5')](_0x2b8754=>!_0x2b8754[_0xc5f2('0x7e')]||_0xc5f2('0x4')!==_0x2b8754[_0xc5f2('0x7e')]&&'revision-end'!==_0x2b8754[_0xc5f2('0x7e')]))[_0xc5f2('0x83')](_0x558d88=>{'string'!=typeof _0x558d88&&(_0x558d88['children']=this['_removeRevisionMarkers'](_0x558d88[_0xc5f2('0x7c')]),_0x558d88[_0xc5f2('0x1a')]=_0x558d88['attributes']['filter'](_0x10f618=>!_0x10f618[0x0][_0xc5f2('0xd4')]('data-revision-')));}),_0x3b4f0c;}async[_0xc5f2('0x6f')](_0x1a2608,_0x556613,_0x390230=!0x1){if(!this[_0xc5f2('0x109')])return;const _0x5bac14=this[_0xc5f2('0x11')],_0x149620=this['repository'],_0x1c4ebb=_0xc5f2('0xe4')==typeof _0x1a2608?_0x149620[_0xc5f2('0xca')](_0x1a2608):_0x1a2608,_0x57a86e=_0xc5f2('0xe4')==typeof _0x556613?_0x149620['getRevision'](_0x556613):_0x556613,_0x57aa1c=_0x1c4ebb['id'],_0x3a07e4=_0x57a86e?_0x57a86e['id']:null;if(!_0x390230&&this[_0xc5f2('0x11')]&&this[_0xc5f2('0x11')][_0xc5f2('0x91')]===_0x57aa1c&&this[_0xc5f2('0x11')]['oldRevisionId']===_0x3a07e4)return Promise[_0xc5f2('0x108')]();this[_0xc5f2('0xba')]=!0x1,this[_0xc5f2('0x6e')]=null,this[_0xc5f2('0xa3')]=null,this[_0xc5f2('0x11')]=new _0x2bb4f5(_0x57aa1c,_0x3a07e4);const _0x3fbd57=this[_0xc5f2('0x2e')](_0x1c4ebb,_0x57a86e,!0x0)[_0xc5f2('0x3a')](_0x3aedeb=>this['loadRevisionData'](_0x3aedeb));return _0x3fbd57[_0xc5f2('0x39')](new Promise(_0x3b5b30=>{setTimeout(_0x3b5b30,0x14);})),Promise[_0xc5f2('0x23')](_0x3fbd57)['then'](()=>{if(!this[_0xc5f2('0x109')])return;this[_0xc5f2('0x2d')]();const _0x4566d5=this[_0xc5f2('0xa7')](_0x57aa1c,_0x3a07e4);this[_0xc5f2('0x11')][_0xc5f2('0xe3')](_0x4566d5);for(const _0x3a0660 of this[_0xc5f2('0x11')]['changes'])this[_0xc5f2('0xfa')][_0xc5f2('0xcf')](_0x3a0660['id'],_0x3a0660);this['editor'][_0xc5f2('0xb7')][_0xc5f2('0x5e')]({'isUndoable':!0x1},_0x1dd018=>{for(const _0xd106ab of Object[_0xc5f2('0xe8')](_0x4566d5[_0xc5f2('0xb7')])){const _0x5d8875=this[_0xc5f2('0xe0')]['model'][_0xc5f2('0xf6')][_0xc5f2('0x69')](_0xd106ab);_0x1dd018[_0xc5f2('0x89')](_0x1dd018[_0xc5f2('0x9d')](_0x5d8875)),_0x1dd018[_0xc5f2('0xab')](_0x4566d5[_0xc5f2('0xb7')][_0xd106ab],_0x5d8875,0x0);}}),this[_0xc5f2('0xba')]=!0x0;})[_0xc5f2('0xda')](_0x477a19=>{console[_0xc5f2('0x4d')](_0x477a19),this[_0xc5f2('0x2d')](),_0x5bac14?this[_0xc5f2('0x11')]=_0x5bac14:this[_0xc5f2('0xe0')][_0xc5f2('0x3e')][_0xc5f2('0xcf')](_0xc5f2('0x10b')),this[_0xc5f2('0xba')]=!0x0;});}[_0xc5f2('0x5a')](){this[_0xc5f2('0x6e')]=null,this['_changeView']&&this[_0xc5f2('0x9e')][_0xc5f2('0x5a')]();}['addRevisionData'](_0x335422,_0x1c77a6){const _0x30c99c=this[_0xc5f2('0xa0')][_0xc5f2('0x9')](_0x335422);return _0x30c99c['on']('_update',(_0x46d991,_0x2c2cd5,_0x4a2f30)=>_0x1c77a6(_0x2c2cd5,_0x4a2f30,_0x30c99c)),this['repository'][_0xc5f2('0x49')](_0x30c99c),_0x30c99c;}['loadRevisionData'](_0x48d6a1){if(!_0x48d6a1||_0x48d6a1[_0xc5f2('0x4b')])return Promise[_0xc5f2('0x108')]();{const _0x316324=this['editor'][_0xc5f2('0x90')]['get'](_0xc5f2('0xf0'));return this[_0xc5f2('0x5')]['getRevision']({'channelId':_0x316324,'revisionId':_0x48d6a1['id']})[_0xc5f2('0x7b')](_0x3b3731=>{_0x48d6a1[_0xc5f2('0x25')]({'diffData':_0x3b3731['diffData']},!0x0);});}}['_cleanUp'](){this[_0xc5f2('0xa3')]=null,this[_0xc5f2('0x3b')](),this[_0xc5f2('0x9e')]&&this['_changeView'][_0xc5f2('0x5a')](),this[_0xc5f2('0x9e')]=null,this[_0xc5f2('0xfa')][_0xc5f2('0x2c')]();}[_0xc5f2('0x1e')](_0x1970a0){const _0x27ca8a=Array[_0xc5f2('0x33')](_0x1970a0[_0xc5f2('0x63')])['filter'](([_0x1662e2,_0x4dbb74])=>_0x1662e2[_0xc5f2('0xd4')](_0xc5f2('0x3'))&&!_0x4dbb74[_0xc5f2('0xa9')]),_0x105f20=Array[_0xc5f2('0x33')](this[_0xc5f2('0xe0')][_0xc5f2('0xb7')][_0xc5f2('0x9d')](_0x1970a0)[_0xc5f2('0xea')]({'singleCharacters':!0x0}));if(0x0!=_0x27ca8a['length'])for(const _0x49e093 of _0x105f20){const [_0x454d2e,_0x46371a]=_0x27ca8a[0x0],[,_0x404bc0,_0x226ace]=_0x454d2e['split'](':');if(_0x46371a[_0xc5f2('0xde')][_0xc5f2('0x34')](_0x49e093[_0xc5f2('0xff')])&&_0x27ca8a[_0xc5f2('0x79')](),(_0x49e093[_0xc5f2('0x9c')]['isEqual'](_0x46371a[_0xc5f2('0x8')])||_0x49e093[_0xc5f2('0x9c')][_0xc5f2('0x105')](_0x46371a['start']))&&(_0xc5f2('0x87')==_0x404bc0?_0x49e093['isAdded']={'userId':_0x226ace}:'deletion'==_0x404bc0&&(_0x49e093[_0xc5f2('0xbd')]={'userId':_0x226ace})),0x0==_0x27ca8a['length'])break;}return _0x105f20;}[_0xc5f2('0x96')](_0x236e1f){const _0x45e401=new Map();for(let _0x21742d=0x0;_0x21742d<_0x236e1f[_0xc5f2('0x104')];_0x21742d++)'text'===_0x236e1f[_0x21742d][_0xc5f2('0x3f')]?(_0x236e1f[_0x21742d][_0xc5f2('0xed')]['startIndex']=_0x21742d,_0x236e1f[_0x21742d][_0xc5f2('0xed')][_0xc5f2('0x15')]=_0x21742d):(_0xc5f2('0x30')===_0x236e1f[_0x21742d]['type']?_0x236e1f[_0x21742d][_0xc5f2('0xed')][_0xc5f2('0x62')]=_0x21742d:_0xc5f2('0xe6')===_0x236e1f[_0x21742d][_0xc5f2('0x3f')]&&(_0x236e1f[_0x21742d][_0xc5f2('0xed')][_0xc5f2('0x15')]=_0x21742d),_0x45e401[_0xc5f2('0xcf')](_0x236e1f[_0x21742d]['id'],_0x21742d));for(const _0x514c9b of _0x45e401[_0xc5f2('0x14')]())_0xc5f2('0x30')===_0x236e1f[_0x514c9b][_0xc5f2('0x3f')]?_0x236e1f[_0x514c9b]['item']['endIndex']=_0x45e401[_0xc5f2('0x16')](_0x236e1f[_0x514c9b][_0xc5f2('0xf8')]):_0xc5f2('0xe6')===_0x236e1f[_0x514c9b][_0xc5f2('0x3f')]&&(_0x236e1f[_0x514c9b][_0xc5f2('0xed')]['startIndex']=_0x45e401['get'](_0x236e1f[_0x514c9b][_0xc5f2('0xf8')]));}[_0xc5f2('0x97')](_0x55bfb4){for(let _0x39b8a9=0x0;_0x39b8a9<_0x55bfb4[_0xc5f2('0x104')];_0x39b8a9++){if(_0xc5f2('0x30')===_0x55bfb4[_0x39b8a9]['type'])_0x55bfb4[_0x39b8a9][_0xc5f2('0xed')][_0xc5f2('0x62')]=_0x39b8a9;else{if('elementEnd'===_0x55bfb4[_0x39b8a9][_0xc5f2('0x3f')]){_0x55bfb4[_0x39b8a9]['item'][_0xc5f2('0x15')]=_0x39b8a9;const _0x68469b=_0x55bfb4[_0x39b8a9][_0xc5f2('0xed')]['startIndex'];_0x55bfb4[_0x68469b][_0xc5f2('0xf8')]=_0x55bfb4[_0x39b8a9]['id'],_0x55bfb4[_0x39b8a9][_0xc5f2('0xf8')]=_0x55bfb4[_0x68469b]['id'];}else _0x55bfb4[_0x39b8a9][_0xc5f2('0xed')]['startIndex']=_0x39b8a9,_0x55bfb4[_0x39b8a9][_0xc5f2('0xed')][_0xc5f2('0x15')]=_0x39b8a9,_0x55bfb4[_0x39b8a9]['pairId']=null;}_0x55bfb4[_0x39b8a9][_0xc5f2('0x85')]||(_0x55bfb4[_0x39b8a9][_0xc5f2('0x85')]=[],_0x55bfb4[_0x39b8a9]['markersEnd']=[]);}}[_0xc5f2('0xcd')](_0x730ee4,_0x3f9a1a){const _0x3a3222=_0x730ee4[_0xc5f2('0xe5')](_0x494309=>!_0x494309[_0xc5f2('0x4e')]);for(let _0x2376a7=0x0;_0x2376a7<_0x3f9a1a['length'];_0x2376a7++)_0x3f9a1a[_0x2376a7][_0xc5f2('0x4e')]&&(_0x3a3222[_0x2376a7][_0xc5f2('0x4e')]=_0x3f9a1a[_0x2376a7][_0xc5f2('0x4e')]);}[_0xc5f2('0x47')](_0x3f6576){const _0x2a522f=JSON[_0xc5f2('0x88')](_0x3f6576),_0x4c0395=this[_0xc5f2('0xe0')]['editing'][_0xc5f2('0x5d')]['document'],_0x25e61c=new _0x5ef541(_0x4c0395,_0x2a522f['map'](_0x586958=>this['_getViewObj'](_0x586958)));return this[_0xc5f2('0xe0')][_0xc5f2('0x3e')][_0xc5f2('0x41')](_0x25e61c);}[_0xc5f2('0x55')](_0xb74e3c){const _0x3a4bab=this[_0xc5f2('0xe0')][_0xc5f2('0xbc')][_0xc5f2('0x5d')]['document'];if(_0xc5f2('0xe4')==typeof _0xb74e3c)return new _0x56676a(_0x3a4bab,_0xb74e3c);{const _0x3ea9f1=_0xb74e3c[_0xc5f2('0x7c')]['map'](_0x12333b=>this['_getViewObj'](_0x12333b));return new(K[_0xb74e3c[(_0xc5f2('0x3f'))]]||_0x5f3663)(_0x3a4bab,_0xb74e3c['name'],_0xb74e3c[_0xc5f2('0x1a')],_0x3ea9f1);}}[_0xc5f2('0xa7')](_0x2d323a,_0x26c8fc=null){const _0x36ef77=this[_0xc5f2('0xa0')][_0xc5f2('0xca')](_0x2d323a),_0x31b419=_0x26c8fc?this['repository'][_0xc5f2('0xca')](_0x26c8fc):null,_0x1404e8=this['_getRevisionsRange'](_0x36ef77,_0x31b419),_0x5b21a4=_0x1404e8[_0x1404e8[_0xc5f2('0x104')]-0x1],_0x13939f=new Map();for(const _0x58af7f of _0x1404e8){_0x58af7f[_0xc5f2('0xb7')]={};for(const _0x412ad7 of _0x58af7f[_0xc5f2('0xd6')])_0x13939f['set'](_0x412ad7['id'],_0x412ad7);for(const _0x52ff27 of this['editor'][_0xc5f2('0xb7')][_0xc5f2('0xf6')][_0xc5f2('0xe2')]())_0x58af7f['diffData'][_0x52ff27]||(_0x58af7f[_0xc5f2('0x4b')][_0x52ff27]={'insertions':'[]','deletions':'[]'}),_0x58af7f[_0xc5f2('0xb7')][_0x52ff27]={'insertions':this[_0xc5f2('0x47')](_0x58af7f[_0xc5f2('0x4b')][_0x52ff27][_0xc5f2('0x58')]),'deletions':this[_0xc5f2('0x47')](_0x58af7f[_0xc5f2('0x4b')][_0x52ff27]['deletions'])};}const _0x32e906={'model':{},'changes':[]};for(const _0x368ac8 of this[_0xc5f2('0xe0')][_0xc5f2('0xb7')]['document'][_0xc5f2('0xe2')]()){let _0x488470=null,_0x128739=0x0;const _0x1961c0=new Map(Array['from'](_0x36ef77[_0xc5f2('0xb7')][_0x368ac8]['insertions']['markers'])['filter'](([_0x17cbc3])=>!_0x17cbc3[_0xc5f2('0xd4')](_0xc5f2('0x3'))));let _0x2c42f7=0x0;for(const _0x26be36 of _0x1404e8){const _0x576dd1=this[_0xc5f2('0x1e')](_0x26be36[_0xc5f2('0xb7')][_0x368ac8][_0xc5f2('0x58')]);_0x26be36==_0x36ef77?(_0x488470=_0x576dd1,_0x128739=_0x488470['length'],_0x488470[_0xc5f2('0x83')](_0x24005d=>{_0x24005d['id']=_0x2c42f7++;}),this['_processTape'](_0x488470)):this[_0xc5f2('0xcd')](_0x488470,_0x576dd1);const _0x49a83f=_0x488470[_0xc5f2('0xe5')](_0x411aa6=>!_0x411aa6[_0xc5f2('0x4e')])[_0xc5f2('0x3a')](_0x241db2=>_0x241db2['id']);let _0x44752b=0x0;const _0x187dd8=this[_0xc5f2('0x1e')](_0x26be36[_0xc5f2('0xb7')][_0x368ac8]['deletions']);_0x187dd8['forEach'](_0x225d89=>{_0x225d89['isRemoved']?_0x225d89['id']=_0x128739++:_0x225d89['id']=_0x49a83f[_0x44752b++];}),this[_0xc5f2('0x97')](_0x187dd8),this[_0xc5f2('0x9f')](_0x488470,'isAdded'),this[_0xc5f2('0x9f')](_0x187dd8,_0xc5f2('0xbd')),_0x26be36==_0x36ef77&&this[_0xc5f2('0xd0')](_0x488470,_0x1961c0),_0x488470=this['_joinTapes'](_0x488470,_0x187dd8),this[_0xc5f2('0x96')](_0x488470),this[_0xc5f2('0x9f')](_0x488470,_0xc5f2('0xbd'));}_0x488470=_0x488470['filter'](_0x35a51c=>!(_0x35a51c[_0xc5f2('0x4e')]&&_0x35a51c[_0xc5f2('0xbd')]));const _0x3eb31c=new Map(_0x5b21a4['model'][_0x368ac8]['deletions']['markers']),_0x206725=new Set(_0x1961c0[_0xc5f2('0xe8')]());for(const _0x19fb1d of _0x3eb31c[_0xc5f2('0xe8')]())_0x206725['delete'](_0x19fb1d);this[_0xc5f2('0x7a')](_0x488470,_0x206725),this['_fixObsoleteTags'](_0x488470),_0x488470=this['_removeMissingPairs'](_0x488470),_0x488470=this[_0xc5f2('0xb')](_0x488470),_0x488470=this[_0xc5f2('0x8f')](_0x488470);const {root:_0x5026fd,changes:_0x147802}=this[_0xc5f2('0x84')](_0x488470,_0x13939f);_0x32e906[_0xc5f2('0xb7')][_0x368ac8]=_0x5026fd,_0x32e906['changes']=_0x32e906[_0xc5f2('0x50')][_0xc5f2('0x24')](_0x147802);}return _0x32e906;}[_0xc5f2('0xd0')](_0x26e273,_0x3a7698){for(let _0x4fef58=0x0;_0x4fef58<_0x26e273['length'];_0x4fef58++)for(const [_0x33a49a,_0x2fff58]of _0x3a7698)_0x2fff58['start'][_0xc5f2('0x34')](_0x26e273[_0x4fef58][_0xc5f2('0x9c')])&&_0x26e273[_0x4fef58][_0xc5f2('0x85')]['push'](_0x33a49a),_0x2fff58[_0xc5f2('0xde')][_0xc5f2('0x34')](_0x26e273[_0x4fef58][_0xc5f2('0xff')])&&_0x26e273[_0x4fef58]['markersEnd']['push'](_0x33a49a);}[_0xc5f2('0x8d')](_0x54f541,_0x2f161c){let _0x4d397d=[],_0x1f92e6=0x0,_0x15fc8a=0x0;for(;_0x1f92e6<_0x54f541[_0xc5f2('0x104')]||_0x15fc8a<_0x2f161c[_0xc5f2('0x104')];){const _0x49cc62=_0x54f541[_0x1f92e6]||{},_0x378c81=_0x2f161c[_0x15fc8a]||{};if(_0x49cc62['id']==_0x378c81['id'])_0x1f92e6++,_0x15fc8a++,_0x4d397d['push'](_0x49cc62);else{if(_0x378c81[_0xc5f2('0xbd')]&&_0x49cc62['isAdded']){const {commonTape:_0x5821de,iEnd:_0x4d163e,jEnd:_0x15a069}=this[_0xc5f2('0x1b')](_0x54f541,_0x1f92e6,_0x2f161c,_0x15fc8a);_0x4d397d=_0x4d397d['concat'](_0x5821de),_0x1f92e6=_0x4d163e,_0x15fc8a=_0x15a069;}else _0x378c81[_0xc5f2('0xbd')]?(_0x15fc8a++,_0x4d397d[_0xc5f2('0x39')](_0x378c81)):(_0x1f92e6++,_0x4d397d['push'](_0x49cc62));}}return _0x4d397d;}['_markSuggestions'](_0x59b190,_0x2b90fe){const _0x4e83cf=[];for(let _0x24bd32=0x0;_0x24bd32<_0x59b190[_0xc5f2('0x104')];_0x24bd32++){for(let _0x43becd=0x0;_0x43becd<_0x59b190[_0x24bd32][_0xc5f2('0x85')][_0xc5f2('0x104')];_0x43becd++){const _0x15015b=_0x59b190[_0x24bd32][_0xc5f2('0x85')][_0x43becd];if(!_0x2b90fe['has'](_0x15015b))continue;const {group:_0x13236a,type:_0x5804e8,authorId:_0x27a519}=_0xd8679d(_0x15015b);_0xc5f2('0x4c')!=_0x13236a||'insertion'!=_0x5804e8&&_0xc5f2('0xe1')!=_0x5804e8||(_0x4e83cf[_0xc5f2('0xfd')]({'type':_0x5804e8,'name':_0x15015b,'userId':_0x27a519}),_0x59b190[_0x24bd32]['markersStart'][_0xc5f2('0x1f')](_0x43becd,0x1),_0x43becd--);}_0x288be5(_0x59b190[_0x24bd32]);for(let _0x291d4e=0x0;_0x291d4e<_0x59b190[_0x24bd32][_0xc5f2('0x22')][_0xc5f2('0x104')];_0x291d4e++){const _0x2249b4=_0x59b190[_0x24bd32][_0xc5f2('0x22')][_0x291d4e];if(!_0x2b90fe[_0xc5f2('0x57')](_0x2249b4))continue;const {group:_0x3ea681,type:_0x3f6898}=_0xd8679d(_0x2249b4);if(_0xc5f2('0x4c')!=_0x3ea681||_0xc5f2('0x87')!=_0x3f6898&&_0xc5f2('0xe1')!=_0x3f6898)continue;_0x59b190[_0x24bd32][_0xc5f2('0x22')][_0xc5f2('0x1f')](_0x291d4e,0x1),_0x291d4e--;const _0x50b1b0=_0x4e83cf[_0xc5f2('0x81')](_0x3cadc=>_0x3cadc[_0xc5f2('0x7e')]==_0x2249b4);_0x50b1b0>-0x1&&_0x4e83cf['splice'](_0x50b1b0,0x1);}}function _0xd8679d(_0x30f3f1){const _0x3c20f7=_0x30f3f1[_0xc5f2('0x94')](':');return{'group':_0x3c20f7[0x0],'type':_0x3c20f7[0x1],'subType':_0x3c20f7[_0xc5f2('0x104')]>=0x5?_0x3c20f7[0x2]:null,'id':_0x3c20f7[_0xc5f2('0x104')]<0x5?_0x3c20f7[0x2]:_0x3c20f7[0x3],'authorId':_0x3c20f7[_0xc5f2('0x104')]<0x5?_0x3c20f7[0x3]:_0x3c20f7[0x4],'markerCount':0x6==_0x3c20f7[_0xc5f2('0x104')]?_0x3c20f7[0x5]:null};}function _0x288be5(_0x3cea21){for(let _0x35c251=0x0;_0x35c251<_0x4e83cf[_0xc5f2('0x104')];_0x35c251++){if(_0x3cea21[_0xc5f2('0x4e')]&&'insertion'==_0x4e83cf[_0x35c251][_0xc5f2('0x3f')])return _0x3cea21[_0xc5f2('0x59')]=_0x4e83cf[_0x35c251],void delete _0x3cea21[_0xc5f2('0x4e')];if(!_0x3cea21[_0xc5f2('0x4e')]&&!_0x3cea21[_0xc5f2('0xbd')]&&_0xc5f2('0xe1')==_0x4e83cf[_0x35c251][_0xc5f2('0x3f')])return void(_0x3cea21[_0xc5f2('0x4f')]=_0x4e83cf[_0x35c251]);}}}[_0xc5f2('0x9f')](_0x1c2f61,_0x21ab4d){let _0x4a2fff=0x0,_0xdffdf=!0x1;const _0x2611f0=new Map();for(const _0x1d628a of _0x1c2f61)_0x1d628a[_0x21ab4d]?_0xdffdf&&(_0x4a2fff++,_0xdffdf=!0x1):(_0x4a2fff++,_0xdffdf=!0x0),_0x2611f0[_0xc5f2('0xcf')](_0x1d628a['id'],_0x4a2fff);for(let _0x48d1db=0x0;_0x48d1db<_0x1c2f61['length'];_0x48d1db++){if('isRemoved'==_0x21ab4d&&_0x1c2f61[_0x48d1db][_0xc5f2('0x4e')]||_0xc5f2('0x4e')==_0x21ab4d&&_0x1c2f61[_0x48d1db][_0xc5f2('0xbd')])continue;if(_0xc5f2('0xaa')==_0x1c2f61[_0x48d1db][_0xc5f2('0x3f')]){_0x1c2f61[_0x48d1db][_0xc5f2('0xbb')]=0x0;continue;}const _0x571c85=_0x2611f0[_0xc5f2('0x16')](_0x1c2f61[_0x48d1db]['pairId']),_0x2ce339=_0x2611f0[_0xc5f2('0x16')](_0x1c2f61[_0x48d1db]['id']);_0x1c2f61[_0x48d1db][_0xc5f2('0xbb')]=_0x571c85-_0x2ce339;}}[_0xc5f2('0x2e')](_0x2db012,_0x5d1d2c,_0x389865=!0x1){const _0x272cba=[];let _0x5c755e=this[_0xc5f2('0xa0')]['getIndex'](_0x2db012),_0x338901=this[_0xc5f2('0xa0')]['getIndex'](_0x5d1d2c);for(-0x1==_0x338901&&(_0x338901=this[_0xc5f2('0xa0')][_0xc5f2('0xa6')][_0xc5f2('0x104')],_0x389865=!0x1);_0x5c755e<_0x338901;)_0x272cba[_0xc5f2('0x39')](this[_0xc5f2('0xa0')][_0xc5f2('0xca')](_0x5c755e)),_0x5c755e++;return _0x389865&&_0x272cba[_0xc5f2('0x39')](this[_0xc5f2('0xa0')]['getRevision'](_0x5c755e)),_0x272cba;}[_0xc5f2('0x1b')](_0x25226d,_0x2363e1,_0x246506,_0x4f2f6e){const _0x4e4817=this[_0xc5f2('0xe0')]['model']['schema'];let _0x8ee623=_0x2363e1;for(;_0x25226d[_0x8ee623]&&_0x25226d[_0x8ee623][_0xc5f2('0x4e')];)_0x8ee623++;let _0x55bab0=_0x4f2f6e;for(;_0x246506[_0x55bab0]&&_0x246506[_0x55bab0][_0xc5f2('0xbd')];)_0x55bab0++;_0x51ef96(_0x25226d,_0x2363e1,_0x8ee623),_0x51ef96(_0x246506,_0x4f2f6e,_0x55bab0);const _0x34e7e2=_0x246506[_0xc5f2('0xc3')](_0x4f2f6e,_0x55bab0)[_0xc5f2('0x24')](_0x25226d[_0xc5f2('0xc3')](_0x2363e1,_0x8ee623));return _0x34e7e2['sort']((_0x9c3ed6,_0x549d49)=>_0x9c3ed6[_0xc5f2('0x0')]!=_0x549d49[_0xc5f2('0x0')]?_0x9c3ed6['side']-_0x549d49[_0xc5f2('0x0')]:_0x9c3ed6[_0xc5f2('0x101')]!=_0x549d49[_0xc5f2('0x101')]?_0x9c3ed6[_0xc5f2('0x101')]-_0x549d49['level']:_0x9c3ed6[_0xc5f2('0xbb')]!=_0x549d49[_0xc5f2('0xbb')]?_0x549d49['distance']-_0x9c3ed6['distance']:!!_0x9c3ed6[_0xc5f2('0x4e')]!=!!_0x549d49[_0xc5f2('0x4e')]?-0x1==_0x9c3ed6[_0xc5f2('0x0')]||0x0==_0x9c3ed6['side']?_0x9c3ed6[_0xc5f2('0x4e')]?-0x1:0x1:_0x9c3ed6[_0xc5f2('0x4e')]?0x1:-0x1:_0x9c3ed6[_0xc5f2('0x92')]-_0x549d49[_0xc5f2('0x92')]),{'commonTape':_0x34e7e2,'iEnd':_0x8ee623,'jEnd':_0x55bab0};function _0x51ef96(_0x3a0cf1,_0x51328e,_0x1f4440){let _0x580da1=-0x1,_0x5415e6=Number[_0xc5f2('0xa4')],_0x32e1d2=!0x0;for(let _0x2a2c81=_0x51328e;_0x2a2c81<_0x1f4440;_0x2a2c81++)if(_0x4e4817[_0xc5f2('0x8e')](_0x3a0cf1[_0x2a2c81][_0xc5f2('0xed')])||(_0x32e1d2=!0x1),_0x3a0cf1[_0x2a2c81][_0xc5f2('0xed')]['startIndex']<_0x51328e&&(_0x580da1=_0x2a2c81),_0x3a0cf1[_0x2a2c81][_0xc5f2('0xed')][_0xc5f2('0x15')]>=_0x1f4440){_0x5415e6=_0x2a2c81;break;}_0x32e1d2&&(_0x580da1=_0x1f4440-0x1);for(let _0x5ea8b8=_0x51328e;_0x5ea8b8<_0x1f4440;_0x5ea8b8++)_0x3a0cf1[_0x5ea8b8][_0xc5f2('0x0')]=_0x5ea8b8<=_0x580da1?-0x1:_0x5ea8b8<_0x5415e6?0x0:0x1,_0x3a0cf1[_0x5ea8b8]['index']=_0x5ea8b8;let _0x144f5d=0x0;for(let _0x36750b=_0x51328e;_0x36750b<=_0x580da1;_0x36750b++)0x0==_0x3a0cf1[_0x36750b][_0xc5f2('0xbb')]?_0x3a0cf1[_0x36750b][_0xc5f2('0x101')]=_0x144f5d:(_0x144f5d++,_0x3a0cf1[_0x36750b]['level']=_0x144f5d,_0x144f5d++);for(let _0x12dd39=_0x51328e;_0x12dd39<_0x1f4440;_0x12dd39++)0x0==_0x3a0cf1[_0x12dd39][_0xc5f2('0x0')]&&(_0x3a0cf1[_0x12dd39][_0xc5f2('0x101')]=_0x144f5d);_0x144f5d=0x0;for(let _0x17ba00=_0x1f4440-0x1;_0x17ba00>=_0x5415e6;_0x17ba00--)0x0==_0x3a0cf1[_0x17ba00][_0xc5f2('0xbb')]?_0x3a0cf1[_0x17ba00][_0xc5f2('0x101')]=_0x144f5d:(_0x144f5d--,_0x3a0cf1[_0x17ba00][_0xc5f2('0x101')]=_0x144f5d,_0x144f5d--);}}['_fixObsoleteTags'](_0x2a5db1){const _0x1c1dc1=new Map(),_0xc85647=this[_0xc5f2('0xe0')][_0xc5f2('0xb7')]['schema'];for(let _0x5043c1=0x1;_0x5043c1<_0x2a5db1[_0xc5f2('0x104')];_0x5043c1++){let _0x20b57a,_0x1193eb,_0x5aef0a;const _0x5c6749=_0x2a5db1[_0x5043c1],_0x2c99df=_0x2a5db1[_0x5043c1-0x1];if(_0xc5f2('0xaa')==_0x5c6749[_0xc5f2('0x3f')])continue;if(_0x5c6749['type']!=_0x2c99df['type'])continue;if(!_0xc85647[_0xc5f2('0x10f')](_0x2c99df[_0xc5f2('0xed')])||_0xc85647[_0xc5f2('0x53')](_0x2c99df[_0xc5f2('0xed')]))continue;if(!_0xc85647[_0xc5f2('0x10f')](_0x5c6749[_0xc5f2('0xed')])||_0xc85647['isLimit'](_0x5c6749[_0xc5f2('0xed')]))continue;if((_0x2a5db1[_0x5043c1][_0xc5f2('0x4e')]||_0x2a5db1[_0x5043c1]['isAddSuggestion'])&&_0x2a5db1[_0x5043c1-0x1]['isRemoved'])_0x20b57a=_0x2a5db1[_0x5043c1],_0x1193eb=_0x2a5db1[_0x5043c1-0x1],_0x5aef0a=_0x5043c1-0x1;else{if(!_0x2a5db1[_0x5043c1][_0xc5f2('0xbd')]||!_0x2a5db1[_0x5043c1-0x1]['isAdded']&&!_0x2a5db1[_0x5043c1-0x1][_0xc5f2('0x59')])continue;_0x20b57a=_0x2a5db1[_0x5043c1-0x1],_0x1193eb=_0x2a5db1[_0x5043c1],_0x5aef0a=_0x5043c1;}const _0x4a07b9=_0x20b57a[_0xc5f2('0x101')]==_0x1193eb[_0xc5f2('0x101')],_0x128f9e=Math['abs'](_0x20b57a[_0xc5f2('0x101')])<Math[_0xc5f2('0xcb')](_0x1193eb['level'])&&0x0==_0x1193eb[_0xc5f2('0xbb')];(_0x4a07b9||_0x128f9e)&&(_0x1c1dc1[_0xc5f2('0xcf')](_0x1193eb['id'],_0x20b57a['id']),_0x2a5db1[_0xc5f2('0x1f')](_0x5aef0a,0x1),_0x5043c1--,_0x20b57a[_0xc5f2('0x4e')]=!0x1);}for(let _0x2411ce=0x0;_0x2411ce<_0x2a5db1[_0xc5f2('0x104')];_0x2411ce++)_0x1c1dc1['has'](_0x2a5db1[_0x2411ce][_0xc5f2('0xf8')])&&(_0x2a5db1[_0x2411ce][_0xc5f2('0xf8')]=_0x1c1dc1['get'](_0x2a5db1[_0x2411ce]['pairId']));}[_0xc5f2('0x17')](_0x4c843d){const _0x993b1=new Set(_0x4c843d[_0xc5f2('0x3a')](_0x52e867=>_0x52e867['id']));for(let _0x391960=0x0;_0x391960<_0x4c843d[_0xc5f2('0x104')];_0x391960++)_0x993b1[_0xc5f2('0x57')](_0x4c843d[_0x391960][_0xc5f2('0xf8')])||0x0==_0x4c843d[_0x391960]['distance']||(_0x4c843d[_0x391960][_0xc5f2('0x68')]=!0x0);return _0x4c843d[_0xc5f2('0xe5')](_0x6df767=>!_0x6df767[_0xc5f2('0x68')]);}[_0xc5f2('0xb')](_0x26bc44){const _0x55feb8=new Set();for(let _0x593d10=0x0;_0x593d10<_0x26bc44[_0xc5f2('0x104')];_0x593d10++){if(_0x55feb8[_0xc5f2('0x57')](_0x26bc44[_0x593d10]['id'])&&_0x26bc44[_0x593d10][_0xc5f2('0xbd')]&&(_0x26bc44[_0x593d10][_0xc5f2('0x68')]=!0x0),_0x26bc44[_0x593d10][_0xc5f2('0x68')])continue;if(0x0==_0x26bc44[_0x593d10][_0xc5f2('0xbb')])continue;if(_0xc5f2('0x30')!=_0x26bc44[_0x593d10][_0xc5f2('0x3f')])continue;if(null==_0x26bc44[_0x593d10]['pairId'])continue;let _0x306fc8=_0x593d10+0x1,_0x2c5e59=0x0;for(;_0x26bc44[_0x306fc8]['id']!=_0x26bc44[_0x593d10][_0xc5f2('0xf8')];)_0xc5f2('0x30')==_0x26bc44[_0x306fc8][_0xc5f2('0x3f')]?_0x2c5e59++:'elementEnd'==_0x26bc44[_0x306fc8]['type']&&_0x2c5e59--,_0x306fc8++;if(0x0!=_0x2c5e59){if(_0x26bc44[_0x593d10][_0xc5f2('0xbd')])_0x26bc44[_0x593d10][_0xc5f2('0x68')]=!0x0;else for(;_0x306fc8!=_0x593d10;)_0x26bc44[_0x306fc8][_0xc5f2('0xbd')]&&0x0!=_0x26bc44[_0x306fc8][_0xc5f2('0xbb')]&&(_0x26bc44[_0x306fc8][_0xc5f2('0x68')]=!0x0,_0x55feb8[_0xc5f2('0x2f')](_0x26bc44[_0x306fc8][_0xc5f2('0xf8')])),_0x306fc8--;}}return _0x26bc44['filter'](_0x20edd1=>!_0x20edd1['isIncorrect']);}['_removeUnsupportedChanges'](_0x12f13c){const _0x29b675=this['editor'][_0xc5f2('0xb7')]['schema'];for(let _0x5acbf4=0x0;_0x5acbf4<_0x12f13c[_0xc5f2('0x104')];_0x5acbf4++){if(!(_0x12f13c[_0x5acbf4][_0xc5f2('0x4e')]||_0x12f13c[_0x5acbf4][_0xc5f2('0x59')]||_0x12f13c[_0x5acbf4][_0xc5f2('0xbd')]||_0x12f13c[_0x5acbf4]['isRemoveSuggestion']))continue;if(0x0==_0x12f13c[_0x5acbf4][_0xc5f2('0xbb')])continue;const _0x31a1a2=_0x12f13c[_0x5acbf4][_0xc5f2('0xed')];_0x29b675['isBlock'](_0x31a1a2)||_0x29b675[_0xc5f2('0x53')](_0x31a1a2)||(_0x12f13c[_0x5acbf4][_0xc5f2('0x4e')]&&delete _0x12f13c[_0x5acbf4][_0xc5f2('0x4e')],_0x12f13c[_0x5acbf4]['isAddSuggestion']&&delete _0x12f13c[_0x5acbf4][_0xc5f2('0x59')],_0x12f13c[_0x5acbf4][_0xc5f2('0x4f')]&&delete _0x12f13c[_0x5acbf4][_0xc5f2('0x4f')],_0x12f13c[_0x5acbf4][_0xc5f2('0xbd')]&&(_0x12f13c[_0x5acbf4]['isIncorrect']=!0x0));}return _0x12f13c['filter'](_0x4a401b=>!_0x4a401b[_0xc5f2('0x68')]);}[_0xc5f2('0x84')](_0x12fb2c,_0x5df1dd){const _0x2bc7a9=new _0x5c2dd3(),_0x3b6290=[],_0x4c54db=new Map(),_0x5a6655=this[_0xc5f2('0xe0')]['model'],_0x237a0f=_0x5a6655['schema'],_0x5910b7=[_0x2bc7a9],_0x4ddef4={},_0x69b05f={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3f3ca5=null;const _0x25a1dc=[0x0];for(let _0x1079d0=0x0;_0x1079d0<_0x12fb2c[_0xc5f2('0x104')];_0x1079d0++){let _0x4610c7,_0x387e9e;if('elementStart'===_0x12fb2c[_0x1079d0]['type']){_0x4610c7=_0x5a6655[_0xc5f2('0x103')](_0x2bc7a9,_0x25a1dc);const _0x16bd7e=new _0x5bd6bc(_0x12fb2c[_0x1079d0][_0xc5f2('0xed')][_0xc5f2('0x7e')],_0x12fb2c[_0x1079d0][_0xc5f2('0xed')]['getAttributes']());_0x5910b7[0x0][_0xc5f2('0x19')](_0x16bd7e),_0x25a1dc[_0xc5f2('0x39')](0x0),_0x5910b7[_0xc5f2('0xfd')](_0x16bd7e),_0x387e9e=_0x5a6655[_0xc5f2('0x103')](_0x2bc7a9,_0x25a1dc),_0x3f3ca5=null;}else{if(_0xc5f2('0xe6')===_0x12fb2c[_0x1079d0]['type'])_0x5910b7[_0xc5f2('0x79')](),_0x4610c7=_0x5a6655[_0xc5f2('0x103')](_0x2bc7a9,_0x25a1dc),_0x25a1dc[_0xc5f2('0xb9')](),_0x25a1dc[_0x25a1dc[_0xc5f2('0x104')]-0x1]++,_0x387e9e=_0x5a6655[_0xc5f2('0x103')](_0x2bc7a9,_0x25a1dc),_0x3f3ca5=null;else{if(_0x4610c7=_0x5a6655[_0xc5f2('0x103')](_0x2bc7a9,_0x25a1dc),_0x3f3ca5&&_0x332187(_0x3f3ca5,_0x12fb2c[_0x1079d0]['item']))_0x3f3ca5[_0xc5f2('0xad')]+=_0x12fb2c[_0x1079d0][_0xc5f2('0xed')][_0xc5f2('0x3e')];else{const _0x522720=new _0x4ca4e1(_0x12fb2c[_0x1079d0][_0xc5f2('0xed')][_0xc5f2('0x3e')],_0x12fb2c[_0x1079d0]['item'][_0xc5f2('0xee')]());_0x5910b7[0x0][_0xc5f2('0x19')](_0x522720),_0x3f3ca5=_0x522720;}_0x25a1dc[_0x25a1dc[_0xc5f2('0x104')]-0x1]+=_0x12fb2c[_0x1079d0]['item']['offsetSize'],_0x387e9e=_0x5a6655[_0xc5f2('0x103')](_0x2bc7a9,_0x25a1dc);}}for(const _0x2a38ff of _0x12fb2c[_0x1079d0][_0xc5f2('0x85')])_0x4c54db[_0xc5f2('0xcf')](_0x2a38ff,{'start':_0x4610c7,'end':null});_0x1e2d03('isRemoveSuggestion',_0x1079d0,_0x4610c7,_0x387e9e),_0x1e2d03(_0xc5f2('0x59'),_0x1079d0,_0x4610c7,_0x387e9e),_0x1e2d03(_0xc5f2('0xbd'),_0x1079d0,_0x4610c7,_0x387e9e),_0x1e2d03(_0xc5f2('0x4e'),_0x1079d0,_0x4610c7,_0x387e9e);for(const _0x3c8860 of _0x12fb2c[_0x1079d0][_0xc5f2('0x22')]){_0x4c54db['get'](_0x3c8860)[_0xc5f2('0xde')]=_0x387e9e;}}for(const [_0x4c4bce,_0x3a81c2]of _0x4c54db){const _0x5880ea=this[_0xc5f2('0xe0')]['model']['createRange'](_0x3a81c2['start'],_0x3a81c2[_0xc5f2('0xde')]);_0x2bc7a9[_0xc5f2('0x63')][_0xc5f2('0xcf')](_0x4c4bce,_0x5880ea);}return _0x3b6290[_0xc5f2('0xb0')]((_0x2360f7,_0x35e63c)=>{const _0x49db51=_0x2bc7a9[_0xc5f2('0x63')]['get']('revision:'+_0x2360f7['id']),_0x26cf20=_0x2bc7a9[_0xc5f2('0x63')][_0xc5f2('0x16')]('revision:'+_0x35e63c['id']);return _0x49db51[_0xc5f2('0x8')][_0xc5f2('0xf9')](_0x26cf20[_0xc5f2('0x8')])?-0x1:_0x49db51[_0xc5f2('0x8')][_0xc5f2('0x105')](_0x26cf20[_0xc5f2('0x8')])?0x1:_0x49db51[_0xc5f2('0xde')]['isBefore'](_0x26cf20[_0xc5f2('0xde')])?-0x1:_0x49db51[_0xc5f2('0xde')][_0xc5f2('0x105')](_0x26cf20[_0xc5f2('0xde')])?0x1:'add'===_0x2360f7[_0xc5f2('0x3f')]?-0x1:0x1;}),{'root':_0x2bc7a9,'changes':_0x3b6290};function _0x1e2d03(_0x54eecc,_0x25df37,_0x23a921,_0x559221){const _0x16d9fb=!!_0x12fb2c[_0x25df37][_0x54eecc],_0x176d07=_0x16d9fb?_0x12fb2c[_0x25df37][_0x54eecc][_0xc5f2('0xcc')]:null,_0x54d678=_0x25df37===_0x12fb2c[_0xc5f2('0x104')]-0x1,_0x3cc3d9=_0x69b05f[_0x54eecc][0x0],_0x13554c=_0x237a0f['isObject'](_0x12fb2c[_0x25df37][_0xc5f2('0xed')]);!_0x4ddef4[_0x54eecc]&&_0x16d9fb?_0x4ddef4[_0x54eecc]={'start':_0x23a921,'tapeItem':_0x12fb2c[_0x25df37],'userId':_0x176d07,'type':_0x54eecc}:_0x4ddef4[_0x54eecc]&&!_0x16d9fb?(_0x4ddef4[_0x54eecc][_0xc5f2('0xde')]=_0x23a921,_0x4e799e(_0x4ddef4[_0x54eecc]),_0x4ddef4[_0x54eecc]=null):_0x4ddef4[_0x54eecc]&&_0x16d9fb&&_0x4ddef4[_0x54eecc][_0xc5f2('0xcc')]!==_0x176d07&&(_0x4ddef4[_0x54eecc][_0xc5f2('0xde')]=_0x23a921,_0x3cc3d9&&_0x3cc3d9['userId']===_0x4ddef4[_0x54eecc]['userId']||_0x4e799e(_0x4ddef4[_0x54eecc]),_0x4ddef4[_0x54eecc]={'start':_0x23a921,'tapeItem':_0x12fb2c[_0x25df37],'userId':_0x176d07,'type':_0x54eecc}),_0x4ddef4[_0x54eecc]&&_0x13554c&&(_0xc5f2('0x30')!==_0x12fb2c[_0x25df37][_0xc5f2('0x3f')]||_0x3cc3d9&&_0x3cc3d9[_0xc5f2('0xcc')]===_0x176d07||_0x69b05f[_0x54eecc][_0xc5f2('0xfd')]({'userId':_0x176d07,'object':_0x12fb2c[_0x25df37][_0xc5f2('0xed')],'change':_0x4ddef4[_0x54eecc]}),_0xc5f2('0xe6')===_0x12fb2c[_0x25df37][_0xc5f2('0x3f')]&&_0x3cc3d9&&_0x3cc3d9['object']===_0x12fb2c[_0x25df37][_0xc5f2('0xed')]&&(_0x69b05f[_0x54eecc][_0xc5f2('0x79')](),_0x4ddef4[_0x54eecc]=_0x3cc3d9[_0xc5f2('0xfe')])),_0x4ddef4[_0x54eecc]&&_0x54d678&&(_0x4ddef4[_0x54eecc]['end']=_0x559221,_0x4e799e(_0x4ddef4[_0x54eecc]),_0x4ddef4[_0x54eecc]=null);}function _0x4e799e({start:_0x1f92cb,end:_0x50b770,tapeItem:_0x2325c0,userId:_0x1d5391,type:_0x5b3cfb}){const _0x3ad1f1=_0x2325c0['item'],_0x26bd22=_0x5a6655[_0xc5f2('0x6')][_0xc5f2('0x10f')](_0x3ad1f1)&&!_0x5a6655[_0xc5f2('0x6')]['isLimit'](_0x3ad1f1),_0x251d6b=_0x1f92cb[_0xc5f2('0xc2')]==_0x50b770[_0xc5f2('0xaf')]&&_0x50b770['isAtStart'];if(_0x26bd22&&_0x251d6b)return;const _0x5adf99=_0x5a6655[_0xc5f2('0xd5')](_0x1f92cb,_0x50b770),_0x54d935=_0x5df1dd[_0xc5f2('0x16')](_0x1d5391),_0x3a50a7=new _0x129f34({'author':_0x54d935,'type':_0xc5f2('0x4e')==_0x5b3cfb||_0xc5f2('0x59')==_0x5b3cfb?_0xc5f2('0x2f'):'remove','data':{'isSuggestion':_0xc5f2('0x59')==_0x5b3cfb||_0xc5f2('0x4f')==_0x5b3cfb},'createdAt':new Date()});_0x3b6290[_0xc5f2('0x39')](_0x3a50a7),_0x2bc7a9[_0xc5f2('0x63')][_0xc5f2('0xcf')]('revision:'+_0x3a50a7['id'],_0x5adf99);}function _0x332187(_0x410b1c,_0x5b51fd){const _0x17bc33=_0x410b1c[_0xc5f2('0xee')](),_0x261356=_0x5b51fd['getAttributes']();for(const _0x9593d9 of _0x17bc33){if(_0x9593d9[0x1]!==_0x5b51fd['getAttribute'](_0x9593d9[0x0]))return!0x1;_0x261356[_0xc5f2('0xf')]();}return _0x261356['next']()[_0xc5f2('0x31')];}}[_0xc5f2('0x77')](){this[_0xc5f2('0xe0')]['conversion'][_0xc5f2('0xe9')](_0xc5f2('0x60'))[_0xc5f2('0x28')]({'view':_0xc5f2('0x10c')}),this[_0xc5f2('0xe0')]['conversion'][_0xc5f2('0xe9')](_0xc5f2('0xc5'))[_0xc5f2('0xc')]({'model':_0xc5f2('0x10c'),'view':_0x58a7a0=>{const _0x3f81ef=_0x58a7a0[_0xc5f2('0x1d')]['split'](':')[0x1],_0x3ff293=this[_0xc5f2('0xec')](_0x3f81ef);if(!_0x3ff293)return null;const _0x2e9883=_0xc5f2('0x2f')==_0x3ff293['type']?'insertion':_0xc5f2('0xe1'),_0x360c12=['ck-suggestion-marker',_0xc5f2('0x2b')+_0x2e9883];return _0x3ff293[_0xc5f2('0x3e')][_0xc5f2('0x75')]&&_0x360c12[_0xc5f2('0x39')]('ck-suggestion-marker-'+_0x2e9883+_0xc5f2('0x37')),this[_0xc5f2('0xa3')]==_0x3ff293&&_0x360c12[_0xc5f2('0x39')](_0xc5f2('0xe')),{'classes':_0x360c12,'attributes':{'data-change-id':_0x3f81ef}};}}),this['editor'][_0xc5f2('0x80')][_0xc5f2('0xe9')](_0xc5f2('0x60'))[_0xc5f2('0x2f')](_0x179870=>{_0x179870['on'](_0xc5f2('0xb5'),(_0x577a09,_0x3921e0,_0x21a5f3)=>{const _0x4612f2=_0x3921e0[_0xc5f2('0xfc')]['getChild'](0x0);if(!_0x4612f2||!_0x4612f2['is'](_0xc5f2('0xfb'),'code'))return;if(!_0x21a5f3['consumable'][_0xc5f2('0x7d')](_0x4612f2,{'attributes':[_0xc5f2('0x66'),_0xc5f2('0x42')]}))return;const _0x368d30=_0x3921e0[_0xc5f2('0xe7')]['start'][_0xc5f2('0xc2')];_0x21a5f3[_0xc5f2('0x9a')]['setAttribute'](_0xc5f2('0x66'),_0x4612f2[_0xc5f2('0x51')](_0xc5f2('0x66')),_0x368d30),_0x21a5f3[_0xc5f2('0x9a')][_0xc5f2('0x86')](_0xc5f2('0x42'),_0x4612f2[_0xc5f2('0x51')](_0xc5f2('0x42')),_0x368d30);},{'priority':_0xc5f2('0x52')});}),this[_0xc5f2('0xe0')]['conversion'][_0xc5f2('0xe9')](_0xc5f2('0x60'))['add'](_0x452daf=>{_0x452daf['on'](_0xc5f2('0xfb'),(_0x3a6f33,_0x56cacb,_0x55a388)=>{if(!_0x55a388[_0xc5f2('0xd1')][_0xc5f2('0x7d')](_0x56cacb[_0xc5f2('0xfc')],{'attributes':[_0xc5f2('0x66'),'vid_end']}))return;if(_0x56cacb['modelRange'][_0xc5f2('0xa9')])return;const _0x388c2d=_0x56cacb[_0xc5f2('0xe7')][_0xc5f2('0x8')]['nodeAfter'];_0x388c2d[_0xc5f2('0x2')]('vid_start')||_0x388c2d[_0xc5f2('0x2')](_0xc5f2('0x64'))||(_0x55a388[_0xc5f2('0x9a')]['setAttribute'](_0xc5f2('0x66'),_0x56cacb[_0xc5f2('0xfc')]['getAttribute'](_0xc5f2('0x66')),_0x388c2d),_0x55a388[_0xc5f2('0x9a')]['setAttribute'](_0xc5f2('0x42'),_0x56cacb[_0xc5f2('0xfc')][_0xc5f2('0x51')](_0xc5f2('0x42')),_0x388c2d));},{'priority':_0xc5f2('0x52')});}),this[_0xc5f2('0xe0')][_0xc5f2('0x80')][_0xc5f2('0xe9')]('upcast')[_0xc5f2('0x71')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0xc5f2('0x64'),'value':_0x373c5a=>_0x373c5a[_0xc5f2('0x51')](_0xc5f2('0x64'))}}),this[_0xc5f2('0xe0')][_0xc5f2('0xb7')][_0xc5f2('0x6')]['on'](_0xc5f2('0x78'),(_0x40438a,[,_0x1d353b])=>{[_0xc5f2('0x66'),'vid_end',_0xc5f2('0x64')][_0xc5f2('0x72')](_0x1d353b)&&(_0x40438a[_0xc5f2('0xd')]=!0x0,_0x40438a[_0xc5f2('0x98')]());},{'priority':_0xc5f2('0x82')}),this['editor'][_0xc5f2('0x80')][_0xc5f2('0xe9')](_0xc5f2('0xb3'))['add'](_0x32e793=>{_0x32e793['on'](_0xc5f2('0x36'),(_0x1a6a31,_0x3b8508,_0x39deab)=>{if('\x20'!=_0x3b8508[_0xc5f2('0xed')][_0xc5f2('0x3e')]||_0x3b8508[_0xc5f2('0xed')][_0xc5f2('0xaf')]['maxOffset']>0x1)return;if(!_0x39deab['consumable'][_0xc5f2('0x7d')](_0x3b8508['item'],_0x1a6a31[_0xc5f2('0x7e')]))return;const _0x25bd20=_0x39deab[_0xc5f2('0x9a')],_0x1eaf3c=_0x39deab[_0xc5f2('0x70')][_0xc5f2('0x10')](_0x3b8508['range']);_0x25bd20[_0xc5f2('0x6c')](_0x1eaf3c,_0x25bd20[_0xc5f2('0x9b')](_0xc5f2('0x54')));});}),this[_0xc5f2('0xe0')][_0xc5f2('0x80')]['for'](_0xc5f2('0xb3'))['markerToData']({'model':'revision'}),this['editor'][_0xc5f2('0xbc')][_0xc5f2('0x8a')]['on'](_0xc5f2('0x2a'),function(_0xac426a){const _0x5e7c2f=_0xac426a[_0xc5f2('0x35')][_0xc5f2('0x16')](_0xc5f2('0x26'));return(_0x5e626f,_0x525e85,_0x136acd)=>{const _0xa0b8af=_0x525e85['markerName'][_0xc5f2('0x94')](':')[0x1],_0x5c0c12=_0x5e7c2f['_getChangeFromId'](_0xa0b8af);if(!_0x5c0c12)return null;const _0x1b86e3=_0xc5f2('0x2f')==_0x5c0c12['type']?_0xc5f2('0x94'):_0xc5f2('0xa');if(!_0x136acd[_0xc5f2('0xd1')][_0xc5f2('0x5c')](_0x525e85['markerRange'],_0x5e626f[_0xc5f2('0x7e')]))return;const _0xec0e29=_0x525e85[_0xc5f2('0xf1')][_0xc5f2('0xea')](),_0x2f5535=_0x525e85[_0xc5f2('0xf1')][_0xc5f2('0x8')],_0xa10c33=_0xac426a[_0xc5f2('0xb7')][_0xc5f2('0x6')];let _0x27b387=null,_0x5ba2ad=null,_0x311c39=!0x1,_0x1827bc=!0x1;for(const _0xaf8d86 of _0xec0e29){const _0x51e562=_0xaf8d86[_0xc5f2('0xed')];_0x311c39=_0x311c39||_0xa10c33['isContent'](_0x51e562);const _0x476dbd=_0x136acd[_0xc5f2('0x70')][_0xc5f2('0xd3')](_0x51e562);if(_0x476dbd&&_0x476dbd[_0xc5f2('0xf2')](_0xc5f2('0x7f')))return;_0xc5f2('0xe6')==_0xaf8d86['type']&&(_0xa10c33[_0xc5f2('0x10f')](_0x51e562)&&!_0xa10c33[_0xc5f2('0x53')](_0x51e562)&&(_0x51e562[_0xc5f2('0xc8')]||_0x2f5535['isAtEnd']?_0x27b387&&_0x27b387[_0xc5f2('0xaf')]==_0x51e562||(_0x27b387=_0x51e562,_0x2d9154(_0xaf8d86[_0xc5f2('0x9c')]),_0x1827bc=!0x0):_0x5ba2ad=_0x5ba2ad||_0xaf8d86[_0xc5f2('0x9c')]));}function _0x2d9154(_0x4c59e4){const _0x14392d=_0x136acd[_0xc5f2('0x9a')][_0xc5f2('0xd7')]('span',{'class':_0xc5f2('0x2b')+_0x1b86e3}),_0x796cc3=_0x136acd['mapper'][_0xc5f2('0x5f')](_0x4c59e4);_0x5c0c12[_0xc5f2('0x3e')][_0xc5f2('0x75')]&&_0x136acd[_0xc5f2('0x9a')]['addClass'](_0xc5f2('0x2b')+_0x1b86e3+_0xc5f2('0x37'),_0x14392d),_0x5e7c2f[_0xc5f2('0xa3')]==_0x5c0c12&&_0x136acd[_0xc5f2('0x9a')][_0xc5f2('0x102')](_0xc5f2('0xe'),_0x14392d),_0x136acd[_0xc5f2('0x9a')][_0xc5f2('0xab')](_0x796cc3,_0x14392d),_0x136acd['mapper'][_0xc5f2('0x73')](_0x14392d,_0x525e85[_0xc5f2('0x1d')]);}_0x311c39||_0x1827bc||!_0x5ba2ad||_0x2d9154(_0x5ba2ad);};}(this[_0xc5f2('0xe0')]),{'priority':_0xc5f2('0xb4')}),this[_0xc5f2('0xe0')]['editing']['downcastDispatcher']['on'](_0xc5f2('0xdf'),(_0x1ba45a,_0x50e8a3,_0x507226)=>{const _0x27511b=_0x507226[_0xc5f2('0x70')][_0xc5f2('0x46')](_0x50e8a3['markerName']);if(_0x27511b)for(const _0x4a55b0 of _0x27511b)(_0x4a55b0[_0xc5f2('0xbe')]('ck-suggestion-marker-split')||_0x4a55b0[_0xc5f2('0xbe')](_0xc5f2('0x7')))&&(_0x507226[_0xc5f2('0x70')][_0xc5f2('0x27')](_0x4a55b0,_0x50e8a3[_0xc5f2('0x1d')]),_0x507226['writer'][_0xc5f2('0x89')](_0x4a55b0));},{'priority':_0xc5f2('0xb4')}),this[_0xc5f2('0xe0')]['editing'][_0xc5f2('0x8a')]['on']('addMarker:revision',(_0x268a61,_0x2ecacd,_0x126990)=>{const _0x2e8947=_0x2ecacd[_0xc5f2('0x1d')]['split'](':')[0x1],_0x5588d8=this[_0xc5f2('0xec')](_0x2e8947);if(!_0x5588d8)return null;const _0x412a40='add'==_0x5588d8[_0xc5f2('0x3f')]?_0xc5f2('0x94'):_0xc5f2('0xa');if(_0x126990['consumable'][_0xc5f2('0x5c')](_0x2ecacd[_0xc5f2('0xf1')],_0x268a61['name']))for(const _0x3e3c6c of _0x2ecacd[_0xc5f2('0xf1')][_0xc5f2('0x38')]()){if(!_0x3e3c6c['is'](_0xc5f2('0xfb'),'softBreak'))continue;const _0x916a40=_0x126990[_0xc5f2('0x9a')][_0xc5f2('0xd7')]('span',{'class':_0xc5f2('0x2b')+_0x412a40}),_0x53bc09=_0x126990[_0xc5f2('0x70')][_0xc5f2('0x5f')](this[_0xc5f2('0xe0')]['model'][_0xc5f2('0xa2')](_0x3e3c6c));_0x5588d8[_0xc5f2('0x3e')][_0xc5f2('0x75')]&&_0x126990[_0xc5f2('0x9a')]['addClass']('ck-suggestion-marker-'+_0x412a40+'-new',_0x916a40),this[_0xc5f2('0xa3')]==_0x5588d8&&_0x126990[_0xc5f2('0x9a')][_0xc5f2('0x102')](_0xc5f2('0xe'),_0x916a40),_0x126990['writer'][_0xc5f2('0xab')](_0x53bc09,_0x916a40),_0x126990['mapper'][_0xc5f2('0x73')](_0x916a40,_0x2ecacd[_0xc5f2('0x1d')]);}},{'priority':_0xc5f2('0xb4')}),this['editor'][_0xc5f2('0x80')][_0xc5f2('0xe9')]('upcast')['dataToMarker']({'view':'comment','model':_0x2962e2=>'revision-comment:'+_0x2962e2,'converterPriority':'highest'}),this['editor'][_0xc5f2('0x80')]['for'](_0xc5f2('0x60'))['dataToMarker']({'view':'suggestion','model':_0x12b9ba=>_0xc5f2('0x48')+_0x12b9ba,'converterPriority':_0xc5f2('0x82')}),this[_0xc5f2('0xe0')][_0xc5f2('0x80')]['for'](_0xc5f2('0xb3'))['markerToData']({'model':_0xc5f2('0x4c'),'view':_0x475d2d=>({'name':'suggestion:'+_0x475d2d,'group':'revision-suggestion'}),'converterPriority':_0xc5f2('0x82')}),this[_0xc5f2('0xe0')][_0xc5f2('0x80')][_0xc5f2('0xe9')](_0xc5f2('0xc5'))['markerToHighlight']({'model':'revision-suggestion','view':_0x1a7343=>{const _0x30cf2f=_0x1a7343[_0xc5f2('0x1d')][_0xc5f2('0x94')](':')[0x1];return'insertion'!=_0x30cf2f&&_0xc5f2('0xe1')!=_0x30cf2f?null:{'classes':[_0xc5f2('0x10a'),_0xc5f2('0x67')+_0x30cf2f]};}}),this['editor'][_0xc5f2('0xbc')][_0xc5f2('0x8a')]['on'](_0xc5f2('0xb6'),Q(this[_0xc5f2('0xe0')],'merge'),{'priority':'high'}),this[_0xc5f2('0xe0')][_0xc5f2('0xbc')][_0xc5f2('0x8a')]['on'](_0xc5f2('0xeb'),Q(this[_0xc5f2('0xe0')],_0xc5f2('0x94')),{'priority':_0xc5f2('0xb4')}),this[_0xc5f2('0xe0')]['editing'][_0xc5f2('0x8a')]['on'](_0xc5f2('0xc4'),(_0x1b8d14,_0x477798,_0x516c1a)=>{const _0x4284bc=_0x516c1a[_0xc5f2('0x70')]['markerNameToElements'](_0x477798[_0xc5f2('0x1d')]);if(_0x4284bc)for(const _0x372d22 of _0x4284bc)_0x372d22['is']('uiElement')&&(_0x516c1a[_0xc5f2('0x70')]['unbindElementFromMarkerName'](_0x372d22,_0x477798[_0xc5f2('0x1d')]),_0x516c1a[_0xc5f2('0x9a')][_0xc5f2('0x89')](_0x372d22));},{'priority':_0xc5f2('0xb4')});}[_0xc5f2('0xec')](_0x1d9b02){return this['_changeIdToChange'][_0xc5f2('0x16')](_0x1d9b02);}[_0xc5f2('0xbf')](_0x544854){return this['_changeView']&&this[_0xc5f2('0x9e')][_0xc5f2('0x5a')](),this[_0xc5f2('0x9e')]=new _0x4de06a(this[_0xc5f2('0xe0')][_0xc5f2('0x76')],_0x544854),this[_0xc5f2('0x9e')];}[_0xc5f2('0xa8')](){this[_0xc5f2('0xe0')][_0xc5f2('0xb7')]['document'][_0xc5f2('0x18')]['observeMarkers'](_0xc5f2('0x10c')),this['on'](_0xc5f2('0x106'),(_0x5bb06a,_0x122cb7,_0x20825c,_0x5c657c)=>{_0x5c657c&&this[_0xc5f2('0xdd')][_0xc5f2('0x89')](_0x5c657c),_0x20825c&&(this['_balloon'][_0xc5f2('0x2f')]({'view':_0x20825c,'stackId':_0xc5f2('0x6a'),'position':{'target':()=>{const _0x31271e=this[_0xc5f2('0xe0')][_0xc5f2('0xbc')],_0x21e2d9=this[_0xc5f2('0xe0')][_0xc5f2('0xb7')]['markers'][_0xc5f2('0x16')](_0xc5f2('0x3')+_0x20825c[_0xc5f2('0xdb')]),_0xece500=Array[_0xc5f2('0x33')](_0x31271e[_0xc5f2('0x70')][_0xc5f2('0x46')](_0x21e2d9[_0xc5f2('0x7e')]))[_0xc5f2('0x3a')](_0x4c5184=>_0x31271e[_0xc5f2('0x5d')][_0xc5f2('0xce')][_0xc5f2('0x8b')](_0x4c5184))['map'](_0x4be0ac=>Array[_0xc5f2('0x33')](_0x4be0ac[_0xc5f2('0x40')]()))['flat']();if(!this[_0xc5f2('0xf4')])return _0xece500[0x0];return _0xece500[_0xc5f2('0x5b')](_0x5f4d20=>_0x5f4d20['top']-0x3<=this[_0xc5f2('0xf4')]['y']&&_0x5f4d20[_0xc5f2('0x99')]+0x3>=this[_0xc5f2('0xf4')]['y']&&_0x5f4d20[_0xc5f2('0xd2')]-0x3<=this[_0xc5f2('0xf4')]['x']&&_0x5f4d20[_0xc5f2('0x20')]+0x3>=this[_0xc5f2('0xf4')]['x'])||_0xece500[0x0];}}}),this[_0xc5f2('0xdd')]['showStack']('revisionHistoryLabel'));}),this['on'](_0xc5f2('0x4a'),(_0x45eaea,_0x55e427,_0x3cdcbf,_0x2ebd6e)=>{this[_0xc5f2('0x6e')]=_0x3cdcbf?this['_getViewForChange'](_0x3cdcbf):null,this[_0xc5f2('0xe0')]['model'][_0xc5f2('0xfe')](()=>{const _0x14f8ac=this[_0xc5f2('0xe0')][_0xc5f2('0xbc')];_0x2ebd6e&&_0x14f8ac[_0xc5f2('0x12')](_0xc5f2('0x3')+_0x2ebd6e['id']),_0x3cdcbf&&_0x14f8ac['reconvertMarker']('revision:'+_0x3cdcbf['id']);});}),this[_0xc5f2('0xc1')](this[_0xc5f2('0xe0')][_0xc5f2('0xbc')]['view'][_0xc5f2('0xf6')],_0xc5f2('0x10e'),(_0x33255d,_0x90af64)=>{if(this[_0xc5f2('0xa3')])return;const _0x40a379=this[_0xc5f2('0x8c')](_0x90af64[_0xc5f2('0xa1')]),_0x42be5c=this[_0xc5f2('0xfa')][_0xc5f2('0x16')](_0x40a379);_0x42be5c?(this[_0xc5f2('0xf4')]={'x':_0x90af64['domEvent']['x'],'y':_0x90af64[_0xc5f2('0x3c')]['y']},this[_0xc5f2('0x6e')]=this['_getViewForChange'](_0x42be5c)):(this[_0xc5f2('0xf4')]=null,this['activeView']=null);}),this[_0xc5f2('0xc1')](this[_0xc5f2('0xe0')][_0xc5f2('0xbc')]['view'][_0xc5f2('0xf6')],'mousedown',(_0x44edd6,_0x6d2af2)=>{const _0x4a0e2c=this[_0xc5f2('0x8c')](_0x6d2af2['target']),_0x1b789c=this[_0xc5f2('0xfa')][_0xc5f2('0x16')](_0x4a0e2c);_0x1b789c?(this[_0xc5f2('0xf4')]={'x':_0x6d2af2[_0xc5f2('0x3c')]['x'],'y':_0x6d2af2[_0xc5f2('0x3c')]['y']},_0x1b789c===this['activeChange']?this[_0xc5f2('0xdd')]['updatePosition']():this[_0xc5f2('0xa3')]=_0x1b789c):(this['_activeViewTarget']=null,this[_0xc5f2('0xa3')]=null);});}[_0xc5f2('0x8c')](_0x563b7e){do{const _0x20e065=_0x563b7e[_0xc5f2('0x51')](_0xc5f2('0x74'));if(_0x20e065)return _0x20e065;_0x563b7e=_0x563b7e[_0xc5f2('0xaf')];}while(_0x563b7e);return null;}['_cleanMarkers'](){this[_0xc5f2('0xe0')][_0xc5f2('0xb7')][_0xc5f2('0xfe')](_0x4c916d=>{for(const _0x5016ce of this[_0xc5f2('0xe0')][_0xc5f2('0xb7')][_0xc5f2('0x63')])_0x4c916d[_0xc5f2('0x6b')](_0x5016ce);});}}function Q(_0x2f5726,_0x5e8fc7){return(_0x57c976,_0x3afff7,_0x539bcb)=>{if(!_0x539bcb['consumable'][_0xc5f2('0x5c')](_0x3afff7[_0xc5f2('0xf1')],_0x57c976['name']))return;const _0xa161e9=_0x3afff7['markerRange'][_0xc5f2('0xea')](),_0x3e5e1c=_0x3afff7['markerRange'][_0xc5f2('0x8')],_0x7ee0c=_0x2f5726[_0xc5f2('0xb7')][_0xc5f2('0x6')];let _0x62ab29=null,_0x34af77=null,_0x385962=!0x1,_0x1c419d=!0x1;for(const _0x55b820 of _0xa161e9){const _0xf5244c=_0x55b820[_0xc5f2('0xed')];_0x385962=_0x385962||_0x7ee0c[_0xc5f2('0x93')](_0xf5244c);const _0x2347e7=_0x539bcb[_0xc5f2('0x70')]['toViewElement'](_0xf5244c);if(_0x2347e7&&_0x2347e7[_0xc5f2('0xf2')]('addHighlight'))return;'elementEnd'==_0x55b820[_0xc5f2('0x3f')]&&(_0x7ee0c[_0xc5f2('0x10f')](_0xf5244c)&&!_0x7ee0c[_0xc5f2('0x53')](_0xf5244c)&&(_0xf5244c['nextSibling']||_0x3e5e1c[_0xc5f2('0xae')]?_0x62ab29&&_0x62ab29[_0xc5f2('0xaf')]==_0xf5244c||(_0x62ab29=_0xf5244c,_0x460a64(_0x55b820[_0xc5f2('0x9c')]),_0x1c419d=!0x0):_0x34af77=_0x34af77||_0x55b820['previousPosition']));}function _0x460a64(_0x3fd968){const _0x18dde5=_0x539bcb[_0xc5f2('0x70')][_0xc5f2('0x5f')](_0x3fd968),_0x48cef4=_0x539bcb[_0xc5f2('0x9a')][_0xc5f2('0xd7')](_0xc5f2('0x54'),{'class':_0xc5f2('0x67')+_0x5e8fc7});_0x539bcb[_0xc5f2('0x9a')][_0xc5f2('0xab')](_0x18dde5,_0x48cef4),_0x539bcb[_0xc5f2('0x70')]['bindElementToMarker'](_0x48cef4,_0x3afff7[_0xc5f2('0x1d')]);}_0x385962||_0x1c419d||!_0x34af77||_0x460a64(_0x34af77);};}export class RestoreRevisionCommand extends _0x4f7e50{constructor(_0x4f8d26){super(_0x4f8d26);const _0x3a5a9f=_0x4f8d26[_0xc5f2('0x35')][_0xc5f2('0x16')](y);this[_0xc5f2('0x95')](_0x4f8d26,_0xc5f2('0x65')),this[_0xc5f2('0x13')](_0xc5f2('0xd8')),this[_0xc5f2('0xc1')](_0x3a5a9f,'change:isReady',()=>this[_0xc5f2('0x61')]()),this[_0xc5f2('0xc1')](_0x3a5a9f,_0xc5f2('0xc9'),()=>this[_0xc5f2('0x61')]());}['execute'](){const _0x21f7f2=this[_0xc5f2('0xe0')],_0x2c7c9a=_0x21f7f2[_0xc5f2('0x35')][_0xc5f2('0x16')](y),_0x4c1957=_0x2c7c9a['isReady']?_0x2c7c9a[_0xc5f2('0x11')][_0xc5f2('0x91')]:null;_0x21f7f2[_0xc5f2('0x90')][_0xc5f2('0x16')](_0xc5f2('0x107'))['restoreRevisionCallback'](_0x4c1957);}[_0xc5f2('0x61')](){const {isReady:_0x18d788,isEnabled:_0x400054}=this[_0xc5f2('0xe0')]['plugins'][_0xc5f2('0x16')](y);this[_0xc5f2('0x109')]=_0x18d788&&_0x400054;}}export class ShowChangeCommand extends _0x4f7e50{constructor(_0x214b1c,{direction:_0x18ede4}){super(_0x214b1c);const _0x39e16f=_0x214b1c[_0xc5f2('0x35')][_0xc5f2('0x16')](y);this['stopListening'](_0x214b1c,'change:isReadOnly'),this[_0xc5f2('0x13')](_0xc5f2('0xd8')),this['_step']=_0xc5f2('0x3d')===_0x18ede4?0x1:-0x1,this[_0xc5f2('0xc1')](_0x39e16f,_0xc5f2('0xc7'),()=>this[_0xc5f2('0x61')]()),this[_0xc5f2('0xc1')](_0x39e16f,_0xc5f2('0xc9'),()=>this[_0xc5f2('0x61')]());}[_0xc5f2('0x45')](){const _0x1d884a=this[_0xc5f2('0xe0')],_0x3835a=_0x1d884a['plugins'][_0xc5f2('0x16')](y),{isNavigationMode:_0x3f2b88,currentChangeNumber:_0x4f34d4}=_0x3835a;_0x3835a[_0xc5f2('0xa3')]=_0x3f2b88?_0x3835a[_0xc5f2('0x11')]['changes']['get'](_0x4f34d4+this[_0xc5f2('0x56')]):_0x3835a[_0xc5f2('0x11')]['changes'][_0xc5f2('0xa5')];const _0x41ee14=_0x1d884a[_0xc5f2('0xb7')][_0xc5f2('0x63')]['get'](_0xc5f2('0x3')+_0x3835a['activeChange']['id']),_0x2d3b45=_0x11e2f9(_0x1d884a[_0xc5f2('0xbc')],_0x41ee14);_0x1c7f51({'target':_0x2d3b45,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x13a37d,currentChangeNumber:_0x52a9fc,numberOfChanges:_0x1e9acf,isReady:_0x577ca2,isEnabled:_0x4046fc}=this[_0xc5f2('0xe0')][_0xc5f2('0x35')]['get'](y);this[_0xc5f2('0x109')]=!!(_0x4046fc&&_0x577ca2&&_0x1e9acf)&&(!_0x13a37d||(0x1===this[_0xc5f2('0x56')]?_0x52a9fc<_0x1e9acf-0x1:_0x52a9fc>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd4d0=['function','children','find','map','first','execute','model','ck-on','bind','isActionsDropdownOpen','change:isActionsDropdownOpen','name','source','Show\x20more\x20items','class','add','_action','listenTo','stopPropagation','bindTemplate','action','extendTemplate','Compare\x20against\x20selected','isVisible','locale','button','listView','isOpen','isEnabled','isReady','items'];(function(_0x24fa96,_0xd4d0e8){const _0x590f69=function(_0xe64311){while(--_0xe64311){_0x24fa96['push'](_0x24fa96['shift']());}};_0x590f69(++_0xd4d0e8);}(_0xd4d0,0xff));const _0x590f=function(_0x24fa96,_0xd4d0e8){_0x24fa96=_0x24fa96-0x0;let _0x590f69=_0xd4d0[_0x24fa96];return _0x590f69;};import{Collection as _0x2520ef}from'ckeditor5/src/utils';import{icons as _0x5aa2ae}from'ckeditor5/src/core';import{Model as _0x54865d,addListToDropdown as _0x2cf067,createDropdown as _0x148bf0}from'ckeditor5/src/ui';import{getTranslation as _0x1359bd}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x10960c,_0x44ce62){const _0x4f8fac=_0x10960c[_0x590f('0xc')],_0x26c36d=_0x10960c['locale'],_0x559030=_0x148bf0(_0x26c36d);_0x559030['panelPosition']='sw';const _0x461853=function(_0x5acc31,_0x2b7de6){const _0x121915=function(_0xd2ee60,_0x439137){const _0x316fcf=_0xd2ee60[_0x590f('0x11')],_0x3135cc={'Compare\x20against\x20selected':_0x1359bd(_0x316fcf,_0x590f('0xf')),'Name\x20this\x20revision':_0x1359bd(_0x316fcf,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x1359bd(_0x316fcf,'Restore\x20this\x20revision')};return _0x439137[_0x590f('0x1b')](_0x200f9f=>{const _0x39a485=_0x3135cc[_0x200f9f[_0x590f('0x4')]];return _0x39a485&&_0x39a485!==_0x200f9f[_0x590f('0x4')]&&(_0x200f9f[_0x590f('0x4')]=_0x39a485),_0x200f9f;});}(_0x5acc31,_0x2b7de6),_0x10b677=new _0x2520ef();for(const _0x3c7fb2 of _0x121915){const _0x486b4c={'type':_0x590f('0x12'),'model':new _0x54865d({'label':_0x3c7fb2['name'],'class':_0x3c7fb2[_0x590f('0x7')],'withText':!0x0,'_action':_0x3c7fb2[_0x590f('0xd')]})};_0x486b4c[_0x590f('0x1e')][_0x590f('0x1')](_0x590f('0x15'))['to'](_0x5acc31,_0x590f('0x2'),_0x507658=>_0x590f('0x18')!=typeof _0x3c7fb2[_0x590f('0x15')]||(!_0x507658||_0x3c7fb2[_0x590f('0x15')](_0x5acc31))),_0x10b677[_0x590f('0x8')](_0x486b4c);}return _0x10b677;}(_0x10960c,_0x44ce62);return _0x10960c[_0x590f('0x1')]('isActionsDropdownOpen')['to'](_0x559030,_0x590f('0x14')),_0x559030['buttonView']['set']({'label':_0x1359bd(_0x26c36d,_0x590f('0x6')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5aa2ae['threeVerticalDots']}),_0x559030[_0x590f('0xe')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4f8fac['if'](_0x590f('0x2'),_0x590f('0x0'))]},'on':{'click':_0x4f8fac['to'](_0x174476=>_0x174476[_0x590f('0xb')]())}}),_0x559030['on'](_0x590f('0x1d'),_0x4aa889=>{_0x10960c[_0x590f('0x16')]&&_0x590f('0x18')==typeof _0x4aa889['source'][_0x590f('0x9')]&&_0x4aa889[_0x590f('0x5')][_0x590f('0x9')](_0x10960c);}),_0x2cf067(_0x559030,_0x461853),_0x559030[_0x590f('0xa')](_0x10960c,_0x590f('0x3'),(_0x44a806,_0x5c0d90,_0x417ecc)=>{if(_0x417ecc)for(const _0x5c5042 of _0x559030[_0x590f('0x13')][_0x590f('0x17')]){const _0x4a2922=_0x5c5042[_0x590f('0x19')][_0x590f('0x1c')],_0x2552be=_0x44ce62[_0x590f('0x1a')](_0x373a07=>_0x373a07[_0x590f('0xd')]===_0x4a2922[_0x590f('0x9')])['isVisible'];_0x5c5042[_0x590f('0x10')]=void 0x0===_0x2552be||_0x2552be(_0x10960c);}}),_0x559030;}
23
+ const _0x4eeb=['threeVerticalDots','locale','Show\x20more\x20items','function','buttonView','ck-revision-history-sidebar__revision__actions','bind','isEnabled','action','listenTo','children','map','_action','name','extendTemplate','add','Compare\x20against\x20selected','isVisible','source','button','class','model','panelPosition','isActionsDropdownOpen','bindTemplate','find','items','set'];(function(_0x25dcb8,_0x4eeb15){const _0x1cd71e=function(_0x32567c){while(--_0x32567c){_0x25dcb8['push'](_0x25dcb8['shift']());}};_0x1cd71e(++_0x4eeb15);}(_0x4eeb,0x103));const _0x1cd7=function(_0x25dcb8,_0x4eeb15){_0x25dcb8=_0x25dcb8-0x0;let _0x1cd71e=_0x4eeb[_0x25dcb8];return _0x1cd71e;};import{Collection as _0x1ec035}from'ckeditor5/src/utils';import{icons as _0x5113c9}from'ckeditor5/src/core';import{Model as _0x3b3e59,addListToDropdown as _0x3f4e6b,createDropdown as _0x151e08}from'ckeditor5/src/ui';import{getTranslation as _0x236acb}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x49b24b,_0x5e1757){const _0x4605f9=_0x49b24b[_0x1cd7('0x11')],_0x3ef025=_0x49b24b[_0x1cd7('0x16')],_0x5c1247=_0x151e08(_0x3ef025);_0x5c1247[_0x1cd7('0xf')]='sw';const _0x2b219b=function(_0x1c6cd7,_0x203f85){const _0x77d170=function(_0x5bd061,_0x2098d4){const _0xcaafc=_0x5bd061['locale'],_0xf041b7={'Compare\x20against\x20selected':_0x236acb(_0xcaafc,_0x1cd7('0x9')),'Name\x20this\x20revision':_0x236acb(_0xcaafc,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x236acb(_0xcaafc,'Restore\x20this\x20revision')};return _0x2098d4[_0x1cd7('0x4')](_0x269e7d=>{const _0x5384d6=_0xf041b7[_0x269e7d[_0x1cd7('0x6')]];return _0x5384d6&&_0x5384d6!==_0x269e7d[_0x1cd7('0x6')]&&(_0x269e7d[_0x1cd7('0x6')]=_0x5384d6),_0x269e7d;});}(_0x1c6cd7,_0x203f85),_0x726f45=new _0x1ec035();for(const _0x329968 of _0x77d170){const _0x71274c={'type':_0x1cd7('0xc'),'model':new _0x3b3e59({'label':_0x329968[_0x1cd7('0x6')],'class':_0x329968[_0x1cd7('0xd')],'withText':!0x0,'_action':_0x329968[_0x1cd7('0x1')]})};_0x71274c[_0x1cd7('0xe')][_0x1cd7('0x1b')](_0x1cd7('0x0'))['to'](_0x1c6cd7,_0x1cd7('0x10'),_0x27370d=>_0x1cd7('0x18')!=typeof _0x329968[_0x1cd7('0x0')]||(!_0x27370d||_0x329968[_0x1cd7('0x0')](_0x1c6cd7))),_0x726f45[_0x1cd7('0x8')](_0x71274c);}return _0x726f45;}(_0x49b24b,_0x5e1757);return _0x49b24b['bind'](_0x1cd7('0x10'))['to'](_0x5c1247,'isOpen'),_0x5c1247[_0x1cd7('0x19')][_0x1cd7('0x14')]({'label':_0x236acb(_0x3ef025,_0x1cd7('0x17')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5113c9[_0x1cd7('0x15')]}),_0x5c1247[_0x1cd7('0x7')]({'attributes':{'class':[_0x1cd7('0x1a'),_0x4605f9['if'](_0x1cd7('0x10'),'ck-on')]},'on':{'click':_0x4605f9['to'](_0x29741a=>_0x29741a['stopPropagation']())}}),_0x5c1247['on']('execute',_0x428b56=>{_0x49b24b['isReady']&&_0x1cd7('0x18')==typeof _0x428b56[_0x1cd7('0xb')]['_action']&&_0x428b56[_0x1cd7('0xb')][_0x1cd7('0x5')](_0x49b24b);}),_0x3f4e6b(_0x5c1247,_0x2b219b),_0x5c1247[_0x1cd7('0x2')](_0x49b24b,'change:isActionsDropdownOpen',(_0x2406ba,_0x3fd325,_0x41d64e)=>{if(_0x41d64e)for(const _0x394f33 of _0x5c1247['listView'][_0x1cd7('0x13')]){const _0xe22146=_0x394f33[_0x1cd7('0x3')]['first'],_0x43df7c=_0x5e1757[_0x1cd7('0x12')](_0x293920=>_0x293920[_0x1cd7('0x1')]===_0xe22146[_0x1cd7('0x5')])[_0x1cd7('0xa')];_0x394f33['isVisible']=void 0x0===_0x43df7c||_0x43df7c(_0x49b24b);}}),_0x5c1247;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x610e=['span','ck-revision-history-sidebar__revision-author__name','Revision\x20author','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author','set','name','setTemplate'];(function(_0xbe9346,_0x610e7e){const _0x106586=function(_0x4ac06a){while(--_0x4ac06a){_0xbe9346['push'](_0xbe9346['shift']());}};_0x106586(++_0x610e7e);}(_0x610e,0x96));const _0x1065=function(_0xbe9346,_0x610e7e){_0xbe9346=_0xbe9346-0x0;let _0x106586=_0x610e[_0xbe9346];return _0x106586;};import{View as _0x29b4be,IconView as _0x9f20c5}from'ckeditor5/src/ui';import{getTranslation as _0x5baba1}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x58c795 from'../../../theme/icons/user.svg';export default class ti extends _0x29b4be{constructor(_0x893d63,_0x5b89fa,_0xf2543a){super(_0x893d63);const _0x4f456e=new _0x9f20c5();_0x4f456e[_0x1065('0x7')]({'content':_0x58c795,'viewBox':_0x1065('0x5')});const _0x2043da=['ck',_0x1065('0x6')];_0xf2543a&&_0x2043da['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5ce84d=[{'tag':_0x1065('0x2'),'attributes':{'class':['ck',_0x1065('0x3')],'title':_0x5baba1(_0x893d63,_0xf2543a?'Revision\x20creator':_0x1065('0x4'))},'children':[_0x4f456e,_0x5b89fa[_0x1065('0x0')]]}];this[_0x1065('0x1')]({'tag':'li','attributes':{'class':_0x2043da},'children':_0x5ce84d});}}
23
+ const _0x6deb=['0\x200\x2011\x2010','span','Revision\x20author','ck-revision-history-sidebar__revision-author__name','name','Revision\x20creator','setTemplate','push','set','ck-revision-history-sidebar__revision-author'];(function(_0x12c379,_0x6deb29){const _0x48a12c=function(_0x560fae){while(--_0x560fae){_0x12c379['push'](_0x12c379['shift']());}};_0x48a12c(++_0x6deb29);}(_0x6deb,0xb2));const _0x48a1=function(_0x12c379,_0x6deb29){_0x12c379=_0x12c379-0x0;let _0x48a12c=_0x6deb[_0x12c379];return _0x48a12c;};import{View as _0x417c8c,IconView as _0x223175}from'ckeditor5/src/ui';import{getTranslation as _0x1cf13f}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x170ff3 from'../../../theme/icons/user.svg';export default class ti extends _0x417c8c{constructor(_0x1b703c,_0x2702e8,_0x2bfc0f){super(_0x1b703c);const _0x2c607b=new _0x223175();_0x2c607b[_0x48a1('0x0')]({'content':_0x170ff3,'viewBox':_0x48a1('0x2')});const _0x22e571=['ck',_0x48a1('0x1')];_0x2bfc0f&&_0x22e571[_0x48a1('0x9')]('ck-revision-history-sidebar__revision-author_creator');const _0x5356ce=[{'tag':_0x48a1('0x3'),'attributes':{'class':['ck',_0x48a1('0x5')],'title':_0x1cf13f(_0x1b703c,_0x2bfc0f?_0x48a1('0x7'):_0x48a1('0x4'))},'children':[_0x2c607b,_0x2702e8[_0x48a1('0x6')]]}];this[_0x48a1('0x8')]({'tag':'li','attributes':{'class':_0x22e571},'children':_0x5356ce});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4107=['set','span','extendTemplate'];(function(_0x3106e5,_0x410710){var _0x47c941=function(_0x1a4db0){while(--_0x1a4db0){_0x3106e5['push'](_0x3106e5['shift']());}};_0x47c941(++_0x410710);}(_0x4107,0x132));var _0x47c9=function(_0x3106e5,_0x410710){_0x3106e5=_0x3106e5-0x0;var _0x47c941=_0x4107[_0x3106e5];return _0x47c941;};import{LabeledFieldView as _0xe25e49}from'ckeditor5/src/ui';import{getTranslation as _0x3a74a3}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0xe25e49{constructor(_0x5b22ac,_0xa779d2){super(_0x5b22ac,_0xa779d2),this[_0x47c9('0x0')]({'label':_0x3a74a3(_0x5b22ac,'Revision\x20name')}),this[_0x47c9('0x2')]({'tag':_0x47c9('0x1'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x5c7d=['set','extendTemplate'];(function(_0x35fead,_0x5c7d36){var _0x588f56=function(_0x518975){while(--_0x518975){_0x35fead['push'](_0x35fead['shift']());}};_0x588f56(++_0x5c7d36);}(_0x5c7d,0x147));var _0x588f=function(_0x35fead,_0x5c7d36){_0x35fead=_0x35fead-0x0;var _0x588f56=_0x5c7d[_0x35fead];return _0x588f56;};import{LabeledFieldView as _0x583be0}from'ckeditor5/src/ui';import{getTranslation as _0x30df59}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x583be0{constructor(_0x39124a,_0x157b74){super(_0x39124a,_0x157b74),this[_0x588f('0x1')]({'label':_0x30df59(_0x39124a,'Revision\x20name')}),this[_0x588f('0x0')]({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4159=['isActionsDropdownOpen','bind','isReady','authors','ck-revision-history-sidebar__actions_dropdown_open','uiLanguage','isSelected','isEnabled','closest','ck-disabled','map','deselect','ck-revision-history-sidebar__revision-wrapper','unhighlight','render','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__controls-wrapper','ck-revision-history-sidebar__revision','select','isHighlighted','ck-reset','creator','ck-revision-history-sidebar__revision-authors','name','div','createdAt','highlight','revisionActionsView','isConfirm','_createdAtFormatted','srcElement','listenTo','fire','setTemplate','set','fieldView','_revision','extendTemplate','setName','placeholder','bindTemplate','from','value','revisionNameView','filter','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','change'];(function(_0x17e521,_0x41597b){const _0x491e60=function(_0x127f6c){while(--_0x127f6c){_0x17e521['push'](_0x17e521['shift']());}};_0x491e60(++_0x41597b);}(_0x4159,0xc8));const _0x491e=function(_0x17e521,_0x41597b){_0x17e521=_0x17e521-0x0;let _0x491e60=_0x4159[_0x17e521];return _0x491e60;};import{View as _0x1b334a,createLabeledInputText as _0x117d5c}from'ckeditor5/src/ui';import{ConfirmMixin as _0x4b9032}from'ckeditor5-collaboration/src/collaboration-core';import _0x1185e4 from'./revisionnameview';import _0x563ff9 from'./revisionauthorview';import{dateToPrettyFormat as _0x4af8b9}from'./utils';import{createActionsDropdownView as _0x1f4d3c}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x4b9032(_0x1b334a){constructor(_0x2c8df0,_0x1dada3,_0x8af9f){super(_0x2c8df0);const _0x3c86e0=this[_0x491e('0x21')],_0x5d83d2=function(_0x506e7d,_0x56a90b){const _0x3d81bd=Array[_0x491e('0x22')](_0x56a90b[_0x491e('0x2b')])[_0x491e('0x25')](_0x370fc3=>_0x370fc3!=_0x56a90b['creator']);return _0x56a90b[_0x491e('0xe')]&&_0x3d81bd['unshift'](_0x56a90b[_0x491e('0xe')]),_0x3d81bd[_0x491e('0x2')](_0x239bed=>new _0x563ff9(_0x506e7d,_0x239bed,_0x239bed==_0x56a90b[_0x491e('0xe')]));}(_0x2c8df0,_0x1dada3);this['id']=_0x1dada3['id'],this[_0x491e('0x1d')]=_0x1dada3,this[_0x491e('0x29')](_0x491e('0x10'),'createdAt')['to'](_0x1dada3),this[_0x491e('0x29')]('_createdAtFormatted')['to'](this,_0x491e('0x12'),_0x2c1c54=>_0x2c1c54?_0x4af8b9(_0x2c8df0[_0x491e('0x2d')],_0x2c1c54):void 0x0),this['set'](_0x491e('0x2e'),!0x1),this['set'](_0x491e('0xc'),!0x1),this[_0x491e('0x1b')]('isActionsDropdownOpen',!0x1),this[_0x491e('0x1b')](_0x491e('0x2a'),!0x1),this['set'](_0x491e('0x2f'),!0x1),this[_0x491e('0x24')]=new _0x1185e4(_0x2c8df0,_0x117d5c),this[_0x491e('0x24')]['fieldView'][_0x491e('0x1e')]({'attributes':{'maxlength':'220'}}),this[_0x491e('0x24')]['fieldView'][_0x491e('0x29')]('value',_0x491e('0x20'))['to'](this,_0x491e('0x10'),_0x491e('0x16')),this['revisionNameView']['bind']('isEnabled')['to'](this,_0x491e('0x2e'),this,_0x491e('0x2f'),(_0x4392b4,_0x3054e5)=>_0x4392b4&&_0x3054e5),this[_0x491e('0x14')]=_0x8af9f&&_0x8af9f['length']?_0x1f4d3c(this,_0x8af9f):'',this['revisionActionsView']&&this['revisionActionsView'][_0x491e('0x29')](_0x491e('0x2f'))['to'](this),this[_0x491e('0x1a')]({'tag':_0x491e('0x11'),'attributes':{'class':['ck','ck-reset',_0x491e('0x4'),_0x3c86e0['if'](_0x491e('0x15'),_0x491e('0x26'))]},'children':[{'tag':_0x491e('0x11'),'attributes':{'class':['ck',_0x491e('0xd'),_0x491e('0xa'),_0x3c86e0['if'](_0x491e('0x2f'),_0x491e('0x1'),_0x349969=>!_0x349969),_0x3c86e0['if'](_0x491e('0x2e'),_0x491e('0x8')),_0x3c86e0['if'](_0x491e('0xc'),'ck-revision-history-sidebar__revision_highlighted'),_0x3c86e0['if'](_0x491e('0x28'),_0x491e('0x2c'))]},'children':[this[_0x491e('0x24')],{'tag':'span','attributes':{'class':['ck',_0x491e('0x7')]},'children':[{'text':_0x3c86e0['to'](_0x491e('0x16'))}]},{'tag':'div','attributes':{'class':['ck',_0x491e('0x9')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x491e('0xf')]},'children':_0x5d83d2}]},this[_0x491e('0x14')]],'on':{'click':_0x3c86e0['to'](_0x1fd99c=>{_0x1fd99c[_0x491e('0x17')][_0x491e('0x0')]('.ck-thread__remove-confirm')||this['isReady']&&this[_0x491e('0x2f')]&&this['fire'](_0x491e('0xb'),{'id':this['id']});})}}]});}['render'](){super[_0x491e('0x6')]();const _0x735a39=this['revisionNameView'][_0x491e('0x1c')]['element'];this[_0x491e('0x18')](_0x735a39,_0x491e('0x27'),()=>{this[_0x491e('0x19')](_0x491e('0x1f'),{'id':this['id'],'name':_0x735a39[_0x491e('0x23')]});});}[_0x491e('0xb')](){this[_0x491e('0x2e')]=!0x0;}[_0x491e('0x3')](){this[_0x491e('0x2e')]=!0x1;}[_0x491e('0x13')](){this[_0x491e('0xc')]=!0x0;}[_0x491e('0x5')](){this[_0x491e('0xc')]=!0x1;}}
23
+ const _0x451f=['highlight','_revision','isConfirm','srcElement','placeholder','setTemplate','ck-revision-history-sidebar__revision-authors','unshift','isReady','bind','createdAt','ck-disabled','listenTo','ck-revision-history-sidebar__actions_dropdown_open','fire','name','220','select','_createdAtFormatted','creator','set','isHighlighted','filter','render','isSelected','value','extendTemplate','ck-revision-history-sidebar__revision','fieldView','change','div','revisionActionsView','ck-revision-history-sidebar__revision__controls-wrapper','map','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision_selected','uiLanguage','from','isEnabled','span','deselect','isActionsDropdownOpen','bindTemplate','authors','revisionNameView','ck-reset','unhighlight','setName'];(function(_0x16be28,_0x451f1c){const _0x437ecf=function(_0x103f33){while(--_0x103f33){_0x16be28['push'](_0x16be28['shift']());}};_0x437ecf(++_0x451f1c);}(_0x451f,0xc3));const _0x437e=function(_0x16be28,_0x451f1c){_0x16be28=_0x16be28-0x0;let _0x437ecf=_0x451f[_0x16be28];return _0x437ecf;};import{View as _0x5ee753,createLabeledInputText as _0x576ece}from'ckeditor5/src/ui';import{ConfirmMixin as _0x161bc2}from'ckeditor5-collaboration/src/collaboration-core';import _0x5a3a75 from'./revisionnameview';import _0x217595 from'./revisionauthorview';import{dateToPrettyFormat as _0x29d330}from'./utils';import{createActionsDropdownView as _0x5410a4}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x161bc2(_0x5ee753){constructor(_0x2c9854,_0xe84602,_0x2b52c0){super(_0x2c9854);const _0x54fb37=this[_0x437e('0x27')],_0x1a2328=function(_0x7f2114,_0x5ea9b3){const _0x8cb600=Array[_0x437e('0x22')](_0x5ea9b3[_0x437e('0x28')])[_0x437e('0x13')](_0x3bf5d2=>_0x3bf5d2!=_0x5ea9b3[_0x437e('0x10')]);return _0x5ea9b3[_0x437e('0x10')]&&_0x8cb600[_0x437e('0x4')](_0x5ea9b3['creator']),_0x8cb600[_0x437e('0x1e')](_0x553bea=>new _0x217595(_0x7f2114,_0x553bea,_0x553bea==_0x5ea9b3[_0x437e('0x10')]));}(_0x2c9854,_0xe84602);this['id']=_0xe84602['id'],this[_0x437e('0x2e')]=_0xe84602,this[_0x437e('0x6')](_0x437e('0xc'),_0x437e('0x7'))['to'](_0xe84602),this[_0x437e('0x6')](_0x437e('0xf'))['to'](this,'createdAt',_0x1148d2=>_0x1148d2?_0x29d330(_0x2c9854[_0x437e('0x21')],_0x1148d2):void 0x0),this[_0x437e('0x11')](_0x437e('0x15'),!0x1),this['set']('isHighlighted',!0x1),this[_0x437e('0x11')]('isActionsDropdownOpen',!0x1),this[_0x437e('0x11')]('isReady',!0x1),this[_0x437e('0x11')](_0x437e('0x23'),!0x1),this[_0x437e('0x29')]=new _0x5a3a75(_0x2c9854,_0x576ece),this[_0x437e('0x29')][_0x437e('0x19')][_0x437e('0x17')]({'attributes':{'maxlength':_0x437e('0xd')}}),this['revisionNameView'][_0x437e('0x19')][_0x437e('0x6')](_0x437e('0x16'),_0x437e('0x1'))['to'](this,'name',_0x437e('0xf')),this['revisionNameView'][_0x437e('0x6')]('isEnabled')['to'](this,_0x437e('0x15'),this,_0x437e('0x23'),(_0x257990,_0xe6c912)=>_0x257990&&_0xe6c912),this[_0x437e('0x1c')]=_0x2b52c0&&_0x2b52c0['length']?_0x5410a4(this,_0x2b52c0):'',this[_0x437e('0x1c')]&&this[_0x437e('0x1c')][_0x437e('0x6')]('isEnabled')['to'](this),this[_0x437e('0x2')]({'tag':_0x437e('0x1b'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x54fb37['if'](_0x437e('0x2f'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x437e('0x1b'),'attributes':{'class':['ck',_0x437e('0x2a'),_0x437e('0x18'),_0x54fb37['if'](_0x437e('0x23'),_0x437e('0x8'),_0x43ce04=>!_0x43ce04),_0x54fb37['if']('isSelected',_0x437e('0x20')),_0x54fb37['if'](_0x437e('0x12'),'ck-revision-history-sidebar__revision_highlighted'),_0x54fb37['if'](_0x437e('0x26'),_0x437e('0xa'))]},'children':[this[_0x437e('0x29')],{'tag':_0x437e('0x24'),'attributes':{'class':['ck',_0x437e('0x1f')]},'children':[{'text':_0x54fb37['to'](_0x437e('0xf'))}]},{'tag':'div','attributes':{'class':['ck',_0x437e('0x1d')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x437e('0x3')]},'children':_0x1a2328}]},this['revisionActionsView']],'on':{'click':_0x54fb37['to'](_0x1110a3=>{_0x1110a3[_0x437e('0x0')]['closest']('.ck-thread__remove-confirm')||this[_0x437e('0x5')]&&this[_0x437e('0x23')]&&this['fire'](_0x437e('0xe'),{'id':this['id']});})}}]});}[_0x437e('0x14')](){super[_0x437e('0x14')]();const _0x13f5b3=this[_0x437e('0x29')][_0x437e('0x19')]['element'];this[_0x437e('0x9')](_0x13f5b3,_0x437e('0x1a'),()=>{this[_0x437e('0xb')](_0x437e('0x2c'),{'id':this['id'],'name':_0x13f5b3[_0x437e('0x16')]});});}[_0x437e('0xe')](){this['isSelected']=!0x0;}[_0x437e('0x25')](){this['isSelected']=!0x1;}[_0x437e('0x2d')](){this[_0x437e('0x12')]=!0x0;}[_0x437e('0x2b')](){this['isHighlighted']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ca4=['click','bindTemplate','true','set','ck-hidden','_isCollapsed','setTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed','false','button','span'];(function(_0x1a7391,_0x5ca47a){const _0x57796d=function(_0x219d15){while(--_0x219d15){_0x1a7391['push'](_0x1a7391['shift']());}};_0x57796d(++_0x5ca47a);}(_0x5ca4,0xd3));const _0x5779=function(_0x1a7391,_0x5ca47a){_0x1a7391=_0x1a7391-0x0;let _0x57796d=_0x5ca4[_0x1a7391];return _0x57796d;};import{View as _0x11f2bb}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x11f2bb{constructor(_0x52b8db){super(_0x52b8db);const _0x266ad1=this[_0x5779('0xa')];this[_0x5779('0x1')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5779('0x4')]({'tag':_0x5779('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x266ad1['if']('isVisible',_0x5779('0x2'),_0x357a8e=>!_0x357a8e),_0x266ad1['if']('_isCollapsed',_0x5779('0x5'))],'role':_0x5779('0x7'),'aria-pressed':_0x266ad1['to'](_0x5779('0x3'),_0x4fcb1c=>_0x4fcb1c?_0x5779('0x6'):_0x5779('0x0'))},'children':[{'tag':_0x5779('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x266ad1['to'](_0x5779('0x9'))}});}['toggle'](){this[_0x5779('0x3')]=!this[_0x5779('0x3')];}}
23
+ const _0x48f5=['set','ck-revision-history-sidebar__subrevision-collapser','true','isVisible','ck-revision-history-sidebar__subrevision-collapser__inner','click','setTemplate','_isCollapsed','button'];(function(_0x234eb5,_0x48f5cc){const _0x534cb9=function(_0x289a6d){while(--_0x289a6d){_0x234eb5['push'](_0x234eb5['shift']());}};_0x534cb9(++_0x48f5cc);}(_0x48f5,0xf8));const _0x534c=function(_0x234eb5,_0x48f5cc){_0x234eb5=_0x234eb5-0x0;let _0x534cb9=_0x48f5[_0x234eb5];return _0x534cb9;};import{View as _0x417e7b}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x417e7b{constructor(_0x31a465){super(_0x31a465);const _0x18c817=this['bindTemplate'];this[_0x534c('0x4')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x534c('0x1')]({'tag':'span','attributes':{'class':['ck',_0x534c('0x5'),_0x18c817['if'](_0x534c('0x7'),'ck-hidden',_0x1e6273=>!_0x1e6273),_0x18c817['if'](_0x534c('0x2'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x534c('0x3'),'aria-pressed':_0x18c817['to'](_0x534c('0x2'),_0x17e2d8=>_0x17e2d8?'false':_0x534c('0x6'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x534c('0x8')]}}],'on':{'click':_0x18c817['to'](_0x534c('0x0'))}});}['toggle'](){this[_0x534c('0x2')]=!this[_0x534c('0x2')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a87=['createdAt','uiLanguage','bindTemplate','span','ck-revision-history-sidebar__subrevision','isSelected','_createdAtFormatted','creator','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__date','select','ck-revision-history-sidebar__revision','bind','ck-revision-history-sidebar__revision-authors','deselect','div','_parentRevisionId'];(function(_0x2c7878,_0x2a87a0){const _0x22b458=function(_0xd6e265){while(--_0xd6e265){_0x2c7878['push'](_0x2c7878['shift']());}};_0x22b458(++_0x2a87a0);}(_0x2a87,0x11e));const _0x22b4=function(_0x2c7878,_0x2a87a0){_0x2c7878=_0x2c7878-0x0;let _0x22b458=_0x2a87[_0x2c7878];return _0x22b458;};import{View as _0x5279bb}from'ckeditor5/src/ui';import _0x4d8420 from'./revisionauthorview';import{dateToPrettyFormat as _0x31212c}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x5279bb{constructor(_0x220675,_0x6443dc,_0x5c8fda){super(_0x220675);const _0x234880=this[_0x22b4('0x5')];this['id']=_0x6443dc['id'],this['bind']('createdAt')['to'](_0x6443dc),this['set'](_0x22b4('0x8'),!0x1),this[_0x22b4('0xf')]('_createdAtFormatted')['to'](this,_0x22b4('0x3'),_0x56fcdc=>_0x56fcdc?_0x31212c(_0x220675[_0x22b4('0x4')],_0x56fcdc):void 0x0),this[_0x22b4('0x2')]=_0x5c8fda,this['setTemplate']({'tag':_0x22b4('0x1'),'attributes':{'class':['ck','ck-reset',_0x22b4('0xe'),_0x22b4('0x7'),_0x234880['if'](_0x22b4('0x8'),_0x22b4('0xb'))]},'children':[{'tag':_0x22b4('0x6'),'attributes':{'class':['ck',_0x22b4('0xc')]},'children':[{'text':_0x234880['to'](_0x22b4('0x9'))}]},{'tag':'ul','attributes':{'class':['ck',_0x22b4('0x10')]},'children':[new _0x4d8420(_0x220675,_0x6443dc[_0x22b4('0xa')],!0x0)]}],'on':{'click':_0x234880['to'](this[_0x22b4('0xd')][_0x22b4('0xf')](this))}});}[_0x22b4('0xd')](){this[_0x22b4('0x8')]=!0x0,this['fire'](_0x22b4('0xd'),{'parentId':this['_parentRevisionId']});}[_0x22b4('0x0')](){this[_0x22b4('0x8')]=!0x1;}}
23
+ const _0x19d7=['div','createdAt','ck-revision-history-sidebar__revision-authors','span','bind','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision_selected','fire','deselect','_createdAtFormatted','isSelected','select','ck-reset','uiLanguage','_parentRevisionId','bindTemplate','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision'];(function(_0x5ce9cb,_0x19d72b){const _0x2ba1de=function(_0x5d5b8c){while(--_0x5d5b8c){_0x5ce9cb['push'](_0x5ce9cb['shift']());}};_0x2ba1de(++_0x19d72b);}(_0x19d7,0x1ea));const _0x2ba1=function(_0x5ce9cb,_0x19d72b){_0x5ce9cb=_0x5ce9cb-0x0;let _0x2ba1de=_0x19d7[_0x5ce9cb];return _0x2ba1de;};import{View as _0x299e9c}from'ckeditor5/src/ui';import _0x5bfd63 from'./revisionauthorview';import{dateToPrettyFormat as _0x1efcd9}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x299e9c{constructor(_0x5132d2,_0x4053e1,_0x2e1705){super(_0x5132d2);const _0x1ccf18=this[_0x2ba1('0xb')];this['id']=_0x4053e1['id'],this['bind']('createdAt')['to'](_0x4053e1),this['set'](_0x2ba1('0x6'),!0x1),this[_0x2ba1('0x0')](_0x2ba1('0x5'))['to'](this,_0x2ba1('0xf'),_0xd4241e=>_0xd4241e?_0x1efcd9(_0x5132d2[_0x2ba1('0x9')],_0xd4241e):void 0x0),this[_0x2ba1('0xa')]=_0x2e1705,this['setTemplate']({'tag':_0x2ba1('0xe'),'attributes':{'class':['ck',_0x2ba1('0x8'),_0x2ba1('0xd'),_0x2ba1('0x1'),_0x1ccf18['if']('isSelected',_0x2ba1('0x2'))]},'children':[{'tag':_0x2ba1('0x11'),'attributes':{'class':['ck',_0x2ba1('0xc')]},'children':[{'text':_0x1ccf18['to'](_0x2ba1('0x5'))}]},{'tag':'ul','attributes':{'class':['ck',_0x2ba1('0x10')]},'children':[new _0x5bfd63(_0x5132d2,_0x4053e1['creator'],!0x0)]}],'on':{'click':_0x1ccf18['to'](this['select'][_0x2ba1('0x0')](this))}});}[_0x2ba1('0x7')](){this['isSelected']=!0x0,this[_0x2ba1('0x3')](_0x2ba1('0x7'),{'parentId':this['_parentRevisionId']});}[_0x2ba1('0x4')](){this[_0x2ba1('0x6')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5ded=['long','numeric','toLocaleTimeString','toLocaleDateString'];(function(_0x80c528,_0x5ded69){var _0x5f566d=function(_0x2a21fa){while(--_0x2a21fa){_0x80c528['push'](_0x80c528['shift']());}};_0x5f566d(++_0x5ded69);}(_0x5ded,0x85));var _0x5f56=function(_0x80c528,_0x5ded69){_0x80c528=_0x80c528-0x0;var _0x5f566d=_0x5ded[_0x80c528];return _0x5f566d;};export function dateToPrettyFormat(_0x12423f,_0x4982e0){return _0x4982e0[_0x5f56('0x2')](_0x12423f,{'month':_0x5f56('0x3'),'day':_0x5f56('0x0')})+',\x20'+_0x4982e0[_0x5f56('0x1')](_0x12423f,{'hour':_0x5f56('0x0'),'minute':_0x5f56('0x0')});}
23
+ var _0x53d9=['long','numeric','toLocaleDateString'];(function(_0x141086,_0x53d9ff){var _0x4db763=function(_0x4bdf3f){while(--_0x4bdf3f){_0x141086['push'](_0x141086['shift']());}};_0x4db763(++_0x53d9ff);}(_0x53d9,0xb8));var _0x4db7=function(_0x141086,_0x53d9ff){_0x141086=_0x141086-0x0;var _0x4db763=_0x53d9[_0x141086];return _0x4db763;};export function dateToPrettyFormat(_0x41de3d,_0x2d459a){return _0x2d459a[_0x4db7('0x1')](_0x41de3d,{'month':_0x4db7('0x2'),'day':_0x4db7('0x0')})+',\x20'+_0x2d459a['toLocaleTimeString'](_0x41de3d,{'hour':_0x4db7('0x0'),'minute':'numeric'});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x543d=['arrowright','render','focusTracker','_createButton','focusFirst','add','Save','type','saveButtonView','forEach','_focusables','Name\x20of\x20the\x20revision\x20(optional)','listenTo','keystrokes','value','ck-button-cancel','label','extendTemplate','revisionName','_createRevisionNameInput','ck-button-save','trim','set','delegate','cancel','revisionNameInputView','stopPropagation','ck-revision-history-save-revision-form','220','setTemplate','form','high','shift\x20+\x20tab','revisionNameInputValue','cancelButtonView','element','arrowdown','_focusCycler','arrowleft','fieldView','locale','Cancel'];(function(_0x37869a,_0x543d3e){const _0x589170=function(_0x572a03){while(--_0x572a03){_0x37869a['push'](_0x37869a['shift']());}};_0x589170(++_0x543d3e);}(_0x543d,0x14d));const _0x5891=function(_0x37869a,_0x543d3e){_0x37869a=_0x37869a-0x0;let _0x589170=_0x543d[_0x37869a];return _0x589170;};import{icons as _0x2d6c13}from'ckeditor5/src/core';import{ButtonView as _0x5d9ec2,FocusCycler as _0x4b368c,LabeledFieldView as _0x2df80a,View as _0x4bd8ef,ViewCollection as _0xf70b0e,createLabeledInputText as _0x420dba,injectCssTransitionDisabler as _0x508d83,submitHandler as _0xda4574}from'ckeditor5/src/ui';import{FocusTracker as _0x1257cf,KeystrokeHandler as _0x4832d9}from'ckeditor5/src/utils';import{getTranslation as _0x1d4521}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class vt extends _0x4bd8ef{constructor(_0x251a29){super(_0x251a29),this[_0x5891('0x5')]=new _0x1257cf(),this[_0x5891('0x10')]=new _0x4832d9(),this[_0x5891('0x19')](_0x5891('0x24'),''),this[_0x5891('0x1c')]=this['_createRevisionNameInput'](),this[_0x5891('0xb')]=this[_0x5891('0x6')](_0x1d4521(_0x251a29,_0x5891('0x9')),_0x2d6c13['check'],_0x5891('0x17')),this[_0x5891('0xb')][_0x5891('0xa')]='submit',this['cancelButtonView']=this[_0x5891('0x6')](_0x1d4521(_0x251a29,_0x5891('0x2')),_0x2d6c13[_0x5891('0x1b')],_0x5891('0x12'),_0x5891('0x1b')),this[_0x5891('0xd')]=new _0xf70b0e(),this[_0x5891('0x28')]=new _0x4b368c({'focusables':this[_0x5891('0xd')],'focusTracker':this[_0x5891('0x5')],'keystrokeHandler':this[_0x5891('0x10')],'actions':{'focusPrevious':_0x5891('0x23'),'focusNext':'tab'}}),this[_0x5891('0x20')]({'tag':_0x5891('0x21'),'attributes':{'class':['ck',_0x5891('0x1e'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x5891('0x1c')],this[_0x5891('0xb')],this[_0x5891('0x25')]]}),_0x508d83(this);}[_0x5891('0x4')](){super[_0x5891('0x4')](),_0xda4574({'view':this}),([this['revisionNameInputView'],this[_0x5891('0xb')],this['cancelButtonView']][_0x5891('0xc')](_0x37d1b6=>{this['_focusables'][_0x5891('0x8')](_0x37d1b6),this[_0x5891('0x5')][_0x5891('0x8')](_0x37d1b6[_0x5891('0x26')]);}),this[_0x5891('0x10')][_0x5891('0xf')](this['element']));const _0x43e47b=_0x1df91e=>_0x1df91e[_0x5891('0x1d')]();this[_0x5891('0x10')]['set'](_0x5891('0x3'),_0x43e47b),this[_0x5891('0x10')][_0x5891('0x19')](_0x5891('0x29'),_0x43e47b),this[_0x5891('0x10')][_0x5891('0x19')]('arrowup',_0x43e47b),this[_0x5891('0x10')][_0x5891('0x19')](_0x5891('0x27'),_0x43e47b),this[_0x5891('0xf')](this['revisionNameInputView'][_0x5891('0x26')],'selectstart',(_0x263c83,_0x5d83c9)=>{_0x5d83c9[_0x5891('0x1d')]();},{'priority':_0x5891('0x22')});}['focus'](){this[_0x5891('0x28')][_0x5891('0x7')]();}get[_0x5891('0x15')](){return this['revisionNameInputView'][_0x5891('0x0')]['element'][_0x5891('0x11')][_0x5891('0x18')]();}set[_0x5891('0x15')](_0x419dbf){this[_0x5891('0x1c')][_0x5891('0x0')][_0x5891('0x26')]['value']=_0x419dbf['trim']();}['reset'](){this[_0x5891('0x1c')][_0x5891('0x0')]['element'][_0x5891('0x11')]='';}[_0x5891('0x16')](){const _0x489791=new _0x2df80a(this[_0x5891('0x1')],_0x420dba),_0x1e08a8=_0x489791[_0x5891('0x0')];return _0x1e08a8[_0x5891('0x14')]({'attributes':{'maxlength':_0x5891('0x1f')}}),_0x489791[_0x5891('0x13')]=_0x1d4521(this[_0x5891('0x1')],_0x5891('0xe')),_0x1e08a8['on']('input',()=>{this[_0x5891('0x24')]=_0x1e08a8[_0x5891('0x26')]['value']['trim']();}),_0x489791;}['_createButton'](_0x1f1378,_0x4936d1,_0x1e7369,_0x392eed){const _0x3d20f0=new _0x5d9ec2(this['locale']);return _0x3d20f0[_0x5891('0x19')]({'label':_0x1f1378,'icon':_0x4936d1,'tooltip':!0x0}),_0x3d20f0[_0x5891('0x14')]({'attributes':{'class':_0x1e7369}}),_0x392eed&&_0x3d20f0[_0x5891('0x1a')]('execute')['to'](this,_0x392eed),_0x3d20f0;}}
23
+ const _0x2805=['focus','_focusCycler','keystrokes','_focusables','tab','high','ck-button-save','revisionNameInputValue','cancelButtonView','_createRevisionNameInput','stopPropagation','220','setTemplate','extendTemplate','arrowright','Cancel','Name\x20of\x20the\x20revision\x20(optional)','listenTo','check','cancel','label','ck-revision-history-save-revision-form','ck-responsive-form','type','element','_createButton','value','saveButtonView','submit','focusTracker','revisionName','add','fieldView','set','execute','revisionNameInputView','arrowdown','locale','form','input','arrowup','render','trim'];(function(_0x3180a3,_0x2805a2){const _0xed1b02=function(_0x5f51c0){while(--_0x5f51c0){_0x3180a3['push'](_0x3180a3['shift']());}};_0xed1b02(++_0x2805a2);}(_0x2805,0x134));const _0xed1b=function(_0x3180a3,_0x2805a2){_0x3180a3=_0x3180a3-0x0;let _0xed1b02=_0x2805[_0x3180a3];return _0xed1b02;};import{icons as _0x56ea48}from'ckeditor5/src/core';import{ButtonView as _0x14f883,FocusCycler as _0x47adf0,LabeledFieldView as _0x20b52f,View as _0x3dab49,ViewCollection as _0x10559a,createLabeledInputText as _0xd01678,injectCssTransitionDisabler as _0x1ee7bc,submitHandler as _0x71033b}from'ckeditor5/src/ui';import{FocusTracker as _0x50f643,KeystrokeHandler as _0x79772a}from'ckeditor5/src/utils';import{getTranslation as _0x369b6f}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class vt extends _0x3dab49{constructor(_0x50e6e8){super(_0x50e6e8),this[_0xed1b('0x16')]=new _0x50f643(),this[_0xed1b('0x26')]=new _0x79772a(),this[_0xed1b('0x1a')](_0xed1b('0x0'),''),this['revisionNameInputView']=this[_0xed1b('0x2')](),this[_0xed1b('0x14')]=this[_0xed1b('0x12')](_0x369b6f(_0x50e6e8,'Save'),_0x56ea48[_0xed1b('0xb')],_0xed1b('0x2a')),this['saveButtonView'][_0xed1b('0x10')]=_0xed1b('0x15'),this['cancelButtonView']=this['_createButton'](_0x369b6f(_0x50e6e8,_0xed1b('0x8')),_0x56ea48[_0xed1b('0xc')],'ck-button-cancel',_0xed1b('0xc')),this['_focusables']=new _0x10559a(),this[_0xed1b('0x25')]=new _0x47adf0({'focusables':this[_0xed1b('0x27')],'focusTracker':this[_0xed1b('0x16')],'keystrokeHandler':this[_0xed1b('0x26')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0xed1b('0x28')}}),this[_0xed1b('0x5')]({'tag':_0xed1b('0x1f'),'attributes':{'class':['ck',_0xed1b('0xe'),_0xed1b('0xf')],'tabindex':'-1'},'children':[this[_0xed1b('0x1c')],this['saveButtonView'],this[_0xed1b('0x1')]]}),_0x1ee7bc(this);}[_0xed1b('0x22')](){super['render'](),_0x71033b({'view':this}),([this['revisionNameInputView'],this[_0xed1b('0x14')],this[_0xed1b('0x1')]]['forEach'](_0x3a8457=>{this['_focusables'][_0xed1b('0x18')](_0x3a8457),this['focusTracker'][_0xed1b('0x18')](_0x3a8457[_0xed1b('0x11')]);}),this[_0xed1b('0x26')][_0xed1b('0xa')](this[_0xed1b('0x11')]));const _0xc3b5e9=_0x5edff9=>_0x5edff9['stopPropagation']();this['keystrokes'][_0xed1b('0x1a')](_0xed1b('0x7'),_0xc3b5e9),this['keystrokes']['set']('arrowleft',_0xc3b5e9),this[_0xed1b('0x26')][_0xed1b('0x1a')](_0xed1b('0x21'),_0xc3b5e9),this[_0xed1b('0x26')][_0xed1b('0x1a')](_0xed1b('0x1d'),_0xc3b5e9),this[_0xed1b('0xa')](this[_0xed1b('0x1c')]['element'],'selectstart',(_0x2fc72d,_0x5494ff)=>{_0x5494ff[_0xed1b('0x3')]();},{'priority':_0xed1b('0x29')});}[_0xed1b('0x24')](){this[_0xed1b('0x25')]['focusFirst']();}get[_0xed1b('0x17')](){return this[_0xed1b('0x1c')][_0xed1b('0x19')][_0xed1b('0x11')]['value'][_0xed1b('0x23')]();}set['revisionName'](_0x3b7db6){this[_0xed1b('0x1c')][_0xed1b('0x19')][_0xed1b('0x11')]['value']=_0x3b7db6[_0xed1b('0x23')]();}['reset'](){this[_0xed1b('0x1c')][_0xed1b('0x19')][_0xed1b('0x11')][_0xed1b('0x13')]='';}[_0xed1b('0x2')](){const _0x540403=new _0x20b52f(this[_0xed1b('0x1e')],_0xd01678),_0x5c25f6=_0x540403['fieldView'];return _0x5c25f6[_0xed1b('0x6')]({'attributes':{'maxlength':_0xed1b('0x4')}}),_0x540403[_0xed1b('0xd')]=_0x369b6f(this[_0xed1b('0x1e')],_0xed1b('0x9')),_0x5c25f6['on'](_0xed1b('0x20'),()=>{this[_0xed1b('0x0')]=_0x5c25f6[_0xed1b('0x11')][_0xed1b('0x13')]['trim']();}),_0x540403;}['_createButton'](_0x3f3d43,_0x20f5c6,_0x4814b8,_0x235575){const _0x330d36=new _0x14f883(this[_0xed1b('0x1e')]);return _0x330d36[_0xed1b('0x1a')]({'label':_0x3f3d43,'icon':_0x20f5c6,'tooltip':!0x0}),_0x330d36[_0xed1b('0x6')]({'attributes':{'class':_0x4814b8}}),_0x235575&&_0x330d36['delegate'](_0xed1b('0x1b'))['to'](this,_0x235575),_0x330d36;}}