@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231129.0 → 0.0.0-nightly-20231130.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 (32) hide show
  1. package/README.md +1 -1
  2. package/build/revision-history.js +1 -1
  3. package/package.json +6 -6
  4. package/src/changeitem.js +1 -1
  5. package/src/editor/revisionviewereditor.js +1 -1
  6. package/src/editor/revisionviewereditorui.js +1 -1
  7. package/src/editor/revisionviewereditoruiview.js +1 -1
  8. package/src/revision.js +1 -1
  9. package/src/revisiondiff.js +1 -1
  10. package/src/revisionhistory.js +1 -1
  11. package/src/revisionsrepository.js +1 -1
  12. package/src/revisiontracker.js +1 -1
  13. package/src/revisionviewer.js +1 -1
  14. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  15. package/src/ui/revision/revisionauthorview.js +1 -1
  16. package/src/ui/revision/revisionnameview.js +1 -1
  17. package/src/ui/revision/revisionview.js +1 -1
  18. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  19. package/src/ui/revision/subrevisionview.js +1 -1
  20. package/src/ui/revision/utils.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  22. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  26. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  27. package/src/ui/revisionssidebar/utils.js +1 -1
  28. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  29. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  31. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  32. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59b3=['POSITIVE_INFINITY','vid_start','ck-revision-history-root--active','_sortAndFilterDiffChanges','next','from','_getChangeFromId','conversion','activeView','get','changes','endIndex','bindElementToMarker','map','right','oldRevisionId','isEnabled','isBefore','RevisionViewer','repository','nextPosition','find','findIndex','document','stop','removeMarker:revision','showStack','getRootNames','maxOffset','ck-suggestion-marker-split','_setDistance','includes','markerToHighlight','attributesBefore','createUIElement','elementStart','catch','_changeIdToChange','getWalker','_markMismatchedRemovedTags','isReady','shift','keys','hasClass','_fixObsoleteTags','_changeView','add','getIndex','insertions','first','concat','_balloon','config','listenTo','parent','unbindElementFromMarkerName','ck-suggestion-preview-marker','isContent','isAdded','startsWith','view','insertion','high','viewItem','range','distance','editing','level','getDomRoot','_joinTapes','uiElement','createPositionFromPath','_removeRevisionMarkers','_threeWayMerge','useFillerType','isLimit','error','remove','children','vid','done','string','slice','default','startIndex','push','RevisionsRepository','getAttributes','markers','_getViewForChange','editingDowncast','change','collaboration.channelId','consume','forward','markersStart','previousPosition','elementEnd','createPositionBefore','change:isEnabled','model','merge','commands','bind','changeId','attributes','dataDowncast','ck-suggestion-marker--active','isCollapsed','elementToAttribute','test','revisionHistory','toModel','_refreshStartEndIndex','ck-suggestion-marker','_markMarkers','change:activeView','rootName','pairId','downcastDispatcher','toViewElement','unshift','_cleanUp','data','_update','mouseover','top','mousedown','getRevisionData','selection','addHighlight','marked','markerNameToElements','getAttribute','isRemoved','revision','affectsData','suggestion:','revision-suggestion:','isRemoveSuggestion','plugins','restoreRevisionCallback','revision-comment:','isBlock','toViewPosition','createAttributeElement','resolve','isSuggestion','name','text','_activeViewTarget','clear','insert','parse','getRevision','removeAttribute','adapter','isNavigationMode','deletions','ck-suggestion-preview-marker-','_removeMissingPairs','_getRevisionsRange','getCustomProperty','writer','revision-end','isOnRoot','index','setAttribute','loadRevisionData','_makeTape','showPreviousChange','init','nodeAfter','low','toViewRange','domConverter','ck-revision-history-root-','_markSuggestions','abs','currentChangeNumber','userId','dataToMarker','start','element','addClass','observeMarkers','activeChange','item','attributesAfter','_data','left','ck-revision-history-root-remove','revision:','values','reconvertMarker','revision-start','_makeModelFromViewString','_revisions','showNextChange','-new','comment','_markInsertions','processor','schema','roots','editor','deletion','updatePosition','_setChanges','then','_appendChild','addRevisionData','addMarker:revision','createRevision','hasAttribute','_step','sort','getRoot','data-change-id','WidgetToolbarRepository','change:numberOfChanges','domEvent','markerName','end','ck-editor__editable__overlay','newRevisionId','isAttached','forceDisabled','createRangeIn','length','markerRange','modelRange','ck-suggestion-marker-merge','removeMarker','mapper','_getViewObj','createRange','return','flat','attribute:vid','markerToData','isEqual','change:isReady','split','_processTape','diff','upcast','span','removeClass','isAfter','revision-viewer','for','addRevision','element:pre','enqueueChange','restoreRevision','requires','filter','splice','isAddSuggestion','all','revision-suggestion','target','revisionHistoryAttachChange','isAtEnd','ck-suggestion-marker-','diffData','removeMarker:revision-suggestion','vid_end','detachRoot','_setConversion','_initInteractions','code','pluginName','set','nextSibling','data-revision-','_findChangeIdFromDomTarget','enableReadOnlyMode','pop','side','refresh','has','execute','getRevisionRootsAttributes','consumable','delete','locale','revisionHistoryLabel','attachChange','_removeUnsupportedChanges','isInline','forEach','isIncorrect','getClientRects','type','numberOfChanges','highest','markersEnd','change:activeChange'];(function(_0x7830fe,_0x59b3be){const _0x316cf7=function(_0x41ec68){while(--_0x41ec68){_0x7830fe['push'](_0x7830fe['shift']());}};_0x316cf7(++_0x59b3be);}(_0x59b3,0x83));const _0x316c=function(_0x7830fe,_0x59b3be){_0x7830fe=_0x7830fe-0x0;let _0x316cf7=_0x59b3[_0x7830fe];return _0x316cf7;};import{Plugin as _0x532074,Command as _0x3ee5c9}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1d92ac}from'ckeditor5/src/utils';import{ContextualBalloon as _0x104146}from'ckeditor5/src/ui';import{DocumentFragment as _0x3641d9,Element as _0x2d5233,Text as _0x449c8c,ViewDocumentFragment as _0x1ed9cb,ViewText as _0x1729b1,ViewElement as _0x59a2fe,ViewContainerElement as _0x41a823,ViewAttributeElement as _0x4ba664,ViewEmptyElement as _0x2baf22,ViewRawElement as _0x6edad1,ViewUIElement as _0x40ba17}from'ckeditor5/src/engine';import{Users as _0x280c16,getMarkerDomElement as _0x1ddec9}from'ckeditor5-collaboration/src/collaboration-core';import _0x24da1b from'./ui/revisionviewer/changedetailsview';import _0x5c0c1e from'./revisionsrepository';import _0x1d6b4c from'./changeitem';import{default as _0x2757b3}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x3da7ba}from'lodash-es';const tt={'c':_0x41a823,'a':_0x4ba664,'e':_0x2baf22,'r':_0x6edad1,'u':_0x40ba17};export default class d extends _0x532074{static get[_0x316c('0x8e')](){return _0x316c('0xbb');}static get[_0x316c('0x7d')](){return[_0x280c16,_0x104146,_0x5c0c1e];}constructor(_0x175d40){super(_0x175d40),this[_0x316c('0xbc')]=this['editor'][_0x316c('0x9')][_0x316c('0xb2')](_0x316c('0xff')),this['set'](_0x316c('0x37'),null),this[_0x316c('0x8f')]('activeView',null),this['_activeViewTarget']=null,this[_0x316c('0x8f')]('diff',null),this[_0x316c('0x8f')]('isReady',!0x1),this[_0x316c('0x8f')](_0x316c('0xb9'),!0x0),this['on'](_0x316c('0x10c'),(_0x2d0856,_0x10e02c,_0x23da6e)=>{this['activeChange']=null,this[_0x316c('0xb1')]=null,this['editor'][_0x316c('0xeb')][_0x316c('0xe5')][_0x316c('0x104')](_0x372484=>{for(const _0x28c9d9 of this[_0x316c('0x4a')][_0x316c('0xeb')]['view']['document'][_0x316c('0x49')])_0x23da6e?_0x372484[_0x316c('0x75')](_0x316c('0x5d'),_0x28c9d9):_0x372484[_0x316c('0x35')](_0x316c('0x5d'),_0x28c9d9);});}),this[_0x316c('0x110')](_0x316c('0x1a'))['to'](this,'activeChange',_0x3697c5=>null!==_0x3697c5),this['bind'](_0x316c('0x30'))['to'](this,_0x316c('0xd1'),this,'diff',this,'activeChange',(_0x1716e2,_0x2ef5e5,_0x4bd586)=>_0x1716e2&&_0x4bd586?_0x2ef5e5[_0x316c('0xb3')]['getIndex'](_0x4bd586):0x0),this[_0x316c('0x110')](_0x316c('0xa5'))['to'](this,_0x316c('0xd1'),this,_0x316c('0x72'),(_0x544950,_0x4cf8e6)=>_0x544950?_0x4cf8e6[_0x316c('0xb3')][_0x316c('0x62')]:0x0),this['_changeView']=null,this[_0x316c('0xce')]=new Map(),this[_0x316c('0x19')]=null,this[_0x316c('0xdc')]=this[_0x316c('0x4a')][_0x316c('0x9')]['get'](_0x104146);}[_0x316c('0x28')](){const _0x4c3623=this['editor'],_0x438faf=new ShowChangeCommand(_0x4c3623,{'direction':'backward'}),_0xca8933=new ShowChangeCommand(_0x4c3623,{'direction':_0x316c('0x107')});(_0x4c3623[_0x316c('0x10f')]['add'](_0x316c('0x27'),_0x438faf),_0x4c3623[_0x316c('0x10f')][_0x316c('0xd7')](_0x316c('0x43'),_0xca8933),_0x4c3623[_0x316c('0x10f')][_0x316c('0xd7')](_0x316c('0x7c'),new RestoreRevisionCommand(_0x4c3623)),this['on'](_0x316c('0x59'),()=>{_0x438faf[_0x316c('0x96')](),_0xca8933[_0x316c('0x96')]();}),this[_0x316c('0x8b')](),this['_initInteractions'](),_0x4c3623[_0x316c('0x93')]('revision-viewer'),_0x4c3623[_0x316c('0x9')][_0x316c('0x97')](_0x316c('0x58')))&&_0x4c3623[_0x316c('0x9')][_0x316c('0xb2')]('WidgetToolbarRepository')[_0x316c('0x60')](_0x316c('0x77'));}async[_0x316c('0x129')](_0x3b9205){await this[_0x316c('0x25')](_0x3b9205);const _0x444648={};for(const _0x57ff97 in _0x3b9205[_0x316c('0x87')]){if(_0x3b9205['diffData'][_0x57ff97][_0x316c('0x9e')]&&!_0x3b9205[_0x316c('0x87')][_0x57ff97][_0x316c('0x9e')]['isAttached'])continue;const _0x670165=this[_0x316c('0xf1')](JSON[_0x316c('0x16')](_0x3b9205[_0x316c('0x87')][_0x57ff97]['insertions'])),_0x3135dd=this['editor']['editing'][_0x316c('0xe5')]['document'],_0x1c3d98=new _0x1ed9cb(_0x3135dd,_0x670165[_0x316c('0xb6')](_0x4a1de5=>this[_0x316c('0x68')](_0x4a1de5)));this['editor']['data'][_0x316c('0x47')][_0x316c('0xf3')](_0x316c('0x0')),_0x444648[_0x57ff97]=this[_0x316c('0x4a')][_0x316c('0x124')]['processor']['toData'](_0x1c3d98),this[_0x316c('0x4a')][_0x316c('0x124')][_0x316c('0x47')][_0x316c('0xf3')](_0x316c('0xfc'));}return _0x444648;}async[_0x316c('0x99')](_0x58af22){await this[_0x316c('0x25')](_0x58af22);const _0x411dfc={};for(const _0xb2f7a0 in _0x58af22['diffData'])_0x58af22[_0x316c('0x87')][_0xb2f7a0][_0x316c('0x9e')]&&!_0x58af22[_0x316c('0x87')][_0xb2f7a0][_0x316c('0x9e')][_0x316c('0x5f')]||(_0x411dfc[_0xb2f7a0]=_0x58af22['diffData'][_0xb2f7a0][_0x316c('0x39')]||{});return _0x411dfc;}['_removeRevisionMarkers'](_0x18d4f4){return(_0x18d4f4=_0x18d4f4[_0x316c('0x7e')](_0x4de393=>!_0x4de393[_0x316c('0x11')]||_0x316c('0x40')!==_0x4de393['name']&&_0x316c('0x21')!==_0x4de393[_0x316c('0x11')]))[_0x316c('0xa1')](_0x2a08f8=>{_0x316c('0xfa')!=typeof _0x2a08f8&&(_0x2a08f8['children']=this[_0x316c('0xf1')](_0x2a08f8[_0x316c('0xf7')]),_0x2a08f8[_0x316c('0x112')]=_0x2a08f8['attributes'][_0x316c('0x7e')](_0x2fcd5f=>!_0x2fcd5f[0x0][_0x316c('0xe4')](_0x316c('0x91'))));}),_0x18d4f4;}async['compare'](_0x2a283d,_0x227067,_0x5ce354=!0x1){if(!this[_0x316c('0xb9')])return;const _0x3e3299=this[_0x316c('0x72')],_0x14ee6c=this[_0x316c('0xbc')],_0x1f7831=_0x316c('0xfa')==typeof _0x2a283d?_0x14ee6c[_0x316c('0x17')](_0x2a283d):_0x2a283d,_0x2e9af0='string'==typeof _0x227067?_0x14ee6c[_0x316c('0x17')](_0x227067):_0x227067,_0x5deeb1=_0x1f7831['id'],_0x4ed17e=_0x2e9af0?_0x2e9af0['id']:null;if(!_0x5ce354&&this[_0x316c('0x72')]&&this[_0x316c('0x72')][_0x316c('0x5e')]===_0x5deeb1&&this[_0x316c('0x72')][_0x316c('0xb8')]===_0x4ed17e)return Promise[_0x316c('0xf')]();this[_0x316c('0xd1')]=!0x1,this[_0x316c('0xb1')]=null,this['activeChange']=null,this[_0x316c('0x72')]=new _0x2757b3(_0x5deeb1,_0x4ed17e);const _0xd6e0a9=this[_0x316c('0x1e')](_0x1f7831,_0x2e9af0,!0x0)['map'](_0x47deca=>this[_0x316c('0x25')](_0x47deca));return _0xd6e0a9[_0x316c('0xfe')](new Promise(_0x5b2a9e=>{setTimeout(_0x5b2a9e,0x14);})),Promise[_0x316c('0x81')](_0xd6e0a9)[_0x316c('0x4e')](()=>{if(!this['isEnabled'])return;this[_0x316c('0x123')]();const _0x2624ec=this['_getDiff'](_0x5deeb1,_0x4ed17e);for(const _0x103b67 of _0x2624ec[_0x316c('0xb3')])this['_changeIdToChange'][_0x316c('0x8f')](_0x103b67['id'],_0x103b67);this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x7b')]({'isUndoable':!0x1},_0x4e370c=>{for(const _0x2b2464 of this[_0x316c('0x4a')]['model']['document'][_0x316c('0xc4')]())_0x4e370c[_0x316c('0x8a')](_0x2b2464);for(const _0x1e9f4c of Object['keys'](_0x2624ec['model'])){const _0x1a0c85=_0x4e370c['addRoot'](_0x1e9f4c);for(const _0x4306f1 of Object[_0x316c('0xd3')](_0x2624ec[_0x316c('0x112')][_0x1e9f4c]))_0x4e370c[_0x316c('0x24')](_0x4306f1,_0x2624ec[_0x316c('0x112')][_0x1e9f4c][_0x4306f1],_0x1a0c85);_0x4e370c[_0x316c('0x15')](_0x2624ec[_0x316c('0x10d')][_0x1e9f4c],_0x1a0c85,0x0);}}),this[_0x316c('0x72')][_0x316c('0x4d')](this[_0x316c('0xac')](_0x2624ec['changes'])),this['isReady']=!0x0;})[_0x316c('0xcd')](_0x1131a5=>{console[_0x316c('0xf5')](_0x1131a5),this[_0x316c('0x123')](),_0x3e3299&&(this['diff']=_0x3e3299),this[_0x316c('0xd1')]=!0x0;});}[_0x316c('0x50')](_0x47ccb7,_0x1fc391){const _0x5ed8a2=this[_0x316c('0xbc')][_0x316c('0x52')](_0x47ccb7);return _0x5ed8a2['on'](_0x316c('0x125'),(_0x4bee56,_0x4554c8,_0x3cbbe2)=>_0x1fc391(_0x4554c8,_0x3cbbe2,_0x5ed8a2)),this[_0x316c('0xbc')][_0x316c('0x79')](_0x5ed8a2),_0x5ed8a2;}['loadRevisionData'](_0x5a51df){if(!_0x5a51df||_0x5a51df[_0x316c('0x87')])return Promise[_0x316c('0xf')]();{const _0x38cc27=this[_0x316c('0x4a')][_0x316c('0xdd')][_0x316c('0xb2')](_0x316c('0x105'));return this[_0x316c('0x19')][_0x316c('0x17')]({'channelId':_0x38cc27,'revisionId':_0x5a51df['id']})[_0x316c('0x4e')](_0x2ff6db=>{_0x5a51df['_update']({'diffData':_0x2ff6db[_0x316c('0x87')]},!0x0);});}}[_0x316c('0x123')](){this[_0x316c('0x37')]=null,this['_cleanMarkers'](),this['_changeView']&&this[_0x316c('0xd6')]['destroy'](),this[_0x316c('0xd6')]=null,this['_changeIdToChange'][_0x316c('0x14')](),this[_0x316c('0x4a')]['model'][_0x316c('0x7b')]({'isUndoable':!0x1},_0x2a25a0=>{for(const _0x4eb33e of this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0xc0')][_0x316c('0xc4')]())_0x2a25a0[_0x316c('0x8a')](_0x4eb33e);});}['_sortAndFilterDiffChanges'](_0x1a5d50){const _0xb43e32=[],_0x429db8=new Map();for(const _0x468d9d of this['editor'][_0x316c('0x10d')][_0x316c('0xc0')][_0x316c('0xc4')]()){const _0x46af70=this[_0x316c('0x4a')][_0x316c('0xeb')]['view'][_0x316c('0xed')](_0x468d9d);if(!_0x46af70)continue;const _0x2c75d7=_0x46af70[_0x316c('0xa3')]()[_0x316c('0x38')](0x0);_0x2c75d7&&(_0xb43e32[_0x316c('0xfe')](_0x468d9d),_0x429db8[_0x316c('0x8f')](_0x468d9d,_0x2c75d7));}return _0xb43e32['sort']((_0x390ffd,_0x3930b7)=>{const _0x440d73=_0x429db8[_0x316c('0xb2')](_0x390ffd),_0x1d9cc6=_0x429db8[_0x316c('0xb2')](_0x3930b7);return _0x440d73['y']-_0x1d9cc6['y']||_0x440d73['x']-_0x1d9cc6['x'];}),(_0x1a5d50=_0x1a5d50[_0x316c('0x7e')](_0x2d3906=>_0xb43e32[_0x316c('0xc8')](_0x2d3906[_0x316c('0x11e')])))['sort']((_0x5c358c,_0xe0d3e4)=>_0xb43e32['indexOf'](_0x5c358c['rootName'])-_0xb43e32['indexOf'](_0xe0d3e4[_0x316c('0x11e')])),_0x1a5d50;}[_0x316c('0x26')](_0x1d3565){const _0x2de81a=Array['from'](_0x1d3565[_0x316c('0x101')])[_0x316c('0x7e')](([_0x47c901,_0xee5d7c])=>_0x47c901[_0x316c('0xe4')]('revision:')&&!_0xee5d7c['isCollapsed']),_0x247380=Array[_0x316c('0xae')](this[_0x316c('0x4a')]['model'][_0x316c('0x61')](_0x1d3565)[_0x316c('0xcf')]({'singleCharacters':!0x0}));if(0x0!=_0x2de81a[_0x316c('0x62')])for(const _0x31f1ac of _0x247380){const [_0x5883c8,_0x2a2df3]=_0x2de81a[0x0],[,_0x24fb77,_0x4349ce]=_0x5883c8[_0x316c('0x70')](':');if(_0x2a2df3[_0x316c('0x5c')][_0x316c('0x6e')](_0x31f1ac[_0x316c('0xbd')])&&_0x2de81a[_0x316c('0xd2')](),(_0x31f1ac[_0x316c('0x109')][_0x316c('0x6e')](_0x2a2df3[_0x316c('0x33')])||_0x31f1ac[_0x316c('0x109')][_0x316c('0x76')](_0x2a2df3[_0x316c('0x33')]))&&(_0x316c('0xe6')==_0x24fb77?_0x31f1ac['isAdded']={'userId':_0x4349ce}:_0x316c('0x4b')==_0x24fb77&&(_0x31f1ac[_0x316c('0x3')]={'userId':_0x4349ce})),0x0==_0x2de81a[_0x316c('0x62')])break;}return _0x247380;}[_0x316c('0x11a')](_0x24d7bd){const _0x5e3283=new Map();for(let _0x41cc44=0x0;_0x41cc44<_0x24d7bd['length'];_0x41cc44++)_0x316c('0x12')===_0x24d7bd[_0x41cc44][_0x316c('0xa4')]?(_0x24d7bd[_0x41cc44][_0x316c('0x38')]['startIndex']=_0x41cc44,_0x24d7bd[_0x41cc44]['item'][_0x316c('0xb4')]=_0x41cc44):(_0x316c('0xcc')===_0x24d7bd[_0x41cc44][_0x316c('0xa4')]?_0x24d7bd[_0x41cc44][_0x316c('0x38')][_0x316c('0xfd')]=_0x41cc44:_0x316c('0x10a')===_0x24d7bd[_0x41cc44]['type']&&(_0x24d7bd[_0x41cc44][_0x316c('0x38')]['endIndex']=_0x41cc44),_0x5e3283[_0x316c('0x8f')](_0x24d7bd[_0x41cc44]['id'],_0x41cc44));for(const _0x1d61a9 of _0x5e3283[_0x316c('0x3e')]())'elementStart'===_0x24d7bd[_0x1d61a9][_0x316c('0xa4')]?_0x24d7bd[_0x1d61a9][_0x316c('0x38')][_0x316c('0xb4')]=_0x5e3283[_0x316c('0xb2')](_0x24d7bd[_0x1d61a9][_0x316c('0x11f')]):_0x316c('0x10a')===_0x24d7bd[_0x1d61a9][_0x316c('0xa4')]&&(_0x24d7bd[_0x1d61a9]['item'][_0x316c('0xfd')]=_0x5e3283[_0x316c('0xb2')](_0x24d7bd[_0x1d61a9][_0x316c('0x11f')]));}[_0x316c('0x71')](_0x46f6ad){for(let _0x4ce178=0x0;_0x4ce178<_0x46f6ad[_0x316c('0x62')];_0x4ce178++){if(_0x316c('0xcc')===_0x46f6ad[_0x4ce178]['type'])_0x46f6ad[_0x4ce178][_0x316c('0x38')][_0x316c('0xfd')]=_0x4ce178;else{if(_0x316c('0x10a')===_0x46f6ad[_0x4ce178]['type']){_0x46f6ad[_0x4ce178]['item'][_0x316c('0xb4')]=_0x4ce178;const _0xc8804=_0x46f6ad[_0x4ce178][_0x316c('0x38')][_0x316c('0xfd')];_0x46f6ad[_0xc8804][_0x316c('0x11f')]=_0x46f6ad[_0x4ce178]['id'],_0x46f6ad[_0x4ce178][_0x316c('0x11f')]=_0x46f6ad[_0xc8804]['id'];}else _0x46f6ad[_0x4ce178]['item'][_0x316c('0xfd')]=_0x4ce178,_0x46f6ad[_0x4ce178]['item'][_0x316c('0xb4')]=_0x4ce178,_0x46f6ad[_0x4ce178][_0x316c('0x11f')]=null;}_0x46f6ad[_0x4ce178][_0x316c('0x108')]||(_0x46f6ad[_0x4ce178]['markersStart']=[],_0x46f6ad[_0x4ce178][_0x316c('0xa7')]=[]);}}[_0x316c('0x46')](_0x5687a4,_0x3419b2){const _0x87b7b1=_0x5687a4[_0x316c('0x7e')](_0x1898c1=>!_0x1898c1[_0x316c('0xe3')]);for(let _0xf2a565=0x0;_0xf2a565<_0x3419b2[_0x316c('0x62')];_0xf2a565++)_0x3419b2[_0xf2a565][_0x316c('0xe3')]&&(_0x87b7b1[_0xf2a565][_0x316c('0xe3')]=_0x3419b2[_0xf2a565][_0x316c('0xe3')]);}[_0x316c('0x41')](_0x2ce4a3){const _0x33e782=JSON[_0x316c('0x16')](_0x2ce4a3),_0x38ad6f=this[_0x316c('0x4a')][_0x316c('0xeb')][_0x316c('0xe5')]['document'],_0xc926b2=new _0x1ed9cb(_0x38ad6f,_0x33e782[_0x316c('0xb6')](_0x2e7721=>this[_0x316c('0x68')](_0x2e7721)));return this[_0x316c('0x4a')][_0x316c('0x124')][_0x316c('0x119')](_0xc926b2);}[_0x316c('0x68')](_0x2dee5e){const _0x3cd2b2=this[_0x316c('0x4a')][_0x316c('0xeb')][_0x316c('0xe5')][_0x316c('0xc0')];if('string'==typeof _0x2dee5e)return new _0x1729b1(_0x3cd2b2,_0x2dee5e);{const _0xff11c6=_0x2dee5e['children'][_0x316c('0xb6')](_0x13b620=>this[_0x316c('0x68')](_0x13b620));return new(tt[_0x2dee5e['type']]||_0x59a2fe)(_0x3cd2b2,_0x2dee5e[_0x316c('0x11')],_0x2dee5e[_0x316c('0x112')],_0xff11c6);}}['_getDiff'](_0x1af579,_0x2a78b3=null){const _0xf8880=this[_0x316c('0xbc')][_0x316c('0x17')](_0x1af579),_0x20fd1c=_0x2a78b3?this[_0x316c('0xbc')][_0x316c('0x17')](_0x2a78b3):null,_0x54395a=this[_0x316c('0x1e')](_0xf8880,_0x20fd1c),_0x13e795=_0x54395a[_0x54395a[_0x316c('0x62')]-0x1],_0x2e40de=new Map(),_0x50deaa={'model':{},'attributes':{},'changes':[]},_0x3ccd81=new Set(),_0x118b10=new Map();for(let _0x5a0b74=_0x54395a[_0x316c('0x62')]-0x1;_0x5a0b74>=0x0;_0x5a0b74--){const _0x32f350=_0x54395a[_0x5a0b74];for(const _0x41184f of Object[_0x316c('0xd3')](_0x32f350[_0x316c('0x87')]))if(_0x32f350[_0x316c('0x87')][_0x41184f][_0x316c('0x9e')]){const _0x13ca66=_0x32f350[_0x316c('0x87')][_0x41184f]['attachChange'];_0x13ca66['isAttached']?(_0x3ccd81['add'](_0x41184f),_0x118b10['has'](_0x41184f)&&_0x118b10[_0x316c('0xb2')](_0x41184f)[_0x316c('0x31')]==_0x13ca66[_0x316c('0x31')]?_0x118b10[_0x316c('0x9b')](_0x41184f):_0x118b10[_0x316c('0x8f')](_0x41184f,_0x13ca66)):_0x118b10['has'](_0x41184f)?(_0x3ccd81[_0x316c('0x9b')](_0x41184f),_0x118b10['delete'](_0x41184f)):(_0x3ccd81[_0x316c('0xd7')](_0x41184f),_0x118b10[_0x316c('0x8f')](_0x41184f,_0x13ca66));}else _0x3ccd81['add'](_0x41184f);}for(const _0x2a6a6f of _0x3ccd81){const _0xaa8da2=_0x118b10[_0x316c('0x97')](_0x2a6a6f)&&!_0x118b10[_0x316c('0xb2')](_0x2a6a6f)[_0x316c('0x5f')];let _0x57ad12=_0xaa8da2?_0x54395a[_0x316c('0x62')]-0x1:0x0;const _0x332df6=_0xaa8da2?-0x1:0x1;for(;_0x54395a[_0x57ad12];){const _0x55f9ac=_0x54395a[_0x57ad12];if(_0x55f9ac['diffData'][_0x2a6a6f]){const _0x42ef3c=_0xaa8da2?_0x55f9ac[_0x316c('0x87')][_0x2a6a6f][_0x316c('0xca')]:_0x55f9ac[_0x316c('0x87')][_0x2a6a6f]['attributesAfter'];_0x50deaa[_0x316c('0x112')][_0x2a6a6f]=_0x42ef3c?_0x3da7ba(_0x42ef3c):{};break;}_0x57ad12+=_0x332df6;}}for(const _0x2f13c2 of _0x54395a){_0x2f13c2['model']={};for(const _0x537b5d of _0x2f13c2['authors'])_0x2e40de[_0x316c('0x8f')](_0x537b5d['id'],_0x537b5d);for(const _0x4954a7 of _0x3ccd81){const _0x169fa9=_0x2f13c2[_0x316c('0x87')][_0x4954a7]?_0x2f13c2[_0x316c('0x87')][_0x4954a7][_0x316c('0xd9')]:'[]',_0x3285f5=_0x2f13c2[_0x316c('0x87')][_0x4954a7]?_0x2f13c2[_0x316c('0x87')][_0x4954a7][_0x316c('0x1b')]:'[]';_0x2f13c2[_0x316c('0x10d')][_0x4954a7]={'insertions':this[_0x316c('0x41')](_0x169fa9),'deletions':this[_0x316c('0x41')](_0x3285f5)};}}for(const _0x496b50 of _0x3ccd81){let _0x209da4=null,_0x1aefad=0x0;const _0x3db4b7=new Map(Array['from'](_0xf8880[_0x316c('0x10d')][_0x496b50]['insertions'][_0x316c('0x101')])[_0x316c('0x7e')](([_0x2dba04])=>!_0x2dba04[_0x316c('0xe4')](_0x316c('0x3d'))));let _0x3b977d=0x0;for(const _0xc60de3 of _0x54395a){const _0x20929f=this[_0x316c('0x26')](_0xc60de3['model'][_0x496b50]['insertions']);_0xc60de3==_0xf8880?(_0x209da4=_0x20929f,_0x1aefad=_0x209da4[_0x316c('0x62')],_0x209da4['forEach'](_0x2d8d0e=>{_0x2d8d0e['id']=_0x3b977d++;}),this[_0x316c('0x71')](_0x209da4)):this['_markInsertions'](_0x209da4,_0x20929f);const _0x12ae78=_0x209da4[_0x316c('0x7e')](_0x3ebae6=>!_0x3ebae6[_0x316c('0xe3')])[_0x316c('0xb6')](_0x16de7b=>_0x16de7b['id']);let _0x54ae2d=0x0;const _0x13fa3b=this['_makeTape'](_0xc60de3[_0x316c('0x10d')][_0x496b50]['deletions']);_0x13fa3b[_0x316c('0xa1')](_0x106971=>{_0x106971[_0x316c('0x3')]?_0x106971['id']=_0x1aefad++:_0x106971['id']=_0x12ae78[_0x54ae2d++];}),this[_0x316c('0x71')](_0x13fa3b),this[_0x316c('0xc7')](_0x209da4,_0x316c('0xe3')),this[_0x316c('0xc7')](_0x13fa3b,_0x316c('0x3')),_0xc60de3==_0xf8880&&this[_0x316c('0x11c')](_0x209da4,_0x3db4b7),_0x209da4=this[_0x316c('0xee')](_0x209da4,_0x13fa3b),this[_0x316c('0x11a')](_0x209da4),this[_0x316c('0xc7')](_0x209da4,_0x316c('0x3'));}_0x209da4=_0x209da4[_0x316c('0x7e')](_0x2dc08a=>!(_0x2dc08a[_0x316c('0xe3')]&&_0x2dc08a['isRemoved']));const _0x325c4d=new Map(_0x13e795[_0x316c('0x10d')][_0x496b50][_0x316c('0x1b')]['markers']),_0x406152=new Set(_0x3db4b7['keys']());for(const _0x1b0f56 of _0x325c4d[_0x316c('0xd3')]())_0x406152[_0x316c('0x9b')](_0x1b0f56);this[_0x316c('0x2e')](_0x209da4,_0x406152),this[_0x316c('0xd5')](_0x209da4),_0x209da4=this[_0x316c('0x1d')](_0x209da4),_0x209da4=this[_0x316c('0xd0')](_0x209da4),_0x209da4=this[_0x316c('0x9f')](_0x209da4);const {root:_0x224125,changes:_0x1cde2a}=this['_makeModelFromTape'](_0x209da4,_0x2e40de,_0x496b50);_0x50deaa[_0x316c('0x10d')][_0x496b50]=_0x224125;const _0x3eb486=_0x118b10['get'](_0x496b50);if(_0x3eb486){const _0x558051=_0x2e40de['get'](_0x3eb486['userId']),_0x27491d=new _0x1d6b4c({'author':_0x558051,'type':_0x3eb486[_0x316c('0x5f')]?_0x316c('0xd7'):_0x316c('0xf6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x496b50});_0x1cde2a[_0x316c('0x122')](_0x27491d),_0x50deaa['attributes'][_0x496b50][_0x316c('0x84')]=_0x27491d['id'];}_0x50deaa[_0x316c('0xb3')]=_0x50deaa[_0x316c('0xb3')][_0x316c('0xdb')](_0x1cde2a);}return _0x50deaa;}[_0x316c('0x11c')](_0x4c2c24,_0x542c3d){for(let _0x146f13=0x0;_0x146f13<_0x4c2c24['length'];_0x146f13++)for(const [_0x2054ee,_0x5de447]of _0x542c3d)_0x5de447[_0x316c('0x33')][_0x316c('0x6e')](_0x4c2c24[_0x146f13][_0x316c('0x109')])&&_0x4c2c24[_0x146f13]['markersStart']['push'](_0x2054ee),_0x5de447['end']['isEqual'](_0x4c2c24[_0x146f13][_0x316c('0xbd')])&&_0x4c2c24[_0x146f13][_0x316c('0xa7')]['push'](_0x2054ee);}[_0x316c('0xee')](_0x9e3a0f,_0x25d64e){let _0xe963a3=[],_0x380612=0x0,_0x5acd1d=0x0;for(;_0x380612<_0x9e3a0f[_0x316c('0x62')]||_0x5acd1d<_0x25d64e[_0x316c('0x62')];){const _0x106936=_0x9e3a0f[_0x380612]||{},_0x4f6515=_0x25d64e[_0x5acd1d]||{};if(_0x106936['id']==_0x4f6515['id'])_0x380612++,_0x5acd1d++,_0xe963a3['push'](_0x106936);else{if(_0x4f6515[_0x316c('0x3')]&&_0x106936[_0x316c('0xe3')]){const {commonTape:_0xd7cfe4,iEnd:_0x7c429c,jEnd:_0x2cbc87}=this[_0x316c('0xf2')](_0x9e3a0f,_0x380612,_0x25d64e,_0x5acd1d);_0xe963a3=_0xe963a3[_0x316c('0xdb')](_0xd7cfe4),_0x380612=_0x7c429c,_0x5acd1d=_0x2cbc87;}else _0x4f6515[_0x316c('0x3')]?(_0x5acd1d++,_0xe963a3['push'](_0x4f6515)):(_0x380612++,_0xe963a3[_0x316c('0xfe')](_0x106936));}}return _0xe963a3;}[_0x316c('0x2e')](_0x268691,_0x42e6c4){const _0x2158b9=[];for(let _0x29f5b7=0x0;_0x29f5b7<_0x268691[_0x316c('0x62')];_0x29f5b7++){for(let _0x1fb24a=0x0;_0x1fb24a<_0x268691[_0x29f5b7][_0x316c('0x108')][_0x316c('0x62')];_0x1fb24a++){const _0x4b6697=_0x268691[_0x29f5b7][_0x316c('0x108')][_0x1fb24a];if(!_0x42e6c4[_0x316c('0x97')](_0x4b6697))continue;const {group:_0x322b5d,type:_0x258360,authorId:_0x1071d4}=_0x3d6614(_0x4b6697);_0x316c('0x82')!=_0x322b5d||'insertion'!=_0x258360&&_0x316c('0x4b')!=_0x258360||(_0x2158b9[_0x316c('0x122')]({'type':_0x258360,'name':_0x4b6697,'userId':_0x1071d4}),_0x268691[_0x29f5b7]['markersStart'][_0x316c('0x7f')](_0x1fb24a,0x1),_0x1fb24a--);}_0x436cdd(_0x268691[_0x29f5b7]);for(let _0x299349=0x0;_0x299349<_0x268691[_0x29f5b7][_0x316c('0xa7')]['length'];_0x299349++){const _0xea7afe=_0x268691[_0x29f5b7][_0x316c('0xa7')][_0x299349];if(!_0x42e6c4[_0x316c('0x97')](_0xea7afe))continue;const {group:_0x48727d,type:_0x29d46e}=_0x3d6614(_0xea7afe);if('revision-suggestion'!=_0x48727d||_0x316c('0xe6')!=_0x29d46e&&'deletion'!=_0x29d46e)continue;_0x268691[_0x29f5b7][_0x316c('0xa7')][_0x316c('0x7f')](_0x299349,0x1),_0x299349--;const _0x17ce11=_0x2158b9[_0x316c('0xbf')](_0x31443f=>_0x31443f[_0x316c('0x11')]==_0xea7afe);_0x17ce11>-0x1&&_0x2158b9[_0x316c('0x7f')](_0x17ce11,0x1);}}function _0x3d6614(_0x2ba870){const _0x8b709=_0x2ba870[_0x316c('0x70')](':');return{'group':_0x8b709[0x0],'type':_0x8b709[0x1],'subType':_0x8b709[_0x316c('0x62')]>=0x5?_0x8b709[0x2]:null,'id':_0x8b709[_0x316c('0x62')]<0x5?_0x8b709[0x2]:_0x8b709[0x3],'authorId':_0x8b709[_0x316c('0x62')]<0x5?_0x8b709[0x3]:_0x8b709[0x4],'markerCount':0x6==_0x8b709[_0x316c('0x62')]?_0x8b709[0x5]:null};}function _0x436cdd(_0x230858){for(let _0xa9486b=0x0;_0xa9486b<_0x2158b9['length'];_0xa9486b++){if(_0x230858[_0x316c('0xe3')]&&'insertion'==_0x2158b9[_0xa9486b][_0x316c('0xa4')])return _0x230858[_0x316c('0x80')]=_0x2158b9[_0xa9486b],void delete _0x230858[_0x316c('0xe3')];if(!_0x230858[_0x316c('0xe3')]&&!_0x230858[_0x316c('0x3')]&&_0x316c('0x4b')==_0x2158b9[_0xa9486b]['type'])return void(_0x230858[_0x316c('0x8')]=_0x2158b9[_0xa9486b]);}}}[_0x316c('0xc7')](_0x4201da,_0x4bca6c){let _0xcd2b1e=0x0,_0x374e55=!0x1;const _0x173bbb=new Map();for(const _0x2d6440 of _0x4201da)_0x2d6440[_0x4bca6c]?_0x374e55&&(_0xcd2b1e++,_0x374e55=!0x1):(_0xcd2b1e++,_0x374e55=!0x0),_0x173bbb['set'](_0x2d6440['id'],_0xcd2b1e);for(let _0x21e05d=0x0;_0x21e05d<_0x4201da['length'];_0x21e05d++){if(_0x316c('0x3')==_0x4bca6c&&_0x4201da[_0x21e05d][_0x316c('0xe3')]||_0x316c('0xe3')==_0x4bca6c&&_0x4201da[_0x21e05d]['isRemoved'])continue;if(_0x316c('0x12')==_0x4201da[_0x21e05d][_0x316c('0xa4')]){_0x4201da[_0x21e05d][_0x316c('0xea')]=0x0;continue;}const _0xb35693=_0x173bbb[_0x316c('0xb2')](_0x4201da[_0x21e05d][_0x316c('0x11f')]),_0x5ee113=_0x173bbb[_0x316c('0xb2')](_0x4201da[_0x21e05d]['id']);_0x4201da[_0x21e05d][_0x316c('0xea')]=_0xb35693-_0x5ee113;}}['_getRevisionsRange'](_0x22e2b6,_0x391460,_0x493a24=!0x1){const _0x21b566=[];let _0x1502fd=this[_0x316c('0xbc')]['getIndex'](_0x22e2b6),_0x2ad29e=this[_0x316c('0xbc')][_0x316c('0xd8')](_0x391460);for(-0x1==_0x2ad29e&&(_0x2ad29e=this[_0x316c('0xbc')][_0x316c('0x42')]['length'],_0x493a24=!0x1);_0x1502fd<_0x2ad29e;)_0x21b566['push'](this[_0x316c('0xbc')][_0x316c('0x17')](_0x1502fd)),_0x1502fd++;return _0x493a24&&_0x21b566['push'](this[_0x316c('0xbc')][_0x316c('0x17')](_0x1502fd)),_0x21b566;}['_threeWayMerge'](_0xa0993c,_0x39ad10,_0x373ce8,_0x3603d8){const _0x1225eb=this[_0x316c('0x4a')][_0x316c('0x10d')]['schema'];let _0x55ab33=_0x39ad10;for(;_0xa0993c[_0x55ab33]&&_0xa0993c[_0x55ab33][_0x316c('0xe3')];)_0x55ab33++;let _0x358073=_0x3603d8;for(;_0x373ce8[_0x358073]&&_0x373ce8[_0x358073][_0x316c('0x3')];)_0x358073++;_0x5b36fa(_0xa0993c,_0x39ad10,_0x55ab33),_0x5b36fa(_0x373ce8,_0x3603d8,_0x358073);const _0x69e4fb=_0x373ce8[_0x316c('0xfb')](_0x3603d8,_0x358073)[_0x316c('0xdb')](_0xa0993c[_0x316c('0xfb')](_0x39ad10,_0x55ab33));return _0x69e4fb[_0x316c('0x55')]((_0x399b50,_0x12f758)=>_0x399b50[_0x316c('0x95')]!=_0x12f758[_0x316c('0x95')]?_0x399b50[_0x316c('0x95')]-_0x12f758[_0x316c('0x95')]:_0x399b50['level']!=_0x12f758[_0x316c('0xec')]?_0x399b50[_0x316c('0xec')]-_0x12f758[_0x316c('0xec')]:_0x399b50[_0x316c('0xea')]!=_0x12f758[_0x316c('0xea')]?_0x12f758[_0x316c('0xea')]-_0x399b50[_0x316c('0xea')]:!!_0x399b50['isAdded']!=!!_0x12f758[_0x316c('0xe3')]?-0x1==_0x399b50['side']||0x0==_0x399b50[_0x316c('0x95')]?_0x399b50[_0x316c('0xe3')]?-0x1:0x1:_0x399b50[_0x316c('0xe3')]?0x1:-0x1:_0x399b50['index']-_0x12f758['index']),{'commonTape':_0x69e4fb,'iEnd':_0x55ab33,'jEnd':_0x358073};function _0x5b36fa(_0x404a62,_0x34c06e,_0x3991fa){let _0x5325b3=-0x1,_0xd72666=Number[_0x316c('0xa9')],_0x363aeb=!0x0;for(let _0x136bba=_0x34c06e;_0x136bba<_0x3991fa;_0x136bba++)if(_0x1225eb[_0x316c('0xa0')](_0x404a62[_0x136bba]['item'])||(_0x363aeb=!0x1),_0x404a62[_0x136bba][_0x316c('0x38')][_0x316c('0xfd')]<_0x34c06e&&(_0x5325b3=_0x136bba),_0x404a62[_0x136bba][_0x316c('0x38')][_0x316c('0xb4')]>=_0x3991fa){_0xd72666=_0x136bba;break;}_0x363aeb&&(_0x5325b3=_0x3991fa-0x1);for(let _0x3b9706=_0x34c06e;_0x3b9706<_0x3991fa;_0x3b9706++)_0x404a62[_0x3b9706][_0x316c('0x95')]=_0x3b9706<=_0x5325b3?-0x1:_0x3b9706<_0xd72666?0x0:0x1,_0x404a62[_0x3b9706][_0x316c('0x23')]=_0x3b9706;let _0xb3a35a=0x0;for(let _0x5c823a=_0x34c06e;_0x5c823a<=_0x5325b3;_0x5c823a++)0x0==_0x404a62[_0x5c823a][_0x316c('0xea')]?_0x404a62[_0x5c823a]['level']=_0xb3a35a:(_0xb3a35a++,_0x404a62[_0x5c823a]['level']=_0xb3a35a,_0xb3a35a++);for(let _0x164032=_0x34c06e;_0x164032<_0x3991fa;_0x164032++)0x0==_0x404a62[_0x164032]['side']&&(_0x404a62[_0x164032][_0x316c('0xec')]=_0xb3a35a);_0xb3a35a=0x0;for(let _0x35f5cd=_0x3991fa-0x1;_0x35f5cd>=_0xd72666;_0x35f5cd--)0x0==_0x404a62[_0x35f5cd][_0x316c('0xea')]?_0x404a62[_0x35f5cd]['level']=_0xb3a35a:(_0xb3a35a--,_0x404a62[_0x35f5cd][_0x316c('0xec')]=_0xb3a35a,_0xb3a35a--);}}['_fixObsoleteTags'](_0xdffcf7){const _0x5e1e73=new Map(),_0x3ecf78=this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x48')];for(let _0x4e263a=0x1;_0x4e263a<_0xdffcf7[_0x316c('0x62')];_0x4e263a++){let _0x652257,_0x37b627,_0x1b6393;const _0xbaab4=_0xdffcf7[_0x4e263a],_0x1ff1d3=_0xdffcf7[_0x4e263a-0x1];if(_0x316c('0x12')==_0xbaab4[_0x316c('0xa4')])continue;if(_0xbaab4[_0x316c('0xa4')]!=_0x1ff1d3[_0x316c('0xa4')])continue;if(!_0x3ecf78[_0x316c('0xc')](_0x1ff1d3['item'])||_0x3ecf78[_0x316c('0xf4')](_0x1ff1d3[_0x316c('0x38')]))continue;if(!_0x3ecf78['isBlock'](_0xbaab4[_0x316c('0x38')])||_0x3ecf78[_0x316c('0xf4')](_0xbaab4[_0x316c('0x38')]))continue;if((_0xdffcf7[_0x4e263a]['isAdded']||_0xdffcf7[_0x4e263a][_0x316c('0x80')])&&_0xdffcf7[_0x4e263a-0x1][_0x316c('0x3')])_0x652257=_0xdffcf7[_0x4e263a],_0x37b627=_0xdffcf7[_0x4e263a-0x1],_0x1b6393=_0x4e263a-0x1;else{if(!_0xdffcf7[_0x4e263a][_0x316c('0x3')]||!_0xdffcf7[_0x4e263a-0x1][_0x316c('0xe3')]&&!_0xdffcf7[_0x4e263a-0x1]['isAddSuggestion'])continue;_0x652257=_0xdffcf7[_0x4e263a-0x1],_0x37b627=_0xdffcf7[_0x4e263a],_0x1b6393=_0x4e263a;}const _0x2a8125=_0x652257[_0x316c('0xec')]==_0x37b627[_0x316c('0xec')],_0x434250=Math[_0x316c('0x2f')](_0x652257[_0x316c('0xec')])<Math['abs'](_0x37b627[_0x316c('0xec')])&&0x0==_0x37b627[_0x316c('0xea')];(_0x2a8125||_0x434250)&&(_0x5e1e73['set'](_0x37b627['id'],_0x652257['id']),_0xdffcf7[_0x316c('0x7f')](_0x1b6393,0x1),_0x4e263a--,_0x652257[_0x316c('0xe3')]=!0x1);}for(let _0x376629=0x0;_0x376629<_0xdffcf7['length'];_0x376629++)_0x5e1e73[_0x316c('0x97')](_0xdffcf7[_0x376629][_0x316c('0x11f')])&&(_0xdffcf7[_0x376629]['pairId']=_0x5e1e73[_0x316c('0xb2')](_0xdffcf7[_0x376629][_0x316c('0x11f')]));}[_0x316c('0x1d')](_0x431b8a){const _0x54bc7b=new Set(_0x431b8a[_0x316c('0xb6')](_0x59d4dc=>_0x59d4dc['id']));for(let _0x38b7b0=0x0;_0x38b7b0<_0x431b8a['length'];_0x38b7b0++)_0x54bc7b['has'](_0x431b8a[_0x38b7b0][_0x316c('0x11f')])||0x0==_0x431b8a[_0x38b7b0][_0x316c('0xea')]||(_0x431b8a[_0x38b7b0][_0x316c('0xa2')]=!0x0);return _0x431b8a['filter'](_0x4e61ca=>!_0x4e61ca[_0x316c('0xa2')]);}[_0x316c('0xd0')](_0x145dd3){const _0xa99a74=new Set();for(let _0x37fa5b=0x0;_0x37fa5b<_0x145dd3[_0x316c('0x62')];_0x37fa5b++){if(_0xa99a74[_0x316c('0x97')](_0x145dd3[_0x37fa5b]['id'])&&_0x145dd3[_0x37fa5b][_0x316c('0x3')]&&(_0x145dd3[_0x37fa5b][_0x316c('0xa2')]=!0x0),_0x145dd3[_0x37fa5b][_0x316c('0xa2')])continue;if(0x0==_0x145dd3[_0x37fa5b][_0x316c('0xea')])continue;if(_0x316c('0xcc')!=_0x145dd3[_0x37fa5b][_0x316c('0xa4')])continue;if(null==_0x145dd3[_0x37fa5b]['pairId'])continue;let _0x388e92=_0x37fa5b+0x1,_0x18ca9c=0x0;for(;_0x145dd3[_0x388e92]['id']!=_0x145dd3[_0x37fa5b][_0x316c('0x11f')];)_0x316c('0xcc')==_0x145dd3[_0x388e92][_0x316c('0xa4')]?_0x18ca9c++:_0x316c('0x10a')==_0x145dd3[_0x388e92][_0x316c('0xa4')]&&_0x18ca9c--,_0x388e92++;if(0x0!=_0x18ca9c){if(_0x145dd3[_0x37fa5b][_0x316c('0x3')])_0x145dd3[_0x37fa5b][_0x316c('0xa2')]=!0x0;else for(;_0x388e92!=_0x37fa5b;)_0x145dd3[_0x388e92]['isRemoved']&&0x0!=_0x145dd3[_0x388e92][_0x316c('0xea')]&&(_0x145dd3[_0x388e92][_0x316c('0xa2')]=!0x0,_0xa99a74['add'](_0x145dd3[_0x388e92]['pairId'])),_0x388e92--;}}return _0x145dd3[_0x316c('0x7e')](_0x296cf8=>!_0x296cf8[_0x316c('0xa2')]);}[_0x316c('0x9f')](_0x4d1ea4){const _0x553d6c=this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x48')];for(let _0x54ffc5=0x0;_0x54ffc5<_0x4d1ea4['length'];_0x54ffc5++){if(!(_0x4d1ea4[_0x54ffc5][_0x316c('0xe3')]||_0x4d1ea4[_0x54ffc5][_0x316c('0x80')]||_0x4d1ea4[_0x54ffc5][_0x316c('0x3')]||_0x4d1ea4[_0x54ffc5][_0x316c('0x8')]))continue;if(0x0==_0x4d1ea4[_0x54ffc5][_0x316c('0xea')])continue;const _0x5cfb1e=_0x4d1ea4[_0x54ffc5][_0x316c('0x38')];_0x553d6c[_0x316c('0xc')](_0x5cfb1e)||_0x553d6c[_0x316c('0xf4')](_0x5cfb1e)||(_0x4d1ea4[_0x54ffc5][_0x316c('0xe3')]&&delete _0x4d1ea4[_0x54ffc5][_0x316c('0xe3')],_0x4d1ea4[_0x54ffc5]['isAddSuggestion']&&delete _0x4d1ea4[_0x54ffc5][_0x316c('0x80')],_0x4d1ea4[_0x54ffc5][_0x316c('0x8')]&&delete _0x4d1ea4[_0x54ffc5][_0x316c('0x8')],_0x4d1ea4[_0x54ffc5][_0x316c('0x3')]&&(_0x4d1ea4[_0x54ffc5]['isIncorrect']=!0x0));}return _0x4d1ea4[_0x316c('0x7e')](_0x3ea564=>!_0x3ea564['isIncorrect']);}['_makeModelFromTape'](_0x439399,_0x324a56,_0x16a4bd){const _0x4419c8=new _0x3641d9(),_0x1c1a58=[],_0xd24905=new Map(),_0x14e1a3=this['editor'][_0x316c('0x10d')],_0x2273fe=_0x14e1a3[_0x316c('0x48')],_0x3e0346=[_0x4419c8],_0x4f7541={},_0x5b2c97={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5b03bd=null;const _0x49852c=[0x0];for(let _0x2632a0=0x0;_0x2632a0<_0x439399[_0x316c('0x62')];_0x2632a0++){let _0x430f23,_0x2dc88e;if('elementStart'===_0x439399[_0x2632a0][_0x316c('0xa4')]){_0x430f23=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c);const _0x298bd8=new _0x2d5233(_0x439399[_0x2632a0][_0x316c('0x38')]['name'],_0x439399[_0x2632a0][_0x316c('0x38')][_0x316c('0x100')]());_0x3e0346[0x0][_0x316c('0x4f')](_0x298bd8),_0x49852c['push'](0x0),_0x3e0346[_0x316c('0x122')](_0x298bd8),_0x2dc88e=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c),_0x5b03bd=null;}else{if(_0x316c('0x10a')===_0x439399[_0x2632a0][_0x316c('0xa4')])_0x3e0346[_0x316c('0xd2')](),_0x430f23=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c),_0x49852c[_0x316c('0x94')](),_0x49852c[_0x49852c[_0x316c('0x62')]-0x1]++,_0x2dc88e=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c),_0x5b03bd=null;else{if(_0x430f23=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c),_0x5b03bd&&_0x31a6f3(_0x5b03bd,_0x439399[_0x2632a0][_0x316c('0x38')]))_0x5b03bd[_0x316c('0x3a')]+=_0x439399[_0x2632a0]['item']['data'];else{const _0x598ae6=new _0x449c8c(_0x439399[_0x2632a0][_0x316c('0x38')][_0x316c('0x124')],_0x439399[_0x2632a0]['item']['getAttributes']());_0x3e0346[0x0][_0x316c('0x4f')](_0x598ae6),_0x5b03bd=_0x598ae6;}_0x49852c[_0x49852c[_0x316c('0x62')]-0x1]+=_0x439399[_0x2632a0][_0x316c('0x38')]['offsetSize'],_0x2dc88e=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c);}}for(const _0x4c72f5 of _0x439399[_0x2632a0]['markersStart'])_0xd24905[_0x316c('0x8f')](_0x4c72f5,{'start':_0x430f23,'end':null});_0x5aad24(_0x316c('0x8'),_0x2632a0,_0x430f23,_0x2dc88e),_0x5aad24('isAddSuggestion',_0x2632a0,_0x430f23,_0x2dc88e),_0x5aad24(_0x316c('0x3'),_0x2632a0,_0x430f23,_0x2dc88e),_0x5aad24(_0x316c('0xe3'),_0x2632a0,_0x430f23,_0x2dc88e);for(const _0x1e0102 of _0x439399[_0x2632a0]['markersEnd']){_0xd24905[_0x316c('0xb2')](_0x1e0102)['end']=_0x2dc88e;}}for(const [_0x4476b0,_0x21b3ca]of _0xd24905){const _0xf5a520=this[_0x316c('0x4a')]['model'][_0x316c('0x69')](_0x21b3ca['start'],_0x21b3ca[_0x316c('0x5c')]);_0x4419c8[_0x316c('0x101')][_0x316c('0x8f')](_0x4476b0,_0xf5a520);}return _0x1c1a58[_0x316c('0x55')]((_0x5e25c5,_0x12a1ca)=>{const _0x477b9e=_0x4419c8[_0x316c('0x101')][_0x316c('0xb2')]('revision:'+_0x5e25c5['id']),_0x16d27a=_0x4419c8['markers'][_0x316c('0xb2')](_0x316c('0x3d')+_0x12a1ca['id']);return _0x477b9e[_0x316c('0x33')][_0x316c('0xba')](_0x16d27a[_0x316c('0x33')])?-0x1:_0x477b9e[_0x316c('0x33')][_0x316c('0x76')](_0x16d27a[_0x316c('0x33')])?0x1:_0x477b9e['end'][_0x316c('0xba')](_0x16d27a['end'])?-0x1:_0x477b9e[_0x316c('0x5c')][_0x316c('0x76')](_0x16d27a[_0x316c('0x5c')])?0x1:_0x316c('0xd7')===_0x5e25c5[_0x316c('0xa4')]?-0x1:0x1;}),{'root':_0x4419c8,'changes':_0x1c1a58};function _0x5aad24(_0x1ac1d3,_0x20e640,_0x15a9a3,_0x19161e){const _0x1ea60a=!!_0x439399[_0x20e640][_0x1ac1d3],_0x2ad71c=_0x1ea60a?_0x439399[_0x20e640][_0x1ac1d3][_0x316c('0x31')]:null,_0x8af4a6=_0x20e640===_0x439399['length']-0x1,_0x3c3565=_0x5b2c97[_0x1ac1d3][0x0],_0x54a686=_0x2273fe['isObject'](_0x439399[_0x20e640][_0x316c('0x38')]);!_0x4f7541[_0x1ac1d3]&&_0x1ea60a?_0x4f7541[_0x1ac1d3]={'start':_0x15a9a3,'tapeItem':_0x439399[_0x20e640],'userId':_0x2ad71c,'type':_0x1ac1d3}:_0x4f7541[_0x1ac1d3]&&!_0x1ea60a?(_0x4f7541[_0x1ac1d3][_0x316c('0x5c')]=_0x15a9a3,_0x1d0822(_0x4f7541[_0x1ac1d3]),_0x4f7541[_0x1ac1d3]=null):_0x4f7541[_0x1ac1d3]&&_0x1ea60a&&_0x4f7541[_0x1ac1d3]['userId']!==_0x2ad71c&&(_0x4f7541[_0x1ac1d3][_0x316c('0x5c')]=_0x15a9a3,_0x3c3565&&_0x3c3565[_0x316c('0x31')]===_0x4f7541[_0x1ac1d3][_0x316c('0x31')]||_0x1d0822(_0x4f7541[_0x1ac1d3]),_0x4f7541[_0x1ac1d3]={'start':_0x15a9a3,'tapeItem':_0x439399[_0x20e640],'userId':_0x2ad71c,'type':_0x1ac1d3}),_0x4f7541[_0x1ac1d3]&&_0x54a686&&(_0x316c('0xcc')!==_0x439399[_0x20e640][_0x316c('0xa4')]||_0x3c3565&&_0x3c3565[_0x316c('0x31')]===_0x2ad71c||_0x5b2c97[_0x1ac1d3]['unshift']({'userId':_0x2ad71c,'object':_0x439399[_0x20e640][_0x316c('0x38')],'change':_0x4f7541[_0x1ac1d3]}),_0x316c('0x10a')===_0x439399[_0x20e640][_0x316c('0xa4')]&&_0x3c3565&&_0x3c3565['object']===_0x439399[_0x20e640]['item']&&(_0x5b2c97[_0x1ac1d3][_0x316c('0xd2')](),_0x4f7541[_0x1ac1d3]=_0x3c3565['change'])),_0x4f7541[_0x1ac1d3]&&_0x8af4a6&&(_0x4f7541[_0x1ac1d3]['end']=_0x19161e,_0x1d0822(_0x4f7541[_0x1ac1d3]),_0x4f7541[_0x1ac1d3]=null);}function _0x1d0822({start:_0x22ddc5,end:_0x2b0860,tapeItem:_0x3ebddd,userId:_0x321010,type:_0x4b5d04}){const _0x15dcbf=_0x3ebddd['item'],_0x4c3823=_0x14e1a3[_0x316c('0x48')][_0x316c('0xc')](_0x15dcbf)&&!_0x14e1a3[_0x316c('0x48')][_0x316c('0xf4')](_0x15dcbf),_0x4f1966=_0x22ddc5['nodeAfter']==_0x2b0860[_0x316c('0xdf')]&&_0x2b0860['isAtStart'];if(_0x4c3823&&_0x4f1966)return;const _0x377077=_0x14e1a3[_0x316c('0x69')](_0x22ddc5,_0x2b0860),_0x285847=_0x324a56['get'](_0x321010),_0x131da7=new _0x1d6b4c({'author':_0x285847,'type':_0x316c('0xe3')==_0x4b5d04||_0x316c('0x80')==_0x4b5d04?_0x316c('0xd7'):'remove','data':{'isSuggestion':_0x316c('0x80')==_0x4b5d04||_0x316c('0x8')==_0x4b5d04},'createdAt':new Date(),'rootName':_0x16a4bd});_0x1c1a58[_0x316c('0xfe')](_0x131da7),_0x4419c8[_0x316c('0x101')]['set'](_0x316c('0x3d')+_0x131da7['id'],_0x377077);}function _0x31a6f3(_0x51710e,_0x3f4b28){const _0x3b6956=_0x51710e['getAttributes'](),_0x5aec98=_0x3f4b28[_0x316c('0x100')]();for(const _0x9e3dcb of _0x3b6956){if(_0x9e3dcb[0x1]!==_0x3f4b28[_0x316c('0x2')](_0x9e3dcb[0x0]))return!0x1;_0x5aec98[_0x316c('0xad')]();}return _0x5aec98[_0x316c('0xad')]()[_0x316c('0xf9')];}}[_0x316c('0x8b')](){this['editor']['conversion']['for'](_0x316c('0x73'))[_0x316c('0x32')]({'view':_0x316c('0x4')}),this[_0x316c('0x4a')][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x103'))[_0x316c('0xc9')]({'model':_0x316c('0x4'),'view':_0x2886b6=>{const _0x1d86be=_0x2886b6['markerName'][_0x316c('0x70')](':')[0x1],_0x2af075=this[_0x316c('0xaf')](_0x1d86be);if(!_0x2af075)return null;const _0x2279b5=_0x316c('0xd7')==_0x2af075[_0x316c('0xa4')]?_0x316c('0xe6'):_0x316c('0x4b'),_0x13e69d=[_0x316c('0x11b'),_0x316c('0x86')+_0x2279b5];return _0x2af075[_0x316c('0x124')][_0x316c('0x10')]&&_0x13e69d[_0x316c('0xfe')](_0x316c('0x86')+_0x2279b5+_0x316c('0x44')),this['activeChange']==_0x2af075&&_0x13e69d[_0x316c('0xfe')](_0x316c('0x114')),{'classes':_0x13e69d,'attributes':{'data-change-id':_0x1d86be}};}}),this[_0x316c('0x4a')][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x73'))[_0x316c('0xd7')](_0x58d2cd=>{_0x58d2cd['on'](_0x316c('0x7a'),(_0x4b1b2c,_0x3ddc23,_0xf5fd98)=>{const _0x5a16d3=_0x3ddc23[_0x316c('0xe8')]['getChild'](0x0);if(!_0x5a16d3||!_0x5a16d3['is']('element',_0x316c('0x8d')))return;if(!_0xf5fd98[_0x316c('0x9a')][_0x316c('0x106')](_0x5a16d3,{'attributes':[_0x316c('0xaa'),_0x316c('0x89')]}))return;const _0x13c83b=_0x3ddc23[_0x316c('0x64')][_0x316c('0x33')][_0x316c('0x29')];_0xf5fd98[_0x316c('0x20')][_0x316c('0x24')](_0x316c('0xaa'),_0x5a16d3[_0x316c('0x2')](_0x316c('0xaa')),_0x13c83b),_0xf5fd98[_0x316c('0x20')][_0x316c('0x24')](_0x316c('0x89'),_0x5a16d3[_0x316c('0x2')](_0x316c('0x89')),_0x13c83b);},{'priority':_0x316c('0x2a')});}),this[_0x316c('0x4a')][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x73'))['add'](_0x3928ed=>{_0x3928ed['on']('element',(_0x521d5e,_0x1d2d1b,_0x5d4d50)=>{if(!_0x5d4d50[_0x316c('0x9a')][_0x316c('0x106')](_0x1d2d1b[_0x316c('0xe8')],{'attributes':[_0x316c('0xaa'),_0x316c('0x89')]}))return;if(_0x1d2d1b[_0x316c('0x64')][_0x316c('0x115')])return;const _0x405d66=_0x1d2d1b[_0x316c('0x64')]['start'][_0x316c('0x29')];_0x405d66[_0x316c('0x53')](_0x316c('0xaa'))||_0x405d66[_0x316c('0x53')](_0x316c('0xf8'))||(_0x5d4d50[_0x316c('0x20')][_0x316c('0x24')](_0x316c('0xaa'),_0x1d2d1b[_0x316c('0xe8')]['getAttribute'](_0x316c('0xaa')),_0x405d66),_0x5d4d50[_0x316c('0x20')]['setAttribute'](_0x316c('0x89'),_0x1d2d1b[_0x316c('0xe8')][_0x316c('0x2')](_0x316c('0x89')),_0x405d66));},{'priority':'low'});}),this['editor'][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x73'))[_0x316c('0x116')]({'view':{'name':_0x316c('0x74'),'attributes':{'vid':!0x0}},'model':{'key':_0x316c('0xf8'),'value':_0x256e13=>_0x256e13[_0x316c('0x2')](_0x316c('0xf8'))}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5ad03b,[,_0x41eab5])=>{[_0x316c('0xaa'),_0x316c('0x89'),_0x316c('0xf8')]['includes'](_0x41eab5)&&(_0x5ad03b[_0x316c('0x6a')]=!0x0,_0x5ad03b[_0x316c('0xc1')]());},{'priority':_0x316c('0xa6')}),this[_0x316c('0x4a')][_0x316c('0xb0')][_0x316c('0x78')]('dataDowncast')[_0x316c('0xd7')](_0x6d642=>{_0x6d642['on'](_0x316c('0x6c'),(_0x598b51,_0x2aa488,_0x2b5353)=>{if('\x20'!=_0x2aa488['item'][_0x316c('0x124')]||_0x2aa488['item']['parent'][_0x316c('0xc5')]>0x1)return;if(!_0x2b5353[_0x316c('0x9a')]['consume'](_0x2aa488[_0x316c('0x38')],_0x598b51['name']))return;const _0x54d937=_0x2b5353[_0x316c('0x20')],_0x4b5636=_0x2b5353[_0x316c('0x67')][_0x316c('0x2b')](_0x2aa488[_0x316c('0xe9')]);_0x54d937['wrap'](_0x4b5636,_0x54d937[_0x316c('0xe')]('span'));});}),this[_0x316c('0x4a')]['conversion'][_0x316c('0x78')](_0x316c('0x113'))['markerToData']({'model':_0x316c('0x4')}),this[_0x316c('0x4a')][_0x316c('0xeb')]['downcastDispatcher']['on'](_0x316c('0x51'),function(_0x538255){const _0x573ccf=_0x538255[_0x316c('0x9')][_0x316c('0xb2')](_0x316c('0xbb'));return(_0x185b9b,_0x36a10e,_0x3d5219)=>{const _0x1d11fa=_0x36a10e[_0x316c('0x5b')][_0x316c('0x70')](':')[0x1],_0x2b369b=_0x573ccf[_0x316c('0xaf')](_0x1d11fa);if(!_0x2b369b)return null;const _0x3df1a='add'==_0x2b369b[_0x316c('0xa4')]?_0x316c('0x70'):'merge';if(!_0x3d5219[_0x316c('0x9a')][_0x316c('0x117')](_0x36a10e[_0x316c('0x63')],_0x185b9b[_0x316c('0x11')]))return;const _0x38633f=_0x36a10e[_0x316c('0x63')][_0x316c('0xcf')](),_0x349da3=_0x36a10e['markerRange'][_0x316c('0x33')],_0x17ba06=_0x538255[_0x316c('0x10d')][_0x316c('0x48')];let _0x3a892a=null,_0x989e06=null,_0x4fc07c=!0x1,_0x37cce3=!0x1;for(const _0x31a785 of _0x38633f){const _0x1cf255=_0x31a785[_0x316c('0x38')];_0x4fc07c=_0x4fc07c||_0x17ba06[_0x316c('0xe2')](_0x1cf255);const _0x1c2a9f=_0x3d5219[_0x316c('0x67')][_0x316c('0x121')](_0x1cf255);if(_0x1c2a9f&&_0x1c2a9f[_0x316c('0x1f')](_0x316c('0x12b')))return;'elementEnd'==_0x31a785['type']&&(_0x17ba06[_0x316c('0xc')](_0x1cf255)&&!_0x17ba06['isLimit'](_0x1cf255)&&(_0x1cf255[_0x316c('0x90')]||_0x349da3[_0x316c('0x85')]?_0x3a892a&&_0x3a892a[_0x316c('0xdf')]==_0x1cf255||(_0x3a892a=_0x1cf255,_0x11aaef(_0x31a785[_0x316c('0x109')]),_0x37cce3=!0x0):_0x989e06=_0x989e06||_0x31a785['previousPosition']));}function _0x11aaef(_0x1a10a6){const _0xcf1493=_0x3d5219[_0x316c('0x20')][_0x316c('0xcb')]('span',{'class':_0x316c('0x86')+_0x3df1a}),_0x3fd58c=_0x3d5219[_0x316c('0x67')]['toViewPosition'](_0x1a10a6);_0x2b369b[_0x316c('0x124')][_0x316c('0x10')]&&_0x3d5219[_0x316c('0x20')]['addClass']('ck-suggestion-marker-'+_0x3df1a+_0x316c('0x44'),_0xcf1493),_0x573ccf[_0x316c('0x37')]==_0x2b369b&&_0x3d5219['writer'][_0x316c('0x35')](_0x316c('0x114'),_0xcf1493),_0x3d5219[_0x316c('0x20')][_0x316c('0x15')](_0x3fd58c,_0xcf1493),_0x3d5219['mapper'][_0x316c('0xb5')](_0xcf1493,_0x36a10e['markerName']);}_0x4fc07c||_0x37cce3||!_0x989e06||_0x11aaef(_0x989e06);};}(this[_0x316c('0x4a')]),{'priority':_0x316c('0xe7')}),this[_0x316c('0x4a')][_0x316c('0xeb')][_0x316c('0x120')]['on'](_0x316c('0xc2'),(_0x483969,_0xf69445,_0x22cab2)=>{const _0x5bd6f7=_0x22cab2[_0x316c('0x67')]['markerNameToElements'](_0xf69445[_0x316c('0x5b')]);if(_0x5bd6f7)for(const _0x46a009 of _0x5bd6f7)(_0x46a009[_0x316c('0xd4')](_0x316c('0xc6'))||_0x46a009[_0x316c('0xd4')](_0x316c('0x65')))&&(_0x22cab2['mapper']['unbindElementFromMarkerName'](_0x46a009,_0xf69445[_0x316c('0x5b')]),_0x22cab2[_0x316c('0x20')][_0x316c('0xf6')](_0x46a009));},{'priority':_0x316c('0xe7')}),this['editor'][_0x316c('0xeb')][_0x316c('0x120')]['on'](_0x316c('0x51'),(_0x288d5c,_0x36f62f,_0x40da62)=>{const _0x537dd1=_0x36f62f[_0x316c('0x5b')]['split'](':')[0x1],_0x4eff0d=this[_0x316c('0xaf')](_0x537dd1);if(!_0x4eff0d)return null;const _0x2065a5=_0x316c('0xd7')==_0x4eff0d[_0x316c('0xa4')]?_0x316c('0x70'):_0x316c('0x10e');if(_0x40da62[_0x316c('0x9a')]['test'](_0x36f62f[_0x316c('0x63')],_0x288d5c[_0x316c('0x11')]))for(const _0x303c57 of _0x36f62f[_0x316c('0x63')]['getItems']()){if(!_0x303c57['is'](_0x316c('0x34'),'softBreak'))continue;const _0x337072=_0x40da62[_0x316c('0x20')][_0x316c('0xcb')]('span',{'class':_0x316c('0x86')+_0x2065a5}),_0x14c4f0=_0x40da62[_0x316c('0x67')]['toViewPosition'](this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x10b')](_0x303c57));_0x4eff0d[_0x316c('0x124')][_0x316c('0x10')]&&_0x40da62[_0x316c('0x20')][_0x316c('0x35')](_0x316c('0x86')+_0x2065a5+_0x316c('0x44'),_0x337072),this[_0x316c('0x37')]==_0x4eff0d&&_0x40da62[_0x316c('0x20')][_0x316c('0x35')](_0x316c('0x114'),_0x337072),_0x40da62[_0x316c('0x20')][_0x316c('0x15')](_0x14c4f0,_0x337072),_0x40da62['mapper'][_0x316c('0xb5')](_0x337072,_0x36f62f[_0x316c('0x5b')]);}},{'priority':'high'}),this['editor']['model']['document']['on'](_0x316c('0x104'),()=>{this[_0x316c('0x4a')][_0x316c('0xeb')][_0x316c('0xe5')][_0x316c('0x104')](_0x228f63=>{for(const _0x2a2fa8 of this['editor'][_0x316c('0x10d')]['document']['getRootNames']()){const _0xf8ca18=this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0xc0')][_0x316c('0x56')](_0x2a2fa8),_0xd7bbb4=this[_0x316c('0x4a')][_0x316c('0xeb')][_0x316c('0xe5')]['document'][_0x316c('0x56')](_0x2a2fa8);if(_0xd7bbb4){const _0x1d525b=_0xf8ca18['getAttribute'](_0x316c('0x84'));if(_0x228f63[_0x316c('0x18')]('data-change-id',_0xd7bbb4),_0x228f63[_0x316c('0x75')]('ck-revision-history-root-add',_0xd7bbb4),_0x228f63[_0x316c('0x75')](_0x316c('0x3c'),_0xd7bbb4),_0x228f63[_0x316c('0x75')]('ck-revision-history-root--active',_0xd7bbb4),_0x1d525b){const _0x451f23=this[_0x316c('0xaf')](_0x1d525b);if(!_0x451f23)return null;_0x228f63[_0x316c('0x24')](_0x316c('0x57'),_0x1d525b,_0xd7bbb4),_0x228f63[_0x316c('0x35')](_0x316c('0x2d')+_0x451f23[_0x316c('0xa4')],_0xd7bbb4),this['activeChange']==_0x451f23&&_0x228f63['addClass'](_0x316c('0xab'),_0xd7bbb4);}}}});}),this[_0x316c('0x4a')][_0x316c('0xb0')][_0x316c('0x78')]('upcast')[_0x316c('0x32')]({'view':_0x316c('0x45'),'model':_0x252ca6=>_0x316c('0xb')+_0x252ca6,'converterPriority':_0x316c('0xa6')}),this['editor'][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x73'))[_0x316c('0x32')]({'view':'suggestion','model':_0x497ad3=>_0x316c('0x7')+_0x497ad3,'converterPriority':_0x316c('0xa6')}),this['editor'][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x113'))[_0x316c('0x6d')]({'model':_0x316c('0x82'),'view':_0x48a849=>({'name':_0x316c('0x6')+_0x48a849,'group':'revision-suggestion'}),'converterPriority':'highest'}),this[_0x316c('0x4a')]['conversion'][_0x316c('0x78')](_0x316c('0x103'))[_0x316c('0xc9')]({'model':_0x316c('0x82'),'view':_0x9b942e=>{const _0x515b13=_0x9b942e[_0x316c('0x5b')][_0x316c('0x70')](':')[0x1];return _0x316c('0xe6')!=_0x515b13&&_0x316c('0x4b')!=_0x515b13?null:{'classes':[_0x316c('0xe1'),_0x316c('0x1c')+_0x515b13]};}}),this[_0x316c('0x4a')]['editing'][_0x316c('0x120')]['on']('addMarker:revision-suggestion:deletion',et(this['editor'],_0x316c('0x10e')),{'priority':_0x316c('0xe7')}),this[_0x316c('0x4a')][_0x316c('0xeb')]['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',et(this['editor'],_0x316c('0x70')),{'priority':_0x316c('0xe7')}),this[_0x316c('0x4a')][_0x316c('0xeb')]['downcastDispatcher']['on'](_0x316c('0x88'),(_0x4a38a7,_0x7ff684,_0x175c15)=>{const _0x3b9d89=_0x175c15[_0x316c('0x67')][_0x316c('0x1')](_0x7ff684[_0x316c('0x5b')]);if(_0x3b9d89)for(const _0x52deb8 of _0x3b9d89)_0x52deb8['is'](_0x316c('0xef'))&&(_0x175c15[_0x316c('0x67')][_0x316c('0xe0')](_0x52deb8,_0x7ff684[_0x316c('0x5b')]),_0x175c15[_0x316c('0x20')][_0x316c('0xf6')](_0x52deb8));},{'priority':_0x316c('0xe7')});}[_0x316c('0xaf')](_0x39e0bc){return this['_changeIdToChange']['get'](_0x39e0bc);}['_getViewForChange'](_0x4feae4){return this[_0x316c('0xd6')]&&this[_0x316c('0xd6')]['destroy'](),this[_0x316c('0xd6')]=new _0x24da1b(this['editor'][_0x316c('0x9c')],_0x4feae4),this[_0x316c('0xd6')];}[_0x316c('0x8c')](){this['editor'][_0x316c('0x10d')][_0x316c('0xc0')][_0x316c('0x12a')][_0x316c('0x36')](_0x316c('0x4')),this['on'](_0x316c('0x11d'),(_0x1688d9,_0x5c5446,_0xe52f90,_0x3053a0)=>{_0x3053a0&&this[_0x316c('0xdc')]['remove'](_0x3053a0),_0xe52f90&&(this['_balloon'][_0x316c('0xd7')]({'view':_0xe52f90,'stackId':_0x316c('0x9d'),'position':{'target':()=>{const _0xc845dd=this[_0x316c('0x4a')][_0x316c('0xeb')],_0x1d1c7f=this[_0x316c('0xaf')](_0xe52f90[_0x316c('0x111')]);let _0x10987b;if(_0x1d1c7f[_0x316c('0x124')][_0x316c('0x22')]){const _0x3b167e=_0xc845dd[_0x316c('0xe5')]['getDomRoot'](_0x1d1c7f[_0x316c('0x11e')]);_0x10987b=Array[_0x316c('0xae')](_0x3b167e[_0x316c('0xa3')]());}else{const _0x580184=this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x101')]['get']('revision:'+_0xe52f90['changeId']);_0x10987b=Array[_0x316c('0xae')](_0xc845dd[_0x316c('0x67')]['markerNameToElements'](_0x580184['name']))[_0x316c('0xb6')](_0xb0078=>_0xc845dd[_0x316c('0xe5')][_0x316c('0x2c')]['mapViewToDom'](_0xb0078))['map'](_0x1b093b=>Array[_0x316c('0xae')](_0x1b093b[_0x316c('0xa3')]()))[_0x316c('0x6b')]();}if(!this[_0x316c('0x13')])return _0x10987b[0x0];return _0x10987b[_0x316c('0xbe')](_0x1a00e9=>_0x1a00e9[_0x316c('0x127')]-0x3<=this[_0x316c('0x13')]['y']&&_0x1a00e9['bottom']+0x3>=this[_0x316c('0x13')]['y']&&_0x1a00e9[_0x316c('0x3b')]-0x3<=this[_0x316c('0x13')]['x']&&_0x1a00e9[_0x316c('0xb7')]+0x3>=this[_0x316c('0x13')]['x'])||_0x10987b[0x0];}}}),this[_0x316c('0xdc')][_0x316c('0xc3')](_0x316c('0x9d')));}),this['on'](_0x316c('0xa8'),(_0x4a2a4d,_0x4b87ae,_0x1f560d,_0x18c316)=>{this[_0x316c('0xb1')]=_0x1f560d?this[_0x316c('0x102')](_0x1f560d):null,this[_0x316c('0x4a')]['model'][_0x316c('0x104')](()=>{const _0x4a594d=this[_0x316c('0x4a')][_0x316c('0xeb')];_0x18c316&&(_0x18c316['data']['isOnRoot']?_0x4a594d[_0x316c('0xe5')][_0x316c('0x104')](_0x79b996=>{_0x79b996[_0x316c('0x75')]('ck-revision-history-root--active',_0x4a594d[_0x316c('0xe5')][_0x316c('0xc0')][_0x316c('0x56')](_0x18c316[_0x316c('0x11e')]));}):_0x4a594d[_0x316c('0x3f')](_0x316c('0x3d')+_0x18c316['id'])),_0x1f560d&&(_0x1f560d['data']['isOnRoot']?_0x4a594d['view'][_0x316c('0x104')](_0x20e7e7=>{_0x20e7e7[_0x316c('0x35')]('ck-revision-history-root--active',_0x4a594d['view'][_0x316c('0xc0')][_0x316c('0x56')](_0x1f560d['rootName']));}):_0x4a594d['reconvertMarker']('revision:'+_0x1f560d['id']));});}),this[_0x316c('0xde')](this['editor'][_0x316c('0xeb')][_0x316c('0xe5')]['document'],_0x316c('0x126'),(_0x46e2e3,_0x10deed)=>{if(this[_0x316c('0x37')])return;const _0x3cec21=this[_0x316c('0x92')](_0x10deed[_0x316c('0x83')]),_0x5cb142=this[_0x316c('0xce')][_0x316c('0xb2')](_0x3cec21);_0x5cb142?(this[_0x316c('0x13')]={'x':_0x10deed[_0x316c('0x5a')]['x'],'y':_0x10deed[_0x316c('0x5a')]['y']},this['activeView']=this[_0x316c('0x102')](_0x5cb142)):(this['_activeViewTarget']=null,this[_0x316c('0xb1')]=null);}),this['listenTo'](this[_0x316c('0x4a')][_0x316c('0xeb')]['view'][_0x316c('0xc0')],_0x316c('0x128'),(_0x2331e8,_0x57fc07)=>{const _0x572596=this[_0x316c('0x92')](_0x57fc07['target']),_0x270522=this[_0x316c('0xce')][_0x316c('0xb2')](_0x572596);_0x270522?(this['_activeViewTarget']={'x':_0x57fc07[_0x316c('0x5a')]['x'],'y':_0x57fc07[_0x316c('0x5a')]['y']},_0x270522===this[_0x316c('0x37')]?this[_0x316c('0xdc')][_0x316c('0x4c')]():this['activeChange']=_0x270522):(this[_0x316c('0x13')]=null,this[_0x316c('0x37')]=null);});}[_0x316c('0x92')](_0x3322c8){do{const _0x48914f=_0x3322c8[_0x316c('0x2')](_0x316c('0x57'));if(_0x48914f)return _0x48914f;_0x3322c8=_0x3322c8[_0x316c('0xdf')];}while(_0x3322c8);return null;}['_cleanMarkers'](){this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x104')](_0x38c6a5=>{for(const _0x2fe6fd of this[_0x316c('0x4a')][_0x316c('0x10d')]['markers'])_0x38c6a5[_0x316c('0x66')](_0x2fe6fd);});}}function et(_0xe6049a,_0x1e3063){return(_0x3d3361,_0x118f59,_0x2a3a99)=>{if(!_0x2a3a99[_0x316c('0x9a')][_0x316c('0x117')](_0x118f59[_0x316c('0x63')],_0x3d3361[_0x316c('0x11')]))return;const _0x13f807=_0x118f59['markerRange'][_0x316c('0xcf')](),_0x32208a=_0x118f59[_0x316c('0x63')][_0x316c('0x33')],_0x16c109=_0xe6049a['model']['schema'];let _0x52c0f4=null,_0x477ca5=null,_0x4a59fa=!0x1,_0x18a946=!0x1;for(const _0x17c3f6 of _0x13f807){const _0x58a9de=_0x17c3f6[_0x316c('0x38')];_0x4a59fa=_0x4a59fa||_0x16c109['isContent'](_0x58a9de);const _0x2b7e80=_0x2a3a99['mapper'][_0x316c('0x121')](_0x58a9de);if(_0x2b7e80&&_0x2b7e80[_0x316c('0x1f')](_0x316c('0x12b')))return;_0x316c('0x10a')==_0x17c3f6[_0x316c('0xa4')]&&(_0x16c109[_0x316c('0xc')](_0x58a9de)&&!_0x16c109['isLimit'](_0x58a9de)&&(_0x58a9de[_0x316c('0x90')]||_0x32208a['isAtEnd']?_0x52c0f4&&_0x52c0f4[_0x316c('0xdf')]==_0x58a9de||(_0x52c0f4=_0x58a9de,_0xdba50c(_0x17c3f6[_0x316c('0x109')]),_0x18a946=!0x0):_0x477ca5=_0x477ca5||_0x17c3f6[_0x316c('0x109')]));}function _0xdba50c(_0x386eff){const _0x61fb32=_0x2a3a99['mapper'][_0x316c('0xd')](_0x386eff),_0x21ce76=_0x2a3a99[_0x316c('0x20')][_0x316c('0xcb')](_0x316c('0x74'),{'class':'ck-suggestion-preview-marker-'+_0x1e3063});_0x2a3a99[_0x316c('0x20')]['insert'](_0x61fb32,_0x21ce76),_0x2a3a99[_0x316c('0x67')][_0x316c('0xb5')](_0x21ce76,_0x118f59[_0x316c('0x5b')]);}_0x4a59fa||_0x18a946||!_0x477ca5||_0xdba50c(_0x477ca5);};}export class RestoreRevisionCommand extends _0x3ee5c9{constructor(_0x43ff71){super(_0x43ff71);const _0x3c00ba=_0x43ff71[_0x316c('0x9')][_0x316c('0xb2')](d);this[_0x316c('0x5')]=!0x1,this['listenTo'](_0x3c00ba,_0x316c('0x6f'),()=>this[_0x316c('0x96')]()),this[_0x316c('0xde')](_0x3c00ba,'change:isEnabled',()=>this[_0x316c('0x96')]());}[_0x316c('0x98')](){const _0x1fba0f=this['editor'],_0x285736=_0x1fba0f[_0x316c('0x9')][_0x316c('0xb2')](d),_0x162de7=_0x285736[_0x316c('0xd1')]?_0x285736[_0x316c('0x72')]['newRevisionId']:null;_0x1fba0f[_0x316c('0xdd')][_0x316c('0xb2')](_0x316c('0x118'))[_0x316c('0xa')](_0x162de7);}[_0x316c('0x96')](){const {isReady:_0x1155df,isEnabled:_0x2bdea8}=this[_0x316c('0x4a')][_0x316c('0x9')]['get'](d);this[_0x316c('0xb9')]=_0x1155df&&_0x2bdea8;}}export class ShowChangeCommand extends _0x3ee5c9{constructor(_0x4b3718,{direction:_0x469d13}){super(_0x4b3718);const _0x540a5c=_0x4b3718[_0x316c('0x9')][_0x316c('0xb2')](d);this['affectsData']=!0x1,this[_0x316c('0x54')]=_0x316c('0x107')===_0x469d13?0x1:-0x1,this[_0x316c('0xde')](_0x540a5c,'change:isReady',()=>this[_0x316c('0x96')]()),this[_0x316c('0xde')](_0x540a5c,_0x316c('0x10c'),()=>this[_0x316c('0x96')]()),this[_0x316c('0xde')](_0x540a5c,_0x316c('0xa8'),()=>this[_0x316c('0x96')]());}[_0x316c('0x98')](){const _0x14657f=this[_0x316c('0x4a')],_0x25271b=_0x14657f['plugins']['get'](d),{isNavigationMode:_0x5a0955,currentChangeNumber:_0x226ae8}=_0x25271b;let _0x2ceaf4;if(_0x25271b[_0x316c('0x37')]=_0x5a0955?_0x25271b[_0x316c('0x72')][_0x316c('0xb3')][_0x316c('0xb2')](_0x226ae8+this['_step']):_0x25271b[_0x316c('0x72')]['changes'][_0x316c('0xda')],_0x25271b[_0x316c('0x37')]['data']['isOnRoot'])_0x2ceaf4=_0x14657f[_0x316c('0xeb')][_0x316c('0xe5')][_0x316c('0xed')](_0x25271b[_0x316c('0x37')][_0x316c('0x11e')]);else{const _0x321640=_0x14657f[_0x316c('0x10d')][_0x316c('0x101')][_0x316c('0xb2')](_0x316c('0x3d')+_0x25271b[_0x316c('0x37')]['id']);_0x2ceaf4=_0x1ddec9(_0x14657f[_0x316c('0xeb')],_0x321640);}_0x1d92ac({'target':_0x2ceaf4,'viewportOffset':0x28});}[_0x316c('0x96')](){const {isNavigationMode:_0x11c20f,currentChangeNumber:_0x5619ce,numberOfChanges:_0x41c438,isReady:_0x1d2948,isEnabled:_0x3e444d}=this[_0x316c('0x4a')][_0x316c('0x9')][_0x316c('0xb2')](d);this['isEnabled']=!!(_0x3e444d&&_0x1d2948&&_0x41c438)&&(!_0x11c20f||(0x1===this[_0x316c('0x54')]?_0x5619ce<_0x41c438-0x1:_0x5619ce>0x0));}}
23
+ const _0x43f9=['ck-suggestion-marker-split','wrap','detachRoot','document','revision-start','markerToData','isObject','restoreRevision','offsetSize','numberOfChanges','comment','first','restoreRevisionCallback','side','end','vid','POSITIVE_INFINITY','endIndex','_cleanMarkers','isSuggestion','isRemoved','-new','_markInsertions','bind','setAttribute','conversion','mouseover','_setChanges','high','vid_end','push','processor','ck-revision-history-root-','isIncorrect','code','_changeView','change','isEnabled','selection','observeMarkers','markers','test','_threeWayMerge','editingDowncast','addRevisionData','distance','insert','map','_sortAndFilterDiffChanges','default','_makeTape','_appendChild','_cleanUp','clear','parse','ck-revision-history-root-remove','getRevision','getRevisionData','newRevisionId','top','toViewElement','markerNameToElements','oldRevisionId','_removeRevisionMarkers','createPositionFromPath','parent','downcastDispatcher','pop','hasAttribute','rootName','toViewRange','revision-suggestion','right','forEach','isAddSuggestion','getDomRoot','error','getRootNames','_activeViewTarget','change:activeView','vid_start','commands','bindElementToMarker','repository','filter','getAttribute','listenTo','_setDistance','low','uiElement','text','upcast','abs','range','_removeUnsupportedChanges','merge','length','model','_changeIdToChange','requires','from','_processTape','isOnRoot','change:isReady','getIndex','dataDowncast','removeMarker:revision-suggestion','isContent','delete','compare','getCustomProperty','WidgetToolbarRepository','plugins','item','ck-editor__editable__overlay','unbindElementFromMarkerName','change:isEnabled','toModel','element','deletion','addMarker:revision','changes','markersEnd','getClientRects','data-revision-','add','_initInteractions','markerRange','addRevision','toViewPosition','nextSibling','revision','attributes','target','createPositionBefore','revision:','ck-suggestion-preview-marker-','nextPosition','activeChange','ck-revision-history-root-add','isBlock','showPreviousChange','execute','keys','has','refresh','markerToHighlight','writer','mapper','_markMarkers','_getRevisionsRange','config','ck-revision-history-root--active','data','removeClass','affectsData','isNavigationMode','RevisionViewer','shift','markerName','toData','left','addClass','revision-viewer','slice','removeMarker','_makeModelFromTape','_update','schema','splice','pairId','diff','nodeAfter','consume','change:activeChange','dataToMarker','startsWith','ck-suggestion-marker','get','revision-comment:','return','suggestion','split','deletions','attributesAfter','indexOf','_findChangeIdFromDomTarget','_markSuggestions','enableReadOnlyMode','consumable','_joinTapes','editor','ck-suggestion-marker-','isAdded','domEvent','suggestion:','stop','isAttached','isBefore','isInline','ck-suggestion-marker--active','then','view','getAttributes','_data','pluginName','_balloon','roots','authors','activeView','_removeMissingPairs','diffData','useFillerType','isReady','isRemoveSuggestion','userId','isAfter','modelRange','addMarker:revision-suggestion:insertion','previousPosition','editing','level','index','highest','_fixObsoleteTags','name','_getViewObj','insertion','start','remove','type','children','data-change-id','marked','enqueueChange','concat','locale','ck-suggestion-marker-merge','attachChange','startIndex','_step','elementStart','sort','getRevisionRootsAttributes','ck-suggestion-preview-marker','isCollapsed','set','catch','markersStart','reconvertMarker','createRange','createUIElement','getWalker','viewItem','next','createRangeIn','includes','_getViewForChange','hasClass','revisionHistoryLabel','for','isEqual','elementEnd','isAtEnd','changeId','collaboration.channelId','_getChangeFromId','string','removeAttribute','_makeModelFromViewString','revisionHistoryAttachChange','revision-suggestion:','span','insertions','getRoot','loadRevisionData','resolve','unshift','isLimit','_setConversion'];(function(_0x5dd3e1,_0x43f97e){const _0x1a1228=function(_0x317d25){while(--_0x317d25){_0x5dd3e1['push'](_0x5dd3e1['shift']());}};_0x1a1228(++_0x43f97e);}(_0x43f9,0x1ee));const _0x1a12=function(_0x5dd3e1,_0x43f97e){_0x5dd3e1=_0x5dd3e1-0x0;let _0x1a1228=_0x43f9[_0x5dd3e1];return _0x1a1228;};import{Plugin as _0x666af2,Command as _0x451d39}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1af848}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1361b8}from'ckeditor5/src/ui';import{DocumentFragment as _0x39a483,Element as _0x5ba4f1,Text as _0x349258,ViewDocumentFragment as _0x47c118,ViewText as _0x26a283,ViewElement as _0x875c5,ViewContainerElement as _0x4afecf,ViewAttributeElement as _0x503843,ViewEmptyElement as _0x22c04e,ViewRawElement as _0x3e63cc,ViewUIElement as _0x27080b}from'ckeditor5/src/engine';import{Users as _0x251a2c,getMarkerDomElement as _0xf9def3}from'ckeditor5-collaboration/src/collaboration-core';import _0x13f4d1 from'./ui/revisionviewer/changedetailsview';import _0xbd3700 from'./revisionsrepository';import _0xb8debd from'./changeitem';import{default as _0x919ab}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x88bf2}from'lodash-es';const tt={'c':_0x4afecf,'a':_0x503843,'e':_0x22c04e,'r':_0x3e63cc,'u':_0x27080b};export default class d extends _0x666af2{static get[_0x1a12('0x10f')](){return _0x1a12('0xdf');}static get[_0x1a12('0xa5')](){return[_0x251a2c,_0x1361b8,_0xbd3700];}constructor(_0x68c678){super(_0x68c678),this[_0x1a12('0x95')]=this[_0x1a12('0x101')]['plugins'][_0x1a12('0xf4')]('RevisionsRepository'),this['set'](_0x1a12('0xcc'),null),this[_0x1a12('0x20')]('activeView',null),this[_0x1a12('0x90')]=null,this[_0x1a12('0x20')](_0x1a12('0xed'),null),this[_0x1a12('0x20')](_0x1a12('0x117'),!0x1),this[_0x1a12('0x20')](_0x1a12('0x67'),!0x0),this['on'](_0x1a12('0xb6'),(_0x176fd9,_0x31631d,_0x3558d0)=>{this[_0x1a12('0xcc')]=null,this[_0x1a12('0x113')]=null,this[_0x1a12('0x101')]['editing'][_0x1a12('0x10c')][_0x1a12('0x66')](_0x12417c=>{for(const _0x1cd8d6 of this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x10c')][_0x1a12('0x45')][_0x1a12('0x111')])_0x3558d0?_0x12417c['removeClass'](_0x1a12('0xb4'),_0x1cd8d6):_0x12417c[_0x1a12('0xe4')](_0x1a12('0xb4'),_0x1cd8d6);});}),this['bind'](_0x1a12('0xde'))['to'](this,_0x1a12('0xcc'),_0x45f5b3=>null!==_0x45f5b3),this[_0x1a12('0x59')]('currentChangeNumber')['to'](this,_0x1a12('0x117'),this,'diff',this,_0x1a12('0xcc'),(_0x34bbe2,_0x506b8d,_0x54887e)=>_0x34bbe2&&_0x54887e?_0x506b8d['changes'][_0x1a12('0xaa')](_0x54887e):0x0),this[_0x1a12('0x59')](_0x1a12('0x4b'))['to'](this,_0x1a12('0x117'),this,_0x1a12('0xed'),(_0x3609c0,_0x324cdc)=>_0x3609c0?_0x324cdc[_0x1a12('0xbb')]['length']:0x0),this['_changeView']=null,this[_0x1a12('0xa4')]=new Map(),this['adapter']=null,this['_balloon']=this[_0x1a12('0x101')]['plugins'][_0x1a12('0xf4')](_0x1361b8);}['init'](){const _0x580b7f=this[_0x1a12('0x101')],_0x17f2e3=new ShowChangeCommand(_0x580b7f,{'direction':'backward'}),_0x1ba526=new ShowChangeCommand(_0x580b7f,{'direction':'forward'});(_0x580b7f[_0x1a12('0x93')]['add'](_0x1a12('0xcf'),_0x17f2e3),_0x580b7f[_0x1a12('0x93')]['add']('showNextChange',_0x1ba526),_0x580b7f['commands'][_0x1a12('0xbf')](_0x1a12('0x49'),new RestoreRevisionCommand(_0x580b7f)),this['on']('change:numberOfChanges',()=>{_0x17f2e3[_0x1a12('0xd3')](),_0x1ba526['refresh']();}),this[_0x1a12('0x41')](),this[_0x1a12('0xc0')](),_0x580b7f[_0x1a12('0xfe')](_0x1a12('0xe5')),_0x580b7f[_0x1a12('0xb2')][_0x1a12('0xd2')](_0x1a12('0xb1')))&&_0x580b7f[_0x1a12('0xb2')][_0x1a12('0xf4')]('WidgetToolbarRepository')['forceDisabled'](_0x1a12('0xe5'));}async[_0x1a12('0x7b')](_0x21dac2){await this[_0x1a12('0x3d')](_0x21dac2);const _0x425360={};for(const _0x1e72d5 in _0x21dac2['diffData']){if(_0x21dac2[_0x1a12('0x115')][_0x1e72d5][_0x1a12('0x18')]&&!_0x21dac2[_0x1a12('0x115')][_0x1e72d5][_0x1a12('0x18')][_0x1a12('0x107')])continue;const _0x38d6b1=this[_0x1a12('0x81')](JSON[_0x1a12('0x78')](_0x21dac2[_0x1a12('0x115')][_0x1e72d5]['insertions'])),_0x12ef7c=this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x10c')][_0x1a12('0x45')],_0x1b0a5f=new _0x47c118(_0x12ef7c,_0x38d6b1[_0x1a12('0x71')](_0x3c3e3f=>this['_getViewObj'](_0x3c3e3f)));this['editor'][_0x1a12('0xdb')]['processor']['useFillerType'](_0x1a12('0x13')),_0x425360[_0x1e72d5]=this[_0x1a12('0x101')][_0x1a12('0xdb')][_0x1a12('0x61')][_0x1a12('0xe2')](_0x1b0a5f),this[_0x1a12('0x101')][_0x1a12('0xdb')]['processor'][_0x1a12('0x116')](_0x1a12('0x73'));}return _0x425360;}async[_0x1a12('0x1d')](_0xbf9d1c){await this[_0x1a12('0x3d')](_0xbf9d1c);const _0x25b400={};for(const _0x2dcc0f in _0xbf9d1c['diffData'])_0xbf9d1c[_0x1a12('0x115')][_0x2dcc0f]['attachChange']&&!_0xbf9d1c[_0x1a12('0x115')][_0x2dcc0f][_0x1a12('0x18')][_0x1a12('0x107')]||(_0x25b400[_0x2dcc0f]=_0xbf9d1c[_0x1a12('0x115')][_0x2dcc0f][_0x1a12('0xfa')]||{});return _0x25b400;}[_0x1a12('0x81')](_0x5425b0){return(_0x5425b0=_0x5425b0[_0x1a12('0x96')](_0x50c6c3=>!_0x50c6c3['name']||_0x1a12('0x46')!==_0x50c6c3[_0x1a12('0xb')]&&'revision-end'!==_0x50c6c3['name']))[_0x1a12('0x8b')](_0x537be7=>{'string'!=typeof _0x537be7&&(_0x537be7[_0x1a12('0x11')]=this[_0x1a12('0x81')](_0x537be7['children']),_0x537be7[_0x1a12('0xc6')]=_0x537be7[_0x1a12('0xc6')][_0x1a12('0x96')](_0x1ea956=>!_0x1ea956[0x0][_0x1a12('0xf2')](_0x1a12('0xbe'))));}),_0x5425b0;}async[_0x1a12('0xaf')](_0x4b64cd,_0x4f04a7,_0x432615=!0x1){if(!this[_0x1a12('0x67')])return;const _0x43be5e=this[_0x1a12('0xed')],_0x5d7b1b=this[_0x1a12('0x95')],_0x20e22b='string'==typeof _0x4b64cd?_0x5d7b1b[_0x1a12('0x7a')](_0x4b64cd):_0x4b64cd,_0x51d9b3='string'==typeof _0x4f04a7?_0x5d7b1b['getRevision'](_0x4f04a7):_0x4f04a7,_0x409ac0=_0x20e22b['id'],_0x4a0d33=_0x51d9b3?_0x51d9b3['id']:null;if(!_0x432615&&this[_0x1a12('0xed')]&&this[_0x1a12('0xed')][_0x1a12('0x7c')]===_0x409ac0&&this['diff'][_0x1a12('0x80')]===_0x4a0d33)return Promise[_0x1a12('0x3e')]();this['isReady']=!0x1,this['activeView']=null,this[_0x1a12('0xcc')]=null,this['diff']=new _0x919ab(_0x409ac0,_0x4a0d33);const _0x582ca3=this['_getRevisionsRange'](_0x20e22b,_0x51d9b3,!0x0)[_0x1a12('0x71')](_0x472bba=>this[_0x1a12('0x3d')](_0x472bba));return _0x582ca3[_0x1a12('0x60')](new Promise(_0x240fe3=>{setTimeout(_0x240fe3,0x14);})),Promise['all'](_0x582ca3)['then'](()=>{if(!this[_0x1a12('0x67')])return;this[_0x1a12('0x76')]();const _0x2d03c3=this['_getDiff'](_0x409ac0,_0x4a0d33);for(const _0x579a00 of _0x2d03c3[_0x1a12('0xbb')])this[_0x1a12('0xa4')][_0x1a12('0x20')](_0x579a00['id'],_0x579a00);this[_0x1a12('0x101')][_0x1a12('0xa3')]['enqueueChange']({'isUndoable':!0x1},_0x4eea52=>{for(const _0x3c73ba of this['editor'][_0x1a12('0xa3')]['document']['getRootNames']())_0x4eea52[_0x1a12('0x44')](_0x3c73ba);for(const _0x59b728 of Object['keys'](_0x2d03c3[_0x1a12('0xa3')])){const _0x2c491e=_0x4eea52['addRoot'](_0x59b728);for(const _0x443c0c of Object[_0x1a12('0xd1')](_0x2d03c3[_0x1a12('0xc6')][_0x59b728]))_0x4eea52[_0x1a12('0x5a')](_0x443c0c,_0x2d03c3['attributes'][_0x59b728][_0x443c0c],_0x2c491e);_0x4eea52['insert'](_0x2d03c3[_0x1a12('0xa3')][_0x59b728],_0x2c491e,0x0);}}),this[_0x1a12('0xed')][_0x1a12('0x5d')](this[_0x1a12('0x72')](_0x2d03c3[_0x1a12('0xbb')])),this[_0x1a12('0x117')]=!0x0;})[_0x1a12('0x21')](_0x2abd5c=>{console[_0x1a12('0x8e')](_0x2abd5c),this[_0x1a12('0x76')](),_0x43be5e&&(this[_0x1a12('0xed')]=_0x43be5e),this[_0x1a12('0x117')]=!0x0;});}[_0x1a12('0x6e')](_0x5e0f72,_0x16071f){const _0x4b15c7=this['repository']['createRevision'](_0x5e0f72);return _0x4b15c7['on'](_0x1a12('0xe9'),(_0x5e3b21,_0x1f7f01,_0x33317a)=>_0x16071f(_0x1f7f01,_0x33317a,_0x4b15c7)),this[_0x1a12('0x95')][_0x1a12('0xc2')](_0x4b15c7),_0x4b15c7;}[_0x1a12('0x3d')](_0x252d1a){if(!_0x252d1a||_0x252d1a[_0x1a12('0x115')])return Promise['resolve']();{const _0x41ceec=this[_0x1a12('0x101')]['config'][_0x1a12('0xf4')](_0x1a12('0x33'));return this['adapter'][_0x1a12('0x7a')]({'channelId':_0x41ceec,'revisionId':_0x252d1a['id']})[_0x1a12('0x10b')](_0x18f1ab=>{_0x252d1a[_0x1a12('0xe9')]({'diffData':_0x18f1ab[_0x1a12('0x115')]},!0x0);});}}[_0x1a12('0x76')](){this[_0x1a12('0xcc')]=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this[_0x1a12('0x65')]=null,this['_changeIdToChange'][_0x1a12('0x77')](),this[_0x1a12('0x101')]['model'][_0x1a12('0x14')]({'isUndoable':!0x1},_0x118ec7=>{for(const _0x2bd432 of this[_0x1a12('0x101')]['model'][_0x1a12('0x45')][_0x1a12('0x8f')]())_0x118ec7['detachRoot'](_0x2bd432);});}[_0x1a12('0x72')](_0x3ae07d){const _0x49efca=[],_0x50a01b=new Map();for(const _0x4ce4f9 of this[_0x1a12('0x101')][_0x1a12('0xa3')][_0x1a12('0x45')]['getRootNames']()){const _0x2ae9f3=this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x10c')][_0x1a12('0x8d')](_0x4ce4f9);if(!_0x2ae9f3)continue;const _0x5b0df9=_0x2ae9f3[_0x1a12('0xbd')]()['item'](0x0);_0x5b0df9&&(_0x49efca[_0x1a12('0x60')](_0x4ce4f9),_0x50a01b['set'](_0x4ce4f9,_0x5b0df9));}return _0x49efca[_0x1a12('0x1c')]((_0x4b6bf7,_0x5215c2)=>{const _0xecb36c=_0x50a01b[_0x1a12('0xf4')](_0x4b6bf7),_0x132411=_0x50a01b[_0x1a12('0xf4')](_0x5215c2);return _0xecb36c['y']-_0x132411['y']||_0xecb36c['x']-_0x132411['x'];}),(_0x3ae07d=_0x3ae07d[_0x1a12('0x96')](_0x346318=>_0x49efca['includes'](_0x346318['rootName'])))[_0x1a12('0x1c')]((_0x2f2ee0,_0x498916)=>_0x49efca[_0x1a12('0xfb')](_0x2f2ee0['rootName'])-_0x49efca[_0x1a12('0xfb')](_0x498916[_0x1a12('0x87')])),_0x3ae07d;}[_0x1a12('0x74')](_0x280ff1){const _0xb152ff=Array['from'](_0x280ff1[_0x1a12('0x6a')])['filter'](([_0x3c7953,_0x46d4c9])=>_0x3c7953['startsWith'](_0x1a12('0xc9'))&&!_0x46d4c9['isCollapsed']),_0x108964=Array[_0x1a12('0xa6')](this[_0x1a12('0x101')][_0x1a12('0xa3')][_0x1a12('0x29')](_0x280ff1)[_0x1a12('0x26')]({'singleCharacters':!0x0}));if(0x0!=_0xb152ff[_0x1a12('0xa2')])for(const _0x562d30 of _0x108964){const [_0x56563e,_0x620e6d]=_0xb152ff[0x0],[,_0x15eb5e,_0x1cf7e2]=_0x56563e[_0x1a12('0xf8')](':');if(_0x620e6d[_0x1a12('0x50')][_0x1a12('0x2f')](_0x562d30[_0x1a12('0xcb')])&&_0xb152ff[_0x1a12('0xe0')](),(_0x562d30[_0x1a12('0x5')][_0x1a12('0x2f')](_0x620e6d[_0x1a12('0xe')])||_0x562d30['previousPosition'][_0x1a12('0x2')](_0x620e6d[_0x1a12('0xe')]))&&(_0x1a12('0xd')==_0x15eb5e?_0x562d30['isAdded']={'userId':_0x1cf7e2}:_0x1a12('0xb9')==_0x15eb5e&&(_0x562d30['isRemoved']={'userId':_0x1cf7e2})),0x0==_0xb152ff[_0x1a12('0xa2')])break;}return _0x108964;}['_refreshStartEndIndex'](_0x3b1ff2){const _0x4c2fc4=new Map();for(let _0x3a2644=0x0;_0x3a2644<_0x3b1ff2[_0x1a12('0xa2')];_0x3a2644++)_0x1a12('0x9c')===_0x3b1ff2[_0x3a2644][_0x1a12('0x10')]?(_0x3b1ff2[_0x3a2644][_0x1a12('0xb3')][_0x1a12('0x19')]=_0x3a2644,_0x3b1ff2[_0x3a2644][_0x1a12('0xb3')][_0x1a12('0x53')]=_0x3a2644):(_0x1a12('0x1b')===_0x3b1ff2[_0x3a2644][_0x1a12('0x10')]?_0x3b1ff2[_0x3a2644][_0x1a12('0xb3')]['startIndex']=_0x3a2644:_0x1a12('0x30')===_0x3b1ff2[_0x3a2644][_0x1a12('0x10')]&&(_0x3b1ff2[_0x3a2644][_0x1a12('0xb3')][_0x1a12('0x53')]=_0x3a2644),_0x4c2fc4[_0x1a12('0x20')](_0x3b1ff2[_0x3a2644]['id'],_0x3a2644));for(const _0x222c3 of _0x4c2fc4['values']())_0x1a12('0x1b')===_0x3b1ff2[_0x222c3][_0x1a12('0x10')]?_0x3b1ff2[_0x222c3][_0x1a12('0xb3')][_0x1a12('0x53')]=_0x4c2fc4[_0x1a12('0xf4')](_0x3b1ff2[_0x222c3][_0x1a12('0xec')]):_0x1a12('0x30')===_0x3b1ff2[_0x222c3][_0x1a12('0x10')]&&(_0x3b1ff2[_0x222c3][_0x1a12('0xb3')][_0x1a12('0x19')]=_0x4c2fc4[_0x1a12('0xf4')](_0x3b1ff2[_0x222c3]['pairId']));}[_0x1a12('0xa7')](_0x5dc9ce){for(let _0x4a02d7=0x0;_0x4a02d7<_0x5dc9ce[_0x1a12('0xa2')];_0x4a02d7++){if(_0x1a12('0x1b')===_0x5dc9ce[_0x4a02d7]['type'])_0x5dc9ce[_0x4a02d7][_0x1a12('0xb3')]['startIndex']=_0x4a02d7;else{if(_0x1a12('0x30')===_0x5dc9ce[_0x4a02d7]['type']){_0x5dc9ce[_0x4a02d7][_0x1a12('0xb3')]['endIndex']=_0x4a02d7;const _0x355931=_0x5dc9ce[_0x4a02d7][_0x1a12('0xb3')][_0x1a12('0x19')];_0x5dc9ce[_0x355931][_0x1a12('0xec')]=_0x5dc9ce[_0x4a02d7]['id'],_0x5dc9ce[_0x4a02d7]['pairId']=_0x5dc9ce[_0x355931]['id'];}else _0x5dc9ce[_0x4a02d7][_0x1a12('0xb3')][_0x1a12('0x19')]=_0x4a02d7,_0x5dc9ce[_0x4a02d7][_0x1a12('0xb3')][_0x1a12('0x53')]=_0x4a02d7,_0x5dc9ce[_0x4a02d7][_0x1a12('0xec')]=null;}_0x5dc9ce[_0x4a02d7][_0x1a12('0x22')]||(_0x5dc9ce[_0x4a02d7][_0x1a12('0x22')]=[],_0x5dc9ce[_0x4a02d7][_0x1a12('0xbc')]=[]);}}[_0x1a12('0x58')](_0x21f48d,_0x41376b){const _0x4510a8=_0x21f48d['filter'](_0x392fbd=>!_0x392fbd['isAdded']);for(let _0x3e0750=0x0;_0x3e0750<_0x41376b[_0x1a12('0xa2')];_0x3e0750++)_0x41376b[_0x3e0750][_0x1a12('0x103')]&&(_0x4510a8[_0x3e0750][_0x1a12('0x103')]=_0x41376b[_0x3e0750][_0x1a12('0x103')]);}[_0x1a12('0x37')](_0x4074b9){const _0x2ca01a=JSON[_0x1a12('0x78')](_0x4074b9),_0x17a9f4=this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x10c')][_0x1a12('0x45')],_0x3ca541=new _0x47c118(_0x17a9f4,_0x2ca01a[_0x1a12('0x71')](_0x28e037=>this[_0x1a12('0xc')](_0x28e037)));return this[_0x1a12('0x101')][_0x1a12('0xdb')][_0x1a12('0xb7')](_0x3ca541);}[_0x1a12('0xc')](_0x1cf457){const _0x2ec53c=this[_0x1a12('0x101')]['editing'][_0x1a12('0x10c')][_0x1a12('0x45')];if(_0x1a12('0x35')==typeof _0x1cf457)return new _0x26a283(_0x2ec53c,_0x1cf457);{const _0x453ff9=_0x1cf457[_0x1a12('0x11')][_0x1a12('0x71')](_0x4e7fa4=>this[_0x1a12('0xc')](_0x4e7fa4));return new(tt[_0x1cf457['type']]||_0x875c5)(_0x2ec53c,_0x1cf457['name'],_0x1cf457[_0x1a12('0xc6')],_0x453ff9);}}['_getDiff'](_0x4619af,_0x1107d9=null){const _0x5554b0=this[_0x1a12('0x95')]['getRevision'](_0x4619af),_0x5a4383=_0x1107d9?this[_0x1a12('0x95')]['getRevision'](_0x1107d9):null,_0x11aeca=this[_0x1a12('0xd8')](_0x5554b0,_0x5a4383),_0x33f8ee=_0x11aeca[_0x11aeca['length']-0x1],_0x5879b3=new Map(),_0x196d79={'model':{},'attributes':{},'changes':[]},_0x1ac6c5=new Set(),_0x535796=new Map();for(let _0x50cc37=_0x11aeca[_0x1a12('0xa2')]-0x1;_0x50cc37>=0x0;_0x50cc37--){const _0x33d015=_0x11aeca[_0x50cc37];for(const _0x13b26d of Object[_0x1a12('0xd1')](_0x33d015[_0x1a12('0x115')]))if(_0x33d015[_0x1a12('0x115')][_0x13b26d]['attachChange']){const _0xcac524=_0x33d015['diffData'][_0x13b26d][_0x1a12('0x18')];_0xcac524[_0x1a12('0x107')]?(_0x1ac6c5[_0x1a12('0xbf')](_0x13b26d),_0x535796[_0x1a12('0xd2')](_0x13b26d)&&_0x535796[_0x1a12('0xf4')](_0x13b26d)[_0x1a12('0x1')]==_0xcac524[_0x1a12('0x1')]?_0x535796[_0x1a12('0xae')](_0x13b26d):_0x535796['set'](_0x13b26d,_0xcac524)):_0x535796[_0x1a12('0xd2')](_0x13b26d)?(_0x1ac6c5[_0x1a12('0xae')](_0x13b26d),_0x535796[_0x1a12('0xae')](_0x13b26d)):(_0x1ac6c5[_0x1a12('0xbf')](_0x13b26d),_0x535796['set'](_0x13b26d,_0xcac524));}else _0x1ac6c5[_0x1a12('0xbf')](_0x13b26d);}for(const _0x511e62 of _0x1ac6c5){const _0x51f0ab=_0x535796[_0x1a12('0xd2')](_0x511e62)&&!_0x535796['get'](_0x511e62)[_0x1a12('0x107')];let _0x4a4f06=_0x51f0ab?_0x11aeca[_0x1a12('0xa2')]-0x1:0x0;const _0x5651b3=_0x51f0ab?-0x1:0x1;for(;_0x11aeca[_0x4a4f06];){const _0x5a9e3a=_0x11aeca[_0x4a4f06];if(_0x5a9e3a[_0x1a12('0x115')][_0x511e62]){const _0x1fe6e1=_0x51f0ab?_0x5a9e3a['diffData'][_0x511e62]['attributesBefore']:_0x5a9e3a[_0x1a12('0x115')][_0x511e62][_0x1a12('0xfa')];_0x196d79['attributes'][_0x511e62]=_0x1fe6e1?_0x88bf2(_0x1fe6e1):{};break;}_0x4a4f06+=_0x5651b3;}}for(const _0x348c6d of _0x11aeca){_0x348c6d[_0x1a12('0xa3')]={};for(const _0xb92b58 of _0x348c6d[_0x1a12('0x112')])_0x5879b3[_0x1a12('0x20')](_0xb92b58['id'],_0xb92b58);for(const _0x211872 of _0x1ac6c5){const _0x481230=_0x348c6d['diffData'][_0x211872]?_0x348c6d[_0x1a12('0x115')][_0x211872][_0x1a12('0x3b')]:'[]',_0x383436=_0x348c6d[_0x1a12('0x115')][_0x211872]?_0x348c6d['diffData'][_0x211872][_0x1a12('0xf9')]:'[]';_0x348c6d[_0x1a12('0xa3')][_0x211872]={'insertions':this['_makeModelFromViewString'](_0x481230),'deletions':this[_0x1a12('0x37')](_0x383436)};}}for(const _0x1d2b5b of _0x1ac6c5){let _0x37a44d=null,_0x2cd570=0x0;const _0x22d632=new Map(Array[_0x1a12('0xa6')](_0x5554b0['model'][_0x1d2b5b][_0x1a12('0x3b')][_0x1a12('0x6a')])[_0x1a12('0x96')](([_0x2c976a])=>!_0x2c976a[_0x1a12('0xf2')]('revision:')));let _0x5874b7=0x0;for(const _0x45bcfb of _0x11aeca){const _0x6bb7dd=this[_0x1a12('0x74')](_0x45bcfb[_0x1a12('0xa3')][_0x1d2b5b]['insertions']);_0x45bcfb==_0x5554b0?(_0x37a44d=_0x6bb7dd,_0x2cd570=_0x37a44d[_0x1a12('0xa2')],_0x37a44d[_0x1a12('0x8b')](_0x5312fa=>{_0x5312fa['id']=_0x5874b7++;}),this[_0x1a12('0xa7')](_0x37a44d)):this['_markInsertions'](_0x37a44d,_0x6bb7dd);const _0x208ab4=_0x37a44d[_0x1a12('0x96')](_0x2c1ce2=>!_0x2c1ce2[_0x1a12('0x103')])[_0x1a12('0x71')](_0x209e29=>_0x209e29['id']);let _0x3bee28=0x0;const _0x3db66c=this[_0x1a12('0x74')](_0x45bcfb[_0x1a12('0xa3')][_0x1d2b5b][_0x1a12('0xf9')]);_0x3db66c[_0x1a12('0x8b')](_0x2a1ccd=>{_0x2a1ccd[_0x1a12('0x56')]?_0x2a1ccd['id']=_0x2cd570++:_0x2a1ccd['id']=_0x208ab4[_0x3bee28++];}),this['_processTape'](_0x3db66c),this[_0x1a12('0x99')](_0x37a44d,_0x1a12('0x103')),this[_0x1a12('0x99')](_0x3db66c,_0x1a12('0x56')),_0x45bcfb==_0x5554b0&&this[_0x1a12('0xd7')](_0x37a44d,_0x22d632),_0x37a44d=this['_joinTapes'](_0x37a44d,_0x3db66c),this['_refreshStartEndIndex'](_0x37a44d),this[_0x1a12('0x99')](_0x37a44d,_0x1a12('0x56'));}_0x37a44d=_0x37a44d[_0x1a12('0x96')](_0x393a65=>!(_0x393a65['isAdded']&&_0x393a65[_0x1a12('0x56')]));const _0x48d158=new Map(_0x33f8ee[_0x1a12('0xa3')][_0x1d2b5b][_0x1a12('0xf9')][_0x1a12('0x6a')]),_0x4fe1bc=new Set(_0x22d632[_0x1a12('0xd1')]());for(const _0x1cf04d of _0x48d158[_0x1a12('0xd1')]())_0x4fe1bc[_0x1a12('0xae')](_0x1cf04d);this[_0x1a12('0xfd')](_0x37a44d,_0x4fe1bc),this[_0x1a12('0xa')](_0x37a44d),_0x37a44d=this[_0x1a12('0x114')](_0x37a44d),_0x37a44d=this['_markMismatchedRemovedTags'](_0x37a44d),_0x37a44d=this[_0x1a12('0xa0')](_0x37a44d);const {root:_0x255435,changes:_0x3e73d4}=this['_makeModelFromTape'](_0x37a44d,_0x5879b3,_0x1d2b5b);_0x196d79['model'][_0x1d2b5b]=_0x255435;const _0x2a359e=_0x535796['get'](_0x1d2b5b);if(_0x2a359e){const _0x28d418=_0x5879b3['get'](_0x2a359e['userId']),_0x1916ba=new _0xb8debd({'author':_0x28d418,'type':_0x2a359e[_0x1a12('0x107')]?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1d2b5b});_0x3e73d4[_0x1a12('0x3f')](_0x1916ba),_0x196d79['attributes'][_0x1d2b5b][_0x1a12('0x38')]=_0x1916ba['id'];}_0x196d79[_0x1a12('0xbb')]=_0x196d79[_0x1a12('0xbb')]['concat'](_0x3e73d4);}return _0x196d79;}['_markMarkers'](_0x3791fb,_0x10f33b){for(let _0x5e4541=0x0;_0x5e4541<_0x3791fb['length'];_0x5e4541++)for(const [_0x1aa7ed,_0x1fbafe]of _0x10f33b)_0x1fbafe[_0x1a12('0xe')]['isEqual'](_0x3791fb[_0x5e4541][_0x1a12('0x5')])&&_0x3791fb[_0x5e4541][_0x1a12('0x22')]['push'](_0x1aa7ed),_0x1fbafe[_0x1a12('0x50')][_0x1a12('0x2f')](_0x3791fb[_0x5e4541][_0x1a12('0xcb')])&&_0x3791fb[_0x5e4541][_0x1a12('0xbc')][_0x1a12('0x60')](_0x1aa7ed);}[_0x1a12('0x100')](_0x2ca2e2,_0x3754dc){let _0xb20f5a=[],_0x3ae6c1=0x0,_0x3dbdf9=0x0;for(;_0x3ae6c1<_0x2ca2e2[_0x1a12('0xa2')]||_0x3dbdf9<_0x3754dc[_0x1a12('0xa2')];){const _0x348f23=_0x2ca2e2[_0x3ae6c1]||{},_0x528fce=_0x3754dc[_0x3dbdf9]||{};if(_0x348f23['id']==_0x528fce['id'])_0x3ae6c1++,_0x3dbdf9++,_0xb20f5a[_0x1a12('0x60')](_0x348f23);else{if(_0x528fce[_0x1a12('0x56')]&&_0x348f23['isAdded']){const {commonTape:_0x25839f,iEnd:_0x48f643,jEnd:_0x460a73}=this[_0x1a12('0x6c')](_0x2ca2e2,_0x3ae6c1,_0x3754dc,_0x3dbdf9);_0xb20f5a=_0xb20f5a['concat'](_0x25839f),_0x3ae6c1=_0x48f643,_0x3dbdf9=_0x460a73;}else _0x528fce[_0x1a12('0x56')]?(_0x3dbdf9++,_0xb20f5a[_0x1a12('0x60')](_0x528fce)):(_0x3ae6c1++,_0xb20f5a[_0x1a12('0x60')](_0x348f23));}}return _0xb20f5a;}['_markSuggestions'](_0x51347c,_0x349a84){const _0x54aa03=[];for(let _0x58de0f=0x0;_0x58de0f<_0x51347c[_0x1a12('0xa2')];_0x58de0f++){for(let _0x16bb5e=0x0;_0x16bb5e<_0x51347c[_0x58de0f][_0x1a12('0x22')][_0x1a12('0xa2')];_0x16bb5e++){const _0x4b436f=_0x51347c[_0x58de0f][_0x1a12('0x22')][_0x16bb5e];if(!_0x349a84['has'](_0x4b436f))continue;const {group:_0x42535a,type:_0x256a49,authorId:_0x8f3211}=_0x2459fc(_0x4b436f);_0x1a12('0x89')!=_0x42535a||_0x1a12('0xd')!=_0x256a49&&_0x1a12('0xb9')!=_0x256a49||(_0x54aa03[_0x1a12('0x3f')]({'type':_0x256a49,'name':_0x4b436f,'userId':_0x8f3211}),_0x51347c[_0x58de0f][_0x1a12('0x22')][_0x1a12('0xeb')](_0x16bb5e,0x1),_0x16bb5e--);}_0x27afa7(_0x51347c[_0x58de0f]);for(let _0x3bef0b=0x0;_0x3bef0b<_0x51347c[_0x58de0f]['markersEnd'][_0x1a12('0xa2')];_0x3bef0b++){const _0x1bb6f9=_0x51347c[_0x58de0f][_0x1a12('0xbc')][_0x3bef0b];if(!_0x349a84[_0x1a12('0xd2')](_0x1bb6f9))continue;const {group:_0x5e31c0,type:_0x3e6c80}=_0x2459fc(_0x1bb6f9);if(_0x1a12('0x89')!=_0x5e31c0||_0x1a12('0xd')!=_0x3e6c80&&_0x1a12('0xb9')!=_0x3e6c80)continue;_0x51347c[_0x58de0f]['markersEnd'][_0x1a12('0xeb')](_0x3bef0b,0x1),_0x3bef0b--;const _0x324c03=_0x54aa03['findIndex'](_0x37c664=>_0x37c664['name']==_0x1bb6f9);_0x324c03>-0x1&&_0x54aa03[_0x1a12('0xeb')](_0x324c03,0x1);}}function _0x2459fc(_0x296079){const _0x18ad86=_0x296079['split'](':');return{'group':_0x18ad86[0x0],'type':_0x18ad86[0x1],'subType':_0x18ad86[_0x1a12('0xa2')]>=0x5?_0x18ad86[0x2]:null,'id':_0x18ad86[_0x1a12('0xa2')]<0x5?_0x18ad86[0x2]:_0x18ad86[0x3],'authorId':_0x18ad86[_0x1a12('0xa2')]<0x5?_0x18ad86[0x3]:_0x18ad86[0x4],'markerCount':0x6==_0x18ad86[_0x1a12('0xa2')]?_0x18ad86[0x5]:null};}function _0x27afa7(_0x2adeaf){for(let _0x38e902=0x0;_0x38e902<_0x54aa03[_0x1a12('0xa2')];_0x38e902++){if(_0x2adeaf['isAdded']&&'insertion'==_0x54aa03[_0x38e902]['type'])return _0x2adeaf[_0x1a12('0x8c')]=_0x54aa03[_0x38e902],void delete _0x2adeaf[_0x1a12('0x103')];if(!_0x2adeaf[_0x1a12('0x103')]&&!_0x2adeaf[_0x1a12('0x56')]&&'deletion'==_0x54aa03[_0x38e902][_0x1a12('0x10')])return void(_0x2adeaf[_0x1a12('0x0')]=_0x54aa03[_0x38e902]);}}}[_0x1a12('0x99')](_0x5edd38,_0xd56a5d){let _0x368ec0=0x0,_0x4d6937=!0x1;const _0x4f7188=new Map();for(const _0x2ff5d9 of _0x5edd38)_0x2ff5d9[_0xd56a5d]?_0x4d6937&&(_0x368ec0++,_0x4d6937=!0x1):(_0x368ec0++,_0x4d6937=!0x0),_0x4f7188[_0x1a12('0x20')](_0x2ff5d9['id'],_0x368ec0);for(let _0x178745=0x0;_0x178745<_0x5edd38[_0x1a12('0xa2')];_0x178745++){if(_0x1a12('0x56')==_0xd56a5d&&_0x5edd38[_0x178745]['isAdded']||_0x1a12('0x103')==_0xd56a5d&&_0x5edd38[_0x178745]['isRemoved'])continue;if(_0x1a12('0x9c')==_0x5edd38[_0x178745]['type']){_0x5edd38[_0x178745][_0x1a12('0x6f')]=0x0;continue;}const _0x177a27=_0x4f7188[_0x1a12('0xf4')](_0x5edd38[_0x178745][_0x1a12('0xec')]),_0x414bdc=_0x4f7188[_0x1a12('0xf4')](_0x5edd38[_0x178745]['id']);_0x5edd38[_0x178745][_0x1a12('0x6f')]=_0x177a27-_0x414bdc;}}[_0x1a12('0xd8')](_0x5a3aa0,_0x321383,_0x53672e=!0x1){const _0x3ead06=[];let _0x464444=this['repository']['getIndex'](_0x5a3aa0),_0x3f625b=this['repository'][_0x1a12('0xaa')](_0x321383);for(-0x1==_0x3f625b&&(_0x3f625b=this[_0x1a12('0x95')]['_revisions'][_0x1a12('0xa2')],_0x53672e=!0x1);_0x464444<_0x3f625b;)_0x3ead06[_0x1a12('0x60')](this['repository'][_0x1a12('0x7a')](_0x464444)),_0x464444++;return _0x53672e&&_0x3ead06[_0x1a12('0x60')](this[_0x1a12('0x95')]['getRevision'](_0x464444)),_0x3ead06;}[_0x1a12('0x6c')](_0x5fb285,_0x15d242,_0x271c8e,_0x58aa3a){const _0x408b4e=this[_0x1a12('0x101')][_0x1a12('0xa3')][_0x1a12('0xea')];let _0x5cfd6d=_0x15d242;for(;_0x5fb285[_0x5cfd6d]&&_0x5fb285[_0x5cfd6d][_0x1a12('0x103')];)_0x5cfd6d++;let _0x3801f0=_0x58aa3a;for(;_0x271c8e[_0x3801f0]&&_0x271c8e[_0x3801f0][_0x1a12('0x56')];)_0x3801f0++;_0x38aba7(_0x5fb285,_0x15d242,_0x5cfd6d),_0x38aba7(_0x271c8e,_0x58aa3a,_0x3801f0);const _0x1287c6=_0x271c8e[_0x1a12('0xe6')](_0x58aa3a,_0x3801f0)[_0x1a12('0x15')](_0x5fb285['slice'](_0x15d242,_0x5cfd6d));return _0x1287c6[_0x1a12('0x1c')]((_0x2ef5f0,_0xb81618)=>_0x2ef5f0[_0x1a12('0x4f')]!=_0xb81618[_0x1a12('0x4f')]?_0x2ef5f0['side']-_0xb81618[_0x1a12('0x4f')]:_0x2ef5f0[_0x1a12('0x7')]!=_0xb81618[_0x1a12('0x7')]?_0x2ef5f0[_0x1a12('0x7')]-_0xb81618[_0x1a12('0x7')]:_0x2ef5f0[_0x1a12('0x6f')]!=_0xb81618['distance']?_0xb81618[_0x1a12('0x6f')]-_0x2ef5f0[_0x1a12('0x6f')]:!!_0x2ef5f0['isAdded']!=!!_0xb81618['isAdded']?-0x1==_0x2ef5f0['side']||0x0==_0x2ef5f0[_0x1a12('0x4f')]?_0x2ef5f0[_0x1a12('0x103')]?-0x1:0x1:_0x2ef5f0[_0x1a12('0x103')]?0x1:-0x1:_0x2ef5f0[_0x1a12('0x8')]-_0xb81618['index']),{'commonTape':_0x1287c6,'iEnd':_0x5cfd6d,'jEnd':_0x3801f0};function _0x38aba7(_0x35bb8f,_0x33b3f0,_0x1b3ac0){let _0x238e6e=-0x1,_0xec6ad6=Number[_0x1a12('0x52')],_0x1b8139=!0x0;for(let _0x284051=_0x33b3f0;_0x284051<_0x1b3ac0;_0x284051++)if(_0x408b4e[_0x1a12('0x109')](_0x35bb8f[_0x284051][_0x1a12('0xb3')])||(_0x1b8139=!0x1),_0x35bb8f[_0x284051]['item']['startIndex']<_0x33b3f0&&(_0x238e6e=_0x284051),_0x35bb8f[_0x284051][_0x1a12('0xb3')][_0x1a12('0x53')]>=_0x1b3ac0){_0xec6ad6=_0x284051;break;}_0x1b8139&&(_0x238e6e=_0x1b3ac0-0x1);for(let _0x2a9a28=_0x33b3f0;_0x2a9a28<_0x1b3ac0;_0x2a9a28++)_0x35bb8f[_0x2a9a28][_0x1a12('0x4f')]=_0x2a9a28<=_0x238e6e?-0x1:_0x2a9a28<_0xec6ad6?0x0:0x1,_0x35bb8f[_0x2a9a28][_0x1a12('0x8')]=_0x2a9a28;let _0x2babf4=0x0;for(let _0x1d6664=_0x33b3f0;_0x1d6664<=_0x238e6e;_0x1d6664++)0x0==_0x35bb8f[_0x1d6664][_0x1a12('0x6f')]?_0x35bb8f[_0x1d6664][_0x1a12('0x7')]=_0x2babf4:(_0x2babf4++,_0x35bb8f[_0x1d6664][_0x1a12('0x7')]=_0x2babf4,_0x2babf4++);for(let _0x450552=_0x33b3f0;_0x450552<_0x1b3ac0;_0x450552++)0x0==_0x35bb8f[_0x450552]['side']&&(_0x35bb8f[_0x450552][_0x1a12('0x7')]=_0x2babf4);_0x2babf4=0x0;for(let _0x283538=_0x1b3ac0-0x1;_0x283538>=_0xec6ad6;_0x283538--)0x0==_0x35bb8f[_0x283538][_0x1a12('0x6f')]?_0x35bb8f[_0x283538]['level']=_0x2babf4:(_0x2babf4--,_0x35bb8f[_0x283538][_0x1a12('0x7')]=_0x2babf4,_0x2babf4--);}}['_fixObsoleteTags'](_0x410277){const _0x1ca9d5=new Map(),_0x5e496e=this[_0x1a12('0x101')][_0x1a12('0xa3')][_0x1a12('0xea')];for(let _0xeea559=0x1;_0xeea559<_0x410277[_0x1a12('0xa2')];_0xeea559++){let _0x498a24,_0x1714a3,_0x1e3d9a;const _0x57d41f=_0x410277[_0xeea559],_0x533242=_0x410277[_0xeea559-0x1];if(_0x1a12('0x9c')==_0x57d41f[_0x1a12('0x10')])continue;if(_0x57d41f[_0x1a12('0x10')]!=_0x533242[_0x1a12('0x10')])continue;if(!_0x5e496e[_0x1a12('0xce')](_0x533242[_0x1a12('0xb3')])||_0x5e496e[_0x1a12('0x40')](_0x533242[_0x1a12('0xb3')]))continue;if(!_0x5e496e['isBlock'](_0x57d41f[_0x1a12('0xb3')])||_0x5e496e[_0x1a12('0x40')](_0x57d41f[_0x1a12('0xb3')]))continue;if((_0x410277[_0xeea559]['isAdded']||_0x410277[_0xeea559][_0x1a12('0x8c')])&&_0x410277[_0xeea559-0x1]['isRemoved'])_0x498a24=_0x410277[_0xeea559],_0x1714a3=_0x410277[_0xeea559-0x1],_0x1e3d9a=_0xeea559-0x1;else{if(!_0x410277[_0xeea559][_0x1a12('0x56')]||!_0x410277[_0xeea559-0x1]['isAdded']&&!_0x410277[_0xeea559-0x1][_0x1a12('0x8c')])continue;_0x498a24=_0x410277[_0xeea559-0x1],_0x1714a3=_0x410277[_0xeea559],_0x1e3d9a=_0xeea559;}const _0x3d1124=_0x498a24[_0x1a12('0x7')]==_0x1714a3[_0x1a12('0x7')],_0x315b69=Math[_0x1a12('0x9e')](_0x498a24[_0x1a12('0x7')])<Math[_0x1a12('0x9e')](_0x1714a3[_0x1a12('0x7')])&&0x0==_0x1714a3[_0x1a12('0x6f')];(_0x3d1124||_0x315b69)&&(_0x1ca9d5[_0x1a12('0x20')](_0x1714a3['id'],_0x498a24['id']),_0x410277[_0x1a12('0xeb')](_0x1e3d9a,0x1),_0xeea559--,_0x498a24['isAdded']=!0x1);}for(let _0x27c3d2=0x0;_0x27c3d2<_0x410277['length'];_0x27c3d2++)_0x1ca9d5[_0x1a12('0xd2')](_0x410277[_0x27c3d2][_0x1a12('0xec')])&&(_0x410277[_0x27c3d2][_0x1a12('0xec')]=_0x1ca9d5[_0x1a12('0xf4')](_0x410277[_0x27c3d2]['pairId']));}[_0x1a12('0x114')](_0x12495c){const _0x4cb78d=new Set(_0x12495c['map'](_0x1bc9b4=>_0x1bc9b4['id']));for(let _0x3d9ace=0x0;_0x3d9ace<_0x12495c[_0x1a12('0xa2')];_0x3d9ace++)_0x4cb78d[_0x1a12('0xd2')](_0x12495c[_0x3d9ace][_0x1a12('0xec')])||0x0==_0x12495c[_0x3d9ace][_0x1a12('0x6f')]||(_0x12495c[_0x3d9ace][_0x1a12('0x63')]=!0x0);return _0x12495c[_0x1a12('0x96')](_0x589d56=>!_0x589d56[_0x1a12('0x63')]);}['_markMismatchedRemovedTags'](_0xf88952){const _0x212f89=new Set();for(let _0x385c7f=0x0;_0x385c7f<_0xf88952[_0x1a12('0xa2')];_0x385c7f++){if(_0x212f89[_0x1a12('0xd2')](_0xf88952[_0x385c7f]['id'])&&_0xf88952[_0x385c7f][_0x1a12('0x56')]&&(_0xf88952[_0x385c7f][_0x1a12('0x63')]=!0x0),_0xf88952[_0x385c7f][_0x1a12('0x63')])continue;if(0x0==_0xf88952[_0x385c7f][_0x1a12('0x6f')])continue;if(_0x1a12('0x1b')!=_0xf88952[_0x385c7f][_0x1a12('0x10')])continue;if(null==_0xf88952[_0x385c7f]['pairId'])continue;let _0x23c799=_0x385c7f+0x1,_0x34c7d0=0x0;for(;_0xf88952[_0x23c799]['id']!=_0xf88952[_0x385c7f]['pairId'];)_0x1a12('0x1b')==_0xf88952[_0x23c799]['type']?_0x34c7d0++:_0x1a12('0x30')==_0xf88952[_0x23c799]['type']&&_0x34c7d0--,_0x23c799++;if(0x0!=_0x34c7d0){if(_0xf88952[_0x385c7f][_0x1a12('0x56')])_0xf88952[_0x385c7f][_0x1a12('0x63')]=!0x0;else for(;_0x23c799!=_0x385c7f;)_0xf88952[_0x23c799][_0x1a12('0x56')]&&0x0!=_0xf88952[_0x23c799][_0x1a12('0x6f')]&&(_0xf88952[_0x23c799][_0x1a12('0x63')]=!0x0,_0x212f89[_0x1a12('0xbf')](_0xf88952[_0x23c799][_0x1a12('0xec')])),_0x23c799--;}}return _0xf88952['filter'](_0x5369a3=>!_0x5369a3[_0x1a12('0x63')]);}['_removeUnsupportedChanges'](_0x46b323){const _0xb9db3d=this['editor'][_0x1a12('0xa3')]['schema'];for(let _0x351016=0x0;_0x351016<_0x46b323[_0x1a12('0xa2')];_0x351016++){if(!(_0x46b323[_0x351016]['isAdded']||_0x46b323[_0x351016][_0x1a12('0x8c')]||_0x46b323[_0x351016][_0x1a12('0x56')]||_0x46b323[_0x351016]['isRemoveSuggestion']))continue;if(0x0==_0x46b323[_0x351016][_0x1a12('0x6f')])continue;const _0x133e0f=_0x46b323[_0x351016][_0x1a12('0xb3')];_0xb9db3d[_0x1a12('0xce')](_0x133e0f)||_0xb9db3d[_0x1a12('0x40')](_0x133e0f)||(_0x46b323[_0x351016][_0x1a12('0x103')]&&delete _0x46b323[_0x351016]['isAdded'],_0x46b323[_0x351016][_0x1a12('0x8c')]&&delete _0x46b323[_0x351016][_0x1a12('0x8c')],_0x46b323[_0x351016][_0x1a12('0x0')]&&delete _0x46b323[_0x351016][_0x1a12('0x0')],_0x46b323[_0x351016][_0x1a12('0x56')]&&(_0x46b323[_0x351016][_0x1a12('0x63')]=!0x0));}return _0x46b323[_0x1a12('0x96')](_0x16f2ab=>!_0x16f2ab[_0x1a12('0x63')]);}[_0x1a12('0xe8')](_0x6dd221,_0x3adeca,_0x40f9e7){const _0x5e638d=new _0x39a483(),_0x137e64=[],_0x51f0fa=new Map(),_0x4e48d8=this['editor'][_0x1a12('0xa3')],_0x23f6cf=_0x4e48d8[_0x1a12('0xea')],_0x1a385f=[_0x5e638d],_0x4ce115={},_0x30b171={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4ab238=null;const _0xbd47d9=[0x0];for(let _0x59abb5=0x0;_0x59abb5<_0x6dd221[_0x1a12('0xa2')];_0x59abb5++){let _0x13f915,_0x5ed8fd;if(_0x1a12('0x1b')===_0x6dd221[_0x59abb5][_0x1a12('0x10')]){_0x13f915=_0x4e48d8[_0x1a12('0x82')](_0x5e638d,_0xbd47d9);const _0x26e5c0=new _0x5ba4f1(_0x6dd221[_0x59abb5]['item'][_0x1a12('0xb')],_0x6dd221[_0x59abb5][_0x1a12('0xb3')]['getAttributes']());_0x1a385f[0x0]['_appendChild'](_0x26e5c0),_0xbd47d9['push'](0x0),_0x1a385f[_0x1a12('0x3f')](_0x26e5c0),_0x5ed8fd=_0x4e48d8['createPositionFromPath'](_0x5e638d,_0xbd47d9),_0x4ab238=null;}else{if('elementEnd'===_0x6dd221[_0x59abb5][_0x1a12('0x10')])_0x1a385f['shift'](),_0x13f915=_0x4e48d8['createPositionFromPath'](_0x5e638d,_0xbd47d9),_0xbd47d9[_0x1a12('0x85')](),_0xbd47d9[_0xbd47d9[_0x1a12('0xa2')]-0x1]++,_0x5ed8fd=_0x4e48d8['createPositionFromPath'](_0x5e638d,_0xbd47d9),_0x4ab238=null;else{if(_0x13f915=_0x4e48d8[_0x1a12('0x82')](_0x5e638d,_0xbd47d9),_0x4ab238&&_0x1565dd(_0x4ab238,_0x6dd221[_0x59abb5][_0x1a12('0xb3')]))_0x4ab238[_0x1a12('0x10e')]+=_0x6dd221[_0x59abb5][_0x1a12('0xb3')][_0x1a12('0xdb')];else{const _0x320c1a=new _0x349258(_0x6dd221[_0x59abb5][_0x1a12('0xb3')][_0x1a12('0xdb')],_0x6dd221[_0x59abb5][_0x1a12('0xb3')][_0x1a12('0x10d')]());_0x1a385f[0x0][_0x1a12('0x75')](_0x320c1a),_0x4ab238=_0x320c1a;}_0xbd47d9[_0xbd47d9[_0x1a12('0xa2')]-0x1]+=_0x6dd221[_0x59abb5][_0x1a12('0xb3')][_0x1a12('0x4a')],_0x5ed8fd=_0x4e48d8[_0x1a12('0x82')](_0x5e638d,_0xbd47d9);}}for(const _0xc7e5c of _0x6dd221[_0x59abb5]['markersStart'])_0x51f0fa[_0x1a12('0x20')](_0xc7e5c,{'start':_0x13f915,'end':null});_0x293a5a(_0x1a12('0x0'),_0x59abb5,_0x13f915,_0x5ed8fd),_0x293a5a(_0x1a12('0x8c'),_0x59abb5,_0x13f915,_0x5ed8fd),_0x293a5a(_0x1a12('0x56'),_0x59abb5,_0x13f915,_0x5ed8fd),_0x293a5a(_0x1a12('0x103'),_0x59abb5,_0x13f915,_0x5ed8fd);for(const _0x327fe4 of _0x6dd221[_0x59abb5]['markersEnd']){_0x51f0fa[_0x1a12('0xf4')](_0x327fe4)[_0x1a12('0x50')]=_0x5ed8fd;}}for(const [_0x5b46cc,_0xafa05f]of _0x51f0fa){const _0x12a63e=this['editor'][_0x1a12('0xa3')][_0x1a12('0x24')](_0xafa05f['start'],_0xafa05f[_0x1a12('0x50')]);_0x5e638d['markers'][_0x1a12('0x20')](_0x5b46cc,_0x12a63e);}return _0x137e64[_0x1a12('0x1c')]((_0x467500,_0x5a34ae)=>{const _0x37b038=_0x5e638d[_0x1a12('0x6a')][_0x1a12('0xf4')](_0x1a12('0xc9')+_0x467500['id']),_0x6464c=_0x5e638d[_0x1a12('0x6a')][_0x1a12('0xf4')]('revision:'+_0x5a34ae['id']);return _0x37b038[_0x1a12('0xe')]['isBefore'](_0x6464c[_0x1a12('0xe')])?-0x1:_0x37b038[_0x1a12('0xe')][_0x1a12('0x2')](_0x6464c[_0x1a12('0xe')])?0x1:_0x37b038['end'][_0x1a12('0x108')](_0x6464c[_0x1a12('0x50')])?-0x1:_0x37b038[_0x1a12('0x50')][_0x1a12('0x2')](_0x6464c[_0x1a12('0x50')])?0x1:'add'===_0x467500[_0x1a12('0x10')]?-0x1:0x1;}),{'root':_0x5e638d,'changes':_0x137e64};function _0x293a5a(_0xa97983,_0x350902,_0x310ab4,_0x3fbb4){const _0x4eac0f=!!_0x6dd221[_0x350902][_0xa97983],_0x1de942=_0x4eac0f?_0x6dd221[_0x350902][_0xa97983][_0x1a12('0x1')]:null,_0x58ef56=_0x350902===_0x6dd221['length']-0x1,_0x1b94f2=_0x30b171[_0xa97983][0x0],_0x5519cf=_0x23f6cf[_0x1a12('0x48')](_0x6dd221[_0x350902][_0x1a12('0xb3')]);!_0x4ce115[_0xa97983]&&_0x4eac0f?_0x4ce115[_0xa97983]={'start':_0x310ab4,'tapeItem':_0x6dd221[_0x350902],'userId':_0x1de942,'type':_0xa97983}:_0x4ce115[_0xa97983]&&!_0x4eac0f?(_0x4ce115[_0xa97983][_0x1a12('0x50')]=_0x310ab4,_0x3c8dea(_0x4ce115[_0xa97983]),_0x4ce115[_0xa97983]=null):_0x4ce115[_0xa97983]&&_0x4eac0f&&_0x4ce115[_0xa97983][_0x1a12('0x1')]!==_0x1de942&&(_0x4ce115[_0xa97983][_0x1a12('0x50')]=_0x310ab4,_0x1b94f2&&_0x1b94f2[_0x1a12('0x1')]===_0x4ce115[_0xa97983][_0x1a12('0x1')]||_0x3c8dea(_0x4ce115[_0xa97983]),_0x4ce115[_0xa97983]={'start':_0x310ab4,'tapeItem':_0x6dd221[_0x350902],'userId':_0x1de942,'type':_0xa97983}),_0x4ce115[_0xa97983]&&_0x5519cf&&(_0x1a12('0x1b')!==_0x6dd221[_0x350902]['type']||_0x1b94f2&&_0x1b94f2['userId']===_0x1de942||_0x30b171[_0xa97983][_0x1a12('0x3f')]({'userId':_0x1de942,'object':_0x6dd221[_0x350902][_0x1a12('0xb3')],'change':_0x4ce115[_0xa97983]}),'elementEnd'===_0x6dd221[_0x350902]['type']&&_0x1b94f2&&_0x1b94f2['object']===_0x6dd221[_0x350902]['item']&&(_0x30b171[_0xa97983][_0x1a12('0xe0')](),_0x4ce115[_0xa97983]=_0x1b94f2[_0x1a12('0x66')])),_0x4ce115[_0xa97983]&&_0x58ef56&&(_0x4ce115[_0xa97983][_0x1a12('0x50')]=_0x3fbb4,_0x3c8dea(_0x4ce115[_0xa97983]),_0x4ce115[_0xa97983]=null);}function _0x3c8dea({start:_0x15c211,end:_0x3de60b,tapeItem:_0x44bb2e,userId:_0x7aca9b,type:_0x5874bc}){const _0x5be0e4=_0x44bb2e['item'],_0x5e66ab=_0x4e48d8[_0x1a12('0xea')]['isBlock'](_0x5be0e4)&&!_0x4e48d8[_0x1a12('0xea')][_0x1a12('0x40')](_0x5be0e4),_0x3deab9=_0x15c211['nodeAfter']==_0x3de60b[_0x1a12('0x83')]&&_0x3de60b['isAtStart'];if(_0x5e66ab&&_0x3deab9)return;const _0x13a829=_0x4e48d8[_0x1a12('0x24')](_0x15c211,_0x3de60b),_0x5f02ee=_0x3adeca[_0x1a12('0xf4')](_0x7aca9b),_0x3eb5d0=new _0xb8debd({'author':_0x5f02ee,'type':_0x1a12('0x103')==_0x5874bc||_0x1a12('0x8c')==_0x5874bc?'add':_0x1a12('0xf'),'data':{'isSuggestion':_0x1a12('0x8c')==_0x5874bc||'isRemoveSuggestion'==_0x5874bc},'createdAt':new Date(),'rootName':_0x40f9e7});_0x137e64['push'](_0x3eb5d0),_0x5e638d[_0x1a12('0x6a')][_0x1a12('0x20')](_0x1a12('0xc9')+_0x3eb5d0['id'],_0x13a829);}function _0x1565dd(_0x4ab141,_0x362786){const _0x502805=_0x4ab141[_0x1a12('0x10d')](),_0xdcc8e4=_0x362786[_0x1a12('0x10d')]();for(const _0x4cc2ff of _0x502805){if(_0x4cc2ff[0x1]!==_0x362786['getAttribute'](_0x4cc2ff[0x0]))return!0x1;_0xdcc8e4[_0x1a12('0x28')]();}return _0xdcc8e4[_0x1a12('0x28')]()['done'];}}[_0x1a12('0x41')](){this[_0x1a12('0x101')][_0x1a12('0x5b')][_0x1a12('0x2e')](_0x1a12('0x9d'))[_0x1a12('0xf1')]({'view':_0x1a12('0xc5')}),this[_0x1a12('0x101')][_0x1a12('0x5b')][_0x1a12('0x2e')](_0x1a12('0x6d'))[_0x1a12('0xd4')]({'model':'revision','view':_0xeafc59=>{const _0x3527f8=_0xeafc59[_0x1a12('0xe1')]['split'](':')[0x1],_0xfff582=this[_0x1a12('0x34')](_0x3527f8);if(!_0xfff582)return null;const _0x1353f='add'==_0xfff582[_0x1a12('0x10')]?_0x1a12('0xd'):'deletion',_0x17e291=[_0x1a12('0xf3'),_0x1a12('0x102')+_0x1353f];return _0xfff582[_0x1a12('0xdb')][_0x1a12('0x55')]&&_0x17e291['push'](_0x1a12('0x102')+_0x1353f+_0x1a12('0x57')),this[_0x1a12('0xcc')]==_0xfff582&&_0x17e291['push']('ck-suggestion-marker--active'),{'classes':_0x17e291,'attributes':{'data-change-id':_0x3527f8}};}}),this[_0x1a12('0x101')][_0x1a12('0x5b')][_0x1a12('0x2e')]('upcast')[_0x1a12('0xbf')](_0xd04920=>{_0xd04920['on']('element:pre',(_0x4b36e2,_0x21f7c1,_0x356d1b)=>{const _0x530dcf=_0x21f7c1[_0x1a12('0x27')]['getChild'](0x0);if(!_0x530dcf||!_0x530dcf['is'](_0x1a12('0xb8'),_0x1a12('0x64')))return;if(!_0x356d1b[_0x1a12('0xff')][_0x1a12('0xef')](_0x530dcf,{'attributes':[_0x1a12('0x92'),_0x1a12('0x5f')]}))return;const _0x35abdd=_0x21f7c1[_0x1a12('0x3')][_0x1a12('0xe')]['nodeAfter'];_0x356d1b[_0x1a12('0xd5')][_0x1a12('0x5a')]('vid_start',_0x530dcf[_0x1a12('0x97')]('vid_start'),_0x35abdd),_0x356d1b[_0x1a12('0xd5')][_0x1a12('0x5a')](_0x1a12('0x5f'),_0x530dcf['getAttribute'](_0x1a12('0x5f')),_0x35abdd);},{'priority':_0x1a12('0x9a')});}),this[_0x1a12('0x101')][_0x1a12('0x5b')][_0x1a12('0x2e')](_0x1a12('0x9d'))[_0x1a12('0xbf')](_0x219a73=>{_0x219a73['on']('element',(_0x4d6255,_0x2e89e2,_0x362fcb)=>{if(!_0x362fcb['consumable']['consume'](_0x2e89e2[_0x1a12('0x27')],{'attributes':['vid_start','vid_end']}))return;if(_0x2e89e2[_0x1a12('0x3')][_0x1a12('0x1f')])return;const _0x1f7444=_0x2e89e2[_0x1a12('0x3')][_0x1a12('0xe')][_0x1a12('0xee')];_0x1f7444[_0x1a12('0x86')](_0x1a12('0x92'))||_0x1f7444[_0x1a12('0x86')]('vid')||(_0x362fcb[_0x1a12('0xd5')]['setAttribute'](_0x1a12('0x92'),_0x2e89e2['viewItem'][_0x1a12('0x97')]('vid_start'),_0x1f7444),_0x362fcb['writer'][_0x1a12('0x5a')](_0x1a12('0x5f'),_0x2e89e2[_0x1a12('0x27')][_0x1a12('0x97')](_0x1a12('0x5f')),_0x1f7444));},{'priority':_0x1a12('0x9a')});}),this[_0x1a12('0x101')]['conversion'][_0x1a12('0x2e')](_0x1a12('0x9d'))['elementToAttribute']({'view':{'name':_0x1a12('0x3a'),'attributes':{'vid':!0x0}},'model':{'key':_0x1a12('0x51'),'value':_0x2f3cf6=>_0x2f3cf6[_0x1a12('0x97')](_0x1a12('0x51'))}}),this[_0x1a12('0x101')][_0x1a12('0xa3')]['schema']['on']('checkAttribute',(_0x228ae2,[,_0x3a72b8])=>{['vid_start',_0x1a12('0x5f'),_0x1a12('0x51')][_0x1a12('0x2a')](_0x3a72b8)&&(_0x228ae2[_0x1a12('0xf6')]=!0x0,_0x228ae2[_0x1a12('0x106')]());},{'priority':'highest'}),this[_0x1a12('0x101')][_0x1a12('0x5b')][_0x1a12('0x2e')](_0x1a12('0xab'))['add'](_0x4a651e=>{_0x4a651e['on']('attribute:vid',(_0xea1b6e,_0xda2d6d,_0x75122c)=>{if('\x20'!=_0xda2d6d[_0x1a12('0xb3')]['data']||_0xda2d6d[_0x1a12('0xb3')][_0x1a12('0x83')]['maxOffset']>0x1)return;if(!_0x75122c[_0x1a12('0xff')][_0x1a12('0xef')](_0xda2d6d[_0x1a12('0xb3')],_0xea1b6e[_0x1a12('0xb')]))return;const _0x37edef=_0x75122c[_0x1a12('0xd5')],_0x338550=_0x75122c['mapper'][_0x1a12('0x88')](_0xda2d6d[_0x1a12('0x9f')]);_0x37edef[_0x1a12('0x43')](_0x338550,_0x37edef['createAttributeElement'](_0x1a12('0x3a')));});}),this[_0x1a12('0x101')][_0x1a12('0x5b')][_0x1a12('0x2e')](_0x1a12('0xab'))[_0x1a12('0x47')]({'model':_0x1a12('0xc5')}),this[_0x1a12('0x101')][_0x1a12('0x6')]['downcastDispatcher']['on'](_0x1a12('0xba'),function(_0x401bc1){const _0x1c690d=_0x401bc1['plugins'][_0x1a12('0xf4')]('RevisionViewer');return(_0xe3207e,_0x141584,_0x22aee9)=>{const _0x1e65ad=_0x141584[_0x1a12('0xe1')][_0x1a12('0xf8')](':')[0x1],_0x202657=_0x1c690d[_0x1a12('0x34')](_0x1e65ad);if(!_0x202657)return null;const _0x3f74fb=_0x1a12('0xbf')==_0x202657[_0x1a12('0x10')]?'split':_0x1a12('0xa1');if(!_0x22aee9[_0x1a12('0xff')][_0x1a12('0x6b')](_0x141584[_0x1a12('0xc1')],_0xe3207e['name']))return;const _0x5e3d79=_0x141584[_0x1a12('0xc1')]['getWalker'](),_0x2c325c=_0x141584[_0x1a12('0xc1')][_0x1a12('0xe')],_0x428c3e=_0x401bc1[_0x1a12('0xa3')]['schema'];let _0x1085c8=null,_0x3ab017=null,_0xe9c08c=!0x1,_0x19057d=!0x1;for(const _0x16c0ae of _0x5e3d79){const _0x3f540b=_0x16c0ae['item'];_0xe9c08c=_0xe9c08c||_0x428c3e[_0x1a12('0xad')](_0x3f540b);const _0x476bbe=_0x22aee9['mapper'][_0x1a12('0x7e')](_0x3f540b);if(_0x476bbe&&_0x476bbe[_0x1a12('0xb0')]('addHighlight'))return;_0x1a12('0x30')==_0x16c0ae[_0x1a12('0x10')]&&(_0x428c3e[_0x1a12('0xce')](_0x3f540b)&&!_0x428c3e[_0x1a12('0x40')](_0x3f540b)&&(_0x3f540b[_0x1a12('0xc4')]||_0x2c325c['isAtEnd']?_0x1085c8&&_0x1085c8[_0x1a12('0x83')]==_0x3f540b||(_0x1085c8=_0x3f540b,_0x536f97(_0x16c0ae['previousPosition']),_0x19057d=!0x0):_0x3ab017=_0x3ab017||_0x16c0ae[_0x1a12('0x5')]));}function _0x536f97(_0x284a40){const _0x554f0=_0x22aee9[_0x1a12('0xd5')][_0x1a12('0x25')](_0x1a12('0x3a'),{'class':_0x1a12('0x102')+_0x3f74fb}),_0x2b6ee3=_0x22aee9[_0x1a12('0xd6')][_0x1a12('0xc3')](_0x284a40);_0x202657['data'][_0x1a12('0x55')]&&_0x22aee9['writer'][_0x1a12('0xe4')](_0x1a12('0x102')+_0x3f74fb+_0x1a12('0x57'),_0x554f0),_0x1c690d[_0x1a12('0xcc')]==_0x202657&&_0x22aee9[_0x1a12('0xd5')][_0x1a12('0xe4')](_0x1a12('0x10a'),_0x554f0),_0x22aee9[_0x1a12('0xd5')][_0x1a12('0x70')](_0x2b6ee3,_0x554f0),_0x22aee9[_0x1a12('0xd6')]['bindElementToMarker'](_0x554f0,_0x141584[_0x1a12('0xe1')]);}_0xe9c08c||_0x19057d||!_0x3ab017||_0x536f97(_0x3ab017);};}(this[_0x1a12('0x101')]),{'priority':'high'}),this['editor'][_0x1a12('0x6')]['downcastDispatcher']['on']('removeMarker:revision',(_0xaeaa4d,_0xaa6be,_0x3bc941)=>{const _0x25dc64=_0x3bc941[_0x1a12('0xd6')][_0x1a12('0x7f')](_0xaa6be[_0x1a12('0xe1')]);if(_0x25dc64)for(const _0x1c2d53 of _0x25dc64)(_0x1c2d53[_0x1a12('0x2c')](_0x1a12('0x42'))||_0x1c2d53[_0x1a12('0x2c')](_0x1a12('0x17')))&&(_0x3bc941[_0x1a12('0xd6')][_0x1a12('0xb5')](_0x1c2d53,_0xaa6be['markerName']),_0x3bc941['writer']['remove'](_0x1c2d53));},{'priority':_0x1a12('0x5e')}),this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x84')]['on'](_0x1a12('0xba'),(_0xd70def,_0x4253eb,_0x12dcd8)=>{const _0x18a551=_0x4253eb[_0x1a12('0xe1')][_0x1a12('0xf8')](':')[0x1],_0x9524bc=this['_getChangeFromId'](_0x18a551);if(!_0x9524bc)return null;const _0x1ee267=_0x1a12('0xbf')==_0x9524bc[_0x1a12('0x10')]?_0x1a12('0xf8'):'merge';if(_0x12dcd8[_0x1a12('0xff')]['test'](_0x4253eb[_0x1a12('0xc1')],_0xd70def[_0x1a12('0xb')]))for(const _0x5ef114 of _0x4253eb[_0x1a12('0xc1')]['getItems']()){if(!_0x5ef114['is'](_0x1a12('0xb8'),'softBreak'))continue;const _0x301439=_0x12dcd8[_0x1a12('0xd5')][_0x1a12('0x25')](_0x1a12('0x3a'),{'class':_0x1a12('0x102')+_0x1ee267}),_0x2613d1=_0x12dcd8[_0x1a12('0xd6')][_0x1a12('0xc3')](this['editor'][_0x1a12('0xa3')][_0x1a12('0xc8')](_0x5ef114));_0x9524bc[_0x1a12('0xdb')]['isSuggestion']&&_0x12dcd8[_0x1a12('0xd5')][_0x1a12('0xe4')](_0x1a12('0x102')+_0x1ee267+_0x1a12('0x57'),_0x301439),this[_0x1a12('0xcc')]==_0x9524bc&&_0x12dcd8[_0x1a12('0xd5')][_0x1a12('0xe4')](_0x1a12('0x10a'),_0x301439),_0x12dcd8[_0x1a12('0xd5')][_0x1a12('0x70')](_0x2613d1,_0x301439),_0x12dcd8[_0x1a12('0xd6')][_0x1a12('0x94')](_0x301439,_0x4253eb[_0x1a12('0xe1')]);}},{'priority':'high'}),this[_0x1a12('0x101')][_0x1a12('0xa3')][_0x1a12('0x45')]['on'](_0x1a12('0x66'),()=>{this['editor']['editing']['view'][_0x1a12('0x66')](_0x1900ba=>{for(const _0x137222 of this[_0x1a12('0x101')]['model'][_0x1a12('0x45')][_0x1a12('0x8f')]()){const _0x1ac8e4=this[_0x1a12('0x101')][_0x1a12('0xa3')]['document'][_0x1a12('0x3c')](_0x137222),_0xcc01e3=this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x10c')]['document'][_0x1a12('0x3c')](_0x137222);if(_0xcc01e3){const _0x3bcdc2=_0x1ac8e4[_0x1a12('0x97')](_0x1a12('0x38'));if(_0x1900ba[_0x1a12('0x36')](_0x1a12('0x12'),_0xcc01e3),_0x1900ba['removeClass'](_0x1a12('0xcd'),_0xcc01e3),_0x1900ba[_0x1a12('0xdc')](_0x1a12('0x79'),_0xcc01e3),_0x1900ba[_0x1a12('0xdc')](_0x1a12('0xda'),_0xcc01e3),_0x3bcdc2){const _0x248520=this[_0x1a12('0x34')](_0x3bcdc2);if(!_0x248520)return null;_0x1900ba[_0x1a12('0x5a')]('data-change-id',_0x3bcdc2,_0xcc01e3),_0x1900ba[_0x1a12('0xe4')](_0x1a12('0x62')+_0x248520[_0x1a12('0x10')],_0xcc01e3),this[_0x1a12('0xcc')]==_0x248520&&_0x1900ba[_0x1a12('0xe4')]('ck-revision-history-root--active',_0xcc01e3);}}}});}),this[_0x1a12('0x101')][_0x1a12('0x5b')][_0x1a12('0x2e')](_0x1a12('0x9d'))[_0x1a12('0xf1')]({'view':_0x1a12('0x4c'),'model':_0x545191=>_0x1a12('0xf5')+_0x545191,'converterPriority':'highest'}),this['editor'][_0x1a12('0x5b')][_0x1a12('0x2e')](_0x1a12('0x9d'))[_0x1a12('0xf1')]({'view':_0x1a12('0xf7'),'model':_0x2dde52=>_0x1a12('0x39')+_0x2dde52,'converterPriority':_0x1a12('0x9')}),this['editor'][_0x1a12('0x5b')]['for'](_0x1a12('0xab'))[_0x1a12('0x47')]({'model':'revision-suggestion','view':_0x398cd5=>({'name':_0x1a12('0x105')+_0x398cd5,'group':_0x1a12('0x89')}),'converterPriority':'highest'}),this['editor'][_0x1a12('0x5b')]['for'](_0x1a12('0x6d'))[_0x1a12('0xd4')]({'model':_0x1a12('0x89'),'view':_0x36cd9e=>{const _0x446ee4=_0x36cd9e[_0x1a12('0xe1')][_0x1a12('0xf8')](':')[0x1];return _0x1a12('0xd')!=_0x446ee4&&_0x1a12('0xb9')!=_0x446ee4?null:{'classes':[_0x1a12('0x1e'),_0x1a12('0xca')+_0x446ee4]};}}),this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x84')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x1a12('0x101')],_0x1a12('0xa1')),{'priority':_0x1a12('0x5e')}),this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x84')]['on'](_0x1a12('0x4'),et(this[_0x1a12('0x101')],_0x1a12('0xf8')),{'priority':_0x1a12('0x5e')}),this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x84')]['on'](_0x1a12('0xac'),(_0x316fcb,_0x3e2618,_0xf49af3)=>{const _0x2050e2=_0xf49af3['mapper'][_0x1a12('0x7f')](_0x3e2618[_0x1a12('0xe1')]);if(_0x2050e2)for(const _0x30aa51 of _0x2050e2)_0x30aa51['is'](_0x1a12('0x9b'))&&(_0xf49af3[_0x1a12('0xd6')][_0x1a12('0xb5')](_0x30aa51,_0x3e2618[_0x1a12('0xe1')]),_0xf49af3[_0x1a12('0xd5')][_0x1a12('0xf')](_0x30aa51));},{'priority':_0x1a12('0x5e')});}[_0x1a12('0x34')](_0x42852e){return this[_0x1a12('0xa4')]['get'](_0x42852e);}[_0x1a12('0x2b')](_0x3a33c1){return this[_0x1a12('0x65')]&&this[_0x1a12('0x65')]['destroy'](),this[_0x1a12('0x65')]=new _0x13f4d1(this['editor'][_0x1a12('0x16')],_0x3a33c1),this[_0x1a12('0x65')];}['_initInteractions'](){this[_0x1a12('0x101')][_0x1a12('0xa3')]['document'][_0x1a12('0x68')][_0x1a12('0x69')](_0x1a12('0xc5')),this['on'](_0x1a12('0x91'),(_0x319907,_0x1b4a46,_0x26678c,_0x1107e3)=>{_0x1107e3&&this['_balloon'][_0x1a12('0xf')](_0x1107e3),_0x26678c&&(this[_0x1a12('0x110')][_0x1a12('0xbf')]({'view':_0x26678c,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x289163=this['editor'][_0x1a12('0x6')],_0x5dc65c=this['_getChangeFromId'](_0x26678c[_0x1a12('0x32')]);let _0x1a5a4d;if(_0x5dc65c['data'][_0x1a12('0xa8')]){const _0x188c1f=_0x289163[_0x1a12('0x10c')][_0x1a12('0x8d')](_0x5dc65c[_0x1a12('0x87')]);_0x1a5a4d=Array[_0x1a12('0xa6')](_0x188c1f['getClientRects']());}else{const _0x401a14=this['editor'][_0x1a12('0xa3')][_0x1a12('0x6a')]['get']('revision:'+_0x26678c['changeId']);_0x1a5a4d=Array[_0x1a12('0xa6')](_0x289163[_0x1a12('0xd6')][_0x1a12('0x7f')](_0x401a14[_0x1a12('0xb')]))[_0x1a12('0x71')](_0x4383ea=>_0x289163[_0x1a12('0x10c')]['domConverter']['mapViewToDom'](_0x4383ea))['map'](_0x270254=>Array[_0x1a12('0xa6')](_0x270254[_0x1a12('0xbd')]()))['flat']();}if(!this['_activeViewTarget'])return _0x1a5a4d[0x0];return _0x1a5a4d['find'](_0x1ea07c=>_0x1ea07c[_0x1a12('0x7d')]-0x3<=this[_0x1a12('0x90')]['y']&&_0x1ea07c['bottom']+0x3>=this[_0x1a12('0x90')]['y']&&_0x1ea07c[_0x1a12('0xe3')]-0x3<=this[_0x1a12('0x90')]['x']&&_0x1ea07c[_0x1a12('0x8a')]+0x3>=this[_0x1a12('0x90')]['x'])||_0x1a5a4d[0x0];}}}),this[_0x1a12('0x110')]['showStack'](_0x1a12('0x2d')));}),this['on']('change:activeChange',(_0x26cb88,_0x35b30f,_0x145dcd,_0x27d4cd)=>{this[_0x1a12('0x113')]=_0x145dcd?this['_getViewForChange'](_0x145dcd):null,this[_0x1a12('0x101')][_0x1a12('0xa3')][_0x1a12('0x66')](()=>{const _0x33e8e3=this['editor'][_0x1a12('0x6')];_0x27d4cd&&(_0x27d4cd[_0x1a12('0xdb')][_0x1a12('0xa8')]?_0x33e8e3[_0x1a12('0x10c')]['change'](_0x3b24c9=>{_0x3b24c9['removeClass'](_0x1a12('0xda'),_0x33e8e3[_0x1a12('0x10c')]['document'][_0x1a12('0x3c')](_0x27d4cd[_0x1a12('0x87')]));}):_0x33e8e3[_0x1a12('0x23')](_0x1a12('0xc9')+_0x27d4cd['id'])),_0x145dcd&&(_0x145dcd[_0x1a12('0xdb')][_0x1a12('0xa8')]?_0x33e8e3['view'][_0x1a12('0x66')](_0x436b9c=>{_0x436b9c[_0x1a12('0xe4')]('ck-revision-history-root--active',_0x33e8e3[_0x1a12('0x10c')][_0x1a12('0x45')][_0x1a12('0x3c')](_0x145dcd[_0x1a12('0x87')]));}):_0x33e8e3[_0x1a12('0x23')](_0x1a12('0xc9')+_0x145dcd['id']));});}),this[_0x1a12('0x98')](this[_0x1a12('0x101')]['editing']['view'][_0x1a12('0x45')],_0x1a12('0x5c'),(_0x4cf596,_0x25211e)=>{if(this[_0x1a12('0xcc')])return;const _0x32fb16=this[_0x1a12('0xfc')](_0x25211e[_0x1a12('0xc7')]),_0x3e6a43=this[_0x1a12('0xa4')][_0x1a12('0xf4')](_0x32fb16);_0x3e6a43?(this[_0x1a12('0x90')]={'x':_0x25211e[_0x1a12('0x104')]['x'],'y':_0x25211e[_0x1a12('0x104')]['y']},this[_0x1a12('0x113')]=this[_0x1a12('0x2b')](_0x3e6a43)):(this[_0x1a12('0x90')]=null,this[_0x1a12('0x113')]=null);}),this[_0x1a12('0x98')](this[_0x1a12('0x101')]['editing'][_0x1a12('0x10c')][_0x1a12('0x45')],'mousedown',(_0x227f3d,_0xf4e8de)=>{const _0x10c31e=this['_findChangeIdFromDomTarget'](_0xf4e8de[_0x1a12('0xc7')]),_0x4579f5=this['_changeIdToChange'][_0x1a12('0xf4')](_0x10c31e);_0x4579f5?(this[_0x1a12('0x90')]={'x':_0xf4e8de[_0x1a12('0x104')]['x'],'y':_0xf4e8de[_0x1a12('0x104')]['y']},_0x4579f5===this[_0x1a12('0xcc')]?this[_0x1a12('0x110')]['updatePosition']():this[_0x1a12('0xcc')]=_0x4579f5):(this[_0x1a12('0x90')]=null,this[_0x1a12('0xcc')]=null);});}[_0x1a12('0xfc')](_0x4e90c2){do{const _0x15b657=_0x4e90c2[_0x1a12('0x97')](_0x1a12('0x12'));if(_0x15b657)return _0x15b657;_0x4e90c2=_0x4e90c2[_0x1a12('0x83')];}while(_0x4e90c2);return null;}[_0x1a12('0x54')](){this[_0x1a12('0x101')][_0x1a12('0xa3')][_0x1a12('0x66')](_0x3537d2=>{for(const _0x3bd8d3 of this['editor'][_0x1a12('0xa3')][_0x1a12('0x6a')])_0x3537d2[_0x1a12('0xe7')](_0x3bd8d3);});}}function et(_0x27bc5c,_0x5955dd){return(_0x37a104,_0x58fbe9,_0x5dae5c)=>{if(!_0x5dae5c[_0x1a12('0xff')]['test'](_0x58fbe9[_0x1a12('0xc1')],_0x37a104['name']))return;const _0x44617d=_0x58fbe9[_0x1a12('0xc1')]['getWalker'](),_0x443d99=_0x58fbe9['markerRange'][_0x1a12('0xe')],_0x29e7e8=_0x27bc5c[_0x1a12('0xa3')]['schema'];let _0xc3641=null,_0x1d8e40=null,_0x24e402=!0x1,_0x292654=!0x1;for(const _0x4a591a of _0x44617d){const _0x32b7e5=_0x4a591a[_0x1a12('0xb3')];_0x24e402=_0x24e402||_0x29e7e8['isContent'](_0x32b7e5);const _0x41cef1=_0x5dae5c[_0x1a12('0xd6')]['toViewElement'](_0x32b7e5);if(_0x41cef1&&_0x41cef1[_0x1a12('0xb0')]('addHighlight'))return;_0x1a12('0x30')==_0x4a591a['type']&&(_0x29e7e8[_0x1a12('0xce')](_0x32b7e5)&&!_0x29e7e8[_0x1a12('0x40')](_0x32b7e5)&&(_0x32b7e5[_0x1a12('0xc4')]||_0x443d99[_0x1a12('0x31')]?_0xc3641&&_0xc3641[_0x1a12('0x83')]==_0x32b7e5||(_0xc3641=_0x32b7e5,_0x34836a(_0x4a591a[_0x1a12('0x5')]),_0x292654=!0x0):_0x1d8e40=_0x1d8e40||_0x4a591a[_0x1a12('0x5')]));}function _0x34836a(_0xbacbcc){const _0x910614=_0x5dae5c['mapper'][_0x1a12('0xc3')](_0xbacbcc),_0x5f432b=_0x5dae5c[_0x1a12('0xd5')][_0x1a12('0x25')](_0x1a12('0x3a'),{'class':_0x1a12('0xca')+_0x5955dd});_0x5dae5c[_0x1a12('0xd5')]['insert'](_0x910614,_0x5f432b),_0x5dae5c[_0x1a12('0xd6')][_0x1a12('0x94')](_0x5f432b,_0x58fbe9[_0x1a12('0xe1')]);}_0x24e402||_0x292654||!_0x1d8e40||_0x34836a(_0x1d8e40);};}export class RestoreRevisionCommand extends _0x451d39{constructor(_0x6af5ac){super(_0x6af5ac);const _0xedeb05=_0x6af5ac[_0x1a12('0xb2')][_0x1a12('0xf4')](d);this[_0x1a12('0xdd')]=!0x1,this[_0x1a12('0x98')](_0xedeb05,_0x1a12('0xa9'),()=>this[_0x1a12('0xd3')]()),this[_0x1a12('0x98')](_0xedeb05,_0x1a12('0xb6'),()=>this['refresh']());}[_0x1a12('0xd0')](){const _0x350d0b=this[_0x1a12('0x101')],_0x341fc2=_0x350d0b[_0x1a12('0xb2')][_0x1a12('0xf4')](d),_0x2723c9=_0x341fc2['isReady']?_0x341fc2[_0x1a12('0xed')][_0x1a12('0x7c')]:null;_0x350d0b[_0x1a12('0xd9')][_0x1a12('0xf4')]('revisionHistory')[_0x1a12('0x4e')](_0x2723c9);}['refresh'](){const {isReady:_0x19f5c3,isEnabled:_0xbbcda1}=this['editor']['plugins'][_0x1a12('0xf4')](d);this[_0x1a12('0x67')]=_0x19f5c3&&_0xbbcda1;}}export class ShowChangeCommand extends _0x451d39{constructor(_0x28349e,{direction:_0x355db7}){super(_0x28349e);const _0x4c6cd3=_0x28349e[_0x1a12('0xb2')][_0x1a12('0xf4')](d);this[_0x1a12('0xdd')]=!0x1,this[_0x1a12('0x1a')]='forward'===_0x355db7?0x1:-0x1,this[_0x1a12('0x98')](_0x4c6cd3,_0x1a12('0xa9'),()=>this[_0x1a12('0xd3')]()),this[_0x1a12('0x98')](_0x4c6cd3,_0x1a12('0xb6'),()=>this[_0x1a12('0xd3')]()),this['listenTo'](_0x4c6cd3,_0x1a12('0xf0'),()=>this[_0x1a12('0xd3')]());}['execute'](){const _0x51528a=this[_0x1a12('0x101')],_0x4b2121=_0x51528a['plugins']['get'](d),{isNavigationMode:_0x475a1c,currentChangeNumber:_0x3e7e44}=_0x4b2121;let _0x580e17;if(_0x4b2121[_0x1a12('0xcc')]=_0x475a1c?_0x4b2121['diff']['changes'][_0x1a12('0xf4')](_0x3e7e44+this['_step']):_0x4b2121[_0x1a12('0xed')][_0x1a12('0xbb')][_0x1a12('0x4d')],_0x4b2121['activeChange'][_0x1a12('0xdb')][_0x1a12('0xa8')])_0x580e17=_0x51528a[_0x1a12('0x6')]['view'][_0x1a12('0x8d')](_0x4b2121['activeChange'][_0x1a12('0x87')]);else{const _0x177f94=_0x51528a[_0x1a12('0xa3')][_0x1a12('0x6a')][_0x1a12('0xf4')](_0x1a12('0xc9')+_0x4b2121['activeChange']['id']);_0x580e17=_0xf9def3(_0x51528a[_0x1a12('0x6')],_0x177f94);}_0x1af848({'target':_0x580e17,'viewportOffset':0x28});}[_0x1a12('0xd3')](){const {isNavigationMode:_0x46563a,currentChangeNumber:_0x5c9d1d,numberOfChanges:_0x480c9a,isReady:_0x9f1981,isEnabled:_0xb60a30}=this[_0x1a12('0x101')][_0x1a12('0xb2')][_0x1a12('0xf4')](d);this['isEnabled']=!!(_0xb60a30&&_0x9f1981&&_0x480c9a)&&(!_0x46563a||(0x1===this[_0x1a12('0x1a')]?_0x5c9d1d<_0x480c9a-0x1:_0x5c9d1d>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ccd=['threeVerticalDots','set','class','children','find','ck-revision-history-sidebar__revision__actions','button','add','Show\x20more\x20items','isEnabled','first','items','function','bind','isActionsDropdownOpen','ck-on','map','source','name','stopPropagation','extendTemplate','bindTemplate','execute','listenTo','action','isReady','_action','isVisible'];(function(_0x161065,_0x5ccdb6){const _0x50fe98=function(_0x47b363){while(--_0x47b363){_0x161065['push'](_0x161065['shift']());}};_0x50fe98(++_0x5ccdb6);}(_0x5ccd,0xc0));const _0x50fe=function(_0x161065,_0x5ccdb6){_0x161065=_0x161065-0x0;let _0x50fe98=_0x5ccd[_0x161065];return _0x50fe98;};import{Collection as _0x451d53}from'ckeditor5/src/utils';import{icons as _0x50e4ef}from'ckeditor5/src/core';import{Model as _0x4b7fb4,addListToDropdown as _0x528fae,createDropdown as _0x4898b1}from'ckeditor5/src/ui';import{getTranslation as _0x48d9db}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x54e404,_0x3a9429){const _0x12ad3e=_0x54e404[_0x50fe('0x19')],_0x4e3467=_0x54e404['locale'],_0x1ffaec=_0x4898b1(_0x4e3467);_0x1ffaec['panelPosition']='sw';const _0x3ff307=function(_0x2f7365,_0x50c3b){const _0x7d45bb=function(_0x381a2f,_0x380635){const _0x271af2=_0x381a2f['locale'],_0x214abe={'Compare\x20against\x20selected':_0x48d9db(_0x271af2,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x48d9db(_0x271af2,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x48d9db(_0x271af2,'Restore\x20this\x20revision')};return _0x380635[_0x50fe('0x14')](_0xfbe4ea=>{const _0x43d649=_0x214abe[_0xfbe4ea[_0x50fe('0x16')]];return _0x43d649&&_0x43d649!==_0xfbe4ea['name']&&(_0xfbe4ea[_0x50fe('0x16')]=_0x43d649),_0xfbe4ea;});}(_0x2f7365,_0x50c3b),_0x19541d=new _0x451d53();for(const _0x528e5a of _0x7d45bb){const _0x44aac9={'type':_0x50fe('0xa'),'model':new _0x4b7fb4({'label':_0x528e5a[_0x50fe('0x16')],'class':_0x528e5a[_0x50fe('0x6')],'withText':!0x0,'_action':_0x528e5a[_0x50fe('0x0')]})};_0x44aac9['model'][_0x50fe('0x11')](_0x50fe('0xd'))['to'](_0x2f7365,_0x50fe('0x12'),_0x5d409e=>_0x50fe('0x10')!=typeof _0x528e5a[_0x50fe('0xd')]||(!_0x5d409e||_0x528e5a[_0x50fe('0xd')](_0x2f7365))),_0x19541d[_0x50fe('0xb')](_0x44aac9);}return _0x19541d;}(_0x54e404,_0x3a9429);return _0x54e404[_0x50fe('0x11')]('isActionsDropdownOpen')['to'](_0x1ffaec,'isOpen'),_0x1ffaec['buttonView'][_0x50fe('0x5')]({'label':_0x48d9db(_0x4e3467,_0x50fe('0xc')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x50e4ef[_0x50fe('0x4')]}),_0x1ffaec[_0x50fe('0x18')]({'attributes':{'class':[_0x50fe('0x9'),_0x12ad3e['if'](_0x50fe('0x12'),_0x50fe('0x13'))]},'on':{'click':_0x12ad3e['to'](_0x3535f4=>_0x3535f4[_0x50fe('0x17')]())}}),_0x1ffaec['on'](_0x50fe('0x1a'),_0x3f0cfd=>{_0x54e404[_0x50fe('0x1')]&&_0x50fe('0x10')==typeof _0x3f0cfd['source'][_0x50fe('0x2')]&&_0x3f0cfd[_0x50fe('0x15')][_0x50fe('0x2')](_0x54e404);}),_0x528fae(_0x1ffaec,_0x3ff307),_0x1ffaec[_0x50fe('0x1b')](_0x54e404,'change:isActionsDropdownOpen',(_0x5ee0f1,_0xcfde0f,_0x10fe05)=>{if(_0x10fe05)for(const _0x3a7f8f of _0x1ffaec['listView'][_0x50fe('0xf')]){const _0x42495e=_0x3a7f8f[_0x50fe('0x7')][_0x50fe('0xe')],_0x228ad7=_0x3a9429[_0x50fe('0x8')](_0x568190=>_0x568190[_0x50fe('0x0')]===_0x42495e[_0x50fe('0x2')])[_0x50fe('0x3')];_0x3a7f8f[_0x50fe('0x3')]=void 0x0===_0x228ad7||_0x228ad7(_0x54e404);}}),_0x1ffaec;}
23
+ const _0xd75f=['execute','action','find','Name\x20this\x20revision','isActionsDropdownOpen','function','bind','extendTemplate','_action','source','first','ck-on','model','isReady','stopPropagation','listView','isEnabled','items','threeVerticalDots','children','Restore\x20this\x20revision','class','add','name','isVisible','isOpen','locale','button','change:isActionsDropdownOpen','buttonView','listenTo'];(function(_0x451f97,_0xd75fc2){const _0x50ed76=function(_0xf26774){while(--_0xf26774){_0x451f97['push'](_0x451f97['shift']());}};_0x50ed76(++_0xd75fc2);}(_0xd75f,0x186));const _0x50ed=function(_0x451f97,_0xd75fc2){_0x451f97=_0x451f97-0x0;let _0x50ed76=_0xd75f[_0x451f97];return _0x50ed76;};import{Collection as _0x3cdfb0}from'ckeditor5/src/utils';import{icons as _0x3d9e1e}from'ckeditor5/src/core';import{Model as _0x453aef,addListToDropdown as _0x1d51bb,createDropdown as _0x53f56b}from'ckeditor5/src/ui';import{getTranslation as _0xa5d3e4}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x29b662,_0x2ecd53){const _0x184c3d=_0x29b662['bindTemplate'],_0x29cbac=_0x29b662[_0x50ed('0x8')],_0x529078=_0x53f56b(_0x29cbac);_0x529078['panelPosition']='sw';const _0x266b19=function(_0x4a51c6,_0x4aaa3b){const _0xd658d=function(_0x3bbf84,_0x174fb1){const _0x3c0b56=_0x3bbf84[_0x50ed('0x8')],_0x2806ee={'Compare\x20against\x20selected':_0xa5d3e4(_0x3c0b56,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0xa5d3e4(_0x3c0b56,_0x50ed('0x10')),'Restore\x20this\x20revision':_0xa5d3e4(_0x3c0b56,_0x50ed('0x2'))};return _0x174fb1['map'](_0x59aeaf=>{const _0x428b55=_0x2806ee[_0x59aeaf[_0x50ed('0x5')]];return _0x428b55&&_0x428b55!==_0x59aeaf[_0x50ed('0x5')]&&(_0x59aeaf[_0x50ed('0x5')]=_0x428b55),_0x59aeaf;});}(_0x4a51c6,_0x4aaa3b),_0x526647=new _0x3cdfb0();for(const _0xebbec1 of _0xd658d){const _0x454a3a={'type':_0x50ed('0x9'),'model':new _0x453aef({'label':_0xebbec1[_0x50ed('0x5')],'class':_0xebbec1[_0x50ed('0x3')],'withText':!0x0,'_action':_0xebbec1[_0x50ed('0xe')]})};_0x454a3a[_0x50ed('0x19')]['bind'](_0x50ed('0x1d'))['to'](_0x4a51c6,_0x50ed('0x11'),_0x52dc0e=>_0x50ed('0x12')!=typeof _0xebbec1[_0x50ed('0x1d')]||(!_0x52dc0e||_0xebbec1[_0x50ed('0x1d')](_0x4a51c6))),_0x526647[_0x50ed('0x4')](_0x454a3a);}return _0x526647;}(_0x29b662,_0x2ecd53);return _0x29b662[_0x50ed('0x13')](_0x50ed('0x11'))['to'](_0x529078,_0x50ed('0x7')),_0x529078[_0x50ed('0xb')]['set']({'label':_0xa5d3e4(_0x29cbac,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3d9e1e[_0x50ed('0x0')]}),_0x529078[_0x50ed('0x14')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x184c3d['if']('isActionsDropdownOpen',_0x50ed('0x18'))]},'on':{'click':_0x184c3d['to'](_0x312e2c=>_0x312e2c[_0x50ed('0x1b')]())}}),_0x529078['on'](_0x50ed('0xd'),_0x49e05a=>{_0x29b662[_0x50ed('0x1a')]&&'function'==typeof _0x49e05a[_0x50ed('0x16')][_0x50ed('0x15')]&&_0x49e05a[_0x50ed('0x16')]['_action'](_0x29b662);}),_0x1d51bb(_0x529078,_0x266b19),_0x529078[_0x50ed('0xc')](_0x29b662,_0x50ed('0xa'),(_0x407e05,_0x52deaf,_0x434349)=>{if(_0x434349)for(const _0xd1e541 of _0x529078[_0x50ed('0x1c')][_0x50ed('0x1e')]){const _0x2222ac=_0xd1e541[_0x50ed('0x1')][_0x50ed('0x17')],_0x131ed0=_0x2ecd53[_0x50ed('0xf')](_0x518911=>_0x518911[_0x50ed('0xe')]===_0x2222ac[_0x50ed('0x15')])[_0x50ed('0x6')];_0xd1e541[_0x50ed('0x6')]=void 0x0===_0x131ed0||_0x131ed0(_0x29b662);}}),_0x529078;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xdffa=['Revision\x20creator','set','setTemplate','name','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author_creator','push','ck-revision-history-sidebar__revision-author__name','Revision\x20author'];(function(_0x4ff67f,_0xdffada){const _0x252127=function(_0x30d511){while(--_0x30d511){_0x4ff67f['push'](_0x4ff67f['shift']());}};_0x252127(++_0xdffada);}(_0xdffa,0x1b4));const _0x2521=function(_0x4ff67f,_0xdffada){_0x4ff67f=_0x4ff67f-0x0;let _0x252127=_0xdffa[_0x4ff67f];return _0x252127;};import{View as _0x4764e0,IconView as _0x4fdc57}from'ckeditor5/src/ui';import{getTranslation as _0x33f414}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x2d42d0 from'../../../theme/icons/user.svg';export default class ti extends _0x4764e0{constructor(_0x2cfcc6,_0x5a6cc2,_0x54948a){super(_0x2cfcc6);const _0x511e79=new _0x4fdc57();_0x511e79[_0x2521('0x6')]({'content':_0x2d42d0,'viewBox':_0x2521('0x0')});const _0x207e5b=['ck','ck-revision-history-sidebar__revision-author'];_0x54948a&&_0x207e5b[_0x2521('0x2')](_0x2521('0x1'));const _0x252bcd=[{'tag':'span','attributes':{'class':['ck',_0x2521('0x3')],'title':_0x33f414(_0x2cfcc6,_0x54948a?_0x2521('0x5'):_0x2521('0x4'))},'children':[_0x511e79,_0x5a6cc2[_0x2521('0x8')]]}];this[_0x2521('0x7')]({'tag':'li','attributes':{'class':_0x207e5b},'children':_0x252bcd});}}
23
+ const _0x1638=['set','setTemplate','Revision\x20creator','span','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author__name'];(function(_0x126cc8,_0x16381e){const _0x1586d9=function(_0xd3ffcf){while(--_0xd3ffcf){_0x126cc8['push'](_0x126cc8['shift']());}};_0x1586d9(++_0x16381e);}(_0x1638,0xb1));const _0x1586=function(_0x126cc8,_0x16381e){_0x126cc8=_0x126cc8-0x0;let _0x1586d9=_0x1638[_0x126cc8];return _0x1586d9;};import{View as _0x548a4e,IconView as _0x41a90d}from'ckeditor5/src/ui';import{getTranslation as _0x5135f1}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x3eb6aa from'../../../theme/icons/user.svg';export default class ti extends _0x548a4e{constructor(_0x521a7d,_0x3033e6,_0x24158a){super(_0x521a7d);const _0x4a77ef=new _0x41a90d();_0x4a77ef[_0x1586('0x5')]({'content':_0x3eb6aa,'viewBox':_0x1586('0x2')});const _0x33e07f=['ck',_0x1586('0x3')];_0x24158a&&_0x33e07f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3655f6=[{'tag':_0x1586('0x1'),'attributes':{'class':['ck',_0x1586('0x4')],'title':_0x5135f1(_0x521a7d,_0x24158a?_0x1586('0x0'):'Revision\x20author')},'children':[_0x4a77ef,_0x3033e6['name']]}];this[_0x1586('0x6')]({'tag':'li','attributes':{'class':_0x33e07f},'children':_0x3655f6});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3cad=['span','set','Revision\x20name','extendTemplate'];(function(_0x577c72,_0x3cad3e){var _0x536c22=function(_0x2d1821){while(--_0x2d1821){_0x577c72['push'](_0x577c72['shift']());}};_0x536c22(++_0x3cad3e);}(_0x3cad,0x1d3));var _0x536c=function(_0x577c72,_0x3cad3e){_0x577c72=_0x577c72-0x0;var _0x536c22=_0x3cad[_0x577c72];return _0x536c22;};import{LabeledFieldView as _0x3cf833}from'ckeditor5/src/ui';import{getTranslation as _0x1d88f5}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x3cf833{constructor(_0x8a1968,_0x12565e){super(_0x8a1968,_0x12565e),this[_0x536c('0x2')]({'label':_0x1d88f5(_0x8a1968,_0x536c('0x3'))}),this[_0x536c('0x0')]({'tag':_0x536c('0x1'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x15d9=['span','set','extendTemplate','ck-revision-history-sidebar__revision-name','Revision\x20name'];(function(_0x452f00,_0x15d962){var _0x26e882=function(_0x24b2b8){while(--_0x24b2b8){_0x452f00['push'](_0x452f00['shift']());}};_0x26e882(++_0x15d962);}(_0x15d9,0x186));var _0x26e8=function(_0x452f00,_0x15d962){_0x452f00=_0x452f00-0x0;var _0x26e882=_0x15d9[_0x452f00];return _0x26e882;};import{LabeledFieldView as _0x5e0282}from'ckeditor5/src/ui';import{getTranslation as _0x820c72}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x5e0282{constructor(_0x429824,_0x3fd518){super(_0x429824,_0x3fd518),this[_0x26e8('0x1')]({'label':_0x820c72(_0x429824,_0x26e8('0x4'))}),this[_0x26e8('0x2')]({'tag':_0x26e8('0x0'),'attributes':{'class':[_0x26e8('0x3')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b96=['isHighlighted','ck-revision-history-sidebar__revision_selected','srcElement','element','value','setName','220','length','name','creator','bind','change','unshift','_createdAtFormatted','fieldView','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__actions_dropdown_open','fire','_revision','isSelected','select','createdAt','map','isEnabled','render','isConfirm','listenTo','isActionsDropdownOpen','div','closest','placeholder','ck-reset','ck-revision-history-sidebar__revision_highlighted','authors','ck-revision-history-sidebar__revision__date','revisionNameView','setTemplate','set','ck-revision-history-sidebar__revision__controls-wrapper','ck-revision-history-sidebar__revision-authors','ck-disabled','revisionActionsView','ck-revision-history-sidebar__revision-wrapper'];(function(_0x4e8e53,_0x4b9682){const _0x3b80d4=function(_0x13f42f){while(--_0x13f42f){_0x4e8e53['push'](_0x4e8e53['shift']());}};_0x3b80d4(++_0x4b9682);}(_0x4b96,0x1ae));const _0x3b80=function(_0x4e8e53,_0x4b9682){_0x4e8e53=_0x4e8e53-0x0;let _0x3b80d4=_0x4b96[_0x4e8e53];return _0x3b80d4;};import{View as _0x2d2170,createLabeledInputText as _0x19715c}from'ckeditor5/src/ui';import{ConfirmMixin as _0x59f7df}from'ckeditor5-collaboration/src/collaboration-core';import _0x1be261 from'./revisionnameview';import _0x5ac66c from'./revisionauthorview';import{dateToPrettyFormat as _0x5a710c}from'./utils';import{createActionsDropdownView as _0x5f04c5}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x59f7df(_0x2d2170){constructor(_0x35e2b5,_0x19dc0d,_0x4338f7){super(_0x35e2b5);const _0x25916e=this['bindTemplate'],_0x4b8958=function(_0x3ed0ac,_0x5766f9){const _0x510d20=Array['from'](_0x5766f9[_0x3b80('0x21')])['filter'](_0x219ec9=>_0x219ec9!=_0x5766f9['creator']);return _0x5766f9['creator']&&_0x510d20[_0x3b80('0xc')](_0x5766f9[_0x3b80('0x9')]),_0x510d20[_0x3b80('0x16')](_0x1ac01d=>new _0x5ac66c(_0x3ed0ac,_0x1ac01d,_0x1ac01d==_0x5766f9[_0x3b80('0x9')]));}(_0x35e2b5,_0x19dc0d);this['id']=_0x19dc0d['id'],this[_0x3b80('0x12')]=_0x19dc0d,this[_0x3b80('0xa')]('name',_0x3b80('0x15'))['to'](_0x19dc0d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2b1907=>_0x2b1907?_0x5a710c(_0x35e2b5['uiLanguage'],_0x2b1907):void 0x0),this[_0x3b80('0x25')](_0x3b80('0x13'),!0x1),this['set']('isHighlighted',!0x1),this[_0x3b80('0x25')]('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this[_0x3b80('0x25')](_0x3b80('0x17'),!0x1),this[_0x3b80('0x23')]=new _0x1be261(_0x35e2b5,_0x19715c),this[_0x3b80('0x23')][_0x3b80('0xe')]['extendTemplate']({'attributes':{'maxlength':_0x3b80('0x6')}}),this[_0x3b80('0x23')][_0x3b80('0xe')][_0x3b80('0xa')](_0x3b80('0x4'),_0x3b80('0x1e'))['to'](this,_0x3b80('0x8'),_0x3b80('0xd')),this[_0x3b80('0x23')][_0x3b80('0xa')](_0x3b80('0x17'))['to'](this,_0x3b80('0x13'),this,_0x3b80('0x17'),(_0x38ccaf,_0x4c1b7d)=>_0x38ccaf&&_0x4c1b7d),this[_0x3b80('0x29')]=_0x4338f7&&_0x4338f7[_0x3b80('0x7')]?_0x5f04c5(this,_0x4338f7):'',this['revisionActionsView']&&this[_0x3b80('0x29')][_0x3b80('0xa')](_0x3b80('0x17'))['to'](this),this[_0x3b80('0x24')]({'tag':_0x3b80('0x1c'),'attributes':{'class':['ck',_0x3b80('0x1f'),_0x3b80('0x2a'),_0x25916e['if'](_0x3b80('0x19'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x3b80('0x1c'),'attributes':{'class':['ck',_0x3b80('0x1f'),_0x3b80('0xf'),_0x25916e['if'](_0x3b80('0x17'),_0x3b80('0x28'),_0x5b4fe8=>!_0x5b4fe8),_0x25916e['if'](_0x3b80('0x13'),_0x3b80('0x1')),_0x25916e['if'](_0x3b80('0x0'),_0x3b80('0x20')),_0x25916e['if'](_0x3b80('0x1b'),_0x3b80('0x10'))]},'children':[this[_0x3b80('0x23')],{'tag':'span','attributes':{'class':['ck',_0x3b80('0x22')]},'children':[{'text':_0x25916e['to'](_0x3b80('0xd'))}]},{'tag':'div','attributes':{'class':['ck',_0x3b80('0x26')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x3b80('0x27')]},'children':_0x4b8958}]},this[_0x3b80('0x29')]],'on':{'click':_0x25916e['to'](_0x7edecc=>{_0x7edecc[_0x3b80('0x2')][_0x3b80('0x1d')]('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire'](_0x3b80('0x14'),{'id':this['id']});})}}]});}[_0x3b80('0x18')](){super[_0x3b80('0x18')]();const _0x15d44e=this[_0x3b80('0x23')][_0x3b80('0xe')][_0x3b80('0x3')];this[_0x3b80('0x1a')](_0x15d44e,_0x3b80('0xb'),()=>{this[_0x3b80('0x11')](_0x3b80('0x5'),{'id':this['id'],'name':_0x15d44e[_0x3b80('0x4')]});});}[_0x3b80('0x14')](){this[_0x3b80('0x13')]=!0x0;}['deselect'](){this[_0x3b80('0x13')]=!0x1;}['highlight'](){this[_0x3b80('0x0')]=!0x0;}['unhighlight'](){this[_0x3b80('0x0')]=!0x1;}}
23
+ const _0x1ed1=['ck-revision-history-sidebar__revision-authors','_createdAtFormatted','placeholder','element','revisionNameView','ck-revision-history-sidebar__revision','change','isHighlighted','extendTemplate','_revision','name','span','isEnabled','select','setTemplate','deselect','bind','set','ck-reset','bindTemplate','value','fieldView','unshift','ck-revision-history-sidebar__revision_highlighted','filter','isConfirm','listenTo','isActionsDropdownOpen','from','creator','div','authors','render','220','ck-revision-history-sidebar__revision__date','uiLanguage','isReady','length','srcElement','createdAt','revisionActionsView','fire','ck-disabled','map','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','isSelected','highlight','setName'];(function(_0x57758e,_0x1ed1c9){const _0x51f288=function(_0x952505){while(--_0x952505){_0x57758e['push'](_0x57758e['shift']());}};_0x51f288(++_0x1ed1c9);}(_0x1ed1,0x1d3));const _0x51f2=function(_0x57758e,_0x1ed1c9){_0x57758e=_0x57758e-0x0;let _0x51f288=_0x1ed1[_0x57758e];return _0x51f288;};import{View as _0xf6e382,createLabeledInputText as _0x665a00}from'ckeditor5/src/ui';import{ConfirmMixin as _0xd97179}from'ckeditor5-collaboration/src/collaboration-core';import _0x2cf6a7 from'./revisionnameview';import _0x2bf827 from'./revisionauthorview';import{dateToPrettyFormat as _0x82aafb}from'./utils';import{createActionsDropdownView as _0x39f84b}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0xd97179(_0xf6e382){constructor(_0x493904,_0x2fc94b,_0x3620fb){super(_0x493904);const _0x5b1687=this[_0x51f2('0x20')],_0x229723=function(_0x3c87f9,_0x335981){const _0x41cd81=Array[_0x51f2('0x29')](_0x335981[_0x51f2('0x2c')])[_0x51f2('0x25')](_0x13d9d0=>_0x13d9d0!=_0x335981[_0x51f2('0x2a')]);return _0x335981['creator']&&_0x41cd81[_0x51f2('0x23')](_0x335981['creator']),_0x41cd81[_0x51f2('0x8')](_0x206273=>new _0x2bf827(_0x3c87f9,_0x206273,_0x206273==_0x335981[_0x51f2('0x2a')]));}(_0x493904,_0x2fc94b);this['id']=_0x2fc94b['id'],this[_0x51f2('0x16')]=_0x2fc94b,this[_0x51f2('0x1d')](_0x51f2('0x17'),_0x51f2('0x4'))['to'](_0x2fc94b),this[_0x51f2('0x1d')](_0x51f2('0xe'))['to'](this,'createdAt',_0x27824a=>_0x27824a?_0x82aafb(_0x493904[_0x51f2('0x0')],_0x27824a):void 0x0),this[_0x51f2('0x1e')]('isSelected',!0x1),this[_0x51f2('0x1e')](_0x51f2('0x14'),!0x1),this[_0x51f2('0x1e')](_0x51f2('0x28'),!0x1),this[_0x51f2('0x1e')](_0x51f2('0x1'),!0x1),this[_0x51f2('0x1e')](_0x51f2('0x19'),!0x1),this[_0x51f2('0x11')]=new _0x2cf6a7(_0x493904,_0x665a00),this[_0x51f2('0x11')][_0x51f2('0x22')][_0x51f2('0x15')]({'attributes':{'maxlength':_0x51f2('0x2e')}}),this[_0x51f2('0x11')][_0x51f2('0x22')][_0x51f2('0x1d')](_0x51f2('0x21'),_0x51f2('0xf'))['to'](this,_0x51f2('0x17'),_0x51f2('0xe')),this[_0x51f2('0x11')][_0x51f2('0x1d')](_0x51f2('0x19'))['to'](this,_0x51f2('0xa'),this,'isEnabled',(_0x662532,_0x4685fd)=>_0x662532&&_0x4685fd),this['revisionActionsView']=_0x3620fb&&_0x3620fb[_0x51f2('0x2')]?_0x39f84b(this,_0x3620fb):'',this[_0x51f2('0x5')]&&this[_0x51f2('0x5')]['bind'](_0x51f2('0x19'))['to'](this),this[_0x51f2('0x1b')]({'tag':'div','attributes':{'class':['ck',_0x51f2('0x1f'),'ck-revision-history-sidebar__revision-wrapper',_0x5b1687['if'](_0x51f2('0x26'),_0x51f2('0x9'))]},'children':[{'tag':_0x51f2('0x2b'),'attributes':{'class':['ck',_0x51f2('0x1f'),_0x51f2('0x12'),_0x5b1687['if'](_0x51f2('0x19'),_0x51f2('0x7'),_0x1af811=>!_0x1af811),_0x5b1687['if'](_0x51f2('0xa'),'ck-revision-history-sidebar__revision_selected'),_0x5b1687['if']('isHighlighted',_0x51f2('0x24')),_0x5b1687['if'](_0x51f2('0x28'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x51f2('0x11')],{'tag':_0x51f2('0x18'),'attributes':{'class':['ck',_0x51f2('0x2f')]},'children':[{'text':_0x5b1687['to'](_0x51f2('0xe'))}]},{'tag':_0x51f2('0x2b'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x51f2('0xd')]},'children':_0x229723}]},this[_0x51f2('0x5')]],'on':{'click':_0x5b1687['to'](_0x5e42cf=>{_0x5e42cf[_0x51f2('0x3')]['closest']('.ck-thread__remove-confirm')||this[_0x51f2('0x1')]&&this[_0x51f2('0x19')]&&this[_0x51f2('0x6')](_0x51f2('0x1a'),{'id':this['id']});})}}]});}[_0x51f2('0x2d')](){super[_0x51f2('0x2d')]();const _0x54f817=this[_0x51f2('0x11')][_0x51f2('0x22')][_0x51f2('0x10')];this[_0x51f2('0x27')](_0x54f817,_0x51f2('0x13'),()=>{this[_0x51f2('0x6')](_0x51f2('0xc'),{'id':this['id'],'name':_0x54f817[_0x51f2('0x21')]});});}['select'](){this[_0x51f2('0xa')]=!0x0;}[_0x51f2('0x1c')](){this['isSelected']=!0x1;}[_0x51f2('0xb')](){this[_0x51f2('0x14')]=!0x0;}['unhighlight'](){this[_0x51f2('0x14')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x282b=['bindTemplate','button','set','setTemplate','click','ck-hidden','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-revision-history-sidebar__subrevision-collapser__inner','false','ck-revision-history-sidebar__subrevision-collapser','_isCollapsed','true','isVisible'];(function(_0x58471f,_0x282bcb){const _0x5c64a2=function(_0x5394d7){while(--_0x5394d7){_0x58471f['push'](_0x58471f['shift']());}};_0x5c64a2(++_0x282bcb);}(_0x282b,0x1d7));const _0x5c64=function(_0x58471f,_0x282bcb){_0x58471f=_0x58471f-0x0;let _0x5c64a2=_0x282b[_0x58471f];return _0x5c64a2;};import{View as _0x9c5c4}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x9c5c4{constructor(_0x3db81e){super(_0x3db81e);const _0x37be3a=this[_0x5c64('0xa')];this[_0x5c64('0xc')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5c64('0x0')]({'tag':'span','attributes':{'class':['ck',_0x5c64('0x6'),_0x37be3a['if'](_0x5c64('0x9'),_0x5c64('0x2'),_0x6afc90=>!_0x6afc90),_0x37be3a['if']('_isCollapsed',_0x5c64('0x3'))],'role':_0x5c64('0xb'),'aria-pressed':_0x37be3a['to'](_0x5c64('0x7'),_0x336473=>_0x336473?_0x5c64('0x5'):_0x5c64('0x8'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x5c64('0x4')]}}],'on':{'click':_0x37be3a['to'](_0x5c64('0x1'))}});}['toggle'](){this[_0x5c64('0x7')]=!this[_0x5c64('0x7')];}}
23
+ const _0x3114=['ck-hidden','toggle','set','isVisible','setTemplate','span','true','ck-revision-history-sidebar__subrevision-collapser_collapsed','click','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser','ck-revision-history-sidebar__subrevision-collapser__inner'];(function(_0x54ad30,_0x311405){const _0x31d7de=function(_0x315ebe){while(--_0x315ebe){_0x54ad30['push'](_0x54ad30['shift']());}};_0x31d7de(++_0x311405);}(_0x3114,0x1c8));const _0x31d7=function(_0x54ad30,_0x311405){_0x54ad30=_0x54ad30-0x0;let _0x31d7de=_0x3114[_0x54ad30];return _0x31d7de;};import{View as _0x2ba305}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2ba305{constructor(_0x46e29e){super(_0x46e29e);const _0x5bd286=this['bindTemplate'];this[_0x31d7('0x2')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x31d7('0x4')]({'tag':_0x31d7('0x5'),'attributes':{'class':['ck',_0x31d7('0xa'),_0x5bd286['if'](_0x31d7('0x3'),_0x31d7('0x0'),_0x3a92a7=>!_0x3a92a7),_0x5bd286['if'](_0x31d7('0x9'),_0x31d7('0x7'))],'role':'button','aria-pressed':_0x5bd286['to']('_isCollapsed',_0x55f5f9=>_0x55f5f9?'false':_0x31d7('0x6'))},'children':[{'tag':_0x31d7('0x5'),'attributes':{'class':['ck',_0x31d7('0xb')]}}],'on':{'click':_0x5bd286['to'](_0x31d7('0x8'))}});}[_0x31d7('0x1')](){this[_0x31d7('0x9')]=!this['_isCollapsed'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d72=['creator','deselect','div','ck-revision-history-sidebar__subrevision','bind','createdAt','span','_parentRevisionId','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision__date','_createdAtFormatted','fire','uiLanguage','isSelected'];(function(_0x49d346,_0x1d726a){const _0x1fc86a=function(_0x29094b){while(--_0x29094b){_0x49d346['push'](_0x49d346['shift']());}};_0x1fc86a(++_0x1d726a);}(_0x1d72,0x19a));const _0x1fc8=function(_0x49d346,_0x1d726a){_0x49d346=_0x49d346-0x0;let _0x1fc86a=_0x1d72[_0x49d346];return _0x1fc86a;};import{View as _0x2e47a3}from'ckeditor5/src/ui';import _0x5d0529 from'./revisionauthorview';import{dateToPrettyFormat as _0x49307f}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x2e47a3{constructor(_0x31e3f9,_0x5e57e3,_0x4f863e){super(_0x31e3f9);const _0x3cc009=this['bindTemplate'];this['id']=_0x5e57e3['id'],this[_0x1fc8('0xe')](_0x1fc8('0x0'))['to'](_0x5e57e3),this['set'](_0x1fc8('0x9'),!0x1),this[_0x1fc8('0xe')](_0x1fc8('0x6'))['to'](this,'createdAt',_0x346a95=>_0x346a95?_0x49307f(_0x31e3f9[_0x1fc8('0x8')],_0x346a95):void 0x0),this[_0x1fc8('0x2')]=_0x4f863e,this['setTemplate']({'tag':_0x1fc8('0xc'),'attributes':{'class':['ck','ck-reset',_0x1fc8('0x4'),_0x1fc8('0xd'),_0x3cc009['if']('isSelected',_0x1fc8('0x3'))]},'children':[{'tag':_0x1fc8('0x1'),'attributes':{'class':['ck',_0x1fc8('0x5')]},'children':[{'text':_0x3cc009['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x5d0529(_0x31e3f9,_0x5e57e3[_0x1fc8('0xa')],!0x0)]}],'on':{'click':_0x3cc009['to'](this['select'][_0x1fc8('0xe')](this))}});}['select'](){this[_0x1fc8('0x9')]=!0x0,this[_0x1fc8('0x7')]('select',{'parentId':this[_0x1fc8('0x2')]});}[_0x1fc8('0xb')](){this[_0x1fc8('0x9')]=!0x1;}}
23
+ const _0x4c1e=['ck-revision-history-sidebar__revision','creator','setTemplate','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision_selected','_parentRevisionId','bind','deselect','select','ck-reset','uiLanguage','set','fire','span','isSelected','createdAt','ck-revision-history-sidebar__revision__date'];(function(_0x110084,_0x4c1e11){const _0x566ecc=function(_0x44a513){while(--_0x44a513){_0x110084['push'](_0x110084['shift']());}};_0x566ecc(++_0x4c1e11);}(_0x4c1e,0xab));const _0x566e=function(_0x110084,_0x4c1e11){_0x110084=_0x110084-0x0;let _0x566ecc=_0x4c1e[_0x110084];return _0x566ecc;};import{View as _0x41c185}from'ckeditor5/src/ui';import _0x75605b from'./revisionauthorview';import{dateToPrettyFormat as _0x4540c9}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x41c185{constructor(_0x31443d,_0x469694,_0x56731c){super(_0x31443d);const _0x248b26=this['bindTemplate'];this['id']=_0x469694['id'],this['bind'](_0x566e('0xe'))['to'](_0x469694),this[_0x566e('0xa')](_0x566e('0xd'),!0x1),this[_0x566e('0x5')]('_createdAtFormatted')['to'](this,_0x566e('0xe'),_0x3b8a2d=>_0x3b8a2d?_0x4540c9(_0x31443d[_0x566e('0x9')],_0x3b8a2d):void 0x0),this[_0x566e('0x4')]=_0x56731c,this[_0x566e('0x1')]({'tag':'div','attributes':{'class':['ck',_0x566e('0x8'),_0x566e('0x10'),'ck-revision-history-sidebar__subrevision',_0x248b26['if']('isSelected',_0x566e('0x3'))]},'children':[{'tag':_0x566e('0xc'),'attributes':{'class':['ck',_0x566e('0xf')]},'children':[{'text':_0x248b26['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x566e('0x2')]},'children':[new _0x75605b(_0x31443d,_0x469694[_0x566e('0x0')],!0x0)]}],'on':{'click':_0x248b26['to'](this[_0x566e('0x7')][_0x566e('0x5')](this))}});}[_0x566e('0x7')](){this[_0x566e('0xd')]=!0x0,this[_0x566e('0xb')](_0x566e('0x7'),{'parentId':this[_0x566e('0x4')]});}[_0x566e('0x6')](){this[_0x566e('0xd')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1de0=['toLocaleDateString','numeric'];(function(_0x9d051a,_0x1de079){var _0x351472=function(_0x11973a){while(--_0x11973a){_0x9d051a['push'](_0x9d051a['shift']());}};_0x351472(++_0x1de079);}(_0x1de0,0x8d));var _0x3514=function(_0x9d051a,_0x1de079){_0x9d051a=_0x9d051a-0x0;var _0x351472=_0x1de0[_0x9d051a];return _0x351472;};export function dateToPrettyFormat(_0x4c8c8e,_0xc9886f){return _0xc9886f[_0x3514('0x1')](_0x4c8c8e,{'month':'long','day':'numeric'})+',\x20'+_0xc9886f['toLocaleTimeString'](_0x4c8c8e,{'hour':_0x3514('0x0'),'minute':_0x3514('0x0')});}
23
+ var _0x5690=['toLocaleTimeString','numeric','long','toLocaleDateString'];(function(_0x54bf8d,_0x569082){var _0x4d9528=function(_0x4a8fe7){while(--_0x4a8fe7){_0x54bf8d['push'](_0x54bf8d['shift']());}};_0x4d9528(++_0x569082);}(_0x5690,0x1c8));var _0x4d95=function(_0x54bf8d,_0x569082){_0x54bf8d=_0x54bf8d-0x0;var _0x4d9528=_0x5690[_0x54bf8d];return _0x4d9528;};export function dateToPrettyFormat(_0x3269ea,_0x2f8efe){return _0x2f8efe[_0x4d95('0x3')](_0x3269ea,{'month':_0x4d95('0x2'),'day':'numeric'})+',\x20'+_0x2f8efe[_0x4d95('0x0')](_0x3269ea,{'hour':_0x4d95('0x1'),'minute':_0x4d95('0x1')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a79=['check','focusTracker','forEach','revisionName','cancelButtonView','arrowup','submit','_createButton','_focusables','extendTemplate','stopPropagation','focusFirst','Name\x20of\x20the\x20revision\x20(optional)','ck-responsive-form','setTemplate','cancel','revisionNameInputView','_focusCycler','value','set','keystrokes','arrowdown','locale','focus','type','form','arrowright','ck-button-save','Save','render','fieldView','saveButtonView','_createRevisionNameInput','element','ck-button-cancel','220','ck-revision-history-save-revision-form','add','trim','revisionNameInputValue','tab','label'];(function(_0x520f6a,_0x3a79aa){const _0x493fdf=function(_0x4ef1bb){while(--_0x4ef1bb){_0x520f6a['push'](_0x520f6a['shift']());}};_0x493fdf(++_0x3a79aa);}(_0x3a79,0x1bd));const _0x493f=function(_0x520f6a,_0x3a79aa){_0x520f6a=_0x520f6a-0x0;let _0x493fdf=_0x3a79[_0x520f6a];return _0x493fdf;};import{icons as _0x22a66c}from'ckeditor5/src/core';import{ButtonView as _0x4447fd,FocusCycler as _0x38e16d,LabeledFieldView as _0x59111b,View as _0x14c0cd,ViewCollection as _0x289dac,createLabeledInputText as _0x1f2603,injectCssTransitionDisabler as _0x237f0b,submitHandler as _0x6a2413}from'ckeditor5/src/ui';import{FocusTracker as _0x4fda7a,KeystrokeHandler as _0x34f6ba}from'ckeditor5/src/utils';import{getTranslation as _0x519cfe}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x14c0cd{constructor(_0x2ed740){super(_0x2ed740),this[_0x493f('0x12')]=new _0x4fda7a(),this[_0x493f('0x25')]=new _0x34f6ba(),this[_0x493f('0x24')](_0x493f('0xe'),''),this[_0x493f('0x21')]=this[_0x493f('0x7')](),this[_0x493f('0x6')]=this[_0x493f('0x18')](_0x519cfe(_0x2ed740,_0x493f('0x3')),_0x22a66c[_0x493f('0x11')],_0x493f('0x2')),this[_0x493f('0x6')][_0x493f('0x29')]=_0x493f('0x17'),this[_0x493f('0x15')]=this['_createButton'](_0x519cfe(_0x2ed740,'Cancel'),_0x22a66c['cancel'],_0x493f('0x9'),_0x493f('0x20')),this[_0x493f('0x19')]=new _0x289dac(),this[_0x493f('0x22')]=new _0x38e16d({'focusables':this[_0x493f('0x19')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x493f('0x25')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x493f('0xf')}}),this[_0x493f('0x1f')]({'tag':_0x493f('0x0'),'attributes':{'class':['ck',_0x493f('0xb'),_0x493f('0x1e')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x493f('0x6')],this[_0x493f('0x15')]]}),_0x237f0b(this);}[_0x493f('0x4')](){super[_0x493f('0x4')](),_0x6a2413({'view':this}),([this['revisionNameInputView'],this[_0x493f('0x6')],this[_0x493f('0x15')]][_0x493f('0x13')](_0x2e40e4=>{this['_focusables']['add'](_0x2e40e4),this[_0x493f('0x12')][_0x493f('0xc')](_0x2e40e4[_0x493f('0x8')]);}),this[_0x493f('0x25')]['listenTo'](this[_0x493f('0x8')]));const _0x1aea29=_0x3a46f0=>_0x3a46f0[_0x493f('0x1b')]();this[_0x493f('0x25')][_0x493f('0x24')](_0x493f('0x1'),_0x1aea29),this[_0x493f('0x25')][_0x493f('0x24')]('arrowleft',_0x1aea29),this[_0x493f('0x25')][_0x493f('0x24')](_0x493f('0x16'),_0x1aea29),this[_0x493f('0x25')][_0x493f('0x24')](_0x493f('0x26'),_0x1aea29);}[_0x493f('0x28')](){this[_0x493f('0x22')][_0x493f('0x1c')]();}get[_0x493f('0x14')](){return this[_0x493f('0x21')]['fieldView']['element'][_0x493f('0x23')][_0x493f('0xd')]();}set[_0x493f('0x14')](_0x337d90){this[_0x493f('0x21')][_0x493f('0x5')][_0x493f('0x8')][_0x493f('0x23')]=_0x337d90['trim']();}['reset'](){this[_0x493f('0x21')][_0x493f('0x5')][_0x493f('0x8')][_0x493f('0x23')]='';}[_0x493f('0x7')](){const _0x5ce176=new _0x59111b(this[_0x493f('0x27')],_0x1f2603),_0x3a3e94=_0x5ce176[_0x493f('0x5')];return _0x3a3e94[_0x493f('0x1a')]({'attributes':{'maxlength':_0x493f('0xa')}}),_0x5ce176[_0x493f('0x10')]=_0x519cfe(this[_0x493f('0x27')],_0x493f('0x1d')),_0x3a3e94['on']('input',()=>{this[_0x493f('0xe')]=_0x3a3e94[_0x493f('0x8')][_0x493f('0x23')][_0x493f('0xd')]();}),_0x5ce176;}[_0x493f('0x18')](_0x9ba289,_0x33bf8d,_0x237df9,_0x269454){const _0x1447d9=new _0x4447fd(this[_0x493f('0x27')]);return _0x1447d9[_0x493f('0x24')]({'label':_0x9ba289,'icon':_0x33bf8d,'tooltip':!0x0}),_0x1447d9[_0x493f('0x1a')]({'attributes':{'class':_0x237df9}}),_0x269454&&_0x1447d9['delegate']('execute')['to'](this,_0x269454),_0x1447d9;}}
23
+ const _0xeac8=['revisionNameInputView','ck-responsive-form','locale','type','extendTemplate','arrowleft','Cancel','add','_focusCycler','focusFirst','Name\x20of\x20the\x20revision\x20(optional)','_createButton','Save','_focusables','value','keystrokes','input','focusTracker','ck-button-cancel','form','arrowdown','forEach','focus','fieldView','set','_createRevisionNameInput','submit','arrowup','ck-button-save','saveButtonView','reset','arrowright','check','revisionName','render','element','stopPropagation','label','trim','revisionNameInputValue','cancelButtonView'];(function(_0x282b4c,_0xeac874){const _0x4198a7=function(_0x3793b6){while(--_0x3793b6){_0x282b4c['push'](_0x282b4c['shift']());}};_0x4198a7(++_0xeac874);}(_0xeac8,0x10c));const _0x4198=function(_0x282b4c,_0xeac874){_0x282b4c=_0x282b4c-0x0;let _0x4198a7=_0xeac8[_0x282b4c];return _0x4198a7;};import{icons as _0x2dd3c2}from'ckeditor5/src/core';import{ButtonView as _0x5a1e0d,FocusCycler as _0x3ab011,LabeledFieldView as _0x3249b9,View as _0x5b7c74,ViewCollection as _0x298f7e,createLabeledInputText as _0x19b749,injectCssTransitionDisabler as _0x5cd4e2,submitHandler as _0xd78987}from'ckeditor5/src/ui';import{FocusTracker as _0x367cb8,KeystrokeHandler as _0x234dd2}from'ckeditor5/src/utils';import{getTranslation as _0x288e32}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x5b7c74{constructor(_0x5bc0f5){super(_0x5bc0f5),this[_0x4198('0x24')]=new _0x367cb8(),this['keystrokes']=new _0x234dd2(),this['set'](_0x4198('0x11'),''),this[_0x4198('0x13')]=this[_0x4198('0x3')](),this['saveButtonView']=this['_createButton'](_0x288e32(_0x5bc0f5,_0x4198('0x1f')),_0x2dd3c2[_0x4198('0xa')],_0x4198('0x6')),this['saveButtonView'][_0x4198('0x16')]=_0x4198('0x4'),this[_0x4198('0x12')]=this[_0x4198('0x1e')](_0x288e32(_0x5bc0f5,_0x4198('0x19')),_0x2dd3c2['cancel'],_0x4198('0x25'),'cancel'),this[_0x4198('0x20')]=new _0x298f7e(),this['_focusCycler']=new _0x3ab011({'focusables':this['_focusables'],'focusTracker':this[_0x4198('0x24')],'keystrokeHandler':this[_0x4198('0x22')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['setTemplate']({'tag':_0x4198('0x26'),'attributes':{'class':['ck','ck-revision-history-save-revision-form',_0x4198('0x14')],'tabindex':'-1'},'children':[this[_0x4198('0x13')],this['saveButtonView'],this[_0x4198('0x12')]]}),_0x5cd4e2(this);}[_0x4198('0xc')](){super[_0x4198('0xc')](),_0xd78987({'view':this}),([this[_0x4198('0x13')],this[_0x4198('0x7')],this[_0x4198('0x12')]][_0x4198('0x28')](_0x2206df=>{this[_0x4198('0x20')][_0x4198('0x1a')](_0x2206df),this[_0x4198('0x24')]['add'](_0x2206df['element']);}),this[_0x4198('0x22')]['listenTo'](this[_0x4198('0xd')]));const _0x1cbe10=_0x245276=>_0x245276[_0x4198('0xe')]();this[_0x4198('0x22')][_0x4198('0x2')](_0x4198('0x9'),_0x1cbe10),this[_0x4198('0x22')][_0x4198('0x2')](_0x4198('0x18'),_0x1cbe10),this['keystrokes'][_0x4198('0x2')](_0x4198('0x5'),_0x1cbe10),this[_0x4198('0x22')][_0x4198('0x2')](_0x4198('0x27'),_0x1cbe10);}[_0x4198('0x0')](){this[_0x4198('0x1b')][_0x4198('0x1c')]();}get[_0x4198('0xb')](){return this[_0x4198('0x13')][_0x4198('0x1')][_0x4198('0xd')]['value'][_0x4198('0x10')]();}set['revisionName'](_0x5c1ae1){this[_0x4198('0x13')]['fieldView'][_0x4198('0xd')][_0x4198('0x21')]=_0x5c1ae1[_0x4198('0x10')]();}[_0x4198('0x8')](){this[_0x4198('0x13')]['fieldView']['element'][_0x4198('0x21')]='';}[_0x4198('0x3')](){const _0x3d10af=new _0x3249b9(this[_0x4198('0x15')],_0x19b749),_0x26c88b=_0x3d10af[_0x4198('0x1')];return _0x26c88b[_0x4198('0x17')]({'attributes':{'maxlength':'220'}}),_0x3d10af[_0x4198('0xf')]=_0x288e32(this['locale'],_0x4198('0x1d')),_0x26c88b['on'](_0x4198('0x23'),()=>{this[_0x4198('0x11')]=_0x26c88b['element'][_0x4198('0x21')]['trim']();}),_0x3d10af;}[_0x4198('0x1e')](_0x2ff035,_0x59ca6f,_0x27a368,_0x1eb8ba){const _0x427365=new _0x5a1e0d(this[_0x4198('0x15')]);return _0x427365[_0x4198('0x2')]({'label':_0x2ff035,'icon':_0x59ca6f,'tooltip':!0x0}),_0x427365[_0x4198('0x17')]({'attributes':{'class':_0x27a368}}),_0x1eb8ba&&_0x427365['delegate']('execute')['to'](this,_0x1eb8ba),_0x427365;}}