@ckeditor/ckeditor5-revision-history 44.3.0-alpha.1 → 44.3.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index.js +6 -6
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +10 -10
  148. package/src/changeitem.js +2 -2
  149. package/src/editor/revisionviewereditor.js +2 -2
  150. package/src/editor/revisionviewereditorui.js +1 -1
  151. package/src/editor/revisionviewereditoruiview.js +1 -1
  152. package/src/index.js +1 -1
  153. package/src/revision.js +2 -2
  154. package/src/revisiondiff.js +1 -1
  155. package/src/revisionhistory.js +1 -1
  156. package/src/revisionsrepository.js +1 -1
  157. package/src/revisiontracker.js +1 -1
  158. package/src/revisionviewer.js +1 -1
  159. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  160. package/src/ui/revision/revisionauthorview.js +1 -1
  161. package/src/ui/revision/revisionnameview.js +1 -1
  162. package/src/ui/revision/revisionview.js +2 -2
  163. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  164. package/src/ui/revision/subrevisionview.js +1 -1
  165. package/src/ui/revision/utils.js +1 -1
  166. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  167. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  168. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  169. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  170. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  172. package/src/ui/revisionssidebar/utils.js +1 -1
  173. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  174. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  175. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  176. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  177. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x2332e5,uid as _0x52d906,Collection as _0x2ebcff,logWarning as _0x140cad,FocusTracker as _0x7d4c72,KeystrokeHandler as _0x4053e6,scrollViewportToShowTarget as _0x30a2cb,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x1cd261}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5af04f,set as _0x3d3cf1,unset as _0xdbbb68,isEqual as _0x507df6}from'lodash-es';import{Plugin as _0x361651,PendingActions as _0x387150,icons as _0x2a914a,Command as _0x2f351f,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x176997,getMarkerDomElement as _0x54db46,ConfirmMixin as _0x3eb80d,sanitizeEditorConfig as _0xc76ffb}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x379ec6,Element as ft,Range as vt,ViewUIElement as _0x4421f6,ViewRawElement as _0x8ec83,ViewEmptyElement as _0x335ef8,ViewAttributeElement as _0xa485d0,ViewContainerElement as _0x11367b,Position as gt,ViewText as _0x4317d4,ViewElement as _0x3c4ed4,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x376464,injectCssTransitionDisabler as ts,submitHandler as _0xbcf98b,LabeledFieldView as nt,createLabeledInputText as _0xcbfa91,createDropdown as _0x11399b,ListView as te,ListItemView as _0x3ce312,ButtonView as _0x58a9b0,MenuBarMenuView as _0x1643c5,MenuBarMenuListView as _0x2732e5,MenuBarMenuListItemView as _0x21400a,MenuBarMenuListItemButtonView as _0x178c59,ContextualBalloon as _0x47b965,ToolbarSeparatorView as _0x1378c1,IconView as _0x2719fb,addListToDropdown as _0x112459,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 _0x76f8d3}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x2332e5(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x57fdad){super(),this['id']=_0x57fdad['id']||_0x52d906(),this['creator']=_0x57fdad['creator']||null,this['authors']=_0x57fdad['authors']||[],this['diffData']=_0x57fdad['diffData']||null,this['toVersion']=_0x57fdad['toVersion']||0x0,this['fromVersion']=_0x57fdad['fromVersion']||0x0,this['set']('name',_0x57fdad['name']||''),this['set']('createdAt',_0x57fdad['createdAt']||new Date()),this['set']('attributes',_0x57fdad['attributes']||{});}['setName'](_0x3b2b39){this['_update']({'name':_0x3b2b39});}['setAttribute'](_0x3e571b,_0x445a7c){const _0x168c6d=_0x5af04f(this['attributes']);_0x3d3cf1(_0x168c6d,_0x3e571b,_0x445a7c),this['_update']({'attributes':_0x168c6d});}['removeAttribute'](_0x299007){const _0x3cdc61=_0x5af04f(this['attributes']);_0xdbbb68(_0x3cdc61,_0x299007),this['_update']({'attributes':_0x3cdc61});}['_update'](_0x3c36ad,_0x522239=!0x1){let _0xe34e1d=!0x1;const _0x2a88fd={'id':this['id']},_0x5e6fce=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x42adee of _0x5e6fce){const _0x14b53b=_0x3c36ad[_0x42adee];void 0x0!==_0x14b53b&&_0x14b53b!==this[_0x42adee]&&(this[_0x42adee]=_0x14b53b,_0x2a88fd[_0x42adee]=_0x14b53b,_0xe34e1d=!0x0);}_0xe34e1d&&(_0x2a88fd['authors']&&(_0x2a88fd['authorsIds']=_0x2a88fd['authors']['map'](_0xf4fd00=>_0xf4fd00['id']),delete _0x2a88fd['authors']),this['fire']('_update',_0x2a88fd,_0x522239));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x29fb7e=>_0x29fb7e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x361651{['_revisions'];static get['requires'](){return[_0x176997];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3289c8){super(_0x3289c8),this['_revisions']=new _0x2ebcff();}['afterInit'](){!async function(_0x451a44){const _0x42f077=_0x323bd2([0x74,0x31,0x58,0x79,0x4f,0x72,0x4a,0x67,0x4b,0x62,0x77,0x38,0x76,0x63,0x6f,0x68,0x42,0x6c,0x46,0x78,0x49,0x57,0x51,0x6a,0x55,0x61,0x43,0x41,0x69,0x71,0x64,0x59,0x56,0x4c,0x54,0x37,0x47,0x70,0x50,0x45,0x73,0x30,0x52,0x53,0x33,0x35,0x66,0x75,0x6b,0x36,0x39,0x44,0x32,0x65,0x6d,0x4e,0x48,0x4d,0x6e,0x34,0x7a,0x5a]),_0x46cf4c=0xeb829,_0x6aec5e=0x4407a815,_0x1371c0=0x4400c8a5^_0x6aec5e,_0x4e4227=window[_0x323bd2([0x44,0x61,0x74,0x65])][_0x323bd2([0x6e,0x6f,0x77])](),_0x9aa4b4=_0x451a44[_0x323bd2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb2b795=new window[(_0x323bd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47bb17=>{_0x9aa4b4[_0x323bd2([0x6f,0x6e,0x63,0x65])](_0x323bd2([0x72,0x65,0x61,0x64,0x79]),_0x47bb17);}),_0xb0614d={[_0x323bd2([0x6b,0x74,0x79])]:_0x323bd2([0x45,0x43]),[_0x323bd2([0x75,0x73,0x65])]:_0x323bd2([0x73,0x69,0x67]),[_0x323bd2([0x63,0x72,0x76])]:_0x323bd2([0x50,0x2d,0x32,0x35,0x36]),[_0x323bd2([0x78])]:_0x323bd2([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]),[_0x323bd2([0x79])]:_0x323bd2([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]),[_0x323bd2([0x61,0x6c,0x67])]:_0x323bd2([0x45,0x53,0x32,0x35,0x36])},_0x33e34f=_0x9aa4b4[_0x323bd2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x323bd2([0x67,0x65,0x74])](_0x323bd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x44f4f8(){let _0x5eb12f,_0x2c56ff=null,_0x6c49dc=null;try{if(_0x33e34f==_0x323bd2([0x47,0x50,0x4c]))return _0x323bd2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5eb12f=_0x406828(),!_0x5eb12f)return _0x323bd2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5eb12f[_0x323bd2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x6c49dc=_0x360056(_0x5eb12f[_0x323bd2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5eb12f[_0x323bd2([0x6a,0x74,0x69])])),await _0x59f754()?_0x44d05e()?_0x497e92()?_0x323bd2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x411d68()?(_0x5eb12f[_0x323bd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x323bd2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2c56ff=_0x283756(_0x323bd2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5eb12f[_0x323bd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x323bd2([0x74,0x72,0x69,0x61,0x6c])&&(_0x2c56ff=_0x283756(_0x323bd2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5482dc()):_0x323bd2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x323bd2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x323bd2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4c4b51){return _0x323bd2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x497e92(){const _0x349626=[_0x323bd2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x323bd2([0x74,0x72,0x69,0x61,0x6c])][_0x323bd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eb12f[_0x323bd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4e4227/0x3e8:0xe10*_0x1371c0;return _0x5eb12f[_0x323bd2([0x65,0x78,0x70])]<_0x349626;}function _0x44d05e(){const _0x5f4aec=_0x5eb12f[_0x323bd2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5f4aec)return!0x1;if(_0x5f4aec[_0x323bd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x323bd2([0x2a])))return!0x0;if(_0x5f4aec[_0x323bd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x323bd2([0x52,0x48])))return!0x0;if(_0x5f4aec[_0x323bd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x323bd2([0x52,0x52,0x48]))){if(_0x5c22bd())return!0x0;if(_0x108fb8()||_0x4b54d7())return!0x0;}return!0x1;}function _0x411d68(){const _0x14ae30=_0x5eb12f[_0x323bd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x14ae30||0x0==_0x14ae30[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x180f42}=new URL(window[_0x323bd2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x14ae30[_0x323bd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x180f42))return!0x0;const _0x34fcbf=_0x180f42[_0x323bd2([0x73,0x70,0x6c,0x69,0x74])](_0x323bd2([0x2e]));return _0x14ae30[_0x323bd2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20dc1a=>_0x20dc1a[_0x323bd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x323bd2([0x2a])))[_0x323bd2([0x6d,0x61,0x70])](_0x25f513=>_0x25f513[_0x323bd2([0x73,0x70,0x6c,0x69,0x74])](_0x323bd2([0x2e])))[_0x323bd2([0x73,0x6f,0x6d,0x65])](_0x456f5e=>_0x34fcbf[_0x323bd2([0x65,0x76,0x65,0x72,0x79])]((_0xfa381e,_0x963e54)=>_0x456f5e[_0x963e54]===_0xfa381e||_0x456f5e[_0x963e54]===_0x323bd2([0x2a])));}function _0x5482dc(){return _0x2c56ff&&_0x6c49dc?new window[(_0x323bd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x943db4,_0x5d4153)=>{_0x2c56ff[_0x323bd2([0x74,0x68,0x65,0x6e])](_0x943db4,_0x5d4153),_0x6c49dc[_0x323bd2([0x74,0x68,0x65,0x6e])](_0x5af95c=>{_0x5af95c!=_0x323bd2([0x56,0x61,0x6c,0x69,0x64])&&_0x943db4(_0x5af95c);},_0x5d4153);}):_0x2c56ff||_0x6c49dc||_0x323bd2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x360056(_0x5b9b5d,_0x2a69a4){return new window[(_0x323bd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51c639=>{if(_0x4a4ddc())return _0x51c639(_0x323bd2([0x56,0x61,0x6c,0x69,0x64]));_0x3c8730(),_0x9aa4b4[_0x323bd2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x323bd2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc05546=!0x1;const _0x5d8122=_0x52d906();function _0x363db5(_0x470983){return!!_0x470983&&(typeof _0x470983===_0x323bd2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x470983===_0x323bd2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x470983[_0x323bd2([0x74,0x68,0x65,0x6e])]===_0x323bd2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x470983[_0x323bd2([0x63,0x61,0x74,0x63,0x68])]===_0x323bd2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6ea85(_0x19ae4b){_0x17b686(_0x19ae4b)[_0x323bd2([0x74,0x68,0x65,0x6e])](_0x4e9195=>{if(!_0x4e9195||_0x4e9195[_0x323bd2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x323bd2([0x6f,0x6b]))return _0x323bd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x112479(_0x240771(_0x5d8122+_0x2a69a4))!=_0x4e9195[_0x323bd2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x323bd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x323bd2([0x56,0x61,0x6c,0x69,0x64]);})[_0x323bd2([0x74,0x68,0x65,0x6e])](_0x43ab62=>(_0x2dc901(),_0x43ab62),()=>{const _0x48d4d2=_0x14b455();return null==_0x48d4d2?(_0x2dc901(),_0x323bd2([0x56,0x61,0x6c,0x69,0x64])):_0x323bd2(_0x4e4227-_0x48d4d2>(0x600b2c15^_0x6aec5e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x323bd2([0x74,0x68,0x65,0x6e])](_0x51c639)[_0x323bd2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x51c639(_0x323bd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x267623=0x44314695^_0x6aec5e;function _0x2dc901(){const _0x42ba83=_0x323bd2([0x6c,0x6c,0x63,0x74,0x2d])+_0x112479(_0x240771(_0x5b9b5d)),_0x40aa97=_0x5cb81e(_0x112479(window[_0x323bd2([0x4d,0x61,0x74,0x68])][_0x323bd2([0x63,0x65,0x69,0x6c])](_0x4e4227/_0x267623)));window[_0x323bd2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x323bd2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42ba83,_0x40aa97);}function _0x14b455(){const _0x5b35a7=_0x323bd2([0x6c,0x6c,0x63,0x74,0x2d])+_0x112479(_0x240771(_0x5b9b5d)),_0x3190f5=window[_0x323bd2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x323bd2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b35a7);return _0x3190f5?window[_0x323bd2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cb81e(_0x3190f5),0x10)*_0x267623:null;}function _0x17b686(_0x4619fb){return new window[(_0x323bd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ade68,_0x180c7a)=>{_0x4619fb[_0x323bd2([0x74,0x68,0x65,0x6e])](_0x3ade68,_0x180c7a),window[_0x323bd2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x180c7a,0x44067cd5^_0x6aec5e);});}}_0x9aa4b4[_0x323bd2([0x6f,0x6e])](_0x323bd2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc27c14,_0x3c7c45)=>{if(_0x3c7c45[0x0]!=_0x5b9b5d)return _0x51c639(_0x323bd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c7c45[0x1]={..._0x3c7c45[0x1],[_0x323bd2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d8122};},{[_0x323bd2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x323bd2([0x68,0x69,0x67,0x68])}),_0x9aa4b4[_0x323bd2([0x6f,0x6e])](_0x323bd2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x106229=>{_0x363db5(_0x106229[_0x323bd2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc05546=!0x0,_0x6ea85(_0x106229[_0x323bd2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x323bd2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x323bd2([0x6c,0x6f,0x77])}),_0xb2b795[_0x323bd2([0x74,0x68,0x65,0x6e])](()=>{_0xc05546||_0x51c639(_0x323bd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a4ddc(){return _0x9aa4b4[_0x323bd2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x323bd2([0x76,0x69,0x65,0x77])][_0x323bd2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x323bd2([0x61,0x75,0x74,0x6f]);}function _0x3c8730(){_0x9aa4b4[_0x323bd2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x323bd2([0x76,0x69,0x65,0x77])][_0x323bd2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x323bd2([0x61,0x75,0x74,0x6f]);}}function _0x283756(_0x23d99c){const _0x24144a=[new window[(_0x323bd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x334f0c=>setTimeout(_0x334f0c,0x440e96d9^_0x6aec5e)),_0xb2b795[_0x323bd2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x323bd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11b07e=>{const _0x5dea1e=0x4407a812^_0x6aec5e,_0x144eea=_0x451a44[_0x323bd2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5f280a(){_0x144eea[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5dea1e&&_0x11b07e();}_0x5f280a(),_0x144eea[_0x323bd2([0x6f,0x6e])](_0x323bd2([0x61,0x64,0x64]),_0x5f280a);})),new window[(_0x323bd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14f9cb=>{function _0x4e26d7(){for(const _0x5e25fc in window)if(window[_0x323bd2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x323bd2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5e25fc))&&window[_0x5e25fc]==_0x46cf4c)return _0x14f9cb();_0x9aa4b4[_0x323bd2([0x73,0x74,0x61,0x74,0x65])]!=_0x323bd2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x323bd2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e26d7,0x4407bb9d^_0x6aec5e);}_0x111256(_0x323bd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4e26d7();})];return window[_0x323bd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x323bd2([0x72,0x61,0x63,0x65])](_0x24144a)[_0x323bd2([0x74,0x68,0x65,0x6e])](()=>_0x23d99c);}async function _0x2d3567(){if(await _0xb2b795,_0x111256(_0x323bd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x589df2=_0x451a44[_0x323bd2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x244b0c=_0x451a44[_0x323bd2([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])](_0x589df2[_0x323bd2([0x69,0x64])]),_0x170282=_0x37e711(_0x323bd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x170282[_0x323bd2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x589df2['id'],_0x244b0c?_0x244b0c['id']:null,!0x0),_0x170282[_0x323bd2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x323bd2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x170282[_0x323bd2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x170282[_0x323bd2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4d24c2,void(_0x170282[_0x323bd2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4d24c2);}if(_0x111256(_0x323bd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1f702c=_0x37e711(_0x323bd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1f702c[_0x323bd2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x323bd2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1f702c[_0x323bd2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1f702c[_0x323bd2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4d24c2,_0x1f702c[_0x323bd2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4d24c2;}_0x9aa4b4[_0x323bd2([0x6d,0x6f,0x64,0x65,0x6c])][_0x323bd2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d24c2,_0x9aa4b4[_0x323bd2([0x6d,0x6f,0x64,0x65,0x6c])][_0x323bd2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d24c2,_0x9aa4b4[_0x323bd2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x323bd2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c22bd(){return _0x111256(_0x323bd2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x37e711(_0x323bd2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x323bd2([0x73,0x74,0x61,0x74,0x65])]==_0x323bd2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x108fb8(){return _0x111256(_0x323bd2([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 _0x4b54d7(){return _0x111256(_0x323bd2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x26e4d1(_0x51e147){const _0x4982df=_0x3b56a2();_0x9aa4b4[_0x4982df]=_0x323bd2([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])+_0x51e147,_0x51e147[_0x323bd2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x323bd2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3b56a2()]=_0x46cf4c),_0x51e147!=_0x323bd2([0x56,0x61,0x6c,0x69,0x64])&&_0x2d3567();}function _0x3b56a2(){const _0x207434=window[_0x323bd2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x323bd2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x323bd2([0x6e,0x6f,0x77])]())[_0x323bd2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x323bd2([0x2e]),'');let _0x84ddd2=_0x323bd2([0x74]);for(let _0x4a59db=0x0;_0x4a59db<_0x207434[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a59db+=0x2){let _0x3ac203=window[_0x323bd2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x207434[_0x323bd2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a59db,_0x4a59db+0x2));_0x3ac203>=_0x42f077[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ac203-=_0x42f077[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x84ddd2+=_0x42f077[_0x3ac203];}return _0x84ddd2;}function _0x406828(){const _0x4c8765=_0x33e34f[_0x323bd2([0x73,0x70,0x6c,0x69,0x74])](_0x323bd2([0x2e]));if(0x3!=_0x4c8765[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x51e37c(_0x4c8765[0x1]);function _0x51e37c(_0x134dc2){const _0x414935=_0x6d3d2c(_0x134dc2);return _0x414935&&_0x590801()?_0x414935:null;function _0x590801(){const _0x3ee410=_0x414935[_0x323bd2([0x6a,0x74,0x69])],_0x177b2b=window[_0x323bd2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ee410[_0x323bd2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ee410[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20e50f={..._0x414935,[_0x323bd2([0x6a,0x74,0x69])]:_0x3ee410[_0x323bd2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ee410[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20e50f[_0x323bd2([0x76,0x63])],_0x240771(_0x20e50f)==_0x177b2b;}}}async function _0x59f754(){let _0xcd27fc=!0x0;try{const _0x5d20d4=_0x33e34f[_0x323bd2([0x73,0x70,0x6c,0x69,0x74])](_0x323bd2([0x2e])),[_0x4afe2a,_0x3a8fec,_0x529265]=_0x5d20d4;return _0x4c8033(_0x4afe2a),await _0x397a6b(_0x4afe2a,_0x3a8fec,_0x529265),_0xcd27fc;}catch(_0x3ec3fd){return!0x1;}function _0x4c8033(_0x9b33d7){const _0x1f2fdc=_0x6d3d2c(_0x9b33d7);_0x1f2fdc&&_0x1f2fdc[_0x323bd2([0x61,0x6c,0x67])]==_0x323bd2([0x45,0x53,0x32,0x35,0x36])||(_0xcd27fc=!0x1);}async function _0x397a6b(_0x4133ea,_0x1b1aaf,_0x11b20d){const _0x1ae018=window[_0x323bd2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x323bd2([0x66,0x72,0x6f,0x6d])](_0x59ce95(_0x11b20d),_0x1c2340=>_0x1c2340[_0x323bd2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b1de0=new window[(_0x323bd2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x323bd2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4133ea+_0x323bd2([0x2e])+_0x1b1aaf),_0x2c0f6c=window[_0x323bd2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x323bd2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c0f6c)return;const _0x5cc507=await _0x2c0f6c[_0x323bd2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x323bd2([0x6a,0x77,0x6b]),_0xb0614d,{[_0x323bd2([0x6e,0x61,0x6d,0x65])]:_0x323bd2([0x45,0x43,0x44,0x53,0x41]),[_0x323bd2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x323bd2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x323bd2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c0f6c[_0x323bd2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x323bd2([0x6e,0x61,0x6d,0x65])]:_0x323bd2([0x45,0x43,0x44,0x53,0x41]),[_0x323bd2([0x68,0x61,0x73,0x68])]:{[_0x323bd2([0x6e,0x61,0x6d,0x65])]:_0x323bd2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5cc507,_0x1ae018,_0x1b1de0)||(_0xcd27fc=!0x1);}}function _0x6d3d2c(_0x3e25b5){return _0x3e25b5[_0x323bd2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x323bd2([0x65,0x79]))?JSON[_0x323bd2([0x70,0x61,0x72,0x73,0x65])](_0x59ce95(_0x3e25b5)):null;}function _0x59ce95(_0x1c99ce){return window[_0x323bd2([0x61,0x74,0x6f,0x62])](_0x1c99ce[_0x323bd2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x323bd2([0x2b]))[_0x323bd2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x323bd2([0x2f])));}function _0x240771(_0x340f8e){let _0x5585c1=0x1505;function _0x39a0fa(_0x1a9dc6){for(let _0x8e10d9=0x0;_0x8e10d9<_0x1a9dc6[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8e10d9++){const _0x3baed5=_0x1a9dc6[_0x323bd2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8e10d9);_0x5585c1=(_0x5585c1<<0x5)+_0x5585c1+_0x3baed5,_0x5585c1&=_0x5585c1;}}function _0x14599d(_0x1f3db7){Array[_0x323bd2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f3db7)?_0x1f3db7[_0x323bd2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14599d):_0x1f3db7&&typeof _0x1f3db7==_0x323bd2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x323bd2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f3db7)[_0x323bd2([0x73,0x6f,0x72,0x74])]()[_0x323bd2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b98ec,_0x2da796])=>{_0x39a0fa(_0x3b98ec),_0x14599d(_0x2da796);}):_0x39a0fa(window[_0x323bd2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f3db7));}return _0x14599d(_0x340f8e),_0x5585c1>>>0x0;}function _0x112479(_0x3d77b3){return _0x3d77b3[_0x323bd2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x323bd2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x323bd2([0x30]));}function _0x5cb81e(_0xf623f0){return _0xf623f0[_0x323bd2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x323bd2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x323bd2([0x6a,0x6f,0x69,0x6e])]('');}function _0x111256(_0x2ea3f8){return _0x9aa4b4[_0x323bd2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x323bd2([0x68,0x61,0x73])](_0x2ea3f8);}function _0x37e711(_0x2b6f49){return _0x9aa4b4[_0x323bd2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x323bd2([0x67,0x65,0x74])](_0x2b6f49);}function _0x4d24c2(){}function _0x323bd2(_0x131e84){return _0x131e84['map'](_0x221cb0=>String['fromCharCode'](_0x221cb0))['join']('');}_0x26e4d1(await _0x44f4f8());}(this);}['createRevision'](_0x5b0580){const _0x49fc9b=this['editor']['plugins']['get']('Users');return new a({'id':_0x5b0580['id'],'name':_0x5b0580['name'],'creator':_0x5b0580['creatorId']?_0x49fc9b['getUser'](_0x5b0580['creatorId']):null,'diffData':_0x5b0580['diffData']||_0x5b0580['data'],'authors':_0x5b0580['authorsIds']['map'](_0xb51b85=>_0x49fc9b['getUser'](_0xb51b85)),'createdAt':new Date(_0x5b0580['createdAt']),'attributes':_0x5b0580['attributes'],'fromVersion':_0x5b0580['fromVersion'],'toVersion':_0x5b0580['toVersion']});}['addRevision'](_0x3b78d3,_0x5d7f7a=0x0){this['_revisions']['add'](_0x3b78d3,_0x5d7f7a);}['getRevision'](_0x5057b6){return this['_revisions']['get'](_0x5057b6);}['getRevisions'](_0x103efc={'toJSON':!0x1}){const _0x4c7242=Array['from'](this['_revisions']);return _0x4c7242['reverse'](),_0x103efc['toJSON']?_0x4c7242['map'](_0xb413a6=>_0xb413a6['toJSON']()):_0x4c7242;}['getIndex'](_0x35d10b){return this['_revisions']['getIndex'](_0x35d10b);}['getEarlierVisibleRevision'](_0x18be03){const [,_0x3d407f]=this['getRevisionsIterator'](_0x18be03,{'direction':'earlier'});return _0x3d407f;}['getLaterVisibleRevision'](_0x12834c){const [,_0x538539]=this['getRevisionsIterator'](_0x12834c,{'direction':'later'});return _0x538539;}['getRevisionsInDiff'](_0x5db2fc){const _0xa8dc6a=[];for(const _0x32fd39 of this['getRevisionsIterator'](_0x5db2fc['newRevisionId']))if(_0xa8dc6a['push'](_0x32fd39),_0x32fd39['id']===_0x5db2fc['oldRevisionId'])break;return _0xa8dc6a;}*['getRevisionsIterator'](_0x46dbf8,{direction:_0x521e22='earlier',filter:_0xc8b5f=()=>!0x0}={}){const _0x356211='earlier'===_0x521e22?0x1:-0x1;let _0x2b9c3e=this['_revisions']['get'](_0x46dbf8),_0x19b8f7=this['getIndex'](_0x2b9c3e);for(yield _0x2b9c3e;_0x2b9c3e;){if(_0x19b8f7+=_0x356211,_0x2b9c3e=this['getRevision'](_0x19b8f7),!_0x2b9c3e)return;_0xc8b5f(_0x2b9c3e)&&(yield _0x2b9c3e);}}}function m(_0x39a2ee,_0x53f8c4,_0x6d845b){const t=_0x39a2ee['t'];switch(_0x53f8c4){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'},_0x6d845b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x6d845b);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':_0x11367b,'a':_0xa485d0,'e':_0x335ef8,'r':_0x8ec83,'u':_0x4421f6};class l extends _0x361651{['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[_0x176997,j,_0x387150];}constructor(_0x50a0f3){super(_0x50a0f3),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 _0x12ba91=_0x52d906();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x12ba91},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 _0x28968e=this['repository']['getRevision'](0x0),_0x124450=_0x28968e&&null===_0x28968e['creator']?_0x28968e:null;if(this['_continueCurrentRevision']=!!_0x124450&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x191ff7=this['_source']['getCurrentRevisionId'](),_0x3c8dbd=this['repository']['getRevision'](_0x191ff7);if(_0x3c8dbd)this['_startingVersion']=_0x3c8dbd['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3a55bf=this['_source']['history']['_operations']['find'](_0x3869c4=>!_0x3869c4['_isInit']),_0x25c34d=_0x3a55bf?_0x3a55bf['baseVersion']:this['_source']['history']['version'];_0x28968e?(_0x28968e['toVersion']<_0x25c34d&&_0x28968e['_update']({'toVersion':_0x25c34d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x124450['id'],this['_startingVersion']=_0x124450['fromVersion']):(this['_startingVersion']=_0x28968e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x25c34d,this['_continueCurrentRevision']=!0x1);}}else _0x124450&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x124450['toVersion'],this['editor']['model']['document']['history']['version']),_0x124450['fromVersion']===_0x124450['toVersion']?(0x0!==_0x124450['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x124450['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x124450['id'],this['_startingVersion']=_0x124450['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',_0x391a7f=>!_0x391a7f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x233c03=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x43acd5;for(const _0xc63611 in _0x233c03){const _0x5a18c2=_0xc63611,_0x452609=_0x233c03[_0x5a18c2];if('revisionHistoryLicenseKeyValid'==_0x452609||'revisionHistoryLicenseKeyInvalid'==_0x452609||'revisionHistoryLicenseKeyExpired'==_0x452609||'revisionHistoryLicenseKeyDomainLimit'==_0x452609||'revisionHistoryLicenseKeyNotAllowed'==_0x452609||'revisionHistoryLicenseKeyEvaluationLimit'==_0x452609||'revisionHistoryLicenseKeyTrialLimit'==_0x452609||'revisionHistoryLicenseKeyUsageLimit'==_0x452609){delete _0x233c03[_0x5a18c2],_0x43acd5=_0x452609,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x43acd5&&_0x233c03['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x43acd5&&_0x233c03['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x43acd5&&_0x233c03['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x43acd5&&_0x233c03['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x43acd5&&_0x233c03['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x43acd5&&_0x233c03['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x43acd5&&_0x233c03['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3a8844=this['repository']['getRevision'](0x0),_0x51fd18=await this['getRevisionDocumentData'](_0x3a8844),_0x24dace=await this['getRevisionRootsAttributes'](_0x3a8844);this['_replaceEditorDataWithRevisionData'](_0x51fd18,_0x24dace);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x34fd39){this['_source']=_0x34fd39;}async['update'](){const _0x2347ef=await this['_source']['getLatestVersion']();if(_0x2347ef>this['currentRevision']['toVersion']){await this['_loadState']();const _0xc2b8fa=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2347ef});_0xc2b8fa['authors']=_0xc2b8fa['authorsIds']['map'](_0xaea7ae=>this['editor']['plugins']['get']('Users')['getUser'](_0xaea7ae)),this['currentRevision']['_update'](_0xc2b8fa);}}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'](_0x37ebe8={},_0x28caab=null){const _0x102884=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x28caab>this['currentRevision']['toVersion']&&(_0x28caab=null),null===_0x28caab&&(_0x28caab=await this['_source']['getLatestVersion']());const _0x1f1f1b=this['_getFromVersion'](_0x28caab),_0x3e5a17=this['buildRevisionData']({'from':_0x1f1f1b,'to':_0x28caab});if(this['currentRevision']['toVersion']<_0x28caab){const _0x4fd6f0=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x28caab,'to':_0x28caab});_0x4fd6f0['authors']=[],_0x4fd6f0['authorsIds']=[],_0x4fd6f0['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4fd6f0,!0x0),delete _0x4fd6f0['authors'],_0x102884['push'](_0x4fd6f0);}_0x37ebe8['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x37ebe8['name']=_0x37ebe8['name']||null,_0x37ebe8['id']=_0x37ebe8['id']||_0x52d906(),_0x37ebe8={..._0x37ebe8,..._0x3e5a17};const _0x386baf=this['addRevisionData'](_0x37ebe8);_0x102884['push'](_0x37ebe8);const _0x14e887=this['repository']['getIndex'](_0x386baf);if(0x0!==_0x14e887){const _0x4fd18e=this['repository']['getRevision'](_0x14e887-0x1);if(_0x4fd18e['fromVersion']!==_0x28caab){const _0x44bf71=this['_revisionDataBuilder']['getData'](_0x28caab,_0x4fd18e['toVersion']),_0x32a932={'id':_0x4fd18e['id'],'diffData':_0x44bf71['diffData'],'authorsIds':_0x44bf71['authorsIds'],'authors':_0x44bf71['authorsIds']['map'](_0x4c5a3a=>this['editor']['plugins']['get']('Users')['getUser'](_0x4c5a3a)),'fromVersion':_0x28caab};_0x4fd18e===this['currentRevision']&&(_0x32a932['createdAt']=new Date(_0x37ebe8['createdAt']['getTime']()+0xa)),_0x4fd18e['_update'](_0x32a932,!0x0),delete _0x32a932['authors'],_0x102884['push'](_0x32a932);}}if(this['adapter']){for(const _0x5ab6fd of _0x102884)this['_bufferUpdate'](_0x5ab6fd['id'],_0x5ab6fd,!0x0);this['sendBufferedUpdates']();}return _0x386baf;}['addRevisionData'](_0x1e6c88){const _0x13adfd=this['repository']['createRevision'](_0x1e6c88);return this['adapter']&&_0x13adfd['on']('_update',(_0x49dc63,_0x451b6e,_0x43dd95)=>{_0x43dd95||(this['_bufferUpdate'](_0x451b6e['id'],_0x451b6e,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x13adfd,this['_findInsertionIndex'](_0x13adfd)),_0x13adfd;}async['getRevisionDocumentData'](_0x524048){await this['_loadRevisionData'](_0x524048);const _0x49ad85={};for(const _0x5cab78 in _0x524048['diffData']){if(_0x524048['diffData'][_0x5cab78]['attachChange']&&!_0x524048['diffData'][_0x5cab78]['attachChange']['isAttached'])continue;const _0x2ddb51=this['_removeRevisionMarkers'](JSON['parse'](_0x524048['diffData'][_0x5cab78]['insertions'])),_0x3fef6e=this['editor']['editing']['view']['document'],_0x2568ea=new _0x379ec6(_0x3fef6e,_0x2ddb51['map'](_0x2e689b=>C(_0x2e689b,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x49ad85[_0x5cab78]=this['editor']['data']['processor']['toData'](_0x2568ea),this['editor']['data']['processor']['useFillerType']('default');}return _0x49ad85;}async['getRevisionRootsAttributes'](_0x16aa5f){await this['_loadRevisionData'](_0x16aa5f);const _0x37b15d={};for(const _0x382829 in _0x16aa5f['diffData'])_0x16aa5f['diffData'][_0x382829]['attachChange']&&!_0x16aa5f['diffData'][_0x382829]['attachChange']['isAttached']||(_0x37b15d[_0x382829]=_0x16aa5f['diffData'][_0x382829]['attributesAfter']||{});return _0x37b15d;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xd1a1a3=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x15f849=0x0;_0x15f849<_0xd1a1a3['length'];_0x15f849++){const _0x39472f=_0xd1a1a3[_0x15f849];let _0x1ec85b=!0x1;for(const _0x47751c of Object['keys'](_0x39472f))void 0x0===_0x39472f[_0x47751c]?delete _0x39472f[_0x47751c]:'id'!==_0x47751c&&(_0x1ec85b=!0x0);_0x1ec85b||(_0xd1a1a3[_0x15f849]=null);}if(_0xd1a1a3=_0xd1a1a3['filter'](_0x348404=>null!==_0x348404),!_0xd1a1a3['length'])return;for(let _0x49922f=0x0;_0x49922f<_0xd1a1a3['length'];_0x49922f++){const _0x1f20aa=_0xd1a1a3[_0x49922f];void 0x0!==_0x1f20aa['fromVersion']&&void 0x0===_0x1f20aa['toVersion']&&(_0x1f20aa['toVersion']=this['repository']['getRevision'](_0x1f20aa['id'])['toVersion']),void 0x0!==_0x1f20aa['toVersion']&&void 0x0===_0x1f20aa['fromVersion']&&(_0x1f20aa['fromVersion']=this['repository']['getRevision'](_0x1f20aa['id'])['fromVersion']);}const _0x1c182c=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xd1a1a3,_0x1c182c)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xfc4eff=>{if(_0xfc4eff){for(const _0x1d6edc of _0xfc4eff)this['setRevisionData']({'id':_0x1d6edc['id'],'createdAt':_0x1d6edc['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x5ccab3,_0x4db893){let _0x10a1de=this['editor']['config']['get']('initialData'),_0x2f5c41=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x10a1de){_0x10a1de={};for(const _0x40a0a4 of this['editor']['model']['document']['getRootNames']())_0x10a1de[_0x40a0a4]='';}if('string'==typeof _0x10a1de&&(_0x10a1de={'main':_0x10a1de}),void 0x0===_0x2f5c41){_0x2f5c41={};for(const _0x3c6d02 of this['editor']['model']['document']['getRootNames']())_0x2f5c41[_0x3c6d02]={};}let _0x263c83=!0x1;const _0x470e57=Object['keys'](_0x10a1de),_0x23b3a5=Object['keys'](_0x5ccab3);for(const _0x365224 of _0x470e57){if(_0x10a1de[_0x365224]!==_0x5ccab3[_0x365224]&&''!==_0x10a1de[_0x365224]['trim']()){_0x263c83=!0x0;break;}if(!_0x507df6(_0x2f5c41[_0x365224],_0x4db893[_0x365224])&&Object['keys'](_0x2f5c41[_0x365224])['length']>0x0){_0x263c83=!0x0;break;}}_0x263c83||(_0x263c83=_0x23b3a5['some'](_0xe3ff7=>!this['editor']['model']['document']['getRoot'](_0xe3ff7))),_0x263c83&&_0x140cad('editor-initial-data-replaced-with-revision-data',{'editorData':_0x10a1de,'editorRootsAttributes':_0x2f5c41,'revisionData':_0x5ccab3,'revisionRootsAttributes':_0x4db893}),this['editor']['config']['set']('initialData',_0x5ccab3),this['editor']['config']['set']('rootsAttributes',_0x4db893);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5d1423=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5d1423['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5bd1c9){const _0x532dd3=this['repository']['getRevisions']();_0x532dd3['reverse']();let _0x503bc2=0x0;for(;_0x503bc2<_0x532dd3['length'];){const _0x51793a=_0x532dd3[_0x503bc2];if(_0x51793a===this['currentRevision']){_0x503bc2++;continue;}if(_0x51793a['id']===this['_initialRevisionId'])break;const _0x4e015e=_0x5bd1c9['toVersion']-_0x51793a['toVersion']||_0x5bd1c9['fromVersion']-_0x51793a['fromVersion'];if(_0x4e015e>0x0)break;if(_0x4e015e<0x0)_0x503bc2++;else{if(!_0x5bd1c9['creator']&&_0x51793a['creator'])break;if(_0x51793a['creator']||!_0x5bd1c9['creator']){if(_0x5bd1c9['createdAt']>_0x51793a['createdAt'])break;_0x503bc2++;}else _0x503bc2++;}}return _0x503bc2;}['setRevisionData'](_0x1cfa7c){const _0x3367b0=this['repository']['getRevision'](_0x1cfa7c['id']);if(_0x1cfa7c['createdAt']&&(_0x1cfa7c['createdAt']=new Date(_0x1cfa7c['createdAt'])),_0x1cfa7c['authorsIds']){const _0x322ad7=this['editor']['plugins']['get']('Users');_0x1cfa7c['authors']=_0x1cfa7c['authorsIds']['map'](_0x67821a=>_0x322ad7['getUser'](_0x67821a));}_0x3367b0['_update'](_0x1cfa7c,!0x0);}['buildRevisionData']({revision:_0x5c3cf0=null,from:_0x6c3fea=null,to:_0x2a5bf0=null}){_0x6c3fea=null!==_0x6c3fea?_0x6c3fea:_0x5c3cf0['fromVersion'],_0x2a5bf0=null!==_0x2a5bf0?_0x2a5bf0:_0x5c3cf0['toVersion'];const _0x1c9a4d=this['_revisionDataBuilder']['getData'](_0x6c3fea,_0x2a5bf0),_0x5cfa38={'diffData':_0x1c9a4d['diffData'],'authorsIds':_0x1c9a4d['authorsIds'],'fromVersion':_0x6c3fea,'toVersion':_0x2a5bf0};if(!_0x5c3cf0||_0x2a5bf0!==_0x5c3cf0['toVersion']){const _0x4c0ab6=_0x2a5bf0-0x1,_0x1c222f=this['_source']['history']['getOperation'](_0x4c0ab6);_0x5cfa38['createdAt']=_0x1c222f&&_0x1c222f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x6c3fea===this['_loadedStateData']['fromVersion']){for(const _0x3b72d1 of this['_loadedStateData']['authors'])_0x5cfa38['authorsIds']['includes'](_0x3b72d1['id'])||_0x5cfa38['authorsIds']['push'](_0x3b72d1['id']);}return _0x5cfa38;}['_loadRevisionData'](_0x594a19){if(!_0x594a19||_0x594a19['diffData'])return Promise['resolve']();{const _0x9b59a5=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x9b59a5,'revisionId':_0x594a19['id']})['then'](_0x17d722=>{_0x594a19['diffData']=_0x17d722['diffData'];});}}['_bufferUpdate'](_0x562109,_0x31e4ce,_0x4f149f){if(this['_bufferedUpdates']['has'](_0x562109)){const _0x22d7a6=this['_bufferedUpdates']['get'](_0x562109);_0x31e4ce=_0x4f149f?{..._0x22d7a6,..._0x31e4ce}:{..._0x31e4ce,..._0x22d7a6};}this['_bufferedUpdates']['set'](_0x562109,_0x31e4ce);}['_getFromVersion'](_0x553279){const _0x4c191a=this['repository']['getRevisions']();_0x4c191a['reverse'](),_0x4c191a['shift']();const _0x1b5852=_0x4c191a['find'](_0x2e6c57=>_0x2e6c57['toVersion']<=_0x553279)['toVersion'];return _0x1b5852<this['_startingVersion']?this['_startingVersion']:_0x1b5852;}['_createInitialRevision'](_0x2feae0){const _0x294111=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x294111)this['_initialRevisionId']=_0x294111['id'];else{const _0x1e69e9=!this['editor']['model']['document']['roots']['find'](_0x1bfdc1=>this['editor']['model']['hasContent'](_0x1bfdc1)),_0x4b7b30=this['editor']['plugins']['get']('Users')['me']['id'],_0x505259=m(this['editor']['locale'],_0x1e69e9?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2feae0,'to':_0x2feae0,'id':this['_initialRevisionId'],'name':_0x505259,'creatorId':_0x4b7b30});}}['_createCurrentRevision'](_0x474fc6){const _0x4b39f7=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4b39f7),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x474fc6,'to':_0x474fc6,'id':_0x4b39f7,'name':'','creatorId':null}));}['_makeRevision']({name:_0x41e6d6,from:_0x3d809b,to:_0x3c1f71,creatorId:_0x1de1f7,id:_0xcd4d13}){const _0x46313a=this['buildRevisionData']({'from':_0x3d809b,'to':_0x3c1f71});_0x46313a['name']=_0x41e6d6,_0x46313a['creatorId']=_0x1de1f7,_0x46313a['id']=_0xcd4d13;const _0x48c0bd=this['addRevisionData'](_0x46313a);return this['adapter']&&this['_bufferUpdate'](_0x46313a['id'],_0x46313a,!0x0),_0x48c0bd;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x2a1ed3){return(_0x2a1ed3=_0x2a1ed3['filter'](_0x48b338=>!_0x48b338['name']||'revision-start'!==_0x48b338['name']&&'revision-end'!==_0x48b338['name']))['forEach'](_0x3bc293=>{'string'!=typeof _0x3bc293&&(_0x3bc293['children']=this['_removeRevisionMarkers'](_0x3bc293['children']),_0x3bc293['attributes']=_0x3bc293['attributes']['filter'](_0x2e5f5e=>!_0x2e5f5e[0x0]['startsWith']('data-revision-')));}),_0x2a1ed3;}}function C(_0x385e2d,_0x39fa8d){const _0x5ee1f0=_0x39fa8d['editing']['view']['document'];if('string'==typeof _0x385e2d)return new _0x4317d4(_0x5ee1f0,_0x385e2d);{const _0x3c5fea=_0x385e2d['children']['map'](_0x4c9519=>C(_0x4c9519,_0x39fa8d));return new(P[_0x385e2d['type']]||_0x3c4ed4)(_0x5ee1f0,_0x385e2d['name'],_0x385e2d['attributes'],_0x3c5fea);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x46d73e){this['editor']=_0x46d73e,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'](_0x1f1703){this['source']=_0x1f1703;const _0x54e594=new Map(),_0x5eb0f8=new Map(),_0x514f90=this['editor']['model']['document']['roots']['map'](_0x19b1d0=>_0x19b1d0['rootName']);for(const _0x3ccc65 of _0x514f90){const _0x10cfa7=this['editor']['model']['document']['getRoot'](_0x3ccc65),_0x11b805=T(_0x10cfa7);_0x54e594['set'](_0x3ccc65,_0x11b805),_0x5eb0f8['set'](_0x3ccc65,Object['fromEntries'](_0x10cfa7['getAttributes']()));}const _0x16dc7c=Array['from'](this['editor']['model']['markers'])['map'](_0x57dc65=>[_0x57dc65['name'],_0x57dc65['getRange']()]),_0x1ee15c=this['source']['version'];this['_saveMetaData'](_0x1ee15c,_0x54e594,_0x16dc7c,_0x5eb0f8),this['_startingRevisionId']=this['_revisionId'];const _0x2411ea=new Map(),_0x5f1f0c=new Map();for(const _0x60eda9 of _0x514f90){const _0x46168b=F(_0x60eda9);_0x2411ea['set'](_0x60eda9,_0x46168b),_0x5f1f0c['set'](_0x60eda9,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2411ea,[],_0x5f1f0c);}['getData'](_0x4d8b05,_0x40d379){if(this['_lastFrom']===_0x4d8b05&&this['_lastTo']<=_0x40d379)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x40d379,!0x0);else{if(!this['_savedMetaData']['has'](_0x4d8b05)){const _0x229a4e=this['_getPreviousFrom'](_0x4d8b05);this['_calculateMetaData'](_0x229a4e,_0x4d8b05,!0x1);}this['_calculateMetaData'](_0x4d8b05,_0x40d379,!0x0);}return this['_lastFrom']=_0x4d8b05,this['_lastTo']=_0x40d379,this['_getState']();}['loadState'](_0x37c147){this['_reset'](),this['_lastFrom']=_0x37c147['fromVersion'],this['_lastTo']=_0x37c147['toVersion'];for(const _0x23a830 in _0x37c147['diffData']){const _0x44b293=_0x37c147['diffData'][_0x23a830]['attachChange'],_0x2bb3a6=_0x5af04f(_0x37c147['diffData'][_0x23a830]['attributesBefore'])||{},_0x1d25aa=this['_makeModelFromViewString'](_0x37c147['diffData'][_0x23a830]['deletions']);_0x1d25aa['rootName']=_0x23a830,_0x1d25aa['_isAttached']=!_0x44b293||!_0x44b293['isAttached'],_0x1d25aa['isAttached']=()=>_0x1d25aa['_isAttached'],this['_baseRoots']['set'](_0x23a830,_0x1d25aa),this['_baseRootsAttributes']['set'](_0x23a830,_0x2bb3a6),_0x44b293&&this['_touchedRoots']['set'](_0x23a830,_0x44b293);const _0x209d07=this['_makeIdsRoot'](_0x1d25aa);this['_baseIdsRoots']['set'](_0x23a830,_0x209d07);for(const [_0x12ad00,_0x4140d9]of _0x1d25aa['markers']){if(!_0x12ad00['startsWith']('revision:'))continue;const _0x3c5a18=_0x12ad00['split'](':')[0x2];for(const _0x2a86fe of _0x4140d9['getWalker']({'singleCharacters':!0x0})){const _0x400b3f=this['_getVidAttributeName'](_0x2a86fe),_0x1268e0='elementEnd'==_0x2a86fe['type']?_0x2a86fe['previousPosition']['path']['slice'](0x0,-0x1):_0x2a86fe['previousPosition']['path'],_0x38a4b3=_0x209d07['getNodeByPath'](_0x1268e0)['getAttribute'](_0x400b3f);this['_touched']['set'](_0x38a4b3,{'userId':_0x3c5a18});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1d4f6f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x542130=>!this['_touched']['has'](_0x542130));let _0x48c066=0x0;const _0x57b412=new Map();for(const _0x23e647 in _0x37c147['diffData']){const _0x4d3ad8=_0x37c147['diffData'][_0x23e647]['attachChange'],_0x5a0b73=_0x5af04f(_0x37c147['diffData'][_0x23e647]['attributesAfter'])||{},_0x51c31c=this['_makeModelFromViewString'](_0x37c147['diffData'][_0x23e647]['insertions']);_0x51c31c['rootName']=_0x23e647,_0x51c31c['_isAttached']=!_0x4d3ad8||_0x4d3ad8['isAttached'],_0x51c31c['isAttached']=()=>_0x51c31c['_isAttached'],this['_diffRoots']['set'](_0x23e647,_0x51c31c),this['_diffRootsAttributes']['set'](_0x23e647,_0x5a0b73);const _0x174a59=this['_makeIdsRoot'](_0x51c31c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x23e647,_0x174a59),_0x57b412['set'](_0x23e647,_0x51c31c['isAttached']()?_0x5a0b73:{});for(const [_0x565e89,_0x13f083]of _0x51c31c['markers']){if(!_0x565e89['startsWith']('revision:'))continue;const _0x570e5e=_0x565e89['split'](':')[0x2];for(const _0x3e2848 of _0x13f083['getWalker']({'singleCharacters':!0x0})){const _0x2c5ab7=this['_getVidAttributeName'](_0x3e2848),_0x1cd900=this['_revisionId']++,_0x183be9='elementEnd'==_0x3e2848['type']?_0x3e2848['previousPosition']['path']['slice'](0x0,-0x1):_0x3e2848['previousPosition']['path'];_0x174a59['getNodeByPath'](_0x183be9)['_setAttribute'](_0x2c5ab7,_0x1cd900),this['_touched']['set'](_0x1cd900,{'userId':_0x570e5e});}}for(const _0x5df738 of this['editor']['model']['createRangeIn'](_0x51c31c)['getWalker']({'singleCharacters':!0x0})){const _0x110983=this['_getVidAttributeName'](_0x5df738),_0x22637c='elementEnd'==_0x5df738['type']?_0x5df738['previousPosition']['path']['slice'](0x0,-0x1):_0x5df738['previousPosition']['path'],_0x2abe95=_0x174a59['getNodeByPath'](_0x22637c);_0x2abe95['getAttribute'](_0x110983)>0x0||_0x2abe95['_setAttribute'](_0x110983,_0x1d4f6f[_0x48c066++]);}for(const [_0x1ccbe5,_0x3fa2f4]of _0x51c31c['markers'])_0x1ccbe5['startsWith']('revision:')||this['_markers']['set'](_0x1ccbe5,_0x3fa2f4);}const _0x577927=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x577927),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x577927,0x1));const _0x4f4d75=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4f4d75),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4f4d75,0x1));const _0x24cc71=Array['from'](this['_diffRoots'])['map'](([_0x139873,_0x28eaca])=>[_0x139873,T(_0x28eaca)]);this['_saveMetaData'](this['_lastTo'],_0x24cc71,this['_markers'],_0x57b412);}['_makeModelFromViewString'](_0x575058){const _0x57b085=JSON['parse'](_0x575058),_0x3cf965=this['editor']['editing']['view']['document'],_0xa25ec3=new _0x379ec6(_0x3cf965,_0x57b085['map'](_0x5ac55f=>C(_0x5ac55f,this['editor'])));return this['editor']['data']['toModel'](_0xa25ec3);}['_saveMetaData'](_0x3b5777,_0x1d543c,_0x1d2985,_0x451eaf){const _0x18364b=new Map(_0x1d543c),_0x45b691=new Map(_0x5af04f(_0x451eaf)),_0x363ef=new Map();for(const [_0x43bb41,_0x57298d]of _0x1d2985)_0x363ef['set'](_0x43bb41,{'start':_0x57298d['start']['clone'](),'end':_0x57298d['end']['clone'](),'rootName':_0x57298d['root']['rootName']});this['_savedMetaData']['set'](_0x3b5777,{'roots':_0x18364b,'markers':_0x363ef,'rootsAttributes':_0x45b691});}['_removeMetaData'](_0x3c3ce3){this['_savedMetaData']['delete'](_0x3c3ce3);}['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'](_0x40a938,_0x200c70=null){let _0x5690c5=null;_0x40a938['is']('documentFragment')||(_0x5690c5=new ft(_0x40a938['name'],{'vid_start':null===_0x200c70?this['_revisionId']++:_0x200c70++}));const _0x5e6de3=[];for(const _0x45262d of _0x40a938['getChildren']())if(_0x45262d['is']('element')){_0x5e6de3['push'](this['_makeIdsRoot'](_0x45262d,_0x200c70));const _0x2da897=_0x5e6de3[_0x5e6de3['length']-0x1];null!==_0x200c70&&(_0x200c70=_0x2da897['is']('element','$text')?_0x2da897['getAttribute']('vid')+0x1:_0x2da897['getAttribute']('vid_end')+0x1);}else{for(let _0x2fc4e5=0x0;_0x2fc4e5<_0x45262d['offsetSize'];_0x2fc4e5++)_0x5e6de3['push'](new ft('$text',{'vid':null===_0x200c70?this['_revisionId']++:_0x200c70++}));}if(_0x40a938['is']('documentFragment')){const _0x54c327=F(_0x40a938['rootName']);return _0x54c327['_insertChild'](0x0,_0x5e6de3),_0x54c327;}return _0x5690c5['_setAttribute']('vid_end',null===_0x200c70?this['_revisionId']++:_0x200c70++),_0x5690c5['_insertChild'](0x0,_0x5e6de3),_0x5690c5;}['_calculateMetaData'](_0x18f496,_0x452c2e,_0x2afa1a){this['_reset']();const {roots:_0x344ee6,markers:_0x8693c7,rootsAttributes:_0x27628f}=this['_savedMetaData']['get'](_0x18f496);this['_baseRoots']=new Map(_0x344ee6),this['_baseRootsAttributes']=new Map(_0x5af04f(_0x27628f));for(const [_0x10e714,_0x361cfa]of this['_baseRoots'])if('$graveyard'!==_0x10e714&&(this['_diffRoots']['set'](_0x10e714,T(_0x361cfa)),this['_diffRootsAttributes']=new Map(_0x5af04f(_0x27628f)),_0x2afa1a)){const _0x5ef99d=this['_revisionId'];this['_idsRoots']['set'](_0x10e714,this['_makeIdsRoot'](_0x361cfa)),this['_baseIdsRoots']['set'](_0x10e714,this['_makeIdsRoot'](_0x361cfa,_0x5ef99d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2afa1a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4727bf,_0xb42109]of _0x8693c7){const _0x1b0360=this['_baseRoots']['get'](_0xb42109['rootName']),_0x27d366=this['_diffRoots']['get'](_0xb42109['rootName']),_0x1a001c=new vt(this['_fixPosition'](_0xb42109['start'],_0x1b0360),this['_fixPosition'](_0xb42109['end'],_0x1b0360)),_0x5ec82a=this['_fixRange'](_0x1a001c,_0x27d366);_0x1b0360['markers']['set'](_0x4727bf,_0x1a001c),this['_markers']['set'](_0x4727bf,_0x5ec82a);}this['_applyOperations'](_0x18f496,_0x452c2e,_0x2afa1a);}['_applyOperations'](_0x2a7b03,_0x1d0dd9,_0x1a70c1){for(const _0x1c2540 of this['source']['getOperations'](_0x2a7b03,_0x1d0dd9))this['_handleOperation'](_0x1c2540,_0x1a70c1);for(const _0x479585 of this['_diffRoots']['values']())_0x479585['markers']['clear']();for(const [_0x3a3142,_0x39b799]of this['_markers']){this['_diffRoots']['get'](_0x39b799['root']['rootName'])['markers']['set'](_0x3a3142,_0x39b799['clone']());}const _0x4a9121=new Map(),_0x85553b=new Map();for(const [_0x480648,_0x1062a3]of this['_diffRoots'])_0x4a9121['set'](_0x480648,T(_0x1062a3)),_0x85553b['set'](_0x480648,this['_diffRootsAttributes']['get'](_0x480648));this['_saveMetaData'](_0x1d0dd9,_0x4a9121,this['_markers'],_0x85553b);}['_getPreviousFrom'](_0x4b87c6){const _0x503d15=Array['from'](this['_savedMetaData']['keys']());_0x503d15['sort']((_0x483bf9,_0x37154d)=>_0x483bf9-_0x37154d),_0x503d15['reverse']();for(const _0x526c06 of _0x503d15)if(_0x526c06<_0x4b87c6)return _0x526c06;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4f12f4,_0x379945){const _0x196c60=Array['from'](_0x379945['markers'])['map'](([_0x3c5635,_0xe4e232])=>[_0x3c5635,this['_fixRange'](_0xe4e232,_0x4f12f4)]);_0x4f12f4['markers']=new Map(_0x196c60);}['_transformMarkers'](_0x3cfc02){for(const _0x2e040e of this['_markers']['values']()){const _0x375581=_0x2e040e['getTransformedByOperation'](_0x3cfc02),_0x54dc5d=vt['_createFromRanges'](_0x375581);_0x2e040e['start']=_0x54dc5d['start'],_0x2e040e['end']=_0x54dc5d['end'];}}['_handleOperation'](_0x38ea5f,_0x6bfb90){if('addRoot'!=_0x38ea5f['type']&&'detachRoot'!=_0x38ea5f['type']){if('insert'==_0x38ea5f['type']){const _0x5dfba7=_0x38ea5f['position']['root']['rootName'];this['_diffRoots']['has'](_0x5dfba7)||(this['_diffRoots']['set'](_0x5dfba7,F(_0x5dfba7,!0x0)),this['_diffRootsAttributes']['set'](_0x5dfba7,{}),_0x6bfb90&&this['_idsRoots']['set'](_0x5dfba7,F(_0x5dfba7,!0x0)));}else{if('addRootAttribute'==_0x38ea5f['type']||'removeRootAttribute'==_0x38ea5f['type']||'changeRootAttribute'==_0x38ea5f['type'])return void this['_handleRootAttributeOperation'](_0x38ea5f);'marker'==_0x38ea5f['type']&&this['_handleMarkerOperation'](_0x38ea5f);}if('marker'!==_0x38ea5f['type']){const _0x6d45c6=this['_cloneOperation'](_0x38ea5f,this['_diffRoots']);_0x6d45c6['_execute'](),this['_transformMarkers'](_0x6d45c6);}if(_0x6bfb90)switch(_0x38ea5f['type']){case'insert':this['_handleInsertOperation'](_0x38ea5f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x38ea5f);break;case'merge':this['_handleMergeOperation'](_0x38ea5f);break;case'split':this['_handleSplitOperation'](_0x38ea5f);}}else this['_handleRootOperation'](_0x38ea5f,_0x6bfb90);}['_cloneOperation'](_0x341a63,_0x5ec50f){const _0x3af203=_0x341a63['clone']();return _0x3af203['_authorId']=_0x341a63['_authorId'],this['_fixOperation'](_0x3af203,_0x5ec50f),_0x3af203;}['_getBaseVids'](_0x238329){return _0x238329['map'](_0x53dfb7=>{const _0x10d537=this['_getVidAttributeName'](_0x53dfb7);return Number(_0x53dfb7['item']['getAttribute'](_0x10d537));});}['_generateTape'](_0x291370,_0x2d0e4c){if(_0x291370['is']('element','$text'))_0x2d0e4c['push']({'item':_0x291370,'type':'text'});else{_0x291370['is']('element')&&_0x2d0e4c['push']({'item':_0x291370,'type':'elementStart'});for(const _0x594e9e of _0x291370['getChildren']())this['_generateTape'](_0x594e9e,_0x2d0e4c);_0x291370['is']('element')&&_0x2d0e4c['push']({'item':_0x291370,'type':'elementEnd'});}return _0x2d0e4c;}['_getState'](){const _0x249e35=new Map(this['_touched']),_0x201bf4=new Map(_0x249e35),_0xaee2db=new Map(),_0x1660c1={'insertions':{},'deletions':{}},_0xbf299b={'insertions':{},'deletions':{}},_0x5f37f6=new Map(),_0x3d21a9=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3d21a9['delete']('$graveyard');for(const _0x50910b of _0x3d21a9){const _0x2e46c2=this['_diffRoots']['get'](_0x50910b)||F(_0x50910b,!0x1),_0xf675fd=this['_baseRoots']['get'](_0x50910b)||F(_0x50910b,!0x1);_0x2e46c2['isAttached']()||_0xf675fd['isAttached']()?(_0x1660c1['insertions'][_0x50910b]=T(_0x2e46c2),_0x1660c1['deletions'][_0x50910b]=T(_0xf675fd),this['_copyMarkers'](_0x1660c1['deletions'][_0x50910b],_0xf675fd),this['_copyMarkers'](_0x1660c1['insertions'][_0x50910b],_0x2e46c2),_0xbf299b['insertions'][_0x50910b]=this['_generateTape'](this['_idsRoots']['get'](_0x50910b),[]),_0xbf299b['deletions'][_0x50910b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x50910b)||F(_0x50910b,!0x1),[])):_0x3d21a9['delete'](_0x50910b);}for(const _0x125418 of _0x3d21a9){const _0x34052a=_0xbf299b['insertions'][_0x125418];for(const _0x5ba36f of _0x34052a){const _0x4d07fd=this['_getVidAttributeName'](_0x5ba36f),_0x3b8ac8=_0x5ba36f['item']['getAttribute'](_0x4d07fd);_0x201bf4['delete'](_0x3b8ac8),_0x3b8ac8>=this['_startingRevisionId']&&_0xaee2db['set'](_0x3b8ac8,_0x249e35['get'](_0x3b8ac8));}}for(const _0xff828b of _0x3d21a9){const _0xb95791=_0xbf299b['insertions'][_0xff828b],_0x31924c=this['_getBaseVids'](_0xbf299b['deletions'][_0xff828b]);let _0x2013bd=0x0;for(const _0x1f2848 of _0xb95791){const _0x559c39=this['_getVidAttributeName'](_0x1f2848),_0x329dd2=_0x1f2848['item']['getAttribute'](_0x559c39);if(!_0xaee2db['has'](_0x329dd2)&&!_0x5f37f6['has'](_0x329dd2)){if(_0x201bf4['has'](_0x329dd2))_0x2013bd++;else{if(_0x329dd2!=_0x31924c[_0x2013bd]){const _0x4bace4=_0x249e35['get'](_0x329dd2)||_0x249e35['get'](_0x31924c[_0x2013bd]);for(;_0x329dd2!=_0x31924c[_0x2013bd];)_0x201bf4['has'](_0x31924c[_0x2013bd])||(_0x5f37f6['set'](_0x31924c[_0x2013bd],_0x4bace4),_0x249e35['set'](_0x31924c[_0x2013bd],_0x4bace4)),_0x2013bd++;}_0x2013bd++;}}}}for(const _0x128619 of _0x3d21a9){const _0xab773a=_0xbf299b['insertions'][_0x128619];for(const _0x3cc81d of _0xab773a){const _0xa0cedc=this['_getVidAttributeName'](_0x3cc81d),_0x283208=_0x3cc81d['item']['getAttribute'](_0xa0cedc);if(_0x5f37f6['has'](_0x283208)){const _0x147f8c=_0x5f37f6['get'](_0x283208);_0x201bf4['has'](_0x283208)||_0x201bf4['set'](_0x283208,{..._0x147f8c}),_0xaee2db['set'](_0x283208,{..._0x147f8c});}}}for(const _0x4cf1d6 of _0x201bf4['keys']())_0x4cf1d6>=this['_startingRevisionId']&&_0x201bf4['delete'](_0x4cf1d6);const _0x4a25b9=new Map();for(const _0x2d45ec of _0x3d21a9){let _0x361d61=_0xbf299b['insertions'][_0x2d45ec];for(const _0xeffc10 of _0x361d61)if(_0xeffc10['item']['is']('element','tableCell')){const _0x3e26d5=this['_getVidAttributeName'](_0xeffc10),_0x331e7=_0xeffc10['item']['getAttribute'](_0x3e26d5);if(_0xaee2db['has'](_0x331e7)){const _0x37de9d=_0xeffc10['item']['parent']['parent']['getAttribute']('vid_start'),_0x2b3e17=_0x4a25b9['get'](_0x37de9d)||new Set();_0x2b3e17['add'](_0xaee2db['get'](_0x331e7)['userId']),_0x4a25b9['set'](_0x37de9d,_0x2b3e17);}}_0x361d61=_0xbf299b['deletions'][_0x2d45ec];for(const _0x5c2372 of _0x361d61)if(_0x5c2372['item']['is']('element','tableCell')){const _0xf88132=this['_getVidAttributeName'](_0x5c2372),_0x55e691=_0x5c2372['item']['getAttribute'](_0xf88132);if(_0x201bf4['has'](_0x55e691)){const _0x505330=_0x5c2372['item']['parent']['parent']['getAttribute']('vid_start'),_0x2f9b6f=_0x4a25b9['get'](_0x505330)||new Set();_0x2f9b6f['add'](_0x201bf4['get'](_0x55e691)['userId']),_0x4a25b9['set'](_0x505330,_0x2f9b6f);}}for(const _0x4de05c of _0x4a25b9['keys']())(_0xaee2db['has'](_0x4de05c)||_0x201bf4['has'](_0x4de05c))&&_0x4a25b9['delete'](_0x4de05c);}for(const _0x317716 of _0x3d21a9){const _0x279cf2=_0xbf299b['insertions'][_0x317716];let _0x22a79d=null,_0x1035fa=null;for(const _0x2896f0 of _0x279cf2){const _0x3eadf6=this['_getVidAttributeName'](_0x2896f0),_0x3dd2aa=_0x2896f0['item']['getAttribute'](_0x3eadf6),_0x4d7e10=_0x4a25b9['get'](_0x3dd2aa);_0x4d7e10&&'elementStart'==_0x2896f0['type']&&(_0x22a79d=Array['from'](_0x4d7e10)[0x0],_0x1035fa=_0x2896f0['item']['getAttribute']('vid_end')),_0x22a79d&&(_0x201bf4['set'](_0x3dd2aa,{'userId':_0x22a79d}),_0xaee2db['set'](_0x3dd2aa,{'userId':_0x22a79d})),_0x3dd2aa==_0x1035fa&&(_0x22a79d=null,_0x1035fa=null);}}const _0x4df6d9={},_0x134e56=new Set();for(const _0x19d3a8 of _0x3d21a9){const _0x31b320=_0x1660c1['deletions'][_0x19d3a8],_0x2a633a=_0x1660c1['insertions'][_0x19d3a8];for(const {userId:_0xe40d7c}of this['_touchedMarkers']['values']())null!==_0xe40d7c&&_0x134e56['add'](_0xe40d7c);for(const {userId:_0x49c8cd}of this['_touchedRoots']['values']())null!==_0x49c8cd&&_0x134e56['add'](_0x49c8cd);this['_markChanges'](_0x2a633a,_0xbf299b['insertions'][_0x19d3a8],_0xaee2db,'insertion',_0x134e56),this['_markChanges'](_0x31b320,_0xbf299b['deletions'][_0x19d3a8],_0x201bf4,'deletion',_0x134e56),_0x4df6d9[_0x19d3a8]={'insertions':this['_prepareViewToSave'](_0x2a633a),'deletions':this['_prepareViewToSave'](_0x31b320),'attachChange':this['_touchedRoots']['get'](_0x19d3a8)||null,'attributesBefore':_0x5af04f(this['_baseRootsAttributes']['get'](_0x19d3a8))||{},'attributesAfter':_0x5af04f(this['_diffRootsAttributes']['get'](_0x19d3a8))};}return{'diffData':_0x4df6d9,'authorsIds':Array['from'](_0x134e56)};}['_processRootBeforeSave'](_0x56c3e8){for(const [,_0x5249a3]of _0x56c3e8['markers']){const _0x252204=_0x5249a3['start']['getAncestors']()['filter'](_0x49cc39=>'tableCell'==_0x49cc39['name']);for(const _0x499cfd of _0x252204)0x1==_0x499cfd['childCount']&&_0x499cfd['getChild'](0x0)['is']('element','paragraph')&&_0x499cfd['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x235c11){this['_processRootBeforeSave'](_0x235c11);const _0x566899=this['editor']['data']['toView'](_0x235c11,{}),_0x5c4f26=Array['from'](_0x566899['getChildren']())['map'](_0xa672fa=>this['_getViewJson'](_0xa672fa));return JSON['stringify'](_0x5c4f26);}['_getViewJson'](_0x329683){if(_0x329683['is']('$text'))return _0x329683['data'];{const _0x2019f5=_0x329683;return{'type':Object['keys'](P)['find'](_0x353d0d=>_0x329683 instanceof P[_0x353d0d]),'name':_0x2019f5['name'],'attributes':Array['from'](_0x2019f5['getAttributes']()),'children':Array['from'](_0x2019f5['getChildren']())['map'](_0xbe071f=>this['_getViewJson'](_0xbe071f))};}}['_markChanges'](_0x4a9732,_0x2e2f45,_0x33562e,_0x3d791f,_0x3ae8ba){let _0x277e7f=null,_0x3c197b=null,_0x1b6f66=0x0;const _0xac505e=this['editor']['model'];for(let _0x30f840=0x0;_0x30f840<_0x2e2f45['length'];_0x30f840++){const _0x3c9e3e=this['_getVidAttributeName'](_0x2e2f45[_0x30f840]),_0x291efe=_0x2e2f45[_0x30f840]['item']['getAttribute'](_0x3c9e3e),_0x31f41f=_0x33562e['get'](_0x291efe),_0x13d80a=_0x30f840==_0x2e2f45['length']-0x1;(!_0x277e7f&&_0x31f41f&&(_0x277e7f=_0x31f41f,_0x3c197b=_0x2e2f45[_0x30f840]),_0x277e7f&&(!_0x31f41f||_0x31f41f['userId']!=_0x277e7f['userId']))&&(_0x4f5966(_0x31f41f,B(_0x3c197b,_0x4a9732,_0xac505e),B(_0x2e2f45[_0x30f840],_0x4a9732,_0xac505e)),_0x277e7f=_0x31f41f||null,_0x3c197b=_0x31f41f?_0x2e2f45[_0x30f840]:null),_0x277e7f&&_0x13d80a&&_0x4f5966(_0x31f41f,B(_0x3c197b,_0x4a9732,_0xac505e),J(_0x2e2f45[_0x30f840],_0x4a9732,_0xac505e));}function _0x4f5966(_0x29a821,_0xe96a5,_0x5acb1c){const _0x546dc1=_0x277e7f['userId'],_0x49b44b='revision:'+_0x3d791f+':'+_0x546dc1+':'+_0x1b6f66++,_0x1b0f82=_0xac505e['createRange'](_0xe96a5,_0x5acb1c);_0x4a9732['markers']['set'](_0x49b44b,_0x1b0f82),null!==_0x546dc1&&_0x3ae8ba['add'](_0x546dc1);}}['_getVidAttributeName'](_0x18132b){switch(_0x18132b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x22c44f,_0x552340){_0x22c44f['baseVersion']=null;for(const _0x4f62f8 in _0x22c44f){const _0x279841=_0x22c44f[_0x4f62f8];if(_0x279841 instanceof gt){const _0x392586=_0x552340['get'](_0x279841['root']['rootName']);_0x22c44f[_0x4f62f8]=this['_fixPosition'](_0x279841,_0x392586);}if(_0x279841 instanceof vt){const _0x2717fa=_0x552340['get'](_0x279841['root']['rootName']);_0x22c44f[_0x4f62f8]=this['_fixRange'](_0x279841,_0x2717fa);}'root'===_0x4f62f8&&(_0x22c44f['root']=_0x552340['get'](_0x22c44f['root']['rootName']));}}['_fixRange'](_0x562521,_0x2479f2){return this['editor']['model']['createRange'](this['_fixPosition'](_0x562521['start'],_0x2479f2),this['_fixPosition'](_0x562521['end'],_0x2479f2));}['_fixPosition'](_0x13d829,_0x17502c){return this['editor']['model']['createPositionFromPath'](_0x17502c,_0x13d829['path'],_0x13d829['stickiness']);}['_handleInsertOperation'](_0x1b5c52){const _0x4dadbd=this['_idsRoots']['get'](_0x1b5c52['position']['root']['rootName']),_0x1fbf47=this['_fixPosition'](_0x1b5c52['position'],_0x4dadbd),_0x246f1d=null===_0x1b5c52['_authorId']?null:_0x1b5c52['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x87e35c=_0x1fbf47['parent'],_0x411d75=this['_revisionId'],_0x1cf5af=[];for(const _0x54bb11 of _0x1b5c52['nodes'])if(_0x54bb11['is']('element'))_0x1cf5af['push'](this['_makeIdsRoot'](_0x54bb11));else{for(let _0x10983f=0x0;_0x10983f<_0x54bb11['offsetSize'];_0x10983f++)_0x1cf5af['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x4fc461=this['_revisionId'];for(let _0x35285e=_0x411d75;_0x35285e<_0x4fc461;_0x35285e++)this['_touched']['set'](_0x35285e,{'userId':_0x246f1d});_0x87e35c['_insertChild'](_0x1fbf47['offset'],_0x1cf5af);}['_handleMoveOperation'](_0x2c7a00){(_0x2c7a00=this['_cloneOperation'](_0x2c7a00,this['_idsRoots']))['_execute']();const _0x5711f6=null===_0x2c7a00['_authorId']?null:_0x2c7a00['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c9a38=_0x2c7a00['getMovedRangeStart'](),_0x675c3c=_0x3c9a38['parent'],_0xd13d4a=_0x3c9a38['offset'];!function _0x97fb5a(_0x150226,_0x272ac4,_0x4528e5,_0x1c542b){for(let _0x35a434=_0x4528e5;_0x35a434<_0x1c542b;_0x35a434++){const _0x3e71c0=_0x272ac4['getChild'](_0x35a434);_0x3e71c0['is']('element','$text')?_0x150226['set'](_0x3e71c0['getAttribute']('vid'),{'userId':_0x5711f6}):(_0x150226['set'](_0x3e71c0['getAttribute']('vid_start'),{'userId':_0x5711f6}),_0x97fb5a(_0x150226,_0x3e71c0,0x0,_0x3e71c0['childCount']),_0x150226['set'](_0x3e71c0['getAttribute']('vid_end'),{'userId':_0x5711f6}));}}(this['_touched'],_0x675c3c,_0xd13d4a,_0xd13d4a+_0x2c7a00['howMany']);}['_handleMergeOperation'](_0x4e8bce){const _0x354389=null===(_0x4e8bce=this['_cloneOperation'](_0x4e8bce,this['_idsRoots']))['_authorId']?null:_0x4e8bce['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x443dc3=_0x4e8bce['targetPosition']['parent'],_0x53884=_0x4e8bce['sourcePosition']['parent'],_0x42428b=_0x443dc3['getAttribute']('vid_end'),_0x56b288=_0x53884['getAttribute']('vid_start');_0x443dc3['_setAttribute']('vid_end',_0x53884['getAttribute']('vid_end')),_0x53884['_setAttribute']('vid_end',_0x42428b),this['_touched']['set'](_0x56b288,{'userId':_0x354389}),this['_touched']['set'](_0x42428b,{'userId':_0x354389}),_0x4e8bce['_execute']();}['_handleSplitOperation'](_0x2dff0d){const _0x515bf4=null===(_0x2dff0d=this['_cloneOperation'](_0x2dff0d,this['_idsRoots']))['_authorId']?null:_0x2dff0d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1cfc68=_0x2dff0d['graveyardPosition'],_0x17eb39=_0x2dff0d['splitPosition']['parent'];_0x2dff0d['_execute']();const _0x384fe6=_0x17eb39['getAttribute']('vid_end'),_0x3f67f8=_0x2dff0d['insertionPosition']['nodeAfter'];if(_0x1cfc68){const _0x3ff97e=_0x3f67f8['getAttribute']('vid_end'),_0x46e4fa=_0x17eb39['getAttribute']('vid_end');_0x17eb39['_setAttribute']('vid_end',_0x3ff97e),_0x3f67f8['_setAttribute']('vid_end',_0x46e4fa),this['_touched']['set'](_0x17eb39['getAttribute']('vid_end'),{'userId':_0x515bf4}),this['_touched']['set'](_0x3f67f8['getAttribute']('vid_start'),{'userId':_0x515bf4});}else{const _0x214780=this['_revisionId']++,_0x3d474a=this['_revisionId']++;_0x17eb39['_setAttribute']('vid_end',_0x214780),_0x3f67f8['_setAttribute']('vid_start',_0x3d474a),_0x3f67f8['_setAttribute']('vid_end',_0x384fe6),this['_touched']['set'](_0x214780,{'userId':_0x515bf4}),this['_touched']['set'](_0x3d474a,{'userId':_0x515bf4});}}['_handleMarkerOperation'](_0x39ec33){if(!_0x39ec33['affectsData'])return;const _0x88ee6d=(_0x39ec33=this['_cloneOperation'](_0x39ec33,this['_diffRoots']))['oldRange']?_0x39ec33['oldRange']['root']:null,_0x5692b5=_0x39ec33['newRange']?_0x39ec33['newRange']['root']:null;_0x88ee6d&&this['_markers']['delete'](_0x39ec33['name']),_0x5692b5&&this['_markers']['set'](_0x39ec33['name'],_0x39ec33['newRange']['clone']());const _0x2c94e1=null===_0x39ec33['_authorId']?null:_0x39ec33['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x158ccc=_0x39ec33['name'];if(!this['_touchedMarkers']['has'](_0x158ccc))return void this['_touchedMarkers']['set'](_0x158ccc,{'range':_0x39ec33['oldRange'],'userId':_0x2c94e1});const _0x56d9d3=this['_touchedMarkers']['get'](_0x158ccc),_0x27fa75=_0x56d9d3['range'],_0x196f25=_0x39ec33['newRange'];null==_0x27fa75&&null==_0x196f25||_0x27fa75&&_0x196f25&&_0x27fa75['isEqual'](_0x196f25)?this['_touchedMarkers']['delete'](_0x39ec33['name']):_0x56d9d3['userId']=_0x2c94e1;}['_handleRootOperation'](_0x296587,_0x28f1c8){this['_diffRoots']['has'](_0x296587['rootName'])?this['_diffRoots']['get'](_0x296587['rootName'])['_isAttached']=_0x296587['isAdd']:(this['_diffRoots']['set'](_0x296587['rootName'],F(_0x296587['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x296587['rootName'],{}),_0x28f1c8&&this['_idsRoots']['set'](_0x296587['rootName'],F(_0x296587['rootName'],!0x0)));const _0x291b77=null===_0x296587['_authorId']?null:_0x296587['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1980f4=this['_touchedRoots']['get'](_0x296587['rootName']);_0x1980f4&&_0x1980f4['userId']===_0x291b77?this['_touchedRoots']['delete'](_0x296587['rootName']):this['_touchedRoots']['set'](_0x296587['rootName'],{'userId':_0x291b77,'isAttached':_0x296587['isAdd']});}['_handleRootAttributeOperation'](_0x24e0ed){const _0x3a8197=this['_diffRootsAttributes']['get'](_0x24e0ed['root']['rootName']);null===_0x24e0ed['newValue']?delete _0x3a8197[_0x24e0ed['key']]:_0x3a8197[_0x24e0ed['key']]=_0x24e0ed['newValue'];}}function T(_0x3d3b21){const _0x101efe=F(_0x3d3b21['rootName'],_0x3d3b21['isAttached']());for(const _0x383de8 of _0x3d3b21['getChildren']()){const _0xde9dd2=_0x383de8['_clone'](!0x0);_0x101efe['_appendChild'](_0xde9dd2);}return _0x101efe;}function F(_0x4ce394,_0x2b60c7=!0x0){const _0x529e84=new mt();return _0x529e84['rootName']=_0x4ce394,_0x529e84['_isAttached']=_0x2b60c7,_0x529e84['isAttached']=()=>_0x529e84['_isAttached'],_0x529e84;}function B(_0x4b92a3,_0xf6d85a,_0x221754){const _0x2aeab3='elementEnd'==_0x4b92a3['type']?_0x221754['createPositionAt'](_0x4b92a3['item'],'end'):_0x221754['createPositionBefore'](_0x4b92a3['item']);return _0x221754['createPositionFromPath'](_0xf6d85a,_0x2aeab3['path'],_0x2aeab3['stickiness']);}function J(_0x19ed66,_0x228f38,_0x4c120f){const _0x20cf08='elementStart'==_0x19ed66['type']?_0x4c120f['createPositionAt'](_0x19ed66['item'],0x0):_0x4c120f['createPositionAfter'](_0x19ed66['item']);return _0x4c120f['createPositionFromPath'](_0x228f38,_0x20cf08['path'],_0x20cf08['stickiness']);}class ns extends _0x376464{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x28186c,_0x2d66ee){super(_0x28186c),this['focusTracker']=new _0x7d4c72(),this['keystrokes']=new _0x4053e6(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2d66ee),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'](),_0xbcf98b({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x209d4b=_0x390010=>_0x390010['stopPropagation']();this['keystrokes']['set']('arrowright',_0x209d4b),this['keystrokes']['set']('arrowleft',_0x209d4b),this['keystrokes']['set']('arrowup',_0x209d4b),this['keystrokes']['set']('arrowdown',_0x209d4b);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x760562){this['revisionNameInputView']['fieldView']['element']['value']=_0x760562['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x35cc1c){const _0x2cab63=new nt(this['locale'],_0xcbfa91),_0xcebaae=_0x2cab63['fieldView'];_0xcebaae['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4c0254=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x35cc1c&&(_0x4c0254+='\x20('+m(this['locale'],'optional')+')'),(_0x2cab63['label']=_0x4c0254,_0xcebaae['on']('input',()=>{this['revisionNameInputValue']=_0xcebaae['element']['value']['trim']();}),_0x2cab63);}}class u extends _0x361651{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x10a3e6=this['editor'],_0x10d710=_0x10a3e6['plugins']['get']('RevisionTracker');_0x10a3e6['ui']['componentFactory']['add']('revisionHistory',_0x5f1914=>{const _0x260bad=_0x11399b(_0x5f1914),_0xb219cf=_0x260bad['panelView']['children'],_0x177930=new te(_0x5f1914),_0x2fa2e0=new _0x3ce312(_0x5f1914),_0x24c359=new _0x58a9b0(_0x5f1914),_0x5b3e72=new _0x3ce312(_0x5f1914),_0x281593=new _0x58a9b0(_0x5f1914);return _0x260bad['bind']('isEnabled')['to'](_0x10d710,'isReady',_0x10d710,'isEnabled',_0x10a3e6,'isReadOnly',(_0x499364,_0x2f1fa1,_0x3a7229)=>_0x499364&&_0x2f1fa1&&!_0x3a7229),_0x260bad['buttonView']['set']({'icon':_0x2a914a['history'],'label':m(_0x5f1914,'Revision\x20history'),'tooltip':!0x0}),_0x24c359['set']({'label':m(_0x5f1914,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x24c359['bind']('isEnabled')['to'](_0x10d710,'isReady',_0x10d710,'isEnabled',_0x10a3e6,'isReadOnly',(_0x3f8cab,_0x25e609,_0x2ebaa3)=>_0x3f8cab&&_0x25e609&&!_0x2ebaa3),_0x24c359['on']('execute',()=>this['_showDialog']()),_0x281593['set']({'label':m(_0x5f1914,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x281593['bind']('isEnabled')['to'](_0x10d710,'isReady',_0x10a3e6,'isReadOnly',(_0x11f6ef,_0x13c15c)=>_0x11f6ef&&!_0x13c15c),_0x281593['on']('execute',()=>{_0x10a3e6['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x260bad['isOpen']=!0x1,_0x10a3e6['editing']['view']['focus']();}),_0x2fa2e0['children']['add'](_0x24c359),_0x5b3e72['children']['add'](_0x281593),_0x177930['role']='menu',_0x177930['items']['addMany']([_0x2fa2e0,_0x5b3e72]),_0xb219cf['add'](_0x177930),_0x260bad;}),_0x10a3e6['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4ac786=this['editor'],_0x49c651=_0x4ac786['locale'],_0x2aeff6=new _0x1643c5(_0x49c651),_0x4b5e77=new _0x2732e5(_0x49c651);_0x2aeff6['buttonView']['set']({'icon':_0x2a914a['history'],'label':m(_0x49c651,'Revision\x20history')});const _0x25f7ce=new _0x21400a(_0x49c651,_0x2aeff6),_0x4b8511=new _0x178c59(_0x49c651);_0x4b8511['set']({'label':m(_0x49c651,'Save\x20current\x20revision')}),_0x4b8511['delegate']('execute')['to'](_0x2aeff6),_0x4b8511['on']('execute',()=>{this['_showDialog']();}),_0x25f7ce['children']['add'](_0x4b8511),_0x4b5e77['items']['add'](_0x25f7ce);const _0x2afca5=new _0x21400a(_0x49c651,_0x2aeff6),_0xaa21c9=new _0x178c59(_0x49c651);return _0xaa21c9['set']({'label':m(_0x49c651,'Open\x20revision\x20history')}),_0xaa21c9['delegate']('execute')['to'](_0x2aeff6),_0xaa21c9['on']('execute',()=>{_0x4ac786['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2afca5['children']['add'](_0xaa21c9),_0x4b5e77['items']['add'](_0x2afca5),_0x2aeff6['panelView']['children']['add'](_0x4b5e77),_0x2aeff6;}['_showDialog'](){const _0x16e1d3=this['editor'],_0x1940c6=_0x16e1d3['locale'],_0x435183=_0x16e1d3['plugins']['get']('Dialog'),_0x1dcdd5=_0x16e1d3['plugins']['get']('RevisionTracker');function _0x26381b(_0x5e62c4){_0x16e1d3['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5e62c4['revisionName']?_0x5e62c4['revisionNameInputView']['errorText']=m(_0x1940c6,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x16e1d3['plugins']['get'](l)['saveRevision']({'name':_0x5e62c4['revisionName']}),_0x435183['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x26381b(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x435183['show']({'id':'revisionSave','title':m(_0x1940c6,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x16e1d3['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x435183['hide']()},{'label':m(_0x16e1d3['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2ae965){_0x2ae965['bind']('isEnabled')['to'](_0x1dcdd5,'isReady',_0x1dcdd5,'isEnabled',_0x16e1d3,'isReadOnly',(_0x42f6f2,_0x2d91b7,_0xd58870)=>_0x42f6f2&&_0x2d91b7&&!_0xd58870);},'onExecute':()=>_0x26381b(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x34cd8e=this['editor'],_0x2552fe=_0x34cd8e['locale'];this['_saveRevisionFormView']=new ns(_0x2552fe,_0x34cd8e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x376464{['changeId'];['_model'];constructor(_0x4baf29,_0x1cbe62){super(_0x4baf29),this['_model']=_0x1cbe62,this['changeId']=_0x1cbe62['id'];const _0x2056bb=this['bindTemplate'],_0x191cad=m(_0x4baf29,_0x1cbe62['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1cbe62['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1cbe62['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2056bb['to']('type',_0x48ad6f=>'ck-revision-change__'+_0x48ad6f)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x191cad}]},{'text':'\x20'+_0x1cbe62['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x2332e5(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4efd5d){super(),this['id']=_0x4efd5d['id']||_0x52d906(),this['author']=_0x4efd5d['author'],this['type']=_0x4efd5d['type'],this['data']=_0x4efd5d['data']||{},this['rootName']=_0x4efd5d['rootName'],this['set']('createdAt',_0x4efd5d['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(_0x179d73,_0x56080e){this['newRevisionId']=_0x179d73,this['oldRevisionId']=_0x56080e,this['changes']=new _0x2ebcff();}['_setChanges'](_0x5f586d){for(const _0x385429 of _0x5f586d)this['changes']['add'](_0x385429);}}const Y={'c':_0x11367b,'a':_0xa485d0,'e':_0x335ef8,'r':_0x8ec83,'u':_0x4421f6};class d extends _0x361651{['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[_0x176997,_0x47b965,j];}constructor(_0x5684d7){super(_0x5684d7),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',(_0x4b1b5e,_0x53b07a,_0x2ce33a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1f885b=>{for(const _0x3b144e of this['editor']['editing']['view']['document']['roots'])_0x2ce33a?_0x1f885b['removeClass']('ck-editor__editable__overlay',_0x3b144e):_0x1f885b['addClass']('ck-editor__editable__overlay',_0x3b144e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4d88dc=>null!==_0x4d88dc),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5d3e79,_0x40be49,_0xf64fb6)=>_0x5d3e79&&_0xf64fb6?_0x40be49['changes']['getIndex'](_0xf64fb6):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2b0792,_0x135f91)=>_0x2b0792?_0x135f91['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x47b965);}['init'](){const _0x374e96=this['editor'],_0x26abb0=new yt(_0x374e96,{'direction':'backward'}),_0x30990b=new yt(_0x374e96,{'direction':'forward'});(_0x374e96['commands']['add']('showPreviousChange',_0x26abb0),_0x374e96['commands']['add']('showNextChange',_0x30990b),_0x374e96['commands']['add']('restoreRevision',new _t(_0x374e96)),this['on']('change:numberOfChanges',()=>{_0x26abb0['refresh'](),_0x30990b['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x374e96['enableReadOnlyMode']('revision-viewer'),_0x374e96['plugins']['has']('WidgetToolbarRepository'))&&_0x374e96['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x183974){await this['loadRevisionData'](_0x183974);const _0x59a75b={};for(const _0xfe6ccc in _0x183974['diffData']){if(_0x183974['diffData'][_0xfe6ccc]['attachChange']&&!_0x183974['diffData'][_0xfe6ccc]['attachChange']['isAttached'])continue;const _0x5a7147=this['_removeRevisionMarkers'](JSON['parse'](_0x183974['diffData'][_0xfe6ccc]['insertions'])),_0x34ea99=this['editor']['editing']['view']['document'],_0x5ce991=new _0x379ec6(_0x34ea99,_0x5a7147['map'](_0x250ba4=>this['_getViewObj'](_0x250ba4)));this['editor']['data']['processor']['useFillerType']('marked'),_0x59a75b[_0xfe6ccc]=this['editor']['data']['processor']['toData'](_0x5ce991),this['editor']['data']['processor']['useFillerType']('default');}return _0x59a75b;}async['getRevisionRootsAttributes'](_0x9e5a72){await this['loadRevisionData'](_0x9e5a72);const _0x29cd01={};for(const _0xa1fd2c in _0x9e5a72['diffData'])_0x9e5a72['diffData'][_0xa1fd2c]['attachChange']&&!_0x9e5a72['diffData'][_0xa1fd2c]['attachChange']['isAttached']||(_0x29cd01[_0xa1fd2c]=_0x9e5a72['diffData'][_0xa1fd2c]['attributesAfter']||{});return _0x29cd01;}['_removeRevisionMarkers'](_0xe10bc9){return(_0xe10bc9=_0xe10bc9['filter'](_0xf85106=>!_0xf85106['name']||'revision-start'!==_0xf85106['name']&&'revision-end'!==_0xf85106['name']))['forEach'](_0x3c677d=>{'string'!=typeof _0x3c677d&&(_0x3c677d['children']=this['_removeRevisionMarkers'](_0x3c677d['children']),_0x3c677d['attributes']=_0x3c677d['attributes']['filter'](_0x233f26=>!_0x233f26[0x0]['startsWith']('data-revision-')));}),_0xe10bc9;}async['compare'](_0x52a6b2,_0x9ee164,_0x936cbe=!0x1){if(!this['isEnabled'])return;const _0xea6ec2=this['diff'],_0x5f56db=this['repository'],_0x47e576='string'==typeof _0x52a6b2?_0x5f56db['getRevision'](_0x52a6b2):_0x52a6b2,_0xdebc36='string'==typeof _0x9ee164?_0x5f56db['getRevision'](_0x9ee164):_0x9ee164,_0x400c95=_0x47e576['id'],_0x32f32c=_0xdebc36?_0xdebc36['id']:null;if(!_0x936cbe&&this['diff']&&this['diff']['newRevisionId']===_0x400c95&&this['diff']['oldRevisionId']===_0x32f32c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x400c95,_0x32f32c);const _0x53b679=this['_getRevisionsRange'](_0x47e576,_0xdebc36,!0x0)['map'](_0x2240df=>this['loadRevisionData'](_0x2240df));return _0x53b679['push'](new Promise(_0x30bdfc=>{setTimeout(_0x30bdfc,0x14);})),Promise['all'](_0x53b679)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x54a655=this['_getDiff'](_0x400c95,_0x32f32c);for(const _0x3c3e7a of _0x54a655['changes'])this['_changeIdToChange']['set'](_0x3c3e7a['id'],_0x3c3e7a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x50dd25=>{for(const _0x3740b5 of this['editor']['model']['document']['getRootNames']())_0x50dd25['detachRoot'](_0x3740b5);for(const _0x522283 of Object['keys'](_0x54a655['model'])){const _0x35645b=_0x50dd25['addRoot'](_0x522283);for(const _0x522aa of Object['keys'](_0x54a655['attributes'][_0x522283]))_0x50dd25['setAttribute'](_0x522aa,_0x54a655['attributes'][_0x522283][_0x522aa],_0x35645b);_0x50dd25['insert'](_0x54a655['model'][_0x522283],_0x35645b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x54a655['changes'])),this['isReady']=!0x0;})['catch'](_0x12776a=>{console['error'](_0x12776a),this['_cleanUp'](),_0xea6ec2&&(this['diff']=_0xea6ec2),this['isReady']=!0x0;});}['addRevisionData'](_0xf28b8a,_0x2d53c3){const _0x39673d=this['repository']['createRevision'](_0xf28b8a);return _0x39673d['on']('_update',(_0x4d7343,_0x2e4d18,_0x432a6c)=>_0x2d53c3(_0x2e4d18,_0x432a6c,_0x39673d)),this['repository']['addRevision'](_0x39673d),_0x39673d;}['loadRevisionData'](_0x3db5b7){if(!_0x3db5b7||_0x3db5b7['diffData'])return Promise['resolve']();{const _0x2f5c0f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2f5c0f,'revisionId':_0x3db5b7['id']})['then'](_0x41044d=>{_0x3db5b7['_update']({'diffData':_0x41044d['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},_0x5c1a5c=>{for(const _0x2fe3f9 of this['editor']['model']['document']['getRootNames']())_0x5c1a5c['detachRoot'](_0x2fe3f9);});}['_sortAndFilterDiffChanges'](_0x251831){const _0x31797e=[],_0x1396d0=new Map();for(const _0x3c07ed of this['editor']['model']['document']['getRootNames']()){const _0xf73539=this['editor']['editing']['view']['getDomRoot'](_0x3c07ed);if(!_0xf73539)continue;const _0x32caaf=_0xf73539['getClientRects']()['item'](0x0);_0x32caaf&&(_0x31797e['push'](_0x3c07ed),_0x1396d0['set'](_0x3c07ed,_0x32caaf));}return _0x31797e['sort']((_0x519ae9,_0x47f90a)=>{const _0x434cab=_0x1396d0['get'](_0x519ae9),_0x541a78=_0x1396d0['get'](_0x47f90a);return _0x434cab['y']-_0x541a78['y']||_0x434cab['x']-_0x541a78['x'];}),(_0x251831=_0x251831['filter'](_0xe2169=>_0x31797e['includes'](_0xe2169['rootName'])))['sort']((_0x48a2c4,_0x10b49f)=>_0x31797e['indexOf'](_0x48a2c4['rootName'])-_0x31797e['indexOf'](_0x10b49f['rootName'])),_0x251831;}['_makeTape'](_0x12f040){const _0x2932aa=Array['from'](_0x12f040['markers'])['filter'](([_0x3cbcbb,_0x32d3d3])=>_0x3cbcbb['startsWith']('revision:')&&!_0x32d3d3['isCollapsed']),_0x20e6b0=Array['from'](this['editor']['model']['createRangeIn'](_0x12f040)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2932aa['length'])for(const _0x1d6269 of _0x20e6b0){const [_0x1dcdcf,_0x58e269]=_0x2932aa[0x0],[,_0x4e921c,_0x567829]=_0x1dcdcf['split'](':');if(_0x58e269['end']['isEqual'](_0x1d6269['nextPosition'])&&_0x2932aa['shift'](),(_0x1d6269['previousPosition']['isEqual'](_0x58e269['start'])||_0x1d6269['previousPosition']['isAfter'](_0x58e269['start']))&&('insertion'==_0x4e921c?_0x1d6269['isAdded']={'userId':_0x567829}:'deletion'==_0x4e921c&&(_0x1d6269['isRemoved']={'userId':_0x567829})),0x0==_0x2932aa['length'])break;}return _0x20e6b0;}['_refreshStartEndIndex'](_0x4075a8){const _0x581a12=new Map();for(let _0x37a94f=0x0;_0x37a94f<_0x4075a8['length'];_0x37a94f++)'text'===_0x4075a8[_0x37a94f]['type']?(_0x4075a8[_0x37a94f]['item']['startIndex']=_0x37a94f,_0x4075a8[_0x37a94f]['item']['endIndex']=_0x37a94f):('elementStart'===_0x4075a8[_0x37a94f]['type']?_0x4075a8[_0x37a94f]['item']['startIndex']=_0x37a94f:'elementEnd'===_0x4075a8[_0x37a94f]['type']&&(_0x4075a8[_0x37a94f]['item']['endIndex']=_0x37a94f),_0x581a12['set'](_0x4075a8[_0x37a94f]['id'],_0x37a94f));for(const _0x14e2e0 of _0x581a12['values']())'elementStart'===_0x4075a8[_0x14e2e0]['type']?_0x4075a8[_0x14e2e0]['item']['endIndex']=_0x581a12['get'](_0x4075a8[_0x14e2e0]['pairId']):'elementEnd'===_0x4075a8[_0x14e2e0]['type']&&(_0x4075a8[_0x14e2e0]['item']['startIndex']=_0x581a12['get'](_0x4075a8[_0x14e2e0]['pairId']));}['_processTape'](_0x5f497a){for(let _0x443f75=0x0;_0x443f75<_0x5f497a['length'];_0x443f75++){if('elementStart'===_0x5f497a[_0x443f75]['type'])_0x5f497a[_0x443f75]['item']['startIndex']=_0x443f75;else{if('elementEnd'===_0x5f497a[_0x443f75]['type']){_0x5f497a[_0x443f75]['item']['endIndex']=_0x443f75;const _0x36363c=_0x5f497a[_0x443f75]['item']['startIndex'];_0x5f497a[_0x36363c]['pairId']=_0x5f497a[_0x443f75]['id'],_0x5f497a[_0x443f75]['pairId']=_0x5f497a[_0x36363c]['id'];}else _0x5f497a[_0x443f75]['item']['startIndex']=_0x443f75,_0x5f497a[_0x443f75]['item']['endIndex']=_0x443f75,_0x5f497a[_0x443f75]['pairId']=null;}_0x5f497a[_0x443f75]['markersStart']||(_0x5f497a[_0x443f75]['markersStart']=[],_0x5f497a[_0x443f75]['markersEnd']=[]);}}['_markInsertions'](_0x36f014,_0x3c3d4a){const _0x28dee9=_0x36f014['filter'](_0x21e4ac=>!_0x21e4ac['isAdded']);for(let _0x579945=0x0;_0x579945<_0x3c3d4a['length'];_0x579945++)_0x3c3d4a[_0x579945]['isAdded']&&(_0x28dee9[_0x579945]['isAdded']=_0x3c3d4a[_0x579945]['isAdded']);}['_makeModelFromViewString'](_0x2b399e){const _0x200f5a=JSON['parse'](_0x2b399e),_0x58bb3b=this['editor']['editing']['view']['document'],_0x49aa68=new _0x379ec6(_0x58bb3b,_0x200f5a['map'](_0x3ba4af=>this['_getViewObj'](_0x3ba4af)));return this['editor']['data']['toModel'](_0x49aa68);}['_getViewObj'](_0x56aad6){const _0x307f00=this['editor']['editing']['view']['document'];if('string'==typeof _0x56aad6)return new _0x4317d4(_0x307f00,_0x56aad6);{const _0x440539=_0x56aad6['children']['map'](_0x13dd75=>this['_getViewObj'](_0x13dd75));return new(Y[_0x56aad6['type']]||_0x3c4ed4)(_0x307f00,_0x56aad6['name'],_0x56aad6['attributes'],_0x440539);}}['_getDiff'](_0x23836f,_0x12f996=null){const _0x1fb459=this['repository']['getRevision'](_0x23836f),_0x570894=_0x12f996?this['repository']['getRevision'](_0x12f996):null,_0x508002=this['_getRevisionsRange'](_0x1fb459,_0x570894),_0x5f5236=_0x508002[_0x508002['length']-0x1],_0x4e8a60=new Map(),_0x14abbb={'model':{},'attributes':{},'changes':[]},_0x410f00=new Set(),_0x290e57=new Map();for(let _0x56a4ed=_0x508002['length']-0x1;_0x56a4ed>=0x0;_0x56a4ed--){const _0x275a73=_0x508002[_0x56a4ed];for(const _0xf2b664 of Object['keys'](_0x275a73['diffData']))if(_0x275a73['diffData'][_0xf2b664]['attachChange']){const _0x55cb34=_0x275a73['diffData'][_0xf2b664]['attachChange'];_0x55cb34['isAttached']?(_0x410f00['add'](_0xf2b664),_0x290e57['has'](_0xf2b664)&&_0x290e57['get'](_0xf2b664)['userId']==_0x55cb34['userId']?_0x290e57['delete'](_0xf2b664):_0x290e57['set'](_0xf2b664,_0x55cb34)):_0x290e57['has'](_0xf2b664)?(_0x410f00['delete'](_0xf2b664),_0x290e57['delete'](_0xf2b664)):(_0x410f00['add'](_0xf2b664),_0x290e57['set'](_0xf2b664,_0x55cb34));}else _0x410f00['add'](_0xf2b664);}for(const _0x56880d of _0x410f00){const _0x35946e=_0x290e57['has'](_0x56880d)&&!_0x290e57['get'](_0x56880d)['isAttached'];let _0x46bcdb=_0x35946e?_0x508002['length']-0x1:0x0;const _0x365189=_0x35946e?-0x1:0x1;for(;_0x508002[_0x46bcdb];){const _0x356f0a=_0x508002[_0x46bcdb];if(_0x356f0a['diffData'][_0x56880d]){const _0x1a6ed1=_0x35946e?_0x356f0a['diffData'][_0x56880d]['attributesBefore']:_0x356f0a['diffData'][_0x56880d]['attributesAfter'];_0x14abbb['attributes'][_0x56880d]=_0x1a6ed1?_0x5af04f(_0x1a6ed1):{};break;}_0x46bcdb+=_0x365189;}}for(const _0xdd0766 of _0x508002){_0xdd0766['model']={};for(const _0x5c545b of _0xdd0766['authors'])_0x4e8a60['set'](_0x5c545b['id'],_0x5c545b);for(const _0x1ac9cb of _0x410f00){const _0x392239=_0xdd0766['diffData'][_0x1ac9cb]?_0xdd0766['diffData'][_0x1ac9cb]['insertions']:'[]',_0x493d8b=_0xdd0766['diffData'][_0x1ac9cb]?_0xdd0766['diffData'][_0x1ac9cb]['deletions']:'[]';_0xdd0766['model'][_0x1ac9cb]={'insertions':this['_makeModelFromViewString'](_0x392239),'deletions':this['_makeModelFromViewString'](_0x493d8b)};}}for(const _0x4459e2 of _0x410f00){let _0x3c2b68=null,_0xa37d9d=0x0;const _0x361225=new Map(Array['from'](_0x1fb459['model'][_0x4459e2]['insertions']['markers'])['filter'](([_0x17b7c1])=>!_0x17b7c1['startsWith']('revision:')));let _0x6aa6d0=0x0;for(const _0x18dc37 of _0x508002){const _0x32a672=this['_makeTape'](_0x18dc37['model'][_0x4459e2]['insertions']);_0x18dc37==_0x1fb459?(_0x3c2b68=_0x32a672,_0xa37d9d=_0x3c2b68['length'],_0x3c2b68['forEach'](_0x1b3790=>{_0x1b3790['id']=_0x6aa6d0++;}),this['_processTape'](_0x3c2b68)):this['_markInsertions'](_0x3c2b68,_0x32a672);const _0x230091=_0x3c2b68['filter'](_0x4b6dda=>!_0x4b6dda['isAdded'])['map'](_0x3e0bde=>_0x3e0bde['id']);let _0x1c32f7=0x0;const _0x2d437b=this['_makeTape'](_0x18dc37['model'][_0x4459e2]['deletions']);_0x2d437b['forEach'](_0x465962=>{_0x465962['isRemoved']?_0x465962['id']=_0xa37d9d++:_0x465962['id']=_0x230091[_0x1c32f7++];}),this['_processTape'](_0x2d437b),this['_setDistance'](_0x3c2b68,'isAdded'),this['_setDistance'](_0x2d437b,'isRemoved'),_0x18dc37==_0x1fb459&&this['_markMarkers'](_0x3c2b68,_0x361225),_0x3c2b68=this['_joinTapes'](_0x3c2b68,_0x2d437b),this['_refreshStartEndIndex'](_0x3c2b68),this['_setDistance'](_0x3c2b68,'isRemoved');}_0x3c2b68=_0x3c2b68['filter'](_0x2e2a77=>!(_0x2e2a77['isAdded']&&_0x2e2a77['isRemoved']));const _0x5dc54a=new Map(_0x5f5236['model'][_0x4459e2]['deletions']['markers']),_0x48bcb9=new Set(_0x361225['keys']());for(const _0x5bc9be of _0x5dc54a['keys']())_0x48bcb9['delete'](_0x5bc9be);this['_markSuggestions'](_0x3c2b68,_0x48bcb9),this['_fixObsoleteTags'](_0x3c2b68),_0x3c2b68=this['_removeMissingPairs'](_0x3c2b68),_0x3c2b68=this['_markMismatchedRemovedTags'](_0x3c2b68),_0x3c2b68=this['_removeUnsupportedChanges'](_0x3c2b68);const {root:_0xae10d,changes:_0xf5ad0c}=this['_makeModelFromTape'](_0x3c2b68,_0x4e8a60,_0x4459e2);_0x14abbb['model'][_0x4459e2]=_0xae10d;const _0x51b473=_0x290e57['get'](_0x4459e2);if(_0x51b473){const _0x281288=_0x4e8a60['get'](_0x51b473['userId']),_0x5e55cb=new r({'author':_0x281288,'type':_0x51b473['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4459e2});_0xf5ad0c['unshift'](_0x5e55cb),_0x14abbb['attributes'][_0x4459e2]['revisionHistoryAttachChange']=_0x5e55cb['id'];}_0x14abbb['changes']=_0x14abbb['changes']['concat'](_0xf5ad0c);}return _0x14abbb;}['_markMarkers'](_0x3184b8,_0x5ccd6f){for(let _0x21a5a4=0x0;_0x21a5a4<_0x3184b8['length'];_0x21a5a4++)for(const [_0x354554,_0x2d76d1]of _0x5ccd6f)_0x2d76d1['start']['isEqual'](_0x3184b8[_0x21a5a4]['previousPosition'])&&_0x3184b8[_0x21a5a4]['markersStart']['push'](_0x354554),_0x2d76d1['end']['isEqual'](_0x3184b8[_0x21a5a4]['nextPosition'])&&_0x3184b8[_0x21a5a4]['markersEnd']['push'](_0x354554);}['_joinTapes'](_0x271af7,_0x3bd2cd){let _0x525874=[],_0x1b4d47=0x0,_0xeb7e6d=0x0;for(;_0x1b4d47<_0x271af7['length']||_0xeb7e6d<_0x3bd2cd['length'];){const _0x5809e3=_0x271af7[_0x1b4d47]||{},_0x2333c1=_0x3bd2cd[_0xeb7e6d]||{};if(_0x5809e3['id']==_0x2333c1['id'])_0x1b4d47++,_0xeb7e6d++,_0x525874['push'](_0x5809e3);else{if(_0x2333c1['isRemoved']&&_0x5809e3['isAdded']){const {commonTape:_0x199d82,iEnd:_0x1138f5,jEnd:_0x4be194}=this['_threeWayMerge'](_0x271af7,_0x1b4d47,_0x3bd2cd,_0xeb7e6d);_0x525874=_0x525874['concat'](_0x199d82),_0x1b4d47=_0x1138f5,_0xeb7e6d=_0x4be194;}else _0x2333c1['isRemoved']?(_0xeb7e6d++,_0x525874['push'](_0x2333c1)):(_0x1b4d47++,_0x525874['push'](_0x5809e3));}}return _0x525874;}['_markSuggestions'](_0x696d9b,_0x48e4f1){const _0x4ab28b=[];for(let _0x29a55c=0x0;_0x29a55c<_0x696d9b['length'];_0x29a55c++){for(let _0x2a8150=0x0;_0x2a8150<_0x696d9b[_0x29a55c]['markersStart']['length'];_0x2a8150++){const _0x563007=_0x696d9b[_0x29a55c]['markersStart'][_0x2a8150];if(!_0x48e4f1['has'](_0x563007))continue;const {group:_0x5edcc3,type:_0x529ff8,authorId:_0x5831d3}=_0x4c5eae(_0x563007);'revision-suggestion'!=_0x5edcc3||'insertion'!=_0x529ff8&&'deletion'!=_0x529ff8||(_0x4ab28b['unshift']({'type':_0x529ff8,'name':_0x563007,'userId':_0x5831d3}),_0x696d9b[_0x29a55c]['markersStart']['splice'](_0x2a8150,0x1),_0x2a8150--);}_0x3451f0(_0x696d9b[_0x29a55c]);for(let _0x11eca6=0x0;_0x11eca6<_0x696d9b[_0x29a55c]['markersEnd']['length'];_0x11eca6++){const _0x325ef6=_0x696d9b[_0x29a55c]['markersEnd'][_0x11eca6];if(!_0x48e4f1['has'](_0x325ef6))continue;const {group:_0x106871,type:_0x1fc518}=_0x4c5eae(_0x325ef6);if('revision-suggestion'!=_0x106871||'insertion'!=_0x1fc518&&'deletion'!=_0x1fc518)continue;_0x696d9b[_0x29a55c]['markersEnd']['splice'](_0x11eca6,0x1),_0x11eca6--;const _0x4d1538=_0x4ab28b['findIndex'](_0x536b15=>_0x536b15['name']==_0x325ef6);_0x4d1538>-0x1&&_0x4ab28b['splice'](_0x4d1538,0x1);}}function _0x4c5eae(_0x917716){const _0x44fb88=_0x917716['split'](':');return{'group':_0x44fb88[0x0],'type':_0x44fb88[0x1],'subType':_0x44fb88['length']>=0x5?_0x44fb88[0x2]:null,'id':_0x44fb88['length']<0x5?_0x44fb88[0x2]:_0x44fb88[0x3],'authorId':_0x44fb88['length']<0x5?_0x44fb88[0x3]:_0x44fb88[0x4],'markerCount':0x6==_0x44fb88['length']?_0x44fb88[0x5]:null};}function _0x3451f0(_0x311d76){for(let _0x44ca48=0x0;_0x44ca48<_0x4ab28b['length'];_0x44ca48++){if(_0x311d76['isAdded']&&'insertion'==_0x4ab28b[_0x44ca48]['type'])return _0x311d76['isAddSuggestion']=_0x4ab28b[_0x44ca48],void delete _0x311d76['isAdded'];if(!_0x311d76['isAdded']&&!_0x311d76['isRemoved']&&'deletion'==_0x4ab28b[_0x44ca48]['type'])return void(_0x311d76['isRemoveSuggestion']=_0x4ab28b[_0x44ca48]);}}}['_setDistance'](_0x250a26,_0x48d07e){let _0x402ff7=0x0,_0x3487c4=!0x1;const _0x42f880=new Map();for(const _0x2d188f of _0x250a26)_0x2d188f[_0x48d07e]?_0x3487c4&&(_0x402ff7++,_0x3487c4=!0x1):(_0x402ff7++,_0x3487c4=!0x0),_0x42f880['set'](_0x2d188f['id'],_0x402ff7);for(let _0x4e63b9=0x0;_0x4e63b9<_0x250a26['length'];_0x4e63b9++){if('isRemoved'==_0x48d07e&&_0x250a26[_0x4e63b9]['isAdded']||'isAdded'==_0x48d07e&&_0x250a26[_0x4e63b9]['isRemoved'])continue;if('text'==_0x250a26[_0x4e63b9]['type']){_0x250a26[_0x4e63b9]['distance']=0x0;continue;}const _0x23362d=_0x42f880['get'](_0x250a26[_0x4e63b9]['pairId']),_0x2c5ce0=_0x42f880['get'](_0x250a26[_0x4e63b9]['id']);_0x250a26[_0x4e63b9]['distance']=_0x23362d-_0x2c5ce0;}}['_getRevisionsRange'](_0x4d600f,_0x38c3a9,_0x4d6519=!0x1){const _0x287a45=[];let _0x4fd2fc=this['repository']['getIndex'](_0x4d600f),_0x2f6da9=this['repository']['getIndex'](_0x38c3a9);for(-0x1==_0x2f6da9&&(_0x2f6da9=this['repository']['_revisions']['length'],_0x4d6519=!0x1);_0x4fd2fc<_0x2f6da9;)_0x287a45['push'](this['repository']['getRevision'](_0x4fd2fc)),_0x4fd2fc++;return _0x4d6519&&_0x287a45['push'](this['repository']['getRevision'](_0x4fd2fc)),_0x287a45;}['_threeWayMerge'](_0x7ea196,_0x539920,_0xd2478f,_0x55daab){const _0x1f675a=this['editor']['model']['schema'];let _0x13a83a=_0x539920;for(;_0x7ea196[_0x13a83a]&&_0x7ea196[_0x13a83a]['isAdded'];)_0x13a83a++;let _0x23401b=_0x55daab;for(;_0xd2478f[_0x23401b]&&_0xd2478f[_0x23401b]['isRemoved'];)_0x23401b++;_0x1497ba(_0x7ea196,_0x539920,_0x13a83a),_0x1497ba(_0xd2478f,_0x55daab,_0x23401b);const _0x5236df=_0xd2478f['slice'](_0x55daab,_0x23401b)['concat'](_0x7ea196['slice'](_0x539920,_0x13a83a));return _0x5236df['sort']((_0x2ebeb5,_0x3c708e)=>_0x2ebeb5['side']!=_0x3c708e['side']?_0x2ebeb5['side']-_0x3c708e['side']:_0x2ebeb5['level']!=_0x3c708e['level']?_0x2ebeb5['level']-_0x3c708e['level']:_0x2ebeb5['distance']!=_0x3c708e['distance']?_0x3c708e['distance']-_0x2ebeb5['distance']:!!_0x2ebeb5['isAdded']!=!!_0x3c708e['isAdded']?-0x1==_0x2ebeb5['side']||0x0==_0x2ebeb5['side']?_0x2ebeb5['isAdded']?-0x1:0x1:_0x2ebeb5['isAdded']?0x1:-0x1:_0x2ebeb5['index']-_0x3c708e['index']),{'commonTape':_0x5236df,'iEnd':_0x13a83a,'jEnd':_0x23401b};function _0x1497ba(_0x1733ff,_0xb66f32,_0x1a11b3){let _0x42722f=-0x1,_0x4de679=Number['POSITIVE_INFINITY'],_0x53ae7c=!0x0;for(let _0x27b964=_0xb66f32;_0x27b964<_0x1a11b3;_0x27b964++)if(_0x1f675a['isInline'](_0x1733ff[_0x27b964]['item'])||(_0x53ae7c=!0x1),_0x1733ff[_0x27b964]['item']['startIndex']<_0xb66f32&&(_0x42722f=_0x27b964),_0x1733ff[_0x27b964]['item']['endIndex']>=_0x1a11b3){_0x4de679=_0x27b964;break;}_0x53ae7c&&(_0x42722f=_0x1a11b3-0x1);for(let _0x530a3e=_0xb66f32;_0x530a3e<_0x1a11b3;_0x530a3e++)_0x1733ff[_0x530a3e]['side']=_0x530a3e<=_0x42722f?-0x1:_0x530a3e<_0x4de679?0x0:0x1,_0x1733ff[_0x530a3e]['index']=_0x530a3e;let _0x2cc7e5=0x0;for(let _0x3e4919=_0xb66f32;_0x3e4919<=_0x42722f;_0x3e4919++)0x0==_0x1733ff[_0x3e4919]['distance']?_0x1733ff[_0x3e4919]['level']=_0x2cc7e5:(_0x2cc7e5++,_0x1733ff[_0x3e4919]['level']=_0x2cc7e5,_0x2cc7e5++);for(let _0x2a9b82=_0xb66f32;_0x2a9b82<_0x1a11b3;_0x2a9b82++)0x0==_0x1733ff[_0x2a9b82]['side']&&(_0x1733ff[_0x2a9b82]['level']=_0x2cc7e5);_0x2cc7e5=0x0;for(let _0x36bd8f=_0x1a11b3-0x1;_0x36bd8f>=_0x4de679;_0x36bd8f--)0x0==_0x1733ff[_0x36bd8f]['distance']?_0x1733ff[_0x36bd8f]['level']=_0x2cc7e5:(_0x2cc7e5--,_0x1733ff[_0x36bd8f]['level']=_0x2cc7e5,_0x2cc7e5--);}}['_fixObsoleteTags'](_0x1d6bbc){const _0x267c80=new Map(),_0x2ec3ee=this['editor']['model']['schema'];for(let _0x1827a4=0x1;_0x1827a4<_0x1d6bbc['length'];_0x1827a4++){let _0x50c6e6,_0xb9e3ab,_0x27ae42;const _0x19d986=_0x1d6bbc[_0x1827a4],_0x318883=_0x1d6bbc[_0x1827a4-0x1];if('text'==_0x19d986['type'])continue;if(_0x19d986['type']!=_0x318883['type'])continue;if(!_0x2ec3ee['isBlock'](_0x318883['item'])||_0x2ec3ee['isLimit'](_0x318883['item']))continue;if(!_0x2ec3ee['isBlock'](_0x19d986['item'])||_0x2ec3ee['isLimit'](_0x19d986['item']))continue;if((_0x1d6bbc[_0x1827a4]['isAdded']||_0x1d6bbc[_0x1827a4]['isAddSuggestion'])&&_0x1d6bbc[_0x1827a4-0x1]['isRemoved'])_0x50c6e6=_0x1d6bbc[_0x1827a4],_0xb9e3ab=_0x1d6bbc[_0x1827a4-0x1],_0x27ae42=_0x1827a4-0x1;else{if(!_0x1d6bbc[_0x1827a4]['isRemoved']||!_0x1d6bbc[_0x1827a4-0x1]['isAdded']&&!_0x1d6bbc[_0x1827a4-0x1]['isAddSuggestion'])continue;_0x50c6e6=_0x1d6bbc[_0x1827a4-0x1],_0xb9e3ab=_0x1d6bbc[_0x1827a4],_0x27ae42=_0x1827a4;}const _0x3e44f6=_0x50c6e6['level']==_0xb9e3ab['level'],_0x5bf9d8=Math['abs'](_0x50c6e6['level'])<Math['abs'](_0xb9e3ab['level'])&&0x0==_0xb9e3ab['distance'];(_0x3e44f6||_0x5bf9d8)&&(_0x267c80['set'](_0xb9e3ab['id'],_0x50c6e6['id']),_0x1d6bbc['splice'](_0x27ae42,0x1),_0x1827a4--,_0x50c6e6['isAdded']=!0x1);}for(let _0x28b37c=0x0;_0x28b37c<_0x1d6bbc['length'];_0x28b37c++)_0x267c80['has'](_0x1d6bbc[_0x28b37c]['pairId'])&&(_0x1d6bbc[_0x28b37c]['pairId']=_0x267c80['get'](_0x1d6bbc[_0x28b37c]['pairId']));}['_removeMissingPairs'](_0x12f6ba){const _0x3c7ee7=new Set(_0x12f6ba['map'](_0xf23740=>_0xf23740['id']));for(let _0x6b123b=0x0;_0x6b123b<_0x12f6ba['length'];_0x6b123b++)_0x3c7ee7['has'](_0x12f6ba[_0x6b123b]['pairId'])||0x0==_0x12f6ba[_0x6b123b]['distance']||(_0x12f6ba[_0x6b123b]['isIncorrect']=!0x0);return _0x12f6ba['filter'](_0x223ec4=>!_0x223ec4['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5a3885){const _0x11adcc=new Set();for(let _0x1e7882=0x0;_0x1e7882<_0x5a3885['length'];_0x1e7882++){if(_0x11adcc['has'](_0x5a3885[_0x1e7882]['id'])&&_0x5a3885[_0x1e7882]['isRemoved']&&(_0x5a3885[_0x1e7882]['isIncorrect']=!0x0),_0x5a3885[_0x1e7882]['isIncorrect'])continue;if(0x0==_0x5a3885[_0x1e7882]['distance'])continue;if('elementStart'!=_0x5a3885[_0x1e7882]['type'])continue;if(null==_0x5a3885[_0x1e7882]['pairId'])continue;let _0x37b397=_0x1e7882+0x1,_0x2c32bf=0x0;for(;_0x5a3885[_0x37b397]['id']!=_0x5a3885[_0x1e7882]['pairId'];)'elementStart'==_0x5a3885[_0x37b397]['type']?_0x2c32bf++:'elementEnd'==_0x5a3885[_0x37b397]['type']&&_0x2c32bf--,_0x37b397++;if(0x0!=_0x2c32bf){if(_0x5a3885[_0x1e7882]['isRemoved'])_0x5a3885[_0x1e7882]['isIncorrect']=!0x0;else{for(;_0x37b397!=_0x1e7882;)_0x5a3885[_0x37b397]['isRemoved']&&0x0!=_0x5a3885[_0x37b397]['distance']&&(_0x5a3885[_0x37b397]['isIncorrect']=!0x0,_0x11adcc['add'](_0x5a3885[_0x37b397]['pairId'])),_0x37b397--;}}}return _0x5a3885['filter'](_0x47fa93=>!_0x47fa93['isIncorrect']);}['_removeUnsupportedChanges'](_0x3cf411){const _0x3871f2=this['editor']['model']['schema'];for(let _0x463e4c=0x0;_0x463e4c<_0x3cf411['length'];_0x463e4c++){if(!(_0x3cf411[_0x463e4c]['isAdded']||_0x3cf411[_0x463e4c]['isAddSuggestion']||_0x3cf411[_0x463e4c]['isRemoved']||_0x3cf411[_0x463e4c]['isRemoveSuggestion']))continue;if(0x0==_0x3cf411[_0x463e4c]['distance'])continue;const _0x39205e=_0x3cf411[_0x463e4c]['item'];_0x3871f2['isBlock'](_0x39205e)||_0x3871f2['isLimit'](_0x39205e)||(_0x3cf411[_0x463e4c]['isAdded']&&delete _0x3cf411[_0x463e4c]['isAdded'],_0x3cf411[_0x463e4c]['isAddSuggestion']&&delete _0x3cf411[_0x463e4c]['isAddSuggestion'],_0x3cf411[_0x463e4c]['isRemoveSuggestion']&&delete _0x3cf411[_0x463e4c]['isRemoveSuggestion'],_0x3cf411[_0x463e4c]['isRemoved']&&(_0x3cf411[_0x463e4c]['isIncorrect']=!0x0));}return _0x3cf411['filter'](_0x5abc53=>!_0x5abc53['isIncorrect']);}['_makeModelFromTape'](_0x12071d,_0xb79b6f,_0x3eb3ed){const _0x222871=new mt(),_0x3abebf=[],_0x508155=new Map(),_0x58ce3e=this['editor']['model'],_0x1d8136=_0x58ce3e['schema'],_0x117daa=[_0x222871],_0x298588={},_0x101cc2={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x35e4de=null;const _0x55ef4c=[0x0];for(let _0x1f3773=0x0;_0x1f3773<_0x12071d['length'];_0x1f3773++)if('elementStart'===_0x12071d[_0x1f3773]['type']){_0x12071d[_0x1f3773]['previousPosition']=_0x58ce3e['createPositionFromPath'](_0x222871,_0x55ef4c);const _0x342018=new ft(_0x12071d[_0x1f3773]['item']['name'],_0x12071d[_0x1f3773]['item']['getAttributes']());_0x117daa[0x0]['_appendChild'](_0x342018),_0x55ef4c['push'](0x0),_0x117daa['unshift'](_0x342018),_0x12071d[_0x1f3773]['nextPosition']=_0x58ce3e['createPositionFromPath'](_0x222871,_0x55ef4c);}else'elementEnd'===_0x12071d[_0x1f3773]['type']?(_0x117daa['shift'](),_0x12071d[_0x1f3773]['previousPosition']=_0x58ce3e['createPositionFromPath'](_0x222871,_0x55ef4c),_0x55ef4c['pop'](),_0x55ef4c[_0x55ef4c['length']-0x1]++,_0x12071d[_0x1f3773]['nextPosition']=_0x58ce3e['createPositionFromPath'](_0x222871,_0x55ef4c)):(_0x12071d[_0x1f3773]['previousPosition']=_0x58ce3e['createPositionFromPath'](_0x222871,_0x55ef4c),_0x35e4de?_0x35e4de['_data']+=_0x12071d[_0x1f3773]['item']['data']:_0x35e4de=new wt(_0x12071d[_0x1f3773]['item']['data'],_0x12071d[_0x1f3773]['item']['getAttributes']()),_0x12071d[_0x1f3773+0x1]&&'text'===_0x12071d[_0x1f3773+0x1]['type']&&_0x31a757(_0x35e4de,_0x12071d[_0x1f3773+0x1]['item'])||(_0x117daa[0x0]['_appendChild'](_0x35e4de),_0x35e4de=null),_0x55ef4c[_0x55ef4c['length']-0x1]+=_0x12071d[_0x1f3773]['item']['offsetSize'],_0x12071d[_0x1f3773]['nextPosition']=_0x58ce3e['createPositionFromPath'](_0x222871,_0x55ef4c));for(let _0x4ac1bf=0x0;_0x4ac1bf<_0x12071d['length'];_0x4ac1bf++){const _0x33142d=_0x12071d[_0x4ac1bf]['previousPosition'],_0x93b576=_0x12071d[_0x4ac1bf]['nextPosition'];for(const _0x23b00a of _0x12071d[_0x4ac1bf]['markersStart'])_0x508155['set'](_0x23b00a,{'start':_0x33142d,'end':null});_0x17ac39('isRemoveSuggestion',_0x4ac1bf,_0x33142d,_0x93b576),_0x17ac39('isAddSuggestion',_0x4ac1bf,_0x33142d,_0x93b576),_0x17ac39('isRemoved',_0x4ac1bf,_0x33142d,_0x93b576),_0x17ac39('isAdded',_0x4ac1bf,_0x33142d,_0x93b576);for(const _0x1ee241 of _0x12071d[_0x4ac1bf]['markersEnd']){_0x508155['get'](_0x1ee241)['end']=_0x93b576;}}for(const [_0x45459f,_0x426b03]of _0x508155){const _0x35eb12=this['editor']['model']['createRange'](_0x426b03['start'],_0x426b03['end']);_0x222871['markers']['set'](_0x45459f,_0x35eb12);}return _0x3abebf['sort']((_0x482ac8,_0x498992)=>{const _0x462db2=_0x222871['markers']['get']('revision:'+_0x482ac8['id']),_0x5952c1=_0x222871['markers']['get']('revision:'+_0x498992['id']);return _0x462db2['start']['isBefore'](_0x5952c1['start'])?-0x1:_0x462db2['start']['isAfter'](_0x5952c1['start'])?0x1:_0x462db2['end']['isBefore'](_0x5952c1['end'])?-0x1:_0x462db2['end']['isAfter'](_0x5952c1['end'])?0x1:'add'===_0x482ac8['type']?-0x1:0x1;}),{'root':_0x222871,'changes':_0x3abebf};function _0x17ac39(_0x48c065,_0x29bd73,_0x2cf443,_0x22acfc){const _0x39b4e8=!!_0x12071d[_0x29bd73][_0x48c065],_0x3944be=_0x39b4e8?_0x12071d[_0x29bd73][_0x48c065]['userId']:null,_0x10c1bc=_0x29bd73===_0x12071d['length']-0x1,_0x22d9cd=_0x101cc2[_0x48c065][0x0],_0x2e9f33=_0x1d8136['isObject'](_0x12071d[_0x29bd73]['item']);!_0x298588[_0x48c065]&&_0x39b4e8?_0x298588[_0x48c065]={'start':_0x2cf443,'tapeItem':_0x12071d[_0x29bd73],'userId':_0x3944be,'type':_0x48c065}:_0x298588[_0x48c065]&&!_0x39b4e8?(_0x298588[_0x48c065]['end']=_0x2cf443,_0x5ad6ba(_0x298588[_0x48c065]),_0x298588[_0x48c065]=null):_0x298588[_0x48c065]&&_0x39b4e8&&_0x298588[_0x48c065]['userId']!==_0x3944be&&(_0x298588[_0x48c065]['end']=_0x2cf443,_0x22d9cd&&_0x22d9cd['userId']===_0x298588[_0x48c065]['userId']||_0x5ad6ba(_0x298588[_0x48c065]),_0x298588[_0x48c065]={'start':_0x2cf443,'tapeItem':_0x12071d[_0x29bd73],'userId':_0x3944be,'type':_0x48c065}),_0x298588[_0x48c065]&&_0x2e9f33&&('elementStart'!==_0x12071d[_0x29bd73]['type']||_0x22d9cd&&_0x22d9cd['userId']===_0x3944be||_0x101cc2[_0x48c065]['unshift']({'userId':_0x3944be,'object':_0x12071d[_0x29bd73]['item'],'change':_0x298588[_0x48c065]}),'elementEnd'===_0x12071d[_0x29bd73]['type']&&_0x22d9cd&&_0x22d9cd['object']===_0x12071d[_0x29bd73]['item']&&(_0x101cc2[_0x48c065]['shift'](),_0x298588[_0x48c065]=_0x22d9cd['change'])),_0x298588[_0x48c065]&&_0x10c1bc&&(_0x298588[_0x48c065]['end']=_0x22acfc,_0x5ad6ba(_0x298588[_0x48c065]),_0x298588[_0x48c065]=null);}function _0x5ad6ba({start:_0x5961de,end:_0x5de395,tapeItem:_0x5a439f,userId:_0x48f5a4,type:_0x5010d9}){const _0x401830=_0x5a439f['item'],_0x18b515=_0x58ce3e['schema']['isBlock'](_0x401830)&&!_0x58ce3e['schema']['isLimit'](_0x401830),_0x5468fd=_0x5961de['nodeAfter']==_0x5de395['parent']&&_0x5de395['isAtStart'];if(_0x18b515&&_0x5468fd)return;const _0x300928=_0x58ce3e['createRange'](_0x5961de,_0x5de395),_0x278e58=_0xb79b6f['get'](_0x48f5a4),_0x16e3d8=new r({'author':_0x278e58,'type':'isAdded'==_0x5010d9||'isAddSuggestion'==_0x5010d9?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5010d9||'isRemoveSuggestion'==_0x5010d9},'createdAt':new Date(),'rootName':_0x3eb3ed});_0x3abebf['push'](_0x16e3d8),_0x222871['markers']['set']('revision:'+_0x16e3d8['id'],_0x300928);}function _0x31a757(_0x5dcddf,_0x3d0068){const _0x599113=_0x5dcddf['getAttributes'](),_0x52c997=_0x3d0068['getAttributes']();for(const _0x4da422 of _0x599113){if(_0x4da422[0x1]!==_0x3d0068['getAttribute'](_0x4da422[0x0]))return!0x1;_0x52c997['next']();}return _0x52c997['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x42e3e7=>{const _0x5e3509=_0x42e3e7['markerName']['split'](':')[0x1],_0x227353=this['_getChangeFromId'](_0x5e3509);if(!_0x227353)return null;const _0x476a5d='add'==_0x227353['type']?'insertion':'deletion',_0x5c021e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x476a5d];return _0x227353['data']['isSuggestion']&&_0x5c021e['push']('ck-suggestion-marker-'+_0x476a5d+'-new'),this['activeChange']==_0x227353&&_0x5c021e['push']('ck-suggestion-marker--active'),{'classes':_0x5c021e,'attributes':{'data-change-id':_0x5e3509}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x195260=>{_0x195260['on']('element:pre',(_0x15b0a5,_0x4ba037,_0x4621d7)=>{const _0x344737=_0x4ba037['viewItem']['getChild'](0x0);if(!_0x344737||!_0x344737['is']('element','code'))return;if(!_0x4621d7['consumable']['consume'](_0x344737,{'attributes':['vid_start','vid_end']}))return;const _0x2bc08a=_0x4ba037['modelRange']['start']['nodeAfter'];_0x4621d7['writer']['setAttribute']('vid_start',_0x344737['getAttribute']('vid_start'),_0x2bc08a),_0x4621d7['writer']['setAttribute']('vid_end',_0x344737['getAttribute']('vid_end'),_0x2bc08a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4de021=>{_0x4de021['on']('element',(_0x40299b,_0xbc4520,_0x2b60d4)=>{if(!_0x2b60d4['consumable']['consume'](_0xbc4520['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xbc4520['modelRange']['isCollapsed'])return;const _0x256290=_0xbc4520['modelRange']['start']['nodeAfter'];_0x256290['hasAttribute']('vid_start')||_0x256290['hasAttribute']('vid')||(_0x2b60d4['writer']['setAttribute']('vid_start',_0xbc4520['viewItem']['getAttribute']('vid_start'),_0x256290),_0x2b60d4['writer']['setAttribute']('vid_end',_0xbc4520['viewItem']['getAttribute']('vid_end'),_0x256290));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xa3804b=>_0xa3804b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x414427,[,_0x2136db])=>{['vid_start','vid_end','vid']['includes'](_0x2136db)&&(_0x414427['return']=!0x0,_0x414427['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x21a99e=>{_0x21a99e['on']('attribute:vid',(_0x3f51f7,_0x4f5bf0,_0x4b9522)=>{if('\x20'!=_0x4f5bf0['item']['data']||_0x4f5bf0['item']['parent']['maxOffset']>0x1)return;if(!_0x4b9522['consumable']['consume'](_0x4f5bf0['item'],_0x3f51f7['name']))return;const _0xa9d3a1=_0x4b9522['writer'],_0x1eb957=_0x4b9522['mapper']['toViewRange'](_0x4f5bf0['range']);_0xa9d3a1['wrap'](_0x1eb957,_0xa9d3a1['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4bafa0){const _0x31b643=_0x4bafa0['plugins']['get']('RevisionViewer');return(_0x4325d9,_0x51f6e2,_0x3cff69)=>{const _0x2228b9=_0x51f6e2['markerName']['split'](':')[0x1],_0x376e39=_0x31b643['_getChangeFromId'](_0x2228b9);if(!_0x376e39)return null;const _0x67452f='add'==_0x376e39['type']?'split':'merge';if(!_0x3cff69['consumable']['test'](_0x51f6e2['markerRange'],_0x4325d9['name']))return;const _0x53306a=_0x51f6e2['markerRange']['getWalker'](),_0x4a9914=_0x51f6e2['markerRange']['start'],_0x2a93a2=_0x4bafa0['model']['schema'];let _0x488268=null,_0x99ad99=null,_0x13bc18=!0x1,_0x5f3436=!0x1;for(const _0x6333dc of _0x53306a){const _0x1fdb4f=_0x6333dc['item'];_0x13bc18=_0x13bc18||_0x2a93a2['isContent'](_0x1fdb4f);const _0x171ad4=_0x3cff69['mapper']['toViewElement'](_0x1fdb4f);if(_0x171ad4&&_0x171ad4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x6333dc['type']&&(_0x2a93a2['isBlock'](_0x1fdb4f)&&!_0x2a93a2['isLimit'](_0x1fdb4f)&&(_0x1fdb4f['nextSibling']||_0x4a9914['isAtEnd']?_0x488268&&_0x488268['parent']==_0x1fdb4f||(_0x488268=_0x1fdb4f,_0x2c2204(_0x6333dc['previousPosition']),_0x5f3436=!0x0):_0x99ad99=_0x99ad99||_0x6333dc['previousPosition']));}function _0x2c2204(_0x347d0b){const _0x1a2285=_0x3cff69['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x67452f}),_0x4e2020=_0x3cff69['mapper']['toViewPosition'](_0x347d0b);_0x376e39['data']['isSuggestion']&&_0x3cff69['writer']['addClass']('ck-suggestion-marker-'+_0x67452f+'-new',_0x1a2285),_0x31b643['activeChange']==_0x376e39&&_0x3cff69['writer']['addClass']('ck-suggestion-marker--active',_0x1a2285),_0x3cff69['writer']['insert'](_0x4e2020,_0x1a2285),_0x3cff69['mapper']['bindElementToMarker'](_0x1a2285,_0x51f6e2['markerName']);}_0x13bc18||_0x5f3436||!_0x99ad99||_0x2c2204(_0x99ad99);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x309a48,_0xd62c96,_0x82f0e1)=>{const _0x3284bc=_0x82f0e1['mapper']['markerNameToElements'](_0xd62c96['markerName']);if(_0x3284bc){for(const _0x7e24cd of _0x3284bc)(_0x7e24cd['hasClass']('ck-suggestion-marker-split')||_0x7e24cd['hasClass']('ck-suggestion-marker-merge'))&&(_0x82f0e1['mapper']['unbindElementFromMarkerName'](_0x7e24cd,_0xd62c96['markerName']),_0x82f0e1['writer']['remove'](_0x7e24cd));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4a4acb,_0x332957,_0x542b90)=>{const _0x2cf25f=_0x332957['markerName']['split'](':')[0x1],_0x40e8c8=this['_getChangeFromId'](_0x2cf25f);if(!_0x40e8c8)return null;const _0x5c4e0e='add'==_0x40e8c8['type']?'split':'merge';if(_0x542b90['consumable']['test'](_0x332957['markerRange'],_0x4a4acb['name']))for(const _0x42f233 of _0x332957['markerRange']['getItems']()){if(!_0x42f233['is']('element','softBreak'))continue;const _0x589503=_0x542b90['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5c4e0e}),_0x12ec73=_0x542b90['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x42f233));_0x40e8c8['data']['isSuggestion']&&_0x542b90['writer']['addClass']('ck-suggestion-marker-'+_0x5c4e0e+'-new',_0x589503),this['activeChange']==_0x40e8c8&&_0x542b90['writer']['addClass']('ck-suggestion-marker--active',_0x589503),_0x542b90['writer']['insert'](_0x12ec73,_0x589503),_0x542b90['mapper']['bindElementToMarker'](_0x589503,_0x332957['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x510d99=>{for(const _0x4b5ea6 of this['editor']['model']['document']['getRootNames']()){const _0x53828c=this['editor']['model']['document']['getRoot'](_0x4b5ea6),_0x554093=this['editor']['editing']['view']['document']['getRoot'](_0x4b5ea6);if(_0x554093){const _0x9c7e4c=_0x53828c['getAttribute']('revisionHistoryAttachChange');if(_0x510d99['removeAttribute']('data-change-id',_0x554093),_0x510d99['removeClass']('ck-revision-history-root-add',_0x554093),_0x510d99['removeClass']('ck-revision-history-root-remove',_0x554093),_0x510d99['removeClass']('ck-revision-history-root--active',_0x554093),_0x9c7e4c){const _0x2ceb04=this['_getChangeFromId'](_0x9c7e4c);if(!_0x2ceb04)return null;_0x510d99['setAttribute']('data-change-id',_0x9c7e4c,_0x554093),_0x510d99['addClass']('ck-revision-history-root-'+_0x2ceb04['type'],_0x554093),this['activeChange']==_0x2ceb04&&_0x510d99['addClass']('ck-revision-history-root--active',_0x554093);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4b98ea=>'revision-comment:'+_0x4b98ea,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4e1aac=>'revision-suggestion:'+_0x4e1aac,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x421d90=>({'name':'suggestion:'+_0x421d90,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x216dfc=>{const _0x4e6dad=_0x216dfc['markerName']['split'](':')[0x1];return'insertion'!=_0x4e6dad&&'deletion'!=_0x4e6dad?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4e6dad]};}}),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',(_0x41468c,_0xe6a64c,_0x66f055)=>{const _0x20e32b=_0x66f055['mapper']['markerNameToElements'](_0xe6a64c['markerName']);if(_0x20e32b){for(const _0x1ec571 of _0x20e32b)_0x1ec571['is']('uiElement')&&(_0x66f055['mapper']['unbindElementFromMarkerName'](_0x1ec571,_0xe6a64c['markerName']),_0x66f055['writer']['remove'](_0x1ec571));}},{'priority':'high'});}['_getChangeFromId'](_0x55b44c){return this['_changeIdToChange']['get'](_0x55b44c);}['_getViewForChange'](_0x16aa9f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x16aa9f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x595ade,_0x14e484,_0x4329e6,_0x896fb0)=>{_0x896fb0&&this['_balloon']['remove'](_0x896fb0),_0x4329e6&&(this['_balloon']['add']({'view':_0x4329e6,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x50aa6a=this['editor']['editing'],_0x33f312=this['_getChangeFromId'](_0x4329e6['changeId']);let _0x268db8;if(_0x33f312['data']['isOnRoot']){const _0x5b5c7d=_0x50aa6a['view']['getDomRoot'](_0x33f312['rootName']);_0x268db8=Array['from'](_0x5b5c7d['getClientRects']());}else{const _0xa40a87=this['editor']['model']['markers']['get']('revision:'+_0x4329e6['changeId']);_0x268db8=Array['from'](_0x50aa6a['mapper']['markerNameToElements'](_0xa40a87['name']))['map'](_0x44b200=>_0x50aa6a['view']['domConverter']['mapViewToDom'](_0x44b200))['map'](_0x4fa8e0=>Array['from'](_0x4fa8e0['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x268db8[0x0];return _0x268db8['find'](_0x4c23fa=>_0x4c23fa['top']-0x3<=this['_activeViewTarget']['y']&&_0x4c23fa['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4c23fa['left']-0x3<=this['_activeViewTarget']['x']&&_0x4c23fa['right']+0x3>=this['_activeViewTarget']['x'])||_0x268db8[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x26246f,_0xeb7d8,_0x236eec,_0x2cc293)=>{this['activeView']=_0x236eec?this['_getViewForChange'](_0x236eec):null,this['editor']['model']['change'](()=>{const _0x176b0d=this['editor']['editing'];_0x2cc293&&(_0x2cc293['data']['isOnRoot']?_0x176b0d['view']['change'](_0x44077b=>{_0x44077b['removeClass']('ck-revision-history-root--active',_0x176b0d['view']['document']['getRoot'](_0x2cc293['rootName']));}):_0x176b0d['reconvertMarker']('revision:'+_0x2cc293['id'])),_0x236eec&&(_0x236eec['data']['isOnRoot']?_0x176b0d['view']['change'](_0x38c158=>{_0x38c158['addClass']('ck-revision-history-root--active',_0x176b0d['view']['document']['getRoot'](_0x236eec['rootName']));}):_0x176b0d['reconvertMarker']('revision:'+_0x236eec['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2b35ed,_0x5e020e)=>{if(this['activeChange'])return;const _0x2d774d=this['_findChangeIdFromDomTarget'](_0x5e020e['target']),_0x160e96=this['_changeIdToChange']['get'](_0x2d774d);_0x160e96?(this['_activeViewTarget']={'x':_0x5e020e['domEvent']['x'],'y':_0x5e020e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x160e96)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x516069,_0xd99d8c)=>{const _0x137cd6=this['_findChangeIdFromDomTarget'](_0xd99d8c['target']),_0x110702=this['_changeIdToChange']['get'](_0x137cd6);_0x110702?(this['_activeViewTarget']={'x':_0xd99d8c['domEvent']['x'],'y':_0xd99d8c['domEvent']['y']},_0x110702===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x110702):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2dd6a6){do{const _0x36520e=_0x2dd6a6['getAttribute']('data-change-id');if(_0x36520e)return _0x36520e;_0x2dd6a6=_0x2dd6a6['parent'];}while(_0x2dd6a6);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5ab91a=>{for(const _0x1bc7c4 of this['editor']['model']['markers'])_0x5ab91a['removeMarker'](_0x1bc7c4);});}}function Z(_0x336dc9,_0xa52bc0){return(_0x3502af,_0x30ada8,_0x114976)=>{if(!_0x114976['consumable']['test'](_0x30ada8['markerRange'],_0x3502af['name']))return;const _0x41880e=_0x30ada8['markerRange']['getWalker'](),_0x2928f9=_0x30ada8['markerRange']['start'],_0xbd2fe7=_0x336dc9['model']['schema'];let _0x332f87=null,_0x1e389a=null,_0x573359=!0x1,_0x3efa91=!0x1;for(const _0x167107 of _0x41880e){const _0x44286b=_0x167107['item'];_0x573359=_0x573359||_0xbd2fe7['isContent'](_0x44286b);const _0x39b627=_0x114976['mapper']['toViewElement'](_0x44286b);if(_0x39b627&&_0x39b627['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x167107['type']&&(_0xbd2fe7['isBlock'](_0x44286b)&&!_0xbd2fe7['isLimit'](_0x44286b)&&(_0x44286b['nextSibling']||_0x2928f9['isAtEnd']?_0x332f87&&_0x332f87['parent']==_0x44286b||(_0x332f87=_0x44286b,_0x55b047(_0x167107['previousPosition']),_0x3efa91=!0x0):_0x1e389a=_0x1e389a||_0x167107['previousPosition']));}function _0x55b047(_0xb5ae9a){const _0x14c3ee=_0x114976['mapper']['toViewPosition'](_0xb5ae9a),_0xb30b29=_0x114976['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xa52bc0});_0x114976['writer']['insert'](_0x14c3ee,_0xb30b29),_0x114976['mapper']['bindElementToMarker'](_0xb30b29,_0x30ada8['markerName']);}_0x573359||_0x3efa91||!_0x1e389a||_0x55b047(_0x1e389a);};}class _t extends _0x2f351f{constructor(_0x4672af){super(_0x4672af);const _0x592c6e=_0x4672af['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x592c6e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x592c6e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x51da82=this['editor'],_0x54aaa9=_0x51da82['plugins']['get'](d),_0x19bb7a=_0x54aaa9['isReady']?_0x54aaa9['diff']['newRevisionId']:null;_0x51da82['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x19bb7a);}['refresh'](){const {isReady:_0x41e5c5,isEnabled:_0x2d28dd,repository:_0x4736c6,diff:_0x46acd5}=this['editor']['plugins']['get'](d),_0x353680=_0x46acd5&&_0x4736c6['getLaterVisibleRevision'](_0x46acd5['newRevisionId']);this['isEnabled']=_0x41e5c5&&_0x2d28dd&&Boolean(_0x353680);}}class yt extends _0x2f351f{['_step'];constructor(_0x5968b0,{direction:_0x249010}){super(_0x5968b0);const _0x2646ad=_0x5968b0['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x249010?0x1:-0x1,this['listenTo'](_0x2646ad,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2646ad,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2646ad,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x203e1a=this['editor'],_0x40304f=_0x203e1a['plugins']['get'](d),{isNavigationMode:_0x3067ce,currentChangeNumber:_0x4dbd22}=_0x40304f;let _0x22c86f;if(_0x40304f['activeChange']=_0x3067ce?_0x40304f['diff']['changes']['get'](_0x4dbd22+this['_step']):_0x40304f['diff']['changes']['first'],_0x40304f['activeChange']['data']['isOnRoot'])_0x22c86f=_0x203e1a['editing']['view']['getDomRoot'](_0x40304f['activeChange']['rootName']);else{const _0x19dbf8=_0x203e1a['model']['markers']['get']('revision:'+_0x40304f['activeChange']['id']);_0x22c86f=_0x54db46(_0x203e1a['editing'],_0x19dbf8);}_0x30a2cb({'target':_0x22c86f,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4ca879,currentChangeNumber:_0x2fff7e,numberOfChanges:_0x520962,isReady:_0xf84405,isEnabled:_0x14a5d0}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x14a5d0&&_0xf84405&&_0x520962)&&(!_0x4ca879||(0x1===this['_step']?_0x2fff7e<_0x520962-0x1:_0x2fff7e>0x0));}}class di extends _0x376464{constructor(_0x2472da){super(_0x2472da);const _0x44732c=this['bindTemplate'],_0x13e2b2=new _0x58a9b0(_0x2472da),_0x2a7ffe=new _0x58a9b0(_0x2472da);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',(_0x45c4c6,_0x268d45)=>_0x45c4c6&&_0x268d45>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5bdb13,_0x22bd01,_0x3dbf29,_0x8cd7ba)=>{if(!_0x5bdb13)return m(_0x2472da,'Loading...');if(!_0x3dbf29)return m(_0x2472da,'No\x20changes');const _0x5f5490=m(_0x2472da,'NUMBER_OF_CHANGES',_0x3dbf29);return _0x8cd7ba?m(_0x2472da,'X_OF_Y_CHANGES',[_0x22bd01+0x1,_0x3dbf29]):_0x5f5490;}),_0x13e2b2['set']({'label':m(_0x2472da,'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'}),_0x2a7ffe['set']({'label':m(_0x2472da,'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'}),_0x13e2b2['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2a7ffe['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x13e2b2['on']('execute',()=>this['fire']('execute','backward')),_0x2a7ffe['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',_0x44732c['if']('_isStatusLabelVisible','ck-hidden',_0x45e913=>!_0x45e913)]},'children':[{'text':_0x44732c['to']('isNavigationMode',_0x470d64=>_0x470d64?m(_0x2472da,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x2472da,'Total')+':\x20')}]},{'text':_0x44732c['to']('_statusText')}]},new _0x1378c1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x13e2b2,_0x2a7ffe]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x361651{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xe3a8b3=this['editor']['editing']['view'];_0xe3a8b3['change'](_0x13a4d4=>{for(const _0x214ccf of _0xe3a8b3['document']['roots'])_0x13a4d4['addClass'](ce,_0x214ccf);});}['hide'](){const _0x3f8e04=this['editor']['editing']['view'];_0x3f8e04['change'](_0x4bd34c=>{for(const _0x32ab49 of _0x3f8e04['document']['roots'])_0x4bd34c['removeClass'](ce,_0x32ab49);});}}class g extends _0x361651{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x2b7c13=this['editor'],_0x2a2511=_0x2b7c13['plugins']['get'](d),_0x1ccee7=_0x2b7c13['plugins']['get'](ae);_0x2b7c13['ui']['componentFactory']['add']('exitToEditing',_0x391737=>{const _0x3dd70c=new _0x58a9b0(_0x391737);return _0x3dd70c['set']({'label':m(_0x391737,'Back\x20to\x20editing'),'icon':_0x2a914a['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3dd70c,'execute',()=>{_0x2b7c13['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3dd70c;}),_0x2b7c13['ui']['componentFactory']['add']('restoreRevision',_0x29b26c=>{const _0x4b0519=new _0x58a9b0(_0x29b26c);return _0x4b0519['set']({'label':m(_0x29b26c,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4b0519['bind']('isEnabled')['to'](_0x2b7c13['commands']['get']('restoreRevision')),this['listenTo'](_0x4b0519,'execute',()=>_0x2b7c13['execute']('restoreRevision')),_0x4b0519;}),_0x2b7c13['ui']['componentFactory']['add']('changesNavigation',_0x4de4de=>{const _0x288f57=new di(_0x4de4de),_0x24b11e=_0x2b7c13['commands']['get']('showPreviousChange'),_0x3b0ada=_0x2b7c13['commands']['get']('showNextChange');return _0x288f57['bind']('isBackwardNavigationEnabled')['to'](_0x24b11e,'isEnabled'),_0x288f57['bind']('isForwardNavigationEnabled')['to'](_0x3b0ada,'isEnabled'),_0x288f57['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2a2511),this['listenTo'](_0x288f57,'execute',(_0xabc14f,_0x9e6523)=>{_0x2b7c13['execute']('forward'===_0x9e6523?'showNextChange':'showPreviousChange');}),_0x288f57;}),_0x1ccee7['show'](),_0x2a2511['on']('change:isReady',(_0x26fdbd,_0x144e53,_0x2bd47d)=>{_0x2bd47d?_0x1ccee7['hide']():_0x1ccee7['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x2c0582,_0x1403f9){super(_0x2c0582,_0x1403f9);const _0x200e14=this['bindTemplate'];this['set']({'label':m(_0x2c0582,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2c0582,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x200e14['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 _0x1d6537=this['fieldView']['element'];this['_tooltipString']=_0x1d6537['scrollWidth']>_0x1d6537['clientWidth']&&_0x1d6537['value']||'';}}class ti extends _0x376464{constructor(_0x1eccb,_0x5c303c,_0x43c1d6){super(_0x1eccb);const _0x2acd3c=new _0x2719fb();_0x2acd3c['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 _0x2fe993=['ck','ck-revision-history-sidebar__revision-author'];_0x43c1d6&&_0x2fe993['push']('ck-revision-history-sidebar__revision-author_creator');const _0x425121=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1eccb,_0x43c1d6?'Revision\x20creator':'Revision\x20author')},'children':[_0x2acd3c,_0x5c303c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2fe993},'children':_0x425121});}}function ni(_0x399b68,_0xc33545){const _0x3a9a9f=_0x399b68['bindTemplate'],_0x225b78=_0x399b68['locale'],_0x5441f1=_0x11399b(_0x225b78);_0x5441f1['panelPosition']='sw';const _0x5ce047=function(_0x36fc1e,_0x5f9841){const _0x367fec=function(_0x3444e0,_0x43a7f4){const _0x5d0d2f=_0x3444e0['locale'],_0xd059d5={'Compare\x20against\x20selected':m(_0x5d0d2f,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x5d0d2f,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x5d0d2f,'Restore\x20this\x20revision')};return _0x43a7f4['map'](_0x37fe67=>{const _0x577bfc=_0xd059d5[_0x37fe67['name']];return _0x577bfc&&_0x577bfc!==_0x37fe67['name']&&(_0x37fe67['name']=_0x577bfc),_0x37fe67;});}(_0x36fc1e,_0x5f9841),_0x571209=new _0x2ebcff();for(const _0x5da8ad of _0x367fec){const _0xbfa000={'type':'button','model':new to({'label':_0x5da8ad['name'],'class':_0x5da8ad['class'],'withText':!0x0,'role':'menuitem','_action':_0x5da8ad['action']})};_0xbfa000['model']['bind']('isEnabled')['to'](_0x36fc1e,'isActionsDropdownOpen',_0x5e31f0=>'function'!=typeof _0x5da8ad['isEnabled']||(!_0x5e31f0||_0x5da8ad['isEnabled'](_0x36fc1e))),_0x571209['add'](_0xbfa000);}return _0x571209;}(_0x399b68,_0xc33545);return _0x399b68['bind']('isActionsDropdownOpen')['to'](_0x5441f1,'isOpen'),_0x5441f1['buttonView']['set']({'label':m(_0x225b78,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2a914a['threeVerticalDots']}),_0x5441f1['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3a9a9f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3a9a9f['to'](_0x324aa8=>_0x324aa8['stopPropagation']())}}),_0x5441f1['on']('execute',_0x15ed76=>{_0x399b68['isReady']&&'function'==typeof _0x15ed76['source']['_action']&&_0x15ed76['source']['_action'](_0x399b68);}),_0x112459(_0x5441f1,_0x5ce047,{'role':'menu'}),_0x5441f1['listenTo'](_0x399b68,'change:isActionsDropdownOpen',(_0x192d01,_0x477061,_0x533ba9)=>{if(_0x533ba9)for(const _0x5c3a43 of _0x5441f1['listView']['items']){const _0x3e77d6=_0x5c3a43['children']['first'],_0x229594=_0xc33545['find'](_0x795cbe=>_0x795cbe['action']===_0x3e77d6['_action'])['isVisible'];_0x5c3a43['isVisible']=void 0x0===_0x229594||_0x229594(_0x399b68);}}),_0x5441f1;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x3eb80d(_0x376464){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x26bb7a,_0x67d3c3,_0x2d4985,_0x227d9f){super(_0x26bb7a);const _0x20e3ec=this['bindTemplate'],_0x33d243=function(_0x2a7989,_0x3ff5cf){const _0x456cde=Array['from'](_0x3ff5cf['authors'])['filter'](_0x55aff4=>_0x55aff4!=_0x3ff5cf['creator']);return _0x3ff5cf['creator']&&_0x456cde['unshift'](_0x3ff5cf['creator']),_0x456cde['map'](_0x53dc6f=>new ti(_0x2a7989,_0x53dc6f,_0x53dc6f==_0x3ff5cf['creator']));}(_0x26bb7a,_0x67d3c3);this['id']=_0x67d3c3['id'],this['_revision']=_0x67d3c3,this['_requireRevisionName']=_0x227d9f,this['bind']('name','createdAt')['to'](_0x67d3c3),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x44f2a0=>{return _0xb9516b=_0x26bb7a['uiLanguage'],(_0x2c3d13=_0x44f2a0)['toLocaleDateString'](_0xb9516b,{'month':'long','day':'numeric'})+',\x20'+_0x2c3d13['toLocaleTimeString'](_0xb9516b,{'hour':'numeric','minute':'numeric'});var _0xb9516b,_0x2c3d13;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x26bb7a,_0xcbfa91),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xacd4a7=>_0xacd4a7||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x30e4f6,_0x4774f6)=>_0x30e4f6&&_0x4774f6),this['revisionActionsView']=_0x2d4985&&_0x2d4985['length']?ni(this,_0x2d4985):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x20e3ec['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x20e3ec['if']('isEnabled','ck-disabled',_0x4b3ba8=>!_0x4b3ba8),_0x20e3ec['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x20e3ec['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x20e3ec['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':_0x20e3ec['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':_0x33d243}]},this['revisionActionsView']],'on':{'click':_0x20e3ec['to'](_0x1153fd=>{_0x1153fd['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1ce05c=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1ce05c,'change',()=>{this['_requireRevisionName']&&!_0x1ce05c['value']||this['fire']('setName',{'id':this['id'],'name':_0x1ce05c['value']}),_0x1ce05c['value']||(_0x1ce05c['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x1e4ee5,_0xb4a7e){const _0x168cb2=_0x76f8d3['fromJSDate'](_0x1e4ee5)['setLocale'](_0xb4a7e),_0x2abea1=_0x76f8d3['local'](),_0x1f3883=_0x2abea1['minus']({'days':0x1})['startOf']('day');let _0x366774,_0x3b353a;return _0x168cb2['hasSame'](_0x2abea1,'day')?(_0x366774=_0x168cb2['startOf']('day')['toJSDate'](),_0x3b353a=_0x168cb2['toRelativeCalendar']()):_0x168cb2['hasSame'](_0x1f3883,'day')?(_0x366774=_0x1f3883['toJSDate'](),_0x3b353a=_0x168cb2['toRelativeCalendar']()):_0x168cb2['hasSame'](_0x2abea1,'week')?(_0x366774=_0x168cb2['startOf']('week')['toJSDate'](),_0x3b353a=_0x168cb2['weekdayLong']||''):_0x168cb2['hasSame'](_0x2abea1,'year')?(_0x366774=_0x168cb2['startOf']('month')['toJSDate'](),_0x3b353a=_0x168cb2['monthLong']||''):(_0x366774=_0x168cb2['startOf']('year')['toJSDate'](),_0x3b353a=String(_0x168cb2['year'])),{'startDate':_0x366774,'localizedPeriodName':_0x3b353a};}class vi extends _0x376464{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3f7e96,_0x522bec,_0x43a665,_0x24e6a1){super(_0x3f7e96);const _0x521df9=mi(_0x522bec,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x522bec,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x43a665,this['_requireRevisionName']=_0x24e6a1,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':_0x521df9}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x1aae78){const _0x5b3c22=new ai(this['locale'],_0x1aae78,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5b3c22);}['removeRevision'](_0x29e749){const _0x395eba=this['revisionViews']['find'](_0x3ae59e=>_0x3ae59e['id']===_0x29e749['id']);this['revisionViews']['remove'](_0x395eba);}}class as extends _0x376464{constructor(_0x46fadf){super(_0x46fadf);const _0x47dc22=new _0x2719fb();_0x47dc22['content']=_0x2a914a['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x47dc22,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x46fadf,'Revision\x20history')]}]});}}class li extends _0x376464{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x50dc19,_0xd34c4c,_0x36834f,_0x2fe205){super(_0x50dc19);const _0x191946=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xd34c4c,this['_revisionActions']=_0x36834f,this['_requireRevisionName']=_0x2fe205,this['on']('select',(_0x3ba2ef,_0x4a0719)=>{this['fire']('revisionSelected',_0x4a0719);}),this['on']('setName',(_0x307400,_0x39817d)=>{this['fire']('revisionSetName',_0x39817d);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x50dc19),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x191946['if']('isEnabled','ck-disabled',_0x2d0e3f=>!_0x2d0e3f)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x55d840 of this['_revisions'])this['_addRevision'](_0x55d840);this['_revisions']['on']('add',(_0x4c456d,_0xfd286e)=>{this['_addRevision'](_0xfd286e);}),this['_revisions']['on']('remove',(_0x2c854e,_0x471998)=>{this['_removeRevision'](_0x471998);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5f06f0=>_0x5f06f0['revisionViews']['map'](_0xccd806=>_0xccd806))['flat']();}['selectRevision'](_0x2b7983){for(const _0x891189 of this['revisionViews'])_0x2b7983&&_0x2b7983['id']===_0x891189['id']?_0x891189['select']():_0x891189['deselect']();}['highlightRevisions'](_0x58c696){for(const _0x1c269c of this['revisionViews'])_0x58c696['some'](({id:_0x213ee0})=>_0x213ee0===_0x1c269c['id'])?_0x1c269c['highlight']():_0x1c269c['unhighlight']();}['_addRevision'](_0x665aab){const _0x56efd0=mi(_0x665aab['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x478380=this['timePeriodViews']['get'](0x0);_0x478380&&_0x478380['startDate']['getTime']()===_0x56efd0['getTime']()||(_0x478380=new vi(this['locale'],_0x56efd0,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x478380)),_0x478380['addRevision'](_0x665aab);}['_removeRevision'](_0x9191a2){const _0x15b5ed=mi(_0x9191a2['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x15b5ed)['removeRevision'](_0x9191a2);}['_getTimePeriodViewByStartDate'](_0x2af58b){return this['timePeriodViews']['find'](_0x4b37e4=>_0x4b37e4['startDate']['getTime']()===_0x2af58b['getTime']());}}class w extends _0x361651{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x383f40,uid as _0x66ae84,Collection as _0x4367e2,logWarning as _0x1bfd1b,FocusTracker as _0x5b1edb,KeystrokeHandler as _0x2bf539,scrollViewportToShowTarget as _0x47297b,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0x49f1f6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x100481,set as _0x1963f5,unset as _0x12c8e7,isEqual as _0x458fad}from'lodash-es';import{Plugin as _0x31326a,PendingActions as _0xa01518,icons as _0x57512f,Command as _0x2e9ea6,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x29bc02,getMarkerDomElement as _0x4ddfb7,ConfirmMixin as ti,sanitizeEditorConfig as _0x56c44c}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x401b7e,Element as ft,Range as vt,ViewUIElement as _0x2e1c5d,ViewRawElement as _0xcfd9dc,ViewEmptyElement as _0x2b42de,ViewAttributeElement as _0x17eac4,ViewContainerElement as _0x455d52,Position as gt,ViewText as _0x20e0cf,ViewElement as _0x2516e6,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5e44da,submitHandler as _0x38ae6b,LabeledFieldView as _0x31f44d,createLabeledInputText as _0x22ab74,createDropdown as _0x10173a,ListView as _0x32ec06,ListItemView as _0x1c24fb,ButtonView as te,MenuBarMenuView as _0x13a10c,MenuBarMenuListView as _0x9b0c60,MenuBarMenuListItemView as _0x10f968,MenuBarMenuListItemButtonView as _0x112fc5,ContextualBalloon as _0x416265,ToolbarSeparatorView as _0x312ecc,IconView as _0x316f4d,addListToDropdown as to,ViewModel as _0x290497,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 _0x5afbc8}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x383f40(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x38fee1){super(),this['id']=_0x38fee1['id']||_0x66ae84(),this['creator']=_0x38fee1['creator']||null,this['authors']=_0x38fee1['authors']||[],this['diffData']=_0x38fee1['diffData']||null,this['toVersion']=_0x38fee1['toVersion']||0x0,this['fromVersion']=_0x38fee1['fromVersion']||0x0,this['set']('name',_0x38fee1['name']||''),this['set']('createdAt',_0x38fee1['createdAt']||new Date()),this['set']('attributes',_0x38fee1['attributes']||{});}['setName'](_0x32e487){this['_update']({'name':_0x32e487});}['setAttribute'](_0xd699d1,_0x196b59){const _0x2b65da=_0x100481(this['attributes']);_0x1963f5(_0x2b65da,_0xd699d1,_0x196b59),this['_update']({'attributes':_0x2b65da});}['removeAttribute'](_0xd809e5){const _0x425113=_0x100481(this['attributes']);_0x12c8e7(_0x425113,_0xd809e5),this['_update']({'attributes':_0x425113});}['_update'](_0x426292,_0x25432f=!0x1){let _0x119394=!0x1;const _0x2caa1={'id':this['id']},_0x2d975f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5a8cce of _0x2d975f){const _0x51ef99=_0x426292[_0x5a8cce];void 0x0!==_0x51ef99&&_0x51ef99!==this[_0x5a8cce]&&(this[_0x5a8cce]=_0x51ef99,_0x2caa1[_0x5a8cce]=_0x51ef99,_0x119394=!0x0);}_0x119394&&(_0x2caa1['authors']&&(_0x2caa1['authorsIds']=_0x2caa1['authors']['map'](_0x40b46a=>_0x40b46a['id']),delete _0x2caa1['authors']),this['fire']('_update',_0x2caa1,_0x25432f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3778c4=>_0x3778c4['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x31326a{['_revisions'];static get['requires'](){return[_0x29bc02];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5d2593){super(_0x5d2593),this['_revisions']=new _0x4367e2();}['afterInit'](){!async function(_0xbbc38c){const _0x486948=_0x579edd([0x6b,0x57,0x58,0x73,0x72,0x64,0x4a,0x52,0x6f,0x66,0x50,0x32,0x38,0x68,0x53,0x44,0x30,0x55,0x6a,0x54,0x69,0x49,0x56,0x75,0x78,0x35,0x34,0x51,0x59,0x37,0x67,0x4e,0x5a,0x4d,0x76,0x42,0x77,0x4f,0x6e,0x6d,0x74,0x39,0x31,0x79,0x36,0x43,0x61,0x33,0x7a,0x4b,0x45,0x6c,0x41,0x4c,0x47,0x62,0x48,0x70,0x63,0x46,0x71,0x65]),_0x4481d6=0xeb829,_0x1d7c24=0x7d0260ab,_0x5f4728=0x7d050063^_0x1d7c24,_0x102eab=window[_0x579edd([0x44,0x61,0x74,0x65])][_0x579edd([0x6e,0x6f,0x77])](),_0x166e27=_0xbbc38c[_0x579edd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf7fd8f=new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x540f6a=>{_0x166e27[_0x579edd([0x6f,0x6e,0x63,0x65])](_0x579edd([0x72,0x65,0x61,0x64,0x79]),_0x540f6a);}),_0x3dc5e5={[_0x579edd([0x6b,0x74,0x79])]:_0x579edd([0x45,0x43]),[_0x579edd([0x75,0x73,0x65])]:_0x579edd([0x73,0x69,0x67]),[_0x579edd([0x63,0x72,0x76])]:_0x579edd([0x50,0x2d,0x32,0x35,0x36]),[_0x579edd([0x78])]:_0x579edd([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]),[_0x579edd([0x79])]:_0x579edd([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]),[_0x579edd([0x61,0x6c,0x67])]:_0x579edd([0x45,0x53,0x32,0x35,0x36])},_0x391f2a=_0x166e27[_0x579edd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x579edd([0x67,0x65,0x74])](_0x579edd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3de876(){let _0x6f3de1,_0x29c80f=null,_0x2ccd09=null;try{if(_0x391f2a==_0x579edd([0x47,0x50,0x4c]))return _0x579edd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x6f3de1=_0x590314(),!_0x6f3de1)return _0x579edd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x6f3de1[_0x579edd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ccd09=_0x1862e6(_0x6f3de1[_0x579edd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x6f3de1[_0x579edd([0x6a,0x74,0x69])])),await _0x59708f()?_0x1c07f9()?_0x1a34eb()?_0x579edd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x911746()?(_0x6f3de1[_0x579edd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x579edd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29c80f=_0x2846ef(_0x579edd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x6f3de1[_0x579edd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x579edd([0x74,0x72,0x69,0x61,0x6c])&&(_0x29c80f=_0x2846ef(_0x579edd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34ba21()):_0x579edd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x579edd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x579edd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5e4c3c){return _0x579edd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a34eb(){const _0x46fa7c=[_0x579edd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x579edd([0x74,0x72,0x69,0x61,0x6c])][_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6f3de1[_0x579edd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x102eab/0x3e8:0xe10*_0x5f4728;return _0x6f3de1[_0x579edd([0x65,0x78,0x70])]<_0x46fa7c;}function _0x1c07f9(){const _0x465e2c=_0x6f3de1[_0x579edd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x465e2c)return!0x1;if(_0x465e2c[_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x579edd([0x2a])))return!0x0;if(_0x465e2c[_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x579edd([0x52,0x48])))return!0x0;if(_0x465e2c[_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x579edd([0x52,0x52,0x48]))){if(_0x168f83())return!0x0;if(_0x210afe()||_0x4d3ac2())return!0x0;}return!0x1;}function _0x911746(){const _0x430d37=_0x6f3de1[_0x579edd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x430d37||0x0==_0x430d37[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b8269}=new URL(window[_0x579edd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x430d37[_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b8269))return!0x0;const _0x117b44=_0x5b8269[_0x579edd([0x73,0x70,0x6c,0x69,0x74])](_0x579edd([0x2e]));return _0x430d37[_0x579edd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39df86=>_0x39df86[_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x579edd([0x2a])))[_0x579edd([0x6d,0x61,0x70])](_0x959223=>_0x959223[_0x579edd([0x73,0x70,0x6c,0x69,0x74])](_0x579edd([0x2e])))[_0x579edd([0x73,0x6f,0x6d,0x65])](_0x445e4c=>_0x117b44[_0x579edd([0x65,0x76,0x65,0x72,0x79])]((_0x2c3f43,_0x1d079d)=>_0x445e4c[_0x1d079d]===_0x2c3f43||_0x445e4c[_0x1d079d]===_0x579edd([0x2a])));}function _0x34ba21(){return _0x29c80f&&_0x2ccd09?new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ae69f,_0x4ef442)=>{_0x29c80f[_0x579edd([0x74,0x68,0x65,0x6e])](_0x3ae69f,_0x4ef442),_0x2ccd09[_0x579edd([0x74,0x68,0x65,0x6e])](_0x117a94=>{_0x117a94!=_0x579edd([0x56,0x61,0x6c,0x69,0x64])&&_0x3ae69f(_0x117a94);},_0x4ef442);}):_0x29c80f||_0x2ccd09||_0x579edd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1862e6(_0x199a49,_0xa2171c){return new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x459088=>{if(_0x5606b6())return _0x459088(_0x579edd([0x56,0x61,0x6c,0x69,0x64]));_0x6a3fff(),_0x166e27[_0x579edd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x579edd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x124ce9=!0x1;const _0x3fa431=_0x66ae84();function _0x5161fa(_0x41499e){return!!_0x41499e&&(typeof _0x41499e===_0x579edd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41499e===_0x579edd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41499e[_0x579edd([0x74,0x68,0x65,0x6e])]===_0x579edd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41499e[_0x579edd([0x63,0x61,0x74,0x63,0x68])]===_0x579edd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59688d(_0x3595db){_0x2530fb(_0x3595db)[_0x579edd([0x74,0x68,0x65,0x6e])](_0x480979=>{if(!_0x480979||_0x480979[_0x579edd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x579edd([0x6f,0x6b]))return _0x579edd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3c0dab(_0x3b5958(_0x3fa431+_0xa2171c))!=_0x480979[_0x579edd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x579edd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x579edd([0x56,0x61,0x6c,0x69,0x64]);})[_0x579edd([0x74,0x68,0x65,0x6e])](_0x41ca2b=>(_0x1adcc1(),_0x41ca2b),()=>{const _0x261065=_0x177fa7();return null==_0x261065?(_0x1adcc1(),_0x579edd([0x56,0x61,0x6c,0x69,0x64])):_0x579edd(_0x102eab-_0x261065>(0x590ee4ab^_0x1d7c24)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x579edd([0x74,0x68,0x65,0x6e])](_0x459088)[_0x579edd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x459088(_0x579edd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4f4f77=0x7d348e2b^_0x1d7c24;function _0x1adcc1(){const _0x545920=_0x579edd([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c0dab(_0x3b5958(_0x199a49)),_0xa9bf3f=_0x4e14bd(_0x3c0dab(window[_0x579edd([0x4d,0x61,0x74,0x68])][_0x579edd([0x63,0x65,0x69,0x6c])](_0x102eab/_0x4f4f77)));window[_0x579edd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x579edd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x545920,_0xa9bf3f);}function _0x177fa7(){const _0x7a383=_0x579edd([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c0dab(_0x3b5958(_0x199a49)),_0x5623bd=window[_0x579edd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x579edd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7a383);return _0x5623bd?window[_0x579edd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e14bd(_0x5623bd),0x10)*_0x4f4f77:null;}function _0x2530fb(_0x579eea){return new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b3b55,_0x1862a1)=>{_0x579eea[_0x579edd([0x74,0x68,0x65,0x6e])](_0x4b3b55,_0x1862a1),window[_0x579edd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1862a1,0x7d03b46b^_0x1d7c24);});}}_0x166e27[_0x579edd([0x6f,0x6e])](_0x579edd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c7040,_0x5a183c)=>{if(_0x5a183c[0x0]!=_0x199a49)return _0x459088(_0x579edd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a183c[0x1]={..._0x5a183c[0x1],[_0x579edd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3fa431};},{[_0x579edd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x579edd([0x68,0x69,0x67,0x68])}),_0x166e27[_0x579edd([0x6f,0x6e])](_0x579edd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43ea9b=>{_0x5161fa(_0x43ea9b[_0x579edd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x124ce9=!0x0,_0x59688d(_0x43ea9b[_0x579edd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x579edd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x579edd([0x6c,0x6f,0x77])}),_0xf7fd8f[_0x579edd([0x74,0x68,0x65,0x6e])](()=>{_0x124ce9||_0x459088(_0x579edd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5606b6(){return _0x166e27[_0x579edd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x579edd([0x76,0x69,0x65,0x77])][_0x579edd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x579edd([0x61,0x75,0x74,0x6f]);}function _0x6a3fff(){_0x166e27[_0x579edd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x579edd([0x76,0x69,0x65,0x77])][_0x579edd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x579edd([0x61,0x75,0x74,0x6f]);}}function _0x2846ef(_0x1015a0){const _0x17894e=[new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcd1764=>setTimeout(_0xcd1764,0x7d0b5e67^_0x1d7c24)),_0xf7fd8f[_0x579edd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19a225=>{const _0x207689=0x7d0260ac^_0x1d7c24,_0x334d50=_0xbbc38c[_0x579edd([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x28231a(){_0x334d50[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x207689&&_0x19a225();}_0x28231a(),_0x334d50[_0x579edd([0x6f,0x6e])](_0x579edd([0x61,0x64,0x64]),_0x28231a);})),new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14dd08=>{function _0x184a72(){for(const _0x6bf667 in window)if(window[_0x579edd([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x579edd([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x6bf667))&&window[_0x6bf667]==_0x4481d6)return _0x14dd08();_0x166e27[_0x579edd([0x73,0x74,0x61,0x74,0x65])]!=_0x579edd([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x579edd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x184a72,0x7d027323^_0x1d7c24);}_0x2271cc(_0x579edd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x184a72();})];return window[_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x579edd([0x72,0x61,0x63,0x65])](_0x17894e)[_0x579edd([0x74,0x68,0x65,0x6e])](()=>_0x1015a0);}async function _0x41132f(){if(await _0xf7fd8f,_0x2271cc(_0x579edd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x13ee4f=_0xbbc38c[_0x579edd([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x304d7e=_0xbbc38c[_0x579edd([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])](_0x13ee4f[_0x579edd([0x69,0x64])]),_0x262745=_0x140aee(_0x579edd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x262745[_0x579edd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x13ee4f['id'],_0x304d7e?_0x304d7e['id']:null,!0x0),_0x262745[_0x579edd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x579edd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x262745[_0x579edd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x262745[_0x579edd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xcbbfc0,void(_0x262745[_0x579edd([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xcbbfc0);}if(_0x2271cc(_0x579edd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x15a018=_0x140aee(_0x579edd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x15a018[_0x579edd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x579edd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x15a018[_0x579edd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x15a018[_0x579edd([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xcbbfc0,_0x15a018[_0x579edd([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xcbbfc0;}_0x166e27[_0x579edd([0x6d,0x6f,0x64,0x65,0x6c])][_0x579edd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xcbbfc0,_0x166e27[_0x579edd([0x6d,0x6f,0x64,0x65,0x6c])][_0x579edd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xcbbfc0,_0x166e27[_0x579edd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x579edd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x168f83(){return _0x2271cc(_0x579edd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x140aee(_0x579edd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x579edd([0x73,0x74,0x61,0x74,0x65])]==_0x579edd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x210afe(){return _0x2271cc(_0x579edd([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 _0x4d3ac2(){return _0x2271cc(_0x579edd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3357b7(_0xeacaec){const _0x3d267d=_0x316cc7();_0x166e27[_0x3d267d]=_0x579edd([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])+_0xeacaec,_0xeacaec[_0x579edd([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x579edd([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x316cc7()]=_0x4481d6),_0xeacaec!=_0x579edd([0x56,0x61,0x6c,0x69,0x64])&&_0x41132f();}function _0x316cc7(){const _0x45ccbd=window[_0x579edd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x579edd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x579edd([0x6e,0x6f,0x77])]())[_0x579edd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x579edd([0x2e]),'');let _0x2cba48=_0x579edd([0x6b]);for(let _0xebe1c2=0x0;_0xebe1c2<_0x45ccbd[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xebe1c2+=0x2){let _0x42b94e=window[_0x579edd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45ccbd[_0x579edd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xebe1c2,_0xebe1c2+0x2));_0x42b94e>=_0x486948[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42b94e-=_0x486948[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2cba48+=_0x486948[_0x42b94e];}return _0x2cba48;}function _0x590314(){const _0x1c9925=_0x391f2a[_0x579edd([0x73,0x70,0x6c,0x69,0x74])](_0x579edd([0x2e]));if(0x3!=_0x1c9925[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37e304(_0x1c9925[0x1]);function _0x37e304(_0x30571e){const _0x5c4c83=_0x40c54f(_0x30571e);return _0x5c4c83&&_0x1a2a42()?_0x5c4c83:null;function _0x1a2a42(){const _0xcefff7=_0x5c4c83[_0x579edd([0x6a,0x74,0x69])],_0x4a4130=window[_0x579edd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcefff7[_0x579edd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcefff7[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x902d9c={..._0x5c4c83,[_0x579edd([0x6a,0x74,0x69])]:_0xcefff7[_0x579edd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xcefff7[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x902d9c[_0x579edd([0x76,0x63])],_0x3b5958(_0x902d9c)==_0x4a4130;}}}async function _0x59708f(){let _0x4e6656=!0x0;try{const _0x28b1a8=_0x391f2a[_0x579edd([0x73,0x70,0x6c,0x69,0x74])](_0x579edd([0x2e])),[_0x4b3c01,_0xb005e1,_0xc938f2]=_0x28b1a8;return _0x1b90ce(_0x4b3c01),await _0x47aa8e(_0x4b3c01,_0xb005e1,_0xc938f2),_0x4e6656;}catch(_0x4796e9){return!0x1;}function _0x1b90ce(_0x2ca16a){const _0x160f2c=_0x40c54f(_0x2ca16a);_0x160f2c&&_0x160f2c[_0x579edd([0x61,0x6c,0x67])]==_0x579edd([0x45,0x53,0x32,0x35,0x36])||(_0x4e6656=!0x1);}async function _0x47aa8e(_0x226453,_0x3ab079,_0x304b5c){const _0x2d8b67=window[_0x579edd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x579edd([0x66,0x72,0x6f,0x6d])](_0xa0a1b5(_0x304b5c),_0x4f6520=>_0x4f6520[_0x579edd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4cb5fe=new window[(_0x579edd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x579edd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x226453+_0x579edd([0x2e])+_0x3ab079),_0x2e2db7=window[_0x579edd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x579edd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e2db7)return;const _0x302830=await _0x2e2db7[_0x579edd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x579edd([0x6a,0x77,0x6b]),_0x3dc5e5,{[_0x579edd([0x6e,0x61,0x6d,0x65])]:_0x579edd([0x45,0x43,0x44,0x53,0x41]),[_0x579edd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x579edd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x579edd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e2db7[_0x579edd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x579edd([0x6e,0x61,0x6d,0x65])]:_0x579edd([0x45,0x43,0x44,0x53,0x41]),[_0x579edd([0x68,0x61,0x73,0x68])]:{[_0x579edd([0x6e,0x61,0x6d,0x65])]:_0x579edd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x302830,_0x2d8b67,_0x4cb5fe)||(_0x4e6656=!0x1);}}function _0x40c54f(_0x5b8bfd){return _0x5b8bfd[_0x579edd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x579edd([0x65,0x79]))?JSON[_0x579edd([0x70,0x61,0x72,0x73,0x65])](_0xa0a1b5(_0x5b8bfd)):null;}function _0xa0a1b5(_0x472d64){return window[_0x579edd([0x61,0x74,0x6f,0x62])](_0x472d64[_0x579edd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x579edd([0x2b]))[_0x579edd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x579edd([0x2f])));}function _0x3b5958(_0x2f5ce5){let _0x37a627=0x1505;function _0x137bcf(_0x4576c4){for(let _0xb24aec=0x0;_0xb24aec<_0x4576c4[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb24aec++){const _0x26d5e6=_0x4576c4[_0x579edd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xb24aec);_0x37a627=(_0x37a627<<0x5)+_0x37a627+_0x26d5e6,_0x37a627&=_0x37a627;}}function _0x196f62(_0x2821e8){Array[_0x579edd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2821e8)?_0x2821e8[_0x579edd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x196f62):_0x2821e8&&typeof _0x2821e8==_0x579edd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x579edd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2821e8)[_0x579edd([0x73,0x6f,0x72,0x74])]()[_0x579edd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x366fac,_0x3b528d])=>{_0x137bcf(_0x366fac),_0x196f62(_0x3b528d);}):_0x137bcf(window[_0x579edd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2821e8));}return _0x196f62(_0x2f5ce5),_0x37a627>>>0x0;}function _0x3c0dab(_0x28f0e6){return _0x28f0e6[_0x579edd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x579edd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x579edd([0x30]));}function _0x4e14bd(_0x10a8e7){return _0x10a8e7[_0x579edd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x579edd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x579edd([0x6a,0x6f,0x69,0x6e])]('');}function _0x2271cc(_0x69f925){return _0x166e27[_0x579edd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x579edd([0x68,0x61,0x73])](_0x69f925);}function _0x140aee(_0x3fae24){return _0x166e27[_0x579edd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x579edd([0x67,0x65,0x74])](_0x3fae24);}function _0xcbbfc0(){}function _0x579edd(_0x150518){return _0x150518['map'](_0x291275=>String['fromCharCode'](_0x291275))['join']('');}_0x3357b7(await _0x3de876());}(this);}['createRevision'](_0x1d3d16){const _0x10554f=this['editor']['plugins']['get']('Users');return new a({'id':_0x1d3d16['id'],'name':_0x1d3d16['name'],'creator':_0x1d3d16['creatorId']?_0x10554f['getUser'](_0x1d3d16['creatorId']):null,'diffData':_0x1d3d16['diffData']||_0x1d3d16['data'],'authors':_0x1d3d16['authorsIds']['map'](_0x5c6b56=>_0x10554f['getUser'](_0x5c6b56)),'createdAt':new Date(_0x1d3d16['createdAt']),'attributes':_0x1d3d16['attributes'],'fromVersion':_0x1d3d16['fromVersion'],'toVersion':_0x1d3d16['toVersion']});}['addRevision'](_0x40a428,_0x2190c4=0x0){this['_revisions']['add'](_0x40a428,_0x2190c4);}['getRevision'](_0x7b7d2f){return this['_revisions']['get'](_0x7b7d2f);}['getRevisions'](_0x5055e7={'toJSON':!0x1}){const _0x25b5d6=Array['from'](this['_revisions']);return _0x25b5d6['reverse'](),_0x5055e7['toJSON']?_0x25b5d6['map'](_0x27b313=>_0x27b313['toJSON']()):_0x25b5d6;}['getIndex'](_0xe71420){return this['_revisions']['getIndex'](_0xe71420);}['getEarlierVisibleRevision'](_0x4a3bfd){const [,_0x413c78]=this['getRevisionsIterator'](_0x4a3bfd,{'direction':'earlier'});return _0x413c78;}['getLaterVisibleRevision'](_0x539f72){const [,_0x596294]=this['getRevisionsIterator'](_0x539f72,{'direction':'later'});return _0x596294;}['getRevisionsInDiff'](_0x4f217b){const _0xa17323=[];for(const _0x35b0ce of this['getRevisionsIterator'](_0x4f217b['newRevisionId']))if(_0xa17323['push'](_0x35b0ce),_0x35b0ce['id']===_0x4f217b['oldRevisionId'])break;return _0xa17323;}*['getRevisionsIterator'](_0x418577,{direction:_0x260ce9='earlier',filter:_0x118485=()=>!0x0}={}){const _0x42f433='earlier'===_0x260ce9?0x1:-0x1;let _0x118709=this['_revisions']['get'](_0x418577),_0x57ae15=this['getIndex'](_0x118709);for(yield _0x118709;_0x118709;){if(_0x57ae15+=_0x42f433,_0x118709=this['getRevision'](_0x57ae15),!_0x118709)return;_0x118485(_0x118709)&&(yield _0x118709);}}}function m(_0x588777,_0x4ee616,_0x561126){const t=_0x588777['t'];switch(_0x4ee616){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'},_0x561126);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x561126);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':_0x455d52,'a':_0x17eac4,'e':_0x2b42de,'r':_0xcfd9dc,'u':_0x2e1c5d};class l extends _0x31326a{['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[_0x29bc02,j,_0xa01518];}constructor(_0x11e749){super(_0x11e749),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 _0x41082e=_0x66ae84();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x41082e},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 _0x594fc7=this['repository']['getRevision'](0x0),_0x18b1c1=_0x594fc7&&null===_0x594fc7['creator']?_0x594fc7:null;if(this['_continueCurrentRevision']=!!_0x18b1c1&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x525a40=this['_source']['getCurrentRevisionId'](),_0x257166=this['repository']['getRevision'](_0x525a40);if(_0x257166)this['_startingVersion']=_0x257166['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2fbe4d=this['_source']['history']['_operations']['find'](_0x1a9c82=>!_0x1a9c82['_isInit']),_0x4eb162=_0x2fbe4d?_0x2fbe4d['baseVersion']:this['_source']['history']['version'];_0x594fc7?(_0x594fc7['toVersion']<_0x4eb162&&_0x594fc7['_update']({'toVersion':_0x4eb162}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x18b1c1['id'],this['_startingVersion']=_0x18b1c1['fromVersion']):(this['_startingVersion']=_0x594fc7['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4eb162,this['_continueCurrentRevision']=!0x1);}}else _0x18b1c1&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x18b1c1['toVersion'],this['editor']['model']['document']['history']['version']),_0x18b1c1['fromVersion']===_0x18b1c1['toVersion']?(0x0!==_0x18b1c1['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x18b1c1['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x18b1c1['id'],this['_startingVersion']=_0x18b1c1['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',_0x79d27c=>!_0x79d27c),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x327503=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x519d49;for(const _0x7152db in _0x327503){const _0x51d8b4=_0x7152db,_0x5d2ca8=_0x327503[_0x51d8b4];if('revisionHistoryLicenseKeyValid'==_0x5d2ca8||'revisionHistoryLicenseKeyInvalid'==_0x5d2ca8||'revisionHistoryLicenseKeyExpired'==_0x5d2ca8||'revisionHistoryLicenseKeyDomainLimit'==_0x5d2ca8||'revisionHistoryLicenseKeyNotAllowed'==_0x5d2ca8||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5d2ca8||'revisionHistoryLicenseKeyTrialLimit'==_0x5d2ca8||'revisionHistoryLicenseKeyUsageLimit'==_0x5d2ca8){delete _0x327503[_0x51d8b4],_0x519d49=_0x5d2ca8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x519d49&&_0x327503['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x519d49&&_0x327503['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x519d49&&_0x327503['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x519d49&&_0x327503['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x519d49&&_0x327503['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x519d49&&_0x327503['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x519d49&&_0x327503['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3d4078=this['repository']['getRevision'](0x0),_0x31b27d=await this['getRevisionDocumentData'](_0x3d4078),_0x11d19a=await this['getRevisionRootsAttributes'](_0x3d4078);this['_replaceEditorDataWithRevisionData'](_0x31b27d,_0x11d19a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x135419){this['_source']=_0x135419;}async['update'](){const _0x292e22=await this['_source']['getLatestVersion']();if(_0x292e22>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5a6e59=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x292e22});_0x5a6e59['authors']=_0x5a6e59['authorsIds']['map'](_0x501d54=>this['editor']['plugins']['get']('Users')['getUser'](_0x501d54)),this['currentRevision']['_update'](_0x5a6e59);}}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'](_0x30b2bd={},_0x9fd8c8=null){const _0x3e75ac=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x9fd8c8>this['currentRevision']['toVersion']&&(_0x9fd8c8=null),null===_0x9fd8c8&&(_0x9fd8c8=await this['_source']['getLatestVersion']());const _0x272b13=this['_getFromVersion'](_0x9fd8c8),_0x228cae=this['buildRevisionData']({'from':_0x272b13,'to':_0x9fd8c8});if(this['currentRevision']['toVersion']<_0x9fd8c8){const _0xa4d5bb=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x9fd8c8,'to':_0x9fd8c8});_0xa4d5bb['authors']=[],_0xa4d5bb['authorsIds']=[],_0xa4d5bb['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xa4d5bb,!0x0),delete _0xa4d5bb['authors'],_0x3e75ac['push'](_0xa4d5bb);}_0x30b2bd['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x30b2bd['name']=_0x30b2bd['name']||null,_0x30b2bd['id']=_0x30b2bd['id']||_0x66ae84(),_0x30b2bd={..._0x30b2bd,..._0x228cae};const _0x18b169=this['addRevisionData'](_0x30b2bd);_0x3e75ac['push'](_0x30b2bd);const _0x47d397=this['repository']['getIndex'](_0x18b169);if(0x0!==_0x47d397){const _0x41edca=this['repository']['getRevision'](_0x47d397-0x1);if(_0x41edca['fromVersion']!==_0x9fd8c8){const _0x3b50f3=this['_revisionDataBuilder']['getData'](_0x9fd8c8,_0x41edca['toVersion']),_0x255c11={'id':_0x41edca['id'],'diffData':_0x3b50f3['diffData'],'authorsIds':_0x3b50f3['authorsIds'],'authors':_0x3b50f3['authorsIds']['map'](_0x32b02d=>this['editor']['plugins']['get']('Users')['getUser'](_0x32b02d)),'fromVersion':_0x9fd8c8};_0x41edca===this['currentRevision']&&(_0x255c11['createdAt']=new Date(_0x30b2bd['createdAt']['getTime']()+0xa)),_0x41edca['_update'](_0x255c11,!0x0),delete _0x255c11['authors'],_0x3e75ac['push'](_0x255c11);}}if(this['adapter']){for(const _0x1bf369 of _0x3e75ac)this['_bufferUpdate'](_0x1bf369['id'],_0x1bf369,!0x0);this['sendBufferedUpdates']();}return _0x18b169;}['addRevisionData'](_0x798c91){const _0x49d589=this['repository']['createRevision'](_0x798c91);return this['adapter']&&_0x49d589['on']('_update',(_0x425690,_0x11f585,_0x1610f8)=>{_0x1610f8||(this['_bufferUpdate'](_0x11f585['id'],_0x11f585,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x49d589,this['_findInsertionIndex'](_0x49d589)),_0x49d589;}async['getRevisionDocumentData'](_0x334bbc){await this['_loadRevisionData'](_0x334bbc);const _0x118a83={};for(const _0x49dfab in _0x334bbc['diffData']){if(_0x334bbc['diffData'][_0x49dfab]['attachChange']&&!_0x334bbc['diffData'][_0x49dfab]['attachChange']['isAttached'])continue;const _0x48d80b=this['_removeRevisionMarkers'](JSON['parse'](_0x334bbc['diffData'][_0x49dfab]['insertions'])),_0x56f3d9=this['editor']['editing']['view']['document'],_0x30884a=new _0x401b7e(_0x56f3d9,_0x48d80b['map'](_0x9a01a=>C(_0x9a01a,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x118a83[_0x49dfab]=this['editor']['data']['processor']['toData'](_0x30884a),this['editor']['data']['processor']['useFillerType']('default');}return _0x118a83;}async['getRevisionRootsAttributes'](_0x5b41b8){await this['_loadRevisionData'](_0x5b41b8);const _0x3bd129={};for(const _0x2ecc9c in _0x5b41b8['diffData'])_0x5b41b8['diffData'][_0x2ecc9c]['attachChange']&&!_0x5b41b8['diffData'][_0x2ecc9c]['attachChange']['isAttached']||(_0x3bd129[_0x2ecc9c]=_0x5b41b8['diffData'][_0x2ecc9c]['attributesAfter']||{});return _0x3bd129;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2fdc30=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x21a4fe=0x0;_0x21a4fe<_0x2fdc30['length'];_0x21a4fe++){const _0x2340bd=_0x2fdc30[_0x21a4fe];let _0x4b80e5=!0x1;for(const _0x4e4fd6 of Object['keys'](_0x2340bd))void 0x0===_0x2340bd[_0x4e4fd6]?delete _0x2340bd[_0x4e4fd6]:'id'!==_0x4e4fd6&&(_0x4b80e5=!0x0);_0x4b80e5||(_0x2fdc30[_0x21a4fe]=null);}if(_0x2fdc30=_0x2fdc30['filter'](_0x365960=>null!==_0x365960),!_0x2fdc30['length'])return;for(let _0x5add3f=0x0;_0x5add3f<_0x2fdc30['length'];_0x5add3f++){const _0x11eda7=_0x2fdc30[_0x5add3f];void 0x0!==_0x11eda7['fromVersion']&&void 0x0===_0x11eda7['toVersion']&&(_0x11eda7['toVersion']=this['repository']['getRevision'](_0x11eda7['id'])['toVersion']),void 0x0!==_0x11eda7['toVersion']&&void 0x0===_0x11eda7['fromVersion']&&(_0x11eda7['fromVersion']=this['repository']['getRevision'](_0x11eda7['id'])['fromVersion']);}const _0x438cc9=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2fdc30,_0x438cc9)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x47769e=>{if(_0x47769e){for(const _0x503db3 of _0x47769e)this['setRevisionData']({'id':_0x503db3['id'],'createdAt':_0x503db3['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xf1e450,_0x51d753){let _0x4f8862=this['editor']['config']['get']('initialData'),_0x850ba6=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4f8862){_0x4f8862={};for(const _0x209444 of this['editor']['model']['document']['getRootNames']())_0x4f8862[_0x209444]='';}if('string'==typeof _0x4f8862&&(_0x4f8862={'main':_0x4f8862}),void 0x0===_0x850ba6){_0x850ba6={};for(const _0x563fb7 of this['editor']['model']['document']['getRootNames']())_0x850ba6[_0x563fb7]={};}let _0x59bb30=!0x1;const _0x5e49b0=Object['keys'](_0x4f8862),_0x20fde3=Object['keys'](_0xf1e450);for(const _0x4d92ae of _0x5e49b0){if(_0x4f8862[_0x4d92ae]!==_0xf1e450[_0x4d92ae]&&''!==_0x4f8862[_0x4d92ae]['trim']()){_0x59bb30=!0x0;break;}if(!_0x458fad(_0x850ba6[_0x4d92ae],_0x51d753[_0x4d92ae])&&Object['keys'](_0x850ba6[_0x4d92ae])['length']>0x0){_0x59bb30=!0x0;break;}}_0x59bb30||(_0x59bb30=_0x20fde3['some'](_0x22a10d=>!this['editor']['model']['document']['getRoot'](_0x22a10d))),_0x59bb30&&_0x1bfd1b('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4f8862,'editorRootsAttributes':_0x850ba6,'revisionData':_0xf1e450,'revisionRootsAttributes':_0x51d753}),this['editor']['config']['set']('initialData',_0xf1e450),this['editor']['config']['set']('rootsAttributes',_0x51d753);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x24e7bb=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x24e7bb['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x591134){const _0x13b347=this['repository']['getRevisions']();_0x13b347['reverse']();let _0x2604fe=0x0;for(;_0x2604fe<_0x13b347['length'];){const _0x1eba57=_0x13b347[_0x2604fe];if(_0x1eba57===this['currentRevision']){_0x2604fe++;continue;}if(_0x1eba57['id']===this['_initialRevisionId'])break;const _0x101dfc=_0x591134['toVersion']-_0x1eba57['toVersion']||_0x591134['fromVersion']-_0x1eba57['fromVersion'];if(_0x101dfc>0x0)break;if(_0x101dfc<0x0)_0x2604fe++;else{if(!_0x591134['creator']&&_0x1eba57['creator'])break;if(_0x1eba57['creator']||!_0x591134['creator']){if(_0x591134['createdAt']>_0x1eba57['createdAt'])break;_0x2604fe++;}else _0x2604fe++;}}return _0x2604fe;}['setRevisionData'](_0x240218){const _0x4da6e5=this['repository']['getRevision'](_0x240218['id']);if(_0x240218['createdAt']&&(_0x240218['createdAt']=new Date(_0x240218['createdAt'])),_0x240218['authorsIds']){const _0x4535be=this['editor']['plugins']['get']('Users');_0x240218['authors']=_0x240218['authorsIds']['map'](_0x948a57=>_0x4535be['getUser'](_0x948a57));}_0x4da6e5['_update'](_0x240218,!0x0);}['buildRevisionData']({revision:_0x2559c0=null,from:_0x409fae=null,to:_0xccb8c3=null}){_0x409fae=null!==_0x409fae?_0x409fae:_0x2559c0['fromVersion'],_0xccb8c3=null!==_0xccb8c3?_0xccb8c3:_0x2559c0['toVersion'];const _0x5f20bd=this['_revisionDataBuilder']['getData'](_0x409fae,_0xccb8c3),_0x45dc92={'diffData':_0x5f20bd['diffData'],'authorsIds':_0x5f20bd['authorsIds'],'fromVersion':_0x409fae,'toVersion':_0xccb8c3};if(!_0x2559c0||_0xccb8c3!==_0x2559c0['toVersion']){const _0x3d23b1=_0xccb8c3-0x1,_0x10a412=this['_source']['history']['getOperation'](_0x3d23b1);_0x45dc92['createdAt']=_0x10a412&&_0x10a412['createdAt']||new Date();}if(this['_loadedStateData']&&_0x409fae===this['_loadedStateData']['fromVersion']){for(const _0x15edc0 of this['_loadedStateData']['authors'])_0x45dc92['authorsIds']['includes'](_0x15edc0['id'])||_0x45dc92['authorsIds']['push'](_0x15edc0['id']);}return _0x45dc92;}['_loadRevisionData'](_0x5342c4){if(!_0x5342c4||_0x5342c4['diffData'])return Promise['resolve']();{const _0x4e8884=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4e8884,'revisionId':_0x5342c4['id']})['then'](_0x29ca76=>{_0x5342c4['diffData']=_0x29ca76['diffData'];});}}['_bufferUpdate'](_0x32efa5,_0x16cdef,_0x3c267f){if(this['_bufferedUpdates']['has'](_0x32efa5)){const _0x247109=this['_bufferedUpdates']['get'](_0x32efa5);_0x16cdef=_0x3c267f?{..._0x247109,..._0x16cdef}:{..._0x16cdef,..._0x247109};}this['_bufferedUpdates']['set'](_0x32efa5,_0x16cdef);}['_getFromVersion'](_0x274d4f){const _0x64ded8=this['repository']['getRevisions']();_0x64ded8['reverse'](),_0x64ded8['shift']();const _0x2a7ef8=_0x64ded8['find'](_0xe22ccc=>_0xe22ccc['toVersion']<=_0x274d4f)['toVersion'];return _0x2a7ef8<this['_startingVersion']?this['_startingVersion']:_0x2a7ef8;}['_createInitialRevision'](_0x58c30f){const _0x373216=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x373216)this['_initialRevisionId']=_0x373216['id'];else{const _0x1c8730=!this['editor']['model']['document']['roots']['find'](_0x5d0b52=>this['editor']['model']['hasContent'](_0x5d0b52)),_0x1cb019=this['editor']['plugins']['get']('Users')['me']['id'],_0x51e72e=m(this['editor']['locale'],_0x1c8730?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x58c30f,'to':_0x58c30f,'id':this['_initialRevisionId'],'name':_0x51e72e,'creatorId':_0x1cb019});}}['_createCurrentRevision'](_0x584879){const _0x5d6200=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5d6200),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x584879,'to':_0x584879,'id':_0x5d6200,'name':'','creatorId':null}));}['_makeRevision']({name:_0x41c633,from:_0x4cc3e8,to:_0x5863cd,creatorId:_0xcf78fc,id:_0x22a267}){const _0x1e598d=this['buildRevisionData']({'from':_0x4cc3e8,'to':_0x5863cd});_0x1e598d['name']=_0x41c633,_0x1e598d['creatorId']=_0xcf78fc,_0x1e598d['id']=_0x22a267;const _0x3aa6b2=this['addRevisionData'](_0x1e598d);return this['adapter']&&this['_bufferUpdate'](_0x1e598d['id'],_0x1e598d,!0x0),_0x3aa6b2;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x33b77d){return(_0x33b77d=_0x33b77d['filter'](_0x8ac7e2=>!_0x8ac7e2['name']||'revision-start'!==_0x8ac7e2['name']&&'revision-end'!==_0x8ac7e2['name']))['forEach'](_0x3b7b07=>{'string'!=typeof _0x3b7b07&&(_0x3b7b07['children']=this['_removeRevisionMarkers'](_0x3b7b07['children']),_0x3b7b07['attributes']=_0x3b7b07['attributes']['filter'](_0x338694=>!_0x338694[0x0]['startsWith']('data-revision-')));}),_0x33b77d;}}function C(_0x4adce8,_0x330795){const _0x29479f=_0x330795['editing']['view']['document'];if('string'==typeof _0x4adce8)return new _0x20e0cf(_0x29479f,_0x4adce8);{const _0x5f1af5=_0x4adce8['children']['map'](_0x16656b=>C(_0x16656b,_0x330795));return new(P[_0x4adce8['type']]||_0x2516e6)(_0x29479f,_0x4adce8['name'],_0x4adce8['attributes'],_0x5f1af5);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x136c09){this['editor']=_0x136c09,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'](_0x1d6484){this['source']=_0x1d6484;const _0x4815e6=new Map(),_0x3b66b8=new Map(),_0x1b32ec=this['editor']['model']['document']['roots']['map'](_0x4b1d7f=>_0x4b1d7f['rootName']);for(const _0x40bdd9 of _0x1b32ec){const _0x211404=this['editor']['model']['document']['getRoot'](_0x40bdd9),_0x3bbe0d=T(_0x211404);_0x4815e6['set'](_0x40bdd9,_0x3bbe0d),_0x3b66b8['set'](_0x40bdd9,Object['fromEntries'](_0x211404['getAttributes']()));}const _0x475fdf=Array['from'](this['editor']['model']['markers'])['map'](_0x29a823=>[_0x29a823['name'],_0x29a823['getRange']()]),_0x29d9c5=this['source']['version'];this['_saveMetaData'](_0x29d9c5,_0x4815e6,_0x475fdf,_0x3b66b8),this['_startingRevisionId']=this['_revisionId'];const _0x3914d9=new Map(),_0x5b536a=new Map();for(const _0x489c11 of _0x1b32ec){const _0x33f3da=F(_0x489c11);_0x3914d9['set'](_0x489c11,_0x33f3da),_0x5b536a['set'](_0x489c11,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3914d9,[],_0x5b536a);}['getData'](_0x32a7c6,_0x3560b8){if(this['_lastFrom']===_0x32a7c6&&this['_lastTo']<=_0x3560b8)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3560b8,!0x0);else{if(!this['_savedMetaData']['has'](_0x32a7c6)){const _0x43b729=this['_getPreviousFrom'](_0x32a7c6);this['_calculateMetaData'](_0x43b729,_0x32a7c6,!0x1);}this['_calculateMetaData'](_0x32a7c6,_0x3560b8,!0x0);}return this['_lastFrom']=_0x32a7c6,this['_lastTo']=_0x3560b8,this['_getState']();}['loadState'](_0x4c56f7){this['_reset'](),this['_lastFrom']=_0x4c56f7['fromVersion'],this['_lastTo']=_0x4c56f7['toVersion'];for(const _0x162597 in _0x4c56f7['diffData']){const _0x4d54c3=_0x4c56f7['diffData'][_0x162597]['attachChange'],_0x2d6826=_0x100481(_0x4c56f7['diffData'][_0x162597]['attributesBefore'])||{},_0x506879=this['_makeModelFromViewString'](_0x4c56f7['diffData'][_0x162597]['deletions']);_0x506879['rootName']=_0x162597,_0x506879['_isAttached']=!_0x4d54c3||!_0x4d54c3['isAttached'],_0x506879['isAttached']=()=>_0x506879['_isAttached'],this['_baseRoots']['set'](_0x162597,_0x506879),this['_baseRootsAttributes']['set'](_0x162597,_0x2d6826),_0x4d54c3&&this['_touchedRoots']['set'](_0x162597,_0x4d54c3);const _0x3104ab=this['_makeIdsRoot'](_0x506879);this['_baseIdsRoots']['set'](_0x162597,_0x3104ab);for(const [_0x529505,_0x43b9b3]of _0x506879['markers']){if(!_0x529505['startsWith']('revision:'))continue;const _0x2a30dc=_0x529505['split'](':')[0x2];for(const _0xa13fa3 of _0x43b9b3['getWalker']({'singleCharacters':!0x0})){const _0x3eb193=this['_getVidAttributeName'](_0xa13fa3),_0x1620fa='elementEnd'==_0xa13fa3['type']?_0xa13fa3['previousPosition']['path']['slice'](0x0,-0x1):_0xa13fa3['previousPosition']['path'],_0x250d17=_0x3104ab['getNodeByPath'](_0x1620fa)['getAttribute'](_0x3eb193);this['_touched']['set'](_0x250d17,{'userId':_0x2a30dc});}}}this['_startingRevisionId']=this['_revisionId'];const _0x41a9bb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xfb88ff=>!this['_touched']['has'](_0xfb88ff));let _0x179cbc=0x0;const _0xae4a45=new Map();for(const _0x57bd49 in _0x4c56f7['diffData']){const _0x5b5102=_0x4c56f7['diffData'][_0x57bd49]['attachChange'],_0x171ecc=_0x100481(_0x4c56f7['diffData'][_0x57bd49]['attributesAfter'])||{},_0x1cae05=this['_makeModelFromViewString'](_0x4c56f7['diffData'][_0x57bd49]['insertions']);_0x1cae05['rootName']=_0x57bd49,_0x1cae05['_isAttached']=!_0x5b5102||_0x5b5102['isAttached'],_0x1cae05['isAttached']=()=>_0x1cae05['_isAttached'],this['_diffRoots']['set'](_0x57bd49,_0x1cae05),this['_diffRootsAttributes']['set'](_0x57bd49,_0x171ecc);const _0x4d3a07=this['_makeIdsRoot'](_0x1cae05,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x57bd49,_0x4d3a07),_0xae4a45['set'](_0x57bd49,_0x1cae05['isAttached']()?_0x171ecc:{});for(const [_0x5bdd6c,_0x3faad5]of _0x1cae05['markers']){if(!_0x5bdd6c['startsWith']('revision:'))continue;const _0x2b0417=_0x5bdd6c['split'](':')[0x2];for(const _0x33992 of _0x3faad5['getWalker']({'singleCharacters':!0x0})){const _0x24514f=this['_getVidAttributeName'](_0x33992),_0x5bff47=this['_revisionId']++,_0x33294e='elementEnd'==_0x33992['type']?_0x33992['previousPosition']['path']['slice'](0x0,-0x1):_0x33992['previousPosition']['path'];_0x4d3a07['getNodeByPath'](_0x33294e)['_setAttribute'](_0x24514f,_0x5bff47),this['_touched']['set'](_0x5bff47,{'userId':_0x2b0417});}}for(const _0x2c1712 of this['editor']['model']['createRangeIn'](_0x1cae05)['getWalker']({'singleCharacters':!0x0})){const _0x3100e0=this['_getVidAttributeName'](_0x2c1712),_0x4c3f46='elementEnd'==_0x2c1712['type']?_0x2c1712['previousPosition']['path']['slice'](0x0,-0x1):_0x2c1712['previousPosition']['path'],_0x3eeba4=_0x4d3a07['getNodeByPath'](_0x4c3f46);_0x3eeba4['getAttribute'](_0x3100e0)>0x0||_0x3eeba4['_setAttribute'](_0x3100e0,_0x41a9bb[_0x179cbc++]);}for(const [_0x3c13ab,_0x24b439]of _0x1cae05['markers'])_0x3c13ab['startsWith']('revision:')||this['_markers']['set'](_0x3c13ab,_0x24b439);}const _0x18bab2=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x18bab2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x18bab2,0x1));const _0x3c53b2=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3c53b2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3c53b2,0x1));const _0x573150=Array['from'](this['_diffRoots'])['map'](([_0x48dca2,_0x1eda64])=>[_0x48dca2,T(_0x1eda64)]);this['_saveMetaData'](this['_lastTo'],_0x573150,this['_markers'],_0xae4a45);}['_makeModelFromViewString'](_0x1994c8){const _0x6c5ac1=JSON['parse'](_0x1994c8),_0x1de382=this['editor']['editing']['view']['document'],_0x2d2566=new _0x401b7e(_0x1de382,_0x6c5ac1['map'](_0x541eb0=>C(_0x541eb0,this['editor'])));return this['editor']['data']['toModel'](_0x2d2566);}['_saveMetaData'](_0x511045,_0x5e4da7,_0x51a9fa,_0x335bf6){const _0x4ba9d5=new Map(_0x5e4da7),_0x39b71b=new Map(_0x100481(_0x335bf6)),_0x565322=new Map();for(const [_0x3ad79d,_0x25e0d8]of _0x51a9fa)_0x565322['set'](_0x3ad79d,{'start':_0x25e0d8['start']['clone'](),'end':_0x25e0d8['end']['clone'](),'rootName':_0x25e0d8['root']['rootName']});this['_savedMetaData']['set'](_0x511045,{'roots':_0x4ba9d5,'markers':_0x565322,'rootsAttributes':_0x39b71b});}['_removeMetaData'](_0x467c08){this['_savedMetaData']['delete'](_0x467c08);}['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'](_0x56f105,_0x30796e=null){let _0x413bb=null;_0x56f105['is']('documentFragment')||(_0x413bb=new ft(_0x56f105['name'],{'vid_start':null===_0x30796e?this['_revisionId']++:_0x30796e++}));const _0x29fd93=[];for(const _0x5bc11a of _0x56f105['getChildren']())if(_0x5bc11a['is']('element')){_0x29fd93['push'](this['_makeIdsRoot'](_0x5bc11a,_0x30796e));const _0x13517e=_0x29fd93[_0x29fd93['length']-0x1];null!==_0x30796e&&(_0x30796e=_0x13517e['is']('element','$text')?_0x13517e['getAttribute']('vid')+0x1:_0x13517e['getAttribute']('vid_end')+0x1);}else{for(let _0x3fb736=0x0;_0x3fb736<_0x5bc11a['offsetSize'];_0x3fb736++)_0x29fd93['push'](new ft('$text',{'vid':null===_0x30796e?this['_revisionId']++:_0x30796e++}));}if(_0x56f105['is']('documentFragment')){const _0x5a621d=F(_0x56f105['rootName']);return _0x5a621d['_insertChild'](0x0,_0x29fd93),_0x5a621d;}return _0x413bb['_setAttribute']('vid_end',null===_0x30796e?this['_revisionId']++:_0x30796e++),_0x413bb['_insertChild'](0x0,_0x29fd93),_0x413bb;}['_calculateMetaData'](_0x51f1ca,_0xa0ae18,_0x4cda47){this['_reset']();const {roots:_0x2f1e8b,markers:_0x188fe6,rootsAttributes:_0x184ab3}=this['_savedMetaData']['get'](_0x51f1ca);this['_baseRoots']=new Map(_0x2f1e8b),this['_baseRootsAttributes']=new Map(_0x100481(_0x184ab3));for(const [_0x301a9b,_0x5cbf76]of this['_baseRoots'])if('$graveyard'!==_0x301a9b&&(this['_diffRoots']['set'](_0x301a9b,T(_0x5cbf76)),this['_diffRootsAttributes']=new Map(_0x100481(_0x184ab3)),_0x4cda47)){const _0x3084d5=this['_revisionId'];this['_idsRoots']['set'](_0x301a9b,this['_makeIdsRoot'](_0x5cbf76)),this['_baseIdsRoots']['set'](_0x301a9b,this['_makeIdsRoot'](_0x5cbf76,_0x3084d5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x4cda47&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5d5cc0,_0x222cce]of _0x188fe6){const _0x19c84b=this['_baseRoots']['get'](_0x222cce['rootName']),_0x6566a9=this['_diffRoots']['get'](_0x222cce['rootName']),_0x323753=new vt(this['_fixPosition'](_0x222cce['start'],_0x19c84b),this['_fixPosition'](_0x222cce['end'],_0x19c84b)),_0x53e484=this['_fixRange'](_0x323753,_0x6566a9);_0x19c84b['markers']['set'](_0x5d5cc0,_0x323753),this['_markers']['set'](_0x5d5cc0,_0x53e484);}this['_applyOperations'](_0x51f1ca,_0xa0ae18,_0x4cda47);}['_applyOperations'](_0xc99123,_0x28f147,_0x239090){for(const _0x1a50d0 of this['source']['getOperations'](_0xc99123,_0x28f147))this['_handleOperation'](_0x1a50d0,_0x239090);for(const _0x47d8f3 of this['_diffRoots']['values']())_0x47d8f3['markers']['clear']();for(const [_0x37c803,_0x4ac571]of this['_markers']){this['_diffRoots']['get'](_0x4ac571['root']['rootName'])['markers']['set'](_0x37c803,_0x4ac571['clone']());}const _0x1078b1=new Map(),_0x5619b6=new Map();for(const [_0x2165eb,_0x109507]of this['_diffRoots'])_0x1078b1['set'](_0x2165eb,T(_0x109507)),_0x5619b6['set'](_0x2165eb,this['_diffRootsAttributes']['get'](_0x2165eb));this['_saveMetaData'](_0x28f147,_0x1078b1,this['_markers'],_0x5619b6);}['_getPreviousFrom'](_0x6d26ff){const _0x46ce1e=Array['from'](this['_savedMetaData']['keys']());_0x46ce1e['sort']((_0x2db988,_0x2e87d7)=>_0x2db988-_0x2e87d7),_0x46ce1e['reverse']();for(const _0x4e6c0d of _0x46ce1e)if(_0x4e6c0d<_0x6d26ff)return _0x4e6c0d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x50dc9a,_0x440330){const _0x2ab5a6=Array['from'](_0x440330['markers'])['map'](([_0x23ee03,_0x455f7c])=>[_0x23ee03,this['_fixRange'](_0x455f7c,_0x50dc9a)]);_0x50dc9a['markers']=new Map(_0x2ab5a6);}['_transformMarkers'](_0x3188d5){for(const _0x41e8d5 of this['_markers']['values']()){const _0x4cc14d=_0x41e8d5['getTransformedByOperation'](_0x3188d5),_0x50680e=vt['_createFromRanges'](_0x4cc14d);_0x41e8d5['start']=_0x50680e['start'],_0x41e8d5['end']=_0x50680e['end'];}}['_handleOperation'](_0x1a17ec,_0xfc5cf){if('addRoot'!=_0x1a17ec['type']&&'detachRoot'!=_0x1a17ec['type']){if('insert'==_0x1a17ec['type']){const _0x55b298=_0x1a17ec['position']['root']['rootName'];this['_diffRoots']['has'](_0x55b298)||(this['_diffRoots']['set'](_0x55b298,F(_0x55b298,!0x0)),this['_diffRootsAttributes']['set'](_0x55b298,{}),_0xfc5cf&&this['_idsRoots']['set'](_0x55b298,F(_0x55b298,!0x0)));}else{if('addRootAttribute'==_0x1a17ec['type']||'removeRootAttribute'==_0x1a17ec['type']||'changeRootAttribute'==_0x1a17ec['type'])return void this['_handleRootAttributeOperation'](_0x1a17ec);'marker'==_0x1a17ec['type']&&this['_handleMarkerOperation'](_0x1a17ec);}if('marker'!==_0x1a17ec['type']){const _0x1f76ec=this['_cloneOperation'](_0x1a17ec,this['_diffRoots']);_0x1f76ec['_execute'](),this['_transformMarkers'](_0x1f76ec);}if(_0xfc5cf)switch(_0x1a17ec['type']){case'insert':this['_handleInsertOperation'](_0x1a17ec);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1a17ec);break;case'merge':this['_handleMergeOperation'](_0x1a17ec);break;case'split':this['_handleSplitOperation'](_0x1a17ec);}}else this['_handleRootOperation'](_0x1a17ec,_0xfc5cf);}['_cloneOperation'](_0x476446,_0xa2a69f){const _0xe17f6=_0x476446['clone']();return _0xe17f6['_authorId']=_0x476446['_authorId'],this['_fixOperation'](_0xe17f6,_0xa2a69f),_0xe17f6;}['_getBaseVids'](_0x387bef){return _0x387bef['map'](_0x306c45=>{const _0x8e4f8b=this['_getVidAttributeName'](_0x306c45);return Number(_0x306c45['item']['getAttribute'](_0x8e4f8b));});}['_generateTape'](_0x41c753,_0x1fb6e5){if(_0x41c753['is']('element','$text'))_0x1fb6e5['push']({'item':_0x41c753,'type':'text'});else{_0x41c753['is']('element')&&_0x1fb6e5['push']({'item':_0x41c753,'type':'elementStart'});for(const _0x1e007d of _0x41c753['getChildren']())this['_generateTape'](_0x1e007d,_0x1fb6e5);_0x41c753['is']('element')&&_0x1fb6e5['push']({'item':_0x41c753,'type':'elementEnd'});}return _0x1fb6e5;}['_getState'](){const _0x5ce87a=new Map(this['_touched']),_0x3585fd=new Map(_0x5ce87a),_0x27af31=new Map(),_0x41b3c8={'insertions':{},'deletions':{}},_0x43da69={'insertions':{},'deletions':{}},_0x5266bd=new Map(),_0x564c0d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x564c0d['delete']('$graveyard');for(const _0x15c35c of _0x564c0d){const _0x5e5f27=this['_diffRoots']['get'](_0x15c35c)||F(_0x15c35c,!0x1),_0x310f2a=this['_baseRoots']['get'](_0x15c35c)||F(_0x15c35c,!0x1);_0x5e5f27['isAttached']()||_0x310f2a['isAttached']()?(_0x41b3c8['insertions'][_0x15c35c]=T(_0x5e5f27),_0x41b3c8['deletions'][_0x15c35c]=T(_0x310f2a),this['_copyMarkers'](_0x41b3c8['deletions'][_0x15c35c],_0x310f2a),this['_copyMarkers'](_0x41b3c8['insertions'][_0x15c35c],_0x5e5f27),_0x43da69['insertions'][_0x15c35c]=this['_generateTape'](this['_idsRoots']['get'](_0x15c35c),[]),_0x43da69['deletions'][_0x15c35c]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x15c35c)||F(_0x15c35c,!0x1),[])):_0x564c0d['delete'](_0x15c35c);}for(const _0x4b552a of _0x564c0d){const _0x32ddbb=_0x43da69['insertions'][_0x4b552a];for(const _0x557c9b of _0x32ddbb){const _0x4c1725=this['_getVidAttributeName'](_0x557c9b),_0x170f13=_0x557c9b['item']['getAttribute'](_0x4c1725);_0x3585fd['delete'](_0x170f13),_0x170f13>=this['_startingRevisionId']&&_0x27af31['set'](_0x170f13,_0x5ce87a['get'](_0x170f13));}}for(const _0xa9b7cf of _0x564c0d){const _0x1a79dc=_0x43da69['insertions'][_0xa9b7cf],_0x522198=this['_getBaseVids'](_0x43da69['deletions'][_0xa9b7cf]);let _0x29a68f=0x0;for(const _0x6861ac of _0x1a79dc){const _0xe8f0bb=this['_getVidAttributeName'](_0x6861ac),_0x5190dd=_0x6861ac['item']['getAttribute'](_0xe8f0bb);if(!_0x27af31['has'](_0x5190dd)&&!_0x5266bd['has'](_0x5190dd)){if(_0x3585fd['has'](_0x5190dd))_0x29a68f++;else{if(_0x5190dd!=_0x522198[_0x29a68f]){const _0x1e2b4e=_0x5ce87a['get'](_0x5190dd)||_0x5ce87a['get'](_0x522198[_0x29a68f]);for(;_0x5190dd!=_0x522198[_0x29a68f];)_0x3585fd['has'](_0x522198[_0x29a68f])||(_0x5266bd['set'](_0x522198[_0x29a68f],_0x1e2b4e),_0x5ce87a['set'](_0x522198[_0x29a68f],_0x1e2b4e)),_0x29a68f++;}_0x29a68f++;}}}}for(const _0x3ebc85 of _0x564c0d){const _0x5b67f6=_0x43da69['insertions'][_0x3ebc85];for(const _0x36f96c of _0x5b67f6){const _0x322acb=this['_getVidAttributeName'](_0x36f96c),_0xcf1e70=_0x36f96c['item']['getAttribute'](_0x322acb);if(_0x5266bd['has'](_0xcf1e70)){const _0x28f47d=_0x5266bd['get'](_0xcf1e70);_0x3585fd['has'](_0xcf1e70)||_0x3585fd['set'](_0xcf1e70,{..._0x28f47d}),_0x27af31['set'](_0xcf1e70,{..._0x28f47d});}}}for(const _0x440e82 of _0x3585fd['keys']())_0x440e82>=this['_startingRevisionId']&&_0x3585fd['delete'](_0x440e82);const _0x47bf57=new Map();for(const _0x4dbe43 of _0x564c0d){let _0x537b92=_0x43da69['insertions'][_0x4dbe43];for(const _0x2ccb8a of _0x537b92)if(_0x2ccb8a['item']['is']('element','tableCell')){const _0xe0fb47=this['_getVidAttributeName'](_0x2ccb8a),_0x28f45c=_0x2ccb8a['item']['getAttribute'](_0xe0fb47);if(_0x27af31['has'](_0x28f45c)){const _0x6cec7=_0x2ccb8a['item']['parent']['parent']['getAttribute']('vid_start'),_0x42e61b=_0x47bf57['get'](_0x6cec7)||new Set();_0x42e61b['add'](_0x27af31['get'](_0x28f45c)['userId']),_0x47bf57['set'](_0x6cec7,_0x42e61b);}}_0x537b92=_0x43da69['deletions'][_0x4dbe43];for(const _0xb0ac36 of _0x537b92)if(_0xb0ac36['item']['is']('element','tableCell')){const _0x1e3cbb=this['_getVidAttributeName'](_0xb0ac36),_0x4056f1=_0xb0ac36['item']['getAttribute'](_0x1e3cbb);if(_0x3585fd['has'](_0x4056f1)){const _0x201f3a=_0xb0ac36['item']['parent']['parent']['getAttribute']('vid_start'),_0x570ef6=_0x47bf57['get'](_0x201f3a)||new Set();_0x570ef6['add'](_0x3585fd['get'](_0x4056f1)['userId']),_0x47bf57['set'](_0x201f3a,_0x570ef6);}}for(const _0x370cc9 of _0x47bf57['keys']())(_0x27af31['has'](_0x370cc9)||_0x3585fd['has'](_0x370cc9))&&_0x47bf57['delete'](_0x370cc9);}for(const _0xdc2754 of _0x564c0d){const _0x2ef8c0=_0x43da69['insertions'][_0xdc2754];let _0x52d719=null,_0x4041ff=null;for(const _0x51ae0d of _0x2ef8c0){const _0x3c9042=this['_getVidAttributeName'](_0x51ae0d),_0x11183f=_0x51ae0d['item']['getAttribute'](_0x3c9042),_0x3c0d0b=_0x47bf57['get'](_0x11183f);_0x3c0d0b&&'elementStart'==_0x51ae0d['type']&&(_0x52d719=Array['from'](_0x3c0d0b)[0x0],_0x4041ff=_0x51ae0d['item']['getAttribute']('vid_end')),_0x52d719&&(_0x3585fd['set'](_0x11183f,{'userId':_0x52d719}),_0x27af31['set'](_0x11183f,{'userId':_0x52d719})),_0x11183f==_0x4041ff&&(_0x52d719=null,_0x4041ff=null);}}const _0x5daa0a={},_0x2a6154=new Set();for(const _0x175187 of _0x564c0d){const _0x194c39=_0x41b3c8['deletions'][_0x175187],_0x5a3f42=_0x41b3c8['insertions'][_0x175187];for(const {userId:_0x228ac6}of this['_touchedMarkers']['values']())null!==_0x228ac6&&_0x2a6154['add'](_0x228ac6);for(const {userId:_0x149385}of this['_touchedRoots']['values']())null!==_0x149385&&_0x2a6154['add'](_0x149385);this['_markChanges'](_0x5a3f42,_0x43da69['insertions'][_0x175187],_0x27af31,'insertion',_0x2a6154),this['_markChanges'](_0x194c39,_0x43da69['deletions'][_0x175187],_0x3585fd,'deletion',_0x2a6154),_0x5daa0a[_0x175187]={'insertions':this['_prepareViewToSave'](_0x5a3f42),'deletions':this['_prepareViewToSave'](_0x194c39),'attachChange':this['_touchedRoots']['get'](_0x175187)||null,'attributesBefore':_0x100481(this['_baseRootsAttributes']['get'](_0x175187))||{},'attributesAfter':_0x100481(this['_diffRootsAttributes']['get'](_0x175187))};}return{'diffData':_0x5daa0a,'authorsIds':Array['from'](_0x2a6154)};}['_processRootBeforeSave'](_0x308897){for(const [,_0x123d22]of _0x308897['markers']){const _0x310cc6=_0x123d22['start']['getAncestors']()['filter'](_0x53c2d6=>'tableCell'==_0x53c2d6['name']);for(const _0x1f903a of _0x310cc6)0x1==_0x1f903a['childCount']&&_0x1f903a['getChild'](0x0)['is']('element','paragraph')&&_0x1f903a['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x55d3b5){this['_processRootBeforeSave'](_0x55d3b5);const _0x5bfa9c=this['editor']['data']['toView'](_0x55d3b5,{}),_0x557b9b=Array['from'](_0x5bfa9c['getChildren']())['map'](_0x4c326e=>this['_getViewJson'](_0x4c326e));return JSON['stringify'](_0x557b9b);}['_getViewJson'](_0x3aac58){if(_0x3aac58['is']('$text'))return _0x3aac58['data'];{const _0x4593f2=_0x3aac58;return{'type':Object['keys'](P)['find'](_0x2c8f7d=>_0x3aac58 instanceof P[_0x2c8f7d]),'name':_0x4593f2['name'],'attributes':Array['from'](_0x4593f2['getAttributes']()),'children':Array['from'](_0x4593f2['getChildren']())['map'](_0x543a87=>this['_getViewJson'](_0x543a87))};}}['_markChanges'](_0xbdb68f,_0x247884,_0x4469bd,_0x21d600,_0x198ad5){let _0x47ad1a=null,_0xc9851b=null,_0x477e32=0x0;const _0x38a81f=this['editor']['model'];for(let _0x476283=0x0;_0x476283<_0x247884['length'];_0x476283++){const _0x57e03a=this['_getVidAttributeName'](_0x247884[_0x476283]),_0x5e3a8e=_0x247884[_0x476283]['item']['getAttribute'](_0x57e03a),_0x4e5a59=_0x4469bd['get'](_0x5e3a8e),_0x4f1728=_0x476283==_0x247884['length']-0x1;(!_0x47ad1a&&_0x4e5a59&&(_0x47ad1a=_0x4e5a59,_0xc9851b=_0x247884[_0x476283]),_0x47ad1a&&(!_0x4e5a59||_0x4e5a59['userId']!=_0x47ad1a['userId']))&&(_0x54de17(_0x4e5a59,B(_0xc9851b,_0xbdb68f,_0x38a81f),B(_0x247884[_0x476283],_0xbdb68f,_0x38a81f)),_0x47ad1a=_0x4e5a59||null,_0xc9851b=_0x4e5a59?_0x247884[_0x476283]:null),_0x47ad1a&&_0x4f1728&&_0x54de17(_0x4e5a59,B(_0xc9851b,_0xbdb68f,_0x38a81f),J(_0x247884[_0x476283],_0xbdb68f,_0x38a81f));}function _0x54de17(_0x5e11cc,_0x4563d3,_0x1468b9){const _0xafe6c8=_0x47ad1a['userId'],_0x3a069d='revision:'+_0x21d600+':'+_0xafe6c8+':'+_0x477e32++,_0x2c8ef2=_0x38a81f['createRange'](_0x4563d3,_0x1468b9);_0xbdb68f['markers']['set'](_0x3a069d,_0x2c8ef2),null!==_0xafe6c8&&_0x198ad5['add'](_0xafe6c8);}}['_getVidAttributeName'](_0x119740){switch(_0x119740['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3c264d,_0x3c577d){_0x3c264d['baseVersion']=null;for(const _0x3476f8 in _0x3c264d){const _0x2f1a97=_0x3c264d[_0x3476f8];if(_0x2f1a97 instanceof gt){const _0x2b04ff=_0x3c577d['get'](_0x2f1a97['root']['rootName']);_0x3c264d[_0x3476f8]=this['_fixPosition'](_0x2f1a97,_0x2b04ff);}if(_0x2f1a97 instanceof vt){const _0x31aa4e=_0x3c577d['get'](_0x2f1a97['root']['rootName']);_0x3c264d[_0x3476f8]=this['_fixRange'](_0x2f1a97,_0x31aa4e);}'root'===_0x3476f8&&(_0x3c264d['root']=_0x3c577d['get'](_0x3c264d['root']['rootName']));}}['_fixRange'](_0x463e30,_0x339a49){return this['editor']['model']['createRange'](this['_fixPosition'](_0x463e30['start'],_0x339a49),this['_fixPosition'](_0x463e30['end'],_0x339a49));}['_fixPosition'](_0x212a08,_0x42afa5){return this['editor']['model']['createPositionFromPath'](_0x42afa5,_0x212a08['path'],_0x212a08['stickiness']);}['_handleInsertOperation'](_0x4b4170){const _0x2efe14=this['_idsRoots']['get'](_0x4b4170['position']['root']['rootName']),_0x1f1811=this['_fixPosition'](_0x4b4170['position'],_0x2efe14),_0x40f7a2=null===_0x4b4170['_authorId']?null:_0x4b4170['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x20448c=_0x1f1811['parent'],_0x358ff5=this['_revisionId'],_0x278aa0=[];for(const _0x5689ab of _0x4b4170['nodes'])if(_0x5689ab['is']('element'))_0x278aa0['push'](this['_makeIdsRoot'](_0x5689ab));else{for(let _0x396a8b=0x0;_0x396a8b<_0x5689ab['offsetSize'];_0x396a8b++)_0x278aa0['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x242ce8=this['_revisionId'];for(let _0x39f525=_0x358ff5;_0x39f525<_0x242ce8;_0x39f525++)this['_touched']['set'](_0x39f525,{'userId':_0x40f7a2});_0x20448c['_insertChild'](_0x1f1811['offset'],_0x278aa0);}['_handleMoveOperation'](_0x5de280){(_0x5de280=this['_cloneOperation'](_0x5de280,this['_idsRoots']))['_execute']();const _0x19fc40=null===_0x5de280['_authorId']?null:_0x5de280['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x535fd2=_0x5de280['getMovedRangeStart'](),_0x5af414=_0x535fd2['parent'],_0x1f2f9b=_0x535fd2['offset'];!function _0x20aee7(_0x37aab4,_0x1613f3,_0x4b1f14,_0x2490ba){for(let _0x623fb7=_0x4b1f14;_0x623fb7<_0x2490ba;_0x623fb7++){const _0x23ddab=_0x1613f3['getChild'](_0x623fb7);_0x23ddab['is']('element','$text')?_0x37aab4['set'](_0x23ddab['getAttribute']('vid'),{'userId':_0x19fc40}):(_0x37aab4['set'](_0x23ddab['getAttribute']('vid_start'),{'userId':_0x19fc40}),_0x20aee7(_0x37aab4,_0x23ddab,0x0,_0x23ddab['childCount']),_0x37aab4['set'](_0x23ddab['getAttribute']('vid_end'),{'userId':_0x19fc40}));}}(this['_touched'],_0x5af414,_0x1f2f9b,_0x1f2f9b+_0x5de280['howMany']);}['_handleMergeOperation'](_0x5dde30){const _0x1cb304=null===(_0x5dde30=this['_cloneOperation'](_0x5dde30,this['_idsRoots']))['_authorId']?null:_0x5dde30['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa5f5a7=_0x5dde30['targetPosition']['parent'],_0x14252e=_0x5dde30['sourcePosition']['parent'],_0x3170ec=_0xa5f5a7['getAttribute']('vid_end'),_0x2bf110=_0x14252e['getAttribute']('vid_start');_0xa5f5a7['_setAttribute']('vid_end',_0x14252e['getAttribute']('vid_end')),_0x14252e['_setAttribute']('vid_end',_0x3170ec),this['_touched']['set'](_0x2bf110,{'userId':_0x1cb304}),this['_touched']['set'](_0x3170ec,{'userId':_0x1cb304}),_0x5dde30['_execute']();}['_handleSplitOperation'](_0x4f2a61){const _0x49f005=null===(_0x4f2a61=this['_cloneOperation'](_0x4f2a61,this['_idsRoots']))['_authorId']?null:_0x4f2a61['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ffa21=_0x4f2a61['graveyardPosition'],_0x3c4506=_0x4f2a61['splitPosition']['parent'];_0x4f2a61['_execute']();const _0x16466f=_0x3c4506['getAttribute']('vid_end'),_0x4c0606=_0x4f2a61['insertionPosition']['nodeAfter'];if(_0x3ffa21){const _0x8377a9=_0x4c0606['getAttribute']('vid_end'),_0x419750=_0x3c4506['getAttribute']('vid_end');_0x3c4506['_setAttribute']('vid_end',_0x8377a9),_0x4c0606['_setAttribute']('vid_end',_0x419750),this['_touched']['set'](_0x3c4506['getAttribute']('vid_end'),{'userId':_0x49f005}),this['_touched']['set'](_0x4c0606['getAttribute']('vid_start'),{'userId':_0x49f005});}else{const _0x568db8=this['_revisionId']++,_0x490dbc=this['_revisionId']++;_0x3c4506['_setAttribute']('vid_end',_0x568db8),_0x4c0606['_setAttribute']('vid_start',_0x490dbc),_0x4c0606['_setAttribute']('vid_end',_0x16466f),this['_touched']['set'](_0x568db8,{'userId':_0x49f005}),this['_touched']['set'](_0x490dbc,{'userId':_0x49f005});}}['_handleMarkerOperation'](_0x420877){if(!_0x420877['affectsData'])return;const _0x34ba6a=(_0x420877=this['_cloneOperation'](_0x420877,this['_diffRoots']))['oldRange']?_0x420877['oldRange']['root']:null,_0x42c8d0=_0x420877['newRange']?_0x420877['newRange']['root']:null;_0x34ba6a&&this['_markers']['delete'](_0x420877['name']),_0x42c8d0&&this['_markers']['set'](_0x420877['name'],_0x420877['newRange']['clone']());const _0x4704ab=null===_0x420877['_authorId']?null:_0x420877['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46cca9=_0x420877['name'];if(!this['_touchedMarkers']['has'](_0x46cca9))return void this['_touchedMarkers']['set'](_0x46cca9,{'range':_0x420877['oldRange'],'userId':_0x4704ab});const _0x5f301d=this['_touchedMarkers']['get'](_0x46cca9),_0x43f448=_0x5f301d['range'],_0x4e8e9d=_0x420877['newRange'];null==_0x43f448&&null==_0x4e8e9d||_0x43f448&&_0x4e8e9d&&_0x43f448['isEqual'](_0x4e8e9d)?this['_touchedMarkers']['delete'](_0x420877['name']):_0x5f301d['userId']=_0x4704ab;}['_handleRootOperation'](_0x136131,_0x55227c){this['_diffRoots']['has'](_0x136131['rootName'])?this['_diffRoots']['get'](_0x136131['rootName'])['_isAttached']=_0x136131['isAdd']:(this['_diffRoots']['set'](_0x136131['rootName'],F(_0x136131['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x136131['rootName'],{}),_0x55227c&&this['_idsRoots']['set'](_0x136131['rootName'],F(_0x136131['rootName'],!0x0)));const _0x623e15=null===_0x136131['_authorId']?null:_0x136131['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2796a9=this['_touchedRoots']['get'](_0x136131['rootName']);_0x2796a9&&_0x2796a9['userId']===_0x623e15?this['_touchedRoots']['delete'](_0x136131['rootName']):this['_touchedRoots']['set'](_0x136131['rootName'],{'userId':_0x623e15,'isAttached':_0x136131['isAdd']});}['_handleRootAttributeOperation'](_0x17f05f){const _0x58e162=this['_diffRootsAttributes']['get'](_0x17f05f['root']['rootName']);null===_0x17f05f['newValue']?delete _0x58e162[_0x17f05f['key']]:_0x58e162[_0x17f05f['key']]=_0x17f05f['newValue'];}}function T(_0x4cef95){const _0x14801e=F(_0x4cef95['rootName'],_0x4cef95['isAttached']());for(const _0x21cff6 of _0x4cef95['getChildren']()){const _0x5124f1=_0x21cff6['_clone'](!0x0);_0x14801e['_appendChild'](_0x5124f1);}return _0x14801e;}function F(_0x58fd35,_0x5b69bc=!0x0){const _0x1aac60=new mt();return _0x1aac60['rootName']=_0x58fd35,_0x1aac60['_isAttached']=_0x5b69bc,_0x1aac60['isAttached']=()=>_0x1aac60['_isAttached'],_0x1aac60;}function B(_0x1bd2a0,_0x5d5c5f,_0x3054e9){const _0x354ef2='elementEnd'==_0x1bd2a0['type']?_0x3054e9['createPositionAt'](_0x1bd2a0['item'],'end'):_0x3054e9['createPositionBefore'](_0x1bd2a0['item']);return _0x3054e9['createPositionFromPath'](_0x5d5c5f,_0x354ef2['path'],_0x354ef2['stickiness']);}function J(_0x1f9a9c,_0x4e0ba5,_0x41376c){const _0x52af21='elementStart'==_0x1f9a9c['type']?_0x41376c['createPositionAt'](_0x1f9a9c['item'],0x0):_0x41376c['createPositionAfter'](_0x1f9a9c['item']);return _0x41376c['createPositionFromPath'](_0x4e0ba5,_0x52af21['path'],_0x52af21['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x16bc13,_0x28be6b){super(_0x16bc13),this['focusTracker']=new _0x5b1edb(),this['keystrokes']=new _0x2bf539(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x28be6b),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5e44da(this);}['render'](){super['render'](),_0x38ae6b({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x37abda=_0x5e60ba=>_0x5e60ba['stopPropagation']();this['keystrokes']['set']('arrowright',_0x37abda),this['keystrokes']['set']('arrowleft',_0x37abda),this['keystrokes']['set']('arrowup',_0x37abda),this['keystrokes']['set']('arrowdown',_0x37abda);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xe40682){this['revisionNameInputView']['fieldView']['element']['value']=_0xe40682['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1a0849){const _0x6dce36=new _0x31f44d(this['locale'],_0x22ab74),_0x8e45da=_0x6dce36['fieldView'];_0x8e45da['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5b0d21=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1a0849&&(_0x5b0d21+='\x20('+m(this['locale'],'optional')+')'),(_0x6dce36['label']=_0x5b0d21,_0x8e45da['on']('input',()=>{this['revisionNameInputValue']=_0x8e45da['element']['value']['trim']();}),_0x6dce36);}}class u extends _0x31326a{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x2fb3ec=this['editor'],_0x1f71c8=_0x2fb3ec['plugins']['get']('RevisionTracker');_0x2fb3ec['ui']['componentFactory']['add']('revisionHistory',_0xcc824b=>{const _0x13aa3a=_0x10173a(_0xcc824b),_0x128536=_0x13aa3a['panelView']['children'],_0x3e56a5=new _0x32ec06(_0xcc824b),_0x392c27=new _0x1c24fb(_0xcc824b),_0x3ce8f5=new te(_0xcc824b),_0x15657c=new _0x1c24fb(_0xcc824b),_0x38d9aa=new te(_0xcc824b);return _0x13aa3a['bind']('isEnabled')['to'](_0x1f71c8,'isReady',_0x1f71c8,'isEnabled',_0x2fb3ec,'isReadOnly',(_0x1256d5,_0x5c17ff,_0x2ad353)=>_0x1256d5&&_0x5c17ff&&!_0x2ad353),_0x13aa3a['buttonView']['set']({'icon':_0x57512f['history'],'label':m(_0xcc824b,'Revision\x20history'),'tooltip':!0x0}),_0x3ce8f5['set']({'label':m(_0xcc824b,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3ce8f5['bind']('isEnabled')['to'](_0x1f71c8,'isReady',_0x1f71c8,'isEnabled',_0x2fb3ec,'isReadOnly',(_0x5a11f6,_0x4f8bb1,_0x4e579c)=>_0x5a11f6&&_0x4f8bb1&&!_0x4e579c),_0x3ce8f5['on']('execute',()=>this['_showDialog']()),_0x38d9aa['set']({'label':m(_0xcc824b,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x38d9aa['bind']('isEnabled')['to'](_0x1f71c8,'isReady',_0x2fb3ec,'isReadOnly',(_0x37ae9e,_0x5aac95)=>_0x37ae9e&&!_0x5aac95),_0x38d9aa['on']('execute',()=>{_0x2fb3ec['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x13aa3a['isOpen']=!0x1,_0x2fb3ec['editing']['view']['focus']();}),_0x392c27['children']['add'](_0x3ce8f5),_0x15657c['children']['add'](_0x38d9aa),_0x3e56a5['role']='menu',_0x3e56a5['items']['addMany']([_0x392c27,_0x15657c]),_0x128536['add'](_0x3e56a5),_0x13aa3a;}),_0x2fb3ec['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5f3187=this['editor'],_0x3fb853=_0x5f3187['locale'],_0x28a382=new _0x13a10c(_0x3fb853),_0xad03dc=new _0x9b0c60(_0x3fb853);_0x28a382['buttonView']['set']({'icon':_0x57512f['history'],'label':m(_0x3fb853,'Revision\x20history')});const _0xdb2e42=new _0x10f968(_0x3fb853,_0x28a382),_0x4d5f9b=new _0x112fc5(_0x3fb853);_0x4d5f9b['set']({'label':m(_0x3fb853,'Save\x20current\x20revision')}),_0x4d5f9b['delegate']('execute')['to'](_0x28a382),_0x4d5f9b['on']('execute',()=>{this['_showDialog']();}),_0xdb2e42['children']['add'](_0x4d5f9b),_0xad03dc['items']['add'](_0xdb2e42);const _0x2d87a0=new _0x10f968(_0x3fb853,_0x28a382),_0x34351d=new _0x112fc5(_0x3fb853);return _0x34351d['set']({'label':m(_0x3fb853,'Open\x20revision\x20history')}),_0x34351d['delegate']('execute')['to'](_0x28a382),_0x34351d['on']('execute',()=>{_0x5f3187['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2d87a0['children']['add'](_0x34351d),_0xad03dc['items']['add'](_0x2d87a0),_0x28a382['panelView']['children']['add'](_0xad03dc),_0x28a382;}['_showDialog'](){const _0x447bd1=this['editor'],_0x343d36=_0x447bd1['locale'],_0xe4f298=_0x447bd1['plugins']['get']('Dialog'),_0x307dc3=_0x447bd1['plugins']['get']('RevisionTracker');function _0x185435(_0x517666){_0x447bd1['config']['get']('revisionHistory.requireRevisionName')&&''===_0x517666['revisionName']?_0x517666['revisionNameInputView']['errorText']=m(_0x343d36,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x447bd1['plugins']['get'](l)['saveRevision']({'name':_0x517666['revisionName']}),_0xe4f298['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x185435(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xe4f298['show']({'id':'revisionSave','title':m(_0x343d36,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x447bd1['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xe4f298['hide']()},{'label':m(_0x447bd1['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x702237){_0x702237['bind']('isEnabled')['to'](_0x307dc3,'isReady',_0x307dc3,'isEnabled',_0x447bd1,'isReadOnly',(_0x52041e,_0x20c47c,_0x3b990d)=>_0x52041e&&_0x20c47c&&!_0x3b990d);},'onExecute':()=>_0x185435(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x27d2ba=this['editor'],_0x3f5fd0=_0x27d2ba['locale'];this['_saveRevisionFormView']=new hs(_0x3f5fd0,_0x27d2ba['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x4af252,_0x4f2b6f){super(_0x4af252),this['_model']=_0x4f2b6f,this['changeId']=_0x4f2b6f['id'];const _0x2a27f1=this['bindTemplate'],_0x3cf620=m(_0x4af252,_0x4f2b6f['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4f2b6f['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4f2b6f['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2a27f1['to']('type',_0x2195c9=>'ck-revision-change__'+_0x2195c9)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3cf620}]},{'text':'\x20'+_0x4f2b6f['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x383f40(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x549900){super(),this['id']=_0x549900['id']||_0x66ae84(),this['author']=_0x549900['author'],this['type']=_0x549900['type'],this['data']=_0x549900['data']||{},this['rootName']=_0x549900['rootName'],this['set']('createdAt',_0x549900['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(_0x362083,_0x1c19e2){this['newRevisionId']=_0x362083,this['oldRevisionId']=_0x1c19e2,this['changes']=new _0x4367e2();}['_setChanges'](_0x4d868d){for(const _0xe1fb43 of _0x4d868d)this['changes']['add'](_0xe1fb43);}}const Y={'c':_0x455d52,'a':_0x17eac4,'e':_0x2b42de,'r':_0xcfd9dc,'u':_0x2e1c5d};class d extends _0x31326a{['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[_0x29bc02,_0x416265,j];}constructor(_0x3b9f8b){super(_0x3b9f8b),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',(_0x5e34d0,_0xbc72e2,_0x28cce7)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x160474=>{for(const _0x4d5217 of this['editor']['editing']['view']['document']['roots'])_0x28cce7?_0x160474['removeClass']('ck-editor__editable__overlay',_0x4d5217):_0x160474['addClass']('ck-editor__editable__overlay',_0x4d5217);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x19ee6d=>null!==_0x19ee6d),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4567c2,_0xdd7849,_0xf1c8d0)=>_0x4567c2&&_0xf1c8d0?_0xdd7849['changes']['getIndex'](_0xf1c8d0):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x415e79,_0xfcf670)=>_0x415e79?_0xfcf670['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x416265);}['init'](){const _0x57dea6=this['editor'],_0x435379=new _t(_0x57dea6,{'direction':'backward'}),_0x285633=new _t(_0x57dea6,{'direction':'forward'});(_0x57dea6['commands']['add']('showPreviousChange',_0x435379),_0x57dea6['commands']['add']('showNextChange',_0x285633),_0x57dea6['commands']['add']('restoreRevision',new pt(_0x57dea6)),this['on']('change:numberOfChanges',()=>{_0x435379['refresh'](),_0x285633['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x57dea6['enableReadOnlyMode']('revision-viewer'),_0x57dea6['plugins']['has']('WidgetToolbarRepository'))&&_0x57dea6['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x321949){await this['loadRevisionData'](_0x321949);const _0xe94a67={};for(const _0x183440 in _0x321949['diffData']){if(_0x321949['diffData'][_0x183440]['attachChange']&&!_0x321949['diffData'][_0x183440]['attachChange']['isAttached'])continue;const _0x37ff5d=this['_removeRevisionMarkers'](JSON['parse'](_0x321949['diffData'][_0x183440]['insertions'])),_0x798d86=this['editor']['editing']['view']['document'],_0x3fec89=new _0x401b7e(_0x798d86,_0x37ff5d['map'](_0x558bb6=>this['_getViewObj'](_0x558bb6)));this['editor']['data']['processor']['useFillerType']('marked'),_0xe94a67[_0x183440]=this['editor']['data']['processor']['toData'](_0x3fec89),this['editor']['data']['processor']['useFillerType']('default');}return _0xe94a67;}async['getRevisionRootsAttributes'](_0x3b7905){await this['loadRevisionData'](_0x3b7905);const _0xe723c3={};for(const _0x129f77 in _0x3b7905['diffData'])_0x3b7905['diffData'][_0x129f77]['attachChange']&&!_0x3b7905['diffData'][_0x129f77]['attachChange']['isAttached']||(_0xe723c3[_0x129f77]=_0x3b7905['diffData'][_0x129f77]['attributesAfter']||{});return _0xe723c3;}['_removeRevisionMarkers'](_0x2e4936){return(_0x2e4936=_0x2e4936['filter'](_0x18158a=>!_0x18158a['name']||'revision-start'!==_0x18158a['name']&&'revision-end'!==_0x18158a['name']))['forEach'](_0x298564=>{'string'!=typeof _0x298564&&(_0x298564['children']=this['_removeRevisionMarkers'](_0x298564['children']),_0x298564['attributes']=_0x298564['attributes']['filter'](_0x26e677=>!_0x26e677[0x0]['startsWith']('data-revision-')));}),_0x2e4936;}async['compare'](_0x51f3e1,_0x249ead,_0xeffda8=!0x1){if(!this['isEnabled'])return;const _0x38d049=this['diff'],_0xe9fd43=this['repository'],_0x379399='string'==typeof _0x51f3e1?_0xe9fd43['getRevision'](_0x51f3e1):_0x51f3e1,_0x40b74e='string'==typeof _0x249ead?_0xe9fd43['getRevision'](_0x249ead):_0x249ead,_0x1a95e2=_0x379399['id'],_0x4c348e=_0x40b74e?_0x40b74e['id']:null;if(!_0xeffda8&&this['diff']&&this['diff']['newRevisionId']===_0x1a95e2&&this['diff']['oldRevisionId']===_0x4c348e)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x1a95e2,_0x4c348e);const _0x222efa=this['_getRevisionsRange'](_0x379399,_0x40b74e,!0x0)['map'](_0x3924b9=>this['loadRevisionData'](_0x3924b9));return _0x222efa['push'](new Promise(_0x3d3136=>{setTimeout(_0x3d3136,0x14);})),Promise['all'](_0x222efa)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xde37f1=this['_getDiff'](_0x1a95e2,_0x4c348e);for(const _0x227032 of _0xde37f1['changes'])this['_changeIdToChange']['set'](_0x227032['id'],_0x227032);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5950cf=>{for(const _0x5f3872 of this['editor']['model']['document']['getRootNames']())_0x5950cf['detachRoot'](_0x5f3872);for(const _0xd7feab of Object['keys'](_0xde37f1['model'])){const _0x32609b=_0x5950cf['addRoot'](_0xd7feab);for(const _0x4a82c3 of Object['keys'](_0xde37f1['attributes'][_0xd7feab]))_0x5950cf['setAttribute'](_0x4a82c3,_0xde37f1['attributes'][_0xd7feab][_0x4a82c3],_0x32609b);_0x5950cf['insert'](_0xde37f1['model'][_0xd7feab],_0x32609b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xde37f1['changes'])),this['isReady']=!0x0;})['catch'](_0x2091a5=>{console['error'](_0x2091a5),this['_cleanUp'](),_0x38d049&&(this['diff']=_0x38d049),this['isReady']=!0x0;});}['addRevisionData'](_0x1952d1,_0x37ab39){const _0x2e3294=this['repository']['createRevision'](_0x1952d1);return _0x2e3294['on']('_update',(_0x82c03c,_0x5353d7,_0x3e2cc3)=>_0x37ab39(_0x5353d7,_0x3e2cc3,_0x2e3294)),this['repository']['addRevision'](_0x2e3294),_0x2e3294;}['loadRevisionData'](_0x4c4d54){if(!_0x4c4d54||_0x4c4d54['diffData'])return Promise['resolve']();{const _0x172ffb=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x172ffb,'revisionId':_0x4c4d54['id']})['then'](_0x122cce=>{_0x4c4d54['_update']({'diffData':_0x122cce['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},_0xa88f6d=>{for(const _0x17a18c of this['editor']['model']['document']['getRootNames']())_0xa88f6d['detachRoot'](_0x17a18c);});}['_sortAndFilterDiffChanges'](_0x489e09){const _0x119ca3=[],_0x358aa4=new Map();for(const _0x40a04a of this['editor']['model']['document']['getRootNames']()){const _0x52a57d=this['editor']['editing']['view']['getDomRoot'](_0x40a04a);if(!_0x52a57d)continue;const _0x214941=_0x52a57d['getClientRects']()['item'](0x0);_0x214941&&(_0x119ca3['push'](_0x40a04a),_0x358aa4['set'](_0x40a04a,_0x214941));}return _0x119ca3['sort']((_0x4735eb,_0x24f31b)=>{const _0x4c2192=_0x358aa4['get'](_0x4735eb),_0x3628ee=_0x358aa4['get'](_0x24f31b);return _0x4c2192['y']-_0x3628ee['y']||_0x4c2192['x']-_0x3628ee['x'];}),(_0x489e09=_0x489e09['filter'](_0x55dffb=>_0x119ca3['includes'](_0x55dffb['rootName'])))['sort']((_0x46f53d,_0x2c7737)=>_0x119ca3['indexOf'](_0x46f53d['rootName'])-_0x119ca3['indexOf'](_0x2c7737['rootName'])),_0x489e09;}['_makeTape'](_0x3bcc02){const _0x2a9e34=Array['from'](_0x3bcc02['markers'])['filter'](([_0x46d98e,_0x267fb5])=>_0x46d98e['startsWith']('revision:')&&!_0x267fb5['isCollapsed']),_0xab9e3c=Array['from'](this['editor']['model']['createRangeIn'](_0x3bcc02)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2a9e34['length'])for(const _0x1a1b30 of _0xab9e3c){const [_0x14fe0c,_0x2c40b7]=_0x2a9e34[0x0],[,_0x2a2841,_0x849fdd]=_0x14fe0c['split'](':');if(_0x2c40b7['end']['isEqual'](_0x1a1b30['nextPosition'])&&_0x2a9e34['shift'](),(_0x1a1b30['previousPosition']['isEqual'](_0x2c40b7['start'])||_0x1a1b30['previousPosition']['isAfter'](_0x2c40b7['start']))&&('insertion'==_0x2a2841?_0x1a1b30['isAdded']={'userId':_0x849fdd}:'deletion'==_0x2a2841&&(_0x1a1b30['isRemoved']={'userId':_0x849fdd})),0x0==_0x2a9e34['length'])break;}return _0xab9e3c;}['_refreshStartEndIndex'](_0x135f11){const _0x14d5fc=new Map();for(let _0xeffc91=0x0;_0xeffc91<_0x135f11['length'];_0xeffc91++)'text'===_0x135f11[_0xeffc91]['type']?(_0x135f11[_0xeffc91]['item']['startIndex']=_0xeffc91,_0x135f11[_0xeffc91]['item']['endIndex']=_0xeffc91):('elementStart'===_0x135f11[_0xeffc91]['type']?_0x135f11[_0xeffc91]['item']['startIndex']=_0xeffc91:'elementEnd'===_0x135f11[_0xeffc91]['type']&&(_0x135f11[_0xeffc91]['item']['endIndex']=_0xeffc91),_0x14d5fc['set'](_0x135f11[_0xeffc91]['id'],_0xeffc91));for(const _0x4c75ca of _0x14d5fc['values']())'elementStart'===_0x135f11[_0x4c75ca]['type']?_0x135f11[_0x4c75ca]['item']['endIndex']=_0x14d5fc['get'](_0x135f11[_0x4c75ca]['pairId']):'elementEnd'===_0x135f11[_0x4c75ca]['type']&&(_0x135f11[_0x4c75ca]['item']['startIndex']=_0x14d5fc['get'](_0x135f11[_0x4c75ca]['pairId']));}['_processTape'](_0x2c8f9f){for(let _0xf19743=0x0;_0xf19743<_0x2c8f9f['length'];_0xf19743++){if('elementStart'===_0x2c8f9f[_0xf19743]['type'])_0x2c8f9f[_0xf19743]['item']['startIndex']=_0xf19743;else{if('elementEnd'===_0x2c8f9f[_0xf19743]['type']){_0x2c8f9f[_0xf19743]['item']['endIndex']=_0xf19743;const _0x2b40b9=_0x2c8f9f[_0xf19743]['item']['startIndex'];_0x2c8f9f[_0x2b40b9]['pairId']=_0x2c8f9f[_0xf19743]['id'],_0x2c8f9f[_0xf19743]['pairId']=_0x2c8f9f[_0x2b40b9]['id'];}else _0x2c8f9f[_0xf19743]['item']['startIndex']=_0xf19743,_0x2c8f9f[_0xf19743]['item']['endIndex']=_0xf19743,_0x2c8f9f[_0xf19743]['pairId']=null;}_0x2c8f9f[_0xf19743]['markersStart']||(_0x2c8f9f[_0xf19743]['markersStart']=[],_0x2c8f9f[_0xf19743]['markersEnd']=[]);}}['_markInsertions'](_0x551732,_0x4c4ea5){const _0x94d367=_0x551732['filter'](_0x38c890=>!_0x38c890['isAdded']);for(let _0x1597a8=0x0;_0x1597a8<_0x4c4ea5['length'];_0x1597a8++)_0x4c4ea5[_0x1597a8]['isAdded']&&(_0x94d367[_0x1597a8]['isAdded']=_0x4c4ea5[_0x1597a8]['isAdded']);}['_makeModelFromViewString'](_0xae8fa8){const _0x1f5d97=JSON['parse'](_0xae8fa8),_0x495eb7=this['editor']['editing']['view']['document'],_0x81129a=new _0x401b7e(_0x495eb7,_0x1f5d97['map'](_0x1f7545=>this['_getViewObj'](_0x1f7545)));return this['editor']['data']['toModel'](_0x81129a);}['_getViewObj'](_0x544c30){const _0x4ecfa2=this['editor']['editing']['view']['document'];if('string'==typeof _0x544c30)return new _0x20e0cf(_0x4ecfa2,_0x544c30);{const _0x827704=_0x544c30['children']['map'](_0xbc4baf=>this['_getViewObj'](_0xbc4baf));return new(Y[_0x544c30['type']]||_0x2516e6)(_0x4ecfa2,_0x544c30['name'],_0x544c30['attributes'],_0x827704);}}['_getDiff'](_0x142f94,_0x1a0c96=null){const _0xce5904=this['repository']['getRevision'](_0x142f94),_0x33be4b=_0x1a0c96?this['repository']['getRevision'](_0x1a0c96):null,_0x1a4912=this['_getRevisionsRange'](_0xce5904,_0x33be4b),_0x58a683=_0x1a4912[_0x1a4912['length']-0x1],_0x4af7d4=new Map(),_0xe12a2={'model':{},'attributes':{},'changes':[]},_0x2096bd=new Set(),_0x17220e=new Map();for(let _0x4161d1=_0x1a4912['length']-0x1;_0x4161d1>=0x0;_0x4161d1--){const _0x5c9442=_0x1a4912[_0x4161d1];for(const _0x3fbca6 of Object['keys'](_0x5c9442['diffData']))if(_0x5c9442['diffData'][_0x3fbca6]['attachChange']){const _0x37df47=_0x5c9442['diffData'][_0x3fbca6]['attachChange'];_0x37df47['isAttached']?(_0x2096bd['add'](_0x3fbca6),_0x17220e['has'](_0x3fbca6)&&_0x17220e['get'](_0x3fbca6)['userId']==_0x37df47['userId']?_0x17220e['delete'](_0x3fbca6):_0x17220e['set'](_0x3fbca6,_0x37df47)):_0x17220e['has'](_0x3fbca6)?(_0x2096bd['delete'](_0x3fbca6),_0x17220e['delete'](_0x3fbca6)):(_0x2096bd['add'](_0x3fbca6),_0x17220e['set'](_0x3fbca6,_0x37df47));}else _0x2096bd['add'](_0x3fbca6);}for(const _0x3592f1 of _0x2096bd){const _0x5b40b9=_0x17220e['has'](_0x3592f1)&&!_0x17220e['get'](_0x3592f1)['isAttached'];let _0x2e448a=_0x5b40b9?_0x1a4912['length']-0x1:0x0;const _0x5ac7c5=_0x5b40b9?-0x1:0x1;for(;_0x1a4912[_0x2e448a];){const _0xf5856e=_0x1a4912[_0x2e448a];if(_0xf5856e['diffData'][_0x3592f1]){const _0x199cb0=_0x5b40b9?_0xf5856e['diffData'][_0x3592f1]['attributesBefore']:_0xf5856e['diffData'][_0x3592f1]['attributesAfter'];_0xe12a2['attributes'][_0x3592f1]=_0x199cb0?_0x100481(_0x199cb0):{};break;}_0x2e448a+=_0x5ac7c5;}}for(const _0x49c4e0 of _0x1a4912){_0x49c4e0['model']={};for(const _0xc06e22 of _0x49c4e0['authors'])_0x4af7d4['set'](_0xc06e22['id'],_0xc06e22);for(const _0x28ee50 of _0x2096bd){const _0x25d596=_0x49c4e0['diffData'][_0x28ee50]?_0x49c4e0['diffData'][_0x28ee50]['insertions']:'[]',_0x28b5ce=_0x49c4e0['diffData'][_0x28ee50]?_0x49c4e0['diffData'][_0x28ee50]['deletions']:'[]';_0x49c4e0['model'][_0x28ee50]={'insertions':this['_makeModelFromViewString'](_0x25d596),'deletions':this['_makeModelFromViewString'](_0x28b5ce)};}}for(const _0x4b8429 of _0x2096bd){let _0x2b8300=null,_0x319c57=0x0;const _0x313d54=new Map(Array['from'](_0xce5904['model'][_0x4b8429]['insertions']['markers'])['filter'](([_0x385960])=>!_0x385960['startsWith']('revision:')));let _0x13967d=0x0;for(const _0x539a41 of _0x1a4912){const _0x2db2a0=this['_makeTape'](_0x539a41['model'][_0x4b8429]['insertions']);_0x539a41==_0xce5904?(_0x2b8300=_0x2db2a0,_0x319c57=_0x2b8300['length'],_0x2b8300['forEach'](_0x272a14=>{_0x272a14['id']=_0x13967d++;}),this['_processTape'](_0x2b8300)):this['_markInsertions'](_0x2b8300,_0x2db2a0);const _0x118dcf=_0x2b8300['filter'](_0x2c6228=>!_0x2c6228['isAdded'])['map'](_0x3e7081=>_0x3e7081['id']);let _0xa24051=0x0;const _0x26030c=this['_makeTape'](_0x539a41['model'][_0x4b8429]['deletions']);_0x26030c['forEach'](_0x105849=>{_0x105849['isRemoved']?_0x105849['id']=_0x319c57++:_0x105849['id']=_0x118dcf[_0xa24051++];}),this['_processTape'](_0x26030c),this['_setDistance'](_0x2b8300,'isAdded'),this['_setDistance'](_0x26030c,'isRemoved'),_0x539a41==_0xce5904&&this['_markMarkers'](_0x2b8300,_0x313d54),_0x2b8300=this['_joinTapes'](_0x2b8300,_0x26030c),this['_refreshStartEndIndex'](_0x2b8300),this['_setDistance'](_0x2b8300,'isRemoved');}_0x2b8300=_0x2b8300['filter'](_0x186c45=>!(_0x186c45['isAdded']&&_0x186c45['isRemoved']));const _0x53d48c=new Map(_0x58a683['model'][_0x4b8429]['deletions']['markers']),_0x54dbf3=new Set(_0x313d54['keys']());for(const _0x3022c7 of _0x53d48c['keys']())_0x54dbf3['delete'](_0x3022c7);this['_markSuggestions'](_0x2b8300,_0x54dbf3),this['_fixObsoleteTags'](_0x2b8300),_0x2b8300=this['_removeMissingPairs'](_0x2b8300),_0x2b8300=this['_markMismatchedRemovedTags'](_0x2b8300),_0x2b8300=this['_removeUnsupportedChanges'](_0x2b8300);const {root:_0x3f102e,changes:_0x3b7170}=this['_makeModelFromTape'](_0x2b8300,_0x4af7d4,_0x4b8429);_0xe12a2['model'][_0x4b8429]=_0x3f102e;const _0x4d335e=_0x17220e['get'](_0x4b8429);if(_0x4d335e){const _0x5bd35f=_0x4af7d4['get'](_0x4d335e['userId']),_0x40f84e=new r({'author':_0x5bd35f,'type':_0x4d335e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4b8429});_0x3b7170['unshift'](_0x40f84e),_0xe12a2['attributes'][_0x4b8429]['revisionHistoryAttachChange']=_0x40f84e['id'];}_0xe12a2['changes']=_0xe12a2['changes']['concat'](_0x3b7170);}return _0xe12a2;}['_markMarkers'](_0x25cba3,_0x58e43f){for(let _0xb9565f=0x0;_0xb9565f<_0x25cba3['length'];_0xb9565f++)for(const [_0x47b948,_0x36de5d]of _0x58e43f)_0x36de5d['start']['isEqual'](_0x25cba3[_0xb9565f]['previousPosition'])&&_0x25cba3[_0xb9565f]['markersStart']['push'](_0x47b948),_0x36de5d['end']['isEqual'](_0x25cba3[_0xb9565f]['nextPosition'])&&_0x25cba3[_0xb9565f]['markersEnd']['push'](_0x47b948);}['_joinTapes'](_0x32b3eb,_0x51edb1){let _0x32ab1e=[],_0x25f26d=0x0,_0x187b01=0x0;for(;_0x25f26d<_0x32b3eb['length']||_0x187b01<_0x51edb1['length'];){const _0x179835=_0x32b3eb[_0x25f26d]||{},_0x306290=_0x51edb1[_0x187b01]||{};if(_0x179835['id']==_0x306290['id'])_0x25f26d++,_0x187b01++,_0x32ab1e['push'](_0x179835);else{if(_0x306290['isRemoved']&&_0x179835['isAdded']){const {commonTape:_0x3f6a62,iEnd:_0x2aef2b,jEnd:_0x2f5a93}=this['_threeWayMerge'](_0x32b3eb,_0x25f26d,_0x51edb1,_0x187b01);_0x32ab1e=_0x32ab1e['concat'](_0x3f6a62),_0x25f26d=_0x2aef2b,_0x187b01=_0x2f5a93;}else _0x306290['isRemoved']?(_0x187b01++,_0x32ab1e['push'](_0x306290)):(_0x25f26d++,_0x32ab1e['push'](_0x179835));}}return _0x32ab1e;}['_markSuggestions'](_0x54949e,_0x1e8b72){const _0x7ee0bd=[];for(let _0x59f19d=0x0;_0x59f19d<_0x54949e['length'];_0x59f19d++){for(let _0x5d42d7=0x0;_0x5d42d7<_0x54949e[_0x59f19d]['markersStart']['length'];_0x5d42d7++){const _0x295fde=_0x54949e[_0x59f19d]['markersStart'][_0x5d42d7];if(!_0x1e8b72['has'](_0x295fde))continue;const {group:_0x53dccf,type:_0x5ad3f8,authorId:_0x322aea}=_0x16a25a(_0x295fde);'revision-suggestion'!=_0x53dccf||'insertion'!=_0x5ad3f8&&'deletion'!=_0x5ad3f8||(_0x7ee0bd['unshift']({'type':_0x5ad3f8,'name':_0x295fde,'userId':_0x322aea}),_0x54949e[_0x59f19d]['markersStart']['splice'](_0x5d42d7,0x1),_0x5d42d7--);}_0x41b002(_0x54949e[_0x59f19d]);for(let _0x5801f2=0x0;_0x5801f2<_0x54949e[_0x59f19d]['markersEnd']['length'];_0x5801f2++){const _0x2101b8=_0x54949e[_0x59f19d]['markersEnd'][_0x5801f2];if(!_0x1e8b72['has'](_0x2101b8))continue;const {group:_0x2c901a,type:_0x49fe42}=_0x16a25a(_0x2101b8);if('revision-suggestion'!=_0x2c901a||'insertion'!=_0x49fe42&&'deletion'!=_0x49fe42)continue;_0x54949e[_0x59f19d]['markersEnd']['splice'](_0x5801f2,0x1),_0x5801f2--;const _0x1621e2=_0x7ee0bd['findIndex'](_0x3eee85=>_0x3eee85['name']==_0x2101b8);_0x1621e2>-0x1&&_0x7ee0bd['splice'](_0x1621e2,0x1);}}function _0x16a25a(_0x3ae246){const _0x5ea008=_0x3ae246['split'](':');return{'group':_0x5ea008[0x0],'type':_0x5ea008[0x1],'subType':_0x5ea008['length']>=0x5?_0x5ea008[0x2]:null,'id':_0x5ea008['length']<0x5?_0x5ea008[0x2]:_0x5ea008[0x3],'authorId':_0x5ea008['length']<0x5?_0x5ea008[0x3]:_0x5ea008[0x4],'markerCount':0x6==_0x5ea008['length']?_0x5ea008[0x5]:null};}function _0x41b002(_0x3e821e){for(let _0x1f14b3=0x0;_0x1f14b3<_0x7ee0bd['length'];_0x1f14b3++){if(_0x3e821e['isAdded']&&'insertion'==_0x7ee0bd[_0x1f14b3]['type'])return _0x3e821e['isAddSuggestion']=_0x7ee0bd[_0x1f14b3],void delete _0x3e821e['isAdded'];if(!_0x3e821e['isAdded']&&!_0x3e821e['isRemoved']&&'deletion'==_0x7ee0bd[_0x1f14b3]['type'])return void(_0x3e821e['isRemoveSuggestion']=_0x7ee0bd[_0x1f14b3]);}}}['_setDistance'](_0x2df603,_0x576817){let _0x67514d=0x0,_0x54725f=!0x1;const _0x3ba60e=new Map();for(const _0x279da0 of _0x2df603)_0x279da0[_0x576817]?_0x54725f&&(_0x67514d++,_0x54725f=!0x1):(_0x67514d++,_0x54725f=!0x0),_0x3ba60e['set'](_0x279da0['id'],_0x67514d);for(let _0x4fc2a3=0x0;_0x4fc2a3<_0x2df603['length'];_0x4fc2a3++){if('isRemoved'==_0x576817&&_0x2df603[_0x4fc2a3]['isAdded']||'isAdded'==_0x576817&&_0x2df603[_0x4fc2a3]['isRemoved'])continue;if('text'==_0x2df603[_0x4fc2a3]['type']){_0x2df603[_0x4fc2a3]['distance']=0x0;continue;}const _0x4b4b10=_0x3ba60e['get'](_0x2df603[_0x4fc2a3]['pairId']),_0x10acae=_0x3ba60e['get'](_0x2df603[_0x4fc2a3]['id']);_0x2df603[_0x4fc2a3]['distance']=_0x4b4b10-_0x10acae;}}['_getRevisionsRange'](_0x488eec,_0xe7abff,_0x13adfc=!0x1){const _0x63f049=[];let _0x5f5e8b=this['repository']['getIndex'](_0x488eec),_0x52e0be=this['repository']['getIndex'](_0xe7abff);for(-0x1==_0x52e0be&&(_0x52e0be=this['repository']['_revisions']['length'],_0x13adfc=!0x1);_0x5f5e8b<_0x52e0be;)_0x63f049['push'](this['repository']['getRevision'](_0x5f5e8b)),_0x5f5e8b++;return _0x13adfc&&_0x63f049['push'](this['repository']['getRevision'](_0x5f5e8b)),_0x63f049;}['_threeWayMerge'](_0x559f16,_0x20b314,_0x2d5995,_0x37d4b7){const _0x4d7a0f=this['editor']['model']['schema'];let _0x227f32=_0x20b314;for(;_0x559f16[_0x227f32]&&_0x559f16[_0x227f32]['isAdded'];)_0x227f32++;let _0x58022d=_0x37d4b7;for(;_0x2d5995[_0x58022d]&&_0x2d5995[_0x58022d]['isRemoved'];)_0x58022d++;_0x5ecd4c(_0x559f16,_0x20b314,_0x227f32),_0x5ecd4c(_0x2d5995,_0x37d4b7,_0x58022d);const _0x237139=_0x2d5995['slice'](_0x37d4b7,_0x58022d)['concat'](_0x559f16['slice'](_0x20b314,_0x227f32));return _0x237139['sort']((_0x37a2cc,_0x4e65b7)=>_0x37a2cc['side']!=_0x4e65b7['side']?_0x37a2cc['side']-_0x4e65b7['side']:_0x37a2cc['level']!=_0x4e65b7['level']?_0x37a2cc['level']-_0x4e65b7['level']:_0x37a2cc['distance']!=_0x4e65b7['distance']?_0x4e65b7['distance']-_0x37a2cc['distance']:!!_0x37a2cc['isAdded']!=!!_0x4e65b7['isAdded']?-0x1==_0x37a2cc['side']||0x0==_0x37a2cc['side']?_0x37a2cc['isAdded']?-0x1:0x1:_0x37a2cc['isAdded']?0x1:-0x1:_0x37a2cc['index']-_0x4e65b7['index']),{'commonTape':_0x237139,'iEnd':_0x227f32,'jEnd':_0x58022d};function _0x5ecd4c(_0x620edc,_0xdcd2,_0x4b4905){let _0x37f9bf=-0x1,_0x2cea96=Number['POSITIVE_INFINITY'],_0x35f862=!0x0;for(let _0x4adf32=_0xdcd2;_0x4adf32<_0x4b4905;_0x4adf32++)if(_0x4d7a0f['isInline'](_0x620edc[_0x4adf32]['item'])||(_0x35f862=!0x1),_0x620edc[_0x4adf32]['item']['startIndex']<_0xdcd2&&(_0x37f9bf=_0x4adf32),_0x620edc[_0x4adf32]['item']['endIndex']>=_0x4b4905){_0x2cea96=_0x4adf32;break;}_0x35f862&&(_0x37f9bf=_0x4b4905-0x1);for(let _0x1a0715=_0xdcd2;_0x1a0715<_0x4b4905;_0x1a0715++)_0x620edc[_0x1a0715]['side']=_0x1a0715<=_0x37f9bf?-0x1:_0x1a0715<_0x2cea96?0x0:0x1,_0x620edc[_0x1a0715]['index']=_0x1a0715;let _0x3cd745=0x0;for(let _0x56776c=_0xdcd2;_0x56776c<=_0x37f9bf;_0x56776c++)0x0==_0x620edc[_0x56776c]['distance']?_0x620edc[_0x56776c]['level']=_0x3cd745:(_0x3cd745++,_0x620edc[_0x56776c]['level']=_0x3cd745,_0x3cd745++);for(let _0x41d055=_0xdcd2;_0x41d055<_0x4b4905;_0x41d055++)0x0==_0x620edc[_0x41d055]['side']&&(_0x620edc[_0x41d055]['level']=_0x3cd745);_0x3cd745=0x0;for(let _0x340757=_0x4b4905-0x1;_0x340757>=_0x2cea96;_0x340757--)0x0==_0x620edc[_0x340757]['distance']?_0x620edc[_0x340757]['level']=_0x3cd745:(_0x3cd745--,_0x620edc[_0x340757]['level']=_0x3cd745,_0x3cd745--);}}['_fixObsoleteTags'](_0x5af043){const _0x289ba2=new Map(),_0x1f37d2=this['editor']['model']['schema'];for(let _0x29c59f=0x1;_0x29c59f<_0x5af043['length'];_0x29c59f++){let _0x1cf291,_0x25638e,_0x5557d5;const _0x478a62=_0x5af043[_0x29c59f],_0x3ebc31=_0x5af043[_0x29c59f-0x1];if('text'==_0x478a62['type'])continue;if(_0x478a62['type']!=_0x3ebc31['type'])continue;if(!_0x1f37d2['isBlock'](_0x3ebc31['item'])||_0x1f37d2['isLimit'](_0x3ebc31['item']))continue;if(!_0x1f37d2['isBlock'](_0x478a62['item'])||_0x1f37d2['isLimit'](_0x478a62['item']))continue;if((_0x5af043[_0x29c59f]['isAdded']||_0x5af043[_0x29c59f]['isAddSuggestion'])&&_0x5af043[_0x29c59f-0x1]['isRemoved'])_0x1cf291=_0x5af043[_0x29c59f],_0x25638e=_0x5af043[_0x29c59f-0x1],_0x5557d5=_0x29c59f-0x1;else{if(!_0x5af043[_0x29c59f]['isRemoved']||!_0x5af043[_0x29c59f-0x1]['isAdded']&&!_0x5af043[_0x29c59f-0x1]['isAddSuggestion'])continue;_0x1cf291=_0x5af043[_0x29c59f-0x1],_0x25638e=_0x5af043[_0x29c59f],_0x5557d5=_0x29c59f;}const _0x1d42c1=_0x1cf291['level']==_0x25638e['level'],_0x1db01c=Math['abs'](_0x1cf291['level'])<Math['abs'](_0x25638e['level'])&&0x0==_0x25638e['distance'];(_0x1d42c1||_0x1db01c)&&(_0x289ba2['set'](_0x25638e['id'],_0x1cf291['id']),_0x5af043['splice'](_0x5557d5,0x1),_0x29c59f--,_0x1cf291['isAdded']=!0x1);}for(let _0x5348a1=0x0;_0x5348a1<_0x5af043['length'];_0x5348a1++)_0x289ba2['has'](_0x5af043[_0x5348a1]['pairId'])&&(_0x5af043[_0x5348a1]['pairId']=_0x289ba2['get'](_0x5af043[_0x5348a1]['pairId']));}['_removeMissingPairs'](_0x463303){const _0x1dd758=new Set(_0x463303['map'](_0x554d00=>_0x554d00['id']));for(let _0x3480f8=0x0;_0x3480f8<_0x463303['length'];_0x3480f8++)_0x1dd758['has'](_0x463303[_0x3480f8]['pairId'])||0x0==_0x463303[_0x3480f8]['distance']||(_0x463303[_0x3480f8]['isIncorrect']=!0x0);return _0x463303['filter'](_0x5e5408=>!_0x5e5408['isIncorrect']);}['_markMismatchedRemovedTags'](_0x225cea){const _0x3699c1=new Set();for(let _0x156aa6=0x0;_0x156aa6<_0x225cea['length'];_0x156aa6++){if(_0x3699c1['has'](_0x225cea[_0x156aa6]['id'])&&_0x225cea[_0x156aa6]['isRemoved']&&(_0x225cea[_0x156aa6]['isIncorrect']=!0x0),_0x225cea[_0x156aa6]['isIncorrect'])continue;if(0x0==_0x225cea[_0x156aa6]['distance'])continue;if('elementStart'!=_0x225cea[_0x156aa6]['type'])continue;if(null==_0x225cea[_0x156aa6]['pairId'])continue;let _0x213689=_0x156aa6+0x1,_0x22bc91=0x0;for(;_0x225cea[_0x213689]['id']!=_0x225cea[_0x156aa6]['pairId'];)'elementStart'==_0x225cea[_0x213689]['type']?_0x22bc91++:'elementEnd'==_0x225cea[_0x213689]['type']&&_0x22bc91--,_0x213689++;if(0x0!=_0x22bc91){if(_0x225cea[_0x156aa6]['isRemoved'])_0x225cea[_0x156aa6]['isIncorrect']=!0x0;else{for(;_0x213689!=_0x156aa6;)_0x225cea[_0x213689]['isRemoved']&&0x0!=_0x225cea[_0x213689]['distance']&&(_0x225cea[_0x213689]['isIncorrect']=!0x0,_0x3699c1['add'](_0x225cea[_0x213689]['pairId'])),_0x213689--;}}}return _0x225cea['filter'](_0x3e872d=>!_0x3e872d['isIncorrect']);}['_removeUnsupportedChanges'](_0x408da0){const _0x3b49b7=this['editor']['model']['schema'];for(let _0x323288=0x0;_0x323288<_0x408da0['length'];_0x323288++){if(!(_0x408da0[_0x323288]['isAdded']||_0x408da0[_0x323288]['isAddSuggestion']||_0x408da0[_0x323288]['isRemoved']||_0x408da0[_0x323288]['isRemoveSuggestion']))continue;if(0x0==_0x408da0[_0x323288]['distance'])continue;const _0x40af1f=_0x408da0[_0x323288]['item'];_0x3b49b7['isBlock'](_0x40af1f)||_0x3b49b7['isLimit'](_0x40af1f)||(_0x408da0[_0x323288]['isAdded']&&delete _0x408da0[_0x323288]['isAdded'],_0x408da0[_0x323288]['isAddSuggestion']&&delete _0x408da0[_0x323288]['isAddSuggestion'],_0x408da0[_0x323288]['isRemoveSuggestion']&&delete _0x408da0[_0x323288]['isRemoveSuggestion'],_0x408da0[_0x323288]['isRemoved']&&(_0x408da0[_0x323288]['isIncorrect']=!0x0));}return _0x408da0['filter'](_0x1b46be=>!_0x1b46be['isIncorrect']);}['_makeModelFromTape'](_0x1ae75b,_0x2d0507,_0x37c139){const _0x5be5d7=new mt(),_0xa59845=[],_0x77654d=new Map(),_0x425e7f=this['editor']['model'],_0x47d1c7=_0x425e7f['schema'],_0x439211=[_0x5be5d7],_0x7d7ad3={},_0x151894={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3ac3bd=null;const _0x3e39c4=[0x0];for(let _0x452f79=0x0;_0x452f79<_0x1ae75b['length'];_0x452f79++)if('elementStart'===_0x1ae75b[_0x452f79]['type']){_0x1ae75b[_0x452f79]['previousPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4);const _0x8f04b8=new ft(_0x1ae75b[_0x452f79]['item']['name'],_0x1ae75b[_0x452f79]['item']['getAttributes']());_0x439211[0x0]['_appendChild'](_0x8f04b8),_0x3e39c4['push'](0x0),_0x439211['unshift'](_0x8f04b8),_0x1ae75b[_0x452f79]['nextPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4);}else'elementEnd'===_0x1ae75b[_0x452f79]['type']?(_0x439211['shift'](),_0x1ae75b[_0x452f79]['previousPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4),_0x3e39c4['pop'](),_0x3e39c4[_0x3e39c4['length']-0x1]++,_0x1ae75b[_0x452f79]['nextPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4)):(_0x1ae75b[_0x452f79]['previousPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4),_0x3ac3bd?_0x3ac3bd['_data']+=_0x1ae75b[_0x452f79]['item']['data']:_0x3ac3bd=new wt(_0x1ae75b[_0x452f79]['item']['data'],_0x1ae75b[_0x452f79]['item']['getAttributes']()),_0x1ae75b[_0x452f79+0x1]&&'text'===_0x1ae75b[_0x452f79+0x1]['type']&&_0x572540(_0x3ac3bd,_0x1ae75b[_0x452f79+0x1]['item'])||(_0x439211[0x0]['_appendChild'](_0x3ac3bd),_0x3ac3bd=null),_0x3e39c4[_0x3e39c4['length']-0x1]+=_0x1ae75b[_0x452f79]['item']['offsetSize'],_0x1ae75b[_0x452f79]['nextPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4));for(let _0x5a2ea3=0x0;_0x5a2ea3<_0x1ae75b['length'];_0x5a2ea3++){const _0x547075=_0x1ae75b[_0x5a2ea3]['previousPosition'],_0x13ed93=_0x1ae75b[_0x5a2ea3]['nextPosition'];for(const _0x15add0 of _0x1ae75b[_0x5a2ea3]['markersStart'])_0x77654d['set'](_0x15add0,{'start':_0x547075,'end':null});_0x1a1612('isRemoveSuggestion',_0x5a2ea3,_0x547075,_0x13ed93),_0x1a1612('isAddSuggestion',_0x5a2ea3,_0x547075,_0x13ed93),_0x1a1612('isRemoved',_0x5a2ea3,_0x547075,_0x13ed93),_0x1a1612('isAdded',_0x5a2ea3,_0x547075,_0x13ed93);for(const _0x15e37c of _0x1ae75b[_0x5a2ea3]['markersEnd']){_0x77654d['get'](_0x15e37c)['end']=_0x13ed93;}}for(const [_0x4d5dd2,_0x34ce05]of _0x77654d){const _0x5432b0=this['editor']['model']['createRange'](_0x34ce05['start'],_0x34ce05['end']);_0x5be5d7['markers']['set'](_0x4d5dd2,_0x5432b0);}return _0xa59845['sort']((_0xca537e,_0x220ad1)=>{const _0x4b5fcf=_0x5be5d7['markers']['get']('revision:'+_0xca537e['id']),_0x5c9f1b=_0x5be5d7['markers']['get']('revision:'+_0x220ad1['id']);return _0x4b5fcf['start']['isBefore'](_0x5c9f1b['start'])?-0x1:_0x4b5fcf['start']['isAfter'](_0x5c9f1b['start'])?0x1:_0x4b5fcf['end']['isBefore'](_0x5c9f1b['end'])?-0x1:_0x4b5fcf['end']['isAfter'](_0x5c9f1b['end'])?0x1:'add'===_0xca537e['type']?-0x1:0x1;}),{'root':_0x5be5d7,'changes':_0xa59845};function _0x1a1612(_0x355b6e,_0x52fc2b,_0xb1395,_0x3f770e){const _0x9ee139=!!_0x1ae75b[_0x52fc2b][_0x355b6e],_0x59147f=_0x9ee139?_0x1ae75b[_0x52fc2b][_0x355b6e]['userId']:null,_0x325254=_0x52fc2b===_0x1ae75b['length']-0x1,_0xc095ac=_0x151894[_0x355b6e][0x0],_0x365c0a=_0x47d1c7['isObject'](_0x1ae75b[_0x52fc2b]['item']);!_0x7d7ad3[_0x355b6e]&&_0x9ee139?_0x7d7ad3[_0x355b6e]={'start':_0xb1395,'tapeItem':_0x1ae75b[_0x52fc2b],'userId':_0x59147f,'type':_0x355b6e}:_0x7d7ad3[_0x355b6e]&&!_0x9ee139?(_0x7d7ad3[_0x355b6e]['end']=_0xb1395,_0x27a5e8(_0x7d7ad3[_0x355b6e]),_0x7d7ad3[_0x355b6e]=null):_0x7d7ad3[_0x355b6e]&&_0x9ee139&&_0x7d7ad3[_0x355b6e]['userId']!==_0x59147f&&(_0x7d7ad3[_0x355b6e]['end']=_0xb1395,_0xc095ac&&_0xc095ac['userId']===_0x7d7ad3[_0x355b6e]['userId']||_0x27a5e8(_0x7d7ad3[_0x355b6e]),_0x7d7ad3[_0x355b6e]={'start':_0xb1395,'tapeItem':_0x1ae75b[_0x52fc2b],'userId':_0x59147f,'type':_0x355b6e}),_0x7d7ad3[_0x355b6e]&&_0x365c0a&&('elementStart'!==_0x1ae75b[_0x52fc2b]['type']||_0xc095ac&&_0xc095ac['userId']===_0x59147f||_0x151894[_0x355b6e]['unshift']({'userId':_0x59147f,'object':_0x1ae75b[_0x52fc2b]['item'],'change':_0x7d7ad3[_0x355b6e]}),'elementEnd'===_0x1ae75b[_0x52fc2b]['type']&&_0xc095ac&&_0xc095ac['object']===_0x1ae75b[_0x52fc2b]['item']&&(_0x151894[_0x355b6e]['shift'](),_0x7d7ad3[_0x355b6e]=_0xc095ac['change'])),_0x7d7ad3[_0x355b6e]&&_0x325254&&(_0x7d7ad3[_0x355b6e]['end']=_0x3f770e,_0x27a5e8(_0x7d7ad3[_0x355b6e]),_0x7d7ad3[_0x355b6e]=null);}function _0x27a5e8({start:_0x50f727,end:_0x4dcd85,tapeItem:_0x2bc386,userId:_0x3b4f5a,type:_0x49b5b6}){const _0x57ab1b=_0x2bc386['item'],_0x3276b7=_0x425e7f['schema']['isBlock'](_0x57ab1b)&&!_0x425e7f['schema']['isLimit'](_0x57ab1b),_0x434050=_0x50f727['nodeAfter']==_0x4dcd85['parent']&&_0x4dcd85['isAtStart'];if(_0x3276b7&&_0x434050)return;const _0x3f512e=_0x425e7f['createRange'](_0x50f727,_0x4dcd85),_0x45b519=_0x2d0507['get'](_0x3b4f5a),_0x2fb743=new r({'author':_0x45b519,'type':'isAdded'==_0x49b5b6||'isAddSuggestion'==_0x49b5b6?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x49b5b6||'isRemoveSuggestion'==_0x49b5b6},'createdAt':new Date(),'rootName':_0x37c139});_0xa59845['push'](_0x2fb743),_0x5be5d7['markers']['set']('revision:'+_0x2fb743['id'],_0x3f512e);}function _0x572540(_0x320613,_0x3f57d2){const _0x20aaa5=_0x320613['getAttributes'](),_0x3b6f7a=_0x3f57d2['getAttributes']();for(const _0x7c83b6 of _0x20aaa5){if(_0x7c83b6[0x1]!==_0x3f57d2['getAttribute'](_0x7c83b6[0x0]))return!0x1;_0x3b6f7a['next']();}return _0x3b6f7a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x400646=>{const _0x243df4=_0x400646['markerName']['split'](':')[0x1],_0x2e2c7f=this['_getChangeFromId'](_0x243df4);if(!_0x2e2c7f)return null;const _0x4ef527='add'==_0x2e2c7f['type']?'insertion':'deletion',_0xc15029=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4ef527];return _0x2e2c7f['data']['isSuggestion']&&_0xc15029['push']('ck-suggestion-marker-'+_0x4ef527+'-new'),this['activeChange']==_0x2e2c7f&&_0xc15029['push']('ck-suggestion-marker--active'),{'classes':_0xc15029,'attributes':{'data-change-id':_0x243df4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xcf660f=>{_0xcf660f['on']('element:pre',(_0x5cb6f4,_0x2dc0e1,_0x245cd5)=>{const _0x41f5e9=_0x2dc0e1['viewItem']['getChild'](0x0);if(!_0x41f5e9||!_0x41f5e9['is']('element','code'))return;if(!_0x245cd5['consumable']['consume'](_0x41f5e9,{'attributes':['vid_start','vid_end']}))return;const _0x136c01=_0x2dc0e1['modelRange']['start']['nodeAfter'];_0x245cd5['writer']['setAttribute']('vid_start',_0x41f5e9['getAttribute']('vid_start'),_0x136c01),_0x245cd5['writer']['setAttribute']('vid_end',_0x41f5e9['getAttribute']('vid_end'),_0x136c01);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x11479d=>{_0x11479d['on']('element',(_0x2a70c6,_0x5e2dd8,_0x108d92)=>{if(!_0x108d92['consumable']['consume'](_0x5e2dd8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5e2dd8['modelRange']['isCollapsed'])return;const _0x1f653c=_0x5e2dd8['modelRange']['start']['nodeAfter'];_0x1f653c['hasAttribute']('vid_start')||_0x1f653c['hasAttribute']('vid')||(_0x108d92['writer']['setAttribute']('vid_start',_0x5e2dd8['viewItem']['getAttribute']('vid_start'),_0x1f653c),_0x108d92['writer']['setAttribute']('vid_end',_0x5e2dd8['viewItem']['getAttribute']('vid_end'),_0x1f653c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x207692=>_0x207692['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x19f60e,[,_0x408b18])=>{['vid_start','vid_end','vid']['includes'](_0x408b18)&&(_0x19f60e['return']=!0x0,_0x19f60e['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x42baa3=>{_0x42baa3['on']('attribute:vid',(_0x3eb693,_0x343933,_0xb2368b)=>{if('\x20'!=_0x343933['item']['data']||_0x343933['item']['parent']['maxOffset']>0x1)return;if(!_0xb2368b['consumable']['consume'](_0x343933['item'],_0x3eb693['name']))return;const _0x5c63f7=_0xb2368b['writer'],_0x4392cc=_0xb2368b['mapper']['toViewRange'](_0x343933['range']);_0x5c63f7['wrap'](_0x4392cc,_0x5c63f7['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x767809){const _0x261649=_0x767809['plugins']['get']('RevisionViewer');return(_0x259b20,_0x56fce8,_0x388508)=>{const _0x4aecf9=_0x56fce8['markerName']['split'](':')[0x1],_0x1d59e6=_0x261649['_getChangeFromId'](_0x4aecf9);if(!_0x1d59e6)return null;const _0x4abe55='add'==_0x1d59e6['type']?'split':'merge';if(!_0x388508['consumable']['test'](_0x56fce8['markerRange'],_0x259b20['name']))return;const _0x97842e=_0x56fce8['markerRange']['getWalker'](),_0x3c3f47=_0x56fce8['markerRange']['start'],_0x5ea223=_0x767809['model']['schema'];let _0x4748af=null,_0x40763f=null,_0x590324=!0x1,_0x2791ee=!0x1;for(const _0x1d7a07 of _0x97842e){const _0x3ceeb6=_0x1d7a07['item'];_0x590324=_0x590324||_0x5ea223['isContent'](_0x3ceeb6);const _0x219ca6=_0x388508['mapper']['toViewElement'](_0x3ceeb6);if(_0x219ca6&&_0x219ca6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d7a07['type']&&(_0x5ea223['isBlock'](_0x3ceeb6)&&!_0x5ea223['isLimit'](_0x3ceeb6)&&(_0x3ceeb6['nextSibling']||_0x3c3f47['isAtEnd']?_0x4748af&&_0x4748af['parent']==_0x3ceeb6||(_0x4748af=_0x3ceeb6,_0x3345b9(_0x1d7a07['previousPosition']),_0x2791ee=!0x0):_0x40763f=_0x40763f||_0x1d7a07['previousPosition']));}function _0x3345b9(_0x210fbf){const _0x528485=_0x388508['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4abe55}),_0x64314=_0x388508['mapper']['toViewPosition'](_0x210fbf);_0x1d59e6['data']['isSuggestion']&&_0x388508['writer']['addClass']('ck-suggestion-marker-'+_0x4abe55+'-new',_0x528485),_0x261649['activeChange']==_0x1d59e6&&_0x388508['writer']['addClass']('ck-suggestion-marker--active',_0x528485),_0x388508['writer']['insert'](_0x64314,_0x528485),_0x388508['mapper']['bindElementToMarker'](_0x528485,_0x56fce8['markerName']);}_0x590324||_0x2791ee||!_0x40763f||_0x3345b9(_0x40763f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x354c3d,_0x3efb41,_0x5e99d0)=>{const _0x3b5d98=_0x5e99d0['mapper']['markerNameToElements'](_0x3efb41['markerName']);if(_0x3b5d98){for(const _0x1f8544 of _0x3b5d98)(_0x1f8544['hasClass']('ck-suggestion-marker-split')||_0x1f8544['hasClass']('ck-suggestion-marker-merge'))&&(_0x5e99d0['mapper']['unbindElementFromMarkerName'](_0x1f8544,_0x3efb41['markerName']),_0x5e99d0['writer']['remove'](_0x1f8544));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x18adfe,_0x44cbd1,_0x330915)=>{const _0xaee9cd=_0x44cbd1['markerName']['split'](':')[0x1],_0x21a609=this['_getChangeFromId'](_0xaee9cd);if(!_0x21a609)return null;const _0x56398c='add'==_0x21a609['type']?'split':'merge';if(_0x330915['consumable']['test'](_0x44cbd1['markerRange'],_0x18adfe['name']))for(const _0x159c51 of _0x44cbd1['markerRange']['getItems']()){if(!_0x159c51['is']('element','softBreak'))continue;const _0x4892d2=_0x330915['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56398c}),_0x54f88b=_0x330915['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x159c51));_0x21a609['data']['isSuggestion']&&_0x330915['writer']['addClass']('ck-suggestion-marker-'+_0x56398c+'-new',_0x4892d2),this['activeChange']==_0x21a609&&_0x330915['writer']['addClass']('ck-suggestion-marker--active',_0x4892d2),_0x330915['writer']['insert'](_0x54f88b,_0x4892d2),_0x330915['mapper']['bindElementToMarker'](_0x4892d2,_0x44cbd1['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x52b630=>{for(const _0xec56be of this['editor']['model']['document']['getRootNames']()){const _0x19be2f=this['editor']['model']['document']['getRoot'](_0xec56be),_0x3ebd87=this['editor']['editing']['view']['document']['getRoot'](_0xec56be);if(_0x3ebd87){const _0x459296=_0x19be2f['getAttribute']('revisionHistoryAttachChange');if(_0x52b630['removeAttribute']('data-change-id',_0x3ebd87),_0x52b630['removeClass']('ck-revision-history-root-add',_0x3ebd87),_0x52b630['removeClass']('ck-revision-history-root-remove',_0x3ebd87),_0x52b630['removeClass']('ck-revision-history-root--active',_0x3ebd87),_0x459296){const _0x101cf4=this['_getChangeFromId'](_0x459296);if(!_0x101cf4)return null;_0x52b630['setAttribute']('data-change-id',_0x459296,_0x3ebd87),_0x52b630['addClass']('ck-revision-history-root-'+_0x101cf4['type'],_0x3ebd87),this['activeChange']==_0x101cf4&&_0x52b630['addClass']('ck-revision-history-root--active',_0x3ebd87);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xaf99a0=>'revision-comment:'+_0xaf99a0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x35e77e=>'revision-suggestion:'+_0x35e77e,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x51a4e2=>({'name':'suggestion:'+_0x51a4e2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5928fc=>{const _0x34e0a6=_0x5928fc['markerName']['split'](':')[0x1];return'insertion'!=_0x34e0a6&&'deletion'!=_0x34e0a6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x34e0a6]};}}),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',(_0x279aab,_0x34ee55,_0x5876c4)=>{const _0xe4a6a8=_0x5876c4['mapper']['markerNameToElements'](_0x34ee55['markerName']);if(_0xe4a6a8){for(const _0x186aa1 of _0xe4a6a8)_0x186aa1['is']('uiElement')&&(_0x5876c4['mapper']['unbindElementFromMarkerName'](_0x186aa1,_0x34ee55['markerName']),_0x5876c4['writer']['remove'](_0x186aa1));}},{'priority':'high'});}['_getChangeFromId'](_0x1431ce){return this['_changeIdToChange']['get'](_0x1431ce);}['_getViewForChange'](_0x5786fe){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x5786fe),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xf0d3db,_0x5ec916,_0x1371c9,_0x2b8d58)=>{_0x2b8d58&&this['_balloon']['remove'](_0x2b8d58),_0x1371c9&&(this['_balloon']['add']({'view':_0x1371c9,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x28c554=this['editor']['editing'],_0x3fc0ec=this['_getChangeFromId'](_0x1371c9['changeId']);let _0x39eb90;if(_0x3fc0ec['data']['isOnRoot']){const _0x42b9f3=_0x28c554['view']['getDomRoot'](_0x3fc0ec['rootName']);_0x39eb90=Array['from'](_0x42b9f3['getClientRects']());}else{const _0x3b51b4=this['editor']['model']['markers']['get']('revision:'+_0x1371c9['changeId']);_0x39eb90=Array['from'](_0x28c554['mapper']['markerNameToElements'](_0x3b51b4['name']))['map'](_0x4f741f=>_0x28c554['view']['domConverter']['mapViewToDom'](_0x4f741f))['map'](_0x2afdb4=>Array['from'](_0x2afdb4['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x39eb90[0x0];return _0x39eb90['find'](_0x363fda=>_0x363fda['top']-0x3<=this['_activeViewTarget']['y']&&_0x363fda['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x363fda['left']-0x3<=this['_activeViewTarget']['x']&&_0x363fda['right']+0x3>=this['_activeViewTarget']['x'])||_0x39eb90[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x518218,_0x498a97,_0x243b73,_0x32473f)=>{this['activeView']=_0x243b73?this['_getViewForChange'](_0x243b73):null,this['editor']['model']['change'](()=>{const _0x2ee541=this['editor']['editing'];_0x32473f&&(_0x32473f['data']['isOnRoot']?_0x2ee541['view']['change'](_0x1c6367=>{_0x1c6367['removeClass']('ck-revision-history-root--active',_0x2ee541['view']['document']['getRoot'](_0x32473f['rootName']));}):_0x2ee541['reconvertMarker']('revision:'+_0x32473f['id'])),_0x243b73&&(_0x243b73['data']['isOnRoot']?_0x2ee541['view']['change'](_0xd19909=>{_0xd19909['addClass']('ck-revision-history-root--active',_0x2ee541['view']['document']['getRoot'](_0x243b73['rootName']));}):_0x2ee541['reconvertMarker']('revision:'+_0x243b73['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x10fb0d,_0x4ae5b3)=>{if(this['activeChange'])return;const _0x3bd78e=this['_findChangeIdFromDomTarget'](_0x4ae5b3['target']),_0x406eda=this['_changeIdToChange']['get'](_0x3bd78e);_0x406eda?(this['_activeViewTarget']={'x':_0x4ae5b3['domEvent']['x'],'y':_0x4ae5b3['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x406eda)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x555eb8,_0x4af50e)=>{const _0x5a6276=this['_findChangeIdFromDomTarget'](_0x4af50e['target']),_0x12a7af=this['_changeIdToChange']['get'](_0x5a6276);_0x12a7af?(this['_activeViewTarget']={'x':_0x4af50e['domEvent']['x'],'y':_0x4af50e['domEvent']['y']},_0x12a7af===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x12a7af):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x28085d){do{const _0x250867=_0x28085d['getAttribute']('data-change-id');if(_0x250867)return _0x250867;_0x28085d=_0x28085d['parent'];}while(_0x28085d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x25ebcb=>{for(const _0xb05bde of this['editor']['model']['markers'])_0x25ebcb['removeMarker'](_0xb05bde);});}}function Z(_0x1ba9f0,_0x46cebf){return(_0x5af3fe,_0x114116,_0x1edc00)=>{if(!_0x1edc00['consumable']['test'](_0x114116['markerRange'],_0x5af3fe['name']))return;const _0x43a892=_0x114116['markerRange']['getWalker'](),_0x2543f5=_0x114116['markerRange']['start'],_0x5e191b=_0x1ba9f0['model']['schema'];let _0x4ff103=null,_0x5a5507=null,_0x12028d=!0x1,_0x501227=!0x1;for(const _0x254e8b of _0x43a892){const _0x369770=_0x254e8b['item'];_0x12028d=_0x12028d||_0x5e191b['isContent'](_0x369770);const _0x5a236e=_0x1edc00['mapper']['toViewElement'](_0x369770);if(_0x5a236e&&_0x5a236e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x254e8b['type']&&(_0x5e191b['isBlock'](_0x369770)&&!_0x5e191b['isLimit'](_0x369770)&&(_0x369770['nextSibling']||_0x2543f5['isAtEnd']?_0x4ff103&&_0x4ff103['parent']==_0x369770||(_0x4ff103=_0x369770,_0x51726a(_0x254e8b['previousPosition']),_0x501227=!0x0):_0x5a5507=_0x5a5507||_0x254e8b['previousPosition']));}function _0x51726a(_0x1c8bff){const _0x123b30=_0x1edc00['mapper']['toViewPosition'](_0x1c8bff),_0x104539=_0x1edc00['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x46cebf});_0x1edc00['writer']['insert'](_0x123b30,_0x104539),_0x1edc00['mapper']['bindElementToMarker'](_0x104539,_0x114116['markerName']);}_0x12028d||_0x501227||!_0x5a5507||_0x51726a(_0x5a5507);};}class pt extends _0x2e9ea6{constructor(_0x14dbfd){super(_0x14dbfd);const _0x34c4d2=_0x14dbfd['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x34c4d2,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x34c4d2,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x402523=this['editor'],_0x14a91e=_0x402523['plugins']['get'](d),_0x1a5e76=_0x14a91e['isReady']?_0x14a91e['diff']['newRevisionId']:null;_0x402523['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1a5e76);}['refresh'](){const {isReady:_0x22690b,isEnabled:_0x2a533b,repository:_0x51d6e7,diff:_0x4c2589}=this['editor']['plugins']['get'](d),_0x839b70=_0x4c2589&&_0x51d6e7['getLaterVisibleRevision'](_0x4c2589['newRevisionId']);this['isEnabled']=_0x22690b&&_0x2a533b&&Boolean(_0x839b70);}}class _t extends _0x2e9ea6{['_step'];constructor(_0xa69399,{direction:_0x40b6d5}){super(_0xa69399);const _0x2e9f0c=_0xa69399['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x40b6d5?0x1:-0x1,this['listenTo'](_0x2e9f0c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2e9f0c,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2e9f0c,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4265cf=this['editor'],_0x406ede=_0x4265cf['plugins']['get'](d),{isNavigationMode:_0x5359fd,currentChangeNumber:_0x464bae}=_0x406ede;let _0x3e9091;if(_0x406ede['activeChange']=_0x5359fd?_0x406ede['diff']['changes']['get'](_0x464bae+this['_step']):_0x406ede['diff']['changes']['first'],_0x406ede['activeChange']['data']['isOnRoot'])_0x3e9091=_0x4265cf['editing']['view']['getDomRoot'](_0x406ede['activeChange']['rootName']);else{const _0x2ae274=_0x4265cf['model']['markers']['get']('revision:'+_0x406ede['activeChange']['id']);_0x3e9091=_0x4ddfb7(_0x4265cf['editing'],_0x2ae274);}_0x47297b({'target':_0x3e9091,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x336dec,currentChangeNumber:_0x40d3e1,numberOfChanges:_0x17f8f9,isReady:_0x4f8e35,isEnabled:_0x42555e}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x42555e&&_0x4f8e35&&_0x17f8f9)&&(!_0x336dec||(0x1===this['_step']?_0x40d3e1<_0x17f8f9-0x1:_0x40d3e1>0x0));}}class li extends ts{constructor(_0x524a81){super(_0x524a81);const _0x3c52e8=this['bindTemplate'],_0x57cd8c=new te(_0x524a81),_0x85144f=new te(_0x524a81);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',(_0x44a547,_0x43c4ae)=>_0x44a547&&_0x43c4ae>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x422976,_0x584239,_0x3f5932,_0x175b99)=>{if(!_0x422976)return m(_0x524a81,'Loading...');if(!_0x3f5932)return m(_0x524a81,'No\x20changes');const _0x52425=m(_0x524a81,'NUMBER_OF_CHANGES',_0x3f5932);return _0x175b99?m(_0x524a81,'X_OF_Y_CHANGES',[_0x584239+0x1,_0x3f5932]):_0x52425;}),_0x57cd8c['set']({'label':m(_0x524a81,'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'}),_0x85144f['set']({'label':m(_0x524a81,'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'}),_0x57cd8c['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x85144f['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x57cd8c['on']('execute',()=>this['fire']('execute','backward')),_0x85144f['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',_0x3c52e8['if']('_isStatusLabelVisible','ck-hidden',_0x49cef4=>!_0x49cef4)]},'children':[{'text':_0x3c52e8['to']('isNavigationMode',_0x3a9ac5=>_0x3a9ac5?m(_0x524a81,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x524a81,'Total')+':\x20')}]},{'text':_0x3c52e8['to']('_statusText')}]},new _0x312ecc(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x57cd8c,_0x85144f]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x31326a{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x729a7c=this['editor']['editing']['view'];_0x729a7c['change'](_0x3d7a26=>{for(const _0x4a2973 of _0x729a7c['document']['roots'])_0x3d7a26['addClass'](le,_0x4a2973);});}['hide'](){const _0x2bc64e=this['editor']['editing']['view'];_0x2bc64e['change'](_0x5ccdce=>{for(const _0xd564cb of _0x2bc64e['document']['roots'])_0x5ccdce['removeClass'](le,_0xd564cb);});}}class g extends _0x31326a{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x49a9ff=this['editor'],_0x1de406=_0x49a9ff['plugins']['get'](d),_0x17e488=_0x49a9ff['plugins']['get'](ge);_0x49a9ff['ui']['componentFactory']['add']('exitToEditing',_0x3945bb=>{const _0x118fd9=new te(_0x3945bb);return _0x118fd9['set']({'label':m(_0x3945bb,'Back\x20to\x20editing'),'icon':_0x57512f['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x118fd9,'execute',()=>{_0x49a9ff['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x118fd9;}),_0x49a9ff['ui']['componentFactory']['add']('restoreRevision',_0x47b2da=>{const _0x2393bb=new te(_0x47b2da);return _0x2393bb['set']({'label':m(_0x47b2da,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2393bb['bind']('isEnabled')['to'](_0x49a9ff['commands']['get']('restoreRevision')),this['listenTo'](_0x2393bb,'execute',()=>_0x49a9ff['execute']('restoreRevision')),_0x2393bb;}),_0x49a9ff['ui']['componentFactory']['add']('changesNavigation',_0x3684d4=>{const _0x377f5b=new li(_0x3684d4),_0xaea742=_0x49a9ff['commands']['get']('showPreviousChange'),_0x2f2b46=_0x49a9ff['commands']['get']('showNextChange');return _0x377f5b['bind']('isBackwardNavigationEnabled')['to'](_0xaea742,'isEnabled'),_0x377f5b['bind']('isForwardNavigationEnabled')['to'](_0x2f2b46,'isEnabled'),_0x377f5b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1de406),this['listenTo'](_0x377f5b,'execute',(_0x584215,_0x11e7f5)=>{_0x49a9ff['execute']('forward'===_0x11e7f5?'showNextChange':'showPreviousChange');}),_0x377f5b;}),_0x17e488['show'](),_0x1de406['on']('change:isReady',(_0x5b8110,_0x3b4aa1,_0x9b57e7)=>{_0x9b57e7?_0x17e488['hide']():_0x17e488['show']();});}}class at extends _0x31f44d{['_resizeObserver']=null;constructor(_0x757562,_0x1cfd73){super(_0x757562,_0x1cfd73);const _0x3ec2e7=this['bindTemplate'];this['set']({'label':m(_0x757562,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x757562,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3ec2e7['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xb611fa=this['fieldView']['element'];this['_tooltipString']=_0xb611fa['scrollWidth']>_0xb611fa['clientWidth']&&_0xb611fa['value']||'';}}class ri extends ts{constructor(_0x46f322,_0x1ae507,_0x5e08ec){super(_0x46f322);const _0x5bdb4d=new _0x316f4d();_0x5bdb4d['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 _0x2e5381=['ck','ck-revision-history-sidebar__revision-author'];_0x5e08ec&&_0x2e5381['push']('ck-revision-history-sidebar__revision-author_creator');const _0x296838=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x46f322,_0x5e08ec?'Revision\x20creator':'Revision\x20author')},'children':[_0x5bdb4d,_0x1ae507['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2e5381},'children':_0x296838});}}function oi(_0x5d8efe,_0x56294e){const _0x3337d1=_0x5d8efe['bindTemplate'],_0x5d9ff6=_0x5d8efe['locale'],_0x5350fd=_0x10173a(_0x5d9ff6);_0x5350fd['panelPosition']='sw';const _0x995f54=function(_0x5a4eff,_0x2845b6){const _0x23af6d=function(_0x20ae2e,_0x4b7278){const _0x577e26=_0x20ae2e['locale'],_0x2bbba5={'Compare\x20against\x20selected':m(_0x577e26,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x577e26,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x577e26,'Restore\x20this\x20revision')};return _0x4b7278['map'](_0x46f403=>{const _0x5339f8=_0x2bbba5[_0x46f403['name']];return _0x5339f8&&_0x5339f8!==_0x46f403['name']&&(_0x46f403['name']=_0x5339f8),_0x46f403;});}(_0x5a4eff,_0x2845b6),_0x5f26d9=new _0x4367e2();for(const _0x1f2ee1 of _0x23af6d){const _0x45f218={'type':'button','model':new _0x290497({'label':_0x1f2ee1['name'],'class':_0x1f2ee1['class'],'withText':!0x0,'role':'menuitem','_action':_0x1f2ee1['action']})};_0x45f218['model']['bind']('isEnabled')['to'](_0x5a4eff,'isActionsDropdownOpen',_0x54d80c=>'function'!=typeof _0x1f2ee1['isEnabled']||(!_0x54d80c||_0x1f2ee1['isEnabled'](_0x5a4eff))),_0x5f26d9['add'](_0x45f218);}return _0x5f26d9;}(_0x5d8efe,_0x56294e);return _0x5d8efe['bind']('isActionsDropdownOpen')['to'](_0x5350fd,'isOpen'),_0x5350fd['buttonView']['set']({'label':m(_0x5d9ff6,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x57512f['threeVerticalDots']}),_0x5350fd['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3337d1['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3337d1['to'](_0x6eb3ea=>_0x6eb3ea['stopPropagation']())}}),_0x5350fd['on']('execute',_0x4d00c1=>{_0x5d8efe['isReady']&&'function'==typeof _0x4d00c1['source']['_action']&&_0x4d00c1['source']['_action'](_0x5d8efe);}),to(_0x5350fd,_0x995f54,{'role':'menu'}),_0x5350fd['listenTo'](_0x5d8efe,'change:isActionsDropdownOpen',(_0x7de56,_0x562b54,_0x4dee1e)=>{if(_0x4dee1e)for(const _0x27451c of _0x5350fd['listView']['items']){const _0x3036f0=_0x27451c['children']['first'],_0x51f0db=_0x56294e['find'](_0x385085=>_0x385085['action']===_0x3036f0['_action'])['isVisible'];_0x27451c['isVisible']=void 0x0===_0x51f0db||_0x51f0db(_0x5d8efe);}}),_0x5350fd;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x39402d,_0x1605fd,_0x1383f7,_0x15194d){super(_0x39402d);const _0xa0d5dd=this['bindTemplate'],_0x20b49d=function(_0x31ddba,_0x317c25){const _0x280d1a=Array['from'](_0x317c25['authors'])['filter'](_0x53c25a=>_0x53c25a!=_0x317c25['creator']);return _0x317c25['creator']&&_0x280d1a['unshift'](_0x317c25['creator']),_0x280d1a['map'](_0x326ccf=>new ri(_0x31ddba,_0x326ccf,_0x326ccf==_0x317c25['creator']));}(_0x39402d,_0x1605fd);this['id']=_0x1605fd['id'],this['_revision']=_0x1605fd,this['_requireRevisionName']=_0x15194d,this['bind']('name','createdAt')['to'](_0x1605fd),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x471724=>{return _0x128626=_0x39402d['uiLanguage'],(_0x46047b=_0x471724)['toLocaleDateString'](_0x128626,{'month':'long','day':'numeric'})+',\x20'+_0x46047b['toLocaleTimeString'](_0x128626,{'hour':'numeric','minute':'numeric'});var _0x128626,_0x46047b;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x39402d,_0x22ab74),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x32f288=>_0x32f288||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x13d823,_0x2addfb)=>_0x13d823&&_0x2addfb),this['revisionActionsView']=_0x1383f7&&_0x1383f7['length']?oi(this,_0x1383f7):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xa0d5dd['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xa0d5dd['if']('isEnabled','ck-disabled',_0x44d827=>!_0x44d827),_0xa0d5dd['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xa0d5dd['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xa0d5dd['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':_0xa0d5dd['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':_0x20b49d}]},this['revisionActionsView']],'on':{'click':_0xa0d5dd['to'](_0x56a040=>{_0x56a040['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2e2db5=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2e2db5,'change',()=>{this['_requireRevisionName']&&!_0x2e2db5['value']||this['fire']('setName',{'id':this['id'],'name':_0x2e2db5['value']}),_0x2e2db5['value']||(_0x2e2db5['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ci(_0x38e044,_0x3dfff9){const _0x214626=_0x5afbc8['fromJSDate'](_0x38e044)['setLocale'](_0x3dfff9),_0xbe1ba6=_0x5afbc8['local'](),_0xbce39f=_0xbe1ba6['minus']({'days':0x1})['startOf']('day');let _0x539c02,_0x437155;return _0x214626['hasSame'](_0xbe1ba6,'day')?(_0x539c02=_0x214626['startOf']('day')['toJSDate'](),_0x437155=_0x214626['toRelativeCalendar']()):_0x214626['hasSame'](_0xbce39f,'day')?(_0x539c02=_0xbce39f['toJSDate'](),_0x437155=_0x214626['toRelativeCalendar']()):_0x214626['hasSame'](_0xbe1ba6,'week')?(_0x539c02=_0x214626['startOf']('week')['toJSDate'](),_0x437155=_0x214626['weekdayLong']||''):_0x214626['hasSame'](_0xbe1ba6,'year')?(_0x539c02=_0x214626['startOf']('month')['toJSDate'](),_0x437155=_0x214626['monthLong']||''):(_0x539c02=_0x214626['startOf']('year')['toJSDate'](),_0x437155=String(_0x214626['year'])),{'startDate':_0x539c02,'localizedPeriodName':_0x437155};}class ai extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3327e1,_0x68afe,_0x2418a0,_0x55abd0){super(_0x3327e1);const _0x44e855=ci(_0x68afe,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x68afe,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2418a0,this['_requireRevisionName']=_0x55abd0,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':_0x44e855}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3d1d15){const _0x1baa53=new hi(this['locale'],_0x3d1d15,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1baa53);}['removeRevision'](_0x97429e){const _0x1955a7=this['revisionViews']['find'](_0xc4eab8=>_0xc4eab8['id']===_0x97429e['id']);this['revisionViews']['remove'](_0x1955a7);}}class as extends ts{constructor(_0x477b51){super(_0x477b51);const _0xc4e17a=new _0x316f4d();_0xc4e17a['content']=_0x57512f['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xc4e17a,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x477b51,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x60d257,_0x40e6e8,_0xbc8a11,_0x9e5f9a){super(_0x60d257);const _0x50a189=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x40e6e8,this['_revisionActions']=_0xbc8a11,this['_requireRevisionName']=_0x9e5f9a,this['on']('select',(_0xe8b63d,_0x2ca43e)=>{this['fire']('revisionSelected',_0x2ca43e);}),this['on']('setName',(_0x12ec67,_0x3e9f23)=>{this['fire']('revisionSetName',_0x3e9f23);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x60d257),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x50a189['if']('isEnabled','ck-disabled',_0x4d9cb2=>!_0x4d9cb2)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x41f1a2 of this['_revisions'])this['_addRevision'](_0x41f1a2);this['_revisions']['on']('add',(_0x289344,_0x27fe56)=>{this['_addRevision'](_0x27fe56);}),this['_revisions']['on']('remove',(_0x101cae,_0x3ac94e)=>{this['_removeRevision'](_0x3ac94e);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x307a32=>_0x307a32['revisionViews']['map'](_0x2ac49a=>_0x2ac49a))['flat']();}['selectRevision'](_0xbfd09b){for(const _0xa41052 of this['revisionViews'])_0xbfd09b&&_0xbfd09b['id']===_0xa41052['id']?_0xa41052['select']():_0xa41052['deselect']();}['highlightRevisions'](_0x3d511b){for(const _0x39b10b of this['revisionViews'])_0x3d511b['some'](({id:_0x324ce7})=>_0x324ce7===_0x39b10b['id'])?_0x39b10b['highlight']():_0x39b10b['unhighlight']();}['_addRevision'](_0x18ac15){const _0x487b13=ci(_0x18ac15['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xf4a503=this['timePeriodViews']['get'](0x0);_0xf4a503&&_0xf4a503['startDate']['getTime']()===_0x487b13['getTime']()||(_0xf4a503=new ai(this['locale'],_0x487b13,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xf4a503)),_0xf4a503['addRevision'](_0x18ac15);}['_removeRevision'](_0x1b74a1){const _0x3aaa02=ci(_0x1b74a1['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3aaa02)['removeRevision'](_0x1b74a1);}['_getTimePeriodViewByStartDate'](_0x5d3888){return this['timePeriodViews']['find'](_0x263d2a=>_0x263d2a['startDate']['getTime']()===_0x5d3888['getTime']());}}class w extends _0x31326a{['_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(_0x242aca){super(_0x242aca),this['_revisionViewer']=_0x242aca['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x43bd0f=this['_revisionsRepository']['_revisions'],_0x1829a7=this['_createRevisionActions'](),_0x122af3=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x43bd0f,_0x1829a7,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',(_0x18c977,_0x399a77)=>{_0x399a77['revisionViews']['on']('add',(_0x3884df,_0x310fd2)=>{_0x310fd2['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)),_0x122af3['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1d052a=this['_revisionsRepository']['getRevision'](0x0);if(_0x1d052a){const _0x591098=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1d052a['id']);this['_revisionViewer']['compare'](_0x1d052a,_0x591098);}}['_handleRevisionSelected'](_0x469229,_0x268017){const _0x539104=this['_revisionsRepository']['getRevision'](_0x268017['id']),_0x46a198=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x539104['id']);this['_revisionViewer']['compare'](_0x539104,_0x46a198);}['_handleRevisionSetName'](_0x45af89,_0x1332b3){this['_revisionsRepository']['getRevision'](_0x1332b3['id'])['setName'](_0x1332b3['name']);}['_handleDiffChange'](_0x14d492,_0x1cc0fe,_0x39649e){const _0x2d0ae5=this['_revisionsRepository']['getRevisionsInDiff'](_0x39649e);_0x2d0ae5['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2d0ae5),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2d0ae5[0x0]));}['_createRevisionActions'](){const _0x492a43=this['editor'],_0x58cb11=w['availableRevisionActions'],_0x1b70fd=_0x492a43['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x1b70fd['length'])return _0x1b70fd['map'](_0x35b673=>{const _0x589d26='string'==typeof _0x35b673?Object['assign']({},_0x58cb11[_0x35b673]):_0x35b673;return _0x589d26['action']=_0x589d26['action']['bind'](this,_0x492a43),_0x589d26['isVisible']&&(_0x589d26['isVisible']=_0x589d26['isVisible']['bind'](this,_0x492a43)),_0x589d26;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x377225},_0x3471db)=>{const _0x31de85=_0x377225['get'](d),_0x5ae5b9=_0x31de85['repository'];let _0x3574ce=_0x31de85['diff']['newRevisionId'],_0x2992f9=_0x3471db['id'];_0x5ae5b9['getIndex'](_0x3574ce)>_0x5ae5b9['getIndex'](_0x2992f9)&&([_0x3574ce,_0x2992f9]=[_0x2992f9,_0x3574ce]),_0x31de85['compare'](_0x3574ce,_0x2992f9);},'isVisible':({plugins:_0x48c48c},_0x1e6ee0)=>{const _0x5f21b5=_0x48c48c['get'](d);return!(_0x5f21b5['repository']['getRevisionsInDiff'](_0x5f21b5['diff'])['length']>0x2)&&!_0x1e6ee0['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x44ddbc,{id:_0x7eed17})=>{_0x44ddbc['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x7eed17);},'isVisible':({plugins:_0x418523},_0x48a18b)=>!!_0x418523['get'](d)['repository']['getLaterVisibleRevision'](_0x48a18b['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x39f70e},{id:_0x5aadf4,revisionNameView:_0x24c750})=>{const _0xe678bb=_0x39f70e['get'](d),_0x3fa454=_0xe678bb['repository']['getEarlierVisibleRevision'](_0x5aadf4);_0xe678bb['compare'](_0x5aadf4,_0x3fa454),_0x24c750['focus'](),_0x24c750['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x57b9c5,_0x45b3d7){super(_0x57b9c5),this['_view']=_0x45b3d7,this['_toolbarConfig']=ot(_0x57b9c5['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x3c373c){const _0x3872c0=this['editor'],_0xed281b=this['view'],_0x35bb77=_0x3872c0['editing']['view'],_0x521177=_0xed281b['editable'],_0x1193e7=_0x35bb77['document']['getRoot']();_0x521177['name']=_0x1193e7['rootName'],_0xed281b['render']();const _0x230392=_0x521177['element'];this['setEditableElement'](_0x521177['name'],_0x230392),_0xed281b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x35bb77['attachDomRoot'](_0x230392),this['_elementReplacer']['replace'](_0x3c373c,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x30e6d5=this['view'],_0x17f3fd=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x17f3fd['detachDomRoot'](_0x30e6d5['editable']['name']),_0x30e6d5['destroy']();}['_initToolbar'](){const _0x116318=this['view'];_0x116318['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x116318['stickyPanel']['limiterElement']=_0x116318['element'],_0x116318['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2f992c})=>_0x2f992c),_0x116318['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x116318['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x343ddf,_0x28a5d9,_0x1e02ff={}){super(_0x343ddf),this['stickyPanel']=new ut(_0x343ddf),this['toolbar']=new lt(_0x343ddf,{'shouldGroupWhenFull':_0x1e02ff['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x343ddf,_0x28a5d9);}['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(_0x4bbab9,_0x509cb2){super(_0x509cb2),this['sourceElement']=_0x4bbab9,this['model']['document']['createRoot']();const _0xef5478=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0xef5478);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x477054,_0x4381e8){const _0x457881=new this(_0x477054,_0x4381e8);return await _0x457881['initPlugins'](),await _0x457881['ui']['init'](_0x477054),await _0x457881['data']['init'](_0x457881['config']['get']('initialData')||''),_0x457881['fire']('ready'),_0x457881;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x361651{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x976eda){function _0x3954ee(_0x54ffbe){return _0x54ffbe['map'](_0x225f42=>String['fromCharCode'](_0x225f42))['join']('');}super(_0x976eda),this['result']='end',_0x976eda[_0x3954ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3954ee([0x76,0x69,0x65,0x77])][_0x3954ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3954ee([0x61,0x75,0x74,0x6f]),_0x976eda[_0x3954ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3954ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3954ee([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3954ee([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3954ee([0x6f,0x6b])});}}class k extends _0x361651{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x2d2967){if(super(_0x2d2967),!this['editor']['config']['get']('revisionHistory'))throw new _0x1cd261('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x40ece0=>this['_showRevisionViewer']({..._0x40ece0,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xc5bd60=>this['_closeRevisionViewer'](_0xc5bd60)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3be02c=>this['_restoreRevision'](_0x3be02c)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2935c8){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2935c8;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1bce7e){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1bce7e);}['getRevision'](_0x4a21cc){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4a21cc);}['getRevisions'](_0x1d8368){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1d8368||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x52bee8=this['editor'],_0x14b0a3=_0xc76ffb(_0x52bee8,p),_0x27759a=_0x52bee8['plugins']['get']('RevisionTracker'),_0x36e350=_0x52bee8['plugins']['get']('Users')['users'];return _0x14b0a3['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x14b0a3['lazyRoots'],(_0x14b0a3['plugins']['push'](Rt,d,g,class extends _0x361651{static get['requires'](){return[d,'Users'];}['init'](){const _0xe3a790=this['editor']['plugins']['get']('Users');for(const _0x524367 of _0x36e350)_0x524367['isAnonymous']||_0xe3a790['getUser'](_0x524367['id'])||_0xe3a790['addUser'](_0x524367);const _0x3a7505=_0x27759a['repository']['getRevisions']();let _0x3aa195=null;const _0x587d65=this['editor']['plugins']['get']('RevisionViewer');_0x587d65['adapter']=_0x27759a['adapter'],_0x587d65['bind']('isEnabled')['to'](_0x27759a),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x52bee8,'isReadOnly',_0x5b4369=>!_0x5b4369);for(const _0x2c495f of _0x3a7505){const _0x557bd0=null===_0x2c495f['creator'];if(_0x557bd0&&_0x2c495f['toVersion']===_0x2c495f['fromVersion'])continue;const _0x590a8e=_0x2c495f['toJSON']();_0x587d65['addRevisionData'](_0x590a8e,(_0x46b6c2,_0x70559c,_0x3f03ef)=>{if(_0x557bd0){if(_0x3aa195)_0x3aa195['_update'](_0x46b6c2,_0x70559c);else{if(!_0x70559c){const _0x5d0ec4=_0x3f03ef['toJSON']();_0x5d0ec4['id']=_0x52d906(),_0x27759a['saveRevision'](_0x5d0ec4,_0x3f03ef['toVersion'])['then'](_0x40ef63=>{_0x3aa195=_0x40ef63;});}}}else _0x2c495f['_update'](_0x46b6c2,_0x70559c);});}}},w),_0x14b0a3);}['_enhanceShowRevisionViewerCallback'](){const _0x393f1e=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2ab61d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x50f3e5=this['editor']['plugins']['get']('Autosave');await _0x50f3e5['save']();}else await _0x2ab61d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x298b17=this['editor']['plugins']['get']('Dialog');_0x298b17['isOpen']&&_0x298b17['hide']();}const _0x3fbbef=this['_getRevisionViewerEditorConfig']();return _0x393f1e(_0x3fbbef)['then'](_0x231637=>{return(this['_viewerEditor']=_0x231637,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x231637;})['catch'](_0x116ffc=>(console['error'](_0x116ffc),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x30d963=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'](),_0x30d963(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x21c773=this['editor']['plugins']['get']('Annotations');_0x21c773['refreshVisibility'](),_0x21c773['refreshPositioning']();}})));}['_showRevisionViewer'](_0x344ff3){const _0x3a82f1=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2a4137=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5b3b6a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x5b3b6a,_0x344ff3)['then'](_0x4fd931=>(_0x2a4137['style']['display']='block',_0x3a82f1['style']['display']='none',_0x4fd931));}['_closeRevisionViewer'](_0x121bc6){const _0x2bc904=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2bc904['style']['display']='',_0x121bc6['destroy']();}async['_restoreRevision'](_0x183742){const _0x49bbd7=this['editor'],_0x12c60d=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x51fa6d=_0x49bbd7['plugins']['get']('RevisionTracker'),_0x1e0f82=_0x12c60d['repository']['getRevision'](_0x183742);let _0x36b96b,_0x169d2a,_0x2f6a9d;try{_0x36b96b=await _0x12c60d['getRevisionData'](_0x1e0f82),_0x169d2a=await _0x12c60d['getRevisionRootsAttributes'](_0x1e0f82);}catch(_0x11f813){return void console['error'](_0x11f813);}_0x49bbd7['model']['change'](_0x22d01d=>{for(const _0x172311 of Array['from'](_0x49bbd7['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x22d01d['removeMarker'](_0x172311);}),_0x12c60d['isReady']=!0x1,_0x49bbd7['model']['enqueueChange'](_0x5dc8c4=>{_0x5dc8c4['setSelection'](null),_0x5dc8c4['removeSelectionAttribute'](_0x49bbd7['model']['document']['selection']['getAttributeKeys']());const _0x93da8c=Object['keys'](_0x36b96b);for(const _0x3612c9 of _0x49bbd7['model']['document']['roots'])'$graveyard'!=_0x3612c9['rootName']&&_0x3612c9['isAttached']()&&!_0x93da8c['includes'](_0x3612c9['rootName'])&&_0x5dc8c4['detachRoot'](_0x3612c9);for(const _0x130aee of _0x93da8c){let _0x52dbe7=_0x49bbd7['model']['document']['getRoot'](_0x130aee);_0x52dbe7&&_0x52dbe7['isAttached']()||(_0x52dbe7=_0x5dc8c4['addRoot'](_0x130aee));const _0x3154f6=_0x169d2a[_0x130aee],_0x2625f7=Object['keys'](_0x3154f6),_0x2cc418=_0x36b96b[_0x130aee];for(const _0xede685 of _0x52dbe7['getAttributeKeys']())_0x2625f7['includes'](_0xede685)||_0x5dc8c4['removeAttribute'](_0xede685,_0x52dbe7);for(const _0x3cd3a1 of _0x2625f7)_0x5dc8c4['setAttribute'](_0x3cd3a1,_0x169d2a[_0x130aee][_0x3cd3a1],_0x52dbe7);_0x5dc8c4['remove'](_0x5dc8c4['createRangeIn'](_0x52dbe7)),_0x5dc8c4['insert'](_0x49bbd7['data']['parse'](_0x2cc418,_0x52dbe7),_0x52dbe7,0x0);}});const _0x25cf65=m(_0x49bbd7['locale'],'Restored');if(_0x1e0f82['name'])_0x2f6a9d=-0x1==_0x1e0f82['name']['indexOf'](_0x25cf65)?_0x25cf65+':\x20'+_0x1e0f82['name']:_0x1e0f82['name'];else _0x2f6a9d=_0x25cf65+':\x20'+(_0x1e0f82['createdAt']['toLocaleDateString'](_0x49bbd7['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1e0f82['createdAt']['toLocaleTimeString'](_0x49bbd7['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x51fa6d['saveRevision']({'name':_0x2f6a9d}),_0x12c60d['isReady']=!0x0,_0x49bbd7['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x4a0531){super(_0x4a0531),this['_revisionViewer']=_0x4a0531['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1b971f=this['_revisionsRepository']['_revisions'],_0x3ff883=this['_createRevisionActions'](),_0x2191ad=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x1b971f,_0x3ff883,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',(_0x68c361,_0x7c359)=>{_0x7c359['revisionViews']['on']('add',(_0x5659b4,_0x43bd3a)=>{_0x43bd3a['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)),_0x2191ad['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4752f1=this['_revisionsRepository']['getRevision'](0x0);if(_0x4752f1){const _0x4e38b7=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4752f1['id']);this['_revisionViewer']['compare'](_0x4752f1,_0x4e38b7);}}['_handleRevisionSelected'](_0x5b67ea,_0x315ebe){const _0x473bce=this['_revisionsRepository']['getRevision'](_0x315ebe['id']),_0x7656e6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x473bce['id']);this['_revisionViewer']['compare'](_0x473bce,_0x7656e6);}['_handleRevisionSetName'](_0x301340,_0x99b3bd){this['_revisionsRepository']['getRevision'](_0x99b3bd['id'])['setName'](_0x99b3bd['name']);}['_handleDiffChange'](_0x2ae5ef,_0x39c7db,_0x3f1482){const _0x1a7ff7=this['_revisionsRepository']['getRevisionsInDiff'](_0x3f1482);_0x1a7ff7['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1a7ff7),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1a7ff7[0x0]));}['_createRevisionActions'](){const _0xeb0654=this['editor'],_0x3f1ec1=w['availableRevisionActions'],_0x1f5795=_0xeb0654['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x1f5795['length'])return _0x1f5795['map'](_0x312fc9=>{const _0x4a70a1='string'==typeof _0x312fc9?Object['assign']({},_0x3f1ec1[_0x312fc9]):_0x312fc9;return _0x4a70a1['action']=_0x4a70a1['action']['bind'](this,_0xeb0654),_0x4a70a1['isVisible']&&(_0x4a70a1['isVisible']=_0x4a70a1['isVisible']['bind'](this,_0xeb0654)),_0x4a70a1;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x328536},_0x434105)=>{const _0x4ba26d=_0x328536['get'](d),_0x3ef2f9=_0x4ba26d['repository'];let _0x2e0198=_0x4ba26d['diff']['newRevisionId'],_0x49ed55=_0x434105['id'];_0x3ef2f9['getIndex'](_0x2e0198)>_0x3ef2f9['getIndex'](_0x49ed55)&&([_0x2e0198,_0x49ed55]=[_0x49ed55,_0x2e0198]),_0x4ba26d['compare'](_0x2e0198,_0x49ed55);},'isVisible':({plugins:_0x1ad2b9},_0x27a44b)=>{const _0x27eb9d=_0x1ad2b9['get'](d);return!(_0x27eb9d['repository']['getRevisionsInDiff'](_0x27eb9d['diff'])['length']>0x2)&&!_0x27a44b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x230316,{id:_0x59b8a8})=>{_0x230316['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x59b8a8);},'isVisible':({plugins:_0x394110},_0x1cb6a8)=>!!_0x394110['get'](d)['repository']['getLaterVisibleRevision'](_0x1cb6a8['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x237f1e},{id:_0x3d7404,revisionNameView:_0x47adc5})=>{const _0x4741c8=_0x237f1e['get'](d),_0x2aef04=_0x4741c8['repository']['getEarlierVisibleRevision'](_0x3d7404);_0x4741c8['compare'](_0x3d7404,_0x2aef04),_0x47adc5['focus'](),_0x47adc5['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x26c3da,_0x294fad){super(_0x26c3da),this['_view']=_0x294fad,this['_toolbarConfig']=ot(_0x26c3da['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x15360e){const _0x2cfc53=this['editor'],_0xfdee8b=this['view'],_0x24724c=_0x2cfc53['editing']['view'],_0x2c955c=_0xfdee8b['editable'],_0x2dae4a=_0x24724c['document']['getRoot']();_0x2c955c['name']=_0x2dae4a['rootName'],_0xfdee8b['render']();const _0x4d7a97=_0x2c955c['element'];this['setEditableElement'](_0x2c955c['name'],_0x4d7a97),_0xfdee8b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x24724c['attachDomRoot'](_0x4d7a97),this['_elementReplacer']['replace'](_0x15360e,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2b10a1=this['view'],_0x318825=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x318825['detachDomRoot'](_0x2b10a1['editable']['name']),_0x2b10a1['destroy']();}['_initToolbar'](){const _0x5c80d9=this['view'];_0x5c80d9['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5c80d9['stickyPanel']['limiterElement']=_0x5c80d9['element'],_0x5c80d9['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x47ad7e})=>_0x47ad7e),_0x5c80d9['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5c80d9['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x229f09,_0x34bebd,_0x35a6f7={}){super(_0x229f09),this['stickyPanel']=new ut(_0x229f09),this['toolbar']=new lt(_0x229f09,{'shouldGroupWhenFull':_0x35a6f7['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x229f09,_0x34bebd);}['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(_0x4b5322,_0x2a6a03){super(_0x2a6a03),this['sourceElement']=_0x4b5322,this['model']['document']['createRoot']();const _0x37de9c=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x37de9c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x399fe3,_0x101e93){const _0x17b39a=new this(_0x399fe3,_0x101e93);return await _0x17b39a['initPlugins'](),await _0x17b39a['ui']['init'](_0x399fe3),await _0x17b39a['data']['init'](_0x17b39a['config']['get']('initialData')||''),_0x17b39a['fire']('ready'),_0x17b39a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x31326a{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x26174d){function _0x33782d(_0x1efad6){return _0x1efad6['map'](_0x25aaef=>String['fromCharCode'](_0x25aaef))['join']('');}super(_0x26174d),this['result']='end',_0x26174d[_0x33782d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33782d([0x76,0x69,0x65,0x77])][_0x33782d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x33782d([0x61,0x75,0x74,0x6f]),_0x26174d[_0x33782d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x33782d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x33782d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x33782d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x33782d([0x6f,0x6b])});}}class k extends _0x31326a{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x587675){if(super(_0x587675),!this['editor']['config']['get']('revisionHistory'))throw new _0x49f1f6('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3fe19b=>this['_showRevisionViewer']({..._0x3fe19b,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xe361ad=>this['_closeRevisionViewer'](_0xe361ad)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x563718=>this['_restoreRevision'](_0x563718)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x40d1c0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x40d1c0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x27ad09){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x27ad09);}['getRevision'](_0x3f6edb){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3f6edb);}['getRevisions'](_0x27643b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x27643b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xfbee94=this['editor'],_0x582c1e=_0x56c44c(_0xfbee94,p),_0x552187=_0xfbee94['plugins']['get']('RevisionTracker'),_0x22d020=_0xfbee94['plugins']['get']('Users')['users'];return _0x582c1e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x582c1e['lazyRoots'],(_0x582c1e['plugins']['push'](bt,d,g,class extends _0x31326a{static get['requires'](){return[d,'Users'];}['init'](){const _0x5c6737=this['editor']['plugins']['get']('Users');for(const _0x587ec3 of _0x22d020)_0x587ec3['isAnonymous']||_0x5c6737['getUser'](_0x587ec3['id'])||_0x5c6737['addUser'](_0x587ec3);const _0x173df9=_0x552187['repository']['getRevisions']();let _0x5b335f=null;const _0x5157dc=this['editor']['plugins']['get']('RevisionViewer');_0x5157dc['adapter']=_0x552187['adapter'],_0x5157dc['bind']('isEnabled')['to'](_0x552187),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xfbee94,'isReadOnly',_0x365a2b=>!_0x365a2b);for(const _0x39ab6b of _0x173df9){const _0x32fab1=null===_0x39ab6b['creator'];if(_0x32fab1&&_0x39ab6b['toVersion']===_0x39ab6b['fromVersion'])continue;const _0xe946c5=_0x39ab6b['toJSON']();_0x5157dc['addRevisionData'](_0xe946c5,(_0x4b139c,_0x5a46b3,_0x2aaf34)=>{if(_0x32fab1){if(_0x5b335f)_0x5b335f['_update'](_0x4b139c,_0x5a46b3);else{if(!_0x5a46b3){const _0x189986=_0x2aaf34['toJSON']();_0x189986['id']=_0x66ae84(),_0x552187['saveRevision'](_0x189986,_0x2aaf34['toVersion'])['then'](_0xf4ace0=>{_0x5b335f=_0xf4ace0;});}}}else _0x39ab6b['_update'](_0x4b139c,_0x5a46b3);});}}},w),_0x582c1e);}['_enhanceShowRevisionViewerCallback'](){const _0x17a3bf=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1c70f3=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x226a2f=this['editor']['plugins']['get']('Autosave');await _0x226a2f['save']();}else await _0x1c70f3['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x7c744=this['editor']['plugins']['get']('Dialog');_0x7c744['isOpen']&&_0x7c744['hide']();}const _0x4396e9=this['_getRevisionViewerEditorConfig']();return _0x17a3bf(_0x4396e9)['then'](_0x3cb36b=>{return(this['_viewerEditor']=_0x3cb36b,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3cb36b;})['catch'](_0x16151b=>(console['error'](_0x16151b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4da94a=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'](),_0x4da94a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x518eb5=this['editor']['plugins']['get']('Annotations');_0x518eb5['refreshVisibility'](),_0x518eb5['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5b8025){const _0x3e3cbb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xd8dfcc=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x337dde=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x337dde,_0x5b8025)['then'](_0x3f3be6=>(_0xd8dfcc['style']['display']='block',_0x3e3cbb['style']['display']='none',_0x3f3be6));}['_closeRevisionViewer'](_0x97134e){const _0x12b8c3=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x12b8c3['style']['display']='',_0x97134e['destroy']();}async['_restoreRevision'](_0x3ebefe){const _0x52f944=this['editor'],_0x135eaf=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x267ca6=_0x52f944['plugins']['get']('RevisionTracker'),_0x1e6113=_0x135eaf['repository']['getRevision'](_0x3ebefe);let _0x2821c5,_0x4810d7,_0x48e813;try{_0x2821c5=await _0x135eaf['getRevisionData'](_0x1e6113),_0x4810d7=await _0x135eaf['getRevisionRootsAttributes'](_0x1e6113);}catch(_0x4ce208){return void console['error'](_0x4ce208);}_0x52f944['model']['change'](_0x37dce7=>{for(const _0x4e57c0 of Array['from'](_0x52f944['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x37dce7['removeMarker'](_0x4e57c0);}),_0x135eaf['isReady']=!0x1,_0x52f944['model']['enqueueChange'](_0x1030b4=>{_0x1030b4['setSelection'](null),_0x1030b4['removeSelectionAttribute'](_0x52f944['model']['document']['selection']['getAttributeKeys']());const _0x5a2567=Object['keys'](_0x2821c5);for(const _0x99694b of _0x52f944['model']['document']['roots'])'$graveyard'!=_0x99694b['rootName']&&_0x99694b['isAttached']()&&!_0x5a2567['includes'](_0x99694b['rootName'])&&_0x1030b4['detachRoot'](_0x99694b);for(const _0x45262b of _0x5a2567){let _0x1c939f=_0x52f944['model']['document']['getRoot'](_0x45262b);_0x1c939f&&_0x1c939f['isAttached']()||(_0x1c939f=_0x1030b4['addRoot'](_0x45262b));const _0x56ed4f=_0x4810d7[_0x45262b],_0x3be9c2=Object['keys'](_0x56ed4f),_0x464b72=_0x2821c5[_0x45262b];for(const _0x5ee22c of _0x1c939f['getAttributeKeys']())_0x3be9c2['includes'](_0x5ee22c)||_0x1030b4['removeAttribute'](_0x5ee22c,_0x1c939f);for(const _0x1d9308 of _0x3be9c2)_0x1030b4['setAttribute'](_0x1d9308,_0x4810d7[_0x45262b][_0x1d9308],_0x1c939f);_0x1030b4['remove'](_0x1030b4['createRangeIn'](_0x1c939f)),_0x1030b4['insert'](_0x52f944['data']['parse'](_0x464b72,_0x1c939f),_0x1c939f,0x0);}});const _0xe9c820=m(_0x52f944['locale'],'Restored');if(_0x1e6113['name'])_0x48e813=-0x1==_0x1e6113['name']['indexOf'](_0xe9c820)?_0xe9c820+':\x20'+_0x1e6113['name']:_0x1e6113['name'];else _0x48e813=_0xe9c820+':\x20'+(_0x1e6113['createdAt']['toLocaleDateString'](_0x52f944['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1e6113['createdAt']['toLocaleTimeString'](_0x52f944['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x267ca6['saveRevision']({'name':_0x48e813}),_0x135eaf['isReady']=!0x0,_0x52f944['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};