@ckeditor/ckeditor5-revision-history 31.1.0 → 34.0.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 (121) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +5 -2
  3. package/build/revision-history.js +5 -0
  4. package/build/translations/az.js +1 -0
  5. package/build/translations/bs.js +1 -0
  6. package/build/translations/cs.js +1 -0
  7. package/build/translations/da.js +1 -0
  8. package/build/translations/de-ch.js +1 -0
  9. package/build/translations/de.js +1 -0
  10. package/build/translations/el.js +1 -0
  11. package/build/translations/en-au.js +1 -0
  12. package/build/translations/en-gb.js +1 -0
  13. package/build/translations/es.js +1 -0
  14. package/build/translations/et.js +1 -0
  15. package/build/translations/fa.js +1 -0
  16. package/build/translations/fr.js +1 -0
  17. package/build/translations/gl.js +1 -0
  18. package/build/translations/he.js +1 -0
  19. package/build/translations/hi.js +1 -0
  20. package/build/translations/hr.js +1 -0
  21. package/build/translations/hu.js +1 -0
  22. package/build/translations/id.js +1 -0
  23. package/build/translations/it.js +1 -0
  24. package/build/translations/ja.js +1 -0
  25. package/build/translations/jv.js +1 -0
  26. package/build/translations/ko.js +1 -0
  27. package/build/translations/ku.js +1 -0
  28. package/build/translations/lv.js +1 -0
  29. package/build/translations/ne.js +1 -0
  30. package/build/translations/nl.js +1 -0
  31. package/build/translations/no.js +1 -0
  32. package/build/translations/pl.js +1 -0
  33. package/build/translations/pt-br.js +1 -0
  34. package/build/translations/ro.js +1 -0
  35. package/build/translations/ru.js +1 -0
  36. package/build/translations/sk.js +1 -0
  37. package/build/translations/sr-latn.js +1 -0
  38. package/build/translations/sr.js +1 -0
  39. package/build/translations/tk.js +1 -0
  40. package/build/translations/tr.js +1 -0
  41. package/build/translations/ug.js +1 -0
  42. package/build/translations/uk.js +1 -0
  43. package/build/translations/vi.js +1 -0
  44. package/build/translations/zh-cn.js +1 -0
  45. package/build/translations/zh.js +1 -0
  46. package/lang/contexts.json +23 -22
  47. package/lang/translations/az.po +27 -23
  48. package/lang/translations/bs.po +124 -0
  49. package/lang/translations/cs.po +53 -49
  50. package/lang/translations/da.po +27 -23
  51. package/lang/translations/de-ch.po +27 -23
  52. package/lang/translations/de.po +29 -25
  53. package/lang/translations/el.po +123 -0
  54. package/lang/translations/en-au.po +51 -47
  55. package/lang/translations/en-gb.po +27 -23
  56. package/lang/translations/en.po +27 -23
  57. package/lang/translations/es.po +41 -37
  58. package/lang/translations/et.po +27 -23
  59. package/lang/translations/fa.po +27 -23
  60. package/lang/translations/fr.po +29 -25
  61. package/lang/translations/gl.po +29 -25
  62. package/lang/translations/he.po +27 -23
  63. package/lang/translations/hi.po +27 -23
  64. package/lang/translations/hr.po +30 -26
  65. package/lang/translations/hu.po +27 -23
  66. package/lang/translations/id.po +28 -24
  67. package/lang/translations/it.po +27 -23
  68. package/lang/translations/ja.po +27 -23
  69. package/lang/translations/jv.po +122 -0
  70. package/lang/translations/ko.po +27 -23
  71. package/lang/translations/ku.po +27 -23
  72. package/lang/translations/lv.po +27 -23
  73. package/lang/translations/ne.po +27 -23
  74. package/lang/translations/nl.po +27 -23
  75. package/lang/translations/no.po +27 -23
  76. package/lang/translations/pl.po +31 -27
  77. package/lang/translations/pt-br.po +27 -23
  78. package/lang/translations/ro.po +30 -26
  79. package/lang/translations/ru.po +27 -23
  80. package/lang/translations/sk.po +53 -49
  81. package/lang/translations/sr-latn.po +27 -23
  82. package/lang/translations/sr.po +27 -23
  83. package/lang/translations/tk.po +27 -23
  84. package/lang/translations/tr.po +27 -23
  85. package/lang/translations/ug.po +27 -23
  86. package/lang/translations/uk.po +27 -23
  87. package/lang/translations/vi.po +27 -23
  88. package/lang/translations/zh-cn.po +27 -23
  89. package/lang/translations/zh.po +27 -23
  90. package/package.json +8 -11
  91. package/src/changeitem.js +2 -2
  92. package/src/editor/revisionviewereditor.js +23 -0
  93. package/src/editor/revisionviewereditorui.js +23 -0
  94. package/src/editor/revisionviewereditoruiview.js +23 -0
  95. package/src/index.js +23 -0
  96. package/src/revision.js +2 -2
  97. package/src/revisiondiff.js +2 -2
  98. package/src/revisionhistory.js +2 -2
  99. package/src/revisionsrepository.js +2 -2
  100. package/src/revisiontracker.js +2 -2
  101. package/src/revisionviewer.js +2 -2
  102. package/src/ui/revision/createrevisionactionsdropdown.js +2 -2
  103. package/src/ui/revision/revisionauthorview.js +2 -2
  104. package/src/ui/revision/revisionnameview.js +2 -2
  105. package/src/ui/revision/revisionview.js +2 -2
  106. package/src/ui/revision/subrevisioncollapserview.js +2 -2
  107. package/src/ui/revision/subrevisionview.js +2 -2
  108. package/src/ui/revision/utils.js +2 -2
  109. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
  110. package/src/ui/revisionhistory/revisionhistoryui.js +2 -2
  111. package/src/ui/revisionssidebar/revisionssidebar.js +2 -2
  112. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +2 -2
  113. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +2 -2
  114. package/src/ui/revisionssidebar/revisionssidebarview.js +2 -2
  115. package/src/ui/revisionssidebar/utils.js +2 -2
  116. package/src/ui/revisionviewer/changedetailsview.js +2 -2
  117. package/src/ui/revisionviewer/changesnavigationview.js +2 -2
  118. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +2 -2
  119. package/src/ui/revisionviewer/revisionviewerui.js +2 -2
  120. package/theme/revisionhistorysaverevisionform.css +1 -1
  121. package/theme/revisionviewer.css +0 -6
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4174=['target','startsWith','getWalker','string','item','highest','getRevisionData','_markMismatchedRemovedTags','isInline','_changeIdToChange','ck-suggestion-marker-merge','diff','ck-suggestion-marker--active','toViewElement','parse','_makeModelFromViewString','authors','compare','keys','clearForceDisabled','change:activeChange','end','previousPosition','_processTape','getRootNames','isBefore','POSITIVE_INFINITY','RevisionViewer','markerToHighlight','ck-suggestion-marker-','ck-editor__editable__overlay','abs','consumable','markers','length','getIndex','index','unshift','-new','useFillerType','downcastDispatcher','from','getAttributes','isRemoved','selection','side','isContent','_getRevisionsRange','_step','markerName','toModel','_getViewForChange','test','type','change:isReady','for','uiElement','bindElementToMarker','refresh','hasAttribute','bind','createPositionBefore','elementEnd','getShiftedBy','isAfter','plugins','_initInteractions','map','repository','clear','first','ck-suggestion-marker','object','level','endIndex','markerToData','set','elementStart','currentChangeNumber','data','revisionHistory','add','name','removeClass','nextPosition','document','concat','pluginName','markerRange','low','_removeMissingPairs','_target','suggestion','addMarker:suggestion:insertion','change:isReadOnly','activeChange','createPositionAfter','mapper','upcast','_changeView','_markSuggestions','restoreRevisionCallback','markersEnd','isNavigationMode','setAttribute','change','isLimit','listenTo','dataToMarker','_setDistance','view','findIndex','changes','resolve','toViewRange','locale','all','nodeAfter','_getViewObj','attribute:vid','isSuggestion','start','modelRange','revision','isAdded','values','_setConversion','newRevisionId','addClass','ck-suggestion-preview-marker','_threeWayMerge','_refreshStartEndIndex','getRevision','split','isBlock','checkAttribute','init','adapter','_cleanUp','catch','getItems','isReady','readOnlyMode','nextSibling','return','createUIElement','_setData','vid','removeMarker:revision','unbindElementFromMarkerName','addHighlight','toViewPosition','change:activeView','forward','_makeTape','isEnabled','remove','hasClass','parent','enqueueChange','_fixObsoleteTags','toData','schema','userId','vid_end','sort','commands','isReadOnly','deletion','_getDiff','high','softBreak','insertion','viewItem','writer','markersStart','getCustomProperty','attributes','destroy','shift','loadRevisionData','isObject','isAtEnd','processor','isCollapsed','roots','activeView','splice','markerNameToElements','numberOfChanges','_removeUnsupportedChanges','then','showStack','change:numberOfChanges','push','createAttributeElement','code','element','editing','has','isAddSuggestion','isAtStart','filter','isIncorrect','isEqual','insertions','htmlProcessor','_revisions','getAttribute','deletions','ck-suggestion-marker-split','change:isEnabled','_getChangeFromId','_joinTapes','showPreviousChange','pairId','_cleanMarkers','elementToAttribute','observeMarkers','_makeModelFromTape','range','addMarker:revision','span','removeMarker','createPositionAt','execute','distance','get','_markInsertions','_markMarkers','_balloon','insert','marked','revision:','consume','model','updateMarker','RevisionsRepository','dataDowncast','_findChangeIdFromDomTarget','showNextChange','startIndex','forEach','vid_start','getChild','createRange','offsetSize','editor','merge','conversion'];(function(_0x5be299,_0x4174e7){const _0x4c1316=function(_0x1a8215){while(--_0x1a8215){_0x5be299['push'](_0x5be299['shift']());}};_0x4c1316(++_0x4174e7);}(_0x4174,0x7c));const _0x4c13=function(_0x5be299,_0x4174e7){_0x5be299=_0x5be299-0x0;let _0x4c1316=_0x4174[_0x5be299];return _0x4c1316;};import _0x158e40 from'@ckeditor/ckeditor5-collaboration-core/src/users';import{Plugin as _0x4f2c22,Command as _0x333c3e}from'ckeditor5/src/core';import{ObservableMixin as _0x2c438c,mix as _0x27575c}from'ckeditor5/src/utils';import _0x6b3fc3 from'@ckeditor/ckeditor5-engine/src/model/documentfragment';import _0x45045b from'@ckeditor/ckeditor5-engine/src/model/element';import _0x32bc1a from'@ckeditor/ckeditor5-engine/src/model/text';import _0x134257 from'@ckeditor/ckeditor5-engine/src/view/documentfragment';import _0x4a3df6 from'@ckeditor/ckeditor5-engine/src/view/text';import _0x20dab0 from'@ckeditor/ckeditor5-engine/src/view/element';import{_insert as _0x23a5c6}from'@ckeditor/ckeditor5-engine/src/model/operation/utils';import _0x4d9b1c from'./ui/revisionviewer/changedetailsview';import _0x4cec3c from'@ckeditor/ckeditor5-comments/src/utils/getmarkerdomelement';import{scrollViewportToShowTarget as _0x4592af}from'@ckeditor/ckeditor5-utils/src/dom/scroll';import{ContextualBalloon as _0x49151c}from'ckeditor5/src/ui';import _0x2163f9 from'./revisionsrepository';import _0x33925b from'./changeitem';import _0x3f97b1 from'./revisiondiff';import'../theme/revisionviewer.css';import'@ckeditor/ckeditor5-track-changes/theme/suggestion.css';import'@ckeditor/ckeditor5-track-changes/theme/suggestionmarker.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/horizontalline.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/image.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/mediaembed.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/pagebreak.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/table.css';export default class d extends _0x4f2c22{static get[_0x4c13('0xd5')](){return _0x4c13('0x99');}static get['requires'](){return[_0x158e40,_0x49151c,_0x2163f9];}constructor(..._0x1b9222){super(..._0x1b9222),this['repository']=this[_0x4c13('0x7b')][_0x4c13('0xbf')]['get'](_0x4c13('0x71')),this[_0x4c13('0xca')]('activeChange',null),this[_0x4c13('0xca')](_0x4c13('0x3e'),null),this['set'](_0x4c13('0x89'),null),this['set']('isReady',!0x1),this[_0x4c13('0xca')](_0x4c13('0x1f'),!0x0),this['on'](_0x4c13('0x57'),(_0x45fff3,_0x74e558,_0x5dfab6)=>{this[_0x4c13('0xdd')]=null,this[_0x4c13('0x3e')]=null,this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xec')][_0x4c13('0xe7')](_0x2c4fa4=>{for(const _0x77e58c of this['editor'][_0x4c13('0x4a')][_0x4c13('0xec')]['document'][_0x4c13('0x3d')])_0x5dfab6?_0x2c4fa4[_0x4c13('0xd1')]('ck-editor__editable__overlay',_0x77e58c):_0x2c4fa4[_0x4c13('0x4')](_0x4c13('0x9c'),_0x77e58c);});}),this[_0x4c13('0xba')](_0x4c13('0xe5'))['to'](this,'activeChange',_0x473df6=>null!==_0x473df6),this[_0x4c13('0xba')](_0x4c13('0xcc'))['to'](this,'isReady',this,_0x4c13('0x89'),this,_0x4c13('0xdd'),(_0x6e1719,_0x2aab65,_0x4d9183)=>_0x6e1719&&_0x4d9183?_0x2aab65[_0x4c13('0xee')]['getIndex'](_0x4d9183):0x0),this['bind'](_0x4c13('0x41'))['to'](this,'isReady',this,_0x4c13('0x89'),(_0x5d1791,_0x431346)=>_0x5d1791?_0x431346[_0x4c13('0xee')][_0x4c13('0xa0')]:0x0),this['_changeView']=null,this[_0x4c13('0x87')]=new Map(),this[_0x4c13('0xd')]=null,this[_0x4c13('0x6a')]=this[_0x4c13('0x7b')][_0x4c13('0xbf')][_0x4c13('0x67')](_0x49151c);}[_0x4c13('0xc')](){const _0x1ba41f=this[_0x4c13('0x7b')];_0x1ba41f[_0x4c13('0xcd')][_0x4c13('0x52')][_0x4c13('0xa5')](_0x4c13('0x6c'));const _0x38bce4=new q(_0x1ba41f,{'direction':'backward'}),_0x52d238=new q(_0x1ba41f,{'direction':'forward'});_0x1ba41f['commands'][_0x4c13('0xcf')](_0x4c13('0x5a'),_0x38bce4),_0x1ba41f[_0x4c13('0x2a')]['add'](_0x4c13('0x74'),_0x52d238),_0x1ba41f[_0x4c13('0x2a')][_0x4c13('0xcf')]('restoreRevision',new L(_0x1ba41f)),this['on'](_0x4c13('0x45'),()=>{_0x38bce4[_0x4c13('0xb8')](),_0x52d238[_0x4c13('0xb8')]();}),this[_0x4c13('0x2')](),this[_0x4c13('0xc0')](),_0x1ba41f[_0x4c13('0x2b')]=!0x0;}async[_0x4c13('0x84')](_0x2b419d){await this['loadRevisionData'](_0x2b419d);const _0x4f5e3c={};for(const _0x366d13 in _0x2b419d[_0x4c13('0xcd')]){const _0x43d53c=JSON['parse'](_0x2b419d['data'][_0x366d13][_0x4c13('0x51')]),_0x52fffa=this[_0x4c13('0x7b')]['editing'][_0x4c13('0xec')][_0x4c13('0xd3')],_0x284f37=new _0x134257(_0x52fffa,_0x43d53c[_0x4c13('0xc1')](_0x4c0403=>this[_0x4c13('0xf4')](_0x4c0403)));_0x4f5e3c[_0x366d13]=this[_0x4c13('0x7b')]['data'][_0x4c13('0x3b')][_0x4c13('0x25')](_0x284f37);}return _0x4f5e3c;}[_0x4c13('0x8f')](_0x4d4161,_0x3b4b2b,_0x35745d=!0x1){if(!this[_0x4c13('0x1f')])return;const _0x1d5a4d=this[_0x4c13('0xc2')],_0x87f675=_0x4c13('0x81')==typeof _0x4d4161?_0x1d5a4d['getRevision'](_0x4d4161):_0x4d4161,_0x4c63f8=_0x4c13('0x81')==typeof _0x3b4b2b?_0x1d5a4d['getRevision'](_0x3b4b2b):_0x3b4b2b,_0xe8498b=_0x87f675['id'],_0x2e773a=_0x4c63f8?_0x4c63f8['id']:null;if(!_0x35745d&&this['diff']&&this[_0x4c13('0x89')][_0x4c13('0x3')]===_0xe8498b&&this[_0x4c13('0x89')]['oldRevisionId']===_0x2e773a)return Promise[_0x4c13('0xef')]();this[_0x4c13('0x11')]=!0x1,this['activeView']=null,this[_0x4c13('0x89')]=new _0x3f97b1(_0xe8498b,_0x2e773a);const _0x1d870f=this[_0x4c13('0xad')](_0x87f675,_0x4c63f8,!0x0)[_0x4c13('0xc1')](_0x3fd391=>this[_0x4c13('0x38')](_0x3fd391));return _0x1d870f[_0x4c13('0x46')](new Promise(_0x26acdf=>{setTimeout(_0x26acdf,0x14);})),Promise[_0x4c13('0xf2')](_0x1d870f)['then'](()=>{if(!this[_0x4c13('0x1f')])return;this[_0x4c13('0xe')]();const _0x58877b=this['_getDiff'](_0xe8498b,_0x2e773a);this[_0x4c13('0x89')][_0x4c13('0x16')](_0x58877b);for(const _0x28458a of this['diff'][_0x4c13('0xee')])this[_0x4c13('0x87')][_0x4c13('0xca')](_0x28458a['id'],_0x28458a);this['editor'][_0x4c13('0x6f')][_0x4c13('0x23')]('transparent',_0x25d665=>{for(const _0x50ce92 of Object[_0x4c13('0x90')](_0x58877b[_0x4c13('0x6f')])){const _0xa8f4ef=this['editor'][_0x4c13('0x6f')][_0x4c13('0xd3')]['getRoot'](_0x50ce92);_0x25d665['remove'](_0x25d665['createRangeIn'](_0xa8f4ef)),_0x25d665['insert'](_0x58877b[_0x4c13('0x6f')][_0x50ce92],_0xa8f4ef,0x0);}}),this[_0x4c13('0x11')]=!0x0;})[_0x4c13('0xf')](_0x5cb04e=>{console['error'](_0x5cb04e),this[_0x4c13('0x11')]=!0x0;});}[_0x4c13('0x36')](){this[_0x4c13('0x3e')]=null,this[_0x4c13('0xe1')]&&this[_0x4c13('0xe1')]['destroy']();}[_0x4c13('0x38')](_0x2031bf){return!_0x2031bf||_0x2031bf['data']?Promise[_0x4c13('0xef')]():this[_0x4c13('0xd')][_0x4c13('0x8')]({'revisionId':_0x2031bf['id']})[_0x4c13('0x43')](_0x5107a0=>{_0x2031bf['data']=_0x5107a0[_0x4c13('0xcd')];});}['_cleanUp'](){this[_0x4c13('0xdd')]=null,this[_0x4c13('0x5c')](),this[_0x4c13('0xe1')]&&this['_changeView'][_0x4c13('0x36')](),this['_changeView']=null,this[_0x4c13('0x87')][_0x4c13('0xc3')]();}[_0x4c13('0x1e')](_0x1df1e5){const _0x573107=Array['from'](_0x1df1e5[_0x4c13('0x9f')])[_0x4c13('0x4e')](([_0x378436,_0x256578])=>_0x378436[_0x4c13('0x7f')](_0x4c13('0x6d'))&&!_0x256578[_0x4c13('0x3c')]),_0x348322=Array[_0x4c13('0xa7')](this[_0x4c13('0x7b')][_0x4c13('0x6f')]['createRangeIn'](_0x1df1e5)[_0x4c13('0x80')]({'singleCharacters':!0x0}));if(0x0!=_0x573107[_0x4c13('0xa0')])for(const _0x13df4e of _0x348322){const [_0xd9ef36,_0x1f8830]=_0x573107[0x0],[,_0x397c3d,_0x30c505]=_0xd9ef36['split'](':');if(_0x1f8830[_0x4c13('0x93')][_0x4c13('0x50')](_0x13df4e[_0x4c13('0xd2')])&&_0x573107[_0x4c13('0x37')](),(_0x13df4e['previousPosition'][_0x4c13('0x50')](_0x1f8830[_0x4c13('0xf7')])||_0x13df4e['previousPosition'][_0x4c13('0xbe')](_0x1f8830['start']))&&(_0x4c13('0x30')==_0x397c3d?_0x13df4e[_0x4c13('0x0')]={'userId':_0x30c505}:_0x4c13('0x2c')==_0x397c3d&&(_0x13df4e[_0x4c13('0xa9')]={'userId':_0x30c505})),0x0==_0x573107[_0x4c13('0xa0')])break;}return _0x348322;}[_0x4c13('0x7')](_0x4671bd){const _0x2472ba=new Map();for(let _0x575701=0x0;_0x575701<_0x4671bd[_0x4c13('0xa0')];_0x575701++)'text'===_0x4671bd[_0x575701]['type']?(_0x4671bd[_0x575701][_0x4c13('0x82')]['startIndex']=_0x575701,_0x4671bd[_0x575701][_0x4c13('0x82')][_0x4c13('0xc8')]=_0x575701):(_0x4c13('0xcb')===_0x4671bd[_0x575701][_0x4c13('0xb3')]?_0x4671bd[_0x575701][_0x4c13('0x82')][_0x4c13('0x75')]=_0x575701:'elementEnd'===_0x4671bd[_0x575701]['type']&&(_0x4671bd[_0x575701][_0x4c13('0x82')]['endIndex']=_0x575701),_0x2472ba[_0x4c13('0xca')](_0x4671bd[_0x575701]['id'],_0x575701));for(const _0x5d1f00 of _0x2472ba[_0x4c13('0x1')]())_0x4c13('0xcb')===_0x4671bd[_0x5d1f00][_0x4c13('0xb3')]?_0x4671bd[_0x5d1f00][_0x4c13('0x82')][_0x4c13('0xc8')]=_0x2472ba[_0x4c13('0x67')](_0x4671bd[_0x5d1f00][_0x4c13('0x5b')]):'elementEnd'===_0x4671bd[_0x5d1f00][_0x4c13('0xb3')]&&(_0x4671bd[_0x5d1f00][_0x4c13('0x82')][_0x4c13('0x75')]=_0x2472ba[_0x4c13('0x67')](_0x4671bd[_0x5d1f00][_0x4c13('0x5b')]));}[_0x4c13('0x95')](_0x13e1fb){for(let _0xc67fe9=0x0;_0xc67fe9<_0x13e1fb[_0x4c13('0xa0')];_0xc67fe9++){if('elementStart'===_0x13e1fb[_0xc67fe9][_0x4c13('0xb3')])_0x13e1fb[_0xc67fe9][_0x4c13('0x82')]['startIndex']=_0xc67fe9;else{if(_0x4c13('0xbc')===_0x13e1fb[_0xc67fe9][_0x4c13('0xb3')]){_0x13e1fb[_0xc67fe9][_0x4c13('0x82')][_0x4c13('0xc8')]=_0xc67fe9;const _0x59c7b2=_0x13e1fb[_0xc67fe9]['item']['startIndex'];_0x13e1fb[_0x59c7b2][_0x4c13('0x5b')]=_0x13e1fb[_0xc67fe9]['id'],_0x13e1fb[_0xc67fe9][_0x4c13('0x5b')]=_0x13e1fb[_0x59c7b2]['id'];}else _0x13e1fb[_0xc67fe9][_0x4c13('0x82')][_0x4c13('0x75')]=_0xc67fe9,_0x13e1fb[_0xc67fe9][_0x4c13('0x82')][_0x4c13('0xc8')]=_0xc67fe9,_0x13e1fb[_0xc67fe9][_0x4c13('0x5b')]=null;}_0x13e1fb[_0xc67fe9][_0x4c13('0x33')]||(_0x13e1fb[_0xc67fe9][_0x4c13('0x33')]=[],_0x13e1fb[_0xc67fe9][_0x4c13('0xe4')]=[]);}}[_0x4c13('0x68')](_0x4f5603,_0x22c85e){const _0x3aa805=_0x4f5603[_0x4c13('0x4e')](_0x2f9936=>!_0x2f9936[_0x4c13('0x0')]);for(let _0x4281b2=0x0;_0x4281b2<_0x22c85e[_0x4c13('0xa0')];_0x4281b2++)_0x22c85e[_0x4281b2][_0x4c13('0x0')]&&(_0x3aa805[_0x4281b2][_0x4c13('0x0')]=_0x22c85e[_0x4281b2][_0x4c13('0x0')]);}[_0x4c13('0x8d')](_0x246d1b){const _0x1a494b=JSON[_0x4c13('0x8c')](_0x246d1b),_0x5dca3f=this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xec')][_0x4c13('0xd3')],_0x3ae27b=new _0x134257(_0x5dca3f,_0x1a494b[_0x4c13('0xc1')](_0x3d343f=>this[_0x4c13('0xf4')](_0x3d343f)));return this[_0x4c13('0x7b')][_0x4c13('0xcd')][_0x4c13('0xb0')](_0x3ae27b);}[_0x4c13('0xf4')](_0xe49c98){const _0x26a2c4=this[_0x4c13('0x7b')]['editing'][_0x4c13('0xec')][_0x4c13('0xd3')];if(_0x4c13('0x81')==typeof _0xe49c98)return new _0x4a3df6(_0x26a2c4,_0xe49c98);{const _0x5657d3=_0xe49c98['children'][_0x4c13('0xc1')](_0x33f88a=>this[_0x4c13('0xf4')](_0x33f88a));return new _0x20dab0(_0x26a2c4,_0xe49c98[_0x4c13('0xd0')],_0xe49c98[_0x4c13('0x35')],_0x5657d3);}}[_0x4c13('0x2d')](_0x4cb498,_0x1f9a28=null){const _0x1119ff=this[_0x4c13('0xc2')]['getRevision'](_0x4cb498),_0x4a8461=_0x1f9a28?this[_0x4c13('0xc2')]['getRevision'](_0x1f9a28):null,_0x43d3b7=this[_0x4c13('0xad')](_0x1119ff,_0x4a8461),_0x7f6d9f=_0x43d3b7[_0x43d3b7[_0x4c13('0xa0')]-0x1],_0x30bb33=new Map();for(const _0x5b127a of _0x43d3b7){_0x5b127a[_0x4c13('0x6f')]={};for(const _0x174866 of _0x5b127a[_0x4c13('0x8e')])_0x30bb33['set'](_0x174866['id'],_0x174866);for(const _0x11aea3 of this[_0x4c13('0x7b')][_0x4c13('0x6f')][_0x4c13('0xd3')][_0x4c13('0x96')]())_0x5b127a['data'][_0x11aea3]||(_0x5b127a['data'][_0x11aea3]={'insertions':'[]','deletions':'[]'}),_0x5b127a[_0x4c13('0x6f')][_0x11aea3]={'insertions':this[_0x4c13('0x8d')](_0x5b127a[_0x4c13('0xcd')][_0x11aea3][_0x4c13('0x51')]),'deletions':this['_makeModelFromViewString'](_0x5b127a[_0x4c13('0xcd')][_0x11aea3][_0x4c13('0x55')])};}const _0xb47703={'model':{},'changes':[]};for(const _0x33190e of this[_0x4c13('0x7b')]['model'][_0x4c13('0xd3')][_0x4c13('0x96')]()){let _0x3b12ea=null,_0x5bb023=0x0;const _0xa011a1=new Map(Array[_0x4c13('0xa7')](_0x1119ff[_0x4c13('0x6f')][_0x33190e][_0x4c13('0x51')][_0x4c13('0x9f')])[_0x4c13('0x4e')](([_0x5d18dc])=>!_0x5d18dc[_0x4c13('0x7f')](_0x4c13('0x6d'))));let _0x47ca53=0x0;for(const _0x422510 of _0x43d3b7){const _0x5c20b7=this[_0x4c13('0x1e')](_0x422510[_0x4c13('0x6f')][_0x33190e][_0x4c13('0x51')]);_0x422510==_0x1119ff?(_0x3b12ea=_0x5c20b7,_0x5bb023=_0x3b12ea[_0x4c13('0xa0')],_0x3b12ea[_0x4c13('0x76')](_0x8dd205=>{_0x8dd205['id']=_0x47ca53++;}),this[_0x4c13('0x95')](_0x3b12ea)):this[_0x4c13('0x68')](_0x3b12ea,_0x5c20b7);const _0x49cc39=_0x3b12ea[_0x4c13('0x4e')](_0x81eba0=>!_0x81eba0[_0x4c13('0x0')])[_0x4c13('0xc1')](_0x4fb2b9=>_0x4fb2b9['id']),_0x3efba3=this[_0x4c13('0x1e')](_0x422510[_0x4c13('0x6f')][_0x33190e]['deletions']);_0x3efba3[_0x4c13('0x76')](_0x2a2d6a=>{_0x2a2d6a[_0x4c13('0xa9')]?_0x2a2d6a['id']=_0x5bb023++:_0x2a2d6a['id']=_0x49cc39[_0x4c13('0x37')]();}),this[_0x4c13('0x95')](_0x3efba3),this[_0x4c13('0xeb')](_0x3b12ea,_0x4c13('0x0')),this[_0x4c13('0xeb')](_0x3efba3,_0x4c13('0xa9')),_0x422510==_0x1119ff&&this[_0x4c13('0x69')](_0x3b12ea,_0xa011a1),_0x3b12ea=this['_joinTapes'](_0x3b12ea,_0x3efba3),this['_refreshStartEndIndex'](_0x3b12ea),this[_0x4c13('0xeb')](_0x3b12ea,'isRemoved');}_0x3b12ea=_0x3b12ea[_0x4c13('0x4e')](_0x451cb1=>!(_0x451cb1[_0x4c13('0x0')]&&_0x451cb1['isRemoved']));const _0x27e9c0=new Map(_0x7f6d9f[_0x4c13('0x6f')][_0x33190e][_0x4c13('0x55')]['markers']),_0x1dab93=new Set(_0xa011a1[_0x4c13('0x90')]());for(const _0x1f8f18 of _0x27e9c0[_0x4c13('0x90')]())_0x1dab93['delete'](_0x1f8f18);this[_0x4c13('0xe2')](_0x3b12ea,_0x1dab93),this['_fixObsoleteTags'](_0x3b12ea),_0x3b12ea=this[_0x4c13('0xd8')](_0x3b12ea),_0x3b12ea=this[_0x4c13('0x85')](_0x3b12ea),_0x3b12ea=this[_0x4c13('0x42')](_0x3b12ea);const {root:_0x3ffd15,changes:_0x379c21}=this[_0x4c13('0x5f')](_0x3b12ea,_0x30bb33);_0xb47703[_0x4c13('0x6f')][_0x33190e]=_0x3ffd15,_0xb47703[_0x4c13('0xee')]=_0xb47703[_0x4c13('0xee')]['concat'](_0x379c21);}return _0xb47703;}[_0x4c13('0x69')](_0x41ca1b,_0x5db2b7){for(let _0xcacca3=0x0;_0xcacca3<_0x41ca1b[_0x4c13('0xa0')];_0xcacca3++)for(const [_0x55cd8a,_0x40f6a5]of _0x5db2b7)_0x40f6a5['start'][_0x4c13('0x50')](_0x41ca1b[_0xcacca3][_0x4c13('0x94')])&&_0x41ca1b[_0xcacca3][_0x4c13('0x33')]['push'](_0x55cd8a),_0x40f6a5[_0x4c13('0x93')][_0x4c13('0x50')](_0x41ca1b[_0xcacca3][_0x4c13('0xd2')])&&_0x41ca1b[_0xcacca3]['markersEnd']['push'](_0x55cd8a);}[_0x4c13('0x59')](_0xb541a7,_0x426b7a){let _0x263710=[],_0x224df7=0x0,_0x5c3e8c=0x0;for(;_0x224df7<_0xb541a7['length']||_0x5c3e8c<_0x426b7a[_0x4c13('0xa0')];){const _0x3bf078=_0xb541a7[_0x224df7]||{},_0x174d26=_0x426b7a[_0x5c3e8c]||{};if(_0x3bf078['id']==_0x174d26['id'])_0x224df7++,_0x5c3e8c++,_0x263710[_0x4c13('0x46')](_0x3bf078);else{if(_0x174d26['isRemoved']&&_0x3bf078[_0x4c13('0x0')]){const {commonTape:_0x1c531f,iEnd:_0x1f4bcf,jEnd:_0x39f88f}=this[_0x4c13('0x6')](_0xb541a7,_0x224df7,_0x426b7a,_0x5c3e8c);_0x263710=_0x263710['concat'](_0x1c531f),_0x224df7=_0x1f4bcf,_0x5c3e8c=_0x39f88f;}else _0x174d26[_0x4c13('0xa9')]?(_0x5c3e8c++,_0x263710[_0x4c13('0x46')](_0x174d26)):(_0x224df7++,_0x263710[_0x4c13('0x46')](_0x3bf078));}}return _0x263710;}[_0x4c13('0xe2')](_0x5a41a7,_0x285acf){const _0x2c1efc=[];for(let _0x197337=0x0;_0x197337<_0x5a41a7[_0x4c13('0xa0')];_0x197337++){for(let _0x57460c=0x0;_0x57460c<_0x5a41a7[_0x197337]['markersStart']['length'];_0x57460c++){const _0x46e6a0=_0x5a41a7[_0x197337][_0x4c13('0x33')][_0x57460c];if(!_0x285acf[_0x4c13('0x4b')](_0x46e6a0))continue;const {group:_0x512c8a,type:_0x3bc0ad,authorId:_0x31a5d0}=_0x127052(_0x46e6a0);_0x4c13('0xda')!=_0x512c8a||_0x4c13('0x30')!=_0x3bc0ad&&'deletion'!=_0x3bc0ad||(_0x2c1efc[_0x4c13('0xa3')]({'type':_0x3bc0ad,'name':_0x46e6a0,'userId':_0x31a5d0}),_0x5a41a7[_0x197337][_0x4c13('0x33')][_0x4c13('0x3f')](_0x57460c,0x1));}_0x2ff4f8(_0x5a41a7[_0x197337]);for(let _0x134a94=0x0;_0x134a94<_0x5a41a7[_0x197337][_0x4c13('0xe4')]['length'];_0x134a94++){const _0x5d1337=_0x5a41a7[_0x197337]['markersEnd'][_0x134a94];if(!_0x285acf['has'](_0x5d1337))continue;const {group:_0x56c94f,type:_0x28a6c3}=_0x127052(_0x5d1337);if('suggestion'!=_0x56c94f||_0x4c13('0x30')!=_0x28a6c3&&_0x4c13('0x2c')!=_0x28a6c3)continue;_0x5a41a7[_0x197337]['markersEnd']['splice'](_0x134a94,0x1);const _0x4608e9=_0x2c1efc[_0x4c13('0xed')](_0x2e6939=>_0x2e6939[_0x4c13('0xd0')]==_0x5d1337);_0x4608e9>-0x1&&_0x2c1efc[_0x4c13('0x3f')](_0x4608e9,0x1);}}function _0x127052(_0x398122){const _0x56027f=_0x398122['split'](':');return{'group':_0x56027f[0x0],'type':_0x56027f[0x1],'subType':_0x56027f[_0x4c13('0xa0')]>=0x5?_0x56027f[0x2]:null,'id':_0x56027f[_0x4c13('0xa0')]<0x5?_0x56027f[0x2]:_0x56027f[0x3],'authorId':_0x56027f[_0x4c13('0xa0')]<0x5?_0x56027f[0x3]:_0x56027f[0x4],'markerCount':0x6==_0x56027f['length']?_0x56027f[0x5]:null};}function _0x2ff4f8(_0x2b846f){for(let _0x239ce8=0x0;_0x239ce8<_0x2c1efc['length'];_0x239ce8++){if(_0x2b846f['isAdded']&&_0x4c13('0x30')==_0x2c1efc[_0x239ce8][_0x4c13('0xb3')])return _0x2b846f['isAddSuggestion']=_0x2c1efc[_0x239ce8],void delete _0x2b846f[_0x4c13('0x0')];if(!_0x2b846f['isAdded']&&!_0x2b846f[_0x4c13('0xa9')]&&_0x4c13('0x2c')==_0x2c1efc[_0x239ce8][_0x4c13('0xb3')])return void(_0x2b846f['isRemoveSuggestion']=_0x2c1efc[_0x239ce8]);}}}['_setDistance'](_0x2117f6,_0x75815f){let _0x2fe897=0x0,_0x47b970=!0x1;const _0x5da47e=new Map();for(const _0x23ec28 of _0x2117f6)_0x23ec28[_0x75815f]?_0x47b970&&(_0x2fe897++,_0x47b970=!0x1):(_0x2fe897++,_0x47b970=!0x0),_0x5da47e[_0x4c13('0xca')](_0x23ec28['id'],_0x2fe897);for(let _0x3c35f1=0x0;_0x3c35f1<_0x2117f6[_0x4c13('0xa0')];_0x3c35f1++){if(_0x4c13('0xa9')==_0x75815f&&_0x2117f6[_0x3c35f1]['isAdded']||_0x4c13('0x0')==_0x75815f&&_0x2117f6[_0x3c35f1][_0x4c13('0xa9')])continue;if('text'==_0x2117f6[_0x3c35f1][_0x4c13('0xb3')]){_0x2117f6[_0x3c35f1]['distance']=0x0;continue;}const _0x31821e=_0x5da47e[_0x4c13('0x67')](_0x2117f6[_0x3c35f1][_0x4c13('0x5b')]),_0x5b149b=_0x5da47e[_0x4c13('0x67')](_0x2117f6[_0x3c35f1]['id']);_0x2117f6[_0x3c35f1][_0x4c13('0x66')]=_0x31821e-_0x5b149b;}}[_0x4c13('0xad')](_0x4202df,_0x3b2cde,_0x454021=!0x1){const _0x5a0fca=[];let _0x5b949e=this[_0x4c13('0xc2')][_0x4c13('0xa1')](_0x4202df),_0x3c8df5=this[_0x4c13('0xc2')]['getIndex'](_0x3b2cde);for(-0x1==_0x3c8df5&&(_0x3c8df5=this[_0x4c13('0xc2')][_0x4c13('0x53')][_0x4c13('0xa0')],_0x454021=!0x1);_0x5b949e<_0x3c8df5;)_0x5a0fca[_0x4c13('0x46')](this[_0x4c13('0xc2')]['getRevision'](_0x5b949e)),_0x5b949e++;return _0x454021&&_0x5a0fca[_0x4c13('0x46')](this[_0x4c13('0xc2')]['getRevision'](_0x5b949e)),_0x5a0fca;}[_0x4c13('0x6')](_0x5885d2,_0x463762,_0x50308b,_0x1467d1){const _0x57da16=this['editor'][_0x4c13('0x6f')][_0x4c13('0x26')];let _0x4f2ce2=_0x463762;for(;_0x5885d2[_0x4f2ce2]&&_0x5885d2[_0x4f2ce2][_0x4c13('0x0')];)_0x4f2ce2++;let _0x5a6495=_0x1467d1;for(;_0x50308b[_0x5a6495]&&_0x50308b[_0x5a6495][_0x4c13('0xa9')];)_0x5a6495++;_0x570f26(_0x5885d2,_0x463762,_0x4f2ce2),_0x570f26(_0x50308b,_0x1467d1,_0x5a6495);const _0x291d5e=_0x50308b['slice'](_0x1467d1,_0x5a6495)[_0x4c13('0xd4')](_0x5885d2['slice'](_0x463762,_0x4f2ce2));return _0x291d5e[_0x4c13('0x29')]((_0x5ad3af,_0x16aabd)=>_0x5ad3af[_0x4c13('0xab')]!=_0x16aabd[_0x4c13('0xab')]?_0x5ad3af['side']-_0x16aabd[_0x4c13('0xab')]:_0x5ad3af[_0x4c13('0xc7')]!=_0x16aabd[_0x4c13('0xc7')]?_0x5ad3af[_0x4c13('0xc7')]-_0x16aabd['level']:_0x5ad3af[_0x4c13('0x66')]!=_0x16aabd[_0x4c13('0x66')]?_0x16aabd[_0x4c13('0x66')]-_0x5ad3af[_0x4c13('0x66')]:!!_0x5ad3af[_0x4c13('0x0')]!=!!_0x16aabd[_0x4c13('0x0')]?-0x1==_0x5ad3af[_0x4c13('0xab')]||0x0==_0x5ad3af['side']?_0x5ad3af[_0x4c13('0x0')]?-0x1:0x1:_0x5ad3af[_0x4c13('0x0')]?0x1:-0x1:_0x5ad3af[_0x4c13('0xa2')]-_0x16aabd[_0x4c13('0xa2')]),{'commonTape':_0x291d5e,'iEnd':_0x4f2ce2,'jEnd':_0x5a6495};function _0x570f26(_0x318df5,_0x290a74,_0x1e0ab4){let _0x8d8b04=-0x1,_0x553773=Number[_0x4c13('0x98')],_0x5d306d=!0x0;for(let _0x468317=_0x290a74;_0x468317<_0x1e0ab4;_0x468317++)if(_0x57da16[_0x4c13('0x86')](_0x318df5[_0x468317][_0x4c13('0x82')])||(_0x5d306d=!0x1),_0x318df5[_0x468317]['item'][_0x4c13('0x75')]<_0x290a74&&(_0x8d8b04=_0x468317),_0x318df5[_0x468317][_0x4c13('0x82')][_0x4c13('0xc8')]>=_0x1e0ab4){_0x553773=_0x468317;break;}_0x5d306d&&(_0x8d8b04=_0x1e0ab4-0x1);for(let _0x4d5e38=_0x290a74;_0x4d5e38<_0x1e0ab4;_0x4d5e38++)_0x318df5[_0x4d5e38][_0x4c13('0xab')]=_0x4d5e38<=_0x8d8b04?-0x1:_0x4d5e38<_0x553773?0x0:0x1,_0x318df5[_0x4d5e38][_0x4c13('0xa2')]=_0x4d5e38;let _0x248da4=0x0;for(let _0x857e4a=_0x290a74;_0x857e4a<=_0x8d8b04;_0x857e4a++)0x0==_0x318df5[_0x857e4a][_0x4c13('0x66')]?_0x318df5[_0x857e4a]['level']=_0x248da4:(_0x248da4++,_0x318df5[_0x857e4a]['level']=_0x248da4,_0x248da4++);for(let _0x441122=_0x290a74;_0x441122<_0x1e0ab4;_0x441122++)0x0==_0x318df5[_0x441122][_0x4c13('0xab')]&&(_0x318df5[_0x441122]['level']=_0x248da4);_0x248da4=0x0;for(let _0x5ec8ee=_0x1e0ab4-0x1;_0x5ec8ee>=_0x553773;_0x5ec8ee--)0x0==_0x318df5[_0x5ec8ee]['distance']?_0x318df5[_0x5ec8ee][_0x4c13('0xc7')]=_0x248da4:(_0x248da4--,_0x318df5[_0x5ec8ee][_0x4c13('0xc7')]=_0x248da4,_0x248da4--);}}[_0x4c13('0x24')](_0x3ce922){const _0xa66abf=new Map(),_0x33559e=this[_0x4c13('0x7b')][_0x4c13('0x6f')][_0x4c13('0x26')];for(let _0x2af3d2=0x1;_0x2af3d2<_0x3ce922['length'];_0x2af3d2++){let _0x4581bf,_0x2a7567,_0x1dc620;const _0x56088e=_0x3ce922[_0x2af3d2],_0x1b0b41=_0x3ce922[_0x2af3d2-0x1];if('text'==_0x56088e[_0x4c13('0xb3')])continue;if(_0x56088e[_0x4c13('0xb3')]!=_0x1b0b41[_0x4c13('0xb3')])continue;if(!_0x33559e[_0x4c13('0xa')](_0x1b0b41[_0x4c13('0x82')])||_0x33559e[_0x4c13('0xe8')](_0x1b0b41[_0x4c13('0x82')]))continue;if(!_0x33559e[_0x4c13('0xa')](_0x56088e['item'])||_0x33559e[_0x4c13('0xe8')](_0x56088e[_0x4c13('0x82')]))continue;if(_0x3ce922[_0x2af3d2][_0x4c13('0x0')]&&_0x3ce922[_0x2af3d2-0x1][_0x4c13('0xa9')])_0x4581bf=_0x3ce922[_0x2af3d2],_0x2a7567=_0x3ce922[_0x2af3d2-0x1],_0x1dc620=_0x2af3d2-0x1;else{if(!_0x3ce922[_0x2af3d2][_0x4c13('0xa9')]||!_0x3ce922[_0x2af3d2-0x1][_0x4c13('0x0')])continue;_0x4581bf=_0x3ce922[_0x2af3d2-0x1],_0x2a7567=_0x3ce922[_0x2af3d2],_0x1dc620=_0x2af3d2;}const _0x4a4807=_0x4581bf[_0x4c13('0xc7')]==_0x2a7567[_0x4c13('0xc7')],_0x141e21=Math[_0x4c13('0x9d')](_0x4581bf[_0x4c13('0xc7')])<Math[_0x4c13('0x9d')](_0x2a7567[_0x4c13('0xc7')])&&0x0==_0x2a7567[_0x4c13('0x66')];(_0x4a4807||_0x141e21)&&(_0xa66abf[_0x4c13('0xca')](_0x2a7567['id'],_0x4581bf['id']),_0x3ce922[_0x4c13('0x3f')](_0x1dc620,0x1),_0x2af3d2--,_0x4581bf['isAdded']=!0x1);}for(let _0xd8815b=0x0;_0xd8815b<_0x3ce922[_0x4c13('0xa0')];_0xd8815b++)_0xa66abf[_0x4c13('0x4b')](_0x3ce922[_0xd8815b]['pairId'])&&(_0x3ce922[_0xd8815b]['pairId']=_0xa66abf[_0x4c13('0x67')](_0x3ce922[_0xd8815b][_0x4c13('0x5b')]));}[_0x4c13('0xd8')](_0x1d972f){const _0x3535fc=new Set(_0x1d972f[_0x4c13('0xc1')](_0x313695=>_0x313695['id']));for(let _0x5a3343=0x0;_0x5a3343<_0x1d972f[_0x4c13('0xa0')];_0x5a3343++)_0x3535fc['has'](_0x1d972f[_0x5a3343][_0x4c13('0x5b')])||0x0==_0x1d972f[_0x5a3343][_0x4c13('0x66')]||(_0x1d972f[_0x5a3343][_0x4c13('0x4f')]=!0x0);return _0x1d972f['filter'](_0x1b40ae=>!_0x1b40ae[_0x4c13('0x4f')]);}[_0x4c13('0x85')](_0x18835c){const _0x53306c=new Set();for(let _0x3c20cf=0x0;_0x3c20cf<_0x18835c[_0x4c13('0xa0')];_0x3c20cf++){if(_0x53306c[_0x4c13('0x4b')](_0x18835c[_0x3c20cf]['id'])&&_0x18835c[_0x3c20cf][_0x4c13('0xa9')]&&(_0x18835c[_0x3c20cf][_0x4c13('0x4f')]=!0x0),_0x18835c[_0x3c20cf][_0x4c13('0x4f')])continue;if(0x0==_0x18835c[_0x3c20cf][_0x4c13('0x66')])continue;if(_0x4c13('0xcb')!=_0x18835c[_0x3c20cf][_0x4c13('0xb3')])continue;if(null==_0x18835c[_0x3c20cf]['pairId'])continue;let _0x42b36f=_0x3c20cf+0x1,_0x1e2454=0x0;for(;_0x18835c[_0x42b36f]['id']!=_0x18835c[_0x3c20cf][_0x4c13('0x5b')];)_0x4c13('0xcb')==_0x18835c[_0x42b36f][_0x4c13('0xb3')]?_0x1e2454++:'elementEnd'==_0x18835c[_0x42b36f][_0x4c13('0xb3')]&&_0x1e2454--,_0x42b36f++;if(0x0!=_0x1e2454){if(_0x18835c[_0x3c20cf][_0x4c13('0xa9')])_0x18835c[_0x3c20cf][_0x4c13('0x4f')]=!0x0;else for(;_0x42b36f!=_0x3c20cf;)_0x18835c[_0x42b36f][_0x4c13('0xa9')]&&0x0!=_0x18835c[_0x42b36f][_0x4c13('0x66')]&&(_0x18835c[_0x42b36f][_0x4c13('0x4f')]=!0x0,_0x53306c['add'](_0x18835c[_0x42b36f][_0x4c13('0x5b')])),_0x42b36f--;}}return _0x18835c['filter'](_0x3fb42a=>!_0x3fb42a[_0x4c13('0x4f')]);}['_removeUnsupportedChanges'](_0x3d34d0){const _0x30b1f5=this[_0x4c13('0x7b')]['model'][_0x4c13('0x26')];for(let _0x4b3003=0x0;_0x4b3003<_0x3d34d0[_0x4c13('0xa0')];_0x4b3003++){if(!_0x3d34d0[_0x4b3003][_0x4c13('0x0')]&&!_0x3d34d0[_0x4b3003]['isRemoved'])continue;if(0x0==_0x3d34d0[_0x4b3003][_0x4c13('0x66')])continue;const _0x31b8a0=_0x3d34d0[_0x4b3003]['item'];_0x30b1f5[_0x4c13('0xa')](_0x31b8a0)||_0x30b1f5[_0x4c13('0xe8')](_0x31b8a0)||(_0x3d34d0[_0x4b3003][_0x4c13('0x0')]&&delete _0x3d34d0[_0x4b3003]['isAdded'],_0x3d34d0[_0x4b3003][_0x4c13('0xa9')]&&(_0x3d34d0[_0x4b3003]['isIncorrect']=!0x0));}return _0x3d34d0[_0x4c13('0x4e')](_0x47e5ee=>!_0x47e5ee[_0x4c13('0x4f')]);}['_makeModelFromTape'](_0x25e9fb,_0x40cc22){const _0x5d34bf=new _0x6b3fc3(),_0x1f368b=[],_0x5a9653=new Map(),_0xbc3cd2=this['editor']['model'],_0x4a1aae=_0xbc3cd2[_0x4c13('0x26')],_0x40d5f1=[_0x5d34bf],_0x1a4374={},_0x365b7d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};for(let _0x135a7d=0x0;_0x135a7d<_0x25e9fb['length'];_0x135a7d++){let _0x28abfe,_0x26ad41;if(_0x4c13('0xcb')===_0x25e9fb[_0x135a7d][_0x4c13('0xb3')]){const _0x3c9113=new _0x45045b(_0x25e9fb[_0x135a7d][_0x4c13('0x82')][_0x4c13('0xd0')],_0x25e9fb[_0x135a7d]['item'][_0x4c13('0xa8')]());_0x28abfe=_0xbc3cd2[_0x4c13('0x64')](_0x40d5f1[0x0],_0x4c13('0x93')),_0x23a5c6(_0x28abfe,_0x3c9113),_0x26ad41=_0xbc3cd2[_0x4c13('0x64')](_0x3c9113,0x0),_0x40d5f1[_0x4c13('0xa3')](_0x3c9113);}else{if('elementEnd'===_0x25e9fb[_0x135a7d][_0x4c13('0xb3')]){const _0x2023da=_0x40d5f1[_0x4c13('0x37')]();_0x28abfe=_0xbc3cd2['createPositionAt'](_0x2023da,_0x4c13('0x93')),_0x26ad41=_0xbc3cd2[_0x4c13('0xde')](_0x2023da);}else{const _0x1137e6=new _0x32bc1a(_0x25e9fb[_0x135a7d][_0x4c13('0x82')][_0x4c13('0xcd')],_0x25e9fb[_0x135a7d][_0x4c13('0x82')]['getAttributes']());_0x28abfe=_0xbc3cd2[_0x4c13('0x64')](_0x40d5f1[0x0],_0x4c13('0x93')),_0x23a5c6(_0x28abfe,_0x1137e6),_0x26ad41=_0x28abfe[_0x4c13('0xbd')](_0x25e9fb[_0x135a7d][_0x4c13('0x82')][_0x4c13('0x7a')]);}}for(const _0x2e5eab of _0x25e9fb[_0x135a7d][_0x4c13('0x33')])_0x5a9653[_0x4c13('0xca')](_0x2e5eab,{'start':_0x28abfe,'end':null});_0xd3589('isRemoveSuggestion',_0x135a7d,_0x28abfe,_0x26ad41),_0xd3589(_0x4c13('0x4c'),_0x135a7d,_0x28abfe,_0x26ad41),_0xd3589(_0x4c13('0xa9'),_0x135a7d,_0x28abfe,_0x26ad41),_0xd3589(_0x4c13('0x0'),_0x135a7d,_0x28abfe,_0x26ad41);for(const _0x487980 of _0x25e9fb[_0x135a7d][_0x4c13('0xe4')]){_0x5a9653[_0x4c13('0x67')](_0x487980)[_0x4c13('0x93')]=_0x26ad41;}}for(const [_0x3edd3b,_0x5dff7a]of _0x5a9653){const _0x2586e6=this[_0x4c13('0x7b')][_0x4c13('0x6f')][_0x4c13('0x79')](_0x5dff7a['start'],_0x5dff7a['end']);_0x5d34bf[_0x4c13('0x9f')]['set'](_0x3edd3b,_0x2586e6);}return _0x1f368b[_0x4c13('0x29')]((_0x4750c7,_0x430dd9)=>{const _0x56cea1=_0x5d34bf[_0x4c13('0x9f')][_0x4c13('0x67')]('revision:'+_0x4750c7['id']),_0x466aed=_0x5d34bf[_0x4c13('0x9f')][_0x4c13('0x67')](_0x4c13('0x6d')+_0x430dd9['id']);return _0x56cea1['start'][_0x4c13('0x97')](_0x466aed[_0x4c13('0xf7')])?-0x1:_0x56cea1[_0x4c13('0xf7')][_0x4c13('0xbe')](_0x466aed[_0x4c13('0xf7')])?0x1:_0x56cea1[_0x4c13('0x93')][_0x4c13('0x97')](_0x466aed['end'])?-0x1:_0x56cea1[_0x4c13('0x93')][_0x4c13('0xbe')](_0x466aed[_0x4c13('0x93')])?0x1:'add'===_0x4750c7['type']?-0x1:0x1;}),{'root':_0x5d34bf,'changes':_0x1f368b};function _0xd3589(_0x5aa12a,_0x286c31,_0x5c77fb,_0x42ed54){const _0x5b34ba=!!_0x25e9fb[_0x286c31][_0x5aa12a],_0x4952b=_0x5b34ba?_0x25e9fb[_0x286c31][_0x5aa12a]['userId']:null,_0xeab68b=_0x286c31===_0x25e9fb[_0x4c13('0xa0')]-0x1,_0x1b2ec7=_0x365b7d[_0x5aa12a][0x0],_0x3d8515=_0x4a1aae[_0x4c13('0x39')](_0x25e9fb[_0x286c31][_0x4c13('0x82')]);!_0x1a4374[_0x5aa12a]&&_0x5b34ba?_0x1a4374[_0x5aa12a]={'start':_0x5c77fb,'tapeItem':_0x25e9fb[_0x286c31],'userId':_0x4952b,'type':_0x5aa12a}:_0x1a4374[_0x5aa12a]&&!_0x5b34ba?(_0x1a4374[_0x5aa12a][_0x4c13('0x93')]=_0x5c77fb,_0x4792b3(_0x1a4374[_0x5aa12a]),_0x1a4374[_0x5aa12a]=null):_0x1a4374[_0x5aa12a]&&_0x5b34ba&&_0x1a4374[_0x5aa12a][_0x4c13('0x27')]!==_0x4952b&&(_0x1a4374[_0x5aa12a][_0x4c13('0x93')]=_0x5c77fb,_0x1b2ec7&&_0x1b2ec7['userId']===_0x1a4374[_0x5aa12a][_0x4c13('0x27')]||_0x4792b3(_0x1a4374[_0x5aa12a]),_0x1a4374[_0x5aa12a]={'start':_0x5c77fb,'tapeItem':_0x25e9fb[_0x286c31],'userId':_0x4952b,'type':_0x5aa12a}),_0x1a4374[_0x5aa12a]&&_0x3d8515&&(_0x4c13('0xcb')!==_0x25e9fb[_0x286c31]['type']||_0x1b2ec7&&_0x1b2ec7[_0x4c13('0x27')]===_0x4952b||_0x365b7d[_0x5aa12a]['unshift']({'userId':_0x4952b,'object':_0x25e9fb[_0x286c31]['item'],'change':_0x1a4374[_0x5aa12a]}),_0x4c13('0xbc')===_0x25e9fb[_0x286c31][_0x4c13('0xb3')]&&_0x1b2ec7&&_0x1b2ec7[_0x4c13('0xc6')]===_0x25e9fb[_0x286c31]['item']&&(_0x365b7d[_0x5aa12a][_0x4c13('0x37')](),_0x1a4374[_0x5aa12a]=_0x1b2ec7['change'])),_0x1a4374[_0x5aa12a]&&_0xeab68b&&(_0x1a4374[_0x5aa12a][_0x4c13('0x93')]=_0x42ed54,_0x4792b3(_0x1a4374[_0x5aa12a]),_0x1a4374[_0x5aa12a]=null);}function _0x4792b3({start:_0x5b127c,end:_0x13fe73,tapeItem:_0x281a50,userId:_0x47c57f,type:_0x15d257}){const _0x35a686=_0x281a50['item'],_0x463efc=_0xbc3cd2[_0x4c13('0x26')]['isBlock'](_0x35a686)&&!_0xbc3cd2[_0x4c13('0x26')][_0x4c13('0xe8')](_0x35a686),_0x51fb9f=_0x5b127c[_0x4c13('0xf3')]==_0x13fe73[_0x4c13('0x22')]&&_0x13fe73[_0x4c13('0x4d')];if(_0x463efc&&_0x51fb9f)return;const _0x13ce5f=_0xbc3cd2['createRange'](_0x5b127c,_0x13fe73),_0x111d50=_0x40cc22[_0x4c13('0x67')](_0x47c57f),_0x413e10=new _0x33925b({'author':_0x111d50,'type':_0x4c13('0x0')==_0x15d257||_0x4c13('0x4c')==_0x15d257?'add':_0x4c13('0x20'),'data':{'isSuggestion':'isAddSuggestion'==_0x15d257||'isRemoveSuggestion'==_0x15d257},'createdAt':new Date()});_0x1f368b['push'](_0x413e10),_0x5d34bf[_0x4c13('0x9f')]['set'](_0x4c13('0x6d')+_0x413e10['id'],_0x13ce5f);}}['_setConversion'](){this[_0x4c13('0x7b')][_0x4c13('0x7d')][_0x4c13('0xb5')](_0x4c13('0xe0'))[_0x4c13('0xea')]({'view':_0x4c13('0xf9')}),this['editor'][_0x4c13('0x7d')][_0x4c13('0xb5')]('editingDowncast')[_0x4c13('0x9a')]({'model':_0x4c13('0xf9'),'view':_0x32370d=>{const _0x1343bf=_0x32370d[_0x4c13('0xaf')][_0x4c13('0x9')](':')[0x1],_0x17b089=this['_getChangeFromId'](_0x1343bf);if(!_0x17b089)return null;const _0x440e4c=_0x4c13('0xcf')==_0x17b089[_0x4c13('0xb3')]?_0x4c13('0x30'):_0x4c13('0x2c'),_0xe7d029=[_0x4c13('0xc5'),'ck-suggestion-marker-'+_0x440e4c];return _0x17b089['data'][_0x4c13('0xf6')]&&_0xe7d029['push']('ck-suggestion-marker-'+_0x440e4c+_0x4c13('0xa4')),this[_0x4c13('0xdd')]==_0x17b089&&_0xe7d029[_0x4c13('0x46')]('ck-suggestion-marker--active'),{'classes':_0xe7d029,'attributes':{'data-change-id':_0x1343bf}};}}),this[_0x4c13('0x7b')][_0x4c13('0x7d')][_0x4c13('0xb5')](_0x4c13('0xe0'))[_0x4c13('0xcf')](_0x58bb44=>{_0x58bb44['on']('element:pre',(_0x148e97,_0x3bed2d,_0x334f15)=>{const _0x3ff3e5=_0x3bed2d[_0x4c13('0x31')][_0x4c13('0x78')](0x0);if(!_0x3ff3e5||!_0x3ff3e5['is'](_0x4c13('0x49'),_0x4c13('0x48')))return;if(!_0x334f15[_0x4c13('0x9e')][_0x4c13('0x6e')](_0x3ff3e5,{'attributes':[_0x4c13('0x77'),_0x4c13('0x28')]}))return;const _0xb4bab0=_0x3bed2d[_0x4c13('0xf8')][_0x4c13('0xf7')][_0x4c13('0xf3')];_0x334f15[_0x4c13('0x32')][_0x4c13('0xe6')]('vid_start',_0x3ff3e5[_0x4c13('0x54')](_0x4c13('0x77')),_0xb4bab0),_0x334f15[_0x4c13('0x32')][_0x4c13('0xe6')]('vid_end',_0x3ff3e5[_0x4c13('0x54')]('vid_end'),_0xb4bab0);},{'priority':_0x4c13('0xd7')});}),this['editor']['conversion'][_0x4c13('0xb5')](_0x4c13('0xe0'))[_0x4c13('0xcf')](_0x57660b=>{_0x57660b['on']('element',(_0x18fc44,_0x2baff6,_0x58477f)=>{if(!_0x58477f[_0x4c13('0x9e')]['consume'](_0x2baff6[_0x4c13('0x31')],{'attributes':[_0x4c13('0x77'),'vid_end']}))return;if(_0x2baff6[_0x4c13('0xf8')][_0x4c13('0x3c')])return;const _0x3a5281=_0x2baff6[_0x4c13('0xf8')][_0x4c13('0xf7')][_0x4c13('0xf3')];_0x3a5281[_0x4c13('0xb9')](_0x4c13('0x77'))||_0x3a5281[_0x4c13('0xb9')](_0x4c13('0x17'))||(_0x58477f['writer'][_0x4c13('0xe6')](_0x4c13('0x77'),_0x2baff6[_0x4c13('0x31')]['getAttribute'](_0x4c13('0x77')),_0x3a5281),_0x58477f[_0x4c13('0x32')][_0x4c13('0xe6')](_0x4c13('0x28'),_0x2baff6['viewItem'][_0x4c13('0x54')](_0x4c13('0x28')),_0x3a5281));},{'priority':_0x4c13('0xd7')});}),this['editor'][_0x4c13('0x7d')]['for'](_0x4c13('0xe0'))[_0x4c13('0x5d')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x4c13('0x17'),'value':_0x5c5026=>_0x5c5026[_0x4c13('0x54')](_0x4c13('0x17'))}}),this[_0x4c13('0x7b')][_0x4c13('0x6f')][_0x4c13('0x26')]['on'](_0x4c13('0xb'),(_0x28e08a,[,_0x4d6b70])=>{[_0x4c13('0x77'),_0x4c13('0x28'),_0x4c13('0x17')]['includes'](_0x4d6b70)&&(_0x28e08a[_0x4c13('0x14')]=!0x0,_0x28e08a['stop']());},{'priority':_0x4c13('0x83')}),this['editor'][_0x4c13('0x7d')][_0x4c13('0xb5')](_0x4c13('0x72'))[_0x4c13('0xcf')](_0x2a7dbd=>{_0x2a7dbd['on'](_0x4c13('0xf5'),(_0x32815b,_0x539f04,_0x3e0c6f)=>{if('\x20'!=_0x539f04[_0x4c13('0x82')][_0x4c13('0xcd')]||_0x539f04[_0x4c13('0x82')]['parent']['maxOffset']>0x1)return;if(!_0x3e0c6f[_0x4c13('0x9e')][_0x4c13('0x6e')](_0x539f04[_0x4c13('0x82')],_0x32815b[_0x4c13('0xd0')]))return;const _0x131e18=_0x3e0c6f[_0x4c13('0x32')],_0x200ae3=_0x3e0c6f[_0x4c13('0xdf')][_0x4c13('0xf0')](_0x539f04[_0x4c13('0x60')]);_0x131e18['wrap'](_0x200ae3,_0x131e18[_0x4c13('0x47')](_0x4c13('0x62')));});}),this[_0x4c13('0x7b')][_0x4c13('0x7d')]['for'](_0x4c13('0x72'))[_0x4c13('0xc9')]({'model':_0x4c13('0xf9')}),this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xa6')]['on'](_0x4c13('0x61'),function(_0x3254e6){const _0xc90e73=_0x3254e6['plugins'][_0x4c13('0x67')](_0x4c13('0x99'));return(_0x3a559a,_0x2560b4,_0x22b395)=>{const _0x5eb697=_0x2560b4[_0x4c13('0xaf')][_0x4c13('0x9')](':')[0x1],_0x25d4b8=_0xc90e73[_0x4c13('0x58')](_0x5eb697);if(!_0x25d4b8)return null;const _0x330e00=_0x4c13('0xcf')==_0x25d4b8[_0x4c13('0xb3')]?_0x4c13('0x9'):_0x4c13('0x7c');if(!_0x22b395[_0x4c13('0x9e')][_0x4c13('0xb2')](_0x2560b4[_0x4c13('0xd6')],_0x3a559a['name']))return;const _0x3e96e5=_0x2560b4[_0x4c13('0xd6')][_0x4c13('0x80')](),_0x155764=_0x2560b4[_0x4c13('0xd6')]['start'],_0x2d80d1=_0x3254e6[_0x4c13('0x6f')][_0x4c13('0x26')];let _0xd4dbd1=null,_0x3ca130=null,_0x3599fc=!0x1,_0x5c9ab2=!0x1;for(const _0x3c8670 of _0x3e96e5){const _0x4593ad=_0x3c8670[_0x4c13('0x82')];_0x3599fc=_0x3599fc||_0x2d80d1[_0x4c13('0xac')](_0x4593ad);const _0x33776a=_0x22b395[_0x4c13('0xdf')][_0x4c13('0x8b')](_0x4593ad);if(_0x33776a&&_0x33776a[_0x4c13('0x34')](_0x4c13('0x1a')))return;_0x4c13('0xbc')==_0x3c8670['type']&&(_0x2d80d1['isBlock'](_0x4593ad)&&!_0x2d80d1[_0x4c13('0xe8')](_0x4593ad)&&(_0x4593ad[_0x4c13('0x13')]||_0x155764[_0x4c13('0x3a')]?_0xd4dbd1&&_0xd4dbd1[_0x4c13('0x22')]==_0x4593ad||(_0xd4dbd1=_0x4593ad,_0x4c128a(_0x3c8670['previousPosition']),_0x5c9ab2=!0x0):_0x3ca130=_0x3ca130||_0x3c8670[_0x4c13('0x94')]));}function _0x4c128a(_0x274c78){const _0x5b4d87=_0x22b395[_0x4c13('0x32')][_0x4c13('0x15')](_0x4c13('0x62'),{'class':_0x4c13('0x9b')+_0x330e00}),_0x24d552=_0x22b395[_0x4c13('0xdf')]['toViewPosition'](_0x274c78);_0x25d4b8['data'][_0x4c13('0xf6')]&&_0x22b395[_0x4c13('0x32')][_0x4c13('0x4')]('ck-suggestion-marker-'+_0x330e00+_0x4c13('0xa4'),_0x5b4d87),_0xc90e73[_0x4c13('0xdd')]==_0x25d4b8&&_0x22b395[_0x4c13('0x32')][_0x4c13('0x4')]('ck-suggestion-marker--active',_0x5b4d87),_0x22b395[_0x4c13('0x32')]['insert'](_0x24d552,_0x5b4d87),_0x22b395['mapper'][_0x4c13('0xb7')](_0x5b4d87,_0x2560b4[_0x4c13('0xaf')]);}_0x3599fc||_0x5c9ab2||!_0x3ca130||_0x4c128a(_0x3ca130);};}(this[_0x4c13('0x7b')]),{'priority':_0x4c13('0x2e')}),this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xa6')]['on'](_0x4c13('0x18'),(_0x16868f,_0x2b9a67,_0x154df7)=>{const _0x46b06a=_0x154df7[_0x4c13('0xdf')][_0x4c13('0x40')](_0x2b9a67[_0x4c13('0xaf')]);if(_0x46b06a)for(const _0x2f44cd of _0x46b06a)(_0x2f44cd[_0x4c13('0x21')](_0x4c13('0x56'))||_0x2f44cd[_0x4c13('0x21')](_0x4c13('0x88')))&&(_0x154df7[_0x4c13('0xdf')][_0x4c13('0x19')](_0x2f44cd,_0x2b9a67[_0x4c13('0xaf')]),_0x154df7[_0x4c13('0x32')][_0x4c13('0x20')](_0x2f44cd));},{'priority':_0x4c13('0x2e')}),this[_0x4c13('0x7b')][_0x4c13('0x4a')]['downcastDispatcher']['on'](_0x4c13('0x61'),(_0x5c4e6c,_0x1c3bad,_0x3eac6d)=>{const _0x946a54=_0x1c3bad['markerName'][_0x4c13('0x9')](':')[0x1],_0x2155ee=this['_getChangeFromId'](_0x946a54);if(!_0x2155ee)return null;const _0x471add=_0x4c13('0xcf')==_0x2155ee[_0x4c13('0xb3')]?_0x4c13('0x9'):_0x4c13('0x7c');if(_0x3eac6d[_0x4c13('0x9e')][_0x4c13('0xb2')](_0x1c3bad[_0x4c13('0xd6')],_0x5c4e6c[_0x4c13('0xd0')]))for(const _0x44bfab of _0x1c3bad[_0x4c13('0xd6')][_0x4c13('0x10')]()){if(!_0x44bfab['is'](_0x4c13('0x49'),_0x4c13('0x2f')))continue;const _0x184e65=_0x3eac6d[_0x4c13('0x32')][_0x4c13('0x15')](_0x4c13('0x62'),{'class':_0x4c13('0x9b')+_0x471add}),_0x233fb8=_0x3eac6d[_0x4c13('0xdf')][_0x4c13('0x1b')](this[_0x4c13('0x7b')][_0x4c13('0x6f')][_0x4c13('0xbb')](_0x44bfab));_0x2155ee[_0x4c13('0xcd')][_0x4c13('0xf6')]&&_0x3eac6d[_0x4c13('0x32')]['addClass'](_0x4c13('0x9b')+_0x471add+'-new',_0x184e65),this[_0x4c13('0xdd')]==_0x2155ee&&_0x3eac6d[_0x4c13('0x32')][_0x4c13('0x4')](_0x4c13('0x8a'),_0x184e65),_0x3eac6d[_0x4c13('0x32')][_0x4c13('0x6b')](_0x233fb8,_0x184e65),_0x3eac6d[_0x4c13('0xdf')][_0x4c13('0xb7')](_0x184e65,_0x1c3bad[_0x4c13('0xaf')]);}},{'priority':_0x4c13('0x2e')}),this[_0x4c13('0x7b')]['conversion'][_0x4c13('0xb5')](_0x4c13('0xe0'))[_0x4c13('0xea')]({'view':_0x4c13('0xda')}),this[_0x4c13('0x7b')][_0x4c13('0x7d')]['for']('dataDowncast')[_0x4c13('0xc9')]({'model':_0x4c13('0xda')}),this[_0x4c13('0x7b')][_0x4c13('0x7d')][_0x4c13('0xb5')]('editingDowncast')[_0x4c13('0x9a')]({'model':_0x4c13('0xda'),'view':_0x481319=>{const _0x5e2409=_0x481319[_0x4c13('0xaf')][_0x4c13('0x9')](':')[0x1];return _0x4c13('0x30')!=_0x5e2409&&'deletion'!=_0x5e2409?null:{'classes':[_0x4c13('0x5'),'ck-suggestion-preview-marker-'+_0x5e2409]};}}),this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xa6')]['on']('addMarker:suggestion:deletion',J(this['editor'],_0x4c13('0x7c')),{'priority':_0x4c13('0x2e')}),this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xa6')]['on'](_0x4c13('0xdb'),J(this['editor'],_0x4c13('0x9')),{'priority':_0x4c13('0x2e')}),this['editor']['editing'][_0x4c13('0xa6')]['on']('removeMarker:suggestion',(_0x1fe92e,_0x3205ec,_0x16493c)=>{const _0x51dc9b=_0x16493c[_0x4c13('0xdf')][_0x4c13('0x40')](_0x3205ec[_0x4c13('0xaf')]);if(_0x51dc9b)for(const _0x35fbdc of _0x51dc9b)_0x35fbdc['is'](_0x4c13('0xb6'))&&(_0x16493c[_0x4c13('0xdf')][_0x4c13('0x19')](_0x35fbdc,_0x3205ec[_0x4c13('0xaf')]),_0x16493c[_0x4c13('0x32')][_0x4c13('0x20')](_0x35fbdc));},{'priority':'high'});}[_0x4c13('0x58')](_0x5bffb6){return this[_0x4c13('0x87')][_0x4c13('0x67')](_0x5bffb6);}[_0x4c13('0xb1')](_0xa04faa){this[_0x4c13('0xe1')]&&this[_0x4c13('0xe1')]['destroy'](),this[_0x4c13('0xe1')]=new _0x4d9b1c(this['editor'][_0x4c13('0xf1')],_0xa04faa);const _0x55aeb7=this[_0x4c13('0x7b')]['model'][_0x4c13('0x9f')][_0x4c13('0x67')](_0x4c13('0x6d')+_0xa04faa['id']);return this[_0x4c13('0xe1')][_0x4c13('0xd9')]=()=>_0x4cec3c(this[_0x4c13('0x7b')]['editing'],_0x55aeb7),this[_0x4c13('0xe1')];}[_0x4c13('0xc0')](){this[_0x4c13('0x7b')][_0x4c13('0x6f')]['document'][_0x4c13('0xaa')][_0x4c13('0x5e')]('revision'),this['on'](_0x4c13('0x1c'),(_0x34d152,_0x14dab4,_0x289e81,_0x3ce95)=>{_0x3ce95&&this[_0x4c13('0x6a')][_0x4c13('0x20')](_0x3ce95),_0x289e81&&(this['_balloon'][_0x4c13('0xcf')]({'view':_0x289e81,'stackId':'revisionHistoryLabel','position':{'target':_0x289e81[_0x4c13('0xd9')]}}),this[_0x4c13('0x6a')][_0x4c13('0x44')]('revisionHistoryLabel'));}),this['on'](_0x4c13('0x92'),(_0x2ecd19,_0x4e5232,_0x37e7bf,_0x5dd109)=>{this[_0x4c13('0x3e')]=_0x37e7bf?this['_getViewForChange'](_0x37e7bf):null,this[_0x4c13('0x7b')]['model'][_0x4c13('0xe7')](_0x517039=>{_0x5dd109&&_0x517039[_0x4c13('0x70')]('revision:'+_0x5dd109['id']),_0x37e7bf&&_0x517039[_0x4c13('0x70')](_0x4c13('0x6d')+_0x37e7bf['id']);});}),this[_0x4c13('0xe9')](this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xec')]['document'],'mouseover',(_0x4987bb,_0x5bc0fc)=>{if(this[_0x4c13('0xdd')])return;const _0xd41cc5=this[_0x4c13('0x73')](_0x5bc0fc[_0x4c13('0x7e')]),_0x11ff8e=this[_0x4c13('0x87')][_0x4c13('0x67')](_0xd41cc5);this[_0x4c13('0x3e')]=_0x11ff8e?this['_getViewForChange'](_0x11ff8e):null;}),this[_0x4c13('0xe9')](this[_0x4c13('0x7b')]['editing'][_0x4c13('0xec')][_0x4c13('0xd3')],'mousedown',(_0x4ef0c0,_0xe81e0d)=>{const _0x15ac81=this[_0x4c13('0x73')](_0xe81e0d['target']),_0x3b3b8c=this['_changeIdToChange'][_0x4c13('0x67')](_0x15ac81);this[_0x4c13('0xdd')]=_0x3b3b8c||null;});}[_0x4c13('0x73')](_0x28475a){do{const _0x1e59a3=_0x28475a[_0x4c13('0x54')]('data-change-id');if(_0x1e59a3)return _0x1e59a3;_0x28475a=_0x28475a[_0x4c13('0x22')];}while(_0x28475a);return null;}['_cleanMarkers'](){this[_0x4c13('0x7b')]['model'][_0x4c13('0xe7')](_0x149d62=>{for(const _0x9e2040 of this['editor'][_0x4c13('0x6f')]['markers'])_0x149d62[_0x4c13('0x63')](_0x9e2040);});}}function J(_0x2a98ab,_0x8e6b77){return(_0x5a3456,_0x30b1f1,_0x6c522)=>{if(!_0x6c522['consumable'][_0x4c13('0xb2')](_0x30b1f1['markerRange'],_0x5a3456[_0x4c13('0xd0')]))return;const _0x35734a=_0x30b1f1['markerRange'][_0x4c13('0x80')](),_0x45e749=_0x30b1f1[_0x4c13('0xd6')][_0x4c13('0xf7')],_0x29d262=_0x2a98ab[_0x4c13('0x6f')][_0x4c13('0x26')];let _0x2e32e8=null,_0x51c404=null,_0x35df54=!0x1,_0x286d25=!0x1;for(const _0x3d6fa9 of _0x35734a){const _0x3ad83e=_0x3d6fa9[_0x4c13('0x82')];_0x35df54=_0x35df54||_0x29d262[_0x4c13('0xac')](_0x3ad83e);const _0x43c585=_0x6c522[_0x4c13('0xdf')][_0x4c13('0x8b')](_0x3ad83e);if(_0x43c585&&_0x43c585['getCustomProperty'](_0x4c13('0x1a')))return;_0x4c13('0xbc')==_0x3d6fa9[_0x4c13('0xb3')]&&(_0x29d262['isBlock'](_0x3ad83e)&&!_0x29d262['isLimit'](_0x3ad83e)&&(_0x3ad83e[_0x4c13('0x13')]||_0x45e749[_0x4c13('0x3a')]?_0x2e32e8&&_0x2e32e8[_0x4c13('0x22')]==_0x3ad83e||(_0x2e32e8=_0x3ad83e,_0x1f7bda(_0x3d6fa9['previousPosition']),_0x286d25=!0x0):_0x51c404=_0x51c404||_0x3d6fa9[_0x4c13('0x94')]));}function _0x1f7bda(_0xdd89f1){const _0x1dfea3=_0x6c522[_0x4c13('0xdf')][_0x4c13('0x1b')](_0xdd89f1),_0x1c4aab=_0x6c522[_0x4c13('0x32')][_0x4c13('0x15')](_0x4c13('0x62'),{'class':'ck-suggestion-preview-marker-'+_0x8e6b77});_0x6c522[_0x4c13('0x32')][_0x4c13('0x6b')](_0x1dfea3,_0x1c4aab),_0x6c522[_0x4c13('0xdf')]['bindElementToMarker'](_0x1c4aab,_0x30b1f1['markerName']);}_0x35df54||_0x286d25||!_0x51c404||_0x1f7bda(_0x51c404);};}_0x27575c(d,_0x2c438c);class L extends _0x333c3e{constructor(_0x23fb89){super(_0x23fb89);const _0x2e570c=_0x23fb89[_0x4c13('0xbf')][_0x4c13('0x67')](d);this['stopListening'](_0x23fb89,_0x4c13('0xdc')),this[_0x4c13('0x91')](_0x4c13('0x12')),this[_0x4c13('0xe9')](_0x2e570c,_0x4c13('0xb4'),()=>this[_0x4c13('0xb8')]()),this[_0x4c13('0xe9')](_0x2e570c,_0x4c13('0x57'),()=>this[_0x4c13('0xb8')]());}[_0x4c13('0x65')](){const _0x3074d4=this[_0x4c13('0x7b')],_0x1319ad=_0x3074d4[_0x4c13('0xbf')][_0x4c13('0x67')](d),_0x499211=_0x1319ad[_0x4c13('0x11')]?_0x1319ad[_0x4c13('0x89')][_0x4c13('0x3')]:null;_0x3074d4['config']['get'](_0x4c13('0xce'))[_0x4c13('0xe3')](_0x499211);}[_0x4c13('0xb8')](){const {isReady:_0x3e69ee,isEnabled:_0x4297e4}=this[_0x4c13('0x7b')][_0x4c13('0xbf')][_0x4c13('0x67')](d);this[_0x4c13('0x1f')]=_0x3e69ee&&_0x4297e4;}}class q extends _0x333c3e{constructor(_0x592524,{direction:_0x36a006}){super(_0x592524);const _0x1372a2=_0x592524['plugins'][_0x4c13('0x67')](d);this['stopListening'](_0x592524,'change:isReadOnly'),this[_0x4c13('0x91')](_0x4c13('0x12')),this['_step']=_0x4c13('0x1d')===_0x36a006?0x1:-0x1,this[_0x4c13('0xe9')](_0x1372a2,_0x4c13('0xb4'),()=>this[_0x4c13('0xb8')]()),this[_0x4c13('0xe9')](_0x1372a2,_0x4c13('0x57'),()=>this['refresh']());}[_0x4c13('0x65')](){const _0x4f8f10=this[_0x4c13('0x7b')],_0x391bf4=_0x4f8f10[_0x4c13('0xbf')][_0x4c13('0x67')](d),{isNavigationMode:_0x1a06cb,currentChangeNumber:_0x43f1f5}=_0x391bf4;_0x391bf4[_0x4c13('0xdd')]=_0x1a06cb?_0x391bf4[_0x4c13('0x89')][_0x4c13('0xee')][_0x4c13('0x67')](_0x43f1f5+this['_step']):_0x391bf4[_0x4c13('0x89')][_0x4c13('0xee')][_0x4c13('0xc4')];const _0x3eeca4=_0x4f8f10['model'][_0x4c13('0x9f')]['get'](_0x4c13('0x6d')+_0x391bf4['activeChange']['id']),_0x345a60=_0x4cec3c(_0x4f8f10[_0x4c13('0x4a')],_0x3eeca4);_0x4592af({'target':_0x345a60,'viewportOffset':0x28});}[_0x4c13('0xb8')](){const {isNavigationMode:_0x27d982,currentChangeNumber:_0x5706dc,numberOfChanges:_0x53fceb,isReady:_0x19b65f,isEnabled:_0x35093a}=this[_0x4c13('0x7b')][_0x4c13('0xbf')][_0x4c13('0x67')](d);this['isEnabled']=!!(_0x35093a&&_0x19b65f&&_0x53fceb)&&(!_0x27d982||(0x1===this[_0x4c13('0xae')]?_0x5706dc<_0x53fceb-0x1:_0x5706dc>0x0));}}
23
+ const _0x5c30=['values','_markSuggestions','parent','ck-suggestion-marker--active','createAttributeElement','addMarker:suggestion:deletion','level','concat','showNextChange','split','consume','_getDiff','splice','then','has','removeMarker:revision','side','ck-suggestion-preview-marker-','isEqual','resolve','elementStart','mousedown','delete','roots','end','revision-start','getAttributes','revisionHistory','index','findIndex','nextPosition','sort','upcast','userId','abs','editor','startIndex','createPositionFromPath','_changeIdToChange','hasAttribute','length','vid_start','addHighlight','isObject','isAtEnd','low','shift','distance','_removeMissingPairs','execute','deletions','name','bind','change:isEnabled','selection','consumable','isSuggestion','element','authors','for','span','insertion','markerToHighlight','_update','writer','children','viewItem','modelRange','_markMismatchedRemovedTags','_step','markerNameToElements','insertions','setData','string','-new','observeMarkers','_appendChild','from','clear','forEach','init','_threeWayMerge','removeMarker:suggestion','checkAttribute','clearForceDisabled','suggestion','_markInsertions','isBlock','_makeModelFromViewString','forward','previousPosition','destroy','repository','toViewElement','getItems','markerName','editingDowncast','range','elementToAttribute','slice','conversion','attributes','commands','isBefore','get','revisionHistoryLabel','change','markerToData','isRemoved','deletion','merge','marked','pop','push','isNavigationMode','catch','processor','mapper','newRevisionId','loadRevisionData','revision','elementEnd','isAdded','ck-suggestion-marker-','<p></p>','set','type','_cleanMarkers','getAttribute','error','dataDowncast','data','keys','view','highest','getWalker','first','getRootNames','addMarker:suggestion:insertion','getIndex','ck-suggestion-marker-merge','isRemoveSuggestion','attribute:vid','vid','markersEnd','_makeModelFromTape','remove','isAddSuggestion','document','addClass','start','diffData','unshift','isContent','_setConversion','parse','downcastDispatcher','next','dataToMarker','change:isReady','backward','getRevision','enableReadOnlyMode','htmlProcessor','done','_removeRevisionMarkers','pluginName','listenTo','markerRange','_removeUnsupportedChanges','ck-suggestion-marker-split','toViewPosition','softBreak','removeMarker','_balloon','showPreviousChange','isEnabled','vid_end','RevisionsRepository','_getViewObj','offsetSize','restoreRevisionCallback','isLimit','editing','RevisionViewer','hasClass','locale','changes','maxOffset','_data','isCollapsed','getRoot','ck-suggestion-preview-marker','model','compare','activeView','revision-viewer','isReady','pairId','toData','markers','setAttribute','useFillerType','_fixObsoleteTags','_getRevisionsRange','text','_markMarkers','markersStart','reconvertMarker','startsWith','_findChangeIdFromDomTarget','_refreshStartEndIndex','_setDistance','change:isReadOnly','high','readOnlyMode','plugins','target','revision-end','getChild','mouseover','getCustomProperty','_changeView','add','_makeTape','createUIElement','refresh','stopListening','adapter','ck-editor__editable__overlay','_initInteractions','endIndex','includes','nodeAfter','unbindElementFromMarkerName','isInline','filter','map','_getViewForChange','_target','_processTape','_getChangeFromId','test','_cleanUp','bindElementToMarker','isIncorrect','isAfter','_joinTapes','uiElement','ck-suggestion-marker','schema','diff','insert','stop','toViewRange','nextSibling','item','isAtStart','all','revision:','config','data-revision-','activeChange'];(function(_0x1d22d2,_0x5c3015){const _0x41a843=function(_0x333105){while(--_0x333105){_0x1d22d2['push'](_0x1d22d2['shift']());}};_0x41a843(++_0x5c3015);}(_0x5c30,0xde));const _0x41a8=function(_0x1d22d2,_0x5c3015){_0x1d22d2=_0x1d22d2-0x0;let _0x41a843=_0x5c30[_0x1d22d2];return _0x41a843;};import{Plugin as _0x1465d4,Command as _0x424868}from'ckeditor5/src/core';import{ObservableMixin as _0x168b9d,mix as _0x58c6e6,scrollViewportToShowTarget as _0x36c36c}from'ckeditor5/src/utils';import{ContextualBalloon as _0x2a5c80}from'ckeditor5/src/ui';import{DocumentFragment as _0x330fba,Element as _0x674015,Text as _0x13f0e6,ViewDocumentFragment as _0x69e7da,ViewText as _0x4506cb,ViewElement as _0x1883f2}from'ckeditor5/src/engine';import{Users as _0x5c89eb,getMarkerDomElement as _0x2de57a}from'ckeditor5-collaboration/src/collaboration-core';import _0x293847 from'./ui/revisionviewer/changedetailsview';import _0x431f8a from'./revisionsrepository';import _0x6fe6b0 from'./changeitem';import _0x414718 from'./revisiondiff';import'../theme/revisionviewer.css';export default class R extends _0x1465d4{static get[_0x41a8('0xcf')](){return _0x41a8('0xe1');}static get['requires'](){return[_0x5c89eb,_0x2a5c80,_0x431f8a];}constructor(..._0x1a436b){super(..._0x1a436b),this[_0x41a8('0x85')]=this['editor'][_0x41a8('0x101')][_0x41a8('0x91')](_0x41a8('0xdb')),this['set'](_0x41a8('0x28'),null),this[_0x41a8('0xa6')](_0x41a8('0xec'),null),this[_0x41a8('0xa6')](_0x41a8('0x1d'),null),this[_0x41a8('0xa6')](_0x41a8('0xee'),!0x1),this[_0x41a8('0xa6')](_0x41a8('0xd9'),!0x0),this['on'](_0x41a8('0x5e'),(_0x49ace9,_0x256dda,_0x52b2b3)=>{this[_0x41a8('0x28')]=null,this['activeView']=null,this[_0x41a8('0x4c')][_0x41a8('0xe0')]['view'][_0x41a8('0x93')](_0x78da54=>{for(const _0x5f1cf4 of this['editor']['editing'][_0x41a8('0xae')][_0x41a8('0xbd')][_0x41a8('0x40')])_0x52b2b3?_0x78da54['removeClass'](_0x41a8('0x7'),_0x5f1cf4):_0x78da54['addClass'](_0x41a8('0x7'),_0x5f1cf4);});}),this[_0x41a8('0x5d')](_0x41a8('0x9b'))['to'](this,_0x41a8('0x28'),_0x38aaa2=>null!==_0x38aaa2),this['bind']('currentChangeNumber')['to'](this,_0x41a8('0xee'),this,_0x41a8('0x1d'),this,_0x41a8('0x28'),(_0x1d6edc,_0x557efd,_0x56c7c7)=>_0x1d6edc&&_0x56c7c7?_0x557efd[_0x41a8('0xe4')]['getIndex'](_0x56c7c7):0x0),this[_0x41a8('0x5d')]('numberOfChanges')['to'](this,_0x41a8('0xee'),this,_0x41a8('0x1d'),(_0x343391,_0x2793e0)=>_0x343391?_0x2793e0[_0x41a8('0xe4')][_0x41a8('0x51')]:0x0),this['_changeView']=null,this[_0x41a8('0x4f')]=new Map(),this[_0x41a8('0x6')]=null,this[_0x41a8('0xd7')]=this['editor'][_0x41a8('0x101')][_0x41a8('0x91')](_0x2a5c80);}[_0x41a8('0x79')](){const _0x4d376d=this[_0x41a8('0x4c')];_0x4d376d[_0x41a8('0xac')][_0x41a8('0xcc')][_0x41a8('0xf3')](_0x41a8('0x98'));const _0x4afd49=new q(_0x4d376d,{'direction':_0x41a8('0xc9')}),_0x4dd69b=new q(_0x4d376d,{'direction':_0x41a8('0x82')});_0x4d376d[_0x41a8('0x8f')][_0x41a8('0x1')](_0x41a8('0xd8'),_0x4afd49),_0x4d376d[_0x41a8('0x8f')][_0x41a8('0x1')](_0x41a8('0x31'),_0x4dd69b),_0x4d376d[_0x41a8('0x8f')][_0x41a8('0x1')]('restoreRevision',new L(_0x4d376d)),this['on']('change:numberOfChanges',()=>{_0x4afd49['refresh'](),_0x4dd69b[_0x41a8('0x4')]();}),this[_0x41a8('0xc3')](),this[_0x41a8('0x8')](),_0x4d376d[_0x41a8('0xcb')](_0x41a8('0xed'));}async['getRevisionData'](_0x3dd3f5){await this[_0x41a8('0xa0')](_0x3dd3f5);const _0x10adba={};for(const _0x2a065a in _0x3dd3f5[_0x41a8('0xc0')]){const _0x545837=this[_0x41a8('0xce')](JSON[_0x41a8('0xc4')](_0x3dd3f5['diffData'][_0x2a065a][_0x41a8('0x70')])),_0x29dd53=this[_0x41a8('0x4c')][_0x41a8('0xe0')][_0x41a8('0xae')]['document'],_0x197c93=new _0x69e7da(_0x29dd53,_0x545837['map'](_0x1b2ee3=>this['_getViewObj'](_0x1b2ee3)));_0x10adba[_0x2a065a]=this[_0x41a8('0x4c')][_0x41a8('0xac')][_0x41a8('0x9d')][_0x41a8('0xf0')](_0x197c93);}return _0x10adba;}['_removeRevisionMarkers'](_0xbb350b){return(_0xbb350b=_0xbb350b['filter'](_0x49e444=>!_0x49e444[_0x41a8('0x5c')]||_0x41a8('0x42')!==_0x49e444['name']&&_0x41a8('0x103')!==_0x49e444[_0x41a8('0x5c')]))['forEach'](_0x4eb7ef=>{_0x41a8('0x72')!=typeof _0x4eb7ef&&(_0x4eb7ef[_0x41a8('0x6a')]=this['_removeRevisionMarkers'](_0x4eb7ef[_0x41a8('0x6a')]),_0x4eb7ef[_0x41a8('0x8e')]=_0x4eb7ef['attributes'][_0x41a8('0xe')](_0x2f1c86=>!_0x2f1c86[0x0][_0x41a8('0xfa')](_0x41a8('0x27'))));}),_0xbb350b;}[_0x41a8('0xeb')](_0x425578,_0xb7738,_0x1f3788=!0x1){if(!this[_0x41a8('0xd9')])return;const _0x5bba96=this['diff'],_0x2c1af4=this['repository'],_0x3c6611='string'==typeof _0x425578?_0x2c1af4[_0x41a8('0xca')](_0x425578):_0x425578,_0x274673=_0x41a8('0x72')==typeof _0xb7738?_0x2c1af4[_0x41a8('0xca')](_0xb7738):_0xb7738,_0xb49338=_0x3c6611['id'],_0x1d0a31=_0x274673?_0x274673['id']:null;if(!_0x1f3788&&this['diff']&&this[_0x41a8('0x1d')][_0x41a8('0x9f')]===_0xb49338&&this[_0x41a8('0x1d')]['oldRevisionId']===_0x1d0a31)return Promise['resolve']();this[_0x41a8('0xee')]=!0x1,this[_0x41a8('0xec')]=null,this[_0x41a8('0x28')]=null,this[_0x41a8('0x1d')]=new _0x414718(_0xb49338,_0x1d0a31);const _0x1fdb67=this['_getRevisionsRange'](_0x3c6611,_0x274673,!0x0)['map'](_0x805dae=>this[_0x41a8('0xa0')](_0x805dae));return _0x1fdb67['push'](new Promise(_0x581408=>{setTimeout(_0x581408,0x14);})),Promise[_0x41a8('0x24')](_0x1fdb67)[_0x41a8('0x36')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x38db36=this[_0x41a8('0x34')](_0xb49338,_0x1d0a31);this['diff']['_setData'](_0x38db36);for(const _0x179633 of this[_0x41a8('0x1d')][_0x41a8('0xe4')])this[_0x41a8('0x4f')][_0x41a8('0xa6')](_0x179633['id'],_0x179633);this[_0x41a8('0x4c')][_0x41a8('0xea')]['enqueueChange']({'isUndoable':!0x1},_0x1b2717=>{for(const _0x130874 of Object[_0x41a8('0xad')](_0x38db36[_0x41a8('0xea')])){const _0x584e2d=this['editor'][_0x41a8('0xea')][_0x41a8('0xbd')][_0x41a8('0xe8')](_0x130874);_0x1b2717[_0x41a8('0xbb')](_0x1b2717['createRangeIn'](_0x584e2d)),_0x1b2717['insert'](_0x38db36[_0x41a8('0xea')][_0x130874],_0x584e2d,0x0);}}),this['isReady']=!0x0;})[_0x41a8('0x9c')](_0x1ab2f8=>{console[_0x41a8('0xaa')](_0x1ab2f8),this[_0x41a8('0x15')](),_0x5bba96?this['diff']=_0x5bba96:this['editor'][_0x41a8('0x71')](_0x41a8('0xa5')),this['isReady']=!0x0;});}[_0x41a8('0x84')](){this[_0x41a8('0xec')]=null,this['_changeView']&&this[_0x41a8('0x0')]['destroy']();}['addRevisionData'](_0x580b04,_0x21767f){const _0x499867=this[_0x41a8('0x85')]['createRevision'](_0x580b04);return _0x499867['on'](_0x41a8('0x68'),(_0x55e722,_0x56f7a0,_0x2a1928)=>_0x21767f(_0x56f7a0,_0x2a1928,_0x499867)),this[_0x41a8('0x85')]['addRevision'](_0x499867),_0x499867;}[_0x41a8('0xa0')](_0x1222f8){if(!_0x1222f8||_0x1222f8[_0x41a8('0xc0')])return Promise[_0x41a8('0x3c')]();{const _0x3e4b39=this['editor'][_0x41a8('0x26')][_0x41a8('0x91')]('collaboration.channelId');return this[_0x41a8('0x6')][_0x41a8('0xca')]({'channelId':_0x3e4b39,'revisionId':_0x1222f8['id']})[_0x41a8('0x36')](_0x4a8c7=>{_0x1222f8['_update']({'diffData':_0x4a8c7[_0x41a8('0xc0')]},!0x0);});}}[_0x41a8('0x15')](){this[_0x41a8('0x28')]=null,this[_0x41a8('0xa8')](),this[_0x41a8('0x0')]&&this[_0x41a8('0x0')]['destroy'](),this[_0x41a8('0x0')]=null,this[_0x41a8('0x4f')][_0x41a8('0x77')]();}[_0x41a8('0x2')](_0x131f04){const _0x22e42a=Array[_0x41a8('0x76')](_0x131f04[_0x41a8('0xf1')])[_0x41a8('0xe')](([_0x674fc3,_0x32df52])=>_0x674fc3[_0x41a8('0xfa')](_0x41a8('0x25'))&&!_0x32df52[_0x41a8('0xe7')]),_0x2f0c9e=Array[_0x41a8('0x76')](this['editor']['model']['createRangeIn'](_0x131f04)[_0x41a8('0xb0')]({'singleCharacters':!0x0}));if(0x0!=_0x22e42a['length'])for(const _0x289814 of _0x2f0c9e){const [_0x4bdc8a,_0x443801]=_0x22e42a[0x0],[,_0x9aeb2a,_0x46a341]=_0x4bdc8a['split'](':');if(_0x443801[_0x41a8('0x41')][_0x41a8('0x3b')](_0x289814[_0x41a8('0x47')])&&_0x22e42a[_0x41a8('0x57')](),(_0x289814[_0x41a8('0x83')]['isEqual'](_0x443801[_0x41a8('0xbf')])||_0x289814[_0x41a8('0x83')]['isAfter'](_0x443801[_0x41a8('0xbf')]))&&(_0x41a8('0x66')==_0x9aeb2a?_0x289814[_0x41a8('0xa3')]={'userId':_0x46a341}:_0x41a8('0x96')==_0x9aeb2a&&(_0x289814[_0x41a8('0x95')]={'userId':_0x46a341})),0x0==_0x22e42a['length'])break;}return _0x2f0c9e;}[_0x41a8('0xfc')](_0x266cf7){const _0x457509=new Map();for(let _0x38bd78=0x0;_0x38bd78<_0x266cf7[_0x41a8('0x51')];_0x38bd78++)_0x41a8('0xf6')===_0x266cf7[_0x38bd78][_0x41a8('0xa7')]?(_0x266cf7[_0x38bd78][_0x41a8('0x22')][_0x41a8('0x4d')]=_0x38bd78,_0x266cf7[_0x38bd78][_0x41a8('0x22')]['endIndex']=_0x38bd78):(_0x41a8('0x3d')===_0x266cf7[_0x38bd78]['type']?_0x266cf7[_0x38bd78][_0x41a8('0x22')][_0x41a8('0x4d')]=_0x38bd78:_0x41a8('0xa2')===_0x266cf7[_0x38bd78][_0x41a8('0xa7')]&&(_0x266cf7[_0x38bd78][_0x41a8('0x22')]['endIndex']=_0x38bd78),_0x457509['set'](_0x266cf7[_0x38bd78]['id'],_0x38bd78));for(const _0x396111 of _0x457509[_0x41a8('0x29')]())_0x41a8('0x3d')===_0x266cf7[_0x396111][_0x41a8('0xa7')]?_0x266cf7[_0x396111]['item'][_0x41a8('0x9')]=_0x457509[_0x41a8('0x91')](_0x266cf7[_0x396111]['pairId']):_0x41a8('0xa2')===_0x266cf7[_0x396111][_0x41a8('0xa7')]&&(_0x266cf7[_0x396111][_0x41a8('0x22')][_0x41a8('0x4d')]=_0x457509['get'](_0x266cf7[_0x396111][_0x41a8('0xef')]));}[_0x41a8('0x12')](_0x24a791){for(let _0x20300c=0x0;_0x20300c<_0x24a791['length'];_0x20300c++){if(_0x41a8('0x3d')===_0x24a791[_0x20300c]['type'])_0x24a791[_0x20300c][_0x41a8('0x22')]['startIndex']=_0x20300c;else{if('elementEnd'===_0x24a791[_0x20300c]['type']){_0x24a791[_0x20300c][_0x41a8('0x22')][_0x41a8('0x9')]=_0x20300c;const _0x379250=_0x24a791[_0x20300c]['item'][_0x41a8('0x4d')];_0x24a791[_0x379250]['pairId']=_0x24a791[_0x20300c]['id'],_0x24a791[_0x20300c][_0x41a8('0xef')]=_0x24a791[_0x379250]['id'];}else _0x24a791[_0x20300c][_0x41a8('0x22')][_0x41a8('0x4d')]=_0x20300c,_0x24a791[_0x20300c]['item'][_0x41a8('0x9')]=_0x20300c,_0x24a791[_0x20300c]['pairId']=null;}_0x24a791[_0x20300c][_0x41a8('0xf8')]||(_0x24a791[_0x20300c][_0x41a8('0xf8')]=[],_0x24a791[_0x20300c][_0x41a8('0xb9')]=[]);}}[_0x41a8('0x7f')](_0x259e18,_0x3ed95a){const _0x50ac92=_0x259e18[_0x41a8('0xe')](_0x3d54f7=>!_0x3d54f7[_0x41a8('0xa3')]);for(let _0x3bac8a=0x0;_0x3bac8a<_0x3ed95a['length'];_0x3bac8a++)_0x3ed95a[_0x3bac8a]['isAdded']&&(_0x50ac92[_0x3bac8a][_0x41a8('0xa3')]=_0x3ed95a[_0x3bac8a][_0x41a8('0xa3')]);}[_0x41a8('0x81')](_0x308c81){const _0x213c61=JSON[_0x41a8('0xc4')](_0x308c81),_0x391f20=this[_0x41a8('0x4c')][_0x41a8('0xe0')][_0x41a8('0xae')][_0x41a8('0xbd')],_0xb56dd0=new _0x69e7da(_0x391f20,_0x213c61[_0x41a8('0xf')](_0x1a1889=>this['_getViewObj'](_0x1a1889)));return this[_0x41a8('0x4c')][_0x41a8('0xac')]['toModel'](_0xb56dd0);}[_0x41a8('0xdc')](_0x35bbe9){const _0x53c096=this['editor']['editing'][_0x41a8('0xae')][_0x41a8('0xbd')];if(_0x41a8('0x72')==typeof _0x35bbe9)return new _0x4506cb(_0x53c096,_0x35bbe9);{const _0x1bbae0=_0x35bbe9['children']['map'](_0x3634fb=>this[_0x41a8('0xdc')](_0x3634fb));return new _0x1883f2(_0x53c096,_0x35bbe9[_0x41a8('0x5c')],_0x35bbe9['attributes'],_0x1bbae0);}}['_getDiff'](_0xe05b7b,_0x2ee1bd=null){const _0x23fd7b=this[_0x41a8('0x85')][_0x41a8('0xca')](_0xe05b7b),_0x54aa6a=_0x2ee1bd?this[_0x41a8('0x85')][_0x41a8('0xca')](_0x2ee1bd):null,_0xa6d591=this[_0x41a8('0xf5')](_0x23fd7b,_0x54aa6a),_0xf0b511=_0xa6d591[_0xa6d591[_0x41a8('0x51')]-0x1],_0x5a619a=new Map();for(const _0x3de0fa of _0xa6d591){_0x3de0fa[_0x41a8('0xea')]={};for(const _0x2a1f7e of _0x3de0fa[_0x41a8('0x63')])_0x5a619a[_0x41a8('0xa6')](_0x2a1f7e['id'],_0x2a1f7e);for(const _0x25577d of this[_0x41a8('0x4c')]['model'][_0x41a8('0xbd')][_0x41a8('0xb2')]())_0x3de0fa[_0x41a8('0xc0')][_0x25577d]||(_0x3de0fa[_0x41a8('0xc0')][_0x25577d]={'insertions':'[]','deletions':'[]'}),_0x3de0fa[_0x41a8('0xea')][_0x25577d]={'insertions':this[_0x41a8('0x81')](_0x3de0fa[_0x41a8('0xc0')][_0x25577d][_0x41a8('0x70')]),'deletions':this[_0x41a8('0x81')](_0x3de0fa[_0x41a8('0xc0')][_0x25577d][_0x41a8('0x5b')])};}const _0x21fb6c={'model':{},'changes':[]};for(const _0x36ef64 of this[_0x41a8('0x4c')]['model'][_0x41a8('0xbd')]['getRootNames']()){let _0x172149=null,_0x5bba83=0x0;const _0x1d168f=new Map(Array[_0x41a8('0x76')](_0x23fd7b[_0x41a8('0xea')][_0x36ef64][_0x41a8('0x70')][_0x41a8('0xf1')])[_0x41a8('0xe')](([_0x65380d])=>!_0x65380d[_0x41a8('0xfa')](_0x41a8('0x25'))));let _0x29702d=0x0;for(const _0x19f90f of _0xa6d591){const _0xd3b586=this[_0x41a8('0x2')](_0x19f90f['model'][_0x36ef64][_0x41a8('0x70')]);_0x19f90f==_0x23fd7b?(_0x172149=_0xd3b586,_0x5bba83=_0x172149[_0x41a8('0x51')],_0x172149[_0x41a8('0x78')](_0x5eced2=>{_0x5eced2['id']=_0x29702d++;}),this[_0x41a8('0x12')](_0x172149)):this[_0x41a8('0x7f')](_0x172149,_0xd3b586);const _0x273115=_0x172149['filter'](_0x32a1dd=>!_0x32a1dd[_0x41a8('0xa3')])[_0x41a8('0xf')](_0x156790=>_0x156790['id']);let _0x12918f=0x0;const _0x103566=this[_0x41a8('0x2')](_0x19f90f['model'][_0x36ef64][_0x41a8('0x5b')]);_0x103566['forEach'](_0x282a09=>{_0x282a09['isRemoved']?_0x282a09['id']=_0x5bba83++:_0x282a09['id']=_0x273115[_0x12918f++];}),this[_0x41a8('0x12')](_0x103566),this[_0x41a8('0xfd')](_0x172149,'isAdded'),this[_0x41a8('0xfd')](_0x103566,'isRemoved'),_0x19f90f==_0x23fd7b&&this[_0x41a8('0xf7')](_0x172149,_0x1d168f),_0x172149=this[_0x41a8('0x19')](_0x172149,_0x103566),this['_refreshStartEndIndex'](_0x172149),this[_0x41a8('0xfd')](_0x172149,'isRemoved');}_0x172149=_0x172149[_0x41a8('0xe')](_0x49f653=>!(_0x49f653['isAdded']&&_0x49f653[_0x41a8('0x95')]));const _0x198e4b=new Map(_0xf0b511['model'][_0x36ef64]['deletions']['markers']),_0x39d5dc=new Set(_0x1d168f[_0x41a8('0xad')]());for(const _0x52fb8e of _0x198e4b['keys']())_0x39d5dc[_0x41a8('0x3f')](_0x52fb8e);this[_0x41a8('0x2a')](_0x172149,_0x39d5dc),this[_0x41a8('0xf4')](_0x172149),_0x172149=this[_0x41a8('0x59')](_0x172149),_0x172149=this[_0x41a8('0x6d')](_0x172149),_0x172149=this[_0x41a8('0xd2')](_0x172149);const {root:_0x484ac7,changes:_0x2dce9e}=this[_0x41a8('0xba')](_0x172149,_0x5a619a);_0x21fb6c[_0x41a8('0xea')][_0x36ef64]=_0x484ac7,_0x21fb6c[_0x41a8('0xe4')]=_0x21fb6c[_0x41a8('0xe4')]['concat'](_0x2dce9e);}return _0x21fb6c;}[_0x41a8('0xf7')](_0x372e39,_0x4aebab){for(let _0x54175f=0x0;_0x54175f<_0x372e39[_0x41a8('0x51')];_0x54175f++)for(const [_0x476448,_0x366c9b]of _0x4aebab)_0x366c9b[_0x41a8('0xbf')]['isEqual'](_0x372e39[_0x54175f][_0x41a8('0x83')])&&_0x372e39[_0x54175f][_0x41a8('0xf8')]['push'](_0x476448),_0x366c9b['end'][_0x41a8('0x3b')](_0x372e39[_0x54175f][_0x41a8('0x47')])&&_0x372e39[_0x54175f][_0x41a8('0xb9')][_0x41a8('0x9a')](_0x476448);}[_0x41a8('0x19')](_0x52ea6f,_0x2ec6a3){let _0x502a19=[],_0x5a87b6=0x0,_0x629b2=0x0;for(;_0x5a87b6<_0x52ea6f[_0x41a8('0x51')]||_0x629b2<_0x2ec6a3['length'];){const _0xc16a3a=_0x52ea6f[_0x5a87b6]||{},_0xcb38b4=_0x2ec6a3[_0x629b2]||{};if(_0xc16a3a['id']==_0xcb38b4['id'])_0x5a87b6++,_0x629b2++,_0x502a19[_0x41a8('0x9a')](_0xc16a3a);else{if(_0xcb38b4['isRemoved']&&_0xc16a3a[_0x41a8('0xa3')]){const {commonTape:_0x4c4a62,iEnd:_0x4e1929,jEnd:_0x1bbf61}=this[_0x41a8('0x7a')](_0x52ea6f,_0x5a87b6,_0x2ec6a3,_0x629b2);_0x502a19=_0x502a19[_0x41a8('0x30')](_0x4c4a62),_0x5a87b6=_0x4e1929,_0x629b2=_0x1bbf61;}else _0xcb38b4[_0x41a8('0x95')]?(_0x629b2++,_0x502a19[_0x41a8('0x9a')](_0xcb38b4)):(_0x5a87b6++,_0x502a19[_0x41a8('0x9a')](_0xc16a3a));}}return _0x502a19;}[_0x41a8('0x2a')](_0x2b7643,_0x3b5eb5){const _0x255e6d=[];for(let _0x3dcd4d=0x0;_0x3dcd4d<_0x2b7643[_0x41a8('0x51')];_0x3dcd4d++){for(let _0x38c3c2=0x0;_0x38c3c2<_0x2b7643[_0x3dcd4d][_0x41a8('0xf8')][_0x41a8('0x51')];_0x38c3c2++){const _0x2aa742=_0x2b7643[_0x3dcd4d][_0x41a8('0xf8')][_0x38c3c2];if(!_0x3b5eb5[_0x41a8('0x37')](_0x2aa742))continue;const {group:_0x30ad04,type:_0x3202fc,authorId:_0x114e01}=_0x380294(_0x2aa742);_0x41a8('0x7e')!=_0x30ad04||_0x41a8('0x66')!=_0x3202fc&&_0x41a8('0x96')!=_0x3202fc||(_0x255e6d[_0x41a8('0xc1')]({'type':_0x3202fc,'name':_0x2aa742,'userId':_0x114e01}),_0x2b7643[_0x3dcd4d]['markersStart'][_0x41a8('0x35')](_0x38c3c2,0x1),_0x38c3c2--);}_0x1c8532(_0x2b7643[_0x3dcd4d]);for(let _0x582dd8=0x0;_0x582dd8<_0x2b7643[_0x3dcd4d]['markersEnd']['length'];_0x582dd8++){const _0x566c40=_0x2b7643[_0x3dcd4d]['markersEnd'][_0x582dd8];if(!_0x3b5eb5['has'](_0x566c40))continue;const {group:_0x5a8dff,type:_0xe7714f}=_0x380294(_0x566c40);if(_0x41a8('0x7e')!=_0x5a8dff||_0x41a8('0x66')!=_0xe7714f&&'deletion'!=_0xe7714f)continue;_0x2b7643[_0x3dcd4d][_0x41a8('0xb9')][_0x41a8('0x35')](_0x582dd8,0x1),_0x582dd8--;const _0x117ec8=_0x255e6d[_0x41a8('0x46')](_0x5de41f=>_0x5de41f['name']==_0x566c40);_0x117ec8>-0x1&&_0x255e6d[_0x41a8('0x35')](_0x117ec8,0x1);}}function _0x380294(_0x2eac69){const _0x27e3a6=_0x2eac69['split'](':');return{'group':_0x27e3a6[0x0],'type':_0x27e3a6[0x1],'subType':_0x27e3a6[_0x41a8('0x51')]>=0x5?_0x27e3a6[0x2]:null,'id':_0x27e3a6['length']<0x5?_0x27e3a6[0x2]:_0x27e3a6[0x3],'authorId':_0x27e3a6[_0x41a8('0x51')]<0x5?_0x27e3a6[0x3]:_0x27e3a6[0x4],'markerCount':0x6==_0x27e3a6[_0x41a8('0x51')]?_0x27e3a6[0x5]:null};}function _0x1c8532(_0x80de7f){for(let _0x27a292=0x0;_0x27a292<_0x255e6d[_0x41a8('0x51')];_0x27a292++){if(_0x80de7f['isAdded']&&_0x41a8('0x66')==_0x255e6d[_0x27a292][_0x41a8('0xa7')])return _0x80de7f[_0x41a8('0xbc')]=_0x255e6d[_0x27a292],void delete _0x80de7f[_0x41a8('0xa3')];if(!_0x80de7f[_0x41a8('0xa3')]&&!_0x80de7f[_0x41a8('0x95')]&&_0x41a8('0x96')==_0x255e6d[_0x27a292][_0x41a8('0xa7')])return void(_0x80de7f['isRemoveSuggestion']=_0x255e6d[_0x27a292]);}}}['_setDistance'](_0x14d779,_0x288a6a){let _0x13fc36=0x0,_0x14d786=!0x1;const _0x4a3bb9=new Map();for(const _0x44d7eb of _0x14d779)_0x44d7eb[_0x288a6a]?_0x14d786&&(_0x13fc36++,_0x14d786=!0x1):(_0x13fc36++,_0x14d786=!0x0),_0x4a3bb9[_0x41a8('0xa6')](_0x44d7eb['id'],_0x13fc36);for(let _0x66a3b1=0x0;_0x66a3b1<_0x14d779['length'];_0x66a3b1++){if(_0x41a8('0x95')==_0x288a6a&&_0x14d779[_0x66a3b1][_0x41a8('0xa3')]||_0x41a8('0xa3')==_0x288a6a&&_0x14d779[_0x66a3b1][_0x41a8('0x95')])continue;if('text'==_0x14d779[_0x66a3b1][_0x41a8('0xa7')]){_0x14d779[_0x66a3b1][_0x41a8('0x58')]=0x0;continue;}const _0x22aa5e=_0x4a3bb9[_0x41a8('0x91')](_0x14d779[_0x66a3b1][_0x41a8('0xef')]),_0x14aa0b=_0x4a3bb9['get'](_0x14d779[_0x66a3b1]['id']);_0x14d779[_0x66a3b1][_0x41a8('0x58')]=_0x22aa5e-_0x14aa0b;}}[_0x41a8('0xf5')](_0x599b46,_0x4c6063,_0x514b84=!0x1){const _0x57512d=[];let _0xe121fe=this[_0x41a8('0x85')][_0x41a8('0xb4')](_0x599b46),_0x2d223a=this[_0x41a8('0x85')]['getIndex'](_0x4c6063);for(-0x1==_0x2d223a&&(_0x2d223a=this['repository']['_revisions'][_0x41a8('0x51')],_0x514b84=!0x1);_0xe121fe<_0x2d223a;)_0x57512d[_0x41a8('0x9a')](this[_0x41a8('0x85')][_0x41a8('0xca')](_0xe121fe)),_0xe121fe++;return _0x514b84&&_0x57512d['push'](this[_0x41a8('0x85')][_0x41a8('0xca')](_0xe121fe)),_0x57512d;}[_0x41a8('0x7a')](_0x4a55d5,_0x4f6e54,_0x41dcb4,_0x168335){const _0x3651fd=this[_0x41a8('0x4c')][_0x41a8('0xea')][_0x41a8('0x1c')];let _0x599f28=_0x4f6e54;for(;_0x4a55d5[_0x599f28]&&_0x4a55d5[_0x599f28][_0x41a8('0xa3')];)_0x599f28++;let _0x2ec2cc=_0x168335;for(;_0x41dcb4[_0x2ec2cc]&&_0x41dcb4[_0x2ec2cc][_0x41a8('0x95')];)_0x2ec2cc++;_0x561409(_0x4a55d5,_0x4f6e54,_0x599f28),_0x561409(_0x41dcb4,_0x168335,_0x2ec2cc);const _0x3753e2=_0x41dcb4[_0x41a8('0x8c')](_0x168335,_0x2ec2cc)[_0x41a8('0x30')](_0x4a55d5[_0x41a8('0x8c')](_0x4f6e54,_0x599f28));return _0x3753e2[_0x41a8('0x48')]((_0x5e44cc,_0x51e843)=>_0x5e44cc['side']!=_0x51e843[_0x41a8('0x39')]?_0x5e44cc[_0x41a8('0x39')]-_0x51e843['side']:_0x5e44cc['level']!=_0x51e843['level']?_0x5e44cc[_0x41a8('0x2f')]-_0x51e843[_0x41a8('0x2f')]:_0x5e44cc[_0x41a8('0x58')]!=_0x51e843[_0x41a8('0x58')]?_0x51e843['distance']-_0x5e44cc[_0x41a8('0x58')]:!!_0x5e44cc[_0x41a8('0xa3')]!=!!_0x51e843[_0x41a8('0xa3')]?-0x1==_0x5e44cc['side']||0x0==_0x5e44cc[_0x41a8('0x39')]?_0x5e44cc[_0x41a8('0xa3')]?-0x1:0x1:_0x5e44cc[_0x41a8('0xa3')]?0x1:-0x1:_0x5e44cc[_0x41a8('0x45')]-_0x51e843[_0x41a8('0x45')]),{'commonTape':_0x3753e2,'iEnd':_0x599f28,'jEnd':_0x2ec2cc};function _0x561409(_0x4917f3,_0x4e4f2b,_0x4ec33c){let _0x3a6942=-0x1,_0x37e980=Number['POSITIVE_INFINITY'],_0x294aba=!0x0;for(let _0x28206b=_0x4e4f2b;_0x28206b<_0x4ec33c;_0x28206b++)if(_0x3651fd[_0x41a8('0xd')](_0x4917f3[_0x28206b][_0x41a8('0x22')])||(_0x294aba=!0x1),_0x4917f3[_0x28206b][_0x41a8('0x22')]['startIndex']<_0x4e4f2b&&(_0x3a6942=_0x28206b),_0x4917f3[_0x28206b][_0x41a8('0x22')][_0x41a8('0x9')]>=_0x4ec33c){_0x37e980=_0x28206b;break;}_0x294aba&&(_0x3a6942=_0x4ec33c-0x1);for(let _0x4eafe0=_0x4e4f2b;_0x4eafe0<_0x4ec33c;_0x4eafe0++)_0x4917f3[_0x4eafe0][_0x41a8('0x39')]=_0x4eafe0<=_0x3a6942?-0x1:_0x4eafe0<_0x37e980?0x0:0x1,_0x4917f3[_0x4eafe0][_0x41a8('0x45')]=_0x4eafe0;let _0xb9b61c=0x0;for(let _0x2cac0a=_0x4e4f2b;_0x2cac0a<=_0x3a6942;_0x2cac0a++)0x0==_0x4917f3[_0x2cac0a][_0x41a8('0x58')]?_0x4917f3[_0x2cac0a][_0x41a8('0x2f')]=_0xb9b61c:(_0xb9b61c++,_0x4917f3[_0x2cac0a]['level']=_0xb9b61c,_0xb9b61c++);for(let _0x1c2e63=_0x4e4f2b;_0x1c2e63<_0x4ec33c;_0x1c2e63++)0x0==_0x4917f3[_0x1c2e63][_0x41a8('0x39')]&&(_0x4917f3[_0x1c2e63][_0x41a8('0x2f')]=_0xb9b61c);_0xb9b61c=0x0;for(let _0x233bd1=_0x4ec33c-0x1;_0x233bd1>=_0x37e980;_0x233bd1--)0x0==_0x4917f3[_0x233bd1][_0x41a8('0x58')]?_0x4917f3[_0x233bd1][_0x41a8('0x2f')]=_0xb9b61c:(_0xb9b61c--,_0x4917f3[_0x233bd1][_0x41a8('0x2f')]=_0xb9b61c,_0xb9b61c--);}}[_0x41a8('0xf4')](_0x426630){const _0x2187fb=new Map(),_0x10bddf=this['editor'][_0x41a8('0xea')][_0x41a8('0x1c')];for(let _0x3ef904=0x1;_0x3ef904<_0x426630[_0x41a8('0x51')];_0x3ef904++){let _0x322987,_0x8d2b02,_0x303ff6;const _0x40f90d=_0x426630[_0x3ef904],_0x56f811=_0x426630[_0x3ef904-0x1];if('text'==_0x40f90d[_0x41a8('0xa7')])continue;if(_0x40f90d[_0x41a8('0xa7')]!=_0x56f811[_0x41a8('0xa7')])continue;if(!_0x10bddf['isBlock'](_0x56f811[_0x41a8('0x22')])||_0x10bddf[_0x41a8('0xdf')](_0x56f811['item']))continue;if(!_0x10bddf[_0x41a8('0x80')](_0x40f90d['item'])||_0x10bddf[_0x41a8('0xdf')](_0x40f90d[_0x41a8('0x22')]))continue;if((_0x426630[_0x3ef904][_0x41a8('0xa3')]||_0x426630[_0x3ef904]['isAddSuggestion'])&&_0x426630[_0x3ef904-0x1][_0x41a8('0x95')])_0x322987=_0x426630[_0x3ef904],_0x8d2b02=_0x426630[_0x3ef904-0x1],_0x303ff6=_0x3ef904-0x1;else{if(!_0x426630[_0x3ef904][_0x41a8('0x95')]||!_0x426630[_0x3ef904-0x1][_0x41a8('0xa3')]&&!_0x426630[_0x3ef904-0x1]['isAddSuggestion'])continue;_0x322987=_0x426630[_0x3ef904-0x1],_0x8d2b02=_0x426630[_0x3ef904],_0x303ff6=_0x3ef904;}const _0x14b19d=_0x322987[_0x41a8('0x2f')]==_0x8d2b02[_0x41a8('0x2f')],_0x58d8d2=Math[_0x41a8('0x4b')](_0x322987[_0x41a8('0x2f')])<Math['abs'](_0x8d2b02[_0x41a8('0x2f')])&&0x0==_0x8d2b02[_0x41a8('0x58')];(_0x14b19d||_0x58d8d2)&&(_0x2187fb[_0x41a8('0xa6')](_0x8d2b02['id'],_0x322987['id']),_0x426630[_0x41a8('0x35')](_0x303ff6,0x1),_0x3ef904--,_0x322987[_0x41a8('0xa3')]=!0x1);}for(let _0x1af1e6=0x0;_0x1af1e6<_0x426630['length'];_0x1af1e6++)_0x2187fb['has'](_0x426630[_0x1af1e6][_0x41a8('0xef')])&&(_0x426630[_0x1af1e6]['pairId']=_0x2187fb['get'](_0x426630[_0x1af1e6][_0x41a8('0xef')]));}[_0x41a8('0x59')](_0x313742){const _0x1288e0=new Set(_0x313742[_0x41a8('0xf')](_0x4c5cf6=>_0x4c5cf6['id']));for(let _0x23d486=0x0;_0x23d486<_0x313742[_0x41a8('0x51')];_0x23d486++)_0x1288e0[_0x41a8('0x37')](_0x313742[_0x23d486]['pairId'])||0x0==_0x313742[_0x23d486][_0x41a8('0x58')]||(_0x313742[_0x23d486]['isIncorrect']=!0x0);return _0x313742[_0x41a8('0xe')](_0x5ced61=>!_0x5ced61[_0x41a8('0x17')]);}[_0x41a8('0x6d')](_0xfce22a){const _0x415fc3=new Set();for(let _0x298913=0x0;_0x298913<_0xfce22a[_0x41a8('0x51')];_0x298913++){if(_0x415fc3['has'](_0xfce22a[_0x298913]['id'])&&_0xfce22a[_0x298913][_0x41a8('0x95')]&&(_0xfce22a[_0x298913]['isIncorrect']=!0x0),_0xfce22a[_0x298913][_0x41a8('0x17')])continue;if(0x0==_0xfce22a[_0x298913]['distance'])continue;if('elementStart'!=_0xfce22a[_0x298913][_0x41a8('0xa7')])continue;if(null==_0xfce22a[_0x298913][_0x41a8('0xef')])continue;let _0xe951e7=_0x298913+0x1,_0x8cb93f=0x0;for(;_0xfce22a[_0xe951e7]['id']!=_0xfce22a[_0x298913][_0x41a8('0xef')];)_0x41a8('0x3d')==_0xfce22a[_0xe951e7][_0x41a8('0xa7')]?_0x8cb93f++:_0x41a8('0xa2')==_0xfce22a[_0xe951e7]['type']&&_0x8cb93f--,_0xe951e7++;if(0x0!=_0x8cb93f){if(_0xfce22a[_0x298913][_0x41a8('0x95')])_0xfce22a[_0x298913][_0x41a8('0x17')]=!0x0;else for(;_0xe951e7!=_0x298913;)_0xfce22a[_0xe951e7][_0x41a8('0x95')]&&0x0!=_0xfce22a[_0xe951e7][_0x41a8('0x58')]&&(_0xfce22a[_0xe951e7][_0x41a8('0x17')]=!0x0,_0x415fc3['add'](_0xfce22a[_0xe951e7][_0x41a8('0xef')])),_0xe951e7--;}}return _0xfce22a['filter'](_0x1db995=>!_0x1db995[_0x41a8('0x17')]);}[_0x41a8('0xd2')](_0x5679d5){const _0x3446f6=this[_0x41a8('0x4c')][_0x41a8('0xea')]['schema'];for(let _0x5af2b3=0x0;_0x5af2b3<_0x5679d5[_0x41a8('0x51')];_0x5af2b3++){if(!(_0x5679d5[_0x5af2b3][_0x41a8('0xa3')]||_0x5679d5[_0x5af2b3][_0x41a8('0xbc')]||_0x5679d5[_0x5af2b3][_0x41a8('0x95')]||_0x5679d5[_0x5af2b3][_0x41a8('0xb6')]))continue;if(0x0==_0x5679d5[_0x5af2b3][_0x41a8('0x58')])continue;const _0x5220ff=_0x5679d5[_0x5af2b3][_0x41a8('0x22')];_0x3446f6['isBlock'](_0x5220ff)||_0x3446f6[_0x41a8('0xdf')](_0x5220ff)||(_0x5679d5[_0x5af2b3][_0x41a8('0xa3')]&&delete _0x5679d5[_0x5af2b3][_0x41a8('0xa3')],_0x5679d5[_0x5af2b3][_0x41a8('0xbc')]&&delete _0x5679d5[_0x5af2b3][_0x41a8('0xbc')],_0x5679d5[_0x5af2b3]['isRemoveSuggestion']&&delete _0x5679d5[_0x5af2b3][_0x41a8('0xb6')],_0x5679d5[_0x5af2b3][_0x41a8('0x95')]&&(_0x5679d5[_0x5af2b3]['isIncorrect']=!0x0));}return _0x5679d5[_0x41a8('0xe')](_0x5abfe8=>!_0x5abfe8[_0x41a8('0x17')]);}[_0x41a8('0xba')](_0x1b5c84,_0x348e71){const _0x144a6e=new _0x330fba(),_0x2106f2=[],_0x4a6209=new Map(),_0x5c77b2=this[_0x41a8('0x4c')][_0x41a8('0xea')],_0xfeae64=_0x5c77b2[_0x41a8('0x1c')],_0x4edee9=[_0x144a6e],_0xb97bf={},_0x28e723={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x483d7a=null;const _0x1082e0=[0x0];for(let _0x1e455c=0x0;_0x1e455c<_0x1b5c84[_0x41a8('0x51')];_0x1e455c++){let _0x16cd4a,_0x370f74;if(_0x41a8('0x3d')===_0x1b5c84[_0x1e455c][_0x41a8('0xa7')]){_0x16cd4a=_0x5c77b2[_0x41a8('0x4e')](_0x144a6e,_0x1082e0);const _0x3dfe0c=new _0x674015(_0x1b5c84[_0x1e455c]['item'][_0x41a8('0x5c')],_0x1b5c84[_0x1e455c]['item'][_0x41a8('0x43')]());_0x4edee9[0x0][_0x41a8('0x75')](_0x3dfe0c),_0x1082e0[_0x41a8('0x9a')](0x0),_0x4edee9[_0x41a8('0xc1')](_0x3dfe0c),_0x370f74=_0x5c77b2[_0x41a8('0x4e')](_0x144a6e,_0x1082e0),_0x483d7a=null;}else{if(_0x41a8('0xa2')===_0x1b5c84[_0x1e455c][_0x41a8('0xa7')])_0x4edee9['shift'](),_0x16cd4a=_0x5c77b2['createPositionFromPath'](_0x144a6e,_0x1082e0),_0x1082e0[_0x41a8('0x99')](),_0x1082e0[_0x1082e0['length']-0x1]++,_0x370f74=_0x5c77b2['createPositionFromPath'](_0x144a6e,_0x1082e0),_0x483d7a=null;else{if(_0x16cd4a=_0x5c77b2[_0x41a8('0x4e')](_0x144a6e,_0x1082e0),_0x483d7a&&_0xecb66e(_0x483d7a,_0x1b5c84[_0x1e455c][_0x41a8('0x22')]))_0x483d7a[_0x41a8('0xe6')]+=_0x1b5c84[_0x1e455c][_0x41a8('0x22')]['data'];else{const _0x423df3=new _0x13f0e6(_0x1b5c84[_0x1e455c][_0x41a8('0x22')][_0x41a8('0xac')],_0x1b5c84[_0x1e455c][_0x41a8('0x22')][_0x41a8('0x43')]());_0x4edee9[0x0][_0x41a8('0x75')](_0x423df3),_0x483d7a=_0x423df3;}_0x1082e0[_0x1082e0[_0x41a8('0x51')]-0x1]+=_0x1b5c84[_0x1e455c][_0x41a8('0x22')][_0x41a8('0xdd')],_0x370f74=_0x5c77b2[_0x41a8('0x4e')](_0x144a6e,_0x1082e0);}}for(const _0x95364 of _0x1b5c84[_0x1e455c][_0x41a8('0xf8')])_0x4a6209[_0x41a8('0xa6')](_0x95364,{'start':_0x16cd4a,'end':null});_0x1cf174(_0x41a8('0xb6'),_0x1e455c,_0x16cd4a,_0x370f74),_0x1cf174(_0x41a8('0xbc'),_0x1e455c,_0x16cd4a,_0x370f74),_0x1cf174(_0x41a8('0x95'),_0x1e455c,_0x16cd4a,_0x370f74),_0x1cf174(_0x41a8('0xa3'),_0x1e455c,_0x16cd4a,_0x370f74);for(const _0x423346 of _0x1b5c84[_0x1e455c]['markersEnd']){_0x4a6209['get'](_0x423346)[_0x41a8('0x41')]=_0x370f74;}}for(const [_0x34fefb,_0x46f3fd]of _0x4a6209){const _0x2202c2=this[_0x41a8('0x4c')][_0x41a8('0xea')]['createRange'](_0x46f3fd[_0x41a8('0xbf')],_0x46f3fd[_0x41a8('0x41')]);_0x144a6e[_0x41a8('0xf1')][_0x41a8('0xa6')](_0x34fefb,_0x2202c2);}return _0x2106f2['sort']((_0x402b48,_0x3c5f3b)=>{const _0x474ac6=_0x144a6e['markers'][_0x41a8('0x91')](_0x41a8('0x25')+_0x402b48['id']),_0x259634=_0x144a6e[_0x41a8('0xf1')]['get'](_0x41a8('0x25')+_0x3c5f3b['id']);return _0x474ac6[_0x41a8('0xbf')][_0x41a8('0x90')](_0x259634['start'])?-0x1:_0x474ac6[_0x41a8('0xbf')]['isAfter'](_0x259634[_0x41a8('0xbf')])?0x1:_0x474ac6[_0x41a8('0x41')][_0x41a8('0x90')](_0x259634[_0x41a8('0x41')])?-0x1:_0x474ac6['end'][_0x41a8('0x18')](_0x259634[_0x41a8('0x41')])?0x1:_0x41a8('0x1')===_0x402b48[_0x41a8('0xa7')]?-0x1:0x1;}),{'root':_0x144a6e,'changes':_0x2106f2};function _0x1cf174(_0x57c401,_0x45cc94,_0x24038b,_0x240a90){const _0x5b21bf=!!_0x1b5c84[_0x45cc94][_0x57c401],_0x5eb122=_0x5b21bf?_0x1b5c84[_0x45cc94][_0x57c401]['userId']:null,_0x5e94ed=_0x45cc94===_0x1b5c84[_0x41a8('0x51')]-0x1,_0x411473=_0x28e723[_0x57c401][0x0],_0x3ded3d=_0xfeae64[_0x41a8('0x54')](_0x1b5c84[_0x45cc94]['item']);!_0xb97bf[_0x57c401]&&_0x5b21bf?_0xb97bf[_0x57c401]={'start':_0x24038b,'tapeItem':_0x1b5c84[_0x45cc94],'userId':_0x5eb122,'type':_0x57c401}:_0xb97bf[_0x57c401]&&!_0x5b21bf?(_0xb97bf[_0x57c401][_0x41a8('0x41')]=_0x24038b,_0x4c0191(_0xb97bf[_0x57c401]),_0xb97bf[_0x57c401]=null):_0xb97bf[_0x57c401]&&_0x5b21bf&&_0xb97bf[_0x57c401]['userId']!==_0x5eb122&&(_0xb97bf[_0x57c401][_0x41a8('0x41')]=_0x24038b,_0x411473&&_0x411473['userId']===_0xb97bf[_0x57c401][_0x41a8('0x4a')]||_0x4c0191(_0xb97bf[_0x57c401]),_0xb97bf[_0x57c401]={'start':_0x24038b,'tapeItem':_0x1b5c84[_0x45cc94],'userId':_0x5eb122,'type':_0x57c401}),_0xb97bf[_0x57c401]&&_0x3ded3d&&(_0x41a8('0x3d')!==_0x1b5c84[_0x45cc94]['type']||_0x411473&&_0x411473[_0x41a8('0x4a')]===_0x5eb122||_0x28e723[_0x57c401][_0x41a8('0xc1')]({'userId':_0x5eb122,'object':_0x1b5c84[_0x45cc94][_0x41a8('0x22')],'change':_0xb97bf[_0x57c401]}),_0x41a8('0xa2')===_0x1b5c84[_0x45cc94]['type']&&_0x411473&&_0x411473['object']===_0x1b5c84[_0x45cc94][_0x41a8('0x22')]&&(_0x28e723[_0x57c401][_0x41a8('0x57')](),_0xb97bf[_0x57c401]=_0x411473[_0x41a8('0x93')])),_0xb97bf[_0x57c401]&&_0x5e94ed&&(_0xb97bf[_0x57c401]['end']=_0x240a90,_0x4c0191(_0xb97bf[_0x57c401]),_0xb97bf[_0x57c401]=null);}function _0x4c0191({start:_0x1117b6,end:_0x3da87d,tapeItem:_0x39ec46,userId:_0x2ee8d3,type:_0x508438}){const _0x434a33=_0x39ec46['item'],_0x5c9fe3=_0x5c77b2[_0x41a8('0x1c')][_0x41a8('0x80')](_0x434a33)&&!_0x5c77b2[_0x41a8('0x1c')][_0x41a8('0xdf')](_0x434a33),_0x2d7ddc=_0x1117b6[_0x41a8('0xb')]==_0x3da87d[_0x41a8('0x2b')]&&_0x3da87d[_0x41a8('0x23')];if(_0x5c9fe3&&_0x2d7ddc)return;const _0x16c338=_0x5c77b2['createRange'](_0x1117b6,_0x3da87d),_0x7293c6=_0x348e71[_0x41a8('0x91')](_0x2ee8d3),_0x403113=new _0x6fe6b0({'author':_0x7293c6,'type':_0x41a8('0xa3')==_0x508438||_0x41a8('0xbc')==_0x508438?_0x41a8('0x1'):_0x41a8('0xbb'),'data':{'isSuggestion':'isAddSuggestion'==_0x508438||'isRemoveSuggestion'==_0x508438},'createdAt':new Date()});_0x2106f2['push'](_0x403113),_0x144a6e[_0x41a8('0xf1')]['set'](_0x41a8('0x25')+_0x403113['id'],_0x16c338);}function _0xecb66e(_0x19c1fb,_0x4c7594){const _0x38b1dc=_0x19c1fb[_0x41a8('0x43')](),_0x15d333=_0x4c7594[_0x41a8('0x43')]();for(const _0x20602d of _0x38b1dc){if(_0x20602d[0x1]!==_0x4c7594['getAttribute'](_0x20602d[0x0]))return!0x1;_0x15d333[_0x41a8('0xc6')]();}return _0x15d333['next']()[_0x41a8('0xcd')];}}[_0x41a8('0xc3')](){this[_0x41a8('0x4c')][_0x41a8('0x8d')][_0x41a8('0x64')]('upcast')[_0x41a8('0xc7')]({'view':_0x41a8('0xa1')}),this[_0x41a8('0x4c')][_0x41a8('0x8d')]['for'](_0x41a8('0x89'))[_0x41a8('0x67')]({'model':_0x41a8('0xa1'),'view':_0x29f9a0=>{const _0x308599=_0x29f9a0[_0x41a8('0x88')][_0x41a8('0x32')](':')[0x1],_0x4e8ae7=this[_0x41a8('0x13')](_0x308599);if(!_0x4e8ae7)return null;const _0x4b2b18=_0x41a8('0x1')==_0x4e8ae7['type']?_0x41a8('0x66'):_0x41a8('0x96'),_0x5250eb=[_0x41a8('0x1b'),_0x41a8('0xa4')+_0x4b2b18];return _0x4e8ae7['data'][_0x41a8('0x61')]&&_0x5250eb[_0x41a8('0x9a')](_0x41a8('0xa4')+_0x4b2b18+'-new'),this['activeChange']==_0x4e8ae7&&_0x5250eb[_0x41a8('0x9a')](_0x41a8('0x2c')),{'classes':_0x5250eb,'attributes':{'data-change-id':_0x308599}};}}),this[_0x41a8('0x4c')][_0x41a8('0x8d')][_0x41a8('0x64')](_0x41a8('0x49'))[_0x41a8('0x1')](_0x4643cb=>{_0x4643cb['on']('element:pre',(_0x5c143c,_0xba4ccd,_0x1cfe2b)=>{const _0x4470d7=_0xba4ccd[_0x41a8('0x6b')][_0x41a8('0x104')](0x0);if(!_0x4470d7||!_0x4470d7['is']('element','code'))return;if(!_0x1cfe2b['consumable']['consume'](_0x4470d7,{'attributes':['vid_start',_0x41a8('0xda')]}))return;const _0x41c4f7=_0xba4ccd[_0x41a8('0x6c')][_0x41a8('0xbf')][_0x41a8('0xb')];_0x1cfe2b[_0x41a8('0x69')][_0x41a8('0xf2')](_0x41a8('0x52'),_0x4470d7[_0x41a8('0xa9')](_0x41a8('0x52')),_0x41c4f7),_0x1cfe2b[_0x41a8('0x69')][_0x41a8('0xf2')](_0x41a8('0xda'),_0x4470d7[_0x41a8('0xa9')]('vid_end'),_0x41c4f7);},{'priority':'low'});}),this[_0x41a8('0x4c')][_0x41a8('0x8d')][_0x41a8('0x64')](_0x41a8('0x49'))[_0x41a8('0x1')](_0x29fd89=>{_0x29fd89['on'](_0x41a8('0x62'),(_0x5c29c1,_0x2e033b,_0x2198eb)=>{if(!_0x2198eb[_0x41a8('0x60')]['consume'](_0x2e033b[_0x41a8('0x6b')],{'attributes':[_0x41a8('0x52'),_0x41a8('0xda')]}))return;if(_0x2e033b[_0x41a8('0x6c')][_0x41a8('0xe7')])return;const _0x247537=_0x2e033b[_0x41a8('0x6c')][_0x41a8('0xbf')][_0x41a8('0xb')];_0x247537[_0x41a8('0x50')](_0x41a8('0x52'))||_0x247537[_0x41a8('0x50')]('vid')||(_0x2198eb['writer'][_0x41a8('0xf2')]('vid_start',_0x2e033b['viewItem'][_0x41a8('0xa9')](_0x41a8('0x52')),_0x247537),_0x2198eb[_0x41a8('0x69')][_0x41a8('0xf2')](_0x41a8('0xda'),_0x2e033b[_0x41a8('0x6b')][_0x41a8('0xa9')](_0x41a8('0xda')),_0x247537));},{'priority':_0x41a8('0x56')});}),this[_0x41a8('0x4c')][_0x41a8('0x8d')][_0x41a8('0x64')](_0x41a8('0x49'))[_0x41a8('0x8b')]({'view':{'name':_0x41a8('0x65'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x181c74=>_0x181c74['getAttribute'](_0x41a8('0xb8'))}}),this[_0x41a8('0x4c')][_0x41a8('0xea')][_0x41a8('0x1c')]['on'](_0x41a8('0x7c'),(_0x37a354,[,_0x65d9d])=>{[_0x41a8('0x52'),'vid_end','vid'][_0x41a8('0xa')](_0x65d9d)&&(_0x37a354['return']=!0x0,_0x37a354[_0x41a8('0x1f')]());},{'priority':_0x41a8('0xaf')}),this[_0x41a8('0x4c')][_0x41a8('0x8d')][_0x41a8('0x64')](_0x41a8('0xab'))[_0x41a8('0x1')](_0x2cfdb1=>{_0x2cfdb1['on'](_0x41a8('0xb7'),(_0x16dc13,_0x251d83,_0x3ad858)=>{if('\x20'!=_0x251d83[_0x41a8('0x22')][_0x41a8('0xac')]||_0x251d83[_0x41a8('0x22')][_0x41a8('0x2b')][_0x41a8('0xe5')]>0x1)return;if(!_0x3ad858[_0x41a8('0x60')][_0x41a8('0x33')](_0x251d83[_0x41a8('0x22')],_0x16dc13[_0x41a8('0x5c')]))return;const _0x2d4932=_0x3ad858[_0x41a8('0x69')],_0x3a6f58=_0x3ad858[_0x41a8('0x9e')][_0x41a8('0x20')](_0x251d83[_0x41a8('0x8a')]);_0x2d4932['wrap'](_0x3a6f58,_0x2d4932[_0x41a8('0x2d')](_0x41a8('0x65')));});}),this[_0x41a8('0x4c')][_0x41a8('0x8d')][_0x41a8('0x64')](_0x41a8('0xab'))[_0x41a8('0x94')]({'model':_0x41a8('0xa1')}),this[_0x41a8('0x4c')][_0x41a8('0xe0')][_0x41a8('0xc5')]['on']('addMarker:revision',function(_0x43f569){const _0xed3d02=_0x43f569['plugins'][_0x41a8('0x91')](_0x41a8('0xe1'));return(_0x2af29c,_0x46b929,_0x5e6baa)=>{const _0x1d8e7a=_0x46b929[_0x41a8('0x88')][_0x41a8('0x32')](':')[0x1],_0xb3d5c=_0xed3d02[_0x41a8('0x13')](_0x1d8e7a);if(!_0xb3d5c)return null;const _0x2a78ab=_0x41a8('0x1')==_0xb3d5c[_0x41a8('0xa7')]?_0x41a8('0x32'):_0x41a8('0x97');if(!_0x5e6baa[_0x41a8('0x60')][_0x41a8('0x14')](_0x46b929[_0x41a8('0xd1')],_0x2af29c[_0x41a8('0x5c')]))return;const _0x295022=_0x46b929[_0x41a8('0xd1')][_0x41a8('0xb0')](),_0x45e332=_0x46b929['markerRange']['start'],_0x5ad2c5=_0x43f569[_0x41a8('0xea')][_0x41a8('0x1c')];let _0x179ee4=null,_0x463b5d=null,_0x2cb3a8=!0x1,_0x10f585=!0x1;for(const _0x566ac1 of _0x295022){const _0x212206=_0x566ac1[_0x41a8('0x22')];_0x2cb3a8=_0x2cb3a8||_0x5ad2c5[_0x41a8('0xc2')](_0x212206);const _0x1a97b4=_0x5e6baa[_0x41a8('0x9e')][_0x41a8('0x86')](_0x212206);if(_0x1a97b4&&_0x1a97b4[_0x41a8('0x106')](_0x41a8('0x53')))return;_0x41a8('0xa2')==_0x566ac1[_0x41a8('0xa7')]&&(_0x5ad2c5[_0x41a8('0x80')](_0x212206)&&!_0x5ad2c5[_0x41a8('0xdf')](_0x212206)&&(_0x212206['nextSibling']||_0x45e332[_0x41a8('0x55')]?_0x179ee4&&_0x179ee4[_0x41a8('0x2b')]==_0x212206||(_0x179ee4=_0x212206,_0x440500(_0x566ac1['previousPosition']),_0x10f585=!0x0):_0x463b5d=_0x463b5d||_0x566ac1[_0x41a8('0x83')]));}function _0x440500(_0x50613b){const _0x2cd3b5=_0x5e6baa[_0x41a8('0x69')][_0x41a8('0x3')]('span',{'class':'ck-suggestion-marker-'+_0x2a78ab}),_0x449527=_0x5e6baa[_0x41a8('0x9e')][_0x41a8('0xd4')](_0x50613b);_0xb3d5c['data']['isSuggestion']&&_0x5e6baa[_0x41a8('0x69')][_0x41a8('0xbe')](_0x41a8('0xa4')+_0x2a78ab+'-new',_0x2cd3b5),_0xed3d02['activeChange']==_0xb3d5c&&_0x5e6baa['writer'][_0x41a8('0xbe')](_0x41a8('0x2c'),_0x2cd3b5),_0x5e6baa['writer'][_0x41a8('0x1e')](_0x449527,_0x2cd3b5),_0x5e6baa[_0x41a8('0x9e')][_0x41a8('0x16')](_0x2cd3b5,_0x46b929[_0x41a8('0x88')]);}_0x2cb3a8||_0x10f585||!_0x463b5d||_0x440500(_0x463b5d);};}(this[_0x41a8('0x4c')]),{'priority':_0x41a8('0xff')}),this[_0x41a8('0x4c')][_0x41a8('0xe0')][_0x41a8('0xc5')]['on'](_0x41a8('0x38'),(_0x4a055f,_0x2a9cb7,_0x44292f)=>{const _0x29dd86=_0x44292f[_0x41a8('0x9e')][_0x41a8('0x6f')](_0x2a9cb7[_0x41a8('0x88')]);if(_0x29dd86)for(const _0x2bdb6f of _0x29dd86)(_0x2bdb6f[_0x41a8('0xe2')](_0x41a8('0xd3'))||_0x2bdb6f['hasClass'](_0x41a8('0xb5')))&&(_0x44292f['mapper'][_0x41a8('0xc')](_0x2bdb6f,_0x2a9cb7[_0x41a8('0x88')]),_0x44292f[_0x41a8('0x69')][_0x41a8('0xbb')](_0x2bdb6f));},{'priority':_0x41a8('0xff')}),this[_0x41a8('0x4c')]['editing'][_0x41a8('0xc5')]['on']('addMarker:revision',(_0x3be21e,_0x59e15e,_0x30e5b1)=>{const _0x3af2f4=_0x59e15e[_0x41a8('0x88')]['split'](':')[0x1],_0x5aa69f=this[_0x41a8('0x13')](_0x3af2f4);if(!_0x5aa69f)return null;const _0x1d9775=_0x41a8('0x1')==_0x5aa69f['type']?_0x41a8('0x32'):_0x41a8('0x97');if(_0x30e5b1[_0x41a8('0x60')][_0x41a8('0x14')](_0x59e15e['markerRange'],_0x3be21e[_0x41a8('0x5c')]))for(const _0x1e1ac7 of _0x59e15e['markerRange'][_0x41a8('0x87')]()){if(!_0x1e1ac7['is'](_0x41a8('0x62'),_0x41a8('0xd5')))continue;const _0x1f911d=_0x30e5b1[_0x41a8('0x69')][_0x41a8('0x3')](_0x41a8('0x65'),{'class':_0x41a8('0xa4')+_0x1d9775}),_0x9f7755=_0x30e5b1['mapper']['toViewPosition'](this[_0x41a8('0x4c')][_0x41a8('0xea')]['createPositionBefore'](_0x1e1ac7));_0x5aa69f[_0x41a8('0xac')][_0x41a8('0x61')]&&_0x30e5b1[_0x41a8('0x69')][_0x41a8('0xbe')]('ck-suggestion-marker-'+_0x1d9775+_0x41a8('0x73'),_0x1f911d),this[_0x41a8('0x28')]==_0x5aa69f&&_0x30e5b1[_0x41a8('0x69')]['addClass']('ck-suggestion-marker--active',_0x1f911d),_0x30e5b1[_0x41a8('0x69')]['insert'](_0x9f7755,_0x1f911d),_0x30e5b1[_0x41a8('0x9e')][_0x41a8('0x16')](_0x1f911d,_0x59e15e['markerName']);}},{'priority':'high'}),this[_0x41a8('0x4c')][_0x41a8('0x8d')]['for']('upcast')['dataToMarker']({'view':_0x41a8('0x7e')}),this[_0x41a8('0x4c')][_0x41a8('0x8d')][_0x41a8('0x64')]('dataDowncast')['markerToData']({'model':_0x41a8('0x7e')}),this[_0x41a8('0x4c')]['conversion'][_0x41a8('0x64')](_0x41a8('0x89'))[_0x41a8('0x67')]({'model':_0x41a8('0x7e'),'view':_0xba4412=>{const _0x54ad5e=_0xba4412[_0x41a8('0x88')]['split'](':')[0x1];return _0x41a8('0x66')!=_0x54ad5e&&_0x41a8('0x96')!=_0x54ad5e?null:{'classes':[_0x41a8('0xe9'),_0x41a8('0x3a')+_0x54ad5e]};}}),this['editor'][_0x41a8('0xe0')][_0x41a8('0xc5')]['on'](_0x41a8('0x2e'),J(this[_0x41a8('0x4c')],_0x41a8('0x97')),{'priority':_0x41a8('0xff')}),this[_0x41a8('0x4c')][_0x41a8('0xe0')][_0x41a8('0xc5')]['on'](_0x41a8('0xb3'),J(this[_0x41a8('0x4c')],_0x41a8('0x32')),{'priority':_0x41a8('0xff')}),this['editor'][_0x41a8('0xe0')][_0x41a8('0xc5')]['on'](_0x41a8('0x7b'),(_0x1c8637,_0x3c04be,_0x4cb6a0)=>{const _0x14302f=_0x4cb6a0['mapper'][_0x41a8('0x6f')](_0x3c04be[_0x41a8('0x88')]);if(_0x14302f)for(const _0x243dba of _0x14302f)_0x243dba['is'](_0x41a8('0x1a'))&&(_0x4cb6a0[_0x41a8('0x9e')][_0x41a8('0xc')](_0x243dba,_0x3c04be[_0x41a8('0x88')]),_0x4cb6a0['writer']['remove'](_0x243dba));},{'priority':_0x41a8('0xff')});}[_0x41a8('0x13')](_0x144af1){return this[_0x41a8('0x4f')][_0x41a8('0x91')](_0x144af1);}[_0x41a8('0x10')](_0x11a801){this[_0x41a8('0x0')]&&this[_0x41a8('0x0')][_0x41a8('0x84')](),this[_0x41a8('0x0')]=new _0x293847(this[_0x41a8('0x4c')][_0x41a8('0xe3')],_0x11a801);const _0x307191=this[_0x41a8('0x4c')][_0x41a8('0xea')][_0x41a8('0xf1')][_0x41a8('0x91')](_0x41a8('0x25')+_0x11a801['id']);return this[_0x41a8('0x0')][_0x41a8('0x11')]=()=>_0x2de57a(this[_0x41a8('0x4c')][_0x41a8('0xe0')],_0x307191),this[_0x41a8('0x0')];}[_0x41a8('0x8')](){this[_0x41a8('0x4c')]['model'][_0x41a8('0xbd')][_0x41a8('0x5f')][_0x41a8('0x74')]('revision'),this['on']('change:activeView',(_0x4e8bb1,_0xed27a,_0x198ec7,_0x55ba1b)=>{_0x55ba1b&&this[_0x41a8('0xd7')][_0x41a8('0xbb')](_0x55ba1b),_0x198ec7&&(this[_0x41a8('0xd7')][_0x41a8('0x1')]({'view':_0x198ec7,'stackId':_0x41a8('0x92'),'position':{'target':_0x198ec7['_target']}}),this[_0x41a8('0xd7')]['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x561dc0,_0x472d7e,_0x2af700,_0x5de54a)=>{this[_0x41a8('0xec')]=_0x2af700?this[_0x41a8('0x10')](_0x2af700):null,this[_0x41a8('0x4c')][_0x41a8('0xea')][_0x41a8('0x93')](()=>{const _0x1a6064=this['editor'][_0x41a8('0xe0')];_0x5de54a&&_0x1a6064[_0x41a8('0xf9')]('revision:'+_0x5de54a['id']),_0x2af700&&_0x1a6064['reconvertMarker'](_0x41a8('0x25')+_0x2af700['id']);});}),this[_0x41a8('0xd0')](this['editor'][_0x41a8('0xe0')][_0x41a8('0xae')]['document'],_0x41a8('0x105'),(_0x3d0a0,_0xd1055)=>{if(this[_0x41a8('0x28')])return;const _0x1c5ca0=this[_0x41a8('0xfb')](_0xd1055[_0x41a8('0x102')]),_0x1dd9cf=this[_0x41a8('0x4f')][_0x41a8('0x91')](_0x1c5ca0);this[_0x41a8('0xec')]=_0x1dd9cf?this[_0x41a8('0x10')](_0x1dd9cf):null;}),this[_0x41a8('0xd0')](this[_0x41a8('0x4c')][_0x41a8('0xe0')][_0x41a8('0xae')][_0x41a8('0xbd')],_0x41a8('0x3e'),(_0x420999,_0x158e09)=>{const _0x4b6f03=this[_0x41a8('0xfb')](_0x158e09[_0x41a8('0x102')]),_0x499a03=this[_0x41a8('0x4f')][_0x41a8('0x91')](_0x4b6f03);this[_0x41a8('0x28')]=_0x499a03||null;});}[_0x41a8('0xfb')](_0x45e9db){do{const _0x31f5a7=_0x45e9db[_0x41a8('0xa9')]('data-change-id');if(_0x31f5a7)return _0x31f5a7;_0x45e9db=_0x45e9db[_0x41a8('0x2b')];}while(_0x45e9db);return null;}[_0x41a8('0xa8')](){this[_0x41a8('0x4c')][_0x41a8('0xea')][_0x41a8('0x93')](_0x3671aa=>{for(const _0x23b2d1 of this[_0x41a8('0x4c')]['model'][_0x41a8('0xf1')])_0x3671aa[_0x41a8('0xd6')](_0x23b2d1);});}}function J(_0x582b1a,_0x4fe015){return(_0x311d83,_0x4f102e,_0x160e24)=>{if(!_0x160e24[_0x41a8('0x60')][_0x41a8('0x14')](_0x4f102e[_0x41a8('0xd1')],_0x311d83[_0x41a8('0x5c')]))return;const _0x42e4b6=_0x4f102e['markerRange'][_0x41a8('0xb0')](),_0x82fd4=_0x4f102e[_0x41a8('0xd1')][_0x41a8('0xbf')],_0x47f59c=_0x582b1a[_0x41a8('0xea')][_0x41a8('0x1c')];let _0x5ec57a=null,_0x3bbac5=null,_0x2c4a71=!0x1,_0x58c271=!0x1;for(const _0x2e1b4e of _0x42e4b6){const _0x2e80f1=_0x2e1b4e[_0x41a8('0x22')];_0x2c4a71=_0x2c4a71||_0x47f59c[_0x41a8('0xc2')](_0x2e80f1);const _0x53887c=_0x160e24['mapper']['toViewElement'](_0x2e80f1);if(_0x53887c&&_0x53887c[_0x41a8('0x106')]('addHighlight'))return;'elementEnd'==_0x2e1b4e['type']&&(_0x47f59c['isBlock'](_0x2e80f1)&&!_0x47f59c['isLimit'](_0x2e80f1)&&(_0x2e80f1[_0x41a8('0x21')]||_0x82fd4[_0x41a8('0x55')]?_0x5ec57a&&_0x5ec57a[_0x41a8('0x2b')]==_0x2e80f1||(_0x5ec57a=_0x2e80f1,_0x5776b4(_0x2e1b4e['previousPosition']),_0x58c271=!0x0):_0x3bbac5=_0x3bbac5||_0x2e1b4e[_0x41a8('0x83')]));}function _0x5776b4(_0x4bb8e9){const _0x543f94=_0x160e24[_0x41a8('0x9e')][_0x41a8('0xd4')](_0x4bb8e9),_0x1af61d=_0x160e24[_0x41a8('0x69')][_0x41a8('0x3')](_0x41a8('0x65'),{'class':_0x41a8('0x3a')+_0x4fe015});_0x160e24[_0x41a8('0x69')]['insert'](_0x543f94,_0x1af61d),_0x160e24[_0x41a8('0x9e')][_0x41a8('0x16')](_0x1af61d,_0x4f102e[_0x41a8('0x88')]);}_0x2c4a71||_0x58c271||!_0x3bbac5||_0x5776b4(_0x3bbac5);};}_0x58c6e6(R,_0x168b9d);class L extends _0x424868{constructor(_0x2eb0ec){super(_0x2eb0ec);const _0x2b506f=_0x2eb0ec[_0x41a8('0x101')][_0x41a8('0x91')](R);this['stopListening'](_0x2eb0ec,_0x41a8('0xfe')),this[_0x41a8('0x7d')](_0x41a8('0x100')),this['listenTo'](_0x2b506f,_0x41a8('0xc8'),()=>this['refresh']()),this[_0x41a8('0xd0')](_0x2b506f,'change:isEnabled',()=>this[_0x41a8('0x4')]());}[_0x41a8('0x5a')](){const _0x50571d=this['editor'],_0x2e9674=_0x50571d[_0x41a8('0x101')][_0x41a8('0x91')](R),_0x47c67a=_0x2e9674['isReady']?_0x2e9674[_0x41a8('0x1d')]['newRevisionId']:null;_0x50571d[_0x41a8('0x26')][_0x41a8('0x91')](_0x41a8('0x44'))[_0x41a8('0xde')](_0x47c67a);}['refresh'](){const {isReady:_0xb6bc98,isEnabled:_0x353f45}=this[_0x41a8('0x4c')][_0x41a8('0x101')][_0x41a8('0x91')](R);this['isEnabled']=_0xb6bc98&&_0x353f45;}}class q extends _0x424868{constructor(_0x319097,{direction:_0x3fa144}){super(_0x319097);const _0x432097=_0x319097[_0x41a8('0x101')][_0x41a8('0x91')](R);this[_0x41a8('0x5')](_0x319097,_0x41a8('0xfe')),this[_0x41a8('0x7d')](_0x41a8('0x100')),this['_step']='forward'===_0x3fa144?0x1:-0x1,this[_0x41a8('0xd0')](_0x432097,'change:isReady',()=>this[_0x41a8('0x4')]()),this[_0x41a8('0xd0')](_0x432097,_0x41a8('0x5e'),()=>this[_0x41a8('0x4')]());}[_0x41a8('0x5a')](){const _0x216f97=this[_0x41a8('0x4c')],_0x28ad93=_0x216f97[_0x41a8('0x101')][_0x41a8('0x91')](R),{isNavigationMode:_0xbfff61,currentChangeNumber:_0x51889c}=_0x28ad93;_0x28ad93[_0x41a8('0x28')]=_0xbfff61?_0x28ad93[_0x41a8('0x1d')]['changes']['get'](_0x51889c+this[_0x41a8('0x6e')]):_0x28ad93[_0x41a8('0x1d')][_0x41a8('0xe4')][_0x41a8('0xb1')];const _0x41fe15=_0x216f97[_0x41a8('0xea')][_0x41a8('0xf1')][_0x41a8('0x91')](_0x41a8('0x25')+_0x28ad93[_0x41a8('0x28')]['id']),_0x150ca6=_0x2de57a(_0x216f97['editing'],_0x41fe15);_0x36c36c({'target':_0x150ca6,'viewportOffset':0x28});}[_0x41a8('0x4')](){const {isNavigationMode:_0xe4d681,currentChangeNumber:_0x5a1de8,numberOfChanges:_0x517edc,isReady:_0x45d8b3,isEnabled:_0x2288bb}=this[_0x41a8('0x4c')][_0x41a8('0x101')][_0x41a8('0x91')](R);this[_0x41a8('0xd9')]=!!(_0x2288bb&&_0x45d8b3&&_0x517edc)&&(!_0xe4d681||(0x1===this[_0x41a8('0x6e')]?_0x5a1de8<_0x517edc-0x1:_0x5a1de8>0x0));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Collection as _0x435436}from'ckeditor5/src/utils';import{Model as _0x43ba83,addListToDropdown as _0x72781,createDropdown as _0x4eed4c}from'ckeditor5/src/ui';import _0x7b82eb from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x1357f3,_0x374a21){const _0x33b768=_0x1357f3['bindTemplate'],_0x235b19=_0x1357f3['locale'],t=_0x235b19['t'],_0x34746a=_0x4eed4c(_0x235b19);_0x34746a['panelPosition']='sw';const _0x2a5ccc=function(_0x166f04,_0x4ca4dc){const _0x36f6a3=function(_0x542a57,_0x47b156){const t=_0x542a57['locale']['t'],_0x456730={'Compare\x20against\x20selected':t('Compare\x20against\x20selected'),'Name\x20this\x20revision':t('Name\x20this\x20revision'),'Restore\x20this\x20revision':t('Restore\x20this\x20revision')};return _0x47b156['map'](_0x123626=>{const _0x57107e=_0x456730[_0x123626['name']];return _0x57107e&&_0x57107e!==_0x123626['name']&&(_0x123626['name']=_0x57107e),_0x123626;});}(_0x166f04,_0x4ca4dc),_0x499dc1=new _0x435436();for(const _0x1420dc of _0x36f6a3){const _0x3e15c2={'type':'button','model':new _0x43ba83({'label':_0x1420dc['name'],'class':_0x1420dc['class'],'withText':!0x0,'_action':_0x1420dc['action']})};_0x3e15c2['model']['bind']('isVisible')['to'](_0x166f04,'isActionsDropdownOpen',_0x263db4=>'function'!=typeof _0x1420dc['isVisible']||(!_0x263db4||_0x1420dc['isVisible'](_0x166f04))),_0x3e15c2['model']['bind']('isEnabled')['to'](_0x166f04,'isActionsDropdownOpen',_0x1c9fc9=>'function'!=typeof _0x1420dc['isEnabled']||(!_0x1c9fc9||_0x1420dc['isEnabled'](_0x166f04))),_0x499dc1['add'](_0x3e15c2);}return _0x499dc1;}(_0x1357f3,_0x374a21);return _0x1357f3['bind']('isActionsDropdownOpen')['to'](_0x34746a,'isOpen'),_0x34746a['buttonView']['set']({'label':t('Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x7b82eb}),_0x34746a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x33b768['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x33b768['to'](_0x9b2cf0=>_0x9b2cf0['stopPropagation']())}}),_0x34746a['on']('execute',_0x224c72=>{_0x1357f3['isReady']&&'function'==typeof _0x224c72['source']['_action']&&_0x224c72['source']['_action'](_0x1357f3);}),_0x72781(_0x34746a,_0x2a5ccc),_0x34746a;}
23
+ import{Collection as _0x549127}from'ckeditor5/src/utils';import{Model as _0x35f26,addListToDropdown as to,createDropdown as _0x1a9250}from'ckeditor5/src/ui';import _0x505f2a from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x1ee8d3,_0x2fcdf3){const _0x2c3e6b=_0x1ee8d3['bindTemplate'],_0x129e9e=_0x1ee8d3['locale'],t=_0x129e9e['t'],_0x267083=_0x1a9250(_0x129e9e);_0x267083['panelPosition']='sw';const _0x19ac3d=function(_0x16daa2,_0x466fb3){const _0x5a08c0=function(_0x24648c,_0x40f33a){const t=_0x24648c['locale']['t'],_0x3f7345={'Compare\x20against\x20selected':t('Compare\x20against\x20selected'),'Name\x20this\x20revision':t('Name\x20this\x20revision'),'Restore\x20this\x20revision':t('Restore\x20this\x20revision')};return _0x40f33a['map'](_0x27f2b5=>{const _0x253058=_0x3f7345[_0x27f2b5['name']];return _0x253058&&_0x253058!==_0x27f2b5['name']&&(_0x27f2b5['name']=_0x253058),_0x27f2b5;});}(_0x16daa2,_0x466fb3),_0x5817b3=new _0x549127();for(const _0x20285e of _0x5a08c0){const _0x59474b={'type':'button','model':new _0x35f26({'label':_0x20285e['name'],'class':_0x20285e['class'],'withText':!0x0,'_action':_0x20285e['action']})};_0x59474b['model']['bind']('isVisible')['to'](_0x16daa2,'isActionsDropdownOpen',_0x429bee=>'function'!=typeof _0x20285e['isVisible']||(!_0x429bee||_0x20285e['isVisible'](_0x16daa2))),_0x59474b['model']['bind']('isEnabled')['to'](_0x16daa2,'isActionsDropdownOpen',_0xfec967=>'function'!=typeof _0x20285e['isEnabled']||(!_0xfec967||_0x20285e['isEnabled'](_0x16daa2))),_0x5817b3['add'](_0x59474b);}return _0x5817b3;}(_0x1ee8d3,_0x2fcdf3);return _0x1ee8d3['bind']('isActionsDropdownOpen')['to'](_0x267083,'isOpen'),_0x267083['buttonView']['set']({'label':t('Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x505f2a}),_0x267083['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2c3e6b['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2c3e6b['to'](_0x20b2bd=>_0x20b2bd['stopPropagation']())}}),_0x267083['on']('execute',_0xeea316=>{_0x1ee8d3['isReady']&&'function'==typeof _0xeea316['source']['_action']&&_0xeea316['source']['_action'](_0x1ee8d3);}),to(_0x267083,_0x19ac3d),_0x267083;}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as _0x14b3ee,IconView as _0x43aa9b}from'ckeditor5/src/ui';import _0x541410 from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class Y extends _0x14b3ee{constructor(_0x266590,_0x59cf0f,_0x1db7a8){super(_0x266590);const t=_0x266590['t'],_0x374215=new _0x43aa9b(_0x266590);_0x374215['set']({'content':_0x541410,'viewBox':'0\x200\x2011\x2010'});const _0x397a7b=['ck','ck-revision-history-sidebar__revision-author'];_0x1db7a8&&_0x397a7b['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2adeed=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':t(_0x1db7a8?'Revision\x20creator':'Revision\x20author')},'children':[_0x374215,_0x59cf0f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x397a7b},'children':_0x2adeed});}}
23
+ import{View as _0x25ddf1,IconView as _0x594048}from'ckeditor5/src/ui';import _0x2df5c2 from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ti extends _0x25ddf1{constructor(_0x55bdf5,_0x2d52a2,_0xfb0cd9){super(_0x55bdf5);const t=_0x55bdf5['t'],_0x4f3886=new _0x594048(_0x55bdf5);_0x4f3886['set']({'content':_0x2df5c2,'viewBox':'0\x200\x2011\x2010'});const _0x47b3f5=['ck','ck-revision-history-sidebar__revision-author'];_0xfb0cd9&&_0x47b3f5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x49e71f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':t(_0xfb0cd9?'Revision\x20creator':'Revision\x20author')},'children':[_0x4f3886,_0x2d52a2['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x47b3f5},'children':_0x49e71f});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{LabeledFieldView as _0x5cab93}from'ckeditor5/src/ui';import'../../../theme/revision/revisionname.css';export default class ss extends _0x5cab93{constructor(..._0x5ecfc6){super(..._0x5ecfc6);const t=this['t'];this['set']({'label':t('Revision\x20name')}),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ import{LabeledFieldView as _0x42b6e8}from'ckeditor5/src/ui';import'../../../theme/revision/revisionname.css';export default class os extends _0x42b6e8{constructor(..._0x1c7ce3){super(..._0x1c7ce3);const t=this['t'];this['set']({'label':t('Revision\x20name')}),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3cb7=['ck-revision-history-sidebar__actions_dropdown_open','ck-reset','bind','isEnabled','isActionsDropdownOpen','value','filter','_revision','createdAt','div','set','isSelected','fieldView','_createdAtFormatted','map','listenTo','revisionActionsView','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','srcElement','placeholder','select','render','ck-revision-history-sidebar__revision_selected','highlight','fire','isHighlighted','name','unhighlight','ck-disabled','length','from','setName','ck-revision-history-sidebar__revision__date','bindTemplate','closest','ck-revision-history-sidebar__revision_highlighted','authors','span','element','ck-revision-history-sidebar__revision__controls-wrapper','revisionNameView','creator'];(function(_0x4574c0,_0x3cb715){const _0x49a934=function(_0x46d60e){while(--_0x46d60e){_0x4574c0['push'](_0x4574c0['shift']());}};_0x49a934(++_0x3cb715);}(_0x3cb7,0x188));const _0x49a9=function(_0x4574c0,_0x3cb715){_0x4574c0=_0x4574c0-0x0;let _0x49a934=_0x3cb7[_0x4574c0];return _0x49a934;};import _0x3f9e37 from'./revisionnameview';import _0x4521d2 from'./revisionauthorview';import{View as _0x1bf14b,createLabeledInputText as _0x2bcbf3}from'ckeditor5/src/ui';import{dateToPrettyFormat as _0x36e365}from'./utils';import{createActionsDropdownView as _0x4560dc}from'./createrevisionactionsdropdown';import _0x263847 from'@ckeditor/ckeditor5-comments/src/comments/ui/view/confirmmixin';import{mix as _0x2cf63d}from'ckeditor5/src/utils';import'../../../theme/revision/revision.css';export default class ri extends _0x1bf14b{constructor(_0x4de529,_0x18cae7,_0xc4a2b){super(_0x4de529);const _0x505912=this[_0x49a9('0x13')],_0x143cc6=function(_0x37566e,_0x31d4a6){const _0x1ddd14=Array[_0x49a9('0x10')](_0x31d4a6[_0x49a9('0x16')])[_0x49a9('0x22')](_0x4f376a=>_0x4f376a!=_0x31d4a6[_0x49a9('0x1b')]);return _0x31d4a6[_0x49a9('0x1b')]&&_0x1ddd14['unshift'](_0x31d4a6[_0x49a9('0x1b')]),_0x1ddd14[_0x49a9('0x0')](_0x7d25a=>new _0x4521d2(_0x37566e,_0x7d25a,_0x7d25a==_0x31d4a6['creator']));}(_0x4de529,_0x18cae7);this[_0x49a9('0x23')]=_0x18cae7,this['id']=_0x18cae7['id'],this['bind'](_0x49a9('0xc'),_0x49a9('0x24'))['to'](_0x18cae7),this[_0x49a9('0x26')](_0x49a9('0x27'),!0x1),this[_0x49a9('0x26')](_0x49a9('0xb'),!0x1),this[_0x49a9('0x26')](_0x49a9('0x20'),!0x1),this[_0x49a9('0x26')]('isReady',!0x1),this[_0x49a9('0x1e')](_0x49a9('0x29'))['to'](this,_0x49a9('0x24'),_0x236459=>_0x236459?_0x36e365(_0x4de529['uiLanguage'],_0x236459):null),this[_0x49a9('0x26')](_0x49a9('0x1f'),!0x1),this[_0x49a9('0x1a')]=new _0x3f9e37(_0x4de529,_0x2bcbf3),this['revisionNameView'][_0x49a9('0x28')][_0x49a9('0x1e')]('value',_0x49a9('0x5'))['to'](this,_0x49a9('0xc'),_0x49a9('0x29')),this[_0x49a9('0x1a')][_0x49a9('0x1e')](_0x49a9('0x1f'))['to'](this,_0x49a9('0x27'),this,_0x49a9('0x1f'),(_0x49ed4f,_0x278df7)=>_0x49ed4f&&_0x278df7),this[_0x49a9('0x2')]=_0xc4a2b&&_0xc4a2b[_0x49a9('0xf')]?_0x4560dc(this,_0xc4a2b):'',this[_0x49a9('0x2')][_0x49a9('0x1e')](_0x49a9('0x1f'))['to'](this),this['setTemplate']({'tag':_0x49a9('0x25'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x505912['if']('isConfirm',_0x49a9('0x3'))]},'children':[{'tag':_0x49a9('0x25'),'attributes':{'class':['ck',_0x49a9('0x1d'),'ck-revision-history-sidebar__revision',_0x505912['if'](_0x49a9('0x1f'),_0x49a9('0xe'),_0x3c15f3=>!_0x3c15f3),_0x505912['if'](_0x49a9('0x27'),_0x49a9('0x8')),_0x505912['if']('isHighlighted',_0x49a9('0x15')),_0x505912['if'](_0x49a9('0x20'),_0x49a9('0x1c'))]},'children':[this[_0x49a9('0x1a')],{'tag':_0x49a9('0x17'),'attributes':{'class':['ck',_0x49a9('0x12')]},'children':[{'text':_0x505912['to'](_0x49a9('0x29'))}]},{'tag':_0x49a9('0x25'),'attributes':{'class':['ck',_0x49a9('0x19')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x143cc6}]},this['revisionActionsView']],'on':{'click':_0x505912['to'](_0x5836b4=>{_0x5836b4[_0x49a9('0x4')][_0x49a9('0x14')]('.ck-thread__remove-confirm')||this['isReady']&&this[_0x49a9('0x1f')]&&this[_0x49a9('0xa')](_0x49a9('0x6'),{'id':this['id']});})}}]});}[_0x49a9('0x7')](){super[_0x49a9('0x7')]();const _0xd614a6=this[_0x49a9('0x1a')][_0x49a9('0x28')][_0x49a9('0x18')];this[_0x49a9('0x1')](_0xd614a6,'change',()=>{this[_0x49a9('0x23')][_0x49a9('0x11')](_0xd614a6[_0x49a9('0x21')]);});}[_0x49a9('0x6')](){this[_0x49a9('0x27')]=!0x0;}['deselect'](){this[_0x49a9('0x27')]=!0x1;}[_0x49a9('0x9')](){this[_0x49a9('0xb')]=!0x0;}[_0x49a9('0xd')](){this[_0x49a9('0xb')]=!0x1;}}_0x2cf63d(ri,_0x263847);
23
+ const _0x5042=['div','ck-disabled','ck-revision-history-sidebar__revision__controls-wrapper','set','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision','unhighlight','element','deselect','select','change','bindTemplate','bind','revisionNameView','render','creator','fire','ck-reset','from','isEnabled','fieldView','ck-revision-history-sidebar__revision-authors','revisionActionsView','highlight','length','isConfirm','isSelected','unshift','createdAt','_revision','uiLanguage','value','setTemplate','ck-revision-history-sidebar__revision_selected','filter','span','srcElement','isActionsDropdownOpen','ck-revision-history-sidebar__revision_highlighted','isHighlighted','isReady','authors','_createdAtFormatted','map'];(function(_0x117bb7,_0x50420a){const _0x35f7d2=function(_0x30265a){while(--_0x30265a){_0x117bb7['push'](_0x117bb7['shift']());}};_0x35f7d2(++_0x50420a);}(_0x5042,0x68));const _0x35f7=function(_0x117bb7,_0x50420a){_0x117bb7=_0x117bb7-0x0;let _0x35f7d2=_0x5042[_0x117bb7];return _0x35f7d2;};import{View as _0x37d25b,createLabeledInputText as _0x45e2b3}from'ckeditor5/src/ui';import{mix as _0x47d45f}from'ckeditor5/src/utils';import{ConfirmMixin as _0x18b7f3}from'ckeditor5-collaboration/src/collaboration-core';import _0x30b6ca from'./revisionnameview';import _0x34b476 from'./revisionauthorview';import{dateToPrettyFormat as _0x5aca7e}from'./utils';import{createActionsDropdownView as _0x3fd4e7}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ci extends _0x37d25b{constructor(_0x3169fc,_0x1641af,_0x373111){super(_0x3169fc);const _0x275424=this[_0x35f7('0x2b')],_0x1f7198=function(_0x4f66d1,_0x40e3dd){const _0x52f5f4=Array[_0x35f7('0x5')](_0x40e3dd[_0x35f7('0x1c')])[_0x35f7('0x15')](_0x13fa59=>_0x13fa59!=_0x40e3dd[_0x35f7('0x2')]);return _0x40e3dd[_0x35f7('0x2')]&&_0x52f5f4[_0x35f7('0xe')](_0x40e3dd['creator']),_0x52f5f4[_0x35f7('0x1e')](_0x53ccad=>new _0x34b476(_0x4f66d1,_0x53ccad,_0x53ccad==_0x40e3dd[_0x35f7('0x2')]));}(_0x3169fc,_0x1641af);this[_0x35f7('0x10')]=_0x1641af,this['id']=_0x1641af['id'],this[_0x35f7('0x2c')]('name',_0x35f7('0xf'))['to'](_0x1641af),this[_0x35f7('0x22')](_0x35f7('0xd'),!0x1),this['set'](_0x35f7('0x1a'),!0x1),this[_0x35f7('0x22')]('isActionsDropdownOpen',!0x1),this['set'](_0x35f7('0x1b'),!0x1),this[_0x35f7('0x2c')](_0x35f7('0x1d'))['to'](this,_0x35f7('0xf'),_0x2aca2a=>_0x2aca2a?_0x5aca7e(_0x3169fc[_0x35f7('0x11')],_0x2aca2a):null),this['set'](_0x35f7('0x6'),!0x1),this[_0x35f7('0x0')]=new _0x30b6ca(_0x3169fc,_0x45e2b3),this[_0x35f7('0x0')][_0x35f7('0x7')]['extendTemplate']({'attributes':{'maxlength':'220'}}),this[_0x35f7('0x0')][_0x35f7('0x7')][_0x35f7('0x2c')]('value','placeholder')['to'](this,'name',_0x35f7('0x1d')),this[_0x35f7('0x0')][_0x35f7('0x2c')](_0x35f7('0x6'))['to'](this,'isSelected',this,_0x35f7('0x6'),(_0x3427c9,_0x341528)=>_0x3427c9&&_0x341528),this['revisionActionsView']=_0x373111&&_0x373111[_0x35f7('0xb')]?_0x3fd4e7(this,_0x373111):'',this[_0x35f7('0x9')][_0x35f7('0x2c')](_0x35f7('0x6'))['to'](this),this[_0x35f7('0x13')]({'tag':_0x35f7('0x1f'),'attributes':{'class':['ck',_0x35f7('0x4'),'ck-revision-history-sidebar__revision-wrapper',_0x275424['if'](_0x35f7('0xc'),_0x35f7('0x24'))]},'children':[{'tag':_0x35f7('0x1f'),'attributes':{'class':['ck',_0x35f7('0x4'),_0x35f7('0x25'),_0x275424['if'](_0x35f7('0x6'),_0x35f7('0x20'),_0x128375=>!_0x128375),_0x275424['if'](_0x35f7('0xd'),_0x35f7('0x14')),_0x275424['if'](_0x35f7('0x1a'),_0x35f7('0x19')),_0x275424['if'](_0x35f7('0x18'),_0x35f7('0x23'))]},'children':[this[_0x35f7('0x0')],{'tag':_0x35f7('0x16'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x275424['to'](_0x35f7('0x1d'))}]},{'tag':_0x35f7('0x1f'),'attributes':{'class':['ck',_0x35f7('0x21')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x35f7('0x8')]},'children':_0x1f7198}]},this[_0x35f7('0x9')]],'on':{'click':_0x275424['to'](_0x35211a=>{_0x35211a[_0x35f7('0x17')]['closest']('.ck-thread__remove-confirm')||this[_0x35f7('0x1b')]&&this[_0x35f7('0x6')]&&this[_0x35f7('0x3')](_0x35f7('0x29'),{'id':this['id']});})}}]});}[_0x35f7('0x1')](){super[_0x35f7('0x1')]();const _0x5cf63a=this['revisionNameView'][_0x35f7('0x7')][_0x35f7('0x27')];this['listenTo'](_0x5cf63a,_0x35f7('0x2a'),()=>{this[_0x35f7('0x3')]('setName',{'id':this['id'],'name':_0x5cf63a[_0x35f7('0x12')]});});}[_0x35f7('0x29')](){this[_0x35f7('0xd')]=!0x0;}[_0x35f7('0x28')](){this[_0x35f7('0xd')]=!0x1;}[_0x35f7('0xa')](){this['isHighlighted']=!0x0;}[_0x35f7('0x26')](){this[_0x35f7('0x1a')]=!0x1;}}_0x47d45f(ci,_0x18b7f3);
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x50fe=['isVisible','bindTemplate','true','ck-revision-history-sidebar__subrevision-collapser__inner','set','setTemplate','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser','ck-revision-history-sidebar__subrevision-collapser_collapsed','click','false','span','toggle'];(function(_0x4d171f,_0x50fe4f){const _0x7023b7=function(_0x5a4709){while(--_0x5a4709){_0x4d171f['push'](_0x4d171f['shift']());}};_0x7023b7(++_0x50fe4f);}(_0x50fe,0x1a8));const _0x7023=function(_0x4d171f,_0x50fe4f){_0x4d171f=_0x4d171f-0x0;let _0x7023b7=_0x50fe[_0x4d171f];return _0x7023b7;};import{View as _0xb5e297}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class is extends _0xb5e297{constructor(_0xecc499){super(_0xecc499);const _0x466fc8=this[_0x7023('0x6')];this[_0x7023('0x9')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x7023('0xa')]({'tag':'span','attributes':{'class':['ck',_0x7023('0xc'),_0x466fc8['if'](_0x7023('0x5'),'ck-hidden',_0x3ab25a=>!_0x3ab25a),_0x466fc8['if'](_0x7023('0xb'),_0x7023('0x0'))],'role':'button','aria-pressed':_0x466fc8['to'](_0x7023('0xb'),_0x57c4fe=>_0x57c4fe?_0x7023('0x2'):_0x7023('0x7'))},'children':[{'tag':_0x7023('0x3'),'attributes':{'class':['ck',_0x7023('0x8')]}}],'on':{'click':_0x466fc8['to'](_0x7023('0x1'))}});}[_0x7023('0x4')](){this[_0x7023('0xb')]=!this[_0x7023('0xb')];}}
23
+ const _0x16e1=['ck-revision-history-sidebar__subrevision-collapser','button','span','click','true','_isCollapsed','bindTemplate','false','ck-revision-history-sidebar__subrevision-collapser_collapsed','set','setTemplate','ck-hidden','toggle','isVisible'];(function(_0x2145bb,_0x16e109){const _0x406491=function(_0xfd382f){while(--_0xfd382f){_0x2145bb['push'](_0x2145bb['shift']());}};_0x406491(++_0x16e109);}(_0x16e1,0xef));const _0x4064=function(_0x2145bb,_0x16e109){_0x2145bb=_0x2145bb-0x0;let _0x406491=_0x16e1[_0x2145bb];return _0x406491;};import{View as _0x5a02a3}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class ls extends _0x5a02a3{constructor(_0x2dbcd){super(_0x2dbcd);const _0x461bb7=this[_0x4064('0x5')];this[_0x4064('0x8')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x4064('0x9')]({'tag':_0x4064('0x1'),'attributes':{'class':['ck',_0x4064('0xd'),_0x461bb7['if'](_0x4064('0xc'),_0x4064('0xa'),_0x58efc4=>!_0x58efc4),_0x461bb7['if'](_0x4064('0x4'),_0x4064('0x7'))],'role':_0x4064('0x0'),'aria-pressed':_0x461bb7['to']('_isCollapsed',_0x403ebc=>_0x403ebc?_0x4064('0x6'):_0x4064('0x3'))},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x461bb7['to'](_0x4064('0x2'))}});}[_0x4064('0xb')](){this['_isCollapsed']=!this['_isCollapsed'];}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a5d=['ck-revision-history-sidebar__revision-authors','isSelected','deselect','setTemplate','bindTemplate','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision__date','createdAt','ck-revision-history-sidebar__subrevision','author','uiLanguage','ck-revision-history-sidebar__revision_selected','select','_createdAtFormatted','bind'];(function(_0x3eb848,_0x1a5d47){const _0x33b966=function(_0x309026){while(--_0x309026){_0x3eb848['push'](_0x3eb848['shift']());}};_0x33b966(++_0x1a5d47);}(_0x1a5d,0x16b));const _0x33b9=function(_0x3eb848,_0x1a5d47){_0x3eb848=_0x3eb848-0x0;let _0x33b966=_0x1a5d[_0x3eb848];return _0x33b966;};import{View as _0x28404b}from'ckeditor5/src/ui';import _0x375c3c from'./revisionauthorview';import{dateToPrettyFormat as _0x578f15}from'./utils';import'../../../theme/revision/subrevision.css';export default class tt extends _0x28404b{constructor(_0x54192d,_0x330036,_0x16dded){super(_0x54192d);const _0x460a7f=this[_0x33b9('0x1')];this['id']=_0x330036['id'],this[_0x33b9('0xb')]('createdAt')['to'](_0x330036),this['set'](_0x33b9('0xd'),!0x1),this[_0x33b9('0xb')](_0x33b9('0xa'))['to'](this,_0x33b9('0x4'),_0x40c281=>_0x40c281?_0x578f15(_0x54192d[_0x33b9('0x7')],_0x40c281):null),this['_parentRevisionId']=_0x16dded,this[_0x33b9('0x0')]({'tag':'div','attributes':{'class':['ck','ck-reset',_0x33b9('0x2'),_0x33b9('0x5'),_0x460a7f['if'](_0x33b9('0xd'),_0x33b9('0x8'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x33b9('0x3')]},'children':[{'text':_0x460a7f['to'](_0x33b9('0xa'))}]},{'tag':'ul','attributes':{'class':['ck',_0x33b9('0xc')]},'children':[new _0x375c3c(_0x54192d,_0x330036[_0x33b9('0x6')],!0x0)]}],'on':{'click':_0x460a7f['to'](this[_0x33b9('0x9')][_0x33b9('0xb')](this))}});}[_0x33b9('0x9')](){this[_0x33b9('0xd')]=!0x0,this['fire'](_0x33b9('0x9'),{'parentId':this['_parentRevisionId']});}[_0x33b9('0xe')](){this['isSelected']=!0x1;}}
23
+ const _0x52f5=['ck-revision-history-sidebar__revision_selected','set','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision__date','select','bindTemplate','bind','createdAt','isSelected','author','ck-reset','ck-revision-history-sidebar__revision','_parentRevisionId','uiLanguage','deselect','ck-revision-history-sidebar__revision-authors','setTemplate','div'];(function(_0x3ceacb,_0x52f5b0){const _0x4e0192=function(_0x382c6e){while(--_0x382c6e){_0x3ceacb['push'](_0x3ceacb['shift']());}};_0x4e0192(++_0x52f5b0);}(_0x52f5,0x164));const _0x4e01=function(_0x3ceacb,_0x52f5b0){_0x3ceacb=_0x3ceacb-0x0;let _0x4e0192=_0x52f5[_0x3ceacb];return _0x4e0192;};import{View as _0x5ca1ed}from'ckeditor5/src/ui';import _0x5abdbb from'./revisionauthorview';import{dateToPrettyFormat as _0x16488d}from'./utils';import'../../../theme/revision/subrevision.css';export default class tt extends _0x5ca1ed{constructor(_0x1a6171,_0x5e278f,_0x58af85){super(_0x1a6171);const _0xaf1d42=this[_0x4e01('0x9')];this['id']=_0x5e278f['id'],this[_0x4e01('0xa')](_0x4e01('0xb'))['to'](_0x5e278f),this[_0x4e01('0x5')](_0x4e01('0xc'),!0x1),this[_0x4e01('0xa')]('_createdAtFormatted')['to'](this,_0x4e01('0xb'),_0x186a25=>_0x186a25?_0x16488d(_0x1a6171[_0x4e01('0x11')],_0x186a25):null),this[_0x4e01('0x10')]=_0x58af85,this[_0x4e01('0x2')]({'tag':_0x4e01('0x3'),'attributes':{'class':['ck',_0x4e01('0xe'),_0x4e01('0xf'),_0x4e01('0x6'),_0xaf1d42['if'](_0x4e01('0xc'),_0x4e01('0x4'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x4e01('0x7')]},'children':[{'text':_0xaf1d42['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x4e01('0x1')]},'children':[new _0x5abdbb(_0x1a6171,_0x5e278f[_0x4e01('0xd')],!0x0)]}],'on':{'click':_0xaf1d42['to'](this[_0x4e01('0x8')][_0x4e01('0xa')](this))}});}[_0x4e01('0x8')](){this[_0x4e01('0xc')]=!0x0,this['fire']('select',{'parentId':this[_0x4e01('0x10')]});}[_0x4e01('0x0')](){this[_0x4e01('0xc')]=!0x1;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x40c0=['long','numeric'];(function(_0x4fae56,_0x40c046){var _0x2ceb46=function(_0x8feba9){while(--_0x8feba9){_0x4fae56['push'](_0x4fae56['shift']());}};_0x2ceb46(++_0x40c046);}(_0x40c0,0x1b3));var _0x2ceb=function(_0x4fae56,_0x40c046){_0x4fae56=_0x4fae56-0x0;var _0x2ceb46=_0x40c0[_0x4fae56];return _0x2ceb46;};export function dateToPrettyFormat(_0x9a445d,_0xbfb90c){return _0xbfb90c['toLocaleDateString'](_0x9a445d,{'month':_0x2ceb('0x1'),'day':_0x2ceb('0x0')})+',\x20'+_0xbfb90c['toLocaleTimeString'](_0x9a445d,{'hour':_0x2ceb('0x0'),'minute':'numeric'});}
23
+ var _0x36b7=['long','toLocaleDateString','toLocaleTimeString','numeric'];(function(_0x5b34c2,_0x36b734){var _0x4ba50d=function(_0x296acc){while(--_0x296acc){_0x5b34c2['push'](_0x5b34c2['shift']());}};_0x4ba50d(++_0x36b734);}(_0x36b7,0x1e3));var _0x4ba5=function(_0x5b34c2,_0x36b734){_0x5b34c2=_0x5b34c2-0x0;var _0x4ba50d=_0x36b7[_0x5b34c2];return _0x4ba50d;};export function dateToPrettyFormat(_0x18eefc,_0x16e2f9){return _0x16e2f9[_0x4ba5('0x2')](_0x18eefc,{'month':_0x4ba5('0x1'),'day':_0x4ba5('0x0')})+',\x20'+_0x16e2f9[_0x4ba5('0x3')](_0x18eefc,{'hour':_0x4ba5('0x0'),'minute':_0x4ba5('0x0')});}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as _0x477d18,ViewCollection as st,ButtonView as it,LabeledFieldView as _0x242141,createLabeledInputText as _0x3c6d1d,submitHandler as et,FocusCycler as rt,injectCssTransitionDisabler as ot}from'ckeditor5/src/ui';import{FocusTracker as ht,KeystrokeHandler as ct}from'ckeditor5/src/utils';import nt from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import at 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 ut extends _0x477d18{constructor(_0x2a979b){super(_0x2a979b);const t=_0x2a979b['t'];this['focusTracker']=new ht(),this['keystrokes']=new ct(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this['saveButtonView']=this['_createButton'](t('Save'),nt,'ck-button-save'),this['saveButtonView']['type']='submit',this['cancelButtonView']=this['_createButton'](t('Cancel'),at,'ck-button-cancel','cancel'),this['_focusables']=new st(),this['_focusCycler']=new rt({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']]}),ot(this);}['render'](){super['render'](),et({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']]['forEach'](_0x3de4a4=>{this['_focusables']['add'](_0x3de4a4),this['focusTracker']['add'](_0x3de4a4['element']);}),this['keystrokes']['listenTo'](this['element']));const _0x1f324c=_0x713644=>_0x713644['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1f324c),this['keystrokes']['set']('arrowleft',_0x1f324c),this['keystrokes']['set']('arrowup',_0x1f324c),this['keystrokes']['set']('arrowdown',_0x1f324c),this['listenTo'](this['revisionNameInputView']['element'],'selectstart',(_0x1e47d5,_0x32c7cc)=>{_0x32c7cc['stopPropagation']();},{'priority':'high'});}['focus'](){this['_focusCycler']['focusFirst']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2c2256){this['revisionNameInputView']['fieldView']['element']['value']=_0x2c2256['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='';}['_createRevisionNameInput'](){const t=this['locale']['t'],_0x44a453=new _0x242141(this['locale'],_0x3c6d1d),_0x5c0644=_0x44a453['fieldView'];return _0x44a453['label']=t('Name\x20of\x20the\x20revision\x20(optional)'),_0x5c0644['on']('input',()=>{this['revisionNameInputValue']=_0x5c0644['element']['value']['trim']();}),_0x44a453;}['_createButton'](_0x40ba9e,_0x380b9a,_0x506ed0,_0x42a1c6){const _0x41ce0a=new it(this['locale']);return _0x41ce0a['set']({'label':_0x40ba9e,'icon':_0x380b9a,'tooltip':!0x0}),_0x41ce0a['extendTemplate']({'attributes':{'class':_0x506ed0}}),_0x42a1c6&&_0x41ce0a['delegate']('execute')['to'](this,_0x42a1c6),_0x41ce0a;}}
23
+ import{ButtonView as st,FocusCycler as it,LabeledFieldView as _0x3cd68a,View as _0x1ec1b8,ViewCollection as et,createLabeledInputText as _0x2fe080,injectCssTransitionDisabler as rt,submitHandler as ot}from'ckeditor5/src/ui';import{FocusTracker as ht,KeystrokeHandler as ct}from'ckeditor5/src/utils';import nt from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import at 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 ut extends _0x1ec1b8{constructor(_0x287239){super(_0x287239);const t=_0x287239['t'];this['focusTracker']=new ht(),this['keystrokes']=new ct(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this['saveButtonView']=this['_createButton'](t('Save'),nt,'ck-button-save'),this['saveButtonView']['type']='submit',this['cancelButtonView']=this['_createButton'](t('Cancel'),at,'ck-button-cancel','cancel'),this['_focusables']=new et(),this['_focusCycler']=new it({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']]}),rt(this);}['render'](){super['render'](),ot({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']]['forEach'](_0x5c9b15=>{this['_focusables']['add'](_0x5c9b15),this['focusTracker']['add'](_0x5c9b15['element']);}),this['keystrokes']['listenTo'](this['element']));const _0x255ad3=_0x24f713=>_0x24f713['stopPropagation']();this['keystrokes']['set']('arrowright',_0x255ad3),this['keystrokes']['set']('arrowleft',_0x255ad3),this['keystrokes']['set']('arrowup',_0x255ad3),this['keystrokes']['set']('arrowdown',_0x255ad3),this['listenTo'](this['revisionNameInputView']['element'],'selectstart',(_0x11955a,_0x9ec08d)=>{_0x9ec08d['stopPropagation']();},{'priority':'high'});}['focus'](){this['_focusCycler']['focusFirst']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2498b6){this['revisionNameInputView']['fieldView']['element']['value']=_0x2498b6['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='';}['_createRevisionNameInput'](){const t=this['locale']['t'],_0x497d89=new _0x3cd68a(this['locale'],_0x2fe080),_0x49b027=_0x497d89['fieldView'];return _0x49b027['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x497d89['label']=t('Name\x20of\x20the\x20revision\x20(optional)'),_0x49b027['on']('input',()=>{this['revisionNameInputValue']=_0x49b027['element']['value']['trim']();}),_0x497d89;}['_createButton'](_0xdf07de,_0x17cbc1,_0x68e97,_0xafd1bc){const _0x11723b=new st(this['locale']);return _0x11723b['set']({'label':_0xdf07de,'icon':_0x17cbc1,'tooltip':!0x0}),_0x11723b['extendTemplate']({'attributes':{'class':_0x68e97}}),_0xafd1bc&&_0x11723b['delegate']('execute')['to'](this,_0xafd1bc),_0x11723b;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1de1cb}from'ckeditor5/src/core';import{ListView as _0xafcac8,ListItemView as _0x2a3b70,ButtonView as it,createDropdown as _0x422ef2}from'ckeditor5/src/ui';import _0x399404 from'../../revisiontracker';import ut from'./revisionhistorysaverevisionformview';import _0x136479 from'../../../theme/icons/revision-history.svg';export default class u extends _0x1de1cb{static get['pluginName'](){return'RevisionHistoryUI';}static get['requires'](){return[_0x399404];}['init'](){const _0x569805=this['editor'],t=_0x569805['t'],_0x314fdc=_0x569805['plugins']['get']('RevisionTracker');_0x569805['ui']['componentFactory']['add']('revisionHistory',_0x540081=>{const _0x382a08=_0x422ef2(_0x540081),_0x278f7f=_0x382a08['panelView']['children'],_0x399776=new _0xafcac8(_0x540081),_0x3f3d48=new _0x2a3b70(_0x540081),_0x4e0caa=new it(_0x540081),_0x5f3b18=new _0x2a3b70(_0x540081),_0x2bde79=new it(_0x540081),_0x448b66=new ut(_0x540081);function _0x2df840(){_0x278f7f['length']&&_0x278f7f['remove'](0x0),_0x278f7f['add'](_0x399776);}function _0x191afb(){_0x382a08['isOpen']=!0x1,_0x569805['editing']['view']['focus']();}return _0x382a08['buttonView']['set']({'icon':_0x136479,'label':t('Revision\x20history'),'tooltip':!0x0}),_0x4e0caa['set']({'label':t('Save\x20current\x20revision'),'withText':!0x0}),_0x4e0caa['bind']('isEnabled')['to'](_0x314fdc,'isReady',_0x314fdc,'isEnabled',(_0x5d5b87,_0x5262f7)=>_0x5d5b87&&_0x5262f7),_0x4e0caa['on']('execute',()=>function(){_0x278f7f['length']&&_0x278f7f['remove'](0x0),(_0x448b66['reset'](),_0x278f7f['add'](_0x448b66),_0x448b66['focus']());}()),_0x2bde79['set']({'label':t('Open\x20revision\x20history'),'withText':!0x0}),_0x2bde79['bind']('isEnabled')['to'](_0x314fdc,'isReady'),_0x2bde79['on']('execute',()=>{_0x569805['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x191afb();}),_0x3f3d48['children']['add'](_0x4e0caa),_0x5f3b18['children']['add'](_0x2bde79),_0x399776['items']['addMany']([_0x3f3d48,_0x5f3b18]),_0x382a08['on']('change:isOpen',()=>_0x2df840()),_0x448b66['saveButtonView']['bind']('isEnabled')['to'](_0x314fdc,'isReady',_0x314fdc,'isEnabled',(_0xa902ab,_0x2ca843)=>_0xa902ab&&_0x2ca843),_0x448b66['on']('submit',()=>(_0x569805['plugins']['get'](_0x399404)['updateRevision']({'name':_0x448b66['revisionName'],'isLocked':!0x0}),void _0x191afb())),_0x448b66['on']('cancel',()=>_0x2df840()),_0x448b66['render'](),_0x2df840(),_0x382a08;});}}
23
+ import{Plugin as _0x392352}from'ckeditor5/src/core';import{ListView as _0x3cce75,ListItemView as _0x3e0706,ButtonView as st,createDropdown as _0x2066fc}from'ckeditor5/src/ui';import _0x579c91 from'../../revisiontracker';import ut from'./revisionhistorysaverevisionformview';import _0x4902e3 from'../../../theme/icons/revision-history.svg';export default class y extends _0x392352{static get['pluginName'](){return'RevisionHistoryUI';}static get['requires'](){return[_0x579c91];}['init'](){const _0x1e0c73=this['editor'],t=_0x1e0c73['t'],_0x5b244a=_0x1e0c73['plugins']['get']('RevisionTracker');_0x1e0c73['ui']['componentFactory']['add']('revisionHistory',_0x1fde9f=>{const _0x41c9cd=_0x2066fc(_0x1fde9f),_0x6f8dbc=_0x41c9cd['panelView']['children'],_0x63c93d=new _0x3cce75(_0x1fde9f),_0x5bcb0e=new _0x3e0706(_0x1fde9f),_0x22913b=new st(_0x1fde9f),_0x174d0e=new _0x3e0706(_0x1fde9f),_0x131062=new st(_0x1fde9f),_0x3e7c05=new ut(_0x1fde9f);function _0x596fc9(){_0x6f8dbc['length']&&_0x6f8dbc['remove'](0x0),_0x6f8dbc['add'](_0x63c93d);}function _0x582aee(){_0x41c9cd['isOpen']=!0x1,_0x1e0c73['editing']['view']['focus']();}return _0x41c9cd['bind']('isEnabled')['to'](_0x5b244a,'isReady',_0x5b244a,'isEnabled',_0x1e0c73,'isReadOnly',(_0x3b2f1e,_0x584302,_0x5e1650)=>_0x3b2f1e&&_0x584302&&!_0x5e1650),_0x41c9cd['buttonView']['set']({'icon':_0x4902e3,'label':t('Revision\x20history'),'tooltip':!0x0}),_0x22913b['set']({'label':t('Save\x20current\x20revision'),'withText':!0x0}),_0x22913b['bind']('isEnabled')['to'](_0x5b244a,'isReady',_0x5b244a,'isEnabled',_0x1e0c73,'isReadOnly',(_0x449712,_0xd2acb1,_0x255227)=>_0x449712&&_0xd2acb1&&!_0x255227),_0x22913b['on']('execute',()=>function(){_0x6f8dbc['length']&&_0x6f8dbc['remove'](0x0),(_0x3e7c05['reset'](),_0x6f8dbc['add'](_0x3e7c05),_0x3e7c05['focus']());}()),_0x131062['set']({'label':t('Open\x20revision\x20history'),'withText':!0x0}),_0x131062['bind']('isEnabled')['to'](_0x5b244a,'isReady',_0x1e0c73,'isReadOnly',(_0x483bc9,_0x1b0155)=>_0x483bc9&&!_0x1b0155),_0x131062['on']('execute',()=>{_0x1e0c73['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x582aee();}),_0x5bcb0e['children']['add'](_0x22913b),_0x174d0e['children']['add'](_0x131062),_0x63c93d['items']['addMany']([_0x5bcb0e,_0x174d0e]),_0x41c9cd['on']('change:isOpen',()=>_0x596fc9()),_0x3e7c05['saveButtonView']['bind']('isEnabled')['to'](_0x5b244a,'isReady',_0x5b244a,'isEnabled',_0x1e0c73,'isReadOnly',(_0x5dd7ff,_0x495bc8,_0x5420d7)=>_0x5dd7ff&&_0x495bc8&&!_0x5420d7),_0x3e7c05['on']('submit',()=>(_0x1e0c73['plugins']['get'](_0x579c91)['saveRevision']({'name':_0x3e7c05['revisionName']}),void _0x582aee())),_0x3e7c05['on']('cancel',()=>_0x596fc9()),_0x3e7c05['render'](),_0x596fc9(),_0x41c9cd;});}}