@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250603.0 → 0.0.0-nightly-20250605.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 (181) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index.js +7 -6
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +14 -14
  150. package/src/changeitem.js +2 -2
  151. package/src/editor/revisionviewereditor.js +2 -2
  152. package/src/editor/revisionviewereditorui.js +1 -1
  153. package/src/editor/revisionviewereditoruiview.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/revision.js +2 -2
  156. package/src/revisiondiff.js +1 -1
  157. package/src/revisionhistory.js +1 -1
  158. package/src/revisionhistoryutils.js +1 -1
  159. package/src/revisionsrepository.js +1 -1
  160. package/src/revisiontracker.js +1 -1
  161. package/src/revisionviewer.js +1 -1
  162. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  163. package/src/ui/revision/revisionauthorview.js +1 -1
  164. package/src/ui/revision/revisionnameview.js +1 -1
  165. package/src/ui/revision/revisionview.js +2 -2
  166. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  167. package/src/ui/revision/subrevisionview.js +1 -1
  168. package/src/ui/revision/utils.js +1 -1
  169. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +1 -1
  170. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -1
  171. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  172. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  173. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  174. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  175. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  176. package/src/ui/revisionssidebar/utils.js +1 -1
  177. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  178. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  179. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  180. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  181. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,11 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x4ca585,uid as _0x2bb22c,Collection as _0x183b7a,logWarning as _0x4b9dae,FocusTracker as _0x3dc055,KeystrokeHandler as _0x293a16,scrollViewportToShowTarget as _0x599f04,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0xcd1451}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x582ae0,set as _0x5b9d9a,unset as _0x3cfbd6,isEqual as _0x47bd75}from'es-toolkit/compat';import{Plugin as _0x45a363,PendingActions as _0x41a637,Command as _0x50146d,ElementApiMixin as _0x403254,Editor as _0x248a5d}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3ebfe9,getMarkerDomElement as _0x8f2f92,ConfirmMixin as _0x5cdd15,sanitizeEditorConfig as _0x14ce47}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x420f3a,ViewAttributeElement as _0x2d817b,ViewEmptyElement as _0x4312e5,ViewRawElement as _0x587afd,ViewUIElement as _0x42d2d5,ViewDocumentFragment as _0x4e3345,ViewText as _0x6ac865,ViewElement as _0x20ed33,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x2126f0,IconChevronUp as _0x51b247,IconChevronDown as _0x4bd91a,IconUndo as _0x34fcad,IconUser as _0xdcd48e,IconThreeVerticalDots as _0x53bbd7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as ts,View as _0x3e61c9,submitHandler as _0x5aae1f,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x23c652,ListView as _0x1e2830,ListItemView as te,ButtonView as _0x80fe4d,MenuBarMenuView as _0x26a3e5,MenuBarMenuListView as _0x2ffe97,MenuBarMenuListItemView as _0x4ccc0e,MenuBarMenuListItemButtonView as _0x2a6ea2,ContextualBalloon as _0x4080a2,ToolbarSeparatorView as _0x4cc0d3,IconView as _0x1b0f1f,addListToDropdown as _0x4de909,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x34dd80}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x4ca585(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3b9682){super(),this['id']=_0x3b9682['id']||_0x2bb22c(),this['creator']=_0x3b9682['creator']||null,this['authors']=_0x3b9682['authors']||[],this['diffData']=_0x3b9682['diffData']||null,this['toVersion']=_0x3b9682['toVersion']||0x0,this['fromVersion']=_0x3b9682['fromVersion']||0x0,this['set']('name',_0x3b9682['name']||''),this['set']('createdAt',_0x3b9682['createdAt']||new Date()),this['set']('attributes',_0x3b9682['attributes']||{});}['setName'](_0x436765){this['_update']({'name':_0x436765});}['setAttribute'](_0x186601,_0x3e8e62){const _0xdee030=_0x582ae0(this['attributes']);_0x5b9d9a(_0xdee030,_0x186601,_0x3e8e62),this['_update']({'attributes':_0xdee030});}['removeAttribute'](_0xce2cf1){const _0x1f610a=_0x582ae0(this['attributes']);_0x3cfbd6(_0x1f610a,_0xce2cf1),this['_update']({'attributes':_0x1f610a});}['_update'](_0x1601d3,_0x206a68=!0x1){let _0x1dd2c5=!0x1;const _0x53738b={'id':this['id']},_0x71501d=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2c6d35 of _0x71501d){const _0x1cc998=_0x1601d3[_0x2c6d35];void 0x0!==_0x1cc998&&_0x1cc998!==this[_0x2c6d35]&&(this[_0x2c6d35]=_0x1cc998,_0x53738b[_0x2c6d35]=_0x1cc998,_0x1dd2c5=!0x0);}_0x1dd2c5&&(_0x53738b['authors']&&(_0x53738b['authorsIds']=_0x53738b['authors']['map'](_0x356c22=>_0x356c22['id']),delete _0x53738b['authors']),this['fire']('_update',_0x53738b,_0x206a68));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x126277=>_0x126277['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x45a363{['_revisions'];static get['requires'](){return[_0x3ebfe9];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x247903){super(_0x247903),this['_revisions']=new _0x183b7a();}['afterInit'](){!async function(_0x3485cf){const _0xaeec93=_0x4ccac0([0x7a,0x57,0x50,0x55,0x44,0x31,0x61,0x45,0x59,0x62,0x6d,0x49,0x4d,0x58,0x68,0x67,0x4e,0x6b,0x46,0x5a,0x43,0x69,0x51,0x6a,0x47,0x76,0x41,0x52,0x63,0x33,0x75,0x6f,0x78,0x6e,0x4c,0x4b,0x4a,0x35,0x65,0x66,0x79,0x37,0x73,0x48,0x56,0x77,0x74,0x38,0x32,0x53,0x72,0x71,0x39,0x42,0x4f,0x54,0x30,0x70,0x6c,0x36,0x64,0x34]),_0x42dd85=0xeb829,_0x516c4e=0x2578bcdc,_0x2b5398=0x257fd56c^_0x516c4e,_0x3afb59=window[_0x4ccac0([0x44,0x61,0x74,0x65])][_0x4ccac0([0x6e,0x6f,0x77])](),_0x11d394=_0x3485cf[_0x4ccac0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3c759c=new window[(_0x4ccac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fbefc=>{_0x11d394[_0x4ccac0([0x6f,0x6e,0x63,0x65])](_0x4ccac0([0x72,0x65,0x61,0x64,0x79]),_0x3fbefc);}),_0x554924={[_0x4ccac0([0x6b,0x74,0x79])]:_0x4ccac0([0x45,0x43]),[_0x4ccac0([0x75,0x73,0x65])]:_0x4ccac0([0x73,0x69,0x67]),[_0x4ccac0([0x63,0x72,0x76])]:_0x4ccac0([0x50,0x2d,0x32,0x35,0x36]),[_0x4ccac0([0x78])]:_0x4ccac0([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4ccac0([0x79])]:_0x4ccac0([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4ccac0([0x61,0x6c,0x67])]:_0x4ccac0([0x45,0x53,0x32,0x35,0x36])},_0xcae8ab=_0x11d394[_0x4ccac0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ccac0([0x67,0x65,0x74])](_0x4ccac0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xc10757(){let _0x30bf84,_0x5e5a70=null,_0x5363d=null;try{if(_0xcae8ab==_0x4ccac0([0x47,0x50,0x4c]))return _0x4ccac0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30bf84=_0x197c58(),!_0x30bf84)return _0x4ccac0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x30bf84[_0x4ccac0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5363d=_0x25f897(_0x30bf84[_0x4ccac0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30bf84[_0x4ccac0([0x6a,0x74,0x69])])),await _0x5a283b()?_0x1074d6()?_0x1549b2()?_0x4ccac0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x38b072()?(_0x30bf84[_0x4ccac0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ccac0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e5a70=_0x467947(_0x4ccac0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x30bf84[_0x4ccac0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ccac0([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e5a70=_0x467947(_0x4ccac0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28165b()):_0x4ccac0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ccac0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ccac0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4ccac0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1549b2(){const _0x10fd9b=[_0x4ccac0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ccac0([0x74,0x72,0x69,0x61,0x6c])][_0x4ccac0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30bf84[_0x4ccac0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3afb59/0x3e8:0xe10*_0x2b5398;return _0x30bf84[_0x4ccac0([0x65,0x78,0x70])]<_0x10fd9b;}function _0x1074d6(){const _0x2ccc9e=_0x30bf84[_0x4ccac0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2ccc9e)return!0x1;if(_0x2ccc9e[_0x4ccac0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ccac0([0x2a])))return!0x0;if(_0x2ccc9e[_0x4ccac0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ccac0([0x52,0x48])))return!0x0;if(_0x2ccc9e[_0x4ccac0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ccac0([0x52,0x52,0x48]))){if(_0xde58d8())return!0x0;if(_0x5314e2()||_0x47d8fe())return!0x0;}return!0x1;}function _0x38b072(){const _0x2a1820=_0x30bf84[_0x4ccac0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2a1820||0x0==_0x2a1820[_0x4ccac0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c9683}=new URL(window[_0x4ccac0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2a1820[_0x4ccac0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9683))return!0x0;const _0x339214=_0x2c9683[_0x4ccac0([0x73,0x70,0x6c,0x69,0x74])](_0x4ccac0([0x2e]));return _0x2a1820[_0x4ccac0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ffb9d=>_0x3ffb9d[_0x4ccac0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ccac0([0x2a])))[_0x4ccac0([0x6d,0x61,0x70])](_0x21e4fe=>_0x21e4fe[_0x4ccac0([0x73,0x70,0x6c,0x69,0x74])](_0x4ccac0([0x2e])))[_0x4ccac0([0x73,0x6f,0x6d,0x65])](_0x4cc682=>_0x339214[_0x4ccac0([0x65,0x76,0x65,0x72,0x79])]((_0x2a5042,_0x368c1c)=>_0x4cc682[_0x368c1c]===_0x2a5042||_0x4cc682[_0x368c1c]===_0x4ccac0([0x2a])));}function _0x28165b(){return _0x5e5a70&&_0x5363d?new window[(_0x4ccac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ef5e5,_0x150865)=>{_0x5e5a70[_0x4ccac0([0x74,0x68,0x65,0x6e])](_0x3ef5e5,_0x150865),_0x5363d[_0x4ccac0([0x74,0x68,0x65,0x6e])](_0x4d4d35=>{_0x4d4d35!=_0x4ccac0([0x56,0x61,0x6c,0x69,0x64])&&_0x3ef5e5(_0x4d4d35);},_0x150865);}):_0x5e5a70||_0x5363d||_0x4ccac0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x25f897(_0x2498c7,_0x46685e){return new window[(_0x4ccac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27b442=>{if(_0x36a596())return _0x27b442(_0x4ccac0([0x56,0x61,0x6c,0x69,0x64]));_0x33db21(),_0x11d394[_0x4ccac0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ccac0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13ef0f=!0x1;const _0x21f40f=_0x2bb22c();function _0x180274(_0x409206){return!!_0x409206&&(typeof _0x409206===_0x4ccac0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x409206===_0x4ccac0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x409206[_0x4ccac0([0x74,0x68,0x65,0x6e])]===_0x4ccac0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x409206[_0x4ccac0([0x63,0x61,0x74,0x63,0x68])]===_0x4ccac0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x74d211(_0x31df91){_0x435d04(_0x31df91)[_0x4ccac0([0x74,0x68,0x65,0x6e])](_0x1a1481=>{if(!_0x1a1481||_0x1a1481[_0x4ccac0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ccac0([0x6f,0x6b]))return _0x4ccac0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40dcf2(_0x279672(_0x21f40f+_0x46685e))!=_0x1a1481[_0x4ccac0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ccac0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ccac0([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ccac0([0x74,0x68,0x65,0x6e])](_0x37cdf6=>(_0x1ec6f4(),_0x37cdf6),()=>{const _0x10f54d=_0x1446d0();return null==_0x10f54d?(_0x1ec6f4(),_0x4ccac0([0x56,0x61,0x6c,0x69,0x64])):_0x4ccac0(_0x3afb59-_0x10f54d>(0x17438dc^_0x516c4e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ccac0([0x74,0x68,0x65,0x6e])](_0x27b442)[_0x4ccac0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27b442(_0x4ccac0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5958fe=0x254e525c^_0x516c4e;function _0x1ec6f4(){const _0x5ef881=_0x4ccac0([0x6c,0x6c,0x63,0x74,0x2d])+_0x40dcf2(_0x279672(_0x2498c7)),_0x56d1b0=_0xd426fa(_0x40dcf2(window[_0x4ccac0([0x4d,0x61,0x74,0x68])][_0x4ccac0([0x63,0x65,0x69,0x6c])](_0x3afb59/_0x5958fe)));window[_0x4ccac0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ccac0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ef881,_0x56d1b0);}function _0x1446d0(){const _0xa75291=_0x4ccac0([0x6c,0x6c,0x63,0x74,0x2d])+_0x40dcf2(_0x279672(_0x2498c7)),_0x2ac838=window[_0x4ccac0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ccac0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa75291);return _0x2ac838?window[_0x4ccac0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd426fa(_0x2ac838),0x10)*_0x5958fe:null;}function _0x435d04(_0x5a2bb0){return new window[(_0x4ccac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d5112,_0x544b79)=>{_0x5a2bb0[_0x4ccac0([0x74,0x68,0x65,0x6e])](_0x4d5112,_0x544b79),window[_0x4ccac0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x544b79,0x2579681c^_0x516c4e);});}}_0x11d394[_0x4ccac0([0x6f,0x6e])](_0x4ccac0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e0904,_0x34a8af)=>{if(_0x34a8af[0x0]!=_0x2498c7)return _0x27b442(_0x4ccac0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34a8af[0x1]={..._0x34a8af[0x1],[_0x4ccac0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x21f40f};},{[_0x4ccac0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ccac0([0x68,0x69,0x67,0x68])}),_0x11d394[_0x4ccac0([0x6f,0x6e])](_0x4ccac0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57d2fb=>{_0x180274(_0x57d2fb[_0x4ccac0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13ef0f=!0x0,_0x74d211(_0x57d2fb[_0x4ccac0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ccac0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ccac0([0x6c,0x6f,0x77])}),_0x3c759c[_0x4ccac0([0x74,0x68,0x65,0x6e])](()=>{_0x13ef0f||_0x27b442(_0x4ccac0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x36a596(){return _0x11d394[_0x4ccac0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ccac0([0x76,0x69,0x65,0x77])][_0x4ccac0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ccac0([0x61,0x75,0x74,0x6f]);}function _0x33db21(){_0x11d394[_0x4ccac0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ccac0([0x76,0x69,0x65,0x77])][_0x4ccac0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ccac0([0x61,0x75,0x74,0x6f]);}}function _0x467947(_0x461255){const _0x385728=[new window[(_0x4ccac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x256595=>setTimeout(_0x256595,0x25718210^_0x516c4e)),_0x3c759c[_0x4ccac0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ccac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dd393=>{const _0x10cdf3=0x2578bcdb^_0x516c4e,_0x18df98=_0x3485cf[_0x4ccac0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2747d0(){_0x18df98[_0x4ccac0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x10cdf3&&_0x5dd393();}_0x2747d0(),_0x18df98[_0x4ccac0([0x6f,0x6e])](_0x4ccac0([0x61,0x64,0x64]),_0x2747d0);})),new window[(_0x4ccac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b981e=>{function _0x458c64(){for(const _0x5c5877 in window)if(window[_0x4ccac0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4ccac0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5c5877))&&window[_0x5c5877]==_0x42dd85)return _0x2b981e();_0x11d394[_0x4ccac0([0x73,0x74,0x61,0x74,0x65])]!=_0x4ccac0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4ccac0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x458c64,0x2578af54^_0x516c4e);}_0x36066f(_0x4ccac0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x458c64();})];return window[_0x4ccac0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ccac0([0x72,0x61,0x63,0x65])](_0x385728)[_0x4ccac0([0x74,0x68,0x65,0x6e])](()=>_0x461255);}async function _0x37b1a6(){if(await _0x3c759c,_0x36066f(_0x4ccac0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x434006=_0x3485cf[_0x4ccac0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x278976=_0x3485cf[_0x4ccac0([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x434006[_0x4ccac0([0x69,0x64])]),_0x466bff=_0x7b791c(_0x4ccac0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x466bff[_0x4ccac0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x434006['id'],_0x278976?_0x278976['id']:null,!0x0),_0x466bff[_0x4ccac0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4ccac0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x466bff[_0x4ccac0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x466bff[_0x4ccac0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1f0caf,void(_0x466bff[_0x4ccac0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1f0caf);}if(_0x36066f(_0x4ccac0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x55ad7f=_0x7b791c(_0x4ccac0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x55ad7f[_0x4ccac0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4ccac0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x55ad7f[_0x4ccac0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x55ad7f[_0x4ccac0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1f0caf,_0x55ad7f[_0x4ccac0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1f0caf;}_0x11d394[_0x4ccac0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ccac0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f0caf,_0x11d394[_0x4ccac0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ccac0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f0caf,_0x11d394[_0x4ccac0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ccac0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xde58d8(){return _0x36066f(_0x4ccac0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x7b791c(_0x4ccac0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4ccac0([0x73,0x74,0x61,0x74,0x65])]==_0x4ccac0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5314e2(){return _0x36066f(_0x4ccac0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x47d8fe(){return _0x36066f(_0x4ccac0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x120c9d(_0xb45237){const _0x339d6a=_0x539742();_0x11d394[_0x339d6a]=_0x4ccac0([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb45237,_0xb45237[_0x4ccac0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4ccac0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x539742()]=_0x42dd85),_0xb45237!=_0x4ccac0([0x56,0x61,0x6c,0x69,0x64])&&_0x37b1a6();}function _0x539742(){const _0x219739=window[_0x4ccac0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ccac0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ccac0([0x6e,0x6f,0x77])]())[_0x4ccac0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ccac0([0x2e]),'');let _0x46746f=_0x4ccac0([0x7a]);for(let _0x4c0be4=0x0;_0x4c0be4<_0x219739[_0x4ccac0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c0be4+=0x2){let _0x460acd=window[_0x4ccac0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x219739[_0x4ccac0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c0be4,_0x4c0be4+0x2));_0x460acd>=_0xaeec93[_0x4ccac0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x460acd-=_0xaeec93[_0x4ccac0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x46746f+=_0xaeec93[_0x460acd];}return _0x46746f;}function _0x197c58(){const _0x52635d=_0xcae8ab[_0x4ccac0([0x73,0x70,0x6c,0x69,0x74])](_0x4ccac0([0x2e]));if(0x3!=_0x52635d[_0x4ccac0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x300cda(_0x52635d[0x1]);function _0x300cda(_0x13c242){const _0x1c3f4a=_0x75c66e(_0x13c242);return _0x1c3f4a&&_0x807ec5()?_0x1c3f4a:null;function _0x807ec5(){const _0x538c6d=_0x1c3f4a[_0x4ccac0([0x6a,0x74,0x69])],_0x2c0da3=window[_0x4ccac0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x538c6d[_0x4ccac0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x538c6d[_0x4ccac0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x105904={..._0x1c3f4a,[_0x4ccac0([0x6a,0x74,0x69])]:_0x538c6d[_0x4ccac0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x538c6d[_0x4ccac0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x105904[_0x4ccac0([0x76,0x63])],_0x279672(_0x105904)==_0x2c0da3;}}}async function _0x5a283b(){let _0xeb566d=!0x0;try{const _0x138ba7=_0xcae8ab[_0x4ccac0([0x73,0x70,0x6c,0x69,0x74])](_0x4ccac0([0x2e])),[_0x31fa3b,_0x14261f,_0x581359]=_0x138ba7;return _0x7b84e2(_0x31fa3b),await _0x2d1b0a(_0x31fa3b,_0x14261f,_0x581359),_0xeb566d;}catch{return!0x1;}function _0x7b84e2(_0x4b0440){const _0x282368=_0x75c66e(_0x4b0440);_0x282368&&_0x282368[_0x4ccac0([0x61,0x6c,0x67])]==_0x4ccac0([0x45,0x53,0x32,0x35,0x36])||(_0xeb566d=!0x1);}async function _0x2d1b0a(_0x330b31,_0x22feba,_0x52243d){const _0x5b7ddb=window[_0x4ccac0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ccac0([0x66,0x72,0x6f,0x6d])](_0x4e3012(_0x52243d),_0x2adfc3=>_0x2adfc3[_0x4ccac0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd2859f=new window[(_0x4ccac0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ccac0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x330b31+_0x4ccac0([0x2e])+_0x22feba),_0x36a195=window[_0x4ccac0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ccac0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x36a195)return;const _0x1964fc=await _0x36a195[_0x4ccac0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ccac0([0x6a,0x77,0x6b]),_0x554924,{[_0x4ccac0([0x6e,0x61,0x6d,0x65])]:_0x4ccac0([0x45,0x43,0x44,0x53,0x41]),[_0x4ccac0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ccac0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ccac0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x36a195[_0x4ccac0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ccac0([0x6e,0x61,0x6d,0x65])]:_0x4ccac0([0x45,0x43,0x44,0x53,0x41]),[_0x4ccac0([0x68,0x61,0x73,0x68])]:{[_0x4ccac0([0x6e,0x61,0x6d,0x65])]:_0x4ccac0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1964fc,_0x5b7ddb,_0xd2859f)||(_0xeb566d=!0x1);}}function _0x75c66e(_0x3b91da){return _0x3b91da[_0x4ccac0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ccac0([0x65,0x79]))?JSON[_0x4ccac0([0x70,0x61,0x72,0x73,0x65])](_0x4e3012(_0x3b91da)):null;}function _0x4e3012(_0x2d0cab){return window[_0x4ccac0([0x61,0x74,0x6f,0x62])](_0x2d0cab[_0x4ccac0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ccac0([0x2b]))[_0x4ccac0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ccac0([0x2f])));}function _0x279672(_0x5b325f){let _0x1ec33b=0x1505;function _0x282f55(_0x18c23d){for(let _0x4cd663=0x0;_0x4cd663<_0x18c23d[_0x4ccac0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cd663++){const _0x57ae2b=_0x18c23d[_0x4ccac0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4cd663);_0x1ec33b=(_0x1ec33b<<0x5)+_0x1ec33b+_0x57ae2b,_0x1ec33b&=_0x1ec33b;}}function _0x4aae47(_0x35da5d){Array[_0x4ccac0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x35da5d)?_0x35da5d[_0x4ccac0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4aae47):_0x35da5d&&typeof _0x35da5d==_0x4ccac0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ccac0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x35da5d)[_0x4ccac0([0x73,0x6f,0x72,0x74])]()[_0x4ccac0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24df55,_0xe44d13])=>{_0x282f55(_0x24df55),_0x4aae47(_0xe44d13);}):_0x282f55(window[_0x4ccac0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x35da5d));}return _0x4aae47(_0x5b325f),_0x1ec33b>>>0x0;}function _0x40dcf2(_0x15bd6b){return _0x15bd6b[_0x4ccac0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ccac0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ccac0([0x30]));}function _0xd426fa(_0x54898d){return _0x54898d[_0x4ccac0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ccac0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ccac0([0x6a,0x6f,0x69,0x6e])]('');}function _0x36066f(_0x383fcb){return _0x11d394[_0x4ccac0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4ccac0([0x68,0x61,0x73])](_0x383fcb);}function _0x7b791c(_0x2db8e3){return _0x11d394[_0x4ccac0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4ccac0([0x67,0x65,0x74])](_0x2db8e3);}function _0x1f0caf(){}function _0x4ccac0(_0x2f255b){return _0x2f255b['map'](_0x2b25b4=>String['fromCharCode'](_0x2b25b4))['join']('');}_0x120c9d(await _0xc10757());}(this);}['createRevision'](_0xd06fa3){const _0x1519f7=this['editor']['plugins']['get']('Users');return new h({'id':_0xd06fa3['id'],'name':_0xd06fa3['name'],'creator':_0xd06fa3['creatorId']?_0x1519f7['getUser'](_0xd06fa3['creatorId']):null,'diffData':_0xd06fa3['diffData']||_0xd06fa3['data'],'authors':_0xd06fa3['authorsIds']['map'](_0x1eeaa2=>_0x1519f7['getUser'](_0x1eeaa2)),'createdAt':new Date(_0xd06fa3['createdAt']),'attributes':_0xd06fa3['attributes'],'fromVersion':_0xd06fa3['fromVersion'],'toVersion':_0xd06fa3['toVersion']});}['addRevision'](_0x1c31d4,_0x493ab7=0x0){this['_revisions']['add'](_0x1c31d4,_0x493ab7);}['getRevision'](_0x2df51f){return this['_revisions']['get'](_0x2df51f);}['getRevisions'](_0x2c1621={'toJSON':!0x1}){const _0x3a3d2c=Array['from'](this['_revisions']);return _0x3a3d2c['reverse'](),_0x2c1621['toJSON']?_0x3a3d2c['map'](_0x18e101=>_0x18e101['toJSON']()):_0x3a3d2c;}['getIndex'](_0x5956e6){return this['_revisions']['getIndex'](_0x5956e6);}['getEarlierVisibleRevision'](_0x1e830e){const [,_0x2fcaa0]=this['getRevisionsIterator'](_0x1e830e,{'direction':'earlier'});return _0x2fcaa0;}['getLaterVisibleRevision'](_0x463559){const [,_0x39ade9]=this['getRevisionsIterator'](_0x463559,{'direction':'later'});return _0x39ade9;}['getRevisionsInDiff'](_0x4c36cd){const _0x24935b=[];for(const _0x1a2fb9 of this['getRevisionsIterator'](_0x4c36cd['newRevisionId']))if(_0x24935b['push'](_0x1a2fb9),_0x1a2fb9['id']===_0x4c36cd['oldRevisionId'])break;return _0x24935b;}*['getRevisionsIterator'](_0x30f1f0,{direction:_0x1ce03a='earlier',filter:_0x117b91=()=>!0x0}={}){const _0x2a4295='earlier'===_0x1ce03a?0x1:-0x1;let _0xf54113=this['_revisions']['get'](_0x30f1f0),_0x4907e0=this['getIndex'](_0xf54113);for(yield _0xf54113;_0xf54113;){if(_0x4907e0+=_0x2a4295,_0xf54113=this['getRevision'](_0x4907e0),!_0xf54113)return;_0x117b91(_0xf54113)&&(yield _0xf54113);}}}class V extends _0x45a363{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x420f3a,'c'],[_0x2d817b,'a'],[_0x4312e5,'e'],[_0x587afd,'r'],[_0x42d2d5,'u']]);['_typeCharToViewClass']=new Map([['c',_0x420f3a],['a',_0x2d817b],['e',_0x4312e5],['r',_0x587afd],['u',_0x42d2d5]]);async['loadRevisionData'](_0x866f15,_0x253533){if(_0x866f15['diffData']||!_0x253533)return;const _0x3ed887=this['editor']['config']['get']('collaboration.channelId'),_0x39387a=await _0x253533['getRevision']({'channelId':_0x3ed887,'revisionId':_0x866f15['id']});_0x866f15['diffData']=_0x39387a['diffData'];}['getRevisionDocumentData'](_0x4ea179){const _0x29b420={};for(const _0x36d9c3 in _0x4ea179['diffData']){if(_0x4ea179['diffData'][_0x36d9c3]['attachChange']&&!_0x4ea179['diffData'][_0x36d9c3]['attachChange']['isAttached'])continue;const _0x5eecc8=this['_removeRevisionMarkers'](JSON['parse'](_0x4ea179['diffData'][_0x36d9c3]['insertions'])),_0x5677ec=this['editor']['editing']['view']['document'],_0x2cd11c=new _0x4e3345(_0x5677ec,_0x5eecc8['map'](_0x1f4b0=>this['_getViewFromDiffObj'](_0x1f4b0,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x29b420[_0x36d9c3]=this['editor']['data']['processor']['toData'](_0x2cd11c),this['editor']['data']['processor']['useFillerType']('default');}return _0x29b420;}['getRevisionRootsAttributes'](_0x337480){const _0x4eaae2={};for(const _0xa0c2eb in _0x337480['diffData'])_0x337480['diffData'][_0xa0c2eb]['attachChange']&&!_0x337480['diffData'][_0xa0c2eb]['attachChange']['isAttached']||(_0x4eaae2[_0xa0c2eb]=_0x337480['diffData'][_0xa0c2eb]['attributesAfter']||{});return _0x4eaae2;}['_getTypeCharForViewElement'](_0x34002c){return this['_viewClassToTypeChar']['get'](_0x34002c['constructor']);}['_getViewFromDiffObj'](_0x4b699d,_0x4b0cca){const _0x42c6a9=this['editor']['editing']['view']['document'];if('string'==typeof _0x4b699d)return new _0x6ac865(_0x42c6a9,_0x4b699d);{let _0x2d445f,_0x9c7dd2;_0x9c7dd2='u'==_0x4b699d['type']||'r'==_0x4b699d['type']?[]:_0x4b699d['children']['map'](_0x4499b7=>this['_getViewFromDiffObj'](_0x4499b7,_0x4b0cca));const _0x4106ac=this['_typeCharToViewClass']['get'](_0x4b699d['type'])||_0x20ed33,_0x4e901a=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2d445f=new _0x4106ac(_0x42c6a9,_0x4b699d['name'],_0x4b699d['attributes'],_0x9c7dd2),'u'==_0x4b699d['type']&&_0x4b699d['children'][0x0]){const _0x12a5bf=_0x4b699d['children'][0x0];if(_0x2d445f['render']=function(_0x23b839){const _0x2fff21=_0x23b839['createElement']('div');return _0x2fff21['innerHTML']=_0x12a5bf,_0x2fff21['childNodes'][0x0];},_0x4b0cca){const _0x3e7110=new _0x4e3345(_0x42c6a9);_0x3e7110['_appendChild'](_0x2d445f);const _0x5ee8cb=Array['from'](_0x4e901a['viewChildrenToDom'](_0x3e7110,{'bind':!0x1})),_0x4bbab9=_0x4e901a['domDocument']['createElement']('div');_0x4bbab9['append'](..._0x5ee8cb),_0x2d445f=Array['from'](_0x4e901a['domChildrenToView'](_0x4bbab9))[0x0];}}else{if('r'==_0x4b699d['type']&&_0x4b699d['children'][0x0]){const _0x402039=_0x4b699d['children'][0x0];if(_0x2d445f['render']=function(_0x20247d){_0x20247d['innerHTML']=_0x402039;},_0x4b0cca){const _0x52f58f=new _0x4e3345(_0x42c6a9);_0x52f58f['_appendChild'](_0x2d445f);const _0x2401b6=Array['from'](_0x4e901a['viewChildrenToDom'](_0x52f58f,{'bind':!0x1})),_0x56db8c=_0x4e901a['domDocument']['createElement']('div');_0x56db8c['append'](..._0x2401b6);const _0x28ce3e=Array['from'](_0x4e901a['domChildrenToView'](_0x56db8c));_0x28ce3e['length']>0x1?_0x2d445f['_appendChild'](_0x28ce3e):_0x2d445f=_0x28ce3e[0x0];}}}if(_0x4b699d['customProperties']){for(const [_0x71f10d,_0x176fea]of _0x4b699d['customProperties'])_0x2d445f['_setCustomProperty'](_0x71f10d,_0x176fea);}const _0x31dcaf=void 0x0===_0x4b699d['fillerOffset']?null:_0x4b699d['fillerOffset'];return null!==_0x31dcaf&&(_0x2d445f['getFillerOffset']=()=>_0x31dcaf),_0x2d445f;}}['_makeModelFromViewString'](_0x19c075){const _0x778ffe=JSON['parse'](_0x19c075),_0xa7c067=this['editor']['editing']['view']['document'],_0x39e3c4=new _0x4e3345(_0xa7c067,_0x778ffe['map'](_0x196ee3=>this['_getViewFromDiffObj'](_0x196ee3,!0x0)));return this['editor']['data']['toModel'](_0x39e3c4);}['_removeRevisionMarkers'](_0x2dc6d2){return(_0x2dc6d2=_0x2dc6d2['filter'](_0x2e28b3=>!_0x2e28b3['name']||'revision-start'!==_0x2e28b3['name']&&'revision-end'!==_0x2e28b3['name']))['forEach'](_0x5f3fff=>{'string'!=typeof _0x5f3fff&&(_0x5f3fff['children']=this['_removeRevisionMarkers'](_0x5f3fff['children']),_0x5f3fff['attributes']=_0x5f3fff['attributes']['filter'](_0x328599=>!_0x328599[0x0]['startsWith']('data-revision-')));}),_0x2dc6d2;}}function g(_0x169b23,_0x2bc023,_0x2110b2){const t=_0x169b23['t'];switch(_0x2bc023){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x2110b2);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2110b2);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x45a363{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3ebfe9,I,V,_0x41a637];}constructor(_0x3c92ef){super(_0x3c92ef),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5906eb=_0x2bb22c();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5906eb},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x3a1f6a=this['repository']['getRevision'](0x0),_0x456abb=_0x3a1f6a&&null===_0x3a1f6a['creator']?_0x3a1f6a:null;if(this['_continueCurrentRevision']=!!_0x456abb&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x48e35f=this['_source']['getCurrentRevisionId'](),_0x57cc3b=this['repository']['getRevision'](_0x48e35f);if(_0x57cc3b)this['_startingVersion']=_0x57cc3b['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x57a6f9=this['_source']['history']['_operations']['find'](_0x37255d=>!_0x37255d['_isInit']),_0x27377b=_0x57a6f9?_0x57a6f9['baseVersion']:this['_source']['history']['version'];_0x3a1f6a?(_0x3a1f6a['toVersion']<_0x27377b&&_0x3a1f6a['_update']({'toVersion':_0x27377b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x456abb['id'],this['_startingVersion']=_0x456abb['fromVersion']):(this['_startingVersion']=_0x3a1f6a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x27377b,this['_continueCurrentRevision']=!0x1);}}else _0x456abb&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x456abb['toVersion'],this['editor']['model']['document']['history']['version']),_0x456abb['fromVersion']===_0x456abb['toVersion']?(0x0!==_0x456abb['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x456abb['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x456abb['id'],this['_startingVersion']=_0x456abb['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x2feadb=>!_0x2feadb),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x14681c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x212ad7;for(const _0x22d116 in _0x14681c){const _0x341a25=_0x22d116,_0x2ff194=_0x14681c[_0x341a25];if('revisionHistoryLicenseKeyValid'==_0x2ff194||'revisionHistoryLicenseKeyInvalid'==_0x2ff194||'revisionHistoryLicenseKeyExpired'==_0x2ff194||'revisionHistoryLicenseKeyDomainLimit'==_0x2ff194||'revisionHistoryLicenseKeyNotAllowed'==_0x2ff194||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2ff194||'revisionHistoryLicenseKeyTrialLimit'==_0x2ff194||'revisionHistoryLicenseKeyUsageLimit'==_0x2ff194){delete _0x14681c[_0x341a25],_0x212ad7=_0x2ff194,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x212ad7&&_0x14681c['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x212ad7&&_0x14681c['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x212ad7&&_0x14681c['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x212ad7&&_0x14681c['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x212ad7&&_0x14681c['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x212ad7&&_0x14681c['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x212ad7&&_0x14681c['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x7da87d=this['repository']['getRevision'](0x0),_0x40f49c=await this['getRevisionDocumentData'](_0x7da87d),_0xb506b6=await this['getRevisionRootsAttributes'](_0x7da87d);this['_replaceEditorDataWithRevisionData'](_0x40f49c,_0xb506b6);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x391bab){this['_source']=_0x391bab;}async['update'](){const _0x45295b=await this['_source']['getLatestVersion']();if(_0x45295b>this['currentRevision']['toVersion']){await this['_loadState']();const _0x19463f=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x45295b});_0x19463f['authors']=_0x19463f['authorsIds']['map'](_0x5e2823=>this['editor']['plugins']['get']('Users')['getUser'](_0x5e2823)),this['currentRevision']['_update'](_0x19463f);}}async['saveRevision'](_0xcc9314={},_0xf4b2ed=null){const _0x5f1e6b=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xf4b2ed>this['currentRevision']['toVersion']&&(_0xf4b2ed=null),null===_0xf4b2ed&&(_0xf4b2ed=await this['_source']['getLatestVersion']());const _0x83c583=this['_getFromVersion'](_0xf4b2ed),_0x5b1467=this['buildRevisionData']({'from':_0x83c583,'to':_0xf4b2ed});if(this['currentRevision']['toVersion']<_0xf4b2ed){const _0x4a32e2=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xf4b2ed,'to':_0xf4b2ed});_0x4a32e2['authors']=[],_0x4a32e2['authorsIds']=[],_0x4a32e2['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4a32e2,!0x0),delete _0x4a32e2['authors'],_0x5f1e6b['push'](_0x4a32e2);}_0xcc9314['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xcc9314['name']=_0xcc9314['name']||null,_0xcc9314['id']=_0xcc9314['id']||_0x2bb22c(),_0xcc9314={..._0xcc9314,..._0x5b1467};const _0x3f5770=this['addRevisionData'](_0xcc9314);_0x5f1e6b['push'](_0xcc9314);const _0x3ed8e1=this['repository']['getIndex'](_0x3f5770);if(0x0!==_0x3ed8e1){const _0x875335=this['repository']['getRevision'](_0x3ed8e1-0x1);if(_0x875335['fromVersion']!==_0xf4b2ed){const _0x40dce=this['_revisionDataBuilder']['getData'](_0xf4b2ed,_0x875335['toVersion']),_0x91b4d7={'id':_0x875335['id'],'diffData':_0x40dce['diffData'],'authorsIds':_0x40dce['authorsIds'],'authors':_0x40dce['authorsIds']['map'](_0x1669ed=>this['editor']['plugins']['get']('Users')['getUser'](_0x1669ed)),'fromVersion':_0xf4b2ed};_0x875335===this['currentRevision']&&(_0x91b4d7['createdAt']=new Date(_0xcc9314['createdAt']['getTime']()+0xa)),_0x875335['_update'](_0x91b4d7,!0x0),delete _0x91b4d7['authors'],_0x5f1e6b['push'](_0x91b4d7);}}if(this['adapter']){for(const _0x18f04b of _0x5f1e6b)this['_bufferUpdate'](_0x18f04b['id'],_0x18f04b,!0x0);this['sendBufferedUpdates']();}return _0x3f5770;}['addRevisionData'](_0xfcc671){const _0x15103d=this['repository']['createRevision'](_0xfcc671);return this['adapter']&&_0x15103d['on']('_update',(_0x3a2357,_0x43cffd,_0x3650d8)=>{_0x3650d8||(this['_bufferUpdate'](_0x43cffd['id'],_0x43cffd,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x15103d,this['_findInsertionIndex'](_0x15103d)),_0x15103d;}async['getRevisionDocumentData'](_0x3b6ea1){return await this['_utils']['loadRevisionData'](_0x3b6ea1,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3b6ea1);}async['getRevisionRootsAttributes'](_0x3c3bda){return await this['_utils']['loadRevisionData'](_0x3c3bda,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3c3bda);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4d5ec2=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x48291e=0x0;_0x48291e<_0x4d5ec2['length'];_0x48291e++){const _0x2f98dd=_0x4d5ec2[_0x48291e];let _0x407e82=!0x1;for(const _0x5b6ca5 of Object['keys'](_0x2f98dd))void 0x0===_0x2f98dd[_0x5b6ca5]?delete _0x2f98dd[_0x5b6ca5]:'id'!==_0x5b6ca5&&(_0x407e82=!0x0);_0x407e82||(_0x4d5ec2[_0x48291e]=null);}if(_0x4d5ec2=_0x4d5ec2['filter'](_0x579875=>null!==_0x579875),!_0x4d5ec2['length'])return;for(let _0x14af3c=0x0;_0x14af3c<_0x4d5ec2['length'];_0x14af3c++){const _0xb64367=_0x4d5ec2[_0x14af3c];void 0x0!==_0xb64367['fromVersion']&&void 0x0===_0xb64367['toVersion']&&(_0xb64367['toVersion']=this['repository']['getRevision'](_0xb64367['id'])['toVersion']),void 0x0!==_0xb64367['toVersion']&&void 0x0===_0xb64367['fromVersion']&&(_0xb64367['fromVersion']=this['repository']['getRevision'](_0xb64367['id'])['fromVersion']);}const _0x2437ce=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4d5ec2,_0x2437ce)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4e6ce8=>{if(_0x4e6ce8){for(const _0x28db0f of _0x4e6ce8)this['setRevisionData']({'id':_0x28db0f['id'],'createdAt':_0x28db0f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x5bec38=null,from:_0xe5506=null,to:_0x30e07f=null}){_0xe5506=null!==_0xe5506?_0xe5506:_0x5bec38['fromVersion'],_0x30e07f=null!==_0x30e07f?_0x30e07f:_0x5bec38['toVersion'];const _0x3e94ce=this['_revisionDataBuilder']['getData'](_0xe5506,_0x30e07f),_0x13beb9={'diffData':_0x3e94ce['diffData'],'authorsIds':_0x3e94ce['authorsIds'],'fromVersion':_0xe5506,'toVersion':_0x30e07f};if(!_0x5bec38||_0x30e07f!==_0x5bec38['toVersion']){const _0xd6c3af=_0x30e07f-0x1,_0x33562b=this['_source']['history']['getOperation'](_0xd6c3af);_0x13beb9['createdAt']=_0x33562b&&_0x33562b['createdAt']||new Date();}if(this['_loadedStateData']&&_0xe5506===this['_loadedStateData']['fromVersion']){for(const _0x5a6cd5 of this['_loadedStateData']['authors'])_0x13beb9['authorsIds']['includes'](_0x5a6cd5['id'])||_0x13beb9['authorsIds']['push'](_0x5a6cd5['id']);}return _0x13beb9;}['_bufferUpdate'](_0x3e3d7b,_0xfab600,_0x4196b4){if(this['_bufferedUpdates']['has'](_0x3e3d7b)){const _0x4c6f8e=this['_bufferedUpdates']['get'](_0x3e3d7b);_0xfab600=_0x4196b4?{..._0x4c6f8e,..._0xfab600}:{..._0xfab600,..._0x4c6f8e};}this['_bufferedUpdates']['set'](_0x3e3d7b,_0xfab600);}['setRevisionData'](_0x97bebe){const _0x2c338b=this['repository']['getRevision'](_0x97bebe['id']);if(_0x97bebe['createdAt']&&(_0x97bebe['createdAt']=new Date(_0x97bebe['createdAt'])),_0x97bebe['authorsIds']){const _0xea20ab=this['editor']['plugins']['get']('Users');_0x97bebe['authors']=_0x97bebe['authorsIds']['map'](_0x1c779b=>_0xea20ab['getUser'](_0x1c779b));}_0x2c338b['_update'](_0x97bebe,!0x0);}['_createInitialRevision'](_0x4dff95){const _0x2d3c8f=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2d3c8f)this['_initialRevisionId']=_0x2d3c8f['id'];else{const _0x490ba4=!this['editor']['model']['document']['roots']['find'](_0x9c2218=>this['editor']['model']['hasContent'](_0x9c2218)),_0x4da022=this['editor']['plugins']['get']('Users')['me']['id'],_0x5d6075=g(this['editor']['locale'],_0x490ba4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4dff95,'to':_0x4dff95,'id':this['_initialRevisionId'],'name':_0x5d6075,'creatorId':_0x4da022});}}['_createCurrentRevision'](_0x4caa86){const _0x3f6547=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3f6547),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4caa86,'to':_0x4caa86,'id':_0x3f6547,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0xb8612f,_0x1d48f1){let _0x1a4ee5=this['editor']['config']['get']('initialData'),_0x2cbb84=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1a4ee5){_0x1a4ee5={};for(const _0x487ccc of this['editor']['model']['document']['getRootNames']())_0x1a4ee5[_0x487ccc]='';}if('string'==typeof _0x1a4ee5&&(_0x1a4ee5={'main':_0x1a4ee5}),void 0x0===_0x2cbb84){_0x2cbb84={};for(const _0x121d92 of this['editor']['model']['document']['getRootNames']())_0x2cbb84[_0x121d92]={};}let _0x58fd6f=!0x1;const _0x6b1ae2=Object['keys'](_0x1a4ee5),_0x34c037=Object['keys'](_0xb8612f);for(const _0x4ff3ec of _0x6b1ae2){if(_0x1a4ee5[_0x4ff3ec]!==_0xb8612f[_0x4ff3ec]&&''!==_0x1a4ee5[_0x4ff3ec]['trim']()){_0x58fd6f=!0x0;break;}if(!_0x47bd75(_0x2cbb84[_0x4ff3ec],_0x1d48f1[_0x4ff3ec])&&Object['keys'](_0x2cbb84[_0x4ff3ec])['length']>0x0){_0x58fd6f=!0x0;break;}}_0x58fd6f||(_0x58fd6f=_0x34c037['some'](_0x1f81af=>!this['editor']['model']['document']['getRoot'](_0x1f81af))),_0x58fd6f&&_0x4b9dae('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1a4ee5,'editorRootsAttributes':_0x2cbb84,'revisionData':_0xb8612f,'revisionRootsAttributes':_0x1d48f1}),this['editor']['config']['set']('initialData',_0xb8612f),this['editor']['config']['set']('rootsAttributes',_0x1d48f1);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x119488=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x119488['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x390b5e){const _0x3e052c=this['repository']['getRevisions']();_0x3e052c['reverse']();let _0x268dd9=0x0;for(;_0x268dd9<_0x3e052c['length'];){const _0x32fcfa=_0x3e052c[_0x268dd9];if(_0x32fcfa===this['currentRevision']){_0x268dd9++;continue;}if(_0x32fcfa['id']===this['_initialRevisionId'])break;const _0x39f4cf=_0x390b5e['toVersion']-_0x32fcfa['toVersion']||_0x390b5e['fromVersion']-_0x32fcfa['fromVersion'];if(_0x39f4cf>0x0)break;if(_0x39f4cf<0x0)_0x268dd9++;else{if(!_0x390b5e['creator']&&_0x32fcfa['creator'])break;if(_0x32fcfa['creator']||!_0x390b5e['creator']){if(_0x390b5e['createdAt']>_0x32fcfa['createdAt'])break;_0x268dd9++;}else _0x268dd9++;}}return _0x268dd9;}['_getFromVersion'](_0x4ee24c){const _0x189765=this['repository']['getRevisions']();_0x189765['reverse'](),_0x189765['shift']();const _0x336840=_0x189765['find'](_0x12dd80=>_0x12dd80['toVersion']<=_0x4ee24c)['toVersion'];return _0x336840<this['_startingVersion']?this['_startingVersion']:_0x336840;}['_makeRevision']({name:_0x2768f2,from:_0x315793,to:_0x16d293,creatorId:_0x36c07f,id:_0x4b94dd}){const _0x3b44e7=this['buildRevisionData']({'from':_0x315793,'to':_0x16d293});_0x3b44e7['name']=_0x2768f2,_0x3b44e7['creatorId']=_0x36c07f,_0x3b44e7['id']=_0x4b94dd;const _0x2b86fc=this['addRevisionData'](_0x3b44e7);return this['adapter']&&this['_bufferUpdate'](_0x3b44e7['id'],_0x3b44e7,!0x0),_0x2b86fc;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x46314f){this['editor']=_0x46314f,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x542ced){this['source']=_0x542ced;const _0x3630c9=new Map(),_0x311578=new Map(),_0x55cd94=this['editor']['model']['document']['roots']['map'](_0x32f6d3=>_0x32f6d3['rootName']);for(const _0x447d8b of _0x55cd94){const _0xab46bb=this['editor']['model']['document']['getRoot'](_0x447d8b),_0x2f8029=N(_0xab46bb);_0x3630c9['set'](_0x447d8b,_0x2f8029),_0x311578['set'](_0x447d8b,Object['fromEntries'](_0xab46bb['getAttributes']()));}const _0x44b5df=Array['from'](this['editor']['model']['markers'])['map'](_0xecaf53=>[_0xecaf53['name'],_0xecaf53['getRange']()]),_0x2c24e3=this['source']['version'];this['_saveMetaData'](_0x2c24e3,_0x3630c9,_0x44b5df,_0x311578),this['_startingRevisionId']=this['_revisionId'];const _0x1a0f77=new Map(),_0x11f474=new Map();for(const _0x55d6b4 of _0x55cd94){const _0x53a87f=P(_0x55d6b4);_0x1a0f77['set'](_0x55d6b4,_0x53a87f),_0x11f474['set'](_0x55d6b4,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1a0f77,[],_0x11f474);}['getData'](_0x4614cd,_0xcad023){if(this['_lastFrom']===_0x4614cd&&this['_lastTo']<=_0xcad023)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xcad023,!0x0);else{if(!this['_savedMetaData']['has'](_0x4614cd)){const _0xe4e412=this['_getPreviousFrom'](_0x4614cd);this['_calculateMetaData'](_0xe4e412,_0x4614cd,!0x1);}this['_calculateMetaData'](_0x4614cd,_0xcad023,!0x0);}return this['_lastFrom']=_0x4614cd,this['_lastTo']=_0xcad023,this['_getState']();}['loadState'](_0x583aa3){const _0x5b448d=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x583aa3['fromVersion'],this['_lastTo']=_0x583aa3['toVersion'];for(const _0xb6e7be in _0x583aa3['diffData']){const _0xf6fd78=_0x583aa3['diffData'][_0xb6e7be]['attachChange'],_0x2f396a=_0x582ae0(_0x583aa3['diffData'][_0xb6e7be]['attributesBefore'])||{},_0x2a1e45=_0x5b448d['_makeModelFromViewString'](_0x583aa3['diffData'][_0xb6e7be]['deletions']);_0x2a1e45['rootName']=_0xb6e7be,_0x2a1e45['_isAttached']=!_0xf6fd78||!_0xf6fd78['isAttached'],_0x2a1e45['isAttached']=()=>_0x2a1e45['_isAttached'],this['_baseRoots']['set'](_0xb6e7be,_0x2a1e45),this['_baseRootsAttributes']['set'](_0xb6e7be,_0x2f396a),_0xf6fd78&&this['_touchedRoots']['set'](_0xb6e7be,_0xf6fd78);const _0x43a034=this['_makeIdsRoot'](_0x2a1e45);this['_baseIdsRoots']['set'](_0xb6e7be,_0x43a034);for(const [_0xa3afc9,_0x2f7e4c]of _0x2a1e45['markers']){if(!_0xa3afc9['startsWith']('revision:'))continue;const _0x4abdf0=_0xa3afc9['split'](':')[0x2];for(const _0x58ec70 of _0x2f7e4c['getWalker']({'singleCharacters':!0x0})){const _0x1701e7=this['_getVidAttributeName'](_0x58ec70),_0x552765='elementEnd'==_0x58ec70['type']?_0x58ec70['previousPosition']['path']['slice'](0x0,-0x1):_0x58ec70['previousPosition']['path'],_0x1e7729=_0x43a034['getNodeByPath'](_0x552765)['getAttribute'](_0x1701e7);this['_touched']['set'](_0x1e7729,{'userId':_0x4abdf0});}}}this['_startingRevisionId']=this['_revisionId'];const _0x11d826=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x587f58=>!this['_touched']['has'](_0x587f58));let _0x5bc447=0x0;const _0x54955e=new Map();for(const _0xf55c26 in _0x583aa3['diffData']){const _0x1676a7=_0x583aa3['diffData'][_0xf55c26]['attachChange'],_0x407d01=_0x582ae0(_0x583aa3['diffData'][_0xf55c26]['attributesAfter'])||{},_0x662436=_0x5b448d['_makeModelFromViewString'](_0x583aa3['diffData'][_0xf55c26]['insertions']);_0x662436['rootName']=_0xf55c26,_0x662436['_isAttached']=!_0x1676a7||_0x1676a7['isAttached'],_0x662436['isAttached']=()=>_0x662436['_isAttached'],this['_diffRoots']['set'](_0xf55c26,_0x662436),this['_diffRootsAttributes']['set'](_0xf55c26,_0x407d01);const _0x49920b=this['_makeIdsRoot'](_0x662436,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xf55c26,_0x49920b),_0x54955e['set'](_0xf55c26,_0x662436['isAttached']()?_0x407d01:{});for(const [_0x5024ac,_0xc7e43a]of _0x662436['markers']){if(!_0x5024ac['startsWith']('revision:'))continue;const _0x324048=_0x5024ac['split'](':')[0x2];for(const _0x459294 of _0xc7e43a['getWalker']({'singleCharacters':!0x0})){const _0x56baa9=this['_getVidAttributeName'](_0x459294),_0x93f2b3=this['_revisionId']++,_0x4d7a48='elementEnd'==_0x459294['type']?_0x459294['previousPosition']['path']['slice'](0x0,-0x1):_0x459294['previousPosition']['path'];_0x49920b['getNodeByPath'](_0x4d7a48)['_setAttribute'](_0x56baa9,_0x93f2b3),this['_touched']['set'](_0x93f2b3,{'userId':_0x324048});}}for(const _0x41d25a of this['editor']['model']['createRangeIn'](_0x662436)['getWalker']({'singleCharacters':!0x0})){const _0x390a61=this['_getVidAttributeName'](_0x41d25a),_0x2b3a68='elementEnd'==_0x41d25a['type']?_0x41d25a['previousPosition']['path']['slice'](0x0,-0x1):_0x41d25a['previousPosition']['path'],_0x1da07f=_0x49920b['getNodeByPath'](_0x2b3a68);_0x1da07f['getAttribute'](_0x390a61)>0x0||_0x1da07f['_setAttribute'](_0x390a61,_0x11d826[_0x5bc447++]);}for(const [_0x3244dc,_0x448ce8]of _0x662436['markers'])_0x3244dc['startsWith']('revision:')||this['_markers']['set'](_0x3244dc,_0x448ce8);}const _0x3b7bf0=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3b7bf0),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3b7bf0,0x1));const _0x36dea4=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x36dea4),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x36dea4,0x1));const _0x1e4973=Array['from'](this['_diffRoots'])['map'](([_0x5a25f7,_0x396b5e])=>[_0x5a25f7,N(_0x396b5e)]);this['_saveMetaData'](this['_lastTo'],_0x1e4973,this['_markers'],_0x54955e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x59673c,_0x200a52,_0x4532c9,_0x52b2ff){const _0x50c2ec=new Map(_0x200a52),_0x3e6a67=new Map(_0x582ae0(_0x52b2ff)),_0x45df52=new Map();for(const [_0x30cc80,_0x420cbe]of _0x4532c9)_0x45df52['set'](_0x30cc80,{'start':_0x420cbe['start']['clone'](),'end':_0x420cbe['end']['clone'](),'rootName':_0x420cbe['root']['rootName']});this['_savedMetaData']['set'](_0x59673c,{'roots':_0x50c2ec,'markers':_0x45df52,'rootsAttributes':_0x3e6a67});}['_removeMetaData'](_0x42ddfb){this['_savedMetaData']['delete'](_0x42ddfb);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x566c46,_0x14dda3=null){let _0x456e0d=null;_0x566c46['is']('documentFragment')||(_0x456e0d=new ut(_0x566c46['name'],{'vid_start':null===_0x14dda3?this['_revisionId']++:_0x14dda3++}));const _0x2e6942=[];for(const _0x23fe13 of _0x566c46['getChildren']())if(_0x23fe13['is']('element')){_0x2e6942['push'](this['_makeIdsRoot'](_0x23fe13,_0x14dda3));const _0x531b32=_0x2e6942[_0x2e6942['length']-0x1];null!==_0x14dda3&&(_0x14dda3=_0x531b32['is']('element','$text')?_0x531b32['getAttribute']('vid')+0x1:_0x531b32['getAttribute']('vid_end')+0x1);}else{for(let _0x76b751=0x0;_0x76b751<_0x23fe13['offsetSize'];_0x76b751++)_0x2e6942['push'](new ut('$text',{'vid':null===_0x14dda3?this['_revisionId']++:_0x14dda3++}));}if(_0x566c46['is']('documentFragment')){const _0x27f0d8=P(_0x566c46['rootName']);return _0x27f0d8['_insertChild'](0x0,_0x2e6942),_0x27f0d8;}return _0x456e0d['_setAttribute']('vid_end',null===_0x14dda3?this['_revisionId']++:_0x14dda3++),_0x456e0d['_insertChild'](0x0,_0x2e6942),_0x456e0d;}['_calculateMetaData'](_0x4f5ded,_0x2c3ae0,_0x5dc203){this['_reset']();const {roots:_0x2e83c1,markers:_0x507b14,rootsAttributes:_0x45f185}=this['_savedMetaData']['get'](_0x4f5ded);this['_baseRoots']=new Map(_0x2e83c1),this['_baseRootsAttributes']=new Map(_0x582ae0(_0x45f185));for(const [_0x47c819,_0x40df20]of this['_baseRoots'])if('$graveyard'!==_0x47c819&&(this['_diffRoots']['set'](_0x47c819,N(_0x40df20)),this['_diffRootsAttributes']=new Map(_0x582ae0(_0x45f185)),_0x5dc203)){const _0x2a23f4=this['_revisionId'];this['_idsRoots']['set'](_0x47c819,this['_makeIdsRoot'](_0x40df20)),this['_baseIdsRoots']['set'](_0x47c819,this['_makeIdsRoot'](_0x40df20,_0x2a23f4));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x5dc203&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x143e4d,_0x356655]of _0x507b14){const _0x3ce54d=this['_baseRoots']['get'](_0x356655['rootName']),_0x5b7b53=this['_diffRoots']['get'](_0x356655['rootName']),_0x3ba45a=new ft(this['_fixPosition'](_0x356655['start'],_0x3ce54d),this['_fixPosition'](_0x356655['end'],_0x3ce54d)),_0x5eced4=this['_fixRange'](_0x3ba45a,_0x5b7b53);_0x3ce54d['markers']['set'](_0x143e4d,_0x3ba45a),this['_markers']['set'](_0x143e4d,_0x5eced4);}this['_applyOperations'](_0x4f5ded,_0x2c3ae0,_0x5dc203);}['_applyOperations'](_0x4ce72e,_0x576256,_0xba48a1){for(const _0xe9a828 of this['source']['getOperations'](_0x4ce72e,_0x576256))this['_handleOperation'](_0xe9a828,_0xba48a1);for(const _0x3f9a47 of this['_diffRoots']['values']())_0x3f9a47['markers']['clear']();for(const [_0x589e22,_0x44a910]of this['_markers']){this['_diffRoots']['get'](_0x44a910['root']['rootName'])['markers']['set'](_0x589e22,_0x44a910['clone']());}const _0x2a0c70=new Map(),_0x820aa8=new Map();for(const [_0x4248af,_0x579b6e]of this['_diffRoots'])_0x2a0c70['set'](_0x4248af,N(_0x579b6e)),_0x820aa8['set'](_0x4248af,this['_diffRootsAttributes']['get'](_0x4248af));this['_saveMetaData'](_0x576256,_0x2a0c70,this['_markers'],_0x820aa8);}['_getPreviousFrom'](_0x25bc3b){const _0x32c49d=Array['from'](this['_savedMetaData']['keys']());_0x32c49d['sort']((_0x146404,_0x3434e0)=>_0x146404-_0x3434e0),_0x32c49d['reverse']();for(const _0x5e6d7c of _0x32c49d)if(_0x5e6d7c<_0x25bc3b)return _0x5e6d7c;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x13ded0,_0x3e7e83){const _0x108daf=Array['from'](_0x3e7e83['markers'])['map'](([_0x4257e1,_0x5d0d65])=>[_0x4257e1,this['_fixRange'](_0x5d0d65,_0x13ded0)]);_0x13ded0['markers']=new Map(_0x108daf);}['_transformMarkers'](_0x12970b){for(const _0x31c2a8 of this['_markers']['values']()){const _0x43141c=_0x31c2a8['getTransformedByOperation'](_0x12970b),_0x1dabab=ft['_createFromRanges'](_0x43141c);_0x31c2a8['start']=_0x1dabab['start'],_0x31c2a8['end']=_0x1dabab['end'];}}['_handleOperation'](_0x309fa9,_0x3768e9){if('addRoot'!=_0x309fa9['type']&&'detachRoot'!=_0x309fa9['type']){if('insert'==_0x309fa9['type']){const _0x80b19c=_0x309fa9['position']['root']['rootName'];this['_diffRoots']['has'](_0x80b19c)||(this['_diffRoots']['set'](_0x80b19c,P(_0x80b19c,!0x0)),this['_diffRootsAttributes']['set'](_0x80b19c,{}),_0x3768e9&&this['_idsRoots']['set'](_0x80b19c,P(_0x80b19c,!0x0)));}else{if('addRootAttribute'==_0x309fa9['type']||'removeRootAttribute'==_0x309fa9['type']||'changeRootAttribute'==_0x309fa9['type'])return void this['_handleRootAttributeOperation'](_0x309fa9);'marker'==_0x309fa9['type']&&this['_handleMarkerOperation'](_0x309fa9);}if('marker'!==_0x309fa9['type']){const _0x3d819d=this['_cloneOperation'](_0x309fa9,this['_diffRoots']);_0x3d819d['_execute'](),this['_transformMarkers'](_0x3d819d);}if(_0x3768e9)switch(_0x309fa9['type']){case'insert':this['_handleInsertOperation'](_0x309fa9);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x309fa9);break;case'merge':this['_handleMergeOperation'](_0x309fa9);break;case'split':this['_handleSplitOperation'](_0x309fa9);}}else this['_handleRootOperation'](_0x309fa9,_0x3768e9);}['_cloneOperation'](_0x364cce,_0x343775){const _0x2a2561=_0x364cce['clone']();return _0x2a2561['_authorId']=_0x364cce['_authorId'],this['_fixOperation'](_0x2a2561,_0x343775),_0x2a2561;}['_getBaseVids'](_0x929133){return _0x929133['map'](_0x1efdde=>{const _0x56b014=this['_getVidAttributeName'](_0x1efdde);return Number(_0x1efdde['item']['getAttribute'](_0x56b014));});}['_generateTape'](_0x7beacc,_0x324c49){if(_0x7beacc['is']('element','$text'))_0x324c49['push']({'item':_0x7beacc,'type':'text'});else{_0x7beacc['is']('element')&&_0x324c49['push']({'item':_0x7beacc,'type':'elementStart'});for(const _0x16544a of _0x7beacc['getChildren']())this['_generateTape'](_0x16544a,_0x324c49);_0x7beacc['is']('element')&&_0x324c49['push']({'item':_0x7beacc,'type':'elementEnd'});}return _0x324c49;}['_getState'](){const _0x2ed56c=new Map(this['_touched']),_0x1c7ac6=new Map(_0x2ed56c),_0x499d0d=new Map(),_0x1a5944={'insertions':{},'deletions':{}},_0x2d27b8={'insertions':{},'deletions':{}},_0x24a0ea=new Map(),_0x16d167=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x16d167['delete']('$graveyard');for(const _0x2bb08e of _0x16d167){const _0x44f1f7=this['_diffRoots']['get'](_0x2bb08e)||P(_0x2bb08e,!0x1),_0x404295=this['_baseRoots']['get'](_0x2bb08e)||P(_0x2bb08e,!0x1);_0x44f1f7['isAttached']()||_0x404295['isAttached']()?(_0x1a5944['insertions'][_0x2bb08e]=N(_0x44f1f7),_0x1a5944['deletions'][_0x2bb08e]=N(_0x404295),this['_copyMarkers'](_0x1a5944['deletions'][_0x2bb08e],_0x404295),this['_copyMarkers'](_0x1a5944['insertions'][_0x2bb08e],_0x44f1f7),_0x2d27b8['insertions'][_0x2bb08e]=this['_generateTape'](this['_idsRoots']['get'](_0x2bb08e),[]),_0x2d27b8['deletions'][_0x2bb08e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2bb08e)||P(_0x2bb08e,!0x1),[])):_0x16d167['delete'](_0x2bb08e);}for(const _0xdc812e of _0x16d167){const _0x5cd06f=_0x2d27b8['insertions'][_0xdc812e];for(const _0x15037f of _0x5cd06f){const _0x3132c7=this['_getVidAttributeName'](_0x15037f),_0x19bd3a=_0x15037f['item']['getAttribute'](_0x3132c7);_0x1c7ac6['delete'](_0x19bd3a),_0x19bd3a>=this['_startingRevisionId']&&_0x499d0d['set'](_0x19bd3a,_0x2ed56c['get'](_0x19bd3a));}}for(const _0x256c43 of _0x16d167){const _0x5ad4aa=_0x2d27b8['insertions'][_0x256c43],_0x2b33a3=this['_getBaseVids'](_0x2d27b8['deletions'][_0x256c43]);let _0x4c8d65=0x0;for(const _0x364f27 of _0x5ad4aa){const _0x47aee2=this['_getVidAttributeName'](_0x364f27),_0x5922b5=_0x364f27['item']['getAttribute'](_0x47aee2);if(!_0x499d0d['has'](_0x5922b5)&&!_0x24a0ea['has'](_0x5922b5)){if(_0x1c7ac6['has'](_0x5922b5))_0x4c8d65++;else{if(_0x5922b5!=_0x2b33a3[_0x4c8d65]){const _0x1848ae=_0x2ed56c['get'](_0x5922b5)||_0x2ed56c['get'](_0x2b33a3[_0x4c8d65]);for(;_0x5922b5!=_0x2b33a3[_0x4c8d65];)_0x1c7ac6['has'](_0x2b33a3[_0x4c8d65])||(_0x24a0ea['set'](_0x2b33a3[_0x4c8d65],_0x1848ae),_0x2ed56c['set'](_0x2b33a3[_0x4c8d65],_0x1848ae)),_0x4c8d65++;}_0x4c8d65++;}}}}for(const _0x5ba900 of _0x16d167){const _0x392810=_0x2d27b8['insertions'][_0x5ba900];for(const _0x1c72a7 of _0x392810){const _0x572355=this['_getVidAttributeName'](_0x1c72a7),_0x15c357=_0x1c72a7['item']['getAttribute'](_0x572355);if(_0x24a0ea['has'](_0x15c357)){const _0x277c26=_0x24a0ea['get'](_0x15c357);_0x1c7ac6['has'](_0x15c357)||_0x1c7ac6['set'](_0x15c357,{..._0x277c26}),_0x499d0d['set'](_0x15c357,{..._0x277c26});}}}for(const _0xa8b120 of _0x1c7ac6['keys']())_0xa8b120>=this['_startingRevisionId']&&_0x1c7ac6['delete'](_0xa8b120);const _0x4738bf=new Map();for(const _0x2407d8 of _0x16d167){let _0x155e0c=_0x2d27b8['insertions'][_0x2407d8];for(const _0xf84d66 of _0x155e0c)if(_0xf84d66['item']['is']('element','tableCell')){const _0x158610=this['_getVidAttributeName'](_0xf84d66),_0x3739d3=_0xf84d66['item']['getAttribute'](_0x158610);if(_0x499d0d['has'](_0x3739d3)){const _0x5efa20=_0xf84d66['item']['parent']['parent']['getAttribute']('vid_start'),_0x57a61b=_0x4738bf['get'](_0x5efa20)||new Set();_0x57a61b['add'](_0x499d0d['get'](_0x3739d3)['userId']),_0x4738bf['set'](_0x5efa20,_0x57a61b);}}_0x155e0c=_0x2d27b8['deletions'][_0x2407d8];for(const _0x1ab183 of _0x155e0c)if(_0x1ab183['item']['is']('element','tableCell')){const _0x4ac9ba=this['_getVidAttributeName'](_0x1ab183),_0x5e6409=_0x1ab183['item']['getAttribute'](_0x4ac9ba);if(_0x1c7ac6['has'](_0x5e6409)){const _0x19cfcb=_0x1ab183['item']['parent']['parent']['getAttribute']('vid_start'),_0x54ff4f=_0x4738bf['get'](_0x19cfcb)||new Set();_0x54ff4f['add'](_0x1c7ac6['get'](_0x5e6409)['userId']),_0x4738bf['set'](_0x19cfcb,_0x54ff4f);}}for(const _0x4aa1e6 of _0x4738bf['keys']())(_0x499d0d['has'](_0x4aa1e6)||_0x1c7ac6['has'](_0x4aa1e6))&&_0x4738bf['delete'](_0x4aa1e6);}for(const _0x16cdfb of _0x16d167){const _0x4c08ef=_0x2d27b8['insertions'][_0x16cdfb];let _0x24d309=null,_0xc0bd98=null;for(const _0x3f46d9 of _0x4c08ef){const _0x4282e1=this['_getVidAttributeName'](_0x3f46d9),_0x30ad9c=_0x3f46d9['item']['getAttribute'](_0x4282e1),_0x2b1cef=_0x4738bf['get'](_0x30ad9c);_0x2b1cef&&'elementStart'==_0x3f46d9['type']&&(_0x24d309=Array['from'](_0x2b1cef)[0x0],_0xc0bd98=_0x3f46d9['item']['getAttribute']('vid_end')),_0x24d309&&(_0x1c7ac6['set'](_0x30ad9c,{'userId':_0x24d309}),_0x499d0d['set'](_0x30ad9c,{'userId':_0x24d309})),_0x30ad9c==_0xc0bd98&&(_0x24d309=null,_0xc0bd98=null);}}const _0x986c69={},_0x58605b=new Set();for(const _0x429f9f of _0x16d167){const _0x22f6ae=_0x1a5944['deletions'][_0x429f9f],_0x78194c=_0x1a5944['insertions'][_0x429f9f];for(const {userId:_0x511b26}of this['_touchedMarkers']['values']())null!==_0x511b26&&_0x58605b['add'](_0x511b26);for(const {userId:_0x2b0375}of this['_touchedRoots']['values']())null!==_0x2b0375&&_0x58605b['add'](_0x2b0375);this['_markChanges'](_0x78194c,_0x2d27b8['insertions'][_0x429f9f],_0x499d0d,'insertion',_0x58605b),this['_markChanges'](_0x22f6ae,_0x2d27b8['deletions'][_0x429f9f],_0x1c7ac6,'deletion',_0x58605b),_0x986c69[_0x429f9f]={'insertions':this['_prepareViewToSave'](_0x78194c),'deletions':this['_prepareViewToSave'](_0x22f6ae),'attachChange':this['_touchedRoots']['get'](_0x429f9f)||null,'attributesBefore':_0x582ae0(this['_baseRootsAttributes']['get'](_0x429f9f))||{},'attributesAfter':_0x582ae0(this['_diffRootsAttributes']['get'](_0x429f9f))};}return{'diffData':_0x986c69,'authorsIds':Array['from'](_0x58605b)};}['_processRootBeforeSave'](_0x5f5c47){for(const [,_0x325021]of _0x5f5c47['markers']){const _0x381154=_0x325021['start']['getAncestors']()['filter'](_0x45d6eb=>'tableCell'==_0x45d6eb['name']);for(const _0x5bf56f of _0x381154)0x1==_0x5bf56f['childCount']&&_0x5bf56f['getChild'](0x0)['is']('element','paragraph')&&_0x5bf56f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x487473){this['_processRootBeforeSave'](_0x487473);const _0x32067f=this['editor']['data']['toView'](_0x487473,{}),_0x30dc62=Array['from'](_0x32067f['getChildren']())['map'](_0x49a024=>this['_getViewJson'](_0x49a024));return JSON['stringify'](_0x30dc62);}['_getViewJson'](_0x3c7d5e){if(_0x3c7d5e['is']('$text'))return _0x3c7d5e['data'];{const _0x594f9b=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5682fd=_0x3c7d5e,_0x441f52=this['editor']['data']['htmlProcessor']['domConverter'],_0x344e28={'type':_0x594f9b['_getTypeCharForViewElement'](_0x5682fd),'name':_0x5682fd['name'],'attributes':Array['from'](_0x5682fd['getAttributes']()),'children':Array['from'](_0x5682fd['getChildren']())['map'](_0x5d27ac=>this['_getViewJson'](_0x5d27ac))};if(_0x3c7d5e['is']('uiElement')&&'$comment'!=_0x3c7d5e['name']){const _0x376d93=_0x3c7d5e['render'](_0x441f52['domDocument'],_0x441f52);_0x344e28['children']['push'](_0x376d93['outerHTML']);}else{if(_0x3c7d5e['is']('rawElement')){const _0x784c0b=_0x441f52['domDocument']['createElement'](_0x5682fd['name']);_0x3c7d5e['render'](_0x784c0b,_0x441f52),_0x344e28['children']['push'](_0x784c0b['innerHTML']);}}const _0x1c6eb5=Array['from'](_0x5682fd['getCustomProperties']());_0x1c6eb5['length']>0x0&&(_0x344e28['customProperties']=_0x1c6eb5);const _0xd678ee=_0x5682fd['getFillerOffset']();return null!==_0xd678ee&&(_0x344e28['fillerOffset']=_0xd678ee),_0x344e28;}}['_markChanges'](_0x41cea1,_0xde5b82,_0xd96246,_0xb470e7,_0x536a1b){let _0x3e0f95=null,_0x309e2e=null,_0x156fa6=0x0;const _0x53db17=this['editor']['model'];for(let _0x381e00=0x0;_0x381e00<_0xde5b82['length'];_0x381e00++){const _0x4aba90=this['_getVidAttributeName'](_0xde5b82[_0x381e00]),_0x25bc13=_0xde5b82[_0x381e00]['item']['getAttribute'](_0x4aba90),_0x2e3f7d=_0xd96246['get'](_0x25bc13),_0x17831c=_0x381e00==_0xde5b82['length']-0x1;(!_0x3e0f95&&_0x2e3f7d&&(_0x3e0f95=_0x2e3f7d,_0x309e2e=_0xde5b82[_0x381e00]),_0x3e0f95&&(!_0x2e3f7d||_0x2e3f7d['userId']!=_0x3e0f95['userId']))&&(_0x4c2dd9(_0x2e3f7d,F(_0x309e2e,_0x41cea1,_0x53db17),F(_0xde5b82[_0x381e00],_0x41cea1,_0x53db17)),_0x3e0f95=_0x2e3f7d||null,_0x309e2e=_0x2e3f7d?_0xde5b82[_0x381e00]:null),_0x3e0f95&&_0x17831c&&_0x4c2dd9(_0x2e3f7d,F(_0x309e2e,_0x41cea1,_0x53db17),B(_0xde5b82[_0x381e00],_0x41cea1,_0x53db17));}function _0x4c2dd9(_0x6e4540,_0x15e951,_0x529e0c){const _0x4d9d87=_0x3e0f95['userId'],_0x12a6c5='revision:'+_0xb470e7+':'+_0x4d9d87+':'+_0x156fa6++,_0x408320=_0x53db17['createRange'](_0x15e951,_0x529e0c);_0x41cea1['markers']['set'](_0x12a6c5,_0x408320),null!==_0x4d9d87&&_0x536a1b['add'](_0x4d9d87);}}['_getVidAttributeName'](_0x38e727){switch(_0x38e727['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1ebd24,_0x46653f){_0x1ebd24['baseVersion']=null;for(const _0x8005a1 in _0x1ebd24){const _0xae5264=_0x1ebd24[_0x8005a1];if(_0xae5264 instanceof vt){const _0xed3846=_0x46653f['get'](_0xae5264['root']['rootName']);_0x1ebd24[_0x8005a1]=this['_fixPosition'](_0xae5264,_0xed3846);}if(_0xae5264 instanceof ft){const _0x198661=_0x46653f['get'](_0xae5264['root']['rootName']);_0x1ebd24[_0x8005a1]=this['_fixRange'](_0xae5264,_0x198661);}'root'===_0x8005a1&&(_0x1ebd24['root']=_0x46653f['get'](_0x1ebd24['root']['rootName']));}}['_fixRange'](_0x394237,_0x3ef4e6){return this['editor']['model']['createRange'](this['_fixPosition'](_0x394237['start'],_0x3ef4e6),this['_fixPosition'](_0x394237['end'],_0x3ef4e6));}['_fixPosition'](_0x356c6b,_0x26fa01){return this['editor']['model']['createPositionFromPath'](_0x26fa01,_0x356c6b['path'],_0x356c6b['stickiness']);}['_handleInsertOperation'](_0x212b69){const _0x4d3c7c=this['_idsRoots']['get'](_0x212b69['position']['root']['rootName']),_0x4cf301=this['_fixPosition'](_0x212b69['position'],_0x4d3c7c),_0x1da57b=null===_0x212b69['_authorId']?null:_0x212b69['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e0e5f=_0x4cf301['parent'],_0x4941d6=this['_revisionId'],_0x4c608e=[];for(const _0x6770b7 of _0x212b69['nodes'])if(_0x6770b7['is']('element'))_0x4c608e['push'](this['_makeIdsRoot'](_0x6770b7));else{for(let _0x2b6d54=0x0;_0x2b6d54<_0x6770b7['offsetSize'];_0x2b6d54++)_0x4c608e['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x1a540f=this['_revisionId'];for(let _0x5ec539=_0x4941d6;_0x5ec539<_0x1a540f;_0x5ec539++)this['_touched']['set'](_0x5ec539,{'userId':_0x1da57b});_0x4e0e5f['_insertChild'](_0x4cf301['offset'],_0x4c608e);}['_handleMoveOperation'](_0x315ef3){(_0x315ef3=this['_cloneOperation'](_0x315ef3,this['_idsRoots']))['_execute']();const _0x170539=null===_0x315ef3['_authorId']?null:_0x315ef3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x21e38d=_0x315ef3['getMovedRangeStart'](),_0x294528=_0x21e38d['parent'],_0x2811f2=_0x21e38d['offset'];!function _0x168391(_0x557d80,_0x37f6bf,_0x20202f,_0x2b948b){for(let _0x1c2c82=_0x20202f;_0x1c2c82<_0x2b948b;_0x1c2c82++){const _0x2b4d9e=_0x37f6bf['getChild'](_0x1c2c82);_0x2b4d9e['is']('element','$text')?_0x557d80['set'](_0x2b4d9e['getAttribute']('vid'),{'userId':_0x170539}):(_0x557d80['set'](_0x2b4d9e['getAttribute']('vid_start'),{'userId':_0x170539}),_0x168391(_0x557d80,_0x2b4d9e,0x0,_0x2b4d9e['childCount']),_0x557d80['set'](_0x2b4d9e['getAttribute']('vid_end'),{'userId':_0x170539}));}}(this['_touched'],_0x294528,_0x2811f2,_0x2811f2+_0x315ef3['howMany']);}['_handleMergeOperation'](_0x52479f){const _0x1b2b56=null===(_0x52479f=this['_cloneOperation'](_0x52479f,this['_idsRoots']))['_authorId']?null:_0x52479f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x21b6c8=_0x52479f['targetPosition']['parent'],_0x163e1a=_0x52479f['sourcePosition']['parent'],_0x58b393=_0x21b6c8['getAttribute']('vid_end'),_0x5035df=_0x163e1a['getAttribute']('vid_start');_0x21b6c8['_setAttribute']('vid_end',_0x163e1a['getAttribute']('vid_end')),_0x163e1a['_setAttribute']('vid_end',_0x58b393),this['_touched']['set'](_0x5035df,{'userId':_0x1b2b56}),this['_touched']['set'](_0x58b393,{'userId':_0x1b2b56}),_0x52479f['_execute']();}['_handleSplitOperation'](_0x4afc0d){const _0x4d6ac2=null===(_0x4afc0d=this['_cloneOperation'](_0x4afc0d,this['_idsRoots']))['_authorId']?null:_0x4afc0d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5d340a=_0x4afc0d['graveyardPosition'],_0x3b7adf=_0x4afc0d['splitPosition']['parent'];_0x4afc0d['_execute']();const _0x44f41a=_0x3b7adf['getAttribute']('vid_end'),_0xbb1636=_0x4afc0d['insertionPosition']['nodeAfter'];if(_0x5d340a){const _0x2265d1=_0xbb1636['getAttribute']('vid_end'),_0x1ae953=_0x3b7adf['getAttribute']('vid_end');_0x3b7adf['_setAttribute']('vid_end',_0x2265d1),_0xbb1636['_setAttribute']('vid_end',_0x1ae953),this['_touched']['set'](_0x3b7adf['getAttribute']('vid_end'),{'userId':_0x4d6ac2}),this['_touched']['set'](_0xbb1636['getAttribute']('vid_start'),{'userId':_0x4d6ac2});}else{const _0x53d86b=this['_revisionId']++,_0x151999=this['_revisionId']++;_0x3b7adf['_setAttribute']('vid_end',_0x53d86b),_0xbb1636['_setAttribute']('vid_start',_0x151999),_0xbb1636['_setAttribute']('vid_end',_0x44f41a),this['_touched']['set'](_0x53d86b,{'userId':_0x4d6ac2}),this['_touched']['set'](_0x151999,{'userId':_0x4d6ac2});}}['_handleMarkerOperation'](_0x4af274){if(!_0x4af274['affectsData'])return;const _0x298dbd=(_0x4af274=this['_cloneOperation'](_0x4af274,this['_diffRoots']))['oldRange']?_0x4af274['oldRange']['root']:null,_0x56c67a=_0x4af274['newRange']?_0x4af274['newRange']['root']:null;_0x298dbd&&this['_markers']['delete'](_0x4af274['name']),_0x56c67a&&this['_markers']['set'](_0x4af274['name'],_0x4af274['newRange']['clone']());const _0x114141=null===_0x4af274['_authorId']?null:_0x4af274['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x57970c=_0x4af274['name'];if(!this['_touchedMarkers']['has'](_0x57970c))return void this['_touchedMarkers']['set'](_0x57970c,{'range':_0x4af274['oldRange'],'userId':_0x114141});const _0x383534=this['_touchedMarkers']['get'](_0x57970c),_0x210b32=_0x383534['range'],_0x44c65d=_0x4af274['newRange'];null==_0x210b32&&null==_0x44c65d||_0x210b32&&_0x44c65d&&_0x210b32['isEqual'](_0x44c65d)?this['_touchedMarkers']['delete'](_0x4af274['name']):_0x383534['userId']=_0x114141;}['_handleRootOperation'](_0x2d0aaa,_0x521f51){this['_diffRoots']['has'](_0x2d0aaa['rootName'])?this['_diffRoots']['get'](_0x2d0aaa['rootName'])['_isAttached']=_0x2d0aaa['isAdd']:(this['_diffRoots']['set'](_0x2d0aaa['rootName'],P(_0x2d0aaa['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2d0aaa['rootName'],{}),_0x521f51&&this['_idsRoots']['set'](_0x2d0aaa['rootName'],P(_0x2d0aaa['rootName'],!0x0)));const _0x3b9df7=null===_0x2d0aaa['_authorId']?null:_0x2d0aaa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1531a5=this['_touchedRoots']['get'](_0x2d0aaa['rootName']);_0x1531a5&&_0x1531a5['userId']===_0x3b9df7?this['_touchedRoots']['delete'](_0x2d0aaa['rootName']):this['_touchedRoots']['set'](_0x2d0aaa['rootName'],{'userId':_0x3b9df7,'isAttached':_0x2d0aaa['isAdd']});}['_handleRootAttributeOperation'](_0x5966da){const _0x343e21=this['_diffRootsAttributes']['get'](_0x5966da['root']['rootName']);null===_0x5966da['newValue']?delete _0x343e21[_0x5966da['key']]:_0x343e21[_0x5966da['key']]=_0x5966da['newValue'];}}function N(_0x428357){const _0x2fa996=P(_0x428357['rootName'],_0x428357['isAttached']());for(const _0x39ac8a of _0x428357['getChildren']()){const _0x23a161=_0x39ac8a['_clone'](!0x0);_0x2fa996['_appendChild'](_0x23a161);}return _0x2fa996;}function P(_0x66a73,_0x511120=!0x0){const _0x4df30c=new gt();return _0x4df30c['rootName']=_0x66a73,_0x4df30c['_isAttached']=_0x511120,_0x4df30c['isAttached']=()=>_0x4df30c['_isAttached'],_0x4df30c;}function F(_0x43f2a8,_0x471243,_0x238506){const _0x229dcf='elementEnd'==_0x43f2a8['type']?_0x238506['createPositionAt'](_0x43f2a8['item'],'end'):_0x238506['createPositionBefore'](_0x43f2a8['item']);return _0x238506['createPositionFromPath'](_0x471243,_0x229dcf['path'],_0x229dcf['stickiness']);}function B(_0x329533,_0x51209e,_0x4c4369){const _0xe0e56='elementStart'==_0x329533['type']?_0x4c4369['createPositionAt'](_0x329533['item'],0x0):_0x4c4369['createPositionAfter'](_0x329533['item']);return _0x4c4369['createPositionFromPath'](_0x51209e,_0xe0e56['path'],_0xe0e56['stickiness']);}class os extends ts(_0x3e61c9){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x171b27,_0x129592){super(_0x171b27),this['focusTracker']=new _0x3dc055(),this['keystrokes']=new _0x293a16(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x129592),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x5aae1f({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3a317d=_0x24d894=>_0x24d894['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3a317d),this['keystrokes']['set']('arrowleft',_0x3a317d),this['keystrokes']['set']('arrowup',_0x3a317d),this['keystrokes']['set']('arrowdown',_0x3a317d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x486537){this['revisionNameInputView']['fieldView']['element']['value']=_0x486537['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x26ff8a){const _0x1687dc=new nt(this['locale'],ti),_0x453934=_0x1687dc['fieldView'];_0x453934['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xa87e7c=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x26ff8a&&(_0xa87e7c+='\x20('+g(this['locale'],'optional')+')'),(_0x1687dc['label']=_0xa87e7c,_0x453934['on']('input',()=>{this['revisionNameInputValue']=_0x453934['element']['value']['trim']();}),_0x1687dc);}}class f extends _0x45a363{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x59cc32=this['editor'],_0x3994a5=_0x59cc32['plugins']['get']('RevisionTracker');_0x59cc32['ui']['componentFactory']['add']('revisionHistory',_0x515a2b=>{const _0x53434e=_0x23c652(_0x515a2b),_0x46f781=_0x53434e['panelView']['children'],_0x2cfd95=new _0x1e2830(_0x515a2b),_0x43be0f=new te(_0x515a2b),_0x5d5b4d=new _0x80fe4d(_0x515a2b),_0x275c2c=new te(_0x515a2b),_0x31b6b9=new _0x80fe4d(_0x515a2b);return _0x53434e['bind']('isEnabled')['to'](_0x3994a5,'isReady',_0x3994a5,'isEnabled',_0x59cc32,'isReadOnly',(_0x468cea,_0x5f4132,_0x181ec8)=>_0x468cea&&_0x5f4132&&!_0x181ec8),_0x53434e['buttonView']['set']({'icon':_0x2126f0,'label':g(_0x515a2b,'Revision\x20history'),'tooltip':!0x0}),_0x5d5b4d['set']({'label':g(_0x515a2b,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5d5b4d['bind']('isEnabled')['to'](_0x3994a5,'isReady',_0x3994a5,'isEnabled',_0x59cc32,'isReadOnly',(_0x299993,_0x2d987a,_0x33f25a)=>_0x299993&&_0x2d987a&&!_0x33f25a),_0x5d5b4d['on']('execute',()=>this['_showDialog']()),_0x31b6b9['set']({'label':g(_0x515a2b,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x31b6b9['bind']('isEnabled')['to'](_0x3994a5,'isReady',_0x59cc32,'isReadOnly',(_0x524ab6,_0x10b847)=>_0x524ab6&&!_0x10b847),_0x31b6b9['on']('execute',()=>{_0x59cc32['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x53434e['isOpen']=!0x1,_0x59cc32['editing']['view']['focus']();}),_0x43be0f['children']['add'](_0x5d5b4d),_0x275c2c['children']['add'](_0x31b6b9),_0x2cfd95['role']='menu',_0x2cfd95['items']['addMany']([_0x43be0f,_0x275c2c]),_0x46f781['add'](_0x2cfd95),_0x53434e;}),_0x59cc32['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4e0913=this['editor'],_0x2242d8=_0x4e0913['locale'],_0x1516c0=new _0x26a3e5(_0x2242d8),_0x56230a=new _0x2ffe97(_0x2242d8);_0x1516c0['buttonView']['set']({'icon':_0x2126f0,'label':g(_0x2242d8,'Revision\x20history')});const _0x47e414=new _0x4ccc0e(_0x2242d8,_0x1516c0),_0xec2b1e=new _0x2a6ea2(_0x2242d8);_0xec2b1e['set']({'label':g(_0x2242d8,'Save\x20current\x20revision')}),_0xec2b1e['delegate']('execute')['to'](_0x1516c0),_0xec2b1e['on']('execute',()=>{this['_showDialog']();}),_0x47e414['children']['add'](_0xec2b1e),_0x56230a['items']['add'](_0x47e414);const _0x4d12c6=new _0x4ccc0e(_0x2242d8,_0x1516c0),_0x56529a=new _0x2a6ea2(_0x2242d8);return _0x56529a['set']({'label':g(_0x2242d8,'Open\x20revision\x20history')}),_0x56529a['delegate']('execute')['to'](_0x1516c0),_0x56529a['on']('execute',()=>{_0x4e0913['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4d12c6['children']['add'](_0x56529a),_0x56230a['items']['add'](_0x4d12c6),_0x1516c0['panelView']['children']['add'](_0x56230a),_0x1516c0;}['_showDialog'](){const _0x565483=this['editor'],_0x22a219=_0x565483['locale'],_0x1cd89b=_0x565483['plugins']['get']('Dialog'),_0x360047=_0x565483['plugins']['get']('RevisionTracker');function _0x72acf5(_0x4c6e9a){_0x565483['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4c6e9a['revisionName']?_0x4c6e9a['revisionNameInputView']['errorText']=g(_0x22a219,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x565483['plugins']['get'](u)['saveRevision']({'name':_0x4c6e9a['revisionName']}),_0x1cd89b['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x72acf5(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1cd89b['show']({'id':'revisionSave','title':g(_0x22a219,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x565483['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1cd89b['hide']()},{'label':g(_0x565483['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x40c1a9){_0x40c1a9['bind']('isEnabled')['to'](_0x360047,'isReady',_0x360047,'isEnabled',_0x565483,'isReadOnly',(_0x37d9b7,_0x3fb950,_0x5effa1)=>_0x37d9b7&&_0x3fb950&&!_0x5effa1);},'onExecute':()=>_0x72acf5(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x542279=this['editor'],_0x4c64d0=_0x542279['locale'];this['_saveRevisionFormView']=new os(_0x4c64d0,_0x542279['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x3e61c9{['changeId'];['_model'];constructor(_0x1cf181,_0x243c3b){super(_0x1cf181),this['_model']=_0x243c3b,this['changeId']=_0x243c3b['id'];const _0x35fad3=this['bindTemplate'],_0x193f3a=g(_0x1cf181,_0x243c3b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x243c3b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x243c3b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x35fad3['to']('type',_0xa4e6b4=>'ck-revision-change__'+_0xa4e6b4)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x193f3a}]},{'text':'\x20'+_0x243c3b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x4ca585(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3374e5){super(),this['id']=_0x3374e5['id']||_0x2bb22c(),this['author']=_0x3374e5['author'],this['type']=_0x3374e5['type'],this['data']=_0x3374e5['data']||{},this['rootName']=_0x3374e5['rootName'],this['set']('createdAt',_0x3374e5['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x138083,_0x15ed2c){this['newRevisionId']=_0x138083,this['oldRevisionId']=_0x15ed2c,this['changes']=new _0x183b7a();}['_setChanges'](_0x5e76f4){for(const _0x4425f1 of _0x5e76f4)this['changes']['add'](_0x4425f1);}}class m extends _0x45a363{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3ebfe9,_0x4080a2,I,V];}constructor(_0x389b06){super(_0x389b06),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x127b7f,_0x47ee79,_0x47b4f4)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x40d320=>{for(const _0x2e41aa of this['editor']['editing']['view']['document']['roots'])_0x47b4f4?_0x40d320['removeClass']('ck-editor__editable__overlay',_0x2e41aa):_0x40d320['addClass']('ck-editor__editable__overlay',_0x2e41aa);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x309d55=>null!==_0x309d55),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x55b401,_0x27bdb7,_0xed721b)=>_0x55b401&&_0xed721b?_0x27bdb7['changes']['getIndex'](_0xed721b):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3b4424,_0xe726b9)=>_0x3b4424?_0xe726b9['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x4080a2);}['init'](){const _0x8b204d=this['editor'],_0x5a67c3=new pt(_0x8b204d,{'direction':'backward'}),_0x546062=new pt(_0x8b204d,{'direction':'forward'});(_0x8b204d['commands']['add']('showPreviousChange',_0x5a67c3),_0x8b204d['commands']['add']('showNextChange',_0x546062),_0x8b204d['commands']['add']('restoreRevision',new wt(_0x8b204d)),this['on']('change:numberOfChanges',()=>{_0x5a67c3['refresh'](),_0x546062['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x8b204d['enableReadOnlyMode']('revision-viewer'),_0x8b204d['plugins']['has']('WidgetToolbarRepository'))&&_0x8b204d['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x14ed8a){return await this['_utils']['loadRevisionData'](_0x14ed8a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x14ed8a);}async['getRevisionRootsAttributes'](_0x3ed797){return await this['_utils']['loadRevisionData'](_0x3ed797,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3ed797);}async['compare'](_0x113c43,_0x3a95c0,_0x239d51=!0x1){if(!this['isEnabled'])return;const _0x11416c=this['diff'],_0x1f1f11=this['repository'],_0x36c08e='string'==typeof _0x113c43?_0x1f1f11['getRevision'](_0x113c43):_0x113c43,_0x29bf5a='string'==typeof _0x3a95c0?_0x1f1f11['getRevision'](_0x3a95c0):_0x3a95c0,_0xd8ed08=_0x36c08e['id'],_0x1a22d0=_0x29bf5a?_0x29bf5a['id']:null;if(!_0x239d51&&this['diff']&&this['diff']['newRevisionId']===_0xd8ed08&&this['diff']['oldRevisionId']===_0x1a22d0)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0xd8ed08,_0x1a22d0);const _0x13c376=this['_getRevisionsRange'](_0x36c08e,_0x29bf5a,!0x0)['map'](_0x3b9435=>this['_utils']['loadRevisionData'](_0x3b9435,this['adapter']));return _0x13c376['push'](new Promise(_0xdfbe6c=>{setTimeout(_0xdfbe6c,0x14);})),Promise['all'](_0x13c376)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x42f545=this['_getDiff'](_0xd8ed08,_0x1a22d0);for(const _0xfa2024 of _0x42f545['changes'])this['_changeIdToChange']['set'](_0xfa2024['id'],_0xfa2024);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x193675=>{for(const _0x4e9bb7 of this['editor']['model']['document']['getRootNames']())_0x193675['detachRoot'](_0x4e9bb7);for(const _0x4e59c6 of Object['keys'](_0x42f545['model'])){const _0x161768=_0x193675['addRoot'](_0x4e59c6);for(const _0x18d42e of Object['keys'](_0x42f545['attributes'][_0x4e59c6]))_0x193675['setAttribute'](_0x18d42e,_0x42f545['attributes'][_0x4e59c6][_0x18d42e],_0x161768);_0x193675['insert'](_0x42f545['model'][_0x4e59c6],_0x161768,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x42f545['changes'])),this['isReady']=!0x0;})['catch'](_0x20ad77=>{console['error'](_0x20ad77),this['_cleanUp'](),_0x11416c&&(this['diff']=_0x11416c),this['isReady']=!0x0;});}['addRevisionData'](_0x480baf,_0xcac0be){const _0x99687d=this['repository']['createRevision'](_0x480baf);return _0x99687d['on']('_update',(_0x57ace6,_0x26b90a,_0x4f6204)=>_0xcac0be(_0x26b90a,_0x4f6204,_0x99687d)),this['repository']['addRevision'](_0x99687d),_0x99687d;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1eb2ef=>{for(const _0x222e0e of this['editor']['model']['document']['getRootNames']())_0x1eb2ef['detachRoot'](_0x222e0e);});}['_sortAndFilterDiffChanges'](_0x1cceb2){const _0x4c0983=[],_0x3768b9=new Map();for(const _0x554e13 of this['editor']['model']['document']['getRootNames']()){const _0x242a73=this['editor']['editing']['view']['getDomRoot'](_0x554e13);if(!_0x242a73)continue;const _0x538bfb=_0x242a73['getClientRects']()['item'](0x0);_0x538bfb&&(_0x4c0983['push'](_0x554e13),_0x3768b9['set'](_0x554e13,_0x538bfb));}return _0x4c0983['sort']((_0x7f0217,_0x21ca94)=>{const _0x426691=_0x3768b9['get'](_0x7f0217),_0x50ee3f=_0x3768b9['get'](_0x21ca94);return _0x426691['y']-_0x50ee3f['y']||_0x426691['x']-_0x50ee3f['x'];}),(_0x1cceb2=_0x1cceb2['filter'](_0x4da359=>_0x4c0983['includes'](_0x4da359['rootName'])))['sort']((_0xb6d7f,_0x41c3d6)=>_0x4c0983['indexOf'](_0xb6d7f['rootName'])-_0x4c0983['indexOf'](_0x41c3d6['rootName'])),_0x1cceb2;}['_makeTape'](_0xd121b1){const _0x37a03f=Array['from'](_0xd121b1['markers'])['filter'](([_0x235364,_0x207e7a])=>_0x235364['startsWith']('revision:')&&!_0x207e7a['isCollapsed']),_0x535641=Array['from'](this['editor']['model']['createRangeIn'](_0xd121b1)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x37a03f['length'])for(const _0x344432 of _0x535641){const [_0x351cb5,_0x2f9571]=_0x37a03f[0x0],[,_0x3413c3,_0x34fafa]=_0x351cb5['split'](':');if(_0x2f9571['end']['isEqual'](_0x344432['nextPosition'])&&_0x37a03f['shift'](),(_0x344432['previousPosition']['isEqual'](_0x2f9571['start'])||_0x344432['previousPosition']['isAfter'](_0x2f9571['start']))&&('insertion'==_0x3413c3?_0x344432['isAdded']={'userId':_0x34fafa}:'deletion'==_0x3413c3&&(_0x344432['isRemoved']={'userId':_0x34fafa})),0x0==_0x37a03f['length'])break;}return _0x535641;}['_refreshStartEndIndex'](_0x1c3560){const _0x10ab67=new Map();for(let _0xa95fdf=0x0;_0xa95fdf<_0x1c3560['length'];_0xa95fdf++)'text'===_0x1c3560[_0xa95fdf]['type']?(_0x1c3560[_0xa95fdf]['item']['startIndex']=_0xa95fdf,_0x1c3560[_0xa95fdf]['item']['endIndex']=_0xa95fdf):('elementStart'===_0x1c3560[_0xa95fdf]['type']?_0x1c3560[_0xa95fdf]['item']['startIndex']=_0xa95fdf:'elementEnd'===_0x1c3560[_0xa95fdf]['type']&&(_0x1c3560[_0xa95fdf]['item']['endIndex']=_0xa95fdf),_0x10ab67['set'](_0x1c3560[_0xa95fdf]['id'],_0xa95fdf));for(const _0x3862a9 of _0x10ab67['values']())'elementStart'===_0x1c3560[_0x3862a9]['type']?_0x1c3560[_0x3862a9]['item']['endIndex']=_0x10ab67['get'](_0x1c3560[_0x3862a9]['pairId']):'elementEnd'===_0x1c3560[_0x3862a9]['type']&&(_0x1c3560[_0x3862a9]['item']['startIndex']=_0x10ab67['get'](_0x1c3560[_0x3862a9]['pairId']));}['_processTape'](_0x450bd2){for(let _0x5b78ae=0x0;_0x5b78ae<_0x450bd2['length'];_0x5b78ae++){if('elementStart'===_0x450bd2[_0x5b78ae]['type'])_0x450bd2[_0x5b78ae]['item']['startIndex']=_0x5b78ae;else{if('elementEnd'===_0x450bd2[_0x5b78ae]['type']){_0x450bd2[_0x5b78ae]['item']['endIndex']=_0x5b78ae;const _0x56d5ec=_0x450bd2[_0x5b78ae]['item']['startIndex'];_0x450bd2[_0x56d5ec]['pairId']=_0x450bd2[_0x5b78ae]['id'],_0x450bd2[_0x5b78ae]['pairId']=_0x450bd2[_0x56d5ec]['id'];}else _0x450bd2[_0x5b78ae]['item']['startIndex']=_0x5b78ae,_0x450bd2[_0x5b78ae]['item']['endIndex']=_0x5b78ae,_0x450bd2[_0x5b78ae]['pairId']=null;}_0x450bd2[_0x5b78ae]['markersStart']||(_0x450bd2[_0x5b78ae]['markersStart']=[],_0x450bd2[_0x5b78ae]['markersEnd']=[]);}}['_markInsertions'](_0x5d62f8,_0x5f02c5){const _0x3aeac9=_0x5d62f8['filter'](_0x3343f0=>!_0x3343f0['isAdded']);for(let _0x377617=0x0;_0x377617<_0x5f02c5['length'];_0x377617++)_0x5f02c5[_0x377617]['isAdded']&&(_0x3aeac9[_0x377617]['isAdded']=_0x5f02c5[_0x377617]['isAdded']);}['_getDiff'](_0x502f3a,_0x47c6dc=null){const _0x58961e=this['repository']['getRevision'](_0x502f3a),_0x188931=_0x47c6dc?this['repository']['getRevision'](_0x47c6dc):null,_0x365fd7=this['_getRevisionsRange'](_0x58961e,_0x188931),_0x491da4=_0x365fd7[_0x365fd7['length']-0x1],_0x39dbbf=new Map(),_0x56bd70={'model':{},'attributes':{},'changes':[]},_0x1ce8a3=new Set(),_0x352da5=new Map();for(let _0x1bd9cf=_0x365fd7['length']-0x1;_0x1bd9cf>=0x0;_0x1bd9cf--){const _0x29f44c=_0x365fd7[_0x1bd9cf];for(const _0x45b8da of Object['keys'](_0x29f44c['diffData']))if(_0x29f44c['diffData'][_0x45b8da]['attachChange']){const _0x3501e3=_0x29f44c['diffData'][_0x45b8da]['attachChange'];_0x3501e3['isAttached']?(_0x1ce8a3['add'](_0x45b8da),_0x352da5['has'](_0x45b8da)&&_0x352da5['get'](_0x45b8da)['userId']==_0x3501e3['userId']?_0x352da5['delete'](_0x45b8da):_0x352da5['set'](_0x45b8da,_0x3501e3)):_0x352da5['has'](_0x45b8da)?(_0x1ce8a3['delete'](_0x45b8da),_0x352da5['delete'](_0x45b8da)):(_0x1ce8a3['add'](_0x45b8da),_0x352da5['set'](_0x45b8da,_0x3501e3));}else _0x1ce8a3['add'](_0x45b8da);}for(const _0x24b39d of _0x1ce8a3){const _0x336e2a=_0x352da5['has'](_0x24b39d)&&!_0x352da5['get'](_0x24b39d)['isAttached'];let _0x4f2c57=_0x336e2a?_0x365fd7['length']-0x1:0x0;const _0x274d19=_0x336e2a?-0x1:0x1;for(;_0x365fd7[_0x4f2c57];){const _0x3733a2=_0x365fd7[_0x4f2c57];if(_0x3733a2['diffData'][_0x24b39d]){const _0x1ec1ed=_0x336e2a?_0x3733a2['diffData'][_0x24b39d]['attributesBefore']:_0x3733a2['diffData'][_0x24b39d]['attributesAfter'];_0x56bd70['attributes'][_0x24b39d]=_0x1ec1ed?_0x582ae0(_0x1ec1ed):{};break;}_0x4f2c57+=_0x274d19;}}for(const _0x5352ad of _0x365fd7){_0x5352ad['model']={};for(const _0x10f9bb of _0x5352ad['authors'])_0x39dbbf['set'](_0x10f9bb['id'],_0x10f9bb);for(const _0x3ff041 of _0x1ce8a3){const _0x1d4c81=_0x5352ad['diffData'][_0x3ff041]?_0x5352ad['diffData'][_0x3ff041]['insertions']:'[]',_0x368d3c=_0x5352ad['diffData'][_0x3ff041]?_0x5352ad['diffData'][_0x3ff041]['deletions']:'[]';_0x5352ad['model'][_0x3ff041]={'insertions':this['_utils']['_makeModelFromViewString'](_0x1d4c81),'deletions':this['_utils']['_makeModelFromViewString'](_0x368d3c)};}}for(const _0x4c3983 of _0x1ce8a3){let _0x12c1ec=null,_0x2aacce=0x0;const _0x115e09=new Map(Array['from'](_0x58961e['model'][_0x4c3983]['insertions']['markers'])['filter'](([_0x1e1e53])=>!_0x1e1e53['startsWith']('revision:')));let _0xd0647a=0x0;for(const _0x30b642 of _0x365fd7){const _0x36d734=this['_makeTape'](_0x30b642['model'][_0x4c3983]['insertions']);_0x30b642==_0x58961e?(_0x12c1ec=_0x36d734,_0x2aacce=_0x12c1ec['length'],_0x12c1ec['forEach'](_0x530683=>{_0x530683['id']=_0xd0647a++;}),this['_processTape'](_0x12c1ec)):this['_markInsertions'](_0x12c1ec,_0x36d734);const _0x3997d7=_0x12c1ec['filter'](_0x58decd=>!_0x58decd['isAdded'])['map'](_0x24eb88=>_0x24eb88['id']);let _0x5123e3=0x0;const _0x532ce0=this['_makeTape'](_0x30b642['model'][_0x4c3983]['deletions']);_0x532ce0['forEach'](_0xa9461a=>{_0xa9461a['isRemoved']?_0xa9461a['id']=_0x2aacce++:_0xa9461a['id']=_0x3997d7[_0x5123e3++];}),this['_processTape'](_0x532ce0),this['_setDistance'](_0x12c1ec,'isAdded'),this['_setDistance'](_0x532ce0,'isRemoved'),_0x30b642==_0x58961e&&this['_markMarkers'](_0x12c1ec,_0x115e09),_0x12c1ec=this['_joinTapes'](_0x12c1ec,_0x532ce0),this['_refreshStartEndIndex'](_0x12c1ec),this['_setDistance'](_0x12c1ec,'isRemoved');}_0x12c1ec=_0x12c1ec['filter'](_0x4cd5ef=>!(_0x4cd5ef['isAdded']&&_0x4cd5ef['isRemoved']));const _0x53f23d=new Map(_0x491da4['model'][_0x4c3983]['deletions']['markers']),_0x14f777=new Set(_0x115e09['keys']());for(const _0x2248cb of _0x53f23d['keys']())_0x14f777['delete'](_0x2248cb);this['_markSuggestions'](_0x12c1ec,_0x14f777),this['_fixObsoleteTags'](_0x12c1ec),_0x12c1ec=this['_removeMissingPairs'](_0x12c1ec),_0x12c1ec=this['_markMismatchedRemovedTags'](_0x12c1ec),_0x12c1ec=this['_removeUnsupportedChanges'](_0x12c1ec);const {root:_0x555c1e,changes:_0x3f36e0}=this['_makeModelFromTape'](_0x12c1ec,_0x39dbbf,_0x4c3983);_0x56bd70['model'][_0x4c3983]=_0x555c1e;const _0x5b6954=_0x352da5['get'](_0x4c3983);if(_0x5b6954){const _0x592cb1=_0x39dbbf['get'](_0x5b6954['userId']),_0xc2a119=new r({'author':_0x592cb1,'type':_0x5b6954['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4c3983});_0x3f36e0['unshift'](_0xc2a119),_0x56bd70['attributes'][_0x4c3983]['revisionHistoryAttachChange']=_0xc2a119['id'];}_0x56bd70['changes']=_0x56bd70['changes']['concat'](_0x3f36e0);}return _0x56bd70;}['_markMarkers'](_0x4f1130,_0x37baca){for(let _0x4613d8=0x0;_0x4613d8<_0x4f1130['length'];_0x4613d8++)for(const [_0x545096,_0x56442d]of _0x37baca)!_0x56442d['isCollapsed']&&_0x56442d['start']['isEqual'](_0x4f1130[_0x4613d8]['previousPosition'])&&_0x4f1130[_0x4613d8]['markersStart']['push'](_0x545096),_0x56442d['end']['isEqual'](_0x4f1130[_0x4613d8]['nextPosition'])&&_0x4f1130[_0x4613d8]['markersEnd']['push'](_0x545096);}['_joinTapes'](_0xd12cce,_0x47f0e9){let _0x4168d0=[],_0x428697=0x0,_0x4657da=0x0;for(;_0x428697<_0xd12cce['length']||_0x4657da<_0x47f0e9['length'];){const _0x37feae=_0xd12cce[_0x428697]||{},_0x31a23d=_0x47f0e9[_0x4657da]||{};if(_0x37feae['id']==_0x31a23d['id'])_0x428697++,_0x4657da++,_0x4168d0['push'](_0x37feae);else{if(_0x31a23d['isRemoved']&&_0x37feae['isAdded']){const {commonTape:_0x432834,iEnd:_0x35d0d8,jEnd:_0x4d9063}=this['_threeWayMerge'](_0xd12cce,_0x428697,_0x47f0e9,_0x4657da);_0x4168d0=_0x4168d0['concat'](_0x432834),_0x428697=_0x35d0d8,_0x4657da=_0x4d9063;}else _0x31a23d['isRemoved']?(_0x4657da++,_0x4168d0['push'](_0x31a23d)):(_0x428697++,_0x4168d0['push'](_0x37feae));}}return _0x4168d0;}['_markSuggestions'](_0x2f20a7,_0x5499a4){const _0x107892=[];for(let _0x1b0b85=0x0;_0x1b0b85<_0x2f20a7['length'];_0x1b0b85++){for(let _0x470937=0x0;_0x470937<_0x2f20a7[_0x1b0b85]['markersStart']['length'];_0x470937++){const _0x59db2b=_0x2f20a7[_0x1b0b85]['markersStart'][_0x470937];if(!_0x5499a4['has'](_0x59db2b))continue;const {group:_0x18c50d,type:_0x15b9b0,authorId:_0x498bf4}=_0x5cfe66(_0x59db2b);'revision-suggestion'!=_0x18c50d||'insertion'!=_0x15b9b0&&'deletion'!=_0x15b9b0||(_0x107892['unshift']({'type':_0x15b9b0,'name':_0x59db2b,'userId':_0x498bf4}),_0x2f20a7[_0x1b0b85]['markersStart']['splice'](_0x470937,0x1),_0x470937--);}_0x3a1b5c(_0x2f20a7[_0x1b0b85]);for(let _0x3a7f5e=0x0;_0x3a7f5e<_0x2f20a7[_0x1b0b85]['markersEnd']['length'];_0x3a7f5e++){const _0x4db7ae=_0x2f20a7[_0x1b0b85]['markersEnd'][_0x3a7f5e];if(!_0x5499a4['has'](_0x4db7ae))continue;const {group:_0xdaaa15,type:_0x5678a8}=_0x5cfe66(_0x4db7ae);if('revision-suggestion'!=_0xdaaa15||'insertion'!=_0x5678a8&&'deletion'!=_0x5678a8)continue;_0x2f20a7[_0x1b0b85]['markersEnd']['splice'](_0x3a7f5e,0x1),_0x3a7f5e--;const _0x161908=_0x107892['findIndex'](_0x49c417=>_0x49c417['name']==_0x4db7ae);_0x161908>-0x1&&_0x107892['splice'](_0x161908,0x1);}}function _0x5cfe66(_0x2b3c63){const _0x1040d6=_0x2b3c63['split'](':');return{'group':_0x1040d6[0x0],'type':_0x1040d6[0x1],'subType':_0x1040d6['length']>=0x5?_0x1040d6[0x2]:null,'id':_0x1040d6['length']<0x5?_0x1040d6[0x2]:_0x1040d6[0x3],'authorId':_0x1040d6['length']<0x5?_0x1040d6[0x3]:_0x1040d6[0x4],'markerCount':0x6==_0x1040d6['length']?_0x1040d6[0x5]:null};}function _0x3a1b5c(_0x3aba30){for(let _0x4e2ec=0x0;_0x4e2ec<_0x107892['length'];_0x4e2ec++){if(_0x3aba30['isAdded']&&'insertion'==_0x107892[_0x4e2ec]['type']&&_0x3aba30['isAdded']['userId']==_0x107892[_0x4e2ec]['userId'])return _0x3aba30['isAddSuggestion']=_0x107892[_0x4e2ec],void delete _0x3aba30['isAdded'];if(!_0x3aba30['isAdded']&&!_0x3aba30['isRemoved']&&'deletion'==_0x107892[_0x4e2ec]['type'])return void(_0x3aba30['isRemoveSuggestion']=_0x107892[_0x4e2ec]);}}}['_setDistance'](_0x9a81f3,_0x53994a){let _0x2c2d31=0x0,_0x4a55ce=!0x1;const _0x422b6b=new Map();for(const _0x3ecbae of _0x9a81f3)_0x3ecbae[_0x53994a]?_0x4a55ce&&(_0x2c2d31++,_0x4a55ce=!0x1):(_0x2c2d31++,_0x4a55ce=!0x0),_0x422b6b['set'](_0x3ecbae['id'],_0x2c2d31);for(let _0x11d7b0=0x0;_0x11d7b0<_0x9a81f3['length'];_0x11d7b0++){if('isRemoved'==_0x53994a&&_0x9a81f3[_0x11d7b0]['isAdded']||'isAdded'==_0x53994a&&_0x9a81f3[_0x11d7b0]['isRemoved'])continue;if('text'==_0x9a81f3[_0x11d7b0]['type']){_0x9a81f3[_0x11d7b0]['distance']=0x0;continue;}const _0x5a8a50=_0x422b6b['get'](_0x9a81f3[_0x11d7b0]['pairId']),_0x24271a=_0x422b6b['get'](_0x9a81f3[_0x11d7b0]['id']);_0x9a81f3[_0x11d7b0]['distance']=_0x5a8a50-_0x24271a;}}['_getRevisionsRange'](_0x3949ed,_0x437e60,_0x108964=!0x1){const _0x41ad8c=[];let _0x5918bc=this['repository']['getIndex'](_0x3949ed),_0x1fa8d5=this['repository']['getIndex'](_0x437e60);for(-0x1==_0x1fa8d5&&(_0x1fa8d5=this['repository']['_revisions']['length'],_0x108964=!0x1);_0x5918bc<_0x1fa8d5;)_0x41ad8c['push'](this['repository']['getRevision'](_0x5918bc)),_0x5918bc++;return _0x108964&&_0x41ad8c['push'](this['repository']['getRevision'](_0x5918bc)),_0x41ad8c;}['_threeWayMerge'](_0x59ad1,_0x1a2006,_0x6bb52f,_0x194b97){const _0x2c24ab=this['editor']['model']['schema'];let _0x17070d=_0x1a2006;for(;_0x59ad1[_0x17070d]&&_0x59ad1[_0x17070d]['isAdded'];)_0x17070d++;let _0x5d4b88=_0x194b97;for(;_0x6bb52f[_0x5d4b88]&&_0x6bb52f[_0x5d4b88]['isRemoved'];)_0x5d4b88++;_0x53ad6e(_0x59ad1,_0x1a2006,_0x17070d),_0x53ad6e(_0x6bb52f,_0x194b97,_0x5d4b88);const _0x3c61b3=_0x6bb52f['slice'](_0x194b97,_0x5d4b88)['concat'](_0x59ad1['slice'](_0x1a2006,_0x17070d));return _0x3c61b3['sort']((_0x15a37c,_0x32e90b)=>_0x15a37c['side']!=_0x32e90b['side']?_0x15a37c['side']-_0x32e90b['side']:_0x15a37c['level']!=_0x32e90b['level']?_0x15a37c['level']-_0x32e90b['level']:_0x15a37c['distance']!=_0x32e90b['distance']?_0x32e90b['distance']-_0x15a37c['distance']:!!_0x15a37c['isAdded']!=!!_0x32e90b['isAdded']?-0x1==_0x15a37c['side']||0x0==_0x15a37c['side']?_0x15a37c['isAdded']?-0x1:0x1:_0x15a37c['isAdded']?0x1:-0x1:_0x15a37c['index']-_0x32e90b['index']),{'commonTape':_0x3c61b3,'iEnd':_0x17070d,'jEnd':_0x5d4b88};function _0x53ad6e(_0x511997,_0x977b06,_0x3b3c01){let _0x582668=-0x1,_0x245db1=Number['POSITIVE_INFINITY'],_0x58da29=!0x0;for(let _0x509476=_0x977b06;_0x509476<_0x3b3c01;_0x509476++)if(_0x2c24ab['isInline'](_0x511997[_0x509476]['item'])||(_0x58da29=!0x1),_0x511997[_0x509476]['item']['startIndex']<_0x977b06&&(_0x582668=_0x509476),_0x511997[_0x509476]['item']['endIndex']>=_0x3b3c01){_0x245db1=_0x509476;break;}_0x58da29&&(_0x582668=_0x3b3c01-0x1);for(let _0x20f2b7=_0x977b06;_0x20f2b7<_0x3b3c01;_0x20f2b7++)_0x511997[_0x20f2b7]['side']=_0x20f2b7<=_0x582668?-0x1:_0x20f2b7<_0x245db1?0x0:0x1,_0x511997[_0x20f2b7]['index']=_0x20f2b7;let _0x29e754=0x0;for(let _0x698b2d=_0x977b06;_0x698b2d<=_0x582668;_0x698b2d++)0x0==_0x511997[_0x698b2d]['distance']?_0x511997[_0x698b2d]['level']=_0x29e754:(_0x29e754++,_0x511997[_0x698b2d]['level']=_0x29e754,_0x29e754++);for(let _0x28d9f4=_0x977b06;_0x28d9f4<_0x3b3c01;_0x28d9f4++)0x0==_0x511997[_0x28d9f4]['side']&&(_0x511997[_0x28d9f4]['level']=_0x29e754);_0x29e754=0x0;for(let _0x366723=_0x3b3c01-0x1;_0x366723>=_0x245db1;_0x366723--)0x0==_0x511997[_0x366723]['distance']?_0x511997[_0x366723]['level']=_0x29e754:(_0x29e754--,_0x511997[_0x366723]['level']=_0x29e754,_0x29e754--);}}['_fixObsoleteTags'](_0x507d49){const _0x36bafe=new Map(),_0x3a23a8=this['editor']['model']['schema'];for(let _0x2b1e08=0x1;_0x2b1e08<_0x507d49['length'];_0x2b1e08++){let _0x445935,_0x2a38d8,_0x298086;const _0x92e0db=_0x507d49[_0x2b1e08],_0x186c79=_0x507d49[_0x2b1e08-0x1];if('text'==_0x92e0db['type'])continue;if(_0x92e0db['type']!=_0x186c79['type'])continue;if(!_0x3a23a8['isBlock'](_0x186c79['item'])||_0x3a23a8['isLimit'](_0x186c79['item']))continue;if(!_0x3a23a8['isBlock'](_0x92e0db['item'])||_0x3a23a8['isLimit'](_0x92e0db['item']))continue;if((_0x507d49[_0x2b1e08]['isAdded']||_0x507d49[_0x2b1e08]['isAddSuggestion'])&&_0x507d49[_0x2b1e08-0x1]['isRemoved'])_0x445935=_0x507d49[_0x2b1e08],_0x2a38d8=_0x507d49[_0x2b1e08-0x1],_0x298086=_0x2b1e08-0x1;else{if(!_0x507d49[_0x2b1e08]['isRemoved']||!_0x507d49[_0x2b1e08-0x1]['isAdded']&&!_0x507d49[_0x2b1e08-0x1]['isAddSuggestion'])continue;_0x445935=_0x507d49[_0x2b1e08-0x1],_0x2a38d8=_0x507d49[_0x2b1e08],_0x298086=_0x2b1e08;}const _0xe34e=_0x445935['level']==_0x2a38d8['level'],_0x241b31=Math['abs'](_0x445935['level'])<Math['abs'](_0x2a38d8['level'])&&0x0==_0x2a38d8['distance'];(_0xe34e||_0x241b31)&&(_0x36bafe['set'](_0x2a38d8['id'],_0x445935['id']),_0x507d49['splice'](_0x298086,0x1),_0x2b1e08--,_0x445935['isAdded']=!0x1);}for(let _0x3c6298=0x0;_0x3c6298<_0x507d49['length'];_0x3c6298++)_0x36bafe['has'](_0x507d49[_0x3c6298]['pairId'])&&(_0x507d49[_0x3c6298]['pairId']=_0x36bafe['get'](_0x507d49[_0x3c6298]['pairId']));}['_removeMissingPairs'](_0x2dcf3b){const _0x3ea91d=new Set(_0x2dcf3b['map'](_0x45e947=>_0x45e947['id']));for(let _0x30f4e2=0x0;_0x30f4e2<_0x2dcf3b['length'];_0x30f4e2++)_0x3ea91d['has'](_0x2dcf3b[_0x30f4e2]['pairId'])||0x0==_0x2dcf3b[_0x30f4e2]['distance']||(_0x2dcf3b[_0x30f4e2]['isIncorrect']=!0x0);return _0x2dcf3b['filter'](_0x99a43a=>!_0x99a43a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5bf9cc){const _0x2a9612=new Set();for(let _0xe41dfd=0x0;_0xe41dfd<_0x5bf9cc['length'];_0xe41dfd++){if(_0x2a9612['has'](_0x5bf9cc[_0xe41dfd]['id'])&&_0x5bf9cc[_0xe41dfd]['isRemoved']&&(_0x5bf9cc[_0xe41dfd]['isIncorrect']=!0x0),_0x5bf9cc[_0xe41dfd]['isIncorrect'])continue;if(0x0==_0x5bf9cc[_0xe41dfd]['distance'])continue;if('elementStart'!=_0x5bf9cc[_0xe41dfd]['type'])continue;if(null==_0x5bf9cc[_0xe41dfd]['pairId'])continue;let _0x423689=_0xe41dfd+0x1,_0x17a420=0x0;for(;_0x5bf9cc[_0x423689]['id']!=_0x5bf9cc[_0xe41dfd]['pairId'];)'elementStart'==_0x5bf9cc[_0x423689]['type']?_0x17a420++:'elementEnd'==_0x5bf9cc[_0x423689]['type']&&_0x17a420--,_0x423689++;if(0x0!=_0x17a420){if(_0x5bf9cc[_0xe41dfd]['isRemoved'])_0x5bf9cc[_0xe41dfd]['isIncorrect']=!0x0;else{for(;_0x423689!=_0xe41dfd;)_0x5bf9cc[_0x423689]['isRemoved']&&0x0!=_0x5bf9cc[_0x423689]['distance']&&(_0x5bf9cc[_0x423689]['isIncorrect']=!0x0,_0x2a9612['add'](_0x5bf9cc[_0x423689]['pairId'])),_0x423689--;}}}return _0x5bf9cc['filter'](_0x54aef2=>!_0x54aef2['isIncorrect']);}['_removeUnsupportedChanges'](_0x1a5782){const _0x11211f=this['editor']['model']['schema'];for(let _0x5ed4c9=0x0;_0x5ed4c9<_0x1a5782['length'];_0x5ed4c9++){if(!(_0x1a5782[_0x5ed4c9]['isAdded']||_0x1a5782[_0x5ed4c9]['isAddSuggestion']||_0x1a5782[_0x5ed4c9]['isRemoved']||_0x1a5782[_0x5ed4c9]['isRemoveSuggestion']))continue;if(0x0==_0x1a5782[_0x5ed4c9]['distance'])continue;const _0x5b50ec=_0x1a5782[_0x5ed4c9]['item'];_0x11211f['isBlock'](_0x5b50ec)||_0x11211f['isLimit'](_0x5b50ec)||(_0x1a5782[_0x5ed4c9]['isAdded']&&delete _0x1a5782[_0x5ed4c9]['isAdded'],_0x1a5782[_0x5ed4c9]['isAddSuggestion']&&delete _0x1a5782[_0x5ed4c9]['isAddSuggestion'],_0x1a5782[_0x5ed4c9]['isRemoveSuggestion']&&delete _0x1a5782[_0x5ed4c9]['isRemoveSuggestion'],_0x1a5782[_0x5ed4c9]['isRemoved']&&(_0x1a5782[_0x5ed4c9]['isIncorrect']=!0x0));}return _0x1a5782['filter'](_0x11ce75=>!_0x11ce75['isIncorrect']);}['_makeModelFromTape'](_0x3ce8c4,_0x3068bb,_0x1bd018){const _0x43e2d7=new gt(),_0x2d2975=[],_0x2bd6fd=new Map(),_0x560e7c=this['editor']['model'],_0x193c41=_0x560e7c['schema'],_0x5d6bbb=[_0x43e2d7],_0x34539d={},_0x4dcfdb={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xb7c12d=null;const _0x36d3b2=[0x0];for(let _0x2ae8fb=0x0;_0x2ae8fb<_0x3ce8c4['length'];_0x2ae8fb++)if('elementStart'===_0x3ce8c4[_0x2ae8fb]['type']){_0x3ce8c4[_0x2ae8fb]['previousPosition']=_0x560e7c['createPositionFromPath'](_0x43e2d7,_0x36d3b2);const _0x3ba212=new ut(_0x3ce8c4[_0x2ae8fb]['item']['name'],_0x3ce8c4[_0x2ae8fb]['item']['getAttributes']());_0x5d6bbb[0x0]['_appendChild'](_0x3ba212),_0x36d3b2['push'](0x0),_0x5d6bbb['unshift'](_0x3ba212),_0x3ce8c4[_0x2ae8fb]['nextPosition']=_0x560e7c['createPositionFromPath'](_0x43e2d7,_0x36d3b2);}else'elementEnd'===_0x3ce8c4[_0x2ae8fb]['type']?(_0x5d6bbb['shift'](),_0x3ce8c4[_0x2ae8fb]['previousPosition']=_0x560e7c['createPositionFromPath'](_0x43e2d7,_0x36d3b2),_0x36d3b2['pop'](),_0x36d3b2[_0x36d3b2['length']-0x1]++,_0x3ce8c4[_0x2ae8fb]['nextPosition']=_0x560e7c['createPositionFromPath'](_0x43e2d7,_0x36d3b2)):(_0x3ce8c4[_0x2ae8fb]['previousPosition']=_0x560e7c['createPositionFromPath'](_0x43e2d7,_0x36d3b2),_0xb7c12d?_0xb7c12d['_data']+=_0x3ce8c4[_0x2ae8fb]['item']['data']:_0xb7c12d=new mt(_0x3ce8c4[_0x2ae8fb]['item']['data'],_0x3ce8c4[_0x2ae8fb]['item']['getAttributes']()),_0x3ce8c4[_0x2ae8fb+0x1]&&'text'===_0x3ce8c4[_0x2ae8fb+0x1]['type']&&_0x19e7e0(_0xb7c12d,_0x3ce8c4[_0x2ae8fb+0x1]['item'])||(_0x5d6bbb[0x0]['_appendChild'](_0xb7c12d),_0xb7c12d=null),_0x36d3b2[_0x36d3b2['length']-0x1]+=_0x3ce8c4[_0x2ae8fb]['item']['offsetSize'],_0x3ce8c4[_0x2ae8fb]['nextPosition']=_0x560e7c['createPositionFromPath'](_0x43e2d7,_0x36d3b2));for(let _0x31c7a9=0x0;_0x31c7a9<_0x3ce8c4['length'];_0x31c7a9++){const _0x1be1ac=_0x3ce8c4[_0x31c7a9]['previousPosition'],_0x1964f6=_0x3ce8c4[_0x31c7a9]['nextPosition'];for(const _0x5424c7 of _0x3ce8c4[_0x31c7a9]['markersStart'])_0x2bd6fd['set'](_0x5424c7,{'start':_0x1be1ac,'end':null});_0x3ea15c('isRemoveSuggestion',_0x31c7a9,_0x1be1ac,_0x1964f6),_0x3ea15c('isAddSuggestion',_0x31c7a9,_0x1be1ac,_0x1964f6),_0x3ea15c('isRemoved',_0x31c7a9,_0x1be1ac,_0x1964f6),_0x3ea15c('isAdded',_0x31c7a9,_0x1be1ac,_0x1964f6);for(const _0x53c556 of _0x3ce8c4[_0x31c7a9]['markersEnd']){const _0xc5efd2=_0x2bd6fd['get'](_0x53c556);_0xc5efd2?_0xc5efd2['end']=_0x1964f6:_0x2bd6fd['set'](_0x53c556,{'start':_0x1964f6,'end':_0x1964f6});}}for(const [_0x18e123,_0x1b98de]of _0x2bd6fd){const _0x2a6093=this['editor']['model']['createRange'](_0x1b98de['start'],_0x1b98de['end']);_0x43e2d7['markers']['set'](_0x18e123,_0x2a6093);}return _0x2d2975['sort']((_0x2ff75d,_0xf900ca)=>{const _0x266b47=_0x43e2d7['markers']['get']('revision:'+_0x2ff75d['id']),_0x8fca86=_0x43e2d7['markers']['get']('revision:'+_0xf900ca['id']);return _0x266b47['start']['isBefore'](_0x8fca86['start'])?-0x1:_0x266b47['start']['isAfter'](_0x8fca86['start'])?0x1:_0x266b47['end']['isBefore'](_0x8fca86['end'])?-0x1:_0x266b47['end']['isAfter'](_0x8fca86['end'])?0x1:'add'===_0x2ff75d['type']?-0x1:0x1;}),{'root':_0x43e2d7,'changes':_0x2d2975};function _0x3ea15c(_0x12fc96,_0x146a24,_0x13240e,_0x54a728){const _0x12e717=!!_0x3ce8c4[_0x146a24][_0x12fc96],_0x114a98=_0x12e717?_0x3ce8c4[_0x146a24][_0x12fc96]['userId']:null,_0x359f91=_0x146a24===_0x3ce8c4['length']-0x1,_0x2156e2=_0x4dcfdb[_0x12fc96][0x0],_0x286e0e=_0x193c41['isObject'](_0x3ce8c4[_0x146a24]['item']);!_0x34539d[_0x12fc96]&&_0x12e717?_0x34539d[_0x12fc96]={'start':_0x13240e,'tapeItem':_0x3ce8c4[_0x146a24],'userId':_0x114a98,'type':_0x12fc96}:_0x34539d[_0x12fc96]&&!_0x12e717?(_0x34539d[_0x12fc96]['end']=_0x13240e,_0x411a8b(_0x34539d[_0x12fc96]),_0x34539d[_0x12fc96]=null):_0x34539d[_0x12fc96]&&_0x12e717&&_0x34539d[_0x12fc96]['userId']!==_0x114a98&&(_0x34539d[_0x12fc96]['end']=_0x13240e,_0x2156e2&&_0x2156e2['userId']===_0x34539d[_0x12fc96]['userId']||_0x411a8b(_0x34539d[_0x12fc96]),_0x34539d[_0x12fc96]={'start':_0x13240e,'tapeItem':_0x3ce8c4[_0x146a24],'userId':_0x114a98,'type':_0x12fc96}),_0x34539d[_0x12fc96]&&_0x286e0e&&('elementStart'!==_0x3ce8c4[_0x146a24]['type']||_0x2156e2&&_0x2156e2['userId']===_0x114a98||_0x4dcfdb[_0x12fc96]['unshift']({'userId':_0x114a98,'object':_0x3ce8c4[_0x146a24]['item'],'change':_0x34539d[_0x12fc96]}),'elementEnd'===_0x3ce8c4[_0x146a24]['type']&&_0x2156e2&&_0x2156e2['object']===_0x3ce8c4[_0x146a24]['item']&&(_0x4dcfdb[_0x12fc96]['shift'](),_0x34539d[_0x12fc96]=_0x2156e2['change'])),_0x34539d[_0x12fc96]&&_0x359f91&&(_0x34539d[_0x12fc96]['end']=_0x54a728,_0x411a8b(_0x34539d[_0x12fc96]),_0x34539d[_0x12fc96]=null);}function _0x411a8b({start:_0x42d0d8,end:_0x1ed3ba,tapeItem:_0x37be2a,userId:_0x1f98b3,type:_0x9f68ae}){const _0x2b4749=_0x37be2a['item'],_0x553c2d=_0x560e7c['schema']['isBlock'](_0x2b4749)&&!_0x560e7c['schema']['isLimit'](_0x2b4749),_0x1ed338=_0x42d0d8['nodeAfter']==_0x1ed3ba['parent']&&_0x1ed3ba['isAtStart'];if(_0x553c2d&&_0x1ed338)return;const _0x15c024=_0x560e7c['createRange'](_0x42d0d8,_0x1ed3ba),_0x5918e4=_0x3068bb['get'](_0x1f98b3),_0x25db86=new r({'author':_0x5918e4,'type':'isAdded'==_0x9f68ae||'isAddSuggestion'==_0x9f68ae?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x9f68ae||'isRemoveSuggestion'==_0x9f68ae},'createdAt':new Date(),'rootName':_0x1bd018});_0x2d2975['push'](_0x25db86),_0x43e2d7['markers']['set']('revision:'+_0x25db86['id'],_0x15c024);}function _0x19e7e0(_0x492d1f,_0x1f9934){const _0x3d726a=_0x492d1f['getAttributes'](),_0x2c053f=_0x1f9934['getAttributes']();for(const _0x5303dd of _0x3d726a){if(_0x5303dd[0x1]!==_0x1f9934['getAttribute'](_0x5303dd[0x0]))return!0x1;_0x2c053f['next']();}return _0x2c053f['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1703f7=>{const _0x102ed4=_0x1703f7['markerName']['split'](':')[0x1],_0x126c88=this['_getChangeFromId'](_0x102ed4);if(!_0x126c88)return null;const _0x4b6925='add'==_0x126c88['type']?'insertion':'deletion',_0x557a74=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4b6925];return _0x126c88['data']['isSuggestion']&&_0x557a74['push']('ck-suggestion-marker-'+_0x4b6925+'-new'),this['activeChange']==_0x126c88&&_0x557a74['push']('ck-suggestion-marker--active'),{'classes':_0x557a74,'attributes':{'data-change-id':_0x102ed4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1188ae=>{_0x1188ae['on']('element:pre',(_0x906508,_0x586023,_0x4cd5de)=>{const _0x1dff63=_0x586023['viewItem']['getChild'](0x0);if(!_0x1dff63||!_0x1dff63['is']('element','code'))return;if(!_0x4cd5de['consumable']['consume'](_0x1dff63,{'attributes':['vid_start','vid_end']}))return;const _0x58de71=_0x586023['modelRange']['start']['nodeAfter'];_0x4cd5de['writer']['setAttribute']('vid_start',_0x1dff63['getAttribute']('vid_start'),_0x58de71),_0x4cd5de['writer']['setAttribute']('vid_end',_0x1dff63['getAttribute']('vid_end'),_0x58de71);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x364ae6=>{_0x364ae6['on']('element',(_0xbfe99c,_0x3feba7,_0x245ca4)=>{if(!_0x245ca4['consumable']['consume'](_0x3feba7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3feba7['modelRange']['isCollapsed'])return;const _0xeef4ad=_0x3feba7['modelRange']['start']['nodeAfter'];_0xeef4ad['hasAttribute']('vid_start')||_0xeef4ad['hasAttribute']('vid')||(_0x245ca4['writer']['setAttribute']('vid_start',_0x3feba7['viewItem']['getAttribute']('vid_start'),_0xeef4ad),_0x245ca4['writer']['setAttribute']('vid_end',_0x3feba7['viewItem']['getAttribute']('vid_end'),_0xeef4ad));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x403f9f=>_0x403f9f['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x21767c,[,_0x23cd36])=>{['vid_start','vid_end','vid']['includes'](_0x23cd36)&&(_0x21767c['return']=!0x0,_0x21767c['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x18d3d9=>{_0x18d3d9['on']('attribute:vid',(_0x140231,_0x1da2e9,_0x32e79d)=>{if('\x20'!=_0x1da2e9['item']['data']||_0x1da2e9['item']['parent']['maxOffset']>0x1)return;if(!_0x32e79d['consumable']['consume'](_0x1da2e9['item'],_0x140231['name']))return;const _0x5613dc=_0x32e79d['writer'],_0x2edb90=_0x32e79d['mapper']['toViewRange'](_0x1da2e9['range']);_0x5613dc['wrap'](_0x2edb90,_0x5613dc['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5afbcc){const _0x2720c6=_0x5afbcc['plugins']['get']('RevisionViewer');return(_0x3ac0e8,_0x1dcfa9,_0x4ca3f0)=>{const _0x4a6809=_0x1dcfa9['markerName']['split'](':')[0x1],_0x36ee15=_0x2720c6['_getChangeFromId'](_0x4a6809);if(!_0x36ee15)return null;const _0x4fafe4='add'==_0x36ee15['type']?'split':'merge';if(!_0x4ca3f0['consumable']['test'](_0x1dcfa9['markerRange'],_0x3ac0e8['name']))return;const _0x515e81=_0x1dcfa9['markerRange']['getWalker'](),_0x5f17b6=_0x1dcfa9['markerRange']['start'],_0x206d6b=_0x5afbcc['model']['schema'];let _0x552438=null,_0x529e0a=null,_0x18c289=!0x1,_0xef2ff0=!0x1;for(const _0x9db53e of _0x515e81){const _0x1a1902=_0x9db53e['item'];_0x18c289=_0x18c289||_0x206d6b['isContent'](_0x1a1902);const _0x1d18f0=_0x4ca3f0['mapper']['toViewElement'](_0x1a1902);if(_0x1d18f0&&_0x1d18f0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x9db53e['type']&&(_0x206d6b['isBlock'](_0x1a1902)&&!_0x206d6b['isLimit'](_0x1a1902)&&(_0x1a1902['nextSibling']||_0x5f17b6['isAtEnd']?_0x552438&&_0x552438['parent']==_0x1a1902||(_0x552438=_0x1a1902,_0x5621e5(_0x9db53e['previousPosition']),_0xef2ff0=!0x0):_0x529e0a=_0x529e0a||_0x9db53e['previousPosition']));}function _0x5621e5(_0x3a5d91){const _0x4efd50=_0x4ca3f0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4fafe4}),_0x372661=_0x4ca3f0['mapper']['toViewPosition'](_0x3a5d91);_0x36ee15['data']['isSuggestion']&&_0x4ca3f0['writer']['addClass']('ck-suggestion-marker-'+_0x4fafe4+'-new',_0x4efd50),_0x2720c6['activeChange']==_0x36ee15&&_0x4ca3f0['writer']['addClass']('ck-suggestion-marker--active',_0x4efd50),_0x4ca3f0['writer']['insert'](_0x372661,_0x4efd50),_0x4ca3f0['mapper']['bindElementToMarker'](_0x4efd50,_0x1dcfa9['markerName']);}_0x18c289||_0xef2ff0||!_0x529e0a||_0x5621e5(_0x529e0a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5defef,_0x5c1aa2,_0x455ca6)=>{const _0x247da4=_0x455ca6['mapper']['markerNameToElements'](_0x5c1aa2['markerName']);if(_0x247da4){for(const _0x5f2dd6 of _0x247da4)(_0x5f2dd6['hasClass']('ck-suggestion-marker-split')||_0x5f2dd6['hasClass']('ck-suggestion-marker-merge'))&&(_0x455ca6['mapper']['unbindElementFromMarkerName'](_0x5f2dd6,_0x5c1aa2['markerName']),_0x455ca6['writer']['remove'](_0x5f2dd6));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1714e3,_0x35be3b,_0x401193)=>{const _0x398698=_0x35be3b['markerName']['split'](':')[0x1],_0x3d4fe4=this['_getChangeFromId'](_0x398698);if(!_0x3d4fe4)return null;const _0xd235da='add'==_0x3d4fe4['type']?'split':'merge';if(_0x401193['consumable']['test'](_0x35be3b['markerRange'],_0x1714e3['name']))for(const _0x3b78bc of _0x35be3b['markerRange']['getItems']()){if(!_0x3b78bc['is']('element','softBreak'))continue;const _0xa827ad=_0x401193['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xd235da}),_0x4b6236=_0x401193['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3b78bc));_0x3d4fe4['data']['isSuggestion']&&_0x401193['writer']['addClass']('ck-suggestion-marker-'+_0xd235da+'-new',_0xa827ad),this['activeChange']==_0x3d4fe4&&_0x401193['writer']['addClass']('ck-suggestion-marker--active',_0xa827ad),_0x401193['writer']['insert'](_0x4b6236,_0xa827ad),_0x401193['mapper']['bindElementToMarker'](_0xa827ad,_0x35be3b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1d2f0c=>{for(const _0x321988 of this['editor']['model']['document']['getRootNames']()){const _0xe73f19=this['editor']['model']['document']['getRoot'](_0x321988),_0x3ca1b0=this['editor']['editing']['view']['document']['getRoot'](_0x321988);if(_0x3ca1b0){const _0x154f8c=_0xe73f19['getAttribute']('revisionHistoryAttachChange');if(_0x1d2f0c['removeAttribute']('data-change-id',_0x3ca1b0),_0x1d2f0c['removeClass']('ck-revision-history-root-add',_0x3ca1b0),_0x1d2f0c['removeClass']('ck-revision-history-root-remove',_0x3ca1b0),_0x1d2f0c['removeClass']('ck-revision-history-root--active',_0x3ca1b0),_0x154f8c){const _0x163a6f=this['_getChangeFromId'](_0x154f8c);if(!_0x163a6f)return null;_0x1d2f0c['setAttribute']('data-change-id',_0x154f8c,_0x3ca1b0),_0x1d2f0c['addClass']('ck-revision-history-root-'+_0x163a6f['type'],_0x3ca1b0),this['activeChange']==_0x163a6f&&_0x1d2f0c['addClass']('ck-revision-history-root--active',_0x3ca1b0);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x34b26b=>'revision-comment:'+_0x34b26b,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x21b8e4=>'revision-suggestion:'+_0x21b8e4,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5a0588=>({'name':'suggestion:'+_0x5a0588,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x32a539=>{const _0x1ccc26=_0x32a539['markerName']['split'](':')[0x1];return'insertion'!=_0x1ccc26&&'deletion'!=_0x1ccc26?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1ccc26]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3cc7fd,_0x2fca2c,_0x4a2c94)=>{const _0xd3b6e=_0x4a2c94['mapper']['markerNameToElements'](_0x2fca2c['markerName']);if(_0xd3b6e){for(const _0x4b053a of _0xd3b6e)_0x4b053a['is']('uiElement')&&(_0x4a2c94['mapper']['unbindElementFromMarkerName'](_0x4b053a,_0x2fca2c['markerName']),_0x4a2c94['writer']['remove'](_0x4b053a));}},{'priority':'high'});}['_getChangeFromId'](_0x51e80c){return this['_changeIdToChange']['get'](_0x51e80c);}['_getViewForChange'](_0x2624db){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x2624db),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3a6b89,_0x16dd40,_0x548b53,_0x4bce05)=>{_0x4bce05&&this['_balloon']['remove'](_0x4bce05),_0x548b53&&(this['_balloon']['add']({'view':_0x548b53,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xc9aa3=this['editor']['editing'],_0xed6039=this['_getChangeFromId'](_0x548b53['changeId']);let _0x3e2ce9;if(_0xed6039['data']['isOnRoot']){const _0x2143f4=_0xc9aa3['view']['getDomRoot'](_0xed6039['rootName']);_0x3e2ce9=Array['from'](_0x2143f4['getClientRects']());}else{const _0x3e50b9=this['editor']['model']['markers']['get']('revision:'+_0x548b53['changeId']);_0x3e2ce9=Array['from'](_0xc9aa3['mapper']['markerNameToElements'](_0x3e50b9['name']))['map'](_0x37a054=>_0xc9aa3['view']['domConverter']['mapViewToDom'](_0x37a054))['map'](_0x321d6f=>Array['from'](_0x321d6f['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3e2ce9[0x0];return _0x3e2ce9['find'](_0x4e9bca=>_0x4e9bca['top']-0x3<=this['_activeViewTarget']['y']&&_0x4e9bca['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4e9bca['left']-0x3<=this['_activeViewTarget']['x']&&_0x4e9bca['right']+0x3>=this['_activeViewTarget']['x'])||_0x3e2ce9[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x107333,_0x5cdf86,_0x17b76f,_0x68460a)=>{this['activeView']=_0x17b76f?this['_getViewForChange'](_0x17b76f):null,this['editor']['model']['change'](()=>{const _0x480bda=this['editor']['editing'];_0x68460a&&(_0x68460a['data']['isOnRoot']?_0x480bda['view']['change'](_0x2dd210=>{_0x2dd210['removeClass']('ck-revision-history-root--active',_0x480bda['view']['document']['getRoot'](_0x68460a['rootName']));}):_0x480bda['reconvertMarker']('revision:'+_0x68460a['id'])),_0x17b76f&&(_0x17b76f['data']['isOnRoot']?_0x480bda['view']['change'](_0xc6f824=>{_0xc6f824['addClass']('ck-revision-history-root--active',_0x480bda['view']['document']['getRoot'](_0x17b76f['rootName']));}):_0x480bda['reconvertMarker']('revision:'+_0x17b76f['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x201e5c,_0x2c4b34)=>{if(this['activeChange'])return;const _0x1c6f64=this['_findChangeIdFromDomTarget'](_0x2c4b34['target']),_0x547512=this['_changeIdToChange']['get'](_0x1c6f64);_0x547512?(this['_activeViewTarget']={'x':_0x2c4b34['domEvent']['x'],'y':_0x2c4b34['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x547512)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4893c3,_0x347306)=>{const _0x36081d=this['_findChangeIdFromDomTarget'](_0x347306['target']),_0x21d0ee=this['_changeIdToChange']['get'](_0x36081d);_0x21d0ee?(this['_activeViewTarget']={'x':_0x347306['domEvent']['x'],'y':_0x347306['domEvent']['y']},_0x21d0ee===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x21d0ee):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x45df7e){do{const _0x1e7d42=_0x45df7e['getAttribute']('data-change-id');if(_0x1e7d42)return _0x1e7d42;_0x45df7e=_0x45df7e['parent'];}while(_0x45df7e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x36ad55=>{for(const _0x4d28e0 of this['editor']['model']['markers'])_0x36ad55['removeMarker'](_0x4d28e0);});}}function X(_0xfb6ba3,_0x3f1228){return(_0x5896b7,_0x105246,_0x27b4b4)=>{if(!_0x27b4b4['consumable']['test'](_0x105246['markerRange'],_0x5896b7['name']))return;const _0x37e1ad=_0x105246['markerRange']['getWalker'](),_0x5be441=_0x105246['markerRange']['start'],_0x2d1fcf=_0xfb6ba3['model']['schema'];let _0x4bd695=null,_0x422347=null,_0x2e0f7b=!0x1,_0xc7cd7c=!0x1;for(const _0xf87525 of _0x37e1ad){const _0x463420=_0xf87525['item'];_0x2e0f7b=_0x2e0f7b||_0x2d1fcf['isContent'](_0x463420);const _0x25f68d=_0x27b4b4['mapper']['toViewElement'](_0x463420);if(_0x25f68d&&_0x25f68d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xf87525['type']&&(_0x2d1fcf['isBlock'](_0x463420)&&!_0x2d1fcf['isLimit'](_0x463420)&&(_0x463420['nextSibling']||_0x5be441['isAtEnd']?_0x4bd695&&_0x4bd695['parent']==_0x463420||(_0x4bd695=_0x463420,_0x35f884(_0xf87525['previousPosition']),_0xc7cd7c=!0x0):_0x422347=_0x422347||_0xf87525['previousPosition']));}function _0x35f884(_0x1a5607){const _0x5dbede=_0x27b4b4['mapper']['toViewPosition'](_0x1a5607),_0x3ac113=_0x27b4b4['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3f1228});_0x27b4b4['writer']['insert'](_0x5dbede,_0x3ac113),_0x27b4b4['mapper']['bindElementToMarker'](_0x3ac113,_0x105246['markerName']);}_0x2e0f7b||_0xc7cd7c||!_0x422347||_0x35f884(_0x422347);};}class wt extends _0x50146d{constructor(_0x495d9f){super(_0x495d9f);const _0x34db8b=_0x495d9f['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x34db8b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x34db8b,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x518921=this['editor'],_0x3e87f0=_0x518921['plugins']['get'](m),_0x1e6a18=_0x3e87f0['isReady']?_0x3e87f0['diff']['newRevisionId']:null;_0x518921['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1e6a18);}['refresh'](){const {isReady:_0x2170bd,isEnabled:_0x3c805b,repository:_0x25bb70,diff:_0x105fc2}=this['editor']['plugins']['get'](m),_0x1791f3=_0x105fc2&&_0x25bb70['getLaterVisibleRevision'](_0x105fc2['newRevisionId']);this['isEnabled']=_0x2170bd&&_0x3c805b&&Boolean(_0x1791f3);}}class pt extends _0x50146d{['_step'];constructor(_0x30fb8c,{direction:_0x4fb1f6}){super(_0x30fb8c);const _0x25c29f=_0x30fb8c['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4fb1f6?0x1:-0x1,this['listenTo'](_0x25c29f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x25c29f,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x25c29f,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4ca35d=this['editor'],_0x32e5e9=_0x4ca35d['plugins']['get'](m),{isNavigationMode:_0x4ae37c,currentChangeNumber:_0x2b6c53}=_0x32e5e9;let _0x3bd926;if(_0x32e5e9['activeChange']=_0x4ae37c?_0x32e5e9['diff']['changes']['get'](_0x2b6c53+this['_step']):_0x32e5e9['diff']['changes']['first'],_0x32e5e9['activeChange']['data']['isOnRoot'])_0x3bd926=_0x4ca35d['editing']['view']['getDomRoot'](_0x32e5e9['activeChange']['rootName']);else{const _0x12997e=_0x4ca35d['model']['markers']['get']('revision:'+_0x32e5e9['activeChange']['id']);_0x3bd926=_0x8f2f92(_0x4ca35d['editing'],_0x12997e);}_0x599f04({'target':_0x3bd926,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x293786,currentChangeNumber:_0x18f5c7,numberOfChanges:_0x2aca88,isReady:_0x208e19,isEnabled:_0xcbdb4f}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0xcbdb4f&&_0x208e19&&_0x2aca88)&&(!_0x293786||(0x1===this['_step']?_0x18f5c7<_0x2aca88-0x1:_0x18f5c7>0x0));}}class _i extends _0x3e61c9{constructor(_0x265807){super(_0x265807);const _0x2bc860=this['bindTemplate'],_0x2a1699=new _0x80fe4d(_0x265807),_0x47e963=new _0x80fe4d(_0x265807);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x41f2cf,_0x1f11d9)=>_0x41f2cf&&_0x1f11d9>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x50efd7,_0xfb265d,_0x5eb3bd,_0x1f4e7d)=>{if(!_0x50efd7)return g(_0x265807,'Loading...');if(!_0x5eb3bd)return g(_0x265807,'No\x20changes');const _0x57ab96=g(_0x265807,'NUMBER_OF_CHANGES',_0x5eb3bd);return _0x1f4e7d?g(_0x265807,'X_OF_Y_CHANGES',[_0xfb265d+0x1,_0x5eb3bd]):_0x57ab96;}),_0x2a1699['set']({'label':g(_0x265807,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x51b247}),_0x47e963['set']({'label':g(_0x265807,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4bd91a}),_0x2a1699['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x47e963['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2a1699['on']('execute',()=>this['fire']('execute','backward')),_0x47e963['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x2bc860['if']('_isStatusLabelVisible','ck-hidden',_0x175817=>!_0x175817)]},'children':[{'text':_0x2bc860['to']('isNavigationMode',_0x407536=>_0x407536?g(_0x265807,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x265807,'Total')+':\x20')}]},{'text':_0x2bc860['to']('_statusText')}]},new _0x4cc0d3(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2a1699,_0x47e963]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x45a363{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xd9cd6e=this['editor']['editing']['view'];_0xd9cd6e['change'](_0x24c7e8=>{for(const _0x485756 of _0xd9cd6e['document']['roots'])_0x24c7e8['addClass'](ce,_0x485756);});}['hide'](){const _0x19b8cd=this['editor']['editing']['view'];_0x19b8cd['change'](_0x5bc111=>{for(const _0x1c4767 of _0x19b8cd['document']['roots'])_0x5bc111['removeClass'](ce,_0x1c4767);});}}class R extends _0x45a363{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x2c50dd=this['editor'],_0x2ea2e1=_0x2c50dd['plugins']['get'](m),_0x4abc88=_0x2c50dd['plugins']['get'](le);_0x2c50dd['ui']['componentFactory']['add']('exitToEditing',_0x24ca6e=>{const _0x5e716f=new _0x80fe4d(_0x24ca6e);return _0x5e716f['set']({'label':g(_0x24ca6e,'Back\x20to\x20editing'),'icon':_0x34fcad,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5e716f,'execute',()=>{_0x2c50dd['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5e716f;}),_0x2c50dd['ui']['componentFactory']['add']('restoreRevision',_0x15bfd2=>{const _0x275a37=new _0x80fe4d(_0x15bfd2);return _0x275a37['set']({'label':g(_0x15bfd2,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x275a37['bind']('isEnabled')['to'](_0x2c50dd['commands']['get']('restoreRevision')),this['listenTo'](_0x275a37,'execute',()=>_0x2c50dd['execute']('restoreRevision')),_0x275a37;}),_0x2c50dd['ui']['componentFactory']['add']('changesNavigation',_0x3fad34=>{const _0x34ee26=new _i(_0x3fad34),_0x4f488a=_0x2c50dd['commands']['get']('showPreviousChange'),_0x3e74b0=_0x2c50dd['commands']['get']('showNextChange');return _0x34ee26['bind']('isBackwardNavigationEnabled')['to'](_0x4f488a,'isEnabled'),_0x34ee26['bind']('isForwardNavigationEnabled')['to'](_0x3e74b0,'isEnabled'),_0x34ee26['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2ea2e1),this['listenTo'](_0x34ee26,'execute',(_0x18ed04,_0x38923c)=>{_0x2c50dd['execute']('forward'===_0x38923c?'showNextChange':'showPreviousChange');}),_0x34ee26;}),_0x4abc88['show'](),_0x2ea2e1['on']('change:isReady',(_0x5c47b9,_0x3b2b95,_0x25f008)=>{_0x25f008?_0x4abc88['hide']():_0x4abc88['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x4f58d7,_0x4b9aea){super(_0x4f58d7,_0x4b9aea);const _0x199b70=this['bindTemplate'];this['set']({'label':g(_0x4f58d7,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x4f58d7,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x199b70['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2726b6=this['fieldView']['element'];this['_tooltipString']=_0x2726b6['scrollWidth']>_0x2726b6['clientWidth']&&_0x2726b6['value']||'';}}class oi extends _0x3e61c9{constructor(_0x9b7cf5,_0x1c0b00,_0x5cf4ad){super(_0x9b7cf5);const _0x551487=new _0x1b0f1f();_0x551487['set']({'content':_0xdcd48e,'viewBox':'0\x200\x2011\x2010'});const _0x2719e8=['ck','ck-revision-history-sidebar__revision-author'];_0x5cf4ad&&_0x2719e8['push']('ck-revision-history-sidebar__revision-author_creator');const _0x28c477=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x9b7cf5,_0x5cf4ad?'Revision\x20creator':'Revision\x20author')},'children':[_0x551487,_0x1c0b00['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2719e8},'children':_0x28c477});}}function ni(_0x109937,_0x49fa3b){const _0x264b25=_0x109937['bindTemplate'],_0x32a41f=_0x109937['locale'],_0x30e39a=_0x23c652(_0x32a41f);_0x30e39a['panelPosition']='sw';const _0xfa8cbf=function(_0xcbfaad,_0x1123a1){const _0x5b7f1a=function(_0x2c176a,_0x49a997){const _0x2f5c0b=_0x2c176a['locale'],_0x3f1f77={'Compare\x20against\x20selected':g(_0x2f5c0b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x2f5c0b,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x2f5c0b,'Restore\x20this\x20revision')};return _0x49a997['map'](_0x304ede=>{const _0x3be2bc=_0x3f1f77[_0x304ede['name']];return _0x3be2bc&&_0x3be2bc!==_0x304ede['name']&&(_0x304ede['name']=_0x3be2bc),_0x304ede;});}(_0xcbfaad,_0x1123a1),_0x5a109a=new _0x183b7a();for(const _0x146939 of _0x5b7f1a){const _0x1ddc2e={'type':'button','model':new to({'label':_0x146939['name'],'class':_0x146939['class'],'withText':!0x0,'role':'menuitem','_action':_0x146939['action']})};_0x1ddc2e['model']['bind']('isEnabled')['to'](_0xcbfaad,'isActionsDropdownOpen',_0x34d6bf=>'function'!=typeof _0x146939['isEnabled']||(!_0x34d6bf||_0x146939['isEnabled'](_0xcbfaad))),_0x5a109a['add'](_0x1ddc2e);}return _0x5a109a;}(_0x109937,_0x49fa3b);return _0x109937['bind']('isActionsDropdownOpen')['to'](_0x30e39a,'isOpen'),_0x30e39a['buttonView']['set']({'label':g(_0x32a41f,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x53bbd7}),_0x30e39a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x264b25['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x264b25['to'](_0xd49cb=>_0xd49cb['stopPropagation']())}}),_0x30e39a['on']('execute',_0x3f76ab=>{_0x109937['isReady']&&'function'==typeof _0x3f76ab['source']['_action']&&_0x3f76ab['source']['_action'](_0x109937);}),_0x4de909(_0x30e39a,_0xfa8cbf,{'role':'menu'}),_0x30e39a['listenTo'](_0x109937,'change:isActionsDropdownOpen',(_0x36287a,_0xb7e3a3,_0x5b9ae4)=>{if(_0x5b9ae4)for(const _0x42e820 of _0x30e39a['listView']['items']){const _0xdca3d5=_0x42e820['children']['first'],_0x1edf2d=_0x49fa3b['find'](_0x582030=>_0x582030['action']===_0xdca3d5['_action'])['isVisible'];_0x42e820['isVisible']=void 0x0===_0x1edf2d||_0x1edf2d(_0x109937);}}),_0x30e39a;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x5cdd15(_0x3e61c9){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3ba24f,_0x165bf5,_0x49b884,_0x5789c1){super(_0x3ba24f);const _0x1a2432=this['bindTemplate'],_0x5e99cd=function(_0x13fac3,_0x26c1cd){const _0x2f085c=Array['from'](_0x26c1cd['authors'])['filter'](_0x596ca5=>_0x596ca5!=_0x26c1cd['creator']);return _0x26c1cd['creator']&&_0x2f085c['unshift'](_0x26c1cd['creator']),_0x2f085c['map'](_0x500fa7=>new oi(_0x13fac3,_0x500fa7,_0x500fa7==_0x26c1cd['creator']));}(_0x3ba24f,_0x165bf5);this['id']=_0x165bf5['id'],this['_revision']=_0x165bf5,this['_requireRevisionName']=_0x5789c1,this['bind']('name','createdAt')['to'](_0x165bf5),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x477381=>{return _0x5ab474=_0x3ba24f['uiLanguage'],(_0xc27158=_0x477381)['toLocaleDateString'](_0x5ab474,{'month':'long','day':'numeric'})+',\x20'+_0xc27158['toLocaleTimeString'](_0x5ab474,{'hour':'numeric','minute':'numeric'});var _0x5ab474,_0xc27158;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x3ba24f,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3ba652=>_0x3ba652||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x28a853,_0x302ac2)=>_0x28a853&&_0x302ac2),this['revisionActionsView']=_0x49b884&&_0x49b884['length']?ni(this,_0x49b884):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1a2432['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1a2432['if']('isEnabled','ck-disabled',_0x5c1c55=>!_0x5c1c55),_0x1a2432['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1a2432['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1a2432['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x1a2432['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x5e99cd}]},this['revisionActionsView']],'on':{'click':_0x1a2432['to'](_0x3c4e83=>{_0x3c4e83['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1f3933=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1f3933,'change',()=>{this['_requireRevisionName']&&!_0x1f3933['value']||this['fire']('setName',{'id':this['id'],'name':_0x1f3933['value']}),_0x1f3933['value']||(_0x1f3933['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x215c55,_0xde7d16){const _0x35b5d8=_0x34dd80['fromJSDate'](_0x215c55)['setLocale'](_0xde7d16),_0x547f2a=_0x34dd80['local'](),_0x1c6398=_0x547f2a['minus']({'days':0x1})['startOf']('day');let _0x5a42a7,_0x100624;return _0x35b5d8['hasSame'](_0x547f2a,'day')?(_0x5a42a7=_0x35b5d8['startOf']('day')['toJSDate'](),_0x100624=_0x35b5d8['toRelativeCalendar']()):_0x35b5d8['hasSame'](_0x1c6398,'day')?(_0x5a42a7=_0x1c6398['toJSDate'](),_0x100624=_0x35b5d8['toRelativeCalendar']()):_0x35b5d8['hasSame'](_0x547f2a,'week')?(_0x5a42a7=_0x35b5d8['startOf']('week')['toJSDate'](),_0x100624=_0x35b5d8['weekdayLong']||''):_0x35b5d8['hasSame'](_0x547f2a,'year')?(_0x5a42a7=_0x35b5d8['startOf']('month')['toJSDate'](),_0x100624=_0x35b5d8['monthLong']||''):(_0x5a42a7=_0x35b5d8['startOf']('year')['toJSDate'](),_0x100624=String(_0x35b5d8['year'])),{'startDate':_0x5a42a7,'localizedPeriodName':_0x100624};}class mi extends _0x3e61c9{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4c0226,_0x4f6e40,_0x374b20,_0x54dcf2){super(_0x4c0226);const _0xd51b44=vi(_0x4f6e40,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4f6e40,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x374b20,this['_requireRevisionName']=_0x54dcf2,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0xd51b44}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x42a465){const _0xcd7e0=new ai(this['locale'],_0x42a465,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0xcd7e0);}['removeRevision'](_0x295a82){const _0x37994d=this['revisionViews']['find'](_0x5987b0=>_0x5987b0['id']===_0x295a82['id']);this['revisionViews']['remove'](_0x37994d);}}class as extends _0x3e61c9{constructor(_0x34383c){super(_0x34383c);const _0x1063cd=new _0x1b0f1f();_0x1063cd['content']=_0x2126f0,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1063cd,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x34383c,'Revision\x20history')]}]});}}class di extends _0x3e61c9{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4d1906,_0x13eab9,_0xa1ecf6,_0x4df56e){super(_0x4d1906);const _0x4eac1e=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x13eab9,this['_revisionActions']=_0xa1ecf6,this['_requireRevisionName']=_0x4df56e,this['on']('select',(_0x83be75,_0x10a750)=>{this['fire']('revisionSelected',_0x10a750);}),this['on']('setName',(_0x2a7f8f,_0xa8e66)=>{this['fire']('revisionSetName',_0xa8e66);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x4d1906),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4eac1e['if']('isEnabled','ck-disabled',_0x36f924=>!_0x36f924)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x890fd0 of this['_revisions'])this['_addRevision'](_0x890fd0);this['_revisions']['on']('add',(_0x205cb7,_0x47478a)=>{this['_addRevision'](_0x47478a);}),this['_revisions']['on']('remove',(_0x105ea0,_0x399e9f)=>{this['_removeRevision'](_0x399e9f);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5673d0=>_0x5673d0['revisionViews']['map'](_0x5a5fb9=>_0x5a5fb9))['flat']();}['selectRevision'](_0x40b511){for(const _0x317583 of this['revisionViews'])_0x40b511&&_0x40b511['id']===_0x317583['id']?_0x317583['select']():_0x317583['deselect']();}['highlightRevisions'](_0xa64528){for(const _0x4e8e36 of this['revisionViews'])_0xa64528['some'](({id:_0x137390})=>_0x137390===_0x4e8e36['id'])?_0x4e8e36['highlight']():_0x4e8e36['unhighlight']();}['_addRevision'](_0x1fa1b2){const _0x4a10a0=vi(_0x1fa1b2['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1a8be7=this['timePeriodViews']['get'](0x0);_0x1a8be7&&_0x1a8be7['startDate']['getTime']()===_0x4a10a0['getTime']()||(_0x1a8be7=new mi(this['locale'],_0x4a10a0,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1a8be7)),_0x1a8be7['addRevision'](_0x1fa1b2);}['_removeRevision'](_0x3e3ea5){const _0x21243f=vi(_0x3e3ea5['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x21243f)['removeRevision'](_0x3e3ea5);}['_getTimePeriodViewByStartDate'](_0x4637ce){return this['timePeriodViews']['find'](_0xccd0fd=>_0xccd0fd['startDate']['getTime']()===_0x4637ce['getTime']());}}class d extends _0x45a363{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x5f5b63,uid as _0x235c9b,Collection as _0x481a5e,logWarning as _0x48800a,FocusTracker as _0x4f7138,KeystrokeHandler as _0x57dc80,scrollViewportToShowTarget as _0x17044c,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x1ddba0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3db99c,set as _0x207ad7,unset as _0x18f589,isEqual as _0x36a9f0}from'es-toolkit/compat';import{Plugin as _0x4af0c1,PendingActions as _0x471bff,Command as _0x1f8cb8,ElementApiMixin as _0x557801,Editor as _0x39acb8}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xdf44e4,getMarkerDomElement as _0x4c8852,ConfirmMixin as ti,sanitizeEditorConfig as _0x55ed1f}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x334b3e,ViewAttributeElement as _0x1c4965,ViewEmptyElement as _0x3be868,ViewRawElement as _0x1bfa9d,ViewUIElement as _0x526ec4,ViewDocumentFragment as _0x305b6a,ViewText as _0x96c6bd,ViewElement as _0x429408,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x43b690,IconChevronUp as _0x4716c,IconChevronDown as _0xbcd431,IconUndo as _0xf13ab6,IconUser as _0x2044fd,IconThreeVerticalDots as _0x8c16b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x45fa9a,View as _0x65ffd8,submitHandler as _0x2d6dcb,LabeledFieldView as ts,createLabeledInputText as _0x27b255,createDropdown as _0x328c25,ListView as _0x1e2c18,ListItemView as _0x53062b,ButtonView as te,MenuBarMenuView as _0xc3f7a9,MenuBarMenuListView as _0x5ed2d7,MenuBarMenuListItemView as _0x3b7a91,MenuBarMenuListItemButtonView as _0xe6b912,ContextualBalloon as _0xa68a23,ToolbarSeparatorView as _0x5f583d,IconView as _0x4e1780,addListToDropdown as _0x3b7d0a,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4a3d54}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x5f5b63(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x285855){super(),this['id']=_0x285855['id']||_0x235c9b(),this['creator']=_0x285855['creator']||null,this['authors']=_0x285855['authors']||[],this['diffData']=_0x285855['diffData']||null,this['toVersion']=_0x285855['toVersion']||0x0,this['fromVersion']=_0x285855['fromVersion']||0x0,this['set']('name',_0x285855['name']||''),this['set']('createdAt',_0x285855['createdAt']||new Date()),this['set']('attributes',_0x285855['attributes']||{});}['setName'](_0x35af1c){this['_update']({'name':_0x35af1c});}['setAttribute'](_0x2d6d77,_0x26b487){const _0x42a0b2=_0x3db99c(this['attributes']);_0x207ad7(_0x42a0b2,_0x2d6d77,_0x26b487),this['_update']({'attributes':_0x42a0b2});}['removeAttribute'](_0x142883){const _0x51602d=_0x3db99c(this['attributes']);_0x18f589(_0x51602d,_0x142883),this['_update']({'attributes':_0x51602d});}['_update'](_0x35e1a7,_0x5edd26=!0x1){let _0x402172=!0x1;const _0x4f425a={'id':this['id']},_0x3071de=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x29ff41 of _0x3071de){const _0x192349=_0x35e1a7[_0x29ff41];void 0x0!==_0x192349&&_0x192349!==this[_0x29ff41]&&(this[_0x29ff41]=_0x192349,_0x4f425a[_0x29ff41]=_0x192349,_0x402172=!0x0);}_0x402172&&(_0x4f425a['authors']&&(_0x4f425a['authorsIds']=_0x4f425a['authors']['map'](_0x497f78=>_0x497f78['id']),delete _0x4f425a['authors']),this['fire']('_update',_0x4f425a,_0x5edd26));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xfed070=>_0xfed070['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x4af0c1{['_revisions'];static get['requires'](){return[_0xdf44e4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x282b1c){super(_0x282b1c),this['_revisions']=new _0x481a5e();}['afterInit'](){!async function(_0x1a3058){const _0x50cb12=_0x55a13c([0x43,0x6f,0x38,0x4f,0x48,0x41,0x72,0x30,0x78,0x69,0x73,0x33,0x31,0x39,0x6d,0x66,0x77,0x4e,0x71,0x4a,0x6b,0x6a,0x32,0x46,0x4c,0x74,0x54,0x6e,0x57,0x49,0x62,0x35,0x42,0x7a,0x55,0x56,0x53,0x47,0x4d,0x67,0x37,0x61,0x70,0x59,0x64,0x5a,0x63,0x51,0x75,0x4b,0x76,0x52,0x50,0x79,0x6c,0x58,0x34,0x65,0x45,0x68,0x36,0x44]),_0x390c85=0xeb829,_0x2d7ef0=0x4ec3a0df,_0x417c96=0x4ec4c93f^_0x2d7ef0,_0x447011=window[_0x55a13c([0x44,0x61,0x74,0x65])][_0x55a13c([0x6e,0x6f,0x77])](),_0x2a79be=_0x1a3058[_0x55a13c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x22e032=new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x369f75=>{_0x2a79be[_0x55a13c([0x6f,0x6e,0x63,0x65])](_0x55a13c([0x72,0x65,0x61,0x64,0x79]),_0x369f75);}),_0x4ef082={[_0x55a13c([0x6b,0x74,0x79])]:_0x55a13c([0x45,0x43]),[_0x55a13c([0x75,0x73,0x65])]:_0x55a13c([0x73,0x69,0x67]),[_0x55a13c([0x63,0x72,0x76])]:_0x55a13c([0x50,0x2d,0x32,0x35,0x36]),[_0x55a13c([0x78])]:_0x55a13c([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x55a13c([0x79])]:_0x55a13c([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x55a13c([0x61,0x6c,0x67])]:_0x55a13c([0x45,0x53,0x32,0x35,0x36])},_0x1c1111=_0x2a79be[_0x55a13c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x55a13c([0x67,0x65,0x74])](_0x55a13c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x15576f(){let _0xa4efac,_0x4176a7=null,_0x9fa44a=null;try{if(_0x1c1111==_0x55a13c([0x47,0x50,0x4c]))return _0x55a13c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa4efac=_0x4fc377(),!_0xa4efac)return _0x55a13c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa4efac[_0x55a13c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9fa44a=_0x5edc2c(_0xa4efac[_0x55a13c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa4efac[_0x55a13c([0x6a,0x74,0x69])])),await _0x12126e()?_0x40ef2b()?_0x268619()?_0x55a13c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f80ad()?(_0xa4efac[_0x55a13c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55a13c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4176a7=_0x19e6de(_0x55a13c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa4efac[_0x55a13c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55a13c([0x74,0x72,0x69,0x61,0x6c])&&(_0x4176a7=_0x19e6de(_0x55a13c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x201c59()):_0x55a13c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x55a13c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x55a13c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x55a13c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x268619(){const _0x3550eb=[_0x55a13c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x55a13c([0x74,0x72,0x69,0x61,0x6c])][_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa4efac[_0x55a13c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x447011/0x3e8:0xe10*_0x417c96;return _0xa4efac[_0x55a13c([0x65,0x78,0x70])]<_0x3550eb;}function _0x40ef2b(){const _0x496e3b=_0xa4efac[_0x55a13c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x496e3b)return!0x1;if(_0x496e3b[_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a13c([0x2a])))return!0x0;if(_0x496e3b[_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a13c([0x52,0x48])))return!0x0;if(_0x496e3b[_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a13c([0x52,0x52,0x48]))){if(_0x23fc40())return!0x0;if(_0x34f05f()||_0x18aaec())return!0x0;}return!0x1;}function _0x4f80ad(){const _0x358bca=_0xa4efac[_0x55a13c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x358bca||0x0==_0x358bca[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ffb5d}=new URL(window[_0x55a13c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x358bca[_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ffb5d))return!0x0;const _0x31dae9=_0x4ffb5d[_0x55a13c([0x73,0x70,0x6c,0x69,0x74])](_0x55a13c([0x2e]));return _0x358bca[_0x55a13c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e4412=>_0x5e4412[_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a13c([0x2a])))[_0x55a13c([0x6d,0x61,0x70])](_0xf83aa3=>_0xf83aa3[_0x55a13c([0x73,0x70,0x6c,0x69,0x74])](_0x55a13c([0x2e])))[_0x55a13c([0x73,0x6f,0x6d,0x65])](_0x39a9b9=>_0x31dae9[_0x55a13c([0x65,0x76,0x65,0x72,0x79])]((_0xf44e26,_0x1ad7fa)=>_0x39a9b9[_0x1ad7fa]===_0xf44e26||_0x39a9b9[_0x1ad7fa]===_0x55a13c([0x2a])));}function _0x201c59(){return _0x4176a7&&_0x9fa44a?new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e3c06,_0x3503a6)=>{_0x4176a7[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x5e3c06,_0x3503a6),_0x9fa44a[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x5807c5=>{_0x5807c5!=_0x55a13c([0x56,0x61,0x6c,0x69,0x64])&&_0x5e3c06(_0x5807c5);},_0x3503a6);}):_0x4176a7||_0x9fa44a||_0x55a13c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5edc2c(_0x391361,_0x13b9b0){return new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ba085=>{if(_0x240290())return _0x4ba085(_0x55a13c([0x56,0x61,0x6c,0x69,0x64]));_0x2f9bd1(),_0x2a79be[_0x55a13c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x55a13c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3005d9=!0x1;const _0x2344b0=_0x235c9b();function _0x38fc6a(_0x1ff073){return!!_0x1ff073&&(typeof _0x1ff073===_0x55a13c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ff073===_0x55a13c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ff073[_0x55a13c([0x74,0x68,0x65,0x6e])]===_0x55a13c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ff073[_0x55a13c([0x63,0x61,0x74,0x63,0x68])]===_0x55a13c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x389226(_0x5c5271){_0x2a8f61(_0x5c5271)[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x49862d=>{if(!_0x49862d||_0x49862d[_0x55a13c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x55a13c([0x6f,0x6b]))return _0x55a13c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xaeddb0(_0x18db19(_0x2344b0+_0x13b9b0))!=_0x49862d[_0x55a13c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x55a13c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x55a13c([0x56,0x61,0x6c,0x69,0x64]);})[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x484ea6=>(_0x8f1c90(),_0x484ea6),()=>{const _0xb048b0=_0xce3001();return null==_0xb048b0?(_0x8f1c90(),_0x55a13c([0x56,0x61,0x6c,0x69,0x64])):_0x55a13c(_0x447011-_0xb048b0>(0x6acf24df^_0x2d7ef0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x4ba085)[_0x55a13c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ba085(_0x55a13c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2fade2=0x4ef54e5f^_0x2d7ef0;function _0x8f1c90(){const _0x3433c2=_0x55a13c([0x6c,0x6c,0x63,0x74,0x2d])+_0xaeddb0(_0x18db19(_0x391361)),_0x59f04e=_0x5719d1(_0xaeddb0(window[_0x55a13c([0x4d,0x61,0x74,0x68])][_0x55a13c([0x63,0x65,0x69,0x6c])](_0x447011/_0x2fade2)));window[_0x55a13c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55a13c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3433c2,_0x59f04e);}function _0xce3001(){const _0x567a1d=_0x55a13c([0x6c,0x6c,0x63,0x74,0x2d])+_0xaeddb0(_0x18db19(_0x391361)),_0x358062=window[_0x55a13c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55a13c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x567a1d);return _0x358062?window[_0x55a13c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5719d1(_0x358062),0x10)*_0x2fade2:null;}function _0x2a8f61(_0x2d9673){return new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10ff38,_0x3db6a8)=>{_0x2d9673[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x10ff38,_0x3db6a8),window[_0x55a13c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3db6a8,0x4ec2741f^_0x2d7ef0);});}}_0x2a79be[_0x55a13c([0x6f,0x6e])](_0x55a13c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x39e29f,_0x54893e)=>{if(_0x54893e[0x0]!=_0x391361)return _0x4ba085(_0x55a13c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54893e[0x1]={..._0x54893e[0x1],[_0x55a13c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2344b0};},{[_0x55a13c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55a13c([0x68,0x69,0x67,0x68])}),_0x2a79be[_0x55a13c([0x6f,0x6e])](_0x55a13c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x381f13=>{_0x38fc6a(_0x381f13[_0x55a13c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3005d9=!0x0,_0x389226(_0x381f13[_0x55a13c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x55a13c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55a13c([0x6c,0x6f,0x77])}),_0x22e032[_0x55a13c([0x74,0x68,0x65,0x6e])](()=>{_0x3005d9||_0x4ba085(_0x55a13c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x240290(){return _0x2a79be[_0x55a13c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55a13c([0x76,0x69,0x65,0x77])][_0x55a13c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x55a13c([0x61,0x75,0x74,0x6f]);}function _0x2f9bd1(){_0x2a79be[_0x55a13c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55a13c([0x76,0x69,0x65,0x77])][_0x55a13c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x55a13c([0x61,0x75,0x74,0x6f]);}}function _0x19e6de(_0xe181c4){const _0x26ed59=[new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x367414=>setTimeout(_0x367414,0x4eca9e13^_0x2d7ef0)),_0x22e032[_0x55a13c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dd633=>{const _0x906345=0x4ec3a0d8^_0x2d7ef0,_0xf4c35f=_0x1a3058[_0x55a13c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x7fcd4d(){_0xf4c35f[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x906345&&_0x4dd633();}_0x7fcd4d(),_0xf4c35f[_0x55a13c([0x6f,0x6e])](_0x55a13c([0x61,0x64,0x64]),_0x7fcd4d);})),new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x119ba6=>{function _0x493aeb(){for(const _0x235c54 in window)if(window[_0x55a13c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x55a13c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x235c54))&&window[_0x235c54]==_0x390c85)return _0x119ba6();_0x2a79be[_0x55a13c([0x73,0x74,0x61,0x74,0x65])]!=_0x55a13c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x55a13c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x493aeb,0x4ec3b357^_0x2d7ef0);}_0x535ed4(_0x55a13c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x493aeb();})];return window[_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x55a13c([0x72,0x61,0x63,0x65])](_0x26ed59)[_0x55a13c([0x74,0x68,0x65,0x6e])](()=>_0xe181c4);}async function _0x15aeac(){if(await _0x22e032,_0x535ed4(_0x55a13c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1f5f1b=_0x1a3058[_0x55a13c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x574030=_0x1a3058[_0x55a13c([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x1f5f1b[_0x55a13c([0x69,0x64])]),_0x378e81=_0x8d4c1b(_0x55a13c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x378e81[_0x55a13c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1f5f1b['id'],_0x574030?_0x574030['id']:null,!0x0),_0x378e81[_0x55a13c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x55a13c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x378e81[_0x55a13c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x378e81[_0x55a13c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2efdb6,void(_0x378e81[_0x55a13c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2efdb6);}if(_0x535ed4(_0x55a13c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4b1809=_0x8d4c1b(_0x55a13c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4b1809[_0x55a13c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x55a13c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4b1809[_0x55a13c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4b1809[_0x55a13c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2efdb6,_0x4b1809[_0x55a13c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2efdb6;}_0x2a79be[_0x55a13c([0x6d,0x6f,0x64,0x65,0x6c])][_0x55a13c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2efdb6,_0x2a79be[_0x55a13c([0x6d,0x6f,0x64,0x65,0x6c])][_0x55a13c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2efdb6,_0x2a79be[_0x55a13c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x55a13c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x23fc40(){return _0x535ed4(_0x55a13c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x8d4c1b(_0x55a13c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x55a13c([0x73,0x74,0x61,0x74,0x65])]==_0x55a13c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x34f05f(){return _0x535ed4(_0x55a13c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x18aaec(){return _0x535ed4(_0x55a13c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xb2155b(_0x2720a2){const _0x54bcb0=_0xd7b369();_0x2a79be[_0x54bcb0]=_0x55a13c([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2720a2,_0x2720a2[_0x55a13c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x55a13c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xd7b369()]=_0x390c85),_0x2720a2!=_0x55a13c([0x56,0x61,0x6c,0x69,0x64])&&_0x15aeac();}function _0xd7b369(){const _0x562d0a=window[_0x55a13c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x55a13c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x55a13c([0x6e,0x6f,0x77])]())[_0x55a13c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x55a13c([0x2e]),'');let _0x4ebbd8=_0x55a13c([0x43]);for(let _0x3a6a84=0x0;_0x3a6a84<_0x562d0a[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a6a84+=0x2){let _0xa18245=window[_0x55a13c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x562d0a[_0x55a13c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a6a84,_0x3a6a84+0x2));_0xa18245>=_0x50cb12[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xa18245-=_0x50cb12[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4ebbd8+=_0x50cb12[_0xa18245];}return _0x4ebbd8;}function _0x4fc377(){const _0x9326c1=_0x1c1111[_0x55a13c([0x73,0x70,0x6c,0x69,0x74])](_0x55a13c([0x2e]));if(0x3!=_0x9326c1[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x20f59e(_0x9326c1[0x1]);function _0x20f59e(_0x2857a7){const _0xea0f80=_0x290448(_0x2857a7);return _0xea0f80&&_0x139704()?_0xea0f80:null;function _0x139704(){const _0x2942a1=_0xea0f80[_0x55a13c([0x6a,0x74,0x69])],_0x17a86c=window[_0x55a13c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2942a1[_0x55a13c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2942a1[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e8516={..._0xea0f80,[_0x55a13c([0x6a,0x74,0x69])]:_0x2942a1[_0x55a13c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2942a1[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e8516[_0x55a13c([0x76,0x63])],_0x18db19(_0x4e8516)==_0x17a86c;}}}async function _0x12126e(){let _0x1ba445=!0x0;try{const _0x275689=_0x1c1111[_0x55a13c([0x73,0x70,0x6c,0x69,0x74])](_0x55a13c([0x2e])),[_0x38231c,_0x53282c,_0x547ddc]=_0x275689;return _0x383217(_0x38231c),await _0x5a28b6(_0x38231c,_0x53282c,_0x547ddc),_0x1ba445;}catch{return!0x1;}function _0x383217(_0x4c7467){const _0x2d74cb=_0x290448(_0x4c7467);_0x2d74cb&&_0x2d74cb[_0x55a13c([0x61,0x6c,0x67])]==_0x55a13c([0x45,0x53,0x32,0x35,0x36])||(_0x1ba445=!0x1);}async function _0x5a28b6(_0x420b80,_0xb36305,_0x49f972){const _0x117bf3=window[_0x55a13c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x55a13c([0x66,0x72,0x6f,0x6d])](_0x17c8bd(_0x49f972),_0xb2ddb6=>_0xb2ddb6[_0x55a13c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1afcce=new window[(_0x55a13c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x55a13c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x420b80+_0x55a13c([0x2e])+_0xb36305),_0x27e776=window[_0x55a13c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x55a13c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27e776)return;const _0x39d4e1=await _0x27e776[_0x55a13c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x55a13c([0x6a,0x77,0x6b]),_0x4ef082,{[_0x55a13c([0x6e,0x61,0x6d,0x65])]:_0x55a13c([0x45,0x43,0x44,0x53,0x41]),[_0x55a13c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x55a13c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x55a13c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27e776[_0x55a13c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x55a13c([0x6e,0x61,0x6d,0x65])]:_0x55a13c([0x45,0x43,0x44,0x53,0x41]),[_0x55a13c([0x68,0x61,0x73,0x68])]:{[_0x55a13c([0x6e,0x61,0x6d,0x65])]:_0x55a13c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39d4e1,_0x117bf3,_0x1afcce)||(_0x1ba445=!0x1);}}function _0x290448(_0x3bc61f){return _0x3bc61f[_0x55a13c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x55a13c([0x65,0x79]))?JSON[_0x55a13c([0x70,0x61,0x72,0x73,0x65])](_0x17c8bd(_0x3bc61f)):null;}function _0x17c8bd(_0x15b66e){return window[_0x55a13c([0x61,0x74,0x6f,0x62])](_0x15b66e[_0x55a13c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x55a13c([0x2b]))[_0x55a13c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x55a13c([0x2f])));}function _0x18db19(_0x182704){let _0x1703a5=0x1505;function _0x381d53(_0x18ef66){for(let _0x33dc68=0x0;_0x33dc68<_0x18ef66[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33dc68++){const _0xf68cf1=_0x18ef66[_0x55a13c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33dc68);_0x1703a5=(_0x1703a5<<0x5)+_0x1703a5+_0xf68cf1,_0x1703a5&=_0x1703a5;}}function _0x566da4(_0x2e5965){Array[_0x55a13c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e5965)?_0x2e5965[_0x55a13c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x566da4):_0x2e5965&&typeof _0x2e5965==_0x55a13c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x55a13c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e5965)[_0x55a13c([0x73,0x6f,0x72,0x74])]()[_0x55a13c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1f447f,_0x1a9e2f])=>{_0x381d53(_0x1f447f),_0x566da4(_0x1a9e2f);}):_0x381d53(window[_0x55a13c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e5965));}return _0x566da4(_0x182704),_0x1703a5>>>0x0;}function _0xaeddb0(_0x450321){return _0x450321[_0x55a13c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x55a13c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x55a13c([0x30]));}function _0x5719d1(_0xe7e94c){return _0xe7e94c[_0x55a13c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x55a13c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x55a13c([0x6a,0x6f,0x69,0x6e])]('');}function _0x535ed4(_0xfc0bc){return _0x2a79be[_0x55a13c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x55a13c([0x68,0x61,0x73])](_0xfc0bc);}function _0x8d4c1b(_0x4db8fd){return _0x2a79be[_0x55a13c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x55a13c([0x67,0x65,0x74])](_0x4db8fd);}function _0x2efdb6(){}function _0x55a13c(_0x55b9a4){return _0x55b9a4['map'](_0x35bff9=>String['fromCharCode'](_0x35bff9))['join']('');}_0xb2155b(await _0x15576f());}(this);}['createRevision'](_0x499c16){const _0x4e242c=this['editor']['plugins']['get']('Users');return new h({'id':_0x499c16['id'],'name':_0x499c16['name'],'creator':_0x499c16['creatorId']?_0x4e242c['getUser'](_0x499c16['creatorId']):null,'diffData':_0x499c16['diffData']||_0x499c16['data'],'authors':_0x499c16['authorsIds']['map'](_0x4adb45=>_0x4e242c['getUser'](_0x4adb45)),'createdAt':new Date(_0x499c16['createdAt']),'attributes':_0x499c16['attributes'],'fromVersion':_0x499c16['fromVersion'],'toVersion':_0x499c16['toVersion']});}['addRevision'](_0x4aac11,_0x775920=0x0){this['_revisions']['add'](_0x4aac11,_0x775920);}['getRevision'](_0x4aa847){return this['_revisions']['get'](_0x4aa847);}['getRevisions'](_0x5bfa7c={'toJSON':!0x1}){const _0x26160d=Array['from'](this['_revisions']);return _0x26160d['reverse'](),_0x5bfa7c['toJSON']?_0x26160d['map'](_0x2c6c81=>_0x2c6c81['toJSON']()):_0x26160d;}['getIndex'](_0x1788c8){return this['_revisions']['getIndex'](_0x1788c8);}['getEarlierVisibleRevision'](_0x1639ac){const [,_0x18af0f]=this['getRevisionsIterator'](_0x1639ac,{'direction':'earlier'});return _0x18af0f;}['getLaterVisibleRevision'](_0x25f793){const [,_0xedbf82]=this['getRevisionsIterator'](_0x25f793,{'direction':'later'});return _0xedbf82;}['getRevisionsInDiff'](_0x24e55b){const _0x5d73f1=[];for(const _0x55cf7e of this['getRevisionsIterator'](_0x24e55b['newRevisionId']))if(_0x5d73f1['push'](_0x55cf7e),_0x55cf7e['id']===_0x24e55b['oldRevisionId'])break;return _0x5d73f1;}*['getRevisionsIterator'](_0x3b9c66,{direction:_0x13e69d='earlier',filter:_0x111365=()=>!0x0}={}){const _0x30b82d='earlier'===_0x13e69d?0x1:-0x1;let _0x28770b=this['_revisions']['get'](_0x3b9c66),_0x4cdb2d=this['getIndex'](_0x28770b);for(yield _0x28770b;_0x28770b;){if(_0x4cdb2d+=_0x30b82d,_0x28770b=this['getRevision'](_0x4cdb2d),!_0x28770b)return;_0x111365(_0x28770b)&&(yield _0x28770b);}}}class V extends _0x4af0c1{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x334b3e,'c'],[_0x1c4965,'a'],[_0x3be868,'e'],[_0x1bfa9d,'r'],[_0x526ec4,'u']]);['_typeCharToViewClass']=new Map([['c',_0x334b3e],['a',_0x1c4965],['e',_0x3be868],['r',_0x1bfa9d],['u',_0x526ec4]]);async['loadRevisionData'](_0x54ff67,_0x29608a){if(_0x54ff67['diffData']||!_0x29608a)return;const _0x54e5a9=this['editor']['config']['get']('collaboration.channelId'),_0x2f7d34=await _0x29608a['getRevision']({'channelId':_0x54e5a9,'revisionId':_0x54ff67['id']});_0x54ff67['diffData']=_0x2f7d34['diffData'];}['getRevisionDocumentData'](_0x415a79){const _0x1c020d={};for(const _0x1686e9 in _0x415a79['diffData']){if(_0x415a79['diffData'][_0x1686e9]['attachChange']&&!_0x415a79['diffData'][_0x1686e9]['attachChange']['isAttached'])continue;const _0x2ef989=this['_removeRevisionMarkers'](JSON['parse'](_0x415a79['diffData'][_0x1686e9]['insertions'])),_0x502ab4=this['editor']['editing']['view']['document'],_0x3cda25=new _0x305b6a(_0x502ab4,_0x2ef989['map'](_0x2a2e43=>this['_getViewFromDiffObj'](_0x2a2e43,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1c020d[_0x1686e9]=this['editor']['data']['processor']['toData'](_0x3cda25),this['editor']['data']['processor']['useFillerType']('default');}return _0x1c020d;}['getRevisionRootsAttributes'](_0x8f789d){const _0x21a5f2={};for(const _0x4f464a in _0x8f789d['diffData'])_0x8f789d['diffData'][_0x4f464a]['attachChange']&&!_0x8f789d['diffData'][_0x4f464a]['attachChange']['isAttached']||(_0x21a5f2[_0x4f464a]=_0x8f789d['diffData'][_0x4f464a]['attributesAfter']||{});return _0x21a5f2;}['_getTypeCharForViewElement'](_0x5915da){return this['_viewClassToTypeChar']['get'](_0x5915da['constructor']);}['_getViewFromDiffObj'](_0x58e751,_0x430f50){const _0x1cb61b=this['editor']['editing']['view']['document'];if('string'==typeof _0x58e751)return new _0x96c6bd(_0x1cb61b,_0x58e751);{let _0x312076,_0x48fa12;_0x48fa12='u'==_0x58e751['type']||'r'==_0x58e751['type']?[]:_0x58e751['children']['map'](_0x5d82d4=>this['_getViewFromDiffObj'](_0x5d82d4,_0x430f50));const _0x306ce9=this['_typeCharToViewClass']['get'](_0x58e751['type'])||_0x429408,_0xeb99e1=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x312076=new _0x306ce9(_0x1cb61b,_0x58e751['name'],_0x58e751['attributes'],_0x48fa12),'u'==_0x58e751['type']&&_0x58e751['children'][0x0]){const _0x419737=_0x58e751['children'][0x0];if(_0x312076['render']=function(_0x4b587e){const _0x37fbae=_0x4b587e['createElement']('div');return _0x37fbae['innerHTML']=_0x419737,_0x37fbae['childNodes'][0x0];},_0x430f50){const _0x5194af=new _0x305b6a(_0x1cb61b);_0x5194af['_appendChild'](_0x312076);const _0x14dcdb=Array['from'](_0xeb99e1['viewChildrenToDom'](_0x5194af,{'bind':!0x1})),_0x6f85a9=_0xeb99e1['domDocument']['createElement']('div');_0x6f85a9['append'](..._0x14dcdb),_0x312076=Array['from'](_0xeb99e1['domChildrenToView'](_0x6f85a9))[0x0];}}else{if('r'==_0x58e751['type']&&_0x58e751['children'][0x0]){const _0x388700=_0x58e751['children'][0x0];if(_0x312076['render']=function(_0x50c17a){_0x50c17a['innerHTML']=_0x388700;},_0x430f50){const _0x490d10=new _0x305b6a(_0x1cb61b);_0x490d10['_appendChild'](_0x312076);const _0x377d34=Array['from'](_0xeb99e1['viewChildrenToDom'](_0x490d10,{'bind':!0x1})),_0x151c37=_0xeb99e1['domDocument']['createElement']('div');_0x151c37['append'](..._0x377d34);const _0x5809a3=Array['from'](_0xeb99e1['domChildrenToView'](_0x151c37));_0x5809a3['length']>0x1?_0x312076['_appendChild'](_0x5809a3):_0x312076=_0x5809a3[0x0];}}}if(_0x58e751['customProperties']){for(const [_0x15e811,_0x2fb672]of _0x58e751['customProperties'])_0x312076['_setCustomProperty'](_0x15e811,_0x2fb672);}const _0x354e27=void 0x0===_0x58e751['fillerOffset']?null:_0x58e751['fillerOffset'];return null!==_0x354e27&&(_0x312076['getFillerOffset']=()=>_0x354e27),_0x312076;}}['_makeModelFromViewString'](_0x304126){const _0x118216=JSON['parse'](_0x304126),_0x19c696=this['editor']['editing']['view']['document'],_0x262e3a=new _0x305b6a(_0x19c696,_0x118216['map'](_0x270632=>this['_getViewFromDiffObj'](_0x270632,!0x0)));return this['editor']['data']['toModel'](_0x262e3a);}['_removeRevisionMarkers'](_0x414d2e){return(_0x414d2e=_0x414d2e['filter'](_0x1f1c12=>!_0x1f1c12['name']||'revision-start'!==_0x1f1c12['name']&&'revision-end'!==_0x1f1c12['name']))['forEach'](_0xf66190=>{'string'!=typeof _0xf66190&&(_0xf66190['children']=this['_removeRevisionMarkers'](_0xf66190['children']),_0xf66190['attributes']=_0xf66190['attributes']['filter'](_0x32d567=>!_0x32d567[0x0]['startsWith']('data-revision-')));}),_0x414d2e;}}function g(_0x3cbb08,_0x10fbcd,_0x303a11){const t=_0x3cbb08['t'];switch(_0x10fbcd){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x303a11);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x303a11);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x4af0c1{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xdf44e4,I,V,_0x471bff];}constructor(_0x22cc8d){super(_0x22cc8d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x521928=_0x235c9b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x521928},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x19528a=this['repository']['getRevision'](0x0),_0x4cfe25=_0x19528a&&null===_0x19528a['creator']?_0x19528a:null;if(this['_continueCurrentRevision']=!!_0x4cfe25&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x518f74=this['_source']['getCurrentRevisionId'](),_0x3ad4cc=this['repository']['getRevision'](_0x518f74);if(_0x3ad4cc)this['_startingVersion']=_0x3ad4cc['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1afe41=this['_source']['history']['_operations']['find'](_0x312a7e=>!_0x312a7e['_isInit']),_0x469d65=_0x1afe41?_0x1afe41['baseVersion']:this['_source']['history']['version'];_0x19528a?(_0x19528a['toVersion']<_0x469d65&&_0x19528a['_update']({'toVersion':_0x469d65}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4cfe25['id'],this['_startingVersion']=_0x4cfe25['fromVersion']):(this['_startingVersion']=_0x19528a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x469d65,this['_continueCurrentRevision']=!0x1);}}else _0x4cfe25&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4cfe25['toVersion'],this['editor']['model']['document']['history']['version']),_0x4cfe25['fromVersion']===_0x4cfe25['toVersion']?(0x0!==_0x4cfe25['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4cfe25['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4cfe25['id'],this['_startingVersion']=_0x4cfe25['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x253827=>!_0x253827),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2f0819=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2bab1a;for(const _0x5ac71d in _0x2f0819){const _0x219a26=_0x5ac71d,_0x4c709b=_0x2f0819[_0x219a26];if('revisionHistoryLicenseKeyValid'==_0x4c709b||'revisionHistoryLicenseKeyInvalid'==_0x4c709b||'revisionHistoryLicenseKeyExpired'==_0x4c709b||'revisionHistoryLicenseKeyDomainLimit'==_0x4c709b||'revisionHistoryLicenseKeyNotAllowed'==_0x4c709b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4c709b||'revisionHistoryLicenseKeyTrialLimit'==_0x4c709b||'revisionHistoryLicenseKeyUsageLimit'==_0x4c709b){delete _0x2f0819[_0x219a26],_0x2bab1a=_0x4c709b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2bab1a&&_0x2f0819['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2bab1a&&_0x2f0819['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2bab1a&&_0x2f0819['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2bab1a&&_0x2f0819['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2bab1a&&_0x2f0819['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2bab1a&&_0x2f0819['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2bab1a&&_0x2f0819['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x280abe=this['repository']['getRevision'](0x0),_0x18fb9a=await this['getRevisionDocumentData'](_0x280abe),_0x421d49=await this['getRevisionRootsAttributes'](_0x280abe);this['_replaceEditorDataWithRevisionData'](_0x18fb9a,_0x421d49);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5d87e3){this['_source']=_0x5d87e3;}async['update'](){const _0x2816f6=await this['_source']['getLatestVersion']();if(_0x2816f6>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3331c0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2816f6});_0x3331c0['authors']=_0x3331c0['authorsIds']['map'](_0x252c6e=>this['editor']['plugins']['get']('Users')['getUser'](_0x252c6e)),this['currentRevision']['_update'](_0x3331c0);}}async['saveRevision'](_0x197faf={},_0x31926c=null){const _0x5b2332=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x31926c>this['currentRevision']['toVersion']&&(_0x31926c=null),null===_0x31926c&&(_0x31926c=await this['_source']['getLatestVersion']());const _0x5f367d=this['_getFromVersion'](_0x31926c),_0x402432=this['buildRevisionData']({'from':_0x5f367d,'to':_0x31926c});if(this['currentRevision']['toVersion']<_0x31926c){const _0x544088=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x31926c,'to':_0x31926c});_0x544088['authors']=[],_0x544088['authorsIds']=[],_0x544088['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x544088,!0x0),delete _0x544088['authors'],_0x5b2332['push'](_0x544088);}_0x197faf['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x197faf['name']=_0x197faf['name']||null,_0x197faf['id']=_0x197faf['id']||_0x235c9b(),_0x197faf={..._0x197faf,..._0x402432};const _0xf2d06d=this['addRevisionData'](_0x197faf);_0x5b2332['push'](_0x197faf);const _0x1b0c40=this['repository']['getIndex'](_0xf2d06d);if(0x0!==_0x1b0c40){const _0x2483bb=this['repository']['getRevision'](_0x1b0c40-0x1);if(_0x2483bb['fromVersion']!==_0x31926c){const _0x21d23a=this['_revisionDataBuilder']['getData'](_0x31926c,_0x2483bb['toVersion']),_0x267ad3={'id':_0x2483bb['id'],'diffData':_0x21d23a['diffData'],'authorsIds':_0x21d23a['authorsIds'],'authors':_0x21d23a['authorsIds']['map'](_0x15e0c2=>this['editor']['plugins']['get']('Users')['getUser'](_0x15e0c2)),'fromVersion':_0x31926c};_0x2483bb===this['currentRevision']&&(_0x267ad3['createdAt']=new Date(_0x197faf['createdAt']['getTime']()+0xa)),_0x2483bb['_update'](_0x267ad3,!0x0),delete _0x267ad3['authors'],_0x5b2332['push'](_0x267ad3);}}if(this['adapter']){for(const _0x378b76 of _0x5b2332)this['_bufferUpdate'](_0x378b76['id'],_0x378b76,!0x0);this['sendBufferedUpdates']();}return _0xf2d06d;}['addRevisionData'](_0x864bdc){const _0x297f4d=this['repository']['createRevision'](_0x864bdc);return this['adapter']&&_0x297f4d['on']('_update',(_0xe3973e,_0x277c78,_0x3b5ee9)=>{_0x3b5ee9||(this['_bufferUpdate'](_0x277c78['id'],_0x277c78,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x297f4d,this['_findInsertionIndex'](_0x297f4d)),_0x297f4d;}async['getRevisionDocumentData'](_0x5fe603){return await this['_utils']['loadRevisionData'](_0x5fe603,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5fe603);}async['getRevisionRootsAttributes'](_0x18cb5f){return await this['_utils']['loadRevisionData'](_0x18cb5f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x18cb5f);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x190d4d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x439df3=0x0;_0x439df3<_0x190d4d['length'];_0x439df3++){const _0x3c48c7=_0x190d4d[_0x439df3];let _0x663548=!0x1;for(const _0x196f3c of Object['keys'](_0x3c48c7))void 0x0===_0x3c48c7[_0x196f3c]?delete _0x3c48c7[_0x196f3c]:'id'!==_0x196f3c&&(_0x663548=!0x0);_0x663548||(_0x190d4d[_0x439df3]=null);}if(_0x190d4d=_0x190d4d['filter'](_0x4f7c7b=>null!==_0x4f7c7b),!_0x190d4d['length'])return;for(let _0x178e16=0x0;_0x178e16<_0x190d4d['length'];_0x178e16++){const _0x3744fa=_0x190d4d[_0x178e16];void 0x0!==_0x3744fa['fromVersion']&&void 0x0===_0x3744fa['toVersion']&&(_0x3744fa['toVersion']=this['repository']['getRevision'](_0x3744fa['id'])['toVersion']),void 0x0!==_0x3744fa['toVersion']&&void 0x0===_0x3744fa['fromVersion']&&(_0x3744fa['fromVersion']=this['repository']['getRevision'](_0x3744fa['id'])['fromVersion']);}const _0x1b221f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x190d4d,_0x1b221f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3a5809=>{if(_0x3a5809){for(const _0x5e8cfe of _0x3a5809)this['setRevisionData']({'id':_0x5e8cfe['id'],'createdAt':_0x5e8cfe['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2e1e6a=null,from:_0x4c6b58=null,to:_0x52825c=null}){_0x4c6b58=null!==_0x4c6b58?_0x4c6b58:_0x2e1e6a['fromVersion'],_0x52825c=null!==_0x52825c?_0x52825c:_0x2e1e6a['toVersion'];const _0x2ac316=this['_revisionDataBuilder']['getData'](_0x4c6b58,_0x52825c),_0x1e3fe7={'diffData':_0x2ac316['diffData'],'authorsIds':_0x2ac316['authorsIds'],'fromVersion':_0x4c6b58,'toVersion':_0x52825c};if(!_0x2e1e6a||_0x52825c!==_0x2e1e6a['toVersion']){const _0x39cd87=_0x52825c-0x1,_0x1a2389=this['_source']['history']['getOperation'](_0x39cd87);_0x1e3fe7['createdAt']=_0x1a2389&&_0x1a2389['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4c6b58===this['_loadedStateData']['fromVersion']){for(const _0x29d0dc of this['_loadedStateData']['authors'])_0x1e3fe7['authorsIds']['includes'](_0x29d0dc['id'])||_0x1e3fe7['authorsIds']['push'](_0x29d0dc['id']);}return _0x1e3fe7;}['_bufferUpdate'](_0x563950,_0x40edf6,_0x27cc74){if(this['_bufferedUpdates']['has'](_0x563950)){const _0x1806bf=this['_bufferedUpdates']['get'](_0x563950);_0x40edf6=_0x27cc74?{..._0x1806bf,..._0x40edf6}:{..._0x40edf6,..._0x1806bf};}this['_bufferedUpdates']['set'](_0x563950,_0x40edf6);}['setRevisionData'](_0x244291){const _0x521ea7=this['repository']['getRevision'](_0x244291['id']);if(_0x244291['createdAt']&&(_0x244291['createdAt']=new Date(_0x244291['createdAt'])),_0x244291['authorsIds']){const _0x306021=this['editor']['plugins']['get']('Users');_0x244291['authors']=_0x244291['authorsIds']['map'](_0x54f6ba=>_0x306021['getUser'](_0x54f6ba));}_0x521ea7['_update'](_0x244291,!0x0);}['_createInitialRevision'](_0x2fc025){const _0x3a50b0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3a50b0)this['_initialRevisionId']=_0x3a50b0['id'];else{const _0x4df01b=!this['editor']['model']['document']['roots']['find'](_0x538224=>this['editor']['model']['hasContent'](_0x538224)),_0x396333=this['editor']['plugins']['get']('Users')['me']['id'],_0x4d1ae0=g(this['editor']['locale'],_0x4df01b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2fc025,'to':_0x2fc025,'id':this['_initialRevisionId'],'name':_0x4d1ae0,'creatorId':_0x396333});}}['_createCurrentRevision'](_0x5e1eb9){const _0x33896c=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x33896c),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5e1eb9,'to':_0x5e1eb9,'id':_0x33896c,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x3441c,_0x96dac9){let _0x247649=this['editor']['config']['get']('initialData'),_0xf440fc=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x247649){_0x247649={};for(const _0x2d611d of this['editor']['model']['document']['getRootNames']())_0x247649[_0x2d611d]='';}if('string'==typeof _0x247649&&(_0x247649={'main':_0x247649}),void 0x0===_0xf440fc){_0xf440fc={};for(const _0x25bd7a of this['editor']['model']['document']['getRootNames']())_0xf440fc[_0x25bd7a]={};}let _0xcda8bf=!0x1;const _0xffde56=Object['keys'](_0x247649),_0x39ec22=Object['keys'](_0x3441c);for(const _0x47dd5e of _0xffde56){if(_0x247649[_0x47dd5e]!==_0x3441c[_0x47dd5e]&&''!==_0x247649[_0x47dd5e]['trim']()){_0xcda8bf=!0x0;break;}if(!_0x36a9f0(_0xf440fc[_0x47dd5e],_0x96dac9[_0x47dd5e])&&Object['keys'](_0xf440fc[_0x47dd5e])['length']>0x0){_0xcda8bf=!0x0;break;}}_0xcda8bf||(_0xcda8bf=_0x39ec22['some'](_0x71ea5d=>!this['editor']['model']['document']['getRoot'](_0x71ea5d))),_0xcda8bf&&_0x48800a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x247649,'editorRootsAttributes':_0xf440fc,'revisionData':_0x3441c,'revisionRootsAttributes':_0x96dac9}),this['editor']['config']['set']('initialData',_0x3441c),this['editor']['config']['set']('rootsAttributes',_0x96dac9);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1f74e7=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1f74e7['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x58285d){const _0x521a74=this['repository']['getRevisions']();_0x521a74['reverse']();let _0x4a3a0e=0x0;for(;_0x4a3a0e<_0x521a74['length'];){const _0x4936c8=_0x521a74[_0x4a3a0e];if(_0x4936c8===this['currentRevision']){_0x4a3a0e++;continue;}if(_0x4936c8['id']===this['_initialRevisionId'])break;const _0x186876=_0x58285d['toVersion']-_0x4936c8['toVersion']||_0x58285d['fromVersion']-_0x4936c8['fromVersion'];if(_0x186876>0x0)break;if(_0x186876<0x0)_0x4a3a0e++;else{if(!_0x58285d['creator']&&_0x4936c8['creator'])break;if(_0x4936c8['creator']||!_0x58285d['creator']){if(_0x58285d['createdAt']>_0x4936c8['createdAt'])break;_0x4a3a0e++;}else _0x4a3a0e++;}}return _0x4a3a0e;}['_getFromVersion'](_0x520cae){const _0x3d2a62=this['repository']['getRevisions']();_0x3d2a62['reverse'](),_0x3d2a62['shift']();const _0x40611a=_0x3d2a62['find'](_0x2449c7=>_0x2449c7['toVersion']<=_0x520cae)['toVersion'];return _0x40611a<this['_startingVersion']?this['_startingVersion']:_0x40611a;}['_makeRevision']({name:_0x3da033,from:_0xf74b0,to:_0x416ae7,creatorId:_0x46aa17,id:_0x3e79f9}){const _0x1246c6=this['buildRevisionData']({'from':_0xf74b0,'to':_0x416ae7});_0x1246c6['name']=_0x3da033,_0x1246c6['creatorId']=_0x46aa17,_0x1246c6['id']=_0x3e79f9;const _0x42923c=this['addRevisionData'](_0x1246c6);return this['adapter']&&this['_bufferUpdate'](_0x1246c6['id'],_0x1246c6,!0x0),_0x42923c;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x566f9b){this['editor']=_0x566f9b,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x44167c){this['source']=_0x44167c;const _0x55cb4d=new Map(),_0x1e0595=new Map(),_0x12e7e0=this['editor']['model']['document']['roots']['map'](_0xbeefeb=>_0xbeefeb['rootName']);for(const _0x310fc6 of _0x12e7e0){const _0x546537=this['editor']['model']['document']['getRoot'](_0x310fc6),_0x322e44=N(_0x546537);_0x55cb4d['set'](_0x310fc6,_0x322e44),_0x1e0595['set'](_0x310fc6,Object['fromEntries'](_0x546537['getAttributes']()));}const _0x336469=Array['from'](this['editor']['model']['markers'])['map'](_0x397929=>[_0x397929['name'],_0x397929['getRange']()]),_0xf8ea1a=this['source']['version'];this['_saveMetaData'](_0xf8ea1a,_0x55cb4d,_0x336469,_0x1e0595),this['_startingRevisionId']=this['_revisionId'];const _0xa38a5f=new Map(),_0x30a7e3=new Map();for(const _0x2eb911 of _0x12e7e0){const _0x3ed0b4=P(_0x2eb911);_0xa38a5f['set'](_0x2eb911,_0x3ed0b4),_0x30a7e3['set'](_0x2eb911,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xa38a5f,[],_0x30a7e3);}['getData'](_0x21eea1,_0x599c2d){if(this['_lastFrom']===_0x21eea1&&this['_lastTo']<=_0x599c2d)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x599c2d,!0x0);else{if(!this['_savedMetaData']['has'](_0x21eea1)){const _0x9bbab=this['_getPreviousFrom'](_0x21eea1);this['_calculateMetaData'](_0x9bbab,_0x21eea1,!0x1);}this['_calculateMetaData'](_0x21eea1,_0x599c2d,!0x0);}return this['_lastFrom']=_0x21eea1,this['_lastTo']=_0x599c2d,this['_getState']();}['loadState'](_0x2b91bf){const _0x35f29c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2b91bf['fromVersion'],this['_lastTo']=_0x2b91bf['toVersion'];for(const _0x40da55 in _0x2b91bf['diffData']){const _0x5045e1=_0x2b91bf['diffData'][_0x40da55]['attachChange'],_0x5e1698=_0x3db99c(_0x2b91bf['diffData'][_0x40da55]['attributesBefore'])||{},_0x1e6921=_0x35f29c['_makeModelFromViewString'](_0x2b91bf['diffData'][_0x40da55]['deletions']);_0x1e6921['rootName']=_0x40da55,_0x1e6921['_isAttached']=!_0x5045e1||!_0x5045e1['isAttached'],_0x1e6921['isAttached']=()=>_0x1e6921['_isAttached'],this['_baseRoots']['set'](_0x40da55,_0x1e6921),this['_baseRootsAttributes']['set'](_0x40da55,_0x5e1698),_0x5045e1&&this['_touchedRoots']['set'](_0x40da55,_0x5045e1);const _0x17429a=this['_makeIdsRoot'](_0x1e6921);this['_baseIdsRoots']['set'](_0x40da55,_0x17429a);for(const [_0x3af856,_0x314619]of _0x1e6921['markers']){if(!_0x3af856['startsWith']('revision:'))continue;const _0x838bef=_0x3af856['split'](':')[0x2];for(const _0x25d528 of _0x314619['getWalker']({'singleCharacters':!0x0})){const _0x163a13=this['_getVidAttributeName'](_0x25d528),_0x4e8835='elementEnd'==_0x25d528['type']?_0x25d528['previousPosition']['path']['slice'](0x0,-0x1):_0x25d528['previousPosition']['path'],_0x32fd93=_0x17429a['getNodeByPath'](_0x4e8835)['getAttribute'](_0x163a13);this['_touched']['set'](_0x32fd93,{'userId':_0x838bef});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1a3d2a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x12a397=>!this['_touched']['has'](_0x12a397));let _0x3717c2=0x0;const _0x13c563=new Map();for(const _0x20d047 in _0x2b91bf['diffData']){const _0x3f1d2a=_0x2b91bf['diffData'][_0x20d047]['attachChange'],_0xadf632=_0x3db99c(_0x2b91bf['diffData'][_0x20d047]['attributesAfter'])||{},_0x5585ca=_0x35f29c['_makeModelFromViewString'](_0x2b91bf['diffData'][_0x20d047]['insertions']);_0x5585ca['rootName']=_0x20d047,_0x5585ca['_isAttached']=!_0x3f1d2a||_0x3f1d2a['isAttached'],_0x5585ca['isAttached']=()=>_0x5585ca['_isAttached'],this['_diffRoots']['set'](_0x20d047,_0x5585ca),this['_diffRootsAttributes']['set'](_0x20d047,_0xadf632);const _0xac3910=this['_makeIdsRoot'](_0x5585ca,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x20d047,_0xac3910),_0x13c563['set'](_0x20d047,_0x5585ca['isAttached']()?_0xadf632:{});for(const [_0xd3c601,_0xea0377]of _0x5585ca['markers']){if(!_0xd3c601['startsWith']('revision:'))continue;const _0x79b46f=_0xd3c601['split'](':')[0x2];for(const _0x39d84a of _0xea0377['getWalker']({'singleCharacters':!0x0})){const _0x22b758=this['_getVidAttributeName'](_0x39d84a),_0x43199a=this['_revisionId']++,_0x6bdff3='elementEnd'==_0x39d84a['type']?_0x39d84a['previousPosition']['path']['slice'](0x0,-0x1):_0x39d84a['previousPosition']['path'];_0xac3910['getNodeByPath'](_0x6bdff3)['_setAttribute'](_0x22b758,_0x43199a),this['_touched']['set'](_0x43199a,{'userId':_0x79b46f});}}for(const _0x9adf28 of this['editor']['model']['createRangeIn'](_0x5585ca)['getWalker']({'singleCharacters':!0x0})){const _0x7f8b9d=this['_getVidAttributeName'](_0x9adf28),_0x13eeef='elementEnd'==_0x9adf28['type']?_0x9adf28['previousPosition']['path']['slice'](0x0,-0x1):_0x9adf28['previousPosition']['path'],_0x5307d2=_0xac3910['getNodeByPath'](_0x13eeef);_0x5307d2['getAttribute'](_0x7f8b9d)>0x0||_0x5307d2['_setAttribute'](_0x7f8b9d,_0x1a3d2a[_0x3717c2++]);}for(const [_0x10f4cb,_0x5dedc2]of _0x5585ca['markers'])_0x10f4cb['startsWith']('revision:')||this['_markers']['set'](_0x10f4cb,_0x5dedc2);}const _0xf63793=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xf63793),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf63793,0x1));const _0x43f990=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x43f990),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x43f990,0x1));const _0x4ac32b=Array['from'](this['_diffRoots'])['map'](([_0x241cf3,_0x47d181])=>[_0x241cf3,N(_0x47d181)]);this['_saveMetaData'](this['_lastTo'],_0x4ac32b,this['_markers'],_0x13c563);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x247e18,_0x4c2ace,_0x41d762,_0x44038a){const _0x52eff0=new Map(_0x4c2ace),_0x4a067d=new Map(_0x3db99c(_0x44038a)),_0x37e355=new Map();for(const [_0x655328,_0x3e485a]of _0x41d762)_0x37e355['set'](_0x655328,{'start':_0x3e485a['start']['clone'](),'end':_0x3e485a['end']['clone'](),'rootName':_0x3e485a['root']['rootName']});this['_savedMetaData']['set'](_0x247e18,{'roots':_0x52eff0,'markers':_0x37e355,'rootsAttributes':_0x4a067d});}['_removeMetaData'](_0x78196e){this['_savedMetaData']['delete'](_0x78196e);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x21ce6c,_0x3751d8=null){let _0x49333d=null;_0x21ce6c['is']('documentFragment')||(_0x49333d=new ut(_0x21ce6c['name'],{'vid_start':null===_0x3751d8?this['_revisionId']++:_0x3751d8++}));const _0x65ea16=[];for(const _0x224086 of _0x21ce6c['getChildren']())if(_0x224086['is']('element')){_0x65ea16['push'](this['_makeIdsRoot'](_0x224086,_0x3751d8));const _0x45ad53=_0x65ea16[_0x65ea16['length']-0x1];null!==_0x3751d8&&(_0x3751d8=_0x45ad53['is']('element','$text')?_0x45ad53['getAttribute']('vid')+0x1:_0x45ad53['getAttribute']('vid_end')+0x1);}else{for(let _0x3fbabe=0x0;_0x3fbabe<_0x224086['offsetSize'];_0x3fbabe++)_0x65ea16['push'](new ut('$text',{'vid':null===_0x3751d8?this['_revisionId']++:_0x3751d8++}));}if(_0x21ce6c['is']('documentFragment')){const _0x7a3c7e=P(_0x21ce6c['rootName']);return _0x7a3c7e['_insertChild'](0x0,_0x65ea16),_0x7a3c7e;}return _0x49333d['_setAttribute']('vid_end',null===_0x3751d8?this['_revisionId']++:_0x3751d8++),_0x49333d['_insertChild'](0x0,_0x65ea16),_0x49333d;}['_calculateMetaData'](_0x79264e,_0x34642c,_0x39af04){this['_reset']();const {roots:_0x1d8a72,markers:_0x2cca77,rootsAttributes:_0x101216}=this['_savedMetaData']['get'](_0x79264e);this['_baseRoots']=new Map(_0x1d8a72),this['_baseRootsAttributes']=new Map(_0x3db99c(_0x101216));for(const [_0x4c7e45,_0x4ed4ef]of this['_baseRoots'])if('$graveyard'!==_0x4c7e45&&(this['_diffRoots']['set'](_0x4c7e45,N(_0x4ed4ef)),this['_diffRootsAttributes']=new Map(_0x3db99c(_0x101216)),_0x39af04)){const _0x3cf99d=this['_revisionId'];this['_idsRoots']['set'](_0x4c7e45,this['_makeIdsRoot'](_0x4ed4ef)),this['_baseIdsRoots']['set'](_0x4c7e45,this['_makeIdsRoot'](_0x4ed4ef,_0x3cf99d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x39af04&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x12e6bd,_0x14f209]of _0x2cca77){const _0x3e5267=this['_baseRoots']['get'](_0x14f209['rootName']),_0x399403=this['_diffRoots']['get'](_0x14f209['rootName']),_0x429003=new lt(this['_fixPosition'](_0x14f209['start'],_0x3e5267),this['_fixPosition'](_0x14f209['end'],_0x3e5267)),_0x1ac659=this['_fixRange'](_0x429003,_0x399403);_0x3e5267['markers']['set'](_0x12e6bd,_0x429003),this['_markers']['set'](_0x12e6bd,_0x1ac659);}this['_applyOperations'](_0x79264e,_0x34642c,_0x39af04);}['_applyOperations'](_0x40b8d2,_0x11b595,_0x132274){for(const _0x53b8e4 of this['source']['getOperations'](_0x40b8d2,_0x11b595))this['_handleOperation'](_0x53b8e4,_0x132274);for(const _0x3835e1 of this['_diffRoots']['values']())_0x3835e1['markers']['clear']();for(const [_0x384449,_0x504862]of this['_markers']){this['_diffRoots']['get'](_0x504862['root']['rootName'])['markers']['set'](_0x384449,_0x504862['clone']());}const _0x2df3e6=new Map(),_0x310c26=new Map();for(const [_0x43b371,_0x5ae875]of this['_diffRoots'])_0x2df3e6['set'](_0x43b371,N(_0x5ae875)),_0x310c26['set'](_0x43b371,this['_diffRootsAttributes']['get'](_0x43b371));this['_saveMetaData'](_0x11b595,_0x2df3e6,this['_markers'],_0x310c26);}['_getPreviousFrom'](_0x36a427){const _0x13385c=Array['from'](this['_savedMetaData']['keys']());_0x13385c['sort']((_0x3feda0,_0x241416)=>_0x3feda0-_0x241416),_0x13385c['reverse']();for(const _0x521350 of _0x13385c)if(_0x521350<_0x36a427)return _0x521350;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x528274,_0x3f8213){const _0xdca58f=Array['from'](_0x3f8213['markers'])['map'](([_0x5d3e24,_0x3f209c])=>[_0x5d3e24,this['_fixRange'](_0x3f209c,_0x528274)]);_0x528274['markers']=new Map(_0xdca58f);}['_transformMarkers'](_0x13f1b7){for(const _0x2df586 of this['_markers']['values']()){const _0x51d233=_0x2df586['getTransformedByOperation'](_0x13f1b7),_0x1aeec2=lt['_createFromRanges'](_0x51d233);_0x2df586['start']=_0x1aeec2['start'],_0x2df586['end']=_0x1aeec2['end'];}}['_handleOperation'](_0x10c968,_0x4078fb){if('addRoot'!=_0x10c968['type']&&'detachRoot'!=_0x10c968['type']){if('insert'==_0x10c968['type']){const _0x570728=_0x10c968['position']['root']['rootName'];this['_diffRoots']['has'](_0x570728)||(this['_diffRoots']['set'](_0x570728,P(_0x570728,!0x0)),this['_diffRootsAttributes']['set'](_0x570728,{}),_0x4078fb&&this['_idsRoots']['set'](_0x570728,P(_0x570728,!0x0)));}else{if('addRootAttribute'==_0x10c968['type']||'removeRootAttribute'==_0x10c968['type']||'changeRootAttribute'==_0x10c968['type'])return void this['_handleRootAttributeOperation'](_0x10c968);'marker'==_0x10c968['type']&&this['_handleMarkerOperation'](_0x10c968);}if('marker'!==_0x10c968['type']){const _0x2a27a1=this['_cloneOperation'](_0x10c968,this['_diffRoots']);_0x2a27a1['_execute'](),this['_transformMarkers'](_0x2a27a1);}if(_0x4078fb)switch(_0x10c968['type']){case'insert':this['_handleInsertOperation'](_0x10c968);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x10c968);break;case'merge':this['_handleMergeOperation'](_0x10c968);break;case'split':this['_handleSplitOperation'](_0x10c968);}}else this['_handleRootOperation'](_0x10c968,_0x4078fb);}['_cloneOperation'](_0x1ea183,_0x55dbef){const _0x363f40=_0x1ea183['clone']();return _0x363f40['_authorId']=_0x1ea183['_authorId'],this['_fixOperation'](_0x363f40,_0x55dbef),_0x363f40;}['_getBaseVids'](_0x2d6a33){return _0x2d6a33['map'](_0x295db7=>{const _0x549e79=this['_getVidAttributeName'](_0x295db7);return Number(_0x295db7['item']['getAttribute'](_0x549e79));});}['_generateTape'](_0x1dc84e,_0x359568){if(_0x1dc84e['is']('element','$text'))_0x359568['push']({'item':_0x1dc84e,'type':'text'});else{_0x1dc84e['is']('element')&&_0x359568['push']({'item':_0x1dc84e,'type':'elementStart'});for(const _0x587ae0 of _0x1dc84e['getChildren']())this['_generateTape'](_0x587ae0,_0x359568);_0x1dc84e['is']('element')&&_0x359568['push']({'item':_0x1dc84e,'type':'elementEnd'});}return _0x359568;}['_getState'](){const _0x9b7e2a=new Map(this['_touched']),_0x163c14=new Map(_0x9b7e2a),_0x4c6a6c=new Map(),_0x4e95cc={'insertions':{},'deletions':{}},_0x2b86e2={'insertions':{},'deletions':{}},_0x964347=new Map(),_0x2aa5bf=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2aa5bf['delete']('$graveyard');for(const _0x43da0 of _0x2aa5bf){const _0x55b922=this['_diffRoots']['get'](_0x43da0)||P(_0x43da0,!0x1),_0x58cdb5=this['_baseRoots']['get'](_0x43da0)||P(_0x43da0,!0x1);_0x55b922['isAttached']()||_0x58cdb5['isAttached']()?(_0x4e95cc['insertions'][_0x43da0]=N(_0x55b922),_0x4e95cc['deletions'][_0x43da0]=N(_0x58cdb5),this['_copyMarkers'](_0x4e95cc['deletions'][_0x43da0],_0x58cdb5),this['_copyMarkers'](_0x4e95cc['insertions'][_0x43da0],_0x55b922),_0x2b86e2['insertions'][_0x43da0]=this['_generateTape'](this['_idsRoots']['get'](_0x43da0),[]),_0x2b86e2['deletions'][_0x43da0]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x43da0)||P(_0x43da0,!0x1),[])):_0x2aa5bf['delete'](_0x43da0);}for(const _0x543fcd of _0x2aa5bf){const _0xa5a2a6=_0x2b86e2['insertions'][_0x543fcd];for(const _0x40401e of _0xa5a2a6){const _0x5f0070=this['_getVidAttributeName'](_0x40401e),_0x48756d=_0x40401e['item']['getAttribute'](_0x5f0070);_0x163c14['delete'](_0x48756d),_0x48756d>=this['_startingRevisionId']&&_0x4c6a6c['set'](_0x48756d,_0x9b7e2a['get'](_0x48756d));}}for(const _0x2aea3f of _0x2aa5bf){const _0x38ca3d=_0x2b86e2['insertions'][_0x2aea3f],_0x2855a6=this['_getBaseVids'](_0x2b86e2['deletions'][_0x2aea3f]);let _0x8eff21=0x0;for(const _0xe00e33 of _0x38ca3d){const _0x5f59d9=this['_getVidAttributeName'](_0xe00e33),_0x5ccceb=_0xe00e33['item']['getAttribute'](_0x5f59d9);if(!_0x4c6a6c['has'](_0x5ccceb)&&!_0x964347['has'](_0x5ccceb)){if(_0x163c14['has'](_0x5ccceb))_0x8eff21++;else{if(_0x5ccceb!=_0x2855a6[_0x8eff21]){const _0x3e49f4=_0x9b7e2a['get'](_0x5ccceb)||_0x9b7e2a['get'](_0x2855a6[_0x8eff21]);for(;_0x5ccceb!=_0x2855a6[_0x8eff21];)_0x163c14['has'](_0x2855a6[_0x8eff21])||(_0x964347['set'](_0x2855a6[_0x8eff21],_0x3e49f4),_0x9b7e2a['set'](_0x2855a6[_0x8eff21],_0x3e49f4)),_0x8eff21++;}_0x8eff21++;}}}}for(const _0x13f85a of _0x2aa5bf){const _0x5311c9=_0x2b86e2['insertions'][_0x13f85a];for(const _0x3d8bef of _0x5311c9){const _0x3a61b6=this['_getVidAttributeName'](_0x3d8bef),_0x4f2ed0=_0x3d8bef['item']['getAttribute'](_0x3a61b6);if(_0x964347['has'](_0x4f2ed0)){const _0x268913=_0x964347['get'](_0x4f2ed0);_0x163c14['has'](_0x4f2ed0)||_0x163c14['set'](_0x4f2ed0,{..._0x268913}),_0x4c6a6c['set'](_0x4f2ed0,{..._0x268913});}}}for(const _0x8341be of _0x163c14['keys']())_0x8341be>=this['_startingRevisionId']&&_0x163c14['delete'](_0x8341be);const _0x3781cb=new Map();for(const _0x5d6846 of _0x2aa5bf){let _0x5c12a1=_0x2b86e2['insertions'][_0x5d6846];for(const _0xb9f8fd of _0x5c12a1)if(_0xb9f8fd['item']['is']('element','tableCell')){const _0x16bd6f=this['_getVidAttributeName'](_0xb9f8fd),_0x42df57=_0xb9f8fd['item']['getAttribute'](_0x16bd6f);if(_0x4c6a6c['has'](_0x42df57)){const _0x39de6c=_0xb9f8fd['item']['parent']['parent']['getAttribute']('vid_start'),_0x4053ac=_0x3781cb['get'](_0x39de6c)||new Set();_0x4053ac['add'](_0x4c6a6c['get'](_0x42df57)['userId']),_0x3781cb['set'](_0x39de6c,_0x4053ac);}}_0x5c12a1=_0x2b86e2['deletions'][_0x5d6846];for(const _0x155352 of _0x5c12a1)if(_0x155352['item']['is']('element','tableCell')){const _0x2e0a74=this['_getVidAttributeName'](_0x155352),_0x3c9f25=_0x155352['item']['getAttribute'](_0x2e0a74);if(_0x163c14['has'](_0x3c9f25)){const _0x432055=_0x155352['item']['parent']['parent']['getAttribute']('vid_start'),_0xa49190=_0x3781cb['get'](_0x432055)||new Set();_0xa49190['add'](_0x163c14['get'](_0x3c9f25)['userId']),_0x3781cb['set'](_0x432055,_0xa49190);}}for(const _0x27dc43 of _0x3781cb['keys']())(_0x4c6a6c['has'](_0x27dc43)||_0x163c14['has'](_0x27dc43))&&_0x3781cb['delete'](_0x27dc43);}for(const _0x1fde69 of _0x2aa5bf){const _0x4d69e7=_0x2b86e2['insertions'][_0x1fde69];let _0x321780=null,_0x42d145=null;for(const _0x4c7e80 of _0x4d69e7){const _0x220b58=this['_getVidAttributeName'](_0x4c7e80),_0x2fa052=_0x4c7e80['item']['getAttribute'](_0x220b58),_0x1150e4=_0x3781cb['get'](_0x2fa052);_0x1150e4&&'elementStart'==_0x4c7e80['type']&&(_0x321780=Array['from'](_0x1150e4)[0x0],_0x42d145=_0x4c7e80['item']['getAttribute']('vid_end')),_0x321780&&(_0x163c14['set'](_0x2fa052,{'userId':_0x321780}),_0x4c6a6c['set'](_0x2fa052,{'userId':_0x321780})),_0x2fa052==_0x42d145&&(_0x321780=null,_0x42d145=null);}}const _0x10de4f={},_0x437081=new Set();for(const _0x4f5452 of _0x2aa5bf){const _0x11c400=_0x4e95cc['deletions'][_0x4f5452],_0x2aaabc=_0x4e95cc['insertions'][_0x4f5452];for(const {userId:_0x5816f4}of this['_touchedMarkers']['values']())null!==_0x5816f4&&_0x437081['add'](_0x5816f4);for(const {userId:_0x373a17}of this['_touchedRoots']['values']())null!==_0x373a17&&_0x437081['add'](_0x373a17);this['_markChanges'](_0x2aaabc,_0x2b86e2['insertions'][_0x4f5452],_0x4c6a6c,'insertion',_0x437081),this['_markChanges'](_0x11c400,_0x2b86e2['deletions'][_0x4f5452],_0x163c14,'deletion',_0x437081),_0x10de4f[_0x4f5452]={'insertions':this['_prepareViewToSave'](_0x2aaabc),'deletions':this['_prepareViewToSave'](_0x11c400),'attachChange':this['_touchedRoots']['get'](_0x4f5452)||null,'attributesBefore':_0x3db99c(this['_baseRootsAttributes']['get'](_0x4f5452))||{},'attributesAfter':_0x3db99c(this['_diffRootsAttributes']['get'](_0x4f5452))};}return{'diffData':_0x10de4f,'authorsIds':Array['from'](_0x437081)};}['_processRootBeforeSave'](_0x3daaec){for(const [,_0x10d996]of _0x3daaec['markers']){const _0x327629=_0x10d996['start']['getAncestors']()['filter'](_0x4e98a0=>'tableCell'==_0x4e98a0['name']);for(const _0x34f967 of _0x327629)0x1==_0x34f967['childCount']&&_0x34f967['getChild'](0x0)['is']('element','paragraph')&&_0x34f967['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3ec5fb){this['_processRootBeforeSave'](_0x3ec5fb);const _0x380785=this['editor']['data']['toView'](_0x3ec5fb,{}),_0x44d063=Array['from'](_0x380785['getChildren']())['map'](_0x40ea7c=>this['_getViewJson'](_0x40ea7c));return JSON['stringify'](_0x44d063);}['_getViewJson'](_0x454a32){if(_0x454a32['is']('$text'))return _0x454a32['data'];{const _0x5613dc=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x32fd49=_0x454a32,_0x40ea52=this['editor']['data']['htmlProcessor']['domConverter'],_0x16fa3b={'type':_0x5613dc['_getTypeCharForViewElement'](_0x32fd49),'name':_0x32fd49['name'],'attributes':Array['from'](_0x32fd49['getAttributes']()),'children':Array['from'](_0x32fd49['getChildren']())['map'](_0x531c5c=>this['_getViewJson'](_0x531c5c))};if(_0x454a32['is']('uiElement')&&'$comment'!=_0x454a32['name']){const _0xb1e417=_0x454a32['render'](_0x40ea52['domDocument'],_0x40ea52);_0x16fa3b['children']['push'](_0xb1e417['outerHTML']);}else{if(_0x454a32['is']('rawElement')){const _0x30516b=_0x40ea52['domDocument']['createElement'](_0x32fd49['name']);_0x454a32['render'](_0x30516b,_0x40ea52),_0x16fa3b['children']['push'](_0x30516b['innerHTML']);}}const _0xc11dad=Array['from'](_0x32fd49['getCustomProperties']());_0xc11dad['length']>0x0&&(_0x16fa3b['customProperties']=_0xc11dad);const _0x255800=_0x32fd49['getFillerOffset']();return null!==_0x255800&&(_0x16fa3b['fillerOffset']=_0x255800),_0x16fa3b;}}['_markChanges'](_0x556982,_0x2f6b4f,_0x49e398,_0x5a73a4,_0x36a610){let _0x722de6=null,_0x20b211=null,_0x123722=0x0;const _0x541ef1=this['editor']['model'];for(let _0x3bf955=0x0;_0x3bf955<_0x2f6b4f['length'];_0x3bf955++){const _0x1b80d6=this['_getVidAttributeName'](_0x2f6b4f[_0x3bf955]),_0x21cb11=_0x2f6b4f[_0x3bf955]['item']['getAttribute'](_0x1b80d6),_0xaec7b=_0x49e398['get'](_0x21cb11),_0x34ab5e=_0x3bf955==_0x2f6b4f['length']-0x1;(!_0x722de6&&_0xaec7b&&(_0x722de6=_0xaec7b,_0x20b211=_0x2f6b4f[_0x3bf955]),_0x722de6&&(!_0xaec7b||_0xaec7b['userId']!=_0x722de6['userId']))&&(_0x4aed80(_0xaec7b,F(_0x20b211,_0x556982,_0x541ef1),F(_0x2f6b4f[_0x3bf955],_0x556982,_0x541ef1)),_0x722de6=_0xaec7b||null,_0x20b211=_0xaec7b?_0x2f6b4f[_0x3bf955]:null),_0x722de6&&_0x34ab5e&&_0x4aed80(_0xaec7b,F(_0x20b211,_0x556982,_0x541ef1),B(_0x2f6b4f[_0x3bf955],_0x556982,_0x541ef1));}function _0x4aed80(_0x460d99,_0x47af46,_0x500ca1){const _0x9c5f3f=_0x722de6['userId'],_0x1a49e5='revision:'+_0x5a73a4+':'+_0x9c5f3f+':'+_0x123722++,_0x848fcb=_0x541ef1['createRange'](_0x47af46,_0x500ca1);_0x556982['markers']['set'](_0x1a49e5,_0x848fcb),null!==_0x9c5f3f&&_0x36a610['add'](_0x9c5f3f);}}['_getVidAttributeName'](_0x508b92){switch(_0x508b92['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x157542,_0x154975){_0x157542['baseVersion']=null;for(const _0x1d8600 in _0x157542){const _0x37f5ff=_0x157542[_0x1d8600];if(_0x37f5ff instanceof ft){const _0xedadf0=_0x154975['get'](_0x37f5ff['root']['rootName']);_0x157542[_0x1d8600]=this['_fixPosition'](_0x37f5ff,_0xedadf0);}if(_0x37f5ff instanceof lt){const _0x352382=_0x154975['get'](_0x37f5ff['root']['rootName']);_0x157542[_0x1d8600]=this['_fixRange'](_0x37f5ff,_0x352382);}'root'===_0x1d8600&&(_0x157542['root']=_0x154975['get'](_0x157542['root']['rootName']));}}['_fixRange'](_0x1d3c18,_0x5292ab){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1d3c18['start'],_0x5292ab),this['_fixPosition'](_0x1d3c18['end'],_0x5292ab));}['_fixPosition'](_0x2a470e,_0x383d52){return this['editor']['model']['createPositionFromPath'](_0x383d52,_0x2a470e['path'],_0x2a470e['stickiness']);}['_handleInsertOperation'](_0xd1f65e){const _0x4491f2=this['_idsRoots']['get'](_0xd1f65e['position']['root']['rootName']),_0x221da4=this['_fixPosition'](_0xd1f65e['position'],_0x4491f2),_0x3c2870=null===_0xd1f65e['_authorId']?null:_0xd1f65e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x545037=_0x221da4['parent'],_0x2538cb=this['_revisionId'],_0x3f330c=[];for(const _0x3332c8 of _0xd1f65e['nodes'])if(_0x3332c8['is']('element'))_0x3f330c['push'](this['_makeIdsRoot'](_0x3332c8));else{for(let _0x388ad1=0x0;_0x388ad1<_0x3332c8['offsetSize'];_0x388ad1++)_0x3f330c['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x517a0f=this['_revisionId'];for(let _0x3a36f3=_0x2538cb;_0x3a36f3<_0x517a0f;_0x3a36f3++)this['_touched']['set'](_0x3a36f3,{'userId':_0x3c2870});_0x545037['_insertChild'](_0x221da4['offset'],_0x3f330c);}['_handleMoveOperation'](_0x4eda44){(_0x4eda44=this['_cloneOperation'](_0x4eda44,this['_idsRoots']))['_execute']();const _0x5108aa=null===_0x4eda44['_authorId']?null:_0x4eda44['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24ee85=_0x4eda44['getMovedRangeStart'](),_0x8915a0=_0x24ee85['parent'],_0x160532=_0x24ee85['offset'];!function _0x536ce2(_0x58958a,_0x1f74c0,_0x53aa7c,_0x422837){for(let _0x3546e7=_0x53aa7c;_0x3546e7<_0x422837;_0x3546e7++){const _0x4e7de1=_0x1f74c0['getChild'](_0x3546e7);_0x4e7de1['is']('element','$text')?_0x58958a['set'](_0x4e7de1['getAttribute']('vid'),{'userId':_0x5108aa}):(_0x58958a['set'](_0x4e7de1['getAttribute']('vid_start'),{'userId':_0x5108aa}),_0x536ce2(_0x58958a,_0x4e7de1,0x0,_0x4e7de1['childCount']),_0x58958a['set'](_0x4e7de1['getAttribute']('vid_end'),{'userId':_0x5108aa}));}}(this['_touched'],_0x8915a0,_0x160532,_0x160532+_0x4eda44['howMany']);}['_handleMergeOperation'](_0x15f752){const _0x5ec3b3=null===(_0x15f752=this['_cloneOperation'](_0x15f752,this['_idsRoots']))['_authorId']?null:_0x15f752['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x18c081=_0x15f752['targetPosition']['parent'],_0x37d90c=_0x15f752['sourcePosition']['parent'],_0x3d334b=_0x18c081['getAttribute']('vid_end'),_0x2e0351=_0x37d90c['getAttribute']('vid_start');_0x18c081['_setAttribute']('vid_end',_0x37d90c['getAttribute']('vid_end')),_0x37d90c['_setAttribute']('vid_end',_0x3d334b),this['_touched']['set'](_0x2e0351,{'userId':_0x5ec3b3}),this['_touched']['set'](_0x3d334b,{'userId':_0x5ec3b3}),_0x15f752['_execute']();}['_handleSplitOperation'](_0x520efa){const _0x3a36d0=null===(_0x520efa=this['_cloneOperation'](_0x520efa,this['_idsRoots']))['_authorId']?null:_0x520efa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b1288=_0x520efa['graveyardPosition'],_0x23ad4c=_0x520efa['splitPosition']['parent'];_0x520efa['_execute']();const _0x317b43=_0x23ad4c['getAttribute']('vid_end'),_0x2fb790=_0x520efa['insertionPosition']['nodeAfter'];if(_0x1b1288){const _0x34ea24=_0x2fb790['getAttribute']('vid_end'),_0x485cd3=_0x23ad4c['getAttribute']('vid_end');_0x23ad4c['_setAttribute']('vid_end',_0x34ea24),_0x2fb790['_setAttribute']('vid_end',_0x485cd3),this['_touched']['set'](_0x23ad4c['getAttribute']('vid_end'),{'userId':_0x3a36d0}),this['_touched']['set'](_0x2fb790['getAttribute']('vid_start'),{'userId':_0x3a36d0});}else{const _0x7cfdaf=this['_revisionId']++,_0x44b026=this['_revisionId']++;_0x23ad4c['_setAttribute']('vid_end',_0x7cfdaf),_0x2fb790['_setAttribute']('vid_start',_0x44b026),_0x2fb790['_setAttribute']('vid_end',_0x317b43),this['_touched']['set'](_0x7cfdaf,{'userId':_0x3a36d0}),this['_touched']['set'](_0x44b026,{'userId':_0x3a36d0});}}['_handleMarkerOperation'](_0x47c54c){if(!_0x47c54c['affectsData'])return;const _0x2330db=(_0x47c54c=this['_cloneOperation'](_0x47c54c,this['_diffRoots']))['oldRange']?_0x47c54c['oldRange']['root']:null,_0x1beda5=_0x47c54c['newRange']?_0x47c54c['newRange']['root']:null;_0x2330db&&this['_markers']['delete'](_0x47c54c['name']),_0x1beda5&&this['_markers']['set'](_0x47c54c['name'],_0x47c54c['newRange']['clone']());const _0x419ad2=null===_0x47c54c['_authorId']?null:_0x47c54c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46ec62=_0x47c54c['name'];if(!this['_touchedMarkers']['has'](_0x46ec62))return void this['_touchedMarkers']['set'](_0x46ec62,{'range':_0x47c54c['oldRange'],'userId':_0x419ad2});const _0x36e17a=this['_touchedMarkers']['get'](_0x46ec62),_0x48c00a=_0x36e17a['range'],_0x573f16=_0x47c54c['newRange'];null==_0x48c00a&&null==_0x573f16||_0x48c00a&&_0x573f16&&_0x48c00a['isEqual'](_0x573f16)?this['_touchedMarkers']['delete'](_0x47c54c['name']):_0x36e17a['userId']=_0x419ad2;}['_handleRootOperation'](_0x1fe50f,_0x17a724){this['_diffRoots']['has'](_0x1fe50f['rootName'])?this['_diffRoots']['get'](_0x1fe50f['rootName'])['_isAttached']=_0x1fe50f['isAdd']:(this['_diffRoots']['set'](_0x1fe50f['rootName'],P(_0x1fe50f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1fe50f['rootName'],{}),_0x17a724&&this['_idsRoots']['set'](_0x1fe50f['rootName'],P(_0x1fe50f['rootName'],!0x0)));const _0x1bdc21=null===_0x1fe50f['_authorId']?null:_0x1fe50f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x247f2a=this['_touchedRoots']['get'](_0x1fe50f['rootName']);_0x247f2a&&_0x247f2a['userId']===_0x1bdc21?this['_touchedRoots']['delete'](_0x1fe50f['rootName']):this['_touchedRoots']['set'](_0x1fe50f['rootName'],{'userId':_0x1bdc21,'isAttached':_0x1fe50f['isAdd']});}['_handleRootAttributeOperation'](_0x4316f4){const _0x5d65a1=this['_diffRootsAttributes']['get'](_0x4316f4['root']['rootName']);null===_0x4316f4['newValue']?delete _0x5d65a1[_0x4316f4['key']]:_0x5d65a1[_0x4316f4['key']]=_0x4316f4['newValue'];}}function N(_0xa3b798){const _0x3e9491=P(_0xa3b798['rootName'],_0xa3b798['isAttached']());for(const _0x3edf48 of _0xa3b798['getChildren']()){const _0x332b26=_0x3edf48['_clone'](!0x0);_0x3e9491['_appendChild'](_0x332b26);}return _0x3e9491;}function P(_0x1ace43,_0x152a0c=!0x0){const _0x3f50c5=new vt();return _0x3f50c5['rootName']=_0x1ace43,_0x3f50c5['_isAttached']=_0x152a0c,_0x3f50c5['isAttached']=()=>_0x3f50c5['_isAttached'],_0x3f50c5;}function F(_0x57e918,_0xb996d1,_0x5a9552){const _0x36f68e='elementEnd'==_0x57e918['type']?_0x5a9552['createPositionAt'](_0x57e918['item'],'end'):_0x5a9552['createPositionBefore'](_0x57e918['item']);return _0x5a9552['createPositionFromPath'](_0xb996d1,_0x36f68e['path'],_0x36f68e['stickiness']);}function B(_0x418bb7,_0x469270,_0x2fc9b8){const _0x25c50a='elementStart'==_0x418bb7['type']?_0x2fc9b8['createPositionAt'](_0x418bb7['item'],0x0):_0x2fc9b8['createPositionAfter'](_0x418bb7['item']);return _0x2fc9b8['createPositionFromPath'](_0x469270,_0x25c50a['path'],_0x25c50a['stickiness']);}class hs extends/* #__PURE__ -- @preserve */
25
+ _0x45fa9a(_0x65ffd8){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1c26e0,_0x2c5f7e){super(_0x1c26e0),this['focusTracker']=new _0x4f7138(),this['keystrokes']=new _0x57dc80(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2c5f7e),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x2d6dcb({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2376bc=_0x2e4ac8=>_0x2e4ac8['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2376bc),this['keystrokes']['set']('arrowleft',_0x2376bc),this['keystrokes']['set']('arrowup',_0x2376bc),this['keystrokes']['set']('arrowdown',_0x2376bc);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x529252){this['revisionNameInputView']['fieldView']['element']['value']=_0x529252['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x20e170){const _0x253be4=new ts(this['locale'],_0x27b255),_0x271575=_0x253be4['fieldView'];_0x271575['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2eedff=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x20e170&&(_0x2eedff+='\x20('+g(this['locale'],'optional')+')'),(_0x253be4['label']=_0x2eedff,_0x271575['on']('input',()=>{this['revisionNameInputValue']=_0x271575['element']['value']['trim']();}),_0x253be4);}}class f extends _0x4af0c1{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x44b18e=this['editor'],_0x5230e6=_0x44b18e['plugins']['get']('RevisionTracker');_0x44b18e['ui']['componentFactory']['add']('revisionHistory',_0x4b4b7c=>{const _0x347dc1=_0x328c25(_0x4b4b7c),_0x230573=_0x347dc1['panelView']['children'],_0x5a3050=new _0x1e2c18(_0x4b4b7c),_0xc49aec=new _0x53062b(_0x4b4b7c),_0x59359f=new te(_0x4b4b7c),_0x9d7788=new _0x53062b(_0x4b4b7c),_0x27b55d=new te(_0x4b4b7c);return _0x347dc1['bind']('isEnabled')['to'](_0x5230e6,'isReady',_0x5230e6,'isEnabled',_0x44b18e,'isReadOnly',(_0x39afff,_0x130a60,_0x5c89af)=>_0x39afff&&_0x130a60&&!_0x5c89af),_0x347dc1['buttonView']['set']({'icon':_0x43b690,'label':g(_0x4b4b7c,'Revision\x20history'),'tooltip':!0x0}),_0x59359f['set']({'label':g(_0x4b4b7c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x59359f['bind']('isEnabled')['to'](_0x5230e6,'isReady',_0x5230e6,'isEnabled',_0x44b18e,'isReadOnly',(_0x542096,_0x3307f4,_0x38826f)=>_0x542096&&_0x3307f4&&!_0x38826f),_0x59359f['on']('execute',()=>this['_showDialog']()),_0x27b55d['set']({'label':g(_0x4b4b7c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x27b55d['bind']('isEnabled')['to'](_0x5230e6,'isReady',_0x44b18e,'isReadOnly',(_0x44e8f5,_0x1880e6)=>_0x44e8f5&&!_0x1880e6),_0x27b55d['on']('execute',()=>{_0x44b18e['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x347dc1['isOpen']=!0x1,_0x44b18e['editing']['view']['focus']();}),_0xc49aec['children']['add'](_0x59359f),_0x9d7788['children']['add'](_0x27b55d),_0x5a3050['role']='menu',_0x5a3050['items']['addMany']([_0xc49aec,_0x9d7788]),_0x230573['add'](_0x5a3050),_0x347dc1;}),_0x44b18e['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5b9260=this['editor'],_0x527d4d=_0x5b9260['locale'],_0x139605=new _0xc3f7a9(_0x527d4d),_0x4d5015=new _0x5ed2d7(_0x527d4d);_0x139605['buttonView']['set']({'icon':_0x43b690,'label':g(_0x527d4d,'Revision\x20history')});const _0x5a67bb=new _0x3b7a91(_0x527d4d,_0x139605),_0x54b88a=new _0xe6b912(_0x527d4d);_0x54b88a['set']({'label':g(_0x527d4d,'Save\x20current\x20revision')}),_0x54b88a['delegate']('execute')['to'](_0x139605),_0x54b88a['on']('execute',()=>{this['_showDialog']();}),_0x5a67bb['children']['add'](_0x54b88a),_0x4d5015['items']['add'](_0x5a67bb);const _0x93fd21=new _0x3b7a91(_0x527d4d,_0x139605),_0x58e5eb=new _0xe6b912(_0x527d4d);return _0x58e5eb['set']({'label':g(_0x527d4d,'Open\x20revision\x20history')}),_0x58e5eb['delegate']('execute')['to'](_0x139605),_0x58e5eb['on']('execute',()=>{_0x5b9260['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x93fd21['children']['add'](_0x58e5eb),_0x4d5015['items']['add'](_0x93fd21),_0x139605['panelView']['children']['add'](_0x4d5015),_0x139605;}['_showDialog'](){const _0x4dbf9c=this['editor'],_0x351047=_0x4dbf9c['locale'],_0xc13371=_0x4dbf9c['plugins']['get']('Dialog'),_0x663b3a=_0x4dbf9c['plugins']['get']('RevisionTracker');function _0x307bdf(_0x4ce94d){_0x4dbf9c['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4ce94d['revisionName']?_0x4ce94d['revisionNameInputView']['errorText']=g(_0x351047,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4dbf9c['plugins']['get'](u)['saveRevision']({'name':_0x4ce94d['revisionName']}),_0xc13371['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x307bdf(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xc13371['show']({'id':'revisionSave','title':g(_0x351047,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x4dbf9c['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xc13371['hide']()},{'label':g(_0x4dbf9c['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x13acb3){_0x13acb3['bind']('isEnabled')['to'](_0x663b3a,'isReady',_0x663b3a,'isEnabled',_0x4dbf9c,'isReadOnly',(_0x41dc44,_0x46c4e3,_0x45f193)=>_0x41dc44&&_0x46c4e3&&!_0x45f193);},'onExecute':()=>_0x307bdf(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x14b4c7=this['editor'],_0x284bec=_0x14b4c7['locale'];this['_saveRevisionFormView']=new hs(_0x284bec,_0x14b4c7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x65ffd8{['changeId'];['_model'];constructor(_0x576c05,_0x3e6606){super(_0x576c05),this['_model']=_0x3e6606,this['changeId']=_0x3e6606['id'];const _0x52deca=this['bindTemplate'],_0x23ed54=g(_0x576c05,_0x3e6606['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3e6606['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3e6606['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x52deca['to']('type',_0x590ba8=>'ck-revision-change__'+_0x590ba8)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x23ed54}]},{'text':'\x20'+_0x3e6606['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
26
+ _0x5f5b63(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5b3df2){super(),this['id']=_0x5b3df2['id']||_0x235c9b(),this['author']=_0x5b3df2['author'],this['type']=_0x5b3df2['type'],this['data']=_0x5b3df2['data']||{},this['rootName']=_0x5b3df2['rootName'],this['set']('createdAt',_0x5b3df2['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x490e36,_0x25f196){this['newRevisionId']=_0x490e36,this['oldRevisionId']=_0x25f196,this['changes']=new _0x481a5e();}['_setChanges'](_0x15440a){for(const _0x47883b of _0x15440a)this['changes']['add'](_0x47883b);}}class m extends _0x4af0c1{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xdf44e4,_0xa68a23,I,V];}constructor(_0x2a265c){super(_0x2a265c),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0xc2571f,_0x166133,_0x1c12be)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1ce467=>{for(const _0x56fedf of this['editor']['editing']['view']['document']['roots'])_0x1c12be?_0x1ce467['removeClass']('ck-editor__editable__overlay',_0x56fedf):_0x1ce467['addClass']('ck-editor__editable__overlay',_0x56fedf);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3ce40d=>null!==_0x3ce40d),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x28e6ca,_0x2e1b60,_0x2c0253)=>_0x28e6ca&&_0x2c0253?_0x2e1b60['changes']['getIndex'](_0x2c0253):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2bd321,_0x4d513e)=>_0x2bd321?_0x4d513e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0xa68a23);}['init'](){const _0x2871f9=this['editor'],_0xf32896=new wt(_0x2871f9,{'direction':'backward'}),_0x5664e7=new wt(_0x2871f9,{'direction':'forward'});(_0x2871f9['commands']['add']('showPreviousChange',_0xf32896),_0x2871f9['commands']['add']('showNextChange',_0x5664e7),_0x2871f9['commands']['add']('restoreRevision',new mt(_0x2871f9)),this['on']('change:numberOfChanges',()=>{_0xf32896['refresh'](),_0x5664e7['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2871f9['enableReadOnlyMode']('revision-viewer'),_0x2871f9['plugins']['has']('WidgetToolbarRepository'))&&_0x2871f9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x434b81){return await this['_utils']['loadRevisionData'](_0x434b81,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x434b81);}async['getRevisionRootsAttributes'](_0x1fbe43){return await this['_utils']['loadRevisionData'](_0x1fbe43,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1fbe43);}async['compare'](_0xf24838,_0x5248e8,_0x57345b=!0x1){if(!this['isEnabled'])return;const _0x54b954=this['diff'],_0x2d2683=this['repository'],_0xe26b88='string'==typeof _0xf24838?_0x2d2683['getRevision'](_0xf24838):_0xf24838,_0x59499f='string'==typeof _0x5248e8?_0x2d2683['getRevision'](_0x5248e8):_0x5248e8,_0x4c981d=_0xe26b88['id'],_0x119521=_0x59499f?_0x59499f['id']:null;if(!_0x57345b&&this['diff']&&this['diff']['newRevisionId']===_0x4c981d&&this['diff']['oldRevisionId']===_0x119521)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x4c981d,_0x119521);const _0x66937b=this['_getRevisionsRange'](_0xe26b88,_0x59499f,!0x0)['map'](_0x2a26d9=>this['_utils']['loadRevisionData'](_0x2a26d9,this['adapter']));return _0x66937b['push'](new Promise(_0x747bda=>{setTimeout(_0x747bda,0x14);})),Promise['all'](_0x66937b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xdba11a=this['_getDiff'](_0x4c981d,_0x119521);for(const _0xe901be of _0xdba11a['changes'])this['_changeIdToChange']['set'](_0xe901be['id'],_0xe901be);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1d5ede=>{for(const _0x329af9 of this['editor']['model']['document']['getRootNames']())_0x1d5ede['detachRoot'](_0x329af9);for(const _0x4ae1a5 of Object['keys'](_0xdba11a['model'])){const _0x497b18=_0x1d5ede['addRoot'](_0x4ae1a5);for(const _0x500a04 of Object['keys'](_0xdba11a['attributes'][_0x4ae1a5]))_0x1d5ede['setAttribute'](_0x500a04,_0xdba11a['attributes'][_0x4ae1a5][_0x500a04],_0x497b18);_0x1d5ede['insert'](_0xdba11a['model'][_0x4ae1a5],_0x497b18,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xdba11a['changes'])),this['isReady']=!0x0;})['catch'](_0x506efd=>{console['error'](_0x506efd),this['_cleanUp'](),_0x54b954&&(this['diff']=_0x54b954),this['isReady']=!0x0;});}['addRevisionData'](_0x486a05,_0x5581f1){const _0x49efb5=this['repository']['createRevision'](_0x486a05);return _0x49efb5['on']('_update',(_0x21c28c,_0xb94871,_0xc3426d)=>_0x5581f1(_0xb94871,_0xc3426d,_0x49efb5)),this['repository']['addRevision'](_0x49efb5),_0x49efb5;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x20f17c=>{for(const _0x592b6 of this['editor']['model']['document']['getRootNames']())_0x20f17c['detachRoot'](_0x592b6);});}['_sortAndFilterDiffChanges'](_0xcd88d9){const _0x540ada=[],_0xc4b4e=new Map();for(const _0x289f6d of this['editor']['model']['document']['getRootNames']()){const _0x2117eb=this['editor']['editing']['view']['getDomRoot'](_0x289f6d);if(!_0x2117eb)continue;const _0x799caf=_0x2117eb['getClientRects']()['item'](0x0);_0x799caf&&(_0x540ada['push'](_0x289f6d),_0xc4b4e['set'](_0x289f6d,_0x799caf));}return _0x540ada['sort']((_0x3a0f0b,_0x58e64e)=>{const _0x1602b2=_0xc4b4e['get'](_0x3a0f0b),_0x489a91=_0xc4b4e['get'](_0x58e64e);return _0x1602b2['y']-_0x489a91['y']||_0x1602b2['x']-_0x489a91['x'];}),(_0xcd88d9=_0xcd88d9['filter'](_0xd720c4=>_0x540ada['includes'](_0xd720c4['rootName'])))['sort']((_0x32b752,_0x48a55d)=>_0x540ada['indexOf'](_0x32b752['rootName'])-_0x540ada['indexOf'](_0x48a55d['rootName'])),_0xcd88d9;}['_makeTape'](_0x348771){const _0x5b240a=Array['from'](_0x348771['markers'])['filter'](([_0x5c66c6,_0x3f4f24])=>_0x5c66c6['startsWith']('revision:')&&!_0x3f4f24['isCollapsed']),_0x836d36=Array['from'](this['editor']['model']['createRangeIn'](_0x348771)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5b240a['length'])for(const _0x1f150c of _0x836d36){const [_0x5aeb31,_0xd4b3c7]=_0x5b240a[0x0],[,_0xb4c5a,_0x29fcf8]=_0x5aeb31['split'](':');if(_0xd4b3c7['end']['isEqual'](_0x1f150c['nextPosition'])&&_0x5b240a['shift'](),(_0x1f150c['previousPosition']['isEqual'](_0xd4b3c7['start'])||_0x1f150c['previousPosition']['isAfter'](_0xd4b3c7['start']))&&('insertion'==_0xb4c5a?_0x1f150c['isAdded']={'userId':_0x29fcf8}:'deletion'==_0xb4c5a&&(_0x1f150c['isRemoved']={'userId':_0x29fcf8})),0x0==_0x5b240a['length'])break;}return _0x836d36;}['_refreshStartEndIndex'](_0x5ac800){const _0x2bd47d=new Map();for(let _0x351055=0x0;_0x351055<_0x5ac800['length'];_0x351055++)'text'===_0x5ac800[_0x351055]['type']?(_0x5ac800[_0x351055]['item']['startIndex']=_0x351055,_0x5ac800[_0x351055]['item']['endIndex']=_0x351055):('elementStart'===_0x5ac800[_0x351055]['type']?_0x5ac800[_0x351055]['item']['startIndex']=_0x351055:'elementEnd'===_0x5ac800[_0x351055]['type']&&(_0x5ac800[_0x351055]['item']['endIndex']=_0x351055),_0x2bd47d['set'](_0x5ac800[_0x351055]['id'],_0x351055));for(const _0x7bd30d of _0x2bd47d['values']())'elementStart'===_0x5ac800[_0x7bd30d]['type']?_0x5ac800[_0x7bd30d]['item']['endIndex']=_0x2bd47d['get'](_0x5ac800[_0x7bd30d]['pairId']):'elementEnd'===_0x5ac800[_0x7bd30d]['type']&&(_0x5ac800[_0x7bd30d]['item']['startIndex']=_0x2bd47d['get'](_0x5ac800[_0x7bd30d]['pairId']));}['_processTape'](_0x23324b){for(let _0x2f93a6=0x0;_0x2f93a6<_0x23324b['length'];_0x2f93a6++){if('elementStart'===_0x23324b[_0x2f93a6]['type'])_0x23324b[_0x2f93a6]['item']['startIndex']=_0x2f93a6;else{if('elementEnd'===_0x23324b[_0x2f93a6]['type']){_0x23324b[_0x2f93a6]['item']['endIndex']=_0x2f93a6;const _0x3a7f82=_0x23324b[_0x2f93a6]['item']['startIndex'];_0x23324b[_0x3a7f82]['pairId']=_0x23324b[_0x2f93a6]['id'],_0x23324b[_0x2f93a6]['pairId']=_0x23324b[_0x3a7f82]['id'];}else _0x23324b[_0x2f93a6]['item']['startIndex']=_0x2f93a6,_0x23324b[_0x2f93a6]['item']['endIndex']=_0x2f93a6,_0x23324b[_0x2f93a6]['pairId']=null;}_0x23324b[_0x2f93a6]['markersStart']||(_0x23324b[_0x2f93a6]['markersStart']=[],_0x23324b[_0x2f93a6]['markersEnd']=[]);}}['_markInsertions'](_0x310927,_0x4ae25f){const _0x33c941=_0x310927['filter'](_0x160454=>!_0x160454['isAdded']);for(let _0x3dd940=0x0;_0x3dd940<_0x4ae25f['length'];_0x3dd940++)_0x4ae25f[_0x3dd940]['isAdded']&&(_0x33c941[_0x3dd940]['isAdded']=_0x4ae25f[_0x3dd940]['isAdded']);}['_getDiff'](_0x3c913c,_0x1faad8=null){const _0x17fef6=this['repository']['getRevision'](_0x3c913c),_0xddbb4d=_0x1faad8?this['repository']['getRevision'](_0x1faad8):null,_0x12d9fa=this['_getRevisionsRange'](_0x17fef6,_0xddbb4d),_0x3f1d08=_0x12d9fa[_0x12d9fa['length']-0x1],_0x4212a4=new Map(),_0xe34932={'model':{},'attributes':{},'changes':[]},_0x25e394=new Set(),_0x1c7773=new Map();for(let _0x51da0f=_0x12d9fa['length']-0x1;_0x51da0f>=0x0;_0x51da0f--){const _0x24cb60=_0x12d9fa[_0x51da0f];for(const _0x3c689d of Object['keys'](_0x24cb60['diffData']))if(_0x24cb60['diffData'][_0x3c689d]['attachChange']){const _0x1bb070=_0x24cb60['diffData'][_0x3c689d]['attachChange'];_0x1bb070['isAttached']?(_0x25e394['add'](_0x3c689d),_0x1c7773['has'](_0x3c689d)&&_0x1c7773['get'](_0x3c689d)['userId']==_0x1bb070['userId']?_0x1c7773['delete'](_0x3c689d):_0x1c7773['set'](_0x3c689d,_0x1bb070)):_0x1c7773['has'](_0x3c689d)?(_0x25e394['delete'](_0x3c689d),_0x1c7773['delete'](_0x3c689d)):(_0x25e394['add'](_0x3c689d),_0x1c7773['set'](_0x3c689d,_0x1bb070));}else _0x25e394['add'](_0x3c689d);}for(const _0x173240 of _0x25e394){const _0x2c8645=_0x1c7773['has'](_0x173240)&&!_0x1c7773['get'](_0x173240)['isAttached'];let _0x4110b2=_0x2c8645?_0x12d9fa['length']-0x1:0x0;const _0x3632ea=_0x2c8645?-0x1:0x1;for(;_0x12d9fa[_0x4110b2];){const _0x5d20e5=_0x12d9fa[_0x4110b2];if(_0x5d20e5['diffData'][_0x173240]){const _0x42fce7=_0x2c8645?_0x5d20e5['diffData'][_0x173240]['attributesBefore']:_0x5d20e5['diffData'][_0x173240]['attributesAfter'];_0xe34932['attributes'][_0x173240]=_0x42fce7?_0x3db99c(_0x42fce7):{};break;}_0x4110b2+=_0x3632ea;}}for(const _0x59a96e of _0x12d9fa){_0x59a96e['model']={};for(const _0x1249ab of _0x59a96e['authors'])_0x4212a4['set'](_0x1249ab['id'],_0x1249ab);for(const _0x3b2554 of _0x25e394){const _0x12c348=_0x59a96e['diffData'][_0x3b2554]?_0x59a96e['diffData'][_0x3b2554]['insertions']:'[]',_0x42dda2=_0x59a96e['diffData'][_0x3b2554]?_0x59a96e['diffData'][_0x3b2554]['deletions']:'[]';_0x59a96e['model'][_0x3b2554]={'insertions':this['_utils']['_makeModelFromViewString'](_0x12c348),'deletions':this['_utils']['_makeModelFromViewString'](_0x42dda2)};}}for(const _0x17e139 of _0x25e394){let _0x1a8a1a=null,_0x1fe866=0x0;const _0x2eb517=new Map(Array['from'](_0x17fef6['model'][_0x17e139]['insertions']['markers'])['filter'](([_0x869b6c])=>!_0x869b6c['startsWith']('revision:')));let _0x192b18=0x0;for(const _0x38036e of _0x12d9fa){const _0x1e386b=this['_makeTape'](_0x38036e['model'][_0x17e139]['insertions']);_0x38036e==_0x17fef6?(_0x1a8a1a=_0x1e386b,_0x1fe866=_0x1a8a1a['length'],_0x1a8a1a['forEach'](_0x39c08d=>{_0x39c08d['id']=_0x192b18++;}),this['_processTape'](_0x1a8a1a)):this['_markInsertions'](_0x1a8a1a,_0x1e386b);const _0x564a8e=_0x1a8a1a['filter'](_0x476bf3=>!_0x476bf3['isAdded'])['map'](_0x1f4e4b=>_0x1f4e4b['id']);let _0x3d4b81=0x0;const _0x2ce42a=this['_makeTape'](_0x38036e['model'][_0x17e139]['deletions']);_0x2ce42a['forEach'](_0x145091=>{_0x145091['isRemoved']?_0x145091['id']=_0x1fe866++:_0x145091['id']=_0x564a8e[_0x3d4b81++];}),this['_processTape'](_0x2ce42a),this['_setDistance'](_0x1a8a1a,'isAdded'),this['_setDistance'](_0x2ce42a,'isRemoved'),_0x38036e==_0x17fef6&&this['_markMarkers'](_0x1a8a1a,_0x2eb517),_0x1a8a1a=this['_joinTapes'](_0x1a8a1a,_0x2ce42a),this['_refreshStartEndIndex'](_0x1a8a1a),this['_setDistance'](_0x1a8a1a,'isRemoved');}_0x1a8a1a=_0x1a8a1a['filter'](_0x16b6cf=>!(_0x16b6cf['isAdded']&&_0x16b6cf['isRemoved']));const _0x9769da=new Map(_0x3f1d08['model'][_0x17e139]['deletions']['markers']),_0x2f5b0b=new Set(_0x2eb517['keys']());for(const _0x1cf9b2 of _0x9769da['keys']())_0x2f5b0b['delete'](_0x1cf9b2);this['_markSuggestions'](_0x1a8a1a,_0x2f5b0b),this['_fixObsoleteTags'](_0x1a8a1a),_0x1a8a1a=this['_removeMissingPairs'](_0x1a8a1a),_0x1a8a1a=this['_markMismatchedRemovedTags'](_0x1a8a1a),_0x1a8a1a=this['_removeUnsupportedChanges'](_0x1a8a1a);const {root:_0x37b439,changes:_0x3bd18e}=this['_makeModelFromTape'](_0x1a8a1a,_0x4212a4,_0x17e139);_0xe34932['model'][_0x17e139]=_0x37b439;const _0x21fc85=_0x1c7773['get'](_0x17e139);if(_0x21fc85){const _0xfa5008=_0x4212a4['get'](_0x21fc85['userId']),_0x531f4d=new r({'author':_0xfa5008,'type':_0x21fc85['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x17e139});_0x3bd18e['unshift'](_0x531f4d),_0xe34932['attributes'][_0x17e139]['revisionHistoryAttachChange']=_0x531f4d['id'];}_0xe34932['changes']=_0xe34932['changes']['concat'](_0x3bd18e);}return _0xe34932;}['_markMarkers'](_0x3dbb5c,_0x3189fb){for(let _0x1956d8=0x0;_0x1956d8<_0x3dbb5c['length'];_0x1956d8++)for(const [_0x1b1693,_0x5ecfa9]of _0x3189fb)!_0x5ecfa9['isCollapsed']&&_0x5ecfa9['start']['isEqual'](_0x3dbb5c[_0x1956d8]['previousPosition'])&&_0x3dbb5c[_0x1956d8]['markersStart']['push'](_0x1b1693),_0x5ecfa9['end']['isEqual'](_0x3dbb5c[_0x1956d8]['nextPosition'])&&_0x3dbb5c[_0x1956d8]['markersEnd']['push'](_0x1b1693);}['_joinTapes'](_0x4092e7,_0xfd4fb2){let _0x5ed476=[],_0x36c9a6=0x0,_0x25889d=0x0;for(;_0x36c9a6<_0x4092e7['length']||_0x25889d<_0xfd4fb2['length'];){const _0x3e1f24=_0x4092e7[_0x36c9a6]||{},_0x4d5f3a=_0xfd4fb2[_0x25889d]||{};if(_0x3e1f24['id']==_0x4d5f3a['id'])_0x36c9a6++,_0x25889d++,_0x5ed476['push'](_0x3e1f24);else{if(_0x4d5f3a['isRemoved']&&_0x3e1f24['isAdded']){const {commonTape:_0x376e61,iEnd:_0x503b14,jEnd:_0x2761d6}=this['_threeWayMerge'](_0x4092e7,_0x36c9a6,_0xfd4fb2,_0x25889d);_0x5ed476=_0x5ed476['concat'](_0x376e61),_0x36c9a6=_0x503b14,_0x25889d=_0x2761d6;}else _0x4d5f3a['isRemoved']?(_0x25889d++,_0x5ed476['push'](_0x4d5f3a)):(_0x36c9a6++,_0x5ed476['push'](_0x3e1f24));}}return _0x5ed476;}['_markSuggestions'](_0x458e93,_0x17fc50){const _0x1a0f53=[];for(let _0x4b8408=0x0;_0x4b8408<_0x458e93['length'];_0x4b8408++){for(let _0x603bc8=0x0;_0x603bc8<_0x458e93[_0x4b8408]['markersStart']['length'];_0x603bc8++){const _0x2f9a76=_0x458e93[_0x4b8408]['markersStart'][_0x603bc8];if(!_0x17fc50['has'](_0x2f9a76))continue;const {group:_0x5eb075,type:_0xde84d5,authorId:_0x160666}=_0x27087e(_0x2f9a76);'revision-suggestion'!=_0x5eb075||'insertion'!=_0xde84d5&&'deletion'!=_0xde84d5||(_0x1a0f53['unshift']({'type':_0xde84d5,'name':_0x2f9a76,'userId':_0x160666}),_0x458e93[_0x4b8408]['markersStart']['splice'](_0x603bc8,0x1),_0x603bc8--);}_0x423a2f(_0x458e93[_0x4b8408]);for(let _0x11dce7=0x0;_0x11dce7<_0x458e93[_0x4b8408]['markersEnd']['length'];_0x11dce7++){const _0x2e5169=_0x458e93[_0x4b8408]['markersEnd'][_0x11dce7];if(!_0x17fc50['has'](_0x2e5169))continue;const {group:_0xade1f8,type:_0x43e0e5}=_0x27087e(_0x2e5169);if('revision-suggestion'!=_0xade1f8||'insertion'!=_0x43e0e5&&'deletion'!=_0x43e0e5)continue;_0x458e93[_0x4b8408]['markersEnd']['splice'](_0x11dce7,0x1),_0x11dce7--;const _0x310d5c=_0x1a0f53['findIndex'](_0x1248e1=>_0x1248e1['name']==_0x2e5169);_0x310d5c>-0x1&&_0x1a0f53['splice'](_0x310d5c,0x1);}}function _0x27087e(_0x1bc963){const _0xdee206=_0x1bc963['split'](':');return{'group':_0xdee206[0x0],'type':_0xdee206[0x1],'subType':_0xdee206['length']>=0x5?_0xdee206[0x2]:null,'id':_0xdee206['length']<0x5?_0xdee206[0x2]:_0xdee206[0x3],'authorId':_0xdee206['length']<0x5?_0xdee206[0x3]:_0xdee206[0x4],'markerCount':0x6==_0xdee206['length']?_0xdee206[0x5]:null};}function _0x423a2f(_0x3e4630){for(let _0x107769=0x0;_0x107769<_0x1a0f53['length'];_0x107769++){if(_0x3e4630['isAdded']&&'insertion'==_0x1a0f53[_0x107769]['type']&&_0x3e4630['isAdded']['userId']==_0x1a0f53[_0x107769]['userId'])return _0x3e4630['isAddSuggestion']=_0x1a0f53[_0x107769],void delete _0x3e4630['isAdded'];if(!_0x3e4630['isAdded']&&!_0x3e4630['isRemoved']&&'deletion'==_0x1a0f53[_0x107769]['type'])return void(_0x3e4630['isRemoveSuggestion']=_0x1a0f53[_0x107769]);}}}['_setDistance'](_0x382719,_0x34cc2c){let _0x3eba99=0x0,_0x2a8db6=!0x1;const _0xdb04a2=new Map();for(const _0x2fd7ec of _0x382719)_0x2fd7ec[_0x34cc2c]?_0x2a8db6&&(_0x3eba99++,_0x2a8db6=!0x1):(_0x3eba99++,_0x2a8db6=!0x0),_0xdb04a2['set'](_0x2fd7ec['id'],_0x3eba99);for(let _0x4bbc11=0x0;_0x4bbc11<_0x382719['length'];_0x4bbc11++){if('isRemoved'==_0x34cc2c&&_0x382719[_0x4bbc11]['isAdded']||'isAdded'==_0x34cc2c&&_0x382719[_0x4bbc11]['isRemoved'])continue;if('text'==_0x382719[_0x4bbc11]['type']){_0x382719[_0x4bbc11]['distance']=0x0;continue;}const _0x39b111=_0xdb04a2['get'](_0x382719[_0x4bbc11]['pairId']),_0x4a9cf8=_0xdb04a2['get'](_0x382719[_0x4bbc11]['id']);_0x382719[_0x4bbc11]['distance']=_0x39b111-_0x4a9cf8;}}['_getRevisionsRange'](_0x6b4d4b,_0x143c9e,_0x537f60=!0x1){const _0x5c4ed9=[];let _0x4058cd=this['repository']['getIndex'](_0x6b4d4b),_0x371545=this['repository']['getIndex'](_0x143c9e);for(-0x1==_0x371545&&(_0x371545=this['repository']['_revisions']['length'],_0x537f60=!0x1);_0x4058cd<_0x371545;)_0x5c4ed9['push'](this['repository']['getRevision'](_0x4058cd)),_0x4058cd++;return _0x537f60&&_0x5c4ed9['push'](this['repository']['getRevision'](_0x4058cd)),_0x5c4ed9;}['_threeWayMerge'](_0x3bd4a4,_0x39019d,_0x920428,_0x340515){const _0x297905=this['editor']['model']['schema'];let _0x203916=_0x39019d;for(;_0x3bd4a4[_0x203916]&&_0x3bd4a4[_0x203916]['isAdded'];)_0x203916++;let _0x10577f=_0x340515;for(;_0x920428[_0x10577f]&&_0x920428[_0x10577f]['isRemoved'];)_0x10577f++;_0x51f720(_0x3bd4a4,_0x39019d,_0x203916),_0x51f720(_0x920428,_0x340515,_0x10577f);const _0x290d8c=_0x920428['slice'](_0x340515,_0x10577f)['concat'](_0x3bd4a4['slice'](_0x39019d,_0x203916));return _0x290d8c['sort']((_0x38dc31,_0x3fbdb4)=>_0x38dc31['side']!=_0x3fbdb4['side']?_0x38dc31['side']-_0x3fbdb4['side']:_0x38dc31['level']!=_0x3fbdb4['level']?_0x38dc31['level']-_0x3fbdb4['level']:_0x38dc31['distance']!=_0x3fbdb4['distance']?_0x3fbdb4['distance']-_0x38dc31['distance']:!!_0x38dc31['isAdded']!=!!_0x3fbdb4['isAdded']?-0x1==_0x38dc31['side']||0x0==_0x38dc31['side']?_0x38dc31['isAdded']?-0x1:0x1:_0x38dc31['isAdded']?0x1:-0x1:_0x38dc31['index']-_0x3fbdb4['index']),{'commonTape':_0x290d8c,'iEnd':_0x203916,'jEnd':_0x10577f};function _0x51f720(_0x28eca5,_0x13335c,_0x3b1e67){let _0xbdb034=-0x1,_0x132bab=Number['POSITIVE_INFINITY'],_0x430ad8=!0x0;for(let _0x41cea1=_0x13335c;_0x41cea1<_0x3b1e67;_0x41cea1++)if(_0x297905['isInline'](_0x28eca5[_0x41cea1]['item'])||(_0x430ad8=!0x1),_0x28eca5[_0x41cea1]['item']['startIndex']<_0x13335c&&(_0xbdb034=_0x41cea1),_0x28eca5[_0x41cea1]['item']['endIndex']>=_0x3b1e67){_0x132bab=_0x41cea1;break;}_0x430ad8&&(_0xbdb034=_0x3b1e67-0x1);for(let _0x547ae6=_0x13335c;_0x547ae6<_0x3b1e67;_0x547ae6++)_0x28eca5[_0x547ae6]['side']=_0x547ae6<=_0xbdb034?-0x1:_0x547ae6<_0x132bab?0x0:0x1,_0x28eca5[_0x547ae6]['index']=_0x547ae6;let _0x4e56f2=0x0;for(let _0x11e6fe=_0x13335c;_0x11e6fe<=_0xbdb034;_0x11e6fe++)0x0==_0x28eca5[_0x11e6fe]['distance']?_0x28eca5[_0x11e6fe]['level']=_0x4e56f2:(_0x4e56f2++,_0x28eca5[_0x11e6fe]['level']=_0x4e56f2,_0x4e56f2++);for(let _0x35706d=_0x13335c;_0x35706d<_0x3b1e67;_0x35706d++)0x0==_0x28eca5[_0x35706d]['side']&&(_0x28eca5[_0x35706d]['level']=_0x4e56f2);_0x4e56f2=0x0;for(let _0x5671cf=_0x3b1e67-0x1;_0x5671cf>=_0x132bab;_0x5671cf--)0x0==_0x28eca5[_0x5671cf]['distance']?_0x28eca5[_0x5671cf]['level']=_0x4e56f2:(_0x4e56f2--,_0x28eca5[_0x5671cf]['level']=_0x4e56f2,_0x4e56f2--);}}['_fixObsoleteTags'](_0x5f3eec){const _0x21fa4a=new Map(),_0x2a7bc0=this['editor']['model']['schema'];for(let _0x77e8ba=0x1;_0x77e8ba<_0x5f3eec['length'];_0x77e8ba++){let _0xb288bd,_0x44b60d,_0x2e7785;const _0x1da8b2=_0x5f3eec[_0x77e8ba],_0x5097e9=_0x5f3eec[_0x77e8ba-0x1];if('text'==_0x1da8b2['type'])continue;if(_0x1da8b2['type']!=_0x5097e9['type'])continue;if(!_0x2a7bc0['isBlock'](_0x5097e9['item'])||_0x2a7bc0['isLimit'](_0x5097e9['item']))continue;if(!_0x2a7bc0['isBlock'](_0x1da8b2['item'])||_0x2a7bc0['isLimit'](_0x1da8b2['item']))continue;if((_0x5f3eec[_0x77e8ba]['isAdded']||_0x5f3eec[_0x77e8ba]['isAddSuggestion'])&&_0x5f3eec[_0x77e8ba-0x1]['isRemoved'])_0xb288bd=_0x5f3eec[_0x77e8ba],_0x44b60d=_0x5f3eec[_0x77e8ba-0x1],_0x2e7785=_0x77e8ba-0x1;else{if(!_0x5f3eec[_0x77e8ba]['isRemoved']||!_0x5f3eec[_0x77e8ba-0x1]['isAdded']&&!_0x5f3eec[_0x77e8ba-0x1]['isAddSuggestion'])continue;_0xb288bd=_0x5f3eec[_0x77e8ba-0x1],_0x44b60d=_0x5f3eec[_0x77e8ba],_0x2e7785=_0x77e8ba;}const _0x524460=_0xb288bd['level']==_0x44b60d['level'],_0x52a066=Math['abs'](_0xb288bd['level'])<Math['abs'](_0x44b60d['level'])&&0x0==_0x44b60d['distance'];(_0x524460||_0x52a066)&&(_0x21fa4a['set'](_0x44b60d['id'],_0xb288bd['id']),_0x5f3eec['splice'](_0x2e7785,0x1),_0x77e8ba--,_0xb288bd['isAdded']=!0x1);}for(let _0x5883b6=0x0;_0x5883b6<_0x5f3eec['length'];_0x5883b6++)_0x21fa4a['has'](_0x5f3eec[_0x5883b6]['pairId'])&&(_0x5f3eec[_0x5883b6]['pairId']=_0x21fa4a['get'](_0x5f3eec[_0x5883b6]['pairId']));}['_removeMissingPairs'](_0x43b8e8){const _0x31c5dd=new Set(_0x43b8e8['map'](_0x71b5ae=>_0x71b5ae['id']));for(let _0xfbc3fe=0x0;_0xfbc3fe<_0x43b8e8['length'];_0xfbc3fe++)_0x31c5dd['has'](_0x43b8e8[_0xfbc3fe]['pairId'])||0x0==_0x43b8e8[_0xfbc3fe]['distance']||(_0x43b8e8[_0xfbc3fe]['isIncorrect']=!0x0);return _0x43b8e8['filter'](_0x308527=>!_0x308527['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3c13d3){const _0xc66265=new Set();for(let _0x26a8ce=0x0;_0x26a8ce<_0x3c13d3['length'];_0x26a8ce++){if(_0xc66265['has'](_0x3c13d3[_0x26a8ce]['id'])&&_0x3c13d3[_0x26a8ce]['isRemoved']&&(_0x3c13d3[_0x26a8ce]['isIncorrect']=!0x0),_0x3c13d3[_0x26a8ce]['isIncorrect'])continue;if(0x0==_0x3c13d3[_0x26a8ce]['distance'])continue;if('elementStart'!=_0x3c13d3[_0x26a8ce]['type'])continue;if(null==_0x3c13d3[_0x26a8ce]['pairId'])continue;let _0x2d9e8c=_0x26a8ce+0x1,_0x4fb51c=0x0;for(;_0x3c13d3[_0x2d9e8c]['id']!=_0x3c13d3[_0x26a8ce]['pairId'];)'elementStart'==_0x3c13d3[_0x2d9e8c]['type']?_0x4fb51c++:'elementEnd'==_0x3c13d3[_0x2d9e8c]['type']&&_0x4fb51c--,_0x2d9e8c++;if(0x0!=_0x4fb51c){if(_0x3c13d3[_0x26a8ce]['isRemoved'])_0x3c13d3[_0x26a8ce]['isIncorrect']=!0x0;else{for(;_0x2d9e8c!=_0x26a8ce;)_0x3c13d3[_0x2d9e8c]['isRemoved']&&0x0!=_0x3c13d3[_0x2d9e8c]['distance']&&(_0x3c13d3[_0x2d9e8c]['isIncorrect']=!0x0,_0xc66265['add'](_0x3c13d3[_0x2d9e8c]['pairId'])),_0x2d9e8c--;}}}return _0x3c13d3['filter'](_0x211fbe=>!_0x211fbe['isIncorrect']);}['_removeUnsupportedChanges'](_0x1ccae1){const _0x2224a6=this['editor']['model']['schema'];for(let _0x5cc695=0x0;_0x5cc695<_0x1ccae1['length'];_0x5cc695++){if(!(_0x1ccae1[_0x5cc695]['isAdded']||_0x1ccae1[_0x5cc695]['isAddSuggestion']||_0x1ccae1[_0x5cc695]['isRemoved']||_0x1ccae1[_0x5cc695]['isRemoveSuggestion']))continue;if(0x0==_0x1ccae1[_0x5cc695]['distance'])continue;const _0x473c48=_0x1ccae1[_0x5cc695]['item'];_0x2224a6['isBlock'](_0x473c48)||_0x2224a6['isLimit'](_0x473c48)||(_0x1ccae1[_0x5cc695]['isAdded']&&delete _0x1ccae1[_0x5cc695]['isAdded'],_0x1ccae1[_0x5cc695]['isAddSuggestion']&&delete _0x1ccae1[_0x5cc695]['isAddSuggestion'],_0x1ccae1[_0x5cc695]['isRemoveSuggestion']&&delete _0x1ccae1[_0x5cc695]['isRemoveSuggestion'],_0x1ccae1[_0x5cc695]['isRemoved']&&(_0x1ccae1[_0x5cc695]['isIncorrect']=!0x0));}return _0x1ccae1['filter'](_0x193e6d=>!_0x193e6d['isIncorrect']);}['_makeModelFromTape'](_0x1160e6,_0x5e0ec,_0x59b859){const _0x6ecd7a=new vt(),_0x4e6fb3=[],_0x212937=new Map(),_0xfa6fe4=this['editor']['model'],_0x476a6f=_0xfa6fe4['schema'],_0x4335ab=[_0x6ecd7a],_0x2d047c={},_0x4bd58c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3e247a=null;const _0x58669d=[0x0];for(let _0x1767ba=0x0;_0x1767ba<_0x1160e6['length'];_0x1767ba++)if('elementStart'===_0x1160e6[_0x1767ba]['type']){_0x1160e6[_0x1767ba]['previousPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d);const _0x2d47c1=new ut(_0x1160e6[_0x1767ba]['item']['name'],_0x1160e6[_0x1767ba]['item']['getAttributes']());_0x4335ab[0x0]['_appendChild'](_0x2d47c1),_0x58669d['push'](0x0),_0x4335ab['unshift'](_0x2d47c1),_0x1160e6[_0x1767ba]['nextPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d);}else'elementEnd'===_0x1160e6[_0x1767ba]['type']?(_0x4335ab['shift'](),_0x1160e6[_0x1767ba]['previousPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d),_0x58669d['pop'](),_0x58669d[_0x58669d['length']-0x1]++,_0x1160e6[_0x1767ba]['nextPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d)):(_0x1160e6[_0x1767ba]['previousPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d),_0x3e247a?_0x3e247a['_data']+=_0x1160e6[_0x1767ba]['item']['data']:_0x3e247a=new gt(_0x1160e6[_0x1767ba]['item']['data'],_0x1160e6[_0x1767ba]['item']['getAttributes']()),_0x1160e6[_0x1767ba+0x1]&&'text'===_0x1160e6[_0x1767ba+0x1]['type']&&_0x33a112(_0x3e247a,_0x1160e6[_0x1767ba+0x1]['item'])||(_0x4335ab[0x0]['_appendChild'](_0x3e247a),_0x3e247a=null),_0x58669d[_0x58669d['length']-0x1]+=_0x1160e6[_0x1767ba]['item']['offsetSize'],_0x1160e6[_0x1767ba]['nextPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d));for(let _0x880c0f=0x0;_0x880c0f<_0x1160e6['length'];_0x880c0f++){const _0x316e5d=_0x1160e6[_0x880c0f]['previousPosition'],_0x47a1e6=_0x1160e6[_0x880c0f]['nextPosition'];for(const _0x4286f0 of _0x1160e6[_0x880c0f]['markersStart'])_0x212937['set'](_0x4286f0,{'start':_0x316e5d,'end':null});_0x5b50d5('isRemoveSuggestion',_0x880c0f,_0x316e5d,_0x47a1e6),_0x5b50d5('isAddSuggestion',_0x880c0f,_0x316e5d,_0x47a1e6),_0x5b50d5('isRemoved',_0x880c0f,_0x316e5d,_0x47a1e6),_0x5b50d5('isAdded',_0x880c0f,_0x316e5d,_0x47a1e6);for(const _0x3a09a0 of _0x1160e6[_0x880c0f]['markersEnd']){const _0x17ee6e=_0x212937['get'](_0x3a09a0);_0x17ee6e?_0x17ee6e['end']=_0x47a1e6:_0x212937['set'](_0x3a09a0,{'start':_0x47a1e6,'end':_0x47a1e6});}}for(const [_0x39dcd4,_0x3e4b12]of _0x212937){const _0x4e73f7=this['editor']['model']['createRange'](_0x3e4b12['start'],_0x3e4b12['end']);_0x6ecd7a['markers']['set'](_0x39dcd4,_0x4e73f7);}return _0x4e6fb3['sort']((_0x429cdf,_0x15002a)=>{const _0x1060dd=_0x6ecd7a['markers']['get']('revision:'+_0x429cdf['id']),_0x2c8c22=_0x6ecd7a['markers']['get']('revision:'+_0x15002a['id']);return _0x1060dd['start']['isBefore'](_0x2c8c22['start'])?-0x1:_0x1060dd['start']['isAfter'](_0x2c8c22['start'])?0x1:_0x1060dd['end']['isBefore'](_0x2c8c22['end'])?-0x1:_0x1060dd['end']['isAfter'](_0x2c8c22['end'])?0x1:'add'===_0x429cdf['type']?-0x1:0x1;}),{'root':_0x6ecd7a,'changes':_0x4e6fb3};function _0x5b50d5(_0x586438,_0x417917,_0x69dc10,_0x5bf8a5){const _0x536e49=!!_0x1160e6[_0x417917][_0x586438],_0x19a369=_0x536e49?_0x1160e6[_0x417917][_0x586438]['userId']:null,_0xd6b262=_0x417917===_0x1160e6['length']-0x1,_0x5f4cdd=_0x4bd58c[_0x586438][0x0],_0x42447d=_0x476a6f['isObject'](_0x1160e6[_0x417917]['item']);!_0x2d047c[_0x586438]&&_0x536e49?_0x2d047c[_0x586438]={'start':_0x69dc10,'tapeItem':_0x1160e6[_0x417917],'userId':_0x19a369,'type':_0x586438}:_0x2d047c[_0x586438]&&!_0x536e49?(_0x2d047c[_0x586438]['end']=_0x69dc10,_0x324c54(_0x2d047c[_0x586438]),_0x2d047c[_0x586438]=null):_0x2d047c[_0x586438]&&_0x536e49&&_0x2d047c[_0x586438]['userId']!==_0x19a369&&(_0x2d047c[_0x586438]['end']=_0x69dc10,_0x5f4cdd&&_0x5f4cdd['userId']===_0x2d047c[_0x586438]['userId']||_0x324c54(_0x2d047c[_0x586438]),_0x2d047c[_0x586438]={'start':_0x69dc10,'tapeItem':_0x1160e6[_0x417917],'userId':_0x19a369,'type':_0x586438}),_0x2d047c[_0x586438]&&_0x42447d&&('elementStart'!==_0x1160e6[_0x417917]['type']||_0x5f4cdd&&_0x5f4cdd['userId']===_0x19a369||_0x4bd58c[_0x586438]['unshift']({'userId':_0x19a369,'object':_0x1160e6[_0x417917]['item'],'change':_0x2d047c[_0x586438]}),'elementEnd'===_0x1160e6[_0x417917]['type']&&_0x5f4cdd&&_0x5f4cdd['object']===_0x1160e6[_0x417917]['item']&&(_0x4bd58c[_0x586438]['shift'](),_0x2d047c[_0x586438]=_0x5f4cdd['change'])),_0x2d047c[_0x586438]&&_0xd6b262&&(_0x2d047c[_0x586438]['end']=_0x5bf8a5,_0x324c54(_0x2d047c[_0x586438]),_0x2d047c[_0x586438]=null);}function _0x324c54({start:_0x50396f,end:_0xe470a2,tapeItem:_0x3a53e1,userId:_0x24631c,type:_0x333271}){const _0x17311d=_0x3a53e1['item'],_0x42468d=_0xfa6fe4['schema']['isBlock'](_0x17311d)&&!_0xfa6fe4['schema']['isLimit'](_0x17311d),_0x1143f0=_0x50396f['nodeAfter']==_0xe470a2['parent']&&_0xe470a2['isAtStart'];if(_0x42468d&&_0x1143f0)return;const _0x543bfe=_0xfa6fe4['createRange'](_0x50396f,_0xe470a2),_0xfe8940=_0x5e0ec['get'](_0x24631c),_0x5f42f1=new r({'author':_0xfe8940,'type':'isAdded'==_0x333271||'isAddSuggestion'==_0x333271?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x333271||'isRemoveSuggestion'==_0x333271},'createdAt':new Date(),'rootName':_0x59b859});_0x4e6fb3['push'](_0x5f42f1),_0x6ecd7a['markers']['set']('revision:'+_0x5f42f1['id'],_0x543bfe);}function _0x33a112(_0x4d157f,_0x207821){const _0x3ed32b=_0x4d157f['getAttributes'](),_0x30749c=_0x207821['getAttributes']();for(const _0x58630c of _0x3ed32b){if(_0x58630c[0x1]!==_0x207821['getAttribute'](_0x58630c[0x0]))return!0x1;_0x30749c['next']();}return _0x30749c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xbfc587=>{const _0xb427cf=_0xbfc587['markerName']['split'](':')[0x1],_0x360e31=this['_getChangeFromId'](_0xb427cf);if(!_0x360e31)return null;const _0x1f4ead='add'==_0x360e31['type']?'insertion':'deletion',_0x5b2127=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1f4ead];return _0x360e31['data']['isSuggestion']&&_0x5b2127['push']('ck-suggestion-marker-'+_0x1f4ead+'-new'),this['activeChange']==_0x360e31&&_0x5b2127['push']('ck-suggestion-marker--active'),{'classes':_0x5b2127,'attributes':{'data-change-id':_0xb427cf}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x52c16b=>{_0x52c16b['on']('element:pre',(_0x16eabd,_0x3ab43d,_0xc93295)=>{const _0x52a5df=_0x3ab43d['viewItem']['getChild'](0x0);if(!_0x52a5df||!_0x52a5df['is']('element','code'))return;if(!_0xc93295['consumable']['consume'](_0x52a5df,{'attributes':['vid_start','vid_end']}))return;const _0x4d113d=_0x3ab43d['modelRange']['start']['nodeAfter'];_0xc93295['writer']['setAttribute']('vid_start',_0x52a5df['getAttribute']('vid_start'),_0x4d113d),_0xc93295['writer']['setAttribute']('vid_end',_0x52a5df['getAttribute']('vid_end'),_0x4d113d);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3f2fd0=>{_0x3f2fd0['on']('element',(_0x17b8fc,_0x58042b,_0x3f49ab)=>{if(!_0x3f49ab['consumable']['consume'](_0x58042b['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x58042b['modelRange']['isCollapsed'])return;const _0x448b76=_0x58042b['modelRange']['start']['nodeAfter'];_0x448b76['hasAttribute']('vid_start')||_0x448b76['hasAttribute']('vid')||(_0x3f49ab['writer']['setAttribute']('vid_start',_0x58042b['viewItem']['getAttribute']('vid_start'),_0x448b76),_0x3f49ab['writer']['setAttribute']('vid_end',_0x58042b['viewItem']['getAttribute']('vid_end'),_0x448b76));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x16c60e=>_0x16c60e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x209aa7,[,_0x68b30e])=>{['vid_start','vid_end','vid']['includes'](_0x68b30e)&&(_0x209aa7['return']=!0x0,_0x209aa7['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5b1865=>{_0x5b1865['on']('attribute:vid',(_0x4576e0,_0x3db5a5,_0xbef01d)=>{if('\x20'!=_0x3db5a5['item']['data']||_0x3db5a5['item']['parent']['maxOffset']>0x1)return;if(!_0xbef01d['consumable']['consume'](_0x3db5a5['item'],_0x4576e0['name']))return;const _0x5c8aae=_0xbef01d['writer'],_0x53aed6=_0xbef01d['mapper']['toViewRange'](_0x3db5a5['range']);_0x5c8aae['wrap'](_0x53aed6,_0x5c8aae['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x26c606){const _0x613e=_0x26c606['plugins']['get']('RevisionViewer');return(_0x3ed73f,_0x4da218,_0xab0edc)=>{const _0x1bf1a9=_0x4da218['markerName']['split'](':')[0x1],_0x53f4aa=_0x613e['_getChangeFromId'](_0x1bf1a9);if(!_0x53f4aa)return null;const _0x249416='add'==_0x53f4aa['type']?'split':'merge';if(!_0xab0edc['consumable']['test'](_0x4da218['markerRange'],_0x3ed73f['name']))return;const _0x232eb8=_0x4da218['markerRange']['getWalker'](),_0x47a00f=_0x4da218['markerRange']['start'],_0xa6b129=_0x26c606['model']['schema'];let _0x3bc791=null,_0x4564a5=null,_0x420592=!0x1,_0x562d8d=!0x1;for(const _0x50642f of _0x232eb8){const _0x5186e0=_0x50642f['item'];_0x420592=_0x420592||_0xa6b129['isContent'](_0x5186e0);const _0x113bfe=_0xab0edc['mapper']['toViewElement'](_0x5186e0);if(_0x113bfe&&_0x113bfe['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x50642f['type']&&(_0xa6b129['isBlock'](_0x5186e0)&&!_0xa6b129['isLimit'](_0x5186e0)&&(_0x5186e0['nextSibling']||_0x47a00f['isAtEnd']?_0x3bc791&&_0x3bc791['parent']==_0x5186e0||(_0x3bc791=_0x5186e0,_0x194772(_0x50642f['previousPosition']),_0x562d8d=!0x0):_0x4564a5=_0x4564a5||_0x50642f['previousPosition']));}function _0x194772(_0x743ed7){const _0x1df054=_0xab0edc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x249416}),_0x4599c1=_0xab0edc['mapper']['toViewPosition'](_0x743ed7);_0x53f4aa['data']['isSuggestion']&&_0xab0edc['writer']['addClass']('ck-suggestion-marker-'+_0x249416+'-new',_0x1df054),_0x613e['activeChange']==_0x53f4aa&&_0xab0edc['writer']['addClass']('ck-suggestion-marker--active',_0x1df054),_0xab0edc['writer']['insert'](_0x4599c1,_0x1df054),_0xab0edc['mapper']['bindElementToMarker'](_0x1df054,_0x4da218['markerName']);}_0x420592||_0x562d8d||!_0x4564a5||_0x194772(_0x4564a5);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2796a6,_0x25459e,_0x2910c6)=>{const _0xb28491=_0x2910c6['mapper']['markerNameToElements'](_0x25459e['markerName']);if(_0xb28491){for(const _0x1aa3a3 of _0xb28491)(_0x1aa3a3['hasClass']('ck-suggestion-marker-split')||_0x1aa3a3['hasClass']('ck-suggestion-marker-merge'))&&(_0x2910c6['mapper']['unbindElementFromMarkerName'](_0x1aa3a3,_0x25459e['markerName']),_0x2910c6['writer']['remove'](_0x1aa3a3));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2a62b5,_0x23e0c9,_0xdb1653)=>{const _0x2a1b77=_0x23e0c9['markerName']['split'](':')[0x1],_0x16d8eb=this['_getChangeFromId'](_0x2a1b77);if(!_0x16d8eb)return null;const _0x32b1af='add'==_0x16d8eb['type']?'split':'merge';if(_0xdb1653['consumable']['test'](_0x23e0c9['markerRange'],_0x2a62b5['name']))for(const _0x1dabb3 of _0x23e0c9['markerRange']['getItems']()){if(!_0x1dabb3['is']('element','softBreak'))continue;const _0x3e6aa7=_0xdb1653['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x32b1af}),_0x9e350c=_0xdb1653['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1dabb3));_0x16d8eb['data']['isSuggestion']&&_0xdb1653['writer']['addClass']('ck-suggestion-marker-'+_0x32b1af+'-new',_0x3e6aa7),this['activeChange']==_0x16d8eb&&_0xdb1653['writer']['addClass']('ck-suggestion-marker--active',_0x3e6aa7),_0xdb1653['writer']['insert'](_0x9e350c,_0x3e6aa7),_0xdb1653['mapper']['bindElementToMarker'](_0x3e6aa7,_0x23e0c9['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3382c1=>{for(const _0xf57e5f of this['editor']['model']['document']['getRootNames']()){const _0x46cd19=this['editor']['model']['document']['getRoot'](_0xf57e5f),_0x123df5=this['editor']['editing']['view']['document']['getRoot'](_0xf57e5f);if(_0x123df5){const _0x31912f=_0x46cd19['getAttribute']('revisionHistoryAttachChange');if(_0x3382c1['removeAttribute']('data-change-id',_0x123df5),_0x3382c1['removeClass']('ck-revision-history-root-add',_0x123df5),_0x3382c1['removeClass']('ck-revision-history-root-remove',_0x123df5),_0x3382c1['removeClass']('ck-revision-history-root--active',_0x123df5),_0x31912f){const _0x46d4cb=this['_getChangeFromId'](_0x31912f);if(!_0x46d4cb)return null;_0x3382c1['setAttribute']('data-change-id',_0x31912f,_0x123df5),_0x3382c1['addClass']('ck-revision-history-root-'+_0x46d4cb['type'],_0x123df5),this['activeChange']==_0x46d4cb&&_0x3382c1['addClass']('ck-revision-history-root--active',_0x123df5);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x43a3f9=>'revision-comment:'+_0x43a3f9,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x374fde=>'revision-suggestion:'+_0x374fde,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x38f36a=>({'name':'suggestion:'+_0x38f36a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x408aca=>{const _0x57188e=_0x408aca['markerName']['split'](':')[0x1];return'insertion'!=_0x57188e&&'deletion'!=_0x57188e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x57188e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xea17f2,_0xa95624,_0x346893)=>{const _0x30d925=_0x346893['mapper']['markerNameToElements'](_0xa95624['markerName']);if(_0x30d925){for(const _0x253dea of _0x30d925)_0x253dea['is']('uiElement')&&(_0x346893['mapper']['unbindElementFromMarkerName'](_0x253dea,_0xa95624['markerName']),_0x346893['writer']['remove'](_0x253dea));}},{'priority':'high'});}['_getChangeFromId'](_0x4fdd33){return this['_changeIdToChange']['get'](_0x4fdd33);}['_getViewForChange'](_0x226e92){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x226e92),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x45c590,_0x55c0b7,_0x5901e7,_0x5e419e)=>{_0x5e419e&&this['_balloon']['remove'](_0x5e419e),_0x5901e7&&(this['_balloon']['add']({'view':_0x5901e7,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5dd109=this['editor']['editing'],_0x2bc750=this['_getChangeFromId'](_0x5901e7['changeId']);let _0x1ca8a5;if(_0x2bc750['data']['isOnRoot']){const _0x3dd40b=_0x5dd109['view']['getDomRoot'](_0x2bc750['rootName']);_0x1ca8a5=Array['from'](_0x3dd40b['getClientRects']());}else{const _0x4fb979=this['editor']['model']['markers']['get']('revision:'+_0x5901e7['changeId']);_0x1ca8a5=Array['from'](_0x5dd109['mapper']['markerNameToElements'](_0x4fb979['name']))['map'](_0x4b872e=>_0x5dd109['view']['domConverter']['mapViewToDom'](_0x4b872e))['map'](_0x1de8cc=>Array['from'](_0x1de8cc['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1ca8a5[0x0];return _0x1ca8a5['find'](_0x3a0797=>_0x3a0797['top']-0x3<=this['_activeViewTarget']['y']&&_0x3a0797['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3a0797['left']-0x3<=this['_activeViewTarget']['x']&&_0x3a0797['right']+0x3>=this['_activeViewTarget']['x'])||_0x1ca8a5[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x32c758,_0x3ba196,_0x42056e,_0x1c13ac)=>{this['activeView']=_0x42056e?this['_getViewForChange'](_0x42056e):null,this['editor']['model']['change'](()=>{const _0x180f45=this['editor']['editing'];_0x1c13ac&&(_0x1c13ac['data']['isOnRoot']?_0x180f45['view']['change'](_0x42d7cc=>{_0x42d7cc['removeClass']('ck-revision-history-root--active',_0x180f45['view']['document']['getRoot'](_0x1c13ac['rootName']));}):_0x180f45['reconvertMarker']('revision:'+_0x1c13ac['id'])),_0x42056e&&(_0x42056e['data']['isOnRoot']?_0x180f45['view']['change'](_0xf03b86=>{_0xf03b86['addClass']('ck-revision-history-root--active',_0x180f45['view']['document']['getRoot'](_0x42056e['rootName']));}):_0x180f45['reconvertMarker']('revision:'+_0x42056e['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x397d39,_0x54a7d5)=>{if(this['activeChange'])return;const _0x424556=this['_findChangeIdFromDomTarget'](_0x54a7d5['target']),_0x1028ac=this['_changeIdToChange']['get'](_0x424556);_0x1028ac?(this['_activeViewTarget']={'x':_0x54a7d5['domEvent']['x'],'y':_0x54a7d5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1028ac)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0xc4501d,_0x16d967)=>{const _0x308884=this['_findChangeIdFromDomTarget'](_0x16d967['target']),_0x494da6=this['_changeIdToChange']['get'](_0x308884);_0x494da6?(this['_activeViewTarget']={'x':_0x16d967['domEvent']['x'],'y':_0x16d967['domEvent']['y']},_0x494da6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x494da6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1fe335){do{const _0x3929d1=_0x1fe335['getAttribute']('data-change-id');if(_0x3929d1)return _0x3929d1;_0x1fe335=_0x1fe335['parent'];}while(_0x1fe335);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5c5bb5=>{for(const _0x580e86 of this['editor']['model']['markers'])_0x5c5bb5['removeMarker'](_0x580e86);});}}function X(_0x1adb24,_0x1cb4e3){return(_0x57a8aa,_0x5bbd7d,_0x1afe0e)=>{if(!_0x1afe0e['consumable']['test'](_0x5bbd7d['markerRange'],_0x57a8aa['name']))return;const _0x2378e=_0x5bbd7d['markerRange']['getWalker'](),_0x30ce8c=_0x5bbd7d['markerRange']['start'],_0x101aad=_0x1adb24['model']['schema'];let _0x2ba4c4=null,_0x59f851=null,_0x46a3e0=!0x1,_0x12fc6b=!0x1;for(const _0xb2af1d of _0x2378e){const _0x214234=_0xb2af1d['item'];_0x46a3e0=_0x46a3e0||_0x101aad['isContent'](_0x214234);const _0x115372=_0x1afe0e['mapper']['toViewElement'](_0x214234);if(_0x115372&&_0x115372['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xb2af1d['type']&&(_0x101aad['isBlock'](_0x214234)&&!_0x101aad['isLimit'](_0x214234)&&(_0x214234['nextSibling']||_0x30ce8c['isAtEnd']?_0x2ba4c4&&_0x2ba4c4['parent']==_0x214234||(_0x2ba4c4=_0x214234,_0x45322b(_0xb2af1d['previousPosition']),_0x12fc6b=!0x0):_0x59f851=_0x59f851||_0xb2af1d['previousPosition']));}function _0x45322b(_0x3a5cd1){const _0x2dae4c=_0x1afe0e['mapper']['toViewPosition'](_0x3a5cd1),_0x3c6a75=_0x1afe0e['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1cb4e3});_0x1afe0e['writer']['insert'](_0x2dae4c,_0x3c6a75),_0x1afe0e['mapper']['bindElementToMarker'](_0x3c6a75,_0x5bbd7d['markerName']);}_0x46a3e0||_0x12fc6b||!_0x59f851||_0x45322b(_0x59f851);};}class mt extends _0x1f8cb8{constructor(_0x4c5c7b){super(_0x4c5c7b);const _0x344992=_0x4c5c7b['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x344992,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x344992,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x8ae0e6=this['editor'],_0x161683=_0x8ae0e6['plugins']['get'](m),_0x83e91=_0x161683['isReady']?_0x161683['diff']['newRevisionId']:null;_0x8ae0e6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x83e91);}['refresh'](){const {isReady:_0x3b7f93,isEnabled:_0x98c7ee,repository:_0x403a59,diff:_0x5e5e4c}=this['editor']['plugins']['get'](m),_0x3b70f1=_0x5e5e4c&&_0x403a59['getLaterVisibleRevision'](_0x5e5e4c['newRevisionId']);this['isEnabled']=_0x3b7f93&&_0x98c7ee&&Boolean(_0x3b70f1);}}class wt extends _0x1f8cb8{['_step'];constructor(_0x2a7551,{direction:_0x36e20b}){super(_0x2a7551);const _0x5f3200=_0x2a7551['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x36e20b?0x1:-0x1,this['listenTo'](_0x5f3200,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5f3200,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5f3200,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x543c21=this['editor'],_0x8d4a13=_0x543c21['plugins']['get'](m),{isNavigationMode:_0x226c93,currentChangeNumber:_0x4d64cb}=_0x8d4a13;let _0x27fc55;if(_0x8d4a13['activeChange']=_0x226c93?_0x8d4a13['diff']['changes']['get'](_0x4d64cb+this['_step']):_0x8d4a13['diff']['changes']['first'],_0x8d4a13['activeChange']['data']['isOnRoot'])_0x27fc55=_0x543c21['editing']['view']['getDomRoot'](_0x8d4a13['activeChange']['rootName']);else{const _0x52c579=_0x543c21['model']['markers']['get']('revision:'+_0x8d4a13['activeChange']['id']);_0x27fc55=_0x4c8852(_0x543c21['editing'],_0x52c579);}_0x17044c({'target':_0x27fc55,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x251aba,currentChangeNumber:_0x3767b6,numberOfChanges:_0xbd5f16,isReady:_0x1f14b0,isEnabled:_0x21f4bc}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x21f4bc&&_0x1f14b0&&_0xbd5f16)&&(!_0x251aba||(0x1===this['_step']?_0x3767b6<_0xbd5f16-0x1:_0x3767b6>0x0));}}class _i extends _0x65ffd8{constructor(_0x40dd87){super(_0x40dd87);const _0x4ccb00=this['bindTemplate'],_0x11ad7b=new te(_0x40dd87),_0x484860=new te(_0x40dd87);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x594f7a,_0x37170e)=>_0x594f7a&&_0x37170e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5c81a2,_0x156481,_0x44d6ce,_0x203a39)=>{if(!_0x5c81a2)return g(_0x40dd87,'Loading...');if(!_0x44d6ce)return g(_0x40dd87,'No\x20changes');const _0x5c1dbb=g(_0x40dd87,'NUMBER_OF_CHANGES',_0x44d6ce);return _0x203a39?g(_0x40dd87,'X_OF_Y_CHANGES',[_0x156481+0x1,_0x44d6ce]):_0x5c1dbb;}),_0x11ad7b['set']({'label':g(_0x40dd87,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4716c}),_0x484860['set']({'label':g(_0x40dd87,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0xbcd431}),_0x11ad7b['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x484860['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x11ad7b['on']('execute',()=>this['fire']('execute','backward')),_0x484860['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x4ccb00['if']('_isStatusLabelVisible','ck-hidden',_0x4b217f=>!_0x4b217f)]},'children':[{'text':_0x4ccb00['to']('isNavigationMode',_0x12b76a=>_0x12b76a?g(_0x40dd87,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x40dd87,'Total')+':\x20')}]},{'text':_0x4ccb00['to']('_statusText')}]},new _0x5f583d(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x11ad7b,_0x484860]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x4af0c1{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x300af=this['editor']['editing']['view'];_0x300af['change'](_0x8722e3=>{for(const _0x4cc1e7 of _0x300af['document']['roots'])_0x8722e3['addClass'](le,_0x4cc1e7);});}['hide'](){const _0x5b1c8a=this['editor']['editing']['view'];_0x5b1c8a['change'](_0x3c51ed=>{for(const _0x49d3c3 of _0x5b1c8a['document']['roots'])_0x3c51ed['removeClass'](le,_0x49d3c3);});}}class R extends _0x4af0c1{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x2db64b=this['editor'],_0xaa8fb9=_0x2db64b['plugins']['get'](m),_0x161241=_0x2db64b['plugins']['get'](ge);_0x2db64b['ui']['componentFactory']['add']('exitToEditing',_0x5ea903=>{const _0x545a95=new te(_0x5ea903);return _0x545a95['set']({'label':g(_0x5ea903,'Back\x20to\x20editing'),'icon':_0xf13ab6,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x545a95,'execute',()=>{_0x2db64b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x545a95;}),_0x2db64b['ui']['componentFactory']['add']('restoreRevision',_0xa1601f=>{const _0x2fc3f0=new te(_0xa1601f);return _0x2fc3f0['set']({'label':g(_0xa1601f,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2fc3f0['bind']('isEnabled')['to'](_0x2db64b['commands']['get']('restoreRevision')),this['listenTo'](_0x2fc3f0,'execute',()=>_0x2db64b['execute']('restoreRevision')),_0x2fc3f0;}),_0x2db64b['ui']['componentFactory']['add']('changesNavigation',_0x3b7fa9=>{const _0x329be5=new _i(_0x3b7fa9),_0x4811fb=_0x2db64b['commands']['get']('showPreviousChange'),_0x4d0dfc=_0x2db64b['commands']['get']('showNextChange');return _0x329be5['bind']('isBackwardNavigationEnabled')['to'](_0x4811fb,'isEnabled'),_0x329be5['bind']('isForwardNavigationEnabled')['to'](_0x4d0dfc,'isEnabled'),_0x329be5['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xaa8fb9),this['listenTo'](_0x329be5,'execute',(_0x419088,_0x446385)=>{_0x2db64b['execute']('forward'===_0x446385?'showNextChange':'showPreviousChange');}),_0x329be5;}),_0x161241['show'](),_0xaa8fb9['on']('change:isReady',(_0x1b39fb,_0x23e035,_0x537740)=>{_0x537740?_0x161241['hide']():_0x161241['show']();});}}class at extends ts{['_resizeObserver']=null;constructor(_0x17da4b,_0x5387c3){super(_0x17da4b,_0x5387c3);const _0x3436a2=this['bindTemplate'];this['set']({'label':g(_0x17da4b,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x17da4b,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3436a2['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x26beea=this['fieldView']['element'];this['_tooltipString']=_0x26beea['scrollWidth']>_0x26beea['clientWidth']&&_0x26beea['value']||'';}}class si extends _0x65ffd8{constructor(_0x3cac22,_0x4a69e2,_0x3291ae){super(_0x3cac22);const _0x2fe7be=new _0x4e1780();_0x2fe7be['set']({'content':_0x2044fd,'viewBox':'0\x200\x2011\x2010'});const _0x49234c=['ck','ck-revision-history-sidebar__revision-author'];_0x3291ae&&_0x49234c['push']('ck-revision-history-sidebar__revision-author_creator');const _0xd21fa8=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x3cac22,_0x3291ae?'Revision\x20creator':'Revision\x20author')},'children':[_0x2fe7be,_0x4a69e2['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x49234c},'children':_0xd21fa8});}}function oi(_0x105620,_0xe8473){const _0x2d6556=_0x105620['bindTemplate'],_0x5e502e=_0x105620['locale'],_0x49b700=_0x328c25(_0x5e502e);_0x49b700['panelPosition']='sw';const _0x30b163=function(_0x53237a,_0x35ec49){const _0x3b2fe8=function(_0x74bd20,_0x4ebd0a){const _0xd7ed7=_0x74bd20['locale'],_0x26f1df={'Compare\x20against\x20selected':g(_0xd7ed7,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0xd7ed7,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0xd7ed7,'Restore\x20this\x20revision')};return _0x4ebd0a['map'](_0x562abe=>{const _0x566e0b=_0x26f1df[_0x562abe['name']];return _0x566e0b&&_0x566e0b!==_0x562abe['name']&&(_0x562abe['name']=_0x566e0b),_0x562abe;});}(_0x53237a,_0x35ec49),_0x30705e=new _0x481a5e();for(const _0x21b0c5 of _0x3b2fe8){const _0x35533f={'type':'button','model':new to({'label':_0x21b0c5['name'],'class':_0x21b0c5['class'],'withText':!0x0,'role':'menuitem','_action':_0x21b0c5['action']})};_0x35533f['model']['bind']('isEnabled')['to'](_0x53237a,'isActionsDropdownOpen',_0x3a2624=>'function'!=typeof _0x21b0c5['isEnabled']||(!_0x3a2624||_0x21b0c5['isEnabled'](_0x53237a))),_0x30705e['add'](_0x35533f);}return _0x30705e;}(_0x105620,_0xe8473);return _0x105620['bind']('isActionsDropdownOpen')['to'](_0x49b700,'isOpen'),_0x49b700['buttonView']['set']({'label':g(_0x5e502e,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x8c16b}),_0x49b700['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2d6556['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2d6556['to'](_0x3e6903=>_0x3e6903['stopPropagation']())}}),_0x49b700['on']('execute',_0x3d05cd=>{_0x105620['isReady']&&'function'==typeof _0x3d05cd['source']['_action']&&_0x3d05cd['source']['_action'](_0x105620);}),_0x3b7d0a(_0x49b700,_0x30b163,{'role':'menu'}),_0x49b700['listenTo'](_0x105620,'change:isActionsDropdownOpen',(_0x455464,_0x1e8446,_0x4c5fd3)=>{if(_0x4c5fd3)for(const _0x465f1d of _0x49b700['listView']['items']){const _0xfe067e=_0x465f1d['children']['first'],_0x38e7d7=_0xe8473['find'](_0x4f90e7=>_0x4f90e7['action']===_0xfe067e['_action'])['isVisible'];_0x465f1d['isVisible']=void 0x0===_0x38e7d7||_0x38e7d7(_0x105620);}}),_0x49b700;}class hi extends/* #__PURE__ -- @preserve */
27
+ ti(_0x65ffd8){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x470eac,_0x1965ae,_0x161aaa,_0x2d8d6a){super(_0x470eac);const _0x1c2019=this['bindTemplate'],_0x3c98dd=function(_0x4c89de,_0x173b3f){const _0x1d4007=Array['from'](_0x173b3f['authors'])['filter'](_0x3856a5=>_0x3856a5!=_0x173b3f['creator']);return _0x173b3f['creator']&&_0x1d4007['unshift'](_0x173b3f['creator']),_0x1d4007['map'](_0x1ba5e7=>new si(_0x4c89de,_0x1ba5e7,_0x1ba5e7==_0x173b3f['creator']));}(_0x470eac,_0x1965ae);this['id']=_0x1965ae['id'],this['_revision']=_0x1965ae,this['_requireRevisionName']=_0x2d8d6a,this['bind']('name','createdAt')['to'](_0x1965ae),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x297ea2=>{return _0x1eb3ca=_0x470eac['uiLanguage'],(_0x5c8e8f=_0x297ea2)['toLocaleDateString'](_0x1eb3ca,{'month':'long','day':'numeric'})+',\x20'+_0x5c8e8f['toLocaleTimeString'](_0x1eb3ca,{'hour':'numeric','minute':'numeric'});var _0x1eb3ca,_0x5c8e8f;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x470eac,_0x27b255),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2247e2=>_0x2247e2||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x344652,_0x48321f)=>_0x344652&&_0x48321f),this['revisionActionsView']=_0x161aaa&&_0x161aaa['length']?oi(this,_0x161aaa):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1c2019['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1c2019['if']('isEnabled','ck-disabled',_0x11a349=>!_0x11a349),_0x1c2019['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1c2019['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1c2019['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x1c2019['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x3c98dd}]},this['revisionActionsView']],'on':{'click':_0x1c2019['to'](_0x58bb6b=>{_0x58bb6b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x59f10d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x59f10d,'change',()=>{this['_requireRevisionName']&&!_0x59f10d['value']||this['fire']('setName',{'id':this['id'],'name':_0x59f10d['value']}),_0x59f10d['value']||(_0x59f10d['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x16ab14,_0x5a1cf6){const _0x4a00b8=_0x4a3d54['fromJSDate'](_0x16ab14)['setLocale'](_0x5a1cf6),_0x2521b1=_0x4a3d54['local'](),_0x399e4c=_0x2521b1['minus']({'days':0x1})['startOf']('day');let _0x4fda29,_0x3bd9d0;return _0x4a00b8['hasSame'](_0x2521b1,'day')?(_0x4fda29=_0x4a00b8['startOf']('day')['toJSDate'](),_0x3bd9d0=_0x4a00b8['toRelativeCalendar']()):_0x4a00b8['hasSame'](_0x399e4c,'day')?(_0x4fda29=_0x399e4c['toJSDate'](),_0x3bd9d0=_0x4a00b8['toRelativeCalendar']()):_0x4a00b8['hasSame'](_0x2521b1,'week')?(_0x4fda29=_0x4a00b8['startOf']('week')['toJSDate'](),_0x3bd9d0=_0x4a00b8['weekdayLong']||''):_0x4a00b8['hasSame'](_0x2521b1,'year')?(_0x4fda29=_0x4a00b8['startOf']('month')['toJSDate'](),_0x3bd9d0=_0x4a00b8['monthLong']||''):(_0x4fda29=_0x4a00b8['startOf']('year')['toJSDate'](),_0x3bd9d0=String(_0x4a00b8['year'])),{'startDate':_0x4fda29,'localizedPeriodName':_0x3bd9d0};}class di extends _0x65ffd8{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5a2158,_0x245cfb,_0x435f7b,_0x1b0325){super(_0x5a2158);const _0x5b3cc2=ai(_0x245cfb,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x245cfb,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x435f7b,this['_requireRevisionName']=_0x1b0325,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x5b3cc2}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x39a880){const _0x592f76=new hi(this['locale'],_0x39a880,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x592f76);}['removeRevision'](_0x11e3bd){const _0xfcec3d=this['revisionViews']['find'](_0x33943d=>_0x33943d['id']===_0x11e3bd['id']);this['revisionViews']['remove'](_0xfcec3d);}}class as extends _0x65ffd8{constructor(_0x36db98){super(_0x36db98);const _0x167e64=new _0x4e1780();_0x167e64['content']=_0x43b690,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x167e64,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x36db98,'Revision\x20history')]}]});}}class ni extends _0x65ffd8{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x22cfac,_0x3c3878,_0x534b8d,_0x50e197){super(_0x22cfac);const _0x26bb58=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3c3878,this['_revisionActions']=_0x534b8d,this['_requireRevisionName']=_0x50e197,this['on']('select',(_0x4265cd,_0x38965f)=>{this['fire']('revisionSelected',_0x38965f);}),this['on']('setName',(_0x1ddd59,_0x295ee6)=>{this['fire']('revisionSetName',_0x295ee6);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x22cfac),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x26bb58['if']('isEnabled','ck-disabled',_0x2686a2=>!_0x2686a2)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xa91e26 of this['_revisions'])this['_addRevision'](_0xa91e26);this['_revisions']['on']('add',(_0x926fb7,_0x562637)=>{this['_addRevision'](_0x562637);}),this['_revisions']['on']('remove',(_0xb787df,_0x14245b)=>{this['_removeRevision'](_0x14245b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3fe4ff=>_0x3fe4ff['revisionViews']['map'](_0x362296=>_0x362296))['flat']();}['selectRevision'](_0x115ade){for(const _0xba29ec of this['revisionViews'])_0x115ade&&_0x115ade['id']===_0xba29ec['id']?_0xba29ec['select']():_0xba29ec['deselect']();}['highlightRevisions'](_0xb398ed){for(const _0x2361b9 of this['revisionViews'])_0xb398ed['some'](({id:_0x9f9def})=>_0x9f9def===_0x2361b9['id'])?_0x2361b9['highlight']():_0x2361b9['unhighlight']();}['_addRevision'](_0x24a6dc){const _0x215bcd=ai(_0x24a6dc['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1a7a38=this['timePeriodViews']['get'](0x0);_0x1a7a38&&_0x1a7a38['startDate']['getTime']()===_0x215bcd['getTime']()||(_0x1a7a38=new di(this['locale'],_0x215bcd,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1a7a38)),_0x1a7a38['addRevision'](_0x24a6dc);}['_removeRevision'](_0x438ac0){const _0x58b6c1=ai(_0x438ac0['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x58b6c1)['removeRevision'](_0x438ac0);}['_getTimePeriodViewByStartDate'](_0x12e29d){return this['timePeriodViews']['find'](_0x5dc3d4=>_0x5dc3d4['startDate']['getTime']()===_0x12e29d['getTime']());}}class d extends _0x4af0c1{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
28
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- _t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x213ce3){super(_0x213ce3),this['_revisionViewer']=_0x213ce3['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x510fe6=this['_revisionsRepository']['_revisions'],_0x214ba6=this['_createRevisionActions'](),_0x2aa9e5=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x510fe6,_0x214ba6,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x438327,_0x173466)=>{_0x173466['revisionViews']['on']('add',(_0xf3374a,_0x105fd4)=>{_0x105fd4['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x2aa9e5['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x5d1810=this['_revisionsRepository']['getRevision'](0x0);if(_0x5d1810){const _0x2b5f7e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5d1810['id']);this['_revisionViewer']['compare'](_0x5d1810,_0x2b5f7e);}}['_handleRevisionSelected'](_0x1225f4,_0x77e917){const _0x564b30=this['_revisionsRepository']['getRevision'](_0x77e917['id']),_0x5f5c3b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x564b30['id']);this['_revisionViewer']['compare'](_0x564b30,_0x5f5c3b);}['_handleRevisionSetName'](_0xbf7a7a,_0x4623ca){this['_revisionsRepository']['getRevision'](_0x4623ca['id'])['setName'](_0x4623ca['name']);}['_handleDiffChange'](_0x921d3,_0x4c9097,_0x20a890){const _0x3b8655=this['_revisionsRepository']['getRevisionsInDiff'](_0x20a890);_0x3b8655['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3b8655),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3b8655[0x0]));}['_createRevisionActions'](){const _0x5548f6=this['editor'],_0x35e77f=d['availableRevisionActions'],_0x312bca=_0x5548f6['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x312bca['length'])return _0x312bca['map'](_0x33b459=>{const _0x4c4c04='string'==typeof _0x33b459?Object['assign']({},_0x35e77f[_0x33b459]):_0x33b459;return _0x4c4c04['action']=_0x4c4c04['action']['bind'](this,_0x5548f6),_0x4c4c04['isVisible']&&(_0x4c4c04['isVisible']=_0x4c4c04['isVisible']['bind'](this,_0x5548f6)),_0x4c4c04;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5568c4},_0x4351cd)=>{const _0x2a7112=_0x5568c4['get'](m),_0x43f662=_0x2a7112['repository'];let _0x3e2a8f=_0x2a7112['diff']['newRevisionId'],_0x252982=_0x4351cd['id'];_0x43f662['getIndex'](_0x3e2a8f)>_0x43f662['getIndex'](_0x252982)&&([_0x3e2a8f,_0x252982]=[_0x252982,_0x3e2a8f]),_0x2a7112['compare'](_0x3e2a8f,_0x252982);},'isVisible':({plugins:_0x5a7343},_0x342af2)=>{const _0x596d8f=_0x5a7343['get'](m);return!(_0x596d8f['repository']['getRevisionsInDiff'](_0x596d8f['diff'])['length']>0x2)&&!_0x342af2['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xc7b1c3,{id:_0x4fe329})=>{_0xc7b1c3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4fe329);},'isVisible':({plugins:_0x460e1c},_0x42d69d)=>!!_0x460e1c['get'](m)['repository']['getLaterVisibleRevision'](_0x42d69d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xe6e004},{id:_0x4bc65e,revisionNameView:_0x5749e7})=>{const _0x347529=_0xe6e004['get'](m),_0x4d5a07=_0x347529['repository']['getEarlierVisibleRevision'](_0x4bc65e);_0x347529['compare'](_0x4bc65e,_0x4d5a07),_0x5749e7['focus'](),_0x5749e7['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x210b8f,_0x214dbc){super(_0x210b8f),this['_view']=_0x214dbc,this['_toolbarConfig']=et(_0x210b8f['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x4aff5b){const _0x1acd9b=this['editor'],_0x9ac01f=this['view'],_0x362f85=_0x1acd9b['editing']['view'],_0x173473=_0x9ac01f['editable'],_0x3d90eb=_0x362f85['document']['getRoot']();_0x173473['name']=_0x3d90eb['rootName'],_0x9ac01f['render']();const _0x4fa16b=_0x173473['element'];this['setEditableElement'](_0x173473['name'],_0x4fa16b),_0x9ac01f['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x362f85['attachDomRoot'](_0x4fa16b),this['_elementReplacer']['replace'](_0x4aff5b,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x5193ab=this['view'],_0x425f10=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x425f10['detachDomRoot'](_0x5193ab['editable']['name']),_0x5193ab['destroy']();}['_initToolbar'](){const _0x2771d8=this['view'];_0x2771d8['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2771d8['stickyPanel']['limiterElement']=_0x2771d8['element'],_0x2771d8['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x484bd6})=>_0x484bd6),_0x2771d8['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2771d8['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x19e9f8,_0x467baa,_0x3c6b4c={}){super(_0x19e9f8),this['stickyPanel']=new ht(_0x19e9f8),this['toolbar']=new dt(_0x19e9f8,{'shouldGroupWhenFull':_0x3c6b4c['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x19e9f8,_0x467baa);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- _0x403254(_0x248a5d){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x28cf0d,_0x13f2e6){super(_0x13f2e6),this['sourceElement']=_0x28cf0d,this['model']['document']['createRoot']();const _0x26f621=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x26f621);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3983aa,_0x239633){const _0x5d6ec5=new this(_0x3983aa,_0x239633);return await _0x5d6ec5['initPlugins'](),await _0x5d6ec5['ui']['init'](_0x3983aa),await _0x5d6ec5['data']['init'](_0x5d6ec5['config']['get']('initialData')||''),_0x5d6ec5['fire']('ready'),_0x5d6ec5;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x45a363{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ab0f4){function _0x54b052(_0x37d632){return _0x37d632['map'](_0x594133=>String['fromCharCode'](_0x594133))['join']('');}super(_0x2ab0f4),this['result']='end',_0x2ab0f4[_0x54b052([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54b052([0x76,0x69,0x65,0x77])][_0x54b052([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54b052([0x61,0x75,0x74,0x6f]),_0x2ab0f4[_0x54b052([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x54b052([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54b052([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x54b052([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x54b052([0x6f,0x6b])});}}class k extends _0x45a363{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x3ffb1e){if(super(_0x3ffb1e),!this['editor']['config']['get']('revisionHistory'))throw new _0xcd1451('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x52461e=>this['_showRevisionViewer']({..._0x52461e,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2a7005=>this['_closeRevisionViewer'](_0x2a7005)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x599222=>this['_restoreRevision'](_0x599222)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x304cd0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x304cd0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x467978){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x467978);}['getRevision'](_0x1d11a5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1d11a5);}['getRevisions'](_0x16ba2a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x16ba2a||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3179a2=this['editor'],_0x4c0f36=_0x14ce47(_0x3179a2,p),_0x3fb679=_0x3179a2['plugins']['get']('RevisionTracker'),_0x2d5784=_0x3179a2['plugins']['get']('Users')['users'];return _0x4c0f36['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4c0f36['lazyRoots'],(_0x4c0f36['plugins']['push'](yt,m,R,class extends _0x45a363{static get['requires'](){return[m,'Users'];}['init'](){const _0xea8364=this['editor']['plugins']['get']('Users');for(const _0x5126a6 of _0x2d5784)_0x5126a6['isAnonymous']||_0xea8364['getUser'](_0x5126a6['id'])||_0xea8364['addUser'](_0x5126a6);const _0x113635=_0x3fb679['repository']['getRevisions']();let _0x89c7a5=null;const _0x35688a=this['editor']['plugins']['get']('RevisionViewer');_0x35688a['adapter']=_0x3fb679['adapter'],_0x35688a['bind']('isEnabled')['to'](_0x3fb679),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3179a2,'isReadOnly',_0x290cd0=>!_0x290cd0);for(const _0x4eb2db of _0x113635){const _0x221308=null===_0x4eb2db['creator'];if(_0x221308&&_0x4eb2db['toVersion']===_0x4eb2db['fromVersion'])continue;const _0x196bb1=_0x4eb2db['toJSON']();_0x35688a['addRevisionData'](_0x196bb1,(_0x2f91ea,_0x3b63d9,_0x4f93ad)=>{if(_0x221308){if(_0x89c7a5)_0x89c7a5['_update'](_0x2f91ea,_0x3b63d9);else{if(!_0x3b63d9){const _0x276c8a=_0x4f93ad['toJSON']();_0x276c8a['id']=_0x2bb22c(),_0x3fb679['saveRevision'](_0x276c8a,_0x4f93ad['toVersion'])['then'](_0x4cb376=>{_0x89c7a5=_0x4cb376;});}}}else _0x4eb2db['_update'](_0x2f91ea,_0x3b63d9);});}}},d),_0x4c0f36);}['_enhanceShowRevisionViewerCallback'](){const _0x22d7d6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2425cc=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5628bc=this['editor']['plugins']['get']('Autosave');await _0x5628bc['save']();}else await _0x2425cc['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x55515e=this['editor']['plugins']['get']('Dialog');_0x55515e['isOpen']&&_0x55515e['hide']();}const _0x16881e=this['_getRevisionViewerEditorConfig']();return _0x22d7d6(_0x16881e)['then'](_0x1a619a=>{return(this['_viewerEditor']=_0x1a619a,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x1a619a);})['catch'](_0x59ade2=>(console['error'](_0x59ade2),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x368aec=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x368aec(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x39c172=this['editor']['plugins']['get']('Annotations');_0x39c172['refreshVisibility'](),_0x39c172['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1e07a5){const _0xc8fc5e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2917bd=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x16b5f5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x16b5f5,_0x1e07a5)['then'](_0x4421b6=>(_0x2917bd['style']['display']='block',_0xc8fc5e['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x4421b6));}['_closeRevisionViewer'](_0x1d932d){const _0x2cecb9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2cecb9['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1d932d['destroy']();}async['_restoreRevision'](_0x55eac2){const _0x506884=this['editor'],_0x4ab2c3=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x321cb8=_0x506884['plugins']['get']('RevisionTracker'),_0x2ce510=_0x506884['plugins']['get']('RevisionHistoryUtils'),_0xc48821=_0x4ab2c3['repository']['getRevision'](_0x55eac2);let _0x38c0d8,_0x5a4b11,_0x24eae2;try{await _0x2ce510['loadRevisionData'](_0xc48821,this['adapter']),_0x38c0d8=_0x2ce510['getRevisionDocumentData'](_0xc48821),_0x5a4b11=_0x2ce510['getRevisionRootsAttributes'](_0xc48821);}catch(_0x115070){return void console['error'](_0x115070);}_0x506884['model']['change'](_0x164fb3=>{for(const _0x4f5301 of Array['from'](_0x506884['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x164fb3['removeMarker'](_0x4f5301);}),_0x4ab2c3['isReady']=!0x1,_0x506884['model']['enqueueChange'](_0x5ece47=>{_0x5ece47['setSelection'](null),_0x5ece47['removeSelectionAttribute'](_0x506884['model']['document']['selection']['getAttributeKeys']());const _0x45941e=Object['keys'](_0x38c0d8);for(const _0x3bfca6 of _0x506884['model']['document']['roots'])'$graveyard'!=_0x3bfca6['rootName']&&_0x3bfca6['isAttached']()&&!_0x45941e['includes'](_0x3bfca6['rootName'])&&_0x5ece47['detachRoot'](_0x3bfca6);for(const _0x2cff0f of _0x45941e){let _0x4146e3=_0x506884['model']['document']['getRoot'](_0x2cff0f);_0x4146e3&&_0x4146e3['isAttached']()||(_0x4146e3=_0x5ece47['addRoot'](_0x2cff0f));const _0x3469d0=_0x5a4b11[_0x2cff0f],_0x2a9298=Object['keys'](_0x3469d0),_0xf90975=_0x38c0d8[_0x2cff0f];for(const _0x472108 of _0x4146e3['getAttributeKeys']())_0x2a9298['includes'](_0x472108)||_0x5ece47['removeAttribute'](_0x472108,_0x4146e3);for(const _0x30a37e of _0x2a9298)_0x5ece47['setAttribute'](_0x30a37e,_0x5a4b11[_0x2cff0f][_0x30a37e],_0x4146e3);_0x5ece47['remove'](_0x5ece47['createRangeIn'](_0x4146e3)),_0x5ece47['insert'](_0x506884['data']['parse'](_0xf90975,_0x4146e3),_0x4146e3,0x0);}});const _0x295514=g(_0x506884['locale'],'Restored');if(_0xc48821['name'])_0x24eae2=-0x1==_0xc48821['name']['indexOf'](_0x295514)?_0x295514+':\x20'+_0xc48821['name']:_0xc48821['name'];else _0x24eae2=_0x295514+':\x20'+(_0xc48821['createdAt']['toLocaleDateString'](_0x506884['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xc48821['createdAt']['toLocaleTimeString'](_0x506884['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x321cb8['saveRevision']({'name':_0x24eae2}),_0x4ab2c3['isReady']=!0x0,_0x506884['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
29
+ pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x345190){super(_0x345190),this['_revisionViewer']=_0x345190['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4b195e=this['_revisionsRepository']['_revisions'],_0x4b8d85=this['_createRevisionActions'](),_0x1ec48c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x4b195e,_0x4b8d85,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x20fbfa,_0x533f59)=>{_0x533f59['revisionViews']['on']('add',(_0xa0641a,_0x38a522)=>{_0x38a522['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x1ec48c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x41294f=this['_revisionsRepository']['getRevision'](0x0);if(_0x41294f){const _0x1c61dc=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x41294f['id']);this['_revisionViewer']['compare'](_0x41294f,_0x1c61dc);}}['_handleRevisionSelected'](_0x4e9130,_0x1a45c7){const _0x43b51b=this['_revisionsRepository']['getRevision'](_0x1a45c7['id']),_0x5e7391=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x43b51b['id']);this['_revisionViewer']['compare'](_0x43b51b,_0x5e7391);}['_handleRevisionSetName'](_0x12da7c,_0x3135b2){this['_revisionsRepository']['getRevision'](_0x3135b2['id'])['setName'](_0x3135b2['name']);}['_handleDiffChange'](_0x2334c5,_0xb99b21,_0x31b931){const _0x206fa6=this['_revisionsRepository']['getRevisionsInDiff'](_0x31b931);_0x206fa6['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x206fa6),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x206fa6[0x0]));}['_createRevisionActions'](){const _0x146d78=this['editor'],_0x2809ad=d['availableRevisionActions'],_0x26c91a=_0x146d78['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x26c91a['length'])return _0x26c91a['map'](_0x38ce61=>{const _0x5bd32f='string'==typeof _0x38ce61?Object['assign']({},_0x2809ad[_0x38ce61]):_0x38ce61;return _0x5bd32f['action']=_0x5bd32f['action']['bind'](this,_0x146d78),_0x5bd32f['isVisible']&&(_0x5bd32f['isVisible']=_0x5bd32f['isVisible']['bind'](this,_0x146d78)),_0x5bd32f;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2b30a5},_0x4b9ac6)=>{const _0x4e5b8f=_0x2b30a5['get'](m),_0x42f49e=_0x4e5b8f['repository'];let _0x336822=_0x4e5b8f['diff']['newRevisionId'],_0x174d75=_0x4b9ac6['id'];_0x42f49e['getIndex'](_0x336822)>_0x42f49e['getIndex'](_0x174d75)&&([_0x336822,_0x174d75]=[_0x174d75,_0x336822]),_0x4e5b8f['compare'](_0x336822,_0x174d75);},'isVisible':({plugins:_0x2a7aa7},_0xa7bb2)=>{const _0x4e468f=_0x2a7aa7['get'](m);return!(_0x4e468f['repository']['getRevisionsInDiff'](_0x4e468f['diff'])['length']>0x2)&&!_0xa7bb2['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5fac62,{id:_0x112960})=>{_0x5fac62['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x112960);},'isVisible':({plugins:_0x19bb17},_0x4ba174)=>!!_0x19bb17['get'](m)['repository']['getLaterVisibleRevision'](_0x4ba174['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4e9a08},{id:_0x1aa826,revisionNameView:_0x28f6a7})=>{const _0x163724=_0x4e9a08['get'](m),_0x29398e=_0x163724['repository']['getEarlierVisibleRevision'](_0x1aa826);_0x163724['compare'](_0x1aa826,_0x29398e),_0x28f6a7['focus'](),_0x28f6a7['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xb2ffa5,_0x2f9f83){super(_0xb2ffa5),this['_view']=_0x2f9f83,this['_toolbarConfig']=et(_0xb2ffa5['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x4d6458){const _0x29236c=this['editor'],_0x20cfd6=this['view'],_0x81514e=_0x29236c['editing']['view'],_0x5f0dbc=_0x20cfd6['editable'],_0x34c3d8=_0x81514e['document']['getRoot']();_0x5f0dbc['name']=_0x34c3d8['rootName'],_0x20cfd6['render']();const _0x15bc98=_0x5f0dbc['element'];this['setEditableElement'](_0x5f0dbc['name'],_0x15bc98),_0x20cfd6['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x81514e['attachDomRoot'](_0x15bc98),this['_elementReplacer']['replace'](_0x4d6458,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x814cff=this['view'],_0x3a8f98=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3a8f98['detachDomRoot'](_0x814cff['editable']['name']),_0x814cff['destroy']();}['_initToolbar'](){const _0xa00bae=this['view'];_0xa00bae['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xa00bae['stickyPanel']['limiterElement']=_0xa00bae['element'],_0xa00bae['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5d2064})=>_0x5d2064),_0xa00bae['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xa00bae['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x29722,_0x5aa344,_0x3f8cd8={}){super(_0x29722),this['stickyPanel']=new ht(_0x29722),this['toolbar']=new dt(_0x29722,{'shouldGroupWhenFull':_0x3f8cd8['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x29722,_0x5aa344);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
30
+ _0x557801(_0x39acb8){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xb8414f,_0x33a912){super(_0x33a912),this['sourceElement']=_0xb8414f,this['model']['document']['createRoot']();const _0x2b29e3=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x2b29e3);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1b2dda,_0x3248a7){const _0x17f85f=new this(_0x1b2dda,_0x3248a7);return await _0x17f85f['initPlugins'](),await _0x17f85f['ui']['init'](_0x1b2dda),await _0x17f85f['data']['init'](_0x17f85f['config']['get']('initialData')||''),_0x17f85f['fire']('ready'),_0x17f85f;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x4af0c1{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3715c0){function _0x5de2dd(_0x597d09){return _0x597d09['map'](_0x38bd7b=>String['fromCharCode'](_0x38bd7b))['join']('');}super(_0x3715c0),this['result']='end',_0x3715c0[_0x5de2dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5de2dd([0x76,0x69,0x65,0x77])][_0x5de2dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5de2dd([0x61,0x75,0x74,0x6f]),_0x3715c0[_0x5de2dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5de2dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5de2dd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5de2dd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5de2dd([0x6f,0x6b])});}}class k extends _0x4af0c1{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x7e5090){if(super(_0x7e5090),!this['editor']['config']['get']('revisionHistory'))throw new _0x1ddba0('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x500640=>this['_showRevisionViewer']({..._0x500640,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x485652=>this['_closeRevisionViewer'](_0x485652)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1b33cf=>this['_restoreRevision'](_0x1b33cf)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x49e665){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x49e665;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x298cef){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x298cef);}['getRevision'](_0x19c1f6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x19c1f6);}['getRevisions'](_0x4dc175){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4dc175||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1d4a5b=this['editor'],_0x5a3594=_0x55ed1f(_0x1d4a5b,p),_0x41866b=_0x1d4a5b['plugins']['get']('RevisionTracker'),_0x499893=_0x1d4a5b['plugins']['get']('Users')['users'];return _0x5a3594['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5a3594['lazyRoots'],(_0x5a3594['plugins']['push'](_t,m,R,class extends _0x4af0c1{static get['requires'](){return[m,'Users'];}['init'](){const _0x35dd67=this['editor']['plugins']['get']('Users');for(const _0x4605a6 of _0x499893)_0x4605a6['isAnonymous']||_0x35dd67['getUser'](_0x4605a6['id'])||_0x35dd67['addUser'](_0x4605a6);const _0x1574a8=_0x41866b['repository']['getRevisions']();let _0x8ab097=null;const _0x4b9b3d=this['editor']['plugins']['get']('RevisionViewer');_0x4b9b3d['adapter']=_0x41866b['adapter'],_0x4b9b3d['bind']('isEnabled')['to'](_0x41866b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1d4a5b,'isReadOnly',_0x35481f=>!_0x35481f);for(const _0x3ef12e of _0x1574a8){const _0x51c6f0=null===_0x3ef12e['creator'];if(_0x51c6f0&&_0x3ef12e['toVersion']===_0x3ef12e['fromVersion'])continue;const _0x22bedf=_0x3ef12e['toJSON']();_0x4b9b3d['addRevisionData'](_0x22bedf,(_0x1a9910,_0x20a933,_0xdb7eba)=>{if(_0x51c6f0){if(_0x8ab097)_0x8ab097['_update'](_0x1a9910,_0x20a933);else{if(!_0x20a933){const _0x26a0b9=_0xdb7eba['toJSON']();_0x26a0b9['id']=_0x235c9b(),_0x41866b['saveRevision'](_0x26a0b9,_0xdb7eba['toVersion'])['then'](_0x227c9e=>{_0x8ab097=_0x227c9e;});}}}else _0x3ef12e['_update'](_0x1a9910,_0x20a933);});}}},d),_0x5a3594);}['_enhanceShowRevisionViewerCallback'](){const _0x4d6a51=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3f1fbc=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5a3dac=this['editor']['plugins']['get']('Autosave');await _0x5a3dac['save']();}else await _0x3f1fbc['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x31bc96=this['editor']['plugins']['get']('Dialog');_0x31bc96['isOpen']&&_0x31bc96['hide']();}const _0x1742fe=this['_getRevisionViewerEditorConfig']();return _0x4d6a51(_0x1742fe)['then'](_0x46337f=>{return(this['_viewerEditor']=_0x46337f,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x46337f);})['catch'](_0x3f9e10=>(console['error'](_0x3f9e10),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x131051=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x131051(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1e00ec=this['editor']['plugins']['get']('Annotations');_0x1e00ec['refreshVisibility'](),_0x1e00ec['refreshPositioning']();}})));}['_showRevisionViewer'](_0xe3c7c8){const _0x2f6d80=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1474dd=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x265eae=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x265eae,_0xe3c7c8)['then'](_0x59d379=>(_0x1474dd['style']['display']='block',_0x2f6d80['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x59d379));}['_closeRevisionViewer'](_0x1d9156){const _0x2b14fb=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2b14fb['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1d9156['destroy']();}async['_restoreRevision'](_0x3b32e3){const _0x104e84=this['editor'],_0x122082=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x165344=_0x104e84['plugins']['get']('RevisionTracker'),_0xe6d6a6=_0x104e84['plugins']['get']('RevisionHistoryUtils'),_0x47ac8f=_0x122082['repository']['getRevision'](_0x3b32e3);let _0x1289ad,_0x64f3b3,_0x4295a2;try{await _0xe6d6a6['loadRevisionData'](_0x47ac8f,this['adapter']),_0x1289ad=_0xe6d6a6['getRevisionDocumentData'](_0x47ac8f),_0x64f3b3=_0xe6d6a6['getRevisionRootsAttributes'](_0x47ac8f);}catch(_0x2937cf){return void console['error'](_0x2937cf);}_0x104e84['model']['change'](_0x23d46b=>{for(const _0x366662 of Array['from'](_0x104e84['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x23d46b['removeMarker'](_0x366662);}),_0x122082['isReady']=!0x1,_0x104e84['model']['enqueueChange'](_0x533b62=>{_0x533b62['setSelection'](null),_0x533b62['removeSelectionAttribute'](_0x104e84['model']['document']['selection']['getAttributeKeys']());const _0x43817c=Object['keys'](_0x1289ad);for(const _0x5b970b of _0x104e84['model']['document']['roots'])'$graveyard'!=_0x5b970b['rootName']&&_0x5b970b['isAttached']()&&!_0x43817c['includes'](_0x5b970b['rootName'])&&_0x533b62['detachRoot'](_0x5b970b);for(const _0x3cf6e8 of _0x43817c){let _0x590afd=_0x104e84['model']['document']['getRoot'](_0x3cf6e8);_0x590afd&&_0x590afd['isAttached']()||(_0x590afd=_0x533b62['addRoot'](_0x3cf6e8));const _0x295a4a=_0x64f3b3[_0x3cf6e8],_0x3bd0f6=Object['keys'](_0x295a4a),_0xc4b27b=_0x1289ad[_0x3cf6e8];for(const _0x1b03d3 of _0x590afd['getAttributeKeys']())_0x3bd0f6['includes'](_0x1b03d3)||_0x533b62['removeAttribute'](_0x1b03d3,_0x590afd);for(const _0x3e865c of _0x3bd0f6)_0x533b62['setAttribute'](_0x3e865c,_0x64f3b3[_0x3cf6e8][_0x3e865c],_0x590afd);_0x533b62['remove'](_0x533b62['createRangeIn'](_0x590afd)),_0x533b62['insert'](_0x104e84['data']['parse'](_0xc4b27b,_0x590afd),_0x590afd,0x0);}});const _0x4e6782=g(_0x104e84['locale'],'Restored');if(_0x47ac8f['name'])_0x4295a2=-0x1==_0x47ac8f['name']['indexOf'](_0x4e6782)?_0x4e6782+':\x20'+_0x47ac8f['name']:_0x47ac8f['name'];else _0x4295a2=_0x4e6782+':\x20'+(_0x47ac8f['createdAt']['toLocaleDateString'](_0x104e84['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x47ac8f['createdAt']['toLocaleTimeString'](_0x104e84['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x165344['saveRevision']({'name':_0x4295a2}),_0x122082['isReady']=!0x0,_0x104e84['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};