@ckeditor/ckeditor5-revision-history 44.2.0-alpha.1 → 44.2.0-alpha.11

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 _0x390099,uid as _0x188740,Collection as _0x72131,logWarning as _0x5d4d09,FocusTracker as _0x2d0d71,KeystrokeHandler as _0x1fdb24,scrollViewportToShowTarget as _0x22e6de,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0x5b14a4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x42a93f,set as _0x308a76,unset as _0xde5f3f,isEqual as _0x44e312}from'lodash-es';import{Plugin as _0x3a751c,PendingActions as _0x7505,icons as _0x3ccdb5,Command as _0x36fb2a,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5da54c,getMarkerDomElement as _0x580098,ConfirmMixin as _0x35e007,sanitizeEditorConfig as _0x35be18}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x2f19d5,ViewText as _0x3cb44f,ViewElement as _0x45fa53,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x55aef3,ViewAttributeElement as _0x4637f2,ViewEmptyElement as _0x215a14,ViewRawElement as _0x2d0043,ViewUIElement as _0x7ff77,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5d8db5,submitHandler as _0x544162,LabeledFieldView as _0x2e3a33,createLabeledInputText as _0x77d7bb,createDropdown as _0x32c2dd,ListView as _0x9966d,ListItemView as _0x20df16,ButtonView as te,MenuBarMenuView as _0xc5cb91,MenuBarMenuListView as _0x486440,MenuBarMenuListItemView as _0x50c765,MenuBarMenuListItemButtonView as _0xa6c9e2,ContextualBalloon as _0x189ed2,ToolbarSeparatorView as _0x309b4c,IconView as _0x565a4d,addListToDropdown as to,ViewModel as _0x3b2b3a,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 _0x566712}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x390099(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2e3a32){super(),this['id']=_0x2e3a32['id']||_0x188740(),this['creator']=_0x2e3a32['creator']||null,this['authors']=_0x2e3a32['authors']||[],this['diffData']=_0x2e3a32['diffData']||null,this['toVersion']=_0x2e3a32['toVersion']||0x0,this['fromVersion']=_0x2e3a32['fromVersion']||0x0,this['set']('name',_0x2e3a32['name']||''),this['set']('createdAt',_0x2e3a32['createdAt']||new Date()),this['set']('attributes',_0x2e3a32['attributes']||{});}['setName'](_0x361798){this['_update']({'name':_0x361798});}['setAttribute'](_0x5d6653,_0x380c68){const _0x2dfe60=_0x42a93f(this['attributes']);_0x308a76(_0x2dfe60,_0x5d6653,_0x380c68),this['_update']({'attributes':_0x2dfe60});}['removeAttribute'](_0xd12fb0){const _0x5cf13d=_0x42a93f(this['attributes']);_0xde5f3f(_0x5cf13d,_0xd12fb0),this['_update']({'attributes':_0x5cf13d});}['_update'](_0x2a4155,_0x39b87d=!0x1){let _0xf5cf92=!0x1;const _0x17a38b={'id':this['id']},_0x4c49d4=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4797ee of _0x4c49d4){const _0x3d963c=_0x2a4155[_0x4797ee];void 0x0!==_0x3d963c&&_0x3d963c!==this[_0x4797ee]&&(this[_0x4797ee]=_0x3d963c,_0x17a38b[_0x4797ee]=_0x3d963c,_0xf5cf92=!0x0);}_0xf5cf92&&(_0x17a38b['authors']&&(_0x17a38b['authorsIds']=_0x17a38b['authors']['map'](_0xfd3787=>_0xfd3787['id']),delete _0x17a38b['authors']),this['fire']('_update',_0x17a38b,_0x39b87d));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2f9899=>_0x2f9899['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3a751c{['_revisions'];static get['requires'](){return[_0x5da54c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3e1f3b){super(_0x3e1f3b),this['_revisions']=new _0x72131();}['afterInit'](){!async function(_0x22ce58){const _0xdfbdeb=_0x2c9319([0x47,0x4e,0x6d,0x65,0x6f,0x78,0x64,0x55,0x37,0x45,0x49,0x59,0x6b,0x4a,0x71,0x76,0x4c,0x54,0x34,0x70,0x7a,0x73,0x31,0x6e,0x44,0x6c,0x51,0x30,0x53,0x63,0x39,0x50,0x36,0x35,0x75,0x48,0x33,0x77,0x61,0x62,0x69,0x68,0x74,0x66,0x32,0x67,0x57,0x43,0x4b,0x72,0x4d,0x41,0x42,0x4f,0x79,0x46,0x6a,0x38,0x58,0x5a,0x52,0x56]),_0x211480=0xeb829,_0x4beb6b=0x74f27da2,_0x2c53c5=0x74f523b2^_0x4beb6b,_0x4df152=window[_0x2c9319([0x44,0x61,0x74,0x65])][_0x2c9319([0x6e,0x6f,0x77])](),_0x40d578=_0x22ce58[_0x2c9319([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xdb8dc5=new window[(_0x2c9319([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x114099=>{_0x40d578[_0x2c9319([0x6f,0x6e,0x63,0x65])](_0x2c9319([0x72,0x65,0x61,0x64,0x79]),_0x114099);}),_0x305bb0={[_0x2c9319([0x6b,0x74,0x79])]:_0x2c9319([0x45,0x43]),[_0x2c9319([0x75,0x73,0x65])]:_0x2c9319([0x73,0x69,0x67]),[_0x2c9319([0x63,0x72,0x76])]:_0x2c9319([0x50,0x2d,0x32,0x35,0x36]),[_0x2c9319([0x78])]:_0x2c9319([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]),[_0x2c9319([0x79])]:_0x2c9319([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]),[_0x2c9319([0x61,0x6c,0x67])]:_0x2c9319([0x45,0x53,0x32,0x35,0x36])},_0x4784df=_0x40d578[_0x2c9319([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c9319([0x67,0x65,0x74])](_0x2c9319([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x10ff0c(){let _0x33f0f2,_0x1ca8bc=null,_0x38b070=null;try{if(_0x4784df==_0x2c9319([0x47,0x50,0x4c]))return _0x2c9319([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x33f0f2=_0x531fdb(),!_0x33f0f2)return _0x2c9319([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x33f0f2[_0x2c9319([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38b070=_0x1c147a(_0x33f0f2[_0x2c9319([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x33f0f2[_0x2c9319([0x6a,0x74,0x69])])),await _0x529282()?_0x4115fd()?_0x143175()?_0x2c9319([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3ee4d8()?(_0x33f0f2[_0x2c9319([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c9319([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1ca8bc=_0x552f8b(_0x2c9319([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x33f0f2[_0x2c9319([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c9319([0x74,0x72,0x69,0x61,0x6c])&&(_0x1ca8bc=_0x552f8b(_0x2c9319([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x41ca01()):_0x2c9319([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c9319([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c9319([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x11688c){return _0x2c9319([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x143175(){const _0x5c4c18=[_0x2c9319([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c9319([0x74,0x72,0x69,0x61,0x6c])][_0x2c9319([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33f0f2[_0x2c9319([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4df152/0x3e8:0xe10*_0x2c53c5;return _0x33f0f2[_0x2c9319([0x65,0x78,0x70])]<_0x5c4c18;}function _0x4115fd(){const _0x5a0c83=_0x33f0f2[_0x2c9319([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5a0c83)return!0x1;if(_0x5a0c83[_0x2c9319([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9319([0x2a])))return!0x0;if(_0x5a0c83[_0x2c9319([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9319([0x52,0x48])))return!0x0;if(_0x5a0c83[_0x2c9319([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9319([0x52,0x52,0x48]))){if(_0x4aede7())return!0x0;if(_0x2ae311()||_0x28ed2f())return!0x0;}return!0x1;}function _0x3ee4d8(){const _0x245d9d=_0x33f0f2[_0x2c9319([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x245d9d||0x0==_0x245d9d[_0x2c9319([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4b42bd}=new URL(window[_0x2c9319([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x245d9d[_0x2c9319([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b42bd))return!0x0;const _0x185b55=_0x4b42bd[_0x2c9319([0x73,0x70,0x6c,0x69,0x74])](_0x2c9319([0x2e]));return _0x245d9d[_0x2c9319([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59b32e=>_0x59b32e[_0x2c9319([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9319([0x2a])))[_0x2c9319([0x6d,0x61,0x70])](_0x18a56b=>_0x18a56b[_0x2c9319([0x73,0x70,0x6c,0x69,0x74])](_0x2c9319([0x2e])))[_0x2c9319([0x73,0x6f,0x6d,0x65])](_0x2e5c13=>_0x185b55[_0x2c9319([0x65,0x76,0x65,0x72,0x79])]((_0x1ac6a7,_0x155df4)=>_0x2e5c13[_0x155df4]===_0x1ac6a7||_0x2e5c13[_0x155df4]===_0x2c9319([0x2a])));}function _0x41ca01(){return _0x1ca8bc&&_0x38b070?new window[(_0x2c9319([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ef2f7,_0x1e6ef5)=>{_0x1ca8bc[_0x2c9319([0x74,0x68,0x65,0x6e])](_0x5ef2f7,_0x1e6ef5),_0x38b070[_0x2c9319([0x74,0x68,0x65,0x6e])](_0x2bc676=>{_0x2bc676!=_0x2c9319([0x56,0x61,0x6c,0x69,0x64])&&_0x5ef2f7(_0x2bc676);},_0x1e6ef5);}):_0x1ca8bc||_0x38b070||_0x2c9319([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c147a(_0x5d246b,_0x490da4){return new window[(_0x2c9319([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9e6b7b=>{if(_0xa13bf4())return _0x9e6b7b(_0x2c9319([0x56,0x61,0x6c,0x69,0x64]));_0x450020(),_0x40d578[_0x2c9319([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c9319([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ca5=!0x1;const _0x1fb09c=_0x188740();function _0x4ec344(_0x9054c9){return!!_0x9054c9&&(typeof _0x9054c9===_0x2c9319([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9054c9===_0x2c9319([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9054c9[_0x2c9319([0x74,0x68,0x65,0x6e])]===_0x2c9319([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9054c9[_0x2c9319([0x63,0x61,0x74,0x63,0x68])]===_0x2c9319([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ff9a1(_0x534b88){_0xf6da49(_0x534b88)[_0x2c9319([0x74,0x68,0x65,0x6e])](_0x12a372=>{if(!_0x12a372||_0x12a372[_0x2c9319([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c9319([0x6f,0x6b]))return _0x2c9319([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e7037(_0x6e5c0a(_0x1fb09c+_0x490da4))!=_0x12a372[_0x2c9319([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c9319([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c9319([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c9319([0x74,0x68,0x65,0x6e])](_0x38599f=>(_0x26bbef(),_0x38599f),()=>{const _0x58c6bb=_0x14e519();return null==_0x58c6bb?(_0x26bbef(),_0x2c9319([0x56,0x61,0x6c,0x69,0x64])):_0x2c9319(_0x4df152-_0x58c6bb>(0x50fef9a2^_0x4beb6b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c9319([0x74,0x68,0x65,0x6e])](_0x9e6b7b)[_0x2c9319([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9e6b7b(_0x2c9319([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ba038=0x74c49322^_0x4beb6b;function _0x26bbef(){const _0x4f258d=_0x2c9319([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e7037(_0x6e5c0a(_0x5d246b)),_0x739f45=_0x1a5cc7(_0x3e7037(window[_0x2c9319([0x4d,0x61,0x74,0x68])][_0x2c9319([0x63,0x65,0x69,0x6c])](_0x4df152/_0x3ba038)));window[_0x2c9319([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c9319([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f258d,_0x739f45);}function _0x14e519(){const _0x27eddc=_0x2c9319([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e7037(_0x6e5c0a(_0x5d246b)),_0x5b801e=window[_0x2c9319([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c9319([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27eddc);return _0x5b801e?window[_0x2c9319([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a5cc7(_0x5b801e),0x10)*_0x3ba038:null;}function _0xf6da49(_0x14af5a){return new window[(_0x2c9319([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b8f35,_0x31390c)=>{_0x14af5a[_0x2c9319([0x74,0x68,0x65,0x6e])](_0x3b8f35,_0x31390c),window[_0x2c9319([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x31390c,0x74f3a962^_0x4beb6b);});}}_0x40d578[_0x2c9319([0x6f,0x6e])](_0x2c9319([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x48b3b2,_0x327f5c)=>{if(_0x327f5c[0x0]!=_0x5d246b)return _0x9e6b7b(_0x2c9319([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x327f5c[0x1]={..._0x327f5c[0x1],[_0x2c9319([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1fb09c};},{[_0x2c9319([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c9319([0x68,0x69,0x67,0x68])}),_0x40d578[_0x2c9319([0x6f,0x6e])](_0x2c9319([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f0909=>{_0x4ec344(_0x4f0909[_0x2c9319([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ca5=!0x0,_0x4ff9a1(_0x4f0909[_0x2c9319([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c9319([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c9319([0x6c,0x6f,0x77])}),_0xdb8dc5[_0x2c9319([0x74,0x68,0x65,0x6e])](()=>{_0x3ca5||_0x9e6b7b(_0x2c9319([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa13bf4(){return _0x40d578[_0x2c9319([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c9319([0x76,0x69,0x65,0x77])][_0x2c9319([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c9319([0x61,0x75,0x74,0x6f]);}function _0x450020(){_0x40d578[_0x2c9319([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c9319([0x76,0x69,0x65,0x77])][_0x2c9319([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c9319([0x61,0x75,0x74,0x6f]);}}function _0x552f8b(_0x232118){const _0x16bb11=[new window[(_0x2c9319([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21f137=>setTimeout(_0x21f137,0x74fb436e^_0x4beb6b)),_0xdb8dc5[_0x2c9319([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c9319([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48557e=>{const _0x7ebc5e=0x74f27da5^_0x4beb6b,_0x3b0ee7=_0x22ce58[_0x2c9319([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x30dc6c(){_0x3b0ee7[_0x2c9319([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x7ebc5e&&_0x48557e();}_0x30dc6c(),_0x3b0ee7[_0x2c9319([0x6f,0x6e])](_0x2c9319([0x61,0x64,0x64]),_0x30dc6c);})),new window[(_0x2c9319([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54d147=>{function _0x1e2c6d(){for(const _0x13515a in window)if(window[_0x2c9319([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2c9319([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x13515a))&&window[_0x13515a]==_0x211480)return _0x54d147();_0x40d578[_0x2c9319([0x73,0x74,0x61,0x74,0x65])]!=_0x2c9319([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2c9319([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e2c6d,0x74f26e2a^_0x4beb6b);}_0x134c90(_0x2c9319([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1e2c6d();})];return window[_0x2c9319([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c9319([0x72,0x61,0x63,0x65])](_0x16bb11)[_0x2c9319([0x74,0x68,0x65,0x6e])](()=>_0x232118);}async function _0x4a2d3a(){if(await _0xdb8dc5,_0x134c90(_0x2c9319([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xf759b6=_0x22ce58[_0x2c9319([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5313f1=_0x22ce58[_0x2c9319([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])](_0xf759b6[_0x2c9319([0x69,0x64])]),_0x1a8c3e=_0x4c9982(_0x2c9319([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1a8c3e[_0x2c9319([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xf759b6['id'],_0x5313f1?_0x5313f1['id']:null,!0x0),_0x1a8c3e[_0x2c9319([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2c9319([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1a8c3e[_0x2c9319([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1a8c3e[_0x2c9319([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x20d960,void(_0x1a8c3e[_0x2c9319([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x20d960);}if(_0x134c90(_0x2c9319([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x265ca6=_0x4c9982(_0x2c9319([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x265ca6[_0x2c9319([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2c9319([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x265ca6[_0x2c9319([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x265ca6[_0x2c9319([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x20d960,_0x265ca6[_0x2c9319([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x20d960;}_0x40d578[_0x2c9319([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c9319([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20d960,_0x40d578[_0x2c9319([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c9319([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20d960,_0x40d578[_0x2c9319([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c9319([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4aede7(){return _0x134c90(_0x2c9319([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4c9982(_0x2c9319([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2c9319([0x73,0x74,0x61,0x74,0x65])]==_0x2c9319([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2ae311(){return _0x134c90(_0x2c9319([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 _0x28ed2f(){return _0x134c90(_0x2c9319([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x40102d(_0x16dd14){const _0x21930d=_0x2ec20d();_0x40d578[_0x21930d]=_0x2c9319([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])+_0x16dd14,_0x16dd14[_0x2c9319([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2c9319([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2ec20d()]=_0x211480),_0x16dd14!=_0x2c9319([0x56,0x61,0x6c,0x69,0x64])&&_0x4a2d3a();}function _0x2ec20d(){const _0x1e0e7f=window[_0x2c9319([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c9319([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c9319([0x6e,0x6f,0x77])]())[_0x2c9319([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c9319([0x2e]),'');let _0x4cca66=_0x2c9319([0x47]);for(let _0x31f2f0=0x0;_0x31f2f0<_0x1e0e7f[_0x2c9319([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31f2f0+=0x2){let _0x3efb06=window[_0x2c9319([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e0e7f[_0x2c9319([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31f2f0,_0x31f2f0+0x2));_0x3efb06>=_0xdfbdeb[_0x2c9319([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3efb06-=_0xdfbdeb[_0x2c9319([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4cca66+=_0xdfbdeb[_0x3efb06];}return _0x4cca66;}function _0x531fdb(){const _0x3f3358=_0x4784df[_0x2c9319([0x73,0x70,0x6c,0x69,0x74])](_0x2c9319([0x2e]));if(0x3!=_0x3f3358[_0x2c9319([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x579a0f(_0x3f3358[0x1]);function _0x579a0f(_0x1e267d){const _0x193440=_0x123c87(_0x1e267d);return _0x193440&&_0xe7d7fa()?_0x193440:null;function _0xe7d7fa(){const _0x460ca4=_0x193440[_0x2c9319([0x6a,0x74,0x69])],_0x27cba3=window[_0x2c9319([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x460ca4[_0x2c9319([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x460ca4[_0x2c9319([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4bd79a={..._0x193440,[_0x2c9319([0x6a,0x74,0x69])]:_0x460ca4[_0x2c9319([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x460ca4[_0x2c9319([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4bd79a[_0x2c9319([0x76,0x63])],_0x6e5c0a(_0x4bd79a)==_0x27cba3;}}}async function _0x529282(){let _0x5aabcf=!0x0;try{const _0x35db08=_0x4784df[_0x2c9319([0x73,0x70,0x6c,0x69,0x74])](_0x2c9319([0x2e])),[_0x4803f4,_0x52783c,_0x2a5db4]=_0x35db08;return _0x33ff5e(_0x4803f4),await _0x388f69(_0x4803f4,_0x52783c,_0x2a5db4),_0x5aabcf;}catch(_0x2e469c){return!0x1;}function _0x33ff5e(_0x5106a3){const _0x124e53=_0x123c87(_0x5106a3);_0x124e53&&_0x124e53[_0x2c9319([0x61,0x6c,0x67])]==_0x2c9319([0x45,0x53,0x32,0x35,0x36])||(_0x5aabcf=!0x1);}async function _0x388f69(_0x403565,_0x2052b9,_0x39fd2d){const _0x55f218=window[_0x2c9319([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c9319([0x66,0x72,0x6f,0x6d])](_0x5c5b59(_0x39fd2d),_0x5c516d=>_0x5c516d[_0x2c9319([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x36792b=new window[(_0x2c9319([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c9319([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x403565+_0x2c9319([0x2e])+_0x2052b9),_0x24b9d1=window[_0x2c9319([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c9319([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24b9d1)return;const _0x431a18=await _0x24b9d1[_0x2c9319([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c9319([0x6a,0x77,0x6b]),_0x305bb0,{[_0x2c9319([0x6e,0x61,0x6d,0x65])]:_0x2c9319([0x45,0x43,0x44,0x53,0x41]),[_0x2c9319([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c9319([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c9319([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24b9d1[_0x2c9319([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c9319([0x6e,0x61,0x6d,0x65])]:_0x2c9319([0x45,0x43,0x44,0x53,0x41]),[_0x2c9319([0x68,0x61,0x73,0x68])]:{[_0x2c9319([0x6e,0x61,0x6d,0x65])]:_0x2c9319([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x431a18,_0x55f218,_0x36792b)||(_0x5aabcf=!0x1);}}function _0x123c87(_0x57053d){return _0x57053d[_0x2c9319([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c9319([0x65,0x79]))?JSON[_0x2c9319([0x70,0x61,0x72,0x73,0x65])](_0x5c5b59(_0x57053d)):null;}function _0x5c5b59(_0x54e76e){return window[_0x2c9319([0x61,0x74,0x6f,0x62])](_0x54e76e[_0x2c9319([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c9319([0x2b]))[_0x2c9319([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c9319([0x2f])));}function _0x6e5c0a(_0x119c1a){let _0x2c6ef7=0x1505;function _0x463b11(_0x312101){for(let _0x13fa93=0x0;_0x13fa93<_0x312101[_0x2c9319([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13fa93++){const _0x1eeac5=_0x312101[_0x2c9319([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x13fa93);_0x2c6ef7=(_0x2c6ef7<<0x5)+_0x2c6ef7+_0x1eeac5,_0x2c6ef7&=_0x2c6ef7;}}function _0x4bb165(_0xe74f0b){Array[_0x2c9319([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xe74f0b)?_0xe74f0b[_0x2c9319([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bb165):_0xe74f0b&&typeof _0xe74f0b==_0x2c9319([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c9319([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xe74f0b)[_0x2c9319([0x73,0x6f,0x72,0x74])]()[_0x2c9319([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x527a2d,_0x28b744])=>{_0x463b11(_0x527a2d),_0x4bb165(_0x28b744);}):_0x463b11(window[_0x2c9319([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xe74f0b));}return _0x4bb165(_0x119c1a),_0x2c6ef7>>>0x0;}function _0x3e7037(_0xce75d2){return _0xce75d2[_0x2c9319([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c9319([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c9319([0x30]));}function _0x1a5cc7(_0x1d5786){return _0x1d5786[_0x2c9319([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c9319([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c9319([0x6a,0x6f,0x69,0x6e])]('');}function _0x134c90(_0x44fae3){return _0x40d578[_0x2c9319([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c9319([0x68,0x61,0x73])](_0x44fae3);}function _0x4c9982(_0x5b94f1){return _0x40d578[_0x2c9319([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c9319([0x67,0x65,0x74])](_0x5b94f1);}function _0x20d960(){}function _0x2c9319(_0x5aa0b4){return _0x5aa0b4['map'](_0x5e7537=>String['fromCharCode'](_0x5e7537))['join']('');}_0x40102d(await _0x10ff0c());}(this);}['createRevision'](_0x5b2394){const _0x47767e=this['editor']['plugins']['get']('Users');return new a({'id':_0x5b2394['id'],'name':_0x5b2394['name'],'creator':_0x5b2394['creatorId']?_0x47767e['getUser'](_0x5b2394['creatorId']):null,'diffData':_0x5b2394['diffData']||_0x5b2394['data'],'authors':_0x5b2394['authorsIds']['map'](_0x36f2b1=>_0x47767e['getUser'](_0x36f2b1)),'createdAt':new Date(_0x5b2394['createdAt']),'attributes':_0x5b2394['attributes'],'fromVersion':_0x5b2394['fromVersion'],'toVersion':_0x5b2394['toVersion']});}['addRevision'](_0x3edbee,_0x1ed232=0x0){this['_revisions']['add'](_0x3edbee,_0x1ed232);}['getRevision'](_0x3d4830){return this['_revisions']['get'](_0x3d4830);}['getRevisions'](_0x2989ca={'toJSON':!0x1}){const _0x12d980=Array['from'](this['_revisions']);return _0x12d980['reverse'](),_0x2989ca['toJSON']?_0x12d980['map'](_0x39da5f=>_0x39da5f['toJSON']()):_0x12d980;}['getIndex'](_0x5d498d){return this['_revisions']['getIndex'](_0x5d498d);}['getEarlierVisibleRevision'](_0x137679){const [,_0x178eef]=this['getRevisionsIterator'](_0x137679,{'direction':'earlier'});return _0x178eef;}['getLaterVisibleRevision'](_0x33eac2){const [,_0x5ce594]=this['getRevisionsIterator'](_0x33eac2,{'direction':'later'});return _0x5ce594;}['getRevisionsInDiff'](_0x38b5cc){const _0x532c97=[];for(const _0x3e9185 of this['getRevisionsIterator'](_0x38b5cc['newRevisionId']))if(_0x532c97['push'](_0x3e9185),_0x3e9185['id']===_0x38b5cc['oldRevisionId'])break;return _0x532c97;}*['getRevisionsIterator'](_0x35b131,{direction:_0x1db24a='earlier',filter:_0x23277c=()=>!0x0}={}){const _0x228060='earlier'===_0x1db24a?0x1:-0x1;let _0x229b6c=this['_revisions']['get'](_0x35b131),_0x6933eb=this['getIndex'](_0x229b6c);for(yield _0x229b6c;_0x229b6c;){if(_0x6933eb+=_0x228060,_0x229b6c=this['getRevision'](_0x6933eb),!_0x229b6c)return;_0x23277c(_0x229b6c)&&(yield _0x229b6c);}}}function m(_0x305e59,_0x3388e5,_0x20e8de){const t=_0x305e59['t'];switch(_0x3388e5){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'},_0x20e8de);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x20e8de);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':_0x55aef3,'a':_0x4637f2,'e':_0x215a14,'r':_0x2d0043,'u':_0x7ff77};class l extends _0x3a751c{['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[_0x5da54c,j,_0x7505];}constructor(_0x3f31fd){super(_0x3f31fd),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 _0x8e1616=_0x188740();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x8e1616},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 _0x3cbad9=this['repository']['getRevision'](0x0),_0x25471d=_0x3cbad9&&null===_0x3cbad9['creator']?_0x3cbad9:null;if(this['_continueCurrentRevision']=!!_0x25471d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5ab503=this['_source']['getCurrentRevisionId'](),_0x5d47fa=this['repository']['getRevision'](_0x5ab503);if(_0x5d47fa)this['_startingVersion']=_0x5d47fa['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x29c805=this['_source']['history']['_operations']['find'](_0x261319=>!_0x261319['_isInit']),_0x1f4c5c=_0x29c805?_0x29c805['baseVersion']:this['_source']['history']['version'];_0x3cbad9?(_0x3cbad9['toVersion']<_0x1f4c5c&&_0x3cbad9['_update']({'toVersion':_0x1f4c5c}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x25471d['id'],this['_startingVersion']=_0x25471d['fromVersion']):(this['_startingVersion']=_0x3cbad9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1f4c5c,this['_continueCurrentRevision']=!0x1);}}else _0x25471d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x25471d['toVersion'],this['editor']['model']['document']['history']['version']),_0x25471d['fromVersion']===_0x25471d['toVersion']?(0x0!==_0x25471d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x25471d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x25471d['id'],this['_startingVersion']=_0x25471d['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',_0x11d9f3=>!_0x11d9f3),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x38c53c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3fbe25;for(const _0x37601e in _0x38c53c){const _0x5e63ff=_0x37601e,_0x17b467=_0x38c53c[_0x5e63ff];if('revisionHistoryLicenseKeyValid'==_0x17b467||'revisionHistoryLicenseKeyInvalid'==_0x17b467||'revisionHistoryLicenseKeyExpired'==_0x17b467||'revisionHistoryLicenseKeyDomainLimit'==_0x17b467||'revisionHistoryLicenseKeyNotAllowed'==_0x17b467||'revisionHistoryLicenseKeyEvaluationLimit'==_0x17b467||'revisionHistoryLicenseKeyTrialLimit'==_0x17b467||'revisionHistoryLicenseKeyUsageLimit'==_0x17b467){delete _0x38c53c[_0x5e63ff],_0x3fbe25=_0x17b467,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3fbe25&&_0x38c53c['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3fbe25&&_0x38c53c['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3fbe25&&_0x38c53c['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3fbe25&&_0x38c53c['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3fbe25&&_0x38c53c['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3fbe25&&_0x38c53c['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3fbe25&&_0x38c53c['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x170089=this['repository']['getRevision'](0x0),_0x2b305d=await this['getRevisionDocumentData'](_0x170089),_0x3604d8=await this['getRevisionRootsAttributes'](_0x170089);this['_replaceEditorDataWithRevisionData'](_0x2b305d,_0x3604d8);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x512b07){this['_source']=_0x512b07;}async['update'](){const _0x46e2e2=await this['_source']['getLatestVersion']();if(_0x46e2e2>this['currentRevision']['toVersion']){await this['_loadState']();const _0x436826=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x46e2e2});_0x436826['authors']=_0x436826['authorsIds']['map'](_0xd54226=>this['editor']['plugins']['get']('Users')['getUser'](_0xd54226)),this['currentRevision']['_update'](_0x436826);}}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'](_0x23d43f={},_0x1e964e=null){const _0x194668=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1e964e>this['currentRevision']['toVersion']&&(_0x1e964e=null),null===_0x1e964e&&(_0x1e964e=await this['_source']['getLatestVersion']());const _0x596090=this['_getFromVersion'](_0x1e964e),_0x495a57=this['buildRevisionData']({'from':_0x596090,'to':_0x1e964e});if(this['currentRevision']['toVersion']<_0x1e964e){const _0x52cf71=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1e964e,'to':_0x1e964e});_0x52cf71['authors']=[],_0x52cf71['authorsIds']=[],_0x52cf71['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x52cf71,!0x0),delete _0x52cf71['authors'],_0x194668['push'](_0x52cf71);}_0x23d43f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x23d43f['name']=_0x23d43f['name']||null,_0x23d43f['id']=_0x23d43f['id']||_0x188740(),_0x23d43f={..._0x23d43f,..._0x495a57};const _0x11f515=this['addRevisionData'](_0x23d43f);_0x194668['push'](_0x23d43f);const _0xf2cbe4=this['repository']['getIndex'](_0x11f515);if(0x0!==_0xf2cbe4){const _0x56ab87=this['repository']['getRevision'](_0xf2cbe4-0x1);if(_0x56ab87['fromVersion']!==_0x1e964e){const _0x227887=this['_revisionDataBuilder']['getData'](_0x1e964e,_0x56ab87['toVersion']),_0x34ec5d={'id':_0x56ab87['id'],'diffData':_0x227887['diffData'],'authorsIds':_0x227887['authorsIds'],'authors':_0x227887['authorsIds']['map'](_0x1847a1=>this['editor']['plugins']['get']('Users')['getUser'](_0x1847a1)),'fromVersion':_0x1e964e};_0x56ab87===this['currentRevision']&&(_0x34ec5d['createdAt']=new Date(_0x23d43f['createdAt']['getTime']()+0xa)),_0x56ab87['_update'](_0x34ec5d,!0x0),delete _0x34ec5d['authors'],_0x194668['push'](_0x34ec5d);}}if(this['adapter']){for(const _0x35708c of _0x194668)this['_bufferUpdate'](_0x35708c['id'],_0x35708c,!0x0);this['sendBufferedUpdates']();}return _0x11f515;}['addRevisionData'](_0x2db66f){const _0x40af0a=this['repository']['createRevision'](_0x2db66f);return this['adapter']&&_0x40af0a['on']('_update',(_0x1c9786,_0x5dbb43,_0x48785b)=>{_0x48785b||(this['_bufferUpdate'](_0x5dbb43['id'],_0x5dbb43,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x40af0a,this['_findInsertionIndex'](_0x40af0a)),_0x40af0a;}async['getRevisionDocumentData'](_0x36c22b){await this['_loadRevisionData'](_0x36c22b);const _0xb1aa2={};for(const _0x2fce45 in _0x36c22b['diffData']){if(_0x36c22b['diffData'][_0x2fce45]['attachChange']&&!_0x36c22b['diffData'][_0x2fce45]['attachChange']['isAttached'])continue;const _0x1fc060=this['_removeRevisionMarkers'](JSON['parse'](_0x36c22b['diffData'][_0x2fce45]['insertions'])),_0x280dd9=this['editor']['editing']['view']['document'],_0x52860d=new _0x2f19d5(_0x280dd9,_0x1fc060['map'](_0xd20d3b=>C(_0xd20d3b,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0xb1aa2[_0x2fce45]=this['editor']['data']['processor']['toData'](_0x52860d),this['editor']['data']['processor']['useFillerType']('default');}return _0xb1aa2;}async['getRevisionRootsAttributes'](_0x1c9d35){await this['_loadRevisionData'](_0x1c9d35);const _0xfdf1f1={};for(const _0x1ca83c in _0x1c9d35['diffData'])_0x1c9d35['diffData'][_0x1ca83c]['attachChange']&&!_0x1c9d35['diffData'][_0x1ca83c]['attachChange']['isAttached']||(_0xfdf1f1[_0x1ca83c]=_0x1c9d35['diffData'][_0x1ca83c]['attributesAfter']||{});return _0xfdf1f1;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5d3670=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2d71fa=0x0;_0x2d71fa<_0x5d3670['length'];_0x2d71fa++){const _0x2e51ec=_0x5d3670[_0x2d71fa];let _0x398fae=!0x1;for(const _0x4b43db of Object['keys'](_0x2e51ec))void 0x0===_0x2e51ec[_0x4b43db]?delete _0x2e51ec[_0x4b43db]:'id'!==_0x4b43db&&(_0x398fae=!0x0);_0x398fae||(_0x5d3670[_0x2d71fa]=null);}if(_0x5d3670=_0x5d3670['filter'](_0x4c3044=>null!==_0x4c3044),!_0x5d3670['length'])return;for(let _0x1a5fa3=0x0;_0x1a5fa3<_0x5d3670['length'];_0x1a5fa3++){const _0x1d350e=_0x5d3670[_0x1a5fa3];void 0x0!==_0x1d350e['fromVersion']&&void 0x0===_0x1d350e['toVersion']&&(_0x1d350e['toVersion']=this['repository']['getRevision'](_0x1d350e['id'])['toVersion']),void 0x0!==_0x1d350e['toVersion']&&void 0x0===_0x1d350e['fromVersion']&&(_0x1d350e['fromVersion']=this['repository']['getRevision'](_0x1d350e['id'])['fromVersion']);}const _0x5a5f0f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5d3670,_0x5a5f0f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x245348=>{if(_0x245348){for(const _0x3ec535 of _0x245348)this['setRevisionData']({'id':_0x3ec535['id'],'createdAt':_0x3ec535['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3960b3,_0x22741a){let _0x467cbe=this['editor']['config']['get']('initialData'),_0x45e908=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x467cbe){_0x467cbe={};for(const _0x4f45ad of this['editor']['model']['document']['getRootNames']())_0x467cbe[_0x4f45ad]='';}if('string'==typeof _0x467cbe&&(_0x467cbe={'main':_0x467cbe}),void 0x0===_0x45e908){_0x45e908={};for(const _0x45f0da of this['editor']['model']['document']['getRootNames']())_0x45e908[_0x45f0da]={};}let _0x2be86=!0x1;const _0x5179cb=Object['keys'](_0x467cbe),_0x1136aa=Object['keys'](_0x3960b3);for(const _0x570703 of _0x5179cb){if(_0x467cbe[_0x570703]!==_0x3960b3[_0x570703]&&''!==_0x467cbe[_0x570703]['trim']()){_0x2be86=!0x0;break;}if(!_0x44e312(_0x45e908[_0x570703],_0x22741a[_0x570703])&&Object['keys'](_0x45e908[_0x570703])['length']>0x0){_0x2be86=!0x0;break;}}_0x2be86||(_0x2be86=_0x1136aa['some'](_0x17ac1d=>!this['editor']['model']['document']['getRoot'](_0x17ac1d))),_0x2be86&&_0x5d4d09('editor-initial-data-replaced-with-revision-data',{'editorData':_0x467cbe,'editorRootsAttributes':_0x45e908,'revisionData':_0x3960b3,'revisionRootsAttributes':_0x22741a}),this['editor']['config']['set']('initialData',_0x3960b3),this['editor']['config']['set']('rootsAttributes',_0x22741a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3a0d5e=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3a0d5e['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2c6b40){const _0x4f0c9a=this['repository']['getRevisions']();_0x4f0c9a['reverse']();let _0x28d8ea=0x0;for(;_0x28d8ea<_0x4f0c9a['length'];){const _0x4e59b7=_0x4f0c9a[_0x28d8ea];if(_0x4e59b7===this['currentRevision']){_0x28d8ea++;continue;}if(_0x4e59b7['id']===this['_initialRevisionId'])break;const _0x48266a=_0x2c6b40['toVersion']-_0x4e59b7['toVersion']||_0x2c6b40['fromVersion']-_0x4e59b7['fromVersion'];if(_0x48266a>0x0)break;if(_0x48266a<0x0)_0x28d8ea++;else{if(!_0x2c6b40['creator']&&_0x4e59b7['creator'])break;if(_0x4e59b7['creator']||!_0x2c6b40['creator']){if(_0x2c6b40['createdAt']>_0x4e59b7['createdAt'])break;_0x28d8ea++;}else _0x28d8ea++;}}return _0x28d8ea;}['setRevisionData'](_0x4c78c1){const _0x5aad58=this['repository']['getRevision'](_0x4c78c1['id']);if(_0x4c78c1['createdAt']&&(_0x4c78c1['createdAt']=new Date(_0x4c78c1['createdAt'])),_0x4c78c1['authorsIds']){const _0x69e22d=this['editor']['plugins']['get']('Users');_0x4c78c1['authors']=_0x4c78c1['authorsIds']['map'](_0x4e5f60=>_0x69e22d['getUser'](_0x4e5f60));}_0x5aad58['_update'](_0x4c78c1,!0x0);}['buildRevisionData']({revision:_0xe51725=null,from:_0x2f311c=null,to:_0x1ae534=null}){_0x2f311c=null!==_0x2f311c?_0x2f311c:_0xe51725['fromVersion'],_0x1ae534=null!==_0x1ae534?_0x1ae534:_0xe51725['toVersion'];const _0x4c2b7b=this['_revisionDataBuilder']['getData'](_0x2f311c,_0x1ae534),_0x4dfdb8={'diffData':_0x4c2b7b['diffData'],'authorsIds':_0x4c2b7b['authorsIds'],'fromVersion':_0x2f311c,'toVersion':_0x1ae534};if(!_0xe51725||_0x1ae534!==_0xe51725['toVersion']){const _0x405211=_0x1ae534-0x1,_0x56e309=this['_source']['history']['getOperation'](_0x405211);_0x4dfdb8['createdAt']=_0x56e309&&_0x56e309['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2f311c===this['_loadedStateData']['fromVersion']){for(const _0x79c1f8 of this['_loadedStateData']['authors'])_0x4dfdb8['authorsIds']['includes'](_0x79c1f8['id'])||_0x4dfdb8['authorsIds']['push'](_0x79c1f8['id']);}return _0x4dfdb8;}['_loadRevisionData'](_0x46d189){if(!_0x46d189||_0x46d189['diffData'])return Promise['resolve']();{const _0x7ef12a=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x7ef12a,'revisionId':_0x46d189['id']})['then'](_0x53dc8a=>{_0x46d189['diffData']=_0x53dc8a['diffData'];});}}['_bufferUpdate'](_0x2c55d6,_0x592682,_0x1735af){if(this['_bufferedUpdates']['has'](_0x2c55d6)){const _0x250744=this['_bufferedUpdates']['get'](_0x2c55d6);_0x592682=_0x1735af?{..._0x250744,..._0x592682}:{..._0x592682,..._0x250744};}this['_bufferedUpdates']['set'](_0x2c55d6,_0x592682);}['_getFromVersion'](_0x184cb1){const _0x4adb83=this['repository']['getRevisions']();_0x4adb83['reverse'](),_0x4adb83['shift']();const _0xcbc810=_0x4adb83['find'](_0x228ecd=>_0x228ecd['toVersion']<=_0x184cb1)['toVersion'];return _0xcbc810<this['_startingVersion']?this['_startingVersion']:_0xcbc810;}['_createInitialRevision'](_0x57e66e){const _0x9493cb=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x9493cb)this['_initialRevisionId']=_0x9493cb['id'];else{const _0x1212f7=!this['editor']['model']['document']['roots']['find'](_0x2cf002=>this['editor']['model']['hasContent'](_0x2cf002)),_0xce409=this['editor']['plugins']['get']('Users')['me']['id'],_0x195f60=m(this['editor']['locale'],_0x1212f7?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x57e66e,'to':_0x57e66e,'id':this['_initialRevisionId'],'name':_0x195f60,'creatorId':_0xce409});}}['_createCurrentRevision'](_0x5a6bc9){const _0x4ac62a=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4ac62a),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5a6bc9,'to':_0x5a6bc9,'id':_0x4ac62a,'name':'','creatorId':null}));}['_makeRevision']({name:_0x2d2a8c,from:_0x2b389b,to:_0x1ee625,creatorId:_0x412bf1,id:_0x366936}){const _0x3ee0ae=this['buildRevisionData']({'from':_0x2b389b,'to':_0x1ee625});_0x3ee0ae['name']=_0x2d2a8c,_0x3ee0ae['creatorId']=_0x412bf1,_0x3ee0ae['id']=_0x366936;const _0x378caa=this['addRevisionData'](_0x3ee0ae);return this['adapter']&&this['_bufferUpdate'](_0x3ee0ae['id'],_0x3ee0ae,!0x0),_0x378caa;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4773bc){return(_0x4773bc=_0x4773bc['filter'](_0x1422de=>!_0x1422de['name']||'revision-start'!==_0x1422de['name']&&'revision-end'!==_0x1422de['name']))['forEach'](_0xf9bbd5=>{'string'!=typeof _0xf9bbd5&&(_0xf9bbd5['children']=this['_removeRevisionMarkers'](_0xf9bbd5['children']),_0xf9bbd5['attributes']=_0xf9bbd5['attributes']['filter'](_0x619aa6=>!_0x619aa6[0x0]['startsWith']('data-revision-')));}),_0x4773bc;}}function C(_0x50942a,_0x2671ca){const _0x5e8a95=_0x2671ca['editing']['view']['document'];if('string'==typeof _0x50942a)return new _0x3cb44f(_0x5e8a95,_0x50942a);{const _0x4a752a=_0x50942a['children']['map'](_0xf21caa=>C(_0xf21caa,_0x2671ca));return new(P[_0x50942a['type']]||_0x45fa53)(_0x5e8a95,_0x50942a['name'],_0x50942a['attributes'],_0x4a752a);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x340935){this['editor']=_0x340935,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'](_0x275c70){this['source']=_0x275c70;const _0x3515fc=new Map(),_0xaa0da8=new Map(),_0x48101f=this['editor']['model']['document']['roots']['map'](_0x40ec4c=>_0x40ec4c['rootName']);for(const _0x22b9aa of _0x48101f){const _0xe89147=this['editor']['model']['document']['getRoot'](_0x22b9aa),_0x2acc27=T(_0xe89147);_0x3515fc['set'](_0x22b9aa,_0x2acc27),_0xaa0da8['set'](_0x22b9aa,Object['fromEntries'](_0xe89147['getAttributes']()));}const _0x3d41ed=Array['from'](this['editor']['model']['markers'])['map'](_0x1e5a63=>[_0x1e5a63['name'],_0x1e5a63['getRange']()]),_0x475afe=this['source']['version'];this['_saveMetaData'](_0x475afe,_0x3515fc,_0x3d41ed,_0xaa0da8),this['_startingRevisionId']=this['_revisionId'];const _0xb0d0c6=new Map(),_0x545ac4=new Map();for(const _0x59012b of _0x48101f){const _0x152bf4=F(_0x59012b);_0xb0d0c6['set'](_0x59012b,_0x152bf4),_0x545ac4['set'](_0x59012b,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xb0d0c6,[],_0x545ac4);}['getData'](_0x58f51f,_0x1a976d){if(this['_lastFrom']===_0x58f51f&&this['_lastTo']<=_0x1a976d)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1a976d,!0x0);else{if(!this['_savedMetaData']['has'](_0x58f51f)){const _0x19d371=this['_getPreviousFrom'](_0x58f51f);this['_calculateMetaData'](_0x19d371,_0x58f51f,!0x1);}this['_calculateMetaData'](_0x58f51f,_0x1a976d,!0x0);}return this['_lastFrom']=_0x58f51f,this['_lastTo']=_0x1a976d,this['_getState']();}['loadState'](_0xfc4416){this['_reset'](),this['_lastFrom']=_0xfc4416['fromVersion'],this['_lastTo']=_0xfc4416['toVersion'];for(const _0x4d3f19 in _0xfc4416['diffData']){const _0x5d2327=_0xfc4416['diffData'][_0x4d3f19]['attachChange'],_0x522b47=_0x42a93f(_0xfc4416['diffData'][_0x4d3f19]['attributesBefore'])||{},_0xc4f107=this['_makeModelFromViewString'](_0xfc4416['diffData'][_0x4d3f19]['deletions']);_0xc4f107['rootName']=_0x4d3f19,_0xc4f107['_isAttached']=!_0x5d2327||!_0x5d2327['isAttached'],_0xc4f107['isAttached']=()=>_0xc4f107['_isAttached'],this['_baseRoots']['set'](_0x4d3f19,_0xc4f107),this['_baseRootsAttributes']['set'](_0x4d3f19,_0x522b47),_0x5d2327&&this['_touchedRoots']['set'](_0x4d3f19,_0x5d2327);const _0x1ff611=this['_makeIdsRoot'](_0xc4f107);this['_baseIdsRoots']['set'](_0x4d3f19,_0x1ff611);for(const [_0x4367b1,_0x137149]of _0xc4f107['markers']){if(!_0x4367b1['startsWith']('revision:'))continue;const _0x261747=_0x4367b1['split'](':')[0x2];for(const _0x523ce5 of _0x137149['getWalker']({'singleCharacters':!0x0})){const _0x45448d=this['_getVidAttributeName'](_0x523ce5),_0x471f5a='elementEnd'==_0x523ce5['type']?_0x523ce5['previousPosition']['path']['slice'](0x0,-0x1):_0x523ce5['previousPosition']['path'],_0x472f33=_0x1ff611['getNodeByPath'](_0x471f5a)['getAttribute'](_0x45448d);this['_touched']['set'](_0x472f33,{'userId':_0x261747});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3c31d8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3ed0ae=>!this['_touched']['has'](_0x3ed0ae));let _0x5242e8=0x0;const _0x280d18=new Map();for(const _0x33181f in _0xfc4416['diffData']){const _0x1ebdcc=_0xfc4416['diffData'][_0x33181f]['attachChange'],_0x4871b0=_0x42a93f(_0xfc4416['diffData'][_0x33181f]['attributesAfter'])||{},_0x2de63e=this['_makeModelFromViewString'](_0xfc4416['diffData'][_0x33181f]['insertions']);_0x2de63e['rootName']=_0x33181f,_0x2de63e['_isAttached']=!_0x1ebdcc||_0x1ebdcc['isAttached'],_0x2de63e['isAttached']=()=>_0x2de63e['_isAttached'],this['_diffRoots']['set'](_0x33181f,_0x2de63e),this['_diffRootsAttributes']['set'](_0x33181f,_0x4871b0);const _0x4c37dd=this['_makeIdsRoot'](_0x2de63e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x33181f,_0x4c37dd),_0x280d18['set'](_0x33181f,_0x2de63e['isAttached']()?_0x4871b0:{});for(const [_0x17f147,_0x3facc3]of _0x2de63e['markers']){if(!_0x17f147['startsWith']('revision:'))continue;const _0x23d11c=_0x17f147['split'](':')[0x2];for(const _0x6a9c26 of _0x3facc3['getWalker']({'singleCharacters':!0x0})){const _0x3f0685=this['_getVidAttributeName'](_0x6a9c26),_0x517206=this['_revisionId']++,_0x4ae42f='elementEnd'==_0x6a9c26['type']?_0x6a9c26['previousPosition']['path']['slice'](0x0,-0x1):_0x6a9c26['previousPosition']['path'];_0x4c37dd['getNodeByPath'](_0x4ae42f)['_setAttribute'](_0x3f0685,_0x517206),this['_touched']['set'](_0x517206,{'userId':_0x23d11c});}}for(const _0x18716d of this['editor']['model']['createRangeIn'](_0x2de63e)['getWalker']({'singleCharacters':!0x0})){const _0x3702ef=this['_getVidAttributeName'](_0x18716d),_0xb740a8='elementEnd'==_0x18716d['type']?_0x18716d['previousPosition']['path']['slice'](0x0,-0x1):_0x18716d['previousPosition']['path'],_0x20f001=_0x4c37dd['getNodeByPath'](_0xb740a8);_0x20f001['getAttribute'](_0x3702ef)>0x0||_0x20f001['_setAttribute'](_0x3702ef,_0x3c31d8[_0x5242e8++]);}for(const [_0x25e633,_0x1f03dc]of _0x2de63e['markers'])_0x25e633['startsWith']('revision:')||this['_markers']['set'](_0x25e633,_0x1f03dc);}const _0x171194=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x171194),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x171194,0x1));const _0x447bc4=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x447bc4),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x447bc4,0x1));const _0x33b852=Array['from'](this['_diffRoots'])['map'](([_0x47f238,_0x2d9f17])=>[_0x47f238,T(_0x2d9f17)]);this['_saveMetaData'](this['_lastTo'],_0x33b852,this['_markers'],_0x280d18);}['_makeModelFromViewString'](_0x45d833){const _0x61c56e=JSON['parse'](_0x45d833),_0x2e7fa9=this['editor']['editing']['view']['document'],_0x24d4ad=new _0x2f19d5(_0x2e7fa9,_0x61c56e['map'](_0x12a8d2=>C(_0x12a8d2,this['editor'])));return this['editor']['data']['toModel'](_0x24d4ad);}['_saveMetaData'](_0x9e4b45,_0x59a786,_0xb2b7a1,_0x2af003){const _0x467c96=new Map(_0x59a786),_0x34feba=new Map(_0x42a93f(_0x2af003)),_0x2758af=new Map();for(const [_0x37be80,_0x46dd04]of _0xb2b7a1)_0x2758af['set'](_0x37be80,{'start':_0x46dd04['start']['clone'](),'end':_0x46dd04['end']['clone'](),'rootName':_0x46dd04['root']['rootName']});this['_savedMetaData']['set'](_0x9e4b45,{'roots':_0x467c96,'markers':_0x2758af,'rootsAttributes':_0x34feba});}['_removeMetaData'](_0x291145){this['_savedMetaData']['delete'](_0x291145);}['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'](_0x99342,_0x35bc3a=null){let _0x52dddf=null;_0x99342['is']('documentFragment')||(_0x52dddf=new ft(_0x99342['name'],{'vid_start':null===_0x35bc3a?this['_revisionId']++:_0x35bc3a++}));const _0x419ae8=[];for(const _0x203a5f of _0x99342['getChildren']())if(_0x203a5f['is']('element')){_0x419ae8['push'](this['_makeIdsRoot'](_0x203a5f,_0x35bc3a));const _0x93f709=_0x419ae8[_0x419ae8['length']-0x1];null!==_0x35bc3a&&(_0x35bc3a=_0x93f709['is']('element','$text')?_0x93f709['getAttribute']('vid')+0x1:_0x93f709['getAttribute']('vid_end')+0x1);}else{for(let _0x471df5=0x0;_0x471df5<_0x203a5f['offsetSize'];_0x471df5++)_0x419ae8['push'](new ft('$text',{'vid':null===_0x35bc3a?this['_revisionId']++:_0x35bc3a++}));}if(_0x99342['is']('documentFragment')){const _0x566d67=F(_0x99342['rootName']);return _0x566d67['_insertChild'](0x0,_0x419ae8),_0x566d67;}return _0x52dddf['_setAttribute']('vid_end',null===_0x35bc3a?this['_revisionId']++:_0x35bc3a++),_0x52dddf['_insertChild'](0x0,_0x419ae8),_0x52dddf;}['_calculateMetaData'](_0x3a9f53,_0x1d0a23,_0x3b7a86){this['_reset']();const {roots:_0x309e52,markers:_0x320133,rootsAttributes:_0x44ea9b}=this['_savedMetaData']['get'](_0x3a9f53);this['_baseRoots']=new Map(_0x309e52),this['_baseRootsAttributes']=new Map(_0x42a93f(_0x44ea9b));for(const [_0x16ba49,_0x3f1f2a]of this['_baseRoots'])if('$graveyard'!==_0x16ba49&&(this['_diffRoots']['set'](_0x16ba49,T(_0x3f1f2a)),this['_diffRootsAttributes']=new Map(_0x42a93f(_0x44ea9b)),_0x3b7a86)){const _0x503633=this['_revisionId'];this['_idsRoots']['set'](_0x16ba49,this['_makeIdsRoot'](_0x3f1f2a)),this['_baseIdsRoots']['set'](_0x16ba49,this['_makeIdsRoot'](_0x3f1f2a,_0x503633));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x3b7a86&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x43636f,_0x283742]of _0x320133){const _0x4b84f2=this['_baseRoots']['get'](_0x283742['rootName']),_0x4986a9=this['_diffRoots']['get'](_0x283742['rootName']),_0x394cc4=new vt(this['_fixPosition'](_0x283742['start'],_0x4b84f2),this['_fixPosition'](_0x283742['end'],_0x4b84f2)),_0x39f90f=this['_fixRange'](_0x394cc4,_0x4986a9);_0x4b84f2['markers']['set'](_0x43636f,_0x394cc4),this['_markers']['set'](_0x43636f,_0x39f90f);}this['_applyOperations'](_0x3a9f53,_0x1d0a23,_0x3b7a86);}['_applyOperations'](_0x324908,_0x3762ee,_0x29e1cd){for(const _0x3e55dc of this['source']['getOperations'](_0x324908,_0x3762ee))this['_handleOperation'](_0x3e55dc,_0x29e1cd);for(const _0x369847 of this['_diffRoots']['values']())_0x369847['markers']['clear']();for(const [_0x879b6d,_0x4964c8]of this['_markers']){this['_diffRoots']['get'](_0x4964c8['root']['rootName'])['markers']['set'](_0x879b6d,_0x4964c8['clone']());}const _0xbd68a7=new Map(),_0x9f5147=new Map();for(const [_0x5a6af2,_0x38be22]of this['_diffRoots'])_0xbd68a7['set'](_0x5a6af2,T(_0x38be22)),_0x9f5147['set'](_0x5a6af2,this['_diffRootsAttributes']['get'](_0x5a6af2));this['_saveMetaData'](_0x3762ee,_0xbd68a7,this['_markers'],_0x9f5147);}['_getPreviousFrom'](_0x19f704){const _0x582346=Array['from'](this['_savedMetaData']['keys']());_0x582346['sort']((_0x187c0a,_0x16fb62)=>_0x187c0a-_0x16fb62),_0x582346['reverse']();for(const _0x4a971e of _0x582346)if(_0x4a971e<_0x19f704)return _0x4a971e;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x22f4ec,_0x9eadef){const _0x3c8cf0=Array['from'](_0x9eadef['markers'])['map'](([_0x11405d,_0x59b20d])=>[_0x11405d,this['_fixRange'](_0x59b20d,_0x22f4ec)]);_0x22f4ec['markers']=new Map(_0x3c8cf0);}['_transformMarkers'](_0x2a3d2d){for(const _0x1e6c79 of this['_markers']['values']()){const _0x4e5337=_0x1e6c79['getTransformedByOperation'](_0x2a3d2d),_0x4721f2=vt['_createFromRanges'](_0x4e5337);_0x1e6c79['start']=_0x4721f2['start'],_0x1e6c79['end']=_0x4721f2['end'];}}['_handleOperation'](_0x19d53a,_0x39fdd4){if('addRoot'!=_0x19d53a['type']&&'detachRoot'!=_0x19d53a['type']){if('insert'==_0x19d53a['type']){const _0xf97828=_0x19d53a['position']['root']['rootName'];this['_diffRoots']['has'](_0xf97828)||(this['_diffRoots']['set'](_0xf97828,F(_0xf97828,!0x0)),this['_diffRootsAttributes']['set'](_0xf97828,{}),_0x39fdd4&&this['_idsRoots']['set'](_0xf97828,F(_0xf97828,!0x0)));}else{if('addRootAttribute'==_0x19d53a['type']||'removeRootAttribute'==_0x19d53a['type']||'changeRootAttribute'==_0x19d53a['type'])return void this['_handleRootAttributeOperation'](_0x19d53a);'marker'==_0x19d53a['type']&&this['_handleMarkerOperation'](_0x19d53a);}if('marker'!==_0x19d53a['type']){const _0x2417fa=this['_cloneOperation'](_0x19d53a,this['_diffRoots']);_0x2417fa['_execute'](),this['_transformMarkers'](_0x2417fa);}if(_0x39fdd4)switch(_0x19d53a['type']){case'insert':this['_handleInsertOperation'](_0x19d53a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x19d53a);break;case'merge':this['_handleMergeOperation'](_0x19d53a);break;case'split':this['_handleSplitOperation'](_0x19d53a);}}else this['_handleRootOperation'](_0x19d53a,_0x39fdd4);}['_cloneOperation'](_0x295a47,_0x1e945a){const _0x412f7b=_0x295a47['clone']();return _0x412f7b['_authorId']=_0x295a47['_authorId'],this['_fixOperation'](_0x412f7b,_0x1e945a),_0x412f7b;}['_getBaseVids'](_0x5bf653){return _0x5bf653['map'](_0x47c4a1=>{const _0x3fce38=this['_getVidAttributeName'](_0x47c4a1);return Number(_0x47c4a1['item']['getAttribute'](_0x3fce38));});}['_generateTape'](_0x280ce8,_0x4b25ac){if(_0x280ce8['is']('element','$text'))_0x4b25ac['push']({'item':_0x280ce8,'type':'text'});else{_0x280ce8['is']('element')&&_0x4b25ac['push']({'item':_0x280ce8,'type':'elementStart'});for(const _0x18f7a7 of _0x280ce8['getChildren']())this['_generateTape'](_0x18f7a7,_0x4b25ac);_0x280ce8['is']('element')&&_0x4b25ac['push']({'item':_0x280ce8,'type':'elementEnd'});}return _0x4b25ac;}['_getState'](){const _0x815c64=new Map(this['_touched']),_0x3fdb3d=new Map(_0x815c64),_0x310b6f=new Map(),_0x32a966={'insertions':{},'deletions':{}},_0x1cddb9={'insertions':{},'deletions':{}},_0x4a9974=new Map(),_0x403502=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x403502['delete']('$graveyard');for(const _0x8d23a5 of _0x403502){const _0x5d655c=this['_diffRoots']['get'](_0x8d23a5)||F(_0x8d23a5,!0x1),_0x462622=this['_baseRoots']['get'](_0x8d23a5)||F(_0x8d23a5,!0x1);_0x5d655c['isAttached']()||_0x462622['isAttached']()?(_0x32a966['insertions'][_0x8d23a5]=T(_0x5d655c),_0x32a966['deletions'][_0x8d23a5]=T(_0x462622),this['_copyMarkers'](_0x32a966['deletions'][_0x8d23a5],_0x462622),this['_copyMarkers'](_0x32a966['insertions'][_0x8d23a5],_0x5d655c),_0x1cddb9['insertions'][_0x8d23a5]=this['_generateTape'](this['_idsRoots']['get'](_0x8d23a5),[]),_0x1cddb9['deletions'][_0x8d23a5]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x8d23a5)||F(_0x8d23a5,!0x1),[])):_0x403502['delete'](_0x8d23a5);}for(const _0x190733 of _0x403502){const _0x17d5af=_0x1cddb9['insertions'][_0x190733];for(const _0x282b9d of _0x17d5af){const _0x5a0836=this['_getVidAttributeName'](_0x282b9d),_0xebd86a=_0x282b9d['item']['getAttribute'](_0x5a0836);_0x3fdb3d['delete'](_0xebd86a),_0xebd86a>=this['_startingRevisionId']&&_0x310b6f['set'](_0xebd86a,_0x815c64['get'](_0xebd86a));}}for(const _0x356148 of _0x403502){const _0x533e43=_0x1cddb9['insertions'][_0x356148],_0x270e30=this['_getBaseVids'](_0x1cddb9['deletions'][_0x356148]);let _0x4a9410=0x0;for(const _0x4aff75 of _0x533e43){const _0x5ed5f7=this['_getVidAttributeName'](_0x4aff75),_0x4f8211=_0x4aff75['item']['getAttribute'](_0x5ed5f7);if(!_0x310b6f['has'](_0x4f8211)&&!_0x4a9974['has'](_0x4f8211)){if(_0x3fdb3d['has'](_0x4f8211))_0x4a9410++;else{if(_0x4f8211!=_0x270e30[_0x4a9410]){const _0x34fd9e=_0x815c64['get'](_0x4f8211)||_0x815c64['get'](_0x270e30[_0x4a9410]);for(;_0x4f8211!=_0x270e30[_0x4a9410];)_0x3fdb3d['has'](_0x270e30[_0x4a9410])||(_0x4a9974['set'](_0x270e30[_0x4a9410],_0x34fd9e),_0x815c64['set'](_0x270e30[_0x4a9410],_0x34fd9e)),_0x4a9410++;}_0x4a9410++;}}}}for(const _0xd161fb of _0x403502){const _0x36157a=_0x1cddb9['insertions'][_0xd161fb];for(const _0x538156 of _0x36157a){const _0x297def=this['_getVidAttributeName'](_0x538156),_0x4ab449=_0x538156['item']['getAttribute'](_0x297def);if(_0x4a9974['has'](_0x4ab449)){const _0xdc195f=_0x4a9974['get'](_0x4ab449);_0x3fdb3d['has'](_0x4ab449)||_0x3fdb3d['set'](_0x4ab449,{..._0xdc195f}),_0x310b6f['set'](_0x4ab449,{..._0xdc195f});}}}for(const _0x4c4ddf of _0x3fdb3d['keys']())_0x4c4ddf>=this['_startingRevisionId']&&_0x3fdb3d['delete'](_0x4c4ddf);const _0x4eae97=new Map();for(const _0x1ca8f1 of _0x403502){let _0x11845c=_0x1cddb9['insertions'][_0x1ca8f1];for(const _0x47dc94 of _0x11845c)if(_0x47dc94['item']['is']('element','tableCell')){const _0xa4868b=this['_getVidAttributeName'](_0x47dc94),_0x52305e=_0x47dc94['item']['getAttribute'](_0xa4868b);if(_0x310b6f['has'](_0x52305e)){const _0x173400=_0x47dc94['item']['parent']['parent']['getAttribute']('vid_start'),_0x17d14e=_0x4eae97['get'](_0x173400)||new Set();_0x17d14e['add'](_0x310b6f['get'](_0x52305e)['userId']),_0x4eae97['set'](_0x173400,_0x17d14e);}}_0x11845c=_0x1cddb9['deletions'][_0x1ca8f1];for(const _0xe040 of _0x11845c)if(_0xe040['item']['is']('element','tableCell')){const _0x2f5f5f=this['_getVidAttributeName'](_0xe040),_0x4ce8f2=_0xe040['item']['getAttribute'](_0x2f5f5f);if(_0x3fdb3d['has'](_0x4ce8f2)){const _0x279f51=_0xe040['item']['parent']['parent']['getAttribute']('vid_start'),_0x57ce53=_0x4eae97['get'](_0x279f51)||new Set();_0x57ce53['add'](_0x3fdb3d['get'](_0x4ce8f2)['userId']),_0x4eae97['set'](_0x279f51,_0x57ce53);}}for(const _0x278da6 of _0x4eae97['keys']())(_0x310b6f['has'](_0x278da6)||_0x3fdb3d['has'](_0x278da6))&&_0x4eae97['delete'](_0x278da6);}for(const _0x1df7f2 of _0x403502){const _0x2449e3=_0x1cddb9['insertions'][_0x1df7f2];let _0x114927=null,_0x437795=null;for(const _0x30f796 of _0x2449e3){const _0x2788bd=this['_getVidAttributeName'](_0x30f796),_0xc6a632=_0x30f796['item']['getAttribute'](_0x2788bd),_0x4f0edc=_0x4eae97['get'](_0xc6a632);_0x4f0edc&&'elementStart'==_0x30f796['type']&&(_0x114927=Array['from'](_0x4f0edc)[0x0],_0x437795=_0x30f796['item']['getAttribute']('vid_end')),_0x114927&&(_0x3fdb3d['set'](_0xc6a632,{'userId':_0x114927}),_0x310b6f['set'](_0xc6a632,{'userId':_0x114927})),_0xc6a632==_0x437795&&(_0x114927=null,_0x437795=null);}}const _0x4c1212={},_0x21808e=new Set();for(const _0x43e5fa of _0x403502){const _0x46e3db=_0x32a966['deletions'][_0x43e5fa],_0x8f8619=_0x32a966['insertions'][_0x43e5fa];for(const {userId:_0x1a970d}of this['_touchedMarkers']['values']())null!==_0x1a970d&&_0x21808e['add'](_0x1a970d);for(const {userId:_0x3346f2}of this['_touchedRoots']['values']())null!==_0x3346f2&&_0x21808e['add'](_0x3346f2);this['_markChanges'](_0x8f8619,_0x1cddb9['insertions'][_0x43e5fa],_0x310b6f,'insertion',_0x21808e),this['_markChanges'](_0x46e3db,_0x1cddb9['deletions'][_0x43e5fa],_0x3fdb3d,'deletion',_0x21808e),_0x4c1212[_0x43e5fa]={'insertions':this['_prepareViewToSave'](_0x8f8619),'deletions':this['_prepareViewToSave'](_0x46e3db),'attachChange':this['_touchedRoots']['get'](_0x43e5fa)||null,'attributesBefore':_0x42a93f(this['_baseRootsAttributes']['get'](_0x43e5fa))||{},'attributesAfter':_0x42a93f(this['_diffRootsAttributes']['get'](_0x43e5fa))};}return{'diffData':_0x4c1212,'authorsIds':Array['from'](_0x21808e)};}['_processRootBeforeSave'](_0x2c9e41){for(const [,_0x3be475]of _0x2c9e41['markers']){const _0x302018=_0x3be475['start']['getAncestors']()['filter'](_0x5c4fc7=>'tableCell'==_0x5c4fc7['name']);for(const _0x12306e of _0x302018)0x1==_0x12306e['childCount']&&_0x12306e['getChild'](0x0)['is']('element','paragraph')&&_0x12306e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5b8622){this['_processRootBeforeSave'](_0x5b8622);const _0xb5357=this['editor']['data']['toView'](_0x5b8622,{}),_0x10684c=Array['from'](_0xb5357['getChildren']())['map'](_0x158e40=>this['_getViewJson'](_0x158e40));return JSON['stringify'](_0x10684c);}['_getViewJson'](_0x3647fa){if(_0x3647fa['is']('$text'))return _0x3647fa['data'];{const _0x2c0c4d=_0x3647fa;return{'type':Object['keys'](P)['find'](_0x22a8c7=>_0x3647fa instanceof P[_0x22a8c7]),'name':_0x2c0c4d['name'],'attributes':Array['from'](_0x2c0c4d['getAttributes']()),'children':Array['from'](_0x2c0c4d['getChildren']())['map'](_0x32bfb5=>this['_getViewJson'](_0x32bfb5))};}}['_markChanges'](_0x126289,_0x4127b4,_0x5b7ddd,_0x58d9f1,_0x3d6af1){let _0x1c2955=null,_0x516bc4=null,_0x207bdd=0x0;const _0x22e869=this['editor']['model'];for(let _0x2e445c=0x0;_0x2e445c<_0x4127b4['length'];_0x2e445c++){const _0x4bd670=this['_getVidAttributeName'](_0x4127b4[_0x2e445c]),_0x2c780e=_0x4127b4[_0x2e445c]['item']['getAttribute'](_0x4bd670),_0x30fbe7=_0x5b7ddd['get'](_0x2c780e),_0x1adc20=_0x2e445c==_0x4127b4['length']-0x1;(!_0x1c2955&&_0x30fbe7&&(_0x1c2955=_0x30fbe7,_0x516bc4=_0x4127b4[_0x2e445c]),_0x1c2955&&(!_0x30fbe7||_0x30fbe7['userId']!=_0x1c2955['userId']))&&(_0xd9be3d(_0x30fbe7,B(_0x516bc4,_0x126289,_0x22e869),B(_0x4127b4[_0x2e445c],_0x126289,_0x22e869)),_0x1c2955=_0x30fbe7||null,_0x516bc4=_0x30fbe7?_0x4127b4[_0x2e445c]:null),_0x1c2955&&_0x1adc20&&_0xd9be3d(_0x30fbe7,B(_0x516bc4,_0x126289,_0x22e869),J(_0x4127b4[_0x2e445c],_0x126289,_0x22e869));}function _0xd9be3d(_0x113818,_0x2eca43,_0x1584b5){const _0xa518bf=_0x1c2955['userId'],_0x2a56c1='revision:'+_0x58d9f1+':'+_0xa518bf+':'+_0x207bdd++,_0x35617c=_0x22e869['createRange'](_0x2eca43,_0x1584b5);_0x126289['markers']['set'](_0x2a56c1,_0x35617c),null!==_0xa518bf&&_0x3d6af1['add'](_0xa518bf);}}['_getVidAttributeName'](_0x312c72){switch(_0x312c72['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4b0174,_0x350674){_0x4b0174['baseVersion']=null;for(const _0x3c8b3e in _0x4b0174){const _0x5b1654=_0x4b0174[_0x3c8b3e];if(_0x5b1654 instanceof gt){const _0x537451=_0x350674['get'](_0x5b1654['root']['rootName']);_0x4b0174[_0x3c8b3e]=this['_fixPosition'](_0x5b1654,_0x537451);}if(_0x5b1654 instanceof vt){const _0x42f72=_0x350674['get'](_0x5b1654['root']['rootName']);_0x4b0174[_0x3c8b3e]=this['_fixRange'](_0x5b1654,_0x42f72);}'root'===_0x3c8b3e&&(_0x4b0174['root']=_0x350674['get'](_0x4b0174['root']['rootName']));}}['_fixRange'](_0x28126d,_0x4f6762){return this['editor']['model']['createRange'](this['_fixPosition'](_0x28126d['start'],_0x4f6762),this['_fixPosition'](_0x28126d['end'],_0x4f6762));}['_fixPosition'](_0x3c3528,_0x2461f4){return this['editor']['model']['createPositionFromPath'](_0x2461f4,_0x3c3528['path'],_0x3c3528['stickiness']);}['_handleInsertOperation'](_0x121eee){const _0x151744=this['_idsRoots']['get'](_0x121eee['position']['root']['rootName']),_0x50ee27=this['_fixPosition'](_0x121eee['position'],_0x151744),_0x38059f=null===_0x121eee['_authorId']?null:_0x121eee['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4fb89=_0x50ee27['parent'],_0x4b17ea=this['_revisionId'],_0x521a62=[];for(const _0x46f04d of _0x121eee['nodes'])if(_0x46f04d['is']('element'))_0x521a62['push'](this['_makeIdsRoot'](_0x46f04d));else{for(let _0x202ac5=0x0;_0x202ac5<_0x46f04d['offsetSize'];_0x202ac5++)_0x521a62['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x11fc8f=this['_revisionId'];for(let _0x13914e=_0x4b17ea;_0x13914e<_0x11fc8f;_0x13914e++)this['_touched']['set'](_0x13914e,{'userId':_0x38059f});_0x4fb89['_insertChild'](_0x50ee27['offset'],_0x521a62);}['_handleMoveOperation'](_0x19426d){(_0x19426d=this['_cloneOperation'](_0x19426d,this['_idsRoots']))['_execute']();const _0x46f40a=null===_0x19426d['_authorId']?null:_0x19426d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x613386=_0x19426d['getMovedRangeStart'](),_0x5c7ee7=_0x613386['parent'],_0x27bf4b=_0x613386['offset'];!function _0x36c9c0(_0x43b911,_0x1ca8a5,_0x1a1df6,_0x2db7a8){for(let _0x211668=_0x1a1df6;_0x211668<_0x2db7a8;_0x211668++){const _0x290eb4=_0x1ca8a5['getChild'](_0x211668);_0x290eb4['is']('element','$text')?_0x43b911['set'](_0x290eb4['getAttribute']('vid'),{'userId':_0x46f40a}):(_0x43b911['set'](_0x290eb4['getAttribute']('vid_start'),{'userId':_0x46f40a}),_0x36c9c0(_0x43b911,_0x290eb4,0x0,_0x290eb4['childCount']),_0x43b911['set'](_0x290eb4['getAttribute']('vid_end'),{'userId':_0x46f40a}));}}(this['_touched'],_0x5c7ee7,_0x27bf4b,_0x27bf4b+_0x19426d['howMany']);}['_handleMergeOperation'](_0x297231){const _0x2983cf=null===(_0x297231=this['_cloneOperation'](_0x297231,this['_idsRoots']))['_authorId']?null:_0x297231['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa48560=_0x297231['targetPosition']['parent'],_0x415504=_0x297231['sourcePosition']['parent'],_0x401a03=_0xa48560['getAttribute']('vid_end'),_0xa529b5=_0x415504['getAttribute']('vid_start');_0xa48560['_setAttribute']('vid_end',_0x415504['getAttribute']('vid_end')),_0x415504['_setAttribute']('vid_end',_0x401a03),this['_touched']['set'](_0xa529b5,{'userId':_0x2983cf}),this['_touched']['set'](_0x401a03,{'userId':_0x2983cf}),_0x297231['_execute']();}['_handleSplitOperation'](_0x39041e){const _0x4fc2d9=null===(_0x39041e=this['_cloneOperation'](_0x39041e,this['_idsRoots']))['_authorId']?null:_0x39041e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5546da=_0x39041e['graveyardPosition'],_0x5a7306=_0x39041e['splitPosition']['parent'];_0x39041e['_execute']();const _0x2291b7=_0x5a7306['getAttribute']('vid_end'),_0x3d8216=_0x39041e['insertionPosition']['nodeAfter'];if(_0x5546da){const _0x1810a1=_0x3d8216['getAttribute']('vid_end'),_0xc04635=_0x5a7306['getAttribute']('vid_end');_0x5a7306['_setAttribute']('vid_end',_0x1810a1),_0x3d8216['_setAttribute']('vid_end',_0xc04635),this['_touched']['set'](_0x5a7306['getAttribute']('vid_end'),{'userId':_0x4fc2d9}),this['_touched']['set'](_0x3d8216['getAttribute']('vid_start'),{'userId':_0x4fc2d9});}else{const _0x3a335a=this['_revisionId']++,_0x5c8b02=this['_revisionId']++;_0x5a7306['_setAttribute']('vid_end',_0x3a335a),_0x3d8216['_setAttribute']('vid_start',_0x5c8b02),_0x3d8216['_setAttribute']('vid_end',_0x2291b7),this['_touched']['set'](_0x3a335a,{'userId':_0x4fc2d9}),this['_touched']['set'](_0x5c8b02,{'userId':_0x4fc2d9});}}['_handleMarkerOperation'](_0x1495c1){if(!_0x1495c1['affectsData'])return;const _0x1321f2=(_0x1495c1=this['_cloneOperation'](_0x1495c1,this['_diffRoots']))['oldRange']?_0x1495c1['oldRange']['root']:null,_0x13201a=_0x1495c1['newRange']?_0x1495c1['newRange']['root']:null;_0x1321f2&&this['_markers']['delete'](_0x1495c1['name']),_0x13201a&&this['_markers']['set'](_0x1495c1['name'],_0x1495c1['newRange']['clone']());const _0x2a59c4=null===_0x1495c1['_authorId']?null:_0x1495c1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x201a62=_0x1495c1['name'];if(!this['_touchedMarkers']['has'](_0x201a62))return void this['_touchedMarkers']['set'](_0x201a62,{'range':_0x1495c1['oldRange'],'userId':_0x2a59c4});const _0x2ed0a9=this['_touchedMarkers']['get'](_0x201a62),_0x28b684=_0x2ed0a9['range'],_0x3d3373=_0x1495c1['newRange'];null==_0x28b684&&null==_0x3d3373||_0x28b684&&_0x3d3373&&_0x28b684['isEqual'](_0x3d3373)?this['_touchedMarkers']['delete'](_0x1495c1['name']):_0x2ed0a9['userId']=_0x2a59c4;}['_handleRootOperation'](_0x5ca634,_0x442c65){this['_diffRoots']['has'](_0x5ca634['rootName'])?this['_diffRoots']['get'](_0x5ca634['rootName'])['_isAttached']=_0x5ca634['isAdd']:(this['_diffRoots']['set'](_0x5ca634['rootName'],F(_0x5ca634['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5ca634['rootName'],{}),_0x442c65&&this['_idsRoots']['set'](_0x5ca634['rootName'],F(_0x5ca634['rootName'],!0x0)));const _0x608326=null===_0x5ca634['_authorId']?null:_0x5ca634['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f5a97=this['_touchedRoots']['get'](_0x5ca634['rootName']);_0x2f5a97&&_0x2f5a97['userId']===_0x608326?this['_touchedRoots']['delete'](_0x5ca634['rootName']):this['_touchedRoots']['set'](_0x5ca634['rootName'],{'userId':_0x608326,'isAttached':_0x5ca634['isAdd']});}['_handleRootAttributeOperation'](_0x5ca091){const _0x321bd2=this['_diffRootsAttributes']['get'](_0x5ca091['root']['rootName']);null===_0x5ca091['newValue']?delete _0x321bd2[_0x5ca091['key']]:_0x321bd2[_0x5ca091['key']]=_0x5ca091['newValue'];}}function T(_0x32367f){const _0x14d1a8=F(_0x32367f['rootName'],_0x32367f['isAttached']());for(const _0x366a0e of _0x32367f['getChildren']()){const _0x32b8ac=_0x366a0e['_clone'](!0x0);_0x14d1a8['_appendChild'](_0x32b8ac);}return _0x14d1a8;}function F(_0xd0d6a9,_0x58de7e=!0x0){const _0x51c7a9=new mt();return _0x51c7a9['rootName']=_0xd0d6a9,_0x51c7a9['_isAttached']=_0x58de7e,_0x51c7a9['isAttached']=()=>_0x51c7a9['_isAttached'],_0x51c7a9;}function B(_0x31c638,_0x3a5c95,_0x598356){const _0x2107e3='elementEnd'==_0x31c638['type']?_0x598356['createPositionAt'](_0x31c638['item'],'end'):_0x598356['createPositionBefore'](_0x31c638['item']);return _0x598356['createPositionFromPath'](_0x3a5c95,_0x2107e3['path'],_0x2107e3['stickiness']);}function J(_0x5574b4,_0x16c429,_0xe819b0){const _0x454f7b='elementStart'==_0x5574b4['type']?_0xe819b0['createPositionAt'](_0x5574b4['item'],0x0):_0xe819b0['createPositionAfter'](_0x5574b4['item']);return _0xe819b0['createPositionFromPath'](_0x16c429,_0x454f7b['path'],_0x454f7b['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5bbd6f,_0x4a531f){super(_0x5bbd6f),this['focusTracker']=new _0x2d0d71(),this['keystrokes']=new _0x1fdb24(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4a531f),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5d8db5(this);}['render'](){super['render'](),_0x544162({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x7d1113=_0x2d7749=>_0x2d7749['stopPropagation']();this['keystrokes']['set']('arrowright',_0x7d1113),this['keystrokes']['set']('arrowleft',_0x7d1113),this['keystrokes']['set']('arrowup',_0x7d1113),this['keystrokes']['set']('arrowdown',_0x7d1113);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1d85d9){this['revisionNameInputView']['fieldView']['element']['value']=_0x1d85d9['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4f432f){const _0x485f30=new _0x2e3a33(this['locale'],_0x77d7bb),_0x1491e3=_0x485f30['fieldView'];_0x1491e3['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3a6a3a=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4f432f&&(_0x3a6a3a+='\x20('+m(this['locale'],'optional')+')'),(_0x485f30['label']=_0x3a6a3a,_0x1491e3['on']('input',()=>{this['revisionNameInputValue']=_0x1491e3['element']['value']['trim']();}),_0x485f30);}}class u extends _0x3a751c{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x53b6bf=this['editor'],_0x1c5a5b=_0x53b6bf['plugins']['get']('RevisionTracker');_0x53b6bf['ui']['componentFactory']['add']('revisionHistory',_0x10b58a=>{const _0x599d73=_0x32c2dd(_0x10b58a),_0x37df84=_0x599d73['panelView']['children'],_0x11c3a4=new _0x9966d(_0x10b58a),_0x474d24=new _0x20df16(_0x10b58a),_0x25a0b4=new te(_0x10b58a),_0x569a66=new _0x20df16(_0x10b58a),_0x16d3ca=new te(_0x10b58a);return _0x599d73['bind']('isEnabled')['to'](_0x1c5a5b,'isReady',_0x1c5a5b,'isEnabled',_0x53b6bf,'isReadOnly',(_0x131efb,_0x454d27,_0x3b77cc)=>_0x131efb&&_0x454d27&&!_0x3b77cc),_0x599d73['buttonView']['set']({'icon':_0x3ccdb5['history'],'label':m(_0x10b58a,'Revision\x20history'),'tooltip':!0x0}),_0x25a0b4['set']({'label':m(_0x10b58a,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x25a0b4['bind']('isEnabled')['to'](_0x1c5a5b,'isReady',_0x1c5a5b,'isEnabled',_0x53b6bf,'isReadOnly',(_0x53641a,_0x3c384c,_0x5ccc8a)=>_0x53641a&&_0x3c384c&&!_0x5ccc8a),_0x25a0b4['on']('execute',()=>this['_showDialog']()),_0x16d3ca['set']({'label':m(_0x10b58a,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x16d3ca['bind']('isEnabled')['to'](_0x1c5a5b,'isReady',_0x53b6bf,'isReadOnly',(_0xd7e43c,_0x45291a)=>_0xd7e43c&&!_0x45291a),_0x16d3ca['on']('execute',()=>{_0x53b6bf['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x599d73['isOpen']=!0x1,_0x53b6bf['editing']['view']['focus']();}),_0x474d24['children']['add'](_0x25a0b4),_0x569a66['children']['add'](_0x16d3ca),_0x11c3a4['role']='menu',_0x11c3a4['items']['addMany']([_0x474d24,_0x569a66]),_0x37df84['add'](_0x11c3a4),_0x599d73;}),_0x53b6bf['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x47fd2f=this['editor'],_0x1bc609=_0x47fd2f['locale'],_0x45827b=new _0xc5cb91(_0x1bc609),_0x7e7ee=new _0x486440(_0x1bc609);_0x45827b['buttonView']['set']({'icon':_0x3ccdb5['history'],'label':m(_0x1bc609,'Revision\x20history')});const _0x35b17e=new _0x50c765(_0x1bc609,_0x45827b),_0x4dba3f=new _0xa6c9e2(_0x1bc609);_0x4dba3f['set']({'label':m(_0x1bc609,'Save\x20current\x20revision')}),_0x4dba3f['delegate']('execute')['to'](_0x45827b),_0x4dba3f['on']('execute',()=>{this['_showDialog']();}),_0x35b17e['children']['add'](_0x4dba3f),_0x7e7ee['items']['add'](_0x35b17e);const _0x2bfd4f=new _0x50c765(_0x1bc609,_0x45827b),_0x2bd9ff=new _0xa6c9e2(_0x1bc609);return _0x2bd9ff['set']({'label':m(_0x1bc609,'Open\x20revision\x20history')}),_0x2bd9ff['delegate']('execute')['to'](_0x45827b),_0x2bd9ff['on']('execute',()=>{_0x47fd2f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2bfd4f['children']['add'](_0x2bd9ff),_0x7e7ee['items']['add'](_0x2bfd4f),_0x45827b['panelView']['children']['add'](_0x7e7ee),_0x45827b;}['_showDialog'](){const _0x57d9a7=this['editor'],_0xcad1e3=_0x57d9a7['locale'],_0xc79334=_0x57d9a7['plugins']['get']('Dialog'),_0x12ce9f=_0x57d9a7['plugins']['get']('RevisionTracker');function _0x2d6614(_0x5b677c){_0x57d9a7['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5b677c['revisionName']?_0x5b677c['revisionNameInputView']['errorText']=m(_0xcad1e3,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x57d9a7['plugins']['get'](l)['saveRevision']({'name':_0x5b677c['revisionName']}),_0xc79334['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2d6614(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xc79334['show']({'id':'revisionSave','title':m(_0xcad1e3,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x57d9a7['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xc79334['hide']()},{'label':m(_0x57d9a7['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x23b078){_0x23b078['bind']('isEnabled')['to'](_0x12ce9f,'isReady',_0x12ce9f,'isEnabled',_0x57d9a7,'isReadOnly',(_0x1d9c4e,_0x5855cf,_0xd7933d)=>_0x1d9c4e&&_0x5855cf&&!_0xd7933d);},'onExecute':()=>_0x2d6614(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3c9389=this['editor'],_0x39f529=_0x3c9389['locale'];this['_saveRevisionFormView']=new hs(_0x39f529,_0x3c9389['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x31a1ac,_0x55ecb4){super(_0x31a1ac),this['_model']=_0x55ecb4,this['changeId']=_0x55ecb4['id'];const _0x47b597=this['bindTemplate'],_0x224169=m(_0x31a1ac,_0x55ecb4['data']['isSuggestion']?'Suggested\x20by':'add'==_0x55ecb4['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x55ecb4['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x47b597['to']('type',_0x333dd8=>'ck-revision-change__'+_0x333dd8)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x224169}]},{'text':'\x20'+_0x55ecb4['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x390099(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x43dd85){super(),this['id']=_0x43dd85['id']||_0x188740(),this['author']=_0x43dd85['author'],this['type']=_0x43dd85['type'],this['data']=_0x43dd85['data']||{},this['rootName']=_0x43dd85['rootName'],this['set']('createdAt',_0x43dd85['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(_0x316ab8,_0x604a15){this['newRevisionId']=_0x316ab8,this['oldRevisionId']=_0x604a15,this['changes']=new _0x72131();}['_setChanges'](_0x5202d0){for(const _0x503e3a of _0x5202d0)this['changes']['add'](_0x503e3a);}}const Y={'c':_0x55aef3,'a':_0x4637f2,'e':_0x215a14,'r':_0x2d0043,'u':_0x7ff77};class d extends _0x3a751c{['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[_0x5da54c,_0x189ed2,j];}constructor(_0x5d0c49){super(_0x5d0c49),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',(_0x132fd6,_0x1da170,_0x8f149d)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5d909d=>{for(const _0x239509 of this['editor']['editing']['view']['document']['roots'])_0x8f149d?_0x5d909d['removeClass']('ck-editor__editable__overlay',_0x239509):_0x5d909d['addClass']('ck-editor__editable__overlay',_0x239509);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x17481f=>null!==_0x17481f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x31ee07,_0x21dcba,_0x535c71)=>_0x31ee07&&_0x535c71?_0x21dcba['changes']['getIndex'](_0x535c71):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3c4318,_0x1d2cf5)=>_0x3c4318?_0x1d2cf5['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x189ed2);}['init'](){const _0x3b8c8c=this['editor'],_0x17f18f=new _t(_0x3b8c8c,{'direction':'backward'}),_0x6c7891=new _t(_0x3b8c8c,{'direction':'forward'});(_0x3b8c8c['commands']['add']('showPreviousChange',_0x17f18f),_0x3b8c8c['commands']['add']('showNextChange',_0x6c7891),_0x3b8c8c['commands']['add']('restoreRevision',new pt(_0x3b8c8c)),this['on']('change:numberOfChanges',()=>{_0x17f18f['refresh'](),_0x6c7891['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3b8c8c['enableReadOnlyMode']('revision-viewer'),_0x3b8c8c['plugins']['has']('WidgetToolbarRepository'))&&_0x3b8c8c['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x281475){await this['loadRevisionData'](_0x281475);const _0x5856a1={};for(const _0x2cd82b in _0x281475['diffData']){if(_0x281475['diffData'][_0x2cd82b]['attachChange']&&!_0x281475['diffData'][_0x2cd82b]['attachChange']['isAttached'])continue;const _0x2db216=this['_removeRevisionMarkers'](JSON['parse'](_0x281475['diffData'][_0x2cd82b]['insertions'])),_0x3677b5=this['editor']['editing']['view']['document'],_0x1945fd=new _0x2f19d5(_0x3677b5,_0x2db216['map'](_0x51b9f8=>this['_getViewObj'](_0x51b9f8)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5856a1[_0x2cd82b]=this['editor']['data']['processor']['toData'](_0x1945fd),this['editor']['data']['processor']['useFillerType']('default');}return _0x5856a1;}async['getRevisionRootsAttributes'](_0x415f24){await this['loadRevisionData'](_0x415f24);const _0x142e7f={};for(const _0x200c9f in _0x415f24['diffData'])_0x415f24['diffData'][_0x200c9f]['attachChange']&&!_0x415f24['diffData'][_0x200c9f]['attachChange']['isAttached']||(_0x142e7f[_0x200c9f]=_0x415f24['diffData'][_0x200c9f]['attributesAfter']||{});return _0x142e7f;}['_removeRevisionMarkers'](_0x1563ae){return(_0x1563ae=_0x1563ae['filter'](_0x1a2359=>!_0x1a2359['name']||'revision-start'!==_0x1a2359['name']&&'revision-end'!==_0x1a2359['name']))['forEach'](_0x47d3b9=>{'string'!=typeof _0x47d3b9&&(_0x47d3b9['children']=this['_removeRevisionMarkers'](_0x47d3b9['children']),_0x47d3b9['attributes']=_0x47d3b9['attributes']['filter'](_0x50d52d=>!_0x50d52d[0x0]['startsWith']('data-revision-')));}),_0x1563ae;}async['compare'](_0x200f38,_0xdebac1,_0x1f86d5=!0x1){if(!this['isEnabled'])return;const _0x23f09c=this['diff'],_0x1ed9f3=this['repository'],_0x16e8b1='string'==typeof _0x200f38?_0x1ed9f3['getRevision'](_0x200f38):_0x200f38,_0x2a8f90='string'==typeof _0xdebac1?_0x1ed9f3['getRevision'](_0xdebac1):_0xdebac1,_0x17b6d3=_0x16e8b1['id'],_0xa6c1d4=_0x2a8f90?_0x2a8f90['id']:null;if(!_0x1f86d5&&this['diff']&&this['diff']['newRevisionId']===_0x17b6d3&&this['diff']['oldRevisionId']===_0xa6c1d4)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x17b6d3,_0xa6c1d4);const _0x134339=this['_getRevisionsRange'](_0x16e8b1,_0x2a8f90,!0x0)['map'](_0x5d3a78=>this['loadRevisionData'](_0x5d3a78));return _0x134339['push'](new Promise(_0x519e16=>{setTimeout(_0x519e16,0x14);})),Promise['all'](_0x134339)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1e04fc=this['_getDiff'](_0x17b6d3,_0xa6c1d4);for(const _0x27a4fb of _0x1e04fc['changes'])this['_changeIdToChange']['set'](_0x27a4fb['id'],_0x27a4fb);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x45ed2a=>{for(const _0x268dab of this['editor']['model']['document']['getRootNames']())_0x45ed2a['detachRoot'](_0x268dab);for(const _0xfe7cc of Object['keys'](_0x1e04fc['model'])){const _0x8d7ea2=_0x45ed2a['addRoot'](_0xfe7cc);for(const _0x586f62 of Object['keys'](_0x1e04fc['attributes'][_0xfe7cc]))_0x45ed2a['setAttribute'](_0x586f62,_0x1e04fc['attributes'][_0xfe7cc][_0x586f62],_0x8d7ea2);_0x45ed2a['insert'](_0x1e04fc['model'][_0xfe7cc],_0x8d7ea2,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1e04fc['changes'])),this['isReady']=!0x0;})['catch'](_0x4f1cef=>{console['error'](_0x4f1cef),this['_cleanUp'](),_0x23f09c&&(this['diff']=_0x23f09c),this['isReady']=!0x0;});}['addRevisionData'](_0x5877cc,_0x245b42){const _0xb746e7=this['repository']['createRevision'](_0x5877cc);return _0xb746e7['on']('_update',(_0x43761e,_0x3094db,_0x16e97d)=>_0x245b42(_0x3094db,_0x16e97d,_0xb746e7)),this['repository']['addRevision'](_0xb746e7),_0xb746e7;}['loadRevisionData'](_0x5bae65){if(!_0x5bae65||_0x5bae65['diffData'])return Promise['resolve']();{const _0x542f20=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x542f20,'revisionId':_0x5bae65['id']})['then'](_0x5e8789=>{_0x5bae65['_update']({'diffData':_0x5e8789['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},_0x252951=>{for(const _0x367c07 of this['editor']['model']['document']['getRootNames']())_0x252951['detachRoot'](_0x367c07);});}['_sortAndFilterDiffChanges'](_0x4f2103){const _0x181747=[],_0x32cb58=new Map();for(const _0x278293 of this['editor']['model']['document']['getRootNames']()){const _0x623aea=this['editor']['editing']['view']['getDomRoot'](_0x278293);if(!_0x623aea)continue;const _0x41d296=_0x623aea['getClientRects']()['item'](0x0);_0x41d296&&(_0x181747['push'](_0x278293),_0x32cb58['set'](_0x278293,_0x41d296));}return _0x181747['sort']((_0xd41533,_0x477f75)=>{const _0x5c50c0=_0x32cb58['get'](_0xd41533),_0x4f3d38=_0x32cb58['get'](_0x477f75);return _0x5c50c0['y']-_0x4f3d38['y']||_0x5c50c0['x']-_0x4f3d38['x'];}),(_0x4f2103=_0x4f2103['filter'](_0x104ca6=>_0x181747['includes'](_0x104ca6['rootName'])))['sort']((_0xfb9391,_0x175b44)=>_0x181747['indexOf'](_0xfb9391['rootName'])-_0x181747['indexOf'](_0x175b44['rootName'])),_0x4f2103;}['_makeTape'](_0x5efa22){const _0x26f9b7=Array['from'](_0x5efa22['markers'])['filter'](([_0x528a89,_0x440167])=>_0x528a89['startsWith']('revision:')&&!_0x440167['isCollapsed']),_0x1f64bf=Array['from'](this['editor']['model']['createRangeIn'](_0x5efa22)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x26f9b7['length'])for(const _0x3cb5c9 of _0x1f64bf){const [_0x5cb032,_0xacee30]=_0x26f9b7[0x0],[,_0x3ed14c,_0x52ac97]=_0x5cb032['split'](':');if(_0xacee30['end']['isEqual'](_0x3cb5c9['nextPosition'])&&_0x26f9b7['shift'](),(_0x3cb5c9['previousPosition']['isEqual'](_0xacee30['start'])||_0x3cb5c9['previousPosition']['isAfter'](_0xacee30['start']))&&('insertion'==_0x3ed14c?_0x3cb5c9['isAdded']={'userId':_0x52ac97}:'deletion'==_0x3ed14c&&(_0x3cb5c9['isRemoved']={'userId':_0x52ac97})),0x0==_0x26f9b7['length'])break;}return _0x1f64bf;}['_refreshStartEndIndex'](_0x53265a){const _0xde677d=new Map();for(let _0xbde5c9=0x0;_0xbde5c9<_0x53265a['length'];_0xbde5c9++)'text'===_0x53265a[_0xbde5c9]['type']?(_0x53265a[_0xbde5c9]['item']['startIndex']=_0xbde5c9,_0x53265a[_0xbde5c9]['item']['endIndex']=_0xbde5c9):('elementStart'===_0x53265a[_0xbde5c9]['type']?_0x53265a[_0xbde5c9]['item']['startIndex']=_0xbde5c9:'elementEnd'===_0x53265a[_0xbde5c9]['type']&&(_0x53265a[_0xbde5c9]['item']['endIndex']=_0xbde5c9),_0xde677d['set'](_0x53265a[_0xbde5c9]['id'],_0xbde5c9));for(const _0x49b057 of _0xde677d['values']())'elementStart'===_0x53265a[_0x49b057]['type']?_0x53265a[_0x49b057]['item']['endIndex']=_0xde677d['get'](_0x53265a[_0x49b057]['pairId']):'elementEnd'===_0x53265a[_0x49b057]['type']&&(_0x53265a[_0x49b057]['item']['startIndex']=_0xde677d['get'](_0x53265a[_0x49b057]['pairId']));}['_processTape'](_0x5cd891){for(let _0x1c848e=0x0;_0x1c848e<_0x5cd891['length'];_0x1c848e++){if('elementStart'===_0x5cd891[_0x1c848e]['type'])_0x5cd891[_0x1c848e]['item']['startIndex']=_0x1c848e;else{if('elementEnd'===_0x5cd891[_0x1c848e]['type']){_0x5cd891[_0x1c848e]['item']['endIndex']=_0x1c848e;const _0x25f393=_0x5cd891[_0x1c848e]['item']['startIndex'];_0x5cd891[_0x25f393]['pairId']=_0x5cd891[_0x1c848e]['id'],_0x5cd891[_0x1c848e]['pairId']=_0x5cd891[_0x25f393]['id'];}else _0x5cd891[_0x1c848e]['item']['startIndex']=_0x1c848e,_0x5cd891[_0x1c848e]['item']['endIndex']=_0x1c848e,_0x5cd891[_0x1c848e]['pairId']=null;}_0x5cd891[_0x1c848e]['markersStart']||(_0x5cd891[_0x1c848e]['markersStart']=[],_0x5cd891[_0x1c848e]['markersEnd']=[]);}}['_markInsertions'](_0x184436,_0x324932){const _0x41163a=_0x184436['filter'](_0x39fbaf=>!_0x39fbaf['isAdded']);for(let _0x2c0101=0x0;_0x2c0101<_0x324932['length'];_0x2c0101++)_0x324932[_0x2c0101]['isAdded']&&(_0x41163a[_0x2c0101]['isAdded']=_0x324932[_0x2c0101]['isAdded']);}['_makeModelFromViewString'](_0x3953ce){const _0x384631=JSON['parse'](_0x3953ce),_0x7c04e8=this['editor']['editing']['view']['document'],_0x326b7a=new _0x2f19d5(_0x7c04e8,_0x384631['map'](_0x18bfb2=>this['_getViewObj'](_0x18bfb2)));return this['editor']['data']['toModel'](_0x326b7a);}['_getViewObj'](_0xd01cad){const _0x231fa1=this['editor']['editing']['view']['document'];if('string'==typeof _0xd01cad)return new _0x3cb44f(_0x231fa1,_0xd01cad);{const _0x32eeb9=_0xd01cad['children']['map'](_0x1d3d5b=>this['_getViewObj'](_0x1d3d5b));return new(Y[_0xd01cad['type']]||_0x45fa53)(_0x231fa1,_0xd01cad['name'],_0xd01cad['attributes'],_0x32eeb9);}}['_getDiff'](_0x52c857,_0x9f20e4=null){const _0xad8be0=this['repository']['getRevision'](_0x52c857),_0x8e5636=_0x9f20e4?this['repository']['getRevision'](_0x9f20e4):null,_0x577e5a=this['_getRevisionsRange'](_0xad8be0,_0x8e5636),_0x675b2e=_0x577e5a[_0x577e5a['length']-0x1],_0x3c2c78=new Map(),_0x5eb9f3={'model':{},'attributes':{},'changes':[]},_0x3b7e36=new Set(),_0x1231e1=new Map();for(let _0x5349e5=_0x577e5a['length']-0x1;_0x5349e5>=0x0;_0x5349e5--){const _0x2be06d=_0x577e5a[_0x5349e5];for(const _0x5bc72d of Object['keys'](_0x2be06d['diffData']))if(_0x2be06d['diffData'][_0x5bc72d]['attachChange']){const _0x526041=_0x2be06d['diffData'][_0x5bc72d]['attachChange'];_0x526041['isAttached']?(_0x3b7e36['add'](_0x5bc72d),_0x1231e1['has'](_0x5bc72d)&&_0x1231e1['get'](_0x5bc72d)['userId']==_0x526041['userId']?_0x1231e1['delete'](_0x5bc72d):_0x1231e1['set'](_0x5bc72d,_0x526041)):_0x1231e1['has'](_0x5bc72d)?(_0x3b7e36['delete'](_0x5bc72d),_0x1231e1['delete'](_0x5bc72d)):(_0x3b7e36['add'](_0x5bc72d),_0x1231e1['set'](_0x5bc72d,_0x526041));}else _0x3b7e36['add'](_0x5bc72d);}for(const _0x135965 of _0x3b7e36){const _0x51fd26=_0x1231e1['has'](_0x135965)&&!_0x1231e1['get'](_0x135965)['isAttached'];let _0x17ab12=_0x51fd26?_0x577e5a['length']-0x1:0x0;const _0x4d4ba6=_0x51fd26?-0x1:0x1;for(;_0x577e5a[_0x17ab12];){const _0x4aa5a9=_0x577e5a[_0x17ab12];if(_0x4aa5a9['diffData'][_0x135965]){const _0x364905=_0x51fd26?_0x4aa5a9['diffData'][_0x135965]['attributesBefore']:_0x4aa5a9['diffData'][_0x135965]['attributesAfter'];_0x5eb9f3['attributes'][_0x135965]=_0x364905?_0x42a93f(_0x364905):{};break;}_0x17ab12+=_0x4d4ba6;}}for(const _0xa556b4 of _0x577e5a){_0xa556b4['model']={};for(const _0x1529b4 of _0xa556b4['authors'])_0x3c2c78['set'](_0x1529b4['id'],_0x1529b4);for(const _0x3cd5c2 of _0x3b7e36){const _0x103d71=_0xa556b4['diffData'][_0x3cd5c2]?_0xa556b4['diffData'][_0x3cd5c2]['insertions']:'[]',_0x3014f9=_0xa556b4['diffData'][_0x3cd5c2]?_0xa556b4['diffData'][_0x3cd5c2]['deletions']:'[]';_0xa556b4['model'][_0x3cd5c2]={'insertions':this['_makeModelFromViewString'](_0x103d71),'deletions':this['_makeModelFromViewString'](_0x3014f9)};}}for(const _0x159864 of _0x3b7e36){let _0x4fba6f=null,_0x4a82ca=0x0;const _0x75db75=new Map(Array['from'](_0xad8be0['model'][_0x159864]['insertions']['markers'])['filter'](([_0x5b1488])=>!_0x5b1488['startsWith']('revision:')));let _0xd3f17e=0x0;for(const _0x633b26 of _0x577e5a){const _0x1cc272=this['_makeTape'](_0x633b26['model'][_0x159864]['insertions']);_0x633b26==_0xad8be0?(_0x4fba6f=_0x1cc272,_0x4a82ca=_0x4fba6f['length'],_0x4fba6f['forEach'](_0x54601a=>{_0x54601a['id']=_0xd3f17e++;}),this['_processTape'](_0x4fba6f)):this['_markInsertions'](_0x4fba6f,_0x1cc272);const _0xe7e1ab=_0x4fba6f['filter'](_0x3ef43d=>!_0x3ef43d['isAdded'])['map'](_0x1bba7a=>_0x1bba7a['id']);let _0x3a5fa1=0x0;const _0x1c430d=this['_makeTape'](_0x633b26['model'][_0x159864]['deletions']);_0x1c430d['forEach'](_0x5c6e4b=>{_0x5c6e4b['isRemoved']?_0x5c6e4b['id']=_0x4a82ca++:_0x5c6e4b['id']=_0xe7e1ab[_0x3a5fa1++];}),this['_processTape'](_0x1c430d),this['_setDistance'](_0x4fba6f,'isAdded'),this['_setDistance'](_0x1c430d,'isRemoved'),_0x633b26==_0xad8be0&&this['_markMarkers'](_0x4fba6f,_0x75db75),_0x4fba6f=this['_joinTapes'](_0x4fba6f,_0x1c430d),this['_refreshStartEndIndex'](_0x4fba6f),this['_setDistance'](_0x4fba6f,'isRemoved');}_0x4fba6f=_0x4fba6f['filter'](_0x305ca8=>!(_0x305ca8['isAdded']&&_0x305ca8['isRemoved']));const _0x2f4d84=new Map(_0x675b2e['model'][_0x159864]['deletions']['markers']),_0x1aef53=new Set(_0x75db75['keys']());for(const _0x678a99 of _0x2f4d84['keys']())_0x1aef53['delete'](_0x678a99);this['_markSuggestions'](_0x4fba6f,_0x1aef53),this['_fixObsoleteTags'](_0x4fba6f),_0x4fba6f=this['_removeMissingPairs'](_0x4fba6f),_0x4fba6f=this['_markMismatchedRemovedTags'](_0x4fba6f),_0x4fba6f=this['_removeUnsupportedChanges'](_0x4fba6f);const {root:_0x479990,changes:_0x134dd2}=this['_makeModelFromTape'](_0x4fba6f,_0x3c2c78,_0x159864);_0x5eb9f3['model'][_0x159864]=_0x479990;const _0x33d50e=_0x1231e1['get'](_0x159864);if(_0x33d50e){const _0x2a2f59=_0x3c2c78['get'](_0x33d50e['userId']),_0x303d80=new r({'author':_0x2a2f59,'type':_0x33d50e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x159864});_0x134dd2['unshift'](_0x303d80),_0x5eb9f3['attributes'][_0x159864]['revisionHistoryAttachChange']=_0x303d80['id'];}_0x5eb9f3['changes']=_0x5eb9f3['changes']['concat'](_0x134dd2);}return _0x5eb9f3;}['_markMarkers'](_0x387f20,_0x1f7f09){for(let _0x3d7f4c=0x0;_0x3d7f4c<_0x387f20['length'];_0x3d7f4c++)for(const [_0x22f920,_0x52e4e0]of _0x1f7f09)_0x52e4e0['start']['isEqual'](_0x387f20[_0x3d7f4c]['previousPosition'])&&_0x387f20[_0x3d7f4c]['markersStart']['push'](_0x22f920),_0x52e4e0['end']['isEqual'](_0x387f20[_0x3d7f4c]['nextPosition'])&&_0x387f20[_0x3d7f4c]['markersEnd']['push'](_0x22f920);}['_joinTapes'](_0x749a24,_0x77eb34){let _0x15e812=[],_0x5d341c=0x0,_0x520a5e=0x0;for(;_0x5d341c<_0x749a24['length']||_0x520a5e<_0x77eb34['length'];){const _0x1ecdda=_0x749a24[_0x5d341c]||{},_0x53d83e=_0x77eb34[_0x520a5e]||{};if(_0x1ecdda['id']==_0x53d83e['id'])_0x5d341c++,_0x520a5e++,_0x15e812['push'](_0x1ecdda);else{if(_0x53d83e['isRemoved']&&_0x1ecdda['isAdded']){const {commonTape:_0x355034,iEnd:_0x3754fb,jEnd:_0x61f711}=this['_threeWayMerge'](_0x749a24,_0x5d341c,_0x77eb34,_0x520a5e);_0x15e812=_0x15e812['concat'](_0x355034),_0x5d341c=_0x3754fb,_0x520a5e=_0x61f711;}else _0x53d83e['isRemoved']?(_0x520a5e++,_0x15e812['push'](_0x53d83e)):(_0x5d341c++,_0x15e812['push'](_0x1ecdda));}}return _0x15e812;}['_markSuggestions'](_0x3dd919,_0x21d991){const _0x5762e7=[];for(let _0x3e040a=0x0;_0x3e040a<_0x3dd919['length'];_0x3e040a++){for(let _0x3f91b9=0x0;_0x3f91b9<_0x3dd919[_0x3e040a]['markersStart']['length'];_0x3f91b9++){const _0x5ce55d=_0x3dd919[_0x3e040a]['markersStart'][_0x3f91b9];if(!_0x21d991['has'](_0x5ce55d))continue;const {group:_0x2d3ec4,type:_0x3302c4,authorId:_0x45944e}=_0x10d641(_0x5ce55d);'revision-suggestion'!=_0x2d3ec4||'insertion'!=_0x3302c4&&'deletion'!=_0x3302c4||(_0x5762e7['unshift']({'type':_0x3302c4,'name':_0x5ce55d,'userId':_0x45944e}),_0x3dd919[_0x3e040a]['markersStart']['splice'](_0x3f91b9,0x1),_0x3f91b9--);}_0x5b27dc(_0x3dd919[_0x3e040a]);for(let _0x34cbb8=0x0;_0x34cbb8<_0x3dd919[_0x3e040a]['markersEnd']['length'];_0x34cbb8++){const _0x51db1d=_0x3dd919[_0x3e040a]['markersEnd'][_0x34cbb8];if(!_0x21d991['has'](_0x51db1d))continue;const {group:_0x3dcc90,type:_0x1d680c}=_0x10d641(_0x51db1d);if('revision-suggestion'!=_0x3dcc90||'insertion'!=_0x1d680c&&'deletion'!=_0x1d680c)continue;_0x3dd919[_0x3e040a]['markersEnd']['splice'](_0x34cbb8,0x1),_0x34cbb8--;const _0x1b7802=_0x5762e7['findIndex'](_0xb41536=>_0xb41536['name']==_0x51db1d);_0x1b7802>-0x1&&_0x5762e7['splice'](_0x1b7802,0x1);}}function _0x10d641(_0x389da4){const _0x16cc91=_0x389da4['split'](':');return{'group':_0x16cc91[0x0],'type':_0x16cc91[0x1],'subType':_0x16cc91['length']>=0x5?_0x16cc91[0x2]:null,'id':_0x16cc91['length']<0x5?_0x16cc91[0x2]:_0x16cc91[0x3],'authorId':_0x16cc91['length']<0x5?_0x16cc91[0x3]:_0x16cc91[0x4],'markerCount':0x6==_0x16cc91['length']?_0x16cc91[0x5]:null};}function _0x5b27dc(_0x434b18){for(let _0xe551e=0x0;_0xe551e<_0x5762e7['length'];_0xe551e++){if(_0x434b18['isAdded']&&'insertion'==_0x5762e7[_0xe551e]['type'])return _0x434b18['isAddSuggestion']=_0x5762e7[_0xe551e],void delete _0x434b18['isAdded'];if(!_0x434b18['isAdded']&&!_0x434b18['isRemoved']&&'deletion'==_0x5762e7[_0xe551e]['type'])return void(_0x434b18['isRemoveSuggestion']=_0x5762e7[_0xe551e]);}}}['_setDistance'](_0x3f37a3,_0x2ecbf3){let _0x5e4890=0x0,_0x4963ca=!0x1;const _0x295848=new Map();for(const _0x1d2d77 of _0x3f37a3)_0x1d2d77[_0x2ecbf3]?_0x4963ca&&(_0x5e4890++,_0x4963ca=!0x1):(_0x5e4890++,_0x4963ca=!0x0),_0x295848['set'](_0x1d2d77['id'],_0x5e4890);for(let _0xd76175=0x0;_0xd76175<_0x3f37a3['length'];_0xd76175++){if('isRemoved'==_0x2ecbf3&&_0x3f37a3[_0xd76175]['isAdded']||'isAdded'==_0x2ecbf3&&_0x3f37a3[_0xd76175]['isRemoved'])continue;if('text'==_0x3f37a3[_0xd76175]['type']){_0x3f37a3[_0xd76175]['distance']=0x0;continue;}const _0x20eae3=_0x295848['get'](_0x3f37a3[_0xd76175]['pairId']),_0x2ea6ad=_0x295848['get'](_0x3f37a3[_0xd76175]['id']);_0x3f37a3[_0xd76175]['distance']=_0x20eae3-_0x2ea6ad;}}['_getRevisionsRange'](_0x2a5f79,_0x1c3182,_0x9c1d3b=!0x1){const _0x1dc683=[];let _0x2047b6=this['repository']['getIndex'](_0x2a5f79),_0x53137a=this['repository']['getIndex'](_0x1c3182);for(-0x1==_0x53137a&&(_0x53137a=this['repository']['_revisions']['length'],_0x9c1d3b=!0x1);_0x2047b6<_0x53137a;)_0x1dc683['push'](this['repository']['getRevision'](_0x2047b6)),_0x2047b6++;return _0x9c1d3b&&_0x1dc683['push'](this['repository']['getRevision'](_0x2047b6)),_0x1dc683;}['_threeWayMerge'](_0x48e56e,_0x5de661,_0x28287b,_0x235a85){const _0x41be38=this['editor']['model']['schema'];let _0x4016d0=_0x5de661;for(;_0x48e56e[_0x4016d0]&&_0x48e56e[_0x4016d0]['isAdded'];)_0x4016d0++;let _0x5cbb61=_0x235a85;for(;_0x28287b[_0x5cbb61]&&_0x28287b[_0x5cbb61]['isRemoved'];)_0x5cbb61++;_0x12968a(_0x48e56e,_0x5de661,_0x4016d0),_0x12968a(_0x28287b,_0x235a85,_0x5cbb61);const _0x415a57=_0x28287b['slice'](_0x235a85,_0x5cbb61)['concat'](_0x48e56e['slice'](_0x5de661,_0x4016d0));return _0x415a57['sort']((_0x42a2f6,_0xd33dad)=>_0x42a2f6['side']!=_0xd33dad['side']?_0x42a2f6['side']-_0xd33dad['side']:_0x42a2f6['level']!=_0xd33dad['level']?_0x42a2f6['level']-_0xd33dad['level']:_0x42a2f6['distance']!=_0xd33dad['distance']?_0xd33dad['distance']-_0x42a2f6['distance']:!!_0x42a2f6['isAdded']!=!!_0xd33dad['isAdded']?-0x1==_0x42a2f6['side']||0x0==_0x42a2f6['side']?_0x42a2f6['isAdded']?-0x1:0x1:_0x42a2f6['isAdded']?0x1:-0x1:_0x42a2f6['index']-_0xd33dad['index']),{'commonTape':_0x415a57,'iEnd':_0x4016d0,'jEnd':_0x5cbb61};function _0x12968a(_0x212b73,_0x48d68d,_0x122c4b){let _0x40e877=-0x1,_0x45e153=Number['POSITIVE_INFINITY'],_0x3485b0=!0x0;for(let _0x2b6591=_0x48d68d;_0x2b6591<_0x122c4b;_0x2b6591++)if(_0x41be38['isInline'](_0x212b73[_0x2b6591]['item'])||(_0x3485b0=!0x1),_0x212b73[_0x2b6591]['item']['startIndex']<_0x48d68d&&(_0x40e877=_0x2b6591),_0x212b73[_0x2b6591]['item']['endIndex']>=_0x122c4b){_0x45e153=_0x2b6591;break;}_0x3485b0&&(_0x40e877=_0x122c4b-0x1);for(let _0x25beab=_0x48d68d;_0x25beab<_0x122c4b;_0x25beab++)_0x212b73[_0x25beab]['side']=_0x25beab<=_0x40e877?-0x1:_0x25beab<_0x45e153?0x0:0x1,_0x212b73[_0x25beab]['index']=_0x25beab;let _0x36f66a=0x0;for(let _0x35300f=_0x48d68d;_0x35300f<=_0x40e877;_0x35300f++)0x0==_0x212b73[_0x35300f]['distance']?_0x212b73[_0x35300f]['level']=_0x36f66a:(_0x36f66a++,_0x212b73[_0x35300f]['level']=_0x36f66a,_0x36f66a++);for(let _0x544c76=_0x48d68d;_0x544c76<_0x122c4b;_0x544c76++)0x0==_0x212b73[_0x544c76]['side']&&(_0x212b73[_0x544c76]['level']=_0x36f66a);_0x36f66a=0x0;for(let _0x3415da=_0x122c4b-0x1;_0x3415da>=_0x45e153;_0x3415da--)0x0==_0x212b73[_0x3415da]['distance']?_0x212b73[_0x3415da]['level']=_0x36f66a:(_0x36f66a--,_0x212b73[_0x3415da]['level']=_0x36f66a,_0x36f66a--);}}['_fixObsoleteTags'](_0x4b6eba){const _0x584c87=new Map(),_0x5bf8cb=this['editor']['model']['schema'];for(let _0x44b04b=0x1;_0x44b04b<_0x4b6eba['length'];_0x44b04b++){let _0x1f98d5,_0x28d11d,_0x3c6b2d;const _0x24b905=_0x4b6eba[_0x44b04b],_0x28eca1=_0x4b6eba[_0x44b04b-0x1];if('text'==_0x24b905['type'])continue;if(_0x24b905['type']!=_0x28eca1['type'])continue;if(!_0x5bf8cb['isBlock'](_0x28eca1['item'])||_0x5bf8cb['isLimit'](_0x28eca1['item']))continue;if(!_0x5bf8cb['isBlock'](_0x24b905['item'])||_0x5bf8cb['isLimit'](_0x24b905['item']))continue;if((_0x4b6eba[_0x44b04b]['isAdded']||_0x4b6eba[_0x44b04b]['isAddSuggestion'])&&_0x4b6eba[_0x44b04b-0x1]['isRemoved'])_0x1f98d5=_0x4b6eba[_0x44b04b],_0x28d11d=_0x4b6eba[_0x44b04b-0x1],_0x3c6b2d=_0x44b04b-0x1;else{if(!_0x4b6eba[_0x44b04b]['isRemoved']||!_0x4b6eba[_0x44b04b-0x1]['isAdded']&&!_0x4b6eba[_0x44b04b-0x1]['isAddSuggestion'])continue;_0x1f98d5=_0x4b6eba[_0x44b04b-0x1],_0x28d11d=_0x4b6eba[_0x44b04b],_0x3c6b2d=_0x44b04b;}const _0x111d1b=_0x1f98d5['level']==_0x28d11d['level'],_0x41f653=Math['abs'](_0x1f98d5['level'])<Math['abs'](_0x28d11d['level'])&&0x0==_0x28d11d['distance'];(_0x111d1b||_0x41f653)&&(_0x584c87['set'](_0x28d11d['id'],_0x1f98d5['id']),_0x4b6eba['splice'](_0x3c6b2d,0x1),_0x44b04b--,_0x1f98d5['isAdded']=!0x1);}for(let _0x59585e=0x0;_0x59585e<_0x4b6eba['length'];_0x59585e++)_0x584c87['has'](_0x4b6eba[_0x59585e]['pairId'])&&(_0x4b6eba[_0x59585e]['pairId']=_0x584c87['get'](_0x4b6eba[_0x59585e]['pairId']));}['_removeMissingPairs'](_0x9724fc){const _0x13166e=new Set(_0x9724fc['map'](_0x2198de=>_0x2198de['id']));for(let _0x44b83c=0x0;_0x44b83c<_0x9724fc['length'];_0x44b83c++)_0x13166e['has'](_0x9724fc[_0x44b83c]['pairId'])||0x0==_0x9724fc[_0x44b83c]['distance']||(_0x9724fc[_0x44b83c]['isIncorrect']=!0x0);return _0x9724fc['filter'](_0x41d6e7=>!_0x41d6e7['isIncorrect']);}['_markMismatchedRemovedTags'](_0x42dc2c){const _0x55f980=new Set();for(let _0x55dabc=0x0;_0x55dabc<_0x42dc2c['length'];_0x55dabc++){if(_0x55f980['has'](_0x42dc2c[_0x55dabc]['id'])&&_0x42dc2c[_0x55dabc]['isRemoved']&&(_0x42dc2c[_0x55dabc]['isIncorrect']=!0x0),_0x42dc2c[_0x55dabc]['isIncorrect'])continue;if(0x0==_0x42dc2c[_0x55dabc]['distance'])continue;if('elementStart'!=_0x42dc2c[_0x55dabc]['type'])continue;if(null==_0x42dc2c[_0x55dabc]['pairId'])continue;let _0x10f307=_0x55dabc+0x1,_0x38712d=0x0;for(;_0x42dc2c[_0x10f307]['id']!=_0x42dc2c[_0x55dabc]['pairId'];)'elementStart'==_0x42dc2c[_0x10f307]['type']?_0x38712d++:'elementEnd'==_0x42dc2c[_0x10f307]['type']&&_0x38712d--,_0x10f307++;if(0x0!=_0x38712d){if(_0x42dc2c[_0x55dabc]['isRemoved'])_0x42dc2c[_0x55dabc]['isIncorrect']=!0x0;else{for(;_0x10f307!=_0x55dabc;)_0x42dc2c[_0x10f307]['isRemoved']&&0x0!=_0x42dc2c[_0x10f307]['distance']&&(_0x42dc2c[_0x10f307]['isIncorrect']=!0x0,_0x55f980['add'](_0x42dc2c[_0x10f307]['pairId'])),_0x10f307--;}}}return _0x42dc2c['filter'](_0x4b76c1=>!_0x4b76c1['isIncorrect']);}['_removeUnsupportedChanges'](_0x3f043c){const _0x55bb4e=this['editor']['model']['schema'];for(let _0x436c54=0x0;_0x436c54<_0x3f043c['length'];_0x436c54++){if(!(_0x3f043c[_0x436c54]['isAdded']||_0x3f043c[_0x436c54]['isAddSuggestion']||_0x3f043c[_0x436c54]['isRemoved']||_0x3f043c[_0x436c54]['isRemoveSuggestion']))continue;if(0x0==_0x3f043c[_0x436c54]['distance'])continue;const _0x317cc8=_0x3f043c[_0x436c54]['item'];_0x55bb4e['isBlock'](_0x317cc8)||_0x55bb4e['isLimit'](_0x317cc8)||(_0x3f043c[_0x436c54]['isAdded']&&delete _0x3f043c[_0x436c54]['isAdded'],_0x3f043c[_0x436c54]['isAddSuggestion']&&delete _0x3f043c[_0x436c54]['isAddSuggestion'],_0x3f043c[_0x436c54]['isRemoveSuggestion']&&delete _0x3f043c[_0x436c54]['isRemoveSuggestion'],_0x3f043c[_0x436c54]['isRemoved']&&(_0x3f043c[_0x436c54]['isIncorrect']=!0x0));}return _0x3f043c['filter'](_0x1691c8=>!_0x1691c8['isIncorrect']);}['_makeModelFromTape'](_0xf86325,_0xc4962a,_0x3f367f){const _0x4b5809=new mt(),_0x59c89b=[],_0x5cd470=new Map(),_0x4b68a0=this['editor']['model'],_0x5bb9bd=_0x4b68a0['schema'],_0xc6c05=[_0x4b5809],_0x3c4348={},_0x3d5c1c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x41d3b9=null;const _0x269455=[0x0];for(let _0x1a5744=0x0;_0x1a5744<_0xf86325['length'];_0x1a5744++)if('elementStart'===_0xf86325[_0x1a5744]['type']){_0xf86325[_0x1a5744]['previousPosition']=_0x4b68a0['createPositionFromPath'](_0x4b5809,_0x269455);const _0x10a497=new ft(_0xf86325[_0x1a5744]['item']['name'],_0xf86325[_0x1a5744]['item']['getAttributes']());_0xc6c05[0x0]['_appendChild'](_0x10a497),_0x269455['push'](0x0),_0xc6c05['unshift'](_0x10a497),_0xf86325[_0x1a5744]['nextPosition']=_0x4b68a0['createPositionFromPath'](_0x4b5809,_0x269455);}else'elementEnd'===_0xf86325[_0x1a5744]['type']?(_0xc6c05['shift'](),_0xf86325[_0x1a5744]['previousPosition']=_0x4b68a0['createPositionFromPath'](_0x4b5809,_0x269455),_0x269455['pop'](),_0x269455[_0x269455['length']-0x1]++,_0xf86325[_0x1a5744]['nextPosition']=_0x4b68a0['createPositionFromPath'](_0x4b5809,_0x269455)):(_0xf86325[_0x1a5744]['previousPosition']=_0x4b68a0['createPositionFromPath'](_0x4b5809,_0x269455),_0x41d3b9?_0x41d3b9['_data']+=_0xf86325[_0x1a5744]['item']['data']:_0x41d3b9=new wt(_0xf86325[_0x1a5744]['item']['data'],_0xf86325[_0x1a5744]['item']['getAttributes']()),_0xf86325[_0x1a5744+0x1]&&'text'===_0xf86325[_0x1a5744+0x1]['type']&&_0x5c20d8(_0x41d3b9,_0xf86325[_0x1a5744+0x1]['item'])||(_0xc6c05[0x0]['_appendChild'](_0x41d3b9),_0x41d3b9=null),_0x269455[_0x269455['length']-0x1]+=_0xf86325[_0x1a5744]['item']['offsetSize'],_0xf86325[_0x1a5744]['nextPosition']=_0x4b68a0['createPositionFromPath'](_0x4b5809,_0x269455));for(let _0x168397=0x0;_0x168397<_0xf86325['length'];_0x168397++){const _0x5cc51b=_0xf86325[_0x168397]['previousPosition'],_0x13fb74=_0xf86325[_0x168397]['nextPosition'];for(const _0x329229 of _0xf86325[_0x168397]['markersStart'])_0x5cd470['set'](_0x329229,{'start':_0x5cc51b,'end':null});_0xcc8fa9('isRemoveSuggestion',_0x168397,_0x5cc51b,_0x13fb74),_0xcc8fa9('isAddSuggestion',_0x168397,_0x5cc51b,_0x13fb74),_0xcc8fa9('isRemoved',_0x168397,_0x5cc51b,_0x13fb74),_0xcc8fa9('isAdded',_0x168397,_0x5cc51b,_0x13fb74);for(const _0x3810c6 of _0xf86325[_0x168397]['markersEnd']){_0x5cd470['get'](_0x3810c6)['end']=_0x13fb74;}}for(const [_0x2e71ce,_0x54890d]of _0x5cd470){const _0x1ec202=this['editor']['model']['createRange'](_0x54890d['start'],_0x54890d['end']);_0x4b5809['markers']['set'](_0x2e71ce,_0x1ec202);}return _0x59c89b['sort']((_0x23eaba,_0x428f73)=>{const _0x3ef33b=_0x4b5809['markers']['get']('revision:'+_0x23eaba['id']),_0x252339=_0x4b5809['markers']['get']('revision:'+_0x428f73['id']);return _0x3ef33b['start']['isBefore'](_0x252339['start'])?-0x1:_0x3ef33b['start']['isAfter'](_0x252339['start'])?0x1:_0x3ef33b['end']['isBefore'](_0x252339['end'])?-0x1:_0x3ef33b['end']['isAfter'](_0x252339['end'])?0x1:'add'===_0x23eaba['type']?-0x1:0x1;}),{'root':_0x4b5809,'changes':_0x59c89b};function _0xcc8fa9(_0x34648f,_0x82edad,_0x219f0d,_0x1a59dc){const _0x4e1173=!!_0xf86325[_0x82edad][_0x34648f],_0x1229c9=_0x4e1173?_0xf86325[_0x82edad][_0x34648f]['userId']:null,_0x5697e8=_0x82edad===_0xf86325['length']-0x1,_0x39e141=_0x3d5c1c[_0x34648f][0x0],_0x2ac54e=_0x5bb9bd['isObject'](_0xf86325[_0x82edad]['item']);!_0x3c4348[_0x34648f]&&_0x4e1173?_0x3c4348[_0x34648f]={'start':_0x219f0d,'tapeItem':_0xf86325[_0x82edad],'userId':_0x1229c9,'type':_0x34648f}:_0x3c4348[_0x34648f]&&!_0x4e1173?(_0x3c4348[_0x34648f]['end']=_0x219f0d,_0x1ac7a6(_0x3c4348[_0x34648f]),_0x3c4348[_0x34648f]=null):_0x3c4348[_0x34648f]&&_0x4e1173&&_0x3c4348[_0x34648f]['userId']!==_0x1229c9&&(_0x3c4348[_0x34648f]['end']=_0x219f0d,_0x39e141&&_0x39e141['userId']===_0x3c4348[_0x34648f]['userId']||_0x1ac7a6(_0x3c4348[_0x34648f]),_0x3c4348[_0x34648f]={'start':_0x219f0d,'tapeItem':_0xf86325[_0x82edad],'userId':_0x1229c9,'type':_0x34648f}),_0x3c4348[_0x34648f]&&_0x2ac54e&&('elementStart'!==_0xf86325[_0x82edad]['type']||_0x39e141&&_0x39e141['userId']===_0x1229c9||_0x3d5c1c[_0x34648f]['unshift']({'userId':_0x1229c9,'object':_0xf86325[_0x82edad]['item'],'change':_0x3c4348[_0x34648f]}),'elementEnd'===_0xf86325[_0x82edad]['type']&&_0x39e141&&_0x39e141['object']===_0xf86325[_0x82edad]['item']&&(_0x3d5c1c[_0x34648f]['shift'](),_0x3c4348[_0x34648f]=_0x39e141['change'])),_0x3c4348[_0x34648f]&&_0x5697e8&&(_0x3c4348[_0x34648f]['end']=_0x1a59dc,_0x1ac7a6(_0x3c4348[_0x34648f]),_0x3c4348[_0x34648f]=null);}function _0x1ac7a6({start:_0x37014f,end:_0x2d4528,tapeItem:_0x2e7cf8,userId:_0x253b94,type:_0x2064dc}){const _0x32f94a=_0x2e7cf8['item'],_0x57f65b=_0x4b68a0['schema']['isBlock'](_0x32f94a)&&!_0x4b68a0['schema']['isLimit'](_0x32f94a),_0x1e02b8=_0x37014f['nodeAfter']==_0x2d4528['parent']&&_0x2d4528['isAtStart'];if(_0x57f65b&&_0x1e02b8)return;const _0x87bcc7=_0x4b68a0['createRange'](_0x37014f,_0x2d4528),_0x408a8e=_0xc4962a['get'](_0x253b94),_0xd06b54=new r({'author':_0x408a8e,'type':'isAdded'==_0x2064dc||'isAddSuggestion'==_0x2064dc?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2064dc||'isRemoveSuggestion'==_0x2064dc},'createdAt':new Date(),'rootName':_0x3f367f});_0x59c89b['push'](_0xd06b54),_0x4b5809['markers']['set']('revision:'+_0xd06b54['id'],_0x87bcc7);}function _0x5c20d8(_0x2dd612,_0x481b74){const _0x189fba=_0x2dd612['getAttributes'](),_0x184046=_0x481b74['getAttributes']();for(const _0x4d25e0 of _0x189fba){if(_0x4d25e0[0x1]!==_0x481b74['getAttribute'](_0x4d25e0[0x0]))return!0x1;_0x184046['next']();}return _0x184046['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5abe07=>{const _0x28ceb6=_0x5abe07['markerName']['split'](':')[0x1],_0x27d6c3=this['_getChangeFromId'](_0x28ceb6);if(!_0x27d6c3)return null;const _0x5901c0='add'==_0x27d6c3['type']?'insertion':'deletion',_0x355400=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5901c0];return _0x27d6c3['data']['isSuggestion']&&_0x355400['push']('ck-suggestion-marker-'+_0x5901c0+'-new'),this['activeChange']==_0x27d6c3&&_0x355400['push']('ck-suggestion-marker--active'),{'classes':_0x355400,'attributes':{'data-change-id':_0x28ceb6}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3cb51e=>{_0x3cb51e['on']('element:pre',(_0xb42403,_0x489668,_0x3b9a6c)=>{const _0x5375c1=_0x489668['viewItem']['getChild'](0x0);if(!_0x5375c1||!_0x5375c1['is']('element','code'))return;if(!_0x3b9a6c['consumable']['consume'](_0x5375c1,{'attributes':['vid_start','vid_end']}))return;const _0x50c1cc=_0x489668['modelRange']['start']['nodeAfter'];_0x3b9a6c['writer']['setAttribute']('vid_start',_0x5375c1['getAttribute']('vid_start'),_0x50c1cc),_0x3b9a6c['writer']['setAttribute']('vid_end',_0x5375c1['getAttribute']('vid_end'),_0x50c1cc);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3aed8d=>{_0x3aed8d['on']('element',(_0x3e4b68,_0x4b8a3d,_0x560e74)=>{if(!_0x560e74['consumable']['consume'](_0x4b8a3d['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4b8a3d['modelRange']['isCollapsed'])return;const _0x45d4ed=_0x4b8a3d['modelRange']['start']['nodeAfter'];_0x45d4ed['hasAttribute']('vid_start')||_0x45d4ed['hasAttribute']('vid')||(_0x560e74['writer']['setAttribute']('vid_start',_0x4b8a3d['viewItem']['getAttribute']('vid_start'),_0x45d4ed),_0x560e74['writer']['setAttribute']('vid_end',_0x4b8a3d['viewItem']['getAttribute']('vid_end'),_0x45d4ed));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3d90c1=>_0x3d90c1['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x436434,[,_0x4792cc])=>{['vid_start','vid_end','vid']['includes'](_0x4792cc)&&(_0x436434['return']=!0x0,_0x436434['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4d4d76=>{_0x4d4d76['on']('attribute:vid',(_0x2535ed,_0x4c70a5,_0x52782e)=>{if('\x20'!=_0x4c70a5['item']['data']||_0x4c70a5['item']['parent']['maxOffset']>0x1)return;if(!_0x52782e['consumable']['consume'](_0x4c70a5['item'],_0x2535ed['name']))return;const _0x145de3=_0x52782e['writer'],_0x25a7e8=_0x52782e['mapper']['toViewRange'](_0x4c70a5['range']);_0x145de3['wrap'](_0x25a7e8,_0x145de3['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x38cced){const _0x54a6fe=_0x38cced['plugins']['get']('RevisionViewer');return(_0x26351a,_0x508e6b,_0x191cd)=>{const _0x24ba86=_0x508e6b['markerName']['split'](':')[0x1],_0x24182d=_0x54a6fe['_getChangeFromId'](_0x24ba86);if(!_0x24182d)return null;const _0x274867='add'==_0x24182d['type']?'split':'merge';if(!_0x191cd['consumable']['test'](_0x508e6b['markerRange'],_0x26351a['name']))return;const _0x2b0f2=_0x508e6b['markerRange']['getWalker'](),_0x10e478=_0x508e6b['markerRange']['start'],_0x55f3bb=_0x38cced['model']['schema'];let _0x218bad=null,_0x3eb8c7=null,_0x48b281=!0x1,_0x24dfa5=!0x1;for(const _0x48ae3b of _0x2b0f2){const _0x8f38b0=_0x48ae3b['item'];_0x48b281=_0x48b281||_0x55f3bb['isContent'](_0x8f38b0);const _0x33f880=_0x191cd['mapper']['toViewElement'](_0x8f38b0);if(_0x33f880&&_0x33f880['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x48ae3b['type']&&(_0x55f3bb['isBlock'](_0x8f38b0)&&!_0x55f3bb['isLimit'](_0x8f38b0)&&(_0x8f38b0['nextSibling']||_0x10e478['isAtEnd']?_0x218bad&&_0x218bad['parent']==_0x8f38b0||(_0x218bad=_0x8f38b0,_0x424b45(_0x48ae3b['previousPosition']),_0x24dfa5=!0x0):_0x3eb8c7=_0x3eb8c7||_0x48ae3b['previousPosition']));}function _0x424b45(_0x22432c){const _0x3f8d2a=_0x191cd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x274867}),_0x1790a4=_0x191cd['mapper']['toViewPosition'](_0x22432c);_0x24182d['data']['isSuggestion']&&_0x191cd['writer']['addClass']('ck-suggestion-marker-'+_0x274867+'-new',_0x3f8d2a),_0x54a6fe['activeChange']==_0x24182d&&_0x191cd['writer']['addClass']('ck-suggestion-marker--active',_0x3f8d2a),_0x191cd['writer']['insert'](_0x1790a4,_0x3f8d2a),_0x191cd['mapper']['bindElementToMarker'](_0x3f8d2a,_0x508e6b['markerName']);}_0x48b281||_0x24dfa5||!_0x3eb8c7||_0x424b45(_0x3eb8c7);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2189d6,_0x51e18d,_0x8757fa)=>{const _0x53981a=_0x8757fa['mapper']['markerNameToElements'](_0x51e18d['markerName']);if(_0x53981a){for(const _0x16c1b9 of _0x53981a)(_0x16c1b9['hasClass']('ck-suggestion-marker-split')||_0x16c1b9['hasClass']('ck-suggestion-marker-merge'))&&(_0x8757fa['mapper']['unbindElementFromMarkerName'](_0x16c1b9,_0x51e18d['markerName']),_0x8757fa['writer']['remove'](_0x16c1b9));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1608e8,_0x32942c,_0x59f325)=>{const _0x3d253a=_0x32942c['markerName']['split'](':')[0x1],_0x4ece9e=this['_getChangeFromId'](_0x3d253a);if(!_0x4ece9e)return null;const _0x3c3f8a='add'==_0x4ece9e['type']?'split':'merge';if(_0x59f325['consumable']['test'](_0x32942c['markerRange'],_0x1608e8['name']))for(const _0x1b950b of _0x32942c['markerRange']['getItems']()){if(!_0x1b950b['is']('element','softBreak'))continue;const _0x115625=_0x59f325['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3c3f8a}),_0x362828=_0x59f325['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1b950b));_0x4ece9e['data']['isSuggestion']&&_0x59f325['writer']['addClass']('ck-suggestion-marker-'+_0x3c3f8a+'-new',_0x115625),this['activeChange']==_0x4ece9e&&_0x59f325['writer']['addClass']('ck-suggestion-marker--active',_0x115625),_0x59f325['writer']['insert'](_0x362828,_0x115625),_0x59f325['mapper']['bindElementToMarker'](_0x115625,_0x32942c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x19a7e8=>{for(const _0x3b8999 of this['editor']['model']['document']['getRootNames']()){const _0x42ce8b=this['editor']['model']['document']['getRoot'](_0x3b8999),_0x3cf771=this['editor']['editing']['view']['document']['getRoot'](_0x3b8999);if(_0x3cf771){const _0x15b6f2=_0x42ce8b['getAttribute']('revisionHistoryAttachChange');if(_0x19a7e8['removeAttribute']('data-change-id',_0x3cf771),_0x19a7e8['removeClass']('ck-revision-history-root-add',_0x3cf771),_0x19a7e8['removeClass']('ck-revision-history-root-remove',_0x3cf771),_0x19a7e8['removeClass']('ck-revision-history-root--active',_0x3cf771),_0x15b6f2){const _0x68758=this['_getChangeFromId'](_0x15b6f2);if(!_0x68758)return null;_0x19a7e8['setAttribute']('data-change-id',_0x15b6f2,_0x3cf771),_0x19a7e8['addClass']('ck-revision-history-root-'+_0x68758['type'],_0x3cf771),this['activeChange']==_0x68758&&_0x19a7e8['addClass']('ck-revision-history-root--active',_0x3cf771);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4a330c=>'revision-comment:'+_0x4a330c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x298f51=>'revision-suggestion:'+_0x298f51,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1fcde2=>({'name':'suggestion:'+_0x1fcde2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x9a831=>{const _0x39633d=_0x9a831['markerName']['split'](':')[0x1];return'insertion'!=_0x39633d&&'deletion'!=_0x39633d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x39633d]};}}),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',(_0x54a798,_0x5f2d91,_0x3f4147)=>{const _0x359c74=_0x3f4147['mapper']['markerNameToElements'](_0x5f2d91['markerName']);if(_0x359c74){for(const _0x3e3f3f of _0x359c74)_0x3e3f3f['is']('uiElement')&&(_0x3f4147['mapper']['unbindElementFromMarkerName'](_0x3e3f3f,_0x5f2d91['markerName']),_0x3f4147['writer']['remove'](_0x3e3f3f));}},{'priority':'high'});}['_getChangeFromId'](_0x524c4a){return this['_changeIdToChange']['get'](_0x524c4a);}['_getViewForChange'](_0x1a8b6a){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x1a8b6a),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1a1932,_0x473be7,_0x485f6b,_0x1814d8)=>{_0x1814d8&&this['_balloon']['remove'](_0x1814d8),_0x485f6b&&(this['_balloon']['add']({'view':_0x485f6b,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5772e6=this['editor']['editing'],_0x23d005=this['_getChangeFromId'](_0x485f6b['changeId']);let _0x18bc91;if(_0x23d005['data']['isOnRoot']){const _0xf9aa6=_0x5772e6['view']['getDomRoot'](_0x23d005['rootName']);_0x18bc91=Array['from'](_0xf9aa6['getClientRects']());}else{const _0x51bcc1=this['editor']['model']['markers']['get']('revision:'+_0x485f6b['changeId']);_0x18bc91=Array['from'](_0x5772e6['mapper']['markerNameToElements'](_0x51bcc1['name']))['map'](_0x18b0c9=>_0x5772e6['view']['domConverter']['mapViewToDom'](_0x18b0c9))['map'](_0x435c46=>Array['from'](_0x435c46['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x18bc91[0x0];return _0x18bc91['find'](_0x350c5d=>_0x350c5d['top']-0x3<=this['_activeViewTarget']['y']&&_0x350c5d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x350c5d['left']-0x3<=this['_activeViewTarget']['x']&&_0x350c5d['right']+0x3>=this['_activeViewTarget']['x'])||_0x18bc91[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x542e54,_0x1f6549,_0x2a57c5,_0x375e7b)=>{this['activeView']=_0x2a57c5?this['_getViewForChange'](_0x2a57c5):null,this['editor']['model']['change'](()=>{const _0x2512f6=this['editor']['editing'];_0x375e7b&&(_0x375e7b['data']['isOnRoot']?_0x2512f6['view']['change'](_0x3494b5=>{_0x3494b5['removeClass']('ck-revision-history-root--active',_0x2512f6['view']['document']['getRoot'](_0x375e7b['rootName']));}):_0x2512f6['reconvertMarker']('revision:'+_0x375e7b['id'])),_0x2a57c5&&(_0x2a57c5['data']['isOnRoot']?_0x2512f6['view']['change'](_0x10c6df=>{_0x10c6df['addClass']('ck-revision-history-root--active',_0x2512f6['view']['document']['getRoot'](_0x2a57c5['rootName']));}):_0x2512f6['reconvertMarker']('revision:'+_0x2a57c5['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x45ad6c,_0x5563a5)=>{if(this['activeChange'])return;const _0x40b69f=this['_findChangeIdFromDomTarget'](_0x5563a5['target']),_0x19edf1=this['_changeIdToChange']['get'](_0x40b69f);_0x19edf1?(this['_activeViewTarget']={'x':_0x5563a5['domEvent']['x'],'y':_0x5563a5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x19edf1)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x558305,_0x303412)=>{const _0x13a59d=this['_findChangeIdFromDomTarget'](_0x303412['target']),_0x56e7af=this['_changeIdToChange']['get'](_0x13a59d);_0x56e7af?(this['_activeViewTarget']={'x':_0x303412['domEvent']['x'],'y':_0x303412['domEvent']['y']},_0x56e7af===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x56e7af):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xec203e){do{const _0x1bc87e=_0xec203e['getAttribute']('data-change-id');if(_0x1bc87e)return _0x1bc87e;_0xec203e=_0xec203e['parent'];}while(_0xec203e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4a6d29=>{for(const _0x162c96 of this['editor']['model']['markers'])_0x4a6d29['removeMarker'](_0x162c96);});}}function Z(_0x45fc2a,_0x2dcc32){return(_0x305b3a,_0x44eb41,_0x46bc8d)=>{if(!_0x46bc8d['consumable']['test'](_0x44eb41['markerRange'],_0x305b3a['name']))return;const _0x2f62eb=_0x44eb41['markerRange']['getWalker'](),_0x199c21=_0x44eb41['markerRange']['start'],_0x362d82=_0x45fc2a['model']['schema'];let _0x37e5ea=null,_0x1a3b07=null,_0x488f17=!0x1,_0x389b34=!0x1;for(const _0x1da8b3 of _0x2f62eb){const _0x423b3f=_0x1da8b3['item'];_0x488f17=_0x488f17||_0x362d82['isContent'](_0x423b3f);const _0x24bc5c=_0x46bc8d['mapper']['toViewElement'](_0x423b3f);if(_0x24bc5c&&_0x24bc5c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1da8b3['type']&&(_0x362d82['isBlock'](_0x423b3f)&&!_0x362d82['isLimit'](_0x423b3f)&&(_0x423b3f['nextSibling']||_0x199c21['isAtEnd']?_0x37e5ea&&_0x37e5ea['parent']==_0x423b3f||(_0x37e5ea=_0x423b3f,_0x5c91e2(_0x1da8b3['previousPosition']),_0x389b34=!0x0):_0x1a3b07=_0x1a3b07||_0x1da8b3['previousPosition']));}function _0x5c91e2(_0x54a2fc){const _0x108fb0=_0x46bc8d['mapper']['toViewPosition'](_0x54a2fc),_0x4a3584=_0x46bc8d['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2dcc32});_0x46bc8d['writer']['insert'](_0x108fb0,_0x4a3584),_0x46bc8d['mapper']['bindElementToMarker'](_0x4a3584,_0x44eb41['markerName']);}_0x488f17||_0x389b34||!_0x1a3b07||_0x5c91e2(_0x1a3b07);};}class pt extends _0x36fb2a{constructor(_0x3cd31a){super(_0x3cd31a);const _0x297b96=_0x3cd31a['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x297b96,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x297b96,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2979e2=this['editor'],_0x43d32c=_0x2979e2['plugins']['get'](d),_0x59741b=_0x43d32c['isReady']?_0x43d32c['diff']['newRevisionId']:null;_0x2979e2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x59741b);}['refresh'](){const {isReady:_0x13e47c,isEnabled:_0xe54ae0,repository:_0x5b0698,diff:_0x22fd58}=this['editor']['plugins']['get'](d),_0x58adbb=_0x22fd58&&_0x5b0698['getLaterVisibleRevision'](_0x22fd58['newRevisionId']);this['isEnabled']=_0x13e47c&&_0xe54ae0&&Boolean(_0x58adbb);}}class _t extends _0x36fb2a{['_step'];constructor(_0x117b5f,{direction:_0xe469fa}){super(_0x117b5f);const _0x97109e=_0x117b5f['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0xe469fa?0x1:-0x1,this['listenTo'](_0x97109e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x97109e,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x97109e,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2fc48e=this['editor'],_0xe59612=_0x2fc48e['plugins']['get'](d),{isNavigationMode:_0x29e087,currentChangeNumber:_0x154f97}=_0xe59612;let _0xca1cb9;if(_0xe59612['activeChange']=_0x29e087?_0xe59612['diff']['changes']['get'](_0x154f97+this['_step']):_0xe59612['diff']['changes']['first'],_0xe59612['activeChange']['data']['isOnRoot'])_0xca1cb9=_0x2fc48e['editing']['view']['getDomRoot'](_0xe59612['activeChange']['rootName']);else{const _0x211694=_0x2fc48e['model']['markers']['get']('revision:'+_0xe59612['activeChange']['id']);_0xca1cb9=_0x580098(_0x2fc48e['editing'],_0x211694);}_0x22e6de({'target':_0xca1cb9,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x22707b,currentChangeNumber:_0x3c344d,numberOfChanges:_0x21a33b,isReady:_0x290034,isEnabled:_0x1143de}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1143de&&_0x290034&&_0x21a33b)&&(!_0x22707b||(0x1===this['_step']?_0x3c344d<_0x21a33b-0x1:_0x3c344d>0x0));}}class oi extends ts{constructor(_0x2c1f6d){super(_0x2c1f6d);const _0x1da270=this['bindTemplate'],_0xe6b44=new te(_0x2c1f6d),_0x279ac3=new te(_0x2c1f6d);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',(_0x34d2f4,_0x278e1c)=>_0x34d2f4&&_0x278e1c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x253f3f,_0x5347f7,_0x5f355e,_0x301712)=>{if(!_0x253f3f)return m(_0x2c1f6d,'Loading...');if(!_0x5f355e)return m(_0x2c1f6d,'No\x20changes');const _0x2441ba=m(_0x2c1f6d,'NUMBER_OF_CHANGES',_0x5f355e);return _0x301712?m(_0x2c1f6d,'X_OF_Y_CHANGES',[_0x5347f7+0x1,_0x5f355e]):_0x2441ba;}),_0xe6b44['set']({'label':m(_0x2c1f6d,'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'}),_0x279ac3['set']({'label':m(_0x2c1f6d,'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'}),_0xe6b44['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x279ac3['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xe6b44['on']('execute',()=>this['fire']('execute','backward')),_0x279ac3['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',_0x1da270['if']('_isStatusLabelVisible','ck-hidden',_0x4aab34=>!_0x4aab34)]},'children':[{'text':_0x1da270['to']('isNavigationMode',_0x2805be=>_0x2805be?m(_0x2c1f6d,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x2c1f6d,'Total')+':\x20')}]},{'text':_0x1da270['to']('_statusText')}]},new _0x309b4c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xe6b44,_0x279ac3]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x3a751c{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3dca1d=this['editor']['editing']['view'];_0x3dca1d['change'](_0x3ba4d1=>{for(const _0x28ef19 of _0x3dca1d['document']['roots'])_0x3ba4d1['addClass'](le,_0x28ef19);});}['hide'](){const _0x57f33e=this['editor']['editing']['view'];_0x57f33e['change'](_0x5f0f3a=>{for(const _0x251446 of _0x57f33e['document']['roots'])_0x5f0f3a['removeClass'](le,_0x251446);});}}class g extends _0x3a751c{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x1c7471=this['editor'],_0x375842=_0x1c7471['plugins']['get'](d),_0x55c388=_0x1c7471['plugins']['get'](ge);_0x1c7471['ui']['componentFactory']['add']('exitToEditing',_0x1db02e=>{const _0x254cf6=new te(_0x1db02e);return _0x254cf6['set']({'label':m(_0x1db02e,'Back\x20to\x20editing'),'icon':_0x3ccdb5['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x254cf6,'execute',()=>{_0x1c7471['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x254cf6;}),_0x1c7471['ui']['componentFactory']['add']('restoreRevision',_0x1d04e1=>{const _0x5fc738=new te(_0x1d04e1);return _0x5fc738['set']({'label':m(_0x1d04e1,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5fc738['bind']('isEnabled')['to'](_0x1c7471['commands']['get']('restoreRevision')),this['listenTo'](_0x5fc738,'execute',()=>_0x1c7471['execute']('restoreRevision')),_0x5fc738;}),_0x1c7471['ui']['componentFactory']['add']('changesNavigation',_0x1c5125=>{const _0x293f33=new oi(_0x1c5125),_0x522c1b=_0x1c7471['commands']['get']('showPreviousChange'),_0x4133b2=_0x1c7471['commands']['get']('showNextChange');return _0x293f33['bind']('isBackwardNavigationEnabled')['to'](_0x522c1b,'isEnabled'),_0x293f33['bind']('isForwardNavigationEnabled')['to'](_0x4133b2,'isEnabled'),_0x293f33['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x375842),this['listenTo'](_0x293f33,'execute',(_0x51f11c,_0x3ac740)=>{_0x1c7471['execute']('forward'===_0x3ac740?'showNextChange':'showPreviousChange');}),_0x293f33;}),_0x55c388['show'](),_0x375842['on']('change:isReady',(_0x1aaaa1,_0x3d37cf,_0x4ea0c6)=>{_0x4ea0c6?_0x55c388['hide']():_0x55c388['show']();});}}class at extends _0x2e3a33{['_resizeObserver']=null;constructor(_0x1e21a2,_0x2b2351){super(_0x1e21a2,_0x2b2351);const _0xc757b=this['bindTemplate'];this['set']({'label':m(_0x1e21a2,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x1e21a2,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xc757b['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 _0xda3ac0=this['fieldView']['element'];this['_tooltipString']=_0xda3ac0['scrollWidth']>_0xda3ac0['clientWidth']&&_0xda3ac0['value']||'';}}class hi extends ts{constructor(_0x1003c0,_0x34d331,_0x3020c2){super(_0x1003c0);const _0x3d4f1d=new _0x565a4d();_0x3d4f1d['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 _0x259e77=['ck','ck-revision-history-sidebar__revision-author'];_0x3020c2&&_0x259e77['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4d5878=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1003c0,_0x3020c2?'Revision\x20creator':'Revision\x20author')},'children':[_0x3d4f1d,_0x34d331['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x259e77},'children':_0x4d5878});}}function _i(_0x307cec,_0x36c85c){const _0xa1ab03=_0x307cec['bindTemplate'],_0x2b359f=_0x307cec['locale'],_0x18c779=_0x32c2dd(_0x2b359f);_0x18c779['panelPosition']='sw';const _0x6c7ab5=function(_0x4a34bd,_0x3e9a25){const _0x1b9f8e=function(_0x3f8b28,_0x4069ba){const _0x3981f4=_0x3f8b28['locale'],_0xb97c24={'Compare\x20against\x20selected':m(_0x3981f4,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x3981f4,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x3981f4,'Restore\x20this\x20revision')};return _0x4069ba['map'](_0x3a6612=>{const _0x4f90ca=_0xb97c24[_0x3a6612['name']];return _0x4f90ca&&_0x4f90ca!==_0x3a6612['name']&&(_0x3a6612['name']=_0x4f90ca),_0x3a6612;});}(_0x4a34bd,_0x3e9a25),_0x5983a3=new _0x72131();for(const _0x1608ce of _0x1b9f8e){const _0x2a9f05={'type':'button','model':new _0x3b2b3a({'label':_0x1608ce['name'],'class':_0x1608ce['class'],'withText':!0x0,'role':'menuitem','_action':_0x1608ce['action']})};_0x2a9f05['model']['bind']('isEnabled')['to'](_0x4a34bd,'isActionsDropdownOpen',_0xa16865=>'function'!=typeof _0x1608ce['isEnabled']||(!_0xa16865||_0x1608ce['isEnabled'](_0x4a34bd))),_0x5983a3['add'](_0x2a9f05);}return _0x5983a3;}(_0x307cec,_0x36c85c);return _0x307cec['bind']('isActionsDropdownOpen')['to'](_0x18c779,'isOpen'),_0x18c779['buttonView']['set']({'label':m(_0x2b359f,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3ccdb5['threeVerticalDots']}),_0x18c779['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xa1ab03['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xa1ab03['to'](_0x5d2089=>_0x5d2089['stopPropagation']())}}),_0x18c779['on']('execute',_0x5a34b0=>{_0x307cec['isReady']&&'function'==typeof _0x5a34b0['source']['_action']&&_0x5a34b0['source']['_action'](_0x307cec);}),to(_0x18c779,_0x6c7ab5,{'role':'menu'}),_0x18c779['listenTo'](_0x307cec,'change:isActionsDropdownOpen',(_0x33ac98,_0x16afa8,_0x29644a)=>{if(_0x29644a)for(const _0x30ee71 of _0x18c779['listView']['items']){const _0x4dc83f=_0x30ee71['children']['first'],_0x99c3aa=_0x36c85c['find'](_0x286b18=>_0x286b18['action']===_0x4dc83f['_action'])['isVisible'];_0x30ee71['isVisible']=void 0x0===_0x99c3aa||_0x99c3aa(_0x307cec);}}),_0x18c779;}class si extends/* #__PURE__ -- @preserve */
26
- _0x35e007(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2e5eff,_0x4bdd2b,_0x1244e2,_0x5ba6f6){super(_0x2e5eff);const _0x93e651=this['bindTemplate'],_0x3af471=function(_0x1f7de7,_0x28bcf4){const _0x366076=Array['from'](_0x28bcf4['authors'])['filter'](_0x4ce48d=>_0x4ce48d!=_0x28bcf4['creator']);return _0x28bcf4['creator']&&_0x366076['unshift'](_0x28bcf4['creator']),_0x366076['map'](_0x23b9cd=>new hi(_0x1f7de7,_0x23b9cd,_0x23b9cd==_0x28bcf4['creator']));}(_0x2e5eff,_0x4bdd2b);this['id']=_0x4bdd2b['id'],this['_revision']=_0x4bdd2b,this['_requireRevisionName']=_0x5ba6f6,this['bind']('name','createdAt')['to'](_0x4bdd2b),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2024a6=>{return _0x38e482=_0x2e5eff['uiLanguage'],(_0x68a842=_0x2024a6)['toLocaleDateString'](_0x38e482,{'month':'long','day':'numeric'})+',\x20'+_0x68a842['toLocaleTimeString'](_0x38e482,{'hour':'numeric','minute':'numeric'});var _0x38e482,_0x68a842;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x2e5eff,_0x77d7bb),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2263fc=>_0x2263fc||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2eec37,_0x3ae49f)=>_0x2eec37&&_0x3ae49f),this['revisionActionsView']=_0x1244e2&&_0x1244e2['length']?_i(this,_0x1244e2):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x93e651['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x93e651['if']('isEnabled','ck-disabled',_0x3c59f8=>!_0x3c59f8),_0x93e651['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x93e651['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x93e651['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':_0x93e651['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':_0x3af471}]},this['revisionActionsView']],'on':{'click':_0x93e651['to'](_0x26c04b=>{_0x26c04b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xde1c60=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xde1c60,'change',()=>{this['_requireRevisionName']&&!_0xde1c60['value']||this['fire']('setName',{'id':this['id'],'name':_0xde1c60['value']}),_0xde1c60['value']||(_0xde1c60['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x4c54d7,_0x94292c){const _0x36e0ed=_0x566712['fromJSDate'](_0x4c54d7)['setLocale'](_0x94292c),_0x4a7503=_0x566712['local'](),_0x3043c0=_0x4a7503['minus']({'days':0x1})['startOf']('day');let _0x5e6e33,_0x20930a;return _0x36e0ed['hasSame'](_0x4a7503,'day')?(_0x5e6e33=_0x36e0ed['startOf']('day')['toJSDate'](),_0x20930a=_0x36e0ed['toRelativeCalendar']()):_0x36e0ed['hasSame'](_0x3043c0,'day')?(_0x5e6e33=_0x3043c0['toJSDate'](),_0x20930a=_0x36e0ed['toRelativeCalendar']()):_0x36e0ed['hasSame'](_0x4a7503,'week')?(_0x5e6e33=_0x36e0ed['startOf']('week')['toJSDate'](),_0x20930a=_0x36e0ed['weekdayLong']||''):_0x36e0ed['hasSame'](_0x4a7503,'year')?(_0x5e6e33=_0x36e0ed['startOf']('month')['toJSDate'](),_0x20930a=_0x36e0ed['monthLong']||''):(_0x5e6e33=_0x36e0ed['startOf']('year')['toJSDate'](),_0x20930a=String(_0x36e0ed['year'])),{'startDate':_0x5e6e33,'localizedPeriodName':_0x20930a};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x226e42,_0x210f04,_0x32ace0,_0x4b10c8){super(_0x226e42);const _0x30f4b8=ti(_0x210f04,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x210f04,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x32ace0,this['_requireRevisionName']=_0x4b10c8,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':_0x30f4b8}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x12aee5){const _0x5e34a2=new si(this['locale'],_0x12aee5,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5e34a2);}['removeRevision'](_0x44c1f5){const _0x5bc8b1=this['revisionViews']['find'](_0x29da03=>_0x29da03['id']===_0x44c1f5['id']);this['revisionViews']['remove'](_0x5bc8b1);}}class cs extends ts{constructor(_0x3119cd){super(_0x3119cd);const _0x7c9880=new _0x565a4d();_0x7c9880['content']=_0x3ccdb5['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x7c9880,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x3119cd,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x9b5da6,_0x35c5b9,_0x22d22b,_0x894fee){super(_0x9b5da6);const _0x2c7eec=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x35c5b9,this['_revisionActions']=_0x22d22b,this['_requireRevisionName']=_0x894fee,this['on']('select',(_0xe07d2,_0xac1bec)=>{this['fire']('revisionSelected',_0xac1bec);}),this['on']('setName',(_0x5250ce,_0x1effa8)=>{this['fire']('revisionSetName',_0x1effa8);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x9b5da6),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2c7eec['if']('isEnabled','ck-disabled',_0x545c2e=>!_0x545c2e)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3c4d38 of this['_revisions'])this['_addRevision'](_0x3c4d38);this['_revisions']['on']('add',(_0x54f540,_0x4ca15c)=>{this['_addRevision'](_0x4ca15c);}),this['_revisions']['on']('remove',(_0x14aa6c,_0x487404)=>{this['_removeRevision'](_0x487404);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1fdb66=>_0x1fdb66['revisionViews']['map'](_0x76758a=>_0x76758a))['flat']();}['selectRevision'](_0x2fd4ba){for(const _0x28148c of this['revisionViews'])_0x2fd4ba&&_0x2fd4ba['id']===_0x28148c['id']?_0x28148c['select']():_0x28148c['deselect']();}['highlightRevisions'](_0x5e0c7a){for(const _0x5a30fe of this['revisionViews'])_0x5e0c7a['some'](({id:_0x411d30})=>_0x411d30===_0x5a30fe['id'])?_0x5a30fe['highlight']():_0x5a30fe['unhighlight']();}['_addRevision'](_0x10c48d){const _0x327d38=ti(_0x10c48d['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4d98f5=this['timePeriodViews']['get'](0x0);_0x4d98f5&&_0x4d98f5['startDate']['getTime']()===_0x327d38['getTime']()||(_0x4d98f5=new ei(this['locale'],_0x327d38,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4d98f5)),_0x4d98f5['addRevision'](_0x10c48d);}['_removeRevision'](_0x5a3a0b){const _0x17b7ac=ti(_0x5a3a0b['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x17b7ac)['removeRevision'](_0x5a3a0b);}['_getTimePeriodViewByStartDate'](_0x14af48){return this['timePeriodViews']['find'](_0x56cd8a=>_0x56cd8a['startDate']['getTime']()===_0x14af48['getTime']());}}class w extends _0x3a751c{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x18d1d6,uid as _0x44825c,Collection as _0x5238b7,logWarning as _0x1b29aa,FocusTracker as _0x23058c,KeystrokeHandler as _0x9d560c,scrollViewportToShowTarget as _0x503e76,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x461a1a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x30ebd2,set as _0x188a00,unset as _0x1e1d30,isEqual as _0x3f09a7}from'lodash-es';import{Plugin as _0x29e489,PendingActions as _0x26a976,icons as _0x4a7550,Command as _0x3ed6a1,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xf4fc7b,getMarkerDomElement as _0x59db08,ConfirmMixin as _0x324c5b,sanitizeEditorConfig as _0x5ef743}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1716b3,Element as ft,Range as vt,ViewUIElement as _0x49a806,ViewRawElement as _0x53e239,ViewEmptyElement as _0x1fd110,ViewAttributeElement as _0x1a7a3c,ViewContainerElement as _0x8712c5,Position as gt,ViewText as _0x528d27,ViewElement as _0x4f78dd,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0xb5bc71,injectCssTransitionDisabler as ts,submitHandler as _0xed7b1e,LabeledFieldView as nt,createLabeledInputText as _0x396089,createDropdown as _0x417cf8,ListView as te,ListItemView as _0x12a450,ButtonView as _0xe84945,MenuBarMenuView as _0x568570,MenuBarMenuListView as _0x2b2504,MenuBarMenuListItemView as _0x2a9944,MenuBarMenuListItemButtonView as _0x433f31,ContextualBalloon as _0xb9a914,ToolbarSeparatorView as _0xb4512e,IconView as _0x29d439,addListToDropdown as _0x1105a3,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 _0x5eecc5}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x18d1d6(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5e7646){super(),this['id']=_0x5e7646['id']||_0x44825c(),this['creator']=_0x5e7646['creator']||null,this['authors']=_0x5e7646['authors']||[],this['diffData']=_0x5e7646['diffData']||null,this['toVersion']=_0x5e7646['toVersion']||0x0,this['fromVersion']=_0x5e7646['fromVersion']||0x0,this['set']('name',_0x5e7646['name']||''),this['set']('createdAt',_0x5e7646['createdAt']||new Date()),this['set']('attributes',_0x5e7646['attributes']||{});}['setName'](_0x25f782){this['_update']({'name':_0x25f782});}['setAttribute'](_0xfe5880,_0x7d0b3a){const _0x185444=_0x30ebd2(this['attributes']);_0x188a00(_0x185444,_0xfe5880,_0x7d0b3a),this['_update']({'attributes':_0x185444});}['removeAttribute'](_0x49c13a){const _0x306326=_0x30ebd2(this['attributes']);_0x1e1d30(_0x306326,_0x49c13a),this['_update']({'attributes':_0x306326});}['_update'](_0x345173,_0x21c5b8=!0x1){let _0x39bd0a=!0x1;const _0x23dbf={'id':this['id']},_0x52fe47=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x36de96 of _0x52fe47){const _0x5b4005=_0x345173[_0x36de96];void 0x0!==_0x5b4005&&_0x5b4005!==this[_0x36de96]&&(this[_0x36de96]=_0x5b4005,_0x23dbf[_0x36de96]=_0x5b4005,_0x39bd0a=!0x0);}_0x39bd0a&&(_0x23dbf['authors']&&(_0x23dbf['authorsIds']=_0x23dbf['authors']['map'](_0x496173=>_0x496173['id']),delete _0x23dbf['authors']),this['fire']('_update',_0x23dbf,_0x21c5b8));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1efe53=>_0x1efe53['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x29e489{['_revisions'];static get['requires'](){return[_0xf4fc7b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x13bf81){super(_0x13bf81),this['_revisions']=new _0x5238b7();}['afterInit'](){!async function(_0xae8842){const _0x364623=_0x43bba4([0x30,0x76,0x56,0x38,0x32,0x47,0x46,0x63,0x4f,0x67,0x36,0x5a,0x66,0x44,0x62,0x73,0x51,0x42,0x43,0x4c,0x71,0x52,0x4d,0x41,0x6b,0x65,0x74,0x33,0x48,0x45,0x54,0x6c,0x4e,0x31,0x50,0x4a,0x37,0x35,0x6f,0x79,0x6d,0x6a,0x34,0x55,0x61,0x70,0x6e,0x59,0x77,0x7a,0x49,0x4b,0x57,0x72,0x69,0x53,0x75,0x68,0x78,0x64,0x39,0x58]),_0x1f6e65=0xeb829,_0x9c0b1b=0x58661761,_0x26ec76=0x586149b1^_0x9c0b1b,_0x14d19f=window[_0x43bba4([0x44,0x61,0x74,0x65])][_0x43bba4([0x6e,0x6f,0x77])](),_0x47b656=_0xae8842[_0x43bba4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x241d45=new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49156d=>{_0x47b656[_0x43bba4([0x6f,0x6e,0x63,0x65])](_0x43bba4([0x72,0x65,0x61,0x64,0x79]),_0x49156d);}),_0x4cd799={[_0x43bba4([0x6b,0x74,0x79])]:_0x43bba4([0x45,0x43]),[_0x43bba4([0x75,0x73,0x65])]:_0x43bba4([0x73,0x69,0x67]),[_0x43bba4([0x63,0x72,0x76])]:_0x43bba4([0x50,0x2d,0x32,0x35,0x36]),[_0x43bba4([0x78])]:_0x43bba4([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]),[_0x43bba4([0x79])]:_0x43bba4([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]),[_0x43bba4([0x61,0x6c,0x67])]:_0x43bba4([0x45,0x53,0x32,0x35,0x36])},_0x1c31ce=_0x47b656[_0x43bba4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x43bba4([0x67,0x65,0x74])](_0x43bba4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47fc7b(){let _0x15a298,_0x3198af=null,_0x3ef175=null;try{if(_0x1c31ce==_0x43bba4([0x47,0x50,0x4c]))return _0x43bba4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15a298=_0x15d51c(),!_0x15a298)return _0x43bba4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15a298[_0x43bba4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3ef175=_0x4584ab(_0x15a298[_0x43bba4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15a298[_0x43bba4([0x6a,0x74,0x69])])),await _0x370776()?_0xeb7b9f()?_0x462a27()?_0x43bba4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e92e0()?(_0x15a298[_0x43bba4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43bba4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3198af=_0x3b7c94(_0x43bba4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x15a298[_0x43bba4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43bba4([0x74,0x72,0x69,0x61,0x6c])&&(_0x3198af=_0x3b7c94(_0x43bba4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x10cc29()):_0x43bba4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x43bba4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x43bba4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x69aa60){return _0x43bba4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x462a27(){const _0x14a7ea=[_0x43bba4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x43bba4([0x74,0x72,0x69,0x61,0x6c])][_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15a298[_0x43bba4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14d19f/0x3e8:0xe10*_0x26ec76;return _0x15a298[_0x43bba4([0x65,0x78,0x70])]<_0x14a7ea;}function _0xeb7b9f(){const _0x3da541=_0x15a298[_0x43bba4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3da541)return!0x1;if(_0x3da541[_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43bba4([0x2a])))return!0x0;if(_0x3da541[_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43bba4([0x52,0x48])))return!0x0;if(_0x3da541[_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43bba4([0x52,0x52,0x48]))){if(_0x192a4e())return!0x0;if(_0xef2ba3()||_0x1d3d4c())return!0x0;}return!0x1;}function _0x3e92e0(){const _0x3683d9=_0x15a298[_0x43bba4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3683d9||0x0==_0x3683d9[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a6d28}=new URL(window[_0x43bba4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3683d9[_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a6d28))return!0x0;const _0x3bdede=_0x3a6d28[_0x43bba4([0x73,0x70,0x6c,0x69,0x74])](_0x43bba4([0x2e]));return _0x3683d9[_0x43bba4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x314a8c=>_0x314a8c[_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43bba4([0x2a])))[_0x43bba4([0x6d,0x61,0x70])](_0xdd344a=>_0xdd344a[_0x43bba4([0x73,0x70,0x6c,0x69,0x74])](_0x43bba4([0x2e])))[_0x43bba4([0x73,0x6f,0x6d,0x65])](_0x55431f=>_0x3bdede[_0x43bba4([0x65,0x76,0x65,0x72,0x79])]((_0x467afb,_0x4b82ee)=>_0x55431f[_0x4b82ee]===_0x467afb||_0x55431f[_0x4b82ee]===_0x43bba4([0x2a])));}function _0x10cc29(){return _0x3198af&&_0x3ef175?new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b9b31,_0x399494)=>{_0x3198af[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x5b9b31,_0x399494),_0x3ef175[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x440c0a=>{_0x440c0a!=_0x43bba4([0x56,0x61,0x6c,0x69,0x64])&&_0x5b9b31(_0x440c0a);},_0x399494);}):_0x3198af||_0x3ef175||_0x43bba4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4584ab(_0x2c5be2,_0x1915d7){return new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x213e7f=>{if(_0x44073e())return _0x213e7f(_0x43bba4([0x56,0x61,0x6c,0x69,0x64]));_0x3f19d2(),_0x47b656[_0x43bba4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x43bba4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f384c=!0x1;const _0x2b1487=_0x44825c();function _0x19158f(_0x15be9e){return!!_0x15be9e&&(typeof _0x15be9e===_0x43bba4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15be9e===_0x43bba4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15be9e[_0x43bba4([0x74,0x68,0x65,0x6e])]===_0x43bba4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15be9e[_0x43bba4([0x63,0x61,0x74,0x63,0x68])]===_0x43bba4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5da086(_0x1e0ea1){_0xf586ed(_0x1e0ea1)[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x196321=>{if(!_0x196321||_0x196321[_0x43bba4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x43bba4([0x6f,0x6b]))return _0x43bba4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x48d9e7(_0x5d1b7d(_0x2b1487+_0x1915d7))!=_0x196321[_0x43bba4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x43bba4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x43bba4([0x56,0x61,0x6c,0x69,0x64]);})[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x364cef=>(_0x255764(),_0x364cef),()=>{const _0x52e97b=_0x24229();return null==_0x52e97b?(_0x255764(),_0x43bba4([0x56,0x61,0x6c,0x69,0x64])):_0x43bba4(_0x14d19f-_0x52e97b>(0x7c6a9361^_0x9c0b1b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x213e7f)[_0x43bba4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x213e7f(_0x43bba4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e5933=0x5850f9e1^_0x9c0b1b;function _0x255764(){const _0x123e11=_0x43bba4([0x6c,0x6c,0x63,0x74,0x2d])+_0x48d9e7(_0x5d1b7d(_0x2c5be2)),_0x471675=_0x35a900(_0x48d9e7(window[_0x43bba4([0x4d,0x61,0x74,0x68])][_0x43bba4([0x63,0x65,0x69,0x6c])](_0x14d19f/_0x1e5933)));window[_0x43bba4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43bba4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x123e11,_0x471675);}function _0x24229(){const _0x3ac9a9=_0x43bba4([0x6c,0x6c,0x63,0x74,0x2d])+_0x48d9e7(_0x5d1b7d(_0x2c5be2)),_0x2b8b51=window[_0x43bba4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43bba4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ac9a9);return _0x2b8b51?window[_0x43bba4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35a900(_0x2b8b51),0x10)*_0x1e5933:null;}function _0xf586ed(_0x17e085){return new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3276fd,_0x5945ec)=>{_0x17e085[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x3276fd,_0x5945ec),window[_0x43bba4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5945ec,0x5867c3a1^_0x9c0b1b);});}}_0x47b656[_0x43bba4([0x6f,0x6e])](_0x43bba4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x401e94,_0xf2960)=>{if(_0xf2960[0x0]!=_0x2c5be2)return _0x213e7f(_0x43bba4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xf2960[0x1]={..._0xf2960[0x1],[_0x43bba4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b1487};},{[_0x43bba4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43bba4([0x68,0x69,0x67,0x68])}),_0x47b656[_0x43bba4([0x6f,0x6e])](_0x43bba4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2117e1=>{_0x19158f(_0x2117e1[_0x43bba4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f384c=!0x0,_0x5da086(_0x2117e1[_0x43bba4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x43bba4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43bba4([0x6c,0x6f,0x77])}),_0x241d45[_0x43bba4([0x74,0x68,0x65,0x6e])](()=>{_0x3f384c||_0x213e7f(_0x43bba4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44073e(){return _0x47b656[_0x43bba4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43bba4([0x76,0x69,0x65,0x77])][_0x43bba4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x43bba4([0x61,0x75,0x74,0x6f]);}function _0x3f19d2(){_0x47b656[_0x43bba4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43bba4([0x76,0x69,0x65,0x77])][_0x43bba4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43bba4([0x61,0x75,0x74,0x6f]);}}function _0x3b7c94(_0x3aac4a){const _0x27c67d=[new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x134429=>setTimeout(_0x134429,0x586f29ad^_0x9c0b1b)),_0x241d45[_0x43bba4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e7bf4=>{const _0x13db83=0x58661766^_0x9c0b1b,_0x1d8047=_0xae8842[_0x43bba4([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5d6279(){_0x1d8047[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x13db83&&_0x1e7bf4();}_0x5d6279(),_0x1d8047[_0x43bba4([0x6f,0x6e])](_0x43bba4([0x61,0x64,0x64]),_0x5d6279);})),new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38092b=>{function _0x498cfe(){for(const _0x3bceee in window)if(window[_0x43bba4([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x43bba4([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3bceee))&&window[_0x3bceee]==_0x1f6e65)return _0x38092b();_0x47b656[_0x43bba4([0x73,0x74,0x61,0x74,0x65])]!=_0x43bba4([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x43bba4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x498cfe,0x586604e9^_0x9c0b1b);}_0x27379a(_0x43bba4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x498cfe();})];return window[_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43bba4([0x72,0x61,0x63,0x65])](_0x27c67d)[_0x43bba4([0x74,0x68,0x65,0x6e])](()=>_0x3aac4a);}async function _0x2281a9(){if(await _0x241d45,_0x27379a(_0x43bba4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3aae00=_0xae8842[_0x43bba4([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x370e78=_0xae8842[_0x43bba4([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])](_0x3aae00[_0x43bba4([0x69,0x64])]),_0x2afcba=_0x1db485(_0x43bba4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2afcba[_0x43bba4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3aae00['id'],_0x370e78?_0x370e78['id']:null,!0x0),_0x2afcba[_0x43bba4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x43bba4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2afcba[_0x43bba4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2afcba[_0x43bba4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3feb2f,void(_0x2afcba[_0x43bba4([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3feb2f);}if(_0x27379a(_0x43bba4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5e1f85=_0x1db485(_0x43bba4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5e1f85[_0x43bba4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x43bba4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5e1f85[_0x43bba4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5e1f85[_0x43bba4([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3feb2f,_0x5e1f85[_0x43bba4([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3feb2f;}_0x47b656[_0x43bba4([0x6d,0x6f,0x64,0x65,0x6c])][_0x43bba4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3feb2f,_0x47b656[_0x43bba4([0x6d,0x6f,0x64,0x65,0x6c])][_0x43bba4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3feb2f,_0x47b656[_0x43bba4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x43bba4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x192a4e(){return _0x27379a(_0x43bba4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1db485(_0x43bba4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x43bba4([0x73,0x74,0x61,0x74,0x65])]==_0x43bba4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xef2ba3(){return _0x27379a(_0x43bba4([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 _0x1d3d4c(){return _0x27379a(_0x43bba4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5b4272(_0x5e83c5){const _0x5d5f67=_0x1b6fa8();_0x47b656[_0x5d5f67]=_0x43bba4([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])+_0x5e83c5,_0x5e83c5[_0x43bba4([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x43bba4([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1b6fa8()]=_0x1f6e65),_0x5e83c5!=_0x43bba4([0x56,0x61,0x6c,0x69,0x64])&&_0x2281a9();}function _0x1b6fa8(){const _0x237c02=window[_0x43bba4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x43bba4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x43bba4([0x6e,0x6f,0x77])]())[_0x43bba4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x43bba4([0x2e]),'');let _0x206a20=_0x43bba4([0x76]);for(let _0x1b499f=0x0;_0x1b499f<_0x237c02[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b499f+=0x2){let _0x421e63=window[_0x43bba4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x237c02[_0x43bba4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b499f,_0x1b499f+0x2));_0x421e63>=_0x364623[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x421e63-=_0x364623[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x206a20+=_0x364623[_0x421e63];}return _0x206a20;}function _0x15d51c(){const _0x2abdbd=_0x1c31ce[_0x43bba4([0x73,0x70,0x6c,0x69,0x74])](_0x43bba4([0x2e]));if(0x3!=_0x2abdbd[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4fb190(_0x2abdbd[0x1]);function _0x4fb190(_0x37d6bd){const _0x374e94=_0xe911a5(_0x37d6bd);return _0x374e94&&_0x245fb4()?_0x374e94:null;function _0x245fb4(){const _0x50f686=_0x374e94[_0x43bba4([0x6a,0x74,0x69])],_0x14ea02=window[_0x43bba4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50f686[_0x43bba4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50f686[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d8edd={..._0x374e94,[_0x43bba4([0x6a,0x74,0x69])]:_0x50f686[_0x43bba4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50f686[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d8edd[_0x43bba4([0x76,0x63])],_0x5d1b7d(_0x2d8edd)==_0x14ea02;}}}async function _0x370776(){let _0x175ec9=!0x0;try{const _0x1551ca=_0x1c31ce[_0x43bba4([0x73,0x70,0x6c,0x69,0x74])](_0x43bba4([0x2e])),[_0x19a121,_0x4dec62,_0x363a57]=_0x1551ca;return _0x63186c(_0x19a121),await _0x2459cc(_0x19a121,_0x4dec62,_0x363a57),_0x175ec9;}catch(_0x57af9a){return!0x1;}function _0x63186c(_0x24c14a){const _0x2dbc83=_0xe911a5(_0x24c14a);_0x2dbc83&&_0x2dbc83[_0x43bba4([0x61,0x6c,0x67])]==_0x43bba4([0x45,0x53,0x32,0x35,0x36])||(_0x175ec9=!0x1);}async function _0x2459cc(_0x231c98,_0x308294,_0x35f852){const _0x745be6=window[_0x43bba4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x43bba4([0x66,0x72,0x6f,0x6d])](_0xfebe14(_0x35f852),_0x2f6cfe=>_0x2f6cfe[_0x43bba4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe69a24=new window[(_0x43bba4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x43bba4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x231c98+_0x43bba4([0x2e])+_0x308294),_0x59be68=window[_0x43bba4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x43bba4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59be68)return;const _0x2bfab3=await _0x59be68[_0x43bba4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x43bba4([0x6a,0x77,0x6b]),_0x4cd799,{[_0x43bba4([0x6e,0x61,0x6d,0x65])]:_0x43bba4([0x45,0x43,0x44,0x53,0x41]),[_0x43bba4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x43bba4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x43bba4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59be68[_0x43bba4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x43bba4([0x6e,0x61,0x6d,0x65])]:_0x43bba4([0x45,0x43,0x44,0x53,0x41]),[_0x43bba4([0x68,0x61,0x73,0x68])]:{[_0x43bba4([0x6e,0x61,0x6d,0x65])]:_0x43bba4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2bfab3,_0x745be6,_0xe69a24)||(_0x175ec9=!0x1);}}function _0xe911a5(_0x3a6735){return _0x3a6735[_0x43bba4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x43bba4([0x65,0x79]))?JSON[_0x43bba4([0x70,0x61,0x72,0x73,0x65])](_0xfebe14(_0x3a6735)):null;}function _0xfebe14(_0x5374a9){return window[_0x43bba4([0x61,0x74,0x6f,0x62])](_0x5374a9[_0x43bba4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x43bba4([0x2b]))[_0x43bba4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x43bba4([0x2f])));}function _0x5d1b7d(_0x3c2c68){let _0x528a6c=0x1505;function _0x5e2156(_0x58ce86){for(let _0x4809f2=0x0;_0x4809f2<_0x58ce86[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4809f2++){const _0x1fb45b=_0x58ce86[_0x43bba4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4809f2);_0x528a6c=(_0x528a6c<<0x5)+_0x528a6c+_0x1fb45b,_0x528a6c&=_0x528a6c;}}function _0x5b2849(_0x5f4b6c){Array[_0x43bba4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5f4b6c)?_0x5f4b6c[_0x43bba4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b2849):_0x5f4b6c&&typeof _0x5f4b6c==_0x43bba4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x43bba4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5f4b6c)[_0x43bba4([0x73,0x6f,0x72,0x74])]()[_0x43bba4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55ad75,_0x1207a2])=>{_0x5e2156(_0x55ad75),_0x5b2849(_0x1207a2);}):_0x5e2156(window[_0x43bba4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5f4b6c));}return _0x5b2849(_0x3c2c68),_0x528a6c>>>0x0;}function _0x48d9e7(_0x3a35aa){return _0x3a35aa[_0x43bba4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x43bba4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x43bba4([0x30]));}function _0x35a900(_0x390bfe){return _0x390bfe[_0x43bba4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x43bba4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x43bba4([0x6a,0x6f,0x69,0x6e])]('');}function _0x27379a(_0x3f4278){return _0x47b656[_0x43bba4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x43bba4([0x68,0x61,0x73])](_0x3f4278);}function _0x1db485(_0x37a4e9){return _0x47b656[_0x43bba4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x43bba4([0x67,0x65,0x74])](_0x37a4e9);}function _0x3feb2f(){}function _0x43bba4(_0x349ff7){return _0x349ff7['map'](_0x5a53fd=>String['fromCharCode'](_0x5a53fd))['join']('');}_0x5b4272(await _0x47fc7b());}(this);}['createRevision'](_0x3a9c71){const _0x274023=this['editor']['plugins']['get']('Users');return new a({'id':_0x3a9c71['id'],'name':_0x3a9c71['name'],'creator':_0x3a9c71['creatorId']?_0x274023['getUser'](_0x3a9c71['creatorId']):null,'diffData':_0x3a9c71['diffData']||_0x3a9c71['data'],'authors':_0x3a9c71['authorsIds']['map'](_0x203091=>_0x274023['getUser'](_0x203091)),'createdAt':new Date(_0x3a9c71['createdAt']),'attributes':_0x3a9c71['attributes'],'fromVersion':_0x3a9c71['fromVersion'],'toVersion':_0x3a9c71['toVersion']});}['addRevision'](_0x50eca2,_0x4dc049=0x0){this['_revisions']['add'](_0x50eca2,_0x4dc049);}['getRevision'](_0x53bbcd){return this['_revisions']['get'](_0x53bbcd);}['getRevisions'](_0x535c0a={'toJSON':!0x1}){const _0x56b47a=Array['from'](this['_revisions']);return _0x56b47a['reverse'](),_0x535c0a['toJSON']?_0x56b47a['map'](_0x4e23a7=>_0x4e23a7['toJSON']()):_0x56b47a;}['getIndex'](_0x5885ed){return this['_revisions']['getIndex'](_0x5885ed);}['getEarlierVisibleRevision'](_0x4530e5){const [,_0xe5e168]=this['getRevisionsIterator'](_0x4530e5,{'direction':'earlier'});return _0xe5e168;}['getLaterVisibleRevision'](_0x19558b){const [,_0x38e615]=this['getRevisionsIterator'](_0x19558b,{'direction':'later'});return _0x38e615;}['getRevisionsInDiff'](_0x419d18){const _0x5b48a7=[];for(const _0x147ca5 of this['getRevisionsIterator'](_0x419d18['newRevisionId']))if(_0x5b48a7['push'](_0x147ca5),_0x147ca5['id']===_0x419d18['oldRevisionId'])break;return _0x5b48a7;}*['getRevisionsIterator'](_0xbe067c,{direction:_0x554828='earlier',filter:_0x4d0af2=()=>!0x0}={}){const _0x380e2a='earlier'===_0x554828?0x1:-0x1;let _0x328175=this['_revisions']['get'](_0xbe067c),_0x3aa058=this['getIndex'](_0x328175);for(yield _0x328175;_0x328175;){if(_0x3aa058+=_0x380e2a,_0x328175=this['getRevision'](_0x3aa058),!_0x328175)return;_0x4d0af2(_0x328175)&&(yield _0x328175);}}}function m(_0x5340cb,_0x19ed95,_0x253588){const t=_0x5340cb['t'];switch(_0x19ed95){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'},_0x253588);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x253588);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':_0x8712c5,'a':_0x1a7a3c,'e':_0x1fd110,'r':_0x53e239,'u':_0x49a806};class l extends _0x29e489{['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[_0xf4fc7b,j,_0x26a976];}constructor(_0x447868){super(_0x447868),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 _0x31a8f0=_0x44825c();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x31a8f0},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 _0xd86036=this['repository']['getRevision'](0x0),_0x207457=_0xd86036&&null===_0xd86036['creator']?_0xd86036:null;if(this['_continueCurrentRevision']=!!_0x207457&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x53b4e9=this['_source']['getCurrentRevisionId'](),_0x45b054=this['repository']['getRevision'](_0x53b4e9);if(_0x45b054)this['_startingVersion']=_0x45b054['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5bb69c=this['_source']['history']['_operations']['find'](_0x172ec0=>!_0x172ec0['_isInit']),_0x337ee9=_0x5bb69c?_0x5bb69c['baseVersion']:this['_source']['history']['version'];_0xd86036?(_0xd86036['toVersion']<_0x337ee9&&_0xd86036['_update']({'toVersion':_0x337ee9}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x207457['id'],this['_startingVersion']=_0x207457['fromVersion']):(this['_startingVersion']=_0xd86036['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x337ee9,this['_continueCurrentRevision']=!0x1);}}else _0x207457&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x207457['toVersion'],this['editor']['model']['document']['history']['version']),_0x207457['fromVersion']===_0x207457['toVersion']?(0x0!==_0x207457['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x207457['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x207457['id'],this['_startingVersion']=_0x207457['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',_0x207e8e=>!_0x207e8e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x515cec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3ad71f;for(const _0x22308d in _0x515cec){const _0x44c6c2=_0x22308d,_0x490b28=_0x515cec[_0x44c6c2];if('revisionHistoryLicenseKeyValid'==_0x490b28||'revisionHistoryLicenseKeyInvalid'==_0x490b28||'revisionHistoryLicenseKeyExpired'==_0x490b28||'revisionHistoryLicenseKeyDomainLimit'==_0x490b28||'revisionHistoryLicenseKeyNotAllowed'==_0x490b28||'revisionHistoryLicenseKeyEvaluationLimit'==_0x490b28||'revisionHistoryLicenseKeyTrialLimit'==_0x490b28||'revisionHistoryLicenseKeyUsageLimit'==_0x490b28){delete _0x515cec[_0x44c6c2],_0x3ad71f=_0x490b28,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3ad71f&&_0x515cec['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3ad71f&&_0x515cec['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3ad71f&&_0x515cec['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3ad71f&&_0x515cec['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3ad71f&&_0x515cec['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3ad71f&&_0x515cec['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3ad71f&&_0x515cec['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x207dfd=this['repository']['getRevision'](0x0),_0x400abd=await this['getRevisionDocumentData'](_0x207dfd),_0x231cc9=await this['getRevisionRootsAttributes'](_0x207dfd);this['_replaceEditorDataWithRevisionData'](_0x400abd,_0x231cc9);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5f09cf){this['_source']=_0x5f09cf;}async['update'](){const _0x41adc3=await this['_source']['getLatestVersion']();if(_0x41adc3>this['currentRevision']['toVersion']){await this['_loadState']();const _0x20d2de=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x41adc3});_0x20d2de['authors']=_0x20d2de['authorsIds']['map'](_0x33a4b2=>this['editor']['plugins']['get']('Users')['getUser'](_0x33a4b2)),this['currentRevision']['_update'](_0x20d2de);}}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'](_0xa51658={},_0x11e3c5=null){const _0x4bd0e0=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x11e3c5>this['currentRevision']['toVersion']&&(_0x11e3c5=null),null===_0x11e3c5&&(_0x11e3c5=await this['_source']['getLatestVersion']());const _0x1c22d9=this['_getFromVersion'](_0x11e3c5),_0x536c1a=this['buildRevisionData']({'from':_0x1c22d9,'to':_0x11e3c5});if(this['currentRevision']['toVersion']<_0x11e3c5){const _0x40220f=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x11e3c5,'to':_0x11e3c5});_0x40220f['authors']=[],_0x40220f['authorsIds']=[],_0x40220f['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x40220f,!0x0),delete _0x40220f['authors'],_0x4bd0e0['push'](_0x40220f);}_0xa51658['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xa51658['name']=_0xa51658['name']||null,_0xa51658['id']=_0xa51658['id']||_0x44825c(),_0xa51658={..._0xa51658,..._0x536c1a};const _0x43634f=this['addRevisionData'](_0xa51658);_0x4bd0e0['push'](_0xa51658);const _0x1ef769=this['repository']['getIndex'](_0x43634f);if(0x0!==_0x1ef769){const _0x1098fd=this['repository']['getRevision'](_0x1ef769-0x1);if(_0x1098fd['fromVersion']!==_0x11e3c5){const _0x3cb4cc=this['_revisionDataBuilder']['getData'](_0x11e3c5,_0x1098fd['toVersion']),_0x57e87d={'id':_0x1098fd['id'],'diffData':_0x3cb4cc['diffData'],'authorsIds':_0x3cb4cc['authorsIds'],'authors':_0x3cb4cc['authorsIds']['map'](_0x5e0d47=>this['editor']['plugins']['get']('Users')['getUser'](_0x5e0d47)),'fromVersion':_0x11e3c5};_0x1098fd===this['currentRevision']&&(_0x57e87d['createdAt']=new Date(_0xa51658['createdAt']['getTime']()+0xa)),_0x1098fd['_update'](_0x57e87d,!0x0),delete _0x57e87d['authors'],_0x4bd0e0['push'](_0x57e87d);}}if(this['adapter']){for(const _0x1135ce of _0x4bd0e0)this['_bufferUpdate'](_0x1135ce['id'],_0x1135ce,!0x0);this['sendBufferedUpdates']();}return _0x43634f;}['addRevisionData'](_0x4aa765){const _0x270d23=this['repository']['createRevision'](_0x4aa765);return this['adapter']&&_0x270d23['on']('_update',(_0x5d933a,_0x1a2e78,_0x16607c)=>{_0x16607c||(this['_bufferUpdate'](_0x1a2e78['id'],_0x1a2e78,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x270d23,this['_findInsertionIndex'](_0x270d23)),_0x270d23;}async['getRevisionDocumentData'](_0x54f3d7){await this['_loadRevisionData'](_0x54f3d7);const _0x3932b6={};for(const _0x3bd651 in _0x54f3d7['diffData']){if(_0x54f3d7['diffData'][_0x3bd651]['attachChange']&&!_0x54f3d7['diffData'][_0x3bd651]['attachChange']['isAttached'])continue;const _0x59bc38=this['_removeRevisionMarkers'](JSON['parse'](_0x54f3d7['diffData'][_0x3bd651]['insertions'])),_0x5caf1d=this['editor']['editing']['view']['document'],_0x5c63a2=new _0x1716b3(_0x5caf1d,_0x59bc38['map'](_0x248e3c=>C(_0x248e3c,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3932b6[_0x3bd651]=this['editor']['data']['processor']['toData'](_0x5c63a2),this['editor']['data']['processor']['useFillerType']('default');}return _0x3932b6;}async['getRevisionRootsAttributes'](_0x178eda){await this['_loadRevisionData'](_0x178eda);const _0x17fc6e={};for(const _0x37fcf3 in _0x178eda['diffData'])_0x178eda['diffData'][_0x37fcf3]['attachChange']&&!_0x178eda['diffData'][_0x37fcf3]['attachChange']['isAttached']||(_0x17fc6e[_0x37fcf3]=_0x178eda['diffData'][_0x37fcf3]['attributesAfter']||{});return _0x17fc6e;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x131e22=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x17f79b=0x0;_0x17f79b<_0x131e22['length'];_0x17f79b++){const _0x485c6e=_0x131e22[_0x17f79b];let _0x16bd27=!0x1;for(const _0x4ce64e of Object['keys'](_0x485c6e))void 0x0===_0x485c6e[_0x4ce64e]?delete _0x485c6e[_0x4ce64e]:'id'!==_0x4ce64e&&(_0x16bd27=!0x0);_0x16bd27||(_0x131e22[_0x17f79b]=null);}if(_0x131e22=_0x131e22['filter'](_0x555ed8=>null!==_0x555ed8),!_0x131e22['length'])return;for(let _0x5dde8e=0x0;_0x5dde8e<_0x131e22['length'];_0x5dde8e++){const _0x29dec7=_0x131e22[_0x5dde8e];void 0x0!==_0x29dec7['fromVersion']&&void 0x0===_0x29dec7['toVersion']&&(_0x29dec7['toVersion']=this['repository']['getRevision'](_0x29dec7['id'])['toVersion']),void 0x0!==_0x29dec7['toVersion']&&void 0x0===_0x29dec7['fromVersion']&&(_0x29dec7['fromVersion']=this['repository']['getRevision'](_0x29dec7['id'])['fromVersion']);}const _0x4380c2=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x131e22,_0x4380c2)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x163373=>{if(_0x163373){for(const _0x2ab991 of _0x163373)this['setRevisionData']({'id':_0x2ab991['id'],'createdAt':_0x2ab991['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x375336,_0x102257){let _0x32e796=this['editor']['config']['get']('initialData'),_0x330e60=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x32e796){_0x32e796={};for(const _0x5ae272 of this['editor']['model']['document']['getRootNames']())_0x32e796[_0x5ae272]='';}if('string'==typeof _0x32e796&&(_0x32e796={'main':_0x32e796}),void 0x0===_0x330e60){_0x330e60={};for(const _0x324732 of this['editor']['model']['document']['getRootNames']())_0x330e60[_0x324732]={};}let _0x19ad28=!0x1;const _0x2bde09=Object['keys'](_0x32e796),_0x1ace16=Object['keys'](_0x375336);for(const _0x5bb8b5 of _0x2bde09){if(_0x32e796[_0x5bb8b5]!==_0x375336[_0x5bb8b5]&&''!==_0x32e796[_0x5bb8b5]['trim']()){_0x19ad28=!0x0;break;}if(!_0x3f09a7(_0x330e60[_0x5bb8b5],_0x102257[_0x5bb8b5])&&Object['keys'](_0x330e60[_0x5bb8b5])['length']>0x0){_0x19ad28=!0x0;break;}}_0x19ad28||(_0x19ad28=_0x1ace16['some'](_0x424ba7=>!this['editor']['model']['document']['getRoot'](_0x424ba7))),_0x19ad28&&_0x1b29aa('editor-initial-data-replaced-with-revision-data',{'editorData':_0x32e796,'editorRootsAttributes':_0x330e60,'revisionData':_0x375336,'revisionRootsAttributes':_0x102257}),this['editor']['config']['set']('initialData',_0x375336),this['editor']['config']['set']('rootsAttributes',_0x102257);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x61889b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x61889b['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x611e2f){const _0x373a03=this['repository']['getRevisions']();_0x373a03['reverse']();let _0x2106c9=0x0;for(;_0x2106c9<_0x373a03['length'];){const _0x527aef=_0x373a03[_0x2106c9];if(_0x527aef===this['currentRevision']){_0x2106c9++;continue;}if(_0x527aef['id']===this['_initialRevisionId'])break;const _0x5a72db=_0x611e2f['toVersion']-_0x527aef['toVersion']||_0x611e2f['fromVersion']-_0x527aef['fromVersion'];if(_0x5a72db>0x0)break;if(_0x5a72db<0x0)_0x2106c9++;else{if(!_0x611e2f['creator']&&_0x527aef['creator'])break;if(_0x527aef['creator']||!_0x611e2f['creator']){if(_0x611e2f['createdAt']>_0x527aef['createdAt'])break;_0x2106c9++;}else _0x2106c9++;}}return _0x2106c9;}['setRevisionData'](_0x18602f){const _0x1e577b=this['repository']['getRevision'](_0x18602f['id']);if(_0x18602f['createdAt']&&(_0x18602f['createdAt']=new Date(_0x18602f['createdAt'])),_0x18602f['authorsIds']){const _0x25a407=this['editor']['plugins']['get']('Users');_0x18602f['authors']=_0x18602f['authorsIds']['map'](_0x5d65c6=>_0x25a407['getUser'](_0x5d65c6));}_0x1e577b['_update'](_0x18602f,!0x0);}['buildRevisionData']({revision:_0x4d15b9=null,from:_0x3d9047=null,to:_0x190a26=null}){_0x3d9047=null!==_0x3d9047?_0x3d9047:_0x4d15b9['fromVersion'],_0x190a26=null!==_0x190a26?_0x190a26:_0x4d15b9['toVersion'];const _0x2d8e03=this['_revisionDataBuilder']['getData'](_0x3d9047,_0x190a26),_0x4a3c31={'diffData':_0x2d8e03['diffData'],'authorsIds':_0x2d8e03['authorsIds'],'fromVersion':_0x3d9047,'toVersion':_0x190a26};if(!_0x4d15b9||_0x190a26!==_0x4d15b9['toVersion']){const _0x2ea98e=_0x190a26-0x1,_0x3d9016=this['_source']['history']['getOperation'](_0x2ea98e);_0x4a3c31['createdAt']=_0x3d9016&&_0x3d9016['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3d9047===this['_loadedStateData']['fromVersion']){for(const _0x3b544e of this['_loadedStateData']['authors'])_0x4a3c31['authorsIds']['includes'](_0x3b544e['id'])||_0x4a3c31['authorsIds']['push'](_0x3b544e['id']);}return _0x4a3c31;}['_loadRevisionData'](_0x3e392a){if(!_0x3e392a||_0x3e392a['diffData'])return Promise['resolve']();{const _0x18efb6=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x18efb6,'revisionId':_0x3e392a['id']})['then'](_0x37293d=>{_0x3e392a['diffData']=_0x37293d['diffData'];});}}['_bufferUpdate'](_0x31c500,_0x3c8130,_0x3c5f86){if(this['_bufferedUpdates']['has'](_0x31c500)){const _0x519858=this['_bufferedUpdates']['get'](_0x31c500);_0x3c8130=_0x3c5f86?{..._0x519858,..._0x3c8130}:{..._0x3c8130,..._0x519858};}this['_bufferedUpdates']['set'](_0x31c500,_0x3c8130);}['_getFromVersion'](_0x1913c6){const _0x382012=this['repository']['getRevisions']();_0x382012['reverse'](),_0x382012['shift']();const _0xdc5bd8=_0x382012['find'](_0x5a2d24=>_0x5a2d24['toVersion']<=_0x1913c6)['toVersion'];return _0xdc5bd8<this['_startingVersion']?this['_startingVersion']:_0xdc5bd8;}['_createInitialRevision'](_0x4c8ab4){const _0x22544a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x22544a)this['_initialRevisionId']=_0x22544a['id'];else{const _0x547437=!this['editor']['model']['document']['roots']['find'](_0x12ec1f=>this['editor']['model']['hasContent'](_0x12ec1f)),_0x179afb=this['editor']['plugins']['get']('Users')['me']['id'],_0xc434c3=m(this['editor']['locale'],_0x547437?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4c8ab4,'to':_0x4c8ab4,'id':this['_initialRevisionId'],'name':_0xc434c3,'creatorId':_0x179afb});}}['_createCurrentRevision'](_0x47244e){const _0x5527d0=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5527d0),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x47244e,'to':_0x47244e,'id':_0x5527d0,'name':'','creatorId':null}));}['_makeRevision']({name:_0x6262c5,from:_0x2075be,to:_0x17eb5f,creatorId:_0x552524,id:_0x1dd9bf}){const _0x520072=this['buildRevisionData']({'from':_0x2075be,'to':_0x17eb5f});_0x520072['name']=_0x6262c5,_0x520072['creatorId']=_0x552524,_0x520072['id']=_0x1dd9bf;const _0x1e72e7=this['addRevisionData'](_0x520072);return this['adapter']&&this['_bufferUpdate'](_0x520072['id'],_0x520072,!0x0),_0x1e72e7;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4a0408){return(_0x4a0408=_0x4a0408['filter'](_0x37475d=>!_0x37475d['name']||'revision-start'!==_0x37475d['name']&&'revision-end'!==_0x37475d['name']))['forEach'](_0x4596f9=>{'string'!=typeof _0x4596f9&&(_0x4596f9['children']=this['_removeRevisionMarkers'](_0x4596f9['children']),_0x4596f9['attributes']=_0x4596f9['attributes']['filter'](_0x5eb05c=>!_0x5eb05c[0x0]['startsWith']('data-revision-')));}),_0x4a0408;}}function C(_0x2decf4,_0x5a3995){const _0x1e4ee5=_0x5a3995['editing']['view']['document'];if('string'==typeof _0x2decf4)return new _0x528d27(_0x1e4ee5,_0x2decf4);{const _0x20efaa=_0x2decf4['children']['map'](_0x3c1eb9=>C(_0x3c1eb9,_0x5a3995));return new(P[_0x2decf4['type']]||_0x4f78dd)(_0x1e4ee5,_0x2decf4['name'],_0x2decf4['attributes'],_0x20efaa);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5a4e2d){this['editor']=_0x5a4e2d,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'](_0xf5c972){this['source']=_0xf5c972;const _0x2bf7b0=new Map(),_0x594b8c=new Map(),_0x478000=this['editor']['model']['document']['roots']['map'](_0x42a919=>_0x42a919['rootName']);for(const _0x268354 of _0x478000){const _0x3b5db8=this['editor']['model']['document']['getRoot'](_0x268354),_0x349648=T(_0x3b5db8);_0x2bf7b0['set'](_0x268354,_0x349648),_0x594b8c['set'](_0x268354,Object['fromEntries'](_0x3b5db8['getAttributes']()));}const _0x4deeb5=Array['from'](this['editor']['model']['markers'])['map'](_0xe800ea=>[_0xe800ea['name'],_0xe800ea['getRange']()]),_0x25d7e8=this['source']['version'];this['_saveMetaData'](_0x25d7e8,_0x2bf7b0,_0x4deeb5,_0x594b8c),this['_startingRevisionId']=this['_revisionId'];const _0x35c960=new Map(),_0x279bf8=new Map();for(const _0x4c877f of _0x478000){const _0x46ece7=F(_0x4c877f);_0x35c960['set'](_0x4c877f,_0x46ece7),_0x279bf8['set'](_0x4c877f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x35c960,[],_0x279bf8);}['getData'](_0x2e9997,_0x4601ed){if(this['_lastFrom']===_0x2e9997&&this['_lastTo']<=_0x4601ed)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4601ed,!0x0);else{if(!this['_savedMetaData']['has'](_0x2e9997)){const _0x38060c=this['_getPreviousFrom'](_0x2e9997);this['_calculateMetaData'](_0x38060c,_0x2e9997,!0x1);}this['_calculateMetaData'](_0x2e9997,_0x4601ed,!0x0);}return this['_lastFrom']=_0x2e9997,this['_lastTo']=_0x4601ed,this['_getState']();}['loadState'](_0x26a5aa){this['_reset'](),this['_lastFrom']=_0x26a5aa['fromVersion'],this['_lastTo']=_0x26a5aa['toVersion'];for(const _0x4ff8e3 in _0x26a5aa['diffData']){const _0x5c932a=_0x26a5aa['diffData'][_0x4ff8e3]['attachChange'],_0x35cd8b=_0x30ebd2(_0x26a5aa['diffData'][_0x4ff8e3]['attributesBefore'])||{},_0x5b7183=this['_makeModelFromViewString'](_0x26a5aa['diffData'][_0x4ff8e3]['deletions']);_0x5b7183['rootName']=_0x4ff8e3,_0x5b7183['_isAttached']=!_0x5c932a||!_0x5c932a['isAttached'],_0x5b7183['isAttached']=()=>_0x5b7183['_isAttached'],this['_baseRoots']['set'](_0x4ff8e3,_0x5b7183),this['_baseRootsAttributes']['set'](_0x4ff8e3,_0x35cd8b),_0x5c932a&&this['_touchedRoots']['set'](_0x4ff8e3,_0x5c932a);const _0x266865=this['_makeIdsRoot'](_0x5b7183);this['_baseIdsRoots']['set'](_0x4ff8e3,_0x266865);for(const [_0x1d94a1,_0x15b3d7]of _0x5b7183['markers']){if(!_0x1d94a1['startsWith']('revision:'))continue;const _0x31813d=_0x1d94a1['split'](':')[0x2];for(const _0x328c48 of _0x15b3d7['getWalker']({'singleCharacters':!0x0})){const _0x397ccf=this['_getVidAttributeName'](_0x328c48),_0x17a773='elementEnd'==_0x328c48['type']?_0x328c48['previousPosition']['path']['slice'](0x0,-0x1):_0x328c48['previousPosition']['path'],_0x1e948f=_0x266865['getNodeByPath'](_0x17a773)['getAttribute'](_0x397ccf);this['_touched']['set'](_0x1e948f,{'userId':_0x31813d});}}}this['_startingRevisionId']=this['_revisionId'];const _0x418103=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x44b2aa=>!this['_touched']['has'](_0x44b2aa));let _0x21dc5c=0x0;const _0x5b69aa=new Map();for(const _0x16e898 in _0x26a5aa['diffData']){const _0x554787=_0x26a5aa['diffData'][_0x16e898]['attachChange'],_0x6f19ca=_0x30ebd2(_0x26a5aa['diffData'][_0x16e898]['attributesAfter'])||{},_0x2728f8=this['_makeModelFromViewString'](_0x26a5aa['diffData'][_0x16e898]['insertions']);_0x2728f8['rootName']=_0x16e898,_0x2728f8['_isAttached']=!_0x554787||_0x554787['isAttached'],_0x2728f8['isAttached']=()=>_0x2728f8['_isAttached'],this['_diffRoots']['set'](_0x16e898,_0x2728f8),this['_diffRootsAttributes']['set'](_0x16e898,_0x6f19ca);const _0x32c684=this['_makeIdsRoot'](_0x2728f8,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x16e898,_0x32c684),_0x5b69aa['set'](_0x16e898,_0x2728f8['isAttached']()?_0x6f19ca:{});for(const [_0x162da8,_0x319d06]of _0x2728f8['markers']){if(!_0x162da8['startsWith']('revision:'))continue;const _0x288db0=_0x162da8['split'](':')[0x2];for(const _0x244e96 of _0x319d06['getWalker']({'singleCharacters':!0x0})){const _0x4d134d=this['_getVidAttributeName'](_0x244e96),_0x2f15a7=this['_revisionId']++,_0x352a37='elementEnd'==_0x244e96['type']?_0x244e96['previousPosition']['path']['slice'](0x0,-0x1):_0x244e96['previousPosition']['path'];_0x32c684['getNodeByPath'](_0x352a37)['_setAttribute'](_0x4d134d,_0x2f15a7),this['_touched']['set'](_0x2f15a7,{'userId':_0x288db0});}}for(const _0x7339ed of this['editor']['model']['createRangeIn'](_0x2728f8)['getWalker']({'singleCharacters':!0x0})){const _0x4cdf66=this['_getVidAttributeName'](_0x7339ed),_0x4a72a8='elementEnd'==_0x7339ed['type']?_0x7339ed['previousPosition']['path']['slice'](0x0,-0x1):_0x7339ed['previousPosition']['path'],_0x33485f=_0x32c684['getNodeByPath'](_0x4a72a8);_0x33485f['getAttribute'](_0x4cdf66)>0x0||_0x33485f['_setAttribute'](_0x4cdf66,_0x418103[_0x21dc5c++]);}for(const [_0x5b7f32,_0xe2761]of _0x2728f8['markers'])_0x5b7f32['startsWith']('revision:')||this['_markers']['set'](_0x5b7f32,_0xe2761);}const _0x2a5f0c=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2a5f0c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2a5f0c,0x1));const _0x141491=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x141491),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x141491,0x1));const _0x141feb=Array['from'](this['_diffRoots'])['map'](([_0x39d369,_0x5b7e63])=>[_0x39d369,T(_0x5b7e63)]);this['_saveMetaData'](this['_lastTo'],_0x141feb,this['_markers'],_0x5b69aa);}['_makeModelFromViewString'](_0x4d9553){const _0x39b953=JSON['parse'](_0x4d9553),_0x239980=this['editor']['editing']['view']['document'],_0x3dd5c1=new _0x1716b3(_0x239980,_0x39b953['map'](_0x233431=>C(_0x233431,this['editor'])));return this['editor']['data']['toModel'](_0x3dd5c1);}['_saveMetaData'](_0x58210c,_0x236758,_0x470791,_0xebd08e){const _0x9cb2bf=new Map(_0x236758),_0x25d52b=new Map(_0x30ebd2(_0xebd08e)),_0x11721f=new Map();for(const [_0x4ed044,_0x5328cc]of _0x470791)_0x11721f['set'](_0x4ed044,{'start':_0x5328cc['start']['clone'](),'end':_0x5328cc['end']['clone'](),'rootName':_0x5328cc['root']['rootName']});this['_savedMetaData']['set'](_0x58210c,{'roots':_0x9cb2bf,'markers':_0x11721f,'rootsAttributes':_0x25d52b});}['_removeMetaData'](_0x10a6f0){this['_savedMetaData']['delete'](_0x10a6f0);}['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'](_0x1ecc13,_0x1ffdab=null){let _0xebf0f4=null;_0x1ecc13['is']('documentFragment')||(_0xebf0f4=new ft(_0x1ecc13['name'],{'vid_start':null===_0x1ffdab?this['_revisionId']++:_0x1ffdab++}));const _0x2e5abe=[];for(const _0x4a3b1c of _0x1ecc13['getChildren']())if(_0x4a3b1c['is']('element')){_0x2e5abe['push'](this['_makeIdsRoot'](_0x4a3b1c,_0x1ffdab));const _0x11ed1a=_0x2e5abe[_0x2e5abe['length']-0x1];null!==_0x1ffdab&&(_0x1ffdab=_0x11ed1a['is']('element','$text')?_0x11ed1a['getAttribute']('vid')+0x1:_0x11ed1a['getAttribute']('vid_end')+0x1);}else{for(let _0x214d16=0x0;_0x214d16<_0x4a3b1c['offsetSize'];_0x214d16++)_0x2e5abe['push'](new ft('$text',{'vid':null===_0x1ffdab?this['_revisionId']++:_0x1ffdab++}));}if(_0x1ecc13['is']('documentFragment')){const _0x5b12c9=F(_0x1ecc13['rootName']);return _0x5b12c9['_insertChild'](0x0,_0x2e5abe),_0x5b12c9;}return _0xebf0f4['_setAttribute']('vid_end',null===_0x1ffdab?this['_revisionId']++:_0x1ffdab++),_0xebf0f4['_insertChild'](0x0,_0x2e5abe),_0xebf0f4;}['_calculateMetaData'](_0x480cae,_0x4e074f,_0xdf52b5){this['_reset']();const {roots:_0x11071b,markers:_0x222f0f,rootsAttributes:_0x4c7a28}=this['_savedMetaData']['get'](_0x480cae);this['_baseRoots']=new Map(_0x11071b),this['_baseRootsAttributes']=new Map(_0x30ebd2(_0x4c7a28));for(const [_0x39f183,_0x56cc22]of this['_baseRoots'])if('$graveyard'!==_0x39f183&&(this['_diffRoots']['set'](_0x39f183,T(_0x56cc22)),this['_diffRootsAttributes']=new Map(_0x30ebd2(_0x4c7a28)),_0xdf52b5)){const _0x1b8394=this['_revisionId'];this['_idsRoots']['set'](_0x39f183,this['_makeIdsRoot'](_0x56cc22)),this['_baseIdsRoots']['set'](_0x39f183,this['_makeIdsRoot'](_0x56cc22,_0x1b8394));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0xdf52b5&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x20d8db,_0x53a025]of _0x222f0f){const _0x3cf4a7=this['_baseRoots']['get'](_0x53a025['rootName']),_0x2a53e9=this['_diffRoots']['get'](_0x53a025['rootName']),_0x299739=new vt(this['_fixPosition'](_0x53a025['start'],_0x3cf4a7),this['_fixPosition'](_0x53a025['end'],_0x3cf4a7)),_0x302de0=this['_fixRange'](_0x299739,_0x2a53e9);_0x3cf4a7['markers']['set'](_0x20d8db,_0x299739),this['_markers']['set'](_0x20d8db,_0x302de0);}this['_applyOperations'](_0x480cae,_0x4e074f,_0xdf52b5);}['_applyOperations'](_0x5c99da,_0x38edbf,_0x3b9ea2){for(const _0x11def4 of this['source']['getOperations'](_0x5c99da,_0x38edbf))this['_handleOperation'](_0x11def4,_0x3b9ea2);for(const _0x3337f9 of this['_diffRoots']['values']())_0x3337f9['markers']['clear']();for(const [_0x7dda08,_0x923fe8]of this['_markers']){this['_diffRoots']['get'](_0x923fe8['root']['rootName'])['markers']['set'](_0x7dda08,_0x923fe8['clone']());}const _0x6dd741=new Map(),_0xbb4b57=new Map();for(const [_0x59e703,_0x193849]of this['_diffRoots'])_0x6dd741['set'](_0x59e703,T(_0x193849)),_0xbb4b57['set'](_0x59e703,this['_diffRootsAttributes']['get'](_0x59e703));this['_saveMetaData'](_0x38edbf,_0x6dd741,this['_markers'],_0xbb4b57);}['_getPreviousFrom'](_0x5dec5c){const _0x367c05=Array['from'](this['_savedMetaData']['keys']());_0x367c05['sort']((_0x285bcc,_0x33434c)=>_0x285bcc-_0x33434c),_0x367c05['reverse']();for(const _0x2ce0b4 of _0x367c05)if(_0x2ce0b4<_0x5dec5c)return _0x2ce0b4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2f3bb9,_0x2fa48b){const _0x48566c=Array['from'](_0x2fa48b['markers'])['map'](([_0x23c2e2,_0x16ee4e])=>[_0x23c2e2,this['_fixRange'](_0x16ee4e,_0x2f3bb9)]);_0x2f3bb9['markers']=new Map(_0x48566c);}['_transformMarkers'](_0xf7cf45){for(const _0x333593 of this['_markers']['values']()){const _0x473dbf=_0x333593['getTransformedByOperation'](_0xf7cf45),_0x2270d7=vt['_createFromRanges'](_0x473dbf);_0x333593['start']=_0x2270d7['start'],_0x333593['end']=_0x2270d7['end'];}}['_handleOperation'](_0x33d29d,_0x24d286){if('addRoot'!=_0x33d29d['type']&&'detachRoot'!=_0x33d29d['type']){if('insert'==_0x33d29d['type']){const _0x35b648=_0x33d29d['position']['root']['rootName'];this['_diffRoots']['has'](_0x35b648)||(this['_diffRoots']['set'](_0x35b648,F(_0x35b648,!0x0)),this['_diffRootsAttributes']['set'](_0x35b648,{}),_0x24d286&&this['_idsRoots']['set'](_0x35b648,F(_0x35b648,!0x0)));}else{if('addRootAttribute'==_0x33d29d['type']||'removeRootAttribute'==_0x33d29d['type']||'changeRootAttribute'==_0x33d29d['type'])return void this['_handleRootAttributeOperation'](_0x33d29d);'marker'==_0x33d29d['type']&&this['_handleMarkerOperation'](_0x33d29d);}if('marker'!==_0x33d29d['type']){const _0x2dae20=this['_cloneOperation'](_0x33d29d,this['_diffRoots']);_0x2dae20['_execute'](),this['_transformMarkers'](_0x2dae20);}if(_0x24d286)switch(_0x33d29d['type']){case'insert':this['_handleInsertOperation'](_0x33d29d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x33d29d);break;case'merge':this['_handleMergeOperation'](_0x33d29d);break;case'split':this['_handleSplitOperation'](_0x33d29d);}}else this['_handleRootOperation'](_0x33d29d,_0x24d286);}['_cloneOperation'](_0x3f1913,_0xea1d3c){const _0x4a27f0=_0x3f1913['clone']();return _0x4a27f0['_authorId']=_0x3f1913['_authorId'],this['_fixOperation'](_0x4a27f0,_0xea1d3c),_0x4a27f0;}['_getBaseVids'](_0x4f41a1){return _0x4f41a1['map'](_0x1ceade=>{const _0x5f3922=this['_getVidAttributeName'](_0x1ceade);return Number(_0x1ceade['item']['getAttribute'](_0x5f3922));});}['_generateTape'](_0x467b0f,_0x415d59){if(_0x467b0f['is']('element','$text'))_0x415d59['push']({'item':_0x467b0f,'type':'text'});else{_0x467b0f['is']('element')&&_0x415d59['push']({'item':_0x467b0f,'type':'elementStart'});for(const _0x5c5716 of _0x467b0f['getChildren']())this['_generateTape'](_0x5c5716,_0x415d59);_0x467b0f['is']('element')&&_0x415d59['push']({'item':_0x467b0f,'type':'elementEnd'});}return _0x415d59;}['_getState'](){const _0x3e903b=new Map(this['_touched']),_0x3f6ccc=new Map(_0x3e903b),_0x50ae36=new Map(),_0xebefc0={'insertions':{},'deletions':{}},_0x4039e3={'insertions':{},'deletions':{}},_0x261c23=new Map(),_0x15c4cf=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x15c4cf['delete']('$graveyard');for(const _0x186e34 of _0x15c4cf){const _0x1fcaa2=this['_diffRoots']['get'](_0x186e34)||F(_0x186e34,!0x1),_0x53fc64=this['_baseRoots']['get'](_0x186e34)||F(_0x186e34,!0x1);_0x1fcaa2['isAttached']()||_0x53fc64['isAttached']()?(_0xebefc0['insertions'][_0x186e34]=T(_0x1fcaa2),_0xebefc0['deletions'][_0x186e34]=T(_0x53fc64),this['_copyMarkers'](_0xebefc0['deletions'][_0x186e34],_0x53fc64),this['_copyMarkers'](_0xebefc0['insertions'][_0x186e34],_0x1fcaa2),_0x4039e3['insertions'][_0x186e34]=this['_generateTape'](this['_idsRoots']['get'](_0x186e34),[]),_0x4039e3['deletions'][_0x186e34]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x186e34)||F(_0x186e34,!0x1),[])):_0x15c4cf['delete'](_0x186e34);}for(const _0x4bafc7 of _0x15c4cf){const _0x1f7d4a=_0x4039e3['insertions'][_0x4bafc7];for(const _0x73b631 of _0x1f7d4a){const _0x1be66e=this['_getVidAttributeName'](_0x73b631),_0x16aa86=_0x73b631['item']['getAttribute'](_0x1be66e);_0x3f6ccc['delete'](_0x16aa86),_0x16aa86>=this['_startingRevisionId']&&_0x50ae36['set'](_0x16aa86,_0x3e903b['get'](_0x16aa86));}}for(const _0x15307 of _0x15c4cf){const _0x493599=_0x4039e3['insertions'][_0x15307],_0x242b3c=this['_getBaseVids'](_0x4039e3['deletions'][_0x15307]);let _0x18bcab=0x0;for(const _0x4647d5 of _0x493599){const _0x14ab19=this['_getVidAttributeName'](_0x4647d5),_0x32f41f=_0x4647d5['item']['getAttribute'](_0x14ab19);if(!_0x50ae36['has'](_0x32f41f)&&!_0x261c23['has'](_0x32f41f)){if(_0x3f6ccc['has'](_0x32f41f))_0x18bcab++;else{if(_0x32f41f!=_0x242b3c[_0x18bcab]){const _0x116255=_0x3e903b['get'](_0x32f41f)||_0x3e903b['get'](_0x242b3c[_0x18bcab]);for(;_0x32f41f!=_0x242b3c[_0x18bcab];)_0x3f6ccc['has'](_0x242b3c[_0x18bcab])||(_0x261c23['set'](_0x242b3c[_0x18bcab],_0x116255),_0x3e903b['set'](_0x242b3c[_0x18bcab],_0x116255)),_0x18bcab++;}_0x18bcab++;}}}}for(const _0x1a5a94 of _0x15c4cf){const _0x4333db=_0x4039e3['insertions'][_0x1a5a94];for(const _0x52c780 of _0x4333db){const _0x16437d=this['_getVidAttributeName'](_0x52c780),_0x573fb7=_0x52c780['item']['getAttribute'](_0x16437d);if(_0x261c23['has'](_0x573fb7)){const _0x338fe4=_0x261c23['get'](_0x573fb7);_0x3f6ccc['has'](_0x573fb7)||_0x3f6ccc['set'](_0x573fb7,{..._0x338fe4}),_0x50ae36['set'](_0x573fb7,{..._0x338fe4});}}}for(const _0x156516 of _0x3f6ccc['keys']())_0x156516>=this['_startingRevisionId']&&_0x3f6ccc['delete'](_0x156516);const _0x272a9d=new Map();for(const _0x40ef8d of _0x15c4cf){let _0xf25013=_0x4039e3['insertions'][_0x40ef8d];for(const _0x143064 of _0xf25013)if(_0x143064['item']['is']('element','tableCell')){const _0x46997f=this['_getVidAttributeName'](_0x143064),_0x468a3f=_0x143064['item']['getAttribute'](_0x46997f);if(_0x50ae36['has'](_0x468a3f)){const _0x153820=_0x143064['item']['parent']['parent']['getAttribute']('vid_start'),_0x45d88e=_0x272a9d['get'](_0x153820)||new Set();_0x45d88e['add'](_0x50ae36['get'](_0x468a3f)['userId']),_0x272a9d['set'](_0x153820,_0x45d88e);}}_0xf25013=_0x4039e3['deletions'][_0x40ef8d];for(const _0x21e129 of _0xf25013)if(_0x21e129['item']['is']('element','tableCell')){const _0x2d87bb=this['_getVidAttributeName'](_0x21e129),_0x110b17=_0x21e129['item']['getAttribute'](_0x2d87bb);if(_0x3f6ccc['has'](_0x110b17)){const _0x34abd4=_0x21e129['item']['parent']['parent']['getAttribute']('vid_start'),_0x5836d8=_0x272a9d['get'](_0x34abd4)||new Set();_0x5836d8['add'](_0x3f6ccc['get'](_0x110b17)['userId']),_0x272a9d['set'](_0x34abd4,_0x5836d8);}}for(const _0x4a60ff of _0x272a9d['keys']())(_0x50ae36['has'](_0x4a60ff)||_0x3f6ccc['has'](_0x4a60ff))&&_0x272a9d['delete'](_0x4a60ff);}for(const _0x270919 of _0x15c4cf){const _0x5428=_0x4039e3['insertions'][_0x270919];let _0x9f7899=null,_0x548e5d=null;for(const _0x3b068e of _0x5428){const _0x3642d3=this['_getVidAttributeName'](_0x3b068e),_0x5d29f0=_0x3b068e['item']['getAttribute'](_0x3642d3),_0x291455=_0x272a9d['get'](_0x5d29f0);_0x291455&&'elementStart'==_0x3b068e['type']&&(_0x9f7899=Array['from'](_0x291455)[0x0],_0x548e5d=_0x3b068e['item']['getAttribute']('vid_end')),_0x9f7899&&(_0x3f6ccc['set'](_0x5d29f0,{'userId':_0x9f7899}),_0x50ae36['set'](_0x5d29f0,{'userId':_0x9f7899})),_0x5d29f0==_0x548e5d&&(_0x9f7899=null,_0x548e5d=null);}}const _0x20e8ce={},_0x16c01b=new Set();for(const _0x391bf0 of _0x15c4cf){const _0x413f15=_0xebefc0['deletions'][_0x391bf0],_0xb1aa54=_0xebefc0['insertions'][_0x391bf0];for(const {userId:_0xe27755}of this['_touchedMarkers']['values']())null!==_0xe27755&&_0x16c01b['add'](_0xe27755);for(const {userId:_0x103b0a}of this['_touchedRoots']['values']())null!==_0x103b0a&&_0x16c01b['add'](_0x103b0a);this['_markChanges'](_0xb1aa54,_0x4039e3['insertions'][_0x391bf0],_0x50ae36,'insertion',_0x16c01b),this['_markChanges'](_0x413f15,_0x4039e3['deletions'][_0x391bf0],_0x3f6ccc,'deletion',_0x16c01b),_0x20e8ce[_0x391bf0]={'insertions':this['_prepareViewToSave'](_0xb1aa54),'deletions':this['_prepareViewToSave'](_0x413f15),'attachChange':this['_touchedRoots']['get'](_0x391bf0)||null,'attributesBefore':_0x30ebd2(this['_baseRootsAttributes']['get'](_0x391bf0))||{},'attributesAfter':_0x30ebd2(this['_diffRootsAttributes']['get'](_0x391bf0))};}return{'diffData':_0x20e8ce,'authorsIds':Array['from'](_0x16c01b)};}['_processRootBeforeSave'](_0x46b271){for(const [,_0x221279]of _0x46b271['markers']){const _0x5bf95a=_0x221279['start']['getAncestors']()['filter'](_0x552fe6=>'tableCell'==_0x552fe6['name']);for(const _0x2500a7 of _0x5bf95a)0x1==_0x2500a7['childCount']&&_0x2500a7['getChild'](0x0)['is']('element','paragraph')&&_0x2500a7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x31bac8){this['_processRootBeforeSave'](_0x31bac8);const _0x4030be=this['editor']['data']['toView'](_0x31bac8,{}),_0x2238fd=Array['from'](_0x4030be['getChildren']())['map'](_0x5c0fdb=>this['_getViewJson'](_0x5c0fdb));return JSON['stringify'](_0x2238fd);}['_getViewJson'](_0x55476d){if(_0x55476d['is']('$text'))return _0x55476d['data'];{const _0x349d5d=_0x55476d;return{'type':Object['keys'](P)['find'](_0x6d737e=>_0x55476d instanceof P[_0x6d737e]),'name':_0x349d5d['name'],'attributes':Array['from'](_0x349d5d['getAttributes']()),'children':Array['from'](_0x349d5d['getChildren']())['map'](_0x42bf26=>this['_getViewJson'](_0x42bf26))};}}['_markChanges'](_0x1d6c73,_0x28412d,_0x2394f7,_0xc4fb98,_0x12ebd2){let _0x5561c9=null,_0x1295ba=null,_0x208d50=0x0;const _0x28b545=this['editor']['model'];for(let _0x48da3c=0x0;_0x48da3c<_0x28412d['length'];_0x48da3c++){const _0x4911cc=this['_getVidAttributeName'](_0x28412d[_0x48da3c]),_0x2ad391=_0x28412d[_0x48da3c]['item']['getAttribute'](_0x4911cc),_0x5dc491=_0x2394f7['get'](_0x2ad391),_0x503819=_0x48da3c==_0x28412d['length']-0x1;(!_0x5561c9&&_0x5dc491&&(_0x5561c9=_0x5dc491,_0x1295ba=_0x28412d[_0x48da3c]),_0x5561c9&&(!_0x5dc491||_0x5dc491['userId']!=_0x5561c9['userId']))&&(_0x479e6d(_0x5dc491,B(_0x1295ba,_0x1d6c73,_0x28b545),B(_0x28412d[_0x48da3c],_0x1d6c73,_0x28b545)),_0x5561c9=_0x5dc491||null,_0x1295ba=_0x5dc491?_0x28412d[_0x48da3c]:null),_0x5561c9&&_0x503819&&_0x479e6d(_0x5dc491,B(_0x1295ba,_0x1d6c73,_0x28b545),J(_0x28412d[_0x48da3c],_0x1d6c73,_0x28b545));}function _0x479e6d(_0x5a44e6,_0x189667,_0x451662){const _0x48dfbd=_0x5561c9['userId'],_0x136fcc='revision:'+_0xc4fb98+':'+_0x48dfbd+':'+_0x208d50++,_0x35a4a9=_0x28b545['createRange'](_0x189667,_0x451662);_0x1d6c73['markers']['set'](_0x136fcc,_0x35a4a9),null!==_0x48dfbd&&_0x12ebd2['add'](_0x48dfbd);}}['_getVidAttributeName'](_0x5dd4d2){switch(_0x5dd4d2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2dff45,_0x459cf5){_0x2dff45['baseVersion']=null;for(const _0x12a121 in _0x2dff45){const _0x5a10f9=_0x2dff45[_0x12a121];if(_0x5a10f9 instanceof gt){const _0x1c6e0b=_0x459cf5['get'](_0x5a10f9['root']['rootName']);_0x2dff45[_0x12a121]=this['_fixPosition'](_0x5a10f9,_0x1c6e0b);}if(_0x5a10f9 instanceof vt){const _0x3d60fd=_0x459cf5['get'](_0x5a10f9['root']['rootName']);_0x2dff45[_0x12a121]=this['_fixRange'](_0x5a10f9,_0x3d60fd);}'root'===_0x12a121&&(_0x2dff45['root']=_0x459cf5['get'](_0x2dff45['root']['rootName']));}}['_fixRange'](_0x97730e,_0x3276ee){return this['editor']['model']['createRange'](this['_fixPosition'](_0x97730e['start'],_0x3276ee),this['_fixPosition'](_0x97730e['end'],_0x3276ee));}['_fixPosition'](_0x4db993,_0x18eb9a){return this['editor']['model']['createPositionFromPath'](_0x18eb9a,_0x4db993['path'],_0x4db993['stickiness']);}['_handleInsertOperation'](_0x2b68b5){const _0x50823c=this['_idsRoots']['get'](_0x2b68b5['position']['root']['rootName']),_0x4ae9e5=this['_fixPosition'](_0x2b68b5['position'],_0x50823c),_0x39f32f=null===_0x2b68b5['_authorId']?null:_0x2b68b5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37f837=_0x4ae9e5['parent'],_0x128f6a=this['_revisionId'],_0x196aee=[];for(const _0x5b1385 of _0x2b68b5['nodes'])if(_0x5b1385['is']('element'))_0x196aee['push'](this['_makeIdsRoot'](_0x5b1385));else{for(let _0x3828b1=0x0;_0x3828b1<_0x5b1385['offsetSize'];_0x3828b1++)_0x196aee['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x3b6d75=this['_revisionId'];for(let _0x4d7a74=_0x128f6a;_0x4d7a74<_0x3b6d75;_0x4d7a74++)this['_touched']['set'](_0x4d7a74,{'userId':_0x39f32f});_0x37f837['_insertChild'](_0x4ae9e5['offset'],_0x196aee);}['_handleMoveOperation'](_0x3b3432){(_0x3b3432=this['_cloneOperation'](_0x3b3432,this['_idsRoots']))['_execute']();const _0x285b80=null===_0x3b3432['_authorId']?null:_0x3b3432['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c30bd=_0x3b3432['getMovedRangeStart'](),_0x29fa82=_0x2c30bd['parent'],_0x31407e=_0x2c30bd['offset'];!function _0x91c317(_0x19be6d,_0x275f7c,_0x588db4,_0x34cc9b){for(let _0x591a72=_0x588db4;_0x591a72<_0x34cc9b;_0x591a72++){const _0x495091=_0x275f7c['getChild'](_0x591a72);_0x495091['is']('element','$text')?_0x19be6d['set'](_0x495091['getAttribute']('vid'),{'userId':_0x285b80}):(_0x19be6d['set'](_0x495091['getAttribute']('vid_start'),{'userId':_0x285b80}),_0x91c317(_0x19be6d,_0x495091,0x0,_0x495091['childCount']),_0x19be6d['set'](_0x495091['getAttribute']('vid_end'),{'userId':_0x285b80}));}}(this['_touched'],_0x29fa82,_0x31407e,_0x31407e+_0x3b3432['howMany']);}['_handleMergeOperation'](_0x1de895){const _0x35b38b=null===(_0x1de895=this['_cloneOperation'](_0x1de895,this['_idsRoots']))['_authorId']?null:_0x1de895['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xecbe81=_0x1de895['targetPosition']['parent'],_0xa5687a=_0x1de895['sourcePosition']['parent'],_0x391883=_0xecbe81['getAttribute']('vid_end'),_0x360bfe=_0xa5687a['getAttribute']('vid_start');_0xecbe81['_setAttribute']('vid_end',_0xa5687a['getAttribute']('vid_end')),_0xa5687a['_setAttribute']('vid_end',_0x391883),this['_touched']['set'](_0x360bfe,{'userId':_0x35b38b}),this['_touched']['set'](_0x391883,{'userId':_0x35b38b}),_0x1de895['_execute']();}['_handleSplitOperation'](_0x2c4d5d){const _0x14d9a5=null===(_0x2c4d5d=this['_cloneOperation'](_0x2c4d5d,this['_idsRoots']))['_authorId']?null:_0x2c4d5d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55c57b=_0x2c4d5d['graveyardPosition'],_0x52abcc=_0x2c4d5d['splitPosition']['parent'];_0x2c4d5d['_execute']();const _0x73a5d4=_0x52abcc['getAttribute']('vid_end'),_0x3f09ed=_0x2c4d5d['insertionPosition']['nodeAfter'];if(_0x55c57b){const _0x3f0ab0=_0x3f09ed['getAttribute']('vid_end'),_0x4ce14e=_0x52abcc['getAttribute']('vid_end');_0x52abcc['_setAttribute']('vid_end',_0x3f0ab0),_0x3f09ed['_setAttribute']('vid_end',_0x4ce14e),this['_touched']['set'](_0x52abcc['getAttribute']('vid_end'),{'userId':_0x14d9a5}),this['_touched']['set'](_0x3f09ed['getAttribute']('vid_start'),{'userId':_0x14d9a5});}else{const _0x43e358=this['_revisionId']++,_0x13741c=this['_revisionId']++;_0x52abcc['_setAttribute']('vid_end',_0x43e358),_0x3f09ed['_setAttribute']('vid_start',_0x13741c),_0x3f09ed['_setAttribute']('vid_end',_0x73a5d4),this['_touched']['set'](_0x43e358,{'userId':_0x14d9a5}),this['_touched']['set'](_0x13741c,{'userId':_0x14d9a5});}}['_handleMarkerOperation'](_0x54307a){if(!_0x54307a['affectsData'])return;const _0x81ff7a=(_0x54307a=this['_cloneOperation'](_0x54307a,this['_diffRoots']))['oldRange']?_0x54307a['oldRange']['root']:null,_0x189039=_0x54307a['newRange']?_0x54307a['newRange']['root']:null;_0x81ff7a&&this['_markers']['delete'](_0x54307a['name']),_0x189039&&this['_markers']['set'](_0x54307a['name'],_0x54307a['newRange']['clone']());const _0x5456c1=null===_0x54307a['_authorId']?null:_0x54307a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xeeafe2=_0x54307a['name'];if(!this['_touchedMarkers']['has'](_0xeeafe2))return void this['_touchedMarkers']['set'](_0xeeafe2,{'range':_0x54307a['oldRange'],'userId':_0x5456c1});const _0x17b981=this['_touchedMarkers']['get'](_0xeeafe2),_0x464682=_0x17b981['range'],_0x2b9168=_0x54307a['newRange'];null==_0x464682&&null==_0x2b9168||_0x464682&&_0x2b9168&&_0x464682['isEqual'](_0x2b9168)?this['_touchedMarkers']['delete'](_0x54307a['name']):_0x17b981['userId']=_0x5456c1;}['_handleRootOperation'](_0x1f5452,_0x2819a7){this['_diffRoots']['has'](_0x1f5452['rootName'])?this['_diffRoots']['get'](_0x1f5452['rootName'])['_isAttached']=_0x1f5452['isAdd']:(this['_diffRoots']['set'](_0x1f5452['rootName'],F(_0x1f5452['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1f5452['rootName'],{}),_0x2819a7&&this['_idsRoots']['set'](_0x1f5452['rootName'],F(_0x1f5452['rootName'],!0x0)));const _0x137b33=null===_0x1f5452['_authorId']?null:_0x1f5452['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5d1510=this['_touchedRoots']['get'](_0x1f5452['rootName']);_0x5d1510&&_0x5d1510['userId']===_0x137b33?this['_touchedRoots']['delete'](_0x1f5452['rootName']):this['_touchedRoots']['set'](_0x1f5452['rootName'],{'userId':_0x137b33,'isAttached':_0x1f5452['isAdd']});}['_handleRootAttributeOperation'](_0x1fd740){const _0x503816=this['_diffRootsAttributes']['get'](_0x1fd740['root']['rootName']);null===_0x1fd740['newValue']?delete _0x503816[_0x1fd740['key']]:_0x503816[_0x1fd740['key']]=_0x1fd740['newValue'];}}function T(_0x2c22b0){const _0x4e7b5a=F(_0x2c22b0['rootName'],_0x2c22b0['isAttached']());for(const _0x4e6fc5 of _0x2c22b0['getChildren']()){const _0x453513=_0x4e6fc5['_clone'](!0x0);_0x4e7b5a['_appendChild'](_0x453513);}return _0x4e7b5a;}function F(_0x39269f,_0x5206e8=!0x0){const _0x2601c2=new mt();return _0x2601c2['rootName']=_0x39269f,_0x2601c2['_isAttached']=_0x5206e8,_0x2601c2['isAttached']=()=>_0x2601c2['_isAttached'],_0x2601c2;}function B(_0x121269,_0x5db419,_0x577846){const _0x42d46a='elementEnd'==_0x121269['type']?_0x577846['createPositionAt'](_0x121269['item'],'end'):_0x577846['createPositionBefore'](_0x121269['item']);return _0x577846['createPositionFromPath'](_0x5db419,_0x42d46a['path'],_0x42d46a['stickiness']);}function J(_0x128032,_0x695dcd,_0x4e93d1){const _0x30bc12='elementStart'==_0x128032['type']?_0x4e93d1['createPositionAt'](_0x128032['item'],0x0):_0x4e93d1['createPositionAfter'](_0x128032['item']);return _0x4e93d1['createPositionFromPath'](_0x695dcd,_0x30bc12['path'],_0x30bc12['stickiness']);}class ns extends _0xb5bc71{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5ba432,_0x3e29fa){super(_0x5ba432),this['focusTracker']=new _0x23058c(),this['keystrokes']=new _0x9d560c(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3e29fa),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'](),_0xed7b1e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x37da08=_0x3b8ce2=>_0x3b8ce2['stopPropagation']();this['keystrokes']['set']('arrowright',_0x37da08),this['keystrokes']['set']('arrowleft',_0x37da08),this['keystrokes']['set']('arrowup',_0x37da08),this['keystrokes']['set']('arrowdown',_0x37da08);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x386eac){this['revisionNameInputView']['fieldView']['element']['value']=_0x386eac['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x74e484){const _0x843efe=new nt(this['locale'],_0x396089),_0x391bc5=_0x843efe['fieldView'];_0x391bc5['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4811e6=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x74e484&&(_0x4811e6+='\x20('+m(this['locale'],'optional')+')'),(_0x843efe['label']=_0x4811e6,_0x391bc5['on']('input',()=>{this['revisionNameInputValue']=_0x391bc5['element']['value']['trim']();}),_0x843efe);}}class u extends _0x29e489{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x3c32ab=this['editor'],_0x4dd1f1=_0x3c32ab['plugins']['get']('RevisionTracker');_0x3c32ab['ui']['componentFactory']['add']('revisionHistory',_0x4fec9e=>{const _0xa2671e=_0x417cf8(_0x4fec9e),_0x599bb5=_0xa2671e['panelView']['children'],_0x33da48=new te(_0x4fec9e),_0x175237=new _0x12a450(_0x4fec9e),_0x1ad3ee=new _0xe84945(_0x4fec9e),_0x2ccea1=new _0x12a450(_0x4fec9e),_0x56fcca=new _0xe84945(_0x4fec9e);return _0xa2671e['bind']('isEnabled')['to'](_0x4dd1f1,'isReady',_0x4dd1f1,'isEnabled',_0x3c32ab,'isReadOnly',(_0x330325,_0x496fa7,_0x3eabdd)=>_0x330325&&_0x496fa7&&!_0x3eabdd),_0xa2671e['buttonView']['set']({'icon':_0x4a7550['history'],'label':m(_0x4fec9e,'Revision\x20history'),'tooltip':!0x0}),_0x1ad3ee['set']({'label':m(_0x4fec9e,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1ad3ee['bind']('isEnabled')['to'](_0x4dd1f1,'isReady',_0x4dd1f1,'isEnabled',_0x3c32ab,'isReadOnly',(_0x7e0129,_0x592362,_0xd3c497)=>_0x7e0129&&_0x592362&&!_0xd3c497),_0x1ad3ee['on']('execute',()=>this['_showDialog']()),_0x56fcca['set']({'label':m(_0x4fec9e,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x56fcca['bind']('isEnabled')['to'](_0x4dd1f1,'isReady',_0x3c32ab,'isReadOnly',(_0xec6988,_0x449e39)=>_0xec6988&&!_0x449e39),_0x56fcca['on']('execute',()=>{_0x3c32ab['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xa2671e['isOpen']=!0x1,_0x3c32ab['editing']['view']['focus']();}),_0x175237['children']['add'](_0x1ad3ee),_0x2ccea1['children']['add'](_0x56fcca),_0x33da48['role']='menu',_0x33da48['items']['addMany']([_0x175237,_0x2ccea1]),_0x599bb5['add'](_0x33da48),_0xa2671e;}),_0x3c32ab['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2f49ce=this['editor'],_0x5ca0a6=_0x2f49ce['locale'],_0x35739e=new _0x568570(_0x5ca0a6),_0x19a89e=new _0x2b2504(_0x5ca0a6);_0x35739e['buttonView']['set']({'icon':_0x4a7550['history'],'label':m(_0x5ca0a6,'Revision\x20history')});const _0x5dc8dc=new _0x2a9944(_0x5ca0a6,_0x35739e),_0x38ed4e=new _0x433f31(_0x5ca0a6);_0x38ed4e['set']({'label':m(_0x5ca0a6,'Save\x20current\x20revision')}),_0x38ed4e['delegate']('execute')['to'](_0x35739e),_0x38ed4e['on']('execute',()=>{this['_showDialog']();}),_0x5dc8dc['children']['add'](_0x38ed4e),_0x19a89e['items']['add'](_0x5dc8dc);const _0x4110bc=new _0x2a9944(_0x5ca0a6,_0x35739e),_0x3cbb03=new _0x433f31(_0x5ca0a6);return _0x3cbb03['set']({'label':m(_0x5ca0a6,'Open\x20revision\x20history')}),_0x3cbb03['delegate']('execute')['to'](_0x35739e),_0x3cbb03['on']('execute',()=>{_0x2f49ce['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4110bc['children']['add'](_0x3cbb03),_0x19a89e['items']['add'](_0x4110bc),_0x35739e['panelView']['children']['add'](_0x19a89e),_0x35739e;}['_showDialog'](){const _0x3f0ce6=this['editor'],_0xe65734=_0x3f0ce6['locale'],_0x199ecf=_0x3f0ce6['plugins']['get']('Dialog'),_0x312af9=_0x3f0ce6['plugins']['get']('RevisionTracker');function _0x119ad6(_0x524462){_0x3f0ce6['config']['get']('revisionHistory.requireRevisionName')&&''===_0x524462['revisionName']?_0x524462['revisionNameInputView']['errorText']=m(_0xe65734,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3f0ce6['plugins']['get'](l)['saveRevision']({'name':_0x524462['revisionName']}),_0x199ecf['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x119ad6(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x199ecf['show']({'id':'revisionSave','title':m(_0xe65734,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x3f0ce6['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x199ecf['hide']()},{'label':m(_0x3f0ce6['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x29d90e){_0x29d90e['bind']('isEnabled')['to'](_0x312af9,'isReady',_0x312af9,'isEnabled',_0x3f0ce6,'isReadOnly',(_0x53aaf6,_0x397680,_0x4d1e44)=>_0x53aaf6&&_0x397680&&!_0x4d1e44);},'onExecute':()=>_0x119ad6(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5dba75=this['editor'],_0x42d4eb=_0x5dba75['locale'];this['_saveRevisionFormView']=new ns(_0x42d4eb,_0x5dba75['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0xb5bc71{['changeId'];['_model'];constructor(_0x3cd2f4,_0x9d79b){super(_0x3cd2f4),this['_model']=_0x9d79b,this['changeId']=_0x9d79b['id'];const _0x7d83be=this['bindTemplate'],_0x31aef0=m(_0x3cd2f4,_0x9d79b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x9d79b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x9d79b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x7d83be['to']('type',_0x29733b=>'ck-revision-change__'+_0x29733b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x31aef0}]},{'text':'\x20'+_0x9d79b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x18d1d6(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xd7792c){super(),this['id']=_0xd7792c['id']||_0x44825c(),this['author']=_0xd7792c['author'],this['type']=_0xd7792c['type'],this['data']=_0xd7792c['data']||{},this['rootName']=_0xd7792c['rootName'],this['set']('createdAt',_0xd7792c['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(_0x87dd50,_0x4290bb){this['newRevisionId']=_0x87dd50,this['oldRevisionId']=_0x4290bb,this['changes']=new _0x5238b7();}['_setChanges'](_0x3f74b3){for(const _0x3b250a of _0x3f74b3)this['changes']['add'](_0x3b250a);}}const Y={'c':_0x8712c5,'a':_0x1a7a3c,'e':_0x1fd110,'r':_0x53e239,'u':_0x49a806};class d extends _0x29e489{['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[_0xf4fc7b,_0xb9a914,j];}constructor(_0x4a3979){super(_0x4a3979),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',(_0x15a20a,_0x2355a7,_0x50171)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3a2ad6=>{for(const _0x13cfc8 of this['editor']['editing']['view']['document']['roots'])_0x50171?_0x3a2ad6['removeClass']('ck-editor__editable__overlay',_0x13cfc8):_0x3a2ad6['addClass']('ck-editor__editable__overlay',_0x13cfc8);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3ffa68=>null!==_0x3ffa68),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xf7854f,_0x574aac,_0xfeba0d)=>_0xf7854f&&_0xfeba0d?_0x574aac['changes']['getIndex'](_0xfeba0d):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3ee3ad,_0x255946)=>_0x3ee3ad?_0x255946['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xb9a914);}['init'](){const _0x4672a7=this['editor'],_0x3e5b08=new yt(_0x4672a7,{'direction':'backward'}),_0x574605=new yt(_0x4672a7,{'direction':'forward'});(_0x4672a7['commands']['add']('showPreviousChange',_0x3e5b08),_0x4672a7['commands']['add']('showNextChange',_0x574605),_0x4672a7['commands']['add']('restoreRevision',new _t(_0x4672a7)),this['on']('change:numberOfChanges',()=>{_0x3e5b08['refresh'](),_0x574605['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4672a7['enableReadOnlyMode']('revision-viewer'),_0x4672a7['plugins']['has']('WidgetToolbarRepository'))&&_0x4672a7['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x495522){await this['loadRevisionData'](_0x495522);const _0x52570f={};for(const _0x1c17f4 in _0x495522['diffData']){if(_0x495522['diffData'][_0x1c17f4]['attachChange']&&!_0x495522['diffData'][_0x1c17f4]['attachChange']['isAttached'])continue;const _0x5d942f=this['_removeRevisionMarkers'](JSON['parse'](_0x495522['diffData'][_0x1c17f4]['insertions'])),_0x117f70=this['editor']['editing']['view']['document'],_0x5bf5b4=new _0x1716b3(_0x117f70,_0x5d942f['map'](_0x214553=>this['_getViewObj'](_0x214553)));this['editor']['data']['processor']['useFillerType']('marked'),_0x52570f[_0x1c17f4]=this['editor']['data']['processor']['toData'](_0x5bf5b4),this['editor']['data']['processor']['useFillerType']('default');}return _0x52570f;}async['getRevisionRootsAttributes'](_0x20ebe6){await this['loadRevisionData'](_0x20ebe6);const _0x2d586c={};for(const _0x4e359c in _0x20ebe6['diffData'])_0x20ebe6['diffData'][_0x4e359c]['attachChange']&&!_0x20ebe6['diffData'][_0x4e359c]['attachChange']['isAttached']||(_0x2d586c[_0x4e359c]=_0x20ebe6['diffData'][_0x4e359c]['attributesAfter']||{});return _0x2d586c;}['_removeRevisionMarkers'](_0x209856){return(_0x209856=_0x209856['filter'](_0x1642c9=>!_0x1642c9['name']||'revision-start'!==_0x1642c9['name']&&'revision-end'!==_0x1642c9['name']))['forEach'](_0xe3999c=>{'string'!=typeof _0xe3999c&&(_0xe3999c['children']=this['_removeRevisionMarkers'](_0xe3999c['children']),_0xe3999c['attributes']=_0xe3999c['attributes']['filter'](_0x1974aa=>!_0x1974aa[0x0]['startsWith']('data-revision-')));}),_0x209856;}async['compare'](_0x119086,_0x3d271a,_0x549201=!0x1){if(!this['isEnabled'])return;const _0x57dcc8=this['diff'],_0x1907bb=this['repository'],_0x1a5192='string'==typeof _0x119086?_0x1907bb['getRevision'](_0x119086):_0x119086,_0x1792c8='string'==typeof _0x3d271a?_0x1907bb['getRevision'](_0x3d271a):_0x3d271a,_0x371747=_0x1a5192['id'],_0x3a6bcc=_0x1792c8?_0x1792c8['id']:null;if(!_0x549201&&this['diff']&&this['diff']['newRevisionId']===_0x371747&&this['diff']['oldRevisionId']===_0x3a6bcc)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x371747,_0x3a6bcc);const _0x33a387=this['_getRevisionsRange'](_0x1a5192,_0x1792c8,!0x0)['map'](_0x5662aa=>this['loadRevisionData'](_0x5662aa));return _0x33a387['push'](new Promise(_0xb04e62=>{setTimeout(_0xb04e62,0x14);})),Promise['all'](_0x33a387)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x449139=this['_getDiff'](_0x371747,_0x3a6bcc);for(const _0x9d6cb2 of _0x449139['changes'])this['_changeIdToChange']['set'](_0x9d6cb2['id'],_0x9d6cb2);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x54f14c=>{for(const _0x5763c3 of this['editor']['model']['document']['getRootNames']())_0x54f14c['detachRoot'](_0x5763c3);for(const _0x5ec79e of Object['keys'](_0x449139['model'])){const _0xcf4882=_0x54f14c['addRoot'](_0x5ec79e);for(const _0x2a5ff0 of Object['keys'](_0x449139['attributes'][_0x5ec79e]))_0x54f14c['setAttribute'](_0x2a5ff0,_0x449139['attributes'][_0x5ec79e][_0x2a5ff0],_0xcf4882);_0x54f14c['insert'](_0x449139['model'][_0x5ec79e],_0xcf4882,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x449139['changes'])),this['isReady']=!0x0;})['catch'](_0x19d6af=>{console['error'](_0x19d6af),this['_cleanUp'](),_0x57dcc8&&(this['diff']=_0x57dcc8),this['isReady']=!0x0;});}['addRevisionData'](_0x4d470a,_0x3ad26c){const _0x5571f1=this['repository']['createRevision'](_0x4d470a);return _0x5571f1['on']('_update',(_0x2c948e,_0x53729a,_0x4d50ca)=>_0x3ad26c(_0x53729a,_0x4d50ca,_0x5571f1)),this['repository']['addRevision'](_0x5571f1),_0x5571f1;}['loadRevisionData'](_0x47d5e8){if(!_0x47d5e8||_0x47d5e8['diffData'])return Promise['resolve']();{const _0x319101=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x319101,'revisionId':_0x47d5e8['id']})['then'](_0x329d38=>{_0x47d5e8['_update']({'diffData':_0x329d38['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},_0x3c5472=>{for(const _0x381732 of this['editor']['model']['document']['getRootNames']())_0x3c5472['detachRoot'](_0x381732);});}['_sortAndFilterDiffChanges'](_0xf8f971){const _0x27bf70=[],_0x4d4562=new Map();for(const _0x862fcc of this['editor']['model']['document']['getRootNames']()){const _0xc4695a=this['editor']['editing']['view']['getDomRoot'](_0x862fcc);if(!_0xc4695a)continue;const _0x278984=_0xc4695a['getClientRects']()['item'](0x0);_0x278984&&(_0x27bf70['push'](_0x862fcc),_0x4d4562['set'](_0x862fcc,_0x278984));}return _0x27bf70['sort']((_0x34a9e8,_0x247c1d)=>{const _0x1d0755=_0x4d4562['get'](_0x34a9e8),_0x47a584=_0x4d4562['get'](_0x247c1d);return _0x1d0755['y']-_0x47a584['y']||_0x1d0755['x']-_0x47a584['x'];}),(_0xf8f971=_0xf8f971['filter'](_0x33d4df=>_0x27bf70['includes'](_0x33d4df['rootName'])))['sort']((_0x580bf8,_0x1e069b)=>_0x27bf70['indexOf'](_0x580bf8['rootName'])-_0x27bf70['indexOf'](_0x1e069b['rootName'])),_0xf8f971;}['_makeTape'](_0x3b28da){const _0x5e6bf3=Array['from'](_0x3b28da['markers'])['filter'](([_0x447a4,_0x430e21])=>_0x447a4['startsWith']('revision:')&&!_0x430e21['isCollapsed']),_0x45807b=Array['from'](this['editor']['model']['createRangeIn'](_0x3b28da)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5e6bf3['length'])for(const _0x351089 of _0x45807b){const [_0x5a2a3e,_0x30afc6]=_0x5e6bf3[0x0],[,_0x475477,_0x53d3b2]=_0x5a2a3e['split'](':');if(_0x30afc6['end']['isEqual'](_0x351089['nextPosition'])&&_0x5e6bf3['shift'](),(_0x351089['previousPosition']['isEqual'](_0x30afc6['start'])||_0x351089['previousPosition']['isAfter'](_0x30afc6['start']))&&('insertion'==_0x475477?_0x351089['isAdded']={'userId':_0x53d3b2}:'deletion'==_0x475477&&(_0x351089['isRemoved']={'userId':_0x53d3b2})),0x0==_0x5e6bf3['length'])break;}return _0x45807b;}['_refreshStartEndIndex'](_0x57a4fc){const _0x4d6c22=new Map();for(let _0xbf4f08=0x0;_0xbf4f08<_0x57a4fc['length'];_0xbf4f08++)'text'===_0x57a4fc[_0xbf4f08]['type']?(_0x57a4fc[_0xbf4f08]['item']['startIndex']=_0xbf4f08,_0x57a4fc[_0xbf4f08]['item']['endIndex']=_0xbf4f08):('elementStart'===_0x57a4fc[_0xbf4f08]['type']?_0x57a4fc[_0xbf4f08]['item']['startIndex']=_0xbf4f08:'elementEnd'===_0x57a4fc[_0xbf4f08]['type']&&(_0x57a4fc[_0xbf4f08]['item']['endIndex']=_0xbf4f08),_0x4d6c22['set'](_0x57a4fc[_0xbf4f08]['id'],_0xbf4f08));for(const _0x13c2dc of _0x4d6c22['values']())'elementStart'===_0x57a4fc[_0x13c2dc]['type']?_0x57a4fc[_0x13c2dc]['item']['endIndex']=_0x4d6c22['get'](_0x57a4fc[_0x13c2dc]['pairId']):'elementEnd'===_0x57a4fc[_0x13c2dc]['type']&&(_0x57a4fc[_0x13c2dc]['item']['startIndex']=_0x4d6c22['get'](_0x57a4fc[_0x13c2dc]['pairId']));}['_processTape'](_0x3b272a){for(let _0x4c1579=0x0;_0x4c1579<_0x3b272a['length'];_0x4c1579++){if('elementStart'===_0x3b272a[_0x4c1579]['type'])_0x3b272a[_0x4c1579]['item']['startIndex']=_0x4c1579;else{if('elementEnd'===_0x3b272a[_0x4c1579]['type']){_0x3b272a[_0x4c1579]['item']['endIndex']=_0x4c1579;const _0x57f570=_0x3b272a[_0x4c1579]['item']['startIndex'];_0x3b272a[_0x57f570]['pairId']=_0x3b272a[_0x4c1579]['id'],_0x3b272a[_0x4c1579]['pairId']=_0x3b272a[_0x57f570]['id'];}else _0x3b272a[_0x4c1579]['item']['startIndex']=_0x4c1579,_0x3b272a[_0x4c1579]['item']['endIndex']=_0x4c1579,_0x3b272a[_0x4c1579]['pairId']=null;}_0x3b272a[_0x4c1579]['markersStart']||(_0x3b272a[_0x4c1579]['markersStart']=[],_0x3b272a[_0x4c1579]['markersEnd']=[]);}}['_markInsertions'](_0x45e919,_0x571d9f){const _0x171489=_0x45e919['filter'](_0x348dac=>!_0x348dac['isAdded']);for(let _0x13bc1e=0x0;_0x13bc1e<_0x571d9f['length'];_0x13bc1e++)_0x571d9f[_0x13bc1e]['isAdded']&&(_0x171489[_0x13bc1e]['isAdded']=_0x571d9f[_0x13bc1e]['isAdded']);}['_makeModelFromViewString'](_0x2bf807){const _0x34251e=JSON['parse'](_0x2bf807),_0x3553f7=this['editor']['editing']['view']['document'],_0x2b6935=new _0x1716b3(_0x3553f7,_0x34251e['map'](_0x19635d=>this['_getViewObj'](_0x19635d)));return this['editor']['data']['toModel'](_0x2b6935);}['_getViewObj'](_0x4e8da5){const _0x46949b=this['editor']['editing']['view']['document'];if('string'==typeof _0x4e8da5)return new _0x528d27(_0x46949b,_0x4e8da5);{const _0x241252=_0x4e8da5['children']['map'](_0xa597bc=>this['_getViewObj'](_0xa597bc));return new(Y[_0x4e8da5['type']]||_0x4f78dd)(_0x46949b,_0x4e8da5['name'],_0x4e8da5['attributes'],_0x241252);}}['_getDiff'](_0x33f5d7,_0x4f1590=null){const _0x2f8e5f=this['repository']['getRevision'](_0x33f5d7),_0x184254=_0x4f1590?this['repository']['getRevision'](_0x4f1590):null,_0x1cf881=this['_getRevisionsRange'](_0x2f8e5f,_0x184254),_0x457b25=_0x1cf881[_0x1cf881['length']-0x1],_0x32d404=new Map(),_0x3f717a={'model':{},'attributes':{},'changes':[]},_0x209677=new Set(),_0x51ee32=new Map();for(let _0xe73c97=_0x1cf881['length']-0x1;_0xe73c97>=0x0;_0xe73c97--){const _0x5b8b42=_0x1cf881[_0xe73c97];for(const _0x104a5e of Object['keys'](_0x5b8b42['diffData']))if(_0x5b8b42['diffData'][_0x104a5e]['attachChange']){const _0x4d7416=_0x5b8b42['diffData'][_0x104a5e]['attachChange'];_0x4d7416['isAttached']?(_0x209677['add'](_0x104a5e),_0x51ee32['has'](_0x104a5e)&&_0x51ee32['get'](_0x104a5e)['userId']==_0x4d7416['userId']?_0x51ee32['delete'](_0x104a5e):_0x51ee32['set'](_0x104a5e,_0x4d7416)):_0x51ee32['has'](_0x104a5e)?(_0x209677['delete'](_0x104a5e),_0x51ee32['delete'](_0x104a5e)):(_0x209677['add'](_0x104a5e),_0x51ee32['set'](_0x104a5e,_0x4d7416));}else _0x209677['add'](_0x104a5e);}for(const _0x44b8d8 of _0x209677){const _0x261357=_0x51ee32['has'](_0x44b8d8)&&!_0x51ee32['get'](_0x44b8d8)['isAttached'];let _0x2f83c5=_0x261357?_0x1cf881['length']-0x1:0x0;const _0x577178=_0x261357?-0x1:0x1;for(;_0x1cf881[_0x2f83c5];){const _0x2fddac=_0x1cf881[_0x2f83c5];if(_0x2fddac['diffData'][_0x44b8d8]){const _0x125514=_0x261357?_0x2fddac['diffData'][_0x44b8d8]['attributesBefore']:_0x2fddac['diffData'][_0x44b8d8]['attributesAfter'];_0x3f717a['attributes'][_0x44b8d8]=_0x125514?_0x30ebd2(_0x125514):{};break;}_0x2f83c5+=_0x577178;}}for(const _0x357962 of _0x1cf881){_0x357962['model']={};for(const _0x4ebb9b of _0x357962['authors'])_0x32d404['set'](_0x4ebb9b['id'],_0x4ebb9b);for(const _0x332391 of _0x209677){const _0x59837a=_0x357962['diffData'][_0x332391]?_0x357962['diffData'][_0x332391]['insertions']:'[]',_0xbf02ed=_0x357962['diffData'][_0x332391]?_0x357962['diffData'][_0x332391]['deletions']:'[]';_0x357962['model'][_0x332391]={'insertions':this['_makeModelFromViewString'](_0x59837a),'deletions':this['_makeModelFromViewString'](_0xbf02ed)};}}for(const _0x521f96 of _0x209677){let _0x176be9=null,_0x29b9c5=0x0;const _0x4fabee=new Map(Array['from'](_0x2f8e5f['model'][_0x521f96]['insertions']['markers'])['filter'](([_0x35a020])=>!_0x35a020['startsWith']('revision:')));let _0x20d067=0x0;for(const _0x20b295 of _0x1cf881){const _0x2b0021=this['_makeTape'](_0x20b295['model'][_0x521f96]['insertions']);_0x20b295==_0x2f8e5f?(_0x176be9=_0x2b0021,_0x29b9c5=_0x176be9['length'],_0x176be9['forEach'](_0x45d74a=>{_0x45d74a['id']=_0x20d067++;}),this['_processTape'](_0x176be9)):this['_markInsertions'](_0x176be9,_0x2b0021);const _0xaae583=_0x176be9['filter'](_0x3bfa4b=>!_0x3bfa4b['isAdded'])['map'](_0x2352d2=>_0x2352d2['id']);let _0x2f8222=0x0;const _0xa6cfe9=this['_makeTape'](_0x20b295['model'][_0x521f96]['deletions']);_0xa6cfe9['forEach'](_0x364f6d=>{_0x364f6d['isRemoved']?_0x364f6d['id']=_0x29b9c5++:_0x364f6d['id']=_0xaae583[_0x2f8222++];}),this['_processTape'](_0xa6cfe9),this['_setDistance'](_0x176be9,'isAdded'),this['_setDistance'](_0xa6cfe9,'isRemoved'),_0x20b295==_0x2f8e5f&&this['_markMarkers'](_0x176be9,_0x4fabee),_0x176be9=this['_joinTapes'](_0x176be9,_0xa6cfe9),this['_refreshStartEndIndex'](_0x176be9),this['_setDistance'](_0x176be9,'isRemoved');}_0x176be9=_0x176be9['filter'](_0x6e1cc5=>!(_0x6e1cc5['isAdded']&&_0x6e1cc5['isRemoved']));const _0x2a3803=new Map(_0x457b25['model'][_0x521f96]['deletions']['markers']),_0x41db5c=new Set(_0x4fabee['keys']());for(const _0x4c36a7 of _0x2a3803['keys']())_0x41db5c['delete'](_0x4c36a7);this['_markSuggestions'](_0x176be9,_0x41db5c),this['_fixObsoleteTags'](_0x176be9),_0x176be9=this['_removeMissingPairs'](_0x176be9),_0x176be9=this['_markMismatchedRemovedTags'](_0x176be9),_0x176be9=this['_removeUnsupportedChanges'](_0x176be9);const {root:_0x92f605,changes:_0x379658}=this['_makeModelFromTape'](_0x176be9,_0x32d404,_0x521f96);_0x3f717a['model'][_0x521f96]=_0x92f605;const _0x13eb03=_0x51ee32['get'](_0x521f96);if(_0x13eb03){const _0x3103e2=_0x32d404['get'](_0x13eb03['userId']),_0x473ee3=new r({'author':_0x3103e2,'type':_0x13eb03['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x521f96});_0x379658['unshift'](_0x473ee3),_0x3f717a['attributes'][_0x521f96]['revisionHistoryAttachChange']=_0x473ee3['id'];}_0x3f717a['changes']=_0x3f717a['changes']['concat'](_0x379658);}return _0x3f717a;}['_markMarkers'](_0x3e88ad,_0x586d74){for(let _0x446dd5=0x0;_0x446dd5<_0x3e88ad['length'];_0x446dd5++)for(const [_0x38971f,_0x4c638d]of _0x586d74)_0x4c638d['start']['isEqual'](_0x3e88ad[_0x446dd5]['previousPosition'])&&_0x3e88ad[_0x446dd5]['markersStart']['push'](_0x38971f),_0x4c638d['end']['isEqual'](_0x3e88ad[_0x446dd5]['nextPosition'])&&_0x3e88ad[_0x446dd5]['markersEnd']['push'](_0x38971f);}['_joinTapes'](_0x4775bc,_0x1765a7){let _0x18aaf7=[],_0x228a7a=0x0,_0x24f0c5=0x0;for(;_0x228a7a<_0x4775bc['length']||_0x24f0c5<_0x1765a7['length'];){const _0x2a0a72=_0x4775bc[_0x228a7a]||{},_0xa11b42=_0x1765a7[_0x24f0c5]||{};if(_0x2a0a72['id']==_0xa11b42['id'])_0x228a7a++,_0x24f0c5++,_0x18aaf7['push'](_0x2a0a72);else{if(_0xa11b42['isRemoved']&&_0x2a0a72['isAdded']){const {commonTape:_0x63a2c1,iEnd:_0x4cbb39,jEnd:_0x5bc752}=this['_threeWayMerge'](_0x4775bc,_0x228a7a,_0x1765a7,_0x24f0c5);_0x18aaf7=_0x18aaf7['concat'](_0x63a2c1),_0x228a7a=_0x4cbb39,_0x24f0c5=_0x5bc752;}else _0xa11b42['isRemoved']?(_0x24f0c5++,_0x18aaf7['push'](_0xa11b42)):(_0x228a7a++,_0x18aaf7['push'](_0x2a0a72));}}return _0x18aaf7;}['_markSuggestions'](_0x5dc4b4,_0x263ed2){const _0x39a4f6=[];for(let _0x40f18b=0x0;_0x40f18b<_0x5dc4b4['length'];_0x40f18b++){for(let _0x9e8ba=0x0;_0x9e8ba<_0x5dc4b4[_0x40f18b]['markersStart']['length'];_0x9e8ba++){const _0x486b85=_0x5dc4b4[_0x40f18b]['markersStart'][_0x9e8ba];if(!_0x263ed2['has'](_0x486b85))continue;const {group:_0x1123aa,type:_0x537c26,authorId:_0x245089}=_0x1c87ef(_0x486b85);'revision-suggestion'!=_0x1123aa||'insertion'!=_0x537c26&&'deletion'!=_0x537c26||(_0x39a4f6['unshift']({'type':_0x537c26,'name':_0x486b85,'userId':_0x245089}),_0x5dc4b4[_0x40f18b]['markersStart']['splice'](_0x9e8ba,0x1),_0x9e8ba--);}_0x1ccaef(_0x5dc4b4[_0x40f18b]);for(let _0x4c8083=0x0;_0x4c8083<_0x5dc4b4[_0x40f18b]['markersEnd']['length'];_0x4c8083++){const _0x45d7a6=_0x5dc4b4[_0x40f18b]['markersEnd'][_0x4c8083];if(!_0x263ed2['has'](_0x45d7a6))continue;const {group:_0x4280d8,type:_0x97279}=_0x1c87ef(_0x45d7a6);if('revision-suggestion'!=_0x4280d8||'insertion'!=_0x97279&&'deletion'!=_0x97279)continue;_0x5dc4b4[_0x40f18b]['markersEnd']['splice'](_0x4c8083,0x1),_0x4c8083--;const _0x2bc7dc=_0x39a4f6['findIndex'](_0x2916af=>_0x2916af['name']==_0x45d7a6);_0x2bc7dc>-0x1&&_0x39a4f6['splice'](_0x2bc7dc,0x1);}}function _0x1c87ef(_0x22cd5a){const _0x5d515a=_0x22cd5a['split'](':');return{'group':_0x5d515a[0x0],'type':_0x5d515a[0x1],'subType':_0x5d515a['length']>=0x5?_0x5d515a[0x2]:null,'id':_0x5d515a['length']<0x5?_0x5d515a[0x2]:_0x5d515a[0x3],'authorId':_0x5d515a['length']<0x5?_0x5d515a[0x3]:_0x5d515a[0x4],'markerCount':0x6==_0x5d515a['length']?_0x5d515a[0x5]:null};}function _0x1ccaef(_0x220d1f){for(let _0x5f3c27=0x0;_0x5f3c27<_0x39a4f6['length'];_0x5f3c27++){if(_0x220d1f['isAdded']&&'insertion'==_0x39a4f6[_0x5f3c27]['type'])return _0x220d1f['isAddSuggestion']=_0x39a4f6[_0x5f3c27],void delete _0x220d1f['isAdded'];if(!_0x220d1f['isAdded']&&!_0x220d1f['isRemoved']&&'deletion'==_0x39a4f6[_0x5f3c27]['type'])return void(_0x220d1f['isRemoveSuggestion']=_0x39a4f6[_0x5f3c27]);}}}['_setDistance'](_0xc27475,_0x4e3b6b){let _0x12f739=0x0,_0x1a632f=!0x1;const _0x541736=new Map();for(const _0x56937c of _0xc27475)_0x56937c[_0x4e3b6b]?_0x1a632f&&(_0x12f739++,_0x1a632f=!0x1):(_0x12f739++,_0x1a632f=!0x0),_0x541736['set'](_0x56937c['id'],_0x12f739);for(let _0x42d340=0x0;_0x42d340<_0xc27475['length'];_0x42d340++){if('isRemoved'==_0x4e3b6b&&_0xc27475[_0x42d340]['isAdded']||'isAdded'==_0x4e3b6b&&_0xc27475[_0x42d340]['isRemoved'])continue;if('text'==_0xc27475[_0x42d340]['type']){_0xc27475[_0x42d340]['distance']=0x0;continue;}const _0x291c04=_0x541736['get'](_0xc27475[_0x42d340]['pairId']),_0x3f6891=_0x541736['get'](_0xc27475[_0x42d340]['id']);_0xc27475[_0x42d340]['distance']=_0x291c04-_0x3f6891;}}['_getRevisionsRange'](_0x240444,_0x12cac9,_0x55d8a0=!0x1){const _0x230547=[];let _0x5dddf4=this['repository']['getIndex'](_0x240444),_0x231155=this['repository']['getIndex'](_0x12cac9);for(-0x1==_0x231155&&(_0x231155=this['repository']['_revisions']['length'],_0x55d8a0=!0x1);_0x5dddf4<_0x231155;)_0x230547['push'](this['repository']['getRevision'](_0x5dddf4)),_0x5dddf4++;return _0x55d8a0&&_0x230547['push'](this['repository']['getRevision'](_0x5dddf4)),_0x230547;}['_threeWayMerge'](_0xbffa90,_0x3f52a9,_0x318ca4,_0x276843){const _0x5ca96e=this['editor']['model']['schema'];let _0xb8f28e=_0x3f52a9;for(;_0xbffa90[_0xb8f28e]&&_0xbffa90[_0xb8f28e]['isAdded'];)_0xb8f28e++;let _0x2c46d1=_0x276843;for(;_0x318ca4[_0x2c46d1]&&_0x318ca4[_0x2c46d1]['isRemoved'];)_0x2c46d1++;_0x1b9c75(_0xbffa90,_0x3f52a9,_0xb8f28e),_0x1b9c75(_0x318ca4,_0x276843,_0x2c46d1);const _0x45fa2d=_0x318ca4['slice'](_0x276843,_0x2c46d1)['concat'](_0xbffa90['slice'](_0x3f52a9,_0xb8f28e));return _0x45fa2d['sort']((_0x549af9,_0x29786f)=>_0x549af9['side']!=_0x29786f['side']?_0x549af9['side']-_0x29786f['side']:_0x549af9['level']!=_0x29786f['level']?_0x549af9['level']-_0x29786f['level']:_0x549af9['distance']!=_0x29786f['distance']?_0x29786f['distance']-_0x549af9['distance']:!!_0x549af9['isAdded']!=!!_0x29786f['isAdded']?-0x1==_0x549af9['side']||0x0==_0x549af9['side']?_0x549af9['isAdded']?-0x1:0x1:_0x549af9['isAdded']?0x1:-0x1:_0x549af9['index']-_0x29786f['index']),{'commonTape':_0x45fa2d,'iEnd':_0xb8f28e,'jEnd':_0x2c46d1};function _0x1b9c75(_0x14a5db,_0x224ddf,_0x10ca95){let _0x56a85b=-0x1,_0x257ceb=Number['POSITIVE_INFINITY'],_0x4d0376=!0x0;for(let _0xa8eb5d=_0x224ddf;_0xa8eb5d<_0x10ca95;_0xa8eb5d++)if(_0x5ca96e['isInline'](_0x14a5db[_0xa8eb5d]['item'])||(_0x4d0376=!0x1),_0x14a5db[_0xa8eb5d]['item']['startIndex']<_0x224ddf&&(_0x56a85b=_0xa8eb5d),_0x14a5db[_0xa8eb5d]['item']['endIndex']>=_0x10ca95){_0x257ceb=_0xa8eb5d;break;}_0x4d0376&&(_0x56a85b=_0x10ca95-0x1);for(let _0xe0aa2a=_0x224ddf;_0xe0aa2a<_0x10ca95;_0xe0aa2a++)_0x14a5db[_0xe0aa2a]['side']=_0xe0aa2a<=_0x56a85b?-0x1:_0xe0aa2a<_0x257ceb?0x0:0x1,_0x14a5db[_0xe0aa2a]['index']=_0xe0aa2a;let _0xdb9fc2=0x0;for(let _0x35f1f8=_0x224ddf;_0x35f1f8<=_0x56a85b;_0x35f1f8++)0x0==_0x14a5db[_0x35f1f8]['distance']?_0x14a5db[_0x35f1f8]['level']=_0xdb9fc2:(_0xdb9fc2++,_0x14a5db[_0x35f1f8]['level']=_0xdb9fc2,_0xdb9fc2++);for(let _0x1f7840=_0x224ddf;_0x1f7840<_0x10ca95;_0x1f7840++)0x0==_0x14a5db[_0x1f7840]['side']&&(_0x14a5db[_0x1f7840]['level']=_0xdb9fc2);_0xdb9fc2=0x0;for(let _0x8bb581=_0x10ca95-0x1;_0x8bb581>=_0x257ceb;_0x8bb581--)0x0==_0x14a5db[_0x8bb581]['distance']?_0x14a5db[_0x8bb581]['level']=_0xdb9fc2:(_0xdb9fc2--,_0x14a5db[_0x8bb581]['level']=_0xdb9fc2,_0xdb9fc2--);}}['_fixObsoleteTags'](_0x20c87a){const _0x52c9ab=new Map(),_0x1e5635=this['editor']['model']['schema'];for(let _0xe4e697=0x1;_0xe4e697<_0x20c87a['length'];_0xe4e697++){let _0x442ae8,_0x39b072,_0x5336cf;const _0x3d2c57=_0x20c87a[_0xe4e697],_0x3d9e1b=_0x20c87a[_0xe4e697-0x1];if('text'==_0x3d2c57['type'])continue;if(_0x3d2c57['type']!=_0x3d9e1b['type'])continue;if(!_0x1e5635['isBlock'](_0x3d9e1b['item'])||_0x1e5635['isLimit'](_0x3d9e1b['item']))continue;if(!_0x1e5635['isBlock'](_0x3d2c57['item'])||_0x1e5635['isLimit'](_0x3d2c57['item']))continue;if((_0x20c87a[_0xe4e697]['isAdded']||_0x20c87a[_0xe4e697]['isAddSuggestion'])&&_0x20c87a[_0xe4e697-0x1]['isRemoved'])_0x442ae8=_0x20c87a[_0xe4e697],_0x39b072=_0x20c87a[_0xe4e697-0x1],_0x5336cf=_0xe4e697-0x1;else{if(!_0x20c87a[_0xe4e697]['isRemoved']||!_0x20c87a[_0xe4e697-0x1]['isAdded']&&!_0x20c87a[_0xe4e697-0x1]['isAddSuggestion'])continue;_0x442ae8=_0x20c87a[_0xe4e697-0x1],_0x39b072=_0x20c87a[_0xe4e697],_0x5336cf=_0xe4e697;}const _0x31e38c=_0x442ae8['level']==_0x39b072['level'],_0x166b64=Math['abs'](_0x442ae8['level'])<Math['abs'](_0x39b072['level'])&&0x0==_0x39b072['distance'];(_0x31e38c||_0x166b64)&&(_0x52c9ab['set'](_0x39b072['id'],_0x442ae8['id']),_0x20c87a['splice'](_0x5336cf,0x1),_0xe4e697--,_0x442ae8['isAdded']=!0x1);}for(let _0x242f04=0x0;_0x242f04<_0x20c87a['length'];_0x242f04++)_0x52c9ab['has'](_0x20c87a[_0x242f04]['pairId'])&&(_0x20c87a[_0x242f04]['pairId']=_0x52c9ab['get'](_0x20c87a[_0x242f04]['pairId']));}['_removeMissingPairs'](_0x2af9d7){const _0x21423f=new Set(_0x2af9d7['map'](_0x292f9a=>_0x292f9a['id']));for(let _0x1545d3=0x0;_0x1545d3<_0x2af9d7['length'];_0x1545d3++)_0x21423f['has'](_0x2af9d7[_0x1545d3]['pairId'])||0x0==_0x2af9d7[_0x1545d3]['distance']||(_0x2af9d7[_0x1545d3]['isIncorrect']=!0x0);return _0x2af9d7['filter'](_0x5eddb7=>!_0x5eddb7['isIncorrect']);}['_markMismatchedRemovedTags'](_0x531ffd){const _0xb73e62=new Set();for(let _0x9f5dea=0x0;_0x9f5dea<_0x531ffd['length'];_0x9f5dea++){if(_0xb73e62['has'](_0x531ffd[_0x9f5dea]['id'])&&_0x531ffd[_0x9f5dea]['isRemoved']&&(_0x531ffd[_0x9f5dea]['isIncorrect']=!0x0),_0x531ffd[_0x9f5dea]['isIncorrect'])continue;if(0x0==_0x531ffd[_0x9f5dea]['distance'])continue;if('elementStart'!=_0x531ffd[_0x9f5dea]['type'])continue;if(null==_0x531ffd[_0x9f5dea]['pairId'])continue;let _0x2470ed=_0x9f5dea+0x1,_0x623f84=0x0;for(;_0x531ffd[_0x2470ed]['id']!=_0x531ffd[_0x9f5dea]['pairId'];)'elementStart'==_0x531ffd[_0x2470ed]['type']?_0x623f84++:'elementEnd'==_0x531ffd[_0x2470ed]['type']&&_0x623f84--,_0x2470ed++;if(0x0!=_0x623f84){if(_0x531ffd[_0x9f5dea]['isRemoved'])_0x531ffd[_0x9f5dea]['isIncorrect']=!0x0;else{for(;_0x2470ed!=_0x9f5dea;)_0x531ffd[_0x2470ed]['isRemoved']&&0x0!=_0x531ffd[_0x2470ed]['distance']&&(_0x531ffd[_0x2470ed]['isIncorrect']=!0x0,_0xb73e62['add'](_0x531ffd[_0x2470ed]['pairId'])),_0x2470ed--;}}}return _0x531ffd['filter'](_0x3fe1ae=>!_0x3fe1ae['isIncorrect']);}['_removeUnsupportedChanges'](_0x4237ef){const _0x2a40bd=this['editor']['model']['schema'];for(let _0x190278=0x0;_0x190278<_0x4237ef['length'];_0x190278++){if(!(_0x4237ef[_0x190278]['isAdded']||_0x4237ef[_0x190278]['isAddSuggestion']||_0x4237ef[_0x190278]['isRemoved']||_0x4237ef[_0x190278]['isRemoveSuggestion']))continue;if(0x0==_0x4237ef[_0x190278]['distance'])continue;const _0x2e2984=_0x4237ef[_0x190278]['item'];_0x2a40bd['isBlock'](_0x2e2984)||_0x2a40bd['isLimit'](_0x2e2984)||(_0x4237ef[_0x190278]['isAdded']&&delete _0x4237ef[_0x190278]['isAdded'],_0x4237ef[_0x190278]['isAddSuggestion']&&delete _0x4237ef[_0x190278]['isAddSuggestion'],_0x4237ef[_0x190278]['isRemoveSuggestion']&&delete _0x4237ef[_0x190278]['isRemoveSuggestion'],_0x4237ef[_0x190278]['isRemoved']&&(_0x4237ef[_0x190278]['isIncorrect']=!0x0));}return _0x4237ef['filter'](_0x26a151=>!_0x26a151['isIncorrect']);}['_makeModelFromTape'](_0x581b20,_0x1f6959,_0x31584c){const _0x1d790e=new mt(),_0x2b7082=[],_0x4887d2=new Map(),_0x8d3b46=this['editor']['model'],_0x4d805d=_0x8d3b46['schema'],_0x56c3d4=[_0x1d790e],_0x6eab93={},_0x29c6ca={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x58397b=null;const _0x46d309=[0x0];for(let _0x240afa=0x0;_0x240afa<_0x581b20['length'];_0x240afa++)if('elementStart'===_0x581b20[_0x240afa]['type']){_0x581b20[_0x240afa]['previousPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309);const _0xa828ae=new ft(_0x581b20[_0x240afa]['item']['name'],_0x581b20[_0x240afa]['item']['getAttributes']());_0x56c3d4[0x0]['_appendChild'](_0xa828ae),_0x46d309['push'](0x0),_0x56c3d4['unshift'](_0xa828ae),_0x581b20[_0x240afa]['nextPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309);}else'elementEnd'===_0x581b20[_0x240afa]['type']?(_0x56c3d4['shift'](),_0x581b20[_0x240afa]['previousPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309),_0x46d309['pop'](),_0x46d309[_0x46d309['length']-0x1]++,_0x581b20[_0x240afa]['nextPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309)):(_0x581b20[_0x240afa]['previousPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309),_0x58397b?_0x58397b['_data']+=_0x581b20[_0x240afa]['item']['data']:_0x58397b=new wt(_0x581b20[_0x240afa]['item']['data'],_0x581b20[_0x240afa]['item']['getAttributes']()),_0x581b20[_0x240afa+0x1]&&'text'===_0x581b20[_0x240afa+0x1]['type']&&_0x370dc3(_0x58397b,_0x581b20[_0x240afa+0x1]['item'])||(_0x56c3d4[0x0]['_appendChild'](_0x58397b),_0x58397b=null),_0x46d309[_0x46d309['length']-0x1]+=_0x581b20[_0x240afa]['item']['offsetSize'],_0x581b20[_0x240afa]['nextPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309));for(let _0x51e4f8=0x0;_0x51e4f8<_0x581b20['length'];_0x51e4f8++){const _0x80e972=_0x581b20[_0x51e4f8]['previousPosition'],_0x126462=_0x581b20[_0x51e4f8]['nextPosition'];for(const _0x5bb9fa of _0x581b20[_0x51e4f8]['markersStart'])_0x4887d2['set'](_0x5bb9fa,{'start':_0x80e972,'end':null});_0x1eeccb('isRemoveSuggestion',_0x51e4f8,_0x80e972,_0x126462),_0x1eeccb('isAddSuggestion',_0x51e4f8,_0x80e972,_0x126462),_0x1eeccb('isRemoved',_0x51e4f8,_0x80e972,_0x126462),_0x1eeccb('isAdded',_0x51e4f8,_0x80e972,_0x126462);for(const _0x34c6b5 of _0x581b20[_0x51e4f8]['markersEnd']){_0x4887d2['get'](_0x34c6b5)['end']=_0x126462;}}for(const [_0x2cb2e8,_0x41b6e1]of _0x4887d2){const _0x308c82=this['editor']['model']['createRange'](_0x41b6e1['start'],_0x41b6e1['end']);_0x1d790e['markers']['set'](_0x2cb2e8,_0x308c82);}return _0x2b7082['sort']((_0x477102,_0x1b02d9)=>{const _0x49bfb8=_0x1d790e['markers']['get']('revision:'+_0x477102['id']),_0x3ad560=_0x1d790e['markers']['get']('revision:'+_0x1b02d9['id']);return _0x49bfb8['start']['isBefore'](_0x3ad560['start'])?-0x1:_0x49bfb8['start']['isAfter'](_0x3ad560['start'])?0x1:_0x49bfb8['end']['isBefore'](_0x3ad560['end'])?-0x1:_0x49bfb8['end']['isAfter'](_0x3ad560['end'])?0x1:'add'===_0x477102['type']?-0x1:0x1;}),{'root':_0x1d790e,'changes':_0x2b7082};function _0x1eeccb(_0x426391,_0x467df1,_0x105232,_0x32129e){const _0xfad31f=!!_0x581b20[_0x467df1][_0x426391],_0x15ad28=_0xfad31f?_0x581b20[_0x467df1][_0x426391]['userId']:null,_0x5a7c78=_0x467df1===_0x581b20['length']-0x1,_0x2b19ea=_0x29c6ca[_0x426391][0x0],_0x48f6c6=_0x4d805d['isObject'](_0x581b20[_0x467df1]['item']);!_0x6eab93[_0x426391]&&_0xfad31f?_0x6eab93[_0x426391]={'start':_0x105232,'tapeItem':_0x581b20[_0x467df1],'userId':_0x15ad28,'type':_0x426391}:_0x6eab93[_0x426391]&&!_0xfad31f?(_0x6eab93[_0x426391]['end']=_0x105232,_0x52357e(_0x6eab93[_0x426391]),_0x6eab93[_0x426391]=null):_0x6eab93[_0x426391]&&_0xfad31f&&_0x6eab93[_0x426391]['userId']!==_0x15ad28&&(_0x6eab93[_0x426391]['end']=_0x105232,_0x2b19ea&&_0x2b19ea['userId']===_0x6eab93[_0x426391]['userId']||_0x52357e(_0x6eab93[_0x426391]),_0x6eab93[_0x426391]={'start':_0x105232,'tapeItem':_0x581b20[_0x467df1],'userId':_0x15ad28,'type':_0x426391}),_0x6eab93[_0x426391]&&_0x48f6c6&&('elementStart'!==_0x581b20[_0x467df1]['type']||_0x2b19ea&&_0x2b19ea['userId']===_0x15ad28||_0x29c6ca[_0x426391]['unshift']({'userId':_0x15ad28,'object':_0x581b20[_0x467df1]['item'],'change':_0x6eab93[_0x426391]}),'elementEnd'===_0x581b20[_0x467df1]['type']&&_0x2b19ea&&_0x2b19ea['object']===_0x581b20[_0x467df1]['item']&&(_0x29c6ca[_0x426391]['shift'](),_0x6eab93[_0x426391]=_0x2b19ea['change'])),_0x6eab93[_0x426391]&&_0x5a7c78&&(_0x6eab93[_0x426391]['end']=_0x32129e,_0x52357e(_0x6eab93[_0x426391]),_0x6eab93[_0x426391]=null);}function _0x52357e({start:_0x5c14bd,end:_0x1b580f,tapeItem:_0x54fefc,userId:_0x4a02eb,type:_0x53c49b}){const _0xd108c9=_0x54fefc['item'],_0x1ba816=_0x8d3b46['schema']['isBlock'](_0xd108c9)&&!_0x8d3b46['schema']['isLimit'](_0xd108c9),_0x3b63a2=_0x5c14bd['nodeAfter']==_0x1b580f['parent']&&_0x1b580f['isAtStart'];if(_0x1ba816&&_0x3b63a2)return;const _0x4b1cb1=_0x8d3b46['createRange'](_0x5c14bd,_0x1b580f),_0x56f82b=_0x1f6959['get'](_0x4a02eb),_0x54c1fa=new r({'author':_0x56f82b,'type':'isAdded'==_0x53c49b||'isAddSuggestion'==_0x53c49b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x53c49b||'isRemoveSuggestion'==_0x53c49b},'createdAt':new Date(),'rootName':_0x31584c});_0x2b7082['push'](_0x54c1fa),_0x1d790e['markers']['set']('revision:'+_0x54c1fa['id'],_0x4b1cb1);}function _0x370dc3(_0x2e7008,_0x2972d5){const _0xe008d7=_0x2e7008['getAttributes'](),_0x589d1c=_0x2972d5['getAttributes']();for(const _0x5cced3 of _0xe008d7){if(_0x5cced3[0x1]!==_0x2972d5['getAttribute'](_0x5cced3[0x0]))return!0x1;_0x589d1c['next']();}return _0x589d1c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3a9007=>{const _0x3b592a=_0x3a9007['markerName']['split'](':')[0x1],_0x254be5=this['_getChangeFromId'](_0x3b592a);if(!_0x254be5)return null;const _0x11e7fe='add'==_0x254be5['type']?'insertion':'deletion',_0x23eaf9=['ck-suggestion-marker','ck-suggestion-marker-'+_0x11e7fe];return _0x254be5['data']['isSuggestion']&&_0x23eaf9['push']('ck-suggestion-marker-'+_0x11e7fe+'-new'),this['activeChange']==_0x254be5&&_0x23eaf9['push']('ck-suggestion-marker--active'),{'classes':_0x23eaf9,'attributes':{'data-change-id':_0x3b592a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5d5278=>{_0x5d5278['on']('element:pre',(_0x203473,_0xa5da87,_0x391543)=>{const _0x3958c2=_0xa5da87['viewItem']['getChild'](0x0);if(!_0x3958c2||!_0x3958c2['is']('element','code'))return;if(!_0x391543['consumable']['consume'](_0x3958c2,{'attributes':['vid_start','vid_end']}))return;const _0x1212d3=_0xa5da87['modelRange']['start']['nodeAfter'];_0x391543['writer']['setAttribute']('vid_start',_0x3958c2['getAttribute']('vid_start'),_0x1212d3),_0x391543['writer']['setAttribute']('vid_end',_0x3958c2['getAttribute']('vid_end'),_0x1212d3);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5112bb=>{_0x5112bb['on']('element',(_0x5caf3f,_0x2e4391,_0x5533fc)=>{if(!_0x5533fc['consumable']['consume'](_0x2e4391['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2e4391['modelRange']['isCollapsed'])return;const _0x516353=_0x2e4391['modelRange']['start']['nodeAfter'];_0x516353['hasAttribute']('vid_start')||_0x516353['hasAttribute']('vid')||(_0x5533fc['writer']['setAttribute']('vid_start',_0x2e4391['viewItem']['getAttribute']('vid_start'),_0x516353),_0x5533fc['writer']['setAttribute']('vid_end',_0x2e4391['viewItem']['getAttribute']('vid_end'),_0x516353));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3434b4=>_0x3434b4['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x16a027,[,_0x6093b5])=>{['vid_start','vid_end','vid']['includes'](_0x6093b5)&&(_0x16a027['return']=!0x0,_0x16a027['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2b262a=>{_0x2b262a['on']('attribute:vid',(_0x1b2ef6,_0x4ec023,_0x486879)=>{if('\x20'!=_0x4ec023['item']['data']||_0x4ec023['item']['parent']['maxOffset']>0x1)return;if(!_0x486879['consumable']['consume'](_0x4ec023['item'],_0x1b2ef6['name']))return;const _0x2ab53a=_0x486879['writer'],_0x263609=_0x486879['mapper']['toViewRange'](_0x4ec023['range']);_0x2ab53a['wrap'](_0x263609,_0x2ab53a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2f064a){const _0xd61c6f=_0x2f064a['plugins']['get']('RevisionViewer');return(_0x40b7a2,_0x4ea769,_0x32e56d)=>{const _0x264765=_0x4ea769['markerName']['split'](':')[0x1],_0x1fbf57=_0xd61c6f['_getChangeFromId'](_0x264765);if(!_0x1fbf57)return null;const _0x8e4544='add'==_0x1fbf57['type']?'split':'merge';if(!_0x32e56d['consumable']['test'](_0x4ea769['markerRange'],_0x40b7a2['name']))return;const _0x22eb50=_0x4ea769['markerRange']['getWalker'](),_0xd0ea50=_0x4ea769['markerRange']['start'],_0x389c80=_0x2f064a['model']['schema'];let _0x186b47=null,_0x473b88=null,_0x43d0=!0x1,_0xad8a9=!0x1;for(const _0x13b599 of _0x22eb50){const _0x4facbf=_0x13b599['item'];_0x43d0=_0x43d0||_0x389c80['isContent'](_0x4facbf);const _0x11744c=_0x32e56d['mapper']['toViewElement'](_0x4facbf);if(_0x11744c&&_0x11744c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x13b599['type']&&(_0x389c80['isBlock'](_0x4facbf)&&!_0x389c80['isLimit'](_0x4facbf)&&(_0x4facbf['nextSibling']||_0xd0ea50['isAtEnd']?_0x186b47&&_0x186b47['parent']==_0x4facbf||(_0x186b47=_0x4facbf,_0x2a0b1c(_0x13b599['previousPosition']),_0xad8a9=!0x0):_0x473b88=_0x473b88||_0x13b599['previousPosition']));}function _0x2a0b1c(_0x55fca5){const _0x1d14ee=_0x32e56d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x8e4544}),_0x9d3c3e=_0x32e56d['mapper']['toViewPosition'](_0x55fca5);_0x1fbf57['data']['isSuggestion']&&_0x32e56d['writer']['addClass']('ck-suggestion-marker-'+_0x8e4544+'-new',_0x1d14ee),_0xd61c6f['activeChange']==_0x1fbf57&&_0x32e56d['writer']['addClass']('ck-suggestion-marker--active',_0x1d14ee),_0x32e56d['writer']['insert'](_0x9d3c3e,_0x1d14ee),_0x32e56d['mapper']['bindElementToMarker'](_0x1d14ee,_0x4ea769['markerName']);}_0x43d0||_0xad8a9||!_0x473b88||_0x2a0b1c(_0x473b88);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x33e9c7,_0x1ff832,_0x6e964e)=>{const _0x60390=_0x6e964e['mapper']['markerNameToElements'](_0x1ff832['markerName']);if(_0x60390){for(const _0x25764e of _0x60390)(_0x25764e['hasClass']('ck-suggestion-marker-split')||_0x25764e['hasClass']('ck-suggestion-marker-merge'))&&(_0x6e964e['mapper']['unbindElementFromMarkerName'](_0x25764e,_0x1ff832['markerName']),_0x6e964e['writer']['remove'](_0x25764e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xd271c6,_0x1858c4,_0x53465e)=>{const _0x237c7a=_0x1858c4['markerName']['split'](':')[0x1],_0x19eec7=this['_getChangeFromId'](_0x237c7a);if(!_0x19eec7)return null;const _0x58fbb6='add'==_0x19eec7['type']?'split':'merge';if(_0x53465e['consumable']['test'](_0x1858c4['markerRange'],_0xd271c6['name']))for(const _0x19f2e1 of _0x1858c4['markerRange']['getItems']()){if(!_0x19f2e1['is']('element','softBreak'))continue;const _0x1c52ed=_0x53465e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58fbb6}),_0x5b3801=_0x53465e['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x19f2e1));_0x19eec7['data']['isSuggestion']&&_0x53465e['writer']['addClass']('ck-suggestion-marker-'+_0x58fbb6+'-new',_0x1c52ed),this['activeChange']==_0x19eec7&&_0x53465e['writer']['addClass']('ck-suggestion-marker--active',_0x1c52ed),_0x53465e['writer']['insert'](_0x5b3801,_0x1c52ed),_0x53465e['mapper']['bindElementToMarker'](_0x1c52ed,_0x1858c4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3642bd=>{for(const _0x1bf9a2 of this['editor']['model']['document']['getRootNames']()){const _0x30970f=this['editor']['model']['document']['getRoot'](_0x1bf9a2),_0x3a27e4=this['editor']['editing']['view']['document']['getRoot'](_0x1bf9a2);if(_0x3a27e4){const _0x39ebbb=_0x30970f['getAttribute']('revisionHistoryAttachChange');if(_0x3642bd['removeAttribute']('data-change-id',_0x3a27e4),_0x3642bd['removeClass']('ck-revision-history-root-add',_0x3a27e4),_0x3642bd['removeClass']('ck-revision-history-root-remove',_0x3a27e4),_0x3642bd['removeClass']('ck-revision-history-root--active',_0x3a27e4),_0x39ebbb){const _0x5a12ef=this['_getChangeFromId'](_0x39ebbb);if(!_0x5a12ef)return null;_0x3642bd['setAttribute']('data-change-id',_0x39ebbb,_0x3a27e4),_0x3642bd['addClass']('ck-revision-history-root-'+_0x5a12ef['type'],_0x3a27e4),this['activeChange']==_0x5a12ef&&_0x3642bd['addClass']('ck-revision-history-root--active',_0x3a27e4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x116fca=>'revision-comment:'+_0x116fca,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x90113b=>'revision-suggestion:'+_0x90113b,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1d5f12=>({'name':'suggestion:'+_0x1d5f12,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x46495b=>{const _0x2ff216=_0x46495b['markerName']['split'](':')[0x1];return'insertion'!=_0x2ff216&&'deletion'!=_0x2ff216?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2ff216]};}}),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',(_0x183625,_0x4afe16,_0x1913fc)=>{const _0x38cc5b=_0x1913fc['mapper']['markerNameToElements'](_0x4afe16['markerName']);if(_0x38cc5b){for(const _0x32bb0a of _0x38cc5b)_0x32bb0a['is']('uiElement')&&(_0x1913fc['mapper']['unbindElementFromMarkerName'](_0x32bb0a,_0x4afe16['markerName']),_0x1913fc['writer']['remove'](_0x32bb0a));}},{'priority':'high'});}['_getChangeFromId'](_0xe981dc){return this['_changeIdToChange']['get'](_0xe981dc);}['_getViewForChange'](_0x3705ba){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3705ba),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x41b811,_0x55efa9,_0x5d4f1f,_0x397617)=>{_0x397617&&this['_balloon']['remove'](_0x397617),_0x5d4f1f&&(this['_balloon']['add']({'view':_0x5d4f1f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x908611=this['editor']['editing'],_0x54f46e=this['_getChangeFromId'](_0x5d4f1f['changeId']);let _0x2a0040;if(_0x54f46e['data']['isOnRoot']){const _0x15fafa=_0x908611['view']['getDomRoot'](_0x54f46e['rootName']);_0x2a0040=Array['from'](_0x15fafa['getClientRects']());}else{const _0x16850e=this['editor']['model']['markers']['get']('revision:'+_0x5d4f1f['changeId']);_0x2a0040=Array['from'](_0x908611['mapper']['markerNameToElements'](_0x16850e['name']))['map'](_0x432bf7=>_0x908611['view']['domConverter']['mapViewToDom'](_0x432bf7))['map'](_0xbce470=>Array['from'](_0xbce470['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2a0040[0x0];return _0x2a0040['find'](_0x2e3e23=>_0x2e3e23['top']-0x3<=this['_activeViewTarget']['y']&&_0x2e3e23['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2e3e23['left']-0x3<=this['_activeViewTarget']['x']&&_0x2e3e23['right']+0x3>=this['_activeViewTarget']['x'])||_0x2a0040[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5ba897,_0x5026c8,_0x3f93fd,_0x5d6595)=>{this['activeView']=_0x3f93fd?this['_getViewForChange'](_0x3f93fd):null,this['editor']['model']['change'](()=>{const _0x1c57c2=this['editor']['editing'];_0x5d6595&&(_0x5d6595['data']['isOnRoot']?_0x1c57c2['view']['change'](_0x4262dc=>{_0x4262dc['removeClass']('ck-revision-history-root--active',_0x1c57c2['view']['document']['getRoot'](_0x5d6595['rootName']));}):_0x1c57c2['reconvertMarker']('revision:'+_0x5d6595['id'])),_0x3f93fd&&(_0x3f93fd['data']['isOnRoot']?_0x1c57c2['view']['change'](_0x28bea5=>{_0x28bea5['addClass']('ck-revision-history-root--active',_0x1c57c2['view']['document']['getRoot'](_0x3f93fd['rootName']));}):_0x1c57c2['reconvertMarker']('revision:'+_0x3f93fd['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1191e5,_0x388f41)=>{if(this['activeChange'])return;const _0x503fab=this['_findChangeIdFromDomTarget'](_0x388f41['target']),_0x54749c=this['_changeIdToChange']['get'](_0x503fab);_0x54749c?(this['_activeViewTarget']={'x':_0x388f41['domEvent']['x'],'y':_0x388f41['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x54749c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2425cc,_0xb7f237)=>{const _0x414704=this['_findChangeIdFromDomTarget'](_0xb7f237['target']),_0x2c1983=this['_changeIdToChange']['get'](_0x414704);_0x2c1983?(this['_activeViewTarget']={'x':_0xb7f237['domEvent']['x'],'y':_0xb7f237['domEvent']['y']},_0x2c1983===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2c1983):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1d283a){do{const _0x174724=_0x1d283a['getAttribute']('data-change-id');if(_0x174724)return _0x174724;_0x1d283a=_0x1d283a['parent'];}while(_0x1d283a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x17ec69=>{for(const _0x48ae58 of this['editor']['model']['markers'])_0x17ec69['removeMarker'](_0x48ae58);});}}function Z(_0x2bd706,_0x56c603){return(_0x3c9622,_0xd4efcd,_0x4f3cb6)=>{if(!_0x4f3cb6['consumable']['test'](_0xd4efcd['markerRange'],_0x3c9622['name']))return;const _0x43eca2=_0xd4efcd['markerRange']['getWalker'](),_0x5ca82a=_0xd4efcd['markerRange']['start'],_0x31438e=_0x2bd706['model']['schema'];let _0x2d08f1=null,_0x5debd4=null,_0x2bfb97=!0x1,_0x3902ca=!0x1;for(const _0x49d145 of _0x43eca2){const _0x20b895=_0x49d145['item'];_0x2bfb97=_0x2bfb97||_0x31438e['isContent'](_0x20b895);const _0x123622=_0x4f3cb6['mapper']['toViewElement'](_0x20b895);if(_0x123622&&_0x123622['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x49d145['type']&&(_0x31438e['isBlock'](_0x20b895)&&!_0x31438e['isLimit'](_0x20b895)&&(_0x20b895['nextSibling']||_0x5ca82a['isAtEnd']?_0x2d08f1&&_0x2d08f1['parent']==_0x20b895||(_0x2d08f1=_0x20b895,_0x3b6a4e(_0x49d145['previousPosition']),_0x3902ca=!0x0):_0x5debd4=_0x5debd4||_0x49d145['previousPosition']));}function _0x3b6a4e(_0x5382dc){const _0x3ab21c=_0x4f3cb6['mapper']['toViewPosition'](_0x5382dc),_0x14a68b=_0x4f3cb6['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x56c603});_0x4f3cb6['writer']['insert'](_0x3ab21c,_0x14a68b),_0x4f3cb6['mapper']['bindElementToMarker'](_0x14a68b,_0xd4efcd['markerName']);}_0x2bfb97||_0x3902ca||!_0x5debd4||_0x3b6a4e(_0x5debd4);};}class _t extends _0x3ed6a1{constructor(_0x1b7f2a){super(_0x1b7f2a);const _0x39a2cc=_0x1b7f2a['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x39a2cc,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x39a2cc,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x41bb19=this['editor'],_0x11ca79=_0x41bb19['plugins']['get'](d),_0x2cc89d=_0x11ca79['isReady']?_0x11ca79['diff']['newRevisionId']:null;_0x41bb19['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2cc89d);}['refresh'](){const {isReady:_0x5d7648,isEnabled:_0x5bb09e,repository:_0x47c112,diff:_0x26ab7b}=this['editor']['plugins']['get'](d),_0xaf6280=_0x26ab7b&&_0x47c112['getLaterVisibleRevision'](_0x26ab7b['newRevisionId']);this['isEnabled']=_0x5d7648&&_0x5bb09e&&Boolean(_0xaf6280);}}class yt extends _0x3ed6a1{['_step'];constructor(_0x272856,{direction:_0x280f07}){super(_0x272856);const _0x3a6ece=_0x272856['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x280f07?0x1:-0x1,this['listenTo'](_0x3a6ece,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3a6ece,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3a6ece,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x44206a=this['editor'],_0x4f4bcf=_0x44206a['plugins']['get'](d),{isNavigationMode:_0x3a1c33,currentChangeNumber:_0x1a8d3d}=_0x4f4bcf;let _0x27a933;if(_0x4f4bcf['activeChange']=_0x3a1c33?_0x4f4bcf['diff']['changes']['get'](_0x1a8d3d+this['_step']):_0x4f4bcf['diff']['changes']['first'],_0x4f4bcf['activeChange']['data']['isOnRoot'])_0x27a933=_0x44206a['editing']['view']['getDomRoot'](_0x4f4bcf['activeChange']['rootName']);else{const _0x12b510=_0x44206a['model']['markers']['get']('revision:'+_0x4f4bcf['activeChange']['id']);_0x27a933=_0x59db08(_0x44206a['editing'],_0x12b510);}_0x503e76({'target':_0x27a933,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1d4631,currentChangeNumber:_0x2a0f6a,numberOfChanges:_0x4c390c,isReady:_0x4a174d,isEnabled:_0x439fb2}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x439fb2&&_0x4a174d&&_0x4c390c)&&(!_0x1d4631||(0x1===this['_step']?_0x2a0f6a<_0x4c390c-0x1:_0x2a0f6a>0x0));}}class _i extends _0xb5bc71{constructor(_0x49b967){super(_0x49b967);const _0x1d2774=this['bindTemplate'],_0x493d82=new _0xe84945(_0x49b967),_0x445ce5=new _0xe84945(_0x49b967);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',(_0x38f610,_0x32ca4c)=>_0x38f610&&_0x32ca4c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2c6a5a,_0x4f7425,_0x333e88,_0x1a58b1)=>{if(!_0x2c6a5a)return m(_0x49b967,'Loading...');if(!_0x333e88)return m(_0x49b967,'No\x20changes');const _0x568f18=m(_0x49b967,'NUMBER_OF_CHANGES',_0x333e88);return _0x1a58b1?m(_0x49b967,'X_OF_Y_CHANGES',[_0x4f7425+0x1,_0x333e88]):_0x568f18;}),_0x493d82['set']({'label':m(_0x49b967,'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'}),_0x445ce5['set']({'label':m(_0x49b967,'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'}),_0x493d82['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x445ce5['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x493d82['on']('execute',()=>this['fire']('execute','backward')),_0x445ce5['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',_0x1d2774['if']('_isStatusLabelVisible','ck-hidden',_0x56dd0d=>!_0x56dd0d)]},'children':[{'text':_0x1d2774['to']('isNavigationMode',_0x7bf4b2=>_0x7bf4b2?m(_0x49b967,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x49b967,'Total')+':\x20')}]},{'text':_0x1d2774['to']('_statusText')}]},new _0xb4512e(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x493d82,_0x445ce5]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x29e489{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x55706a=this['editor']['editing']['view'];_0x55706a['change'](_0xd44cdc=>{for(const _0x5a241e of _0x55706a['document']['roots'])_0xd44cdc['addClass'](ce,_0x5a241e);});}['hide'](){const _0x2d69a1=this['editor']['editing']['view'];_0x2d69a1['change'](_0x1cf533=>{for(const _0x5873b5 of _0x2d69a1['document']['roots'])_0x1cf533['removeClass'](ce,_0x5873b5);});}}class g extends _0x29e489{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x21fb78=this['editor'],_0x5adfb8=_0x21fb78['plugins']['get'](d),_0x2f3293=_0x21fb78['plugins']['get'](le);_0x21fb78['ui']['componentFactory']['add']('exitToEditing',_0x433072=>{const _0x2be49b=new _0xe84945(_0x433072);return _0x2be49b['set']({'label':m(_0x433072,'Back\x20to\x20editing'),'icon':_0x4a7550['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2be49b,'execute',()=>{_0x21fb78['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2be49b;}),_0x21fb78['ui']['componentFactory']['add']('restoreRevision',_0x240f22=>{const _0x1046c6=new _0xe84945(_0x240f22);return _0x1046c6['set']({'label':m(_0x240f22,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1046c6['bind']('isEnabled')['to'](_0x21fb78['commands']['get']('restoreRevision')),this['listenTo'](_0x1046c6,'execute',()=>_0x21fb78['execute']('restoreRevision')),_0x1046c6;}),_0x21fb78['ui']['componentFactory']['add']('changesNavigation',_0xfc25b5=>{const _0x3674af=new _i(_0xfc25b5),_0x34d652=_0x21fb78['commands']['get']('showPreviousChange'),_0x1e5461=_0x21fb78['commands']['get']('showNextChange');return _0x3674af['bind']('isBackwardNavigationEnabled')['to'](_0x34d652,'isEnabled'),_0x3674af['bind']('isForwardNavigationEnabled')['to'](_0x1e5461,'isEnabled'),_0x3674af['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5adfb8),this['listenTo'](_0x3674af,'execute',(_0x4172b6,_0x217001)=>{_0x21fb78['execute']('forward'===_0x217001?'showNextChange':'showPreviousChange');}),_0x3674af;}),_0x2f3293['show'](),_0x5adfb8['on']('change:isReady',(_0x49ee4b,_0x5a54d2,_0x24f72b)=>{_0x24f72b?_0x2f3293['hide']():_0x2f3293['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x388f32,_0x47cf3d){super(_0x388f32,_0x47cf3d);const _0x4ff2c7=this['bindTemplate'];this['set']({'label':m(_0x388f32,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x388f32,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4ff2c7['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 _0x41bf6a=this['fieldView']['element'];this['_tooltipString']=_0x41bf6a['scrollWidth']>_0x41bf6a['clientWidth']&&_0x41bf6a['value']||'';}}class ti extends _0xb5bc71{constructor(_0x24c52b,_0x506960,_0x33791a){super(_0x24c52b);const _0x24cfbf=new _0x29d439();_0x24cfbf['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 _0x4cd79f=['ck','ck-revision-history-sidebar__revision-author'];_0x33791a&&_0x4cd79f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5a89ff=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x24c52b,_0x33791a?'Revision\x20creator':'Revision\x20author')},'children':[_0x24cfbf,_0x506960['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4cd79f},'children':_0x5a89ff});}}function ni(_0x5f320f,_0x52c36b){const _0x5498e5=_0x5f320f['bindTemplate'],_0x3f8e93=_0x5f320f['locale'],_0x5f30e0=_0x417cf8(_0x3f8e93);_0x5f30e0['panelPosition']='sw';const _0x45541d=function(_0x5464f6,_0x2bd298){const _0x554c5b=function(_0x3fa2b4,_0xd8e510){const _0xe8cd6a=_0x3fa2b4['locale'],_0x28d8cb={'Compare\x20against\x20selected':m(_0xe8cd6a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0xe8cd6a,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0xe8cd6a,'Restore\x20this\x20revision')};return _0xd8e510['map'](_0x4da724=>{const _0x4a7e66=_0x28d8cb[_0x4da724['name']];return _0x4a7e66&&_0x4a7e66!==_0x4da724['name']&&(_0x4da724['name']=_0x4a7e66),_0x4da724;});}(_0x5464f6,_0x2bd298),_0x50b086=new _0x5238b7();for(const _0x2631f7 of _0x554c5b){const _0x5f1cbd={'type':'button','model':new to({'label':_0x2631f7['name'],'class':_0x2631f7['class'],'withText':!0x0,'role':'menuitem','_action':_0x2631f7['action']})};_0x5f1cbd['model']['bind']('isEnabled')['to'](_0x5464f6,'isActionsDropdownOpen',_0x57435f=>'function'!=typeof _0x2631f7['isEnabled']||(!_0x57435f||_0x2631f7['isEnabled'](_0x5464f6))),_0x50b086['add'](_0x5f1cbd);}return _0x50b086;}(_0x5f320f,_0x52c36b);return _0x5f320f['bind']('isActionsDropdownOpen')['to'](_0x5f30e0,'isOpen'),_0x5f30e0['buttonView']['set']({'label':m(_0x3f8e93,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4a7550['threeVerticalDots']}),_0x5f30e0['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5498e5['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5498e5['to'](_0x3acf7=>_0x3acf7['stopPropagation']())}}),_0x5f30e0['on']('execute',_0x383ba6=>{_0x5f320f['isReady']&&'function'==typeof _0x383ba6['source']['_action']&&_0x383ba6['source']['_action'](_0x5f320f);}),_0x1105a3(_0x5f30e0,_0x45541d,{'role':'menu'}),_0x5f30e0['listenTo'](_0x5f320f,'change:isActionsDropdownOpen',(_0x6ef7ed,_0x1d69ab,_0x473487)=>{if(_0x473487)for(const _0x233b18 of _0x5f30e0['listView']['items']){const _0x500dcf=_0x233b18['children']['first'],_0x18cf41=_0x52c36b['find'](_0x17d9ba=>_0x17d9ba['action']===_0x500dcf['_action'])['isVisible'];_0x233b18['isVisible']=void 0x0===_0x18cf41||_0x18cf41(_0x5f320f);}}),_0x5f30e0;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x324c5b(_0xb5bc71){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3583af,_0x720cc4,_0x499c88,_0x4827c5){super(_0x3583af);const _0x5884d5=this['bindTemplate'],_0x18aeae=function(_0x509c0e,_0x744a0b){const _0x39c6de=Array['from'](_0x744a0b['authors'])['filter'](_0x17a46e=>_0x17a46e!=_0x744a0b['creator']);return _0x744a0b['creator']&&_0x39c6de['unshift'](_0x744a0b['creator']),_0x39c6de['map'](_0x2af5a6=>new ti(_0x509c0e,_0x2af5a6,_0x2af5a6==_0x744a0b['creator']));}(_0x3583af,_0x720cc4);this['id']=_0x720cc4['id'],this['_revision']=_0x720cc4,this['_requireRevisionName']=_0x4827c5,this['bind']('name','createdAt')['to'](_0x720cc4),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x161058=>{return _0x10be80=_0x3583af['uiLanguage'],(_0x20ff6e=_0x161058)['toLocaleDateString'](_0x10be80,{'month':'long','day':'numeric'})+',\x20'+_0x20ff6e['toLocaleTimeString'](_0x10be80,{'hour':'numeric','minute':'numeric'});var _0x10be80,_0x20ff6e;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x3583af,_0x396089),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x897af2=>_0x897af2||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1495e5,_0x25b166)=>_0x1495e5&&_0x25b166),this['revisionActionsView']=_0x499c88&&_0x499c88['length']?ni(this,_0x499c88):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5884d5['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5884d5['if']('isEnabled','ck-disabled',_0x6753e5=>!_0x6753e5),_0x5884d5['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5884d5['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5884d5['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':_0x5884d5['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':_0x18aeae}]},this['revisionActionsView']],'on':{'click':_0x5884d5['to'](_0x4b06ff=>{_0x4b06ff['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x241934=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x241934,'change',()=>{this['_requireRevisionName']&&!_0x241934['value']||this['fire']('setName',{'id':this['id'],'name':_0x241934['value']}),_0x241934['value']||(_0x241934['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x1335e2,_0x41a73b){const _0x4b412e=_0x5eecc5['fromJSDate'](_0x1335e2)['setLocale'](_0x41a73b),_0x1ff041=_0x5eecc5['local'](),_0x33a2d4=_0x1ff041['minus']({'days':0x1})['startOf']('day');let _0x22de54,_0x2c7626;return _0x4b412e['hasSame'](_0x1ff041,'day')?(_0x22de54=_0x4b412e['startOf']('day')['toJSDate'](),_0x2c7626=_0x4b412e['toRelativeCalendar']()):_0x4b412e['hasSame'](_0x33a2d4,'day')?(_0x22de54=_0x33a2d4['toJSDate'](),_0x2c7626=_0x4b412e['toRelativeCalendar']()):_0x4b412e['hasSame'](_0x1ff041,'week')?(_0x22de54=_0x4b412e['startOf']('week')['toJSDate'](),_0x2c7626=_0x4b412e['weekdayLong']||''):_0x4b412e['hasSame'](_0x1ff041,'year')?(_0x22de54=_0x4b412e['startOf']('month')['toJSDate'](),_0x2c7626=_0x4b412e['monthLong']||''):(_0x22de54=_0x4b412e['startOf']('year')['toJSDate'](),_0x2c7626=String(_0x4b412e['year'])),{'startDate':_0x22de54,'localizedPeriodName':_0x2c7626};}class mi extends _0xb5bc71{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4c73ac,_0x434ba0,_0xe3f4ed,_0x490fb1){super(_0x4c73ac);const _0x344a07=di(_0x434ba0,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x434ba0,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xe3f4ed,this['_requireRevisionName']=_0x490fb1,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':_0x344a07}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x5d00f7){const _0x48334d=new ai(this['locale'],_0x5d00f7,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x48334d);}['removeRevision'](_0x290817){const _0x1b6f2a=this['revisionViews']['find'](_0x3db175=>_0x3db175['id']===_0x290817['id']);this['revisionViews']['remove'](_0x1b6f2a);}}class as extends _0xb5bc71{constructor(_0x5c2630){super(_0x5c2630);const _0x1f85d9=new _0x29d439();_0x1f85d9['content']=_0x4a7550['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1f85d9,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5c2630,'Revision\x20history')]}]});}}class ci extends _0xb5bc71{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x58bc25,_0x4014bc,_0x2b0edb,_0x3062ec){super(_0x58bc25);const _0x579793=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4014bc,this['_revisionActions']=_0x2b0edb,this['_requireRevisionName']=_0x3062ec,this['on']('select',(_0xdece38,_0x2272b5)=>{this['fire']('revisionSelected',_0x2272b5);}),this['on']('setName',(_0x5d208a,_0x16f89b)=>{this['fire']('revisionSetName',_0x16f89b);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x58bc25),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x579793['if']('isEnabled','ck-disabled',_0x5d4fef=>!_0x5d4fef)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5e3c79 of this['_revisions'])this['_addRevision'](_0x5e3c79);this['_revisions']['on']('add',(_0x246f69,_0x4dbb44)=>{this['_addRevision'](_0x4dbb44);}),this['_revisions']['on']('remove',(_0x49a998,_0x52728d)=>{this['_removeRevision'](_0x52728d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3af85=>_0x3af85['revisionViews']['map'](_0xc724cd=>_0xc724cd))['flat']();}['selectRevision'](_0x26d287){for(const _0x182f0f of this['revisionViews'])_0x26d287&&_0x26d287['id']===_0x182f0f['id']?_0x182f0f['select']():_0x182f0f['deselect']();}['highlightRevisions'](_0x1ad73d){for(const _0x420a23 of this['revisionViews'])_0x1ad73d['some'](({id:_0x2c9115})=>_0x2c9115===_0x420a23['id'])?_0x420a23['highlight']():_0x420a23['unhighlight']();}['_addRevision'](_0x363e1c){const _0x3a2c0d=di(_0x363e1c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2baff4=this['timePeriodViews']['get'](0x0);_0x2baff4&&_0x2baff4['startDate']['getTime']()===_0x3a2c0d['getTime']()||(_0x2baff4=new mi(this['locale'],_0x3a2c0d,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2baff4)),_0x2baff4['addRevision'](_0x363e1c);}['_removeRevision'](_0x4e7f4a){const _0x34dd9d=di(_0x4e7f4a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x34dd9d)['removeRevision'](_0x4e7f4a);}['_getTimePeriodViewByStartDate'](_0x280668){return this['timePeriodViews']['find'](_0x5d7743=>_0x5d7743['startDate']['getTime']()===_0x280668['getTime']());}}class w extends _0x29e489{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x5c03fd){super(_0x5c03fd),this['_revisionViewer']=_0x5c03fd['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x19ff86=this['_revisionsRepository']['_revisions'],_0x1b20a5=this['_createRevisionActions'](),_0x1a458c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x19ff86,_0x1b20a5,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',(_0x1c9208,_0x5a34fe)=>{_0x5a34fe['revisionViews']['on']('add',(_0x47e06e,_0x7f26d1)=>{_0x7f26d1['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)),_0x1a458c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x14546e=this['_revisionsRepository']['getRevision'](0x0);if(_0x14546e){const _0x1b00ac=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x14546e['id']);this['_revisionViewer']['compare'](_0x14546e,_0x1b00ac);}}['_handleRevisionSelected'](_0x5226c2,_0x4f42fa){const _0x2321b9=this['_revisionsRepository']['getRevision'](_0x4f42fa['id']),_0x42cdde=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2321b9['id']);this['_revisionViewer']['compare'](_0x2321b9,_0x42cdde);}['_handleRevisionSetName'](_0x4ac2d0,_0x2edc83){this['_revisionsRepository']['getRevision'](_0x2edc83['id'])['setName'](_0x2edc83['name']);}['_handleDiffChange'](_0x3adbf1,_0x1a6352,_0x108e2d){const _0x5fe8dc=this['_revisionsRepository']['getRevisionsInDiff'](_0x108e2d);_0x5fe8dc['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5fe8dc),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5fe8dc[0x0]));}['_createRevisionActions'](){const _0x55c57b=this['editor'],_0x2bbb3e=w['availableRevisionActions'],_0x3f5767=_0x55c57b['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x3f5767['length'])return _0x3f5767['map'](_0x30f680=>{const _0x437e2b='string'==typeof _0x30f680?Object['assign']({},_0x2bbb3e[_0x30f680]):_0x30f680;return _0x437e2b['action']=_0x437e2b['action']['bind'](this,_0x55c57b),_0x437e2b['isVisible']&&(_0x437e2b['isVisible']=_0x437e2b['isVisible']['bind'](this,_0x55c57b)),_0x437e2b;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x10fff5},_0x10129d)=>{const _0x40d02d=_0x10fff5['get'](d),_0x13a6a7=_0x40d02d['repository'];let _0x559179=_0x40d02d['diff']['newRevisionId'],_0x2d05dd=_0x10129d['id'];_0x13a6a7['getIndex'](_0x559179)>_0x13a6a7['getIndex'](_0x2d05dd)&&([_0x559179,_0x2d05dd]=[_0x2d05dd,_0x559179]),_0x40d02d['compare'](_0x559179,_0x2d05dd);},'isVisible':({plugins:_0x33e21a},_0x4ff4c0)=>{const _0x428ead=_0x33e21a['get'](d);return!(_0x428ead['repository']['getRevisionsInDiff'](_0x428ead['diff'])['length']>0x2)&&!_0x4ff4c0['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1ad80b,{id:_0x29f915})=>{_0x1ad80b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x29f915);},'isVisible':({plugins:_0x2287b6},_0x19ce62)=>!!_0x2287b6['get'](d)['repository']['getLaterVisibleRevision'](_0x19ce62['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xf11139},{id:_0x493601,revisionNameView:_0xb22c1d})=>{const _0x1bdeb4=_0xf11139['get'](d),_0x3c25ee=_0x1bdeb4['repository']['getEarlierVisibleRevision'](_0x493601);_0x1bdeb4['compare'](_0x493601,_0x3c25ee),_0xb22c1d['focus'](),_0xb22c1d['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4dd3ee,_0x3d96dd){super(_0x4dd3ee),this['_view']=_0x3d96dd,this['_toolbarConfig']=ot(_0x4dd3ee['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x231e32){const _0x3cdcba=this['editor'],_0x54b1da=this['view'],_0x271b01=_0x3cdcba['editing']['view'],_0x208819=_0x54b1da['editable'],_0x3703e8=_0x271b01['document']['getRoot']();_0x208819['name']=_0x3703e8['rootName'],_0x54b1da['render']();const _0x280354=_0x208819['element'];this['setEditableElement'](_0x208819['name'],_0x280354),_0x54b1da['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x271b01['attachDomRoot'](_0x280354),this['_elementReplacer']['replace'](_0x231e32,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x266b18=this['view'],_0x7f64a2=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x7f64a2['detachDomRoot'](_0x266b18['editable']['name']),_0x266b18['destroy']();}['_initToolbar'](){const _0x3fc6f8=this['view'];_0x3fc6f8['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3fc6f8['stickyPanel']['limiterElement']=_0x3fc6f8['element'],_0x3fc6f8['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x375681})=>_0x375681),_0x3fc6f8['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3fc6f8['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xd79b6d,_0xc7d62a,_0x767331={}){super(_0xd79b6d),this['stickyPanel']=new ut(_0xd79b6d),this['toolbar']=new lt(_0xd79b6d,{'shouldGroupWhenFull':_0x767331['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0xd79b6d,_0xc7d62a);}['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(_0x1fb298,_0x49748){super(_0x49748),this['sourceElement']=_0x1fb298,this['model']['document']['createRoot']();const _0x2fd850=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x2fd850);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x40587d,_0x2d8016){const _0x1c2481=new this(_0x40587d,_0x2d8016);return await _0x1c2481['initPlugins'](),await _0x1c2481['ui']['init'](_0x40587d),await _0x1c2481['data']['init'](_0x1c2481['config']['get']('initialData')||''),_0x1c2481['fire']('ready'),_0x1c2481;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x3a751c{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59e611){function _0x1e92cd(_0x2a2a35){return _0x2a2a35['map'](_0x2f7036=>String['fromCharCode'](_0x2f7036))['join']('');}super(_0x59e611),this['result']='end',_0x59e611[_0x1e92cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e92cd([0x76,0x69,0x65,0x77])][_0x1e92cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e92cd([0x61,0x75,0x74,0x6f]),_0x59e611[_0x1e92cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1e92cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e92cd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1e92cd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1e92cd([0x6f,0x6b])});}}class k extends _0x3a751c{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0xcea787){if(super(_0xcea787),!this['editor']['config']['get']('revisionHistory'))throw new _0x5b14a4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1bc51d=>this['_showRevisionViewer']({..._0x1bc51d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3492d0=>this['_closeRevisionViewer'](_0x3492d0)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3b4499=>this['_restoreRevision'](_0x3b4499)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x432665){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x432665;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5b708c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5b708c);}['getRevision'](_0x1071f7){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1071f7);}['getRevisions'](_0x3967f8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3967f8||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x728f43=this['editor'],_0x4a41a9=_0x35be18(_0x728f43,p),_0x5d4329=_0x728f43['plugins']['get']('RevisionTracker'),_0xbb6a8d=_0x728f43['plugins']['get']('Users')['users'];return _0x4a41a9['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4a41a9['lazyRoots'],(_0x4a41a9['plugins']['push'](bt,d,g,class extends _0x3a751c{static get['requires'](){return[d,'Users'];}['init'](){const _0x46b9b7=this['editor']['plugins']['get']('Users');for(const _0x34ce30 of _0xbb6a8d)_0x34ce30['isAnonymous']||_0x46b9b7['getUser'](_0x34ce30['id'])||_0x46b9b7['addUser'](_0x34ce30);const _0x3fd35b=_0x5d4329['repository']['getRevisions']();let _0x58d854=null;const _0x449960=this['editor']['plugins']['get']('RevisionViewer');_0x449960['adapter']=_0x5d4329['adapter'],_0x449960['bind']('isEnabled')['to'](_0x5d4329),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x728f43,'isReadOnly',_0xf657e4=>!_0xf657e4);for(const _0x4c6224 of _0x3fd35b){const _0x3957d5=null===_0x4c6224['creator'];if(_0x3957d5&&_0x4c6224['toVersion']===_0x4c6224['fromVersion'])continue;const _0x299912=_0x4c6224['toJSON']();_0x449960['addRevisionData'](_0x299912,(_0x560d1e,_0x2a1b51,_0xfbeab3)=>{if(_0x3957d5){if(_0x58d854)_0x58d854['_update'](_0x560d1e,_0x2a1b51);else{if(!_0x2a1b51){const _0x3810bd=_0xfbeab3['toJSON']();_0x3810bd['id']=_0x188740(),_0x5d4329['saveRevision'](_0x3810bd,_0xfbeab3['toVersion'])['then'](_0x154a5e=>{_0x58d854=_0x154a5e;});}}}else _0x4c6224['_update'](_0x560d1e,_0x2a1b51);});}}},w),_0x4a41a9);}['_enhanceShowRevisionViewerCallback'](){const _0x14fe0f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3890b4=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x475b50=this['editor']['plugins']['get']('Autosave');await _0x475b50['save']();}else await _0x3890b4['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x34e73d=this['editor']['plugins']['get']('Dialog');_0x34e73d['isOpen']&&_0x34e73d['hide']();}const _0x5c806e=this['_getRevisionViewerEditorConfig']();return _0x14fe0f(_0x5c806e)['then'](_0x3f17ae=>{return(this['_viewerEditor']=_0x3f17ae,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3f17ae;})['catch'](_0x477cc6=>(console['error'](_0x477cc6),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4f0625=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'](),_0x4f0625(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5ce776=this['editor']['plugins']['get']('Annotations');_0x5ce776['refreshVisibility'](),_0x5ce776['refreshPositioning']();}})));}['_showRevisionViewer'](_0x406ab6){const _0x42cfae=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x151af9=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3bf47b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x3bf47b,_0x406ab6)['then'](_0x222fab=>(_0x151af9['style']['display']='block',_0x42cfae['style']['display']='none',_0x222fab));}['_closeRevisionViewer'](_0x56c28c){const _0x3f353d=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3f353d['style']['display']='',_0x56c28c['destroy']();}async['_restoreRevision'](_0x5e5f20){const _0xc68c03=this['editor'],_0x14c398=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3b9dfe=_0xc68c03['plugins']['get']('RevisionTracker'),_0x119dc7=_0x14c398['repository']['getRevision'](_0x5e5f20);let _0x56d7e1,_0x4e3ea5,_0x237d59;try{_0x56d7e1=await _0x14c398['getRevisionData'](_0x119dc7),_0x4e3ea5=await _0x14c398['getRevisionRootsAttributes'](_0x119dc7);}catch(_0x1bb153){return void console['error'](_0x1bb153);}_0xc68c03['model']['change'](_0x48da3b=>{for(const _0x514761 of Array['from'](_0xc68c03['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x48da3b['removeMarker'](_0x514761);}),_0x14c398['isReady']=!0x1,_0xc68c03['model']['enqueueChange'](_0x19f347=>{_0x19f347['setSelection'](null),_0x19f347['removeSelectionAttribute'](_0xc68c03['model']['document']['selection']['getAttributeKeys']());const _0xbf1e52=Object['keys'](_0x56d7e1);for(const _0x4e0151 of _0xc68c03['model']['document']['roots'])'$graveyard'!=_0x4e0151['rootName']&&_0x4e0151['isAttached']()&&!_0xbf1e52['includes'](_0x4e0151['rootName'])&&_0x19f347['detachRoot'](_0x4e0151);for(const _0x21d015 of _0xbf1e52){let _0xd78853=_0xc68c03['model']['document']['getRoot'](_0x21d015);_0xd78853&&_0xd78853['isAttached']()||(_0xd78853=_0x19f347['addRoot'](_0x21d015));const _0x4e0ec6=_0x4e3ea5[_0x21d015],_0x4e55e7=Object['keys'](_0x4e0ec6),_0x4fa984=_0x56d7e1[_0x21d015];for(const _0x1ab201 of _0xd78853['getAttributeKeys']())_0x4e55e7['includes'](_0x1ab201)||_0x19f347['removeAttribute'](_0x1ab201,_0xd78853);for(const _0x245fb3 of _0x4e55e7)_0x19f347['setAttribute'](_0x245fb3,_0x4e3ea5[_0x21d015][_0x245fb3],_0xd78853);_0x19f347['remove'](_0x19f347['createRangeIn'](_0xd78853)),_0x19f347['insert'](_0xc68c03['data']['parse'](_0x4fa984,_0xd78853),_0xd78853,0x0);}});const _0x25028e=m(_0xc68c03['locale'],'Restored');if(_0x119dc7['name'])_0x237d59=-0x1==_0x119dc7['name']['indexOf'](_0x25028e)?_0x25028e+':\x20'+_0x119dc7['name']:_0x119dc7['name'];else _0x237d59=_0x25028e+':\x20'+(_0x119dc7['createdAt']['toLocaleDateString'](_0xc68c03['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x119dc7['createdAt']['toLocaleTimeString'](_0xc68c03['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3b9dfe['saveRevision']({'name':_0x237d59}),_0x14c398['isReady']=!0x0,_0xc68c03['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};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x14dd58){super(_0x14dd58),this['_revisionViewer']=_0x14dd58['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x410b30=this['_revisionsRepository']['_revisions'],_0x52c2c0=this['_createRevisionActions'](),_0x3ba437=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x410b30,_0x52c2c0,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',(_0x41403a,_0x57d461)=>{_0x57d461['revisionViews']['on']('add',(_0x934170,_0x42aef1)=>{_0x42aef1['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)),_0x3ba437['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4064b3=this['_revisionsRepository']['getRevision'](0x0);if(_0x4064b3){const _0x1a4af3=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4064b3['id']);this['_revisionViewer']['compare'](_0x4064b3,_0x1a4af3);}}['_handleRevisionSelected'](_0x31292c,_0x549902){const _0x14ae26=this['_revisionsRepository']['getRevision'](_0x549902['id']),_0x3dc694=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x14ae26['id']);this['_revisionViewer']['compare'](_0x14ae26,_0x3dc694);}['_handleRevisionSetName'](_0x198b39,_0x455cd5){this['_revisionsRepository']['getRevision'](_0x455cd5['id'])['setName'](_0x455cd5['name']);}['_handleDiffChange'](_0x526580,_0x58a42b,_0x1af173){const _0x52e7d6=this['_revisionsRepository']['getRevisionsInDiff'](_0x1af173);_0x52e7d6['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x52e7d6),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x52e7d6[0x0]));}['_createRevisionActions'](){const _0x1261d8=this['editor'],_0x4dee15=w['availableRevisionActions'],_0x5ab8df=_0x1261d8['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x5ab8df['length'])return _0x5ab8df['map'](_0x25a147=>{const _0xaa972e='string'==typeof _0x25a147?Object['assign']({},_0x4dee15[_0x25a147]):_0x25a147;return _0xaa972e['action']=_0xaa972e['action']['bind'](this,_0x1261d8),_0xaa972e['isVisible']&&(_0xaa972e['isVisible']=_0xaa972e['isVisible']['bind'](this,_0x1261d8)),_0xaa972e;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5c36d6},_0x3a1f3c)=>{const _0x221896=_0x5c36d6['get'](d),_0x5cd934=_0x221896['repository'];let _0x47e320=_0x221896['diff']['newRevisionId'],_0x5aa630=_0x3a1f3c['id'];_0x5cd934['getIndex'](_0x47e320)>_0x5cd934['getIndex'](_0x5aa630)&&([_0x47e320,_0x5aa630]=[_0x5aa630,_0x47e320]),_0x221896['compare'](_0x47e320,_0x5aa630);},'isVisible':({plugins:_0xb7f550},_0x5a6073)=>{const _0x289dda=_0xb7f550['get'](d);return!(_0x289dda['repository']['getRevisionsInDiff'](_0x289dda['diff'])['length']>0x2)&&!_0x5a6073['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x340d37,{id:_0x231bb4})=>{_0x340d37['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x231bb4);},'isVisible':({plugins:_0x1cc65c},_0x301262)=>!!_0x1cc65c['get'](d)['repository']['getLaterVisibleRevision'](_0x301262['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x16054f},{id:_0x3bf57d,revisionNameView:_0x3eb497})=>{const _0x4eca08=_0x16054f['get'](d),_0x120358=_0x4eca08['repository']['getEarlierVisibleRevision'](_0x3bf57d);_0x4eca08['compare'](_0x3bf57d,_0x120358),_0x3eb497['focus'](),_0x3eb497['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1239e8,_0x334c65){super(_0x1239e8),this['_view']=_0x334c65,this['_toolbarConfig']=ot(_0x1239e8['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x4874ed){const _0x4988cf=this['editor'],_0x19c954=this['view'],_0x449749=_0x4988cf['editing']['view'],_0x493f4b=_0x19c954['editable'],_0x24b16e=_0x449749['document']['getRoot']();_0x493f4b['name']=_0x24b16e['rootName'],_0x19c954['render']();const _0x423c7a=_0x493f4b['element'];this['setEditableElement'](_0x493f4b['name'],_0x423c7a),_0x19c954['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x449749['attachDomRoot'](_0x423c7a),this['_elementReplacer']['replace'](_0x4874ed,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4f372e=this['view'],_0x7afb8e=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x7afb8e['detachDomRoot'](_0x4f372e['editable']['name']),_0x4f372e['destroy']();}['_initToolbar'](){const _0x3955e3=this['view'];_0x3955e3['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3955e3['stickyPanel']['limiterElement']=_0x3955e3['element'],_0x3955e3['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5a7f0a})=>_0x5a7f0a),_0x3955e3['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3955e3['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x175ef7,_0x4c3017,_0x4e3f70={}){super(_0x175ef7),this['stickyPanel']=new ut(_0x175ef7),this['toolbar']=new lt(_0x175ef7,{'shouldGroupWhenFull':_0x4e3f70['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x175ef7,_0x4c3017);}['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(_0x19cf06,_0x2aa33f){super(_0x2aa33f),this['sourceElement']=_0x19cf06,this['model']['document']['createRoot']();const _0x17c798=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x17c798);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x387289,_0x4b39d7){const _0x2f32c8=new this(_0x387289,_0x4b39d7);return await _0x2f32c8['initPlugins'](),await _0x2f32c8['ui']['init'](_0x387289),await _0x2f32c8['data']['init'](_0x2f32c8['config']['get']('initialData')||''),_0x2f32c8['fire']('ready'),_0x2f32c8;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x29e489{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x81bfbb){function _0x39f5e7(_0x4b4337){return _0x4b4337['map'](_0x3e9ea4=>String['fromCharCode'](_0x3e9ea4))['join']('');}super(_0x81bfbb),this['result']='end',_0x81bfbb[_0x39f5e7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39f5e7([0x76,0x69,0x65,0x77])][_0x39f5e7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39f5e7([0x61,0x75,0x74,0x6f]),_0x81bfbb[_0x39f5e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x39f5e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39f5e7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x39f5e7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x39f5e7([0x6f,0x6b])});}}class k extends _0x29e489{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x303a36){if(super(_0x303a36),!this['editor']['config']['get']('revisionHistory'))throw new _0x461a1a('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x34e4bf=>this['_showRevisionViewer']({..._0x34e4bf,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x28e7ed=>this['_closeRevisionViewer'](_0x28e7ed)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x488d2a=>this['_restoreRevision'](_0x488d2a)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x254ed2){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x254ed2;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x33dc12){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x33dc12);}['getRevision'](_0x3ecee4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3ecee4);}['getRevisions'](_0x515034){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x515034||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x11e03f=this['editor'],_0x16e058=_0x5ef743(_0x11e03f,p),_0xcaeee1=_0x11e03f['plugins']['get']('RevisionTracker'),_0x10a8e5=_0x11e03f['plugins']['get']('Users')['users'];return _0x16e058['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x16e058['lazyRoots'],(_0x16e058['plugins']['push'](Rt,d,g,class extends _0x29e489{static get['requires'](){return[d,'Users'];}['init'](){const _0x5ae155=this['editor']['plugins']['get']('Users');for(const _0x2712dd of _0x10a8e5)_0x2712dd['isAnonymous']||_0x5ae155['getUser'](_0x2712dd['id'])||_0x5ae155['addUser'](_0x2712dd);const _0x34c633=_0xcaeee1['repository']['getRevisions']();let _0x43151e=null;const _0x519733=this['editor']['plugins']['get']('RevisionViewer');_0x519733['adapter']=_0xcaeee1['adapter'],_0x519733['bind']('isEnabled')['to'](_0xcaeee1),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x11e03f,'isReadOnly',_0x282065=>!_0x282065);for(const _0x1aaa33 of _0x34c633){const _0x1cb3f4=null===_0x1aaa33['creator'];if(_0x1cb3f4&&_0x1aaa33['toVersion']===_0x1aaa33['fromVersion'])continue;const _0x1de9c0=_0x1aaa33['toJSON']();_0x519733['addRevisionData'](_0x1de9c0,(_0x5f4d33,_0x5830ca,_0x8eced7)=>{if(_0x1cb3f4){if(_0x43151e)_0x43151e['_update'](_0x5f4d33,_0x5830ca);else{if(!_0x5830ca){const _0x2705e7=_0x8eced7['toJSON']();_0x2705e7['id']=_0x44825c(),_0xcaeee1['saveRevision'](_0x2705e7,_0x8eced7['toVersion'])['then'](_0x24a061=>{_0x43151e=_0x24a061;});}}}else _0x1aaa33['_update'](_0x5f4d33,_0x5830ca);});}}},w),_0x16e058);}['_enhanceShowRevisionViewerCallback'](){const _0x3bc2e8=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x461450=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x11ca32=this['editor']['plugins']['get']('Autosave');await _0x11ca32['save']();}else await _0x461450['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x215ed1=this['editor']['plugins']['get']('Dialog');_0x215ed1['isOpen']&&_0x215ed1['hide']();}const _0x14b44d=this['_getRevisionViewerEditorConfig']();return _0x3bc2e8(_0x14b44d)['then'](_0x1f816e=>{return(this['_viewerEditor']=_0x1f816e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1f816e;})['catch'](_0x1edad0=>(console['error'](_0x1edad0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5db4bc=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'](),_0x5db4bc(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x54ef2a=this['editor']['plugins']['get']('Annotations');_0x54ef2a['refreshVisibility'](),_0x54ef2a['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3a3fbb){const _0x6a31a1=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x13f89c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x13e636=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x13e636,_0x3a3fbb)['then'](_0x34bb94=>(_0x13f89c['style']['display']='block',_0x6a31a1['style']['display']='none',_0x34bb94));}['_closeRevisionViewer'](_0x52f134){const _0x45923e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x45923e['style']['display']='',_0x52f134['destroy']();}async['_restoreRevision'](_0x1e7fb7){const _0x4edacf=this['editor'],_0x291e4c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x40eb1a=_0x4edacf['plugins']['get']('RevisionTracker'),_0x334a30=_0x291e4c['repository']['getRevision'](_0x1e7fb7);let _0x1757ae,_0x12ec0e,_0x34853;try{_0x1757ae=await _0x291e4c['getRevisionData'](_0x334a30),_0x12ec0e=await _0x291e4c['getRevisionRootsAttributes'](_0x334a30);}catch(_0x38f5dd){return void console['error'](_0x38f5dd);}_0x4edacf['model']['change'](_0x402418=>{for(const _0x33bac2 of Array['from'](_0x4edacf['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x402418['removeMarker'](_0x33bac2);}),_0x291e4c['isReady']=!0x1,_0x4edacf['model']['enqueueChange'](_0x33aa32=>{_0x33aa32['setSelection'](null),_0x33aa32['removeSelectionAttribute'](_0x4edacf['model']['document']['selection']['getAttributeKeys']());const _0xb3d6d5=Object['keys'](_0x1757ae);for(const _0x1ffb81 of _0x4edacf['model']['document']['roots'])'$graveyard'!=_0x1ffb81['rootName']&&_0x1ffb81['isAttached']()&&!_0xb3d6d5['includes'](_0x1ffb81['rootName'])&&_0x33aa32['detachRoot'](_0x1ffb81);for(const _0x23d158 of _0xb3d6d5){let _0x5172c4=_0x4edacf['model']['document']['getRoot'](_0x23d158);_0x5172c4&&_0x5172c4['isAttached']()||(_0x5172c4=_0x33aa32['addRoot'](_0x23d158));const _0x3229f9=_0x12ec0e[_0x23d158],_0x3bd88d=Object['keys'](_0x3229f9),_0xff641=_0x1757ae[_0x23d158];for(const _0x3002d4 of _0x5172c4['getAttributeKeys']())_0x3bd88d['includes'](_0x3002d4)||_0x33aa32['removeAttribute'](_0x3002d4,_0x5172c4);for(const _0x2ba970 of _0x3bd88d)_0x33aa32['setAttribute'](_0x2ba970,_0x12ec0e[_0x23d158][_0x2ba970],_0x5172c4);_0x33aa32['remove'](_0x33aa32['createRangeIn'](_0x5172c4)),_0x33aa32['insert'](_0x4edacf['data']['parse'](_0xff641,_0x5172c4),_0x5172c4,0x0);}});const _0x5135d2=m(_0x4edacf['locale'],'Restored');if(_0x334a30['name'])_0x34853=-0x1==_0x334a30['name']['indexOf'](_0x5135d2)?_0x5135d2+':\x20'+_0x334a30['name']:_0x334a30['name'];else _0x34853=_0x5135d2+':\x20'+(_0x334a30['createdAt']['toLocaleDateString'](_0x4edacf['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x334a30['createdAt']['toLocaleTimeString'](_0x4edacf['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x40eb1a['saveRevision']({'name':_0x34853}),_0x291e4c['isReady']=!0x0,_0x4edacf['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};