@ckeditor/ckeditor5-revision-history 44.2.0-alpha.2 → 44.2.0-alpha.3

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 (177) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index.js +6 -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/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +10 -10
  148. package/src/changeitem.js +2 -2
  149. package/src/editor/revisionviewereditor.js +2 -2
  150. package/src/editor/revisionviewereditorui.js +1 -1
  151. package/src/editor/revisionviewereditoruiview.js +1 -1
  152. package/src/index.js +1 -1
  153. package/src/revision.js +2 -2
  154. package/src/revisiondiff.js +1 -1
  155. package/src/revisionhistory.js +1 -1
  156. package/src/revisionsrepository.js +1 -1
  157. package/src/revisiontracker.js +1 -1
  158. package/src/revisionviewer.js +1 -1
  159. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  160. package/src/ui/revision/revisionauthorview.js +1 -1
  161. package/src/ui/revision/revisionnameview.js +1 -1
  162. package/src/ui/revision/revisionview.js +2 -2
  163. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  164. package/src/ui/revision/subrevisionview.js +1 -1
  165. package/src/ui/revision/utils.js +1 -1
  166. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  167. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  168. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  169. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  170. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  172. package/src/ui/revisionssidebar/utils.js +1 -1
  173. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  174. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  175. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  176. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  177. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x1e477d,uid as _0x52c6ae,Collection as _0x2bc3bf,logWarning as _0x3561cb,FocusTracker as _0x359bba,KeystrokeHandler as _0x2038c2,scrollViewportToShowTarget as _0x544232,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x5b799a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3b3b51,set as _0x3de732,unset as _0x1623fc,isEqual as _0x5e884b}from'lodash-es';import{Plugin as _0x42ee13,PendingActions as _0x4bb4bd,icons as _0x31e520,Command as _0x3965df,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4d312d,getMarkerDomElement as _0x4b7bb6,ConfirmMixin as _0x14c5ca,sanitizeEditorConfig as _0x1f563c}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x57b9f6,ViewText as _0x45ae04,ViewElement as _0x209a3b,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x3929f9,ViewAttributeElement as _0x401b00,ViewEmptyElement as _0x4ac6ec,ViewRawElement as _0x3f5a37,ViewUIElement as _0x479bf9,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x4bdeaa,injectCssTransitionDisabler as ts,submitHandler as _0x5cd799,LabeledFieldView as nt,createLabeledInputText as _0x5c9f1a,createDropdown as _0x4d0653,ListView as te,ListItemView as _0x308672,ButtonView as _0x1f53e8,MenuBarMenuView as _0x295491,MenuBarMenuListView as _0x1cc139,MenuBarMenuListItemView as _0x4d68c0,MenuBarMenuListItemButtonView as _0x5d31e9,ContextualBalloon as _0x5ed560,ToolbarSeparatorView as _0x52b6aa,IconView as _0x4e1114,addListToDropdown as _0xd22976,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x40a5c4}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x1e477d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x180253){super(),this['id']=_0x180253['id']||_0x52c6ae(),this['creator']=_0x180253['creator']||null,this['authors']=_0x180253['authors']||[],this['diffData']=_0x180253['diffData']||null,this['toVersion']=_0x180253['toVersion']||0x0,this['fromVersion']=_0x180253['fromVersion']||0x0,this['set']('name',_0x180253['name']||''),this['set']('createdAt',_0x180253['createdAt']||new Date()),this['set']('attributes',_0x180253['attributes']||{});}['setName'](_0x41945f){this['_update']({'name':_0x41945f});}['setAttribute'](_0x3751c5,_0x1b1153){const _0x5417f4=_0x3b3b51(this['attributes']);_0x3de732(_0x5417f4,_0x3751c5,_0x1b1153),this['_update']({'attributes':_0x5417f4});}['removeAttribute'](_0x5bf389){const _0x46ade0=_0x3b3b51(this['attributes']);_0x1623fc(_0x46ade0,_0x5bf389),this['_update']({'attributes':_0x46ade0});}['_update'](_0x453eeb,_0x2f0712=!0x1){let _0x11d18e=!0x1;const _0x2f12f0={'id':this['id']},_0xe2be9e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x95603d of _0xe2be9e){const _0x291cfe=_0x453eeb[_0x95603d];void 0x0!==_0x291cfe&&_0x291cfe!==this[_0x95603d]&&(this[_0x95603d]=_0x291cfe,_0x2f12f0[_0x95603d]=_0x291cfe,_0x11d18e=!0x0);}_0x11d18e&&(_0x2f12f0['authors']&&(_0x2f12f0['authorsIds']=_0x2f12f0['authors']['map'](_0xe1d661=>_0xe1d661['id']),delete _0x2f12f0['authors']),this['fire']('_update',_0x2f12f0,_0x2f0712));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2c6f81=>_0x2c6f81['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x42ee13{['_revisions'];static get['requires'](){return[_0x4d312d];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x36bbc6){super(_0x36bbc6),this['_revisions']=new _0x2bc3bf();}['afterInit'](){!async function(_0x309b9e){const _0x1b8b79=_0x34f0da([0x4b,0x66,0x4c,0x65,0x4e,0x76,0x51,0x57,0x70,0x49,0x38,0x6c,0x41,0x64,0x6b,0x6e,0x44,0x73,0x52,0x47,0x39,0x78,0x37,0x53,0x4f,0x68,0x61,0x62,0x32,0x46,0x69,0x33,0x50,0x6f,0x54,0x6a,0x72,0x6d,0x55,0x35,0x56,0x48,0x45,0x79,0x34,0x67,0x59,0x31,0x4d,0x77,0x71,0x42,0x63,0x7a,0x4a,0x43,0x36,0x5a,0x58,0x30,0x74,0x75]),_0x20d027=0xeb829,_0x379ecd=0x68849e4c,_0x551923=0x6883c05c^_0x379ecd,_0x242027=window[_0x34f0da([0x44,0x61,0x74,0x65])][_0x34f0da([0x6e,0x6f,0x77])](),_0x2e1dff=_0x309b9e[_0x34f0da([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a11ed=new window[(_0x34f0da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52bbc2=>{_0x2e1dff[_0x34f0da([0x6f,0x6e,0x63,0x65])](_0x34f0da([0x72,0x65,0x61,0x64,0x79]),_0x52bbc2);}),_0x18c9f={[_0x34f0da([0x6b,0x74,0x79])]:_0x34f0da([0x45,0x43]),[_0x34f0da([0x75,0x73,0x65])]:_0x34f0da([0x73,0x69,0x67]),[_0x34f0da([0x63,0x72,0x76])]:_0x34f0da([0x50,0x2d,0x32,0x35,0x36]),[_0x34f0da([0x78])]:_0x34f0da([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]),[_0x34f0da([0x79])]:_0x34f0da([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]),[_0x34f0da([0x61,0x6c,0x67])]:_0x34f0da([0x45,0x53,0x32,0x35,0x36])},_0x4de7b1=_0x2e1dff[_0x34f0da([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x34f0da([0x67,0x65,0x74])](_0x34f0da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x27e0b9(){let _0x7f8dc8,_0x25839f=null,_0x13c236=null;try{if(_0x4de7b1==_0x34f0da([0x47,0x50,0x4c]))return _0x34f0da([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7f8dc8=_0x58f138(),!_0x7f8dc8)return _0x34f0da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7f8dc8[_0x34f0da([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x13c236=_0xd38ace(_0x7f8dc8[_0x34f0da([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7f8dc8[_0x34f0da([0x6a,0x74,0x69])])),await _0x3dba9f()?_0x56166()?_0x47d3d7()?_0x34f0da([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x284f58()?(_0x7f8dc8[_0x34f0da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34f0da([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x25839f=_0x45eee3(_0x34f0da([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x7f8dc8[_0x34f0da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34f0da([0x74,0x72,0x69,0x61,0x6c])&&(_0x25839f=_0x45eee3(_0x34f0da([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x167d23()):_0x34f0da([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x34f0da([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x34f0da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x460253){return _0x34f0da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47d3d7(){const _0x3ae053=[_0x34f0da([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x34f0da([0x74,0x72,0x69,0x61,0x6c])][_0x34f0da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7f8dc8[_0x34f0da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x242027/0x3e8:0xe10*_0x551923;return _0x7f8dc8[_0x34f0da([0x65,0x78,0x70])]<_0x3ae053;}function _0x56166(){const _0x3240be=_0x7f8dc8[_0x34f0da([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3240be)return!0x1;if(_0x3240be[_0x34f0da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34f0da([0x2a])))return!0x0;if(_0x3240be[_0x34f0da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34f0da([0x52,0x48])))return!0x0;if(_0x3240be[_0x34f0da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34f0da([0x52,0x52,0x48]))){if(_0x5a8703())return!0x0;if(_0x1a705b()||_0x6bd630())return!0x0;}return!0x1;}function _0x284f58(){const _0x1bc5bc=_0x7f8dc8[_0x34f0da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1bc5bc||0x0==_0x1bc5bc[_0x34f0da([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5d803c}=new URL(window[_0x34f0da([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1bc5bc[_0x34f0da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d803c))return!0x0;const _0x1299f4=_0x5d803c[_0x34f0da([0x73,0x70,0x6c,0x69,0x74])](_0x34f0da([0x2e]));return _0x1bc5bc[_0x34f0da([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2862d4=>_0x2862d4[_0x34f0da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34f0da([0x2a])))[_0x34f0da([0x6d,0x61,0x70])](_0x30118e=>_0x30118e[_0x34f0da([0x73,0x70,0x6c,0x69,0x74])](_0x34f0da([0x2e])))[_0x34f0da([0x73,0x6f,0x6d,0x65])](_0x514cce=>_0x1299f4[_0x34f0da([0x65,0x76,0x65,0x72,0x79])]((_0x17ceda,_0x3edd0b)=>_0x514cce[_0x3edd0b]===_0x17ceda||_0x514cce[_0x3edd0b]===_0x34f0da([0x2a])));}function _0x167d23(){return _0x25839f&&_0x13c236?new window[(_0x34f0da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55967a,_0x11a19e)=>{_0x25839f[_0x34f0da([0x74,0x68,0x65,0x6e])](_0x55967a,_0x11a19e),_0x13c236[_0x34f0da([0x74,0x68,0x65,0x6e])](_0x32f3f5=>{_0x32f3f5!=_0x34f0da([0x56,0x61,0x6c,0x69,0x64])&&_0x55967a(_0x32f3f5);},_0x11a19e);}):_0x25839f||_0x13c236||_0x34f0da([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd38ace(_0x3760f9,_0x1d8a53){return new window[(_0x34f0da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56bdd7=>{if(_0x3d8e21())return _0x56bdd7(_0x34f0da([0x56,0x61,0x6c,0x69,0x64]));_0xecc3e(),_0x2e1dff[_0x34f0da([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x34f0da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ed628=!0x1;const _0x40377d=_0x52c6ae();function _0x4f99a0(_0x1d7041){return!!_0x1d7041&&(typeof _0x1d7041===_0x34f0da([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d7041===_0x34f0da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d7041[_0x34f0da([0x74,0x68,0x65,0x6e])]===_0x34f0da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d7041[_0x34f0da([0x63,0x61,0x74,0x63,0x68])]===_0x34f0da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46671c(_0x40c219){_0x5e65a7(_0x40c219)[_0x34f0da([0x74,0x68,0x65,0x6e])](_0x512b98=>{if(!_0x512b98||_0x512b98[_0x34f0da([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x34f0da([0x6f,0x6b]))return _0x34f0da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3eb3fe(_0x3a1eb2(_0x40377d+_0x1d8a53))!=_0x512b98[_0x34f0da([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x34f0da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x34f0da([0x56,0x61,0x6c,0x69,0x64]);})[_0x34f0da([0x74,0x68,0x65,0x6e])](_0x5ddfc0=>(_0x1e13fb(),_0x5ddfc0),()=>{const _0x233f75=_0x1a9534();return null==_0x233f75?(_0x1e13fb(),_0x34f0da([0x56,0x61,0x6c,0x69,0x64])):_0x34f0da(_0x242027-_0x233f75>(0x4c881a4c^_0x379ecd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x34f0da([0x74,0x68,0x65,0x6e])](_0x56bdd7)[_0x34f0da([0x63,0x61,0x74,0x63,0x68])](()=>{_0x56bdd7(_0x34f0da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x522a87=0x68b270cc^_0x379ecd;function _0x1e13fb(){const _0x332384=_0x34f0da([0x6c,0x6c,0x63,0x74,0x2d])+_0x3eb3fe(_0x3a1eb2(_0x3760f9)),_0x5d5ca3=_0x401f6e(_0x3eb3fe(window[_0x34f0da([0x4d,0x61,0x74,0x68])][_0x34f0da([0x63,0x65,0x69,0x6c])](_0x242027/_0x522a87)));window[_0x34f0da([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34f0da([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x332384,_0x5d5ca3);}function _0x1a9534(){const _0x3a5ddd=_0x34f0da([0x6c,0x6c,0x63,0x74,0x2d])+_0x3eb3fe(_0x3a1eb2(_0x3760f9)),_0x66a873=window[_0x34f0da([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34f0da([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a5ddd);return _0x66a873?window[_0x34f0da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x401f6e(_0x66a873),0x10)*_0x522a87:null;}function _0x5e65a7(_0x5b7303){return new window[(_0x34f0da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5301df,_0x34f246)=>{_0x5b7303[_0x34f0da([0x74,0x68,0x65,0x6e])](_0x5301df,_0x34f246),window[_0x34f0da([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34f246,0x68854a8c^_0x379ecd);});}}_0x2e1dff[_0x34f0da([0x6f,0x6e])](_0x34f0da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d9885,_0x9739cf)=>{if(_0x9739cf[0x0]!=_0x3760f9)return _0x56bdd7(_0x34f0da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x9739cf[0x1]={..._0x9739cf[0x1],[_0x34f0da([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40377d};},{[_0x34f0da([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34f0da([0x68,0x69,0x67,0x68])}),_0x2e1dff[_0x34f0da([0x6f,0x6e])](_0x34f0da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x568fcc=>{_0x4f99a0(_0x568fcc[_0x34f0da([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ed628=!0x0,_0x46671c(_0x568fcc[_0x34f0da([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x34f0da([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34f0da([0x6c,0x6f,0x77])}),_0x1a11ed[_0x34f0da([0x74,0x68,0x65,0x6e])](()=>{_0x4ed628||_0x56bdd7(_0x34f0da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d8e21(){return _0x2e1dff[_0x34f0da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34f0da([0x76,0x69,0x65,0x77])][_0x34f0da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x34f0da([0x61,0x75,0x74,0x6f]);}function _0xecc3e(){_0x2e1dff[_0x34f0da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34f0da([0x76,0x69,0x65,0x77])][_0x34f0da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34f0da([0x61,0x75,0x74,0x6f]);}}function _0x45eee3(_0x2a4c3f){const _0x5ecf9f=[new window[(_0x34f0da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22ad35=>setTimeout(_0x22ad35,0x688da080^_0x379ecd)),_0x1a11ed[_0x34f0da([0x74,0x68,0x65,0x6e])](()=>new window[(_0x34f0da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45bce8=>{const _0x5896a8=0x68849e4b^_0x379ecd,_0x41b6d8=_0x309b9e[_0x34f0da([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x288beb(){_0x41b6d8[_0x34f0da([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5896a8&&_0x45bce8();}_0x288beb(),_0x41b6d8[_0x34f0da([0x6f,0x6e])](_0x34f0da([0x61,0x64,0x64]),_0x288beb);})),new window[(_0x34f0da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x296f7c=>{function _0x1fc86f(){for(const _0x1708f7 in window)if(window[_0x34f0da([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x34f0da([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1708f7))&&window[_0x1708f7]==_0x20d027)return _0x296f7c();_0x2e1dff[_0x34f0da([0x73,0x74,0x61,0x74,0x65])]!=_0x34f0da([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x34f0da([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1fc86f,0x68848dc4^_0x379ecd);}_0x1fc970(_0x34f0da([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1fc86f();})];return window[_0x34f0da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34f0da([0x72,0x61,0x63,0x65])](_0x5ecf9f)[_0x34f0da([0x74,0x68,0x65,0x6e])](()=>_0x2a4c3f);}async function _0x3fe198(){if(await _0x1a11ed,_0x1fc970(_0x34f0da([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x12ea25=_0x309b9e[_0x34f0da([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4ce3b1=_0x309b9e[_0x34f0da([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])](_0x12ea25[_0x34f0da([0x69,0x64])]),_0x253aba=_0x51b84c(_0x34f0da([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x253aba[_0x34f0da([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x12ea25['id'],_0x4ce3b1?_0x4ce3b1['id']:null,!0x0),_0x253aba[_0x34f0da([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x34f0da([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x253aba[_0x34f0da([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x253aba[_0x34f0da([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4cab8f,void(_0x253aba[_0x34f0da([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4cab8f);}if(_0x1fc970(_0x34f0da([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5bbbe8=_0x51b84c(_0x34f0da([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5bbbe8[_0x34f0da([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x34f0da([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5bbbe8[_0x34f0da([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5bbbe8[_0x34f0da([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4cab8f,_0x5bbbe8[_0x34f0da([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4cab8f;}_0x2e1dff[_0x34f0da([0x6d,0x6f,0x64,0x65,0x6c])][_0x34f0da([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4cab8f,_0x2e1dff[_0x34f0da([0x6d,0x6f,0x64,0x65,0x6c])][_0x34f0da([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4cab8f,_0x2e1dff[_0x34f0da([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x34f0da([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a8703(){return _0x1fc970(_0x34f0da([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x51b84c(_0x34f0da([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x34f0da([0x73,0x74,0x61,0x74,0x65])]==_0x34f0da([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1a705b(){return _0x1fc970(_0x34f0da([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 _0x6bd630(){return _0x1fc970(_0x34f0da([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x10ebed(_0x220683){const _0x7c277f=_0x26538f();_0x2e1dff[_0x7c277f]=_0x34f0da([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])+_0x220683,_0x220683[_0x34f0da([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x34f0da([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x26538f()]=_0x20d027),_0x220683!=_0x34f0da([0x56,0x61,0x6c,0x69,0x64])&&_0x3fe198();}function _0x26538f(){const _0x4f46a4=window[_0x34f0da([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x34f0da([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x34f0da([0x6e,0x6f,0x77])]())[_0x34f0da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x34f0da([0x2e]),'');let _0x52d92f=_0x34f0da([0x4b]);for(let _0x3c6c5c=0x0;_0x3c6c5c<_0x4f46a4[_0x34f0da([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c6c5c+=0x2){let _0x1a242b=window[_0x34f0da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f46a4[_0x34f0da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c6c5c,_0x3c6c5c+0x2));_0x1a242b>=_0x1b8b79[_0x34f0da([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a242b-=_0x1b8b79[_0x34f0da([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x52d92f+=_0x1b8b79[_0x1a242b];}return _0x52d92f;}function _0x58f138(){const _0x30bdd2=_0x4de7b1[_0x34f0da([0x73,0x70,0x6c,0x69,0x74])](_0x34f0da([0x2e]));if(0x3!=_0x30bdd2[_0x34f0da([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e2b0a(_0x30bdd2[0x1]);function _0x1e2b0a(_0x318316){const _0x4fb123=_0x9829ff(_0x318316);return _0x4fb123&&_0x2d791b()?_0x4fb123:null;function _0x2d791b(){const _0x4852b2=_0x4fb123[_0x34f0da([0x6a,0x74,0x69])],_0x2892f2=window[_0x34f0da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4852b2[_0x34f0da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4852b2[_0x34f0da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e8597={..._0x4fb123,[_0x34f0da([0x6a,0x74,0x69])]:_0x4852b2[_0x34f0da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4852b2[_0x34f0da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e8597[_0x34f0da([0x76,0x63])],_0x3a1eb2(_0x1e8597)==_0x2892f2;}}}async function _0x3dba9f(){let _0x3479d6=!0x0;try{const _0x2c89d9=_0x4de7b1[_0x34f0da([0x73,0x70,0x6c,0x69,0x74])](_0x34f0da([0x2e])),[_0x5d9ba9,_0x46736a,_0x2311dd]=_0x2c89d9;return _0x5d5c84(_0x5d9ba9),await _0x4d6a2c(_0x5d9ba9,_0x46736a,_0x2311dd),_0x3479d6;}catch(_0x156a01){return!0x1;}function _0x5d5c84(_0x147c7e){const _0x44c558=_0x9829ff(_0x147c7e);_0x44c558&&_0x44c558[_0x34f0da([0x61,0x6c,0x67])]==_0x34f0da([0x45,0x53,0x32,0x35,0x36])||(_0x3479d6=!0x1);}async function _0x4d6a2c(_0x22f752,_0x74dd20,_0x3d929e){const _0x394d19=window[_0x34f0da([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x34f0da([0x66,0x72,0x6f,0x6d])](_0x4463d6(_0x3d929e),_0x3b0730=>_0x3b0730[_0x34f0da([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f236f=new window[(_0x34f0da([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x34f0da([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22f752+_0x34f0da([0x2e])+_0x74dd20),_0x138867=window[_0x34f0da([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x34f0da([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x138867)return;const _0x56589b=await _0x138867[_0x34f0da([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x34f0da([0x6a,0x77,0x6b]),_0x18c9f,{[_0x34f0da([0x6e,0x61,0x6d,0x65])]:_0x34f0da([0x45,0x43,0x44,0x53,0x41]),[_0x34f0da([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x34f0da([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x34f0da([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x138867[_0x34f0da([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x34f0da([0x6e,0x61,0x6d,0x65])]:_0x34f0da([0x45,0x43,0x44,0x53,0x41]),[_0x34f0da([0x68,0x61,0x73,0x68])]:{[_0x34f0da([0x6e,0x61,0x6d,0x65])]:_0x34f0da([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x56589b,_0x394d19,_0x2f236f)||(_0x3479d6=!0x1);}}function _0x9829ff(_0x3c5ce4){return _0x3c5ce4[_0x34f0da([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x34f0da([0x65,0x79]))?JSON[_0x34f0da([0x70,0x61,0x72,0x73,0x65])](_0x4463d6(_0x3c5ce4)):null;}function _0x4463d6(_0x56b424){return window[_0x34f0da([0x61,0x74,0x6f,0x62])](_0x56b424[_0x34f0da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x34f0da([0x2b]))[_0x34f0da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x34f0da([0x2f])));}function _0x3a1eb2(_0x41f8ea){let _0x40643c=0x1505;function _0x1f087c(_0x142d47){for(let _0x51f941=0x0;_0x51f941<_0x142d47[_0x34f0da([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51f941++){const _0xc5f194=_0x142d47[_0x34f0da([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x51f941);_0x40643c=(_0x40643c<<0x5)+_0x40643c+_0xc5f194,_0x40643c&=_0x40643c;}}function _0x4728a5(_0x4eafae){Array[_0x34f0da([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4eafae)?_0x4eafae[_0x34f0da([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4728a5):_0x4eafae&&typeof _0x4eafae==_0x34f0da([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x34f0da([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4eafae)[_0x34f0da([0x73,0x6f,0x72,0x74])]()[_0x34f0da([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a4a4c,_0x5b15b0])=>{_0x1f087c(_0x5a4a4c),_0x4728a5(_0x5b15b0);}):_0x1f087c(window[_0x34f0da([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4eafae));}return _0x4728a5(_0x41f8ea),_0x40643c>>>0x0;}function _0x3eb3fe(_0x48b3c9){return _0x48b3c9[_0x34f0da([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x34f0da([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x34f0da([0x30]));}function _0x401f6e(_0x174929){return _0x174929[_0x34f0da([0x73,0x70,0x6c,0x69,0x74])]('')[_0x34f0da([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x34f0da([0x6a,0x6f,0x69,0x6e])]('');}function _0x1fc970(_0x1edc85){return _0x2e1dff[_0x34f0da([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x34f0da([0x68,0x61,0x73])](_0x1edc85);}function _0x51b84c(_0x324733){return _0x2e1dff[_0x34f0da([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x34f0da([0x67,0x65,0x74])](_0x324733);}function _0x4cab8f(){}function _0x34f0da(_0x5b5acd){return _0x5b5acd['map'](_0x18dd9a=>String['fromCharCode'](_0x18dd9a))['join']('');}_0x10ebed(await _0x27e0b9());}(this);}['createRevision'](_0x25a869){const _0x5ed406=this['editor']['plugins']['get']('Users');return new a({'id':_0x25a869['id'],'name':_0x25a869['name'],'creator':_0x25a869['creatorId']?_0x5ed406['getUser'](_0x25a869['creatorId']):null,'diffData':_0x25a869['diffData']||_0x25a869['data'],'authors':_0x25a869['authorsIds']['map'](_0x2b91ed=>_0x5ed406['getUser'](_0x2b91ed)),'createdAt':new Date(_0x25a869['createdAt']),'attributes':_0x25a869['attributes'],'fromVersion':_0x25a869['fromVersion'],'toVersion':_0x25a869['toVersion']});}['addRevision'](_0x465210,_0x33ea23=0x0){this['_revisions']['add'](_0x465210,_0x33ea23);}['getRevision'](_0x3425ca){return this['_revisions']['get'](_0x3425ca);}['getRevisions'](_0x415d1d={'toJSON':!0x1}){const _0x14b350=Array['from'](this['_revisions']);return _0x14b350['reverse'](),_0x415d1d['toJSON']?_0x14b350['map'](_0x440e68=>_0x440e68['toJSON']()):_0x14b350;}['getIndex'](_0x1f93f7){return this['_revisions']['getIndex'](_0x1f93f7);}['getEarlierVisibleRevision'](_0x5d9fcc){const [,_0x4587ee]=this['getRevisionsIterator'](_0x5d9fcc,{'direction':'earlier'});return _0x4587ee;}['getLaterVisibleRevision'](_0x2ef334){const [,_0x59e538]=this['getRevisionsIterator'](_0x2ef334,{'direction':'later'});return _0x59e538;}['getRevisionsInDiff'](_0xf0f2fd){const _0x59ee3e=[];for(const _0x41a740 of this['getRevisionsIterator'](_0xf0f2fd['newRevisionId']))if(_0x59ee3e['push'](_0x41a740),_0x41a740['id']===_0xf0f2fd['oldRevisionId'])break;return _0x59ee3e;}*['getRevisionsIterator'](_0x32f93e,{direction:_0x499e02='earlier',filter:_0x539542=()=>!0x0}={}){const _0x373023='earlier'===_0x499e02?0x1:-0x1;let _0x5a0a5c=this['_revisions']['get'](_0x32f93e),_0x423edb=this['getIndex'](_0x5a0a5c);for(yield _0x5a0a5c;_0x5a0a5c;){if(_0x423edb+=_0x373023,_0x5a0a5c=this['getRevision'](_0x423edb),!_0x5a0a5c)return;_0x539542(_0x5a0a5c)&&(yield _0x5a0a5c);}}}function m(_0x2c8856,_0x512696,_0x120360){const t=_0x2c8856['t'];switch(_0x512696){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'},_0x120360);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x120360);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'';}}const P={'c':_0x3929f9,'a':_0x401b00,'e':_0x4ac6ec,'r':_0x3f5a37,'u':_0x479bf9};class l extends _0x42ee13{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4d312d,j,_0x4bb4bd];}constructor(_0x50827c){super(_0x50827c),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x476d8d=_0x52c6ae();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x476d8d},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['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x31045c=this['repository']['getRevision'](0x0),_0x43b35b=_0x31045c&&null===_0x31045c['creator']?_0x31045c:null;if(this['_continueCurrentRevision']=!!_0x43b35b&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x132a89=this['_source']['getCurrentRevisionId'](),_0x56d29d=this['repository']['getRevision'](_0x132a89);if(_0x56d29d)this['_startingVersion']=_0x56d29d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x317d35=this['_source']['history']['_operations']['find'](_0x1a7fb3=>!_0x1a7fb3['_isInit']),_0x1a3068=_0x317d35?_0x317d35['baseVersion']:this['_source']['history']['version'];_0x31045c?(_0x31045c['toVersion']<_0x1a3068&&_0x31045c['_update']({'toVersion':_0x1a3068}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x43b35b['id'],this['_startingVersion']=_0x43b35b['fromVersion']):(this['_startingVersion']=_0x31045c['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1a3068,this['_continueCurrentRevision']=!0x1);}}else _0x43b35b&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x43b35b['toVersion'],this['editor']['model']['document']['history']['version']),_0x43b35b['fromVersion']===_0x43b35b['toVersion']?(0x0!==_0x43b35b['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x43b35b['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x43b35b['id'],this['_startingVersion']=_0x43b35b['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',_0x3c32c8=>!_0x3c32c8),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x194630=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb17735;for(const _0x3ab59d in _0x194630){const _0x11a85f=_0x3ab59d,_0x5c72ba=_0x194630[_0x11a85f];if('revisionHistoryLicenseKeyValid'==_0x5c72ba||'revisionHistoryLicenseKeyInvalid'==_0x5c72ba||'revisionHistoryLicenseKeyExpired'==_0x5c72ba||'revisionHistoryLicenseKeyDomainLimit'==_0x5c72ba||'revisionHistoryLicenseKeyNotAllowed'==_0x5c72ba||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5c72ba||'revisionHistoryLicenseKeyTrialLimit'==_0x5c72ba||'revisionHistoryLicenseKeyUsageLimit'==_0x5c72ba){delete _0x194630[_0x11a85f],_0xb17735=_0x5c72ba,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xb17735&&_0x194630['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xb17735&&_0x194630['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xb17735&&_0x194630['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xb17735&&_0x194630['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xb17735&&_0x194630['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xb17735&&_0x194630['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xb17735&&_0x194630['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1410d3=this['repository']['getRevision'](0x0),_0xa71e2=await this['getRevisionDocumentData'](_0x1410d3),_0x974bdb=await this['getRevisionRootsAttributes'](_0x1410d3);this['_replaceEditorDataWithRevisionData'](_0xa71e2,_0x974bdb);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5c591c){this['_source']=_0x5c591c;}async['update'](){const _0x3305d9=await this['_source']['getLatestVersion']();if(_0x3305d9>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1ec935=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3305d9});_0x1ec935['authors']=_0x1ec935['authorsIds']['map'](_0x167a83=>this['editor']['plugins']['get']('Users')['getUser'](_0x167a83)),this['currentRevision']['_update'](_0x1ec935);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x184f5c={},_0x2bdaa5=null){const _0x364040=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2bdaa5>this['currentRevision']['toVersion']&&(_0x2bdaa5=null),null===_0x2bdaa5&&(_0x2bdaa5=await this['_source']['getLatestVersion']());const _0x26470e=this['_getFromVersion'](_0x2bdaa5),_0x34fe0d=this['buildRevisionData']({'from':_0x26470e,'to':_0x2bdaa5});if(this['currentRevision']['toVersion']<_0x2bdaa5){const _0x2332b1=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2bdaa5,'to':_0x2bdaa5});_0x2332b1['authors']=[],_0x2332b1['authorsIds']=[],_0x2332b1['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2332b1,!0x0),delete _0x2332b1['authors'],_0x364040['push'](_0x2332b1);}_0x184f5c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x184f5c['name']=_0x184f5c['name']||null,_0x184f5c['id']=_0x184f5c['id']||_0x52c6ae(),_0x184f5c={..._0x184f5c,..._0x34fe0d};const _0x110254=this['addRevisionData'](_0x184f5c);_0x364040['push'](_0x184f5c);const _0x120652=this['repository']['getIndex'](_0x110254);if(0x0!==_0x120652){const _0x480ace=this['repository']['getRevision'](_0x120652-0x1);if(_0x480ace['fromVersion']!==_0x2bdaa5){const _0x310ce4=this['_revisionDataBuilder']['getData'](_0x2bdaa5,_0x480ace['toVersion']),_0x5a16f9={'id':_0x480ace['id'],'diffData':_0x310ce4['diffData'],'authorsIds':_0x310ce4['authorsIds'],'authors':_0x310ce4['authorsIds']['map'](_0x3e9c28=>this['editor']['plugins']['get']('Users')['getUser'](_0x3e9c28)),'fromVersion':_0x2bdaa5};_0x480ace===this['currentRevision']&&(_0x5a16f9['createdAt']=new Date(_0x184f5c['createdAt']['getTime']()+0xa)),_0x480ace['_update'](_0x5a16f9,!0x0),delete _0x5a16f9['authors'],_0x364040['push'](_0x5a16f9);}}if(this['adapter']){for(const _0x11ca91 of _0x364040)this['_bufferUpdate'](_0x11ca91['id'],_0x11ca91,!0x0);this['sendBufferedUpdates']();}return _0x110254;}['addRevisionData'](_0x42fd9b){const _0x324250=this['repository']['createRevision'](_0x42fd9b);return this['adapter']&&_0x324250['on']('_update',(_0x3fd0e1,_0xffae0f,_0x550aa0)=>{_0x550aa0||(this['_bufferUpdate'](_0xffae0f['id'],_0xffae0f,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x324250,this['_findInsertionIndex'](_0x324250)),_0x324250;}async['getRevisionDocumentData'](_0x42b7c3){await this['_loadRevisionData'](_0x42b7c3);const _0x11b6e3={};for(const _0x523e09 in _0x42b7c3['diffData']){if(_0x42b7c3['diffData'][_0x523e09]['attachChange']&&!_0x42b7c3['diffData'][_0x523e09]['attachChange']['isAttached'])continue;const _0x4128fd=this['_removeRevisionMarkers'](JSON['parse'](_0x42b7c3['diffData'][_0x523e09]['insertions'])),_0xdef598=this['editor']['editing']['view']['document'],_0x332dbc=new _0x57b9f6(_0xdef598,_0x4128fd['map'](_0x2942ab=>C(_0x2942ab,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x11b6e3[_0x523e09]=this['editor']['data']['processor']['toData'](_0x332dbc),this['editor']['data']['processor']['useFillerType']('default');}return _0x11b6e3;}async['getRevisionRootsAttributes'](_0x5a9393){await this['_loadRevisionData'](_0x5a9393);const _0x130cb8={};for(const _0x40c680 in _0x5a9393['diffData'])_0x5a9393['diffData'][_0x40c680]['attachChange']&&!_0x5a9393['diffData'][_0x40c680]['attachChange']['isAttached']||(_0x130cb8[_0x40c680]=_0x5a9393['diffData'][_0x40c680]['attributesAfter']||{});return _0x130cb8;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xa83ded=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5b5f2a=0x0;_0x5b5f2a<_0xa83ded['length'];_0x5b5f2a++){const _0x3e4959=_0xa83ded[_0x5b5f2a];let _0x390082=!0x1;for(const _0x41ae61 of Object['keys'](_0x3e4959))void 0x0===_0x3e4959[_0x41ae61]?delete _0x3e4959[_0x41ae61]:'id'!==_0x41ae61&&(_0x390082=!0x0);_0x390082||(_0xa83ded[_0x5b5f2a]=null);}if(_0xa83ded=_0xa83ded['filter'](_0x29362a=>null!==_0x29362a),!_0xa83ded['length'])return;for(let _0x454b34=0x0;_0x454b34<_0xa83ded['length'];_0x454b34++){const _0x3eea8f=_0xa83ded[_0x454b34];void 0x0!==_0x3eea8f['fromVersion']&&void 0x0===_0x3eea8f['toVersion']&&(_0x3eea8f['toVersion']=this['repository']['getRevision'](_0x3eea8f['id'])['toVersion']),void 0x0!==_0x3eea8f['toVersion']&&void 0x0===_0x3eea8f['fromVersion']&&(_0x3eea8f['fromVersion']=this['repository']['getRevision'](_0x3eea8f['id'])['fromVersion']);}const _0x40a54c=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xa83ded,_0x40a54c)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x26bb27=>{if(_0x26bb27){for(const _0xbce0c9 of _0x26bb27)this['setRevisionData']({'id':_0xbce0c9['id'],'createdAt':_0xbce0c9['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x14ad8c,_0x308c6a){let _0xb2f505=this['editor']['config']['get']('initialData'),_0x1f4163=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xb2f505){_0xb2f505={};for(const _0x39bc32 of this['editor']['model']['document']['getRootNames']())_0xb2f505[_0x39bc32]='';}if('string'==typeof _0xb2f505&&(_0xb2f505={'main':_0xb2f505}),void 0x0===_0x1f4163){_0x1f4163={};for(const _0x1af3f0 of this['editor']['model']['document']['getRootNames']())_0x1f4163[_0x1af3f0]={};}let _0x11aba1=!0x1;const _0x47fc49=Object['keys'](_0xb2f505),_0x3dfe2c=Object['keys'](_0x14ad8c);for(const _0x1f9269 of _0x47fc49){if(_0xb2f505[_0x1f9269]!==_0x14ad8c[_0x1f9269]&&''!==_0xb2f505[_0x1f9269]['trim']()){_0x11aba1=!0x0;break;}if(!_0x5e884b(_0x1f4163[_0x1f9269],_0x308c6a[_0x1f9269])&&Object['keys'](_0x1f4163[_0x1f9269])['length']>0x0){_0x11aba1=!0x0;break;}}_0x11aba1||(_0x11aba1=_0x3dfe2c['some'](_0x2fde56=>!this['editor']['model']['document']['getRoot'](_0x2fde56))),_0x11aba1&&_0x3561cb('editor-initial-data-replaced-with-revision-data',{'editorData':_0xb2f505,'editorRootsAttributes':_0x1f4163,'revisionData':_0x14ad8c,'revisionRootsAttributes':_0x308c6a}),this['editor']['config']['set']('initialData',_0x14ad8c),this['editor']['config']['set']('rootsAttributes',_0x308c6a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3804f0=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3804f0['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2f6c27){const _0x4064a7=this['repository']['getRevisions']();_0x4064a7['reverse']();let _0x2b5a93=0x0;for(;_0x2b5a93<_0x4064a7['length'];){const _0x295d20=_0x4064a7[_0x2b5a93];if(_0x295d20===this['currentRevision']){_0x2b5a93++;continue;}if(_0x295d20['id']===this['_initialRevisionId'])break;const _0x540e31=_0x2f6c27['toVersion']-_0x295d20['toVersion']||_0x2f6c27['fromVersion']-_0x295d20['fromVersion'];if(_0x540e31>0x0)break;if(_0x540e31<0x0)_0x2b5a93++;else{if(!_0x2f6c27['creator']&&_0x295d20['creator'])break;if(_0x295d20['creator']||!_0x2f6c27['creator']){if(_0x2f6c27['createdAt']>_0x295d20['createdAt'])break;_0x2b5a93++;}else _0x2b5a93++;}}return _0x2b5a93;}['setRevisionData'](_0xf7e17){const _0xdb75d6=this['repository']['getRevision'](_0xf7e17['id']);if(_0xf7e17['createdAt']&&(_0xf7e17['createdAt']=new Date(_0xf7e17['createdAt'])),_0xf7e17['authorsIds']){const _0x4ef6d0=this['editor']['plugins']['get']('Users');_0xf7e17['authors']=_0xf7e17['authorsIds']['map'](_0x82a961=>_0x4ef6d0['getUser'](_0x82a961));}_0xdb75d6['_update'](_0xf7e17,!0x0);}['buildRevisionData']({revision:_0x2ce652=null,from:_0x2d65e0=null,to:_0x48f1df=null}){_0x2d65e0=null!==_0x2d65e0?_0x2d65e0:_0x2ce652['fromVersion'],_0x48f1df=null!==_0x48f1df?_0x48f1df:_0x2ce652['toVersion'];const _0x1d55a2=this['_revisionDataBuilder']['getData'](_0x2d65e0,_0x48f1df),_0xab7356={'diffData':_0x1d55a2['diffData'],'authorsIds':_0x1d55a2['authorsIds'],'fromVersion':_0x2d65e0,'toVersion':_0x48f1df};if(!_0x2ce652||_0x48f1df!==_0x2ce652['toVersion']){const _0xc60468=_0x48f1df-0x1,_0x2279f4=this['_source']['history']['getOperation'](_0xc60468);_0xab7356['createdAt']=_0x2279f4&&_0x2279f4['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2d65e0===this['_loadedStateData']['fromVersion']){for(const _0x4b420b of this['_loadedStateData']['authors'])_0xab7356['authorsIds']['includes'](_0x4b420b['id'])||_0xab7356['authorsIds']['push'](_0x4b420b['id']);}return _0xab7356;}['_loadRevisionData'](_0x3e6015){if(!_0x3e6015||_0x3e6015['diffData'])return Promise['resolve']();{const _0x30ca95=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x30ca95,'revisionId':_0x3e6015['id']})['then'](_0x3d98a0=>{_0x3e6015['diffData']=_0x3d98a0['diffData'];});}}['_bufferUpdate'](_0x5eb463,_0xac5032,_0xb085b4){if(this['_bufferedUpdates']['has'](_0x5eb463)){const _0x376c09=this['_bufferedUpdates']['get'](_0x5eb463);_0xac5032=_0xb085b4?{..._0x376c09,..._0xac5032}:{..._0xac5032,..._0x376c09};}this['_bufferedUpdates']['set'](_0x5eb463,_0xac5032);}['_getFromVersion'](_0xb0551d){const _0x1b49eb=this['repository']['getRevisions']();_0x1b49eb['reverse'](),_0x1b49eb['shift']();const _0x513b08=_0x1b49eb['find'](_0x13b7ab=>_0x13b7ab['toVersion']<=_0xb0551d)['toVersion'];return _0x513b08<this['_startingVersion']?this['_startingVersion']:_0x513b08;}['_createInitialRevision'](_0x535b23){const _0x1dd280=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1dd280)this['_initialRevisionId']=_0x1dd280['id'];else{const _0x9c0ca9=!this['editor']['model']['document']['roots']['find'](_0x1624ac=>this['editor']['model']['hasContent'](_0x1624ac)),_0x47fe0e=this['editor']['plugins']['get']('Users')['me']['id'],_0x3e9d55=m(this['editor']['locale'],_0x9c0ca9?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x535b23,'to':_0x535b23,'id':this['_initialRevisionId'],'name':_0x3e9d55,'creatorId':_0x47fe0e});}}['_createCurrentRevision'](_0x5f0f04){const _0xc4b232=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xc4b232),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5f0f04,'to':_0x5f0f04,'id':_0xc4b232,'name':'','creatorId':null}));}['_makeRevision']({name:_0x529e35,from:_0x19628a,to:_0x34306e,creatorId:_0x13953b,id:_0x116489}){const _0x205ca7=this['buildRevisionData']({'from':_0x19628a,'to':_0x34306e});_0x205ca7['name']=_0x529e35,_0x205ca7['creatorId']=_0x13953b,_0x205ca7['id']=_0x116489;const _0x19fa93=this['addRevisionData'](_0x205ca7);return this['adapter']&&this['_bufferUpdate'](_0x205ca7['id'],_0x205ca7,!0x0),_0x19fa93;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0xe90b03){return(_0xe90b03=_0xe90b03['filter'](_0x567f7a=>!_0x567f7a['name']||'revision-start'!==_0x567f7a['name']&&'revision-end'!==_0x567f7a['name']))['forEach'](_0x4c416d=>{'string'!=typeof _0x4c416d&&(_0x4c416d['children']=this['_removeRevisionMarkers'](_0x4c416d['children']),_0x4c416d['attributes']=_0x4c416d['attributes']['filter'](_0x3af255=>!_0x3af255[0x0]['startsWith']('data-revision-')));}),_0xe90b03;}}function C(_0x6cab44,_0x52e459){const _0xef1b0c=_0x52e459['editing']['view']['document'];if('string'==typeof _0x6cab44)return new _0x45ae04(_0xef1b0c,_0x6cab44);{const _0x2c43e0=_0x6cab44['children']['map'](_0x231dc6=>C(_0x231dc6,_0x52e459));return new(P[_0x6cab44['type']]||_0x209a3b)(_0xef1b0c,_0x6cab44['name'],_0x6cab44['attributes'],_0x2c43e0);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3d3a4a){this['editor']=_0x3d3a4a,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'](_0x2e16b6){this['source']=_0x2e16b6;const _0x3cce46=new Map(),_0x526bea=new Map(),_0x430c4a=this['editor']['model']['document']['roots']['map'](_0x25d963=>_0x25d963['rootName']);for(const _0x2846fe of _0x430c4a){const _0x5e23df=this['editor']['model']['document']['getRoot'](_0x2846fe),_0x1b5cbd=T(_0x5e23df);_0x3cce46['set'](_0x2846fe,_0x1b5cbd),_0x526bea['set'](_0x2846fe,Object['fromEntries'](_0x5e23df['getAttributes']()));}const _0x38951d=Array['from'](this['editor']['model']['markers'])['map'](_0x2ae389=>[_0x2ae389['name'],_0x2ae389['getRange']()]),_0xfb84f3=this['source']['version'];this['_saveMetaData'](_0xfb84f3,_0x3cce46,_0x38951d,_0x526bea),this['_startingRevisionId']=this['_revisionId'];const _0x31de25=new Map(),_0xee04c0=new Map();for(const _0x5a0691 of _0x430c4a){const _0x2fdad3=F(_0x5a0691);_0x31de25['set'](_0x5a0691,_0x2fdad3),_0xee04c0['set'](_0x5a0691,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x31de25,[],_0xee04c0);}['getData'](_0x5baa7f,_0x2cd4ec){if(this['_lastFrom']===_0x5baa7f&&this['_lastTo']<=_0x2cd4ec)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2cd4ec,!0x0);else{if(!this['_savedMetaData']['has'](_0x5baa7f)){const _0x5227b3=this['_getPreviousFrom'](_0x5baa7f);this['_calculateMetaData'](_0x5227b3,_0x5baa7f,!0x1);}this['_calculateMetaData'](_0x5baa7f,_0x2cd4ec,!0x0);}return this['_lastFrom']=_0x5baa7f,this['_lastTo']=_0x2cd4ec,this['_getState']();}['loadState'](_0x198f26){this['_reset'](),this['_lastFrom']=_0x198f26['fromVersion'],this['_lastTo']=_0x198f26['toVersion'];for(const _0x3d1f90 in _0x198f26['diffData']){const _0x10eccd=_0x198f26['diffData'][_0x3d1f90]['attachChange'],_0x2868d3=_0x3b3b51(_0x198f26['diffData'][_0x3d1f90]['attributesBefore'])||{},_0x19bd2f=this['_makeModelFromViewString'](_0x198f26['diffData'][_0x3d1f90]['deletions']);_0x19bd2f['rootName']=_0x3d1f90,_0x19bd2f['_isAttached']=!_0x10eccd||!_0x10eccd['isAttached'],_0x19bd2f['isAttached']=()=>_0x19bd2f['_isAttached'],this['_baseRoots']['set'](_0x3d1f90,_0x19bd2f),this['_baseRootsAttributes']['set'](_0x3d1f90,_0x2868d3),_0x10eccd&&this['_touchedRoots']['set'](_0x3d1f90,_0x10eccd);const _0x318a1d=this['_makeIdsRoot'](_0x19bd2f);this['_baseIdsRoots']['set'](_0x3d1f90,_0x318a1d);for(const [_0x1331d2,_0x1ef1b1]of _0x19bd2f['markers']){if(!_0x1331d2['startsWith']('revision:'))continue;const _0x46af7a=_0x1331d2['split'](':')[0x2];for(const _0x41c717 of _0x1ef1b1['getWalker']({'singleCharacters':!0x0})){const _0x50ac44=this['_getVidAttributeName'](_0x41c717),_0x2dcf78='elementEnd'==_0x41c717['type']?_0x41c717['previousPosition']['path']['slice'](0x0,-0x1):_0x41c717['previousPosition']['path'],_0x1fa603=_0x318a1d['getNodeByPath'](_0x2dcf78)['getAttribute'](_0x50ac44);this['_touched']['set'](_0x1fa603,{'userId':_0x46af7a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x585a41=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x13e3e7=>!this['_touched']['has'](_0x13e3e7));let _0x16aff5=0x0;const _0x169855=new Map();for(const _0x1a64d6 in _0x198f26['diffData']){const _0x18f712=_0x198f26['diffData'][_0x1a64d6]['attachChange'],_0x20f1d2=_0x3b3b51(_0x198f26['diffData'][_0x1a64d6]['attributesAfter'])||{},_0x293c3e=this['_makeModelFromViewString'](_0x198f26['diffData'][_0x1a64d6]['insertions']);_0x293c3e['rootName']=_0x1a64d6,_0x293c3e['_isAttached']=!_0x18f712||_0x18f712['isAttached'],_0x293c3e['isAttached']=()=>_0x293c3e['_isAttached'],this['_diffRoots']['set'](_0x1a64d6,_0x293c3e),this['_diffRootsAttributes']['set'](_0x1a64d6,_0x20f1d2);const _0x5bb2e4=this['_makeIdsRoot'](_0x293c3e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1a64d6,_0x5bb2e4),_0x169855['set'](_0x1a64d6,_0x293c3e['isAttached']()?_0x20f1d2:{});for(const [_0x4d69f7,_0x2028fb]of _0x293c3e['markers']){if(!_0x4d69f7['startsWith']('revision:'))continue;const _0x5c7d0c=_0x4d69f7['split'](':')[0x2];for(const _0x4a4af6 of _0x2028fb['getWalker']({'singleCharacters':!0x0})){const _0x4c7c13=this['_getVidAttributeName'](_0x4a4af6),_0x4d2c50=this['_revisionId']++,_0x59bff4='elementEnd'==_0x4a4af6['type']?_0x4a4af6['previousPosition']['path']['slice'](0x0,-0x1):_0x4a4af6['previousPosition']['path'];_0x5bb2e4['getNodeByPath'](_0x59bff4)['_setAttribute'](_0x4c7c13,_0x4d2c50),this['_touched']['set'](_0x4d2c50,{'userId':_0x5c7d0c});}}for(const _0x590ce5 of this['editor']['model']['createRangeIn'](_0x293c3e)['getWalker']({'singleCharacters':!0x0})){const _0x181807=this['_getVidAttributeName'](_0x590ce5),_0x38dcff='elementEnd'==_0x590ce5['type']?_0x590ce5['previousPosition']['path']['slice'](0x0,-0x1):_0x590ce5['previousPosition']['path'],_0x5737ad=_0x5bb2e4['getNodeByPath'](_0x38dcff);_0x5737ad['getAttribute'](_0x181807)>0x0||_0x5737ad['_setAttribute'](_0x181807,_0x585a41[_0x16aff5++]);}for(const [_0x229437,_0x25398c]of _0x293c3e['markers'])_0x229437['startsWith']('revision:')||this['_markers']['set'](_0x229437,_0x25398c);}const _0x5a4b89=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5a4b89),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5a4b89,0x1));const _0x41f67c=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x41f67c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x41f67c,0x1));const _0x10f839=Array['from'](this['_diffRoots'])['map'](([_0x14ed44,_0x1a0c7e])=>[_0x14ed44,T(_0x1a0c7e)]);this['_saveMetaData'](this['_lastTo'],_0x10f839,this['_markers'],_0x169855);}['_makeModelFromViewString'](_0x280bfc){const _0x1c5e5a=JSON['parse'](_0x280bfc),_0x292319=this['editor']['editing']['view']['document'],_0x8aaa61=new _0x57b9f6(_0x292319,_0x1c5e5a['map'](_0x3eb087=>C(_0x3eb087,this['editor'])));return this['editor']['data']['toModel'](_0x8aaa61);}['_saveMetaData'](_0xc45668,_0x6978e1,_0x36fd7d,_0x137708){const _0x557a97=new Map(_0x6978e1),_0x484cc2=new Map(_0x3b3b51(_0x137708)),_0x217c33=new Map();for(const [_0x526f8a,_0x12775]of _0x36fd7d)_0x217c33['set'](_0x526f8a,{'start':_0x12775['start']['clone'](),'end':_0x12775['end']['clone'](),'rootName':_0x12775['root']['rootName']});this['_savedMetaData']['set'](_0xc45668,{'roots':_0x557a97,'markers':_0x217c33,'rootsAttributes':_0x484cc2});}['_removeMetaData'](_0x8e130c){this['_savedMetaData']['delete'](_0x8e130c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_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'](_0x49e019,_0x5e0963=null){let _0x507835=null;_0x49e019['is']('documentFragment')||(_0x507835=new ft(_0x49e019['name'],{'vid_start':null===_0x5e0963?this['_revisionId']++:_0x5e0963++}));const _0x2d115e=[];for(const _0x3075e8 of _0x49e019['getChildren']())if(_0x3075e8['is']('element')){_0x2d115e['push'](this['_makeIdsRoot'](_0x3075e8,_0x5e0963));const _0x30affd=_0x2d115e[_0x2d115e['length']-0x1];null!==_0x5e0963&&(_0x5e0963=_0x30affd['is']('element','$text')?_0x30affd['getAttribute']('vid')+0x1:_0x30affd['getAttribute']('vid_end')+0x1);}else{for(let _0x2f5a6f=0x0;_0x2f5a6f<_0x3075e8['offsetSize'];_0x2f5a6f++)_0x2d115e['push'](new ft('$text',{'vid':null===_0x5e0963?this['_revisionId']++:_0x5e0963++}));}if(_0x49e019['is']('documentFragment')){const _0x20ecf8=F(_0x49e019['rootName']);return _0x20ecf8['_insertChild'](0x0,_0x2d115e),_0x20ecf8;}return _0x507835['_setAttribute']('vid_end',null===_0x5e0963?this['_revisionId']++:_0x5e0963++),_0x507835['_insertChild'](0x0,_0x2d115e),_0x507835;}['_calculateMetaData'](_0x366747,_0x1de054,_0x21adf1){this['_reset']();const {roots:_0x3fe3c7,markers:_0x1629b4,rootsAttributes:_0x1cc885}=this['_savedMetaData']['get'](_0x366747);this['_baseRoots']=new Map(_0x3fe3c7),this['_baseRootsAttributes']=new Map(_0x3b3b51(_0x1cc885));for(const [_0xb08fe6,_0x302048]of this['_baseRoots'])if('$graveyard'!==_0xb08fe6&&(this['_diffRoots']['set'](_0xb08fe6,T(_0x302048)),this['_diffRootsAttributes']=new Map(_0x3b3b51(_0x1cc885)),_0x21adf1)){const _0x23ba07=this['_revisionId'];this['_idsRoots']['set'](_0xb08fe6,this['_makeIdsRoot'](_0x302048)),this['_baseIdsRoots']['set'](_0xb08fe6,this['_makeIdsRoot'](_0x302048,_0x23ba07));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x21adf1&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x555dc4,_0x1bf6c0]of _0x1629b4){const _0x530453=this['_baseRoots']['get'](_0x1bf6c0['rootName']),_0x29a124=this['_diffRoots']['get'](_0x1bf6c0['rootName']),_0x57bb50=new vt(this['_fixPosition'](_0x1bf6c0['start'],_0x530453),this['_fixPosition'](_0x1bf6c0['end'],_0x530453)),_0x6d8c1c=this['_fixRange'](_0x57bb50,_0x29a124);_0x530453['markers']['set'](_0x555dc4,_0x57bb50),this['_markers']['set'](_0x555dc4,_0x6d8c1c);}this['_applyOperations'](_0x366747,_0x1de054,_0x21adf1);}['_applyOperations'](_0x34a148,_0x121ace,_0x53eab9){for(const _0x3ed0ad of this['source']['getOperations'](_0x34a148,_0x121ace))this['_handleOperation'](_0x3ed0ad,_0x53eab9);for(const _0x4cc67e of this['_diffRoots']['values']())_0x4cc67e['markers']['clear']();for(const [_0x4b8626,_0x2d9658]of this['_markers']){this['_diffRoots']['get'](_0x2d9658['root']['rootName'])['markers']['set'](_0x4b8626,_0x2d9658['clone']());}const _0x13f39b=new Map(),_0x5eb76e=new Map();for(const [_0x24491b,_0x5df11f]of this['_diffRoots'])_0x13f39b['set'](_0x24491b,T(_0x5df11f)),_0x5eb76e['set'](_0x24491b,this['_diffRootsAttributes']['get'](_0x24491b));this['_saveMetaData'](_0x121ace,_0x13f39b,this['_markers'],_0x5eb76e);}['_getPreviousFrom'](_0x43be4c){const _0x20b1f3=Array['from'](this['_savedMetaData']['keys']());_0x20b1f3['sort']((_0x338ef4,_0x39922f)=>_0x338ef4-_0x39922f),_0x20b1f3['reverse']();for(const _0x49bf97 of _0x20b1f3)if(_0x49bf97<_0x43be4c)return _0x49bf97;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5b52d4,_0x4a26fe){const _0x454fb3=Array['from'](_0x4a26fe['markers'])['map'](([_0x1f2cc2,_0x33dc9e])=>[_0x1f2cc2,this['_fixRange'](_0x33dc9e,_0x5b52d4)]);_0x5b52d4['markers']=new Map(_0x454fb3);}['_transformMarkers'](_0xa61621){for(const _0x6aa6c4 of this['_markers']['values']()){const _0x1be73e=_0x6aa6c4['getTransformedByOperation'](_0xa61621),_0x296b29=vt['_createFromRanges'](_0x1be73e);_0x6aa6c4['start']=_0x296b29['start'],_0x6aa6c4['end']=_0x296b29['end'];}}['_handleOperation'](_0x43e1be,_0x2c7526){if('addRoot'!=_0x43e1be['type']&&'detachRoot'!=_0x43e1be['type']){if('insert'==_0x43e1be['type']){const _0x2a93d0=_0x43e1be['position']['root']['rootName'];this['_diffRoots']['has'](_0x2a93d0)||(this['_diffRoots']['set'](_0x2a93d0,F(_0x2a93d0,!0x0)),this['_diffRootsAttributes']['set'](_0x2a93d0,{}),_0x2c7526&&this['_idsRoots']['set'](_0x2a93d0,F(_0x2a93d0,!0x0)));}else{if('addRootAttribute'==_0x43e1be['type']||'removeRootAttribute'==_0x43e1be['type']||'changeRootAttribute'==_0x43e1be['type'])return void this['_handleRootAttributeOperation'](_0x43e1be);'marker'==_0x43e1be['type']&&this['_handleMarkerOperation'](_0x43e1be);}if('marker'!==_0x43e1be['type']){const _0x5b8a22=this['_cloneOperation'](_0x43e1be,this['_diffRoots']);_0x5b8a22['_execute'](),this['_transformMarkers'](_0x5b8a22);}if(_0x2c7526)switch(_0x43e1be['type']){case'insert':this['_handleInsertOperation'](_0x43e1be);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x43e1be);break;case'merge':this['_handleMergeOperation'](_0x43e1be);break;case'split':this['_handleSplitOperation'](_0x43e1be);}}else this['_handleRootOperation'](_0x43e1be,_0x2c7526);}['_cloneOperation'](_0x13277a,_0x1ff89c){const _0x3fd9bf=_0x13277a['clone']();return _0x3fd9bf['_authorId']=_0x13277a['_authorId'],this['_fixOperation'](_0x3fd9bf,_0x1ff89c),_0x3fd9bf;}['_getBaseVids'](_0xc6f2da){return _0xc6f2da['map'](_0x3f9c64=>{const _0xb6bf6a=this['_getVidAttributeName'](_0x3f9c64);return Number(_0x3f9c64['item']['getAttribute'](_0xb6bf6a));});}['_generateTape'](_0x1b7cff,_0x4edd0f){if(_0x1b7cff['is']('element','$text'))_0x4edd0f['push']({'item':_0x1b7cff,'type':'text'});else{_0x1b7cff['is']('element')&&_0x4edd0f['push']({'item':_0x1b7cff,'type':'elementStart'});for(const _0x3a2132 of _0x1b7cff['getChildren']())this['_generateTape'](_0x3a2132,_0x4edd0f);_0x1b7cff['is']('element')&&_0x4edd0f['push']({'item':_0x1b7cff,'type':'elementEnd'});}return _0x4edd0f;}['_getState'](){const _0x486c23=new Map(this['_touched']),_0x307d51=new Map(_0x486c23),_0x2946ad=new Map(),_0x207f4b={'insertions':{},'deletions':{}},_0x4579e4={'insertions':{},'deletions':{}},_0x23e53d=new Map(),_0x1039d3=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1039d3['delete']('$graveyard');for(const _0x2149be of _0x1039d3){const _0x40235d=this['_diffRoots']['get'](_0x2149be)||F(_0x2149be,!0x1),_0x13c093=this['_baseRoots']['get'](_0x2149be)||F(_0x2149be,!0x1);_0x40235d['isAttached']()||_0x13c093['isAttached']()?(_0x207f4b['insertions'][_0x2149be]=T(_0x40235d),_0x207f4b['deletions'][_0x2149be]=T(_0x13c093),this['_copyMarkers'](_0x207f4b['deletions'][_0x2149be],_0x13c093),this['_copyMarkers'](_0x207f4b['insertions'][_0x2149be],_0x40235d),_0x4579e4['insertions'][_0x2149be]=this['_generateTape'](this['_idsRoots']['get'](_0x2149be),[]),_0x4579e4['deletions'][_0x2149be]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2149be)||F(_0x2149be,!0x1),[])):_0x1039d3['delete'](_0x2149be);}for(const _0x15e7c9 of _0x1039d3){const _0x394cf0=_0x4579e4['insertions'][_0x15e7c9];for(const _0x23fd72 of _0x394cf0){const _0x5650a0=this['_getVidAttributeName'](_0x23fd72),_0x1ce1df=_0x23fd72['item']['getAttribute'](_0x5650a0);_0x307d51['delete'](_0x1ce1df),_0x1ce1df>=this['_startingRevisionId']&&_0x2946ad['set'](_0x1ce1df,_0x486c23['get'](_0x1ce1df));}}for(const _0x568585 of _0x1039d3){const _0x19ff38=_0x4579e4['insertions'][_0x568585],_0x2b9a2e=this['_getBaseVids'](_0x4579e4['deletions'][_0x568585]);let _0x4d8ad1=0x0;for(const _0x2949cc of _0x19ff38){const _0x3545b6=this['_getVidAttributeName'](_0x2949cc),_0x38c68e=_0x2949cc['item']['getAttribute'](_0x3545b6);if(!_0x2946ad['has'](_0x38c68e)&&!_0x23e53d['has'](_0x38c68e)){if(_0x307d51['has'](_0x38c68e))_0x4d8ad1++;else{if(_0x38c68e!=_0x2b9a2e[_0x4d8ad1]){const _0x4df691=_0x486c23['get'](_0x38c68e)||_0x486c23['get'](_0x2b9a2e[_0x4d8ad1]);for(;_0x38c68e!=_0x2b9a2e[_0x4d8ad1];)_0x307d51['has'](_0x2b9a2e[_0x4d8ad1])||(_0x23e53d['set'](_0x2b9a2e[_0x4d8ad1],_0x4df691),_0x486c23['set'](_0x2b9a2e[_0x4d8ad1],_0x4df691)),_0x4d8ad1++;}_0x4d8ad1++;}}}}for(const _0x1a9659 of _0x1039d3){const _0x24bc60=_0x4579e4['insertions'][_0x1a9659];for(const _0x413eeb of _0x24bc60){const _0x27e682=this['_getVidAttributeName'](_0x413eeb),_0x336897=_0x413eeb['item']['getAttribute'](_0x27e682);if(_0x23e53d['has'](_0x336897)){const _0x48679d=_0x23e53d['get'](_0x336897);_0x307d51['has'](_0x336897)||_0x307d51['set'](_0x336897,{..._0x48679d}),_0x2946ad['set'](_0x336897,{..._0x48679d});}}}for(const _0x1aeb46 of _0x307d51['keys']())_0x1aeb46>=this['_startingRevisionId']&&_0x307d51['delete'](_0x1aeb46);const _0x385214=new Map();for(const _0x36a7a0 of _0x1039d3){let _0x1c4924=_0x4579e4['insertions'][_0x36a7a0];for(const _0x370bd7 of _0x1c4924)if(_0x370bd7['item']['is']('element','tableCell')){const _0x1bb503=this['_getVidAttributeName'](_0x370bd7),_0x3292c8=_0x370bd7['item']['getAttribute'](_0x1bb503);if(_0x2946ad['has'](_0x3292c8)){const _0x4fb2b0=_0x370bd7['item']['parent']['parent']['getAttribute']('vid_start'),_0x16fa68=_0x385214['get'](_0x4fb2b0)||new Set();_0x16fa68['add'](_0x2946ad['get'](_0x3292c8)['userId']),_0x385214['set'](_0x4fb2b0,_0x16fa68);}}_0x1c4924=_0x4579e4['deletions'][_0x36a7a0];for(const _0x7be6c7 of _0x1c4924)if(_0x7be6c7['item']['is']('element','tableCell')){const _0x45db3b=this['_getVidAttributeName'](_0x7be6c7),_0x2363a8=_0x7be6c7['item']['getAttribute'](_0x45db3b);if(_0x307d51['has'](_0x2363a8)){const _0x16efff=_0x7be6c7['item']['parent']['parent']['getAttribute']('vid_start'),_0x18af76=_0x385214['get'](_0x16efff)||new Set();_0x18af76['add'](_0x307d51['get'](_0x2363a8)['userId']),_0x385214['set'](_0x16efff,_0x18af76);}}for(const _0x35e666 of _0x385214['keys']())(_0x2946ad['has'](_0x35e666)||_0x307d51['has'](_0x35e666))&&_0x385214['delete'](_0x35e666);}for(const _0xcf3d95 of _0x1039d3){const _0x5b8368=_0x4579e4['insertions'][_0xcf3d95];let _0x3bd896=null,_0x1de463=null;for(const _0x2c2f56 of _0x5b8368){const _0x112418=this['_getVidAttributeName'](_0x2c2f56),_0x2d0572=_0x2c2f56['item']['getAttribute'](_0x112418),_0x474160=_0x385214['get'](_0x2d0572);_0x474160&&'elementStart'==_0x2c2f56['type']&&(_0x3bd896=Array['from'](_0x474160)[0x0],_0x1de463=_0x2c2f56['item']['getAttribute']('vid_end')),_0x3bd896&&(_0x307d51['set'](_0x2d0572,{'userId':_0x3bd896}),_0x2946ad['set'](_0x2d0572,{'userId':_0x3bd896})),_0x2d0572==_0x1de463&&(_0x3bd896=null,_0x1de463=null);}}const _0x301009={},_0x52a20d=new Set();for(const _0x4db39a of _0x1039d3){const _0x31734a=_0x207f4b['deletions'][_0x4db39a],_0x1f12eb=_0x207f4b['insertions'][_0x4db39a];for(const {userId:_0x46ea32}of this['_touchedMarkers']['values']())null!==_0x46ea32&&_0x52a20d['add'](_0x46ea32);for(const {userId:_0x153c4c}of this['_touchedRoots']['values']())null!==_0x153c4c&&_0x52a20d['add'](_0x153c4c);this['_markChanges'](_0x1f12eb,_0x4579e4['insertions'][_0x4db39a],_0x2946ad,'insertion',_0x52a20d),this['_markChanges'](_0x31734a,_0x4579e4['deletions'][_0x4db39a],_0x307d51,'deletion',_0x52a20d),_0x301009[_0x4db39a]={'insertions':this['_prepareViewToSave'](_0x1f12eb),'deletions':this['_prepareViewToSave'](_0x31734a),'attachChange':this['_touchedRoots']['get'](_0x4db39a)||null,'attributesBefore':_0x3b3b51(this['_baseRootsAttributes']['get'](_0x4db39a))||{},'attributesAfter':_0x3b3b51(this['_diffRootsAttributes']['get'](_0x4db39a))};}return{'diffData':_0x301009,'authorsIds':Array['from'](_0x52a20d)};}['_processRootBeforeSave'](_0x58c772){for(const [,_0x1980ef]of _0x58c772['markers']){const _0x4db2fc=_0x1980ef['start']['getAncestors']()['filter'](_0x237081=>'tableCell'==_0x237081['name']);for(const _0x37a166 of _0x4db2fc)0x1==_0x37a166['childCount']&&_0x37a166['getChild'](0x0)['is']('element','paragraph')&&_0x37a166['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x30e04c){this['_processRootBeforeSave'](_0x30e04c);const _0xbb6bf1=this['editor']['data']['toView'](_0x30e04c,{}),_0x409055=Array['from'](_0xbb6bf1['getChildren']())['map'](_0x37bd2c=>this['_getViewJson'](_0x37bd2c));return JSON['stringify'](_0x409055);}['_getViewJson'](_0x49e7f8){if(_0x49e7f8['is']('$text'))return _0x49e7f8['data'];{const _0x2cc2cf=_0x49e7f8;return{'type':Object['keys'](P)['find'](_0x229040=>_0x49e7f8 instanceof P[_0x229040]),'name':_0x2cc2cf['name'],'attributes':Array['from'](_0x2cc2cf['getAttributes']()),'children':Array['from'](_0x2cc2cf['getChildren']())['map'](_0x450d34=>this['_getViewJson'](_0x450d34))};}}['_markChanges'](_0x5a95e0,_0x539e90,_0x28e4e2,_0x5dfa55,_0x2d2f1b){let _0x177c80=null,_0x888834=null,_0x39131d=0x0;const _0x54fda7=this['editor']['model'];for(let _0x90bd64=0x0;_0x90bd64<_0x539e90['length'];_0x90bd64++){const _0x14b5e5=this['_getVidAttributeName'](_0x539e90[_0x90bd64]),_0xf3c79b=_0x539e90[_0x90bd64]['item']['getAttribute'](_0x14b5e5),_0x107aaf=_0x28e4e2['get'](_0xf3c79b),_0x4c86ed=_0x90bd64==_0x539e90['length']-0x1;(!_0x177c80&&_0x107aaf&&(_0x177c80=_0x107aaf,_0x888834=_0x539e90[_0x90bd64]),_0x177c80&&(!_0x107aaf||_0x107aaf['userId']!=_0x177c80['userId']))&&(_0x106b32(_0x107aaf,B(_0x888834,_0x5a95e0,_0x54fda7),B(_0x539e90[_0x90bd64],_0x5a95e0,_0x54fda7)),_0x177c80=_0x107aaf||null,_0x888834=_0x107aaf?_0x539e90[_0x90bd64]:null),_0x177c80&&_0x4c86ed&&_0x106b32(_0x107aaf,B(_0x888834,_0x5a95e0,_0x54fda7),J(_0x539e90[_0x90bd64],_0x5a95e0,_0x54fda7));}function _0x106b32(_0x5b1493,_0x5c836a,_0x2986d2){const _0x377b6a=_0x177c80['userId'],_0x51a3f5='revision:'+_0x5dfa55+':'+_0x377b6a+':'+_0x39131d++,_0x560526=_0x54fda7['createRange'](_0x5c836a,_0x2986d2);_0x5a95e0['markers']['set'](_0x51a3f5,_0x560526),null!==_0x377b6a&&_0x2d2f1b['add'](_0x377b6a);}}['_getVidAttributeName'](_0x47bb31){switch(_0x47bb31['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3288b6,_0x7722ab){_0x3288b6['baseVersion']=null;for(const _0x91f164 in _0x3288b6){const _0x31bfdb=_0x3288b6[_0x91f164];if(_0x31bfdb instanceof gt){const _0x188125=_0x7722ab['get'](_0x31bfdb['root']['rootName']);_0x3288b6[_0x91f164]=this['_fixPosition'](_0x31bfdb,_0x188125);}if(_0x31bfdb instanceof vt){const _0x4630e3=_0x7722ab['get'](_0x31bfdb['root']['rootName']);_0x3288b6[_0x91f164]=this['_fixRange'](_0x31bfdb,_0x4630e3);}'root'===_0x91f164&&(_0x3288b6['root']=_0x7722ab['get'](_0x3288b6['root']['rootName']));}}['_fixRange'](_0x4a6b21,_0x451e92){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4a6b21['start'],_0x451e92),this['_fixPosition'](_0x4a6b21['end'],_0x451e92));}['_fixPosition'](_0x65541a,_0x19c56d){return this['editor']['model']['createPositionFromPath'](_0x19c56d,_0x65541a['path'],_0x65541a['stickiness']);}['_handleInsertOperation'](_0x15bb9e){const _0x893089=this['_idsRoots']['get'](_0x15bb9e['position']['root']['rootName']),_0x2d1017=this['_fixPosition'](_0x15bb9e['position'],_0x893089),_0x28f184=null===_0x15bb9e['_authorId']?null:_0x15bb9e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x14565f=_0x2d1017['parent'],_0x82bff=this['_revisionId'],_0x19c280=[];for(const _0x2edcbf of _0x15bb9e['nodes'])if(_0x2edcbf['is']('element'))_0x19c280['push'](this['_makeIdsRoot'](_0x2edcbf));else{for(let _0x5a3aeb=0x0;_0x5a3aeb<_0x2edcbf['offsetSize'];_0x5a3aeb++)_0x19c280['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x2e0663=this['_revisionId'];for(let _0x57f6a3=_0x82bff;_0x57f6a3<_0x2e0663;_0x57f6a3++)this['_touched']['set'](_0x57f6a3,{'userId':_0x28f184});_0x14565f['_insertChild'](_0x2d1017['offset'],_0x19c280);}['_handleMoveOperation'](_0x1002c2){(_0x1002c2=this['_cloneOperation'](_0x1002c2,this['_idsRoots']))['_execute']();const _0x5aaa70=null===_0x1002c2['_authorId']?null:_0x1002c2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2aea65=_0x1002c2['getMovedRangeStart'](),_0x6c130d=_0x2aea65['parent'],_0x128b0b=_0x2aea65['offset'];!function _0x5964a6(_0x26db62,_0x5b148d,_0x1484bd,_0x3713ce){for(let _0x3313d4=_0x1484bd;_0x3313d4<_0x3713ce;_0x3313d4++){const _0x2dc7e3=_0x5b148d['getChild'](_0x3313d4);_0x2dc7e3['is']('element','$text')?_0x26db62['set'](_0x2dc7e3['getAttribute']('vid'),{'userId':_0x5aaa70}):(_0x26db62['set'](_0x2dc7e3['getAttribute']('vid_start'),{'userId':_0x5aaa70}),_0x5964a6(_0x26db62,_0x2dc7e3,0x0,_0x2dc7e3['childCount']),_0x26db62['set'](_0x2dc7e3['getAttribute']('vid_end'),{'userId':_0x5aaa70}));}}(this['_touched'],_0x6c130d,_0x128b0b,_0x128b0b+_0x1002c2['howMany']);}['_handleMergeOperation'](_0x3ba1f1){const _0x264018=null===(_0x3ba1f1=this['_cloneOperation'](_0x3ba1f1,this['_idsRoots']))['_authorId']?null:_0x3ba1f1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x177844=_0x3ba1f1['targetPosition']['parent'],_0x12ae50=_0x3ba1f1['sourcePosition']['parent'],_0xde0501=_0x177844['getAttribute']('vid_end'),_0x1c52bd=_0x12ae50['getAttribute']('vid_start');_0x177844['_setAttribute']('vid_end',_0x12ae50['getAttribute']('vid_end')),_0x12ae50['_setAttribute']('vid_end',_0xde0501),this['_touched']['set'](_0x1c52bd,{'userId':_0x264018}),this['_touched']['set'](_0xde0501,{'userId':_0x264018}),_0x3ba1f1['_execute']();}['_handleSplitOperation'](_0x148070){const _0x34ee46=null===(_0x148070=this['_cloneOperation'](_0x148070,this['_idsRoots']))['_authorId']?null:_0x148070['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x50a65d=_0x148070['graveyardPosition'],_0x407842=_0x148070['splitPosition']['parent'];_0x148070['_execute']();const _0x94a7db=_0x407842['getAttribute']('vid_end'),_0x464d35=_0x148070['insertionPosition']['nodeAfter'];if(_0x50a65d){const _0x47d1d2=_0x464d35['getAttribute']('vid_end'),_0x41c57f=_0x407842['getAttribute']('vid_end');_0x407842['_setAttribute']('vid_end',_0x47d1d2),_0x464d35['_setAttribute']('vid_end',_0x41c57f),this['_touched']['set'](_0x407842['getAttribute']('vid_end'),{'userId':_0x34ee46}),this['_touched']['set'](_0x464d35['getAttribute']('vid_start'),{'userId':_0x34ee46});}else{const _0x298919=this['_revisionId']++,_0x253b6a=this['_revisionId']++;_0x407842['_setAttribute']('vid_end',_0x298919),_0x464d35['_setAttribute']('vid_start',_0x253b6a),_0x464d35['_setAttribute']('vid_end',_0x94a7db),this['_touched']['set'](_0x298919,{'userId':_0x34ee46}),this['_touched']['set'](_0x253b6a,{'userId':_0x34ee46});}}['_handleMarkerOperation'](_0x3d38c8){if(!_0x3d38c8['affectsData'])return;const _0x18d0c2=(_0x3d38c8=this['_cloneOperation'](_0x3d38c8,this['_diffRoots']))['oldRange']?_0x3d38c8['oldRange']['root']:null,_0xc44d17=_0x3d38c8['newRange']?_0x3d38c8['newRange']['root']:null;_0x18d0c2&&this['_markers']['delete'](_0x3d38c8['name']),_0xc44d17&&this['_markers']['set'](_0x3d38c8['name'],_0x3d38c8['newRange']['clone']());const _0x454d40=null===_0x3d38c8['_authorId']?null:_0x3d38c8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x296c9e=_0x3d38c8['name'];if(!this['_touchedMarkers']['has'](_0x296c9e))return void this['_touchedMarkers']['set'](_0x296c9e,{'range':_0x3d38c8['oldRange'],'userId':_0x454d40});const _0x337388=this['_touchedMarkers']['get'](_0x296c9e),_0x1e0af3=_0x337388['range'],_0x56b359=_0x3d38c8['newRange'];null==_0x1e0af3&&null==_0x56b359||_0x1e0af3&&_0x56b359&&_0x1e0af3['isEqual'](_0x56b359)?this['_touchedMarkers']['delete'](_0x3d38c8['name']):_0x337388['userId']=_0x454d40;}['_handleRootOperation'](_0x3b45b1,_0xd48c5d){this['_diffRoots']['has'](_0x3b45b1['rootName'])?this['_diffRoots']['get'](_0x3b45b1['rootName'])['_isAttached']=_0x3b45b1['isAdd']:(this['_diffRoots']['set'](_0x3b45b1['rootName'],F(_0x3b45b1['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3b45b1['rootName'],{}),_0xd48c5d&&this['_idsRoots']['set'](_0x3b45b1['rootName'],F(_0x3b45b1['rootName'],!0x0)));const _0x3f93a2=null===_0x3b45b1['_authorId']?null:_0x3b45b1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f3d8c=this['_touchedRoots']['get'](_0x3b45b1['rootName']);_0x2f3d8c&&_0x2f3d8c['userId']===_0x3f93a2?this['_touchedRoots']['delete'](_0x3b45b1['rootName']):this['_touchedRoots']['set'](_0x3b45b1['rootName'],{'userId':_0x3f93a2,'isAttached':_0x3b45b1['isAdd']});}['_handleRootAttributeOperation'](_0x31a979){const _0x37848d=this['_diffRootsAttributes']['get'](_0x31a979['root']['rootName']);null===_0x31a979['newValue']?delete _0x37848d[_0x31a979['key']]:_0x37848d[_0x31a979['key']]=_0x31a979['newValue'];}}function T(_0x160395){const _0x51e063=F(_0x160395['rootName'],_0x160395['isAttached']());for(const _0x509a57 of _0x160395['getChildren']()){const _0xab4b56=_0x509a57['_clone'](!0x0);_0x51e063['_appendChild'](_0xab4b56);}return _0x51e063;}function F(_0xbc1605,_0x3cb9e5=!0x0){const _0x5379fa=new mt();return _0x5379fa['rootName']=_0xbc1605,_0x5379fa['_isAttached']=_0x3cb9e5,_0x5379fa['isAttached']=()=>_0x5379fa['_isAttached'],_0x5379fa;}function B(_0xc42382,_0xa192ab,_0x5be5e5){const _0x2755cc='elementEnd'==_0xc42382['type']?_0x5be5e5['createPositionAt'](_0xc42382['item'],'end'):_0x5be5e5['createPositionBefore'](_0xc42382['item']);return _0x5be5e5['createPositionFromPath'](_0xa192ab,_0x2755cc['path'],_0x2755cc['stickiness']);}function J(_0x42251a,_0x60cb74,_0x429b03){const _0x34ba50='elementStart'==_0x42251a['type']?_0x429b03['createPositionAt'](_0x42251a['item'],0x0):_0x429b03['createPositionAfter'](_0x42251a['item']);return _0x429b03['createPositionFromPath'](_0x60cb74,_0x34ba50['path'],_0x34ba50['stickiness']);}class ns extends _0x4bdeaa{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x49d3f5,_0x5593ae){super(_0x49d3f5),this['focusTracker']=new _0x359bba(),this['keystrokes']=new _0x2038c2(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5593ae),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x5cd799({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2d443a=_0x2b00ac=>_0x2b00ac['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2d443a),this['keystrokes']['set']('arrowleft',_0x2d443a),this['keystrokes']['set']('arrowup',_0x2d443a),this['keystrokes']['set']('arrowdown',_0x2d443a);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2c4e46){this['revisionNameInputView']['fieldView']['element']['value']=_0x2c4e46['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2ffffb){const _0xd30ef6=new nt(this['locale'],_0x5c9f1a),_0x3460b2=_0xd30ef6['fieldView'];_0x3460b2['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1a8265=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2ffffb&&(_0x1a8265+='\x20('+m(this['locale'],'optional')+')'),(_0xd30ef6['label']=_0x1a8265,_0x3460b2['on']('input',()=>{this['revisionNameInputValue']=_0x3460b2['element']['value']['trim']();}),_0xd30ef6);}}class u extends _0x42ee13{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4c0966=this['editor'],_0xb61663=_0x4c0966['plugins']['get']('RevisionTracker');_0x4c0966['ui']['componentFactory']['add']('revisionHistory',_0x5a3204=>{const _0x5ee2e5=_0x4d0653(_0x5a3204),_0x5dae41=_0x5ee2e5['panelView']['children'],_0x4a7742=new te(_0x5a3204),_0x5617d9=new _0x308672(_0x5a3204),_0x262a45=new _0x1f53e8(_0x5a3204),_0x2ade64=new _0x308672(_0x5a3204),_0x1a269b=new _0x1f53e8(_0x5a3204);return _0x5ee2e5['bind']('isEnabled')['to'](_0xb61663,'isReady',_0xb61663,'isEnabled',_0x4c0966,'isReadOnly',(_0x124d9e,_0x17434f,_0x597f84)=>_0x124d9e&&_0x17434f&&!_0x597f84),_0x5ee2e5['buttonView']['set']({'icon':_0x31e520['history'],'label':m(_0x5a3204,'Revision\x20history'),'tooltip':!0x0}),_0x262a45['set']({'label':m(_0x5a3204,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x262a45['bind']('isEnabled')['to'](_0xb61663,'isReady',_0xb61663,'isEnabled',_0x4c0966,'isReadOnly',(_0x18e80e,_0x30c1a1,_0x4e1f3c)=>_0x18e80e&&_0x30c1a1&&!_0x4e1f3c),_0x262a45['on']('execute',()=>this['_showDialog']()),_0x1a269b['set']({'label':m(_0x5a3204,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1a269b['bind']('isEnabled')['to'](_0xb61663,'isReady',_0x4c0966,'isReadOnly',(_0x39f783,_0x30a320)=>_0x39f783&&!_0x30a320),_0x1a269b['on']('execute',()=>{_0x4c0966['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5ee2e5['isOpen']=!0x1,_0x4c0966['editing']['view']['focus']();}),_0x5617d9['children']['add'](_0x262a45),_0x2ade64['children']['add'](_0x1a269b),_0x4a7742['role']='menu',_0x4a7742['items']['addMany']([_0x5617d9,_0x2ade64]),_0x5dae41['add'](_0x4a7742),_0x5ee2e5;}),_0x4c0966['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1bf9b8=this['editor'],_0x56e227=_0x1bf9b8['locale'],_0x2a4274=new _0x295491(_0x56e227),_0xae4355=new _0x1cc139(_0x56e227);_0x2a4274['buttonView']['set']({'icon':_0x31e520['history'],'label':m(_0x56e227,'Revision\x20history')});const _0x1e4504=new _0x4d68c0(_0x56e227,_0x2a4274),_0x3e73ea=new _0x5d31e9(_0x56e227);_0x3e73ea['set']({'label':m(_0x56e227,'Save\x20current\x20revision')}),_0x3e73ea['delegate']('execute')['to'](_0x2a4274),_0x3e73ea['on']('execute',()=>{this['_showDialog']();}),_0x1e4504['children']['add'](_0x3e73ea),_0xae4355['items']['add'](_0x1e4504);const _0x1a1a0d=new _0x4d68c0(_0x56e227,_0x2a4274),_0x3f8abc=new _0x5d31e9(_0x56e227);return _0x3f8abc['set']({'label':m(_0x56e227,'Open\x20revision\x20history')}),_0x3f8abc['delegate']('execute')['to'](_0x2a4274),_0x3f8abc['on']('execute',()=>{_0x1bf9b8['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1a1a0d['children']['add'](_0x3f8abc),_0xae4355['items']['add'](_0x1a1a0d),_0x2a4274['panelView']['children']['add'](_0xae4355),_0x2a4274;}['_showDialog'](){const _0x194b43=this['editor'],_0x5dd1f2=_0x194b43['locale'],_0x3b71b3=_0x194b43['plugins']['get']('Dialog'),_0x12e76d=_0x194b43['plugins']['get']('RevisionTracker');function _0xc05b51(_0x493008){_0x194b43['config']['get']('revisionHistory.requireRevisionName')&&''===_0x493008['revisionName']?_0x493008['revisionNameInputView']['errorText']=m(_0x5dd1f2,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x194b43['plugins']['get'](l)['saveRevision']({'name':_0x493008['revisionName']}),_0x3b71b3['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xc05b51(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3b71b3['show']({'id':'revisionSave','title':m(_0x5dd1f2,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x194b43['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3b71b3['hide']()},{'label':m(_0x194b43['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4adcaa){_0x4adcaa['bind']('isEnabled')['to'](_0x12e76d,'isReady',_0x12e76d,'isEnabled',_0x194b43,'isReadOnly',(_0x55b7e8,_0x571e9b,_0x1484a9)=>_0x55b7e8&&_0x571e9b&&!_0x1484a9);},'onExecute':()=>_0xc05b51(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5a8e85=this['editor'],_0x23a777=_0x5a8e85['locale'];this['_saveRevisionFormView']=new ns(_0x23a777,_0x5a8e85['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x4bdeaa{['changeId'];['_model'];constructor(_0x46bea8,_0x3a7b5e){super(_0x46bea8),this['_model']=_0x3a7b5e,this['changeId']=_0x3a7b5e['id'];const _0x3834aa=this['bindTemplate'],_0x46cde7=m(_0x46bea8,_0x3a7b5e['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3a7b5e['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3a7b5e['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3834aa['to']('type',_0x418566=>'ck-revision-change__'+_0x418566)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x46cde7}]},{'text':'\x20'+_0x3a7b5e['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x1e477d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5098ed){super(),this['id']=_0x5098ed['id']||_0x52c6ae(),this['author']=_0x5098ed['author'],this['type']=_0x5098ed['type'],this['data']=_0x5098ed['data']||{},this['rootName']=_0x5098ed['rootName'],this['set']('createdAt',_0x5098ed['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5acf76,_0x3619ea){this['newRevisionId']=_0x5acf76,this['oldRevisionId']=_0x3619ea,this['changes']=new _0x2bc3bf();}['_setChanges'](_0x262e92){for(const _0x12f50c of _0x262e92)this['changes']['add'](_0x12f50c);}}const Y={'c':_0x3929f9,'a':_0x401b00,'e':_0x4ac6ec,'r':_0x3f5a37,'u':_0x479bf9};class d extends _0x42ee13{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4d312d,_0x5ed560,j];}constructor(_0x469e65){super(_0x469e65),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),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',(_0x4f1773,_0x207a3c,_0x47ff79)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x12bfb6=>{for(const _0x505903 of this['editor']['editing']['view']['document']['roots'])_0x47ff79?_0x12bfb6['removeClass']('ck-editor__editable__overlay',_0x505903):_0x12bfb6['addClass']('ck-editor__editable__overlay',_0x505903);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5055fd=>null!==_0x5055fd),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x39049d,_0x47f327,_0x440547)=>_0x39049d&&_0x440547?_0x47f327['changes']['getIndex'](_0x440547):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x282d86,_0x3378c0)=>_0x282d86?_0x3378c0['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5ed560);}['init'](){const _0x27cb6b=this['editor'],_0xdbaef8=new yt(_0x27cb6b,{'direction':'backward'}),_0x13ca64=new yt(_0x27cb6b,{'direction':'forward'});(_0x27cb6b['commands']['add']('showPreviousChange',_0xdbaef8),_0x27cb6b['commands']['add']('showNextChange',_0x13ca64),_0x27cb6b['commands']['add']('restoreRevision',new _t(_0x27cb6b)),this['on']('change:numberOfChanges',()=>{_0xdbaef8['refresh'](),_0x13ca64['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x27cb6b['enableReadOnlyMode']('revision-viewer'),_0x27cb6b['plugins']['has']('WidgetToolbarRepository'))&&_0x27cb6b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x43e8fc){await this['loadRevisionData'](_0x43e8fc);const _0x57c709={};for(const _0xc4bf4c in _0x43e8fc['diffData']){if(_0x43e8fc['diffData'][_0xc4bf4c]['attachChange']&&!_0x43e8fc['diffData'][_0xc4bf4c]['attachChange']['isAttached'])continue;const _0xda7b8b=this['_removeRevisionMarkers'](JSON['parse'](_0x43e8fc['diffData'][_0xc4bf4c]['insertions'])),_0x7e6d3e=this['editor']['editing']['view']['document'],_0x3f545c=new _0x57b9f6(_0x7e6d3e,_0xda7b8b['map'](_0x6be42=>this['_getViewObj'](_0x6be42)));this['editor']['data']['processor']['useFillerType']('marked'),_0x57c709[_0xc4bf4c]=this['editor']['data']['processor']['toData'](_0x3f545c),this['editor']['data']['processor']['useFillerType']('default');}return _0x57c709;}async['getRevisionRootsAttributes'](_0x282bcd){await this['loadRevisionData'](_0x282bcd);const _0x547393={};for(const _0x533df3 in _0x282bcd['diffData'])_0x282bcd['diffData'][_0x533df3]['attachChange']&&!_0x282bcd['diffData'][_0x533df3]['attachChange']['isAttached']||(_0x547393[_0x533df3]=_0x282bcd['diffData'][_0x533df3]['attributesAfter']||{});return _0x547393;}['_removeRevisionMarkers'](_0x711e0){return(_0x711e0=_0x711e0['filter'](_0x408a04=>!_0x408a04['name']||'revision-start'!==_0x408a04['name']&&'revision-end'!==_0x408a04['name']))['forEach'](_0x5113dd=>{'string'!=typeof _0x5113dd&&(_0x5113dd['children']=this['_removeRevisionMarkers'](_0x5113dd['children']),_0x5113dd['attributes']=_0x5113dd['attributes']['filter'](_0x45d2ba=>!_0x45d2ba[0x0]['startsWith']('data-revision-')));}),_0x711e0;}async['compare'](_0x517e60,_0x43d3da,_0x246e32=!0x1){if(!this['isEnabled'])return;const _0x487fac=this['diff'],_0x579c8d=this['repository'],_0x5e6bba='string'==typeof _0x517e60?_0x579c8d['getRevision'](_0x517e60):_0x517e60,_0x3bb8c1='string'==typeof _0x43d3da?_0x579c8d['getRevision'](_0x43d3da):_0x43d3da,_0x589310=_0x5e6bba['id'],_0x1665b6=_0x3bb8c1?_0x3bb8c1['id']:null;if(!_0x246e32&&this['diff']&&this['diff']['newRevisionId']===_0x589310&&this['diff']['oldRevisionId']===_0x1665b6)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x589310,_0x1665b6);const _0x3bec9d=this['_getRevisionsRange'](_0x5e6bba,_0x3bb8c1,!0x0)['map'](_0x9f3252=>this['loadRevisionData'](_0x9f3252));return _0x3bec9d['push'](new Promise(_0x242c5a=>{setTimeout(_0x242c5a,0x14);})),Promise['all'](_0x3bec9d)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1ce561=this['_getDiff'](_0x589310,_0x1665b6);for(const _0xd4d3f0 of _0x1ce561['changes'])this['_changeIdToChange']['set'](_0xd4d3f0['id'],_0xd4d3f0);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1835e2=>{for(const _0x4ffa23 of this['editor']['model']['document']['getRootNames']())_0x1835e2['detachRoot'](_0x4ffa23);for(const _0x1d0b48 of Object['keys'](_0x1ce561['model'])){const _0x760832=_0x1835e2['addRoot'](_0x1d0b48);for(const _0x2a852e of Object['keys'](_0x1ce561['attributes'][_0x1d0b48]))_0x1835e2['setAttribute'](_0x2a852e,_0x1ce561['attributes'][_0x1d0b48][_0x2a852e],_0x760832);_0x1835e2['insert'](_0x1ce561['model'][_0x1d0b48],_0x760832,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1ce561['changes'])),this['isReady']=!0x0;})['catch'](_0x68fd49=>{console['error'](_0x68fd49),this['_cleanUp'](),_0x487fac&&(this['diff']=_0x487fac),this['isReady']=!0x0;});}['addRevisionData'](_0x1a574c,_0x5cffef){const _0x48d065=this['repository']['createRevision'](_0x1a574c);return _0x48d065['on']('_update',(_0x18fb22,_0x1fee92,_0x109bc3)=>_0x5cffef(_0x1fee92,_0x109bc3,_0x48d065)),this['repository']['addRevision'](_0x48d065),_0x48d065;}['loadRevisionData'](_0x35addf){if(!_0x35addf||_0x35addf['diffData'])return Promise['resolve']();{const _0x93d314=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x93d314,'revisionId':_0x35addf['id']})['then'](_0x4f5fa5=>{_0x35addf['_update']({'diffData':_0x4f5fa5['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5101a1=>{for(const _0x4cbe94 of this['editor']['model']['document']['getRootNames']())_0x5101a1['detachRoot'](_0x4cbe94);});}['_sortAndFilterDiffChanges'](_0x591be5){const _0x5d3de7=[],_0xb007a6=new Map();for(const _0x542597 of this['editor']['model']['document']['getRootNames']()){const _0x425c57=this['editor']['editing']['view']['getDomRoot'](_0x542597);if(!_0x425c57)continue;const _0xf1bcd3=_0x425c57['getClientRects']()['item'](0x0);_0xf1bcd3&&(_0x5d3de7['push'](_0x542597),_0xb007a6['set'](_0x542597,_0xf1bcd3));}return _0x5d3de7['sort']((_0x3e3563,_0x44b78f)=>{const _0x348573=_0xb007a6['get'](_0x3e3563),_0x4a91e9=_0xb007a6['get'](_0x44b78f);return _0x348573['y']-_0x4a91e9['y']||_0x348573['x']-_0x4a91e9['x'];}),(_0x591be5=_0x591be5['filter'](_0x1cba84=>_0x5d3de7['includes'](_0x1cba84['rootName'])))['sort']((_0x594ac7,_0x4d3861)=>_0x5d3de7['indexOf'](_0x594ac7['rootName'])-_0x5d3de7['indexOf'](_0x4d3861['rootName'])),_0x591be5;}['_makeTape'](_0x1abd20){const _0x226d99=Array['from'](_0x1abd20['markers'])['filter'](([_0x36403a,_0x5b5ad8])=>_0x36403a['startsWith']('revision:')&&!_0x5b5ad8['isCollapsed']),_0x1ff897=Array['from'](this['editor']['model']['createRangeIn'](_0x1abd20)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x226d99['length'])for(const _0x30feda of _0x1ff897){const [_0x299f30,_0x271dfa]=_0x226d99[0x0],[,_0x17d456,_0x3f7b33]=_0x299f30['split'](':');if(_0x271dfa['end']['isEqual'](_0x30feda['nextPosition'])&&_0x226d99['shift'](),(_0x30feda['previousPosition']['isEqual'](_0x271dfa['start'])||_0x30feda['previousPosition']['isAfter'](_0x271dfa['start']))&&('insertion'==_0x17d456?_0x30feda['isAdded']={'userId':_0x3f7b33}:'deletion'==_0x17d456&&(_0x30feda['isRemoved']={'userId':_0x3f7b33})),0x0==_0x226d99['length'])break;}return _0x1ff897;}['_refreshStartEndIndex'](_0x2bfd94){const _0xcc5833=new Map();for(let _0x458e16=0x0;_0x458e16<_0x2bfd94['length'];_0x458e16++)'text'===_0x2bfd94[_0x458e16]['type']?(_0x2bfd94[_0x458e16]['item']['startIndex']=_0x458e16,_0x2bfd94[_0x458e16]['item']['endIndex']=_0x458e16):('elementStart'===_0x2bfd94[_0x458e16]['type']?_0x2bfd94[_0x458e16]['item']['startIndex']=_0x458e16:'elementEnd'===_0x2bfd94[_0x458e16]['type']&&(_0x2bfd94[_0x458e16]['item']['endIndex']=_0x458e16),_0xcc5833['set'](_0x2bfd94[_0x458e16]['id'],_0x458e16));for(const _0x3ff6b0 of _0xcc5833['values']())'elementStart'===_0x2bfd94[_0x3ff6b0]['type']?_0x2bfd94[_0x3ff6b0]['item']['endIndex']=_0xcc5833['get'](_0x2bfd94[_0x3ff6b0]['pairId']):'elementEnd'===_0x2bfd94[_0x3ff6b0]['type']&&(_0x2bfd94[_0x3ff6b0]['item']['startIndex']=_0xcc5833['get'](_0x2bfd94[_0x3ff6b0]['pairId']));}['_processTape'](_0x3d4264){for(let _0x535bd1=0x0;_0x535bd1<_0x3d4264['length'];_0x535bd1++){if('elementStart'===_0x3d4264[_0x535bd1]['type'])_0x3d4264[_0x535bd1]['item']['startIndex']=_0x535bd1;else{if('elementEnd'===_0x3d4264[_0x535bd1]['type']){_0x3d4264[_0x535bd1]['item']['endIndex']=_0x535bd1;const _0x3481f9=_0x3d4264[_0x535bd1]['item']['startIndex'];_0x3d4264[_0x3481f9]['pairId']=_0x3d4264[_0x535bd1]['id'],_0x3d4264[_0x535bd1]['pairId']=_0x3d4264[_0x3481f9]['id'];}else _0x3d4264[_0x535bd1]['item']['startIndex']=_0x535bd1,_0x3d4264[_0x535bd1]['item']['endIndex']=_0x535bd1,_0x3d4264[_0x535bd1]['pairId']=null;}_0x3d4264[_0x535bd1]['markersStart']||(_0x3d4264[_0x535bd1]['markersStart']=[],_0x3d4264[_0x535bd1]['markersEnd']=[]);}}['_markInsertions'](_0x50981a,_0x4c3725){const _0x2f930d=_0x50981a['filter'](_0x5c8ab2=>!_0x5c8ab2['isAdded']);for(let _0x68622a=0x0;_0x68622a<_0x4c3725['length'];_0x68622a++)_0x4c3725[_0x68622a]['isAdded']&&(_0x2f930d[_0x68622a]['isAdded']=_0x4c3725[_0x68622a]['isAdded']);}['_makeModelFromViewString'](_0x357a8d){const _0x87c7bb=JSON['parse'](_0x357a8d),_0x1f323e=this['editor']['editing']['view']['document'],_0x61d65d=new _0x57b9f6(_0x1f323e,_0x87c7bb['map'](_0x44af22=>this['_getViewObj'](_0x44af22)));return this['editor']['data']['toModel'](_0x61d65d);}['_getViewObj'](_0x57531b){const _0x3826ea=this['editor']['editing']['view']['document'];if('string'==typeof _0x57531b)return new _0x45ae04(_0x3826ea,_0x57531b);{const _0x405c39=_0x57531b['children']['map'](_0x22d7ef=>this['_getViewObj'](_0x22d7ef));return new(Y[_0x57531b['type']]||_0x209a3b)(_0x3826ea,_0x57531b['name'],_0x57531b['attributes'],_0x405c39);}}['_getDiff'](_0x114a4d,_0x31c6e6=null){const _0x28cbdf=this['repository']['getRevision'](_0x114a4d),_0xf9d78f=_0x31c6e6?this['repository']['getRevision'](_0x31c6e6):null,_0x51755f=this['_getRevisionsRange'](_0x28cbdf,_0xf9d78f),_0x5364e0=_0x51755f[_0x51755f['length']-0x1],_0x13b1a2=new Map(),_0x54797c={'model':{},'attributes':{},'changes':[]},_0x4ae113=new Set(),_0x1bf488=new Map();for(let _0x1cc943=_0x51755f['length']-0x1;_0x1cc943>=0x0;_0x1cc943--){const _0x3ab26c=_0x51755f[_0x1cc943];for(const _0x33933d of Object['keys'](_0x3ab26c['diffData']))if(_0x3ab26c['diffData'][_0x33933d]['attachChange']){const _0x10a176=_0x3ab26c['diffData'][_0x33933d]['attachChange'];_0x10a176['isAttached']?(_0x4ae113['add'](_0x33933d),_0x1bf488['has'](_0x33933d)&&_0x1bf488['get'](_0x33933d)['userId']==_0x10a176['userId']?_0x1bf488['delete'](_0x33933d):_0x1bf488['set'](_0x33933d,_0x10a176)):_0x1bf488['has'](_0x33933d)?(_0x4ae113['delete'](_0x33933d),_0x1bf488['delete'](_0x33933d)):(_0x4ae113['add'](_0x33933d),_0x1bf488['set'](_0x33933d,_0x10a176));}else _0x4ae113['add'](_0x33933d);}for(const _0x2e9eac of _0x4ae113){const _0x4db1ef=_0x1bf488['has'](_0x2e9eac)&&!_0x1bf488['get'](_0x2e9eac)['isAttached'];let _0x43df73=_0x4db1ef?_0x51755f['length']-0x1:0x0;const _0x11d3ba=_0x4db1ef?-0x1:0x1;for(;_0x51755f[_0x43df73];){const _0x59f1bf=_0x51755f[_0x43df73];if(_0x59f1bf['diffData'][_0x2e9eac]){const _0x7e6726=_0x4db1ef?_0x59f1bf['diffData'][_0x2e9eac]['attributesBefore']:_0x59f1bf['diffData'][_0x2e9eac]['attributesAfter'];_0x54797c['attributes'][_0x2e9eac]=_0x7e6726?_0x3b3b51(_0x7e6726):{};break;}_0x43df73+=_0x11d3ba;}}for(const _0x4d2e30 of _0x51755f){_0x4d2e30['model']={};for(const _0x87625f of _0x4d2e30['authors'])_0x13b1a2['set'](_0x87625f['id'],_0x87625f);for(const _0x9094a6 of _0x4ae113){const _0x2658bc=_0x4d2e30['diffData'][_0x9094a6]?_0x4d2e30['diffData'][_0x9094a6]['insertions']:'[]',_0x41e613=_0x4d2e30['diffData'][_0x9094a6]?_0x4d2e30['diffData'][_0x9094a6]['deletions']:'[]';_0x4d2e30['model'][_0x9094a6]={'insertions':this['_makeModelFromViewString'](_0x2658bc),'deletions':this['_makeModelFromViewString'](_0x41e613)};}}for(const _0x626251 of _0x4ae113){let _0x5f3f42=null,_0x74b684=0x0;const _0x4c67a3=new Map(Array['from'](_0x28cbdf['model'][_0x626251]['insertions']['markers'])['filter'](([_0x45f63b])=>!_0x45f63b['startsWith']('revision:')));let _0x37efc2=0x0;for(const _0x5b3532 of _0x51755f){const _0x460a31=this['_makeTape'](_0x5b3532['model'][_0x626251]['insertions']);_0x5b3532==_0x28cbdf?(_0x5f3f42=_0x460a31,_0x74b684=_0x5f3f42['length'],_0x5f3f42['forEach'](_0x595f09=>{_0x595f09['id']=_0x37efc2++;}),this['_processTape'](_0x5f3f42)):this['_markInsertions'](_0x5f3f42,_0x460a31);const _0x157f63=_0x5f3f42['filter'](_0x47b67d=>!_0x47b67d['isAdded'])['map'](_0x547d76=>_0x547d76['id']);let _0x43103d=0x0;const _0x5305bc=this['_makeTape'](_0x5b3532['model'][_0x626251]['deletions']);_0x5305bc['forEach'](_0x2c15eb=>{_0x2c15eb['isRemoved']?_0x2c15eb['id']=_0x74b684++:_0x2c15eb['id']=_0x157f63[_0x43103d++];}),this['_processTape'](_0x5305bc),this['_setDistance'](_0x5f3f42,'isAdded'),this['_setDistance'](_0x5305bc,'isRemoved'),_0x5b3532==_0x28cbdf&&this['_markMarkers'](_0x5f3f42,_0x4c67a3),_0x5f3f42=this['_joinTapes'](_0x5f3f42,_0x5305bc),this['_refreshStartEndIndex'](_0x5f3f42),this['_setDistance'](_0x5f3f42,'isRemoved');}_0x5f3f42=_0x5f3f42['filter'](_0x572405=>!(_0x572405['isAdded']&&_0x572405['isRemoved']));const _0x548b5e=new Map(_0x5364e0['model'][_0x626251]['deletions']['markers']),_0xdbda7b=new Set(_0x4c67a3['keys']());for(const _0x595dfa of _0x548b5e['keys']())_0xdbda7b['delete'](_0x595dfa);this['_markSuggestions'](_0x5f3f42,_0xdbda7b),this['_fixObsoleteTags'](_0x5f3f42),_0x5f3f42=this['_removeMissingPairs'](_0x5f3f42),_0x5f3f42=this['_markMismatchedRemovedTags'](_0x5f3f42),_0x5f3f42=this['_removeUnsupportedChanges'](_0x5f3f42);const {root:_0xdc802d,changes:_0x4f3be7}=this['_makeModelFromTape'](_0x5f3f42,_0x13b1a2,_0x626251);_0x54797c['model'][_0x626251]=_0xdc802d;const _0x55fc7c=_0x1bf488['get'](_0x626251);if(_0x55fc7c){const _0x29a662=_0x13b1a2['get'](_0x55fc7c['userId']),_0x20c62b=new r({'author':_0x29a662,'type':_0x55fc7c['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x626251});_0x4f3be7['unshift'](_0x20c62b),_0x54797c['attributes'][_0x626251]['revisionHistoryAttachChange']=_0x20c62b['id'];}_0x54797c['changes']=_0x54797c['changes']['concat'](_0x4f3be7);}return _0x54797c;}['_markMarkers'](_0x24022d,_0x19dea8){for(let _0x2a750f=0x0;_0x2a750f<_0x24022d['length'];_0x2a750f++)for(const [_0x4159a9,_0x2a6f01]of _0x19dea8)_0x2a6f01['start']['isEqual'](_0x24022d[_0x2a750f]['previousPosition'])&&_0x24022d[_0x2a750f]['markersStart']['push'](_0x4159a9),_0x2a6f01['end']['isEqual'](_0x24022d[_0x2a750f]['nextPosition'])&&_0x24022d[_0x2a750f]['markersEnd']['push'](_0x4159a9);}['_joinTapes'](_0x23e8e5,_0x40428c){let _0x205567=[],_0x15fdd4=0x0,_0x508177=0x0;for(;_0x15fdd4<_0x23e8e5['length']||_0x508177<_0x40428c['length'];){const _0x1c8fe5=_0x23e8e5[_0x15fdd4]||{},_0x45e884=_0x40428c[_0x508177]||{};if(_0x1c8fe5['id']==_0x45e884['id'])_0x15fdd4++,_0x508177++,_0x205567['push'](_0x1c8fe5);else{if(_0x45e884['isRemoved']&&_0x1c8fe5['isAdded']){const {commonTape:_0x2d773c,iEnd:_0x30b185,jEnd:_0x53e5fa}=this['_threeWayMerge'](_0x23e8e5,_0x15fdd4,_0x40428c,_0x508177);_0x205567=_0x205567['concat'](_0x2d773c),_0x15fdd4=_0x30b185,_0x508177=_0x53e5fa;}else _0x45e884['isRemoved']?(_0x508177++,_0x205567['push'](_0x45e884)):(_0x15fdd4++,_0x205567['push'](_0x1c8fe5));}}return _0x205567;}['_markSuggestions'](_0x3ec444,_0x11e2a5){const _0x36c5b2=[];for(let _0x125d64=0x0;_0x125d64<_0x3ec444['length'];_0x125d64++){for(let _0x12d38e=0x0;_0x12d38e<_0x3ec444[_0x125d64]['markersStart']['length'];_0x12d38e++){const _0xf290ca=_0x3ec444[_0x125d64]['markersStart'][_0x12d38e];if(!_0x11e2a5['has'](_0xf290ca))continue;const {group:_0x4c2479,type:_0x214028,authorId:_0xedcb82}=_0x30f469(_0xf290ca);'revision-suggestion'!=_0x4c2479||'insertion'!=_0x214028&&'deletion'!=_0x214028||(_0x36c5b2['unshift']({'type':_0x214028,'name':_0xf290ca,'userId':_0xedcb82}),_0x3ec444[_0x125d64]['markersStart']['splice'](_0x12d38e,0x1),_0x12d38e--);}_0x10313b(_0x3ec444[_0x125d64]);for(let _0x3e87b3=0x0;_0x3e87b3<_0x3ec444[_0x125d64]['markersEnd']['length'];_0x3e87b3++){const _0x1755a7=_0x3ec444[_0x125d64]['markersEnd'][_0x3e87b3];if(!_0x11e2a5['has'](_0x1755a7))continue;const {group:_0x320366,type:_0x5c1a0c}=_0x30f469(_0x1755a7);if('revision-suggestion'!=_0x320366||'insertion'!=_0x5c1a0c&&'deletion'!=_0x5c1a0c)continue;_0x3ec444[_0x125d64]['markersEnd']['splice'](_0x3e87b3,0x1),_0x3e87b3--;const _0x71137b=_0x36c5b2['findIndex'](_0x3db7fb=>_0x3db7fb['name']==_0x1755a7);_0x71137b>-0x1&&_0x36c5b2['splice'](_0x71137b,0x1);}}function _0x30f469(_0x11fe27){const _0x5b83d0=_0x11fe27['split'](':');return{'group':_0x5b83d0[0x0],'type':_0x5b83d0[0x1],'subType':_0x5b83d0['length']>=0x5?_0x5b83d0[0x2]:null,'id':_0x5b83d0['length']<0x5?_0x5b83d0[0x2]:_0x5b83d0[0x3],'authorId':_0x5b83d0['length']<0x5?_0x5b83d0[0x3]:_0x5b83d0[0x4],'markerCount':0x6==_0x5b83d0['length']?_0x5b83d0[0x5]:null};}function _0x10313b(_0x3e8b56){for(let _0x1c739d=0x0;_0x1c739d<_0x36c5b2['length'];_0x1c739d++){if(_0x3e8b56['isAdded']&&'insertion'==_0x36c5b2[_0x1c739d]['type'])return _0x3e8b56['isAddSuggestion']=_0x36c5b2[_0x1c739d],void delete _0x3e8b56['isAdded'];if(!_0x3e8b56['isAdded']&&!_0x3e8b56['isRemoved']&&'deletion'==_0x36c5b2[_0x1c739d]['type'])return void(_0x3e8b56['isRemoveSuggestion']=_0x36c5b2[_0x1c739d]);}}}['_setDistance'](_0x874f40,_0x47db51){let _0x379055=0x0,_0x33fcc0=!0x1;const _0x885ad3=new Map();for(const _0x521ddd of _0x874f40)_0x521ddd[_0x47db51]?_0x33fcc0&&(_0x379055++,_0x33fcc0=!0x1):(_0x379055++,_0x33fcc0=!0x0),_0x885ad3['set'](_0x521ddd['id'],_0x379055);for(let _0x1f2bc8=0x0;_0x1f2bc8<_0x874f40['length'];_0x1f2bc8++){if('isRemoved'==_0x47db51&&_0x874f40[_0x1f2bc8]['isAdded']||'isAdded'==_0x47db51&&_0x874f40[_0x1f2bc8]['isRemoved'])continue;if('text'==_0x874f40[_0x1f2bc8]['type']){_0x874f40[_0x1f2bc8]['distance']=0x0;continue;}const _0x275d55=_0x885ad3['get'](_0x874f40[_0x1f2bc8]['pairId']),_0x1f4706=_0x885ad3['get'](_0x874f40[_0x1f2bc8]['id']);_0x874f40[_0x1f2bc8]['distance']=_0x275d55-_0x1f4706;}}['_getRevisionsRange'](_0x3edec6,_0x5aebfb,_0x22a3e3=!0x1){const _0x1a53a9=[];let _0x2d14c0=this['repository']['getIndex'](_0x3edec6),_0x97d56b=this['repository']['getIndex'](_0x5aebfb);for(-0x1==_0x97d56b&&(_0x97d56b=this['repository']['_revisions']['length'],_0x22a3e3=!0x1);_0x2d14c0<_0x97d56b;)_0x1a53a9['push'](this['repository']['getRevision'](_0x2d14c0)),_0x2d14c0++;return _0x22a3e3&&_0x1a53a9['push'](this['repository']['getRevision'](_0x2d14c0)),_0x1a53a9;}['_threeWayMerge'](_0x4657b3,_0x25c0b9,_0xed929d,_0x478ad7){const _0x5a848c=this['editor']['model']['schema'];let _0x52f16a=_0x25c0b9;for(;_0x4657b3[_0x52f16a]&&_0x4657b3[_0x52f16a]['isAdded'];)_0x52f16a++;let _0x532b05=_0x478ad7;for(;_0xed929d[_0x532b05]&&_0xed929d[_0x532b05]['isRemoved'];)_0x532b05++;_0x5b9f00(_0x4657b3,_0x25c0b9,_0x52f16a),_0x5b9f00(_0xed929d,_0x478ad7,_0x532b05);const _0x17cdd2=_0xed929d['slice'](_0x478ad7,_0x532b05)['concat'](_0x4657b3['slice'](_0x25c0b9,_0x52f16a));return _0x17cdd2['sort']((_0x259ca2,_0x4323ae)=>_0x259ca2['side']!=_0x4323ae['side']?_0x259ca2['side']-_0x4323ae['side']:_0x259ca2['level']!=_0x4323ae['level']?_0x259ca2['level']-_0x4323ae['level']:_0x259ca2['distance']!=_0x4323ae['distance']?_0x4323ae['distance']-_0x259ca2['distance']:!!_0x259ca2['isAdded']!=!!_0x4323ae['isAdded']?-0x1==_0x259ca2['side']||0x0==_0x259ca2['side']?_0x259ca2['isAdded']?-0x1:0x1:_0x259ca2['isAdded']?0x1:-0x1:_0x259ca2['index']-_0x4323ae['index']),{'commonTape':_0x17cdd2,'iEnd':_0x52f16a,'jEnd':_0x532b05};function _0x5b9f00(_0x57835c,_0x24265c,_0x1480a4){let _0xb80564=-0x1,_0x532268=Number['POSITIVE_INFINITY'],_0x3c0dd5=!0x0;for(let _0xd09540=_0x24265c;_0xd09540<_0x1480a4;_0xd09540++)if(_0x5a848c['isInline'](_0x57835c[_0xd09540]['item'])||(_0x3c0dd5=!0x1),_0x57835c[_0xd09540]['item']['startIndex']<_0x24265c&&(_0xb80564=_0xd09540),_0x57835c[_0xd09540]['item']['endIndex']>=_0x1480a4){_0x532268=_0xd09540;break;}_0x3c0dd5&&(_0xb80564=_0x1480a4-0x1);for(let _0xf4b5f6=_0x24265c;_0xf4b5f6<_0x1480a4;_0xf4b5f6++)_0x57835c[_0xf4b5f6]['side']=_0xf4b5f6<=_0xb80564?-0x1:_0xf4b5f6<_0x532268?0x0:0x1,_0x57835c[_0xf4b5f6]['index']=_0xf4b5f6;let _0x342ffd=0x0;for(let _0x119bbc=_0x24265c;_0x119bbc<=_0xb80564;_0x119bbc++)0x0==_0x57835c[_0x119bbc]['distance']?_0x57835c[_0x119bbc]['level']=_0x342ffd:(_0x342ffd++,_0x57835c[_0x119bbc]['level']=_0x342ffd,_0x342ffd++);for(let _0x405fb0=_0x24265c;_0x405fb0<_0x1480a4;_0x405fb0++)0x0==_0x57835c[_0x405fb0]['side']&&(_0x57835c[_0x405fb0]['level']=_0x342ffd);_0x342ffd=0x0;for(let _0x22cf3d=_0x1480a4-0x1;_0x22cf3d>=_0x532268;_0x22cf3d--)0x0==_0x57835c[_0x22cf3d]['distance']?_0x57835c[_0x22cf3d]['level']=_0x342ffd:(_0x342ffd--,_0x57835c[_0x22cf3d]['level']=_0x342ffd,_0x342ffd--);}}['_fixObsoleteTags'](_0x273a7f){const _0x122e95=new Map(),_0x59f20c=this['editor']['model']['schema'];for(let _0x2c9c77=0x1;_0x2c9c77<_0x273a7f['length'];_0x2c9c77++){let _0x3984fb,_0x3ea0cb,_0xdec249;const _0x180af5=_0x273a7f[_0x2c9c77],_0x550ded=_0x273a7f[_0x2c9c77-0x1];if('text'==_0x180af5['type'])continue;if(_0x180af5['type']!=_0x550ded['type'])continue;if(!_0x59f20c['isBlock'](_0x550ded['item'])||_0x59f20c['isLimit'](_0x550ded['item']))continue;if(!_0x59f20c['isBlock'](_0x180af5['item'])||_0x59f20c['isLimit'](_0x180af5['item']))continue;if((_0x273a7f[_0x2c9c77]['isAdded']||_0x273a7f[_0x2c9c77]['isAddSuggestion'])&&_0x273a7f[_0x2c9c77-0x1]['isRemoved'])_0x3984fb=_0x273a7f[_0x2c9c77],_0x3ea0cb=_0x273a7f[_0x2c9c77-0x1],_0xdec249=_0x2c9c77-0x1;else{if(!_0x273a7f[_0x2c9c77]['isRemoved']||!_0x273a7f[_0x2c9c77-0x1]['isAdded']&&!_0x273a7f[_0x2c9c77-0x1]['isAddSuggestion'])continue;_0x3984fb=_0x273a7f[_0x2c9c77-0x1],_0x3ea0cb=_0x273a7f[_0x2c9c77],_0xdec249=_0x2c9c77;}const _0x145592=_0x3984fb['level']==_0x3ea0cb['level'],_0x1ffd31=Math['abs'](_0x3984fb['level'])<Math['abs'](_0x3ea0cb['level'])&&0x0==_0x3ea0cb['distance'];(_0x145592||_0x1ffd31)&&(_0x122e95['set'](_0x3ea0cb['id'],_0x3984fb['id']),_0x273a7f['splice'](_0xdec249,0x1),_0x2c9c77--,_0x3984fb['isAdded']=!0x1);}for(let _0x21ac64=0x0;_0x21ac64<_0x273a7f['length'];_0x21ac64++)_0x122e95['has'](_0x273a7f[_0x21ac64]['pairId'])&&(_0x273a7f[_0x21ac64]['pairId']=_0x122e95['get'](_0x273a7f[_0x21ac64]['pairId']));}['_removeMissingPairs'](_0x4507eb){const _0x10d3a4=new Set(_0x4507eb['map'](_0x36e618=>_0x36e618['id']));for(let _0x5bd703=0x0;_0x5bd703<_0x4507eb['length'];_0x5bd703++)_0x10d3a4['has'](_0x4507eb[_0x5bd703]['pairId'])||0x0==_0x4507eb[_0x5bd703]['distance']||(_0x4507eb[_0x5bd703]['isIncorrect']=!0x0);return _0x4507eb['filter'](_0x4f0718=>!_0x4f0718['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4dcda8){const _0xba2139=new Set();for(let _0x48bcb1=0x0;_0x48bcb1<_0x4dcda8['length'];_0x48bcb1++){if(_0xba2139['has'](_0x4dcda8[_0x48bcb1]['id'])&&_0x4dcda8[_0x48bcb1]['isRemoved']&&(_0x4dcda8[_0x48bcb1]['isIncorrect']=!0x0),_0x4dcda8[_0x48bcb1]['isIncorrect'])continue;if(0x0==_0x4dcda8[_0x48bcb1]['distance'])continue;if('elementStart'!=_0x4dcda8[_0x48bcb1]['type'])continue;if(null==_0x4dcda8[_0x48bcb1]['pairId'])continue;let _0x4a9e2d=_0x48bcb1+0x1,_0x51845c=0x0;for(;_0x4dcda8[_0x4a9e2d]['id']!=_0x4dcda8[_0x48bcb1]['pairId'];)'elementStart'==_0x4dcda8[_0x4a9e2d]['type']?_0x51845c++:'elementEnd'==_0x4dcda8[_0x4a9e2d]['type']&&_0x51845c--,_0x4a9e2d++;if(0x0!=_0x51845c){if(_0x4dcda8[_0x48bcb1]['isRemoved'])_0x4dcda8[_0x48bcb1]['isIncorrect']=!0x0;else{for(;_0x4a9e2d!=_0x48bcb1;)_0x4dcda8[_0x4a9e2d]['isRemoved']&&0x0!=_0x4dcda8[_0x4a9e2d]['distance']&&(_0x4dcda8[_0x4a9e2d]['isIncorrect']=!0x0,_0xba2139['add'](_0x4dcda8[_0x4a9e2d]['pairId'])),_0x4a9e2d--;}}}return _0x4dcda8['filter'](_0x4d640e=>!_0x4d640e['isIncorrect']);}['_removeUnsupportedChanges'](_0x23738e){const _0x199647=this['editor']['model']['schema'];for(let _0x23eb08=0x0;_0x23eb08<_0x23738e['length'];_0x23eb08++){if(!(_0x23738e[_0x23eb08]['isAdded']||_0x23738e[_0x23eb08]['isAddSuggestion']||_0x23738e[_0x23eb08]['isRemoved']||_0x23738e[_0x23eb08]['isRemoveSuggestion']))continue;if(0x0==_0x23738e[_0x23eb08]['distance'])continue;const _0x588817=_0x23738e[_0x23eb08]['item'];_0x199647['isBlock'](_0x588817)||_0x199647['isLimit'](_0x588817)||(_0x23738e[_0x23eb08]['isAdded']&&delete _0x23738e[_0x23eb08]['isAdded'],_0x23738e[_0x23eb08]['isAddSuggestion']&&delete _0x23738e[_0x23eb08]['isAddSuggestion'],_0x23738e[_0x23eb08]['isRemoveSuggestion']&&delete _0x23738e[_0x23eb08]['isRemoveSuggestion'],_0x23738e[_0x23eb08]['isRemoved']&&(_0x23738e[_0x23eb08]['isIncorrect']=!0x0));}return _0x23738e['filter'](_0x4697d2=>!_0x4697d2['isIncorrect']);}['_makeModelFromTape'](_0x4b4e1f,_0x51cd6b,_0x2953bb){const _0x55168b=new mt(),_0x29d1c7=[],_0x5d15e4=new Map(),_0x32356c=this['editor']['model'],_0x501a2a=_0x32356c['schema'],_0x180c0c=[_0x55168b],_0x179b5e={},_0x12cd36={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x327e58=null;const _0x1846a3=[0x0];for(let _0x4d1d1b=0x0;_0x4d1d1b<_0x4b4e1f['length'];_0x4d1d1b++)if('elementStart'===_0x4b4e1f[_0x4d1d1b]['type']){_0x4b4e1f[_0x4d1d1b]['previousPosition']=_0x32356c['createPositionFromPath'](_0x55168b,_0x1846a3);const _0x5dbe1c=new ft(_0x4b4e1f[_0x4d1d1b]['item']['name'],_0x4b4e1f[_0x4d1d1b]['item']['getAttributes']());_0x180c0c[0x0]['_appendChild'](_0x5dbe1c),_0x1846a3['push'](0x0),_0x180c0c['unshift'](_0x5dbe1c),_0x4b4e1f[_0x4d1d1b]['nextPosition']=_0x32356c['createPositionFromPath'](_0x55168b,_0x1846a3);}else'elementEnd'===_0x4b4e1f[_0x4d1d1b]['type']?(_0x180c0c['shift'](),_0x4b4e1f[_0x4d1d1b]['previousPosition']=_0x32356c['createPositionFromPath'](_0x55168b,_0x1846a3),_0x1846a3['pop'](),_0x1846a3[_0x1846a3['length']-0x1]++,_0x4b4e1f[_0x4d1d1b]['nextPosition']=_0x32356c['createPositionFromPath'](_0x55168b,_0x1846a3)):(_0x4b4e1f[_0x4d1d1b]['previousPosition']=_0x32356c['createPositionFromPath'](_0x55168b,_0x1846a3),_0x327e58?_0x327e58['_data']+=_0x4b4e1f[_0x4d1d1b]['item']['data']:_0x327e58=new wt(_0x4b4e1f[_0x4d1d1b]['item']['data'],_0x4b4e1f[_0x4d1d1b]['item']['getAttributes']()),_0x4b4e1f[_0x4d1d1b+0x1]&&'text'===_0x4b4e1f[_0x4d1d1b+0x1]['type']&&_0xef2b5b(_0x327e58,_0x4b4e1f[_0x4d1d1b+0x1]['item'])||(_0x180c0c[0x0]['_appendChild'](_0x327e58),_0x327e58=null),_0x1846a3[_0x1846a3['length']-0x1]+=_0x4b4e1f[_0x4d1d1b]['item']['offsetSize'],_0x4b4e1f[_0x4d1d1b]['nextPosition']=_0x32356c['createPositionFromPath'](_0x55168b,_0x1846a3));for(let _0x312274=0x0;_0x312274<_0x4b4e1f['length'];_0x312274++){const _0x6c6766=_0x4b4e1f[_0x312274]['previousPosition'],_0x378433=_0x4b4e1f[_0x312274]['nextPosition'];for(const _0x3612c2 of _0x4b4e1f[_0x312274]['markersStart'])_0x5d15e4['set'](_0x3612c2,{'start':_0x6c6766,'end':null});_0x450a4b('isRemoveSuggestion',_0x312274,_0x6c6766,_0x378433),_0x450a4b('isAddSuggestion',_0x312274,_0x6c6766,_0x378433),_0x450a4b('isRemoved',_0x312274,_0x6c6766,_0x378433),_0x450a4b('isAdded',_0x312274,_0x6c6766,_0x378433);for(const _0x33e238 of _0x4b4e1f[_0x312274]['markersEnd']){_0x5d15e4['get'](_0x33e238)['end']=_0x378433;}}for(const [_0x57b361,_0x509346]of _0x5d15e4){const _0x557448=this['editor']['model']['createRange'](_0x509346['start'],_0x509346['end']);_0x55168b['markers']['set'](_0x57b361,_0x557448);}return _0x29d1c7['sort']((_0x4c106d,_0x2963b0)=>{const _0x2d6297=_0x55168b['markers']['get']('revision:'+_0x4c106d['id']),_0x2a0363=_0x55168b['markers']['get']('revision:'+_0x2963b0['id']);return _0x2d6297['start']['isBefore'](_0x2a0363['start'])?-0x1:_0x2d6297['start']['isAfter'](_0x2a0363['start'])?0x1:_0x2d6297['end']['isBefore'](_0x2a0363['end'])?-0x1:_0x2d6297['end']['isAfter'](_0x2a0363['end'])?0x1:'add'===_0x4c106d['type']?-0x1:0x1;}),{'root':_0x55168b,'changes':_0x29d1c7};function _0x450a4b(_0x5cb5fd,_0x1c86c0,_0x54ba9,_0x2d8dd1){const _0x293a54=!!_0x4b4e1f[_0x1c86c0][_0x5cb5fd],_0x38cbdf=_0x293a54?_0x4b4e1f[_0x1c86c0][_0x5cb5fd]['userId']:null,_0x524f28=_0x1c86c0===_0x4b4e1f['length']-0x1,_0x4fbd27=_0x12cd36[_0x5cb5fd][0x0],_0x17cdd7=_0x501a2a['isObject'](_0x4b4e1f[_0x1c86c0]['item']);!_0x179b5e[_0x5cb5fd]&&_0x293a54?_0x179b5e[_0x5cb5fd]={'start':_0x54ba9,'tapeItem':_0x4b4e1f[_0x1c86c0],'userId':_0x38cbdf,'type':_0x5cb5fd}:_0x179b5e[_0x5cb5fd]&&!_0x293a54?(_0x179b5e[_0x5cb5fd]['end']=_0x54ba9,_0x4f3ceb(_0x179b5e[_0x5cb5fd]),_0x179b5e[_0x5cb5fd]=null):_0x179b5e[_0x5cb5fd]&&_0x293a54&&_0x179b5e[_0x5cb5fd]['userId']!==_0x38cbdf&&(_0x179b5e[_0x5cb5fd]['end']=_0x54ba9,_0x4fbd27&&_0x4fbd27['userId']===_0x179b5e[_0x5cb5fd]['userId']||_0x4f3ceb(_0x179b5e[_0x5cb5fd]),_0x179b5e[_0x5cb5fd]={'start':_0x54ba9,'tapeItem':_0x4b4e1f[_0x1c86c0],'userId':_0x38cbdf,'type':_0x5cb5fd}),_0x179b5e[_0x5cb5fd]&&_0x17cdd7&&('elementStart'!==_0x4b4e1f[_0x1c86c0]['type']||_0x4fbd27&&_0x4fbd27['userId']===_0x38cbdf||_0x12cd36[_0x5cb5fd]['unshift']({'userId':_0x38cbdf,'object':_0x4b4e1f[_0x1c86c0]['item'],'change':_0x179b5e[_0x5cb5fd]}),'elementEnd'===_0x4b4e1f[_0x1c86c0]['type']&&_0x4fbd27&&_0x4fbd27['object']===_0x4b4e1f[_0x1c86c0]['item']&&(_0x12cd36[_0x5cb5fd]['shift'](),_0x179b5e[_0x5cb5fd]=_0x4fbd27['change'])),_0x179b5e[_0x5cb5fd]&&_0x524f28&&(_0x179b5e[_0x5cb5fd]['end']=_0x2d8dd1,_0x4f3ceb(_0x179b5e[_0x5cb5fd]),_0x179b5e[_0x5cb5fd]=null);}function _0x4f3ceb({start:_0x261cc7,end:_0x5b596c,tapeItem:_0x44fc9c,userId:_0x3df6ef,type:_0x1c0d4c}){const _0x55ddc1=_0x44fc9c['item'],_0x32a42d=_0x32356c['schema']['isBlock'](_0x55ddc1)&&!_0x32356c['schema']['isLimit'](_0x55ddc1),_0x5ba7d0=_0x261cc7['nodeAfter']==_0x5b596c['parent']&&_0x5b596c['isAtStart'];if(_0x32a42d&&_0x5ba7d0)return;const _0x322295=_0x32356c['createRange'](_0x261cc7,_0x5b596c),_0x3154ca=_0x51cd6b['get'](_0x3df6ef),_0x588097=new r({'author':_0x3154ca,'type':'isAdded'==_0x1c0d4c||'isAddSuggestion'==_0x1c0d4c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1c0d4c||'isRemoveSuggestion'==_0x1c0d4c},'createdAt':new Date(),'rootName':_0x2953bb});_0x29d1c7['push'](_0x588097),_0x55168b['markers']['set']('revision:'+_0x588097['id'],_0x322295);}function _0xef2b5b(_0x531db6,_0x54bc2c){const _0x953199=_0x531db6['getAttributes'](),_0x534790=_0x54bc2c['getAttributes']();for(const _0x31607d of _0x953199){if(_0x31607d[0x1]!==_0x54bc2c['getAttribute'](_0x31607d[0x0]))return!0x1;_0x534790['next']();}return _0x534790['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4efdf2=>{const _0x282a1f=_0x4efdf2['markerName']['split'](':')[0x1],_0x5b0173=this['_getChangeFromId'](_0x282a1f);if(!_0x5b0173)return null;const _0x163048='add'==_0x5b0173['type']?'insertion':'deletion',_0x1c2c54=['ck-suggestion-marker','ck-suggestion-marker-'+_0x163048];return _0x5b0173['data']['isSuggestion']&&_0x1c2c54['push']('ck-suggestion-marker-'+_0x163048+'-new'),this['activeChange']==_0x5b0173&&_0x1c2c54['push']('ck-suggestion-marker--active'),{'classes':_0x1c2c54,'attributes':{'data-change-id':_0x282a1f}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5acc24=>{_0x5acc24['on']('element:pre',(_0x12b518,_0x1e8f70,_0x4df620)=>{const _0x100a78=_0x1e8f70['viewItem']['getChild'](0x0);if(!_0x100a78||!_0x100a78['is']('element','code'))return;if(!_0x4df620['consumable']['consume'](_0x100a78,{'attributes':['vid_start','vid_end']}))return;const _0x195f3d=_0x1e8f70['modelRange']['start']['nodeAfter'];_0x4df620['writer']['setAttribute']('vid_start',_0x100a78['getAttribute']('vid_start'),_0x195f3d),_0x4df620['writer']['setAttribute']('vid_end',_0x100a78['getAttribute']('vid_end'),_0x195f3d);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3e34dc=>{_0x3e34dc['on']('element',(_0x48cada,_0x33ec1d,_0xf3860f)=>{if(!_0xf3860f['consumable']['consume'](_0x33ec1d['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x33ec1d['modelRange']['isCollapsed'])return;const _0x535c67=_0x33ec1d['modelRange']['start']['nodeAfter'];_0x535c67['hasAttribute']('vid_start')||_0x535c67['hasAttribute']('vid')||(_0xf3860f['writer']['setAttribute']('vid_start',_0x33ec1d['viewItem']['getAttribute']('vid_start'),_0x535c67),_0xf3860f['writer']['setAttribute']('vid_end',_0x33ec1d['viewItem']['getAttribute']('vid_end'),_0x535c67));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x441469=>_0x441469['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x14398f,[,_0x5c0f4b])=>{['vid_start','vid_end','vid']['includes'](_0x5c0f4b)&&(_0x14398f['return']=!0x0,_0x14398f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x260b80=>{_0x260b80['on']('attribute:vid',(_0x4bbf67,_0x4c1600,_0x2a7089)=>{if('\x20'!=_0x4c1600['item']['data']||_0x4c1600['item']['parent']['maxOffset']>0x1)return;if(!_0x2a7089['consumable']['consume'](_0x4c1600['item'],_0x4bbf67['name']))return;const _0x4c6157=_0x2a7089['writer'],_0x4bbe52=_0x2a7089['mapper']['toViewRange'](_0x4c1600['range']);_0x4c6157['wrap'](_0x4bbe52,_0x4c6157['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5dc82b){const _0x4a7be4=_0x5dc82b['plugins']['get']('RevisionViewer');return(_0x36e9ea,_0x2e5205,_0x3164d5)=>{const _0x49921e=_0x2e5205['markerName']['split'](':')[0x1],_0x1ac38f=_0x4a7be4['_getChangeFromId'](_0x49921e);if(!_0x1ac38f)return null;const _0x1e7a88='add'==_0x1ac38f['type']?'split':'merge';if(!_0x3164d5['consumable']['test'](_0x2e5205['markerRange'],_0x36e9ea['name']))return;const _0x4ee14f=_0x2e5205['markerRange']['getWalker'](),_0x17bc05=_0x2e5205['markerRange']['start'],_0x172cbf=_0x5dc82b['model']['schema'];let _0xdea1b0=null,_0xaf6123=null,_0x4a8d4a=!0x1,_0x498538=!0x1;for(const _0x3d4012 of _0x4ee14f){const _0x50ab5a=_0x3d4012['item'];_0x4a8d4a=_0x4a8d4a||_0x172cbf['isContent'](_0x50ab5a);const _0x5d6420=_0x3164d5['mapper']['toViewElement'](_0x50ab5a);if(_0x5d6420&&_0x5d6420['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d4012['type']&&(_0x172cbf['isBlock'](_0x50ab5a)&&!_0x172cbf['isLimit'](_0x50ab5a)&&(_0x50ab5a['nextSibling']||_0x17bc05['isAtEnd']?_0xdea1b0&&_0xdea1b0['parent']==_0x50ab5a||(_0xdea1b0=_0x50ab5a,_0x2d5cba(_0x3d4012['previousPosition']),_0x498538=!0x0):_0xaf6123=_0xaf6123||_0x3d4012['previousPosition']));}function _0x2d5cba(_0x3cbc51){const _0x50ac79=_0x3164d5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1e7a88}),_0x1074fa=_0x3164d5['mapper']['toViewPosition'](_0x3cbc51);_0x1ac38f['data']['isSuggestion']&&_0x3164d5['writer']['addClass']('ck-suggestion-marker-'+_0x1e7a88+'-new',_0x50ac79),_0x4a7be4['activeChange']==_0x1ac38f&&_0x3164d5['writer']['addClass']('ck-suggestion-marker--active',_0x50ac79),_0x3164d5['writer']['insert'](_0x1074fa,_0x50ac79),_0x3164d5['mapper']['bindElementToMarker'](_0x50ac79,_0x2e5205['markerName']);}_0x4a8d4a||_0x498538||!_0xaf6123||_0x2d5cba(_0xaf6123);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x55a52b,_0x44bb3f,_0xc7ce47)=>{const _0x4e0ab3=_0xc7ce47['mapper']['markerNameToElements'](_0x44bb3f['markerName']);if(_0x4e0ab3){for(const _0x12a31a of _0x4e0ab3)(_0x12a31a['hasClass']('ck-suggestion-marker-split')||_0x12a31a['hasClass']('ck-suggestion-marker-merge'))&&(_0xc7ce47['mapper']['unbindElementFromMarkerName'](_0x12a31a,_0x44bb3f['markerName']),_0xc7ce47['writer']['remove'](_0x12a31a));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4e3b72,_0x38087b,_0x45dd13)=>{const _0xf866d1=_0x38087b['markerName']['split'](':')[0x1],_0x46ddcb=this['_getChangeFromId'](_0xf866d1);if(!_0x46ddcb)return null;const _0x5b2cb0='add'==_0x46ddcb['type']?'split':'merge';if(_0x45dd13['consumable']['test'](_0x38087b['markerRange'],_0x4e3b72['name']))for(const _0x473cb5 of _0x38087b['markerRange']['getItems']()){if(!_0x473cb5['is']('element','softBreak'))continue;const _0x34612a=_0x45dd13['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b2cb0}),_0x2d23fb=_0x45dd13['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x473cb5));_0x46ddcb['data']['isSuggestion']&&_0x45dd13['writer']['addClass']('ck-suggestion-marker-'+_0x5b2cb0+'-new',_0x34612a),this['activeChange']==_0x46ddcb&&_0x45dd13['writer']['addClass']('ck-suggestion-marker--active',_0x34612a),_0x45dd13['writer']['insert'](_0x2d23fb,_0x34612a),_0x45dd13['mapper']['bindElementToMarker'](_0x34612a,_0x38087b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x30ee88=>{for(const _0x50e9d7 of this['editor']['model']['document']['getRootNames']()){const _0x348680=this['editor']['model']['document']['getRoot'](_0x50e9d7),_0x2cb8fa=this['editor']['editing']['view']['document']['getRoot'](_0x50e9d7);if(_0x2cb8fa){const _0x3cab59=_0x348680['getAttribute']('revisionHistoryAttachChange');if(_0x30ee88['removeAttribute']('data-change-id',_0x2cb8fa),_0x30ee88['removeClass']('ck-revision-history-root-add',_0x2cb8fa),_0x30ee88['removeClass']('ck-revision-history-root-remove',_0x2cb8fa),_0x30ee88['removeClass']('ck-revision-history-root--active',_0x2cb8fa),_0x3cab59){const _0x3ea6a4=this['_getChangeFromId'](_0x3cab59);if(!_0x3ea6a4)return null;_0x30ee88['setAttribute']('data-change-id',_0x3cab59,_0x2cb8fa),_0x30ee88['addClass']('ck-revision-history-root-'+_0x3ea6a4['type'],_0x2cb8fa),this['activeChange']==_0x3ea6a4&&_0x30ee88['addClass']('ck-revision-history-root--active',_0x2cb8fa);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x153a7c=>'revision-comment:'+_0x153a7c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4a9c42=>'revision-suggestion:'+_0x4a9c42,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x495213=>({'name':'suggestion:'+_0x495213,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x296f16=>{const _0x45ad0c=_0x296f16['markerName']['split'](':')[0x1];return'insertion'!=_0x45ad0c&&'deletion'!=_0x45ad0c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x45ad0c]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3ed460,_0x17c9ea,_0x354ee6)=>{const _0x42fdd6=_0x354ee6['mapper']['markerNameToElements'](_0x17c9ea['markerName']);if(_0x42fdd6){for(const _0x3c92b3 of _0x42fdd6)_0x3c92b3['is']('uiElement')&&(_0x354ee6['mapper']['unbindElementFromMarkerName'](_0x3c92b3,_0x17c9ea['markerName']),_0x354ee6['writer']['remove'](_0x3c92b3));}},{'priority':'high'});}['_getChangeFromId'](_0x5686d8){return this['_changeIdToChange']['get'](_0x5686d8);}['_getViewForChange'](_0x47e03c){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x47e03c),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x28a5fc,_0x6d3677,_0xe0f17c,_0x454d42)=>{_0x454d42&&this['_balloon']['remove'](_0x454d42),_0xe0f17c&&(this['_balloon']['add']({'view':_0xe0f17c,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x13d985=this['editor']['editing'],_0x5cd761=this['_getChangeFromId'](_0xe0f17c['changeId']);let _0x3c7f0d;if(_0x5cd761['data']['isOnRoot']){const _0x31b946=_0x13d985['view']['getDomRoot'](_0x5cd761['rootName']);_0x3c7f0d=Array['from'](_0x31b946['getClientRects']());}else{const _0x58ffbf=this['editor']['model']['markers']['get']('revision:'+_0xe0f17c['changeId']);_0x3c7f0d=Array['from'](_0x13d985['mapper']['markerNameToElements'](_0x58ffbf['name']))['map'](_0x2ccc17=>_0x13d985['view']['domConverter']['mapViewToDom'](_0x2ccc17))['map'](_0x1b296a=>Array['from'](_0x1b296a['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3c7f0d[0x0];return _0x3c7f0d['find'](_0x214c15=>_0x214c15['top']-0x3<=this['_activeViewTarget']['y']&&_0x214c15['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x214c15['left']-0x3<=this['_activeViewTarget']['x']&&_0x214c15['right']+0x3>=this['_activeViewTarget']['x'])||_0x3c7f0d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x451405,_0xa0b24d,_0x9d85db,_0x1f2865)=>{this['activeView']=_0x9d85db?this['_getViewForChange'](_0x9d85db):null,this['editor']['model']['change'](()=>{const _0xe81454=this['editor']['editing'];_0x1f2865&&(_0x1f2865['data']['isOnRoot']?_0xe81454['view']['change'](_0x1c3916=>{_0x1c3916['removeClass']('ck-revision-history-root--active',_0xe81454['view']['document']['getRoot'](_0x1f2865['rootName']));}):_0xe81454['reconvertMarker']('revision:'+_0x1f2865['id'])),_0x9d85db&&(_0x9d85db['data']['isOnRoot']?_0xe81454['view']['change'](_0x3ca2dc=>{_0x3ca2dc['addClass']('ck-revision-history-root--active',_0xe81454['view']['document']['getRoot'](_0x9d85db['rootName']));}):_0xe81454['reconvertMarker']('revision:'+_0x9d85db['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x252eed,_0x534c5a)=>{if(this['activeChange'])return;const _0x3e6353=this['_findChangeIdFromDomTarget'](_0x534c5a['target']),_0x318713=this['_changeIdToChange']['get'](_0x3e6353);_0x318713?(this['_activeViewTarget']={'x':_0x534c5a['domEvent']['x'],'y':_0x534c5a['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x318713)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x26f70f,_0x547317)=>{const _0x74dc10=this['_findChangeIdFromDomTarget'](_0x547317['target']),_0x5c57ba=this['_changeIdToChange']['get'](_0x74dc10);_0x5c57ba?(this['_activeViewTarget']={'x':_0x547317['domEvent']['x'],'y':_0x547317['domEvent']['y']},_0x5c57ba===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5c57ba):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4d74bc){do{const _0xda0bf6=_0x4d74bc['getAttribute']('data-change-id');if(_0xda0bf6)return _0xda0bf6;_0x4d74bc=_0x4d74bc['parent'];}while(_0x4d74bc);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x24b9a9=>{for(const _0x154a68 of this['editor']['model']['markers'])_0x24b9a9['removeMarker'](_0x154a68);});}}function Z(_0x15d2ed,_0x5451d9){return(_0x22a93b,_0x18b592,_0x44e486)=>{if(!_0x44e486['consumable']['test'](_0x18b592['markerRange'],_0x22a93b['name']))return;const _0x5da148=_0x18b592['markerRange']['getWalker'](),_0x557338=_0x18b592['markerRange']['start'],_0x5bc4db=_0x15d2ed['model']['schema'];let _0x290dda=null,_0x18e054=null,_0x2d603f=!0x1,_0x5bcbb9=!0x1;for(const _0x1f3dc4 of _0x5da148){const _0x427f6a=_0x1f3dc4['item'];_0x2d603f=_0x2d603f||_0x5bc4db['isContent'](_0x427f6a);const _0x553292=_0x44e486['mapper']['toViewElement'](_0x427f6a);if(_0x553292&&_0x553292['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1f3dc4['type']&&(_0x5bc4db['isBlock'](_0x427f6a)&&!_0x5bc4db['isLimit'](_0x427f6a)&&(_0x427f6a['nextSibling']||_0x557338['isAtEnd']?_0x290dda&&_0x290dda['parent']==_0x427f6a||(_0x290dda=_0x427f6a,_0x27424a(_0x1f3dc4['previousPosition']),_0x5bcbb9=!0x0):_0x18e054=_0x18e054||_0x1f3dc4['previousPosition']));}function _0x27424a(_0x9493f3){const _0x243478=_0x44e486['mapper']['toViewPosition'](_0x9493f3),_0x1995a7=_0x44e486['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5451d9});_0x44e486['writer']['insert'](_0x243478,_0x1995a7),_0x44e486['mapper']['bindElementToMarker'](_0x1995a7,_0x18b592['markerName']);}_0x2d603f||_0x5bcbb9||!_0x18e054||_0x27424a(_0x18e054);};}class _t extends _0x3965df{constructor(_0x334004){super(_0x334004);const _0x143d3e=_0x334004['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x143d3e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x143d3e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x33be9a=this['editor'],_0x59363c=_0x33be9a['plugins']['get'](d),_0x53ec7f=_0x59363c['isReady']?_0x59363c['diff']['newRevisionId']:null;_0x33be9a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x53ec7f);}['refresh'](){const {isReady:_0x3aafc6,isEnabled:_0xc3564b,repository:_0x68a01e,diff:_0x2e57ed}=this['editor']['plugins']['get'](d),_0x1dd3a3=_0x2e57ed&&_0x68a01e['getLaterVisibleRevision'](_0x2e57ed['newRevisionId']);this['isEnabled']=_0x3aafc6&&_0xc3564b&&Boolean(_0x1dd3a3);}}class yt extends _0x3965df{['_step'];constructor(_0x3d28fb,{direction:_0x1c9466}){super(_0x3d28fb);const _0x310f38=_0x3d28fb['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x1c9466?0x1:-0x1,this['listenTo'](_0x310f38,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x310f38,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x310f38,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x8fbc9e=this['editor'],_0x575d77=_0x8fbc9e['plugins']['get'](d),{isNavigationMode:_0x31ef35,currentChangeNumber:_0x60d73b}=_0x575d77;let _0x2903dd;if(_0x575d77['activeChange']=_0x31ef35?_0x575d77['diff']['changes']['get'](_0x60d73b+this['_step']):_0x575d77['diff']['changes']['first'],_0x575d77['activeChange']['data']['isOnRoot'])_0x2903dd=_0x8fbc9e['editing']['view']['getDomRoot'](_0x575d77['activeChange']['rootName']);else{const _0x4e5d0c=_0x8fbc9e['model']['markers']['get']('revision:'+_0x575d77['activeChange']['id']);_0x2903dd=_0x4b7bb6(_0x8fbc9e['editing'],_0x4e5d0c);}_0x544232({'target':_0x2903dd,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4ce53e,currentChangeNumber:_0x347f70,numberOfChanges:_0x74d211,isReady:_0x3b609a,isEnabled:_0x358bf0}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x358bf0&&_0x3b609a&&_0x74d211)&&(!_0x4ce53e||(0x1===this['_step']?_0x347f70<_0x74d211-0x1:_0x347f70>0x0));}}class _i extends _0x4bdeaa{constructor(_0x184849){super(_0x184849);const _0x5d4d64=this['bindTemplate'],_0x314c23=new _0x1f53e8(_0x184849),_0x14190a=new _0x1f53e8(_0x184849);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',(_0x472e8b,_0x2e6693)=>_0x472e8b&&_0x2e6693>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1c86e9,_0x4bef60,_0x2071ac,_0x1cbd3d)=>{if(!_0x1c86e9)return m(_0x184849,'Loading...');if(!_0x2071ac)return m(_0x184849,'No\x20changes');const _0x279339=m(_0x184849,'NUMBER_OF_CHANGES',_0x2071ac);return _0x1cbd3d?m(_0x184849,'X_OF_Y_CHANGES',[_0x4bef60+0x1,_0x2071ac]):_0x279339;}),_0x314c23['set']({'label':m(_0x184849,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x14190a['set']({'label':m(_0x184849,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x314c23['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x14190a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x314c23['on']('execute',()=>this['fire']('execute','backward')),_0x14190a['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',_0x5d4d64['if']('_isStatusLabelVisible','ck-hidden',_0x463718=>!_0x463718)]},'children':[{'text':_0x5d4d64['to']('isNavigationMode',_0x4a8d94=>_0x4a8d94?m(_0x184849,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x184849,'Total')+':\x20')}]},{'text':_0x5d4d64['to']('_statusText')}]},new _0x52b6aa(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x314c23,_0x14190a]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x42ee13{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x23787f=this['editor']['editing']['view'];_0x23787f['change'](_0x550071=>{for(const _0x24f161 of _0x23787f['document']['roots'])_0x550071['addClass'](ce,_0x24f161);});}['hide'](){const _0x3373a0=this['editor']['editing']['view'];_0x3373a0['change'](_0x3be7cf=>{for(const _0x3767aa of _0x3373a0['document']['roots'])_0x3be7cf['removeClass'](ce,_0x3767aa);});}}class g extends _0x42ee13{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x5530da=this['editor'],_0x1069e6=_0x5530da['plugins']['get'](d),_0x3b9b1c=_0x5530da['plugins']['get'](le);_0x5530da['ui']['componentFactory']['add']('exitToEditing',_0x168be1=>{const _0x185447=new _0x1f53e8(_0x168be1);return _0x185447['set']({'label':m(_0x168be1,'Back\x20to\x20editing'),'icon':_0x31e520['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x185447,'execute',()=>{_0x5530da['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x185447;}),_0x5530da['ui']['componentFactory']['add']('restoreRevision',_0x34a873=>{const _0x2e2abc=new _0x1f53e8(_0x34a873);return _0x2e2abc['set']({'label':m(_0x34a873,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2e2abc['bind']('isEnabled')['to'](_0x5530da['commands']['get']('restoreRevision')),this['listenTo'](_0x2e2abc,'execute',()=>_0x5530da['execute']('restoreRevision')),_0x2e2abc;}),_0x5530da['ui']['componentFactory']['add']('changesNavigation',_0xe4e740=>{const _0x1ba595=new _i(_0xe4e740),_0x36aab1=_0x5530da['commands']['get']('showPreviousChange'),_0x5cc97b=_0x5530da['commands']['get']('showNextChange');return _0x1ba595['bind']('isBackwardNavigationEnabled')['to'](_0x36aab1,'isEnabled'),_0x1ba595['bind']('isForwardNavigationEnabled')['to'](_0x5cc97b,'isEnabled'),_0x1ba595['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1069e6),this['listenTo'](_0x1ba595,'execute',(_0x592c45,_0x346953)=>{_0x5530da['execute']('forward'===_0x346953?'showNextChange':'showPreviousChange');}),_0x1ba595;}),_0x3b9b1c['show'](),_0x1069e6['on']('change:isReady',(_0x3cf86b,_0x4689cf,_0x1f0dd2)=>{_0x1f0dd2?_0x3b9b1c['hide']():_0x3b9b1c['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x502901,_0x410316){super(_0x502901,_0x410316);const _0x5525f3=this['bindTemplate'];this['set']({'label':m(_0x502901,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x502901,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5525f3['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 _0x5098ec=this['fieldView']['element'];this['_tooltipString']=_0x5098ec['scrollWidth']>_0x5098ec['clientWidth']&&_0x5098ec['value']||'';}}class ti extends _0x4bdeaa{constructor(_0x537aed,_0x3984b4,_0x3cf0c6){super(_0x537aed);const _0x4e7350=new _0x4e1114();_0x4e7350['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x154157=['ck','ck-revision-history-sidebar__revision-author'];_0x3cf0c6&&_0x154157['push']('ck-revision-history-sidebar__revision-author_creator');const _0x56fa8f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x537aed,_0x3cf0c6?'Revision\x20creator':'Revision\x20author')},'children':[_0x4e7350,_0x3984b4['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x154157},'children':_0x56fa8f});}}function ni(_0x3ff9fb,_0x4efe16){const _0xe40af9=_0x3ff9fb['bindTemplate'],_0x215bde=_0x3ff9fb['locale'],_0x368bcd=_0x4d0653(_0x215bde);_0x368bcd['panelPosition']='sw';const _0x2059a7=function(_0x104b4e,_0x527177){const _0x3a8aed=function(_0x15f9ea,_0x594ef1){const _0xc28490=_0x15f9ea['locale'],_0x55595a={'Compare\x20against\x20selected':m(_0xc28490,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0xc28490,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0xc28490,'Restore\x20this\x20revision')};return _0x594ef1['map'](_0x407652=>{const _0x5bfd96=_0x55595a[_0x407652['name']];return _0x5bfd96&&_0x5bfd96!==_0x407652['name']&&(_0x407652['name']=_0x5bfd96),_0x407652;});}(_0x104b4e,_0x527177),_0x454dc8=new _0x2bc3bf();for(const _0x4b8a4f of _0x3a8aed){const _0x6127e7={'type':'button','model':new to({'label':_0x4b8a4f['name'],'class':_0x4b8a4f['class'],'withText':!0x0,'role':'menuitem','_action':_0x4b8a4f['action']})};_0x6127e7['model']['bind']('isEnabled')['to'](_0x104b4e,'isActionsDropdownOpen',_0x99ca88=>'function'!=typeof _0x4b8a4f['isEnabled']||(!_0x99ca88||_0x4b8a4f['isEnabled'](_0x104b4e))),_0x454dc8['add'](_0x6127e7);}return _0x454dc8;}(_0x3ff9fb,_0x4efe16);return _0x3ff9fb['bind']('isActionsDropdownOpen')['to'](_0x368bcd,'isOpen'),_0x368bcd['buttonView']['set']({'label':m(_0x215bde,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x31e520['threeVerticalDots']}),_0x368bcd['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xe40af9['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xe40af9['to'](_0x2de753=>_0x2de753['stopPropagation']())}}),_0x368bcd['on']('execute',_0x47e5b3=>{_0x3ff9fb['isReady']&&'function'==typeof _0x47e5b3['source']['_action']&&_0x47e5b3['source']['_action'](_0x3ff9fb);}),_0xd22976(_0x368bcd,_0x2059a7,{'role':'menu'}),_0x368bcd['listenTo'](_0x3ff9fb,'change:isActionsDropdownOpen',(_0x2b9275,_0xa68c13,_0x1e65bc)=>{if(_0x1e65bc)for(const _0x2aea18 of _0x368bcd['listView']['items']){const _0x31d3fc=_0x2aea18['children']['first'],_0x329b29=_0x4efe16['find'](_0xa02c46=>_0xa02c46['action']===_0x31d3fc['_action'])['isVisible'];_0x2aea18['isVisible']=void 0x0===_0x329b29||_0x329b29(_0x3ff9fb);}}),_0x368bcd;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x14c5ca(_0x4bdeaa){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2ee371,_0x3545e4,_0x44feb2,_0x3e29f3){super(_0x2ee371);const _0x2bc0fe=this['bindTemplate'],_0x404b0d=function(_0x5f2261,_0x25dff){const _0x37cdb6=Array['from'](_0x25dff['authors'])['filter'](_0x185817=>_0x185817!=_0x25dff['creator']);return _0x25dff['creator']&&_0x37cdb6['unshift'](_0x25dff['creator']),_0x37cdb6['map'](_0x4b0fa6=>new ti(_0x5f2261,_0x4b0fa6,_0x4b0fa6==_0x25dff['creator']));}(_0x2ee371,_0x3545e4);this['id']=_0x3545e4['id'],this['_revision']=_0x3545e4,this['_requireRevisionName']=_0x3e29f3,this['bind']('name','createdAt')['to'](_0x3545e4),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4251f9=>{return _0x5d807b=_0x2ee371['uiLanguage'],(_0xa4d812=_0x4251f9)['toLocaleDateString'](_0x5d807b,{'month':'long','day':'numeric'})+',\x20'+_0xa4d812['toLocaleTimeString'](_0x5d807b,{'hour':'numeric','minute':'numeric'});var _0x5d807b,_0xa4d812;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x2ee371,_0x5c9f1a),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x213063=>_0x213063||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x17f50a,_0x9b0128)=>_0x17f50a&&_0x9b0128),this['revisionActionsView']=_0x44feb2&&_0x44feb2['length']?ni(this,_0x44feb2):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2bc0fe['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2bc0fe['if']('isEnabled','ck-disabled',_0x431925=>!_0x431925),_0x2bc0fe['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2bc0fe['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2bc0fe['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':_0x2bc0fe['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':_0x404b0d}]},this['revisionActionsView']],'on':{'click':_0x2bc0fe['to'](_0x2a0dde=>{_0x2a0dde['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2a97d9=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2a97d9,'change',()=>{this['_requireRevisionName']&&!_0x2a97d9['value']||this['fire']('setName',{'id':this['id'],'name':_0x2a97d9['value']}),_0x2a97d9['value']||(_0x2a97d9['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x128a3c,_0x4e053d){const _0x5563dc=_0x40a5c4['fromJSDate'](_0x128a3c)['setLocale'](_0x4e053d),_0x32aa97=_0x40a5c4['local'](),_0x577d0f=_0x32aa97['minus']({'days':0x1})['startOf']('day');let _0x15fc43,_0xc541a0;return _0x5563dc['hasSame'](_0x32aa97,'day')?(_0x15fc43=_0x5563dc['startOf']('day')['toJSDate'](),_0xc541a0=_0x5563dc['toRelativeCalendar']()):_0x5563dc['hasSame'](_0x577d0f,'day')?(_0x15fc43=_0x577d0f['toJSDate'](),_0xc541a0=_0x5563dc['toRelativeCalendar']()):_0x5563dc['hasSame'](_0x32aa97,'week')?(_0x15fc43=_0x5563dc['startOf']('week')['toJSDate'](),_0xc541a0=_0x5563dc['weekdayLong']||''):_0x5563dc['hasSame'](_0x32aa97,'year')?(_0x15fc43=_0x5563dc['startOf']('month')['toJSDate'](),_0xc541a0=_0x5563dc['monthLong']||''):(_0x15fc43=_0x5563dc['startOf']('year')['toJSDate'](),_0xc541a0=String(_0x5563dc['year'])),{'startDate':_0x15fc43,'localizedPeriodName':_0xc541a0};}class mi extends _0x4bdeaa{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x482fbd,_0x21a5a3,_0x4c9ce4,_0x31f11d){super(_0x482fbd);const _0x56ba22=di(_0x21a5a3,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x21a5a3,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4c9ce4,this['_requireRevisionName']=_0x31f11d,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':_0x56ba22}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x286a47){const _0x2761e7=new ai(this['locale'],_0x286a47,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2761e7);}['removeRevision'](_0xd7ed24){const _0x2fbac3=this['revisionViews']['find'](_0xddf942=>_0xddf942['id']===_0xd7ed24['id']);this['revisionViews']['remove'](_0x2fbac3);}}class as extends _0x4bdeaa{constructor(_0x3c7343){super(_0x3c7343);const _0x428717=new _0x4e1114();_0x428717['content']=_0x31e520['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x428717,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x3c7343,'Revision\x20history')]}]});}}class ci extends _0x4bdeaa{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x141964,_0x5a428a,_0x264390,_0x58685c){super(_0x141964);const _0x4a25e2=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5a428a,this['_revisionActions']=_0x264390,this['_requireRevisionName']=_0x58685c,this['on']('select',(_0x2e34aa,_0xca003f)=>{this['fire']('revisionSelected',_0xca003f);}),this['on']('setName',(_0x55ee37,_0x5a276d)=>{this['fire']('revisionSetName',_0x5a276d);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x141964),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4a25e2['if']('isEnabled','ck-disabled',_0x4eac7a=>!_0x4eac7a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2980be of this['_revisions'])this['_addRevision'](_0x2980be);this['_revisions']['on']('add',(_0x560f56,_0x324c44)=>{this['_addRevision'](_0x324c44);}),this['_revisions']['on']('remove',(_0x2ea26f,_0x4c0ea6)=>{this['_removeRevision'](_0x4c0ea6);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2fd00d=>_0x2fd00d['revisionViews']['map'](_0x58cc0b=>_0x58cc0b))['flat']();}['selectRevision'](_0x4bab2a){for(const _0x3f50fc of this['revisionViews'])_0x4bab2a&&_0x4bab2a['id']===_0x3f50fc['id']?_0x3f50fc['select']():_0x3f50fc['deselect']();}['highlightRevisions'](_0x232076){for(const _0x512162 of this['revisionViews'])_0x232076['some'](({id:_0x3cc165})=>_0x3cc165===_0x512162['id'])?_0x512162['highlight']():_0x512162['unhighlight']();}['_addRevision'](_0x2c69e0){const _0x4f3c80=di(_0x2c69e0['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4e3fe0=this['timePeriodViews']['get'](0x0);_0x4e3fe0&&_0x4e3fe0['startDate']['getTime']()===_0x4f3c80['getTime']()||(_0x4e3fe0=new mi(this['locale'],_0x4f3c80,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4e3fe0)),_0x4e3fe0['addRevision'](_0x2c69e0);}['_removeRevision'](_0x3d4cf9){const _0x31a74d=di(_0x3d4cf9['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x31a74d)['removeRevision'](_0x3d4cf9);}['_getTimePeriodViewByStartDate'](_0x1e80f3){return this['timePeriodViews']['find'](_0x501f68=>_0x501f68['startDate']['getTime']()===_0x1e80f3['getTime']());}}class w extends _0x42ee13{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x134fa9,uid as _0x23c2bf,Collection as _0x44ade6,logWarning as _0x4d6586,FocusTracker as _0x4edf4d,KeystrokeHandler as _0x368a8f,scrollViewportToShowTarget as _0x527c9e,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0x104baa}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x19c9df,set as _0x5c9f0e,unset as _0x3f7200,isEqual as _0x155caf}from'lodash-es';import{Plugin as _0x2ced25,PendingActions as _0x531459,icons as _0x48dd12,Command as _0x5d3438,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x43d330,getMarkerDomElement as _0x594296,ConfirmMixin as ti,sanitizeEditorConfig as _0x1a5fc2}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x18a752,ViewText as _0x5248c5,ViewElement as _0x26c3f6,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x51bc4f,ViewAttributeElement as _0x3af3e7,ViewEmptyElement as _0x306dea,ViewRawElement as _0x33607e,ViewUIElement as _0x14d253,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x391c6c,submitHandler as _0x1463d4,LabeledFieldView as _0x136d79,createLabeledInputText as _0x2cdfd5,createDropdown as _0x4e101c,ListView as _0x19845e,ListItemView as _0x58c470,ButtonView as te,MenuBarMenuView as _0x978ce4,MenuBarMenuListView as _0xc7ddf8,MenuBarMenuListItemView as _0x299d0e,MenuBarMenuListItemButtonView as _0x376338,ContextualBalloon as _0x329820,ToolbarSeparatorView as _0x5d9dde,IconView as _0x82d7ef,addListToDropdown as to,ViewModel as _0x2e2573,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x37ce12}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x134fa9(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x432f80){super(),this['id']=_0x432f80['id']||_0x23c2bf(),this['creator']=_0x432f80['creator']||null,this['authors']=_0x432f80['authors']||[],this['diffData']=_0x432f80['diffData']||null,this['toVersion']=_0x432f80['toVersion']||0x0,this['fromVersion']=_0x432f80['fromVersion']||0x0,this['set']('name',_0x432f80['name']||''),this['set']('createdAt',_0x432f80['createdAt']||new Date()),this['set']('attributes',_0x432f80['attributes']||{});}['setName'](_0x1f216f){this['_update']({'name':_0x1f216f});}['setAttribute'](_0x3e08d3,_0x2ffb04){const _0x317527=_0x19c9df(this['attributes']);_0x5c9f0e(_0x317527,_0x3e08d3,_0x2ffb04),this['_update']({'attributes':_0x317527});}['removeAttribute'](_0x54e250){const _0x37a91b=_0x19c9df(this['attributes']);_0x3f7200(_0x37a91b,_0x54e250),this['_update']({'attributes':_0x37a91b});}['_update'](_0x4d4f9e,_0x36b82a=!0x1){let _0x476878=!0x1;const _0x24f33e={'id':this['id']},_0x4c3c98=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4f9fdf of _0x4c3c98){const _0x36e2ac=_0x4d4f9e[_0x4f9fdf];void 0x0!==_0x36e2ac&&_0x36e2ac!==this[_0x4f9fdf]&&(this[_0x4f9fdf]=_0x36e2ac,_0x24f33e[_0x4f9fdf]=_0x36e2ac,_0x476878=!0x0);}_0x476878&&(_0x24f33e['authors']&&(_0x24f33e['authorsIds']=_0x24f33e['authors']['map'](_0x39deb3=>_0x39deb3['id']),delete _0x24f33e['authors']),this['fire']('_update',_0x24f33e,_0x36b82a));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1f15cc=>_0x1f15cc['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x2ced25{['_revisions'];static get['requires'](){return[_0x43d330];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x398bd9){super(_0x398bd9),this['_revisions']=new _0x44ade6();}['afterInit'](){!async function(_0x4acca5){const _0x58fd09=_0xe589d0([0x7a,0x55,0x31,0x56,0x75,0x73,0x59,0x47,0x76,0x68,0x6e,0x6b,0x45,0x72,0x65,0x70,0x78,0x74,0x6f,0x50,0x69,0x4d,0x43,0x6c,0x44,0x36,0x46,0x4e,0x57,0x64,0x49,0x53,0x5a,0x63,0x79,0x77,0x58,0x66,0x62,0x42,0x32,0x35,0x52,0x4f,0x6a,0x4b,0x39,0x67,0x37,0x48,0x4a,0x51,0x71,0x41,0x34,0x54,0x6d,0x30,0x61,0x4c,0x38,0x33]),_0x4897aa=0xeb829,_0x330813=0xf3e5d1d,_0x6aeb6b=0xf390335^_0x330813,_0x94e0e6=window[_0xe589d0([0x44,0x61,0x74,0x65])][_0xe589d0([0x6e,0x6f,0x77])](),_0x588b65=_0x4acca5[_0xe589d0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3970f2=new window[(_0xe589d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d835d=>{_0x588b65[_0xe589d0([0x6f,0x6e,0x63,0x65])](_0xe589d0([0x72,0x65,0x61,0x64,0x79]),_0x4d835d);}),_0x210bda={[_0xe589d0([0x6b,0x74,0x79])]:_0xe589d0([0x45,0x43]),[_0xe589d0([0x75,0x73,0x65])]:_0xe589d0([0x73,0x69,0x67]),[_0xe589d0([0x63,0x72,0x76])]:_0xe589d0([0x50,0x2d,0x32,0x35,0x36]),[_0xe589d0([0x78])]:_0xe589d0([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]),[_0xe589d0([0x79])]:_0xe589d0([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]),[_0xe589d0([0x61,0x6c,0x67])]:_0xe589d0([0x45,0x53,0x32,0x35,0x36])},_0x477127=_0x588b65[_0xe589d0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe589d0([0x67,0x65,0x74])](_0xe589d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x29a842(){let _0x848734,_0x5dd707=null,_0x3347ef=null;try{if(_0x477127==_0xe589d0([0x47,0x50,0x4c]))return _0xe589d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x848734=_0x9424fa(),!_0x848734)return _0xe589d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x848734[_0xe589d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3347ef=_0x3f21f8(_0x848734[_0xe589d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x848734[_0xe589d0([0x6a,0x74,0x69])])),await _0x929a31()?_0x131e5d()?_0x2cc055()?_0xe589d0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40c7fc()?(_0x848734[_0xe589d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe589d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5dd707=_0x18a3fb(_0xe589d0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x848734[_0xe589d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe589d0([0x74,0x72,0x69,0x61,0x6c])&&(_0x5dd707=_0x18a3fb(_0xe589d0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ec9d1()):_0xe589d0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe589d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe589d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3a4a3c){return _0xe589d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2cc055(){const _0x160b9a=[_0xe589d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe589d0([0x74,0x72,0x69,0x61,0x6c])][_0xe589d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x848734[_0xe589d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x94e0e6/0x3e8:0xe10*_0x6aeb6b;return _0x848734[_0xe589d0([0x65,0x78,0x70])]<_0x160b9a;}function _0x131e5d(){const _0x4669ad=_0x848734[_0xe589d0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4669ad)return!0x1;if(_0x4669ad[_0xe589d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe589d0([0x2a])))return!0x0;if(_0x4669ad[_0xe589d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe589d0([0x52,0x48])))return!0x0;if(_0x4669ad[_0xe589d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe589d0([0x52,0x52,0x48]))){if(_0x55acd7())return!0x0;if(_0xf0b7dc()||_0x1ae880())return!0x0;}return!0x1;}function _0x40c7fc(){const _0x27c4b8=_0x848734[_0xe589d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x27c4b8||0x0==_0x27c4b8[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x816787}=new URL(window[_0xe589d0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x27c4b8[_0xe589d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x816787))return!0x0;const _0x57b643=_0x816787[_0xe589d0([0x73,0x70,0x6c,0x69,0x74])](_0xe589d0([0x2e]));return _0x27c4b8[_0xe589d0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c2a94=>_0x4c2a94[_0xe589d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe589d0([0x2a])))[_0xe589d0([0x6d,0x61,0x70])](_0x3d4901=>_0x3d4901[_0xe589d0([0x73,0x70,0x6c,0x69,0x74])](_0xe589d0([0x2e])))[_0xe589d0([0x73,0x6f,0x6d,0x65])](_0x46ea72=>_0x57b643[_0xe589d0([0x65,0x76,0x65,0x72,0x79])]((_0x5dde83,_0x3ed1bf)=>_0x46ea72[_0x3ed1bf]===_0x5dde83||_0x46ea72[_0x3ed1bf]===_0xe589d0([0x2a])));}function _0x4ec9d1(){return _0x5dd707&&_0x3347ef?new window[(_0xe589d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5f2cd6,_0x36992b)=>{_0x5dd707[_0xe589d0([0x74,0x68,0x65,0x6e])](_0x5f2cd6,_0x36992b),_0x3347ef[_0xe589d0([0x74,0x68,0x65,0x6e])](_0x35b67d=>{_0x35b67d!=_0xe589d0([0x56,0x61,0x6c,0x69,0x64])&&_0x5f2cd6(_0x35b67d);},_0x36992b);}):_0x5dd707||_0x3347ef||_0xe589d0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3f21f8(_0x4297d5,_0x3c9a74){return new window[(_0xe589d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x409f47=>{if(_0x1ead5e())return _0x409f47(_0xe589d0([0x56,0x61,0x6c,0x69,0x64]));_0x1287a0(),_0x588b65[_0xe589d0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe589d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c7ad6=!0x1;const _0x5a71ca=_0x23c2bf();function _0x593494(_0x843b04){return!!_0x843b04&&(typeof _0x843b04===_0xe589d0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x843b04===_0xe589d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x843b04[_0xe589d0([0x74,0x68,0x65,0x6e])]===_0xe589d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x843b04[_0xe589d0([0x63,0x61,0x74,0x63,0x68])]===_0xe589d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4917b4(_0x3c5b3d){_0x408c19(_0x3c5b3d)[_0xe589d0([0x74,0x68,0x65,0x6e])](_0xe9f255=>{if(!_0xe9f255||_0xe9f255[_0xe589d0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe589d0([0x6f,0x6b]))return _0xe589d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d03eb(_0x47badd(_0x5a71ca+_0x3c9a74))!=_0xe9f255[_0xe589d0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe589d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe589d0([0x56,0x61,0x6c,0x69,0x64]);})[_0xe589d0([0x74,0x68,0x65,0x6e])](_0x5d700c=>(_0x3fd424(),_0x5d700c),()=>{const _0x389fcf=_0x19b09c();return null==_0x389fcf?(_0x3fd424(),_0xe589d0([0x56,0x61,0x6c,0x69,0x64])):_0xe589d0(_0x94e0e6-_0x389fcf>(0x2b32d91d^_0x330813)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe589d0([0x74,0x68,0x65,0x6e])](_0x409f47)[_0xe589d0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x409f47(_0xe589d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x229ab6=0xf08b39d^_0x330813;function _0x3fd424(){const _0x24cb9b=_0xe589d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d03eb(_0x47badd(_0x4297d5)),_0x13c551=_0x2a2271(_0x4d03eb(window[_0xe589d0([0x4d,0x61,0x74,0x68])][_0xe589d0([0x63,0x65,0x69,0x6c])](_0x94e0e6/_0x229ab6)));window[_0xe589d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe589d0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24cb9b,_0x13c551);}function _0x19b09c(){const _0x5611b0=_0xe589d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d03eb(_0x47badd(_0x4297d5)),_0x548bfc=window[_0xe589d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe589d0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5611b0);return _0x548bfc?window[_0xe589d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a2271(_0x548bfc),0x10)*_0x229ab6:null;}function _0x408c19(_0x3ea32e){return new window[(_0xe589d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7292ba,_0x29986e)=>{_0x3ea32e[_0xe589d0([0x74,0x68,0x65,0x6e])](_0x7292ba,_0x29986e),window[_0xe589d0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29986e,0xf3f89dd^_0x330813);});}}_0x588b65[_0xe589d0([0x6f,0x6e])](_0xe589d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x411b1c,_0x215f9c)=>{if(_0x215f9c[0x0]!=_0x4297d5)return _0x409f47(_0xe589d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x215f9c[0x1]={..._0x215f9c[0x1],[_0xe589d0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a71ca};},{[_0xe589d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe589d0([0x68,0x69,0x67,0x68])}),_0x588b65[_0xe589d0([0x6f,0x6e])](_0xe589d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x8e5fd7=>{_0x593494(_0x8e5fd7[_0xe589d0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c7ad6=!0x0,_0x4917b4(_0x8e5fd7[_0xe589d0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe589d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe589d0([0x6c,0x6f,0x77])}),_0x3970f2[_0xe589d0([0x74,0x68,0x65,0x6e])](()=>{_0x5c7ad6||_0x409f47(_0xe589d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ead5e(){return _0x588b65[_0xe589d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe589d0([0x76,0x69,0x65,0x77])][_0xe589d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe589d0([0x61,0x75,0x74,0x6f]);}function _0x1287a0(){_0x588b65[_0xe589d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe589d0([0x76,0x69,0x65,0x77])][_0xe589d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe589d0([0x61,0x75,0x74,0x6f]);}}function _0x18a3fb(_0x2bcfa0){const _0x38bfb2=[new window[(_0xe589d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b7cc5=>setTimeout(_0x4b7cc5,0xf3763d1^_0x330813)),_0x3970f2[_0xe589d0([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe589d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a9b4b=>{const _0x38dff5=0xf3e5d1a^_0x330813,_0x326cb5=_0x4acca5[_0xe589d0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x144930(){_0x326cb5[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x38dff5&&_0x4a9b4b();}_0x144930(),_0x326cb5[_0xe589d0([0x6f,0x6e])](_0xe589d0([0x61,0x64,0x64]),_0x144930);})),new window[(_0xe589d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3581cd=>{function _0x1b0897(){for(const _0xcee599 in window)if(window[_0xe589d0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xe589d0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xcee599))&&window[_0xcee599]==_0x4897aa)return _0x3581cd();_0x588b65[_0xe589d0([0x73,0x74,0x61,0x74,0x65])]!=_0xe589d0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xe589d0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b0897,0xf3e4e95^_0x330813);}_0x4e88bd(_0xe589d0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1b0897();})];return window[_0xe589d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe589d0([0x72,0x61,0x63,0x65])](_0x38bfb2)[_0xe589d0([0x74,0x68,0x65,0x6e])](()=>_0x2bcfa0);}async function _0x4c04f3(){if(await _0x3970f2,_0x4e88bd(_0xe589d0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1ddff7=_0x4acca5[_0xe589d0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1790ec=_0x4acca5[_0xe589d0([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])](_0x1ddff7[_0xe589d0([0x69,0x64])]),_0x49c1a6=_0x11931e(_0xe589d0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x49c1a6[_0xe589d0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1ddff7['id'],_0x1790ec?_0x1790ec['id']:null,!0x0),_0x49c1a6[_0xe589d0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xe589d0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x49c1a6[_0xe589d0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x49c1a6[_0xe589d0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xc0899f,void(_0x49c1a6[_0xe589d0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xc0899f);}if(_0x4e88bd(_0xe589d0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0xf48f90=_0x11931e(_0xe589d0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0xf48f90[_0xe589d0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xe589d0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xf48f90[_0xe589d0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xf48f90[_0xe589d0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xc0899f,_0xf48f90[_0xe589d0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xc0899f;}_0x588b65[_0xe589d0([0x6d,0x6f,0x64,0x65,0x6c])][_0xe589d0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc0899f,_0x588b65[_0xe589d0([0x6d,0x6f,0x64,0x65,0x6c])][_0xe589d0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc0899f,_0x588b65[_0xe589d0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe589d0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x55acd7(){return _0x4e88bd(_0xe589d0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x11931e(_0xe589d0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xe589d0([0x73,0x74,0x61,0x74,0x65])]==_0xe589d0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xf0b7dc(){return _0x4e88bd(_0xe589d0([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 _0x1ae880(){return _0x4e88bd(_0xe589d0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2b3edd(_0x582ed4){const _0x55f244=_0x470e52();_0x588b65[_0x55f244]=_0xe589d0([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])+_0x582ed4,_0x582ed4[_0xe589d0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xe589d0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x470e52()]=_0x4897aa),_0x582ed4!=_0xe589d0([0x56,0x61,0x6c,0x69,0x64])&&_0x4c04f3();}function _0x470e52(){const _0x5c6985=window[_0xe589d0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe589d0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe589d0([0x6e,0x6f,0x77])]())[_0xe589d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe589d0([0x2e]),'');let _0x5d44ba=_0xe589d0([0x7a]);for(let _0x23d88b=0x0;_0x23d88b<_0x5c6985[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23d88b+=0x2){let _0x1c3688=window[_0xe589d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c6985[_0xe589d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23d88b,_0x23d88b+0x2));_0x1c3688>=_0x58fd09[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1c3688-=_0x58fd09[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d44ba+=_0x58fd09[_0x1c3688];}return _0x5d44ba;}function _0x9424fa(){const _0x50c7ca=_0x477127[_0xe589d0([0x73,0x70,0x6c,0x69,0x74])](_0xe589d0([0x2e]));if(0x3!=_0x50c7ca[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x238b4f(_0x50c7ca[0x1]);function _0x238b4f(_0x7b41a2){const _0x5bb04b=_0xb1e041(_0x7b41a2);return _0x5bb04b&&_0x28f0ce()?_0x5bb04b:null;function _0x28f0ce(){const _0x404b1d=_0x5bb04b[_0xe589d0([0x6a,0x74,0x69])],_0x4a8205=window[_0xe589d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x404b1d[_0xe589d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x404b1d[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x43a544={..._0x5bb04b,[_0xe589d0([0x6a,0x74,0x69])]:_0x404b1d[_0xe589d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x404b1d[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x43a544[_0xe589d0([0x76,0x63])],_0x47badd(_0x43a544)==_0x4a8205;}}}async function _0x929a31(){let _0x51fe1e=!0x0;try{const _0x6fa7=_0x477127[_0xe589d0([0x73,0x70,0x6c,0x69,0x74])](_0xe589d0([0x2e])),[_0x37cebb,_0x5a1db8,_0x3ff00d]=_0x6fa7;return _0x454fd4(_0x37cebb),await _0x310969(_0x37cebb,_0x5a1db8,_0x3ff00d),_0x51fe1e;}catch(_0x2862b3){return!0x1;}function _0x454fd4(_0x2e1eb3){const _0x27ef84=_0xb1e041(_0x2e1eb3);_0x27ef84&&_0x27ef84[_0xe589d0([0x61,0x6c,0x67])]==_0xe589d0([0x45,0x53,0x32,0x35,0x36])||(_0x51fe1e=!0x1);}async function _0x310969(_0x4fb46d,_0x30574e,_0x3c3353){const _0x2c1116=window[_0xe589d0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe589d0([0x66,0x72,0x6f,0x6d])](_0x3e8324(_0x3c3353),_0x58b34c=>_0x58b34c[_0xe589d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39a418=new window[(_0xe589d0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe589d0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4fb46d+_0xe589d0([0x2e])+_0x30574e),_0x33287e=window[_0xe589d0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe589d0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x33287e)return;const _0xbe5842=await _0x33287e[_0xe589d0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe589d0([0x6a,0x77,0x6b]),_0x210bda,{[_0xe589d0([0x6e,0x61,0x6d,0x65])]:_0xe589d0([0x45,0x43,0x44,0x53,0x41]),[_0xe589d0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe589d0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe589d0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x33287e[_0xe589d0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe589d0([0x6e,0x61,0x6d,0x65])]:_0xe589d0([0x45,0x43,0x44,0x53,0x41]),[_0xe589d0([0x68,0x61,0x73,0x68])]:{[_0xe589d0([0x6e,0x61,0x6d,0x65])]:_0xe589d0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xbe5842,_0x2c1116,_0x39a418)||(_0x51fe1e=!0x1);}}function _0xb1e041(_0x3af956){return _0x3af956[_0xe589d0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe589d0([0x65,0x79]))?JSON[_0xe589d0([0x70,0x61,0x72,0x73,0x65])](_0x3e8324(_0x3af956)):null;}function _0x3e8324(_0x21ff66){return window[_0xe589d0([0x61,0x74,0x6f,0x62])](_0x21ff66[_0xe589d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe589d0([0x2b]))[_0xe589d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe589d0([0x2f])));}function _0x47badd(_0x56e48f){let _0x2656f4=0x1505;function _0x514e4e(_0x3eb8c5){for(let _0x36195a=0x0;_0x36195a<_0x3eb8c5[_0xe589d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36195a++){const _0x26929c=_0x3eb8c5[_0xe589d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x36195a);_0x2656f4=(_0x2656f4<<0x5)+_0x2656f4+_0x26929c,_0x2656f4&=_0x2656f4;}}function _0x37e148(_0x4b4f76){Array[_0xe589d0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b4f76)?_0x4b4f76[_0xe589d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37e148):_0x4b4f76&&typeof _0x4b4f76==_0xe589d0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe589d0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b4f76)[_0xe589d0([0x73,0x6f,0x72,0x74])]()[_0xe589d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4029b2,_0x2013b9])=>{_0x514e4e(_0x4029b2),_0x37e148(_0x2013b9);}):_0x514e4e(window[_0xe589d0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b4f76));}return _0x37e148(_0x56e48f),_0x2656f4>>>0x0;}function _0x4d03eb(_0xeb8a0f){return _0xeb8a0f[_0xe589d0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe589d0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe589d0([0x30]));}function _0x2a2271(_0x24cadd){return _0x24cadd[_0xe589d0([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe589d0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe589d0([0x6a,0x6f,0x69,0x6e])]('');}function _0x4e88bd(_0x505ddd){return _0x588b65[_0xe589d0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xe589d0([0x68,0x61,0x73])](_0x505ddd);}function _0x11931e(_0x27d486){return _0x588b65[_0xe589d0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xe589d0([0x67,0x65,0x74])](_0x27d486);}function _0xc0899f(){}function _0xe589d0(_0x17c20d){return _0x17c20d['map'](_0x13923c=>String['fromCharCode'](_0x13923c))['join']('');}_0x2b3edd(await _0x29a842());}(this);}['createRevision'](_0x1731f5){const _0x4bbaa8=this['editor']['plugins']['get']('Users');return new a({'id':_0x1731f5['id'],'name':_0x1731f5['name'],'creator':_0x1731f5['creatorId']?_0x4bbaa8['getUser'](_0x1731f5['creatorId']):null,'diffData':_0x1731f5['diffData']||_0x1731f5['data'],'authors':_0x1731f5['authorsIds']['map'](_0x176566=>_0x4bbaa8['getUser'](_0x176566)),'createdAt':new Date(_0x1731f5['createdAt']),'attributes':_0x1731f5['attributes'],'fromVersion':_0x1731f5['fromVersion'],'toVersion':_0x1731f5['toVersion']});}['addRevision'](_0x3fd529,_0x4f8737=0x0){this['_revisions']['add'](_0x3fd529,_0x4f8737);}['getRevision'](_0x1312b2){return this['_revisions']['get'](_0x1312b2);}['getRevisions'](_0x5f030f={'toJSON':!0x1}){const _0x3743bd=Array['from'](this['_revisions']);return _0x3743bd['reverse'](),_0x5f030f['toJSON']?_0x3743bd['map'](_0x116768=>_0x116768['toJSON']()):_0x3743bd;}['getIndex'](_0x3fdd9c){return this['_revisions']['getIndex'](_0x3fdd9c);}['getEarlierVisibleRevision'](_0x279b0d){const [,_0x1585ee]=this['getRevisionsIterator'](_0x279b0d,{'direction':'earlier'});return _0x1585ee;}['getLaterVisibleRevision'](_0x1ab02c){const [,_0x2106c7]=this['getRevisionsIterator'](_0x1ab02c,{'direction':'later'});return _0x2106c7;}['getRevisionsInDiff'](_0x565703){const _0x2efa30=[];for(const _0x53c731 of this['getRevisionsIterator'](_0x565703['newRevisionId']))if(_0x2efa30['push'](_0x53c731),_0x53c731['id']===_0x565703['oldRevisionId'])break;return _0x2efa30;}*['getRevisionsIterator'](_0x2701bb,{direction:_0x1a23de='earlier',filter:_0x844883=()=>!0x0}={}){const _0x5fe240='earlier'===_0x1a23de?0x1:-0x1;let _0x399670=this['_revisions']['get'](_0x2701bb),_0x3a2c86=this['getIndex'](_0x399670);for(yield _0x399670;_0x399670;){if(_0x3a2c86+=_0x5fe240,_0x399670=this['getRevision'](_0x3a2c86),!_0x399670)return;_0x844883(_0x399670)&&(yield _0x399670);}}}function m(_0x20b510,_0x36a6ab,_0x3c645e){const t=_0x20b510['t'];switch(_0x36a6ab){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'},_0x3c645e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3c645e);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'';}}const P={'c':_0x51bc4f,'a':_0x3af3e7,'e':_0x306dea,'r':_0x33607e,'u':_0x14d253};class l extends _0x2ced25{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x43d330,j,_0x531459];}constructor(_0x4949c4){super(_0x4949c4),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2d33f2=_0x23c2bf();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2d33f2},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['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x507ed6=this['repository']['getRevision'](0x0),_0x267665=_0x507ed6&&null===_0x507ed6['creator']?_0x507ed6:null;if(this['_continueCurrentRevision']=!!_0x267665&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x54464c=this['_source']['getCurrentRevisionId'](),_0x23224a=this['repository']['getRevision'](_0x54464c);if(_0x23224a)this['_startingVersion']=_0x23224a['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3c8a71=this['_source']['history']['_operations']['find'](_0x3c52ab=>!_0x3c52ab['_isInit']),_0xaabd7=_0x3c8a71?_0x3c8a71['baseVersion']:this['_source']['history']['version'];_0x507ed6?(_0x507ed6['toVersion']<_0xaabd7&&_0x507ed6['_update']({'toVersion':_0xaabd7}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x267665['id'],this['_startingVersion']=_0x267665['fromVersion']):(this['_startingVersion']=_0x507ed6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xaabd7,this['_continueCurrentRevision']=!0x1);}}else _0x267665&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x267665['toVersion'],this['editor']['model']['document']['history']['version']),_0x267665['fromVersion']===_0x267665['toVersion']?(0x0!==_0x267665['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x267665['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x267665['id'],this['_startingVersion']=_0x267665['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',_0x19f255=>!_0x19f255),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x599bc0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x14ce9c;for(const _0x4fd525 in _0x599bc0){const _0x14bd2a=_0x4fd525,_0x104145=_0x599bc0[_0x14bd2a];if('revisionHistoryLicenseKeyValid'==_0x104145||'revisionHistoryLicenseKeyInvalid'==_0x104145||'revisionHistoryLicenseKeyExpired'==_0x104145||'revisionHistoryLicenseKeyDomainLimit'==_0x104145||'revisionHistoryLicenseKeyNotAllowed'==_0x104145||'revisionHistoryLicenseKeyEvaluationLimit'==_0x104145||'revisionHistoryLicenseKeyTrialLimit'==_0x104145||'revisionHistoryLicenseKeyUsageLimit'==_0x104145){delete _0x599bc0[_0x14bd2a],_0x14ce9c=_0x104145,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x14ce9c&&_0x599bc0['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x14ce9c&&_0x599bc0['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x14ce9c&&_0x599bc0['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x14ce9c&&_0x599bc0['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x14ce9c&&_0x599bc0['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x14ce9c&&_0x599bc0['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x14ce9c&&_0x599bc0['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x387eb2=this['repository']['getRevision'](0x0),_0x90d62a=await this['getRevisionDocumentData'](_0x387eb2),_0x244ca0=await this['getRevisionRootsAttributes'](_0x387eb2);this['_replaceEditorDataWithRevisionData'](_0x90d62a,_0x244ca0);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x453b79){this['_source']=_0x453b79;}async['update'](){const _0xae7cfb=await this['_source']['getLatestVersion']();if(_0xae7cfb>this['currentRevision']['toVersion']){await this['_loadState']();const _0x57608d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xae7cfb});_0x57608d['authors']=_0x57608d['authorsIds']['map'](_0x3e7b8c=>this['editor']['plugins']['get']('Users')['getUser'](_0x3e7b8c)),this['currentRevision']['_update'](_0x57608d);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x51fdd2={},_0x92e03c=null){const _0x38ebe4=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x92e03c>this['currentRevision']['toVersion']&&(_0x92e03c=null),null===_0x92e03c&&(_0x92e03c=await this['_source']['getLatestVersion']());const _0x5aaae6=this['_getFromVersion'](_0x92e03c),_0x45feb9=this['buildRevisionData']({'from':_0x5aaae6,'to':_0x92e03c});if(this['currentRevision']['toVersion']<_0x92e03c){const _0x46e652=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x92e03c,'to':_0x92e03c});_0x46e652['authors']=[],_0x46e652['authorsIds']=[],_0x46e652['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x46e652,!0x0),delete _0x46e652['authors'],_0x38ebe4['push'](_0x46e652);}_0x51fdd2['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x51fdd2['name']=_0x51fdd2['name']||null,_0x51fdd2['id']=_0x51fdd2['id']||_0x23c2bf(),_0x51fdd2={..._0x51fdd2,..._0x45feb9};const _0x7cdae2=this['addRevisionData'](_0x51fdd2);_0x38ebe4['push'](_0x51fdd2);const _0x12ffd0=this['repository']['getIndex'](_0x7cdae2);if(0x0!==_0x12ffd0){const _0x3af3c4=this['repository']['getRevision'](_0x12ffd0-0x1);if(_0x3af3c4['fromVersion']!==_0x92e03c){const _0x3a3a7f=this['_revisionDataBuilder']['getData'](_0x92e03c,_0x3af3c4['toVersion']),_0xa71a8e={'id':_0x3af3c4['id'],'diffData':_0x3a3a7f['diffData'],'authorsIds':_0x3a3a7f['authorsIds'],'authors':_0x3a3a7f['authorsIds']['map'](_0x1a41fb=>this['editor']['plugins']['get']('Users')['getUser'](_0x1a41fb)),'fromVersion':_0x92e03c};_0x3af3c4===this['currentRevision']&&(_0xa71a8e['createdAt']=new Date(_0x51fdd2['createdAt']['getTime']()+0xa)),_0x3af3c4['_update'](_0xa71a8e,!0x0),delete _0xa71a8e['authors'],_0x38ebe4['push'](_0xa71a8e);}}if(this['adapter']){for(const _0x4c0ac0 of _0x38ebe4)this['_bufferUpdate'](_0x4c0ac0['id'],_0x4c0ac0,!0x0);this['sendBufferedUpdates']();}return _0x7cdae2;}['addRevisionData'](_0x271c08){const _0x361070=this['repository']['createRevision'](_0x271c08);return this['adapter']&&_0x361070['on']('_update',(_0xd5bec9,_0x17ba3f,_0x1a4553)=>{_0x1a4553||(this['_bufferUpdate'](_0x17ba3f['id'],_0x17ba3f,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x361070,this['_findInsertionIndex'](_0x361070)),_0x361070;}async['getRevisionDocumentData'](_0x126e98){await this['_loadRevisionData'](_0x126e98);const _0x58f8d7={};for(const _0x16c196 in _0x126e98['diffData']){if(_0x126e98['diffData'][_0x16c196]['attachChange']&&!_0x126e98['diffData'][_0x16c196]['attachChange']['isAttached'])continue;const _0x5c9585=this['_removeRevisionMarkers'](JSON['parse'](_0x126e98['diffData'][_0x16c196]['insertions'])),_0x75d65d=this['editor']['editing']['view']['document'],_0x1bd160=new _0x18a752(_0x75d65d,_0x5c9585['map'](_0x4c61a2=>C(_0x4c61a2,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x58f8d7[_0x16c196]=this['editor']['data']['processor']['toData'](_0x1bd160),this['editor']['data']['processor']['useFillerType']('default');}return _0x58f8d7;}async['getRevisionRootsAttributes'](_0x5c3d3b){await this['_loadRevisionData'](_0x5c3d3b);const _0xf85adb={};for(const _0x5f18fb in _0x5c3d3b['diffData'])_0x5c3d3b['diffData'][_0x5f18fb]['attachChange']&&!_0x5c3d3b['diffData'][_0x5f18fb]['attachChange']['isAttached']||(_0xf85adb[_0x5f18fb]=_0x5c3d3b['diffData'][_0x5f18fb]['attributesAfter']||{});return _0xf85adb;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x171414=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4afc5c=0x0;_0x4afc5c<_0x171414['length'];_0x4afc5c++){const _0x435ba0=_0x171414[_0x4afc5c];let _0x4d1aa1=!0x1;for(const _0x3167be of Object['keys'](_0x435ba0))void 0x0===_0x435ba0[_0x3167be]?delete _0x435ba0[_0x3167be]:'id'!==_0x3167be&&(_0x4d1aa1=!0x0);_0x4d1aa1||(_0x171414[_0x4afc5c]=null);}if(_0x171414=_0x171414['filter'](_0x57850d=>null!==_0x57850d),!_0x171414['length'])return;for(let _0x50a3b7=0x0;_0x50a3b7<_0x171414['length'];_0x50a3b7++){const _0x8ce26a=_0x171414[_0x50a3b7];void 0x0!==_0x8ce26a['fromVersion']&&void 0x0===_0x8ce26a['toVersion']&&(_0x8ce26a['toVersion']=this['repository']['getRevision'](_0x8ce26a['id'])['toVersion']),void 0x0!==_0x8ce26a['toVersion']&&void 0x0===_0x8ce26a['fromVersion']&&(_0x8ce26a['fromVersion']=this['repository']['getRevision'](_0x8ce26a['id'])['fromVersion']);}const _0x35df76=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x171414,_0x35df76)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x405dc2=>{if(_0x405dc2){for(const _0x1a4ca5 of _0x405dc2)this['setRevisionData']({'id':_0x1a4ca5['id'],'createdAt':_0x1a4ca5['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x37c123,_0x564560){let _0x14cb8f=this['editor']['config']['get']('initialData'),_0x4bb880=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x14cb8f){_0x14cb8f={};for(const _0x52e27a of this['editor']['model']['document']['getRootNames']())_0x14cb8f[_0x52e27a]='';}if('string'==typeof _0x14cb8f&&(_0x14cb8f={'main':_0x14cb8f}),void 0x0===_0x4bb880){_0x4bb880={};for(const _0x119730 of this['editor']['model']['document']['getRootNames']())_0x4bb880[_0x119730]={};}let _0x5c3555=!0x1;const _0x2c2969=Object['keys'](_0x14cb8f),_0x10621b=Object['keys'](_0x37c123);for(const _0x3404ad of _0x2c2969){if(_0x14cb8f[_0x3404ad]!==_0x37c123[_0x3404ad]&&''!==_0x14cb8f[_0x3404ad]['trim']()){_0x5c3555=!0x0;break;}if(!_0x155caf(_0x4bb880[_0x3404ad],_0x564560[_0x3404ad])&&Object['keys'](_0x4bb880[_0x3404ad])['length']>0x0){_0x5c3555=!0x0;break;}}_0x5c3555||(_0x5c3555=_0x10621b['some'](_0x2123f5=>!this['editor']['model']['document']['getRoot'](_0x2123f5))),_0x5c3555&&_0x4d6586('editor-initial-data-replaced-with-revision-data',{'editorData':_0x14cb8f,'editorRootsAttributes':_0x4bb880,'revisionData':_0x37c123,'revisionRootsAttributes':_0x564560}),this['editor']['config']['set']('initialData',_0x37c123),this['editor']['config']['set']('rootsAttributes',_0x564560);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5c2309=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5c2309['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x40f809){const _0x29edaf=this['repository']['getRevisions']();_0x29edaf['reverse']();let _0xe5b8f8=0x0;for(;_0xe5b8f8<_0x29edaf['length'];){const _0x4ef843=_0x29edaf[_0xe5b8f8];if(_0x4ef843===this['currentRevision']){_0xe5b8f8++;continue;}if(_0x4ef843['id']===this['_initialRevisionId'])break;const _0x439453=_0x40f809['toVersion']-_0x4ef843['toVersion']||_0x40f809['fromVersion']-_0x4ef843['fromVersion'];if(_0x439453>0x0)break;if(_0x439453<0x0)_0xe5b8f8++;else{if(!_0x40f809['creator']&&_0x4ef843['creator'])break;if(_0x4ef843['creator']||!_0x40f809['creator']){if(_0x40f809['createdAt']>_0x4ef843['createdAt'])break;_0xe5b8f8++;}else _0xe5b8f8++;}}return _0xe5b8f8;}['setRevisionData'](_0x1805f7){const _0x581538=this['repository']['getRevision'](_0x1805f7['id']);if(_0x1805f7['createdAt']&&(_0x1805f7['createdAt']=new Date(_0x1805f7['createdAt'])),_0x1805f7['authorsIds']){const _0x12e804=this['editor']['plugins']['get']('Users');_0x1805f7['authors']=_0x1805f7['authorsIds']['map'](_0x21658f=>_0x12e804['getUser'](_0x21658f));}_0x581538['_update'](_0x1805f7,!0x0);}['buildRevisionData']({revision:_0x1da342=null,from:_0x296404=null,to:_0x4a7275=null}){_0x296404=null!==_0x296404?_0x296404:_0x1da342['fromVersion'],_0x4a7275=null!==_0x4a7275?_0x4a7275:_0x1da342['toVersion'];const _0x5e92f3=this['_revisionDataBuilder']['getData'](_0x296404,_0x4a7275),_0x523692={'diffData':_0x5e92f3['diffData'],'authorsIds':_0x5e92f3['authorsIds'],'fromVersion':_0x296404,'toVersion':_0x4a7275};if(!_0x1da342||_0x4a7275!==_0x1da342['toVersion']){const _0x3adb0b=_0x4a7275-0x1,_0x4155bf=this['_source']['history']['getOperation'](_0x3adb0b);_0x523692['createdAt']=_0x4155bf&&_0x4155bf['createdAt']||new Date();}if(this['_loadedStateData']&&_0x296404===this['_loadedStateData']['fromVersion']){for(const _0x2b40ef of this['_loadedStateData']['authors'])_0x523692['authorsIds']['includes'](_0x2b40ef['id'])||_0x523692['authorsIds']['push'](_0x2b40ef['id']);}return _0x523692;}['_loadRevisionData'](_0x5df394){if(!_0x5df394||_0x5df394['diffData'])return Promise['resolve']();{const _0xb177c1=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xb177c1,'revisionId':_0x5df394['id']})['then'](_0x401f3d=>{_0x5df394['diffData']=_0x401f3d['diffData'];});}}['_bufferUpdate'](_0x4e14c1,_0x28bc8b,_0x376b16){if(this['_bufferedUpdates']['has'](_0x4e14c1)){const _0x5c3237=this['_bufferedUpdates']['get'](_0x4e14c1);_0x28bc8b=_0x376b16?{..._0x5c3237,..._0x28bc8b}:{..._0x28bc8b,..._0x5c3237};}this['_bufferedUpdates']['set'](_0x4e14c1,_0x28bc8b);}['_getFromVersion'](_0x56c818){const _0x3c0f60=this['repository']['getRevisions']();_0x3c0f60['reverse'](),_0x3c0f60['shift']();const _0x5989c2=_0x3c0f60['find'](_0x506654=>_0x506654['toVersion']<=_0x56c818)['toVersion'];return _0x5989c2<this['_startingVersion']?this['_startingVersion']:_0x5989c2;}['_createInitialRevision'](_0x3b0cb0){const _0x5b54a0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5b54a0)this['_initialRevisionId']=_0x5b54a0['id'];else{const _0x3cb92d=!this['editor']['model']['document']['roots']['find'](_0xe4e587=>this['editor']['model']['hasContent'](_0xe4e587)),_0x2e4750=this['editor']['plugins']['get']('Users')['me']['id'],_0x50064a=m(this['editor']['locale'],_0x3cb92d?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3b0cb0,'to':_0x3b0cb0,'id':this['_initialRevisionId'],'name':_0x50064a,'creatorId':_0x2e4750});}}['_createCurrentRevision'](_0xaafdd0){const _0x340840=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x340840),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xaafdd0,'to':_0xaafdd0,'id':_0x340840,'name':'','creatorId':null}));}['_makeRevision']({name:_0x2365ca,from:_0x2898a6,to:_0x1ba669,creatorId:_0x1f977f,id:_0x531fc0}){const _0x1c1eb8=this['buildRevisionData']({'from':_0x2898a6,'to':_0x1ba669});_0x1c1eb8['name']=_0x2365ca,_0x1c1eb8['creatorId']=_0x1f977f,_0x1c1eb8['id']=_0x531fc0;const _0x15deeb=this['addRevisionData'](_0x1c1eb8);return this['adapter']&&this['_bufferUpdate'](_0x1c1eb8['id'],_0x1c1eb8,!0x0),_0x15deeb;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4c3f73){return(_0x4c3f73=_0x4c3f73['filter'](_0x42f851=>!_0x42f851['name']||'revision-start'!==_0x42f851['name']&&'revision-end'!==_0x42f851['name']))['forEach'](_0x1f9077=>{'string'!=typeof _0x1f9077&&(_0x1f9077['children']=this['_removeRevisionMarkers'](_0x1f9077['children']),_0x1f9077['attributes']=_0x1f9077['attributes']['filter'](_0x541915=>!_0x541915[0x0]['startsWith']('data-revision-')));}),_0x4c3f73;}}function C(_0x5580e0,_0x576496){const _0x44c625=_0x576496['editing']['view']['document'];if('string'==typeof _0x5580e0)return new _0x5248c5(_0x44c625,_0x5580e0);{const _0x401aab=_0x5580e0['children']['map'](_0x333e59=>C(_0x333e59,_0x576496));return new(P[_0x5580e0['type']]||_0x26c3f6)(_0x44c625,_0x5580e0['name'],_0x5580e0['attributes'],_0x401aab);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x45e582){this['editor']=_0x45e582,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'](_0x250a2b){this['source']=_0x250a2b;const _0x3a5533=new Map(),_0x1835ae=new Map(),_0x1fd72d=this['editor']['model']['document']['roots']['map'](_0x1e10ae=>_0x1e10ae['rootName']);for(const _0x373e0c of _0x1fd72d){const _0x6623c9=this['editor']['model']['document']['getRoot'](_0x373e0c),_0x5b882a=T(_0x6623c9);_0x3a5533['set'](_0x373e0c,_0x5b882a),_0x1835ae['set'](_0x373e0c,Object['fromEntries'](_0x6623c9['getAttributes']()));}const _0x256c7f=Array['from'](this['editor']['model']['markers'])['map'](_0x129ef1=>[_0x129ef1['name'],_0x129ef1['getRange']()]),_0x57eff4=this['source']['version'];this['_saveMetaData'](_0x57eff4,_0x3a5533,_0x256c7f,_0x1835ae),this['_startingRevisionId']=this['_revisionId'];const _0x5859e8=new Map(),_0x328f4a=new Map();for(const _0x29cd35 of _0x1fd72d){const _0x3745b4=F(_0x29cd35);_0x5859e8['set'](_0x29cd35,_0x3745b4),_0x328f4a['set'](_0x29cd35,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5859e8,[],_0x328f4a);}['getData'](_0x1d5264,_0xbfecd2){if(this['_lastFrom']===_0x1d5264&&this['_lastTo']<=_0xbfecd2)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xbfecd2,!0x0);else{if(!this['_savedMetaData']['has'](_0x1d5264)){const _0x149629=this['_getPreviousFrom'](_0x1d5264);this['_calculateMetaData'](_0x149629,_0x1d5264,!0x1);}this['_calculateMetaData'](_0x1d5264,_0xbfecd2,!0x0);}return this['_lastFrom']=_0x1d5264,this['_lastTo']=_0xbfecd2,this['_getState']();}['loadState'](_0x66ac9d){this['_reset'](),this['_lastFrom']=_0x66ac9d['fromVersion'],this['_lastTo']=_0x66ac9d['toVersion'];for(const _0xcb8cd0 in _0x66ac9d['diffData']){const _0xa59a50=_0x66ac9d['diffData'][_0xcb8cd0]['attachChange'],_0x56c039=_0x19c9df(_0x66ac9d['diffData'][_0xcb8cd0]['attributesBefore'])||{},_0x4b517c=this['_makeModelFromViewString'](_0x66ac9d['diffData'][_0xcb8cd0]['deletions']);_0x4b517c['rootName']=_0xcb8cd0,_0x4b517c['_isAttached']=!_0xa59a50||!_0xa59a50['isAttached'],_0x4b517c['isAttached']=()=>_0x4b517c['_isAttached'],this['_baseRoots']['set'](_0xcb8cd0,_0x4b517c),this['_baseRootsAttributes']['set'](_0xcb8cd0,_0x56c039),_0xa59a50&&this['_touchedRoots']['set'](_0xcb8cd0,_0xa59a50);const _0x151290=this['_makeIdsRoot'](_0x4b517c);this['_baseIdsRoots']['set'](_0xcb8cd0,_0x151290);for(const [_0x1eed6b,_0x41cc72]of _0x4b517c['markers']){if(!_0x1eed6b['startsWith']('revision:'))continue;const _0xb9e6db=_0x1eed6b['split'](':')[0x2];for(const _0x45a27c of _0x41cc72['getWalker']({'singleCharacters':!0x0})){const _0x13bfe9=this['_getVidAttributeName'](_0x45a27c),_0x3d318e='elementEnd'==_0x45a27c['type']?_0x45a27c['previousPosition']['path']['slice'](0x0,-0x1):_0x45a27c['previousPosition']['path'],_0x4a1d0a=_0x151290['getNodeByPath'](_0x3d318e)['getAttribute'](_0x13bfe9);this['_touched']['set'](_0x4a1d0a,{'userId':_0xb9e6db});}}}this['_startingRevisionId']=this['_revisionId'];const _0xa8b440=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xd8b84e=>!this['_touched']['has'](_0xd8b84e));let _0x4edeec=0x0;const _0x5bf954=new Map();for(const _0x1acee3 in _0x66ac9d['diffData']){const _0x107abf=_0x66ac9d['diffData'][_0x1acee3]['attachChange'],_0x122a99=_0x19c9df(_0x66ac9d['diffData'][_0x1acee3]['attributesAfter'])||{},_0x1e43f0=this['_makeModelFromViewString'](_0x66ac9d['diffData'][_0x1acee3]['insertions']);_0x1e43f0['rootName']=_0x1acee3,_0x1e43f0['_isAttached']=!_0x107abf||_0x107abf['isAttached'],_0x1e43f0['isAttached']=()=>_0x1e43f0['_isAttached'],this['_diffRoots']['set'](_0x1acee3,_0x1e43f0),this['_diffRootsAttributes']['set'](_0x1acee3,_0x122a99);const _0x51c088=this['_makeIdsRoot'](_0x1e43f0,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1acee3,_0x51c088),_0x5bf954['set'](_0x1acee3,_0x1e43f0['isAttached']()?_0x122a99:{});for(const [_0x1f4746,_0x5d0d02]of _0x1e43f0['markers']){if(!_0x1f4746['startsWith']('revision:'))continue;const _0x2be226=_0x1f4746['split'](':')[0x2];for(const _0x59eaa1 of _0x5d0d02['getWalker']({'singleCharacters':!0x0})){const _0x5e0f50=this['_getVidAttributeName'](_0x59eaa1),_0x1cedc1=this['_revisionId']++,_0x444dc9='elementEnd'==_0x59eaa1['type']?_0x59eaa1['previousPosition']['path']['slice'](0x0,-0x1):_0x59eaa1['previousPosition']['path'];_0x51c088['getNodeByPath'](_0x444dc9)['_setAttribute'](_0x5e0f50,_0x1cedc1),this['_touched']['set'](_0x1cedc1,{'userId':_0x2be226});}}for(const _0x5ab81f of this['editor']['model']['createRangeIn'](_0x1e43f0)['getWalker']({'singleCharacters':!0x0})){const _0x15aae9=this['_getVidAttributeName'](_0x5ab81f),_0x29c074='elementEnd'==_0x5ab81f['type']?_0x5ab81f['previousPosition']['path']['slice'](0x0,-0x1):_0x5ab81f['previousPosition']['path'],_0x20be43=_0x51c088['getNodeByPath'](_0x29c074);_0x20be43['getAttribute'](_0x15aae9)>0x0||_0x20be43['_setAttribute'](_0x15aae9,_0xa8b440[_0x4edeec++]);}for(const [_0x257029,_0x469015]of _0x1e43f0['markers'])_0x257029['startsWith']('revision:')||this['_markers']['set'](_0x257029,_0x469015);}const _0x272fde=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x272fde),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x272fde,0x1));const _0x147288=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x147288),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x147288,0x1));const _0xec621d=Array['from'](this['_diffRoots'])['map'](([_0x22e921,_0x55e9cb])=>[_0x22e921,T(_0x55e9cb)]);this['_saveMetaData'](this['_lastTo'],_0xec621d,this['_markers'],_0x5bf954);}['_makeModelFromViewString'](_0x1c3ab5){const _0x109eab=JSON['parse'](_0x1c3ab5),_0x335d09=this['editor']['editing']['view']['document'],_0x2f2de3=new _0x18a752(_0x335d09,_0x109eab['map'](_0x4b9953=>C(_0x4b9953,this['editor'])));return this['editor']['data']['toModel'](_0x2f2de3);}['_saveMetaData'](_0x497bc7,_0x24febf,_0x3b8d44,_0x5462c7){const _0x47da5f=new Map(_0x24febf),_0x5341e9=new Map(_0x19c9df(_0x5462c7)),_0x3ef194=new Map();for(const [_0x368d50,_0x355d96]of _0x3b8d44)_0x3ef194['set'](_0x368d50,{'start':_0x355d96['start']['clone'](),'end':_0x355d96['end']['clone'](),'rootName':_0x355d96['root']['rootName']});this['_savedMetaData']['set'](_0x497bc7,{'roots':_0x47da5f,'markers':_0x3ef194,'rootsAttributes':_0x5341e9});}['_removeMetaData'](_0x1dc4a3){this['_savedMetaData']['delete'](_0x1dc4a3);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_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'](_0x1e5109,_0x21b5ba=null){let _0x3911e0=null;_0x1e5109['is']('documentFragment')||(_0x3911e0=new ft(_0x1e5109['name'],{'vid_start':null===_0x21b5ba?this['_revisionId']++:_0x21b5ba++}));const _0x29d3b6=[];for(const _0x2fed97 of _0x1e5109['getChildren']())if(_0x2fed97['is']('element')){_0x29d3b6['push'](this['_makeIdsRoot'](_0x2fed97,_0x21b5ba));const _0x4d9cec=_0x29d3b6[_0x29d3b6['length']-0x1];null!==_0x21b5ba&&(_0x21b5ba=_0x4d9cec['is']('element','$text')?_0x4d9cec['getAttribute']('vid')+0x1:_0x4d9cec['getAttribute']('vid_end')+0x1);}else{for(let _0x292f5e=0x0;_0x292f5e<_0x2fed97['offsetSize'];_0x292f5e++)_0x29d3b6['push'](new ft('$text',{'vid':null===_0x21b5ba?this['_revisionId']++:_0x21b5ba++}));}if(_0x1e5109['is']('documentFragment')){const _0x4bfce7=F(_0x1e5109['rootName']);return _0x4bfce7['_insertChild'](0x0,_0x29d3b6),_0x4bfce7;}return _0x3911e0['_setAttribute']('vid_end',null===_0x21b5ba?this['_revisionId']++:_0x21b5ba++),_0x3911e0['_insertChild'](0x0,_0x29d3b6),_0x3911e0;}['_calculateMetaData'](_0x33eb63,_0x5640a1,_0x3d702f){this['_reset']();const {roots:_0x13d2a8,markers:_0x5bf742,rootsAttributes:_0x1ccdd0}=this['_savedMetaData']['get'](_0x33eb63);this['_baseRoots']=new Map(_0x13d2a8),this['_baseRootsAttributes']=new Map(_0x19c9df(_0x1ccdd0));for(const [_0x3cdb6d,_0x4540ea]of this['_baseRoots'])if('$graveyard'!==_0x3cdb6d&&(this['_diffRoots']['set'](_0x3cdb6d,T(_0x4540ea)),this['_diffRootsAttributes']=new Map(_0x19c9df(_0x1ccdd0)),_0x3d702f)){const _0x19bfe2=this['_revisionId'];this['_idsRoots']['set'](_0x3cdb6d,this['_makeIdsRoot'](_0x4540ea)),this['_baseIdsRoots']['set'](_0x3cdb6d,this['_makeIdsRoot'](_0x4540ea,_0x19bfe2));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x3d702f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4bc27f,_0x370507]of _0x5bf742){const _0x12877f=this['_baseRoots']['get'](_0x370507['rootName']),_0x32b79e=this['_diffRoots']['get'](_0x370507['rootName']),_0xb7a1ad=new vt(this['_fixPosition'](_0x370507['start'],_0x12877f),this['_fixPosition'](_0x370507['end'],_0x12877f)),_0x1eb3ed=this['_fixRange'](_0xb7a1ad,_0x32b79e);_0x12877f['markers']['set'](_0x4bc27f,_0xb7a1ad),this['_markers']['set'](_0x4bc27f,_0x1eb3ed);}this['_applyOperations'](_0x33eb63,_0x5640a1,_0x3d702f);}['_applyOperations'](_0x81ce3b,_0x2c8eab,_0x127e43){for(const _0x3f707e of this['source']['getOperations'](_0x81ce3b,_0x2c8eab))this['_handleOperation'](_0x3f707e,_0x127e43);for(const _0x2e5d59 of this['_diffRoots']['values']())_0x2e5d59['markers']['clear']();for(const [_0x5e719b,_0x16a234]of this['_markers']){this['_diffRoots']['get'](_0x16a234['root']['rootName'])['markers']['set'](_0x5e719b,_0x16a234['clone']());}const _0x5ecebc=new Map(),_0x116de1=new Map();for(const [_0x2b0f19,_0x531220]of this['_diffRoots'])_0x5ecebc['set'](_0x2b0f19,T(_0x531220)),_0x116de1['set'](_0x2b0f19,this['_diffRootsAttributes']['get'](_0x2b0f19));this['_saveMetaData'](_0x2c8eab,_0x5ecebc,this['_markers'],_0x116de1);}['_getPreviousFrom'](_0x28c8ac){const _0x3afff3=Array['from'](this['_savedMetaData']['keys']());_0x3afff3['sort']((_0x4498b1,_0x4788fa)=>_0x4498b1-_0x4788fa),_0x3afff3['reverse']();for(const _0xbb039c of _0x3afff3)if(_0xbb039c<_0x28c8ac)return _0xbb039c;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x24dc95,_0x3da142){const _0x52a19f=Array['from'](_0x3da142['markers'])['map'](([_0x4fc85d,_0x68affc])=>[_0x4fc85d,this['_fixRange'](_0x68affc,_0x24dc95)]);_0x24dc95['markers']=new Map(_0x52a19f);}['_transformMarkers'](_0x42d63e){for(const _0x51785d of this['_markers']['values']()){const _0x10d706=_0x51785d['getTransformedByOperation'](_0x42d63e),_0x390201=vt['_createFromRanges'](_0x10d706);_0x51785d['start']=_0x390201['start'],_0x51785d['end']=_0x390201['end'];}}['_handleOperation'](_0xc62496,_0x2bd4ff){if('addRoot'!=_0xc62496['type']&&'detachRoot'!=_0xc62496['type']){if('insert'==_0xc62496['type']){const _0x43cdc7=_0xc62496['position']['root']['rootName'];this['_diffRoots']['has'](_0x43cdc7)||(this['_diffRoots']['set'](_0x43cdc7,F(_0x43cdc7,!0x0)),this['_diffRootsAttributes']['set'](_0x43cdc7,{}),_0x2bd4ff&&this['_idsRoots']['set'](_0x43cdc7,F(_0x43cdc7,!0x0)));}else{if('addRootAttribute'==_0xc62496['type']||'removeRootAttribute'==_0xc62496['type']||'changeRootAttribute'==_0xc62496['type'])return void this['_handleRootAttributeOperation'](_0xc62496);'marker'==_0xc62496['type']&&this['_handleMarkerOperation'](_0xc62496);}if('marker'!==_0xc62496['type']){const _0x4332fe=this['_cloneOperation'](_0xc62496,this['_diffRoots']);_0x4332fe['_execute'](),this['_transformMarkers'](_0x4332fe);}if(_0x2bd4ff)switch(_0xc62496['type']){case'insert':this['_handleInsertOperation'](_0xc62496);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xc62496);break;case'merge':this['_handleMergeOperation'](_0xc62496);break;case'split':this['_handleSplitOperation'](_0xc62496);}}else this['_handleRootOperation'](_0xc62496,_0x2bd4ff);}['_cloneOperation'](_0x2de116,_0x52a400){const _0x51ac0f=_0x2de116['clone']();return _0x51ac0f['_authorId']=_0x2de116['_authorId'],this['_fixOperation'](_0x51ac0f,_0x52a400),_0x51ac0f;}['_getBaseVids'](_0x17e336){return _0x17e336['map'](_0x125874=>{const _0x2af94f=this['_getVidAttributeName'](_0x125874);return Number(_0x125874['item']['getAttribute'](_0x2af94f));});}['_generateTape'](_0x123c93,_0x36e2d9){if(_0x123c93['is']('element','$text'))_0x36e2d9['push']({'item':_0x123c93,'type':'text'});else{_0x123c93['is']('element')&&_0x36e2d9['push']({'item':_0x123c93,'type':'elementStart'});for(const _0x22a502 of _0x123c93['getChildren']())this['_generateTape'](_0x22a502,_0x36e2d9);_0x123c93['is']('element')&&_0x36e2d9['push']({'item':_0x123c93,'type':'elementEnd'});}return _0x36e2d9;}['_getState'](){const _0x327550=new Map(this['_touched']),_0x45b062=new Map(_0x327550),_0x43dba8=new Map(),_0x50d554={'insertions':{},'deletions':{}},_0x511e61={'insertions':{},'deletions':{}},_0x5196ac=new Map(),_0x1ed54c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1ed54c['delete']('$graveyard');for(const _0x43893b of _0x1ed54c){const _0x4179b7=this['_diffRoots']['get'](_0x43893b)||F(_0x43893b,!0x1),_0x2cc3fe=this['_baseRoots']['get'](_0x43893b)||F(_0x43893b,!0x1);_0x4179b7['isAttached']()||_0x2cc3fe['isAttached']()?(_0x50d554['insertions'][_0x43893b]=T(_0x4179b7),_0x50d554['deletions'][_0x43893b]=T(_0x2cc3fe),this['_copyMarkers'](_0x50d554['deletions'][_0x43893b],_0x2cc3fe),this['_copyMarkers'](_0x50d554['insertions'][_0x43893b],_0x4179b7),_0x511e61['insertions'][_0x43893b]=this['_generateTape'](this['_idsRoots']['get'](_0x43893b),[]),_0x511e61['deletions'][_0x43893b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x43893b)||F(_0x43893b,!0x1),[])):_0x1ed54c['delete'](_0x43893b);}for(const _0xb61da7 of _0x1ed54c){const _0x43a46d=_0x511e61['insertions'][_0xb61da7];for(const _0x6aa72b of _0x43a46d){const _0x1f9fd5=this['_getVidAttributeName'](_0x6aa72b),_0x73cbe4=_0x6aa72b['item']['getAttribute'](_0x1f9fd5);_0x45b062['delete'](_0x73cbe4),_0x73cbe4>=this['_startingRevisionId']&&_0x43dba8['set'](_0x73cbe4,_0x327550['get'](_0x73cbe4));}}for(const _0x4b6bac of _0x1ed54c){const _0x5c7b14=_0x511e61['insertions'][_0x4b6bac],_0x3f90b6=this['_getBaseVids'](_0x511e61['deletions'][_0x4b6bac]);let _0x7b4014=0x0;for(const _0xc1569b of _0x5c7b14){const _0x44f62e=this['_getVidAttributeName'](_0xc1569b),_0x24a930=_0xc1569b['item']['getAttribute'](_0x44f62e);if(!_0x43dba8['has'](_0x24a930)&&!_0x5196ac['has'](_0x24a930)){if(_0x45b062['has'](_0x24a930))_0x7b4014++;else{if(_0x24a930!=_0x3f90b6[_0x7b4014]){const _0x204124=_0x327550['get'](_0x24a930)||_0x327550['get'](_0x3f90b6[_0x7b4014]);for(;_0x24a930!=_0x3f90b6[_0x7b4014];)_0x45b062['has'](_0x3f90b6[_0x7b4014])||(_0x5196ac['set'](_0x3f90b6[_0x7b4014],_0x204124),_0x327550['set'](_0x3f90b6[_0x7b4014],_0x204124)),_0x7b4014++;}_0x7b4014++;}}}}for(const _0x2fcf55 of _0x1ed54c){const _0x3c5ba3=_0x511e61['insertions'][_0x2fcf55];for(const _0x237458 of _0x3c5ba3){const _0xb47ff7=this['_getVidAttributeName'](_0x237458),_0x45e1ac=_0x237458['item']['getAttribute'](_0xb47ff7);if(_0x5196ac['has'](_0x45e1ac)){const _0x9e543c=_0x5196ac['get'](_0x45e1ac);_0x45b062['has'](_0x45e1ac)||_0x45b062['set'](_0x45e1ac,{..._0x9e543c}),_0x43dba8['set'](_0x45e1ac,{..._0x9e543c});}}}for(const _0x5472a7 of _0x45b062['keys']())_0x5472a7>=this['_startingRevisionId']&&_0x45b062['delete'](_0x5472a7);const _0x1f862b=new Map();for(const _0x467ed5 of _0x1ed54c){let _0x16553b=_0x511e61['insertions'][_0x467ed5];for(const _0x50ba45 of _0x16553b)if(_0x50ba45['item']['is']('element','tableCell')){const _0xbc3ad2=this['_getVidAttributeName'](_0x50ba45),_0x196e2d=_0x50ba45['item']['getAttribute'](_0xbc3ad2);if(_0x43dba8['has'](_0x196e2d)){const _0x309a51=_0x50ba45['item']['parent']['parent']['getAttribute']('vid_start'),_0x11fd05=_0x1f862b['get'](_0x309a51)||new Set();_0x11fd05['add'](_0x43dba8['get'](_0x196e2d)['userId']),_0x1f862b['set'](_0x309a51,_0x11fd05);}}_0x16553b=_0x511e61['deletions'][_0x467ed5];for(const _0x2d01d6 of _0x16553b)if(_0x2d01d6['item']['is']('element','tableCell')){const _0x55cddc=this['_getVidAttributeName'](_0x2d01d6),_0x45e53c=_0x2d01d6['item']['getAttribute'](_0x55cddc);if(_0x45b062['has'](_0x45e53c)){const _0x58d4e3=_0x2d01d6['item']['parent']['parent']['getAttribute']('vid_start'),_0x29676a=_0x1f862b['get'](_0x58d4e3)||new Set();_0x29676a['add'](_0x45b062['get'](_0x45e53c)['userId']),_0x1f862b['set'](_0x58d4e3,_0x29676a);}}for(const _0x4bf1b8 of _0x1f862b['keys']())(_0x43dba8['has'](_0x4bf1b8)||_0x45b062['has'](_0x4bf1b8))&&_0x1f862b['delete'](_0x4bf1b8);}for(const _0x4f528d of _0x1ed54c){const _0x59d914=_0x511e61['insertions'][_0x4f528d];let _0x3bb52c=null,_0x4afae9=null;for(const _0x5af181 of _0x59d914){const _0xa552b9=this['_getVidAttributeName'](_0x5af181),_0x5838c9=_0x5af181['item']['getAttribute'](_0xa552b9),_0x49c36e=_0x1f862b['get'](_0x5838c9);_0x49c36e&&'elementStart'==_0x5af181['type']&&(_0x3bb52c=Array['from'](_0x49c36e)[0x0],_0x4afae9=_0x5af181['item']['getAttribute']('vid_end')),_0x3bb52c&&(_0x45b062['set'](_0x5838c9,{'userId':_0x3bb52c}),_0x43dba8['set'](_0x5838c9,{'userId':_0x3bb52c})),_0x5838c9==_0x4afae9&&(_0x3bb52c=null,_0x4afae9=null);}}const _0x43fb9={},_0xfbb673=new Set();for(const _0x164e56 of _0x1ed54c){const _0x38de29=_0x50d554['deletions'][_0x164e56],_0x11d54e=_0x50d554['insertions'][_0x164e56];for(const {userId:_0x1c1dfd}of this['_touchedMarkers']['values']())null!==_0x1c1dfd&&_0xfbb673['add'](_0x1c1dfd);for(const {userId:_0x4f2b9e}of this['_touchedRoots']['values']())null!==_0x4f2b9e&&_0xfbb673['add'](_0x4f2b9e);this['_markChanges'](_0x11d54e,_0x511e61['insertions'][_0x164e56],_0x43dba8,'insertion',_0xfbb673),this['_markChanges'](_0x38de29,_0x511e61['deletions'][_0x164e56],_0x45b062,'deletion',_0xfbb673),_0x43fb9[_0x164e56]={'insertions':this['_prepareViewToSave'](_0x11d54e),'deletions':this['_prepareViewToSave'](_0x38de29),'attachChange':this['_touchedRoots']['get'](_0x164e56)||null,'attributesBefore':_0x19c9df(this['_baseRootsAttributes']['get'](_0x164e56))||{},'attributesAfter':_0x19c9df(this['_diffRootsAttributes']['get'](_0x164e56))};}return{'diffData':_0x43fb9,'authorsIds':Array['from'](_0xfbb673)};}['_processRootBeforeSave'](_0x424fdb){for(const [,_0x172f70]of _0x424fdb['markers']){const _0x556b48=_0x172f70['start']['getAncestors']()['filter'](_0x27927c=>'tableCell'==_0x27927c['name']);for(const _0x394468 of _0x556b48)0x1==_0x394468['childCount']&&_0x394468['getChild'](0x0)['is']('element','paragraph')&&_0x394468['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4ca432){this['_processRootBeforeSave'](_0x4ca432);const _0x4cc432=this['editor']['data']['toView'](_0x4ca432,{}),_0x7a7674=Array['from'](_0x4cc432['getChildren']())['map'](_0x17c8f7=>this['_getViewJson'](_0x17c8f7));return JSON['stringify'](_0x7a7674);}['_getViewJson'](_0x1040ca){if(_0x1040ca['is']('$text'))return _0x1040ca['data'];{const _0x14186b=_0x1040ca;return{'type':Object['keys'](P)['find'](_0x16ee3a=>_0x1040ca instanceof P[_0x16ee3a]),'name':_0x14186b['name'],'attributes':Array['from'](_0x14186b['getAttributes']()),'children':Array['from'](_0x14186b['getChildren']())['map'](_0x319258=>this['_getViewJson'](_0x319258))};}}['_markChanges'](_0x3ddaf6,_0x4dd0ab,_0x1d13d3,_0x1a792f,_0x3668b5){let _0x1777e5=null,_0x5d6057=null,_0x2ba0fb=0x0;const _0x43f06e=this['editor']['model'];for(let _0x4ed46b=0x0;_0x4ed46b<_0x4dd0ab['length'];_0x4ed46b++){const _0x5ce045=this['_getVidAttributeName'](_0x4dd0ab[_0x4ed46b]),_0x71fcdc=_0x4dd0ab[_0x4ed46b]['item']['getAttribute'](_0x5ce045),_0x4459da=_0x1d13d3['get'](_0x71fcdc),_0x596b16=_0x4ed46b==_0x4dd0ab['length']-0x1;(!_0x1777e5&&_0x4459da&&(_0x1777e5=_0x4459da,_0x5d6057=_0x4dd0ab[_0x4ed46b]),_0x1777e5&&(!_0x4459da||_0x4459da['userId']!=_0x1777e5['userId']))&&(_0x486c80(_0x4459da,B(_0x5d6057,_0x3ddaf6,_0x43f06e),B(_0x4dd0ab[_0x4ed46b],_0x3ddaf6,_0x43f06e)),_0x1777e5=_0x4459da||null,_0x5d6057=_0x4459da?_0x4dd0ab[_0x4ed46b]:null),_0x1777e5&&_0x596b16&&_0x486c80(_0x4459da,B(_0x5d6057,_0x3ddaf6,_0x43f06e),J(_0x4dd0ab[_0x4ed46b],_0x3ddaf6,_0x43f06e));}function _0x486c80(_0xe07232,_0x32c1ee,_0x4ffcfe){const _0x556483=_0x1777e5['userId'],_0x3c8b3d='revision:'+_0x1a792f+':'+_0x556483+':'+_0x2ba0fb++,_0x4d25a0=_0x43f06e['createRange'](_0x32c1ee,_0x4ffcfe);_0x3ddaf6['markers']['set'](_0x3c8b3d,_0x4d25a0),null!==_0x556483&&_0x3668b5['add'](_0x556483);}}['_getVidAttributeName'](_0x1f13f3){switch(_0x1f13f3['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3994e2,_0xf2f44a){_0x3994e2['baseVersion']=null;for(const _0x2c839d in _0x3994e2){const _0x5a5f23=_0x3994e2[_0x2c839d];if(_0x5a5f23 instanceof gt){const _0x107f8e=_0xf2f44a['get'](_0x5a5f23['root']['rootName']);_0x3994e2[_0x2c839d]=this['_fixPosition'](_0x5a5f23,_0x107f8e);}if(_0x5a5f23 instanceof vt){const _0x2c3a5b=_0xf2f44a['get'](_0x5a5f23['root']['rootName']);_0x3994e2[_0x2c839d]=this['_fixRange'](_0x5a5f23,_0x2c3a5b);}'root'===_0x2c839d&&(_0x3994e2['root']=_0xf2f44a['get'](_0x3994e2['root']['rootName']));}}['_fixRange'](_0x4dacae,_0x5ca619){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4dacae['start'],_0x5ca619),this['_fixPosition'](_0x4dacae['end'],_0x5ca619));}['_fixPosition'](_0x1de3cb,_0x4a5a81){return this['editor']['model']['createPositionFromPath'](_0x4a5a81,_0x1de3cb['path'],_0x1de3cb['stickiness']);}['_handleInsertOperation'](_0x4c6373){const _0x287a0c=this['_idsRoots']['get'](_0x4c6373['position']['root']['rootName']),_0x42704e=this['_fixPosition'](_0x4c6373['position'],_0x287a0c),_0xb6d233=null===_0x4c6373['_authorId']?null:_0x4c6373['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x143df4=_0x42704e['parent'],_0x5b6d5f=this['_revisionId'],_0x231b1c=[];for(const _0x1e8f53 of _0x4c6373['nodes'])if(_0x1e8f53['is']('element'))_0x231b1c['push'](this['_makeIdsRoot'](_0x1e8f53));else{for(let _0x159417=0x0;_0x159417<_0x1e8f53['offsetSize'];_0x159417++)_0x231b1c['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x492020=this['_revisionId'];for(let _0x406ae4=_0x5b6d5f;_0x406ae4<_0x492020;_0x406ae4++)this['_touched']['set'](_0x406ae4,{'userId':_0xb6d233});_0x143df4['_insertChild'](_0x42704e['offset'],_0x231b1c);}['_handleMoveOperation'](_0x368901){(_0x368901=this['_cloneOperation'](_0x368901,this['_idsRoots']))['_execute']();const _0x17a320=null===_0x368901['_authorId']?null:_0x368901['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x432113=_0x368901['getMovedRangeStart'](),_0x4bf0f5=_0x432113['parent'],_0x146585=_0x432113['offset'];!function _0x56b806(_0x3b0ec7,_0x4fffe2,_0x26b5b7,_0x53405f){for(let _0xfc0607=_0x26b5b7;_0xfc0607<_0x53405f;_0xfc0607++){const _0x26793=_0x4fffe2['getChild'](_0xfc0607);_0x26793['is']('element','$text')?_0x3b0ec7['set'](_0x26793['getAttribute']('vid'),{'userId':_0x17a320}):(_0x3b0ec7['set'](_0x26793['getAttribute']('vid_start'),{'userId':_0x17a320}),_0x56b806(_0x3b0ec7,_0x26793,0x0,_0x26793['childCount']),_0x3b0ec7['set'](_0x26793['getAttribute']('vid_end'),{'userId':_0x17a320}));}}(this['_touched'],_0x4bf0f5,_0x146585,_0x146585+_0x368901['howMany']);}['_handleMergeOperation'](_0x14baee){const _0x2b111f=null===(_0x14baee=this['_cloneOperation'](_0x14baee,this['_idsRoots']))['_authorId']?null:_0x14baee['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x48b544=_0x14baee['targetPosition']['parent'],_0x3c2c0d=_0x14baee['sourcePosition']['parent'],_0x6f4130=_0x48b544['getAttribute']('vid_end'),_0x62cf9e=_0x3c2c0d['getAttribute']('vid_start');_0x48b544['_setAttribute']('vid_end',_0x3c2c0d['getAttribute']('vid_end')),_0x3c2c0d['_setAttribute']('vid_end',_0x6f4130),this['_touched']['set'](_0x62cf9e,{'userId':_0x2b111f}),this['_touched']['set'](_0x6f4130,{'userId':_0x2b111f}),_0x14baee['_execute']();}['_handleSplitOperation'](_0x1a955d){const _0x38407c=null===(_0x1a955d=this['_cloneOperation'](_0x1a955d,this['_idsRoots']))['_authorId']?null:_0x1a955d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4030d3=_0x1a955d['graveyardPosition'],_0x2766e2=_0x1a955d['splitPosition']['parent'];_0x1a955d['_execute']();const _0x234d02=_0x2766e2['getAttribute']('vid_end'),_0x567353=_0x1a955d['insertionPosition']['nodeAfter'];if(_0x4030d3){const _0x2eb737=_0x567353['getAttribute']('vid_end'),_0x2f08e7=_0x2766e2['getAttribute']('vid_end');_0x2766e2['_setAttribute']('vid_end',_0x2eb737),_0x567353['_setAttribute']('vid_end',_0x2f08e7),this['_touched']['set'](_0x2766e2['getAttribute']('vid_end'),{'userId':_0x38407c}),this['_touched']['set'](_0x567353['getAttribute']('vid_start'),{'userId':_0x38407c});}else{const _0x479eaf=this['_revisionId']++,_0x3a190d=this['_revisionId']++;_0x2766e2['_setAttribute']('vid_end',_0x479eaf),_0x567353['_setAttribute']('vid_start',_0x3a190d),_0x567353['_setAttribute']('vid_end',_0x234d02),this['_touched']['set'](_0x479eaf,{'userId':_0x38407c}),this['_touched']['set'](_0x3a190d,{'userId':_0x38407c});}}['_handleMarkerOperation'](_0x2864b9){if(!_0x2864b9['affectsData'])return;const _0x96f05f=(_0x2864b9=this['_cloneOperation'](_0x2864b9,this['_diffRoots']))['oldRange']?_0x2864b9['oldRange']['root']:null,_0x2e65d=_0x2864b9['newRange']?_0x2864b9['newRange']['root']:null;_0x96f05f&&this['_markers']['delete'](_0x2864b9['name']),_0x2e65d&&this['_markers']['set'](_0x2864b9['name'],_0x2864b9['newRange']['clone']());const _0xfdee8c=null===_0x2864b9['_authorId']?null:_0x2864b9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x21645f=_0x2864b9['name'];if(!this['_touchedMarkers']['has'](_0x21645f))return void this['_touchedMarkers']['set'](_0x21645f,{'range':_0x2864b9['oldRange'],'userId':_0xfdee8c});const _0x2e9792=this['_touchedMarkers']['get'](_0x21645f),_0x1b479d=_0x2e9792['range'],_0x5587d2=_0x2864b9['newRange'];null==_0x1b479d&&null==_0x5587d2||_0x1b479d&&_0x5587d2&&_0x1b479d['isEqual'](_0x5587d2)?this['_touchedMarkers']['delete'](_0x2864b9['name']):_0x2e9792['userId']=_0xfdee8c;}['_handleRootOperation'](_0x7f0654,_0x4d2f89){this['_diffRoots']['has'](_0x7f0654['rootName'])?this['_diffRoots']['get'](_0x7f0654['rootName'])['_isAttached']=_0x7f0654['isAdd']:(this['_diffRoots']['set'](_0x7f0654['rootName'],F(_0x7f0654['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x7f0654['rootName'],{}),_0x4d2f89&&this['_idsRoots']['set'](_0x7f0654['rootName'],F(_0x7f0654['rootName'],!0x0)));const _0x4323c6=null===_0x7f0654['_authorId']?null:_0x7f0654['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x20eeb9=this['_touchedRoots']['get'](_0x7f0654['rootName']);_0x20eeb9&&_0x20eeb9['userId']===_0x4323c6?this['_touchedRoots']['delete'](_0x7f0654['rootName']):this['_touchedRoots']['set'](_0x7f0654['rootName'],{'userId':_0x4323c6,'isAttached':_0x7f0654['isAdd']});}['_handleRootAttributeOperation'](_0x5467d4){const _0x48464d=this['_diffRootsAttributes']['get'](_0x5467d4['root']['rootName']);null===_0x5467d4['newValue']?delete _0x48464d[_0x5467d4['key']]:_0x48464d[_0x5467d4['key']]=_0x5467d4['newValue'];}}function T(_0x416b9b){const _0x4e2807=F(_0x416b9b['rootName'],_0x416b9b['isAttached']());for(const _0x5e80e6 of _0x416b9b['getChildren']()){const _0x3d47ce=_0x5e80e6['_clone'](!0x0);_0x4e2807['_appendChild'](_0x3d47ce);}return _0x4e2807;}function F(_0x2e294c,_0x2ebe4f=!0x0){const _0x33783c=new mt();return _0x33783c['rootName']=_0x2e294c,_0x33783c['_isAttached']=_0x2ebe4f,_0x33783c['isAttached']=()=>_0x33783c['_isAttached'],_0x33783c;}function B(_0x4171ab,_0x15b203,_0x33d314){const _0x4b3947='elementEnd'==_0x4171ab['type']?_0x33d314['createPositionAt'](_0x4171ab['item'],'end'):_0x33d314['createPositionBefore'](_0x4171ab['item']);return _0x33d314['createPositionFromPath'](_0x15b203,_0x4b3947['path'],_0x4b3947['stickiness']);}function J(_0x1259da,_0x10345d,_0x4e5a6c){const _0xdb5898='elementStart'==_0x1259da['type']?_0x4e5a6c['createPositionAt'](_0x1259da['item'],0x0):_0x4e5a6c['createPositionAfter'](_0x1259da['item']);return _0x4e5a6c['createPositionFromPath'](_0x10345d,_0xdb5898['path'],_0xdb5898['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1fa686,_0xecb5f6){super(_0x1fa686),this['focusTracker']=new _0x4edf4d(),this['keystrokes']=new _0x368a8f(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xecb5f6),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x391c6c(this);}['render'](){super['render'](),_0x1463d4({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2fcbdc=_0x5e1df1=>_0x5e1df1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2fcbdc),this['keystrokes']['set']('arrowleft',_0x2fcbdc),this['keystrokes']['set']('arrowup',_0x2fcbdc),this['keystrokes']['set']('arrowdown',_0x2fcbdc);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xff5413){this['revisionNameInputView']['fieldView']['element']['value']=_0xff5413['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2e2066){const _0x5cc858=new _0x136d79(this['locale'],_0x2cdfd5),_0x31594d=_0x5cc858['fieldView'];_0x31594d['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x324286=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2e2066&&(_0x324286+='\x20('+m(this['locale'],'optional')+')'),(_0x5cc858['label']=_0x324286,_0x31594d['on']('input',()=>{this['revisionNameInputValue']=_0x31594d['element']['value']['trim']();}),_0x5cc858);}}class u extends _0x2ced25{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x9637ec=this['editor'],_0x1e03dc=_0x9637ec['plugins']['get']('RevisionTracker');_0x9637ec['ui']['componentFactory']['add']('revisionHistory',_0x4cd1ef=>{const _0x4ef488=_0x4e101c(_0x4cd1ef),_0x3207b1=_0x4ef488['panelView']['children'],_0x43fa03=new _0x19845e(_0x4cd1ef),_0x30cc98=new _0x58c470(_0x4cd1ef),_0x2e7d69=new te(_0x4cd1ef),_0x57adc9=new _0x58c470(_0x4cd1ef),_0xb43fb0=new te(_0x4cd1ef);return _0x4ef488['bind']('isEnabled')['to'](_0x1e03dc,'isReady',_0x1e03dc,'isEnabled',_0x9637ec,'isReadOnly',(_0x302638,_0x518b6f,_0x33ad3a)=>_0x302638&&_0x518b6f&&!_0x33ad3a),_0x4ef488['buttonView']['set']({'icon':_0x48dd12['history'],'label':m(_0x4cd1ef,'Revision\x20history'),'tooltip':!0x0}),_0x2e7d69['set']({'label':m(_0x4cd1ef,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2e7d69['bind']('isEnabled')['to'](_0x1e03dc,'isReady',_0x1e03dc,'isEnabled',_0x9637ec,'isReadOnly',(_0x45e4ba,_0x1e3f00,_0x30f7c0)=>_0x45e4ba&&_0x1e3f00&&!_0x30f7c0),_0x2e7d69['on']('execute',()=>this['_showDialog']()),_0xb43fb0['set']({'label':m(_0x4cd1ef,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xb43fb0['bind']('isEnabled')['to'](_0x1e03dc,'isReady',_0x9637ec,'isReadOnly',(_0x5ec0e5,_0x2b35de)=>_0x5ec0e5&&!_0x2b35de),_0xb43fb0['on']('execute',()=>{_0x9637ec['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4ef488['isOpen']=!0x1,_0x9637ec['editing']['view']['focus']();}),_0x30cc98['children']['add'](_0x2e7d69),_0x57adc9['children']['add'](_0xb43fb0),_0x43fa03['role']='menu',_0x43fa03['items']['addMany']([_0x30cc98,_0x57adc9]),_0x3207b1['add'](_0x43fa03),_0x4ef488;}),_0x9637ec['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4db56e=this['editor'],_0x420eb3=_0x4db56e['locale'],_0xb4ec44=new _0x978ce4(_0x420eb3),_0x198e29=new _0xc7ddf8(_0x420eb3);_0xb4ec44['buttonView']['set']({'icon':_0x48dd12['history'],'label':m(_0x420eb3,'Revision\x20history')});const _0x75d822=new _0x299d0e(_0x420eb3,_0xb4ec44),_0xf6acbc=new _0x376338(_0x420eb3);_0xf6acbc['set']({'label':m(_0x420eb3,'Save\x20current\x20revision')}),_0xf6acbc['delegate']('execute')['to'](_0xb4ec44),_0xf6acbc['on']('execute',()=>{this['_showDialog']();}),_0x75d822['children']['add'](_0xf6acbc),_0x198e29['items']['add'](_0x75d822);const _0x4cdf84=new _0x299d0e(_0x420eb3,_0xb4ec44),_0x5a0f39=new _0x376338(_0x420eb3);return _0x5a0f39['set']({'label':m(_0x420eb3,'Open\x20revision\x20history')}),_0x5a0f39['delegate']('execute')['to'](_0xb4ec44),_0x5a0f39['on']('execute',()=>{_0x4db56e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4cdf84['children']['add'](_0x5a0f39),_0x198e29['items']['add'](_0x4cdf84),_0xb4ec44['panelView']['children']['add'](_0x198e29),_0xb4ec44;}['_showDialog'](){const _0x202c87=this['editor'],_0x5815af=_0x202c87['locale'],_0x473ad4=_0x202c87['plugins']['get']('Dialog'),_0x5dd995=_0x202c87['plugins']['get']('RevisionTracker');function _0x2953b7(_0x27477f){_0x202c87['config']['get']('revisionHistory.requireRevisionName')&&''===_0x27477f['revisionName']?_0x27477f['revisionNameInputView']['errorText']=m(_0x5815af,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x202c87['plugins']['get'](l)['saveRevision']({'name':_0x27477f['revisionName']}),_0x473ad4['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2953b7(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x473ad4['show']({'id':'revisionSave','title':m(_0x5815af,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x202c87['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x473ad4['hide']()},{'label':m(_0x202c87['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x33bba8){_0x33bba8['bind']('isEnabled')['to'](_0x5dd995,'isReady',_0x5dd995,'isEnabled',_0x202c87,'isReadOnly',(_0x784a6b,_0x2a26e8,_0x4f4c9d)=>_0x784a6b&&_0x2a26e8&&!_0x4f4c9d);},'onExecute':()=>_0x2953b7(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1b4e15=this['editor'],_0xc059da=_0x1b4e15['locale'];this['_saveRevisionFormView']=new hs(_0xc059da,_0x1b4e15['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0xb076ce,_0x585705){super(_0xb076ce),this['_model']=_0x585705,this['changeId']=_0x585705['id'];const _0x77d0ef=this['bindTemplate'],_0xbfd399=m(_0xb076ce,_0x585705['data']['isSuggestion']?'Suggested\x20by':'add'==_0x585705['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x585705['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x77d0ef['to']('type',_0x1e61c2=>'ck-revision-change__'+_0x1e61c2)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xbfd399}]},{'text':'\x20'+_0x585705['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x134fa9(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5a10e2){super(),this['id']=_0x5a10e2['id']||_0x23c2bf(),this['author']=_0x5a10e2['author'],this['type']=_0x5a10e2['type'],this['data']=_0x5a10e2['data']||{},this['rootName']=_0x5a10e2['rootName'],this['set']('createdAt',_0x5a10e2['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x542da8,_0xee9662){this['newRevisionId']=_0x542da8,this['oldRevisionId']=_0xee9662,this['changes']=new _0x44ade6();}['_setChanges'](_0x25b02e){for(const _0x5294fc of _0x25b02e)this['changes']['add'](_0x5294fc);}}const Y={'c':_0x51bc4f,'a':_0x3af3e7,'e':_0x306dea,'r':_0x33607e,'u':_0x14d253};class d extends _0x2ced25{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x43d330,_0x329820,j];}constructor(_0x4d0dc3){super(_0x4d0dc3),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),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',(_0x709385,_0x544040,_0x7bbc06)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5f4bc2=>{for(const _0x4f64ff of this['editor']['editing']['view']['document']['roots'])_0x7bbc06?_0x5f4bc2['removeClass']('ck-editor__editable__overlay',_0x4f64ff):_0x5f4bc2['addClass']('ck-editor__editable__overlay',_0x4f64ff);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5486ce=>null!==_0x5486ce),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1545eb,_0x4a3ad2,_0x353a23)=>_0x1545eb&&_0x353a23?_0x4a3ad2['changes']['getIndex'](_0x353a23):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x351af9,_0x204049)=>_0x351af9?_0x204049['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x329820);}['init'](){const _0x1aeed8=this['editor'],_0x650d2d=new _t(_0x1aeed8,{'direction':'backward'}),_0x2393c4=new _t(_0x1aeed8,{'direction':'forward'});(_0x1aeed8['commands']['add']('showPreviousChange',_0x650d2d),_0x1aeed8['commands']['add']('showNextChange',_0x2393c4),_0x1aeed8['commands']['add']('restoreRevision',new pt(_0x1aeed8)),this['on']('change:numberOfChanges',()=>{_0x650d2d['refresh'](),_0x2393c4['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1aeed8['enableReadOnlyMode']('revision-viewer'),_0x1aeed8['plugins']['has']('WidgetToolbarRepository'))&&_0x1aeed8['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5056f5){await this['loadRevisionData'](_0x5056f5);const _0x6e39a={};for(const _0x1d44b9 in _0x5056f5['diffData']){if(_0x5056f5['diffData'][_0x1d44b9]['attachChange']&&!_0x5056f5['diffData'][_0x1d44b9]['attachChange']['isAttached'])continue;const _0x4c7ca9=this['_removeRevisionMarkers'](JSON['parse'](_0x5056f5['diffData'][_0x1d44b9]['insertions'])),_0x25bef9=this['editor']['editing']['view']['document'],_0x4293f0=new _0x18a752(_0x25bef9,_0x4c7ca9['map'](_0x5c7168=>this['_getViewObj'](_0x5c7168)));this['editor']['data']['processor']['useFillerType']('marked'),_0x6e39a[_0x1d44b9]=this['editor']['data']['processor']['toData'](_0x4293f0),this['editor']['data']['processor']['useFillerType']('default');}return _0x6e39a;}async['getRevisionRootsAttributes'](_0x5c57ed){await this['loadRevisionData'](_0x5c57ed);const _0x394e49={};for(const _0x31290e in _0x5c57ed['diffData'])_0x5c57ed['diffData'][_0x31290e]['attachChange']&&!_0x5c57ed['diffData'][_0x31290e]['attachChange']['isAttached']||(_0x394e49[_0x31290e]=_0x5c57ed['diffData'][_0x31290e]['attributesAfter']||{});return _0x394e49;}['_removeRevisionMarkers'](_0x466d24){return(_0x466d24=_0x466d24['filter'](_0x522eee=>!_0x522eee['name']||'revision-start'!==_0x522eee['name']&&'revision-end'!==_0x522eee['name']))['forEach'](_0x36a4ba=>{'string'!=typeof _0x36a4ba&&(_0x36a4ba['children']=this['_removeRevisionMarkers'](_0x36a4ba['children']),_0x36a4ba['attributes']=_0x36a4ba['attributes']['filter'](_0x1ff301=>!_0x1ff301[0x0]['startsWith']('data-revision-')));}),_0x466d24;}async['compare'](_0xca6f5f,_0x15fd27,_0x46efb3=!0x1){if(!this['isEnabled'])return;const _0x4add94=this['diff'],_0x538d2d=this['repository'],_0x22e1f9='string'==typeof _0xca6f5f?_0x538d2d['getRevision'](_0xca6f5f):_0xca6f5f,_0x493137='string'==typeof _0x15fd27?_0x538d2d['getRevision'](_0x15fd27):_0x15fd27,_0x19b1f9=_0x22e1f9['id'],_0x40de8=_0x493137?_0x493137['id']:null;if(!_0x46efb3&&this['diff']&&this['diff']['newRevisionId']===_0x19b1f9&&this['diff']['oldRevisionId']===_0x40de8)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x19b1f9,_0x40de8);const _0x226304=this['_getRevisionsRange'](_0x22e1f9,_0x493137,!0x0)['map'](_0x37b6b1=>this['loadRevisionData'](_0x37b6b1));return _0x226304['push'](new Promise(_0x519131=>{setTimeout(_0x519131,0x14);})),Promise['all'](_0x226304)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x31f3c4=this['_getDiff'](_0x19b1f9,_0x40de8);for(const _0x31abcb of _0x31f3c4['changes'])this['_changeIdToChange']['set'](_0x31abcb['id'],_0x31abcb);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x15d1ec=>{for(const _0x33a642 of this['editor']['model']['document']['getRootNames']())_0x15d1ec['detachRoot'](_0x33a642);for(const _0x3f2b2f of Object['keys'](_0x31f3c4['model'])){const _0x4e86a6=_0x15d1ec['addRoot'](_0x3f2b2f);for(const _0x2a9abf of Object['keys'](_0x31f3c4['attributes'][_0x3f2b2f]))_0x15d1ec['setAttribute'](_0x2a9abf,_0x31f3c4['attributes'][_0x3f2b2f][_0x2a9abf],_0x4e86a6);_0x15d1ec['insert'](_0x31f3c4['model'][_0x3f2b2f],_0x4e86a6,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x31f3c4['changes'])),this['isReady']=!0x0;})['catch'](_0x566c34=>{console['error'](_0x566c34),this['_cleanUp'](),_0x4add94&&(this['diff']=_0x4add94),this['isReady']=!0x0;});}['addRevisionData'](_0x2c3859,_0x1d2113){const _0x4206ed=this['repository']['createRevision'](_0x2c3859);return _0x4206ed['on']('_update',(_0x3437f9,_0x228508,_0x1c6bfd)=>_0x1d2113(_0x228508,_0x1c6bfd,_0x4206ed)),this['repository']['addRevision'](_0x4206ed),_0x4206ed;}['loadRevisionData'](_0x4daa6b){if(!_0x4daa6b||_0x4daa6b['diffData'])return Promise['resolve']();{const _0x410e27=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x410e27,'revisionId':_0x4daa6b['id']})['then'](_0x4e945c=>{_0x4daa6b['_update']({'diffData':_0x4e945c['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x420f62=>{for(const _0x4f5999 of this['editor']['model']['document']['getRootNames']())_0x420f62['detachRoot'](_0x4f5999);});}['_sortAndFilterDiffChanges'](_0x2df901){const _0x88aac6=[],_0x341aa9=new Map();for(const _0x567700 of this['editor']['model']['document']['getRootNames']()){const _0x2fbef8=this['editor']['editing']['view']['getDomRoot'](_0x567700);if(!_0x2fbef8)continue;const _0x3eb088=_0x2fbef8['getClientRects']()['item'](0x0);_0x3eb088&&(_0x88aac6['push'](_0x567700),_0x341aa9['set'](_0x567700,_0x3eb088));}return _0x88aac6['sort']((_0x1eb2ad,_0x1d0d07)=>{const _0x1f361e=_0x341aa9['get'](_0x1eb2ad),_0x867473=_0x341aa9['get'](_0x1d0d07);return _0x1f361e['y']-_0x867473['y']||_0x1f361e['x']-_0x867473['x'];}),(_0x2df901=_0x2df901['filter'](_0x4db0a1=>_0x88aac6['includes'](_0x4db0a1['rootName'])))['sort']((_0x2294ed,_0x9c0afb)=>_0x88aac6['indexOf'](_0x2294ed['rootName'])-_0x88aac6['indexOf'](_0x9c0afb['rootName'])),_0x2df901;}['_makeTape'](_0xd375de){const _0x252255=Array['from'](_0xd375de['markers'])['filter'](([_0x4d0f11,_0x221a04])=>_0x4d0f11['startsWith']('revision:')&&!_0x221a04['isCollapsed']),_0x4e6a05=Array['from'](this['editor']['model']['createRangeIn'](_0xd375de)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x252255['length'])for(const _0x5e1fcc of _0x4e6a05){const [_0x4e0274,_0x20f4bd]=_0x252255[0x0],[,_0x94f422,_0x28e276]=_0x4e0274['split'](':');if(_0x20f4bd['end']['isEqual'](_0x5e1fcc['nextPosition'])&&_0x252255['shift'](),(_0x5e1fcc['previousPosition']['isEqual'](_0x20f4bd['start'])||_0x5e1fcc['previousPosition']['isAfter'](_0x20f4bd['start']))&&('insertion'==_0x94f422?_0x5e1fcc['isAdded']={'userId':_0x28e276}:'deletion'==_0x94f422&&(_0x5e1fcc['isRemoved']={'userId':_0x28e276})),0x0==_0x252255['length'])break;}return _0x4e6a05;}['_refreshStartEndIndex'](_0x1bf2d6){const _0xfa0e9c=new Map();for(let _0x1bebdb=0x0;_0x1bebdb<_0x1bf2d6['length'];_0x1bebdb++)'text'===_0x1bf2d6[_0x1bebdb]['type']?(_0x1bf2d6[_0x1bebdb]['item']['startIndex']=_0x1bebdb,_0x1bf2d6[_0x1bebdb]['item']['endIndex']=_0x1bebdb):('elementStart'===_0x1bf2d6[_0x1bebdb]['type']?_0x1bf2d6[_0x1bebdb]['item']['startIndex']=_0x1bebdb:'elementEnd'===_0x1bf2d6[_0x1bebdb]['type']&&(_0x1bf2d6[_0x1bebdb]['item']['endIndex']=_0x1bebdb),_0xfa0e9c['set'](_0x1bf2d6[_0x1bebdb]['id'],_0x1bebdb));for(const _0x5be3e8 of _0xfa0e9c['values']())'elementStart'===_0x1bf2d6[_0x5be3e8]['type']?_0x1bf2d6[_0x5be3e8]['item']['endIndex']=_0xfa0e9c['get'](_0x1bf2d6[_0x5be3e8]['pairId']):'elementEnd'===_0x1bf2d6[_0x5be3e8]['type']&&(_0x1bf2d6[_0x5be3e8]['item']['startIndex']=_0xfa0e9c['get'](_0x1bf2d6[_0x5be3e8]['pairId']));}['_processTape'](_0x517bf4){for(let _0x2a8517=0x0;_0x2a8517<_0x517bf4['length'];_0x2a8517++){if('elementStart'===_0x517bf4[_0x2a8517]['type'])_0x517bf4[_0x2a8517]['item']['startIndex']=_0x2a8517;else{if('elementEnd'===_0x517bf4[_0x2a8517]['type']){_0x517bf4[_0x2a8517]['item']['endIndex']=_0x2a8517;const _0x326d04=_0x517bf4[_0x2a8517]['item']['startIndex'];_0x517bf4[_0x326d04]['pairId']=_0x517bf4[_0x2a8517]['id'],_0x517bf4[_0x2a8517]['pairId']=_0x517bf4[_0x326d04]['id'];}else _0x517bf4[_0x2a8517]['item']['startIndex']=_0x2a8517,_0x517bf4[_0x2a8517]['item']['endIndex']=_0x2a8517,_0x517bf4[_0x2a8517]['pairId']=null;}_0x517bf4[_0x2a8517]['markersStart']||(_0x517bf4[_0x2a8517]['markersStart']=[],_0x517bf4[_0x2a8517]['markersEnd']=[]);}}['_markInsertions'](_0x1c7443,_0x68e1b5){const _0x34a149=_0x1c7443['filter'](_0x920283=>!_0x920283['isAdded']);for(let _0xc37d4=0x0;_0xc37d4<_0x68e1b5['length'];_0xc37d4++)_0x68e1b5[_0xc37d4]['isAdded']&&(_0x34a149[_0xc37d4]['isAdded']=_0x68e1b5[_0xc37d4]['isAdded']);}['_makeModelFromViewString'](_0x220cfa){const _0x4d1d5b=JSON['parse'](_0x220cfa),_0x47f9f0=this['editor']['editing']['view']['document'],_0x13a114=new _0x18a752(_0x47f9f0,_0x4d1d5b['map'](_0x38404c=>this['_getViewObj'](_0x38404c)));return this['editor']['data']['toModel'](_0x13a114);}['_getViewObj'](_0x1ba17c){const _0x118725=this['editor']['editing']['view']['document'];if('string'==typeof _0x1ba17c)return new _0x5248c5(_0x118725,_0x1ba17c);{const _0x48d496=_0x1ba17c['children']['map'](_0x50f67e=>this['_getViewObj'](_0x50f67e));return new(Y[_0x1ba17c['type']]||_0x26c3f6)(_0x118725,_0x1ba17c['name'],_0x1ba17c['attributes'],_0x48d496);}}['_getDiff'](_0xc372e,_0x220cc4=null){const _0x314610=this['repository']['getRevision'](_0xc372e),_0x4e1b8c=_0x220cc4?this['repository']['getRevision'](_0x220cc4):null,_0x5e9218=this['_getRevisionsRange'](_0x314610,_0x4e1b8c),_0x235d22=_0x5e9218[_0x5e9218['length']-0x1],_0x1b0deb=new Map(),_0x1fb1c8={'model':{},'attributes':{},'changes':[]},_0x335c8f=new Set(),_0x5facc2=new Map();for(let _0x44b6bc=_0x5e9218['length']-0x1;_0x44b6bc>=0x0;_0x44b6bc--){const _0x5d3af2=_0x5e9218[_0x44b6bc];for(const _0x24e34f of Object['keys'](_0x5d3af2['diffData']))if(_0x5d3af2['diffData'][_0x24e34f]['attachChange']){const _0x5e44b1=_0x5d3af2['diffData'][_0x24e34f]['attachChange'];_0x5e44b1['isAttached']?(_0x335c8f['add'](_0x24e34f),_0x5facc2['has'](_0x24e34f)&&_0x5facc2['get'](_0x24e34f)['userId']==_0x5e44b1['userId']?_0x5facc2['delete'](_0x24e34f):_0x5facc2['set'](_0x24e34f,_0x5e44b1)):_0x5facc2['has'](_0x24e34f)?(_0x335c8f['delete'](_0x24e34f),_0x5facc2['delete'](_0x24e34f)):(_0x335c8f['add'](_0x24e34f),_0x5facc2['set'](_0x24e34f,_0x5e44b1));}else _0x335c8f['add'](_0x24e34f);}for(const _0x43da14 of _0x335c8f){const _0xc27d1f=_0x5facc2['has'](_0x43da14)&&!_0x5facc2['get'](_0x43da14)['isAttached'];let _0xfa3cad=_0xc27d1f?_0x5e9218['length']-0x1:0x0;const _0x134ecf=_0xc27d1f?-0x1:0x1;for(;_0x5e9218[_0xfa3cad];){const _0x239cfd=_0x5e9218[_0xfa3cad];if(_0x239cfd['diffData'][_0x43da14]){const _0xdbecdc=_0xc27d1f?_0x239cfd['diffData'][_0x43da14]['attributesBefore']:_0x239cfd['diffData'][_0x43da14]['attributesAfter'];_0x1fb1c8['attributes'][_0x43da14]=_0xdbecdc?_0x19c9df(_0xdbecdc):{};break;}_0xfa3cad+=_0x134ecf;}}for(const _0x2e5329 of _0x5e9218){_0x2e5329['model']={};for(const _0x35e8b6 of _0x2e5329['authors'])_0x1b0deb['set'](_0x35e8b6['id'],_0x35e8b6);for(const _0x4abe86 of _0x335c8f){const _0x1fa042=_0x2e5329['diffData'][_0x4abe86]?_0x2e5329['diffData'][_0x4abe86]['insertions']:'[]',_0x4b5675=_0x2e5329['diffData'][_0x4abe86]?_0x2e5329['diffData'][_0x4abe86]['deletions']:'[]';_0x2e5329['model'][_0x4abe86]={'insertions':this['_makeModelFromViewString'](_0x1fa042),'deletions':this['_makeModelFromViewString'](_0x4b5675)};}}for(const _0x38fe1b of _0x335c8f){let _0x42fa72=null,_0x3f15d9=0x0;const _0x1d2738=new Map(Array['from'](_0x314610['model'][_0x38fe1b]['insertions']['markers'])['filter'](([_0x3a79df])=>!_0x3a79df['startsWith']('revision:')));let _0x71f806=0x0;for(const _0x9ba0d0 of _0x5e9218){const _0x1e5906=this['_makeTape'](_0x9ba0d0['model'][_0x38fe1b]['insertions']);_0x9ba0d0==_0x314610?(_0x42fa72=_0x1e5906,_0x3f15d9=_0x42fa72['length'],_0x42fa72['forEach'](_0x3a9b16=>{_0x3a9b16['id']=_0x71f806++;}),this['_processTape'](_0x42fa72)):this['_markInsertions'](_0x42fa72,_0x1e5906);const _0x23be56=_0x42fa72['filter'](_0x5681f7=>!_0x5681f7['isAdded'])['map'](_0x4bd49e=>_0x4bd49e['id']);let _0x5c4e17=0x0;const _0x1d0204=this['_makeTape'](_0x9ba0d0['model'][_0x38fe1b]['deletions']);_0x1d0204['forEach'](_0x1e9978=>{_0x1e9978['isRemoved']?_0x1e9978['id']=_0x3f15d9++:_0x1e9978['id']=_0x23be56[_0x5c4e17++];}),this['_processTape'](_0x1d0204),this['_setDistance'](_0x42fa72,'isAdded'),this['_setDistance'](_0x1d0204,'isRemoved'),_0x9ba0d0==_0x314610&&this['_markMarkers'](_0x42fa72,_0x1d2738),_0x42fa72=this['_joinTapes'](_0x42fa72,_0x1d0204),this['_refreshStartEndIndex'](_0x42fa72),this['_setDistance'](_0x42fa72,'isRemoved');}_0x42fa72=_0x42fa72['filter'](_0x1cedec=>!(_0x1cedec['isAdded']&&_0x1cedec['isRemoved']));const _0x4aeb4f=new Map(_0x235d22['model'][_0x38fe1b]['deletions']['markers']),_0x5bb59f=new Set(_0x1d2738['keys']());for(const _0x3fd624 of _0x4aeb4f['keys']())_0x5bb59f['delete'](_0x3fd624);this['_markSuggestions'](_0x42fa72,_0x5bb59f),this['_fixObsoleteTags'](_0x42fa72),_0x42fa72=this['_removeMissingPairs'](_0x42fa72),_0x42fa72=this['_markMismatchedRemovedTags'](_0x42fa72),_0x42fa72=this['_removeUnsupportedChanges'](_0x42fa72);const {root:_0x4f54b6,changes:_0x1560e8}=this['_makeModelFromTape'](_0x42fa72,_0x1b0deb,_0x38fe1b);_0x1fb1c8['model'][_0x38fe1b]=_0x4f54b6;const _0x66bacc=_0x5facc2['get'](_0x38fe1b);if(_0x66bacc){const _0x2675a8=_0x1b0deb['get'](_0x66bacc['userId']),_0x4d127c=new r({'author':_0x2675a8,'type':_0x66bacc['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x38fe1b});_0x1560e8['unshift'](_0x4d127c),_0x1fb1c8['attributes'][_0x38fe1b]['revisionHistoryAttachChange']=_0x4d127c['id'];}_0x1fb1c8['changes']=_0x1fb1c8['changes']['concat'](_0x1560e8);}return _0x1fb1c8;}['_markMarkers'](_0x5be2f9,_0x599580){for(let _0x5c408d=0x0;_0x5c408d<_0x5be2f9['length'];_0x5c408d++)for(const [_0x2db515,_0x34f8c6]of _0x599580)_0x34f8c6['start']['isEqual'](_0x5be2f9[_0x5c408d]['previousPosition'])&&_0x5be2f9[_0x5c408d]['markersStart']['push'](_0x2db515),_0x34f8c6['end']['isEqual'](_0x5be2f9[_0x5c408d]['nextPosition'])&&_0x5be2f9[_0x5c408d]['markersEnd']['push'](_0x2db515);}['_joinTapes'](_0x5e4d01,_0x39a069){let _0x57de3d=[],_0x4440a7=0x0,_0x341dcb=0x0;for(;_0x4440a7<_0x5e4d01['length']||_0x341dcb<_0x39a069['length'];){const _0x235b6f=_0x5e4d01[_0x4440a7]||{},_0x425c8d=_0x39a069[_0x341dcb]||{};if(_0x235b6f['id']==_0x425c8d['id'])_0x4440a7++,_0x341dcb++,_0x57de3d['push'](_0x235b6f);else{if(_0x425c8d['isRemoved']&&_0x235b6f['isAdded']){const {commonTape:_0x2bfc06,iEnd:_0x4d0bde,jEnd:_0x1c8b31}=this['_threeWayMerge'](_0x5e4d01,_0x4440a7,_0x39a069,_0x341dcb);_0x57de3d=_0x57de3d['concat'](_0x2bfc06),_0x4440a7=_0x4d0bde,_0x341dcb=_0x1c8b31;}else _0x425c8d['isRemoved']?(_0x341dcb++,_0x57de3d['push'](_0x425c8d)):(_0x4440a7++,_0x57de3d['push'](_0x235b6f));}}return _0x57de3d;}['_markSuggestions'](_0x1fd3a1,_0x4fd89e){const _0x131877=[];for(let _0x20f234=0x0;_0x20f234<_0x1fd3a1['length'];_0x20f234++){for(let _0x27c87e=0x0;_0x27c87e<_0x1fd3a1[_0x20f234]['markersStart']['length'];_0x27c87e++){const _0x2fa01a=_0x1fd3a1[_0x20f234]['markersStart'][_0x27c87e];if(!_0x4fd89e['has'](_0x2fa01a))continue;const {group:_0x2a6f85,type:_0x395aa5,authorId:_0x323b7b}=_0x1e098e(_0x2fa01a);'revision-suggestion'!=_0x2a6f85||'insertion'!=_0x395aa5&&'deletion'!=_0x395aa5||(_0x131877['unshift']({'type':_0x395aa5,'name':_0x2fa01a,'userId':_0x323b7b}),_0x1fd3a1[_0x20f234]['markersStart']['splice'](_0x27c87e,0x1),_0x27c87e--);}_0x237dfe(_0x1fd3a1[_0x20f234]);for(let _0x23983c=0x0;_0x23983c<_0x1fd3a1[_0x20f234]['markersEnd']['length'];_0x23983c++){const _0x4eef8c=_0x1fd3a1[_0x20f234]['markersEnd'][_0x23983c];if(!_0x4fd89e['has'](_0x4eef8c))continue;const {group:_0x348aad,type:_0x3f4d7f}=_0x1e098e(_0x4eef8c);if('revision-suggestion'!=_0x348aad||'insertion'!=_0x3f4d7f&&'deletion'!=_0x3f4d7f)continue;_0x1fd3a1[_0x20f234]['markersEnd']['splice'](_0x23983c,0x1),_0x23983c--;const _0x1f83fa=_0x131877['findIndex'](_0x38c914=>_0x38c914['name']==_0x4eef8c);_0x1f83fa>-0x1&&_0x131877['splice'](_0x1f83fa,0x1);}}function _0x1e098e(_0x47df61){const _0x592bff=_0x47df61['split'](':');return{'group':_0x592bff[0x0],'type':_0x592bff[0x1],'subType':_0x592bff['length']>=0x5?_0x592bff[0x2]:null,'id':_0x592bff['length']<0x5?_0x592bff[0x2]:_0x592bff[0x3],'authorId':_0x592bff['length']<0x5?_0x592bff[0x3]:_0x592bff[0x4],'markerCount':0x6==_0x592bff['length']?_0x592bff[0x5]:null};}function _0x237dfe(_0x1c4ca7){for(let _0x75d4ba=0x0;_0x75d4ba<_0x131877['length'];_0x75d4ba++){if(_0x1c4ca7['isAdded']&&'insertion'==_0x131877[_0x75d4ba]['type'])return _0x1c4ca7['isAddSuggestion']=_0x131877[_0x75d4ba],void delete _0x1c4ca7['isAdded'];if(!_0x1c4ca7['isAdded']&&!_0x1c4ca7['isRemoved']&&'deletion'==_0x131877[_0x75d4ba]['type'])return void(_0x1c4ca7['isRemoveSuggestion']=_0x131877[_0x75d4ba]);}}}['_setDistance'](_0x2d9e15,_0x33c908){let _0x165f32=0x0,_0x8d6072=!0x1;const _0x154b18=new Map();for(const _0x2b8616 of _0x2d9e15)_0x2b8616[_0x33c908]?_0x8d6072&&(_0x165f32++,_0x8d6072=!0x1):(_0x165f32++,_0x8d6072=!0x0),_0x154b18['set'](_0x2b8616['id'],_0x165f32);for(let _0x3cb7ef=0x0;_0x3cb7ef<_0x2d9e15['length'];_0x3cb7ef++){if('isRemoved'==_0x33c908&&_0x2d9e15[_0x3cb7ef]['isAdded']||'isAdded'==_0x33c908&&_0x2d9e15[_0x3cb7ef]['isRemoved'])continue;if('text'==_0x2d9e15[_0x3cb7ef]['type']){_0x2d9e15[_0x3cb7ef]['distance']=0x0;continue;}const _0x33864d=_0x154b18['get'](_0x2d9e15[_0x3cb7ef]['pairId']),_0x36fa05=_0x154b18['get'](_0x2d9e15[_0x3cb7ef]['id']);_0x2d9e15[_0x3cb7ef]['distance']=_0x33864d-_0x36fa05;}}['_getRevisionsRange'](_0x1f2dcc,_0x4482d1,_0x576781=!0x1){const _0x225228=[];let _0x302994=this['repository']['getIndex'](_0x1f2dcc),_0x3ef2d3=this['repository']['getIndex'](_0x4482d1);for(-0x1==_0x3ef2d3&&(_0x3ef2d3=this['repository']['_revisions']['length'],_0x576781=!0x1);_0x302994<_0x3ef2d3;)_0x225228['push'](this['repository']['getRevision'](_0x302994)),_0x302994++;return _0x576781&&_0x225228['push'](this['repository']['getRevision'](_0x302994)),_0x225228;}['_threeWayMerge'](_0x50b5cd,_0x3df222,_0x5802e4,_0x11cc5d){const _0x205059=this['editor']['model']['schema'];let _0x345e59=_0x3df222;for(;_0x50b5cd[_0x345e59]&&_0x50b5cd[_0x345e59]['isAdded'];)_0x345e59++;let _0x14eec9=_0x11cc5d;for(;_0x5802e4[_0x14eec9]&&_0x5802e4[_0x14eec9]['isRemoved'];)_0x14eec9++;_0x1bc5de(_0x50b5cd,_0x3df222,_0x345e59),_0x1bc5de(_0x5802e4,_0x11cc5d,_0x14eec9);const _0x41e591=_0x5802e4['slice'](_0x11cc5d,_0x14eec9)['concat'](_0x50b5cd['slice'](_0x3df222,_0x345e59));return _0x41e591['sort']((_0x36b13f,_0x367771)=>_0x36b13f['side']!=_0x367771['side']?_0x36b13f['side']-_0x367771['side']:_0x36b13f['level']!=_0x367771['level']?_0x36b13f['level']-_0x367771['level']:_0x36b13f['distance']!=_0x367771['distance']?_0x367771['distance']-_0x36b13f['distance']:!!_0x36b13f['isAdded']!=!!_0x367771['isAdded']?-0x1==_0x36b13f['side']||0x0==_0x36b13f['side']?_0x36b13f['isAdded']?-0x1:0x1:_0x36b13f['isAdded']?0x1:-0x1:_0x36b13f['index']-_0x367771['index']),{'commonTape':_0x41e591,'iEnd':_0x345e59,'jEnd':_0x14eec9};function _0x1bc5de(_0x59e6c4,_0x3264f7,_0x39ca8f){let _0x4852f4=-0x1,_0x993082=Number['POSITIVE_INFINITY'],_0x4705c4=!0x0;for(let _0xe1d3d9=_0x3264f7;_0xe1d3d9<_0x39ca8f;_0xe1d3d9++)if(_0x205059['isInline'](_0x59e6c4[_0xe1d3d9]['item'])||(_0x4705c4=!0x1),_0x59e6c4[_0xe1d3d9]['item']['startIndex']<_0x3264f7&&(_0x4852f4=_0xe1d3d9),_0x59e6c4[_0xe1d3d9]['item']['endIndex']>=_0x39ca8f){_0x993082=_0xe1d3d9;break;}_0x4705c4&&(_0x4852f4=_0x39ca8f-0x1);for(let _0x56fbb0=_0x3264f7;_0x56fbb0<_0x39ca8f;_0x56fbb0++)_0x59e6c4[_0x56fbb0]['side']=_0x56fbb0<=_0x4852f4?-0x1:_0x56fbb0<_0x993082?0x0:0x1,_0x59e6c4[_0x56fbb0]['index']=_0x56fbb0;let _0x128d0f=0x0;for(let _0xb9eb36=_0x3264f7;_0xb9eb36<=_0x4852f4;_0xb9eb36++)0x0==_0x59e6c4[_0xb9eb36]['distance']?_0x59e6c4[_0xb9eb36]['level']=_0x128d0f:(_0x128d0f++,_0x59e6c4[_0xb9eb36]['level']=_0x128d0f,_0x128d0f++);for(let _0x481890=_0x3264f7;_0x481890<_0x39ca8f;_0x481890++)0x0==_0x59e6c4[_0x481890]['side']&&(_0x59e6c4[_0x481890]['level']=_0x128d0f);_0x128d0f=0x0;for(let _0xc72484=_0x39ca8f-0x1;_0xc72484>=_0x993082;_0xc72484--)0x0==_0x59e6c4[_0xc72484]['distance']?_0x59e6c4[_0xc72484]['level']=_0x128d0f:(_0x128d0f--,_0x59e6c4[_0xc72484]['level']=_0x128d0f,_0x128d0f--);}}['_fixObsoleteTags'](_0x150a08){const _0x486e76=new Map(),_0x46e461=this['editor']['model']['schema'];for(let _0x20b335=0x1;_0x20b335<_0x150a08['length'];_0x20b335++){let _0xcff27c,_0x42afae,_0x2b70be;const _0x118231=_0x150a08[_0x20b335],_0x58f00e=_0x150a08[_0x20b335-0x1];if('text'==_0x118231['type'])continue;if(_0x118231['type']!=_0x58f00e['type'])continue;if(!_0x46e461['isBlock'](_0x58f00e['item'])||_0x46e461['isLimit'](_0x58f00e['item']))continue;if(!_0x46e461['isBlock'](_0x118231['item'])||_0x46e461['isLimit'](_0x118231['item']))continue;if((_0x150a08[_0x20b335]['isAdded']||_0x150a08[_0x20b335]['isAddSuggestion'])&&_0x150a08[_0x20b335-0x1]['isRemoved'])_0xcff27c=_0x150a08[_0x20b335],_0x42afae=_0x150a08[_0x20b335-0x1],_0x2b70be=_0x20b335-0x1;else{if(!_0x150a08[_0x20b335]['isRemoved']||!_0x150a08[_0x20b335-0x1]['isAdded']&&!_0x150a08[_0x20b335-0x1]['isAddSuggestion'])continue;_0xcff27c=_0x150a08[_0x20b335-0x1],_0x42afae=_0x150a08[_0x20b335],_0x2b70be=_0x20b335;}const _0x39e53e=_0xcff27c['level']==_0x42afae['level'],_0x1b974d=Math['abs'](_0xcff27c['level'])<Math['abs'](_0x42afae['level'])&&0x0==_0x42afae['distance'];(_0x39e53e||_0x1b974d)&&(_0x486e76['set'](_0x42afae['id'],_0xcff27c['id']),_0x150a08['splice'](_0x2b70be,0x1),_0x20b335--,_0xcff27c['isAdded']=!0x1);}for(let _0x431f3d=0x0;_0x431f3d<_0x150a08['length'];_0x431f3d++)_0x486e76['has'](_0x150a08[_0x431f3d]['pairId'])&&(_0x150a08[_0x431f3d]['pairId']=_0x486e76['get'](_0x150a08[_0x431f3d]['pairId']));}['_removeMissingPairs'](_0x488cbe){const _0x379d48=new Set(_0x488cbe['map'](_0x3e5f41=>_0x3e5f41['id']));for(let _0x98859=0x0;_0x98859<_0x488cbe['length'];_0x98859++)_0x379d48['has'](_0x488cbe[_0x98859]['pairId'])||0x0==_0x488cbe[_0x98859]['distance']||(_0x488cbe[_0x98859]['isIncorrect']=!0x0);return _0x488cbe['filter'](_0x4eb0ee=>!_0x4eb0ee['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4bc2f7){const _0x298871=new Set();for(let _0x36805c=0x0;_0x36805c<_0x4bc2f7['length'];_0x36805c++){if(_0x298871['has'](_0x4bc2f7[_0x36805c]['id'])&&_0x4bc2f7[_0x36805c]['isRemoved']&&(_0x4bc2f7[_0x36805c]['isIncorrect']=!0x0),_0x4bc2f7[_0x36805c]['isIncorrect'])continue;if(0x0==_0x4bc2f7[_0x36805c]['distance'])continue;if('elementStart'!=_0x4bc2f7[_0x36805c]['type'])continue;if(null==_0x4bc2f7[_0x36805c]['pairId'])continue;let _0x38963a=_0x36805c+0x1,_0x26262c=0x0;for(;_0x4bc2f7[_0x38963a]['id']!=_0x4bc2f7[_0x36805c]['pairId'];)'elementStart'==_0x4bc2f7[_0x38963a]['type']?_0x26262c++:'elementEnd'==_0x4bc2f7[_0x38963a]['type']&&_0x26262c--,_0x38963a++;if(0x0!=_0x26262c){if(_0x4bc2f7[_0x36805c]['isRemoved'])_0x4bc2f7[_0x36805c]['isIncorrect']=!0x0;else{for(;_0x38963a!=_0x36805c;)_0x4bc2f7[_0x38963a]['isRemoved']&&0x0!=_0x4bc2f7[_0x38963a]['distance']&&(_0x4bc2f7[_0x38963a]['isIncorrect']=!0x0,_0x298871['add'](_0x4bc2f7[_0x38963a]['pairId'])),_0x38963a--;}}}return _0x4bc2f7['filter'](_0xb38424=>!_0xb38424['isIncorrect']);}['_removeUnsupportedChanges'](_0x1d5b7d){const _0x1c4955=this['editor']['model']['schema'];for(let _0x147fe1=0x0;_0x147fe1<_0x1d5b7d['length'];_0x147fe1++){if(!(_0x1d5b7d[_0x147fe1]['isAdded']||_0x1d5b7d[_0x147fe1]['isAddSuggestion']||_0x1d5b7d[_0x147fe1]['isRemoved']||_0x1d5b7d[_0x147fe1]['isRemoveSuggestion']))continue;if(0x0==_0x1d5b7d[_0x147fe1]['distance'])continue;const _0x3ce4ea=_0x1d5b7d[_0x147fe1]['item'];_0x1c4955['isBlock'](_0x3ce4ea)||_0x1c4955['isLimit'](_0x3ce4ea)||(_0x1d5b7d[_0x147fe1]['isAdded']&&delete _0x1d5b7d[_0x147fe1]['isAdded'],_0x1d5b7d[_0x147fe1]['isAddSuggestion']&&delete _0x1d5b7d[_0x147fe1]['isAddSuggestion'],_0x1d5b7d[_0x147fe1]['isRemoveSuggestion']&&delete _0x1d5b7d[_0x147fe1]['isRemoveSuggestion'],_0x1d5b7d[_0x147fe1]['isRemoved']&&(_0x1d5b7d[_0x147fe1]['isIncorrect']=!0x0));}return _0x1d5b7d['filter'](_0x2a1fa5=>!_0x2a1fa5['isIncorrect']);}['_makeModelFromTape'](_0x36d303,_0xc7caa9,_0x13fbec){const _0x5098bd=new mt(),_0x190a6f=[],_0x5824d8=new Map(),_0x2cc43e=this['editor']['model'],_0x40302e=_0x2cc43e['schema'],_0x5910be=[_0x5098bd],_0xaa8d02={},_0x5cdf2b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5a7862=null;const _0x5e4437=[0x0];for(let _0x5833d7=0x0;_0x5833d7<_0x36d303['length'];_0x5833d7++)if('elementStart'===_0x36d303[_0x5833d7]['type']){_0x36d303[_0x5833d7]['previousPosition']=_0x2cc43e['createPositionFromPath'](_0x5098bd,_0x5e4437);const _0x4f8dbd=new ft(_0x36d303[_0x5833d7]['item']['name'],_0x36d303[_0x5833d7]['item']['getAttributes']());_0x5910be[0x0]['_appendChild'](_0x4f8dbd),_0x5e4437['push'](0x0),_0x5910be['unshift'](_0x4f8dbd),_0x36d303[_0x5833d7]['nextPosition']=_0x2cc43e['createPositionFromPath'](_0x5098bd,_0x5e4437);}else'elementEnd'===_0x36d303[_0x5833d7]['type']?(_0x5910be['shift'](),_0x36d303[_0x5833d7]['previousPosition']=_0x2cc43e['createPositionFromPath'](_0x5098bd,_0x5e4437),_0x5e4437['pop'](),_0x5e4437[_0x5e4437['length']-0x1]++,_0x36d303[_0x5833d7]['nextPosition']=_0x2cc43e['createPositionFromPath'](_0x5098bd,_0x5e4437)):(_0x36d303[_0x5833d7]['previousPosition']=_0x2cc43e['createPositionFromPath'](_0x5098bd,_0x5e4437),_0x5a7862?_0x5a7862['_data']+=_0x36d303[_0x5833d7]['item']['data']:_0x5a7862=new wt(_0x36d303[_0x5833d7]['item']['data'],_0x36d303[_0x5833d7]['item']['getAttributes']()),_0x36d303[_0x5833d7+0x1]&&'text'===_0x36d303[_0x5833d7+0x1]['type']&&_0x5ca6c4(_0x5a7862,_0x36d303[_0x5833d7+0x1]['item'])||(_0x5910be[0x0]['_appendChild'](_0x5a7862),_0x5a7862=null),_0x5e4437[_0x5e4437['length']-0x1]+=_0x36d303[_0x5833d7]['item']['offsetSize'],_0x36d303[_0x5833d7]['nextPosition']=_0x2cc43e['createPositionFromPath'](_0x5098bd,_0x5e4437));for(let _0x4095c5=0x0;_0x4095c5<_0x36d303['length'];_0x4095c5++){const _0x267ca6=_0x36d303[_0x4095c5]['previousPosition'],_0x39dbde=_0x36d303[_0x4095c5]['nextPosition'];for(const _0x5e5c07 of _0x36d303[_0x4095c5]['markersStart'])_0x5824d8['set'](_0x5e5c07,{'start':_0x267ca6,'end':null});_0x4e1071('isRemoveSuggestion',_0x4095c5,_0x267ca6,_0x39dbde),_0x4e1071('isAddSuggestion',_0x4095c5,_0x267ca6,_0x39dbde),_0x4e1071('isRemoved',_0x4095c5,_0x267ca6,_0x39dbde),_0x4e1071('isAdded',_0x4095c5,_0x267ca6,_0x39dbde);for(const _0x340350 of _0x36d303[_0x4095c5]['markersEnd']){_0x5824d8['get'](_0x340350)['end']=_0x39dbde;}}for(const [_0x1ece00,_0x1b9773]of _0x5824d8){const _0x1830d8=this['editor']['model']['createRange'](_0x1b9773['start'],_0x1b9773['end']);_0x5098bd['markers']['set'](_0x1ece00,_0x1830d8);}return _0x190a6f['sort']((_0x538ffb,_0x41106f)=>{const _0x4689af=_0x5098bd['markers']['get']('revision:'+_0x538ffb['id']),_0x1edf56=_0x5098bd['markers']['get']('revision:'+_0x41106f['id']);return _0x4689af['start']['isBefore'](_0x1edf56['start'])?-0x1:_0x4689af['start']['isAfter'](_0x1edf56['start'])?0x1:_0x4689af['end']['isBefore'](_0x1edf56['end'])?-0x1:_0x4689af['end']['isAfter'](_0x1edf56['end'])?0x1:'add'===_0x538ffb['type']?-0x1:0x1;}),{'root':_0x5098bd,'changes':_0x190a6f};function _0x4e1071(_0x32f635,_0x54978d,_0x1b972c,_0x1bdcaa){const _0x28ef68=!!_0x36d303[_0x54978d][_0x32f635],_0x490517=_0x28ef68?_0x36d303[_0x54978d][_0x32f635]['userId']:null,_0x52fde1=_0x54978d===_0x36d303['length']-0x1,_0x2589d7=_0x5cdf2b[_0x32f635][0x0],_0x279ba2=_0x40302e['isObject'](_0x36d303[_0x54978d]['item']);!_0xaa8d02[_0x32f635]&&_0x28ef68?_0xaa8d02[_0x32f635]={'start':_0x1b972c,'tapeItem':_0x36d303[_0x54978d],'userId':_0x490517,'type':_0x32f635}:_0xaa8d02[_0x32f635]&&!_0x28ef68?(_0xaa8d02[_0x32f635]['end']=_0x1b972c,_0x35ef80(_0xaa8d02[_0x32f635]),_0xaa8d02[_0x32f635]=null):_0xaa8d02[_0x32f635]&&_0x28ef68&&_0xaa8d02[_0x32f635]['userId']!==_0x490517&&(_0xaa8d02[_0x32f635]['end']=_0x1b972c,_0x2589d7&&_0x2589d7['userId']===_0xaa8d02[_0x32f635]['userId']||_0x35ef80(_0xaa8d02[_0x32f635]),_0xaa8d02[_0x32f635]={'start':_0x1b972c,'tapeItem':_0x36d303[_0x54978d],'userId':_0x490517,'type':_0x32f635}),_0xaa8d02[_0x32f635]&&_0x279ba2&&('elementStart'!==_0x36d303[_0x54978d]['type']||_0x2589d7&&_0x2589d7['userId']===_0x490517||_0x5cdf2b[_0x32f635]['unshift']({'userId':_0x490517,'object':_0x36d303[_0x54978d]['item'],'change':_0xaa8d02[_0x32f635]}),'elementEnd'===_0x36d303[_0x54978d]['type']&&_0x2589d7&&_0x2589d7['object']===_0x36d303[_0x54978d]['item']&&(_0x5cdf2b[_0x32f635]['shift'](),_0xaa8d02[_0x32f635]=_0x2589d7['change'])),_0xaa8d02[_0x32f635]&&_0x52fde1&&(_0xaa8d02[_0x32f635]['end']=_0x1bdcaa,_0x35ef80(_0xaa8d02[_0x32f635]),_0xaa8d02[_0x32f635]=null);}function _0x35ef80({start:_0x14a62d,end:_0x1d542e,tapeItem:_0x4d3707,userId:_0x1a8588,type:_0x1b8f49}){const _0x37a92e=_0x4d3707['item'],_0x41328d=_0x2cc43e['schema']['isBlock'](_0x37a92e)&&!_0x2cc43e['schema']['isLimit'](_0x37a92e),_0x380af5=_0x14a62d['nodeAfter']==_0x1d542e['parent']&&_0x1d542e['isAtStart'];if(_0x41328d&&_0x380af5)return;const _0x1a70c8=_0x2cc43e['createRange'](_0x14a62d,_0x1d542e),_0x560ff1=_0xc7caa9['get'](_0x1a8588),_0x107bea=new r({'author':_0x560ff1,'type':'isAdded'==_0x1b8f49||'isAddSuggestion'==_0x1b8f49?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1b8f49||'isRemoveSuggestion'==_0x1b8f49},'createdAt':new Date(),'rootName':_0x13fbec});_0x190a6f['push'](_0x107bea),_0x5098bd['markers']['set']('revision:'+_0x107bea['id'],_0x1a70c8);}function _0x5ca6c4(_0x34d8dc,_0x4ee459){const _0x38910a=_0x34d8dc['getAttributes'](),_0xe1d10c=_0x4ee459['getAttributes']();for(const _0x5103fe of _0x38910a){if(_0x5103fe[0x1]!==_0x4ee459['getAttribute'](_0x5103fe[0x0]))return!0x1;_0xe1d10c['next']();}return _0xe1d10c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x11910b=>{const _0x41f632=_0x11910b['markerName']['split'](':')[0x1],_0x201f01=this['_getChangeFromId'](_0x41f632);if(!_0x201f01)return null;const _0x1fefd1='add'==_0x201f01['type']?'insertion':'deletion',_0x12b387=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1fefd1];return _0x201f01['data']['isSuggestion']&&_0x12b387['push']('ck-suggestion-marker-'+_0x1fefd1+'-new'),this['activeChange']==_0x201f01&&_0x12b387['push']('ck-suggestion-marker--active'),{'classes':_0x12b387,'attributes':{'data-change-id':_0x41f632}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1d2a99=>{_0x1d2a99['on']('element:pre',(_0x2a60fe,_0x4efc31,_0x59bdda)=>{const _0x1ca2d3=_0x4efc31['viewItem']['getChild'](0x0);if(!_0x1ca2d3||!_0x1ca2d3['is']('element','code'))return;if(!_0x59bdda['consumable']['consume'](_0x1ca2d3,{'attributes':['vid_start','vid_end']}))return;const _0x3422e1=_0x4efc31['modelRange']['start']['nodeAfter'];_0x59bdda['writer']['setAttribute']('vid_start',_0x1ca2d3['getAttribute']('vid_start'),_0x3422e1),_0x59bdda['writer']['setAttribute']('vid_end',_0x1ca2d3['getAttribute']('vid_end'),_0x3422e1);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4febb3=>{_0x4febb3['on']('element',(_0x1897b5,_0x7c143d,_0x437b02)=>{if(!_0x437b02['consumable']['consume'](_0x7c143d['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x7c143d['modelRange']['isCollapsed'])return;const _0x312f95=_0x7c143d['modelRange']['start']['nodeAfter'];_0x312f95['hasAttribute']('vid_start')||_0x312f95['hasAttribute']('vid')||(_0x437b02['writer']['setAttribute']('vid_start',_0x7c143d['viewItem']['getAttribute']('vid_start'),_0x312f95),_0x437b02['writer']['setAttribute']('vid_end',_0x7c143d['viewItem']['getAttribute']('vid_end'),_0x312f95));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x510d6c=>_0x510d6c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2766c4,[,_0x50ad6c])=>{['vid_start','vid_end','vid']['includes'](_0x50ad6c)&&(_0x2766c4['return']=!0x0,_0x2766c4['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x487059=>{_0x487059['on']('attribute:vid',(_0x2a7af9,_0x620ea2,_0x4b379d)=>{if('\x20'!=_0x620ea2['item']['data']||_0x620ea2['item']['parent']['maxOffset']>0x1)return;if(!_0x4b379d['consumable']['consume'](_0x620ea2['item'],_0x2a7af9['name']))return;const _0x3a1ef2=_0x4b379d['writer'],_0x1a2b39=_0x4b379d['mapper']['toViewRange'](_0x620ea2['range']);_0x3a1ef2['wrap'](_0x1a2b39,_0x3a1ef2['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x567f86){const _0x35dc8f=_0x567f86['plugins']['get']('RevisionViewer');return(_0x560abf,_0x29e6a9,_0x319075)=>{const _0x121ded=_0x29e6a9['markerName']['split'](':')[0x1],_0x5c3d6f=_0x35dc8f['_getChangeFromId'](_0x121ded);if(!_0x5c3d6f)return null;const _0x222606='add'==_0x5c3d6f['type']?'split':'merge';if(!_0x319075['consumable']['test'](_0x29e6a9['markerRange'],_0x560abf['name']))return;const _0x22d1d3=_0x29e6a9['markerRange']['getWalker'](),_0xd3c619=_0x29e6a9['markerRange']['start'],_0x14d224=_0x567f86['model']['schema'];let _0x290b99=null,_0xe6a2ac=null,_0x18b28e=!0x1,_0xc5123=!0x1;for(const _0x361949 of _0x22d1d3){const _0x4d1da4=_0x361949['item'];_0x18b28e=_0x18b28e||_0x14d224['isContent'](_0x4d1da4);const _0x142641=_0x319075['mapper']['toViewElement'](_0x4d1da4);if(_0x142641&&_0x142641['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x361949['type']&&(_0x14d224['isBlock'](_0x4d1da4)&&!_0x14d224['isLimit'](_0x4d1da4)&&(_0x4d1da4['nextSibling']||_0xd3c619['isAtEnd']?_0x290b99&&_0x290b99['parent']==_0x4d1da4||(_0x290b99=_0x4d1da4,_0x4b274b(_0x361949['previousPosition']),_0xc5123=!0x0):_0xe6a2ac=_0xe6a2ac||_0x361949['previousPosition']));}function _0x4b274b(_0x16a0e4){const _0x198865=_0x319075['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x222606}),_0x25a822=_0x319075['mapper']['toViewPosition'](_0x16a0e4);_0x5c3d6f['data']['isSuggestion']&&_0x319075['writer']['addClass']('ck-suggestion-marker-'+_0x222606+'-new',_0x198865),_0x35dc8f['activeChange']==_0x5c3d6f&&_0x319075['writer']['addClass']('ck-suggestion-marker--active',_0x198865),_0x319075['writer']['insert'](_0x25a822,_0x198865),_0x319075['mapper']['bindElementToMarker'](_0x198865,_0x29e6a9['markerName']);}_0x18b28e||_0xc5123||!_0xe6a2ac||_0x4b274b(_0xe6a2ac);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5b5138,_0x1ed18a,_0x29ab90)=>{const _0x4de79a=_0x29ab90['mapper']['markerNameToElements'](_0x1ed18a['markerName']);if(_0x4de79a){for(const _0x192aab of _0x4de79a)(_0x192aab['hasClass']('ck-suggestion-marker-split')||_0x192aab['hasClass']('ck-suggestion-marker-merge'))&&(_0x29ab90['mapper']['unbindElementFromMarkerName'](_0x192aab,_0x1ed18a['markerName']),_0x29ab90['writer']['remove'](_0x192aab));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xe1f5a3,_0xad5970,_0x21ac0f)=>{const _0x38f2be=_0xad5970['markerName']['split'](':')[0x1],_0x5ca84e=this['_getChangeFromId'](_0x38f2be);if(!_0x5ca84e)return null;const _0x292531='add'==_0x5ca84e['type']?'split':'merge';if(_0x21ac0f['consumable']['test'](_0xad5970['markerRange'],_0xe1f5a3['name']))for(const _0x1d68aa of _0xad5970['markerRange']['getItems']()){if(!_0x1d68aa['is']('element','softBreak'))continue;const _0x5ca235=_0x21ac0f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x292531}),_0x5ab131=_0x21ac0f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1d68aa));_0x5ca84e['data']['isSuggestion']&&_0x21ac0f['writer']['addClass']('ck-suggestion-marker-'+_0x292531+'-new',_0x5ca235),this['activeChange']==_0x5ca84e&&_0x21ac0f['writer']['addClass']('ck-suggestion-marker--active',_0x5ca235),_0x21ac0f['writer']['insert'](_0x5ab131,_0x5ca235),_0x21ac0f['mapper']['bindElementToMarker'](_0x5ca235,_0xad5970['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2f2104=>{for(const _0x3470cd of this['editor']['model']['document']['getRootNames']()){const _0x5bce9f=this['editor']['model']['document']['getRoot'](_0x3470cd),_0x2d5320=this['editor']['editing']['view']['document']['getRoot'](_0x3470cd);if(_0x2d5320){const _0x31c67b=_0x5bce9f['getAttribute']('revisionHistoryAttachChange');if(_0x2f2104['removeAttribute']('data-change-id',_0x2d5320),_0x2f2104['removeClass']('ck-revision-history-root-add',_0x2d5320),_0x2f2104['removeClass']('ck-revision-history-root-remove',_0x2d5320),_0x2f2104['removeClass']('ck-revision-history-root--active',_0x2d5320),_0x31c67b){const _0x19d985=this['_getChangeFromId'](_0x31c67b);if(!_0x19d985)return null;_0x2f2104['setAttribute']('data-change-id',_0x31c67b,_0x2d5320),_0x2f2104['addClass']('ck-revision-history-root-'+_0x19d985['type'],_0x2d5320),this['activeChange']==_0x19d985&&_0x2f2104['addClass']('ck-revision-history-root--active',_0x2d5320);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3e970c=>'revision-comment:'+_0x3e970c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x29a605=>'revision-suggestion:'+_0x29a605,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1abf59=>({'name':'suggestion:'+_0x1abf59,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3cadec=>{const _0x15e058=_0x3cadec['markerName']['split'](':')[0x1];return'insertion'!=_0x15e058&&'deletion'!=_0x15e058?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x15e058]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2b23bf,_0x197c59,_0x461d6b)=>{const _0x14c0a4=_0x461d6b['mapper']['markerNameToElements'](_0x197c59['markerName']);if(_0x14c0a4){for(const _0x23ff96 of _0x14c0a4)_0x23ff96['is']('uiElement')&&(_0x461d6b['mapper']['unbindElementFromMarkerName'](_0x23ff96,_0x197c59['markerName']),_0x461d6b['writer']['remove'](_0x23ff96));}},{'priority':'high'});}['_getChangeFromId'](_0x2e1471){return this['_changeIdToChange']['get'](_0x2e1471);}['_getViewForChange'](_0x43c127){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x43c127),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1b6419,_0x28f804,_0x1392a0,_0x46fd89)=>{_0x46fd89&&this['_balloon']['remove'](_0x46fd89),_0x1392a0&&(this['_balloon']['add']({'view':_0x1392a0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5dfcf5=this['editor']['editing'],_0x376f2f=this['_getChangeFromId'](_0x1392a0['changeId']);let _0xb6450;if(_0x376f2f['data']['isOnRoot']){const _0x3129c6=_0x5dfcf5['view']['getDomRoot'](_0x376f2f['rootName']);_0xb6450=Array['from'](_0x3129c6['getClientRects']());}else{const _0x55f8cc=this['editor']['model']['markers']['get']('revision:'+_0x1392a0['changeId']);_0xb6450=Array['from'](_0x5dfcf5['mapper']['markerNameToElements'](_0x55f8cc['name']))['map'](_0x466247=>_0x5dfcf5['view']['domConverter']['mapViewToDom'](_0x466247))['map'](_0xbc4fdb=>Array['from'](_0xbc4fdb['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xb6450[0x0];return _0xb6450['find'](_0x5c0317=>_0x5c0317['top']-0x3<=this['_activeViewTarget']['y']&&_0x5c0317['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5c0317['left']-0x3<=this['_activeViewTarget']['x']&&_0x5c0317['right']+0x3>=this['_activeViewTarget']['x'])||_0xb6450[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3548b4,_0x51da8d,_0x23ee04,_0x4b831d)=>{this['activeView']=_0x23ee04?this['_getViewForChange'](_0x23ee04):null,this['editor']['model']['change'](()=>{const _0x1f7180=this['editor']['editing'];_0x4b831d&&(_0x4b831d['data']['isOnRoot']?_0x1f7180['view']['change'](_0x61dac4=>{_0x61dac4['removeClass']('ck-revision-history-root--active',_0x1f7180['view']['document']['getRoot'](_0x4b831d['rootName']));}):_0x1f7180['reconvertMarker']('revision:'+_0x4b831d['id'])),_0x23ee04&&(_0x23ee04['data']['isOnRoot']?_0x1f7180['view']['change'](_0x130a3f=>{_0x130a3f['addClass']('ck-revision-history-root--active',_0x1f7180['view']['document']['getRoot'](_0x23ee04['rootName']));}):_0x1f7180['reconvertMarker']('revision:'+_0x23ee04['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4ad197,_0x59c869)=>{if(this['activeChange'])return;const _0x58a13e=this['_findChangeIdFromDomTarget'](_0x59c869['target']),_0x204c1e=this['_changeIdToChange']['get'](_0x58a13e);_0x204c1e?(this['_activeViewTarget']={'x':_0x59c869['domEvent']['x'],'y':_0x59c869['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x204c1e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x213b98,_0x27a5ff)=>{const _0x3b38e9=this['_findChangeIdFromDomTarget'](_0x27a5ff['target']),_0x54c6ab=this['_changeIdToChange']['get'](_0x3b38e9);_0x54c6ab?(this['_activeViewTarget']={'x':_0x27a5ff['domEvent']['x'],'y':_0x27a5ff['domEvent']['y']},_0x54c6ab===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x54c6ab):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1935f5){do{const _0x321776=_0x1935f5['getAttribute']('data-change-id');if(_0x321776)return _0x321776;_0x1935f5=_0x1935f5['parent'];}while(_0x1935f5);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5d58e1=>{for(const _0x30ddd3 of this['editor']['model']['markers'])_0x5d58e1['removeMarker'](_0x30ddd3);});}}function Z(_0x4126fb,_0x3c25b1){return(_0x2566e4,_0xb0767e,_0x40998d)=>{if(!_0x40998d['consumable']['test'](_0xb0767e['markerRange'],_0x2566e4['name']))return;const _0x294500=_0xb0767e['markerRange']['getWalker'](),_0x430524=_0xb0767e['markerRange']['start'],_0x1978db=_0x4126fb['model']['schema'];let _0x475544=null,_0x35b4ef=null,_0x556fc2=!0x1,_0x4904d2=!0x1;for(const _0x1a9b97 of _0x294500){const _0x25880c=_0x1a9b97['item'];_0x556fc2=_0x556fc2||_0x1978db['isContent'](_0x25880c);const _0x5a76b7=_0x40998d['mapper']['toViewElement'](_0x25880c);if(_0x5a76b7&&_0x5a76b7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1a9b97['type']&&(_0x1978db['isBlock'](_0x25880c)&&!_0x1978db['isLimit'](_0x25880c)&&(_0x25880c['nextSibling']||_0x430524['isAtEnd']?_0x475544&&_0x475544['parent']==_0x25880c||(_0x475544=_0x25880c,_0x451e47(_0x1a9b97['previousPosition']),_0x4904d2=!0x0):_0x35b4ef=_0x35b4ef||_0x1a9b97['previousPosition']));}function _0x451e47(_0x22ee92){const _0x3ca4a3=_0x40998d['mapper']['toViewPosition'](_0x22ee92),_0x50fa5e=_0x40998d['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3c25b1});_0x40998d['writer']['insert'](_0x3ca4a3,_0x50fa5e),_0x40998d['mapper']['bindElementToMarker'](_0x50fa5e,_0xb0767e['markerName']);}_0x556fc2||_0x4904d2||!_0x35b4ef||_0x451e47(_0x35b4ef);};}class pt extends _0x5d3438{constructor(_0x3f0d62){super(_0x3f0d62);const _0x4fe2cc=_0x3f0d62['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4fe2cc,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4fe2cc,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x139627=this['editor'],_0x5f1c42=_0x139627['plugins']['get'](d),_0x106839=_0x5f1c42['isReady']?_0x5f1c42['diff']['newRevisionId']:null;_0x139627['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x106839);}['refresh'](){const {isReady:_0x32c315,isEnabled:_0x166d23,repository:_0x1c4991,diff:_0x2c0e40}=this['editor']['plugins']['get'](d),_0x4c41ec=_0x2c0e40&&_0x1c4991['getLaterVisibleRevision'](_0x2c0e40['newRevisionId']);this['isEnabled']=_0x32c315&&_0x166d23&&Boolean(_0x4c41ec);}}class _t extends _0x5d3438{['_step'];constructor(_0x3e3f8b,{direction:_0x166e64}){super(_0x3e3f8b);const _0x40cd09=_0x3e3f8b['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x166e64?0x1:-0x1,this['listenTo'](_0x40cd09,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x40cd09,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x40cd09,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x35efc3=this['editor'],_0xe7fe46=_0x35efc3['plugins']['get'](d),{isNavigationMode:_0x496d91,currentChangeNumber:_0x1299af}=_0xe7fe46;let _0x1e285a;if(_0xe7fe46['activeChange']=_0x496d91?_0xe7fe46['diff']['changes']['get'](_0x1299af+this['_step']):_0xe7fe46['diff']['changes']['first'],_0xe7fe46['activeChange']['data']['isOnRoot'])_0x1e285a=_0x35efc3['editing']['view']['getDomRoot'](_0xe7fe46['activeChange']['rootName']);else{const _0x5c9415=_0x35efc3['model']['markers']['get']('revision:'+_0xe7fe46['activeChange']['id']);_0x1e285a=_0x594296(_0x35efc3['editing'],_0x5c9415);}_0x527c9e({'target':_0x1e285a,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4d004f,currentChangeNumber:_0x52ade2,numberOfChanges:_0x5d4325,isReady:_0xc31a13,isEnabled:_0x91de26}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x91de26&&_0xc31a13&&_0x5d4325)&&(!_0x4d004f||(0x1===this['_step']?_0x52ade2<_0x5d4325-0x1:_0x52ade2>0x0));}}class ui extends ts{constructor(_0x338f41){super(_0x338f41);const _0x5bb862=this['bindTemplate'],_0x3b6b78=new te(_0x338f41),_0x50612c=new te(_0x338f41);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',(_0x179d7d,_0x510cf1)=>_0x179d7d&&_0x510cf1>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x48884f,_0x3ad260,_0x4b5d17,_0xe356d6)=>{if(!_0x48884f)return m(_0x338f41,'Loading...');if(!_0x4b5d17)return m(_0x338f41,'No\x20changes');const _0x3d3f35=m(_0x338f41,'NUMBER_OF_CHANGES',_0x4b5d17);return _0xe356d6?m(_0x338f41,'X_OF_Y_CHANGES',[_0x3ad260+0x1,_0x4b5d17]):_0x3d3f35;}),_0x3b6b78['set']({'label':m(_0x338f41,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x50612c['set']({'label':m(_0x338f41,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x3b6b78['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x50612c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3b6b78['on']('execute',()=>this['fire']('execute','backward')),_0x50612c['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',_0x5bb862['if']('_isStatusLabelVisible','ck-hidden',_0x123c5a=>!_0x123c5a)]},'children':[{'text':_0x5bb862['to']('isNavigationMode',_0x2d1930=>_0x2d1930?m(_0x338f41,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x338f41,'Total')+':\x20')}]},{'text':_0x5bb862['to']('_statusText')}]},new _0x5d9dde(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3b6b78,_0x50612c]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x2ced25{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1f73a9=this['editor']['editing']['view'];_0x1f73a9['change'](_0x3cc53c=>{for(const _0x4db451 of _0x1f73a9['document']['roots'])_0x3cc53c['addClass'](le,_0x4db451);});}['hide'](){const _0x800123=this['editor']['editing']['view'];_0x800123['change'](_0x5cd691=>{for(const _0x52efb3 of _0x800123['document']['roots'])_0x5cd691['removeClass'](le,_0x52efb3);});}}class g extends _0x2ced25{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x51ae9c=this['editor'],_0x600afb=_0x51ae9c['plugins']['get'](d),_0x2d8ff7=_0x51ae9c['plugins']['get'](de);_0x51ae9c['ui']['componentFactory']['add']('exitToEditing',_0x11d242=>{const _0x353b43=new te(_0x11d242);return _0x353b43['set']({'label':m(_0x11d242,'Back\x20to\x20editing'),'icon':_0x48dd12['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x353b43,'execute',()=>{_0x51ae9c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x353b43;}),_0x51ae9c['ui']['componentFactory']['add']('restoreRevision',_0x527a02=>{const _0x3107c5=new te(_0x527a02);return _0x3107c5['set']({'label':m(_0x527a02,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3107c5['bind']('isEnabled')['to'](_0x51ae9c['commands']['get']('restoreRevision')),this['listenTo'](_0x3107c5,'execute',()=>_0x51ae9c['execute']('restoreRevision')),_0x3107c5;}),_0x51ae9c['ui']['componentFactory']['add']('changesNavigation',_0x25f5fb=>{const _0x5b363f=new ui(_0x25f5fb),_0x587ea9=_0x51ae9c['commands']['get']('showPreviousChange'),_0x162c24=_0x51ae9c['commands']['get']('showNextChange');return _0x5b363f['bind']('isBackwardNavigationEnabled')['to'](_0x587ea9,'isEnabled'),_0x5b363f['bind']('isForwardNavigationEnabled')['to'](_0x162c24,'isEnabled'),_0x5b363f['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x600afb),this['listenTo'](_0x5b363f,'execute',(_0x5ed7f5,_0x521fc8)=>{_0x51ae9c['execute']('forward'===_0x521fc8?'showNextChange':'showPreviousChange');}),_0x5b363f;}),_0x2d8ff7['show'](),_0x600afb['on']('change:isReady',(_0x5d09d0,_0x25c3ac,_0x596a65)=>{_0x596a65?_0x2d8ff7['hide']():_0x2d8ff7['show']();});}}class at extends _0x136d79{['_resizeObserver']=null;constructor(_0x37eb6d,_0x456642){super(_0x37eb6d,_0x456642);const _0x65b711=this['bindTemplate'];this['set']({'label':m(_0x37eb6d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x37eb6d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x65b711['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 _0x54614e=this['fieldView']['element'];this['_tooltipString']=_0x54614e['scrollWidth']>_0x54614e['clientWidth']&&_0x54614e['value']||'';}}class ri extends ts{constructor(_0x4c1da6,_0x4bcff1,_0x63ba05){super(_0x4c1da6);const _0x294d9c=new _0x82d7ef();_0x294d9c['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x4a0414=['ck','ck-revision-history-sidebar__revision-author'];_0x63ba05&&_0x4a0414['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3b296d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4c1da6,_0x63ba05?'Revision\x20creator':'Revision\x20author')},'children':[_0x294d9c,_0x4bcff1['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4a0414},'children':_0x3b296d});}}function oi(_0x1dffc1,_0x1a0009){const _0x4db969=_0x1dffc1['bindTemplate'],_0x51fad2=_0x1dffc1['locale'],_0x556984=_0x4e101c(_0x51fad2);_0x556984['panelPosition']='sw';const _0x23f81d=function(_0x5ca33e,_0x1ffcbb){const _0xf9ccba=function(_0x440624,_0x72e93f){const _0x2db989=_0x440624['locale'],_0x5b69f6={'Compare\x20against\x20selected':m(_0x2db989,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x2db989,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x2db989,'Restore\x20this\x20revision')};return _0x72e93f['map'](_0x3d0027=>{const _0x7004ae=_0x5b69f6[_0x3d0027['name']];return _0x7004ae&&_0x7004ae!==_0x3d0027['name']&&(_0x3d0027['name']=_0x7004ae),_0x3d0027;});}(_0x5ca33e,_0x1ffcbb),_0x2c73f5=new _0x44ade6();for(const _0x37a5d2 of _0xf9ccba){const _0x27799a={'type':'button','model':new _0x2e2573({'label':_0x37a5d2['name'],'class':_0x37a5d2['class'],'withText':!0x0,'role':'menuitem','_action':_0x37a5d2['action']})};_0x27799a['model']['bind']('isEnabled')['to'](_0x5ca33e,'isActionsDropdownOpen',_0x23e2d6=>'function'!=typeof _0x37a5d2['isEnabled']||(!_0x23e2d6||_0x37a5d2['isEnabled'](_0x5ca33e))),_0x2c73f5['add'](_0x27799a);}return _0x2c73f5;}(_0x1dffc1,_0x1a0009);return _0x1dffc1['bind']('isActionsDropdownOpen')['to'](_0x556984,'isOpen'),_0x556984['buttonView']['set']({'label':m(_0x51fad2,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x48dd12['threeVerticalDots']}),_0x556984['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4db969['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4db969['to'](_0x2f7241=>_0x2f7241['stopPropagation']())}}),_0x556984['on']('execute',_0xaca148=>{_0x1dffc1['isReady']&&'function'==typeof _0xaca148['source']['_action']&&_0xaca148['source']['_action'](_0x1dffc1);}),to(_0x556984,_0x23f81d,{'role':'menu'}),_0x556984['listenTo'](_0x1dffc1,'change:isActionsDropdownOpen',(_0x2b24f1,_0x5b8ed7,_0x11906c)=>{if(_0x11906c)for(const _0x1b123c of _0x556984['listView']['items']){const _0x508c63=_0x1b123c['children']['first'],_0x3a8ae2=_0x1a0009['find'](_0x169457=>_0x169457['action']===_0x508c63['_action'])['isVisible'];_0x1b123c['isVisible']=void 0x0===_0x3a8ae2||_0x3a8ae2(_0x1dffc1);}}),_0x556984;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xd5bb90,_0x2f6631,_0x3b72fa,_0x1c688d){super(_0xd5bb90);const _0x207d0a=this['bindTemplate'],_0x3f0b96=function(_0x3630a5,_0x294175){const _0x4e5dd5=Array['from'](_0x294175['authors'])['filter'](_0x39b4bc=>_0x39b4bc!=_0x294175['creator']);return _0x294175['creator']&&_0x4e5dd5['unshift'](_0x294175['creator']),_0x4e5dd5['map'](_0x5cc875=>new ri(_0x3630a5,_0x5cc875,_0x5cc875==_0x294175['creator']));}(_0xd5bb90,_0x2f6631);this['id']=_0x2f6631['id'],this['_revision']=_0x2f6631,this['_requireRevisionName']=_0x1c688d,this['bind']('name','createdAt')['to'](_0x2f6631),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x51fe3a=>{return _0x25b81e=_0xd5bb90['uiLanguage'],(_0xc3f5e7=_0x51fe3a)['toLocaleDateString'](_0x25b81e,{'month':'long','day':'numeric'})+',\x20'+_0xc3f5e7['toLocaleTimeString'](_0x25b81e,{'hour':'numeric','minute':'numeric'});var _0x25b81e,_0xc3f5e7;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0xd5bb90,_0x2cdfd5),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3c12f7=>_0x3c12f7||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4d2767,_0x240e95)=>_0x4d2767&&_0x240e95),this['revisionActionsView']=_0x3b72fa&&_0x3b72fa['length']?oi(this,_0x3b72fa):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x207d0a['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x207d0a['if']('isEnabled','ck-disabled',_0x2ff082=>!_0x2ff082),_0x207d0a['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x207d0a['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x207d0a['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':_0x207d0a['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':_0x3f0b96}]},this['revisionActionsView']],'on':{'click':_0x207d0a['to'](_0x3e6186=>{_0x3e6186['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x44d9da=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x44d9da,'change',()=>{this['_requireRevisionName']&&!_0x44d9da['value']||this['fire']('setName',{'id':this['id'],'name':_0x44d9da['value']}),_0x44d9da['value']||(_0x44d9da['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0xc36590,_0x28cc70){const _0x106c54=_0x37ce12['fromJSDate'](_0xc36590)['setLocale'](_0x28cc70),_0x2035d5=_0x37ce12['local'](),_0x5b71ce=_0x2035d5['minus']({'days':0x1})['startOf']('day');let _0x1113cd,_0x36fdfc;return _0x106c54['hasSame'](_0x2035d5,'day')?(_0x1113cd=_0x106c54['startOf']('day')['toJSDate'](),_0x36fdfc=_0x106c54['toRelativeCalendar']()):_0x106c54['hasSame'](_0x5b71ce,'day')?(_0x1113cd=_0x5b71ce['toJSDate'](),_0x36fdfc=_0x106c54['toRelativeCalendar']()):_0x106c54['hasSame'](_0x2035d5,'week')?(_0x1113cd=_0x106c54['startOf']('week')['toJSDate'](),_0x36fdfc=_0x106c54['weekdayLong']||''):_0x106c54['hasSame'](_0x2035d5,'year')?(_0x1113cd=_0x106c54['startOf']('month')['toJSDate'](),_0x36fdfc=_0x106c54['monthLong']||''):(_0x1113cd=_0x106c54['startOf']('year')['toJSDate'](),_0x36fdfc=String(_0x106c54['year'])),{'startDate':_0x1113cd,'localizedPeriodName':_0x36fdfc};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2eee7a,_0xfcad98,_0x1ac885,_0x1eaf84){super(_0x2eee7a);const _0x30c54e=mi(_0xfcad98,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xfcad98,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1ac885,this['_requireRevisionName']=_0x1eaf84,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':_0x30c54e}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x12a19b){const _0x4873af=new hi(this['locale'],_0x12a19b,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4873af);}['removeRevision'](_0x321596){const _0x305fed=this['revisionViews']['find'](_0x362fff=>_0x362fff['id']===_0x321596['id']);this['revisionViews']['remove'](_0x305fed);}}class as extends ts{constructor(_0xc63306){super(_0xc63306);const _0x1e4b76=new _0x82d7ef();_0x1e4b76['content']=_0x48dd12['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1e4b76,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0xc63306,'Revision\x20history')]}]});}}class di extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5a44ec,_0x1b81a3,_0x1a0e84,_0x4cbca8){super(_0x5a44ec);const _0x5b6025=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1b81a3,this['_revisionActions']=_0x1a0e84,this['_requireRevisionName']=_0x4cbca8,this['on']('select',(_0x36b1a5,_0x2988d3)=>{this['fire']('revisionSelected',_0x2988d3);}),this['on']('setName',(_0x45ca3a,_0x172517)=>{this['fire']('revisionSetName',_0x172517);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5a44ec),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5b6025['if']('isEnabled','ck-disabled',_0x589136=>!_0x589136)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x59bee8 of this['_revisions'])this['_addRevision'](_0x59bee8);this['_revisions']['on']('add',(_0x2e533d,_0x52ac9c)=>{this['_addRevision'](_0x52ac9c);}),this['_revisions']['on']('remove',(_0xf3f38c,_0x20e18a)=>{this['_removeRevision'](_0x20e18a);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x57d3d0=>_0x57d3d0['revisionViews']['map'](_0x355dff=>_0x355dff))['flat']();}['selectRevision'](_0x14b575){for(const _0x5a5424 of this['revisionViews'])_0x14b575&&_0x14b575['id']===_0x5a5424['id']?_0x5a5424['select']():_0x5a5424['deselect']();}['highlightRevisions'](_0x2488a1){for(const _0x31105a of this['revisionViews'])_0x2488a1['some'](({id:_0x128fbb})=>_0x128fbb===_0x31105a['id'])?_0x31105a['highlight']():_0x31105a['unhighlight']();}['_addRevision'](_0x208a40){const _0x412979=mi(_0x208a40['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x574438=this['timePeriodViews']['get'](0x0);_0x574438&&_0x574438['startDate']['getTime']()===_0x412979['getTime']()||(_0x574438=new vi(this['locale'],_0x412979,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x574438)),_0x574438['addRevision'](_0x208a40);}['_removeRevision'](_0x4c7d41){const _0x169228=mi(_0x4c7d41['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x169228)['removeRevision'](_0x4c7d41);}['_getTimePeriodViewByStartDate'](_0x379cec){return this['timePeriodViews']['find'](_0x59324a=>_0x59324a['startDate']['getTime']()===_0x379cec['getTime']());}}class w extends _0x2ced25{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x3942f1){super(_0x3942f1),this['_revisionViewer']=_0x3942f1['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1e2fe3=this['_revisionsRepository']['_revisions'],_0x156b3e=this['_createRevisionActions'](),_0x1ef3a3=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x1e2fe3,_0x156b3e,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',(_0x182666,_0x9f6810)=>{_0x9f6810['revisionViews']['on']('add',(_0x109693,_0x2ca48d)=>{_0x2ca48d['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)),_0x1ef3a3['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4806e3=this['_revisionsRepository']['getRevision'](0x0);if(_0x4806e3){const _0x338cbe=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4806e3['id']);this['_revisionViewer']['compare'](_0x4806e3,_0x338cbe);}}['_handleRevisionSelected'](_0x301097,_0x4e96cc){const _0x24c20b=this['_revisionsRepository']['getRevision'](_0x4e96cc['id']),_0x58debb=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x24c20b['id']);this['_revisionViewer']['compare'](_0x24c20b,_0x58debb);}['_handleRevisionSetName'](_0x39e63a,_0x28ea0a){this['_revisionsRepository']['getRevision'](_0x28ea0a['id'])['setName'](_0x28ea0a['name']);}['_handleDiffChange'](_0x36a350,_0x1c8556,_0x32d7ab){const _0x5e501b=this['_revisionsRepository']['getRevisionsInDiff'](_0x32d7ab);_0x5e501b['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5e501b),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5e501b[0x0]));}['_createRevisionActions'](){const _0x28783e=this['editor'],_0xd69e42=w['availableRevisionActions'],_0x387aa7=_0x28783e['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x387aa7['length'])return _0x387aa7['map'](_0x5370c8=>{const _0x3fd514='string'==typeof _0x5370c8?Object['assign']({},_0xd69e42[_0x5370c8]):_0x5370c8;return _0x3fd514['action']=_0x3fd514['action']['bind'](this,_0x28783e),_0x3fd514['isVisible']&&(_0x3fd514['isVisible']=_0x3fd514['isVisible']['bind'](this,_0x28783e)),_0x3fd514;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x837b49},_0x132583)=>{const _0x51d291=_0x837b49['get'](d),_0x3527e3=_0x51d291['repository'];let _0x818e31=_0x51d291['diff']['newRevisionId'],_0x1d94ce=_0x132583['id'];_0x3527e3['getIndex'](_0x818e31)>_0x3527e3['getIndex'](_0x1d94ce)&&([_0x818e31,_0x1d94ce]=[_0x1d94ce,_0x818e31]),_0x51d291['compare'](_0x818e31,_0x1d94ce);},'isVisible':({plugins:_0x4bdb42},_0x1e190b)=>{const _0x3f1003=_0x4bdb42['get'](d);return!(_0x3f1003['repository']['getRevisionsInDiff'](_0x3f1003['diff'])['length']>0x2)&&!_0x1e190b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x496960,{id:_0x4d82c1})=>{_0x496960['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4d82c1);},'isVisible':({plugins:_0x4dc4f9},_0x1dfe74)=>!!_0x4dc4f9['get'](d)['repository']['getLaterVisibleRevision'](_0x1dfe74['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3e9e2c},{id:_0x3450fd,revisionNameView:_0x6f7f16})=>{const _0x50c59e=_0x3e9e2c['get'](d),_0x292df9=_0x50c59e['repository']['getEarlierVisibleRevision'](_0x3450fd);_0x50c59e['compare'](_0x3450fd,_0x292df9),_0x6f7f16['focus'](),_0x6f7f16['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5d078e,_0x1ac463){super(_0x5d078e),this['_view']=_0x1ac463,this['_toolbarConfig']=ot(_0x5d078e['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x8344be){const _0x38ae95=this['editor'],_0x599e1f=this['view'],_0xeb73de=_0x38ae95['editing']['view'],_0x346c9b=_0x599e1f['editable'],_0x140c86=_0xeb73de['document']['getRoot']();_0x346c9b['name']=_0x140c86['rootName'],_0x599e1f['render']();const _0x5dcd27=_0x346c9b['element'];this['setEditableElement'](_0x346c9b['name'],_0x5dcd27),_0x599e1f['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xeb73de['attachDomRoot'](_0x5dcd27),this['_elementReplacer']['replace'](_0x8344be,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x117cea=this['view'],_0x5e2522=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5e2522['detachDomRoot'](_0x117cea['editable']['name']),_0x117cea['destroy']();}['_initToolbar'](){const _0x1a472c=this['view'];_0x1a472c['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1a472c['stickyPanel']['limiterElement']=_0x1a472c['element'],_0x1a472c['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x44bedf})=>_0x44bedf),_0x1a472c['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1a472c['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xb25d96,_0x1984fd,_0x2d9ce2={}){super(_0xb25d96),this['stickyPanel']=new ut(_0xb25d96),this['toolbar']=new lt(_0xb25d96,{'shouldGroupWhenFull':_0x2d9ce2['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0xb25d96,_0x1984fd);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3e1bcb,_0x292a20){super(_0x292a20),this['sourceElement']=_0x3e1bcb,this['model']['document']['createRoot']();const _0x5b4351=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x5b4351);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x459755,_0x3482c9){const _0x4109b0=new this(_0x459755,_0x3482c9);return await _0x4109b0['initPlugins'](),await _0x4109b0['ui']['init'](_0x459755),await _0x4109b0['data']['init'](_0x4109b0['config']['get']('initialData')||''),_0x4109b0['fire']('ready'),_0x4109b0;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x42ee13{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x245783){function _0x1fb46f(_0x4e7566){return _0x4e7566['map'](_0x2b3a03=>String['fromCharCode'](_0x2b3a03))['join']('');}super(_0x245783),this['result']='end',_0x245783[_0x1fb46f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1fb46f([0x76,0x69,0x65,0x77])][_0x1fb46f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1fb46f([0x61,0x75,0x74,0x6f]),_0x245783[_0x1fb46f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1fb46f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1fb46f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1fb46f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1fb46f([0x6f,0x6b])});}}class k extends _0x42ee13{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x15179e){if(super(_0x15179e),!this['editor']['config']['get']('revisionHistory'))throw new _0x5b799a('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x34cba0=>this['_showRevisionViewer']({..._0x34cba0,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x33ac0c=>this['_closeRevisionViewer'](_0x33ac0c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xf9939d=>this['_restoreRevision'](_0xf9939d)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x475efc){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x475efc;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x6eb3d6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x6eb3d6);}['getRevision'](_0x40ddd2){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x40ddd2);}['getRevisions'](_0x1c1e34){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1c1e34||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x164585=this['editor'],_0x47dc95=_0x1f563c(_0x164585,p),_0x21e2eb=_0x164585['plugins']['get']('RevisionTracker'),_0x1aa270=_0x164585['plugins']['get']('Users')['users'];return _0x47dc95['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x47dc95['lazyRoots'],(_0x47dc95['plugins']['push'](Rt,d,g,class extends _0x42ee13{static get['requires'](){return[d,'Users'];}['init'](){const _0x5bcd6f=this['editor']['plugins']['get']('Users');for(const _0x1fbf14 of _0x1aa270)_0x1fbf14['isAnonymous']||_0x5bcd6f['getUser'](_0x1fbf14['id'])||_0x5bcd6f['addUser'](_0x1fbf14);const _0x395d8f=_0x21e2eb['repository']['getRevisions']();let _0x592b84=null;const _0x6abd08=this['editor']['plugins']['get']('RevisionViewer');_0x6abd08['adapter']=_0x21e2eb['adapter'],_0x6abd08['bind']('isEnabled')['to'](_0x21e2eb),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x164585,'isReadOnly',_0x19e5a3=>!_0x19e5a3);for(const _0x3ee8c4 of _0x395d8f){const _0x4033b1=null===_0x3ee8c4['creator'];if(_0x4033b1&&_0x3ee8c4['toVersion']===_0x3ee8c4['fromVersion'])continue;const _0x1607d3=_0x3ee8c4['toJSON']();_0x6abd08['addRevisionData'](_0x1607d3,(_0x53f236,_0x5866d3,_0x58295d)=>{if(_0x4033b1){if(_0x592b84)_0x592b84['_update'](_0x53f236,_0x5866d3);else{if(!_0x5866d3){const _0x1b036d=_0x58295d['toJSON']();_0x1b036d['id']=_0x52c6ae(),_0x21e2eb['saveRevision'](_0x1b036d,_0x58295d['toVersion'])['then'](_0x87d311=>{_0x592b84=_0x87d311;});}}}else _0x3ee8c4['_update'](_0x53f236,_0x5866d3);});}}},w),_0x47dc95);}['_enhanceShowRevisionViewerCallback'](){const _0x53c3e3=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x26874d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x26daa1=this['editor']['plugins']['get']('Autosave');await _0x26daa1['save']();}else await _0x26874d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xb87379=this['editor']['plugins']['get']('Dialog');_0xb87379['isOpen']&&_0xb87379['hide']();}const _0x389f6e=this['_getRevisionViewerEditorConfig']();return _0x53c3e3(_0x389f6e)['then'](_0x123b1f=>{return(this['_viewerEditor']=_0x123b1f,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x123b1f;})['catch'](_0x2e47bb=>(console['error'](_0x2e47bb),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x29accd=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x29accd(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x48787c=this['editor']['plugins']['get']('Annotations');_0x48787c['refreshVisibility'](),_0x48787c['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4c5b1a){const _0x40d1d6=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4d7150=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x26352e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x26352e,_0x4c5b1a)['then'](_0x4644c8=>(_0x4d7150['style']['display']='block',_0x40d1d6['style']['display']='none',_0x4644c8));}['_closeRevisionViewer'](_0x5dff25){const _0x50cc9b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x50cc9b['style']['display']='',_0x5dff25['destroy']();}async['_restoreRevision'](_0x49831b){const _0x535105=this['editor'],_0x4d28c4=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x41def6=_0x535105['plugins']['get']('RevisionTracker'),_0x58f119=_0x4d28c4['repository']['getRevision'](_0x49831b);let _0x42e2ae,_0x4e461b,_0x1c70f5;try{_0x42e2ae=await _0x4d28c4['getRevisionData'](_0x58f119),_0x4e461b=await _0x4d28c4['getRevisionRootsAttributes'](_0x58f119);}catch(_0x562c85){return void console['error'](_0x562c85);}_0x535105['model']['change'](_0xb74153=>{for(const _0x2d26da of Array['from'](_0x535105['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xb74153['removeMarker'](_0x2d26da);}),_0x4d28c4['isReady']=!0x1,_0x535105['model']['enqueueChange'](_0xfdf3c6=>{_0xfdf3c6['setSelection'](null),_0xfdf3c6['removeSelectionAttribute'](_0x535105['model']['document']['selection']['getAttributeKeys']());const _0x5b3000=Object['keys'](_0x42e2ae);for(const _0x20d7ad of _0x535105['model']['document']['roots'])'$graveyard'!=_0x20d7ad['rootName']&&_0x20d7ad['isAttached']()&&!_0x5b3000['includes'](_0x20d7ad['rootName'])&&_0xfdf3c6['detachRoot'](_0x20d7ad);for(const _0x5e8e5f of _0x5b3000){let _0x114ea0=_0x535105['model']['document']['getRoot'](_0x5e8e5f);_0x114ea0&&_0x114ea0['isAttached']()||(_0x114ea0=_0xfdf3c6['addRoot'](_0x5e8e5f));const _0x4822a5=_0x4e461b[_0x5e8e5f],_0x537402=Object['keys'](_0x4822a5),_0xe39ca9=_0x42e2ae[_0x5e8e5f];for(const _0x5b6633 of _0x114ea0['getAttributeKeys']())_0x537402['includes'](_0x5b6633)||_0xfdf3c6['removeAttribute'](_0x5b6633,_0x114ea0);for(const _0x15a6eb of _0x537402)_0xfdf3c6['setAttribute'](_0x15a6eb,_0x4e461b[_0x5e8e5f][_0x15a6eb],_0x114ea0);_0xfdf3c6['remove'](_0xfdf3c6['createRangeIn'](_0x114ea0)),_0xfdf3c6['insert'](_0x535105['data']['parse'](_0xe39ca9,_0x114ea0),_0x114ea0,0x0);}});const _0x4fdb6a=m(_0x535105['locale'],'Restored');if(_0x58f119['name'])_0x1c70f5=-0x1==_0x58f119['name']['indexOf'](_0x4fdb6a)?_0x4fdb6a+':\x20'+_0x58f119['name']:_0x58f119['name'];else _0x1c70f5=_0x4fdb6a+':\x20'+(_0x58f119['createdAt']['toLocaleDateString'](_0x535105['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x58f119['createdAt']['toLocaleTimeString'](_0x535105['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x41def6['saveRevision']({'name':_0x1c70f5}),_0x4d28c4['isReady']=!0x0,_0x535105['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x311328){super(_0x311328),this['_revisionViewer']=_0x311328['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2d32b8=this['_revisionsRepository']['_revisions'],_0x211507=this['_createRevisionActions'](),_0x25bad9=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x2d32b8,_0x211507,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',(_0x215e92,_0x55c53d)=>{_0x55c53d['revisionViews']['on']('add',(_0x224a49,_0x728454)=>{_0x728454['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)),_0x25bad9['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4ba982=this['_revisionsRepository']['getRevision'](0x0);if(_0x4ba982){const _0x45afae=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4ba982['id']);this['_revisionViewer']['compare'](_0x4ba982,_0x45afae);}}['_handleRevisionSelected'](_0x2aec8b,_0x57f323){const _0xa5fa2a=this['_revisionsRepository']['getRevision'](_0x57f323['id']),_0x2ec0d9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xa5fa2a['id']);this['_revisionViewer']['compare'](_0xa5fa2a,_0x2ec0d9);}['_handleRevisionSetName'](_0x14bce9,_0x20d756){this['_revisionsRepository']['getRevision'](_0x20d756['id'])['setName'](_0x20d756['name']);}['_handleDiffChange'](_0x313b47,_0x5b8b81,_0x194a5d){const _0xa55b96=this['_revisionsRepository']['getRevisionsInDiff'](_0x194a5d);_0xa55b96['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xa55b96),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xa55b96[0x0]));}['_createRevisionActions'](){const _0x33f1b1=this['editor'],_0x22f301=w['availableRevisionActions'],_0x5da37a=_0x33f1b1['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x5da37a['length'])return _0x5da37a['map'](_0x97c8cb=>{const _0x3afc40='string'==typeof _0x97c8cb?Object['assign']({},_0x22f301[_0x97c8cb]):_0x97c8cb;return _0x3afc40['action']=_0x3afc40['action']['bind'](this,_0x33f1b1),_0x3afc40['isVisible']&&(_0x3afc40['isVisible']=_0x3afc40['isVisible']['bind'](this,_0x33f1b1)),_0x3afc40;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xd18173},_0x56d2c0)=>{const _0xdb7421=_0xd18173['get'](d),_0x32cdbd=_0xdb7421['repository'];let _0x1175f4=_0xdb7421['diff']['newRevisionId'],_0x579caf=_0x56d2c0['id'];_0x32cdbd['getIndex'](_0x1175f4)>_0x32cdbd['getIndex'](_0x579caf)&&([_0x1175f4,_0x579caf]=[_0x579caf,_0x1175f4]),_0xdb7421['compare'](_0x1175f4,_0x579caf);},'isVisible':({plugins:_0x563e72},_0x665547)=>{const _0x5da564=_0x563e72['get'](d);return!(_0x5da564['repository']['getRevisionsInDiff'](_0x5da564['diff'])['length']>0x2)&&!_0x665547['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1360ad,{id:_0x44d659})=>{_0x1360ad['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x44d659);},'isVisible':({plugins:_0x53377a},_0x3db497)=>!!_0x53377a['get'](d)['repository']['getLaterVisibleRevision'](_0x3db497['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2b451a},{id:_0xff2188,revisionNameView:_0x244f71})=>{const _0x1c8801=_0x2b451a['get'](d),_0x54e4a7=_0x1c8801['repository']['getEarlierVisibleRevision'](_0xff2188);_0x1c8801['compare'](_0xff2188,_0x54e4a7),_0x244f71['focus'](),_0x244f71['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x343667,_0x60effe){super(_0x343667),this['_view']=_0x60effe,this['_toolbarConfig']=ot(_0x343667['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0xa87b85){const _0x1a157c=this['editor'],_0x57baaf=this['view'],_0x1a259f=_0x1a157c['editing']['view'],_0x164511=_0x57baaf['editable'],_0x173130=_0x1a259f['document']['getRoot']();_0x164511['name']=_0x173130['rootName'],_0x57baaf['render']();const _0x5a79a4=_0x164511['element'];this['setEditableElement'](_0x164511['name'],_0x5a79a4),_0x57baaf['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1a259f['attachDomRoot'](_0x5a79a4),this['_elementReplacer']['replace'](_0xa87b85,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x58d71e=this['view'],_0x1bf060=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1bf060['detachDomRoot'](_0x58d71e['editable']['name']),_0x58d71e['destroy']();}['_initToolbar'](){const _0x3bcd60=this['view'];_0x3bcd60['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3bcd60['stickyPanel']['limiterElement']=_0x3bcd60['element'],_0x3bcd60['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3ec94d})=>_0x3ec94d),_0x3bcd60['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3bcd60['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x29be40,_0x2cbe61,_0x5de4be={}){super(_0x29be40),this['stickyPanel']=new ut(_0x29be40),this['toolbar']=new lt(_0x29be40,{'shouldGroupWhenFull':_0x5de4be['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x29be40,_0x2cbe61);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3007ba,_0x33c528){super(_0x33c528),this['sourceElement']=_0x3007ba,this['model']['document']['createRoot']();const _0x5979b1=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x5979b1);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xe1b0c4,_0x6fac28){const _0x308326=new this(_0xe1b0c4,_0x6fac28);return await _0x308326['initPlugins'](),await _0x308326['ui']['init'](_0xe1b0c4),await _0x308326['data']['init'](_0x308326['config']['get']('initialData')||''),_0x308326['fire']('ready'),_0x308326;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x2ced25{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xcb61d3){function _0xab6ec3(_0x41ae4f){return _0x41ae4f['map'](_0x51e7ac=>String['fromCharCode'](_0x51e7ac))['join']('');}super(_0xcb61d3),this['result']='end',_0xcb61d3[_0xab6ec3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xab6ec3([0x76,0x69,0x65,0x77])][_0xab6ec3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xab6ec3([0x61,0x75,0x74,0x6f]),_0xcb61d3[_0xab6ec3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xab6ec3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xab6ec3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xab6ec3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xab6ec3([0x6f,0x6b])});}}class k extends _0x2ced25{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x1eb76b){if(super(_0x1eb76b),!this['editor']['config']['get']('revisionHistory'))throw new _0x104baa('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x11f871=>this['_showRevisionViewer']({..._0x11f871,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x42a3db=>this['_closeRevisionViewer'](_0x42a3db)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x476c77=>this['_restoreRevision'](_0x476c77)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x348f1c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x348f1c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x180c81){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x180c81);}['getRevision'](_0x21f084){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x21f084);}['getRevisions'](_0x2e1cba){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2e1cba||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3086be=this['editor'],_0x45de7a=_0x1a5fc2(_0x3086be,p),_0x11676c=_0x3086be['plugins']['get']('RevisionTracker'),_0xdba109=_0x3086be['plugins']['get']('Users')['users'];return _0x45de7a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x45de7a['lazyRoots'],(_0x45de7a['plugins']['push'](bt,d,g,class extends _0x2ced25{static get['requires'](){return[d,'Users'];}['init'](){const _0x5ebd3c=this['editor']['plugins']['get']('Users');for(const _0x20f943 of _0xdba109)_0x20f943['isAnonymous']||_0x5ebd3c['getUser'](_0x20f943['id'])||_0x5ebd3c['addUser'](_0x20f943);const _0x3f3015=_0x11676c['repository']['getRevisions']();let _0x4106d2=null;const _0x34231a=this['editor']['plugins']['get']('RevisionViewer');_0x34231a['adapter']=_0x11676c['adapter'],_0x34231a['bind']('isEnabled')['to'](_0x11676c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3086be,'isReadOnly',_0x130324=>!_0x130324);for(const _0x473d03 of _0x3f3015){const _0x27bede=null===_0x473d03['creator'];if(_0x27bede&&_0x473d03['toVersion']===_0x473d03['fromVersion'])continue;const _0x15dccc=_0x473d03['toJSON']();_0x34231a['addRevisionData'](_0x15dccc,(_0x1bb0f9,_0x1d791a,_0x129830)=>{if(_0x27bede){if(_0x4106d2)_0x4106d2['_update'](_0x1bb0f9,_0x1d791a);else{if(!_0x1d791a){const _0x114d32=_0x129830['toJSON']();_0x114d32['id']=_0x23c2bf(),_0x11676c['saveRevision'](_0x114d32,_0x129830['toVersion'])['then'](_0x434aa7=>{_0x4106d2=_0x434aa7;});}}}else _0x473d03['_update'](_0x1bb0f9,_0x1d791a);});}}},w),_0x45de7a);}['_enhanceShowRevisionViewerCallback'](){const _0x4700fc=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x530a4f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1008fe=this['editor']['plugins']['get']('Autosave');await _0x1008fe['save']();}else await _0x530a4f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4bc8f7=this['editor']['plugins']['get']('Dialog');_0x4bc8f7['isOpen']&&_0x4bc8f7['hide']();}const _0x408309=this['_getRevisionViewerEditorConfig']();return _0x4700fc(_0x408309)['then'](_0x1e3c1f=>{return(this['_viewerEditor']=_0x1e3c1f,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1e3c1f;})['catch'](_0x30e044=>(console['error'](_0x30e044),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x425b98=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x425b98(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x23927f=this['editor']['plugins']['get']('Annotations');_0x23927f['refreshVisibility'](),_0x23927f['refreshPositioning']();}})));}['_showRevisionViewer'](_0x31c379){const _0x3237e2=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2abfeb=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5c685b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x5c685b,_0x31c379)['then'](_0x403935=>(_0x2abfeb['style']['display']='block',_0x3237e2['style']['display']='none',_0x403935));}['_closeRevisionViewer'](_0xa39579){const _0x3895d3=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3895d3['style']['display']='',_0xa39579['destroy']();}async['_restoreRevision'](_0xd48a0e){const _0x30c69c=this['editor'],_0x1f7c8b=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x27f2f6=_0x30c69c['plugins']['get']('RevisionTracker'),_0x7a9097=_0x1f7c8b['repository']['getRevision'](_0xd48a0e);let _0xa88f63,_0x543589,_0x59bc2a;try{_0xa88f63=await _0x1f7c8b['getRevisionData'](_0x7a9097),_0x543589=await _0x1f7c8b['getRevisionRootsAttributes'](_0x7a9097);}catch(_0x4ca582){return void console['error'](_0x4ca582);}_0x30c69c['model']['change'](_0x56c027=>{for(const _0x358f57 of Array['from'](_0x30c69c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x56c027['removeMarker'](_0x358f57);}),_0x1f7c8b['isReady']=!0x1,_0x30c69c['model']['enqueueChange'](_0x385004=>{_0x385004['setSelection'](null),_0x385004['removeSelectionAttribute'](_0x30c69c['model']['document']['selection']['getAttributeKeys']());const _0x48c377=Object['keys'](_0xa88f63);for(const _0x2f386d of _0x30c69c['model']['document']['roots'])'$graveyard'!=_0x2f386d['rootName']&&_0x2f386d['isAttached']()&&!_0x48c377['includes'](_0x2f386d['rootName'])&&_0x385004['detachRoot'](_0x2f386d);for(const _0x554f9d of _0x48c377){let _0x5d34f9=_0x30c69c['model']['document']['getRoot'](_0x554f9d);_0x5d34f9&&_0x5d34f9['isAttached']()||(_0x5d34f9=_0x385004['addRoot'](_0x554f9d));const _0x330561=_0x543589[_0x554f9d],_0x24f19b=Object['keys'](_0x330561),_0x467ff=_0xa88f63[_0x554f9d];for(const _0x23b654 of _0x5d34f9['getAttributeKeys']())_0x24f19b['includes'](_0x23b654)||_0x385004['removeAttribute'](_0x23b654,_0x5d34f9);for(const _0x211a8c of _0x24f19b)_0x385004['setAttribute'](_0x211a8c,_0x543589[_0x554f9d][_0x211a8c],_0x5d34f9);_0x385004['remove'](_0x385004['createRangeIn'](_0x5d34f9)),_0x385004['insert'](_0x30c69c['data']['parse'](_0x467ff,_0x5d34f9),_0x5d34f9,0x0);}});const _0x4acb1b=m(_0x30c69c['locale'],'Restored');if(_0x7a9097['name'])_0x59bc2a=-0x1==_0x7a9097['name']['indexOf'](_0x4acb1b)?_0x4acb1b+':\x20'+_0x7a9097['name']:_0x7a9097['name'];else _0x59bc2a=_0x4acb1b+':\x20'+(_0x7a9097['createdAt']['toLocaleDateString'](_0x30c69c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x7a9097['createdAt']['toLocaleTimeString'](_0x30c69c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x27f2f6['saveRevision']({'name':_0x59bc2a}),_0x1f7c8b['isReady']=!0x0,_0x30c69c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};