@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250116.0 → 0.0.0-nightly-20250118.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 +9 -9
  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 _0x48f191,uid as _0x4c7642,Collection as _0x1959cb,logWarning as _0x1d3a3a,FocusTracker as _0x3a4ca6,KeystrokeHandler as _0x42e5c7,scrollViewportToShowTarget as _0x405417,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x4d1e5d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x6066b7,set as _0x5a5560,unset as _0x4bfd9f,isEqual as _0x238803}from'lodash-es';import{Plugin as _0x5dff76,PendingActions as _0x3a28b5,icons as _0x5231c5,Command as _0xec5ed7,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4d6492,getMarkerDomElement as _0x5b4e3d,ConfirmMixin as _0x46b414,sanitizeEditorConfig as _0x5d9b08}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x4a0ecb,ViewText as _0x439f23,ViewElement as _0x1b2671,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x10c17f,ViewAttributeElement as _0x573b4f,ViewEmptyElement as _0x49bdc7,ViewRawElement as _0x1697ba,ViewUIElement as _0x2aaf1a,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x3bf5ec,injectCssTransitionDisabler as ts,submitHandler as _0x3ca2bc,LabeledFieldView as nt,createLabeledInputText as _0x3aea96,createDropdown as _0x43bd20,ListView as _0x3f465e,ListItemView as _0x2f3332,ButtonView as _0x2d0f60,MenuBarMenuView as _0xe00c34,MenuBarMenuListView as _0x4ed7c8,MenuBarMenuListItemView as _0x4e0248,MenuBarMenuListItemButtonView as _0x3779a0,ContextualBalloon as _0x3ef183,ToolbarSeparatorView as _0x468ccf,IconView as _0x23bb3e,addListToDropdown as _0x479047,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1c64c5}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x48f191(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xe5645b){super(),this['id']=_0xe5645b['id']||_0x4c7642(),this['creator']=_0xe5645b['creator']||null,this['authors']=_0xe5645b['authors']||[],this['diffData']=_0xe5645b['diffData']||null,this['toVersion']=_0xe5645b['toVersion']||0x0,this['fromVersion']=_0xe5645b['fromVersion']||0x0,this['set']('name',_0xe5645b['name']||''),this['set']('createdAt',_0xe5645b['createdAt']||new Date()),this['set']('attributes',_0xe5645b['attributes']||{});}['setName'](_0x3248af){this['_update']({'name':_0x3248af});}['setAttribute'](_0x1066aa,_0x5503db){const _0x508fda=_0x6066b7(this['attributes']);_0x5a5560(_0x508fda,_0x1066aa,_0x5503db),this['_update']({'attributes':_0x508fda});}['removeAttribute'](_0x3e1dc9){const _0x161d2b=_0x6066b7(this['attributes']);_0x4bfd9f(_0x161d2b,_0x3e1dc9),this['_update']({'attributes':_0x161d2b});}['_update'](_0x20802a,_0x4f8eca=!0x1){let _0x30df07=!0x1;const _0x59eafe={'id':this['id']},_0x4b746f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5053c1 of _0x4b746f){const _0xddab25=_0x20802a[_0x5053c1];void 0x0!==_0xddab25&&_0xddab25!==this[_0x5053c1]&&(this[_0x5053c1]=_0xddab25,_0x59eafe[_0x5053c1]=_0xddab25,_0x30df07=!0x0);}_0x30df07&&(_0x59eafe['authors']&&(_0x59eafe['authorsIds']=_0x59eafe['authors']['map'](_0x51fe7d=>_0x51fe7d['id']),delete _0x59eafe['authors']),this['fire']('_update',_0x59eafe,_0x4f8eca));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5ae1e0=>_0x5ae1e0['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5dff76{['_revisions'];static get['requires'](){return[_0x4d6492];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1bd310){super(_0x1bd310),this['_revisions']=new _0x1959cb();}['afterInit'](){!async function(_0x20ce3d){const _0x465b5e=_0x414c42([0x50,0x67,0x6f,0x6b,0x49,0x66,0x45,0x74,0x39,0x61,0x30,0x6d,0x69,0x79,0x53,0x56,0x73,0x43,0x37,0x4a,0x46,0x63,0x55,0x59,0x48,0x57,0x4e,0x6c,0x42,0x76,0x65,0x5a,0x4c,0x38,0x4b,0x6e,0x32,0x7a,0x71,0x4d,0x44,0x62,0x4f,0x34,0x72,0x54,0x47,0x78,0x52,0x75,0x36,0x33,0x51,0x41,0x31,0x6a,0x35,0x77,0x70,0x64,0x58,0x68]),_0x3dc422=0xeb829,_0x21f266=0x41e4efff,_0x5899e6=0x41e3b33f^_0x21f266,_0x3b9ab0=window[_0x414c42([0x44,0x61,0x74,0x65])][_0x414c42([0x6e,0x6f,0x77])](),_0x1a7704=_0x20ce3d[_0x414c42([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x472fc2=new window[(_0x414c42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34bb78=>{_0x1a7704[_0x414c42([0x6f,0x6e,0x63,0x65])](_0x414c42([0x72,0x65,0x61,0x64,0x79]),_0x34bb78);}),_0x2a2a53={[_0x414c42([0x6b,0x74,0x79])]:_0x414c42([0x45,0x43]),[_0x414c42([0x75,0x73,0x65])]:_0x414c42([0x73,0x69,0x67]),[_0x414c42([0x63,0x72,0x76])]:_0x414c42([0x50,0x2d,0x32,0x35,0x36]),[_0x414c42([0x78])]:_0x414c42([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]),[_0x414c42([0x79])]:_0x414c42([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]),[_0x414c42([0x61,0x6c,0x67])]:_0x414c42([0x45,0x53,0x32,0x35,0x36])},_0x1ac0d4=_0x1a7704[_0x414c42([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x414c42([0x67,0x65,0x74])](_0x414c42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5c564b(){let _0x457f88,_0x4e39fe=null,_0x3d2e80=null;try{if(_0x1ac0d4==_0x414c42([0x47,0x50,0x4c]))return _0x414c42([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x457f88=_0x3c95b1(),!_0x457f88)return _0x414c42([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x457f88[_0x414c42([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d2e80=_0x168840(_0x457f88[_0x414c42([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x457f88[_0x414c42([0x6a,0x74,0x69])])),await _0x7f7eb9()?_0x2ef40a()?_0x40a7f4()?_0x414c42([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1a0c12()?(_0x457f88[_0x414c42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x414c42([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e39fe=_0x135ff1(_0x414c42([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x457f88[_0x414c42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x414c42([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e39fe=_0x135ff1(_0x414c42([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x457f88[_0x414c42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x414c42([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4e39fe=_0x135ff1(_0x414c42([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c5851()):_0x414c42([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x414c42([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x414c42([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x22ea92){return _0x414c42([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x40a7f4(){const _0x1cadea=[_0x414c42([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x414c42([0x74,0x72,0x69,0x61,0x6c])][_0x414c42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x457f88[_0x414c42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3b9ab0/0x3e8:0xe10*_0x5899e6;return _0x457f88[_0x414c42([0x65,0x78,0x70])]<_0x1cadea;}function _0x2ef40a(){const _0x119a9b=_0x457f88[_0x414c42([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x119a9b)return!0x1;if(_0x119a9b[_0x414c42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x414c42([0x2a])))return!0x0;if(_0x119a9b[_0x414c42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x414c42([0x52,0x48])))return!0x0;if(_0x119a9b[_0x414c42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x414c42([0x52,0x52,0x48]))){if(_0x456ad2())return!0x0;if(_0x51da2d()||_0x3920cd())return!0x0;}return!0x1;}function _0x1a0c12(){const _0x4389e4=_0x457f88[_0x414c42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4389e4||0x0==_0x4389e4[_0x414c42([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x838c6d}=new URL(window[_0x414c42([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4389e4[_0x414c42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x838c6d))return!0x0;const _0x38a297=_0x838c6d[_0x414c42([0x73,0x70,0x6c,0x69,0x74])](_0x414c42([0x2e]));return _0x4389e4[_0x414c42([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26d500=>_0x26d500[_0x414c42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x414c42([0x2a])))[_0x414c42([0x6d,0x61,0x70])](_0x3f7bd6=>_0x3f7bd6[_0x414c42([0x73,0x70,0x6c,0x69,0x74])](_0x414c42([0x2e])))[_0x414c42([0x73,0x6f,0x6d,0x65])](_0x17adf4=>_0x38a297[_0x414c42([0x65,0x76,0x65,0x72,0x79])]((_0x5152d8,_0xfb5234)=>_0x17adf4[_0xfb5234]===_0x5152d8||_0x17adf4[_0xfb5234]===_0x414c42([0x2a])));}function _0x3c5851(){return _0x4e39fe&&_0x3d2e80?new window[(_0x414c42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b6e17,_0x3063d9)=>{_0x4e39fe[_0x414c42([0x74,0x68,0x65,0x6e])](_0x2b6e17,_0x3063d9),_0x3d2e80[_0x414c42([0x74,0x68,0x65,0x6e])](_0x143c34=>{_0x143c34!=_0x414c42([0x56,0x61,0x6c,0x69,0x64])&&_0x2b6e17(_0x143c34);},_0x3063d9);}):_0x4e39fe||_0x3d2e80||_0x414c42([0x56,0x61,0x6c,0x69,0x64]);}}function _0x168840(_0x43fe15,_0x3265a8){return new window[(_0x414c42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x530470=>{if(_0x3d66cf())return _0x530470(_0x414c42([0x56,0x61,0x6c,0x69,0x64]));_0x1e5491(),_0x1a7704[_0x414c42([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x414c42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6d4773=!0x1;const _0x50552a=_0x4c7642();function _0x39b883(_0x438850){return!!_0x438850&&(typeof _0x438850===_0x414c42([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x438850===_0x414c42([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x438850[_0x414c42([0x74,0x68,0x65,0x6e])]===_0x414c42([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x438850[_0x414c42([0x63,0x61,0x74,0x63,0x68])]===_0x414c42([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53d371(_0x2bcdfe){_0x526366(_0x2bcdfe)[_0x414c42([0x74,0x68,0x65,0x6e])](_0x2149c8=>{if(!_0x2149c8||_0x2149c8[_0x414c42([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x414c42([0x6f,0x6b]))return _0x414c42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x147b66(_0x3fc4c6(_0x50552a+_0x3265a8))!=_0x2149c8[_0x414c42([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x414c42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x414c42([0x56,0x61,0x6c,0x69,0x64]);})[_0x414c42([0x74,0x68,0x65,0x6e])](_0xf2ed4c=>(_0x7950c2(),_0xf2ed4c),()=>{const _0x3a3174=_0x476e5e();return null==_0x3a3174?(_0x7950c2(),_0x414c42([0x56,0x61,0x6c,0x69,0x64])):_0x414c42(_0x3b9ab0-_0x3a3174>(0x65e86bff^_0x21f266)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x414c42([0x74,0x68,0x65,0x6e])](_0x530470)[_0x414c42([0x63,0x61,0x74,0x63,0x68])](()=>{_0x530470(_0x414c42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x448142=0x41d2017f^_0x21f266;function _0x7950c2(){const _0x59fd57=_0x414c42([0x6c,0x6c,0x63,0x74,0x2d])+_0x147b66(_0x3fc4c6(_0x43fe15)),_0x373ac5=_0x496ee7(_0x147b66(window[_0x414c42([0x4d,0x61,0x74,0x68])][_0x414c42([0x63,0x65,0x69,0x6c])](_0x3b9ab0/_0x448142)));window[_0x414c42([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x414c42([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59fd57,_0x373ac5);}function _0x476e5e(){const _0x5f2d9d=_0x414c42([0x6c,0x6c,0x63,0x74,0x2d])+_0x147b66(_0x3fc4c6(_0x43fe15)),_0x24ae3d=window[_0x414c42([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x414c42([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f2d9d);return _0x24ae3d?window[_0x414c42([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x496ee7(_0x24ae3d),0x10)*_0x448142:null;}function _0x526366(_0x510e5f){return new window[(_0x414c42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16a86e,_0x5c77a7)=>{_0x510e5f[_0x414c42([0x74,0x68,0x65,0x6e])](_0x16a86e,_0x5c77a7),window[_0x414c42([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c77a7,0x41e53b3f^_0x21f266);});}}_0x1a7704[_0x414c42([0x6f,0x6e])](_0x414c42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x17f311,_0x2cf903)=>{if(_0x2cf903[0x0]!=_0x43fe15)return _0x530470(_0x414c42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2cf903[0x1]={..._0x2cf903[0x1],[_0x414c42([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x50552a};},{[_0x414c42([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x414c42([0x68,0x69,0x67,0x68])}),_0x1a7704[_0x414c42([0x6f,0x6e])](_0x414c42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2025c8=>{_0x39b883(_0x2025c8[_0x414c42([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6d4773=!0x0,_0x53d371(_0x2025c8[_0x414c42([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x414c42([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x414c42([0x6c,0x6f,0x77])}),_0x472fc2[_0x414c42([0x74,0x68,0x65,0x6e])](()=>{_0x6d4773||_0x530470(_0x414c42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d66cf(){return _0x1a7704[_0x414c42([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x414c42([0x76,0x69,0x65,0x77])][_0x414c42([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x414c42([0x61,0x75,0x74,0x6f]);}function _0x1e5491(){_0x1a7704[_0x414c42([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x414c42([0x76,0x69,0x65,0x77])][_0x414c42([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x414c42([0x61,0x75,0x74,0x6f]);}}function _0x135ff1(_0x175f9e){const _0x138535=[new window[(_0x414c42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x75906c=>setTimeout(_0x75906c,0x41edd133^_0x21f266)),_0x472fc2[_0x414c42([0x74,0x68,0x65,0x6e])](()=>new window[(_0x414c42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b52fe=>{const _0x3db096=0x41e4eff8^_0x21f266,_0x44aac8=_0x20ce3d[_0x414c42([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5b1d98(){_0x44aac8[_0x414c42([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3db096&&_0x5b52fe();}_0x5b1d98(),_0x44aac8[_0x414c42([0x6f,0x6e])](_0x414c42([0x61,0x64,0x64]),_0x5b1d98);})),new window[(_0x414c42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd97f6b=>{function _0x5a694a(){for(const _0x3c8942 in window)if(window[_0x414c42([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x414c42([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3c8942))&&window[_0x3c8942]==_0x3dc422)return _0xd97f6b();_0x1a7704[_0x414c42([0x73,0x74,0x61,0x74,0x65])]!=_0x414c42([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x414c42([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a694a,0x41e4fc77^_0x21f266);}_0x71ae82(_0x414c42([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5a694a();})];return window[_0x414c42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x414c42([0x72,0x61,0x63,0x65])](_0x138535)[_0x414c42([0x74,0x68,0x65,0x6e])](()=>_0x175f9e);}async function _0x531065(){if(await _0x472fc2,_0x71ae82(_0x414c42([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1cbd85=_0x20ce3d[_0x414c42([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x28e924=_0x20ce3d[_0x414c42([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])](_0x1cbd85[_0x414c42([0x69,0x64])]),_0x5b8d58=_0x56d38f(_0x414c42([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5b8d58[_0x414c42([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1cbd85['id'],_0x28e924?_0x28e924['id']:null,!0x0),_0x5b8d58[_0x414c42([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x414c42([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5b8d58[_0x414c42([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5b8d58[_0x414c42([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5ede41,void(_0x5b8d58[_0x414c42([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5ede41);}if(_0x71ae82(_0x414c42([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x34d3e8=_0x56d38f(_0x414c42([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x34d3e8[_0x414c42([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x414c42([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x34d3e8[_0x414c42([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x34d3e8[_0x414c42([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5ede41,_0x34d3e8[_0x414c42([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5ede41;}_0x1a7704[_0x414c42([0x6d,0x6f,0x64,0x65,0x6c])][_0x414c42([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5ede41,_0x1a7704[_0x414c42([0x6d,0x6f,0x64,0x65,0x6c])][_0x414c42([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5ede41,_0x1a7704[_0x414c42([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x414c42([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x456ad2(){return _0x71ae82(_0x414c42([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x56d38f(_0x414c42([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x414c42([0x73,0x74,0x61,0x74,0x65])]==_0x414c42([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x51da2d(){return _0x71ae82(_0x414c42([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 _0x3920cd(){return _0x71ae82(_0x414c42([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x36323d(_0x2d4fe7){const _0x1fae1f=_0x4356cd();_0x1a7704[_0x1fae1f]=_0x414c42([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])+_0x2d4fe7,_0x2d4fe7[_0x414c42([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x414c42([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4356cd()]=_0x3dc422),_0x2d4fe7!=_0x414c42([0x56,0x61,0x6c,0x69,0x64])&&_0x531065();}function _0x4356cd(){const _0xc74390=window[_0x414c42([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x414c42([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x414c42([0x6e,0x6f,0x77])]())[_0x414c42([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x414c42([0x2e]),'');let _0x58aef2=_0x414c42([0x50]);for(let _0x184e3d=0x0;_0x184e3d<_0xc74390[_0x414c42([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x184e3d+=0x2){let _0x349f80=window[_0x414c42([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc74390[_0x414c42([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x184e3d,_0x184e3d+0x2));_0x349f80>=_0x465b5e[_0x414c42([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x349f80-=_0x465b5e[_0x414c42([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58aef2+=_0x465b5e[_0x349f80];}return _0x58aef2;}function _0x3c95b1(){const _0x5efb7e=_0x1ac0d4[_0x414c42([0x73,0x70,0x6c,0x69,0x74])](_0x414c42([0x2e]));if(0x3!=_0x5efb7e[_0x414c42([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c0278(_0x5efb7e[0x1]);function _0x3c0278(_0x118b82){const _0x17ea27=_0x42bf9d(_0x118b82);return _0x17ea27&&_0x1f2fcc()?_0x17ea27:null;function _0x1f2fcc(){const _0x238bd8=_0x17ea27[_0x414c42([0x6a,0x74,0x69])],_0x5dc842=window[_0x414c42([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x238bd8[_0x414c42([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x238bd8[_0x414c42([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53672c={..._0x17ea27,[_0x414c42([0x6a,0x74,0x69])]:_0x238bd8[_0x414c42([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x238bd8[_0x414c42([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53672c[_0x414c42([0x76,0x63])],_0x3fc4c6(_0x53672c)==_0x5dc842;}}}async function _0x7f7eb9(){let _0x30f7fa=!0x0;try{const _0x3e099b=_0x1ac0d4[_0x414c42([0x73,0x70,0x6c,0x69,0x74])](_0x414c42([0x2e])),[_0x880dbf,_0x1abc25,_0xe7f4b4]=_0x3e099b;return _0x5064b6(_0x880dbf),await _0x456bc5(_0x880dbf,_0x1abc25,_0xe7f4b4),_0x30f7fa;}catch(_0x443d8d){return!0x1;}function _0x5064b6(_0x205708){const _0x48d227=_0x42bf9d(_0x205708);_0x48d227&&_0x48d227[_0x414c42([0x61,0x6c,0x67])]==_0x414c42([0x45,0x53,0x32,0x35,0x36])||(_0x30f7fa=!0x1);}async function _0x456bc5(_0x2a0447,_0x27d732,_0xe2e9f){const _0x3aecd8=window[_0x414c42([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x414c42([0x66,0x72,0x6f,0x6d])](_0xac3de8(_0xe2e9f),_0x222804=>_0x222804[_0x414c42([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xcf79cd=new window[(_0x414c42([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x414c42([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a0447+_0x414c42([0x2e])+_0x27d732),_0x5989b4=window[_0x414c42([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x414c42([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5989b4)return;const _0x3ed43c=await _0x5989b4[_0x414c42([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x414c42([0x6a,0x77,0x6b]),_0x2a2a53,{[_0x414c42([0x6e,0x61,0x6d,0x65])]:_0x414c42([0x45,0x43,0x44,0x53,0x41]),[_0x414c42([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x414c42([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x414c42([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5989b4[_0x414c42([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x414c42([0x6e,0x61,0x6d,0x65])]:_0x414c42([0x45,0x43,0x44,0x53,0x41]),[_0x414c42([0x68,0x61,0x73,0x68])]:{[_0x414c42([0x6e,0x61,0x6d,0x65])]:_0x414c42([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3ed43c,_0x3aecd8,_0xcf79cd)||(_0x30f7fa=!0x1);}}function _0x42bf9d(_0x4975cd){return _0x4975cd[_0x414c42([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x414c42([0x65,0x79]))?JSON[_0x414c42([0x70,0x61,0x72,0x73,0x65])](_0xac3de8(_0x4975cd)):null;}function _0xac3de8(_0x354a20){return window[_0x414c42([0x61,0x74,0x6f,0x62])](_0x354a20[_0x414c42([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x414c42([0x2b]))[_0x414c42([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x414c42([0x2f])));}function _0x3fc4c6(_0x44f16f){let _0x46be4d=0x1505;function _0x5912ca(_0x476d80){for(let _0x2b81dd=0x0;_0x2b81dd<_0x476d80[_0x414c42([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b81dd++){const _0xd1e2d7=_0x476d80[_0x414c42([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b81dd);_0x46be4d=(_0x46be4d<<0x5)+_0x46be4d+_0xd1e2d7,_0x46be4d&=_0x46be4d;}}function _0x509c11(_0x33958b){Array[_0x414c42([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x33958b)?_0x33958b[_0x414c42([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x509c11):_0x33958b&&typeof _0x33958b==_0x414c42([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x414c42([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x33958b)[_0x414c42([0x73,0x6f,0x72,0x74])]()[_0x414c42([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x386d1a,_0x5a9e5b])=>{_0x5912ca(_0x386d1a),_0x509c11(_0x5a9e5b);}):_0x5912ca(window[_0x414c42([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x33958b));}return _0x509c11(_0x44f16f),_0x46be4d>>>0x0;}function _0x147b66(_0x58b992){return _0x58b992[_0x414c42([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x414c42([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x414c42([0x30]));}function _0x496ee7(_0x2b259a){return _0x2b259a[_0x414c42([0x73,0x70,0x6c,0x69,0x74])]('')[_0x414c42([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x414c42([0x6a,0x6f,0x69,0x6e])]('');}function _0x71ae82(_0xb394b8){return _0x1a7704[_0x414c42([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x414c42([0x68,0x61,0x73])](_0xb394b8);}function _0x56d38f(_0x4caa36){return _0x1a7704[_0x414c42([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x414c42([0x67,0x65,0x74])](_0x4caa36);}function _0x5ede41(){}function _0x414c42(_0x41d415){return _0x41d415['map'](_0x2adfd3=>String['fromCharCode'](_0x2adfd3))['join']('');}_0x36323d(await _0x5c564b());}(this);}['createRevision'](_0x510071){const _0x4e4e89=this['editor']['plugins']['get']('Users');return new a({'id':_0x510071['id'],'name':_0x510071['name'],'creator':_0x510071['creatorId']?_0x4e4e89['getUser'](_0x510071['creatorId']):null,'diffData':_0x510071['diffData']||_0x510071['data'],'authors':_0x510071['authorsIds']['map'](_0x394497=>_0x4e4e89['getUser'](_0x394497)),'createdAt':new Date(_0x510071['createdAt']),'attributes':_0x510071['attributes'],'fromVersion':_0x510071['fromVersion'],'toVersion':_0x510071['toVersion']});}['addRevision'](_0xd3dd16,_0x1840d5=0x0){this['_revisions']['add'](_0xd3dd16,_0x1840d5);}['getRevision'](_0x20979f){return this['_revisions']['get'](_0x20979f);}['getRevisions'](_0x29f39b={'toJSON':!0x1}){const _0x537602=Array['from'](this['_revisions']);return _0x537602['reverse'](),_0x29f39b['toJSON']?_0x537602['map'](_0x407d9d=>_0x407d9d['toJSON']()):_0x537602;}['getIndex'](_0x23511){return this['_revisions']['getIndex'](_0x23511);}['getEarlierVisibleRevision'](_0x84d53a){const [,_0x520bcc]=this['getRevisionsIterator'](_0x84d53a,{'direction':'earlier'});return _0x520bcc;}['getLaterVisibleRevision'](_0x57954b){const [,_0x4fe5be]=this['getRevisionsIterator'](_0x57954b,{'direction':'later'});return _0x4fe5be;}['getRevisionsInDiff'](_0x497af8){const _0x499641=[];for(const _0xd23775 of this['getRevisionsIterator'](_0x497af8['newRevisionId']))if(_0x499641['push'](_0xd23775),_0xd23775['id']===_0x497af8['oldRevisionId'])break;return _0x499641;}*['getRevisionsIterator'](_0x5b965b,{direction:_0x3e24a6='earlier',filter:_0x509ae6=()=>!0x0}={}){const _0x5e29e1='earlier'===_0x3e24a6?0x1:-0x1;let _0x24971d=this['_revisions']['get'](_0x5b965b),_0x3c10c7=this['getIndex'](_0x24971d);for(yield _0x24971d;_0x24971d;){if(_0x3c10c7+=_0x5e29e1,_0x24971d=this['getRevision'](_0x3c10c7),!_0x24971d)return;_0x509ae6(_0x24971d)&&(yield _0x24971d);}}}function m(_0x10d5b1,_0x5a98fe,_0x532a01){const t=_0x10d5b1['t'];switch(_0x5a98fe){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'},_0x532a01);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x532a01);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x10c17f,'a':_0x573b4f,'e':_0x49bdc7,'r':_0x1697ba,'u':_0x2aaf1a};class l extends _0x5dff76{['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[_0x4d6492,j,_0x3a28b5];}constructor(_0x4422d5){super(_0x4422d5),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0xc68d26=_0x4c7642();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xc68d26},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 _0x33c01b=this['repository']['getRevision'](0x0),_0x31e6e1=_0x33c01b&&null===_0x33c01b['creator']?_0x33c01b:null;if(this['_continueCurrentRevision']=!!_0x31e6e1&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3ba05c=this['_source']['getCurrentRevisionId'](),_0x4af3d5=this['repository']['getRevision'](_0x3ba05c);if(_0x4af3d5)this['_startingVersion']=_0x4af3d5['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1457cf=this['_source']['history']['_operations']['find'](_0x2cecaf=>!_0x2cecaf['_isInit']),_0xae5d59=_0x1457cf?_0x1457cf['baseVersion']:this['_source']['history']['version'];_0x33c01b?(_0x33c01b['toVersion']<_0xae5d59&&_0x33c01b['_update']({'toVersion':_0xae5d59}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x31e6e1['id'],this['_startingVersion']=_0x31e6e1['fromVersion']):(this['_startingVersion']=_0x33c01b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xae5d59,this['_continueCurrentRevision']=!0x1);}}else _0x31e6e1&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x31e6e1['toVersion'],this['editor']['model']['document']['history']['version']),_0x31e6e1['fromVersion']===_0x31e6e1['toVersion']?(0x0!==_0x31e6e1['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x31e6e1['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x31e6e1['id'],this['_startingVersion']=_0x31e6e1['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',_0x36b087=>!_0x36b087),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ba9ea=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x44e00a;for(const _0x494044 in _0x3ba9ea){const _0x591b40=_0x494044,_0x212847=_0x3ba9ea[_0x591b40];if('revisionHistoryLicenseKeyValid'==_0x212847||'revisionHistoryLicenseKeyInvalid'==_0x212847||'revisionHistoryLicenseKeyExpired'==_0x212847||'revisionHistoryLicenseKeyDomainLimit'==_0x212847||'revisionHistoryLicenseKeyNotAllowed'==_0x212847||'revisionHistoryLicenseKeyEvaluationLimit'==_0x212847||'revisionHistoryLicenseKeyTrialLimit'==_0x212847||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x212847||'revisionHistoryLicenseKeyUsageLimit'==_0x212847){delete _0x3ba9ea[_0x591b40],_0x44e00a=_0x212847,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x44e00a&&_0x3ba9ea['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x44e00a&&_0x3ba9ea['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x44e00a&&_0x3ba9ea['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x44e00a&&_0x3ba9ea['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x44e00a&&_0x3ba9ea['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x44e00a&&_0x3ba9ea['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x44e00a&&_0x3ba9ea['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x44e00a&&_0x3ba9ea['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xea2f45=this['repository']['getRevision'](0x0),_0x127462=await this['getRevisionDocumentData'](_0xea2f45),_0x30c15e=await this['getRevisionRootsAttributes'](_0xea2f45);this['_replaceEditorDataWithRevisionData'](_0x127462,_0x30c15e);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5f2126){this['_source']=_0x5f2126;}async['update'](){const _0x26d6c8=await this['_source']['getLatestVersion']();if(_0x26d6c8>this['currentRevision']['toVersion']){await this['_loadState']();const _0x8be529=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x26d6c8});_0x8be529['authors']=_0x8be529['authorsIds']['map'](_0x10daf1=>this['editor']['plugins']['get']('Users')['getUser'](_0x10daf1)),this['currentRevision']['_update'](_0x8be529);}}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'](_0x186659={},_0x2730a3=null){const _0x93a55a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2730a3>this['currentRevision']['toVersion']&&(_0x2730a3=null),null===_0x2730a3&&(_0x2730a3=await this['_source']['getLatestVersion']());const _0x15a6c8=this['_getFromVersion'](_0x2730a3),_0x1efd24=this['buildRevisionData']({'from':_0x15a6c8,'to':_0x2730a3});if(this['currentRevision']['toVersion']<_0x2730a3){const _0x52fd26=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2730a3,'to':_0x2730a3});_0x52fd26['authors']=[],_0x52fd26['authorsIds']=[],_0x52fd26['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x52fd26,!0x0),delete _0x52fd26['authors'],_0x93a55a['push'](_0x52fd26);}_0x186659['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x186659['name']=_0x186659['name']||null,_0x186659['id']=_0x186659['id']||_0x4c7642(),_0x186659={..._0x186659,..._0x1efd24};const _0x109cae=this['addRevisionData'](_0x186659);_0x93a55a['push'](_0x186659);const _0x562408=this['repository']['getIndex'](_0x109cae);if(0x0!==_0x562408){const _0x2916d7=this['repository']['getRevision'](_0x562408-0x1);if(_0x2916d7['fromVersion']!==_0x2730a3){const _0x34f26a=this['_revisionDataBuilder']['getData'](_0x2730a3,_0x2916d7['toVersion']),_0x3000ba={'id':_0x2916d7['id'],'diffData':_0x34f26a['diffData'],'authorsIds':_0x34f26a['authorsIds'],'authors':_0x34f26a['authorsIds']['map'](_0x2e473d=>this['editor']['plugins']['get']('Users')['getUser'](_0x2e473d)),'fromVersion':_0x2730a3};_0x2916d7===this['currentRevision']&&(_0x3000ba['createdAt']=new Date(_0x186659['createdAt']['getTime']()+0xa)),_0x2916d7['_update'](_0x3000ba,!0x0),delete _0x3000ba['authors'],_0x93a55a['push'](_0x3000ba);}}if(this['adapter']){for(const _0x5c1ff1 of _0x93a55a)this['_bufferUpdate'](_0x5c1ff1['id'],_0x5c1ff1,!0x0);this['sendBufferedUpdates']();}return _0x109cae;}['addRevisionData'](_0x2764b5){const _0x2357b7=this['repository']['createRevision'](_0x2764b5);return this['adapter']&&_0x2357b7['on']('_update',(_0x4839c8,_0x2c3236,_0x21822a)=>{_0x21822a||(this['_bufferUpdate'](_0x2c3236['id'],_0x2c3236,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2357b7,this['_findInsertionIndex'](_0x2357b7)),_0x2357b7;}async['getRevisionDocumentData'](_0x145205){await this['_loadRevisionData'](_0x145205);const _0x1feca1={};for(const _0x46b9ef in _0x145205['diffData']){if(_0x145205['diffData'][_0x46b9ef]['attachChange']&&!_0x145205['diffData'][_0x46b9ef]['attachChange']['isAttached'])continue;const _0x3cc3d1=this['_removeRevisionMarkers'](JSON['parse'](_0x145205['diffData'][_0x46b9ef]['insertions'])),_0x46bf39=this['editor']['editing']['view']['document'],_0x34d8bc=new _0x4a0ecb(_0x46bf39,_0x3cc3d1['map'](_0x26456e=>C(_0x26456e,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x1feca1[_0x46b9ef]=this['editor']['data']['processor']['toData'](_0x34d8bc),this['editor']['data']['processor']['useFillerType']('default');}return _0x1feca1;}async['getRevisionRootsAttributes'](_0x129b7c){await this['_loadRevisionData'](_0x129b7c);const _0x348fd8={};for(const _0x3da698 in _0x129b7c['diffData'])_0x129b7c['diffData'][_0x3da698]['attachChange']&&!_0x129b7c['diffData'][_0x3da698]['attachChange']['isAttached']||(_0x348fd8[_0x3da698]=_0x129b7c['diffData'][_0x3da698]['attributesAfter']||{});return _0x348fd8;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x30754d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xbb6fdd=0x0;_0xbb6fdd<_0x30754d['length'];_0xbb6fdd++){const _0x2dbfc1=_0x30754d[_0xbb6fdd];let _0x457769=!0x1;for(const _0x28354c of Object['keys'](_0x2dbfc1))void 0x0===_0x2dbfc1[_0x28354c]?delete _0x2dbfc1[_0x28354c]:'id'!==_0x28354c&&(_0x457769=!0x0);_0x457769||(_0x30754d[_0xbb6fdd]=null);}if(_0x30754d=_0x30754d['filter'](_0x4e6c8e=>null!==_0x4e6c8e),!_0x30754d['length'])return;for(let _0x384e15=0x0;_0x384e15<_0x30754d['length'];_0x384e15++){const _0x3614e5=_0x30754d[_0x384e15];void 0x0!==_0x3614e5['fromVersion']&&void 0x0===_0x3614e5['toVersion']&&(_0x3614e5['toVersion']=this['repository']['getRevision'](_0x3614e5['id'])['toVersion']),void 0x0!==_0x3614e5['toVersion']&&void 0x0===_0x3614e5['fromVersion']&&(_0x3614e5['fromVersion']=this['repository']['getRevision'](_0x3614e5['id'])['fromVersion']);}const _0x3f4e84=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x30754d,_0x3f4e84)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xe2376f=>{if(_0xe2376f){for(const _0x53d518 of _0xe2376f)this['setRevisionData']({'id':_0x53d518['id'],'createdAt':_0x53d518['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x14f388,_0x5be56f){let _0x4590d0=this['editor']['config']['get']('initialData'),_0x5cb134=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4590d0){_0x4590d0={};for(const _0x4b2858 of this['editor']['model']['document']['getRootNames']())_0x4590d0[_0x4b2858]='';}if('string'==typeof _0x4590d0&&(_0x4590d0={'main':_0x4590d0}),void 0x0===_0x5cb134){_0x5cb134={};for(const _0x418784 of this['editor']['model']['document']['getRootNames']())_0x5cb134[_0x418784]={};}let _0x3ccb97=!0x1;const _0x257764=Object['keys'](_0x4590d0),_0x37697c=Object['keys'](_0x14f388);for(const _0x58de8 of _0x257764){if(_0x4590d0[_0x58de8]!==_0x14f388[_0x58de8]&&''!==_0x4590d0[_0x58de8]['trim']()){_0x3ccb97=!0x0;break;}if(!_0x238803(_0x5cb134[_0x58de8],_0x5be56f[_0x58de8])&&Object['keys'](_0x5cb134[_0x58de8])['length']>0x0){_0x3ccb97=!0x0;break;}}_0x3ccb97||(_0x3ccb97=_0x37697c['some'](_0x39e685=>!this['editor']['model']['document']['getRoot'](_0x39e685))),_0x3ccb97&&_0x1d3a3a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4590d0,'editorRootsAttributes':_0x5cb134,'revisionData':_0x14f388,'revisionRootsAttributes':_0x5be56f}),this['editor']['config']['set']('initialData',_0x14f388),this['editor']['config']['set']('rootsAttributes',_0x5be56f);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x507681=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x507681['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xf5dc48){const _0x48e455=this['repository']['getRevisions']();_0x48e455['reverse']();let _0x62b66e=0x0;for(;_0x62b66e<_0x48e455['length'];){const _0x391684=_0x48e455[_0x62b66e];if(_0x391684===this['currentRevision']){_0x62b66e++;continue;}if(_0x391684['id']===this['_initialRevisionId'])break;const _0x4816f2=_0xf5dc48['toVersion']-_0x391684['toVersion']||_0xf5dc48['fromVersion']-_0x391684['fromVersion'];if(_0x4816f2>0x0)break;if(_0x4816f2<0x0)_0x62b66e++;else{if(!_0xf5dc48['creator']&&_0x391684['creator'])break;if(_0x391684['creator']||!_0xf5dc48['creator']){if(_0xf5dc48['createdAt']>_0x391684['createdAt'])break;_0x62b66e++;}else _0x62b66e++;}}return _0x62b66e;}['setRevisionData'](_0x5bf548){const _0x23d053=this['repository']['getRevision'](_0x5bf548['id']);if(_0x5bf548['createdAt']&&(_0x5bf548['createdAt']=new Date(_0x5bf548['createdAt'])),_0x5bf548['authorsIds']){const _0x2e57c5=this['editor']['plugins']['get']('Users');_0x5bf548['authors']=_0x5bf548['authorsIds']['map'](_0x49abff=>_0x2e57c5['getUser'](_0x49abff));}_0x23d053['_update'](_0x5bf548,!0x0);}['buildRevisionData']({revision:_0x3a86df=null,from:_0xa7d4bd=null,to:_0x47c92d=null}){_0xa7d4bd=null!==_0xa7d4bd?_0xa7d4bd:_0x3a86df['fromVersion'],_0x47c92d=null!==_0x47c92d?_0x47c92d:_0x3a86df['toVersion'];const _0x49f720=this['_revisionDataBuilder']['getData'](_0xa7d4bd,_0x47c92d),_0x3978fd={'diffData':_0x49f720['diffData'],'authorsIds':_0x49f720['authorsIds'],'fromVersion':_0xa7d4bd,'toVersion':_0x47c92d};if(!_0x3a86df||_0x47c92d!==_0x3a86df['toVersion']){const _0x525b14=_0x47c92d-0x1,_0x4c7e25=this['_source']['history']['getOperation'](_0x525b14);_0x3978fd['createdAt']=_0x4c7e25&&_0x4c7e25['createdAt']||new Date();}if(this['_loadedStateData']&&_0xa7d4bd===this['_loadedStateData']['fromVersion']){for(const _0x18ca8 of this['_loadedStateData']['authors'])_0x3978fd['authorsIds']['includes'](_0x18ca8['id'])||_0x3978fd['authorsIds']['push'](_0x18ca8['id']);}return _0x3978fd;}['_loadRevisionData'](_0xceaec6){if(!_0xceaec6||_0xceaec6['diffData'])return Promise['resolve']();{const _0x412b8f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x412b8f,'revisionId':_0xceaec6['id']})['then'](_0x36d28d=>{_0xceaec6['diffData']=_0x36d28d['diffData'];});}}['_bufferUpdate'](_0x423896,_0x48eeb7,_0x22edb4){if(this['_bufferedUpdates']['has'](_0x423896)){const _0x44c847=this['_bufferedUpdates']['get'](_0x423896);_0x48eeb7=_0x22edb4?{..._0x44c847,..._0x48eeb7}:{..._0x48eeb7,..._0x44c847};}this['_bufferedUpdates']['set'](_0x423896,_0x48eeb7);}['_getFromVersion'](_0x12d2f6){const _0x3176d7=this['repository']['getRevisions']();_0x3176d7['reverse'](),_0x3176d7['shift']();const _0x3ae464=_0x3176d7['find'](_0x1fc090=>_0x1fc090['toVersion']<=_0x12d2f6)['toVersion'];return _0x3ae464<this['_startingVersion']?this['_startingVersion']:_0x3ae464;}['_createInitialRevision'](_0x585642){const _0x15a17b=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x15a17b)this['_initialRevisionId']=_0x15a17b['id'];else{const _0x3180c4=!this['editor']['model']['document']['roots']['find'](_0x18149c=>this['editor']['model']['hasContent'](_0x18149c)),_0x16b23a=this['editor']['plugins']['get']('Users')['me']['id'],_0x3d07fa=m(this['editor']['locale'],_0x3180c4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x585642,'to':_0x585642,'id':this['_initialRevisionId'],'name':_0x3d07fa,'creatorId':_0x16b23a});}}['_createCurrentRevision'](_0x1999bf){const _0x1ec769=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1ec769),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1999bf,'to':_0x1999bf,'id':_0x1ec769,'name':'','creatorId':null}));}['_makeRevision']({name:_0x317a35,from:_0x473913,to:_0x31d3e6,creatorId:_0x350eed,id:_0x55f03c}){const _0x2f696c=this['buildRevisionData']({'from':_0x473913,'to':_0x31d3e6});_0x2f696c['name']=_0x317a35,_0x2f696c['creatorId']=_0x350eed,_0x2f696c['id']=_0x55f03c;const _0x384459=this['addRevisionData'](_0x2f696c);return this['adapter']&&this['_bufferUpdate'](_0x2f696c['id'],_0x2f696c,!0x0),_0x384459;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3960cc){return(_0x3960cc=_0x3960cc['filter'](_0xf6437=>!_0xf6437['name']||'revision-start'!==_0xf6437['name']&&'revision-end'!==_0xf6437['name']))['forEach'](_0xd1c7aa=>{'string'!=typeof _0xd1c7aa&&(_0xd1c7aa['children']=this['_removeRevisionMarkers'](_0xd1c7aa['children']),_0xd1c7aa['attributes']=_0xd1c7aa['attributes']['filter'](_0x54e87d=>!_0x54e87d[0x0]['startsWith']('data-revision-')));}),_0x3960cc;}}function C(_0x4c6ffd,_0x46acd0){const _0x584a1f=_0x46acd0['editing']['view']['document'];if('string'==typeof _0x4c6ffd)return new _0x439f23(_0x584a1f,_0x4c6ffd);{const _0x3d545d=_0x4c6ffd['children']['map'](_0x52eda8=>C(_0x52eda8,_0x46acd0));return new(P[_0x4c6ffd['type']]||_0x1b2671)(_0x584a1f,_0x4c6ffd['name'],_0x4c6ffd['attributes'],_0x3d545d);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x7adc9a){this['editor']=_0x7adc9a,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'](_0x2edd84){this['source']=_0x2edd84;const _0x14aa87=new Map(),_0xc25de8=new Map(),_0x7685a=this['editor']['model']['document']['roots']['map'](_0x5a3ef8=>_0x5a3ef8['rootName']);for(const _0x2b51a5 of _0x7685a){const _0x41a502=this['editor']['model']['document']['getRoot'](_0x2b51a5),_0x5da585=T(_0x41a502);_0x14aa87['set'](_0x2b51a5,_0x5da585),_0xc25de8['set'](_0x2b51a5,Object['fromEntries'](_0x41a502['getAttributes']()));}const _0x46d0b8=Array['from'](this['editor']['model']['markers'])['map'](_0x1b6d2e=>[_0x1b6d2e['name'],_0x1b6d2e['getRange']()]),_0x4ea94f=this['source']['version'];this['_saveMetaData'](_0x4ea94f,_0x14aa87,_0x46d0b8,_0xc25de8),this['_startingRevisionId']=this['_revisionId'];const _0xd264ae=new Map(),_0x442e50=new Map();for(const _0xb9a0e6 of _0x7685a){const _0x55cf13=F(_0xb9a0e6);_0xd264ae['set'](_0xb9a0e6,_0x55cf13),_0x442e50['set'](_0xb9a0e6,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xd264ae,[],_0x442e50);}['getData'](_0xcb200b,_0x45785b){if(this['_lastFrom']===_0xcb200b&&this['_lastTo']<=_0x45785b)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x45785b,!0x0);else{if(!this['_savedMetaData']['has'](_0xcb200b)){const _0x292e60=this['_getPreviousFrom'](_0xcb200b);this['_calculateMetaData'](_0x292e60,_0xcb200b,!0x1);}this['_calculateMetaData'](_0xcb200b,_0x45785b,!0x0);}return this['_lastFrom']=_0xcb200b,this['_lastTo']=_0x45785b,this['_getState']();}['loadState'](_0x14db3f){this['_reset'](),this['_lastFrom']=_0x14db3f['fromVersion'],this['_lastTo']=_0x14db3f['toVersion'];for(const _0xd0b63d in _0x14db3f['diffData']){const _0x13ae7c=_0x14db3f['diffData'][_0xd0b63d]['attachChange'],_0x124860=_0x6066b7(_0x14db3f['diffData'][_0xd0b63d]['attributesBefore'])||{},_0x38d3e5=this['_makeModelFromViewString'](_0x14db3f['diffData'][_0xd0b63d]['deletions']);_0x38d3e5['rootName']=_0xd0b63d,_0x38d3e5['_isAttached']=!_0x13ae7c||!_0x13ae7c['isAttached'],_0x38d3e5['isAttached']=()=>_0x38d3e5['_isAttached'],this['_baseRoots']['set'](_0xd0b63d,_0x38d3e5),this['_baseRootsAttributes']['set'](_0xd0b63d,_0x124860),_0x13ae7c&&this['_touchedRoots']['set'](_0xd0b63d,_0x13ae7c);const _0x120531=this['_makeIdsRoot'](_0x38d3e5);this['_baseIdsRoots']['set'](_0xd0b63d,_0x120531);for(const [_0x41b49a,_0xe75f31]of _0x38d3e5['markers']){if(!_0x41b49a['startsWith']('revision:'))continue;const _0x29b76a=_0x41b49a['split'](':')[0x2];for(const _0x5220f1 of _0xe75f31['getWalker']({'singleCharacters':!0x0})){const _0x4535ba=this['_getVidAttributeName'](_0x5220f1),_0x43d5e6='elementEnd'==_0x5220f1['type']?_0x5220f1['previousPosition']['path']['slice'](0x0,-0x1):_0x5220f1['previousPosition']['path'],_0x2e118a=_0x120531['getNodeByPath'](_0x43d5e6)['getAttribute'](_0x4535ba);this['_touched']['set'](_0x2e118a,{'userId':_0x29b76a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x33551=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1a7786=>!this['_touched']['has'](_0x1a7786));let _0x44ffed=0x0;const _0x474478=new Map();for(const _0x241c3e in _0x14db3f['diffData']){const _0x3237ac=_0x14db3f['diffData'][_0x241c3e]['attachChange'],_0x1b4011=_0x6066b7(_0x14db3f['diffData'][_0x241c3e]['attributesAfter'])||{},_0x35b004=this['_makeModelFromViewString'](_0x14db3f['diffData'][_0x241c3e]['insertions']);_0x35b004['rootName']=_0x241c3e,_0x35b004['_isAttached']=!_0x3237ac||_0x3237ac['isAttached'],_0x35b004['isAttached']=()=>_0x35b004['_isAttached'],this['_diffRoots']['set'](_0x241c3e,_0x35b004),this['_diffRootsAttributes']['set'](_0x241c3e,_0x1b4011);const _0x35248b=this['_makeIdsRoot'](_0x35b004,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x241c3e,_0x35248b),_0x474478['set'](_0x241c3e,_0x35b004['isAttached']()?_0x1b4011:{});for(const [_0x48ab14,_0x1cad8c]of _0x35b004['markers']){if(!_0x48ab14['startsWith']('revision:'))continue;const _0x3026d6=_0x48ab14['split'](':')[0x2];for(const _0x5f5276 of _0x1cad8c['getWalker']({'singleCharacters':!0x0})){const _0x45ad51=this['_getVidAttributeName'](_0x5f5276),_0x62cb5f=this['_revisionId']++,_0x1c4314='elementEnd'==_0x5f5276['type']?_0x5f5276['previousPosition']['path']['slice'](0x0,-0x1):_0x5f5276['previousPosition']['path'];_0x35248b['getNodeByPath'](_0x1c4314)['_setAttribute'](_0x45ad51,_0x62cb5f),this['_touched']['set'](_0x62cb5f,{'userId':_0x3026d6});}}for(const _0x1b95f7 of this['editor']['model']['createRangeIn'](_0x35b004)['getWalker']({'singleCharacters':!0x0})){const _0x2b40fe=this['_getVidAttributeName'](_0x1b95f7),_0xaa7a1='elementEnd'==_0x1b95f7['type']?_0x1b95f7['previousPosition']['path']['slice'](0x0,-0x1):_0x1b95f7['previousPosition']['path'],_0x1788cd=_0x35248b['getNodeByPath'](_0xaa7a1);_0x1788cd['getAttribute'](_0x2b40fe)>0x0||_0x1788cd['_setAttribute'](_0x2b40fe,_0x33551[_0x44ffed++]);}for(const [_0x248f9e,_0x4ce743]of _0x35b004['markers'])_0x248f9e['startsWith']('revision:')||this['_markers']['set'](_0x248f9e,_0x4ce743);}const _0x5d39ba=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5d39ba),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5d39ba,0x1));const _0xef90bc=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0xef90bc),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xef90bc,0x1));const _0x2e59e2=Array['from'](this['_diffRoots'])['map'](([_0x517fcd,_0x42273e])=>[_0x517fcd,T(_0x42273e)]);this['_saveMetaData'](this['_lastTo'],_0x2e59e2,this['_markers'],_0x474478);}['_makeModelFromViewString'](_0x10dd74){const _0x2d38d9=JSON['parse'](_0x10dd74),_0x3d0ad2=this['editor']['editing']['view']['document'],_0x213d8c=new _0x4a0ecb(_0x3d0ad2,_0x2d38d9['map'](_0x98fbdc=>C(_0x98fbdc,this['editor'])));return this['editor']['data']['toModel'](_0x213d8c);}['_saveMetaData'](_0x4b9322,_0x1178bb,_0xed7b9b,_0x179c43){const _0x195ca8=new Map(_0x1178bb),_0x334830=new Map(_0x6066b7(_0x179c43)),_0x13ef7c=new Map();for(const [_0x16e263,_0x3aa1c0]of _0xed7b9b)_0x13ef7c['set'](_0x16e263,{'start':_0x3aa1c0['start']['clone'](),'end':_0x3aa1c0['end']['clone'](),'rootName':_0x3aa1c0['root']['rootName']});this['_savedMetaData']['set'](_0x4b9322,{'roots':_0x195ca8,'markers':_0x13ef7c,'rootsAttributes':_0x334830});}['_removeMetaData'](_0x3ffbad){this['_savedMetaData']['delete'](_0x3ffbad);}['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'](_0x53390d,_0xab6f11=null){let _0x15aacd=null;_0x53390d['is']('documentFragment')||(_0x15aacd=new ft(_0x53390d['name'],{'vid_start':null===_0xab6f11?this['_revisionId']++:_0xab6f11++}));const _0x344cb2=[];for(const _0x36a9c0 of _0x53390d['getChildren']())if(_0x36a9c0['is']('element')){_0x344cb2['push'](this['_makeIdsRoot'](_0x36a9c0,_0xab6f11));const _0x4b6f8a=_0x344cb2[_0x344cb2['length']-0x1];null!==_0xab6f11&&(_0xab6f11=_0x4b6f8a['is']('element','$text')?_0x4b6f8a['getAttribute']('vid')+0x1:_0x4b6f8a['getAttribute']('vid_end')+0x1);}else{for(let _0x3c55ac=0x0;_0x3c55ac<_0x36a9c0['offsetSize'];_0x3c55ac++)_0x344cb2['push'](new ft('$text',{'vid':null===_0xab6f11?this['_revisionId']++:_0xab6f11++}));}if(_0x53390d['is']('documentFragment')){const _0x296723=F(_0x53390d['rootName']);return _0x296723['_insertChild'](0x0,_0x344cb2),_0x296723;}return _0x15aacd['_setAttribute']('vid_end',null===_0xab6f11?this['_revisionId']++:_0xab6f11++),_0x15aacd['_insertChild'](0x0,_0x344cb2),_0x15aacd;}['_calculateMetaData'](_0x3376d4,_0x50572a,_0x2fcf66){this['_reset']();const {roots:_0x19a99c,markers:_0x121947,rootsAttributes:_0x11d4f7}=this['_savedMetaData']['get'](_0x3376d4);this['_baseRoots']=new Map(_0x19a99c),this['_baseRootsAttributes']=new Map(_0x6066b7(_0x11d4f7));for(const [_0x2f4774,_0x269f34]of this['_baseRoots'])if('$graveyard'!==_0x2f4774&&(this['_diffRoots']['set'](_0x2f4774,T(_0x269f34)),this['_diffRootsAttributes']=new Map(_0x6066b7(_0x11d4f7)),_0x2fcf66)){const _0x5d5f66=this['_revisionId'];this['_idsRoots']['set'](_0x2f4774,this['_makeIdsRoot'](_0x269f34)),this['_baseIdsRoots']['set'](_0x2f4774,this['_makeIdsRoot'](_0x269f34,_0x5d5f66));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2fcf66&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x785b6f,_0x1a41e6]of _0x121947){const _0x220a60=this['_baseRoots']['get'](_0x1a41e6['rootName']),_0x139233=this['_diffRoots']['get'](_0x1a41e6['rootName']),_0x417845=new vt(this['_fixPosition'](_0x1a41e6['start'],_0x220a60),this['_fixPosition'](_0x1a41e6['end'],_0x220a60)),_0x327fe6=this['_fixRange'](_0x417845,_0x139233);_0x220a60['markers']['set'](_0x785b6f,_0x417845),this['_markers']['set'](_0x785b6f,_0x327fe6);}this['_applyOperations'](_0x3376d4,_0x50572a,_0x2fcf66);}['_applyOperations'](_0x3d1733,_0x197240,_0x459227){for(const _0xe3b0bf of this['source']['getOperations'](_0x3d1733,_0x197240))this['_handleOperation'](_0xe3b0bf,_0x459227);for(const _0xd801a5 of this['_diffRoots']['values']())_0xd801a5['markers']['clear']();for(const [_0x46aa7d,_0x3f248e]of this['_markers']){this['_diffRoots']['get'](_0x3f248e['root']['rootName'])['markers']['set'](_0x46aa7d,_0x3f248e['clone']());}const _0x3090e7=new Map(),_0x335bb9=new Map();for(const [_0x11bf5f,_0x2894d1]of this['_diffRoots'])_0x3090e7['set'](_0x11bf5f,T(_0x2894d1)),_0x335bb9['set'](_0x11bf5f,this['_diffRootsAttributes']['get'](_0x11bf5f));this['_saveMetaData'](_0x197240,_0x3090e7,this['_markers'],_0x335bb9);}['_getPreviousFrom'](_0x52b4d4){const _0x4692af=Array['from'](this['_savedMetaData']['keys']());_0x4692af['sort']((_0x437670,_0x1ba84f)=>_0x437670-_0x1ba84f),_0x4692af['reverse']();for(const _0x5031ea of _0x4692af)if(_0x5031ea<_0x52b4d4)return _0x5031ea;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x339554,_0x3c24eb){const _0x5513e9=Array['from'](_0x3c24eb['markers'])['map'](([_0x4320d3,_0x3d1d69])=>[_0x4320d3,this['_fixRange'](_0x3d1d69,_0x339554)]);_0x339554['markers']=new Map(_0x5513e9);}['_transformMarkers'](_0x54b8d1){for(const _0x15d2f4 of this['_markers']['values']()){const _0x5354c0=_0x15d2f4['getTransformedByOperation'](_0x54b8d1),_0x489b3e=vt['_createFromRanges'](_0x5354c0);_0x15d2f4['start']=_0x489b3e['start'],_0x15d2f4['end']=_0x489b3e['end'];}}['_handleOperation'](_0xc04826,_0xff2239){if('addRoot'!=_0xc04826['type']&&'detachRoot'!=_0xc04826['type']){if('insert'==_0xc04826['type']){const _0x5a76ce=_0xc04826['position']['root']['rootName'];this['_diffRoots']['has'](_0x5a76ce)||(this['_diffRoots']['set'](_0x5a76ce,F(_0x5a76ce,!0x0)),this['_diffRootsAttributes']['set'](_0x5a76ce,{}),_0xff2239&&this['_idsRoots']['set'](_0x5a76ce,F(_0x5a76ce,!0x0)));}else{if('addRootAttribute'==_0xc04826['type']||'removeRootAttribute'==_0xc04826['type']||'changeRootAttribute'==_0xc04826['type'])return void this['_handleRootAttributeOperation'](_0xc04826);'marker'==_0xc04826['type']&&this['_handleMarkerOperation'](_0xc04826);}if('marker'!==_0xc04826['type']){const _0x38c7b6=this['_cloneOperation'](_0xc04826,this['_diffRoots']);_0x38c7b6['_execute'](),this['_transformMarkers'](_0x38c7b6);}if(_0xff2239)switch(_0xc04826['type']){case'insert':this['_handleInsertOperation'](_0xc04826);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xc04826);break;case'merge':this['_handleMergeOperation'](_0xc04826);break;case'split':this['_handleSplitOperation'](_0xc04826);}}else this['_handleRootOperation'](_0xc04826,_0xff2239);}['_cloneOperation'](_0x317ff6,_0x25fa9c){const _0x3c283b=_0x317ff6['clone']();return _0x3c283b['_authorId']=_0x317ff6['_authorId'],this['_fixOperation'](_0x3c283b,_0x25fa9c),_0x3c283b;}['_getBaseVids'](_0x443967){return _0x443967['map'](_0x96a2f8=>{const _0x694b90=this['_getVidAttributeName'](_0x96a2f8);return Number(_0x96a2f8['item']['getAttribute'](_0x694b90));});}['_generateTape'](_0x56a9a9,_0x224180){if(_0x56a9a9['is']('element','$text'))_0x224180['push']({'item':_0x56a9a9,'type':'text'});else{_0x56a9a9['is']('element')&&_0x224180['push']({'item':_0x56a9a9,'type':'elementStart'});for(const _0x1c4467 of _0x56a9a9['getChildren']())this['_generateTape'](_0x1c4467,_0x224180);_0x56a9a9['is']('element')&&_0x224180['push']({'item':_0x56a9a9,'type':'elementEnd'});}return _0x224180;}['_getState'](){const _0x1285f1=new Map(this['_touched']),_0x4979a4=new Map(_0x1285f1),_0x5324a6=new Map(),_0x408b09={'insertions':{},'deletions':{}},_0x2edac1={'insertions':{},'deletions':{}},_0x2a3071=new Map(),_0x39c3ac=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x39c3ac['delete']('$graveyard');for(const _0x585465 of _0x39c3ac){const _0x3505e4=this['_diffRoots']['get'](_0x585465)||F(_0x585465,!0x1),_0x541592=this['_baseRoots']['get'](_0x585465)||F(_0x585465,!0x1);_0x3505e4['isAttached']()||_0x541592['isAttached']()?(_0x408b09['insertions'][_0x585465]=T(_0x3505e4),_0x408b09['deletions'][_0x585465]=T(_0x541592),this['_copyMarkers'](_0x408b09['deletions'][_0x585465],_0x541592),this['_copyMarkers'](_0x408b09['insertions'][_0x585465],_0x3505e4),_0x2edac1['insertions'][_0x585465]=this['_generateTape'](this['_idsRoots']['get'](_0x585465),[]),_0x2edac1['deletions'][_0x585465]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x585465)||F(_0x585465,!0x1),[])):_0x39c3ac['delete'](_0x585465);}for(const _0x2447a0 of _0x39c3ac){const _0x232b5d=_0x2edac1['insertions'][_0x2447a0];for(const _0x1ec50f of _0x232b5d){const _0x5c1a6c=this['_getVidAttributeName'](_0x1ec50f),_0x5b6653=_0x1ec50f['item']['getAttribute'](_0x5c1a6c);_0x4979a4['delete'](_0x5b6653),_0x5b6653>=this['_startingRevisionId']&&_0x5324a6['set'](_0x5b6653,_0x1285f1['get'](_0x5b6653));}}for(const _0x191f04 of _0x39c3ac){const _0x9e29d3=_0x2edac1['insertions'][_0x191f04],_0x310ad5=this['_getBaseVids'](_0x2edac1['deletions'][_0x191f04]);let _0x52c70a=0x0;for(const _0x2738a3 of _0x9e29d3){const _0x570109=this['_getVidAttributeName'](_0x2738a3),_0x4a4bce=_0x2738a3['item']['getAttribute'](_0x570109);if(!_0x5324a6['has'](_0x4a4bce)&&!_0x2a3071['has'](_0x4a4bce)){if(_0x4979a4['has'](_0x4a4bce))_0x52c70a++;else{if(_0x4a4bce!=_0x310ad5[_0x52c70a]){const _0x34c7ad=_0x1285f1['get'](_0x4a4bce)||_0x1285f1['get'](_0x310ad5[_0x52c70a]);for(;_0x4a4bce!=_0x310ad5[_0x52c70a];)_0x4979a4['has'](_0x310ad5[_0x52c70a])||(_0x2a3071['set'](_0x310ad5[_0x52c70a],_0x34c7ad),_0x1285f1['set'](_0x310ad5[_0x52c70a],_0x34c7ad)),_0x52c70a++;}_0x52c70a++;}}}}for(const _0x1bcfb3 of _0x39c3ac){const _0x1e0641=_0x2edac1['insertions'][_0x1bcfb3];for(const _0x8024f0 of _0x1e0641){const _0x2f315b=this['_getVidAttributeName'](_0x8024f0),_0x97da5=_0x8024f0['item']['getAttribute'](_0x2f315b);if(_0x2a3071['has'](_0x97da5)){const _0x1f09d2=_0x2a3071['get'](_0x97da5);_0x4979a4['has'](_0x97da5)||_0x4979a4['set'](_0x97da5,{..._0x1f09d2}),_0x5324a6['set'](_0x97da5,{..._0x1f09d2});}}}for(const _0x6248cd of _0x4979a4['keys']())_0x6248cd>=this['_startingRevisionId']&&_0x4979a4['delete'](_0x6248cd);const _0x5eb0ca=new Map();for(const _0x4ca704 of _0x39c3ac){let _0x3c3bbb=_0x2edac1['insertions'][_0x4ca704];for(const _0x542fa5 of _0x3c3bbb)if(_0x542fa5['item']['is']('element','tableCell')){const _0x2f553f=this['_getVidAttributeName'](_0x542fa5),_0x5bc83e=_0x542fa5['item']['getAttribute'](_0x2f553f);if(_0x5324a6['has'](_0x5bc83e)){const _0x38e602=_0x542fa5['item']['parent']['parent']['getAttribute']('vid_start'),_0x4f28d0=_0x5eb0ca['get'](_0x38e602)||new Set();_0x4f28d0['add'](_0x5324a6['get'](_0x5bc83e)['userId']),_0x5eb0ca['set'](_0x38e602,_0x4f28d0);}}_0x3c3bbb=_0x2edac1['deletions'][_0x4ca704];for(const _0x539fde of _0x3c3bbb)if(_0x539fde['item']['is']('element','tableCell')){const _0xe0533a=this['_getVidAttributeName'](_0x539fde),_0x311084=_0x539fde['item']['getAttribute'](_0xe0533a);if(_0x4979a4['has'](_0x311084)){const _0x4e62f7=_0x539fde['item']['parent']['parent']['getAttribute']('vid_start'),_0x6c6dc7=_0x5eb0ca['get'](_0x4e62f7)||new Set();_0x6c6dc7['add'](_0x4979a4['get'](_0x311084)['userId']),_0x5eb0ca['set'](_0x4e62f7,_0x6c6dc7);}}for(const _0x558c81 of _0x5eb0ca['keys']())(_0x5324a6['has'](_0x558c81)||_0x4979a4['has'](_0x558c81))&&_0x5eb0ca['delete'](_0x558c81);}for(const _0x341d22 of _0x39c3ac){const _0x5c4eac=_0x2edac1['insertions'][_0x341d22];let _0x55afe6=null,_0x15cfe7=null;for(const _0x1b1e18 of _0x5c4eac){const _0x52a738=this['_getVidAttributeName'](_0x1b1e18),_0x130244=_0x1b1e18['item']['getAttribute'](_0x52a738),_0x754afe=_0x5eb0ca['get'](_0x130244);_0x754afe&&'elementStart'==_0x1b1e18['type']&&(_0x55afe6=Array['from'](_0x754afe)[0x0],_0x15cfe7=_0x1b1e18['item']['getAttribute']('vid_end')),_0x55afe6&&(_0x4979a4['set'](_0x130244,{'userId':_0x55afe6}),_0x5324a6['set'](_0x130244,{'userId':_0x55afe6})),_0x130244==_0x15cfe7&&(_0x55afe6=null,_0x15cfe7=null);}}const _0x245904={},_0x16ef0c=new Set();for(const _0x2bec4d of _0x39c3ac){const _0x94eb4b=_0x408b09['deletions'][_0x2bec4d],_0x5874db=_0x408b09['insertions'][_0x2bec4d];for(const {userId:_0x4edae2}of this['_touchedMarkers']['values']())null!==_0x4edae2&&_0x16ef0c['add'](_0x4edae2);for(const {userId:_0x4366da}of this['_touchedRoots']['values']())null!==_0x4366da&&_0x16ef0c['add'](_0x4366da);this['_markChanges'](_0x5874db,_0x2edac1['insertions'][_0x2bec4d],_0x5324a6,'insertion',_0x16ef0c),this['_markChanges'](_0x94eb4b,_0x2edac1['deletions'][_0x2bec4d],_0x4979a4,'deletion',_0x16ef0c),_0x245904[_0x2bec4d]={'insertions':this['_prepareViewToSave'](_0x5874db),'deletions':this['_prepareViewToSave'](_0x94eb4b),'attachChange':this['_touchedRoots']['get'](_0x2bec4d)||null,'attributesBefore':_0x6066b7(this['_baseRootsAttributes']['get'](_0x2bec4d))||{},'attributesAfter':_0x6066b7(this['_diffRootsAttributes']['get'](_0x2bec4d))};}return{'diffData':_0x245904,'authorsIds':Array['from'](_0x16ef0c)};}['_processRootBeforeSave'](_0x2d049a){for(const [,_0x19020f]of _0x2d049a['markers']){const _0x6001b=_0x19020f['start']['getAncestors']()['filter'](_0x2a6d81=>'tableCell'==_0x2a6d81['name']);for(const _0x32ecb3 of _0x6001b)0x1==_0x32ecb3['childCount']&&_0x32ecb3['getChild'](0x0)['is']('element','paragraph')&&_0x32ecb3['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x598d39){this['_processRootBeforeSave'](_0x598d39);const _0x23d352=this['editor']['data']['toView'](_0x598d39,{}),_0x59e005=Array['from'](_0x23d352['getChildren']())['map'](_0x4cafb8=>this['_getViewJson'](_0x4cafb8));return JSON['stringify'](_0x59e005);}['_getViewJson'](_0x58b1c9){if(_0x58b1c9['is']('$text'))return _0x58b1c9['data'];{const _0x260edd=_0x58b1c9;return{'type':Object['keys'](P)['find'](_0x30fa38=>_0x58b1c9 instanceof P[_0x30fa38]),'name':_0x260edd['name'],'attributes':Array['from'](_0x260edd['getAttributes']()),'children':Array['from'](_0x260edd['getChildren']())['map'](_0x31b71b=>this['_getViewJson'](_0x31b71b))};}}['_markChanges'](_0x2703a,_0x32326f,_0x3d5fcf,_0xd4125,_0x2cc630){let _0x36c0fa=null,_0x5a351f=null,_0x323218=0x0;const _0x4430eb=this['editor']['model'];for(let _0x58450f=0x0;_0x58450f<_0x32326f['length'];_0x58450f++){const _0x531cb5=this['_getVidAttributeName'](_0x32326f[_0x58450f]),_0x3980f2=_0x32326f[_0x58450f]['item']['getAttribute'](_0x531cb5),_0x38f527=_0x3d5fcf['get'](_0x3980f2),_0xf948d8=_0x58450f==_0x32326f['length']-0x1;(!_0x36c0fa&&_0x38f527&&(_0x36c0fa=_0x38f527,_0x5a351f=_0x32326f[_0x58450f]),_0x36c0fa&&(!_0x38f527||_0x38f527['userId']!=_0x36c0fa['userId']))&&(_0x5e8e99(_0x38f527,B(_0x5a351f,_0x2703a,_0x4430eb),B(_0x32326f[_0x58450f],_0x2703a,_0x4430eb)),_0x36c0fa=_0x38f527||null,_0x5a351f=_0x38f527?_0x32326f[_0x58450f]:null),_0x36c0fa&&_0xf948d8&&_0x5e8e99(_0x38f527,B(_0x5a351f,_0x2703a,_0x4430eb),J(_0x32326f[_0x58450f],_0x2703a,_0x4430eb));}function _0x5e8e99(_0x390e36,_0x5c8630,_0xbf4121){const _0x54d1e2=_0x36c0fa['userId'],_0x326105='revision:'+_0xd4125+':'+_0x54d1e2+':'+_0x323218++,_0x5e16a4=_0x4430eb['createRange'](_0x5c8630,_0xbf4121);_0x2703a['markers']['set'](_0x326105,_0x5e16a4),null!==_0x54d1e2&&_0x2cc630['add'](_0x54d1e2);}}['_getVidAttributeName'](_0x3abf67){switch(_0x3abf67['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5c6004,_0x1577bc){_0x5c6004['baseVersion']=null;for(const _0x8ff7d6 in _0x5c6004){const _0x3bef05=_0x5c6004[_0x8ff7d6];if(_0x3bef05 instanceof gt){const _0xdbf37=_0x1577bc['get'](_0x3bef05['root']['rootName']);_0x5c6004[_0x8ff7d6]=this['_fixPosition'](_0x3bef05,_0xdbf37);}if(_0x3bef05 instanceof vt){const _0x33cfe8=_0x1577bc['get'](_0x3bef05['root']['rootName']);_0x5c6004[_0x8ff7d6]=this['_fixRange'](_0x3bef05,_0x33cfe8);}'root'===_0x8ff7d6&&(_0x5c6004['root']=_0x1577bc['get'](_0x5c6004['root']['rootName']));}}['_fixRange'](_0x429fd2,_0x241c29){return this['editor']['model']['createRange'](this['_fixPosition'](_0x429fd2['start'],_0x241c29),this['_fixPosition'](_0x429fd2['end'],_0x241c29));}['_fixPosition'](_0x4954ee,_0x1a3c1d){return this['editor']['model']['createPositionFromPath'](_0x1a3c1d,_0x4954ee['path'],_0x4954ee['stickiness']);}['_handleInsertOperation'](_0x4025e5){const _0x22527f=this['_idsRoots']['get'](_0x4025e5['position']['root']['rootName']),_0xa9e8e3=this['_fixPosition'](_0x4025e5['position'],_0x22527f),_0x445c3f=null===_0x4025e5['_authorId']?null:_0x4025e5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x20f467=_0xa9e8e3['parent'],_0x4a1ab3=this['_revisionId'],_0x1ef4dc=[];for(const _0x5110aa of _0x4025e5['nodes'])if(_0x5110aa['is']('element'))_0x1ef4dc['push'](this['_makeIdsRoot'](_0x5110aa));else{for(let _0xfe8d72=0x0;_0xfe8d72<_0x5110aa['offsetSize'];_0xfe8d72++)_0x1ef4dc['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x48f262=this['_revisionId'];for(let _0x10dab2=_0x4a1ab3;_0x10dab2<_0x48f262;_0x10dab2++)this['_touched']['set'](_0x10dab2,{'userId':_0x445c3f});_0x20f467['_insertChild'](_0xa9e8e3['offset'],_0x1ef4dc);}['_handleMoveOperation'](_0x3d686f){(_0x3d686f=this['_cloneOperation'](_0x3d686f,this['_idsRoots']))['_execute']();const _0xfe1f28=null===_0x3d686f['_authorId']?null:_0x3d686f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e4837=_0x3d686f['getMovedRangeStart'](),_0x4a0bb4=_0x1e4837['parent'],_0x5bb3d9=_0x1e4837['offset'];!function _0x18eb43(_0x3e9218,_0x300c05,_0x2da63f,_0x58954e){for(let _0x4fbecb=_0x2da63f;_0x4fbecb<_0x58954e;_0x4fbecb++){const _0x5b0279=_0x300c05['getChild'](_0x4fbecb);_0x5b0279['is']('element','$text')?_0x3e9218['set'](_0x5b0279['getAttribute']('vid'),{'userId':_0xfe1f28}):(_0x3e9218['set'](_0x5b0279['getAttribute']('vid_start'),{'userId':_0xfe1f28}),_0x18eb43(_0x3e9218,_0x5b0279,0x0,_0x5b0279['childCount']),_0x3e9218['set'](_0x5b0279['getAttribute']('vid_end'),{'userId':_0xfe1f28}));}}(this['_touched'],_0x4a0bb4,_0x5bb3d9,_0x5bb3d9+_0x3d686f['howMany']);}['_handleMergeOperation'](_0x44d382){const _0x3ccf70=null===(_0x44d382=this['_cloneOperation'](_0x44d382,this['_idsRoots']))['_authorId']?null:_0x44d382['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52c0b5=_0x44d382['targetPosition']['parent'],_0x4af37f=_0x44d382['sourcePosition']['parent'],_0x56f17d=_0x52c0b5['getAttribute']('vid_end'),_0x588a55=_0x4af37f['getAttribute']('vid_start');_0x52c0b5['_setAttribute']('vid_end',_0x4af37f['getAttribute']('vid_end')),_0x4af37f['_setAttribute']('vid_end',_0x56f17d),this['_touched']['set'](_0x588a55,{'userId':_0x3ccf70}),this['_touched']['set'](_0x56f17d,{'userId':_0x3ccf70}),_0x44d382['_execute']();}['_handleSplitOperation'](_0x3a74c5){const _0x37fa2e=null===(_0x3a74c5=this['_cloneOperation'](_0x3a74c5,this['_idsRoots']))['_authorId']?null:_0x3a74c5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c08e2=_0x3a74c5['graveyardPosition'],_0x4936a6=_0x3a74c5['splitPosition']['parent'];_0x3a74c5['_execute']();const _0x4503f2=_0x4936a6['getAttribute']('vid_end'),_0x1fc071=_0x3a74c5['insertionPosition']['nodeAfter'];if(_0x3c08e2){const _0x267596=_0x1fc071['getAttribute']('vid_end'),_0x59b3d5=_0x4936a6['getAttribute']('vid_end');_0x4936a6['_setAttribute']('vid_end',_0x267596),_0x1fc071['_setAttribute']('vid_end',_0x59b3d5),this['_touched']['set'](_0x4936a6['getAttribute']('vid_end'),{'userId':_0x37fa2e}),this['_touched']['set'](_0x1fc071['getAttribute']('vid_start'),{'userId':_0x37fa2e});}else{const _0x21fa41=this['_revisionId']++,_0x257c74=this['_revisionId']++;_0x4936a6['_setAttribute']('vid_end',_0x21fa41),_0x1fc071['_setAttribute']('vid_start',_0x257c74),_0x1fc071['_setAttribute']('vid_end',_0x4503f2),this['_touched']['set'](_0x21fa41,{'userId':_0x37fa2e}),this['_touched']['set'](_0x257c74,{'userId':_0x37fa2e});}}['_handleMarkerOperation'](_0x23d101){if(!_0x23d101['affectsData'])return;const _0xa06ba0=(_0x23d101=this['_cloneOperation'](_0x23d101,this['_diffRoots']))['oldRange']?_0x23d101['oldRange']['root']:null,_0xf6e777=_0x23d101['newRange']?_0x23d101['newRange']['root']:null;_0xa06ba0&&this['_markers']['delete'](_0x23d101['name']),_0xf6e777&&this['_markers']['set'](_0x23d101['name'],_0x23d101['newRange']['clone']());const _0x4a1756=null===_0x23d101['_authorId']?null:_0x23d101['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x35f689=_0x23d101['name'];if(!this['_touchedMarkers']['has'](_0x35f689))return void this['_touchedMarkers']['set'](_0x35f689,{'range':_0x23d101['oldRange'],'userId':_0x4a1756});const _0x238bf1=this['_touchedMarkers']['get'](_0x35f689),_0x1581bf=_0x238bf1['range'],_0x4098d1=_0x23d101['newRange'];null==_0x1581bf&&null==_0x4098d1||_0x1581bf&&_0x4098d1&&_0x1581bf['isEqual'](_0x4098d1)?this['_touchedMarkers']['delete'](_0x23d101['name']):_0x238bf1['userId']=_0x4a1756;}['_handleRootOperation'](_0x2ee0b1,_0x30ce6b){this['_diffRoots']['has'](_0x2ee0b1['rootName'])?this['_diffRoots']['get'](_0x2ee0b1['rootName'])['_isAttached']=_0x2ee0b1['isAdd']:(this['_diffRoots']['set'](_0x2ee0b1['rootName'],F(_0x2ee0b1['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2ee0b1['rootName'],{}),_0x30ce6b&&this['_idsRoots']['set'](_0x2ee0b1['rootName'],F(_0x2ee0b1['rootName'],!0x0)));const _0x38b87c=null===_0x2ee0b1['_authorId']?null:_0x2ee0b1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4db50d=this['_touchedRoots']['get'](_0x2ee0b1['rootName']);_0x4db50d&&_0x4db50d['userId']===_0x38b87c?this['_touchedRoots']['delete'](_0x2ee0b1['rootName']):this['_touchedRoots']['set'](_0x2ee0b1['rootName'],{'userId':_0x38b87c,'isAttached':_0x2ee0b1['isAdd']});}['_handleRootAttributeOperation'](_0x1a01d5){const _0x34ae19=this['_diffRootsAttributes']['get'](_0x1a01d5['root']['rootName']);null===_0x1a01d5['newValue']?delete _0x34ae19[_0x1a01d5['key']]:_0x34ae19[_0x1a01d5['key']]=_0x1a01d5['newValue'];}}function T(_0x5e5ee6){const _0x4d0f1d=F(_0x5e5ee6['rootName'],_0x5e5ee6['isAttached']());for(const _0x2b35fe of _0x5e5ee6['getChildren']()){const _0x526aa2=_0x2b35fe['_clone'](!0x0);_0x4d0f1d['_appendChild'](_0x526aa2);}return _0x4d0f1d;}function F(_0x5a58b5,_0x26700b=!0x0){const _0x536fb2=new mt();return _0x536fb2['rootName']=_0x5a58b5,_0x536fb2['_isAttached']=_0x26700b,_0x536fb2['isAttached']=()=>_0x536fb2['_isAttached'],_0x536fb2;}function B(_0x155bd0,_0x179ac1,_0x285bd5){const _0x2d5d26='elementEnd'==_0x155bd0['type']?_0x285bd5['createPositionAt'](_0x155bd0['item'],'end'):_0x285bd5['createPositionBefore'](_0x155bd0['item']);return _0x285bd5['createPositionFromPath'](_0x179ac1,_0x2d5d26['path'],_0x2d5d26['stickiness']);}function J(_0x1faaa1,_0x177032,_0x488ddf){const _0x4e4ecf='elementStart'==_0x1faaa1['type']?_0x488ddf['createPositionAt'](_0x1faaa1['item'],0x0):_0x488ddf['createPositionAfter'](_0x1faaa1['item']);return _0x488ddf['createPositionFromPath'](_0x177032,_0x4e4ecf['path'],_0x4e4ecf['stickiness']);}class hs extends _0x3bf5ec{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2bf5cc,_0x382c7b){super(_0x2bf5cc),this['focusTracker']=new _0x3a4ca6(),this['keystrokes']=new _0x42e5c7(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x382c7b),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'](),_0x3ca2bc({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1a0ed7=_0x4e7d7d=>_0x4e7d7d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1a0ed7),this['keystrokes']['set']('arrowleft',_0x1a0ed7),this['keystrokes']['set']('arrowup',_0x1a0ed7),this['keystrokes']['set']('arrowdown',_0x1a0ed7);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4c1293){this['revisionNameInputView']['fieldView']['element']['value']=_0x4c1293['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x37a9c2){const _0x1e178d=new nt(this['locale'],_0x3aea96),_0x2fd37e=_0x1e178d['fieldView'];_0x2fd37e['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x388dc8=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x37a9c2&&(_0x388dc8+='\x20('+m(this['locale'],'optional')+')'),(_0x1e178d['label']=_0x388dc8,_0x2fd37e['on']('input',()=>{this['revisionNameInputValue']=_0x2fd37e['element']['value']['trim']();}),_0x1e178d);}}class u extends _0x5dff76{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x1500c8=this['editor'],_0x564954=_0x1500c8['plugins']['get']('RevisionTracker');_0x1500c8['ui']['componentFactory']['add']('revisionHistory',_0x46874f=>{const _0x473678=_0x43bd20(_0x46874f),_0xdaf66f=_0x473678['panelView']['children'],_0xad818f=new _0x3f465e(_0x46874f),_0x3eab3c=new _0x2f3332(_0x46874f),_0x2f2754=new _0x2d0f60(_0x46874f),_0x3d67fa=new _0x2f3332(_0x46874f),_0x29eb4c=new _0x2d0f60(_0x46874f);return _0x473678['bind']('isEnabled')['to'](_0x564954,'isReady',_0x564954,'isEnabled',_0x1500c8,'isReadOnly',(_0x5b7c38,_0x1c4729,_0x31befa)=>_0x5b7c38&&_0x1c4729&&!_0x31befa),_0x473678['buttonView']['set']({'icon':_0x5231c5['history'],'label':m(_0x46874f,'Revision\x20history'),'tooltip':!0x0}),_0x2f2754['set']({'label':m(_0x46874f,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2f2754['bind']('isEnabled')['to'](_0x564954,'isReady',_0x564954,'isEnabled',_0x1500c8,'isReadOnly',(_0x4d4cc3,_0x4a2a34,_0x3886f3)=>_0x4d4cc3&&_0x4a2a34&&!_0x3886f3),_0x2f2754['on']('execute',()=>this['_showDialog']()),_0x29eb4c['set']({'label':m(_0x46874f,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x29eb4c['bind']('isEnabled')['to'](_0x564954,'isReady',_0x1500c8,'isReadOnly',(_0x6f9d73,_0x53fa34)=>_0x6f9d73&&!_0x53fa34),_0x29eb4c['on']('execute',()=>{_0x1500c8['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x473678['isOpen']=!0x1,_0x1500c8['editing']['view']['focus']();}),_0x3eab3c['children']['add'](_0x2f2754),_0x3d67fa['children']['add'](_0x29eb4c),_0xad818f['role']='menu',_0xad818f['items']['addMany']([_0x3eab3c,_0x3d67fa]),_0xdaf66f['add'](_0xad818f),_0x473678;}),_0x1500c8['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x42d229=this['editor'],_0x2aa58a=_0x42d229['locale'],_0x521adb=new _0xe00c34(_0x2aa58a),_0xb0c532=new _0x4ed7c8(_0x2aa58a);_0x521adb['buttonView']['set']({'icon':_0x5231c5['history'],'label':m(_0x2aa58a,'Revision\x20history')});const _0x4456d5=new _0x4e0248(_0x2aa58a,_0x521adb),_0x256d5f=new _0x3779a0(_0x2aa58a);_0x256d5f['set']({'label':m(_0x2aa58a,'Save\x20current\x20revision')}),_0x256d5f['delegate']('execute')['to'](_0x521adb),_0x256d5f['on']('execute',()=>{this['_showDialog']();}),_0x4456d5['children']['add'](_0x256d5f),_0xb0c532['items']['add'](_0x4456d5);const _0x16f6f6=new _0x4e0248(_0x2aa58a,_0x521adb),_0x41d0ca=new _0x3779a0(_0x2aa58a);return _0x41d0ca['set']({'label':m(_0x2aa58a,'Open\x20revision\x20history')}),_0x41d0ca['delegate']('execute')['to'](_0x521adb),_0x41d0ca['on']('execute',()=>{_0x42d229['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x16f6f6['children']['add'](_0x41d0ca),_0xb0c532['items']['add'](_0x16f6f6),_0x521adb['panelView']['children']['add'](_0xb0c532),_0x521adb;}['_showDialog'](){const _0x253a59=this['editor'],_0x4fbd1e=_0x253a59['locale'],_0x228cc0=_0x253a59['plugins']['get']('Dialog'),_0x3fa4f3=_0x253a59['plugins']['get']('RevisionTracker');function _0x4834fc(_0xd7bcc8){_0x253a59['config']['get']('revisionHistory.requireRevisionName')&&''===_0xd7bcc8['revisionName']?_0xd7bcc8['revisionNameInputView']['errorText']=m(_0x4fbd1e,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x253a59['plugins']['get'](l)['saveRevision']({'name':_0xd7bcc8['revisionName']}),_0x228cc0['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4834fc(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x228cc0['show']({'id':'revisionSave','title':m(_0x4fbd1e,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x253a59['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x228cc0['hide']()},{'label':m(_0x253a59['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2ac6ee){_0x2ac6ee['bind']('isEnabled')['to'](_0x3fa4f3,'isReady',_0x3fa4f3,'isEnabled',_0x253a59,'isReadOnly',(_0x42494d,_0x5e2ee2,_0x2afea2)=>_0x42494d&&_0x5e2ee2&&!_0x2afea2);},'onExecute':()=>_0x4834fc(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x356583=this['editor'],_0x113746=_0x356583['locale'];this['_saveRevisionFormView']=new hs(_0x113746,_0x356583['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x3bf5ec{['changeId'];['_model'];constructor(_0x16cc49,_0x74abcc){super(_0x16cc49),this['_model']=_0x74abcc,this['changeId']=_0x74abcc['id'];const _0x527385=this['bindTemplate'],_0x151957=m(_0x16cc49,_0x74abcc['data']['isSuggestion']?'Suggested\x20by':'add'==_0x74abcc['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x74abcc['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x527385['to']('type',_0x13b18f=>'ck-revision-change__'+_0x13b18f)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x151957}]},{'text':'\x20'+_0x74abcc['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x48f191(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x393ccb){super(),this['id']=_0x393ccb['id']||_0x4c7642(),this['author']=_0x393ccb['author'],this['type']=_0x393ccb['type'],this['data']=_0x393ccb['data']||{},this['rootName']=_0x393ccb['rootName'],this['set']('createdAt',_0x393ccb['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(_0x118363,_0x18c606){this['newRevisionId']=_0x118363,this['oldRevisionId']=_0x18c606,this['changes']=new _0x1959cb();}['_setChanges'](_0x24dbc1){for(const _0x597fb7 of _0x24dbc1)this['changes']['add'](_0x597fb7);}}const Y={'c':_0x10c17f,'a':_0x573b4f,'e':_0x49bdc7,'r':_0x1697ba,'u':_0x2aaf1a};class d extends _0x5dff76{['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[_0x4d6492,_0x3ef183,j];}constructor(_0xb84dfc){super(_0xb84dfc),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',(_0x387760,_0x1ecb7e,_0x1be906)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x41720f=>{for(const _0x20d6d7 of this['editor']['editing']['view']['document']['roots'])_0x1be906?_0x41720f['removeClass']('ck-editor__editable__overlay',_0x20d6d7):_0x41720f['addClass']('ck-editor__editable__overlay',_0x20d6d7);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x35f725=>null!==_0x35f725),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4c5ef2,_0x4faa92,_0x3ec7a4)=>_0x4c5ef2&&_0x3ec7a4?_0x4faa92['changes']['getIndex'](_0x3ec7a4):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4c78b1,_0x881af1)=>_0x4c78b1?_0x881af1['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3ef183);}['init'](){const _0x5f1347=this['editor'],_0x22e056=new yt(_0x5f1347,{'direction':'backward'}),_0x22dd3e=new yt(_0x5f1347,{'direction':'forward'});(_0x5f1347['commands']['add']('showPreviousChange',_0x22e056),_0x5f1347['commands']['add']('showNextChange',_0x22dd3e),_0x5f1347['commands']['add']('restoreRevision',new _t(_0x5f1347)),this['on']('change:numberOfChanges',()=>{_0x22e056['refresh'](),_0x22dd3e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5f1347['enableReadOnlyMode']('revision-viewer'),_0x5f1347['plugins']['has']('WidgetToolbarRepository'))&&_0x5f1347['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x48b444){await this['loadRevisionData'](_0x48b444);const _0xad4a5c={};for(const _0x235bf2 in _0x48b444['diffData']){if(_0x48b444['diffData'][_0x235bf2]['attachChange']&&!_0x48b444['diffData'][_0x235bf2]['attachChange']['isAttached'])continue;const _0x3f3ccd=this['_removeRevisionMarkers'](JSON['parse'](_0x48b444['diffData'][_0x235bf2]['insertions'])),_0x2c3534=this['editor']['editing']['view']['document'],_0x44d5af=new _0x4a0ecb(_0x2c3534,_0x3f3ccd['map'](_0x5565f1=>this['_getViewObj'](_0x5565f1)));this['editor']['data']['processor']['useFillerType']('marked'),_0xad4a5c[_0x235bf2]=this['editor']['data']['processor']['toData'](_0x44d5af),this['editor']['data']['processor']['useFillerType']('default');}return _0xad4a5c;}async['getRevisionRootsAttributes'](_0x5dda18){await this['loadRevisionData'](_0x5dda18);const _0x2283a4={};for(const _0x64d590 in _0x5dda18['diffData'])_0x5dda18['diffData'][_0x64d590]['attachChange']&&!_0x5dda18['diffData'][_0x64d590]['attachChange']['isAttached']||(_0x2283a4[_0x64d590]=_0x5dda18['diffData'][_0x64d590]['attributesAfter']||{});return _0x2283a4;}['_removeRevisionMarkers'](_0x512d36){return(_0x512d36=_0x512d36['filter'](_0x56dc52=>!_0x56dc52['name']||'revision-start'!==_0x56dc52['name']&&'revision-end'!==_0x56dc52['name']))['forEach'](_0x46cc87=>{'string'!=typeof _0x46cc87&&(_0x46cc87['children']=this['_removeRevisionMarkers'](_0x46cc87['children']),_0x46cc87['attributes']=_0x46cc87['attributes']['filter'](_0x2ea27e=>!_0x2ea27e[0x0]['startsWith']('data-revision-')));}),_0x512d36;}async['compare'](_0x85222,_0x3db91b,_0x28ce25=!0x1){if(!this['isEnabled'])return;const _0x3c2956=this['diff'],_0x449a6a=this['repository'],_0x234cb7='string'==typeof _0x85222?_0x449a6a['getRevision'](_0x85222):_0x85222,_0x19136a='string'==typeof _0x3db91b?_0x449a6a['getRevision'](_0x3db91b):_0x3db91b,_0x47b709=_0x234cb7['id'],_0x3d023e=_0x19136a?_0x19136a['id']:null;if(!_0x28ce25&&this['diff']&&this['diff']['newRevisionId']===_0x47b709&&this['diff']['oldRevisionId']===_0x3d023e)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x47b709,_0x3d023e);const _0x46882b=this['_getRevisionsRange'](_0x234cb7,_0x19136a,!0x0)['map'](_0x58191a=>this['loadRevisionData'](_0x58191a));return _0x46882b['push'](new Promise(_0x4ade76=>{setTimeout(_0x4ade76,0x14);})),Promise['all'](_0x46882b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x468ce7=this['_getDiff'](_0x47b709,_0x3d023e);for(const _0x573c12 of _0x468ce7['changes'])this['_changeIdToChange']['set'](_0x573c12['id'],_0x573c12);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x52fb7a=>{for(const _0x39cabf of this['editor']['model']['document']['getRootNames']())_0x52fb7a['detachRoot'](_0x39cabf);for(const _0x1f4bcd of Object['keys'](_0x468ce7['model'])){const _0x17c0c8=_0x52fb7a['addRoot'](_0x1f4bcd);for(const _0x2822cf of Object['keys'](_0x468ce7['attributes'][_0x1f4bcd]))_0x52fb7a['setAttribute'](_0x2822cf,_0x468ce7['attributes'][_0x1f4bcd][_0x2822cf],_0x17c0c8);_0x52fb7a['insert'](_0x468ce7['model'][_0x1f4bcd],_0x17c0c8,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x468ce7['changes'])),this['isReady']=!0x0;})['catch'](_0x5f1cdf=>{console['error'](_0x5f1cdf),this['_cleanUp'](),_0x3c2956&&(this['diff']=_0x3c2956),this['isReady']=!0x0;});}['addRevisionData'](_0x5ee28d,_0xdc43e2){const _0xa67e14=this['repository']['createRevision'](_0x5ee28d);return _0xa67e14['on']('_update',(_0x7c7848,_0x3fa358,_0x22c854)=>_0xdc43e2(_0x3fa358,_0x22c854,_0xa67e14)),this['repository']['addRevision'](_0xa67e14),_0xa67e14;}['loadRevisionData'](_0x509b2f){if(!_0x509b2f||_0x509b2f['diffData'])return Promise['resolve']();{const _0x1cc86f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1cc86f,'revisionId':_0x509b2f['id']})['then'](_0x1ebe0e=>{_0x509b2f['_update']({'diffData':_0x1ebe0e['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},_0xc03733=>{for(const _0x53f420 of this['editor']['model']['document']['getRootNames']())_0xc03733['detachRoot'](_0x53f420);});}['_sortAndFilterDiffChanges'](_0x219984){const _0x3d60d9=[],_0x34a9a=new Map();for(const _0x53f103 of this['editor']['model']['document']['getRootNames']()){const _0x281c86=this['editor']['editing']['view']['getDomRoot'](_0x53f103);if(!_0x281c86)continue;const _0x1f838c=_0x281c86['getClientRects']()['item'](0x0);_0x1f838c&&(_0x3d60d9['push'](_0x53f103),_0x34a9a['set'](_0x53f103,_0x1f838c));}return _0x3d60d9['sort']((_0x3cb8f1,_0x263166)=>{const _0x2a12d7=_0x34a9a['get'](_0x3cb8f1),_0x78dd85=_0x34a9a['get'](_0x263166);return _0x2a12d7['y']-_0x78dd85['y']||_0x2a12d7['x']-_0x78dd85['x'];}),(_0x219984=_0x219984['filter'](_0x2d1897=>_0x3d60d9['includes'](_0x2d1897['rootName'])))['sort']((_0x45232c,_0x2cffa4)=>_0x3d60d9['indexOf'](_0x45232c['rootName'])-_0x3d60d9['indexOf'](_0x2cffa4['rootName'])),_0x219984;}['_makeTape'](_0xf45b4d){const _0x2e851d=Array['from'](_0xf45b4d['markers'])['filter'](([_0x30f81c,_0xc3e915])=>_0x30f81c['startsWith']('revision:')&&!_0xc3e915['isCollapsed']),_0x464c92=Array['from'](this['editor']['model']['createRangeIn'](_0xf45b4d)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2e851d['length'])for(const _0x4c0757 of _0x464c92){const [_0x425343,_0x491de4]=_0x2e851d[0x0],[,_0x2a94b3,_0x60c491]=_0x425343['split'](':');if(_0x491de4['end']['isEqual'](_0x4c0757['nextPosition'])&&_0x2e851d['shift'](),(_0x4c0757['previousPosition']['isEqual'](_0x491de4['start'])||_0x4c0757['previousPosition']['isAfter'](_0x491de4['start']))&&('insertion'==_0x2a94b3?_0x4c0757['isAdded']={'userId':_0x60c491}:'deletion'==_0x2a94b3&&(_0x4c0757['isRemoved']={'userId':_0x60c491})),0x0==_0x2e851d['length'])break;}return _0x464c92;}['_refreshStartEndIndex'](_0x406c98){const _0x1e2fa0=new Map();for(let _0x18f646=0x0;_0x18f646<_0x406c98['length'];_0x18f646++)'text'===_0x406c98[_0x18f646]['type']?(_0x406c98[_0x18f646]['item']['startIndex']=_0x18f646,_0x406c98[_0x18f646]['item']['endIndex']=_0x18f646):('elementStart'===_0x406c98[_0x18f646]['type']?_0x406c98[_0x18f646]['item']['startIndex']=_0x18f646:'elementEnd'===_0x406c98[_0x18f646]['type']&&(_0x406c98[_0x18f646]['item']['endIndex']=_0x18f646),_0x1e2fa0['set'](_0x406c98[_0x18f646]['id'],_0x18f646));for(const _0x7bb81a of _0x1e2fa0['values']())'elementStart'===_0x406c98[_0x7bb81a]['type']?_0x406c98[_0x7bb81a]['item']['endIndex']=_0x1e2fa0['get'](_0x406c98[_0x7bb81a]['pairId']):'elementEnd'===_0x406c98[_0x7bb81a]['type']&&(_0x406c98[_0x7bb81a]['item']['startIndex']=_0x1e2fa0['get'](_0x406c98[_0x7bb81a]['pairId']));}['_processTape'](_0x283ed8){for(let _0x39d495=0x0;_0x39d495<_0x283ed8['length'];_0x39d495++){if('elementStart'===_0x283ed8[_0x39d495]['type'])_0x283ed8[_0x39d495]['item']['startIndex']=_0x39d495;else{if('elementEnd'===_0x283ed8[_0x39d495]['type']){_0x283ed8[_0x39d495]['item']['endIndex']=_0x39d495;const _0x15fc59=_0x283ed8[_0x39d495]['item']['startIndex'];_0x283ed8[_0x15fc59]['pairId']=_0x283ed8[_0x39d495]['id'],_0x283ed8[_0x39d495]['pairId']=_0x283ed8[_0x15fc59]['id'];}else _0x283ed8[_0x39d495]['item']['startIndex']=_0x39d495,_0x283ed8[_0x39d495]['item']['endIndex']=_0x39d495,_0x283ed8[_0x39d495]['pairId']=null;}_0x283ed8[_0x39d495]['markersStart']||(_0x283ed8[_0x39d495]['markersStart']=[],_0x283ed8[_0x39d495]['markersEnd']=[]);}}['_markInsertions'](_0x23ca5c,_0x544087){const _0x31b2d4=_0x23ca5c['filter'](_0x558c5f=>!_0x558c5f['isAdded']);for(let _0x19f2b4=0x0;_0x19f2b4<_0x544087['length'];_0x19f2b4++)_0x544087[_0x19f2b4]['isAdded']&&(_0x31b2d4[_0x19f2b4]['isAdded']=_0x544087[_0x19f2b4]['isAdded']);}['_makeModelFromViewString'](_0x30d625){const _0x12f8a6=JSON['parse'](_0x30d625),_0x1c8a6a=this['editor']['editing']['view']['document'],_0x1a1b68=new _0x4a0ecb(_0x1c8a6a,_0x12f8a6['map'](_0x45a40e=>this['_getViewObj'](_0x45a40e)));return this['editor']['data']['toModel'](_0x1a1b68);}['_getViewObj'](_0x5b79ee){const _0x497eea=this['editor']['editing']['view']['document'];if('string'==typeof _0x5b79ee)return new _0x439f23(_0x497eea,_0x5b79ee);{const _0x46cc0c=_0x5b79ee['children']['map'](_0x581a9e=>this['_getViewObj'](_0x581a9e));return new(Y[_0x5b79ee['type']]||_0x1b2671)(_0x497eea,_0x5b79ee['name'],_0x5b79ee['attributes'],_0x46cc0c);}}['_getDiff'](_0x1473b4,_0x54638f=null){const _0x19d3e8=this['repository']['getRevision'](_0x1473b4),_0x3efc9b=_0x54638f?this['repository']['getRevision'](_0x54638f):null,_0x3946fd=this['_getRevisionsRange'](_0x19d3e8,_0x3efc9b),_0x100ce8=_0x3946fd[_0x3946fd['length']-0x1],_0x498fd0=new Map(),_0x4b3676={'model':{},'attributes':{},'changes':[]},_0x350431=new Set(),_0x3995a0=new Map();for(let _0x16a976=_0x3946fd['length']-0x1;_0x16a976>=0x0;_0x16a976--){const _0x16709d=_0x3946fd[_0x16a976];for(const _0x4851dd of Object['keys'](_0x16709d['diffData']))if(_0x16709d['diffData'][_0x4851dd]['attachChange']){const _0x4afd6d=_0x16709d['diffData'][_0x4851dd]['attachChange'];_0x4afd6d['isAttached']?(_0x350431['add'](_0x4851dd),_0x3995a0['has'](_0x4851dd)&&_0x3995a0['get'](_0x4851dd)['userId']==_0x4afd6d['userId']?_0x3995a0['delete'](_0x4851dd):_0x3995a0['set'](_0x4851dd,_0x4afd6d)):_0x3995a0['has'](_0x4851dd)?(_0x350431['delete'](_0x4851dd),_0x3995a0['delete'](_0x4851dd)):(_0x350431['add'](_0x4851dd),_0x3995a0['set'](_0x4851dd,_0x4afd6d));}else _0x350431['add'](_0x4851dd);}for(const _0x1ddf0c of _0x350431){const _0x2d955a=_0x3995a0['has'](_0x1ddf0c)&&!_0x3995a0['get'](_0x1ddf0c)['isAttached'];let _0xe1c70d=_0x2d955a?_0x3946fd['length']-0x1:0x0;const _0x21c176=_0x2d955a?-0x1:0x1;for(;_0x3946fd[_0xe1c70d];){const _0x5a5414=_0x3946fd[_0xe1c70d];if(_0x5a5414['diffData'][_0x1ddf0c]){const _0x190f25=_0x2d955a?_0x5a5414['diffData'][_0x1ddf0c]['attributesBefore']:_0x5a5414['diffData'][_0x1ddf0c]['attributesAfter'];_0x4b3676['attributes'][_0x1ddf0c]=_0x190f25?_0x6066b7(_0x190f25):{};break;}_0xe1c70d+=_0x21c176;}}for(const _0x3542ba of _0x3946fd){_0x3542ba['model']={};for(const _0x4aa121 of _0x3542ba['authors'])_0x498fd0['set'](_0x4aa121['id'],_0x4aa121);for(const _0x47d1c9 of _0x350431){const _0x388c6d=_0x3542ba['diffData'][_0x47d1c9]?_0x3542ba['diffData'][_0x47d1c9]['insertions']:'[]',_0x798745=_0x3542ba['diffData'][_0x47d1c9]?_0x3542ba['diffData'][_0x47d1c9]['deletions']:'[]';_0x3542ba['model'][_0x47d1c9]={'insertions':this['_makeModelFromViewString'](_0x388c6d),'deletions':this['_makeModelFromViewString'](_0x798745)};}}for(const _0x75c274 of _0x350431){let _0x85929b=null,_0x4bff2d=0x0;const _0x49d86e=new Map(Array['from'](_0x19d3e8['model'][_0x75c274]['insertions']['markers'])['filter'](([_0x43b6fe])=>!_0x43b6fe['startsWith']('revision:')));let _0x291e90=0x0;for(const _0x49176d of _0x3946fd){const _0x3aed0c=this['_makeTape'](_0x49176d['model'][_0x75c274]['insertions']);_0x49176d==_0x19d3e8?(_0x85929b=_0x3aed0c,_0x4bff2d=_0x85929b['length'],_0x85929b['forEach'](_0x20c51b=>{_0x20c51b['id']=_0x291e90++;}),this['_processTape'](_0x85929b)):this['_markInsertions'](_0x85929b,_0x3aed0c);const _0x586e1d=_0x85929b['filter'](_0x5c537b=>!_0x5c537b['isAdded'])['map'](_0x506dca=>_0x506dca['id']);let _0x55f9af=0x0;const _0x2d3469=this['_makeTape'](_0x49176d['model'][_0x75c274]['deletions']);_0x2d3469['forEach'](_0x12b9fa=>{_0x12b9fa['isRemoved']?_0x12b9fa['id']=_0x4bff2d++:_0x12b9fa['id']=_0x586e1d[_0x55f9af++];}),this['_processTape'](_0x2d3469),this['_setDistance'](_0x85929b,'isAdded'),this['_setDistance'](_0x2d3469,'isRemoved'),_0x49176d==_0x19d3e8&&this['_markMarkers'](_0x85929b,_0x49d86e),_0x85929b=this['_joinTapes'](_0x85929b,_0x2d3469),this['_refreshStartEndIndex'](_0x85929b),this['_setDistance'](_0x85929b,'isRemoved');}_0x85929b=_0x85929b['filter'](_0xd8fb33=>!(_0xd8fb33['isAdded']&&_0xd8fb33['isRemoved']));const _0x4275be=new Map(_0x100ce8['model'][_0x75c274]['deletions']['markers']),_0x2c281d=new Set(_0x49d86e['keys']());for(const _0x50d610 of _0x4275be['keys']())_0x2c281d['delete'](_0x50d610);this['_markSuggestions'](_0x85929b,_0x2c281d),this['_fixObsoleteTags'](_0x85929b),_0x85929b=this['_removeMissingPairs'](_0x85929b),_0x85929b=this['_markMismatchedRemovedTags'](_0x85929b),_0x85929b=this['_removeUnsupportedChanges'](_0x85929b);const {root:_0x15c254,changes:_0xdb5111}=this['_makeModelFromTape'](_0x85929b,_0x498fd0,_0x75c274);_0x4b3676['model'][_0x75c274]=_0x15c254;const _0x547917=_0x3995a0['get'](_0x75c274);if(_0x547917){const _0x24759f=_0x498fd0['get'](_0x547917['userId']),_0x1eadba=new r({'author':_0x24759f,'type':_0x547917['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x75c274});_0xdb5111['unshift'](_0x1eadba),_0x4b3676['attributes'][_0x75c274]['revisionHistoryAttachChange']=_0x1eadba['id'];}_0x4b3676['changes']=_0x4b3676['changes']['concat'](_0xdb5111);}return _0x4b3676;}['_markMarkers'](_0x42de20,_0x51a3d9){for(let _0x1326f1=0x0;_0x1326f1<_0x42de20['length'];_0x1326f1++)for(const [_0x51b0dc,_0x20140f]of _0x51a3d9)_0x20140f['start']['isEqual'](_0x42de20[_0x1326f1]['previousPosition'])&&_0x42de20[_0x1326f1]['markersStart']['push'](_0x51b0dc),_0x20140f['end']['isEqual'](_0x42de20[_0x1326f1]['nextPosition'])&&_0x42de20[_0x1326f1]['markersEnd']['push'](_0x51b0dc);}['_joinTapes'](_0x451453,_0x3cd745){let _0x58f6ea=[],_0x160a21=0x0,_0x7c04ae=0x0;for(;_0x160a21<_0x451453['length']||_0x7c04ae<_0x3cd745['length'];){const _0x4838a8=_0x451453[_0x160a21]||{},_0x51e700=_0x3cd745[_0x7c04ae]||{};if(_0x4838a8['id']==_0x51e700['id'])_0x160a21++,_0x7c04ae++,_0x58f6ea['push'](_0x4838a8);else{if(_0x51e700['isRemoved']&&_0x4838a8['isAdded']){const {commonTape:_0x29a649,iEnd:_0x1f3490,jEnd:_0x3f24ae}=this['_threeWayMerge'](_0x451453,_0x160a21,_0x3cd745,_0x7c04ae);_0x58f6ea=_0x58f6ea['concat'](_0x29a649),_0x160a21=_0x1f3490,_0x7c04ae=_0x3f24ae;}else _0x51e700['isRemoved']?(_0x7c04ae++,_0x58f6ea['push'](_0x51e700)):(_0x160a21++,_0x58f6ea['push'](_0x4838a8));}}return _0x58f6ea;}['_markSuggestions'](_0x238647,_0x4295a0){const _0x5cd9c4=[];for(let _0x98982d=0x0;_0x98982d<_0x238647['length'];_0x98982d++){for(let _0x39b370=0x0;_0x39b370<_0x238647[_0x98982d]['markersStart']['length'];_0x39b370++){const _0x2bf5a7=_0x238647[_0x98982d]['markersStart'][_0x39b370];if(!_0x4295a0['has'](_0x2bf5a7))continue;const {group:_0x5e2ed5,type:_0x29feb3,authorId:_0x2bdede}=_0x290b07(_0x2bf5a7);'revision-suggestion'!=_0x5e2ed5||'insertion'!=_0x29feb3&&'deletion'!=_0x29feb3||(_0x5cd9c4['unshift']({'type':_0x29feb3,'name':_0x2bf5a7,'userId':_0x2bdede}),_0x238647[_0x98982d]['markersStart']['splice'](_0x39b370,0x1),_0x39b370--);}_0x4a1b49(_0x238647[_0x98982d]);for(let _0x119570=0x0;_0x119570<_0x238647[_0x98982d]['markersEnd']['length'];_0x119570++){const _0x327181=_0x238647[_0x98982d]['markersEnd'][_0x119570];if(!_0x4295a0['has'](_0x327181))continue;const {group:_0x35f1cb,type:_0x496186}=_0x290b07(_0x327181);if('revision-suggestion'!=_0x35f1cb||'insertion'!=_0x496186&&'deletion'!=_0x496186)continue;_0x238647[_0x98982d]['markersEnd']['splice'](_0x119570,0x1),_0x119570--;const _0x3046d5=_0x5cd9c4['findIndex'](_0x29fe11=>_0x29fe11['name']==_0x327181);_0x3046d5>-0x1&&_0x5cd9c4['splice'](_0x3046d5,0x1);}}function _0x290b07(_0x37deae){const _0x2916b4=_0x37deae['split'](':');return{'group':_0x2916b4[0x0],'type':_0x2916b4[0x1],'subType':_0x2916b4['length']>=0x5?_0x2916b4[0x2]:null,'id':_0x2916b4['length']<0x5?_0x2916b4[0x2]:_0x2916b4[0x3],'authorId':_0x2916b4['length']<0x5?_0x2916b4[0x3]:_0x2916b4[0x4],'markerCount':0x6==_0x2916b4['length']?_0x2916b4[0x5]:null};}function _0x4a1b49(_0x4cad3e){for(let _0x57aeb0=0x0;_0x57aeb0<_0x5cd9c4['length'];_0x57aeb0++){if(_0x4cad3e['isAdded']&&'insertion'==_0x5cd9c4[_0x57aeb0]['type'])return _0x4cad3e['isAddSuggestion']=_0x5cd9c4[_0x57aeb0],void delete _0x4cad3e['isAdded'];if(!_0x4cad3e['isAdded']&&!_0x4cad3e['isRemoved']&&'deletion'==_0x5cd9c4[_0x57aeb0]['type'])return void(_0x4cad3e['isRemoveSuggestion']=_0x5cd9c4[_0x57aeb0]);}}}['_setDistance'](_0x5be49e,_0x54107c){let _0x2e5786=0x0,_0x19997b=!0x1;const _0x1ab119=new Map();for(const _0x261ed8 of _0x5be49e)_0x261ed8[_0x54107c]?_0x19997b&&(_0x2e5786++,_0x19997b=!0x1):(_0x2e5786++,_0x19997b=!0x0),_0x1ab119['set'](_0x261ed8['id'],_0x2e5786);for(let _0x46ab4b=0x0;_0x46ab4b<_0x5be49e['length'];_0x46ab4b++){if('isRemoved'==_0x54107c&&_0x5be49e[_0x46ab4b]['isAdded']||'isAdded'==_0x54107c&&_0x5be49e[_0x46ab4b]['isRemoved'])continue;if('text'==_0x5be49e[_0x46ab4b]['type']){_0x5be49e[_0x46ab4b]['distance']=0x0;continue;}const _0xd633e9=_0x1ab119['get'](_0x5be49e[_0x46ab4b]['pairId']),_0x449847=_0x1ab119['get'](_0x5be49e[_0x46ab4b]['id']);_0x5be49e[_0x46ab4b]['distance']=_0xd633e9-_0x449847;}}['_getRevisionsRange'](_0x49a75c,_0x17ebeb,_0x494968=!0x1){const _0x35cf62=[];let _0x435a92=this['repository']['getIndex'](_0x49a75c),_0x3e3a71=this['repository']['getIndex'](_0x17ebeb);for(-0x1==_0x3e3a71&&(_0x3e3a71=this['repository']['_revisions']['length'],_0x494968=!0x1);_0x435a92<_0x3e3a71;)_0x35cf62['push'](this['repository']['getRevision'](_0x435a92)),_0x435a92++;return _0x494968&&_0x35cf62['push'](this['repository']['getRevision'](_0x435a92)),_0x35cf62;}['_threeWayMerge'](_0x348b11,_0x5d4789,_0x31068f,_0x111f07){const _0x525575=this['editor']['model']['schema'];let _0xd01981=_0x5d4789;for(;_0x348b11[_0xd01981]&&_0x348b11[_0xd01981]['isAdded'];)_0xd01981++;let _0xa6de10=_0x111f07;for(;_0x31068f[_0xa6de10]&&_0x31068f[_0xa6de10]['isRemoved'];)_0xa6de10++;_0x3c38cb(_0x348b11,_0x5d4789,_0xd01981),_0x3c38cb(_0x31068f,_0x111f07,_0xa6de10);const _0x92ac26=_0x31068f['slice'](_0x111f07,_0xa6de10)['concat'](_0x348b11['slice'](_0x5d4789,_0xd01981));return _0x92ac26['sort']((_0xb6579f,_0x8855db)=>_0xb6579f['side']!=_0x8855db['side']?_0xb6579f['side']-_0x8855db['side']:_0xb6579f['level']!=_0x8855db['level']?_0xb6579f['level']-_0x8855db['level']:_0xb6579f['distance']!=_0x8855db['distance']?_0x8855db['distance']-_0xb6579f['distance']:!!_0xb6579f['isAdded']!=!!_0x8855db['isAdded']?-0x1==_0xb6579f['side']||0x0==_0xb6579f['side']?_0xb6579f['isAdded']?-0x1:0x1:_0xb6579f['isAdded']?0x1:-0x1:_0xb6579f['index']-_0x8855db['index']),{'commonTape':_0x92ac26,'iEnd':_0xd01981,'jEnd':_0xa6de10};function _0x3c38cb(_0x5ee75f,_0x59db43,_0x1d872d){let _0x18542a=-0x1,_0x8cc347=Number['POSITIVE_INFINITY'],_0x24fe41=!0x0;for(let _0x5ccfde=_0x59db43;_0x5ccfde<_0x1d872d;_0x5ccfde++)if(_0x525575['isInline'](_0x5ee75f[_0x5ccfde]['item'])||(_0x24fe41=!0x1),_0x5ee75f[_0x5ccfde]['item']['startIndex']<_0x59db43&&(_0x18542a=_0x5ccfde),_0x5ee75f[_0x5ccfde]['item']['endIndex']>=_0x1d872d){_0x8cc347=_0x5ccfde;break;}_0x24fe41&&(_0x18542a=_0x1d872d-0x1);for(let _0x36d31d=_0x59db43;_0x36d31d<_0x1d872d;_0x36d31d++)_0x5ee75f[_0x36d31d]['side']=_0x36d31d<=_0x18542a?-0x1:_0x36d31d<_0x8cc347?0x0:0x1,_0x5ee75f[_0x36d31d]['index']=_0x36d31d;let _0xa3e847=0x0;for(let _0xfa62f5=_0x59db43;_0xfa62f5<=_0x18542a;_0xfa62f5++)0x0==_0x5ee75f[_0xfa62f5]['distance']?_0x5ee75f[_0xfa62f5]['level']=_0xa3e847:(_0xa3e847++,_0x5ee75f[_0xfa62f5]['level']=_0xa3e847,_0xa3e847++);for(let _0x3d4ffa=_0x59db43;_0x3d4ffa<_0x1d872d;_0x3d4ffa++)0x0==_0x5ee75f[_0x3d4ffa]['side']&&(_0x5ee75f[_0x3d4ffa]['level']=_0xa3e847);_0xa3e847=0x0;for(let _0x26d87e=_0x1d872d-0x1;_0x26d87e>=_0x8cc347;_0x26d87e--)0x0==_0x5ee75f[_0x26d87e]['distance']?_0x5ee75f[_0x26d87e]['level']=_0xa3e847:(_0xa3e847--,_0x5ee75f[_0x26d87e]['level']=_0xa3e847,_0xa3e847--);}}['_fixObsoleteTags'](_0x47f886){const _0x5b546f=new Map(),_0x162615=this['editor']['model']['schema'];for(let _0x444d00=0x1;_0x444d00<_0x47f886['length'];_0x444d00++){let _0x11ac63,_0x28d3de,_0x3a15e5;const _0x1ede0d=_0x47f886[_0x444d00],_0x342213=_0x47f886[_0x444d00-0x1];if('text'==_0x1ede0d['type'])continue;if(_0x1ede0d['type']!=_0x342213['type'])continue;if(!_0x162615['isBlock'](_0x342213['item'])||_0x162615['isLimit'](_0x342213['item']))continue;if(!_0x162615['isBlock'](_0x1ede0d['item'])||_0x162615['isLimit'](_0x1ede0d['item']))continue;if((_0x47f886[_0x444d00]['isAdded']||_0x47f886[_0x444d00]['isAddSuggestion'])&&_0x47f886[_0x444d00-0x1]['isRemoved'])_0x11ac63=_0x47f886[_0x444d00],_0x28d3de=_0x47f886[_0x444d00-0x1],_0x3a15e5=_0x444d00-0x1;else{if(!_0x47f886[_0x444d00]['isRemoved']||!_0x47f886[_0x444d00-0x1]['isAdded']&&!_0x47f886[_0x444d00-0x1]['isAddSuggestion'])continue;_0x11ac63=_0x47f886[_0x444d00-0x1],_0x28d3de=_0x47f886[_0x444d00],_0x3a15e5=_0x444d00;}const _0x4a2c74=_0x11ac63['level']==_0x28d3de['level'],_0x497233=Math['abs'](_0x11ac63['level'])<Math['abs'](_0x28d3de['level'])&&0x0==_0x28d3de['distance'];(_0x4a2c74||_0x497233)&&(_0x5b546f['set'](_0x28d3de['id'],_0x11ac63['id']),_0x47f886['splice'](_0x3a15e5,0x1),_0x444d00--,_0x11ac63['isAdded']=!0x1);}for(let _0x377cb9=0x0;_0x377cb9<_0x47f886['length'];_0x377cb9++)_0x5b546f['has'](_0x47f886[_0x377cb9]['pairId'])&&(_0x47f886[_0x377cb9]['pairId']=_0x5b546f['get'](_0x47f886[_0x377cb9]['pairId']));}['_removeMissingPairs'](_0xd6e0ef){const _0x40faa9=new Set(_0xd6e0ef['map'](_0x52b917=>_0x52b917['id']));for(let _0x2c58d6=0x0;_0x2c58d6<_0xd6e0ef['length'];_0x2c58d6++)_0x40faa9['has'](_0xd6e0ef[_0x2c58d6]['pairId'])||0x0==_0xd6e0ef[_0x2c58d6]['distance']||(_0xd6e0ef[_0x2c58d6]['isIncorrect']=!0x0);return _0xd6e0ef['filter'](_0x2c7c1c=>!_0x2c7c1c['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3b529c){const _0x35649c=new Set();for(let _0x235c33=0x0;_0x235c33<_0x3b529c['length'];_0x235c33++){if(_0x35649c['has'](_0x3b529c[_0x235c33]['id'])&&_0x3b529c[_0x235c33]['isRemoved']&&(_0x3b529c[_0x235c33]['isIncorrect']=!0x0),_0x3b529c[_0x235c33]['isIncorrect'])continue;if(0x0==_0x3b529c[_0x235c33]['distance'])continue;if('elementStart'!=_0x3b529c[_0x235c33]['type'])continue;if(null==_0x3b529c[_0x235c33]['pairId'])continue;let _0x2775e6=_0x235c33+0x1,_0x4ffc35=0x0;for(;_0x3b529c[_0x2775e6]['id']!=_0x3b529c[_0x235c33]['pairId'];)'elementStart'==_0x3b529c[_0x2775e6]['type']?_0x4ffc35++:'elementEnd'==_0x3b529c[_0x2775e6]['type']&&_0x4ffc35--,_0x2775e6++;if(0x0!=_0x4ffc35){if(_0x3b529c[_0x235c33]['isRemoved'])_0x3b529c[_0x235c33]['isIncorrect']=!0x0;else{for(;_0x2775e6!=_0x235c33;)_0x3b529c[_0x2775e6]['isRemoved']&&0x0!=_0x3b529c[_0x2775e6]['distance']&&(_0x3b529c[_0x2775e6]['isIncorrect']=!0x0,_0x35649c['add'](_0x3b529c[_0x2775e6]['pairId'])),_0x2775e6--;}}}return _0x3b529c['filter'](_0xc2d0d3=>!_0xc2d0d3['isIncorrect']);}['_removeUnsupportedChanges'](_0x101bc4){const _0x30de43=this['editor']['model']['schema'];for(let _0x144f30=0x0;_0x144f30<_0x101bc4['length'];_0x144f30++){if(!(_0x101bc4[_0x144f30]['isAdded']||_0x101bc4[_0x144f30]['isAddSuggestion']||_0x101bc4[_0x144f30]['isRemoved']||_0x101bc4[_0x144f30]['isRemoveSuggestion']))continue;if(0x0==_0x101bc4[_0x144f30]['distance'])continue;const _0x454b13=_0x101bc4[_0x144f30]['item'];_0x30de43['isBlock'](_0x454b13)||_0x30de43['isLimit'](_0x454b13)||(_0x101bc4[_0x144f30]['isAdded']&&delete _0x101bc4[_0x144f30]['isAdded'],_0x101bc4[_0x144f30]['isAddSuggestion']&&delete _0x101bc4[_0x144f30]['isAddSuggestion'],_0x101bc4[_0x144f30]['isRemoveSuggestion']&&delete _0x101bc4[_0x144f30]['isRemoveSuggestion'],_0x101bc4[_0x144f30]['isRemoved']&&(_0x101bc4[_0x144f30]['isIncorrect']=!0x0));}return _0x101bc4['filter'](_0x1e3403=>!_0x1e3403['isIncorrect']);}['_makeModelFromTape'](_0x580be7,_0x5bea83,_0x381a74){const _0x16ec16=new mt(),_0xf4f2f9=[],_0x3b2c1f=new Map(),_0x483cb2=this['editor']['model'],_0x44e3ef=_0x483cb2['schema'],_0x318af0=[_0x16ec16],_0x1ba339={},_0x4471f2={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1600c7=null;const _0x17f623=[0x0];for(let _0x555846=0x0;_0x555846<_0x580be7['length'];_0x555846++)if('elementStart'===_0x580be7[_0x555846]['type']){_0x580be7[_0x555846]['previousPosition']=_0x483cb2['createPositionFromPath'](_0x16ec16,_0x17f623);const _0x22cce9=new ft(_0x580be7[_0x555846]['item']['name'],_0x580be7[_0x555846]['item']['getAttributes']());_0x318af0[0x0]['_appendChild'](_0x22cce9),_0x17f623['push'](0x0),_0x318af0['unshift'](_0x22cce9),_0x580be7[_0x555846]['nextPosition']=_0x483cb2['createPositionFromPath'](_0x16ec16,_0x17f623);}else'elementEnd'===_0x580be7[_0x555846]['type']?(_0x318af0['shift'](),_0x580be7[_0x555846]['previousPosition']=_0x483cb2['createPositionFromPath'](_0x16ec16,_0x17f623),_0x17f623['pop'](),_0x17f623[_0x17f623['length']-0x1]++,_0x580be7[_0x555846]['nextPosition']=_0x483cb2['createPositionFromPath'](_0x16ec16,_0x17f623)):(_0x580be7[_0x555846]['previousPosition']=_0x483cb2['createPositionFromPath'](_0x16ec16,_0x17f623),_0x1600c7?_0x1600c7['_data']+=_0x580be7[_0x555846]['item']['data']:_0x1600c7=new wt(_0x580be7[_0x555846]['item']['data'],_0x580be7[_0x555846]['item']['getAttributes']()),_0x580be7[_0x555846+0x1]&&'text'===_0x580be7[_0x555846+0x1]['type']&&_0x4b5ed9(_0x1600c7,_0x580be7[_0x555846+0x1]['item'])||(_0x318af0[0x0]['_appendChild'](_0x1600c7),_0x1600c7=null),_0x17f623[_0x17f623['length']-0x1]+=_0x580be7[_0x555846]['item']['offsetSize'],_0x580be7[_0x555846]['nextPosition']=_0x483cb2['createPositionFromPath'](_0x16ec16,_0x17f623));for(let _0x1aa230=0x0;_0x1aa230<_0x580be7['length'];_0x1aa230++){const _0x13ae27=_0x580be7[_0x1aa230]['previousPosition'],_0x8a299c=_0x580be7[_0x1aa230]['nextPosition'];for(const _0x3d2e4a of _0x580be7[_0x1aa230]['markersStart'])_0x3b2c1f['set'](_0x3d2e4a,{'start':_0x13ae27,'end':null});_0x23b922('isRemoveSuggestion',_0x1aa230,_0x13ae27,_0x8a299c),_0x23b922('isAddSuggestion',_0x1aa230,_0x13ae27,_0x8a299c),_0x23b922('isRemoved',_0x1aa230,_0x13ae27,_0x8a299c),_0x23b922('isAdded',_0x1aa230,_0x13ae27,_0x8a299c);for(const _0x5018dd of _0x580be7[_0x1aa230]['markersEnd']){_0x3b2c1f['get'](_0x5018dd)['end']=_0x8a299c;}}for(const [_0xfb75c4,_0x54e8ce]of _0x3b2c1f){const _0x44aef0=this['editor']['model']['createRange'](_0x54e8ce['start'],_0x54e8ce['end']);_0x16ec16['markers']['set'](_0xfb75c4,_0x44aef0);}return _0xf4f2f9['sort']((_0x2b9971,_0x21f218)=>{const _0x1729d7=_0x16ec16['markers']['get']('revision:'+_0x2b9971['id']),_0x494d6a=_0x16ec16['markers']['get']('revision:'+_0x21f218['id']);return _0x1729d7['start']['isBefore'](_0x494d6a['start'])?-0x1:_0x1729d7['start']['isAfter'](_0x494d6a['start'])?0x1:_0x1729d7['end']['isBefore'](_0x494d6a['end'])?-0x1:_0x1729d7['end']['isAfter'](_0x494d6a['end'])?0x1:'add'===_0x2b9971['type']?-0x1:0x1;}),{'root':_0x16ec16,'changes':_0xf4f2f9};function _0x23b922(_0x59baf2,_0x51de20,_0x54d574,_0x234a62){const _0x1c16b4=!!_0x580be7[_0x51de20][_0x59baf2],_0x35381d=_0x1c16b4?_0x580be7[_0x51de20][_0x59baf2]['userId']:null,_0x4d8bd8=_0x51de20===_0x580be7['length']-0x1,_0x4ca8bb=_0x4471f2[_0x59baf2][0x0],_0x34fc0a=_0x44e3ef['isObject'](_0x580be7[_0x51de20]['item']);!_0x1ba339[_0x59baf2]&&_0x1c16b4?_0x1ba339[_0x59baf2]={'start':_0x54d574,'tapeItem':_0x580be7[_0x51de20],'userId':_0x35381d,'type':_0x59baf2}:_0x1ba339[_0x59baf2]&&!_0x1c16b4?(_0x1ba339[_0x59baf2]['end']=_0x54d574,_0x4e0b75(_0x1ba339[_0x59baf2]),_0x1ba339[_0x59baf2]=null):_0x1ba339[_0x59baf2]&&_0x1c16b4&&_0x1ba339[_0x59baf2]['userId']!==_0x35381d&&(_0x1ba339[_0x59baf2]['end']=_0x54d574,_0x4ca8bb&&_0x4ca8bb['userId']===_0x1ba339[_0x59baf2]['userId']||_0x4e0b75(_0x1ba339[_0x59baf2]),_0x1ba339[_0x59baf2]={'start':_0x54d574,'tapeItem':_0x580be7[_0x51de20],'userId':_0x35381d,'type':_0x59baf2}),_0x1ba339[_0x59baf2]&&_0x34fc0a&&('elementStart'!==_0x580be7[_0x51de20]['type']||_0x4ca8bb&&_0x4ca8bb['userId']===_0x35381d||_0x4471f2[_0x59baf2]['unshift']({'userId':_0x35381d,'object':_0x580be7[_0x51de20]['item'],'change':_0x1ba339[_0x59baf2]}),'elementEnd'===_0x580be7[_0x51de20]['type']&&_0x4ca8bb&&_0x4ca8bb['object']===_0x580be7[_0x51de20]['item']&&(_0x4471f2[_0x59baf2]['shift'](),_0x1ba339[_0x59baf2]=_0x4ca8bb['change'])),_0x1ba339[_0x59baf2]&&_0x4d8bd8&&(_0x1ba339[_0x59baf2]['end']=_0x234a62,_0x4e0b75(_0x1ba339[_0x59baf2]),_0x1ba339[_0x59baf2]=null);}function _0x4e0b75({start:_0x500276,end:_0x263f06,tapeItem:_0x12c455,userId:_0x449393,type:_0x2d6576}){const _0x15c358=_0x12c455['item'],_0x1ea091=_0x483cb2['schema']['isBlock'](_0x15c358)&&!_0x483cb2['schema']['isLimit'](_0x15c358),_0x402504=_0x500276['nodeAfter']==_0x263f06['parent']&&_0x263f06['isAtStart'];if(_0x1ea091&&_0x402504)return;const _0x219a1d=_0x483cb2['createRange'](_0x500276,_0x263f06),_0x26214e=_0x5bea83['get'](_0x449393),_0x673081=new r({'author':_0x26214e,'type':'isAdded'==_0x2d6576||'isAddSuggestion'==_0x2d6576?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2d6576||'isRemoveSuggestion'==_0x2d6576},'createdAt':new Date(),'rootName':_0x381a74});_0xf4f2f9['push'](_0x673081),_0x16ec16['markers']['set']('revision:'+_0x673081['id'],_0x219a1d);}function _0x4b5ed9(_0x274791,_0x4169b5){const _0xfb113=_0x274791['getAttributes'](),_0xc3fbbc=_0x4169b5['getAttributes']();for(const _0xb34fd0 of _0xfb113){if(_0xb34fd0[0x1]!==_0x4169b5['getAttribute'](_0xb34fd0[0x0]))return!0x1;_0xc3fbbc['next']();}return _0xc3fbbc['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3f5055=>{const _0xaa614=_0x3f5055['markerName']['split'](':')[0x1],_0x444210=this['_getChangeFromId'](_0xaa614);if(!_0x444210)return null;const _0x2bbfbc='add'==_0x444210['type']?'insertion':'deletion',_0x2241cd=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2bbfbc];return _0x444210['data']['isSuggestion']&&_0x2241cd['push']('ck-suggestion-marker-'+_0x2bbfbc+'-new'),this['activeChange']==_0x444210&&_0x2241cd['push']('ck-suggestion-marker--active'),{'classes':_0x2241cd,'attributes':{'data-change-id':_0xaa614}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x37ef78=>{_0x37ef78['on']('element:pre',(_0xa910f7,_0x5b4cf1,_0x3ae892)=>{const _0x5ac86d=_0x5b4cf1['viewItem']['getChild'](0x0);if(!_0x5ac86d||!_0x5ac86d['is']('element','code'))return;if(!_0x3ae892['consumable']['consume'](_0x5ac86d,{'attributes':['vid_start','vid_end']}))return;const _0x1014bd=_0x5b4cf1['modelRange']['start']['nodeAfter'];_0x3ae892['writer']['setAttribute']('vid_start',_0x5ac86d['getAttribute']('vid_start'),_0x1014bd),_0x3ae892['writer']['setAttribute']('vid_end',_0x5ac86d['getAttribute']('vid_end'),_0x1014bd);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5ca1a3=>{_0x5ca1a3['on']('element',(_0x55ecf3,_0x426eff,_0x5cfd46)=>{if(!_0x5cfd46['consumable']['consume'](_0x426eff['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x426eff['modelRange']['isCollapsed'])return;const _0x14f578=_0x426eff['modelRange']['start']['nodeAfter'];_0x14f578['hasAttribute']('vid_start')||_0x14f578['hasAttribute']('vid')||(_0x5cfd46['writer']['setAttribute']('vid_start',_0x426eff['viewItem']['getAttribute']('vid_start'),_0x14f578),_0x5cfd46['writer']['setAttribute']('vid_end',_0x426eff['viewItem']['getAttribute']('vid_end'),_0x14f578));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2e2bf0=>_0x2e2bf0['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x46bf77,[,_0x46565e])=>{['vid_start','vid_end','vid']['includes'](_0x46565e)&&(_0x46bf77['return']=!0x0,_0x46bf77['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x113174=>{_0x113174['on']('attribute:vid',(_0x54a3e6,_0x17c1bb,_0xb85289)=>{if('\x20'!=_0x17c1bb['item']['data']||_0x17c1bb['item']['parent']['maxOffset']>0x1)return;if(!_0xb85289['consumable']['consume'](_0x17c1bb['item'],_0x54a3e6['name']))return;const _0x568599=_0xb85289['writer'],_0x1cefd7=_0xb85289['mapper']['toViewRange'](_0x17c1bb['range']);_0x568599['wrap'](_0x1cefd7,_0x568599['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x30497d){const _0x376f68=_0x30497d['plugins']['get']('RevisionViewer');return(_0x5a76fb,_0x269aa2,_0xf017c0)=>{const _0x5413c7=_0x269aa2['markerName']['split'](':')[0x1],_0x290105=_0x376f68['_getChangeFromId'](_0x5413c7);if(!_0x290105)return null;const _0x50ee5c='add'==_0x290105['type']?'split':'merge';if(!_0xf017c0['consumable']['test'](_0x269aa2['markerRange'],_0x5a76fb['name']))return;const _0x1de892=_0x269aa2['markerRange']['getWalker'](),_0x13df97=_0x269aa2['markerRange']['start'],_0x6f2986=_0x30497d['model']['schema'];let _0x16214a=null,_0x5bbb01=null,_0x4aa1e3=!0x1,_0x153ab3=!0x1;for(const _0x213498 of _0x1de892){const _0xf2c6c3=_0x213498['item'];_0x4aa1e3=_0x4aa1e3||_0x6f2986['isContent'](_0xf2c6c3);const _0x13c098=_0xf017c0['mapper']['toViewElement'](_0xf2c6c3);if(_0x13c098&&_0x13c098['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x213498['type']&&(_0x6f2986['isBlock'](_0xf2c6c3)&&!_0x6f2986['isLimit'](_0xf2c6c3)&&(_0xf2c6c3['nextSibling']||_0x13df97['isAtEnd']?_0x16214a&&_0x16214a['parent']==_0xf2c6c3||(_0x16214a=_0xf2c6c3,_0x4caef9(_0x213498['previousPosition']),_0x153ab3=!0x0):_0x5bbb01=_0x5bbb01||_0x213498['previousPosition']));}function _0x4caef9(_0x579df8){const _0x27cd9f=_0xf017c0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50ee5c}),_0x416ea2=_0xf017c0['mapper']['toViewPosition'](_0x579df8);_0x290105['data']['isSuggestion']&&_0xf017c0['writer']['addClass']('ck-suggestion-marker-'+_0x50ee5c+'-new',_0x27cd9f),_0x376f68['activeChange']==_0x290105&&_0xf017c0['writer']['addClass']('ck-suggestion-marker--active',_0x27cd9f),_0xf017c0['writer']['insert'](_0x416ea2,_0x27cd9f),_0xf017c0['mapper']['bindElementToMarker'](_0x27cd9f,_0x269aa2['markerName']);}_0x4aa1e3||_0x153ab3||!_0x5bbb01||_0x4caef9(_0x5bbb01);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x55901b,_0x50422c,_0x4e080b)=>{const _0x31f389=_0x4e080b['mapper']['markerNameToElements'](_0x50422c['markerName']);if(_0x31f389){for(const _0x3122d7 of _0x31f389)(_0x3122d7['hasClass']('ck-suggestion-marker-split')||_0x3122d7['hasClass']('ck-suggestion-marker-merge'))&&(_0x4e080b['mapper']['unbindElementFromMarkerName'](_0x3122d7,_0x50422c['markerName']),_0x4e080b['writer']['remove'](_0x3122d7));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x32336d,_0x1083be,_0x450c8b)=>{const _0x4543f2=_0x1083be['markerName']['split'](':')[0x1],_0x1b4a2e=this['_getChangeFromId'](_0x4543f2);if(!_0x1b4a2e)return null;const _0x208d3b='add'==_0x1b4a2e['type']?'split':'merge';if(_0x450c8b['consumable']['test'](_0x1083be['markerRange'],_0x32336d['name']))for(const _0x42612c of _0x1083be['markerRange']['getItems']()){if(!_0x42612c['is']('element','softBreak'))continue;const _0x53072d=_0x450c8b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x208d3b}),_0x2c0d8e=_0x450c8b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x42612c));_0x1b4a2e['data']['isSuggestion']&&_0x450c8b['writer']['addClass']('ck-suggestion-marker-'+_0x208d3b+'-new',_0x53072d),this['activeChange']==_0x1b4a2e&&_0x450c8b['writer']['addClass']('ck-suggestion-marker--active',_0x53072d),_0x450c8b['writer']['insert'](_0x2c0d8e,_0x53072d),_0x450c8b['mapper']['bindElementToMarker'](_0x53072d,_0x1083be['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x671299=>{for(const _0x5090a2 of this['editor']['model']['document']['getRootNames']()){const _0x3437a4=this['editor']['model']['document']['getRoot'](_0x5090a2),_0x4199ff=this['editor']['editing']['view']['document']['getRoot'](_0x5090a2);if(_0x4199ff){const _0x339ea0=_0x3437a4['getAttribute']('revisionHistoryAttachChange');if(_0x671299['removeAttribute']('data-change-id',_0x4199ff),_0x671299['removeClass']('ck-revision-history-root-add',_0x4199ff),_0x671299['removeClass']('ck-revision-history-root-remove',_0x4199ff),_0x671299['removeClass']('ck-revision-history-root--active',_0x4199ff),_0x339ea0){const _0x401de8=this['_getChangeFromId'](_0x339ea0);if(!_0x401de8)return null;_0x671299['setAttribute']('data-change-id',_0x339ea0,_0x4199ff),_0x671299['addClass']('ck-revision-history-root-'+_0x401de8['type'],_0x4199ff),this['activeChange']==_0x401de8&&_0x671299['addClass']('ck-revision-history-root--active',_0x4199ff);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4b904e=>'revision-comment:'+_0x4b904e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x41481b=>'revision-suggestion:'+_0x41481b,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x40a599=>({'name':'suggestion:'+_0x40a599,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xafc50c=>{const _0x405365=_0xafc50c['markerName']['split'](':')[0x1];return'insertion'!=_0x405365&&'deletion'!=_0x405365?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x405365]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1ebaaf,_0x3713f7,_0x3ffb83)=>{const _0x5cf57f=_0x3ffb83['mapper']['markerNameToElements'](_0x3713f7['markerName']);if(_0x5cf57f){for(const _0x2d35e6 of _0x5cf57f)_0x2d35e6['is']('uiElement')&&(_0x3ffb83['mapper']['unbindElementFromMarkerName'](_0x2d35e6,_0x3713f7['markerName']),_0x3ffb83['writer']['remove'](_0x2d35e6));}},{'priority':'high'});}['_getChangeFromId'](_0x8b7870){return this['_changeIdToChange']['get'](_0x8b7870);}['_getViewForChange'](_0x17d4d4){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x17d4d4),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x53ee82,_0x43f357,_0x1ebce4,_0x57c691)=>{_0x57c691&&this['_balloon']['remove'](_0x57c691),_0x1ebce4&&(this['_balloon']['add']({'view':_0x1ebce4,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3ed003=this['editor']['editing'],_0xded2b7=this['_getChangeFromId'](_0x1ebce4['changeId']);let _0x148931;if(_0xded2b7['data']['isOnRoot']){const _0x1ad80d=_0x3ed003['view']['getDomRoot'](_0xded2b7['rootName']);_0x148931=Array['from'](_0x1ad80d['getClientRects']());}else{const _0x51e4e4=this['editor']['model']['markers']['get']('revision:'+_0x1ebce4['changeId']);_0x148931=Array['from'](_0x3ed003['mapper']['markerNameToElements'](_0x51e4e4['name']))['map'](_0x4cfefb=>_0x3ed003['view']['domConverter']['mapViewToDom'](_0x4cfefb))['map'](_0x3c8326=>Array['from'](_0x3c8326['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x148931[0x0];return _0x148931['find'](_0x1e8427=>_0x1e8427['top']-0x3<=this['_activeViewTarget']['y']&&_0x1e8427['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1e8427['left']-0x3<=this['_activeViewTarget']['x']&&_0x1e8427['right']+0x3>=this['_activeViewTarget']['x'])||_0x148931[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4a50e7,_0x9a633a,_0xc37244,_0x19bb5b)=>{this['activeView']=_0xc37244?this['_getViewForChange'](_0xc37244):null,this['editor']['model']['change'](()=>{const _0x1a8502=this['editor']['editing'];_0x19bb5b&&(_0x19bb5b['data']['isOnRoot']?_0x1a8502['view']['change'](_0x384e36=>{_0x384e36['removeClass']('ck-revision-history-root--active',_0x1a8502['view']['document']['getRoot'](_0x19bb5b['rootName']));}):_0x1a8502['reconvertMarker']('revision:'+_0x19bb5b['id'])),_0xc37244&&(_0xc37244['data']['isOnRoot']?_0x1a8502['view']['change'](_0xfa5a68=>{_0xfa5a68['addClass']('ck-revision-history-root--active',_0x1a8502['view']['document']['getRoot'](_0xc37244['rootName']));}):_0x1a8502['reconvertMarker']('revision:'+_0xc37244['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x37498a,_0x1d5a65)=>{if(this['activeChange'])return;const _0x3b2e7c=this['_findChangeIdFromDomTarget'](_0x1d5a65['target']),_0x27aa8d=this['_changeIdToChange']['get'](_0x3b2e7c);_0x27aa8d?(this['_activeViewTarget']={'x':_0x1d5a65['domEvent']['x'],'y':_0x1d5a65['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x27aa8d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x9a1f0b,_0x519718)=>{const _0x2526f7=this['_findChangeIdFromDomTarget'](_0x519718['target']),_0x2901d2=this['_changeIdToChange']['get'](_0x2526f7);_0x2901d2?(this['_activeViewTarget']={'x':_0x519718['domEvent']['x'],'y':_0x519718['domEvent']['y']},_0x2901d2===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2901d2):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3ac0a4){do{const _0x512929=_0x3ac0a4['getAttribute']('data-change-id');if(_0x512929)return _0x512929;_0x3ac0a4=_0x3ac0a4['parent'];}while(_0x3ac0a4);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xc3f3d7=>{for(const _0x55459a of this['editor']['model']['markers'])_0xc3f3d7['removeMarker'](_0x55459a);});}}function Z(_0x2db2ec,_0x1108db){return(_0x4f065b,_0x4148ab,_0x37695e)=>{if(!_0x37695e['consumable']['test'](_0x4148ab['markerRange'],_0x4f065b['name']))return;const _0x264938=_0x4148ab['markerRange']['getWalker'](),_0x54aebb=_0x4148ab['markerRange']['start'],_0x587d23=_0x2db2ec['model']['schema'];let _0x46665f=null,_0x22f5aa=null,_0xf892c2=!0x1,_0x5712a6=!0x1;for(const _0x7b1db4 of _0x264938){const _0x46d64e=_0x7b1db4['item'];_0xf892c2=_0xf892c2||_0x587d23['isContent'](_0x46d64e);const _0x345b88=_0x37695e['mapper']['toViewElement'](_0x46d64e);if(_0x345b88&&_0x345b88['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x7b1db4['type']&&(_0x587d23['isBlock'](_0x46d64e)&&!_0x587d23['isLimit'](_0x46d64e)&&(_0x46d64e['nextSibling']||_0x54aebb['isAtEnd']?_0x46665f&&_0x46665f['parent']==_0x46d64e||(_0x46665f=_0x46d64e,_0x2653eb(_0x7b1db4['previousPosition']),_0x5712a6=!0x0):_0x22f5aa=_0x22f5aa||_0x7b1db4['previousPosition']));}function _0x2653eb(_0x340b90){const _0x2aff7e=_0x37695e['mapper']['toViewPosition'](_0x340b90),_0x470e26=_0x37695e['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1108db});_0x37695e['writer']['insert'](_0x2aff7e,_0x470e26),_0x37695e['mapper']['bindElementToMarker'](_0x470e26,_0x4148ab['markerName']);}_0xf892c2||_0x5712a6||!_0x22f5aa||_0x2653eb(_0x22f5aa);};}class _t extends _0xec5ed7{constructor(_0x1f01d3){super(_0x1f01d3);const _0x22c734=_0x1f01d3['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x22c734,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x22c734,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x517fe4=this['editor'],_0x297a4c=_0x517fe4['plugins']['get'](d),_0x1116c8=_0x297a4c['isReady']?_0x297a4c['diff']['newRevisionId']:null;_0x517fe4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1116c8);}['refresh'](){const {isReady:_0x52816d,isEnabled:_0x5943a4,repository:_0x5aa519,diff:_0x4f9ecd}=this['editor']['plugins']['get'](d),_0x114756=_0x4f9ecd&&_0x5aa519['getLaterVisibleRevision'](_0x4f9ecd['newRevisionId']);this['isEnabled']=_0x52816d&&_0x5943a4&&Boolean(_0x114756);}}class yt extends _0xec5ed7{['_step'];constructor(_0x2cfae1,{direction:_0x548bc0}){super(_0x2cfae1);const _0x3fa38d=_0x2cfae1['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x548bc0?0x1:-0x1,this['listenTo'](_0x3fa38d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3fa38d,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3fa38d,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4d192a=this['editor'],_0x2797c3=_0x4d192a['plugins']['get'](d),{isNavigationMode:_0x83f0c0,currentChangeNumber:_0x5035ef}=_0x2797c3;let _0x4fc0ce;if(_0x2797c3['activeChange']=_0x83f0c0?_0x2797c3['diff']['changes']['get'](_0x5035ef+this['_step']):_0x2797c3['diff']['changes']['first'],_0x2797c3['activeChange']['data']['isOnRoot'])_0x4fc0ce=_0x4d192a['editing']['view']['getDomRoot'](_0x2797c3['activeChange']['rootName']);else{const _0x379ff2=_0x4d192a['model']['markers']['get']('revision:'+_0x2797c3['activeChange']['id']);_0x4fc0ce=_0x5b4e3d(_0x4d192a['editing'],_0x379ff2);}_0x405417({'target':_0x4fc0ce,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x27ac84,currentChangeNumber:_0x48d462,numberOfChanges:_0x591139,isReady:_0xfd0c41,isEnabled:_0xc11de7}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xc11de7&&_0xfd0c41&&_0x591139)&&(!_0x27ac84||(0x1===this['_step']?_0x48d462<_0x591139-0x1:_0x48d462>0x0));}}class bi extends _0x3bf5ec{constructor(_0x156cb2){super(_0x156cb2);const _0x14b87c=this['bindTemplate'],_0x1cb60c=new _0x2d0f60(_0x156cb2),_0x36be8c=new _0x2d0f60(_0x156cb2);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',(_0x46b070,_0xdbaaa0)=>_0x46b070&&_0xdbaaa0>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xbdbe0d,_0x2ddd20,_0xdea9e0,_0x177ea1)=>{if(!_0xbdbe0d)return m(_0x156cb2,'Loading...');if(!_0xdea9e0)return m(_0x156cb2,'No\x20changes');const _0x4ebf55=m(_0x156cb2,'NUMBER_OF_CHANGES',_0xdea9e0);return _0x177ea1?m(_0x156cb2,'X_OF_Y_CHANGES',[_0x2ddd20+0x1,_0xdea9e0]):_0x4ebf55;}),_0x1cb60c['set']({'label':m(_0x156cb2,'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'}),_0x36be8c['set']({'label':m(_0x156cb2,'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'}),_0x1cb60c['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x36be8c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1cb60c['on']('execute',()=>this['fire']('execute','backward')),_0x36be8c['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',_0x14b87c['if']('_isStatusLabelVisible','ck-hidden',_0x1d1b68=>!_0x1d1b68)]},'children':[{'text':_0x14b87c['to']('isNavigationMode',_0x5cab75=>_0x5cab75?m(_0x156cb2,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x156cb2,'Total')+':\x20')}]},{'text':_0x14b87c['to']('_statusText')}]},new _0x468ccf(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1cb60c,_0x36be8c]}]});}}const ie='ck-editor__editable__loading-overlay';class te extends _0x5dff76{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4da554=this['editor']['editing']['view'];_0x4da554['change'](_0x567c23=>{for(const _0x3090f4 of _0x4da554['document']['roots'])_0x567c23['addClass'](ie,_0x3090f4);});}['hide'](){const _0x1d1bc0=this['editor']['editing']['view'];_0x1d1bc0['change'](_0x226022=>{for(const _0x1a21a8 of _0x1d1bc0['document']['roots'])_0x226022['removeClass'](ie,_0x1a21a8);});}}class g extends _0x5dff76{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,te];}['init'](){const _0x2b7b99=this['editor'],_0x456383=_0x2b7b99['plugins']['get'](d),_0x96b809=_0x2b7b99['plugins']['get'](te);_0x2b7b99['ui']['componentFactory']['add']('exitToEditing',_0x3e0410=>{const _0x1c1b7d=new _0x2d0f60(_0x3e0410);return _0x1c1b7d['set']({'label':m(_0x3e0410,'Back\x20to\x20editing'),'icon':_0x5231c5['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1c1b7d,'execute',()=>{_0x2b7b99['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1c1b7d;}),_0x2b7b99['ui']['componentFactory']['add']('restoreRevision',_0x27cb32=>{const _0x138853=new _0x2d0f60(_0x27cb32);return _0x138853['set']({'label':m(_0x27cb32,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x138853['bind']('isEnabled')['to'](_0x2b7b99['commands']['get']('restoreRevision')),this['listenTo'](_0x138853,'execute',()=>_0x2b7b99['execute']('restoreRevision')),_0x138853;}),_0x2b7b99['ui']['componentFactory']['add']('changesNavigation',_0x158959=>{const _0x4732a1=new bi(_0x158959),_0x25249d=_0x2b7b99['commands']['get']('showPreviousChange'),_0xc654cf=_0x2b7b99['commands']['get']('showNextChange');return _0x4732a1['bind']('isBackwardNavigationEnabled')['to'](_0x25249d,'isEnabled'),_0x4732a1['bind']('isForwardNavigationEnabled')['to'](_0xc654cf,'isEnabled'),_0x4732a1['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x456383),this['listenTo'](_0x4732a1,'execute',(_0x184c29,_0x40e840)=>{_0x2b7b99['execute']('forward'===_0x40e840?'showNextChange':'showPreviousChange');}),_0x4732a1;}),_0x96b809['show'](),_0x456383['on']('change:isReady',(_0x1a5660,_0x2d238a,_0x11b6c1)=>{_0x11b6c1?_0x96b809['hide']():_0x96b809['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x4e7c1f,_0x4d6490){super(_0x4e7c1f,_0x4d6490);const _0x32337b=this['bindTemplate'];this['set']({'label':m(_0x4e7c1f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4e7c1f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x32337b['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 _0x2f3878=this['fieldView']['element'];this['_tooltipString']=_0x2f3878['scrollWidth']>_0x2f3878['clientWidth']&&_0x2f3878['value']||'';}}class ti extends _0x3bf5ec{constructor(_0x3b1d32,_0x18e276,_0x26cf1e){super(_0x3b1d32);const _0xb2c136=new _0x23bb3e();_0xb2c136['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 _0x1ead3c=['ck','ck-revision-history-sidebar__revision-author'];_0x26cf1e&&_0x1ead3c['push']('ck-revision-history-sidebar__revision-author_creator');const _0x557693=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x3b1d32,_0x26cf1e?'Revision\x20creator':'Revision\x20author')},'children':[_0xb2c136,_0x18e276['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1ead3c},'children':_0x557693});}}function ni(_0x5b881b,_0x3d1bc6){const _0x141bad=_0x5b881b['bindTemplate'],_0x338406=_0x5b881b['locale'],_0x535cc4=_0x43bd20(_0x338406);_0x535cc4['panelPosition']='sw';const _0x72957b=function(_0x287d1b,_0x25e013){const _0xf564fb=function(_0x3515f7,_0x1b424b){const _0x5e104c=_0x3515f7['locale'],_0x484051={'Compare\x20against\x20selected':m(_0x5e104c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x5e104c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x5e104c,'Restore\x20this\x20revision')};return _0x1b424b['map'](_0x3ceb95=>{const _0x395c4d=_0x484051[_0x3ceb95['name']];return _0x395c4d&&_0x395c4d!==_0x3ceb95['name']&&(_0x3ceb95['name']=_0x395c4d),_0x3ceb95;});}(_0x287d1b,_0x25e013),_0x5bdbfa=new _0x1959cb();for(const _0x52f208 of _0xf564fb){const _0x1d6709={'type':'button','model':new to({'label':_0x52f208['name'],'class':_0x52f208['class'],'withText':!0x0,'role':'menuitem','_action':_0x52f208['action']})};_0x1d6709['model']['bind']('isEnabled')['to'](_0x287d1b,'isActionsDropdownOpen',_0x2de421=>'function'!=typeof _0x52f208['isEnabled']||(!_0x2de421||_0x52f208['isEnabled'](_0x287d1b))),_0x5bdbfa['add'](_0x1d6709);}return _0x5bdbfa;}(_0x5b881b,_0x3d1bc6);return _0x5b881b['bind']('isActionsDropdownOpen')['to'](_0x535cc4,'isOpen'),_0x535cc4['buttonView']['set']({'label':m(_0x338406,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5231c5['threeVerticalDots']}),_0x535cc4['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x141bad['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x141bad['to'](_0x1769db=>_0x1769db['stopPropagation']())}}),_0x535cc4['on']('execute',_0x38cac8=>{_0x5b881b['isReady']&&'function'==typeof _0x38cac8['source']['_action']&&_0x38cac8['source']['_action'](_0x5b881b);}),_0x479047(_0x535cc4,_0x72957b,{'role':'menu'}),_0x535cc4['listenTo'](_0x5b881b,'change:isActionsDropdownOpen',(_0x2d43dd,_0x358408,_0xa6aafa)=>{if(_0xa6aafa)for(const _0x344140 of _0x535cc4['listView']['items']){const _0x3b82e1=_0x344140['children']['first'],_0x4e6047=_0x3d1bc6['find'](_0x396f24=>_0x396f24['action']===_0x3b82e1['_action'])['isVisible'];_0x344140['isVisible']=void 0x0===_0x4e6047||_0x4e6047(_0x5b881b);}}),_0x535cc4;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x46b414(_0x3bf5ec){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x55ea53,_0x38e028,_0x2ace6d,_0x65dc37){super(_0x55ea53);const _0x11edb5=this['bindTemplate'],_0x2f68b0=function(_0x446bcb,_0x544680){const _0x273986=Array['from'](_0x544680['authors'])['filter'](_0x36922e=>_0x36922e!=_0x544680['creator']);return _0x544680['creator']&&_0x273986['unshift'](_0x544680['creator']),_0x273986['map'](_0x43e9e5=>new ti(_0x446bcb,_0x43e9e5,_0x43e9e5==_0x544680['creator']));}(_0x55ea53,_0x38e028);this['id']=_0x38e028['id'],this['_revision']=_0x38e028,this['_requireRevisionName']=_0x65dc37,this['bind']('name','createdAt')['to'](_0x38e028),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x424239=>{return _0x5b69a9=_0x55ea53['uiLanguage'],(_0x189921=_0x424239)['toLocaleDateString'](_0x5b69a9,{'month':'long','day':'numeric'})+',\x20'+_0x189921['toLocaleTimeString'](_0x5b69a9,{'hour':'numeric','minute':'numeric'});var _0x5b69a9,_0x189921;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x55ea53,_0x3aea96),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x393182=>_0x393182||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4efd9f,_0x1260ec)=>_0x4efd9f&&_0x1260ec),this['revisionActionsView']=_0x2ace6d&&_0x2ace6d['length']?ni(this,_0x2ace6d):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x11edb5['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x11edb5['if']('isEnabled','ck-disabled',_0x207387=>!_0x207387),_0x11edb5['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x11edb5['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x11edb5['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':_0x11edb5['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':_0x2f68b0}]},this['revisionActionsView']],'on':{'click':_0x11edb5['to'](_0x287c7b=>{_0x287c7b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x6a7b7d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x6a7b7d,'change',()=>{this['_requireRevisionName']&&!_0x6a7b7d['value']||this['fire']('setName',{'id':this['id'],'name':_0x6a7b7d['value']}),_0x6a7b7d['value']||(_0x6a7b7d['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(_0x358792,_0x59d480){const _0x77fa6c=_0x1c64c5['fromJSDate'](_0x358792)['setLocale'](_0x59d480),_0x3cf8e8=_0x1c64c5['local'](),_0x14e018=_0x3cf8e8['minus']({'days':0x1})['startOf']('day');let _0x28fdca,_0x58a6ac;return _0x77fa6c['hasSame'](_0x3cf8e8,'day')?(_0x28fdca=_0x77fa6c['startOf']('day')['toJSDate'](),_0x58a6ac=_0x77fa6c['toRelativeCalendar']()):_0x77fa6c['hasSame'](_0x14e018,'day')?(_0x28fdca=_0x14e018['toJSDate'](),_0x58a6ac=_0x77fa6c['toRelativeCalendar']()):_0x77fa6c['hasSame'](_0x3cf8e8,'week')?(_0x28fdca=_0x77fa6c['startOf']('week')['toJSDate'](),_0x58a6ac=_0x77fa6c['weekdayLong']||''):_0x77fa6c['hasSame'](_0x3cf8e8,'year')?(_0x28fdca=_0x77fa6c['startOf']('month')['toJSDate'](),_0x58a6ac=_0x77fa6c['monthLong']||''):(_0x28fdca=_0x77fa6c['startOf']('year')['toJSDate'](),_0x58a6ac=String(_0x77fa6c['year'])),{'startDate':_0x28fdca,'localizedPeriodName':_0x58a6ac};}class mi extends _0x3bf5ec{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4b6151,_0x108b0c,_0x137a6a,_0x45f055){super(_0x4b6151);const _0x4561e6=di(_0x108b0c,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x108b0c,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x137a6a,this['_requireRevisionName']=_0x45f055,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':_0x4561e6}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x1bc209){const _0x4b2522=new ai(this['locale'],_0x1bc209,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4b2522);}['removeRevision'](_0x3f02ba){const _0x4cf282=this['revisionViews']['find'](_0x4d54a5=>_0x4d54a5['id']===_0x3f02ba['id']);this['revisionViews']['remove'](_0x4cf282);}}class rs extends _0x3bf5ec{constructor(_0x58dd97){super(_0x58dd97);const _0x26b00a=new _0x23bb3e();_0x26b00a['content']=_0x5231c5['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x26b00a,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x58dd97,'Revision\x20history')]}]});}}class ci extends _0x3bf5ec{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x59cdf3,_0x40f503,_0x1d1e16,_0x83556f){super(_0x59cdf3);const _0x3c53e4=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x40f503,this['_revisionActions']=_0x1d1e16,this['_requireRevisionName']=_0x83556f,this['on']('select',(_0x441175,_0x21056f)=>{this['fire']('revisionSelected',_0x21056f);}),this['on']('setName',(_0x4c6f20,_0x4d3034)=>{this['fire']('revisionSetName',_0x4d3034);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x59cdf3),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3c53e4['if']('isEnabled','ck-disabled',_0x203cea=>!_0x203cea)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x33b584 of this['_revisions'])this['_addRevision'](_0x33b584);this['_revisions']['on']('add',(_0x2aee56,_0x5186bf)=>{this['_addRevision'](_0x5186bf);}),this['_revisions']['on']('remove',(_0x5b2081,_0x32bc91)=>{this['_removeRevision'](_0x32bc91);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2a98a0=>_0x2a98a0['revisionViews']['map'](_0x35dbf3=>_0x35dbf3))['flat']();}['selectRevision'](_0x3162c3){for(const _0x31bf60 of this['revisionViews'])_0x3162c3&&_0x3162c3['id']===_0x31bf60['id']?_0x31bf60['select']():_0x31bf60['deselect']();}['highlightRevisions'](_0x197c4a){for(const _0x5aae62 of this['revisionViews'])_0x197c4a['some'](({id:_0x48a6b7})=>_0x48a6b7===_0x5aae62['id'])?_0x5aae62['highlight']():_0x5aae62['unhighlight']();}['_addRevision'](_0x509094){const _0x5cc332=di(_0x509094['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xad6486=this['timePeriodViews']['get'](0x0);_0xad6486&&_0xad6486['startDate']['getTime']()===_0x5cc332['getTime']()||(_0xad6486=new mi(this['locale'],_0x5cc332,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xad6486)),_0xad6486['addRevision'](_0x509094);}['_removeRevision'](_0x530a8b){const _0x37ad2a=di(_0x530a8b['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x37ad2a)['removeRevision'](_0x530a8b);}['_getTimePeriodViewByStartDate'](_0x521bd1){return this['timePeriodViews']['find'](_0x1003c2=>_0x1003c2['startDate']['getTime']()===_0x521bd1['getTime']());}}class w extends _0x5dff76{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x310331,uid as _0x4b945d,Collection as _0x5e4f58,logWarning as _0x16d809,FocusTracker as _0x2fd6cd,KeystrokeHandler as _0x4d9c7b,scrollViewportToShowTarget as _0x479610,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x3867aa}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5e8e51,set as _0x41d25e,unset as _0x479bcf,isEqual as _0x1d5471}from'lodash-es';import{Plugin as _0xf0a0b,PendingActions as _0x5ce2cd,icons as _0x580a31,Command as _0x1001ce,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x225e2a,getMarkerDomElement as _0x216bee,ConfirmMixin as _0xa3ae3f,sanitizeEditorConfig as _0x1a83ae}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0xbc8b9d,ViewText as _0x331fa8,ViewElement as _0x1e1b37,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x4bc199,ViewAttributeElement as _0x49254f,ViewEmptyElement as _0x2de322,ViewRawElement as _0x7e96d6,ViewUIElement as _0x55fe2e,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x46e692,injectCssTransitionDisabler as ts,submitHandler as _0xc09350,LabeledFieldView as nt,createLabeledInputText as _0x8c8f78,createDropdown as _0x161ce7,ListView as te,ListItemView as _0x3657d9,ButtonView as _0x319a68,MenuBarMenuView as _0x102002,MenuBarMenuListView as _0x47b54a,MenuBarMenuListItemView as _0x469bb2,MenuBarMenuListItemButtonView as _0x32e8f4,ContextualBalloon as _0x5d5754,ToolbarSeparatorView as _0x561d34,IconView as _0x3f11b3,addListToDropdown as _0x3f681e,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1ecbea}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x310331(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x22fbbe){super(),this['id']=_0x22fbbe['id']||_0x4b945d(),this['creator']=_0x22fbbe['creator']||null,this['authors']=_0x22fbbe['authors']||[],this['diffData']=_0x22fbbe['diffData']||null,this['toVersion']=_0x22fbbe['toVersion']||0x0,this['fromVersion']=_0x22fbbe['fromVersion']||0x0,this['set']('name',_0x22fbbe['name']||''),this['set']('createdAt',_0x22fbbe['createdAt']||new Date()),this['set']('attributes',_0x22fbbe['attributes']||{});}['setName'](_0xfa8d34){this['_update']({'name':_0xfa8d34});}['setAttribute'](_0x1882af,_0x25b1f1){const _0x31d992=_0x5e8e51(this['attributes']);_0x41d25e(_0x31d992,_0x1882af,_0x25b1f1),this['_update']({'attributes':_0x31d992});}['removeAttribute'](_0x2878b6){const _0x54630d=_0x5e8e51(this['attributes']);_0x479bcf(_0x54630d,_0x2878b6),this['_update']({'attributes':_0x54630d});}['_update'](_0x4f462c,_0x1bf761=!0x1){let _0x312a9f=!0x1;const _0x5eab3d={'id':this['id']},_0x276a08=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x15d7dd of _0x276a08){const _0x4efd99=_0x4f462c[_0x15d7dd];void 0x0!==_0x4efd99&&_0x4efd99!==this[_0x15d7dd]&&(this[_0x15d7dd]=_0x4efd99,_0x5eab3d[_0x15d7dd]=_0x4efd99,_0x312a9f=!0x0);}_0x312a9f&&(_0x5eab3d['authors']&&(_0x5eab3d['authorsIds']=_0x5eab3d['authors']['map'](_0x773840=>_0x773840['id']),delete _0x5eab3d['authors']),this['fire']('_update',_0x5eab3d,_0x1bf761));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2eb8da=>_0x2eb8da['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0xf0a0b{['_revisions'];static get['requires'](){return[_0x225e2a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xdac8f7){super(_0xdac8f7),this['_revisions']=new _0x5e4f58();}['afterInit'](){!async function(_0x123187){const _0x301938=_0x1a3d27([0x30,0x54,0x47,0x42,0x6a,0x59,0x71,0x6d,0x64,0x74,0x4f,0x50,0x7a,0x66,0x52,0x69,0x45,0x43,0x38,0x72,0x70,0x44,0x6f,0x77,0x61,0x6b,0x68,0x4c,0x36,0x37,0x4d,0x78,0x49,0x63,0x58,0x4b,0x4a,0x4e,0x41,0x73,0x48,0x56,0x31,0x76,0x6c,0x5a,0x65,0x39,0x6e,0x51,0x67,0x62,0x79,0x35,0x46,0x32,0x34,0x33,0x75,0x53,0x55,0x57]),_0x19792c=0xeb829,_0x145386=0x7fb70365,_0xf4d9fc=0x7fb05f95^_0x145386,_0x66c8d6=window[_0x1a3d27([0x44,0x61,0x74,0x65])][_0x1a3d27([0x6e,0x6f,0x77])](),_0x216d7f=_0x123187[_0x1a3d27([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x361c5d=new window[(_0x1a3d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21dba7=>{_0x216d7f[_0x1a3d27([0x6f,0x6e,0x63,0x65])](_0x1a3d27([0x72,0x65,0x61,0x64,0x79]),_0x21dba7);}),_0x3498a7={[_0x1a3d27([0x6b,0x74,0x79])]:_0x1a3d27([0x45,0x43]),[_0x1a3d27([0x75,0x73,0x65])]:_0x1a3d27([0x73,0x69,0x67]),[_0x1a3d27([0x63,0x72,0x76])]:_0x1a3d27([0x50,0x2d,0x32,0x35,0x36]),[_0x1a3d27([0x78])]:_0x1a3d27([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]),[_0x1a3d27([0x79])]:_0x1a3d27([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]),[_0x1a3d27([0x61,0x6c,0x67])]:_0x1a3d27([0x45,0x53,0x32,0x35,0x36])},_0x129283=_0x216d7f[_0x1a3d27([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1a3d27([0x67,0x65,0x74])](_0x1a3d27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x37d89f(){let _0x591603,_0x4d7d9f=null,_0x1dbaaa=null;try{if(_0x129283==_0x1a3d27([0x47,0x50,0x4c]))return _0x1a3d27([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x591603=_0x45f472(),!_0x591603)return _0x1a3d27([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x591603[_0x1a3d27([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1dbaaa=_0x5c3a88(_0x591603[_0x1a3d27([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x591603[_0x1a3d27([0x6a,0x74,0x69])])),await _0x33fdae()?_0xc7a811()?_0x5bf87c()?_0x1a3d27([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29fd23()?(_0x591603[_0x1a3d27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a3d27([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d7d9f=_0x39ec4d(_0x1a3d27([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x591603[_0x1a3d27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a3d27([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d7d9f=_0x39ec4d(_0x1a3d27([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x591603[_0x1a3d27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a3d27([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4d7d9f=_0x39ec4d(_0x1a3d27([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x38b9f0()):_0x1a3d27([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1a3d27([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1a3d27([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x459d55){return _0x1a3d27([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5bf87c(){const _0x5529c4=[_0x1a3d27([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1a3d27([0x74,0x72,0x69,0x61,0x6c])][_0x1a3d27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x591603[_0x1a3d27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x66c8d6/0x3e8:0xe10*_0xf4d9fc;return _0x591603[_0x1a3d27([0x65,0x78,0x70])]<_0x5529c4;}function _0xc7a811(){const _0x94f63=_0x591603[_0x1a3d27([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x94f63)return!0x1;if(_0x94f63[_0x1a3d27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a3d27([0x2a])))return!0x0;if(_0x94f63[_0x1a3d27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a3d27([0x52,0x48])))return!0x0;if(_0x94f63[_0x1a3d27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a3d27([0x52,0x52,0x48]))){if(_0x1e237d())return!0x0;if(_0x44faf7()||_0x1b6896())return!0x0;}return!0x1;}function _0x29fd23(){const _0x51b781=_0x591603[_0x1a3d27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x51b781||0x0==_0x51b781[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4210a9}=new URL(window[_0x1a3d27([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x51b781[_0x1a3d27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4210a9))return!0x0;const _0x443cdf=_0x4210a9[_0x1a3d27([0x73,0x70,0x6c,0x69,0x74])](_0x1a3d27([0x2e]));return _0x51b781[_0x1a3d27([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x425426=>_0x425426[_0x1a3d27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a3d27([0x2a])))[_0x1a3d27([0x6d,0x61,0x70])](_0x983fc5=>_0x983fc5[_0x1a3d27([0x73,0x70,0x6c,0x69,0x74])](_0x1a3d27([0x2e])))[_0x1a3d27([0x73,0x6f,0x6d,0x65])](_0x4d6795=>_0x443cdf[_0x1a3d27([0x65,0x76,0x65,0x72,0x79])]((_0x33b63e,_0x5c7a95)=>_0x4d6795[_0x5c7a95]===_0x33b63e||_0x4d6795[_0x5c7a95]===_0x1a3d27([0x2a])));}function _0x38b9f0(){return _0x4d7d9f&&_0x1dbaaa?new window[(_0x1a3d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2208cd,_0x40d603)=>{_0x4d7d9f[_0x1a3d27([0x74,0x68,0x65,0x6e])](_0x2208cd,_0x40d603),_0x1dbaaa[_0x1a3d27([0x74,0x68,0x65,0x6e])](_0x8ce048=>{_0x8ce048!=_0x1a3d27([0x56,0x61,0x6c,0x69,0x64])&&_0x2208cd(_0x8ce048);},_0x40d603);}):_0x4d7d9f||_0x1dbaaa||_0x1a3d27([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c3a88(_0x2b70f0,_0x1bac85){return new window[(_0x1a3d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb5f8f1=>{if(_0xff1f5b())return _0xb5f8f1(_0x1a3d27([0x56,0x61,0x6c,0x69,0x64]));_0x65bd07(),_0x216d7f[_0x1a3d27([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1a3d27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2716d1=!0x1;const _0xc5c78=_0x4b945d();function _0x4c8ec6(_0x235f38){return!!_0x235f38&&(typeof _0x235f38===_0x1a3d27([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x235f38===_0x1a3d27([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x235f38[_0x1a3d27([0x74,0x68,0x65,0x6e])]===_0x1a3d27([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x235f38[_0x1a3d27([0x63,0x61,0x74,0x63,0x68])]===_0x1a3d27([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46d22f(_0x4d2bcc){_0x5390ee(_0x4d2bcc)[_0x1a3d27([0x74,0x68,0x65,0x6e])](_0x559a6d=>{if(!_0x559a6d||_0x559a6d[_0x1a3d27([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1a3d27([0x6f,0x6b]))return _0x1a3d27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35c018(_0x90c949(_0xc5c78+_0x1bac85))!=_0x559a6d[_0x1a3d27([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1a3d27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1a3d27([0x56,0x61,0x6c,0x69,0x64]);})[_0x1a3d27([0x74,0x68,0x65,0x6e])](_0x1aef51=>(_0xc457f7(),_0x1aef51),()=>{const _0x272eb5=_0x3b3ee8();return null==_0x272eb5?(_0xc457f7(),_0x1a3d27([0x56,0x61,0x6c,0x69,0x64])):_0x1a3d27(_0x66c8d6-_0x272eb5>(0x5bbb8765^_0x145386)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1a3d27([0x74,0x68,0x65,0x6e])](_0xb5f8f1)[_0x1a3d27([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb5f8f1(_0x1a3d27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x506aed=0x7f81ede5^_0x145386;function _0xc457f7(){const _0x530b1d=_0x1a3d27([0x6c,0x6c,0x63,0x74,0x2d])+_0x35c018(_0x90c949(_0x2b70f0)),_0x2bba4c=_0x38b9a9(_0x35c018(window[_0x1a3d27([0x4d,0x61,0x74,0x68])][_0x1a3d27([0x63,0x65,0x69,0x6c])](_0x66c8d6/_0x506aed)));window[_0x1a3d27([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a3d27([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x530b1d,_0x2bba4c);}function _0x3b3ee8(){const _0x30b91e=_0x1a3d27([0x6c,0x6c,0x63,0x74,0x2d])+_0x35c018(_0x90c949(_0x2b70f0)),_0x1a20c4=window[_0x1a3d27([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a3d27([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30b91e);return _0x1a20c4?window[_0x1a3d27([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38b9a9(_0x1a20c4),0x10)*_0x506aed:null;}function _0x5390ee(_0x24542d){return new window[(_0x1a3d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a90d2,_0x424009)=>{_0x24542d[_0x1a3d27([0x74,0x68,0x65,0x6e])](_0x3a90d2,_0x424009),window[_0x1a3d27([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x424009,0x7fb6d7a5^_0x145386);});}}_0x216d7f[_0x1a3d27([0x6f,0x6e])](_0x1a3d27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x458c01,_0xb94d6a)=>{if(_0xb94d6a[0x0]!=_0x2b70f0)return _0xb5f8f1(_0x1a3d27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb94d6a[0x1]={..._0xb94d6a[0x1],[_0x1a3d27([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc5c78};},{[_0x1a3d27([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a3d27([0x68,0x69,0x67,0x68])}),_0x216d7f[_0x1a3d27([0x6f,0x6e])](_0x1a3d27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3c3f98=>{_0x4c8ec6(_0x3c3f98[_0x1a3d27([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2716d1=!0x0,_0x46d22f(_0x3c3f98[_0x1a3d27([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1a3d27([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a3d27([0x6c,0x6f,0x77])}),_0x361c5d[_0x1a3d27([0x74,0x68,0x65,0x6e])](()=>{_0x2716d1||_0xb5f8f1(_0x1a3d27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xff1f5b(){return _0x216d7f[_0x1a3d27([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a3d27([0x76,0x69,0x65,0x77])][_0x1a3d27([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1a3d27([0x61,0x75,0x74,0x6f]);}function _0x65bd07(){_0x216d7f[_0x1a3d27([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a3d27([0x76,0x69,0x65,0x77])][_0x1a3d27([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a3d27([0x61,0x75,0x74,0x6f]);}}function _0x39ec4d(_0x2ce56e){const _0x47272a=[new window[(_0x1a3d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33d59d=>setTimeout(_0x33d59d,0x7fbe3da9^_0x145386)),_0x361c5d[_0x1a3d27([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1a3d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x91fdb2=>{const _0x1a17e6=0x7fb70362^_0x145386,_0x551af6=_0x123187[_0x1a3d27([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x143dde(){_0x551af6[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1a17e6&&_0x91fdb2();}_0x143dde(),_0x551af6[_0x1a3d27([0x6f,0x6e])](_0x1a3d27([0x61,0x64,0x64]),_0x143dde);})),new window[(_0x1a3d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x346e3d=>{function _0x3a571b(){for(const _0x25d201 in window)if(window[_0x1a3d27([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1a3d27([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x25d201))&&window[_0x25d201]==_0x19792c)return _0x346e3d();_0x216d7f[_0x1a3d27([0x73,0x74,0x61,0x74,0x65])]!=_0x1a3d27([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1a3d27([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a571b,0x7fb710ed^_0x145386);}_0x578676(_0x1a3d27([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3a571b();})];return window[_0x1a3d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a3d27([0x72,0x61,0x63,0x65])](_0x47272a)[_0x1a3d27([0x74,0x68,0x65,0x6e])](()=>_0x2ce56e);}async function _0x4851cb(){if(await _0x361c5d,_0x578676(_0x1a3d27([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x12242b=_0x123187[_0x1a3d27([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4dedc4=_0x123187[_0x1a3d27([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])](_0x12242b[_0x1a3d27([0x69,0x64])]),_0x10211e=_0x34f092(_0x1a3d27([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x10211e[_0x1a3d27([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x12242b['id'],_0x4dedc4?_0x4dedc4['id']:null,!0x0),_0x10211e[_0x1a3d27([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1a3d27([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x10211e[_0x1a3d27([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x10211e[_0x1a3d27([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5991c3,void(_0x10211e[_0x1a3d27([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5991c3);}if(_0x578676(_0x1a3d27([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x293a3c=_0x34f092(_0x1a3d27([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x293a3c[_0x1a3d27([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1a3d27([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x293a3c[_0x1a3d27([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x293a3c[_0x1a3d27([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5991c3,_0x293a3c[_0x1a3d27([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5991c3;}_0x216d7f[_0x1a3d27([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a3d27([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5991c3,_0x216d7f[_0x1a3d27([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a3d27([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5991c3,_0x216d7f[_0x1a3d27([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1a3d27([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e237d(){return _0x578676(_0x1a3d27([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x34f092(_0x1a3d27([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1a3d27([0x73,0x74,0x61,0x74,0x65])]==_0x1a3d27([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x44faf7(){return _0x578676(_0x1a3d27([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 _0x1b6896(){return _0x578676(_0x1a3d27([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x54ae22(_0x49387f){const _0x38a3c1=_0x1b8bbd();_0x216d7f[_0x38a3c1]=_0x1a3d27([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])+_0x49387f,_0x49387f[_0x1a3d27([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1a3d27([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1b8bbd()]=_0x19792c),_0x49387f!=_0x1a3d27([0x56,0x61,0x6c,0x69,0x64])&&_0x4851cb();}function _0x1b8bbd(){const _0x3e6e10=window[_0x1a3d27([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1a3d27([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1a3d27([0x6e,0x6f,0x77])]())[_0x1a3d27([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1a3d27([0x2e]),'');let _0x1e9e74=_0x1a3d27([0x54]);for(let _0x2388d1=0x0;_0x2388d1<_0x3e6e10[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2388d1+=0x2){let _0x44c0bc=window[_0x1a3d27([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e6e10[_0x1a3d27([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2388d1,_0x2388d1+0x2));_0x44c0bc>=_0x301938[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x44c0bc-=_0x301938[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e9e74+=_0x301938[_0x44c0bc];}return _0x1e9e74;}function _0x45f472(){const _0x8b3828=_0x129283[_0x1a3d27([0x73,0x70,0x6c,0x69,0x74])](_0x1a3d27([0x2e]));if(0x3!=_0x8b3828[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ef362(_0x8b3828[0x1]);function _0x1ef362(_0x363bcf){const _0x3f5d72=_0x188727(_0x363bcf);return _0x3f5d72&&_0x235932()?_0x3f5d72:null;function _0x235932(){const _0x4cd4ec=_0x3f5d72[_0x1a3d27([0x6a,0x74,0x69])],_0x1d5fcf=window[_0x1a3d27([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cd4ec[_0x1a3d27([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4cd4ec[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2957c5={..._0x3f5d72,[_0x1a3d27([0x6a,0x74,0x69])]:_0x4cd4ec[_0x1a3d27([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4cd4ec[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2957c5[_0x1a3d27([0x76,0x63])],_0x90c949(_0x2957c5)==_0x1d5fcf;}}}async function _0x33fdae(){let _0x391377=!0x0;try{const _0x384b7c=_0x129283[_0x1a3d27([0x73,0x70,0x6c,0x69,0x74])](_0x1a3d27([0x2e])),[_0x5f0601,_0x43b52b,_0x5f7138]=_0x384b7c;return _0x326133(_0x5f0601),await _0x3a5a9f(_0x5f0601,_0x43b52b,_0x5f7138),_0x391377;}catch(_0x2d66e5){return!0x1;}function _0x326133(_0x2fadcb){const _0x479273=_0x188727(_0x2fadcb);_0x479273&&_0x479273[_0x1a3d27([0x61,0x6c,0x67])]==_0x1a3d27([0x45,0x53,0x32,0x35,0x36])||(_0x391377=!0x1);}async function _0x3a5a9f(_0x3206b6,_0x1ce817,_0x4d9985){const _0x18e859=window[_0x1a3d27([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1a3d27([0x66,0x72,0x6f,0x6d])](_0x19fe96(_0x4d9985),_0x280717=>_0x280717[_0x1a3d27([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10831a=new window[(_0x1a3d27([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1a3d27([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3206b6+_0x1a3d27([0x2e])+_0x1ce817),_0x547f21=window[_0x1a3d27([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1a3d27([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x547f21)return;const _0x348ff5=await _0x547f21[_0x1a3d27([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1a3d27([0x6a,0x77,0x6b]),_0x3498a7,{[_0x1a3d27([0x6e,0x61,0x6d,0x65])]:_0x1a3d27([0x45,0x43,0x44,0x53,0x41]),[_0x1a3d27([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1a3d27([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1a3d27([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x547f21[_0x1a3d27([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1a3d27([0x6e,0x61,0x6d,0x65])]:_0x1a3d27([0x45,0x43,0x44,0x53,0x41]),[_0x1a3d27([0x68,0x61,0x73,0x68])]:{[_0x1a3d27([0x6e,0x61,0x6d,0x65])]:_0x1a3d27([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x348ff5,_0x18e859,_0x10831a)||(_0x391377=!0x1);}}function _0x188727(_0x531cfd){return _0x531cfd[_0x1a3d27([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1a3d27([0x65,0x79]))?JSON[_0x1a3d27([0x70,0x61,0x72,0x73,0x65])](_0x19fe96(_0x531cfd)):null;}function _0x19fe96(_0x9ee799){return window[_0x1a3d27([0x61,0x74,0x6f,0x62])](_0x9ee799[_0x1a3d27([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1a3d27([0x2b]))[_0x1a3d27([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1a3d27([0x2f])));}function _0x90c949(_0x77f393){let _0x4f0f1f=0x1505;function _0x3b3d94(_0x56ca55){for(let _0xde776a=0x0;_0xde776a<_0x56ca55[_0x1a3d27([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xde776a++){const _0x38be04=_0x56ca55[_0x1a3d27([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xde776a);_0x4f0f1f=(_0x4f0f1f<<0x5)+_0x4f0f1f+_0x38be04,_0x4f0f1f&=_0x4f0f1f;}}function _0x273ccd(_0x59a5ee){Array[_0x1a3d27([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x59a5ee)?_0x59a5ee[_0x1a3d27([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x273ccd):_0x59a5ee&&typeof _0x59a5ee==_0x1a3d27([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1a3d27([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x59a5ee)[_0x1a3d27([0x73,0x6f,0x72,0x74])]()[_0x1a3d27([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x31ba0e,_0x44ce10])=>{_0x3b3d94(_0x31ba0e),_0x273ccd(_0x44ce10);}):_0x3b3d94(window[_0x1a3d27([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x59a5ee));}return _0x273ccd(_0x77f393),_0x4f0f1f>>>0x0;}function _0x35c018(_0xf721b3){return _0xf721b3[_0x1a3d27([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1a3d27([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1a3d27([0x30]));}function _0x38b9a9(_0x3767e4){return _0x3767e4[_0x1a3d27([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1a3d27([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1a3d27([0x6a,0x6f,0x69,0x6e])]('');}function _0x578676(_0x2dd504){return _0x216d7f[_0x1a3d27([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1a3d27([0x68,0x61,0x73])](_0x2dd504);}function _0x34f092(_0x1b7983){return _0x216d7f[_0x1a3d27([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1a3d27([0x67,0x65,0x74])](_0x1b7983);}function _0x5991c3(){}function _0x1a3d27(_0x22c1e7){return _0x22c1e7['map'](_0x4fb2d0=>String['fromCharCode'](_0x4fb2d0))['join']('');}_0x54ae22(await _0x37d89f());}(this);}['createRevision'](_0x29fa17){const _0x20b598=this['editor']['plugins']['get']('Users');return new a({'id':_0x29fa17['id'],'name':_0x29fa17['name'],'creator':_0x29fa17['creatorId']?_0x20b598['getUser'](_0x29fa17['creatorId']):null,'diffData':_0x29fa17['diffData']||_0x29fa17['data'],'authors':_0x29fa17['authorsIds']['map'](_0x238b2f=>_0x20b598['getUser'](_0x238b2f)),'createdAt':new Date(_0x29fa17['createdAt']),'attributes':_0x29fa17['attributes'],'fromVersion':_0x29fa17['fromVersion'],'toVersion':_0x29fa17['toVersion']});}['addRevision'](_0x59caf9,_0x52ac69=0x0){this['_revisions']['add'](_0x59caf9,_0x52ac69);}['getRevision'](_0x129cba){return this['_revisions']['get'](_0x129cba);}['getRevisions'](_0x4334a9={'toJSON':!0x1}){const _0x3bc6d6=Array['from'](this['_revisions']);return _0x3bc6d6['reverse'](),_0x4334a9['toJSON']?_0x3bc6d6['map'](_0x4b505d=>_0x4b505d['toJSON']()):_0x3bc6d6;}['getIndex'](_0x46f940){return this['_revisions']['getIndex'](_0x46f940);}['getEarlierVisibleRevision'](_0x4d54a4){const [,_0x10f2c1]=this['getRevisionsIterator'](_0x4d54a4,{'direction':'earlier'});return _0x10f2c1;}['getLaterVisibleRevision'](_0x1ee3cd){const [,_0x349620]=this['getRevisionsIterator'](_0x1ee3cd,{'direction':'later'});return _0x349620;}['getRevisionsInDiff'](_0x198375){const _0x129465=[];for(const _0x2eb8ae of this['getRevisionsIterator'](_0x198375['newRevisionId']))if(_0x129465['push'](_0x2eb8ae),_0x2eb8ae['id']===_0x198375['oldRevisionId'])break;return _0x129465;}*['getRevisionsIterator'](_0x2a6e7c,{direction:_0x530403='earlier',filter:_0x7baa72=()=>!0x0}={}){const _0x16f7e7='earlier'===_0x530403?0x1:-0x1;let _0x3b2a8b=this['_revisions']['get'](_0x2a6e7c),_0x2d3f51=this['getIndex'](_0x3b2a8b);for(yield _0x3b2a8b;_0x3b2a8b;){if(_0x2d3f51+=_0x16f7e7,_0x3b2a8b=this['getRevision'](_0x2d3f51),!_0x3b2a8b)return;_0x7baa72(_0x3b2a8b)&&(yield _0x3b2a8b);}}}function m(_0x1c0dff,_0x5ef570,_0x46ce3c){const t=_0x1c0dff['t'];switch(_0x5ef570){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'},_0x46ce3c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x46ce3c);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x4bc199,'a':_0x49254f,'e':_0x2de322,'r':_0x7e96d6,'u':_0x55fe2e};class l extends _0xf0a0b{['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[_0x225e2a,j,_0x5ce2cd];}constructor(_0x1ed5ea){super(_0x1ed5ea),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3495be=_0x4b945d();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3495be},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 _0x12ede0=this['repository']['getRevision'](0x0),_0xfeea2c=_0x12ede0&&null===_0x12ede0['creator']?_0x12ede0:null;if(this['_continueCurrentRevision']=!!_0xfeea2c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3a36a2=this['_source']['getCurrentRevisionId'](),_0x4ede68=this['repository']['getRevision'](_0x3a36a2);if(_0x4ede68)this['_startingVersion']=_0x4ede68['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x24f51f=this['_source']['history']['_operations']['find'](_0x5c1709=>!_0x5c1709['_isInit']),_0x317832=_0x24f51f?_0x24f51f['baseVersion']:this['_source']['history']['version'];_0x12ede0?(_0x12ede0['toVersion']<_0x317832&&_0x12ede0['_update']({'toVersion':_0x317832}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xfeea2c['id'],this['_startingVersion']=_0xfeea2c['fromVersion']):(this['_startingVersion']=_0x12ede0['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x317832,this['_continueCurrentRevision']=!0x1);}}else _0xfeea2c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xfeea2c['toVersion'],this['editor']['model']['document']['history']['version']),_0xfeea2c['fromVersion']===_0xfeea2c['toVersion']?(0x0!==_0xfeea2c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xfeea2c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xfeea2c['id'],this['_startingVersion']=_0xfeea2c['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',_0x43730a=>!_0x43730a),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4f28cf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c9972;for(const _0xfb578 in _0x4f28cf){const _0x41442b=_0xfb578,_0x415f8f=_0x4f28cf[_0x41442b];if('revisionHistoryLicenseKeyValid'==_0x415f8f||'revisionHistoryLicenseKeyInvalid'==_0x415f8f||'revisionHistoryLicenseKeyExpired'==_0x415f8f||'revisionHistoryLicenseKeyDomainLimit'==_0x415f8f||'revisionHistoryLicenseKeyNotAllowed'==_0x415f8f||'revisionHistoryLicenseKeyEvaluationLimit'==_0x415f8f||'revisionHistoryLicenseKeyTrialLimit'==_0x415f8f||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x415f8f||'revisionHistoryLicenseKeyUsageLimit'==_0x415f8f){delete _0x4f28cf[_0x41442b],_0x4c9972=_0x415f8f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4c9972&&_0x4f28cf['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4c9972&&_0x4f28cf['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4c9972&&_0x4f28cf['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4c9972&&_0x4f28cf['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4c9972&&_0x4f28cf['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4c9972&&_0x4f28cf['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4c9972&&_0x4f28cf['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4c9972&&_0x4f28cf['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x23ae08=this['repository']['getRevision'](0x0),_0x54501d=await this['getRevisionDocumentData'](_0x23ae08),_0x10fb5b=await this['getRevisionRootsAttributes'](_0x23ae08);this['_replaceEditorDataWithRevisionData'](_0x54501d,_0x10fb5b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x43ab96){this['_source']=_0x43ab96;}async['update'](){const _0x4c7159=await this['_source']['getLatestVersion']();if(_0x4c7159>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3e5a8e=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4c7159});_0x3e5a8e['authors']=_0x3e5a8e['authorsIds']['map'](_0x2f13e1=>this['editor']['plugins']['get']('Users')['getUser'](_0x2f13e1)),this['currentRevision']['_update'](_0x3e5a8e);}}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'](_0xf882c={},_0x5edff1=null){const _0x47f552=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5edff1>this['currentRevision']['toVersion']&&(_0x5edff1=null),null===_0x5edff1&&(_0x5edff1=await this['_source']['getLatestVersion']());const _0x37e4f5=this['_getFromVersion'](_0x5edff1),_0x2e253b=this['buildRevisionData']({'from':_0x37e4f5,'to':_0x5edff1});if(this['currentRevision']['toVersion']<_0x5edff1){const _0x13f29a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5edff1,'to':_0x5edff1});_0x13f29a['authors']=[],_0x13f29a['authorsIds']=[],_0x13f29a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x13f29a,!0x0),delete _0x13f29a['authors'],_0x47f552['push'](_0x13f29a);}_0xf882c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xf882c['name']=_0xf882c['name']||null,_0xf882c['id']=_0xf882c['id']||_0x4b945d(),_0xf882c={..._0xf882c,..._0x2e253b};const _0x38ea0d=this['addRevisionData'](_0xf882c);_0x47f552['push'](_0xf882c);const _0x4e1302=this['repository']['getIndex'](_0x38ea0d);if(0x0!==_0x4e1302){const _0x404649=this['repository']['getRevision'](_0x4e1302-0x1);if(_0x404649['fromVersion']!==_0x5edff1){const _0x39909e=this['_revisionDataBuilder']['getData'](_0x5edff1,_0x404649['toVersion']),_0x41b9ec={'id':_0x404649['id'],'diffData':_0x39909e['diffData'],'authorsIds':_0x39909e['authorsIds'],'authors':_0x39909e['authorsIds']['map'](_0x53cede=>this['editor']['plugins']['get']('Users')['getUser'](_0x53cede)),'fromVersion':_0x5edff1};_0x404649===this['currentRevision']&&(_0x41b9ec['createdAt']=new Date(_0xf882c['createdAt']['getTime']()+0xa)),_0x404649['_update'](_0x41b9ec,!0x0),delete _0x41b9ec['authors'],_0x47f552['push'](_0x41b9ec);}}if(this['adapter']){for(const _0x2cee04 of _0x47f552)this['_bufferUpdate'](_0x2cee04['id'],_0x2cee04,!0x0);this['sendBufferedUpdates']();}return _0x38ea0d;}['addRevisionData'](_0x17f914){const _0x2bf548=this['repository']['createRevision'](_0x17f914);return this['adapter']&&_0x2bf548['on']('_update',(_0xfa9f3,_0x2c8cae,_0x21236c)=>{_0x21236c||(this['_bufferUpdate'](_0x2c8cae['id'],_0x2c8cae,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2bf548,this['_findInsertionIndex'](_0x2bf548)),_0x2bf548;}async['getRevisionDocumentData'](_0x30a59c){await this['_loadRevisionData'](_0x30a59c);const _0x3417b2={};for(const _0x423cb2 in _0x30a59c['diffData']){if(_0x30a59c['diffData'][_0x423cb2]['attachChange']&&!_0x30a59c['diffData'][_0x423cb2]['attachChange']['isAttached'])continue;const _0x4e9ccb=this['_removeRevisionMarkers'](JSON['parse'](_0x30a59c['diffData'][_0x423cb2]['insertions'])),_0x1ef9f9=this['editor']['editing']['view']['document'],_0x5e329e=new _0xbc8b9d(_0x1ef9f9,_0x4e9ccb['map'](_0x200cf6=>C(_0x200cf6,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3417b2[_0x423cb2]=this['editor']['data']['processor']['toData'](_0x5e329e),this['editor']['data']['processor']['useFillerType']('default');}return _0x3417b2;}async['getRevisionRootsAttributes'](_0x13cdc0){await this['_loadRevisionData'](_0x13cdc0);const _0x5a0c45={};for(const _0x58f8fc in _0x13cdc0['diffData'])_0x13cdc0['diffData'][_0x58f8fc]['attachChange']&&!_0x13cdc0['diffData'][_0x58f8fc]['attachChange']['isAttached']||(_0x5a0c45[_0x58f8fc]=_0x13cdc0['diffData'][_0x58f8fc]['attributesAfter']||{});return _0x5a0c45;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x26a48b=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x30b326=0x0;_0x30b326<_0x26a48b['length'];_0x30b326++){const _0x1b006f=_0x26a48b[_0x30b326];let _0x3ad706=!0x1;for(const _0x470ad6 of Object['keys'](_0x1b006f))void 0x0===_0x1b006f[_0x470ad6]?delete _0x1b006f[_0x470ad6]:'id'!==_0x470ad6&&(_0x3ad706=!0x0);_0x3ad706||(_0x26a48b[_0x30b326]=null);}if(_0x26a48b=_0x26a48b['filter'](_0x2b6a76=>null!==_0x2b6a76),!_0x26a48b['length'])return;for(let _0x529744=0x0;_0x529744<_0x26a48b['length'];_0x529744++){const _0x143ce4=_0x26a48b[_0x529744];void 0x0!==_0x143ce4['fromVersion']&&void 0x0===_0x143ce4['toVersion']&&(_0x143ce4['toVersion']=this['repository']['getRevision'](_0x143ce4['id'])['toVersion']),void 0x0!==_0x143ce4['toVersion']&&void 0x0===_0x143ce4['fromVersion']&&(_0x143ce4['fromVersion']=this['repository']['getRevision'](_0x143ce4['id'])['fromVersion']);}const _0x5413ed=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x26a48b,_0x5413ed)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x9de0f3=>{if(_0x9de0f3){for(const _0x2c7311 of _0x9de0f3)this['setRevisionData']({'id':_0x2c7311['id'],'createdAt':_0x2c7311['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x363f9a,_0x5a8b9d){let _0x3562bf=this['editor']['config']['get']('initialData'),_0x36689b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3562bf){_0x3562bf={};for(const _0x30e1bf of this['editor']['model']['document']['getRootNames']())_0x3562bf[_0x30e1bf]='';}if('string'==typeof _0x3562bf&&(_0x3562bf={'main':_0x3562bf}),void 0x0===_0x36689b){_0x36689b={};for(const _0x1afdb4 of this['editor']['model']['document']['getRootNames']())_0x36689b[_0x1afdb4]={};}let _0x52e262=!0x1;const _0x1a2547=Object['keys'](_0x3562bf),_0x10051a=Object['keys'](_0x363f9a);for(const _0x566665 of _0x1a2547){if(_0x3562bf[_0x566665]!==_0x363f9a[_0x566665]&&''!==_0x3562bf[_0x566665]['trim']()){_0x52e262=!0x0;break;}if(!_0x1d5471(_0x36689b[_0x566665],_0x5a8b9d[_0x566665])&&Object['keys'](_0x36689b[_0x566665])['length']>0x0){_0x52e262=!0x0;break;}}_0x52e262||(_0x52e262=_0x10051a['some'](_0x4656ac=>!this['editor']['model']['document']['getRoot'](_0x4656ac))),_0x52e262&&_0x16d809('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3562bf,'editorRootsAttributes':_0x36689b,'revisionData':_0x363f9a,'revisionRootsAttributes':_0x5a8b9d}),this['editor']['config']['set']('initialData',_0x363f9a),this['editor']['config']['set']('rootsAttributes',_0x5a8b9d);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4ea6b5=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4ea6b5['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x57af36){const _0xd8b72d=this['repository']['getRevisions']();_0xd8b72d['reverse']();let _0x1165cc=0x0;for(;_0x1165cc<_0xd8b72d['length'];){const _0x36c2f2=_0xd8b72d[_0x1165cc];if(_0x36c2f2===this['currentRevision']){_0x1165cc++;continue;}if(_0x36c2f2['id']===this['_initialRevisionId'])break;const _0x4f7905=_0x57af36['toVersion']-_0x36c2f2['toVersion']||_0x57af36['fromVersion']-_0x36c2f2['fromVersion'];if(_0x4f7905>0x0)break;if(_0x4f7905<0x0)_0x1165cc++;else{if(!_0x57af36['creator']&&_0x36c2f2['creator'])break;if(_0x36c2f2['creator']||!_0x57af36['creator']){if(_0x57af36['createdAt']>_0x36c2f2['createdAt'])break;_0x1165cc++;}else _0x1165cc++;}}return _0x1165cc;}['setRevisionData'](_0x57a3e9){const _0x3eabd3=this['repository']['getRevision'](_0x57a3e9['id']);if(_0x57a3e9['createdAt']&&(_0x57a3e9['createdAt']=new Date(_0x57a3e9['createdAt'])),_0x57a3e9['authorsIds']){const _0x5ab27c=this['editor']['plugins']['get']('Users');_0x57a3e9['authors']=_0x57a3e9['authorsIds']['map'](_0x4198a8=>_0x5ab27c['getUser'](_0x4198a8));}_0x3eabd3['_update'](_0x57a3e9,!0x0);}['buildRevisionData']({revision:_0x298d63=null,from:_0x24dd1c=null,to:_0x4f7d3e=null}){_0x24dd1c=null!==_0x24dd1c?_0x24dd1c:_0x298d63['fromVersion'],_0x4f7d3e=null!==_0x4f7d3e?_0x4f7d3e:_0x298d63['toVersion'];const _0x510748=this['_revisionDataBuilder']['getData'](_0x24dd1c,_0x4f7d3e),_0x3d8631={'diffData':_0x510748['diffData'],'authorsIds':_0x510748['authorsIds'],'fromVersion':_0x24dd1c,'toVersion':_0x4f7d3e};if(!_0x298d63||_0x4f7d3e!==_0x298d63['toVersion']){const _0x22b1e6=_0x4f7d3e-0x1,_0x24c2e1=this['_source']['history']['getOperation'](_0x22b1e6);_0x3d8631['createdAt']=_0x24c2e1&&_0x24c2e1['createdAt']||new Date();}if(this['_loadedStateData']&&_0x24dd1c===this['_loadedStateData']['fromVersion']){for(const _0x31d8aa of this['_loadedStateData']['authors'])_0x3d8631['authorsIds']['includes'](_0x31d8aa['id'])||_0x3d8631['authorsIds']['push'](_0x31d8aa['id']);}return _0x3d8631;}['_loadRevisionData'](_0x1874c1){if(!_0x1874c1||_0x1874c1['diffData'])return Promise['resolve']();{const _0xce36a9=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xce36a9,'revisionId':_0x1874c1['id']})['then'](_0x26a143=>{_0x1874c1['diffData']=_0x26a143['diffData'];});}}['_bufferUpdate'](_0x5d7807,_0x17a73e,_0x121a7a){if(this['_bufferedUpdates']['has'](_0x5d7807)){const _0x939af3=this['_bufferedUpdates']['get'](_0x5d7807);_0x17a73e=_0x121a7a?{..._0x939af3,..._0x17a73e}:{..._0x17a73e,..._0x939af3};}this['_bufferedUpdates']['set'](_0x5d7807,_0x17a73e);}['_getFromVersion'](_0x506f3a){const _0xa2d102=this['repository']['getRevisions']();_0xa2d102['reverse'](),_0xa2d102['shift']();const _0x29abf4=_0xa2d102['find'](_0x1fec98=>_0x1fec98['toVersion']<=_0x506f3a)['toVersion'];return _0x29abf4<this['_startingVersion']?this['_startingVersion']:_0x29abf4;}['_createInitialRevision'](_0x9f8eb5){const _0x4f2f54=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4f2f54)this['_initialRevisionId']=_0x4f2f54['id'];else{const _0x3dcb56=!this['editor']['model']['document']['roots']['find'](_0xfc6b0f=>this['editor']['model']['hasContent'](_0xfc6b0f)),_0x48e574=this['editor']['plugins']['get']('Users')['me']['id'],_0x530c9f=m(this['editor']['locale'],_0x3dcb56?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x9f8eb5,'to':_0x9f8eb5,'id':this['_initialRevisionId'],'name':_0x530c9f,'creatorId':_0x48e574});}}['_createCurrentRevision'](_0x267496){const _0x1ac405=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1ac405),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x267496,'to':_0x267496,'id':_0x1ac405,'name':'','creatorId':null}));}['_makeRevision']({name:_0x47bf08,from:_0x40e1b8,to:_0x56b251,creatorId:_0x5d21f5,id:_0x47f3f8}){const _0x4dea83=this['buildRevisionData']({'from':_0x40e1b8,'to':_0x56b251});_0x4dea83['name']=_0x47bf08,_0x4dea83['creatorId']=_0x5d21f5,_0x4dea83['id']=_0x47f3f8;const _0x4991e3=this['addRevisionData'](_0x4dea83);return this['adapter']&&this['_bufferUpdate'](_0x4dea83['id'],_0x4dea83,!0x0),_0x4991e3;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3883ba){return(_0x3883ba=_0x3883ba['filter'](_0x4e66bc=>!_0x4e66bc['name']||'revision-start'!==_0x4e66bc['name']&&'revision-end'!==_0x4e66bc['name']))['forEach'](_0x358fe6=>{'string'!=typeof _0x358fe6&&(_0x358fe6['children']=this['_removeRevisionMarkers'](_0x358fe6['children']),_0x358fe6['attributes']=_0x358fe6['attributes']['filter'](_0x42d147=>!_0x42d147[0x0]['startsWith']('data-revision-')));}),_0x3883ba;}}function C(_0x477b42,_0x4f74b2){const _0xdc96d6=_0x4f74b2['editing']['view']['document'];if('string'==typeof _0x477b42)return new _0x331fa8(_0xdc96d6,_0x477b42);{const _0x192c3b=_0x477b42['children']['map'](_0x272fa6=>C(_0x272fa6,_0x4f74b2));return new(P[_0x477b42['type']]||_0x1e1b37)(_0xdc96d6,_0x477b42['name'],_0x477b42['attributes'],_0x192c3b);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x20a045){this['editor']=_0x20a045,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'](_0xeeb1fe){this['source']=_0xeeb1fe;const _0xe36df5=new Map(),_0x587197=new Map(),_0x5ea868=this['editor']['model']['document']['roots']['map'](_0x2f84ec=>_0x2f84ec['rootName']);for(const _0x122ba5 of _0x5ea868){const _0x4781ba=this['editor']['model']['document']['getRoot'](_0x122ba5),_0x55a8a1=T(_0x4781ba);_0xe36df5['set'](_0x122ba5,_0x55a8a1),_0x587197['set'](_0x122ba5,Object['fromEntries'](_0x4781ba['getAttributes']()));}const _0x20a27b=Array['from'](this['editor']['model']['markers'])['map'](_0x294f7c=>[_0x294f7c['name'],_0x294f7c['getRange']()]),_0x234653=this['source']['version'];this['_saveMetaData'](_0x234653,_0xe36df5,_0x20a27b,_0x587197),this['_startingRevisionId']=this['_revisionId'];const _0x4ead43=new Map(),_0x5bbcd0=new Map();for(const _0x3e7623 of _0x5ea868){const _0x10fb5c=F(_0x3e7623);_0x4ead43['set'](_0x3e7623,_0x10fb5c),_0x5bbcd0['set'](_0x3e7623,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4ead43,[],_0x5bbcd0);}['getData'](_0x54a5ff,_0x3bb4e5){if(this['_lastFrom']===_0x54a5ff&&this['_lastTo']<=_0x3bb4e5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3bb4e5,!0x0);else{if(!this['_savedMetaData']['has'](_0x54a5ff)){const _0x103c1b=this['_getPreviousFrom'](_0x54a5ff);this['_calculateMetaData'](_0x103c1b,_0x54a5ff,!0x1);}this['_calculateMetaData'](_0x54a5ff,_0x3bb4e5,!0x0);}return this['_lastFrom']=_0x54a5ff,this['_lastTo']=_0x3bb4e5,this['_getState']();}['loadState'](_0x31ea1e){this['_reset'](),this['_lastFrom']=_0x31ea1e['fromVersion'],this['_lastTo']=_0x31ea1e['toVersion'];for(const _0x18efb1 in _0x31ea1e['diffData']){const _0xde4f03=_0x31ea1e['diffData'][_0x18efb1]['attachChange'],_0x197cd1=_0x5e8e51(_0x31ea1e['diffData'][_0x18efb1]['attributesBefore'])||{},_0x3b9fdd=this['_makeModelFromViewString'](_0x31ea1e['diffData'][_0x18efb1]['deletions']);_0x3b9fdd['rootName']=_0x18efb1,_0x3b9fdd['_isAttached']=!_0xde4f03||!_0xde4f03['isAttached'],_0x3b9fdd['isAttached']=()=>_0x3b9fdd['_isAttached'],this['_baseRoots']['set'](_0x18efb1,_0x3b9fdd),this['_baseRootsAttributes']['set'](_0x18efb1,_0x197cd1),_0xde4f03&&this['_touchedRoots']['set'](_0x18efb1,_0xde4f03);const _0x534693=this['_makeIdsRoot'](_0x3b9fdd);this['_baseIdsRoots']['set'](_0x18efb1,_0x534693);for(const [_0x403e7a,_0x23ea92]of _0x3b9fdd['markers']){if(!_0x403e7a['startsWith']('revision:'))continue;const _0x198ab7=_0x403e7a['split'](':')[0x2];for(const _0x275dc4 of _0x23ea92['getWalker']({'singleCharacters':!0x0})){const _0x4e3205=this['_getVidAttributeName'](_0x275dc4),_0x53c3ca='elementEnd'==_0x275dc4['type']?_0x275dc4['previousPosition']['path']['slice'](0x0,-0x1):_0x275dc4['previousPosition']['path'],_0x24c3d7=_0x534693['getNodeByPath'](_0x53c3ca)['getAttribute'](_0x4e3205);this['_touched']['set'](_0x24c3d7,{'userId':_0x198ab7});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1ea15c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3f9b0f=>!this['_touched']['has'](_0x3f9b0f));let _0x7d88b=0x0;const _0x5c5fd7=new Map();for(const _0x5488f6 in _0x31ea1e['diffData']){const _0x3937f9=_0x31ea1e['diffData'][_0x5488f6]['attachChange'],_0x3b84dc=_0x5e8e51(_0x31ea1e['diffData'][_0x5488f6]['attributesAfter'])||{},_0x350e03=this['_makeModelFromViewString'](_0x31ea1e['diffData'][_0x5488f6]['insertions']);_0x350e03['rootName']=_0x5488f6,_0x350e03['_isAttached']=!_0x3937f9||_0x3937f9['isAttached'],_0x350e03['isAttached']=()=>_0x350e03['_isAttached'],this['_diffRoots']['set'](_0x5488f6,_0x350e03),this['_diffRootsAttributes']['set'](_0x5488f6,_0x3b84dc);const _0x268978=this['_makeIdsRoot'](_0x350e03,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5488f6,_0x268978),_0x5c5fd7['set'](_0x5488f6,_0x350e03['isAttached']()?_0x3b84dc:{});for(const [_0x16eb6c,_0x4af5b1]of _0x350e03['markers']){if(!_0x16eb6c['startsWith']('revision:'))continue;const _0x3109ad=_0x16eb6c['split'](':')[0x2];for(const _0x30953f of _0x4af5b1['getWalker']({'singleCharacters':!0x0})){const _0x3cc0f2=this['_getVidAttributeName'](_0x30953f),_0x585e2e=this['_revisionId']++,_0x28cdf8='elementEnd'==_0x30953f['type']?_0x30953f['previousPosition']['path']['slice'](0x0,-0x1):_0x30953f['previousPosition']['path'];_0x268978['getNodeByPath'](_0x28cdf8)['_setAttribute'](_0x3cc0f2,_0x585e2e),this['_touched']['set'](_0x585e2e,{'userId':_0x3109ad});}}for(const _0x9a218d of this['editor']['model']['createRangeIn'](_0x350e03)['getWalker']({'singleCharacters':!0x0})){const _0x2a710b=this['_getVidAttributeName'](_0x9a218d),_0x2292e7='elementEnd'==_0x9a218d['type']?_0x9a218d['previousPosition']['path']['slice'](0x0,-0x1):_0x9a218d['previousPosition']['path'],_0x5c4684=_0x268978['getNodeByPath'](_0x2292e7);_0x5c4684['getAttribute'](_0x2a710b)>0x0||_0x5c4684['_setAttribute'](_0x2a710b,_0x1ea15c[_0x7d88b++]);}for(const [_0x2155d0,_0x353609]of _0x350e03['markers'])_0x2155d0['startsWith']('revision:')||this['_markers']['set'](_0x2155d0,_0x353609);}const _0x191d16=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x191d16),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x191d16,0x1));const _0x4c64e2=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4c64e2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4c64e2,0x1));const _0x26b63a=Array['from'](this['_diffRoots'])['map'](([_0x49671c,_0x50bccd])=>[_0x49671c,T(_0x50bccd)]);this['_saveMetaData'](this['_lastTo'],_0x26b63a,this['_markers'],_0x5c5fd7);}['_makeModelFromViewString'](_0x10cbf4){const _0x46be1c=JSON['parse'](_0x10cbf4),_0x321ef3=this['editor']['editing']['view']['document'],_0x4b6b21=new _0xbc8b9d(_0x321ef3,_0x46be1c['map'](_0x3ee3cf=>C(_0x3ee3cf,this['editor'])));return this['editor']['data']['toModel'](_0x4b6b21);}['_saveMetaData'](_0x4567e8,_0x308f19,_0x1bd03f,_0x60518c){const _0x1acd67=new Map(_0x308f19),_0x2a7f91=new Map(_0x5e8e51(_0x60518c)),_0x55632d=new Map();for(const [_0x574a5b,_0x3ab401]of _0x1bd03f)_0x55632d['set'](_0x574a5b,{'start':_0x3ab401['start']['clone'](),'end':_0x3ab401['end']['clone'](),'rootName':_0x3ab401['root']['rootName']});this['_savedMetaData']['set'](_0x4567e8,{'roots':_0x1acd67,'markers':_0x55632d,'rootsAttributes':_0x2a7f91});}['_removeMetaData'](_0x15aecd){this['_savedMetaData']['delete'](_0x15aecd);}['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'](_0x429fc7,_0x3e541d=null){let _0x3ada72=null;_0x429fc7['is']('documentFragment')||(_0x3ada72=new ft(_0x429fc7['name'],{'vid_start':null===_0x3e541d?this['_revisionId']++:_0x3e541d++}));const _0x75e640=[];for(const _0x1b277c of _0x429fc7['getChildren']())if(_0x1b277c['is']('element')){_0x75e640['push'](this['_makeIdsRoot'](_0x1b277c,_0x3e541d));const _0xcff84a=_0x75e640[_0x75e640['length']-0x1];null!==_0x3e541d&&(_0x3e541d=_0xcff84a['is']('element','$text')?_0xcff84a['getAttribute']('vid')+0x1:_0xcff84a['getAttribute']('vid_end')+0x1);}else{for(let _0x49a9a2=0x0;_0x49a9a2<_0x1b277c['offsetSize'];_0x49a9a2++)_0x75e640['push'](new ft('$text',{'vid':null===_0x3e541d?this['_revisionId']++:_0x3e541d++}));}if(_0x429fc7['is']('documentFragment')){const _0xc81613=F(_0x429fc7['rootName']);return _0xc81613['_insertChild'](0x0,_0x75e640),_0xc81613;}return _0x3ada72['_setAttribute']('vid_end',null===_0x3e541d?this['_revisionId']++:_0x3e541d++),_0x3ada72['_insertChild'](0x0,_0x75e640),_0x3ada72;}['_calculateMetaData'](_0x3029ed,_0x310056,_0x1d5211){this['_reset']();const {roots:_0x244324,markers:_0xe19cea,rootsAttributes:_0x2502f4}=this['_savedMetaData']['get'](_0x3029ed);this['_baseRoots']=new Map(_0x244324),this['_baseRootsAttributes']=new Map(_0x5e8e51(_0x2502f4));for(const [_0x46561c,_0x1f1da0]of this['_baseRoots'])if('$graveyard'!==_0x46561c&&(this['_diffRoots']['set'](_0x46561c,T(_0x1f1da0)),this['_diffRootsAttributes']=new Map(_0x5e8e51(_0x2502f4)),_0x1d5211)){const _0x3e5497=this['_revisionId'];this['_idsRoots']['set'](_0x46561c,this['_makeIdsRoot'](_0x1f1da0)),this['_baseIdsRoots']['set'](_0x46561c,this['_makeIdsRoot'](_0x1f1da0,_0x3e5497));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x1d5211&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4caae0,_0xe8d11c]of _0xe19cea){const _0x285c3f=this['_baseRoots']['get'](_0xe8d11c['rootName']),_0x3bf332=this['_diffRoots']['get'](_0xe8d11c['rootName']),_0x572e34=new vt(this['_fixPosition'](_0xe8d11c['start'],_0x285c3f),this['_fixPosition'](_0xe8d11c['end'],_0x285c3f)),_0x2b3647=this['_fixRange'](_0x572e34,_0x3bf332);_0x285c3f['markers']['set'](_0x4caae0,_0x572e34),this['_markers']['set'](_0x4caae0,_0x2b3647);}this['_applyOperations'](_0x3029ed,_0x310056,_0x1d5211);}['_applyOperations'](_0x2827ec,_0xec530b,_0x3253a5){for(const _0x2a251c of this['source']['getOperations'](_0x2827ec,_0xec530b))this['_handleOperation'](_0x2a251c,_0x3253a5);for(const _0x29d1eb of this['_diffRoots']['values']())_0x29d1eb['markers']['clear']();for(const [_0x30b94e,_0x304391]of this['_markers']){this['_diffRoots']['get'](_0x304391['root']['rootName'])['markers']['set'](_0x30b94e,_0x304391['clone']());}const _0x53273a=new Map(),_0x5ef45d=new Map();for(const [_0x257776,_0x11cf15]of this['_diffRoots'])_0x53273a['set'](_0x257776,T(_0x11cf15)),_0x5ef45d['set'](_0x257776,this['_diffRootsAttributes']['get'](_0x257776));this['_saveMetaData'](_0xec530b,_0x53273a,this['_markers'],_0x5ef45d);}['_getPreviousFrom'](_0x369f6e){const _0x59f613=Array['from'](this['_savedMetaData']['keys']());_0x59f613['sort']((_0x346a14,_0x49c8d3)=>_0x346a14-_0x49c8d3),_0x59f613['reverse']();for(const _0x3f9786 of _0x59f613)if(_0x3f9786<_0x369f6e)return _0x3f9786;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xcfe197,_0x5f4ad2){const _0x4aaaa2=Array['from'](_0x5f4ad2['markers'])['map'](([_0x277e69,_0x156609])=>[_0x277e69,this['_fixRange'](_0x156609,_0xcfe197)]);_0xcfe197['markers']=new Map(_0x4aaaa2);}['_transformMarkers'](_0x41e2ac){for(const _0x48f9c1 of this['_markers']['values']()){const _0x47271=_0x48f9c1['getTransformedByOperation'](_0x41e2ac),_0x5b14aa=vt['_createFromRanges'](_0x47271);_0x48f9c1['start']=_0x5b14aa['start'],_0x48f9c1['end']=_0x5b14aa['end'];}}['_handleOperation'](_0x50d628,_0x3cdec2){if('addRoot'!=_0x50d628['type']&&'detachRoot'!=_0x50d628['type']){if('insert'==_0x50d628['type']){const _0x5569ef=_0x50d628['position']['root']['rootName'];this['_diffRoots']['has'](_0x5569ef)||(this['_diffRoots']['set'](_0x5569ef,F(_0x5569ef,!0x0)),this['_diffRootsAttributes']['set'](_0x5569ef,{}),_0x3cdec2&&this['_idsRoots']['set'](_0x5569ef,F(_0x5569ef,!0x0)));}else{if('addRootAttribute'==_0x50d628['type']||'removeRootAttribute'==_0x50d628['type']||'changeRootAttribute'==_0x50d628['type'])return void this['_handleRootAttributeOperation'](_0x50d628);'marker'==_0x50d628['type']&&this['_handleMarkerOperation'](_0x50d628);}if('marker'!==_0x50d628['type']){const _0x527639=this['_cloneOperation'](_0x50d628,this['_diffRoots']);_0x527639['_execute'](),this['_transformMarkers'](_0x527639);}if(_0x3cdec2)switch(_0x50d628['type']){case'insert':this['_handleInsertOperation'](_0x50d628);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x50d628);break;case'merge':this['_handleMergeOperation'](_0x50d628);break;case'split':this['_handleSplitOperation'](_0x50d628);}}else this['_handleRootOperation'](_0x50d628,_0x3cdec2);}['_cloneOperation'](_0x515beb,_0x1ffe3a){const _0x43c853=_0x515beb['clone']();return _0x43c853['_authorId']=_0x515beb['_authorId'],this['_fixOperation'](_0x43c853,_0x1ffe3a),_0x43c853;}['_getBaseVids'](_0x358adf){return _0x358adf['map'](_0x401d76=>{const _0x534b8b=this['_getVidAttributeName'](_0x401d76);return Number(_0x401d76['item']['getAttribute'](_0x534b8b));});}['_generateTape'](_0x2c8adf,_0x3e6b5e){if(_0x2c8adf['is']('element','$text'))_0x3e6b5e['push']({'item':_0x2c8adf,'type':'text'});else{_0x2c8adf['is']('element')&&_0x3e6b5e['push']({'item':_0x2c8adf,'type':'elementStart'});for(const _0x17e6da of _0x2c8adf['getChildren']())this['_generateTape'](_0x17e6da,_0x3e6b5e);_0x2c8adf['is']('element')&&_0x3e6b5e['push']({'item':_0x2c8adf,'type':'elementEnd'});}return _0x3e6b5e;}['_getState'](){const _0x5724f8=new Map(this['_touched']),_0xd9d323=new Map(_0x5724f8),_0x5207f5=new Map(),_0x558646={'insertions':{},'deletions':{}},_0x44f2e0={'insertions':{},'deletions':{}},_0x5754b8=new Map(),_0x268257=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x268257['delete']('$graveyard');for(const _0x4a1f88 of _0x268257){const _0x54500f=this['_diffRoots']['get'](_0x4a1f88)||F(_0x4a1f88,!0x1),_0x37e981=this['_baseRoots']['get'](_0x4a1f88)||F(_0x4a1f88,!0x1);_0x54500f['isAttached']()||_0x37e981['isAttached']()?(_0x558646['insertions'][_0x4a1f88]=T(_0x54500f),_0x558646['deletions'][_0x4a1f88]=T(_0x37e981),this['_copyMarkers'](_0x558646['deletions'][_0x4a1f88],_0x37e981),this['_copyMarkers'](_0x558646['insertions'][_0x4a1f88],_0x54500f),_0x44f2e0['insertions'][_0x4a1f88]=this['_generateTape'](this['_idsRoots']['get'](_0x4a1f88),[]),_0x44f2e0['deletions'][_0x4a1f88]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4a1f88)||F(_0x4a1f88,!0x1),[])):_0x268257['delete'](_0x4a1f88);}for(const _0x50bafc of _0x268257){const _0x2c7f4c=_0x44f2e0['insertions'][_0x50bafc];for(const _0x56f2bd of _0x2c7f4c){const _0x504ec1=this['_getVidAttributeName'](_0x56f2bd),_0x4ab387=_0x56f2bd['item']['getAttribute'](_0x504ec1);_0xd9d323['delete'](_0x4ab387),_0x4ab387>=this['_startingRevisionId']&&_0x5207f5['set'](_0x4ab387,_0x5724f8['get'](_0x4ab387));}}for(const _0x24f8c3 of _0x268257){const _0x2c898b=_0x44f2e0['insertions'][_0x24f8c3],_0x3b6f38=this['_getBaseVids'](_0x44f2e0['deletions'][_0x24f8c3]);let _0x5e19de=0x0;for(const _0x5489ec of _0x2c898b){const _0x22e6fe=this['_getVidAttributeName'](_0x5489ec),_0x17e28e=_0x5489ec['item']['getAttribute'](_0x22e6fe);if(!_0x5207f5['has'](_0x17e28e)&&!_0x5754b8['has'](_0x17e28e)){if(_0xd9d323['has'](_0x17e28e))_0x5e19de++;else{if(_0x17e28e!=_0x3b6f38[_0x5e19de]){const _0x1ec293=_0x5724f8['get'](_0x17e28e)||_0x5724f8['get'](_0x3b6f38[_0x5e19de]);for(;_0x17e28e!=_0x3b6f38[_0x5e19de];)_0xd9d323['has'](_0x3b6f38[_0x5e19de])||(_0x5754b8['set'](_0x3b6f38[_0x5e19de],_0x1ec293),_0x5724f8['set'](_0x3b6f38[_0x5e19de],_0x1ec293)),_0x5e19de++;}_0x5e19de++;}}}}for(const _0x4e4f6b of _0x268257){const _0x37b6e2=_0x44f2e0['insertions'][_0x4e4f6b];for(const _0x2e4182 of _0x37b6e2){const _0x1b454b=this['_getVidAttributeName'](_0x2e4182),_0x4137a3=_0x2e4182['item']['getAttribute'](_0x1b454b);if(_0x5754b8['has'](_0x4137a3)){const _0x8210b7=_0x5754b8['get'](_0x4137a3);_0xd9d323['has'](_0x4137a3)||_0xd9d323['set'](_0x4137a3,{..._0x8210b7}),_0x5207f5['set'](_0x4137a3,{..._0x8210b7});}}}for(const _0x391e69 of _0xd9d323['keys']())_0x391e69>=this['_startingRevisionId']&&_0xd9d323['delete'](_0x391e69);const _0x4df915=new Map();for(const _0x42495d of _0x268257){let _0xeea94b=_0x44f2e0['insertions'][_0x42495d];for(const _0x4a8eb8 of _0xeea94b)if(_0x4a8eb8['item']['is']('element','tableCell')){const _0x3be70b=this['_getVidAttributeName'](_0x4a8eb8),_0x37917d=_0x4a8eb8['item']['getAttribute'](_0x3be70b);if(_0x5207f5['has'](_0x37917d)){const _0x37faf9=_0x4a8eb8['item']['parent']['parent']['getAttribute']('vid_start'),_0xdfc90d=_0x4df915['get'](_0x37faf9)||new Set();_0xdfc90d['add'](_0x5207f5['get'](_0x37917d)['userId']),_0x4df915['set'](_0x37faf9,_0xdfc90d);}}_0xeea94b=_0x44f2e0['deletions'][_0x42495d];for(const _0x364144 of _0xeea94b)if(_0x364144['item']['is']('element','tableCell')){const _0x18e73f=this['_getVidAttributeName'](_0x364144),_0x53fbf7=_0x364144['item']['getAttribute'](_0x18e73f);if(_0xd9d323['has'](_0x53fbf7)){const _0x515649=_0x364144['item']['parent']['parent']['getAttribute']('vid_start'),_0x501d7b=_0x4df915['get'](_0x515649)||new Set();_0x501d7b['add'](_0xd9d323['get'](_0x53fbf7)['userId']),_0x4df915['set'](_0x515649,_0x501d7b);}}for(const _0x5e6d41 of _0x4df915['keys']())(_0x5207f5['has'](_0x5e6d41)||_0xd9d323['has'](_0x5e6d41))&&_0x4df915['delete'](_0x5e6d41);}for(const _0x554d12 of _0x268257){const _0x79368f=_0x44f2e0['insertions'][_0x554d12];let _0x5b6d7f=null,_0x2b4a47=null;for(const _0x1d4f4e of _0x79368f){const _0x55dfe9=this['_getVidAttributeName'](_0x1d4f4e),_0x3b2e76=_0x1d4f4e['item']['getAttribute'](_0x55dfe9),_0x65e29c=_0x4df915['get'](_0x3b2e76);_0x65e29c&&'elementStart'==_0x1d4f4e['type']&&(_0x5b6d7f=Array['from'](_0x65e29c)[0x0],_0x2b4a47=_0x1d4f4e['item']['getAttribute']('vid_end')),_0x5b6d7f&&(_0xd9d323['set'](_0x3b2e76,{'userId':_0x5b6d7f}),_0x5207f5['set'](_0x3b2e76,{'userId':_0x5b6d7f})),_0x3b2e76==_0x2b4a47&&(_0x5b6d7f=null,_0x2b4a47=null);}}const _0x5ca4a3={},_0x18c992=new Set();for(const _0x245de8 of _0x268257){const _0x285f87=_0x558646['deletions'][_0x245de8],_0x5be934=_0x558646['insertions'][_0x245de8];for(const {userId:_0x4f8d12}of this['_touchedMarkers']['values']())null!==_0x4f8d12&&_0x18c992['add'](_0x4f8d12);for(const {userId:_0x5e07b6}of this['_touchedRoots']['values']())null!==_0x5e07b6&&_0x18c992['add'](_0x5e07b6);this['_markChanges'](_0x5be934,_0x44f2e0['insertions'][_0x245de8],_0x5207f5,'insertion',_0x18c992),this['_markChanges'](_0x285f87,_0x44f2e0['deletions'][_0x245de8],_0xd9d323,'deletion',_0x18c992),_0x5ca4a3[_0x245de8]={'insertions':this['_prepareViewToSave'](_0x5be934),'deletions':this['_prepareViewToSave'](_0x285f87),'attachChange':this['_touchedRoots']['get'](_0x245de8)||null,'attributesBefore':_0x5e8e51(this['_baseRootsAttributes']['get'](_0x245de8))||{},'attributesAfter':_0x5e8e51(this['_diffRootsAttributes']['get'](_0x245de8))};}return{'diffData':_0x5ca4a3,'authorsIds':Array['from'](_0x18c992)};}['_processRootBeforeSave'](_0x387843){for(const [,_0x863d51]of _0x387843['markers']){const _0x15a175=_0x863d51['start']['getAncestors']()['filter'](_0x298771=>'tableCell'==_0x298771['name']);for(const _0x86c39e of _0x15a175)0x1==_0x86c39e['childCount']&&_0x86c39e['getChild'](0x0)['is']('element','paragraph')&&_0x86c39e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4a5c5b){this['_processRootBeforeSave'](_0x4a5c5b);const _0x31efd7=this['editor']['data']['toView'](_0x4a5c5b,{}),_0x557ec1=Array['from'](_0x31efd7['getChildren']())['map'](_0x51f414=>this['_getViewJson'](_0x51f414));return JSON['stringify'](_0x557ec1);}['_getViewJson'](_0x1babf5){if(_0x1babf5['is']('$text'))return _0x1babf5['data'];{const _0x47ee01=_0x1babf5;return{'type':Object['keys'](P)['find'](_0x5a72d5=>_0x1babf5 instanceof P[_0x5a72d5]),'name':_0x47ee01['name'],'attributes':Array['from'](_0x47ee01['getAttributes']()),'children':Array['from'](_0x47ee01['getChildren']())['map'](_0x5785e4=>this['_getViewJson'](_0x5785e4))};}}['_markChanges'](_0x548ce0,_0x231682,_0x3ca639,_0xc1a17a,_0x4acc55){let _0x7f2422=null,_0xc0b5cf=null,_0x969387=0x0;const _0x2263fc=this['editor']['model'];for(let _0x2437eb=0x0;_0x2437eb<_0x231682['length'];_0x2437eb++){const _0x3f5bb1=this['_getVidAttributeName'](_0x231682[_0x2437eb]),_0x31b69a=_0x231682[_0x2437eb]['item']['getAttribute'](_0x3f5bb1),_0x19c324=_0x3ca639['get'](_0x31b69a),_0xdc8436=_0x2437eb==_0x231682['length']-0x1;(!_0x7f2422&&_0x19c324&&(_0x7f2422=_0x19c324,_0xc0b5cf=_0x231682[_0x2437eb]),_0x7f2422&&(!_0x19c324||_0x19c324['userId']!=_0x7f2422['userId']))&&(_0x150510(_0x19c324,B(_0xc0b5cf,_0x548ce0,_0x2263fc),B(_0x231682[_0x2437eb],_0x548ce0,_0x2263fc)),_0x7f2422=_0x19c324||null,_0xc0b5cf=_0x19c324?_0x231682[_0x2437eb]:null),_0x7f2422&&_0xdc8436&&_0x150510(_0x19c324,B(_0xc0b5cf,_0x548ce0,_0x2263fc),J(_0x231682[_0x2437eb],_0x548ce0,_0x2263fc));}function _0x150510(_0x37d539,_0x16a570,_0x3fc534){const _0x423ef0=_0x7f2422['userId'],_0x361763='revision:'+_0xc1a17a+':'+_0x423ef0+':'+_0x969387++,_0x42aa93=_0x2263fc['createRange'](_0x16a570,_0x3fc534);_0x548ce0['markers']['set'](_0x361763,_0x42aa93),null!==_0x423ef0&&_0x4acc55['add'](_0x423ef0);}}['_getVidAttributeName'](_0x4a8a62){switch(_0x4a8a62['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3d41a6,_0x513087){_0x3d41a6['baseVersion']=null;for(const _0x12608f in _0x3d41a6){const _0x5a9678=_0x3d41a6[_0x12608f];if(_0x5a9678 instanceof gt){const _0x51f9fa=_0x513087['get'](_0x5a9678['root']['rootName']);_0x3d41a6[_0x12608f]=this['_fixPosition'](_0x5a9678,_0x51f9fa);}if(_0x5a9678 instanceof vt){const _0x58f544=_0x513087['get'](_0x5a9678['root']['rootName']);_0x3d41a6[_0x12608f]=this['_fixRange'](_0x5a9678,_0x58f544);}'root'===_0x12608f&&(_0x3d41a6['root']=_0x513087['get'](_0x3d41a6['root']['rootName']));}}['_fixRange'](_0x37c736,_0x5c5e59){return this['editor']['model']['createRange'](this['_fixPosition'](_0x37c736['start'],_0x5c5e59),this['_fixPosition'](_0x37c736['end'],_0x5c5e59));}['_fixPosition'](_0x2a4975,_0x105bf7){return this['editor']['model']['createPositionFromPath'](_0x105bf7,_0x2a4975['path'],_0x2a4975['stickiness']);}['_handleInsertOperation'](_0x4aaf94){const _0x194cba=this['_idsRoots']['get'](_0x4aaf94['position']['root']['rootName']),_0x133029=this['_fixPosition'](_0x4aaf94['position'],_0x194cba),_0x26dc71=null===_0x4aaf94['_authorId']?null:_0x4aaf94['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x250988=_0x133029['parent'],_0x450ead=this['_revisionId'],_0x2358f3=[];for(const _0x4dfa8e of _0x4aaf94['nodes'])if(_0x4dfa8e['is']('element'))_0x2358f3['push'](this['_makeIdsRoot'](_0x4dfa8e));else{for(let _0x3a6754=0x0;_0x3a6754<_0x4dfa8e['offsetSize'];_0x3a6754++)_0x2358f3['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x423a0c=this['_revisionId'];for(let _0x404c42=_0x450ead;_0x404c42<_0x423a0c;_0x404c42++)this['_touched']['set'](_0x404c42,{'userId':_0x26dc71});_0x250988['_insertChild'](_0x133029['offset'],_0x2358f3);}['_handleMoveOperation'](_0x20a854){(_0x20a854=this['_cloneOperation'](_0x20a854,this['_idsRoots']))['_execute']();const _0x3468c0=null===_0x20a854['_authorId']?null:_0x20a854['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x18a0b8=_0x20a854['getMovedRangeStart'](),_0x1b2a93=_0x18a0b8['parent'],_0x284ac7=_0x18a0b8['offset'];!function _0x42e858(_0x2e6f13,_0x5e4c47,_0x11196d,_0x8b91d4){for(let _0x569fb5=_0x11196d;_0x569fb5<_0x8b91d4;_0x569fb5++){const _0x6091cc=_0x5e4c47['getChild'](_0x569fb5);_0x6091cc['is']('element','$text')?_0x2e6f13['set'](_0x6091cc['getAttribute']('vid'),{'userId':_0x3468c0}):(_0x2e6f13['set'](_0x6091cc['getAttribute']('vid_start'),{'userId':_0x3468c0}),_0x42e858(_0x2e6f13,_0x6091cc,0x0,_0x6091cc['childCount']),_0x2e6f13['set'](_0x6091cc['getAttribute']('vid_end'),{'userId':_0x3468c0}));}}(this['_touched'],_0x1b2a93,_0x284ac7,_0x284ac7+_0x20a854['howMany']);}['_handleMergeOperation'](_0x3b37a0){const _0x6e043a=null===(_0x3b37a0=this['_cloneOperation'](_0x3b37a0,this['_idsRoots']))['_authorId']?null:_0x3b37a0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x400f02=_0x3b37a0['targetPosition']['parent'],_0x54a3aa=_0x3b37a0['sourcePosition']['parent'],_0x179859=_0x400f02['getAttribute']('vid_end'),_0x5c3bf2=_0x54a3aa['getAttribute']('vid_start');_0x400f02['_setAttribute']('vid_end',_0x54a3aa['getAttribute']('vid_end')),_0x54a3aa['_setAttribute']('vid_end',_0x179859),this['_touched']['set'](_0x5c3bf2,{'userId':_0x6e043a}),this['_touched']['set'](_0x179859,{'userId':_0x6e043a}),_0x3b37a0['_execute']();}['_handleSplitOperation'](_0x5a7aaf){const _0x38739c=null===(_0x5a7aaf=this['_cloneOperation'](_0x5a7aaf,this['_idsRoots']))['_authorId']?null:_0x5a7aaf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ddc6d=_0x5a7aaf['graveyardPosition'],_0xb77e6d=_0x5a7aaf['splitPosition']['parent'];_0x5a7aaf['_execute']();const _0x2fab23=_0xb77e6d['getAttribute']('vid_end'),_0x55ff9c=_0x5a7aaf['insertionPosition']['nodeAfter'];if(_0x2ddc6d){const _0x485a92=_0x55ff9c['getAttribute']('vid_end'),_0x5ba17c=_0xb77e6d['getAttribute']('vid_end');_0xb77e6d['_setAttribute']('vid_end',_0x485a92),_0x55ff9c['_setAttribute']('vid_end',_0x5ba17c),this['_touched']['set'](_0xb77e6d['getAttribute']('vid_end'),{'userId':_0x38739c}),this['_touched']['set'](_0x55ff9c['getAttribute']('vid_start'),{'userId':_0x38739c});}else{const _0x519261=this['_revisionId']++,_0x48a4ee=this['_revisionId']++;_0xb77e6d['_setAttribute']('vid_end',_0x519261),_0x55ff9c['_setAttribute']('vid_start',_0x48a4ee),_0x55ff9c['_setAttribute']('vid_end',_0x2fab23),this['_touched']['set'](_0x519261,{'userId':_0x38739c}),this['_touched']['set'](_0x48a4ee,{'userId':_0x38739c});}}['_handleMarkerOperation'](_0x1edbe9){if(!_0x1edbe9['affectsData'])return;const _0x441c54=(_0x1edbe9=this['_cloneOperation'](_0x1edbe9,this['_diffRoots']))['oldRange']?_0x1edbe9['oldRange']['root']:null,_0x5476d5=_0x1edbe9['newRange']?_0x1edbe9['newRange']['root']:null;_0x441c54&&this['_markers']['delete'](_0x1edbe9['name']),_0x5476d5&&this['_markers']['set'](_0x1edbe9['name'],_0x1edbe9['newRange']['clone']());const _0x24bed5=null===_0x1edbe9['_authorId']?null:_0x1edbe9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28d285=_0x1edbe9['name'];if(!this['_touchedMarkers']['has'](_0x28d285))return void this['_touchedMarkers']['set'](_0x28d285,{'range':_0x1edbe9['oldRange'],'userId':_0x24bed5});const _0x3adb73=this['_touchedMarkers']['get'](_0x28d285),_0x48c581=_0x3adb73['range'],_0x564f60=_0x1edbe9['newRange'];null==_0x48c581&&null==_0x564f60||_0x48c581&&_0x564f60&&_0x48c581['isEqual'](_0x564f60)?this['_touchedMarkers']['delete'](_0x1edbe9['name']):_0x3adb73['userId']=_0x24bed5;}['_handleRootOperation'](_0x38bc5f,_0x344e2d){this['_diffRoots']['has'](_0x38bc5f['rootName'])?this['_diffRoots']['get'](_0x38bc5f['rootName'])['_isAttached']=_0x38bc5f['isAdd']:(this['_diffRoots']['set'](_0x38bc5f['rootName'],F(_0x38bc5f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x38bc5f['rootName'],{}),_0x344e2d&&this['_idsRoots']['set'](_0x38bc5f['rootName'],F(_0x38bc5f['rootName'],!0x0)));const _0x4ddacd=null===_0x38bc5f['_authorId']?null:_0x38bc5f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb05a8d=this['_touchedRoots']['get'](_0x38bc5f['rootName']);_0xb05a8d&&_0xb05a8d['userId']===_0x4ddacd?this['_touchedRoots']['delete'](_0x38bc5f['rootName']):this['_touchedRoots']['set'](_0x38bc5f['rootName'],{'userId':_0x4ddacd,'isAttached':_0x38bc5f['isAdd']});}['_handleRootAttributeOperation'](_0x4b0279){const _0x5eaca3=this['_diffRootsAttributes']['get'](_0x4b0279['root']['rootName']);null===_0x4b0279['newValue']?delete _0x5eaca3[_0x4b0279['key']]:_0x5eaca3[_0x4b0279['key']]=_0x4b0279['newValue'];}}function T(_0x514fe5){const _0x3718f8=F(_0x514fe5['rootName'],_0x514fe5['isAttached']());for(const _0x93e755 of _0x514fe5['getChildren']()){const _0x2a9bc7=_0x93e755['_clone'](!0x0);_0x3718f8['_appendChild'](_0x2a9bc7);}return _0x3718f8;}function F(_0x35008f,_0x90ee78=!0x0){const _0x48ac05=new mt();return _0x48ac05['rootName']=_0x35008f,_0x48ac05['_isAttached']=_0x90ee78,_0x48ac05['isAttached']=()=>_0x48ac05['_isAttached'],_0x48ac05;}function B(_0x32bad1,_0x943da8,_0x533a02){const _0x3e9cb0='elementEnd'==_0x32bad1['type']?_0x533a02['createPositionAt'](_0x32bad1['item'],'end'):_0x533a02['createPositionBefore'](_0x32bad1['item']);return _0x533a02['createPositionFromPath'](_0x943da8,_0x3e9cb0['path'],_0x3e9cb0['stickiness']);}function J(_0x3d13ba,_0x56da1d,_0xe2abd1){const _0x15b053='elementStart'==_0x3d13ba['type']?_0xe2abd1['createPositionAt'](_0x3d13ba['item'],0x0):_0xe2abd1['createPositionAfter'](_0x3d13ba['item']);return _0xe2abd1['createPositionFromPath'](_0x56da1d,_0x15b053['path'],_0x15b053['stickiness']);}class ns extends _0x46e692{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1643a8,_0x3b80db){super(_0x1643a8),this['focusTracker']=new _0x2fd6cd(),this['keystrokes']=new _0x4d9c7b(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3b80db),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'](),_0xc09350({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x201092=_0x1ade6f=>_0x1ade6f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x201092),this['keystrokes']['set']('arrowleft',_0x201092),this['keystrokes']['set']('arrowup',_0x201092),this['keystrokes']['set']('arrowdown',_0x201092);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x486e7c){this['revisionNameInputView']['fieldView']['element']['value']=_0x486e7c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x32212e){const _0x2333b8=new nt(this['locale'],_0x8c8f78),_0x2b3ede=_0x2333b8['fieldView'];_0x2b3ede['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x579152=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x32212e&&(_0x579152+='\x20('+m(this['locale'],'optional')+')'),(_0x2333b8['label']=_0x579152,_0x2b3ede['on']('input',()=>{this['revisionNameInputValue']=_0x2b3ede['element']['value']['trim']();}),_0x2333b8);}}class u extends _0xf0a0b{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x264f99=this['editor'],_0x4349f8=_0x264f99['plugins']['get']('RevisionTracker');_0x264f99['ui']['componentFactory']['add']('revisionHistory',_0x780a72=>{const _0x512914=_0x161ce7(_0x780a72),_0x2e0280=_0x512914['panelView']['children'],_0x4aa1b8=new te(_0x780a72),_0x290235=new _0x3657d9(_0x780a72),_0xb6f747=new _0x319a68(_0x780a72),_0x5ae3f9=new _0x3657d9(_0x780a72),_0x1a3ad7=new _0x319a68(_0x780a72);return _0x512914['bind']('isEnabled')['to'](_0x4349f8,'isReady',_0x4349f8,'isEnabled',_0x264f99,'isReadOnly',(_0x9f76ae,_0x53c6ec,_0x35b91e)=>_0x9f76ae&&_0x53c6ec&&!_0x35b91e),_0x512914['buttonView']['set']({'icon':_0x580a31['history'],'label':m(_0x780a72,'Revision\x20history'),'tooltip':!0x0}),_0xb6f747['set']({'label':m(_0x780a72,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xb6f747['bind']('isEnabled')['to'](_0x4349f8,'isReady',_0x4349f8,'isEnabled',_0x264f99,'isReadOnly',(_0xd2f1c5,_0xa328df,_0x41ab57)=>_0xd2f1c5&&_0xa328df&&!_0x41ab57),_0xb6f747['on']('execute',()=>this['_showDialog']()),_0x1a3ad7['set']({'label':m(_0x780a72,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1a3ad7['bind']('isEnabled')['to'](_0x4349f8,'isReady',_0x264f99,'isReadOnly',(_0x13904d,_0xe53ae4)=>_0x13904d&&!_0xe53ae4),_0x1a3ad7['on']('execute',()=>{_0x264f99['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x512914['isOpen']=!0x1,_0x264f99['editing']['view']['focus']();}),_0x290235['children']['add'](_0xb6f747),_0x5ae3f9['children']['add'](_0x1a3ad7),_0x4aa1b8['role']='menu',_0x4aa1b8['items']['addMany']([_0x290235,_0x5ae3f9]),_0x2e0280['add'](_0x4aa1b8),_0x512914;}),_0x264f99['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x20f756=this['editor'],_0xc78282=_0x20f756['locale'],_0x277086=new _0x102002(_0xc78282),_0x55bbf7=new _0x47b54a(_0xc78282);_0x277086['buttonView']['set']({'icon':_0x580a31['history'],'label':m(_0xc78282,'Revision\x20history')});const _0x35acf6=new _0x469bb2(_0xc78282,_0x277086),_0x49b439=new _0x32e8f4(_0xc78282);_0x49b439['set']({'label':m(_0xc78282,'Save\x20current\x20revision')}),_0x49b439['delegate']('execute')['to'](_0x277086),_0x49b439['on']('execute',()=>{this['_showDialog']();}),_0x35acf6['children']['add'](_0x49b439),_0x55bbf7['items']['add'](_0x35acf6);const _0x174465=new _0x469bb2(_0xc78282,_0x277086),_0x427fb8=new _0x32e8f4(_0xc78282);return _0x427fb8['set']({'label':m(_0xc78282,'Open\x20revision\x20history')}),_0x427fb8['delegate']('execute')['to'](_0x277086),_0x427fb8['on']('execute',()=>{_0x20f756['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x174465['children']['add'](_0x427fb8),_0x55bbf7['items']['add'](_0x174465),_0x277086['panelView']['children']['add'](_0x55bbf7),_0x277086;}['_showDialog'](){const _0x19640e=this['editor'],_0x25fe30=_0x19640e['locale'],_0x48368f=_0x19640e['plugins']['get']('Dialog'),_0x14bce8=_0x19640e['plugins']['get']('RevisionTracker');function _0xf0252d(_0x2a7ed1){_0x19640e['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2a7ed1['revisionName']?_0x2a7ed1['revisionNameInputView']['errorText']=m(_0x25fe30,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x19640e['plugins']['get'](l)['saveRevision']({'name':_0x2a7ed1['revisionName']}),_0x48368f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xf0252d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x48368f['show']({'id':'revisionSave','title':m(_0x25fe30,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x19640e['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x48368f['hide']()},{'label':m(_0x19640e['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x370ee8){_0x370ee8['bind']('isEnabled')['to'](_0x14bce8,'isReady',_0x14bce8,'isEnabled',_0x19640e,'isReadOnly',(_0xdae069,_0x45e3ac,_0x1f5582)=>_0xdae069&&_0x45e3ac&&!_0x1f5582);},'onExecute':()=>_0xf0252d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3b2b64=this['editor'],_0x1af2f0=_0x3b2b64['locale'];this['_saveRevisionFormView']=new ns(_0x1af2f0,_0x3b2b64['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x46e692{['changeId'];['_model'];constructor(_0x3c801a,_0x55dd5c){super(_0x3c801a),this['_model']=_0x55dd5c,this['changeId']=_0x55dd5c['id'];const _0x80ed30=this['bindTemplate'],_0x3d9b05=m(_0x3c801a,_0x55dd5c['data']['isSuggestion']?'Suggested\x20by':'add'==_0x55dd5c['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x55dd5c['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x80ed30['to']('type',_0x3dc883=>'ck-revision-change__'+_0x3dc883)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3d9b05}]},{'text':'\x20'+_0x55dd5c['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x310331(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3bf893){super(),this['id']=_0x3bf893['id']||_0x4b945d(),this['author']=_0x3bf893['author'],this['type']=_0x3bf893['type'],this['data']=_0x3bf893['data']||{},this['rootName']=_0x3bf893['rootName'],this['set']('createdAt',_0x3bf893['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(_0x3e2663,_0x24a227){this['newRevisionId']=_0x3e2663,this['oldRevisionId']=_0x24a227,this['changes']=new _0x5e4f58();}['_setChanges'](_0x3ba6bd){for(const _0x5a5144 of _0x3ba6bd)this['changes']['add'](_0x5a5144);}}const Y={'c':_0x4bc199,'a':_0x49254f,'e':_0x2de322,'r':_0x7e96d6,'u':_0x55fe2e};class d extends _0xf0a0b{['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[_0x225e2a,_0x5d5754,j];}constructor(_0x2a61c7){super(_0x2a61c7),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',(_0xc1ffbe,_0x527fa0,_0x5cbff1)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x25c848=>{for(const _0x44038b of this['editor']['editing']['view']['document']['roots'])_0x5cbff1?_0x25c848['removeClass']('ck-editor__editable__overlay',_0x44038b):_0x25c848['addClass']('ck-editor__editable__overlay',_0x44038b);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5d9056=>null!==_0x5d9056),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4d2024,_0x140ea8,_0x56bc73)=>_0x4d2024&&_0x56bc73?_0x140ea8['changes']['getIndex'](_0x56bc73):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2472c7,_0x284d2)=>_0x2472c7?_0x284d2['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5d5754);}['init'](){const _0x1eb799=this['editor'],_0x106aaa=new yt(_0x1eb799,{'direction':'backward'}),_0x321273=new yt(_0x1eb799,{'direction':'forward'});(_0x1eb799['commands']['add']('showPreviousChange',_0x106aaa),_0x1eb799['commands']['add']('showNextChange',_0x321273),_0x1eb799['commands']['add']('restoreRevision',new _t(_0x1eb799)),this['on']('change:numberOfChanges',()=>{_0x106aaa['refresh'](),_0x321273['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1eb799['enableReadOnlyMode']('revision-viewer'),_0x1eb799['plugins']['has']('WidgetToolbarRepository'))&&_0x1eb799['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x4566eb){await this['loadRevisionData'](_0x4566eb);const _0x423872={};for(const _0x2556a5 in _0x4566eb['diffData']){if(_0x4566eb['diffData'][_0x2556a5]['attachChange']&&!_0x4566eb['diffData'][_0x2556a5]['attachChange']['isAttached'])continue;const _0x386676=this['_removeRevisionMarkers'](JSON['parse'](_0x4566eb['diffData'][_0x2556a5]['insertions'])),_0x410071=this['editor']['editing']['view']['document'],_0x138bc5=new _0xbc8b9d(_0x410071,_0x386676['map'](_0x200ff4=>this['_getViewObj'](_0x200ff4)));this['editor']['data']['processor']['useFillerType']('marked'),_0x423872[_0x2556a5]=this['editor']['data']['processor']['toData'](_0x138bc5),this['editor']['data']['processor']['useFillerType']('default');}return _0x423872;}async['getRevisionRootsAttributes'](_0x3c956c){await this['loadRevisionData'](_0x3c956c);const _0x28df10={};for(const _0x49bc9a in _0x3c956c['diffData'])_0x3c956c['diffData'][_0x49bc9a]['attachChange']&&!_0x3c956c['diffData'][_0x49bc9a]['attachChange']['isAttached']||(_0x28df10[_0x49bc9a]=_0x3c956c['diffData'][_0x49bc9a]['attributesAfter']||{});return _0x28df10;}['_removeRevisionMarkers'](_0x5d4689){return(_0x5d4689=_0x5d4689['filter'](_0x3bc2e1=>!_0x3bc2e1['name']||'revision-start'!==_0x3bc2e1['name']&&'revision-end'!==_0x3bc2e1['name']))['forEach'](_0x5e867e=>{'string'!=typeof _0x5e867e&&(_0x5e867e['children']=this['_removeRevisionMarkers'](_0x5e867e['children']),_0x5e867e['attributes']=_0x5e867e['attributes']['filter'](_0x480376=>!_0x480376[0x0]['startsWith']('data-revision-')));}),_0x5d4689;}async['compare'](_0x291e65,_0x4de1cf,_0x38d31e=!0x1){if(!this['isEnabled'])return;const _0x273913=this['diff'],_0x57cf3a=this['repository'],_0x346fab='string'==typeof _0x291e65?_0x57cf3a['getRevision'](_0x291e65):_0x291e65,_0x24d41b='string'==typeof _0x4de1cf?_0x57cf3a['getRevision'](_0x4de1cf):_0x4de1cf,_0x47c91a=_0x346fab['id'],_0x15b75d=_0x24d41b?_0x24d41b['id']:null;if(!_0x38d31e&&this['diff']&&this['diff']['newRevisionId']===_0x47c91a&&this['diff']['oldRevisionId']===_0x15b75d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x47c91a,_0x15b75d);const _0x551b77=this['_getRevisionsRange'](_0x346fab,_0x24d41b,!0x0)['map'](_0xe1fa83=>this['loadRevisionData'](_0xe1fa83));return _0x551b77['push'](new Promise(_0x1d5829=>{setTimeout(_0x1d5829,0x14);})),Promise['all'](_0x551b77)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x168633=this['_getDiff'](_0x47c91a,_0x15b75d);for(const _0xf0229f of _0x168633['changes'])this['_changeIdToChange']['set'](_0xf0229f['id'],_0xf0229f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2c5d3f=>{for(const _0x1d979e of this['editor']['model']['document']['getRootNames']())_0x2c5d3f['detachRoot'](_0x1d979e);for(const _0x2371fd of Object['keys'](_0x168633['model'])){const _0x49cc43=_0x2c5d3f['addRoot'](_0x2371fd);for(const _0x40e31d of Object['keys'](_0x168633['attributes'][_0x2371fd]))_0x2c5d3f['setAttribute'](_0x40e31d,_0x168633['attributes'][_0x2371fd][_0x40e31d],_0x49cc43);_0x2c5d3f['insert'](_0x168633['model'][_0x2371fd],_0x49cc43,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x168633['changes'])),this['isReady']=!0x0;})['catch'](_0x2a0ca2=>{console['error'](_0x2a0ca2),this['_cleanUp'](),_0x273913&&(this['diff']=_0x273913),this['isReady']=!0x0;});}['addRevisionData'](_0x5f9116,_0x26985e){const _0x29d173=this['repository']['createRevision'](_0x5f9116);return _0x29d173['on']('_update',(_0x1c4fc8,_0x291907,_0x4a7746)=>_0x26985e(_0x291907,_0x4a7746,_0x29d173)),this['repository']['addRevision'](_0x29d173),_0x29d173;}['loadRevisionData'](_0x312f12){if(!_0x312f12||_0x312f12['diffData'])return Promise['resolve']();{const _0x52ff9d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x52ff9d,'revisionId':_0x312f12['id']})['then'](_0x39df8e=>{_0x312f12['_update']({'diffData':_0x39df8e['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},_0x3a576c=>{for(const _0x1a722e of this['editor']['model']['document']['getRootNames']())_0x3a576c['detachRoot'](_0x1a722e);});}['_sortAndFilterDiffChanges'](_0x3e1066){const _0x487f43=[],_0x335606=new Map();for(const _0x3d0900 of this['editor']['model']['document']['getRootNames']()){const _0x40fb64=this['editor']['editing']['view']['getDomRoot'](_0x3d0900);if(!_0x40fb64)continue;const _0x1269d5=_0x40fb64['getClientRects']()['item'](0x0);_0x1269d5&&(_0x487f43['push'](_0x3d0900),_0x335606['set'](_0x3d0900,_0x1269d5));}return _0x487f43['sort']((_0x33c72a,_0x30dbb5)=>{const _0x57fd5f=_0x335606['get'](_0x33c72a),_0x19bea9=_0x335606['get'](_0x30dbb5);return _0x57fd5f['y']-_0x19bea9['y']||_0x57fd5f['x']-_0x19bea9['x'];}),(_0x3e1066=_0x3e1066['filter'](_0x434de5=>_0x487f43['includes'](_0x434de5['rootName'])))['sort']((_0x1727f2,_0x5a4ed1)=>_0x487f43['indexOf'](_0x1727f2['rootName'])-_0x487f43['indexOf'](_0x5a4ed1['rootName'])),_0x3e1066;}['_makeTape'](_0x385796){const _0x84c0bc=Array['from'](_0x385796['markers'])['filter'](([_0x5e4e60,_0xe7042a])=>_0x5e4e60['startsWith']('revision:')&&!_0xe7042a['isCollapsed']),_0x1b592c=Array['from'](this['editor']['model']['createRangeIn'](_0x385796)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x84c0bc['length'])for(const _0x33bab9 of _0x1b592c){const [_0x53e800,_0x39f760]=_0x84c0bc[0x0],[,_0x1b4b98,_0x2072eb]=_0x53e800['split'](':');if(_0x39f760['end']['isEqual'](_0x33bab9['nextPosition'])&&_0x84c0bc['shift'](),(_0x33bab9['previousPosition']['isEqual'](_0x39f760['start'])||_0x33bab9['previousPosition']['isAfter'](_0x39f760['start']))&&('insertion'==_0x1b4b98?_0x33bab9['isAdded']={'userId':_0x2072eb}:'deletion'==_0x1b4b98&&(_0x33bab9['isRemoved']={'userId':_0x2072eb})),0x0==_0x84c0bc['length'])break;}return _0x1b592c;}['_refreshStartEndIndex'](_0x16717f){const _0x18f6f8=new Map();for(let _0x15cc01=0x0;_0x15cc01<_0x16717f['length'];_0x15cc01++)'text'===_0x16717f[_0x15cc01]['type']?(_0x16717f[_0x15cc01]['item']['startIndex']=_0x15cc01,_0x16717f[_0x15cc01]['item']['endIndex']=_0x15cc01):('elementStart'===_0x16717f[_0x15cc01]['type']?_0x16717f[_0x15cc01]['item']['startIndex']=_0x15cc01:'elementEnd'===_0x16717f[_0x15cc01]['type']&&(_0x16717f[_0x15cc01]['item']['endIndex']=_0x15cc01),_0x18f6f8['set'](_0x16717f[_0x15cc01]['id'],_0x15cc01));for(const _0xd85d13 of _0x18f6f8['values']())'elementStart'===_0x16717f[_0xd85d13]['type']?_0x16717f[_0xd85d13]['item']['endIndex']=_0x18f6f8['get'](_0x16717f[_0xd85d13]['pairId']):'elementEnd'===_0x16717f[_0xd85d13]['type']&&(_0x16717f[_0xd85d13]['item']['startIndex']=_0x18f6f8['get'](_0x16717f[_0xd85d13]['pairId']));}['_processTape'](_0x137cbf){for(let _0x3767c1=0x0;_0x3767c1<_0x137cbf['length'];_0x3767c1++){if('elementStart'===_0x137cbf[_0x3767c1]['type'])_0x137cbf[_0x3767c1]['item']['startIndex']=_0x3767c1;else{if('elementEnd'===_0x137cbf[_0x3767c1]['type']){_0x137cbf[_0x3767c1]['item']['endIndex']=_0x3767c1;const _0x5d0083=_0x137cbf[_0x3767c1]['item']['startIndex'];_0x137cbf[_0x5d0083]['pairId']=_0x137cbf[_0x3767c1]['id'],_0x137cbf[_0x3767c1]['pairId']=_0x137cbf[_0x5d0083]['id'];}else _0x137cbf[_0x3767c1]['item']['startIndex']=_0x3767c1,_0x137cbf[_0x3767c1]['item']['endIndex']=_0x3767c1,_0x137cbf[_0x3767c1]['pairId']=null;}_0x137cbf[_0x3767c1]['markersStart']||(_0x137cbf[_0x3767c1]['markersStart']=[],_0x137cbf[_0x3767c1]['markersEnd']=[]);}}['_markInsertions'](_0x1c60a3,_0x53a021){const _0x5704ed=_0x1c60a3['filter'](_0x111d32=>!_0x111d32['isAdded']);for(let _0x45ab99=0x0;_0x45ab99<_0x53a021['length'];_0x45ab99++)_0x53a021[_0x45ab99]['isAdded']&&(_0x5704ed[_0x45ab99]['isAdded']=_0x53a021[_0x45ab99]['isAdded']);}['_makeModelFromViewString'](_0x28c89c){const _0x5f064d=JSON['parse'](_0x28c89c),_0x49aa72=this['editor']['editing']['view']['document'],_0x3ad4a5=new _0xbc8b9d(_0x49aa72,_0x5f064d['map'](_0x5ce15b=>this['_getViewObj'](_0x5ce15b)));return this['editor']['data']['toModel'](_0x3ad4a5);}['_getViewObj'](_0x892be3){const _0x53cd86=this['editor']['editing']['view']['document'];if('string'==typeof _0x892be3)return new _0x331fa8(_0x53cd86,_0x892be3);{const _0x40f54a=_0x892be3['children']['map'](_0x1812e5=>this['_getViewObj'](_0x1812e5));return new(Y[_0x892be3['type']]||_0x1e1b37)(_0x53cd86,_0x892be3['name'],_0x892be3['attributes'],_0x40f54a);}}['_getDiff'](_0x2deae5,_0x2fed05=null){const _0x11c92a=this['repository']['getRevision'](_0x2deae5),_0x1abb56=_0x2fed05?this['repository']['getRevision'](_0x2fed05):null,_0x46c84b=this['_getRevisionsRange'](_0x11c92a,_0x1abb56),_0xfee816=_0x46c84b[_0x46c84b['length']-0x1],_0x535451=new Map(),_0x401b94={'model':{},'attributes':{},'changes':[]},_0x23f321=new Set(),_0x108c8a=new Map();for(let _0x52d6ad=_0x46c84b['length']-0x1;_0x52d6ad>=0x0;_0x52d6ad--){const _0x42f971=_0x46c84b[_0x52d6ad];for(const _0x3eef39 of Object['keys'](_0x42f971['diffData']))if(_0x42f971['diffData'][_0x3eef39]['attachChange']){const _0x1c221d=_0x42f971['diffData'][_0x3eef39]['attachChange'];_0x1c221d['isAttached']?(_0x23f321['add'](_0x3eef39),_0x108c8a['has'](_0x3eef39)&&_0x108c8a['get'](_0x3eef39)['userId']==_0x1c221d['userId']?_0x108c8a['delete'](_0x3eef39):_0x108c8a['set'](_0x3eef39,_0x1c221d)):_0x108c8a['has'](_0x3eef39)?(_0x23f321['delete'](_0x3eef39),_0x108c8a['delete'](_0x3eef39)):(_0x23f321['add'](_0x3eef39),_0x108c8a['set'](_0x3eef39,_0x1c221d));}else _0x23f321['add'](_0x3eef39);}for(const _0xd8784e of _0x23f321){const _0x2ff79b=_0x108c8a['has'](_0xd8784e)&&!_0x108c8a['get'](_0xd8784e)['isAttached'];let _0x4df4e6=_0x2ff79b?_0x46c84b['length']-0x1:0x0;const _0x40af6b=_0x2ff79b?-0x1:0x1;for(;_0x46c84b[_0x4df4e6];){const _0x57200d=_0x46c84b[_0x4df4e6];if(_0x57200d['diffData'][_0xd8784e]){const _0x3e228c=_0x2ff79b?_0x57200d['diffData'][_0xd8784e]['attributesBefore']:_0x57200d['diffData'][_0xd8784e]['attributesAfter'];_0x401b94['attributes'][_0xd8784e]=_0x3e228c?_0x5e8e51(_0x3e228c):{};break;}_0x4df4e6+=_0x40af6b;}}for(const _0x2daeb0 of _0x46c84b){_0x2daeb0['model']={};for(const _0x32eb60 of _0x2daeb0['authors'])_0x535451['set'](_0x32eb60['id'],_0x32eb60);for(const _0x4169c9 of _0x23f321){const _0x3bc77f=_0x2daeb0['diffData'][_0x4169c9]?_0x2daeb0['diffData'][_0x4169c9]['insertions']:'[]',_0x104517=_0x2daeb0['diffData'][_0x4169c9]?_0x2daeb0['diffData'][_0x4169c9]['deletions']:'[]';_0x2daeb0['model'][_0x4169c9]={'insertions':this['_makeModelFromViewString'](_0x3bc77f),'deletions':this['_makeModelFromViewString'](_0x104517)};}}for(const _0x6742bf of _0x23f321){let _0x41b739=null,_0x330338=0x0;const _0x5dbb9f=new Map(Array['from'](_0x11c92a['model'][_0x6742bf]['insertions']['markers'])['filter'](([_0x4df171])=>!_0x4df171['startsWith']('revision:')));let _0x18b7d0=0x0;for(const _0x2026b5 of _0x46c84b){const _0x2ab324=this['_makeTape'](_0x2026b5['model'][_0x6742bf]['insertions']);_0x2026b5==_0x11c92a?(_0x41b739=_0x2ab324,_0x330338=_0x41b739['length'],_0x41b739['forEach'](_0x3a5f1c=>{_0x3a5f1c['id']=_0x18b7d0++;}),this['_processTape'](_0x41b739)):this['_markInsertions'](_0x41b739,_0x2ab324);const _0x35e087=_0x41b739['filter'](_0x3403fc=>!_0x3403fc['isAdded'])['map'](_0x343ccd=>_0x343ccd['id']);let _0x43a028=0x0;const _0x2eeede=this['_makeTape'](_0x2026b5['model'][_0x6742bf]['deletions']);_0x2eeede['forEach'](_0x1f29ab=>{_0x1f29ab['isRemoved']?_0x1f29ab['id']=_0x330338++:_0x1f29ab['id']=_0x35e087[_0x43a028++];}),this['_processTape'](_0x2eeede),this['_setDistance'](_0x41b739,'isAdded'),this['_setDistance'](_0x2eeede,'isRemoved'),_0x2026b5==_0x11c92a&&this['_markMarkers'](_0x41b739,_0x5dbb9f),_0x41b739=this['_joinTapes'](_0x41b739,_0x2eeede),this['_refreshStartEndIndex'](_0x41b739),this['_setDistance'](_0x41b739,'isRemoved');}_0x41b739=_0x41b739['filter'](_0x116d3f=>!(_0x116d3f['isAdded']&&_0x116d3f['isRemoved']));const _0x2fb032=new Map(_0xfee816['model'][_0x6742bf]['deletions']['markers']),_0x2e6d0b=new Set(_0x5dbb9f['keys']());for(const _0x3fd7f1 of _0x2fb032['keys']())_0x2e6d0b['delete'](_0x3fd7f1);this['_markSuggestions'](_0x41b739,_0x2e6d0b),this['_fixObsoleteTags'](_0x41b739),_0x41b739=this['_removeMissingPairs'](_0x41b739),_0x41b739=this['_markMismatchedRemovedTags'](_0x41b739),_0x41b739=this['_removeUnsupportedChanges'](_0x41b739);const {root:_0x25ca64,changes:_0x1f8188}=this['_makeModelFromTape'](_0x41b739,_0x535451,_0x6742bf);_0x401b94['model'][_0x6742bf]=_0x25ca64;const _0x3095c4=_0x108c8a['get'](_0x6742bf);if(_0x3095c4){const _0x45ac5c=_0x535451['get'](_0x3095c4['userId']),_0x198679=new r({'author':_0x45ac5c,'type':_0x3095c4['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x6742bf});_0x1f8188['unshift'](_0x198679),_0x401b94['attributes'][_0x6742bf]['revisionHistoryAttachChange']=_0x198679['id'];}_0x401b94['changes']=_0x401b94['changes']['concat'](_0x1f8188);}return _0x401b94;}['_markMarkers'](_0x69daf4,_0x3359e7){for(let _0x3a2d8d=0x0;_0x3a2d8d<_0x69daf4['length'];_0x3a2d8d++)for(const [_0x6edea7,_0x44c126]of _0x3359e7)_0x44c126['start']['isEqual'](_0x69daf4[_0x3a2d8d]['previousPosition'])&&_0x69daf4[_0x3a2d8d]['markersStart']['push'](_0x6edea7),_0x44c126['end']['isEqual'](_0x69daf4[_0x3a2d8d]['nextPosition'])&&_0x69daf4[_0x3a2d8d]['markersEnd']['push'](_0x6edea7);}['_joinTapes'](_0xb14b82,_0x2451d0){let _0x30dbe8=[],_0x392064=0x0,_0x38e52e=0x0;for(;_0x392064<_0xb14b82['length']||_0x38e52e<_0x2451d0['length'];){const _0xa1ca72=_0xb14b82[_0x392064]||{},_0x12afff=_0x2451d0[_0x38e52e]||{};if(_0xa1ca72['id']==_0x12afff['id'])_0x392064++,_0x38e52e++,_0x30dbe8['push'](_0xa1ca72);else{if(_0x12afff['isRemoved']&&_0xa1ca72['isAdded']){const {commonTape:_0x1b325f,iEnd:_0x19ad53,jEnd:_0x4112d4}=this['_threeWayMerge'](_0xb14b82,_0x392064,_0x2451d0,_0x38e52e);_0x30dbe8=_0x30dbe8['concat'](_0x1b325f),_0x392064=_0x19ad53,_0x38e52e=_0x4112d4;}else _0x12afff['isRemoved']?(_0x38e52e++,_0x30dbe8['push'](_0x12afff)):(_0x392064++,_0x30dbe8['push'](_0xa1ca72));}}return _0x30dbe8;}['_markSuggestions'](_0x51da80,_0x1b93a1){const _0xe94c7f=[];for(let _0x984e7c=0x0;_0x984e7c<_0x51da80['length'];_0x984e7c++){for(let _0x532c31=0x0;_0x532c31<_0x51da80[_0x984e7c]['markersStart']['length'];_0x532c31++){const _0x47d1fb=_0x51da80[_0x984e7c]['markersStart'][_0x532c31];if(!_0x1b93a1['has'](_0x47d1fb))continue;const {group:_0x8d7762,type:_0x3f3cf5,authorId:_0x26cca3}=_0x521b91(_0x47d1fb);'revision-suggestion'!=_0x8d7762||'insertion'!=_0x3f3cf5&&'deletion'!=_0x3f3cf5||(_0xe94c7f['unshift']({'type':_0x3f3cf5,'name':_0x47d1fb,'userId':_0x26cca3}),_0x51da80[_0x984e7c]['markersStart']['splice'](_0x532c31,0x1),_0x532c31--);}_0x7d3687(_0x51da80[_0x984e7c]);for(let _0x27d369=0x0;_0x27d369<_0x51da80[_0x984e7c]['markersEnd']['length'];_0x27d369++){const _0x519ad3=_0x51da80[_0x984e7c]['markersEnd'][_0x27d369];if(!_0x1b93a1['has'](_0x519ad3))continue;const {group:_0x5c5070,type:_0x3b05b9}=_0x521b91(_0x519ad3);if('revision-suggestion'!=_0x5c5070||'insertion'!=_0x3b05b9&&'deletion'!=_0x3b05b9)continue;_0x51da80[_0x984e7c]['markersEnd']['splice'](_0x27d369,0x1),_0x27d369--;const _0x59724b=_0xe94c7f['findIndex'](_0x52beaf=>_0x52beaf['name']==_0x519ad3);_0x59724b>-0x1&&_0xe94c7f['splice'](_0x59724b,0x1);}}function _0x521b91(_0x501ecd){const _0x24dcd3=_0x501ecd['split'](':');return{'group':_0x24dcd3[0x0],'type':_0x24dcd3[0x1],'subType':_0x24dcd3['length']>=0x5?_0x24dcd3[0x2]:null,'id':_0x24dcd3['length']<0x5?_0x24dcd3[0x2]:_0x24dcd3[0x3],'authorId':_0x24dcd3['length']<0x5?_0x24dcd3[0x3]:_0x24dcd3[0x4],'markerCount':0x6==_0x24dcd3['length']?_0x24dcd3[0x5]:null};}function _0x7d3687(_0x15a26c){for(let _0x12dec9=0x0;_0x12dec9<_0xe94c7f['length'];_0x12dec9++){if(_0x15a26c['isAdded']&&'insertion'==_0xe94c7f[_0x12dec9]['type'])return _0x15a26c['isAddSuggestion']=_0xe94c7f[_0x12dec9],void delete _0x15a26c['isAdded'];if(!_0x15a26c['isAdded']&&!_0x15a26c['isRemoved']&&'deletion'==_0xe94c7f[_0x12dec9]['type'])return void(_0x15a26c['isRemoveSuggestion']=_0xe94c7f[_0x12dec9]);}}}['_setDistance'](_0x41db7b,_0x56a7b6){let _0x4f46ae=0x0,_0x5e879c=!0x1;const _0xea2e3a=new Map();for(const _0x39e0bb of _0x41db7b)_0x39e0bb[_0x56a7b6]?_0x5e879c&&(_0x4f46ae++,_0x5e879c=!0x1):(_0x4f46ae++,_0x5e879c=!0x0),_0xea2e3a['set'](_0x39e0bb['id'],_0x4f46ae);for(let _0x170b4e=0x0;_0x170b4e<_0x41db7b['length'];_0x170b4e++){if('isRemoved'==_0x56a7b6&&_0x41db7b[_0x170b4e]['isAdded']||'isAdded'==_0x56a7b6&&_0x41db7b[_0x170b4e]['isRemoved'])continue;if('text'==_0x41db7b[_0x170b4e]['type']){_0x41db7b[_0x170b4e]['distance']=0x0;continue;}const _0x52f9f2=_0xea2e3a['get'](_0x41db7b[_0x170b4e]['pairId']),_0xba2b54=_0xea2e3a['get'](_0x41db7b[_0x170b4e]['id']);_0x41db7b[_0x170b4e]['distance']=_0x52f9f2-_0xba2b54;}}['_getRevisionsRange'](_0x565f69,_0x49ee98,_0xf6c75f=!0x1){const _0x1eb3b7=[];let _0x57a48d=this['repository']['getIndex'](_0x565f69),_0x5b167d=this['repository']['getIndex'](_0x49ee98);for(-0x1==_0x5b167d&&(_0x5b167d=this['repository']['_revisions']['length'],_0xf6c75f=!0x1);_0x57a48d<_0x5b167d;)_0x1eb3b7['push'](this['repository']['getRevision'](_0x57a48d)),_0x57a48d++;return _0xf6c75f&&_0x1eb3b7['push'](this['repository']['getRevision'](_0x57a48d)),_0x1eb3b7;}['_threeWayMerge'](_0x5762c4,_0x12d361,_0x59e4fb,_0x3040e6){const _0x15e1d9=this['editor']['model']['schema'];let _0x238a1c=_0x12d361;for(;_0x5762c4[_0x238a1c]&&_0x5762c4[_0x238a1c]['isAdded'];)_0x238a1c++;let _0x5d31cb=_0x3040e6;for(;_0x59e4fb[_0x5d31cb]&&_0x59e4fb[_0x5d31cb]['isRemoved'];)_0x5d31cb++;_0x3d093e(_0x5762c4,_0x12d361,_0x238a1c),_0x3d093e(_0x59e4fb,_0x3040e6,_0x5d31cb);const _0x5bf2d8=_0x59e4fb['slice'](_0x3040e6,_0x5d31cb)['concat'](_0x5762c4['slice'](_0x12d361,_0x238a1c));return _0x5bf2d8['sort']((_0x4b182f,_0x216dcb)=>_0x4b182f['side']!=_0x216dcb['side']?_0x4b182f['side']-_0x216dcb['side']:_0x4b182f['level']!=_0x216dcb['level']?_0x4b182f['level']-_0x216dcb['level']:_0x4b182f['distance']!=_0x216dcb['distance']?_0x216dcb['distance']-_0x4b182f['distance']:!!_0x4b182f['isAdded']!=!!_0x216dcb['isAdded']?-0x1==_0x4b182f['side']||0x0==_0x4b182f['side']?_0x4b182f['isAdded']?-0x1:0x1:_0x4b182f['isAdded']?0x1:-0x1:_0x4b182f['index']-_0x216dcb['index']),{'commonTape':_0x5bf2d8,'iEnd':_0x238a1c,'jEnd':_0x5d31cb};function _0x3d093e(_0x238160,_0x15239a,_0x31c355){let _0x53c8c4=-0x1,_0x20f386=Number['POSITIVE_INFINITY'],_0x2878fe=!0x0;for(let _0x1e6a13=_0x15239a;_0x1e6a13<_0x31c355;_0x1e6a13++)if(_0x15e1d9['isInline'](_0x238160[_0x1e6a13]['item'])||(_0x2878fe=!0x1),_0x238160[_0x1e6a13]['item']['startIndex']<_0x15239a&&(_0x53c8c4=_0x1e6a13),_0x238160[_0x1e6a13]['item']['endIndex']>=_0x31c355){_0x20f386=_0x1e6a13;break;}_0x2878fe&&(_0x53c8c4=_0x31c355-0x1);for(let _0x42a65b=_0x15239a;_0x42a65b<_0x31c355;_0x42a65b++)_0x238160[_0x42a65b]['side']=_0x42a65b<=_0x53c8c4?-0x1:_0x42a65b<_0x20f386?0x0:0x1,_0x238160[_0x42a65b]['index']=_0x42a65b;let _0x5c532b=0x0;for(let _0x3400f9=_0x15239a;_0x3400f9<=_0x53c8c4;_0x3400f9++)0x0==_0x238160[_0x3400f9]['distance']?_0x238160[_0x3400f9]['level']=_0x5c532b:(_0x5c532b++,_0x238160[_0x3400f9]['level']=_0x5c532b,_0x5c532b++);for(let _0x15e755=_0x15239a;_0x15e755<_0x31c355;_0x15e755++)0x0==_0x238160[_0x15e755]['side']&&(_0x238160[_0x15e755]['level']=_0x5c532b);_0x5c532b=0x0;for(let _0x9253fc=_0x31c355-0x1;_0x9253fc>=_0x20f386;_0x9253fc--)0x0==_0x238160[_0x9253fc]['distance']?_0x238160[_0x9253fc]['level']=_0x5c532b:(_0x5c532b--,_0x238160[_0x9253fc]['level']=_0x5c532b,_0x5c532b--);}}['_fixObsoleteTags'](_0x925ba3){const _0x440658=new Map(),_0x1031a4=this['editor']['model']['schema'];for(let _0x59f3e8=0x1;_0x59f3e8<_0x925ba3['length'];_0x59f3e8++){let _0x27be16,_0x37f499,_0x5e9331;const _0x3ee1c5=_0x925ba3[_0x59f3e8],_0x5116e9=_0x925ba3[_0x59f3e8-0x1];if('text'==_0x3ee1c5['type'])continue;if(_0x3ee1c5['type']!=_0x5116e9['type'])continue;if(!_0x1031a4['isBlock'](_0x5116e9['item'])||_0x1031a4['isLimit'](_0x5116e9['item']))continue;if(!_0x1031a4['isBlock'](_0x3ee1c5['item'])||_0x1031a4['isLimit'](_0x3ee1c5['item']))continue;if((_0x925ba3[_0x59f3e8]['isAdded']||_0x925ba3[_0x59f3e8]['isAddSuggestion'])&&_0x925ba3[_0x59f3e8-0x1]['isRemoved'])_0x27be16=_0x925ba3[_0x59f3e8],_0x37f499=_0x925ba3[_0x59f3e8-0x1],_0x5e9331=_0x59f3e8-0x1;else{if(!_0x925ba3[_0x59f3e8]['isRemoved']||!_0x925ba3[_0x59f3e8-0x1]['isAdded']&&!_0x925ba3[_0x59f3e8-0x1]['isAddSuggestion'])continue;_0x27be16=_0x925ba3[_0x59f3e8-0x1],_0x37f499=_0x925ba3[_0x59f3e8],_0x5e9331=_0x59f3e8;}const _0x2d552f=_0x27be16['level']==_0x37f499['level'],_0x298218=Math['abs'](_0x27be16['level'])<Math['abs'](_0x37f499['level'])&&0x0==_0x37f499['distance'];(_0x2d552f||_0x298218)&&(_0x440658['set'](_0x37f499['id'],_0x27be16['id']),_0x925ba3['splice'](_0x5e9331,0x1),_0x59f3e8--,_0x27be16['isAdded']=!0x1);}for(let _0x3ce4af=0x0;_0x3ce4af<_0x925ba3['length'];_0x3ce4af++)_0x440658['has'](_0x925ba3[_0x3ce4af]['pairId'])&&(_0x925ba3[_0x3ce4af]['pairId']=_0x440658['get'](_0x925ba3[_0x3ce4af]['pairId']));}['_removeMissingPairs'](_0x147b6e){const _0x2c6752=new Set(_0x147b6e['map'](_0x2710bc=>_0x2710bc['id']));for(let _0x1ee22c=0x0;_0x1ee22c<_0x147b6e['length'];_0x1ee22c++)_0x2c6752['has'](_0x147b6e[_0x1ee22c]['pairId'])||0x0==_0x147b6e[_0x1ee22c]['distance']||(_0x147b6e[_0x1ee22c]['isIncorrect']=!0x0);return _0x147b6e['filter'](_0x339ccd=>!_0x339ccd['isIncorrect']);}['_markMismatchedRemovedTags'](_0x297004){const _0x497654=new Set();for(let _0x54b44c=0x0;_0x54b44c<_0x297004['length'];_0x54b44c++){if(_0x497654['has'](_0x297004[_0x54b44c]['id'])&&_0x297004[_0x54b44c]['isRemoved']&&(_0x297004[_0x54b44c]['isIncorrect']=!0x0),_0x297004[_0x54b44c]['isIncorrect'])continue;if(0x0==_0x297004[_0x54b44c]['distance'])continue;if('elementStart'!=_0x297004[_0x54b44c]['type'])continue;if(null==_0x297004[_0x54b44c]['pairId'])continue;let _0x39bb6f=_0x54b44c+0x1,_0x1d19e1=0x0;for(;_0x297004[_0x39bb6f]['id']!=_0x297004[_0x54b44c]['pairId'];)'elementStart'==_0x297004[_0x39bb6f]['type']?_0x1d19e1++:'elementEnd'==_0x297004[_0x39bb6f]['type']&&_0x1d19e1--,_0x39bb6f++;if(0x0!=_0x1d19e1){if(_0x297004[_0x54b44c]['isRemoved'])_0x297004[_0x54b44c]['isIncorrect']=!0x0;else{for(;_0x39bb6f!=_0x54b44c;)_0x297004[_0x39bb6f]['isRemoved']&&0x0!=_0x297004[_0x39bb6f]['distance']&&(_0x297004[_0x39bb6f]['isIncorrect']=!0x0,_0x497654['add'](_0x297004[_0x39bb6f]['pairId'])),_0x39bb6f--;}}}return _0x297004['filter'](_0x154cd4=>!_0x154cd4['isIncorrect']);}['_removeUnsupportedChanges'](_0x2412e1){const _0x397b02=this['editor']['model']['schema'];for(let _0x57c9c8=0x0;_0x57c9c8<_0x2412e1['length'];_0x57c9c8++){if(!(_0x2412e1[_0x57c9c8]['isAdded']||_0x2412e1[_0x57c9c8]['isAddSuggestion']||_0x2412e1[_0x57c9c8]['isRemoved']||_0x2412e1[_0x57c9c8]['isRemoveSuggestion']))continue;if(0x0==_0x2412e1[_0x57c9c8]['distance'])continue;const _0x222f5e=_0x2412e1[_0x57c9c8]['item'];_0x397b02['isBlock'](_0x222f5e)||_0x397b02['isLimit'](_0x222f5e)||(_0x2412e1[_0x57c9c8]['isAdded']&&delete _0x2412e1[_0x57c9c8]['isAdded'],_0x2412e1[_0x57c9c8]['isAddSuggestion']&&delete _0x2412e1[_0x57c9c8]['isAddSuggestion'],_0x2412e1[_0x57c9c8]['isRemoveSuggestion']&&delete _0x2412e1[_0x57c9c8]['isRemoveSuggestion'],_0x2412e1[_0x57c9c8]['isRemoved']&&(_0x2412e1[_0x57c9c8]['isIncorrect']=!0x0));}return _0x2412e1['filter'](_0x10935d=>!_0x10935d['isIncorrect']);}['_makeModelFromTape'](_0x14ea90,_0x3f94ff,_0x54b27b){const _0x3270ed=new mt(),_0x4d491=[],_0x5ca167=new Map(),_0x4a568a=this['editor']['model'],_0xc4c02f=_0x4a568a['schema'],_0x2548ca=[_0x3270ed],_0x405c98={},_0x4f2566={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3a277d=null;const _0x3c10a8=[0x0];for(let _0x2a105e=0x0;_0x2a105e<_0x14ea90['length'];_0x2a105e++)if('elementStart'===_0x14ea90[_0x2a105e]['type']){_0x14ea90[_0x2a105e]['previousPosition']=_0x4a568a['createPositionFromPath'](_0x3270ed,_0x3c10a8);const _0x16967e=new ft(_0x14ea90[_0x2a105e]['item']['name'],_0x14ea90[_0x2a105e]['item']['getAttributes']());_0x2548ca[0x0]['_appendChild'](_0x16967e),_0x3c10a8['push'](0x0),_0x2548ca['unshift'](_0x16967e),_0x14ea90[_0x2a105e]['nextPosition']=_0x4a568a['createPositionFromPath'](_0x3270ed,_0x3c10a8);}else'elementEnd'===_0x14ea90[_0x2a105e]['type']?(_0x2548ca['shift'](),_0x14ea90[_0x2a105e]['previousPosition']=_0x4a568a['createPositionFromPath'](_0x3270ed,_0x3c10a8),_0x3c10a8['pop'](),_0x3c10a8[_0x3c10a8['length']-0x1]++,_0x14ea90[_0x2a105e]['nextPosition']=_0x4a568a['createPositionFromPath'](_0x3270ed,_0x3c10a8)):(_0x14ea90[_0x2a105e]['previousPosition']=_0x4a568a['createPositionFromPath'](_0x3270ed,_0x3c10a8),_0x3a277d?_0x3a277d['_data']+=_0x14ea90[_0x2a105e]['item']['data']:_0x3a277d=new wt(_0x14ea90[_0x2a105e]['item']['data'],_0x14ea90[_0x2a105e]['item']['getAttributes']()),_0x14ea90[_0x2a105e+0x1]&&'text'===_0x14ea90[_0x2a105e+0x1]['type']&&_0x4e6e12(_0x3a277d,_0x14ea90[_0x2a105e+0x1]['item'])||(_0x2548ca[0x0]['_appendChild'](_0x3a277d),_0x3a277d=null),_0x3c10a8[_0x3c10a8['length']-0x1]+=_0x14ea90[_0x2a105e]['item']['offsetSize'],_0x14ea90[_0x2a105e]['nextPosition']=_0x4a568a['createPositionFromPath'](_0x3270ed,_0x3c10a8));for(let _0x467897=0x0;_0x467897<_0x14ea90['length'];_0x467897++){const _0x401293=_0x14ea90[_0x467897]['previousPosition'],_0x560301=_0x14ea90[_0x467897]['nextPosition'];for(const _0x28f1b9 of _0x14ea90[_0x467897]['markersStart'])_0x5ca167['set'](_0x28f1b9,{'start':_0x401293,'end':null});_0x2821c7('isRemoveSuggestion',_0x467897,_0x401293,_0x560301),_0x2821c7('isAddSuggestion',_0x467897,_0x401293,_0x560301),_0x2821c7('isRemoved',_0x467897,_0x401293,_0x560301),_0x2821c7('isAdded',_0x467897,_0x401293,_0x560301);for(const _0x526131 of _0x14ea90[_0x467897]['markersEnd']){_0x5ca167['get'](_0x526131)['end']=_0x560301;}}for(const [_0x244c5a,_0x279569]of _0x5ca167){const _0x1d7cd3=this['editor']['model']['createRange'](_0x279569['start'],_0x279569['end']);_0x3270ed['markers']['set'](_0x244c5a,_0x1d7cd3);}return _0x4d491['sort']((_0x4ee72a,_0xc3f212)=>{const _0x3dd17e=_0x3270ed['markers']['get']('revision:'+_0x4ee72a['id']),_0x20ace3=_0x3270ed['markers']['get']('revision:'+_0xc3f212['id']);return _0x3dd17e['start']['isBefore'](_0x20ace3['start'])?-0x1:_0x3dd17e['start']['isAfter'](_0x20ace3['start'])?0x1:_0x3dd17e['end']['isBefore'](_0x20ace3['end'])?-0x1:_0x3dd17e['end']['isAfter'](_0x20ace3['end'])?0x1:'add'===_0x4ee72a['type']?-0x1:0x1;}),{'root':_0x3270ed,'changes':_0x4d491};function _0x2821c7(_0x4b97ed,_0x5a3dd0,_0x211372,_0x4b92bf){const _0x56ce5c=!!_0x14ea90[_0x5a3dd0][_0x4b97ed],_0x44aa4f=_0x56ce5c?_0x14ea90[_0x5a3dd0][_0x4b97ed]['userId']:null,_0x2f519b=_0x5a3dd0===_0x14ea90['length']-0x1,_0x1d08d8=_0x4f2566[_0x4b97ed][0x0],_0x1b444a=_0xc4c02f['isObject'](_0x14ea90[_0x5a3dd0]['item']);!_0x405c98[_0x4b97ed]&&_0x56ce5c?_0x405c98[_0x4b97ed]={'start':_0x211372,'tapeItem':_0x14ea90[_0x5a3dd0],'userId':_0x44aa4f,'type':_0x4b97ed}:_0x405c98[_0x4b97ed]&&!_0x56ce5c?(_0x405c98[_0x4b97ed]['end']=_0x211372,_0x457d44(_0x405c98[_0x4b97ed]),_0x405c98[_0x4b97ed]=null):_0x405c98[_0x4b97ed]&&_0x56ce5c&&_0x405c98[_0x4b97ed]['userId']!==_0x44aa4f&&(_0x405c98[_0x4b97ed]['end']=_0x211372,_0x1d08d8&&_0x1d08d8['userId']===_0x405c98[_0x4b97ed]['userId']||_0x457d44(_0x405c98[_0x4b97ed]),_0x405c98[_0x4b97ed]={'start':_0x211372,'tapeItem':_0x14ea90[_0x5a3dd0],'userId':_0x44aa4f,'type':_0x4b97ed}),_0x405c98[_0x4b97ed]&&_0x1b444a&&('elementStart'!==_0x14ea90[_0x5a3dd0]['type']||_0x1d08d8&&_0x1d08d8['userId']===_0x44aa4f||_0x4f2566[_0x4b97ed]['unshift']({'userId':_0x44aa4f,'object':_0x14ea90[_0x5a3dd0]['item'],'change':_0x405c98[_0x4b97ed]}),'elementEnd'===_0x14ea90[_0x5a3dd0]['type']&&_0x1d08d8&&_0x1d08d8['object']===_0x14ea90[_0x5a3dd0]['item']&&(_0x4f2566[_0x4b97ed]['shift'](),_0x405c98[_0x4b97ed]=_0x1d08d8['change'])),_0x405c98[_0x4b97ed]&&_0x2f519b&&(_0x405c98[_0x4b97ed]['end']=_0x4b92bf,_0x457d44(_0x405c98[_0x4b97ed]),_0x405c98[_0x4b97ed]=null);}function _0x457d44({start:_0x50a781,end:_0x3e1706,tapeItem:_0x1eb16a,userId:_0x211a8f,type:_0x14bb2b}){const _0x2153b8=_0x1eb16a['item'],_0x251e85=_0x4a568a['schema']['isBlock'](_0x2153b8)&&!_0x4a568a['schema']['isLimit'](_0x2153b8),_0x881175=_0x50a781['nodeAfter']==_0x3e1706['parent']&&_0x3e1706['isAtStart'];if(_0x251e85&&_0x881175)return;const _0x53fd5f=_0x4a568a['createRange'](_0x50a781,_0x3e1706),_0x579870=_0x3f94ff['get'](_0x211a8f),_0x4eba0c=new r({'author':_0x579870,'type':'isAdded'==_0x14bb2b||'isAddSuggestion'==_0x14bb2b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x14bb2b||'isRemoveSuggestion'==_0x14bb2b},'createdAt':new Date(),'rootName':_0x54b27b});_0x4d491['push'](_0x4eba0c),_0x3270ed['markers']['set']('revision:'+_0x4eba0c['id'],_0x53fd5f);}function _0x4e6e12(_0x50df70,_0x2d3b17){const _0x171c7d=_0x50df70['getAttributes'](),_0x4f372b=_0x2d3b17['getAttributes']();for(const _0xb9647f of _0x171c7d){if(_0xb9647f[0x1]!==_0x2d3b17['getAttribute'](_0xb9647f[0x0]))return!0x1;_0x4f372b['next']();}return _0x4f372b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xdfdbde=>{const _0x44d5e5=_0xdfdbde['markerName']['split'](':')[0x1],_0xc14ae4=this['_getChangeFromId'](_0x44d5e5);if(!_0xc14ae4)return null;const _0x4329f9='add'==_0xc14ae4['type']?'insertion':'deletion',_0x13f26d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4329f9];return _0xc14ae4['data']['isSuggestion']&&_0x13f26d['push']('ck-suggestion-marker-'+_0x4329f9+'-new'),this['activeChange']==_0xc14ae4&&_0x13f26d['push']('ck-suggestion-marker--active'),{'classes':_0x13f26d,'attributes':{'data-change-id':_0x44d5e5}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1cfe6f=>{_0x1cfe6f['on']('element:pre',(_0x6d1e06,_0x25985f,_0x416673)=>{const _0x38926d=_0x25985f['viewItem']['getChild'](0x0);if(!_0x38926d||!_0x38926d['is']('element','code'))return;if(!_0x416673['consumable']['consume'](_0x38926d,{'attributes':['vid_start','vid_end']}))return;const _0x5b544d=_0x25985f['modelRange']['start']['nodeAfter'];_0x416673['writer']['setAttribute']('vid_start',_0x38926d['getAttribute']('vid_start'),_0x5b544d),_0x416673['writer']['setAttribute']('vid_end',_0x38926d['getAttribute']('vid_end'),_0x5b544d);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x576eda=>{_0x576eda['on']('element',(_0x965c01,_0x14a4a,_0x1f9da1)=>{if(!_0x1f9da1['consumable']['consume'](_0x14a4a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x14a4a['modelRange']['isCollapsed'])return;const _0x40d8db=_0x14a4a['modelRange']['start']['nodeAfter'];_0x40d8db['hasAttribute']('vid_start')||_0x40d8db['hasAttribute']('vid')||(_0x1f9da1['writer']['setAttribute']('vid_start',_0x14a4a['viewItem']['getAttribute']('vid_start'),_0x40d8db),_0x1f9da1['writer']['setAttribute']('vid_end',_0x14a4a['viewItem']['getAttribute']('vid_end'),_0x40d8db));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2c5811=>_0x2c5811['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1f06e3,[,_0x360e4d])=>{['vid_start','vid_end','vid']['includes'](_0x360e4d)&&(_0x1f06e3['return']=!0x0,_0x1f06e3['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1835d8=>{_0x1835d8['on']('attribute:vid',(_0x2b1387,_0x5074dc,_0x17bbb0)=>{if('\x20'!=_0x5074dc['item']['data']||_0x5074dc['item']['parent']['maxOffset']>0x1)return;if(!_0x17bbb0['consumable']['consume'](_0x5074dc['item'],_0x2b1387['name']))return;const _0x519119=_0x17bbb0['writer'],_0x55748b=_0x17bbb0['mapper']['toViewRange'](_0x5074dc['range']);_0x519119['wrap'](_0x55748b,_0x519119['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3250b9){const _0xf4100e=_0x3250b9['plugins']['get']('RevisionViewer');return(_0x4b6d70,_0x2e9d8f,_0x53b973)=>{const _0xb3b48b=_0x2e9d8f['markerName']['split'](':')[0x1],_0xbd9a29=_0xf4100e['_getChangeFromId'](_0xb3b48b);if(!_0xbd9a29)return null;const _0x8d703a='add'==_0xbd9a29['type']?'split':'merge';if(!_0x53b973['consumable']['test'](_0x2e9d8f['markerRange'],_0x4b6d70['name']))return;const _0x247348=_0x2e9d8f['markerRange']['getWalker'](),_0x886d39=_0x2e9d8f['markerRange']['start'],_0x1d5a19=_0x3250b9['model']['schema'];let _0x557aae=null,_0xaa0344=null,_0x3dcc1c=!0x1,_0x2799c4=!0x1;for(const _0x2a6230 of _0x247348){const _0x5cfe86=_0x2a6230['item'];_0x3dcc1c=_0x3dcc1c||_0x1d5a19['isContent'](_0x5cfe86);const _0x431645=_0x53b973['mapper']['toViewElement'](_0x5cfe86);if(_0x431645&&_0x431645['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2a6230['type']&&(_0x1d5a19['isBlock'](_0x5cfe86)&&!_0x1d5a19['isLimit'](_0x5cfe86)&&(_0x5cfe86['nextSibling']||_0x886d39['isAtEnd']?_0x557aae&&_0x557aae['parent']==_0x5cfe86||(_0x557aae=_0x5cfe86,_0x401007(_0x2a6230['previousPosition']),_0x2799c4=!0x0):_0xaa0344=_0xaa0344||_0x2a6230['previousPosition']));}function _0x401007(_0x1c768c){const _0x2a568e=_0x53b973['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x8d703a}),_0x62e6da=_0x53b973['mapper']['toViewPosition'](_0x1c768c);_0xbd9a29['data']['isSuggestion']&&_0x53b973['writer']['addClass']('ck-suggestion-marker-'+_0x8d703a+'-new',_0x2a568e),_0xf4100e['activeChange']==_0xbd9a29&&_0x53b973['writer']['addClass']('ck-suggestion-marker--active',_0x2a568e),_0x53b973['writer']['insert'](_0x62e6da,_0x2a568e),_0x53b973['mapper']['bindElementToMarker'](_0x2a568e,_0x2e9d8f['markerName']);}_0x3dcc1c||_0x2799c4||!_0xaa0344||_0x401007(_0xaa0344);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x54fc91,_0x2d7d8d,_0x389b99)=>{const _0x1bcd64=_0x389b99['mapper']['markerNameToElements'](_0x2d7d8d['markerName']);if(_0x1bcd64){for(const _0x37a82b of _0x1bcd64)(_0x37a82b['hasClass']('ck-suggestion-marker-split')||_0x37a82b['hasClass']('ck-suggestion-marker-merge'))&&(_0x389b99['mapper']['unbindElementFromMarkerName'](_0x37a82b,_0x2d7d8d['markerName']),_0x389b99['writer']['remove'](_0x37a82b));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4ae086,_0x2c14c4,_0x54b9b2)=>{const _0x50dce0=_0x2c14c4['markerName']['split'](':')[0x1],_0x5c90c8=this['_getChangeFromId'](_0x50dce0);if(!_0x5c90c8)return null;const _0x365186='add'==_0x5c90c8['type']?'split':'merge';if(_0x54b9b2['consumable']['test'](_0x2c14c4['markerRange'],_0x4ae086['name']))for(const _0x145c0b of _0x2c14c4['markerRange']['getItems']()){if(!_0x145c0b['is']('element','softBreak'))continue;const _0x3a219e=_0x54b9b2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x365186}),_0x404c2c=_0x54b9b2['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x145c0b));_0x5c90c8['data']['isSuggestion']&&_0x54b9b2['writer']['addClass']('ck-suggestion-marker-'+_0x365186+'-new',_0x3a219e),this['activeChange']==_0x5c90c8&&_0x54b9b2['writer']['addClass']('ck-suggestion-marker--active',_0x3a219e),_0x54b9b2['writer']['insert'](_0x404c2c,_0x3a219e),_0x54b9b2['mapper']['bindElementToMarker'](_0x3a219e,_0x2c14c4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x351995=>{for(const _0x479dad of this['editor']['model']['document']['getRootNames']()){const _0x2da9de=this['editor']['model']['document']['getRoot'](_0x479dad),_0x33b2da=this['editor']['editing']['view']['document']['getRoot'](_0x479dad);if(_0x33b2da){const _0x47f0c8=_0x2da9de['getAttribute']('revisionHistoryAttachChange');if(_0x351995['removeAttribute']('data-change-id',_0x33b2da),_0x351995['removeClass']('ck-revision-history-root-add',_0x33b2da),_0x351995['removeClass']('ck-revision-history-root-remove',_0x33b2da),_0x351995['removeClass']('ck-revision-history-root--active',_0x33b2da),_0x47f0c8){const _0x229935=this['_getChangeFromId'](_0x47f0c8);if(!_0x229935)return null;_0x351995['setAttribute']('data-change-id',_0x47f0c8,_0x33b2da),_0x351995['addClass']('ck-revision-history-root-'+_0x229935['type'],_0x33b2da),this['activeChange']==_0x229935&&_0x351995['addClass']('ck-revision-history-root--active',_0x33b2da);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x19ce70=>'revision-comment:'+_0x19ce70,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2e9367=>'revision-suggestion:'+_0x2e9367,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2e9f86=>({'name':'suggestion:'+_0x2e9f86,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xc31319=>{const _0x1baded=_0xc31319['markerName']['split'](':')[0x1];return'insertion'!=_0x1baded&&'deletion'!=_0x1baded?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1baded]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x9dc172,_0x17e7d6,_0x22e2ff)=>{const _0x46774b=_0x22e2ff['mapper']['markerNameToElements'](_0x17e7d6['markerName']);if(_0x46774b){for(const _0x1a4225 of _0x46774b)_0x1a4225['is']('uiElement')&&(_0x22e2ff['mapper']['unbindElementFromMarkerName'](_0x1a4225,_0x17e7d6['markerName']),_0x22e2ff['writer']['remove'](_0x1a4225));}},{'priority':'high'});}['_getChangeFromId'](_0x58f6a2){return this['_changeIdToChange']['get'](_0x58f6a2);}['_getViewForChange'](_0x3a021e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3a021e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x23dade,_0x5e3dc3,_0x343e60,_0x227a74)=>{_0x227a74&&this['_balloon']['remove'](_0x227a74),_0x343e60&&(this['_balloon']['add']({'view':_0x343e60,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x35532b=this['editor']['editing'],_0xf3a8eb=this['_getChangeFromId'](_0x343e60['changeId']);let _0x3df7c2;if(_0xf3a8eb['data']['isOnRoot']){const _0xe307e7=_0x35532b['view']['getDomRoot'](_0xf3a8eb['rootName']);_0x3df7c2=Array['from'](_0xe307e7['getClientRects']());}else{const _0x31ab47=this['editor']['model']['markers']['get']('revision:'+_0x343e60['changeId']);_0x3df7c2=Array['from'](_0x35532b['mapper']['markerNameToElements'](_0x31ab47['name']))['map'](_0x460d1a=>_0x35532b['view']['domConverter']['mapViewToDom'](_0x460d1a))['map'](_0xa4ad00=>Array['from'](_0xa4ad00['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3df7c2[0x0];return _0x3df7c2['find'](_0x542b44=>_0x542b44['top']-0x3<=this['_activeViewTarget']['y']&&_0x542b44['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x542b44['left']-0x3<=this['_activeViewTarget']['x']&&_0x542b44['right']+0x3>=this['_activeViewTarget']['x'])||_0x3df7c2[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5899f5,_0x1e5985,_0xc7c3ac,_0x3f567c)=>{this['activeView']=_0xc7c3ac?this['_getViewForChange'](_0xc7c3ac):null,this['editor']['model']['change'](()=>{const _0x283654=this['editor']['editing'];_0x3f567c&&(_0x3f567c['data']['isOnRoot']?_0x283654['view']['change'](_0x501af4=>{_0x501af4['removeClass']('ck-revision-history-root--active',_0x283654['view']['document']['getRoot'](_0x3f567c['rootName']));}):_0x283654['reconvertMarker']('revision:'+_0x3f567c['id'])),_0xc7c3ac&&(_0xc7c3ac['data']['isOnRoot']?_0x283654['view']['change'](_0x39e990=>{_0x39e990['addClass']('ck-revision-history-root--active',_0x283654['view']['document']['getRoot'](_0xc7c3ac['rootName']));}):_0x283654['reconvertMarker']('revision:'+_0xc7c3ac['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5c631a,_0x3dd89c)=>{if(this['activeChange'])return;const _0x574747=this['_findChangeIdFromDomTarget'](_0x3dd89c['target']),_0xefb341=this['_changeIdToChange']['get'](_0x574747);_0xefb341?(this['_activeViewTarget']={'x':_0x3dd89c['domEvent']['x'],'y':_0x3dd89c['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xefb341)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x406c3a,_0x2fbb34)=>{const _0x2bfbe1=this['_findChangeIdFromDomTarget'](_0x2fbb34['target']),_0x33b6ce=this['_changeIdToChange']['get'](_0x2bfbe1);_0x33b6ce?(this['_activeViewTarget']={'x':_0x2fbb34['domEvent']['x'],'y':_0x2fbb34['domEvent']['y']},_0x33b6ce===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x33b6ce):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x23f112){do{const _0x37c89c=_0x23f112['getAttribute']('data-change-id');if(_0x37c89c)return _0x37c89c;_0x23f112=_0x23f112['parent'];}while(_0x23f112);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x277059=>{for(const _0x4fb510 of this['editor']['model']['markers'])_0x277059['removeMarker'](_0x4fb510);});}}function Z(_0x4560ce,_0x507329){return(_0x2c1486,_0x2a049c,_0xe596b6)=>{if(!_0xe596b6['consumable']['test'](_0x2a049c['markerRange'],_0x2c1486['name']))return;const _0x5e829f=_0x2a049c['markerRange']['getWalker'](),_0x12947f=_0x2a049c['markerRange']['start'],_0x224f74=_0x4560ce['model']['schema'];let _0x333e48=null,_0x575d42=null,_0x556499=!0x1,_0x1b2258=!0x1;for(const _0x3d4870 of _0x5e829f){const _0x269d61=_0x3d4870['item'];_0x556499=_0x556499||_0x224f74['isContent'](_0x269d61);const _0x2856bd=_0xe596b6['mapper']['toViewElement'](_0x269d61);if(_0x2856bd&&_0x2856bd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d4870['type']&&(_0x224f74['isBlock'](_0x269d61)&&!_0x224f74['isLimit'](_0x269d61)&&(_0x269d61['nextSibling']||_0x12947f['isAtEnd']?_0x333e48&&_0x333e48['parent']==_0x269d61||(_0x333e48=_0x269d61,_0x1a7d3c(_0x3d4870['previousPosition']),_0x1b2258=!0x0):_0x575d42=_0x575d42||_0x3d4870['previousPosition']));}function _0x1a7d3c(_0x362363){const _0x515cca=_0xe596b6['mapper']['toViewPosition'](_0x362363),_0x195938=_0xe596b6['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x507329});_0xe596b6['writer']['insert'](_0x515cca,_0x195938),_0xe596b6['mapper']['bindElementToMarker'](_0x195938,_0x2a049c['markerName']);}_0x556499||_0x1b2258||!_0x575d42||_0x1a7d3c(_0x575d42);};}class _t extends _0x1001ce{constructor(_0x100c6a){super(_0x100c6a);const _0x2e458c=_0x100c6a['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x2e458c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2e458c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3d9dc4=this['editor'],_0x310f65=_0x3d9dc4['plugins']['get'](d),_0x5eb36b=_0x310f65['isReady']?_0x310f65['diff']['newRevisionId']:null;_0x3d9dc4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5eb36b);}['refresh'](){const {isReady:_0x434ec1,isEnabled:_0x38c9a5,repository:_0x3f362e,diff:_0x5c493b}=this['editor']['plugins']['get'](d),_0x288af1=_0x5c493b&&_0x3f362e['getLaterVisibleRevision'](_0x5c493b['newRevisionId']);this['isEnabled']=_0x434ec1&&_0x38c9a5&&Boolean(_0x288af1);}}class yt extends _0x1001ce{['_step'];constructor(_0x4100bd,{direction:_0x29fbc9}){super(_0x4100bd);const _0xf69b81=_0x4100bd['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x29fbc9?0x1:-0x1,this['listenTo'](_0xf69b81,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xf69b81,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xf69b81,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x52d1fd=this['editor'],_0x26ff06=_0x52d1fd['plugins']['get'](d),{isNavigationMode:_0x1e19ab,currentChangeNumber:_0x152747}=_0x26ff06;let _0x3df060;if(_0x26ff06['activeChange']=_0x1e19ab?_0x26ff06['diff']['changes']['get'](_0x152747+this['_step']):_0x26ff06['diff']['changes']['first'],_0x26ff06['activeChange']['data']['isOnRoot'])_0x3df060=_0x52d1fd['editing']['view']['getDomRoot'](_0x26ff06['activeChange']['rootName']);else{const _0x169bd8=_0x52d1fd['model']['markers']['get']('revision:'+_0x26ff06['activeChange']['id']);_0x3df060=_0x216bee(_0x52d1fd['editing'],_0x169bd8);}_0x479610({'target':_0x3df060,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xe29b75,currentChangeNumber:_0x4a9b11,numberOfChanges:_0x27ee2a,isReady:_0x3aabfe,isEnabled:_0x112217}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x112217&&_0x3aabfe&&_0x27ee2a)&&(!_0xe29b75||(0x1===this['_step']?_0x4a9b11<_0x27ee2a-0x1:_0x4a9b11>0x0));}}class _i extends _0x46e692{constructor(_0x86dd99){super(_0x86dd99);const _0x6a7534=this['bindTemplate'],_0xdca848=new _0x319a68(_0x86dd99),_0x588ea7=new _0x319a68(_0x86dd99);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',(_0x128db7,_0x16cf92)=>_0x128db7&&_0x16cf92>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x545497,_0x509851,_0xabf8e7,_0xaecac9)=>{if(!_0x545497)return m(_0x86dd99,'Loading...');if(!_0xabf8e7)return m(_0x86dd99,'No\x20changes');const _0x300789=m(_0x86dd99,'NUMBER_OF_CHANGES',_0xabf8e7);return _0xaecac9?m(_0x86dd99,'X_OF_Y_CHANGES',[_0x509851+0x1,_0xabf8e7]):_0x300789;}),_0xdca848['set']({'label':m(_0x86dd99,'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'}),_0x588ea7['set']({'label':m(_0x86dd99,'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'}),_0xdca848['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x588ea7['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xdca848['on']('execute',()=>this['fire']('execute','backward')),_0x588ea7['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',_0x6a7534['if']('_isStatusLabelVisible','ck-hidden',_0x1d62dd=>!_0x1d62dd)]},'children':[{'text':_0x6a7534['to']('isNavigationMode',_0x4ae250=>_0x4ae250?m(_0x86dd99,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x86dd99,'Total')+':\x20')}]},{'text':_0x6a7534['to']('_statusText')}]},new _0x561d34(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xdca848,_0x588ea7]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0xf0a0b{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x11696f=this['editor']['editing']['view'];_0x11696f['change'](_0x3b0592=>{for(const _0x58e5d5 of _0x11696f['document']['roots'])_0x3b0592['addClass'](ce,_0x58e5d5);});}['hide'](){const _0x3ff5d8=this['editor']['editing']['view'];_0x3ff5d8['change'](_0x2083de=>{for(const _0x3e4700 of _0x3ff5d8['document']['roots'])_0x2083de['removeClass'](ce,_0x3e4700);});}}class g extends _0xf0a0b{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x39f6d5=this['editor'],_0x32619f=_0x39f6d5['plugins']['get'](d),_0x47a6a2=_0x39f6d5['plugins']['get'](le);_0x39f6d5['ui']['componentFactory']['add']('exitToEditing',_0x4b1703=>{const _0x433bf1=new _0x319a68(_0x4b1703);return _0x433bf1['set']({'label':m(_0x4b1703,'Back\x20to\x20editing'),'icon':_0x580a31['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x433bf1,'execute',()=>{_0x39f6d5['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x433bf1;}),_0x39f6d5['ui']['componentFactory']['add']('restoreRevision',_0x3ed104=>{const _0xe1f605=new _0x319a68(_0x3ed104);return _0xe1f605['set']({'label':m(_0x3ed104,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xe1f605['bind']('isEnabled')['to'](_0x39f6d5['commands']['get']('restoreRevision')),this['listenTo'](_0xe1f605,'execute',()=>_0x39f6d5['execute']('restoreRevision')),_0xe1f605;}),_0x39f6d5['ui']['componentFactory']['add']('changesNavigation',_0x57a23f=>{const _0x447dfa=new _i(_0x57a23f),_0x56ecb3=_0x39f6d5['commands']['get']('showPreviousChange'),_0x57ecae=_0x39f6d5['commands']['get']('showNextChange');return _0x447dfa['bind']('isBackwardNavigationEnabled')['to'](_0x56ecb3,'isEnabled'),_0x447dfa['bind']('isForwardNavigationEnabled')['to'](_0x57ecae,'isEnabled'),_0x447dfa['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x32619f),this['listenTo'](_0x447dfa,'execute',(_0x23a9b4,_0xe7b12d)=>{_0x39f6d5['execute']('forward'===_0xe7b12d?'showNextChange':'showPreviousChange');}),_0x447dfa;}),_0x47a6a2['show'](),_0x32619f['on']('change:isReady',(_0xe50d32,_0x5bedb8,_0x36bafd)=>{_0x36bafd?_0x47a6a2['hide']():_0x47a6a2['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x875d61,_0x5dc2e8){super(_0x875d61,_0x5dc2e8);const _0x55522f=this['bindTemplate'];this['set']({'label':m(_0x875d61,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x875d61,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x55522f['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 _0x494d43=this['fieldView']['element'];this['_tooltipString']=_0x494d43['scrollWidth']>_0x494d43['clientWidth']&&_0x494d43['value']||'';}}class ti extends _0x46e692{constructor(_0x386500,_0x20bfc1,_0x4903ae){super(_0x386500);const _0x2fd8b6=new _0x3f11b3();_0x2fd8b6['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 _0x5be7fa=['ck','ck-revision-history-sidebar__revision-author'];_0x4903ae&&_0x5be7fa['push']('ck-revision-history-sidebar__revision-author_creator');const _0x44af19=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x386500,_0x4903ae?'Revision\x20creator':'Revision\x20author')},'children':[_0x2fd8b6,_0x20bfc1['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5be7fa},'children':_0x44af19});}}function ni(_0x9627d1,_0x17c9e2){const _0x5de099=_0x9627d1['bindTemplate'],_0x3a2d16=_0x9627d1['locale'],_0x468260=_0x161ce7(_0x3a2d16);_0x468260['panelPosition']='sw';const _0x1bd3aa=function(_0x55c65c,_0x21bc49){const _0xda750d=function(_0xe3a83d,_0x1f23a2){const _0x342409=_0xe3a83d['locale'],_0x29e60d={'Compare\x20against\x20selected':m(_0x342409,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x342409,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x342409,'Restore\x20this\x20revision')};return _0x1f23a2['map'](_0x55e022=>{const _0x8bfe5a=_0x29e60d[_0x55e022['name']];return _0x8bfe5a&&_0x8bfe5a!==_0x55e022['name']&&(_0x55e022['name']=_0x8bfe5a),_0x55e022;});}(_0x55c65c,_0x21bc49),_0xa4f7b7=new _0x5e4f58();for(const _0x5d9e3a of _0xda750d){const _0x3b4f96={'type':'button','model':new to({'label':_0x5d9e3a['name'],'class':_0x5d9e3a['class'],'withText':!0x0,'role':'menuitem','_action':_0x5d9e3a['action']})};_0x3b4f96['model']['bind']('isEnabled')['to'](_0x55c65c,'isActionsDropdownOpen',_0x121dc3=>'function'!=typeof _0x5d9e3a['isEnabled']||(!_0x121dc3||_0x5d9e3a['isEnabled'](_0x55c65c))),_0xa4f7b7['add'](_0x3b4f96);}return _0xa4f7b7;}(_0x9627d1,_0x17c9e2);return _0x9627d1['bind']('isActionsDropdownOpen')['to'](_0x468260,'isOpen'),_0x468260['buttonView']['set']({'label':m(_0x3a2d16,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x580a31['threeVerticalDots']}),_0x468260['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5de099['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5de099['to'](_0x12d924=>_0x12d924['stopPropagation']())}}),_0x468260['on']('execute',_0x39ff86=>{_0x9627d1['isReady']&&'function'==typeof _0x39ff86['source']['_action']&&_0x39ff86['source']['_action'](_0x9627d1);}),_0x3f681e(_0x468260,_0x1bd3aa,{'role':'menu'}),_0x468260['listenTo'](_0x9627d1,'change:isActionsDropdownOpen',(_0x2e3655,_0x13295f,_0x5acc05)=>{if(_0x5acc05)for(const _0xd4e684 of _0x468260['listView']['items']){const _0xd8c0b3=_0xd4e684['children']['first'],_0x3a10b9=_0x17c9e2['find'](_0x419cbb=>_0x419cbb['action']===_0xd8c0b3['_action'])['isVisible'];_0xd4e684['isVisible']=void 0x0===_0x3a10b9||_0x3a10b9(_0x9627d1);}}),_0x468260;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0xa3ae3f(_0x46e692){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x16ac29,_0x437ea0,_0x1b5a79,_0x418e7f){super(_0x16ac29);const _0x5d035f=this['bindTemplate'],_0x291794=function(_0xe64f0,_0x547374){const _0x52d063=Array['from'](_0x547374['authors'])['filter'](_0x3d5489=>_0x3d5489!=_0x547374['creator']);return _0x547374['creator']&&_0x52d063['unshift'](_0x547374['creator']),_0x52d063['map'](_0x33adfe=>new ti(_0xe64f0,_0x33adfe,_0x33adfe==_0x547374['creator']));}(_0x16ac29,_0x437ea0);this['id']=_0x437ea0['id'],this['_revision']=_0x437ea0,this['_requireRevisionName']=_0x418e7f,this['bind']('name','createdAt')['to'](_0x437ea0),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x244bd2=>{return _0x5d2fe2=_0x16ac29['uiLanguage'],(_0x251327=_0x244bd2)['toLocaleDateString'](_0x5d2fe2,{'month':'long','day':'numeric'})+',\x20'+_0x251327['toLocaleTimeString'](_0x5d2fe2,{'hour':'numeric','minute':'numeric'});var _0x5d2fe2,_0x251327;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x16ac29,_0x8c8f78),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x19d26d=>_0x19d26d||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x34f400,_0x56ee90)=>_0x34f400&&_0x56ee90),this['revisionActionsView']=_0x1b5a79&&_0x1b5a79['length']?ni(this,_0x1b5a79):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5d035f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5d035f['if']('isEnabled','ck-disabled',_0x2193ba=>!_0x2193ba),_0x5d035f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5d035f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5d035f['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':_0x5d035f['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':_0x291794}]},this['revisionActionsView']],'on':{'click':_0x5d035f['to'](_0x2f94a0=>{_0x2f94a0['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x59ebd5=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x59ebd5,'change',()=>{this['_requireRevisionName']&&!_0x59ebd5['value']||this['fire']('setName',{'id':this['id'],'name':_0x59ebd5['value']}),_0x59ebd5['value']||(_0x59ebd5['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(_0xc2919b,_0x15c6e6){const _0x14969f=_0x1ecbea['fromJSDate'](_0xc2919b)['setLocale'](_0x15c6e6),_0x83801e=_0x1ecbea['local'](),_0x4d3171=_0x83801e['minus']({'days':0x1})['startOf']('day');let _0x4b7982,_0x2e51c7;return _0x14969f['hasSame'](_0x83801e,'day')?(_0x4b7982=_0x14969f['startOf']('day')['toJSDate'](),_0x2e51c7=_0x14969f['toRelativeCalendar']()):_0x14969f['hasSame'](_0x4d3171,'day')?(_0x4b7982=_0x4d3171['toJSDate'](),_0x2e51c7=_0x14969f['toRelativeCalendar']()):_0x14969f['hasSame'](_0x83801e,'week')?(_0x4b7982=_0x14969f['startOf']('week')['toJSDate'](),_0x2e51c7=_0x14969f['weekdayLong']||''):_0x14969f['hasSame'](_0x83801e,'year')?(_0x4b7982=_0x14969f['startOf']('month')['toJSDate'](),_0x2e51c7=_0x14969f['monthLong']||''):(_0x4b7982=_0x14969f['startOf']('year')['toJSDate'](),_0x2e51c7=String(_0x14969f['year'])),{'startDate':_0x4b7982,'localizedPeriodName':_0x2e51c7};}class mi extends _0x46e692{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x480728,_0x3a2d87,_0xdc70ad,_0x1ee260){super(_0x480728);const _0x2e6b34=di(_0x3a2d87,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3a2d87,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xdc70ad,this['_requireRevisionName']=_0x1ee260,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':_0x2e6b34}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2dbc74){const _0x4935a9=new ai(this['locale'],_0x2dbc74,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4935a9);}['removeRevision'](_0x518a36){const _0x5822d6=this['revisionViews']['find'](_0x319e21=>_0x319e21['id']===_0x518a36['id']);this['revisionViews']['remove'](_0x5822d6);}}class as extends _0x46e692{constructor(_0x5f5a8e){super(_0x5f5a8e);const _0x475dc7=new _0x3f11b3();_0x475dc7['content']=_0x580a31['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x475dc7,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5f5a8e,'Revision\x20history')]}]});}}class ci extends _0x46e692{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x15e6a0,_0x2e29d0,_0x1e0c73,_0x1ba9b8){super(_0x15e6a0);const _0x1d7c7c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2e29d0,this['_revisionActions']=_0x1e0c73,this['_requireRevisionName']=_0x1ba9b8,this['on']('select',(_0x24af80,_0x1d6a4c)=>{this['fire']('revisionSelected',_0x1d6a4c);}),this['on']('setName',(_0x3a9b87,_0x53124f)=>{this['fire']('revisionSetName',_0x53124f);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x15e6a0),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1d7c7c['if']('isEnabled','ck-disabled',_0x225f0e=>!_0x225f0e)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xa87355 of this['_revisions'])this['_addRevision'](_0xa87355);this['_revisions']['on']('add',(_0x4632ae,_0x529b9a)=>{this['_addRevision'](_0x529b9a);}),this['_revisions']['on']('remove',(_0x1390f9,_0x193f9d)=>{this['_removeRevision'](_0x193f9d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x33f2aa=>_0x33f2aa['revisionViews']['map'](_0x59aed7=>_0x59aed7))['flat']();}['selectRevision'](_0x40a113){for(const _0x379579 of this['revisionViews'])_0x40a113&&_0x40a113['id']===_0x379579['id']?_0x379579['select']():_0x379579['deselect']();}['highlightRevisions'](_0x2b3912){for(const _0x2443e9 of this['revisionViews'])_0x2b3912['some'](({id:_0x51057e})=>_0x51057e===_0x2443e9['id'])?_0x2443e9['highlight']():_0x2443e9['unhighlight']();}['_addRevision'](_0xc445d2){const _0x4a5d0d=di(_0xc445d2['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x10dffe=this['timePeriodViews']['get'](0x0);_0x10dffe&&_0x10dffe['startDate']['getTime']()===_0x4a5d0d['getTime']()||(_0x10dffe=new mi(this['locale'],_0x4a5d0d,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x10dffe)),_0x10dffe['addRevision'](_0xc445d2);}['_removeRevision'](_0x3f2276){const _0x5ac6af=di(_0x3f2276['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5ac6af)['removeRevision'](_0x3f2276);}['_getTimePeriodViewByStartDate'](_0x374314){return this['timePeriodViews']['find'](_0xcb3ce6=>_0xcb3ce6['startDate']['getTime']()===_0x374314['getTime']());}}class w extends _0xf0a0b{['_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(_0x1ddf6e){super(_0x1ddf6e),this['_revisionViewer']=_0x1ddf6e['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4c5d44=this['_revisionsRepository']['_revisions'],_0xae45af=this['_createRevisionActions'](),_0x7ebda5=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x4c5d44,_0xae45af,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',(_0x5deb0b,_0x29b9fa)=>{_0x29b9fa['revisionViews']['on']('add',(_0x52d5ea,_0x437b1b)=>{_0x437b1b['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)),_0x7ebda5['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3df659=this['_revisionsRepository']['getRevision'](0x0);if(_0x3df659){const _0xc09440=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3df659['id']);this['_revisionViewer']['compare'](_0x3df659,_0xc09440);}}['_handleRevisionSelected'](_0x2bb394,_0x473040){const _0x4eca6f=this['_revisionsRepository']['getRevision'](_0x473040['id']),_0x48f169=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4eca6f['id']);this['_revisionViewer']['compare'](_0x4eca6f,_0x48f169);}['_handleRevisionSetName'](_0x4eef5b,_0x29a586){this['_revisionsRepository']['getRevision'](_0x29a586['id'])['setName'](_0x29a586['name']);}['_handleDiffChange'](_0xdb35c1,_0x59e78b,_0x1cfcbb){const _0x8340b0=this['_revisionsRepository']['getRevisionsInDiff'](_0x1cfcbb);_0x8340b0['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x8340b0),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x8340b0[0x0]));}['_createRevisionActions'](){const _0x36ea80=this['editor'],_0xfda0eb=w['availableRevisionActions'],_0x174a15=_0x36ea80['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x174a15['length'])return _0x174a15['map'](_0x457ea6=>{const _0x269376='string'==typeof _0x457ea6?Object['assign']({},_0xfda0eb[_0x457ea6]):_0x457ea6;return _0x269376['action']=_0x269376['action']['bind'](this,_0x36ea80),_0x269376['isVisible']&&(_0x269376['isVisible']=_0x269376['isVisible']['bind'](this,_0x36ea80)),_0x269376;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x527c0d},_0x6f409f)=>{const _0x3e6bfa=_0x527c0d['get'](d),_0xf484c8=_0x3e6bfa['repository'];let _0x53669d=_0x3e6bfa['diff']['newRevisionId'],_0x7fbf71=_0x6f409f['id'];_0xf484c8['getIndex'](_0x53669d)>_0xf484c8['getIndex'](_0x7fbf71)&&([_0x53669d,_0x7fbf71]=[_0x7fbf71,_0x53669d]),_0x3e6bfa['compare'](_0x53669d,_0x7fbf71);},'isVisible':({plugins:_0x4295f5},_0x51873b)=>{const _0x560104=_0x4295f5['get'](d);return!(_0x560104['repository']['getRevisionsInDiff'](_0x560104['diff'])['length']>0x2)&&!_0x51873b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x240f94,{id:_0x361fbc})=>{_0x240f94['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x361fbc);},'isVisible':({plugins:_0x6b1c81},_0x3b87d8)=>!!_0x6b1c81['get'](d)['repository']['getLaterVisibleRevision'](_0x3b87d8['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1390fd},{id:_0x2c1bc3,revisionNameView:_0x10a151})=>{const _0x14c64c=_0x1390fd['get'](d),_0x39f0d5=_0x14c64c['repository']['getEarlierVisibleRevision'](_0x2c1bc3);_0x14c64c['compare'](_0x2c1bc3,_0x39f0d5),_0x10a151['focus'](),_0x10a151['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5a3d2c,_0x3e5205){super(_0x5a3d2c),this['_view']=_0x3e5205,this['_toolbarConfig']=ot(_0x5a3d2c['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x33b2d4){const _0x14f790=this['editor'],_0x50524b=this['view'],_0x10ef90=_0x14f790['editing']['view'],_0x39d9a6=_0x50524b['editable'],_0x365489=_0x10ef90['document']['getRoot']();_0x39d9a6['name']=_0x365489['rootName'],_0x50524b['render']();const _0x2d58d3=_0x39d9a6['element'];this['setEditableElement'](_0x39d9a6['name'],_0x2d58d3),_0x50524b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x10ef90['attachDomRoot'](_0x2d58d3),this['_elementReplacer']['replace'](_0x33b2d4,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x339958=this['view'],_0x518f45=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x518f45['detachDomRoot'](_0x339958['editable']['name']),_0x339958['destroy']();}['_initToolbar'](){const _0xcb53c4=this['view'];_0xcb53c4['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xcb53c4['stickyPanel']['limiterElement']=_0xcb53c4['element'],_0xcb53c4['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2a9dd1})=>_0x2a9dd1),_0xcb53c4['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xcb53c4['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1b0a15,_0x2de6bb,_0x2e25b7={}){super(_0x1b0a15),this['stickyPanel']=new ut(_0x1b0a15),this['toolbar']=new lt(_0x1b0a15,{'shouldGroupWhenFull':_0x2e25b7['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x1b0a15,_0x2de6bb);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x227900,_0x1e5e82){super(_0x1e5e82),this['sourceElement']=_0x227900,this['model']['document']['createRoot']();const _0x53665e=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x53665e);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1b3ccd,_0x2d744d){const _0x44dcd1=new this(_0x1b3ccd,_0x2d744d);return await _0x44dcd1['initPlugins'](),await _0x44dcd1['ui']['init'](_0x1b3ccd),await _0x44dcd1['data']['init'](_0x44dcd1['config']['get']('initialData')||''),_0x44dcd1['fire']('ready'),_0x44dcd1;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x5dff76{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d6abe){function _0x53af13(_0x55f277){return _0x55f277['map'](_0x42b616=>String['fromCharCode'](_0x42b616))['join']('');}super(_0x4d6abe),this['result']='end',_0x4d6abe[_0x53af13([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53af13([0x76,0x69,0x65,0x77])][_0x53af13([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53af13([0x61,0x75,0x74,0x6f]),_0x4d6abe[_0x53af13([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x53af13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53af13([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x53af13([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x53af13([0x6f,0x6b])});}}class k extends _0x5dff76{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x8b94aa){if(super(_0x8b94aa),!this['editor']['config']['get']('revisionHistory'))throw new _0x4d1e5d('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x160d92=>this['_showRevisionViewer']({..._0x160d92,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5d6301=>this['_closeRevisionViewer'](_0x5d6301)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1cdf0e=>this['_restoreRevision'](_0x1cdf0e)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2f40be){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2f40be;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xaa0f40){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xaa0f40);}['getRevision'](_0x423852){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x423852);}['getRevisions'](_0x4d29bf){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4d29bf||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2d4ec5=this['editor'],_0x265ab6=_0x5d9b08(_0x2d4ec5,p),_0x17cc42=_0x2d4ec5['plugins']['get']('RevisionTracker'),_0x670eff=_0x2d4ec5['plugins']['get']('Users')['users'];return _0x265ab6['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x265ab6['lazyRoots'],(_0x265ab6['plugins']['push'](Rt,d,g,class extends _0x5dff76{static get['requires'](){return[d,'Users'];}['init'](){const _0xf658dd=this['editor']['plugins']['get']('Users');for(const _0x46b62a of _0x670eff)_0x46b62a['isAnonymous']||_0xf658dd['getUser'](_0x46b62a['id'])||_0xf658dd['addUser'](_0x46b62a);const _0x5ee59f=_0x17cc42['repository']['getRevisions']();let _0x1d4625=null;const _0x3af0fc=this['editor']['plugins']['get']('RevisionViewer');_0x3af0fc['adapter']=_0x17cc42['adapter'],_0x3af0fc['bind']('isEnabled')['to'](_0x17cc42),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2d4ec5,'isReadOnly',_0x51e33c=>!_0x51e33c);for(const _0x4f7419 of _0x5ee59f){const _0xbbbaa5=null===_0x4f7419['creator'];if(_0xbbbaa5&&_0x4f7419['toVersion']===_0x4f7419['fromVersion'])continue;const _0x48d3ba=_0x4f7419['toJSON']();_0x3af0fc['addRevisionData'](_0x48d3ba,(_0x2bf1aa,_0x1e5c6d,_0x2ba3da)=>{if(_0xbbbaa5){if(_0x1d4625)_0x1d4625['_update'](_0x2bf1aa,_0x1e5c6d);else{if(!_0x1e5c6d){const _0x5b7c6e=_0x2ba3da['toJSON']();_0x5b7c6e['id']=_0x4c7642(),_0x17cc42['saveRevision'](_0x5b7c6e,_0x2ba3da['toVersion'])['then'](_0x454fc0=>{_0x1d4625=_0x454fc0;});}}}else _0x4f7419['_update'](_0x2bf1aa,_0x1e5c6d);});}}},w),_0x265ab6);}['_enhanceShowRevisionViewerCallback'](){const _0xfee6a8=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x29542b=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x166f0a=this['editor']['plugins']['get']('Autosave');await _0x166f0a['save']();}else await _0x29542b['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3f842a=this['editor']['plugins']['get']('Dialog');_0x3f842a['isOpen']&&_0x3f842a['hide']();}const _0x52f6a1=this['_getRevisionViewerEditorConfig']();return _0xfee6a8(_0x52f6a1)['then'](_0x1bbf14=>{return(this['_viewerEditor']=_0x1bbf14,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1bbf14;})['catch'](_0x353057=>(console['error'](_0x353057),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x141fcd=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'](),_0x141fcd(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xfb77b6=this['editor']['plugins']['get']('Annotations');_0xfb77b6['refreshVisibility'](),_0xfb77b6['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5b5daf){const _0xf08a8=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3886ce=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x37d73e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x37d73e,_0x5b5daf)['then'](_0x5c5396=>(_0x3886ce['style']['display']='block',_0xf08a8['style']['display']='none',_0x5c5396));}['_closeRevisionViewer'](_0x397fa8){const _0x2eb138=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2eb138['style']['display']='',_0x397fa8['destroy']();}async['_restoreRevision'](_0x4e4d8a){const _0x390c02=this['editor'],_0xe12d26=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x41b11a=_0x390c02['plugins']['get']('RevisionTracker'),_0x565b53=_0xe12d26['repository']['getRevision'](_0x4e4d8a);let _0x44c411,_0x1a571f,_0x15d29f;try{_0x44c411=await _0xe12d26['getRevisionData'](_0x565b53),_0x1a571f=await _0xe12d26['getRevisionRootsAttributes'](_0x565b53);}catch(_0x3c593c){return void console['error'](_0x3c593c);}_0x390c02['model']['change'](_0x365aa2=>{for(const _0x3e824f of Array['from'](_0x390c02['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x365aa2['removeMarker'](_0x3e824f);}),_0xe12d26['isReady']=!0x1,_0x390c02['model']['enqueueChange'](_0x586f23=>{_0x586f23['setSelection'](null),_0x586f23['removeSelectionAttribute'](_0x390c02['model']['document']['selection']['getAttributeKeys']());const _0x2ffd8f=Object['keys'](_0x44c411);for(const _0x5a48f9 of _0x390c02['model']['document']['roots'])'$graveyard'!=_0x5a48f9['rootName']&&_0x5a48f9['isAttached']()&&!_0x2ffd8f['includes'](_0x5a48f9['rootName'])&&_0x586f23['detachRoot'](_0x5a48f9);for(const _0x30cc2a of _0x2ffd8f){let _0x3777c6=_0x390c02['model']['document']['getRoot'](_0x30cc2a);_0x3777c6&&_0x3777c6['isAttached']()||(_0x3777c6=_0x586f23['addRoot'](_0x30cc2a));const _0x31ea9c=_0x1a571f[_0x30cc2a],_0x12c67e=Object['keys'](_0x31ea9c),_0x48a130=_0x44c411[_0x30cc2a];for(const _0x3a337c of _0x3777c6['getAttributeKeys']())_0x12c67e['includes'](_0x3a337c)||_0x586f23['removeAttribute'](_0x3a337c,_0x3777c6);for(const _0x254699 of _0x12c67e)_0x586f23['setAttribute'](_0x254699,_0x1a571f[_0x30cc2a][_0x254699],_0x3777c6);_0x586f23['remove'](_0x586f23['createRangeIn'](_0x3777c6)),_0x586f23['insert'](_0x390c02['data']['parse'](_0x48a130,_0x3777c6),_0x3777c6,0x0);}});const _0x4b8bc2=m(_0x390c02['locale'],'Restored');if(_0x565b53['name'])_0x15d29f=-0x1==_0x565b53['name']['indexOf'](_0x4b8bc2)?_0x4b8bc2+':\x20'+_0x565b53['name']:_0x565b53['name'];else _0x15d29f=_0x4b8bc2+':\x20'+(_0x565b53['createdAt']['toLocaleDateString'](_0x390c02['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x565b53['createdAt']['toLocaleTimeString'](_0x390c02['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x41b11a['saveRevision']({'name':_0x15d29f}),_0xe12d26['isReady']=!0x0,_0x390c02['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,te as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x1d8c31){super(_0x1d8c31),this['_revisionViewer']=_0x1d8c31['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x409c69=this['_revisionsRepository']['_revisions'],_0x824897=this['_createRevisionActions'](),_0x4704a3=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x409c69,_0x824897,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',(_0x4fc9e6,_0x4ec866)=>{_0x4ec866['revisionViews']['on']('add',(_0x4a5001,_0x49fded)=>{_0x49fded['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)),_0x4704a3['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3975c9=this['_revisionsRepository']['getRevision'](0x0);if(_0x3975c9){const _0x90683a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3975c9['id']);this['_revisionViewer']['compare'](_0x3975c9,_0x90683a);}}['_handleRevisionSelected'](_0x4f08c9,_0x8e3abd){const _0x332a04=this['_revisionsRepository']['getRevision'](_0x8e3abd['id']),_0x6db42c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x332a04['id']);this['_revisionViewer']['compare'](_0x332a04,_0x6db42c);}['_handleRevisionSetName'](_0xddd07f,_0x152e19){this['_revisionsRepository']['getRevision'](_0x152e19['id'])['setName'](_0x152e19['name']);}['_handleDiffChange'](_0x3b4fe5,_0x1d0177,_0x4a4429){const _0x578b6b=this['_revisionsRepository']['getRevisionsInDiff'](_0x4a4429);_0x578b6b['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x578b6b),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x578b6b[0x0]));}['_createRevisionActions'](){const _0x3f7cc3=this['editor'],_0x56ca4f=w['availableRevisionActions'],_0x44862b=_0x3f7cc3['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x44862b['length'])return _0x44862b['map'](_0x32cf9a=>{const _0x3032fe='string'==typeof _0x32cf9a?Object['assign']({},_0x56ca4f[_0x32cf9a]):_0x32cf9a;return _0x3032fe['action']=_0x3032fe['action']['bind'](this,_0x3f7cc3),_0x3032fe['isVisible']&&(_0x3032fe['isVisible']=_0x3032fe['isVisible']['bind'](this,_0x3f7cc3)),_0x3032fe;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x416376},_0x3f0cfb)=>{const _0x57d406=_0x416376['get'](d),_0x17d09b=_0x57d406['repository'];let _0x39ef8c=_0x57d406['diff']['newRevisionId'],_0x30bd3f=_0x3f0cfb['id'];_0x17d09b['getIndex'](_0x39ef8c)>_0x17d09b['getIndex'](_0x30bd3f)&&([_0x39ef8c,_0x30bd3f]=[_0x30bd3f,_0x39ef8c]),_0x57d406['compare'](_0x39ef8c,_0x30bd3f);},'isVisible':({plugins:_0x5e5d2a},_0xed89f3)=>{const _0x31d59b=_0x5e5d2a['get'](d);return!(_0x31d59b['repository']['getRevisionsInDiff'](_0x31d59b['diff'])['length']>0x2)&&!_0xed89f3['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2f6f99,{id:_0x28d3c2})=>{_0x2f6f99['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x28d3c2);},'isVisible':({plugins:_0x23b5af},_0x2919c9)=>!!_0x23b5af['get'](d)['repository']['getLaterVisibleRevision'](_0x2919c9['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5c05e3},{id:_0x1e0263,revisionNameView:_0x582bf8})=>{const _0x1bec96=_0x5c05e3['get'](d),_0x2cc65c=_0x1bec96['repository']['getEarlierVisibleRevision'](_0x1e0263);_0x1bec96['compare'](_0x1e0263,_0x2cc65c),_0x582bf8['focus'](),_0x582bf8['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x80d486,_0x3fbca8){super(_0x80d486),this['_view']=_0x3fbca8,this['_toolbarConfig']=ot(_0x80d486['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0xa26a0e){const _0x15fb49=this['editor'],_0x167907=this['view'],_0x24c6e2=_0x15fb49['editing']['view'],_0x8a52ed=_0x167907['editable'],_0x510392=_0x24c6e2['document']['getRoot']();_0x8a52ed['name']=_0x510392['rootName'],_0x167907['render']();const _0x1ce9ab=_0x8a52ed['element'];this['setEditableElement'](_0x8a52ed['name'],_0x1ce9ab),_0x167907['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x24c6e2['attachDomRoot'](_0x1ce9ab),this['_elementReplacer']['replace'](_0xa26a0e,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x494203=this['view'],_0x4de964=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4de964['detachDomRoot'](_0x494203['editable']['name']),_0x494203['destroy']();}['_initToolbar'](){const _0x5bc7e5=this['view'];_0x5bc7e5['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5bc7e5['stickyPanel']['limiterElement']=_0x5bc7e5['element'],_0x5bc7e5['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1d2e55})=>_0x1d2e55),_0x5bc7e5['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5bc7e5['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2a5a50,_0x374f0f,_0x55a55a={}){super(_0x2a5a50),this['stickyPanel']=new ut(_0x2a5a50),this['toolbar']=new lt(_0x2a5a50,{'shouldGroupWhenFull':_0x55a55a['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x2a5a50,_0x374f0f);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x49a190,_0x26683a){super(_0x26683a),this['sourceElement']=_0x49a190,this['model']['document']['createRoot']();const _0x280766=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x280766);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1cb835,_0x3795ac){const _0xd5a12e=new this(_0x1cb835,_0x3795ac);return await _0xd5a12e['initPlugins'](),await _0xd5a12e['ui']['init'](_0x1cb835),await _0xd5a12e['data']['init'](_0xd5a12e['config']['get']('initialData')||''),_0xd5a12e['fire']('ready'),_0xd5a12e;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0xf0a0b{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x139bc4){function _0x44e9f8(_0x333c33){return _0x333c33['map'](_0x2397f7=>String['fromCharCode'](_0x2397f7))['join']('');}super(_0x139bc4),this['result']='end',_0x139bc4[_0x44e9f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44e9f8([0x76,0x69,0x65,0x77])][_0x44e9f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44e9f8([0x61,0x75,0x74,0x6f]),_0x139bc4[_0x44e9f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x44e9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44e9f8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x44e9f8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x44e9f8([0x6f,0x6b])});}}class k extends _0xf0a0b{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x530514){if(super(_0x530514),!this['editor']['config']['get']('revisionHistory'))throw new _0x3867aa('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x11b8ca=>this['_showRevisionViewer']({..._0x11b8ca,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x311ef9=>this['_closeRevisionViewer'](_0x311ef9)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x45951c=>this['_restoreRevision'](_0x45951c)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x37a382){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x37a382;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1b132){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1b132);}['getRevision'](_0xd944bc){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xd944bc);}['getRevisions'](_0x5ee30f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5ee30f||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x51d5d9=this['editor'],_0x4f1cc5=_0x1a83ae(_0x51d5d9,p),_0x1ca71c=_0x51d5d9['plugins']['get']('RevisionTracker'),_0x408e1b=_0x51d5d9['plugins']['get']('Users')['users'];return _0x4f1cc5['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4f1cc5['lazyRoots'],(_0x4f1cc5['plugins']['push'](Rt,d,g,class extends _0xf0a0b{static get['requires'](){return[d,'Users'];}['init'](){const _0x2aca9d=this['editor']['plugins']['get']('Users');for(const _0x446680 of _0x408e1b)_0x446680['isAnonymous']||_0x2aca9d['getUser'](_0x446680['id'])||_0x2aca9d['addUser'](_0x446680);const _0x3e8456=_0x1ca71c['repository']['getRevisions']();let _0x3fe782=null;const _0xd5bc14=this['editor']['plugins']['get']('RevisionViewer');_0xd5bc14['adapter']=_0x1ca71c['adapter'],_0xd5bc14['bind']('isEnabled')['to'](_0x1ca71c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x51d5d9,'isReadOnly',_0x550aa4=>!_0x550aa4);for(const _0x5c5503 of _0x3e8456){const _0x556a1a=null===_0x5c5503['creator'];if(_0x556a1a&&_0x5c5503['toVersion']===_0x5c5503['fromVersion'])continue;const _0x3a3af4=_0x5c5503['toJSON']();_0xd5bc14['addRevisionData'](_0x3a3af4,(_0x1350fc,_0x271da8,_0x271b17)=>{if(_0x556a1a){if(_0x3fe782)_0x3fe782['_update'](_0x1350fc,_0x271da8);else{if(!_0x271da8){const _0x3fc4c1=_0x271b17['toJSON']();_0x3fc4c1['id']=_0x4b945d(),_0x1ca71c['saveRevision'](_0x3fc4c1,_0x271b17['toVersion'])['then'](_0x146fdc=>{_0x3fe782=_0x146fdc;});}}}else _0x5c5503['_update'](_0x1350fc,_0x271da8);});}}},w),_0x4f1cc5);}['_enhanceShowRevisionViewerCallback'](){const _0x2490f2=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x191101=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4cf722=this['editor']['plugins']['get']('Autosave');await _0x4cf722['save']();}else await _0x191101['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x230526=this['editor']['plugins']['get']('Dialog');_0x230526['isOpen']&&_0x230526['hide']();}const _0x3dfc20=this['_getRevisionViewerEditorConfig']();return _0x2490f2(_0x3dfc20)['then'](_0xe91fc4=>{return(this['_viewerEditor']=_0xe91fc4,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0xe91fc4;})['catch'](_0x481d1b=>(console['error'](_0x481d1b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x31a430=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'](),_0x31a430(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x445417=this['editor']['plugins']['get']('Annotations');_0x445417['refreshVisibility'](),_0x445417['refreshPositioning']();}})));}['_showRevisionViewer'](_0x47afb0){const _0x23c51f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x17b22f=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1fe2ae=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x1fe2ae,_0x47afb0)['then'](_0x5a90fa=>(_0x17b22f['style']['display']='block',_0x23c51f['style']['display']='none',_0x5a90fa));}['_closeRevisionViewer'](_0x5efa24){const _0x58b9ea=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x58b9ea['style']['display']='',_0x5efa24['destroy']();}async['_restoreRevision'](_0x21cbb6){const _0x540aee=this['editor'],_0x7af44e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x471a6c=_0x540aee['plugins']['get']('RevisionTracker'),_0x3e5f28=_0x7af44e['repository']['getRevision'](_0x21cbb6);let _0x194906,_0x5e971a,_0x281104;try{_0x194906=await _0x7af44e['getRevisionData'](_0x3e5f28),_0x5e971a=await _0x7af44e['getRevisionRootsAttributes'](_0x3e5f28);}catch(_0x25f3b4){return void console['error'](_0x25f3b4);}_0x540aee['model']['change'](_0x2c8e37=>{for(const _0x33badd of Array['from'](_0x540aee['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2c8e37['removeMarker'](_0x33badd);}),_0x7af44e['isReady']=!0x1,_0x540aee['model']['enqueueChange'](_0x276a91=>{_0x276a91['setSelection'](null),_0x276a91['removeSelectionAttribute'](_0x540aee['model']['document']['selection']['getAttributeKeys']());const _0x10193a=Object['keys'](_0x194906);for(const _0x214bd7 of _0x540aee['model']['document']['roots'])'$graveyard'!=_0x214bd7['rootName']&&_0x214bd7['isAttached']()&&!_0x10193a['includes'](_0x214bd7['rootName'])&&_0x276a91['detachRoot'](_0x214bd7);for(const _0x4bf90e of _0x10193a){let _0x40f232=_0x540aee['model']['document']['getRoot'](_0x4bf90e);_0x40f232&&_0x40f232['isAttached']()||(_0x40f232=_0x276a91['addRoot'](_0x4bf90e));const _0x2ae552=_0x5e971a[_0x4bf90e],_0x219bf8=Object['keys'](_0x2ae552),_0x64bd04=_0x194906[_0x4bf90e];for(const _0x42d70d of _0x40f232['getAttributeKeys']())_0x219bf8['includes'](_0x42d70d)||_0x276a91['removeAttribute'](_0x42d70d,_0x40f232);for(const _0x108668 of _0x219bf8)_0x276a91['setAttribute'](_0x108668,_0x5e971a[_0x4bf90e][_0x108668],_0x40f232);_0x276a91['remove'](_0x276a91['createRangeIn'](_0x40f232)),_0x276a91['insert'](_0x540aee['data']['parse'](_0x64bd04,_0x40f232),_0x40f232,0x0);}});const _0x473fef=m(_0x540aee['locale'],'Restored');if(_0x3e5f28['name'])_0x281104=-0x1==_0x3e5f28['name']['indexOf'](_0x473fef)?_0x473fef+':\x20'+_0x3e5f28['name']:_0x3e5f28['name'];else _0x281104=_0x473fef+':\x20'+(_0x3e5f28['createdAt']['toLocaleDateString'](_0x540aee['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3e5f28['createdAt']['toLocaleTimeString'](_0x540aee['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x471a6c['saveRevision']({'name':_0x281104}),_0x7af44e['isReady']=!0x0,_0x540aee['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};