@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241213.0 → 0.0.0-nightly-20241214.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +8 -8
  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 _0x6ba935,uid as _0x34c6ad,Collection as _0x4cc07d,logWarning as _0x423101,FocusTracker as _0x23fc60,KeystrokeHandler as _0x39629e,scrollViewportToShowTarget as _0x276e18,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x506ec3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x315ac7,set as _0x12174a,unset as _0x4e20da,isEqual as _0x14c2d4}from'lodash-es';import{Plugin as _0x212b78,PendingActions as _0x3b4d5a,icons as _0x327ed7,Command as _0x3b1bfe,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5f0bf6,getMarkerDomElement as _0xbdfbf2,ConfirmMixin as _0xda0cd5,sanitizeEditorConfig as _0x4eff1c}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x3d27d9,ViewText as _0x3812af,ViewElement as _0x27385a,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x4bf35c,ViewAttributeElement as _0x3e2abd,ViewEmptyElement as _0x4b8dad,ViewRawElement as _0x5416a7,ViewUIElement as _0x2dea23,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x3848c5,submitHandler as _0x2f2870,LabeledFieldView as _0x176f9e,createLabeledInputText as _0x20cf4d,createDropdown as _0xcdad56,ListView as _0x30fe7f,ListItemView as _0x2bea9b,ButtonView as te,MenuBarMenuView as _0x357584,MenuBarMenuListView as _0x36c1a0,MenuBarMenuListItemView as _0x2b0dca,MenuBarMenuListItemButtonView as _0x5797ff,ContextualBalloon as _0x5355f9,ToolbarSeparatorView as _0x2902ac,IconView as _0x4ff77b,addListToDropdown as to,ViewModel as _0x5f0624,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x30157e}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x6ba935(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2480b7){super(),this['id']=_0x2480b7['id']||_0x34c6ad(),this['creator']=_0x2480b7['creator']||null,this['authors']=_0x2480b7['authors']||[],this['diffData']=_0x2480b7['diffData']||null,this['toVersion']=_0x2480b7['toVersion']||0x0,this['fromVersion']=_0x2480b7['fromVersion']||0x0,this['set']('name',_0x2480b7['name']||''),this['set']('createdAt',_0x2480b7['createdAt']||new Date()),this['set']('attributes',_0x2480b7['attributes']||{});}['setName'](_0x472313){this['_update']({'name':_0x472313});}['setAttribute'](_0x5222bb,_0x9cedbd){const _0x226994=_0x315ac7(this['attributes']);_0x12174a(_0x226994,_0x5222bb,_0x9cedbd),this['_update']({'attributes':_0x226994});}['removeAttribute'](_0x4651e9){const _0x59a58a=_0x315ac7(this['attributes']);_0x4e20da(_0x59a58a,_0x4651e9),this['_update']({'attributes':_0x59a58a});}['_update'](_0x53e1ae,_0x334016=!0x1){let _0xf0179e=!0x1;const _0x437c47={'id':this['id']},_0x5016c6=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x698240 of _0x5016c6){const _0x1dcbc8=_0x53e1ae[_0x698240];void 0x0!==_0x1dcbc8&&_0x1dcbc8!==this[_0x698240]&&(this[_0x698240]=_0x1dcbc8,_0x437c47[_0x698240]=_0x1dcbc8,_0xf0179e=!0x0);}_0xf0179e&&(_0x437c47['authors']&&(_0x437c47['authorsIds']=_0x437c47['authors']['map'](_0x1835b0=>_0x1835b0['id']),delete _0x437c47['authors']),this['fire']('_update',_0x437c47,_0x334016));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2ae4b9=>_0x2ae4b9['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x212b78{['_revisions'];static get['requires'](){return[_0x5f0bf6];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2b85a8){super(_0x2b85a8),this['_revisions']=new _0x4cc07d();}['afterInit'](){!async function(_0x276a3e){const _0x4a6b1b=_0x18f0c0([0x7a,0x5a,0x59,0x45,0x70,0x6e,0x47,0x42,0x61,0x4b,0x75,0x35,0x49,0x63,0x4e,0x39,0x65,0x56,0x38,0x32,0x41,0x52,0x76,0x30,0x66,0x50,0x54,0x51,0x72,0x6f,0x37,0x77,0x44,0x62,0x34,0x67,0x4f,0x58,0x36,0x79,0x71,0x73,0x6b,0x55,0x68,0x53,0x69,0x46,0x57,0x31,0x4c,0x6c,0x4a,0x6d,0x78,0x33,0x43,0x48,0x6a,0x64,0x74,0x4d]),_0x239d0a=0xeb829,_0x100f8a=0x32a472f8,_0x38cc25=0x32a32b68^_0x100f8a,_0xa276f8=window[_0x18f0c0([0x44,0x61,0x74,0x65])][_0x18f0c0([0x6e,0x6f,0x77])](),_0x27b7a5=_0x276a3e[_0x18f0c0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1456c2=new window[(_0x18f0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x599f1f=>{_0x27b7a5[_0x18f0c0([0x6f,0x6e,0x63,0x65])](_0x18f0c0([0x72,0x65,0x61,0x64,0x79]),_0x599f1f);}),_0x3dab30={[_0x18f0c0([0x6b,0x74,0x79])]:_0x18f0c0([0x45,0x43]),[_0x18f0c0([0x75,0x73,0x65])]:_0x18f0c0([0x73,0x69,0x67]),[_0x18f0c0([0x63,0x72,0x76])]:_0x18f0c0([0x50,0x2d,0x32,0x35,0x36]),[_0x18f0c0([0x78])]:_0x18f0c0([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]),[_0x18f0c0([0x79])]:_0x18f0c0([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]),[_0x18f0c0([0x61,0x6c,0x67])]:_0x18f0c0([0x45,0x53,0x32,0x35,0x36])},_0x4ffb82=_0x27b7a5[_0x18f0c0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x18f0c0([0x67,0x65,0x74])](_0x18f0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f7055(){let _0x200f6b,_0x3ab4ea=null,_0x58f2b4=null;try{if(_0x4ffb82==_0x18f0c0([0x47,0x50,0x4c]))return _0x18f0c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x200f6b=_0x3c922f(),!_0x200f6b)return _0x18f0c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x200f6b[_0x18f0c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x58f2b4=_0x4047e0(_0x200f6b[_0x18f0c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x200f6b[_0x18f0c0([0x6a,0x74,0x69])])),await _0x103f12()?_0x1374a9()?_0x4373e3()?_0x18f0c0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x393a38()?(_0x200f6b[_0x18f0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18f0c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3ab4ea=_0x2b64cc(_0x18f0c0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x200f6b[_0x18f0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18f0c0([0x74,0x72,0x69,0x61,0x6c])&&(_0x3ab4ea=_0x2b64cc(_0x18f0c0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x200f6b[_0x18f0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18f0c0([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x3ab4ea=_0x2b64cc(_0x18f0c0([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x145e45()):_0x18f0c0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x18f0c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x18f0c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x68da49){return _0x18f0c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4373e3(){const _0x33566e=[_0x18f0c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x18f0c0([0x74,0x72,0x69,0x61,0x6c])][_0x18f0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x200f6b[_0x18f0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa276f8/0x3e8:0xe10*_0x38cc25;return _0x200f6b[_0x18f0c0([0x65,0x78,0x70])]<_0x33566e;}function _0x1374a9(){const _0x3301de=_0x200f6b[_0x18f0c0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3301de)return!0x1;if(_0x3301de[_0x18f0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18f0c0([0x2a])))return!0x0;if(_0x3301de[_0x18f0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18f0c0([0x52,0x48])))return!0x0;if(_0x3301de[_0x18f0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18f0c0([0x52,0x52,0x48]))){if(_0x50c410())return!0x0;if(_0x1440d3()||_0x87bf7f())return!0x0;}return!0x1;}function _0x393a38(){const _0x3b6b23=_0x200f6b[_0x18f0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b6b23||0x0==_0x3b6b23[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a468b}=new URL(window[_0x18f0c0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b6b23[_0x18f0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a468b))return!0x0;const _0x5ac0c4=_0x4a468b[_0x18f0c0([0x73,0x70,0x6c,0x69,0x74])](_0x18f0c0([0x2e]));return _0x3b6b23[_0x18f0c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ab7b9=>_0x3ab7b9[_0x18f0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18f0c0([0x2a])))[_0x18f0c0([0x6d,0x61,0x70])](_0x4440d1=>_0x4440d1[_0x18f0c0([0x73,0x70,0x6c,0x69,0x74])](_0x18f0c0([0x2e])))[_0x18f0c0([0x73,0x6f,0x6d,0x65])](_0x5da780=>_0x5ac0c4[_0x18f0c0([0x65,0x76,0x65,0x72,0x79])]((_0xb4919a,_0x419955)=>_0x5da780[_0x419955]===_0xb4919a||_0x5da780[_0x419955]===_0x18f0c0([0x2a])));}function _0x145e45(){return _0x3ab4ea&&_0x58f2b4?new window[(_0x18f0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a460c,_0xaae696)=>{_0x3ab4ea[_0x18f0c0([0x74,0x68,0x65,0x6e])](_0x5a460c,_0xaae696),_0x58f2b4[_0x18f0c0([0x74,0x68,0x65,0x6e])](_0x19c5b2=>{_0x19c5b2!=_0x18f0c0([0x56,0x61,0x6c,0x69,0x64])&&_0x5a460c(_0x19c5b2);},_0xaae696);}):_0x3ab4ea||_0x58f2b4||_0x18f0c0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4047e0(_0x31f44f,_0x520f45){return new window[(_0x18f0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf3dd3e=>{if(_0x8127a7())return _0xf3dd3e(_0x18f0c0([0x56,0x61,0x6c,0x69,0x64]));_0xd0735f(),_0x27b7a5[_0x18f0c0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x18f0c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x209248=!0x1;const _0x4d47e8=_0x34c6ad();function _0x2b0e32(_0x1294a5){return!!_0x1294a5&&(typeof _0x1294a5===_0x18f0c0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1294a5===_0x18f0c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1294a5[_0x18f0c0([0x74,0x68,0x65,0x6e])]===_0x18f0c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1294a5[_0x18f0c0([0x63,0x61,0x74,0x63,0x68])]===_0x18f0c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e43be(_0x51245d){_0x20fbd0(_0x51245d)[_0x18f0c0([0x74,0x68,0x65,0x6e])](_0x32ee64=>{if(!_0x32ee64||_0x32ee64[_0x18f0c0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x18f0c0([0x6f,0x6b]))return _0x18f0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ed467(_0x53a618(_0x4d47e8+_0x520f45))!=_0x32ee64[_0x18f0c0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x18f0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x18f0c0([0x56,0x61,0x6c,0x69,0x64]);})[_0x18f0c0([0x74,0x68,0x65,0x6e])](_0x4df018=>(_0x2a8d74(),_0x4df018),()=>{const _0x3f4baf=_0x470789();return null==_0x3f4baf?(_0x2a8d74(),_0x18f0c0([0x56,0x61,0x6c,0x69,0x64])):_0x18f0c0(_0xa276f8-_0x3f4baf>(0x16a8f6f8^_0x100f8a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x18f0c0([0x74,0x68,0x65,0x6e])](_0xf3dd3e)[_0x18f0c0([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf3dd3e(_0x18f0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x251ebb=0x32929c78^_0x100f8a;function _0x2a8d74(){const _0x15834c=_0x18f0c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ed467(_0x53a618(_0x31f44f)),_0x4bbe30=_0xb33b23(_0x1ed467(window[_0x18f0c0([0x4d,0x61,0x74,0x68])][_0x18f0c0([0x63,0x65,0x69,0x6c])](_0xa276f8/_0x251ebb)));window[_0x18f0c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18f0c0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15834c,_0x4bbe30);}function _0x470789(){const _0x2aa096=_0x18f0c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ed467(_0x53a618(_0x31f44f)),_0xd616f9=window[_0x18f0c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18f0c0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2aa096);return _0xd616f9?window[_0x18f0c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb33b23(_0xd616f9),0x10)*_0x251ebb:null;}function _0x20fbd0(_0x12fb61){return new window[(_0x18f0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18f66a,_0x54553c)=>{_0x12fb61[_0x18f0c0([0x74,0x68,0x65,0x6e])](_0x18f66a,_0x54553c),window[_0x18f0c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54553c,0x32a5a638^_0x100f8a);});}}_0x27b7a5[_0x18f0c0([0x6f,0x6e])](_0x18f0c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf2ee9d,_0x13c1e9)=>{if(_0x13c1e9[0x0]!=_0x31f44f)return _0xf3dd3e(_0x18f0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13c1e9[0x1]={..._0x13c1e9[0x1],[_0x18f0c0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d47e8};},{[_0x18f0c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18f0c0([0x68,0x69,0x67,0x68])}),_0x27b7a5[_0x18f0c0([0x6f,0x6e])](_0x18f0c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14fac3=>{_0x2b0e32(_0x14fac3[_0x18f0c0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x209248=!0x0,_0x2e43be(_0x14fac3[_0x18f0c0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x18f0c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18f0c0([0x6c,0x6f,0x77])}),_0x1456c2[_0x18f0c0([0x74,0x68,0x65,0x6e])](()=>{_0x209248||_0xf3dd3e(_0x18f0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8127a7(){return _0x27b7a5[_0x18f0c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18f0c0([0x76,0x69,0x65,0x77])][_0x18f0c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x18f0c0([0x61,0x75,0x74,0x6f]);}function _0xd0735f(){_0x27b7a5[_0x18f0c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18f0c0([0x76,0x69,0x65,0x77])][_0x18f0c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18f0c0([0x61,0x75,0x74,0x6f]);}}function _0x2b64cc(_0xe5b55d){const _0x4f4651=[new window[(_0x18f0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x218814=>setTimeout(_0x218814,0x32ad4c34^_0x100f8a)),_0x1456c2[_0x18f0c0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x18f0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15a9fd=>{const _0x25ea4e=0x32a472ff^_0x100f8a,_0x2aaee4=_0x276a3e[_0x18f0c0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x14af2d(){_0x2aaee4[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x25ea4e&&_0x15a9fd();}_0x14af2d(),_0x2aaee4[_0x18f0c0([0x6f,0x6e])](_0x18f0c0([0x61,0x64,0x64]),_0x14af2d);})),new window[(_0x18f0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d1c52=>{function _0x1bc81e(){for(const _0x52c79a in window)if(window[_0x18f0c0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x18f0c0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x52c79a))&&window[_0x52c79a]==_0x239d0a)return _0x2d1c52();_0x27b7a5[_0x18f0c0([0x73,0x74,0x61,0x74,0x65])]!=_0x18f0c0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x18f0c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1bc81e,0x32a46170^_0x100f8a);}_0x34ef1b(_0x18f0c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1bc81e();})];return window[_0x18f0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18f0c0([0x72,0x61,0x63,0x65])](_0x4f4651)[_0x18f0c0([0x74,0x68,0x65,0x6e])](()=>_0xe5b55d);}async function _0x54ac9f(){if(await _0x1456c2,_0x34ef1b(_0x18f0c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3aa8ed=_0x276a3e[_0x18f0c0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3df9ed=_0x276a3e[_0x18f0c0([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])](_0x3aa8ed[_0x18f0c0([0x69,0x64])]),_0x4cc9e7=_0x4d3b77(_0x18f0c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4cc9e7[_0x18f0c0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3aa8ed['id'],_0x3df9ed?_0x3df9ed['id']:null,!0x0),_0x4cc9e7[_0x18f0c0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x18f0c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4cc9e7[_0x18f0c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4cc9e7[_0x18f0c0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x78dfd4,void(_0x4cc9e7[_0x18f0c0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x78dfd4);}if(_0x34ef1b(_0x18f0c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2d111d=_0x4d3b77(_0x18f0c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2d111d[_0x18f0c0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x18f0c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2d111d[_0x18f0c0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2d111d[_0x18f0c0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x78dfd4,_0x2d111d[_0x18f0c0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x78dfd4;}_0x27b7a5[_0x18f0c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x18f0c0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x78dfd4,_0x27b7a5[_0x18f0c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x18f0c0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x78dfd4,_0x27b7a5[_0x18f0c0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x18f0c0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x50c410(){return _0x34ef1b(_0x18f0c0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4d3b77(_0x18f0c0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x18f0c0([0x73,0x74,0x61,0x74,0x65])]==_0x18f0c0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1440d3(){return _0x34ef1b(_0x18f0c0([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 _0x87bf7f(){return _0x34ef1b(_0x18f0c0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1dcd86(_0x3aa704){const _0x295906=_0x21139b();_0x27b7a5[_0x295906]=_0x18f0c0([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])+_0x3aa704,_0x3aa704[_0x18f0c0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x18f0c0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x21139b()]=_0x239d0a),_0x3aa704!=_0x18f0c0([0x56,0x61,0x6c,0x69,0x64])&&_0x54ac9f();}function _0x21139b(){const _0x373732=window[_0x18f0c0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x18f0c0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x18f0c0([0x6e,0x6f,0x77])]())[_0x18f0c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x18f0c0([0x2e]),'');let _0x45df03=_0x18f0c0([0x7a]);for(let _0xb0137d=0x0;_0xb0137d<_0x373732[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb0137d+=0x2){let _0x55136f=window[_0x18f0c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x373732[_0x18f0c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb0137d,_0xb0137d+0x2));_0x55136f>=_0x4a6b1b[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55136f-=_0x4a6b1b[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45df03+=_0x4a6b1b[_0x55136f];}return _0x45df03;}function _0x3c922f(){const _0x3b58d4=_0x4ffb82[_0x18f0c0([0x73,0x70,0x6c,0x69,0x74])](_0x18f0c0([0x2e]));if(0x3!=_0x3b58d4[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58da87(_0x3b58d4[0x1]);function _0x58da87(_0x34b567){const _0x581860=_0x510fb1(_0x34b567);return _0x581860&&_0x3aee0c()?_0x581860:null;function _0x3aee0c(){const _0x1a6d78=_0x581860[_0x18f0c0([0x6a,0x74,0x69])],_0x3a535c=window[_0x18f0c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a6d78[_0x18f0c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a6d78[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x27754e={..._0x581860,[_0x18f0c0([0x6a,0x74,0x69])]:_0x1a6d78[_0x18f0c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a6d78[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x27754e[_0x18f0c0([0x76,0x63])],_0x53a618(_0x27754e)==_0x3a535c;}}}async function _0x103f12(){let _0x2c9399=!0x0;try{const _0x1a36c1=_0x4ffb82[_0x18f0c0([0x73,0x70,0x6c,0x69,0x74])](_0x18f0c0([0x2e])),[_0x2098a4,_0x29eb87,_0x3d1801]=_0x1a36c1;return _0x4124fe(_0x2098a4),await _0x54f69d(_0x2098a4,_0x29eb87,_0x3d1801),_0x2c9399;}catch(_0x43a549){return!0x1;}function _0x4124fe(_0x3ed1bb){const _0x3c7e80=_0x510fb1(_0x3ed1bb);_0x3c7e80&&_0x3c7e80[_0x18f0c0([0x61,0x6c,0x67])]==_0x18f0c0([0x45,0x53,0x32,0x35,0x36])||(_0x2c9399=!0x1);}async function _0x54f69d(_0x2389a6,_0x4f3436,_0x3745a0){const _0x1e8e4d=window[_0x18f0c0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x18f0c0([0x66,0x72,0x6f,0x6d])](_0xed620(_0x3745a0),_0x564a99=>_0x564a99[_0x18f0c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b0b71=new window[(_0x18f0c0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x18f0c0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2389a6+_0x18f0c0([0x2e])+_0x4f3436),_0x330232=window[_0x18f0c0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x18f0c0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x330232)return;const _0x5a9d56=await _0x330232[_0x18f0c0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x18f0c0([0x6a,0x77,0x6b]),_0x3dab30,{[_0x18f0c0([0x6e,0x61,0x6d,0x65])]:_0x18f0c0([0x45,0x43,0x44,0x53,0x41]),[_0x18f0c0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x18f0c0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x18f0c0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x330232[_0x18f0c0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x18f0c0([0x6e,0x61,0x6d,0x65])]:_0x18f0c0([0x45,0x43,0x44,0x53,0x41]),[_0x18f0c0([0x68,0x61,0x73,0x68])]:{[_0x18f0c0([0x6e,0x61,0x6d,0x65])]:_0x18f0c0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a9d56,_0x1e8e4d,_0x5b0b71)||(_0x2c9399=!0x1);}}function _0x510fb1(_0x479efd){return _0x479efd[_0x18f0c0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x18f0c0([0x65,0x79]))?JSON[_0x18f0c0([0x70,0x61,0x72,0x73,0x65])](_0xed620(_0x479efd)):null;}function _0xed620(_0x292305){return window[_0x18f0c0([0x61,0x74,0x6f,0x62])](_0x292305[_0x18f0c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x18f0c0([0x2b]))[_0x18f0c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x18f0c0([0x2f])));}function _0x53a618(_0x550003){let _0x12ca5f=0x1505;function _0x397fab(_0x27b176){for(let _0x40ffdd=0x0;_0x40ffdd<_0x27b176[_0x18f0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40ffdd++){const _0x3eb8ab=_0x27b176[_0x18f0c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40ffdd);_0x12ca5f=(_0x12ca5f<<0x5)+_0x12ca5f+_0x3eb8ab,_0x12ca5f&=_0x12ca5f;}}function _0x5d4eda(_0x47775e){Array[_0x18f0c0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47775e)?_0x47775e[_0x18f0c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d4eda):_0x47775e&&typeof _0x47775e==_0x18f0c0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x18f0c0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47775e)[_0x18f0c0([0x73,0x6f,0x72,0x74])]()[_0x18f0c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d61c0,_0x1c2479])=>{_0x397fab(_0x1d61c0),_0x5d4eda(_0x1c2479);}):_0x397fab(window[_0x18f0c0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47775e));}return _0x5d4eda(_0x550003),_0x12ca5f>>>0x0;}function _0x1ed467(_0x1368d2){return _0x1368d2[_0x18f0c0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x18f0c0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x18f0c0([0x30]));}function _0xb33b23(_0x10ba89){return _0x10ba89[_0x18f0c0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x18f0c0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x18f0c0([0x6a,0x6f,0x69,0x6e])]('');}function _0x34ef1b(_0xfec14e){return _0x27b7a5[_0x18f0c0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x18f0c0([0x68,0x61,0x73])](_0xfec14e);}function _0x4d3b77(_0x20d6a7){return _0x27b7a5[_0x18f0c0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x18f0c0([0x67,0x65,0x74])](_0x20d6a7);}function _0x78dfd4(){}function _0x18f0c0(_0x284c12){return _0x284c12['map'](_0x1ab594=>String['fromCharCode'](_0x1ab594))['join']('');}_0x1dcd86(await _0x3f7055());}(this);}['createRevision'](_0x30787d){const _0x1f5355=this['editor']['plugins']['get']('Users');return new a({'id':_0x30787d['id'],'name':_0x30787d['name'],'creator':_0x30787d['creatorId']?_0x1f5355['getUser'](_0x30787d['creatorId']):null,'diffData':_0x30787d['diffData']||_0x30787d['data'],'authors':_0x30787d['authorsIds']['map'](_0x1a1884=>_0x1f5355['getUser'](_0x1a1884)),'createdAt':new Date(_0x30787d['createdAt']),'attributes':_0x30787d['attributes'],'fromVersion':_0x30787d['fromVersion'],'toVersion':_0x30787d['toVersion']});}['addRevision'](_0x19780a,_0x4e47e0=0x0){this['_revisions']['add'](_0x19780a,_0x4e47e0);}['getRevision'](_0x1ed190){return this['_revisions']['get'](_0x1ed190);}['getRevisions'](_0x24d7cb={'toJSON':!0x1}){const _0x1af0de=Array['from'](this['_revisions']);return _0x1af0de['reverse'](),_0x24d7cb['toJSON']?_0x1af0de['map'](_0xd699f1=>_0xd699f1['toJSON']()):_0x1af0de;}['getIndex'](_0x3a0af4){return this['_revisions']['getIndex'](_0x3a0af4);}['getEarlierVisibleRevision'](_0x15620c){const [,_0x58efe3]=this['getRevisionsIterator'](_0x15620c,{'direction':'earlier'});return _0x58efe3;}['getLaterVisibleRevision'](_0x4e2dc0){const [,_0x439981]=this['getRevisionsIterator'](_0x4e2dc0,{'direction':'later'});return _0x439981;}['getRevisionsInDiff'](_0x1f27c3){const _0x5ea480=[];for(const _0x59301f of this['getRevisionsIterator'](_0x1f27c3['newRevisionId']))if(_0x5ea480['push'](_0x59301f),_0x59301f['id']===_0x1f27c3['oldRevisionId'])break;return _0x5ea480;}*['getRevisionsIterator'](_0x1cd9db,{direction:_0x47fc1a='earlier',filter:_0x37be88=()=>!0x0}={}){const _0x113a48='earlier'===_0x47fc1a?0x1:-0x1;let _0x7e40a4=this['_revisions']['get'](_0x1cd9db),_0x30f05c=this['getIndex'](_0x7e40a4);for(yield _0x7e40a4;_0x7e40a4;){if(_0x30f05c+=_0x113a48,_0x7e40a4=this['getRevision'](_0x30f05c),!_0x7e40a4)return;_0x37be88(_0x7e40a4)&&(yield _0x7e40a4);}}}function R(_0x77f5a,_0x4777f3,_0x4fe3fb){const t=_0x77f5a['t'];switch(_0x4777f3){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'},_0x4fe3fb);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4fe3fb);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 C={'c':_0x4bf35c,'a':_0x3e2abd,'e':_0x4b8dad,'r':_0x5416a7,'u':_0x2dea23};class l extends _0x212b78{['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[_0x5f0bf6,j,_0x3b4d5a];}constructor(_0x562042){super(_0x562042),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3f6c00=_0x34c6ad();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3f6c00},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 _0x43c164=this['repository']['getRevision'](0x0),_0x8362ea=_0x43c164&&null===_0x43c164['creator']?_0x43c164:null;if(this['_continueCurrentRevision']=!!_0x8362ea&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x47a835=this['_source']['getCurrentRevisionId'](),_0x299b24=this['repository']['getRevision'](_0x47a835);if(_0x299b24)this['_startingVersion']=_0x299b24['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x49f908=this['_source']['history']['_operations']['find'](_0x4c5fd0=>!_0x4c5fd0['_isInit']),_0x5e8093=_0x49f908?_0x49f908['baseVersion']:this['_source']['history']['version'];_0x43c164?(_0x43c164['toVersion']<_0x5e8093&&_0x43c164['_update']({'toVersion':_0x5e8093}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x8362ea['id'],this['_startingVersion']=_0x8362ea['fromVersion']):(this['_startingVersion']=_0x43c164['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5e8093,this['_continueCurrentRevision']=!0x1);}}else _0x8362ea&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x8362ea['toVersion'],this['editor']['model']['document']['history']['version']),_0x8362ea['fromVersion']===_0x8362ea['toVersion']?(0x0!==_0x8362ea['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x8362ea['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x8362ea['id'],this['_startingVersion']=_0x8362ea['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',_0x52e4db=>!_0x52e4db),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5701fc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a81bb;for(const _0x5244f7 in _0x5701fc){const _0x44b516=_0x5244f7,_0x86348=_0x5701fc[_0x44b516];if('revisionHistoryLicenseKeyValid'==_0x86348||'revisionHistoryLicenseKeyInvalid'==_0x86348||'revisionHistoryLicenseKeyExpired'==_0x86348||'revisionHistoryLicenseKeyDomainLimit'==_0x86348||'revisionHistoryLicenseKeyNotAllowed'==_0x86348||'revisionHistoryLicenseKeyEvaluationLimit'==_0x86348||'revisionHistoryLicenseKeyTrialLimit'==_0x86348||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x86348||'revisionHistoryLicenseKeyUsageLimit'==_0x86348){delete _0x5701fc[_0x44b516],_0x4a81bb=_0x86348,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4a81bb&&_0x5701fc['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4a81bb&&_0x5701fc['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4a81bb&&_0x5701fc['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4a81bb&&_0x5701fc['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4a81bb&&_0x5701fc['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4a81bb&&_0x5701fc['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4a81bb&&_0x5701fc['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4a81bb&&_0x5701fc['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3ddbf2=this['repository']['getRevision'](0x0),_0x22e669=await this['getRevisionDocumentData'](_0x3ddbf2),_0x45c910=await this['getRevisionRootsAttributes'](_0x3ddbf2);this['_replaceEditorDataWithRevisionData'](_0x22e669,_0x45c910);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x17d6b3){this['_source']=_0x17d6b3;}async['update'](){const _0x170241=await this['_source']['getLatestVersion']();if(_0x170241>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4d9699=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x170241});_0x4d9699['authors']=_0x4d9699['authorsIds']['map'](_0x2203b9=>this['editor']['plugins']['get']('Users')['getUser'](_0x2203b9)),this['currentRevision']['_update'](_0x4d9699);}}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'](_0x98c227={},_0x31f332=null){const _0x240c77=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x31f332>this['currentRevision']['toVersion']&&(_0x31f332=null),null===_0x31f332&&(_0x31f332=await this['_source']['getLatestVersion']());const _0x28e4cd=this['_getFromVersion'](_0x31f332),_0x34b223=this['buildRevisionData']({'from':_0x28e4cd,'to':_0x31f332});if(this['currentRevision']['toVersion']<_0x31f332){const _0x381f90=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x31f332,'to':_0x31f332});_0x381f90['authors']=[],_0x381f90['authorsIds']=[],_0x381f90['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x381f90,!0x0),delete _0x381f90['authors'],_0x240c77['push'](_0x381f90);}_0x98c227['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x98c227['name']=_0x98c227['name']||null,_0x98c227['id']=_0x98c227['id']||_0x34c6ad(),_0x98c227={..._0x98c227,..._0x34b223};const _0x2493ae=this['addRevisionData'](_0x98c227);_0x240c77['push'](_0x98c227);const _0x22290f=this['repository']['getIndex'](_0x2493ae);if(0x0!==_0x22290f){const _0x43a00e=this['repository']['getRevision'](_0x22290f-0x1);if(_0x43a00e['fromVersion']!==_0x31f332){const _0x42bcdf=this['_revisionDataBuilder']['getData'](_0x31f332,_0x43a00e['toVersion']),_0x3bbb1c={'id':_0x43a00e['id'],'diffData':_0x42bcdf['diffData'],'authorsIds':_0x42bcdf['authorsIds'],'authors':_0x42bcdf['authorsIds']['map'](_0x53186e=>this['editor']['plugins']['get']('Users')['getUser'](_0x53186e)),'fromVersion':_0x31f332};_0x43a00e===this['currentRevision']&&(_0x3bbb1c['createdAt']=new Date(_0x98c227['createdAt']['getTime']()+0xa)),_0x43a00e['_update'](_0x3bbb1c,!0x0),delete _0x3bbb1c['authors'],_0x240c77['push'](_0x3bbb1c);}}if(this['adapter']){for(const _0x19e670 of _0x240c77)this['_bufferUpdate'](_0x19e670['id'],_0x19e670,!0x0);this['sendBufferedUpdates']();}return _0x2493ae;}['addRevisionData'](_0x4b2cea){const _0x1686ff=this['repository']['createRevision'](_0x4b2cea);return this['adapter']&&_0x1686ff['on']('_update',(_0x3f24f6,_0x2ad8a9,_0x467cf4)=>{_0x467cf4||(this['_bufferUpdate'](_0x2ad8a9['id'],_0x2ad8a9,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1686ff,this['_findInsertionIndex'](_0x1686ff)),_0x1686ff;}async['getRevisionDocumentData'](_0x4c2e30){await this['_loadRevisionData'](_0x4c2e30);const _0x1ca1b3={};for(const _0x334156 in _0x4c2e30['diffData']){if(_0x4c2e30['diffData'][_0x334156]['attachChange']&&!_0x4c2e30['diffData'][_0x334156]['attachChange']['isAttached'])continue;const _0x289001=this['_removeRevisionMarkers'](JSON['parse'](_0x4c2e30['diffData'][_0x334156]['insertions'])),_0x219678=this['editor']['editing']['view']['document'],_0x1a3707=new _0x3d27d9(_0x219678,_0x289001['map'](_0x3c47e4=>V(_0x3c47e4,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x1ca1b3[_0x334156]=this['editor']['data']['processor']['toData'](_0x1a3707),this['editor']['data']['processor']['useFillerType']('default');}return _0x1ca1b3;}async['getRevisionRootsAttributes'](_0x169c17){await this['_loadRevisionData'](_0x169c17);const _0x474348={};for(const _0x41e7ff in _0x169c17['diffData'])_0x169c17['diffData'][_0x41e7ff]['attachChange']&&!_0x169c17['diffData'][_0x41e7ff]['attachChange']['isAttached']||(_0x474348[_0x41e7ff]=_0x169c17['diffData'][_0x41e7ff]['attributesAfter']||{});return _0x474348;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2d5ee4=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3be0eb=0x0;_0x3be0eb<_0x2d5ee4['length'];_0x3be0eb++){const _0x5ad4c1=_0x2d5ee4[_0x3be0eb];let _0x5403a6=!0x1;for(const _0x481bdc of Object['keys'](_0x5ad4c1))void 0x0===_0x5ad4c1[_0x481bdc]?delete _0x5ad4c1[_0x481bdc]:'id'!==_0x481bdc&&(_0x5403a6=!0x0);_0x5403a6||(_0x2d5ee4[_0x3be0eb]=null);}if(_0x2d5ee4=_0x2d5ee4['filter'](_0x47154e=>null!==_0x47154e),!_0x2d5ee4['length'])return;for(let _0x51f194=0x0;_0x51f194<_0x2d5ee4['length'];_0x51f194++){const _0x4f5fc3=_0x2d5ee4[_0x51f194];void 0x0!==_0x4f5fc3['fromVersion']&&void 0x0===_0x4f5fc3['toVersion']&&(_0x4f5fc3['toVersion']=this['repository']['getRevision'](_0x4f5fc3['id'])['toVersion']),void 0x0!==_0x4f5fc3['toVersion']&&void 0x0===_0x4f5fc3['fromVersion']&&(_0x4f5fc3['fromVersion']=this['repository']['getRevision'](_0x4f5fc3['id'])['fromVersion']);}const _0x40d4fb=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2d5ee4,_0x40d4fb)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x38a1cd=>{if(_0x38a1cd){for(const _0x552a0d of _0x38a1cd)this['setRevisionData']({'id':_0x552a0d['id'],'createdAt':_0x552a0d['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1cc539,_0x5cbe45){let _0x2212f5=this['editor']['config']['get']('initialData'),_0x44e149=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2212f5){_0x2212f5={};for(const _0x44d6cc of this['editor']['model']['document']['getRootNames']())_0x2212f5[_0x44d6cc]='';}if('string'==typeof _0x2212f5&&(_0x2212f5={'main':_0x2212f5}),void 0x0===_0x44e149){_0x44e149={};for(const _0x31fb4f of this['editor']['model']['document']['getRootNames']())_0x44e149[_0x31fb4f]={};}let _0x27e0f1=!0x1;const _0xa975a8=Object['keys'](_0x2212f5),_0x51fb3d=Object['keys'](_0x1cc539);for(const _0x2850e2 of _0xa975a8){if(_0x2212f5[_0x2850e2]!==_0x1cc539[_0x2850e2]&&''!==_0x2212f5[_0x2850e2]['trim']()){_0x27e0f1=!0x0;break;}if(!_0x14c2d4(_0x44e149[_0x2850e2],_0x5cbe45[_0x2850e2])&&Object['keys'](_0x44e149[_0x2850e2])['length']>0x0){_0x27e0f1=!0x0;break;}}_0x27e0f1||(_0x27e0f1=_0x51fb3d['some'](_0x27c706=>!this['editor']['model']['document']['getRoot'](_0x27c706))),_0x27e0f1&&_0x423101('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2212f5,'editorRootsAttributes':_0x44e149,'revisionData':_0x1cc539,'revisionRootsAttributes':_0x5cbe45}),this['editor']['config']['set']('initialData',_0x1cc539),this['editor']['config']['set']('rootsAttributes',_0x5cbe45);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xa8f17d=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xa8f17d['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x163377){const _0x4aedfb=this['repository']['getRevisions']();_0x4aedfb['reverse']();let _0xe08a7f=0x0;for(;_0xe08a7f<_0x4aedfb['length'];){const _0xe5fa30=_0x4aedfb[_0xe08a7f];if(_0xe5fa30===this['currentRevision']){_0xe08a7f++;continue;}if(_0xe5fa30['id']===this['_initialRevisionId'])break;const _0x267246=_0x163377['toVersion']-_0xe5fa30['toVersion']||_0x163377['fromVersion']-_0xe5fa30['fromVersion'];if(_0x267246>0x0)break;if(_0x267246<0x0)_0xe08a7f++;else{if(!_0x163377['creator']&&_0xe5fa30['creator'])break;if(_0xe5fa30['creator']||!_0x163377['creator']){if(_0x163377['createdAt']>_0xe5fa30['createdAt'])break;_0xe08a7f++;}else _0xe08a7f++;}}return _0xe08a7f;}['setRevisionData'](_0x3abdca){const _0x198912=this['repository']['getRevision'](_0x3abdca['id']);if(_0x3abdca['createdAt']&&(_0x3abdca['createdAt']=new Date(_0x3abdca['createdAt'])),_0x3abdca['authorsIds']){const _0x4ee645=this['editor']['plugins']['get']('Users');_0x3abdca['authors']=_0x3abdca['authorsIds']['map'](_0xbfa02d=>_0x4ee645['getUser'](_0xbfa02d));}_0x198912['_update'](_0x3abdca,!0x0);}['buildRevisionData']({revision:_0x467bf0=null,from:_0x4362bc=null,to:_0x2d21a6=null}){_0x4362bc=null!==_0x4362bc?_0x4362bc:_0x467bf0['fromVersion'],_0x2d21a6=null!==_0x2d21a6?_0x2d21a6:_0x467bf0['toVersion'];const _0x112582=this['_revisionDataBuilder']['getData'](_0x4362bc,_0x2d21a6),_0x209e35={'diffData':_0x112582['diffData'],'authorsIds':_0x112582['authorsIds'],'fromVersion':_0x4362bc,'toVersion':_0x2d21a6};if(!_0x467bf0||_0x2d21a6!==_0x467bf0['toVersion']){const _0x2e5454=_0x2d21a6-0x1,_0x3664bb=this['_source']['history']['getOperation'](_0x2e5454);_0x209e35['createdAt']=_0x3664bb&&_0x3664bb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4362bc===this['_loadedStateData']['fromVersion']){for(const _0x51c242 of this['_loadedStateData']['authors'])_0x209e35['authorsIds']['includes'](_0x51c242['id'])||_0x209e35['authorsIds']['push'](_0x51c242['id']);}return _0x209e35;}['_loadRevisionData'](_0x4288cf){if(!_0x4288cf||_0x4288cf['diffData'])return Promise['resolve']();{const _0x4dc27f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4dc27f,'revisionId':_0x4288cf['id']})['then'](_0x460cdf=>{_0x4288cf['diffData']=_0x460cdf['diffData'];});}}['_bufferUpdate'](_0x23332b,_0x3a5c31,_0x223ceb){if(this['_bufferedUpdates']['has'](_0x23332b)){const _0x2129ee=this['_bufferedUpdates']['get'](_0x23332b);_0x3a5c31=_0x223ceb?{..._0x2129ee,..._0x3a5c31}:{..._0x3a5c31,..._0x2129ee};}this['_bufferedUpdates']['set'](_0x23332b,_0x3a5c31);}['_getFromVersion'](_0x21fba7){const _0x1b412e=this['repository']['getRevisions']();_0x1b412e['reverse'](),_0x1b412e['shift']();const _0x5cba26=_0x1b412e['find'](_0x4f8dd8=>_0x4f8dd8['toVersion']<=_0x21fba7)['toVersion'];return _0x5cba26<this['_startingVersion']?this['_startingVersion']:_0x5cba26;}['_createInitialRevision'](_0x144d20){const _0x37f095=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x37f095)this['_initialRevisionId']=_0x37f095['id'];else{const _0x4baddf=!this['editor']['model']['document']['roots']['find'](_0x1f94cf=>this['editor']['model']['hasContent'](_0x1f94cf)),_0x24eafe=this['editor']['plugins']['get']('Users')['me']['id'],_0x34b568=R(this['editor']['locale'],_0x4baddf?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x144d20,'to':_0x144d20,'id':this['_initialRevisionId'],'name':_0x34b568,'creatorId':_0x24eafe});}}['_createCurrentRevision'](_0x4ffae8){const _0x161134=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x161134),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4ffae8,'to':_0x4ffae8,'id':_0x161134,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1da9d5,from:_0xb26d70,to:_0x104f9e,creatorId:_0x3faba3,id:_0x53105b}){const _0x2038f8=this['buildRevisionData']({'from':_0xb26d70,'to':_0x104f9e});_0x2038f8['name']=_0x1da9d5,_0x2038f8['creatorId']=_0x3faba3,_0x2038f8['id']=_0x53105b;const _0x5728b4=this['addRevisionData'](_0x2038f8);return this['adapter']&&this['_bufferUpdate'](_0x2038f8['id'],_0x2038f8,!0x0),_0x5728b4;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x577905){return(_0x577905=_0x577905['filter'](_0x316528=>!_0x316528['name']||'revision-start'!==_0x316528['name']&&'revision-end'!==_0x316528['name']))['forEach'](_0x22670f=>{'string'!=typeof _0x22670f&&(_0x22670f['children']=this['_removeRevisionMarkers'](_0x22670f['children']),_0x22670f['attributes']=_0x22670f['attributes']['filter'](_0x1de2fc=>!_0x1de2fc[0x0]['startsWith']('data-revision-')));}),_0x577905;}}function V(_0x1c01f1,_0x576a0f){const _0x12df98=_0x576a0f['editing']['view']['document'];if('string'==typeof _0x1c01f1)return new _0x3812af(_0x12df98,_0x1c01f1);{const _0x283f80=_0x1c01f1['children']['map'](_0x4b1c1c=>V(_0x4b1c1c,_0x576a0f));return new(C[_0x1c01f1['type']]||_0x27385a)(_0x12df98,_0x1c01f1['name'],_0x1c01f1['attributes'],_0x283f80);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x455391){this['editor']=_0x455391,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'](_0xb5094d){this['source']=_0xb5094d;const _0x513203=new Map(),_0x430c45=new Map(),_0x7e76de=this['editor']['model']['document']['roots']['map'](_0x43048f=>_0x43048f['rootName']);for(const _0x5df342 of _0x7e76de){const _0x360857=this['editor']['model']['document']['getRoot'](_0x5df342),_0x124589=F(_0x360857);_0x513203['set'](_0x5df342,_0x124589),_0x430c45['set'](_0x5df342,Object['fromEntries'](_0x360857['getAttributes']()));}const _0x5df8f7=Array['from'](this['editor']['model']['markers'])['map'](_0x1fcbb2=>[_0x1fcbb2['name'],_0x1fcbb2['getRange']()]),_0x2a3ea4=this['source']['version'];this['_saveMetaData'](_0x2a3ea4,_0x513203,_0x5df8f7,_0x430c45),this['_startingRevisionId']=this['_revisionId'];const _0x3b3b2d=new Map(),_0x41fd42=new Map();for(const _0x5dd7a7 of _0x7e76de){const _0x274912=B(_0x5dd7a7);_0x3b3b2d['set'](_0x5dd7a7,_0x274912),_0x41fd42['set'](_0x5dd7a7,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3b3b2d,[],_0x41fd42);}['getData'](_0x287651,_0x5a80f9){if(this['_lastFrom']===_0x287651&&this['_lastTo']<=_0x5a80f9)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5a80f9,!0x0);else{if(!this['_savedMetaData']['has'](_0x287651)){const _0x1ba0f8=this['_getPreviousFrom'](_0x287651);this['_calculateMetaData'](_0x1ba0f8,_0x287651,!0x1);}this['_calculateMetaData'](_0x287651,_0x5a80f9,!0x0);}return this['_lastFrom']=_0x287651,this['_lastTo']=_0x5a80f9,this['_getState']();}['loadState'](_0x236d7b){this['_reset'](),this['_lastFrom']=_0x236d7b['fromVersion'],this['_lastTo']=_0x236d7b['toVersion'];for(const _0x3127e1 in _0x236d7b['diffData']){const _0xb26f3f=_0x236d7b['diffData'][_0x3127e1]['attachChange'],_0x17b1ca=_0x315ac7(_0x236d7b['diffData'][_0x3127e1]['attributesBefore'])||{},_0x14dafa=this['_makeModelFromViewString'](_0x236d7b['diffData'][_0x3127e1]['deletions']);_0x14dafa['rootName']=_0x3127e1,_0x14dafa['_isAttached']=!_0xb26f3f||!_0xb26f3f['isAttached'],_0x14dafa['isAttached']=()=>_0x14dafa['_isAttached'],this['_baseRoots']['set'](_0x3127e1,_0x14dafa),this['_baseRootsAttributes']['set'](_0x3127e1,_0x17b1ca),_0xb26f3f&&this['_touchedRoots']['set'](_0x3127e1,_0xb26f3f);const _0x3bbc95=this['_makeIdsRoot'](_0x14dafa);this['_baseIdsRoots']['set'](_0x3127e1,_0x3bbc95);for(const [_0x45ca8d,_0x332a57]of _0x14dafa['markers']){if(!_0x45ca8d['startsWith']('revision:'))continue;const _0x29d723=_0x45ca8d['split'](':')[0x2];for(const _0x45f19e of _0x332a57['getWalker']({'singleCharacters':!0x0})){const _0x47fdad=this['_getVidAttributeName'](_0x45f19e),_0x3d3ba9='elementEnd'==_0x45f19e['type']?_0x45f19e['previousPosition']['path']['slice'](0x0,-0x1):_0x45f19e['previousPosition']['path'],_0x23fbd3=_0x3bbc95['getNodeByPath'](_0x3d3ba9)['getAttribute'](_0x47fdad);this['_touched']['set'](_0x23fbd3,{'userId':_0x29d723});}}}this['_startingRevisionId']=this['_revisionId'];const _0x18e5cd=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5e7de5=>!this['_touched']['has'](_0x5e7de5));let _0x25f5da=0x0;const _0x3ac4bc=new Map();for(const _0x50352a in _0x236d7b['diffData']){const _0x427477=_0x236d7b['diffData'][_0x50352a]['attachChange'],_0x388ea3=_0x315ac7(_0x236d7b['diffData'][_0x50352a]['attributesAfter'])||{},_0x5e62d5=this['_makeModelFromViewString'](_0x236d7b['diffData'][_0x50352a]['insertions']);_0x5e62d5['rootName']=_0x50352a,_0x5e62d5['_isAttached']=!_0x427477||_0x427477['isAttached'],_0x5e62d5['isAttached']=()=>_0x5e62d5['_isAttached'],this['_diffRoots']['set'](_0x50352a,_0x5e62d5),this['_diffRootsAttributes']['set'](_0x50352a,_0x388ea3);const _0x427d6d=this['_makeIdsRoot'](_0x5e62d5,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x50352a,_0x427d6d),_0x3ac4bc['set'](_0x50352a,_0x5e62d5['isAttached']()?_0x388ea3:{});for(const [_0x1164b2,_0x2bcf35]of _0x5e62d5['markers']){if(!_0x1164b2['startsWith']('revision:'))continue;const _0x50e38b=_0x1164b2['split'](':')[0x2];for(const _0x4bc982 of _0x2bcf35['getWalker']({'singleCharacters':!0x0})){const _0x58a57c=this['_getVidAttributeName'](_0x4bc982),_0x492b52=this['_revisionId']++,_0x62449b='elementEnd'==_0x4bc982['type']?_0x4bc982['previousPosition']['path']['slice'](0x0,-0x1):_0x4bc982['previousPosition']['path'];_0x427d6d['getNodeByPath'](_0x62449b)['_setAttribute'](_0x58a57c,_0x492b52),this['_touched']['set'](_0x492b52,{'userId':_0x50e38b});}}for(const _0x5427dc of this['editor']['model']['createRangeIn'](_0x5e62d5)['getWalker']({'singleCharacters':!0x0})){const _0x3f0d0e=this['_getVidAttributeName'](_0x5427dc),_0x1e091a='elementEnd'==_0x5427dc['type']?_0x5427dc['previousPosition']['path']['slice'](0x0,-0x1):_0x5427dc['previousPosition']['path'],_0x247233=_0x427d6d['getNodeByPath'](_0x1e091a);_0x247233['getAttribute'](_0x3f0d0e)>0x0||_0x247233['_setAttribute'](_0x3f0d0e,_0x18e5cd[_0x25f5da++]);}for(const [_0x38d8aa,_0x59d17e]of _0x5e62d5['markers'])_0x38d8aa['startsWith']('revision:')||this['_markers']['set'](_0x38d8aa,_0x59d17e);}const _0x520d99=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x520d99),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x520d99,0x1));const _0x2b2482=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2b2482),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2b2482,0x1));const _0x272061=Array['from'](this['_diffRoots'])['map'](([_0x345d47,_0x53e954])=>[_0x345d47,F(_0x53e954)]);this['_saveMetaData'](this['_lastTo'],_0x272061,this['_markers'],_0x3ac4bc);}['_makeModelFromViewString'](_0x572073){const _0x1c2568=JSON['parse'](_0x572073),_0x3dd884=this['editor']['editing']['view']['document'],_0x4a965a=new _0x3d27d9(_0x3dd884,_0x1c2568['map'](_0x36b74c=>V(_0x36b74c,this['editor'])));return this['editor']['data']['toModel'](_0x4a965a);}['_saveMetaData'](_0x1bb0dc,_0x2ae81d,_0xa24b38,_0x5501b3){const _0x4b66d6=new Map(_0x2ae81d),_0x1942f8=new Map(_0x315ac7(_0x5501b3)),_0xc077a8=new Map();for(const [_0x1b1e43,_0x24ad88]of _0xa24b38)_0xc077a8['set'](_0x1b1e43,{'start':_0x24ad88['start']['clone'](),'end':_0x24ad88['end']['clone'](),'rootName':_0x24ad88['root']['rootName']});this['_savedMetaData']['set'](_0x1bb0dc,{'roots':_0x4b66d6,'markers':_0xc077a8,'rootsAttributes':_0x1942f8});}['_removeMetaData'](_0x952055){this['_savedMetaData']['delete'](_0x952055);}['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'](_0x1a2638,_0x573b82=null){let _0x2e7b84=null;_0x1a2638['is']('documentFragment')||(_0x2e7b84=new ft(_0x1a2638['name'],{'vid_start':null===_0x573b82?this['_revisionId']++:_0x573b82++}));const _0x4925e1=[];for(const _0x582f38 of _0x1a2638['getChildren']())if(_0x582f38['is']('element')){_0x4925e1['push'](this['_makeIdsRoot'](_0x582f38,_0x573b82));const _0x369fb1=_0x4925e1[_0x4925e1['length']-0x1];null!==_0x573b82&&(_0x573b82=_0x369fb1['is']('element','$text')?_0x369fb1['getAttribute']('vid')+0x1:_0x369fb1['getAttribute']('vid_end')+0x1);}else{for(let _0x5bc4a8=0x0;_0x5bc4a8<_0x582f38['offsetSize'];_0x5bc4a8++)_0x4925e1['push'](new ft('$text',{'vid':null===_0x573b82?this['_revisionId']++:_0x573b82++}));}if(_0x1a2638['is']('documentFragment')){const _0x3249b8=B(_0x1a2638['rootName']);return _0x3249b8['_insertChild'](0x0,_0x4925e1),_0x3249b8;}return _0x2e7b84['_setAttribute']('vid_end',null===_0x573b82?this['_revisionId']++:_0x573b82++),_0x2e7b84['_insertChild'](0x0,_0x4925e1),_0x2e7b84;}['_calculateMetaData'](_0x29f0b6,_0x44fe90,_0x1331f9){this['_reset']();const {roots:_0x5ba99b,markers:_0x4ddf40,rootsAttributes:_0xc5a253}=this['_savedMetaData']['get'](_0x29f0b6);this['_baseRoots']=new Map(_0x5ba99b),this['_baseRootsAttributes']=new Map(_0x315ac7(_0xc5a253));for(const [_0x1bc082,_0x304d54]of this['_baseRoots'])if('$graveyard'!==_0x1bc082&&(this['_diffRoots']['set'](_0x1bc082,F(_0x304d54)),this['_diffRootsAttributes']=new Map(_0x315ac7(_0xc5a253)),_0x1331f9)){const _0x35f1f8=this['_revisionId'];this['_idsRoots']['set'](_0x1bc082,this['_makeIdsRoot'](_0x304d54)),this['_baseIdsRoots']['set'](_0x1bc082,this['_makeIdsRoot'](_0x304d54,_0x35f1f8));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x1331f9&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x37c579,_0x3cb1a5]of _0x4ddf40){const _0xbb54d7=this['_baseRoots']['get'](_0x3cb1a5['rootName']),_0x5580ec=this['_diffRoots']['get'](_0x3cb1a5['rootName']),_0x516577=new vt(this['_fixPosition'](_0x3cb1a5['start'],_0xbb54d7),this['_fixPosition'](_0x3cb1a5['end'],_0xbb54d7)),_0x496f2=this['_fixRange'](_0x516577,_0x5580ec);_0xbb54d7['markers']['set'](_0x37c579,_0x516577),this['_markers']['set'](_0x37c579,_0x496f2);}this['_applyOperations'](_0x29f0b6,_0x44fe90,_0x1331f9);}['_applyOperations'](_0x4cc399,_0x5b2014,_0x4a78d3){for(const _0x4f1df6 of this['source']['getOperations'](_0x4cc399,_0x5b2014))this['_handleOperation'](_0x4f1df6,_0x4a78d3);for(const _0x35f1b7 of this['_diffRoots']['values']())_0x35f1b7['markers']['clear']();for(const [_0x226e4f,_0x5cf395]of this['_markers']){this['_diffRoots']['get'](_0x5cf395['root']['rootName'])['markers']['set'](_0x226e4f,_0x5cf395['clone']());}const _0x11e1b7=new Map(),_0xf673df=new Map();for(const [_0x494aa6,_0x21b1f0]of this['_diffRoots'])_0x11e1b7['set'](_0x494aa6,F(_0x21b1f0)),_0xf673df['set'](_0x494aa6,this['_diffRootsAttributes']['get'](_0x494aa6));this['_saveMetaData'](_0x5b2014,_0x11e1b7,this['_markers'],_0xf673df);}['_getPreviousFrom'](_0x5863d1){const _0x39de26=Array['from'](this['_savedMetaData']['keys']());_0x39de26['sort']((_0x49fa7e,_0x58eacf)=>_0x49fa7e-_0x58eacf),_0x39de26['reverse']();for(const _0x3bbd6b of _0x39de26)if(_0x3bbd6b<_0x5863d1)return _0x3bbd6b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2ec56d,_0x2a5e16){const _0xb6e940=Array['from'](_0x2a5e16['markers'])['map'](([_0x18025f,_0x58efe7])=>[_0x18025f,this['_fixRange'](_0x58efe7,_0x2ec56d)]);_0x2ec56d['markers']=new Map(_0xb6e940);}['_transformMarkers'](_0x146fbd){for(const _0x59a339 of this['_markers']['values']()){const _0xc0994a=_0x59a339['getTransformedByOperation'](_0x146fbd),_0x1fd396=vt['_createFromRanges'](_0xc0994a);_0x59a339['start']=_0x1fd396['start'],_0x59a339['end']=_0x1fd396['end'];}}['_handleOperation'](_0x3037a8,_0x5b1a3f){if('addRoot'!=_0x3037a8['type']&&'detachRoot'!=_0x3037a8['type']){if('insert'==_0x3037a8['type']){const _0x2cb70d=_0x3037a8['position']['root']['rootName'];this['_diffRoots']['has'](_0x2cb70d)||(this['_diffRoots']['set'](_0x2cb70d,B(_0x2cb70d,!0x0)),this['_diffRootsAttributes']['set'](_0x2cb70d,{}),_0x5b1a3f&&this['_idsRoots']['set'](_0x2cb70d,B(_0x2cb70d,!0x0)));}else{if('addRootAttribute'==_0x3037a8['type']||'removeRootAttribute'==_0x3037a8['type']||'changeRootAttribute'==_0x3037a8['type'])return void this['_handleRootAttributeOperation'](_0x3037a8);'marker'==_0x3037a8['type']&&this['_handleMarkerOperation'](_0x3037a8);}if('marker'!==_0x3037a8['type']){const _0x3f61f7=this['_cloneOperation'](_0x3037a8,this['_diffRoots']);_0x3f61f7['_execute'](),this['_transformMarkers'](_0x3f61f7);}if(_0x5b1a3f)switch(_0x3037a8['type']){case'insert':this['_handleInsertOperation'](_0x3037a8);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3037a8);break;case'merge':this['_handleMergeOperation'](_0x3037a8);break;case'split':this['_handleSplitOperation'](_0x3037a8);}}else this['_handleRootOperation'](_0x3037a8,_0x5b1a3f);}['_cloneOperation'](_0x332d09,_0x34e2c1){const _0x582781=_0x332d09['clone']();return _0x582781['_authorId']=_0x332d09['_authorId'],this['_fixOperation'](_0x582781,_0x34e2c1),_0x582781;}['_getBaseVids'](_0x1937a1){return _0x1937a1['map'](_0x52f7a3=>{const _0x111a66=this['_getVidAttributeName'](_0x52f7a3);return Number(_0x52f7a3['item']['getAttribute'](_0x111a66));});}['_generateTape'](_0x4677b0,_0x38b8e9){if(_0x4677b0['is']('element','$text'))_0x38b8e9['push']({'item':_0x4677b0,'type':'text'});else{_0x4677b0['is']('element')&&_0x38b8e9['push']({'item':_0x4677b0,'type':'elementStart'});for(const _0x299e97 of _0x4677b0['getChildren']())this['_generateTape'](_0x299e97,_0x38b8e9);_0x4677b0['is']('element')&&_0x38b8e9['push']({'item':_0x4677b0,'type':'elementEnd'});}return _0x38b8e9;}['_getState'](){const _0x34962e=new Map(this['_touched']),_0x556a6a=new Map(_0x34962e),_0x5e88b0=new Map(),_0x1d7134={'insertions':{},'deletions':{}},_0x24e478={'insertions':{},'deletions':{}},_0x58ff60=new Map(),_0x30dfa5=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x30dfa5['delete']('$graveyard');for(const _0x26e15c of _0x30dfa5){const _0x3b3abc=this['_diffRoots']['get'](_0x26e15c)||B(_0x26e15c,!0x1),_0x59c9c3=this['_baseRoots']['get'](_0x26e15c)||B(_0x26e15c,!0x1);_0x3b3abc['isAttached']()||_0x59c9c3['isAttached']()?(_0x1d7134['insertions'][_0x26e15c]=F(_0x3b3abc),_0x1d7134['deletions'][_0x26e15c]=F(_0x59c9c3),this['_copyMarkers'](_0x1d7134['deletions'][_0x26e15c],_0x59c9c3),this['_copyMarkers'](_0x1d7134['insertions'][_0x26e15c],_0x3b3abc),_0x24e478['insertions'][_0x26e15c]=this['_generateTape'](this['_idsRoots']['get'](_0x26e15c),[]),_0x24e478['deletions'][_0x26e15c]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x26e15c)||B(_0x26e15c,!0x1),[])):_0x30dfa5['delete'](_0x26e15c);}for(const _0x2e28fa of _0x30dfa5){const _0x14774e=_0x24e478['insertions'][_0x2e28fa];for(const _0x28b15d of _0x14774e){const _0x4a38fa=this['_getVidAttributeName'](_0x28b15d),_0x276a73=_0x28b15d['item']['getAttribute'](_0x4a38fa);_0x556a6a['delete'](_0x276a73),_0x276a73>=this['_startingRevisionId']&&_0x5e88b0['set'](_0x276a73,_0x34962e['get'](_0x276a73));}}for(const _0x49528e of _0x30dfa5){const _0x237269=_0x24e478['insertions'][_0x49528e],_0x5c187d=this['_getBaseVids'](_0x24e478['deletions'][_0x49528e]);let _0x335b4d=0x0;for(const _0x35543c of _0x237269){const _0x55c89f=this['_getVidAttributeName'](_0x35543c),_0xc3b6a6=_0x35543c['item']['getAttribute'](_0x55c89f);if(!_0x5e88b0['has'](_0xc3b6a6)&&!_0x58ff60['has'](_0xc3b6a6)){if(_0x556a6a['has'](_0xc3b6a6))_0x335b4d++;else{if(_0xc3b6a6!=_0x5c187d[_0x335b4d]){const _0x50ee7f=_0x34962e['get'](_0xc3b6a6)||_0x34962e['get'](_0x5c187d[_0x335b4d]);for(;_0xc3b6a6!=_0x5c187d[_0x335b4d];)_0x556a6a['has'](_0x5c187d[_0x335b4d])||(_0x58ff60['set'](_0x5c187d[_0x335b4d],_0x50ee7f),_0x34962e['set'](_0x5c187d[_0x335b4d],_0x50ee7f)),_0x335b4d++;}_0x335b4d++;}}}}for(const _0x43da30 of _0x30dfa5){const _0x51ceb0=_0x24e478['insertions'][_0x43da30];for(const _0x36be85 of _0x51ceb0){const _0x16ce48=this['_getVidAttributeName'](_0x36be85),_0x5bd473=_0x36be85['item']['getAttribute'](_0x16ce48);if(_0x58ff60['has'](_0x5bd473)){const _0x4f06c8=_0x58ff60['get'](_0x5bd473);_0x556a6a['has'](_0x5bd473)||_0x556a6a['set'](_0x5bd473,{..._0x4f06c8}),_0x5e88b0['set'](_0x5bd473,{..._0x4f06c8});}}}for(const _0x282f2d of _0x556a6a['keys']())_0x282f2d>=this['_startingRevisionId']&&_0x556a6a['delete'](_0x282f2d);const _0x41c66f=new Map();for(const _0x3662a4 of _0x30dfa5){let _0x279f90=_0x24e478['insertions'][_0x3662a4];for(const _0x5678e8 of _0x279f90)if(_0x5678e8['item']['is']('element','tableCell')){const _0x47c2a5=this['_getVidAttributeName'](_0x5678e8),_0x220ec2=_0x5678e8['item']['getAttribute'](_0x47c2a5);if(_0x5e88b0['has'](_0x220ec2)){const _0x56eed9=_0x5678e8['item']['parent']['parent']['getAttribute']('vid_start'),_0x3603d1=_0x41c66f['get'](_0x56eed9)||new Set();_0x3603d1['add'](_0x5e88b0['get'](_0x220ec2)['userId']),_0x41c66f['set'](_0x56eed9,_0x3603d1);}}_0x279f90=_0x24e478['deletions'][_0x3662a4];for(const _0x282841 of _0x279f90)if(_0x282841['item']['is']('element','tableCell')){const _0x58d313=this['_getVidAttributeName'](_0x282841),_0x69329f=_0x282841['item']['getAttribute'](_0x58d313);if(_0x556a6a['has'](_0x69329f)){const _0x1e785b=_0x282841['item']['parent']['parent']['getAttribute']('vid_start'),_0x3b1f12=_0x41c66f['get'](_0x1e785b)||new Set();_0x3b1f12['add'](_0x556a6a['get'](_0x69329f)['userId']),_0x41c66f['set'](_0x1e785b,_0x3b1f12);}}for(const _0x3faaed of _0x41c66f['keys']())(_0x5e88b0['has'](_0x3faaed)||_0x556a6a['has'](_0x3faaed))&&_0x41c66f['delete'](_0x3faaed);}for(const _0x2373db of _0x30dfa5){const _0x29a5a3=_0x24e478['insertions'][_0x2373db];let _0x4849e2=null,_0x44468e=null;for(const _0x51ebd1 of _0x29a5a3){const _0x3c4b30=this['_getVidAttributeName'](_0x51ebd1),_0x3af9bf=_0x51ebd1['item']['getAttribute'](_0x3c4b30),_0x1be417=_0x41c66f['get'](_0x3af9bf);_0x1be417&&'elementStart'==_0x51ebd1['type']&&(_0x4849e2=Array['from'](_0x1be417)[0x0],_0x44468e=_0x51ebd1['item']['getAttribute']('vid_end')),_0x4849e2&&(_0x556a6a['set'](_0x3af9bf,{'userId':_0x4849e2}),_0x5e88b0['set'](_0x3af9bf,{'userId':_0x4849e2})),_0x3af9bf==_0x44468e&&(_0x4849e2=null,_0x44468e=null);}}const _0x2fb99f={},_0x17144d=new Set();for(const _0x48782b of _0x30dfa5){const _0x14cfae=_0x1d7134['deletions'][_0x48782b],_0x21c096=_0x1d7134['insertions'][_0x48782b];for(const {userId:_0x1d011f}of this['_touchedMarkers']['values']())null!==_0x1d011f&&_0x17144d['add'](_0x1d011f);for(const {userId:_0x1eec1b}of this['_touchedRoots']['values']())null!==_0x1eec1b&&_0x17144d['add'](_0x1eec1b);this['_markChanges'](_0x21c096,_0x24e478['insertions'][_0x48782b],_0x5e88b0,'insertion',_0x17144d),this['_markChanges'](_0x14cfae,_0x24e478['deletions'][_0x48782b],_0x556a6a,'deletion',_0x17144d),_0x2fb99f[_0x48782b]={'insertions':this['_prepareViewToSave'](_0x21c096),'deletions':this['_prepareViewToSave'](_0x14cfae),'attachChange':this['_touchedRoots']['get'](_0x48782b)||null,'attributesBefore':_0x315ac7(this['_baseRootsAttributes']['get'](_0x48782b))||{},'attributesAfter':_0x315ac7(this['_diffRootsAttributes']['get'](_0x48782b))};}return{'diffData':_0x2fb99f,'authorsIds':Array['from'](_0x17144d)};}['_processRootBeforeSave'](_0x414a59){for(const [,_0x4bf966]of _0x414a59['markers']){const _0x7c34b5=_0x4bf966['start']['getAncestors']()['filter'](_0x530745=>'tableCell'==_0x530745['name']);for(const _0x561c45 of _0x7c34b5)0x1==_0x561c45['childCount']&&_0x561c45['getChild'](0x0)['is']('element','paragraph')&&_0x561c45['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x171091){this['_processRootBeforeSave'](_0x171091);const _0x532705=this['editor']['data']['toView'](_0x171091,{}),_0x107dc9=Array['from'](_0x532705['getChildren']())['map'](_0x860493=>this['_getViewJson'](_0x860493));return JSON['stringify'](_0x107dc9);}['_getViewJson'](_0x431033){if(_0x431033['is']('$text'))return _0x431033['data'];{const _0x5c4d1e=_0x431033;return{'type':Object['keys'](C)['find'](_0x1734dc=>_0x431033 instanceof C[_0x1734dc]),'name':_0x5c4d1e['name'],'attributes':Array['from'](_0x5c4d1e['getAttributes']()),'children':Array['from'](_0x5c4d1e['getChildren']())['map'](_0x24658a=>this['_getViewJson'](_0x24658a))};}}['_markChanges'](_0x49458d,_0x46df61,_0xefa8ab,_0x2d491d,_0x349d06){let _0x8834d7=null,_0x587d43=null,_0x4d7340=0x0;const _0x7f230f=this['editor']['model'];for(let _0x1df471=0x0;_0x1df471<_0x46df61['length'];_0x1df471++){const _0x381740=this['_getVidAttributeName'](_0x46df61[_0x1df471]),_0x1457fc=_0x46df61[_0x1df471]['item']['getAttribute'](_0x381740),_0x511e54=_0xefa8ab['get'](_0x1457fc),_0x4b49d5=_0x1df471==_0x46df61['length']-0x1;(!_0x8834d7&&_0x511e54&&(_0x8834d7=_0x511e54,_0x587d43=_0x46df61[_0x1df471]),_0x8834d7&&(!_0x511e54||_0x511e54['userId']!=_0x8834d7['userId']))&&(_0x587c71(_0x511e54,J(_0x587d43,_0x49458d,_0x7f230f),J(_0x46df61[_0x1df471],_0x49458d,_0x7f230f)),_0x8834d7=_0x511e54||null,_0x587d43=_0x511e54?_0x46df61[_0x1df471]:null),_0x8834d7&&_0x4b49d5&&_0x587c71(_0x511e54,J(_0x587d43,_0x49458d,_0x7f230f),q(_0x46df61[_0x1df471],_0x49458d,_0x7f230f));}function _0x587c71(_0x1aa536,_0x2496e7,_0x47bd67){const _0x5b6e18=_0x8834d7['userId'],_0x5a4e21='revision:'+_0x2d491d+':'+_0x5b6e18+':'+_0x4d7340++,_0x38cdc8=_0x7f230f['createRange'](_0x2496e7,_0x47bd67);_0x49458d['markers']['set'](_0x5a4e21,_0x38cdc8),null!==_0x5b6e18&&_0x349d06['add'](_0x5b6e18);}}['_getVidAttributeName'](_0x40e6fe){switch(_0x40e6fe['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x397b38,_0x3fe88f){_0x397b38['baseVersion']=null;for(const _0x5d5291 in _0x397b38){const _0x373ace=_0x397b38[_0x5d5291];if(_0x373ace instanceof gt){const _0x3861b2=_0x3fe88f['get'](_0x373ace['root']['rootName']);_0x397b38[_0x5d5291]=this['_fixPosition'](_0x373ace,_0x3861b2);}if(_0x373ace instanceof vt){const _0x345413=_0x3fe88f['get'](_0x373ace['root']['rootName']);_0x397b38[_0x5d5291]=this['_fixRange'](_0x373ace,_0x345413);}'root'===_0x5d5291&&(_0x397b38['root']=_0x3fe88f['get'](_0x397b38['root']['rootName']));}}['_fixRange'](_0x2959d6,_0x360a1e){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2959d6['start'],_0x360a1e),this['_fixPosition'](_0x2959d6['end'],_0x360a1e));}['_fixPosition'](_0xb51501,_0x1ad1d9){return this['editor']['model']['createPositionFromPath'](_0x1ad1d9,_0xb51501['path'],_0xb51501['stickiness']);}['_handleInsertOperation'](_0x425cb1){const _0x2c3e85=this['_idsRoots']['get'](_0x425cb1['position']['root']['rootName']),_0x410a27=this['_fixPosition'](_0x425cb1['position'],_0x2c3e85),_0x4d584f=null===_0x425cb1['_authorId']?null:_0x425cb1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3020bd=_0x410a27['parent'],_0x3f9ac2=this['_revisionId'],_0x27724f=[];for(const _0xd9b380 of _0x425cb1['nodes'])if(_0xd9b380['is']('element'))_0x27724f['push'](this['_makeIdsRoot'](_0xd9b380));else{for(let _0x587c0d=0x0;_0x587c0d<_0xd9b380['offsetSize'];_0x587c0d++)_0x27724f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x9253f3=this['_revisionId'];for(let _0x28b7ed=_0x3f9ac2;_0x28b7ed<_0x9253f3;_0x28b7ed++)this['_touched']['set'](_0x28b7ed,{'userId':_0x4d584f});_0x3020bd['_insertChild'](_0x410a27['offset'],_0x27724f);}['_handleMoveOperation'](_0x412c30){(_0x412c30=this['_cloneOperation'](_0x412c30,this['_idsRoots']))['_execute']();const _0x5a91ce=null===_0x412c30['_authorId']?null:_0x412c30['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b7b9a=_0x412c30['getMovedRangeStart'](),_0x5046c1=_0x1b7b9a['parent'],_0x571f61=_0x1b7b9a['offset'];!function _0x51a6e1(_0x56a96a,_0x52c421,_0x4ef682,_0x17f6f5){for(let _0x2332ca=_0x4ef682;_0x2332ca<_0x17f6f5;_0x2332ca++){const _0x2368a8=_0x52c421['getChild'](_0x2332ca);_0x2368a8['is']('element','$text')?_0x56a96a['set'](_0x2368a8['getAttribute']('vid'),{'userId':_0x5a91ce}):(_0x56a96a['set'](_0x2368a8['getAttribute']('vid_start'),{'userId':_0x5a91ce}),_0x51a6e1(_0x56a96a,_0x2368a8,0x0,_0x2368a8['childCount']),_0x56a96a['set'](_0x2368a8['getAttribute']('vid_end'),{'userId':_0x5a91ce}));}}(this['_touched'],_0x5046c1,_0x571f61,_0x571f61+_0x412c30['howMany']);}['_handleMergeOperation'](_0x4a913d){const _0x4b3d1e=null===(_0x4a913d=this['_cloneOperation'](_0x4a913d,this['_idsRoots']))['_authorId']?null:_0x4a913d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x50196b=_0x4a913d['targetPosition']['parent'],_0x17dd2b=_0x4a913d['sourcePosition']['parent'],_0x29b9c5=_0x50196b['getAttribute']('vid_end'),_0x55ec8f=_0x17dd2b['getAttribute']('vid_start');_0x50196b['_setAttribute']('vid_end',_0x17dd2b['getAttribute']('vid_end')),_0x17dd2b['_setAttribute']('vid_end',_0x29b9c5),this['_touched']['set'](_0x55ec8f,{'userId':_0x4b3d1e}),this['_touched']['set'](_0x29b9c5,{'userId':_0x4b3d1e}),_0x4a913d['_execute']();}['_handleSplitOperation'](_0xd8a40b){const _0x265631=null===(_0xd8a40b=this['_cloneOperation'](_0xd8a40b,this['_idsRoots']))['_authorId']?null:_0xd8a40b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36dd2e=_0xd8a40b['graveyardPosition'],_0x37ecb9=_0xd8a40b['splitPosition']['parent'];_0xd8a40b['_execute']();const _0x1b16fd=_0x37ecb9['getAttribute']('vid_end'),_0x37fefe=_0xd8a40b['insertionPosition']['nodeAfter'];if(_0x36dd2e){const _0x409dce=_0x37fefe['getAttribute']('vid_end'),_0x58e978=_0x37ecb9['getAttribute']('vid_end');_0x37ecb9['_setAttribute']('vid_end',_0x409dce),_0x37fefe['_setAttribute']('vid_end',_0x58e978),this['_touched']['set'](_0x37ecb9['getAttribute']('vid_end'),{'userId':_0x265631}),this['_touched']['set'](_0x37fefe['getAttribute']('vid_start'),{'userId':_0x265631});}else{const _0x30d9f2=this['_revisionId']++,_0x40a567=this['_revisionId']++;_0x37ecb9['_setAttribute']('vid_end',_0x30d9f2),_0x37fefe['_setAttribute']('vid_start',_0x40a567),_0x37fefe['_setAttribute']('vid_end',_0x1b16fd),this['_touched']['set'](_0x30d9f2,{'userId':_0x265631}),this['_touched']['set'](_0x40a567,{'userId':_0x265631});}}['_handleMarkerOperation'](_0xfa645b){if(!_0xfa645b['affectsData'])return;const _0x174ddc=(_0xfa645b=this['_cloneOperation'](_0xfa645b,this['_diffRoots']))['oldRange']?_0xfa645b['oldRange']['root']:null,_0x22b2a6=_0xfa645b['newRange']?_0xfa645b['newRange']['root']:null;_0x174ddc&&this['_markers']['delete'](_0xfa645b['name']),_0x22b2a6&&this['_markers']['set'](_0xfa645b['name'],_0xfa645b['newRange']['clone']());const _0x2ca4de=null===_0xfa645b['_authorId']?null:_0xfa645b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4338d6=_0xfa645b['name'];if(!this['_touchedMarkers']['has'](_0x4338d6))return void this['_touchedMarkers']['set'](_0x4338d6,{'range':_0xfa645b['oldRange'],'userId':_0x2ca4de});const _0xb8c5f8=this['_touchedMarkers']['get'](_0x4338d6),_0x123db7=_0xb8c5f8['range'],_0x3ac768=_0xfa645b['newRange'];null==_0x123db7&&null==_0x3ac768||_0x123db7&&_0x3ac768&&_0x123db7['isEqual'](_0x3ac768)?this['_touchedMarkers']['delete'](_0xfa645b['name']):_0xb8c5f8['userId']=_0x2ca4de;}['_handleRootOperation'](_0x1d197d,_0x24791d){this['_diffRoots']['has'](_0x1d197d['rootName'])?this['_diffRoots']['get'](_0x1d197d['rootName'])['_isAttached']=_0x1d197d['isAdd']:(this['_diffRoots']['set'](_0x1d197d['rootName'],B(_0x1d197d['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1d197d['rootName'],{}),_0x24791d&&this['_idsRoots']['set'](_0x1d197d['rootName'],B(_0x1d197d['rootName'],!0x0)));const _0x338b23=null===_0x1d197d['_authorId']?null:_0x1d197d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c8d37=this['_touchedRoots']['get'](_0x1d197d['rootName']);_0x1c8d37&&_0x1c8d37['userId']===_0x338b23?this['_touchedRoots']['delete'](_0x1d197d['rootName']):this['_touchedRoots']['set'](_0x1d197d['rootName'],{'userId':_0x338b23,'isAttached':_0x1d197d['isAdd']});}['_handleRootAttributeOperation'](_0x52c999){const _0x18c2c4=this['_diffRootsAttributes']['get'](_0x52c999['root']['rootName']);null===_0x52c999['newValue']?delete _0x18c2c4[_0x52c999['key']]:_0x18c2c4[_0x52c999['key']]=_0x52c999['newValue'];}}function F(_0x406c1a){const _0x4eb2e9=B(_0x406c1a['rootName'],_0x406c1a['isAttached']());for(const _0x2323b4 of _0x406c1a['getChildren']()){const _0xade99f=_0x2323b4['_clone'](!0x0);_0x4eb2e9['_appendChild'](_0xade99f);}return _0x4eb2e9;}function B(_0x437ec8,_0x258e45=!0x0){const _0x54fe88=new mt();return _0x54fe88['rootName']=_0x437ec8,_0x54fe88['_isAttached']=_0x258e45,_0x54fe88['isAttached']=()=>_0x54fe88['_isAttached'],_0x54fe88;}function J(_0x356091,_0x1decbc,_0x232935){const _0xfee8df='elementEnd'==_0x356091['type']?_0x232935['createPositionAt'](_0x356091['item'],'end'):_0x232935['createPositionBefore'](_0x356091['item']);return _0x232935['createPositionFromPath'](_0x1decbc,_0xfee8df['path'],_0xfee8df['stickiness']);}function q(_0x4d07e5,_0x43abe7,_0x878f84){const _0x5a79a6='elementStart'==_0x4d07e5['type']?_0x878f84['createPositionAt'](_0x4d07e5['item'],0x0):_0x878f84['createPositionAfter'](_0x4d07e5['item']);return _0x878f84['createPositionFromPath'](_0x43abe7,_0x5a79a6['path'],_0x5a79a6['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x29b432,_0x43f351){super(_0x29b432),this['focusTracker']=new _0x23fc60(),this['keystrokes']=new _0x39629e(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x43f351),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x3848c5(this);}['render'](){super['render'](),_0x2f2870({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x190601=_0x4c5c31=>_0x4c5c31['stopPropagation']();this['keystrokes']['set']('arrowright',_0x190601),this['keystrokes']['set']('arrowleft',_0x190601),this['keystrokes']['set']('arrowup',_0x190601),this['keystrokes']['set']('arrowdown',_0x190601);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x225204){this['revisionNameInputView']['fieldView']['element']['value']=_0x225204['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x152678){const _0x333b6c=new _0x176f9e(this['locale'],_0x20cf4d),_0x580982=_0x333b6c['fieldView'];_0x580982['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1189ea=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x152678&&(_0x1189ea+='\x20('+R(this['locale'],'optional')+')'),(_0x333b6c['label']=_0x1189ea,_0x580982['on']('input',()=>{this['revisionNameInputValue']=_0x580982['element']['value']['trim']();}),_0x333b6c);}}class u extends _0x212b78{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x8969da=this['editor'],_0x3dd98f=_0x8969da['plugins']['get']('RevisionTracker');_0x8969da['ui']['componentFactory']['add']('revisionHistory',_0x47523c=>{const _0x120c00=_0xcdad56(_0x47523c),_0x5d25ee=_0x120c00['panelView']['children'],_0x12453a=new _0x30fe7f(_0x47523c),_0x18fd18=new _0x2bea9b(_0x47523c),_0x3fbe16=new te(_0x47523c),_0x1e1cd9=new _0x2bea9b(_0x47523c),_0x4914b6=new te(_0x47523c);return _0x120c00['bind']('isEnabled')['to'](_0x3dd98f,'isReady',_0x3dd98f,'isEnabled',_0x8969da,'isReadOnly',(_0x4e3779,_0x4c9fdc,_0x4c9bff)=>_0x4e3779&&_0x4c9fdc&&!_0x4c9bff),_0x120c00['buttonView']['set']({'icon':_0x327ed7['history'],'label':R(_0x47523c,'Revision\x20history'),'tooltip':!0x0}),_0x3fbe16['set']({'label':R(_0x47523c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3fbe16['bind']('isEnabled')['to'](_0x3dd98f,'isReady',_0x3dd98f,'isEnabled',_0x8969da,'isReadOnly',(_0x3b0170,_0x52074f,_0x120e34)=>_0x3b0170&&_0x52074f&&!_0x120e34),_0x3fbe16['on']('execute',()=>this['_showDialog']()),_0x4914b6['set']({'label':R(_0x47523c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4914b6['bind']('isEnabled')['to'](_0x3dd98f,'isReady',_0x8969da,'isReadOnly',(_0x2bb7bf,_0x38cfe0)=>_0x2bb7bf&&!_0x38cfe0),_0x4914b6['on']('execute',()=>{_0x8969da['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x120c00['isOpen']=!0x1,_0x8969da['editing']['view']['focus']();}),_0x18fd18['children']['add'](_0x3fbe16),_0x1e1cd9['children']['add'](_0x4914b6),_0x12453a['role']='menu',_0x12453a['items']['addMany']([_0x18fd18,_0x1e1cd9]),_0x5d25ee['add'](_0x12453a),_0x120c00;}),_0x8969da['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x20d6b9=this['editor'],_0xb1286b=_0x20d6b9['locale'],_0x1deffc=new _0x357584(_0xb1286b),_0x1fc96c=new _0x36c1a0(_0xb1286b);_0x1deffc['buttonView']['set']({'icon':_0x327ed7['history'],'label':R(_0xb1286b,'Revision\x20history')});const _0x3545b5=new _0x2b0dca(_0xb1286b,_0x1deffc),_0x2c9c24=new _0x5797ff(_0xb1286b);_0x2c9c24['set']({'label':R(_0xb1286b,'Save\x20current\x20revision')}),_0x2c9c24['delegate']('execute')['to'](_0x1deffc),_0x2c9c24['on']('execute',()=>{this['_showDialog']();}),_0x3545b5['children']['add'](_0x2c9c24),_0x1fc96c['items']['add'](_0x3545b5);const _0x463c52=new _0x2b0dca(_0xb1286b,_0x1deffc),_0xa46f58=new _0x5797ff(_0xb1286b);return _0xa46f58['set']({'label':R(_0xb1286b,'Open\x20revision\x20history')}),_0xa46f58['delegate']('execute')['to'](_0x1deffc),_0xa46f58['on']('execute',()=>{_0x20d6b9['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x463c52['children']['add'](_0xa46f58),_0x1fc96c['items']['add'](_0x463c52),_0x1deffc['panelView']['children']['add'](_0x1fc96c),_0x1deffc;}['_showDialog'](){const _0x2750bd=this['editor'],_0x8d76d3=_0x2750bd['locale'],_0x345ea1=_0x2750bd['plugins']['get']('Dialog'),_0x4e3489=_0x2750bd['plugins']['get']('RevisionTracker');function _0x14b9dc(_0x1652c7){_0x2750bd['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1652c7['revisionName']?_0x1652c7['revisionNameInputView']['errorText']=R(_0x8d76d3,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2750bd['plugins']['get'](l)['saveRevision']({'name':_0x1652c7['revisionName']}),_0x345ea1['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x14b9dc(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x345ea1['show']({'id':'revisionSave','title':R(_0x8d76d3,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x2750bd['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x345ea1['hide']()},{'label':R(_0x2750bd['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x35b125){_0x35b125['bind']('isEnabled')['to'](_0x4e3489,'isReady',_0x4e3489,'isEnabled',_0x2750bd,'isReadOnly',(_0x198b7f,_0x3b2d2d,_0x2671a0)=>_0x198b7f&&_0x3b2d2d&&!_0x2671a0);},'onExecute':()=>_0x14b9dc(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x23e33a=this['editor'],_0xc8f2f6=_0x23e33a['locale'];this['_saveRevisionFormView']=new hs(_0xc8f2f6,_0x23e33a['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x4ddaa8,_0xb18e3e){super(_0x4ddaa8),this['_model']=_0xb18e3e,this['changeId']=_0xb18e3e['id'];const _0x294a9b=this['bindTemplate'],_0x384f1e=R(_0x4ddaa8,_0xb18e3e['data']['isSuggestion']?'Suggested\x20by':'add'==_0xb18e3e['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xb18e3e['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x294a9b['to']('type',_0x3497de=>'ck-revision-change__'+_0x3497de)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x384f1e}]},{'text':'\x20'+_0xb18e3e['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x6ba935(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x381d34){super(),this['id']=_0x381d34['id']||_0x34c6ad(),this['author']=_0x381d34['author'],this['type']=_0x381d34['type'],this['data']=_0x381d34['data']||{},this['rootName']=_0x381d34['rootName'],this['set']('createdAt',_0x381d34['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(_0x471dab,_0x317b95){this['newRevisionId']=_0x471dab,this['oldRevisionId']=_0x317b95,this['changes']=new _0x4cc07d();}['_setChanges'](_0x131669){for(const _0x3bb0d7 of _0x131669)this['changes']['add'](_0x3bb0d7);}}const Z={'c':_0x4bf35c,'a':_0x3e2abd,'e':_0x4b8dad,'r':_0x5416a7,'u':_0x2dea23};class d extends _0x212b78{['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[_0x5f0bf6,_0x5355f9,j];}constructor(_0x239c78){super(_0x239c78),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',(_0x3d94e3,_0x418997,_0x447f94)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x470da5=>{for(const _0x4a09da of this['editor']['editing']['view']['document']['roots'])_0x447f94?_0x470da5['removeClass']('ck-editor__editable__overlay',_0x4a09da):_0x470da5['addClass']('ck-editor__editable__overlay',_0x4a09da);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x13c6c2=>null!==_0x13c6c2),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3a4292,_0x5f4b12,_0x8bf515)=>_0x3a4292&&_0x8bf515?_0x5f4b12['changes']['getIndex'](_0x8bf515):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x334168,_0x46e349)=>_0x334168?_0x46e349['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5355f9);}['init'](){const _0x4f9dec=this['editor'],_0x34c2f3=new yt(_0x4f9dec,{'direction':'backward'}),_0x5cc868=new yt(_0x4f9dec,{'direction':'forward'});(_0x4f9dec['commands']['add']('showPreviousChange',_0x34c2f3),_0x4f9dec['commands']['add']('showNextChange',_0x5cc868),_0x4f9dec['commands']['add']('restoreRevision',new _t(_0x4f9dec)),this['on']('change:numberOfChanges',()=>{_0x34c2f3['refresh'](),_0x5cc868['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4f9dec['enableReadOnlyMode']('revision-viewer'),_0x4f9dec['plugins']['has']('WidgetToolbarRepository'))&&_0x4f9dec['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x39e969){await this['loadRevisionData'](_0x39e969);const _0x1b67ff={};for(const _0x27a6c3 in _0x39e969['diffData']){if(_0x39e969['diffData'][_0x27a6c3]['attachChange']&&!_0x39e969['diffData'][_0x27a6c3]['attachChange']['isAttached'])continue;const _0x59c5c5=this['_removeRevisionMarkers'](JSON['parse'](_0x39e969['diffData'][_0x27a6c3]['insertions'])),_0x5e99cc=this['editor']['editing']['view']['document'],_0x272d1d=new _0x3d27d9(_0x5e99cc,_0x59c5c5['map'](_0x4e9df4=>this['_getViewObj'](_0x4e9df4)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1b67ff[_0x27a6c3]=this['editor']['data']['processor']['toData'](_0x272d1d),this['editor']['data']['processor']['useFillerType']('default');}return _0x1b67ff;}async['getRevisionRootsAttributes'](_0x576f51){await this['loadRevisionData'](_0x576f51);const _0x7581da={};for(const _0x7e3378 in _0x576f51['diffData'])_0x576f51['diffData'][_0x7e3378]['attachChange']&&!_0x576f51['diffData'][_0x7e3378]['attachChange']['isAttached']||(_0x7581da[_0x7e3378]=_0x576f51['diffData'][_0x7e3378]['attributesAfter']||{});return _0x7581da;}['_removeRevisionMarkers'](_0x53dee8){return(_0x53dee8=_0x53dee8['filter'](_0x437c76=>!_0x437c76['name']||'revision-start'!==_0x437c76['name']&&'revision-end'!==_0x437c76['name']))['forEach'](_0x175c3e=>{'string'!=typeof _0x175c3e&&(_0x175c3e['children']=this['_removeRevisionMarkers'](_0x175c3e['children']),_0x175c3e['attributes']=_0x175c3e['attributes']['filter'](_0x339739=>!_0x339739[0x0]['startsWith']('data-revision-')));}),_0x53dee8;}async['compare'](_0x1af48f,_0x22e990,_0x1d2216=!0x1){if(!this['isEnabled'])return;const _0x394978=this['diff'],_0x4d5713=this['repository'],_0x2d4f80='string'==typeof _0x1af48f?_0x4d5713['getRevision'](_0x1af48f):_0x1af48f,_0x302396='string'==typeof _0x22e990?_0x4d5713['getRevision'](_0x22e990):_0x22e990,_0x3c98c6=_0x2d4f80['id'],_0x1ea818=_0x302396?_0x302396['id']:null;if(!_0x1d2216&&this['diff']&&this['diff']['newRevisionId']===_0x3c98c6&&this['diff']['oldRevisionId']===_0x1ea818)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x3c98c6,_0x1ea818);const _0x596dc0=this['_getRevisionsRange'](_0x2d4f80,_0x302396,!0x0)['map'](_0x32a306=>this['loadRevisionData'](_0x32a306));return _0x596dc0['push'](new Promise(_0x292442=>{setTimeout(_0x292442,0x14);})),Promise['all'](_0x596dc0)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4fe614=this['_getDiff'](_0x3c98c6,_0x1ea818);for(const _0xc22fed of _0x4fe614['changes'])this['_changeIdToChange']['set'](_0xc22fed['id'],_0xc22fed);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x151288=>{for(const _0x50406f of this['editor']['model']['document']['getRootNames']())_0x151288['detachRoot'](_0x50406f);for(const _0x3e4070 of Object['keys'](_0x4fe614['model'])){const _0x445bab=_0x151288['addRoot'](_0x3e4070);for(const _0x57342e of Object['keys'](_0x4fe614['attributes'][_0x3e4070]))_0x151288['setAttribute'](_0x57342e,_0x4fe614['attributes'][_0x3e4070][_0x57342e],_0x445bab);_0x151288['insert'](_0x4fe614['model'][_0x3e4070],_0x445bab,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4fe614['changes'])),this['isReady']=!0x0;})['catch'](_0x4f0c61=>{console['error'](_0x4f0c61),this['_cleanUp'](),_0x394978&&(this['diff']=_0x394978),this['isReady']=!0x0;});}['addRevisionData'](_0x1e6de7,_0x3a050e){const _0x4f1835=this['repository']['createRevision'](_0x1e6de7);return _0x4f1835['on']('_update',(_0x3ff5e1,_0x3674ed,_0x38970c)=>_0x3a050e(_0x3674ed,_0x38970c,_0x4f1835)),this['repository']['addRevision'](_0x4f1835),_0x4f1835;}['loadRevisionData'](_0x21b355){if(!_0x21b355||_0x21b355['diffData'])return Promise['resolve']();{const _0x518f7d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x518f7d,'revisionId':_0x21b355['id']})['then'](_0x9363f=>{_0x21b355['_update']({'diffData':_0x9363f['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},_0x2f4153=>{for(const _0x21feba of this['editor']['model']['document']['getRootNames']())_0x2f4153['detachRoot'](_0x21feba);});}['_sortAndFilterDiffChanges'](_0x428871){const _0x318425=[],_0x346263=new Map();for(const _0x36bb6c of this['editor']['model']['document']['getRootNames']()){const _0x3d7bab=this['editor']['editing']['view']['getDomRoot'](_0x36bb6c);if(!_0x3d7bab)continue;const _0x2572ec=_0x3d7bab['getClientRects']()['item'](0x0);_0x2572ec&&(_0x318425['push'](_0x36bb6c),_0x346263['set'](_0x36bb6c,_0x2572ec));}return _0x318425['sort']((_0xd40925,_0x3d3802)=>{const _0x511aaa=_0x346263['get'](_0xd40925),_0x5bdcaf=_0x346263['get'](_0x3d3802);return _0x511aaa['y']-_0x5bdcaf['y']||_0x511aaa['x']-_0x5bdcaf['x'];}),(_0x428871=_0x428871['filter'](_0xe6894c=>_0x318425['includes'](_0xe6894c['rootName'])))['sort']((_0xca1ffb,_0x4090b2)=>_0x318425['indexOf'](_0xca1ffb['rootName'])-_0x318425['indexOf'](_0x4090b2['rootName'])),_0x428871;}['_makeTape'](_0x4d565d){const _0x1910e9=Array['from'](_0x4d565d['markers'])['filter'](([_0x447b55,_0x4e7fd5])=>_0x447b55['startsWith']('revision:')&&!_0x4e7fd5['isCollapsed']),_0x4b5a40=Array['from'](this['editor']['model']['createRangeIn'](_0x4d565d)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1910e9['length'])for(const _0x4423cc of _0x4b5a40){const [_0x3d6591,_0x5484f2]=_0x1910e9[0x0],[,_0x4a4923,_0x315b4f]=_0x3d6591['split'](':');if(_0x5484f2['end']['isEqual'](_0x4423cc['nextPosition'])&&_0x1910e9['shift'](),(_0x4423cc['previousPosition']['isEqual'](_0x5484f2['start'])||_0x4423cc['previousPosition']['isAfter'](_0x5484f2['start']))&&('insertion'==_0x4a4923?_0x4423cc['isAdded']={'userId':_0x315b4f}:'deletion'==_0x4a4923&&(_0x4423cc['isRemoved']={'userId':_0x315b4f})),0x0==_0x1910e9['length'])break;}return _0x4b5a40;}['_refreshStartEndIndex'](_0x141c19){const _0x2da983=new Map();for(let _0x407edf=0x0;_0x407edf<_0x141c19['length'];_0x407edf++)'text'===_0x141c19[_0x407edf]['type']?(_0x141c19[_0x407edf]['item']['startIndex']=_0x407edf,_0x141c19[_0x407edf]['item']['endIndex']=_0x407edf):('elementStart'===_0x141c19[_0x407edf]['type']?_0x141c19[_0x407edf]['item']['startIndex']=_0x407edf:'elementEnd'===_0x141c19[_0x407edf]['type']&&(_0x141c19[_0x407edf]['item']['endIndex']=_0x407edf),_0x2da983['set'](_0x141c19[_0x407edf]['id'],_0x407edf));for(const _0x1ea2fa of _0x2da983['values']())'elementStart'===_0x141c19[_0x1ea2fa]['type']?_0x141c19[_0x1ea2fa]['item']['endIndex']=_0x2da983['get'](_0x141c19[_0x1ea2fa]['pairId']):'elementEnd'===_0x141c19[_0x1ea2fa]['type']&&(_0x141c19[_0x1ea2fa]['item']['startIndex']=_0x2da983['get'](_0x141c19[_0x1ea2fa]['pairId']));}['_processTape'](_0x5d7f70){for(let _0x19fe1a=0x0;_0x19fe1a<_0x5d7f70['length'];_0x19fe1a++){if('elementStart'===_0x5d7f70[_0x19fe1a]['type'])_0x5d7f70[_0x19fe1a]['item']['startIndex']=_0x19fe1a;else{if('elementEnd'===_0x5d7f70[_0x19fe1a]['type']){_0x5d7f70[_0x19fe1a]['item']['endIndex']=_0x19fe1a;const _0x319773=_0x5d7f70[_0x19fe1a]['item']['startIndex'];_0x5d7f70[_0x319773]['pairId']=_0x5d7f70[_0x19fe1a]['id'],_0x5d7f70[_0x19fe1a]['pairId']=_0x5d7f70[_0x319773]['id'];}else _0x5d7f70[_0x19fe1a]['item']['startIndex']=_0x19fe1a,_0x5d7f70[_0x19fe1a]['item']['endIndex']=_0x19fe1a,_0x5d7f70[_0x19fe1a]['pairId']=null;}_0x5d7f70[_0x19fe1a]['markersStart']||(_0x5d7f70[_0x19fe1a]['markersStart']=[],_0x5d7f70[_0x19fe1a]['markersEnd']=[]);}}['_markInsertions'](_0x440958,_0x5d7c7b){const _0xd3b7ef=_0x440958['filter'](_0x138d4a=>!_0x138d4a['isAdded']);for(let _0x59413c=0x0;_0x59413c<_0x5d7c7b['length'];_0x59413c++)_0x5d7c7b[_0x59413c]['isAdded']&&(_0xd3b7ef[_0x59413c]['isAdded']=_0x5d7c7b[_0x59413c]['isAdded']);}['_makeModelFromViewString'](_0x53c860){const _0x21f610=JSON['parse'](_0x53c860),_0x23cfbc=this['editor']['editing']['view']['document'],_0x567ca0=new _0x3d27d9(_0x23cfbc,_0x21f610['map'](_0x4b0f1a=>this['_getViewObj'](_0x4b0f1a)));return this['editor']['data']['toModel'](_0x567ca0);}['_getViewObj'](_0x32599c){const _0x5cad2a=this['editor']['editing']['view']['document'];if('string'==typeof _0x32599c)return new _0x3812af(_0x5cad2a,_0x32599c);{const _0x30e487=_0x32599c['children']['map'](_0x330065=>this['_getViewObj'](_0x330065));return new(Z[_0x32599c['type']]||_0x27385a)(_0x5cad2a,_0x32599c['name'],_0x32599c['attributes'],_0x30e487);}}['_getDiff'](_0x417698,_0x527cfa=null){const _0x185365=this['repository']['getRevision'](_0x417698),_0x2d5b19=_0x527cfa?this['repository']['getRevision'](_0x527cfa):null,_0x1e7fa7=this['_getRevisionsRange'](_0x185365,_0x2d5b19),_0x10c2b1=_0x1e7fa7[_0x1e7fa7['length']-0x1],_0x8fbfb6=new Map(),_0x29d12f={'model':{},'attributes':{},'changes':[]},_0x39f43e=new Set(),_0x4f91d8=new Map();for(let _0x248254=_0x1e7fa7['length']-0x1;_0x248254>=0x0;_0x248254--){const _0x3723bc=_0x1e7fa7[_0x248254];for(const _0x174cfe of Object['keys'](_0x3723bc['diffData']))if(_0x3723bc['diffData'][_0x174cfe]['attachChange']){const _0x3d93ae=_0x3723bc['diffData'][_0x174cfe]['attachChange'];_0x3d93ae['isAttached']?(_0x39f43e['add'](_0x174cfe),_0x4f91d8['has'](_0x174cfe)&&_0x4f91d8['get'](_0x174cfe)['userId']==_0x3d93ae['userId']?_0x4f91d8['delete'](_0x174cfe):_0x4f91d8['set'](_0x174cfe,_0x3d93ae)):_0x4f91d8['has'](_0x174cfe)?(_0x39f43e['delete'](_0x174cfe),_0x4f91d8['delete'](_0x174cfe)):(_0x39f43e['add'](_0x174cfe),_0x4f91d8['set'](_0x174cfe,_0x3d93ae));}else _0x39f43e['add'](_0x174cfe);}for(const _0xfc578f of _0x39f43e){const _0x3aaf63=_0x4f91d8['has'](_0xfc578f)&&!_0x4f91d8['get'](_0xfc578f)['isAttached'];let _0x3faa60=_0x3aaf63?_0x1e7fa7['length']-0x1:0x0;const _0x313a43=_0x3aaf63?-0x1:0x1;for(;_0x1e7fa7[_0x3faa60];){const _0xca3487=_0x1e7fa7[_0x3faa60];if(_0xca3487['diffData'][_0xfc578f]){const _0x5a0d16=_0x3aaf63?_0xca3487['diffData'][_0xfc578f]['attributesBefore']:_0xca3487['diffData'][_0xfc578f]['attributesAfter'];_0x29d12f['attributes'][_0xfc578f]=_0x5a0d16?_0x315ac7(_0x5a0d16):{};break;}_0x3faa60+=_0x313a43;}}for(const _0xc62521 of _0x1e7fa7){_0xc62521['model']={};for(const _0x3e10de of _0xc62521['authors'])_0x8fbfb6['set'](_0x3e10de['id'],_0x3e10de);for(const _0x3108e7 of _0x39f43e){const _0x2745d4=_0xc62521['diffData'][_0x3108e7]?_0xc62521['diffData'][_0x3108e7]['insertions']:'[]',_0x2c2d1f=_0xc62521['diffData'][_0x3108e7]?_0xc62521['diffData'][_0x3108e7]['deletions']:'[]';_0xc62521['model'][_0x3108e7]={'insertions':this['_makeModelFromViewString'](_0x2745d4),'deletions':this['_makeModelFromViewString'](_0x2c2d1f)};}}for(const _0x37a779 of _0x39f43e){let _0x2d6f11=null,_0x29f9eb=0x0;const _0x196db0=new Map(Array['from'](_0x185365['model'][_0x37a779]['insertions']['markers'])['filter'](([_0x5d2060])=>!_0x5d2060['startsWith']('revision:')));let _0x414362=0x0;for(const _0x3ae7ee of _0x1e7fa7){const _0x1b10eb=this['_makeTape'](_0x3ae7ee['model'][_0x37a779]['insertions']);_0x3ae7ee==_0x185365?(_0x2d6f11=_0x1b10eb,_0x29f9eb=_0x2d6f11['length'],_0x2d6f11['forEach'](_0x53d57c=>{_0x53d57c['id']=_0x414362++;}),this['_processTape'](_0x2d6f11)):this['_markInsertions'](_0x2d6f11,_0x1b10eb);const _0x2b974c=_0x2d6f11['filter'](_0x5b0c31=>!_0x5b0c31['isAdded'])['map'](_0x494f9f=>_0x494f9f['id']);let _0x3fdd69=0x0;const _0x1374e0=this['_makeTape'](_0x3ae7ee['model'][_0x37a779]['deletions']);_0x1374e0['forEach'](_0x471a1a=>{_0x471a1a['isRemoved']?_0x471a1a['id']=_0x29f9eb++:_0x471a1a['id']=_0x2b974c[_0x3fdd69++];}),this['_processTape'](_0x1374e0),this['_setDistance'](_0x2d6f11,'isAdded'),this['_setDistance'](_0x1374e0,'isRemoved'),_0x3ae7ee==_0x185365&&this['_markMarkers'](_0x2d6f11,_0x196db0),_0x2d6f11=this['_joinTapes'](_0x2d6f11,_0x1374e0),this['_refreshStartEndIndex'](_0x2d6f11),this['_setDistance'](_0x2d6f11,'isRemoved');}_0x2d6f11=_0x2d6f11['filter'](_0x457176=>!(_0x457176['isAdded']&&_0x457176['isRemoved']));const _0x48ea9c=new Map(_0x10c2b1['model'][_0x37a779]['deletions']['markers']),_0x5236c0=new Set(_0x196db0['keys']());for(const _0x55cfbd of _0x48ea9c['keys']())_0x5236c0['delete'](_0x55cfbd);this['_markSuggestions'](_0x2d6f11,_0x5236c0),this['_fixObsoleteTags'](_0x2d6f11),_0x2d6f11=this['_removeMissingPairs'](_0x2d6f11),_0x2d6f11=this['_markMismatchedRemovedTags'](_0x2d6f11),_0x2d6f11=this['_removeUnsupportedChanges'](_0x2d6f11);const {root:_0x1d84c7,changes:_0x22a5e0}=this['_makeModelFromTape'](_0x2d6f11,_0x8fbfb6,_0x37a779);_0x29d12f['model'][_0x37a779]=_0x1d84c7;const _0x18b52b=_0x4f91d8['get'](_0x37a779);if(_0x18b52b){const _0x34e02d=_0x8fbfb6['get'](_0x18b52b['userId']),_0x42d23a=new r({'author':_0x34e02d,'type':_0x18b52b['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x37a779});_0x22a5e0['unshift'](_0x42d23a),_0x29d12f['attributes'][_0x37a779]['revisionHistoryAttachChange']=_0x42d23a['id'];}_0x29d12f['changes']=_0x29d12f['changes']['concat'](_0x22a5e0);}return _0x29d12f;}['_markMarkers'](_0x54420a,_0x4dfc65){for(let _0x5cdea6=0x0;_0x5cdea6<_0x54420a['length'];_0x5cdea6++)for(const [_0x197fb6,_0x1bb35a]of _0x4dfc65)_0x1bb35a['start']['isEqual'](_0x54420a[_0x5cdea6]['previousPosition'])&&_0x54420a[_0x5cdea6]['markersStart']['push'](_0x197fb6),_0x1bb35a['end']['isEqual'](_0x54420a[_0x5cdea6]['nextPosition'])&&_0x54420a[_0x5cdea6]['markersEnd']['push'](_0x197fb6);}['_joinTapes'](_0x94461e,_0x2ae199){let _0x113b7f=[],_0x84aa8d=0x0,_0x46d6b4=0x0;for(;_0x84aa8d<_0x94461e['length']||_0x46d6b4<_0x2ae199['length'];){const _0x1823a7=_0x94461e[_0x84aa8d]||{},_0x50d5e2=_0x2ae199[_0x46d6b4]||{};if(_0x1823a7['id']==_0x50d5e2['id'])_0x84aa8d++,_0x46d6b4++,_0x113b7f['push'](_0x1823a7);else{if(_0x50d5e2['isRemoved']&&_0x1823a7['isAdded']){const {commonTape:_0xa05495,iEnd:_0x2692ca,jEnd:_0x3c591e}=this['_threeWayMerge'](_0x94461e,_0x84aa8d,_0x2ae199,_0x46d6b4);_0x113b7f=_0x113b7f['concat'](_0xa05495),_0x84aa8d=_0x2692ca,_0x46d6b4=_0x3c591e;}else _0x50d5e2['isRemoved']?(_0x46d6b4++,_0x113b7f['push'](_0x50d5e2)):(_0x84aa8d++,_0x113b7f['push'](_0x1823a7));}}return _0x113b7f;}['_markSuggestions'](_0x5d178d,_0x4d20e8){const _0x5d6289=[];for(let _0x5d2108=0x0;_0x5d2108<_0x5d178d['length'];_0x5d2108++){for(let _0x443f36=0x0;_0x443f36<_0x5d178d[_0x5d2108]['markersStart']['length'];_0x443f36++){const _0x178313=_0x5d178d[_0x5d2108]['markersStart'][_0x443f36];if(!_0x4d20e8['has'](_0x178313))continue;const {group:_0x39a7c6,type:_0x20eb0f,authorId:_0x3fd79b}=_0x35ce47(_0x178313);'revision-suggestion'!=_0x39a7c6||'insertion'!=_0x20eb0f&&'deletion'!=_0x20eb0f||(_0x5d6289['unshift']({'type':_0x20eb0f,'name':_0x178313,'userId':_0x3fd79b}),_0x5d178d[_0x5d2108]['markersStart']['splice'](_0x443f36,0x1),_0x443f36--);}_0x139f53(_0x5d178d[_0x5d2108]);for(let _0xa519=0x0;_0xa519<_0x5d178d[_0x5d2108]['markersEnd']['length'];_0xa519++){const _0x189814=_0x5d178d[_0x5d2108]['markersEnd'][_0xa519];if(!_0x4d20e8['has'](_0x189814))continue;const {group:_0x469559,type:_0x5beb3e}=_0x35ce47(_0x189814);if('revision-suggestion'!=_0x469559||'insertion'!=_0x5beb3e&&'deletion'!=_0x5beb3e)continue;_0x5d178d[_0x5d2108]['markersEnd']['splice'](_0xa519,0x1),_0xa519--;const _0x31b28d=_0x5d6289['findIndex'](_0x5e528d=>_0x5e528d['name']==_0x189814);_0x31b28d>-0x1&&_0x5d6289['splice'](_0x31b28d,0x1);}}function _0x35ce47(_0x413857){const _0xaaf2b5=_0x413857['split'](':');return{'group':_0xaaf2b5[0x0],'type':_0xaaf2b5[0x1],'subType':_0xaaf2b5['length']>=0x5?_0xaaf2b5[0x2]:null,'id':_0xaaf2b5['length']<0x5?_0xaaf2b5[0x2]:_0xaaf2b5[0x3],'authorId':_0xaaf2b5['length']<0x5?_0xaaf2b5[0x3]:_0xaaf2b5[0x4],'markerCount':0x6==_0xaaf2b5['length']?_0xaaf2b5[0x5]:null};}function _0x139f53(_0x1ff761){for(let _0x562aad=0x0;_0x562aad<_0x5d6289['length'];_0x562aad++){if(_0x1ff761['isAdded']&&'insertion'==_0x5d6289[_0x562aad]['type'])return _0x1ff761['isAddSuggestion']=_0x5d6289[_0x562aad],void delete _0x1ff761['isAdded'];if(!_0x1ff761['isAdded']&&!_0x1ff761['isRemoved']&&'deletion'==_0x5d6289[_0x562aad]['type'])return void(_0x1ff761['isRemoveSuggestion']=_0x5d6289[_0x562aad]);}}}['_setDistance'](_0x5dbcfd,_0x28cee8){let _0x2e3f4f=0x0,_0x1e6359=!0x1;const _0x2c8c3f=new Map();for(const _0xc8035f of _0x5dbcfd)_0xc8035f[_0x28cee8]?_0x1e6359&&(_0x2e3f4f++,_0x1e6359=!0x1):(_0x2e3f4f++,_0x1e6359=!0x0),_0x2c8c3f['set'](_0xc8035f['id'],_0x2e3f4f);for(let _0x496b71=0x0;_0x496b71<_0x5dbcfd['length'];_0x496b71++){if('isRemoved'==_0x28cee8&&_0x5dbcfd[_0x496b71]['isAdded']||'isAdded'==_0x28cee8&&_0x5dbcfd[_0x496b71]['isRemoved'])continue;if('text'==_0x5dbcfd[_0x496b71]['type']){_0x5dbcfd[_0x496b71]['distance']=0x0;continue;}const _0x1bf435=_0x2c8c3f['get'](_0x5dbcfd[_0x496b71]['pairId']),_0x92fc58=_0x2c8c3f['get'](_0x5dbcfd[_0x496b71]['id']);_0x5dbcfd[_0x496b71]['distance']=_0x1bf435-_0x92fc58;}}['_getRevisionsRange'](_0x574b15,_0x5cf89d,_0x3bfb75=!0x1){const _0x235b4b=[];let _0x9e037f=this['repository']['getIndex'](_0x574b15),_0x47c306=this['repository']['getIndex'](_0x5cf89d);for(-0x1==_0x47c306&&(_0x47c306=this['repository']['_revisions']['length'],_0x3bfb75=!0x1);_0x9e037f<_0x47c306;)_0x235b4b['push'](this['repository']['getRevision'](_0x9e037f)),_0x9e037f++;return _0x3bfb75&&_0x235b4b['push'](this['repository']['getRevision'](_0x9e037f)),_0x235b4b;}['_threeWayMerge'](_0x4ee000,_0x1eabde,_0x139b32,_0x3d4667){const _0x5f067a=this['editor']['model']['schema'];let _0x43c012=_0x1eabde;for(;_0x4ee000[_0x43c012]&&_0x4ee000[_0x43c012]['isAdded'];)_0x43c012++;let _0x221fae=_0x3d4667;for(;_0x139b32[_0x221fae]&&_0x139b32[_0x221fae]['isRemoved'];)_0x221fae++;_0x30077b(_0x4ee000,_0x1eabde,_0x43c012),_0x30077b(_0x139b32,_0x3d4667,_0x221fae);const _0x290d1d=_0x139b32['slice'](_0x3d4667,_0x221fae)['concat'](_0x4ee000['slice'](_0x1eabde,_0x43c012));return _0x290d1d['sort']((_0x25b8a6,_0x5efac0)=>_0x25b8a6['side']!=_0x5efac0['side']?_0x25b8a6['side']-_0x5efac0['side']:_0x25b8a6['level']!=_0x5efac0['level']?_0x25b8a6['level']-_0x5efac0['level']:_0x25b8a6['distance']!=_0x5efac0['distance']?_0x5efac0['distance']-_0x25b8a6['distance']:!!_0x25b8a6['isAdded']!=!!_0x5efac0['isAdded']?-0x1==_0x25b8a6['side']||0x0==_0x25b8a6['side']?_0x25b8a6['isAdded']?-0x1:0x1:_0x25b8a6['isAdded']?0x1:-0x1:_0x25b8a6['index']-_0x5efac0['index']),{'commonTape':_0x290d1d,'iEnd':_0x43c012,'jEnd':_0x221fae};function _0x30077b(_0x152f1b,_0x1ca9f7,_0x15d51b){let _0xf65262=-0x1,_0x2ccbfc=Number['POSITIVE_INFINITY'],_0x3ce613=!0x0;for(let _0x22d876=_0x1ca9f7;_0x22d876<_0x15d51b;_0x22d876++)if(_0x5f067a['isInline'](_0x152f1b[_0x22d876]['item'])||(_0x3ce613=!0x1),_0x152f1b[_0x22d876]['item']['startIndex']<_0x1ca9f7&&(_0xf65262=_0x22d876),_0x152f1b[_0x22d876]['item']['endIndex']>=_0x15d51b){_0x2ccbfc=_0x22d876;break;}_0x3ce613&&(_0xf65262=_0x15d51b-0x1);for(let _0x33aa71=_0x1ca9f7;_0x33aa71<_0x15d51b;_0x33aa71++)_0x152f1b[_0x33aa71]['side']=_0x33aa71<=_0xf65262?-0x1:_0x33aa71<_0x2ccbfc?0x0:0x1,_0x152f1b[_0x33aa71]['index']=_0x33aa71;let _0x383224=0x0;for(let _0x568dcf=_0x1ca9f7;_0x568dcf<=_0xf65262;_0x568dcf++)0x0==_0x152f1b[_0x568dcf]['distance']?_0x152f1b[_0x568dcf]['level']=_0x383224:(_0x383224++,_0x152f1b[_0x568dcf]['level']=_0x383224,_0x383224++);for(let _0x593441=_0x1ca9f7;_0x593441<_0x15d51b;_0x593441++)0x0==_0x152f1b[_0x593441]['side']&&(_0x152f1b[_0x593441]['level']=_0x383224);_0x383224=0x0;for(let _0x47253b=_0x15d51b-0x1;_0x47253b>=_0x2ccbfc;_0x47253b--)0x0==_0x152f1b[_0x47253b]['distance']?_0x152f1b[_0x47253b]['level']=_0x383224:(_0x383224--,_0x152f1b[_0x47253b]['level']=_0x383224,_0x383224--);}}['_fixObsoleteTags'](_0x4b7dee){const _0x2d79e4=new Map(),_0x44bb23=this['editor']['model']['schema'];for(let _0x48eca2=0x1;_0x48eca2<_0x4b7dee['length'];_0x48eca2++){let _0x5c79a9,_0x5b5880,_0x1e673d;const _0x30f96d=_0x4b7dee[_0x48eca2],_0x14006c=_0x4b7dee[_0x48eca2-0x1];if('text'==_0x30f96d['type'])continue;if(_0x30f96d['type']!=_0x14006c['type'])continue;if(!_0x44bb23['isBlock'](_0x14006c['item'])||_0x44bb23['isLimit'](_0x14006c['item']))continue;if(!_0x44bb23['isBlock'](_0x30f96d['item'])||_0x44bb23['isLimit'](_0x30f96d['item']))continue;if((_0x4b7dee[_0x48eca2]['isAdded']||_0x4b7dee[_0x48eca2]['isAddSuggestion'])&&_0x4b7dee[_0x48eca2-0x1]['isRemoved'])_0x5c79a9=_0x4b7dee[_0x48eca2],_0x5b5880=_0x4b7dee[_0x48eca2-0x1],_0x1e673d=_0x48eca2-0x1;else{if(!_0x4b7dee[_0x48eca2]['isRemoved']||!_0x4b7dee[_0x48eca2-0x1]['isAdded']&&!_0x4b7dee[_0x48eca2-0x1]['isAddSuggestion'])continue;_0x5c79a9=_0x4b7dee[_0x48eca2-0x1],_0x5b5880=_0x4b7dee[_0x48eca2],_0x1e673d=_0x48eca2;}const _0x37eb63=_0x5c79a9['level']==_0x5b5880['level'],_0x4c77ec=Math['abs'](_0x5c79a9['level'])<Math['abs'](_0x5b5880['level'])&&0x0==_0x5b5880['distance'];(_0x37eb63||_0x4c77ec)&&(_0x2d79e4['set'](_0x5b5880['id'],_0x5c79a9['id']),_0x4b7dee['splice'](_0x1e673d,0x1),_0x48eca2--,_0x5c79a9['isAdded']=!0x1);}for(let _0xce38fe=0x0;_0xce38fe<_0x4b7dee['length'];_0xce38fe++)_0x2d79e4['has'](_0x4b7dee[_0xce38fe]['pairId'])&&(_0x4b7dee[_0xce38fe]['pairId']=_0x2d79e4['get'](_0x4b7dee[_0xce38fe]['pairId']));}['_removeMissingPairs'](_0x1cfd1d){const _0x320a80=new Set(_0x1cfd1d['map'](_0x5ae916=>_0x5ae916['id']));for(let _0x401c2b=0x0;_0x401c2b<_0x1cfd1d['length'];_0x401c2b++)_0x320a80['has'](_0x1cfd1d[_0x401c2b]['pairId'])||0x0==_0x1cfd1d[_0x401c2b]['distance']||(_0x1cfd1d[_0x401c2b]['isIncorrect']=!0x0);return _0x1cfd1d['filter'](_0x5b2dcb=>!_0x5b2dcb['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2c5585){const _0x5de05a=new Set();for(let _0x58859c=0x0;_0x58859c<_0x2c5585['length'];_0x58859c++){if(_0x5de05a['has'](_0x2c5585[_0x58859c]['id'])&&_0x2c5585[_0x58859c]['isRemoved']&&(_0x2c5585[_0x58859c]['isIncorrect']=!0x0),_0x2c5585[_0x58859c]['isIncorrect'])continue;if(0x0==_0x2c5585[_0x58859c]['distance'])continue;if('elementStart'!=_0x2c5585[_0x58859c]['type'])continue;if(null==_0x2c5585[_0x58859c]['pairId'])continue;let _0x4d307f=_0x58859c+0x1,_0x434794=0x0;for(;_0x2c5585[_0x4d307f]['id']!=_0x2c5585[_0x58859c]['pairId'];)'elementStart'==_0x2c5585[_0x4d307f]['type']?_0x434794++:'elementEnd'==_0x2c5585[_0x4d307f]['type']&&_0x434794--,_0x4d307f++;if(0x0!=_0x434794){if(_0x2c5585[_0x58859c]['isRemoved'])_0x2c5585[_0x58859c]['isIncorrect']=!0x0;else{for(;_0x4d307f!=_0x58859c;)_0x2c5585[_0x4d307f]['isRemoved']&&0x0!=_0x2c5585[_0x4d307f]['distance']&&(_0x2c5585[_0x4d307f]['isIncorrect']=!0x0,_0x5de05a['add'](_0x2c5585[_0x4d307f]['pairId'])),_0x4d307f--;}}}return _0x2c5585['filter'](_0x3c013e=>!_0x3c013e['isIncorrect']);}['_removeUnsupportedChanges'](_0x4cfdf4){const _0x2b8e98=this['editor']['model']['schema'];for(let _0x1e75c5=0x0;_0x1e75c5<_0x4cfdf4['length'];_0x1e75c5++){if(!(_0x4cfdf4[_0x1e75c5]['isAdded']||_0x4cfdf4[_0x1e75c5]['isAddSuggestion']||_0x4cfdf4[_0x1e75c5]['isRemoved']||_0x4cfdf4[_0x1e75c5]['isRemoveSuggestion']))continue;if(0x0==_0x4cfdf4[_0x1e75c5]['distance'])continue;const _0x236a87=_0x4cfdf4[_0x1e75c5]['item'];_0x2b8e98['isBlock'](_0x236a87)||_0x2b8e98['isLimit'](_0x236a87)||(_0x4cfdf4[_0x1e75c5]['isAdded']&&delete _0x4cfdf4[_0x1e75c5]['isAdded'],_0x4cfdf4[_0x1e75c5]['isAddSuggestion']&&delete _0x4cfdf4[_0x1e75c5]['isAddSuggestion'],_0x4cfdf4[_0x1e75c5]['isRemoveSuggestion']&&delete _0x4cfdf4[_0x1e75c5]['isRemoveSuggestion'],_0x4cfdf4[_0x1e75c5]['isRemoved']&&(_0x4cfdf4[_0x1e75c5]['isIncorrect']=!0x0));}return _0x4cfdf4['filter'](_0x462c46=>!_0x462c46['isIncorrect']);}['_makeModelFromTape'](_0x30b8e8,_0x33bee1,_0x51e3f0){const _0x210587=new mt(),_0x217a41=[],_0x4464c5=new Map(),_0x447780=this['editor']['model'],_0x34fefb=_0x447780['schema'],_0xbf64ef=[_0x210587],_0x91278e={},_0x3de93a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x45dccf=null;const _0x4f897d=[0x0];for(let _0xe7b4fe=0x0;_0xe7b4fe<_0x30b8e8['length'];_0xe7b4fe++)if('elementStart'===_0x30b8e8[_0xe7b4fe]['type']){_0x30b8e8[_0xe7b4fe]['previousPosition']=_0x447780['createPositionFromPath'](_0x210587,_0x4f897d);const _0x50b2b9=new ft(_0x30b8e8[_0xe7b4fe]['item']['name'],_0x30b8e8[_0xe7b4fe]['item']['getAttributes']());_0xbf64ef[0x0]['_appendChild'](_0x50b2b9),_0x4f897d['push'](0x0),_0xbf64ef['unshift'](_0x50b2b9),_0x30b8e8[_0xe7b4fe]['nextPosition']=_0x447780['createPositionFromPath'](_0x210587,_0x4f897d);}else'elementEnd'===_0x30b8e8[_0xe7b4fe]['type']?(_0xbf64ef['shift'](),_0x30b8e8[_0xe7b4fe]['previousPosition']=_0x447780['createPositionFromPath'](_0x210587,_0x4f897d),_0x4f897d['pop'](),_0x4f897d[_0x4f897d['length']-0x1]++,_0x30b8e8[_0xe7b4fe]['nextPosition']=_0x447780['createPositionFromPath'](_0x210587,_0x4f897d)):(_0x30b8e8[_0xe7b4fe]['previousPosition']=_0x447780['createPositionFromPath'](_0x210587,_0x4f897d),_0x45dccf?_0x45dccf['_data']+=_0x30b8e8[_0xe7b4fe]['item']['data']:_0x45dccf=new wt(_0x30b8e8[_0xe7b4fe]['item']['data'],_0x30b8e8[_0xe7b4fe]['item']['getAttributes']()),_0x30b8e8[_0xe7b4fe+0x1]&&'text'===_0x30b8e8[_0xe7b4fe+0x1]['type']&&_0x1f89b4(_0x45dccf,_0x30b8e8[_0xe7b4fe+0x1]['item'])||(_0xbf64ef[0x0]['_appendChild'](_0x45dccf),_0x45dccf=null),_0x4f897d[_0x4f897d['length']-0x1]+=_0x30b8e8[_0xe7b4fe]['item']['offsetSize'],_0x30b8e8[_0xe7b4fe]['nextPosition']=_0x447780['createPositionFromPath'](_0x210587,_0x4f897d));for(let _0x5b147c=0x0;_0x5b147c<_0x30b8e8['length'];_0x5b147c++){const _0x4f28be=_0x30b8e8[_0x5b147c]['previousPosition'],_0x433c0f=_0x30b8e8[_0x5b147c]['nextPosition'];for(const _0x4e06d1 of _0x30b8e8[_0x5b147c]['markersStart'])_0x4464c5['set'](_0x4e06d1,{'start':_0x4f28be,'end':null});_0x4e901c('isRemoveSuggestion',_0x5b147c,_0x4f28be,_0x433c0f),_0x4e901c('isAddSuggestion',_0x5b147c,_0x4f28be,_0x433c0f),_0x4e901c('isRemoved',_0x5b147c,_0x4f28be,_0x433c0f),_0x4e901c('isAdded',_0x5b147c,_0x4f28be,_0x433c0f);for(const _0x382dad of _0x30b8e8[_0x5b147c]['markersEnd']){_0x4464c5['get'](_0x382dad)['end']=_0x433c0f;}}for(const [_0x21cdb0,_0x3f878b]of _0x4464c5){const _0x3343fb=this['editor']['model']['createRange'](_0x3f878b['start'],_0x3f878b['end']);_0x210587['markers']['set'](_0x21cdb0,_0x3343fb);}return _0x217a41['sort']((_0x5cc5f7,_0xeb632e)=>{const _0x381325=_0x210587['markers']['get']('revision:'+_0x5cc5f7['id']),_0x2f587c=_0x210587['markers']['get']('revision:'+_0xeb632e['id']);return _0x381325['start']['isBefore'](_0x2f587c['start'])?-0x1:_0x381325['start']['isAfter'](_0x2f587c['start'])?0x1:_0x381325['end']['isBefore'](_0x2f587c['end'])?-0x1:_0x381325['end']['isAfter'](_0x2f587c['end'])?0x1:'add'===_0x5cc5f7['type']?-0x1:0x1;}),{'root':_0x210587,'changes':_0x217a41};function _0x4e901c(_0x4f329c,_0x365f86,_0x5e04b7,_0x5510fa){const _0x4c4395=!!_0x30b8e8[_0x365f86][_0x4f329c],_0x19ef13=_0x4c4395?_0x30b8e8[_0x365f86][_0x4f329c]['userId']:null,_0x3c00fe=_0x365f86===_0x30b8e8['length']-0x1,_0x146348=_0x3de93a[_0x4f329c][0x0],_0x2a13c3=_0x34fefb['isObject'](_0x30b8e8[_0x365f86]['item']);!_0x91278e[_0x4f329c]&&_0x4c4395?_0x91278e[_0x4f329c]={'start':_0x5e04b7,'tapeItem':_0x30b8e8[_0x365f86],'userId':_0x19ef13,'type':_0x4f329c}:_0x91278e[_0x4f329c]&&!_0x4c4395?(_0x91278e[_0x4f329c]['end']=_0x5e04b7,_0x4acf35(_0x91278e[_0x4f329c]),_0x91278e[_0x4f329c]=null):_0x91278e[_0x4f329c]&&_0x4c4395&&_0x91278e[_0x4f329c]['userId']!==_0x19ef13&&(_0x91278e[_0x4f329c]['end']=_0x5e04b7,_0x146348&&_0x146348['userId']===_0x91278e[_0x4f329c]['userId']||_0x4acf35(_0x91278e[_0x4f329c]),_0x91278e[_0x4f329c]={'start':_0x5e04b7,'tapeItem':_0x30b8e8[_0x365f86],'userId':_0x19ef13,'type':_0x4f329c}),_0x91278e[_0x4f329c]&&_0x2a13c3&&('elementStart'!==_0x30b8e8[_0x365f86]['type']||_0x146348&&_0x146348['userId']===_0x19ef13||_0x3de93a[_0x4f329c]['unshift']({'userId':_0x19ef13,'object':_0x30b8e8[_0x365f86]['item'],'change':_0x91278e[_0x4f329c]}),'elementEnd'===_0x30b8e8[_0x365f86]['type']&&_0x146348&&_0x146348['object']===_0x30b8e8[_0x365f86]['item']&&(_0x3de93a[_0x4f329c]['shift'](),_0x91278e[_0x4f329c]=_0x146348['change'])),_0x91278e[_0x4f329c]&&_0x3c00fe&&(_0x91278e[_0x4f329c]['end']=_0x5510fa,_0x4acf35(_0x91278e[_0x4f329c]),_0x91278e[_0x4f329c]=null);}function _0x4acf35({start:_0x3cc585,end:_0x5a21a6,tapeItem:_0x109f82,userId:_0x22490a,type:_0x521d7f}){const _0x4c0702=_0x109f82['item'],_0x585af0=_0x447780['schema']['isBlock'](_0x4c0702)&&!_0x447780['schema']['isLimit'](_0x4c0702),_0x5ad5b7=_0x3cc585['nodeAfter']==_0x5a21a6['parent']&&_0x5a21a6['isAtStart'];if(_0x585af0&&_0x5ad5b7)return;const _0x32a21d=_0x447780['createRange'](_0x3cc585,_0x5a21a6),_0x5b81f2=_0x33bee1['get'](_0x22490a),_0x29621d=new r({'author':_0x5b81f2,'type':'isAdded'==_0x521d7f||'isAddSuggestion'==_0x521d7f?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x521d7f||'isRemoveSuggestion'==_0x521d7f},'createdAt':new Date(),'rootName':_0x51e3f0});_0x217a41['push'](_0x29621d),_0x210587['markers']['set']('revision:'+_0x29621d['id'],_0x32a21d);}function _0x1f89b4(_0x200dce,_0x51d3dd){const _0x1e0430=_0x200dce['getAttributes'](),_0x2894db=_0x51d3dd['getAttributes']();for(const _0x5c1d06 of _0x1e0430){if(_0x5c1d06[0x1]!==_0x51d3dd['getAttribute'](_0x5c1d06[0x0]))return!0x1;_0x2894db['next']();}return _0x2894db['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x192d32=>{const _0x3bc681=_0x192d32['markerName']['split'](':')[0x1],_0x40e01b=this['_getChangeFromId'](_0x3bc681);if(!_0x40e01b)return null;const _0x11602f='add'==_0x40e01b['type']?'insertion':'deletion',_0x77b902=['ck-suggestion-marker','ck-suggestion-marker-'+_0x11602f];return _0x40e01b['data']['isSuggestion']&&_0x77b902['push']('ck-suggestion-marker-'+_0x11602f+'-new'),this['activeChange']==_0x40e01b&&_0x77b902['push']('ck-suggestion-marker--active'),{'classes':_0x77b902,'attributes':{'data-change-id':_0x3bc681}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3807a4=>{_0x3807a4['on']('element:pre',(_0x21a57c,_0x26931b,_0x5d51df)=>{const _0x1f6784=_0x26931b['viewItem']['getChild'](0x0);if(!_0x1f6784||!_0x1f6784['is']('element','code'))return;if(!_0x5d51df['consumable']['consume'](_0x1f6784,{'attributes':['vid_start','vid_end']}))return;const _0x26bcf1=_0x26931b['modelRange']['start']['nodeAfter'];_0x5d51df['writer']['setAttribute']('vid_start',_0x1f6784['getAttribute']('vid_start'),_0x26bcf1),_0x5d51df['writer']['setAttribute']('vid_end',_0x1f6784['getAttribute']('vid_end'),_0x26bcf1);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2b9943=>{_0x2b9943['on']('element',(_0x2b5e7b,_0xb165e4,_0x4724c4)=>{if(!_0x4724c4['consumable']['consume'](_0xb165e4['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xb165e4['modelRange']['isCollapsed'])return;const _0x301e3a=_0xb165e4['modelRange']['start']['nodeAfter'];_0x301e3a['hasAttribute']('vid_start')||_0x301e3a['hasAttribute']('vid')||(_0x4724c4['writer']['setAttribute']('vid_start',_0xb165e4['viewItem']['getAttribute']('vid_start'),_0x301e3a),_0x4724c4['writer']['setAttribute']('vid_end',_0xb165e4['viewItem']['getAttribute']('vid_end'),_0x301e3a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1a9163=>_0x1a9163['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5b0188,[,_0x40c81e])=>{['vid_start','vid_end','vid']['includes'](_0x40c81e)&&(_0x5b0188['return']=!0x0,_0x5b0188['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xab04ec=>{_0xab04ec['on']('attribute:vid',(_0x5a770e,_0x2bf048,_0x39c101)=>{if('\x20'!=_0x2bf048['item']['data']||_0x2bf048['item']['parent']['maxOffset']>0x1)return;if(!_0x39c101['consumable']['consume'](_0x2bf048['item'],_0x5a770e['name']))return;const _0x19f2e8=_0x39c101['writer'],_0xee8747=_0x39c101['mapper']['toViewRange'](_0x2bf048['range']);_0x19f2e8['wrap'](_0xee8747,_0x19f2e8['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2aaad2){const _0x1f2eb1=_0x2aaad2['plugins']['get']('RevisionViewer');return(_0xaf6557,_0x53e4dc,_0x33b269)=>{const _0x2f77ff=_0x53e4dc['markerName']['split'](':')[0x1],_0x474f84=_0x1f2eb1['_getChangeFromId'](_0x2f77ff);if(!_0x474f84)return null;const _0x140e71='add'==_0x474f84['type']?'split':'merge';if(!_0x33b269['consumable']['test'](_0x53e4dc['markerRange'],_0xaf6557['name']))return;const _0x41573f=_0x53e4dc['markerRange']['getWalker'](),_0x32728d=_0x53e4dc['markerRange']['start'],_0x458ec9=_0x2aaad2['model']['schema'];let _0x24dd8f=null,_0x4fe7c5=null,_0x308178=!0x1,_0x127947=!0x1;for(const _0xc781a7 of _0x41573f){const _0x3a4a07=_0xc781a7['item'];_0x308178=_0x308178||_0x458ec9['isContent'](_0x3a4a07);const _0x2963c9=_0x33b269['mapper']['toViewElement'](_0x3a4a07);if(_0x2963c9&&_0x2963c9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xc781a7['type']&&(_0x458ec9['isBlock'](_0x3a4a07)&&!_0x458ec9['isLimit'](_0x3a4a07)&&(_0x3a4a07['nextSibling']||_0x32728d['isAtEnd']?_0x24dd8f&&_0x24dd8f['parent']==_0x3a4a07||(_0x24dd8f=_0x3a4a07,_0x102e13(_0xc781a7['previousPosition']),_0x127947=!0x0):_0x4fe7c5=_0x4fe7c5||_0xc781a7['previousPosition']));}function _0x102e13(_0x26fd9e){const _0x2799c0=_0x33b269['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x140e71}),_0x22115c=_0x33b269['mapper']['toViewPosition'](_0x26fd9e);_0x474f84['data']['isSuggestion']&&_0x33b269['writer']['addClass']('ck-suggestion-marker-'+_0x140e71+'-new',_0x2799c0),_0x1f2eb1['activeChange']==_0x474f84&&_0x33b269['writer']['addClass']('ck-suggestion-marker--active',_0x2799c0),_0x33b269['writer']['insert'](_0x22115c,_0x2799c0),_0x33b269['mapper']['bindElementToMarker'](_0x2799c0,_0x53e4dc['markerName']);}_0x308178||_0x127947||!_0x4fe7c5||_0x102e13(_0x4fe7c5);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3bb1a4,_0xa86774,_0x33687f)=>{const _0x2909cc=_0x33687f['mapper']['markerNameToElements'](_0xa86774['markerName']);if(_0x2909cc){for(const _0x5843ef of _0x2909cc)(_0x5843ef['hasClass']('ck-suggestion-marker-split')||_0x5843ef['hasClass']('ck-suggestion-marker-merge'))&&(_0x33687f['mapper']['unbindElementFromMarkerName'](_0x5843ef,_0xa86774['markerName']),_0x33687f['writer']['remove'](_0x5843ef));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3f449b,_0x2ba622,_0x366d20)=>{const _0x424d6a=_0x2ba622['markerName']['split'](':')[0x1],_0x179e79=this['_getChangeFromId'](_0x424d6a);if(!_0x179e79)return null;const _0x2d48ab='add'==_0x179e79['type']?'split':'merge';if(_0x366d20['consumable']['test'](_0x2ba622['markerRange'],_0x3f449b['name']))for(const _0x2760ad of _0x2ba622['markerRange']['getItems']()){if(!_0x2760ad['is']('element','softBreak'))continue;const _0x3efba7=_0x366d20['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2d48ab}),_0x47bc6a=_0x366d20['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2760ad));_0x179e79['data']['isSuggestion']&&_0x366d20['writer']['addClass']('ck-suggestion-marker-'+_0x2d48ab+'-new',_0x3efba7),this['activeChange']==_0x179e79&&_0x366d20['writer']['addClass']('ck-suggestion-marker--active',_0x3efba7),_0x366d20['writer']['insert'](_0x47bc6a,_0x3efba7),_0x366d20['mapper']['bindElementToMarker'](_0x3efba7,_0x2ba622['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x597020=>{for(const _0x81c00e of this['editor']['model']['document']['getRootNames']()){const _0x4b6b74=this['editor']['model']['document']['getRoot'](_0x81c00e),_0x49be63=this['editor']['editing']['view']['document']['getRoot'](_0x81c00e);if(_0x49be63){const _0xa557df=_0x4b6b74['getAttribute']('revisionHistoryAttachChange');if(_0x597020['removeAttribute']('data-change-id',_0x49be63),_0x597020['removeClass']('ck-revision-history-root-add',_0x49be63),_0x597020['removeClass']('ck-revision-history-root-remove',_0x49be63),_0x597020['removeClass']('ck-revision-history-root--active',_0x49be63),_0xa557df){const _0xcf39fb=this['_getChangeFromId'](_0xa557df);if(!_0xcf39fb)return null;_0x597020['setAttribute']('data-change-id',_0xa557df,_0x49be63),_0x597020['addClass']('ck-revision-history-root-'+_0xcf39fb['type'],_0x49be63),this['activeChange']==_0xcf39fb&&_0x597020['addClass']('ck-revision-history-root--active',_0x49be63);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3c4a4f=>'revision-comment:'+_0x3c4a4f,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4031c2=>'revision-suggestion:'+_0x4031c2,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3d5701=>({'name':'suggestion:'+_0x3d5701,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x6c6683=>{const _0x1bf139=_0x6c6683['markerName']['split'](':')[0x1];return'insertion'!=_0x1bf139&&'deletion'!=_0x1bf139?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1bf139]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x53d45c,_0xefeaa4,_0x4c9cb2)=>{const _0x25b157=_0x4c9cb2['mapper']['markerNameToElements'](_0xefeaa4['markerName']);if(_0x25b157){for(const _0x2a1d93 of _0x25b157)_0x2a1d93['is']('uiElement')&&(_0x4c9cb2['mapper']['unbindElementFromMarkerName'](_0x2a1d93,_0xefeaa4['markerName']),_0x4c9cb2['writer']['remove'](_0x2a1d93));}},{'priority':'high'});}['_getChangeFromId'](_0x18ba79){return this['_changeIdToChange']['get'](_0x18ba79);}['_getViewForChange'](_0xc909ab){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0xc909ab),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x47ba02,_0x14deed,_0x23aed6,_0x482352)=>{_0x482352&&this['_balloon']['remove'](_0x482352),_0x23aed6&&(this['_balloon']['add']({'view':_0x23aed6,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x38bb4b=this['editor']['editing'],_0x251b54=this['_getChangeFromId'](_0x23aed6['changeId']);let _0x1e7ed5;if(_0x251b54['data']['isOnRoot']){const _0x30fbbc=_0x38bb4b['view']['getDomRoot'](_0x251b54['rootName']);_0x1e7ed5=Array['from'](_0x30fbbc['getClientRects']());}else{const _0x59d469=this['editor']['model']['markers']['get']('revision:'+_0x23aed6['changeId']);_0x1e7ed5=Array['from'](_0x38bb4b['mapper']['markerNameToElements'](_0x59d469['name']))['map'](_0x5a2533=>_0x38bb4b['view']['domConverter']['mapViewToDom'](_0x5a2533))['map'](_0x24480d=>Array['from'](_0x24480d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1e7ed5[0x0];return _0x1e7ed5['find'](_0x207be1=>_0x207be1['top']-0x3<=this['_activeViewTarget']['y']&&_0x207be1['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x207be1['left']-0x3<=this['_activeViewTarget']['x']&&_0x207be1['right']+0x3>=this['_activeViewTarget']['x'])||_0x1e7ed5[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x372531,_0xb27c98,_0x40e766,_0x30d575)=>{this['activeView']=_0x40e766?this['_getViewForChange'](_0x40e766):null,this['editor']['model']['change'](()=>{const _0x310dc4=this['editor']['editing'];_0x30d575&&(_0x30d575['data']['isOnRoot']?_0x310dc4['view']['change'](_0x546800=>{_0x546800['removeClass']('ck-revision-history-root--active',_0x310dc4['view']['document']['getRoot'](_0x30d575['rootName']));}):_0x310dc4['reconvertMarker']('revision:'+_0x30d575['id'])),_0x40e766&&(_0x40e766['data']['isOnRoot']?_0x310dc4['view']['change'](_0x5481f8=>{_0x5481f8['addClass']('ck-revision-history-root--active',_0x310dc4['view']['document']['getRoot'](_0x40e766['rootName']));}):_0x310dc4['reconvertMarker']('revision:'+_0x40e766['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x38adc0,_0x171691)=>{if(this['activeChange'])return;const _0x2471fc=this['_findChangeIdFromDomTarget'](_0x171691['target']),_0x802270=this['_changeIdToChange']['get'](_0x2471fc);_0x802270?(this['_activeViewTarget']={'x':_0x171691['domEvent']['x'],'y':_0x171691['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x802270)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x50dea7,_0x5317b7)=>{const _0x16a848=this['_findChangeIdFromDomTarget'](_0x5317b7['target']),_0x39e533=this['_changeIdToChange']['get'](_0x16a848);_0x39e533?(this['_activeViewTarget']={'x':_0x5317b7['domEvent']['x'],'y':_0x5317b7['domEvent']['y']},_0x39e533===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x39e533):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5e9f70){do{const _0x23a98e=_0x5e9f70['getAttribute']('data-change-id');if(_0x23a98e)return _0x23a98e;_0x5e9f70=_0x5e9f70['parent'];}while(_0x5e9f70);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x59c766=>{for(const _0x239268 of this['editor']['model']['markers'])_0x59c766['removeMarker'](_0x239268);});}}function tt(_0x5e26c0,_0x485a2d){return(_0x47381b,_0x2d0fa9,_0x336ca4)=>{if(!_0x336ca4['consumable']['test'](_0x2d0fa9['markerRange'],_0x47381b['name']))return;const _0x1fa583=_0x2d0fa9['markerRange']['getWalker'](),_0x4863fc=_0x2d0fa9['markerRange']['start'],_0x28631c=_0x5e26c0['model']['schema'];let _0xd65e35=null,_0x415700=null,_0xdaa3d9=!0x1,_0x3dddfa=!0x1;for(const _0x1766b6 of _0x1fa583){const _0x200f05=_0x1766b6['item'];_0xdaa3d9=_0xdaa3d9||_0x28631c['isContent'](_0x200f05);const _0xb0293=_0x336ca4['mapper']['toViewElement'](_0x200f05);if(_0xb0293&&_0xb0293['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1766b6['type']&&(_0x28631c['isBlock'](_0x200f05)&&!_0x28631c['isLimit'](_0x200f05)&&(_0x200f05['nextSibling']||_0x4863fc['isAtEnd']?_0xd65e35&&_0xd65e35['parent']==_0x200f05||(_0xd65e35=_0x200f05,_0x2d5228(_0x1766b6['previousPosition']),_0x3dddfa=!0x0):_0x415700=_0x415700||_0x1766b6['previousPosition']));}function _0x2d5228(_0x56490d){const _0x46054a=_0x336ca4['mapper']['toViewPosition'](_0x56490d),_0x3653fb=_0x336ca4['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x485a2d});_0x336ca4['writer']['insert'](_0x46054a,_0x3653fb),_0x336ca4['mapper']['bindElementToMarker'](_0x3653fb,_0x2d0fa9['markerName']);}_0xdaa3d9||_0x3dddfa||!_0x415700||_0x2d5228(_0x415700);};}class _t extends _0x3b1bfe{constructor(_0x1f1058){super(_0x1f1058);const _0x41a2db=_0x1f1058['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x41a2db,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x41a2db,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5d88d6=this['editor'],_0x1d7d25=_0x5d88d6['plugins']['get'](d),_0x57d175=_0x1d7d25['isReady']?_0x1d7d25['diff']['newRevisionId']:null;_0x5d88d6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x57d175);}['refresh'](){const {isReady:_0x12daa7,isEnabled:_0x589983,repository:_0x25077d,diff:_0x58254d}=this['editor']['plugins']['get'](d),_0x3500e3=_0x58254d&&_0x25077d['getLaterVisibleRevision'](_0x58254d['newRevisionId']);this['isEnabled']=_0x12daa7&&_0x589983&&Boolean(_0x3500e3);}}class yt extends _0x3b1bfe{['_step'];constructor(_0x6f8da1,{direction:_0x390b9}){super(_0x6f8da1);const _0x1ec890=_0x6f8da1['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x390b9?0x1:-0x1,this['listenTo'](_0x1ec890,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1ec890,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1ec890,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5f0531=this['editor'],_0x448e0d=_0x5f0531['plugins']['get'](d),{isNavigationMode:_0x256190,currentChangeNumber:_0x5652cf}=_0x448e0d;let _0x120394;if(_0x448e0d['activeChange']=_0x256190?_0x448e0d['diff']['changes']['get'](_0x5652cf+this['_step']):_0x448e0d['diff']['changes']['first'],_0x448e0d['activeChange']['data']['isOnRoot'])_0x120394=_0x5f0531['editing']['view']['getDomRoot'](_0x448e0d['activeChange']['rootName']);else{const _0x34c442=_0x5f0531['model']['markers']['get']('revision:'+_0x448e0d['activeChange']['id']);_0x120394=_0xbdfbf2(_0x5f0531['editing'],_0x34c442);}_0x276e18({'target':_0x120394,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x43e8cd,currentChangeNumber:_0x492870,numberOfChanges:_0xbdfd0,isReady:_0x9feb08,isEnabled:_0x3dbe03}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3dbe03&&_0x9feb08&&_0xbdfd0)&&(!_0x43e8cd||(0x1===this['_step']?_0x492870<_0xbdfd0-0x1:_0x492870>0x0));}}class di extends ts{constructor(_0x4827b0){super(_0x4827b0);const _0x4d2dde=this['bindTemplate'],_0x412158=new te(_0x4827b0),_0x28ec87=new te(_0x4827b0);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',(_0x340d8e,_0x431bb3)=>_0x340d8e&&_0x431bb3>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2e734f,_0x435f33,_0x198578,_0x2bb1e3)=>{if(!_0x2e734f)return R(_0x4827b0,'Loading...');if(!_0x198578)return R(_0x4827b0,'No\x20changes');const _0x47f667=R(_0x4827b0,'NUMBER_OF_CHANGES',_0x198578);return _0x2bb1e3?R(_0x4827b0,'X_OF_Y_CHANGES',[_0x435f33+0x1,_0x198578]):_0x47f667;}),_0x412158['set']({'label':R(_0x4827b0,'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'}),_0x28ec87['set']({'label':R(_0x4827b0,'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'}),_0x412158['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x28ec87['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x412158['on']('execute',()=>this['fire']('execute','backward')),_0x28ec87['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',_0x4d2dde['if']('_isStatusLabelVisible','ck-hidden',_0x374d11=>!_0x374d11)]},'children':[{'text':_0x4d2dde['to']('isNavigationMode',_0x1dfec8=>_0x1dfec8?R(_0x4827b0,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x4827b0,'Total')+':\x20')}]},{'text':_0x4d2dde['to']('_statusText')}]},new _0x2902ac(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x412158,_0x28ec87]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x212b78{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x505e1e=this['editor']['editing']['view'];_0x505e1e['change'](_0x215448=>{for(const _0x460567 of _0x505e1e['document']['roots'])_0x215448['addClass'](le,_0x460567);});}['hide'](){const _0x188530=this['editor']['editing']['view'];_0x188530['change'](_0xbeccea=>{for(const _0x608759 of _0x188530['document']['roots'])_0xbeccea['removeClass'](le,_0x608759);});}}class m extends _0x212b78{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x1cb82d=this['editor'],_0x2bb4c5=_0x1cb82d['plugins']['get'](d),_0x44d5fc=_0x1cb82d['plugins']['get'](ge);_0x1cb82d['ui']['componentFactory']['add']('exitToEditing',_0x27da93=>{const _0x501f5b=new te(_0x27da93);return _0x501f5b['set']({'label':R(_0x27da93,'Back\x20to\x20editing'),'icon':_0x327ed7['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x501f5b,'execute',()=>{_0x1cb82d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x501f5b;}),_0x1cb82d['ui']['componentFactory']['add']('restoreRevision',_0x4ce3a9=>{const _0x19aea8=new te(_0x4ce3a9);return _0x19aea8['set']({'label':R(_0x4ce3a9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x19aea8['bind']('isEnabled')['to'](_0x1cb82d['commands']['get']('restoreRevision')),this['listenTo'](_0x19aea8,'execute',()=>_0x1cb82d['execute']('restoreRevision')),_0x19aea8;}),_0x1cb82d['ui']['componentFactory']['add']('changesNavigation',_0x4c4f62=>{const _0x58b581=new di(_0x4c4f62),_0x4d3b85=_0x1cb82d['commands']['get']('showPreviousChange'),_0x3e411c=_0x1cb82d['commands']['get']('showNextChange');return _0x58b581['bind']('isBackwardNavigationEnabled')['to'](_0x4d3b85,'isEnabled'),_0x58b581['bind']('isForwardNavigationEnabled')['to'](_0x3e411c,'isEnabled'),_0x58b581['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2bb4c5),this['listenTo'](_0x58b581,'execute',(_0x1cb1d0,_0x182093)=>{_0x1cb82d['execute']('forward'===_0x182093?'showNextChange':'showPreviousChange');}),_0x58b581;}),_0x44d5fc['show'](),_0x2bb4c5['on']('change:isReady',(_0x98ba08,_0x47b6c5,_0x138bf8)=>{_0x138bf8?_0x44d5fc['hide']():_0x44d5fc['show']();});}}class pt extends _0x176f9e{['_resizeObserver']=null;constructor(_0xebc09e,_0x3846fa){super(_0xebc09e,_0x3846fa);const _0x42b769=this['bindTemplate'];this['set']({'label':R(_0xebc09e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0xebc09e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x42b769['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 _0x115f7d=this['fieldView']['element'];this['_tooltipString']=_0x115f7d['scrollWidth']>_0x115f7d['clientWidth']&&_0x115f7d['value']||'';}}class oi extends ts{constructor(_0x2b742b,_0x8d7222,_0x285dc6){super(_0x2b742b);const _0x132be4=new _0x4ff77b();_0x132be4['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 _0x1597d9=['ck','ck-revision-history-sidebar__revision-author'];_0x285dc6&&_0x1597d9['push']('ck-revision-history-sidebar__revision-author_creator');const _0x12f104=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x2b742b,_0x285dc6?'Revision\x20creator':'Revision\x20author')},'children':[_0x132be4,_0x8d7222['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1597d9},'children':_0x12f104});}}function ai(_0x2fafc1,_0x1df69a){const _0x59d7e5=_0x2fafc1['bindTemplate'],_0x24d2bf=_0x2fafc1['locale'],_0x33ac20=_0xcdad56(_0x24d2bf);_0x33ac20['panelPosition']='sw';const _0x1bcccf=function(_0x47fcbf,_0xf20ebf){const _0x245a9d=function(_0x545260,_0xbd1bbe){const _0x4312d7=_0x545260['locale'],_0x5c34b9={'Compare\x20against\x20selected':R(_0x4312d7,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4312d7,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4312d7,'Restore\x20this\x20revision')};return _0xbd1bbe['map'](_0x3074cb=>{const _0x3f1a8f=_0x5c34b9[_0x3074cb['name']];return _0x3f1a8f&&_0x3f1a8f!==_0x3074cb['name']&&(_0x3074cb['name']=_0x3f1a8f),_0x3074cb;});}(_0x47fcbf,_0xf20ebf),_0x4ac50f=new _0x4cc07d();for(const _0x57b832 of _0x245a9d){const _0x4ac673={'type':'button','model':new _0x5f0624({'label':_0x57b832['name'],'class':_0x57b832['class'],'withText':!0x0,'role':'menuitem','_action':_0x57b832['action']})};_0x4ac673['model']['bind']('isEnabled')['to'](_0x47fcbf,'isActionsDropdownOpen',_0x20cf92=>'function'!=typeof _0x57b832['isEnabled']||(!_0x20cf92||_0x57b832['isEnabled'](_0x47fcbf))),_0x4ac50f['add'](_0x4ac673);}return _0x4ac50f;}(_0x2fafc1,_0x1df69a);return _0x2fafc1['bind']('isActionsDropdownOpen')['to'](_0x33ac20,'isOpen'),_0x33ac20['buttonView']['set']({'label':R(_0x24d2bf,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x327ed7['threeVerticalDots']}),_0x33ac20['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x59d7e5['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x59d7e5['to'](_0x373ed9=>_0x373ed9['stopPropagation']())}}),_0x33ac20['on']('execute',_0x36220b=>{_0x2fafc1['isReady']&&'function'==typeof _0x36220b['source']['_action']&&_0x36220b['source']['_action'](_0x2fafc1);}),to(_0x33ac20,_0x1bcccf,{'role':'menu'}),_0x33ac20['listenTo'](_0x2fafc1,'change:isActionsDropdownOpen',(_0x973a1,_0x516f23,_0x568b3b)=>{if(_0x568b3b)for(const _0x385551 of _0x33ac20['listView']['items']){const _0x30a48d=_0x385551['children']['first'],_0xdfde87=_0x1df69a['find'](_0x2f3973=>_0x2f3973['action']===_0x30a48d['_action'])['isVisible'];_0x385551['isVisible']=void 0x0===_0xdfde87||_0xdfde87(_0x2fafc1);}}),_0x33ac20;}class si extends/* #__PURE__ -- @preserve */
26
- _0xda0cd5(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x662420,_0x2e78c5,_0x14863b,_0x3db570){super(_0x662420);const _0x1eea88=this['bindTemplate'],_0x5c5a83=function(_0x24344b,_0x1c6b40){const _0x1dd5ae=Array['from'](_0x1c6b40['authors'])['filter'](_0x64d551=>_0x64d551!=_0x1c6b40['creator']);return _0x1c6b40['creator']&&_0x1dd5ae['unshift'](_0x1c6b40['creator']),_0x1dd5ae['map'](_0x2d5b5d=>new oi(_0x24344b,_0x2d5b5d,_0x2d5b5d==_0x1c6b40['creator']));}(_0x662420,_0x2e78c5);this['id']=_0x2e78c5['id'],this['_revision']=_0x2e78c5,this['_requireRevisionName']=_0x3db570,this['bind']('name','createdAt')['to'](_0x2e78c5),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x11cfe6=>{return _0x385673=_0x662420['uiLanguage'],(_0x1cb888=_0x11cfe6)['toLocaleDateString'](_0x385673,{'month':'long','day':'numeric'})+',\x20'+_0x1cb888['toLocaleTimeString'](_0x385673,{'hour':'numeric','minute':'numeric'});var _0x385673,_0x1cb888;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x662420,_0x20cf4d),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x45b1df=>_0x45b1df||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x119213,_0x13b6ba)=>_0x119213&&_0x13b6ba),this['revisionActionsView']=_0x14863b&&_0x14863b['length']?ai(this,_0x14863b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1eea88['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1eea88['if']('isEnabled','ck-disabled',_0x35bc9a=>!_0x35bc9a),_0x1eea88['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1eea88['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1eea88['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':_0x1eea88['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':_0x5c5a83}]},this['revisionActionsView']],'on':{'click':_0x1eea88['to'](_0x1b4e05=>{_0x1b4e05['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x509870=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x509870,'change',()=>{this['_requireRevisionName']&&!_0x509870['value']||this['fire']('setName',{'id':this['id'],'name':_0x509870['value']}),_0x509870['value']||(_0x509870['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x2c28bb,_0x3ef756){const _0x22c444=_0x30157e['fromJSDate'](_0x2c28bb)['setLocale'](_0x3ef756),_0x2439b8=_0x30157e['local'](),_0x66bbdd=_0x2439b8['minus']({'days':0x1})['startOf']('day');let _0x2fb2e1,_0xf9c837;return _0x22c444['hasSame'](_0x2439b8,'day')?(_0x2fb2e1=_0x22c444['startOf']('day')['toJSDate'](),_0xf9c837=_0x22c444['toRelativeCalendar']()):_0x22c444['hasSame'](_0x66bbdd,'day')?(_0x2fb2e1=_0x66bbdd['toJSDate'](),_0xf9c837=_0x22c444['toRelativeCalendar']()):_0x22c444['hasSame'](_0x2439b8,'week')?(_0x2fb2e1=_0x22c444['startOf']('week')['toJSDate'](),_0xf9c837=_0x22c444['weekdayLong']||''):_0x22c444['hasSame'](_0x2439b8,'year')?(_0x2fb2e1=_0x22c444['startOf']('month')['toJSDate'](),_0xf9c837=_0x22c444['monthLong']||''):(_0x2fb2e1=_0x22c444['startOf']('year')['toJSDate'](),_0xf9c837=String(_0x22c444['year'])),{'startDate':_0x2fb2e1,'localizedPeriodName':_0xf9c837};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2fbb14,_0x14c499,_0x1ff18d,_0x52e135){super(_0x2fbb14);const _0x3f12c6=ti(_0x14c499,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x14c499,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1ff18d,this['_requireRevisionName']=_0x52e135,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':_0x3f12c6}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x125cf2){const _0x586cdb=new si(this['locale'],_0x125cf2,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x586cdb);}['removeRevision'](_0x136d51){const _0x1b6aba=this['revisionViews']['find'](_0x1bd9b8=>_0x1bd9b8['id']===_0x136d51['id']);this['revisionViews']['remove'](_0x1b6aba);}}class cs extends ts{constructor(_0x2ce657){super(_0x2ce657);const _0x499d0f=new _0x4ff77b();_0x499d0f['content']=_0x327ed7['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x499d0f,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x2ce657,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x51d4c0,_0x22eef5,_0x71e998,_0x536820){super(_0x51d4c0);const _0x47c4b9=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x22eef5,this['_revisionActions']=_0x71e998,this['_requireRevisionName']=_0x536820,this['on']('select',(_0x1116f1,_0xdd524e)=>{this['fire']('revisionSelected',_0xdd524e);}),this['on']('setName',(_0x314057,_0x4d26e1)=>{this['fire']('revisionSetName',_0x4d26e1);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x51d4c0),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x47c4b9['if']('isEnabled','ck-disabled',_0x139e84=>!_0x139e84)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3729a1 of this['_revisions'])this['_addRevision'](_0x3729a1);this['_revisions']['on']('add',(_0x14206a,_0x2a598f)=>{this['_addRevision'](_0x2a598f);}),this['_revisions']['on']('remove',(_0x51bdb5,_0x5348e7)=>{this['_removeRevision'](_0x5348e7);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x103a57=>_0x103a57['revisionViews']['map'](_0x28f61d=>_0x28f61d))['flat']();}['selectRevision'](_0x2a2ade){for(const _0x39498e of this['revisionViews'])_0x2a2ade&&_0x2a2ade['id']===_0x39498e['id']?_0x39498e['select']():_0x39498e['deselect']();}['highlightRevisions'](_0x5a9b6b){for(const _0x1b078d of this['revisionViews'])_0x5a9b6b['some'](({id:_0x26a619})=>_0x26a619===_0x1b078d['id'])?_0x1b078d['highlight']():_0x1b078d['unhighlight']();}['_addRevision'](_0x520bb9){const _0x30da5b=ti(_0x520bb9['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x13a4ad=this['timePeriodViews']['get'](0x0);_0x13a4ad&&_0x13a4ad['startDate']['getTime']()===_0x30da5b['getTime']()||(_0x13a4ad=new ei(this['locale'],_0x30da5b,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x13a4ad)),_0x13a4ad['addRevision'](_0x520bb9);}['_removeRevision'](_0x51f22f){const _0x36a43a=ti(_0x51f22f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x36a43a)['removeRevision'](_0x51f22f);}['_getTimePeriodViewByStartDate'](_0x3c6544){return this['timePeriodViews']['find'](_0x108f1b=>_0x108f1b['startDate']['getTime']()===_0x3c6544['getTime']());}}class g extends _0x212b78{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x42fc44,uid as _0x45c6ed,Collection as _0xc46275,logWarning as _0x1f749e,FocusTracker as _0x426056,KeystrokeHandler as _0x5bb513,scrollViewportToShowTarget as _0x1c6bfe,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x2e7d78}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1fbbd4,set as _0x21c1f9,unset as _0x329f06,isEqual as _0x217429}from'lodash-es';import{Plugin as _0x5a5f64,PendingActions as _0xa8dbbf,icons as _0x2b22d2,Command as _0x455b3a,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x13a039,getMarkerDomElement as _0x494947,ConfirmMixin as _0x3151ef,sanitizeEditorConfig as _0x23d80d}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x29157b,ViewText as _0x580579,ViewElement as _0x9fe0f9,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x34a5a1,ViewAttributeElement as _0x598c3e,ViewEmptyElement as _0x29e244,ViewRawElement as _0x38a7d8,ViewUIElement as _0x196df5,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x59c2ca,injectCssTransitionDisabler as ts,submitHandler as _0x2b7941,LabeledFieldView as at,createLabeledInputText as _0x2931d8,createDropdown as _0x40e817,ListView as _0xab325d,ListItemView as te,ButtonView as _0x3b013d,MenuBarMenuView as _0x8cd669,MenuBarMenuListView as _0x3181c6,MenuBarMenuListItemView as _0x41624a,MenuBarMenuListItemButtonView as _0x58d60f,ContextualBalloon as _0xc8f96d,ToolbarSeparatorView as _0x491304,IconView as _0x58f379,addListToDropdown as _0x1d8c31,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x3dbd8b}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x42fc44(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x561b95){super(),this['id']=_0x561b95['id']||_0x45c6ed(),this['creator']=_0x561b95['creator']||null,this['authors']=_0x561b95['authors']||[],this['diffData']=_0x561b95['diffData']||null,this['toVersion']=_0x561b95['toVersion']||0x0,this['fromVersion']=_0x561b95['fromVersion']||0x0,this['set']('name',_0x561b95['name']||''),this['set']('createdAt',_0x561b95['createdAt']||new Date()),this['set']('attributes',_0x561b95['attributes']||{});}['setName'](_0x3a5a05){this['_update']({'name':_0x3a5a05});}['setAttribute'](_0x2f5ce8,_0x199828){const _0x7f20e2=_0x1fbbd4(this['attributes']);_0x21c1f9(_0x7f20e2,_0x2f5ce8,_0x199828),this['_update']({'attributes':_0x7f20e2});}['removeAttribute'](_0x5c17a1){const _0x4dcc39=_0x1fbbd4(this['attributes']);_0x329f06(_0x4dcc39,_0x5c17a1),this['_update']({'attributes':_0x4dcc39});}['_update'](_0x12434f,_0x45ca45=!0x1){let _0x34d2b8=!0x1;const _0xa2324c={'id':this['id']},_0x52729d=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5c1627 of _0x52729d){const _0x3cdd51=_0x12434f[_0x5c1627];void 0x0!==_0x3cdd51&&_0x3cdd51!==this[_0x5c1627]&&(this[_0x5c1627]=_0x3cdd51,_0xa2324c[_0x5c1627]=_0x3cdd51,_0x34d2b8=!0x0);}_0x34d2b8&&(_0xa2324c['authors']&&(_0xa2324c['authorsIds']=_0xa2324c['authors']['map'](_0x443358=>_0x443358['id']),delete _0xa2324c['authors']),this['fire']('_update',_0xa2324c,_0x45ca45));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3c6ec6=>_0x3c6ec6['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5a5f64{['_revisions'];static get['requires'](){return[_0x13a039];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3c5b43){super(_0x3c5b43),this['_revisions']=new _0xc46275();}['afterInit'](){!async function(_0x1faa03){const _0x2b232b=_0xff6763([0x58,0x48,0x56,0x71,0x6a,0x4d,0x49,0x4a,0x6f,0x44,0x33,0x76,0x42,0x61,0x52,0x55,0x30,0x57,0x47,0x66,0x74,0x68,0x73,0x43,0x75,0x4c,0x39,0x72,0x69,0x54,0x53,0x4f,0x45,0x4e,0x4b,0x6e,0x77,0x35,0x6c,0x64,0x46,0x62,0x78,0x65,0x50,0x51,0x6d,0x37,0x63,0x70,0x31,0x34,0x36,0x38,0x6b,0x41,0x5a,0x79,0x67,0x32,0x7a,0x59]),_0x1a0697=0xeb829,_0x1620a8=0x45322756,_0x180ae9=0x45357efe^_0x1620a8,_0x2ea1b9=window[_0xff6763([0x44,0x61,0x74,0x65])][_0xff6763([0x6e,0x6f,0x77])](),_0x971275=_0x1faa03[_0xff6763([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b8527=new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57f14c=>{_0x971275[_0xff6763([0x6f,0x6e,0x63,0x65])](_0xff6763([0x72,0x65,0x61,0x64,0x79]),_0x57f14c);}),_0x421329={[_0xff6763([0x6b,0x74,0x79])]:_0xff6763([0x45,0x43]),[_0xff6763([0x75,0x73,0x65])]:_0xff6763([0x73,0x69,0x67]),[_0xff6763([0x63,0x72,0x76])]:_0xff6763([0x50,0x2d,0x32,0x35,0x36]),[_0xff6763([0x78])]:_0xff6763([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]),[_0xff6763([0x79])]:_0xff6763([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]),[_0xff6763([0x61,0x6c,0x67])]:_0xff6763([0x45,0x53,0x32,0x35,0x36])},_0x4ba9d9=_0x971275[_0xff6763([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xff6763([0x67,0x65,0x74])](_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3db0b(){let _0x50a944,_0x42e224=null,_0x149014=null;try{if(_0x4ba9d9==_0xff6763([0x47,0x50,0x4c]))return _0xff6763([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50a944=_0x32582a(),!_0x50a944)return _0xff6763([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50a944[_0xff6763([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x149014=_0x4aa9cb(_0x50a944[_0xff6763([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50a944[_0xff6763([0x6a,0x74,0x69])])),await _0x52e8ff()?_0x3e5ddb()?_0x493696()?_0xff6763([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50e7e1()?(_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xff6763([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42e224=_0x176998(_0xff6763([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xff6763([0x74,0x72,0x69,0x61,0x6c])&&(_0x42e224=_0x176998(_0xff6763([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xff6763([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x42e224=_0x176998(_0xff6763([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x51aed2()):_0xff6763([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xff6763([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xff6763([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x54001b){return _0xff6763([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x493696(){const _0x2069d2=[_0xff6763([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xff6763([0x74,0x72,0x69,0x61,0x6c])][_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ea1b9/0x3e8:0xe10*_0x180ae9;return _0x50a944[_0xff6763([0x65,0x78,0x70])]<_0x2069d2;}function _0x3e5ddb(){const _0x1b8baf=_0x50a944[_0xff6763([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1b8baf)return!0x1;if(_0x1b8baf[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff6763([0x2a])))return!0x0;if(_0x1b8baf[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff6763([0x52,0x48])))return!0x0;if(_0x1b8baf[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff6763([0x52,0x52,0x48]))){if(_0x5f1e4f())return!0x0;if(_0x4d1d2f()||_0x272dd8())return!0x0;}return!0x1;}function _0x50e7e1(){const _0x5e07c9=_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e07c9||0x0==_0x5e07c9[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53db5b}=new URL(window[_0xff6763([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e07c9[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53db5b))return!0x0;const _0x1fb7f4=_0x53db5b[_0xff6763([0x73,0x70,0x6c,0x69,0x74])](_0xff6763([0x2e]));return _0x5e07c9[_0xff6763([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x150c5b=>_0x150c5b[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff6763([0x2a])))[_0xff6763([0x6d,0x61,0x70])](_0x3dd03c=>_0x3dd03c[_0xff6763([0x73,0x70,0x6c,0x69,0x74])](_0xff6763([0x2e])))[_0xff6763([0x73,0x6f,0x6d,0x65])](_0x1b996d=>_0x1fb7f4[_0xff6763([0x65,0x76,0x65,0x72,0x79])]((_0x182e03,_0x36c5e5)=>_0x1b996d[_0x36c5e5]===_0x182e03||_0x1b996d[_0x36c5e5]===_0xff6763([0x2a])));}function _0x51aed2(){return _0x42e224&&_0x149014?new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48a268,_0x347052)=>{_0x42e224[_0xff6763([0x74,0x68,0x65,0x6e])](_0x48a268,_0x347052),_0x149014[_0xff6763([0x74,0x68,0x65,0x6e])](_0x3f1e56=>{_0x3f1e56!=_0xff6763([0x56,0x61,0x6c,0x69,0x64])&&_0x48a268(_0x3f1e56);},_0x347052);}):_0x42e224||_0x149014||_0xff6763([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4aa9cb(_0x3f27d0,_0x37cc69){return new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48c950=>{if(_0x18c7e5())return _0x48c950(_0xff6763([0x56,0x61,0x6c,0x69,0x64]));_0x1bfdf1(),_0x971275[_0xff6763([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xff6763([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b3168=!0x1;const _0x4c2e48=_0x45c6ed();function _0x3e4fcd(_0x404afd){return!!_0x404afd&&(typeof _0x404afd===_0xff6763([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x404afd===_0xff6763([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x404afd[_0xff6763([0x74,0x68,0x65,0x6e])]===_0xff6763([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x404afd[_0xff6763([0x63,0x61,0x74,0x63,0x68])]===_0xff6763([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xdfaecc(_0x51685d){_0x597dc5(_0x51685d)[_0xff6763([0x74,0x68,0x65,0x6e])](_0x58484d=>{if(!_0x58484d||_0x58484d[_0xff6763([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xff6763([0x6f,0x6b]))return _0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x541f84(_0x71f6c5(_0x4c2e48+_0x37cc69))!=_0x58484d[_0xff6763([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xff6763([0x56,0x61,0x6c,0x69,0x64]);})[_0xff6763([0x74,0x68,0x65,0x6e])](_0x544739=>(_0x23a44b(),_0x544739),()=>{const _0x55dbdf=_0x3d4fdc();return null==_0x55dbdf?(_0x23a44b(),_0xff6763([0x56,0x61,0x6c,0x69,0x64])):_0xff6763(_0x2ea1b9-_0x55dbdf>(0x613ea356^_0x1620a8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xff6763([0x74,0x68,0x65,0x6e])](_0x48c950)[_0xff6763([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48c950(_0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3fd6de=0x4504c9d6^_0x1620a8;function _0x23a44b(){const _0x22566c=_0xff6763([0x6c,0x6c,0x63,0x74,0x2d])+_0x541f84(_0x71f6c5(_0x3f27d0)),_0x3466dc=_0x3dc24c(_0x541f84(window[_0xff6763([0x4d,0x61,0x74,0x68])][_0xff6763([0x63,0x65,0x69,0x6c])](_0x2ea1b9/_0x3fd6de)));window[_0xff6763([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xff6763([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22566c,_0x3466dc);}function _0x3d4fdc(){const _0x1c2369=_0xff6763([0x6c,0x6c,0x63,0x74,0x2d])+_0x541f84(_0x71f6c5(_0x3f27d0)),_0x1ebdcb=window[_0xff6763([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xff6763([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c2369);return _0x1ebdcb?window[_0xff6763([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dc24c(_0x1ebdcb),0x10)*_0x3fd6de:null;}function _0x597dc5(_0x2a53e7){return new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x278de8,_0x4b9c67)=>{_0x2a53e7[_0xff6763([0x74,0x68,0x65,0x6e])](_0x278de8,_0x4b9c67),window[_0xff6763([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b9c67,0x4533f396^_0x1620a8);});}}_0x971275[_0xff6763([0x6f,0x6e])](_0xff6763([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x54dfdd,_0x50edfa)=>{if(_0x50edfa[0x0]!=_0x3f27d0)return _0x48c950(_0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50edfa[0x1]={..._0x50edfa[0x1],[_0xff6763([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c2e48};},{[_0xff6763([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xff6763([0x68,0x69,0x67,0x68])}),_0x971275[_0xff6763([0x6f,0x6e])](_0xff6763([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x498451=>{_0x3e4fcd(_0x498451[_0xff6763([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b3168=!0x0,_0xdfaecc(_0x498451[_0xff6763([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xff6763([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xff6763([0x6c,0x6f,0x77])}),_0x4b8527[_0xff6763([0x74,0x68,0x65,0x6e])](()=>{_0x4b3168||_0x48c950(_0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x18c7e5(){return _0x971275[_0xff6763([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xff6763([0x76,0x69,0x65,0x77])][_0xff6763([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xff6763([0x61,0x75,0x74,0x6f]);}function _0x1bfdf1(){_0x971275[_0xff6763([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xff6763([0x76,0x69,0x65,0x77])][_0xff6763([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xff6763([0x61,0x75,0x74,0x6f]);}}function _0x176998(_0x2e2e97){const _0x5376eb=[new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x165a18=>setTimeout(_0x165a18,0x453b199a^_0x1620a8)),_0x4b8527[_0xff6763([0x74,0x68,0x65,0x6e])](()=>new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23e2bf=>{const _0x27f565=0x45322751^_0x1620a8,_0x259727=_0x1faa03[_0xff6763([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xf5bc4e(){_0x259727[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x27f565&&_0x23e2bf();}_0xf5bc4e(),_0x259727[_0xff6763([0x6f,0x6e])](_0xff6763([0x61,0x64,0x64]),_0xf5bc4e);})),new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11f535=>{function _0x1aff21(){for(const _0x43b4bb in window)if(window[_0xff6763([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xff6763([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x43b4bb))&&window[_0x43b4bb]==_0x1a0697)return _0x11f535();_0x971275[_0xff6763([0x73,0x74,0x61,0x74,0x65])]!=_0xff6763([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xff6763([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1aff21,0x453234de^_0x1620a8);}_0x27be7a(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1aff21();})];return window[_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xff6763([0x72,0x61,0x63,0x65])](_0x5376eb)[_0xff6763([0x74,0x68,0x65,0x6e])](()=>_0x2e2e97);}async function _0x156ddc(){if(await _0x4b8527,_0x27be7a(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1b24de=_0x1faa03[_0xff6763([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1f1c55=_0x1faa03[_0xff6763([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])](_0x1b24de[_0xff6763([0x69,0x64])]),_0x34d327=_0x15dd98(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x34d327[_0xff6763([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1b24de['id'],_0x1f1c55?_0x1f1c55['id']:null,!0x0),_0x34d327[_0xff6763([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xff6763([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x34d327[_0xff6763([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x34d327[_0xff6763([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4925c9,void(_0x34d327[_0xff6763([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4925c9);}if(_0x27be7a(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1ae611=_0x15dd98(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1ae611[_0xff6763([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xff6763([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1ae611[_0xff6763([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1ae611[_0xff6763([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4925c9,_0x1ae611[_0xff6763([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4925c9;}_0x971275[_0xff6763([0x6d,0x6f,0x64,0x65,0x6c])][_0xff6763([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4925c9,_0x971275[_0xff6763([0x6d,0x6f,0x64,0x65,0x6c])][_0xff6763([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4925c9,_0x971275[_0xff6763([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xff6763([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f1e4f(){return _0x27be7a(_0xff6763([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x15dd98(_0xff6763([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xff6763([0x73,0x74,0x61,0x74,0x65])]==_0xff6763([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4d1d2f(){return _0x27be7a(_0xff6763([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 _0x272dd8(){return _0x27be7a(_0xff6763([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x18d08f(_0x44143d){const _0x44b5f1=_0x4d6562();_0x971275[_0x44b5f1]=_0xff6763([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])+_0x44143d,_0x44143d[_0xff6763([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xff6763([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4d6562()]=_0x1a0697),_0x44143d!=_0xff6763([0x56,0x61,0x6c,0x69,0x64])&&_0x156ddc();}function _0x4d6562(){const _0x51eb30=window[_0xff6763([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xff6763([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xff6763([0x6e,0x6f,0x77])]())[_0xff6763([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xff6763([0x2e]),'');let _0x4b3122=_0xff6763([0x58]);for(let _0x47c4d5=0x0;_0x47c4d5<_0x51eb30[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47c4d5+=0x2){let _0x27ad52=window[_0xff6763([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51eb30[_0xff6763([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47c4d5,_0x47c4d5+0x2));_0x27ad52>=_0x2b232b[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27ad52-=_0x2b232b[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b3122+=_0x2b232b[_0x27ad52];}return _0x4b3122;}function _0x32582a(){const _0x59f4a8=_0x4ba9d9[_0xff6763([0x73,0x70,0x6c,0x69,0x74])](_0xff6763([0x2e]));if(0x3!=_0x59f4a8[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x545585(_0x59f4a8[0x1]);function _0x545585(_0x2f7d36){const _0x64863=_0x6f134a(_0x2f7d36);return _0x64863&&_0x440010()?_0x64863:null;function _0x440010(){const _0x114be0=_0x64863[_0xff6763([0x6a,0x74,0x69])],_0xfa9c38=window[_0xff6763([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x114be0[_0xff6763([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x114be0[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33ff4d={..._0x64863,[_0xff6763([0x6a,0x74,0x69])]:_0x114be0[_0xff6763([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x114be0[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33ff4d[_0xff6763([0x76,0x63])],_0x71f6c5(_0x33ff4d)==_0xfa9c38;}}}async function _0x52e8ff(){let _0x1f47e6=!0x0;try{const _0x34e267=_0x4ba9d9[_0xff6763([0x73,0x70,0x6c,0x69,0x74])](_0xff6763([0x2e])),[_0x35d5f1,_0x26ce7c,_0x368afa]=_0x34e267;return _0x130c8c(_0x35d5f1),await _0x15ae60(_0x35d5f1,_0x26ce7c,_0x368afa),_0x1f47e6;}catch(_0x426c0e){return!0x1;}function _0x130c8c(_0x45faf8){const _0x148ae7=_0x6f134a(_0x45faf8);_0x148ae7&&_0x148ae7[_0xff6763([0x61,0x6c,0x67])]==_0xff6763([0x45,0x53,0x32,0x35,0x36])||(_0x1f47e6=!0x1);}async function _0x15ae60(_0x58d1e5,_0x29038c,_0x2d3c77){const _0x494603=window[_0xff6763([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xff6763([0x66,0x72,0x6f,0x6d])](_0x3e15aa(_0x2d3c77),_0x3a01d4=>_0x3a01d4[_0xff6763([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4dd59d=new window[(_0xff6763([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xff6763([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58d1e5+_0xff6763([0x2e])+_0x29038c),_0x199e56=window[_0xff6763([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xff6763([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x199e56)return;const _0x32c7cf=await _0x199e56[_0xff6763([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xff6763([0x6a,0x77,0x6b]),_0x421329,{[_0xff6763([0x6e,0x61,0x6d,0x65])]:_0xff6763([0x45,0x43,0x44,0x53,0x41]),[_0xff6763([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xff6763([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xff6763([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x199e56[_0xff6763([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xff6763([0x6e,0x61,0x6d,0x65])]:_0xff6763([0x45,0x43,0x44,0x53,0x41]),[_0xff6763([0x68,0x61,0x73,0x68])]:{[_0xff6763([0x6e,0x61,0x6d,0x65])]:_0xff6763([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x32c7cf,_0x494603,_0x4dd59d)||(_0x1f47e6=!0x1);}}function _0x6f134a(_0x39cb7f){return _0x39cb7f[_0xff6763([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xff6763([0x65,0x79]))?JSON[_0xff6763([0x70,0x61,0x72,0x73,0x65])](_0x3e15aa(_0x39cb7f)):null;}function _0x3e15aa(_0x2f7872){return window[_0xff6763([0x61,0x74,0x6f,0x62])](_0x2f7872[_0xff6763([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xff6763([0x2b]))[_0xff6763([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xff6763([0x2f])));}function _0x71f6c5(_0x191f8c){let _0x5165f7=0x1505;function _0x1b7acd(_0x212d0d){for(let _0x1f29cf=0x0;_0x1f29cf<_0x212d0d[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f29cf++){const _0x100bbe=_0x212d0d[_0xff6763([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f29cf);_0x5165f7=(_0x5165f7<<0x5)+_0x5165f7+_0x100bbe,_0x5165f7&=_0x5165f7;}}function _0x157513(_0x356efd){Array[_0xff6763([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x356efd)?_0x356efd[_0xff6763([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x157513):_0x356efd&&typeof _0x356efd==_0xff6763([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xff6763([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x356efd)[_0xff6763([0x73,0x6f,0x72,0x74])]()[_0xff6763([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x818b34,_0x24dc53])=>{_0x1b7acd(_0x818b34),_0x157513(_0x24dc53);}):_0x1b7acd(window[_0xff6763([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x356efd));}return _0x157513(_0x191f8c),_0x5165f7>>>0x0;}function _0x541f84(_0x14434c){return _0x14434c[_0xff6763([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xff6763([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xff6763([0x30]));}function _0x3dc24c(_0x4f17e4){return _0x4f17e4[_0xff6763([0x73,0x70,0x6c,0x69,0x74])]('')[_0xff6763([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xff6763([0x6a,0x6f,0x69,0x6e])]('');}function _0x27be7a(_0x208b3a){return _0x971275[_0xff6763([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xff6763([0x68,0x61,0x73])](_0x208b3a);}function _0x15dd98(_0x3202e7){return _0x971275[_0xff6763([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xff6763([0x67,0x65,0x74])](_0x3202e7);}function _0x4925c9(){}function _0xff6763(_0x2a1227){return _0x2a1227['map'](_0x24b4d7=>String['fromCharCode'](_0x24b4d7))['join']('');}_0x18d08f(await _0x3db0b());}(this);}['createRevision'](_0x3b0cd9){const _0xed4c41=this['editor']['plugins']['get']('Users');return new a({'id':_0x3b0cd9['id'],'name':_0x3b0cd9['name'],'creator':_0x3b0cd9['creatorId']?_0xed4c41['getUser'](_0x3b0cd9['creatorId']):null,'diffData':_0x3b0cd9['diffData']||_0x3b0cd9['data'],'authors':_0x3b0cd9['authorsIds']['map'](_0x51848e=>_0xed4c41['getUser'](_0x51848e)),'createdAt':new Date(_0x3b0cd9['createdAt']),'attributes':_0x3b0cd9['attributes'],'fromVersion':_0x3b0cd9['fromVersion'],'toVersion':_0x3b0cd9['toVersion']});}['addRevision'](_0x38c7c1,_0x2f1a5f=0x0){this['_revisions']['add'](_0x38c7c1,_0x2f1a5f);}['getRevision'](_0x3410b4){return this['_revisions']['get'](_0x3410b4);}['getRevisions'](_0x37f779={'toJSON':!0x1}){const _0x1aa772=Array['from'](this['_revisions']);return _0x1aa772['reverse'](),_0x37f779['toJSON']?_0x1aa772['map'](_0x1e497d=>_0x1e497d['toJSON']()):_0x1aa772;}['getIndex'](_0x7adb9){return this['_revisions']['getIndex'](_0x7adb9);}['getEarlierVisibleRevision'](_0xbdd507){const [,_0x463b6d]=this['getRevisionsIterator'](_0xbdd507,{'direction':'earlier'});return _0x463b6d;}['getLaterVisibleRevision'](_0x21a5fe){const [,_0xafeded]=this['getRevisionsIterator'](_0x21a5fe,{'direction':'later'});return _0xafeded;}['getRevisionsInDiff'](_0x481a6b){const _0x50d117=[];for(const _0x420bde of this['getRevisionsIterator'](_0x481a6b['newRevisionId']))if(_0x50d117['push'](_0x420bde),_0x420bde['id']===_0x481a6b['oldRevisionId'])break;return _0x50d117;}*['getRevisionsIterator'](_0x1d6217,{direction:_0x25ed2f='earlier',filter:_0x3ac180=()=>!0x0}={}){const _0xacf1e5='earlier'===_0x25ed2f?0x1:-0x1;let _0x2657d6=this['_revisions']['get'](_0x1d6217),_0x310944=this['getIndex'](_0x2657d6);for(yield _0x2657d6;_0x2657d6;){if(_0x310944+=_0xacf1e5,_0x2657d6=this['getRevision'](_0x310944),!_0x2657d6)return;_0x3ac180(_0x2657d6)&&(yield _0x2657d6);}}}function R(_0x398b14,_0x5ef7fa,_0xfe12d9){const t=_0x398b14['t'];switch(_0x5ef7fa){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'},_0xfe12d9);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xfe12d9);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 C={'c':_0x34a5a1,'a':_0x598c3e,'e':_0x29e244,'r':_0x38a7d8,'u':_0x196df5};class l extends _0x5a5f64{['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[_0x13a039,j,_0xa8dbbf];}constructor(_0x1e65ec){super(_0x1e65ec),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2f6cf6=_0x45c6ed();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2f6cf6},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 _0xc199e5=this['repository']['getRevision'](0x0),_0x146a9d=_0xc199e5&&null===_0xc199e5['creator']?_0xc199e5:null;if(this['_continueCurrentRevision']=!!_0x146a9d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xf6f992=this['_source']['getCurrentRevisionId'](),_0x55aff8=this['repository']['getRevision'](_0xf6f992);if(_0x55aff8)this['_startingVersion']=_0x55aff8['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x51350d=this['_source']['history']['_operations']['find'](_0x52fefa=>!_0x52fefa['_isInit']),_0x3a5151=_0x51350d?_0x51350d['baseVersion']:this['_source']['history']['version'];_0xc199e5?(_0xc199e5['toVersion']<_0x3a5151&&_0xc199e5['_update']({'toVersion':_0x3a5151}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x146a9d['id'],this['_startingVersion']=_0x146a9d['fromVersion']):(this['_startingVersion']=_0xc199e5['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3a5151,this['_continueCurrentRevision']=!0x1);}}else _0x146a9d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x146a9d['toVersion'],this['editor']['model']['document']['history']['version']),_0x146a9d['fromVersion']===_0x146a9d['toVersion']?(0x0!==_0x146a9d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x146a9d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x146a9d['id'],this['_startingVersion']=_0x146a9d['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',_0x50e9e8=>!_0x50e9e8),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x514db6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb35ab;for(const _0x18567e in _0x514db6){const _0x368bf4=_0x18567e,_0x3944e6=_0x514db6[_0x368bf4];if('revisionHistoryLicenseKeyValid'==_0x3944e6||'revisionHistoryLicenseKeyInvalid'==_0x3944e6||'revisionHistoryLicenseKeyExpired'==_0x3944e6||'revisionHistoryLicenseKeyDomainLimit'==_0x3944e6||'revisionHistoryLicenseKeyNotAllowed'==_0x3944e6||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3944e6||'revisionHistoryLicenseKeyTrialLimit'==_0x3944e6||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x3944e6||'revisionHistoryLicenseKeyUsageLimit'==_0x3944e6){delete _0x514db6[_0x368bf4],_0xb35ab=_0x3944e6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xb35ab&&_0x514db6['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xb35ab&&_0x514db6['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xb35ab&&_0x514db6['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xe59fdf=this['repository']['getRevision'](0x0),_0x2fda2b=await this['getRevisionDocumentData'](_0xe59fdf),_0x1dbfc9=await this['getRevisionRootsAttributes'](_0xe59fdf);this['_replaceEditorDataWithRevisionData'](_0x2fda2b,_0x1dbfc9);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x59d9e7){this['_source']=_0x59d9e7;}async['update'](){const _0x4748ef=await this['_source']['getLatestVersion']();if(_0x4748ef>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5cc124=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4748ef});_0x5cc124['authors']=_0x5cc124['authorsIds']['map'](_0x4513fb=>this['editor']['plugins']['get']('Users')['getUser'](_0x4513fb)),this['currentRevision']['_update'](_0x5cc124);}}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'](_0x1651ef={},_0x31885b=null){const _0x53feed=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x31885b>this['currentRevision']['toVersion']&&(_0x31885b=null),null===_0x31885b&&(_0x31885b=await this['_source']['getLatestVersion']());const _0x493cfd=this['_getFromVersion'](_0x31885b),_0x17d185=this['buildRevisionData']({'from':_0x493cfd,'to':_0x31885b});if(this['currentRevision']['toVersion']<_0x31885b){const _0x48bf3a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x31885b,'to':_0x31885b});_0x48bf3a['authors']=[],_0x48bf3a['authorsIds']=[],_0x48bf3a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x48bf3a,!0x0),delete _0x48bf3a['authors'],_0x53feed['push'](_0x48bf3a);}_0x1651ef['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1651ef['name']=_0x1651ef['name']||null,_0x1651ef['id']=_0x1651ef['id']||_0x45c6ed(),_0x1651ef={..._0x1651ef,..._0x17d185};const _0x2dd961=this['addRevisionData'](_0x1651ef);_0x53feed['push'](_0x1651ef);const _0x476f68=this['repository']['getIndex'](_0x2dd961);if(0x0!==_0x476f68){const _0x1f2331=this['repository']['getRevision'](_0x476f68-0x1);if(_0x1f2331['fromVersion']!==_0x31885b){const _0x4b36ad=this['_revisionDataBuilder']['getData'](_0x31885b,_0x1f2331['toVersion']),_0x5d3974={'id':_0x1f2331['id'],'diffData':_0x4b36ad['diffData'],'authorsIds':_0x4b36ad['authorsIds'],'authors':_0x4b36ad['authorsIds']['map'](_0x3b7644=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b7644)),'fromVersion':_0x31885b};_0x1f2331===this['currentRevision']&&(_0x5d3974['createdAt']=new Date(_0x1651ef['createdAt']['getTime']()+0xa)),_0x1f2331['_update'](_0x5d3974,!0x0),delete _0x5d3974['authors'],_0x53feed['push'](_0x5d3974);}}if(this['adapter']){for(const _0x54ec41 of _0x53feed)this['_bufferUpdate'](_0x54ec41['id'],_0x54ec41,!0x0);this['sendBufferedUpdates']();}return _0x2dd961;}['addRevisionData'](_0x5b7d6a){const _0x1e6d9d=this['repository']['createRevision'](_0x5b7d6a);return this['adapter']&&_0x1e6d9d['on']('_update',(_0x51558e,_0x43abe2,_0x48273b)=>{_0x48273b||(this['_bufferUpdate'](_0x43abe2['id'],_0x43abe2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1e6d9d,this['_findInsertionIndex'](_0x1e6d9d)),_0x1e6d9d;}async['getRevisionDocumentData'](_0x487601){await this['_loadRevisionData'](_0x487601);const _0x111d81={};for(const _0x45ab74 in _0x487601['diffData']){if(_0x487601['diffData'][_0x45ab74]['attachChange']&&!_0x487601['diffData'][_0x45ab74]['attachChange']['isAttached'])continue;const _0x3139d8=this['_removeRevisionMarkers'](JSON['parse'](_0x487601['diffData'][_0x45ab74]['insertions'])),_0x3774fb=this['editor']['editing']['view']['document'],_0x2140da=new _0x29157b(_0x3774fb,_0x3139d8['map'](_0x4f7cd5=>V(_0x4f7cd5,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x111d81[_0x45ab74]=this['editor']['data']['processor']['toData'](_0x2140da),this['editor']['data']['processor']['useFillerType']('default');}return _0x111d81;}async['getRevisionRootsAttributes'](_0x17741a){await this['_loadRevisionData'](_0x17741a);const _0xbb6214={};for(const _0x48bdef in _0x17741a['diffData'])_0x17741a['diffData'][_0x48bdef]['attachChange']&&!_0x17741a['diffData'][_0x48bdef]['attachChange']['isAttached']||(_0xbb6214[_0x48bdef]=_0x17741a['diffData'][_0x48bdef]['attributesAfter']||{});return _0xbb6214;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x228b63=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2fca85=0x0;_0x2fca85<_0x228b63['length'];_0x2fca85++){const _0x4562ae=_0x228b63[_0x2fca85];let _0xfdb3db=!0x1;for(const _0x290010 of Object['keys'](_0x4562ae))void 0x0===_0x4562ae[_0x290010]?delete _0x4562ae[_0x290010]:'id'!==_0x290010&&(_0xfdb3db=!0x0);_0xfdb3db||(_0x228b63[_0x2fca85]=null);}if(_0x228b63=_0x228b63['filter'](_0x1c6041=>null!==_0x1c6041),!_0x228b63['length'])return;for(let _0x5d3c43=0x0;_0x5d3c43<_0x228b63['length'];_0x5d3c43++){const _0x2bc3b0=_0x228b63[_0x5d3c43];void 0x0!==_0x2bc3b0['fromVersion']&&void 0x0===_0x2bc3b0['toVersion']&&(_0x2bc3b0['toVersion']=this['repository']['getRevision'](_0x2bc3b0['id'])['toVersion']),void 0x0!==_0x2bc3b0['toVersion']&&void 0x0===_0x2bc3b0['fromVersion']&&(_0x2bc3b0['fromVersion']=this['repository']['getRevision'](_0x2bc3b0['id'])['fromVersion']);}const _0x41ab06=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x228b63,_0x41ab06)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x177e0e=>{if(_0x177e0e){for(const _0x42b944 of _0x177e0e)this['setRevisionData']({'id':_0x42b944['id'],'createdAt':_0x42b944['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x974032,_0x158e1b){let _0x48bf90=this['editor']['config']['get']('initialData'),_0x89a535=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x48bf90){_0x48bf90={};for(const _0x221223 of this['editor']['model']['document']['getRootNames']())_0x48bf90[_0x221223]='';}if('string'==typeof _0x48bf90&&(_0x48bf90={'main':_0x48bf90}),void 0x0===_0x89a535){_0x89a535={};for(const _0x34d412 of this['editor']['model']['document']['getRootNames']())_0x89a535[_0x34d412]={};}let _0x596621=!0x1;const _0x534b81=Object['keys'](_0x48bf90),_0x5be602=Object['keys'](_0x974032);for(const _0x3808e2 of _0x534b81){if(_0x48bf90[_0x3808e2]!==_0x974032[_0x3808e2]&&''!==_0x48bf90[_0x3808e2]['trim']()){_0x596621=!0x0;break;}if(!_0x217429(_0x89a535[_0x3808e2],_0x158e1b[_0x3808e2])&&Object['keys'](_0x89a535[_0x3808e2])['length']>0x0){_0x596621=!0x0;break;}}_0x596621||(_0x596621=_0x5be602['some'](_0x3ebc34=>!this['editor']['model']['document']['getRoot'](_0x3ebc34))),_0x596621&&_0x1f749e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x48bf90,'editorRootsAttributes':_0x89a535,'revisionData':_0x974032,'revisionRootsAttributes':_0x158e1b}),this['editor']['config']['set']('initialData',_0x974032),this['editor']['config']['set']('rootsAttributes',_0x158e1b);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x24ed12=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x24ed12['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x41d92c){const _0x3cf97a=this['repository']['getRevisions']();_0x3cf97a['reverse']();let _0x3415a1=0x0;for(;_0x3415a1<_0x3cf97a['length'];){const _0x37aa1b=_0x3cf97a[_0x3415a1];if(_0x37aa1b===this['currentRevision']){_0x3415a1++;continue;}if(_0x37aa1b['id']===this['_initialRevisionId'])break;const _0x42e326=_0x41d92c['toVersion']-_0x37aa1b['toVersion']||_0x41d92c['fromVersion']-_0x37aa1b['fromVersion'];if(_0x42e326>0x0)break;if(_0x42e326<0x0)_0x3415a1++;else{if(!_0x41d92c['creator']&&_0x37aa1b['creator'])break;if(_0x37aa1b['creator']||!_0x41d92c['creator']){if(_0x41d92c['createdAt']>_0x37aa1b['createdAt'])break;_0x3415a1++;}else _0x3415a1++;}}return _0x3415a1;}['setRevisionData'](_0xe442ed){const _0x52f1f7=this['repository']['getRevision'](_0xe442ed['id']);if(_0xe442ed['createdAt']&&(_0xe442ed['createdAt']=new Date(_0xe442ed['createdAt'])),_0xe442ed['authorsIds']){const _0x11ca40=this['editor']['plugins']['get']('Users');_0xe442ed['authors']=_0xe442ed['authorsIds']['map'](_0x12b623=>_0x11ca40['getUser'](_0x12b623));}_0x52f1f7['_update'](_0xe442ed,!0x0);}['buildRevisionData']({revision:_0x1ecb18=null,from:_0x2aba00=null,to:_0x29db43=null}){_0x2aba00=null!==_0x2aba00?_0x2aba00:_0x1ecb18['fromVersion'],_0x29db43=null!==_0x29db43?_0x29db43:_0x1ecb18['toVersion'];const _0x437a04=this['_revisionDataBuilder']['getData'](_0x2aba00,_0x29db43),_0x300bae={'diffData':_0x437a04['diffData'],'authorsIds':_0x437a04['authorsIds'],'fromVersion':_0x2aba00,'toVersion':_0x29db43};if(!_0x1ecb18||_0x29db43!==_0x1ecb18['toVersion']){const _0x2bc758=_0x29db43-0x1,_0x3f2861=this['_source']['history']['getOperation'](_0x2bc758);_0x300bae['createdAt']=_0x3f2861&&_0x3f2861['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2aba00===this['_loadedStateData']['fromVersion']){for(const _0x37de77 of this['_loadedStateData']['authors'])_0x300bae['authorsIds']['includes'](_0x37de77['id'])||_0x300bae['authorsIds']['push'](_0x37de77['id']);}return _0x300bae;}['_loadRevisionData'](_0xdccdf4){if(!_0xdccdf4||_0xdccdf4['diffData'])return Promise['resolve']();{const _0x389952=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x389952,'revisionId':_0xdccdf4['id']})['then'](_0x13114b=>{_0xdccdf4['diffData']=_0x13114b['diffData'];});}}['_bufferUpdate'](_0x12fe06,_0x2d2a5a,_0xfdb842){if(this['_bufferedUpdates']['has'](_0x12fe06)){const _0x3c790c=this['_bufferedUpdates']['get'](_0x12fe06);_0x2d2a5a=_0xfdb842?{..._0x3c790c,..._0x2d2a5a}:{..._0x2d2a5a,..._0x3c790c};}this['_bufferedUpdates']['set'](_0x12fe06,_0x2d2a5a);}['_getFromVersion'](_0x5a9e96){const _0x27f8e6=this['repository']['getRevisions']();_0x27f8e6['reverse'](),_0x27f8e6['shift']();const _0x4c1099=_0x27f8e6['find'](_0x602c6e=>_0x602c6e['toVersion']<=_0x5a9e96)['toVersion'];return _0x4c1099<this['_startingVersion']?this['_startingVersion']:_0x4c1099;}['_createInitialRevision'](_0x9ba8ed){const _0x245197=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x245197)this['_initialRevisionId']=_0x245197['id'];else{const _0x42da90=!this['editor']['model']['document']['roots']['find'](_0x579dd5=>this['editor']['model']['hasContent'](_0x579dd5)),_0x4c5f62=this['editor']['plugins']['get']('Users')['me']['id'],_0x1312d8=R(this['editor']['locale'],_0x42da90?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x9ba8ed,'to':_0x9ba8ed,'id':this['_initialRevisionId'],'name':_0x1312d8,'creatorId':_0x4c5f62});}}['_createCurrentRevision'](_0x1147c6){const _0x3dc5b2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3dc5b2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1147c6,'to':_0x1147c6,'id':_0x3dc5b2,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1e5f80,from:_0x5842ac,to:_0xa0b246,creatorId:_0x17e6b1,id:_0x5c9c91}){const _0x4387bb=this['buildRevisionData']({'from':_0x5842ac,'to':_0xa0b246});_0x4387bb['name']=_0x1e5f80,_0x4387bb['creatorId']=_0x17e6b1,_0x4387bb['id']=_0x5c9c91;const _0x4e8a2b=this['addRevisionData'](_0x4387bb);return this['adapter']&&this['_bufferUpdate'](_0x4387bb['id'],_0x4387bb,!0x0),_0x4e8a2b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4920ea){return(_0x4920ea=_0x4920ea['filter'](_0x40c012=>!_0x40c012['name']||'revision-start'!==_0x40c012['name']&&'revision-end'!==_0x40c012['name']))['forEach'](_0x5c40a4=>{'string'!=typeof _0x5c40a4&&(_0x5c40a4['children']=this['_removeRevisionMarkers'](_0x5c40a4['children']),_0x5c40a4['attributes']=_0x5c40a4['attributes']['filter'](_0x1df344=>!_0x1df344[0x0]['startsWith']('data-revision-')));}),_0x4920ea;}}function V(_0x54e4f0,_0x547eb8){const _0x5a9f53=_0x547eb8['editing']['view']['document'];if('string'==typeof _0x54e4f0)return new _0x580579(_0x5a9f53,_0x54e4f0);{const _0x438c0b=_0x54e4f0['children']['map'](_0x31ebb6=>V(_0x31ebb6,_0x547eb8));return new(C[_0x54e4f0['type']]||_0x9fe0f9)(_0x5a9f53,_0x54e4f0['name'],_0x54e4f0['attributes'],_0x438c0b);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3d0988){this['editor']=_0x3d0988,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'](_0x2e995d){this['source']=_0x2e995d;const _0x1347b3=new Map(),_0x43ef1f=new Map(),_0x9618b0=this['editor']['model']['document']['roots']['map'](_0x1d3730=>_0x1d3730['rootName']);for(const _0x46f26c of _0x9618b0){const _0x12c692=this['editor']['model']['document']['getRoot'](_0x46f26c),_0x3be5d1=F(_0x12c692);_0x1347b3['set'](_0x46f26c,_0x3be5d1),_0x43ef1f['set'](_0x46f26c,Object['fromEntries'](_0x12c692['getAttributes']()));}const _0x5c1801=Array['from'](this['editor']['model']['markers'])['map'](_0xcbab7c=>[_0xcbab7c['name'],_0xcbab7c['getRange']()]),_0x1d59ec=this['source']['version'];this['_saveMetaData'](_0x1d59ec,_0x1347b3,_0x5c1801,_0x43ef1f),this['_startingRevisionId']=this['_revisionId'];const _0x1909e2=new Map(),_0x543117=new Map();for(const _0x46aab0 of _0x9618b0){const _0x3e0b8e=B(_0x46aab0);_0x1909e2['set'](_0x46aab0,_0x3e0b8e),_0x543117['set'](_0x46aab0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1909e2,[],_0x543117);}['getData'](_0xe07e70,_0x4326d6){if(this['_lastFrom']===_0xe07e70&&this['_lastTo']<=_0x4326d6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4326d6,!0x0);else{if(!this['_savedMetaData']['has'](_0xe07e70)){const _0x189911=this['_getPreviousFrom'](_0xe07e70);this['_calculateMetaData'](_0x189911,_0xe07e70,!0x1);}this['_calculateMetaData'](_0xe07e70,_0x4326d6,!0x0);}return this['_lastFrom']=_0xe07e70,this['_lastTo']=_0x4326d6,this['_getState']();}['loadState'](_0x54bd85){this['_reset'](),this['_lastFrom']=_0x54bd85['fromVersion'],this['_lastTo']=_0x54bd85['toVersion'];for(const _0x40f569 in _0x54bd85['diffData']){const _0x303097=_0x54bd85['diffData'][_0x40f569]['attachChange'],_0x12086b=_0x1fbbd4(_0x54bd85['diffData'][_0x40f569]['attributesBefore'])||{},_0x2fc0a5=this['_makeModelFromViewString'](_0x54bd85['diffData'][_0x40f569]['deletions']);_0x2fc0a5['rootName']=_0x40f569,_0x2fc0a5['_isAttached']=!_0x303097||!_0x303097['isAttached'],_0x2fc0a5['isAttached']=()=>_0x2fc0a5['_isAttached'],this['_baseRoots']['set'](_0x40f569,_0x2fc0a5),this['_baseRootsAttributes']['set'](_0x40f569,_0x12086b),_0x303097&&this['_touchedRoots']['set'](_0x40f569,_0x303097);const _0x52b847=this['_makeIdsRoot'](_0x2fc0a5);this['_baseIdsRoots']['set'](_0x40f569,_0x52b847);for(const [_0x43dfca,_0xcd4df2]of _0x2fc0a5['markers']){if(!_0x43dfca['startsWith']('revision:'))continue;const _0x38fdb2=_0x43dfca['split'](':')[0x2];for(const _0x4b966b of _0xcd4df2['getWalker']({'singleCharacters':!0x0})){const _0x5dbb63=this['_getVidAttributeName'](_0x4b966b),_0x144e4b='elementEnd'==_0x4b966b['type']?_0x4b966b['previousPosition']['path']['slice'](0x0,-0x1):_0x4b966b['previousPosition']['path'],_0x5e3c0a=_0x52b847['getNodeByPath'](_0x144e4b)['getAttribute'](_0x5dbb63);this['_touched']['set'](_0x5e3c0a,{'userId':_0x38fdb2});}}}this['_startingRevisionId']=this['_revisionId'];const _0x382784=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x54e00d=>!this['_touched']['has'](_0x54e00d));let _0x51ecea=0x0;const _0x31e3f0=new Map();for(const _0x2c067e in _0x54bd85['diffData']){const _0x5526bb=_0x54bd85['diffData'][_0x2c067e]['attachChange'],_0x57741f=_0x1fbbd4(_0x54bd85['diffData'][_0x2c067e]['attributesAfter'])||{},_0x1f78a8=this['_makeModelFromViewString'](_0x54bd85['diffData'][_0x2c067e]['insertions']);_0x1f78a8['rootName']=_0x2c067e,_0x1f78a8['_isAttached']=!_0x5526bb||_0x5526bb['isAttached'],_0x1f78a8['isAttached']=()=>_0x1f78a8['_isAttached'],this['_diffRoots']['set'](_0x2c067e,_0x1f78a8),this['_diffRootsAttributes']['set'](_0x2c067e,_0x57741f);const _0x32694e=this['_makeIdsRoot'](_0x1f78a8,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2c067e,_0x32694e),_0x31e3f0['set'](_0x2c067e,_0x1f78a8['isAttached']()?_0x57741f:{});for(const [_0x57b4c3,_0x383ac2]of _0x1f78a8['markers']){if(!_0x57b4c3['startsWith']('revision:'))continue;const _0x5236f2=_0x57b4c3['split'](':')[0x2];for(const _0x24461d of _0x383ac2['getWalker']({'singleCharacters':!0x0})){const _0x244cb9=this['_getVidAttributeName'](_0x24461d),_0x3407d2=this['_revisionId']++,_0x3d8b4d='elementEnd'==_0x24461d['type']?_0x24461d['previousPosition']['path']['slice'](0x0,-0x1):_0x24461d['previousPosition']['path'];_0x32694e['getNodeByPath'](_0x3d8b4d)['_setAttribute'](_0x244cb9,_0x3407d2),this['_touched']['set'](_0x3407d2,{'userId':_0x5236f2});}}for(const _0x59dee0 of this['editor']['model']['createRangeIn'](_0x1f78a8)['getWalker']({'singleCharacters':!0x0})){const _0x49ebed=this['_getVidAttributeName'](_0x59dee0),_0x83e81e='elementEnd'==_0x59dee0['type']?_0x59dee0['previousPosition']['path']['slice'](0x0,-0x1):_0x59dee0['previousPosition']['path'],_0x51242a=_0x32694e['getNodeByPath'](_0x83e81e);_0x51242a['getAttribute'](_0x49ebed)>0x0||_0x51242a['_setAttribute'](_0x49ebed,_0x382784[_0x51ecea++]);}for(const [_0x287f64,_0x1977cd]of _0x1f78a8['markers'])_0x287f64['startsWith']('revision:')||this['_markers']['set'](_0x287f64,_0x1977cd);}const _0x33aa06=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x33aa06),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x33aa06,0x1));const _0x2ce5e3=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2ce5e3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2ce5e3,0x1));const _0x5cd82f=Array['from'](this['_diffRoots'])['map'](([_0x3ef481,_0x118d56])=>[_0x3ef481,F(_0x118d56)]);this['_saveMetaData'](this['_lastTo'],_0x5cd82f,this['_markers'],_0x31e3f0);}['_makeModelFromViewString'](_0x4b12ed){const _0x5a550b=JSON['parse'](_0x4b12ed),_0x2cf673=this['editor']['editing']['view']['document'],_0x1a0190=new _0x29157b(_0x2cf673,_0x5a550b['map'](_0x46b8be=>V(_0x46b8be,this['editor'])));return this['editor']['data']['toModel'](_0x1a0190);}['_saveMetaData'](_0x2a42ba,_0x4a5ecf,_0x44ebc7,_0x46faa3){const _0x67550a=new Map(_0x4a5ecf),_0x41e418=new Map(_0x1fbbd4(_0x46faa3)),_0x5ac75d=new Map();for(const [_0xca5da3,_0x2c0088]of _0x44ebc7)_0x5ac75d['set'](_0xca5da3,{'start':_0x2c0088['start']['clone'](),'end':_0x2c0088['end']['clone'](),'rootName':_0x2c0088['root']['rootName']});this['_savedMetaData']['set'](_0x2a42ba,{'roots':_0x67550a,'markers':_0x5ac75d,'rootsAttributes':_0x41e418});}['_removeMetaData'](_0x1165db){this['_savedMetaData']['delete'](_0x1165db);}['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'](_0x6852fd,_0x3e6043=null){let _0x2457eb=null;_0x6852fd['is']('documentFragment')||(_0x2457eb=new ft(_0x6852fd['name'],{'vid_start':null===_0x3e6043?this['_revisionId']++:_0x3e6043++}));const _0x4c3921=[];for(const _0x40ea8e of _0x6852fd['getChildren']())if(_0x40ea8e['is']('element')){_0x4c3921['push'](this['_makeIdsRoot'](_0x40ea8e,_0x3e6043));const _0x1c8ad0=_0x4c3921[_0x4c3921['length']-0x1];null!==_0x3e6043&&(_0x3e6043=_0x1c8ad0['is']('element','$text')?_0x1c8ad0['getAttribute']('vid')+0x1:_0x1c8ad0['getAttribute']('vid_end')+0x1);}else{for(let _0x1745e6=0x0;_0x1745e6<_0x40ea8e['offsetSize'];_0x1745e6++)_0x4c3921['push'](new ft('$text',{'vid':null===_0x3e6043?this['_revisionId']++:_0x3e6043++}));}if(_0x6852fd['is']('documentFragment')){const _0x5495a2=B(_0x6852fd['rootName']);return _0x5495a2['_insertChild'](0x0,_0x4c3921),_0x5495a2;}return _0x2457eb['_setAttribute']('vid_end',null===_0x3e6043?this['_revisionId']++:_0x3e6043++),_0x2457eb['_insertChild'](0x0,_0x4c3921),_0x2457eb;}['_calculateMetaData'](_0x2608ee,_0x20e39c,_0x14abe6){this['_reset']();const {roots:_0x220ff5,markers:_0x5245d6,rootsAttributes:_0x477e1a}=this['_savedMetaData']['get'](_0x2608ee);this['_baseRoots']=new Map(_0x220ff5),this['_baseRootsAttributes']=new Map(_0x1fbbd4(_0x477e1a));for(const [_0x5208b5,_0x7e488]of this['_baseRoots'])if('$graveyard'!==_0x5208b5&&(this['_diffRoots']['set'](_0x5208b5,F(_0x7e488)),this['_diffRootsAttributes']=new Map(_0x1fbbd4(_0x477e1a)),_0x14abe6)){const _0x2d6c44=this['_revisionId'];this['_idsRoots']['set'](_0x5208b5,this['_makeIdsRoot'](_0x7e488)),this['_baseIdsRoots']['set'](_0x5208b5,this['_makeIdsRoot'](_0x7e488,_0x2d6c44));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x14abe6&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x31b127,_0x16a6d3]of _0x5245d6){const _0x2a8ba7=this['_baseRoots']['get'](_0x16a6d3['rootName']),_0x467949=this['_diffRoots']['get'](_0x16a6d3['rootName']),_0x1547b2=new vt(this['_fixPosition'](_0x16a6d3['start'],_0x2a8ba7),this['_fixPosition'](_0x16a6d3['end'],_0x2a8ba7)),_0x1f3937=this['_fixRange'](_0x1547b2,_0x467949);_0x2a8ba7['markers']['set'](_0x31b127,_0x1547b2),this['_markers']['set'](_0x31b127,_0x1f3937);}this['_applyOperations'](_0x2608ee,_0x20e39c,_0x14abe6);}['_applyOperations'](_0x346cd6,_0x23e23b,_0x35f139){for(const _0x185dc7 of this['source']['getOperations'](_0x346cd6,_0x23e23b))this['_handleOperation'](_0x185dc7,_0x35f139);for(const _0x4fa5aa of this['_diffRoots']['values']())_0x4fa5aa['markers']['clear']();for(const [_0x14af02,_0x11682a]of this['_markers']){this['_diffRoots']['get'](_0x11682a['root']['rootName'])['markers']['set'](_0x14af02,_0x11682a['clone']());}const _0x4f166c=new Map(),_0x24453a=new Map();for(const [_0x5eceb8,_0x9710a3]of this['_diffRoots'])_0x4f166c['set'](_0x5eceb8,F(_0x9710a3)),_0x24453a['set'](_0x5eceb8,this['_diffRootsAttributes']['get'](_0x5eceb8));this['_saveMetaData'](_0x23e23b,_0x4f166c,this['_markers'],_0x24453a);}['_getPreviousFrom'](_0x5b1be8){const _0x7c5602=Array['from'](this['_savedMetaData']['keys']());_0x7c5602['sort']((_0x617aaa,_0x10a742)=>_0x617aaa-_0x10a742),_0x7c5602['reverse']();for(const _0x554759 of _0x7c5602)if(_0x554759<_0x5b1be8)return _0x554759;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x12901e,_0x88668c){const _0x548d17=Array['from'](_0x88668c['markers'])['map'](([_0x501b52,_0x1cb914])=>[_0x501b52,this['_fixRange'](_0x1cb914,_0x12901e)]);_0x12901e['markers']=new Map(_0x548d17);}['_transformMarkers'](_0x2ba555){for(const _0x268499 of this['_markers']['values']()){const _0x318478=_0x268499['getTransformedByOperation'](_0x2ba555),_0x50ad36=vt['_createFromRanges'](_0x318478);_0x268499['start']=_0x50ad36['start'],_0x268499['end']=_0x50ad36['end'];}}['_handleOperation'](_0x630ef1,_0x10fa64){if('addRoot'!=_0x630ef1['type']&&'detachRoot'!=_0x630ef1['type']){if('insert'==_0x630ef1['type']){const _0x18a918=_0x630ef1['position']['root']['rootName'];this['_diffRoots']['has'](_0x18a918)||(this['_diffRoots']['set'](_0x18a918,B(_0x18a918,!0x0)),this['_diffRootsAttributes']['set'](_0x18a918,{}),_0x10fa64&&this['_idsRoots']['set'](_0x18a918,B(_0x18a918,!0x0)));}else{if('addRootAttribute'==_0x630ef1['type']||'removeRootAttribute'==_0x630ef1['type']||'changeRootAttribute'==_0x630ef1['type'])return void this['_handleRootAttributeOperation'](_0x630ef1);'marker'==_0x630ef1['type']&&this['_handleMarkerOperation'](_0x630ef1);}if('marker'!==_0x630ef1['type']){const _0x2464f7=this['_cloneOperation'](_0x630ef1,this['_diffRoots']);_0x2464f7['_execute'](),this['_transformMarkers'](_0x2464f7);}if(_0x10fa64)switch(_0x630ef1['type']){case'insert':this['_handleInsertOperation'](_0x630ef1);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x630ef1);break;case'merge':this['_handleMergeOperation'](_0x630ef1);break;case'split':this['_handleSplitOperation'](_0x630ef1);}}else this['_handleRootOperation'](_0x630ef1,_0x10fa64);}['_cloneOperation'](_0x5ea7c1,_0x195d9d){const _0x962620=_0x5ea7c1['clone']();return _0x962620['_authorId']=_0x5ea7c1['_authorId'],this['_fixOperation'](_0x962620,_0x195d9d),_0x962620;}['_getBaseVids'](_0x2cc1ae){return _0x2cc1ae['map'](_0x59697d=>{const _0x471c7e=this['_getVidAttributeName'](_0x59697d);return Number(_0x59697d['item']['getAttribute'](_0x471c7e));});}['_generateTape'](_0x52940a,_0x26bde9){if(_0x52940a['is']('element','$text'))_0x26bde9['push']({'item':_0x52940a,'type':'text'});else{_0x52940a['is']('element')&&_0x26bde9['push']({'item':_0x52940a,'type':'elementStart'});for(const _0x24a729 of _0x52940a['getChildren']())this['_generateTape'](_0x24a729,_0x26bde9);_0x52940a['is']('element')&&_0x26bde9['push']({'item':_0x52940a,'type':'elementEnd'});}return _0x26bde9;}['_getState'](){const _0x2db93b=new Map(this['_touched']),_0x5e5edd=new Map(_0x2db93b),_0x532d7d=new Map(),_0x563df1={'insertions':{},'deletions':{}},_0x2b90df={'insertions':{},'deletions':{}},_0x56dae4=new Map(),_0x59f568=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x59f568['delete']('$graveyard');for(const _0x36c3a9 of _0x59f568){const _0x36ae61=this['_diffRoots']['get'](_0x36c3a9)||B(_0x36c3a9,!0x1),_0x21c621=this['_baseRoots']['get'](_0x36c3a9)||B(_0x36c3a9,!0x1);_0x36ae61['isAttached']()||_0x21c621['isAttached']()?(_0x563df1['insertions'][_0x36c3a9]=F(_0x36ae61),_0x563df1['deletions'][_0x36c3a9]=F(_0x21c621),this['_copyMarkers'](_0x563df1['deletions'][_0x36c3a9],_0x21c621),this['_copyMarkers'](_0x563df1['insertions'][_0x36c3a9],_0x36ae61),_0x2b90df['insertions'][_0x36c3a9]=this['_generateTape'](this['_idsRoots']['get'](_0x36c3a9),[]),_0x2b90df['deletions'][_0x36c3a9]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x36c3a9)||B(_0x36c3a9,!0x1),[])):_0x59f568['delete'](_0x36c3a9);}for(const _0x1e5bb8 of _0x59f568){const _0x2aaa47=_0x2b90df['insertions'][_0x1e5bb8];for(const _0x2ee5b8 of _0x2aaa47){const _0x53a43c=this['_getVidAttributeName'](_0x2ee5b8),_0x22a844=_0x2ee5b8['item']['getAttribute'](_0x53a43c);_0x5e5edd['delete'](_0x22a844),_0x22a844>=this['_startingRevisionId']&&_0x532d7d['set'](_0x22a844,_0x2db93b['get'](_0x22a844));}}for(const _0x1985d0 of _0x59f568){const _0x4436a2=_0x2b90df['insertions'][_0x1985d0],_0xec75b2=this['_getBaseVids'](_0x2b90df['deletions'][_0x1985d0]);let _0xdfc885=0x0;for(const _0x50d732 of _0x4436a2){const _0x36bdbb=this['_getVidAttributeName'](_0x50d732),_0xaf5c9e=_0x50d732['item']['getAttribute'](_0x36bdbb);if(!_0x532d7d['has'](_0xaf5c9e)&&!_0x56dae4['has'](_0xaf5c9e)){if(_0x5e5edd['has'](_0xaf5c9e))_0xdfc885++;else{if(_0xaf5c9e!=_0xec75b2[_0xdfc885]){const _0x1347ff=_0x2db93b['get'](_0xaf5c9e)||_0x2db93b['get'](_0xec75b2[_0xdfc885]);for(;_0xaf5c9e!=_0xec75b2[_0xdfc885];)_0x5e5edd['has'](_0xec75b2[_0xdfc885])||(_0x56dae4['set'](_0xec75b2[_0xdfc885],_0x1347ff),_0x2db93b['set'](_0xec75b2[_0xdfc885],_0x1347ff)),_0xdfc885++;}_0xdfc885++;}}}}for(const _0x5dacb8 of _0x59f568){const _0x3f809d=_0x2b90df['insertions'][_0x5dacb8];for(const _0x2d0472 of _0x3f809d){const _0x233c26=this['_getVidAttributeName'](_0x2d0472),_0x128079=_0x2d0472['item']['getAttribute'](_0x233c26);if(_0x56dae4['has'](_0x128079)){const _0x42a711=_0x56dae4['get'](_0x128079);_0x5e5edd['has'](_0x128079)||_0x5e5edd['set'](_0x128079,{..._0x42a711}),_0x532d7d['set'](_0x128079,{..._0x42a711});}}}for(const _0x23c26c of _0x5e5edd['keys']())_0x23c26c>=this['_startingRevisionId']&&_0x5e5edd['delete'](_0x23c26c);const _0x927f3=new Map();for(const _0x2819b0 of _0x59f568){let _0x23f2d0=_0x2b90df['insertions'][_0x2819b0];for(const _0x39bc45 of _0x23f2d0)if(_0x39bc45['item']['is']('element','tableCell')){const _0x4189bf=this['_getVidAttributeName'](_0x39bc45),_0x1460f8=_0x39bc45['item']['getAttribute'](_0x4189bf);if(_0x532d7d['has'](_0x1460f8)){const _0x109c37=_0x39bc45['item']['parent']['parent']['getAttribute']('vid_start'),_0x5d5381=_0x927f3['get'](_0x109c37)||new Set();_0x5d5381['add'](_0x532d7d['get'](_0x1460f8)['userId']),_0x927f3['set'](_0x109c37,_0x5d5381);}}_0x23f2d0=_0x2b90df['deletions'][_0x2819b0];for(const _0x4d0de7 of _0x23f2d0)if(_0x4d0de7['item']['is']('element','tableCell')){const _0x5d098a=this['_getVidAttributeName'](_0x4d0de7),_0x276c01=_0x4d0de7['item']['getAttribute'](_0x5d098a);if(_0x5e5edd['has'](_0x276c01)){const _0x189f8f=_0x4d0de7['item']['parent']['parent']['getAttribute']('vid_start'),_0x3a6aef=_0x927f3['get'](_0x189f8f)||new Set();_0x3a6aef['add'](_0x5e5edd['get'](_0x276c01)['userId']),_0x927f3['set'](_0x189f8f,_0x3a6aef);}}for(const _0x30a225 of _0x927f3['keys']())(_0x532d7d['has'](_0x30a225)||_0x5e5edd['has'](_0x30a225))&&_0x927f3['delete'](_0x30a225);}for(const _0x13b965 of _0x59f568){const _0x1a562a=_0x2b90df['insertions'][_0x13b965];let _0xb8feff=null,_0x4cd556=null;for(const _0x30fb28 of _0x1a562a){const _0x145133=this['_getVidAttributeName'](_0x30fb28),_0x270912=_0x30fb28['item']['getAttribute'](_0x145133),_0x4925a0=_0x927f3['get'](_0x270912);_0x4925a0&&'elementStart'==_0x30fb28['type']&&(_0xb8feff=Array['from'](_0x4925a0)[0x0],_0x4cd556=_0x30fb28['item']['getAttribute']('vid_end')),_0xb8feff&&(_0x5e5edd['set'](_0x270912,{'userId':_0xb8feff}),_0x532d7d['set'](_0x270912,{'userId':_0xb8feff})),_0x270912==_0x4cd556&&(_0xb8feff=null,_0x4cd556=null);}}const _0x3ab72d={},_0x38c97f=new Set();for(const _0x38a5dd of _0x59f568){const _0x59e5dd=_0x563df1['deletions'][_0x38a5dd],_0x23fb23=_0x563df1['insertions'][_0x38a5dd];for(const {userId:_0x128b43}of this['_touchedMarkers']['values']())null!==_0x128b43&&_0x38c97f['add'](_0x128b43);for(const {userId:_0x255a7e}of this['_touchedRoots']['values']())null!==_0x255a7e&&_0x38c97f['add'](_0x255a7e);this['_markChanges'](_0x23fb23,_0x2b90df['insertions'][_0x38a5dd],_0x532d7d,'insertion',_0x38c97f),this['_markChanges'](_0x59e5dd,_0x2b90df['deletions'][_0x38a5dd],_0x5e5edd,'deletion',_0x38c97f),_0x3ab72d[_0x38a5dd]={'insertions':this['_prepareViewToSave'](_0x23fb23),'deletions':this['_prepareViewToSave'](_0x59e5dd),'attachChange':this['_touchedRoots']['get'](_0x38a5dd)||null,'attributesBefore':_0x1fbbd4(this['_baseRootsAttributes']['get'](_0x38a5dd))||{},'attributesAfter':_0x1fbbd4(this['_diffRootsAttributes']['get'](_0x38a5dd))};}return{'diffData':_0x3ab72d,'authorsIds':Array['from'](_0x38c97f)};}['_processRootBeforeSave'](_0x5f2fad){for(const [,_0x2cd9a8]of _0x5f2fad['markers']){const _0x29f512=_0x2cd9a8['start']['getAncestors']()['filter'](_0x52c4a5=>'tableCell'==_0x52c4a5['name']);for(const _0x17e4c7 of _0x29f512)0x1==_0x17e4c7['childCount']&&_0x17e4c7['getChild'](0x0)['is']('element','paragraph')&&_0x17e4c7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5d2de6){this['_processRootBeforeSave'](_0x5d2de6);const _0x5ca2b5=this['editor']['data']['toView'](_0x5d2de6,{}),_0x5764ee=Array['from'](_0x5ca2b5['getChildren']())['map'](_0x4743cb=>this['_getViewJson'](_0x4743cb));return JSON['stringify'](_0x5764ee);}['_getViewJson'](_0x53829c){if(_0x53829c['is']('$text'))return _0x53829c['data'];{const _0x23df38=_0x53829c;return{'type':Object['keys'](C)['find'](_0x25905b=>_0x53829c instanceof C[_0x25905b]),'name':_0x23df38['name'],'attributes':Array['from'](_0x23df38['getAttributes']()),'children':Array['from'](_0x23df38['getChildren']())['map'](_0x23f0e1=>this['_getViewJson'](_0x23f0e1))};}}['_markChanges'](_0x44059b,_0x494c70,_0x3f6145,_0x1d4c17,_0x1bd683){let _0x53a989=null,_0x30abed=null,_0x5705c7=0x0;const _0x144b4a=this['editor']['model'];for(let _0x1801b5=0x0;_0x1801b5<_0x494c70['length'];_0x1801b5++){const _0x1bdc1a=this['_getVidAttributeName'](_0x494c70[_0x1801b5]),_0x5efbdf=_0x494c70[_0x1801b5]['item']['getAttribute'](_0x1bdc1a),_0xcf152f=_0x3f6145['get'](_0x5efbdf),_0xbce1a2=_0x1801b5==_0x494c70['length']-0x1;(!_0x53a989&&_0xcf152f&&(_0x53a989=_0xcf152f,_0x30abed=_0x494c70[_0x1801b5]),_0x53a989&&(!_0xcf152f||_0xcf152f['userId']!=_0x53a989['userId']))&&(_0x160d05(_0xcf152f,J(_0x30abed,_0x44059b,_0x144b4a),J(_0x494c70[_0x1801b5],_0x44059b,_0x144b4a)),_0x53a989=_0xcf152f||null,_0x30abed=_0xcf152f?_0x494c70[_0x1801b5]:null),_0x53a989&&_0xbce1a2&&_0x160d05(_0xcf152f,J(_0x30abed,_0x44059b,_0x144b4a),q(_0x494c70[_0x1801b5],_0x44059b,_0x144b4a));}function _0x160d05(_0x4c8e21,_0x20aab9,_0x42fa30){const _0x2a16a2=_0x53a989['userId'],_0xe5527='revision:'+_0x1d4c17+':'+_0x2a16a2+':'+_0x5705c7++,_0x2e08fa=_0x144b4a['createRange'](_0x20aab9,_0x42fa30);_0x44059b['markers']['set'](_0xe5527,_0x2e08fa),null!==_0x2a16a2&&_0x1bd683['add'](_0x2a16a2);}}['_getVidAttributeName'](_0x539c14){switch(_0x539c14['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x512ba5,_0x59217f){_0x512ba5['baseVersion']=null;for(const _0x4ebe36 in _0x512ba5){const _0x109173=_0x512ba5[_0x4ebe36];if(_0x109173 instanceof gt){const _0x3cc437=_0x59217f['get'](_0x109173['root']['rootName']);_0x512ba5[_0x4ebe36]=this['_fixPosition'](_0x109173,_0x3cc437);}if(_0x109173 instanceof vt){const _0x5e59e2=_0x59217f['get'](_0x109173['root']['rootName']);_0x512ba5[_0x4ebe36]=this['_fixRange'](_0x109173,_0x5e59e2);}'root'===_0x4ebe36&&(_0x512ba5['root']=_0x59217f['get'](_0x512ba5['root']['rootName']));}}['_fixRange'](_0x2fc228,_0x4339cd){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2fc228['start'],_0x4339cd),this['_fixPosition'](_0x2fc228['end'],_0x4339cd));}['_fixPosition'](_0x3146c2,_0x2390b2){return this['editor']['model']['createPositionFromPath'](_0x2390b2,_0x3146c2['path'],_0x3146c2['stickiness']);}['_handleInsertOperation'](_0x8ff259){const _0x2b71a2=this['_idsRoots']['get'](_0x8ff259['position']['root']['rootName']),_0x2b215d=this['_fixPosition'](_0x8ff259['position'],_0x2b71a2),_0x117abd=null===_0x8ff259['_authorId']?null:_0x8ff259['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xfe277=_0x2b215d['parent'],_0x374817=this['_revisionId'],_0x4ad98d=[];for(const _0x1478d2 of _0x8ff259['nodes'])if(_0x1478d2['is']('element'))_0x4ad98d['push'](this['_makeIdsRoot'](_0x1478d2));else{for(let _0x1b2867=0x0;_0x1b2867<_0x1478d2['offsetSize'];_0x1b2867++)_0x4ad98d['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x45d7f0=this['_revisionId'];for(let _0x50ad60=_0x374817;_0x50ad60<_0x45d7f0;_0x50ad60++)this['_touched']['set'](_0x50ad60,{'userId':_0x117abd});_0xfe277['_insertChild'](_0x2b215d['offset'],_0x4ad98d);}['_handleMoveOperation'](_0x173240){(_0x173240=this['_cloneOperation'](_0x173240,this['_idsRoots']))['_execute']();const _0x3cba08=null===_0x173240['_authorId']?null:_0x173240['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x56aca9=_0x173240['getMovedRangeStart'](),_0x45f1bd=_0x56aca9['parent'],_0x421d77=_0x56aca9['offset'];!function _0x586e56(_0x3b155a,_0x127a53,_0x56dc6f,_0x3a4a9f){for(let _0x4d59ed=_0x56dc6f;_0x4d59ed<_0x3a4a9f;_0x4d59ed++){const _0xc121a9=_0x127a53['getChild'](_0x4d59ed);_0xc121a9['is']('element','$text')?_0x3b155a['set'](_0xc121a9['getAttribute']('vid'),{'userId':_0x3cba08}):(_0x3b155a['set'](_0xc121a9['getAttribute']('vid_start'),{'userId':_0x3cba08}),_0x586e56(_0x3b155a,_0xc121a9,0x0,_0xc121a9['childCount']),_0x3b155a['set'](_0xc121a9['getAttribute']('vid_end'),{'userId':_0x3cba08}));}}(this['_touched'],_0x45f1bd,_0x421d77,_0x421d77+_0x173240['howMany']);}['_handleMergeOperation'](_0x54272f){const _0xd3e70f=null===(_0x54272f=this['_cloneOperation'](_0x54272f,this['_idsRoots']))['_authorId']?null:_0x54272f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4db9ee=_0x54272f['targetPosition']['parent'],_0x410b1f=_0x54272f['sourcePosition']['parent'],_0xb182=_0x4db9ee['getAttribute']('vid_end'),_0x5a2f49=_0x410b1f['getAttribute']('vid_start');_0x4db9ee['_setAttribute']('vid_end',_0x410b1f['getAttribute']('vid_end')),_0x410b1f['_setAttribute']('vid_end',_0xb182),this['_touched']['set'](_0x5a2f49,{'userId':_0xd3e70f}),this['_touched']['set'](_0xb182,{'userId':_0xd3e70f}),_0x54272f['_execute']();}['_handleSplitOperation'](_0x4d3672){const _0x2bd32f=null===(_0x4d3672=this['_cloneOperation'](_0x4d3672,this['_idsRoots']))['_authorId']?null:_0x4d3672['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf71313=_0x4d3672['graveyardPosition'],_0x58f544=_0x4d3672['splitPosition']['parent'];_0x4d3672['_execute']();const _0x11836b=_0x58f544['getAttribute']('vid_end'),_0x1ee3bb=_0x4d3672['insertionPosition']['nodeAfter'];if(_0xf71313){const _0x51e074=_0x1ee3bb['getAttribute']('vid_end'),_0x165f86=_0x58f544['getAttribute']('vid_end');_0x58f544['_setAttribute']('vid_end',_0x51e074),_0x1ee3bb['_setAttribute']('vid_end',_0x165f86),this['_touched']['set'](_0x58f544['getAttribute']('vid_end'),{'userId':_0x2bd32f}),this['_touched']['set'](_0x1ee3bb['getAttribute']('vid_start'),{'userId':_0x2bd32f});}else{const _0x31e73d=this['_revisionId']++,_0x25d2e2=this['_revisionId']++;_0x58f544['_setAttribute']('vid_end',_0x31e73d),_0x1ee3bb['_setAttribute']('vid_start',_0x25d2e2),_0x1ee3bb['_setAttribute']('vid_end',_0x11836b),this['_touched']['set'](_0x31e73d,{'userId':_0x2bd32f}),this['_touched']['set'](_0x25d2e2,{'userId':_0x2bd32f});}}['_handleMarkerOperation'](_0x533505){if(!_0x533505['affectsData'])return;const _0x1c5c50=(_0x533505=this['_cloneOperation'](_0x533505,this['_diffRoots']))['oldRange']?_0x533505['oldRange']['root']:null,_0x421cc6=_0x533505['newRange']?_0x533505['newRange']['root']:null;_0x1c5c50&&this['_markers']['delete'](_0x533505['name']),_0x421cc6&&this['_markers']['set'](_0x533505['name'],_0x533505['newRange']['clone']());const _0x32b440=null===_0x533505['_authorId']?null:_0x533505['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2bca63=_0x533505['name'];if(!this['_touchedMarkers']['has'](_0x2bca63))return void this['_touchedMarkers']['set'](_0x2bca63,{'range':_0x533505['oldRange'],'userId':_0x32b440});const _0x40bcc6=this['_touchedMarkers']['get'](_0x2bca63),_0x3e39ed=_0x40bcc6['range'],_0x17ebc3=_0x533505['newRange'];null==_0x3e39ed&&null==_0x17ebc3||_0x3e39ed&&_0x17ebc3&&_0x3e39ed['isEqual'](_0x17ebc3)?this['_touchedMarkers']['delete'](_0x533505['name']):_0x40bcc6['userId']=_0x32b440;}['_handleRootOperation'](_0x1e6456,_0x353553){this['_diffRoots']['has'](_0x1e6456['rootName'])?this['_diffRoots']['get'](_0x1e6456['rootName'])['_isAttached']=_0x1e6456['isAdd']:(this['_diffRoots']['set'](_0x1e6456['rootName'],B(_0x1e6456['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1e6456['rootName'],{}),_0x353553&&this['_idsRoots']['set'](_0x1e6456['rootName'],B(_0x1e6456['rootName'],!0x0)));const _0x3639c7=null===_0x1e6456['_authorId']?null:_0x1e6456['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5b9436=this['_touchedRoots']['get'](_0x1e6456['rootName']);_0x5b9436&&_0x5b9436['userId']===_0x3639c7?this['_touchedRoots']['delete'](_0x1e6456['rootName']):this['_touchedRoots']['set'](_0x1e6456['rootName'],{'userId':_0x3639c7,'isAttached':_0x1e6456['isAdd']});}['_handleRootAttributeOperation'](_0x3f38cb){const _0x3c4286=this['_diffRootsAttributes']['get'](_0x3f38cb['root']['rootName']);null===_0x3f38cb['newValue']?delete _0x3c4286[_0x3f38cb['key']]:_0x3c4286[_0x3f38cb['key']]=_0x3f38cb['newValue'];}}function F(_0x18d478){const _0x330720=B(_0x18d478['rootName'],_0x18d478['isAttached']());for(const _0x38f82e of _0x18d478['getChildren']()){const _0x400da1=_0x38f82e['_clone'](!0x0);_0x330720['_appendChild'](_0x400da1);}return _0x330720;}function B(_0x4c45ef,_0x5060d3=!0x0){const _0xf38868=new wt();return _0xf38868['rootName']=_0x4c45ef,_0xf38868['_isAttached']=_0x5060d3,_0xf38868['isAttached']=()=>_0xf38868['_isAttached'],_0xf38868;}function J(_0x4e9e29,_0x1344e8,_0x207e0c){const _0x429140='elementEnd'==_0x4e9e29['type']?_0x207e0c['createPositionAt'](_0x4e9e29['item'],'end'):_0x207e0c['createPositionBefore'](_0x4e9e29['item']);return _0x207e0c['createPositionFromPath'](_0x1344e8,_0x429140['path'],_0x429140['stickiness']);}function q(_0xefadd2,_0x281377,_0x115391){const _0x146e08='elementStart'==_0xefadd2['type']?_0x115391['createPositionAt'](_0xefadd2['item'],0x0):_0x115391['createPositionAfter'](_0xefadd2['item']);return _0x115391['createPositionFromPath'](_0x281377,_0x146e08['path'],_0x146e08['stickiness']);}class hs extends _0x59c2ca{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1896ab,_0x6d8c37){super(_0x1896ab),this['focusTracker']=new _0x426056(),this['keystrokes']=new _0x5bb513(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x6d8c37),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'](),_0x2b7941({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x151553=_0x3347bc=>_0x3347bc['stopPropagation']();this['keystrokes']['set']('arrowright',_0x151553),this['keystrokes']['set']('arrowleft',_0x151553),this['keystrokes']['set']('arrowup',_0x151553),this['keystrokes']['set']('arrowdown',_0x151553);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3cbd2b){this['revisionNameInputView']['fieldView']['element']['value']=_0x3cbd2b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x539bc3){const _0x479067=new at(this['locale'],_0x2931d8),_0x13b4ca=_0x479067['fieldView'];_0x13b4ca['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x26e258=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x539bc3&&(_0x26e258+='\x20('+R(this['locale'],'optional')+')'),(_0x479067['label']=_0x26e258,_0x13b4ca['on']('input',()=>{this['revisionNameInputValue']=_0x13b4ca['element']['value']['trim']();}),_0x479067);}}class u extends _0x5a5f64{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x12f5be=this['editor'],_0x130906=_0x12f5be['plugins']['get']('RevisionTracker');_0x12f5be['ui']['componentFactory']['add']('revisionHistory',_0x4b6957=>{const _0x5144d8=_0x40e817(_0x4b6957),_0x45eb3d=_0x5144d8['panelView']['children'],_0x4a1ffd=new _0xab325d(_0x4b6957),_0x5ae1c8=new te(_0x4b6957),_0x5853cb=new _0x3b013d(_0x4b6957),_0xeacc99=new te(_0x4b6957),_0x5c9290=new _0x3b013d(_0x4b6957);return _0x5144d8['bind']('isEnabled')['to'](_0x130906,'isReady',_0x130906,'isEnabled',_0x12f5be,'isReadOnly',(_0x4b8c69,_0xa5d373,_0xdfcfd5)=>_0x4b8c69&&_0xa5d373&&!_0xdfcfd5),_0x5144d8['buttonView']['set']({'icon':_0x2b22d2['history'],'label':R(_0x4b6957,'Revision\x20history'),'tooltip':!0x0}),_0x5853cb['set']({'label':R(_0x4b6957,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5853cb['bind']('isEnabled')['to'](_0x130906,'isReady',_0x130906,'isEnabled',_0x12f5be,'isReadOnly',(_0x385a2b,_0x287c53,_0x5786d5)=>_0x385a2b&&_0x287c53&&!_0x5786d5),_0x5853cb['on']('execute',()=>this['_showDialog']()),_0x5c9290['set']({'label':R(_0x4b6957,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5c9290['bind']('isEnabled')['to'](_0x130906,'isReady',_0x12f5be,'isReadOnly',(_0x2bc45d,_0x4ab749)=>_0x2bc45d&&!_0x4ab749),_0x5c9290['on']('execute',()=>{_0x12f5be['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5144d8['isOpen']=!0x1,_0x12f5be['editing']['view']['focus']();}),_0x5ae1c8['children']['add'](_0x5853cb),_0xeacc99['children']['add'](_0x5c9290),_0x4a1ffd['role']='menu',_0x4a1ffd['items']['addMany']([_0x5ae1c8,_0xeacc99]),_0x45eb3d['add'](_0x4a1ffd),_0x5144d8;}),_0x12f5be['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x14ecd1=this['editor'],_0x146fa0=_0x14ecd1['locale'],_0x4d689e=new _0x8cd669(_0x146fa0),_0x3d0983=new _0x3181c6(_0x146fa0);_0x4d689e['buttonView']['set']({'icon':_0x2b22d2['history'],'label':R(_0x146fa0,'Revision\x20history')});const _0xc3d78c=new _0x41624a(_0x146fa0,_0x4d689e),_0x134035=new _0x58d60f(_0x146fa0);_0x134035['set']({'label':R(_0x146fa0,'Save\x20current\x20revision')}),_0x134035['delegate']('execute')['to'](_0x4d689e),_0x134035['on']('execute',()=>{this['_showDialog']();}),_0xc3d78c['children']['add'](_0x134035),_0x3d0983['items']['add'](_0xc3d78c);const _0x807ae0=new _0x41624a(_0x146fa0,_0x4d689e),_0xbd37e5=new _0x58d60f(_0x146fa0);return _0xbd37e5['set']({'label':R(_0x146fa0,'Open\x20revision\x20history')}),_0xbd37e5['delegate']('execute')['to'](_0x4d689e),_0xbd37e5['on']('execute',()=>{_0x14ecd1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x807ae0['children']['add'](_0xbd37e5),_0x3d0983['items']['add'](_0x807ae0),_0x4d689e['panelView']['children']['add'](_0x3d0983),_0x4d689e;}['_showDialog'](){const _0x6edda2=this['editor'],_0x382b8d=_0x6edda2['locale'],_0x212516=_0x6edda2['plugins']['get']('Dialog'),_0x34ee5b=_0x6edda2['plugins']['get']('RevisionTracker');function _0x492475(_0x3b1585){_0x6edda2['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3b1585['revisionName']?_0x3b1585['revisionNameInputView']['errorText']=R(_0x382b8d,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x6edda2['plugins']['get'](l)['saveRevision']({'name':_0x3b1585['revisionName']}),_0x212516['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x492475(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x212516['show']({'id':'revisionSave','title':R(_0x382b8d,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x6edda2['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x212516['hide']()},{'label':R(_0x6edda2['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4ed09b){_0x4ed09b['bind']('isEnabled')['to'](_0x34ee5b,'isReady',_0x34ee5b,'isEnabled',_0x6edda2,'isReadOnly',(_0x204f12,_0x29073c,_0x26cc5a)=>_0x204f12&&_0x29073c&&!_0x26cc5a);},'onExecute':()=>_0x492475(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1b3681=this['editor'],_0x40b55a=_0x1b3681['locale'];this['_saveRevisionFormView']=new hs(_0x40b55a,_0x1b3681['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x59c2ca{['changeId'];['_model'];constructor(_0x2a3899,_0x5a09c7){super(_0x2a3899),this['_model']=_0x5a09c7,this['changeId']=_0x5a09c7['id'];const _0x1cefa2=this['bindTemplate'],_0xe347cb=R(_0x2a3899,_0x5a09c7['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5a09c7['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5a09c7['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1cefa2['to']('type',_0x87bdcf=>'ck-revision-change__'+_0x87bdcf)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xe347cb}]},{'text':'\x20'+_0x5a09c7['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x42fc44(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1e13ca){super(),this['id']=_0x1e13ca['id']||_0x45c6ed(),this['author']=_0x1e13ca['author'],this['type']=_0x1e13ca['type'],this['data']=_0x1e13ca['data']||{},this['rootName']=_0x1e13ca['rootName'],this['set']('createdAt',_0x1e13ca['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(_0x153db1,_0x464f2a){this['newRevisionId']=_0x153db1,this['oldRevisionId']=_0x464f2a,this['changes']=new _0xc46275();}['_setChanges'](_0x140c25){for(const _0x332c7d of _0x140c25)this['changes']['add'](_0x332c7d);}}const Z={'c':_0x34a5a1,'a':_0x598c3e,'e':_0x29e244,'r':_0x38a7d8,'u':_0x196df5};class d extends _0x5a5f64{['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[_0x13a039,_0xc8f96d,j];}constructor(_0x57908d){super(_0x57908d),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',(_0x2263d5,_0x2e6017,_0x1e0ea4)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x219635=>{for(const _0x1ff8b9 of this['editor']['editing']['view']['document']['roots'])_0x1e0ea4?_0x219635['removeClass']('ck-editor__editable__overlay',_0x1ff8b9):_0x219635['addClass']('ck-editor__editable__overlay',_0x1ff8b9);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x56a33=>null!==_0x56a33),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5a4e67,_0x315b99,_0x491d61)=>_0x5a4e67&&_0x491d61?_0x315b99['changes']['getIndex'](_0x491d61):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x306ca9,_0x2fd040)=>_0x306ca9?_0x2fd040['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xc8f96d);}['init'](){const _0x2c87c5=this['editor'],_0x502983=new bt(_0x2c87c5,{'direction':'backward'}),_0x393ab9=new bt(_0x2c87c5,{'direction':'forward'});(_0x2c87c5['commands']['add']('showPreviousChange',_0x502983),_0x2c87c5['commands']['add']('showNextChange',_0x393ab9),_0x2c87c5['commands']['add']('restoreRevision',new yt(_0x2c87c5)),this['on']('change:numberOfChanges',()=>{_0x502983['refresh'](),_0x393ab9['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2c87c5['enableReadOnlyMode']('revision-viewer'),_0x2c87c5['plugins']['has']('WidgetToolbarRepository'))&&_0x2c87c5['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x1a13b9){await this['loadRevisionData'](_0x1a13b9);const _0x2ee7d7={};for(const _0x4a12a7 in _0x1a13b9['diffData']){if(_0x1a13b9['diffData'][_0x4a12a7]['attachChange']&&!_0x1a13b9['diffData'][_0x4a12a7]['attachChange']['isAttached'])continue;const _0x2e8b25=this['_removeRevisionMarkers'](JSON['parse'](_0x1a13b9['diffData'][_0x4a12a7]['insertions'])),_0x5e4e5d=this['editor']['editing']['view']['document'],_0x4fed5b=new _0x29157b(_0x5e4e5d,_0x2e8b25['map'](_0x5f5dd6=>this['_getViewObj'](_0x5f5dd6)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2ee7d7[_0x4a12a7]=this['editor']['data']['processor']['toData'](_0x4fed5b),this['editor']['data']['processor']['useFillerType']('default');}return _0x2ee7d7;}async['getRevisionRootsAttributes'](_0x245b1b){await this['loadRevisionData'](_0x245b1b);const _0x5eeff5={};for(const _0x56d918 in _0x245b1b['diffData'])_0x245b1b['diffData'][_0x56d918]['attachChange']&&!_0x245b1b['diffData'][_0x56d918]['attachChange']['isAttached']||(_0x5eeff5[_0x56d918]=_0x245b1b['diffData'][_0x56d918]['attributesAfter']||{});return _0x5eeff5;}['_removeRevisionMarkers'](_0x43c751){return(_0x43c751=_0x43c751['filter'](_0x227ed3=>!_0x227ed3['name']||'revision-start'!==_0x227ed3['name']&&'revision-end'!==_0x227ed3['name']))['forEach'](_0x292c6f=>{'string'!=typeof _0x292c6f&&(_0x292c6f['children']=this['_removeRevisionMarkers'](_0x292c6f['children']),_0x292c6f['attributes']=_0x292c6f['attributes']['filter'](_0x1243c6=>!_0x1243c6[0x0]['startsWith']('data-revision-')));}),_0x43c751;}async['compare'](_0x28507d,_0x3093ad,_0x3b1ad7=!0x1){if(!this['isEnabled'])return;const _0x525b09=this['diff'],_0x21db0c=this['repository'],_0x27f3f6='string'==typeof _0x28507d?_0x21db0c['getRevision'](_0x28507d):_0x28507d,_0x3e4b8f='string'==typeof _0x3093ad?_0x21db0c['getRevision'](_0x3093ad):_0x3093ad,_0x2d2f37=_0x27f3f6['id'],_0x348f52=_0x3e4b8f?_0x3e4b8f['id']:null;if(!_0x3b1ad7&&this['diff']&&this['diff']['newRevisionId']===_0x2d2f37&&this['diff']['oldRevisionId']===_0x348f52)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x2d2f37,_0x348f52);const _0x4b82df=this['_getRevisionsRange'](_0x27f3f6,_0x3e4b8f,!0x0)['map'](_0x500a4=>this['loadRevisionData'](_0x500a4));return _0x4b82df['push'](new Promise(_0x2969f2=>{setTimeout(_0x2969f2,0x14);})),Promise['all'](_0x4b82df)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1907d3=this['_getDiff'](_0x2d2f37,_0x348f52);for(const _0x5dd44f of _0x1907d3['changes'])this['_changeIdToChange']['set'](_0x5dd44f['id'],_0x5dd44f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x59eb56=>{for(const _0x9e9eae of this['editor']['model']['document']['getRootNames']())_0x59eb56['detachRoot'](_0x9e9eae);for(const _0x241771 of Object['keys'](_0x1907d3['model'])){const _0x324e79=_0x59eb56['addRoot'](_0x241771);for(const _0x43acaf of Object['keys'](_0x1907d3['attributes'][_0x241771]))_0x59eb56['setAttribute'](_0x43acaf,_0x1907d3['attributes'][_0x241771][_0x43acaf],_0x324e79);_0x59eb56['insert'](_0x1907d3['model'][_0x241771],_0x324e79,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1907d3['changes'])),this['isReady']=!0x0;})['catch'](_0x2bf360=>{console['error'](_0x2bf360),this['_cleanUp'](),_0x525b09&&(this['diff']=_0x525b09),this['isReady']=!0x0;});}['addRevisionData'](_0x1b1bab,_0x3499d5){const _0x1e431e=this['repository']['createRevision'](_0x1b1bab);return _0x1e431e['on']('_update',(_0x240a66,_0x185b89,_0x556ed8)=>_0x3499d5(_0x185b89,_0x556ed8,_0x1e431e)),this['repository']['addRevision'](_0x1e431e),_0x1e431e;}['loadRevisionData'](_0x1e3993){if(!_0x1e3993||_0x1e3993['diffData'])return Promise['resolve']();{const _0x185fc1=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x185fc1,'revisionId':_0x1e3993['id']})['then'](_0x4c3055=>{_0x1e3993['_update']({'diffData':_0x4c3055['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},_0x14c7c8=>{for(const _0x4cfb50 of this['editor']['model']['document']['getRootNames']())_0x14c7c8['detachRoot'](_0x4cfb50);});}['_sortAndFilterDiffChanges'](_0x387ac4){const _0x170aa6=[],_0x1914d3=new Map();for(const _0xf247c4 of this['editor']['model']['document']['getRootNames']()){const _0x9fcd70=this['editor']['editing']['view']['getDomRoot'](_0xf247c4);if(!_0x9fcd70)continue;const _0x3cf6d9=_0x9fcd70['getClientRects']()['item'](0x0);_0x3cf6d9&&(_0x170aa6['push'](_0xf247c4),_0x1914d3['set'](_0xf247c4,_0x3cf6d9));}return _0x170aa6['sort']((_0x646d61,_0x6540f6)=>{const _0x5a9d9b=_0x1914d3['get'](_0x646d61),_0x131b66=_0x1914d3['get'](_0x6540f6);return _0x5a9d9b['y']-_0x131b66['y']||_0x5a9d9b['x']-_0x131b66['x'];}),(_0x387ac4=_0x387ac4['filter'](_0x445483=>_0x170aa6['includes'](_0x445483['rootName'])))['sort']((_0x23c342,_0x4368e8)=>_0x170aa6['indexOf'](_0x23c342['rootName'])-_0x170aa6['indexOf'](_0x4368e8['rootName'])),_0x387ac4;}['_makeTape'](_0x150cf0){const _0x526906=Array['from'](_0x150cf0['markers'])['filter'](([_0x25fdd9,_0x3e6d90])=>_0x25fdd9['startsWith']('revision:')&&!_0x3e6d90['isCollapsed']),_0x48b5ed=Array['from'](this['editor']['model']['createRangeIn'](_0x150cf0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x526906['length'])for(const _0x480be6 of _0x48b5ed){const [_0x39e529,_0x47e5e0]=_0x526906[0x0],[,_0x1ee717,_0x21b1f6]=_0x39e529['split'](':');if(_0x47e5e0['end']['isEqual'](_0x480be6['nextPosition'])&&_0x526906['shift'](),(_0x480be6['previousPosition']['isEqual'](_0x47e5e0['start'])||_0x480be6['previousPosition']['isAfter'](_0x47e5e0['start']))&&('insertion'==_0x1ee717?_0x480be6['isAdded']={'userId':_0x21b1f6}:'deletion'==_0x1ee717&&(_0x480be6['isRemoved']={'userId':_0x21b1f6})),0x0==_0x526906['length'])break;}return _0x48b5ed;}['_refreshStartEndIndex'](_0x593f1c){const _0x315cac=new Map();for(let _0x2c6f20=0x0;_0x2c6f20<_0x593f1c['length'];_0x2c6f20++)'text'===_0x593f1c[_0x2c6f20]['type']?(_0x593f1c[_0x2c6f20]['item']['startIndex']=_0x2c6f20,_0x593f1c[_0x2c6f20]['item']['endIndex']=_0x2c6f20):('elementStart'===_0x593f1c[_0x2c6f20]['type']?_0x593f1c[_0x2c6f20]['item']['startIndex']=_0x2c6f20:'elementEnd'===_0x593f1c[_0x2c6f20]['type']&&(_0x593f1c[_0x2c6f20]['item']['endIndex']=_0x2c6f20),_0x315cac['set'](_0x593f1c[_0x2c6f20]['id'],_0x2c6f20));for(const _0x30e8f2 of _0x315cac['values']())'elementStart'===_0x593f1c[_0x30e8f2]['type']?_0x593f1c[_0x30e8f2]['item']['endIndex']=_0x315cac['get'](_0x593f1c[_0x30e8f2]['pairId']):'elementEnd'===_0x593f1c[_0x30e8f2]['type']&&(_0x593f1c[_0x30e8f2]['item']['startIndex']=_0x315cac['get'](_0x593f1c[_0x30e8f2]['pairId']));}['_processTape'](_0x17f139){for(let _0x83f327=0x0;_0x83f327<_0x17f139['length'];_0x83f327++){if('elementStart'===_0x17f139[_0x83f327]['type'])_0x17f139[_0x83f327]['item']['startIndex']=_0x83f327;else{if('elementEnd'===_0x17f139[_0x83f327]['type']){_0x17f139[_0x83f327]['item']['endIndex']=_0x83f327;const _0x516fec=_0x17f139[_0x83f327]['item']['startIndex'];_0x17f139[_0x516fec]['pairId']=_0x17f139[_0x83f327]['id'],_0x17f139[_0x83f327]['pairId']=_0x17f139[_0x516fec]['id'];}else _0x17f139[_0x83f327]['item']['startIndex']=_0x83f327,_0x17f139[_0x83f327]['item']['endIndex']=_0x83f327,_0x17f139[_0x83f327]['pairId']=null;}_0x17f139[_0x83f327]['markersStart']||(_0x17f139[_0x83f327]['markersStart']=[],_0x17f139[_0x83f327]['markersEnd']=[]);}}['_markInsertions'](_0x2494c2,_0x24e6fd){const _0x104de4=_0x2494c2['filter'](_0x4db2ed=>!_0x4db2ed['isAdded']);for(let _0x5445d3=0x0;_0x5445d3<_0x24e6fd['length'];_0x5445d3++)_0x24e6fd[_0x5445d3]['isAdded']&&(_0x104de4[_0x5445d3]['isAdded']=_0x24e6fd[_0x5445d3]['isAdded']);}['_makeModelFromViewString'](_0x51a208){const _0x4853d=JSON['parse'](_0x51a208),_0x5d63ec=this['editor']['editing']['view']['document'],_0x452e3f=new _0x29157b(_0x5d63ec,_0x4853d['map'](_0x2c6363=>this['_getViewObj'](_0x2c6363)));return this['editor']['data']['toModel'](_0x452e3f);}['_getViewObj'](_0x50d6ed){const _0x46bc03=this['editor']['editing']['view']['document'];if('string'==typeof _0x50d6ed)return new _0x580579(_0x46bc03,_0x50d6ed);{const _0x48d34e=_0x50d6ed['children']['map'](_0x4e8a7d=>this['_getViewObj'](_0x4e8a7d));return new(Z[_0x50d6ed['type']]||_0x9fe0f9)(_0x46bc03,_0x50d6ed['name'],_0x50d6ed['attributes'],_0x48d34e);}}['_getDiff'](_0x51efd1,_0x5e3ae6=null){const _0x1d1607=this['repository']['getRevision'](_0x51efd1),_0x3d3b88=_0x5e3ae6?this['repository']['getRevision'](_0x5e3ae6):null,_0x4084e6=this['_getRevisionsRange'](_0x1d1607,_0x3d3b88),_0x332264=_0x4084e6[_0x4084e6['length']-0x1],_0x22742d=new Map(),_0x275a00={'model':{},'attributes':{},'changes':[]},_0x3fd309=new Set(),_0x136e5d=new Map();for(let _0x3bb811=_0x4084e6['length']-0x1;_0x3bb811>=0x0;_0x3bb811--){const _0x5a0920=_0x4084e6[_0x3bb811];for(const _0x16d40f of Object['keys'](_0x5a0920['diffData']))if(_0x5a0920['diffData'][_0x16d40f]['attachChange']){const _0x190a6f=_0x5a0920['diffData'][_0x16d40f]['attachChange'];_0x190a6f['isAttached']?(_0x3fd309['add'](_0x16d40f),_0x136e5d['has'](_0x16d40f)&&_0x136e5d['get'](_0x16d40f)['userId']==_0x190a6f['userId']?_0x136e5d['delete'](_0x16d40f):_0x136e5d['set'](_0x16d40f,_0x190a6f)):_0x136e5d['has'](_0x16d40f)?(_0x3fd309['delete'](_0x16d40f),_0x136e5d['delete'](_0x16d40f)):(_0x3fd309['add'](_0x16d40f),_0x136e5d['set'](_0x16d40f,_0x190a6f));}else _0x3fd309['add'](_0x16d40f);}for(const _0x494b33 of _0x3fd309){const _0x3e2ee9=_0x136e5d['has'](_0x494b33)&&!_0x136e5d['get'](_0x494b33)['isAttached'];let _0x1b860c=_0x3e2ee9?_0x4084e6['length']-0x1:0x0;const _0x1be726=_0x3e2ee9?-0x1:0x1;for(;_0x4084e6[_0x1b860c];){const _0x4042c0=_0x4084e6[_0x1b860c];if(_0x4042c0['diffData'][_0x494b33]){const _0x147651=_0x3e2ee9?_0x4042c0['diffData'][_0x494b33]['attributesBefore']:_0x4042c0['diffData'][_0x494b33]['attributesAfter'];_0x275a00['attributes'][_0x494b33]=_0x147651?_0x1fbbd4(_0x147651):{};break;}_0x1b860c+=_0x1be726;}}for(const _0x16817c of _0x4084e6){_0x16817c['model']={};for(const _0x6495da of _0x16817c['authors'])_0x22742d['set'](_0x6495da['id'],_0x6495da);for(const _0x4bc340 of _0x3fd309){const _0xd1ea91=_0x16817c['diffData'][_0x4bc340]?_0x16817c['diffData'][_0x4bc340]['insertions']:'[]',_0x55cade=_0x16817c['diffData'][_0x4bc340]?_0x16817c['diffData'][_0x4bc340]['deletions']:'[]';_0x16817c['model'][_0x4bc340]={'insertions':this['_makeModelFromViewString'](_0xd1ea91),'deletions':this['_makeModelFromViewString'](_0x55cade)};}}for(const _0x306eb5 of _0x3fd309){let _0x105317=null,_0x440771=0x0;const _0x5f49a9=new Map(Array['from'](_0x1d1607['model'][_0x306eb5]['insertions']['markers'])['filter'](([_0x483bf3])=>!_0x483bf3['startsWith']('revision:')));let _0x20d50f=0x0;for(const _0x14a72f of _0x4084e6){const _0x2a5321=this['_makeTape'](_0x14a72f['model'][_0x306eb5]['insertions']);_0x14a72f==_0x1d1607?(_0x105317=_0x2a5321,_0x440771=_0x105317['length'],_0x105317['forEach'](_0x14a8d0=>{_0x14a8d0['id']=_0x20d50f++;}),this['_processTape'](_0x105317)):this['_markInsertions'](_0x105317,_0x2a5321);const _0x5b536c=_0x105317['filter'](_0x15491b=>!_0x15491b['isAdded'])['map'](_0x2f7325=>_0x2f7325['id']);let _0x48da24=0x0;const _0x2a1e41=this['_makeTape'](_0x14a72f['model'][_0x306eb5]['deletions']);_0x2a1e41['forEach'](_0x139f54=>{_0x139f54['isRemoved']?_0x139f54['id']=_0x440771++:_0x139f54['id']=_0x5b536c[_0x48da24++];}),this['_processTape'](_0x2a1e41),this['_setDistance'](_0x105317,'isAdded'),this['_setDistance'](_0x2a1e41,'isRemoved'),_0x14a72f==_0x1d1607&&this['_markMarkers'](_0x105317,_0x5f49a9),_0x105317=this['_joinTapes'](_0x105317,_0x2a1e41),this['_refreshStartEndIndex'](_0x105317),this['_setDistance'](_0x105317,'isRemoved');}_0x105317=_0x105317['filter'](_0xa8510d=>!(_0xa8510d['isAdded']&&_0xa8510d['isRemoved']));const _0x475c38=new Map(_0x332264['model'][_0x306eb5]['deletions']['markers']),_0x168709=new Set(_0x5f49a9['keys']());for(const _0x564ff2 of _0x475c38['keys']())_0x168709['delete'](_0x564ff2);this['_markSuggestions'](_0x105317,_0x168709),this['_fixObsoleteTags'](_0x105317),_0x105317=this['_removeMissingPairs'](_0x105317),_0x105317=this['_markMismatchedRemovedTags'](_0x105317),_0x105317=this['_removeUnsupportedChanges'](_0x105317);const {root:_0x303dbe,changes:_0x36b525}=this['_makeModelFromTape'](_0x105317,_0x22742d,_0x306eb5);_0x275a00['model'][_0x306eb5]=_0x303dbe;const _0x16f2eb=_0x136e5d['get'](_0x306eb5);if(_0x16f2eb){const _0x570dd9=_0x22742d['get'](_0x16f2eb['userId']),_0x52a12c=new r({'author':_0x570dd9,'type':_0x16f2eb['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x306eb5});_0x36b525['unshift'](_0x52a12c),_0x275a00['attributes'][_0x306eb5]['revisionHistoryAttachChange']=_0x52a12c['id'];}_0x275a00['changes']=_0x275a00['changes']['concat'](_0x36b525);}return _0x275a00;}['_markMarkers'](_0x4d359e,_0x5917f1){for(let _0xfb8bd4=0x0;_0xfb8bd4<_0x4d359e['length'];_0xfb8bd4++)for(const [_0x59b300,_0x4e7b7a]of _0x5917f1)_0x4e7b7a['start']['isEqual'](_0x4d359e[_0xfb8bd4]['previousPosition'])&&_0x4d359e[_0xfb8bd4]['markersStart']['push'](_0x59b300),_0x4e7b7a['end']['isEqual'](_0x4d359e[_0xfb8bd4]['nextPosition'])&&_0x4d359e[_0xfb8bd4]['markersEnd']['push'](_0x59b300);}['_joinTapes'](_0x40888b,_0xd06eb1){let _0x368315=[],_0x2e492c=0x0,_0x34c76a=0x0;for(;_0x2e492c<_0x40888b['length']||_0x34c76a<_0xd06eb1['length'];){const _0x422336=_0x40888b[_0x2e492c]||{},_0x378332=_0xd06eb1[_0x34c76a]||{};if(_0x422336['id']==_0x378332['id'])_0x2e492c++,_0x34c76a++,_0x368315['push'](_0x422336);else{if(_0x378332['isRemoved']&&_0x422336['isAdded']){const {commonTape:_0x44d7c4,iEnd:_0x3ada62,jEnd:_0x5c6b99}=this['_threeWayMerge'](_0x40888b,_0x2e492c,_0xd06eb1,_0x34c76a);_0x368315=_0x368315['concat'](_0x44d7c4),_0x2e492c=_0x3ada62,_0x34c76a=_0x5c6b99;}else _0x378332['isRemoved']?(_0x34c76a++,_0x368315['push'](_0x378332)):(_0x2e492c++,_0x368315['push'](_0x422336));}}return _0x368315;}['_markSuggestions'](_0x5ca50f,_0x470c39){const _0x41ca78=[];for(let _0x1994bd=0x0;_0x1994bd<_0x5ca50f['length'];_0x1994bd++){for(let _0x375291=0x0;_0x375291<_0x5ca50f[_0x1994bd]['markersStart']['length'];_0x375291++){const _0x4f412c=_0x5ca50f[_0x1994bd]['markersStart'][_0x375291];if(!_0x470c39['has'](_0x4f412c))continue;const {group:_0x4191cc,type:_0x110aab,authorId:_0x21462f}=_0x278fd6(_0x4f412c);'revision-suggestion'!=_0x4191cc||'insertion'!=_0x110aab&&'deletion'!=_0x110aab||(_0x41ca78['unshift']({'type':_0x110aab,'name':_0x4f412c,'userId':_0x21462f}),_0x5ca50f[_0x1994bd]['markersStart']['splice'](_0x375291,0x1),_0x375291--);}_0x3e8122(_0x5ca50f[_0x1994bd]);for(let _0x1264c5=0x0;_0x1264c5<_0x5ca50f[_0x1994bd]['markersEnd']['length'];_0x1264c5++){const _0x4f868f=_0x5ca50f[_0x1994bd]['markersEnd'][_0x1264c5];if(!_0x470c39['has'](_0x4f868f))continue;const {group:_0x3efd18,type:_0x153631}=_0x278fd6(_0x4f868f);if('revision-suggestion'!=_0x3efd18||'insertion'!=_0x153631&&'deletion'!=_0x153631)continue;_0x5ca50f[_0x1994bd]['markersEnd']['splice'](_0x1264c5,0x1),_0x1264c5--;const _0x1ebfb4=_0x41ca78['findIndex'](_0x16e82c=>_0x16e82c['name']==_0x4f868f);_0x1ebfb4>-0x1&&_0x41ca78['splice'](_0x1ebfb4,0x1);}}function _0x278fd6(_0x2e3163){const _0x1600e5=_0x2e3163['split'](':');return{'group':_0x1600e5[0x0],'type':_0x1600e5[0x1],'subType':_0x1600e5['length']>=0x5?_0x1600e5[0x2]:null,'id':_0x1600e5['length']<0x5?_0x1600e5[0x2]:_0x1600e5[0x3],'authorId':_0x1600e5['length']<0x5?_0x1600e5[0x3]:_0x1600e5[0x4],'markerCount':0x6==_0x1600e5['length']?_0x1600e5[0x5]:null};}function _0x3e8122(_0x30de5d){for(let _0x572417=0x0;_0x572417<_0x41ca78['length'];_0x572417++){if(_0x30de5d['isAdded']&&'insertion'==_0x41ca78[_0x572417]['type'])return _0x30de5d['isAddSuggestion']=_0x41ca78[_0x572417],void delete _0x30de5d['isAdded'];if(!_0x30de5d['isAdded']&&!_0x30de5d['isRemoved']&&'deletion'==_0x41ca78[_0x572417]['type'])return void(_0x30de5d['isRemoveSuggestion']=_0x41ca78[_0x572417]);}}}['_setDistance'](_0x51648f,_0x46c1ea){let _0x41c873=0x0,_0x5cfbba=!0x1;const _0x1d49b8=new Map();for(const _0x1c7840 of _0x51648f)_0x1c7840[_0x46c1ea]?_0x5cfbba&&(_0x41c873++,_0x5cfbba=!0x1):(_0x41c873++,_0x5cfbba=!0x0),_0x1d49b8['set'](_0x1c7840['id'],_0x41c873);for(let _0x2ddb43=0x0;_0x2ddb43<_0x51648f['length'];_0x2ddb43++){if('isRemoved'==_0x46c1ea&&_0x51648f[_0x2ddb43]['isAdded']||'isAdded'==_0x46c1ea&&_0x51648f[_0x2ddb43]['isRemoved'])continue;if('text'==_0x51648f[_0x2ddb43]['type']){_0x51648f[_0x2ddb43]['distance']=0x0;continue;}const _0xd32339=_0x1d49b8['get'](_0x51648f[_0x2ddb43]['pairId']),_0x1b0b37=_0x1d49b8['get'](_0x51648f[_0x2ddb43]['id']);_0x51648f[_0x2ddb43]['distance']=_0xd32339-_0x1b0b37;}}['_getRevisionsRange'](_0x11767b,_0x2b2be7,_0x10f321=!0x1){const _0x483449=[];let _0x463506=this['repository']['getIndex'](_0x11767b),_0x1f9c7f=this['repository']['getIndex'](_0x2b2be7);for(-0x1==_0x1f9c7f&&(_0x1f9c7f=this['repository']['_revisions']['length'],_0x10f321=!0x1);_0x463506<_0x1f9c7f;)_0x483449['push'](this['repository']['getRevision'](_0x463506)),_0x463506++;return _0x10f321&&_0x483449['push'](this['repository']['getRevision'](_0x463506)),_0x483449;}['_threeWayMerge'](_0x1362e7,_0x215547,_0x1dc4a0,_0x2a4e48){const _0x115bcf=this['editor']['model']['schema'];let _0x200312=_0x215547;for(;_0x1362e7[_0x200312]&&_0x1362e7[_0x200312]['isAdded'];)_0x200312++;let _0x20da61=_0x2a4e48;for(;_0x1dc4a0[_0x20da61]&&_0x1dc4a0[_0x20da61]['isRemoved'];)_0x20da61++;_0x10d60b(_0x1362e7,_0x215547,_0x200312),_0x10d60b(_0x1dc4a0,_0x2a4e48,_0x20da61);const _0x247b59=_0x1dc4a0['slice'](_0x2a4e48,_0x20da61)['concat'](_0x1362e7['slice'](_0x215547,_0x200312));return _0x247b59['sort']((_0x2cd9eb,_0x5532d3)=>_0x2cd9eb['side']!=_0x5532d3['side']?_0x2cd9eb['side']-_0x5532d3['side']:_0x2cd9eb['level']!=_0x5532d3['level']?_0x2cd9eb['level']-_0x5532d3['level']:_0x2cd9eb['distance']!=_0x5532d3['distance']?_0x5532d3['distance']-_0x2cd9eb['distance']:!!_0x2cd9eb['isAdded']!=!!_0x5532d3['isAdded']?-0x1==_0x2cd9eb['side']||0x0==_0x2cd9eb['side']?_0x2cd9eb['isAdded']?-0x1:0x1:_0x2cd9eb['isAdded']?0x1:-0x1:_0x2cd9eb['index']-_0x5532d3['index']),{'commonTape':_0x247b59,'iEnd':_0x200312,'jEnd':_0x20da61};function _0x10d60b(_0x319f0e,_0x2af40d,_0x28bd8a){let _0x4c4945=-0x1,_0x9e57cb=Number['POSITIVE_INFINITY'],_0x5edcd3=!0x0;for(let _0x2c1a17=_0x2af40d;_0x2c1a17<_0x28bd8a;_0x2c1a17++)if(_0x115bcf['isInline'](_0x319f0e[_0x2c1a17]['item'])||(_0x5edcd3=!0x1),_0x319f0e[_0x2c1a17]['item']['startIndex']<_0x2af40d&&(_0x4c4945=_0x2c1a17),_0x319f0e[_0x2c1a17]['item']['endIndex']>=_0x28bd8a){_0x9e57cb=_0x2c1a17;break;}_0x5edcd3&&(_0x4c4945=_0x28bd8a-0x1);for(let _0x36bc39=_0x2af40d;_0x36bc39<_0x28bd8a;_0x36bc39++)_0x319f0e[_0x36bc39]['side']=_0x36bc39<=_0x4c4945?-0x1:_0x36bc39<_0x9e57cb?0x0:0x1,_0x319f0e[_0x36bc39]['index']=_0x36bc39;let _0x1e3b7e=0x0;for(let _0x247509=_0x2af40d;_0x247509<=_0x4c4945;_0x247509++)0x0==_0x319f0e[_0x247509]['distance']?_0x319f0e[_0x247509]['level']=_0x1e3b7e:(_0x1e3b7e++,_0x319f0e[_0x247509]['level']=_0x1e3b7e,_0x1e3b7e++);for(let _0x348dab=_0x2af40d;_0x348dab<_0x28bd8a;_0x348dab++)0x0==_0x319f0e[_0x348dab]['side']&&(_0x319f0e[_0x348dab]['level']=_0x1e3b7e);_0x1e3b7e=0x0;for(let _0x105c1a=_0x28bd8a-0x1;_0x105c1a>=_0x9e57cb;_0x105c1a--)0x0==_0x319f0e[_0x105c1a]['distance']?_0x319f0e[_0x105c1a]['level']=_0x1e3b7e:(_0x1e3b7e--,_0x319f0e[_0x105c1a]['level']=_0x1e3b7e,_0x1e3b7e--);}}['_fixObsoleteTags'](_0x5b5b06){const _0xeafc5d=new Map(),_0xe9a752=this['editor']['model']['schema'];for(let _0x57a2fe=0x1;_0x57a2fe<_0x5b5b06['length'];_0x57a2fe++){let _0x504211,_0x176562,_0x3c8ab4;const _0x1d3643=_0x5b5b06[_0x57a2fe],_0xe7b3a5=_0x5b5b06[_0x57a2fe-0x1];if('text'==_0x1d3643['type'])continue;if(_0x1d3643['type']!=_0xe7b3a5['type'])continue;if(!_0xe9a752['isBlock'](_0xe7b3a5['item'])||_0xe9a752['isLimit'](_0xe7b3a5['item']))continue;if(!_0xe9a752['isBlock'](_0x1d3643['item'])||_0xe9a752['isLimit'](_0x1d3643['item']))continue;if((_0x5b5b06[_0x57a2fe]['isAdded']||_0x5b5b06[_0x57a2fe]['isAddSuggestion'])&&_0x5b5b06[_0x57a2fe-0x1]['isRemoved'])_0x504211=_0x5b5b06[_0x57a2fe],_0x176562=_0x5b5b06[_0x57a2fe-0x1],_0x3c8ab4=_0x57a2fe-0x1;else{if(!_0x5b5b06[_0x57a2fe]['isRemoved']||!_0x5b5b06[_0x57a2fe-0x1]['isAdded']&&!_0x5b5b06[_0x57a2fe-0x1]['isAddSuggestion'])continue;_0x504211=_0x5b5b06[_0x57a2fe-0x1],_0x176562=_0x5b5b06[_0x57a2fe],_0x3c8ab4=_0x57a2fe;}const _0x5e92d0=_0x504211['level']==_0x176562['level'],_0x4d04a7=Math['abs'](_0x504211['level'])<Math['abs'](_0x176562['level'])&&0x0==_0x176562['distance'];(_0x5e92d0||_0x4d04a7)&&(_0xeafc5d['set'](_0x176562['id'],_0x504211['id']),_0x5b5b06['splice'](_0x3c8ab4,0x1),_0x57a2fe--,_0x504211['isAdded']=!0x1);}for(let _0x3e7ea4=0x0;_0x3e7ea4<_0x5b5b06['length'];_0x3e7ea4++)_0xeafc5d['has'](_0x5b5b06[_0x3e7ea4]['pairId'])&&(_0x5b5b06[_0x3e7ea4]['pairId']=_0xeafc5d['get'](_0x5b5b06[_0x3e7ea4]['pairId']));}['_removeMissingPairs'](_0x136a6d){const _0x584409=new Set(_0x136a6d['map'](_0x50e67d=>_0x50e67d['id']));for(let _0x5da352=0x0;_0x5da352<_0x136a6d['length'];_0x5da352++)_0x584409['has'](_0x136a6d[_0x5da352]['pairId'])||0x0==_0x136a6d[_0x5da352]['distance']||(_0x136a6d[_0x5da352]['isIncorrect']=!0x0);return _0x136a6d['filter'](_0x187ce5=>!_0x187ce5['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4be1df){const _0x3c5e12=new Set();for(let _0x344c98=0x0;_0x344c98<_0x4be1df['length'];_0x344c98++){if(_0x3c5e12['has'](_0x4be1df[_0x344c98]['id'])&&_0x4be1df[_0x344c98]['isRemoved']&&(_0x4be1df[_0x344c98]['isIncorrect']=!0x0),_0x4be1df[_0x344c98]['isIncorrect'])continue;if(0x0==_0x4be1df[_0x344c98]['distance'])continue;if('elementStart'!=_0x4be1df[_0x344c98]['type'])continue;if(null==_0x4be1df[_0x344c98]['pairId'])continue;let _0x26bb7a=_0x344c98+0x1,_0x3e1c55=0x0;for(;_0x4be1df[_0x26bb7a]['id']!=_0x4be1df[_0x344c98]['pairId'];)'elementStart'==_0x4be1df[_0x26bb7a]['type']?_0x3e1c55++:'elementEnd'==_0x4be1df[_0x26bb7a]['type']&&_0x3e1c55--,_0x26bb7a++;if(0x0!=_0x3e1c55){if(_0x4be1df[_0x344c98]['isRemoved'])_0x4be1df[_0x344c98]['isIncorrect']=!0x0;else{for(;_0x26bb7a!=_0x344c98;)_0x4be1df[_0x26bb7a]['isRemoved']&&0x0!=_0x4be1df[_0x26bb7a]['distance']&&(_0x4be1df[_0x26bb7a]['isIncorrect']=!0x0,_0x3c5e12['add'](_0x4be1df[_0x26bb7a]['pairId'])),_0x26bb7a--;}}}return _0x4be1df['filter'](_0x5843ff=>!_0x5843ff['isIncorrect']);}['_removeUnsupportedChanges'](_0x8c9caa){const _0x1a089e=this['editor']['model']['schema'];for(let _0x2b87fd=0x0;_0x2b87fd<_0x8c9caa['length'];_0x2b87fd++){if(!(_0x8c9caa[_0x2b87fd]['isAdded']||_0x8c9caa[_0x2b87fd]['isAddSuggestion']||_0x8c9caa[_0x2b87fd]['isRemoved']||_0x8c9caa[_0x2b87fd]['isRemoveSuggestion']))continue;if(0x0==_0x8c9caa[_0x2b87fd]['distance'])continue;const _0x215ea3=_0x8c9caa[_0x2b87fd]['item'];_0x1a089e['isBlock'](_0x215ea3)||_0x1a089e['isLimit'](_0x215ea3)||(_0x8c9caa[_0x2b87fd]['isAdded']&&delete _0x8c9caa[_0x2b87fd]['isAdded'],_0x8c9caa[_0x2b87fd]['isAddSuggestion']&&delete _0x8c9caa[_0x2b87fd]['isAddSuggestion'],_0x8c9caa[_0x2b87fd]['isRemoveSuggestion']&&delete _0x8c9caa[_0x2b87fd]['isRemoveSuggestion'],_0x8c9caa[_0x2b87fd]['isRemoved']&&(_0x8c9caa[_0x2b87fd]['isIncorrect']=!0x0));}return _0x8c9caa['filter'](_0x56ee74=>!_0x56ee74['isIncorrect']);}['_makeModelFromTape'](_0x720d4c,_0x324503,_0xec3f19){const _0x35918e=new wt(),_0x38794a=[],_0x502a07=new Map(),_0x7c1729=this['editor']['model'],_0x55eccf=_0x7c1729['schema'],_0x405ba5=[_0x35918e],_0x2413e2={},_0x1feb98={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x6ac410=null;const _0x15e2ca=[0x0];for(let _0x1c2fca=0x0;_0x1c2fca<_0x720d4c['length'];_0x1c2fca++)if('elementStart'===_0x720d4c[_0x1c2fca]['type']){_0x720d4c[_0x1c2fca]['previousPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca);const _0x3306df=new ft(_0x720d4c[_0x1c2fca]['item']['name'],_0x720d4c[_0x1c2fca]['item']['getAttributes']());_0x405ba5[0x0]['_appendChild'](_0x3306df),_0x15e2ca['push'](0x0),_0x405ba5['unshift'](_0x3306df),_0x720d4c[_0x1c2fca]['nextPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca);}else'elementEnd'===_0x720d4c[_0x1c2fca]['type']?(_0x405ba5['shift'](),_0x720d4c[_0x1c2fca]['previousPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca),_0x15e2ca['pop'](),_0x15e2ca[_0x15e2ca['length']-0x1]++,_0x720d4c[_0x1c2fca]['nextPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca)):(_0x720d4c[_0x1c2fca]['previousPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca),_0x6ac410?_0x6ac410['_data']+=_0x720d4c[_0x1c2fca]['item']['data']:_0x6ac410=new _t(_0x720d4c[_0x1c2fca]['item']['data'],_0x720d4c[_0x1c2fca]['item']['getAttributes']()),_0x720d4c[_0x1c2fca+0x1]&&'text'===_0x720d4c[_0x1c2fca+0x1]['type']&&_0x160049(_0x6ac410,_0x720d4c[_0x1c2fca+0x1]['item'])||(_0x405ba5[0x0]['_appendChild'](_0x6ac410),_0x6ac410=null),_0x15e2ca[_0x15e2ca['length']-0x1]+=_0x720d4c[_0x1c2fca]['item']['offsetSize'],_0x720d4c[_0x1c2fca]['nextPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca));for(let _0x1c959e=0x0;_0x1c959e<_0x720d4c['length'];_0x1c959e++){const _0x42f613=_0x720d4c[_0x1c959e]['previousPosition'],_0x1449e5=_0x720d4c[_0x1c959e]['nextPosition'];for(const _0x4228ea of _0x720d4c[_0x1c959e]['markersStart'])_0x502a07['set'](_0x4228ea,{'start':_0x42f613,'end':null});_0x2a309c('isRemoveSuggestion',_0x1c959e,_0x42f613,_0x1449e5),_0x2a309c('isAddSuggestion',_0x1c959e,_0x42f613,_0x1449e5),_0x2a309c('isRemoved',_0x1c959e,_0x42f613,_0x1449e5),_0x2a309c('isAdded',_0x1c959e,_0x42f613,_0x1449e5);for(const _0x594c90 of _0x720d4c[_0x1c959e]['markersEnd']){_0x502a07['get'](_0x594c90)['end']=_0x1449e5;}}for(const [_0x3621c8,_0x1b121f]of _0x502a07){const _0x423102=this['editor']['model']['createRange'](_0x1b121f['start'],_0x1b121f['end']);_0x35918e['markers']['set'](_0x3621c8,_0x423102);}return _0x38794a['sort']((_0x46976a,_0x2dad2b)=>{const _0x1663d5=_0x35918e['markers']['get']('revision:'+_0x46976a['id']),_0x3ebd44=_0x35918e['markers']['get']('revision:'+_0x2dad2b['id']);return _0x1663d5['start']['isBefore'](_0x3ebd44['start'])?-0x1:_0x1663d5['start']['isAfter'](_0x3ebd44['start'])?0x1:_0x1663d5['end']['isBefore'](_0x3ebd44['end'])?-0x1:_0x1663d5['end']['isAfter'](_0x3ebd44['end'])?0x1:'add'===_0x46976a['type']?-0x1:0x1;}),{'root':_0x35918e,'changes':_0x38794a};function _0x2a309c(_0x17e5cd,_0x428182,_0x31921c,_0x51a500){const _0x38fc9e=!!_0x720d4c[_0x428182][_0x17e5cd],_0x3a7a0d=_0x38fc9e?_0x720d4c[_0x428182][_0x17e5cd]['userId']:null,_0x19917b=_0x428182===_0x720d4c['length']-0x1,_0x30a8c3=_0x1feb98[_0x17e5cd][0x0],_0x3aa00f=_0x55eccf['isObject'](_0x720d4c[_0x428182]['item']);!_0x2413e2[_0x17e5cd]&&_0x38fc9e?_0x2413e2[_0x17e5cd]={'start':_0x31921c,'tapeItem':_0x720d4c[_0x428182],'userId':_0x3a7a0d,'type':_0x17e5cd}:_0x2413e2[_0x17e5cd]&&!_0x38fc9e?(_0x2413e2[_0x17e5cd]['end']=_0x31921c,_0x338464(_0x2413e2[_0x17e5cd]),_0x2413e2[_0x17e5cd]=null):_0x2413e2[_0x17e5cd]&&_0x38fc9e&&_0x2413e2[_0x17e5cd]['userId']!==_0x3a7a0d&&(_0x2413e2[_0x17e5cd]['end']=_0x31921c,_0x30a8c3&&_0x30a8c3['userId']===_0x2413e2[_0x17e5cd]['userId']||_0x338464(_0x2413e2[_0x17e5cd]),_0x2413e2[_0x17e5cd]={'start':_0x31921c,'tapeItem':_0x720d4c[_0x428182],'userId':_0x3a7a0d,'type':_0x17e5cd}),_0x2413e2[_0x17e5cd]&&_0x3aa00f&&('elementStart'!==_0x720d4c[_0x428182]['type']||_0x30a8c3&&_0x30a8c3['userId']===_0x3a7a0d||_0x1feb98[_0x17e5cd]['unshift']({'userId':_0x3a7a0d,'object':_0x720d4c[_0x428182]['item'],'change':_0x2413e2[_0x17e5cd]}),'elementEnd'===_0x720d4c[_0x428182]['type']&&_0x30a8c3&&_0x30a8c3['object']===_0x720d4c[_0x428182]['item']&&(_0x1feb98[_0x17e5cd]['shift'](),_0x2413e2[_0x17e5cd]=_0x30a8c3['change'])),_0x2413e2[_0x17e5cd]&&_0x19917b&&(_0x2413e2[_0x17e5cd]['end']=_0x51a500,_0x338464(_0x2413e2[_0x17e5cd]),_0x2413e2[_0x17e5cd]=null);}function _0x338464({start:_0x1aa512,end:_0xff4cf6,tapeItem:_0x4e3d48,userId:_0x33b825,type:_0x47828b}){const _0xcaf971=_0x4e3d48['item'],_0x442289=_0x7c1729['schema']['isBlock'](_0xcaf971)&&!_0x7c1729['schema']['isLimit'](_0xcaf971),_0x1d5025=_0x1aa512['nodeAfter']==_0xff4cf6['parent']&&_0xff4cf6['isAtStart'];if(_0x442289&&_0x1d5025)return;const _0x18d8d3=_0x7c1729['createRange'](_0x1aa512,_0xff4cf6),_0x10bdf6=_0x324503['get'](_0x33b825),_0x2ff90e=new r({'author':_0x10bdf6,'type':'isAdded'==_0x47828b||'isAddSuggestion'==_0x47828b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x47828b||'isRemoveSuggestion'==_0x47828b},'createdAt':new Date(),'rootName':_0xec3f19});_0x38794a['push'](_0x2ff90e),_0x35918e['markers']['set']('revision:'+_0x2ff90e['id'],_0x18d8d3);}function _0x160049(_0x11a51a,_0xff702e){const _0x4dac59=_0x11a51a['getAttributes'](),_0x52ec91=_0xff702e['getAttributes']();for(const _0x307189 of _0x4dac59){if(_0x307189[0x1]!==_0xff702e['getAttribute'](_0x307189[0x0]))return!0x1;_0x52ec91['next']();}return _0x52ec91['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x12ef21=>{const _0x48d509=_0x12ef21['markerName']['split'](':')[0x1],_0x186a14=this['_getChangeFromId'](_0x48d509);if(!_0x186a14)return null;const _0x4ac026='add'==_0x186a14['type']?'insertion':'deletion',_0x4e9a06=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4ac026];return _0x186a14['data']['isSuggestion']&&_0x4e9a06['push']('ck-suggestion-marker-'+_0x4ac026+'-new'),this['activeChange']==_0x186a14&&_0x4e9a06['push']('ck-suggestion-marker--active'),{'classes':_0x4e9a06,'attributes':{'data-change-id':_0x48d509}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x300b66=>{_0x300b66['on']('element:pre',(_0x5468e8,_0x50c95e,_0x3a803e)=>{const _0x3f63e2=_0x50c95e['viewItem']['getChild'](0x0);if(!_0x3f63e2||!_0x3f63e2['is']('element','code'))return;if(!_0x3a803e['consumable']['consume'](_0x3f63e2,{'attributes':['vid_start','vid_end']}))return;const _0x2bee65=_0x50c95e['modelRange']['start']['nodeAfter'];_0x3a803e['writer']['setAttribute']('vid_start',_0x3f63e2['getAttribute']('vid_start'),_0x2bee65),_0x3a803e['writer']['setAttribute']('vid_end',_0x3f63e2['getAttribute']('vid_end'),_0x2bee65);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x58e7c2=>{_0x58e7c2['on']('element',(_0x140bd1,_0x3ebe38,_0x4ea50f)=>{if(!_0x4ea50f['consumable']['consume'](_0x3ebe38['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3ebe38['modelRange']['isCollapsed'])return;const _0x2ea93a=_0x3ebe38['modelRange']['start']['nodeAfter'];_0x2ea93a['hasAttribute']('vid_start')||_0x2ea93a['hasAttribute']('vid')||(_0x4ea50f['writer']['setAttribute']('vid_start',_0x3ebe38['viewItem']['getAttribute']('vid_start'),_0x2ea93a),_0x4ea50f['writer']['setAttribute']('vid_end',_0x3ebe38['viewItem']['getAttribute']('vid_end'),_0x2ea93a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x556a3d=>_0x556a3d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2f32c0,[,_0x1ac732])=>{['vid_start','vid_end','vid']['includes'](_0x1ac732)&&(_0x2f32c0['return']=!0x0,_0x2f32c0['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x149cfb=>{_0x149cfb['on']('attribute:vid',(_0x5a34f1,_0x33855f,_0x28468a)=>{if('\x20'!=_0x33855f['item']['data']||_0x33855f['item']['parent']['maxOffset']>0x1)return;if(!_0x28468a['consumable']['consume'](_0x33855f['item'],_0x5a34f1['name']))return;const _0x1ce5db=_0x28468a['writer'],_0x541f08=_0x28468a['mapper']['toViewRange'](_0x33855f['range']);_0x1ce5db['wrap'](_0x541f08,_0x1ce5db['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x342ba4){const _0x4e1d21=_0x342ba4['plugins']['get']('RevisionViewer');return(_0x1b617b,_0x741401,_0x16da06)=>{const _0x1b6abc=_0x741401['markerName']['split'](':')[0x1],_0x46165e=_0x4e1d21['_getChangeFromId'](_0x1b6abc);if(!_0x46165e)return null;const _0x1818c6='add'==_0x46165e['type']?'split':'merge';if(!_0x16da06['consumable']['test'](_0x741401['markerRange'],_0x1b617b['name']))return;const _0x198466=_0x741401['markerRange']['getWalker'](),_0x42ef35=_0x741401['markerRange']['start'],_0x53329e=_0x342ba4['model']['schema'];let _0x161404=null,_0x3d52bd=null,_0x413ce5=!0x1,_0x5d106c=!0x1;for(const _0x28cd05 of _0x198466){const _0x13191d=_0x28cd05['item'];_0x413ce5=_0x413ce5||_0x53329e['isContent'](_0x13191d);const _0xbb87d1=_0x16da06['mapper']['toViewElement'](_0x13191d);if(_0xbb87d1&&_0xbb87d1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x28cd05['type']&&(_0x53329e['isBlock'](_0x13191d)&&!_0x53329e['isLimit'](_0x13191d)&&(_0x13191d['nextSibling']||_0x42ef35['isAtEnd']?_0x161404&&_0x161404['parent']==_0x13191d||(_0x161404=_0x13191d,_0x488a52(_0x28cd05['previousPosition']),_0x5d106c=!0x0):_0x3d52bd=_0x3d52bd||_0x28cd05['previousPosition']));}function _0x488a52(_0x275a18){const _0x4de643=_0x16da06['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1818c6}),_0x3c6bb4=_0x16da06['mapper']['toViewPosition'](_0x275a18);_0x46165e['data']['isSuggestion']&&_0x16da06['writer']['addClass']('ck-suggestion-marker-'+_0x1818c6+'-new',_0x4de643),_0x4e1d21['activeChange']==_0x46165e&&_0x16da06['writer']['addClass']('ck-suggestion-marker--active',_0x4de643),_0x16da06['writer']['insert'](_0x3c6bb4,_0x4de643),_0x16da06['mapper']['bindElementToMarker'](_0x4de643,_0x741401['markerName']);}_0x413ce5||_0x5d106c||!_0x3d52bd||_0x488a52(_0x3d52bd);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x26e809,_0x28ce1f,_0x32c813)=>{const _0x3a2515=_0x32c813['mapper']['markerNameToElements'](_0x28ce1f['markerName']);if(_0x3a2515){for(const _0x52b34f of _0x3a2515)(_0x52b34f['hasClass']('ck-suggestion-marker-split')||_0x52b34f['hasClass']('ck-suggestion-marker-merge'))&&(_0x32c813['mapper']['unbindElementFromMarkerName'](_0x52b34f,_0x28ce1f['markerName']),_0x32c813['writer']['remove'](_0x52b34f));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x52af8e,_0x5430e4,_0x1011bd)=>{const _0x2edfb5=_0x5430e4['markerName']['split'](':')[0x1],_0x852d9d=this['_getChangeFromId'](_0x2edfb5);if(!_0x852d9d)return null;const _0x3bf632='add'==_0x852d9d['type']?'split':'merge';if(_0x1011bd['consumable']['test'](_0x5430e4['markerRange'],_0x52af8e['name']))for(const _0x20509f of _0x5430e4['markerRange']['getItems']()){if(!_0x20509f['is']('element','softBreak'))continue;const _0x40a078=_0x1011bd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3bf632}),_0x1ab5a0=_0x1011bd['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x20509f));_0x852d9d['data']['isSuggestion']&&_0x1011bd['writer']['addClass']('ck-suggestion-marker-'+_0x3bf632+'-new',_0x40a078),this['activeChange']==_0x852d9d&&_0x1011bd['writer']['addClass']('ck-suggestion-marker--active',_0x40a078),_0x1011bd['writer']['insert'](_0x1ab5a0,_0x40a078),_0x1011bd['mapper']['bindElementToMarker'](_0x40a078,_0x5430e4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x41a2ab=>{for(const _0x14bfe3 of this['editor']['model']['document']['getRootNames']()){const _0x31af72=this['editor']['model']['document']['getRoot'](_0x14bfe3),_0x166b94=this['editor']['editing']['view']['document']['getRoot'](_0x14bfe3);if(_0x166b94){const _0x2e8fc3=_0x31af72['getAttribute']('revisionHistoryAttachChange');if(_0x41a2ab['removeAttribute']('data-change-id',_0x166b94),_0x41a2ab['removeClass']('ck-revision-history-root-add',_0x166b94),_0x41a2ab['removeClass']('ck-revision-history-root-remove',_0x166b94),_0x41a2ab['removeClass']('ck-revision-history-root--active',_0x166b94),_0x2e8fc3){const _0x340c97=this['_getChangeFromId'](_0x2e8fc3);if(!_0x340c97)return null;_0x41a2ab['setAttribute']('data-change-id',_0x2e8fc3,_0x166b94),_0x41a2ab['addClass']('ck-revision-history-root-'+_0x340c97['type'],_0x166b94),this['activeChange']==_0x340c97&&_0x41a2ab['addClass']('ck-revision-history-root--active',_0x166b94);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xc73da7=>'revision-comment:'+_0xc73da7,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x494d71=>'revision-suggestion:'+_0x494d71,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x13c7fc=>({'name':'suggestion:'+_0x13c7fc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3307e0=>{const _0x3f9950=_0x3307e0['markerName']['split'](':')[0x1];return'insertion'!=_0x3f9950&&'deletion'!=_0x3f9950?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3f9950]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x40c28d,_0x19041e,_0x511397)=>{const _0x4474bd=_0x511397['mapper']['markerNameToElements'](_0x19041e['markerName']);if(_0x4474bd){for(const _0x62ede1 of _0x4474bd)_0x62ede1['is']('uiElement')&&(_0x511397['mapper']['unbindElementFromMarkerName'](_0x62ede1,_0x19041e['markerName']),_0x511397['writer']['remove'](_0x62ede1));}},{'priority':'high'});}['_getChangeFromId'](_0x5be9ce){return this['_changeIdToChange']['get'](_0x5be9ce);}['_getViewForChange'](_0x5a821a){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x5a821a),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x113ba6,_0x283d78,_0x246a70,_0x4c6505)=>{_0x4c6505&&this['_balloon']['remove'](_0x4c6505),_0x246a70&&(this['_balloon']['add']({'view':_0x246a70,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x29a0f3=this['editor']['editing'],_0x54bf4b=this['_getChangeFromId'](_0x246a70['changeId']);let _0x300987;if(_0x54bf4b['data']['isOnRoot']){const _0x541663=_0x29a0f3['view']['getDomRoot'](_0x54bf4b['rootName']);_0x300987=Array['from'](_0x541663['getClientRects']());}else{const _0x4917a8=this['editor']['model']['markers']['get']('revision:'+_0x246a70['changeId']);_0x300987=Array['from'](_0x29a0f3['mapper']['markerNameToElements'](_0x4917a8['name']))['map'](_0x4ff298=>_0x29a0f3['view']['domConverter']['mapViewToDom'](_0x4ff298))['map'](_0x391efd=>Array['from'](_0x391efd['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x300987[0x0];return _0x300987['find'](_0xeedcd2=>_0xeedcd2['top']-0x3<=this['_activeViewTarget']['y']&&_0xeedcd2['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xeedcd2['left']-0x3<=this['_activeViewTarget']['x']&&_0xeedcd2['right']+0x3>=this['_activeViewTarget']['x'])||_0x300987[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x280fbc,_0x1b8edc,_0x32aee,_0x245756)=>{this['activeView']=_0x32aee?this['_getViewForChange'](_0x32aee):null,this['editor']['model']['change'](()=>{const _0xb23f5a=this['editor']['editing'];_0x245756&&(_0x245756['data']['isOnRoot']?_0xb23f5a['view']['change'](_0x2e2f10=>{_0x2e2f10['removeClass']('ck-revision-history-root--active',_0xb23f5a['view']['document']['getRoot'](_0x245756['rootName']));}):_0xb23f5a['reconvertMarker']('revision:'+_0x245756['id'])),_0x32aee&&(_0x32aee['data']['isOnRoot']?_0xb23f5a['view']['change'](_0x49ca3c=>{_0x49ca3c['addClass']('ck-revision-history-root--active',_0xb23f5a['view']['document']['getRoot'](_0x32aee['rootName']));}):_0xb23f5a['reconvertMarker']('revision:'+_0x32aee['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xf584da,_0x5e291c)=>{if(this['activeChange'])return;const _0x47b78a=this['_findChangeIdFromDomTarget'](_0x5e291c['target']),_0xf73df5=this['_changeIdToChange']['get'](_0x47b78a);_0xf73df5?(this['_activeViewTarget']={'x':_0x5e291c['domEvent']['x'],'y':_0x5e291c['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xf73df5)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2871e9,_0x2bc8e6)=>{const _0x8330ec=this['_findChangeIdFromDomTarget'](_0x2bc8e6['target']),_0x283e75=this['_changeIdToChange']['get'](_0x8330ec);_0x283e75?(this['_activeViewTarget']={'x':_0x2bc8e6['domEvent']['x'],'y':_0x2bc8e6['domEvent']['y']},_0x283e75===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x283e75):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x17d6e7){do{const _0x4924dd=_0x17d6e7['getAttribute']('data-change-id');if(_0x4924dd)return _0x4924dd;_0x17d6e7=_0x17d6e7['parent'];}while(_0x17d6e7);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x50f901=>{for(const _0x4d75ec of this['editor']['model']['markers'])_0x50f901['removeMarker'](_0x4d75ec);});}}function tt(_0x2312b8,_0x56a552){return(_0x4a173b,_0x5a03a3,_0x2187e5)=>{if(!_0x2187e5['consumable']['test'](_0x5a03a3['markerRange'],_0x4a173b['name']))return;const _0x48eddd=_0x5a03a3['markerRange']['getWalker'](),_0x599c64=_0x5a03a3['markerRange']['start'],_0x5938cd=_0x2312b8['model']['schema'];let _0x4866cc=null,_0x2d8324=null,_0x5907a1=!0x1,_0x4e21ec=!0x1;for(const _0x4fd88b of _0x48eddd){const _0x34e312=_0x4fd88b['item'];_0x5907a1=_0x5907a1||_0x5938cd['isContent'](_0x34e312);const _0x47999f=_0x2187e5['mapper']['toViewElement'](_0x34e312);if(_0x47999f&&_0x47999f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4fd88b['type']&&(_0x5938cd['isBlock'](_0x34e312)&&!_0x5938cd['isLimit'](_0x34e312)&&(_0x34e312['nextSibling']||_0x599c64['isAtEnd']?_0x4866cc&&_0x4866cc['parent']==_0x34e312||(_0x4866cc=_0x34e312,_0x46a080(_0x4fd88b['previousPosition']),_0x4e21ec=!0x0):_0x2d8324=_0x2d8324||_0x4fd88b['previousPosition']));}function _0x46a080(_0x5e9df8){const _0x3b031e=_0x2187e5['mapper']['toViewPosition'](_0x5e9df8),_0x54f687=_0x2187e5['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x56a552});_0x2187e5['writer']['insert'](_0x3b031e,_0x54f687),_0x2187e5['mapper']['bindElementToMarker'](_0x54f687,_0x5a03a3['markerName']);}_0x5907a1||_0x4e21ec||!_0x2d8324||_0x46a080(_0x2d8324);};}class yt extends _0x455b3a{constructor(_0x3640a3){super(_0x3640a3);const _0x48189c=_0x3640a3['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x48189c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x48189c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x25384e=this['editor'],_0x16f9a6=_0x25384e['plugins']['get'](d),_0x31f2c8=_0x16f9a6['isReady']?_0x16f9a6['diff']['newRevisionId']:null;_0x25384e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x31f2c8);}['refresh'](){const {isReady:_0x5ed7e7,isEnabled:_0x3180de,repository:_0x35e437,diff:_0xe48d5c}=this['editor']['plugins']['get'](d),_0x268578=_0xe48d5c&&_0x35e437['getLaterVisibleRevision'](_0xe48d5c['newRevisionId']);this['isEnabled']=_0x5ed7e7&&_0x3180de&&Boolean(_0x268578);}}class bt extends _0x455b3a{['_step'];constructor(_0x34d7bf,{direction:_0x527ad8}){super(_0x34d7bf);const _0x5cf3ca=_0x34d7bf['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x527ad8?0x1:-0x1,this['listenTo'](_0x5cf3ca,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5cf3ca,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5cf3ca,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x188411=this['editor'],_0x320e93=_0x188411['plugins']['get'](d),{isNavigationMode:_0x2f7754,currentChangeNumber:_0x3758b6}=_0x320e93;let _0x499577;if(_0x320e93['activeChange']=_0x2f7754?_0x320e93['diff']['changes']['get'](_0x3758b6+this['_step']):_0x320e93['diff']['changes']['first'],_0x320e93['activeChange']['data']['isOnRoot'])_0x499577=_0x188411['editing']['view']['getDomRoot'](_0x320e93['activeChange']['rootName']);else{const _0x276eaf=_0x188411['model']['markers']['get']('revision:'+_0x320e93['activeChange']['id']);_0x499577=_0x494947(_0x188411['editing'],_0x276eaf);}_0x1c6bfe({'target':_0x499577,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x17f5a9,currentChangeNumber:_0x5fe137,numberOfChanges:_0x462213,isReady:_0x24455c,isEnabled:_0x2b7526}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2b7526&&_0x24455c&&_0x462213)&&(!_0x17f5a9||(0x1===this['_step']?_0x5fe137<_0x462213-0x1:_0x5fe137>0x0));}}class _i extends _0x59c2ca{constructor(_0x3fbf8c){super(_0x3fbf8c);const _0x3185d1=this['bindTemplate'],_0x4e8041=new _0x3b013d(_0x3fbf8c),_0x2eddd2=new _0x3b013d(_0x3fbf8c);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',(_0x41b5e6,_0x3d2e5e)=>_0x41b5e6&&_0x3d2e5e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3bb14f,_0x36d0bb,_0x404058,_0x38f349)=>{if(!_0x3bb14f)return R(_0x3fbf8c,'Loading...');if(!_0x404058)return R(_0x3fbf8c,'No\x20changes');const _0x40f983=R(_0x3fbf8c,'NUMBER_OF_CHANGES',_0x404058);return _0x38f349?R(_0x3fbf8c,'X_OF_Y_CHANGES',[_0x36d0bb+0x1,_0x404058]):_0x40f983;}),_0x4e8041['set']({'label':R(_0x3fbf8c,'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'}),_0x2eddd2['set']({'label':R(_0x3fbf8c,'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'}),_0x4e8041['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2eddd2['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4e8041['on']('execute',()=>this['fire']('execute','backward')),_0x2eddd2['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',_0x3185d1['if']('_isStatusLabelVisible','ck-hidden',_0x2981f4=>!_0x2981f4)]},'children':[{'text':_0x3185d1['to']('isNavigationMode',_0x598029=>_0x598029?R(_0x3fbf8c,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x3fbf8c,'Total')+':\x20')}]},{'text':_0x3185d1['to']('_statusText')}]},new _0x491304(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4e8041,_0x2eddd2]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x5a5f64{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1801ca=this['editor']['editing']['view'];_0x1801ca['change'](_0x3456f5=>{for(const _0x3adcaf of _0x1801ca['document']['roots'])_0x3456f5['addClass'](ce,_0x3adcaf);});}['hide'](){const _0x2c9021=this['editor']['editing']['view'];_0x2c9021['change'](_0x1c05f0=>{for(const _0x526475 of _0x2c9021['document']['roots'])_0x1c05f0['removeClass'](ce,_0x526475);});}}class m extends _0x5a5f64{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x4ad935=this['editor'],_0x547c4b=_0x4ad935['plugins']['get'](d),_0x5247e8=_0x4ad935['plugins']['get'](le);_0x4ad935['ui']['componentFactory']['add']('exitToEditing',_0x3f6276=>{const _0x3bde07=new _0x3b013d(_0x3f6276);return _0x3bde07['set']({'label':R(_0x3f6276,'Back\x20to\x20editing'),'icon':_0x2b22d2['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3bde07,'execute',()=>{_0x4ad935['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3bde07;}),_0x4ad935['ui']['componentFactory']['add']('restoreRevision',_0x3355fd=>{const _0x5ed90e=new _0x3b013d(_0x3355fd);return _0x5ed90e['set']({'label':R(_0x3355fd,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5ed90e['bind']('isEnabled')['to'](_0x4ad935['commands']['get']('restoreRevision')),this['listenTo'](_0x5ed90e,'execute',()=>_0x4ad935['execute']('restoreRevision')),_0x5ed90e;}),_0x4ad935['ui']['componentFactory']['add']('changesNavigation',_0x3f30fa=>{const _0xf4e6b5=new _i(_0x3f30fa),_0x559005=_0x4ad935['commands']['get']('showPreviousChange'),_0xb9a2c6=_0x4ad935['commands']['get']('showNextChange');return _0xf4e6b5['bind']('isBackwardNavigationEnabled')['to'](_0x559005,'isEnabled'),_0xf4e6b5['bind']('isForwardNavigationEnabled')['to'](_0xb9a2c6,'isEnabled'),_0xf4e6b5['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x547c4b),this['listenTo'](_0xf4e6b5,'execute',(_0x275c7e,_0x53f63b)=>{_0x4ad935['execute']('forward'===_0x53f63b?'showNextChange':'showPreviousChange');}),_0xf4e6b5;}),_0x5247e8['show'](),_0x547c4b['on']('change:isReady',(_0x155681,_0x3dd84c,_0x174515)=>{_0x174515?_0x5247e8['hide']():_0x5247e8['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x3a77db,_0x64b8ce){super(_0x3a77db,_0x64b8ce);const _0x4d18e2=this['bindTemplate'];this['set']({'label':R(_0x3a77db,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x3a77db,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4d18e2['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xb04384=this['fieldView']['element'];this['_tooltipString']=_0xb04384['scrollWidth']>_0xb04384['clientWidth']&&_0xb04384['value']||'';}}class ti extends _0x59c2ca{constructor(_0x1e703d,_0x392d8f,_0x275852){super(_0x1e703d);const _0xa79f2f=new _0x58f379();_0xa79f2f['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 _0x483ffc=['ck','ck-revision-history-sidebar__revision-author'];_0x275852&&_0x483ffc['push']('ck-revision-history-sidebar__revision-author_creator');const _0x53ca68=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x1e703d,_0x275852?'Revision\x20creator':'Revision\x20author')},'children':[_0xa79f2f,_0x392d8f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x483ffc},'children':_0x53ca68});}}function ni(_0x277141,_0xa1b789){const _0x1cde6d=_0x277141['bindTemplate'],_0x3fa13a=_0x277141['locale'],_0x4a5227=_0x40e817(_0x3fa13a);_0x4a5227['panelPosition']='sw';const _0x325a83=function(_0x51cf05,_0x48acf6){const _0x3cb12f=function(_0x46f92a,_0x230ae4){const _0x55b19e=_0x46f92a['locale'],_0x200fd3={'Compare\x20against\x20selected':R(_0x55b19e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x55b19e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x55b19e,'Restore\x20this\x20revision')};return _0x230ae4['map'](_0x313e0e=>{const _0x3a4e66=_0x200fd3[_0x313e0e['name']];return _0x3a4e66&&_0x3a4e66!==_0x313e0e['name']&&(_0x313e0e['name']=_0x3a4e66),_0x313e0e;});}(_0x51cf05,_0x48acf6),_0x3a384f=new _0xc46275();for(const _0x103d7c of _0x3cb12f){const _0x559956={'type':'button','model':new to({'label':_0x103d7c['name'],'class':_0x103d7c['class'],'withText':!0x0,'role':'menuitem','_action':_0x103d7c['action']})};_0x559956['model']['bind']('isEnabled')['to'](_0x51cf05,'isActionsDropdownOpen',_0x5611bf=>'function'!=typeof _0x103d7c['isEnabled']||(!_0x5611bf||_0x103d7c['isEnabled'](_0x51cf05))),_0x3a384f['add'](_0x559956);}return _0x3a384f;}(_0x277141,_0xa1b789);return _0x277141['bind']('isActionsDropdownOpen')['to'](_0x4a5227,'isOpen'),_0x4a5227['buttonView']['set']({'label':R(_0x3fa13a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2b22d2['threeVerticalDots']}),_0x4a5227['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1cde6d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1cde6d['to'](_0x223df0=>_0x223df0['stopPropagation']())}}),_0x4a5227['on']('execute',_0x24766c=>{_0x277141['isReady']&&'function'==typeof _0x24766c['source']['_action']&&_0x24766c['source']['_action'](_0x277141);}),_0x1d8c31(_0x4a5227,_0x325a83,{'role':'menu'}),_0x4a5227['listenTo'](_0x277141,'change:isActionsDropdownOpen',(_0x1740a6,_0xf4a1f2,_0x1f5040)=>{if(_0x1f5040)for(const _0x27972b of _0x4a5227['listView']['items']){const _0x16509c=_0x27972b['children']['first'],_0x13114e=_0xa1b789['find'](_0x58b106=>_0x58b106['action']===_0x16509c['_action'])['isVisible'];_0x27972b['isVisible']=void 0x0===_0x13114e||_0x13114e(_0x277141);}}),_0x4a5227;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x3151ef(_0x59c2ca){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1bdfdb,_0x54596d,_0xfa0d9b,_0x566cb1){super(_0x1bdfdb);const _0x3239b3=this['bindTemplate'],_0x3cad78=function(_0x1f9618,_0x20e3be){const _0x4c52e0=Array['from'](_0x20e3be['authors'])['filter'](_0x3e5d29=>_0x3e5d29!=_0x20e3be['creator']);return _0x20e3be['creator']&&_0x4c52e0['unshift'](_0x20e3be['creator']),_0x4c52e0['map'](_0x3d7f7f=>new ti(_0x1f9618,_0x3d7f7f,_0x3d7f7f==_0x20e3be['creator']));}(_0x1bdfdb,_0x54596d);this['id']=_0x54596d['id'],this['_revision']=_0x54596d,this['_requireRevisionName']=_0x566cb1,this['bind']('name','createdAt')['to'](_0x54596d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x63956=>{return _0x2872cb=_0x1bdfdb['uiLanguage'],(_0x16effe=_0x63956)['toLocaleDateString'](_0x2872cb,{'month':'long','day':'numeric'})+',\x20'+_0x16effe['toLocaleTimeString'](_0x2872cb,{'hour':'numeric','minute':'numeric'});var _0x2872cb,_0x16effe;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x1bdfdb,_0x2931d8),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3503e4=>_0x3503e4||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x107f26,_0x5a26d7)=>_0x107f26&&_0x5a26d7),this['revisionActionsView']=_0xfa0d9b&&_0xfa0d9b['length']?ni(this,_0xfa0d9b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3239b3['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3239b3['if']('isEnabled','ck-disabled',_0x1a1755=>!_0x1a1755),_0x3239b3['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3239b3['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3239b3['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':_0x3239b3['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':_0x3cad78}]},this['revisionActionsView']],'on':{'click':_0x3239b3['to'](_0x24c4d7=>{_0x24c4d7['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1b577a=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1b577a,'change',()=>{this['_requireRevisionName']&&!_0x1b577a['value']||this['fire']('setName',{'id':this['id'],'name':_0x1b577a['value']}),_0x1b577a['value']||(_0x1b577a['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(_0x584a07,_0x1ab3de){const _0x490483=_0x3dbd8b['fromJSDate'](_0x584a07)['setLocale'](_0x1ab3de),_0xeb316d=_0x3dbd8b['local'](),_0x20e2bd=_0xeb316d['minus']({'days':0x1})['startOf']('day');let _0x175bda,_0xcf22c8;return _0x490483['hasSame'](_0xeb316d,'day')?(_0x175bda=_0x490483['startOf']('day')['toJSDate'](),_0xcf22c8=_0x490483['toRelativeCalendar']()):_0x490483['hasSame'](_0x20e2bd,'day')?(_0x175bda=_0x20e2bd['toJSDate'](),_0xcf22c8=_0x490483['toRelativeCalendar']()):_0x490483['hasSame'](_0xeb316d,'week')?(_0x175bda=_0x490483['startOf']('week')['toJSDate'](),_0xcf22c8=_0x490483['weekdayLong']||''):_0x490483['hasSame'](_0xeb316d,'year')?(_0x175bda=_0x490483['startOf']('month')['toJSDate'](),_0xcf22c8=_0x490483['monthLong']||''):(_0x175bda=_0x490483['startOf']('year')['toJSDate'](),_0xcf22c8=String(_0x490483['year'])),{'startDate':_0x175bda,'localizedPeriodName':_0xcf22c8};}class mi extends _0x59c2ca{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x58b29b,_0x6fd646,_0x3935a4,_0x10d5b6){super(_0x58b29b);const _0x13afe6=di(_0x6fd646,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x6fd646,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3935a4,this['_requireRevisionName']=_0x10d5b6,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':_0x13afe6}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x54ccd0){const _0x99fcb9=new ai(this['locale'],_0x54ccd0,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x99fcb9);}['removeRevision'](_0x5c0d3d){const _0x3dd76f=this['revisionViews']['find'](_0x524b7e=>_0x524b7e['id']===_0x5c0d3d['id']);this['revisionViews']['remove'](_0x3dd76f);}}class rs extends _0x59c2ca{constructor(_0x491366){super(_0x491366);const _0x4bce6b=new _0x58f379();_0x4bce6b['content']=_0x2b22d2['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4bce6b,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x491366,'Revision\x20history')]}]});}}class ci extends _0x59c2ca{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3650e8,_0x92dc43,_0x36f038,_0x15a769){super(_0x3650e8);const _0x23bca1=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x92dc43,this['_revisionActions']=_0x36f038,this['_requireRevisionName']=_0x15a769,this['on']('select',(_0x1a0c33,_0x35e8c7)=>{this['fire']('revisionSelected',_0x35e8c7);}),this['on']('setName',(_0x917d0d,_0x1fce9b)=>{this['fire']('revisionSetName',_0x1fce9b);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x3650e8),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x23bca1['if']('isEnabled','ck-disabled',_0xe3668f=>!_0xe3668f)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5364a0 of this['_revisions'])this['_addRevision'](_0x5364a0);this['_revisions']['on']('add',(_0x6eae1f,_0x418e21)=>{this['_addRevision'](_0x418e21);}),this['_revisions']['on']('remove',(_0x2f2af0,_0x53c9f6)=>{this['_removeRevision'](_0x53c9f6);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5a203b=>_0x5a203b['revisionViews']['map'](_0x5c3146=>_0x5c3146))['flat']();}['selectRevision'](_0x36a85b){for(const _0x9e8d1d of this['revisionViews'])_0x36a85b&&_0x36a85b['id']===_0x9e8d1d['id']?_0x9e8d1d['select']():_0x9e8d1d['deselect']();}['highlightRevisions'](_0x4cf5ae){for(const _0x1da81b of this['revisionViews'])_0x4cf5ae['some'](({id:_0x4d1d1c})=>_0x4d1d1c===_0x1da81b['id'])?_0x1da81b['highlight']():_0x1da81b['unhighlight']();}['_addRevision'](_0x36adbb){const _0x2e3040=di(_0x36adbb['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x36fa1d=this['timePeriodViews']['get'](0x0);_0x36fa1d&&_0x36fa1d['startDate']['getTime']()===_0x2e3040['getTime']()||(_0x36fa1d=new mi(this['locale'],_0x2e3040,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x36fa1d)),_0x36fa1d['addRevision'](_0x36adbb);}['_removeRevision'](_0x33a0ef){const _0xb19cc4=di(_0x33a0ef['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xb19cc4)['removeRevision'](_0x33a0ef);}['_getTimePeriodViewByStartDate'](_0x9ba463){return this['timePeriodViews']['find'](_0x205139=>_0x205139['startDate']['getTime']()===_0x9ba463['getTime']());}}class g extends _0x5a5f64{['_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(_0x1bd110){super(_0x1bd110),this['_revisionViewer']=_0x1bd110['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x48e097=this['_revisionsRepository']['_revisions'],_0x4a79bb=this['_createRevisionActions'](),_0x27df50=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x48e097,_0x4a79bb,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',(_0x15d979,_0xadf88f)=>{_0xadf88f['revisionViews']['on']('add',(_0xc79ea6,_0x8a244c)=>{_0x8a244c['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)),_0x27df50['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1f2d75=this['_revisionsRepository']['getRevision'](0x0);if(_0x1f2d75){const _0x12d99e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1f2d75['id']);this['_revisionViewer']['compare'](_0x1f2d75,_0x12d99e);}}['_handleRevisionSelected'](_0x4664a6,_0x338d99){const _0x315e96=this['_revisionsRepository']['getRevision'](_0x338d99['id']),_0x108cea=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x315e96['id']);this['_revisionViewer']['compare'](_0x315e96,_0x108cea);}['_handleRevisionSetName'](_0x1e5ba7,_0x4410b7){this['_revisionsRepository']['getRevision'](_0x4410b7['id'])['setName'](_0x4410b7['name']);}['_handleDiffChange'](_0x49772d,_0x3ce36d,_0x151234){const _0x1ca566=this['_revisionsRepository']['getRevisionsInDiff'](_0x151234);_0x1ca566['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1ca566),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1ca566[0x0]));}['_createRevisionActions'](){const _0x2f86fb=this['editor'],_0x57cec6=g['availableRevisionActions'],_0x5c4070=_0x2f86fb['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x5c4070['length'])return _0x5c4070['map'](_0x37000b=>{const _0x526143='string'==typeof _0x37000b?Object['assign']({},_0x57cec6[_0x37000b]):_0x37000b;return _0x526143['action']=_0x526143['action']['bind'](this,_0x2f86fb),_0x526143['isVisible']&&(_0x526143['isVisible']=_0x526143['isVisible']['bind'](this,_0x2f86fb)),_0x526143;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x54f061},_0x142f7f)=>{const _0x2e26c1=_0x54f061['get'](d),_0x19cdf8=_0x2e26c1['repository'];let _0x4b032e=_0x2e26c1['diff']['newRevisionId'],_0xf4a0f3=_0x142f7f['id'];_0x19cdf8['getIndex'](_0x4b032e)>_0x19cdf8['getIndex'](_0xf4a0f3)&&([_0x4b032e,_0xf4a0f3]=[_0xf4a0f3,_0x4b032e]),_0x2e26c1['compare'](_0x4b032e,_0xf4a0f3);},'isVisible':({plugins:_0x3bf954},_0x5db9a9)=>{const _0x31628f=_0x3bf954['get'](d);return!(_0x31628f['repository']['getRevisionsInDiff'](_0x31628f['diff'])['length']>0x2)&&!_0x5db9a9['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1cb08e,{id:_0x13278d})=>{_0x1cb08e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x13278d);},'isVisible':({plugins:_0x5389ab},_0x24402d)=>!!_0x5389ab['get'](d)['repository']['getLaterVisibleRevision'](_0x24402d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x117938},{id:_0x4e3232,revisionNameView:_0x5ed463})=>{const _0x29d426=_0x117938['get'](d),_0x5dd607=_0x29d426['repository']['getEarlierVisibleRevision'](_0x4e3232);_0x29d426['compare'](_0x4e3232,_0x5dd607),_0x5ed463['focus'](),_0x5ed463['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x43f44c,_0x131d9b){super(_0x43f44c),this['_view']=_0x131d9b,this['_toolbarConfig']=ht(_0x43f44c['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x47d575){const _0x1bf98c=this['editor'],_0x35cebe=this['view'],_0x24ee43=_0x1bf98c['editing']['view'],_0x400506=_0x35cebe['editable'],_0x23f5f7=_0x24ee43['document']['getRoot']();_0x400506['name']=_0x23f5f7['rootName'],_0x35cebe['render']();const _0x10e2f9=_0x400506['element'];this['setEditableElement'](_0x400506['name'],_0x10e2f9),_0x35cebe['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x24ee43['attachDomRoot'](_0x10e2f9),this['_elementReplacer']['replace'](_0x47d575,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x53211d=this['view'],_0x4622f4=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4622f4['detachDomRoot'](_0x53211d['editable']['name']),_0x53211d['destroy']();}['_initToolbar'](){const _0x174e99=this['view'];_0x174e99['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x174e99['stickyPanel']['limiterElement']=_0x174e99['element'],_0x174e99['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3b2bc7})=>_0x3b2bc7),_0x174e99['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x174e99['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5493d9,_0x3cb273,_0x4b8aef={}){super(_0x5493d9),this['stickyPanel']=new lt(_0x5493d9),this['toolbar']=new nt(_0x5493d9,{'shouldGroupWhenFull':_0x4b8aef['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x5493d9,_0x3cb273);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x28bcdc,_0x1868ea){super(_0x1868ea),this['sourceElement']=_0x28bcdc,this['model']['document']['createRoot']();const _0x29344f=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x29344f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x646aac,_0xed1a74){const _0x4509b5=new this(_0x646aac,_0xed1a74);return await _0x4509b5['initPlugins'](),await _0x4509b5['ui']['init'](_0x646aac),await _0x4509b5['data']['init'](_0x4509b5['config']['get']('initialData')||''),_0x4509b5['fire']('ready'),_0x4509b5;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x212b78{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22bed0){function _0x4c43ac(_0x403cdd){return _0x403cdd['map'](_0x585e93=>String['fromCharCode'](_0x585e93))['join']('');}super(_0x22bed0),this['result']='end',_0x22bed0[_0x4c43ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c43ac([0x76,0x69,0x65,0x77])][_0x4c43ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c43ac([0x61,0x75,0x74,0x6f]),_0x22bed0[_0x4c43ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4c43ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c43ac([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4c43ac([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4c43ac([0x6f,0x6b])});}}class H extends _0x212b78{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x40c250){if(super(_0x40c250),!this['editor']['config']['get']('revisionHistory'))throw new _0x506ec3('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4ce32f=>this['_showRevisionViewer']({..._0x4ce32f,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x32bba5=>this['_closeRevisionViewer'](_0x32bba5)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x34a391=>this['_restoreRevision'](_0x34a391)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x134909){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x134909;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x420637){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x420637);}['getRevision'](_0x34835c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x34835c);}['getRevisions'](_0x4c76f0){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4c76f0||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x11f9f6=this['editor'],_0x6578c7=_0x4eff1c(_0x11f9f6,p),_0x4fae9b=_0x11f9f6['plugins']['get']('RevisionTracker'),_0x1e7ab9=_0x11f9f6['plugins']['get']('Users')['users'];return _0x6578c7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x6578c7['lazyRoots'],(_0x6578c7['plugins']['push'](k,d,m,class extends _0x212b78{static get['requires'](){return[d,'Users'];}['init'](){const _0x506903=this['editor']['plugins']['get']('Users');for(const _0x2d9f52 of _0x1e7ab9)_0x2d9f52['isAnonymous']||_0x506903['getUser'](_0x2d9f52['id'])||_0x506903['addUser'](_0x2d9f52);const _0x43ed50=_0x4fae9b['repository']['getRevisions']();let _0x5485b2=null;const _0xdef787=this['editor']['plugins']['get']('RevisionViewer');_0xdef787['adapter']=_0x4fae9b['adapter'],_0xdef787['bind']('isEnabled')['to'](_0x4fae9b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x11f9f6,'isReadOnly',_0x237c67=>!_0x237c67);for(const _0x3b404b of _0x43ed50){const _0x19a609=null===_0x3b404b['creator'];if(_0x19a609&&_0x3b404b['toVersion']===_0x3b404b['fromVersion'])continue;const _0x2d1a09=_0x3b404b['toJSON']();_0xdef787['addRevisionData'](_0x2d1a09,(_0x1fb8d4,_0x1dda66,_0x2d1810)=>{if(_0x19a609){if(_0x5485b2)_0x5485b2['_update'](_0x1fb8d4,_0x1dda66);else{if(!_0x1dda66){const _0x38b969=_0x2d1810['toJSON']();_0x38b969['id']=_0x34c6ad(),_0x4fae9b['saveRevision'](_0x38b969,_0x2d1810['toVersion'])['then'](_0x40f02d=>{_0x5485b2=_0x40f02d;});}}}else _0x3b404b['_update'](_0x1fb8d4,_0x1dda66);});}}},g),_0x6578c7);}['_enhanceShowRevisionViewerCallback'](){const _0x47f4b7=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1506f1=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x337b62=this['editor']['plugins']['get']('Autosave');await _0x337b62['save']();}else await _0x1506f1['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x53a676=this['editor']['plugins']['get']('Dialog');_0x53a676['isOpen']&&_0x53a676['hide']();}const _0x1e124d=this['_getRevisionViewerEditorConfig']();return _0x47f4b7(_0x1e124d)['then'](_0x25f239=>{return(this['_viewerEditor']=_0x25f239,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x25f239;})['catch'](_0x4cf474=>(console['error'](_0x4cf474),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x32a850=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'](),_0x32a850(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2fb810=this['editor']['plugins']['get']('Annotations');_0x2fb810['refreshVisibility'](),_0x2fb810['refreshPositioning']();}})));}['_showRevisionViewer'](_0x452f74){const _0xb46ca1=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3299e1=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5855a4=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x5855a4,_0x452f74)['then'](_0x52c011=>(_0x3299e1['style']['display']='block',_0xb46ca1['style']['display']='none',_0x52c011));}['_closeRevisionViewer'](_0x4e902b){const _0x288eb6=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x288eb6['style']['display']='',_0x4e902b['destroy']();}async['_restoreRevision'](_0xfad060){const _0x4f1c30=this['editor'],_0x3fccd9=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x389069=_0x4f1c30['plugins']['get']('RevisionTracker'),_0x823a7c=_0x3fccd9['repository']['getRevision'](_0xfad060);let _0x25b2ec,_0x4735f1,_0x4bdbe7;try{_0x25b2ec=await _0x3fccd9['getRevisionData'](_0x823a7c),_0x4735f1=await _0x3fccd9['getRevisionRootsAttributes'](_0x823a7c);}catch(_0x3f2fb1){return void console['error'](_0x3f2fb1);}_0x4f1c30['model']['change'](_0x55a4c3=>{for(const _0x2698a3 of Array['from'](_0x4f1c30['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x55a4c3['removeMarker'](_0x2698a3);}),_0x3fccd9['isReady']=!0x1,_0x4f1c30['model']['enqueueChange'](_0x555316=>{_0x555316['setSelection'](null),_0x555316['removeSelectionAttribute'](_0x4f1c30['model']['document']['selection']['getAttributeKeys']());const _0x53a8f8=Object['keys'](_0x25b2ec);for(const _0x1c7149 of _0x4f1c30['model']['document']['roots'])'$graveyard'!=_0x1c7149['rootName']&&_0x1c7149['isAttached']()&&!_0x53a8f8['includes'](_0x1c7149['rootName'])&&_0x555316['detachRoot'](_0x1c7149);for(const _0x424f01 of _0x53a8f8){let _0x2cef39=_0x4f1c30['model']['document']['getRoot'](_0x424f01);_0x2cef39&&_0x2cef39['isAttached']()||(_0x2cef39=_0x555316['addRoot'](_0x424f01));const _0x33af04=_0x4735f1[_0x424f01],_0x11edaf=Object['keys'](_0x33af04),_0x385b29=_0x25b2ec[_0x424f01];for(const _0x2ef646 of _0x2cef39['getAttributeKeys']())_0x11edaf['includes'](_0x2ef646)||_0x555316['removeAttribute'](_0x2ef646,_0x2cef39);for(const _0x353fba of _0x11edaf)_0x555316['setAttribute'](_0x353fba,_0x4735f1[_0x424f01][_0x353fba],_0x2cef39);_0x555316['remove'](_0x555316['createRangeIn'](_0x2cef39)),_0x555316['insert'](_0x4f1c30['data']['parse'](_0x385b29,_0x2cef39),_0x2cef39,0x0);}});const _0x22a9a9=R(_0x4f1c30['locale'],'Restored');if(_0x823a7c['name'])_0x4bdbe7=-0x1==_0x823a7c['name']['indexOf'](_0x22a9a9)?_0x22a9a9+':\x20'+_0x823a7c['name']:_0x823a7c['name'];else _0x4bdbe7=_0x22a9a9+':\x20'+(_0x823a7c['createdAt']['toLocaleDateString'](_0x4f1c30['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x823a7c['createdAt']['toLocaleTimeString'](_0x4f1c30['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x389069['saveRevision']({'name':_0x4bdbe7}),_0x3fccd9['isReady']=!0x0,_0x4f1c30['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x3090c6){super(_0x3090c6),this['_revisionViewer']=_0x3090c6['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1e7bf2=this['_revisionsRepository']['_revisions'],_0x527ce9=this['_createRevisionActions'](),_0x77d94b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x1e7bf2,_0x527ce9,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',(_0x40a448,_0x51c0f3)=>{_0x51c0f3['revisionViews']['on']('add',(_0x35f9e7,_0x7961df)=>{_0x7961df['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)),_0x77d94b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x42e994=this['_revisionsRepository']['getRevision'](0x0);if(_0x42e994){const _0x370da2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x42e994['id']);this['_revisionViewer']['compare'](_0x42e994,_0x370da2);}}['_handleRevisionSelected'](_0x118e3f,_0x2fc8a3){const _0x3798e5=this['_revisionsRepository']['getRevision'](_0x2fc8a3['id']),_0xb53d44=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3798e5['id']);this['_revisionViewer']['compare'](_0x3798e5,_0xb53d44);}['_handleRevisionSetName'](_0x499674,_0xada889){this['_revisionsRepository']['getRevision'](_0xada889['id'])['setName'](_0xada889['name']);}['_handleDiffChange'](_0x241417,_0x59ca25,_0x5113de){const _0x31025d=this['_revisionsRepository']['getRevisionsInDiff'](_0x5113de);_0x31025d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x31025d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x31025d[0x0]));}['_createRevisionActions'](){const _0xf9c1cd=this['editor'],_0x4ac7bc=g['availableRevisionActions'],_0x32e15b=_0xf9c1cd['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x32e15b['length'])return _0x32e15b['map'](_0x5aff07=>{const _0x5dae43='string'==typeof _0x5aff07?Object['assign']({},_0x4ac7bc[_0x5aff07]):_0x5aff07;return _0x5dae43['action']=_0x5dae43['action']['bind'](this,_0xf9c1cd),_0x5dae43['isVisible']&&(_0x5dae43['isVisible']=_0x5dae43['isVisible']['bind'](this,_0xf9c1cd)),_0x5dae43;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4a4a33},_0x214bd5)=>{const _0x49b297=_0x4a4a33['get'](d),_0x5a41af=_0x49b297['repository'];let _0x1e1e67=_0x49b297['diff']['newRevisionId'],_0x523e7c=_0x214bd5['id'];_0x5a41af['getIndex'](_0x1e1e67)>_0x5a41af['getIndex'](_0x523e7c)&&([_0x1e1e67,_0x523e7c]=[_0x523e7c,_0x1e1e67]),_0x49b297['compare'](_0x1e1e67,_0x523e7c);},'isVisible':({plugins:_0x1408a9},_0x43170f)=>{const _0x349155=_0x1408a9['get'](d);return!(_0x349155['repository']['getRevisionsInDiff'](_0x349155['diff'])['length']>0x2)&&!_0x43170f['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x23ba78,{id:_0x2c7929})=>{_0x23ba78['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2c7929);},'isVisible':({plugins:_0x3c102b},_0x28f6a4)=>!!_0x3c102b['get'](d)['repository']['getLaterVisibleRevision'](_0x28f6a4['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2952b0},{id:_0x4fdc37,revisionNameView:_0x496ca6})=>{const _0x23a6ac=_0x2952b0['get'](d),_0x2137a3=_0x23a6ac['repository']['getEarlierVisibleRevision'](_0x4fdc37);_0x23a6ac['compare'](_0x4fdc37,_0x2137a3),_0x496ca6['focus'](),_0x496ca6['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x15e66e,_0x4e87a3){super(_0x15e66e),this['_view']=_0x4e87a3,this['_toolbarConfig']=ht(_0x15e66e['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x5f3824){const _0xa946dc=this['editor'],_0x5b7ac2=this['view'],_0x287d1e=_0xa946dc['editing']['view'],_0x1d1686=_0x5b7ac2['editable'],_0x1aef1e=_0x287d1e['document']['getRoot']();_0x1d1686['name']=_0x1aef1e['rootName'],_0x5b7ac2['render']();const _0x1970e4=_0x1d1686['element'];this['setEditableElement'](_0x1d1686['name'],_0x1970e4),_0x5b7ac2['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x287d1e['attachDomRoot'](_0x1970e4),this['_elementReplacer']['replace'](_0x5f3824,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x54139a=this['view'],_0x91a9ad=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x91a9ad['detachDomRoot'](_0x54139a['editable']['name']),_0x54139a['destroy']();}['_initToolbar'](){const _0x50f533=this['view'];_0x50f533['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x50f533['stickyPanel']['limiterElement']=_0x50f533['element'],_0x50f533['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x493149})=>_0x493149),_0x50f533['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x50f533['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3cac9d,_0xe0dad4,_0x3be185={}){super(_0x3cac9d),this['stickyPanel']=new lt(_0x3cac9d),this['toolbar']=new nt(_0x3cac9d,{'shouldGroupWhenFull':_0x3be185['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x3cac9d,_0xe0dad4);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x555cf9,_0x2f5436){super(_0x2f5436),this['sourceElement']=_0x555cf9,this['model']['document']['createRoot']();const _0x173e27=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x173e27);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5ab1bc,_0x2b814c){const _0x3ab7cb=new this(_0x5ab1bc,_0x2b814c);return await _0x3ab7cb['initPlugins'](),await _0x3ab7cb['ui']['init'](_0x5ab1bc),await _0x3ab7cb['data']['init'](_0x3ab7cb['config']['get']('initialData')||''),_0x3ab7cb['fire']('ready'),_0x3ab7cb;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x5a5f64{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x312435){function _0x5499d1(_0x2d6bfa){return _0x2d6bfa['map'](_0x5550b6=>String['fromCharCode'](_0x5550b6))['join']('');}super(_0x312435),this['result']='end',_0x312435[_0x5499d1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5499d1([0x76,0x69,0x65,0x77])][_0x5499d1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5499d1([0x61,0x75,0x74,0x6f]),_0x312435[_0x5499d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5499d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5499d1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5499d1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5499d1([0x6f,0x6b])});}}class H extends _0x5a5f64{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x2763e2){if(super(_0x2763e2),!this['editor']['config']['get']('revisionHistory'))throw new _0x2e7d78('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x58a9ea=>this['_showRevisionViewer']({..._0x58a9ea,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x37fa0e=>this['_closeRevisionViewer'](_0x37fa0e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2b2ea6=>this['_restoreRevision'](_0x2b2ea6)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4dba88){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4dba88;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x53304b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x53304b);}['getRevision'](_0x3b1998){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3b1998);}['getRevisions'](_0x4b8d25){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4b8d25||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4149c6=this['editor'],_0x4499e4=_0x23d80d(_0x4149c6,p),_0xd71079=_0x4149c6['plugins']['get']('RevisionTracker'),_0x31bed6=_0x4149c6['plugins']['get']('Users')['users'];return _0x4499e4['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4499e4['lazyRoots'],(_0x4499e4['plugins']['push'](k,d,m,class extends _0x5a5f64{static get['requires'](){return[d,'Users'];}['init'](){const _0x121881=this['editor']['plugins']['get']('Users');for(const _0x23b40d of _0x31bed6)_0x23b40d['isAnonymous']||_0x121881['getUser'](_0x23b40d['id'])||_0x121881['addUser'](_0x23b40d);const _0x33551e=_0xd71079['repository']['getRevisions']();let _0x3fba6f=null;const _0x3afa3d=this['editor']['plugins']['get']('RevisionViewer');_0x3afa3d['adapter']=_0xd71079['adapter'],_0x3afa3d['bind']('isEnabled')['to'](_0xd71079),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4149c6,'isReadOnly',_0x4d2546=>!_0x4d2546);for(const _0x48a170 of _0x33551e){const _0x21856b=null===_0x48a170['creator'];if(_0x21856b&&_0x48a170['toVersion']===_0x48a170['fromVersion'])continue;const _0x7496d7=_0x48a170['toJSON']();_0x3afa3d['addRevisionData'](_0x7496d7,(_0x2f1992,_0x1e5d95,_0x37d975)=>{if(_0x21856b){if(_0x3fba6f)_0x3fba6f['_update'](_0x2f1992,_0x1e5d95);else{if(!_0x1e5d95){const _0x58ef5d=_0x37d975['toJSON']();_0x58ef5d['id']=_0x45c6ed(),_0xd71079['saveRevision'](_0x58ef5d,_0x37d975['toVersion'])['then'](_0x3ffab7=>{_0x3fba6f=_0x3ffab7;});}}}else _0x48a170['_update'](_0x2f1992,_0x1e5d95);});}}},g),_0x4499e4);}['_enhanceShowRevisionViewerCallback'](){const _0x3ea9a6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x337e61=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x206efa=this['editor']['plugins']['get']('Autosave');await _0x206efa['save']();}else await _0x337e61['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x7d7499=this['editor']['plugins']['get']('Dialog');_0x7d7499['isOpen']&&_0x7d7499['hide']();}const _0xa2a55b=this['_getRevisionViewerEditorConfig']();return _0x3ea9a6(_0xa2a55b)['then'](_0x446907=>{return(this['_viewerEditor']=_0x446907,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x446907;})['catch'](_0x58c8a3=>(console['error'](_0x58c8a3),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x56e1b5=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'](),_0x56e1b5(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2dfd92=this['editor']['plugins']['get']('Annotations');_0x2dfd92['refreshVisibility'](),_0x2dfd92['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2ac409){const _0x3fa010=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x444863=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x428674=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x428674,_0x2ac409)['then'](_0x188a14=>(_0x444863['style']['display']='block',_0x3fa010['style']['display']='none',_0x188a14));}['_closeRevisionViewer'](_0x3c0ef4){const _0x3381fa=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3381fa['style']['display']='',_0x3c0ef4['destroy']();}async['_restoreRevision'](_0x539664){const _0x329e77=this['editor'],_0x47730a=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2e9a82=_0x329e77['plugins']['get']('RevisionTracker'),_0x535583=_0x47730a['repository']['getRevision'](_0x539664);let _0x17e548,_0xbb4426,_0xaf4fc7;try{_0x17e548=await _0x47730a['getRevisionData'](_0x535583),_0xbb4426=await _0x47730a['getRevisionRootsAttributes'](_0x535583);}catch(_0x5b5794){return void console['error'](_0x5b5794);}_0x329e77['model']['change'](_0x3fd81a=>{for(const _0x4fbc24 of Array['from'](_0x329e77['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3fd81a['removeMarker'](_0x4fbc24);}),_0x47730a['isReady']=!0x1,_0x329e77['model']['enqueueChange'](_0x2be2d9=>{_0x2be2d9['setSelection'](null),_0x2be2d9['removeSelectionAttribute'](_0x329e77['model']['document']['selection']['getAttributeKeys']());const _0x4ccd0a=Object['keys'](_0x17e548);for(const _0x259eb3 of _0x329e77['model']['document']['roots'])'$graveyard'!=_0x259eb3['rootName']&&_0x259eb3['isAttached']()&&!_0x4ccd0a['includes'](_0x259eb3['rootName'])&&_0x2be2d9['detachRoot'](_0x259eb3);for(const _0x1bd61b of _0x4ccd0a){let _0x97d0a4=_0x329e77['model']['document']['getRoot'](_0x1bd61b);_0x97d0a4&&_0x97d0a4['isAttached']()||(_0x97d0a4=_0x2be2d9['addRoot'](_0x1bd61b));const _0x41c7ca=_0xbb4426[_0x1bd61b],_0x209448=Object['keys'](_0x41c7ca),_0x37b7e5=_0x17e548[_0x1bd61b];for(const _0x113d2f of _0x97d0a4['getAttributeKeys']())_0x209448['includes'](_0x113d2f)||_0x2be2d9['removeAttribute'](_0x113d2f,_0x97d0a4);for(const _0x382d76 of _0x209448)_0x2be2d9['setAttribute'](_0x382d76,_0xbb4426[_0x1bd61b][_0x382d76],_0x97d0a4);_0x2be2d9['remove'](_0x2be2d9['createRangeIn'](_0x97d0a4)),_0x2be2d9['insert'](_0x329e77['data']['parse'](_0x37b7e5,_0x97d0a4),_0x97d0a4,0x0);}});const _0x566f62=R(_0x329e77['locale'],'Restored');if(_0x535583['name'])_0xaf4fc7=-0x1==_0x535583['name']['indexOf'](_0x566f62)?_0x566f62+':\x20'+_0x535583['name']:_0x535583['name'];else _0xaf4fc7=_0x566f62+':\x20'+(_0x535583['createdAt']['toLocaleDateString'](_0x329e77['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x535583['createdAt']['toLocaleTimeString'](_0x329e77['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2e9a82['saveRevision']({'name':_0xaf4fc7}),_0x47730a['isReady']=!0x0,_0x329e77['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};