@ckeditor/ckeditor5-revision-history 34.1.0 → 35.1.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 (99) hide show
  1. package/README.md +1 -1
  2. package/build/revision-history.js +1 -1
  3. package/build/translations/ar.js +1 -0
  4. package/build/translations/bg.js +1 -0
  5. package/build/translations/bn.js +1 -0
  6. package/build/translations/ca.js +1 -0
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/es.js +1 -1
  10. package/build/translations/et.js +1 -1
  11. package/build/translations/fi.js +1 -0
  12. package/build/translations/fr.js +1 -1
  13. package/build/translations/he.js +1 -1
  14. package/build/translations/hi.js +1 -1
  15. package/build/translations/hu.js +1 -1
  16. package/build/translations/id.js +1 -1
  17. package/build/translations/it.js +1 -1
  18. package/build/translations/ja.js +1 -1
  19. package/build/translations/ko.js +1 -1
  20. package/build/translations/lt.js +1 -0
  21. package/build/translations/ms.js +1 -0
  22. package/build/translations/nl.js +1 -1
  23. package/build/translations/no.js +1 -1
  24. package/build/translations/pl.js +1 -1
  25. package/build/translations/pt-br.js +1 -1
  26. package/build/translations/pt.js +1 -0
  27. package/build/translations/ro.js +1 -1
  28. package/build/translations/ru.js +1 -1
  29. package/build/translations/sr.js +1 -1
  30. package/build/translations/sv.js +1 -0
  31. package/build/translations/th.js +1 -0
  32. package/build/translations/tr.js +1 -1
  33. package/build/translations/uk.js +1 -1
  34. package/build/translations/vi.js +1 -1
  35. package/build/translations/zh.js +1 -1
  36. package/ckeditor5-metadata.json +1 -1
  37. package/lang/translations/ar.po +127 -0
  38. package/lang/translations/bg.po +123 -0
  39. package/lang/translations/bn.po +123 -0
  40. package/lang/translations/ca.po +123 -0
  41. package/lang/translations/da.po +25 -25
  42. package/lang/translations/de.po +3 -3
  43. package/lang/translations/es.po +2 -1
  44. package/lang/translations/et.po +25 -25
  45. package/lang/translations/fi.po +123 -0
  46. package/lang/translations/fr.po +25 -24
  47. package/lang/translations/he.po +28 -28
  48. package/lang/translations/hi.po +25 -25
  49. package/lang/translations/hu.po +19 -19
  50. package/lang/translations/id.po +13 -13
  51. package/lang/translations/it.po +2 -1
  52. package/lang/translations/ja.po +25 -25
  53. package/lang/translations/ko.po +24 -24
  54. package/lang/translations/lt.po +125 -0
  55. package/lang/translations/ms.po +122 -0
  56. package/lang/translations/nl.po +3 -3
  57. package/lang/translations/no.po +25 -25
  58. package/lang/translations/pl.po +5 -5
  59. package/lang/translations/pt-br.po +2 -1
  60. package/lang/translations/pt.po +124 -0
  61. package/lang/translations/ro.po +6 -6
  62. package/lang/translations/ru.po +27 -27
  63. package/lang/translations/sr.po +3 -3
  64. package/lang/translations/sv.po +123 -0
  65. package/lang/translations/th.po +122 -0
  66. package/lang/translations/tr.po +6 -6
  67. package/lang/translations/uk.po +27 -27
  68. package/lang/translations/vi.po +25 -25
  69. package/lang/translations/zh.po +23 -23
  70. package/package.json +7 -7
  71. package/src/changeitem.js +1 -1
  72. package/src/editor/revisionviewereditor.js +1 -1
  73. package/src/editor/revisionviewereditorui.js +1 -1
  74. package/src/editor/revisionviewereditoruiview.js +1 -1
  75. package/src/revision.js +1 -1
  76. package/src/revisiondiff.js +1 -1
  77. package/src/revisionhistory.js +1 -1
  78. package/src/revisionsrepository.js +1 -1
  79. package/src/revisiontracker.js +1 -1
  80. package/src/revisionviewer.js +1 -1
  81. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  82. package/src/ui/revision/revisionauthorview.js +1 -1
  83. package/src/ui/revision/revisionnameview.js +1 -1
  84. package/src/ui/revision/revisionview.js +1 -1
  85. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  86. package/src/ui/revision/subrevisionview.js +1 -1
  87. package/src/ui/revision/utils.js +1 -1
  88. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  89. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  90. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  91. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  92. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  93. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  94. package/src/ui/revisionssidebar/utils.js +1 -1
  95. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  96. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  97. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  98. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  99. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33f0=['readOnlyMode','nextSibling','marked','_markInsertions','restoreRevisionCallback','_makeModelFromViewString','revision','enqueueChange','isIncorrect','roots','test','index','htmlProcessor','toViewPosition','_getRevisionsRange','span','isRemoved','vid_end','endIndex','_getViewObj','ck-suggestion-marker-','bindElementToMarker','_data','string','target','setAttribute','insertions','elementEnd','vid_start','destroy','bind','code','getAttribute','observeMarkers','diffData','listenTo','downcastDispatcher','_markMarkers','refresh','includes','createRangeIn','changes','ck-suggestion-marker-merge','_getViewForChange','config','push','consume','_threeWayMerge','numberOfChanges','distance','showPreviousChange','attribute:vid','data-change-id','attributes','start','stopListening','getRevisionData','setData','commands','suggestion','splice','add','processor','getRootNames','currentChangeNumber','elementStart','resolve','_appendChild','<p></p>','backward','_removeUnsupportedChanges','editingDowncast','change','maxOffset','removeMarker:revision','offsetSize','_findChangeIdFromDomTarget','markers','get','_getChangeFromId','startIndex','all','view','nextPosition','diff','_cleanUp','consumable','revision-start','-new','reconvertMarker','isReady','writer','deletion','ck-editor__editable__overlay','next','activeChange','vid','abs','ck-suggestion-preview-marker','userId','document','item','softBreak','conversion','getChild','unshift','isAtEnd','for','slice','_fixObsoleteTags','isBefore','change:numberOfChanges','execute','upcast','viewItem','keys','markerToData','getIndex','isInline','showNextChange','_changeView','set','_update','isAdded','authors','values','type','isContent','change:isReady','forEach','data','isSuggestion','_removeMissingPairs','parse','locale','RevisionsRepository','text','delete','dataDowncast','newRevisionId','_markMismatchedRemovedTags','_balloon','done','shift','_setDistance','_cleanMarkers','mousedown','useFillerType','revision-end','markersStart','nodeAfter','markerNameToElements','children','previousPosition','merge','clear','parent','modelRange','addClass','isAfter','editing','toData','has','getRoot','change:activeView','createPositionBefore','low','revision:','split','length','level','pluginName','getRevision','compare','first','revisionHistoryLabel','toModel','addMarker:revision','highest','startsWith','getCustomProperty','insert','revisionHistory','isLimit','model','_refreshStartEndIndex','wrap','map','side','addRevision','_makeTape','then','markersEnd','getItems','toViewRange','element','clearForceDisabled','editor','toViewElement','removeMarker','_removeRevisionMarkers','stop','deletions','end','change:isEnabled','_processTape','schema','isAddSuggestion','loadRevisionData','createPositionFromPath','forward','hasClass','mapper','ck-suggestion-preview-marker-','getAttributes','high','isRemoveSuggestion','error','filter','createUIElement','change:isReadOnly','activeView','isObject','restoreRevision','_step','sort','createRange','pairId','data-revision-','_changeIdToChange','insertion','_target','uiElement','ck-suggestion-marker--active','isEnabled','showStack','markerName','_setConversion','_joinTapes','_revisions','markerRange','adapter','repository','range','dataToMarker','change:activeChange','addHighlight','POSITIVE_INFINITY','unbindElementFromMarkerName','object','concat','plugins','hasAttribute','remove','_initInteractions','isBlock','pop','_getDiff','_makeModelFromTape','markerToHighlight','isEqual','getWalker','isAtStart','from','RevisionViewer','name','removeMarker:suggestion'];(function(_0x1f37d0,_0x33f094){const _0x3683b3=function(_0x259cff){while(--_0x259cff){_0x1f37d0['push'](_0x1f37d0['shift']());}};_0x3683b3(++_0x33f094);}(_0x33f0,0xe7));const _0x3683=function(_0x1f37d0,_0x33f094){_0x1f37d0=_0x1f37d0-0x0;let _0x3683b3=_0x33f0[_0x1f37d0];return _0x3683b3;};import{Plugin as _0x18b0df,Command as _0x4aaa93}from'ckeditor5/src/core';import{ObservableMixin as _0x47cfb5,mix as _0xa2a605,scrollViewportToShowTarget as _0x2bf980}from'ckeditor5/src/utils';import{ContextualBalloon as _0x2040f6}from'ckeditor5/src/ui';import{DocumentFragment as _0x56c45c,Element as _0x1b2555,Text as _0x2d360a,ViewDocumentFragment as _0x15e778,ViewText as _0x567a3a,ViewElement as _0x144076,ViewContainerElement as _0x290635,ViewAttributeElement as _0x348f76,ViewEmptyElement as _0x4557f8,ViewRawElement as _0xe6832,ViewUIElement as _0x349562}from'ckeditor5/src/engine';import{Users as _0x2ed604,getMarkerDomElement as _0x4b2ed6}from'ckeditor5-collaboration/src/collaboration-core';import _0x7a460 from'./ui/revisionviewer/changedetailsview';import _0x2a402c from'./revisionsrepository';import _0x2f83f8 from'./changeitem';import _0x52cb5d from'./revisiondiff';import'../theme/revisionviewer.css';const T={'c':_0x290635,'a':_0x348f76,'e':_0x4557f8,'r':_0xe6832,'u':_0x349562};export default class d extends _0x18b0df{static get[_0x3683('0xcf')](){return'RevisionViewer';}static get['requires'](){return[_0x2ed604,_0x2040f6,_0x2a402c];}constructor(..._0x4a6c1c){super(..._0x4a6c1c),this[_0x3683('0xb')]=this[_0x3683('0xe9')][_0x3683('0x14')][_0x3683('0x72')](_0x3683('0xab')),this[_0x3683('0x9d')]('activeChange',null),this[_0x3683('0x9d')]('activeView',null),this[_0x3683('0x9d')]('diff',null),this[_0x3683('0x9d')](_0x3683('0x7e'),!0x1),this[_0x3683('0x9d')](_0x3683('0x3'),!0x0),this['on']('change:isEnabled',(_0x50260d,_0x28142c,_0x459a7c)=>{this[_0x3683('0x83')]=null,this[_0x3683('0x101')]=null,this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x76')][_0x3683('0x6c')](_0x5bb5ec=>{for(const _0xaf6286 of this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x76')][_0x3683('0x88')][_0x3683('0x2d')])_0x459a7c?_0x5bb5ec['removeClass']('ck-editor__editable__overlay',_0xaf6286):_0x5bb5ec[_0x3683('0xc2')](_0x3683('0x81'),_0xaf6286);});}),this[_0x3683('0x42')]('isNavigationMode')['to'](this,_0x3683('0x83'),_0x2f1f1a=>null!==_0x2f1f1a),this['bind'](_0x3683('0x64'))['to'](this,'isReady',this,'diff',this,'activeChange',(_0xe2d2c3,_0x24518b,_0x28c8da)=>_0xe2d2c3&&_0x28c8da?_0x24518b[_0x3683('0x4d')]['getIndex'](_0x28c8da):0x0),this['bind'](_0x3683('0x54'))['to'](this,_0x3683('0x7e'),this,'diff',(_0xde5f09,_0x92ed57)=>_0xde5f09?_0x92ed57['changes'][_0x3683('0xcd')]:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this[_0x3683('0xa')]=null,this[_0x3683('0xb1')]=this[_0x3683('0xe9')][_0x3683('0x14')][_0x3683('0x72')](_0x2040f6);}['init'](){const _0x523279=this[_0x3683('0xe9')];_0x523279[_0x3683('0xa6')][_0x3683('0x30')][_0x3683('0xb7')](_0x3683('0x26'));const _0x4b038e=new X(_0x523279,{'direction':_0x3683('0x69')}),_0x4b970c=new X(_0x523279,{'direction':'forward'});_0x523279[_0x3683('0x5e')][_0x3683('0x61')](_0x3683('0x56'),_0x4b038e),_0x523279['commands'][_0x3683('0x61')](_0x3683('0x9b'),_0x4b970c),_0x523279[_0x3683('0x5e')][_0x3683('0x61')](_0x3683('0x103'),new Q(_0x523279)),this['on'](_0x3683('0x93'),()=>{_0x4b038e[_0x3683('0x4a')](),_0x4b970c['refresh']();}),this[_0x3683('0x6')](),this[_0x3683('0x17')](),_0x523279['enableReadOnlyMode']('revision-viewer');}async[_0x3683('0x5c')](_0xd8ec48){await this[_0x3683('0xf4')](_0xd8ec48);const _0x8a9f8f={};for(const _0x35eb30 in _0xd8ec48[_0x3683('0x46')]){const _0x1958cc=this[_0x3683('0xec')](JSON[_0x3683('0xa9')](_0xd8ec48[_0x3683('0x46')][_0x35eb30][_0x3683('0x3e')])),_0x3757fa=this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x76')][_0x3683('0x88')],_0x7a9275=new _0x15e778(_0x3757fa,_0x1958cc['map'](_0x3f60e7=>this[_0x3683('0x37')](_0x3f60e7)));_0x8a9f8f[_0x35eb30]=this['editor'][_0x3683('0xa6')][_0x3683('0x62')][_0x3683('0xc5')](_0x7a9275);}return _0x8a9f8f;}['_removeRevisionMarkers'](_0x6a2a32){return(_0x6a2a32=_0x6a2a32[_0x3683('0xfe')](_0xaa0855=>!_0xaa0855[_0x3683('0x22')]||_0x3683('0x7b')!==_0xaa0855[_0x3683('0x22')]&&_0x3683('0xb8')!==_0xaa0855['name']))[_0x3683('0xa5')](_0x1da8ef=>{_0x3683('0x3b')!=typeof _0x1da8ef&&(_0x1da8ef[_0x3683('0xbc')]=this['_removeRevisionMarkers'](_0x1da8ef[_0x3683('0xbc')]),_0x1da8ef[_0x3683('0x59')]=_0x1da8ef[_0x3683('0x59')][_0x3683('0xfe')](_0x4768d1=>!_0x4768d1[0x0][_0x3683('0xd7')](_0x3683('0x108'))));}),_0x6a2a32;}[_0x3683('0xd1')](_0x2bedac,_0x2608b6,_0x849978=!0x1){if(!this['isEnabled'])return;const _0x3eb857=this[_0x3683('0x78')],_0x1defff=this[_0x3683('0xb')],_0x1a8d34=_0x3683('0x3b')==typeof _0x2bedac?_0x1defff[_0x3683('0xd0')](_0x2bedac):_0x2bedac,_0x26cff6=_0x3683('0x3b')==typeof _0x2608b6?_0x1defff['getRevision'](_0x2608b6):_0x2608b6,_0x2b94a9=_0x1a8d34['id'],_0x304174=_0x26cff6?_0x26cff6['id']:null;if(!_0x849978&&this['diff']&&this[_0x3683('0x78')]['newRevisionId']===_0x2b94a9&&this[_0x3683('0x78')]['oldRevisionId']===_0x304174)return Promise['resolve']();this[_0x3683('0x7e')]=!0x1,this[_0x3683('0x101')]=null,this[_0x3683('0x83')]=null,this[_0x3683('0x78')]=new _0x52cb5d(_0x2b94a9,_0x304174);const _0x47434b=this[_0x3683('0x32')](_0x1a8d34,_0x26cff6,!0x0)['map'](_0x1aa41c=>this[_0x3683('0xf4')](_0x1aa41c));return _0x47434b[_0x3683('0x51')](new Promise(_0x3e53bc=>{setTimeout(_0x3e53bc,0x14);})),Promise[_0x3683('0x75')](_0x47434b)[_0x3683('0xe3')](()=>{if(!this[_0x3683('0x3')])return;this[_0x3683('0x79')]();const _0x5e0359=this[_0x3683('0x1a')](_0x2b94a9,_0x304174);this[_0x3683('0x78')]['_setData'](_0x5e0359);for(const _0x3dd7ba of this[_0x3683('0x78')][_0x3683('0x4d')])this[_0x3683('0x109')]['set'](_0x3dd7ba['id'],_0x3dd7ba);this['editor']['model'][_0x3683('0x2b')]({'isUndoable':!0x1},_0x34bc56=>{for(const _0x18e002 of Object['keys'](_0x5e0359['model'])){const _0x934155=this[_0x3683('0xe9')]['model']['document'][_0x3683('0xc7')](_0x18e002);_0x34bc56[_0x3683('0x16')](_0x34bc56['createRangeIn'](_0x934155)),_0x34bc56[_0x3683('0xd9')](_0x5e0359[_0x3683('0xdc')][_0x18e002],_0x934155,0x0);}}),this['isReady']=!0x0;})['catch'](_0x180358=>{console[_0x3683('0xfd')](_0x180358),this[_0x3683('0x79')](),_0x3eb857?this[_0x3683('0x78')]=_0x3eb857:this[_0x3683('0xe9')][_0x3683('0x5d')](_0x3683('0x68')),this[_0x3683('0x7e')]=!0x0;});}[_0x3683('0x41')](){this[_0x3683('0x101')]=null,this['_changeView']&&this[_0x3683('0x9c')][_0x3683('0x41')]();}['addRevisionData'](_0x3d50e4,_0x1bc7ee){const _0x2a4555=this[_0x3683('0xb')]['createRevision'](_0x3d50e4);return _0x2a4555['on'](_0x3683('0x9e'),(_0x3908b4,_0x3230f0,_0x18258f)=>_0x1bc7ee(_0x3230f0,_0x18258f,_0x2a4555)),this[_0x3683('0xb')][_0x3683('0xe1')](_0x2a4555),_0x2a4555;}[_0x3683('0xf4')](_0x41d1b5){if(!_0x41d1b5||_0x41d1b5['diffData'])return Promise[_0x3683('0x66')]();{const _0x3ab0aa=this[_0x3683('0xe9')][_0x3683('0x50')]['get']('collaboration.channelId');return this[_0x3683('0xa')][_0x3683('0xd0')]({'channelId':_0x3ab0aa,'revisionId':_0x41d1b5['id']})[_0x3683('0xe3')](_0x5acc47=>{_0x41d1b5[_0x3683('0x9e')]({'diffData':_0x5acc47[_0x3683('0x46')]},!0x0);});}}[_0x3683('0x79')](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x3683('0x9c')]&&this['_changeView'][_0x3683('0x41')](),this['_changeView']=null,this[_0x3683('0x109')][_0x3683('0xbf')]();}[_0x3683('0xe2')](_0x23cec4){const _0xf76f09=Array[_0x3683('0x20')](_0x23cec4[_0x3683('0x71')])[_0x3683('0xfe')](([_0x8ee4e5,_0x4e7e52])=>_0x8ee4e5[_0x3683('0xd7')](_0x3683('0xcb'))&&!_0x4e7e52['isCollapsed']),_0x598414=Array[_0x3683('0x20')](this[_0x3683('0xe9')][_0x3683('0xdc')][_0x3683('0x4c')](_0x23cec4)[_0x3683('0x1e')]({'singleCharacters':!0x0}));if(0x0!=_0xf76f09['length'])for(const _0x5be978 of _0x598414){const [_0x53bb82,_0x2d5ff0]=_0xf76f09[0x0],[,_0x114662,_0x4a0b78]=_0x53bb82['split'](':');if(_0x2d5ff0['end'][_0x3683('0x1d')](_0x5be978[_0x3683('0x77')])&&_0xf76f09[_0x3683('0xb3')](),(_0x5be978[_0x3683('0xbd')][_0x3683('0x1d')](_0x2d5ff0[_0x3683('0x5a')])||_0x5be978['previousPosition']['isAfter'](_0x2d5ff0[_0x3683('0x5a')]))&&('insertion'==_0x114662?_0x5be978['isAdded']={'userId':_0x4a0b78}:_0x3683('0x80')==_0x114662&&(_0x5be978[_0x3683('0x34')]={'userId':_0x4a0b78})),0x0==_0xf76f09[_0x3683('0xcd')])break;}return _0x598414;}[_0x3683('0xdd')](_0x1bffee){const _0x144430=new Map();for(let _0x473fd7=0x0;_0x473fd7<_0x1bffee[_0x3683('0xcd')];_0x473fd7++)_0x3683('0xac')===_0x1bffee[_0x473fd7][_0x3683('0xa2')]?(_0x1bffee[_0x473fd7][_0x3683('0x89')][_0x3683('0x74')]=_0x473fd7,_0x1bffee[_0x473fd7][_0x3683('0x89')][_0x3683('0x36')]=_0x473fd7):(_0x3683('0x65')===_0x1bffee[_0x473fd7]['type']?_0x1bffee[_0x473fd7][_0x3683('0x89')][_0x3683('0x74')]=_0x473fd7:_0x3683('0x3f')===_0x1bffee[_0x473fd7][_0x3683('0xa2')]&&(_0x1bffee[_0x473fd7][_0x3683('0x89')]['endIndex']=_0x473fd7),_0x144430[_0x3683('0x9d')](_0x1bffee[_0x473fd7]['id'],_0x473fd7));for(const _0x2a8ffc of _0x144430[_0x3683('0xa1')]())_0x3683('0x65')===_0x1bffee[_0x2a8ffc][_0x3683('0xa2')]?_0x1bffee[_0x2a8ffc][_0x3683('0x89')][_0x3683('0x36')]=_0x144430['get'](_0x1bffee[_0x2a8ffc]['pairId']):_0x3683('0x3f')===_0x1bffee[_0x2a8ffc][_0x3683('0xa2')]&&(_0x1bffee[_0x2a8ffc][_0x3683('0x89')][_0x3683('0x74')]=_0x144430[_0x3683('0x72')](_0x1bffee[_0x2a8ffc][_0x3683('0x107')]));}['_processTape'](_0x2f3954){for(let _0x45d854=0x0;_0x45d854<_0x2f3954[_0x3683('0xcd')];_0x45d854++){if(_0x3683('0x65')===_0x2f3954[_0x45d854][_0x3683('0xa2')])_0x2f3954[_0x45d854][_0x3683('0x89')][_0x3683('0x74')]=_0x45d854;else{if(_0x3683('0x3f')===_0x2f3954[_0x45d854]['type']){_0x2f3954[_0x45d854][_0x3683('0x89')][_0x3683('0x36')]=_0x45d854;const _0x1e48f9=_0x2f3954[_0x45d854][_0x3683('0x89')][_0x3683('0x74')];_0x2f3954[_0x1e48f9]['pairId']=_0x2f3954[_0x45d854]['id'],_0x2f3954[_0x45d854][_0x3683('0x107')]=_0x2f3954[_0x1e48f9]['id'];}else _0x2f3954[_0x45d854][_0x3683('0x89')][_0x3683('0x74')]=_0x45d854,_0x2f3954[_0x45d854][_0x3683('0x89')][_0x3683('0x36')]=_0x45d854,_0x2f3954[_0x45d854][_0x3683('0x107')]=null;}_0x2f3954[_0x45d854][_0x3683('0xb9')]||(_0x2f3954[_0x45d854]['markersStart']=[],_0x2f3954[_0x45d854][_0x3683('0xe4')]=[]);}}['_markInsertions'](_0x1e97a3,_0x4d8e44){const _0x3bc859=_0x1e97a3[_0x3683('0xfe')](_0x49ea22=>!_0x49ea22[_0x3683('0x9f')]);for(let _0x1d80cc=0x0;_0x1d80cc<_0x4d8e44['length'];_0x1d80cc++)_0x4d8e44[_0x1d80cc][_0x3683('0x9f')]&&(_0x3bc859[_0x1d80cc][_0x3683('0x9f')]=_0x4d8e44[_0x1d80cc][_0x3683('0x9f')]);}[_0x3683('0x29')](_0x3a7215){const _0x2d931b=JSON[_0x3683('0xa9')](_0x3a7215),_0x3fea63=this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x76')][_0x3683('0x88')],_0x5b3b0a=new _0x15e778(_0x3fea63,_0x2d931b[_0x3683('0xdf')](_0x49358a=>this[_0x3683('0x37')](_0x49358a)));return this['editor'][_0x3683('0xa6')][_0x3683('0xd4')](_0x5b3b0a);}[_0x3683('0x37')](_0x282434){const _0xac2557=this[_0x3683('0xe9')][_0x3683('0xc4')]['view'][_0x3683('0x88')];if(_0x3683('0x3b')==typeof _0x282434)return new _0x567a3a(_0xac2557,_0x282434);{const _0x13e150=_0x282434[_0x3683('0xbc')][_0x3683('0xdf')](_0x518176=>this['_getViewObj'](_0x518176));return new(T[_0x282434['type']]||_0x144076)(_0xac2557,_0x282434[_0x3683('0x22')],_0x282434[_0x3683('0x59')],_0x13e150);}}['_getDiff'](_0x448958,_0x3471a7=null){const _0x2e7763=this[_0x3683('0xb')]['getRevision'](_0x448958),_0x428ffd=_0x3471a7?this['repository'][_0x3683('0xd0')](_0x3471a7):null,_0x12e596=this[_0x3683('0x32')](_0x2e7763,_0x428ffd),_0x1742b7=_0x12e596[_0x12e596[_0x3683('0xcd')]-0x1],_0x496707=new Map();for(const _0x201459 of _0x12e596){_0x201459[_0x3683('0xdc')]={};for(const _0x309456 of _0x201459[_0x3683('0xa0')])_0x496707[_0x3683('0x9d')](_0x309456['id'],_0x309456);for(const _0x352469 of this['editor'][_0x3683('0xdc')][_0x3683('0x88')][_0x3683('0x63')]())_0x201459[_0x3683('0x46')][_0x352469]||(_0x201459[_0x3683('0x46')][_0x352469]={'insertions':'[]','deletions':'[]'}),_0x201459['model'][_0x352469]={'insertions':this[_0x3683('0x29')](_0x201459[_0x3683('0x46')][_0x352469][_0x3683('0x3e')]),'deletions':this['_makeModelFromViewString'](_0x201459['diffData'][_0x352469][_0x3683('0xee')])};}const _0xfca87e={'model':{},'changes':[]};for(const _0x45e406 of this[_0x3683('0xe9')][_0x3683('0xdc')][_0x3683('0x88')][_0x3683('0x63')]()){let _0x3c4def=null,_0x418561=0x0;const _0x4ac401=new Map(Array[_0x3683('0x20')](_0x2e7763['model'][_0x45e406]['insertions']['markers'])[_0x3683('0xfe')](([_0x308567])=>!_0x308567[_0x3683('0xd7')](_0x3683('0xcb'))));let _0x1ba028=0x0;for(const _0x2c6a8b of _0x12e596){const _0x2f57dd=this[_0x3683('0xe2')](_0x2c6a8b[_0x3683('0xdc')][_0x45e406]['insertions']);_0x2c6a8b==_0x2e7763?(_0x3c4def=_0x2f57dd,_0x418561=_0x3c4def[_0x3683('0xcd')],_0x3c4def['forEach'](_0x3b7552=>{_0x3b7552['id']=_0x1ba028++;}),this[_0x3683('0xf1')](_0x3c4def)):this[_0x3683('0x27')](_0x3c4def,_0x2f57dd);const _0x279c6c=_0x3c4def[_0x3683('0xfe')](_0x222ef2=>!_0x222ef2['isAdded'])[_0x3683('0xdf')](_0xfab259=>_0xfab259['id']);let _0x38169a=0x0;const _0x86fc23=this[_0x3683('0xe2')](_0x2c6a8b[_0x3683('0xdc')][_0x45e406]['deletions']);_0x86fc23[_0x3683('0xa5')](_0x2d0f99=>{_0x2d0f99['isRemoved']?_0x2d0f99['id']=_0x418561++:_0x2d0f99['id']=_0x279c6c[_0x38169a++];}),this[_0x3683('0xf1')](_0x86fc23),this[_0x3683('0xb4')](_0x3c4def,'isAdded'),this[_0x3683('0xb4')](_0x86fc23,_0x3683('0x34')),_0x2c6a8b==_0x2e7763&&this[_0x3683('0x49')](_0x3c4def,_0x4ac401),_0x3c4def=this['_joinTapes'](_0x3c4def,_0x86fc23),this['_refreshStartEndIndex'](_0x3c4def),this[_0x3683('0xb4')](_0x3c4def,_0x3683('0x34'));}_0x3c4def=_0x3c4def[_0x3683('0xfe')](_0x483889=>!(_0x483889[_0x3683('0x9f')]&&_0x483889['isRemoved']));const _0x43139b=new Map(_0x1742b7['model'][_0x45e406][_0x3683('0xee')]['markers']),_0xe456bc=new Set(_0x4ac401[_0x3683('0x97')]());for(const _0x28329b of _0x43139b[_0x3683('0x97')]())_0xe456bc[_0x3683('0xad')](_0x28329b);this['_markSuggestions'](_0x3c4def,_0xe456bc),this[_0x3683('0x91')](_0x3c4def),_0x3c4def=this[_0x3683('0xa8')](_0x3c4def),_0x3c4def=this[_0x3683('0xb0')](_0x3c4def),_0x3c4def=this[_0x3683('0x6a')](_0x3c4def);const {root:_0xa64ae9,changes:_0x30b431}=this[_0x3683('0x1b')](_0x3c4def,_0x496707);_0xfca87e['model'][_0x45e406]=_0xa64ae9,_0xfca87e[_0x3683('0x4d')]=_0xfca87e[_0x3683('0x4d')][_0x3683('0x13')](_0x30b431);}return _0xfca87e;}[_0x3683('0x49')](_0x4f5d98,_0x122398){for(let _0x450a75=0x0;_0x450a75<_0x4f5d98[_0x3683('0xcd')];_0x450a75++)for(const [_0x12327c,_0xb21d7a]of _0x122398)_0xb21d7a[_0x3683('0x5a')][_0x3683('0x1d')](_0x4f5d98[_0x450a75][_0x3683('0xbd')])&&_0x4f5d98[_0x450a75]['markersStart'][_0x3683('0x51')](_0x12327c),_0xb21d7a['end'][_0x3683('0x1d')](_0x4f5d98[_0x450a75][_0x3683('0x77')])&&_0x4f5d98[_0x450a75][_0x3683('0xe4')][_0x3683('0x51')](_0x12327c);}[_0x3683('0x7')](_0x5adca,_0x34a7e9){let _0x544ce4=[],_0x463273=0x0,_0x5c201f=0x0;for(;_0x463273<_0x5adca[_0x3683('0xcd')]||_0x5c201f<_0x34a7e9[_0x3683('0xcd')];){const _0x1337ff=_0x5adca[_0x463273]||{},_0x170aa5=_0x34a7e9[_0x5c201f]||{};if(_0x1337ff['id']==_0x170aa5['id'])_0x463273++,_0x5c201f++,_0x544ce4[_0x3683('0x51')](_0x1337ff);else{if(_0x170aa5[_0x3683('0x34')]&&_0x1337ff['isAdded']){const {commonTape:_0x12834f,iEnd:_0x5d52d9,jEnd:_0xdaed70}=this[_0x3683('0x53')](_0x5adca,_0x463273,_0x34a7e9,_0x5c201f);_0x544ce4=_0x544ce4['concat'](_0x12834f),_0x463273=_0x5d52d9,_0x5c201f=_0xdaed70;}else _0x170aa5[_0x3683('0x34')]?(_0x5c201f++,_0x544ce4[_0x3683('0x51')](_0x170aa5)):(_0x463273++,_0x544ce4[_0x3683('0x51')](_0x1337ff));}}return _0x544ce4;}['_markSuggestions'](_0x22c662,_0x46abd5){const _0x7794b8=[];for(let _0xeb21db=0x0;_0xeb21db<_0x22c662['length'];_0xeb21db++){for(let _0x52e288=0x0;_0x52e288<_0x22c662[_0xeb21db][_0x3683('0xb9')][_0x3683('0xcd')];_0x52e288++){const _0xd4351c=_0x22c662[_0xeb21db]['markersStart'][_0x52e288];if(!_0x46abd5[_0x3683('0xc6')](_0xd4351c))continue;const {group:_0xdf3887,type:_0xaad65d,authorId:_0x5f474c}=_0x5e4437(_0xd4351c);'suggestion'!=_0xdf3887||_0x3683('0x10a')!=_0xaad65d&&'deletion'!=_0xaad65d||(_0x7794b8['unshift']({'type':_0xaad65d,'name':_0xd4351c,'userId':_0x5f474c}),_0x22c662[_0xeb21db][_0x3683('0xb9')][_0x3683('0x60')](_0x52e288,0x1),_0x52e288--);}_0x431064(_0x22c662[_0xeb21db]);for(let _0x1a77c2=0x0;_0x1a77c2<_0x22c662[_0xeb21db]['markersEnd'][_0x3683('0xcd')];_0x1a77c2++){const _0x21ed7b=_0x22c662[_0xeb21db][_0x3683('0xe4')][_0x1a77c2];if(!_0x46abd5['has'](_0x21ed7b))continue;const {group:_0x35da50,type:_0x45e4a5}=_0x5e4437(_0x21ed7b);if(_0x3683('0x5f')!=_0x35da50||_0x3683('0x10a')!=_0x45e4a5&&'deletion'!=_0x45e4a5)continue;_0x22c662[_0xeb21db][_0x3683('0xe4')][_0x3683('0x60')](_0x1a77c2,0x1),_0x1a77c2--;const _0x153bc7=_0x7794b8['findIndex'](_0x1cda87=>_0x1cda87['name']==_0x21ed7b);_0x153bc7>-0x1&&_0x7794b8['splice'](_0x153bc7,0x1);}}function _0x5e4437(_0x331883){const _0x586531=_0x331883[_0x3683('0xcc')](':');return{'group':_0x586531[0x0],'type':_0x586531[0x1],'subType':_0x586531[_0x3683('0xcd')]>=0x5?_0x586531[0x2]:null,'id':_0x586531[_0x3683('0xcd')]<0x5?_0x586531[0x2]:_0x586531[0x3],'authorId':_0x586531['length']<0x5?_0x586531[0x3]:_0x586531[0x4],'markerCount':0x6==_0x586531[_0x3683('0xcd')]?_0x586531[0x5]:null};}function _0x431064(_0x5c487a){for(let _0x5f21ca=0x0;_0x5f21ca<_0x7794b8[_0x3683('0xcd')];_0x5f21ca++){if(_0x5c487a[_0x3683('0x9f')]&&_0x3683('0x10a')==_0x7794b8[_0x5f21ca][_0x3683('0xa2')])return _0x5c487a['isAddSuggestion']=_0x7794b8[_0x5f21ca],void delete _0x5c487a['isAdded'];if(!_0x5c487a['isAdded']&&!_0x5c487a[_0x3683('0x34')]&&'deletion'==_0x7794b8[_0x5f21ca]['type'])return void(_0x5c487a[_0x3683('0xfc')]=_0x7794b8[_0x5f21ca]);}}}[_0x3683('0xb4')](_0x1e4c82,_0xfdb2b0){let _0x966bd2=0x0,_0x5e2689=!0x1;const _0x267480=new Map();for(const _0x980d75 of _0x1e4c82)_0x980d75[_0xfdb2b0]?_0x5e2689&&(_0x966bd2++,_0x5e2689=!0x1):(_0x966bd2++,_0x5e2689=!0x0),_0x267480['set'](_0x980d75['id'],_0x966bd2);for(let _0xeea8d2=0x0;_0xeea8d2<_0x1e4c82[_0x3683('0xcd')];_0xeea8d2++){if('isRemoved'==_0xfdb2b0&&_0x1e4c82[_0xeea8d2][_0x3683('0x9f')]||'isAdded'==_0xfdb2b0&&_0x1e4c82[_0xeea8d2][_0x3683('0x34')])continue;if(_0x3683('0xac')==_0x1e4c82[_0xeea8d2][_0x3683('0xa2')]){_0x1e4c82[_0xeea8d2][_0x3683('0x55')]=0x0;continue;}const _0x1eb75a=_0x267480[_0x3683('0x72')](_0x1e4c82[_0xeea8d2][_0x3683('0x107')]),_0x19a691=_0x267480[_0x3683('0x72')](_0x1e4c82[_0xeea8d2]['id']);_0x1e4c82[_0xeea8d2][_0x3683('0x55')]=_0x1eb75a-_0x19a691;}}[_0x3683('0x32')](_0x245da9,_0x2b0be1,_0x1d19cc=!0x1){const _0x41a073=[];let _0x8be308=this[_0x3683('0xb')]['getIndex'](_0x245da9),_0xcce1c=this[_0x3683('0xb')][_0x3683('0x99')](_0x2b0be1);for(-0x1==_0xcce1c&&(_0xcce1c=this[_0x3683('0xb')][_0x3683('0x8')][_0x3683('0xcd')],_0x1d19cc=!0x1);_0x8be308<_0xcce1c;)_0x41a073['push'](this[_0x3683('0xb')][_0x3683('0xd0')](_0x8be308)),_0x8be308++;return _0x1d19cc&&_0x41a073[_0x3683('0x51')](this['repository'][_0x3683('0xd0')](_0x8be308)),_0x41a073;}['_threeWayMerge'](_0x84ac1a,_0x1d6417,_0x4a1622,_0x570cc2){const _0xed4af8=this['editor'][_0x3683('0xdc')][_0x3683('0xf2')];let _0x182d1d=_0x1d6417;for(;_0x84ac1a[_0x182d1d]&&_0x84ac1a[_0x182d1d][_0x3683('0x9f')];)_0x182d1d++;let _0x1f873f=_0x570cc2;for(;_0x4a1622[_0x1f873f]&&_0x4a1622[_0x1f873f][_0x3683('0x34')];)_0x1f873f++;_0xa5306f(_0x84ac1a,_0x1d6417,_0x182d1d),_0xa5306f(_0x4a1622,_0x570cc2,_0x1f873f);const _0xfb1acc=_0x4a1622[_0x3683('0x90')](_0x570cc2,_0x1f873f)[_0x3683('0x13')](_0x84ac1a['slice'](_0x1d6417,_0x182d1d));return _0xfb1acc[_0x3683('0x105')]((_0x5adbf8,_0x42adc6)=>_0x5adbf8[_0x3683('0xe0')]!=_0x42adc6[_0x3683('0xe0')]?_0x5adbf8[_0x3683('0xe0')]-_0x42adc6[_0x3683('0xe0')]:_0x5adbf8[_0x3683('0xce')]!=_0x42adc6[_0x3683('0xce')]?_0x5adbf8[_0x3683('0xce')]-_0x42adc6[_0x3683('0xce')]:_0x5adbf8['distance']!=_0x42adc6[_0x3683('0x55')]?_0x42adc6['distance']-_0x5adbf8[_0x3683('0x55')]:!!_0x5adbf8[_0x3683('0x9f')]!=!!_0x42adc6[_0x3683('0x9f')]?-0x1==_0x5adbf8[_0x3683('0xe0')]||0x0==_0x5adbf8['side']?_0x5adbf8[_0x3683('0x9f')]?-0x1:0x1:_0x5adbf8[_0x3683('0x9f')]?0x1:-0x1:_0x5adbf8[_0x3683('0x2f')]-_0x42adc6[_0x3683('0x2f')]),{'commonTape':_0xfb1acc,'iEnd':_0x182d1d,'jEnd':_0x1f873f};function _0xa5306f(_0x376d91,_0x39191a,_0x54d8f8){let _0x307978=-0x1,_0x39e554=Number[_0x3683('0x10')],_0x1e2f09=!0x0;for(let _0x1a0878=_0x39191a;_0x1a0878<_0x54d8f8;_0x1a0878++)if(_0xed4af8[_0x3683('0x9a')](_0x376d91[_0x1a0878][_0x3683('0x89')])||(_0x1e2f09=!0x1),_0x376d91[_0x1a0878][_0x3683('0x89')][_0x3683('0x74')]<_0x39191a&&(_0x307978=_0x1a0878),_0x376d91[_0x1a0878][_0x3683('0x89')]['endIndex']>=_0x54d8f8){_0x39e554=_0x1a0878;break;}_0x1e2f09&&(_0x307978=_0x54d8f8-0x1);for(let _0x2d037d=_0x39191a;_0x2d037d<_0x54d8f8;_0x2d037d++)_0x376d91[_0x2d037d][_0x3683('0xe0')]=_0x2d037d<=_0x307978?-0x1:_0x2d037d<_0x39e554?0x0:0x1,_0x376d91[_0x2d037d]['index']=_0x2d037d;let _0x4535bd=0x0;for(let _0x152008=_0x39191a;_0x152008<=_0x307978;_0x152008++)0x0==_0x376d91[_0x152008][_0x3683('0x55')]?_0x376d91[_0x152008]['level']=_0x4535bd:(_0x4535bd++,_0x376d91[_0x152008][_0x3683('0xce')]=_0x4535bd,_0x4535bd++);for(let _0x38c2c5=_0x39191a;_0x38c2c5<_0x54d8f8;_0x38c2c5++)0x0==_0x376d91[_0x38c2c5][_0x3683('0xe0')]&&(_0x376d91[_0x38c2c5][_0x3683('0xce')]=_0x4535bd);_0x4535bd=0x0;for(let _0x392709=_0x54d8f8-0x1;_0x392709>=_0x39e554;_0x392709--)0x0==_0x376d91[_0x392709][_0x3683('0x55')]?_0x376d91[_0x392709][_0x3683('0xce')]=_0x4535bd:(_0x4535bd--,_0x376d91[_0x392709]['level']=_0x4535bd,_0x4535bd--);}}[_0x3683('0x91')](_0x5646d6){const _0x1648fe=new Map(),_0x47a53c=this[_0x3683('0xe9')][_0x3683('0xdc')]['schema'];for(let _0x255080=0x1;_0x255080<_0x5646d6[_0x3683('0xcd')];_0x255080++){let _0x21e071,_0x3e7c3c,_0x346ed6;const _0xcbc916=_0x5646d6[_0x255080],_0x1d9da8=_0x5646d6[_0x255080-0x1];if(_0x3683('0xac')==_0xcbc916['type'])continue;if(_0xcbc916['type']!=_0x1d9da8['type'])continue;if(!_0x47a53c['isBlock'](_0x1d9da8['item'])||_0x47a53c[_0x3683('0xdb')](_0x1d9da8[_0x3683('0x89')]))continue;if(!_0x47a53c[_0x3683('0x18')](_0xcbc916[_0x3683('0x89')])||_0x47a53c[_0x3683('0xdb')](_0xcbc916['item']))continue;if((_0x5646d6[_0x255080][_0x3683('0x9f')]||_0x5646d6[_0x255080][_0x3683('0xf3')])&&_0x5646d6[_0x255080-0x1][_0x3683('0x34')])_0x21e071=_0x5646d6[_0x255080],_0x3e7c3c=_0x5646d6[_0x255080-0x1],_0x346ed6=_0x255080-0x1;else{if(!_0x5646d6[_0x255080][_0x3683('0x34')]||!_0x5646d6[_0x255080-0x1][_0x3683('0x9f')]&&!_0x5646d6[_0x255080-0x1][_0x3683('0xf3')])continue;_0x21e071=_0x5646d6[_0x255080-0x1],_0x3e7c3c=_0x5646d6[_0x255080],_0x346ed6=_0x255080;}const _0x16a181=_0x21e071[_0x3683('0xce')]==_0x3e7c3c[_0x3683('0xce')],_0x516122=Math[_0x3683('0x85')](_0x21e071[_0x3683('0xce')])<Math['abs'](_0x3e7c3c[_0x3683('0xce')])&&0x0==_0x3e7c3c['distance'];(_0x16a181||_0x516122)&&(_0x1648fe['set'](_0x3e7c3c['id'],_0x21e071['id']),_0x5646d6[_0x3683('0x60')](_0x346ed6,0x1),_0x255080--,_0x21e071[_0x3683('0x9f')]=!0x1);}for(let _0x5a6ca5=0x0;_0x5a6ca5<_0x5646d6[_0x3683('0xcd')];_0x5a6ca5++)_0x1648fe['has'](_0x5646d6[_0x5a6ca5][_0x3683('0x107')])&&(_0x5646d6[_0x5a6ca5][_0x3683('0x107')]=_0x1648fe[_0x3683('0x72')](_0x5646d6[_0x5a6ca5][_0x3683('0x107')]));}[_0x3683('0xa8')](_0x44a671){const _0x53b198=new Set(_0x44a671[_0x3683('0xdf')](_0x3cf774=>_0x3cf774['id']));for(let _0x118bb0=0x0;_0x118bb0<_0x44a671['length'];_0x118bb0++)_0x53b198['has'](_0x44a671[_0x118bb0]['pairId'])||0x0==_0x44a671[_0x118bb0][_0x3683('0x55')]||(_0x44a671[_0x118bb0][_0x3683('0x2c')]=!0x0);return _0x44a671['filter'](_0x4f94c1=>!_0x4f94c1['isIncorrect']);}['_markMismatchedRemovedTags'](_0x168f62){const _0x31123e=new Set();for(let _0x2e87b0=0x0;_0x2e87b0<_0x168f62[_0x3683('0xcd')];_0x2e87b0++){if(_0x31123e[_0x3683('0xc6')](_0x168f62[_0x2e87b0]['id'])&&_0x168f62[_0x2e87b0]['isRemoved']&&(_0x168f62[_0x2e87b0]['isIncorrect']=!0x0),_0x168f62[_0x2e87b0][_0x3683('0x2c')])continue;if(0x0==_0x168f62[_0x2e87b0][_0x3683('0x55')])continue;if(_0x3683('0x65')!=_0x168f62[_0x2e87b0][_0x3683('0xa2')])continue;if(null==_0x168f62[_0x2e87b0][_0x3683('0x107')])continue;let _0x2b332a=_0x2e87b0+0x1,_0x2ae1d7=0x0;for(;_0x168f62[_0x2b332a]['id']!=_0x168f62[_0x2e87b0][_0x3683('0x107')];)'elementStart'==_0x168f62[_0x2b332a][_0x3683('0xa2')]?_0x2ae1d7++:'elementEnd'==_0x168f62[_0x2b332a][_0x3683('0xa2')]&&_0x2ae1d7--,_0x2b332a++;if(0x0!=_0x2ae1d7){if(_0x168f62[_0x2e87b0][_0x3683('0x34')])_0x168f62[_0x2e87b0][_0x3683('0x2c')]=!0x0;else for(;_0x2b332a!=_0x2e87b0;)_0x168f62[_0x2b332a][_0x3683('0x34')]&&0x0!=_0x168f62[_0x2b332a][_0x3683('0x55')]&&(_0x168f62[_0x2b332a][_0x3683('0x2c')]=!0x0,_0x31123e[_0x3683('0x61')](_0x168f62[_0x2b332a]['pairId'])),_0x2b332a--;}}return _0x168f62[_0x3683('0xfe')](_0x11ba16=>!_0x11ba16[_0x3683('0x2c')]);}[_0x3683('0x6a')](_0x10025b){const _0x545c18=this[_0x3683('0xe9')][_0x3683('0xdc')][_0x3683('0xf2')];for(let _0x550f3e=0x0;_0x550f3e<_0x10025b[_0x3683('0xcd')];_0x550f3e++){if(!(_0x10025b[_0x550f3e][_0x3683('0x9f')]||_0x10025b[_0x550f3e]['isAddSuggestion']||_0x10025b[_0x550f3e][_0x3683('0x34')]||_0x10025b[_0x550f3e][_0x3683('0xfc')]))continue;if(0x0==_0x10025b[_0x550f3e][_0x3683('0x55')])continue;const _0x248bf9=_0x10025b[_0x550f3e][_0x3683('0x89')];_0x545c18[_0x3683('0x18')](_0x248bf9)||_0x545c18[_0x3683('0xdb')](_0x248bf9)||(_0x10025b[_0x550f3e][_0x3683('0x9f')]&&delete _0x10025b[_0x550f3e][_0x3683('0x9f')],_0x10025b[_0x550f3e][_0x3683('0xf3')]&&delete _0x10025b[_0x550f3e]['isAddSuggestion'],_0x10025b[_0x550f3e][_0x3683('0xfc')]&&delete _0x10025b[_0x550f3e][_0x3683('0xfc')],_0x10025b[_0x550f3e][_0x3683('0x34')]&&(_0x10025b[_0x550f3e]['isIncorrect']=!0x0));}return _0x10025b['filter'](_0x401cef=>!_0x401cef[_0x3683('0x2c')]);}[_0x3683('0x1b')](_0x40a524,_0x273a9a){const _0x4666b4=new _0x56c45c(),_0x1311d0=[],_0x413c08=new Map(),_0x5d8bcd=this[_0x3683('0xe9')][_0x3683('0xdc')],_0x3c698c=_0x5d8bcd['schema'],_0x5ce982=[_0x4666b4],_0x14993d={},_0x2541e4={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x304ac3=null;const _0x3b9ef9=[0x0];for(let _0x1278ea=0x0;_0x1278ea<_0x40a524[_0x3683('0xcd')];_0x1278ea++){let _0x1c0457,_0x4abc3a;if(_0x3683('0x65')===_0x40a524[_0x1278ea][_0x3683('0xa2')]){_0x1c0457=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9);const _0x46ee1d=new _0x1b2555(_0x40a524[_0x1278ea]['item']['name'],_0x40a524[_0x1278ea]['item'][_0x3683('0xfa')]());_0x5ce982[0x0][_0x3683('0x67')](_0x46ee1d),_0x3b9ef9[_0x3683('0x51')](0x0),_0x5ce982[_0x3683('0x8d')](_0x46ee1d),_0x4abc3a=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9),_0x304ac3=null;}else{if(_0x3683('0x3f')===_0x40a524[_0x1278ea][_0x3683('0xa2')])_0x5ce982[_0x3683('0xb3')](),_0x1c0457=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9),_0x3b9ef9[_0x3683('0x19')](),_0x3b9ef9[_0x3b9ef9[_0x3683('0xcd')]-0x1]++,_0x4abc3a=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9),_0x304ac3=null;else{if(_0x1c0457=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9),_0x304ac3&&_0x102ac3(_0x304ac3,_0x40a524[_0x1278ea][_0x3683('0x89')]))_0x304ac3[_0x3683('0x3a')]+=_0x40a524[_0x1278ea]['item'][_0x3683('0xa6')];else{const _0x3e2d09=new _0x2d360a(_0x40a524[_0x1278ea][_0x3683('0x89')]['data'],_0x40a524[_0x1278ea][_0x3683('0x89')][_0x3683('0xfa')]());_0x5ce982[0x0][_0x3683('0x67')](_0x3e2d09),_0x304ac3=_0x3e2d09;}_0x3b9ef9[_0x3b9ef9['length']-0x1]+=_0x40a524[_0x1278ea][_0x3683('0x89')][_0x3683('0x6f')],_0x4abc3a=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9);}}for(const _0x584f83 of _0x40a524[_0x1278ea][_0x3683('0xb9')])_0x413c08[_0x3683('0x9d')](_0x584f83,{'start':_0x1c0457,'end':null});_0x292202(_0x3683('0xfc'),_0x1278ea,_0x1c0457,_0x4abc3a),_0x292202('isAddSuggestion',_0x1278ea,_0x1c0457,_0x4abc3a),_0x292202(_0x3683('0x34'),_0x1278ea,_0x1c0457,_0x4abc3a),_0x292202(_0x3683('0x9f'),_0x1278ea,_0x1c0457,_0x4abc3a);for(const _0x4911d6 of _0x40a524[_0x1278ea][_0x3683('0xe4')]){_0x413c08['get'](_0x4911d6)[_0x3683('0xef')]=_0x4abc3a;}}for(const [_0x45759d,_0x202587]of _0x413c08){const _0xa535e7=this[_0x3683('0xe9')]['model'][_0x3683('0x106')](_0x202587[_0x3683('0x5a')],_0x202587[_0x3683('0xef')]);_0x4666b4[_0x3683('0x71')][_0x3683('0x9d')](_0x45759d,_0xa535e7);}return _0x1311d0['sort']((_0x395a35,_0x2b283a)=>{const _0xb2b40b=_0x4666b4['markers']['get'](_0x3683('0xcb')+_0x395a35['id']),_0x20a777=_0x4666b4[_0x3683('0x71')][_0x3683('0x72')](_0x3683('0xcb')+_0x2b283a['id']);return _0xb2b40b[_0x3683('0x5a')][_0x3683('0x92')](_0x20a777[_0x3683('0x5a')])?-0x1:_0xb2b40b[_0x3683('0x5a')][_0x3683('0xc3')](_0x20a777[_0x3683('0x5a')])?0x1:_0xb2b40b[_0x3683('0xef')]['isBefore'](_0x20a777[_0x3683('0xef')])?-0x1:_0xb2b40b[_0x3683('0xef')][_0x3683('0xc3')](_0x20a777[_0x3683('0xef')])?0x1:_0x3683('0x61')===_0x395a35[_0x3683('0xa2')]?-0x1:0x1;}),{'root':_0x4666b4,'changes':_0x1311d0};function _0x292202(_0x8be7d0,_0x37edb4,_0xbace78,_0x5ddc59){const _0xd3cfc3=!!_0x40a524[_0x37edb4][_0x8be7d0],_0x4785be=_0xd3cfc3?_0x40a524[_0x37edb4][_0x8be7d0]['userId']:null,_0x13599a=_0x37edb4===_0x40a524[_0x3683('0xcd')]-0x1,_0x5c9864=_0x2541e4[_0x8be7d0][0x0],_0x8ff0c4=_0x3c698c[_0x3683('0x102')](_0x40a524[_0x37edb4]['item']);!_0x14993d[_0x8be7d0]&&_0xd3cfc3?_0x14993d[_0x8be7d0]={'start':_0xbace78,'tapeItem':_0x40a524[_0x37edb4],'userId':_0x4785be,'type':_0x8be7d0}:_0x14993d[_0x8be7d0]&&!_0xd3cfc3?(_0x14993d[_0x8be7d0][_0x3683('0xef')]=_0xbace78,_0x1e1159(_0x14993d[_0x8be7d0]),_0x14993d[_0x8be7d0]=null):_0x14993d[_0x8be7d0]&&_0xd3cfc3&&_0x14993d[_0x8be7d0][_0x3683('0x87')]!==_0x4785be&&(_0x14993d[_0x8be7d0][_0x3683('0xef')]=_0xbace78,_0x5c9864&&_0x5c9864[_0x3683('0x87')]===_0x14993d[_0x8be7d0]['userId']||_0x1e1159(_0x14993d[_0x8be7d0]),_0x14993d[_0x8be7d0]={'start':_0xbace78,'tapeItem':_0x40a524[_0x37edb4],'userId':_0x4785be,'type':_0x8be7d0}),_0x14993d[_0x8be7d0]&&_0x8ff0c4&&(_0x3683('0x65')!==_0x40a524[_0x37edb4][_0x3683('0xa2')]||_0x5c9864&&_0x5c9864[_0x3683('0x87')]===_0x4785be||_0x2541e4[_0x8be7d0][_0x3683('0x8d')]({'userId':_0x4785be,'object':_0x40a524[_0x37edb4][_0x3683('0x89')],'change':_0x14993d[_0x8be7d0]}),_0x3683('0x3f')===_0x40a524[_0x37edb4][_0x3683('0xa2')]&&_0x5c9864&&_0x5c9864[_0x3683('0x12')]===_0x40a524[_0x37edb4][_0x3683('0x89')]&&(_0x2541e4[_0x8be7d0][_0x3683('0xb3')](),_0x14993d[_0x8be7d0]=_0x5c9864[_0x3683('0x6c')])),_0x14993d[_0x8be7d0]&&_0x13599a&&(_0x14993d[_0x8be7d0]['end']=_0x5ddc59,_0x1e1159(_0x14993d[_0x8be7d0]),_0x14993d[_0x8be7d0]=null);}function _0x1e1159({start:_0x39a6bf,end:_0x10c47d,tapeItem:_0x332ba7,userId:_0x39b800,type:_0x2e86fb}){const _0x2e5dac=_0x332ba7['item'],_0x343f1a=_0x5d8bcd[_0x3683('0xf2')][_0x3683('0x18')](_0x2e5dac)&&!_0x5d8bcd[_0x3683('0xf2')][_0x3683('0xdb')](_0x2e5dac),_0x3ab5d7=_0x39a6bf[_0x3683('0xba')]==_0x10c47d['parent']&&_0x10c47d[_0x3683('0x1f')];if(_0x343f1a&&_0x3ab5d7)return;const _0x1050d7=_0x5d8bcd[_0x3683('0x106')](_0x39a6bf,_0x10c47d),_0x145835=_0x273a9a[_0x3683('0x72')](_0x39b800),_0x405338=new _0x2f83f8({'author':_0x145835,'type':_0x3683('0x9f')==_0x2e86fb||_0x3683('0xf3')==_0x2e86fb?_0x3683('0x61'):_0x3683('0x16'),'data':{'isSuggestion':_0x3683('0xf3')==_0x2e86fb||_0x3683('0xfc')==_0x2e86fb},'createdAt':new Date()});_0x1311d0[_0x3683('0x51')](_0x405338),_0x4666b4[_0x3683('0x71')]['set'](_0x3683('0xcb')+_0x405338['id'],_0x1050d7);}function _0x102ac3(_0x1e93c4,_0x5c1bc0){const _0x5b48cf=_0x1e93c4['getAttributes'](),_0x34af67=_0x5c1bc0['getAttributes']();for(const _0x1b9948 of _0x5b48cf){if(_0x1b9948[0x1]!==_0x5c1bc0[_0x3683('0x44')](_0x1b9948[0x0]))return!0x1;_0x34af67[_0x3683('0x82')]();}return _0x34af67[_0x3683('0x82')]()[_0x3683('0xb2')];}}[_0x3683('0x6')](){this['editor'][_0x3683('0x8b')][_0x3683('0x8f')]('upcast')[_0x3683('0xd')]({'view':'revision'}),this['editor'][_0x3683('0x8b')]['for'](_0x3683('0x6b'))[_0x3683('0x1c')]({'model':_0x3683('0x2a'),'view':_0x177a55=>{const _0x4a1ac3=_0x177a55['markerName'][_0x3683('0xcc')](':')[0x1],_0x4a1dd6=this[_0x3683('0x73')](_0x4a1ac3);if(!_0x4a1dd6)return null;const _0x225418=_0x3683('0x61')==_0x4a1dd6[_0x3683('0xa2')]?_0x3683('0x10a'):_0x3683('0x80'),_0x421d34=['ck-suggestion-marker','ck-suggestion-marker-'+_0x225418];return _0x4a1dd6[_0x3683('0xa6')][_0x3683('0xa7')]&&_0x421d34[_0x3683('0x51')]('ck-suggestion-marker-'+_0x225418+_0x3683('0x7c')),this[_0x3683('0x83')]==_0x4a1dd6&&_0x421d34[_0x3683('0x51')]('ck-suggestion-marker--active'),{'classes':_0x421d34,'attributes':{'data-change-id':_0x4a1ac3}};}}),this['editor']['conversion'][_0x3683('0x8f')]('upcast')['add'](_0x52f7b7=>{_0x52f7b7['on']('element:pre',(_0x58565d,_0x5e33a5,_0x5994e8)=>{const _0x3dc1a7=_0x5e33a5[_0x3683('0x96')][_0x3683('0x8c')](0x0);if(!_0x3dc1a7||!_0x3dc1a7['is'](_0x3683('0xe7'),_0x3683('0x43')))return;if(!_0x5994e8[_0x3683('0x7a')][_0x3683('0x52')](_0x3dc1a7,{'attributes':[_0x3683('0x40'),'vid_end']}))return;const _0x29b02b=_0x5e33a5[_0x3683('0xc1')][_0x3683('0x5a')][_0x3683('0xba')];_0x5994e8[_0x3683('0x7f')][_0x3683('0x3d')](_0x3683('0x40'),_0x3dc1a7[_0x3683('0x44')](_0x3683('0x40')),_0x29b02b),_0x5994e8[_0x3683('0x7f')]['setAttribute'](_0x3683('0x35'),_0x3dc1a7[_0x3683('0x44')](_0x3683('0x35')),_0x29b02b);},{'priority':_0x3683('0xca')});}),this[_0x3683('0xe9')]['conversion'][_0x3683('0x8f')]('upcast')[_0x3683('0x61')](_0x362c6a=>{_0x362c6a['on'](_0x3683('0xe7'),(_0x42c1bb,_0x6a5f62,_0x68139b)=>{if(!_0x68139b[_0x3683('0x7a')][_0x3683('0x52')](_0x6a5f62['viewItem'],{'attributes':['vid_start',_0x3683('0x35')]}))return;if(_0x6a5f62[_0x3683('0xc1')]['isCollapsed'])return;const _0x218a74=_0x6a5f62[_0x3683('0xc1')][_0x3683('0x5a')][_0x3683('0xba')];_0x218a74[_0x3683('0x15')]('vid_start')||_0x218a74[_0x3683('0x15')](_0x3683('0x84'))||(_0x68139b[_0x3683('0x7f')][_0x3683('0x3d')]('vid_start',_0x6a5f62[_0x3683('0x96')][_0x3683('0x44')](_0x3683('0x40')),_0x218a74),_0x68139b[_0x3683('0x7f')][_0x3683('0x3d')](_0x3683('0x35'),_0x6a5f62[_0x3683('0x96')][_0x3683('0x44')](_0x3683('0x35')),_0x218a74));},{'priority':_0x3683('0xca')});}),this[_0x3683('0xe9')][_0x3683('0x8b')][_0x3683('0x8f')](_0x3683('0x95'))['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x3683('0x84'),'value':_0x5d4c1f=>_0x5d4c1f[_0x3683('0x44')](_0x3683('0x84'))}}),this['editor'][_0x3683('0xdc')][_0x3683('0xf2')]['on']('checkAttribute',(_0x48096d,[,_0x6fcbaa])=>{['vid_start',_0x3683('0x35'),'vid'][_0x3683('0x4b')](_0x6fcbaa)&&(_0x48096d['return']=!0x0,_0x48096d[_0x3683('0xed')]());},{'priority':_0x3683('0xd6')}),this[_0x3683('0xe9')][_0x3683('0x8b')][_0x3683('0x8f')](_0x3683('0xae'))[_0x3683('0x61')](_0x3da628=>{_0x3da628['on'](_0x3683('0x57'),(_0x516307,_0x21b457,_0x1f2ed9)=>{if('\x20'!=_0x21b457['item']['data']||_0x21b457[_0x3683('0x89')][_0x3683('0xc0')][_0x3683('0x6d')]>0x1)return;if(!_0x1f2ed9[_0x3683('0x7a')]['consume'](_0x21b457[_0x3683('0x89')],_0x516307[_0x3683('0x22')]))return;const _0x55711a=_0x1f2ed9[_0x3683('0x7f')],_0x2654bb=_0x1f2ed9[_0x3683('0xf8')][_0x3683('0xe6')](_0x21b457[_0x3683('0xc')]);_0x55711a[_0x3683('0xde')](_0x2654bb,_0x55711a['createAttributeElement'](_0x3683('0x33')));});}),this['editor']['conversion']['for'](_0x3683('0xae'))[_0x3683('0x98')]({'model':'revision'}),this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x48')]['on'](_0x3683('0xd5'),function(_0x3aec6b){const _0x34728e=_0x3aec6b[_0x3683('0x14')][_0x3683('0x72')](_0x3683('0x21'));return(_0x14b803,_0xd71433,_0x506afe)=>{const _0x3415ce=_0xd71433[_0x3683('0x5')]['split'](':')[0x1],_0x360a2e=_0x34728e['_getChangeFromId'](_0x3415ce);if(!_0x360a2e)return null;const _0x27fec9=_0x3683('0x61')==_0x360a2e['type']?_0x3683('0xcc'):_0x3683('0xbe');if(!_0x506afe['consumable'][_0x3683('0x2e')](_0xd71433[_0x3683('0x9')],_0x14b803[_0x3683('0x22')]))return;const _0x94c8f6=_0xd71433[_0x3683('0x9')][_0x3683('0x1e')](),_0x375c38=_0xd71433['markerRange'][_0x3683('0x5a')],_0x304f3e=_0x3aec6b[_0x3683('0xdc')][_0x3683('0xf2')];let _0x332eb6=null,_0x3eef90=null,_0x5a51c3=!0x1,_0x122839=!0x1;for(const _0x110c5c of _0x94c8f6){const _0x244735=_0x110c5c[_0x3683('0x89')];_0x5a51c3=_0x5a51c3||_0x304f3e['isContent'](_0x244735);const _0x219fd3=_0x506afe[_0x3683('0xf8')][_0x3683('0xea')](_0x244735);if(_0x219fd3&&_0x219fd3[_0x3683('0xd8')](_0x3683('0xf')))return;_0x3683('0x3f')==_0x110c5c[_0x3683('0xa2')]&&(_0x304f3e['isBlock'](_0x244735)&&!_0x304f3e[_0x3683('0xdb')](_0x244735)&&(_0x244735[_0x3683('0x25')]||_0x375c38[_0x3683('0x8e')]?_0x332eb6&&_0x332eb6[_0x3683('0xc0')]==_0x244735||(_0x332eb6=_0x244735,_0x26fb17(_0x110c5c[_0x3683('0xbd')]),_0x122839=!0x0):_0x3eef90=_0x3eef90||_0x110c5c['previousPosition']));}function _0x26fb17(_0x473c6d){const _0x126fdb=_0x506afe['writer']['createUIElement'](_0x3683('0x33'),{'class':_0x3683('0x38')+_0x27fec9}),_0x3eaec7=_0x506afe[_0x3683('0xf8')][_0x3683('0x31')](_0x473c6d);_0x360a2e[_0x3683('0xa6')][_0x3683('0xa7')]&&_0x506afe[_0x3683('0x7f')][_0x3683('0xc2')](_0x3683('0x38')+_0x27fec9+'-new',_0x126fdb),_0x34728e[_0x3683('0x83')]==_0x360a2e&&_0x506afe[_0x3683('0x7f')][_0x3683('0xc2')]('ck-suggestion-marker--active',_0x126fdb),_0x506afe[_0x3683('0x7f')][_0x3683('0xd9')](_0x3eaec7,_0x126fdb),_0x506afe['mapper']['bindElementToMarker'](_0x126fdb,_0xd71433['markerName']);}_0x5a51c3||_0x122839||!_0x3eef90||_0x26fb17(_0x3eef90);};}(this['editor']),{'priority':_0x3683('0xfb')}),this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x48')]['on'](_0x3683('0x6e'),(_0xe40d3b,_0x26a7f3,_0x54d99e)=>{const _0x4fb57e=_0x54d99e[_0x3683('0xf8')][_0x3683('0xbb')](_0x26a7f3['markerName']);if(_0x4fb57e)for(const _0x529519 of _0x4fb57e)(_0x529519['hasClass']('ck-suggestion-marker-split')||_0x529519[_0x3683('0xf7')](_0x3683('0x4e')))&&(_0x54d99e[_0x3683('0xf8')][_0x3683('0x11')](_0x529519,_0x26a7f3['markerName']),_0x54d99e[_0x3683('0x7f')][_0x3683('0x16')](_0x529519));},{'priority':'high'}),this['editor'][_0x3683('0xc4')][_0x3683('0x48')]['on'](_0x3683('0xd5'),(_0x354b33,_0x1f0aa1,_0x248c47)=>{const _0x44969e=_0x1f0aa1[_0x3683('0x5')][_0x3683('0xcc')](':')[0x1],_0x40bde0=this[_0x3683('0x73')](_0x44969e);if(!_0x40bde0)return null;const _0xfe19f0=_0x3683('0x61')==_0x40bde0[_0x3683('0xa2')]?_0x3683('0xcc'):_0x3683('0xbe');if(_0x248c47[_0x3683('0x7a')][_0x3683('0x2e')](_0x1f0aa1[_0x3683('0x9')],_0x354b33[_0x3683('0x22')]))for(const _0x10ec00 of _0x1f0aa1['markerRange'][_0x3683('0xe5')]()){if(!_0x10ec00['is'](_0x3683('0xe7'),_0x3683('0x8a')))continue;const _0x23a999=_0x248c47[_0x3683('0x7f')][_0x3683('0xff')](_0x3683('0x33'),{'class':_0x3683('0x38')+_0xfe19f0}),_0x475cd5=_0x248c47[_0x3683('0xf8')]['toViewPosition'](this[_0x3683('0xe9')]['model'][_0x3683('0xc9')](_0x10ec00));_0x40bde0[_0x3683('0xa6')][_0x3683('0xa7')]&&_0x248c47['writer'][_0x3683('0xc2')]('ck-suggestion-marker-'+_0xfe19f0+'-new',_0x23a999),this[_0x3683('0x83')]==_0x40bde0&&_0x248c47[_0x3683('0x7f')]['addClass'](_0x3683('0x2'),_0x23a999),_0x248c47[_0x3683('0x7f')][_0x3683('0xd9')](_0x475cd5,_0x23a999),_0x248c47['mapper'][_0x3683('0x39')](_0x23a999,_0x1f0aa1['markerName']);}},{'priority':'high'}),this['editor'][_0x3683('0x8b')][_0x3683('0x8f')](_0x3683('0x95'))[_0x3683('0xd')]({'view':_0x3683('0x5f')}),this[_0x3683('0xe9')][_0x3683('0x8b')]['for'](_0x3683('0xae'))[_0x3683('0x98')]({'model':_0x3683('0x5f')}),this[_0x3683('0xe9')]['conversion']['for'](_0x3683('0x6b'))['markerToHighlight']({'model':'suggestion','view':_0x40097c=>{const _0x5296af=_0x40097c[_0x3683('0x5')]['split'](':')[0x1];return _0x3683('0x10a')!=_0x5296af&&'deletion'!=_0x5296af?null:{'classes':[_0x3683('0x86'),'ck-suggestion-preview-marker-'+_0x5296af]};}}),this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x48')]['on']('addMarker:suggestion:deletion',K(this[_0x3683('0xe9')],_0x3683('0xbe')),{'priority':_0x3683('0xfb')}),this[_0x3683('0xe9')]['editing'][_0x3683('0x48')]['on']('addMarker:suggestion:insertion',K(this['editor'],'split'),{'priority':_0x3683('0xfb')}),this['editor'][_0x3683('0xc4')][_0x3683('0x48')]['on'](_0x3683('0x23'),(_0x558302,_0x387825,_0x3fdecf)=>{const _0x523db2=_0x3fdecf['mapper'][_0x3683('0xbb')](_0x387825[_0x3683('0x5')]);if(_0x523db2)for(const _0x2e2159 of _0x523db2)_0x2e2159['is'](_0x3683('0x1'))&&(_0x3fdecf[_0x3683('0xf8')][_0x3683('0x11')](_0x2e2159,_0x387825[_0x3683('0x5')]),_0x3fdecf[_0x3683('0x7f')][_0x3683('0x16')](_0x2e2159));},{'priority':_0x3683('0xfb')});}[_0x3683('0x73')](_0x8e68c3){return this[_0x3683('0x109')]['get'](_0x8e68c3);}[_0x3683('0x4f')](_0x441255){this[_0x3683('0x9c')]&&this[_0x3683('0x9c')][_0x3683('0x41')](),this[_0x3683('0x9c')]=new _0x7a460(this[_0x3683('0xe9')][_0x3683('0xaa')],_0x441255);const _0x56f596=this[_0x3683('0xe9')][_0x3683('0xdc')]['markers'][_0x3683('0x72')](_0x3683('0xcb')+_0x441255['id']);return this[_0x3683('0x9c')][_0x3683('0x0')]=()=>_0x4b2ed6(this[_0x3683('0xe9')][_0x3683('0xc4')],_0x56f596),this[_0x3683('0x9c')];}[_0x3683('0x17')](){this[_0x3683('0xe9')]['model'][_0x3683('0x88')]['selection'][_0x3683('0x45')]('revision'),this['on'](_0x3683('0xc8'),(_0x47620c,_0x2ca591,_0x3c5253,_0x48e510)=>{_0x48e510&&this['_balloon']['remove'](_0x48e510),_0x3c5253&&(this[_0x3683('0xb1')][_0x3683('0x61')]({'view':_0x3c5253,'stackId':_0x3683('0xd3'),'position':{'target':_0x3c5253[_0x3683('0x0')]}}),this[_0x3683('0xb1')][_0x3683('0x4')]('revisionHistoryLabel'));}),this['on'](_0x3683('0xe'),(_0x2dd453,_0x4530b6,_0x20d662,_0x2ea6cb)=>{this[_0x3683('0x101')]=_0x20d662?this[_0x3683('0x4f')](_0x20d662):null,this[_0x3683('0xe9')][_0x3683('0xdc')][_0x3683('0x6c')](()=>{const _0x148d71=this[_0x3683('0xe9')][_0x3683('0xc4')];_0x2ea6cb&&_0x148d71['reconvertMarker'](_0x3683('0xcb')+_0x2ea6cb['id']),_0x20d662&&_0x148d71[_0x3683('0x7d')](_0x3683('0xcb')+_0x20d662['id']);});}),this[_0x3683('0x47')](this['editor'][_0x3683('0xc4')][_0x3683('0x76')]['document'],'mouseover',(_0x419ea6,_0x5a4dd4)=>{if(this[_0x3683('0x83')])return;const _0x428793=this[_0x3683('0x70')](_0x5a4dd4[_0x3683('0x3c')]),_0x19d48f=this[_0x3683('0x109')][_0x3683('0x72')](_0x428793);this['activeView']=_0x19d48f?this[_0x3683('0x4f')](_0x19d48f):null;}),this[_0x3683('0x47')](this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x76')][_0x3683('0x88')],_0x3683('0xb6'),(_0xb84a67,_0x5d4b59)=>{const _0x5beef2=this[_0x3683('0x70')](_0x5d4b59[_0x3683('0x3c')]),_0x37000f=this[_0x3683('0x109')]['get'](_0x5beef2);this[_0x3683('0x83')]=_0x37000f||null;});}['_findChangeIdFromDomTarget'](_0x13be24){do{const _0x278742=_0x13be24[_0x3683('0x44')](_0x3683('0x58'));if(_0x278742)return _0x278742;_0x13be24=_0x13be24[_0x3683('0xc0')];}while(_0x13be24);return null;}[_0x3683('0xb5')](){this[_0x3683('0xe9')][_0x3683('0xdc')][_0x3683('0x6c')](_0x53912c=>{for(const _0x3c9f53 of this[_0x3683('0xe9')][_0x3683('0xdc')]['markers'])_0x53912c[_0x3683('0xeb')](_0x3c9f53);});}}function K(_0x4b4485,_0x40754f){return(_0x1ae7ba,_0x3d9bb7,_0x6011f8)=>{if(!_0x6011f8['consumable'][_0x3683('0x2e')](_0x3d9bb7[_0x3683('0x9')],_0x1ae7ba[_0x3683('0x22')]))return;const _0x4d28c2=_0x3d9bb7[_0x3683('0x9')][_0x3683('0x1e')](),_0x594711=_0x3d9bb7['markerRange'][_0x3683('0x5a')],_0x5af79a=_0x4b4485[_0x3683('0xdc')][_0x3683('0xf2')];let _0x56421f=null,_0x55314e=null,_0x4ff02b=!0x1,_0x3f2f8e=!0x1;for(const _0x4ebc9a of _0x4d28c2){const _0x511832=_0x4ebc9a[_0x3683('0x89')];_0x4ff02b=_0x4ff02b||_0x5af79a[_0x3683('0xa3')](_0x511832);const _0x302ed6=_0x6011f8['mapper']['toViewElement'](_0x511832);if(_0x302ed6&&_0x302ed6[_0x3683('0xd8')](_0x3683('0xf')))return;_0x3683('0x3f')==_0x4ebc9a[_0x3683('0xa2')]&&(_0x5af79a[_0x3683('0x18')](_0x511832)&&!_0x5af79a['isLimit'](_0x511832)&&(_0x511832[_0x3683('0x25')]||_0x594711['isAtEnd']?_0x56421f&&_0x56421f[_0x3683('0xc0')]==_0x511832||(_0x56421f=_0x511832,_0x5c60ba(_0x4ebc9a[_0x3683('0xbd')]),_0x3f2f8e=!0x0):_0x55314e=_0x55314e||_0x4ebc9a[_0x3683('0xbd')]));}function _0x5c60ba(_0x1702d8){const _0x3a683f=_0x6011f8[_0x3683('0xf8')][_0x3683('0x31')](_0x1702d8),_0x283d48=_0x6011f8[_0x3683('0x7f')][_0x3683('0xff')](_0x3683('0x33'),{'class':_0x3683('0xf9')+_0x40754f});_0x6011f8[_0x3683('0x7f')][_0x3683('0xd9')](_0x3a683f,_0x283d48),_0x6011f8['mapper'][_0x3683('0x39')](_0x283d48,_0x3d9bb7[_0x3683('0x5')]);}_0x4ff02b||_0x3f2f8e||!_0x55314e||_0x5c60ba(_0x55314e);};}_0xa2a605(d,_0x47cfb5);class Q extends _0x4aaa93{constructor(_0x2b9bc4){super(_0x2b9bc4);const _0x21abc1=_0x2b9bc4['plugins'][_0x3683('0x72')](d);this[_0x3683('0x5b')](_0x2b9bc4,_0x3683('0x100')),this[_0x3683('0xe8')](_0x3683('0x24')),this[_0x3683('0x47')](_0x21abc1,_0x3683('0xa4'),()=>this[_0x3683('0x4a')]()),this[_0x3683('0x47')](_0x21abc1,_0x3683('0xf0'),()=>this[_0x3683('0x4a')]());}[_0x3683('0x94')](){const _0x196315=this[_0x3683('0xe9')],_0x1c9943=_0x196315[_0x3683('0x14')][_0x3683('0x72')](d),_0x433008=_0x1c9943[_0x3683('0x7e')]?_0x1c9943[_0x3683('0x78')][_0x3683('0xaf')]:null;_0x196315[_0x3683('0x50')][_0x3683('0x72')](_0x3683('0xda'))[_0x3683('0x28')](_0x433008);}['refresh'](){const {isReady:_0x5a5980,isEnabled:_0x3faf62}=this[_0x3683('0xe9')][_0x3683('0x14')][_0x3683('0x72')](d);this[_0x3683('0x3')]=_0x5a5980&&_0x3faf62;}}class X extends _0x4aaa93{constructor(_0x121317,{direction:_0x22e6ee}){super(_0x121317);const _0x2c8738=_0x121317[_0x3683('0x14')][_0x3683('0x72')](d);this[_0x3683('0x5b')](_0x121317,'change:isReadOnly'),this[_0x3683('0xe8')](_0x3683('0x24')),this[_0x3683('0x104')]=_0x3683('0xf6')===_0x22e6ee?0x1:-0x1,this['listenTo'](_0x2c8738,_0x3683('0xa4'),()=>this[_0x3683('0x4a')]()),this[_0x3683('0x47')](_0x2c8738,'change:isEnabled',()=>this[_0x3683('0x4a')]());}[_0x3683('0x94')](){const _0x21e7c2=this[_0x3683('0xe9')],_0x3e4f05=_0x21e7c2['plugins'][_0x3683('0x72')](d),{isNavigationMode:_0x18941e,currentChangeNumber:_0x449774}=_0x3e4f05;_0x3e4f05[_0x3683('0x83')]=_0x18941e?_0x3e4f05['diff'][_0x3683('0x4d')][_0x3683('0x72')](_0x449774+this[_0x3683('0x104')]):_0x3e4f05[_0x3683('0x78')][_0x3683('0x4d')][_0x3683('0xd2')];const _0x5ca238=_0x21e7c2[_0x3683('0xdc')][_0x3683('0x71')][_0x3683('0x72')](_0x3683('0xcb')+_0x3e4f05['activeChange']['id']),_0x5e92ce=_0x4b2ed6(_0x21e7c2[_0x3683('0xc4')],_0x5ca238);_0x2bf980({'target':_0x5e92ce,'viewportOffset':0x28});}[_0x3683('0x4a')](){const {isNavigationMode:_0x287565,currentChangeNumber:_0x17e3ab,numberOfChanges:_0x2a46f6,isReady:_0x1e8026,isEnabled:_0x1846b4}=this[_0x3683('0xe9')][_0x3683('0x14')][_0x3683('0x72')](d);this[_0x3683('0x3')]=!!(_0x1846b4&&_0x1e8026&&_0x2a46f6)&&(!_0x287565||(0x1===this['_step']?_0x17e3ab<_0x2a46f6-0x1:_0x17e3ab>0x0));}}
23
+ const _0x402d=['splice','vid_start','_threeWayMerge','span','_processTape','_setDistance','hasAttribute','upcast','view','nextPosition','_joinTapes','_refreshStartEndIndex','getAttribute','markersEnd','bindElementToMarker','_markInsertions','commands','test','revision-comment:','numberOfChanges','uiElement','schema','loadRevisionData','getChild','isRemoved','push','enableReadOnlyMode','data-revision-','checkAttribute','isReady','_getRevisionsRange','_getViewObj','getRevisionData','pairId','ck-suggestion-marker','vid_end','_markSuggestions','for','backward','isIncorrect','unshift','map','attribute:vid','ck-editor__editable__overlay','index','setData','showPreviousChange','toViewPosition','item','shift','_removeMissingPairs','merge','restoreRevision','ck-suggestion-marker-split','isContent','addMarker:revision','includes','modelRange','downcastDispatcher','suggestion:','mousedown','isCollapsed','collaboration.channelId','startIndex','change:isReadOnly','insertions','ck-suggestion-preview-marker','ck-suggestion-marker-','setAttribute','offsetSize','change:activeChange','diff','isAtStart','showStack','newRevisionId','code','createUIElement','getCustomProperty','model','parent','nextSibling','plugins','addMarker:revision-suggestion:deletion','markerRange','getWalker','stopListening','markers','requires','_removeRevisionMarkers','dataDowncast','markerName','ck-suggestion-marker--active','revisionHistory','execute','next','readOnlyMode','addRevisionData','_changeView','_markMismatchedRemovedTags','_makeTape','deletion','getRevision','createAttributeElement','revision-suggestion:','dataToMarker','previousPosition','children','RevisionViewer','removeMarker:revision-suggestion','restoreRevisionCallback','POSITIVE_INFINITY','_balloon','removeMarker','markerToHighlight','high','getRoot','done','split','unbindElementFromMarkerName','_markMarkers','_getChangeFromId','pluginName','_initInteractions','addMarker:revision-suggestion:insertion','ck-suggestion-marker-merge','deletions','removeMarker:revision','config','isAtEnd','startsWith','isAfter','markerNameToElements','conversion','wrap','length','has','_cleanUp','showNextChange','revision:','RevisionsRepository','observeMarkers','createPositionBefore','slice','low','concat','activeChange','changes','processor','then','_target','change:isReady','softBreak','level','object','_cleanMarkers','delete','editingDowncast','range','writer','compare','elementStart','isBlock','removeClass','markerToData','change:isEnabled','get','name','return','viewItem','createRange','createRangeIn','from','revision-start','mapper','consume','string','target','insert','-new','nodeAfter','keys','isEqual','isNavigationMode','set','revision-viewer','marked','adapter','element','toViewElement','side','addHighlight','isSuggestion','_fixObsoleteTags','revision-suggestion','listenTo','elementEnd','toModel','isEnabled','end','_setConversion','attributes','markersStart','_makeModelFromTape','isAdded','document','type','editor','oldRevisionId','createRevision','_getViewForChange','stop','toData','useFillerType','isBefore','filter','change','refresh','forward','distance','userId','abs','_changeIdToChange','reconvertMarker','consumable','add','bind','isRemoveSuggestion','getRootNames','sort','diffData','_data','getItems','currentChangeNumber','hasClass','addClass','_step','repository','highest','start','revision','data','_update','insertion','remove','init','resolve','revisionHistoryLabel','_setData','vid','getAttributes','clearForceDisabled','isLimit','parse','roots','forEach','_removeUnsupportedChanges','_findChangeIdFromDomTarget','getIndex','_getDiff','maxOffset','isAddSuggestion','endIndex','text','editing','_makeModelFromViewString','destroy','change:activeView','activeView','createPositionFromPath'];(function(_0x3cd299,_0x402d9b){const _0x19065a=function(_0x133a0e){while(--_0x133a0e){_0x3cd299['push'](_0x3cd299['shift']());}};_0x19065a(++_0x402d9b);}(_0x402d,0x163));const _0x1906=function(_0x3cd299,_0x402d9b){_0x3cd299=_0x3cd299-0x0;let _0x19065a=_0x402d[_0x3cd299];return _0x19065a;};import{Plugin as _0x5a52c0,Command as _0x3864b7}from'ckeditor5/src/core';import{ObservableMixin as _0x528450,mix as _0x23516d,scrollViewportToShowTarget as _0x23cfd9}from'ckeditor5/src/utils';import{ContextualBalloon as _0x229022}from'ckeditor5/src/ui';import{DocumentFragment as _0x4c4eef,Element as _0x451052,Text as _0x1e3124,ViewDocumentFragment as _0x157040,ViewText as _0x3e81b7,ViewElement as _0x93bb8f,ViewContainerElement as _0x14dfbf,ViewAttributeElement as _0x4558d0,ViewEmptyElement as _0x4c0b2a,ViewRawElement as _0x307f9e,ViewUIElement as _0x3e3413}from'ckeditor5/src/engine';import{Users as _0x44022d,getMarkerDomElement as _0x48a7d5}from'ckeditor5-collaboration/src/collaboration-core';import _0x325d7a from'./ui/revisionviewer/changedetailsview';import _0x3ffb6c from'./revisionsrepository';import _0x542d67 from'./changeitem';import _0x1142a3 from'./revisiondiff';import'../theme/revisionviewer.css';const Y={'c':_0x14dfbf,'a':_0x4558d0,'e':_0x4c0b2a,'r':_0x307f9e,'u':_0x3e3413};export default class d extends _0x5a52c0{static get[_0x1906('0x23')](){return _0x1906('0x15');}static get[_0x1906('0x1')](){return[_0x44022d,_0x229022,_0x3ffb6c];}constructor(..._0x474b8b){super(..._0x474b8b),this[_0x1906('0x96')]=this[_0x1906('0x78')]['plugins']['get'](_0x1906('0x35')),this['set'](_0x1906('0x3b'),null),this[_0x1906('0x61')]('activeView',null),this['set'](_0x1906('0xfe'),null),this['set'](_0x1906('0xd4'),!0x1),this[_0x1906('0x61')](_0x1906('0x6f'),!0x0),this['on'](_0x1906('0x4e'),(_0x4629ef,_0x101aac,_0x1f68c9)=>{this['activeChange']=null,this[_0x1906('0xb5')]=null,this[_0x1906('0x78')][_0x1906('0xb1')][_0x1906('0xbf')][_0x1906('0x81')](_0x361a2a=>{for(const _0x49db56 of this['editor'][_0x1906('0xb1')][_0x1906('0xbf')][_0x1906('0x76')][_0x1906('0xa7')])_0x1f68c9?_0x361a2a[_0x1906('0x4c')](_0x1906('0xe2'),_0x49db56):_0x361a2a[_0x1906('0x94')](_0x1906('0xe2'),_0x49db56);});}),this[_0x1906('0x8b')](_0x1906('0x60'))['to'](this,_0x1906('0x3b'),_0x5fa37b=>null!==_0x5fa37b),this['bind'](_0x1906('0x92'))['to'](this,'isReady',this,_0x1906('0xfe'),this,_0x1906('0x3b'),(_0xaf6499,_0x303107,_0xfb0444)=>_0xaf6499&&_0xfb0444?_0x303107[_0x1906('0x3c')]['getIndex'](_0xfb0444):0x0),this[_0x1906('0x8b')](_0x1906('0xca'))['to'](this,_0x1906('0xd4'),this,_0x1906('0xfe'),(_0x41a08b,_0x3de0ea)=>_0x41a08b?_0x3de0ea[_0x1906('0x3c')][_0x1906('0x30')]:0x0),this[_0x1906('0xb')]=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this[_0x1906('0x19')]=this[_0x1906('0x78')][_0x1906('0x108')][_0x1906('0x4f')](_0x229022);}[_0x1906('0x9e')](){const _0x2ed0a7=this[_0x1906('0x78')],_0x24751b=new et(_0x2ed0a7,{'direction':_0x1906('0xdd')}),_0x44122b=new et(_0x2ed0a7,{'direction':'forward'});_0x2ed0a7[_0x1906('0xc7')][_0x1906('0x8a')](_0x1906('0xe5'),_0x24751b),_0x2ed0a7['commands'][_0x1906('0x8a')](_0x1906('0x33'),_0x44122b),_0x2ed0a7['commands'][_0x1906('0x8a')](_0x1906('0xeb'),new tt(_0x2ed0a7)),this['on']('change:numberOfChanges',()=>{_0x24751b[_0x1906('0x82')](),_0x44122b[_0x1906('0x82')]();}),this[_0x1906('0x71')](),this['_initInteractions'](),_0x2ed0a7[_0x1906('0xd1')](_0x1906('0x62'));}async[_0x1906('0xd7')](_0xf0c8b1){await this[_0x1906('0xcd')](_0xf0c8b1);const _0x4b1665={};for(const _0xbfce56 in _0xf0c8b1[_0x1906('0x8f')]){const _0x31a0fe=this[_0x1906('0x2')](JSON['parse'](_0xf0c8b1[_0x1906('0x8f')][_0xbfce56][_0x1906('0xf8')])),_0x53214d=this[_0x1906('0x78')]['editing'][_0x1906('0xbf')][_0x1906('0x76')],_0x46e23f=new _0x157040(_0x53214d,_0x31a0fe[_0x1906('0xe0')](_0x2598c5=>this['_getViewObj'](_0x2598c5)));this[_0x1906('0x78')][_0x1906('0x9a')][_0x1906('0x3d')][_0x1906('0x7e')](_0x1906('0x63')),_0x4b1665[_0xbfce56]=this[_0x1906('0x78')][_0x1906('0x9a')]['processor'][_0x1906('0x7d')](_0x46e23f),this[_0x1906('0x78')][_0x1906('0x9a')][_0x1906('0x3d')]['useFillerType']('default');}return _0x4b1665;}[_0x1906('0x2')](_0x25cced){return(_0x25cced=_0x25cced[_0x1906('0x80')](_0x11296c=>!_0x11296c[_0x1906('0x50')]||_0x1906('0x56')!==_0x11296c[_0x1906('0x50')]&&'revision-end'!==_0x11296c[_0x1906('0x50')]))['forEach'](_0x276a04=>{'string'!=typeof _0x276a04&&(_0x276a04[_0x1906('0x14')]=this['_removeRevisionMarkers'](_0x276a04['children']),_0x276a04[_0x1906('0x72')]=_0x276a04['attributes'][_0x1906('0x80')](_0x320e75=>!_0x320e75[0x0]['startsWith'](_0x1906('0xd2'))));}),_0x25cced;}[_0x1906('0x49')](_0x24eafc,_0x2220c5,_0x54e021=!0x1){if(!this[_0x1906('0x6f')])return;const _0x340476=this[_0x1906('0xfe')],_0x211489=this['repository'],_0x26c340='string'==typeof _0x24eafc?_0x211489[_0x1906('0xf')](_0x24eafc):_0x24eafc,_0x6e28cb='string'==typeof _0x2220c5?_0x211489[_0x1906('0xf')](_0x2220c5):_0x2220c5,_0x5381c9=_0x26c340['id'],_0x5af2c3=_0x6e28cb?_0x6e28cb['id']:null;if(!_0x54e021&&this[_0x1906('0xfe')]&&this[_0x1906('0xfe')][_0x1906('0x101')]===_0x5381c9&&this[_0x1906('0xfe')][_0x1906('0x79')]===_0x5af2c3)return Promise[_0x1906('0x9f')]();this[_0x1906('0xd4')]=!0x1,this['activeView']=null,this[_0x1906('0x3b')]=null,this[_0x1906('0xfe')]=new _0x1142a3(_0x5381c9,_0x5af2c3);const _0x5e3f5a=this[_0x1906('0xd5')](_0x26c340,_0x6e28cb,!0x0)[_0x1906('0xe0')](_0x27332e=>this[_0x1906('0xcd')](_0x27332e));return _0x5e3f5a[_0x1906('0xd0')](new Promise(_0x38e080=>{setTimeout(_0x38e080,0x14);})),Promise['all'](_0x5e3f5a)[_0x1906('0x3e')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x308c05=this[_0x1906('0xac')](_0x5381c9,_0x5af2c3);this[_0x1906('0xfe')][_0x1906('0xa1')](_0x308c05);for(const _0x4d5ecd of this[_0x1906('0xfe')][_0x1906('0x3c')])this[_0x1906('0x87')][_0x1906('0x61')](_0x4d5ecd['id'],_0x4d5ecd);this[_0x1906('0x78')][_0x1906('0x105')]['enqueueChange']({'isUndoable':!0x1},_0x3fd89a=>{for(const _0x53da80 of Object[_0x1906('0x5e')](_0x308c05[_0x1906('0x105')])){const _0x41b16=this[_0x1906('0x78')][_0x1906('0x105')]['document'][_0x1906('0x1d')](_0x53da80);_0x3fd89a['remove'](_0x3fd89a[_0x1906('0x54')](_0x41b16)),_0x3fd89a[_0x1906('0x5b')](_0x308c05[_0x1906('0x105')][_0x53da80],_0x41b16,0x0);}}),this['isReady']=!0x0;})['catch'](_0x3abb6b=>{console['error'](_0x3abb6b),this[_0x1906('0x32')](),_0x340476?this['diff']=_0x340476:this[_0x1906('0x78')][_0x1906('0xe4')]('<p></p>'),this[_0x1906('0xd4')]=!0x0;});}[_0x1906('0xb3')](){this['activeView']=null,this['_changeView']&&this[_0x1906('0xb')][_0x1906('0xb3')]();}[_0x1906('0xa')](_0x5bf60c,_0x12014b){const _0x482345=this[_0x1906('0x96')][_0x1906('0x7a')](_0x5bf60c);return _0x482345['on'](_0x1906('0x9b'),(_0x7c0eed,_0x309c5e,_0x27abc0)=>_0x12014b(_0x309c5e,_0x27abc0,_0x482345)),this[_0x1906('0x96')]['addRevision'](_0x482345),_0x482345;}['loadRevisionData'](_0x2a7e77){if(!_0x2a7e77||_0x2a7e77['diffData'])return Promise[_0x1906('0x9f')]();{const _0x113ee4=this[_0x1906('0x78')]['config'][_0x1906('0x4f')](_0x1906('0xf5'));return this[_0x1906('0x64')][_0x1906('0xf')]({'channelId':_0x113ee4,'revisionId':_0x2a7e77['id']})['then'](_0x16f543=>{_0x2a7e77[_0x1906('0x9b')]({'diffData':_0x16f543['diffData']},!0x0);});}}[_0x1906('0x32')](){this['activeChange']=null,this[_0x1906('0x44')](),this[_0x1906('0xb')]&&this[_0x1906('0xb')][_0x1906('0xb3')](),this[_0x1906('0xb')]=null,this['_changeIdToChange']['clear']();}[_0x1906('0xd')](_0x675854){const _0x48ab3e=Array['from'](_0x675854['markers'])[_0x1906('0x80')](([_0x2e81a6,_0x51f60f])=>_0x2e81a6[_0x1906('0x2b')](_0x1906('0x34'))&&!_0x51f60f[_0x1906('0xf4')]),_0x5ac4b7=Array['from'](this[_0x1906('0x78')][_0x1906('0x105')][_0x1906('0x54')](_0x675854)[_0x1906('0x10b')]({'singleCharacters':!0x0}));if(0x0!=_0x48ab3e[_0x1906('0x30')])for(const _0x402daa of _0x5ac4b7){const [_0x4eedeb,_0x2a84e9]=_0x48ab3e[0x0],[,_0xc5fb9f,_0x4870b0]=_0x4eedeb[_0x1906('0x1f')](':');if(_0x2a84e9['end'][_0x1906('0x5f')](_0x402daa[_0x1906('0xc0')])&&_0x48ab3e[_0x1906('0xe8')](),(_0x402daa[_0x1906('0x13')]['isEqual'](_0x2a84e9[_0x1906('0x98')])||_0x402daa['previousPosition'][_0x1906('0x2c')](_0x2a84e9[_0x1906('0x98')]))&&('insertion'==_0xc5fb9f?_0x402daa[_0x1906('0x75')]={'userId':_0x4870b0}:_0x1906('0xe')==_0xc5fb9f&&(_0x402daa[_0x1906('0xcf')]={'userId':_0x4870b0})),0x0==_0x48ab3e[_0x1906('0x30')])break;}return _0x5ac4b7;}[_0x1906('0xc2')](_0x38b4b0){const _0x4a9cde=new Map();for(let _0x3f62c5=0x0;_0x3f62c5<_0x38b4b0[_0x1906('0x30')];_0x3f62c5++)'text'===_0x38b4b0[_0x3f62c5]['type']?(_0x38b4b0[_0x3f62c5][_0x1906('0xe7')][_0x1906('0xf6')]=_0x3f62c5,_0x38b4b0[_0x3f62c5]['item'][_0x1906('0xaf')]=_0x3f62c5):(_0x1906('0x4a')===_0x38b4b0[_0x3f62c5][_0x1906('0x77')]?_0x38b4b0[_0x3f62c5]['item']['startIndex']=_0x3f62c5:_0x1906('0x6d')===_0x38b4b0[_0x3f62c5][_0x1906('0x77')]&&(_0x38b4b0[_0x3f62c5]['item'][_0x1906('0xaf')]=_0x3f62c5),_0x4a9cde[_0x1906('0x61')](_0x38b4b0[_0x3f62c5]['id'],_0x3f62c5));for(const _0x31ee15 of _0x4a9cde['values']())_0x1906('0x4a')===_0x38b4b0[_0x31ee15][_0x1906('0x77')]?_0x38b4b0[_0x31ee15][_0x1906('0xe7')]['endIndex']=_0x4a9cde[_0x1906('0x4f')](_0x38b4b0[_0x31ee15][_0x1906('0xd8')]):_0x1906('0x6d')===_0x38b4b0[_0x31ee15][_0x1906('0x77')]&&(_0x38b4b0[_0x31ee15][_0x1906('0xe7')][_0x1906('0xf6')]=_0x4a9cde['get'](_0x38b4b0[_0x31ee15][_0x1906('0xd8')]));}[_0x1906('0xbb')](_0xa6b094){for(let _0x1e80a8=0x0;_0x1e80a8<_0xa6b094['length'];_0x1e80a8++){if(_0x1906('0x4a')===_0xa6b094[_0x1e80a8]['type'])_0xa6b094[_0x1e80a8][_0x1906('0xe7')][_0x1906('0xf6')]=_0x1e80a8;else{if(_0x1906('0x6d')===_0xa6b094[_0x1e80a8][_0x1906('0x77')]){_0xa6b094[_0x1e80a8]['item'][_0x1906('0xaf')]=_0x1e80a8;const _0xd001e4=_0xa6b094[_0x1e80a8][_0x1906('0xe7')]['startIndex'];_0xa6b094[_0xd001e4][_0x1906('0xd8')]=_0xa6b094[_0x1e80a8]['id'],_0xa6b094[_0x1e80a8][_0x1906('0xd8')]=_0xa6b094[_0xd001e4]['id'];}else _0xa6b094[_0x1e80a8]['item']['startIndex']=_0x1e80a8,_0xa6b094[_0x1e80a8][_0x1906('0xe7')][_0x1906('0xaf')]=_0x1e80a8,_0xa6b094[_0x1e80a8][_0x1906('0xd8')]=null;}_0xa6b094[_0x1e80a8][_0x1906('0x73')]||(_0xa6b094[_0x1e80a8][_0x1906('0x73')]=[],_0xa6b094[_0x1e80a8][_0x1906('0xc4')]=[]);}}[_0x1906('0xc6')](_0x1ffb1b,_0x3807ff){const _0x521776=_0x1ffb1b[_0x1906('0x80')](_0x298ad1=>!_0x298ad1[_0x1906('0x75')]);for(let _0x4b9f5a=0x0;_0x4b9f5a<_0x3807ff[_0x1906('0x30')];_0x4b9f5a++)_0x3807ff[_0x4b9f5a][_0x1906('0x75')]&&(_0x521776[_0x4b9f5a][_0x1906('0x75')]=_0x3807ff[_0x4b9f5a][_0x1906('0x75')]);}[_0x1906('0xb2')](_0x223962){const _0x422056=JSON[_0x1906('0xa6')](_0x223962),_0x2bcb81=this[_0x1906('0x78')]['editing'][_0x1906('0xbf')]['document'],_0x2ace07=new _0x157040(_0x2bcb81,_0x422056[_0x1906('0xe0')](_0x313bee=>this[_0x1906('0xd6')](_0x313bee)));return this[_0x1906('0x78')]['data'][_0x1906('0x6e')](_0x2ace07);}[_0x1906('0xd6')](_0x3b94bc){const _0x1a92c=this[_0x1906('0x78')][_0x1906('0xb1')][_0x1906('0xbf')][_0x1906('0x76')];if(_0x1906('0x59')==typeof _0x3b94bc)return new _0x3e81b7(_0x1a92c,_0x3b94bc);{const _0x314e62=_0x3b94bc[_0x1906('0x14')][_0x1906('0xe0')](_0x1647f7=>this[_0x1906('0xd6')](_0x1647f7));return new(Y[_0x3b94bc[(_0x1906('0x77'))]]||_0x93bb8f)(_0x1a92c,_0x3b94bc[_0x1906('0x50')],_0x3b94bc['attributes'],_0x314e62);}}[_0x1906('0xac')](_0x4716d6,_0x352a72=null){const _0x5bcd63=this[_0x1906('0x96')][_0x1906('0xf')](_0x4716d6),_0x1ced55=_0x352a72?this[_0x1906('0x96')][_0x1906('0xf')](_0x352a72):null,_0x1ba13d=this[_0x1906('0xd5')](_0x5bcd63,_0x1ced55),_0x2bfca5=_0x1ba13d[_0x1ba13d[_0x1906('0x30')]-0x1],_0x3ed9c6=new Map();for(const _0x50425c of _0x1ba13d){_0x50425c[_0x1906('0x105')]={};for(const _0x4a3348 of _0x50425c['authors'])_0x3ed9c6[_0x1906('0x61')](_0x4a3348['id'],_0x4a3348);for(const _0x251718 of this[_0x1906('0x78')][_0x1906('0x105')]['document'][_0x1906('0x8d')]())_0x50425c[_0x1906('0x8f')][_0x251718]||(_0x50425c[_0x1906('0x8f')][_0x251718]={'insertions':'[]','deletions':'[]'}),_0x50425c[_0x1906('0x105')][_0x251718]={'insertions':this[_0x1906('0xb2')](_0x50425c['diffData'][_0x251718][_0x1906('0xf8')]),'deletions':this[_0x1906('0xb2')](_0x50425c[_0x1906('0x8f')][_0x251718][_0x1906('0x27')])};}const _0x270577={'model':{},'changes':[]};for(const _0xba029c of this['editor'][_0x1906('0x105')]['document']['getRootNames']()){let _0x2054e8=null,_0x6e6c4d=0x0;const _0x73424d=new Map(Array[_0x1906('0x55')](_0x5bcd63[_0x1906('0x105')][_0xba029c][_0x1906('0xf8')][_0x1906('0x0')])[_0x1906('0x80')](([_0x23414a])=>!_0x23414a[_0x1906('0x2b')](_0x1906('0x34'))));let _0xb9cbff=0x0;for(const _0x24d68f of _0x1ba13d){const _0xbf3be3=this['_makeTape'](_0x24d68f[_0x1906('0x105')][_0xba029c]['insertions']);_0x24d68f==_0x5bcd63?(_0x2054e8=_0xbf3be3,_0x6e6c4d=_0x2054e8[_0x1906('0x30')],_0x2054e8[_0x1906('0xa8')](_0x112561=>{_0x112561['id']=_0xb9cbff++;}),this[_0x1906('0xbb')](_0x2054e8)):this[_0x1906('0xc6')](_0x2054e8,_0xbf3be3);const _0x2287bf=_0x2054e8[_0x1906('0x80')](_0x417869=>!_0x417869[_0x1906('0x75')])[_0x1906('0xe0')](_0x4460a2=>_0x4460a2['id']);let _0x1cbaa5=0x0;const _0x4b6cc7=this[_0x1906('0xd')](_0x24d68f[_0x1906('0x105')][_0xba029c][_0x1906('0x27')]);_0x4b6cc7['forEach'](_0xaf5c2d=>{_0xaf5c2d[_0x1906('0xcf')]?_0xaf5c2d['id']=_0x6e6c4d++:_0xaf5c2d['id']=_0x2287bf[_0x1cbaa5++];}),this[_0x1906('0xbb')](_0x4b6cc7),this[_0x1906('0xbc')](_0x2054e8,_0x1906('0x75')),this['_setDistance'](_0x4b6cc7,_0x1906('0xcf')),_0x24d68f==_0x5bcd63&&this[_0x1906('0x21')](_0x2054e8,_0x73424d),_0x2054e8=this[_0x1906('0xc1')](_0x2054e8,_0x4b6cc7),this[_0x1906('0xc2')](_0x2054e8),this[_0x1906('0xbc')](_0x2054e8,'isRemoved');}_0x2054e8=_0x2054e8['filter'](_0xff8a29=>!(_0xff8a29[_0x1906('0x75')]&&_0xff8a29['isRemoved']));const _0x340de1=new Map(_0x2bfca5['model'][_0xba029c]['deletions'][_0x1906('0x0')]),_0x480614=new Set(_0x73424d[_0x1906('0x5e')]());for(const _0x46c25a of _0x340de1['keys']())_0x480614[_0x1906('0x45')](_0x46c25a);this[_0x1906('0xdb')](_0x2054e8,_0x480614),this[_0x1906('0x6a')](_0x2054e8),_0x2054e8=this[_0x1906('0xe9')](_0x2054e8),_0x2054e8=this['_markMismatchedRemovedTags'](_0x2054e8),_0x2054e8=this[_0x1906('0xa9')](_0x2054e8);const {root:_0x5cebf9,changes:_0x2eef57}=this[_0x1906('0x74')](_0x2054e8,_0x3ed9c6);_0x270577[_0x1906('0x105')][_0xba029c]=_0x5cebf9,_0x270577[_0x1906('0x3c')]=_0x270577[_0x1906('0x3c')]['concat'](_0x2eef57);}return _0x270577;}[_0x1906('0x21')](_0x16c43b,_0x4a724f){for(let _0x437e32=0x0;_0x437e32<_0x16c43b['length'];_0x437e32++)for(const [_0x3f2061,_0x3a669e]of _0x4a724f)_0x3a669e['start'][_0x1906('0x5f')](_0x16c43b[_0x437e32][_0x1906('0x13')])&&_0x16c43b[_0x437e32]['markersStart'][_0x1906('0xd0')](_0x3f2061),_0x3a669e[_0x1906('0x70')][_0x1906('0x5f')](_0x16c43b[_0x437e32][_0x1906('0xc0')])&&_0x16c43b[_0x437e32][_0x1906('0xc4')][_0x1906('0xd0')](_0x3f2061);}[_0x1906('0xc1')](_0x3ea2eb,_0x58e666){let _0x29a5bc=[],_0x432fe7=0x0,_0x5208dc=0x0;for(;_0x432fe7<_0x3ea2eb[_0x1906('0x30')]||_0x5208dc<_0x58e666[_0x1906('0x30')];){const _0x13208e=_0x3ea2eb[_0x432fe7]||{},_0x126f14=_0x58e666[_0x5208dc]||{};if(_0x13208e['id']==_0x126f14['id'])_0x432fe7++,_0x5208dc++,_0x29a5bc['push'](_0x13208e);else{if(_0x126f14[_0x1906('0xcf')]&&_0x13208e[_0x1906('0x75')]){const {commonTape:_0x9cb461,iEnd:_0xe11339,jEnd:_0x186548}=this[_0x1906('0xb9')](_0x3ea2eb,_0x432fe7,_0x58e666,_0x5208dc);_0x29a5bc=_0x29a5bc[_0x1906('0x3a')](_0x9cb461),_0x432fe7=_0xe11339,_0x5208dc=_0x186548;}else _0x126f14[_0x1906('0xcf')]?(_0x5208dc++,_0x29a5bc[_0x1906('0xd0')](_0x126f14)):(_0x432fe7++,_0x29a5bc[_0x1906('0xd0')](_0x13208e));}}return _0x29a5bc;}['_markSuggestions'](_0x38fcb2,_0x2262f6){const _0x359306=[];for(let _0x1fcd3b=0x0;_0x1fcd3b<_0x38fcb2['length'];_0x1fcd3b++){for(let _0x309390=0x0;_0x309390<_0x38fcb2[_0x1fcd3b][_0x1906('0x73')][_0x1906('0x30')];_0x309390++){const _0x348a0e=_0x38fcb2[_0x1fcd3b][_0x1906('0x73')][_0x309390];if(!_0x2262f6['has'](_0x348a0e))continue;const {group:_0x1c9eee,type:_0x43bf5e,authorId:_0x59b19d}=_0x11cef3(_0x348a0e);'revision-suggestion'!=_0x1c9eee||'insertion'!=_0x43bf5e&&_0x1906('0xe')!=_0x43bf5e||(_0x359306['unshift']({'type':_0x43bf5e,'name':_0x348a0e,'userId':_0x59b19d}),_0x38fcb2[_0x1fcd3b][_0x1906('0x73')][_0x1906('0xb7')](_0x309390,0x1),_0x309390--);}_0x534b5b(_0x38fcb2[_0x1fcd3b]);for(let _0x345af6=0x0;_0x345af6<_0x38fcb2[_0x1fcd3b]['markersEnd']['length'];_0x345af6++){const _0x39f2c7=_0x38fcb2[_0x1fcd3b][_0x1906('0xc4')][_0x345af6];if(!_0x2262f6[_0x1906('0x31')](_0x39f2c7))continue;const {group:_0x28264c,type:_0x18a23f}=_0x11cef3(_0x39f2c7);if('revision-suggestion'!=_0x28264c||_0x1906('0x9c')!=_0x18a23f&&_0x1906('0xe')!=_0x18a23f)continue;_0x38fcb2[_0x1fcd3b][_0x1906('0xc4')][_0x1906('0xb7')](_0x345af6,0x1),_0x345af6--;const _0x107e1a=_0x359306['findIndex'](_0x612bdf=>_0x612bdf[_0x1906('0x50')]==_0x39f2c7);_0x107e1a>-0x1&&_0x359306[_0x1906('0xb7')](_0x107e1a,0x1);}}function _0x11cef3(_0xa9135c){const _0x677912=_0xa9135c[_0x1906('0x1f')](':');return{'group':_0x677912[0x0],'type':_0x677912[0x1],'subType':_0x677912[_0x1906('0x30')]>=0x5?_0x677912[0x2]:null,'id':_0x677912[_0x1906('0x30')]<0x5?_0x677912[0x2]:_0x677912[0x3],'authorId':_0x677912[_0x1906('0x30')]<0x5?_0x677912[0x3]:_0x677912[0x4],'markerCount':0x6==_0x677912[_0x1906('0x30')]?_0x677912[0x5]:null};}function _0x534b5b(_0x5e1eaa){for(let _0x514ed7=0x0;_0x514ed7<_0x359306[_0x1906('0x30')];_0x514ed7++){if(_0x5e1eaa[_0x1906('0x75')]&&_0x1906('0x9c')==_0x359306[_0x514ed7][_0x1906('0x77')])return _0x5e1eaa[_0x1906('0xae')]=_0x359306[_0x514ed7],void delete _0x5e1eaa[_0x1906('0x75')];if(!_0x5e1eaa[_0x1906('0x75')]&&!_0x5e1eaa[_0x1906('0xcf')]&&'deletion'==_0x359306[_0x514ed7]['type'])return void(_0x5e1eaa[_0x1906('0x8c')]=_0x359306[_0x514ed7]);}}}[_0x1906('0xbc')](_0x42c6ea,_0x47e76b){let _0xf6f1da=0x0,_0xd4eabd=!0x1;const _0x4daff8=new Map();for(const _0x36e740 of _0x42c6ea)_0x36e740[_0x47e76b]?_0xd4eabd&&(_0xf6f1da++,_0xd4eabd=!0x1):(_0xf6f1da++,_0xd4eabd=!0x0),_0x4daff8['set'](_0x36e740['id'],_0xf6f1da);for(let _0x1ae702=0x0;_0x1ae702<_0x42c6ea[_0x1906('0x30')];_0x1ae702++){if(_0x1906('0xcf')==_0x47e76b&&_0x42c6ea[_0x1ae702][_0x1906('0x75')]||'isAdded'==_0x47e76b&&_0x42c6ea[_0x1ae702][_0x1906('0xcf')])continue;if(_0x1906('0xb0')==_0x42c6ea[_0x1ae702][_0x1906('0x77')]){_0x42c6ea[_0x1ae702][_0x1906('0x84')]=0x0;continue;}const _0xdbf523=_0x4daff8[_0x1906('0x4f')](_0x42c6ea[_0x1ae702][_0x1906('0xd8')]),_0x5c7e35=_0x4daff8[_0x1906('0x4f')](_0x42c6ea[_0x1ae702]['id']);_0x42c6ea[_0x1ae702][_0x1906('0x84')]=_0xdbf523-_0x5c7e35;}}[_0x1906('0xd5')](_0x385c1c,_0x3f1ff3,_0x42c30d=!0x1){const _0x1df558=[];let _0x83e92e=this[_0x1906('0x96')][_0x1906('0xab')](_0x385c1c),_0x151b25=this[_0x1906('0x96')][_0x1906('0xab')](_0x3f1ff3);for(-0x1==_0x151b25&&(_0x151b25=this[_0x1906('0x96')]['_revisions'][_0x1906('0x30')],_0x42c30d=!0x1);_0x83e92e<_0x151b25;)_0x1df558[_0x1906('0xd0')](this[_0x1906('0x96')][_0x1906('0xf')](_0x83e92e)),_0x83e92e++;return _0x42c30d&&_0x1df558[_0x1906('0xd0')](this['repository'][_0x1906('0xf')](_0x83e92e)),_0x1df558;}[_0x1906('0xb9')](_0x29e5b1,_0x2abd5f,_0x4b27ac,_0x4a3660){const _0x2672f8=this[_0x1906('0x78')][_0x1906('0x105')][_0x1906('0xcc')];let _0x4cbd27=_0x2abd5f;for(;_0x29e5b1[_0x4cbd27]&&_0x29e5b1[_0x4cbd27][_0x1906('0x75')];)_0x4cbd27++;let _0x3e2817=_0x4a3660;for(;_0x4b27ac[_0x3e2817]&&_0x4b27ac[_0x3e2817][_0x1906('0xcf')];)_0x3e2817++;_0x513b55(_0x29e5b1,_0x2abd5f,_0x4cbd27),_0x513b55(_0x4b27ac,_0x4a3660,_0x3e2817);const _0x8a2787=_0x4b27ac[_0x1906('0x38')](_0x4a3660,_0x3e2817)[_0x1906('0x3a')](_0x29e5b1[_0x1906('0x38')](_0x2abd5f,_0x4cbd27));return _0x8a2787['sort']((_0x5a8f4e,_0xfc932f)=>_0x5a8f4e[_0x1906('0x67')]!=_0xfc932f['side']?_0x5a8f4e[_0x1906('0x67')]-_0xfc932f[_0x1906('0x67')]:_0x5a8f4e[_0x1906('0x42')]!=_0xfc932f[_0x1906('0x42')]?_0x5a8f4e['level']-_0xfc932f['level']:_0x5a8f4e[_0x1906('0x84')]!=_0xfc932f['distance']?_0xfc932f['distance']-_0x5a8f4e[_0x1906('0x84')]:!!_0x5a8f4e[_0x1906('0x75')]!=!!_0xfc932f[_0x1906('0x75')]?-0x1==_0x5a8f4e['side']||0x0==_0x5a8f4e[_0x1906('0x67')]?_0x5a8f4e[_0x1906('0x75')]?-0x1:0x1:_0x5a8f4e[_0x1906('0x75')]?0x1:-0x1:_0x5a8f4e['index']-_0xfc932f[_0x1906('0xe3')]),{'commonTape':_0x8a2787,'iEnd':_0x4cbd27,'jEnd':_0x3e2817};function _0x513b55(_0x5c9b38,_0x3f1e8a,_0x1b1f9e){let _0x304121=-0x1,_0x26a4f5=Number[_0x1906('0x18')],_0x4c46f5=!0x0;for(let _0x47c01=_0x3f1e8a;_0x47c01<_0x1b1f9e;_0x47c01++)if(_0x2672f8['isInline'](_0x5c9b38[_0x47c01]['item'])||(_0x4c46f5=!0x1),_0x5c9b38[_0x47c01][_0x1906('0xe7')][_0x1906('0xf6')]<_0x3f1e8a&&(_0x304121=_0x47c01),_0x5c9b38[_0x47c01][_0x1906('0xe7')][_0x1906('0xaf')]>=_0x1b1f9e){_0x26a4f5=_0x47c01;break;}_0x4c46f5&&(_0x304121=_0x1b1f9e-0x1);for(let _0x27a7f2=_0x3f1e8a;_0x27a7f2<_0x1b1f9e;_0x27a7f2++)_0x5c9b38[_0x27a7f2][_0x1906('0x67')]=_0x27a7f2<=_0x304121?-0x1:_0x27a7f2<_0x26a4f5?0x0:0x1,_0x5c9b38[_0x27a7f2]['index']=_0x27a7f2;let _0x5da17d=0x0;for(let _0x1b4fef=_0x3f1e8a;_0x1b4fef<=_0x304121;_0x1b4fef++)0x0==_0x5c9b38[_0x1b4fef][_0x1906('0x84')]?_0x5c9b38[_0x1b4fef]['level']=_0x5da17d:(_0x5da17d++,_0x5c9b38[_0x1b4fef][_0x1906('0x42')]=_0x5da17d,_0x5da17d++);for(let _0x3a9b21=_0x3f1e8a;_0x3a9b21<_0x1b1f9e;_0x3a9b21++)0x0==_0x5c9b38[_0x3a9b21][_0x1906('0x67')]&&(_0x5c9b38[_0x3a9b21][_0x1906('0x42')]=_0x5da17d);_0x5da17d=0x0;for(let _0x1250f1=_0x1b1f9e-0x1;_0x1250f1>=_0x26a4f5;_0x1250f1--)0x0==_0x5c9b38[_0x1250f1][_0x1906('0x84')]?_0x5c9b38[_0x1250f1][_0x1906('0x42')]=_0x5da17d:(_0x5da17d--,_0x5c9b38[_0x1250f1]['level']=_0x5da17d,_0x5da17d--);}}['_fixObsoleteTags'](_0x2c3065){const _0x129c5b=new Map(),_0x2ca0fe=this[_0x1906('0x78')][_0x1906('0x105')][_0x1906('0xcc')];for(let _0x527e28=0x1;_0x527e28<_0x2c3065[_0x1906('0x30')];_0x527e28++){let _0x38a1ac,_0x40d59f,_0x4ba4e3;const _0x2e90ac=_0x2c3065[_0x527e28],_0x415d6d=_0x2c3065[_0x527e28-0x1];if(_0x1906('0xb0')==_0x2e90ac['type'])continue;if(_0x2e90ac[_0x1906('0x77')]!=_0x415d6d[_0x1906('0x77')])continue;if(!_0x2ca0fe[_0x1906('0x4b')](_0x415d6d[_0x1906('0xe7')])||_0x2ca0fe['isLimit'](_0x415d6d[_0x1906('0xe7')]))continue;if(!_0x2ca0fe[_0x1906('0x4b')](_0x2e90ac['item'])||_0x2ca0fe['isLimit'](_0x2e90ac[_0x1906('0xe7')]))continue;if((_0x2c3065[_0x527e28][_0x1906('0x75')]||_0x2c3065[_0x527e28][_0x1906('0xae')])&&_0x2c3065[_0x527e28-0x1][_0x1906('0xcf')])_0x38a1ac=_0x2c3065[_0x527e28],_0x40d59f=_0x2c3065[_0x527e28-0x1],_0x4ba4e3=_0x527e28-0x1;else{if(!_0x2c3065[_0x527e28][_0x1906('0xcf')]||!_0x2c3065[_0x527e28-0x1][_0x1906('0x75')]&&!_0x2c3065[_0x527e28-0x1][_0x1906('0xae')])continue;_0x38a1ac=_0x2c3065[_0x527e28-0x1],_0x40d59f=_0x2c3065[_0x527e28],_0x4ba4e3=_0x527e28;}const _0x249cf9=_0x38a1ac[_0x1906('0x42')]==_0x40d59f[_0x1906('0x42')],_0x22e713=Math[_0x1906('0x86')](_0x38a1ac[_0x1906('0x42')])<Math[_0x1906('0x86')](_0x40d59f['level'])&&0x0==_0x40d59f['distance'];(_0x249cf9||_0x22e713)&&(_0x129c5b['set'](_0x40d59f['id'],_0x38a1ac['id']),_0x2c3065['splice'](_0x4ba4e3,0x1),_0x527e28--,_0x38a1ac[_0x1906('0x75')]=!0x1);}for(let _0x17e990=0x0;_0x17e990<_0x2c3065[_0x1906('0x30')];_0x17e990++)_0x129c5b[_0x1906('0x31')](_0x2c3065[_0x17e990][_0x1906('0xd8')])&&(_0x2c3065[_0x17e990][_0x1906('0xd8')]=_0x129c5b[_0x1906('0x4f')](_0x2c3065[_0x17e990][_0x1906('0xd8')]));}[_0x1906('0xe9')](_0x3cb688){const _0x249c7c=new Set(_0x3cb688[_0x1906('0xe0')](_0x410e65=>_0x410e65['id']));for(let _0x2dd42c=0x0;_0x2dd42c<_0x3cb688[_0x1906('0x30')];_0x2dd42c++)_0x249c7c[_0x1906('0x31')](_0x3cb688[_0x2dd42c][_0x1906('0xd8')])||0x0==_0x3cb688[_0x2dd42c]['distance']||(_0x3cb688[_0x2dd42c][_0x1906('0xde')]=!0x0);return _0x3cb688[_0x1906('0x80')](_0x53e93a=>!_0x53e93a[_0x1906('0xde')]);}[_0x1906('0xc')](_0xba1b36){const _0x2af783=new Set();for(let _0x430082=0x0;_0x430082<_0xba1b36['length'];_0x430082++){if(_0x2af783['has'](_0xba1b36[_0x430082]['id'])&&_0xba1b36[_0x430082][_0x1906('0xcf')]&&(_0xba1b36[_0x430082][_0x1906('0xde')]=!0x0),_0xba1b36[_0x430082][_0x1906('0xde')])continue;if(0x0==_0xba1b36[_0x430082]['distance'])continue;if(_0x1906('0x4a')!=_0xba1b36[_0x430082][_0x1906('0x77')])continue;if(null==_0xba1b36[_0x430082][_0x1906('0xd8')])continue;let _0x18ae2d=_0x430082+0x1,_0x4b280c=0x0;for(;_0xba1b36[_0x18ae2d]['id']!=_0xba1b36[_0x430082][_0x1906('0xd8')];)_0x1906('0x4a')==_0xba1b36[_0x18ae2d][_0x1906('0x77')]?_0x4b280c++:_0x1906('0x6d')==_0xba1b36[_0x18ae2d][_0x1906('0x77')]&&_0x4b280c--,_0x18ae2d++;if(0x0!=_0x4b280c){if(_0xba1b36[_0x430082][_0x1906('0xcf')])_0xba1b36[_0x430082][_0x1906('0xde')]=!0x0;else for(;_0x18ae2d!=_0x430082;)_0xba1b36[_0x18ae2d][_0x1906('0xcf')]&&0x0!=_0xba1b36[_0x18ae2d][_0x1906('0x84')]&&(_0xba1b36[_0x18ae2d][_0x1906('0xde')]=!0x0,_0x2af783['add'](_0xba1b36[_0x18ae2d]['pairId'])),_0x18ae2d--;}}return _0xba1b36[_0x1906('0x80')](_0x5f1295=>!_0x5f1295[_0x1906('0xde')]);}[_0x1906('0xa9')](_0x4d915c){const _0x46fe71=this[_0x1906('0x78')][_0x1906('0x105')][_0x1906('0xcc')];for(let _0x169f29=0x0;_0x169f29<_0x4d915c[_0x1906('0x30')];_0x169f29++){if(!(_0x4d915c[_0x169f29][_0x1906('0x75')]||_0x4d915c[_0x169f29][_0x1906('0xae')]||_0x4d915c[_0x169f29][_0x1906('0xcf')]||_0x4d915c[_0x169f29]['isRemoveSuggestion']))continue;if(0x0==_0x4d915c[_0x169f29][_0x1906('0x84')])continue;const _0x29663f=_0x4d915c[_0x169f29][_0x1906('0xe7')];_0x46fe71[_0x1906('0x4b')](_0x29663f)||_0x46fe71[_0x1906('0xa5')](_0x29663f)||(_0x4d915c[_0x169f29][_0x1906('0x75')]&&delete _0x4d915c[_0x169f29][_0x1906('0x75')],_0x4d915c[_0x169f29][_0x1906('0xae')]&&delete _0x4d915c[_0x169f29][_0x1906('0xae')],_0x4d915c[_0x169f29][_0x1906('0x8c')]&&delete _0x4d915c[_0x169f29][_0x1906('0x8c')],_0x4d915c[_0x169f29]['isRemoved']&&(_0x4d915c[_0x169f29][_0x1906('0xde')]=!0x0));}return _0x4d915c[_0x1906('0x80')](_0x240928=>!_0x240928[_0x1906('0xde')]);}[_0x1906('0x74')](_0x4222eb,_0x5b0d46){const _0x447190=new _0x4c4eef(),_0x35c83b=[],_0x45f554=new Map(),_0x5b242a=this[_0x1906('0x78')][_0x1906('0x105')],_0x1fde4b=_0x5b242a[_0x1906('0xcc')],_0x587d17=[_0x447190],_0x35c79e={},_0xdbab96={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x447505=null;const _0x2e242e=[0x0];for(let _0x3b818d=0x0;_0x3b818d<_0x4222eb[_0x1906('0x30')];_0x3b818d++){let _0x2faab4,_0x36d9e7;if(_0x1906('0x4a')===_0x4222eb[_0x3b818d]['type']){_0x2faab4=_0x5b242a[_0x1906('0xb6')](_0x447190,_0x2e242e);const _0x540faf=new _0x451052(_0x4222eb[_0x3b818d][_0x1906('0xe7')]['name'],_0x4222eb[_0x3b818d][_0x1906('0xe7')][_0x1906('0xa3')]());_0x587d17[0x0]['_appendChild'](_0x540faf),_0x2e242e[_0x1906('0xd0')](0x0),_0x587d17['unshift'](_0x540faf),_0x36d9e7=_0x5b242a[_0x1906('0xb6')](_0x447190,_0x2e242e),_0x447505=null;}else{if(_0x1906('0x6d')===_0x4222eb[_0x3b818d][_0x1906('0x77')])_0x587d17[_0x1906('0xe8')](),_0x2faab4=_0x5b242a[_0x1906('0xb6')](_0x447190,_0x2e242e),_0x2e242e['pop'](),_0x2e242e[_0x2e242e[_0x1906('0x30')]-0x1]++,_0x36d9e7=_0x5b242a[_0x1906('0xb6')](_0x447190,_0x2e242e),_0x447505=null;else{if(_0x2faab4=_0x5b242a[_0x1906('0xb6')](_0x447190,_0x2e242e),_0x447505&&_0x1858ec(_0x447505,_0x4222eb[_0x3b818d][_0x1906('0xe7')]))_0x447505[_0x1906('0x90')]+=_0x4222eb[_0x3b818d][_0x1906('0xe7')][_0x1906('0x9a')];else{const _0x44d7f1=new _0x1e3124(_0x4222eb[_0x3b818d][_0x1906('0xe7')]['data'],_0x4222eb[_0x3b818d][_0x1906('0xe7')][_0x1906('0xa3')]());_0x587d17[0x0]['_appendChild'](_0x44d7f1),_0x447505=_0x44d7f1;}_0x2e242e[_0x2e242e['length']-0x1]+=_0x4222eb[_0x3b818d]['item'][_0x1906('0xfc')],_0x36d9e7=_0x5b242a[_0x1906('0xb6')](_0x447190,_0x2e242e);}}for(const _0x3fd3be of _0x4222eb[_0x3b818d]['markersStart'])_0x45f554['set'](_0x3fd3be,{'start':_0x2faab4,'end':null});_0x501c7d(_0x1906('0x8c'),_0x3b818d,_0x2faab4,_0x36d9e7),_0x501c7d(_0x1906('0xae'),_0x3b818d,_0x2faab4,_0x36d9e7),_0x501c7d(_0x1906('0xcf'),_0x3b818d,_0x2faab4,_0x36d9e7),_0x501c7d(_0x1906('0x75'),_0x3b818d,_0x2faab4,_0x36d9e7);for(const _0x55b349 of _0x4222eb[_0x3b818d][_0x1906('0xc4')]){_0x45f554[_0x1906('0x4f')](_0x55b349)[_0x1906('0x70')]=_0x36d9e7;}}for(const [_0x35c622,_0x477294]of _0x45f554){const _0x488c2c=this['editor'][_0x1906('0x105')][_0x1906('0x53')](_0x477294[_0x1906('0x98')],_0x477294['end']);_0x447190[_0x1906('0x0')][_0x1906('0x61')](_0x35c622,_0x488c2c);}return _0x35c83b[_0x1906('0x8e')]((_0x2e42df,_0x48c3a5)=>{const _0x26a638=_0x447190[_0x1906('0x0')]['get'](_0x1906('0x34')+_0x2e42df['id']),_0x5eac58=_0x447190[_0x1906('0x0')][_0x1906('0x4f')](_0x1906('0x34')+_0x48c3a5['id']);return _0x26a638[_0x1906('0x98')]['isBefore'](_0x5eac58[_0x1906('0x98')])?-0x1:_0x26a638[_0x1906('0x98')]['isAfter'](_0x5eac58['start'])?0x1:_0x26a638[_0x1906('0x70')][_0x1906('0x7f')](_0x5eac58['end'])?-0x1:_0x26a638[_0x1906('0x70')]['isAfter'](_0x5eac58[_0x1906('0x70')])?0x1:_0x1906('0x8a')===_0x2e42df[_0x1906('0x77')]?-0x1:0x1;}),{'root':_0x447190,'changes':_0x35c83b};function _0x501c7d(_0x562cb7,_0x583332,_0x1f6878,_0x2d97e7){const _0x156ea0=!!_0x4222eb[_0x583332][_0x562cb7],_0x4d5a97=_0x156ea0?_0x4222eb[_0x583332][_0x562cb7][_0x1906('0x85')]:null,_0x34bd1f=_0x583332===_0x4222eb[_0x1906('0x30')]-0x1,_0x19c9c9=_0xdbab96[_0x562cb7][0x0],_0x3132ed=_0x1fde4b['isObject'](_0x4222eb[_0x583332]['item']);!_0x35c79e[_0x562cb7]&&_0x156ea0?_0x35c79e[_0x562cb7]={'start':_0x1f6878,'tapeItem':_0x4222eb[_0x583332],'userId':_0x4d5a97,'type':_0x562cb7}:_0x35c79e[_0x562cb7]&&!_0x156ea0?(_0x35c79e[_0x562cb7]['end']=_0x1f6878,_0x2c0fe4(_0x35c79e[_0x562cb7]),_0x35c79e[_0x562cb7]=null):_0x35c79e[_0x562cb7]&&_0x156ea0&&_0x35c79e[_0x562cb7]['userId']!==_0x4d5a97&&(_0x35c79e[_0x562cb7][_0x1906('0x70')]=_0x1f6878,_0x19c9c9&&_0x19c9c9[_0x1906('0x85')]===_0x35c79e[_0x562cb7][_0x1906('0x85')]||_0x2c0fe4(_0x35c79e[_0x562cb7]),_0x35c79e[_0x562cb7]={'start':_0x1f6878,'tapeItem':_0x4222eb[_0x583332],'userId':_0x4d5a97,'type':_0x562cb7}),_0x35c79e[_0x562cb7]&&_0x3132ed&&(_0x1906('0x4a')!==_0x4222eb[_0x583332][_0x1906('0x77')]||_0x19c9c9&&_0x19c9c9[_0x1906('0x85')]===_0x4d5a97||_0xdbab96[_0x562cb7][_0x1906('0xdf')]({'userId':_0x4d5a97,'object':_0x4222eb[_0x583332]['item'],'change':_0x35c79e[_0x562cb7]}),_0x1906('0x6d')===_0x4222eb[_0x583332][_0x1906('0x77')]&&_0x19c9c9&&_0x19c9c9[_0x1906('0x43')]===_0x4222eb[_0x583332][_0x1906('0xe7')]&&(_0xdbab96[_0x562cb7][_0x1906('0xe8')](),_0x35c79e[_0x562cb7]=_0x19c9c9[_0x1906('0x81')])),_0x35c79e[_0x562cb7]&&_0x34bd1f&&(_0x35c79e[_0x562cb7][_0x1906('0x70')]=_0x2d97e7,_0x2c0fe4(_0x35c79e[_0x562cb7]),_0x35c79e[_0x562cb7]=null);}function _0x2c0fe4({start:_0x4092c5,end:_0x28f1f4,tapeItem:_0x153905,userId:_0x5b21c4,type:_0xb8fe53}){const _0x2188f5=_0x153905[_0x1906('0xe7')],_0x1edfab=_0x5b242a[_0x1906('0xcc')][_0x1906('0x4b')](_0x2188f5)&&!_0x5b242a[_0x1906('0xcc')][_0x1906('0xa5')](_0x2188f5),_0x3f0baf=_0x4092c5['nodeAfter']==_0x28f1f4[_0x1906('0x106')]&&_0x28f1f4[_0x1906('0xff')];if(_0x1edfab&&_0x3f0baf)return;const _0x3b88d5=_0x5b242a['createRange'](_0x4092c5,_0x28f1f4),_0x561f6e=_0x5b0d46['get'](_0x5b21c4),_0x7dd61d=new _0x542d67({'author':_0x561f6e,'type':_0x1906('0x75')==_0xb8fe53||_0x1906('0xae')==_0xb8fe53?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xb8fe53||_0x1906('0x8c')==_0xb8fe53},'createdAt':new Date()});_0x35c83b['push'](_0x7dd61d),_0x447190[_0x1906('0x0')][_0x1906('0x61')](_0x1906('0x34')+_0x7dd61d['id'],_0x3b88d5);}function _0x1858ec(_0x308aa7,_0x1989be){const _0x100b8d=_0x308aa7[_0x1906('0xa3')](),_0x39c109=_0x1989be[_0x1906('0xa3')]();for(const _0x50d7bf of _0x100b8d){if(_0x50d7bf[0x1]!==_0x1989be[_0x1906('0xc3')](_0x50d7bf[0x0]))return!0x1;_0x39c109[_0x1906('0x8')]();}return _0x39c109[_0x1906('0x8')]()[_0x1906('0x1e')];}}['_setConversion'](){this['editor'][_0x1906('0x2e')][_0x1906('0xdc')](_0x1906('0xbe'))['dataToMarker']({'view':_0x1906('0x99')}),this[_0x1906('0x78')][_0x1906('0x2e')][_0x1906('0xdc')](_0x1906('0x46'))['markerToHighlight']({'model':_0x1906('0x99'),'view':_0x5484e5=>{const _0xe96a51=_0x5484e5['markerName'][_0x1906('0x1f')](':')[0x1],_0x3c5fe0=this[_0x1906('0x22')](_0xe96a51);if(!_0x3c5fe0)return null;const _0x5ca82b=_0x1906('0x8a')==_0x3c5fe0[_0x1906('0x77')]?_0x1906('0x9c'):_0x1906('0xe'),_0x284016=[_0x1906('0xd9'),'ck-suggestion-marker-'+_0x5ca82b];return _0x3c5fe0['data'][_0x1906('0x69')]&&_0x284016[_0x1906('0xd0')](_0x1906('0xfa')+_0x5ca82b+_0x1906('0x5c')),this[_0x1906('0x3b')]==_0x3c5fe0&&_0x284016[_0x1906('0xd0')](_0x1906('0x5')),{'classes':_0x284016,'attributes':{'data-change-id':_0xe96a51}};}}),this[_0x1906('0x78')]['conversion'][_0x1906('0xdc')](_0x1906('0xbe'))[_0x1906('0x8a')](_0x5b001c=>{_0x5b001c['on']('element:pre',(_0x2aebd9,_0x3ca747,_0x1be2a3)=>{const _0x3c8637=_0x3ca747[_0x1906('0x52')][_0x1906('0xce')](0x0);if(!_0x3c8637||!_0x3c8637['is'](_0x1906('0x65'),_0x1906('0x102')))return;if(!_0x1be2a3[_0x1906('0x89')][_0x1906('0x58')](_0x3c8637,{'attributes':[_0x1906('0xb8'),_0x1906('0xda')]}))return;const _0x5c5c14=_0x3ca747['modelRange'][_0x1906('0x98')]['nodeAfter'];_0x1be2a3[_0x1906('0x48')][_0x1906('0xfb')](_0x1906('0xb8'),_0x3c8637['getAttribute']('vid_start'),_0x5c5c14),_0x1be2a3['writer'][_0x1906('0xfb')](_0x1906('0xda'),_0x3c8637[_0x1906('0xc3')](_0x1906('0xda')),_0x5c5c14);},{'priority':'low'});}),this['editor'][_0x1906('0x2e')][_0x1906('0xdc')]('upcast')[_0x1906('0x8a')](_0x1b2009=>{_0x1b2009['on'](_0x1906('0x65'),(_0x3334d6,_0x1dc1ab,_0x58c957)=>{if(!_0x58c957[_0x1906('0x89')][_0x1906('0x58')](_0x1dc1ab['viewItem'],{'attributes':['vid_start',_0x1906('0xda')]}))return;if(_0x1dc1ab['modelRange']['isCollapsed'])return;const _0x1aa151=_0x1dc1ab[_0x1906('0xf0')][_0x1906('0x98')][_0x1906('0x5d')];_0x1aa151[_0x1906('0xbd')](_0x1906('0xb8'))||_0x1aa151['hasAttribute']('vid')||(_0x58c957[_0x1906('0x48')][_0x1906('0xfb')]('vid_start',_0x1dc1ab[_0x1906('0x52')][_0x1906('0xc3')](_0x1906('0xb8')),_0x1aa151),_0x58c957[_0x1906('0x48')][_0x1906('0xfb')]('vid_end',_0x1dc1ab[_0x1906('0x52')][_0x1906('0xc3')](_0x1906('0xda')),_0x1aa151));},{'priority':_0x1906('0x39')});}),this[_0x1906('0x78')][_0x1906('0x2e')]['for'](_0x1906('0xbe'))['elementToAttribute']({'view':{'name':_0x1906('0xba'),'attributes':{'vid':!0x0}},'model':{'key':_0x1906('0xa2'),'value':_0x3dc30e=>_0x3dc30e['getAttribute'](_0x1906('0xa2'))}}),this[_0x1906('0x78')][_0x1906('0x105')][_0x1906('0xcc')]['on'](_0x1906('0xd3'),(_0x3e97cc,[,_0x10384b])=>{[_0x1906('0xb8'),_0x1906('0xda'),_0x1906('0xa2')][_0x1906('0xef')](_0x10384b)&&(_0x3e97cc[_0x1906('0x51')]=!0x0,_0x3e97cc[_0x1906('0x7c')]());},{'priority':_0x1906('0x97')}),this['editor'][_0x1906('0x2e')][_0x1906('0xdc')](_0x1906('0x3'))[_0x1906('0x8a')](_0x2e63fe=>{_0x2e63fe['on'](_0x1906('0xe1'),(_0x1af755,_0x419abb,_0x40e4d4)=>{if('\x20'!=_0x419abb[_0x1906('0xe7')][_0x1906('0x9a')]||_0x419abb[_0x1906('0xe7')][_0x1906('0x106')][_0x1906('0xad')]>0x1)return;if(!_0x40e4d4[_0x1906('0x89')]['consume'](_0x419abb[_0x1906('0xe7')],_0x1af755[_0x1906('0x50')]))return;const _0x80bc29=_0x40e4d4[_0x1906('0x48')],_0x483f40=_0x40e4d4[_0x1906('0x57')]['toViewRange'](_0x419abb[_0x1906('0x47')]);_0x80bc29[_0x1906('0x2f')](_0x483f40,_0x80bc29[_0x1906('0x10')](_0x1906('0xba')));});}),this['editor'][_0x1906('0x2e')][_0x1906('0xdc')]('dataDowncast')[_0x1906('0x4d')]({'model':'revision'}),this[_0x1906('0x78')][_0x1906('0xb1')][_0x1906('0xf1')]['on'](_0x1906('0xee'),function(_0x462b53){const _0x304158=_0x462b53[_0x1906('0x108')][_0x1906('0x4f')]('RevisionViewer');return(_0x2d3829,_0x6cda60,_0xfe12ff)=>{const _0x2ef5a7=_0x6cda60['markerName'][_0x1906('0x1f')](':')[0x1],_0xfd5482=_0x304158[_0x1906('0x22')](_0x2ef5a7);if(!_0xfd5482)return null;const _0x5d26d4=_0x1906('0x8a')==_0xfd5482[_0x1906('0x77')]?_0x1906('0x1f'):_0x1906('0xea');if(!_0xfe12ff['consumable'][_0x1906('0xc8')](_0x6cda60[_0x1906('0x10a')],_0x2d3829[_0x1906('0x50')]))return;const _0x3528c2=_0x6cda60[_0x1906('0x10a')][_0x1906('0x10b')](),_0x3b557c=_0x6cda60[_0x1906('0x10a')][_0x1906('0x98')],_0x18e710=_0x462b53['model'][_0x1906('0xcc')];let _0x370b13=null,_0x36eff9=null,_0x125258=!0x1,_0x3956fb=!0x1;for(const _0xfbf4f4 of _0x3528c2){const _0x597e65=_0xfbf4f4[_0x1906('0xe7')];_0x125258=_0x125258||_0x18e710[_0x1906('0xed')](_0x597e65);const _0x2ae2f2=_0xfe12ff[_0x1906('0x57')][_0x1906('0x66')](_0x597e65);if(_0x2ae2f2&&_0x2ae2f2[_0x1906('0x104')](_0x1906('0x68')))return;'elementEnd'==_0xfbf4f4[_0x1906('0x77')]&&(_0x18e710[_0x1906('0x4b')](_0x597e65)&&!_0x18e710[_0x1906('0xa5')](_0x597e65)&&(_0x597e65[_0x1906('0x107')]||_0x3b557c[_0x1906('0x2a')]?_0x370b13&&_0x370b13[_0x1906('0x106')]==_0x597e65||(_0x370b13=_0x597e65,_0x239163(_0xfbf4f4[_0x1906('0x13')]),_0x3956fb=!0x0):_0x36eff9=_0x36eff9||_0xfbf4f4[_0x1906('0x13')]));}function _0x239163(_0x3e869f){const _0x50c379=_0xfe12ff[_0x1906('0x48')][_0x1906('0x103')](_0x1906('0xba'),{'class':_0x1906('0xfa')+_0x5d26d4}),_0xa7911=_0xfe12ff[_0x1906('0x57')][_0x1906('0xe6')](_0x3e869f);_0xfd5482[_0x1906('0x9a')]['isSuggestion']&&_0xfe12ff[_0x1906('0x48')][_0x1906('0x94')]('ck-suggestion-marker-'+_0x5d26d4+_0x1906('0x5c'),_0x50c379),_0x304158[_0x1906('0x3b')]==_0xfd5482&&_0xfe12ff[_0x1906('0x48')][_0x1906('0x94')](_0x1906('0x5'),_0x50c379),_0xfe12ff[_0x1906('0x48')]['insert'](_0xa7911,_0x50c379),_0xfe12ff['mapper'][_0x1906('0xc5')](_0x50c379,_0x6cda60[_0x1906('0x4')]);}_0x125258||_0x3956fb||!_0x36eff9||_0x239163(_0x36eff9);};}(this['editor']),{'priority':_0x1906('0x1c')}),this[_0x1906('0x78')][_0x1906('0xb1')]['downcastDispatcher']['on'](_0x1906('0x28'),(_0xb555bb,_0x550bb7,_0x4a24a5)=>{const _0x7ad11e=_0x4a24a5['mapper'][_0x1906('0x2d')](_0x550bb7['markerName']);if(_0x7ad11e)for(const _0x40d663 of _0x7ad11e)(_0x40d663[_0x1906('0x93')](_0x1906('0xec'))||_0x40d663[_0x1906('0x93')](_0x1906('0x26')))&&(_0x4a24a5[_0x1906('0x57')][_0x1906('0x20')](_0x40d663,_0x550bb7[_0x1906('0x4')]),_0x4a24a5[_0x1906('0x48')][_0x1906('0x9d')](_0x40d663));},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on'](_0x1906('0xee'),(_0x3c3535,_0x3d5b20,_0x32d4dd)=>{const _0x133f7b=_0x3d5b20[_0x1906('0x4')][_0x1906('0x1f')](':')[0x1],_0x5ae0a5=this[_0x1906('0x22')](_0x133f7b);if(!_0x5ae0a5)return null;const _0x4bd03d=_0x1906('0x8a')==_0x5ae0a5[_0x1906('0x77')]?'split':_0x1906('0xea');if(_0x32d4dd[_0x1906('0x89')]['test'](_0x3d5b20['markerRange'],_0x3c3535[_0x1906('0x50')]))for(const _0x4c3c1f of _0x3d5b20[_0x1906('0x10a')][_0x1906('0x91')]()){if(!_0x4c3c1f['is']('element',_0x1906('0x41')))continue;const _0x335659=_0x32d4dd[_0x1906('0x48')]['createUIElement']('span',{'class':_0x1906('0xfa')+_0x4bd03d}),_0x3bf0b4=_0x32d4dd['mapper']['toViewPosition'](this[_0x1906('0x78')]['model'][_0x1906('0x37')](_0x4c3c1f));_0x5ae0a5[_0x1906('0x9a')][_0x1906('0x69')]&&_0x32d4dd['writer'][_0x1906('0x94')](_0x1906('0xfa')+_0x4bd03d+_0x1906('0x5c'),_0x335659),this[_0x1906('0x3b')]==_0x5ae0a5&&_0x32d4dd[_0x1906('0x48')][_0x1906('0x94')]('ck-suggestion-marker--active',_0x335659),_0x32d4dd[_0x1906('0x48')]['insert'](_0x3bf0b4,_0x335659),_0x32d4dd[_0x1906('0x57')][_0x1906('0xc5')](_0x335659,_0x3d5b20[_0x1906('0x4')]);}},{'priority':_0x1906('0x1c')}),this['editor'][_0x1906('0x2e')]['for']('upcast')[_0x1906('0x12')]({'view':'comment','model':_0x32d943=>_0x1906('0xc9')+_0x32d943,'converterPriority':'highest'}),this['editor'][_0x1906('0x2e')][_0x1906('0xdc')]('upcast')[_0x1906('0x12')]({'view':'suggestion','model':_0x5301e2=>_0x1906('0x11')+_0x5301e2,'converterPriority':_0x1906('0x97')}),this['editor']['conversion'][_0x1906('0xdc')](_0x1906('0x3'))['markerToData']({'model':_0x1906('0x6b'),'view':_0x23144f=>_0x1906('0xf2')+_0x23144f,'converterPriority':_0x1906('0x97')}),this[_0x1906('0x78')][_0x1906('0x2e')][_0x1906('0xdc')](_0x1906('0x46'))[_0x1906('0x1b')]({'model':_0x1906('0x6b'),'view':_0x5729db=>{const _0x239e6d=_0x5729db['markerName'][_0x1906('0x1f')](':')[0x1];return _0x1906('0x9c')!=_0x239e6d&&_0x1906('0xe')!=_0x239e6d?null:{'classes':[_0x1906('0xf9'),'ck-suggestion-preview-marker-'+_0x239e6d]};}}),this[_0x1906('0x78')][_0x1906('0xb1')][_0x1906('0xf1')]['on'](_0x1906('0x109'),Z(this[_0x1906('0x78')],_0x1906('0xea')),{'priority':_0x1906('0x1c')}),this['editor'][_0x1906('0xb1')]['downcastDispatcher']['on'](_0x1906('0x25'),Z(this[_0x1906('0x78')],_0x1906('0x1f')),{'priority':_0x1906('0x1c')}),this[_0x1906('0x78')][_0x1906('0xb1')][_0x1906('0xf1')]['on'](_0x1906('0x16'),(_0x3cc418,_0x167c80,_0x4fc950)=>{const _0x4cac59=_0x4fc950[_0x1906('0x57')][_0x1906('0x2d')](_0x167c80['markerName']);if(_0x4cac59)for(const _0x1636c5 of _0x4cac59)_0x1636c5['is'](_0x1906('0xcb'))&&(_0x4fc950['mapper'][_0x1906('0x20')](_0x1636c5,_0x167c80[_0x1906('0x4')]),_0x4fc950['writer'][_0x1906('0x9d')](_0x1636c5));},{'priority':_0x1906('0x1c')});}[_0x1906('0x22')](_0x32970e){return this[_0x1906('0x87')][_0x1906('0x4f')](_0x32970e);}[_0x1906('0x7b')](_0x57f2a1){this[_0x1906('0xb')]&&this[_0x1906('0xb')][_0x1906('0xb3')](),this[_0x1906('0xb')]=new _0x325d7a(this['editor']['locale'],_0x57f2a1);const _0x19791d=this[_0x1906('0x78')]['model'][_0x1906('0x0')][_0x1906('0x4f')](_0x1906('0x34')+_0x57f2a1['id']);return this['_changeView'][_0x1906('0x3f')]=()=>_0x48a7d5(this[_0x1906('0x78')]['editing'],_0x19791d),this[_0x1906('0xb')];}[_0x1906('0x24')](){this['editor'][_0x1906('0x105')][_0x1906('0x76')]['selection'][_0x1906('0x36')](_0x1906('0x99')),this['on'](_0x1906('0xb4'),(_0x307178,_0x43482c,_0x12cb76,_0x1e6198)=>{_0x1e6198&&this[_0x1906('0x19')]['remove'](_0x1e6198),_0x12cb76&&(this[_0x1906('0x19')][_0x1906('0x8a')]({'view':_0x12cb76,'stackId':'revisionHistoryLabel','position':{'target':_0x12cb76[_0x1906('0x3f')]}}),this[_0x1906('0x19')][_0x1906('0x100')](_0x1906('0xa0')));}),this['on'](_0x1906('0xfd'),(_0x53bebd,_0x47f5e5,_0x3cf06a,_0x167dc5)=>{this['activeView']=_0x3cf06a?this['_getViewForChange'](_0x3cf06a):null,this[_0x1906('0x78')][_0x1906('0x105')]['change'](()=>{const _0x52b8e7=this[_0x1906('0x78')][_0x1906('0xb1')];_0x167dc5&&_0x52b8e7[_0x1906('0x88')](_0x1906('0x34')+_0x167dc5['id']),_0x3cf06a&&_0x52b8e7[_0x1906('0x88')]('revision:'+_0x3cf06a['id']);});}),this[_0x1906('0x6c')](this['editor']['editing'][_0x1906('0xbf')][_0x1906('0x76')],'mouseover',(_0x5c4ea0,_0x36ab93)=>{if(this[_0x1906('0x3b')])return;const _0x4327b9=this[_0x1906('0xaa')](_0x36ab93[_0x1906('0x5a')]),_0xc1053f=this[_0x1906('0x87')][_0x1906('0x4f')](_0x4327b9);this['activeView']=_0xc1053f?this[_0x1906('0x7b')](_0xc1053f):null;}),this[_0x1906('0x6c')](this[_0x1906('0x78')]['editing'][_0x1906('0xbf')][_0x1906('0x76')],_0x1906('0xf3'),(_0x38148a,_0xed21f1)=>{const _0x5e5ee5=this['_findChangeIdFromDomTarget'](_0xed21f1[_0x1906('0x5a')]),_0x207ee6=this[_0x1906('0x87')][_0x1906('0x4f')](_0x5e5ee5);this['activeChange']=_0x207ee6||null;});}[_0x1906('0xaa')](_0xe10dba){do{const _0x584574=_0xe10dba['getAttribute']('data-change-id');if(_0x584574)return _0x584574;_0xe10dba=_0xe10dba[_0x1906('0x106')];}while(_0xe10dba);return null;}['_cleanMarkers'](){this[_0x1906('0x78')][_0x1906('0x105')][_0x1906('0x81')](_0x7808a6=>{for(const _0x144e7c of this[_0x1906('0x78')][_0x1906('0x105')][_0x1906('0x0')])_0x7808a6[_0x1906('0x1a')](_0x144e7c);});}}function Z(_0x21c24f,_0x2c1acd){return(_0x289bde,_0x1447d1,_0x1e2907)=>{if(!_0x1e2907[_0x1906('0x89')][_0x1906('0xc8')](_0x1447d1[_0x1906('0x10a')],_0x289bde[_0x1906('0x50')]))return;const _0x5ac78c=_0x1447d1[_0x1906('0x10a')][_0x1906('0x10b')](),_0x554c69=_0x1447d1[_0x1906('0x10a')][_0x1906('0x98')],_0x458cfd=_0x21c24f['model']['schema'];let _0x5bc4ae=null,_0x4e7d29=null,_0x21a0b4=!0x1,_0x333940=!0x1;for(const _0x20ac4c of _0x5ac78c){const _0x5eebce=_0x20ac4c['item'];_0x21a0b4=_0x21a0b4||_0x458cfd[_0x1906('0xed')](_0x5eebce);const _0x4755f6=_0x1e2907[_0x1906('0x57')]['toViewElement'](_0x5eebce);if(_0x4755f6&&_0x4755f6[_0x1906('0x104')](_0x1906('0x68')))return;_0x1906('0x6d')==_0x20ac4c[_0x1906('0x77')]&&(_0x458cfd[_0x1906('0x4b')](_0x5eebce)&&!_0x458cfd['isLimit'](_0x5eebce)&&(_0x5eebce[_0x1906('0x107')]||_0x554c69[_0x1906('0x2a')]?_0x5bc4ae&&_0x5bc4ae[_0x1906('0x106')]==_0x5eebce||(_0x5bc4ae=_0x5eebce,_0x430baf(_0x20ac4c[_0x1906('0x13')]),_0x333940=!0x0):_0x4e7d29=_0x4e7d29||_0x20ac4c[_0x1906('0x13')]));}function _0x430baf(_0x546440){const _0x338dac=_0x1e2907[_0x1906('0x57')]['toViewPosition'](_0x546440),_0x7e24e1=_0x1e2907[_0x1906('0x48')][_0x1906('0x103')]('span',{'class':'ck-suggestion-preview-marker-'+_0x2c1acd});_0x1e2907[_0x1906('0x48')][_0x1906('0x5b')](_0x338dac,_0x7e24e1),_0x1e2907['mapper']['bindElementToMarker'](_0x7e24e1,_0x1447d1[_0x1906('0x4')]);}_0x21a0b4||_0x333940||!_0x4e7d29||_0x430baf(_0x4e7d29);};}_0x23516d(d,_0x528450);class tt extends _0x3864b7{constructor(_0x343ed1){super(_0x343ed1);const _0x349063=_0x343ed1['plugins'][_0x1906('0x4f')](d);this[_0x1906('0x10c')](_0x343ed1,_0x1906('0xf7')),this[_0x1906('0xa4')](_0x1906('0x9')),this[_0x1906('0x6c')](_0x349063,_0x1906('0x40'),()=>this[_0x1906('0x82')]()),this[_0x1906('0x6c')](_0x349063,_0x1906('0x4e'),()=>this[_0x1906('0x82')]());}[_0x1906('0x7')](){const _0x8dc680=this[_0x1906('0x78')],_0xf1433=_0x8dc680[_0x1906('0x108')][_0x1906('0x4f')](d),_0x574c45=_0xf1433[_0x1906('0xd4')]?_0xf1433[_0x1906('0xfe')]['newRevisionId']:null;_0x8dc680[_0x1906('0x29')][_0x1906('0x4f')](_0x1906('0x6'))[_0x1906('0x17')](_0x574c45);}['refresh'](){const {isReady:_0x211a7c,isEnabled:_0x10223b}=this[_0x1906('0x78')][_0x1906('0x108')][_0x1906('0x4f')](d);this[_0x1906('0x6f')]=_0x211a7c&&_0x10223b;}}class et extends _0x3864b7{constructor(_0x37b7e0,{direction:_0x27d851}){super(_0x37b7e0);const _0x1b43f0=_0x37b7e0[_0x1906('0x108')]['get'](d);this[_0x1906('0x10c')](_0x37b7e0,_0x1906('0xf7')),this[_0x1906('0xa4')](_0x1906('0x9')),this['_step']=_0x1906('0x83')===_0x27d851?0x1:-0x1,this[_0x1906('0x6c')](_0x1b43f0,_0x1906('0x40'),()=>this[_0x1906('0x82')]()),this['listenTo'](_0x1b43f0,'change:isEnabled',()=>this[_0x1906('0x82')]());}['execute'](){const _0xda8040=this[_0x1906('0x78')],_0x10f502=_0xda8040[_0x1906('0x108')][_0x1906('0x4f')](d),{isNavigationMode:_0xf31fb9,currentChangeNumber:_0x4380b9}=_0x10f502;_0x10f502['activeChange']=_0xf31fb9?_0x10f502['diff'][_0x1906('0x3c')][_0x1906('0x4f')](_0x4380b9+this[_0x1906('0x95')]):_0x10f502[_0x1906('0xfe')][_0x1906('0x3c')]['first'];const _0x47cdf7=_0xda8040[_0x1906('0x105')]['markers'][_0x1906('0x4f')](_0x1906('0x34')+_0x10f502[_0x1906('0x3b')]['id']),_0x57cf55=_0x48a7d5(_0xda8040[_0x1906('0xb1')],_0x47cdf7);_0x23cfd9({'target':_0x57cf55,'viewportOffset':0x28});}[_0x1906('0x82')](){const {isNavigationMode:_0x35c908,currentChangeNumber:_0x318f45,numberOfChanges:_0x12dac8,isReady:_0x2c3057,isEnabled:_0xd5e5ca}=this[_0x1906('0x78')][_0x1906('0x108')][_0x1906('0x4f')](d);this[_0x1906('0x6f')]=!!(_0xd5e5ca&&_0x2c3057&&_0x12dac8)&&(!_0x35c908||(0x1===this[_0x1906('0x95')]?_0x318f45<_0x12dac8-0x1:_0x318f45>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10c1=['ck-revision-history-sidebar__revision__actions','_action','isVisible','source','isActionsDropdownOpen','isEnabled','name','class','isReady','Show\x20more\x20items','isOpen','bind','stopPropagation','set','Restore\x20this\x20revision','map','Name\x20this\x20revision','model','ck-on','locale','button','function'];(function(_0x566bb0,_0x10c18a){const _0x1a76bd=function(_0x46ebaf){while(--_0x46ebaf){_0x566bb0['push'](_0x566bb0['shift']());}};_0x1a76bd(++_0x10c18a);}(_0x10c1,0x1cf));const _0x1a76=function(_0x566bb0,_0x10c18a){_0x566bb0=_0x566bb0-0x0;let _0x1a76bd=_0x10c1[_0x566bb0];return _0x1a76bd;};import{Collection as _0x4cbe89}from'ckeditor5/src/utils';import{Model as _0x3d24c4,addListToDropdown as _0x5d0791,createDropdown as _0x4db876}from'ckeditor5/src/ui';import{getTranslation as _0x1f1610}from'../../utils/common-translations';import _0x174df2 from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x55897f,_0x46eb2e){const _0x46e303=_0x55897f['bindTemplate'],_0x782ac5=_0x55897f['locale'],_0xae4237=_0x4db876(_0x782ac5);_0xae4237['panelPosition']='sw';const _0x11740c=function(_0x1e99a8,_0x5ec687){const _0x1f1032=function(_0x303e9a,_0x2b3b6f){const _0xedb3a7=_0x303e9a[_0x1a76('0x12')],_0x1f3de2={'Compare\x20against\x20selected':_0x1f1610(_0xedb3a7,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x1f1610(_0xedb3a7,_0x1a76('0xf')),'Restore\x20this\x20revision':_0x1f1610(_0xedb3a7,_0x1a76('0xd'))};return _0x2b3b6f[_0x1a76('0xe')](_0x4e2ebc=>{const _0x13b224=_0x1f3de2[_0x4e2ebc[_0x1a76('0x5')]];return _0x13b224&&_0x13b224!==_0x4e2ebc['name']&&(_0x4e2ebc['name']=_0x13b224),_0x4e2ebc;});}(_0x1e99a8,_0x5ec687),_0x89a828=new _0x4cbe89();for(const _0x5dcfa8 of _0x1f1032){const _0x236bc8={'type':_0x1a76('0x13'),'model':new _0x3d24c4({'label':_0x5dcfa8[_0x1a76('0x5')],'class':_0x5dcfa8[_0x1a76('0x6')],'withText':!0x0,'_action':_0x5dcfa8['action']})};_0x236bc8[_0x1a76('0x10')][_0x1a76('0xa')](_0x1a76('0x1'))['to'](_0x1e99a8,_0x1a76('0x3'),_0x1ea797=>_0x1a76('0x14')!=typeof _0x5dcfa8[_0x1a76('0x1')]||(!_0x1ea797||_0x5dcfa8[_0x1a76('0x1')](_0x1e99a8))),_0x236bc8[_0x1a76('0x10')][_0x1a76('0xa')](_0x1a76('0x4'))['to'](_0x1e99a8,_0x1a76('0x3'),_0x1fe634=>_0x1a76('0x14')!=typeof _0x5dcfa8[_0x1a76('0x4')]||(!_0x1fe634||_0x5dcfa8[_0x1a76('0x4')](_0x1e99a8))),_0x89a828['add'](_0x236bc8);}return _0x89a828;}(_0x55897f,_0x46eb2e);return _0x55897f[_0x1a76('0xa')]('isActionsDropdownOpen')['to'](_0xae4237,_0x1a76('0x9')),_0xae4237['buttonView'][_0x1a76('0xc')]({'label':_0x1f1610(_0x782ac5,_0x1a76('0x8')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x174df2}),_0xae4237['extendTemplate']({'attributes':{'class':[_0x1a76('0x15'),_0x46e303['if']('isActionsDropdownOpen',_0x1a76('0x11'))]},'on':{'click':_0x46e303['to'](_0x2f0d41=>_0x2f0d41[_0x1a76('0xb')]())}}),_0xae4237['on']('execute',_0x5517aa=>{_0x55897f[_0x1a76('0x7')]&&_0x1a76('0x14')==typeof _0x5517aa[_0x1a76('0x2')][_0x1a76('0x0')]&&_0x5517aa[_0x1a76('0x2')][_0x1a76('0x0')](_0x55897f);}),_0x5d0791(_0xae4237,_0x11740c),_0xae4237;}
23
+ const _0x2c64=['listenTo','Show\x20more\x20items','source','find','children','name','panelPosition','_action','Compare\x20against\x20selected','button','buttonView','bind','ck-on','Name\x20this\x20revision','set','model','isActionsDropdownOpen','first','function','Restore\x20this\x20revision','isEnabled','isVisible','isReady','change:isActionsDropdownOpen','items','action','isOpen','execute','bindTemplate'];(function(_0x4cfb95,_0x2c64a2){const _0x44b57d=function(_0x56a189){while(--_0x56a189){_0x4cfb95['push'](_0x4cfb95['shift']());}};_0x44b57d(++_0x2c64a2);}(_0x2c64,0x1a7));const _0x44b5=function(_0x4cfb95,_0x2c64a2){_0x4cfb95=_0x4cfb95-0x0;let _0x44b57d=_0x2c64[_0x4cfb95];return _0x44b57d;};import{Collection as _0x18af86}from'ckeditor5/src/utils';import{Model as _0x5d2979,addListToDropdown as _0x2b9af7,createDropdown as _0x3577a1}from'ckeditor5/src/ui';import{getTranslation as _0xf93db7}from'../../utils/common-translations';import _0x5e5eb4 from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x4fd295,_0x5569f6){const _0x5a4031=_0x4fd295[_0x44b5('0xb')],_0x5b3cab=_0x4fd295['locale'],_0x2925f2=_0x3577a1(_0x5b3cab);_0x2925f2[_0x44b5('0x12')]='sw';const _0x45c6fe=function(_0x1b8777,_0x5963d){const _0xd221d=function(_0x2c4f02,_0x3f7d4c){const _0xf90374=_0x2c4f02['locale'],_0x567999={'Compare\x20against\x20selected':_0xf93db7(_0xf90374,_0x44b5('0x14')),'Name\x20this\x20revision':_0xf93db7(_0xf90374,_0x44b5('0x19')),'Restore\x20this\x20revision':_0xf93db7(_0xf90374,_0x44b5('0x2'))};return _0x3f7d4c['map'](_0x2aa5a5=>{const _0x2f64ef=_0x567999[_0x2aa5a5[_0x44b5('0x11')]];return _0x2f64ef&&_0x2f64ef!==_0x2aa5a5[_0x44b5('0x11')]&&(_0x2aa5a5[_0x44b5('0x11')]=_0x2f64ef),_0x2aa5a5;});}(_0x1b8777,_0x5963d),_0x4282ef=new _0x18af86();for(const _0x5af2fd of _0xd221d){const _0x1d2dba={'type':_0x44b5('0x15'),'model':new _0x5d2979({'label':_0x5af2fd[_0x44b5('0x11')],'class':_0x5af2fd['class'],'withText':!0x0,'_action':_0x5af2fd[_0x44b5('0x8')]})};_0x1d2dba[_0x44b5('0x1b')]['bind'](_0x44b5('0x3'))['to'](_0x1b8777,'isActionsDropdownOpen',_0x3c71ca=>_0x44b5('0x1')!=typeof _0x5af2fd[_0x44b5('0x3')]||(!_0x3c71ca||_0x5af2fd[_0x44b5('0x3')](_0x1b8777))),_0x4282ef['add'](_0x1d2dba);}return _0x4282ef;}(_0x4fd295,_0x5569f6);return _0x4fd295[_0x44b5('0x17')](_0x44b5('0x1c'))['to'](_0x2925f2,_0x44b5('0x9')),_0x2925f2[_0x44b5('0x16')][_0x44b5('0x1a')]({'label':_0xf93db7(_0x5b3cab,_0x44b5('0xd')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5e5eb4}),_0x2925f2['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5a4031['if']('isActionsDropdownOpen',_0x44b5('0x18'))]},'on':{'click':_0x5a4031['to'](_0x1c956f=>_0x1c956f['stopPropagation']())}}),_0x2925f2['on'](_0x44b5('0xa'),_0x4eb654=>{_0x4fd295[_0x44b5('0x5')]&&_0x44b5('0x1')==typeof _0x4eb654[_0x44b5('0xe')][_0x44b5('0x13')]&&_0x4eb654[_0x44b5('0xe')][_0x44b5('0x13')](_0x4fd295);}),_0x2b9af7(_0x2925f2,_0x45c6fe),_0x2925f2[_0x44b5('0xc')](_0x4fd295,_0x44b5('0x6'),(_0xd7e6b8,_0x5e32ef,_0x1ddd87)=>{if(_0x1ddd87)for(const _0x546dcd of _0x2925f2['listView'][_0x44b5('0x7')]){const _0x2122f0=_0x546dcd[_0x44b5('0x10')][_0x44b5('0x0')],_0x41ba2e=_0x5569f6[_0x44b5('0xf')](_0x564050=>_0x564050[_0x44b5('0x8')]===_0x2122f0[_0x44b5('0x13')])[_0x44b5('0x4')];_0x546dcd[_0x44b5('0x4')]=void 0x0===_0x41ba2e||_0x41ba2e(_0x4fd295);}}),_0x2925f2;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x131f=['ck-revision-history-sidebar__revision-author__name','setTemplate','0\x200\x2011\x2010','push','span','Revision\x20author','ck-revision-history-sidebar__revision-author','name'];(function(_0x16888b,_0x131fe9){const _0x59f1a8=function(_0x59147e){while(--_0x59147e){_0x16888b['push'](_0x16888b['shift']());}};_0x59f1a8(++_0x131fe9);}(_0x131f,0xc2));const _0x59f1=function(_0x16888b,_0x131fe9){_0x16888b=_0x16888b-0x0;let _0x59f1a8=_0x131f[_0x16888b];return _0x59f1a8;};import{View as _0x32c4d5,IconView as _0x20ac50}from'ckeditor5/src/ui';import{getTranslation as _0xa8cb9c}from'../../utils/common-translations';import _0xd1b324 from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ti extends _0x32c4d5{constructor(_0x4bfc2f,_0x372a36,_0x5e9575){super(_0x4bfc2f);const _0x5d9974=new _0x20ac50(_0x4bfc2f);_0x5d9974['set']({'content':_0xd1b324,'viewBox':_0x59f1('0x0')});const _0x97212c=['ck',_0x59f1('0x4')];_0x5e9575&&_0x97212c[_0x59f1('0x1')]('ck-revision-history-sidebar__revision-author_creator');const _0x25b408=[{'tag':_0x59f1('0x2'),'attributes':{'class':['ck',_0x59f1('0x6')],'title':_0xa8cb9c(_0x4bfc2f,_0x5e9575?'Revision\x20creator':_0x59f1('0x3'))},'children':[_0x5d9974,_0x372a36[_0x59f1('0x5')]]}];this[_0x59f1('0x7')]({'tag':'li','attributes':{'class':_0x97212c},'children':_0x25b408});}}
23
+ const _0x1903=['name','Revision\x20creator','Revision\x20author','ck-revision-history-sidebar__revision-author__name','set','span','0\x200\x2011\x2010','push','ck-revision-history-sidebar__revision-author_creator'];(function(_0x20c792,_0x19030c){const _0xd08415=function(_0x5aa16a){while(--_0x5aa16a){_0x20c792['push'](_0x20c792['shift']());}};_0xd08415(++_0x19030c);}(_0x1903,0xed));const _0xd084=function(_0x20c792,_0x19030c){_0x20c792=_0x20c792-0x0;let _0xd08415=_0x1903[_0x20c792];return _0xd08415;};import{View as _0x27dc2f,IconView as _0x3a279b}from'ckeditor5/src/ui';import{getTranslation as _0x222eb2}from'../../utils/common-translations';import _0x129695 from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ti extends _0x27dc2f{constructor(_0x5de7c9,_0x3baab6,_0x32a74b){super(_0x5de7c9);const _0x1e8c56=new _0x3a279b(_0x5de7c9);_0x1e8c56[_0xd084('0x1')]({'content':_0x129695,'viewBox':_0xd084('0x3')});const _0x20ee9b=['ck','ck-revision-history-sidebar__revision-author'];_0x32a74b&&_0x20ee9b[_0xd084('0x4')](_0xd084('0x5'));const _0x153afb=[{'tag':_0xd084('0x2'),'attributes':{'class':['ck',_0xd084('0x0')],'title':_0x222eb2(_0x5de7c9,_0x32a74b?_0xd084('0x7'):_0xd084('0x8'))},'children':[_0x1e8c56,_0x3baab6[_0xd084('0x6')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x20ee9b},'children':_0x153afb});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1b26=['span','set','ck-revision-history-sidebar__revision-name','extendTemplate','Revision\x20name'];(function(_0x2c119a,_0x1b2607){var _0x5b74c9=function(_0x21f624){while(--_0x21f624){_0x2c119a['push'](_0x2c119a['shift']());}};_0x5b74c9(++_0x1b2607);}(_0x1b26,0x11d));var _0x5b74=function(_0x2c119a,_0x1b2607){_0x2c119a=_0x2c119a-0x0;var _0x5b74c9=_0x1b26[_0x2c119a];return _0x5b74c9;};import{LabeledFieldView as _0x1dd370}from'ckeditor5/src/ui';import{getTranslation as _0x2f3cfd}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class os extends _0x1dd370{constructor(_0xc92925,..._0x3bdefa){super(_0xc92925,..._0x3bdefa),this[_0x5b74('0x1')]({'label':_0x2f3cfd(_0xc92925,_0x5b74('0x4'))}),this[_0x5b74('0x3')]({'tag':_0x5b74('0x0'),'attributes':{'class':[_0x5b74('0x2')]}});}}
23
+ var _0x30ae=['Revision\x20name','ck-revision-history-sidebar__revision-name','set','extendTemplate'];(function(_0x46d095,_0x30ae22){var _0x57a59a=function(_0x5c0051){while(--_0x5c0051){_0x46d095['push'](_0x46d095['shift']());}};_0x57a59a(++_0x30ae22);}(_0x30ae,0x18d));var _0x57a5=function(_0x46d095,_0x30ae22){_0x46d095=_0x46d095-0x0;var _0x57a59a=_0x30ae[_0x46d095];return _0x57a59a;};import{LabeledFieldView as _0x2f7f1a}from'ckeditor5/src/ui';import{getTranslation as _0x1d205c}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class os extends _0x2f7f1a{constructor(_0x3db64a,..._0x2c83dd){super(_0x3db64a,..._0x2c83dd),this[_0x57a5('0x1')]({'label':_0x1d205c(_0x3db64a,_0x57a5('0x3'))}),this[_0x57a5('0x2')]({'tag':'span','attributes':{'class':[_0x57a5('0x0')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5798=['creator','.ck-thread__remove-confirm','filter','ck-revision-history-sidebar__revision-wrapper','srcElement','uiLanguage','_revision','fieldView','createdAt','ck-revision-history-sidebar__revision-authors','isSelected','from','render','change','ck-revision-history-sidebar__revision__date','placeholder','isHighlighted','_createdAtFormatted','isEnabled','ck-revision-history-sidebar__revision__controls-wrapper','bindTemplate','isActionsDropdownOpen','ck-disabled','div','unshift','fire','setTemplate','set','span','select','revisionActionsView','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision','isReady','220','extendTemplate','length','value','element','ck-reset','highlight','bind','name','revisionNameView','map'];(function(_0x232a0c,_0x579820){const _0x630e0f=function(_0x446704){while(--_0x446704){_0x232a0c['push'](_0x232a0c['shift']());}};_0x630e0f(++_0x579820);}(_0x5798,0xf7));const _0x630e=function(_0x232a0c,_0x579820){_0x232a0c=_0x232a0c-0x0;let _0x630e0f=_0x5798[_0x232a0c];return _0x630e0f;};import{View as _0x11cca2,createLabeledInputText as _0xb48ca8}from'ckeditor5/src/ui';import{mix as _0x396efa}from'ckeditor5/src/utils';import{ConfirmMixin as _0x1f157b}from'ckeditor5-collaboration/src/collaboration-core';import _0x21b20d from'./revisionnameview';import _0x7089d9 from'./revisionauthorview';import{dateToPrettyFormat as _0x338c9e}from'./utils';import{createActionsDropdownView as _0x57c40b}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ci extends _0x11cca2{constructor(_0x457b0d,_0x1e355d,_0x500b2e){super(_0x457b0d);const _0x400fb3=this[_0x630e('0x2b')],_0x2ae210=function(_0x144712,_0x38fbd1){const _0x47fd7a=Array[_0x630e('0x22')](_0x38fbd1['authors'])[_0x630e('0x19')](_0x45a9a3=>_0x45a9a3!=_0x38fbd1[_0x630e('0x17')]);return _0x38fbd1[_0x630e('0x17')]&&_0x47fd7a[_0x630e('0x2')](_0x38fbd1[_0x630e('0x17')]),_0x47fd7a[_0x630e('0x16')](_0x38ea48=>new _0x7089d9(_0x144712,_0x38ea48,_0x38ea48==_0x38fbd1[_0x630e('0x17')]));}(_0x457b0d,_0x1e355d);this[_0x630e('0x1d')]=_0x1e355d,this['id']=_0x1e355d['id'],this['bind'](_0x630e('0x14'),_0x630e('0x1f'))['to'](_0x1e355d),this[_0x630e('0x5')](_0x630e('0x21'),!0x1),this[_0x630e('0x5')](_0x630e('0x27'),!0x1),this[_0x630e('0x5')](_0x630e('0x2c'),!0x1),this[_0x630e('0x5')](_0x630e('0xb'),!0x1),this['bind'](_0x630e('0x28'))['to'](this,'createdAt',_0x4e4001=>_0x4e4001?_0x338c9e(_0x457b0d[_0x630e('0x1c')],_0x4e4001):null),this['set']('isEnabled',!0x1),this[_0x630e('0x15')]=new _0x21b20d(_0x457b0d,_0xb48ca8),this['revisionNameView'][_0x630e('0x1e')][_0x630e('0xd')]({'attributes':{'maxlength':_0x630e('0xc')}}),this['revisionNameView']['fieldView'][_0x630e('0x13')]('value',_0x630e('0x26'))['to'](this,'name',_0x630e('0x28')),this[_0x630e('0x15')]['bind'](_0x630e('0x29'))['to'](this,_0x630e('0x21'),this,'isEnabled',(_0x2209a7,_0x559169)=>_0x2209a7&&_0x559169),this['revisionActionsView']=_0x500b2e&&_0x500b2e[_0x630e('0xe')]?_0x57c40b(this,_0x500b2e):'',this[_0x630e('0x8')]['bind'](_0x630e('0x29'))['to'](this),this[_0x630e('0x4')]({'tag':_0x630e('0x1'),'attributes':{'class':['ck',_0x630e('0x11'),_0x630e('0x1a'),_0x400fb3['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset',_0x630e('0xa'),_0x400fb3['if']('isEnabled',_0x630e('0x0'),_0x313d91=>!_0x313d91),_0x400fb3['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x400fb3['if'](_0x630e('0x27'),'ck-revision-history-sidebar__revision_highlighted'),_0x400fb3['if']('isActionsDropdownOpen',_0x630e('0x9'))]},'children':[this[_0x630e('0x15')],{'tag':_0x630e('0x6'),'attributes':{'class':['ck',_0x630e('0x25')]},'children':[{'text':_0x400fb3['to'](_0x630e('0x28'))}]},{'tag':'div','attributes':{'class':['ck',_0x630e('0x2a')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x630e('0x20')]},'children':_0x2ae210}]},this[_0x630e('0x8')]],'on':{'click':_0x400fb3['to'](_0x1c2a52=>{_0x1c2a52[_0x630e('0x1b')]['closest'](_0x630e('0x18'))||this[_0x630e('0xb')]&&this[_0x630e('0x29')]&&this['fire'](_0x630e('0x7'),{'id':this['id']});})}}]});}[_0x630e('0x23')](){super[_0x630e('0x23')]();const _0x524f90=this['revisionNameView'][_0x630e('0x1e')][_0x630e('0x10')];this['listenTo'](_0x524f90,_0x630e('0x24'),()=>{this[_0x630e('0x3')]('setName',{'id':this['id'],'name':_0x524f90[_0x630e('0xf')]});});}[_0x630e('0x7')](){this[_0x630e('0x21')]=!0x0;}['deselect'](){this[_0x630e('0x21')]=!0x1;}[_0x630e('0x12')](){this[_0x630e('0x27')]=!0x0;}['unhighlight'](){this[_0x630e('0x27')]=!0x1;}}_0x396efa(ci,_0x1f157b);
23
+ const _0x2e16=['.ck-thread__remove-confirm','unhighlight','srcElement','fire','render','220','ck-revision-history-sidebar__revision-authors','div','change','name','fieldView','ck-revision-history-sidebar__revision_highlighted','unshift','createdAt','value','length','ck-disabled','isActionsDropdownOpen','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision__date','revisionNameView','isSelected','from','_createdAtFormatted','deselect','creator','set','isReady','highlight','_revision','isEnabled','authors','setTemplate','ck-revision-history-sidebar__revision-wrapper','listenTo','select','bind','isHighlighted','bindTemplate','revisionActionsView','placeholder','ck-reset','map'];(function(_0x31d6b5,_0x2e16a6){const _0x18b017=function(_0x368e1){while(--_0x368e1){_0x31d6b5['push'](_0x31d6b5['shift']());}};_0x18b017(++_0x2e16a6);}(_0x2e16,0x135));const _0x18b0=function(_0x31d6b5,_0x2e16a6){_0x31d6b5=_0x31d6b5-0x0;let _0x18b017=_0x2e16[_0x31d6b5];return _0x18b017;};import{View as _0x51fec1,createLabeledInputText as _0x67feb6}from'ckeditor5/src/ui';import{mix as _0x21e0c8}from'ckeditor5/src/utils';import{ConfirmMixin as _0x2cd549}from'ckeditor5-collaboration/src/collaboration-core';import _0x26d6a1 from'./revisionnameview';import _0xff0c95 from'./revisionauthorview';import{dateToPrettyFormat as _0x54a30b}from'./utils';import{createActionsDropdownView as _0x51b770}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ci extends _0x51fec1{constructor(_0x410cc6,_0x3453df,_0x1b15cd){super(_0x410cc6);const _0x3aedb6=this[_0x18b0('0x1e')],_0x40851c=function(_0x33c651,_0x57d38e){const _0x1ea48e=Array[_0x18b0('0xe')](_0x57d38e[_0x18b0('0x17')])['filter'](_0x238a43=>_0x238a43!=_0x57d38e['creator']);return _0x57d38e[_0x18b0('0x11')]&&_0x1ea48e[_0x18b0('0x4')](_0x57d38e['creator']),_0x1ea48e[_0x18b0('0x22')](_0x2f172e=>new _0xff0c95(_0x33c651,_0x2f172e,_0x2f172e==_0x57d38e[_0x18b0('0x11')]));}(_0x410cc6,_0x3453df);this[_0x18b0('0x15')]=_0x3453df,this['id']=_0x3453df['id'],this[_0x18b0('0x1c')](_0x18b0('0x1'),'createdAt')['to'](_0x3453df),this[_0x18b0('0x12')]('isSelected',!0x1),this[_0x18b0('0x12')](_0x18b0('0x1d'),!0x1),this[_0x18b0('0x12')](_0x18b0('0x9'),!0x1),this[_0x18b0('0x12')](_0x18b0('0x13'),!0x1),this[_0x18b0('0x1c')](_0x18b0('0xf'))['to'](this,_0x18b0('0x5'),_0x2af884=>_0x2af884?_0x54a30b(_0x410cc6['uiLanguage'],_0x2af884):null),this[_0x18b0('0x12')](_0x18b0('0x16'),!0x1),this[_0x18b0('0xc')]=new _0x26d6a1(_0x410cc6,_0x67feb6),this[_0x18b0('0xc')][_0x18b0('0x2')]['extendTemplate']({'attributes':{'maxlength':_0x18b0('0x28')}}),this['revisionNameView'][_0x18b0('0x2')][_0x18b0('0x1c')]('value',_0x18b0('0x20'))['to'](this,_0x18b0('0x1'),_0x18b0('0xf')),this['revisionNameView']['bind'](_0x18b0('0x16'))['to'](this,_0x18b0('0xd'),this,_0x18b0('0x16'),(_0x19fe0f,_0x40f72e)=>_0x19fe0f&&_0x40f72e),this[_0x18b0('0x1f')]=_0x1b15cd&&_0x1b15cd[_0x18b0('0x7')]?_0x51b770(this,_0x1b15cd):'',this[_0x18b0('0x1f')]['bind'](_0x18b0('0x16'))['to'](this),this[_0x18b0('0x18')]({'tag':_0x18b0('0x2a'),'attributes':{'class':['ck',_0x18b0('0x21'),_0x18b0('0x19'),_0x3aedb6['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x18b0('0x2a'),'attributes':{'class':['ck',_0x18b0('0x21'),_0x18b0('0xa'),_0x3aedb6['if']('isEnabled',_0x18b0('0x8'),_0x3b9a44=>!_0x3b9a44),_0x3aedb6['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3aedb6['if'](_0x18b0('0x1d'),_0x18b0('0x3')),_0x3aedb6['if'](_0x18b0('0x9'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x18b0('0xc')],{'tag':'span','attributes':{'class':['ck',_0x18b0('0xb')]},'children':[{'text':_0x3aedb6['to'](_0x18b0('0xf'))}]},{'tag':_0x18b0('0x2a'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x18b0('0x29')]},'children':_0x40851c}]},this['revisionActionsView']],'on':{'click':_0x3aedb6['to'](_0x16506b=>{_0x16506b[_0x18b0('0x25')]['closest'](_0x18b0('0x23'))||this[_0x18b0('0x13')]&&this[_0x18b0('0x16')]&&this[_0x18b0('0x26')](_0x18b0('0x1b'),{'id':this['id']});})}}]});}[_0x18b0('0x27')](){super[_0x18b0('0x27')]();const _0x100182=this[_0x18b0('0xc')][_0x18b0('0x2')]['element'];this[_0x18b0('0x1a')](_0x100182,_0x18b0('0x0'),()=>{this[_0x18b0('0x26')]('setName',{'id':this['id'],'name':_0x100182[_0x18b0('0x6')]});});}[_0x18b0('0x1b')](){this[_0x18b0('0xd')]=!0x0;}[_0x18b0('0x10')](){this[_0x18b0('0xd')]=!0x1;}[_0x18b0('0x14')](){this['isHighlighted']=!0x0;}[_0x18b0('0x24')](){this[_0x18b0('0x1d')]=!0x1;}}_0x21e0c8(ci,_0x2cd549);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52e1=['toggle','set','bindTemplate','ck-revision-history-sidebar__subrevision-collapser','_isCollapsed','span','ck-hidden','button','click','isVisible'];(function(_0x2034f2,_0x52e1ff){const _0x4ffc5c=function(_0x46720a){while(--_0x46720a){_0x2034f2['push'](_0x2034f2['shift']());}};_0x4ffc5c(++_0x52e1ff);}(_0x52e1,0xeb));const _0x4ffc=function(_0x2034f2,_0x52e1ff){_0x2034f2=_0x2034f2-0x0;let _0x4ffc5c=_0x52e1[_0x2034f2];return _0x4ffc5c;};import{View as _0x1d493f}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class ls extends _0x1d493f{constructor(_0x103f6d){super(_0x103f6d);const _0x2e6bff=this[_0x4ffc('0x7')];this[_0x4ffc('0x6')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck',_0x4ffc('0x8'),_0x2e6bff['if'](_0x4ffc('0x4'),_0x4ffc('0x1'),_0x1492cc=>!_0x1492cc),_0x2e6bff['if']('_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x4ffc('0x2'),'aria-pressed':_0x2e6bff['to'](_0x4ffc('0x9'),_0x75453=>_0x75453?'false':'true')},'children':[{'tag':_0x4ffc('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x2e6bff['to'](_0x4ffc('0x3'))}});}[_0x4ffc('0x5')](){this[_0x4ffc('0x9')]=!this[_0x4ffc('0x9')];}}
23
+ const _0x4712=['toggle','_isCollapsed','isVisible','span','click','false','ck-revision-history-sidebar__subrevision-collapser__inner','ck-revision-history-sidebar__subrevision-collapser','button','ck-revision-history-sidebar__subrevision-collapser_collapsed','setTemplate'];(function(_0x2f41c4,_0x47126e){const _0x51bc0f=function(_0x1818ea){while(--_0x1818ea){_0x2f41c4['push'](_0x2f41c4['shift']());}};_0x51bc0f(++_0x47126e);}(_0x4712,0x12a));const _0x51bc=function(_0x2f41c4,_0x47126e){_0x2f41c4=_0x2f41c4-0x0;let _0x51bc0f=_0x4712[_0x2f41c4];return _0x51bc0f;};import{View as _0x4e2d53}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class ls extends _0x4e2d53{constructor(_0x2c031a){super(_0x2c031a);const _0x5d8a8f=this['bindTemplate'];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x51bc('0x9')]({'tag':'span','attributes':{'class':['ck',_0x51bc('0x6'),_0x5d8a8f['if'](_0x51bc('0x1'),'ck-hidden',_0x19b9b5=>!_0x19b9b5),_0x5d8a8f['if'](_0x51bc('0x0'),_0x51bc('0x8'))],'role':_0x51bc('0x7'),'aria-pressed':_0x5d8a8f['to'](_0x51bc('0x0'),_0xa81b71=>_0xa81b71?_0x51bc('0x4'):'true')},'children':[{'tag':_0x51bc('0x2'),'attributes':{'class':['ck',_0x51bc('0x5')]}}],'on':{'click':_0x5d8a8f['to'](_0x51bc('0x3'))}});}[_0x51bc('0xa')](){this[_0x51bc('0x0')]=!this[_0x51bc('0x0')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x440a=['isSelected','bindTemplate','_parentRevisionId','fire','author','ck-revision-history-sidebar__revision_selected','setTemplate','_createdAtFormatted','span','ck-revision-history-sidebar__revision-authors','bind','createdAt','select','deselect','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision','div','uiLanguage'];(function(_0x105bb3,_0x440a79){const _0x4e82b5=function(_0x3cdf16){while(--_0x3cdf16){_0x105bb3['push'](_0x105bb3['shift']());}};_0x4e82b5(++_0x440a79);}(_0x440a,0xa8));const _0x4e82=function(_0x105bb3,_0x440a79){_0x105bb3=_0x105bb3-0x0;let _0x4e82b5=_0x440a[_0x105bb3];return _0x4e82b5;};import{View as _0xe57a43}from'ckeditor5/src/ui';import _0x1a4f48 from'./revisionauthorview';import{dateToPrettyFormat as _0x4dd172}from'./utils';import'../../../theme/revision/subrevision.css';export default class ct extends _0xe57a43{constructor(_0x4e75ea,_0x1e470e,_0x3755b4){super(_0x4e75ea);const _0xa86fc6=this[_0x4e82('0xd')];this['id']=_0x1e470e['id'],this[_0x4e82('0x4')](_0x4e82('0x5'))['to'](_0x1e470e),this['set'](_0x4e82('0xc'),!0x1),this[_0x4e82('0x4')](_0x4e82('0x1'))['to'](this,_0x4e82('0x5'),_0x527cea=>_0x527cea?_0x4dd172(_0x4e75ea[_0x4e82('0xb')],_0x527cea):null),this[_0x4e82('0xe')]=_0x3755b4,this[_0x4e82('0x0')]({'tag':_0x4e82('0xa'),'attributes':{'class':['ck','ck-reset',_0x4e82('0x9'),'ck-revision-history-sidebar__subrevision',_0xa86fc6['if']('isSelected',_0x4e82('0x11'))]},'children':[{'tag':_0x4e82('0x2'),'attributes':{'class':['ck',_0x4e82('0x8')]},'children':[{'text':_0xa86fc6['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x4e82('0x3')]},'children':[new _0x1a4f48(_0x4e75ea,_0x1e470e[_0x4e82('0x10')],!0x0)]}],'on':{'click':_0xa86fc6['to'](this[_0x4e82('0x6')]['bind'](this))}});}[_0x4e82('0x6')](){this[_0x4e82('0xc')]=!0x0,this[_0x4e82('0xf')](_0x4e82('0x6'),{'parentId':this[_0x4e82('0xe')]});}[_0x4e82('0x7')](){this['isSelected']=!0x1;}}
23
+ const _0x41f2=['ck-revision-history-sidebar__revision-authors','bindTemplate','ck-revision-history-sidebar__revision','span','author','_parentRevisionId','isSelected','ck-revision-history-sidebar__subrevision','deselect','bind','ck-reset','uiLanguage','div','select','createdAt','_createdAtFormatted'];(function(_0x3cc29e,_0x41f210){const _0x5cfcaa=function(_0x3d5830){while(--_0x3d5830){_0x3cc29e['push'](_0x3cc29e['shift']());}};_0x5cfcaa(++_0x41f210);}(_0x41f2,0x163));const _0x5cfc=function(_0x3cc29e,_0x41f210){_0x3cc29e=_0x3cc29e-0x0;let _0x5cfcaa=_0x41f2[_0x3cc29e];return _0x5cfcaa;};import{View as _0x120540}from'ckeditor5/src/ui';import _0xba3042 from'./revisionauthorview';import{dateToPrettyFormat as _0x5a680f}from'./utils';import'../../../theme/revision/subrevision.css';export default class dt extends _0x120540{constructor(_0x4c7ee4,_0x49bb23,_0x4b1381){super(_0x4c7ee4);const _0x3fe72a=this[_0x5cfc('0xe')];this['id']=_0x49bb23['id'],this['bind'](_0x5cfc('0xb'))['to'](_0x49bb23),this['set'](_0x5cfc('0x3'),!0x1),this[_0x5cfc('0x6')](_0x5cfc('0xc'))['to'](this,_0x5cfc('0xb'),_0x351865=>_0x351865?_0x5a680f(_0x4c7ee4[_0x5cfc('0x8')],_0x351865):null),this[_0x5cfc('0x2')]=_0x4b1381,this['setTemplate']({'tag':_0x5cfc('0x9'),'attributes':{'class':['ck',_0x5cfc('0x7'),_0x5cfc('0xf'),_0x5cfc('0x4'),_0x3fe72a['if'](_0x5cfc('0x3'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x5cfc('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x3fe72a['to'](_0x5cfc('0xc'))}]},{'tag':'ul','attributes':{'class':['ck',_0x5cfc('0xd')]},'children':[new _0xba3042(_0x4c7ee4,_0x49bb23[_0x5cfc('0x1')],!0x0)]}],'on':{'click':_0x3fe72a['to'](this[_0x5cfc('0xa')][_0x5cfc('0x6')](this))}});}[_0x5cfc('0xa')](){this['isSelected']=!0x0,this['fire'](_0x5cfc('0xa'),{'parentId':this[_0x5cfc('0x2')]});}[_0x5cfc('0x5')](){this[_0x5cfc('0x3')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1c0f=['long','numeric','toLocaleDateString'];(function(_0x483a0d,_0x1c0fe8){var _0x2302de=function(_0x5ec5a3){while(--_0x5ec5a3){_0x483a0d['push'](_0x483a0d['shift']());}};_0x2302de(++_0x1c0fe8);}(_0x1c0f,0x193));var _0x2302=function(_0x483a0d,_0x1c0fe8){_0x483a0d=_0x483a0d-0x0;var _0x2302de=_0x1c0f[_0x483a0d];return _0x2302de;};export function dateToPrettyFormat(_0x2de536,_0x3f4882){return _0x3f4882[_0x2302('0x1')](_0x2de536,{'month':_0x2302('0x2'),'day':'numeric'})+',\x20'+_0x3f4882['toLocaleTimeString'](_0x2de536,{'hour':_0x2302('0x0'),'minute':'numeric'});}
23
+ var _0x4809=['long','numeric','toLocaleDateString','toLocaleTimeString'];(function(_0x57bdc8,_0x4809b7){var _0x4716e2=function(_0x4fa228){while(--_0x4fa228){_0x57bdc8['push'](_0x57bdc8['shift']());}};_0x4716e2(++_0x4809b7);}(_0x4809,0x1d4));var _0x4716=function(_0x57bdc8,_0x4809b7){_0x57bdc8=_0x57bdc8-0x0;var _0x4716e2=_0x4809[_0x57bdc8];return _0x4716e2;};export function dateToPrettyFormat(_0x20beef,_0x3317fb){return _0x3317fb[_0x4716('0x2')](_0x20beef,{'month':_0x4716('0x0'),'day':_0x4716('0x1')})+',\x20'+_0x3317fb[_0x4716('0x3')](_0x20beef,{'hour':_0x4716('0x1'),'minute':_0x4716('0x1')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2764=['type','setTemplate','cancel','revisionNameInputValue','element','ck-revision-history-save-revision-form','shift\x20+\x20tab','arrowdown','Save','stopPropagation','focus','listenTo','trim','_createRevisionNameInput','delegate','set','fieldView','submit','selectstart','ck-button-save','high','_focusables','forEach','keystrokes','label','form','cancelButtonView','locale','focusFirst','render','ck-button-cancel','add','220','tab','revisionNameInputView','arrowright','input','focusTracker','extendTemplate','_createButton','value','reset','saveButtonView','_focusCycler'];(function(_0x111793,_0x276434){const _0x2dcaec=function(_0x3dfc03){while(--_0x3dfc03){_0x111793['push'](_0x111793['shift']());}};_0x2dcaec(++_0x276434);}(_0x2764,0xab));const _0x2dca=function(_0x111793,_0x276434){_0x111793=_0x111793-0x0;let _0x2dcaec=_0x2764[_0x111793];return _0x2dcaec;};import{ButtonView as _0x24959b,FocusCycler as _0x20b32a,LabeledFieldView as _0xcfc52a,View as _0x315c2a,ViewCollection as _0x5cf537,createLabeledInputText as _0x25293e,injectCssTransitionDisabler as _0x5a9b50,submitHandler as _0x42b489}from'ckeditor5/src/ui';import{FocusTracker as _0x5b7ec8,KeystrokeHandler as _0x14a04b}from'ckeditor5/src/utils';import{getTranslation as _0x51a603}from'../../utils/common-translations';import _0x2c8cd0 from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x1bb5e2 from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class dt extends _0x315c2a{constructor(_0x279f38){super(_0x279f38),this[_0x2dca('0x2a')]=new _0x5b7ec8(),this[_0x2dca('0x1c')]=new _0x14a04b(),this[_0x2dca('0x14')](_0x2dca('0x8'),''),this[_0x2dca('0x27')]=this[_0x2dca('0x12')](),this['saveButtonView']=this['_createButton'](_0x51a603(_0x279f38,_0x2dca('0xd')),_0x2c8cd0,_0x2dca('0x18')),this['saveButtonView'][_0x2dca('0x5')]=_0x2dca('0x16'),this[_0x2dca('0x1f')]=this[_0x2dca('0x0')](_0x51a603(_0x279f38,'Cancel'),_0x1bb5e2,_0x2dca('0x23'),_0x2dca('0x7')),this[_0x2dca('0x1a')]=new _0x5cf537(),this['_focusCycler']=new _0x20b32a({'focusables':this[_0x2dca('0x1a')],'focusTracker':this[_0x2dca('0x2a')],'keystrokeHandler':this[_0x2dca('0x1c')],'actions':{'focusPrevious':_0x2dca('0xb'),'focusNext':_0x2dca('0x26')}}),this[_0x2dca('0x6')]({'tag':_0x2dca('0x1e'),'attributes':{'class':['ck',_0x2dca('0xa'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x2dca('0x27')],this[_0x2dca('0x3')],this[_0x2dca('0x1f')]]}),_0x5a9b50(this);}[_0x2dca('0x22')](){super[_0x2dca('0x22')](),_0x42b489({'view':this}),([this['revisionNameInputView'],this[_0x2dca('0x3')],this[_0x2dca('0x1f')]][_0x2dca('0x1b')](_0x14a442=>{this[_0x2dca('0x1a')][_0x2dca('0x24')](_0x14a442),this[_0x2dca('0x2a')][_0x2dca('0x24')](_0x14a442[_0x2dca('0x9')]);}),this[_0x2dca('0x1c')][_0x2dca('0x10')](this[_0x2dca('0x9')]));const _0x1bf1c0=_0x154a3c=>_0x154a3c[_0x2dca('0xe')]();this[_0x2dca('0x1c')]['set'](_0x2dca('0x28'),_0x1bf1c0),this[_0x2dca('0x1c')][_0x2dca('0x14')]('arrowleft',_0x1bf1c0),this[_0x2dca('0x1c')][_0x2dca('0x14')]('arrowup',_0x1bf1c0),this['keystrokes']['set'](_0x2dca('0xc'),_0x1bf1c0),this[_0x2dca('0x10')](this[_0x2dca('0x27')][_0x2dca('0x9')],_0x2dca('0x17'),(_0x3a615e,_0x58badc)=>{_0x58badc[_0x2dca('0xe')]();},{'priority':_0x2dca('0x19')});}[_0x2dca('0xf')](){this[_0x2dca('0x4')][_0x2dca('0x21')]();}get['revisionName'](){return this['revisionNameInputView'][_0x2dca('0x15')]['element'][_0x2dca('0x1')][_0x2dca('0x11')]();}set['revisionName'](_0x2e129a){this['revisionNameInputView'][_0x2dca('0x15')][_0x2dca('0x9')]['value']=_0x2e129a[_0x2dca('0x11')]();}[_0x2dca('0x2')](){this[_0x2dca('0x27')][_0x2dca('0x15')][_0x2dca('0x9')]['value']='';}['_createRevisionNameInput'](){const _0x3f4cc8=new _0xcfc52a(this[_0x2dca('0x20')],_0x25293e),_0x4ef45a=_0x3f4cc8['fieldView'];return _0x4ef45a[_0x2dca('0x2b')]({'attributes':{'maxlength':_0x2dca('0x25')}}),_0x3f4cc8[_0x2dca('0x1d')]=_0x51a603(this[_0x2dca('0x20')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x4ef45a['on'](_0x2dca('0x29'),()=>{this[_0x2dca('0x8')]=_0x4ef45a['element'][_0x2dca('0x1')]['trim']();}),_0x3f4cc8;}[_0x2dca('0x0')](_0x345d1d,_0x5c6fa8,_0xfa01d0,_0x458bde){const _0x3e0ce6=new _0x24959b(this['locale']);return _0x3e0ce6[_0x2dca('0x14')]({'label':_0x345d1d,'icon':_0x5c6fa8,'tooltip':!0x0}),_0x3e0ce6[_0x2dca('0x2b')]({'attributes':{'class':_0xfa01d0}}),_0x458bde&&_0x3e0ce6[_0x2dca('0x13')]('execute')['to'](this,_0x458bde),_0x3e0ce6;}}
23
+ const _0x482e=['form','_createRevisionNameInput','ck-button-save','render','revisionNameInputValue','revisionNameInputView','label','shift\x20+\x20tab','revisionName','_createButton','tab','trim','_focusCycler','high','execute','focus','ck-revision-history-save-revision-form','input','_focusables','stopPropagation','extendTemplate','value','fieldView','set','element','cancel','focusTracker','locale','ck-responsive-form','Cancel','arrowup','add','reset','cancelButtonView','listenTo','saveButtonView','focusFirst','keystrokes','forEach','submit','arrowright','delegate','Name\x20of\x20the\x20revision\x20(optional)','Save','220'];(function(_0x99a6e3,_0x482e44){const _0x1543f8=function(_0xee4978){while(--_0xee4978){_0x99a6e3['push'](_0x99a6e3['shift']());}};_0x1543f8(++_0x482e44);}(_0x482e,0x8c));const _0x1543=function(_0x99a6e3,_0x482e44){_0x99a6e3=_0x99a6e3-0x0;let _0x1543f8=_0x482e[_0x99a6e3];return _0x1543f8;};import{ButtonView as _0x49cdbd,FocusCycler as _0x41664a,LabeledFieldView as _0xee11fc,View as _0xa837d6,ViewCollection as _0x5a95de,createLabeledInputText as _0x15dc9f,injectCssTransitionDisabler as _0x77a67d,submitHandler as _0x22dd75}from'ckeditor5/src/ui';import{FocusTracker as _0x20e3e2,KeystrokeHandler as _0x548998}from'ckeditor5/src/utils';import{getTranslation as _0x16424c}from'../../utils/common-translations';import _0x4a7140 from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x5cfbb0 from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class gt extends _0xa837d6{constructor(_0x45b376){super(_0x45b376),this[_0x1543('0x15')]=new _0x20e3e2(),this[_0x1543('0x20')]=new _0x548998(),this[_0x1543('0x12')](_0x1543('0x2c'),''),this['revisionNameInputView']=this[_0x1543('0x29')](),this['saveButtonView']=this[_0x1543('0x4')](_0x16424c(_0x45b376,_0x1543('0x26')),_0x4a7140,_0x1543('0x2a')),this['saveButtonView']['type']=_0x1543('0x22'),this[_0x1543('0x1c')]=this[_0x1543('0x4')](_0x16424c(_0x45b376,_0x1543('0x18')),_0x5cfbb0,'ck-button-cancel',_0x1543('0x14')),this['_focusables']=new _0x5a95de(),this[_0x1543('0x7')]=new _0x41664a({'focusables':this['_focusables'],'focusTracker':this[_0x1543('0x15')],'keystrokeHandler':this[_0x1543('0x20')],'actions':{'focusPrevious':_0x1543('0x2'),'focusNext':_0x1543('0x5')}}),this['setTemplate']({'tag':_0x1543('0x28'),'attributes':{'class':['ck',_0x1543('0xb'),_0x1543('0x17')],'tabindex':'-1'},'children':[this[_0x1543('0x0')],this[_0x1543('0x1e')],this[_0x1543('0x1c')]]}),_0x77a67d(this);}['render'](){super[_0x1543('0x2b')](),_0x22dd75({'view':this}),([this['revisionNameInputView'],this[_0x1543('0x1e')],this['cancelButtonView']][_0x1543('0x21')](_0x3883bf=>{this[_0x1543('0xd')][_0x1543('0x1a')](_0x3883bf),this[_0x1543('0x15')][_0x1543('0x1a')](_0x3883bf[_0x1543('0x13')]);}),this['keystrokes'][_0x1543('0x1d')](this[_0x1543('0x13')]));const _0x1eeac9=_0x2c9d3f=>_0x2c9d3f['stopPropagation']();this[_0x1543('0x20')][_0x1543('0x12')](_0x1543('0x23'),_0x1eeac9),this[_0x1543('0x20')][_0x1543('0x12')]('arrowleft',_0x1eeac9),this[_0x1543('0x20')][_0x1543('0x12')](_0x1543('0x19'),_0x1eeac9),this['keystrokes'][_0x1543('0x12')]('arrowdown',_0x1eeac9),this['listenTo'](this['revisionNameInputView'][_0x1543('0x13')],'selectstart',(_0x48968a,_0x21fe00)=>{_0x21fe00[_0x1543('0xe')]();},{'priority':_0x1543('0x8')});}[_0x1543('0xa')](){this[_0x1543('0x7')][_0x1543('0x1f')]();}get[_0x1543('0x3')](){return this[_0x1543('0x0')][_0x1543('0x11')][_0x1543('0x13')][_0x1543('0x10')][_0x1543('0x6')]();}set[_0x1543('0x3')](_0x26bedf){this[_0x1543('0x0')][_0x1543('0x11')][_0x1543('0x13')]['value']=_0x26bedf[_0x1543('0x6')]();}[_0x1543('0x1b')](){this[_0x1543('0x0')]['fieldView']['element']['value']='';}[_0x1543('0x29')](){const _0xadf309=new _0xee11fc(this['locale'],_0x15dc9f),_0x390e1a=_0xadf309[_0x1543('0x11')];return _0x390e1a[_0x1543('0xf')]({'attributes':{'maxlength':_0x1543('0x27')}}),_0xadf309[_0x1543('0x1')]=_0x16424c(this[_0x1543('0x16')],_0x1543('0x25')),_0x390e1a['on'](_0x1543('0xc'),()=>{this[_0x1543('0x2c')]=_0x390e1a[_0x1543('0x13')][_0x1543('0x10')]['trim']();}),_0xadf309;}['_createButton'](_0x5782a4,_0x187c03,_0x4a7427,_0xd88380){const _0x362de6=new _0x49cdbd(this[_0x1543('0x16')]);return _0x362de6[_0x1543('0x12')]({'label':_0x5782a4,'icon':_0x187c03,'tooltip':!0x0}),_0x362de6[_0x1543('0xf')]({'attributes':{'class':_0x4a7427}}),_0xd88380&&_0x362de6[_0x1543('0x24')](_0x1543('0x9'))['to'](this,_0xd88380),_0x362de6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b59=['RevisionTracker','pluginName','Open\x20revision\x20history','buttonView','plugins','init','panelView','submit','cancel','remove','length','config','Revision\x20history','render','execute','set','isReadOnly','isReady','Save\x20current\x20revision','add','addMany','saveButtonView','children','revisionHistory','editing','bind','RevisionHistoryUI','isOpen','focus','isEnabled','saveRevision','get','reset','requires'];(function(_0x2db5d6,_0x4b59e9){const _0x339a9f=function(_0x1feab9){while(--_0x1feab9){_0x2db5d6['push'](_0x2db5d6['shift']());}};_0x339a9f(++_0x4b59e9);}(_0x4b59,0x124));const _0x339a=function(_0x2db5d6,_0x4b59e9){_0x2db5d6=_0x2db5d6-0x0;let _0x339a9f=_0x4b59[_0x2db5d6];return _0x339a9f;};import{Plugin as _0x3ac4a7}from'ckeditor5/src/core';import{ListView as _0xdfd444,ListItemView as _0x39f459,ButtonView as _0x2622e2,createDropdown as _0x5a3378}from'ckeditor5/src/ui';import _0x125a6f from'../../revisiontracker';import _0x2a9ac2 from'./revisionhistorysaverevisionformview';import _0x129150 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x201c09}from'../../utils/common-translations';export default class y extends _0x3ac4a7{static get[_0x339a('0xf')](){return _0x339a('0x6');}static get[_0x339a('0xd')](){return[_0x125a6f];}[_0x339a('0x13')](){const _0xc9c24c=this['editor'],_0x576593=_0xc9c24c['plugins'][_0x339a('0xb')](_0x339a('0xe'));_0xc9c24c['ui']['componentFactory'][_0x339a('0x21')](_0x339a('0x3'),_0x3936dc=>{const _0x1b4532=_0x5a3378(_0x3936dc),_0x301a8b=_0x1b4532[_0x339a('0x14')][_0x339a('0x2')],_0x15c651=new _0xdfd444(_0x3936dc),_0x4789ac=new _0x39f459(_0x3936dc),_0x57f3c3=new _0x2622e2(_0x3936dc),_0x9b8383=new _0x39f459(_0x3936dc),_0x403a0c=new _0x2622e2(_0x3936dc),_0x4be664=new _0x2a9ac2(_0x3936dc);function _0x47e923(){_0x301a8b[_0x339a('0x18')]&&_0x301a8b[_0x339a('0x17')](0x0),_0x301a8b[_0x339a('0x21')](_0x15c651);}function _0x18ed23(){_0x1b4532[_0x339a('0x7')]=!0x1,_0xc9c24c[_0x339a('0x4')]['view'][_0x339a('0x8')]();}return _0x1b4532[_0x339a('0x5')](_0x339a('0x9'))['to'](_0x576593,_0x339a('0x1f'),_0x576593,'isEnabled',_0xc9c24c,_0x339a('0x1e'),(_0x5d043b,_0x1103d2,_0x4d62c2)=>_0x5d043b&&_0x1103d2&&!_0x4d62c2),_0x1b4532[_0x339a('0x11')][_0x339a('0x1d')]({'icon':_0x129150,'label':_0x201c09(_0x3936dc,_0x339a('0x1a')),'tooltip':!0x0}),_0x57f3c3[_0x339a('0x1d')]({'label':_0x201c09(_0x3936dc,_0x339a('0x20')),'withText':!0x0}),_0x57f3c3[_0x339a('0x5')](_0x339a('0x9'))['to'](_0x576593,_0x339a('0x1f'),_0x576593,_0x339a('0x9'),_0xc9c24c,_0x339a('0x1e'),(_0xf9856e,_0x425ebe,_0x4e27d7)=>_0xf9856e&&_0x425ebe&&!_0x4e27d7),_0x57f3c3['on'](_0x339a('0x1c'),()=>function(){_0x301a8b[_0x339a('0x18')]&&_0x301a8b['remove'](0x0),(_0x4be664[_0x339a('0xc')](),_0x301a8b[_0x339a('0x21')](_0x4be664),_0x4be664['focus']());}()),_0x403a0c[_0x339a('0x1d')]({'label':_0x201c09(_0x3936dc,_0x339a('0x10')),'withText':!0x0}),_0x403a0c['bind'](_0x339a('0x9'))['to'](_0x576593,_0x339a('0x1f'),_0xc9c24c,_0x339a('0x1e'),(_0x4636a4,_0x57229c)=>_0x4636a4&&!_0x57229c),_0x403a0c['on']('execute',()=>{_0xc9c24c[_0x339a('0x19')][_0x339a('0xb')](_0x339a('0x3'))['showRevisionViewerCallback'](),_0x18ed23();}),_0x4789ac[_0x339a('0x2')][_0x339a('0x21')](_0x57f3c3),_0x9b8383[_0x339a('0x2')][_0x339a('0x21')](_0x403a0c),_0x15c651['items'][_0x339a('0x0')]([_0x4789ac,_0x9b8383]),_0x1b4532['on']('change:isOpen',()=>_0x47e923()),_0x4be664[_0x339a('0x1')][_0x339a('0x5')](_0x339a('0x9'))['to'](_0x576593,_0x339a('0x1f'),_0x576593,_0x339a('0x9'),_0xc9c24c,_0x339a('0x1e'),(_0xd9beae,_0x341bea,_0x13b1f4)=>_0xd9beae&&_0x341bea&&!_0x13b1f4),_0x4be664['on'](_0x339a('0x15'),()=>(_0xc9c24c[_0x339a('0x12')][_0x339a('0xb')](_0x125a6f)[_0x339a('0xa')]({'name':_0x4be664['revisionName']}),void _0x18ed23())),_0x4be664['on'](_0x339a('0x16'),()=>_0x47e923()),_0x4be664[_0x339a('0x1b')](),_0x47e923(),_0x1b4532;});}}
23
+ const _0x3c19=['submit','set','remove','revisionHistory','items','length','execute','panelView','isEnabled','init','view','cancel','change:isOpen','get','config','isOpen','RevisionHistoryUI','saveRevision','addMany','render','requires','focus','RevisionTracker','isReadOnly','componentFactory','children','isReady','buttonView','bind','add'];(function(_0x2a10f9,_0x3c1909){const _0x1c48ef=function(_0x237c47){while(--_0x237c47){_0x2a10f9['push'](_0x2a10f9['shift']());}};_0x1c48ef(++_0x3c1909);}(_0x3c19,0x114));const _0x1c48=function(_0x2a10f9,_0x3c1909){_0x2a10f9=_0x2a10f9-0x0;let _0x1c48ef=_0x3c19[_0x2a10f9];return _0x1c48ef;};import{Plugin as _0x27290b}from'ckeditor5/src/core';import{ListView as _0x425400,ListItemView as _0x3c3c61,ButtonView as _0x8f9a5e,createDropdown as _0x2cddde}from'ckeditor5/src/ui';import _0x257c79 from'../../revisiontracker';import _0x58420f from'./revisionhistorysaverevisionformview';import _0x2ed183 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x3f1668}from'../../utils/common-translations';export default class R extends _0x27290b{static get['pluginName'](){return _0x1c48('0xa');}static get[_0x1c48('0xe')](){return[_0x257c79];}[_0x1c48('0x3')](){const _0x5116f3=this['editor'],_0x5c2b8c=_0x5116f3['plugins'][_0x1c48('0x7')](_0x1c48('0x10'));_0x5116f3['ui'][_0x1c48('0x12')][_0x1c48('0x17')]('revisionHistory',_0x309554=>{const _0x3d4c28=_0x2cddde(_0x309554),_0xe6d804=_0x3d4c28[_0x1c48('0x1')][_0x1c48('0x13')],_0x353d96=new _0x425400(_0x309554),_0x26d663=new _0x3c3c61(_0x309554),_0x56e216=new _0x8f9a5e(_0x309554),_0x1020df=new _0x3c3c61(_0x309554),_0x1543a6=new _0x8f9a5e(_0x309554),_0x55ea24=new _0x58420f(_0x309554);function _0x22c9df(){_0xe6d804[_0x1c48('0x1d')]&&_0xe6d804[_0x1c48('0x1a')](0x0),_0xe6d804['add'](_0x353d96);}function _0x1eda39(){_0x3d4c28[_0x1c48('0x9')]=!0x1,_0x5116f3['editing'][_0x1c48('0x4')][_0x1c48('0xf')]();}return _0x3d4c28[_0x1c48('0x16')](_0x1c48('0x2'))['to'](_0x5c2b8c,_0x1c48('0x14'),_0x5c2b8c,_0x1c48('0x2'),_0x5116f3,_0x1c48('0x11'),(_0x2f3533,_0x3c79b2,_0x49d7bf)=>_0x2f3533&&_0x3c79b2&&!_0x49d7bf),_0x3d4c28[_0x1c48('0x15')][_0x1c48('0x19')]({'icon':_0x2ed183,'label':_0x3f1668(_0x309554,'Revision\x20history'),'tooltip':!0x0}),_0x56e216['set']({'label':_0x3f1668(_0x309554,'Save\x20current\x20revision'),'withText':!0x0}),_0x56e216['bind']('isEnabled')['to'](_0x5c2b8c,_0x1c48('0x14'),_0x5c2b8c,_0x1c48('0x2'),_0x5116f3,_0x1c48('0x11'),(_0x1eb495,_0x6d7e06,_0x2f0dbb)=>_0x1eb495&&_0x6d7e06&&!_0x2f0dbb),_0x56e216['on'](_0x1c48('0x0'),()=>function(){_0xe6d804['length']&&_0xe6d804[_0x1c48('0x1a')](0x0),(_0x55ea24['reset'](),_0xe6d804[_0x1c48('0x17')](_0x55ea24),_0x55ea24[_0x1c48('0xf')]());}()),_0x1543a6['set']({'label':_0x3f1668(_0x309554,'Open\x20revision\x20history'),'withText':!0x0}),_0x1543a6['bind'](_0x1c48('0x2'))['to'](_0x5c2b8c,_0x1c48('0x14'),_0x5116f3,_0x1c48('0x11'),(_0x4b0d1e,_0x4281fb)=>_0x4b0d1e&&!_0x4281fb),_0x1543a6['on'](_0x1c48('0x0'),()=>{_0x5116f3[_0x1c48('0x8')][_0x1c48('0x7')](_0x1c48('0x1b'))['showRevisionViewerCallback'](),_0x1eda39();}),_0x26d663[_0x1c48('0x13')][_0x1c48('0x17')](_0x56e216),_0x1020df[_0x1c48('0x13')][_0x1c48('0x17')](_0x1543a6),_0x353d96[_0x1c48('0x1c')][_0x1c48('0xc')]([_0x26d663,_0x1020df]),_0x3d4c28['on'](_0x1c48('0x6'),()=>_0x22c9df()),_0x55ea24['saveButtonView'][_0x1c48('0x16')](_0x1c48('0x2'))['to'](_0x5c2b8c,_0x1c48('0x14'),_0x5c2b8c,'isEnabled',_0x5116f3,_0x1c48('0x11'),(_0x191a78,_0x3899e5,_0x1b159a)=>_0x191a78&&_0x3899e5&&!_0x1b159a),_0x55ea24['on'](_0x1c48('0x18'),()=>(_0x5116f3['plugins'][_0x1c48('0x7')](_0x257c79)[_0x1c48('0xb')]({'name':_0x55ea24['revisionName']}),void _0x1eda39())),_0x55ea24['on'](_0x1c48('0x5'),()=>_0x22c9df()),_0x55ea24[_0x1c48('0xd')](),_0x22c9df(),_0x3d4c28;});}}