@ckeditor/ckeditor5-revision-history 47.2.0-alpha.4 → 47.2.0-alpha.6

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 (180) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index.js +7 -7
  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/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +12 -12
  150. package/src/changeitem.js +2 -2
  151. package/src/editor/revisionviewereditor.js +2 -2
  152. package/src/editor/revisionviewereditorui.js +1 -1
  153. package/src/editor/revisionviewereditoruiview.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/revision.js +2 -2
  156. package/src/revisiondiff.js +1 -1
  157. package/src/revisionhistory.js +1 -1
  158. package/src/revisionhistoryutils.js +1 -1
  159. package/src/revisionsrepository.js +1 -1
  160. package/src/revisiontracker.js +1 -1
  161. package/src/revisionviewer.js +1 -1
  162. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  163. package/src/ui/revision/revisionauthorview.js +1 -1
  164. package/src/ui/revision/revisionnameview.js +1 -1
  165. package/src/ui/revision/revisionview.js +2 -2
  166. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  167. package/src/ui/revision/subrevisionview.js +1 -1
  168. package/src/ui/revision/utils.js +1 -1
  169. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
  170. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  172. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  173. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  174. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  175. package/src/ui/revisionssidebar/utils.js +1 -1
  176. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  177. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  178. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  179. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  180. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,11 +20,11 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x19ac11,uid as _0x196f07,Collection as _0x579e9c,logWarning as _0x8ad5bb,FocusTracker as _0xa8fe33,KeystrokeHandler as _0x1cbdb3,scrollViewportToShowTarget as _0xc18934,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x3961e6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x47d9db,set as _0x1c6a41,unset as _0x3eece8,isEqual as _0x55d944}from'es-toolkit/compat';import{Plugin as _0x3f3108,PendingActions as _0x4992e,Command as _0x38961a,ElementApiMixin as _0xc2511f,Editor as _0x5691ec}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x129796,getMarkerDomElement as _0x2e7288,ConfirmMixin as _0x13f121,sanitizeEditorConfig as _0x1f848a}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x56d1ea,ViewAttributeElement as _0x9c8dba,ViewEmptyElement as _0x3a3eaf,ViewRawElement as _0x58addf,ViewUIElement as _0x4407da,ViewDocumentFragment as _0x1be24c,ViewText as _0x4daa6c,ViewElement as _0x1c5b51,ModelElement as _0x3412bd,ModelRange as _0x1f1750,ModelPosition as _0x3b8f82,ModelDocumentFragment as _0x57f020,ModelText as _0x433cec}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x4e8b44,IconChevronUp as _0xbfae62,IconChevronDown as _0x49d392,IconUndo as _0x4918d0,IconUser as _0x3dce27,IconThreeVerticalDots as _0x370e34}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x27806b,View as _0x5e6cae,submitHandler as _0x39e9ed,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x4d138e,ListView as _0x29f163,ListItemView as _0x4667ed,ButtonView as _0x43acdb,MenuBarMenuView as _0x2d66b1,MenuBarMenuListView as _0x57e5b7,MenuBarMenuListItemView as _0x3ae0c0,MenuBarMenuListItemButtonView as _0x3afcd9,ContextualBalloon as _0x22bbec,ToolbarSeparatorView as _0x1fb469,IconView as _0x5e95ee,addListToDropdown as _0x35652a,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x1690e1,StickyPanelView as _0x56dd0f,ToolbarView as _0x4fa702,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x353717}from'luxon';class I extends/* #__PURE__ -- @preserve */
24
- _0x19ac11(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xbd27b1){super(),this['id']=_0xbd27b1['id']||_0x196f07(),this['creator']=_0xbd27b1['creator']||null,this['authors']=_0xbd27b1['authors']||[],this['diffData']=_0xbd27b1['diffData']||null,this['toVersion']=_0xbd27b1['toVersion']||0x0,this['fromVersion']=_0xbd27b1['fromVersion']||0x0,this['set']('name',_0xbd27b1['name']||''),this['set']('createdAt',_0xbd27b1['createdAt']||new Date()),this['set']('attributes',_0xbd27b1['attributes']||{});}['setName'](_0x443019){this['_update']({'name':_0x443019});}['setAttribute'](_0x4bb2bd,_0x24e6f7){const _0x58196c=_0x47d9db(this['attributes']);_0x1c6a41(_0x58196c,_0x4bb2bd,_0x24e6f7),this['_update']({'attributes':_0x58196c});}['removeAttribute'](_0x1b009b){const _0x2e0efb=_0x47d9db(this['attributes']);_0x3eece8(_0x2e0efb,_0x1b009b),this['_update']({'attributes':_0x2e0efb});}['_update'](_0x3079c6,_0x4f6630=!0x1){let _0x33b09e=!0x1;const _0x2f5a21={'id':this['id']},_0x5d1c73=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3ea74e of _0x5d1c73){const _0x508436=_0x3079c6[_0x3ea74e];void 0x0!==_0x508436&&_0x508436!==this[_0x3ea74e]&&(this[_0x3ea74e]=_0x508436,_0x2f5a21[_0x3ea74e]=_0x508436,_0x33b09e=!0x0);}_0x33b09e&&(_0x2f5a21['authors']&&(_0x2f5a21['authorsIds']=_0x2f5a21['authors']['map'](_0x1e8862=>_0x1e8862['id']),delete _0x2f5a21['authors']),this['fire']('_update',_0x2f5a21,_0x4f6630));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4d41d7=>_0x4d41d7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x3f3108{['_revisions'];static get['requires'](){return[_0x129796];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2f5285){super(_0x2f5285),this['_revisions']=new _0x579e9c();}['afterInit'](){!async function(_0x50c10d){const _0xe7556c=_0x23f8af([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x4a14b1=0xeb829,_0x111ad6=0x359e09b0,_0x57b4f7=0x35997e40^_0x111ad6,_0x835e08=window[_0x23f8af([0x44,0x61,0x74,0x65])][_0x23f8af([0x6e,0x6f,0x77])](),_0x17d918=_0x50c10d[_0x23f8af([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4298bd=new window[(_0x23f8af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bbda7=>{_0x17d918[_0x23f8af([0x6f,0x6e,0x63,0x65])](_0x23f8af([0x72,0x65,0x61,0x64,0x79]),_0x1bbda7);}),_0x2d9945={[_0x23f8af([0x6b,0x74,0x79])]:_0x23f8af([0x45,0x43]),[_0x23f8af([0x75,0x73,0x65])]:_0x23f8af([0x73,0x69,0x67]),[_0x23f8af([0x63,0x72,0x76])]:_0x23f8af([0x50,0x2d,0x32,0x35,0x36]),[_0x23f8af([0x78])]:_0x23f8af([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]),[_0x23f8af([0x79])]:_0x23f8af([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]),[_0x23f8af([0x61,0x6c,0x67])]:_0x23f8af([0x45,0x53,0x32,0x35,0x36])},_0x3886fa=_0x17d918[_0x23f8af([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23f8af([0x67,0x65,0x74])](_0x23f8af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38070(){let _0x2bb834,_0x3f0cc1=null,_0x4f53b1=null;try{if(_0x3886fa==_0x23f8af([0x47,0x50,0x4c]))return _0x23f8af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2bb834=_0x3e1148(),!_0x2bb834)return _0x23f8af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2bb834[_0x23f8af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f53b1=_0x10a171(_0x2bb834[_0x23f8af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2bb834[_0x23f8af([0x6a,0x74,0x69])])),await _0x5bf531()?_0x446a46()?_0x35edab()?_0x23f8af([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4bed4e()?(_0x2bb834[_0x23f8af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23f8af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f0cc1=_0x5f889(_0x23f8af([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2bb834[_0x23f8af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23f8af([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f0cc1=_0x5f889(_0x23f8af([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31cb14()):_0x23f8af([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23f8af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23f8af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x23f8af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x35edab(){const _0x51105c=[_0x23f8af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23f8af([0x74,0x72,0x69,0x61,0x6c])][_0x23f8af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bb834[_0x23f8af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x835e08/0x3e8:0xe10*_0x57b4f7;return _0x2bb834[_0x23f8af([0x65,0x78,0x70])]<_0x51105c;}function _0x446a46(){const _0x19ac8f=_0x2bb834[_0x23f8af([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x19ac8f)return!0x1;if(_0x19ac8f[_0x23f8af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23f8af([0x2a])))return!0x0;if(_0x19ac8f[_0x23f8af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23f8af([0x52,0x48])))return!0x0;if(_0x19ac8f[_0x23f8af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23f8af([0x52,0x52,0x48]))){if(_0x4ba1e2())return!0x0;if(_0x58511e()||_0x23d1f0())return!0x0;}return!0x1;}function _0x4bed4e(){const _0x378ad4=_0x2bb834[_0x23f8af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x378ad4||0x0==_0x378ad4[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2fe264}=new URL(window[_0x23f8af([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x378ad4[_0x23f8af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe264))return!0x0;const _0x7c4c9d=_0x2fe264[_0x23f8af([0x73,0x70,0x6c,0x69,0x74])](_0x23f8af([0x2e]));return _0x378ad4[_0x23f8af([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ca796=>_0x4ca796[_0x23f8af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23f8af([0x2a])))[_0x23f8af([0x6d,0x61,0x70])](_0x19dd79=>_0x19dd79[_0x23f8af([0x73,0x70,0x6c,0x69,0x74])](_0x23f8af([0x2e])))[_0x23f8af([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd12b41=>_0xd12b41[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x7c4c9d[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23f8af([0x6d,0x61,0x70])](_0x5ca34f=>Array(_0x7c4c9d[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5ca34f[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23f8af([0x66,0x69,0x6c,0x6c])](_0x5ca34f[0x0]===_0x23f8af([0x2a])?_0x23f8af([0x2a]):'')[_0x23f8af([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5ca34f))[_0x23f8af([0x73,0x6f,0x6d,0x65])](_0x1342e9=>_0x7c4c9d[_0x23f8af([0x65,0x76,0x65,0x72,0x79])]((_0x38da9e,_0x79497d)=>_0x1342e9[_0x79497d]===_0x38da9e||_0x1342e9[_0x79497d]===_0x23f8af([0x2a])));}function _0x31cb14(){return _0x3f0cc1&&_0x4f53b1?new window[(_0x23f8af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xed24c8,_0x32411c)=>{_0x3f0cc1[_0x23f8af([0x74,0x68,0x65,0x6e])](_0xed24c8,_0x32411c),_0x4f53b1[_0x23f8af([0x74,0x68,0x65,0x6e])](_0x1400d3=>{_0x1400d3!=_0x23f8af([0x56,0x61,0x6c,0x69,0x64])&&_0xed24c8(_0x1400d3);},_0x32411c);}):_0x3f0cc1||_0x4f53b1||_0x23f8af([0x56,0x61,0x6c,0x69,0x64]);}}function _0x10a171(_0x22fb7f,_0xa09d20){return new window[(_0x23f8af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x615d78=>{if(_0x25c0cf())return _0x615d78(_0x23f8af([0x56,0x61,0x6c,0x69,0x64]));_0x1bbc9e(),_0x17d918[_0x23f8af([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23f8af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe19c99=!0x1;const _0x20e426=_0x196f07();function _0x4275a1(_0x35fa89){return!!_0x35fa89&&(typeof _0x35fa89===_0x23f8af([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x35fa89===_0x23f8af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x35fa89[_0x23f8af([0x74,0x68,0x65,0x6e])]===_0x23f8af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x35fa89[_0x23f8af([0x63,0x61,0x74,0x63,0x68])]===_0x23f8af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34b516(_0x267ccb){_0x155619(_0x267ccb)[_0x23f8af([0x74,0x68,0x65,0x6e])](_0x330e2d=>{if(!_0x330e2d||_0x330e2d[_0x23f8af([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23f8af([0x6f,0x6b]))return _0x23f8af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x30186c(_0x42d845(_0x20e426+_0xa09d20))!=_0x330e2d[_0x23f8af([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23f8af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23f8af([0x56,0x61,0x6c,0x69,0x64]);})[_0x23f8af([0x74,0x68,0x65,0x6e])](_0x122f8c=>(_0x2804fa(),_0x122f8c),()=>{const _0x322cd9=_0x3162d1();return null==_0x322cd9?(_0x2804fa(),_0x23f8af([0x56,0x61,0x6c,0x69,0x64])):_0x23f8af(_0x835e08-_0x322cd9>(0x11928db0^_0x111ad6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23f8af([0x74,0x68,0x65,0x6e])](_0x615d78)[_0x23f8af([0x63,0x61,0x74,0x63,0x68])](()=>{_0x615d78(_0x23f8af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4c606d=0x35a8e730^_0x111ad6;function _0x2804fa(){const _0x28f6dc=_0x23f8af([0x6c,0x6c,0x63,0x74,0x2d])+_0x30186c(_0x42d845(_0x22fb7f)),_0x3b376d=_0xe1c27b(_0x30186c(window[_0x23f8af([0x4d,0x61,0x74,0x68])][_0x23f8af([0x63,0x65,0x69,0x6c])](_0x835e08/_0x4c606d)));window[_0x23f8af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23f8af([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28f6dc,_0x3b376d);}function _0x3162d1(){const _0x4e77e3=_0x23f8af([0x6c,0x6c,0x63,0x74,0x2d])+_0x30186c(_0x42d845(_0x22fb7f)),_0x4927bd=window[_0x23f8af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23f8af([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e77e3);return _0x4927bd?window[_0x23f8af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe1c27b(_0x4927bd),0x10)*_0x4c606d:null;}function _0x155619(_0x786e89){return new window[(_0x23f8af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x352790,_0x556791)=>{_0x786e89[_0x23f8af([0x74,0x68,0x65,0x6e])](_0x352790,_0x556791),window[_0x23f8af([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x556791,0x359fdd70^_0x111ad6);});}}_0x17d918[_0x23f8af([0x6f,0x6e])](_0x23f8af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3c0318,_0x2709f5)=>{if(_0x2709f5[0x0]!=_0x22fb7f)return _0x615d78(_0x23f8af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2709f5[0x1]={..._0x2709f5[0x1],[_0x23f8af([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x20e426};},{[_0x23f8af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23f8af([0x68,0x69,0x67,0x68])}),_0x17d918[_0x23f8af([0x6f,0x6e])](_0x23f8af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4e56cb=>{_0x4275a1(_0x4e56cb[_0x23f8af([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe19c99=!0x0,_0x34b516(_0x4e56cb[_0x23f8af([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23f8af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23f8af([0x6c,0x6f,0x77])}),_0x4298bd[_0x23f8af([0x74,0x68,0x65,0x6e])](()=>{_0xe19c99||_0x615d78(_0x23f8af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x25c0cf(){return _0x17d918[_0x23f8af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23f8af([0x76,0x69,0x65,0x77])][_0x23f8af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23f8af([0x61,0x75,0x74,0x6f]);}function _0x1bbc9e(){_0x17d918[_0x23f8af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23f8af([0x76,0x69,0x65,0x77])][_0x23f8af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23f8af([0x61,0x75,0x74,0x6f]);}}function _0x5f889(_0x369bf0){const _0x145454=[new window[(_0x23f8af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bff08=>setTimeout(_0x1bff08,0x3597377c^_0x111ad6)),_0x4298bd[_0x23f8af([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23f8af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14f650=>{const _0x45296b=0x359e09b7^_0x111ad6,_0x2f600e=_0x50c10d[_0x23f8af([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x559dc8(){_0x2f600e[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x45296b&&_0x14f650();}_0x559dc8(),_0x2f600e[_0x23f8af([0x6f,0x6e])](_0x23f8af([0x61,0x64,0x64]),_0x559dc8);})),new window[(_0x23f8af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x183683=>{function _0x2b519f(){for(const _0x4a18c4 in window)if(window[_0x23f8af([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x23f8af([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4a18c4))&&window[_0x4a18c4]==_0x4a14b1)return _0x183683();_0x17d918[_0x23f8af([0x73,0x74,0x61,0x74,0x65])]!=_0x23f8af([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x23f8af([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2b519f,0x359e1a38^_0x111ad6);}_0x37ef95(_0x23f8af([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2b519f();})];return window[_0x23f8af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23f8af([0x72,0x61,0x63,0x65])](_0x145454)[_0x23f8af([0x74,0x68,0x65,0x6e])](()=>_0x369bf0);}async function _0x3e4a6a(){if(await _0x4298bd,_0x37ef95(_0x23f8af([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xf01c0e=_0x50c10d[_0x23f8af([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x124f31=_0x50c10d[_0x23f8af([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])](_0xf01c0e[_0x23f8af([0x69,0x64])]),_0x1bd2ea=_0x3915a8(_0x23f8af([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1bd2ea[_0x23f8af([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xf01c0e['id'],_0x124f31?_0x124f31['id']:null,!0x0),_0x1bd2ea[_0x23f8af([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x23f8af([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1bd2ea[_0x23f8af([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1bd2ea[_0x23f8af([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1675fb,void(_0x1bd2ea[_0x23f8af([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1675fb);}if(_0x37ef95(_0x23f8af([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1d369d=_0x3915a8(_0x23f8af([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1d369d[_0x23f8af([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x23f8af([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1d369d[_0x23f8af([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1d369d[_0x23f8af([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1675fb,_0x1d369d[_0x23f8af([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1675fb;}_0x17d918[_0x23f8af([0x6d,0x6f,0x64,0x65,0x6c])][_0x23f8af([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1675fb,_0x17d918[_0x23f8af([0x6d,0x6f,0x64,0x65,0x6c])][_0x23f8af([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1675fb,_0x17d918[_0x23f8af([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23f8af([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ba1e2(){return _0x37ef95(_0x23f8af([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3915a8(_0x23f8af([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x23f8af([0x73,0x74,0x61,0x74,0x65])]==_0x23f8af([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x58511e(){return _0x37ef95(_0x23f8af([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 _0x23d1f0(){return _0x37ef95(_0x23f8af([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2e070c(_0x262639){const _0x34202b=_0x17cb88();_0x17d918[_0x34202b]=_0x23f8af([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])+_0x262639,_0x262639[_0x23f8af([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x23f8af([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x17cb88()]=_0x4a14b1),_0x262639!=_0x23f8af([0x56,0x61,0x6c,0x69,0x64])&&_0x3e4a6a();}function _0x17cb88(){const _0x588850=window[_0x23f8af([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23f8af([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23f8af([0x6e,0x6f,0x77])]())[_0x23f8af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23f8af([0x2e]),'');let _0x3a72dc=_0x23f8af([0x76]);for(let _0xda0f3f=0x0;_0xda0f3f<_0x588850[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xda0f3f+=0x2){let _0x276645=window[_0x23f8af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x588850[_0x23f8af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xda0f3f,_0xda0f3f+0x2));_0x276645>=_0xe7556c[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x276645-=_0xe7556c[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a72dc+=_0xe7556c[_0x276645];}return _0x3a72dc;}function _0x3e1148(){const _0x4e3c78=_0x3886fa[_0x23f8af([0x73,0x70,0x6c,0x69,0x74])](_0x23f8af([0x2e]));if(0x3!=_0x4e3c78[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb169d6(_0x4e3c78[0x1]);function _0xb169d6(_0x17d4a9){const _0x47373d=_0x436082(_0x17d4a9);return _0x47373d&&_0x3d0cc2()?_0x47373d:null;function _0x3d0cc2(){const _0x2b369c=_0x47373d[_0x23f8af([0x6a,0x74,0x69])],_0x45383c=window[_0x23f8af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b369c[_0x23f8af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b369c[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48277f={..._0x47373d,[_0x23f8af([0x6a,0x74,0x69])]:_0x2b369c[_0x23f8af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b369c[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48277f[_0x23f8af([0x76,0x63])],_0x42d845(_0x48277f)==_0x45383c;}}}async function _0x5bf531(){let _0x2f5fb1=!0x0;try{const _0x17b024=_0x3886fa[_0x23f8af([0x73,0x70,0x6c,0x69,0x74])](_0x23f8af([0x2e])),[_0x4bd675,_0x59ed41,_0x37a561]=_0x17b024;return _0x9e23e7(_0x4bd675),await _0x2135fe(_0x4bd675,_0x59ed41,_0x37a561),_0x2f5fb1;}catch{return!0x1;}function _0x9e23e7(_0x294b38){const _0x56d561=_0x436082(_0x294b38);_0x56d561&&_0x56d561[_0x23f8af([0x61,0x6c,0x67])]==_0x23f8af([0x45,0x53,0x32,0x35,0x36])||(_0x2f5fb1=!0x1);}async function _0x2135fe(_0x131a8c,_0x27ab55,_0x694ad2){const _0x312ecf=window[_0x23f8af([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23f8af([0x66,0x72,0x6f,0x6d])](_0x775cc7(_0x694ad2),_0xb0aef8=>_0xb0aef8[_0x23f8af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5f04b3=new window[(_0x23f8af([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23f8af([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x131a8c+_0x23f8af([0x2e])+_0x27ab55),_0x192830=window[_0x23f8af([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23f8af([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x192830)return;const _0x21d94d=await _0x192830[_0x23f8af([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23f8af([0x6a,0x77,0x6b]),_0x2d9945,{[_0x23f8af([0x6e,0x61,0x6d,0x65])]:_0x23f8af([0x45,0x43,0x44,0x53,0x41]),[_0x23f8af([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23f8af([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23f8af([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x192830[_0x23f8af([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23f8af([0x6e,0x61,0x6d,0x65])]:_0x23f8af([0x45,0x43,0x44,0x53,0x41]),[_0x23f8af([0x68,0x61,0x73,0x68])]:{[_0x23f8af([0x6e,0x61,0x6d,0x65])]:_0x23f8af([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21d94d,_0x312ecf,_0x5f04b3)||(_0x2f5fb1=!0x1);}}function _0x436082(_0x14f088){return _0x14f088[_0x23f8af([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23f8af([0x65,0x79]))?JSON[_0x23f8af([0x70,0x61,0x72,0x73,0x65])](_0x775cc7(_0x14f088)):null;}function _0x775cc7(_0xd45cc1){return window[_0x23f8af([0x61,0x74,0x6f,0x62])](_0xd45cc1[_0x23f8af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23f8af([0x2b]))[_0x23f8af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23f8af([0x2f])));}function _0x42d845(_0x328f72){let _0x4354e8=0x1505;function _0x86b369(_0x48ba46){for(let _0x256084=0x0;_0x256084<_0x48ba46[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x256084++){const _0x44bcc9=_0x48ba46[_0x23f8af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x256084);_0x4354e8=(_0x4354e8<<0x5)+_0x4354e8+_0x44bcc9,_0x4354e8&=_0x4354e8;}}function _0x2711e4(_0x224f38){Array[_0x23f8af([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x224f38)?_0x224f38[_0x23f8af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2711e4):_0x224f38&&typeof _0x224f38==_0x23f8af([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23f8af([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x224f38)[_0x23f8af([0x73,0x6f,0x72,0x74])]()[_0x23f8af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1870df,_0x235ff8])=>{_0x86b369(_0x1870df),_0x2711e4(_0x235ff8);}):_0x86b369(window[_0x23f8af([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x224f38));}return _0x2711e4(_0x328f72),_0x4354e8>>>0x0;}function _0x30186c(_0x105290){return _0x105290[_0x23f8af([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23f8af([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23f8af([0x30]));}function _0xe1c27b(_0x4ce46){return _0x4ce46[_0x23f8af([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23f8af([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23f8af([0x6a,0x6f,0x69,0x6e])]('');}function _0x37ef95(_0xe1148b){return _0x17d918[_0x23f8af([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x23f8af([0x68,0x61,0x73])](_0xe1148b);}function _0x3915a8(_0x3765ac){return _0x17d918[_0x23f8af([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x23f8af([0x67,0x65,0x74])](_0x3765ac);}function _0x1675fb(){}function _0x23f8af(_0x14f686){return _0x14f686['map'](_0x553b29=>String['fromCharCode'](_0x553b29))['join']('');}_0x2e070c(await _0x38070());}(this);}['createRevision'](_0x424971){const _0x5c6ca8=this['editor']['plugins']['get']('Users');return new I({'id':_0x424971['id'],'name':_0x424971['name'],'creator':_0x424971['creatorId']?_0x5c6ca8['getUser'](_0x424971['creatorId']):null,'diffData':_0x424971['diffData']||_0x424971['data'],'authors':_0x424971['authorsIds']['map'](_0x5f5b70=>_0x5c6ca8['getUser'](_0x5f5b70)),'createdAt':new Date(_0x424971['createdAt']),'attributes':_0x424971['attributes'],'fromVersion':_0x424971['fromVersion'],'toVersion':_0x424971['toVersion']});}['addRevision'](_0x1edac0,_0x292fc0=0x0){this['_revisions']['add'](_0x1edac0,_0x292fc0);}['getRevision'](_0x38ca78){return this['_revisions']['get'](_0x38ca78);}['getRevisions'](_0x31f53b={'toJSON':!0x1}){const _0xe730c4=Array['from'](this['_revisions']);return _0xe730c4['reverse'](),_0x31f53b['toJSON']?_0xe730c4['map'](_0x10d9fa=>_0x10d9fa['toJSON']()):_0xe730c4;}['getIndex'](_0x581629){return this['_revisions']['getIndex'](_0x581629);}['getEarlierVisibleRevision'](_0x11854e){const [,_0x39bb3a]=this['getRevisionsIterator'](_0x11854e,{'direction':'earlier'});return _0x39bb3a;}['getLaterVisibleRevision'](_0x161684){const [,_0x396305]=this['getRevisionsIterator'](_0x161684,{'direction':'later'});return _0x396305;}['getRevisionsInDiff'](_0xcc4144){const _0xa6b3c9=[];for(const _0x4ddee3 of this['getRevisionsIterator'](_0xcc4144['newRevisionId']))if(_0xa6b3c9['push'](_0x4ddee3),_0x4ddee3['id']===_0xcc4144['oldRevisionId'])break;return _0xa6b3c9;}*['getRevisionsIterator'](_0x4301dc,{direction:_0xabff5e='earlier',filter:_0x230d8f=()=>!0x0}={}){const _0x4fbde9='earlier'===_0xabff5e?0x1:-0x1;let _0x44c74f=this['_revisions']['get'](_0x4301dc),_0x34263d=this['getIndex'](_0x44c74f);for(yield _0x44c74f;_0x44c74f;){if(_0x34263d+=_0x4fbde9,_0x44c74f=this['getRevision'](_0x34263d),!_0x44c74f)return;_0x230d8f(_0x44c74f)&&(yield _0x44c74f);}}}class $ extends _0x3f3108{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x56d1ea,'c'],[_0x9c8dba,'a'],[_0x3a3eaf,'e'],[_0x58addf,'r'],[_0x4407da,'u']]);['_typeCharToViewClass']=new Map([['c',_0x56d1ea],['a',_0x9c8dba],['e',_0x3a3eaf],['r',_0x58addf],['u',_0x4407da]]);async['loadRevisionData'](_0x4564e9,_0x3e779b){if(_0x4564e9['diffData']||!_0x3e779b)return;const _0x59338b=this['editor']['config']['get']('collaboration.channelId'),_0x470a83=await _0x3e779b['getRevision']({'channelId':_0x59338b,'revisionId':_0x4564e9['id']});_0x4564e9['diffData']=_0x470a83['diffData'];}['getRevisionDocumentData'](_0x3a0928){const _0x5801b6={};for(const _0x2b70e5 in _0x3a0928['diffData']){if(_0x3a0928['diffData'][_0x2b70e5]['attachChange']&&!_0x3a0928['diffData'][_0x2b70e5]['attachChange']['isAttached'])continue;const _0x2e914d=this['_removeRevisionMarkers'](JSON['parse'](_0x3a0928['diffData'][_0x2b70e5]['insertions'])),_0x3e0ac6=this['editor']['editing']['view']['document'],_0x45933b=new _0x1be24c(_0x3e0ac6,_0x2e914d['map'](_0x1d4809=>this['_getViewFromDiffObj'](_0x1d4809,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5801b6[_0x2b70e5]=this['editor']['data']['processor']['toData'](_0x45933b),this['editor']['data']['processor']['useFillerType']('default');}return _0x5801b6;}['getRevisionRootsAttributes'](_0x4cc130){const _0x264ac0={};for(const _0x4f119d in _0x4cc130['diffData'])_0x4cc130['diffData'][_0x4f119d]['attachChange']&&!_0x4cc130['diffData'][_0x4f119d]['attachChange']['isAttached']||(_0x264ac0[_0x4f119d]=_0x4cc130['diffData'][_0x4f119d]['attributesAfter']||{});return _0x264ac0;}['_getTypeCharForViewElement'](_0x1ddc82){return this['_viewClassToTypeChar']['get'](_0x1ddc82['constructor']);}['_getViewFromDiffObj'](_0x4c31c6,_0x18172c){const _0x4690c9=this['editor']['editing']['view']['document'];if('string'==typeof _0x4c31c6)return new _0x4daa6c(_0x4690c9,_0x4c31c6);{let _0x352ffb,_0x2e78d7;_0x2e78d7='u'==_0x4c31c6['type']||'r'==_0x4c31c6['type']?[]:_0x4c31c6['children']['map'](_0x3c2815=>this['_getViewFromDiffObj'](_0x3c2815,_0x18172c));const _0x1e912a=this['_typeCharToViewClass']['get'](_0x4c31c6['type'])||_0x1c5b51,_0xea039b=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x352ffb=new _0x1e912a(_0x4690c9,_0x4c31c6['name'],_0x4c31c6['attributes'],_0x2e78d7),'u'==_0x4c31c6['type']&&_0x4c31c6['children'][0x0]){const _0x23ae62=_0x4c31c6['children'][0x0];if(_0x352ffb['render']=function(_0x349643){const _0x1bf7d8=_0x349643['createElement']('div');return _0x1bf7d8['innerHTML']=_0x23ae62,_0x1bf7d8['childNodes'][0x0];},_0x18172c){const _0x31c236=new _0x1be24c(_0x4690c9);_0x31c236['_appendChild'](_0x352ffb);const _0x334aa4=Array['from'](_0xea039b['viewChildrenToDom'](_0x31c236,{'bind':!0x1})),_0x1a1481=_0xea039b['domDocument']['createElement']('div');_0x1a1481['append'](..._0x334aa4),_0x352ffb=Array['from'](_0xea039b['domChildrenToView'](_0x1a1481))[0x0];}}else{if('r'==_0x4c31c6['type']&&_0x4c31c6['children'][0x0]){const _0x1110b0=_0x4c31c6['children'][0x0];if(_0x352ffb['render']=function(_0x578188){_0x578188['innerHTML']=_0x1110b0;},_0x18172c){const _0x13dc08=new _0x1be24c(_0x4690c9);_0x13dc08['_appendChild'](_0x352ffb);const _0x2daca9=Array['from'](_0xea039b['viewChildrenToDom'](_0x13dc08,{'bind':!0x1})),_0x3c5085=_0xea039b['domDocument']['createElement']('div');_0x3c5085['append'](..._0x2daca9);const _0x1cc852=Array['from'](_0xea039b['domChildrenToView'](_0x3c5085));_0x1cc852['length']>0x1?_0x352ffb['_appendChild'](_0x1cc852):_0x352ffb=_0x1cc852[0x0];}}}if(_0x4c31c6['customProperties']){for(const [_0x418239,_0x17e9f7]of _0x4c31c6['customProperties'])_0x352ffb['_setCustomProperty'](_0x418239,_0x17e9f7);}const _0x13ea99=void 0x0===_0x4c31c6['fillerOffset']?null:_0x4c31c6['fillerOffset'];return null!==_0x13ea99&&(_0x352ffb['getFillerOffset']=()=>_0x13ea99),_0x352ffb;}}['_makeModelFromViewString'](_0x33b829){const _0x37bd71=JSON['parse'](_0x33b829),_0x538849=this['editor']['editing']['view']['document'],_0x35a8f2=new _0x1be24c(_0x538849,_0x37bd71['map'](_0x5f4737=>this['_getViewFromDiffObj'](_0x5f4737,!0x0)));return this['editor']['data']['toModel'](_0x35a8f2);}['_removeRevisionMarkers'](_0x3cc4f2){return(_0x3cc4f2=_0x3cc4f2['filter'](_0x145b0b=>!_0x145b0b['name']||'revision-start'!==_0x145b0b['name']&&'revision-end'!==_0x145b0b['name']))['forEach'](_0x350beb=>{'string'!=typeof _0x350beb&&(_0x350beb['children']=this['_removeRevisionMarkers'](_0x350beb['children']),_0x350beb['attributes']=_0x350beb['attributes']['filter'](_0x576629=>!_0x576629[0x0]['startsWith']('data-revision-')));}),_0x3cc4f2;}}function m(_0x24d80b,_0x427a2b,_0x56c3e1){const t=_0x24d80b['t'];switch(_0x427a2b){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'},_0x56c3e1);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x56c3e1);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'';}}class h extends _0x3f3108{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x129796,S,$,_0x4992e];}constructor(_0x371691){super(_0x371691),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2aa335=_0x196f07();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2aa335},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['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x229fea=this['repository']['getRevision'](0x0),_0x2774c9=_0x229fea&&null===_0x229fea['creator']?_0x229fea:null;if(this['_continueCurrentRevision']=!!_0x2774c9&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x45e9d1=this['_source']['getCurrentRevisionId'](),_0x15787c=this['repository']['getRevision'](_0x45e9d1);if(_0x15787c)this['_startingVersion']=_0x15787c['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3f865d=this['_source']['history']['_operations']['find'](_0x365535=>!_0x365535['_isInit']),_0x46aea8=_0x3f865d?_0x3f865d['baseVersion']:this['_source']['history']['version'];_0x229fea?(_0x229fea['toVersion']<_0x46aea8&&_0x229fea['_update']({'toVersion':_0x46aea8}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2774c9['id'],this['_startingVersion']=_0x2774c9['fromVersion']):(this['_startingVersion']=_0x229fea['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x46aea8,this['_continueCurrentRevision']=!0x1);}}else _0x2774c9&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2774c9['toVersion'],this['editor']['model']['document']['history']['version']),_0x2774c9['fromVersion']===_0x2774c9['toVersion']?(0x0!==_0x2774c9['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2774c9['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2774c9['id'],this['_startingVersion']=_0x2774c9['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',_0x3070e2=>!_0x3070e2),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1dd2f9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f061c;for(const _0x24d3e4 in _0x1dd2f9){const _0x454dc9=_0x24d3e4,_0x50d77e=_0x1dd2f9[_0x454dc9];if('revisionHistoryLicenseKeyValid'==_0x50d77e||'revisionHistoryLicenseKeyInvalid'==_0x50d77e||'revisionHistoryLicenseKeyExpired'==_0x50d77e||'revisionHistoryLicenseKeyDomainLimit'==_0x50d77e||'revisionHistoryLicenseKeyNotAllowed'==_0x50d77e||'revisionHistoryLicenseKeyEvaluationLimit'==_0x50d77e||'revisionHistoryLicenseKeyTrialLimit'==_0x50d77e||'revisionHistoryLicenseKeyUsageLimit'==_0x50d77e){delete _0x1dd2f9[_0x454dc9],_0x2f061c=_0x50d77e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2f061c&&_0x1dd2f9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2f061c&&_0x1dd2f9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2f061c&&_0x1dd2f9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2f061c&&_0x1dd2f9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2f061c&&_0x1dd2f9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2f061c&&_0x1dd2f9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2f061c&&_0x1dd2f9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1ec1bf=this['repository']['getRevision'](0x0),_0x963007=await this['getRevisionDocumentData'](_0x1ec1bf),_0x59de26=await this['getRevisionRootsAttributes'](_0x1ec1bf);this['_replaceEditorDataWithRevisionData'](_0x963007,_0x59de26);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x96b7e9){this['_source']=_0x96b7e9;}async['update'](){const _0x29e3e3=await this['_source']['getLatestVersion']();if(_0x29e3e3>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3abbc6=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x29e3e3});_0x3abbc6['authors']=_0x3abbc6['authorsIds']['map'](_0x537cb1=>this['editor']['plugins']['get']('Users')['getUser'](_0x537cb1)),this['currentRevision']['_update'](_0x3abbc6);}}async['saveRevision'](_0x183f69={},_0xcbb00a=null){const _0x2da6f7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xcbb00a>this['currentRevision']['toVersion']&&(_0xcbb00a=null),null===_0xcbb00a&&(_0xcbb00a=await this['_source']['getLatestVersion']());const _0x3aa96f=this['_getFromVersion'](_0xcbb00a),_0x2fad09=this['buildRevisionData']({'from':_0x3aa96f,'to':_0xcbb00a});if(this['currentRevision']['toVersion']<_0xcbb00a){const _0xd83adc=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xcbb00a,'to':_0xcbb00a});_0xd83adc['authors']=[],_0xd83adc['authorsIds']=[],_0xd83adc['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xd83adc,!0x0),delete _0xd83adc['authors'],_0x2da6f7['push'](_0xd83adc);}_0x183f69['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x183f69['name']=_0x183f69['name']||null,_0x183f69['id']=_0x183f69['id']||_0x196f07(),_0x183f69={..._0x183f69,..._0x2fad09};const _0x4e65e0=this['addRevisionData'](_0x183f69);_0x2da6f7['push'](_0x183f69);const _0x90311c=this['repository']['getIndex'](_0x4e65e0);if(0x0!==_0x90311c){const _0x313343=this['repository']['getRevision'](_0x90311c-0x1);if(_0x313343['fromVersion']!==_0xcbb00a){const _0x4209d6=this['_revisionDataBuilder']['getData'](_0xcbb00a,_0x313343['toVersion']),_0x2ccb7a={'id':_0x313343['id'],'diffData':_0x4209d6['diffData'],'authorsIds':_0x4209d6['authorsIds'],'authors':_0x4209d6['authorsIds']['map'](_0x3d5c4e=>this['editor']['plugins']['get']('Users')['getUser'](_0x3d5c4e)),'fromVersion':_0xcbb00a};_0x313343===this['currentRevision']&&(_0x2ccb7a['createdAt']=new Date(_0x183f69['createdAt']['getTime']()+0xa)),_0x313343['_update'](_0x2ccb7a,!0x0),delete _0x2ccb7a['authors'],_0x2da6f7['push'](_0x2ccb7a);}}if(this['adapter']){for(const _0x58a3e1 of _0x2da6f7)this['_bufferUpdate'](_0x58a3e1['id'],_0x58a3e1,!0x0);this['sendBufferedUpdates']();}return _0x4e65e0;}['addRevisionData'](_0x280ebc){const _0x25e6c1=this['repository']['createRevision'](_0x280ebc);return this['adapter']&&_0x25e6c1['on']('_update',(_0x5ca8c0,_0xb2a1da,_0x460f77)=>{_0x460f77||(this['_bufferUpdate'](_0xb2a1da['id'],_0xb2a1da,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x25e6c1,this['_findInsertionIndex'](_0x25e6c1)),_0x25e6c1;}async['getRevisionDocumentData'](_0x2544bb){return await this['_utils']['loadRevisionData'](_0x2544bb,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2544bb);}async['getRevisionRootsAttributes'](_0x1ddb72){return await this['_utils']['loadRevisionData'](_0x1ddb72,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1ddb72);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x197999=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x140223=0x0;_0x140223<_0x197999['length'];_0x140223++){const _0x2673c7=_0x197999[_0x140223];let _0x47d29a=!0x1;for(const _0x1d6c6a of Object['keys'](_0x2673c7))void 0x0===_0x2673c7[_0x1d6c6a]?delete _0x2673c7[_0x1d6c6a]:'id'!==_0x1d6c6a&&(_0x47d29a=!0x0);_0x47d29a||(_0x197999[_0x140223]=null);}if(_0x197999=_0x197999['filter'](_0x5832d1=>null!==_0x5832d1),!_0x197999['length'])return;for(let _0x39b58f=0x0;_0x39b58f<_0x197999['length'];_0x39b58f++){const _0x174ff2=_0x197999[_0x39b58f];void 0x0!==_0x174ff2['fromVersion']&&void 0x0===_0x174ff2['toVersion']&&(_0x174ff2['toVersion']=this['repository']['getRevision'](_0x174ff2['id'])['toVersion']),void 0x0!==_0x174ff2['toVersion']&&void 0x0===_0x174ff2['fromVersion']&&(_0x174ff2['fromVersion']=this['repository']['getRevision'](_0x174ff2['id'])['fromVersion']);}const _0x2a9ef1=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x197999,_0x2a9ef1)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x56fbbc=>{if(_0x56fbbc){for(const _0x5e5bc9 of _0x56fbbc)this['setRevisionData']({'id':_0x5e5bc9['id'],'createdAt':_0x5e5bc9['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2b27c6=null,from:_0x2531dd=null,to:_0x29b738=null}){_0x2531dd=null!==_0x2531dd?_0x2531dd:_0x2b27c6['fromVersion'],_0x29b738=null!==_0x29b738?_0x29b738:_0x2b27c6['toVersion'];const _0x99896d=this['_revisionDataBuilder']['getData'](_0x2531dd,_0x29b738),_0x280b11={'diffData':_0x99896d['diffData'],'authorsIds':_0x99896d['authorsIds'],'fromVersion':_0x2531dd,'toVersion':_0x29b738};if(!_0x2b27c6||_0x29b738!==_0x2b27c6['toVersion']){const _0x4e7d11=_0x29b738-0x1,_0x208e26=this['_source']['history']['getOperation'](_0x4e7d11);_0x280b11['createdAt']=_0x208e26&&_0x208e26['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2531dd===this['_loadedStateData']['fromVersion']){for(const _0x4447d5 of this['_loadedStateData']['authors'])_0x280b11['authorsIds']['includes'](_0x4447d5['id'])||_0x280b11['authorsIds']['push'](_0x4447d5['id']);}return _0x280b11;}['_bufferUpdate'](_0x1da45b,_0x3006de,_0x48f527){if(this['_bufferedUpdates']['has'](_0x1da45b)){const _0x3eb0b3=this['_bufferedUpdates']['get'](_0x1da45b);_0x3006de=_0x48f527?{..._0x3eb0b3,..._0x3006de}:{..._0x3006de,..._0x3eb0b3};}this['_bufferedUpdates']['set'](_0x1da45b,_0x3006de);}['setRevisionData'](_0x2af45e){const _0x86a594=this['repository']['getRevision'](_0x2af45e['id']);if(_0x2af45e['createdAt']&&(_0x2af45e['createdAt']=new Date(_0x2af45e['createdAt'])),_0x2af45e['authorsIds']){const _0x185c9e=this['editor']['plugins']['get']('Users');_0x2af45e['authors']=_0x2af45e['authorsIds']['map'](_0x15bfbe=>_0x185c9e['getUser'](_0x15bfbe));}_0x86a594['_update'](_0x2af45e,!0x0);}['_createInitialRevision'](_0xf8bf93){const _0x3bda59=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3bda59)this['_initialRevisionId']=_0x3bda59['id'];else{const _0x372ee4=!this['editor']['model']['document']['roots']['find'](_0x226bbf=>this['editor']['model']['hasContent'](_0x226bbf)),_0x2cd633=this['editor']['plugins']['get']('Users')['me']['id'],_0x5a94f2=m(this['editor']['locale'],_0x372ee4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xf8bf93,'to':_0xf8bf93,'id':this['_initialRevisionId'],'name':_0x5a94f2,'creatorId':_0x2cd633});}}['_createCurrentRevision'](_0x180aa8){const _0x178ed0=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x178ed0),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x180aa8,'to':_0x180aa8,'id':_0x178ed0,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0xf0c4dc,_0x5650ad){let _0x3e95a4=this['editor']['config']['get']('initialData'),_0xa94813=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3e95a4){_0x3e95a4={};for(const _0x16d554 of this['editor']['model']['document']['getRootNames']())_0x3e95a4[_0x16d554]='';}if('string'==typeof _0x3e95a4&&(_0x3e95a4={'main':_0x3e95a4}),void 0x0===_0xa94813){_0xa94813={};for(const _0x1c69fe of this['editor']['model']['document']['getRootNames']())_0xa94813[_0x1c69fe]={};}let _0x2697f8=!0x1;const _0x56b2a9=Object['keys'](_0x3e95a4),_0x326f91=Object['keys'](_0xf0c4dc);for(const _0x1dcf6d of _0x56b2a9){if(_0x3e95a4[_0x1dcf6d]!==_0xf0c4dc[_0x1dcf6d]&&''!==_0x3e95a4[_0x1dcf6d]['trim']()){_0x2697f8=!0x0;break;}if(!_0x55d944(_0xa94813[_0x1dcf6d],_0x5650ad[_0x1dcf6d])&&Object['keys'](_0xa94813[_0x1dcf6d])['length']>0x0){_0x2697f8=!0x0;break;}}_0x2697f8||(_0x2697f8=_0x326f91['some'](_0x3907ea=>!this['editor']['model']['document']['getRoot'](_0x3907ea))),_0x2697f8&&_0x8ad5bb('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3e95a4,'editorRootsAttributes':_0xa94813,'revisionData':_0xf0c4dc,'revisionRootsAttributes':_0x5650ad}),this['editor']['config']['set']('initialData',_0xf0c4dc),this['editor']['config']['set']('rootsAttributes',_0x5650ad);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x478ef7=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x478ef7['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5d21ff){const _0x1af3f9=this['repository']['getRevisions']();_0x1af3f9['reverse']();let _0x5b0949=0x0;for(;_0x5b0949<_0x1af3f9['length'];){const _0x573f02=_0x1af3f9[_0x5b0949];if(_0x573f02===this['currentRevision']){_0x5b0949++;continue;}if(_0x573f02['id']===this['_initialRevisionId'])break;const _0x339bca=_0x5d21ff['toVersion']-_0x573f02['toVersion']||_0x5d21ff['fromVersion']-_0x573f02['fromVersion'];if(_0x339bca>0x0)break;if(_0x339bca<0x0)_0x5b0949++;else{if(!_0x5d21ff['creator']&&_0x573f02['creator'])break;if(_0x573f02['creator']||!_0x5d21ff['creator']){if(_0x5d21ff['createdAt']>_0x573f02['createdAt'])break;_0x5b0949++;}else _0x5b0949++;}}return _0x5b0949;}['_getFromVersion'](_0x3d521b){const _0x2b3f24=this['repository']['getRevisions']();_0x2b3f24['reverse'](),_0x2b3f24['shift']();const _0x32d211=_0x2b3f24['find'](_0x26e9c6=>_0x26e9c6['toVersion']<=_0x3d521b)['toVersion'];return _0x32d211<this['_startingVersion']?this['_startingVersion']:_0x32d211;}['_makeRevision']({name:_0x518ed9,from:_0x36949d,to:_0x39242d,creatorId:_0x5719c6,id:_0x5dd210}){const _0x2c270f=this['buildRevisionData']({'from':_0x36949d,'to':_0x39242d});_0x2c270f['name']=_0x518ed9,_0x2c270f['creatorId']=_0x5719c6,_0x2c270f['id']=_0x5dd210;const _0x1fbb4f=this['addRevisionData'](_0x2c270f);return this['adapter']&&this['_bufferUpdate'](_0x2c270f['id'],_0x2c270f,!0x0),_0x1fbb4f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x11b8f5){this['editor']=_0x11b8f5,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'](_0x24a9f2){this['source']=_0x24a9f2;const _0x3eb336=new Map(),_0x53f77c=new Map(),_0x446698=this['editor']['model']['document']['roots']['map'](_0x2a8c22=>_0x2a8c22['rootName']);for(const _0x5bb799 of _0x446698){const _0x161b22=this['editor']['model']['document']['getRoot'](_0x5bb799),_0x16647f=x(_0x161b22);_0x3eb336['set'](_0x5bb799,_0x16647f),_0x53f77c['set'](_0x5bb799,Object['fromEntries'](_0x161b22['getAttributes']()));}const _0x3ac2d5=Array['from'](this['editor']['model']['markers'])['map'](_0x1023dd=>[_0x1023dd['name'],_0x1023dd['getRange']()]),_0x12038c=this['source']['version'];this['_saveMetaData'](_0x12038c,_0x3eb336,_0x3ac2d5,_0x53f77c),this['_startingRevisionId']=this['_revisionId'];const _0x5b64f4=new Map(),_0x3f5961=new Map();for(const _0x1eb353 of _0x446698){const _0x12a362=N(_0x1eb353);_0x5b64f4['set'](_0x1eb353,_0x12a362),_0x3f5961['set'](_0x1eb353,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5b64f4,[],_0x3f5961);}['getData'](_0x43e390,_0x577675){if(this['_lastFrom']===_0x43e390&&this['_lastTo']<=_0x577675)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x577675,!0x0);else{if(!this['_savedMetaData']['has'](_0x43e390)){const _0x1c5053=this['_getPreviousFrom'](_0x43e390);this['_calculateMetaData'](_0x1c5053,_0x43e390,!0x1);}this['_calculateMetaData'](_0x43e390,_0x577675,!0x0);}return this['_lastFrom']=_0x43e390,this['_lastTo']=_0x577675,this['_getState']();}['loadState'](_0x4f1d68){if(!this['_savedMetaData']['has'](_0x4f1d68['fromVersion'])){const _0x4ac66c=this['_getPreviousFrom'](_0x4f1d68['fromVersion']);this['_calculateMetaData'](_0x4ac66c,_0x4f1d68['fromVersion'],!0x1);}this['_calculateMetaData'](_0x4f1d68['fromVersion'],_0x4f1d68['toVersion'],!0x1);const _0x36924d=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4f1d68['fromVersion'],this['_lastTo']=_0x4f1d68['toVersion'];for(const _0x440a18 in _0x4f1d68['diffData']){const _0x51d4d1=_0x4f1d68['diffData'][_0x440a18]['attachChange'],_0x11e67f=_0x47d9db(_0x4f1d68['diffData'][_0x440a18]['attributesBefore'])||{},_0x2f2bab=_0x36924d['_makeModelFromViewString'](_0x4f1d68['diffData'][_0x440a18]['deletions']);_0x2f2bab['rootName']=_0x440a18,_0x2f2bab['_isAttached']=!_0x51d4d1||!_0x51d4d1['isAttached'],_0x2f2bab['isAttached']=()=>_0x2f2bab['_isAttached'],this['_baseRoots']['set'](_0x440a18,_0x2f2bab),this['_baseRootsAttributes']['set'](_0x440a18,_0x11e67f),_0x51d4d1&&this['_touchedRoots']['set'](_0x440a18,_0x51d4d1);const _0x34ae5e=this['_makeIdsRoot'](_0x2f2bab);this['_baseIdsRoots']['set'](_0x440a18,_0x34ae5e);for(const [_0x1f359e,_0x2659d3]of _0x2f2bab['markers']){if(!_0x1f359e['startsWith']('revision:'))continue;const _0x2d57b2=_0x1f359e['split'](':')[0x2];for(const _0x335d4a of _0x2659d3['getWalker']({'singleCharacters':!0x0})){const _0x39ddaf=this['_getVidAttributeName'](_0x335d4a),_0xab5657='elementEnd'==_0x335d4a['type']?_0x335d4a['previousPosition']['path']['slice'](0x0,-0x1):_0x335d4a['previousPosition']['path'],_0x5b801d=_0x34ae5e['getNodeByPath'](_0xab5657)['getAttribute'](_0x39ddaf);this['_touched']['set'](_0x5b801d,{'userId':_0x2d57b2});}_0x2f2bab['markers']['delete'](_0x1f359e);}}this['_startingRevisionId']=this['_revisionId'];const _0x340fc3=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5bfad=>!this['_touched']['has'](_0x5bfad));let _0x1902d4=0x0;const _0x3e7185=new Map();for(const _0x2e7886 in _0x4f1d68['diffData']){const _0x2d842b=_0x4f1d68['diffData'][_0x2e7886]['attachChange'],_0x29b441=_0x47d9db(_0x4f1d68['diffData'][_0x2e7886]['attributesAfter'])||{},_0x20b110=_0x36924d['_makeModelFromViewString'](_0x4f1d68['diffData'][_0x2e7886]['insertions']);_0x20b110['rootName']=_0x2e7886,_0x20b110['_isAttached']=!_0x2d842b||_0x2d842b['isAttached'],_0x20b110['isAttached']=()=>_0x20b110['_isAttached'],this['_diffRoots']['set'](_0x2e7886,_0x20b110),this['_diffRootsAttributes']['set'](_0x2e7886,_0x29b441);const _0x5efbda=this['_makeIdsRoot'](_0x20b110,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2e7886,_0x5efbda),_0x3e7185['set'](_0x2e7886,_0x20b110['isAttached']()?_0x29b441:{});for(const [_0x21db94,_0x50009b]of _0x20b110['markers']){if(!_0x21db94['startsWith']('revision:'))continue;const _0x10bf65=_0x21db94['split'](':')[0x2];for(const _0x44a54c of _0x50009b['getWalker']({'singleCharacters':!0x0})){const _0x59ac34=this['_getVidAttributeName'](_0x44a54c),_0x56e7fd=this['_revisionId']++,_0x2d2cf7='elementEnd'==_0x44a54c['type']?_0x44a54c['previousPosition']['path']['slice'](0x0,-0x1):_0x44a54c['previousPosition']['path'];_0x5efbda['getNodeByPath'](_0x2d2cf7)['_setAttribute'](_0x59ac34,_0x56e7fd),this['_touched']['set'](_0x56e7fd,{'userId':_0x10bf65});}_0x20b110['markers']['delete'](_0x21db94);}for(const _0x23042 of this['editor']['model']['createRangeIn'](_0x20b110)['getWalker']({'singleCharacters':!0x0})){const _0x23b0f5=this['_getVidAttributeName'](_0x23042),_0x32477f='elementEnd'==_0x23042['type']?_0x23042['previousPosition']['path']['slice'](0x0,-0x1):_0x23042['previousPosition']['path'],_0x3a16c9=_0x5efbda['getNodeByPath'](_0x32477f);_0x3a16c9['getAttribute'](_0x23b0f5)>0x0||_0x3a16c9['_setAttribute'](_0x23b0f5,_0x340fc3[_0x1902d4++]);}for(const [_0x12ecc5,_0x10c813]of _0x20b110['markers'])_0x12ecc5['startsWith']('revision:')||this['_markers']['set'](_0x12ecc5,_0x10c813);}const {roots:_0x2e9940}=this['_savedMetaData']['get'](_0x4f1d68['fromVersion']),{roots:_0x4d1e72}=this['_savedMetaData']['get'](_0x4f1d68['toVersion']),_0x199223=x(_0x2e9940['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x199223),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x199223,Number['NEGATIVE_INFINITY']));const _0x29a59c=x(_0x4d1e72['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x29a59c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x29a59c));const _0x400afa=Array['from'](this['_diffRoots'])['map'](([_0x5a1f08,_0x501dc3])=>[_0x5a1f08,x(_0x501dc3)]);this['_saveMetaData'](this['_lastTo'],_0x400afa,this['_markers'],_0x3e7185);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0xe5b625,_0x4fad1a,_0x572314,_0x57e231){const _0x19d954=new Map(_0x4fad1a),_0x1e2538=new Map(_0x47d9db(_0x57e231)),_0x2416d0=new Map();for(const [_0x17a86c,_0x49229b]of _0x572314)_0x2416d0['set'](_0x17a86c,{'start':_0x49229b['start']['clone'](),'end':_0x49229b['end']['clone'](),'rootName':_0x49229b['root']['rootName']});this['_savedMetaData']['set'](_0xe5b625,{'roots':_0x19d954,'markers':_0x2416d0,'rootsAttributes':_0x1e2538});}['_removeMetaData'](_0x513374){this['_savedMetaData']['delete'](_0x513374);}['_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'](_0x13860b,_0x18364e=null){let _0x1f4ef7=null;_0x13860b['is']('documentFragment')||(_0x1f4ef7=new _0x3412bd(_0x13860b['name'],{'vid_start':null===_0x18364e?this['_revisionId']++:_0x18364e++}));const _0x2c2542=[];for(const _0x29f839 of _0x13860b['getChildren']())if(_0x29f839['is']('element')){_0x2c2542['push'](this['_makeIdsRoot'](_0x29f839,_0x18364e));const _0x4f0849=_0x2c2542[_0x2c2542['length']-0x1];null!==_0x18364e&&(_0x18364e=_0x4f0849['is']('element','$text')?_0x4f0849['getAttribute']('vid')+0x1:_0x4f0849['getAttribute']('vid_end')+0x1);}else{for(let _0x2ef19c=0x0;_0x2ef19c<_0x29f839['offsetSize'];_0x2ef19c++)_0x2c2542['push'](new _0x3412bd('$text',{'vid':null===_0x18364e?this['_revisionId']++:_0x18364e++}));}if(_0x13860b['is']('documentFragment')){const _0x455c7b=N(_0x13860b['rootName']);return _0x455c7b['_insertChild'](0x0,_0x2c2542),_0x455c7b;}return _0x1f4ef7['_setAttribute']('vid_end',null===_0x18364e?this['_revisionId']++:_0x18364e++),_0x1f4ef7['_insertChild'](0x0,_0x2c2542),_0x1f4ef7;}['_calculateMetaData'](_0x338111,_0xd4160e,_0x52d8c1){this['_reset']();const {roots:_0x2f3e28,markers:_0x4d2c72,rootsAttributes:_0x4c9f32}=this['_savedMetaData']['get'](_0x338111);this['_baseRoots']=new Map(_0x2f3e28),this['_baseRootsAttributes']=new Map(_0x47d9db(_0x4c9f32));for(const [_0x4620f8,_0x245b1c]of this['_baseRoots'])if('$graveyard'!==_0x4620f8&&(this['_diffRoots']['set'](_0x4620f8,x(_0x245b1c)),this['_diffRootsAttributes']=new Map(_0x47d9db(_0x4c9f32)),_0x52d8c1)){const _0x105ec1=this['_revisionId'];this['_idsRoots']['set'](_0x4620f8,this['_makeIdsRoot'](_0x245b1c)),this['_baseIdsRoots']['set'](_0x4620f8,this['_makeIdsRoot'](_0x245b1c,_0x105ec1));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x52d8c1&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x44ec29,_0x2427c4]of _0x4d2c72){const _0x514dae=this['_baseRoots']['get'](_0x2427c4['rootName']),_0x20536b=this['_diffRoots']['get'](_0x2427c4['rootName']),_0x30362c=new _0x1f1750(this['_fixPosition'](_0x2427c4['start'],_0x514dae),this['_fixPosition'](_0x2427c4['end'],_0x514dae)),_0x1e21d0=this['_fixRange'](_0x30362c,_0x20536b);_0x514dae['markers']['set'](_0x44ec29,_0x30362c),this['_markers']['set'](_0x44ec29,_0x1e21d0);}this['_applyOperations'](_0x338111,_0xd4160e,_0x52d8c1);}['_applyOperations'](_0x3fb8e3,_0x1c7fc3,_0x482923){for(const _0x38314f of this['source']['getOperations'](_0x3fb8e3,_0x1c7fc3))this['_handleOperation'](_0x38314f,_0x482923);for(const _0x58a046 of this['_diffRoots']['values']())_0x58a046['markers']['clear']();for(const [_0x5b5edf,_0x223e61]of this['_markers']){this['_diffRoots']['get'](_0x223e61['root']['rootName'])['markers']['set'](_0x5b5edf,_0x223e61['clone']());}const _0xb65d7c=new Map(),_0x558e3c=new Map();for(const [_0x3fb8c1,_0xf8c138]of this['_diffRoots'])_0xb65d7c['set'](_0x3fb8c1,x(_0xf8c138)),_0x558e3c['set'](_0x3fb8c1,this['_diffRootsAttributes']['get'](_0x3fb8c1));this['_saveMetaData'](_0x1c7fc3,_0xb65d7c,this['_markers'],_0x558e3c);}['_getPreviousFrom'](_0x4f8fdc){const _0x3c1079=Array['from'](this['_savedMetaData']['keys']());_0x3c1079['sort']((_0x1c683a,_0xb379e2)=>_0x1c683a-_0xb379e2),_0x3c1079['reverse']();for(const _0x50bdd4 of _0x3c1079)if(_0x50bdd4<_0x4f8fdc)return _0x50bdd4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x59fd86,_0x37f485){const _0x149f8e=Array['from'](_0x37f485['markers'])['map'](([_0x871966,_0x342ba1])=>[_0x871966,this['_fixRange'](_0x342ba1,_0x59fd86)]);_0x59fd86['markers']=new Map(_0x149f8e);}['_transformMarkers'](_0x3d2b54){for(const _0x517662 of this['_markers']['values']()){const _0x13c09a=_0x517662['getTransformedByOperation'](_0x3d2b54),_0x5f26b1=_0x1f1750['_createFromRanges'](_0x13c09a);_0x517662['start']=_0x5f26b1['start'],_0x517662['end']=_0x5f26b1['end'];}}['_handleOperation'](_0x59efdd,_0x38f45e){if('addRoot'!=_0x59efdd['type']&&'detachRoot'!=_0x59efdd['type']){if('insert'==_0x59efdd['type']){const _0x451533=_0x59efdd['position']['root']['rootName'];this['_diffRoots']['has'](_0x451533)||(this['_diffRoots']['set'](_0x451533,N(_0x451533,!0x0)),this['_diffRootsAttributes']['set'](_0x451533,{}),_0x38f45e&&this['_idsRoots']['set'](_0x451533,N(_0x451533,!0x0)));}else{if('addRootAttribute'==_0x59efdd['type']||'removeRootAttribute'==_0x59efdd['type']||'changeRootAttribute'==_0x59efdd['type'])return void this['_handleRootAttributeOperation'](_0x59efdd);'marker'==_0x59efdd['type']&&this['_handleMarkerOperation'](_0x59efdd);}if('marker'!==_0x59efdd['type']){const _0x2f415f=this['_cloneOperation'](_0x59efdd,this['_diffRoots']);_0x2f415f['_execute'](),this['_transformMarkers'](_0x2f415f);}if(_0x38f45e)switch(_0x59efdd['type']){case'insert':this['_handleInsertOperation'](_0x59efdd);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x59efdd);break;case'merge':this['_handleMergeOperation'](_0x59efdd);break;case'split':this['_handleSplitOperation'](_0x59efdd);}}else this['_handleRootOperation'](_0x59efdd,_0x38f45e);}['_cloneOperation'](_0x52558d,_0x5bbc1d){const _0x436d21=_0x52558d['clone']();return _0x436d21['_authorId']=_0x52558d['_authorId'],this['_fixOperation'](_0x436d21,_0x5bbc1d),_0x436d21;}['_getBaseVids'](_0x5320c9){return _0x5320c9['map'](_0xe778ea=>{const _0x39764b=this['_getVidAttributeName'](_0xe778ea);return Number(_0xe778ea['item']['getAttribute'](_0x39764b));});}['_generateTape'](_0x5d01ea,_0x542cac){if(_0x5d01ea['is']('element','$text'))_0x542cac['push']({'item':_0x5d01ea,'type':'text'});else{_0x5d01ea['is']('element')&&_0x542cac['push']({'item':_0x5d01ea,'type':'elementStart'});for(const _0x422791 of _0x5d01ea['getChildren']())this['_generateTape'](_0x422791,_0x542cac);_0x5d01ea['is']('element')&&_0x542cac['push']({'item':_0x5d01ea,'type':'elementEnd'});}return _0x542cac;}['_getState'](){const _0x293818=new Map(this['_touched']),_0xea7caa=new Map(_0x293818),_0x1b5dc5=new Map(),_0x3a69e5={'insertions':{},'deletions':{}},_0x2c7ed2={'insertions':{},'deletions':{}},_0x21b8f9=new Map(),_0x1e138e=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1e138e['delete']('$graveyard');for(const _0x1fc3d of _0x1e138e){const _0x287a8b=this['_diffRoots']['get'](_0x1fc3d)||N(_0x1fc3d,!0x1),_0xcfede3=this['_baseRoots']['get'](_0x1fc3d)||N(_0x1fc3d,!0x1);_0x287a8b['isAttached']()||_0xcfede3['isAttached']()?(_0x3a69e5['insertions'][_0x1fc3d]=x(_0x287a8b),_0x3a69e5['deletions'][_0x1fc3d]=x(_0xcfede3),this['_copyMarkers'](_0x3a69e5['deletions'][_0x1fc3d],_0xcfede3),this['_copyMarkers'](_0x3a69e5['insertions'][_0x1fc3d],_0x287a8b),_0x2c7ed2['insertions'][_0x1fc3d]=this['_generateTape'](this['_idsRoots']['get'](_0x1fc3d),[]),_0x2c7ed2['deletions'][_0x1fc3d]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1fc3d)||N(_0x1fc3d,!0x1),[])):_0x1e138e['delete'](_0x1fc3d);}for(const _0x183c53 of _0x1e138e){const _0x22f4b0=_0x2c7ed2['insertions'][_0x183c53];for(const _0xdf267a of _0x22f4b0){const _0x5675df=this['_getVidAttributeName'](_0xdf267a),_0x1f0c44=_0xdf267a['item']['getAttribute'](_0x5675df);_0xea7caa['delete'](_0x1f0c44),_0x1f0c44>=this['_startingRevisionId']&&_0x1b5dc5['set'](_0x1f0c44,_0x293818['get'](_0x1f0c44));}}for(const _0x1de85d of _0x1e138e){const _0x572b27=_0x2c7ed2['insertions'][_0x1de85d],_0x5e7e7f=this['_getBaseVids'](_0x2c7ed2['deletions'][_0x1de85d]);let _0x114c5a=0x0;for(const _0x302659 of _0x572b27){const _0xc1418c=this['_getVidAttributeName'](_0x302659),_0x45c495=_0x302659['item']['getAttribute'](_0xc1418c);if(!_0x1b5dc5['has'](_0x45c495)&&!_0x21b8f9['has'](_0x45c495)){if(_0xea7caa['has'](_0x45c495))_0x114c5a++;else{if(_0x45c495!=_0x5e7e7f[_0x114c5a]){const _0x52272c=_0x293818['get'](_0x45c495)||_0x293818['get'](_0x5e7e7f[_0x114c5a]);for(;_0x45c495!=_0x5e7e7f[_0x114c5a];)_0xea7caa['has'](_0x5e7e7f[_0x114c5a])||(_0x21b8f9['set'](_0x5e7e7f[_0x114c5a],_0x52272c),_0x293818['set'](_0x5e7e7f[_0x114c5a],_0x52272c)),_0x114c5a++;}_0x114c5a++;}}}}for(const _0x1ef58 of _0x1e138e){const _0x3fb076=_0x2c7ed2['insertions'][_0x1ef58];for(const _0x511bbe of _0x3fb076){const _0x13ed07=this['_getVidAttributeName'](_0x511bbe),_0x1a0ecb=_0x511bbe['item']['getAttribute'](_0x13ed07);if(_0x21b8f9['has'](_0x1a0ecb)){const _0x529587=_0x21b8f9['get'](_0x1a0ecb);_0xea7caa['has'](_0x1a0ecb)||_0xea7caa['set'](_0x1a0ecb,{..._0x529587}),_0x1b5dc5['set'](_0x1a0ecb,{..._0x529587});}}}for(const _0x2f730f of _0xea7caa['keys']())_0x2f730f>=this['_startingRevisionId']&&_0xea7caa['delete'](_0x2f730f);const _0x166960=new Map();for(const _0x498e90 of _0x1e138e){let _0xf3b588=_0x2c7ed2['insertions'][_0x498e90];for(const _0x39a6c2 of _0xf3b588)if(_0x39a6c2['item']['is']('element','tableCell')){const _0x146c28=this['_getVidAttributeName'](_0x39a6c2),_0x3134cd=_0x39a6c2['item']['getAttribute'](_0x146c28);if(_0x1b5dc5['has'](_0x3134cd)){const _0x324141=_0x39a6c2['item']['parent']['parent']['getAttribute']('vid_start'),_0x518836=_0x166960['get'](_0x324141)||new Set();_0x518836['add'](_0x1b5dc5['get'](_0x3134cd)['userId']),_0x166960['set'](_0x324141,_0x518836);}}_0xf3b588=_0x2c7ed2['deletions'][_0x498e90];for(const _0x3275eb of _0xf3b588)if(_0x3275eb['item']['is']('element','tableCell')){const _0x437bbb=this['_getVidAttributeName'](_0x3275eb),_0xb5cfd9=_0x3275eb['item']['getAttribute'](_0x437bbb);if(_0xea7caa['has'](_0xb5cfd9)){const _0x36c5fa=_0x3275eb['item']['parent']['parent']['getAttribute']('vid_start'),_0x22d863=_0x166960['get'](_0x36c5fa)||new Set();_0x22d863['add'](_0xea7caa['get'](_0xb5cfd9)['userId']),_0x166960['set'](_0x36c5fa,_0x22d863);}}for(const _0x2f2e2d of _0x166960['keys']())(_0x1b5dc5['has'](_0x2f2e2d)||_0xea7caa['has'](_0x2f2e2d))&&_0x166960['delete'](_0x2f2e2d);}for(const _0x34097d of _0x1e138e){const _0x3468f7=_0x2c7ed2['insertions'][_0x34097d];let _0x5e263b=null,_0x4d3777=null;for(const _0x450ccc of _0x3468f7){const _0x41550c=this['_getVidAttributeName'](_0x450ccc),_0x6ba008=_0x450ccc['item']['getAttribute'](_0x41550c),_0x37736a=_0x166960['get'](_0x6ba008);_0x37736a&&'elementStart'==_0x450ccc['type']&&(_0x5e263b=Array['from'](_0x37736a)[0x0],_0x4d3777=_0x450ccc['item']['getAttribute']('vid_end')),_0x5e263b&&(_0xea7caa['set'](_0x6ba008,{'userId':_0x5e263b}),_0x1b5dc5['set'](_0x6ba008,{'userId':_0x5e263b})),_0x6ba008==_0x4d3777&&(_0x5e263b=null,_0x4d3777=null);}}const _0x11a436={},_0x50f969=new Set();for(const _0xe61cb5 of _0x1e138e){const _0x14c007=_0x3a69e5['deletions'][_0xe61cb5],_0x34a17c=_0x3a69e5['insertions'][_0xe61cb5];for(const {userId:_0xc47def}of this['_touchedMarkers']['values']())null!==_0xc47def&&_0x50f969['add'](_0xc47def);for(const {userId:_0xbe94bf}of this['_touchedRoots']['values']())null!==_0xbe94bf&&_0x50f969['add'](_0xbe94bf);this['_markChanges'](_0x34a17c,_0x2c7ed2['insertions'][_0xe61cb5],_0x1b5dc5,'insertion',_0x50f969),this['_markChanges'](_0x14c007,_0x2c7ed2['deletions'][_0xe61cb5],_0xea7caa,'deletion',_0x50f969),_0x11a436[_0xe61cb5]={'insertions':this['_prepareViewToSave'](_0x34a17c),'deletions':this['_prepareViewToSave'](_0x14c007),'attachChange':this['_touchedRoots']['get'](_0xe61cb5)||null,'attributesBefore':_0x47d9db(this['_baseRootsAttributes']['get'](_0xe61cb5))||{},'attributesAfter':_0x47d9db(this['_diffRootsAttributes']['get'](_0xe61cb5))};}return{'diffData':_0x11a436,'authorsIds':Array['from'](_0x50f969)};}['_processRootBeforeSave'](_0x20d15a){for(const [,_0x494c31]of _0x20d15a['markers']){const _0x4b86fa=_0x494c31['start']['getAncestors']()['filter'](_0x1cc1d4=>'tableCell'==_0x1cc1d4['name']);for(const _0x4a492b of _0x4b86fa)0x1==_0x4a492b['childCount']&&_0x4a492b['getChild'](0x0)['is']('element','paragraph')&&_0x4a492b['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2ec51a){this['_processRootBeforeSave'](_0x2ec51a);const _0x310bc2=this['editor']['data']['toView'](_0x2ec51a,{}),_0x1386b6=Array['from'](_0x310bc2['getChildren']())['map'](_0x4eba6e=>this['_getViewJson'](_0x4eba6e));return JSON['stringify'](_0x1386b6);}['_getViewJson'](_0x5be867){if(_0x5be867['is']('$text'))return _0x5be867['data'];{const _0xf1b01=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5072a2=_0x5be867,_0x4c0390=this['editor']['data']['htmlProcessor']['domConverter'],_0x157615={'type':_0xf1b01['_getTypeCharForViewElement'](_0x5072a2),'name':_0x5072a2['name'],'attributes':Array['from'](_0x5072a2['getAttributes']()),'children':Array['from'](_0x5072a2['getChildren']())['map'](_0xa0a7c3=>this['_getViewJson'](_0xa0a7c3))};if(_0x5be867['is']('uiElement')&&'$comment'!=_0x5be867['name']){const _0xb1d745=_0x5be867['render'](_0x4c0390['domDocument'],_0x4c0390);_0x157615['children']['push'](_0xb1d745['outerHTML']);}else{if(_0x5be867['is']('rawElement')){const _0x426b16=_0x4c0390['domDocument']['createElement'](_0x5072a2['name']);_0x5be867['render'](_0x426b16,_0x4c0390),_0x157615['children']['push'](_0x426b16['innerHTML']);}}const _0xec815=Array['from'](_0x5072a2['getCustomProperties']());_0xec815['length']>0x0&&(_0x157615['customProperties']=_0xec815);const _0x4671a8=_0x5072a2['getFillerOffset']();return null!==_0x4671a8&&(_0x157615['fillerOffset']=_0x4671a8),_0x157615;}}['_markChanges'](_0x520c2e,_0x139fa4,_0x26fe9e,_0x300a5c,_0x2acf75){let _0x20f5c3=null,_0x29c6b0=null,_0x2a743c=0x0;const _0x5ef582=this['editor']['model'];for(let _0x5e363a=0x0;_0x5e363a<_0x139fa4['length'];_0x5e363a++){const _0x35bb79=this['_getVidAttributeName'](_0x139fa4[_0x5e363a]),_0x3f5281=_0x139fa4[_0x5e363a]['item']['getAttribute'](_0x35bb79),_0x1213fa=_0x26fe9e['get'](_0x3f5281),_0x13dd03=_0x5e363a==_0x139fa4['length']-0x1;(!_0x20f5c3&&_0x1213fa&&(_0x20f5c3=_0x1213fa,_0x29c6b0=_0x139fa4[_0x5e363a]),_0x20f5c3&&(!_0x1213fa||_0x1213fa['userId']!=_0x20f5c3['userId']))&&(_0x64a82(_0x1213fa,P(_0x29c6b0,_0x520c2e,_0x5ef582),P(_0x139fa4[_0x5e363a],_0x520c2e,_0x5ef582)),_0x20f5c3=_0x1213fa||null,_0x29c6b0=_0x1213fa?_0x139fa4[_0x5e363a]:null),_0x20f5c3&&_0x13dd03&&_0x64a82(_0x1213fa,P(_0x29c6b0,_0x520c2e,_0x5ef582),V(_0x139fa4[_0x5e363a],_0x520c2e,_0x5ef582));}function _0x64a82(_0xb49b1f,_0x5a35f0,_0x5bd923){const _0x5112c2=_0x20f5c3['userId'],_0x202665='revision:'+_0x300a5c+':'+_0x5112c2+':'+_0x2a743c++,_0x4e2210=_0x5ef582['createRange'](_0x5a35f0,_0x5bd923);_0x520c2e['markers']['set'](_0x202665,_0x4e2210),null!==_0x5112c2&&_0x2acf75['add'](_0x5112c2);}}['_getVidAttributeName'](_0x15633c){switch(_0x15633c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x38ed52,_0x3f7883){_0x38ed52['baseVersion']=null;for(const _0x475c44 in _0x38ed52){const _0x743791=_0x38ed52[_0x475c44];if(_0x743791 instanceof _0x3b8f82){const _0x5423ac=_0x3f7883['get'](_0x743791['root']['rootName']);_0x38ed52[_0x475c44]=this['_fixPosition'](_0x743791,_0x5423ac);}if(_0x743791 instanceof _0x1f1750){const _0x4d52e4=_0x3f7883['get'](_0x743791['root']['rootName']);_0x38ed52[_0x475c44]=this['_fixRange'](_0x743791,_0x4d52e4);}'root'===_0x475c44&&(_0x38ed52['root']=_0x3f7883['get'](_0x38ed52['root']['rootName']));}}['_fixRange'](_0x51db1c,_0x5b44f2){return this['editor']['model']['createRange'](this['_fixPosition'](_0x51db1c['start'],_0x5b44f2),this['_fixPosition'](_0x51db1c['end'],_0x5b44f2));}['_fixPosition'](_0x2a337f,_0x560810){return this['editor']['model']['createPositionFromPath'](_0x560810,_0x2a337f['path'],_0x2a337f['stickiness']);}['_handleInsertOperation'](_0x38b30e){const _0x2fcc1a=this['_idsRoots']['get'](_0x38b30e['position']['root']['rootName']),_0x59215a=this['_fixPosition'](_0x38b30e['position'],_0x2fcc1a),_0x2cb4e4=null===_0x38b30e['_authorId']?null:_0x38b30e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ca55f=_0x59215a['parent'],_0x5c9b3d=this['_revisionId'],_0x39813a=[];for(const _0x4d405b of _0x38b30e['nodes'])if(_0x4d405b['is']('element'))_0x39813a['push'](this['_makeIdsRoot'](_0x4d405b));else{for(let _0x4fd7b3=0x0;_0x4fd7b3<_0x4d405b['offsetSize'];_0x4fd7b3++)_0x39813a['push'](new _0x3412bd('$text',{'vid':this['_revisionId']++}));}const _0x553a5c=this['_revisionId'];for(let _0x23d42f=_0x5c9b3d;_0x23d42f<_0x553a5c;_0x23d42f++)this['_touched']['set'](_0x23d42f,{'userId':_0x2cb4e4});_0x3ca55f['_insertChild'](_0x59215a['offset'],_0x39813a);}['_handleMoveOperation'](_0x38c1e6){(_0x38c1e6=this['_cloneOperation'](_0x38c1e6,this['_idsRoots']))['_execute']();const _0x36f85c=null===_0x38c1e6['_authorId']?null:_0x38c1e6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1803f6=_0x38c1e6['getMovedRangeStart'](),_0x2f8988=_0x1803f6['parent'],_0x34e384=_0x1803f6['offset'];!function _0x4e4941(_0x5e1dfc,_0xb08fb6,_0x2dfb78,_0x575ee5){for(let _0x5a284e=_0x2dfb78;_0x5a284e<_0x575ee5;_0x5a284e++){const _0x51cb5c=_0xb08fb6['getChild'](_0x5a284e);_0x51cb5c['is']('element','$text')?_0x5e1dfc['set'](_0x51cb5c['getAttribute']('vid'),{'userId':_0x36f85c}):(_0x5e1dfc['set'](_0x51cb5c['getAttribute']('vid_start'),{'userId':_0x36f85c}),_0x4e4941(_0x5e1dfc,_0x51cb5c,0x0,_0x51cb5c['childCount']),_0x5e1dfc['set'](_0x51cb5c['getAttribute']('vid_end'),{'userId':_0x36f85c}));}}(this['_touched'],_0x2f8988,_0x34e384,_0x34e384+_0x38c1e6['howMany']);}['_handleMergeOperation'](_0x54b1a6){const _0x1d7031=null===(_0x54b1a6=this['_cloneOperation'](_0x54b1a6,this['_idsRoots']))['_authorId']?null:_0x54b1a6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x466c68=_0x54b1a6['targetPosition']['parent'],_0x1df967=_0x54b1a6['sourcePosition']['parent'],_0x3128f5=_0x466c68['getAttribute']('vid_end'),_0x469d07=_0x1df967['getAttribute']('vid_start');_0x466c68['_setAttribute']('vid_end',_0x1df967['getAttribute']('vid_end')),_0x1df967['_setAttribute']('vid_end',_0x3128f5),this['_touched']['set'](_0x469d07,{'userId':_0x1d7031}),this['_touched']['set'](_0x3128f5,{'userId':_0x1d7031}),_0x54b1a6['_execute']();}['_handleSplitOperation'](_0xde4372){const _0x258010=null===(_0xde4372=this['_cloneOperation'](_0xde4372,this['_idsRoots']))['_authorId']?null:_0xde4372['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf12ac5=_0xde4372['graveyardPosition'],_0x48bcc6=_0xde4372['splitPosition']['parent'];_0xde4372['_execute']();const _0x3061f7=_0x48bcc6['getAttribute']('vid_end'),_0x571848=_0xde4372['insertionPosition']['nodeAfter'];if(_0xf12ac5){const _0x15343d=_0x571848['getAttribute']('vid_end'),_0x300d3a=_0x48bcc6['getAttribute']('vid_end');_0x48bcc6['_setAttribute']('vid_end',_0x15343d),_0x571848['_setAttribute']('vid_end',_0x300d3a),this['_touched']['set'](_0x48bcc6['getAttribute']('vid_end'),{'userId':_0x258010}),this['_touched']['set'](_0x571848['getAttribute']('vid_start'),{'userId':_0x258010});}else{const _0x524c7e=this['_revisionId']++,_0x167b19=this['_revisionId']++;_0x48bcc6['_setAttribute']('vid_end',_0x524c7e),_0x571848['_setAttribute']('vid_start',_0x167b19),_0x571848['_setAttribute']('vid_end',_0x3061f7),this['_touched']['set'](_0x524c7e,{'userId':_0x258010}),this['_touched']['set'](_0x167b19,{'userId':_0x258010});}}['_handleMarkerOperation'](_0x3b862b){if(!_0x3b862b['affectsData'])return;const _0x119ac7=(_0x3b862b=this['_cloneOperation'](_0x3b862b,this['_diffRoots']))['oldRange']?_0x3b862b['oldRange']['root']:null,_0x1b1939=_0x3b862b['newRange']?_0x3b862b['newRange']['root']:null;_0x119ac7&&this['_markers']['delete'](_0x3b862b['name']),_0x1b1939&&this['_markers']['set'](_0x3b862b['name'],_0x3b862b['newRange']['clone']());const _0x4220af=null===_0x3b862b['_authorId']?null:_0x3b862b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb68b74=_0x3b862b['name'];if(!this['_touchedMarkers']['has'](_0xb68b74))return void this['_touchedMarkers']['set'](_0xb68b74,{'range':_0x3b862b['oldRange'],'userId':_0x4220af});const _0xd05683=this['_touchedMarkers']['get'](_0xb68b74),_0x2a2b81=_0xd05683['range'],_0xc54db1=_0x3b862b['newRange'];null==_0x2a2b81&&null==_0xc54db1||_0x2a2b81&&_0xc54db1&&_0x2a2b81['isEqual'](_0xc54db1)?this['_touchedMarkers']['delete'](_0x3b862b['name']):_0xd05683['userId']=_0x4220af;}['_handleRootOperation'](_0x328a33,_0x3a2ed0){this['_diffRoots']['has'](_0x328a33['rootName'])?this['_diffRoots']['get'](_0x328a33['rootName'])['_isAttached']=_0x328a33['isAdd']:(this['_diffRoots']['set'](_0x328a33['rootName'],N(_0x328a33['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x328a33['rootName'],{}),_0x3a2ed0&&this['_idsRoots']['set'](_0x328a33['rootName'],N(_0x328a33['rootName'],!0x0)));const _0x1d3767=null===_0x328a33['_authorId']?null:_0x328a33['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d5b89=this['_touchedRoots']['get'](_0x328a33['rootName']);_0x4d5b89&&_0x4d5b89['userId']===_0x1d3767?this['_touchedRoots']['delete'](_0x328a33['rootName']):this['_touchedRoots']['set'](_0x328a33['rootName'],{'userId':_0x1d3767,'isAttached':_0x328a33['isAdd']});}['_handleRootAttributeOperation'](_0x3b652c){const _0x3db791=this['_diffRootsAttributes']['get'](_0x3b652c['root']['rootName']);null===_0x3b652c['newValue']?delete _0x3db791[_0x3b652c['key']]:_0x3db791[_0x3b652c['key']]=_0x3b652c['newValue'];}}function x(_0x1fc400){const _0x2c8e4b=N(_0x1fc400['rootName'],_0x1fc400['isAttached']());for(const _0x277e7c of _0x1fc400['getChildren']()){const _0x28693d=_0x277e7c['_clone'](!0x0);_0x2c8e4b['_appendChild'](_0x28693d);}return _0x2c8e4b;}function N(_0x1b6f6a,_0x4b11ae=!0x0){const _0x3c7cd9=new _0x57f020();return _0x3c7cd9['rootName']=_0x1b6f6a,_0x3c7cd9['_isAttached']=_0x4b11ae,_0x3c7cd9['isAttached']=()=>_0x3c7cd9['_isAttached'],_0x3c7cd9;}function P(_0x5cc13e,_0x2bb58b,_0x22e598){const _0x344600='elementEnd'==_0x5cc13e['type']?_0x22e598['createPositionAt'](_0x5cc13e['item'],'end'):_0x22e598['createPositionBefore'](_0x5cc13e['item']);return _0x22e598['createPositionFromPath'](_0x2bb58b,_0x344600['path'],_0x344600['stickiness']);}function V(_0x3e69f7,_0x52b606,_0x959ad4){const _0x3daac6='elementStart'==_0x3e69f7['type']?_0x959ad4['createPositionAt'](_0x3e69f7['item'],0x0):_0x959ad4['createPositionAfter'](_0x3e69f7['item']);return _0x959ad4['createPositionFromPath'](_0x52b606,_0x3daac6['path'],_0x3daac6['stickiness']);}class me extends/* #__PURE__ -- @preserve */
25
- _0x27806b(_0x5e6cae){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4c13f0,_0x3aca6f){super(_0x4c13f0),this['focusTracker']=new _0xa8fe33(),this['keystrokes']=new _0x1cbdb3(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3aca6f),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x39e9ed({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x477676=_0x259f07=>_0x259f07['stopPropagation']();this['keystrokes']['set']('arrowright',_0x477676),this['keystrokes']['set']('arrowleft',_0x477676),this['keystrokes']['set']('arrowup',_0x477676),this['keystrokes']['set']('arrowdown',_0x477676);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4fbd16){this['revisionNameInputView']['fieldView']['element']['value']=_0x4fbd16['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x246894){const _0x1520ec=new et(this['locale'],ti),_0x5a8d41=_0x1520ec['fieldView'];_0x5a8d41['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x33e2e0=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x246894&&(_0x33e2e0+='\x20('+m(this['locale'],'optional')+')'),(_0x1520ec['label']=_0x33e2e0,_0x5a8d41['on']('input',()=>{this['revisionNameInputValue']=_0x5a8d41['element']['value']['trim']();}),_0x1520ec);}}class l extends _0x3f3108{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x24be27=this['editor'],_0x3df771=_0x24be27['plugins']['get']('RevisionTracker');_0x24be27['ui']['componentFactory']['add']('revisionHistory',_0x52b1fc=>{const _0x17ca29=_0x4d138e(_0x52b1fc),_0x4f36be=_0x17ca29['panelView']['children'],_0x10bdb0=new _0x29f163(_0x52b1fc),_0x4e66e8=new _0x4667ed(_0x52b1fc),_0x100300=new _0x43acdb(_0x52b1fc),_0x24f440=new _0x4667ed(_0x52b1fc),_0x4b31d0=new _0x43acdb(_0x52b1fc);return _0x17ca29['bind']('isEnabled')['to'](_0x3df771,'isReady',_0x3df771,'isEnabled',_0x24be27,'isReadOnly',(_0x1ee4ad,_0x811ba1,_0x4cd0ab)=>_0x1ee4ad&&_0x811ba1&&!_0x4cd0ab),_0x17ca29['buttonView']['set']({'icon':_0x4e8b44,'label':m(_0x52b1fc,'Revision\x20history'),'tooltip':!0x0}),_0x100300['set']({'label':m(_0x52b1fc,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x100300['bind']('isEnabled')['to'](_0x3df771,'isReady',_0x3df771,'isEnabled',_0x24be27,'isReadOnly',(_0x19031a,_0x4ba7f7,_0x2c8712)=>_0x19031a&&_0x4ba7f7&&!_0x2c8712),_0x100300['on']('execute',()=>this['_showDialog']()),_0x4b31d0['set']({'label':m(_0x52b1fc,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4b31d0['bind']('isEnabled')['to'](_0x3df771,'isReady',_0x24be27,'isReadOnly',(_0x542893,_0x4521b4)=>_0x542893&&!_0x4521b4),_0x4b31d0['on']('execute',()=>{_0x24be27['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x17ca29['isOpen']=!0x1,_0x24be27['editing']['view']['focus']();}),_0x4e66e8['children']['add'](_0x100300),_0x24f440['children']['add'](_0x4b31d0),_0x10bdb0['role']='menu',_0x10bdb0['items']['addMany']([_0x4e66e8,_0x24f440]),_0x4f36be['add'](_0x10bdb0),_0x17ca29;}),_0x24be27['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x56141e=this['editor'],_0x882005=_0x56141e['locale'],_0x4f7b3a=new _0x2d66b1(_0x882005),_0x424b3d=new _0x57e5b7(_0x882005);_0x4f7b3a['buttonView']['set']({'icon':_0x4e8b44,'label':m(_0x882005,'Revision\x20history')});const _0x3e6e41=new _0x3ae0c0(_0x882005,_0x4f7b3a),_0x278648=new _0x3afcd9(_0x882005);_0x278648['set']({'label':m(_0x882005,'Save\x20current\x20revision')}),_0x278648['delegate']('execute')['to'](_0x4f7b3a),_0x278648['on']('execute',()=>{this['_showDialog']();}),_0x3e6e41['children']['add'](_0x278648),_0x424b3d['items']['add'](_0x3e6e41);const _0x375c98=new _0x3ae0c0(_0x882005,_0x4f7b3a),_0x3ff9a3=new _0x3afcd9(_0x882005);return _0x3ff9a3['set']({'label':m(_0x882005,'Open\x20revision\x20history')}),_0x3ff9a3['delegate']('execute')['to'](_0x4f7b3a),_0x3ff9a3['on']('execute',()=>{_0x56141e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x375c98['children']['add'](_0x3ff9a3),_0x424b3d['items']['add'](_0x375c98),_0x4f7b3a['panelView']['children']['add'](_0x424b3d),_0x4f7b3a;}['_showDialog'](){const _0x1ab007=this['editor'],_0x23454e=_0x1ab007['locale'],_0x2ec070=_0x1ab007['plugins']['get']('Dialog'),_0x699ed9=_0x1ab007['plugins']['get']('RevisionTracker');function _0x3fb0cc(_0x3cdf01){_0x1ab007['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3cdf01['revisionName']?_0x3cdf01['revisionNameInputView']['errorText']=m(_0x23454e,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1ab007['plugins']['get'](h)['saveRevision']({'name':_0x3cdf01['revisionName']}),_0x2ec070['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3fb0cc(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2ec070['show']({'id':'revisionSave','title':m(_0x23454e,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x1ab007['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2ec070['hide']()},{'label':m(_0x1ab007['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3ff362){_0x3ff362['bind']('isEnabled')['to'](_0x699ed9,'isReady',_0x699ed9,'isEnabled',_0x1ab007,'isReadOnly',(_0x24584b,_0x1bcdb2,_0x300997)=>_0x24584b&&_0x1bcdb2&&!_0x300997);},'onExecute':()=>_0x3fb0cc(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2c185b=this['editor'],_0x6bad9a=_0x2c185b['locale'];this['_saveRevisionFormView']=new me(_0x6bad9a,_0x2c185b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x5e6cae{['changeId'];['_model'];constructor(_0x4ad4e5,_0x1e5b96){super(_0x4ad4e5),this['_model']=_0x1e5b96,this['changeId']=_0x1e5b96['id'];const _0x1ebd43=this['bindTemplate'],_0x40dc48=m(_0x4ad4e5,_0x1e5b96['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1e5b96['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1e5b96['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1ebd43['to']('type',_0x231725=>'ck-revision-change__'+_0x231725)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x40dc48}]},{'text':'\x20'+_0x1e5b96['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
26
- _0x19ac11(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2e8bb3){super(),this['id']=_0x2e8bb3['id']||_0x196f07(),this['author']=_0x2e8bb3['author'],this['type']=_0x2e8bb3['type'],this['data']=_0x2e8bb3['data']||{},this['rootName']=_0x2e8bb3['rootName'],this['set']('createdAt',_0x2e8bb3['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0xedf03f,_0x54bdc2){this['newRevisionId']=_0xedf03f,this['oldRevisionId']=_0x54bdc2,this['changes']=new _0x579e9c();}['_setChanges'](_0x30b0ea){for(const _0x4df21e of _0x30b0ea)this['changes']['add'](_0x4df21e);}}class u extends _0x3f3108{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x129796,_0x22bbec,S,$];}constructor(_0x477e3b){super(_0x477e3b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),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',(_0x1c180d,_0x3076d5,_0x4d91ce)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2899dd=>{for(const _0xb4238f of this['editor']['editing']['view']['document']['roots'])_0x4d91ce?_0x2899dd['removeClass']('ck-editor__editable__overlay',_0xb4238f):_0x2899dd['addClass']('ck-editor__editable__overlay',_0xb4238f);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x11a01c=>null!==_0x11a01c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x372627,_0x13dd0d,_0x3ebfb3)=>_0x372627&&_0x3ebfb3?_0x13dd0d['changes']['getIndex'](_0x3ebfb3):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5bd91c,_0x5f548b)=>_0x5bd91c?_0x5f548b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x22bbec);}['init'](){const _0x15fa59=this['editor'],_0x4b2470=new rt(_0x15fa59,{'direction':'backward'}),_0x4457b7=new rt(_0x15fa59,{'direction':'forward'});(_0x15fa59['commands']['add']('showPreviousChange',_0x4b2470),_0x15fa59['commands']['add']('showNextChange',_0x4457b7),_0x15fa59['commands']['add']('restoreRevision',new nt(_0x15fa59)),this['on']('change:numberOfChanges',()=>{_0x4b2470['refresh'](),_0x4457b7['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x15fa59['enableReadOnlyMode']('revision-viewer'),_0x15fa59['plugins']['has']('WidgetToolbarRepository'))&&_0x15fa59['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x430f25){return await this['_utils']['loadRevisionData'](_0x430f25,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x430f25);}async['getRevisionRootsAttributes'](_0x5de649){return await this['_utils']['loadRevisionData'](_0x5de649,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5de649);}async['compare'](_0x44ba62,_0x1c5f15,_0x36fa5e=!0x1){if(!this['isEnabled'])return;const _0x4a6063=this['diff'],_0x2c5a74=this['repository'],_0x1ecc68='string'==typeof _0x44ba62?_0x2c5a74['getRevision'](_0x44ba62):_0x44ba62,_0x4a74c1='string'==typeof _0x1c5f15?_0x2c5a74['getRevision'](_0x1c5f15):_0x1c5f15,_0x71f3a6=_0x1ecc68['id'],_0x5d31f9=_0x4a74c1?_0x4a74c1['id']:null;if(!_0x36fa5e&&this['diff']&&this['diff']['newRevisionId']===_0x71f3a6&&this['diff']['oldRevisionId']===_0x5d31f9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x71f3a6,_0x5d31f9);const _0x59d1a5=this['_getRevisionsRange'](_0x1ecc68,_0x4a74c1,!0x0)['map'](_0x1103c5=>this['_utils']['loadRevisionData'](_0x1103c5,this['adapter']));return _0x59d1a5['push'](new Promise(_0x4b81a3=>{setTimeout(_0x4b81a3,0x14);})),Promise['all'](_0x59d1a5)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1955e4=this['_getDiff'](_0x71f3a6,_0x5d31f9);for(const _0xc20d1b of _0x1955e4['changes'])this['_changeIdToChange']['set'](_0xc20d1b['id'],_0xc20d1b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4c9d1a=>{for(const _0xbd4d08 of this['editor']['model']['document']['getRootNames']())_0x4c9d1a['detachRoot'](_0xbd4d08);for(const _0x2d3f7a of Object['keys'](_0x1955e4['model'])){const _0x28bcb6=_0x4c9d1a['addRoot'](_0x2d3f7a);for(const _0x20d9f7 of Object['keys'](_0x1955e4['attributes'][_0x2d3f7a]))_0x4c9d1a['setAttribute'](_0x20d9f7,_0x1955e4['attributes'][_0x2d3f7a][_0x20d9f7],_0x28bcb6);_0x4c9d1a['insert'](_0x1955e4['model'][_0x2d3f7a],_0x28bcb6,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1955e4['changes'])),this['isReady']=!0x0;})['catch'](_0x170044=>{console['error'](_0x170044),this['_cleanUp'](),_0x4a6063&&(this['diff']=_0x4a6063),this['isReady']=!0x0;});}['addRevisionData'](_0xaf9ad8,_0x3fc3c2){const _0x4355a0=this['repository']['createRevision'](_0xaf9ad8);return _0x4355a0['on']('_update',(_0x5267a7,_0x407d8e,_0x21b392)=>_0x3fc3c2(_0x407d8e,_0x21b392,_0x4355a0)),this['repository']['addRevision'](_0x4355a0),_0x4355a0;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2c2cb8=>{for(const _0x1efdb8 of this['editor']['model']['document']['getRootNames']())_0x2c2cb8['detachRoot'](_0x1efdb8);});}['_sortAndFilterDiffChanges'](_0x37262b){const _0x1738fe=[],_0x17a281=new Map();for(const _0x42b640 of this['editor']['model']['document']['getRootNames']()){const _0xefed19=this['editor']['editing']['view']['getDomRoot'](_0x42b640);if(!_0xefed19)continue;const _0x18caa7=_0xefed19['getClientRects']()['item'](0x0);_0x18caa7&&(_0x1738fe['push'](_0x42b640),_0x17a281['set'](_0x42b640,_0x18caa7));}return _0x1738fe['sort']((_0x54a1a9,_0x8b780f)=>{const _0xada4d8=_0x17a281['get'](_0x54a1a9),_0x58bb00=_0x17a281['get'](_0x8b780f);return _0xada4d8['y']-_0x58bb00['y']||_0xada4d8['x']-_0x58bb00['x'];}),(_0x37262b=_0x37262b['filter'](_0x511421=>_0x1738fe['includes'](_0x511421['rootName'])))['sort']((_0x5f5bb3,_0x413e78)=>_0x1738fe['indexOf'](_0x5f5bb3['rootName'])-_0x1738fe['indexOf'](_0x413e78['rootName'])),_0x37262b;}['_makeTape'](_0x2d8899){const _0x1229b7=Array['from'](_0x2d8899['markers'])['filter'](([_0x46e45b,_0x5e94eb])=>_0x46e45b['startsWith']('revision:')&&!_0x5e94eb['isCollapsed']),_0x2a9afd=Array['from'](this['editor']['model']['createRangeIn'](_0x2d8899)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1229b7['length'])for(const _0xe647ca of _0x2a9afd){const [_0x364f9c,_0x4f6459]=_0x1229b7[0x0],[,_0x937016,_0x34ac6e]=_0x364f9c['split'](':');if(_0x4f6459['end']['isEqual'](_0xe647ca['nextPosition'])&&_0x1229b7['shift'](),(_0xe647ca['previousPosition']['isEqual'](_0x4f6459['start'])||_0xe647ca['previousPosition']['isAfter'](_0x4f6459['start']))&&('insertion'==_0x937016?_0xe647ca['isAdded']={'userId':_0x34ac6e}:'deletion'==_0x937016&&(_0xe647ca['isRemoved']={'userId':_0x34ac6e})),0x0==_0x1229b7['length'])break;}return _0x2a9afd;}['_refreshStartEndIndex'](_0x3f776d){const _0x36ec3e=new Map();for(let _0x5724f2=0x0;_0x5724f2<_0x3f776d['length'];_0x5724f2++)'text'===_0x3f776d[_0x5724f2]['type']?(_0x3f776d[_0x5724f2]['item']['startIndex']=_0x5724f2,_0x3f776d[_0x5724f2]['item']['endIndex']=_0x5724f2):('elementStart'===_0x3f776d[_0x5724f2]['type']?_0x3f776d[_0x5724f2]['item']['startIndex']=_0x5724f2:'elementEnd'===_0x3f776d[_0x5724f2]['type']&&(_0x3f776d[_0x5724f2]['item']['endIndex']=_0x5724f2),_0x36ec3e['set'](_0x3f776d[_0x5724f2]['id'],_0x5724f2));for(const _0x3e1a4c of _0x36ec3e['values']())'elementStart'===_0x3f776d[_0x3e1a4c]['type']?_0x3f776d[_0x3e1a4c]['item']['endIndex']=_0x36ec3e['get'](_0x3f776d[_0x3e1a4c]['pairId']):'elementEnd'===_0x3f776d[_0x3e1a4c]['type']&&(_0x3f776d[_0x3e1a4c]['item']['startIndex']=_0x36ec3e['get'](_0x3f776d[_0x3e1a4c]['pairId']));}['_processTape'](_0x32e543){for(let _0x33134b=0x0;_0x33134b<_0x32e543['length'];_0x33134b++){if('elementStart'===_0x32e543[_0x33134b]['type'])_0x32e543[_0x33134b]['item']['startIndex']=_0x33134b;else{if('elementEnd'===_0x32e543[_0x33134b]['type']){_0x32e543[_0x33134b]['item']['endIndex']=_0x33134b;const _0x2320af=_0x32e543[_0x33134b]['item']['startIndex'];_0x32e543[_0x2320af]['pairId']=_0x32e543[_0x33134b]['id'],_0x32e543[_0x33134b]['pairId']=_0x32e543[_0x2320af]['id'];}else _0x32e543[_0x33134b]['item']['startIndex']=_0x33134b,_0x32e543[_0x33134b]['item']['endIndex']=_0x33134b,_0x32e543[_0x33134b]['pairId']=null;}_0x32e543[_0x33134b]['markersStart']||(_0x32e543[_0x33134b]['markersStart']=[],_0x32e543[_0x33134b]['markersEnd']=[]);}}['_markInsertions'](_0x2f8207,_0x47ce2c){const _0x21e685=_0x2f8207['filter'](_0xd928b8=>!_0xd928b8['isAdded']);for(let _0x34a326=0x0;_0x34a326<_0x47ce2c['length'];_0x34a326++)_0x47ce2c[_0x34a326]['isAdded']&&(_0x21e685[_0x34a326]['isAdded']=_0x47ce2c[_0x34a326]['isAdded']);}['_getDiff'](_0x2f8124,_0x2cb601=null){const _0xbf5236=this['repository']['getRevision'](_0x2f8124),_0x2b6bfa=_0x2cb601?this['repository']['getRevision'](_0x2cb601):null,_0x28a88f=this['_getRevisionsRange'](_0xbf5236,_0x2b6bfa),_0x22b9e0=_0x28a88f[_0x28a88f['length']-0x1],_0x214ca7=new Map(),_0x321afc={'model':{},'attributes':{},'changes':[]},_0x4eabae=new Set(),_0x3f9c8b=new Map();for(let _0x23d813=_0x28a88f['length']-0x1;_0x23d813>=0x0;_0x23d813--){const _0x4c252d=_0x28a88f[_0x23d813];for(const _0xaab23b of Object['keys'](_0x4c252d['diffData']))if(_0x4c252d['diffData'][_0xaab23b]['attachChange']){const _0x5acf78=_0x4c252d['diffData'][_0xaab23b]['attachChange'];_0x5acf78['isAttached']?(_0x4eabae['add'](_0xaab23b),_0x3f9c8b['has'](_0xaab23b)&&_0x3f9c8b['get'](_0xaab23b)['userId']==_0x5acf78['userId']?_0x3f9c8b['delete'](_0xaab23b):_0x3f9c8b['set'](_0xaab23b,_0x5acf78)):_0x3f9c8b['has'](_0xaab23b)?(_0x4eabae['delete'](_0xaab23b),_0x3f9c8b['delete'](_0xaab23b)):(_0x4eabae['add'](_0xaab23b),_0x3f9c8b['set'](_0xaab23b,_0x5acf78));}else _0x4eabae['add'](_0xaab23b);}for(const _0x55076d of _0x4eabae){const _0x2c0b4d=_0x3f9c8b['has'](_0x55076d)&&!_0x3f9c8b['get'](_0x55076d)['isAttached'];let _0x59fc18=_0x2c0b4d?_0x28a88f['length']-0x1:0x0;const _0x3a4a03=_0x2c0b4d?-0x1:0x1;for(;_0x28a88f[_0x59fc18];){const _0x35dc79=_0x28a88f[_0x59fc18];if(_0x35dc79['diffData'][_0x55076d]){const _0x53f72b=_0x2c0b4d?_0x35dc79['diffData'][_0x55076d]['attributesBefore']:_0x35dc79['diffData'][_0x55076d]['attributesAfter'];_0x321afc['attributes'][_0x55076d]=_0x53f72b?_0x47d9db(_0x53f72b):{};break;}_0x59fc18+=_0x3a4a03;}}for(const _0x37ea74 of _0x28a88f){_0x37ea74['model']={};for(const _0x257e08 of _0x37ea74['authors'])_0x214ca7['set'](_0x257e08['id'],_0x257e08);for(const _0x45740f of _0x4eabae){const _0x31daf6=_0x37ea74['diffData'][_0x45740f]?_0x37ea74['diffData'][_0x45740f]['insertions']:'[]',_0x238743=_0x37ea74['diffData'][_0x45740f]?_0x37ea74['diffData'][_0x45740f]['deletions']:'[]';_0x37ea74['model'][_0x45740f]={'insertions':this['_utils']['_makeModelFromViewString'](_0x31daf6),'deletions':this['_utils']['_makeModelFromViewString'](_0x238743)};}}for(const _0x2f0113 of _0x4eabae){let _0x3c25e9=null,_0x1c41b3=0x0;const _0x3c5ab8=new Map(Array['from'](_0xbf5236['model'][_0x2f0113]['insertions']['markers'])['filter'](([_0x547c3f])=>!_0x547c3f['startsWith']('revision:')));let _0x12786d=0x0;for(const _0x566451 of _0x28a88f){const _0x15f8bb=this['_makeTape'](_0x566451['model'][_0x2f0113]['insertions']);_0x566451==_0xbf5236?(_0x3c25e9=_0x15f8bb,_0x1c41b3=_0x3c25e9['length'],_0x3c25e9['forEach'](_0x29a77a=>{_0x29a77a['id']=_0x12786d++;}),this['_processTape'](_0x3c25e9)):this['_markInsertions'](_0x3c25e9,_0x15f8bb);const _0x5c532d=_0x3c25e9['filter'](_0x39bbc7=>!_0x39bbc7['isAdded'])['map'](_0x20e448=>_0x20e448['id']);let _0x19885d=0x0;const _0x589293=this['_makeTape'](_0x566451['model'][_0x2f0113]['deletions']);_0x589293['forEach'](_0x5cc47d=>{_0x5cc47d['isRemoved']?_0x5cc47d['id']=_0x1c41b3++:_0x5cc47d['id']=_0x5c532d[_0x19885d++];}),this['_processTape'](_0x589293),this['_setDistance'](_0x3c25e9,'isAdded'),this['_setDistance'](_0x589293,'isRemoved'),_0x566451==_0xbf5236&&this['_markMarkers'](_0x3c25e9,_0x3c5ab8),_0x3c25e9=this['_joinTapes'](_0x3c25e9,_0x589293),this['_refreshStartEndIndex'](_0x3c25e9),this['_setDistance'](_0x3c25e9,'isRemoved');}_0x3c25e9=_0x3c25e9['filter'](_0x1d57c0=>!(_0x1d57c0['isAdded']&&_0x1d57c0['isRemoved']));const _0x20fe3b=new Map(_0x22b9e0['model'][_0x2f0113]['deletions']['markers']),_0x5b8c65=new Set(_0x3c5ab8['keys']());for(const _0x2b9ef0 of _0x20fe3b['keys']())_0x5b8c65['delete'](_0x2b9ef0);this['_markSuggestions'](_0x3c25e9,_0x5b8c65),this['_fixObsoleteTags'](_0x3c25e9),_0x3c25e9=this['_removeMissingPairs'](_0x3c25e9),_0x3c25e9=this['_markMismatchedRemovedTags'](_0x3c25e9),_0x3c25e9=this['_removeUnsupportedChanges'](_0x3c25e9);const {root:_0x4f99c5,changes:_0x206328}=this['_makeModelFromTape'](_0x3c25e9,_0x214ca7,_0x2f0113);_0x321afc['model'][_0x2f0113]=_0x4f99c5;const _0x608eac=_0x3f9c8b['get'](_0x2f0113);if(_0x608eac){const _0x2e32f4=_0x214ca7['get'](_0x608eac['userId']),_0x49873e=new G({'author':_0x2e32f4,'type':_0x608eac['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2f0113});_0x206328['unshift'](_0x49873e),_0x321afc['attributes'][_0x2f0113]['revisionHistoryAttachChange']=_0x49873e['id'];}_0x321afc['changes']=_0x321afc['changes']['concat'](_0x206328);}return _0x321afc;}['_markMarkers'](_0x1f69c3,_0x445807){for(let _0x3a74e7=0x0;_0x3a74e7<_0x1f69c3['length'];_0x3a74e7++)for(const [_0x3b2864,_0x5f33ac]of _0x445807)!_0x5f33ac['isCollapsed']&&_0x5f33ac['start']['isEqual'](_0x1f69c3[_0x3a74e7]['previousPosition'])&&_0x1f69c3[_0x3a74e7]['markersStart']['push'](_0x3b2864),_0x5f33ac['end']['isEqual'](_0x1f69c3[_0x3a74e7]['nextPosition'])&&_0x1f69c3[_0x3a74e7]['markersEnd']['push'](_0x3b2864);}['_joinTapes'](_0x25e3d3,_0x4624b1){let _0x21f715=[],_0x3827b1=0x0,_0x2c68ba=0x0;for(;_0x3827b1<_0x25e3d3['length']||_0x2c68ba<_0x4624b1['length'];){const _0x24b61b=_0x25e3d3[_0x3827b1]||{},_0x535cb6=_0x4624b1[_0x2c68ba]||{};if(_0x24b61b['id']==_0x535cb6['id'])_0x3827b1++,_0x2c68ba++,_0x21f715['push'](_0x24b61b);else{if(_0x535cb6['isRemoved']&&_0x24b61b['isAdded']){const {commonTape:_0x1eddf4,iEnd:_0x16b1cf,jEnd:_0x260192}=this['_threeWayMerge'](_0x25e3d3,_0x3827b1,_0x4624b1,_0x2c68ba);_0x21f715=_0x21f715['concat'](_0x1eddf4),_0x3827b1=_0x16b1cf,_0x2c68ba=_0x260192;}else _0x535cb6['isRemoved']?(_0x2c68ba++,_0x21f715['push'](_0x535cb6)):(_0x3827b1++,_0x21f715['push'](_0x24b61b));}}return _0x21f715;}['_markSuggestions'](_0x13ae5c,_0x1b50df){const _0x106d11=[];for(let _0x24a637=0x0;_0x24a637<_0x13ae5c['length'];_0x24a637++){for(let _0x36ad4d=0x0;_0x36ad4d<_0x13ae5c[_0x24a637]['markersStart']['length'];_0x36ad4d++){const _0x20039e=_0x13ae5c[_0x24a637]['markersStart'][_0x36ad4d];if(!_0x1b50df['has'](_0x20039e))continue;const {group:_0x143bb6,type:_0x1418c0,authorId:_0xb67819}=_0x2cb8cc(_0x20039e);'revision-suggestion'!=_0x143bb6||'insertion'!=_0x1418c0&&'deletion'!=_0x1418c0||(_0x106d11['unshift']({'type':_0x1418c0,'name':_0x20039e,'userId':_0xb67819}),_0x13ae5c[_0x24a637]['markersStart']['splice'](_0x36ad4d,0x1),_0x36ad4d--);}_0x5cac1e(_0x13ae5c[_0x24a637]);for(let _0x56e59a=0x0;_0x56e59a<_0x13ae5c[_0x24a637]['markersEnd']['length'];_0x56e59a++){const _0x1abc0c=_0x13ae5c[_0x24a637]['markersEnd'][_0x56e59a];if(!_0x1b50df['has'](_0x1abc0c))continue;const {group:_0x1d7daa,type:_0x31254a}=_0x2cb8cc(_0x1abc0c);if('revision-suggestion'!=_0x1d7daa||'insertion'!=_0x31254a&&'deletion'!=_0x31254a)continue;_0x13ae5c[_0x24a637]['markersEnd']['splice'](_0x56e59a,0x1),_0x56e59a--;const _0x328cf6=_0x106d11['findIndex'](_0x23711c=>_0x23711c['name']==_0x1abc0c);_0x328cf6>-0x1&&_0x106d11['splice'](_0x328cf6,0x1);}}function _0x2cb8cc(_0x48e82d){const _0x47cb5a=_0x48e82d['split'](':');return{'group':_0x47cb5a[0x0],'type':_0x47cb5a[0x1],'subType':_0x47cb5a['length']>=0x5?_0x47cb5a[0x2]:null,'id':_0x47cb5a['length']<0x5?_0x47cb5a[0x2]:_0x47cb5a[0x3],'authorId':_0x47cb5a['length']<0x5?_0x47cb5a[0x3]:_0x47cb5a[0x4],'markerCount':0x6==_0x47cb5a['length']?_0x47cb5a[0x5]:null};}function _0x5cac1e(_0x979370){for(let _0x32daff=0x0;_0x32daff<_0x106d11['length'];_0x32daff++){if(_0x979370['isAdded']&&'insertion'==_0x106d11[_0x32daff]['type']&&_0x979370['isAdded']['userId']==_0x106d11[_0x32daff]['userId'])return _0x979370['isAddSuggestion']=_0x106d11[_0x32daff],void delete _0x979370['isAdded'];if(!_0x979370['isAdded']&&!_0x979370['isRemoved']&&'deletion'==_0x106d11[_0x32daff]['type'])return void(_0x979370['isRemoveSuggestion']=_0x106d11[_0x32daff]);}}}['_setDistance'](_0x5cae86,_0x48489e){let _0x5487af=0x0,_0x48ba0c=!0x1;const _0x46e416=new Map();for(const _0x536be0 of _0x5cae86)_0x536be0[_0x48489e]?_0x48ba0c&&(_0x5487af++,_0x48ba0c=!0x1):(_0x5487af++,_0x48ba0c=!0x0),_0x46e416['set'](_0x536be0['id'],_0x5487af);for(let _0x43ff94=0x0;_0x43ff94<_0x5cae86['length'];_0x43ff94++){if('isRemoved'==_0x48489e&&_0x5cae86[_0x43ff94]['isAdded']||'isAdded'==_0x48489e&&_0x5cae86[_0x43ff94]['isRemoved'])continue;if('text'==_0x5cae86[_0x43ff94]['type']){_0x5cae86[_0x43ff94]['distance']=0x0;continue;}const _0x5e9b3f=_0x46e416['get'](_0x5cae86[_0x43ff94]['pairId']),_0x225f1f=_0x46e416['get'](_0x5cae86[_0x43ff94]['id']);_0x5cae86[_0x43ff94]['distance']=_0x5e9b3f-_0x225f1f;}}['_getRevisionsRange'](_0x422440,_0x4772f2,_0x3230c8=!0x1){const _0x242357=[];let _0x1f1b20=this['repository']['getIndex'](_0x422440),_0x291b8b=this['repository']['getIndex'](_0x4772f2);for(-0x1==_0x291b8b&&(_0x291b8b=this['repository']['_revisions']['length'],_0x3230c8=!0x1);_0x1f1b20<_0x291b8b;)_0x242357['push'](this['repository']['getRevision'](_0x1f1b20)),_0x1f1b20++;return _0x3230c8&&_0x242357['push'](this['repository']['getRevision'](_0x1f1b20)),_0x242357;}['_threeWayMerge'](_0x46ed76,_0x17a7f4,_0x3d60a9,_0x5f3332){const _0x2520dd=this['editor']['model']['schema'];let _0x549337=_0x17a7f4;for(;_0x46ed76[_0x549337]&&_0x46ed76[_0x549337]['isAdded'];)_0x549337++;let _0x1f2e0d=_0x5f3332;for(;_0x3d60a9[_0x1f2e0d]&&_0x3d60a9[_0x1f2e0d]['isRemoved'];)_0x1f2e0d++;_0x4733b4(_0x46ed76,_0x17a7f4,_0x549337),_0x4733b4(_0x3d60a9,_0x5f3332,_0x1f2e0d);const _0x2078ad=_0x3d60a9['slice'](_0x5f3332,_0x1f2e0d)['concat'](_0x46ed76['slice'](_0x17a7f4,_0x549337));return _0x2078ad['sort']((_0x47a45e,_0x1a84a8)=>_0x47a45e['side']!=_0x1a84a8['side']?_0x47a45e['side']-_0x1a84a8['side']:_0x47a45e['level']!=_0x1a84a8['level']?_0x47a45e['level']-_0x1a84a8['level']:_0x47a45e['distance']!=_0x1a84a8['distance']?_0x1a84a8['distance']-_0x47a45e['distance']:!!_0x47a45e['isAdded']!=!!_0x1a84a8['isAdded']?-0x1==_0x47a45e['side']||0x0==_0x47a45e['side']?_0x47a45e['isAdded']?-0x1:0x1:_0x47a45e['isAdded']?0x1:-0x1:_0x47a45e['index']-_0x1a84a8['index']),{'commonTape':_0x2078ad,'iEnd':_0x549337,'jEnd':_0x1f2e0d};function _0x4733b4(_0x459505,_0x29f4fd,_0x88cea){let _0x5367d6=-0x1,_0x370eb9=Number['POSITIVE_INFINITY'],_0x504c85=!0x0;for(let _0x8385cd=_0x29f4fd;_0x8385cd<_0x88cea;_0x8385cd++)if(_0x2520dd['isInline'](_0x459505[_0x8385cd]['item'])||(_0x504c85=!0x1),_0x459505[_0x8385cd]['item']['startIndex']<_0x29f4fd&&(_0x5367d6=_0x8385cd),_0x459505[_0x8385cd]['item']['endIndex']>=_0x88cea){_0x370eb9=_0x8385cd;break;}_0x504c85&&(_0x5367d6=_0x88cea-0x1);for(let _0x4080e1=_0x29f4fd;_0x4080e1<_0x88cea;_0x4080e1++)_0x459505[_0x4080e1]['side']=_0x4080e1<=_0x5367d6?-0x1:_0x4080e1<_0x370eb9?0x0:0x1,_0x459505[_0x4080e1]['index']=_0x4080e1;let _0x33402f=0x0;for(let _0xbfbda6=_0x29f4fd;_0xbfbda6<=_0x5367d6;_0xbfbda6++)0x0==_0x459505[_0xbfbda6]['distance']?_0x459505[_0xbfbda6]['level']=_0x33402f:(_0x33402f++,_0x459505[_0xbfbda6]['level']=_0x33402f,_0x33402f++);for(let _0x137d2b=_0x29f4fd;_0x137d2b<_0x88cea;_0x137d2b++)0x0==_0x459505[_0x137d2b]['side']&&(_0x459505[_0x137d2b]['level']=_0x33402f);_0x33402f=0x0;for(let _0x50d0ee=_0x88cea-0x1;_0x50d0ee>=_0x370eb9;_0x50d0ee--)0x0==_0x459505[_0x50d0ee]['distance']?_0x459505[_0x50d0ee]['level']=_0x33402f:(_0x33402f--,_0x459505[_0x50d0ee]['level']=_0x33402f,_0x33402f--);}}['_fixObsoleteTags'](_0x4e2f1e){const _0x70f5b8=new Map(),_0x2473e2=this['editor']['model']['schema'];for(let _0xc96cb=0x1;_0xc96cb<_0x4e2f1e['length'];_0xc96cb++){let _0x26b1b9,_0x47de84,_0x23195e;const _0x286b21=_0x4e2f1e[_0xc96cb],_0x2c5acc=_0x4e2f1e[_0xc96cb-0x1];if('text'==_0x286b21['type'])continue;if(_0x286b21['type']!=_0x2c5acc['type'])continue;if(!_0x2473e2['isBlock'](_0x2c5acc['item'])||_0x2473e2['isLimit'](_0x2c5acc['item']))continue;if(!_0x2473e2['isBlock'](_0x286b21['item'])||_0x2473e2['isLimit'](_0x286b21['item']))continue;if((_0x4e2f1e[_0xc96cb]['isAdded']||_0x4e2f1e[_0xc96cb]['isAddSuggestion'])&&_0x4e2f1e[_0xc96cb-0x1]['isRemoved'])_0x26b1b9=_0x4e2f1e[_0xc96cb],_0x47de84=_0x4e2f1e[_0xc96cb-0x1],_0x23195e=_0xc96cb-0x1;else{if(!_0x4e2f1e[_0xc96cb]['isRemoved']||!_0x4e2f1e[_0xc96cb-0x1]['isAdded']&&!_0x4e2f1e[_0xc96cb-0x1]['isAddSuggestion'])continue;_0x26b1b9=_0x4e2f1e[_0xc96cb-0x1],_0x47de84=_0x4e2f1e[_0xc96cb],_0x23195e=_0xc96cb;}const _0x3fbd53=_0x26b1b9['level']==_0x47de84['level'],_0x2dcc66=Math['abs'](_0x26b1b9['level'])<Math['abs'](_0x47de84['level'])&&0x0==_0x47de84['distance'];(_0x3fbd53||_0x2dcc66)&&(_0x70f5b8['set'](_0x47de84['id'],_0x26b1b9['id']),_0x4e2f1e['splice'](_0x23195e,0x1),_0xc96cb--,_0x26b1b9['isAdded']=!0x1);}for(let _0x1a043b=0x0;_0x1a043b<_0x4e2f1e['length'];_0x1a043b++)_0x70f5b8['has'](_0x4e2f1e[_0x1a043b]['pairId'])&&(_0x4e2f1e[_0x1a043b]['pairId']=_0x70f5b8['get'](_0x4e2f1e[_0x1a043b]['pairId']));}['_removeMissingPairs'](_0xe98f5f){const _0x235e49=new Set(_0xe98f5f['map'](_0x384454=>_0x384454['id']));for(let _0x7d8be1=0x0;_0x7d8be1<_0xe98f5f['length'];_0x7d8be1++)_0x235e49['has'](_0xe98f5f[_0x7d8be1]['pairId'])||0x0==_0xe98f5f[_0x7d8be1]['distance']||(_0xe98f5f[_0x7d8be1]['isIncorrect']=!0x0);return _0xe98f5f['filter'](_0x563e6d=>!_0x563e6d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4e4b8){const _0x38fc2c=new Set();for(let _0x4ddab3=0x0;_0x4ddab3<_0x4e4b8['length'];_0x4ddab3++){if(_0x38fc2c['has'](_0x4e4b8[_0x4ddab3]['id'])&&_0x4e4b8[_0x4ddab3]['isRemoved']&&(_0x4e4b8[_0x4ddab3]['isIncorrect']=!0x0),_0x4e4b8[_0x4ddab3]['isIncorrect'])continue;if(0x0==_0x4e4b8[_0x4ddab3]['distance'])continue;if('elementStart'!=_0x4e4b8[_0x4ddab3]['type'])continue;if(null==_0x4e4b8[_0x4ddab3]['pairId'])continue;let _0x44aac6=_0x4ddab3+0x1,_0x5c4f00=0x0;for(;_0x4e4b8[_0x44aac6]['id']!=_0x4e4b8[_0x4ddab3]['pairId'];)'elementStart'==_0x4e4b8[_0x44aac6]['type']?_0x5c4f00++:'elementEnd'==_0x4e4b8[_0x44aac6]['type']&&_0x5c4f00--,_0x44aac6++;if(0x0!=_0x5c4f00){if(_0x4e4b8[_0x4ddab3]['isRemoved'])_0x4e4b8[_0x4ddab3]['isIncorrect']=!0x0;else{for(;_0x44aac6!=_0x4ddab3;)_0x4e4b8[_0x44aac6]['isRemoved']&&0x0!=_0x4e4b8[_0x44aac6]['distance']&&(_0x4e4b8[_0x44aac6]['isIncorrect']=!0x0,_0x38fc2c['add'](_0x4e4b8[_0x44aac6]['pairId'])),_0x44aac6--;}}}return _0x4e4b8['filter'](_0x154855=>!_0x154855['isIncorrect']);}['_removeUnsupportedChanges'](_0x2abc68){const _0x59157c=this['editor']['model']['schema'];for(let _0x34232b=0x0;_0x34232b<_0x2abc68['length'];_0x34232b++){if(!(_0x2abc68[_0x34232b]['isAdded']||_0x2abc68[_0x34232b]['isAddSuggestion']||_0x2abc68[_0x34232b]['isRemoved']||_0x2abc68[_0x34232b]['isRemoveSuggestion']))continue;if(0x0==_0x2abc68[_0x34232b]['distance'])continue;const _0x19b020=_0x2abc68[_0x34232b]['item'];_0x59157c['isBlock'](_0x19b020)||_0x59157c['isLimit'](_0x19b020)||(_0x2abc68[_0x34232b]['isAdded']&&delete _0x2abc68[_0x34232b]['isAdded'],_0x2abc68[_0x34232b]['isAddSuggestion']&&delete _0x2abc68[_0x34232b]['isAddSuggestion'],_0x2abc68[_0x34232b]['isRemoveSuggestion']&&delete _0x2abc68[_0x34232b]['isRemoveSuggestion'],_0x2abc68[_0x34232b]['isRemoved']&&(_0x2abc68[_0x34232b]['isIncorrect']=!0x0));}return _0x2abc68['filter'](_0x28eba2=>!_0x28eba2['isIncorrect']);}['_makeModelFromTape'](_0x584fdb,_0x309c44,_0x1061e7){const _0x54aceb=new _0x57f020(),_0x2e1a6b=[],_0x576064=new Map(),_0x1e66b1=this['editor']['model'],_0x2d0290=_0x1e66b1['schema'],_0x354d5d=[_0x54aceb],_0xa33559={},_0xb51214={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x306941=null;const _0x1d67c6=[0x0];for(let _0x339b79=0x0;_0x339b79<_0x584fdb['length'];_0x339b79++)if('elementStart'===_0x584fdb[_0x339b79]['type']){_0x584fdb[_0x339b79]['previousPosition']=_0x1e66b1['createPositionFromPath'](_0x54aceb,_0x1d67c6);const _0x33831d=new _0x3412bd(_0x584fdb[_0x339b79]['item']['name'],_0x584fdb[_0x339b79]['item']['getAttributes']());_0x354d5d[0x0]['_appendChild'](_0x33831d),_0x1d67c6['push'](0x0),_0x354d5d['unshift'](_0x33831d),_0x584fdb[_0x339b79]['nextPosition']=_0x1e66b1['createPositionFromPath'](_0x54aceb,_0x1d67c6);}else'elementEnd'===_0x584fdb[_0x339b79]['type']?(_0x354d5d['shift'](),_0x584fdb[_0x339b79]['previousPosition']=_0x1e66b1['createPositionFromPath'](_0x54aceb,_0x1d67c6),_0x1d67c6['pop'](),_0x1d67c6[_0x1d67c6['length']-0x1]++,_0x584fdb[_0x339b79]['nextPosition']=_0x1e66b1['createPositionFromPath'](_0x54aceb,_0x1d67c6)):(_0x584fdb[_0x339b79]['previousPosition']=_0x1e66b1['createPositionFromPath'](_0x54aceb,_0x1d67c6),_0x306941?_0x306941['_data']+=_0x584fdb[_0x339b79]['item']['data']:_0x306941=new _0x433cec(_0x584fdb[_0x339b79]['item']['data'],_0x584fdb[_0x339b79]['item']['getAttributes']()),_0x584fdb[_0x339b79+0x1]&&'text'===_0x584fdb[_0x339b79+0x1]['type']&&_0x30894(_0x306941,_0x584fdb[_0x339b79+0x1]['item'])||(_0x354d5d[0x0]['_appendChild'](_0x306941),_0x306941=null),_0x1d67c6[_0x1d67c6['length']-0x1]+=_0x584fdb[_0x339b79]['item']['offsetSize'],_0x584fdb[_0x339b79]['nextPosition']=_0x1e66b1['createPositionFromPath'](_0x54aceb,_0x1d67c6));for(let _0x153516=0x0;_0x153516<_0x584fdb['length'];_0x153516++){const _0x5a0dc5=_0x584fdb[_0x153516]['previousPosition'],_0x2d548f=_0x584fdb[_0x153516]['nextPosition'];for(const _0x448f7f of _0x584fdb[_0x153516]['markersStart'])_0x576064['set'](_0x448f7f,{'start':_0x5a0dc5,'end':null});_0xad4db0('isRemoveSuggestion',_0x153516,_0x5a0dc5,_0x2d548f),_0xad4db0('isAddSuggestion',_0x153516,_0x5a0dc5,_0x2d548f),_0xad4db0('isRemoved',_0x153516,_0x5a0dc5,_0x2d548f),_0xad4db0('isAdded',_0x153516,_0x5a0dc5,_0x2d548f);for(const _0x420e8a of _0x584fdb[_0x153516]['markersEnd']){const _0x93859=_0x576064['get'](_0x420e8a);_0x93859?_0x93859['end']=_0x2d548f:_0x576064['set'](_0x420e8a,{'start':_0x2d548f,'end':_0x2d548f});}}for(const [_0x4c5f7f,_0x3c5dfd]of _0x576064){const _0x4b9794=this['editor']['model']['createRange'](_0x3c5dfd['start'],_0x3c5dfd['end']);_0x54aceb['markers']['set'](_0x4c5f7f,_0x4b9794);}return _0x2e1a6b['sort']((_0x2bfcdd,_0x90984a)=>{const _0x2020ea=_0x54aceb['markers']['get']('revision:'+_0x2bfcdd['id']),_0x2874a0=_0x54aceb['markers']['get']('revision:'+_0x90984a['id']);return _0x2020ea['start']['isBefore'](_0x2874a0['start'])?-0x1:_0x2020ea['start']['isAfter'](_0x2874a0['start'])?0x1:_0x2020ea['end']['isBefore'](_0x2874a0['end'])?-0x1:_0x2020ea['end']['isAfter'](_0x2874a0['end'])?0x1:'add'===_0x2bfcdd['type']?-0x1:0x1;}),{'root':_0x54aceb,'changes':_0x2e1a6b};function _0xad4db0(_0xa4c82b,_0x226d2c,_0x33301b,_0x529f94){const _0x42f868=!!_0x584fdb[_0x226d2c][_0xa4c82b],_0x2da6b4=_0x42f868?_0x584fdb[_0x226d2c][_0xa4c82b]['userId']:null,_0x5300d4=_0x226d2c===_0x584fdb['length']-0x1,_0x471456=_0xb51214[_0xa4c82b][0x0],_0x1613e7=_0x2d0290['isObject'](_0x584fdb[_0x226d2c]['item']);!_0xa33559[_0xa4c82b]&&_0x42f868?_0xa33559[_0xa4c82b]={'start':_0x33301b,'tapeItem':_0x584fdb[_0x226d2c],'userId':_0x2da6b4,'type':_0xa4c82b}:_0xa33559[_0xa4c82b]&&!_0x42f868?(_0xa33559[_0xa4c82b]['end']=_0x33301b,_0x1fde0f(_0xa33559[_0xa4c82b]),_0xa33559[_0xa4c82b]=null):_0xa33559[_0xa4c82b]&&_0x42f868&&_0xa33559[_0xa4c82b]['userId']!==_0x2da6b4&&(_0xa33559[_0xa4c82b]['end']=_0x33301b,_0x471456&&_0x471456['userId']===_0xa33559[_0xa4c82b]['userId']||_0x1fde0f(_0xa33559[_0xa4c82b]),_0xa33559[_0xa4c82b]={'start':_0x33301b,'tapeItem':_0x584fdb[_0x226d2c],'userId':_0x2da6b4,'type':_0xa4c82b}),_0xa33559[_0xa4c82b]&&_0x1613e7&&('elementStart'!==_0x584fdb[_0x226d2c]['type']||_0x471456&&_0x471456['userId']===_0x2da6b4||_0xb51214[_0xa4c82b]['unshift']({'userId':_0x2da6b4,'object':_0x584fdb[_0x226d2c]['item'],'change':_0xa33559[_0xa4c82b]}),'elementEnd'===_0x584fdb[_0x226d2c]['type']&&_0x471456&&_0x471456['object']===_0x584fdb[_0x226d2c]['item']&&(_0xb51214[_0xa4c82b]['shift'](),_0xa33559[_0xa4c82b]=_0x471456['change'])),_0xa33559[_0xa4c82b]&&_0x5300d4&&(_0xa33559[_0xa4c82b]['end']=_0x529f94,_0x1fde0f(_0xa33559[_0xa4c82b]),_0xa33559[_0xa4c82b]=null);}function _0x1fde0f({start:_0x4a6c44,end:_0x42f06c,tapeItem:_0x558f06,userId:_0x3e2c95,type:_0x28d5a9}){const _0x506a53=_0x558f06['item'],_0x58c4c7=_0x1e66b1['schema']['isBlock'](_0x506a53)&&!_0x1e66b1['schema']['isLimit'](_0x506a53),_0xd2e764=_0x4a6c44['nodeAfter']==_0x42f06c['parent']&&_0x42f06c['isAtStart'];if(_0x58c4c7&&_0xd2e764)return;const _0x1ae5e7=_0x1e66b1['createRange'](_0x4a6c44,_0x42f06c),_0x4d0ef3=_0x309c44['get'](_0x3e2c95),_0xf9e0fb=new G({'author':_0x4d0ef3,'type':'isAdded'==_0x28d5a9||'isAddSuggestion'==_0x28d5a9?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x28d5a9||'isRemoveSuggestion'==_0x28d5a9},'createdAt':new Date(),'rootName':_0x1061e7});_0x2e1a6b['push'](_0xf9e0fb),_0x54aceb['markers']['set']('revision:'+_0xf9e0fb['id'],_0x1ae5e7);}function _0x30894(_0x416ef0,_0x23e956){const _0x4ee46e=_0x416ef0['getAttributes'](),_0x780cf0=_0x23e956['getAttributes']();for(const _0x33fa57 of _0x4ee46e){if(_0x33fa57[0x1]!==_0x23e956['getAttribute'](_0x33fa57[0x0]))return!0x1;_0x780cf0['next']();}return _0x780cf0['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2115f7=>{const _0x158fc5=_0x2115f7['markerName']['split'](':')[0x1],_0x285c47=this['_getChangeFromId'](_0x158fc5);if(!_0x285c47)return null;const _0x53dc64='add'==_0x285c47['type']?'insertion':'deletion',_0x3b8b45=['ck-suggestion-marker','ck-suggestion-marker-'+_0x53dc64];return _0x285c47['data']['isSuggestion']&&_0x3b8b45['push']('ck-suggestion-marker-'+_0x53dc64+'-new'),this['activeChange']==_0x285c47&&_0x3b8b45['push']('ck-suggestion-marker--active'),{'classes':_0x3b8b45,'attributes':{'data-change-id':_0x158fc5}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1b7533=>{_0x1b7533['on']('element:pre',(_0x537a06,_0x5018a1,_0x20323a)=>{const _0x1419dd=_0x5018a1['viewItem']['getChild'](0x0);if(!_0x1419dd||!_0x1419dd['is']('element','code'))return;if(!_0x20323a['consumable']['consume'](_0x1419dd,{'attributes':['vid_start','vid_end']}))return;const _0x5c9806=_0x5018a1['modelRange']['start']['nodeAfter'];_0x20323a['writer']['setAttribute']('vid_start',_0x1419dd['getAttribute']('vid_start'),_0x5c9806),_0x20323a['writer']['setAttribute']('vid_end',_0x1419dd['getAttribute']('vid_end'),_0x5c9806);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x17cd11=>{_0x17cd11['on']('element',(_0xcceeef,_0x37c708,_0x5b43c2)=>{if(!_0x5b43c2['consumable']['consume'](_0x37c708['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x37c708['modelRange']['isCollapsed'])return;const _0x5d586f=_0x37c708['modelRange']['start']['nodeAfter'];_0x5d586f['hasAttribute']('vid_start')||_0x5d586f['hasAttribute']('vid')||(_0x5b43c2['writer']['setAttribute']('vid_start',_0x37c708['viewItem']['getAttribute']('vid_start'),_0x5d586f),_0x5b43c2['writer']['setAttribute']('vid_end',_0x37c708['viewItem']['getAttribute']('vid_end'),_0x5d586f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xceab27=>_0xceab27['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4ac217,[,_0xb8c2e4])=>{['vid_start','vid_end','vid']['includes'](_0xb8c2e4)&&(_0x4ac217['return']=!0x0,_0x4ac217['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4de943=>{_0x4de943['on']('attribute:vid',(_0x22b4cf,_0x13abb1,_0x19f850)=>{if('\x20'!=_0x13abb1['item']['data']||_0x13abb1['item']['parent']['maxOffset']>0x1)return;if(!_0x19f850['consumable']['consume'](_0x13abb1['item'],_0x22b4cf['name']))return;const _0x1ce5d9=_0x19f850['writer'],_0x3324c6=_0x19f850['mapper']['toViewRange'](_0x13abb1['range']);_0x1ce5d9['wrap'](_0x3324c6,_0x1ce5d9['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3ff53a){const _0x2ded87=_0x3ff53a['plugins']['get']('RevisionViewer');return(_0x548240,_0x1e695e,_0x1d5c8a)=>{const _0x27f0fb=_0x1e695e['markerName']['split'](':')[0x1],_0x31094f=_0x2ded87['_getChangeFromId'](_0x27f0fb);if(!_0x31094f)return null;const _0x3a57a7='add'==_0x31094f['type']?'split':'merge';if(!_0x1d5c8a['consumable']['test'](_0x1e695e['markerRange'],_0x548240['name']))return;const _0x56c085=_0x1e695e['markerRange']['getWalker'](),_0x1a09b9=_0x1e695e['markerRange']['start'],_0x35f23f=_0x3ff53a['model']['schema'];let _0x55c5a0=null,_0x4bbf1a=null,_0x500f3d=!0x1,_0x2a1db9=!0x1;for(const _0xe19511 of _0x56c085){const _0x2b71c3=_0xe19511['item'];_0x500f3d=_0x500f3d||_0x35f23f['isContent'](_0x2b71c3);const _0x5eac67=_0x1d5c8a['mapper']['toViewElement'](_0x2b71c3);if(_0x5eac67&&_0x5eac67['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xe19511['type']&&(_0x35f23f['isBlock'](_0x2b71c3)&&!_0x35f23f['isLimit'](_0x2b71c3)&&(_0x2b71c3['nextSibling']||_0x1a09b9['isAtEnd']?_0x55c5a0&&_0x55c5a0['parent']==_0x2b71c3||(_0x55c5a0=_0x2b71c3,_0x2bad02(_0xe19511['previousPosition']),_0x2a1db9=!0x0):_0x4bbf1a=_0x4bbf1a||_0xe19511['previousPosition']));}function _0x2bad02(_0x91511c){const _0x94e38d=_0x1d5c8a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a57a7}),_0x8dc327=_0x1d5c8a['mapper']['toViewPosition'](_0x91511c);_0x31094f['data']['isSuggestion']&&_0x1d5c8a['writer']['addClass']('ck-suggestion-marker-'+_0x3a57a7+'-new',_0x94e38d),_0x2ded87['activeChange']==_0x31094f&&_0x1d5c8a['writer']['addClass']('ck-suggestion-marker--active',_0x94e38d),_0x1d5c8a['writer']['insert'](_0x8dc327,_0x94e38d),_0x1d5c8a['mapper']['bindElementToMarker'](_0x94e38d,_0x1e695e['markerName']);}_0x500f3d||_0x2a1db9||!_0x4bbf1a||_0x2bad02(_0x4bbf1a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x410893,_0x3d5aaa,_0x4bf958)=>{const _0xc5f983=_0x4bf958['mapper']['markerNameToElements'](_0x3d5aaa['markerName']);if(_0xc5f983){for(const _0x25cfe3 of _0xc5f983)(_0x25cfe3['hasClass']('ck-suggestion-marker-split')||_0x25cfe3['hasClass']('ck-suggestion-marker-merge'))&&(_0x4bf958['mapper']['unbindElementFromMarkerName'](_0x25cfe3,_0x3d5aaa['markerName']),_0x4bf958['writer']['remove'](_0x25cfe3));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x22da15,_0x3e9205,_0x1afec5)=>{const _0x3caa5b=_0x3e9205['markerName']['split'](':')[0x1],_0x46fc44=this['_getChangeFromId'](_0x3caa5b);if(!_0x46fc44)return null;const _0x459673='add'==_0x46fc44['type']?'split':'merge';if(_0x1afec5['consumable']['test'](_0x3e9205['markerRange'],_0x22da15['name']))for(const _0x5d6254 of _0x3e9205['markerRange']['getItems']()){if(!_0x5d6254['is']('element','softBreak'))continue;const _0x30a0dd=_0x1afec5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x459673}),_0x2b503c=_0x1afec5['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5d6254));_0x46fc44['data']['isSuggestion']&&_0x1afec5['writer']['addClass']('ck-suggestion-marker-'+_0x459673+'-new',_0x30a0dd),this['activeChange']==_0x46fc44&&_0x1afec5['writer']['addClass']('ck-suggestion-marker--active',_0x30a0dd),_0x1afec5['writer']['insert'](_0x2b503c,_0x30a0dd),_0x1afec5['mapper']['bindElementToMarker'](_0x30a0dd,_0x3e9205['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5b5447=>{for(const _0x640f96 of this['editor']['model']['document']['getRootNames']()){const _0x1d2365=this['editor']['model']['document']['getRoot'](_0x640f96),_0x14ab28=this['editor']['editing']['view']['document']['getRoot'](_0x640f96);if(_0x14ab28){const _0x211214=_0x1d2365['getAttribute']('revisionHistoryAttachChange');if(_0x5b5447['removeAttribute']('data-change-id',_0x14ab28),_0x5b5447['removeClass']('ck-revision-history-root-add',_0x14ab28),_0x5b5447['removeClass']('ck-revision-history-root-remove',_0x14ab28),_0x5b5447['removeClass']('ck-revision-history-root--active',_0x14ab28),_0x211214){const _0x44bde1=this['_getChangeFromId'](_0x211214);if(!_0x44bde1)return null;_0x5b5447['setAttribute']('data-change-id',_0x211214,_0x14ab28),_0x5b5447['addClass']('ck-revision-history-root-'+_0x44bde1['type'],_0x14ab28),this['activeChange']==_0x44bde1&&_0x5b5447['addClass']('ck-revision-history-root--active',_0x14ab28);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4200c9=>'revision-comment:'+_0x4200c9,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x222764=>'revision-suggestion:'+_0x222764,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3853fe=>({'name':'suggestion:'+_0x3853fe,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x35510a=>{const _0x3f61f9=_0x35510a['markerName']['split'](':')[0x1];return'insertion'!=_0x3f61f9&&'deletion'!=_0x3f61f9?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3f61f9]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x5225f8,_0x5361a5,_0x592978)=>{const _0x2ce9e8=_0x592978['mapper']['markerNameToElements'](_0x5361a5['markerName']);if(_0x2ce9e8){for(const _0x263ba1 of _0x2ce9e8)_0x263ba1['is']('uiElement')&&(_0x592978['mapper']['unbindElementFromMarkerName'](_0x263ba1,_0x5361a5['markerName']),_0x592978['writer']['remove'](_0x263ba1));}},{'priority':'high'});}['_getChangeFromId'](_0x9f0c3e){return this['_changeIdToChange']['get'](_0x9f0c3e);}['_getViewForChange'](_0x7e56ea){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x7e56ea),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4ff3f2,_0x3ead4b,_0x276f7a,_0xbc890b)=>{_0xbc890b&&this['_balloon']['remove'](_0xbc890b),_0x276f7a&&(this['_balloon']['add']({'view':_0x276f7a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1d3d60=this['editor']['editing'],_0x1b2460=this['_getChangeFromId'](_0x276f7a['changeId']);let _0x2a51a7;if(_0x1b2460['data']['isOnRoot']){const _0x39d7cc=_0x1d3d60['view']['getDomRoot'](_0x1b2460['rootName']);_0x2a51a7=Array['from'](_0x39d7cc['getClientRects']());}else{const _0x1c07ca=this['editor']['model']['markers']['get']('revision:'+_0x276f7a['changeId']);_0x2a51a7=Array['from'](_0x1d3d60['mapper']['markerNameToElements'](_0x1c07ca['name']))['map'](_0xb128fd=>_0x1d3d60['view']['domConverter']['mapViewToDom'](_0xb128fd))['map'](_0x988c7c=>Array['from'](_0x988c7c['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2a51a7[0x0];return _0x2a51a7['find'](_0x1ebd87=>_0x1ebd87['top']-0x3<=this['_activeViewTarget']['y']&&_0x1ebd87['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1ebd87['left']-0x3<=this['_activeViewTarget']['x']&&_0x1ebd87['right']+0x3>=this['_activeViewTarget']['x'])||_0x2a51a7[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3f7464,_0x46a30e,_0x5bf754,_0x20de02)=>{this['activeView']=_0x5bf754?this['_getViewForChange'](_0x5bf754):null,this['editor']['model']['change'](()=>{const _0x4a2842=this['editor']['editing'];_0x20de02&&(_0x20de02['data']['isOnRoot']?_0x4a2842['view']['change'](_0x357a74=>{_0x357a74['removeClass']('ck-revision-history-root--active',_0x4a2842['view']['document']['getRoot'](_0x20de02['rootName']));}):_0x4a2842['reconvertMarker']('revision:'+_0x20de02['id'])),_0x5bf754&&(_0x5bf754['data']['isOnRoot']?_0x4a2842['view']['change'](_0x2fd8d3=>{_0x2fd8d3['addClass']('ck-revision-history-root--active',_0x4a2842['view']['document']['getRoot'](_0x5bf754['rootName']));}):_0x4a2842['reconvertMarker']('revision:'+_0x5bf754['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3ea4b5,_0x2f1c1b)=>{if(this['activeChange'])return;const _0x1ebfd2=this['_findChangeIdFromDomTarget'](_0x2f1c1b['target']),_0x1c2671=this['_changeIdToChange']['get'](_0x1ebfd2);_0x1c2671?(this['_activeViewTarget']={'x':_0x2f1c1b['domEvent']['x'],'y':_0x2f1c1b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1c2671)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5b8c58,_0x2d4a36)=>{const _0x494a16=this['_findChangeIdFromDomTarget'](_0x2d4a36['target']),_0x13bc5d=this['_changeIdToChange']['get'](_0x494a16);_0x13bc5d?(this['_activeViewTarget']={'x':_0x2d4a36['domEvent']['x'],'y':_0x2d4a36['domEvent']['y']},_0x13bc5d===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x13bc5d):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x257d1e){do{const _0x415fa1=_0x257d1e['getAttribute']('data-change-id');if(_0x415fa1)return _0x415fa1;_0x257d1e=_0x257d1e['parent'];}while(_0x257d1e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x813a2=>{for(const _0x395f07 of this['editor']['model']['markers'])_0x813a2['removeMarker'](_0x395f07);});}}function Q(_0x4340e9,_0x146802){return(_0x48f94a,_0x47bb60,_0x26cab4)=>{if(!_0x26cab4['consumable']['test'](_0x47bb60['markerRange'],_0x48f94a['name']))return;const _0xd72368=_0x47bb60['markerRange']['getWalker'](),_0x483c1a=_0x47bb60['markerRange']['start'],_0x1f6cba=_0x4340e9['model']['schema'];let _0x4d4c09=null,_0x5ccdcc=null,_0x1fdd5e=!0x1,_0x48d55c=!0x1;for(const _0x4b2bc1 of _0xd72368){const _0x54a50b=_0x4b2bc1['item'];_0x1fdd5e=_0x1fdd5e||_0x1f6cba['isContent'](_0x54a50b);const _0x4c35cd=_0x26cab4['mapper']['toViewElement'](_0x54a50b);if(_0x4c35cd&&_0x4c35cd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4b2bc1['type']&&(_0x1f6cba['isBlock'](_0x54a50b)&&!_0x1f6cba['isLimit'](_0x54a50b)&&(_0x54a50b['nextSibling']||_0x483c1a['isAtEnd']?_0x4d4c09&&_0x4d4c09['parent']==_0x54a50b||(_0x4d4c09=_0x54a50b,_0x18e1a8(_0x4b2bc1['previousPosition']),_0x48d55c=!0x0):_0x5ccdcc=_0x5ccdcc||_0x4b2bc1['previousPosition']));}function _0x18e1a8(_0x45759a){const _0x933eaf=_0x26cab4['mapper']['toViewPosition'](_0x45759a),_0x56bd26=_0x26cab4['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x146802});_0x26cab4['writer']['insert'](_0x933eaf,_0x56bd26),_0x26cab4['mapper']['bindElementToMarker'](_0x56bd26,_0x47bb60['markerName']);}_0x1fdd5e||_0x48d55c||!_0x5ccdcc||_0x18e1a8(_0x5ccdcc);};}class nt extends _0x38961a{constructor(_0x33e14c){super(_0x33e14c);const _0x708759=_0x33e14c['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x708759,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x708759,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x57a8c1=this['editor'],_0x16bbf2=_0x57a8c1['plugins']['get'](u),_0x3f21ac=_0x16bbf2['isReady']?_0x16bbf2['diff']['newRevisionId']:null;_0x57a8c1['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3f21ac);}['refresh'](){const {isReady:_0x21d4c3,isEnabled:_0x5306d0,repository:_0x9c0871,diff:_0x3c41d4}=this['editor']['plugins']['get'](u),_0x4adee9=_0x3c41d4&&_0x9c0871['getLaterVisibleRevision'](_0x3c41d4['newRevisionId']);this['isEnabled']=_0x21d4c3&&_0x5306d0&&Boolean(_0x4adee9);}}class rt extends _0x38961a{['_step'];constructor(_0x2a07d3,{direction:_0x5524ca}){super(_0x2a07d3);const _0x1a01b7=_0x2a07d3['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x5524ca?0x1:-0x1,this['listenTo'](_0x1a01b7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1a01b7,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1a01b7,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x57f508=this['editor'],_0x26b5e5=_0x57f508['plugins']['get'](u),{isNavigationMode:_0x542c73,currentChangeNumber:_0x177d51}=_0x26b5e5;let _0x553283;if(_0x26b5e5['activeChange']=_0x542c73?_0x26b5e5['diff']['changes']['get'](_0x177d51+this['_step']):_0x26b5e5['diff']['changes']['first'],_0x26b5e5['activeChange']['data']['isOnRoot'])_0x553283=_0x57f508['editing']['view']['getDomRoot'](_0x26b5e5['activeChange']['rootName']);else{const _0x3cc901=_0x57f508['model']['markers']['get']('revision:'+_0x26b5e5['activeChange']['id']);_0x553283=_0x2e7288(_0x57f508['editing'],_0x3cc901);}_0xc18934({'target':_0x553283,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x295ddc,currentChangeNumber:_0x512a7d,numberOfChanges:_0x166036,isReady:_0xb6cf15,isEnabled:_0x18b18e}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x18b18e&&_0xb6cf15&&_0x166036)&&(!_0x295ddc||(0x1===this['_step']?_0x512a7d<_0x166036-0x1:_0x512a7d>0x0));}}class Ri extends _0x5e6cae{constructor(_0xcc4b53){super(_0xcc4b53);const _0x1021dd=this['bindTemplate'],_0x4d8244=new _0x43acdb(_0xcc4b53),_0x283cf2=new _0x43acdb(_0xcc4b53);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',(_0xa8bd60,_0x650992)=>_0xa8bd60&&_0x650992>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3de17b,_0x2f16f8,_0x217e06,_0x30f968)=>{if(!_0x3de17b)return m(_0xcc4b53,'Loading...');if(!_0x217e06)return m(_0xcc4b53,'No\x20changes');const _0x1b9634=m(_0xcc4b53,'NUMBER_OF_CHANGES',_0x217e06);return _0x30f968?m(_0xcc4b53,'X_OF_Y_CHANGES',[_0x2f16f8+0x1,_0x217e06]):_0x1b9634;}),_0x4d8244['set']({'label':m(_0xcc4b53,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xbfae62}),_0x283cf2['set']({'label':m(_0xcc4b53,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x49d392}),_0x4d8244['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x283cf2['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4d8244['on']('execute',()=>this['fire']('execute','backward')),_0x283cf2['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',_0x1021dd['if']('_isStatusLabelVisible','ck-hidden',_0x31ba1b=>!_0x31ba1b)]},'children':[{'text':_0x1021dd['to']('isNavigationMode',_0x46d4f3=>_0x46d4f3?m(_0xcc4b53,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0xcc4b53,'Total')+':\x20')}]},{'text':_0x1021dd['to']('_statusText')}]},new _0x1fb469(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4d8244,_0x283cf2]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x3f3108{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x445598=this['editor']['editing']['view'];_0x445598['change'](_0x1e61d5=>{for(const _0x1e3f7b of _0x445598['document']['roots'])_0x1e61d5['addClass'](ge,_0x1e3f7b);});}['hide'](){const _0x39d871=this['editor']['editing']['view'];_0x39d871['change'](_0x17d550=>{for(const _0x50e0d4 of _0x39d871['document']['roots'])_0x17d550['removeClass'](ge,_0x50e0d4);});}}class v extends _0x3f3108{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x33e1af=this['editor'],_0x212aca=_0x33e1af['plugins']['get'](u),_0x15dd69=_0x33e1af['plugins']['get'](ji);_0x33e1af['ui']['componentFactory']['add']('exitToEditing',_0x54ea11=>{const _0x1b916d=new _0x43acdb(_0x54ea11);return _0x1b916d['set']({'label':m(_0x54ea11,'Back\x20to\x20editing'),'icon':_0x4918d0,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1b916d,'execute',()=>{_0x33e1af['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1b916d;}),_0x33e1af['ui']['componentFactory']['add']('restoreRevision',_0x508708=>{const _0x400f9e=new _0x43acdb(_0x508708);return _0x400f9e['set']({'label':m(_0x508708,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x400f9e['bind']('isEnabled')['to'](_0x33e1af['commands']['get']('restoreRevision')),this['listenTo'](_0x400f9e,'execute',()=>_0x33e1af['execute']('restoreRevision')),_0x400f9e;}),_0x33e1af['ui']['componentFactory']['add']('changesNavigation',_0x5a0306=>{const _0x7c36c=new Ri(_0x5a0306),_0x548e77=_0x33e1af['commands']['get']('showPreviousChange'),_0x475fb4=_0x33e1af['commands']['get']('showNextChange');return _0x7c36c['bind']('isBackwardNavigationEnabled')['to'](_0x548e77,'isEnabled'),_0x7c36c['bind']('isForwardNavigationEnabled')['to'](_0x475fb4,'isEnabled'),_0x7c36c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x212aca),this['listenTo'](_0x7c36c,'execute',(_0x166008,_0x18f3f8)=>{_0x33e1af['execute']('forward'===_0x18f3f8?'showNextChange':'showPreviousChange');}),_0x7c36c;}),_0x15dd69['show'](),_0x212aca['on']('change:isReady',(_0x22d839,_0x4f60a6,_0x46d813)=>{_0x46d813?_0x15dd69['hide']():_0x15dd69['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x13e08a,_0xcb48ec){super(_0x13e08a,_0xcb48ec);const _0x86907b=this['bindTemplate'];this['set']({'label':m(_0x13e08a,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x13e08a,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x86907b['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4c9ac5=this['fieldView']['element'];this['_tooltipString']=_0x4c9ac5['scrollWidth']>_0x4c9ac5['clientWidth']&&_0x4c9ac5['value']||'';}}class ni extends _0x5e6cae{constructor(_0xf857e1,_0x4a4424,_0x242e6d){super(_0xf857e1);const _0x32a6c0=new _0x5e95ee();_0x32a6c0['set']({'content':_0x3dce27,'viewBox':'0\x200\x2011\x2010'});const _0x3759a1=['ck','ck-revision-history-sidebar__revision-author'];_0x242e6d&&_0x3759a1['push']('ck-revision-history-sidebar__revision-author_creator');const _0x915607=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0xf857e1,_0x242e6d?'Revision\x20creator':'Revision\x20author')},'children':[_0x32a6c0,_0x4a4424['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3759a1},'children':_0x915607});}}function ai(_0x33ffaf,_0x4089fe){const _0x49035f=_0x33ffaf['bindTemplate'],_0x197258=_0x33ffaf['locale'],_0x296f6e=_0x4d138e(_0x197258);_0x296f6e['panelPosition']='sw';const _0x3197a9=function(_0x107422,_0x162335){const _0x3a0c34=function(_0x24539c,_0x3878fd){const _0x1b7ad5=_0x24539c['locale'],_0x243b46={'Compare\x20against\x20selected':m(_0x1b7ad5,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x1b7ad5,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x1b7ad5,'Restore\x20this\x20revision')};return _0x3878fd['map'](_0x5abaa3=>{const _0x325535=_0x243b46[_0x5abaa3['name']];return _0x325535&&_0x325535!==_0x5abaa3['name']&&(_0x5abaa3['name']=_0x325535),_0x5abaa3;});}(_0x107422,_0x162335),_0x41be84=new _0x579e9c();for(const _0x36a6c1 of _0x3a0c34){const _0x2f83a4={'type':'button','model':new to({'label':_0x36a6c1['name'],'class':_0x36a6c1['class'],'withText':!0x0,'role':'menuitem','_action':_0x36a6c1['action']})};_0x2f83a4['model']['bind']('isEnabled')['to'](_0x107422,'isActionsDropdownOpen',_0x2d6adc=>'function'!=typeof _0x36a6c1['isEnabled']||(!_0x2d6adc||_0x36a6c1['isEnabled'](_0x107422))),_0x41be84['add'](_0x2f83a4);}return _0x41be84;}(_0x33ffaf,_0x4089fe);return _0x33ffaf['bind']('isActionsDropdownOpen')['to'](_0x296f6e,'isOpen'),_0x296f6e['buttonView']['set']({'label':m(_0x197258,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x370e34}),_0x296f6e['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x49035f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x49035f['to'](_0x22d6a0=>_0x22d6a0['stopPropagation']())}}),_0x296f6e['on']('execute',_0x14ff23=>{_0x33ffaf['isReady']&&'function'==typeof _0x14ff23['source']['_action']&&_0x14ff23['source']['_action'](_0x33ffaf);}),_0x35652a(_0x296f6e,_0x3197a9,{'role':'menu'}),_0x296f6e['listenTo'](_0x33ffaf,'change:isActionsDropdownOpen',(_0x236c50,_0x1be128,_0x29afd4)=>{if(_0x29afd4)for(const _0x3b6fee of _0x296f6e['listView']['items']){const _0xb5ca58=_0x3b6fee['children']['first'],_0x3ffa27=_0x4089fe['find'](_0x315aaa=>_0x315aaa['action']===_0xb5ca58['_action'])['isVisible'];_0x3b6fee['isVisible']=void 0x0===_0x3ffa27||_0x3ffa27(_0x33ffaf);}}),_0x296f6e;}class vi extends/* #__PURE__ -- @preserve */
27
- _0x13f121(_0x5e6cae){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x556dbf,_0x2c4c4d,_0x5bb677,_0x3c1396){super(_0x556dbf);const _0x3c5e97=this['bindTemplate'],_0x385ba6=function(_0x551888,_0x151ac7){const _0x5da74c=Array['from'](_0x151ac7['authors'])['filter'](_0x484ab6=>_0x484ab6!=_0x151ac7['creator']);return _0x151ac7['creator']&&_0x5da74c['unshift'](_0x151ac7['creator']),_0x5da74c['map'](_0x356c4a=>new ni(_0x551888,_0x356c4a,_0x356c4a==_0x151ac7['creator']));}(_0x556dbf,_0x2c4c4d);this['id']=_0x2c4c4d['id'],this['_revision']=_0x2c4c4d,this['_requireRevisionName']=_0x3c1396,this['bind']('name','createdAt')['to'](_0x2c4c4d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x430316=>{return _0x123981=_0x556dbf['uiLanguage'],(_0x3d282d=_0x430316)['toLocaleDateString'](_0x123981,{'month':'long','day':'numeric'})+',\x20'+_0x3d282d['toLocaleTimeString'](_0x123981,{'hour':'numeric','minute':'numeric'});var _0x123981,_0x3d282d;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x556dbf,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x52655b=>_0x52655b||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x6ed758,_0x3fb8fd)=>_0x6ed758&&_0x3fb8fd),this['revisionActionsView']=_0x5bb677&&_0x5bb677['length']?ai(this,_0x5bb677):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3c5e97['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3c5e97['if']('isEnabled','ck-disabled',_0x4f9432=>!_0x4f9432),_0x3c5e97['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3c5e97['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3c5e97['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':_0x3c5e97['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':_0x385ba6}]},this['revisionActionsView']],'on':{'click':_0x3c5e97['to'](_0x5713ff=>{_0x5713ff['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x14dcfb=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x14dcfb,'change',()=>{this['_requireRevisionName']&&!_0x14dcfb['value']||this['fire']('setName',{'id':this['id'],'name':_0x14dcfb['value']}),_0x14dcfb['value']||(_0x14dcfb['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x283f5c,_0x4687ce){const _0x3ddba7=_0x353717['fromJSDate'](_0x283f5c)['setLocale'](_0x4687ce),_0x4503f4=_0x353717['local'](),_0x4dbc1f=_0x4503f4['minus']({'days':0x1})['startOf']('day');let _0x262c48,_0x2e2a86;return _0x3ddba7['hasSame'](_0x4503f4,'day')?(_0x262c48=_0x3ddba7['startOf']('day')['toJSDate'](),_0x2e2a86=_0x3ddba7['toRelativeCalendar']()):_0x3ddba7['hasSame'](_0x4dbc1f,'day')?(_0x262c48=_0x4dbc1f['toJSDate'](),_0x2e2a86=_0x3ddba7['toRelativeCalendar']()):_0x3ddba7['hasSame'](_0x4503f4,'week')?(_0x262c48=_0x3ddba7['startOf']('week')['toJSDate'](),_0x2e2a86=_0x3ddba7['weekdayLong']||''):_0x3ddba7['hasSame'](_0x4503f4,'year')?(_0x262c48=_0x3ddba7['startOf']('month')['toJSDate'](),_0x2e2a86=_0x3ddba7['monthLong']||''):(_0x262c48=_0x3ddba7['startOf']('year')['toJSDate'](),_0x2e2a86=String(_0x3ddba7['year'])),{'startDate':_0x262c48,'localizedPeriodName':_0x2e2a86};}class li extends _0x5e6cae{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5c8fea,_0x42b41f,_0x18cfd3,_0x38bdde){super(_0x5c8fea);const _0x36502d=mi(_0x42b41f,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x42b41f,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x18cfd3,this['_requireRevisionName']=_0x38bdde,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':_0x36502d}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x34a505){const _0x698684=new vi(this['locale'],_0x34a505,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x698684);}['removeRevision'](_0x34f291){const _0x20ed88=this['revisionViews']['find'](_0x4ce077=>_0x4ce077['id']===_0x34f291['id']);this['revisionViews']['remove'](_0x20ed88);}}class bi extends _0x5e6cae{constructor(_0x33e2e5){super(_0x33e2e5);const _0x249379=new _0x5e95ee();_0x249379['content']=_0x4e8b44,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x249379,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x33e2e5,'Revision\x20history')]}]});}}class di extends _0x5e6cae{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1b35e1,_0x1b0f02,_0x381ef0,_0x1bc02e){super(_0x1b35e1);const _0x2664f9=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1b0f02,this['_revisionActions']=_0x381ef0,this['_requireRevisionName']=_0x1bc02e,this['on']('select',(_0x38b03f,_0x58139c)=>{this['fire']('revisionSelected',_0x58139c);}),this['on']('setName',(_0x32fda2,_0x202b25)=>{this['fire']('revisionSetName',_0x202b25);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new bi(_0x1b35e1),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2664f9['if']('isEnabled','ck-disabled',_0x28316b=>!_0x28316b)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4729a7 of this['_revisions'])this['_addRevision'](_0x4729a7);this['_revisions']['on']('add',(_0x447141,_0x4948d6)=>{this['_addRevision'](_0x4948d6);}),this['_revisions']['on']('remove',(_0x10bd30,_0x26afa8)=>{this['_removeRevision'](_0x26afa8);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x57e95a=>_0x57e95a['revisionViews']['map'](_0x233640=>_0x233640))['flat']();}['selectRevision'](_0x3bd76d){for(const _0x5293d9 of this['revisionViews'])_0x3bd76d&&_0x3bd76d['id']===_0x5293d9['id']?_0x5293d9['select']():_0x5293d9['deselect']();}['highlightRevisions'](_0x238b6c){for(const _0x515d6d of this['revisionViews'])_0x238b6c['some'](({id:_0x4a74d3})=>_0x4a74d3===_0x515d6d['id'])?_0x515d6d['highlight']():_0x515d6d['unhighlight']();}['_addRevision'](_0x37ee51){const _0x17a793=mi(_0x37ee51['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x411d51=this['timePeriodViews']['get'](0x0);_0x411d51&&_0x411d51['startDate']['getTime']()===_0x17a793['getTime']()||(_0x411d51=new li(this['locale'],_0x17a793,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x411d51)),_0x411d51['addRevision'](_0x37ee51);}['_removeRevision'](_0x349682){const _0x2c6e14=mi(_0x349682['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2c6e14)['removeRevision'](_0x349682);}['_getTimePeriodViewByStartDate'](_0x1f69dc){return this['timePeriodViews']['find'](_0x1c119c=>_0x1c119c['startDate']['getTime']()===_0x1f69dc['getTime']());}}class d extends _0x3f3108{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x57943b,uid as _0x2d5220,Collection as _0x5a818f,logWarning as _0xf47d20,FocusTracker as _0x37bcaa,KeystrokeHandler as _0x551cc4,scrollViewportToShowTarget as _0x3bd100,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x56e2c5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xff908a,set as _0xd20029,unset as _0x4ea73,isEqual as _0x8c730e}from'es-toolkit/compat';import{Plugin as _0x16d9db,PendingActions as _0x571e4d,Command as _0xe6d2f7,ElementApiMixin as _0x3b31c5,Editor as _0x2d5cb3}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x22ce6c,getMarkerDomElement as _0x4a25d4,ConfirmMixin as _0x287934,sanitizeEditorConfig as _0x3dd0c7}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x7fecc1,ViewAttributeElement as _0x5090e3,ViewEmptyElement as _0xf36d74,ViewRawElement as _0x259a07,ViewUIElement as _0x3b6095,ViewDocumentFragment as _0x32a294,ViewText as _0x3dd223,ViewElement as _0x29a057,ModelElement as _0x1d82bc,ModelRange as _0x35d140,ModelPosition as _0x2cb078,ModelDocumentFragment as _0x5878c9,ModelText as _0x16216d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3448b7,IconChevronUp as _0x5458c9,IconChevronDown as _0x49bd2b,IconUndo as _0x3165cc,IconUser as _0xe65950,IconThreeVerticalDots as _0x5100b0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x2187a0,View as _0x5b8a89,submitHandler as _0x26d83c,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x5cea77,ListView as _0x478032,ListItemView as _0x275460,ButtonView as _0xd092cd,MenuBarMenuView as _0x2ba40c,MenuBarMenuListView as _0x6c7f6c,MenuBarMenuListItemView as _0x554e70,MenuBarMenuListItemButtonView as _0x5c3ecc,ContextualBalloon as _0x541e9a,ToolbarSeparatorView as _0x4e1874,IconView as _0x14e94e,addListToDropdown as _0x2302c5,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x5d72f6,StickyPanelView as _0x28a261,ToolbarView as _0x19d792,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x34ea19}from'luxon';class I extends/* #__PURE__ -- @preserve */
24
+ _0x57943b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1c9a3f){super(),this['id']=_0x1c9a3f['id']||_0x2d5220(),this['creator']=_0x1c9a3f['creator']||null,this['authors']=_0x1c9a3f['authors']||[],this['diffData']=_0x1c9a3f['diffData']||null,this['toVersion']=_0x1c9a3f['toVersion']||0x0,this['fromVersion']=_0x1c9a3f['fromVersion']||0x0,this['set']('name',_0x1c9a3f['name']||''),this['set']('createdAt',_0x1c9a3f['createdAt']||new Date()),this['set']('attributes',_0x1c9a3f['attributes']||{});}['setName'](_0x419fd4){this['_update']({'name':_0x419fd4});}['setAttribute'](_0x266c37,_0x30c718){const _0x5e1585=_0xff908a(this['attributes']);_0xd20029(_0x5e1585,_0x266c37,_0x30c718),this['_update']({'attributes':_0x5e1585});}['removeAttribute'](_0x54133b){const _0x3df072=_0xff908a(this['attributes']);_0x4ea73(_0x3df072,_0x54133b),this['_update']({'attributes':_0x3df072});}['_update'](_0x19c2ce,_0x2778ca=!0x1){let _0x17ed7a=!0x1;const _0x58ebc7={'id':this['id']},_0x326151=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4bf665 of _0x326151){const _0xdaf580=_0x19c2ce[_0x4bf665];void 0x0!==_0xdaf580&&_0xdaf580!==this[_0x4bf665]&&(this[_0x4bf665]=_0xdaf580,_0x58ebc7[_0x4bf665]=_0xdaf580,_0x17ed7a=!0x0);}_0x17ed7a&&(_0x58ebc7['authors']&&(_0x58ebc7['authorsIds']=_0x58ebc7['authors']['map'](_0x49daf2=>_0x49daf2['id']),delete _0x58ebc7['authors']),this['fire']('_update',_0x58ebc7,_0x2778ca));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x36d93e=>_0x36d93e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x16d9db{['_revisions'];static get['requires'](){return[_0x22ce6c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x40cf0c){super(_0x40cf0c),this['_revisions']=new _0x5a818f();}['afterInit'](){!async function(_0x28c116){const _0x4cbffe=_0x268110([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x414eed=0xeb829,_0x5c9a43=0x359e09b0,_0x3ac867=0x35997190^_0x5c9a43,_0x3fbf0b=window[_0x268110([0x44,0x61,0x74,0x65])][_0x268110([0x6e,0x6f,0x77])](),_0x4d619f=_0x28c116[_0x268110([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x39701d=new window[(_0x268110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5813a1=>{_0x4d619f[_0x268110([0x6f,0x6e,0x63,0x65])](_0x268110([0x72,0x65,0x61,0x64,0x79]),_0x5813a1);}),_0x3831ab={[_0x268110([0x6b,0x74,0x79])]:_0x268110([0x45,0x43]),[_0x268110([0x75,0x73,0x65])]:_0x268110([0x73,0x69,0x67]),[_0x268110([0x63,0x72,0x76])]:_0x268110([0x50,0x2d,0x32,0x35,0x36]),[_0x268110([0x78])]:_0x268110([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]),[_0x268110([0x79])]:_0x268110([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]),[_0x268110([0x61,0x6c,0x67])]:_0x268110([0x45,0x53,0x32,0x35,0x36])},_0x1a5853=_0x4d619f[_0x268110([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x268110([0x67,0x65,0x74])](_0x268110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2fad5e(){let _0x2f6c44,_0x24f7e7=null,_0x540339=null;try{if(_0x1a5853==_0x268110([0x47,0x50,0x4c]))return _0x268110([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f6c44=_0x4bff11(),!_0x2f6c44)return _0x268110([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2f6c44[_0x268110([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x540339=_0x5e6f47(_0x2f6c44[_0x268110([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f6c44[_0x268110([0x6a,0x74,0x69])])),await _0x298287()?_0x77baa7()?_0x487700()?_0x268110([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c6ea0()?(_0x2f6c44[_0x268110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x268110([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x24f7e7=_0x377cc2(_0x268110([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2f6c44[_0x268110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x268110([0x74,0x72,0x69,0x61,0x6c])&&(_0x24f7e7=_0x377cc2(_0x268110([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x7f4b15()):_0x268110([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x268110([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x268110([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x268110([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x487700(){const _0x1583e3=[_0x268110([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x268110([0x74,0x72,0x69,0x61,0x6c])][_0x268110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f6c44[_0x268110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fbf0b/0x3e8:0xe10*_0x3ac867;return _0x2f6c44[_0x268110([0x65,0x78,0x70])]<_0x1583e3;}function _0x77baa7(){const _0x40819b=_0x2f6c44[_0x268110([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x40819b)return!0x1;if(_0x40819b[_0x268110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268110([0x2a])))return!0x0;if(_0x40819b[_0x268110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268110([0x52,0x48])))return!0x0;if(_0x40819b[_0x268110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268110([0x52,0x52,0x48]))){if(_0x27475f())return!0x0;if(_0xedc0f5()||_0x340016())return!0x0;}return!0x1;}function _0x2c6ea0(){const _0x242ffb=_0x2f6c44[_0x268110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x242ffb||0x0==_0x242ffb[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x15d11d}=new URL(window[_0x268110([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x242ffb[_0x268110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15d11d))return!0x0;const _0x397d71=_0x15d11d[_0x268110([0x73,0x70,0x6c,0x69,0x74])](_0x268110([0x2e]));return _0x242ffb[_0x268110([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3279bd=>_0x3279bd[_0x268110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268110([0x2a])))[_0x268110([0x6d,0x61,0x70])](_0x57811b=>_0x57811b[_0x268110([0x73,0x70,0x6c,0x69,0x74])](_0x268110([0x2e])))[_0x268110([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x377b4c=>_0x377b4c[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x397d71[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x268110([0x6d,0x61,0x70])](_0x1f669d=>Array(_0x397d71[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1f669d[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x268110([0x66,0x69,0x6c,0x6c])](_0x1f669d[0x0]===_0x268110([0x2a])?_0x268110([0x2a]):'')[_0x268110([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1f669d))[_0x268110([0x73,0x6f,0x6d,0x65])](_0x42691a=>_0x397d71[_0x268110([0x65,0x76,0x65,0x72,0x79])]((_0x5c7673,_0x12fc46)=>_0x42691a[_0x12fc46]===_0x5c7673||_0x42691a[_0x12fc46]===_0x268110([0x2a])));}function _0x7f4b15(){return _0x24f7e7&&_0x540339?new window[(_0x268110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x107858,_0x203254)=>{_0x24f7e7[_0x268110([0x74,0x68,0x65,0x6e])](_0x107858,_0x203254),_0x540339[_0x268110([0x74,0x68,0x65,0x6e])](_0x435eff=>{_0x435eff!=_0x268110([0x56,0x61,0x6c,0x69,0x64])&&_0x107858(_0x435eff);},_0x203254);}):_0x24f7e7||_0x540339||_0x268110([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e6f47(_0x4bcd6c,_0x5aa449){return new window[(_0x268110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52b9c8=>{if(_0x37eb42())return _0x52b9c8(_0x268110([0x56,0x61,0x6c,0x69,0x64]));_0x128876(),_0x4d619f[_0x268110([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x268110([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x991131=!0x1;const _0x21652b=_0x2d5220();function _0x2d9a7a(_0x5bdb54){return!!_0x5bdb54&&(typeof _0x5bdb54===_0x268110([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5bdb54===_0x268110([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5bdb54[_0x268110([0x74,0x68,0x65,0x6e])]===_0x268110([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5bdb54[_0x268110([0x63,0x61,0x74,0x63,0x68])]===_0x268110([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4be6cf(_0x19722f){_0xcaf6e(_0x19722f)[_0x268110([0x74,0x68,0x65,0x6e])](_0x39a390=>{if(!_0x39a390||_0x39a390[_0x268110([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x268110([0x6f,0x6b]))return _0x268110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2248d3(_0x2a880e(_0x21652b+_0x5aa449))!=_0x39a390[_0x268110([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x268110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x268110([0x56,0x61,0x6c,0x69,0x64]);})[_0x268110([0x74,0x68,0x65,0x6e])](_0x24f7e9=>(_0xc5d4f7(),_0x24f7e9),()=>{const _0x267168=_0x48fe77();return null==_0x267168?(_0xc5d4f7(),_0x268110([0x56,0x61,0x6c,0x69,0x64])):_0x268110(_0x3fbf0b-_0x267168>(0x11928db0^_0x5c9a43)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x268110([0x74,0x68,0x65,0x6e])](_0x52b9c8)[_0x268110([0x63,0x61,0x74,0x63,0x68])](()=>{_0x52b9c8(_0x268110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10430a=0x35a8e730^_0x5c9a43;function _0xc5d4f7(){const _0x1d1f92=_0x268110([0x6c,0x6c,0x63,0x74,0x2d])+_0x2248d3(_0x2a880e(_0x4bcd6c)),_0x1bbdcd=_0x2ee1d0(_0x2248d3(window[_0x268110([0x4d,0x61,0x74,0x68])][_0x268110([0x63,0x65,0x69,0x6c])](_0x3fbf0b/_0x10430a)));window[_0x268110([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x268110([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d1f92,_0x1bbdcd);}function _0x48fe77(){const _0x436017=_0x268110([0x6c,0x6c,0x63,0x74,0x2d])+_0x2248d3(_0x2a880e(_0x4bcd6c)),_0xdb9c4a=window[_0x268110([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x268110([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x436017);return _0xdb9c4a?window[_0x268110([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ee1d0(_0xdb9c4a),0x10)*_0x10430a:null;}function _0xcaf6e(_0x17d09e){return new window[(_0x268110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cc5e7,_0x544a92)=>{_0x17d09e[_0x268110([0x74,0x68,0x65,0x6e])](_0x2cc5e7,_0x544a92),window[_0x268110([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x544a92,0x359fdd70^_0x5c9a43);});}}_0x4d619f[_0x268110([0x6f,0x6e])](_0x268110([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f0613,_0x36ff2b)=>{if(_0x36ff2b[0x0]!=_0x4bcd6c)return _0x52b9c8(_0x268110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36ff2b[0x1]={..._0x36ff2b[0x1],[_0x268110([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x21652b};},{[_0x268110([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x268110([0x68,0x69,0x67,0x68])}),_0x4d619f[_0x268110([0x6f,0x6e])](_0x268110([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13392d=>{_0x2d9a7a(_0x13392d[_0x268110([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x991131=!0x0,_0x4be6cf(_0x13392d[_0x268110([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x268110([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x268110([0x6c,0x6f,0x77])}),_0x39701d[_0x268110([0x74,0x68,0x65,0x6e])](()=>{_0x991131||_0x52b9c8(_0x268110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x37eb42(){return _0x4d619f[_0x268110([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x268110([0x76,0x69,0x65,0x77])][_0x268110([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x268110([0x61,0x75,0x74,0x6f]);}function _0x128876(){_0x4d619f[_0x268110([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x268110([0x76,0x69,0x65,0x77])][_0x268110([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x268110([0x61,0x75,0x74,0x6f]);}}function _0x377cc2(_0x35062e){const _0x2a0f34=[new window[(_0x268110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2652fb=>setTimeout(_0x2652fb,0x3597377c^_0x5c9a43)),_0x39701d[_0x268110([0x74,0x68,0x65,0x6e])](()=>new window[(_0x268110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12fd28=>{const _0x4155be=0x359e09b7^_0x5c9a43,_0x5a1f08=_0x28c116[_0x268110([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x12d380(){_0x5a1f08[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4155be&&_0x12fd28();}_0x12d380(),_0x5a1f08[_0x268110([0x6f,0x6e])](_0x268110([0x61,0x64,0x64]),_0x12d380);})),new window[(_0x268110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24b40e=>{function _0x1e5203(){for(const _0x2d0a11 in window)if(window[_0x268110([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x268110([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2d0a11))&&window[_0x2d0a11]==_0x414eed)return _0x24b40e();_0x4d619f[_0x268110([0x73,0x74,0x61,0x74,0x65])]!=_0x268110([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x268110([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e5203,0x359e1a38^_0x5c9a43);}_0x31141b(_0x268110([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1e5203();})];return window[_0x268110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x268110([0x72,0x61,0x63,0x65])](_0x2a0f34)[_0x268110([0x74,0x68,0x65,0x6e])](()=>_0x35062e);}async function _0x449865(){if(await _0x39701d,_0x31141b(_0x268110([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1e5861=_0x28c116[_0x268110([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xe0ca4=_0x28c116[_0x268110([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])](_0x1e5861[_0x268110([0x69,0x64])]),_0x203718=_0x1bdf63(_0x268110([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x203718[_0x268110([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1e5861['id'],_0xe0ca4?_0xe0ca4['id']:null,!0x0),_0x203718[_0x268110([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x268110([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x203718[_0x268110([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x203718[_0x268110([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x338780,void(_0x203718[_0x268110([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x338780);}if(_0x31141b(_0x268110([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x511721=_0x1bdf63(_0x268110([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x511721[_0x268110([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x268110([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x511721[_0x268110([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x511721[_0x268110([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x338780,_0x511721[_0x268110([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x338780;}_0x4d619f[_0x268110([0x6d,0x6f,0x64,0x65,0x6c])][_0x268110([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x338780,_0x4d619f[_0x268110([0x6d,0x6f,0x64,0x65,0x6c])][_0x268110([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x338780,_0x4d619f[_0x268110([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x268110([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x27475f(){return _0x31141b(_0x268110([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1bdf63(_0x268110([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x268110([0x73,0x74,0x61,0x74,0x65])]==_0x268110([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xedc0f5(){return _0x31141b(_0x268110([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 _0x340016(){return _0x31141b(_0x268110([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x17dd89(_0x2b1f75){const _0x60f8d4=_0xf811d3();_0x4d619f[_0x60f8d4]=_0x268110([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])+_0x2b1f75,_0x2b1f75[_0x268110([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x268110([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xf811d3()]=_0x414eed),_0x2b1f75!=_0x268110([0x56,0x61,0x6c,0x69,0x64])&&_0x449865();}function _0xf811d3(){const _0x2bfb41=window[_0x268110([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x268110([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x268110([0x6e,0x6f,0x77])]())[_0x268110([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x268110([0x2e]),'');let _0x4bb13a=_0x268110([0x76]);for(let _0x4c0808=0x0;_0x4c0808<_0x2bfb41[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c0808+=0x2){let _0x322cd6=window[_0x268110([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bfb41[_0x268110([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c0808,_0x4c0808+0x2));_0x322cd6>=_0x4cbffe[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x322cd6-=_0x4cbffe[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4bb13a+=_0x4cbffe[_0x322cd6];}return _0x4bb13a;}function _0x4bff11(){const _0x2619b8=_0x1a5853[_0x268110([0x73,0x70,0x6c,0x69,0x74])](_0x268110([0x2e]));if(0x3!=_0x2619b8[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x190578(_0x2619b8[0x1]);function _0x190578(_0x19660f){const _0x315e95=_0x21e0ab(_0x19660f);return _0x315e95&&_0x4085af()?_0x315e95:null;function _0x4085af(){const _0x201657=_0x315e95[_0x268110([0x6a,0x74,0x69])],_0x1fa82a=window[_0x268110([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x201657[_0x268110([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x201657[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2df352={..._0x315e95,[_0x268110([0x6a,0x74,0x69])]:_0x201657[_0x268110([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x201657[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2df352[_0x268110([0x76,0x63])],_0x2a880e(_0x2df352)==_0x1fa82a;}}}async function _0x298287(){let _0x3ff346=!0x0;try{const _0x4d4f08=_0x1a5853[_0x268110([0x73,0x70,0x6c,0x69,0x74])](_0x268110([0x2e])),[_0x26ef5b,_0x54d2a2,_0xa6f92b]=_0x4d4f08;return _0x504f34(_0x26ef5b),await _0x289e5f(_0x26ef5b,_0x54d2a2,_0xa6f92b),_0x3ff346;}catch{return!0x1;}function _0x504f34(_0xddda2c){const _0x2147d9=_0x21e0ab(_0xddda2c);_0x2147d9&&_0x2147d9[_0x268110([0x61,0x6c,0x67])]==_0x268110([0x45,0x53,0x32,0x35,0x36])||(_0x3ff346=!0x1);}async function _0x289e5f(_0x466fb2,_0x51ea55,_0x4bfe75){const _0x38d268=window[_0x268110([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x268110([0x66,0x72,0x6f,0x6d])](_0x187116(_0x4bfe75),_0x5ade03=>_0x5ade03[_0x268110([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b89c7=new window[(_0x268110([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x268110([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x466fb2+_0x268110([0x2e])+_0x51ea55),_0x2726a3=window[_0x268110([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x268110([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2726a3)return;const _0x1746d5=await _0x2726a3[_0x268110([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x268110([0x6a,0x77,0x6b]),_0x3831ab,{[_0x268110([0x6e,0x61,0x6d,0x65])]:_0x268110([0x45,0x43,0x44,0x53,0x41]),[_0x268110([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x268110([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x268110([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2726a3[_0x268110([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x268110([0x6e,0x61,0x6d,0x65])]:_0x268110([0x45,0x43,0x44,0x53,0x41]),[_0x268110([0x68,0x61,0x73,0x68])]:{[_0x268110([0x6e,0x61,0x6d,0x65])]:_0x268110([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1746d5,_0x38d268,_0x4b89c7)||(_0x3ff346=!0x1);}}function _0x21e0ab(_0x2941b7){return _0x2941b7[_0x268110([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x268110([0x65,0x79]))?JSON[_0x268110([0x70,0x61,0x72,0x73,0x65])](_0x187116(_0x2941b7)):null;}function _0x187116(_0x4c01ce){return window[_0x268110([0x61,0x74,0x6f,0x62])](_0x4c01ce[_0x268110([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x268110([0x2b]))[_0x268110([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x268110([0x2f])));}function _0x2a880e(_0x3f5e31){let _0x4a1dfe=0x1505;function _0x463842(_0x1876a7){for(let _0x588089=0x0;_0x588089<_0x1876a7[_0x268110([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x588089++){const _0x29da48=_0x1876a7[_0x268110([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x588089);_0x4a1dfe=(_0x4a1dfe<<0x5)+_0x4a1dfe+_0x29da48,_0x4a1dfe&=_0x4a1dfe;}}function _0x5a6332(_0x9b2ea8){Array[_0x268110([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9b2ea8)?_0x9b2ea8[_0x268110([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a6332):_0x9b2ea8&&typeof _0x9b2ea8==_0x268110([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x268110([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9b2ea8)[_0x268110([0x73,0x6f,0x72,0x74])]()[_0x268110([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x21110a,_0xe65666])=>{_0x463842(_0x21110a),_0x5a6332(_0xe65666);}):_0x463842(window[_0x268110([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9b2ea8));}return _0x5a6332(_0x3f5e31),_0x4a1dfe>>>0x0;}function _0x2248d3(_0x3ef7bc){return _0x3ef7bc[_0x268110([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x268110([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x268110([0x30]));}function _0x2ee1d0(_0x154063){return _0x154063[_0x268110([0x73,0x70,0x6c,0x69,0x74])]('')[_0x268110([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x268110([0x6a,0x6f,0x69,0x6e])]('');}function _0x31141b(_0x1fad19){return _0x4d619f[_0x268110([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x268110([0x68,0x61,0x73])](_0x1fad19);}function _0x1bdf63(_0x3029ff){return _0x4d619f[_0x268110([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x268110([0x67,0x65,0x74])](_0x3029ff);}function _0x338780(){}function _0x268110(_0x240c82){return _0x240c82['map'](_0x1cbf59=>String['fromCharCode'](_0x1cbf59))['join']('');}_0x17dd89(await _0x2fad5e());}(this);}['createRevision'](_0x5f023d){const _0x3e23e2=this['editor']['plugins']['get']('Users');return new I({'id':_0x5f023d['id'],'name':_0x5f023d['name'],'creator':_0x5f023d['creatorId']?_0x3e23e2['getUser'](_0x5f023d['creatorId']):null,'diffData':_0x5f023d['diffData']||_0x5f023d['data'],'authors':_0x5f023d['authorsIds']['map'](_0x17467a=>_0x3e23e2['getUser'](_0x17467a)),'createdAt':new Date(_0x5f023d['createdAt']),'attributes':_0x5f023d['attributes'],'fromVersion':_0x5f023d['fromVersion'],'toVersion':_0x5f023d['toVersion']});}['addRevision'](_0xd8cae2,_0xf40cc6=0x0){this['_revisions']['add'](_0xd8cae2,_0xf40cc6);}['getRevision'](_0x2caa01){return this['_revisions']['get'](_0x2caa01);}['getRevisions'](_0x558125={'toJSON':!0x1}){const _0x571123=Array['from'](this['_revisions']);return _0x571123['reverse'](),_0x558125['toJSON']?_0x571123['map'](_0x538edd=>_0x538edd['toJSON']()):_0x571123;}['getIndex'](_0x16d5f9){return this['_revisions']['getIndex'](_0x16d5f9);}['getEarlierVisibleRevision'](_0x51026a){const [,_0x328a4b]=this['getRevisionsIterator'](_0x51026a,{'direction':'earlier'});return _0x328a4b;}['getLaterVisibleRevision'](_0x51fdee){const [,_0x145a2c]=this['getRevisionsIterator'](_0x51fdee,{'direction':'later'});return _0x145a2c;}['getRevisionsInDiff'](_0x597b40){const _0x31a167=[];for(const _0x4a0b65 of this['getRevisionsIterator'](_0x597b40['newRevisionId']))if(_0x31a167['push'](_0x4a0b65),_0x4a0b65['id']===_0x597b40['oldRevisionId'])break;return _0x31a167;}*['getRevisionsIterator'](_0x127ab2,{direction:_0x3354e7='earlier',filter:_0x4ed362=()=>!0x0}={}){const _0xe6b279='earlier'===_0x3354e7?0x1:-0x1;let _0x2aefcb=this['_revisions']['get'](_0x127ab2),_0x5a69b2=this['getIndex'](_0x2aefcb);for(yield _0x2aefcb;_0x2aefcb;){if(_0x5a69b2+=_0xe6b279,_0x2aefcb=this['getRevision'](_0x5a69b2),!_0x2aefcb)return;_0x4ed362(_0x2aefcb)&&(yield _0x2aefcb);}}}class $ extends _0x16d9db{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x7fecc1,'c'],[_0x5090e3,'a'],[_0xf36d74,'e'],[_0x259a07,'r'],[_0x3b6095,'u']]);['_typeCharToViewClass']=new Map([['c',_0x7fecc1],['a',_0x5090e3],['e',_0xf36d74],['r',_0x259a07],['u',_0x3b6095]]);async['loadRevisionData'](_0x2fb4bc,_0x5d651e){if(_0x2fb4bc['diffData']||!_0x5d651e)return;const _0xa63651=this['editor']['config']['get']('collaboration.channelId'),_0x2f21ea=await _0x5d651e['getRevision']({'channelId':_0xa63651,'revisionId':_0x2fb4bc['id']});_0x2fb4bc['diffData']=_0x2f21ea['diffData'];}['getRevisionDocumentData'](_0x4f4e95){const _0x5f1311={};for(const _0x4a85db in _0x4f4e95['diffData']){if(_0x4f4e95['diffData'][_0x4a85db]['attachChange']&&!_0x4f4e95['diffData'][_0x4a85db]['attachChange']['isAttached'])continue;const _0x1db30b=this['_removeRevisionMarkers'](JSON['parse'](_0x4f4e95['diffData'][_0x4a85db]['insertions'])),_0x37f56e=this['editor']['editing']['view']['document'],_0x3f3c9e=new _0x32a294(_0x37f56e,_0x1db30b['map'](_0x1d022a=>this['_getViewFromDiffObj'](_0x1d022a,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5f1311[_0x4a85db]=this['editor']['data']['processor']['toData'](_0x3f3c9e),this['editor']['data']['processor']['useFillerType']('default');}return _0x5f1311;}['getRevisionRootsAttributes'](_0xeb50db){const _0x7ac272={};for(const _0x287c1d in _0xeb50db['diffData'])_0xeb50db['diffData'][_0x287c1d]['attachChange']&&!_0xeb50db['diffData'][_0x287c1d]['attachChange']['isAttached']||(_0x7ac272[_0x287c1d]=_0xeb50db['diffData'][_0x287c1d]['attributesAfter']||{});return _0x7ac272;}['_getTypeCharForViewElement'](_0x1b5f3d){return this['_viewClassToTypeChar']['get'](_0x1b5f3d['constructor']);}['_getViewFromDiffObj'](_0x2f4123,_0x28088c){const _0x2c96ee=this['editor']['editing']['view']['document'];if('string'==typeof _0x2f4123)return new _0x3dd223(_0x2c96ee,_0x2f4123);{let _0x452877,_0x3f6af4;_0x3f6af4='u'==_0x2f4123['type']||'r'==_0x2f4123['type']?[]:_0x2f4123['children']['map'](_0x1219d0=>this['_getViewFromDiffObj'](_0x1219d0,_0x28088c));const _0x19995=this['_typeCharToViewClass']['get'](_0x2f4123['type'])||_0x29a057,_0x59e44a=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x452877=new _0x19995(_0x2c96ee,_0x2f4123['name'],_0x2f4123['attributes'],_0x3f6af4),'u'==_0x2f4123['type']&&_0x2f4123['children'][0x0]){const _0x3b4b31=_0x2f4123['children'][0x0];if(_0x452877['render']=function(_0x465253){const _0x23263f=_0x465253['createElement']('div');return _0x23263f['innerHTML']=_0x3b4b31,_0x23263f['childNodes'][0x0];},_0x28088c){const _0x3e8e03=new _0x32a294(_0x2c96ee);_0x3e8e03['_appendChild'](_0x452877);const _0x305256=Array['from'](_0x59e44a['viewChildrenToDom'](_0x3e8e03,{'bind':!0x1})),_0x5787e7=_0x59e44a['domDocument']['createElement']('div');_0x5787e7['append'](..._0x305256),_0x452877=Array['from'](_0x59e44a['domChildrenToView'](_0x5787e7))[0x0];}}else{if('r'==_0x2f4123['type']&&_0x2f4123['children'][0x0]){const _0xb1df62=_0x2f4123['children'][0x0];if(_0x452877['render']=function(_0x4be701){_0x4be701['innerHTML']=_0xb1df62;},_0x28088c){const _0x5e11e4=new _0x32a294(_0x2c96ee);_0x5e11e4['_appendChild'](_0x452877);const _0x52c44b=Array['from'](_0x59e44a['viewChildrenToDom'](_0x5e11e4,{'bind':!0x1})),_0x44c21d=_0x59e44a['domDocument']['createElement']('div');_0x44c21d['append'](..._0x52c44b);const _0x4135c7=Array['from'](_0x59e44a['domChildrenToView'](_0x44c21d));_0x4135c7['length']>0x1?_0x452877['_appendChild'](_0x4135c7):_0x452877=_0x4135c7[0x0];}}}if(_0x2f4123['customProperties']){for(const [_0x13cb14,_0x5134c2]of _0x2f4123['customProperties'])_0x452877['_setCustomProperty'](_0x13cb14,_0x5134c2);}const _0x44b18e=void 0x0===_0x2f4123['fillerOffset']?null:_0x2f4123['fillerOffset'];return null!==_0x44b18e&&(_0x452877['getFillerOffset']=()=>_0x44b18e),_0x452877;}}['_makeModelFromViewString'](_0x33e74a){const _0x54bca2=JSON['parse'](_0x33e74a),_0x47022d=this['editor']['editing']['view']['document'],_0x3f40da=new _0x32a294(_0x47022d,_0x54bca2['map'](_0x567fac=>this['_getViewFromDiffObj'](_0x567fac,!0x0)));return this['editor']['data']['toModel'](_0x3f40da);}['_removeRevisionMarkers'](_0x17e3cb){return(_0x17e3cb=_0x17e3cb['filter'](_0x377721=>!_0x377721['name']||'revision-start'!==_0x377721['name']&&'revision-end'!==_0x377721['name']))['forEach'](_0x46e664=>{'string'!=typeof _0x46e664&&(_0x46e664['children']=this['_removeRevisionMarkers'](_0x46e664['children']),_0x46e664['attributes']=_0x46e664['attributes']['filter'](_0x158807=>!_0x158807[0x0]['startsWith']('data-revision-')));}),_0x17e3cb;}}function m(_0x42c223,_0x5e2467,_0x48c200){const t=_0x42c223['t'];switch(_0x5e2467){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'},_0x48c200);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x48c200);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'';}}class h extends _0x16d9db{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x22ce6c,S,$,_0x571e4d];}constructor(_0x5eac58){super(_0x5eac58),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x169124=_0x2d5220();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x169124},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['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x12e073=this['repository']['getRevision'](0x0),_0x4ea087=_0x12e073&&null===_0x12e073['creator']?_0x12e073:null;if(this['_continueCurrentRevision']=!!_0x4ea087&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x569c3f=this['_source']['getCurrentRevisionId'](),_0x523a85=this['repository']['getRevision'](_0x569c3f);if(_0x523a85)this['_startingVersion']=_0x523a85['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x440f85=this['_source']['history']['_operations']['find'](_0x50eed5=>!_0x50eed5['_isInit']),_0x2bcfb4=_0x440f85?_0x440f85['baseVersion']:this['_source']['history']['version'];_0x12e073?(_0x12e073['toVersion']<_0x2bcfb4&&_0x12e073['_update']({'toVersion':_0x2bcfb4}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4ea087['id'],this['_startingVersion']=_0x4ea087['fromVersion']):(this['_startingVersion']=_0x12e073['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2bcfb4,this['_continueCurrentRevision']=!0x1);}}else _0x4ea087&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4ea087['toVersion'],this['editor']['model']['document']['history']['version']),_0x4ea087['fromVersion']===_0x4ea087['toVersion']?(0x0!==_0x4ea087['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4ea087['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4ea087['id'],this['_startingVersion']=_0x4ea087['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',_0x3797d2=>!_0x3797d2),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x35d8c9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4aa0a7;for(const _0x46a7b5 in _0x35d8c9){const _0x8d73a7=_0x46a7b5,_0x13996a=_0x35d8c9[_0x8d73a7];if('revisionHistoryLicenseKeyValid'==_0x13996a||'revisionHistoryLicenseKeyInvalid'==_0x13996a||'revisionHistoryLicenseKeyExpired'==_0x13996a||'revisionHistoryLicenseKeyDomainLimit'==_0x13996a||'revisionHistoryLicenseKeyNotAllowed'==_0x13996a||'revisionHistoryLicenseKeyEvaluationLimit'==_0x13996a||'revisionHistoryLicenseKeyTrialLimit'==_0x13996a||'revisionHistoryLicenseKeyUsageLimit'==_0x13996a){delete _0x35d8c9[_0x8d73a7],_0x4aa0a7=_0x13996a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4aa0a7&&_0x35d8c9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4aa0a7&&_0x35d8c9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4aa0a7&&_0x35d8c9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4aa0a7&&_0x35d8c9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4aa0a7&&_0x35d8c9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4aa0a7&&_0x35d8c9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4aa0a7&&_0x35d8c9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x399c28=this['repository']['getRevision'](0x0),_0x4389f7=await this['getRevisionDocumentData'](_0x399c28),_0x5d66d0=await this['getRevisionRootsAttributes'](_0x399c28);this['_replaceEditorDataWithRevisionData'](_0x4389f7,_0x5d66d0);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5b86f9){this['_source']=_0x5b86f9;}async['update'](){const _0x15d24a=await this['_source']['getLatestVersion']();if(_0x15d24a>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4ce3d6=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x15d24a});_0x4ce3d6['authors']=_0x4ce3d6['authorsIds']['map'](_0x3b1b99=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b1b99)),this['currentRevision']['_update'](_0x4ce3d6);}}async['saveRevision'](_0x85fceb={},_0x2924a8=null){const _0xe93a6f=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2924a8>this['currentRevision']['toVersion']&&(_0x2924a8=null),null===_0x2924a8&&(_0x2924a8=await this['_source']['getLatestVersion']());const _0x5c5420=this['_getFromVersion'](_0x2924a8),_0x13c1de=this['buildRevisionData']({'from':_0x5c5420,'to':_0x2924a8});if(this['currentRevision']['toVersion']<_0x2924a8){const _0x1fbf91=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2924a8,'to':_0x2924a8});_0x1fbf91['authors']=[],_0x1fbf91['authorsIds']=[],_0x1fbf91['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1fbf91,!0x0),delete _0x1fbf91['authors'],_0xe93a6f['push'](_0x1fbf91);}_0x85fceb['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x85fceb['name']=_0x85fceb['name']||null,_0x85fceb['id']=_0x85fceb['id']||_0x2d5220(),_0x85fceb={..._0x85fceb,..._0x13c1de};const _0x153ad5=this['addRevisionData'](_0x85fceb);_0xe93a6f['push'](_0x85fceb);const _0x4ec55c=this['repository']['getIndex'](_0x153ad5);if(0x0!==_0x4ec55c){const _0x491ebe=this['repository']['getRevision'](_0x4ec55c-0x1);if(_0x491ebe['fromVersion']!==_0x2924a8){const _0x4f88f9=this['_revisionDataBuilder']['getData'](_0x2924a8,_0x491ebe['toVersion']),_0xcdca00={'id':_0x491ebe['id'],'diffData':_0x4f88f9['diffData'],'authorsIds':_0x4f88f9['authorsIds'],'authors':_0x4f88f9['authorsIds']['map'](_0xf154d0=>this['editor']['plugins']['get']('Users')['getUser'](_0xf154d0)),'fromVersion':_0x2924a8};_0x491ebe===this['currentRevision']&&(_0xcdca00['createdAt']=new Date(_0x85fceb['createdAt']['getTime']()+0xa)),_0x491ebe['_update'](_0xcdca00,!0x0),delete _0xcdca00['authors'],_0xe93a6f['push'](_0xcdca00);}}if(this['adapter']){for(const _0x4bf610 of _0xe93a6f)this['_bufferUpdate'](_0x4bf610['id'],_0x4bf610,!0x0);this['sendBufferedUpdates']();}return _0x153ad5;}['addRevisionData'](_0x2a75c1){const _0x11b5c2=this['repository']['createRevision'](_0x2a75c1);return this['adapter']&&_0x11b5c2['on']('_update',(_0x501065,_0xdf778e,_0x37afad)=>{_0x37afad||(this['_bufferUpdate'](_0xdf778e['id'],_0xdf778e,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x11b5c2,this['_findInsertionIndex'](_0x11b5c2)),_0x11b5c2;}async['getRevisionDocumentData'](_0x200424){return await this['_utils']['loadRevisionData'](_0x200424,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x200424);}async['getRevisionRootsAttributes'](_0x1e4275){return await this['_utils']['loadRevisionData'](_0x1e4275,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1e4275);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5eae34=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x243f24=0x0;_0x243f24<_0x5eae34['length'];_0x243f24++){const _0x226aed=_0x5eae34[_0x243f24];let _0x42e1a4=!0x1;for(const _0x2b446b of Object['keys'](_0x226aed))void 0x0===_0x226aed[_0x2b446b]?delete _0x226aed[_0x2b446b]:'id'!==_0x2b446b&&(_0x42e1a4=!0x0);_0x42e1a4||(_0x5eae34[_0x243f24]=null);}if(_0x5eae34=_0x5eae34['filter'](_0x25b2ab=>null!==_0x25b2ab),!_0x5eae34['length'])return;for(let _0x1bf38b=0x0;_0x1bf38b<_0x5eae34['length'];_0x1bf38b++){const _0x4c8a73=_0x5eae34[_0x1bf38b];void 0x0!==_0x4c8a73['fromVersion']&&void 0x0===_0x4c8a73['toVersion']&&(_0x4c8a73['toVersion']=this['repository']['getRevision'](_0x4c8a73['id'])['toVersion']),void 0x0!==_0x4c8a73['toVersion']&&void 0x0===_0x4c8a73['fromVersion']&&(_0x4c8a73['fromVersion']=this['repository']['getRevision'](_0x4c8a73['id'])['fromVersion']);}const _0x4d9f13=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5eae34,_0x4d9f13)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1bdd27=>{if(_0x1bdd27){for(const _0x51ca1e of _0x1bdd27)this['setRevisionData']({'id':_0x51ca1e['id'],'createdAt':_0x51ca1e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x582ef4=null,from:_0x5aa980=null,to:_0x4d1c8e=null}){_0x5aa980=null!==_0x5aa980?_0x5aa980:_0x582ef4['fromVersion'],_0x4d1c8e=null!==_0x4d1c8e?_0x4d1c8e:_0x582ef4['toVersion'];const _0x496ab3=this['_revisionDataBuilder']['getData'](_0x5aa980,_0x4d1c8e),_0x5422de={'diffData':_0x496ab3['diffData'],'authorsIds':_0x496ab3['authorsIds'],'fromVersion':_0x5aa980,'toVersion':_0x4d1c8e};if(!_0x582ef4||_0x4d1c8e!==_0x582ef4['toVersion']){const _0x29cb2d=_0x4d1c8e-0x1,_0x2bcda1=this['_source']['history']['getOperation'](_0x29cb2d);_0x5422de['createdAt']=_0x2bcda1&&_0x2bcda1['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5aa980===this['_loadedStateData']['fromVersion']){for(const _0x27ed97 of this['_loadedStateData']['authors'])_0x5422de['authorsIds']['includes'](_0x27ed97['id'])||_0x5422de['authorsIds']['push'](_0x27ed97['id']);}return _0x5422de;}['_bufferUpdate'](_0x14b227,_0x3f6364,_0x136d79){if(this['_bufferedUpdates']['has'](_0x14b227)){const _0xe79c23=this['_bufferedUpdates']['get'](_0x14b227);_0x3f6364=_0x136d79?{..._0xe79c23,..._0x3f6364}:{..._0x3f6364,..._0xe79c23};}this['_bufferedUpdates']['set'](_0x14b227,_0x3f6364);}['setRevisionData'](_0x33f03b){const _0x144fbb=this['repository']['getRevision'](_0x33f03b['id']);if(_0x33f03b['createdAt']&&(_0x33f03b['createdAt']=new Date(_0x33f03b['createdAt'])),_0x33f03b['authorsIds']){const _0x4ce294=this['editor']['plugins']['get']('Users');_0x33f03b['authors']=_0x33f03b['authorsIds']['map'](_0x1091c1=>_0x4ce294['getUser'](_0x1091c1));}_0x144fbb['_update'](_0x33f03b,!0x0);}['_createInitialRevision'](_0x3c4483){const _0x2987f2=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2987f2)this['_initialRevisionId']=_0x2987f2['id'];else{const _0x391a7a=!this['editor']['model']['document']['roots']['find'](_0x5d3b7a=>this['editor']['model']['hasContent'](_0x5d3b7a)),_0x424c24=this['editor']['plugins']['get']('Users')['me']['id'],_0x19300a=m(this['editor']['locale'],_0x391a7a?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3c4483,'to':_0x3c4483,'id':this['_initialRevisionId'],'name':_0x19300a,'creatorId':_0x424c24});}}['_createCurrentRevision'](_0x80d5ec){const _0x217e73=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x217e73),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x80d5ec,'to':_0x80d5ec,'id':_0x217e73,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x3b6c89,_0x2e7c3e){let _0xf7d901=this['editor']['config']['get']('initialData'),_0x2466b0=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xf7d901){_0xf7d901={};for(const _0x1c8b1f of this['editor']['model']['document']['getRootNames']())_0xf7d901[_0x1c8b1f]='';}if('string'==typeof _0xf7d901&&(_0xf7d901={'main':_0xf7d901}),void 0x0===_0x2466b0){_0x2466b0={};for(const _0x3370bf of this['editor']['model']['document']['getRootNames']())_0x2466b0[_0x3370bf]={};}let _0x1377ef=!0x1;const _0xca9587=Object['keys'](_0xf7d901),_0x1e579c=Object['keys'](_0x3b6c89);for(const _0x191254 of _0xca9587){if(_0xf7d901[_0x191254]!==_0x3b6c89[_0x191254]&&''!==_0xf7d901[_0x191254]['trim']()){_0x1377ef=!0x0;break;}if(!_0x8c730e(_0x2466b0[_0x191254],_0x2e7c3e[_0x191254])&&Object['keys'](_0x2466b0[_0x191254])['length']>0x0){_0x1377ef=!0x0;break;}}_0x1377ef||(_0x1377ef=_0x1e579c['some'](_0x22ae40=>!this['editor']['model']['document']['getRoot'](_0x22ae40))),_0x1377ef&&_0xf47d20('editor-initial-data-replaced-with-revision-data',{'editorData':_0xf7d901,'editorRootsAttributes':_0x2466b0,'revisionData':_0x3b6c89,'revisionRootsAttributes':_0x2e7c3e}),this['editor']['config']['set']('initialData',_0x3b6c89),this['editor']['config']['set']('rootsAttributes',_0x2e7c3e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x36792b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x36792b['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1f6cce){const _0x8ee6c4=this['repository']['getRevisions']();_0x8ee6c4['reverse']();let _0x42c9a5=0x0;for(;_0x42c9a5<_0x8ee6c4['length'];){const _0x141b99=_0x8ee6c4[_0x42c9a5];if(_0x141b99===this['currentRevision']){_0x42c9a5++;continue;}if(_0x141b99['id']===this['_initialRevisionId'])break;const _0x368390=_0x1f6cce['toVersion']-_0x141b99['toVersion']||_0x1f6cce['fromVersion']-_0x141b99['fromVersion'];if(_0x368390>0x0)break;if(_0x368390<0x0)_0x42c9a5++;else{if(!_0x1f6cce['creator']&&_0x141b99['creator'])break;if(_0x141b99['creator']||!_0x1f6cce['creator']){if(_0x1f6cce['createdAt']>_0x141b99['createdAt'])break;_0x42c9a5++;}else _0x42c9a5++;}}return _0x42c9a5;}['_getFromVersion'](_0x377f49){const _0x5c0417=this['repository']['getRevisions']();_0x5c0417['reverse'](),_0x5c0417['shift']();const _0x34deec=_0x5c0417['find'](_0x5eb5f1=>_0x5eb5f1['toVersion']<=_0x377f49)['toVersion'];return _0x34deec<this['_startingVersion']?this['_startingVersion']:_0x34deec;}['_makeRevision']({name:_0xbc3428,from:_0xe53acc,to:_0x46aaf2,creatorId:_0x4fb006,id:_0x5d1596}){const _0x1e3c3e=this['buildRevisionData']({'from':_0xe53acc,'to':_0x46aaf2});_0x1e3c3e['name']=_0xbc3428,_0x1e3c3e['creatorId']=_0x4fb006,_0x1e3c3e['id']=_0x5d1596;const _0x1a7c29=this['addRevisionData'](_0x1e3c3e);return this['adapter']&&this['_bufferUpdate'](_0x1e3c3e['id'],_0x1e3c3e,!0x0),_0x1a7c29;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x196d01){this['editor']=_0x196d01,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'](_0x5d29a3){this['source']=_0x5d29a3;const _0xe1d5d0=new Map(),_0x538540=new Map(),_0x4d3f21=this['editor']['model']['document']['roots']['map'](_0x1cd415=>_0x1cd415['rootName']);for(const _0x4bf5a5 of _0x4d3f21){const _0x2f78ec=this['editor']['model']['document']['getRoot'](_0x4bf5a5),_0x882965=x(_0x2f78ec);_0xe1d5d0['set'](_0x4bf5a5,_0x882965),_0x538540['set'](_0x4bf5a5,Object['fromEntries'](_0x2f78ec['getAttributes']()));}const _0xa1bfa0=Array['from'](this['editor']['model']['markers'])['map'](_0x648f05=>[_0x648f05['name'],_0x648f05['getRange']()]),_0x37249b=this['source']['version'];this['_saveMetaData'](_0x37249b,_0xe1d5d0,_0xa1bfa0,_0x538540),this['_startingRevisionId']=this['_revisionId'];const _0x48169f=new Map(),_0x2a768a=new Map();for(const _0xb74fd8 of _0x4d3f21){const _0x1666e3=N(_0xb74fd8);_0x48169f['set'](_0xb74fd8,_0x1666e3),_0x2a768a['set'](_0xb74fd8,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x48169f,[],_0x2a768a);}['getData'](_0x101f1f,_0x14d4e5){if(this['_lastFrom']===_0x101f1f&&this['_lastTo']<=_0x14d4e5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x14d4e5,!0x0);else{if(!this['_savedMetaData']['has'](_0x101f1f)){const _0x3d3fb1=this['_getPreviousFrom'](_0x101f1f);this['_calculateMetaData'](_0x3d3fb1,_0x101f1f,!0x1);}this['_calculateMetaData'](_0x101f1f,_0x14d4e5,!0x0);}return this['_lastFrom']=_0x101f1f,this['_lastTo']=_0x14d4e5,this['_getState']();}['loadState'](_0x3342dd){if(!this['_savedMetaData']['has'](_0x3342dd['fromVersion'])){const _0x41e925=this['_getPreviousFrom'](_0x3342dd['fromVersion']);this['_calculateMetaData'](_0x41e925,_0x3342dd['fromVersion'],!0x1);}this['_calculateMetaData'](_0x3342dd['fromVersion'],_0x3342dd['toVersion'],!0x1);const _0x4506c6=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3342dd['fromVersion'],this['_lastTo']=_0x3342dd['toVersion'];for(const _0x302a40 in _0x3342dd['diffData']){const _0x34e5c1=_0x3342dd['diffData'][_0x302a40]['attachChange'],_0x112f41=_0xff908a(_0x3342dd['diffData'][_0x302a40]['attributesBefore'])||{},_0x2200f2=_0x4506c6['_makeModelFromViewString'](_0x3342dd['diffData'][_0x302a40]['deletions']);_0x2200f2['rootName']=_0x302a40,_0x2200f2['_isAttached']=!_0x34e5c1||!_0x34e5c1['isAttached'],_0x2200f2['isAttached']=()=>_0x2200f2['_isAttached'],this['_baseRoots']['set'](_0x302a40,_0x2200f2),this['_baseRootsAttributes']['set'](_0x302a40,_0x112f41),_0x34e5c1&&this['_touchedRoots']['set'](_0x302a40,_0x34e5c1);const _0x4daedf=this['_makeIdsRoot'](_0x2200f2);this['_baseIdsRoots']['set'](_0x302a40,_0x4daedf);for(const [_0x4ee652,_0xf789b1]of _0x2200f2['markers']){if(!_0x4ee652['startsWith']('revision:'))continue;const _0x34efa5=_0x4ee652['split'](':')[0x2];for(const _0x49ce05 of _0xf789b1['getWalker']({'singleCharacters':!0x0})){const _0x5e7835=this['_getVidAttributeName'](_0x49ce05),_0xf62131='elementEnd'==_0x49ce05['type']?_0x49ce05['previousPosition']['path']['slice'](0x0,-0x1):_0x49ce05['previousPosition']['path'],_0x551cfd=_0x4daedf['getNodeByPath'](_0xf62131)['getAttribute'](_0x5e7835);this['_touched']['set'](_0x551cfd,{'userId':_0x34efa5});}_0x2200f2['markers']['delete'](_0x4ee652);}}this['_startingRevisionId']=this['_revisionId'];const _0x50bd14=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x54dfe8=>!this['_touched']['has'](_0x54dfe8));let _0x59ed4c=0x0;const _0x4bb7ac=new Map();for(const _0x1dce94 in _0x3342dd['diffData']){const _0x252cd0=_0x3342dd['diffData'][_0x1dce94]['attachChange'],_0x2fc042=_0xff908a(_0x3342dd['diffData'][_0x1dce94]['attributesAfter'])||{},_0x4e4f35=_0x4506c6['_makeModelFromViewString'](_0x3342dd['diffData'][_0x1dce94]['insertions']);_0x4e4f35['rootName']=_0x1dce94,_0x4e4f35['_isAttached']=!_0x252cd0||_0x252cd0['isAttached'],_0x4e4f35['isAttached']=()=>_0x4e4f35['_isAttached'],this['_diffRoots']['set'](_0x1dce94,_0x4e4f35),this['_diffRootsAttributes']['set'](_0x1dce94,_0x2fc042);const _0x56ca36=this['_makeIdsRoot'](_0x4e4f35,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1dce94,_0x56ca36),_0x4bb7ac['set'](_0x1dce94,_0x4e4f35['isAttached']()?_0x2fc042:{});for(const [_0xb5a62a,_0x38033c]of _0x4e4f35['markers']){if(!_0xb5a62a['startsWith']('revision:'))continue;const _0x121b73=_0xb5a62a['split'](':')[0x2];for(const _0x458670 of _0x38033c['getWalker']({'singleCharacters':!0x0})){const _0x11d415=this['_getVidAttributeName'](_0x458670),_0x5e6007=this['_revisionId']++,_0x2d9d18='elementEnd'==_0x458670['type']?_0x458670['previousPosition']['path']['slice'](0x0,-0x1):_0x458670['previousPosition']['path'];_0x56ca36['getNodeByPath'](_0x2d9d18)['_setAttribute'](_0x11d415,_0x5e6007),this['_touched']['set'](_0x5e6007,{'userId':_0x121b73});}_0x4e4f35['markers']['delete'](_0xb5a62a);}for(const _0x1c8c6c of this['editor']['model']['createRangeIn'](_0x4e4f35)['getWalker']({'singleCharacters':!0x0})){const _0x2ac677=this['_getVidAttributeName'](_0x1c8c6c),_0x3427b0='elementEnd'==_0x1c8c6c['type']?_0x1c8c6c['previousPosition']['path']['slice'](0x0,-0x1):_0x1c8c6c['previousPosition']['path'],_0x4e18a9=_0x56ca36['getNodeByPath'](_0x3427b0);_0x4e18a9['getAttribute'](_0x2ac677)>0x0||_0x4e18a9['_setAttribute'](_0x2ac677,_0x50bd14[_0x59ed4c++]);}for(const [_0xf8fa61,_0x2850f8]of _0x4e4f35['markers'])_0xf8fa61['startsWith']('revision:')||this['_markers']['set'](_0xf8fa61,_0x2850f8);}const {roots:_0x53e171}=this['_savedMetaData']['get'](_0x3342dd['fromVersion']),{roots:_0x4df240}=this['_savedMetaData']['get'](_0x3342dd['toVersion']),_0x45d2cc=x(_0x53e171['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x45d2cc),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x45d2cc,Number['NEGATIVE_INFINITY']));const _0x13bf11=x(_0x4df240['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x13bf11),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x13bf11));const _0x2bbe70=Array['from'](this['_diffRoots'])['map'](([_0x3bcff5,_0x59ea44])=>[_0x3bcff5,x(_0x59ea44)]);this['_saveMetaData'](this['_lastTo'],_0x2bbe70,this['_markers'],_0x4bb7ac);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x10a368,_0x587924,_0x1ebbf7,_0x58732a){const _0x1cb7da=new Map(_0x587924),_0x1c7f2f=new Map(_0xff908a(_0x58732a)),_0x47443d=new Map();for(const [_0x29046e,_0x4a5d88]of _0x1ebbf7)_0x47443d['set'](_0x29046e,{'start':_0x4a5d88['start']['clone'](),'end':_0x4a5d88['end']['clone'](),'rootName':_0x4a5d88['root']['rootName']});this['_savedMetaData']['set'](_0x10a368,{'roots':_0x1cb7da,'markers':_0x47443d,'rootsAttributes':_0x1c7f2f});}['_removeMetaData'](_0x27eb59){this['_savedMetaData']['delete'](_0x27eb59);}['_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'](_0xfea13a,_0x48f148=null){let _0x5972fe=null;_0xfea13a['is']('documentFragment')||(_0x5972fe=new _0x1d82bc(_0xfea13a['name'],{'vid_start':null===_0x48f148?this['_revisionId']++:_0x48f148++}));const _0x55567f=[];for(const _0x4b2fde of _0xfea13a['getChildren']())if(_0x4b2fde['is']('element')){_0x55567f['push'](this['_makeIdsRoot'](_0x4b2fde,_0x48f148));const _0x3b2785=_0x55567f[_0x55567f['length']-0x1];null!==_0x48f148&&(_0x48f148=_0x3b2785['is']('element','$text')?_0x3b2785['getAttribute']('vid')+0x1:_0x3b2785['getAttribute']('vid_end')+0x1);}else{for(let _0x65fae=0x0;_0x65fae<_0x4b2fde['offsetSize'];_0x65fae++)_0x55567f['push'](new _0x1d82bc('$text',{'vid':null===_0x48f148?this['_revisionId']++:_0x48f148++}));}if(_0xfea13a['is']('documentFragment')){const _0x42eaac=N(_0xfea13a['rootName']);return _0x42eaac['_insertChild'](0x0,_0x55567f),_0x42eaac;}return _0x5972fe['_setAttribute']('vid_end',null===_0x48f148?this['_revisionId']++:_0x48f148++),_0x5972fe['_insertChild'](0x0,_0x55567f),_0x5972fe;}['_calculateMetaData'](_0x14f376,_0x5dc33f,_0x2e4b9f){this['_reset']();const {roots:_0xb9197a,markers:_0x2ee2e3,rootsAttributes:_0x5acdaf}=this['_savedMetaData']['get'](_0x14f376);this['_baseRoots']=new Map(_0xb9197a),this['_baseRootsAttributes']=new Map(_0xff908a(_0x5acdaf));for(const [_0x1b3629,_0x3af5e0]of this['_baseRoots'])if('$graveyard'!==_0x1b3629&&(this['_diffRoots']['set'](_0x1b3629,x(_0x3af5e0)),this['_diffRootsAttributes']=new Map(_0xff908a(_0x5acdaf)),_0x2e4b9f)){const _0x4c47de=this['_revisionId'];this['_idsRoots']['set'](_0x1b3629,this['_makeIdsRoot'](_0x3af5e0)),this['_baseIdsRoots']['set'](_0x1b3629,this['_makeIdsRoot'](_0x3af5e0,_0x4c47de));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x2e4b9f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5b0ee8,_0x241127]of _0x2ee2e3){const _0x16fc7f=this['_baseRoots']['get'](_0x241127['rootName']),_0x14000e=this['_diffRoots']['get'](_0x241127['rootName']),_0x213ea2=new _0x35d140(this['_fixPosition'](_0x241127['start'],_0x16fc7f),this['_fixPosition'](_0x241127['end'],_0x16fc7f)),_0xb6754c=this['_fixRange'](_0x213ea2,_0x14000e);_0x16fc7f['markers']['set'](_0x5b0ee8,_0x213ea2),this['_markers']['set'](_0x5b0ee8,_0xb6754c);}this['_applyOperations'](_0x14f376,_0x5dc33f,_0x2e4b9f);}['_applyOperations'](_0x3f4f6c,_0x5bc0cd,_0x1fbaa4){for(const _0x4268f8 of this['source']['getOperations'](_0x3f4f6c,_0x5bc0cd))this['_handleOperation'](_0x4268f8,_0x1fbaa4);for(const _0x1c4653 of this['_diffRoots']['values']())_0x1c4653['markers']['clear']();for(const [_0x2e6509,_0x2f21b8]of this['_markers']){this['_diffRoots']['get'](_0x2f21b8['root']['rootName'])['markers']['set'](_0x2e6509,_0x2f21b8['clone']());}const _0x1acfb2=new Map(),_0x22c219=new Map();for(const [_0x66040,_0x2a2284]of this['_diffRoots'])_0x1acfb2['set'](_0x66040,x(_0x2a2284)),_0x22c219['set'](_0x66040,this['_diffRootsAttributes']['get'](_0x66040));this['_saveMetaData'](_0x5bc0cd,_0x1acfb2,this['_markers'],_0x22c219);}['_getPreviousFrom'](_0x478f7f){const _0xe30e64=Array['from'](this['_savedMetaData']['keys']());_0xe30e64['sort']((_0x51d599,_0x127076)=>_0x51d599-_0x127076),_0xe30e64['reverse']();for(const _0x24ed86 of _0xe30e64)if(_0x24ed86<_0x478f7f)return _0x24ed86;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x595cb6,_0x4b2df9){const _0x5efe08=Array['from'](_0x4b2df9['markers'])['map'](([_0x4e8177,_0x109025])=>[_0x4e8177,this['_fixRange'](_0x109025,_0x595cb6)]);_0x595cb6['markers']=new Map(_0x5efe08);}['_transformMarkers'](_0x2fb9dc){for(const _0x55a63a of this['_markers']['values']()){const _0xaafc92=_0x55a63a['getTransformedByOperation'](_0x2fb9dc),_0x2cff86=_0x35d140['_createFromRanges'](_0xaafc92);_0x55a63a['start']=_0x2cff86['start'],_0x55a63a['end']=_0x2cff86['end'];}}['_handleOperation'](_0x63f3dc,_0x2e6124){if('addRoot'!=_0x63f3dc['type']&&'detachRoot'!=_0x63f3dc['type']){if('insert'==_0x63f3dc['type']){const _0x36d433=_0x63f3dc['position']['root']['rootName'];this['_diffRoots']['has'](_0x36d433)||(this['_diffRoots']['set'](_0x36d433,N(_0x36d433,!0x0)),this['_diffRootsAttributes']['set'](_0x36d433,{}),_0x2e6124&&this['_idsRoots']['set'](_0x36d433,N(_0x36d433,!0x0)));}else{if('addRootAttribute'==_0x63f3dc['type']||'removeRootAttribute'==_0x63f3dc['type']||'changeRootAttribute'==_0x63f3dc['type'])return void this['_handleRootAttributeOperation'](_0x63f3dc);'marker'==_0x63f3dc['type']&&this['_handleMarkerOperation'](_0x63f3dc);}if('marker'!==_0x63f3dc['type']){const _0xed8a7a=this['_cloneOperation'](_0x63f3dc,this['_diffRoots']);_0xed8a7a['_execute'](),this['_transformMarkers'](_0xed8a7a);}if(_0x2e6124)switch(_0x63f3dc['type']){case'insert':this['_handleInsertOperation'](_0x63f3dc);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x63f3dc);break;case'merge':this['_handleMergeOperation'](_0x63f3dc);break;case'split':this['_handleSplitOperation'](_0x63f3dc);}}else this['_handleRootOperation'](_0x63f3dc,_0x2e6124);}['_cloneOperation'](_0x1c1759,_0x14b560){const _0x5449cd=_0x1c1759['clone']();return _0x5449cd['_authorId']=_0x1c1759['_authorId'],this['_fixOperation'](_0x5449cd,_0x14b560),_0x5449cd;}['_getBaseVids'](_0x1acf0e){return _0x1acf0e['map'](_0x5771b5=>{const _0x4e5ecd=this['_getVidAttributeName'](_0x5771b5);return Number(_0x5771b5['item']['getAttribute'](_0x4e5ecd));});}['_generateTape'](_0x33a198,_0x389d64){if(_0x33a198['is']('element','$text'))_0x389d64['push']({'item':_0x33a198,'type':'text'});else{_0x33a198['is']('element')&&_0x389d64['push']({'item':_0x33a198,'type':'elementStart'});for(const _0x37dfff of _0x33a198['getChildren']())this['_generateTape'](_0x37dfff,_0x389d64);_0x33a198['is']('element')&&_0x389d64['push']({'item':_0x33a198,'type':'elementEnd'});}return _0x389d64;}['_getState'](){const _0x1b4693=new Map(this['_touched']),_0x1306be=new Map(_0x1b4693),_0x4eaee1=new Map(),_0x566049={'insertions':{},'deletions':{}},_0x138464={'insertions':{},'deletions':{}},_0x226639=new Map(),_0x4fcc52=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4fcc52['delete']('$graveyard');for(const _0x3c2dd3 of _0x4fcc52){const _0x30a68b=this['_diffRoots']['get'](_0x3c2dd3)||N(_0x3c2dd3,!0x1),_0x56a206=this['_baseRoots']['get'](_0x3c2dd3)||N(_0x3c2dd3,!0x1);_0x30a68b['isAttached']()||_0x56a206['isAttached']()?(_0x566049['insertions'][_0x3c2dd3]=x(_0x30a68b),_0x566049['deletions'][_0x3c2dd3]=x(_0x56a206),this['_copyMarkers'](_0x566049['deletions'][_0x3c2dd3],_0x56a206),this['_copyMarkers'](_0x566049['insertions'][_0x3c2dd3],_0x30a68b),_0x138464['insertions'][_0x3c2dd3]=this['_generateTape'](this['_idsRoots']['get'](_0x3c2dd3),[]),_0x138464['deletions'][_0x3c2dd3]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3c2dd3)||N(_0x3c2dd3,!0x1),[])):_0x4fcc52['delete'](_0x3c2dd3);}for(const _0x3cb1dc of _0x4fcc52){const _0x3eea85=_0x138464['insertions'][_0x3cb1dc];for(const _0x2b6fec of _0x3eea85){const _0x90d4e5=this['_getVidAttributeName'](_0x2b6fec),_0x56d217=_0x2b6fec['item']['getAttribute'](_0x90d4e5);_0x1306be['delete'](_0x56d217),_0x56d217>=this['_startingRevisionId']&&_0x4eaee1['set'](_0x56d217,_0x1b4693['get'](_0x56d217));}}for(const _0x55886a of _0x4fcc52){const _0x12d777=_0x138464['insertions'][_0x55886a],_0x178629=this['_getBaseVids'](_0x138464['deletions'][_0x55886a]);let _0x40e4b1=0x0;for(const _0x56bdb6 of _0x12d777){const _0x37e601=this['_getVidAttributeName'](_0x56bdb6),_0x32426d=_0x56bdb6['item']['getAttribute'](_0x37e601);if(!_0x4eaee1['has'](_0x32426d)&&!_0x226639['has'](_0x32426d)){if(_0x1306be['has'](_0x32426d))_0x40e4b1++;else{if(_0x32426d!=_0x178629[_0x40e4b1]){const _0x5ce9f6=_0x1b4693['get'](_0x32426d)||_0x1b4693['get'](_0x178629[_0x40e4b1]);for(;_0x32426d!=_0x178629[_0x40e4b1];)_0x1306be['has'](_0x178629[_0x40e4b1])||(_0x226639['set'](_0x178629[_0x40e4b1],_0x5ce9f6),_0x1b4693['set'](_0x178629[_0x40e4b1],_0x5ce9f6)),_0x40e4b1++;}_0x40e4b1++;}}}}for(const _0x55ffa2 of _0x4fcc52){const _0x598e05=_0x138464['insertions'][_0x55ffa2];for(const _0x1fc230 of _0x598e05){const _0x19d4df=this['_getVidAttributeName'](_0x1fc230),_0xc9dafd=_0x1fc230['item']['getAttribute'](_0x19d4df);if(_0x226639['has'](_0xc9dafd)){const _0x1d246e=_0x226639['get'](_0xc9dafd);_0x1306be['has'](_0xc9dafd)||_0x1306be['set'](_0xc9dafd,{..._0x1d246e}),_0x4eaee1['set'](_0xc9dafd,{..._0x1d246e});}}}for(const _0x456d0c of _0x1306be['keys']())_0x456d0c>=this['_startingRevisionId']&&_0x1306be['delete'](_0x456d0c);const _0x871103=new Map();for(const _0x2ab30e of _0x4fcc52){let _0x5ebb73=_0x138464['insertions'][_0x2ab30e];for(const _0x11af52 of _0x5ebb73)if(_0x11af52['item']['is']('element','tableCell')){const _0x4af295=this['_getVidAttributeName'](_0x11af52),_0x516922=_0x11af52['item']['getAttribute'](_0x4af295);if(_0x4eaee1['has'](_0x516922)){const _0x4b4339=_0x11af52['item']['parent']['parent']['getAttribute']('vid_start'),_0x35f829=_0x871103['get'](_0x4b4339)||new Set();_0x35f829['add'](_0x4eaee1['get'](_0x516922)['userId']),_0x871103['set'](_0x4b4339,_0x35f829);}}_0x5ebb73=_0x138464['deletions'][_0x2ab30e];for(const _0x45a00a of _0x5ebb73)if(_0x45a00a['item']['is']('element','tableCell')){const _0x3a004c=this['_getVidAttributeName'](_0x45a00a),_0x38304c=_0x45a00a['item']['getAttribute'](_0x3a004c);if(_0x1306be['has'](_0x38304c)){const _0x1a000b=_0x45a00a['item']['parent']['parent']['getAttribute']('vid_start'),_0x463af7=_0x871103['get'](_0x1a000b)||new Set();_0x463af7['add'](_0x1306be['get'](_0x38304c)['userId']),_0x871103['set'](_0x1a000b,_0x463af7);}}for(const _0x2e40de of _0x871103['keys']())(_0x4eaee1['has'](_0x2e40de)||_0x1306be['has'](_0x2e40de))&&_0x871103['delete'](_0x2e40de);}for(const _0x50a6f9 of _0x4fcc52){const _0x20a094=_0x138464['insertions'][_0x50a6f9];let _0xb4fd4f=null,_0x3765e9=null;for(const _0x368087 of _0x20a094){const _0x273943=this['_getVidAttributeName'](_0x368087),_0x54fa5a=_0x368087['item']['getAttribute'](_0x273943),_0x156c69=_0x871103['get'](_0x54fa5a);_0x156c69&&'elementStart'==_0x368087['type']&&(_0xb4fd4f=Array['from'](_0x156c69)[0x0],_0x3765e9=_0x368087['item']['getAttribute']('vid_end')),_0xb4fd4f&&(_0x1306be['set'](_0x54fa5a,{'userId':_0xb4fd4f}),_0x4eaee1['set'](_0x54fa5a,{'userId':_0xb4fd4f})),_0x54fa5a==_0x3765e9&&(_0xb4fd4f=null,_0x3765e9=null);}}const _0xe622aa={},_0x321cf0=new Set();for(const _0x2c726c of _0x4fcc52){const _0x12dd52=_0x566049['deletions'][_0x2c726c],_0x2d5250=_0x566049['insertions'][_0x2c726c];for(const {userId:_0x57bd58}of this['_touchedMarkers']['values']())null!==_0x57bd58&&_0x321cf0['add'](_0x57bd58);for(const {userId:_0xed9d5}of this['_touchedRoots']['values']())null!==_0xed9d5&&_0x321cf0['add'](_0xed9d5);this['_markChanges'](_0x2d5250,_0x138464['insertions'][_0x2c726c],_0x4eaee1,'insertion',_0x321cf0),this['_markChanges'](_0x12dd52,_0x138464['deletions'][_0x2c726c],_0x1306be,'deletion',_0x321cf0),_0xe622aa[_0x2c726c]={'insertions':this['_prepareViewToSave'](_0x2d5250),'deletions':this['_prepareViewToSave'](_0x12dd52),'attachChange':this['_touchedRoots']['get'](_0x2c726c)||null,'attributesBefore':_0xff908a(this['_baseRootsAttributes']['get'](_0x2c726c))||{},'attributesAfter':_0xff908a(this['_diffRootsAttributes']['get'](_0x2c726c))};}return{'diffData':_0xe622aa,'authorsIds':Array['from'](_0x321cf0)};}['_processRootBeforeSave'](_0x370d9f){for(const [,_0x465cd3]of _0x370d9f['markers']){const _0x1ec0f1=_0x465cd3['start']['getAncestors']()['filter'](_0x54adf6=>'tableCell'==_0x54adf6['name']);for(const _0x792b77 of _0x1ec0f1)0x1==_0x792b77['childCount']&&_0x792b77['getChild'](0x0)['is']('element','paragraph')&&_0x792b77['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2ef8cb){this['_processRootBeforeSave'](_0x2ef8cb);const _0x2e2287=this['editor']['data']['toView'](_0x2ef8cb,{}),_0x486384=Array['from'](_0x2e2287['getChildren']())['map'](_0x17823c=>this['_getViewJson'](_0x17823c));return JSON['stringify'](_0x486384);}['_getViewJson'](_0x5333d9){if(_0x5333d9['is']('$text'))return _0x5333d9['data'];{const _0x4afd3c=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5036b3=_0x5333d9,_0x5607d1=this['editor']['data']['htmlProcessor']['domConverter'],_0x5611fe={'type':_0x4afd3c['_getTypeCharForViewElement'](_0x5036b3),'name':_0x5036b3['name'],'attributes':Array['from'](_0x5036b3['getAttributes']()),'children':Array['from'](_0x5036b3['getChildren']())['map'](_0x4cb5c4=>this['_getViewJson'](_0x4cb5c4))};if(_0x5333d9['is']('uiElement')&&'$comment'!=_0x5333d9['name']){const _0x372fed=_0x5333d9['render'](_0x5607d1['domDocument'],_0x5607d1);_0x5611fe['children']['push'](_0x372fed['outerHTML']);}else{if(_0x5333d9['is']('rawElement')){const _0x5e9ba5=_0x5607d1['domDocument']['createElement'](_0x5036b3['name']);_0x5333d9['render'](_0x5e9ba5,_0x5607d1),_0x5611fe['children']['push'](_0x5e9ba5['innerHTML']);}}const _0x32e6ad=Array['from'](_0x5036b3['getCustomProperties']());_0x32e6ad['length']>0x0&&(_0x5611fe['customProperties']=_0x32e6ad);const _0x15ccdc=_0x5036b3['getFillerOffset']();return null!==_0x15ccdc&&(_0x5611fe['fillerOffset']=_0x15ccdc),_0x5611fe;}}['_markChanges'](_0x4923ab,_0x4f79a4,_0x30b087,_0x20dd2c,_0x5826cd){let _0x4b93c6=null,_0x12cffd=null,_0x133668=0x0;const _0x16fef3=this['editor']['model'];for(let _0x4ec9b1=0x0;_0x4ec9b1<_0x4f79a4['length'];_0x4ec9b1++){const _0x5e3bf5=this['_getVidAttributeName'](_0x4f79a4[_0x4ec9b1]),_0x344e39=_0x4f79a4[_0x4ec9b1]['item']['getAttribute'](_0x5e3bf5),_0x58a34f=_0x30b087['get'](_0x344e39),_0x3e7df2=_0x4ec9b1==_0x4f79a4['length']-0x1;(!_0x4b93c6&&_0x58a34f&&(_0x4b93c6=_0x58a34f,_0x12cffd=_0x4f79a4[_0x4ec9b1]),_0x4b93c6&&(!_0x58a34f||_0x58a34f['userId']!=_0x4b93c6['userId']))&&(_0x259767(_0x58a34f,P(_0x12cffd,_0x4923ab,_0x16fef3),P(_0x4f79a4[_0x4ec9b1],_0x4923ab,_0x16fef3)),_0x4b93c6=_0x58a34f||null,_0x12cffd=_0x58a34f?_0x4f79a4[_0x4ec9b1]:null),_0x4b93c6&&_0x3e7df2&&_0x259767(_0x58a34f,P(_0x12cffd,_0x4923ab,_0x16fef3),V(_0x4f79a4[_0x4ec9b1],_0x4923ab,_0x16fef3));}function _0x259767(_0x1e6ce7,_0x322118,_0x2f0006){const _0x32669b=_0x4b93c6['userId'],_0x35f053='revision:'+_0x20dd2c+':'+_0x32669b+':'+_0x133668++,_0x1dad00=_0x16fef3['createRange'](_0x322118,_0x2f0006);_0x4923ab['markers']['set'](_0x35f053,_0x1dad00),null!==_0x32669b&&_0x5826cd['add'](_0x32669b);}}['_getVidAttributeName'](_0x2388c2){switch(_0x2388c2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x50349e,_0x28bf90){_0x50349e['baseVersion']=null;for(const _0x49b6e9 in _0x50349e){const _0x52b295=_0x50349e[_0x49b6e9];if(_0x52b295 instanceof _0x2cb078){const _0x91f5bf=_0x28bf90['get'](_0x52b295['root']['rootName']);_0x50349e[_0x49b6e9]=this['_fixPosition'](_0x52b295,_0x91f5bf);}if(_0x52b295 instanceof _0x35d140){const _0x205865=_0x28bf90['get'](_0x52b295['root']['rootName']);_0x50349e[_0x49b6e9]=this['_fixRange'](_0x52b295,_0x205865);}'root'===_0x49b6e9&&(_0x50349e['root']=_0x28bf90['get'](_0x50349e['root']['rootName']));}}['_fixRange'](_0x29977c,_0x49f47f){return this['editor']['model']['createRange'](this['_fixPosition'](_0x29977c['start'],_0x49f47f),this['_fixPosition'](_0x29977c['end'],_0x49f47f));}['_fixPosition'](_0x4da883,_0x1f75c9){return this['editor']['model']['createPositionFromPath'](_0x1f75c9,_0x4da883['path'],_0x4da883['stickiness']);}['_handleInsertOperation'](_0x56b8ec){const _0xff8c40=this['_idsRoots']['get'](_0x56b8ec['position']['root']['rootName']),_0x42a3c6=this['_fixPosition'](_0x56b8ec['position'],_0xff8c40),_0x303b21=null===_0x56b8ec['_authorId']?null:_0x56b8ec['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1eeadd=_0x42a3c6['parent'],_0x2c53ed=this['_revisionId'],_0x5d40ce=[];for(const _0x4fdbfd of _0x56b8ec['nodes'])if(_0x4fdbfd['is']('element'))_0x5d40ce['push'](this['_makeIdsRoot'](_0x4fdbfd));else{for(let _0x50b5be=0x0;_0x50b5be<_0x4fdbfd['offsetSize'];_0x50b5be++)_0x5d40ce['push'](new _0x1d82bc('$text',{'vid':this['_revisionId']++}));}const _0x2f698b=this['_revisionId'];for(let _0x352f17=_0x2c53ed;_0x352f17<_0x2f698b;_0x352f17++)this['_touched']['set'](_0x352f17,{'userId':_0x303b21});_0x1eeadd['_insertChild'](_0x42a3c6['offset'],_0x5d40ce);}['_handleMoveOperation'](_0x2f8c5e){(_0x2f8c5e=this['_cloneOperation'](_0x2f8c5e,this['_idsRoots']))['_execute']();const _0x76774c=null===_0x2f8c5e['_authorId']?null:_0x2f8c5e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x414a08=_0x2f8c5e['getMovedRangeStart'](),_0x2983f4=_0x414a08['parent'],_0x42003d=_0x414a08['offset'];!function _0x4e0ba4(_0x525a2e,_0x503885,_0x39213a,_0x1f920d){for(let _0x1587b4=_0x39213a;_0x1587b4<_0x1f920d;_0x1587b4++){const _0x2ae730=_0x503885['getChild'](_0x1587b4);_0x2ae730['is']('element','$text')?_0x525a2e['set'](_0x2ae730['getAttribute']('vid'),{'userId':_0x76774c}):(_0x525a2e['set'](_0x2ae730['getAttribute']('vid_start'),{'userId':_0x76774c}),_0x4e0ba4(_0x525a2e,_0x2ae730,0x0,_0x2ae730['childCount']),_0x525a2e['set'](_0x2ae730['getAttribute']('vid_end'),{'userId':_0x76774c}));}}(this['_touched'],_0x2983f4,_0x42003d,_0x42003d+_0x2f8c5e['howMany']);}['_handleMergeOperation'](_0x4ca8e7){const _0x24041d=null===(_0x4ca8e7=this['_cloneOperation'](_0x4ca8e7,this['_idsRoots']))['_authorId']?null:_0x4ca8e7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e76a4=_0x4ca8e7['targetPosition']['parent'],_0x9b9209=_0x4ca8e7['sourcePosition']['parent'],_0x21a926=_0x5e76a4['getAttribute']('vid_end'),_0x3f75b0=_0x9b9209['getAttribute']('vid_start');_0x5e76a4['_setAttribute']('vid_end',_0x9b9209['getAttribute']('vid_end')),_0x9b9209['_setAttribute']('vid_end',_0x21a926),this['_touched']['set'](_0x3f75b0,{'userId':_0x24041d}),this['_touched']['set'](_0x21a926,{'userId':_0x24041d}),_0x4ca8e7['_execute']();}['_handleSplitOperation'](_0x5b9097){const _0x20586b=null===(_0x5b9097=this['_cloneOperation'](_0x5b9097,this['_idsRoots']))['_authorId']?null:_0x5b9097['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4832cd=_0x5b9097['graveyardPosition'],_0x132903=_0x5b9097['splitPosition']['parent'];_0x5b9097['_execute']();const _0x5eafdd=_0x132903['getAttribute']('vid_end'),_0x317ba1=_0x5b9097['insertionPosition']['nodeAfter'];if(_0x4832cd){const _0x18769a=_0x317ba1['getAttribute']('vid_end'),_0x32c0a2=_0x132903['getAttribute']('vid_end');_0x132903['_setAttribute']('vid_end',_0x18769a),_0x317ba1['_setAttribute']('vid_end',_0x32c0a2),this['_touched']['set'](_0x132903['getAttribute']('vid_end'),{'userId':_0x20586b}),this['_touched']['set'](_0x317ba1['getAttribute']('vid_start'),{'userId':_0x20586b});}else{const _0x2d1ded=this['_revisionId']++,_0x1a1105=this['_revisionId']++;_0x132903['_setAttribute']('vid_end',_0x2d1ded),_0x317ba1['_setAttribute']('vid_start',_0x1a1105),_0x317ba1['_setAttribute']('vid_end',_0x5eafdd),this['_touched']['set'](_0x2d1ded,{'userId':_0x20586b}),this['_touched']['set'](_0x1a1105,{'userId':_0x20586b});}}['_handleMarkerOperation'](_0x3ea07b){if(!_0x3ea07b['affectsData'])return;const _0xf943b7=(_0x3ea07b=this['_cloneOperation'](_0x3ea07b,this['_diffRoots']))['oldRange']?_0x3ea07b['oldRange']['root']:null,_0x2b4808=_0x3ea07b['newRange']?_0x3ea07b['newRange']['root']:null;_0xf943b7&&this['_markers']['delete'](_0x3ea07b['name']),_0x2b4808&&this['_markers']['set'](_0x3ea07b['name'],_0x3ea07b['newRange']['clone']());const _0x2d895f=null===_0x3ea07b['_authorId']?null:_0x3ea07b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28a696=_0x3ea07b['name'];if(!this['_touchedMarkers']['has'](_0x28a696))return void this['_touchedMarkers']['set'](_0x28a696,{'range':_0x3ea07b['oldRange'],'userId':_0x2d895f});const _0x36d5f9=this['_touchedMarkers']['get'](_0x28a696),_0x4998bf=_0x36d5f9['range'],_0xc4bb08=_0x3ea07b['newRange'];null==_0x4998bf&&null==_0xc4bb08||_0x4998bf&&_0xc4bb08&&_0x4998bf['isEqual'](_0xc4bb08)?this['_touchedMarkers']['delete'](_0x3ea07b['name']):_0x36d5f9['userId']=_0x2d895f;}['_handleRootOperation'](_0x39603a,_0x6eb78f){this['_diffRoots']['has'](_0x39603a['rootName'])?this['_diffRoots']['get'](_0x39603a['rootName'])['_isAttached']=_0x39603a['isAdd']:(this['_diffRoots']['set'](_0x39603a['rootName'],N(_0x39603a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x39603a['rootName'],{}),_0x6eb78f&&this['_idsRoots']['set'](_0x39603a['rootName'],N(_0x39603a['rootName'],!0x0)));const _0x44be1c=null===_0x39603a['_authorId']?null:_0x39603a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f1824=this['_touchedRoots']['get'](_0x39603a['rootName']);_0x2f1824&&_0x2f1824['userId']===_0x44be1c?this['_touchedRoots']['delete'](_0x39603a['rootName']):this['_touchedRoots']['set'](_0x39603a['rootName'],{'userId':_0x44be1c,'isAttached':_0x39603a['isAdd']});}['_handleRootAttributeOperation'](_0x31f3ea){const _0x2717b8=this['_diffRootsAttributes']['get'](_0x31f3ea['root']['rootName']);null===_0x31f3ea['newValue']?delete _0x2717b8[_0x31f3ea['key']]:_0x2717b8[_0x31f3ea['key']]=_0x31f3ea['newValue'];}}function x(_0x28a9c8){const _0x46eaf5=N(_0x28a9c8['rootName'],_0x28a9c8['isAttached']());for(const _0x537856 of _0x28a9c8['getChildren']()){const _0x3dedff=_0x537856['_clone'](!0x0);_0x46eaf5['_appendChild'](_0x3dedff);}return _0x46eaf5;}function N(_0xc256c7,_0x1097cd=!0x0){const _0x2ab8c3=new _0x5878c9();return _0x2ab8c3['rootName']=_0xc256c7,_0x2ab8c3['_isAttached']=_0x1097cd,_0x2ab8c3['isAttached']=()=>_0x2ab8c3['_isAttached'],_0x2ab8c3;}function P(_0x583b49,_0x3e4fd1,_0x474813){const _0xa3d1cc='elementEnd'==_0x583b49['type']?_0x474813['createPositionAt'](_0x583b49['item'],'end'):_0x474813['createPositionBefore'](_0x583b49['item']);return _0x474813['createPositionFromPath'](_0x3e4fd1,_0xa3d1cc['path'],_0xa3d1cc['stickiness']);}function V(_0xaee6eb,_0x34342d,_0x509afe){const _0x5a5c60='elementStart'==_0xaee6eb['type']?_0x509afe['createPositionAt'](_0xaee6eb['item'],0x0):_0x509afe['createPositionAfter'](_0xaee6eb['item']);return _0x509afe['createPositionFromPath'](_0x34342d,_0x5a5c60['path'],_0x5a5c60['stickiness']);}class me extends/* #__PURE__ -- @preserve */
25
+ _0x2187a0(_0x5b8a89){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x28776e,_0x1f0309){super(_0x28776e),this['focusTracker']=new _0x37bcaa(),this['keystrokes']=new _0x551cc4(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1f0309),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x26d83c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x520290=_0x43bbab=>_0x43bbab['stopPropagation']();this['keystrokes']['set']('arrowright',_0x520290),this['keystrokes']['set']('arrowleft',_0x520290),this['keystrokes']['set']('arrowup',_0x520290),this['keystrokes']['set']('arrowdown',_0x520290);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x20ce9d){this['revisionNameInputView']['fieldView']['element']['value']=_0x20ce9d['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x562478){const _0x1dc9d0=new et(this['locale'],ti),_0x1cdb0f=_0x1dc9d0['fieldView'];_0x1cdb0f['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x236f36=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x562478&&(_0x236f36+='\x20('+m(this['locale'],'optional')+')'),(_0x1dc9d0['label']=_0x236f36,_0x1cdb0f['on']('input',()=>{this['revisionNameInputValue']=_0x1cdb0f['element']['value']['trim']();}),_0x1dc9d0);}}class l extends _0x16d9db{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x55f73d=this['editor'],_0x1e50d9=_0x55f73d['plugins']['get']('RevisionTracker');_0x55f73d['ui']['componentFactory']['add']('revisionHistory',_0x175dea=>{const _0x19cbde=_0x5cea77(_0x175dea),_0x4911e6=_0x19cbde['panelView']['children'],_0x45fdb5=new _0x478032(_0x175dea),_0x41c6f7=new _0x275460(_0x175dea),_0x3b9d56=new _0xd092cd(_0x175dea),_0x10436a=new _0x275460(_0x175dea),_0xefb53e=new _0xd092cd(_0x175dea);return _0x19cbde['bind']('isEnabled')['to'](_0x1e50d9,'isReady',_0x1e50d9,'isEnabled',_0x55f73d,'isReadOnly',(_0x5cf5d1,_0x321d6f,_0x306491)=>_0x5cf5d1&&_0x321d6f&&!_0x306491),_0x19cbde['buttonView']['set']({'icon':_0x3448b7,'label':m(_0x175dea,'Revision\x20history'),'tooltip':!0x0}),_0x3b9d56['set']({'label':m(_0x175dea,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3b9d56['bind']('isEnabled')['to'](_0x1e50d9,'isReady',_0x1e50d9,'isEnabled',_0x55f73d,'isReadOnly',(_0x55d26f,_0x303361,_0x544357)=>_0x55d26f&&_0x303361&&!_0x544357),_0x3b9d56['on']('execute',()=>this['_showDialog']()),_0xefb53e['set']({'label':m(_0x175dea,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xefb53e['bind']('isEnabled')['to'](_0x1e50d9,'isReady',_0x55f73d,'isReadOnly',(_0x2dd8d1,_0x13c3f9)=>_0x2dd8d1&&!_0x13c3f9),_0xefb53e['on']('execute',()=>{_0x55f73d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x19cbde['isOpen']=!0x1,_0x55f73d['editing']['view']['focus']();}),_0x41c6f7['children']['add'](_0x3b9d56),_0x10436a['children']['add'](_0xefb53e),_0x45fdb5['role']='menu',_0x45fdb5['items']['addMany']([_0x41c6f7,_0x10436a]),_0x4911e6['add'](_0x45fdb5),_0x19cbde;}),_0x55f73d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x12134a=this['editor'],_0x12864f=_0x12134a['locale'],_0x522ee9=new _0x2ba40c(_0x12864f),_0x58fedc=new _0x6c7f6c(_0x12864f);_0x522ee9['buttonView']['set']({'icon':_0x3448b7,'label':m(_0x12864f,'Revision\x20history')});const _0x5d2a4c=new _0x554e70(_0x12864f,_0x522ee9),_0x3f2818=new _0x5c3ecc(_0x12864f);_0x3f2818['set']({'label':m(_0x12864f,'Save\x20current\x20revision')}),_0x3f2818['delegate']('execute')['to'](_0x522ee9),_0x3f2818['on']('execute',()=>{this['_showDialog']();}),_0x5d2a4c['children']['add'](_0x3f2818),_0x58fedc['items']['add'](_0x5d2a4c);const _0x4266b2=new _0x554e70(_0x12864f,_0x522ee9),_0x29e93b=new _0x5c3ecc(_0x12864f);return _0x29e93b['set']({'label':m(_0x12864f,'Open\x20revision\x20history')}),_0x29e93b['delegate']('execute')['to'](_0x522ee9),_0x29e93b['on']('execute',()=>{_0x12134a['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4266b2['children']['add'](_0x29e93b),_0x58fedc['items']['add'](_0x4266b2),_0x522ee9['panelView']['children']['add'](_0x58fedc),_0x522ee9;}['_showDialog'](){const _0x56adf4=this['editor'],_0x452e88=_0x56adf4['locale'],_0x33bcbf=_0x56adf4['plugins']['get']('Dialog'),_0x125a55=_0x56adf4['plugins']['get']('RevisionTracker');function _0x54fee4(_0x3c307f){_0x56adf4['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3c307f['revisionName']?_0x3c307f['revisionNameInputView']['errorText']=m(_0x452e88,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x56adf4['plugins']['get'](h)['saveRevision']({'name':_0x3c307f['revisionName']}),_0x33bcbf['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x54fee4(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x33bcbf['show']({'id':'revisionSave','title':m(_0x452e88,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x56adf4['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x33bcbf['hide']()},{'label':m(_0x56adf4['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x163326){_0x163326['bind']('isEnabled')['to'](_0x125a55,'isReady',_0x125a55,'isEnabled',_0x56adf4,'isReadOnly',(_0x5d5613,_0x189801,_0x296d3b)=>_0x5d5613&&_0x189801&&!_0x296d3b);},'onExecute':()=>_0x54fee4(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x148c17=this['editor'],_0x22cfc6=_0x148c17['locale'];this['_saveRevisionFormView']=new me(_0x22cfc6,_0x148c17['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x5b8a89{['changeId'];['_model'];constructor(_0x1b07ae,_0x171a82){super(_0x1b07ae),this['_model']=_0x171a82,this['changeId']=_0x171a82['id'];const _0x1b1eb6=this['bindTemplate'],_0x508e01=m(_0x1b07ae,_0x171a82['data']['isSuggestion']?'Suggested\x20by':'add'==_0x171a82['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x171a82['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1b1eb6['to']('type',_0xe92246=>'ck-revision-change__'+_0xe92246)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x508e01}]},{'text':'\x20'+_0x171a82['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
26
+ _0x57943b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4a27f0){super(),this['id']=_0x4a27f0['id']||_0x2d5220(),this['author']=_0x4a27f0['author'],this['type']=_0x4a27f0['type'],this['data']=_0x4a27f0['data']||{},this['rootName']=_0x4a27f0['rootName'],this['set']('createdAt',_0x4a27f0['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5a533c,_0x1bad7d){this['newRevisionId']=_0x5a533c,this['oldRevisionId']=_0x1bad7d,this['changes']=new _0x5a818f();}['_setChanges'](_0x2853d9){for(const _0x220882 of _0x2853d9)this['changes']['add'](_0x220882);}}class u extends _0x16d9db{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x22ce6c,_0x541e9a,S,$];}constructor(_0x51d59b){super(_0x51d59b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),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',(_0x15cd3c,_0x474596,_0x19c8f5)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5b10fb=>{for(const _0x4cecb9 of this['editor']['editing']['view']['document']['roots'])_0x19c8f5?_0x5b10fb['removeClass']('ck-editor__editable__overlay',_0x4cecb9):_0x5b10fb['addClass']('ck-editor__editable__overlay',_0x4cecb9);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x258d5b=>null!==_0x258d5b),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2b9759,_0x3d1f06,_0x125071)=>_0x2b9759&&_0x125071?_0x3d1f06['changes']['getIndex'](_0x125071):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2321a1,_0x428c10)=>_0x2321a1?_0x428c10['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x541e9a);}['init'](){const _0x30669a=this['editor'],_0x5376cf=new rt(_0x30669a,{'direction':'backward'}),_0x29f564=new rt(_0x30669a,{'direction':'forward'});(_0x30669a['commands']['add']('showPreviousChange',_0x5376cf),_0x30669a['commands']['add']('showNextChange',_0x29f564),_0x30669a['commands']['add']('restoreRevision',new nt(_0x30669a)),this['on']('change:numberOfChanges',()=>{_0x5376cf['refresh'](),_0x29f564['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x30669a['enableReadOnlyMode']('revision-viewer'),_0x30669a['plugins']['has']('WidgetToolbarRepository'))&&_0x30669a['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x4dee88){return await this['_utils']['loadRevisionData'](_0x4dee88,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4dee88);}async['getRevisionRootsAttributes'](_0x370e0c){return await this['_utils']['loadRevisionData'](_0x370e0c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x370e0c);}async['compare'](_0x219332,_0x4ebae0,_0x54d401=!0x1){if(!this['isEnabled'])return;const _0x4449a7=this['diff'],_0x3ee408=this['repository'],_0x374eca='string'==typeof _0x219332?_0x3ee408['getRevision'](_0x219332):_0x219332,_0x5ea0ec='string'==typeof _0x4ebae0?_0x3ee408['getRevision'](_0x4ebae0):_0x4ebae0,_0xc71d7c=_0x374eca['id'],_0x23567e=_0x5ea0ec?_0x5ea0ec['id']:null;if(!_0x54d401&&this['diff']&&this['diff']['newRevisionId']===_0xc71d7c&&this['diff']['oldRevisionId']===_0x23567e)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0xc71d7c,_0x23567e);const _0x54fd06=this['_getRevisionsRange'](_0x374eca,_0x5ea0ec,!0x0)['map'](_0x1e02e9=>this['_utils']['loadRevisionData'](_0x1e02e9,this['adapter']));return _0x54fd06['push'](new Promise(_0x140cd9=>{setTimeout(_0x140cd9,0x14);})),Promise['all'](_0x54fd06)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x168a59=this['_getDiff'](_0xc71d7c,_0x23567e);for(const _0x3acc80 of _0x168a59['changes'])this['_changeIdToChange']['set'](_0x3acc80['id'],_0x3acc80);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1c1b06=>{for(const _0x196e8a of this['editor']['model']['document']['getRootNames']())_0x1c1b06['detachRoot'](_0x196e8a);for(const _0x1df66b of Object['keys'](_0x168a59['model'])){const _0x2adf84=_0x1c1b06['addRoot'](_0x1df66b);for(const _0x3ee512 of Object['keys'](_0x168a59['attributes'][_0x1df66b]))_0x1c1b06['setAttribute'](_0x3ee512,_0x168a59['attributes'][_0x1df66b][_0x3ee512],_0x2adf84);_0x1c1b06['insert'](_0x168a59['model'][_0x1df66b],_0x2adf84,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x168a59['changes'])),this['isReady']=!0x0;})['catch'](_0x5e6d41=>{console['error'](_0x5e6d41),this['_cleanUp'](),_0x4449a7&&(this['diff']=_0x4449a7),this['isReady']=!0x0;});}['addRevisionData'](_0x122c4b,_0x1b3ad2){const _0x320c22=this['repository']['createRevision'](_0x122c4b);return _0x320c22['on']('_update',(_0x5db02a,_0x45f143,_0x3e72bf)=>_0x1b3ad2(_0x45f143,_0x3e72bf,_0x320c22)),this['repository']['addRevision'](_0x320c22),_0x320c22;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4c4220=>{for(const _0x77d969 of this['editor']['model']['document']['getRootNames']())_0x4c4220['detachRoot'](_0x77d969);});}['_sortAndFilterDiffChanges'](_0x2d0678){const _0x54a6d3=[],_0x58af17=new Map();for(const _0x129196 of this['editor']['model']['document']['getRootNames']()){const _0x33b6d7=this['editor']['editing']['view']['getDomRoot'](_0x129196);if(!_0x33b6d7)continue;const _0x1fca7c=_0x33b6d7['getClientRects']()['item'](0x0);_0x1fca7c&&(_0x54a6d3['push'](_0x129196),_0x58af17['set'](_0x129196,_0x1fca7c));}return _0x54a6d3['sort']((_0x461ce2,_0x34ec52)=>{const _0x21d5b5=_0x58af17['get'](_0x461ce2),_0x28b55f=_0x58af17['get'](_0x34ec52);return _0x21d5b5['y']-_0x28b55f['y']||_0x21d5b5['x']-_0x28b55f['x'];}),(_0x2d0678=_0x2d0678['filter'](_0x3e8fe0=>_0x54a6d3['includes'](_0x3e8fe0['rootName'])))['sort']((_0x28985d,_0x452ee6)=>_0x54a6d3['indexOf'](_0x28985d['rootName'])-_0x54a6d3['indexOf'](_0x452ee6['rootName'])),_0x2d0678;}['_makeTape'](_0x39bd14){const _0xd9c9e1=Array['from'](_0x39bd14['markers'])['filter'](([_0x172d31,_0x1acd05])=>_0x172d31['startsWith']('revision:')&&!_0x1acd05['isCollapsed']),_0x177f78=Array['from'](this['editor']['model']['createRangeIn'](_0x39bd14)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xd9c9e1['length'])for(const _0x246ae6 of _0x177f78){const [_0x5e99f9,_0x1c522e]=_0xd9c9e1[0x0],[,_0x3635b5,_0x1f8d7f]=_0x5e99f9['split'](':');if(_0x1c522e['end']['isEqual'](_0x246ae6['nextPosition'])&&_0xd9c9e1['shift'](),(_0x246ae6['previousPosition']['isEqual'](_0x1c522e['start'])||_0x246ae6['previousPosition']['isAfter'](_0x1c522e['start']))&&('insertion'==_0x3635b5?_0x246ae6['isAdded']={'userId':_0x1f8d7f}:'deletion'==_0x3635b5&&(_0x246ae6['isRemoved']={'userId':_0x1f8d7f})),0x0==_0xd9c9e1['length'])break;}return _0x177f78;}['_refreshStartEndIndex'](_0x24a8f2){const _0x410f73=new Map();for(let _0x414c84=0x0;_0x414c84<_0x24a8f2['length'];_0x414c84++)'text'===_0x24a8f2[_0x414c84]['type']?(_0x24a8f2[_0x414c84]['item']['startIndex']=_0x414c84,_0x24a8f2[_0x414c84]['item']['endIndex']=_0x414c84):('elementStart'===_0x24a8f2[_0x414c84]['type']?_0x24a8f2[_0x414c84]['item']['startIndex']=_0x414c84:'elementEnd'===_0x24a8f2[_0x414c84]['type']&&(_0x24a8f2[_0x414c84]['item']['endIndex']=_0x414c84),_0x410f73['set'](_0x24a8f2[_0x414c84]['id'],_0x414c84));for(const _0x8bed64 of _0x410f73['values']())'elementStart'===_0x24a8f2[_0x8bed64]['type']?_0x24a8f2[_0x8bed64]['item']['endIndex']=_0x410f73['get'](_0x24a8f2[_0x8bed64]['pairId']):'elementEnd'===_0x24a8f2[_0x8bed64]['type']&&(_0x24a8f2[_0x8bed64]['item']['startIndex']=_0x410f73['get'](_0x24a8f2[_0x8bed64]['pairId']));}['_processTape'](_0x486f53){for(let _0x428450=0x0;_0x428450<_0x486f53['length'];_0x428450++){if('elementStart'===_0x486f53[_0x428450]['type'])_0x486f53[_0x428450]['item']['startIndex']=_0x428450;else{if('elementEnd'===_0x486f53[_0x428450]['type']){_0x486f53[_0x428450]['item']['endIndex']=_0x428450;const _0x182dca=_0x486f53[_0x428450]['item']['startIndex'];_0x486f53[_0x182dca]['pairId']=_0x486f53[_0x428450]['id'],_0x486f53[_0x428450]['pairId']=_0x486f53[_0x182dca]['id'];}else _0x486f53[_0x428450]['item']['startIndex']=_0x428450,_0x486f53[_0x428450]['item']['endIndex']=_0x428450,_0x486f53[_0x428450]['pairId']=null;}_0x486f53[_0x428450]['markersStart']||(_0x486f53[_0x428450]['markersStart']=[],_0x486f53[_0x428450]['markersEnd']=[]);}}['_markInsertions'](_0x4d66,_0x4d7ea1){const _0x4fef70=_0x4d66['filter'](_0x1f4eef=>!_0x1f4eef['isAdded']);for(let _0x8a98db=0x0;_0x8a98db<_0x4d7ea1['length'];_0x8a98db++)_0x4d7ea1[_0x8a98db]['isAdded']&&(_0x4fef70[_0x8a98db]['isAdded']=_0x4d7ea1[_0x8a98db]['isAdded']);}['_getDiff'](_0x3f567d,_0x5b2f9e=null){const _0x3ac622=this['repository']['getRevision'](_0x3f567d),_0x336537=_0x5b2f9e?this['repository']['getRevision'](_0x5b2f9e):null,_0x28ba59=this['_getRevisionsRange'](_0x3ac622,_0x336537),_0x575b58=_0x28ba59[_0x28ba59['length']-0x1],_0x4f544e=new Map(),_0x2a9e89={'model':{},'attributes':{},'changes':[]},_0x4f0726=new Set(),_0x53587d=new Map();for(let _0x2ec7ff=_0x28ba59['length']-0x1;_0x2ec7ff>=0x0;_0x2ec7ff--){const _0x3ea268=_0x28ba59[_0x2ec7ff];for(const _0x1b2c10 of Object['keys'](_0x3ea268['diffData']))if(_0x3ea268['diffData'][_0x1b2c10]['attachChange']){const _0x2acda9=_0x3ea268['diffData'][_0x1b2c10]['attachChange'];_0x2acda9['isAttached']?(_0x4f0726['add'](_0x1b2c10),_0x53587d['has'](_0x1b2c10)&&_0x53587d['get'](_0x1b2c10)['userId']==_0x2acda9['userId']?_0x53587d['delete'](_0x1b2c10):_0x53587d['set'](_0x1b2c10,_0x2acda9)):_0x53587d['has'](_0x1b2c10)?(_0x4f0726['delete'](_0x1b2c10),_0x53587d['delete'](_0x1b2c10)):(_0x4f0726['add'](_0x1b2c10),_0x53587d['set'](_0x1b2c10,_0x2acda9));}else _0x4f0726['add'](_0x1b2c10);}for(const _0x4a587c of _0x4f0726){const _0x291a8c=_0x53587d['has'](_0x4a587c)&&!_0x53587d['get'](_0x4a587c)['isAttached'];let _0x57e7f5=_0x291a8c?_0x28ba59['length']-0x1:0x0;const _0x555b17=_0x291a8c?-0x1:0x1;for(;_0x28ba59[_0x57e7f5];){const _0x51c645=_0x28ba59[_0x57e7f5];if(_0x51c645['diffData'][_0x4a587c]){const _0x4147fd=_0x291a8c?_0x51c645['diffData'][_0x4a587c]['attributesBefore']:_0x51c645['diffData'][_0x4a587c]['attributesAfter'];_0x2a9e89['attributes'][_0x4a587c]=_0x4147fd?_0xff908a(_0x4147fd):{};break;}_0x57e7f5+=_0x555b17;}}for(const _0x5eb25d of _0x28ba59){_0x5eb25d['model']={};for(const _0x104089 of _0x5eb25d['authors'])_0x4f544e['set'](_0x104089['id'],_0x104089);for(const _0x553021 of _0x4f0726){const _0x2a161c=_0x5eb25d['diffData'][_0x553021]?_0x5eb25d['diffData'][_0x553021]['insertions']:'[]',_0xbeae35=_0x5eb25d['diffData'][_0x553021]?_0x5eb25d['diffData'][_0x553021]['deletions']:'[]';_0x5eb25d['model'][_0x553021]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2a161c),'deletions':this['_utils']['_makeModelFromViewString'](_0xbeae35)};}}for(const _0x408a17 of _0x4f0726){let _0x32f033=null,_0x43a6ec=0x0;const _0x142a06=new Map(Array['from'](_0x3ac622['model'][_0x408a17]['insertions']['markers'])['filter'](([_0x563e7a])=>!_0x563e7a['startsWith']('revision:')));let _0x4992a3=0x0;for(const _0x3759c2 of _0x28ba59){const _0x1de544=this['_makeTape'](_0x3759c2['model'][_0x408a17]['insertions']);_0x3759c2==_0x3ac622?(_0x32f033=_0x1de544,_0x43a6ec=_0x32f033['length'],_0x32f033['forEach'](_0xcefc26=>{_0xcefc26['id']=_0x4992a3++;}),this['_processTape'](_0x32f033)):this['_markInsertions'](_0x32f033,_0x1de544);const _0x429bcc=_0x32f033['filter'](_0x431107=>!_0x431107['isAdded'])['map'](_0x463556=>_0x463556['id']);let _0x1a786=0x0;const _0x5811d9=this['_makeTape'](_0x3759c2['model'][_0x408a17]['deletions']);_0x5811d9['forEach'](_0x86a555=>{_0x86a555['isRemoved']?_0x86a555['id']=_0x43a6ec++:_0x86a555['id']=_0x429bcc[_0x1a786++];}),this['_processTape'](_0x5811d9),this['_setDistance'](_0x32f033,'isAdded'),this['_setDistance'](_0x5811d9,'isRemoved'),_0x3759c2==_0x3ac622&&this['_markMarkers'](_0x32f033,_0x142a06),_0x32f033=this['_joinTapes'](_0x32f033,_0x5811d9),this['_refreshStartEndIndex'](_0x32f033),this['_setDistance'](_0x32f033,'isRemoved');}_0x32f033=_0x32f033['filter'](_0x5bec17=>!(_0x5bec17['isAdded']&&_0x5bec17['isRemoved']));const _0xa71e29=new Map(_0x575b58['model'][_0x408a17]['deletions']['markers']),_0x3061e7=new Set(_0x142a06['keys']());for(const _0xbb3d3e of _0xa71e29['keys']())_0x3061e7['delete'](_0xbb3d3e);this['_markSuggestions'](_0x32f033,_0x3061e7),this['_fixObsoleteTags'](_0x32f033),_0x32f033=this['_removeMissingPairs'](_0x32f033),_0x32f033=this['_markMismatchedRemovedTags'](_0x32f033),_0x32f033=this['_removeUnsupportedChanges'](_0x32f033);const {root:_0x2ba574,changes:_0x36c9a6}=this['_makeModelFromTape'](_0x32f033,_0x4f544e,_0x408a17);_0x2a9e89['model'][_0x408a17]=_0x2ba574;const _0x560e14=_0x53587d['get'](_0x408a17);if(_0x560e14){const _0x5c70d3=_0x4f544e['get'](_0x560e14['userId']),_0x10eb5a=new G({'author':_0x5c70d3,'type':_0x560e14['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x408a17});_0x36c9a6['unshift'](_0x10eb5a),_0x2a9e89['attributes'][_0x408a17]['revisionHistoryAttachChange']=_0x10eb5a['id'];}_0x2a9e89['changes']=_0x2a9e89['changes']['concat'](_0x36c9a6);}return _0x2a9e89;}['_markMarkers'](_0x2bc2ed,_0x4b0930){for(let _0x52a9af=0x0;_0x52a9af<_0x2bc2ed['length'];_0x52a9af++)for(const [_0x1de373,_0x5cd2e8]of _0x4b0930)!_0x5cd2e8['isCollapsed']&&_0x5cd2e8['start']['isEqual'](_0x2bc2ed[_0x52a9af]['previousPosition'])&&_0x2bc2ed[_0x52a9af]['markersStart']['push'](_0x1de373),_0x5cd2e8['end']['isEqual'](_0x2bc2ed[_0x52a9af]['nextPosition'])&&_0x2bc2ed[_0x52a9af]['markersEnd']['push'](_0x1de373);}['_joinTapes'](_0x133238,_0x2cb2d3){let _0x47ce8e=[],_0x5e6139=0x0,_0x19c257=0x0;for(;_0x5e6139<_0x133238['length']||_0x19c257<_0x2cb2d3['length'];){const _0x41967b=_0x133238[_0x5e6139]||{},_0x14c8bd=_0x2cb2d3[_0x19c257]||{};if(_0x41967b['id']==_0x14c8bd['id'])_0x5e6139++,_0x19c257++,_0x47ce8e['push'](_0x41967b);else{if(_0x14c8bd['isRemoved']&&_0x41967b['isAdded']){const {commonTape:_0x32e2be,iEnd:_0x1aa11f,jEnd:_0x24a3b7}=this['_threeWayMerge'](_0x133238,_0x5e6139,_0x2cb2d3,_0x19c257);_0x47ce8e=_0x47ce8e['concat'](_0x32e2be),_0x5e6139=_0x1aa11f,_0x19c257=_0x24a3b7;}else _0x14c8bd['isRemoved']?(_0x19c257++,_0x47ce8e['push'](_0x14c8bd)):(_0x5e6139++,_0x47ce8e['push'](_0x41967b));}}return _0x47ce8e;}['_markSuggestions'](_0x268001,_0x4e7ce8){const _0x3ec491=[];for(let _0x3165d6=0x0;_0x3165d6<_0x268001['length'];_0x3165d6++){for(let _0x4ad80e=0x0;_0x4ad80e<_0x268001[_0x3165d6]['markersStart']['length'];_0x4ad80e++){const _0x11378f=_0x268001[_0x3165d6]['markersStart'][_0x4ad80e];if(!_0x4e7ce8['has'](_0x11378f))continue;const {group:_0x1c7155,type:_0x590d35,authorId:_0x3c3ec5}=_0x450187(_0x11378f);'revision-suggestion'!=_0x1c7155||'insertion'!=_0x590d35&&'deletion'!=_0x590d35||(_0x3ec491['unshift']({'type':_0x590d35,'name':_0x11378f,'userId':_0x3c3ec5}),_0x268001[_0x3165d6]['markersStart']['splice'](_0x4ad80e,0x1),_0x4ad80e--);}_0x424ed9(_0x268001[_0x3165d6]);for(let _0x3d1246=0x0;_0x3d1246<_0x268001[_0x3165d6]['markersEnd']['length'];_0x3d1246++){const _0x239b5c=_0x268001[_0x3165d6]['markersEnd'][_0x3d1246];if(!_0x4e7ce8['has'](_0x239b5c))continue;const {group:_0x39e6c1,type:_0x4a3ca0}=_0x450187(_0x239b5c);if('revision-suggestion'!=_0x39e6c1||'insertion'!=_0x4a3ca0&&'deletion'!=_0x4a3ca0)continue;_0x268001[_0x3165d6]['markersEnd']['splice'](_0x3d1246,0x1),_0x3d1246--;const _0x2ee711=_0x3ec491['findIndex'](_0x1beb07=>_0x1beb07['name']==_0x239b5c);_0x2ee711>-0x1&&_0x3ec491['splice'](_0x2ee711,0x1);}}function _0x450187(_0x3f4141){const _0x5d60da=_0x3f4141['split'](':');return{'group':_0x5d60da[0x0],'type':_0x5d60da[0x1],'subType':_0x5d60da['length']>=0x5?_0x5d60da[0x2]:null,'id':_0x5d60da['length']<0x5?_0x5d60da[0x2]:_0x5d60da[0x3],'authorId':_0x5d60da['length']<0x5?_0x5d60da[0x3]:_0x5d60da[0x4],'markerCount':0x6==_0x5d60da['length']?_0x5d60da[0x5]:null};}function _0x424ed9(_0x143c16){for(let _0x4d3996=0x0;_0x4d3996<_0x3ec491['length'];_0x4d3996++){if(_0x143c16['isAdded']&&'insertion'==_0x3ec491[_0x4d3996]['type']&&_0x143c16['isAdded']['userId']==_0x3ec491[_0x4d3996]['userId'])return _0x143c16['isAddSuggestion']=_0x3ec491[_0x4d3996],void delete _0x143c16['isAdded'];if(!_0x143c16['isAdded']&&!_0x143c16['isRemoved']&&'deletion'==_0x3ec491[_0x4d3996]['type'])return void(_0x143c16['isRemoveSuggestion']=_0x3ec491[_0x4d3996]);}}}['_setDistance'](_0x2ebfc5,_0x43e236){let _0x142b2e=0x0,_0xda7dff=!0x1;const _0x5bca9e=new Map();for(const _0x4c6d11 of _0x2ebfc5)_0x4c6d11[_0x43e236]?_0xda7dff&&(_0x142b2e++,_0xda7dff=!0x1):(_0x142b2e++,_0xda7dff=!0x0),_0x5bca9e['set'](_0x4c6d11['id'],_0x142b2e);for(let _0x44fcc3=0x0;_0x44fcc3<_0x2ebfc5['length'];_0x44fcc3++){if('isRemoved'==_0x43e236&&_0x2ebfc5[_0x44fcc3]['isAdded']||'isAdded'==_0x43e236&&_0x2ebfc5[_0x44fcc3]['isRemoved'])continue;if('text'==_0x2ebfc5[_0x44fcc3]['type']){_0x2ebfc5[_0x44fcc3]['distance']=0x0;continue;}const _0x47b482=_0x5bca9e['get'](_0x2ebfc5[_0x44fcc3]['pairId']),_0x13bac2=_0x5bca9e['get'](_0x2ebfc5[_0x44fcc3]['id']);_0x2ebfc5[_0x44fcc3]['distance']=_0x47b482-_0x13bac2;}}['_getRevisionsRange'](_0xd0f3b6,_0x5da5e9,_0x3749c0=!0x1){const _0x464463=[];let _0x54e784=this['repository']['getIndex'](_0xd0f3b6),_0x525dfd=this['repository']['getIndex'](_0x5da5e9);for(-0x1==_0x525dfd&&(_0x525dfd=this['repository']['_revisions']['length'],_0x3749c0=!0x1);_0x54e784<_0x525dfd;)_0x464463['push'](this['repository']['getRevision'](_0x54e784)),_0x54e784++;return _0x3749c0&&_0x464463['push'](this['repository']['getRevision'](_0x54e784)),_0x464463;}['_threeWayMerge'](_0x1745f0,_0x3d55d0,_0x18fbca,_0x1aedb8){const _0x49c747=this['editor']['model']['schema'];let _0x555a1f=_0x3d55d0;for(;_0x1745f0[_0x555a1f]&&_0x1745f0[_0x555a1f]['isAdded'];)_0x555a1f++;let _0x1a0d14=_0x1aedb8;for(;_0x18fbca[_0x1a0d14]&&_0x18fbca[_0x1a0d14]['isRemoved'];)_0x1a0d14++;_0xcd0916(_0x1745f0,_0x3d55d0,_0x555a1f),_0xcd0916(_0x18fbca,_0x1aedb8,_0x1a0d14);const _0x4f3e06=_0x18fbca['slice'](_0x1aedb8,_0x1a0d14)['concat'](_0x1745f0['slice'](_0x3d55d0,_0x555a1f));return _0x4f3e06['sort']((_0x4369fe,_0x2d6670)=>_0x4369fe['side']!=_0x2d6670['side']?_0x4369fe['side']-_0x2d6670['side']:_0x4369fe['level']!=_0x2d6670['level']?_0x4369fe['level']-_0x2d6670['level']:_0x4369fe['distance']!=_0x2d6670['distance']?_0x2d6670['distance']-_0x4369fe['distance']:!!_0x4369fe['isAdded']!=!!_0x2d6670['isAdded']?-0x1==_0x4369fe['side']||0x0==_0x4369fe['side']?_0x4369fe['isAdded']?-0x1:0x1:_0x4369fe['isAdded']?0x1:-0x1:_0x4369fe['index']-_0x2d6670['index']),{'commonTape':_0x4f3e06,'iEnd':_0x555a1f,'jEnd':_0x1a0d14};function _0xcd0916(_0x1eb8f7,_0x4c7e63,_0x1e1511){let _0x280194=-0x1,_0xdb3e8a=Number['POSITIVE_INFINITY'],_0x2378b5=!0x0;for(let _0x2048ec=_0x4c7e63;_0x2048ec<_0x1e1511;_0x2048ec++)if(_0x49c747['isInline'](_0x1eb8f7[_0x2048ec]['item'])||(_0x2378b5=!0x1),_0x1eb8f7[_0x2048ec]['item']['startIndex']<_0x4c7e63&&(_0x280194=_0x2048ec),_0x1eb8f7[_0x2048ec]['item']['endIndex']>=_0x1e1511){_0xdb3e8a=_0x2048ec;break;}_0x2378b5&&(_0x280194=_0x1e1511-0x1);for(let _0x4f8b2c=_0x4c7e63;_0x4f8b2c<_0x1e1511;_0x4f8b2c++)_0x1eb8f7[_0x4f8b2c]['side']=_0x4f8b2c<=_0x280194?-0x1:_0x4f8b2c<_0xdb3e8a?0x0:0x1,_0x1eb8f7[_0x4f8b2c]['index']=_0x4f8b2c;let _0x5dcbc7=0x0;for(let _0x1f2a71=_0x4c7e63;_0x1f2a71<=_0x280194;_0x1f2a71++)0x0==_0x1eb8f7[_0x1f2a71]['distance']?_0x1eb8f7[_0x1f2a71]['level']=_0x5dcbc7:(_0x5dcbc7++,_0x1eb8f7[_0x1f2a71]['level']=_0x5dcbc7,_0x5dcbc7++);for(let _0x56631c=_0x4c7e63;_0x56631c<_0x1e1511;_0x56631c++)0x0==_0x1eb8f7[_0x56631c]['side']&&(_0x1eb8f7[_0x56631c]['level']=_0x5dcbc7);_0x5dcbc7=0x0;for(let _0x49533c=_0x1e1511-0x1;_0x49533c>=_0xdb3e8a;_0x49533c--)0x0==_0x1eb8f7[_0x49533c]['distance']?_0x1eb8f7[_0x49533c]['level']=_0x5dcbc7:(_0x5dcbc7--,_0x1eb8f7[_0x49533c]['level']=_0x5dcbc7,_0x5dcbc7--);}}['_fixObsoleteTags'](_0x5cb835){const _0x36a3f8=new Map(),_0x56f889=this['editor']['model']['schema'];for(let _0x49fec6=0x1;_0x49fec6<_0x5cb835['length'];_0x49fec6++){let _0x44598d,_0x5d92ef,_0x1479bc;const _0x35e267=_0x5cb835[_0x49fec6],_0xe8eb0e=_0x5cb835[_0x49fec6-0x1];if('text'==_0x35e267['type'])continue;if(_0x35e267['type']!=_0xe8eb0e['type'])continue;if(!_0x56f889['isBlock'](_0xe8eb0e['item'])||_0x56f889['isLimit'](_0xe8eb0e['item']))continue;if(!_0x56f889['isBlock'](_0x35e267['item'])||_0x56f889['isLimit'](_0x35e267['item']))continue;if((_0x5cb835[_0x49fec6]['isAdded']||_0x5cb835[_0x49fec6]['isAddSuggestion'])&&_0x5cb835[_0x49fec6-0x1]['isRemoved'])_0x44598d=_0x5cb835[_0x49fec6],_0x5d92ef=_0x5cb835[_0x49fec6-0x1],_0x1479bc=_0x49fec6-0x1;else{if(!_0x5cb835[_0x49fec6]['isRemoved']||!_0x5cb835[_0x49fec6-0x1]['isAdded']&&!_0x5cb835[_0x49fec6-0x1]['isAddSuggestion'])continue;_0x44598d=_0x5cb835[_0x49fec6-0x1],_0x5d92ef=_0x5cb835[_0x49fec6],_0x1479bc=_0x49fec6;}const _0x1e065e=_0x44598d['level']==_0x5d92ef['level'],_0x41114f=Math['abs'](_0x44598d['level'])<Math['abs'](_0x5d92ef['level'])&&0x0==_0x5d92ef['distance'];(_0x1e065e||_0x41114f)&&(_0x36a3f8['set'](_0x5d92ef['id'],_0x44598d['id']),_0x5cb835['splice'](_0x1479bc,0x1),_0x49fec6--,_0x44598d['isAdded']=!0x1);}for(let _0xe16640=0x0;_0xe16640<_0x5cb835['length'];_0xe16640++)_0x36a3f8['has'](_0x5cb835[_0xe16640]['pairId'])&&(_0x5cb835[_0xe16640]['pairId']=_0x36a3f8['get'](_0x5cb835[_0xe16640]['pairId']));}['_removeMissingPairs'](_0x4b83da){const _0x34e910=new Set(_0x4b83da['map'](_0x307b6d=>_0x307b6d['id']));for(let _0x5218b6=0x0;_0x5218b6<_0x4b83da['length'];_0x5218b6++)_0x34e910['has'](_0x4b83da[_0x5218b6]['pairId'])||0x0==_0x4b83da[_0x5218b6]['distance']||(_0x4b83da[_0x5218b6]['isIncorrect']=!0x0);return _0x4b83da['filter'](_0x892352=>!_0x892352['isIncorrect']);}['_markMismatchedRemovedTags'](_0x184455){const _0x1b592c=new Set();for(let _0x16e236=0x0;_0x16e236<_0x184455['length'];_0x16e236++){if(_0x1b592c['has'](_0x184455[_0x16e236]['id'])&&_0x184455[_0x16e236]['isRemoved']&&(_0x184455[_0x16e236]['isIncorrect']=!0x0),_0x184455[_0x16e236]['isIncorrect'])continue;if(0x0==_0x184455[_0x16e236]['distance'])continue;if('elementStart'!=_0x184455[_0x16e236]['type'])continue;if(null==_0x184455[_0x16e236]['pairId'])continue;let _0x3b3aa6=_0x16e236+0x1,_0x403795=0x0;for(;_0x184455[_0x3b3aa6]['id']!=_0x184455[_0x16e236]['pairId'];)'elementStart'==_0x184455[_0x3b3aa6]['type']?_0x403795++:'elementEnd'==_0x184455[_0x3b3aa6]['type']&&_0x403795--,_0x3b3aa6++;if(0x0!=_0x403795){if(_0x184455[_0x16e236]['isRemoved'])_0x184455[_0x16e236]['isIncorrect']=!0x0;else{for(;_0x3b3aa6!=_0x16e236;)_0x184455[_0x3b3aa6]['isRemoved']&&0x0!=_0x184455[_0x3b3aa6]['distance']&&(_0x184455[_0x3b3aa6]['isIncorrect']=!0x0,_0x1b592c['add'](_0x184455[_0x3b3aa6]['pairId'])),_0x3b3aa6--;}}}return _0x184455['filter'](_0x4ebe6a=>!_0x4ebe6a['isIncorrect']);}['_removeUnsupportedChanges'](_0x4fe589){const _0x40714e=this['editor']['model']['schema'];for(let _0xf236a4=0x0;_0xf236a4<_0x4fe589['length'];_0xf236a4++){if(!(_0x4fe589[_0xf236a4]['isAdded']||_0x4fe589[_0xf236a4]['isAddSuggestion']||_0x4fe589[_0xf236a4]['isRemoved']||_0x4fe589[_0xf236a4]['isRemoveSuggestion']))continue;if(0x0==_0x4fe589[_0xf236a4]['distance'])continue;const _0x553f01=_0x4fe589[_0xf236a4]['item'];_0x40714e['isBlock'](_0x553f01)||_0x40714e['isLimit'](_0x553f01)||(_0x4fe589[_0xf236a4]['isAdded']&&delete _0x4fe589[_0xf236a4]['isAdded'],_0x4fe589[_0xf236a4]['isAddSuggestion']&&delete _0x4fe589[_0xf236a4]['isAddSuggestion'],_0x4fe589[_0xf236a4]['isRemoveSuggestion']&&delete _0x4fe589[_0xf236a4]['isRemoveSuggestion'],_0x4fe589[_0xf236a4]['isRemoved']&&(_0x4fe589[_0xf236a4]['isIncorrect']=!0x0));}return _0x4fe589['filter'](_0x52f5f6=>!_0x52f5f6['isIncorrect']);}['_makeModelFromTape'](_0x3b84bb,_0x15c01f,_0x553c36){const _0x5cb2de=new _0x5878c9(),_0x23bd0d=[],_0x248143=new Map(),_0x306013=this['editor']['model'],_0x4c4a7e=_0x306013['schema'],_0x4811cc=[_0x5cb2de],_0x248b6e={},_0x35b1e1={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1681c9=null;const _0xc91d62=[0x0];for(let _0x56f337=0x0;_0x56f337<_0x3b84bb['length'];_0x56f337++)if('elementStart'===_0x3b84bb[_0x56f337]['type']){_0x3b84bb[_0x56f337]['previousPosition']=_0x306013['createPositionFromPath'](_0x5cb2de,_0xc91d62);const _0xc69e53=new _0x1d82bc(_0x3b84bb[_0x56f337]['item']['name'],_0x3b84bb[_0x56f337]['item']['getAttributes']());_0x4811cc[0x0]['_appendChild'](_0xc69e53),_0xc91d62['push'](0x0),_0x4811cc['unshift'](_0xc69e53),_0x3b84bb[_0x56f337]['nextPosition']=_0x306013['createPositionFromPath'](_0x5cb2de,_0xc91d62);}else'elementEnd'===_0x3b84bb[_0x56f337]['type']?(_0x4811cc['shift'](),_0x3b84bb[_0x56f337]['previousPosition']=_0x306013['createPositionFromPath'](_0x5cb2de,_0xc91d62),_0xc91d62['pop'](),_0xc91d62[_0xc91d62['length']-0x1]++,_0x3b84bb[_0x56f337]['nextPosition']=_0x306013['createPositionFromPath'](_0x5cb2de,_0xc91d62)):(_0x3b84bb[_0x56f337]['previousPosition']=_0x306013['createPositionFromPath'](_0x5cb2de,_0xc91d62),_0x1681c9?_0x1681c9['_data']+=_0x3b84bb[_0x56f337]['item']['data']:_0x1681c9=new _0x16216d(_0x3b84bb[_0x56f337]['item']['data'],_0x3b84bb[_0x56f337]['item']['getAttributes']()),_0x3b84bb[_0x56f337+0x1]&&'text'===_0x3b84bb[_0x56f337+0x1]['type']&&_0xaf2e80(_0x1681c9,_0x3b84bb[_0x56f337+0x1]['item'])||(_0x4811cc[0x0]['_appendChild'](_0x1681c9),_0x1681c9=null),_0xc91d62[_0xc91d62['length']-0x1]+=_0x3b84bb[_0x56f337]['item']['offsetSize'],_0x3b84bb[_0x56f337]['nextPosition']=_0x306013['createPositionFromPath'](_0x5cb2de,_0xc91d62));for(let _0x5a0e23=0x0;_0x5a0e23<_0x3b84bb['length'];_0x5a0e23++){const _0x4b3fea=_0x3b84bb[_0x5a0e23]['previousPosition'],_0x1e6fe1=_0x3b84bb[_0x5a0e23]['nextPosition'];for(const _0x2ae9e6 of _0x3b84bb[_0x5a0e23]['markersStart'])_0x248143['set'](_0x2ae9e6,{'start':_0x4b3fea,'end':null});_0x2d4ea2('isRemoveSuggestion',_0x5a0e23,_0x4b3fea,_0x1e6fe1),_0x2d4ea2('isAddSuggestion',_0x5a0e23,_0x4b3fea,_0x1e6fe1),_0x2d4ea2('isRemoved',_0x5a0e23,_0x4b3fea,_0x1e6fe1),_0x2d4ea2('isAdded',_0x5a0e23,_0x4b3fea,_0x1e6fe1);for(const _0xae06ae of _0x3b84bb[_0x5a0e23]['markersEnd']){const _0x189a3b=_0x248143['get'](_0xae06ae);_0x189a3b?_0x189a3b['end']=_0x1e6fe1:_0x248143['set'](_0xae06ae,{'start':_0x1e6fe1,'end':_0x1e6fe1});}}for(const [_0x414f6e,_0x48ed6d]of _0x248143){const _0x4e9f15=this['editor']['model']['createRange'](_0x48ed6d['start'],_0x48ed6d['end']);_0x5cb2de['markers']['set'](_0x414f6e,_0x4e9f15);}return _0x23bd0d['sort']((_0xccd445,_0x3a5e5f)=>{const _0x16631a=_0x5cb2de['markers']['get']('revision:'+_0xccd445['id']),_0x2667b4=_0x5cb2de['markers']['get']('revision:'+_0x3a5e5f['id']);return _0x16631a['start']['isBefore'](_0x2667b4['start'])?-0x1:_0x16631a['start']['isAfter'](_0x2667b4['start'])?0x1:_0x16631a['end']['isBefore'](_0x2667b4['end'])?-0x1:_0x16631a['end']['isAfter'](_0x2667b4['end'])?0x1:'add'===_0xccd445['type']?-0x1:0x1;}),{'root':_0x5cb2de,'changes':_0x23bd0d};function _0x2d4ea2(_0x2da3ed,_0x417524,_0x5c4b86,_0x211ffc){const _0x3f9975=!!_0x3b84bb[_0x417524][_0x2da3ed],_0x44dab3=_0x3f9975?_0x3b84bb[_0x417524][_0x2da3ed]['userId']:null,_0x4bcd6a=_0x417524===_0x3b84bb['length']-0x1,_0x98c782=_0x35b1e1[_0x2da3ed][0x0],_0x5cca6e=_0x4c4a7e['isObject'](_0x3b84bb[_0x417524]['item']);!_0x248b6e[_0x2da3ed]&&_0x3f9975?_0x248b6e[_0x2da3ed]={'start':_0x5c4b86,'tapeItem':_0x3b84bb[_0x417524],'userId':_0x44dab3,'type':_0x2da3ed}:_0x248b6e[_0x2da3ed]&&!_0x3f9975?(_0x248b6e[_0x2da3ed]['end']=_0x5c4b86,_0x7d2af(_0x248b6e[_0x2da3ed]),_0x248b6e[_0x2da3ed]=null):_0x248b6e[_0x2da3ed]&&_0x3f9975&&_0x248b6e[_0x2da3ed]['userId']!==_0x44dab3&&(_0x248b6e[_0x2da3ed]['end']=_0x5c4b86,_0x98c782&&_0x98c782['userId']===_0x248b6e[_0x2da3ed]['userId']||_0x7d2af(_0x248b6e[_0x2da3ed]),_0x248b6e[_0x2da3ed]={'start':_0x5c4b86,'tapeItem':_0x3b84bb[_0x417524],'userId':_0x44dab3,'type':_0x2da3ed}),_0x248b6e[_0x2da3ed]&&_0x5cca6e&&('elementStart'!==_0x3b84bb[_0x417524]['type']||_0x98c782&&_0x98c782['userId']===_0x44dab3||_0x35b1e1[_0x2da3ed]['unshift']({'userId':_0x44dab3,'object':_0x3b84bb[_0x417524]['item'],'change':_0x248b6e[_0x2da3ed]}),'elementEnd'===_0x3b84bb[_0x417524]['type']&&_0x98c782&&_0x98c782['object']===_0x3b84bb[_0x417524]['item']&&(_0x35b1e1[_0x2da3ed]['shift'](),_0x248b6e[_0x2da3ed]=_0x98c782['change'])),_0x248b6e[_0x2da3ed]&&_0x4bcd6a&&(_0x248b6e[_0x2da3ed]['end']=_0x211ffc,_0x7d2af(_0x248b6e[_0x2da3ed]),_0x248b6e[_0x2da3ed]=null);}function _0x7d2af({start:_0x44e0d3,end:_0x1f1429,tapeItem:_0x1d6d00,userId:_0x2e9783,type:_0x33b462}){const _0x15ce68=_0x1d6d00['item'],_0x3b90c4=_0x306013['schema']['isBlock'](_0x15ce68)&&!_0x306013['schema']['isLimit'](_0x15ce68),_0x266651=_0x44e0d3['nodeAfter']==_0x1f1429['parent']&&_0x1f1429['isAtStart'];if(_0x3b90c4&&_0x266651)return;const _0x27b064=_0x306013['createRange'](_0x44e0d3,_0x1f1429),_0x5ee8d8=_0x15c01f['get'](_0x2e9783),_0x31320d=new G({'author':_0x5ee8d8,'type':'isAdded'==_0x33b462||'isAddSuggestion'==_0x33b462?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x33b462||'isRemoveSuggestion'==_0x33b462},'createdAt':new Date(),'rootName':_0x553c36});_0x23bd0d['push'](_0x31320d),_0x5cb2de['markers']['set']('revision:'+_0x31320d['id'],_0x27b064);}function _0xaf2e80(_0x296aa9,_0x3763bc){const _0x99390e=_0x296aa9['getAttributes'](),_0x1d854e=_0x3763bc['getAttributes']();for(const _0x42b5d0 of _0x99390e){if(_0x42b5d0[0x1]!==_0x3763bc['getAttribute'](_0x42b5d0[0x0]))return!0x1;_0x1d854e['next']();}return _0x1d854e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x42101b=>{const _0x4f7b01=_0x42101b['markerName']['split'](':')[0x1],_0x4c372a=this['_getChangeFromId'](_0x4f7b01);if(!_0x4c372a)return null;const _0x4e46f7='add'==_0x4c372a['type']?'insertion':'deletion',_0x29b536=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4e46f7];return _0x4c372a['data']['isSuggestion']&&_0x29b536['push']('ck-suggestion-marker-'+_0x4e46f7+'-new'),this['activeChange']==_0x4c372a&&_0x29b536['push']('ck-suggestion-marker--active'),{'classes':_0x29b536,'attributes':{'data-change-id':_0x4f7b01}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4272cd=>{_0x4272cd['on']('element:pre',(_0x145286,_0x4c336b,_0x575f1d)=>{const _0x3fca9c=_0x4c336b['viewItem']['getChild'](0x0);if(!_0x3fca9c||!_0x3fca9c['is']('element','code'))return;if(!_0x575f1d['consumable']['consume'](_0x3fca9c,{'attributes':['vid_start','vid_end']}))return;const _0x3cfebf=_0x4c336b['modelRange']['start']['nodeAfter'];_0x575f1d['writer']['setAttribute']('vid_start',_0x3fca9c['getAttribute']('vid_start'),_0x3cfebf),_0x575f1d['writer']['setAttribute']('vid_end',_0x3fca9c['getAttribute']('vid_end'),_0x3cfebf);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xea9c20=>{_0xea9c20['on']('element',(_0x47d759,_0x4c4598,_0xb33532)=>{if(!_0xb33532['consumable']['consume'](_0x4c4598['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4c4598['modelRange']['isCollapsed'])return;const _0x4444e4=_0x4c4598['modelRange']['start']['nodeAfter'];_0x4444e4['hasAttribute']('vid_start')||_0x4444e4['hasAttribute']('vid')||(_0xb33532['writer']['setAttribute']('vid_start',_0x4c4598['viewItem']['getAttribute']('vid_start'),_0x4444e4),_0xb33532['writer']['setAttribute']('vid_end',_0x4c4598['viewItem']['getAttribute']('vid_end'),_0x4444e4));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x505b5a=>_0x505b5a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1e796f,[,_0x58da8a])=>{['vid_start','vid_end','vid']['includes'](_0x58da8a)&&(_0x1e796f['return']=!0x0,_0x1e796f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x54b735=>{_0x54b735['on']('attribute:vid',(_0x2da93f,_0x4f8efc,_0x2e95ed)=>{if('\x20'!=_0x4f8efc['item']['data']||_0x4f8efc['item']['parent']['maxOffset']>0x1)return;if(!_0x2e95ed['consumable']['consume'](_0x4f8efc['item'],_0x2da93f['name']))return;const _0x967629=_0x2e95ed['writer'],_0x35a86b=_0x2e95ed['mapper']['toViewRange'](_0x4f8efc['range']);_0x967629['wrap'](_0x35a86b,_0x967629['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x40bc1f){const _0x22d9c6=_0x40bc1f['plugins']['get']('RevisionViewer');return(_0x5e6b35,_0x37a782,_0x430141)=>{const _0x31f065=_0x37a782['markerName']['split'](':')[0x1],_0x24bc68=_0x22d9c6['_getChangeFromId'](_0x31f065);if(!_0x24bc68)return null;const _0x44a19f='add'==_0x24bc68['type']?'split':'merge';if(!_0x430141['consumable']['test'](_0x37a782['markerRange'],_0x5e6b35['name']))return;const _0x73c708=_0x37a782['markerRange']['getWalker'](),_0x2aad57=_0x37a782['markerRange']['start'],_0x39a5f2=_0x40bc1f['model']['schema'];let _0x32aa5e=null,_0x1d9256=null,_0x55c783=!0x1,_0xe88c19=!0x1;for(const _0x2fefaf of _0x73c708){const _0x5059ba=_0x2fefaf['item'];_0x55c783=_0x55c783||_0x39a5f2['isContent'](_0x5059ba);const _0x26461a=_0x430141['mapper']['toViewElement'](_0x5059ba);if(_0x26461a&&_0x26461a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2fefaf['type']&&(_0x39a5f2['isBlock'](_0x5059ba)&&!_0x39a5f2['isLimit'](_0x5059ba)&&(_0x5059ba['nextSibling']||_0x2aad57['isAtEnd']?_0x32aa5e&&_0x32aa5e['parent']==_0x5059ba||(_0x32aa5e=_0x5059ba,_0x418de0(_0x2fefaf['previousPosition']),_0xe88c19=!0x0):_0x1d9256=_0x1d9256||_0x2fefaf['previousPosition']));}function _0x418de0(_0x1ea61e){const _0x3d5a87=_0x430141['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x44a19f}),_0x39bde0=_0x430141['mapper']['toViewPosition'](_0x1ea61e);_0x24bc68['data']['isSuggestion']&&_0x430141['writer']['addClass']('ck-suggestion-marker-'+_0x44a19f+'-new',_0x3d5a87),_0x22d9c6['activeChange']==_0x24bc68&&_0x430141['writer']['addClass']('ck-suggestion-marker--active',_0x3d5a87),_0x430141['writer']['insert'](_0x39bde0,_0x3d5a87),_0x430141['mapper']['bindElementToMarker'](_0x3d5a87,_0x37a782['markerName']);}_0x55c783||_0xe88c19||!_0x1d9256||_0x418de0(_0x1d9256);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5dd5dd,_0x5de18d,_0x455aac)=>{const _0x4db53b=_0x455aac['mapper']['markerNameToElements'](_0x5de18d['markerName']);if(_0x4db53b){for(const _0x43768c of _0x4db53b)(_0x43768c['hasClass']('ck-suggestion-marker-split')||_0x43768c['hasClass']('ck-suggestion-marker-merge'))&&(_0x455aac['mapper']['unbindElementFromMarkerName'](_0x43768c,_0x5de18d['markerName']),_0x455aac['writer']['remove'](_0x43768c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x24abf3,_0x258187,_0x5bf029)=>{const _0xffb087=_0x258187['markerName']['split'](':')[0x1],_0x11bc5a=this['_getChangeFromId'](_0xffb087);if(!_0x11bc5a)return null;const _0x587087='add'==_0x11bc5a['type']?'split':'merge';if(_0x5bf029['consumable']['test'](_0x258187['markerRange'],_0x24abf3['name']))for(const _0x1c0550 of _0x258187['markerRange']['getItems']()){if(!_0x1c0550['is']('element','softBreak'))continue;const _0x38d2c2=_0x5bf029['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x587087}),_0x106bfb=_0x5bf029['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1c0550));_0x11bc5a['data']['isSuggestion']&&_0x5bf029['writer']['addClass']('ck-suggestion-marker-'+_0x587087+'-new',_0x38d2c2),this['activeChange']==_0x11bc5a&&_0x5bf029['writer']['addClass']('ck-suggestion-marker--active',_0x38d2c2),_0x5bf029['writer']['insert'](_0x106bfb,_0x38d2c2),_0x5bf029['mapper']['bindElementToMarker'](_0x38d2c2,_0x258187['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x320399=>{for(const _0xc3f7bd of this['editor']['model']['document']['getRootNames']()){const _0x2932fc=this['editor']['model']['document']['getRoot'](_0xc3f7bd),_0x30a36c=this['editor']['editing']['view']['document']['getRoot'](_0xc3f7bd);if(_0x30a36c){const _0x1bf873=_0x2932fc['getAttribute']('revisionHistoryAttachChange');if(_0x320399['removeAttribute']('data-change-id',_0x30a36c),_0x320399['removeClass']('ck-revision-history-root-add',_0x30a36c),_0x320399['removeClass']('ck-revision-history-root-remove',_0x30a36c),_0x320399['removeClass']('ck-revision-history-root--active',_0x30a36c),_0x1bf873){const _0x17fe90=this['_getChangeFromId'](_0x1bf873);if(!_0x17fe90)return null;_0x320399['setAttribute']('data-change-id',_0x1bf873,_0x30a36c),_0x320399['addClass']('ck-revision-history-root-'+_0x17fe90['type'],_0x30a36c),this['activeChange']==_0x17fe90&&_0x320399['addClass']('ck-revision-history-root--active',_0x30a36c);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4fa3e6=>'revision-comment:'+_0x4fa3e6,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x53c88c=>'revision-suggestion:'+_0x53c88c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x268ca4=>({'name':'suggestion:'+_0x268ca4,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x88dd1d=>{const _0x437277=_0x88dd1d['markerName']['split'](':')[0x1];return'insertion'!=_0x437277&&'deletion'!=_0x437277?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x437277]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x36a632,_0x7681de,_0x3e3796)=>{const _0x5c778b=_0x3e3796['mapper']['markerNameToElements'](_0x7681de['markerName']);if(_0x5c778b){for(const _0xbe00f4 of _0x5c778b)_0xbe00f4['is']('uiElement')&&(_0x3e3796['mapper']['unbindElementFromMarkerName'](_0xbe00f4,_0x7681de['markerName']),_0x3e3796['writer']['remove'](_0xbe00f4));}},{'priority':'high'});}['_getChangeFromId'](_0x2663b4){return this['_changeIdToChange']['get'](_0x2663b4);}['_getViewForChange'](_0x5ae1dc){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x5ae1dc),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1553d8,_0x558500,_0x41068d,_0x54d1c5)=>{_0x54d1c5&&this['_balloon']['remove'](_0x54d1c5),_0x41068d&&(this['_balloon']['add']({'view':_0x41068d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x83e47=this['editor']['editing'],_0x2bb4ad=this['_getChangeFromId'](_0x41068d['changeId']);let _0x3c091d;if(_0x2bb4ad['data']['isOnRoot']){const _0x44c5cf=_0x83e47['view']['getDomRoot'](_0x2bb4ad['rootName']);_0x3c091d=Array['from'](_0x44c5cf['getClientRects']());}else{const _0x24a089=this['editor']['model']['markers']['get']('revision:'+_0x41068d['changeId']);_0x3c091d=Array['from'](_0x83e47['mapper']['markerNameToElements'](_0x24a089['name']))['map'](_0x593282=>_0x83e47['view']['domConverter']['mapViewToDom'](_0x593282))['map'](_0x54bcdc=>Array['from'](_0x54bcdc['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3c091d[0x0];return _0x3c091d['find'](_0xe76f47=>_0xe76f47['top']-0x3<=this['_activeViewTarget']['y']&&_0xe76f47['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xe76f47['left']-0x3<=this['_activeViewTarget']['x']&&_0xe76f47['right']+0x3>=this['_activeViewTarget']['x'])||_0x3c091d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5cc0dd,_0x5b42cb,_0x39ae30,_0x1ec941)=>{this['activeView']=_0x39ae30?this['_getViewForChange'](_0x39ae30):null,this['editor']['model']['change'](()=>{const _0x25f272=this['editor']['editing'];_0x1ec941&&(_0x1ec941['data']['isOnRoot']?_0x25f272['view']['change'](_0x313821=>{_0x313821['removeClass']('ck-revision-history-root--active',_0x25f272['view']['document']['getRoot'](_0x1ec941['rootName']));}):_0x25f272['reconvertMarker']('revision:'+_0x1ec941['id'])),_0x39ae30&&(_0x39ae30['data']['isOnRoot']?_0x25f272['view']['change'](_0x55e087=>{_0x55e087['addClass']('ck-revision-history-root--active',_0x25f272['view']['document']['getRoot'](_0x39ae30['rootName']));}):_0x25f272['reconvertMarker']('revision:'+_0x39ae30['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3233da,_0x3a7421)=>{if(this['activeChange'])return;const _0x48eff4=this['_findChangeIdFromDomTarget'](_0x3a7421['target']),_0x46fa37=this['_changeIdToChange']['get'](_0x48eff4);_0x46fa37?(this['_activeViewTarget']={'x':_0x3a7421['domEvent']['x'],'y':_0x3a7421['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x46fa37)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x916772,_0x2b0d0c)=>{const _0x254455=this['_findChangeIdFromDomTarget'](_0x2b0d0c['target']),_0x5989c8=this['_changeIdToChange']['get'](_0x254455);_0x5989c8?(this['_activeViewTarget']={'x':_0x2b0d0c['domEvent']['x'],'y':_0x2b0d0c['domEvent']['y']},_0x5989c8===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5989c8):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x112758){do{const _0x265380=_0x112758['getAttribute']('data-change-id');if(_0x265380)return _0x265380;_0x112758=_0x112758['parent'];}while(_0x112758);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x125daf=>{for(const _0x1b7b9d of this['editor']['model']['markers'])_0x125daf['removeMarker'](_0x1b7b9d);});}}function Q(_0x245ba3,_0x3d1ee8){return(_0x25449a,_0x5653d4,_0x45bc02)=>{if(!_0x45bc02['consumable']['test'](_0x5653d4['markerRange'],_0x25449a['name']))return;const _0x377b0a=_0x5653d4['markerRange']['getWalker'](),_0x4f5007=_0x5653d4['markerRange']['start'],_0x33b1d9=_0x245ba3['model']['schema'];let _0x26214b=null,_0x5bd79c=null,_0x5e94f8=!0x1,_0xaab2b3=!0x1;for(const _0x393596 of _0x377b0a){const _0x200a64=_0x393596['item'];_0x5e94f8=_0x5e94f8||_0x33b1d9['isContent'](_0x200a64);const _0x400b8f=_0x45bc02['mapper']['toViewElement'](_0x200a64);if(_0x400b8f&&_0x400b8f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x393596['type']&&(_0x33b1d9['isBlock'](_0x200a64)&&!_0x33b1d9['isLimit'](_0x200a64)&&(_0x200a64['nextSibling']||_0x4f5007['isAtEnd']?_0x26214b&&_0x26214b['parent']==_0x200a64||(_0x26214b=_0x200a64,_0x5ca04c(_0x393596['previousPosition']),_0xaab2b3=!0x0):_0x5bd79c=_0x5bd79c||_0x393596['previousPosition']));}function _0x5ca04c(_0x199f47){const _0x9c32a9=_0x45bc02['mapper']['toViewPosition'](_0x199f47),_0x52114f=_0x45bc02['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3d1ee8});_0x45bc02['writer']['insert'](_0x9c32a9,_0x52114f),_0x45bc02['mapper']['bindElementToMarker'](_0x52114f,_0x5653d4['markerName']);}_0x5e94f8||_0xaab2b3||!_0x5bd79c||_0x5ca04c(_0x5bd79c);};}class nt extends _0xe6d2f7{constructor(_0x15a341){super(_0x15a341);const _0x69c5a6=_0x15a341['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x69c5a6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x69c5a6,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xb4186a=this['editor'],_0x3473f1=_0xb4186a['plugins']['get'](u),_0x53502c=_0x3473f1['isReady']?_0x3473f1['diff']['newRevisionId']:null;_0xb4186a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x53502c);}['refresh'](){const {isReady:_0x28fb59,isEnabled:_0x511690,repository:_0x19d7f2,diff:_0xbdea08}=this['editor']['plugins']['get'](u),_0x5c0334=_0xbdea08&&_0x19d7f2['getLaterVisibleRevision'](_0xbdea08['newRevisionId']);this['isEnabled']=_0x28fb59&&_0x511690&&Boolean(_0x5c0334);}}class rt extends _0xe6d2f7{['_step'];constructor(_0x44f6a3,{direction:_0x4430d2}){super(_0x44f6a3);const _0x50d7ef=_0x44f6a3['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x4430d2?0x1:-0x1,this['listenTo'](_0x50d7ef,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x50d7ef,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x50d7ef,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x249597=this['editor'],_0x19543d=_0x249597['plugins']['get'](u),{isNavigationMode:_0x5cd9ac,currentChangeNumber:_0x4252aa}=_0x19543d;let _0x1cab6e;if(_0x19543d['activeChange']=_0x5cd9ac?_0x19543d['diff']['changes']['get'](_0x4252aa+this['_step']):_0x19543d['diff']['changes']['first'],_0x19543d['activeChange']['data']['isOnRoot'])_0x1cab6e=_0x249597['editing']['view']['getDomRoot'](_0x19543d['activeChange']['rootName']);else{const _0x2d6481=_0x249597['model']['markers']['get']('revision:'+_0x19543d['activeChange']['id']);_0x1cab6e=_0x4a25d4(_0x249597['editing'],_0x2d6481);}_0x3bd100({'target':_0x1cab6e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x11c248,currentChangeNumber:_0x40ac80,numberOfChanges:_0x14e1dc,isReady:_0x14b87b,isEnabled:_0x25f03b}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x25f03b&&_0x14b87b&&_0x14e1dc)&&(!_0x11c248||(0x1===this['_step']?_0x40ac80<_0x14e1dc-0x1:_0x40ac80>0x0));}}class Ri extends _0x5b8a89{constructor(_0x685318){super(_0x685318);const _0x4fc38b=this['bindTemplate'],_0x2550ed=new _0xd092cd(_0x685318),_0x371d25=new _0xd092cd(_0x685318);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',(_0x15b4ac,_0x448920)=>_0x15b4ac&&_0x448920>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x44e031,_0x278652,_0x4f6c02,_0x4b5f99)=>{if(!_0x44e031)return m(_0x685318,'Loading...');if(!_0x4f6c02)return m(_0x685318,'No\x20changes');const _0x16f483=m(_0x685318,'NUMBER_OF_CHANGES',_0x4f6c02);return _0x4b5f99?m(_0x685318,'X_OF_Y_CHANGES',[_0x278652+0x1,_0x4f6c02]):_0x16f483;}),_0x2550ed['set']({'label':m(_0x685318,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5458c9}),_0x371d25['set']({'label':m(_0x685318,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x49bd2b}),_0x2550ed['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x371d25['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2550ed['on']('execute',()=>this['fire']('execute','backward')),_0x371d25['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',_0x4fc38b['if']('_isStatusLabelVisible','ck-hidden',_0x1c278d=>!_0x1c278d)]},'children':[{'text':_0x4fc38b['to']('isNavigationMode',_0x390df4=>_0x390df4?m(_0x685318,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x685318,'Total')+':\x20')}]},{'text':_0x4fc38b['to']('_statusText')}]},new _0x4e1874(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2550ed,_0x371d25]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x16d9db{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x504069=this['editor']['editing']['view'];_0x504069['change'](_0x1773cc=>{for(const _0x22ef93 of _0x504069['document']['roots'])_0x1773cc['addClass'](ge,_0x22ef93);});}['hide'](){const _0x2cb7b9=this['editor']['editing']['view'];_0x2cb7b9['change'](_0x4a1676=>{for(const _0x3655d9 of _0x2cb7b9['document']['roots'])_0x4a1676['removeClass'](ge,_0x3655d9);});}}class v extends _0x16d9db{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x30daf1=this['editor'],_0x2c2462=_0x30daf1['plugins']['get'](u),_0x3a4c92=_0x30daf1['plugins']['get'](ji);_0x30daf1['ui']['componentFactory']['add']('exitToEditing',_0x4124bb=>{const _0x3085fe=new _0xd092cd(_0x4124bb);return _0x3085fe['set']({'label':m(_0x4124bb,'Back\x20to\x20editing'),'icon':_0x3165cc,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3085fe,'execute',()=>{_0x30daf1['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3085fe;}),_0x30daf1['ui']['componentFactory']['add']('restoreRevision',_0x1a7a5d=>{const _0x4ab5d6=new _0xd092cd(_0x1a7a5d);return _0x4ab5d6['set']({'label':m(_0x1a7a5d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4ab5d6['bind']('isEnabled')['to'](_0x30daf1['commands']['get']('restoreRevision')),this['listenTo'](_0x4ab5d6,'execute',()=>_0x30daf1['execute']('restoreRevision')),_0x4ab5d6;}),_0x30daf1['ui']['componentFactory']['add']('changesNavigation',_0x4a7d0f=>{const _0x3346b5=new Ri(_0x4a7d0f),_0x3213cb=_0x30daf1['commands']['get']('showPreviousChange'),_0x4f9af8=_0x30daf1['commands']['get']('showNextChange');return _0x3346b5['bind']('isBackwardNavigationEnabled')['to'](_0x3213cb,'isEnabled'),_0x3346b5['bind']('isForwardNavigationEnabled')['to'](_0x4f9af8,'isEnabled'),_0x3346b5['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2c2462),this['listenTo'](_0x3346b5,'execute',(_0x2ab5c5,_0x1d231c)=>{_0x30daf1['execute']('forward'===_0x1d231c?'showNextChange':'showPreviousChange');}),_0x3346b5;}),_0x3a4c92['show'](),_0x2c2462['on']('change:isReady',(_0x2f353d,_0x5103ec,_0x1bc3b0)=>{_0x1bc3b0?_0x3a4c92['hide']():_0x3a4c92['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x47c4c7,_0x3c55f1){super(_0x47c4c7,_0x3c55f1);const _0x322ed8=this['bindTemplate'];this['set']({'label':m(_0x47c4c7,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x47c4c7,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x322ed8['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x26ffbc=this['fieldView']['element'];this['_tooltipString']=_0x26ffbc['scrollWidth']>_0x26ffbc['clientWidth']&&_0x26ffbc['value']||'';}}class ni extends _0x5b8a89{constructor(_0x4804d9,_0x501f8c,_0x31ff1e){super(_0x4804d9);const _0x4071cf=new _0x14e94e();_0x4071cf['set']({'content':_0xe65950,'viewBox':'0\x200\x2011\x2010'});const _0x3d9863=['ck','ck-revision-history-sidebar__revision-author'];_0x31ff1e&&_0x3d9863['push']('ck-revision-history-sidebar__revision-author_creator');const _0x38829c=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4804d9,_0x31ff1e?'Revision\x20creator':'Revision\x20author')},'children':[_0x4071cf,_0x501f8c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3d9863},'children':_0x38829c});}}function ai(_0x1f1d8e,_0x171cc9){const _0x233512=_0x1f1d8e['bindTemplate'],_0x1a6a8a=_0x1f1d8e['locale'],_0x19272d=_0x5cea77(_0x1a6a8a);_0x19272d['panelPosition']='sw';const _0x34ea7b=function(_0x2d69cc,_0x4e4dc5){const _0x1515aa=function(_0x1a08c1,_0x266c7c){const _0x546e75=_0x1a08c1['locale'],_0x4ebb36={'Compare\x20against\x20selected':m(_0x546e75,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x546e75,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x546e75,'Restore\x20this\x20revision')};return _0x266c7c['map'](_0x1f2460=>{const _0x5dbcf3=_0x4ebb36[_0x1f2460['name']];return _0x5dbcf3&&_0x5dbcf3!==_0x1f2460['name']&&(_0x1f2460['name']=_0x5dbcf3),_0x1f2460;});}(_0x2d69cc,_0x4e4dc5),_0x3a1faf=new _0x5a818f();for(const _0x124826 of _0x1515aa){const _0x11e08a={'type':'button','model':new to({'label':_0x124826['name'],'class':_0x124826['class'],'withText':!0x0,'role':'menuitem','_action':_0x124826['action']})};_0x11e08a['model']['bind']('isEnabled')['to'](_0x2d69cc,'isActionsDropdownOpen',_0x5e684a=>'function'!=typeof _0x124826['isEnabled']||(!_0x5e684a||_0x124826['isEnabled'](_0x2d69cc))),_0x3a1faf['add'](_0x11e08a);}return _0x3a1faf;}(_0x1f1d8e,_0x171cc9);return _0x1f1d8e['bind']('isActionsDropdownOpen')['to'](_0x19272d,'isOpen'),_0x19272d['buttonView']['set']({'label':m(_0x1a6a8a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5100b0}),_0x19272d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x233512['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x233512['to'](_0xf68f06=>_0xf68f06['stopPropagation']())}}),_0x19272d['on']('execute',_0x598fb4=>{_0x1f1d8e['isReady']&&'function'==typeof _0x598fb4['source']['_action']&&_0x598fb4['source']['_action'](_0x1f1d8e);}),_0x2302c5(_0x19272d,_0x34ea7b,{'role':'menu'}),_0x19272d['listenTo'](_0x1f1d8e,'change:isActionsDropdownOpen',(_0x2b3cdc,_0x45b990,_0x1a69f3)=>{if(_0x1a69f3)for(const _0x5036e2 of _0x19272d['listView']['items']){const _0x441336=_0x5036e2['children']['first'],_0x74fcbb=_0x171cc9['find'](_0x2ecacd=>_0x2ecacd['action']===_0x441336['_action'])['isVisible'];_0x5036e2['isVisible']=void 0x0===_0x74fcbb||_0x74fcbb(_0x1f1d8e);}}),_0x19272d;}class vi extends/* #__PURE__ -- @preserve */
27
+ _0x287934(_0x5b8a89){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x52a5f9,_0x487b2e,_0x4cdccc,_0x570464){super(_0x52a5f9);const _0x1f0003=this['bindTemplate'],_0x8629d0=function(_0x4dfef9,_0x55cf85){const _0x46772b=Array['from'](_0x55cf85['authors'])['filter'](_0x480b82=>_0x480b82!=_0x55cf85['creator']);return _0x55cf85['creator']&&_0x46772b['unshift'](_0x55cf85['creator']),_0x46772b['map'](_0x1f148b=>new ni(_0x4dfef9,_0x1f148b,_0x1f148b==_0x55cf85['creator']));}(_0x52a5f9,_0x487b2e);this['id']=_0x487b2e['id'],this['_revision']=_0x487b2e,this['_requireRevisionName']=_0x570464,this['bind']('name','createdAt')['to'](_0x487b2e),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1d2453=>{return _0x37f83c=_0x52a5f9['uiLanguage'],(_0x270fd4=_0x1d2453)['toLocaleDateString'](_0x37f83c,{'month':'long','day':'numeric'})+',\x20'+_0x270fd4['toLocaleTimeString'](_0x37f83c,{'hour':'numeric','minute':'numeric'});var _0x37f83c,_0x270fd4;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x52a5f9,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x157b8e=>_0x157b8e||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x509ec4,_0x9839d8)=>_0x509ec4&&_0x9839d8),this['revisionActionsView']=_0x4cdccc&&_0x4cdccc['length']?ai(this,_0x4cdccc):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1f0003['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1f0003['if']('isEnabled','ck-disabled',_0x2c3a0b=>!_0x2c3a0b),_0x1f0003['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1f0003['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1f0003['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':_0x1f0003['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':_0x8629d0}]},this['revisionActionsView']],'on':{'click':_0x1f0003['to'](_0x4ab207=>{_0x4ab207['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1017d8=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1017d8,'change',()=>{this['_requireRevisionName']&&!_0x1017d8['value']||this['fire']('setName',{'id':this['id'],'name':_0x1017d8['value']}),_0x1017d8['value']||(_0x1017d8['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x143bf6,_0x13c699){const _0x46f866=_0x34ea19['fromJSDate'](_0x143bf6)['setLocale'](_0x13c699),_0x42e316=_0x34ea19['local'](),_0x3f693d=_0x42e316['minus']({'days':0x1})['startOf']('day');let _0x136bb3,_0x15c86e;return _0x46f866['hasSame'](_0x42e316,'day')?(_0x136bb3=_0x46f866['startOf']('day')['toJSDate'](),_0x15c86e=_0x46f866['toRelativeCalendar']()):_0x46f866['hasSame'](_0x3f693d,'day')?(_0x136bb3=_0x3f693d['toJSDate'](),_0x15c86e=_0x46f866['toRelativeCalendar']()):_0x46f866['hasSame'](_0x42e316,'week')?(_0x136bb3=_0x46f866['startOf']('week')['toJSDate'](),_0x15c86e=_0x46f866['weekdayLong']||''):_0x46f866['hasSame'](_0x42e316,'year')?(_0x136bb3=_0x46f866['startOf']('month')['toJSDate'](),_0x15c86e=_0x46f866['monthLong']||''):(_0x136bb3=_0x46f866['startOf']('year')['toJSDate'](),_0x15c86e=String(_0x46f866['year'])),{'startDate':_0x136bb3,'localizedPeriodName':_0x15c86e};}class li extends _0x5b8a89{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x583b2d,_0x3d8c73,_0x42737d,_0xa5c1f0){super(_0x583b2d);const _0x1f9819=mi(_0x3d8c73,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3d8c73,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x42737d,this['_requireRevisionName']=_0xa5c1f0,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':_0x1f9819}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3e6873){const _0x20ec16=new vi(this['locale'],_0x3e6873,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x20ec16);}['removeRevision'](_0x45ccee){const _0x588fd9=this['revisionViews']['find'](_0x3a8940=>_0x3a8940['id']===_0x45ccee['id']);this['revisionViews']['remove'](_0x588fd9);}}class bi extends _0x5b8a89{constructor(_0x410106){super(_0x410106);const _0x1102d1=new _0x14e94e();_0x1102d1['content']=_0x3448b7,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1102d1,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x410106,'Revision\x20history')]}]});}}class di extends _0x5b8a89{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x38204b,_0x40a5c4,_0x575f14,_0x418389){super(_0x38204b);const _0x3c3d2f=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x40a5c4,this['_revisionActions']=_0x575f14,this['_requireRevisionName']=_0x418389,this['on']('select',(_0x3bdf04,_0x208f37)=>{this['fire']('revisionSelected',_0x208f37);}),this['on']('setName',(_0x56ae97,_0x41ebb4)=>{this['fire']('revisionSetName',_0x41ebb4);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new bi(_0x38204b),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3c3d2f['if']('isEnabled','ck-disabled',_0x585a86=>!_0x585a86)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4a44fe of this['_revisions'])this['_addRevision'](_0x4a44fe);this['_revisions']['on']('add',(_0x1d1102,_0x35a775)=>{this['_addRevision'](_0x35a775);}),this['_revisions']['on']('remove',(_0x2417c5,_0x37793d)=>{this['_removeRevision'](_0x37793d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2f931f=>_0x2f931f['revisionViews']['map'](_0x16c0a7=>_0x16c0a7))['flat']();}['selectRevision'](_0x58983f){for(const _0x329e22 of this['revisionViews'])_0x58983f&&_0x58983f['id']===_0x329e22['id']?_0x329e22['select']():_0x329e22['deselect']();}['highlightRevisions'](_0x52caeb){for(const _0x1ebd48 of this['revisionViews'])_0x52caeb['some'](({id:_0x74c5e4})=>_0x74c5e4===_0x1ebd48['id'])?_0x1ebd48['highlight']():_0x1ebd48['unhighlight']();}['_addRevision'](_0x9a7fd5){const _0xf7fc6c=mi(_0x9a7fd5['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4bdafb=this['timePeriodViews']['get'](0x0);_0x4bdafb&&_0x4bdafb['startDate']['getTime']()===_0xf7fc6c['getTime']()||(_0x4bdafb=new li(this['locale'],_0xf7fc6c,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4bdafb)),_0x4bdafb['addRevision'](_0x9a7fd5);}['_removeRevision'](_0x4f6926){const _0x1a60b1=mi(_0x4f6926['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1a60b1)['removeRevision'](_0x4f6926);}['_getTimePeriodViewByStartDate'](_0x2c6799){return this['timePeriodViews']['find'](_0x2217bd=>_0x2217bd['startDate']['getTime']()===_0x2c6799['getTime']());}}class d extends _0x16d9db{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
28
28
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
29
- at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0x255fa6){super(_0x255fa6),this['_revisionViewer']=_0x255fa6['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x411ef9=this['_revisionsRepository']['_revisions'],_0x589dd2=this['_createRevisionActions'](),_0x3f602d=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x411ef9,_0x589dd2,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',(_0x1d9ac4,_0x2e1a87)=>{_0x2e1a87['revisionViews']['on']('add',(_0x22ad8c,_0x187250)=>{_0x187250['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)),_0x3f602d['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1dbc64=this['_revisionsRepository']['getRevision'](0x0);if(_0x1dbc64){const _0xe95856=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1dbc64['id']);this['_revisionViewer']['compare'](_0x1dbc64,_0xe95856);}}['_handleRevisionSelected'](_0x4fe7f7,_0x154aa3){const _0x1dc9d9=this['_revisionsRepository']['getRevision'](_0x154aa3['id']),_0xafdbab=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1dc9d9['id']);this['_revisionViewer']['compare'](_0x1dc9d9,_0xafdbab);}['_handleRevisionSetName'](_0x3472aa,_0x4fb645){this['_revisionsRepository']['getRevision'](_0x4fb645['id'])['setName'](_0x4fb645['name']);}['_handleDiffChange'](_0xa4051d,_0x2d40bd,_0x2c1760){const _0x493e6d=this['_revisionsRepository']['getRevisionsInDiff'](_0x2c1760);_0x493e6d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x493e6d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x493e6d[0x0]));}['_createRevisionActions'](){const _0x58d81e=this['editor'],_0x2379fa=d['availableRevisionActions'],_0x1dad86=_0x58d81e['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x1dad86['length'])return _0x1dad86['map'](_0x18090f=>{const _0x4a227c='string'==typeof _0x18090f?Object['assign']({},_0x2379fa[_0x18090f]):_0x18090f;return _0x4a227c['action']=_0x4a227c['action']['bind'](this,_0x58d81e),_0x4a227c['isVisible']&&(_0x4a227c['isVisible']=_0x4a227c['isVisible']['bind'](this,_0x58d81e)),_0x4a227c;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x296e7a},_0x303f30)=>{const _0x595a0e=_0x296e7a['get'](u),_0x55f189=_0x595a0e['repository'];let _0x14aed7=_0x595a0e['diff']['newRevisionId'],_0x394ccb=_0x303f30['id'];_0x55f189['getIndex'](_0x14aed7)>_0x55f189['getIndex'](_0x394ccb)&&([_0x14aed7,_0x394ccb]=[_0x394ccb,_0x14aed7]),_0x595a0e['compare'](_0x14aed7,_0x394ccb);},'isVisible':({plugins:_0x49e964},_0x3408a3)=>{const _0x53197c=_0x49e964['get'](u);return!(_0x53197c['repository']['getRevisionsInDiff'](_0x53197c['diff'])['length']>0x2)&&!_0x3408a3['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xf22eee,{id:_0x41b135})=>{_0xf22eee['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x41b135);},'isVisible':({plugins:_0x420345},_0x3343da)=>!!_0x420345['get'](u)['repository']['getLaterVisibleRevision'](_0x3343da['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x16384a},{id:_0x415aab,revisionNameView:_0x1b5efe})=>{const _0x4cd61b=_0x16384a['get'](u),_0x12ff42=_0x4cd61b['repository']['getEarlierVisibleRevision'](_0x415aab);_0x4cd61b['compare'](_0x415aab,_0x12ff42),_0x1b5efe['focus'](),_0x1b5efe['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2e49d1,_0x5cb254){super(_0x2e49d1),this['_view']=_0x5cb254,this['_toolbarConfig']=st(_0x2e49d1['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x215d67){const _0x146c01=this['editor'],_0x4f985c=this['view'],_0x47cc36=_0x146c01['editing']['view'],_0x3fce61=_0x4f985c['editable'],_0x41200d=_0x47cc36['document']['getRoot']();_0x3fce61['name']=_0x41200d['rootName'],_0x4f985c['render']();const _0x1fd2b5=_0x3fce61['element'];this['setEditableElement'](_0x3fce61['name'],_0x1fd2b5),_0x4f985c['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x47cc36['attachDomRoot'](_0x1fd2b5),this['_elementReplacer']['replace'](_0x215d67,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x50de00=this['view'],_0x1dfef9=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1dfef9['detachDomRoot'](_0x50de00['editable']['name']),_0x50de00['destroy']();}['_initToolbar'](){const _0x3a0109=this['view'];_0x3a0109['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3a0109['stickyPanel']['limiterElement']=_0x3a0109['element'],_0x3a0109['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x51092b})=>_0x51092b),_0x3a0109['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3a0109['toolbar']);}}class ii extends _0x1690e1{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xf44970,_0x12eea8,_0x1dbef0={}){super(_0xf44970),this['stickyPanel']=new _0x56dd0f(_0xf44970),this['toolbar']=new _0x4fa702(_0xf44970,{'shouldGroupWhenFull':_0x1dbef0['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0xf44970,_0x12eea8);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
30
- _0xc2511f(_0x5691ec){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x425af9,_0x311ee4){super(_0x311ee4),this['sourceElement']=_0x425af9,this['model']['document']['createRoot']();const _0x5acf49=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x5acf49);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x522d1a,_0x25d7e6){const _0x49c302=new this(_0x522d1a,_0x25d7e6);return await _0x49c302['initPlugins'](),await _0x49c302['ui']['init'](_0x522d1a),await _0x49c302['data']['init'](_0x49c302['config']['get']('initialData')||''),_0x49c302['fire']('ready'),_0x49c302;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x3f3108{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24d60d){function _0x4241cd(_0x4d9086){return _0x4d9086['map'](_0x3a2380=>String['fromCharCode'](_0x3a2380))['join']('');}super(_0x24d60d),this['result']='end',_0x24d60d[_0x4241cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4241cd([0x76,0x69,0x65,0x77])][_0x4241cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4241cd([0x61,0x75,0x74,0x6f]),_0x24d60d[_0x4241cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4241cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4241cd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4241cd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4241cd([0x6f,0x6b])});}}class ct extends _0x3f3108{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x13bffa){if(super(_0x13bffa),!this['editor']['config']['get']('revisionHistory'))throw new _0x3961e6('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2910ef=>this['_showRevisionViewer']({..._0x2910ef,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x709619=>this['_closeRevisionViewer'](_0x709619)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x429fcf=>this['_restoreRevision'](_0x429fcf)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x51161b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x51161b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5ca23f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5ca23f);}['getRevision'](_0x4eea49){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4eea49);}['getRevisions'](_0x8f8a41){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x8f8a41||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x15227d=this['editor'],_0x2e3a35=_0x1f848a(_0x15227d,p),_0x3b8f46=_0x15227d['plugins']['get']('RevisionTracker'),_0x5c1451=_0x15227d['plugins']['get']('Users')['users'];return _0x2e3a35['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2e3a35['lazyRoots'],(_0x2e3a35['plugins']['push'](ht,u,v,class extends _0x3f3108{static get['requires'](){return[u,'Users'];}['init'](){const _0x22c1bf=this['editor']['plugins']['get']('Users');for(const _0xe4e2c1 of _0x5c1451)_0xe4e2c1['isAnonymous']||_0x22c1bf['getUser'](_0xe4e2c1['id'])||_0x22c1bf['addUser'](_0xe4e2c1);const _0x4bd866=_0x3b8f46['repository']['getRevisions']();let _0x3f88e4=null;const _0x4fc001=this['editor']['plugins']['get']('RevisionViewer');_0x4fc001['adapter']=_0x3b8f46['adapter'],_0x4fc001['bind']('isEnabled')['to'](_0x3b8f46),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x15227d,'isReadOnly',_0x3af12d=>!_0x3af12d);for(const _0x572352 of _0x4bd866){const _0x56b5dd=null===_0x572352['creator'];if(_0x56b5dd&&_0x572352['toVersion']===_0x572352['fromVersion'])continue;const _0x1842ff=_0x572352['toJSON']();_0x4fc001['addRevisionData'](_0x1842ff,(_0x239aa6,_0x141f69,_0x9cd2db)=>{if(_0x56b5dd){if(_0x3f88e4)_0x3f88e4['_update'](_0x239aa6,_0x141f69);else{if(!_0x141f69){const _0x10afda=_0x9cd2db['toJSON']();_0x10afda['id']=_0x196f07(),_0x3b8f46['saveRevision'](_0x10afda,_0x9cd2db['toVersion'])['then'](_0x29af39=>{_0x3f88e4=_0x29af39;});}}}else _0x572352['_update'](_0x239aa6,_0x141f69);});}}},d),_0x2e3a35);}['_enhanceShowRevisionViewerCallback'](){const _0xc32c06=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x59e586=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x26487c=this['editor']['plugins']['get']('Autosave');await _0x26487c['save']();}else await _0x59e586['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x19c9af=this['editor']['plugins']['get']('Dialog');_0x19c9af['isOpen']&&_0x19c9af['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x3cf6d1=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x263887 of _0x3cf6d1)_0x263887['class']=_0x263887['class']?_0x263887['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x2e48f1=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x2e48f1&&_0x2e48f1['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x269232=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x269232&&_0x269232['setAttribute']('tabindex','-1');}}const _0x57204f=this['_getRevisionViewerEditorConfig']();return _0xc32c06(_0x57204f)['then'](_0x53530e=>{return(this['_viewerEditor']=_0x53530e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x53530e);})['catch'](_0xe5c15c=>(console['error'](_0xe5c15c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5a4c45=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x3d67a7=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x1953da of _0x3d67a7)_0x1953da['class']='ck-tab-panel_disabled'===_0x1953da['class']?'':_0x1953da['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x135081=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x135081&&_0x135081['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x3c122c=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x3c122c&&_0x3c122c['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x5a4c45(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x118823=this['editor']['plugins']['get']('Annotations');_0x118823['refreshVisibility'](),_0x118823['refreshPositioning']();}});});}['_showRevisionViewer'](_0x1f90ea){const _0x155cca=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x29b439=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x40991c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x40991c,_0x1f90ea)['then'](_0x25429c=>(_0x29b439['style']['display']='block',_0x155cca['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x25429c));}['_closeRevisionViewer'](_0x431403){const _0xafdff7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xafdff7['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x431403['destroy']();}async['_restoreRevision'](_0x462ab3){const _0x5bb1c4=this['editor'],_0x5686f4=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x227bcb=_0x5bb1c4['plugins']['get']('RevisionTracker'),_0x20db58=_0x5bb1c4['plugins']['get']('RevisionHistoryUtils'),_0x294573=_0x5686f4['repository']['getRevision'](_0x462ab3);let _0x2adc15,_0x136fb5,_0x5f3eb5;try{await _0x20db58['loadRevisionData'](_0x294573,this['adapter']),_0x2adc15=_0x20db58['getRevisionDocumentData'](_0x294573),_0x136fb5=_0x20db58['getRevisionRootsAttributes'](_0x294573);}catch(_0x3f5d0c){return void console['error'](_0x3f5d0c);}_0x5bb1c4['model']['change'](_0x17cbad=>{for(const _0x344c5b of Array['from'](_0x5bb1c4['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x17cbad['removeMarker'](_0x344c5b);}),_0x5686f4['isReady']=!0x1,_0x5bb1c4['model']['enqueueChange'](_0x3911f4=>{_0x3911f4['setSelection'](null),_0x3911f4['removeSelectionAttribute'](_0x5bb1c4['model']['document']['selection']['getAttributeKeys']());const _0x478d45=Object['keys'](_0x2adc15);for(const _0x4879c6 of _0x5bb1c4['model']['document']['roots'])'$graveyard'!=_0x4879c6['rootName']&&_0x4879c6['isAttached']()&&!_0x478d45['includes'](_0x4879c6['rootName'])&&_0x3911f4['detachRoot'](_0x4879c6);for(const _0x3beecf of _0x478d45){let _0x1fd788=_0x5bb1c4['model']['document']['getRoot'](_0x3beecf);_0x1fd788&&_0x1fd788['isAttached']()||(_0x1fd788=_0x3911f4['addRoot'](_0x3beecf));const _0x3e954b=_0x136fb5[_0x3beecf],_0x46a986=Object['keys'](_0x3e954b),_0x513b78=_0x2adc15[_0x3beecf];for(const _0x424268 of _0x1fd788['getAttributeKeys']())_0x46a986['includes'](_0x424268)||_0x3911f4['removeAttribute'](_0x424268,_0x1fd788);for(const _0x1ac84e of _0x46a986)_0x3911f4['setAttribute'](_0x1ac84e,_0x136fb5[_0x3beecf][_0x1ac84e],_0x1fd788);_0x3911f4['remove'](_0x3911f4['createRangeIn'](_0x1fd788)),_0x3911f4['insert'](_0x5bb1c4['data']['parse'](_0x513b78,_0x1fd788),_0x1fd788,0x0);}});const _0xe6787a=m(_0x5bb1c4['locale'],'Restored');if(_0x294573['name'])_0x5f3eb5=-0x1==_0x294573['name']['indexOf'](_0xe6787a)?_0xe6787a+':\x20'+_0x294573['name']:_0x294573['name'];else _0x5f3eb5=_0xe6787a+':\x20'+(_0x294573['createdAt']['toLocaleDateString'](_0x5bb1c4['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x294573['createdAt']['toLocaleTimeString'](_0x5bb1c4['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x227bcb['saveRevision']({'name':_0x5f3eb5}),_0x5686f4['isReady']=!0x0,_0x5bb1c4['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
29
+ at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0x17c252){super(_0x17c252),this['_revisionViewer']=_0x17c252['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1162bb=this['_revisionsRepository']['_revisions'],_0x16e7f0=this['_createRevisionActions'](),_0x1b8f62=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x1162bb,_0x16e7f0,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',(_0x31536b,_0x59765c)=>{_0x59765c['revisionViews']['on']('add',(_0x1c2e89,_0x135be3)=>{_0x135be3['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)),_0x1b8f62['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xcb4032=this['_revisionsRepository']['getRevision'](0x0);if(_0xcb4032){const _0x48e9a2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xcb4032['id']);this['_revisionViewer']['compare'](_0xcb4032,_0x48e9a2);}}['_handleRevisionSelected'](_0x1b6ba2,_0x32bacd){const _0x1741b7=this['_revisionsRepository']['getRevision'](_0x32bacd['id']),_0x226cd2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1741b7['id']);this['_revisionViewer']['compare'](_0x1741b7,_0x226cd2);}['_handleRevisionSetName'](_0x561039,_0x4f7cfc){this['_revisionsRepository']['getRevision'](_0x4f7cfc['id'])['setName'](_0x4f7cfc['name']);}['_handleDiffChange'](_0x2dbefb,_0x40be0c,_0x438808){const _0x3c82e9=this['_revisionsRepository']['getRevisionsInDiff'](_0x438808);_0x3c82e9['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3c82e9),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3c82e9[0x0]));}['_createRevisionActions'](){const _0x166fbd=this['editor'],_0x6f534e=d['availableRevisionActions'],_0x3dcf11=_0x166fbd['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x3dcf11['length'])return _0x3dcf11['map'](_0xde92b6=>{const _0x97219a='string'==typeof _0xde92b6?Object['assign']({},_0x6f534e[_0xde92b6]):_0xde92b6;return _0x97219a['action']=_0x97219a['action']['bind'](this,_0x166fbd),_0x97219a['isVisible']&&(_0x97219a['isVisible']=_0x97219a['isVisible']['bind'](this,_0x166fbd)),_0x97219a;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x15bc44},_0x48b891)=>{const _0x309172=_0x15bc44['get'](u),_0x591384=_0x309172['repository'];let _0x5f5c6b=_0x309172['diff']['newRevisionId'],_0x37832d=_0x48b891['id'];_0x591384['getIndex'](_0x5f5c6b)>_0x591384['getIndex'](_0x37832d)&&([_0x5f5c6b,_0x37832d]=[_0x37832d,_0x5f5c6b]),_0x309172['compare'](_0x5f5c6b,_0x37832d);},'isVisible':({plugins:_0x34bb51},_0x1619e3)=>{const _0x13bda0=_0x34bb51['get'](u);return!(_0x13bda0['repository']['getRevisionsInDiff'](_0x13bda0['diff'])['length']>0x2)&&!_0x1619e3['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2f465a,{id:_0x45c468})=>{_0x2f465a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x45c468);},'isVisible':({plugins:_0x1e7eb0},_0x46a78c)=>!!_0x1e7eb0['get'](u)['repository']['getLaterVisibleRevision'](_0x46a78c['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x15a3b7},{id:_0x4041a6,revisionNameView:_0x1137d8})=>{const _0x388163=_0x15a3b7['get'](u),_0xe7fe15=_0x388163['repository']['getEarlierVisibleRevision'](_0x4041a6);_0x388163['compare'](_0x4041a6,_0xe7fe15),_0x1137d8['focus'](),_0x1137d8['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x201b91,_0x1d983e){super(_0x201b91),this['_view']=_0x1d983e,this['_toolbarConfig']=st(_0x201b91['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x4c8af0){const _0x72871b=this['editor'],_0x3c9c15=this['view'],_0x8fa7c2=_0x72871b['editing']['view'],_0x42712c=_0x3c9c15['editable'],_0x1d441d=_0x8fa7c2['document']['getRoot']();_0x42712c['name']=_0x1d441d['rootName'],_0x3c9c15['render']();const _0xba12ac=_0x42712c['element'];this['setEditableElement'](_0x42712c['name'],_0xba12ac),_0x3c9c15['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x8fa7c2['attachDomRoot'](_0xba12ac),this['_elementReplacer']['replace'](_0x4c8af0,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x480bb4=this['view'],_0x711d35=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x711d35['detachDomRoot'](_0x480bb4['editable']['name']),_0x480bb4['destroy']();}['_initToolbar'](){const _0x21496f=this['view'];_0x21496f['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x21496f['stickyPanel']['limiterElement']=_0x21496f['element'],_0x21496f['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1c1b55})=>_0x1c1b55),_0x21496f['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x21496f['toolbar']);}}class ii extends _0x5d72f6{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3162f9,_0x50aa3a,_0x12a528={}){super(_0x3162f9),this['stickyPanel']=new _0x28a261(_0x3162f9),this['toolbar']=new _0x19d792(_0x3162f9,{'shouldGroupWhenFull':_0x12a528['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x3162f9,_0x50aa3a);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
30
+ _0x3b31c5(_0x2d5cb3){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xec19e8,_0x3344ed){super(_0x3344ed),this['sourceElement']=_0xec19e8,this['model']['document']['createRoot']();const _0x553e0a=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x553e0a);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x592d8f,_0x221bb9){const _0x1ad53c=new this(_0x592d8f,_0x221bb9);return await _0x1ad53c['initPlugins'](),await _0x1ad53c['ui']['init'](_0x592d8f),await _0x1ad53c['data']['init'](_0x1ad53c['config']['get']('initialData')||''),_0x1ad53c['fire']('ready'),_0x1ad53c;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x16d9db{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x65789){function _0xbf697d(_0x4e8c82){return _0x4e8c82['map'](_0x3856f4=>String['fromCharCode'](_0x3856f4))['join']('');}super(_0x65789),this['result']='end',_0x65789[_0xbf697d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbf697d([0x76,0x69,0x65,0x77])][_0xbf697d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xbf697d([0x61,0x75,0x74,0x6f]),_0x65789[_0xbf697d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xbf697d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xbf697d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xbf697d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xbf697d([0x6f,0x6b])});}}class ct extends _0x16d9db{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x5243ed){if(super(_0x5243ed),!this['editor']['config']['get']('revisionHistory'))throw new _0x56e2c5('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2f420d=>this['_showRevisionViewer']({..._0x2f420d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x14bc88=>this['_closeRevisionViewer'](_0x14bc88)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x55f8c5=>this['_restoreRevision'](_0x55f8c5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x39ed20){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x39ed20;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x58667b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x58667b);}['getRevision'](_0x1195ac){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1195ac);}['getRevisions'](_0x10de84){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x10de84||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x123aae=this['editor'],_0x1489e8=_0x3dd0c7(_0x123aae,p),_0x678d6b=_0x123aae['plugins']['get']('RevisionTracker'),_0x3e4e82=_0x123aae['plugins']['get']('Users')['users'];return _0x1489e8['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1489e8['lazyRoots'],(_0x1489e8['plugins']['push'](ht,u,v,class extends _0x16d9db{static get['requires'](){return[u,'Users'];}['init'](){const _0x30e882=this['editor']['plugins']['get']('Users');for(const _0x2d9a21 of _0x3e4e82)_0x2d9a21['isAnonymous']||_0x30e882['getUser'](_0x2d9a21['id'])||_0x30e882['addUser'](_0x2d9a21);const _0x145bd7=_0x678d6b['repository']['getRevisions']();let _0x431b1e=null;const _0x4419d6=this['editor']['plugins']['get']('RevisionViewer');_0x4419d6['adapter']=_0x678d6b['adapter'],_0x4419d6['bind']('isEnabled')['to'](_0x678d6b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x123aae,'isReadOnly',_0x4789cb=>!_0x4789cb);for(const _0xac58f0 of _0x145bd7){const _0x174620=null===_0xac58f0['creator'];if(_0x174620&&_0xac58f0['toVersion']===_0xac58f0['fromVersion'])continue;const _0x291d0e=_0xac58f0['toJSON']();_0x4419d6['addRevisionData'](_0x291d0e,(_0xf2d089,_0x57548e,_0x420319)=>{if(_0x174620){if(_0x431b1e)_0x431b1e['_update'](_0xf2d089,_0x57548e);else{if(!_0x57548e){const _0x3000d4=_0x420319['toJSON']();_0x3000d4['id']=_0x2d5220(),_0x678d6b['saveRevision'](_0x3000d4,_0x420319['toVersion'])['then'](_0x399caa=>{_0x431b1e=_0x399caa;});}}}else _0xac58f0['_update'](_0xf2d089,_0x57548e);});}}},d),_0x1489e8);}['_enhanceShowRevisionViewerCallback'](){const _0x5b4232=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4f4050=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x38e3c6=this['editor']['plugins']['get']('Autosave');await _0x38e3c6['save']();}else await _0x4f4050['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x31da75=this['editor']['plugins']['get']('Dialog');_0x31da75['isOpen']&&_0x31da75['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x2bb3e9=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x2d0073 of _0x2bb3e9)_0x2d0073['class']=_0x2d0073['class']?_0x2d0073['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x1e5e15=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x1e5e15&&_0x1e5e15['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x2cb1fc=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x2cb1fc&&_0x2cb1fc['setAttribute']('tabindex','-1');}}const _0x7c41f3=this['_getRevisionViewerEditorConfig']();return _0x5b4232(_0x7c41f3)['then'](_0x97d7c8=>{return(this['_viewerEditor']=_0x97d7c8,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x97d7c8);})['catch'](_0x108614=>(console['error'](_0x108614),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2343c8=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x303962=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x1b065d of _0x303962)_0x1b065d['class']='ck-tab-panel_disabled'===_0x1b065d['class']?'':_0x1b065d['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x5234ae=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x5234ae&&_0x5234ae['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x34ede3=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x34ede3&&_0x34ede3['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2343c8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xb568b=this['editor']['plugins']['get']('Annotations');_0xb568b['refreshVisibility'](),_0xb568b['refreshPositioning']();}});});}['_showRevisionViewer'](_0xb05365){const _0x2ab39e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2372d4=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x8517e4=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x8517e4,_0xb05365)['then'](_0x404107=>(_0x2372d4['style']['display']='block',_0x2ab39e['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x404107));}['_closeRevisionViewer'](_0x398490){const _0x3af3ab=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3af3ab['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x398490['destroy']();}async['_restoreRevision'](_0xd864){const _0x47ddd2=this['editor'],_0x158a9f=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x41943d=_0x47ddd2['plugins']['get']('RevisionTracker'),_0xba86d6=_0x47ddd2['plugins']['get']('RevisionHistoryUtils'),_0x32179b=_0x158a9f['repository']['getRevision'](_0xd864);let _0x41592e,_0x4d02b8,_0x475400;try{await _0xba86d6['loadRevisionData'](_0x32179b,this['adapter']),_0x41592e=_0xba86d6['getRevisionDocumentData'](_0x32179b),_0x4d02b8=_0xba86d6['getRevisionRootsAttributes'](_0x32179b);}catch(_0x530377){return void console['error'](_0x530377);}_0x47ddd2['model']['change'](_0x9002fb=>{for(const _0x155eec of Array['from'](_0x47ddd2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x9002fb['removeMarker'](_0x155eec);}),_0x158a9f['isReady']=!0x1,_0x47ddd2['model']['enqueueChange'](_0x7215a5=>{_0x7215a5['setSelection'](null),_0x7215a5['removeSelectionAttribute'](_0x47ddd2['model']['document']['selection']['getAttributeKeys']());const _0x26f30d=Object['keys'](_0x41592e);for(const _0x4cb85d of _0x47ddd2['model']['document']['roots'])'$graveyard'!=_0x4cb85d['rootName']&&_0x4cb85d['isAttached']()&&!_0x26f30d['includes'](_0x4cb85d['rootName'])&&_0x7215a5['detachRoot'](_0x4cb85d);for(const _0x3ffe4b of _0x26f30d){let _0x3e4340=_0x47ddd2['model']['document']['getRoot'](_0x3ffe4b);_0x3e4340&&_0x3e4340['isAttached']()||(_0x3e4340=_0x7215a5['addRoot'](_0x3ffe4b));const _0x24b965=_0x4d02b8[_0x3ffe4b],_0x19eed0=Object['keys'](_0x24b965),_0x4926be=_0x41592e[_0x3ffe4b];for(const _0x54d7fc of _0x3e4340['getAttributeKeys']())_0x19eed0['includes'](_0x54d7fc)||_0x7215a5['removeAttribute'](_0x54d7fc,_0x3e4340);for(const _0x5dfbf8 of _0x19eed0)_0x7215a5['setAttribute'](_0x5dfbf8,_0x4d02b8[_0x3ffe4b][_0x5dfbf8],_0x3e4340);_0x7215a5['remove'](_0x7215a5['createRangeIn'](_0x3e4340)),_0x7215a5['insert'](_0x47ddd2['data']['parse'](_0x4926be,_0x3e4340),_0x3e4340,0x0);}});const _0x18d157=m(_0x47ddd2['locale'],'Restored');if(_0x32179b['name'])_0x475400=-0x1==_0x32179b['name']['indexOf'](_0x18d157)?_0x18d157+':\x20'+_0x32179b['name']:_0x32179b['name'];else _0x475400=_0x18d157+':\x20'+(_0x32179b['createdAt']['toLocaleDateString'](_0x47ddd2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x32179b['createdAt']['toLocaleTimeString'](_0x47ddd2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x41943d['saveRevision']({'name':_0x475400}),_0x158a9f['isReady']=!0x0,_0x47ddd2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};