@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231229.0 → 0.0.0-nightly-20231230.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +5 -5
  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 _0x3a43=['sort','has','markersStart','clear','ck-suggestion-marker-','config','rootName','restoreRevisionCallback','data','high','concat','ck-revision-history-root-','_makeModelFromViewString','map','getItems','markers','toModel','pairId','for','_makeTape','editing','createUIElement','consumable','getWalker','pop','revision-end','_markInsertions','_getRevisionsRange','_balloon','default','markerToData','_sortAndFilterDiffChanges','createRange','merge','reconvertMarker','_activeViewTarget','isLimit','numberOfChanges','commands','_getViewForChange','listenTo','revisionHistory','nextPosition','revision','activeView','change:numberOfChanges','revisionHistoryLabel','bindElementToMarker','children','locale','oldRevisionId','catch','parse','conversion','vid_start','insertion','hasAttribute','getCustomProperty','removeMarker:revision-suggestion','attributesAfter','keys','_markMarkers','getDomRoot','editingDowncast','object','split','data-revision-','start','isReady','markerName','showPreviousChange','unshift','mapper','revision-start','then','revision-comment:','ck-revision-history-root-add','revision:','nextSibling','document','addRoot','target','ck-suggestion-marker-split','change:isReady','_removeRevisionMarkers','parent','diff','insertions','isAttached','isContent','destroy','downcastDispatcher','next','toViewElement','name','toViewPosition','isEnabled','comment','change:activeChange','element','createAttributeElement','_refreshStartEndIndex','push','mousedown','_cleanMarkers','splice','vid','markerToHighlight','add','addHighlight','createPositionBefore','string','_revisions','change','_data','ck-suggestion-marker-merge','_joinTapes','getAttributes','createPositionFromPath','bottom','toViewRange','_update','get','addClass','WidgetToolbarRepository','model','authors','modelRange','error','domEvent','forward','writer','done','wrap','all','side','insert','newRevisionId','startIndex','revision-suggestion:','observeMarkers','_getDiff','compare','repository','pluginName','adapter','right','changeId','previousPosition','_cleanUp','low','_processTape','forceDisabled','nodeAfter','getRevisionData','isRemoveSuggestion','schema','shift','view','addMarker:revision','changes','type','bind','text','plugins','getRoot','index','enqueueChange','uiElement','isBlock','level','deletions','_markMismatchedRemovedTags','mapViewToDom','isAfter','_appendChild','endIndex','test','_makeModelFromTape','attributes','requires','removeMarker','isOnRoot','offsetSize','isCollapsed','removeClass','addRevisionData','end','_removeUnsupportedChanges','_findChangeIdFromDomTarget','ck-suggestion-preview-marker-','markerRange','editor','hasClass','addMarker:revision-suggestion:insertion','isAtStart','includes','dataDowncast','span','userId','getClientRects','diffData','isAdded','_setChanges','distance','elementEnd','_changeIdToChange','isIncorrect','unbindElementFromMarkerName','addMarker:revision-suggestion:deletion','viewItem','loadRevisionData','elementStart','refresh','isNavigationMode','item','ck-editor__editable__overlay','attachChange','isBefore','maxOffset','getRootNames','find','RevisionsRepository','_markSuggestions','remove','domConverter','range','activeChange','setAttribute','change:activeView','_setDistance','isRemoved','length','elementToAttribute','_removeMissingPairs','_fixObsoleteTags','backward','change:isEnabled','revisionHistoryAttachChange','left','data-change-id','_getViewObj','_getChangeFromId','_changeView','abs','mouseover','revision-suggestion','consume','upcast','execute','removeAttribute','getIndex','from','ck-suggestion-marker','getRevision','ck-suggestion-marker--active','element:pre','flat','addRevision','POSITIVE_INFINITY','startsWith','forEach','indexOf','isSuggestion','createRangeIn','vid_end','ck-revision-history-root--active','isEqual','detachRoot','-new','roots','revision-viewer','processor','deletion','getAttribute','isAddSuggestion','markerNameToElements','softBreak','markersEnd','set','highest','filter','collaboration.channelId','useFillerType','_initInteractions','delete'];(function(_0x1050e6,_0x3a4373){const _0x38f538=function(_0x509c4f){while(--_0x509c4f){_0x1050e6['push'](_0x1050e6['shift']());}};_0x38f538(++_0x3a4373);}(_0x3a43,0xa8));const _0x38f5=function(_0x1050e6,_0x3a4373){_0x1050e6=_0x1050e6-0x0;let _0x38f538=_0x3a43[_0x1050e6];return _0x38f538;};import{Plugin as _0xc38894,Command as _0x1f11d9}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x3703f8}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x3072af}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x264425,Element as _0x2e158a,Text as _0x254439,ViewDocumentFragment as _0x3f9834,ViewText as _0x5bc6c0,ViewElement as _0x25439c,ViewContainerElement as _0x466e6f,ViewAttributeElement as _0x2b844f,ViewEmptyElement as _0x22435c,ViewRawElement as _0x4877dc,ViewUIElement as _0xa5def0}from'ckeditor5/src/engine.js';import{Users as _0x22dbac,getMarkerDomElement as _0x1ef551}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x37db78 from'./ui/revisionviewer/changedetailsview.js';import _0x3b1dc2 from'./revisionsrepository.js';import _0xb9e0aa from'./changeitem.js';import{default as _0x845a16}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x526b0b}from'lodash-es';const tt={'c':_0x466e6f,'a':_0x2b844f,'e':_0x22435c,'r':_0x4877dc,'u':_0xa5def0};export default class d extends _0xc38894{static get[_0x38f5('0x106')](){return'RevisionViewer';}static get[_0x38f5('0xc')](){return[_0x22dbac,_0x3072af,_0x3b1dc2];}constructor(_0x41b387){super(_0x41b387),this[_0x38f5('0x105')]=this[_0x38f5('0x18')][_0x38f5('0x11a')][_0x38f5('0xf0')](_0x38f5('0x36')),this[_0x38f5('0x6f')](_0x38f5('0x3b'),null),this[_0x38f5('0x6f')](_0x38f5('0xa2'),null),this[_0x38f5('0x99')]=null,this[_0x38f5('0x6f')](_0x38f5('0xcc'),null),this[_0x38f5('0x6f')](_0x38f5('0xba'),!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x99bc06,_0x27501c,_0x10d055)=>{this[_0x38f5('0x3b')]=null,this[_0x38f5('0xa2')]=null,this[_0x38f5('0x18')][_0x38f5('0x8a')]['view'][_0x38f5('0xe7')](_0x202a70=>{for(const _0x46a557 of this['editor']['editing'][_0x38f5('0x114')][_0x38f5('0xc5')][_0x38f5('0x66')])_0x10d055?_0x202a70[_0x38f5('0x11')](_0x38f5('0x30'),_0x46a557):_0x202a70[_0x38f5('0xf1')](_0x38f5('0x30'),_0x46a557);});}),this[_0x38f5('0x118')](_0x38f5('0x2e'))['to'](this,_0x38f5('0x3b'),_0x4401c6=>null!==_0x4401c6),this[_0x38f5('0x118')]('currentChangeNumber')['to'](this,_0x38f5('0xba'),this,'diff',this,'activeChange',(_0x22524d,_0x13f4d0,_0x1d1008)=>_0x22524d&&_0x1d1008?_0x13f4d0[_0x38f5('0x116')][_0x38f5('0x53')](_0x1d1008):0x0),this[_0x38f5('0x118')](_0x38f5('0x9b'))['to'](this,_0x38f5('0xba'),this,_0x38f5('0xcc'),(_0x1db3ae,_0x396f0e)=>_0x1db3ae?_0x396f0e[_0x38f5('0x116')][_0x38f5('0x40')]:0x0),this[_0x38f5('0x4b')]=null,this[_0x38f5('0x26')]=new Map(),this[_0x38f5('0x107')]=null,this['_balloon']=this[_0x38f5('0x18')][_0x38f5('0x11a')][_0x38f5('0xf0')](_0x3072af);}['init'](){const _0xb4d240=this[_0x38f5('0x18')],_0x4241ad=new ShowChangeCommand(_0xb4d240,{'direction':_0x38f5('0x44')}),_0x465ede=new ShowChangeCommand(_0xb4d240,{'direction':_0x38f5('0xf8')});(_0xb4d240[_0x38f5('0x9c')][_0x38f5('0xe2')](_0x38f5('0xbc'),_0x4241ad),_0xb4d240[_0x38f5('0x9c')]['add']('showNextChange',_0x465ede),_0xb4d240['commands'][_0x38f5('0xe2')]('restoreRevision',new RestoreRevisionCommand(_0xb4d240)),this['on'](_0x38f5('0xa3'),()=>{_0x4241ad[_0x38f5('0x2d')](),_0x465ede[_0x38f5('0x2d')]();}),this['_setConversion'](),this[_0x38f5('0x74')](),_0xb4d240['enableReadOnlyMode'](_0x38f5('0x67')),_0xb4d240[_0x38f5('0x11a')][_0x38f5('0x77')](_0x38f5('0xf2')))&&_0xb4d240[_0x38f5('0x11a')][_0x38f5('0xf0')](_0x38f5('0xf2'))[_0x38f5('0x10e')](_0x38f5('0x67'));}async[_0x38f5('0x110')](_0x45bd57){await this[_0x38f5('0x2b')](_0x45bd57);const _0x5a6a51={};for(const _0x5312cd in _0x45bd57[_0x38f5('0x21')]){if(_0x45bd57['diffData'][_0x5312cd][_0x38f5('0x31')]&&!_0x45bd57[_0x38f5('0x21')][_0x5312cd][_0x38f5('0x31')][_0x38f5('0xce')])continue;const _0x4e168e=this['_removeRevisionMarkers'](JSON[_0x38f5('0xaa')](_0x45bd57[_0x38f5('0x21')][_0x5312cd][_0x38f5('0xcd')])),_0x567605=this['editor'][_0x38f5('0x8a')][_0x38f5('0x114')][_0x38f5('0xc5')],_0xc46597=new _0x3f9834(_0x567605,_0x4e168e[_0x38f5('0x83')](_0xb2477=>this['_getViewObj'](_0xb2477)));this['editor']['data'][_0x38f5('0x68')][_0x38f5('0x73')]('marked'),_0x5a6a51[_0x5312cd]=this[_0x38f5('0x18')][_0x38f5('0x7e')][_0x38f5('0x68')]['toData'](_0xc46597),this[_0x38f5('0x18')][_0x38f5('0x7e')][_0x38f5('0x68')][_0x38f5('0x73')](_0x38f5('0x93'));}return _0x5a6a51;}async['getRevisionRootsAttributes'](_0x1063c1){await this[_0x38f5('0x2b')](_0x1063c1);const _0x43936f={};for(const _0x392403 in _0x1063c1[_0x38f5('0x21')])_0x1063c1[_0x38f5('0x21')][_0x392403][_0x38f5('0x31')]&&!_0x1063c1['diffData'][_0x392403]['attachChange'][_0x38f5('0xce')]||(_0x43936f[_0x392403]=_0x1063c1[_0x38f5('0x21')][_0x392403][_0x38f5('0xb1')]||{});return _0x43936f;}[_0x38f5('0xca')](_0x1d1639){return(_0x1d1639=_0x1d1639[_0x38f5('0x71')](_0x2f7214=>!_0x2f7214[_0x38f5('0xd4')]||_0x38f5('0xbf')!==_0x2f7214[_0x38f5('0xd4')]&&_0x38f5('0x8f')!==_0x2f7214['name']))[_0x38f5('0x5d')](_0x5b32c7=>{'string'!=typeof _0x5b32c7&&(_0x5b32c7[_0x38f5('0xa6')]=this[_0x38f5('0xca')](_0x5b32c7[_0x38f5('0xa6')]),_0x5b32c7[_0x38f5('0xb')]=_0x5b32c7[_0x38f5('0xb')][_0x38f5('0x71')](_0x30acfe=>!_0x30acfe[0x0][_0x38f5('0x5c')](_0x38f5('0xb8'))));}),_0x1d1639;}async[_0x38f5('0x104')](_0x298511,_0x3f3c5c,_0x47904d=!0x1){if(!this['isEnabled'])return;const _0x1ca38a=this[_0x38f5('0xcc')],_0x1cb156=this[_0x38f5('0x105')],_0x3253f3='string'==typeof _0x298511?_0x1cb156[_0x38f5('0x56')](_0x298511):_0x298511,_0x3f6730=_0x38f5('0xe5')==typeof _0x3f3c5c?_0x1cb156[_0x38f5('0x56')](_0x3f3c5c):_0x3f3c5c,_0xb4e4ce=_0x3253f3['id'],_0x474b5b=_0x3f6730?_0x3f6730['id']:null;if(!_0x47904d&&this['diff']&&this[_0x38f5('0xcc')][_0x38f5('0xff')]===_0xb4e4ce&&this['diff'][_0x38f5('0xa8')]===_0x474b5b)return Promise['resolve']();this[_0x38f5('0xba')]=!0x1,this['activeView']=null,this[_0x38f5('0x3b')]=null,this[_0x38f5('0xcc')]=new _0x845a16(_0xb4e4ce,_0x474b5b);const _0x4b97c5=this[_0x38f5('0x91')](_0x3253f3,_0x3f6730,!0x0)[_0x38f5('0x83')](_0x396712=>this[_0x38f5('0x2b')](_0x396712));return _0x4b97c5[_0x38f5('0xdc')](new Promise(_0x5046f0=>{setTimeout(_0x5046f0,0x14);})),Promise[_0x38f5('0xfc')](_0x4b97c5)[_0x38f5('0xc0')](()=>{if(!this[_0x38f5('0xd6')])return;this[_0x38f5('0x10b')]();const _0x156be5=this[_0x38f5('0x103')](_0xb4e4ce,_0x474b5b);for(const _0x2dbf6e of _0x156be5['changes'])this['_changeIdToChange'][_0x38f5('0x6f')](_0x2dbf6e['id'],_0x2dbf6e);this[_0x38f5('0x18')]['model']['enqueueChange']({'isUndoable':!0x1},_0xf9a28d=>{for(const _0x228952 of this['editor'][_0x38f5('0xf3')][_0x38f5('0xc5')][_0x38f5('0x34')]())_0xf9a28d['detachRoot'](_0x228952);for(const _0x2a7759 of Object[_0x38f5('0xb2')](_0x156be5['model'])){const _0x14fb72=_0xf9a28d[_0x38f5('0xc6')](_0x2a7759);for(const _0x2bf78f of Object[_0x38f5('0xb2')](_0x156be5[_0x38f5('0xb')][_0x2a7759]))_0xf9a28d[_0x38f5('0x3c')](_0x2bf78f,_0x156be5['attributes'][_0x2a7759][_0x2bf78f],_0x14fb72);_0xf9a28d['insert'](_0x156be5[_0x38f5('0xf3')][_0x2a7759],_0x14fb72,0x0);}}),this[_0x38f5('0xcc')][_0x38f5('0x23')](this[_0x38f5('0x95')](_0x156be5['changes'])),this[_0x38f5('0xba')]=!0x0;})[_0x38f5('0xa9')](_0x1e99c1=>{console[_0x38f5('0xf6')](_0x1e99c1),this[_0x38f5('0x10b')](),_0x1ca38a&&(this[_0x38f5('0xcc')]=_0x1ca38a),this['isReady']=!0x0;});}[_0x38f5('0x12')](_0x2b27a0,_0x16a4e5){const _0x10506a=this[_0x38f5('0x105')]['createRevision'](_0x2b27a0);return _0x10506a['on'](_0x38f5('0xef'),(_0x2662a3,_0x2f2c1c,_0x35a325)=>_0x16a4e5(_0x2f2c1c,_0x35a325,_0x10506a)),this[_0x38f5('0x105')][_0x38f5('0x5a')](_0x10506a),_0x10506a;}[_0x38f5('0x2b')](_0x395df1){if(!_0x395df1||_0x395df1['diffData'])return Promise['resolve']();{const _0x5b6d08=this[_0x38f5('0x18')][_0x38f5('0x7b')][_0x38f5('0xf0')](_0x38f5('0x72'));return this[_0x38f5('0x107')][_0x38f5('0x56')]({'channelId':_0x5b6d08,'revisionId':_0x395df1['id']})[_0x38f5('0xc0')](_0x210011=>{_0x395df1[_0x38f5('0xef')]({'diffData':_0x210011['diffData']},!0x0);});}}[_0x38f5('0x10b')](){this[_0x38f5('0x3b')]=null,this[_0x38f5('0xde')](),this[_0x38f5('0x4b')]&&this['_changeView'][_0x38f5('0xd0')](),this[_0x38f5('0x4b')]=null,this[_0x38f5('0x26')][_0x38f5('0x79')](),this[_0x38f5('0x18')][_0x38f5('0xf3')][_0x38f5('0x11d')]({'isUndoable':!0x1},_0x424493=>{for(const _0x1b2610 of this['editor'][_0x38f5('0xf3')][_0x38f5('0xc5')][_0x38f5('0x34')]())_0x424493[_0x38f5('0x64')](_0x1b2610);});}[_0x38f5('0x95')](_0x3def4b){const _0x593e6f=[],_0x54d187=new Map();for(const _0x3f3cae of this['editor'][_0x38f5('0xf3')]['document']['getRootNames']()){const _0x5b7986=this['editor']['editing'][_0x38f5('0x114')][_0x38f5('0xb4')](_0x3f3cae);if(!_0x5b7986)continue;const _0x3665aa=_0x5b7986[_0x38f5('0x20')]()[_0x38f5('0x2f')](0x0);_0x3665aa&&(_0x593e6f[_0x38f5('0xdc')](_0x3f3cae),_0x54d187[_0x38f5('0x6f')](_0x3f3cae,_0x3665aa));}return _0x593e6f[_0x38f5('0x76')]((_0x5c86c2,_0x132b60)=>{const _0xe4d7ff=_0x54d187[_0x38f5('0xf0')](_0x5c86c2),_0x3c113b=_0x54d187[_0x38f5('0xf0')](_0x132b60);return _0xe4d7ff['y']-_0x3c113b['y']||_0xe4d7ff['x']-_0x3c113b['x'];}),(_0x3def4b=_0x3def4b['filter'](_0x13ed79=>_0x593e6f['includes'](_0x13ed79['rootName'])))[_0x38f5('0x76')]((_0x1e4d88,_0x3f636e)=>_0x593e6f[_0x38f5('0x5e')](_0x1e4d88[_0x38f5('0x7c')])-_0x593e6f['indexOf'](_0x3f636e[_0x38f5('0x7c')])),_0x3def4b;}['_makeTape'](_0x2bb1dc){const _0x3fdf55=Array[_0x38f5('0x54')](_0x2bb1dc[_0x38f5('0x85')])[_0x38f5('0x71')](([_0x2dcabc,_0x27ca42])=>_0x2dcabc[_0x38f5('0x5c')](_0x38f5('0xc3'))&&!_0x27ca42['isCollapsed']),_0xe6db5b=Array[_0x38f5('0x54')](this[_0x38f5('0x18')][_0x38f5('0xf3')][_0x38f5('0x60')](_0x2bb1dc)[_0x38f5('0x8d')]({'singleCharacters':!0x0}));if(0x0!=_0x3fdf55['length'])for(const _0x4efff2 of _0xe6db5b){const [_0x1a5e3e,_0x118c13]=_0x3fdf55[0x0],[,_0x30cf06,_0x2f2b4c]=_0x1a5e3e[_0x38f5('0xb7')](':');if(_0x118c13[_0x38f5('0x13')][_0x38f5('0x63')](_0x4efff2['nextPosition'])&&_0x3fdf55['shift'](),(_0x4efff2[_0x38f5('0x10a')]['isEqual'](_0x118c13[_0x38f5('0xb9')])||_0x4efff2[_0x38f5('0x10a')][_0x38f5('0x6')](_0x118c13[_0x38f5('0xb9')]))&&(_0x38f5('0xad')==_0x30cf06?_0x4efff2[_0x38f5('0x22')]={'userId':_0x2f2b4c}:'deletion'==_0x30cf06&&(_0x4efff2[_0x38f5('0x3f')]={'userId':_0x2f2b4c})),0x0==_0x3fdf55[_0x38f5('0x40')])break;}return _0xe6db5b;}[_0x38f5('0xdb')](_0x481cd6){const _0x288d2=new Map();for(let _0x33a83b=0x0;_0x33a83b<_0x481cd6[_0x38f5('0x40')];_0x33a83b++)_0x38f5('0x119')===_0x481cd6[_0x33a83b][_0x38f5('0x117')]?(_0x481cd6[_0x33a83b][_0x38f5('0x2f')][_0x38f5('0x100')]=_0x33a83b,_0x481cd6[_0x33a83b]['item']['endIndex']=_0x33a83b):(_0x38f5('0x2c')===_0x481cd6[_0x33a83b]['type']?_0x481cd6[_0x33a83b][_0x38f5('0x2f')][_0x38f5('0x100')]=_0x33a83b:_0x38f5('0x25')===_0x481cd6[_0x33a83b]['type']&&(_0x481cd6[_0x33a83b][_0x38f5('0x2f')][_0x38f5('0x8')]=_0x33a83b),_0x288d2['set'](_0x481cd6[_0x33a83b]['id'],_0x33a83b));for(const _0xaa8162 of _0x288d2['values']())_0x38f5('0x2c')===_0x481cd6[_0xaa8162]['type']?_0x481cd6[_0xaa8162][_0x38f5('0x2f')]['endIndex']=_0x288d2[_0x38f5('0xf0')](_0x481cd6[_0xaa8162][_0x38f5('0x87')]):_0x38f5('0x25')===_0x481cd6[_0xaa8162][_0x38f5('0x117')]&&(_0x481cd6[_0xaa8162][_0x38f5('0x2f')][_0x38f5('0x100')]=_0x288d2[_0x38f5('0xf0')](_0x481cd6[_0xaa8162][_0x38f5('0x87')]));}['_processTape'](_0x152bda){for(let _0x3b8027=0x0;_0x3b8027<_0x152bda[_0x38f5('0x40')];_0x3b8027++){if(_0x38f5('0x2c')===_0x152bda[_0x3b8027][_0x38f5('0x117')])_0x152bda[_0x3b8027][_0x38f5('0x2f')][_0x38f5('0x100')]=_0x3b8027;else{if('elementEnd'===_0x152bda[_0x3b8027]['type']){_0x152bda[_0x3b8027]['item'][_0x38f5('0x8')]=_0x3b8027;const _0x347915=_0x152bda[_0x3b8027][_0x38f5('0x2f')]['startIndex'];_0x152bda[_0x347915][_0x38f5('0x87')]=_0x152bda[_0x3b8027]['id'],_0x152bda[_0x3b8027][_0x38f5('0x87')]=_0x152bda[_0x347915]['id'];}else _0x152bda[_0x3b8027][_0x38f5('0x2f')][_0x38f5('0x100')]=_0x3b8027,_0x152bda[_0x3b8027][_0x38f5('0x2f')][_0x38f5('0x8')]=_0x3b8027,_0x152bda[_0x3b8027]['pairId']=null;}_0x152bda[_0x3b8027][_0x38f5('0x78')]||(_0x152bda[_0x3b8027][_0x38f5('0x78')]=[],_0x152bda[_0x3b8027][_0x38f5('0x6e')]=[]);}}['_markInsertions'](_0x172c9c,_0x5a3e7a){const _0x14d6bd=_0x172c9c[_0x38f5('0x71')](_0xa068e5=>!_0xa068e5[_0x38f5('0x22')]);for(let _0x42add3=0x0;_0x42add3<_0x5a3e7a[_0x38f5('0x40')];_0x42add3++)_0x5a3e7a[_0x42add3][_0x38f5('0x22')]&&(_0x14d6bd[_0x42add3][_0x38f5('0x22')]=_0x5a3e7a[_0x42add3][_0x38f5('0x22')]);}[_0x38f5('0x82')](_0x205e70){const _0x42ec49=JSON[_0x38f5('0xaa')](_0x205e70),_0x140d4d=this[_0x38f5('0x18')][_0x38f5('0x8a')][_0x38f5('0x114')][_0x38f5('0xc5')],_0x5cdf99=new _0x3f9834(_0x140d4d,_0x42ec49[_0x38f5('0x83')](_0x4145e2=>this[_0x38f5('0x49')](_0x4145e2)));return this['editor']['data'][_0x38f5('0x86')](_0x5cdf99);}['_getViewObj'](_0x33681b){const _0x123b44=this['editor'][_0x38f5('0x8a')][_0x38f5('0x114')][_0x38f5('0xc5')];if(_0x38f5('0xe5')==typeof _0x33681b)return new _0x5bc6c0(_0x123b44,_0x33681b);{const _0x3a85a7=_0x33681b[_0x38f5('0xa6')][_0x38f5('0x83')](_0x355837=>this[_0x38f5('0x49')](_0x355837));return new(tt[_0x33681b[(_0x38f5('0x117'))]]||_0x25439c)(_0x123b44,_0x33681b[_0x38f5('0xd4')],_0x33681b[_0x38f5('0xb')],_0x3a85a7);}}[_0x38f5('0x103')](_0x241b21,_0x5eb2a1=null){const _0x279207=this[_0x38f5('0x105')][_0x38f5('0x56')](_0x241b21),_0x364a9d=_0x5eb2a1?this[_0x38f5('0x105')][_0x38f5('0x56')](_0x5eb2a1):null,_0x2de160=this[_0x38f5('0x91')](_0x279207,_0x364a9d),_0x5e1d51=_0x2de160[_0x2de160['length']-0x1],_0x115030=new Map(),_0x1d7460={'model':{},'attributes':{},'changes':[]},_0x5610b5=new Set(),_0x235fd4=new Map();for(let _0x13b4f7=_0x2de160[_0x38f5('0x40')]-0x1;_0x13b4f7>=0x0;_0x13b4f7--){const _0x49187f=_0x2de160[_0x13b4f7];for(const _0x467adb of Object[_0x38f5('0xb2')](_0x49187f[_0x38f5('0x21')]))if(_0x49187f[_0x38f5('0x21')][_0x467adb][_0x38f5('0x31')]){const _0x87a68a=_0x49187f[_0x38f5('0x21')][_0x467adb]['attachChange'];_0x87a68a[_0x38f5('0xce')]?(_0x5610b5[_0x38f5('0xe2')](_0x467adb),_0x235fd4['has'](_0x467adb)&&_0x235fd4[_0x38f5('0xf0')](_0x467adb)['userId']==_0x87a68a[_0x38f5('0x1f')]?_0x235fd4['delete'](_0x467adb):_0x235fd4[_0x38f5('0x6f')](_0x467adb,_0x87a68a)):_0x235fd4[_0x38f5('0x77')](_0x467adb)?(_0x5610b5[_0x38f5('0x75')](_0x467adb),_0x235fd4[_0x38f5('0x75')](_0x467adb)):(_0x5610b5['add'](_0x467adb),_0x235fd4[_0x38f5('0x6f')](_0x467adb,_0x87a68a));}else _0x5610b5['add'](_0x467adb);}for(const _0x59879d of _0x5610b5){const _0x175600=_0x235fd4[_0x38f5('0x77')](_0x59879d)&&!_0x235fd4[_0x38f5('0xf0')](_0x59879d)['isAttached'];let _0x5ba0c7=_0x175600?_0x2de160[_0x38f5('0x40')]-0x1:0x0;const _0x5830a5=_0x175600?-0x1:0x1;for(;_0x2de160[_0x5ba0c7];){const _0x141c07=_0x2de160[_0x5ba0c7];if(_0x141c07[_0x38f5('0x21')][_0x59879d]){const _0x4c4150=_0x175600?_0x141c07[_0x38f5('0x21')][_0x59879d]['attributesBefore']:_0x141c07[_0x38f5('0x21')][_0x59879d][_0x38f5('0xb1')];_0x1d7460[_0x38f5('0xb')][_0x59879d]=_0x4c4150?_0x526b0b(_0x4c4150):{};break;}_0x5ba0c7+=_0x5830a5;}}for(const _0xdab91 of _0x2de160){_0xdab91['model']={};for(const _0x44b929 of _0xdab91[_0x38f5('0xf4')])_0x115030[_0x38f5('0x6f')](_0x44b929['id'],_0x44b929);for(const _0x2b77ac of _0x5610b5){const _0x11991c=_0xdab91[_0x38f5('0x21')][_0x2b77ac]?_0xdab91[_0x38f5('0x21')][_0x2b77ac]['insertions']:'[]',_0x5e6911=_0xdab91[_0x38f5('0x21')][_0x2b77ac]?_0xdab91[_0x38f5('0x21')][_0x2b77ac]['deletions']:'[]';_0xdab91['model'][_0x2b77ac]={'insertions':this[_0x38f5('0x82')](_0x11991c),'deletions':this[_0x38f5('0x82')](_0x5e6911)};}}for(const _0x14e0fa of _0x5610b5){let _0x2ffe04=null,_0x1d3125=0x0;const _0x13453e=new Map(Array[_0x38f5('0x54')](_0x279207[_0x38f5('0xf3')][_0x14e0fa][_0x38f5('0xcd')][_0x38f5('0x85')])[_0x38f5('0x71')](([_0x6cc916])=>!_0x6cc916['startsWith'](_0x38f5('0xc3'))));let _0x3c22c5=0x0;for(const _0x21ad99 of _0x2de160){const _0xd94e2c=this[_0x38f5('0x89')](_0x21ad99[_0x38f5('0xf3')][_0x14e0fa][_0x38f5('0xcd')]);_0x21ad99==_0x279207?(_0x2ffe04=_0xd94e2c,_0x1d3125=_0x2ffe04[_0x38f5('0x40')],_0x2ffe04['forEach'](_0x2473f8=>{_0x2473f8['id']=_0x3c22c5++;}),this[_0x38f5('0x10d')](_0x2ffe04)):this[_0x38f5('0x90')](_0x2ffe04,_0xd94e2c);const _0x569c54=_0x2ffe04[_0x38f5('0x71')](_0x348930=>!_0x348930['isAdded'])[_0x38f5('0x83')](_0x44c3b4=>_0x44c3b4['id']);let _0x78dbf7=0x0;const _0x47eba4=this[_0x38f5('0x89')](_0x21ad99[_0x38f5('0xf3')][_0x14e0fa][_0x38f5('0x3')]);_0x47eba4[_0x38f5('0x5d')](_0xb6ffb1=>{_0xb6ffb1[_0x38f5('0x3f')]?_0xb6ffb1['id']=_0x1d3125++:_0xb6ffb1['id']=_0x569c54[_0x78dbf7++];}),this[_0x38f5('0x10d')](_0x47eba4),this['_setDistance'](_0x2ffe04,_0x38f5('0x22')),this[_0x38f5('0x3e')](_0x47eba4,_0x38f5('0x3f')),_0x21ad99==_0x279207&&this[_0x38f5('0xb3')](_0x2ffe04,_0x13453e),_0x2ffe04=this[_0x38f5('0xea')](_0x2ffe04,_0x47eba4),this['_refreshStartEndIndex'](_0x2ffe04),this[_0x38f5('0x3e')](_0x2ffe04,_0x38f5('0x3f'));}_0x2ffe04=_0x2ffe04[_0x38f5('0x71')](_0x557533=>!(_0x557533[_0x38f5('0x22')]&&_0x557533[_0x38f5('0x3f')]));const _0x4f5ce3=new Map(_0x5e1d51['model'][_0x14e0fa][_0x38f5('0x3')][_0x38f5('0x85')]),_0x5ded74=new Set(_0x13453e[_0x38f5('0xb2')]());for(const _0x153e54 of _0x4f5ce3['keys']())_0x5ded74[_0x38f5('0x75')](_0x153e54);this[_0x38f5('0x37')](_0x2ffe04,_0x5ded74),this[_0x38f5('0x43')](_0x2ffe04),_0x2ffe04=this[_0x38f5('0x42')](_0x2ffe04),_0x2ffe04=this[_0x38f5('0x4')](_0x2ffe04),_0x2ffe04=this[_0x38f5('0x14')](_0x2ffe04);const {root:_0x54a7e5,changes:_0x497f3c}=this[_0x38f5('0xa')](_0x2ffe04,_0x115030,_0x14e0fa);_0x1d7460[_0x38f5('0xf3')][_0x14e0fa]=_0x54a7e5;const _0x3786a2=_0x235fd4['get'](_0x14e0fa);if(_0x3786a2){const _0x1ad895=_0x115030[_0x38f5('0xf0')](_0x3786a2['userId']),_0x4beb78=new _0xb9e0aa({'author':_0x1ad895,'type':_0x3786a2['isAttached']?_0x38f5('0xe2'):_0x38f5('0x38'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x14e0fa});_0x497f3c[_0x38f5('0xbd')](_0x4beb78),_0x1d7460['attributes'][_0x14e0fa][_0x38f5('0x46')]=_0x4beb78['id'];}_0x1d7460[_0x38f5('0x116')]=_0x1d7460[_0x38f5('0x116')][_0x38f5('0x80')](_0x497f3c);}return _0x1d7460;}[_0x38f5('0xb3')](_0x35104d,_0x55e7f9){for(let _0x4b37f9=0x0;_0x4b37f9<_0x35104d[_0x38f5('0x40')];_0x4b37f9++)for(const [_0x4d2244,_0x4c6cd8]of _0x55e7f9)_0x4c6cd8[_0x38f5('0xb9')][_0x38f5('0x63')](_0x35104d[_0x4b37f9][_0x38f5('0x10a')])&&_0x35104d[_0x4b37f9][_0x38f5('0x78')][_0x38f5('0xdc')](_0x4d2244),_0x4c6cd8['end'][_0x38f5('0x63')](_0x35104d[_0x4b37f9][_0x38f5('0xa0')])&&_0x35104d[_0x4b37f9][_0x38f5('0x6e')]['push'](_0x4d2244);}[_0x38f5('0xea')](_0x4531b,_0x31f245){let _0x375172=[],_0x1137d2=0x0,_0x23456e=0x0;for(;_0x1137d2<_0x4531b[_0x38f5('0x40')]||_0x23456e<_0x31f245[_0x38f5('0x40')];){const _0x3ec118=_0x4531b[_0x1137d2]||{},_0xe18712=_0x31f245[_0x23456e]||{};if(_0x3ec118['id']==_0xe18712['id'])_0x1137d2++,_0x23456e++,_0x375172['push'](_0x3ec118);else{if(_0xe18712['isRemoved']&&_0x3ec118[_0x38f5('0x22')]){const {commonTape:_0x4bdfdf,iEnd:_0x333f4b,jEnd:_0x21d3a1}=this['_threeWayMerge'](_0x4531b,_0x1137d2,_0x31f245,_0x23456e);_0x375172=_0x375172['concat'](_0x4bdfdf),_0x1137d2=_0x333f4b,_0x23456e=_0x21d3a1;}else _0xe18712['isRemoved']?(_0x23456e++,_0x375172[_0x38f5('0xdc')](_0xe18712)):(_0x1137d2++,_0x375172[_0x38f5('0xdc')](_0x3ec118));}}return _0x375172;}['_markSuggestions'](_0x26eb4a,_0x585dcb){const _0x14a367=[];for(let _0x2d8e73=0x0;_0x2d8e73<_0x26eb4a['length'];_0x2d8e73++){for(let _0x5264b0=0x0;_0x5264b0<_0x26eb4a[_0x2d8e73][_0x38f5('0x78')][_0x38f5('0x40')];_0x5264b0++){const _0x4487a8=_0x26eb4a[_0x2d8e73][_0x38f5('0x78')][_0x5264b0];if(!_0x585dcb[_0x38f5('0x77')](_0x4487a8))continue;const {group:_0x2bdf86,type:_0x422803,authorId:_0x2c596a}=_0x56a3c7(_0x4487a8);'revision-suggestion'!=_0x2bdf86||_0x38f5('0xad')!=_0x422803&&_0x38f5('0x69')!=_0x422803||(_0x14a367[_0x38f5('0xbd')]({'type':_0x422803,'name':_0x4487a8,'userId':_0x2c596a}),_0x26eb4a[_0x2d8e73][_0x38f5('0x78')][_0x38f5('0xdf')](_0x5264b0,0x1),_0x5264b0--);}_0x195156(_0x26eb4a[_0x2d8e73]);for(let _0x4a7679=0x0;_0x4a7679<_0x26eb4a[_0x2d8e73][_0x38f5('0x6e')]['length'];_0x4a7679++){const _0x4465c2=_0x26eb4a[_0x2d8e73][_0x38f5('0x6e')][_0x4a7679];if(!_0x585dcb['has'](_0x4465c2))continue;const {group:_0x3368bf,type:_0x119f4a}=_0x56a3c7(_0x4465c2);if('revision-suggestion'!=_0x3368bf||_0x38f5('0xad')!=_0x119f4a&&'deletion'!=_0x119f4a)continue;_0x26eb4a[_0x2d8e73]['markersEnd'][_0x38f5('0xdf')](_0x4a7679,0x1),_0x4a7679--;const _0x257669=_0x14a367['findIndex'](_0x1aa481=>_0x1aa481[_0x38f5('0xd4')]==_0x4465c2);_0x257669>-0x1&&_0x14a367[_0x38f5('0xdf')](_0x257669,0x1);}}function _0x56a3c7(_0x2a8f05){const _0x1f1292=_0x2a8f05[_0x38f5('0xb7')](':');return{'group':_0x1f1292[0x0],'type':_0x1f1292[0x1],'subType':_0x1f1292[_0x38f5('0x40')]>=0x5?_0x1f1292[0x2]:null,'id':_0x1f1292[_0x38f5('0x40')]<0x5?_0x1f1292[0x2]:_0x1f1292[0x3],'authorId':_0x1f1292[_0x38f5('0x40')]<0x5?_0x1f1292[0x3]:_0x1f1292[0x4],'markerCount':0x6==_0x1f1292[_0x38f5('0x40')]?_0x1f1292[0x5]:null};}function _0x195156(_0x297665){for(let _0x46e393=0x0;_0x46e393<_0x14a367['length'];_0x46e393++){if(_0x297665[_0x38f5('0x22')]&&'insertion'==_0x14a367[_0x46e393][_0x38f5('0x117')])return _0x297665[_0x38f5('0x6b')]=_0x14a367[_0x46e393],void delete _0x297665['isAdded'];if(!_0x297665[_0x38f5('0x22')]&&!_0x297665[_0x38f5('0x3f')]&&_0x38f5('0x69')==_0x14a367[_0x46e393]['type'])return void(_0x297665['isRemoveSuggestion']=_0x14a367[_0x46e393]);}}}[_0x38f5('0x3e')](_0x5c8776,_0x34f4d9){let _0x1b0084=0x0,_0x589adf=!0x1;const _0x3a504e=new Map();for(const _0x4bf57d of _0x5c8776)_0x4bf57d[_0x34f4d9]?_0x589adf&&(_0x1b0084++,_0x589adf=!0x1):(_0x1b0084++,_0x589adf=!0x0),_0x3a504e['set'](_0x4bf57d['id'],_0x1b0084);for(let _0x11a4bf=0x0;_0x11a4bf<_0x5c8776[_0x38f5('0x40')];_0x11a4bf++){if(_0x38f5('0x3f')==_0x34f4d9&&_0x5c8776[_0x11a4bf]['isAdded']||_0x38f5('0x22')==_0x34f4d9&&_0x5c8776[_0x11a4bf][_0x38f5('0x3f')])continue;if(_0x38f5('0x119')==_0x5c8776[_0x11a4bf][_0x38f5('0x117')]){_0x5c8776[_0x11a4bf][_0x38f5('0x24')]=0x0;continue;}const _0x10bd85=_0x3a504e[_0x38f5('0xf0')](_0x5c8776[_0x11a4bf]['pairId']),_0x2fef97=_0x3a504e[_0x38f5('0xf0')](_0x5c8776[_0x11a4bf]['id']);_0x5c8776[_0x11a4bf]['distance']=_0x10bd85-_0x2fef97;}}[_0x38f5('0x91')](_0x5b8271,_0x38d3b7,_0x1786f8=!0x1){const _0x35c73e=[];let _0x1211ab=this[_0x38f5('0x105')][_0x38f5('0x53')](_0x5b8271),_0x227c9a=this[_0x38f5('0x105')]['getIndex'](_0x38d3b7);for(-0x1==_0x227c9a&&(_0x227c9a=this[_0x38f5('0x105')][_0x38f5('0xe6')]['length'],_0x1786f8=!0x1);_0x1211ab<_0x227c9a;)_0x35c73e['push'](this['repository']['getRevision'](_0x1211ab)),_0x1211ab++;return _0x1786f8&&_0x35c73e[_0x38f5('0xdc')](this[_0x38f5('0x105')][_0x38f5('0x56')](_0x1211ab)),_0x35c73e;}['_threeWayMerge'](_0x162c84,_0x17c33a,_0x5885b4,_0x33cd17){const _0x36f2f8=this[_0x38f5('0x18')][_0x38f5('0xf3')][_0x38f5('0x112')];let _0x32819b=_0x17c33a;for(;_0x162c84[_0x32819b]&&_0x162c84[_0x32819b][_0x38f5('0x22')];)_0x32819b++;let _0x451579=_0x33cd17;for(;_0x5885b4[_0x451579]&&_0x5885b4[_0x451579][_0x38f5('0x3f')];)_0x451579++;_0x45d136(_0x162c84,_0x17c33a,_0x32819b),_0x45d136(_0x5885b4,_0x33cd17,_0x451579);const _0xdf644d=_0x5885b4['slice'](_0x33cd17,_0x451579)[_0x38f5('0x80')](_0x162c84['slice'](_0x17c33a,_0x32819b));return _0xdf644d['sort']((_0x3fb91c,_0x2ebc87)=>_0x3fb91c[_0x38f5('0xfd')]!=_0x2ebc87[_0x38f5('0xfd')]?_0x3fb91c[_0x38f5('0xfd')]-_0x2ebc87[_0x38f5('0xfd')]:_0x3fb91c[_0x38f5('0x2')]!=_0x2ebc87[_0x38f5('0x2')]?_0x3fb91c[_0x38f5('0x2')]-_0x2ebc87[_0x38f5('0x2')]:_0x3fb91c[_0x38f5('0x24')]!=_0x2ebc87[_0x38f5('0x24')]?_0x2ebc87['distance']-_0x3fb91c['distance']:!!_0x3fb91c[_0x38f5('0x22')]!=!!_0x2ebc87[_0x38f5('0x22')]?-0x1==_0x3fb91c[_0x38f5('0xfd')]||0x0==_0x3fb91c['side']?_0x3fb91c[_0x38f5('0x22')]?-0x1:0x1:_0x3fb91c['isAdded']?0x1:-0x1:_0x3fb91c['index']-_0x2ebc87[_0x38f5('0x11c')]),{'commonTape':_0xdf644d,'iEnd':_0x32819b,'jEnd':_0x451579};function _0x45d136(_0x11f8b9,_0x19f4b8,_0x222434){let _0x26e557=-0x1,_0x2d15f2=Number[_0x38f5('0x5b')],_0x160e48=!0x0;for(let _0x41e52a=_0x19f4b8;_0x41e52a<_0x222434;_0x41e52a++)if(_0x36f2f8['isInline'](_0x11f8b9[_0x41e52a][_0x38f5('0x2f')])||(_0x160e48=!0x1),_0x11f8b9[_0x41e52a][_0x38f5('0x2f')][_0x38f5('0x100')]<_0x19f4b8&&(_0x26e557=_0x41e52a),_0x11f8b9[_0x41e52a][_0x38f5('0x2f')][_0x38f5('0x8')]>=_0x222434){_0x2d15f2=_0x41e52a;break;}_0x160e48&&(_0x26e557=_0x222434-0x1);for(let _0x43c7cf=_0x19f4b8;_0x43c7cf<_0x222434;_0x43c7cf++)_0x11f8b9[_0x43c7cf]['side']=_0x43c7cf<=_0x26e557?-0x1:_0x43c7cf<_0x2d15f2?0x0:0x1,_0x11f8b9[_0x43c7cf]['index']=_0x43c7cf;let _0x24e0bc=0x0;for(let _0xaa18ba=_0x19f4b8;_0xaa18ba<=_0x26e557;_0xaa18ba++)0x0==_0x11f8b9[_0xaa18ba][_0x38f5('0x24')]?_0x11f8b9[_0xaa18ba][_0x38f5('0x2')]=_0x24e0bc:(_0x24e0bc++,_0x11f8b9[_0xaa18ba]['level']=_0x24e0bc,_0x24e0bc++);for(let _0x38572d=_0x19f4b8;_0x38572d<_0x222434;_0x38572d++)0x0==_0x11f8b9[_0x38572d][_0x38f5('0xfd')]&&(_0x11f8b9[_0x38572d]['level']=_0x24e0bc);_0x24e0bc=0x0;for(let _0x4d6c9c=_0x222434-0x1;_0x4d6c9c>=_0x2d15f2;_0x4d6c9c--)0x0==_0x11f8b9[_0x4d6c9c][_0x38f5('0x24')]?_0x11f8b9[_0x4d6c9c]['level']=_0x24e0bc:(_0x24e0bc--,_0x11f8b9[_0x4d6c9c]['level']=_0x24e0bc,_0x24e0bc--);}}[_0x38f5('0x43')](_0x3a163c){const _0x5bcb8d=new Map(),_0x5d7cde=this[_0x38f5('0x18')][_0x38f5('0xf3')]['schema'];for(let _0x10cb88=0x1;_0x10cb88<_0x3a163c[_0x38f5('0x40')];_0x10cb88++){let _0x5cac18,_0x2f97b4,_0x56b3da;const _0x5d9c58=_0x3a163c[_0x10cb88],_0x362fce=_0x3a163c[_0x10cb88-0x1];if('text'==_0x5d9c58['type'])continue;if(_0x5d9c58[_0x38f5('0x117')]!=_0x362fce[_0x38f5('0x117')])continue;if(!_0x5d7cde['isBlock'](_0x362fce[_0x38f5('0x2f')])||_0x5d7cde['isLimit'](_0x362fce[_0x38f5('0x2f')]))continue;if(!_0x5d7cde[_0x38f5('0x1')](_0x5d9c58[_0x38f5('0x2f')])||_0x5d7cde[_0x38f5('0x9a')](_0x5d9c58[_0x38f5('0x2f')]))continue;if((_0x3a163c[_0x10cb88][_0x38f5('0x22')]||_0x3a163c[_0x10cb88][_0x38f5('0x6b')])&&_0x3a163c[_0x10cb88-0x1][_0x38f5('0x3f')])_0x5cac18=_0x3a163c[_0x10cb88],_0x2f97b4=_0x3a163c[_0x10cb88-0x1],_0x56b3da=_0x10cb88-0x1;else{if(!_0x3a163c[_0x10cb88]['isRemoved']||!_0x3a163c[_0x10cb88-0x1][_0x38f5('0x22')]&&!_0x3a163c[_0x10cb88-0x1][_0x38f5('0x6b')])continue;_0x5cac18=_0x3a163c[_0x10cb88-0x1],_0x2f97b4=_0x3a163c[_0x10cb88],_0x56b3da=_0x10cb88;}const _0x8a4496=_0x5cac18[_0x38f5('0x2')]==_0x2f97b4[_0x38f5('0x2')],_0x49124d=Math[_0x38f5('0x4c')](_0x5cac18['level'])<Math['abs'](_0x2f97b4[_0x38f5('0x2')])&&0x0==_0x2f97b4[_0x38f5('0x24')];(_0x8a4496||_0x49124d)&&(_0x5bcb8d[_0x38f5('0x6f')](_0x2f97b4['id'],_0x5cac18['id']),_0x3a163c[_0x38f5('0xdf')](_0x56b3da,0x1),_0x10cb88--,_0x5cac18[_0x38f5('0x22')]=!0x1);}for(let _0x2d9c1a=0x0;_0x2d9c1a<_0x3a163c[_0x38f5('0x40')];_0x2d9c1a++)_0x5bcb8d['has'](_0x3a163c[_0x2d9c1a][_0x38f5('0x87')])&&(_0x3a163c[_0x2d9c1a][_0x38f5('0x87')]=_0x5bcb8d['get'](_0x3a163c[_0x2d9c1a][_0x38f5('0x87')]));}[_0x38f5('0x42')](_0x22d673){const _0x2350cb=new Set(_0x22d673[_0x38f5('0x83')](_0xf99d0f=>_0xf99d0f['id']));for(let _0x45f18c=0x0;_0x45f18c<_0x22d673[_0x38f5('0x40')];_0x45f18c++)_0x2350cb[_0x38f5('0x77')](_0x22d673[_0x45f18c][_0x38f5('0x87')])||0x0==_0x22d673[_0x45f18c]['distance']||(_0x22d673[_0x45f18c]['isIncorrect']=!0x0);return _0x22d673[_0x38f5('0x71')](_0x3700cb=>!_0x3700cb['isIncorrect']);}['_markMismatchedRemovedTags'](_0x29aa59){const _0x4eb236=new Set();for(let _0x2354da=0x0;_0x2354da<_0x29aa59[_0x38f5('0x40')];_0x2354da++){if(_0x4eb236[_0x38f5('0x77')](_0x29aa59[_0x2354da]['id'])&&_0x29aa59[_0x2354da][_0x38f5('0x3f')]&&(_0x29aa59[_0x2354da][_0x38f5('0x27')]=!0x0),_0x29aa59[_0x2354da][_0x38f5('0x27')])continue;if(0x0==_0x29aa59[_0x2354da][_0x38f5('0x24')])continue;if(_0x38f5('0x2c')!=_0x29aa59[_0x2354da][_0x38f5('0x117')])continue;if(null==_0x29aa59[_0x2354da]['pairId'])continue;let _0x1ad386=_0x2354da+0x1,_0x35aa8c=0x0;for(;_0x29aa59[_0x1ad386]['id']!=_0x29aa59[_0x2354da][_0x38f5('0x87')];)'elementStart'==_0x29aa59[_0x1ad386][_0x38f5('0x117')]?_0x35aa8c++:_0x38f5('0x25')==_0x29aa59[_0x1ad386][_0x38f5('0x117')]&&_0x35aa8c--,_0x1ad386++;if(0x0!=_0x35aa8c){if(_0x29aa59[_0x2354da][_0x38f5('0x3f')])_0x29aa59[_0x2354da][_0x38f5('0x27')]=!0x0;else for(;_0x1ad386!=_0x2354da;)_0x29aa59[_0x1ad386][_0x38f5('0x3f')]&&0x0!=_0x29aa59[_0x1ad386][_0x38f5('0x24')]&&(_0x29aa59[_0x1ad386][_0x38f5('0x27')]=!0x0,_0x4eb236[_0x38f5('0xe2')](_0x29aa59[_0x1ad386][_0x38f5('0x87')])),_0x1ad386--;}}return _0x29aa59[_0x38f5('0x71')](_0x3d0c47=>!_0x3d0c47['isIncorrect']);}['_removeUnsupportedChanges'](_0x886894){const _0x3e10f9=this[_0x38f5('0x18')][_0x38f5('0xf3')]['schema'];for(let _0x3bd3a5=0x0;_0x3bd3a5<_0x886894[_0x38f5('0x40')];_0x3bd3a5++){if(!(_0x886894[_0x3bd3a5][_0x38f5('0x22')]||_0x886894[_0x3bd3a5][_0x38f5('0x6b')]||_0x886894[_0x3bd3a5][_0x38f5('0x3f')]||_0x886894[_0x3bd3a5][_0x38f5('0x111')]))continue;if(0x0==_0x886894[_0x3bd3a5]['distance'])continue;const _0x34cdb4=_0x886894[_0x3bd3a5][_0x38f5('0x2f')];_0x3e10f9[_0x38f5('0x1')](_0x34cdb4)||_0x3e10f9[_0x38f5('0x9a')](_0x34cdb4)||(_0x886894[_0x3bd3a5][_0x38f5('0x22')]&&delete _0x886894[_0x3bd3a5]['isAdded'],_0x886894[_0x3bd3a5][_0x38f5('0x6b')]&&delete _0x886894[_0x3bd3a5][_0x38f5('0x6b')],_0x886894[_0x3bd3a5][_0x38f5('0x111')]&&delete _0x886894[_0x3bd3a5]['isRemoveSuggestion'],_0x886894[_0x3bd3a5][_0x38f5('0x3f')]&&(_0x886894[_0x3bd3a5][_0x38f5('0x27')]=!0x0));}return _0x886894[_0x38f5('0x71')](_0x333713=>!_0x333713[_0x38f5('0x27')]);}[_0x38f5('0xa')](_0x3ec23f,_0x5b92f5,_0x6239fc){const _0x1a6d3a=new _0x264425(),_0x12106a=[],_0x28ca2f=new Map(),_0x190411=this[_0x38f5('0x18')][_0x38f5('0xf3')],_0x56c719=_0x190411['schema'],_0xc76410=[_0x1a6d3a],_0x363ba8={},_0x3217cb={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x292fe5=null;const _0x18bfa8=[0x0];for(let _0x3c33ad=0x0;_0x3c33ad<_0x3ec23f['length'];_0x3c33ad++){let _0x4234af,_0xa50406;if(_0x38f5('0x2c')===_0x3ec23f[_0x3c33ad][_0x38f5('0x117')]){_0x4234af=_0x190411['createPositionFromPath'](_0x1a6d3a,_0x18bfa8);const _0x1d717a=new _0x2e158a(_0x3ec23f[_0x3c33ad][_0x38f5('0x2f')][_0x38f5('0xd4')],_0x3ec23f[_0x3c33ad][_0x38f5('0x2f')]['getAttributes']());_0xc76410[0x0][_0x38f5('0x7')](_0x1d717a),_0x18bfa8[_0x38f5('0xdc')](0x0),_0xc76410[_0x38f5('0xbd')](_0x1d717a),_0xa50406=_0x190411['createPositionFromPath'](_0x1a6d3a,_0x18bfa8),_0x292fe5=null;}else{if('elementEnd'===_0x3ec23f[_0x3c33ad][_0x38f5('0x117')])_0xc76410['shift'](),_0x4234af=_0x190411[_0x38f5('0xec')](_0x1a6d3a,_0x18bfa8),_0x18bfa8[_0x38f5('0x8e')](),_0x18bfa8[_0x18bfa8['length']-0x1]++,_0xa50406=_0x190411[_0x38f5('0xec')](_0x1a6d3a,_0x18bfa8),_0x292fe5=null;else{if(_0x4234af=_0x190411['createPositionFromPath'](_0x1a6d3a,_0x18bfa8),_0x292fe5&&_0x401ee2(_0x292fe5,_0x3ec23f[_0x3c33ad][_0x38f5('0x2f')]))_0x292fe5[_0x38f5('0xe8')]+=_0x3ec23f[_0x3c33ad][_0x38f5('0x2f')][_0x38f5('0x7e')];else{const _0x502dc3=new _0x254439(_0x3ec23f[_0x3c33ad]['item'][_0x38f5('0x7e')],_0x3ec23f[_0x3c33ad][_0x38f5('0x2f')]['getAttributes']());_0xc76410[0x0][_0x38f5('0x7')](_0x502dc3),_0x292fe5=_0x502dc3;}_0x18bfa8[_0x18bfa8[_0x38f5('0x40')]-0x1]+=_0x3ec23f[_0x3c33ad]['item'][_0x38f5('0xf')],_0xa50406=_0x190411[_0x38f5('0xec')](_0x1a6d3a,_0x18bfa8);}}for(const _0x34bbf7 of _0x3ec23f[_0x3c33ad][_0x38f5('0x78')])_0x28ca2f[_0x38f5('0x6f')](_0x34bbf7,{'start':_0x4234af,'end':null});_0x17aa17(_0x38f5('0x111'),_0x3c33ad,_0x4234af,_0xa50406),_0x17aa17(_0x38f5('0x6b'),_0x3c33ad,_0x4234af,_0xa50406),_0x17aa17(_0x38f5('0x3f'),_0x3c33ad,_0x4234af,_0xa50406),_0x17aa17(_0x38f5('0x22'),_0x3c33ad,_0x4234af,_0xa50406);for(const _0x596cee of _0x3ec23f[_0x3c33ad][_0x38f5('0x6e')]){_0x28ca2f[_0x38f5('0xf0')](_0x596cee)[_0x38f5('0x13')]=_0xa50406;}}for(const [_0x2105f7,_0x2e296f]of _0x28ca2f){const _0x2d2b91=this[_0x38f5('0x18')]['model'][_0x38f5('0x96')](_0x2e296f['start'],_0x2e296f[_0x38f5('0x13')]);_0x1a6d3a[_0x38f5('0x85')][_0x38f5('0x6f')](_0x2105f7,_0x2d2b91);}return _0x12106a['sort']((_0x51561b,_0x358a3b)=>{const _0x408f87=_0x1a6d3a[_0x38f5('0x85')][_0x38f5('0xf0')](_0x38f5('0xc3')+_0x51561b['id']),_0x2f5296=_0x1a6d3a['markers'][_0x38f5('0xf0')](_0x38f5('0xc3')+_0x358a3b['id']);return _0x408f87[_0x38f5('0xb9')][_0x38f5('0x32')](_0x2f5296[_0x38f5('0xb9')])?-0x1:_0x408f87[_0x38f5('0xb9')]['isAfter'](_0x2f5296[_0x38f5('0xb9')])?0x1:_0x408f87[_0x38f5('0x13')]['isBefore'](_0x2f5296[_0x38f5('0x13')])?-0x1:_0x408f87['end']['isAfter'](_0x2f5296['end'])?0x1:_0x38f5('0xe2')===_0x51561b[_0x38f5('0x117')]?-0x1:0x1;}),{'root':_0x1a6d3a,'changes':_0x12106a};function _0x17aa17(_0x256d1d,_0x4a956d,_0x19c0ff,_0x290a64){const _0x3931a5=!!_0x3ec23f[_0x4a956d][_0x256d1d],_0x2765c3=_0x3931a5?_0x3ec23f[_0x4a956d][_0x256d1d][_0x38f5('0x1f')]:null,_0xc5a6e2=_0x4a956d===_0x3ec23f['length']-0x1,_0x33d5b1=_0x3217cb[_0x256d1d][0x0],_0x1a6ea3=_0x56c719['isObject'](_0x3ec23f[_0x4a956d][_0x38f5('0x2f')]);!_0x363ba8[_0x256d1d]&&_0x3931a5?_0x363ba8[_0x256d1d]={'start':_0x19c0ff,'tapeItem':_0x3ec23f[_0x4a956d],'userId':_0x2765c3,'type':_0x256d1d}:_0x363ba8[_0x256d1d]&&!_0x3931a5?(_0x363ba8[_0x256d1d][_0x38f5('0x13')]=_0x19c0ff,_0xd5228a(_0x363ba8[_0x256d1d]),_0x363ba8[_0x256d1d]=null):_0x363ba8[_0x256d1d]&&_0x3931a5&&_0x363ba8[_0x256d1d][_0x38f5('0x1f')]!==_0x2765c3&&(_0x363ba8[_0x256d1d][_0x38f5('0x13')]=_0x19c0ff,_0x33d5b1&&_0x33d5b1[_0x38f5('0x1f')]===_0x363ba8[_0x256d1d][_0x38f5('0x1f')]||_0xd5228a(_0x363ba8[_0x256d1d]),_0x363ba8[_0x256d1d]={'start':_0x19c0ff,'tapeItem':_0x3ec23f[_0x4a956d],'userId':_0x2765c3,'type':_0x256d1d}),_0x363ba8[_0x256d1d]&&_0x1a6ea3&&(_0x38f5('0x2c')!==_0x3ec23f[_0x4a956d]['type']||_0x33d5b1&&_0x33d5b1[_0x38f5('0x1f')]===_0x2765c3||_0x3217cb[_0x256d1d][_0x38f5('0xbd')]({'userId':_0x2765c3,'object':_0x3ec23f[_0x4a956d][_0x38f5('0x2f')],'change':_0x363ba8[_0x256d1d]}),_0x38f5('0x25')===_0x3ec23f[_0x4a956d][_0x38f5('0x117')]&&_0x33d5b1&&_0x33d5b1[_0x38f5('0xb6')]===_0x3ec23f[_0x4a956d][_0x38f5('0x2f')]&&(_0x3217cb[_0x256d1d][_0x38f5('0x113')](),_0x363ba8[_0x256d1d]=_0x33d5b1[_0x38f5('0xe7')])),_0x363ba8[_0x256d1d]&&_0xc5a6e2&&(_0x363ba8[_0x256d1d]['end']=_0x290a64,_0xd5228a(_0x363ba8[_0x256d1d]),_0x363ba8[_0x256d1d]=null);}function _0xd5228a({start:_0x1680c1,end:_0x5a52a6,tapeItem:_0x44729d,userId:_0x41216d,type:_0x29bf0e}){const _0x40b32e=_0x44729d['item'],_0x5aa633=_0x190411[_0x38f5('0x112')][_0x38f5('0x1')](_0x40b32e)&&!_0x190411[_0x38f5('0x112')]['isLimit'](_0x40b32e),_0x1123f1=_0x1680c1[_0x38f5('0x10f')]==_0x5a52a6[_0x38f5('0xcb')]&&_0x5a52a6[_0x38f5('0x1b')];if(_0x5aa633&&_0x1123f1)return;const _0x31d7da=_0x190411['createRange'](_0x1680c1,_0x5a52a6),_0x97f529=_0x5b92f5[_0x38f5('0xf0')](_0x41216d),_0x21a5df=new _0xb9e0aa({'author':_0x97f529,'type':'isAdded'==_0x29bf0e||_0x38f5('0x6b')==_0x29bf0e?'add':_0x38f5('0x38'),'data':{'isSuggestion':_0x38f5('0x6b')==_0x29bf0e||'isRemoveSuggestion'==_0x29bf0e},'createdAt':new Date(),'rootName':_0x6239fc});_0x12106a[_0x38f5('0xdc')](_0x21a5df),_0x1a6d3a[_0x38f5('0x85')][_0x38f5('0x6f')](_0x38f5('0xc3')+_0x21a5df['id'],_0x31d7da);}function _0x401ee2(_0x2b7886,_0x32c107){const _0x4beb0e=_0x2b7886[_0x38f5('0xeb')](),_0x57c730=_0x32c107[_0x38f5('0xeb')]();for(const _0x3947bb of _0x4beb0e){if(_0x3947bb[0x1]!==_0x32c107['getAttribute'](_0x3947bb[0x0]))return!0x1;_0x57c730[_0x38f5('0xd2')]();}return _0x57c730[_0x38f5('0xd2')]()[_0x38f5('0xfa')];}}['_setConversion'](){this[_0x38f5('0x18')][_0x38f5('0xab')]['for'](_0x38f5('0x50'))['dataToMarker']({'view':'revision'}),this[_0x38f5('0x18')]['conversion']['for'](_0x38f5('0xb5'))[_0x38f5('0xe1')]({'model':_0x38f5('0xa1'),'view':_0x58844c=>{const _0x5ad83e=_0x58844c[_0x38f5('0xbb')][_0x38f5('0xb7')](':')[0x1],_0x3f1511=this[_0x38f5('0x4a')](_0x5ad83e);if(!_0x3f1511)return null;const _0x361b76=_0x38f5('0xe2')==_0x3f1511[_0x38f5('0x117')]?_0x38f5('0xad'):_0x38f5('0x69'),_0x1b113f=[_0x38f5('0x55'),'ck-suggestion-marker-'+_0x361b76];return _0x3f1511[_0x38f5('0x7e')]['isSuggestion']&&_0x1b113f[_0x38f5('0xdc')](_0x38f5('0x7a')+_0x361b76+_0x38f5('0x65')),this[_0x38f5('0x3b')]==_0x3f1511&&_0x1b113f[_0x38f5('0xdc')](_0x38f5('0x57')),{'classes':_0x1b113f,'attributes':{'data-change-id':_0x5ad83e}};}}),this[_0x38f5('0x18')]['conversion'][_0x38f5('0x88')](_0x38f5('0x50'))[_0x38f5('0xe2')](_0x30f459=>{_0x30f459['on'](_0x38f5('0x58'),(_0x3f2ea1,_0x5ac9eb,_0x378ffd)=>{const _0x300d3f=_0x5ac9eb[_0x38f5('0x2a')]['getChild'](0x0);if(!_0x300d3f||!_0x300d3f['is'](_0x38f5('0xd9'),'code'))return;if(!_0x378ffd[_0x38f5('0x8c')][_0x38f5('0x4f')](_0x300d3f,{'attributes':['vid_start',_0x38f5('0x61')]}))return;const _0x53f9c1=_0x5ac9eb[_0x38f5('0xf5')][_0x38f5('0xb9')]['nodeAfter'];_0x378ffd[_0x38f5('0xf9')][_0x38f5('0x3c')](_0x38f5('0xac'),_0x300d3f[_0x38f5('0x6a')](_0x38f5('0xac')),_0x53f9c1),_0x378ffd[_0x38f5('0xf9')]['setAttribute'](_0x38f5('0x61'),_0x300d3f[_0x38f5('0x6a')]('vid_end'),_0x53f9c1);},{'priority':_0x38f5('0x10c')});}),this[_0x38f5('0x18')][_0x38f5('0xab')]['for'](_0x38f5('0x50'))[_0x38f5('0xe2')](_0x1ceaa5=>{_0x1ceaa5['on'](_0x38f5('0xd9'),(_0x5282da,_0x445f6e,_0x59d29f)=>{if(!_0x59d29f[_0x38f5('0x8c')][_0x38f5('0x4f')](_0x445f6e[_0x38f5('0x2a')],{'attributes':[_0x38f5('0xac'),_0x38f5('0x61')]}))return;if(_0x445f6e['modelRange'][_0x38f5('0x10')])return;const _0x42d218=_0x445f6e['modelRange'][_0x38f5('0xb9')][_0x38f5('0x10f')];_0x42d218[_0x38f5('0xae')](_0x38f5('0xac'))||_0x42d218['hasAttribute'](_0x38f5('0xe0'))||(_0x59d29f[_0x38f5('0xf9')][_0x38f5('0x3c')]('vid_start',_0x445f6e[_0x38f5('0x2a')][_0x38f5('0x6a')](_0x38f5('0xac')),_0x42d218),_0x59d29f[_0x38f5('0xf9')]['setAttribute']('vid_end',_0x445f6e[_0x38f5('0x2a')][_0x38f5('0x6a')](_0x38f5('0x61')),_0x42d218));},{'priority':_0x38f5('0x10c')});}),this[_0x38f5('0x18')][_0x38f5('0xab')][_0x38f5('0x88')](_0x38f5('0x50'))[_0x38f5('0x41')]({'view':{'name':_0x38f5('0x1e'),'attributes':{'vid':!0x0}},'model':{'key':_0x38f5('0xe0'),'value':_0x23b131=>_0x23b131['getAttribute']('vid')}}),this[_0x38f5('0x18')][_0x38f5('0xf3')][_0x38f5('0x112')]['on']('checkAttribute',(_0x3ee11b,[,_0x401a52])=>{[_0x38f5('0xac'),_0x38f5('0x61'),_0x38f5('0xe0')][_0x38f5('0x1c')](_0x401a52)&&(_0x3ee11b['return']=!0x0,_0x3ee11b['stop']());},{'priority':_0x38f5('0x70')}),this[_0x38f5('0x18')][_0x38f5('0xab')]['for'](_0x38f5('0x1d'))[_0x38f5('0xe2')](_0x1d0794=>{_0x1d0794['on']('attribute:vid',(_0x138654,_0x1270ae,_0x43ecd6)=>{if('\x20'!=_0x1270ae[_0x38f5('0x2f')]['data']||_0x1270ae[_0x38f5('0x2f')][_0x38f5('0xcb')][_0x38f5('0x33')]>0x1)return;if(!_0x43ecd6[_0x38f5('0x8c')][_0x38f5('0x4f')](_0x1270ae[_0x38f5('0x2f')],_0x138654[_0x38f5('0xd4')]))return;const _0x44fa85=_0x43ecd6[_0x38f5('0xf9')],_0x1bf616=_0x43ecd6['mapper'][_0x38f5('0xee')](_0x1270ae[_0x38f5('0x3a')]);_0x44fa85[_0x38f5('0xfb')](_0x1bf616,_0x44fa85[_0x38f5('0xda')](_0x38f5('0x1e')));});}),this['editor'][_0x38f5('0xab')][_0x38f5('0x88')](_0x38f5('0x1d'))[_0x38f5('0x94')]({'model':_0x38f5('0xa1')}),this[_0x38f5('0x18')][_0x38f5('0x8a')]['downcastDispatcher']['on']('addMarker:revision',function(_0x4c0d79){const _0x54f297=_0x4c0d79['plugins'][_0x38f5('0xf0')]('RevisionViewer');return(_0x45579e,_0x148c1d,_0x47c363)=>{const _0x38f264=_0x148c1d[_0x38f5('0xbb')][_0x38f5('0xb7')](':')[0x1],_0x2155e5=_0x54f297[_0x38f5('0x4a')](_0x38f264);if(!_0x2155e5)return null;const _0x2ee0a1=_0x38f5('0xe2')==_0x2155e5[_0x38f5('0x117')]?'split':_0x38f5('0x97');if(!_0x47c363[_0x38f5('0x8c')][_0x38f5('0x9')](_0x148c1d[_0x38f5('0x17')],_0x45579e[_0x38f5('0xd4')]))return;const _0x18b966=_0x148c1d[_0x38f5('0x17')][_0x38f5('0x8d')](),_0x118ed0=_0x148c1d[_0x38f5('0x17')][_0x38f5('0xb9')],_0x546997=_0x4c0d79[_0x38f5('0xf3')][_0x38f5('0x112')];let _0x4786e6=null,_0x2a1061=null,_0x595999=!0x1,_0x35575f=!0x1;for(const _0x385bde of _0x18b966){const _0x45df1d=_0x385bde[_0x38f5('0x2f')];_0x595999=_0x595999||_0x546997[_0x38f5('0xcf')](_0x45df1d);const _0x49f651=_0x47c363[_0x38f5('0xbe')][_0x38f5('0xd3')](_0x45df1d);if(_0x49f651&&_0x49f651['getCustomProperty']('addHighlight'))return;_0x38f5('0x25')==_0x385bde[_0x38f5('0x117')]&&(_0x546997['isBlock'](_0x45df1d)&&!_0x546997['isLimit'](_0x45df1d)&&(_0x45df1d[_0x38f5('0xc4')]||_0x118ed0['isAtEnd']?_0x4786e6&&_0x4786e6[_0x38f5('0xcb')]==_0x45df1d||(_0x4786e6=_0x45df1d,_0x1b74f4(_0x385bde['previousPosition']),_0x35575f=!0x0):_0x2a1061=_0x2a1061||_0x385bde[_0x38f5('0x10a')]));}function _0x1b74f4(_0x8cf677){const _0x475fcd=_0x47c363[_0x38f5('0xf9')]['createUIElement']('span',{'class':_0x38f5('0x7a')+_0x2ee0a1}),_0x2e59cd=_0x47c363['mapper']['toViewPosition'](_0x8cf677);_0x2155e5[_0x38f5('0x7e')][_0x38f5('0x5f')]&&_0x47c363[_0x38f5('0xf9')][_0x38f5('0xf1')](_0x38f5('0x7a')+_0x2ee0a1+_0x38f5('0x65'),_0x475fcd),_0x54f297['activeChange']==_0x2155e5&&_0x47c363[_0x38f5('0xf9')]['addClass'](_0x38f5('0x57'),_0x475fcd),_0x47c363[_0x38f5('0xf9')][_0x38f5('0xfe')](_0x2e59cd,_0x475fcd),_0x47c363[_0x38f5('0xbe')][_0x38f5('0xa5')](_0x475fcd,_0x148c1d['markerName']);}_0x595999||_0x35575f||!_0x2a1061||_0x1b74f4(_0x2a1061);};}(this[_0x38f5('0x18')]),{'priority':_0x38f5('0x7f')}),this[_0x38f5('0x18')][_0x38f5('0x8a')]['downcastDispatcher']['on']('removeMarker:revision',(_0x4a3a44,_0x46907e,_0x83f9)=>{const _0x3c0795=_0x83f9[_0x38f5('0xbe')][_0x38f5('0x6c')](_0x46907e['markerName']);if(_0x3c0795)for(const _0x336a0e of _0x3c0795)(_0x336a0e[_0x38f5('0x19')](_0x38f5('0xc8'))||_0x336a0e[_0x38f5('0x19')](_0x38f5('0xe9')))&&(_0x83f9[_0x38f5('0xbe')][_0x38f5('0x28')](_0x336a0e,_0x46907e[_0x38f5('0xbb')]),_0x83f9[_0x38f5('0xf9')][_0x38f5('0x38')](_0x336a0e));},{'priority':_0x38f5('0x7f')}),this[_0x38f5('0x18')]['editing']['downcastDispatcher']['on'](_0x38f5('0x115'),(_0x132974,_0x3e7696,_0x30d9d4)=>{const _0x288f4c=_0x3e7696['markerName'][_0x38f5('0xb7')](':')[0x1],_0xa2e52c=this[_0x38f5('0x4a')](_0x288f4c);if(!_0xa2e52c)return null;const _0x315f98='add'==_0xa2e52c[_0x38f5('0x117')]?_0x38f5('0xb7'):'merge';if(_0x30d9d4[_0x38f5('0x8c')][_0x38f5('0x9')](_0x3e7696[_0x38f5('0x17')],_0x132974[_0x38f5('0xd4')]))for(const _0x3e8315 of _0x3e7696['markerRange'][_0x38f5('0x84')]()){if(!_0x3e8315['is'](_0x38f5('0xd9'),_0x38f5('0x6d')))continue;const _0x321804=_0x30d9d4['writer']['createUIElement']('span',{'class':_0x38f5('0x7a')+_0x315f98}),_0x1318d3=_0x30d9d4[_0x38f5('0xbe')][_0x38f5('0xd5')](this['editor'][_0x38f5('0xf3')][_0x38f5('0xe4')](_0x3e8315));_0xa2e52c[_0x38f5('0x7e')][_0x38f5('0x5f')]&&_0x30d9d4[_0x38f5('0xf9')][_0x38f5('0xf1')](_0x38f5('0x7a')+_0x315f98+_0x38f5('0x65'),_0x321804),this['activeChange']==_0xa2e52c&&_0x30d9d4[_0x38f5('0xf9')][_0x38f5('0xf1')](_0x38f5('0x57'),_0x321804),_0x30d9d4[_0x38f5('0xf9')][_0x38f5('0xfe')](_0x1318d3,_0x321804),_0x30d9d4['mapper']['bindElementToMarker'](_0x321804,_0x3e7696[_0x38f5('0xbb')]);}},{'priority':_0x38f5('0x7f')}),this[_0x38f5('0x18')][_0x38f5('0xf3')][_0x38f5('0xc5')]['on'](_0x38f5('0xe7'),()=>{this[_0x38f5('0x18')][_0x38f5('0x8a')][_0x38f5('0x114')][_0x38f5('0xe7')](_0x421a0d=>{for(const _0x2af9fb of this[_0x38f5('0x18')][_0x38f5('0xf3')]['document'][_0x38f5('0x34')]()){const _0x71e751=this[_0x38f5('0x18')]['model']['document'][_0x38f5('0x11b')](_0x2af9fb),_0x1ce798=this[_0x38f5('0x18')][_0x38f5('0x8a')][_0x38f5('0x114')]['document']['getRoot'](_0x2af9fb);if(_0x1ce798){const _0x3c43f8=_0x71e751[_0x38f5('0x6a')](_0x38f5('0x46'));if(_0x421a0d[_0x38f5('0x52')]('data-change-id',_0x1ce798),_0x421a0d[_0x38f5('0x11')](_0x38f5('0xc2'),_0x1ce798),_0x421a0d['removeClass']('ck-revision-history-root-remove',_0x1ce798),_0x421a0d[_0x38f5('0x11')]('ck-revision-history-root--active',_0x1ce798),_0x3c43f8){const _0x29a0cc=this[_0x38f5('0x4a')](_0x3c43f8);if(!_0x29a0cc)return null;_0x421a0d['setAttribute'](_0x38f5('0x48'),_0x3c43f8,_0x1ce798),_0x421a0d[_0x38f5('0xf1')](_0x38f5('0x81')+_0x29a0cc['type'],_0x1ce798),this[_0x38f5('0x3b')]==_0x29a0cc&&_0x421a0d[_0x38f5('0xf1')](_0x38f5('0x62'),_0x1ce798);}}}});}),this['editor'][_0x38f5('0xab')][_0x38f5('0x88')](_0x38f5('0x50'))['dataToMarker']({'view':_0x38f5('0xd7'),'model':_0x3315ad=>_0x38f5('0xc1')+_0x3315ad,'converterPriority':'highest'}),this[_0x38f5('0x18')][_0x38f5('0xab')][_0x38f5('0x88')](_0x38f5('0x50'))['dataToMarker']({'view':'suggestion','model':_0x1f508f=>_0x38f5('0x101')+_0x1f508f,'converterPriority':_0x38f5('0x70')}),this[_0x38f5('0x18')]['conversion'][_0x38f5('0x88')]('dataDowncast')[_0x38f5('0x94')]({'model':_0x38f5('0x4e'),'view':_0x3d7eee=>({'name':'suggestion:'+_0x3d7eee,'group':_0x38f5('0x4e')}),'converterPriority':'highest'}),this[_0x38f5('0x18')][_0x38f5('0xab')][_0x38f5('0x88')](_0x38f5('0xb5'))['markerToHighlight']({'model':'revision-suggestion','view':_0x3fcbc5=>{const _0x176549=_0x3fcbc5[_0x38f5('0xbb')][_0x38f5('0xb7')](':')[0x1];return'insertion'!=_0x176549&&_0x38f5('0x69')!=_0x176549?null:{'classes':['ck-suggestion-preview-marker',_0x38f5('0x16')+_0x176549]};}}),this[_0x38f5('0x18')][_0x38f5('0x8a')][_0x38f5('0xd1')]['on'](_0x38f5('0x29'),et(this['editor'],_0x38f5('0x97')),{'priority':_0x38f5('0x7f')}),this[_0x38f5('0x18')][_0x38f5('0x8a')][_0x38f5('0xd1')]['on'](_0x38f5('0x1a'),et(this[_0x38f5('0x18')],'split'),{'priority':_0x38f5('0x7f')}),this[_0x38f5('0x18')][_0x38f5('0x8a')][_0x38f5('0xd1')]['on'](_0x38f5('0xb0'),(_0x16ad5b,_0x12535d,_0x2fd3ec)=>{const _0x5373f0=_0x2fd3ec['mapper']['markerNameToElements'](_0x12535d['markerName']);if(_0x5373f0)for(const _0x30d4cb of _0x5373f0)_0x30d4cb['is'](_0x38f5('0x0'))&&(_0x2fd3ec[_0x38f5('0xbe')][_0x38f5('0x28')](_0x30d4cb,_0x12535d[_0x38f5('0xbb')]),_0x2fd3ec['writer'][_0x38f5('0x38')](_0x30d4cb));},{'priority':_0x38f5('0x7f')});}[_0x38f5('0x4a')](_0x34d7f9){return this[_0x38f5('0x26')][_0x38f5('0xf0')](_0x34d7f9);}['_getViewForChange'](_0x55e84b){return this[_0x38f5('0x4b')]&&this['_changeView'][_0x38f5('0xd0')](),this['_changeView']=new _0x37db78(this[_0x38f5('0x18')][_0x38f5('0xa7')],_0x55e84b),this[_0x38f5('0x4b')];}[_0x38f5('0x74')](){this[_0x38f5('0x18')][_0x38f5('0xf3')][_0x38f5('0xc5')]['selection'][_0x38f5('0x102')](_0x38f5('0xa1')),this['on'](_0x38f5('0x3d'),(_0x15595d,_0x9ab2de,_0x8c7871,_0x5a6ae0)=>{_0x5a6ae0&&this[_0x38f5('0x92')][_0x38f5('0x38')](_0x5a6ae0),_0x8c7871&&(this[_0x38f5('0x92')]['add']({'view':_0x8c7871,'stackId':_0x38f5('0xa4'),'position':{'target':()=>{const _0x447546=this['editor'][_0x38f5('0x8a')],_0x1f1516=this['_getChangeFromId'](_0x8c7871['changeId']);let _0x23a3e1;if(_0x1f1516[_0x38f5('0x7e')][_0x38f5('0xe')]){const _0x2ea35c=_0x447546[_0x38f5('0x114')][_0x38f5('0xb4')](_0x1f1516[_0x38f5('0x7c')]);_0x23a3e1=Array[_0x38f5('0x54')](_0x2ea35c[_0x38f5('0x20')]());}else{const _0x3b9c0a=this[_0x38f5('0x18')][_0x38f5('0xf3')]['markers']['get'](_0x38f5('0xc3')+_0x8c7871[_0x38f5('0x109')]);_0x23a3e1=Array['from'](_0x447546['mapper'][_0x38f5('0x6c')](_0x3b9c0a[_0x38f5('0xd4')]))[_0x38f5('0x83')](_0x4b4d8e=>_0x447546[_0x38f5('0x114')][_0x38f5('0x39')][_0x38f5('0x5')](_0x4b4d8e))[_0x38f5('0x83')](_0x1ed3af=>Array[_0x38f5('0x54')](_0x1ed3af['getClientRects']()))[_0x38f5('0x59')]();}if(!this[_0x38f5('0x99')])return _0x23a3e1[0x0];return _0x23a3e1[_0x38f5('0x35')](_0x386d47=>_0x386d47['top']-0x3<=this[_0x38f5('0x99')]['y']&&_0x386d47[_0x38f5('0xed')]+0x3>=this[_0x38f5('0x99')]['y']&&_0x386d47[_0x38f5('0x47')]-0x3<=this[_0x38f5('0x99')]['x']&&_0x386d47[_0x38f5('0x108')]+0x3>=this['_activeViewTarget']['x'])||_0x23a3e1[0x0];}}}),this[_0x38f5('0x92')]['showStack']('revisionHistoryLabel'));}),this['on'](_0x38f5('0xd8'),(_0x6aa20,_0x7d3113,_0x2ac001,_0x350b16)=>{this['activeView']=_0x2ac001?this[_0x38f5('0x9d')](_0x2ac001):null,this['editor']['model'][_0x38f5('0xe7')](()=>{const _0x36bf30=this['editor']['editing'];_0x350b16&&(_0x350b16['data'][_0x38f5('0xe')]?_0x36bf30[_0x38f5('0x114')]['change'](_0x139aec=>{_0x139aec[_0x38f5('0x11')](_0x38f5('0x62'),_0x36bf30[_0x38f5('0x114')][_0x38f5('0xc5')][_0x38f5('0x11b')](_0x350b16[_0x38f5('0x7c')]));}):_0x36bf30[_0x38f5('0x98')](_0x38f5('0xc3')+_0x350b16['id'])),_0x2ac001&&(_0x2ac001['data'][_0x38f5('0xe')]?_0x36bf30[_0x38f5('0x114')]['change'](_0x4324fa=>{_0x4324fa[_0x38f5('0xf1')](_0x38f5('0x62'),_0x36bf30[_0x38f5('0x114')]['document'][_0x38f5('0x11b')](_0x2ac001[_0x38f5('0x7c')]));}):_0x36bf30[_0x38f5('0x98')](_0x38f5('0xc3')+_0x2ac001['id']));});}),this[_0x38f5('0x9e')](this[_0x38f5('0x18')]['editing'][_0x38f5('0x114')][_0x38f5('0xc5')],_0x38f5('0x4d'),(_0x36f1e3,_0x237179)=>{if(this[_0x38f5('0x3b')])return;const _0x1e7c43=this['_findChangeIdFromDomTarget'](_0x237179[_0x38f5('0xc7')]),_0x3639fb=this[_0x38f5('0x26')][_0x38f5('0xf0')](_0x1e7c43);_0x3639fb?(this['_activeViewTarget']={'x':_0x237179['domEvent']['x'],'y':_0x237179[_0x38f5('0xf7')]['y']},this[_0x38f5('0xa2')]=this[_0x38f5('0x9d')](_0x3639fb)):(this[_0x38f5('0x99')]=null,this[_0x38f5('0xa2')]=null);}),this[_0x38f5('0x9e')](this[_0x38f5('0x18')][_0x38f5('0x8a')][_0x38f5('0x114')]['document'],_0x38f5('0xdd'),(_0x24d329,_0x51ed69)=>{const _0x36415c=this['_findChangeIdFromDomTarget'](_0x51ed69[_0x38f5('0xc7')]),_0x47eeb8=this['_changeIdToChange'][_0x38f5('0xf0')](_0x36415c);_0x47eeb8?(this['_activeViewTarget']={'x':_0x51ed69[_0x38f5('0xf7')]['x'],'y':_0x51ed69[_0x38f5('0xf7')]['y']},_0x47eeb8===this[_0x38f5('0x3b')]?this['_balloon']['updatePosition']():this[_0x38f5('0x3b')]=_0x47eeb8):(this[_0x38f5('0x99')]=null,this[_0x38f5('0x3b')]=null);});}[_0x38f5('0x15')](_0x47b6c8){do{const _0x462ea2=_0x47b6c8[_0x38f5('0x6a')](_0x38f5('0x48'));if(_0x462ea2)return _0x462ea2;_0x47b6c8=_0x47b6c8['parent'];}while(_0x47b6c8);return null;}[_0x38f5('0xde')](){this[_0x38f5('0x18')][_0x38f5('0xf3')][_0x38f5('0xe7')](_0x36be29=>{for(const _0x881ced of this[_0x38f5('0x18')][_0x38f5('0xf3')][_0x38f5('0x85')])_0x36be29[_0x38f5('0xd')](_0x881ced);});}}function et(_0x5b1174,_0x41e5e7){return(_0x5f2d56,_0x3856f0,_0x54ad64)=>{if(!_0x54ad64[_0x38f5('0x8c')][_0x38f5('0x9')](_0x3856f0[_0x38f5('0x17')],_0x5f2d56[_0x38f5('0xd4')]))return;const _0x17262f=_0x3856f0[_0x38f5('0x17')]['getWalker'](),_0x28a90f=_0x3856f0[_0x38f5('0x17')]['start'],_0x444c42=_0x5b1174[_0x38f5('0xf3')][_0x38f5('0x112')];let _0x389bbb=null,_0x2a824d=null,_0x38e106=!0x1,_0x5df005=!0x1;for(const _0x8adc04 of _0x17262f){const _0x4aa92b=_0x8adc04[_0x38f5('0x2f')];_0x38e106=_0x38e106||_0x444c42[_0x38f5('0xcf')](_0x4aa92b);const _0x2697c1=_0x54ad64[_0x38f5('0xbe')][_0x38f5('0xd3')](_0x4aa92b);if(_0x2697c1&&_0x2697c1[_0x38f5('0xaf')](_0x38f5('0xe3')))return;_0x38f5('0x25')==_0x8adc04[_0x38f5('0x117')]&&(_0x444c42['isBlock'](_0x4aa92b)&&!_0x444c42[_0x38f5('0x9a')](_0x4aa92b)&&(_0x4aa92b[_0x38f5('0xc4')]||_0x28a90f['isAtEnd']?_0x389bbb&&_0x389bbb[_0x38f5('0xcb')]==_0x4aa92b||(_0x389bbb=_0x4aa92b,_0x24b9f0(_0x8adc04[_0x38f5('0x10a')]),_0x5df005=!0x0):_0x2a824d=_0x2a824d||_0x8adc04[_0x38f5('0x10a')]));}function _0x24b9f0(_0x712f35){const _0x49b192=_0x54ad64[_0x38f5('0xbe')]['toViewPosition'](_0x712f35),_0x514962=_0x54ad64[_0x38f5('0xf9')][_0x38f5('0x8b')](_0x38f5('0x1e'),{'class':_0x38f5('0x16')+_0x41e5e7});_0x54ad64[_0x38f5('0xf9')][_0x38f5('0xfe')](_0x49b192,_0x514962),_0x54ad64[_0x38f5('0xbe')][_0x38f5('0xa5')](_0x514962,_0x3856f0[_0x38f5('0xbb')]);}_0x38e106||_0x5df005||!_0x2a824d||_0x24b9f0(_0x2a824d);};}export class RestoreRevisionCommand extends _0x1f11d9{constructor(_0x48b0be){super(_0x48b0be);const _0x1a9488=_0x48b0be[_0x38f5('0x11a')][_0x38f5('0xf0')](d);this['affectsData']=!0x1,this[_0x38f5('0x9e')](_0x1a9488,_0x38f5('0xc9'),()=>this[_0x38f5('0x2d')]()),this[_0x38f5('0x9e')](_0x1a9488,_0x38f5('0x45'),()=>this[_0x38f5('0x2d')]());}['execute'](){const _0x51dad2=this[_0x38f5('0x18')],_0x5178bb=_0x51dad2[_0x38f5('0x11a')][_0x38f5('0xf0')](d),_0x4a28ad=_0x5178bb['isReady']?_0x5178bb[_0x38f5('0xcc')][_0x38f5('0xff')]:null;_0x51dad2[_0x38f5('0x7b')][_0x38f5('0xf0')](_0x38f5('0x9f'))[_0x38f5('0x7d')](_0x4a28ad);}[_0x38f5('0x2d')](){const {isReady:_0x29356a,isEnabled:_0x25f9a0}=this[_0x38f5('0x18')][_0x38f5('0x11a')][_0x38f5('0xf0')](d);this['isEnabled']=_0x29356a&&_0x25f9a0;}}export class ShowChangeCommand extends _0x1f11d9{constructor(_0x324159,{direction:_0x3dd532}){super(_0x324159);const _0x38232f=_0x324159[_0x38f5('0x11a')]['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3dd532?0x1:-0x1,this[_0x38f5('0x9e')](_0x38232f,_0x38f5('0xc9'),()=>this[_0x38f5('0x2d')]()),this['listenTo'](_0x38232f,'change:isEnabled',()=>this[_0x38f5('0x2d')]()),this[_0x38f5('0x9e')](_0x38232f,_0x38f5('0xd8'),()=>this['refresh']());}[_0x38f5('0x51')](){const _0x1778dd=this[_0x38f5('0x18')],_0x3e2eeb=_0x1778dd[_0x38f5('0x11a')][_0x38f5('0xf0')](d),{isNavigationMode:_0x3071e2,currentChangeNumber:_0x4ae790}=_0x3e2eeb;let _0x15455e;if(_0x3e2eeb[_0x38f5('0x3b')]=_0x3071e2?_0x3e2eeb[_0x38f5('0xcc')][_0x38f5('0x116')][_0x38f5('0xf0')](_0x4ae790+this['_step']):_0x3e2eeb['diff']['changes']['first'],_0x3e2eeb[_0x38f5('0x3b')][_0x38f5('0x7e')][_0x38f5('0xe')])_0x15455e=_0x1778dd[_0x38f5('0x8a')][_0x38f5('0x114')][_0x38f5('0xb4')](_0x3e2eeb[_0x38f5('0x3b')][_0x38f5('0x7c')]);else{const _0x4749ab=_0x1778dd[_0x38f5('0xf3')]['markers']['get'](_0x38f5('0xc3')+_0x3e2eeb['activeChange']['id']);_0x15455e=_0x1ef551(_0x1778dd['editing'],_0x4749ab);}_0x3703f8({'target':_0x15455e,'viewportOffset':0x28});}[_0x38f5('0x2d')](){const {isNavigationMode:_0x388b31,currentChangeNumber:_0x5bccdb,numberOfChanges:_0x48a116,isReady:_0x22cf7d,isEnabled:_0x4f017f}=this['editor'][_0x38f5('0x11a')]['get'](d);this[_0x38f5('0xd6')]=!!(_0x4f017f&&_0x22cf7d&&_0x48a116)&&(!_0x388b31||(0x1===this['_step']?_0x5bccdb<_0x48a116-0x1:_0x5bccdb>0x0));}}
23
+ const _0x5ce2=['markerNameToElements','_step','addHighlight','-new','_makeModelFromViewString','elementStart','deletion','changeId','_changeView','_update','isLimit','indexOf','endIndex','right','config','_setChanges','getRevisionData','mouseover','dataToMarker','end','mapper','values','wrap','mousedown','_initInteractions','forward','unbindElementFromMarkerName','_markSuggestions','_cleanMarkers','requires','_markMismatchedRemovedTags','revision-viewer','ck-revision-history-root--active','low','ck-suggestion-marker-','_removeRevisionMarkers','collaboration.channelId','reconvertMarker','item','ck-suggestion-preview-marker','resolve','text','highest','for','return','processor','setAttribute','upcast','elementEnd','abs','forceDisabled','restoreRevision','vid','observeMarkers','level','isAdded','_makeModelFromTape','getRoot','createRangeIn','shift','activeView','markersEnd','getCustomProperty','findIndex','ck-suggestion-marker','isSuggestion','markersStart','addMarker:revision-suggestion:insertion','createPositionFromPath','markerToHighlight','attributesBefore','revision-end','view','domConverter','deletions','editing','element','isAttached','createRevision','isBlock','insertion','comment','sort','start','clear','compare','_data','isAddSuggestion','next','_getChangeFromId','_removeUnsupportedChanges','isRemoved','isContent','oldRevisionId','left','revision','object','userId','get','attributes','_balloon','selection','vid_start','getIndex','data-revision-','getAttributes','isInline','then','refresh','viewItem','showNextChange','ck-suggestion-marker-split','keys','push','checkAttribute','_makeTape','suggestion','isObject','loadRevisionData','editingDowncast','_getDiff','enqueueChange','model','first','rootName','addRevision','isIncorrect','markerName','concat','RevisionViewer','element:pre','_refreshStartEndIndex','detachRoot','_changeIdToChange','startsWith','maxOffset','softBreak','string','forEach','code','map','destroy','side','markerToData','consumable','revision-suggestion','span','startIndex','domEvent','getDomRoot','revision-comment:','uiElement','ck-suggestion-marker--active','previousPosition','attribute:vid','type','top','dataDowncast','isOnRoot','_sortAndFilterDiffChanges','_cleanUp','getRevision','isAtStart','addClass','locale','bottom','ck-suggestion-marker-merge','change:isReady','isNavigationMode','children','removeMarker:revision','data-change-id','nextSibling','name','toViewRange','execute','splice','change:isEnabled','isAfter','changes','_getViewForChange','_findChangeIdFromDomTarget','parse','ck-revision-history-root-add','downcastDispatcher','plugins','consume','removeClass','isCollapsed','markers','elementToAttribute','toData','diffData','isRemoveSuggestion','revisionHistory','getAttribute','isReady','error','addMarker:revision','_setDistance','merge','index','has','_setConversion','modelRange','addRevisionData','updatePosition','marked','slice','createRange','_processTape','conversion','createPositionBefore','revision:','markerRange','data','commands','isBefore','createUIElement','getClientRects','from','toViewPosition','all','set','getWalker','editor','_appendChild','pop','bindElementToMarker','_getViewObj','useFillerType','insertions','nodeAfter','_removeMissingPairs','revisionHistoryLabel','newRevisionId','hasAttribute','hasClass','length','showPreviousChange','listenTo','attachChange','vid_end','showStack','restoreRevisionCallback','enableReadOnlyMode','adapter','split','_joinTapes','document','filter','remove','delete','change:activeView','_activeViewTarget','bind','revisionHistoryAttachChange','mapViewToDom','isEqual','repository','diff','distance','unshift','getItems','authors','getRootNames','pairId','schema','attributesAfter','change:numberOfChanges','addRoot','_revisions','change','change:activeChange','add','includes','insert','nextPosition','writer','revision-start','activeChange','high','_getRevisionsRange','parent','addMarker:revision-suggestion:deletion','isEnabled','_fixObsoleteTags','test'];(function(_0x716b06,_0x5ce296){const _0x535df3=function(_0x24b26f){while(--_0x24b26f){_0x716b06['push'](_0x716b06['shift']());}};_0x535df3(++_0x5ce296);}(_0x5ce2,0x81));const _0x535d=function(_0x716b06,_0x5ce296){_0x716b06=_0x716b06-0x0;let _0x535df3=_0x5ce2[_0x716b06];return _0x535df3;};import{Plugin as _0x23b346,Command as _0x576d13}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x50f832}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x3aeeb6}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x12f5c2,Element as _0x27ce57,Text as _0xbf2ef7,ViewDocumentFragment as _0x2f8368,ViewText as _0xb97a7,ViewElement as _0x585698,ViewContainerElement as _0x26b0ef,ViewAttributeElement as _0x5d68e9,ViewEmptyElement as _0x281988,ViewRawElement as _0x3fbd3b,ViewUIElement as _0x3b54ca}from'ckeditor5/src/engine.js';import{Users as _0x143886,getMarkerDomElement as _0x566da2}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x5a97c0 from'./ui/revisionviewer/changedetailsview.js';import _0x310104 from'./revisionsrepository.js';import _0x24f579 from'./changeitem.js';import{default as _0x3ea54d}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x3d04b6}from'lodash-es';const tt={'c':_0x26b0ef,'a':_0x5d68e9,'e':_0x281988,'r':_0x3fbd3b,'u':_0x3b54ca};export default class d extends _0x23b346{static get['pluginName'](){return _0x535d('0x0');}static get[_0x535d('0xbc')](){return[_0x143886,_0x3aeeb6,_0x310104];}constructor(_0x12e045){super(_0x12e045),this[_0x535d('0x82')]=this[_0x535d('0x60')][_0x535d('0x38')][_0x535d('0x101')]('RevisionsRepository'),this[_0x535d('0x5e')]('activeChange',null),this[_0x535d('0x5e')](_0x535d('0xdb'),null),this[_0x535d('0x7d')]=null,this[_0x535d('0x5e')](_0x535d('0x83'),null),this[_0x535d('0x5e')](_0x535d('0x43'),!0x1),this[_0x535d('0x5e')](_0x535d('0x9c'),!0x0),this['on'](_0x535d('0x30'),(_0x7a4e2b,_0x5a10e6,_0xdc23c)=>{this[_0x535d('0x97')]=null,this[_0x535d('0xdb')]=null,this['editor'][_0x535d('0xea')][_0x535d('0xe7')][_0x535d('0x8f')](_0x222a3d=>{for(const _0x31ccdc of this['editor'][_0x535d('0xea')]['view'][_0x535d('0x78')]['roots'])_0xdc23c?_0x222a3d[_0x535d('0x3a')]('ck-editor__editable__overlay',_0x31ccdc):_0x222a3d[_0x535d('0x22')]('ck-editor__editable__overlay',_0x31ccdc);});}),this['bind'](_0x535d('0x27'))['to'](this,_0x535d('0x97'),_0x2d26ed=>null!==_0x2d26ed),this[_0x535d('0x7e')]('currentChangeNumber')['to'](this,_0x535d('0x43'),this,'diff',this,'activeChange',(_0x385f6b,_0x112193,_0xbdc4ca)=>_0x385f6b&&_0xbdc4ca?_0x112193[_0x535d('0x32')]['getIndex'](_0xbdc4ca):0x0),this[_0x535d('0x7e')]('numberOfChanges')['to'](this,'isReady',this,_0x535d('0x83'),(_0x4be638,_0x287d46)=>_0x4be638?_0x287d46['changes'][_0x535d('0x6d')]:0x0),this[_0x535d('0xa7')]=null,this[_0x535d('0x4')]=new Map(),this[_0x535d('0x75')]=null,this['_balloon']=this[_0x535d('0x60')][_0x535d('0x38')][_0x535d('0x101')](_0x3aeeb6);}['init'](){const _0x76edc0=this[_0x535d('0x60')],_0x47b905=new ShowChangeCommand(_0x76edc0,{'direction':'backward'}),_0xab63ee=new ShowChangeCommand(_0x76edc0,{'direction':'forward'});(_0x76edc0[_0x535d('0x57')]['add'](_0x535d('0x6e'),_0x47b905),_0x76edc0[_0x535d('0x57')][_0x535d('0x91')](_0x535d('0x10d'),_0xab63ee),_0x76edc0['commands'][_0x535d('0x91')](_0x535d('0xd2'),new RestoreRevisionCommand(_0x76edc0)),this['on'](_0x535d('0x8c'),()=>{_0x47b905['refresh'](),_0xab63ee['refresh']();}),this['_setConversion'](),this[_0x535d('0xb7')](),_0x76edc0[_0x535d('0x74')](_0x535d('0xbe')),_0x76edc0[_0x535d('0x38')][_0x535d('0x49')]('WidgetToolbarRepository'))&&_0x76edc0[_0x535d('0x38')]['get']('WidgetToolbarRepository')[_0x535d('0xd1')]('revision-viewer');}async[_0x535d('0xaf')](_0x2d44d5){await this['loadRevisionData'](_0x2d44d5);const _0x1e37df={};for(const _0x59ea54 in _0x2d44d5[_0x535d('0x3f')]){if(_0x2d44d5['diffData'][_0x59ea54]['attachChange']&&!_0x2d44d5[_0x535d('0x3f')][_0x59ea54][_0x535d('0x70')][_0x535d('0xec')])continue;const _0x43e53c=this[_0x535d('0xc2')](JSON[_0x535d('0x35')](_0x2d44d5['diffData'][_0x59ea54][_0x535d('0x66')])),_0x1dc85d=this[_0x535d('0x60')][_0x535d('0xea')][_0x535d('0xe7')][_0x535d('0x78')],_0x51f25b=new _0x2f8368(_0x1dc85d,_0x43e53c['map'](_0x264070=>this[_0x535d('0x64')](_0x264070)));this['editor'][_0x535d('0x56')][_0x535d('0xcc')][_0x535d('0x65')](_0x535d('0x4e')),_0x1e37df[_0x59ea54]=this[_0x535d('0x60')][_0x535d('0x56')][_0x535d('0xcc')][_0x535d('0x3e')](_0x51f25b),this[_0x535d('0x60')][_0x535d('0x56')]['processor']['useFillerType']('default');}return _0x1e37df;}async['getRevisionRootsAttributes'](_0x1ed370){await this['loadRevisionData'](_0x1ed370);const _0x4dbbf0={};for(const _0x113752 in _0x1ed370[_0x535d('0x3f')])_0x1ed370[_0x535d('0x3f')][_0x113752][_0x535d('0x70')]&&!_0x1ed370[_0x535d('0x3f')][_0x113752][_0x535d('0x70')][_0x535d('0xec')]||(_0x4dbbf0[_0x113752]=_0x1ed370[_0x535d('0x3f')][_0x113752][_0x535d('0x8b')]||{});return _0x4dbbf0;}['_removeRevisionMarkers'](_0x40e53b){return(_0x40e53b=_0x40e53b[_0x535d('0x79')](_0x3f96d2=>!_0x3f96d2['name']||_0x535d('0x96')!==_0x3f96d2[_0x535d('0x2c')]&&_0x535d('0xe6')!==_0x3f96d2[_0x535d('0x2c')]))[_0x535d('0x9')](_0x4ab8cb=>{_0x535d('0x8')!=typeof _0x4ab8cb&&(_0x4ab8cb['children']=this[_0x535d('0xc2')](_0x4ab8cb[_0x535d('0x28')]),_0x4ab8cb[_0x535d('0x102')]=_0x4ab8cb[_0x535d('0x102')][_0x535d('0x79')](_0x16cfc0=>!_0x16cfc0[0x0][_0x535d('0x5')](_0x535d('0x107'))));}),_0x40e53b;}async[_0x535d('0xf4')](_0x3c68d1,_0x341e7,_0x45a3f2=!0x1){if(!this[_0x535d('0x9c')])return;const _0x1bfd5c=this[_0x535d('0x83')],_0xa35c97=this[_0x535d('0x82')],_0x292bfc=_0x535d('0x8')==typeof _0x3c68d1?_0xa35c97[_0x535d('0x20')](_0x3c68d1):_0x3c68d1,_0x46f402=_0x535d('0x8')==typeof _0x341e7?_0xa35c97[_0x535d('0x20')](_0x341e7):_0x341e7,_0x30cc70=_0x292bfc['id'],_0x313862=_0x46f402?_0x46f402['id']:null;if(!_0x45a3f2&&this[_0x535d('0x83')]&&this[_0x535d('0x83')]['newRevisionId']===_0x30cc70&&this['diff'][_0x535d('0xfc')]===_0x313862)return Promise[_0x535d('0xc7')]();this[_0x535d('0x43')]=!0x1,this[_0x535d('0xdb')]=null,this[_0x535d('0x97')]=null,this[_0x535d('0x83')]=new _0x3ea54d(_0x30cc70,_0x313862);const _0x5f3c1f=this['_getRevisionsRange'](_0x292bfc,_0x46f402,!0x0)[_0x535d('0xb')](_0x1d4c9b=>this[_0x535d('0x115')](_0x1d4c9b));return _0x5f3c1f[_0x535d('0x110')](new Promise(_0x55d754=>{setTimeout(_0x55d754,0x14);})),Promise[_0x535d('0x5d')](_0x5f3c1f)[_0x535d('0x10a')](()=>{if(!this[_0x535d('0x9c')])return;this['_cleanUp']();const _0x113cf1=this[_0x535d('0x117')](_0x30cc70,_0x313862);for(const _0x5606a3 of _0x113cf1[_0x535d('0x32')])this['_changeIdToChange'][_0x535d('0x5e')](_0x5606a3['id'],_0x5606a3);this[_0x535d('0x60')][_0x535d('0x119')][_0x535d('0x118')]({'isUndoable':!0x1},_0x3f9710=>{for(const _0x156c1d of this['editor'][_0x535d('0x119')][_0x535d('0x78')][_0x535d('0x88')]())_0x3f9710[_0x535d('0x3')](_0x156c1d);for(const _0x3c8fb5 of Object['keys'](_0x113cf1[_0x535d('0x119')])){const _0x750c1a=_0x3f9710[_0x535d('0x8d')](_0x3c8fb5);for(const _0xf7b513 of Object['keys'](_0x113cf1[_0x535d('0x102')][_0x3c8fb5]))_0x3f9710[_0x535d('0xcd')](_0xf7b513,_0x113cf1[_0x535d('0x102')][_0x3c8fb5][_0xf7b513],_0x750c1a);_0x3f9710[_0x535d('0x93')](_0x113cf1[_0x535d('0x119')][_0x3c8fb5],_0x750c1a,0x0);}}),this['diff'][_0x535d('0xae')](this[_0x535d('0x1e')](_0x113cf1[_0x535d('0x32')])),this[_0x535d('0x43')]=!0x0;})['catch'](_0x38c566=>{console[_0x535d('0x44')](_0x38c566),this[_0x535d('0x1f')](),_0x1bfd5c&&(this[_0x535d('0x83')]=_0x1bfd5c),this[_0x535d('0x43')]=!0x0;});}[_0x535d('0x4c')](_0x323d28,_0x2c9f6c){const _0x5d38eb=this[_0x535d('0x82')][_0x535d('0xed')](_0x323d28);return _0x5d38eb['on'](_0x535d('0xa8'),(_0x340210,_0x37b48c,_0x47c7e4)=>_0x2c9f6c(_0x37b48c,_0x47c7e4,_0x5d38eb)),this[_0x535d('0x82')][_0x535d('0x11c')](_0x5d38eb),_0x5d38eb;}[_0x535d('0x115')](_0x5849d7){if(!_0x5849d7||_0x5849d7[_0x535d('0x3f')])return Promise[_0x535d('0xc7')]();{const _0x33f9d4=this['editor'][_0x535d('0xad')]['get'](_0x535d('0xc3'));return this[_0x535d('0x75')]['getRevision']({'channelId':_0x33f9d4,'revisionId':_0x5849d7['id']})[_0x535d('0x10a')](_0x3c0359=>{_0x5849d7[_0x535d('0xa8')]({'diffData':_0x3c0359['diffData']},!0x0);});}}['_cleanUp'](){this[_0x535d('0x97')]=null,this[_0x535d('0xbb')](),this[_0x535d('0xa7')]&&this[_0x535d('0xa7')]['destroy'](),this[_0x535d('0xa7')]=null,this['_changeIdToChange'][_0x535d('0xf3')](),this[_0x535d('0x60')]['model'][_0x535d('0x118')]({'isUndoable':!0x1},_0x42afc1=>{for(const _0x35eab0 of this[_0x535d('0x60')][_0x535d('0x119')][_0x535d('0x78')][_0x535d('0x88')]())_0x42afc1['detachRoot'](_0x35eab0);});}[_0x535d('0x1e')](_0x51cd1c){const _0x4b756f=[],_0x5f1bad=new Map();for(const _0x13b3d8 of this[_0x535d('0x60')][_0x535d('0x119')]['document']['getRootNames']()){const _0x5c0ab9=this['editor'][_0x535d('0xea')][_0x535d('0xe7')][_0x535d('0x14')](_0x13b3d8);if(!_0x5c0ab9)continue;const _0x1def4f=_0x5c0ab9['getClientRects']()[_0x535d('0xc5')](0x0);_0x1def4f&&(_0x4b756f[_0x535d('0x110')](_0x13b3d8),_0x5f1bad[_0x535d('0x5e')](_0x13b3d8,_0x1def4f));}return _0x4b756f['sort']((_0x1c100c,_0x370320)=>{const _0x36cc01=_0x5f1bad[_0x535d('0x101')](_0x1c100c),_0x7c1c87=_0x5f1bad[_0x535d('0x101')](_0x370320);return _0x36cc01['y']-_0x7c1c87['y']||_0x36cc01['x']-_0x7c1c87['x'];}),(_0x51cd1c=_0x51cd1c[_0x535d('0x79')](_0x5ed58c=>_0x4b756f['includes'](_0x5ed58c[_0x535d('0x11b')])))[_0x535d('0xf1')]((_0x42de8d,_0x25c20a)=>_0x4b756f['indexOf'](_0x42de8d[_0x535d('0x11b')])-_0x4b756f[_0x535d('0xaa')](_0x25c20a['rootName'])),_0x51cd1c;}[_0x535d('0x112')](_0x2093d3){const _0x548a96=Array[_0x535d('0x5b')](_0x2093d3[_0x535d('0x3c')])[_0x535d('0x79')](([_0xccc828,_0x4aa4d1])=>_0xccc828[_0x535d('0x5')]('revision:')&&!_0x4aa4d1[_0x535d('0x3b')]),_0x29e324=Array['from'](this[_0x535d('0x60')][_0x535d('0x119')][_0x535d('0xd9')](_0x2093d3)[_0x535d('0x5f')]({'singleCharacters':!0x0}));if(0x0!=_0x548a96['length'])for(const _0x52d55c of _0x29e324){const [_0x1ba081,_0x598cf2]=_0x548a96[0x0],[,_0xfd7000,_0x271c41]=_0x1ba081[_0x535d('0x76')](':');if(_0x598cf2['end']['isEqual'](_0x52d55c[_0x535d('0x94')])&&_0x548a96[_0x535d('0xda')](),(_0x52d55c[_0x535d('0x18')][_0x535d('0x81')](_0x598cf2[_0x535d('0xf2')])||_0x52d55c['previousPosition'][_0x535d('0x31')](_0x598cf2[_0x535d('0xf2')]))&&('insertion'==_0xfd7000?_0x52d55c[_0x535d('0xd6')]={'userId':_0x271c41}:'deletion'==_0xfd7000&&(_0x52d55c[_0x535d('0xfa')]={'userId':_0x271c41})),0x0==_0x548a96['length'])break;}return _0x29e324;}['_refreshStartEndIndex'](_0x1fa240){const _0x1f63d2=new Map();for(let _0x5b7e3b=0x0;_0x5b7e3b<_0x1fa240['length'];_0x5b7e3b++)_0x535d('0xc8')===_0x1fa240[_0x5b7e3b][_0x535d('0x1a')]?(_0x1fa240[_0x5b7e3b][_0x535d('0xc5')][_0x535d('0x12')]=_0x5b7e3b,_0x1fa240[_0x5b7e3b][_0x535d('0xc5')]['endIndex']=_0x5b7e3b):(_0x535d('0xa4')===_0x1fa240[_0x5b7e3b][_0x535d('0x1a')]?_0x1fa240[_0x5b7e3b][_0x535d('0xc5')]['startIndex']=_0x5b7e3b:_0x535d('0xcf')===_0x1fa240[_0x5b7e3b]['type']&&(_0x1fa240[_0x5b7e3b]['item'][_0x535d('0xab')]=_0x5b7e3b),_0x1f63d2[_0x535d('0x5e')](_0x1fa240[_0x5b7e3b]['id'],_0x5b7e3b));for(const _0x1d3f32 of _0x1f63d2[_0x535d('0xb4')]())'elementStart'===_0x1fa240[_0x1d3f32][_0x535d('0x1a')]?_0x1fa240[_0x1d3f32]['item'][_0x535d('0xab')]=_0x1f63d2['get'](_0x1fa240[_0x1d3f32][_0x535d('0x89')]):_0x535d('0xcf')===_0x1fa240[_0x1d3f32][_0x535d('0x1a')]&&(_0x1fa240[_0x1d3f32][_0x535d('0xc5')][_0x535d('0x12')]=_0x1f63d2[_0x535d('0x101')](_0x1fa240[_0x1d3f32][_0x535d('0x89')]));}[_0x535d('0x51')](_0x49017f){for(let _0x272161=0x0;_0x272161<_0x49017f[_0x535d('0x6d')];_0x272161++){if(_0x535d('0xa4')===_0x49017f[_0x272161][_0x535d('0x1a')])_0x49017f[_0x272161][_0x535d('0xc5')][_0x535d('0x12')]=_0x272161;else{if(_0x535d('0xcf')===_0x49017f[_0x272161][_0x535d('0x1a')]){_0x49017f[_0x272161][_0x535d('0xc5')][_0x535d('0xab')]=_0x272161;const _0x44044a=_0x49017f[_0x272161]['item']['startIndex'];_0x49017f[_0x44044a][_0x535d('0x89')]=_0x49017f[_0x272161]['id'],_0x49017f[_0x272161]['pairId']=_0x49017f[_0x44044a]['id'];}else _0x49017f[_0x272161][_0x535d('0xc5')][_0x535d('0x12')]=_0x272161,_0x49017f[_0x272161]['item'][_0x535d('0xab')]=_0x272161,_0x49017f[_0x272161][_0x535d('0x89')]=null;}_0x49017f[_0x272161][_0x535d('0xe1')]||(_0x49017f[_0x272161][_0x535d('0xe1')]=[],_0x49017f[_0x272161][_0x535d('0xdc')]=[]);}}['_markInsertions'](_0x22016d,_0x413f96){const _0xb62dbd=_0x22016d[_0x535d('0x79')](_0x5158d0=>!_0x5158d0[_0x535d('0xd6')]);for(let _0x39ddf6=0x0;_0x39ddf6<_0x413f96[_0x535d('0x6d')];_0x39ddf6++)_0x413f96[_0x39ddf6][_0x535d('0xd6')]&&(_0xb62dbd[_0x39ddf6][_0x535d('0xd6')]=_0x413f96[_0x39ddf6][_0x535d('0xd6')]);}[_0x535d('0xa3')](_0x1564d6){const _0x475cb5=JSON['parse'](_0x1564d6),_0x36d424=this[_0x535d('0x60')]['editing'][_0x535d('0xe7')][_0x535d('0x78')],_0x567faa=new _0x2f8368(_0x36d424,_0x475cb5[_0x535d('0xb')](_0x4ff091=>this[_0x535d('0x64')](_0x4ff091)));return this['editor']['data']['toModel'](_0x567faa);}[_0x535d('0x64')](_0x16273b){const _0x281649=this[_0x535d('0x60')][_0x535d('0xea')]['view'][_0x535d('0x78')];if(_0x535d('0x8')==typeof _0x16273b)return new _0xb97a7(_0x281649,_0x16273b);{const _0x2f6cf2=_0x16273b[_0x535d('0x28')][_0x535d('0xb')](_0xb2563a=>this['_getViewObj'](_0xb2563a));return new(tt[_0x16273b[(_0x535d('0x1a'))]]||_0x585698)(_0x281649,_0x16273b['name'],_0x16273b[_0x535d('0x102')],_0x2f6cf2);}}[_0x535d('0x117')](_0x420cf9,_0x278b7f=null){const _0x37067a=this[_0x535d('0x82')]['getRevision'](_0x420cf9),_0x44a55e=_0x278b7f?this['repository'][_0x535d('0x20')](_0x278b7f):null,_0x3fb389=this[_0x535d('0x99')](_0x37067a,_0x44a55e),_0x46dc14=_0x3fb389[_0x3fb389['length']-0x1],_0x514402=new Map(),_0x8e939c={'model':{},'attributes':{},'changes':[]},_0x18c823=new Set(),_0x4f4498=new Map();for(let _0x1018d1=_0x3fb389['length']-0x1;_0x1018d1>=0x0;_0x1018d1--){const _0x6351bc=_0x3fb389[_0x1018d1];for(const _0x5b7ccd of Object['keys'](_0x6351bc[_0x535d('0x3f')]))if(_0x6351bc[_0x535d('0x3f')][_0x5b7ccd][_0x535d('0x70')]){const _0x10645a=_0x6351bc['diffData'][_0x5b7ccd][_0x535d('0x70')];_0x10645a[_0x535d('0xec')]?(_0x18c823[_0x535d('0x91')](_0x5b7ccd),_0x4f4498[_0x535d('0x49')](_0x5b7ccd)&&_0x4f4498['get'](_0x5b7ccd)[_0x535d('0x100')]==_0x10645a['userId']?_0x4f4498[_0x535d('0x7b')](_0x5b7ccd):_0x4f4498[_0x535d('0x5e')](_0x5b7ccd,_0x10645a)):_0x4f4498[_0x535d('0x49')](_0x5b7ccd)?(_0x18c823[_0x535d('0x7b')](_0x5b7ccd),_0x4f4498[_0x535d('0x7b')](_0x5b7ccd)):(_0x18c823[_0x535d('0x91')](_0x5b7ccd),_0x4f4498['set'](_0x5b7ccd,_0x10645a));}else _0x18c823[_0x535d('0x91')](_0x5b7ccd);}for(const _0x4cb1d of _0x18c823){const _0x4ddec7=_0x4f4498[_0x535d('0x49')](_0x4cb1d)&&!_0x4f4498['get'](_0x4cb1d)[_0x535d('0xec')];let _0x3e4483=_0x4ddec7?_0x3fb389['length']-0x1:0x0;const _0x4c14a8=_0x4ddec7?-0x1:0x1;for(;_0x3fb389[_0x3e4483];){const _0x2aaeb9=_0x3fb389[_0x3e4483];if(_0x2aaeb9[_0x535d('0x3f')][_0x4cb1d]){const _0x4276e3=_0x4ddec7?_0x2aaeb9[_0x535d('0x3f')][_0x4cb1d][_0x535d('0xe5')]:_0x2aaeb9[_0x535d('0x3f')][_0x4cb1d]['attributesAfter'];_0x8e939c['attributes'][_0x4cb1d]=_0x4276e3?_0x3d04b6(_0x4276e3):{};break;}_0x3e4483+=_0x4c14a8;}}for(const _0x1f941d of _0x3fb389){_0x1f941d[_0x535d('0x119')]={};for(const _0x31d4e2 of _0x1f941d[_0x535d('0x87')])_0x514402[_0x535d('0x5e')](_0x31d4e2['id'],_0x31d4e2);for(const _0x359d99 of _0x18c823){const _0x2e4399=_0x1f941d[_0x535d('0x3f')][_0x359d99]?_0x1f941d[_0x535d('0x3f')][_0x359d99][_0x535d('0x66')]:'[]',_0x54a8c5=_0x1f941d[_0x535d('0x3f')][_0x359d99]?_0x1f941d[_0x535d('0x3f')][_0x359d99]['deletions']:'[]';_0x1f941d[_0x535d('0x119')][_0x359d99]={'insertions':this[_0x535d('0xa3')](_0x2e4399),'deletions':this[_0x535d('0xa3')](_0x54a8c5)};}}for(const _0x551c27 of _0x18c823){let _0x31073b=null,_0x27d8e2=0x0;const _0x56c321=new Map(Array[_0x535d('0x5b')](_0x37067a[_0x535d('0x119')][_0x551c27]['insertions'][_0x535d('0x3c')])[_0x535d('0x79')](([_0x293696])=>!_0x293696[_0x535d('0x5')](_0x535d('0x54'))));let _0x14f298=0x0;for(const _0x24700a of _0x3fb389){const _0x5868a9=this['_makeTape'](_0x24700a[_0x535d('0x119')][_0x551c27][_0x535d('0x66')]);_0x24700a==_0x37067a?(_0x31073b=_0x5868a9,_0x27d8e2=_0x31073b[_0x535d('0x6d')],_0x31073b[_0x535d('0x9')](_0x12357d=>{_0x12357d['id']=_0x14f298++;}),this[_0x535d('0x51')](_0x31073b)):this['_markInsertions'](_0x31073b,_0x5868a9);const _0x53e85e=_0x31073b[_0x535d('0x79')](_0x38cb36=>!_0x38cb36['isAdded'])['map'](_0x52bc7c=>_0x52bc7c['id']);let _0x47ad8b=0x0;const _0x3e2b09=this[_0x535d('0x112')](_0x24700a[_0x535d('0x119')][_0x551c27]['deletions']);_0x3e2b09[_0x535d('0x9')](_0x4f6d73=>{_0x4f6d73[_0x535d('0xfa')]?_0x4f6d73['id']=_0x27d8e2++:_0x4f6d73['id']=_0x53e85e[_0x47ad8b++];}),this[_0x535d('0x51')](_0x3e2b09),this[_0x535d('0x46')](_0x31073b,_0x535d('0xd6')),this[_0x535d('0x46')](_0x3e2b09,_0x535d('0xfa')),_0x24700a==_0x37067a&&this['_markMarkers'](_0x31073b,_0x56c321),_0x31073b=this[_0x535d('0x77')](_0x31073b,_0x3e2b09),this[_0x535d('0x2')](_0x31073b),this[_0x535d('0x46')](_0x31073b,'isRemoved');}_0x31073b=_0x31073b['filter'](_0x553bfe=>!(_0x553bfe['isAdded']&&_0x553bfe[_0x535d('0xfa')]));const _0x327993=new Map(_0x46dc14[_0x535d('0x119')][_0x551c27][_0x535d('0xe9')][_0x535d('0x3c')]),_0x466a44=new Set(_0x56c321[_0x535d('0x10f')]());for(const _0x3cb537 of _0x327993[_0x535d('0x10f')]())_0x466a44[_0x535d('0x7b')](_0x3cb537);this[_0x535d('0xba')](_0x31073b,_0x466a44),this[_0x535d('0x9d')](_0x31073b),_0x31073b=this[_0x535d('0x68')](_0x31073b),_0x31073b=this[_0x535d('0xbd')](_0x31073b),_0x31073b=this[_0x535d('0xf9')](_0x31073b);const {root:_0x8e562d,changes:_0x3d6601}=this[_0x535d('0xd7')](_0x31073b,_0x514402,_0x551c27);_0x8e939c['model'][_0x551c27]=_0x8e562d;const _0x1f7745=_0x4f4498['get'](_0x551c27);if(_0x1f7745){const _0xc02ee2=_0x514402[_0x535d('0x101')](_0x1f7745[_0x535d('0x100')]),_0x11433c=new _0x24f579({'author':_0xc02ee2,'type':_0x1f7745[_0x535d('0xec')]?'add':_0x535d('0x7a'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x551c27});_0x3d6601[_0x535d('0x85')](_0x11433c),_0x8e939c[_0x535d('0x102')][_0x551c27]['revisionHistoryAttachChange']=_0x11433c['id'];}_0x8e939c[_0x535d('0x32')]=_0x8e939c[_0x535d('0x32')]['concat'](_0x3d6601);}return _0x8e939c;}['_markMarkers'](_0x40d8f1,_0x2326f7){for(let _0x1e398e=0x0;_0x1e398e<_0x40d8f1[_0x535d('0x6d')];_0x1e398e++)for(const [_0xc7d86a,_0x57c903]of _0x2326f7)_0x57c903[_0x535d('0xf2')][_0x535d('0x81')](_0x40d8f1[_0x1e398e]['previousPosition'])&&_0x40d8f1[_0x1e398e][_0x535d('0xe1')]['push'](_0xc7d86a),_0x57c903[_0x535d('0xb2')][_0x535d('0x81')](_0x40d8f1[_0x1e398e][_0x535d('0x94')])&&_0x40d8f1[_0x1e398e][_0x535d('0xdc')]['push'](_0xc7d86a);}[_0x535d('0x77')](_0x150b8e,_0x54cf6c){let _0x399ecf=[],_0x1d86c9=0x0,_0x105d96=0x0;for(;_0x1d86c9<_0x150b8e[_0x535d('0x6d')]||_0x105d96<_0x54cf6c[_0x535d('0x6d')];){const _0x2381ee=_0x150b8e[_0x1d86c9]||{},_0x1125c9=_0x54cf6c[_0x105d96]||{};if(_0x2381ee['id']==_0x1125c9['id'])_0x1d86c9++,_0x105d96++,_0x399ecf[_0x535d('0x110')](_0x2381ee);else{if(_0x1125c9['isRemoved']&&_0x2381ee[_0x535d('0xd6')]){const {commonTape:_0x29d5e3,iEnd:_0x456d95,jEnd:_0x5e64dd}=this['_threeWayMerge'](_0x150b8e,_0x1d86c9,_0x54cf6c,_0x105d96);_0x399ecf=_0x399ecf[_0x535d('0x11f')](_0x29d5e3),_0x1d86c9=_0x456d95,_0x105d96=_0x5e64dd;}else _0x1125c9[_0x535d('0xfa')]?(_0x105d96++,_0x399ecf['push'](_0x1125c9)):(_0x1d86c9++,_0x399ecf[_0x535d('0x110')](_0x2381ee));}}return _0x399ecf;}[_0x535d('0xba')](_0x2fea00,_0x215860){const _0x25ce8e=[];for(let _0x5715c1=0x0;_0x5715c1<_0x2fea00[_0x535d('0x6d')];_0x5715c1++){for(let _0x4bcbec=0x0;_0x4bcbec<_0x2fea00[_0x5715c1][_0x535d('0xe1')][_0x535d('0x6d')];_0x4bcbec++){const _0x549e47=_0x2fea00[_0x5715c1]['markersStart'][_0x4bcbec];if(!_0x215860['has'](_0x549e47))continue;const {group:_0x121714,type:_0x478f09,authorId:_0x5b5d28}=_0x3c86da(_0x549e47);_0x535d('0x10')!=_0x121714||_0x535d('0xef')!=_0x478f09&&_0x535d('0xa5')!=_0x478f09||(_0x25ce8e['unshift']({'type':_0x478f09,'name':_0x549e47,'userId':_0x5b5d28}),_0x2fea00[_0x5715c1][_0x535d('0xe1')][_0x535d('0x2f')](_0x4bcbec,0x1),_0x4bcbec--);}_0x3e4a6b(_0x2fea00[_0x5715c1]);for(let _0x40d747=0x0;_0x40d747<_0x2fea00[_0x5715c1][_0x535d('0xdc')][_0x535d('0x6d')];_0x40d747++){const _0x139c00=_0x2fea00[_0x5715c1][_0x535d('0xdc')][_0x40d747];if(!_0x215860[_0x535d('0x49')](_0x139c00))continue;const {group:_0x110e1f,type:_0x4ee351}=_0x3c86da(_0x139c00);if(_0x535d('0x10')!=_0x110e1f||_0x535d('0xef')!=_0x4ee351&&'deletion'!=_0x4ee351)continue;_0x2fea00[_0x5715c1][_0x535d('0xdc')][_0x535d('0x2f')](_0x40d747,0x1),_0x40d747--;const _0x25569a=_0x25ce8e[_0x535d('0xde')](_0x380396=>_0x380396[_0x535d('0x2c')]==_0x139c00);_0x25569a>-0x1&&_0x25ce8e[_0x535d('0x2f')](_0x25569a,0x1);}}function _0x3c86da(_0x483ee6){const _0x2f4859=_0x483ee6['split'](':');return{'group':_0x2f4859[0x0],'type':_0x2f4859[0x1],'subType':_0x2f4859['length']>=0x5?_0x2f4859[0x2]:null,'id':_0x2f4859[_0x535d('0x6d')]<0x5?_0x2f4859[0x2]:_0x2f4859[0x3],'authorId':_0x2f4859[_0x535d('0x6d')]<0x5?_0x2f4859[0x3]:_0x2f4859[0x4],'markerCount':0x6==_0x2f4859[_0x535d('0x6d')]?_0x2f4859[0x5]:null};}function _0x3e4a6b(_0xe5c7a1){for(let _0x3f35e7=0x0;_0x3f35e7<_0x25ce8e[_0x535d('0x6d')];_0x3f35e7++){if(_0xe5c7a1[_0x535d('0xd6')]&&_0x535d('0xef')==_0x25ce8e[_0x3f35e7][_0x535d('0x1a')])return _0xe5c7a1['isAddSuggestion']=_0x25ce8e[_0x3f35e7],void delete _0xe5c7a1[_0x535d('0xd6')];if(!_0xe5c7a1['isAdded']&&!_0xe5c7a1['isRemoved']&&_0x535d('0xa5')==_0x25ce8e[_0x3f35e7][_0x535d('0x1a')])return void(_0xe5c7a1['isRemoveSuggestion']=_0x25ce8e[_0x3f35e7]);}}}['_setDistance'](_0x1d5aa8,_0x22bcc4){let _0x43115a=0x0,_0x59a24c=!0x1;const _0x56afc1=new Map();for(const _0x19aee7 of _0x1d5aa8)_0x19aee7[_0x22bcc4]?_0x59a24c&&(_0x43115a++,_0x59a24c=!0x1):(_0x43115a++,_0x59a24c=!0x0),_0x56afc1[_0x535d('0x5e')](_0x19aee7['id'],_0x43115a);for(let _0x1d9689=0x0;_0x1d9689<_0x1d5aa8[_0x535d('0x6d')];_0x1d9689++){if(_0x535d('0xfa')==_0x22bcc4&&_0x1d5aa8[_0x1d9689][_0x535d('0xd6')]||'isAdded'==_0x22bcc4&&_0x1d5aa8[_0x1d9689][_0x535d('0xfa')])continue;if(_0x535d('0xc8')==_0x1d5aa8[_0x1d9689][_0x535d('0x1a')]){_0x1d5aa8[_0x1d9689][_0x535d('0x84')]=0x0;continue;}const _0x1055ad=_0x56afc1[_0x535d('0x101')](_0x1d5aa8[_0x1d9689][_0x535d('0x89')]),_0xb447f=_0x56afc1[_0x535d('0x101')](_0x1d5aa8[_0x1d9689]['id']);_0x1d5aa8[_0x1d9689][_0x535d('0x84')]=_0x1055ad-_0xb447f;}}[_0x535d('0x99')](_0x1aabb1,_0x776bef,_0x463f3e=!0x1){const _0x4c7969=[];let _0x59ff01=this['repository'][_0x535d('0x106')](_0x1aabb1),_0x25dc75=this['repository'][_0x535d('0x106')](_0x776bef);for(-0x1==_0x25dc75&&(_0x25dc75=this[_0x535d('0x82')][_0x535d('0x8e')][_0x535d('0x6d')],_0x463f3e=!0x1);_0x59ff01<_0x25dc75;)_0x4c7969[_0x535d('0x110')](this[_0x535d('0x82')][_0x535d('0x20')](_0x59ff01)),_0x59ff01++;return _0x463f3e&&_0x4c7969[_0x535d('0x110')](this['repository']['getRevision'](_0x59ff01)),_0x4c7969;}['_threeWayMerge'](_0x457a03,_0x2e5127,_0x46865e,_0x289e27){const _0x1e6290=this[_0x535d('0x60')][_0x535d('0x119')]['schema'];let _0x3ab5cd=_0x2e5127;for(;_0x457a03[_0x3ab5cd]&&_0x457a03[_0x3ab5cd][_0x535d('0xd6')];)_0x3ab5cd++;let _0x41f96d=_0x289e27;for(;_0x46865e[_0x41f96d]&&_0x46865e[_0x41f96d][_0x535d('0xfa')];)_0x41f96d++;_0x56fe55(_0x457a03,_0x2e5127,_0x3ab5cd),_0x56fe55(_0x46865e,_0x289e27,_0x41f96d);const _0x22ee7d=_0x46865e['slice'](_0x289e27,_0x41f96d)[_0x535d('0x11f')](_0x457a03[_0x535d('0x4f')](_0x2e5127,_0x3ab5cd));return _0x22ee7d[_0x535d('0xf1')]((_0x433bd5,_0xfa62dd)=>_0x433bd5[_0x535d('0xd')]!=_0xfa62dd[_0x535d('0xd')]?_0x433bd5[_0x535d('0xd')]-_0xfa62dd[_0x535d('0xd')]:_0x433bd5[_0x535d('0xd5')]!=_0xfa62dd['level']?_0x433bd5[_0x535d('0xd5')]-_0xfa62dd[_0x535d('0xd5')]:_0x433bd5[_0x535d('0x84')]!=_0xfa62dd[_0x535d('0x84')]?_0xfa62dd[_0x535d('0x84')]-_0x433bd5[_0x535d('0x84')]:!!_0x433bd5['isAdded']!=!!_0xfa62dd[_0x535d('0xd6')]?-0x1==_0x433bd5[_0x535d('0xd')]||0x0==_0x433bd5['side']?_0x433bd5['isAdded']?-0x1:0x1:_0x433bd5[_0x535d('0xd6')]?0x1:-0x1:_0x433bd5[_0x535d('0x48')]-_0xfa62dd[_0x535d('0x48')]),{'commonTape':_0x22ee7d,'iEnd':_0x3ab5cd,'jEnd':_0x41f96d};function _0x56fe55(_0x135fe6,_0x268a7d,_0x5c77ea){let _0x505cb3=-0x1,_0x3b6597=Number['POSITIVE_INFINITY'],_0x1bacd6=!0x0;for(let _0x3ffe14=_0x268a7d;_0x3ffe14<_0x5c77ea;_0x3ffe14++)if(_0x1e6290[_0x535d('0x109')](_0x135fe6[_0x3ffe14]['item'])||(_0x1bacd6=!0x1),_0x135fe6[_0x3ffe14][_0x535d('0xc5')][_0x535d('0x12')]<_0x268a7d&&(_0x505cb3=_0x3ffe14),_0x135fe6[_0x3ffe14][_0x535d('0xc5')]['endIndex']>=_0x5c77ea){_0x3b6597=_0x3ffe14;break;}_0x1bacd6&&(_0x505cb3=_0x5c77ea-0x1);for(let _0x1460ac=_0x268a7d;_0x1460ac<_0x5c77ea;_0x1460ac++)_0x135fe6[_0x1460ac]['side']=_0x1460ac<=_0x505cb3?-0x1:_0x1460ac<_0x3b6597?0x0:0x1,_0x135fe6[_0x1460ac][_0x535d('0x48')]=_0x1460ac;let _0x114525=0x0;for(let _0x26cf9b=_0x268a7d;_0x26cf9b<=_0x505cb3;_0x26cf9b++)0x0==_0x135fe6[_0x26cf9b]['distance']?_0x135fe6[_0x26cf9b][_0x535d('0xd5')]=_0x114525:(_0x114525++,_0x135fe6[_0x26cf9b][_0x535d('0xd5')]=_0x114525,_0x114525++);for(let _0x355078=_0x268a7d;_0x355078<_0x5c77ea;_0x355078++)0x0==_0x135fe6[_0x355078][_0x535d('0xd')]&&(_0x135fe6[_0x355078]['level']=_0x114525);_0x114525=0x0;for(let _0x1b8b49=_0x5c77ea-0x1;_0x1b8b49>=_0x3b6597;_0x1b8b49--)0x0==_0x135fe6[_0x1b8b49][_0x535d('0x84')]?_0x135fe6[_0x1b8b49][_0x535d('0xd5')]=_0x114525:(_0x114525--,_0x135fe6[_0x1b8b49][_0x535d('0xd5')]=_0x114525,_0x114525--);}}['_fixObsoleteTags'](_0x4dd6a3){const _0x238c1d=new Map(),_0xd9aeda=this[_0x535d('0x60')][_0x535d('0x119')][_0x535d('0x8a')];for(let _0x39f434=0x1;_0x39f434<_0x4dd6a3[_0x535d('0x6d')];_0x39f434++){let _0x209612,_0x57e6cd,_0x4ff495;const _0x10878f=_0x4dd6a3[_0x39f434],_0x2d878e=_0x4dd6a3[_0x39f434-0x1];if('text'==_0x10878f['type'])continue;if(_0x10878f[_0x535d('0x1a')]!=_0x2d878e[_0x535d('0x1a')])continue;if(!_0xd9aeda['isBlock'](_0x2d878e[_0x535d('0xc5')])||_0xd9aeda[_0x535d('0xa9')](_0x2d878e[_0x535d('0xc5')]))continue;if(!_0xd9aeda['isBlock'](_0x10878f['item'])||_0xd9aeda['isLimit'](_0x10878f['item']))continue;if((_0x4dd6a3[_0x39f434][_0x535d('0xd6')]||_0x4dd6a3[_0x39f434][_0x535d('0xf6')])&&_0x4dd6a3[_0x39f434-0x1][_0x535d('0xfa')])_0x209612=_0x4dd6a3[_0x39f434],_0x57e6cd=_0x4dd6a3[_0x39f434-0x1],_0x4ff495=_0x39f434-0x1;else{if(!_0x4dd6a3[_0x39f434][_0x535d('0xfa')]||!_0x4dd6a3[_0x39f434-0x1][_0x535d('0xd6')]&&!_0x4dd6a3[_0x39f434-0x1][_0x535d('0xf6')])continue;_0x209612=_0x4dd6a3[_0x39f434-0x1],_0x57e6cd=_0x4dd6a3[_0x39f434],_0x4ff495=_0x39f434;}const _0x155e36=_0x209612['level']==_0x57e6cd[_0x535d('0xd5')],_0x44301c=Math[_0x535d('0xd0')](_0x209612[_0x535d('0xd5')])<Math[_0x535d('0xd0')](_0x57e6cd['level'])&&0x0==_0x57e6cd[_0x535d('0x84')];(_0x155e36||_0x44301c)&&(_0x238c1d[_0x535d('0x5e')](_0x57e6cd['id'],_0x209612['id']),_0x4dd6a3['splice'](_0x4ff495,0x1),_0x39f434--,_0x209612[_0x535d('0xd6')]=!0x1);}for(let _0x39e7a6=0x0;_0x39e7a6<_0x4dd6a3['length'];_0x39e7a6++)_0x238c1d[_0x535d('0x49')](_0x4dd6a3[_0x39e7a6]['pairId'])&&(_0x4dd6a3[_0x39e7a6][_0x535d('0x89')]=_0x238c1d[_0x535d('0x101')](_0x4dd6a3[_0x39e7a6][_0x535d('0x89')]));}['_removeMissingPairs'](_0x3e57ee){const _0x3bb487=new Set(_0x3e57ee[_0x535d('0xb')](_0x193ad0=>_0x193ad0['id']));for(let _0x5e272a=0x0;_0x5e272a<_0x3e57ee[_0x535d('0x6d')];_0x5e272a++)_0x3bb487[_0x535d('0x49')](_0x3e57ee[_0x5e272a][_0x535d('0x89')])||0x0==_0x3e57ee[_0x5e272a][_0x535d('0x84')]||(_0x3e57ee[_0x5e272a][_0x535d('0x11d')]=!0x0);return _0x3e57ee[_0x535d('0x79')](_0x5c584e=>!_0x5c584e[_0x535d('0x11d')]);}[_0x535d('0xbd')](_0x5ad06c){const _0x2a34d1=new Set();for(let _0x3a8f50=0x0;_0x3a8f50<_0x5ad06c[_0x535d('0x6d')];_0x3a8f50++){if(_0x2a34d1[_0x535d('0x49')](_0x5ad06c[_0x3a8f50]['id'])&&_0x5ad06c[_0x3a8f50][_0x535d('0xfa')]&&(_0x5ad06c[_0x3a8f50][_0x535d('0x11d')]=!0x0),_0x5ad06c[_0x3a8f50][_0x535d('0x11d')])continue;if(0x0==_0x5ad06c[_0x3a8f50][_0x535d('0x84')])continue;if(_0x535d('0xa4')!=_0x5ad06c[_0x3a8f50]['type'])continue;if(null==_0x5ad06c[_0x3a8f50][_0x535d('0x89')])continue;let _0x2e1b51=_0x3a8f50+0x1,_0x3cf67f=0x0;for(;_0x5ad06c[_0x2e1b51]['id']!=_0x5ad06c[_0x3a8f50]['pairId'];)_0x535d('0xa4')==_0x5ad06c[_0x2e1b51][_0x535d('0x1a')]?_0x3cf67f++:'elementEnd'==_0x5ad06c[_0x2e1b51][_0x535d('0x1a')]&&_0x3cf67f--,_0x2e1b51++;if(0x0!=_0x3cf67f){if(_0x5ad06c[_0x3a8f50]['isRemoved'])_0x5ad06c[_0x3a8f50][_0x535d('0x11d')]=!0x0;else for(;_0x2e1b51!=_0x3a8f50;)_0x5ad06c[_0x2e1b51][_0x535d('0xfa')]&&0x0!=_0x5ad06c[_0x2e1b51]['distance']&&(_0x5ad06c[_0x2e1b51][_0x535d('0x11d')]=!0x0,_0x2a34d1['add'](_0x5ad06c[_0x2e1b51][_0x535d('0x89')])),_0x2e1b51--;}}return _0x5ad06c[_0x535d('0x79')](_0x268c93=>!_0x268c93['isIncorrect']);}['_removeUnsupportedChanges'](_0x3502be){const _0x251b44=this[_0x535d('0x60')][_0x535d('0x119')][_0x535d('0x8a')];for(let _0x1a1109=0x0;_0x1a1109<_0x3502be[_0x535d('0x6d')];_0x1a1109++){if(!(_0x3502be[_0x1a1109][_0x535d('0xd6')]||_0x3502be[_0x1a1109]['isAddSuggestion']||_0x3502be[_0x1a1109][_0x535d('0xfa')]||_0x3502be[_0x1a1109]['isRemoveSuggestion']))continue;if(0x0==_0x3502be[_0x1a1109]['distance'])continue;const _0x5e9e7a=_0x3502be[_0x1a1109][_0x535d('0xc5')];_0x251b44['isBlock'](_0x5e9e7a)||_0x251b44[_0x535d('0xa9')](_0x5e9e7a)||(_0x3502be[_0x1a1109][_0x535d('0xd6')]&&delete _0x3502be[_0x1a1109]['isAdded'],_0x3502be[_0x1a1109][_0x535d('0xf6')]&&delete _0x3502be[_0x1a1109][_0x535d('0xf6')],_0x3502be[_0x1a1109]['isRemoveSuggestion']&&delete _0x3502be[_0x1a1109][_0x535d('0x40')],_0x3502be[_0x1a1109][_0x535d('0xfa')]&&(_0x3502be[_0x1a1109][_0x535d('0x11d')]=!0x0));}return _0x3502be['filter'](_0x57dff7=>!_0x57dff7[_0x535d('0x11d')]);}[_0x535d('0xd7')](_0x12583e,_0x24ebf0,_0x953c73){const _0x110fa3=new _0x12f5c2(),_0xcd8bf9=[],_0xa27b56=new Map(),_0x4f84c4=this[_0x535d('0x60')]['model'],_0x51f695=_0x4f84c4[_0x535d('0x8a')],_0x1a0b79=[_0x110fa3],_0x197d8b={},_0x188083={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x86e9db=null;const _0x489e43=[0x0];for(let _0x589445=0x0;_0x589445<_0x12583e['length'];_0x589445++){let _0x3397a1,_0x408c66;if('elementStart'===_0x12583e[_0x589445][_0x535d('0x1a')]){_0x3397a1=_0x4f84c4[_0x535d('0xe3')](_0x110fa3,_0x489e43);const _0x5ab81b=new _0x27ce57(_0x12583e[_0x589445][_0x535d('0xc5')][_0x535d('0x2c')],_0x12583e[_0x589445]['item'][_0x535d('0x108')]());_0x1a0b79[0x0][_0x535d('0x61')](_0x5ab81b),_0x489e43[_0x535d('0x110')](0x0),_0x1a0b79[_0x535d('0x85')](_0x5ab81b),_0x408c66=_0x4f84c4['createPositionFromPath'](_0x110fa3,_0x489e43),_0x86e9db=null;}else{if(_0x535d('0xcf')===_0x12583e[_0x589445][_0x535d('0x1a')])_0x1a0b79[_0x535d('0xda')](),_0x3397a1=_0x4f84c4[_0x535d('0xe3')](_0x110fa3,_0x489e43),_0x489e43[_0x535d('0x62')](),_0x489e43[_0x489e43[_0x535d('0x6d')]-0x1]++,_0x408c66=_0x4f84c4[_0x535d('0xe3')](_0x110fa3,_0x489e43),_0x86e9db=null;else{if(_0x3397a1=_0x4f84c4['createPositionFromPath'](_0x110fa3,_0x489e43),_0x86e9db&&_0x4e8c0b(_0x86e9db,_0x12583e[_0x589445]['item']))_0x86e9db[_0x535d('0xf5')]+=_0x12583e[_0x589445]['item'][_0x535d('0x56')];else{const _0x14daca=new _0xbf2ef7(_0x12583e[_0x589445]['item']['data'],_0x12583e[_0x589445][_0x535d('0xc5')][_0x535d('0x108')]());_0x1a0b79[0x0][_0x535d('0x61')](_0x14daca),_0x86e9db=_0x14daca;}_0x489e43[_0x489e43[_0x535d('0x6d')]-0x1]+=_0x12583e[_0x589445][_0x535d('0xc5')]['offsetSize'],_0x408c66=_0x4f84c4[_0x535d('0xe3')](_0x110fa3,_0x489e43);}}for(const _0x3f370d of _0x12583e[_0x589445][_0x535d('0xe1')])_0xa27b56[_0x535d('0x5e')](_0x3f370d,{'start':_0x3397a1,'end':null});_0x5bb4c6('isRemoveSuggestion',_0x589445,_0x3397a1,_0x408c66),_0x5bb4c6(_0x535d('0xf6'),_0x589445,_0x3397a1,_0x408c66),_0x5bb4c6(_0x535d('0xfa'),_0x589445,_0x3397a1,_0x408c66),_0x5bb4c6('isAdded',_0x589445,_0x3397a1,_0x408c66);for(const _0x2ee08f of _0x12583e[_0x589445][_0x535d('0xdc')]){_0xa27b56[_0x535d('0x101')](_0x2ee08f)[_0x535d('0xb2')]=_0x408c66;}}for(const [_0x2b9fc8,_0x37b268]of _0xa27b56){const _0x3d70d4=this[_0x535d('0x60')][_0x535d('0x119')][_0x535d('0x50')](_0x37b268['start'],_0x37b268[_0x535d('0xb2')]);_0x110fa3[_0x535d('0x3c')][_0x535d('0x5e')](_0x2b9fc8,_0x3d70d4);}return _0xcd8bf9[_0x535d('0xf1')]((_0xc05724,_0x357bc3)=>{const _0x792106=_0x110fa3[_0x535d('0x3c')][_0x535d('0x101')](_0x535d('0x54')+_0xc05724['id']),_0x2ac38d=_0x110fa3['markers']['get'](_0x535d('0x54')+_0x357bc3['id']);return _0x792106[_0x535d('0xf2')][_0x535d('0x58')](_0x2ac38d[_0x535d('0xf2')])?-0x1:_0x792106['start']['isAfter'](_0x2ac38d[_0x535d('0xf2')])?0x1:_0x792106[_0x535d('0xb2')][_0x535d('0x58')](_0x2ac38d[_0x535d('0xb2')])?-0x1:_0x792106[_0x535d('0xb2')][_0x535d('0x31')](_0x2ac38d[_0x535d('0xb2')])?0x1:_0x535d('0x91')===_0xc05724[_0x535d('0x1a')]?-0x1:0x1;}),{'root':_0x110fa3,'changes':_0xcd8bf9};function _0x5bb4c6(_0x2c4664,_0x17377b,_0x1e123f,_0x57f555){const _0x135e3a=!!_0x12583e[_0x17377b][_0x2c4664],_0x110182=_0x135e3a?_0x12583e[_0x17377b][_0x2c4664][_0x535d('0x100')]:null,_0x464f87=_0x17377b===_0x12583e['length']-0x1,_0x339546=_0x188083[_0x2c4664][0x0],_0x43acd6=_0x51f695[_0x535d('0x114')](_0x12583e[_0x17377b][_0x535d('0xc5')]);!_0x197d8b[_0x2c4664]&&_0x135e3a?_0x197d8b[_0x2c4664]={'start':_0x1e123f,'tapeItem':_0x12583e[_0x17377b],'userId':_0x110182,'type':_0x2c4664}:_0x197d8b[_0x2c4664]&&!_0x135e3a?(_0x197d8b[_0x2c4664]['end']=_0x1e123f,_0x517e24(_0x197d8b[_0x2c4664]),_0x197d8b[_0x2c4664]=null):_0x197d8b[_0x2c4664]&&_0x135e3a&&_0x197d8b[_0x2c4664]['userId']!==_0x110182&&(_0x197d8b[_0x2c4664][_0x535d('0xb2')]=_0x1e123f,_0x339546&&_0x339546[_0x535d('0x100')]===_0x197d8b[_0x2c4664][_0x535d('0x100')]||_0x517e24(_0x197d8b[_0x2c4664]),_0x197d8b[_0x2c4664]={'start':_0x1e123f,'tapeItem':_0x12583e[_0x17377b],'userId':_0x110182,'type':_0x2c4664}),_0x197d8b[_0x2c4664]&&_0x43acd6&&(_0x535d('0xa4')!==_0x12583e[_0x17377b][_0x535d('0x1a')]||_0x339546&&_0x339546[_0x535d('0x100')]===_0x110182||_0x188083[_0x2c4664][_0x535d('0x85')]({'userId':_0x110182,'object':_0x12583e[_0x17377b][_0x535d('0xc5')],'change':_0x197d8b[_0x2c4664]}),_0x535d('0xcf')===_0x12583e[_0x17377b][_0x535d('0x1a')]&&_0x339546&&_0x339546[_0x535d('0xff')]===_0x12583e[_0x17377b]['item']&&(_0x188083[_0x2c4664][_0x535d('0xda')](),_0x197d8b[_0x2c4664]=_0x339546[_0x535d('0x8f')])),_0x197d8b[_0x2c4664]&&_0x464f87&&(_0x197d8b[_0x2c4664][_0x535d('0xb2')]=_0x57f555,_0x517e24(_0x197d8b[_0x2c4664]),_0x197d8b[_0x2c4664]=null);}function _0x517e24({start:_0x349a9b,end:_0x3ed511,tapeItem:_0x223945,userId:_0x215577,type:_0x161945}){const _0x19ab3e=_0x223945[_0x535d('0xc5')],_0x515269=_0x4f84c4[_0x535d('0x8a')][_0x535d('0xee')](_0x19ab3e)&&!_0x4f84c4['schema'][_0x535d('0xa9')](_0x19ab3e),_0x210e5f=_0x349a9b[_0x535d('0x67')]==_0x3ed511[_0x535d('0x9a')]&&_0x3ed511[_0x535d('0x21')];if(_0x515269&&_0x210e5f)return;const _0x4b64eb=_0x4f84c4[_0x535d('0x50')](_0x349a9b,_0x3ed511),_0x2b22fb=_0x24ebf0[_0x535d('0x101')](_0x215577),_0x39a712=new _0x24f579({'author':_0x2b22fb,'type':_0x535d('0xd6')==_0x161945||_0x535d('0xf6')==_0x161945?_0x535d('0x91'):_0x535d('0x7a'),'data':{'isSuggestion':_0x535d('0xf6')==_0x161945||_0x535d('0x40')==_0x161945},'createdAt':new Date(),'rootName':_0x953c73});_0xcd8bf9[_0x535d('0x110')](_0x39a712),_0x110fa3['markers'][_0x535d('0x5e')](_0x535d('0x54')+_0x39a712['id'],_0x4b64eb);}function _0x4e8c0b(_0x1c268c,_0x57a34e){const _0x2b3968=_0x1c268c['getAttributes'](),_0x4fb050=_0x57a34e[_0x535d('0x108')]();for(const _0x1c961e of _0x2b3968){if(_0x1c961e[0x1]!==_0x57a34e['getAttribute'](_0x1c961e[0x0]))return!0x1;_0x4fb050[_0x535d('0xf7')]();}return _0x4fb050[_0x535d('0xf7')]()['done'];}}[_0x535d('0x4a')](){this[_0x535d('0x60')]['conversion']['for'](_0x535d('0xce'))[_0x535d('0xb1')]({'view':_0x535d('0xfe')}),this[_0x535d('0x60')]['conversion'][_0x535d('0xca')](_0x535d('0x116'))[_0x535d('0xe4')]({'model':_0x535d('0xfe'),'view':_0x4f5234=>{const _0x4ff1b3=_0x4f5234['markerName']['split'](':')[0x1],_0x32ad9b=this['_getChangeFromId'](_0x4ff1b3);if(!_0x32ad9b)return null;const _0x4f6889='add'==_0x32ad9b['type']?_0x535d('0xef'):_0x535d('0xa5'),_0x541551=[_0x535d('0xdf'),_0x535d('0xc1')+_0x4f6889];return _0x32ad9b['data']['isSuggestion']&&_0x541551['push']('ck-suggestion-marker-'+_0x4f6889+_0x535d('0xa2')),this[_0x535d('0x97')]==_0x32ad9b&&_0x541551[_0x535d('0x110')]('ck-suggestion-marker--active'),{'classes':_0x541551,'attributes':{'data-change-id':_0x4ff1b3}};}}),this[_0x535d('0x60')][_0x535d('0x52')][_0x535d('0xca')]('upcast')[_0x535d('0x91')](_0x24eaef=>{_0x24eaef['on'](_0x535d('0x1'),(_0x567846,_0x502c4d,_0x822614)=>{const _0x397e1f=_0x502c4d[_0x535d('0x10c')]['getChild'](0x0);if(!_0x397e1f||!_0x397e1f['is']('element',_0x535d('0xa')))return;if(!_0x822614[_0x535d('0xf')][_0x535d('0x39')](_0x397e1f,{'attributes':[_0x535d('0x105'),'vid_end']}))return;const _0x52ef5b=_0x502c4d[_0x535d('0x4b')][_0x535d('0xf2')]['nodeAfter'];_0x822614[_0x535d('0x95')]['setAttribute'](_0x535d('0x105'),_0x397e1f[_0x535d('0x42')](_0x535d('0x105')),_0x52ef5b),_0x822614['writer'][_0x535d('0xcd')](_0x535d('0x71'),_0x397e1f[_0x535d('0x42')](_0x535d('0x71')),_0x52ef5b);},{'priority':_0x535d('0xc0')});}),this[_0x535d('0x60')][_0x535d('0x52')][_0x535d('0xca')](_0x535d('0xce'))[_0x535d('0x91')](_0x3d04ae=>{_0x3d04ae['on'](_0x535d('0xeb'),(_0x3ff930,_0x469717,_0x14f535)=>{if(!_0x14f535['consumable'][_0x535d('0x39')](_0x469717[_0x535d('0x10c')],{'attributes':[_0x535d('0x105'),'vid_end']}))return;if(_0x469717[_0x535d('0x4b')]['isCollapsed'])return;const _0x3f8c0f=_0x469717[_0x535d('0x4b')][_0x535d('0xf2')]['nodeAfter'];_0x3f8c0f[_0x535d('0x6b')]('vid_start')||_0x3f8c0f[_0x535d('0x6b')]('vid')||(_0x14f535['writer'][_0x535d('0xcd')](_0x535d('0x105'),_0x469717[_0x535d('0x10c')][_0x535d('0x42')](_0x535d('0x105')),_0x3f8c0f),_0x14f535[_0x535d('0x95')][_0x535d('0xcd')]('vid_end',_0x469717[_0x535d('0x10c')]['getAttribute'](_0x535d('0x71')),_0x3f8c0f));},{'priority':'low'});}),this[_0x535d('0x60')][_0x535d('0x52')]['for'](_0x535d('0xce'))[_0x535d('0x3d')]({'view':{'name':_0x535d('0x11'),'attributes':{'vid':!0x0}},'model':{'key':_0x535d('0xd3'),'value':_0x32adc7=>_0x32adc7[_0x535d('0x42')](_0x535d('0xd3'))}}),this[_0x535d('0x60')][_0x535d('0x119')][_0x535d('0x8a')]['on'](_0x535d('0x111'),(_0x446067,[,_0x487787])=>{[_0x535d('0x105'),_0x535d('0x71'),'vid'][_0x535d('0x92')](_0x487787)&&(_0x446067[_0x535d('0xcb')]=!0x0,_0x446067['stop']());},{'priority':'highest'}),this['editor'][_0x535d('0x52')][_0x535d('0xca')](_0x535d('0x1c'))['add'](_0x38d99f=>{_0x38d99f['on'](_0x535d('0x19'),(_0x2ecccb,_0x46acee,_0x1003f9)=>{if('\x20'!=_0x46acee[_0x535d('0xc5')][_0x535d('0x56')]||_0x46acee[_0x535d('0xc5')][_0x535d('0x9a')][_0x535d('0x6')]>0x1)return;if(!_0x1003f9[_0x535d('0xf')][_0x535d('0x39')](_0x46acee['item'],_0x2ecccb[_0x535d('0x2c')]))return;const _0x55a1d0=_0x1003f9[_0x535d('0x95')],_0x23d896=_0x1003f9['mapper'][_0x535d('0x2d')](_0x46acee['range']);_0x55a1d0[_0x535d('0xb5')](_0x23d896,_0x55a1d0['createAttributeElement']('span'));});}),this[_0x535d('0x60')][_0x535d('0x52')][_0x535d('0xca')](_0x535d('0x1c'))['markerToData']({'model':_0x535d('0xfe')}),this['editor'][_0x535d('0xea')]['downcastDispatcher']['on'](_0x535d('0x45'),function(_0x2cad54){const _0x4f2ded=_0x2cad54['plugins'][_0x535d('0x101')](_0x535d('0x0'));return(_0x2c9e9d,_0x1e201b,_0x1a5f20)=>{const _0x3e5843=_0x1e201b['markerName']['split'](':')[0x1],_0x4e0511=_0x4f2ded[_0x535d('0xf8')](_0x3e5843);if(!_0x4e0511)return null;const _0x1fef7f='add'==_0x4e0511[_0x535d('0x1a')]?_0x535d('0x76'):'merge';if(!_0x1a5f20[_0x535d('0xf')]['test'](_0x1e201b[_0x535d('0x55')],_0x2c9e9d[_0x535d('0x2c')]))return;const _0x80dadd=_0x1e201b[_0x535d('0x55')]['getWalker'](),_0x35ebbc=_0x1e201b[_0x535d('0x55')][_0x535d('0xf2')],_0x131f76=_0x2cad54['model'][_0x535d('0x8a')];let _0x5ae5d0=null,_0x5e9283=null,_0x1cae44=!0x1,_0xcb29f6=!0x1;for(const _0x28070f of _0x80dadd){const _0x400bac=_0x28070f[_0x535d('0xc5')];_0x1cae44=_0x1cae44||_0x131f76[_0x535d('0xfb')](_0x400bac);const _0x1b1501=_0x1a5f20[_0x535d('0xb3')]['toViewElement'](_0x400bac);if(_0x1b1501&&_0x1b1501[_0x535d('0xdd')](_0x535d('0xa1')))return;_0x535d('0xcf')==_0x28070f[_0x535d('0x1a')]&&(_0x131f76[_0x535d('0xee')](_0x400bac)&&!_0x131f76[_0x535d('0xa9')](_0x400bac)&&(_0x400bac[_0x535d('0x2b')]||_0x35ebbc['isAtEnd']?_0x5ae5d0&&_0x5ae5d0[_0x535d('0x9a')]==_0x400bac||(_0x5ae5d0=_0x400bac,_0x15ef48(_0x28070f[_0x535d('0x18')]),_0xcb29f6=!0x0):_0x5e9283=_0x5e9283||_0x28070f[_0x535d('0x18')]));}function _0x15ef48(_0x125969){const _0x48071e=_0x1a5f20['writer'][_0x535d('0x59')]('span',{'class':_0x535d('0xc1')+_0x1fef7f}),_0x51fa16=_0x1a5f20[_0x535d('0xb3')][_0x535d('0x5c')](_0x125969);_0x4e0511[_0x535d('0x56')][_0x535d('0xe0')]&&_0x1a5f20[_0x535d('0x95')][_0x535d('0x22')]('ck-suggestion-marker-'+_0x1fef7f+_0x535d('0xa2'),_0x48071e),_0x4f2ded['activeChange']==_0x4e0511&&_0x1a5f20[_0x535d('0x95')][_0x535d('0x22')](_0x535d('0x17'),_0x48071e),_0x1a5f20[_0x535d('0x95')][_0x535d('0x93')](_0x51fa16,_0x48071e),_0x1a5f20['mapper'][_0x535d('0x63')](_0x48071e,_0x1e201b[_0x535d('0x11e')]);}_0x1cae44||_0xcb29f6||!_0x5e9283||_0x15ef48(_0x5e9283);};}(this[_0x535d('0x60')]),{'priority':_0x535d('0x98')}),this['editor'][_0x535d('0xea')][_0x535d('0x37')]['on'](_0x535d('0x29'),(_0x18aca2,_0x596091,_0x50df02)=>{const _0x239cd3=_0x50df02['mapper'][_0x535d('0x9f')](_0x596091[_0x535d('0x11e')]);if(_0x239cd3)for(const _0x3f7afa of _0x239cd3)(_0x3f7afa[_0x535d('0x6c')](_0x535d('0x10e'))||_0x3f7afa['hasClass'](_0x535d('0x25')))&&(_0x50df02['mapper'][_0x535d('0xb9')](_0x3f7afa,_0x596091[_0x535d('0x11e')]),_0x50df02['writer'][_0x535d('0x7a')](_0x3f7afa));},{'priority':_0x535d('0x98')}),this[_0x535d('0x60')]['editing'][_0x535d('0x37')]['on']('addMarker:revision',(_0x1297f4,_0x398a17,_0x52932d)=>{const _0x2b5ca9=_0x398a17['markerName'][_0x535d('0x76')](':')[0x1],_0x4880dd=this[_0x535d('0xf8')](_0x2b5ca9);if(!_0x4880dd)return null;const _0x4cb6a2=_0x535d('0x91')==_0x4880dd[_0x535d('0x1a')]?_0x535d('0x76'):_0x535d('0x47');if(_0x52932d[_0x535d('0xf')][_0x535d('0x9e')](_0x398a17[_0x535d('0x55')],_0x1297f4[_0x535d('0x2c')]))for(const _0x415d58 of _0x398a17['markerRange'][_0x535d('0x86')]()){if(!_0x415d58['is']('element',_0x535d('0x7')))continue;const _0x32d1e6=_0x52932d[_0x535d('0x95')]['createUIElement'](_0x535d('0x11'),{'class':_0x535d('0xc1')+_0x4cb6a2}),_0x352391=_0x52932d[_0x535d('0xb3')][_0x535d('0x5c')](this[_0x535d('0x60')][_0x535d('0x119')][_0x535d('0x53')](_0x415d58));_0x4880dd[_0x535d('0x56')][_0x535d('0xe0')]&&_0x52932d[_0x535d('0x95')][_0x535d('0x22')](_0x535d('0xc1')+_0x4cb6a2+_0x535d('0xa2'),_0x32d1e6),this[_0x535d('0x97')]==_0x4880dd&&_0x52932d[_0x535d('0x95')][_0x535d('0x22')](_0x535d('0x17'),_0x32d1e6),_0x52932d[_0x535d('0x95')][_0x535d('0x93')](_0x352391,_0x32d1e6),_0x52932d['mapper'][_0x535d('0x63')](_0x32d1e6,_0x398a17[_0x535d('0x11e')]);}},{'priority':'high'}),this[_0x535d('0x60')][_0x535d('0x119')][_0x535d('0x78')]['on'](_0x535d('0x8f'),()=>{this[_0x535d('0x60')][_0x535d('0xea')][_0x535d('0xe7')][_0x535d('0x8f')](_0x2ae144=>{for(const _0x54ed32 of this[_0x535d('0x60')][_0x535d('0x119')][_0x535d('0x78')][_0x535d('0x88')]()){const _0x43a667=this[_0x535d('0x60')][_0x535d('0x119')][_0x535d('0x78')][_0x535d('0xd8')](_0x54ed32),_0xad41d0=this[_0x535d('0x60')][_0x535d('0xea')]['view'][_0x535d('0x78')]['getRoot'](_0x54ed32);if(_0xad41d0){const _0x5a3376=_0x43a667[_0x535d('0x42')](_0x535d('0x7f'));if(_0x2ae144['removeAttribute'](_0x535d('0x2a'),_0xad41d0),_0x2ae144[_0x535d('0x3a')](_0x535d('0x36'),_0xad41d0),_0x2ae144[_0x535d('0x3a')]('ck-revision-history-root-remove',_0xad41d0),_0x2ae144[_0x535d('0x3a')](_0x535d('0xbf'),_0xad41d0),_0x5a3376){const _0x1ce27d=this['_getChangeFromId'](_0x5a3376);if(!_0x1ce27d)return null;_0x2ae144[_0x535d('0xcd')](_0x535d('0x2a'),_0x5a3376,_0xad41d0),_0x2ae144['addClass']('ck-revision-history-root-'+_0x1ce27d['type'],_0xad41d0),this['activeChange']==_0x1ce27d&&_0x2ae144[_0x535d('0x22')](_0x535d('0xbf'),_0xad41d0);}}}});}),this[_0x535d('0x60')][_0x535d('0x52')][_0x535d('0xca')](_0x535d('0xce'))['dataToMarker']({'view':_0x535d('0xf0'),'model':_0x2d4d97=>_0x535d('0x15')+_0x2d4d97,'converterPriority':_0x535d('0xc9')}),this[_0x535d('0x60')][_0x535d('0x52')][_0x535d('0xca')](_0x535d('0xce'))[_0x535d('0xb1')]({'view':_0x535d('0x113'),'model':_0x33521e=>'revision-suggestion:'+_0x33521e,'converterPriority':_0x535d('0xc9')}),this[_0x535d('0x60')][_0x535d('0x52')][_0x535d('0xca')](_0x535d('0x1c'))[_0x535d('0xe')]({'model':'revision-suggestion','view':_0x4c2b5f=>({'name':'suggestion:'+_0x4c2b5f,'group':_0x535d('0x10')}),'converterPriority':_0x535d('0xc9')}),this[_0x535d('0x60')][_0x535d('0x52')][_0x535d('0xca')](_0x535d('0x116'))['markerToHighlight']({'model':_0x535d('0x10'),'view':_0x32c04b=>{const _0x3f92cc=_0x32c04b[_0x535d('0x11e')]['split'](':')[0x1];return _0x535d('0xef')!=_0x3f92cc&&_0x535d('0xa5')!=_0x3f92cc?null:{'classes':[_0x535d('0xc6'),'ck-suggestion-preview-marker-'+_0x3f92cc]};}}),this[_0x535d('0x60')]['editing']['downcastDispatcher']['on'](_0x535d('0x9b'),et(this[_0x535d('0x60')],_0x535d('0x47')),{'priority':'high'}),this['editor'][_0x535d('0xea')][_0x535d('0x37')]['on'](_0x535d('0xe2'),et(this[_0x535d('0x60')],'split'),{'priority':_0x535d('0x98')}),this[_0x535d('0x60')][_0x535d('0xea')]['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3f1e1d,_0x243b57,_0x4d69c0)=>{const _0x2f812e=_0x4d69c0['mapper'][_0x535d('0x9f')](_0x243b57['markerName']);if(_0x2f812e)for(const _0x16e24b of _0x2f812e)_0x16e24b['is'](_0x535d('0x16'))&&(_0x4d69c0[_0x535d('0xb3')][_0x535d('0xb9')](_0x16e24b,_0x243b57[_0x535d('0x11e')]),_0x4d69c0[_0x535d('0x95')][_0x535d('0x7a')](_0x16e24b));},{'priority':_0x535d('0x98')});}[_0x535d('0xf8')](_0x10aec7){return this['_changeIdToChange']['get'](_0x10aec7);}[_0x535d('0x33')](_0x448f87){return this['_changeView']&&this[_0x535d('0xa7')][_0x535d('0xc')](),this[_0x535d('0xa7')]=new _0x5a97c0(this[_0x535d('0x60')][_0x535d('0x23')],_0x448f87),this['_changeView'];}[_0x535d('0xb7')](){this[_0x535d('0x60')][_0x535d('0x119')][_0x535d('0x78')][_0x535d('0x104')][_0x535d('0xd4')](_0x535d('0xfe')),this['on'](_0x535d('0x7c'),(_0x3a67d9,_0x5f113d,_0x3fe63f,_0x51c8c8)=>{_0x51c8c8&&this[_0x535d('0x103')][_0x535d('0x7a')](_0x51c8c8),_0x3fe63f&&(this[_0x535d('0x103')][_0x535d('0x91')]({'view':_0x3fe63f,'stackId':_0x535d('0x69'),'position':{'target':()=>{const _0x574963=this[_0x535d('0x60')][_0x535d('0xea')],_0x4ca6dd=this[_0x535d('0xf8')](_0x3fe63f[_0x535d('0xa6')]);let _0x303a10;if(_0x4ca6dd['data'][_0x535d('0x1d')]){const _0x33ee26=_0x574963[_0x535d('0xe7')][_0x535d('0x14')](_0x4ca6dd[_0x535d('0x11b')]);_0x303a10=Array[_0x535d('0x5b')](_0x33ee26['getClientRects']());}else{const _0x5c6d4d=this[_0x535d('0x60')]['model']['markers'][_0x535d('0x101')](_0x535d('0x54')+_0x3fe63f[_0x535d('0xa6')]);_0x303a10=Array['from'](_0x574963[_0x535d('0xb3')][_0x535d('0x9f')](_0x5c6d4d[_0x535d('0x2c')]))['map'](_0x3a2d1d=>_0x574963[_0x535d('0xe7')][_0x535d('0xe8')][_0x535d('0x80')](_0x3a2d1d))[_0x535d('0xb')](_0x24130f=>Array['from'](_0x24130f[_0x535d('0x5a')]()))['flat']();}if(!this[_0x535d('0x7d')])return _0x303a10[0x0];return _0x303a10['find'](_0x4a18d0=>_0x4a18d0[_0x535d('0x1b')]-0x3<=this[_0x535d('0x7d')]['y']&&_0x4a18d0[_0x535d('0x24')]+0x3>=this[_0x535d('0x7d')]['y']&&_0x4a18d0[_0x535d('0xfd')]-0x3<=this[_0x535d('0x7d')]['x']&&_0x4a18d0[_0x535d('0xac')]+0x3>=this['_activeViewTarget']['x'])||_0x303a10[0x0];}}}),this['_balloon'][_0x535d('0x72')]('revisionHistoryLabel'));}),this['on'](_0x535d('0x90'),(_0x1493a0,_0x562520,_0x261ba0,_0xff66ff)=>{this[_0x535d('0xdb')]=_0x261ba0?this['_getViewForChange'](_0x261ba0):null,this[_0x535d('0x60')][_0x535d('0x119')][_0x535d('0x8f')](()=>{const _0x219adc=this[_0x535d('0x60')][_0x535d('0xea')];_0xff66ff&&(_0xff66ff['data']['isOnRoot']?_0x219adc['view'][_0x535d('0x8f')](_0x33f457=>{_0x33f457[_0x535d('0x3a')]('ck-revision-history-root--active',_0x219adc[_0x535d('0xe7')][_0x535d('0x78')]['getRoot'](_0xff66ff[_0x535d('0x11b')]));}):_0x219adc['reconvertMarker'](_0x535d('0x54')+_0xff66ff['id'])),_0x261ba0&&(_0x261ba0[_0x535d('0x56')][_0x535d('0x1d')]?_0x219adc[_0x535d('0xe7')][_0x535d('0x8f')](_0x4e6c64=>{_0x4e6c64[_0x535d('0x22')](_0x535d('0xbf'),_0x219adc[_0x535d('0xe7')]['document'][_0x535d('0xd8')](_0x261ba0['rootName']));}):_0x219adc[_0x535d('0xc4')](_0x535d('0x54')+_0x261ba0['id']));});}),this[_0x535d('0x6f')](this[_0x535d('0x60')]['editing'][_0x535d('0xe7')][_0x535d('0x78')],_0x535d('0xb0'),(_0x127124,_0x2e7834)=>{if(this['activeChange'])return;const _0x4c730d=this[_0x535d('0x34')](_0x2e7834['target']),_0x289d20=this[_0x535d('0x4')][_0x535d('0x101')](_0x4c730d);_0x289d20?(this['_activeViewTarget']={'x':_0x2e7834[_0x535d('0x13')]['x'],'y':_0x2e7834[_0x535d('0x13')]['y']},this[_0x535d('0xdb')]=this[_0x535d('0x33')](_0x289d20)):(this[_0x535d('0x7d')]=null,this[_0x535d('0xdb')]=null);}),this['listenTo'](this[_0x535d('0x60')][_0x535d('0xea')][_0x535d('0xe7')]['document'],_0x535d('0xb6'),(_0x1de486,_0x421bb9)=>{const _0x15e2d4=this[_0x535d('0x34')](_0x421bb9['target']),_0x4d06a7=this[_0x535d('0x4')][_0x535d('0x101')](_0x15e2d4);_0x4d06a7?(this[_0x535d('0x7d')]={'x':_0x421bb9[_0x535d('0x13')]['x'],'y':_0x421bb9[_0x535d('0x13')]['y']},_0x4d06a7===this[_0x535d('0x97')]?this[_0x535d('0x103')][_0x535d('0x4d')]():this['activeChange']=_0x4d06a7):(this[_0x535d('0x7d')]=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x52c4a4){do{const _0x8b447c=_0x52c4a4['getAttribute'](_0x535d('0x2a'));if(_0x8b447c)return _0x8b447c;_0x52c4a4=_0x52c4a4[_0x535d('0x9a')];}while(_0x52c4a4);return null;}['_cleanMarkers'](){this['editor'][_0x535d('0x119')]['change'](_0x2681cc=>{for(const _0x55c730 of this[_0x535d('0x60')][_0x535d('0x119')]['markers'])_0x2681cc['removeMarker'](_0x55c730);});}}function et(_0xfd0294,_0x30070d){return(_0x28f5e0,_0x520b43,_0x5cf91b)=>{if(!_0x5cf91b[_0x535d('0xf')][_0x535d('0x9e')](_0x520b43[_0x535d('0x55')],_0x28f5e0[_0x535d('0x2c')]))return;const _0x3bcc08=_0x520b43[_0x535d('0x55')][_0x535d('0x5f')](),_0x5c6aeb=_0x520b43[_0x535d('0x55')][_0x535d('0xf2')],_0x4e2be2=_0xfd0294[_0x535d('0x119')]['schema'];let _0x120f49=null,_0x5036b8=null,_0x35fcd4=!0x1,_0x2b3396=!0x1;for(const _0x394473 of _0x3bcc08){const _0x505786=_0x394473[_0x535d('0xc5')];_0x35fcd4=_0x35fcd4||_0x4e2be2[_0x535d('0xfb')](_0x505786);const _0x4ede38=_0x5cf91b[_0x535d('0xb3')]['toViewElement'](_0x505786);if(_0x4ede38&&_0x4ede38[_0x535d('0xdd')]('addHighlight'))return;'elementEnd'==_0x394473[_0x535d('0x1a')]&&(_0x4e2be2['isBlock'](_0x505786)&&!_0x4e2be2['isLimit'](_0x505786)&&(_0x505786[_0x535d('0x2b')]||_0x5c6aeb['isAtEnd']?_0x120f49&&_0x120f49[_0x535d('0x9a')]==_0x505786||(_0x120f49=_0x505786,_0x3867d2(_0x394473['previousPosition']),_0x2b3396=!0x0):_0x5036b8=_0x5036b8||_0x394473[_0x535d('0x18')]));}function _0x3867d2(_0x4d0687){const _0x24221f=_0x5cf91b[_0x535d('0xb3')][_0x535d('0x5c')](_0x4d0687),_0x3f06c4=_0x5cf91b[_0x535d('0x95')]['createUIElement'](_0x535d('0x11'),{'class':'ck-suggestion-preview-marker-'+_0x30070d});_0x5cf91b['writer']['insert'](_0x24221f,_0x3f06c4),_0x5cf91b['mapper']['bindElementToMarker'](_0x3f06c4,_0x520b43[_0x535d('0x11e')]);}_0x35fcd4||_0x2b3396||!_0x5036b8||_0x3867d2(_0x5036b8);};}export class RestoreRevisionCommand extends _0x576d13{constructor(_0xe54d2){super(_0xe54d2);const _0x42962d=_0xe54d2[_0x535d('0x38')]['get'](d);this['affectsData']=!0x1,this[_0x535d('0x6f')](_0x42962d,_0x535d('0x26'),()=>this[_0x535d('0x10b')]()),this[_0x535d('0x6f')](_0x42962d,_0x535d('0x30'),()=>this[_0x535d('0x10b')]());}['execute'](){const _0x4cc8bd=this['editor'],_0x26674b=_0x4cc8bd[_0x535d('0x38')][_0x535d('0x101')](d),_0x21b5cb=_0x26674b[_0x535d('0x43')]?_0x26674b[_0x535d('0x83')][_0x535d('0x6a')]:null;_0x4cc8bd[_0x535d('0xad')][_0x535d('0x101')](_0x535d('0x41'))[_0x535d('0x73')](_0x21b5cb);}[_0x535d('0x10b')](){const {isReady:_0xd95f96,isEnabled:_0x4f02a3}=this[_0x535d('0x60')][_0x535d('0x38')][_0x535d('0x101')](d);this['isEnabled']=_0xd95f96&&_0x4f02a3;}}export class ShowChangeCommand extends _0x576d13{constructor(_0x6bbbd7,{direction:_0x5cf2e5}){super(_0x6bbbd7);const _0x2fce4a=_0x6bbbd7[_0x535d('0x38')]['get'](d);this['affectsData']=!0x1,this['_step']=_0x535d('0xb8')===_0x5cf2e5?0x1:-0x1,this['listenTo'](_0x2fce4a,'change:isReady',()=>this[_0x535d('0x10b')]()),this['listenTo'](_0x2fce4a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2fce4a,_0x535d('0x90'),()=>this['refresh']());}[_0x535d('0x2e')](){const _0x341852=this[_0x535d('0x60')],_0x2e89fa=_0x341852['plugins'][_0x535d('0x101')](d),{isNavigationMode:_0x44278c,currentChangeNumber:_0x2bc48c}=_0x2e89fa;let _0x2cb4b0;if(_0x2e89fa['activeChange']=_0x44278c?_0x2e89fa[_0x535d('0x83')][_0x535d('0x32')][_0x535d('0x101')](_0x2bc48c+this[_0x535d('0xa0')]):_0x2e89fa[_0x535d('0x83')]['changes'][_0x535d('0x11a')],_0x2e89fa['activeChange']['data'][_0x535d('0x1d')])_0x2cb4b0=_0x341852['editing']['view'][_0x535d('0x14')](_0x2e89fa[_0x535d('0x97')][_0x535d('0x11b')]);else{const _0x1f8e44=_0x341852[_0x535d('0x119')][_0x535d('0x3c')][_0x535d('0x101')]('revision:'+_0x2e89fa[_0x535d('0x97')]['id']);_0x2cb4b0=_0x566da2(_0x341852[_0x535d('0xea')],_0x1f8e44);}_0x50f832({'target':_0x2cb4b0,'viewportOffset':0x28});}[_0x535d('0x10b')](){const {isNavigationMode:_0x300aaa,currentChangeNumber:_0x4da987,numberOfChanges:_0xb9252c,isReady:_0x524cf5,isEnabled:_0x4fe42f}=this[_0x535d('0x60')][_0x535d('0x38')]['get'](d);this[_0x535d('0x9c')]=!!(_0x4fe42f&&_0x524cf5&&_0xb9252c)&&(!_0x300aaa||(0x1===this[_0x535d('0xa0')]?_0x4da987<_0xb9252c-0x1:_0x4da987>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a9f=['add','listView','first','isReady','change:isActionsDropdownOpen','isEnabled','function','items','button','execute','threeVerticalDots','class','name','listenTo','find','bindTemplate','stopPropagation','source','ck-revision-history-sidebar__revision__actions','bind','extendTemplate','Show\x20more\x20items','isOpen','model','isVisible','set','_action','action','locale','ck-on','isActionsDropdownOpen','Name\x20this\x20revision'];(function(_0x359a93,_0x2a9f1b){const _0x466c17=function(_0x4c1454){while(--_0x4c1454){_0x359a93['push'](_0x359a93['shift']());}};_0x466c17(++_0x2a9f1b);}(_0x2a9f,0x145));const _0x466c=function(_0x359a93,_0x2a9f1b){_0x359a93=_0x359a93-0x0;let _0x466c17=_0x2a9f[_0x359a93];return _0x466c17;};import{Collection as _0x4f21ee}from'ckeditor5/src/utils.js';import{icons as _0x51cb87}from'ckeditor5/src/core.js';import{Model as _0x52af38,addListToDropdown as _0x2b8284,createDropdown as _0x38263a}from'ckeditor5/src/ui.js';import{getTranslation as _0x57abb8}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0xcdee38,_0x34284e){const _0x49888f=_0xcdee38[_0x466c('0xa')],_0x34fb0f=_0xcdee38['locale'],_0x1174da=_0x38263a(_0x34fb0f);_0x1174da['panelPosition']='sw';const _0x3ecf62=function(_0x19a3bf,_0x1f3d4e){const _0x22e6d6=function(_0x3e0e39,_0x35907e){const _0x31219c=_0x3e0e39[_0x466c('0x17')],_0x5421fc={'Compare\x20against\x20selected':_0x57abb8(_0x31219c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x57abb8(_0x31219c,_0x466c('0x1a')),'Restore\x20this\x20revision':_0x57abb8(_0x31219c,'Restore\x20this\x20revision')};return _0x35907e['map'](_0x15117f=>{const _0x4086a4=_0x5421fc[_0x15117f['name']];return _0x4086a4&&_0x4086a4!==_0x15117f[_0x466c('0x7')]&&(_0x15117f[_0x466c('0x7')]=_0x4086a4),_0x15117f;});}(_0x19a3bf,_0x1f3d4e),_0x545071=new _0x4f21ee();for(const _0x385c4f of _0x22e6d6){const _0x4ad4c7={'type':_0x466c('0x3'),'model':new _0x52af38({'label':_0x385c4f[_0x466c('0x7')],'class':_0x385c4f[_0x466c('0x6')],'withText':!0x0,'_action':_0x385c4f['action']})};_0x4ad4c7[_0x466c('0x12')][_0x466c('0xe')](_0x466c('0x0'))['to'](_0x19a3bf,'isActionsDropdownOpen',_0x1191e6=>_0x466c('0x1')!=typeof _0x385c4f[_0x466c('0x0')]||(!_0x1191e6||_0x385c4f[_0x466c('0x0')](_0x19a3bf))),_0x545071[_0x466c('0x1b')](_0x4ad4c7);}return _0x545071;}(_0xcdee38,_0x34284e);return _0xcdee38[_0x466c('0xe')]('isActionsDropdownOpen')['to'](_0x1174da,_0x466c('0x11')),_0x1174da['buttonView'][_0x466c('0x14')]({'label':_0x57abb8(_0x34fb0f,_0x466c('0x10')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x51cb87[_0x466c('0x5')]}),_0x1174da[_0x466c('0xf')]({'attributes':{'class':[_0x466c('0xd'),_0x49888f['if'](_0x466c('0x19'),_0x466c('0x18'))]},'on':{'click':_0x49888f['to'](_0x35fbac=>_0x35fbac[_0x466c('0xb')]())}}),_0x1174da['on'](_0x466c('0x4'),_0x5a9b26=>{_0xcdee38[_0x466c('0x1e')]&&_0x466c('0x1')==typeof _0x5a9b26[_0x466c('0xc')][_0x466c('0x15')]&&_0x5a9b26[_0x466c('0xc')]['_action'](_0xcdee38);}),_0x2b8284(_0x1174da,_0x3ecf62),_0x1174da[_0x466c('0x8')](_0xcdee38,_0x466c('0x1f'),(_0x35ed1b,_0x31e86e,_0x315c6f)=>{if(_0x315c6f)for(const _0x3ceb38 of _0x1174da[_0x466c('0x1c')][_0x466c('0x2')]){const _0x38371b=_0x3ceb38['children'][_0x466c('0x1d')],_0x417f52=_0x34284e[_0x466c('0x9')](_0x42a16a=>_0x42a16a[_0x466c('0x16')]===_0x38371b[_0x466c('0x15')])['isVisible'];_0x3ceb38[_0x466c('0x13')]=void 0x0===_0x417f52||_0x417f52(_0xcdee38);}}),_0x1174da;}
23
+ const _0x44fa=['Show\x20more\x20items','name','find','map','listView','model','action','first','source','ck-revision-history-sidebar__revision__actions','change:isActionsDropdownOpen','function','add','_action','isActionsDropdownOpen','stopPropagation','isOpen','Name\x20this\x20revision','bindTemplate','extendTemplate','isVisible','locale','button','execute','buttonView','bind','children','Compare\x20against\x20selected','isEnabled'];(function(_0xa0d27b,_0x44fabb){const _0x5a986c=function(_0x1c4387){while(--_0x1c4387){_0xa0d27b['push'](_0xa0d27b['shift']());}};_0x5a986c(++_0x44fabb);}(_0x44fa,0x8e));const _0x5a98=function(_0xa0d27b,_0x44fabb){_0xa0d27b=_0xa0d27b-0x0;let _0x5a986c=_0x44fa[_0xa0d27b];return _0x5a986c;};import{Collection as _0x301e6f}from'ckeditor5/src/utils.js';import{icons as _0xc797d0}from'ckeditor5/src/core.js';import{Model as _0x1dbc35,addListToDropdown as _0x2f2687,createDropdown as _0x5b2c12}from'ckeditor5/src/ui.js';import{getTranslation as _0x401dc0}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x545a51,_0x3f8bd0){const _0x154a91=_0x545a51[_0x5a98('0x15')],_0x27f47a=_0x545a51[_0x5a98('0x18')],_0x1e710f=_0x5b2c12(_0x27f47a);_0x1e710f['panelPosition']='sw';const _0x4226fa=function(_0x174115,_0xe8d000){const _0x548e24=function(_0x23ada9,_0x4a7e61){const _0x557cea=_0x23ada9[_0x5a98('0x18')],_0x59b44d={'Compare\x20against\x20selected':_0x401dc0(_0x557cea,_0x5a98('0x1')),'Name\x20this\x20revision':_0x401dc0(_0x557cea,_0x5a98('0x14')),'Restore\x20this\x20revision':_0x401dc0(_0x557cea,'Restore\x20this\x20revision')};return _0x4a7e61[_0x5a98('0x6')](_0x33a570=>{const _0x34aa11=_0x59b44d[_0x33a570[_0x5a98('0x4')]];return _0x34aa11&&_0x34aa11!==_0x33a570[_0x5a98('0x4')]&&(_0x33a570[_0x5a98('0x4')]=_0x34aa11),_0x33a570;});}(_0x174115,_0xe8d000),_0x306ddc=new _0x301e6f();for(const _0x3db279 of _0x548e24){const _0x10fda8={'type':_0x5a98('0x19'),'model':new _0x1dbc35({'label':_0x3db279[_0x5a98('0x4')],'class':_0x3db279['class'],'withText':!0x0,'_action':_0x3db279[_0x5a98('0x9')]})};_0x10fda8[_0x5a98('0x8')][_0x5a98('0x1c')](_0x5a98('0x2'))['to'](_0x174115,_0x5a98('0x11'),_0x2d7d8c=>'function'!=typeof _0x3db279[_0x5a98('0x2')]||(!_0x2d7d8c||_0x3db279[_0x5a98('0x2')](_0x174115))),_0x306ddc[_0x5a98('0xf')](_0x10fda8);}return _0x306ddc;}(_0x545a51,_0x3f8bd0);return _0x545a51[_0x5a98('0x1c')]('isActionsDropdownOpen')['to'](_0x1e710f,_0x5a98('0x13')),_0x1e710f[_0x5a98('0x1b')]['set']({'label':_0x401dc0(_0x27f47a,_0x5a98('0x3')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xc797d0['threeVerticalDots']}),_0x1e710f[_0x5a98('0x16')]({'attributes':{'class':[_0x5a98('0xc'),_0x154a91['if'](_0x5a98('0x11'),'ck-on')]},'on':{'click':_0x154a91['to'](_0x188e18=>_0x188e18[_0x5a98('0x12')]())}}),_0x1e710f['on'](_0x5a98('0x1a'),_0x4942f7=>{_0x545a51['isReady']&&_0x5a98('0xe')==typeof _0x4942f7[_0x5a98('0xb')][_0x5a98('0x10')]&&_0x4942f7['source'][_0x5a98('0x10')](_0x545a51);}),_0x2f2687(_0x1e710f,_0x4226fa),_0x1e710f['listenTo'](_0x545a51,_0x5a98('0xd'),(_0x34bd59,_0x4f59a1,_0x4da155)=>{if(_0x4da155)for(const _0x13a8d2 of _0x1e710f[_0x5a98('0x7')]['items']){const _0x7747a1=_0x13a8d2[_0x5a98('0x0')][_0x5a98('0xa')],_0x241aa8=_0x3f8bd0[_0x5a98('0x5')](_0x1801d2=>_0x1801d2[_0x5a98('0x9')]===_0x7747a1[_0x5a98('0x10')])[_0x5a98('0x17')];_0x13a8d2[_0x5a98('0x17')]=void 0x0===_0x241aa8||_0x241aa8(_0x545a51);}}),_0x1e710f;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x465e=['ck-revision-history-sidebar__revision-author_creator','set','push','Revision\x20creator','Revision\x20author','span'];(function(_0x2cd6a4,_0x465e2a){const _0x1bde27=function(_0x547e7e){while(--_0x547e7e){_0x2cd6a4['push'](_0x2cd6a4['shift']());}};_0x1bde27(++_0x465e2a);}(_0x465e,0x120));const _0x1bde=function(_0x2cd6a4,_0x465e2a){_0x2cd6a4=_0x2cd6a4-0x0;let _0x1bde27=_0x465e[_0x2cd6a4];return _0x1bde27;};import{View as _0x24c278,IconView as _0x3d3593}from'ckeditor5/src/ui.js';import{getTranslation as _0x2eaef7}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x586bc8 from'../../../theme/icons/user.svg';export default class ti extends _0x24c278{constructor(_0x24b4d7,_0x13d745,_0x23f84f){super(_0x24b4d7);const _0x1b84da=new _0x3d3593();_0x1b84da[_0x1bde('0x1')]({'content':_0x586bc8,'viewBox':'0\x200\x2011\x2010'});const _0x11bacc=['ck','ck-revision-history-sidebar__revision-author'];_0x23f84f&&_0x11bacc[_0x1bde('0x2')](_0x1bde('0x0'));const _0x514e3b=[{'tag':_0x1bde('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x2eaef7(_0x24b4d7,_0x23f84f?_0x1bde('0x3'):_0x1bde('0x4'))},'children':[_0x1b84da,_0x13d745['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x11bacc},'children':_0x514e3b});}}
23
+ const _0x56ed=['0\x200\x2011\x2010','span','ck-revision-history-sidebar__revision-author_creator','Revision\x20creator','set','ck-revision-history-sidebar__revision-author','setTemplate','Revision\x20author','ck-revision-history-sidebar__revision-author__name'];(function(_0xf13e0b,_0x56edb2){const _0x179ed2=function(_0x45b9bb){while(--_0x45b9bb){_0xf13e0b['push'](_0xf13e0b['shift']());}};_0x179ed2(++_0x56edb2);}(_0x56ed,0xa3));const _0x179e=function(_0xf13e0b,_0x56edb2){_0xf13e0b=_0xf13e0b-0x0;let _0x179ed2=_0x56ed[_0xf13e0b];return _0x179ed2;};import{View as _0x10f0e5,IconView as _0x44dce8}from'ckeditor5/src/ui.js';import{getTranslation as _0x578ddf}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x23ffe2 from'../../../theme/icons/user.svg';export default class ti extends _0x10f0e5{constructor(_0x3da0af,_0x4fbf0f,_0x48c0ba){super(_0x3da0af);const _0x422f4c=new _0x44dce8();_0x422f4c[_0x179e('0x3')]({'content':_0x23ffe2,'viewBox':_0x179e('0x8')});const _0x3dd088=['ck',_0x179e('0x4')];_0x48c0ba&&_0x3dd088['push'](_0x179e('0x1'));const _0x19e4d0=[{'tag':_0x179e('0x0'),'attributes':{'class':['ck',_0x179e('0x7')],'title':_0x578ddf(_0x3da0af,_0x48c0ba?_0x179e('0x2'):_0x179e('0x6'))},'children':[_0x422f4c,_0x4fbf0f['name']]}];this[_0x179e('0x5')]({'tag':'li','attributes':{'class':_0x3dd088},'children':_0x19e4d0});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x19c8=['ck-revision-history-sidebar__revision-name','span','set'];(function(_0x5e8cfb,_0x19c8ba){var _0x2dbace=function(_0x50c94c){while(--_0x50c94c){_0x5e8cfb['push'](_0x5e8cfb['shift']());}};_0x2dbace(++_0x19c8ba);}(_0x19c8,0x1f1));var _0x2dba=function(_0x5e8cfb,_0x19c8ba){_0x5e8cfb=_0x5e8cfb-0x0;var _0x2dbace=_0x19c8[_0x5e8cfb];return _0x2dbace;};import{LabeledFieldView as _0x1c5005}from'ckeditor5/src/ui.js';import{getTranslation as _0x3d5ee8}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x1c5005{constructor(_0x23149c,_0xb03b1f){super(_0x23149c,_0xb03b1f),this[_0x2dba('0x0')]({'label':_0x3d5ee8(_0x23149c,'Revision\x20name')}),this['extendTemplate']({'tag':_0x2dba('0x2'),'attributes':{'class':[_0x2dba('0x1')]}});}}
23
+ var _0x4eb4=['span','Revision\x20name','set','ck-revision-history-sidebar__revision-name'];(function(_0x4a2836,_0x4eb4af){var _0x3cd0c4=function(_0x1a340c){while(--_0x1a340c){_0x4a2836['push'](_0x4a2836['shift']());}};_0x3cd0c4(++_0x4eb4af);}(_0x4eb4,0x19b));var _0x3cd0=function(_0x4a2836,_0x4eb4af){_0x4a2836=_0x4a2836-0x0;var _0x3cd0c4=_0x4eb4[_0x4a2836];return _0x3cd0c4;};import{LabeledFieldView as _0x409612}from'ckeditor5/src/ui.js';import{getTranslation as _0x1de176}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x409612{constructor(_0x59fc8c,_0x4d9b8a){super(_0x59fc8c,_0x4d9b8a),this[_0x3cd0('0x3')]({'label':_0x1de176(_0x59fc8c,_0x3cd0('0x2'))}),this['extendTemplate']({'tag':_0x3cd0('0x1'),'attributes':{'class':[_0x3cd0('0x0')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1dba=['ck-revision-history-sidebar__revision_selected','createdAt','220','revisionActionsView','isHighlighted','unshift','span','closest','value','fire','unhighlight','deselect','fieldView','length','creator','div','element','from','name','_revision','isEnabled','authors','ck-reset','isSelected','bind','isReady','ck-revision-history-sidebar__revision-wrapper','.ck-thread__remove-confirm','revisionNameView','_createdAtFormatted','ck-revision-history-sidebar__revision__date','srcElement','uiLanguage','ck-revision-history-sidebar__revision__controls-wrapper','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','select','ck-revision-history-sidebar__revision_highlighted','ck-revision-history-sidebar__revision','setTemplate','bindTemplate','set','filter','change'];(function(_0x5bd39e,_0x1dba69){const _0x34e2f7=function(_0x2f7bd1){while(--_0x2f7bd1){_0x5bd39e['push'](_0x5bd39e['shift']());}};_0x34e2f7(++_0x1dba69);}(_0x1dba,0x1e6));const _0x34e2=function(_0x5bd39e,_0x1dba69){_0x5bd39e=_0x5bd39e-0x0;let _0x34e2f7=_0x1dba[_0x5bd39e];return _0x34e2f7;};import{View as _0x106b5b,createLabeledInputText as _0x5b1ae1}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x3eb4f1}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2d7bb6 from'./revisionnameview.js';import _0x355fb6 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x40dd07}from'./utils.js';import{createActionsDropdownView as _0x25904d}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x3eb4f1(_0x106b5b){constructor(_0x13b99b,_0x27952a,_0x144aa3){super(_0x13b99b);const _0x26620b=this[_0x34e2('0x26')],_0x38ebbe=function(_0x518e1f,_0xede8a7){const _0x1388df=Array[_0x34e2('0xf')](_0xede8a7[_0x34e2('0x13')])[_0x34e2('0x28')](_0xffc351=>_0xffc351!=_0xede8a7[_0x34e2('0xc')]);return _0xede8a7[_0x34e2('0xc')]&&_0x1388df[_0x34e2('0x3')](_0xede8a7[_0x34e2('0xc')]),_0x1388df['map'](_0x542758=>new _0x355fb6(_0x518e1f,_0x542758,_0x542758==_0xede8a7['creator']));}(_0x13b99b,_0x27952a);this['id']=_0x27952a['id'],this[_0x34e2('0x11')]=_0x27952a,this['bind'](_0x34e2('0x10'),_0x34e2('0x2b'))['to'](_0x27952a),this[_0x34e2('0x16')](_0x34e2('0x1b'))['to'](this,'createdAt',_0x2033a0=>_0x2033a0?_0x40dd07(_0x13b99b[_0x34e2('0x1e')],_0x2033a0):void 0x0),this[_0x34e2('0x27')]('isSelected',!0x1),this[_0x34e2('0x27')](_0x34e2('0x2'),!0x1),this['set']('isActionsDropdownOpen',!0x1),this[_0x34e2('0x27')](_0x34e2('0x17'),!0x1),this[_0x34e2('0x27')](_0x34e2('0x12'),!0x1),this[_0x34e2('0x1a')]=new _0x2d7bb6(_0x13b99b,_0x5b1ae1),this[_0x34e2('0x1a')][_0x34e2('0xa')]['extendTemplate']({'attributes':{'maxlength':_0x34e2('0x0')}}),this[_0x34e2('0x1a')][_0x34e2('0xa')][_0x34e2('0x16')]('value','placeholder')['to'](this,_0x34e2('0x10'),_0x34e2('0x1b')),this[_0x34e2('0x1a')][_0x34e2('0x16')]('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x12b971,_0x3e081e)=>_0x12b971&&_0x3e081e),this[_0x34e2('0x1')]=_0x144aa3&&_0x144aa3[_0x34e2('0xb')]?_0x25904d(this,_0x144aa3):'',this[_0x34e2('0x1')]&&this['revisionActionsView'][_0x34e2('0x16')](_0x34e2('0x12'))['to'](this),this[_0x34e2('0x25')]({'tag':_0x34e2('0xd'),'attributes':{'class':['ck',_0x34e2('0x14'),_0x34e2('0x18'),_0x26620b['if']('isConfirm',_0x34e2('0x21'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x34e2('0x14'),_0x34e2('0x24'),_0x26620b['if'](_0x34e2('0x12'),'ck-disabled',_0x36ce5a=>!_0x36ce5a),_0x26620b['if'](_0x34e2('0x15'),_0x34e2('0x2a')),_0x26620b['if'](_0x34e2('0x2'),_0x34e2('0x23')),_0x26620b['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':_0x34e2('0x4'),'attributes':{'class':['ck',_0x34e2('0x1c')]},'children':[{'text':_0x26620b['to']('_createdAtFormatted')}]},{'tag':_0x34e2('0xd'),'attributes':{'class':['ck',_0x34e2('0x1f')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x34e2('0x20')]},'children':_0x38ebbe}]},this[_0x34e2('0x1')]],'on':{'click':_0x26620b['to'](_0x4d13ee=>{_0x4d13ee[_0x34e2('0x1d')][_0x34e2('0x5')](_0x34e2('0x19'))||this[_0x34e2('0x17')]&&this[_0x34e2('0x12')]&&this[_0x34e2('0x7')](_0x34e2('0x22'),{'id':this['id']});})}}]});}['render'](){super['render']();const _0xb53a1b=this[_0x34e2('0x1a')]['fieldView'][_0x34e2('0xe')];this['listenTo'](_0xb53a1b,_0x34e2('0x29'),()=>{this[_0x34e2('0x7')]('setName',{'id':this['id'],'name':_0xb53a1b[_0x34e2('0x6')]});});}[_0x34e2('0x22')](){this[_0x34e2('0x15')]=!0x0;}[_0x34e2('0x9')](){this[_0x34e2('0x15')]=!0x1;}['highlight'](){this[_0x34e2('0x2')]=!0x0;}[_0x34e2('0x8')](){this[_0x34e2('0x2')]=!0x1;}}
23
+ const _0x1969=['ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision__date','_revision','ck-revision-history-sidebar__revision_highlighted','name','uiLanguage','isSelected','value','authors','ck-revision-history-sidebar__revision__controls-wrapper','length','closest','span','filter','select','createdAt','ck-reset','div','revisionNameView','highlight','isActionsDropdownOpen','isConfirm','ck-revision-history-sidebar__revision_selected','ck-disabled','deselect','isReady','isHighlighted','element','change','ck-revision-history-sidebar__actions_dropdown_open','from','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','bind','placeholder','listenTo','render','setTemplate','fieldView','isEnabled','creator','set','fire','ck-revision-history-sidebar__revision','_createdAtFormatted','revisionActionsView','unhighlight'];(function(_0x2fd221,_0x196925){const _0x249014=function(_0x3c8d1d){while(--_0x3c8d1d){_0x2fd221['push'](_0x2fd221['shift']());}};_0x249014(++_0x196925);}(_0x1969,0x12d));const _0x2490=function(_0x2fd221,_0x196925){_0x2fd221=_0x2fd221-0x0;let _0x249014=_0x1969[_0x2fd221];return _0x249014;};import{View as _0x5778ca,createLabeledInputText as _0x156731}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x4209b7}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x10c768 from'./revisionnameview.js';import _0x3792a5 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x390f02}from'./utils.js';import{createActionsDropdownView as _0x3c0b75}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x4209b7(_0x5778ca){constructor(_0x51499d,_0x28dad1,_0x1ac99b){super(_0x51499d);const _0x30722e=this['bindTemplate'],_0x49ada1=function(_0x4fa2a2,_0x3f2a66){const _0x16156d=Array[_0x2490('0x5')](_0x3f2a66[_0x2490('0x1d')])[_0x2490('0x22')](_0x352c92=>_0x352c92!=_0x3f2a66[_0x2490('0xe')]);return _0x3f2a66['creator']&&_0x16156d['unshift'](_0x3f2a66[_0x2490('0xe')]),_0x16156d['map'](_0x1bfde9=>new _0x3792a5(_0x4fa2a2,_0x1bfde9,_0x1bfde9==_0x3f2a66[_0x2490('0xe')]));}(_0x51499d,_0x28dad1);this['id']=_0x28dad1['id'],this[_0x2490('0x17')]=_0x28dad1,this['bind'](_0x2490('0x19'),_0x2490('0x24'))['to'](_0x28dad1),this[_0x2490('0x7')](_0x2490('0x12'))['to'](this,_0x2490('0x24'),_0x1cb207=>_0x1cb207?_0x390f02(_0x51499d[_0x2490('0x1a')],_0x1cb207):void 0x0),this[_0x2490('0xf')](_0x2490('0x1b'),!0x1),this[_0x2490('0xf')](_0x2490('0x1'),!0x1),this[_0x2490('0xf')](_0x2490('0x29'),!0x1),this[_0x2490('0xf')](_0x2490('0x0'),!0x1),this['set'](_0x2490('0xd'),!0x1),this['revisionNameView']=new _0x10c768(_0x51499d,_0x156731),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this[_0x2490('0x27')][_0x2490('0xc')][_0x2490('0x7')]('value',_0x2490('0x8'))['to'](this,'name',_0x2490('0x12')),this[_0x2490('0x27')][_0x2490('0x7')](_0x2490('0xd'))['to'](this,_0x2490('0x1b'),this,_0x2490('0xd'),(_0x4f576d,_0x3164f1)=>_0x4f576d&&_0x3164f1),this[_0x2490('0x13')]=_0x1ac99b&&_0x1ac99b[_0x2490('0x1f')]?_0x3c0b75(this,_0x1ac99b):'',this['revisionActionsView']&&this[_0x2490('0x13')]['bind']('isEnabled')['to'](this),this[_0x2490('0xb')]({'tag':_0x2490('0x26'),'attributes':{'class':['ck',_0x2490('0x25'),'ck-revision-history-sidebar__revision-wrapper',_0x30722e['if'](_0x2490('0x2a'),_0x2490('0x6'))]},'children':[{'tag':_0x2490('0x26'),'attributes':{'class':['ck',_0x2490('0x25'),_0x2490('0x11'),_0x30722e['if']('isEnabled',_0x2490('0x2c'),_0x17ec13=>!_0x17ec13),_0x30722e['if'](_0x2490('0x1b'),_0x2490('0x2b')),_0x30722e['if'](_0x2490('0x1'),_0x2490('0x18')),_0x30722e['if'](_0x2490('0x29'),_0x2490('0x4'))]},'children':[this['revisionNameView'],{'tag':_0x2490('0x21'),'attributes':{'class':['ck',_0x2490('0x16')]},'children':[{'text':_0x30722e['to'](_0x2490('0x12'))}]},{'tag':_0x2490('0x26'),'attributes':{'class':['ck',_0x2490('0x1e')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x2490('0x15')]},'children':_0x49ada1}]},this[_0x2490('0x13')]],'on':{'click':_0x30722e['to'](_0x2025ac=>{_0x2025ac['srcElement'][_0x2490('0x20')]('.ck-thread__remove-confirm')||this[_0x2490('0x0')]&&this[_0x2490('0xd')]&&this[_0x2490('0x10')](_0x2490('0x23'),{'id':this['id']});})}}]});}[_0x2490('0xa')](){super[_0x2490('0xa')]();const _0x42c6c9=this[_0x2490('0x27')][_0x2490('0xc')][_0x2490('0x2')];this[_0x2490('0x9')](_0x42c6c9,_0x2490('0x3'),()=>{this[_0x2490('0x10')]('setName',{'id':this['id'],'name':_0x42c6c9[_0x2490('0x1c')]});});}['select'](){this['isSelected']=!0x0;}[_0x2490('0x2d')](){this[_0x2490('0x1b')]=!0x1;}[_0x2490('0x28')](){this[_0x2490('0x1')]=!0x0;}[_0x2490('0x14')](){this[_0x2490('0x1')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x381a=['true','button','ck-hidden','span','false','ck-revision-history-sidebar__subrevision-collapser','_isCollapsed','isVisible','toggle','bindTemplate','ck-revision-history-sidebar__subrevision-collapser__inner','setTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed'];(function(_0x20db3a,_0x381ade){const _0x16d040=function(_0x260781){while(--_0x260781){_0x20db3a['push'](_0x20db3a['shift']());}};_0x16d040(++_0x381ade);}(_0x381a,0xee));const _0x16d0=function(_0x20db3a,_0x381ade){_0x20db3a=_0x20db3a-0x0;let _0x16d040=_0x381a[_0x20db3a];return _0x16d040;};import{View as _0x1800c3}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x1800c3{constructor(_0x3acc43){super(_0x3acc43);const _0x263dee=this[_0x16d0('0x5')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x16d0('0x7')]({'tag':'span','attributes':{'class':['ck',_0x16d0('0x1'),_0x263dee['if'](_0x16d0('0x3'),_0x16d0('0xb'),_0x5e18f1=>!_0x5e18f1),_0x263dee['if']('_isCollapsed',_0x16d0('0x8'))],'role':_0x16d0('0xa'),'aria-pressed':_0x263dee['to'](_0x16d0('0x2'),_0x3a60d8=>_0x3a60d8?_0x16d0('0x0'):_0x16d0('0x9'))},'children':[{'tag':_0x16d0('0xc'),'attributes':{'class':['ck',_0x16d0('0x6')]}}],'on':{'click':_0x263dee['to']('click')}});}[_0x16d0('0x4')](){this[_0x16d0('0x2')]=!this[_0x16d0('0x2')];}}
23
+ const _0x164e=['ck-hidden','span','set','ck-revision-history-sidebar__subrevision-collapser_collapsed','button','true','bindTemplate','_isCollapsed','isVisible','false'];(function(_0x125209,_0x164ef4){const _0x8210bb=function(_0x4c20e9){while(--_0x4c20e9){_0x125209['push'](_0x125209['shift']());}};_0x8210bb(++_0x164ef4);}(_0x164e,0xb1));const _0x8210=function(_0x125209,_0x164ef4){_0x125209=_0x125209-0x0;let _0x8210bb=_0x164e[_0x125209];return _0x8210bb;};import{View as _0x5abc86}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x5abc86{constructor(_0x331af0){super(_0x331af0);const _0x3497a5=this[_0x8210('0x9')];this[_0x8210('0x5')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x8210('0x4'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x3497a5['if'](_0x8210('0x1'),_0x8210('0x3'),_0x4a47ee=>!_0x4a47ee),_0x3497a5['if'](_0x8210('0x0'),_0x8210('0x6'))],'role':_0x8210('0x7'),'aria-pressed':_0x3497a5['to'](_0x8210('0x0'),_0x182ae2=>_0x182ae2?_0x8210('0x2'):_0x8210('0x8'))},'children':[{'tag':_0x8210('0x4'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x3497a5['to']('click')}});}['toggle'](){this[_0x8210('0x0')]=!this[_0x8210('0x0')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x31b8=['creator','_parentRevisionId','deselect','bind','_createdAtFormatted','set','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision__date','bindTemplate','setTemplate','uiLanguage','isSelected','ck-revision-history-sidebar__subrevision','span','createdAt','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision_selected','select'];(function(_0x3baaf0,_0x31b848){const _0xb99ae5=function(_0x513520){while(--_0x513520){_0x3baaf0['push'](_0x3baaf0['shift']());}};_0xb99ae5(++_0x31b848);}(_0x31b8,0x15e));const _0xb99a=function(_0x3baaf0,_0x31b848){_0x3baaf0=_0x3baaf0-0x0;let _0xb99ae5=_0x31b8[_0x3baaf0];return _0xb99ae5;};import{View as _0x55f194}from'ckeditor5/src/ui.js';import _0x325af2 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x5e1288}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x55f194{constructor(_0x15feeb,_0x53b6a9,_0x53ffbb){super(_0x15feeb);const _0x12e0a5=this[_0xb99a('0x0')];this['id']=_0x53b6a9['id'],this['bind'](_0xb99a('0x6'))['to'](_0x53b6a9),this[_0xb99a('0xf')](_0xb99a('0x3'),!0x1),this['bind'](_0xb99a('0xe'))['to'](this,_0xb99a('0x6'),_0x1be3de=>_0x1be3de?_0x5e1288(_0x15feeb[_0xb99a('0x2')],_0x1be3de):void 0x0),this['_parentRevisionId']=_0x53ffbb,this[_0xb99a('0x1')]({'tag':'div','attributes':{'class':['ck','ck-reset',_0xb99a('0x10'),_0xb99a('0x4'),_0x12e0a5['if'](_0xb99a('0x3'),_0xb99a('0x8'))]},'children':[{'tag':_0xb99a('0x5'),'attributes':{'class':['ck',_0xb99a('0x11')]},'children':[{'text':_0x12e0a5['to'](_0xb99a('0xe'))}]},{'tag':'ul','attributes':{'class':['ck',_0xb99a('0x7')]},'children':[new _0x325af2(_0x15feeb,_0x53b6a9[_0xb99a('0xa')],!0x0)]}],'on':{'click':_0x12e0a5['to'](this['select'][_0xb99a('0xd')](this))}});}[_0xb99a('0x9')](){this[_0xb99a('0x3')]=!0x0,this['fire']('select',{'parentId':this[_0xb99a('0xb')]});}[_0xb99a('0xc')](){this[_0xb99a('0x3')]=!0x1;}}
23
+ const _0x2aee=['uiLanguage','fire','_createdAtFormatted','setTemplate','creator','_parentRevisionId','ck-reset','bind','isSelected','deselect','span','createdAt','set','div','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision_selected','select'];(function(_0x653fc7,_0x2aee28){const _0x722905=function(_0x4983d1){while(--_0x4983d1){_0x653fc7['push'](_0x653fc7['shift']());}};_0x722905(++_0x2aee28);}(_0x2aee,0x7e));const _0x7229=function(_0x653fc7,_0x2aee28){_0x653fc7=_0x653fc7-0x0;let _0x722905=_0x2aee[_0x653fc7];return _0x722905;};import{View as _0x40cdc2}from'ckeditor5/src/ui.js';import _0x5dbca7 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x476dad}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x40cdc2{constructor(_0x2d62b6,_0x4845bc,_0x4083f6){super(_0x2d62b6);const _0x1ca9fb=this['bindTemplate'];this['id']=_0x4845bc['id'],this[_0x7229('0x0')](_0x7229('0x4'))['to'](_0x4845bc),this[_0x7229('0x5')](_0x7229('0x1'),!0x1),this[_0x7229('0x0')](_0x7229('0xc'))['to'](this,_0x7229('0x4'),_0x4a4f9d=>_0x4a4f9d?_0x476dad(_0x2d62b6[_0x7229('0xa')],_0x4a4f9d):void 0x0),this[_0x7229('0xf')]=_0x4083f6,this[_0x7229('0xd')]({'tag':_0x7229('0x6'),'attributes':{'class':['ck',_0x7229('0x10'),_0x7229('0x7'),'ck-revision-history-sidebar__subrevision',_0x1ca9fb['if'](_0x7229('0x1'),_0x7229('0x8'))]},'children':[{'tag':_0x7229('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x1ca9fb['to'](_0x7229('0xc'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x5dbca7(_0x2d62b6,_0x4845bc[_0x7229('0xe')],!0x0)]}],'on':{'click':_0x1ca9fb['to'](this['select']['bind'](this))}});}['select'](){this[_0x7229('0x1')]=!0x0,this[_0x7229('0xb')](_0x7229('0x9'),{'parentId':this[_0x7229('0xf')]});}[_0x7229('0x2')](){this[_0x7229('0x1')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5e39=['long','numeric','toLocaleDateString','toLocaleTimeString'];(function(_0x2b59bf,_0x5e39b1){var _0x26029f=function(_0x225592){while(--_0x225592){_0x2b59bf['push'](_0x2b59bf['shift']());}};_0x26029f(++_0x5e39b1);}(_0x5e39,0x11a));var _0x2602=function(_0x2b59bf,_0x5e39b1){_0x2b59bf=_0x2b59bf-0x0;var _0x26029f=_0x5e39[_0x2b59bf];return _0x26029f;};export function dateToPrettyFormat(_0x3279a7,_0x5e78db){return _0x5e78db[_0x2602('0x0')](_0x3279a7,{'month':_0x2602('0x2'),'day':_0x2602('0x3')})+',\x20'+_0x5e78db[_0x2602('0x1')](_0x3279a7,{'hour':_0x2602('0x3'),'minute':_0x2602('0x3')});}
23
+ var _0x3ca9=['numeric','long','toLocaleTimeString'];(function(_0x9e199d,_0x3ca902){var _0x27bc38=function(_0x2faf01){while(--_0x2faf01){_0x9e199d['push'](_0x9e199d['shift']());}};_0x27bc38(++_0x3ca902);}(_0x3ca9,0x8d));var _0x27bc=function(_0x9e199d,_0x3ca902){_0x9e199d=_0x9e199d-0x0;var _0x27bc38=_0x3ca9[_0x9e199d];return _0x27bc38;};export function dateToPrettyFormat(_0x1b7eb8,_0x24f1ff){return _0x24f1ff['toLocaleDateString'](_0x1b7eb8,{'month':_0x27bc('0x1'),'day':_0x27bc('0x0')})+',\x20'+_0x24f1ff[_0x27bc('0x2')](_0x1b7eb8,{'hour':_0x27bc('0x0'),'minute':_0x27bc('0x0')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5eda=['saveButtonView','revisionNameInputValue','Save','arrowleft','reset','type','set','form','submit','setTemplate','220','input','cancel','keystrokes','check','forEach','Cancel','tab','cancelButtonView','element','_createButton','arrowdown','extendTemplate','ck-button-cancel','value','arrowright','stopPropagation','delegate','revisionNameInputView','ck-button-save','focusTracker','fieldView','shift\x20+\x20tab','listenTo','focus','locale','arrowup','label','trim','_focusCycler','_focusables','ck-revision-history-save-revision-form','revisionName','_createRevisionNameInput','add','render','ck-responsive-form','Name\x20of\x20the\x20revision\x20(optional)'];(function(_0x41052a,_0x5eda7f){const _0xdc200a=function(_0x37bf14){while(--_0x37bf14){_0x41052a['push'](_0x41052a['shift']());}};_0xdc200a(++_0x5eda7f);}(_0x5eda,0x175));const _0xdc20=function(_0x41052a,_0x5eda7f){_0x41052a=_0x41052a-0x0;let _0xdc200a=_0x5eda[_0x41052a];return _0xdc200a;};import{icons as _0x1855b6}from'ckeditor5/src/core.js';import{ButtonView as _0x5f2305,FocusCycler as _0x36b050,LabeledFieldView as _0x3a6a04,View as _0x563ec5,ViewCollection as _0x4fc754,createLabeledInputText as _0x5ca9d0,injectCssTransitionDisabler as _0x141d2f,submitHandler as _0x57def4}from'ckeditor5/src/ui.js';import{FocusTracker as _0x29d116,KeystrokeHandler as _0x23f472}from'ckeditor5/src/utils.js';import{getTranslation as _0xd6848d}from'../../utils/common-translations.js';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x563ec5{constructor(_0x3300c5){super(_0x3300c5),this[_0xdc20('0x29')]=new _0x29d116(),this[_0xdc20('0x18')]=new _0x23f472(),this[_0xdc20('0x11')](_0xdc20('0xc'),''),this['revisionNameInputView']=this[_0xdc20('0x6')](),this[_0xdc20('0xb')]=this[_0xdc20('0x1f')](_0xd6848d(_0x3300c5,_0xdc20('0xd')),_0x1855b6[_0xdc20('0x19')],_0xdc20('0x28')),this['saveButtonView'][_0xdc20('0x10')]=_0xdc20('0x13'),this[_0xdc20('0x1d')]=this[_0xdc20('0x1f')](_0xd6848d(_0x3300c5,_0xdc20('0x1b')),_0x1855b6[_0xdc20('0x17')],_0xdc20('0x22'),_0xdc20('0x17')),this[_0xdc20('0x3')]=new _0x4fc754(),this['_focusCycler']=new _0x36b050({'focusables':this[_0xdc20('0x3')],'focusTracker':this[_0xdc20('0x29')],'keystrokeHandler':this[_0xdc20('0x18')],'actions':{'focusPrevious':_0xdc20('0x2b'),'focusNext':_0xdc20('0x1c')}}),this[_0xdc20('0x14')]({'tag':_0xdc20('0x12'),'attributes':{'class':['ck',_0xdc20('0x4'),_0xdc20('0x9')],'tabindex':'-1'},'children':[this[_0xdc20('0x27')],this[_0xdc20('0xb')],this['cancelButtonView']]}),_0x141d2f(this);}[_0xdc20('0x8')](){super[_0xdc20('0x8')](),_0x57def4({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this[_0xdc20('0x1d')]][_0xdc20('0x1a')](_0x3d1094=>{this[_0xdc20('0x3')][_0xdc20('0x7')](_0x3d1094),this[_0xdc20('0x29')][_0xdc20('0x7')](_0x3d1094['element']);}),this[_0xdc20('0x18')][_0xdc20('0x2c')](this[_0xdc20('0x1e')]));const _0x24683d=_0x1cf43d=>_0x1cf43d[_0xdc20('0x25')]();this['keystrokes'][_0xdc20('0x11')](_0xdc20('0x24'),_0x24683d),this[_0xdc20('0x18')][_0xdc20('0x11')](_0xdc20('0xe'),_0x24683d),this[_0xdc20('0x18')][_0xdc20('0x11')](_0xdc20('0x2f'),_0x24683d),this['keystrokes'][_0xdc20('0x11')](_0xdc20('0x20'),_0x24683d);}[_0xdc20('0x2d')](){this[_0xdc20('0x2')]['focusFirst']();}get[_0xdc20('0x5')](){return this[_0xdc20('0x27')][_0xdc20('0x2a')]['element']['value']['trim']();}set[_0xdc20('0x5')](_0x4495cf){this[_0xdc20('0x27')][_0xdc20('0x2a')][_0xdc20('0x1e')][_0xdc20('0x23')]=_0x4495cf[_0xdc20('0x1')]();}[_0xdc20('0xf')](){this[_0xdc20('0x27')][_0xdc20('0x2a')][_0xdc20('0x1e')]['value']='';}[_0xdc20('0x6')](){const _0x4b3dc8=new _0x3a6a04(this[_0xdc20('0x2e')],_0x5ca9d0),_0x3f4057=_0x4b3dc8[_0xdc20('0x2a')];return _0x3f4057[_0xdc20('0x21')]({'attributes':{'maxlength':_0xdc20('0x15')}}),_0x4b3dc8[_0xdc20('0x0')]=_0xd6848d(this['locale'],_0xdc20('0xa')),_0x3f4057['on'](_0xdc20('0x16'),()=>{this[_0xdc20('0xc')]=_0x3f4057[_0xdc20('0x1e')][_0xdc20('0x23')]['trim']();}),_0x4b3dc8;}[_0xdc20('0x1f')](_0x3357e2,_0x127509,_0x2ff26a,_0x4c8111){const _0x4495b0=new _0x5f2305(this[_0xdc20('0x2e')]);return _0x4495b0['set']({'label':_0x3357e2,'icon':_0x127509,'tooltip':!0x0}),_0x4495b0[_0xdc20('0x21')]({'attributes':{'class':_0x2ff26a}}),_0x4c8111&&_0x4495b0[_0xdc20('0x26')]('execute')['to'](this,_0x4c8111),_0x4495b0;}}
23
+ const _0x57c7=['extendTemplate','set','revisionName','ck-button-cancel','render','submit','input','forEach','stopPropagation','220','execute','focusTracker','arrowleft','cancel','arrowdown','_focusCycler','_createButton','setTemplate','revisionNameInputValue','locale','Cancel','arrowup','type','_focusables','cancelButtonView','add','ck-revision-history-save-revision-form','fieldView','arrowright','tab','saveButtonView','trim','_createRevisionNameInput','element','revisionNameInputView','check','focus','label','ck-responsive-form','reset','keystrokes','form','focusFirst','value','ck-button-save'];(function(_0x58ad85,_0x57c7c7){const _0x3aa628=function(_0x4a09e2){while(--_0x4a09e2){_0x58ad85['push'](_0x58ad85['shift']());}};_0x3aa628(++_0x57c7c7);}(_0x57c7,0x1d8));const _0x3aa6=function(_0x58ad85,_0x57c7c7){_0x58ad85=_0x58ad85-0x0;let _0x3aa628=_0x57c7[_0x58ad85];return _0x3aa628;};import{icons as _0x403d8d}from'ckeditor5/src/core.js';import{ButtonView as _0x537c99,FocusCycler as _0x3ecf89,LabeledFieldView as _0x33e006,View as _0x573192,ViewCollection as _0x52ea19,createLabeledInputText as _0x32f9d4,injectCssTransitionDisabler as _0x301e70,submitHandler as _0x2ec739}from'ckeditor5/src/ui.js';import{FocusTracker as _0x3764f1,KeystrokeHandler as _0x13e489}from'ckeditor5/src/utils.js';import{getTranslation as _0x4aacc5}from'../../utils/common-translations.js';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x573192{constructor(_0x25db55){super(_0x25db55),this['focusTracker']=new _0x3764f1(),this[_0x3aa6('0x12')]=new _0x13e489(),this[_0x3aa6('0x18')](_0x3aa6('0x29'),''),this['revisionNameInputView']=this[_0x3aa6('0xa')](),this[_0x3aa6('0x8')]=this[_0x3aa6('0x27')](_0x4aacc5(_0x25db55,'Save'),_0x403d8d[_0x3aa6('0xd')],_0x3aa6('0x16')),this['saveButtonView'][_0x3aa6('0x0')]=_0x3aa6('0x1c'),this['cancelButtonView']=this['_createButton'](_0x4aacc5(_0x25db55,_0x3aa6('0x2b')),_0x403d8d[_0x3aa6('0x24')],_0x3aa6('0x1a'),'cancel'),this[_0x3aa6('0x1')]=new _0x52ea19(),this[_0x3aa6('0x26')]=new _0x3ecf89({'focusables':this[_0x3aa6('0x1')],'focusTracker':this[_0x3aa6('0x22')],'keystrokeHandler':this[_0x3aa6('0x12')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x3aa6('0x7')}}),this[_0x3aa6('0x28')]({'tag':_0x3aa6('0x13'),'attributes':{'class':['ck',_0x3aa6('0x4'),_0x3aa6('0x10')],'tabindex':'-1'},'children':[this[_0x3aa6('0xc')],this['saveButtonView'],this[_0x3aa6('0x2')]]}),_0x301e70(this);}[_0x3aa6('0x1b')](){super['render'](),_0x2ec739({'view':this}),([this[_0x3aa6('0xc')],this[_0x3aa6('0x8')],this['cancelButtonView']][_0x3aa6('0x1e')](_0x53f98f=>{this[_0x3aa6('0x1')][_0x3aa6('0x3')](_0x53f98f),this[_0x3aa6('0x22')][_0x3aa6('0x3')](_0x53f98f[_0x3aa6('0xb')]);}),this[_0x3aa6('0x12')]['listenTo'](this[_0x3aa6('0xb')]));const _0x3de34d=_0x42e4f1=>_0x42e4f1[_0x3aa6('0x1f')]();this[_0x3aa6('0x12')]['set'](_0x3aa6('0x6'),_0x3de34d),this[_0x3aa6('0x12')]['set'](_0x3aa6('0x23'),_0x3de34d),this['keystrokes'][_0x3aa6('0x18')](_0x3aa6('0x2c'),_0x3de34d),this['keystrokes'][_0x3aa6('0x18')](_0x3aa6('0x25'),_0x3de34d);}[_0x3aa6('0xe')](){this[_0x3aa6('0x26')][_0x3aa6('0x14')]();}get[_0x3aa6('0x19')](){return this[_0x3aa6('0xc')][_0x3aa6('0x5')][_0x3aa6('0xb')][_0x3aa6('0x15')][_0x3aa6('0x9')]();}set['revisionName'](_0x3ba29e){this[_0x3aa6('0xc')][_0x3aa6('0x5')]['element'][_0x3aa6('0x15')]=_0x3ba29e[_0x3aa6('0x9')]();}[_0x3aa6('0x11')](){this[_0x3aa6('0xc')][_0x3aa6('0x5')][_0x3aa6('0xb')][_0x3aa6('0x15')]='';}[_0x3aa6('0xa')](){const _0x31e46b=new _0x33e006(this[_0x3aa6('0x2a')],_0x32f9d4),_0x58fd70=_0x31e46b[_0x3aa6('0x5')];return _0x58fd70['extendTemplate']({'attributes':{'maxlength':_0x3aa6('0x20')}}),_0x31e46b[_0x3aa6('0xf')]=_0x4aacc5(this['locale'],'Name\x20of\x20the\x20revision\x20(optional)'),_0x58fd70['on'](_0x3aa6('0x1d'),()=>{this[_0x3aa6('0x29')]=_0x58fd70[_0x3aa6('0xb')][_0x3aa6('0x15')][_0x3aa6('0x9')]();}),_0x31e46b;}[_0x3aa6('0x27')](_0x153201,_0x23dda8,_0x56a2f0,_0x2ef19b){const _0x47e585=new _0x537c99(this[_0x3aa6('0x2a')]);return _0x47e585['set']({'label':_0x153201,'icon':_0x23dda8,'tooltip':!0x0}),_0x47e585[_0x3aa6('0x17')]({'attributes':{'class':_0x56a2f0}}),_0x2ef19b&&_0x47e585['delegate'](_0x3aa6('0x21'))['to'](this,_0x2ef19b),_0x47e585;}}