@ckeditor/ckeditor5-revision-history 0.0.0-nightly-next-20250304.0 → 0.0.0-nightly-next-20250305.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index.js +6 -6
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +11 -11
  148. package/src/changeitem.js +2 -2
  149. package/src/editor/revisionviewereditor.js +2 -2
  150. package/src/editor/revisionviewereditorui.js +1 -1
  151. package/src/editor/revisionviewereditoruiview.js +1 -1
  152. package/src/index.js +1 -1
  153. package/src/revision.js +2 -2
  154. package/src/revisiondiff.js +1 -1
  155. package/src/revisionhistory.js +1 -1
  156. package/src/revisionsrepository.js +1 -1
  157. package/src/revisiontracker.js +1 -1
  158. package/src/revisionviewer.js +1 -1
  159. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  160. package/src/ui/revision/revisionauthorview.js +1 -1
  161. package/src/ui/revision/revisionnameview.js +1 -1
  162. package/src/ui/revision/revisionview.js +2 -2
  163. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  164. package/src/ui/revision/subrevisionview.js +1 -1
  165. package/src/ui/revision/utils.js +1 -1
  166. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  167. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  168. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  169. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  170. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  172. package/src/ui/revisionssidebar/utils.js +1 -1
  173. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  174. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  175. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  176. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  177. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x3d781,uid as _0x4e207b,Collection as _0x8dad72,logWarning as _0x2d052d,FocusTracker as _0x539dec,KeystrokeHandler as _0x573fdc,scrollViewportToShowTarget as _0x9531a1,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x194013}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x22418a,set as _0x30405c,unset as _0x414922,isEqual as _0x2a48d6}from'es-toolkit/compat';import{Plugin as _0x26fb00,PendingActions as _0x5c7714,Command as _0x233339,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x134057,getMarkerDomElement as _0x12c61c,ConfirmMixin as _0x1f12de,sanitizeEditorConfig as _0x4802af}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x56f6be,Element as ut,Range as ft,ViewUIElement as _0x22652a,ViewRawElement as _0x2cbc43,ViewEmptyElement as _0x48a8b3,ViewAttributeElement as _0x30fb6c,ViewContainerElement as _0xbee4c,Position as vt,ViewText as _0xc3b70e,ViewElement as _0x42d694,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x5d107e,IconChevronUp as _0x1e91b5,IconChevronDown as _0x263d4b,IconUndo as _0x4f97fe,IconUser as _0x409b87,IconThreeVerticalDots as _0x3b73b4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x5c59b1,injectCssTransitionDisabler as ts,submitHandler as _0x414a21,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x43bd05,ListView as _0x11f175,ListItemView as te,ButtonView as _0x1514b3,MenuBarMenuView as _0x37c1b7,MenuBarMenuListView as _0x4572c7,MenuBarMenuListItemView as _0x2e24f1,MenuBarMenuListItemButtonView as _0x1fe456,ContextualBalloon as _0x788d43,ToolbarSeparatorView as _0x33a9ee,IconView as _0x35e69b,addListToDropdown as _0x177c45,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x30cf25}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x3d781(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2b8026){super(),this['id']=_0x2b8026['id']||_0x4e207b(),this['creator']=_0x2b8026['creator']||null,this['authors']=_0x2b8026['authors']||[],this['diffData']=_0x2b8026['diffData']||null,this['toVersion']=_0x2b8026['toVersion']||0x0,this['fromVersion']=_0x2b8026['fromVersion']||0x0,this['set']('name',_0x2b8026['name']||''),this['set']('createdAt',_0x2b8026['createdAt']||new Date()),this['set']('attributes',_0x2b8026['attributes']||{});}['setName'](_0x2edc0c){this['_update']({'name':_0x2edc0c});}['setAttribute'](_0x1ca59d,_0x379dd0){const _0x23f5f9=_0x22418a(this['attributes']);_0x30405c(_0x23f5f9,_0x1ca59d,_0x379dd0),this['_update']({'attributes':_0x23f5f9});}['removeAttribute'](_0x121eff){const _0x3e67b6=_0x22418a(this['attributes']);_0x414922(_0x3e67b6,_0x121eff),this['_update']({'attributes':_0x3e67b6});}['_update'](_0x311603,_0x42cee3=!0x1){let _0x3f3e4c=!0x1;const _0x246e4f={'id':this['id']},_0xadb3c6=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x375760 of _0xadb3c6){const _0x5ea682=_0x311603[_0x375760];void 0x0!==_0x5ea682&&_0x5ea682!==this[_0x375760]&&(this[_0x375760]=_0x5ea682,_0x246e4f[_0x375760]=_0x5ea682,_0x3f3e4c=!0x0);}_0x3f3e4c&&(_0x246e4f['authors']&&(_0x246e4f['authorsIds']=_0x246e4f['authors']['map'](_0x4d12bd=>_0x4d12bd['id']),delete _0x246e4f['authors']),this['fire']('_update',_0x246e4f,_0x42cee3));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x578f62=>_0x578f62['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x26fb00{['_revisions'];static get['requires'](){return[_0x134057];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5899b9){super(_0x5899b9),this['_revisions']=new _0x8dad72();}['afterInit'](){!async function(_0x50ac7e){const _0x53c624=_0x589049([0x72,0x79,0x58,0x6c,0x4d,0x52,0x57,0x45,0x73,0x31,0x33,0x30,0x56,0x4a,0x41,0x59,0x65,0x78,0x50,0x75,0x39,0x37,0x43,0x49,0x4b,0x77,0x4e,0x47,0x51,0x74,0x34,0x68,0x55,0x76,0x46,0x6e,0x6b,0x38,0x66,0x61,0x53,0x6f,0x36,0x64,0x44,0x70,0x6a,0x67,0x35,0x42,0x6d,0x4f,0x54,0x69,0x63,0x32,0x5a,0x48,0x7a,0x71,0x62,0x4c]),_0x2c1ce1=0xeb829,_0x3e6aae=0x5607b186,_0x5b4900=0x5600d0ae^_0x3e6aae,_0x170ba0=window[_0x589049([0x44,0x61,0x74,0x65])][_0x589049([0x6e,0x6f,0x77])](),_0x129b28=_0x50ac7e[_0x589049([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e0ef3=new window[(_0x589049([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55cff3=>{_0x129b28[_0x589049([0x6f,0x6e,0x63,0x65])](_0x589049([0x72,0x65,0x61,0x64,0x79]),_0x55cff3);}),_0x8efefc={[_0x589049([0x6b,0x74,0x79])]:_0x589049([0x45,0x43]),[_0x589049([0x75,0x73,0x65])]:_0x589049([0x73,0x69,0x67]),[_0x589049([0x63,0x72,0x76])]:_0x589049([0x50,0x2d,0x32,0x35,0x36]),[_0x589049([0x78])]:_0x589049([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]),[_0x589049([0x79])]:_0x589049([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]),[_0x589049([0x61,0x6c,0x67])]:_0x589049([0x45,0x53,0x32,0x35,0x36])},_0x54a847=_0x129b28[_0x589049([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x589049([0x67,0x65,0x74])](_0x589049([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x370610(){let _0x2aef5f,_0x491e90=null,_0x41e2b1=null;try{if(_0x54a847==_0x589049([0x47,0x50,0x4c]))return _0x589049([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2aef5f=_0x14a655(),!_0x2aef5f)return _0x589049([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2aef5f[_0x589049([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x41e2b1=_0x1ed265(_0x2aef5f[_0x589049([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2aef5f[_0x589049([0x6a,0x74,0x69])])),await _0x36bf9a()?_0x24cd4()?_0xb0d720()?_0x589049([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1aa332()?(_0x2aef5f[_0x589049([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x589049([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x491e90=_0x3c1e26(_0x589049([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2aef5f[_0x589049([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x589049([0x74,0x72,0x69,0x61,0x6c])&&(_0x491e90=_0x3c1e26(_0x589049([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x33af58()):_0x589049([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x589049([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x589049([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x22871d){return _0x589049([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb0d720(){const _0x369a64=[_0x589049([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x589049([0x74,0x72,0x69,0x61,0x6c])][_0x589049([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aef5f[_0x589049([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x170ba0/0x3e8:0xe10*_0x5b4900;return _0x2aef5f[_0x589049([0x65,0x78,0x70])]<_0x369a64;}function _0x24cd4(){const _0x275240=_0x2aef5f[_0x589049([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x275240)return!0x1;if(_0x275240[_0x589049([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x589049([0x2a])))return!0x0;if(_0x275240[_0x589049([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x589049([0x52,0x48])))return!0x0;if(_0x275240[_0x589049([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x589049([0x52,0x52,0x48]))){if(_0x5f220c())return!0x0;if(_0xd1450a()||_0x15d029())return!0x0;}return!0x1;}function _0x1aa332(){const _0x3158c5=_0x2aef5f[_0x589049([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3158c5||0x0==_0x3158c5[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5692b1}=new URL(window[_0x589049([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3158c5[_0x589049([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5692b1))return!0x0;const _0x3e2759=_0x5692b1[_0x589049([0x73,0x70,0x6c,0x69,0x74])](_0x589049([0x2e]));return _0x3158c5[_0x589049([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x244e62=>_0x244e62[_0x589049([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x589049([0x2a])))[_0x589049([0x6d,0x61,0x70])](_0x558c3d=>_0x558c3d[_0x589049([0x73,0x70,0x6c,0x69,0x74])](_0x589049([0x2e])))[_0x589049([0x73,0x6f,0x6d,0x65])](_0x4e0901=>_0x3e2759[_0x589049([0x65,0x76,0x65,0x72,0x79])]((_0x46fe01,_0xd2c1d)=>_0x4e0901[_0xd2c1d]===_0x46fe01||_0x4e0901[_0xd2c1d]===_0x589049([0x2a])));}function _0x33af58(){return _0x491e90&&_0x41e2b1?new window[(_0x589049([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37a9ad,_0x4b9106)=>{_0x491e90[_0x589049([0x74,0x68,0x65,0x6e])](_0x37a9ad,_0x4b9106),_0x41e2b1[_0x589049([0x74,0x68,0x65,0x6e])](_0x3065bb=>{_0x3065bb!=_0x589049([0x56,0x61,0x6c,0x69,0x64])&&_0x37a9ad(_0x3065bb);},_0x4b9106);}):_0x491e90||_0x41e2b1||_0x589049([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1ed265(_0x3a0270,_0x194ddf){return new window[(_0x589049([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe34aba=>{if(_0x45c1f1())return _0xe34aba(_0x589049([0x56,0x61,0x6c,0x69,0x64]));_0x58e8c7(),_0x129b28[_0x589049([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x589049([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b0f78=!0x1;const _0x2e04bb=_0x4e207b();function _0x54654b(_0x273a14){return!!_0x273a14&&(typeof _0x273a14===_0x589049([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x273a14===_0x589049([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x273a14[_0x589049([0x74,0x68,0x65,0x6e])]===_0x589049([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x273a14[_0x589049([0x63,0x61,0x74,0x63,0x68])]===_0x589049([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f21b6(_0x164c87){_0x22a962(_0x164c87)[_0x589049([0x74,0x68,0x65,0x6e])](_0x4f9d69=>{if(!_0x4f9d69||_0x4f9d69[_0x589049([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x589049([0x6f,0x6b]))return _0x589049([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d1f75(_0x243475(_0x2e04bb+_0x194ddf))!=_0x4f9d69[_0x589049([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x589049([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x589049([0x56,0x61,0x6c,0x69,0x64]);})[_0x589049([0x74,0x68,0x65,0x6e])](_0x127ba4=>(_0x1f5835(),_0x127ba4),()=>{const _0x561047=_0x264dcc();return null==_0x561047?(_0x1f5835(),_0x589049([0x56,0x61,0x6c,0x69,0x64])):_0x589049(_0x170ba0-_0x561047>(0x720b3586^_0x3e6aae)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x589049([0x74,0x68,0x65,0x6e])](_0xe34aba)[_0x589049([0x63,0x61,0x74,0x63,0x68])](()=>{_0xe34aba(_0x589049([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x53a760=0x56315f06^_0x3e6aae;function _0x1f5835(){const _0x46ec33=_0x589049([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d1f75(_0x243475(_0x3a0270)),_0x2f65d7=_0xec5883(_0x3d1f75(window[_0x589049([0x4d,0x61,0x74,0x68])][_0x589049([0x63,0x65,0x69,0x6c])](_0x170ba0/_0x53a760)));window[_0x589049([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x589049([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46ec33,_0x2f65d7);}function _0x264dcc(){const _0x1d1450=_0x589049([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d1f75(_0x243475(_0x3a0270)),_0x2fec16=window[_0x589049([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x589049([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d1450);return _0x2fec16?window[_0x589049([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xec5883(_0x2fec16),0x10)*_0x53a760:null;}function _0x22a962(_0x7c3d11){return new window[(_0x589049([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27f2bf,_0x1ca353)=>{_0x7c3d11[_0x589049([0x74,0x68,0x65,0x6e])](_0x27f2bf,_0x1ca353),window[_0x589049([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ca353,0x56066546^_0x3e6aae);});}}_0x129b28[_0x589049([0x6f,0x6e])](_0x589049([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3edbcc,_0x3064c7)=>{if(_0x3064c7[0x0]!=_0x3a0270)return _0xe34aba(_0x589049([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3064c7[0x1]={..._0x3064c7[0x1],[_0x589049([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2e04bb};},{[_0x589049([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x589049([0x68,0x69,0x67,0x68])}),_0x129b28[_0x589049([0x6f,0x6e])](_0x589049([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x304818=>{_0x54654b(_0x304818[_0x589049([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b0f78=!0x0,_0x3f21b6(_0x304818[_0x589049([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x589049([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x589049([0x6c,0x6f,0x77])}),_0x5e0ef3[_0x589049([0x74,0x68,0x65,0x6e])](()=>{_0x2b0f78||_0xe34aba(_0x589049([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45c1f1(){return _0x129b28[_0x589049([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x589049([0x76,0x69,0x65,0x77])][_0x589049([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x589049([0x61,0x75,0x74,0x6f]);}function _0x58e8c7(){_0x129b28[_0x589049([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x589049([0x76,0x69,0x65,0x77])][_0x589049([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x589049([0x61,0x75,0x74,0x6f]);}}function _0x3c1e26(_0x12c55b){const _0x94759=[new window[(_0x589049([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d580d=>setTimeout(_0x3d580d,0x560e8f4a^_0x3e6aae)),_0x5e0ef3[_0x589049([0x74,0x68,0x65,0x6e])](()=>new window[(_0x589049([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa8be73=>{const _0x4fa60c=0x5607b181^_0x3e6aae,_0x4c58e1=_0x50ac7e[_0x589049([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3cf605(){_0x4c58e1[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4fa60c&&_0xa8be73();}_0x3cf605(),_0x4c58e1[_0x589049([0x6f,0x6e])](_0x589049([0x61,0x64,0x64]),_0x3cf605);})),new window[(_0x589049([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35c83f=>{function _0xc6dafa(){for(const _0x59409c in window)if(window[_0x589049([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x589049([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x59409c))&&window[_0x59409c]==_0x2c1ce1)return _0x35c83f();_0x129b28[_0x589049([0x73,0x74,0x61,0x74,0x65])]!=_0x589049([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x589049([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc6dafa,0x5607a20e^_0x3e6aae);}_0x431f56(_0x589049([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xc6dafa();})];return window[_0x589049([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x589049([0x72,0x61,0x63,0x65])](_0x94759)[_0x589049([0x74,0x68,0x65,0x6e])](()=>_0x12c55b);}async function _0x728bd7(){if(await _0x5e0ef3,_0x431f56(_0x589049([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2d0a61=_0x50ac7e[_0x589049([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x173c72=_0x50ac7e[_0x589049([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])](_0x2d0a61[_0x589049([0x69,0x64])]),_0x22326e=_0x3339e8(_0x589049([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x22326e[_0x589049([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2d0a61['id'],_0x173c72?_0x173c72['id']:null,!0x0),_0x22326e[_0x589049([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x589049([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x22326e[_0x589049([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x22326e[_0x589049([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x390d1e,void(_0x22326e[_0x589049([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x390d1e);}if(_0x431f56(_0x589049([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1bdfd3=_0x3339e8(_0x589049([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1bdfd3[_0x589049([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x589049([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1bdfd3[_0x589049([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1bdfd3[_0x589049([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x390d1e,_0x1bdfd3[_0x589049([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x390d1e;}_0x129b28[_0x589049([0x6d,0x6f,0x64,0x65,0x6c])][_0x589049([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x390d1e,_0x129b28[_0x589049([0x6d,0x6f,0x64,0x65,0x6c])][_0x589049([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x390d1e,_0x129b28[_0x589049([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x589049([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f220c(){return _0x431f56(_0x589049([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3339e8(_0x589049([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x589049([0x73,0x74,0x61,0x74,0x65])]==_0x589049([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xd1450a(){return _0x431f56(_0x589049([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 _0x15d029(){return _0x431f56(_0x589049([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4a759e(_0x4ee59d){const _0x2baeb6=_0xd8f7c7();_0x129b28[_0x2baeb6]=_0x589049([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])+_0x4ee59d,_0x4ee59d[_0x589049([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x589049([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xd8f7c7()]=_0x2c1ce1),_0x4ee59d!=_0x589049([0x56,0x61,0x6c,0x69,0x64])&&_0x728bd7();}function _0xd8f7c7(){const _0x3a5bf0=window[_0x589049([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x589049([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x589049([0x6e,0x6f,0x77])]())[_0x589049([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x589049([0x2e]),'');let _0x19308c=_0x589049([0x72]);for(let _0x33f349=0x0;_0x33f349<_0x3a5bf0[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33f349+=0x2){let _0x42d124=window[_0x589049([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a5bf0[_0x589049([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33f349,_0x33f349+0x2));_0x42d124>=_0x53c624[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42d124-=_0x53c624[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x19308c+=_0x53c624[_0x42d124];}return _0x19308c;}function _0x14a655(){const _0x15ccf4=_0x54a847[_0x589049([0x73,0x70,0x6c,0x69,0x74])](_0x589049([0x2e]));if(0x3!=_0x15ccf4[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31b9e0(_0x15ccf4[0x1]);function _0x31b9e0(_0x4fafa6){const _0x5e8691=_0x582236(_0x4fafa6);return _0x5e8691&&_0x23a0f1()?_0x5e8691:null;function _0x23a0f1(){const _0x2b6afd=_0x5e8691[_0x589049([0x6a,0x74,0x69])],_0x4fafae=window[_0x589049([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b6afd[_0x589049([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b6afd[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x200a77={..._0x5e8691,[_0x589049([0x6a,0x74,0x69])]:_0x2b6afd[_0x589049([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b6afd[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x200a77[_0x589049([0x76,0x63])],_0x243475(_0x200a77)==_0x4fafae;}}}async function _0x36bf9a(){let _0x192239=!0x0;try{const _0xca2b98=_0x54a847[_0x589049([0x73,0x70,0x6c,0x69,0x74])](_0x589049([0x2e])),[_0x5b55c0,_0x3c3d88,_0x3bb672]=_0xca2b98;return _0x4b23f6(_0x5b55c0),await _0x2912a6(_0x5b55c0,_0x3c3d88,_0x3bb672),_0x192239;}catch(_0x25b893){return!0x1;}function _0x4b23f6(_0xafc0dc){const _0xe0a168=_0x582236(_0xafc0dc);_0xe0a168&&_0xe0a168[_0x589049([0x61,0x6c,0x67])]==_0x589049([0x45,0x53,0x32,0x35,0x36])||(_0x192239=!0x1);}async function _0x2912a6(_0x372530,_0x1b476a,_0x518c1c){const _0x3d3d83=window[_0x589049([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x589049([0x66,0x72,0x6f,0x6d])](_0x235788(_0x518c1c),_0x1c3882=>_0x1c3882[_0x589049([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x380feb=new window[(_0x589049([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x589049([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x372530+_0x589049([0x2e])+_0x1b476a),_0x55b219=window[_0x589049([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x589049([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55b219)return;const _0x4fc25d=await _0x55b219[_0x589049([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x589049([0x6a,0x77,0x6b]),_0x8efefc,{[_0x589049([0x6e,0x61,0x6d,0x65])]:_0x589049([0x45,0x43,0x44,0x53,0x41]),[_0x589049([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x589049([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x589049([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55b219[_0x589049([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x589049([0x6e,0x61,0x6d,0x65])]:_0x589049([0x45,0x43,0x44,0x53,0x41]),[_0x589049([0x68,0x61,0x73,0x68])]:{[_0x589049([0x6e,0x61,0x6d,0x65])]:_0x589049([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4fc25d,_0x3d3d83,_0x380feb)||(_0x192239=!0x1);}}function _0x582236(_0x2da4d8){return _0x2da4d8[_0x589049([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x589049([0x65,0x79]))?JSON[_0x589049([0x70,0x61,0x72,0x73,0x65])](_0x235788(_0x2da4d8)):null;}function _0x235788(_0x4f3701){return window[_0x589049([0x61,0x74,0x6f,0x62])](_0x4f3701[_0x589049([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x589049([0x2b]))[_0x589049([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x589049([0x2f])));}function _0x243475(_0x385bb1){let _0x3518dc=0x1505;function _0x5744a8(_0x7cc53d){for(let _0x23d7fc=0x0;_0x23d7fc<_0x7cc53d[_0x589049([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23d7fc++){const _0x5efaef=_0x7cc53d[_0x589049([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23d7fc);_0x3518dc=(_0x3518dc<<0x5)+_0x3518dc+_0x5efaef,_0x3518dc&=_0x3518dc;}}function _0x57333e(_0x58a3c0){Array[_0x589049([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58a3c0)?_0x58a3c0[_0x589049([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57333e):_0x58a3c0&&typeof _0x58a3c0==_0x589049([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x589049([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58a3c0)[_0x589049([0x73,0x6f,0x72,0x74])]()[_0x589049([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x25bb70,_0x344397])=>{_0x5744a8(_0x25bb70),_0x57333e(_0x344397);}):_0x5744a8(window[_0x589049([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58a3c0));}return _0x57333e(_0x385bb1),_0x3518dc>>>0x0;}function _0x3d1f75(_0x2f2a93){return _0x2f2a93[_0x589049([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x589049([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x589049([0x30]));}function _0xec5883(_0x3c7ded){return _0x3c7ded[_0x589049([0x73,0x70,0x6c,0x69,0x74])]('')[_0x589049([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x589049([0x6a,0x6f,0x69,0x6e])]('');}function _0x431f56(_0x48a11a){return _0x129b28[_0x589049([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x589049([0x68,0x61,0x73])](_0x48a11a);}function _0x3339e8(_0x5c8bac){return _0x129b28[_0x589049([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x589049([0x67,0x65,0x74])](_0x5c8bac);}function _0x390d1e(){}function _0x589049(_0x426e55){return _0x426e55['map'](_0x401f8d=>String['fromCharCode'](_0x401f8d))['join']('');}_0x4a759e(await _0x370610());}(this);}['createRevision'](_0x254ea1){const _0x585a30=this['editor']['plugins']['get']('Users');return new h({'id':_0x254ea1['id'],'name':_0x254ea1['name'],'creator':_0x254ea1['creatorId']?_0x585a30['getUser'](_0x254ea1['creatorId']):null,'diffData':_0x254ea1['diffData']||_0x254ea1['data'],'authors':_0x254ea1['authorsIds']['map'](_0x196777=>_0x585a30['getUser'](_0x196777)),'createdAt':new Date(_0x254ea1['createdAt']),'attributes':_0x254ea1['attributes'],'fromVersion':_0x254ea1['fromVersion'],'toVersion':_0x254ea1['toVersion']});}['addRevision'](_0x21b310,_0x4637fe=0x0){this['_revisions']['add'](_0x21b310,_0x4637fe);}['getRevision'](_0x3eff53){return this['_revisions']['get'](_0x3eff53);}['getRevisions'](_0x20f7b7={'toJSON':!0x1}){const _0x5ac496=Array['from'](this['_revisions']);return _0x5ac496['reverse'](),_0x20f7b7['toJSON']?_0x5ac496['map'](_0x3c353e=>_0x3c353e['toJSON']()):_0x5ac496;}['getIndex'](_0x331fd1){return this['_revisions']['getIndex'](_0x331fd1);}['getEarlierVisibleRevision'](_0x5abe3f){const [,_0x1987b0]=this['getRevisionsIterator'](_0x5abe3f,{'direction':'earlier'});return _0x1987b0;}['getLaterVisibleRevision'](_0x44fcb5){const [,_0x129800]=this['getRevisionsIterator'](_0x44fcb5,{'direction':'later'});return _0x129800;}['getRevisionsInDiff'](_0x4c4a62){const _0x34bf4=[];for(const _0x2062df of this['getRevisionsIterator'](_0x4c4a62['newRevisionId']))if(_0x34bf4['push'](_0x2062df),_0x2062df['id']===_0x4c4a62['oldRevisionId'])break;return _0x34bf4;}*['getRevisionsIterator'](_0x4dbbe7,{direction:_0x5542c9='earlier',filter:_0x187944=()=>!0x0}={}){const _0x4ee7c5='earlier'===_0x5542c9?0x1:-0x1;let _0x5b3828=this['_revisions']['get'](_0x4dbbe7),_0x493151=this['getIndex'](_0x5b3828);for(yield _0x5b3828;_0x5b3828;){if(_0x493151+=_0x4ee7c5,_0x5b3828=this['getRevision'](_0x493151),!_0x5b3828)return;_0x187944(_0x5b3828)&&(yield _0x5b3828);}}}function m(_0x157206,_0x3da559,_0x384365){const t=_0x157206['t'];switch(_0x3da559){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'},_0x384365);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x384365);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0xbee4c,'a':_0x30fb6c,'e':_0x48a8b3,'r':_0x2cbc43,'u':_0x22652a};class u extends _0x26fb00{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x134057,j,_0x5c7714];}constructor(_0x285c40){super(_0x285c40),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x341f6d=_0x4e207b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x341f6d},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x3cfc35=this['repository']['getRevision'](0x0),_0xc7a458=_0x3cfc35&&null===_0x3cfc35['creator']?_0x3cfc35:null;if(this['_continueCurrentRevision']=!!_0xc7a458&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x7861cf=this['_source']['getCurrentRevisionId'](),_0x164dce=this['repository']['getRevision'](_0x7861cf);if(_0x164dce)this['_startingVersion']=_0x164dce['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1b0274=this['_source']['history']['_operations']['find'](_0xa5aa02=>!_0xa5aa02['_isInit']),_0x137d31=_0x1b0274?_0x1b0274['baseVersion']:this['_source']['history']['version'];_0x3cfc35?(_0x3cfc35['toVersion']<_0x137d31&&_0x3cfc35['_update']({'toVersion':_0x137d31}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xc7a458['id'],this['_startingVersion']=_0xc7a458['fromVersion']):(this['_startingVersion']=_0x3cfc35['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x137d31,this['_continueCurrentRevision']=!0x1);}}else _0xc7a458&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xc7a458['toVersion'],this['editor']['model']['document']['history']['version']),_0xc7a458['fromVersion']===_0xc7a458['toVersion']?(0x0!==_0xc7a458['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xc7a458['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xc7a458['id'],this['_startingVersion']=_0xc7a458['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',_0x7f9c83=>!_0x7f9c83),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2b4f3a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c6311;for(const _0x71ec2a in _0x2b4f3a){const _0xce1b37=_0x71ec2a,_0x48c5e3=_0x2b4f3a[_0xce1b37];if('revisionHistoryLicenseKeyValid'==_0x48c5e3||'revisionHistoryLicenseKeyInvalid'==_0x48c5e3||'revisionHistoryLicenseKeyExpired'==_0x48c5e3||'revisionHistoryLicenseKeyDomainLimit'==_0x48c5e3||'revisionHistoryLicenseKeyNotAllowed'==_0x48c5e3||'revisionHistoryLicenseKeyEvaluationLimit'==_0x48c5e3||'revisionHistoryLicenseKeyTrialLimit'==_0x48c5e3||'revisionHistoryLicenseKeyUsageLimit'==_0x48c5e3){delete _0x2b4f3a[_0xce1b37],_0x1c6311=_0x48c5e3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1c6311&&_0x2b4f3a['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1c6311&&_0x2b4f3a['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1c6311&&_0x2b4f3a['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1c6311&&_0x2b4f3a['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1c6311&&_0x2b4f3a['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1c6311&&_0x2b4f3a['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1c6311&&_0x2b4f3a['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x11a6b5=this['repository']['getRevision'](0x0),_0x18e6a7=await this['getRevisionDocumentData'](_0x11a6b5),_0x27ed17=await this['getRevisionRootsAttributes'](_0x11a6b5);this['_replaceEditorDataWithRevisionData'](_0x18e6a7,_0x27ed17);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x12997c){this['_source']=_0x12997c;}async['update'](){const _0x176801=await this['_source']['getLatestVersion']();if(_0x176801>this['currentRevision']['toVersion']){await this['_loadState']();const _0x39f318=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x176801});_0x39f318['authors']=_0x39f318['authorsIds']['map'](_0x583569=>this['editor']['plugins']['get']('Users')['getUser'](_0x583569)),this['currentRevision']['_update'](_0x39f318);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x423a60={},_0x371c46=null){const _0x5731e3=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x371c46>this['currentRevision']['toVersion']&&(_0x371c46=null),null===_0x371c46&&(_0x371c46=await this['_source']['getLatestVersion']());const _0x3923c0=this['_getFromVersion'](_0x371c46),_0x2d7f77=this['buildRevisionData']({'from':_0x3923c0,'to':_0x371c46});if(this['currentRevision']['toVersion']<_0x371c46){const _0x4815f7=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x371c46,'to':_0x371c46});_0x4815f7['authors']=[],_0x4815f7['authorsIds']=[],_0x4815f7['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4815f7,!0x0),delete _0x4815f7['authors'],_0x5731e3['push'](_0x4815f7);}_0x423a60['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x423a60['name']=_0x423a60['name']||null,_0x423a60['id']=_0x423a60['id']||_0x4e207b(),_0x423a60={..._0x423a60,..._0x2d7f77};const _0x352508=this['addRevisionData'](_0x423a60);_0x5731e3['push'](_0x423a60);const _0x477c60=this['repository']['getIndex'](_0x352508);if(0x0!==_0x477c60){const _0x958769=this['repository']['getRevision'](_0x477c60-0x1);if(_0x958769['fromVersion']!==_0x371c46){const _0x45d20c=this['_revisionDataBuilder']['getData'](_0x371c46,_0x958769['toVersion']),_0x3e1860={'id':_0x958769['id'],'diffData':_0x45d20c['diffData'],'authorsIds':_0x45d20c['authorsIds'],'authors':_0x45d20c['authorsIds']['map'](_0x3cc419=>this['editor']['plugins']['get']('Users')['getUser'](_0x3cc419)),'fromVersion':_0x371c46};_0x958769===this['currentRevision']&&(_0x3e1860['createdAt']=new Date(_0x423a60['createdAt']['getTime']()+0xa)),_0x958769['_update'](_0x3e1860,!0x0),delete _0x3e1860['authors'],_0x5731e3['push'](_0x3e1860);}}if(this['adapter']){for(const _0x4b4729 of _0x5731e3)this['_bufferUpdate'](_0x4b4729['id'],_0x4b4729,!0x0);this['sendBufferedUpdates']();}return _0x352508;}['addRevisionData'](_0x3feb61){const _0x2dc59c=this['repository']['createRevision'](_0x3feb61);return this['adapter']&&_0x2dc59c['on']('_update',(_0x12b599,_0x236818,_0x2ab786)=>{_0x2ab786||(this['_bufferUpdate'](_0x236818['id'],_0x236818,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2dc59c,this['_findInsertionIndex'](_0x2dc59c)),_0x2dc59c;}async['getRevisionDocumentData'](_0x385913){await this['_loadRevisionData'](_0x385913);const _0x27be4e={};for(const _0x483513 in _0x385913['diffData']){if(_0x385913['diffData'][_0x483513]['attachChange']&&!_0x385913['diffData'][_0x483513]['attachChange']['isAttached'])continue;const _0x5c762b=this['_removeRevisionMarkers'](JSON['parse'](_0x385913['diffData'][_0x483513]['insertions'])),_0x46942a=this['editor']['editing']['view']['document'],_0x1336f6=new _0x56f6be(_0x46942a,_0x5c762b['map'](_0x4c101b=>P(_0x4c101b,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x27be4e[_0x483513]=this['editor']['data']['processor']['toData'](_0x1336f6),this['editor']['data']['processor']['useFillerType']('default');}return _0x27be4e;}async['getRevisionRootsAttributes'](_0x2a1f38){await this['_loadRevisionData'](_0x2a1f38);const _0x5df0ff={};for(const _0x3b8b1a in _0x2a1f38['diffData'])_0x2a1f38['diffData'][_0x3b8b1a]['attachChange']&&!_0x2a1f38['diffData'][_0x3b8b1a]['attachChange']['isAttached']||(_0x5df0ff[_0x3b8b1a]=_0x2a1f38['diffData'][_0x3b8b1a]['attributesAfter']||{});return _0x5df0ff;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xfc0010=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x557f62=0x0;_0x557f62<_0xfc0010['length'];_0x557f62++){const _0x1d9b80=_0xfc0010[_0x557f62];let _0x1a3540=!0x1;for(const _0x3d2be4 of Object['keys'](_0x1d9b80))void 0x0===_0x1d9b80[_0x3d2be4]?delete _0x1d9b80[_0x3d2be4]:'id'!==_0x3d2be4&&(_0x1a3540=!0x0);_0x1a3540||(_0xfc0010[_0x557f62]=null);}if(_0xfc0010=_0xfc0010['filter'](_0x2733b3=>null!==_0x2733b3),!_0xfc0010['length'])return;for(let _0x1e9215=0x0;_0x1e9215<_0xfc0010['length'];_0x1e9215++){const _0x5ee0df=_0xfc0010[_0x1e9215];void 0x0!==_0x5ee0df['fromVersion']&&void 0x0===_0x5ee0df['toVersion']&&(_0x5ee0df['toVersion']=this['repository']['getRevision'](_0x5ee0df['id'])['toVersion']),void 0x0!==_0x5ee0df['toVersion']&&void 0x0===_0x5ee0df['fromVersion']&&(_0x5ee0df['fromVersion']=this['repository']['getRevision'](_0x5ee0df['id'])['fromVersion']);}const _0x17cf6b=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xfc0010,_0x17cf6b)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4eb873=>{if(_0x4eb873){for(const _0x18c980 of _0x4eb873)this['setRevisionData']({'id':_0x18c980['id'],'createdAt':_0x18c980['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x393cbe,_0x1bd9d2){let _0x318356=this['editor']['config']['get']('initialData'),_0x394cf3=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x318356){_0x318356={};for(const _0x1261b8 of this['editor']['model']['document']['getRootNames']())_0x318356[_0x1261b8]='';}if('string'==typeof _0x318356&&(_0x318356={'main':_0x318356}),void 0x0===_0x394cf3){_0x394cf3={};for(const _0x267735 of this['editor']['model']['document']['getRootNames']())_0x394cf3[_0x267735]={};}let _0x5a6baf=!0x1;const _0x48490c=Object['keys'](_0x318356),_0x1c29ba=Object['keys'](_0x393cbe);for(const _0xdab985 of _0x48490c){if(_0x318356[_0xdab985]!==_0x393cbe[_0xdab985]&&''!==_0x318356[_0xdab985]['trim']()){_0x5a6baf=!0x0;break;}if(!_0x2a48d6(_0x394cf3[_0xdab985],_0x1bd9d2[_0xdab985])&&Object['keys'](_0x394cf3[_0xdab985])['length']>0x0){_0x5a6baf=!0x0;break;}}_0x5a6baf||(_0x5a6baf=_0x1c29ba['some'](_0x5cb8e0=>!this['editor']['model']['document']['getRoot'](_0x5cb8e0))),_0x5a6baf&&_0x2d052d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x318356,'editorRootsAttributes':_0x394cf3,'revisionData':_0x393cbe,'revisionRootsAttributes':_0x1bd9d2}),this['editor']['config']['set']('initialData',_0x393cbe),this['editor']['config']['set']('rootsAttributes',_0x1bd9d2);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x67014e=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x67014e['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x30c093){const _0x50fec8=this['repository']['getRevisions']();_0x50fec8['reverse']();let _0x280b1d=0x0;for(;_0x280b1d<_0x50fec8['length'];){const _0x1f6a55=_0x50fec8[_0x280b1d];if(_0x1f6a55===this['currentRevision']){_0x280b1d++;continue;}if(_0x1f6a55['id']===this['_initialRevisionId'])break;const _0x328b57=_0x30c093['toVersion']-_0x1f6a55['toVersion']||_0x30c093['fromVersion']-_0x1f6a55['fromVersion'];if(_0x328b57>0x0)break;if(_0x328b57<0x0)_0x280b1d++;else{if(!_0x30c093['creator']&&_0x1f6a55['creator'])break;if(_0x1f6a55['creator']||!_0x30c093['creator']){if(_0x30c093['createdAt']>_0x1f6a55['createdAt'])break;_0x280b1d++;}else _0x280b1d++;}}return _0x280b1d;}['setRevisionData'](_0x5247e4){const _0x53eaac=this['repository']['getRevision'](_0x5247e4['id']);if(_0x5247e4['createdAt']&&(_0x5247e4['createdAt']=new Date(_0x5247e4['createdAt'])),_0x5247e4['authorsIds']){const _0x7e0936=this['editor']['plugins']['get']('Users');_0x5247e4['authors']=_0x5247e4['authorsIds']['map'](_0x1d6544=>_0x7e0936['getUser'](_0x1d6544));}_0x53eaac['_update'](_0x5247e4,!0x0);}['buildRevisionData']({revision:_0x243a10=null,from:_0x342cdc=null,to:_0x5e1c0b=null}){_0x342cdc=null!==_0x342cdc?_0x342cdc:_0x243a10['fromVersion'],_0x5e1c0b=null!==_0x5e1c0b?_0x5e1c0b:_0x243a10['toVersion'];const _0x1daa2d=this['_revisionDataBuilder']['getData'](_0x342cdc,_0x5e1c0b),_0x11ecf5={'diffData':_0x1daa2d['diffData'],'authorsIds':_0x1daa2d['authorsIds'],'fromVersion':_0x342cdc,'toVersion':_0x5e1c0b};if(!_0x243a10||_0x5e1c0b!==_0x243a10['toVersion']){const _0x543bb1=_0x5e1c0b-0x1,_0x8fd6b6=this['_source']['history']['getOperation'](_0x543bb1);_0x11ecf5['createdAt']=_0x8fd6b6&&_0x8fd6b6['createdAt']||new Date();}if(this['_loadedStateData']&&_0x342cdc===this['_loadedStateData']['fromVersion']){for(const _0x27b99e of this['_loadedStateData']['authors'])_0x11ecf5['authorsIds']['includes'](_0x27b99e['id'])||_0x11ecf5['authorsIds']['push'](_0x27b99e['id']);}return _0x11ecf5;}['_loadRevisionData'](_0x10d0a1){if(!_0x10d0a1||_0x10d0a1['diffData'])return Promise['resolve']();{const _0x17dc88=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x17dc88,'revisionId':_0x10d0a1['id']})['then'](_0x11ae17=>{_0x10d0a1['diffData']=_0x11ae17['diffData'];});}}['_bufferUpdate'](_0x4eb568,_0x309f33,_0x34a89b){if(this['_bufferedUpdates']['has'](_0x4eb568)){const _0x2fa0e6=this['_bufferedUpdates']['get'](_0x4eb568);_0x309f33=_0x34a89b?{..._0x2fa0e6,..._0x309f33}:{..._0x309f33,..._0x2fa0e6};}this['_bufferedUpdates']['set'](_0x4eb568,_0x309f33);}['_getFromVersion'](_0x581fe7){const _0x41ecd1=this['repository']['getRevisions']();_0x41ecd1['reverse'](),_0x41ecd1['shift']();const _0x50951e=_0x41ecd1['find'](_0x386868=>_0x386868['toVersion']<=_0x581fe7)['toVersion'];return _0x50951e<this['_startingVersion']?this['_startingVersion']:_0x50951e;}['_createInitialRevision'](_0x533d87){const _0x92ecc=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x92ecc)this['_initialRevisionId']=_0x92ecc['id'];else{const _0x21b3ae=!this['editor']['model']['document']['roots']['find'](_0xc3376=>this['editor']['model']['hasContent'](_0xc3376)),_0x47a713=this['editor']['plugins']['get']('Users')['me']['id'],_0x388187=m(this['editor']['locale'],_0x21b3ae?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x533d87,'to':_0x533d87,'id':this['_initialRevisionId'],'name':_0x388187,'creatorId':_0x47a713});}}['_createCurrentRevision'](_0x2368e5){const _0x2e7202=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2e7202),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2368e5,'to':_0x2368e5,'id':_0x2e7202,'name':'','creatorId':null}));}['_makeRevision']({name:_0x339b61,from:_0x4040f6,to:_0x56fa37,creatorId:_0x1b508b,id:_0x58587f}){const _0x3acf75=this['buildRevisionData']({'from':_0x4040f6,'to':_0x56fa37});_0x3acf75['name']=_0x339b61,_0x3acf75['creatorId']=_0x1b508b,_0x3acf75['id']=_0x58587f;const _0x46b999=this['addRevisionData'](_0x3acf75);return this['adapter']&&this['_bufferUpdate'](_0x3acf75['id'],_0x3acf75,!0x0),_0x46b999;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3825d7){return(_0x3825d7=_0x3825d7['filter'](_0x248a13=>!_0x248a13['name']||'revision-start'!==_0x248a13['name']&&'revision-end'!==_0x248a13['name']))['forEach'](_0x127a83=>{'string'!=typeof _0x127a83&&(_0x127a83['children']=this['_removeRevisionMarkers'](_0x127a83['children']),_0x127a83['attributes']=_0x127a83['attributes']['filter'](_0x48c52e=>!_0x48c52e[0x0]['startsWith']('data-revision-')));}),_0x3825d7;}}function P(_0x29c4b3,_0x5ed2b2){const _0x570938=_0x5ed2b2['editing']['view']['document'];if('string'==typeof _0x29c4b3)return new _0xc3b70e(_0x570938,_0x29c4b3);{const _0x3dc7d9=_0x29c4b3['children']['map'](_0x43be3c=>P(_0x43be3c,_0x5ed2b2));return new(E[_0x29c4b3['type']]||_0x42d694)(_0x570938,_0x29c4b3['name'],_0x29c4b3['attributes'],_0x3dc7d9);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x15e904){this['editor']=_0x15e904,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'](_0x4b21f6){this['source']=_0x4b21f6;const _0x44cedd=new Map(),_0x3722d=new Map(),_0x3253eb=this['editor']['model']['document']['roots']['map'](_0x565249=>_0x565249['rootName']);for(const _0xb8bc4 of _0x3253eb){const _0x30d068=this['editor']['model']['document']['getRoot'](_0xb8bc4),_0x114b45=T(_0x30d068);_0x44cedd['set'](_0xb8bc4,_0x114b45),_0x3722d['set'](_0xb8bc4,Object['fromEntries'](_0x30d068['getAttributes']()));}const _0x4b9e91=Array['from'](this['editor']['model']['markers'])['map'](_0x2a01cf=>[_0x2a01cf['name'],_0x2a01cf['getRange']()]),_0xe335c5=this['source']['version'];this['_saveMetaData'](_0xe335c5,_0x44cedd,_0x4b9e91,_0x3722d),this['_startingRevisionId']=this['_revisionId'];const _0x38d0f6=new Map(),_0x534dc2=new Map();for(const _0x46463e of _0x3253eb){const _0x1731ae=F(_0x46463e);_0x38d0f6['set'](_0x46463e,_0x1731ae),_0x534dc2['set'](_0x46463e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x38d0f6,[],_0x534dc2);}['getData'](_0x4f98e8,_0x3a832d){if(this['_lastFrom']===_0x4f98e8&&this['_lastTo']<=_0x3a832d)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3a832d,!0x0);else{if(!this['_savedMetaData']['has'](_0x4f98e8)){const _0x33895b=this['_getPreviousFrom'](_0x4f98e8);this['_calculateMetaData'](_0x33895b,_0x4f98e8,!0x1);}this['_calculateMetaData'](_0x4f98e8,_0x3a832d,!0x0);}return this['_lastFrom']=_0x4f98e8,this['_lastTo']=_0x3a832d,this['_getState']();}['loadState'](_0x264f2b){this['_reset'](),this['_lastFrom']=_0x264f2b['fromVersion'],this['_lastTo']=_0x264f2b['toVersion'];for(const _0x33e8d5 in _0x264f2b['diffData']){const _0xf04ee5=_0x264f2b['diffData'][_0x33e8d5]['attachChange'],_0x380287=_0x22418a(_0x264f2b['diffData'][_0x33e8d5]['attributesBefore'])||{},_0x12b967=this['_makeModelFromViewString'](_0x264f2b['diffData'][_0x33e8d5]['deletions']);_0x12b967['rootName']=_0x33e8d5,_0x12b967['_isAttached']=!_0xf04ee5||!_0xf04ee5['isAttached'],_0x12b967['isAttached']=()=>_0x12b967['_isAttached'],this['_baseRoots']['set'](_0x33e8d5,_0x12b967),this['_baseRootsAttributes']['set'](_0x33e8d5,_0x380287),_0xf04ee5&&this['_touchedRoots']['set'](_0x33e8d5,_0xf04ee5);const _0x111eca=this['_makeIdsRoot'](_0x12b967);this['_baseIdsRoots']['set'](_0x33e8d5,_0x111eca);for(const [_0x53abb6,_0x5c0b43]of _0x12b967['markers']){if(!_0x53abb6['startsWith']('revision:'))continue;const _0xeec38f=_0x53abb6['split'](':')[0x2];for(const _0x13baed of _0x5c0b43['getWalker']({'singleCharacters':!0x0})){const _0x33eb12=this['_getVidAttributeName'](_0x13baed),_0xf7fbbf='elementEnd'==_0x13baed['type']?_0x13baed['previousPosition']['path']['slice'](0x0,-0x1):_0x13baed['previousPosition']['path'],_0x13b985=_0x111eca['getNodeByPath'](_0xf7fbbf)['getAttribute'](_0x33eb12);this['_touched']['set'](_0x13b985,{'userId':_0xeec38f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x49b19e=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x409c7c=>!this['_touched']['has'](_0x409c7c));let _0x313b85=0x0;const _0x2dede7=new Map();for(const _0x4e9c09 in _0x264f2b['diffData']){const _0x529111=_0x264f2b['diffData'][_0x4e9c09]['attachChange'],_0x3d13a8=_0x22418a(_0x264f2b['diffData'][_0x4e9c09]['attributesAfter'])||{},_0x37d48b=this['_makeModelFromViewString'](_0x264f2b['diffData'][_0x4e9c09]['insertions']);_0x37d48b['rootName']=_0x4e9c09,_0x37d48b['_isAttached']=!_0x529111||_0x529111['isAttached'],_0x37d48b['isAttached']=()=>_0x37d48b['_isAttached'],this['_diffRoots']['set'](_0x4e9c09,_0x37d48b),this['_diffRootsAttributes']['set'](_0x4e9c09,_0x3d13a8);const _0x5800e7=this['_makeIdsRoot'](_0x37d48b,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4e9c09,_0x5800e7),_0x2dede7['set'](_0x4e9c09,_0x37d48b['isAttached']()?_0x3d13a8:{});for(const [_0x30886a,_0x99975f]of _0x37d48b['markers']){if(!_0x30886a['startsWith']('revision:'))continue;const _0x113bc4=_0x30886a['split'](':')[0x2];for(const _0x2eb5d3 of _0x99975f['getWalker']({'singleCharacters':!0x0})){const _0x23e8d8=this['_getVidAttributeName'](_0x2eb5d3),_0x5c688f=this['_revisionId']++,_0x3f9a67='elementEnd'==_0x2eb5d3['type']?_0x2eb5d3['previousPosition']['path']['slice'](0x0,-0x1):_0x2eb5d3['previousPosition']['path'];_0x5800e7['getNodeByPath'](_0x3f9a67)['_setAttribute'](_0x23e8d8,_0x5c688f),this['_touched']['set'](_0x5c688f,{'userId':_0x113bc4});}}for(const _0x2e709f of this['editor']['model']['createRangeIn'](_0x37d48b)['getWalker']({'singleCharacters':!0x0})){const _0xf33ce6=this['_getVidAttributeName'](_0x2e709f),_0x1cd5d6='elementEnd'==_0x2e709f['type']?_0x2e709f['previousPosition']['path']['slice'](0x0,-0x1):_0x2e709f['previousPosition']['path'],_0x395b4a=_0x5800e7['getNodeByPath'](_0x1cd5d6);_0x395b4a['getAttribute'](_0xf33ce6)>0x0||_0x395b4a['_setAttribute'](_0xf33ce6,_0x49b19e[_0x313b85++]);}for(const [_0x3c2136,_0x400c20]of _0x37d48b['markers'])_0x3c2136['startsWith']('revision:')||this['_markers']['set'](_0x3c2136,_0x400c20);}const _0x33bbb9=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x33bbb9),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x33bbb9,0x1));const _0x1b4730=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1b4730),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1b4730,0x1));const _0x4b2f90=Array['from'](this['_diffRoots'])['map'](([_0x544c2f,_0x544dbd])=>[_0x544c2f,T(_0x544dbd)]);this['_saveMetaData'](this['_lastTo'],_0x4b2f90,this['_markers'],_0x2dede7);}['_makeModelFromViewString'](_0x2cbc41){const _0xd3a858=JSON['parse'](_0x2cbc41),_0x1bf622=this['editor']['editing']['view']['document'],_0x52cbe3=new _0x56f6be(_0x1bf622,_0xd3a858['map'](_0x28c1a2=>P(_0x28c1a2,this['editor'])));return this['editor']['data']['toModel'](_0x52cbe3);}['_saveMetaData'](_0xcf872e,_0x2d1b3f,_0x123cd4,_0xbbc583){const _0x4eb030=new Map(_0x2d1b3f),_0x6acce1=new Map(_0x22418a(_0xbbc583)),_0x92687b=new Map();for(const [_0x1661ec,_0x3d1a3f]of _0x123cd4)_0x92687b['set'](_0x1661ec,{'start':_0x3d1a3f['start']['clone'](),'end':_0x3d1a3f['end']['clone'](),'rootName':_0x3d1a3f['root']['rootName']});this['_savedMetaData']['set'](_0xcf872e,{'roots':_0x4eb030,'markers':_0x92687b,'rootsAttributes':_0x6acce1});}['_removeMetaData'](_0x5c9e83){this['_savedMetaData']['delete'](_0x5c9e83);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x14915c,_0x2925d9=null){let _0x434fc7=null;_0x14915c['is']('documentFragment')||(_0x434fc7=new ut(_0x14915c['name'],{'vid_start':null===_0x2925d9?this['_revisionId']++:_0x2925d9++}));const _0x4f65d8=[];for(const _0x25252b of _0x14915c['getChildren']())if(_0x25252b['is']('element')){_0x4f65d8['push'](this['_makeIdsRoot'](_0x25252b,_0x2925d9));const _0x35896a=_0x4f65d8[_0x4f65d8['length']-0x1];null!==_0x2925d9&&(_0x2925d9=_0x35896a['is']('element','$text')?_0x35896a['getAttribute']('vid')+0x1:_0x35896a['getAttribute']('vid_end')+0x1);}else{for(let _0x92c502=0x0;_0x92c502<_0x25252b['offsetSize'];_0x92c502++)_0x4f65d8['push'](new ut('$text',{'vid':null===_0x2925d9?this['_revisionId']++:_0x2925d9++}));}if(_0x14915c['is']('documentFragment')){const _0x5b4e97=F(_0x14915c['rootName']);return _0x5b4e97['_insertChild'](0x0,_0x4f65d8),_0x5b4e97;}return _0x434fc7['_setAttribute']('vid_end',null===_0x2925d9?this['_revisionId']++:_0x2925d9++),_0x434fc7['_insertChild'](0x0,_0x4f65d8),_0x434fc7;}['_calculateMetaData'](_0x19503a,_0x3d2404,_0x52e389){this['_reset']();const {roots:_0x522832,markers:_0x1d07da,rootsAttributes:_0x3740d5}=this['_savedMetaData']['get'](_0x19503a);this['_baseRoots']=new Map(_0x522832),this['_baseRootsAttributes']=new Map(_0x22418a(_0x3740d5));for(const [_0x19f23c,_0x14ecc0]of this['_baseRoots'])if('$graveyard'!==_0x19f23c&&(this['_diffRoots']['set'](_0x19f23c,T(_0x14ecc0)),this['_diffRootsAttributes']=new Map(_0x22418a(_0x3740d5)),_0x52e389)){const _0x3fd573=this['_revisionId'];this['_idsRoots']['set'](_0x19f23c,this['_makeIdsRoot'](_0x14ecc0)),this['_baseIdsRoots']['set'](_0x19f23c,this['_makeIdsRoot'](_0x14ecc0,_0x3fd573));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x52e389&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x45703c,_0x2a61a3]of _0x1d07da){const _0x32c9fa=this['_baseRoots']['get'](_0x2a61a3['rootName']),_0x360629=this['_diffRoots']['get'](_0x2a61a3['rootName']),_0x4ac24e=new ft(this['_fixPosition'](_0x2a61a3['start'],_0x32c9fa),this['_fixPosition'](_0x2a61a3['end'],_0x32c9fa)),_0x2cae7c=this['_fixRange'](_0x4ac24e,_0x360629);_0x32c9fa['markers']['set'](_0x45703c,_0x4ac24e),this['_markers']['set'](_0x45703c,_0x2cae7c);}this['_applyOperations'](_0x19503a,_0x3d2404,_0x52e389);}['_applyOperations'](_0x27ab9f,_0x5f2939,_0x4fbd12){for(const _0x1a1346 of this['source']['getOperations'](_0x27ab9f,_0x5f2939))this['_handleOperation'](_0x1a1346,_0x4fbd12);for(const _0x5b0983 of this['_diffRoots']['values']())_0x5b0983['markers']['clear']();for(const [_0x5ecf31,_0x52c480]of this['_markers']){this['_diffRoots']['get'](_0x52c480['root']['rootName'])['markers']['set'](_0x5ecf31,_0x52c480['clone']());}const _0x323684=new Map(),_0x50fa17=new Map();for(const [_0x1a8832,_0x25b3f6]of this['_diffRoots'])_0x323684['set'](_0x1a8832,T(_0x25b3f6)),_0x50fa17['set'](_0x1a8832,this['_diffRootsAttributes']['get'](_0x1a8832));this['_saveMetaData'](_0x5f2939,_0x323684,this['_markers'],_0x50fa17);}['_getPreviousFrom'](_0x3f36cf){const _0x4c54c1=Array['from'](this['_savedMetaData']['keys']());_0x4c54c1['sort']((_0x231ea6,_0x46ca55)=>_0x231ea6-_0x46ca55),_0x4c54c1['reverse']();for(const _0x13da9d of _0x4c54c1)if(_0x13da9d<_0x3f36cf)return _0x13da9d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1d5f79,_0x33748d){const _0xe4eee5=Array['from'](_0x33748d['markers'])['map'](([_0x1eb2d6,_0x4fef45])=>[_0x1eb2d6,this['_fixRange'](_0x4fef45,_0x1d5f79)]);_0x1d5f79['markers']=new Map(_0xe4eee5);}['_transformMarkers'](_0x50d8e2){for(const _0x1c9ae9 of this['_markers']['values']()){const _0x778d0a=_0x1c9ae9['getTransformedByOperation'](_0x50d8e2),_0x569cd8=ft['_createFromRanges'](_0x778d0a);_0x1c9ae9['start']=_0x569cd8['start'],_0x1c9ae9['end']=_0x569cd8['end'];}}['_handleOperation'](_0x167c36,_0xefaff8){if('addRoot'!=_0x167c36['type']&&'detachRoot'!=_0x167c36['type']){if('insert'==_0x167c36['type']){const _0x35b915=_0x167c36['position']['root']['rootName'];this['_diffRoots']['has'](_0x35b915)||(this['_diffRoots']['set'](_0x35b915,F(_0x35b915,!0x0)),this['_diffRootsAttributes']['set'](_0x35b915,{}),_0xefaff8&&this['_idsRoots']['set'](_0x35b915,F(_0x35b915,!0x0)));}else{if('addRootAttribute'==_0x167c36['type']||'removeRootAttribute'==_0x167c36['type']||'changeRootAttribute'==_0x167c36['type'])return void this['_handleRootAttributeOperation'](_0x167c36);'marker'==_0x167c36['type']&&this['_handleMarkerOperation'](_0x167c36);}if('marker'!==_0x167c36['type']){const _0xbbcd1e=this['_cloneOperation'](_0x167c36,this['_diffRoots']);_0xbbcd1e['_execute'](),this['_transformMarkers'](_0xbbcd1e);}if(_0xefaff8)switch(_0x167c36['type']){case'insert':this['_handleInsertOperation'](_0x167c36);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x167c36);break;case'merge':this['_handleMergeOperation'](_0x167c36);break;case'split':this['_handleSplitOperation'](_0x167c36);}}else this['_handleRootOperation'](_0x167c36,_0xefaff8);}['_cloneOperation'](_0x1061ed,_0x598dd9){const _0x33b689=_0x1061ed['clone']();return _0x33b689['_authorId']=_0x1061ed['_authorId'],this['_fixOperation'](_0x33b689,_0x598dd9),_0x33b689;}['_getBaseVids'](_0x50e3c5){return _0x50e3c5['map'](_0x125107=>{const _0x145df1=this['_getVidAttributeName'](_0x125107);return Number(_0x125107['item']['getAttribute'](_0x145df1));});}['_generateTape'](_0x343242,_0x513f03){if(_0x343242['is']('element','$text'))_0x513f03['push']({'item':_0x343242,'type':'text'});else{_0x343242['is']('element')&&_0x513f03['push']({'item':_0x343242,'type':'elementStart'});for(const _0x23b7fc of _0x343242['getChildren']())this['_generateTape'](_0x23b7fc,_0x513f03);_0x343242['is']('element')&&_0x513f03['push']({'item':_0x343242,'type':'elementEnd'});}return _0x513f03;}['_getState'](){const _0x999a8b=new Map(this['_touched']),_0x4d9902=new Map(_0x999a8b),_0x1a627d=new Map(),_0x1bf7f0={'insertions':{},'deletions':{}},_0x4d858c={'insertions':{},'deletions':{}},_0x187e9f=new Map(),_0x1e1d10=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1e1d10['delete']('$graveyard');for(const _0x48eb92 of _0x1e1d10){const _0x7785b4=this['_diffRoots']['get'](_0x48eb92)||F(_0x48eb92,!0x1),_0x4037de=this['_baseRoots']['get'](_0x48eb92)||F(_0x48eb92,!0x1);_0x7785b4['isAttached']()||_0x4037de['isAttached']()?(_0x1bf7f0['insertions'][_0x48eb92]=T(_0x7785b4),_0x1bf7f0['deletions'][_0x48eb92]=T(_0x4037de),this['_copyMarkers'](_0x1bf7f0['deletions'][_0x48eb92],_0x4037de),this['_copyMarkers'](_0x1bf7f0['insertions'][_0x48eb92],_0x7785b4),_0x4d858c['insertions'][_0x48eb92]=this['_generateTape'](this['_idsRoots']['get'](_0x48eb92),[]),_0x4d858c['deletions'][_0x48eb92]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x48eb92)||F(_0x48eb92,!0x1),[])):_0x1e1d10['delete'](_0x48eb92);}for(const _0x12ad73 of _0x1e1d10){const _0x52aaa=_0x4d858c['insertions'][_0x12ad73];for(const _0x5da0ce of _0x52aaa){const _0x58eaa5=this['_getVidAttributeName'](_0x5da0ce),_0x4f9f91=_0x5da0ce['item']['getAttribute'](_0x58eaa5);_0x4d9902['delete'](_0x4f9f91),_0x4f9f91>=this['_startingRevisionId']&&_0x1a627d['set'](_0x4f9f91,_0x999a8b['get'](_0x4f9f91));}}for(const _0x3cd806 of _0x1e1d10){const _0x1e9202=_0x4d858c['insertions'][_0x3cd806],_0x151363=this['_getBaseVids'](_0x4d858c['deletions'][_0x3cd806]);let _0x48d654=0x0;for(const _0xcd5ace of _0x1e9202){const _0x34f11c=this['_getVidAttributeName'](_0xcd5ace),_0x4826ec=_0xcd5ace['item']['getAttribute'](_0x34f11c);if(!_0x1a627d['has'](_0x4826ec)&&!_0x187e9f['has'](_0x4826ec)){if(_0x4d9902['has'](_0x4826ec))_0x48d654++;else{if(_0x4826ec!=_0x151363[_0x48d654]){const _0x1e1087=_0x999a8b['get'](_0x4826ec)||_0x999a8b['get'](_0x151363[_0x48d654]);for(;_0x4826ec!=_0x151363[_0x48d654];)_0x4d9902['has'](_0x151363[_0x48d654])||(_0x187e9f['set'](_0x151363[_0x48d654],_0x1e1087),_0x999a8b['set'](_0x151363[_0x48d654],_0x1e1087)),_0x48d654++;}_0x48d654++;}}}}for(const _0x33a7b9 of _0x1e1d10){const _0x5993f1=_0x4d858c['insertions'][_0x33a7b9];for(const _0x21d36f of _0x5993f1){const _0x11a23e=this['_getVidAttributeName'](_0x21d36f),_0x5a160c=_0x21d36f['item']['getAttribute'](_0x11a23e);if(_0x187e9f['has'](_0x5a160c)){const _0x4d0598=_0x187e9f['get'](_0x5a160c);_0x4d9902['has'](_0x5a160c)||_0x4d9902['set'](_0x5a160c,{..._0x4d0598}),_0x1a627d['set'](_0x5a160c,{..._0x4d0598});}}}for(const _0x90e3f6 of _0x4d9902['keys']())_0x90e3f6>=this['_startingRevisionId']&&_0x4d9902['delete'](_0x90e3f6);const _0x223efb=new Map();for(const _0x21aa44 of _0x1e1d10){let _0xec503=_0x4d858c['insertions'][_0x21aa44];for(const _0x342e5e of _0xec503)if(_0x342e5e['item']['is']('element','tableCell')){const _0x1b09f6=this['_getVidAttributeName'](_0x342e5e),_0x54d5c1=_0x342e5e['item']['getAttribute'](_0x1b09f6);if(_0x1a627d['has'](_0x54d5c1)){const _0x30c261=_0x342e5e['item']['parent']['parent']['getAttribute']('vid_start'),_0x561b90=_0x223efb['get'](_0x30c261)||new Set();_0x561b90['add'](_0x1a627d['get'](_0x54d5c1)['userId']),_0x223efb['set'](_0x30c261,_0x561b90);}}_0xec503=_0x4d858c['deletions'][_0x21aa44];for(const _0x32d8aa of _0xec503)if(_0x32d8aa['item']['is']('element','tableCell')){const _0x2a9a87=this['_getVidAttributeName'](_0x32d8aa),_0x5b8fa6=_0x32d8aa['item']['getAttribute'](_0x2a9a87);if(_0x4d9902['has'](_0x5b8fa6)){const _0x3d60db=_0x32d8aa['item']['parent']['parent']['getAttribute']('vid_start'),_0x46d1c1=_0x223efb['get'](_0x3d60db)||new Set();_0x46d1c1['add'](_0x4d9902['get'](_0x5b8fa6)['userId']),_0x223efb['set'](_0x3d60db,_0x46d1c1);}}for(const _0x2e1f09 of _0x223efb['keys']())(_0x1a627d['has'](_0x2e1f09)||_0x4d9902['has'](_0x2e1f09))&&_0x223efb['delete'](_0x2e1f09);}for(const _0x3447b6 of _0x1e1d10){const _0x13425b=_0x4d858c['insertions'][_0x3447b6];let _0x57d3f7=null,_0x5d90b6=null;for(const _0x5c4ea7 of _0x13425b){const _0x173f22=this['_getVidAttributeName'](_0x5c4ea7),_0x5269c4=_0x5c4ea7['item']['getAttribute'](_0x173f22),_0x333817=_0x223efb['get'](_0x5269c4);_0x333817&&'elementStart'==_0x5c4ea7['type']&&(_0x57d3f7=Array['from'](_0x333817)[0x0],_0x5d90b6=_0x5c4ea7['item']['getAttribute']('vid_end')),_0x57d3f7&&(_0x4d9902['set'](_0x5269c4,{'userId':_0x57d3f7}),_0x1a627d['set'](_0x5269c4,{'userId':_0x57d3f7})),_0x5269c4==_0x5d90b6&&(_0x57d3f7=null,_0x5d90b6=null);}}const _0x1f703e={},_0x2c4ea2=new Set();for(const _0x4f3c84 of _0x1e1d10){const _0x56ebbc=_0x1bf7f0['deletions'][_0x4f3c84],_0x2c7811=_0x1bf7f0['insertions'][_0x4f3c84];for(const {userId:_0x1c0c7e}of this['_touchedMarkers']['values']())null!==_0x1c0c7e&&_0x2c4ea2['add'](_0x1c0c7e);for(const {userId:_0x391bde}of this['_touchedRoots']['values']())null!==_0x391bde&&_0x2c4ea2['add'](_0x391bde);this['_markChanges'](_0x2c7811,_0x4d858c['insertions'][_0x4f3c84],_0x1a627d,'insertion',_0x2c4ea2),this['_markChanges'](_0x56ebbc,_0x4d858c['deletions'][_0x4f3c84],_0x4d9902,'deletion',_0x2c4ea2),_0x1f703e[_0x4f3c84]={'insertions':this['_prepareViewToSave'](_0x2c7811),'deletions':this['_prepareViewToSave'](_0x56ebbc),'attachChange':this['_touchedRoots']['get'](_0x4f3c84)||null,'attributesBefore':_0x22418a(this['_baseRootsAttributes']['get'](_0x4f3c84))||{},'attributesAfter':_0x22418a(this['_diffRootsAttributes']['get'](_0x4f3c84))};}return{'diffData':_0x1f703e,'authorsIds':Array['from'](_0x2c4ea2)};}['_processRootBeforeSave'](_0x27f611){for(const [,_0x50000e]of _0x27f611['markers']){const _0x5b33e3=_0x50000e['start']['getAncestors']()['filter'](_0x22ac7f=>'tableCell'==_0x22ac7f['name']);for(const _0x435718 of _0x5b33e3)0x1==_0x435718['childCount']&&_0x435718['getChild'](0x0)['is']('element','paragraph')&&_0x435718['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2c36aa){this['_processRootBeforeSave'](_0x2c36aa);const _0x2418d1=this['editor']['data']['toView'](_0x2c36aa,{}),_0x3c2bfd=Array['from'](_0x2418d1['getChildren']())['map'](_0x2bd057=>this['_getViewJson'](_0x2bd057));return JSON['stringify'](_0x3c2bfd);}['_getViewJson'](_0x171057){if(_0x171057['is']('$text'))return _0x171057['data'];{const _0x3af939=_0x171057;return{'type':Object['keys'](E)['find'](_0xeed7f2=>_0x171057 instanceof E[_0xeed7f2]),'name':_0x3af939['name'],'attributes':Array['from'](_0x3af939['getAttributes']()),'children':Array['from'](_0x3af939['getChildren']())['map'](_0x560e17=>this['_getViewJson'](_0x560e17))};}}['_markChanges'](_0x262c0c,_0x1221d7,_0x3beb33,_0x81da62,_0x21e23d){let _0x3db272=null,_0x11e6ef=null,_0x4a6da6=0x0;const _0x36c465=this['editor']['model'];for(let _0x35b3db=0x0;_0x35b3db<_0x1221d7['length'];_0x35b3db++){const _0x3432cd=this['_getVidAttributeName'](_0x1221d7[_0x35b3db]),_0x3db022=_0x1221d7[_0x35b3db]['item']['getAttribute'](_0x3432cd),_0x55d596=_0x3beb33['get'](_0x3db022),_0x2bb2f8=_0x35b3db==_0x1221d7['length']-0x1;(!_0x3db272&&_0x55d596&&(_0x3db272=_0x55d596,_0x11e6ef=_0x1221d7[_0x35b3db]),_0x3db272&&(!_0x55d596||_0x55d596['userId']!=_0x3db272['userId']))&&(_0xdc1550(_0x55d596,B(_0x11e6ef,_0x262c0c,_0x36c465),B(_0x1221d7[_0x35b3db],_0x262c0c,_0x36c465)),_0x3db272=_0x55d596||null,_0x11e6ef=_0x55d596?_0x1221d7[_0x35b3db]:null),_0x3db272&&_0x2bb2f8&&_0xdc1550(_0x55d596,B(_0x11e6ef,_0x262c0c,_0x36c465),J(_0x1221d7[_0x35b3db],_0x262c0c,_0x36c465));}function _0xdc1550(_0x97ace2,_0x57a687,_0x489b46){const _0x58fdcd=_0x3db272['userId'],_0x577e8c='revision:'+_0x81da62+':'+_0x58fdcd+':'+_0x4a6da6++,_0x447e43=_0x36c465['createRange'](_0x57a687,_0x489b46);_0x262c0c['markers']['set'](_0x577e8c,_0x447e43),null!==_0x58fdcd&&_0x21e23d['add'](_0x58fdcd);}}['_getVidAttributeName'](_0x5b6fb5){switch(_0x5b6fb5['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1259da,_0x32153){_0x1259da['baseVersion']=null;for(const _0x595581 in _0x1259da){const _0x1657a0=_0x1259da[_0x595581];if(_0x1657a0 instanceof vt){const _0x3ffbda=_0x32153['get'](_0x1657a0['root']['rootName']);_0x1259da[_0x595581]=this['_fixPosition'](_0x1657a0,_0x3ffbda);}if(_0x1657a0 instanceof ft){const _0x4a9bf0=_0x32153['get'](_0x1657a0['root']['rootName']);_0x1259da[_0x595581]=this['_fixRange'](_0x1657a0,_0x4a9bf0);}'root'===_0x595581&&(_0x1259da['root']=_0x32153['get'](_0x1259da['root']['rootName']));}}['_fixRange'](_0x23da25,_0x597a69){return this['editor']['model']['createRange'](this['_fixPosition'](_0x23da25['start'],_0x597a69),this['_fixPosition'](_0x23da25['end'],_0x597a69));}['_fixPosition'](_0x5773ce,_0x4cd026){return this['editor']['model']['createPositionFromPath'](_0x4cd026,_0x5773ce['path'],_0x5773ce['stickiness']);}['_handleInsertOperation'](_0x595c1d){const _0x18cfbe=this['_idsRoots']['get'](_0x595c1d['position']['root']['rootName']),_0x4d4739=this['_fixPosition'](_0x595c1d['position'],_0x18cfbe),_0x3a7f77=null===_0x595c1d['_authorId']?null:_0x595c1d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x207937=_0x4d4739['parent'],_0x4520f2=this['_revisionId'],_0x494f5b=[];for(const _0x49b4c1 of _0x595c1d['nodes'])if(_0x49b4c1['is']('element'))_0x494f5b['push'](this['_makeIdsRoot'](_0x49b4c1));else{for(let _0x27b0f3=0x0;_0x27b0f3<_0x49b4c1['offsetSize'];_0x27b0f3++)_0x494f5b['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x430537=this['_revisionId'];for(let _0x1e84a9=_0x4520f2;_0x1e84a9<_0x430537;_0x1e84a9++)this['_touched']['set'](_0x1e84a9,{'userId':_0x3a7f77});_0x207937['_insertChild'](_0x4d4739['offset'],_0x494f5b);}['_handleMoveOperation'](_0x284e6a){(_0x284e6a=this['_cloneOperation'](_0x284e6a,this['_idsRoots']))['_execute']();const _0x24d59b=null===_0x284e6a['_authorId']?null:_0x284e6a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x48555b=_0x284e6a['getMovedRangeStart'](),_0x305ada=_0x48555b['parent'],_0x3b0e7d=_0x48555b['offset'];!function _0x500b9e(_0x29455d,_0x598b11,_0x2a2c1b,_0x26d4a8){for(let _0x4a59f6=_0x2a2c1b;_0x4a59f6<_0x26d4a8;_0x4a59f6++){const _0x2acb2b=_0x598b11['getChild'](_0x4a59f6);_0x2acb2b['is']('element','$text')?_0x29455d['set'](_0x2acb2b['getAttribute']('vid'),{'userId':_0x24d59b}):(_0x29455d['set'](_0x2acb2b['getAttribute']('vid_start'),{'userId':_0x24d59b}),_0x500b9e(_0x29455d,_0x2acb2b,0x0,_0x2acb2b['childCount']),_0x29455d['set'](_0x2acb2b['getAttribute']('vid_end'),{'userId':_0x24d59b}));}}(this['_touched'],_0x305ada,_0x3b0e7d,_0x3b0e7d+_0x284e6a['howMany']);}['_handleMergeOperation'](_0x41db40){const _0x3284dd=null===(_0x41db40=this['_cloneOperation'](_0x41db40,this['_idsRoots']))['_authorId']?null:_0x41db40['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x26381c=_0x41db40['targetPosition']['parent'],_0x5ca8dc=_0x41db40['sourcePosition']['parent'],_0x192a65=_0x26381c['getAttribute']('vid_end'),_0x47f853=_0x5ca8dc['getAttribute']('vid_start');_0x26381c['_setAttribute']('vid_end',_0x5ca8dc['getAttribute']('vid_end')),_0x5ca8dc['_setAttribute']('vid_end',_0x192a65),this['_touched']['set'](_0x47f853,{'userId':_0x3284dd}),this['_touched']['set'](_0x192a65,{'userId':_0x3284dd}),_0x41db40['_execute']();}['_handleSplitOperation'](_0x3c7758){const _0x40cb24=null===(_0x3c7758=this['_cloneOperation'](_0x3c7758,this['_idsRoots']))['_authorId']?null:_0x3c7758['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d79ce=_0x3c7758['graveyardPosition'],_0x3d7e05=_0x3c7758['splitPosition']['parent'];_0x3c7758['_execute']();const _0x19b32c=_0x3d7e05['getAttribute']('vid_end'),_0x4e1bdc=_0x3c7758['insertionPosition']['nodeAfter'];if(_0x1d79ce){const _0x389fcf=_0x4e1bdc['getAttribute']('vid_end'),_0x4dae96=_0x3d7e05['getAttribute']('vid_end');_0x3d7e05['_setAttribute']('vid_end',_0x389fcf),_0x4e1bdc['_setAttribute']('vid_end',_0x4dae96),this['_touched']['set'](_0x3d7e05['getAttribute']('vid_end'),{'userId':_0x40cb24}),this['_touched']['set'](_0x4e1bdc['getAttribute']('vid_start'),{'userId':_0x40cb24});}else{const _0x378ce5=this['_revisionId']++,_0x40fe64=this['_revisionId']++;_0x3d7e05['_setAttribute']('vid_end',_0x378ce5),_0x4e1bdc['_setAttribute']('vid_start',_0x40fe64),_0x4e1bdc['_setAttribute']('vid_end',_0x19b32c),this['_touched']['set'](_0x378ce5,{'userId':_0x40cb24}),this['_touched']['set'](_0x40fe64,{'userId':_0x40cb24});}}['_handleMarkerOperation'](_0x32d2e3){if(!_0x32d2e3['affectsData'])return;const _0xd94cc9=(_0x32d2e3=this['_cloneOperation'](_0x32d2e3,this['_diffRoots']))['oldRange']?_0x32d2e3['oldRange']['root']:null,_0x1f7dd5=_0x32d2e3['newRange']?_0x32d2e3['newRange']['root']:null;_0xd94cc9&&this['_markers']['delete'](_0x32d2e3['name']),_0x1f7dd5&&this['_markers']['set'](_0x32d2e3['name'],_0x32d2e3['newRange']['clone']());const _0x5114e8=null===_0x32d2e3['_authorId']?null:_0x32d2e3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4db597=_0x32d2e3['name'];if(!this['_touchedMarkers']['has'](_0x4db597))return void this['_touchedMarkers']['set'](_0x4db597,{'range':_0x32d2e3['oldRange'],'userId':_0x5114e8});const _0x26f91f=this['_touchedMarkers']['get'](_0x4db597),_0x12e47a=_0x26f91f['range'],_0x29907b=_0x32d2e3['newRange'];null==_0x12e47a&&null==_0x29907b||_0x12e47a&&_0x29907b&&_0x12e47a['isEqual'](_0x29907b)?this['_touchedMarkers']['delete'](_0x32d2e3['name']):_0x26f91f['userId']=_0x5114e8;}['_handleRootOperation'](_0x88aa55,_0x40b68d){this['_diffRoots']['has'](_0x88aa55['rootName'])?this['_diffRoots']['get'](_0x88aa55['rootName'])['_isAttached']=_0x88aa55['isAdd']:(this['_diffRoots']['set'](_0x88aa55['rootName'],F(_0x88aa55['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x88aa55['rootName'],{}),_0x40b68d&&this['_idsRoots']['set'](_0x88aa55['rootName'],F(_0x88aa55['rootName'],!0x0)));const _0x5eb997=null===_0x88aa55['_authorId']?null:_0x88aa55['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4ac687=this['_touchedRoots']['get'](_0x88aa55['rootName']);_0x4ac687&&_0x4ac687['userId']===_0x5eb997?this['_touchedRoots']['delete'](_0x88aa55['rootName']):this['_touchedRoots']['set'](_0x88aa55['rootName'],{'userId':_0x5eb997,'isAttached':_0x88aa55['isAdd']});}['_handleRootAttributeOperation'](_0x539c0b){const _0x54bea2=this['_diffRootsAttributes']['get'](_0x539c0b['root']['rootName']);null===_0x539c0b['newValue']?delete _0x54bea2[_0x539c0b['key']]:_0x54bea2[_0x539c0b['key']]=_0x539c0b['newValue'];}}function T(_0x4a9543){const _0x347116=F(_0x4a9543['rootName'],_0x4a9543['isAttached']());for(const _0x1c79d4 of _0x4a9543['getChildren']()){const _0x2ee668=_0x1c79d4['_clone'](!0x0);_0x347116['_appendChild'](_0x2ee668);}return _0x347116;}function F(_0x519516,_0xc56297=!0x0){const _0x306ba8=new gt();return _0x306ba8['rootName']=_0x519516,_0x306ba8['_isAttached']=_0xc56297,_0x306ba8['isAttached']=()=>_0x306ba8['_isAttached'],_0x306ba8;}function B(_0x13175c,_0x9f8e1f,_0x473e8f){const _0x453904='elementEnd'==_0x13175c['type']?_0x473e8f['createPositionAt'](_0x13175c['item'],'end'):_0x473e8f['createPositionBefore'](_0x13175c['item']);return _0x473e8f['createPositionFromPath'](_0x9f8e1f,_0x453904['path'],_0x453904['stickiness']);}function J(_0xe669c6,_0x112b3c,_0x155b99){const _0x259e01='elementStart'==_0xe669c6['type']?_0x155b99['createPositionAt'](_0xe669c6['item'],0x0):_0x155b99['createPositionAfter'](_0xe669c6['item']);return _0x155b99['createPositionFromPath'](_0x112b3c,_0x259e01['path'],_0x259e01['stickiness']);}class os extends _0x5c59b1{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3bf025,_0xa364db){super(_0x3bf025),this['focusTracker']=new _0x539dec(),this['keystrokes']=new _0x573fdc(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xa364db),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x414a21({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x194742=_0x3d3b8d=>_0x3d3b8d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x194742),this['keystrokes']['set']('arrowleft',_0x194742),this['keystrokes']['set']('arrowup',_0x194742),this['keystrokes']['set']('arrowdown',_0x194742);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xa2976f){this['revisionNameInputView']['fieldView']['element']['value']=_0xa2976f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xb6517f){const _0x2e54bc=new at(this['locale'],ti),_0x5c0beb=_0x2e54bc['fieldView'];_0x5c0beb['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2c9c3c=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0xb6517f&&(_0x2c9c3c+='\x20('+m(this['locale'],'optional')+')'),(_0x2e54bc['label']=_0x2c9c3c,_0x5c0beb['on']('input',()=>{this['revisionNameInputValue']=_0x5c0beb['element']['value']['trim']();}),_0x2e54bc);}}class f extends _0x26fb00{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2ccd5f=this['editor'],_0x2c6f07=_0x2ccd5f['plugins']['get']('RevisionTracker');_0x2ccd5f['ui']['componentFactory']['add']('revisionHistory',_0x9e5bee=>{const _0x5acd94=_0x43bd05(_0x9e5bee),_0x43bc7a=_0x5acd94['panelView']['children'],_0x5121b8=new _0x11f175(_0x9e5bee),_0x14231e=new te(_0x9e5bee),_0x372712=new _0x1514b3(_0x9e5bee),_0x4beddb=new te(_0x9e5bee),_0x3318a6=new _0x1514b3(_0x9e5bee);return _0x5acd94['bind']('isEnabled')['to'](_0x2c6f07,'isReady',_0x2c6f07,'isEnabled',_0x2ccd5f,'isReadOnly',(_0x6c8630,_0x338863,_0x33029c)=>_0x6c8630&&_0x338863&&!_0x33029c),_0x5acd94['buttonView']['set']({'icon':_0x5d107e,'label':m(_0x9e5bee,'Revision\x20history'),'tooltip':!0x0}),_0x372712['set']({'label':m(_0x9e5bee,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x372712['bind']('isEnabled')['to'](_0x2c6f07,'isReady',_0x2c6f07,'isEnabled',_0x2ccd5f,'isReadOnly',(_0x4b3b48,_0x1f97f4,_0xe9b41e)=>_0x4b3b48&&_0x1f97f4&&!_0xe9b41e),_0x372712['on']('execute',()=>this['_showDialog']()),_0x3318a6['set']({'label':m(_0x9e5bee,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3318a6['bind']('isEnabled')['to'](_0x2c6f07,'isReady',_0x2ccd5f,'isReadOnly',(_0x154b23,_0x5dbfc4)=>_0x154b23&&!_0x5dbfc4),_0x3318a6['on']('execute',()=>{_0x2ccd5f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5acd94['isOpen']=!0x1,_0x2ccd5f['editing']['view']['focus']();}),_0x14231e['children']['add'](_0x372712),_0x4beddb['children']['add'](_0x3318a6),_0x5121b8['role']='menu',_0x5121b8['items']['addMany']([_0x14231e,_0x4beddb]),_0x43bc7a['add'](_0x5121b8),_0x5acd94;}),_0x2ccd5f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x56ca9f=this['editor'],_0xdae823=_0x56ca9f['locale'],_0x29e15b=new _0x37c1b7(_0xdae823),_0x1b44ba=new _0x4572c7(_0xdae823);_0x29e15b['buttonView']['set']({'icon':_0x5d107e,'label':m(_0xdae823,'Revision\x20history')});const _0xd73ee6=new _0x2e24f1(_0xdae823,_0x29e15b),_0x2f0ccc=new _0x1fe456(_0xdae823);_0x2f0ccc['set']({'label':m(_0xdae823,'Save\x20current\x20revision')}),_0x2f0ccc['delegate']('execute')['to'](_0x29e15b),_0x2f0ccc['on']('execute',()=>{this['_showDialog']();}),_0xd73ee6['children']['add'](_0x2f0ccc),_0x1b44ba['items']['add'](_0xd73ee6);const _0x28372f=new _0x2e24f1(_0xdae823,_0x29e15b),_0xcf3db0=new _0x1fe456(_0xdae823);return _0xcf3db0['set']({'label':m(_0xdae823,'Open\x20revision\x20history')}),_0xcf3db0['delegate']('execute')['to'](_0x29e15b),_0xcf3db0['on']('execute',()=>{_0x56ca9f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x28372f['children']['add'](_0xcf3db0),_0x1b44ba['items']['add'](_0x28372f),_0x29e15b['panelView']['children']['add'](_0x1b44ba),_0x29e15b;}['_showDialog'](){const _0x1f01c6=this['editor'],_0x3d5d82=_0x1f01c6['locale'],_0x513668=_0x1f01c6['plugins']['get']('Dialog'),_0x40db8f=_0x1f01c6['plugins']['get']('RevisionTracker');function _0x377503(_0x27f76b){_0x1f01c6['config']['get']('revisionHistory.requireRevisionName')&&''===_0x27f76b['revisionName']?_0x27f76b['revisionNameInputView']['errorText']=m(_0x3d5d82,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1f01c6['plugins']['get'](u)['saveRevision']({'name':_0x27f76b['revisionName']}),_0x513668['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x377503(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x513668['show']({'id':'revisionSave','title':m(_0x3d5d82,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x1f01c6['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x513668['hide']()},{'label':m(_0x1f01c6['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x55d353){_0x55d353['bind']('isEnabled')['to'](_0x40db8f,'isReady',_0x40db8f,'isEnabled',_0x1f01c6,'isReadOnly',(_0xa07813,_0x248f17,_0x46e1fd)=>_0xa07813&&_0x248f17&&!_0x46e1fd);},'onExecute':()=>_0x377503(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x29d57e=this['editor'],_0x3164c6=_0x29d57e['locale'];this['_saveRevisionFormView']=new os(_0x3164c6,_0x29d57e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x5c59b1{['changeId'];['_model'];constructor(_0x12c11b,_0x28b3dd){super(_0x12c11b),this['_model']=_0x28b3dd,this['changeId']=_0x28b3dd['id'];const _0x5b5d08=this['bindTemplate'],_0x37dc1e=m(_0x12c11b,_0x28b3dd['data']['isSuggestion']?'Suggested\x20by':'add'==_0x28b3dd['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x28b3dd['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5b5d08['to']('type',_0x4902e5=>'ck-revision-change__'+_0x4902e5)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x37dc1e}]},{'text':'\x20'+_0x28b3dd['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x3d781(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1918ba){super(),this['id']=_0x1918ba['id']||_0x4e207b(),this['author']=_0x1918ba['author'],this['type']=_0x1918ba['type'],this['data']=_0x1918ba['data']||{},this['rootName']=_0x1918ba['rootName'],this['set']('createdAt',_0x1918ba['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x106255,_0x3c0399){this['newRevisionId']=_0x106255,this['oldRevisionId']=_0x3c0399,this['changes']=new _0x8dad72();}['_setChanges'](_0x4bf353){for(const _0x218b86 of _0x4bf353)this['changes']['add'](_0x218b86);}}const Y={'c':_0xbee4c,'a':_0x30fb6c,'e':_0x48a8b3,'r':_0x2cbc43,'u':_0x22652a};class d extends _0x26fb00{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x134057,_0x788d43,j];}constructor(_0x54dcb3){super(_0x54dcb3),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1aed81,_0x4fc508,_0x20f1de)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x25d85b=>{for(const _0x3571a7 of this['editor']['editing']['view']['document']['roots'])_0x20f1de?_0x25d85b['removeClass']('ck-editor__editable__overlay',_0x3571a7):_0x25d85b['addClass']('ck-editor__editable__overlay',_0x3571a7);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x17e595=>null!==_0x17e595),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x563eba,_0x370c12,_0x13bfc2)=>_0x563eba&&_0x13bfc2?_0x370c12['changes']['getIndex'](_0x13bfc2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x52689f,_0x1d95a0)=>_0x52689f?_0x1d95a0['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x788d43);}['init'](){const _0x235886=this['editor'],_0x19dfa0=new yt(_0x235886,{'direction':'backward'}),_0x4c5817=new yt(_0x235886,{'direction':'forward'});(_0x235886['commands']['add']('showPreviousChange',_0x19dfa0),_0x235886['commands']['add']('showNextChange',_0x4c5817),_0x235886['commands']['add']('restoreRevision',new _t(_0x235886)),this['on']('change:numberOfChanges',()=>{_0x19dfa0['refresh'](),_0x4c5817['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x235886['enableReadOnlyMode']('revision-viewer'),_0x235886['plugins']['has']('WidgetToolbarRepository'))&&_0x235886['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x175e36){await this['loadRevisionData'](_0x175e36);const _0x49caeb={};for(const _0xabaaa3 in _0x175e36['diffData']){if(_0x175e36['diffData'][_0xabaaa3]['attachChange']&&!_0x175e36['diffData'][_0xabaaa3]['attachChange']['isAttached'])continue;const _0x118508=this['_removeRevisionMarkers'](JSON['parse'](_0x175e36['diffData'][_0xabaaa3]['insertions'])),_0x3afffc=this['editor']['editing']['view']['document'],_0x55d59c=new _0x56f6be(_0x3afffc,_0x118508['map'](_0x207a77=>this['_getViewObj'](_0x207a77)));this['editor']['data']['processor']['useFillerType']('marked'),_0x49caeb[_0xabaaa3]=this['editor']['data']['processor']['toData'](_0x55d59c),this['editor']['data']['processor']['useFillerType']('default');}return _0x49caeb;}async['getRevisionRootsAttributes'](_0x39632f){await this['loadRevisionData'](_0x39632f);const _0x4f6d20={};for(const _0x3f3774 in _0x39632f['diffData'])_0x39632f['diffData'][_0x3f3774]['attachChange']&&!_0x39632f['diffData'][_0x3f3774]['attachChange']['isAttached']||(_0x4f6d20[_0x3f3774]=_0x39632f['diffData'][_0x3f3774]['attributesAfter']||{});return _0x4f6d20;}['_removeRevisionMarkers'](_0xd3abca){return(_0xd3abca=_0xd3abca['filter'](_0x3b25a1=>!_0x3b25a1['name']||'revision-start'!==_0x3b25a1['name']&&'revision-end'!==_0x3b25a1['name']))['forEach'](_0x2bc223=>{'string'!=typeof _0x2bc223&&(_0x2bc223['children']=this['_removeRevisionMarkers'](_0x2bc223['children']),_0x2bc223['attributes']=_0x2bc223['attributes']['filter'](_0x415547=>!_0x415547[0x0]['startsWith']('data-revision-')));}),_0xd3abca;}async['compare'](_0x1615d5,_0x16b0e9,_0x4771dc=!0x1){if(!this['isEnabled'])return;const _0x230185=this['diff'],_0x5c9956=this['repository'],_0x2d5796='string'==typeof _0x1615d5?_0x5c9956['getRevision'](_0x1615d5):_0x1615d5,_0x23eb21='string'==typeof _0x16b0e9?_0x5c9956['getRevision'](_0x16b0e9):_0x16b0e9,_0xb398dc=_0x2d5796['id'],_0x4db3e5=_0x23eb21?_0x23eb21['id']:null;if(!_0x4771dc&&this['diff']&&this['diff']['newRevisionId']===_0xb398dc&&this['diff']['oldRevisionId']===_0x4db3e5)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0xb398dc,_0x4db3e5);const _0x1e878c=this['_getRevisionsRange'](_0x2d5796,_0x23eb21,!0x0)['map'](_0x49095f=>this['loadRevisionData'](_0x49095f));return _0x1e878c['push'](new Promise(_0x305428=>{setTimeout(_0x305428,0x14);})),Promise['all'](_0x1e878c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xde575b=this['_getDiff'](_0xb398dc,_0x4db3e5);for(const _0x177838 of _0xde575b['changes'])this['_changeIdToChange']['set'](_0x177838['id'],_0x177838);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x389803=>{for(const _0x239c64 of this['editor']['model']['document']['getRootNames']())_0x389803['detachRoot'](_0x239c64);for(const _0x1f9843 of Object['keys'](_0xde575b['model'])){const _0xfb2ebe=_0x389803['addRoot'](_0x1f9843);for(const _0xff26da of Object['keys'](_0xde575b['attributes'][_0x1f9843]))_0x389803['setAttribute'](_0xff26da,_0xde575b['attributes'][_0x1f9843][_0xff26da],_0xfb2ebe);_0x389803['insert'](_0xde575b['model'][_0x1f9843],_0xfb2ebe,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xde575b['changes'])),this['isReady']=!0x0;})['catch'](_0x33d716=>{console['error'](_0x33d716),this['_cleanUp'](),_0x230185&&(this['diff']=_0x230185),this['isReady']=!0x0;});}['addRevisionData'](_0x221d0b,_0x32b7f3){const _0x1301c7=this['repository']['createRevision'](_0x221d0b);return _0x1301c7['on']('_update',(_0x162a5f,_0x494f91,_0x221531)=>_0x32b7f3(_0x494f91,_0x221531,_0x1301c7)),this['repository']['addRevision'](_0x1301c7),_0x1301c7;}['loadRevisionData'](_0x943f0a){if(!_0x943f0a||_0x943f0a['diffData'])return Promise['resolve']();{const _0x45c930=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x45c930,'revisionId':_0x943f0a['id']})['then'](_0x29ec72=>{_0x943f0a['_update']({'diffData':_0x29ec72['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x13dcf8=>{for(const _0x59e8e6 of this['editor']['model']['document']['getRootNames']())_0x13dcf8['detachRoot'](_0x59e8e6);});}['_sortAndFilterDiffChanges'](_0x586627){const _0x478871=[],_0x2f1698=new Map();for(const _0x181540 of this['editor']['model']['document']['getRootNames']()){const _0x1031c6=this['editor']['editing']['view']['getDomRoot'](_0x181540);if(!_0x1031c6)continue;const _0x3efd08=_0x1031c6['getClientRects']()['item'](0x0);_0x3efd08&&(_0x478871['push'](_0x181540),_0x2f1698['set'](_0x181540,_0x3efd08));}return _0x478871['sort']((_0x8192b1,_0x69f6ef)=>{const _0x28906a=_0x2f1698['get'](_0x8192b1),_0x35bbff=_0x2f1698['get'](_0x69f6ef);return _0x28906a['y']-_0x35bbff['y']||_0x28906a['x']-_0x35bbff['x'];}),(_0x586627=_0x586627['filter'](_0x5256e0=>_0x478871['includes'](_0x5256e0['rootName'])))['sort']((_0x93c264,_0x3f8d47)=>_0x478871['indexOf'](_0x93c264['rootName'])-_0x478871['indexOf'](_0x3f8d47['rootName'])),_0x586627;}['_makeTape'](_0x3dccd5){const _0x200fae=Array['from'](_0x3dccd5['markers'])['filter'](([_0x1a0a23,_0x130ada])=>_0x1a0a23['startsWith']('revision:')&&!_0x130ada['isCollapsed']),_0x3114ad=Array['from'](this['editor']['model']['createRangeIn'](_0x3dccd5)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x200fae['length'])for(const _0x497014 of _0x3114ad){const [_0xc95793,_0x1caba0]=_0x200fae[0x0],[,_0x1cc7ee,_0x551465]=_0xc95793['split'](':');if(_0x1caba0['end']['isEqual'](_0x497014['nextPosition'])&&_0x200fae['shift'](),(_0x497014['previousPosition']['isEqual'](_0x1caba0['start'])||_0x497014['previousPosition']['isAfter'](_0x1caba0['start']))&&('insertion'==_0x1cc7ee?_0x497014['isAdded']={'userId':_0x551465}:'deletion'==_0x1cc7ee&&(_0x497014['isRemoved']={'userId':_0x551465})),0x0==_0x200fae['length'])break;}return _0x3114ad;}['_refreshStartEndIndex'](_0x53c071){const _0x430775=new Map();for(let _0x2b8908=0x0;_0x2b8908<_0x53c071['length'];_0x2b8908++)'text'===_0x53c071[_0x2b8908]['type']?(_0x53c071[_0x2b8908]['item']['startIndex']=_0x2b8908,_0x53c071[_0x2b8908]['item']['endIndex']=_0x2b8908):('elementStart'===_0x53c071[_0x2b8908]['type']?_0x53c071[_0x2b8908]['item']['startIndex']=_0x2b8908:'elementEnd'===_0x53c071[_0x2b8908]['type']&&(_0x53c071[_0x2b8908]['item']['endIndex']=_0x2b8908),_0x430775['set'](_0x53c071[_0x2b8908]['id'],_0x2b8908));for(const _0x5d1e88 of _0x430775['values']())'elementStart'===_0x53c071[_0x5d1e88]['type']?_0x53c071[_0x5d1e88]['item']['endIndex']=_0x430775['get'](_0x53c071[_0x5d1e88]['pairId']):'elementEnd'===_0x53c071[_0x5d1e88]['type']&&(_0x53c071[_0x5d1e88]['item']['startIndex']=_0x430775['get'](_0x53c071[_0x5d1e88]['pairId']));}['_processTape'](_0x3b47d1){for(let _0x6e5bb8=0x0;_0x6e5bb8<_0x3b47d1['length'];_0x6e5bb8++){if('elementStart'===_0x3b47d1[_0x6e5bb8]['type'])_0x3b47d1[_0x6e5bb8]['item']['startIndex']=_0x6e5bb8;else{if('elementEnd'===_0x3b47d1[_0x6e5bb8]['type']){_0x3b47d1[_0x6e5bb8]['item']['endIndex']=_0x6e5bb8;const _0x36a109=_0x3b47d1[_0x6e5bb8]['item']['startIndex'];_0x3b47d1[_0x36a109]['pairId']=_0x3b47d1[_0x6e5bb8]['id'],_0x3b47d1[_0x6e5bb8]['pairId']=_0x3b47d1[_0x36a109]['id'];}else _0x3b47d1[_0x6e5bb8]['item']['startIndex']=_0x6e5bb8,_0x3b47d1[_0x6e5bb8]['item']['endIndex']=_0x6e5bb8,_0x3b47d1[_0x6e5bb8]['pairId']=null;}_0x3b47d1[_0x6e5bb8]['markersStart']||(_0x3b47d1[_0x6e5bb8]['markersStart']=[],_0x3b47d1[_0x6e5bb8]['markersEnd']=[]);}}['_markInsertions'](_0x49bc16,_0x2ed2c9){const _0x55d603=_0x49bc16['filter'](_0x4fdf94=>!_0x4fdf94['isAdded']);for(let _0x3dadc2=0x0;_0x3dadc2<_0x2ed2c9['length'];_0x3dadc2++)_0x2ed2c9[_0x3dadc2]['isAdded']&&(_0x55d603[_0x3dadc2]['isAdded']=_0x2ed2c9[_0x3dadc2]['isAdded']);}['_makeModelFromViewString'](_0x2f4e92){const _0x526282=JSON['parse'](_0x2f4e92),_0x28a648=this['editor']['editing']['view']['document'],_0x5ad7cb=new _0x56f6be(_0x28a648,_0x526282['map'](_0x31285d=>this['_getViewObj'](_0x31285d)));return this['editor']['data']['toModel'](_0x5ad7cb);}['_getViewObj'](_0xc53668){const _0x3de021=this['editor']['editing']['view']['document'];if('string'==typeof _0xc53668)return new _0xc3b70e(_0x3de021,_0xc53668);{const _0x16e165=_0xc53668['children']['map'](_0x4e85dd=>this['_getViewObj'](_0x4e85dd));return new(Y[_0xc53668['type']]||_0x42d694)(_0x3de021,_0xc53668['name'],_0xc53668['attributes'],_0x16e165);}}['_getDiff'](_0x218b9c,_0x5be207=null){const _0x45c922=this['repository']['getRevision'](_0x218b9c),_0xece014=_0x5be207?this['repository']['getRevision'](_0x5be207):null,_0x377871=this['_getRevisionsRange'](_0x45c922,_0xece014),_0x101292=_0x377871[_0x377871['length']-0x1],_0x47687f=new Map(),_0x3c2347={'model':{},'attributes':{},'changes':[]},_0x34e228=new Set(),_0x70ead9=new Map();for(let _0xd23f62=_0x377871['length']-0x1;_0xd23f62>=0x0;_0xd23f62--){const _0x508628=_0x377871[_0xd23f62];for(const _0x17d41e of Object['keys'](_0x508628['diffData']))if(_0x508628['diffData'][_0x17d41e]['attachChange']){const _0x2d4da2=_0x508628['diffData'][_0x17d41e]['attachChange'];_0x2d4da2['isAttached']?(_0x34e228['add'](_0x17d41e),_0x70ead9['has'](_0x17d41e)&&_0x70ead9['get'](_0x17d41e)['userId']==_0x2d4da2['userId']?_0x70ead9['delete'](_0x17d41e):_0x70ead9['set'](_0x17d41e,_0x2d4da2)):_0x70ead9['has'](_0x17d41e)?(_0x34e228['delete'](_0x17d41e),_0x70ead9['delete'](_0x17d41e)):(_0x34e228['add'](_0x17d41e),_0x70ead9['set'](_0x17d41e,_0x2d4da2));}else _0x34e228['add'](_0x17d41e);}for(const _0x4ff11b of _0x34e228){const _0x288620=_0x70ead9['has'](_0x4ff11b)&&!_0x70ead9['get'](_0x4ff11b)['isAttached'];let _0x1deebc=_0x288620?_0x377871['length']-0x1:0x0;const _0xb37d18=_0x288620?-0x1:0x1;for(;_0x377871[_0x1deebc];){const _0x251894=_0x377871[_0x1deebc];if(_0x251894['diffData'][_0x4ff11b]){const _0x579097=_0x288620?_0x251894['diffData'][_0x4ff11b]['attributesBefore']:_0x251894['diffData'][_0x4ff11b]['attributesAfter'];_0x3c2347['attributes'][_0x4ff11b]=_0x579097?_0x22418a(_0x579097):{};break;}_0x1deebc+=_0xb37d18;}}for(const _0x4dc4bf of _0x377871){_0x4dc4bf['model']={};for(const _0x29558b of _0x4dc4bf['authors'])_0x47687f['set'](_0x29558b['id'],_0x29558b);for(const _0x565fcb of _0x34e228){const _0x2d26f4=_0x4dc4bf['diffData'][_0x565fcb]?_0x4dc4bf['diffData'][_0x565fcb]['insertions']:'[]',_0x1e47a3=_0x4dc4bf['diffData'][_0x565fcb]?_0x4dc4bf['diffData'][_0x565fcb]['deletions']:'[]';_0x4dc4bf['model'][_0x565fcb]={'insertions':this['_makeModelFromViewString'](_0x2d26f4),'deletions':this['_makeModelFromViewString'](_0x1e47a3)};}}for(const _0x3dbb4c of _0x34e228){let _0x23eb75=null,_0x594894=0x0;const _0x279861=new Map(Array['from'](_0x45c922['model'][_0x3dbb4c]['insertions']['markers'])['filter'](([_0xa75941])=>!_0xa75941['startsWith']('revision:')));let _0x2a149b=0x0;for(const _0x4fc351 of _0x377871){const _0x2beea3=this['_makeTape'](_0x4fc351['model'][_0x3dbb4c]['insertions']);_0x4fc351==_0x45c922?(_0x23eb75=_0x2beea3,_0x594894=_0x23eb75['length'],_0x23eb75['forEach'](_0x2e1082=>{_0x2e1082['id']=_0x2a149b++;}),this['_processTape'](_0x23eb75)):this['_markInsertions'](_0x23eb75,_0x2beea3);const _0x505391=_0x23eb75['filter'](_0x563e11=>!_0x563e11['isAdded'])['map'](_0x30e665=>_0x30e665['id']);let _0x313212=0x0;const _0x44220c=this['_makeTape'](_0x4fc351['model'][_0x3dbb4c]['deletions']);_0x44220c['forEach'](_0x4debb2=>{_0x4debb2['isRemoved']?_0x4debb2['id']=_0x594894++:_0x4debb2['id']=_0x505391[_0x313212++];}),this['_processTape'](_0x44220c),this['_setDistance'](_0x23eb75,'isAdded'),this['_setDistance'](_0x44220c,'isRemoved'),_0x4fc351==_0x45c922&&this['_markMarkers'](_0x23eb75,_0x279861),_0x23eb75=this['_joinTapes'](_0x23eb75,_0x44220c),this['_refreshStartEndIndex'](_0x23eb75),this['_setDistance'](_0x23eb75,'isRemoved');}_0x23eb75=_0x23eb75['filter'](_0x27e0ea=>!(_0x27e0ea['isAdded']&&_0x27e0ea['isRemoved']));const _0x2e2890=new Map(_0x101292['model'][_0x3dbb4c]['deletions']['markers']),_0x444e2d=new Set(_0x279861['keys']());for(const _0xe9b14c of _0x2e2890['keys']())_0x444e2d['delete'](_0xe9b14c);this['_markSuggestions'](_0x23eb75,_0x444e2d),this['_fixObsoleteTags'](_0x23eb75),_0x23eb75=this['_removeMissingPairs'](_0x23eb75),_0x23eb75=this['_markMismatchedRemovedTags'](_0x23eb75),_0x23eb75=this['_removeUnsupportedChanges'](_0x23eb75);const {root:_0x14ca84,changes:_0xac9205}=this['_makeModelFromTape'](_0x23eb75,_0x47687f,_0x3dbb4c);_0x3c2347['model'][_0x3dbb4c]=_0x14ca84;const _0x17cd68=_0x70ead9['get'](_0x3dbb4c);if(_0x17cd68){const _0x31ba3e=_0x47687f['get'](_0x17cd68['userId']),_0x4f9153=new r({'author':_0x31ba3e,'type':_0x17cd68['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3dbb4c});_0xac9205['unshift'](_0x4f9153),_0x3c2347['attributes'][_0x3dbb4c]['revisionHistoryAttachChange']=_0x4f9153['id'];}_0x3c2347['changes']=_0x3c2347['changes']['concat'](_0xac9205);}return _0x3c2347;}['_markMarkers'](_0x5677b6,_0x4e5170){for(let _0x3b7456=0x0;_0x3b7456<_0x5677b6['length'];_0x3b7456++)for(const [_0x4a1f28,_0x4fa578]of _0x4e5170)_0x4fa578['start']['isEqual'](_0x5677b6[_0x3b7456]['previousPosition'])&&_0x5677b6[_0x3b7456]['markersStart']['push'](_0x4a1f28),_0x4fa578['end']['isEqual'](_0x5677b6[_0x3b7456]['nextPosition'])&&_0x5677b6[_0x3b7456]['markersEnd']['push'](_0x4a1f28);}['_joinTapes'](_0x59f059,_0x2be81e){let _0x50346d=[],_0xfa335a=0x0,_0x41085b=0x0;for(;_0xfa335a<_0x59f059['length']||_0x41085b<_0x2be81e['length'];){const _0x108270=_0x59f059[_0xfa335a]||{},_0x2dc561=_0x2be81e[_0x41085b]||{};if(_0x108270['id']==_0x2dc561['id'])_0xfa335a++,_0x41085b++,_0x50346d['push'](_0x108270);else{if(_0x2dc561['isRemoved']&&_0x108270['isAdded']){const {commonTape:_0x3055e9,iEnd:_0x58bdf5,jEnd:_0x431d75}=this['_threeWayMerge'](_0x59f059,_0xfa335a,_0x2be81e,_0x41085b);_0x50346d=_0x50346d['concat'](_0x3055e9),_0xfa335a=_0x58bdf5,_0x41085b=_0x431d75;}else _0x2dc561['isRemoved']?(_0x41085b++,_0x50346d['push'](_0x2dc561)):(_0xfa335a++,_0x50346d['push'](_0x108270));}}return _0x50346d;}['_markSuggestions'](_0x2efe48,_0x2d1c0d){const _0x2d4d01=[];for(let _0x416d63=0x0;_0x416d63<_0x2efe48['length'];_0x416d63++){for(let _0x3f3664=0x0;_0x3f3664<_0x2efe48[_0x416d63]['markersStart']['length'];_0x3f3664++){const _0xdfa175=_0x2efe48[_0x416d63]['markersStart'][_0x3f3664];if(!_0x2d1c0d['has'](_0xdfa175))continue;const {group:_0x513424,type:_0x35e6df,authorId:_0x1d120a}=_0x44c982(_0xdfa175);'revision-suggestion'!=_0x513424||'insertion'!=_0x35e6df&&'deletion'!=_0x35e6df||(_0x2d4d01['unshift']({'type':_0x35e6df,'name':_0xdfa175,'userId':_0x1d120a}),_0x2efe48[_0x416d63]['markersStart']['splice'](_0x3f3664,0x1),_0x3f3664--);}_0x20c8a5(_0x2efe48[_0x416d63]);for(let _0x36b7cd=0x0;_0x36b7cd<_0x2efe48[_0x416d63]['markersEnd']['length'];_0x36b7cd++){const _0x5fe69=_0x2efe48[_0x416d63]['markersEnd'][_0x36b7cd];if(!_0x2d1c0d['has'](_0x5fe69))continue;const {group:_0x3aec5e,type:_0xb0e223}=_0x44c982(_0x5fe69);if('revision-suggestion'!=_0x3aec5e||'insertion'!=_0xb0e223&&'deletion'!=_0xb0e223)continue;_0x2efe48[_0x416d63]['markersEnd']['splice'](_0x36b7cd,0x1),_0x36b7cd--;const _0xaaf03c=_0x2d4d01['findIndex'](_0x5a1d48=>_0x5a1d48['name']==_0x5fe69);_0xaaf03c>-0x1&&_0x2d4d01['splice'](_0xaaf03c,0x1);}}function _0x44c982(_0x528cc4){const _0x51ec30=_0x528cc4['split'](':');return{'group':_0x51ec30[0x0],'type':_0x51ec30[0x1],'subType':_0x51ec30['length']>=0x5?_0x51ec30[0x2]:null,'id':_0x51ec30['length']<0x5?_0x51ec30[0x2]:_0x51ec30[0x3],'authorId':_0x51ec30['length']<0x5?_0x51ec30[0x3]:_0x51ec30[0x4],'markerCount':0x6==_0x51ec30['length']?_0x51ec30[0x5]:null};}function _0x20c8a5(_0x5e4476){for(let _0x5a57eb=0x0;_0x5a57eb<_0x2d4d01['length'];_0x5a57eb++){if(_0x5e4476['isAdded']&&'insertion'==_0x2d4d01[_0x5a57eb]['type'])return _0x5e4476['isAddSuggestion']=_0x2d4d01[_0x5a57eb],void delete _0x5e4476['isAdded'];if(!_0x5e4476['isAdded']&&!_0x5e4476['isRemoved']&&'deletion'==_0x2d4d01[_0x5a57eb]['type'])return void(_0x5e4476['isRemoveSuggestion']=_0x2d4d01[_0x5a57eb]);}}}['_setDistance'](_0x94a7a6,_0x3c3e9a){let _0x2fcdd6=0x0,_0x16ac77=!0x1;const _0x428516=new Map();for(const _0x439de3 of _0x94a7a6)_0x439de3[_0x3c3e9a]?_0x16ac77&&(_0x2fcdd6++,_0x16ac77=!0x1):(_0x2fcdd6++,_0x16ac77=!0x0),_0x428516['set'](_0x439de3['id'],_0x2fcdd6);for(let _0x757246=0x0;_0x757246<_0x94a7a6['length'];_0x757246++){if('isRemoved'==_0x3c3e9a&&_0x94a7a6[_0x757246]['isAdded']||'isAdded'==_0x3c3e9a&&_0x94a7a6[_0x757246]['isRemoved'])continue;if('text'==_0x94a7a6[_0x757246]['type']){_0x94a7a6[_0x757246]['distance']=0x0;continue;}const _0x55e113=_0x428516['get'](_0x94a7a6[_0x757246]['pairId']),_0x7aa63d=_0x428516['get'](_0x94a7a6[_0x757246]['id']);_0x94a7a6[_0x757246]['distance']=_0x55e113-_0x7aa63d;}}['_getRevisionsRange'](_0x3b2f65,_0x502fdb,_0x3bf153=!0x1){const _0x40bd8b=[];let _0x16dc27=this['repository']['getIndex'](_0x3b2f65),_0x4c4d52=this['repository']['getIndex'](_0x502fdb);for(-0x1==_0x4c4d52&&(_0x4c4d52=this['repository']['_revisions']['length'],_0x3bf153=!0x1);_0x16dc27<_0x4c4d52;)_0x40bd8b['push'](this['repository']['getRevision'](_0x16dc27)),_0x16dc27++;return _0x3bf153&&_0x40bd8b['push'](this['repository']['getRevision'](_0x16dc27)),_0x40bd8b;}['_threeWayMerge'](_0x375635,_0x1e1a62,_0xb0f639,_0x8b59af){const _0x27102a=this['editor']['model']['schema'];let _0xbe02ba=_0x1e1a62;for(;_0x375635[_0xbe02ba]&&_0x375635[_0xbe02ba]['isAdded'];)_0xbe02ba++;let _0xa9bff4=_0x8b59af;for(;_0xb0f639[_0xa9bff4]&&_0xb0f639[_0xa9bff4]['isRemoved'];)_0xa9bff4++;_0x21ad57(_0x375635,_0x1e1a62,_0xbe02ba),_0x21ad57(_0xb0f639,_0x8b59af,_0xa9bff4);const _0x346f27=_0xb0f639['slice'](_0x8b59af,_0xa9bff4)['concat'](_0x375635['slice'](_0x1e1a62,_0xbe02ba));return _0x346f27['sort']((_0x1a0f5f,_0x5cd3f0)=>_0x1a0f5f['side']!=_0x5cd3f0['side']?_0x1a0f5f['side']-_0x5cd3f0['side']:_0x1a0f5f['level']!=_0x5cd3f0['level']?_0x1a0f5f['level']-_0x5cd3f0['level']:_0x1a0f5f['distance']!=_0x5cd3f0['distance']?_0x5cd3f0['distance']-_0x1a0f5f['distance']:!!_0x1a0f5f['isAdded']!=!!_0x5cd3f0['isAdded']?-0x1==_0x1a0f5f['side']||0x0==_0x1a0f5f['side']?_0x1a0f5f['isAdded']?-0x1:0x1:_0x1a0f5f['isAdded']?0x1:-0x1:_0x1a0f5f['index']-_0x5cd3f0['index']),{'commonTape':_0x346f27,'iEnd':_0xbe02ba,'jEnd':_0xa9bff4};function _0x21ad57(_0x45c19d,_0x3a54f7,_0x833fd3){let _0x32c4b9=-0x1,_0x4b3d80=Number['POSITIVE_INFINITY'],_0x3fd4e6=!0x0;for(let _0x4e3fbb=_0x3a54f7;_0x4e3fbb<_0x833fd3;_0x4e3fbb++)if(_0x27102a['isInline'](_0x45c19d[_0x4e3fbb]['item'])||(_0x3fd4e6=!0x1),_0x45c19d[_0x4e3fbb]['item']['startIndex']<_0x3a54f7&&(_0x32c4b9=_0x4e3fbb),_0x45c19d[_0x4e3fbb]['item']['endIndex']>=_0x833fd3){_0x4b3d80=_0x4e3fbb;break;}_0x3fd4e6&&(_0x32c4b9=_0x833fd3-0x1);for(let _0x47629d=_0x3a54f7;_0x47629d<_0x833fd3;_0x47629d++)_0x45c19d[_0x47629d]['side']=_0x47629d<=_0x32c4b9?-0x1:_0x47629d<_0x4b3d80?0x0:0x1,_0x45c19d[_0x47629d]['index']=_0x47629d;let _0x12cf3c=0x0;for(let _0x4b2850=_0x3a54f7;_0x4b2850<=_0x32c4b9;_0x4b2850++)0x0==_0x45c19d[_0x4b2850]['distance']?_0x45c19d[_0x4b2850]['level']=_0x12cf3c:(_0x12cf3c++,_0x45c19d[_0x4b2850]['level']=_0x12cf3c,_0x12cf3c++);for(let _0x5b3048=_0x3a54f7;_0x5b3048<_0x833fd3;_0x5b3048++)0x0==_0x45c19d[_0x5b3048]['side']&&(_0x45c19d[_0x5b3048]['level']=_0x12cf3c);_0x12cf3c=0x0;for(let _0x534bba=_0x833fd3-0x1;_0x534bba>=_0x4b3d80;_0x534bba--)0x0==_0x45c19d[_0x534bba]['distance']?_0x45c19d[_0x534bba]['level']=_0x12cf3c:(_0x12cf3c--,_0x45c19d[_0x534bba]['level']=_0x12cf3c,_0x12cf3c--);}}['_fixObsoleteTags'](_0x5e82a5){const _0x44cd62=new Map(),_0xfc7667=this['editor']['model']['schema'];for(let _0x1cc1cf=0x1;_0x1cc1cf<_0x5e82a5['length'];_0x1cc1cf++){let _0x367c3e,_0x27b5d7,_0x3b7245;const _0x169856=_0x5e82a5[_0x1cc1cf],_0x2956d4=_0x5e82a5[_0x1cc1cf-0x1];if('text'==_0x169856['type'])continue;if(_0x169856['type']!=_0x2956d4['type'])continue;if(!_0xfc7667['isBlock'](_0x2956d4['item'])||_0xfc7667['isLimit'](_0x2956d4['item']))continue;if(!_0xfc7667['isBlock'](_0x169856['item'])||_0xfc7667['isLimit'](_0x169856['item']))continue;if((_0x5e82a5[_0x1cc1cf]['isAdded']||_0x5e82a5[_0x1cc1cf]['isAddSuggestion'])&&_0x5e82a5[_0x1cc1cf-0x1]['isRemoved'])_0x367c3e=_0x5e82a5[_0x1cc1cf],_0x27b5d7=_0x5e82a5[_0x1cc1cf-0x1],_0x3b7245=_0x1cc1cf-0x1;else{if(!_0x5e82a5[_0x1cc1cf]['isRemoved']||!_0x5e82a5[_0x1cc1cf-0x1]['isAdded']&&!_0x5e82a5[_0x1cc1cf-0x1]['isAddSuggestion'])continue;_0x367c3e=_0x5e82a5[_0x1cc1cf-0x1],_0x27b5d7=_0x5e82a5[_0x1cc1cf],_0x3b7245=_0x1cc1cf;}const _0x569e78=_0x367c3e['level']==_0x27b5d7['level'],_0xdc9a30=Math['abs'](_0x367c3e['level'])<Math['abs'](_0x27b5d7['level'])&&0x0==_0x27b5d7['distance'];(_0x569e78||_0xdc9a30)&&(_0x44cd62['set'](_0x27b5d7['id'],_0x367c3e['id']),_0x5e82a5['splice'](_0x3b7245,0x1),_0x1cc1cf--,_0x367c3e['isAdded']=!0x1);}for(let _0x299ecb=0x0;_0x299ecb<_0x5e82a5['length'];_0x299ecb++)_0x44cd62['has'](_0x5e82a5[_0x299ecb]['pairId'])&&(_0x5e82a5[_0x299ecb]['pairId']=_0x44cd62['get'](_0x5e82a5[_0x299ecb]['pairId']));}['_removeMissingPairs'](_0x42775e){const _0x2c04c9=new Set(_0x42775e['map'](_0x4739cc=>_0x4739cc['id']));for(let _0x7cf985=0x0;_0x7cf985<_0x42775e['length'];_0x7cf985++)_0x2c04c9['has'](_0x42775e[_0x7cf985]['pairId'])||0x0==_0x42775e[_0x7cf985]['distance']||(_0x42775e[_0x7cf985]['isIncorrect']=!0x0);return _0x42775e['filter'](_0x33e819=>!_0x33e819['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5a14f8){const _0x2fb6af=new Set();for(let _0x172903=0x0;_0x172903<_0x5a14f8['length'];_0x172903++){if(_0x2fb6af['has'](_0x5a14f8[_0x172903]['id'])&&_0x5a14f8[_0x172903]['isRemoved']&&(_0x5a14f8[_0x172903]['isIncorrect']=!0x0),_0x5a14f8[_0x172903]['isIncorrect'])continue;if(0x0==_0x5a14f8[_0x172903]['distance'])continue;if('elementStart'!=_0x5a14f8[_0x172903]['type'])continue;if(null==_0x5a14f8[_0x172903]['pairId'])continue;let _0x495fd1=_0x172903+0x1,_0x20005b=0x0;for(;_0x5a14f8[_0x495fd1]['id']!=_0x5a14f8[_0x172903]['pairId'];)'elementStart'==_0x5a14f8[_0x495fd1]['type']?_0x20005b++:'elementEnd'==_0x5a14f8[_0x495fd1]['type']&&_0x20005b--,_0x495fd1++;if(0x0!=_0x20005b){if(_0x5a14f8[_0x172903]['isRemoved'])_0x5a14f8[_0x172903]['isIncorrect']=!0x0;else{for(;_0x495fd1!=_0x172903;)_0x5a14f8[_0x495fd1]['isRemoved']&&0x0!=_0x5a14f8[_0x495fd1]['distance']&&(_0x5a14f8[_0x495fd1]['isIncorrect']=!0x0,_0x2fb6af['add'](_0x5a14f8[_0x495fd1]['pairId'])),_0x495fd1--;}}}return _0x5a14f8['filter'](_0x39a14d=>!_0x39a14d['isIncorrect']);}['_removeUnsupportedChanges'](_0x4d127a){const _0x564df8=this['editor']['model']['schema'];for(let _0xc96b55=0x0;_0xc96b55<_0x4d127a['length'];_0xc96b55++){if(!(_0x4d127a[_0xc96b55]['isAdded']||_0x4d127a[_0xc96b55]['isAddSuggestion']||_0x4d127a[_0xc96b55]['isRemoved']||_0x4d127a[_0xc96b55]['isRemoveSuggestion']))continue;if(0x0==_0x4d127a[_0xc96b55]['distance'])continue;const _0x14e051=_0x4d127a[_0xc96b55]['item'];_0x564df8['isBlock'](_0x14e051)||_0x564df8['isLimit'](_0x14e051)||(_0x4d127a[_0xc96b55]['isAdded']&&delete _0x4d127a[_0xc96b55]['isAdded'],_0x4d127a[_0xc96b55]['isAddSuggestion']&&delete _0x4d127a[_0xc96b55]['isAddSuggestion'],_0x4d127a[_0xc96b55]['isRemoveSuggestion']&&delete _0x4d127a[_0xc96b55]['isRemoveSuggestion'],_0x4d127a[_0xc96b55]['isRemoved']&&(_0x4d127a[_0xc96b55]['isIncorrect']=!0x0));}return _0x4d127a['filter'](_0xc79cea=>!_0xc79cea['isIncorrect']);}['_makeModelFromTape'](_0x5f1936,_0x5e7781,_0x3d9038){const _0x214bbd=new gt(),_0x13f1de=[],_0x5e54bc=new Map(),_0x4b8005=this['editor']['model'],_0x48f758=_0x4b8005['schema'],_0x5c7a37=[_0x214bbd],_0x45689c={},_0x11e2cf={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5ced17=null;const _0x30456d=[0x0];for(let _0x8b81b0=0x0;_0x8b81b0<_0x5f1936['length'];_0x8b81b0++)if('elementStart'===_0x5f1936[_0x8b81b0]['type']){_0x5f1936[_0x8b81b0]['previousPosition']=_0x4b8005['createPositionFromPath'](_0x214bbd,_0x30456d);const _0x547745=new ut(_0x5f1936[_0x8b81b0]['item']['name'],_0x5f1936[_0x8b81b0]['item']['getAttributes']());_0x5c7a37[0x0]['_appendChild'](_0x547745),_0x30456d['push'](0x0),_0x5c7a37['unshift'](_0x547745),_0x5f1936[_0x8b81b0]['nextPosition']=_0x4b8005['createPositionFromPath'](_0x214bbd,_0x30456d);}else'elementEnd'===_0x5f1936[_0x8b81b0]['type']?(_0x5c7a37['shift'](),_0x5f1936[_0x8b81b0]['previousPosition']=_0x4b8005['createPositionFromPath'](_0x214bbd,_0x30456d),_0x30456d['pop'](),_0x30456d[_0x30456d['length']-0x1]++,_0x5f1936[_0x8b81b0]['nextPosition']=_0x4b8005['createPositionFromPath'](_0x214bbd,_0x30456d)):(_0x5f1936[_0x8b81b0]['previousPosition']=_0x4b8005['createPositionFromPath'](_0x214bbd,_0x30456d),_0x5ced17?_0x5ced17['_data']+=_0x5f1936[_0x8b81b0]['item']['data']:_0x5ced17=new wt(_0x5f1936[_0x8b81b0]['item']['data'],_0x5f1936[_0x8b81b0]['item']['getAttributes']()),_0x5f1936[_0x8b81b0+0x1]&&'text'===_0x5f1936[_0x8b81b0+0x1]['type']&&_0x25cb49(_0x5ced17,_0x5f1936[_0x8b81b0+0x1]['item'])||(_0x5c7a37[0x0]['_appendChild'](_0x5ced17),_0x5ced17=null),_0x30456d[_0x30456d['length']-0x1]+=_0x5f1936[_0x8b81b0]['item']['offsetSize'],_0x5f1936[_0x8b81b0]['nextPosition']=_0x4b8005['createPositionFromPath'](_0x214bbd,_0x30456d));for(let _0x4aa88d=0x0;_0x4aa88d<_0x5f1936['length'];_0x4aa88d++){const _0xb20e42=_0x5f1936[_0x4aa88d]['previousPosition'],_0x2c201c=_0x5f1936[_0x4aa88d]['nextPosition'];for(const _0x17e04e of _0x5f1936[_0x4aa88d]['markersStart'])_0x5e54bc['set'](_0x17e04e,{'start':_0xb20e42,'end':null});_0x12bcc8('isRemoveSuggestion',_0x4aa88d,_0xb20e42,_0x2c201c),_0x12bcc8('isAddSuggestion',_0x4aa88d,_0xb20e42,_0x2c201c),_0x12bcc8('isRemoved',_0x4aa88d,_0xb20e42,_0x2c201c),_0x12bcc8('isAdded',_0x4aa88d,_0xb20e42,_0x2c201c);for(const _0x3d2290 of _0x5f1936[_0x4aa88d]['markersEnd']){_0x5e54bc['get'](_0x3d2290)['end']=_0x2c201c;}}for(const [_0x50a0ab,_0x2dc001]of _0x5e54bc){const _0x5898b6=this['editor']['model']['createRange'](_0x2dc001['start'],_0x2dc001['end']);_0x214bbd['markers']['set'](_0x50a0ab,_0x5898b6);}return _0x13f1de['sort']((_0x416b42,_0x5ca3a5)=>{const _0x149cf0=_0x214bbd['markers']['get']('revision:'+_0x416b42['id']),_0xb23c5e=_0x214bbd['markers']['get']('revision:'+_0x5ca3a5['id']);return _0x149cf0['start']['isBefore'](_0xb23c5e['start'])?-0x1:_0x149cf0['start']['isAfter'](_0xb23c5e['start'])?0x1:_0x149cf0['end']['isBefore'](_0xb23c5e['end'])?-0x1:_0x149cf0['end']['isAfter'](_0xb23c5e['end'])?0x1:'add'===_0x416b42['type']?-0x1:0x1;}),{'root':_0x214bbd,'changes':_0x13f1de};function _0x12bcc8(_0xb03de9,_0x38b791,_0x149cf3,_0x33eea2){const _0x1a6eff=!!_0x5f1936[_0x38b791][_0xb03de9],_0x50ee74=_0x1a6eff?_0x5f1936[_0x38b791][_0xb03de9]['userId']:null,_0x82ba5d=_0x38b791===_0x5f1936['length']-0x1,_0x552ea5=_0x11e2cf[_0xb03de9][0x0],_0xe3ea18=_0x48f758['isObject'](_0x5f1936[_0x38b791]['item']);!_0x45689c[_0xb03de9]&&_0x1a6eff?_0x45689c[_0xb03de9]={'start':_0x149cf3,'tapeItem':_0x5f1936[_0x38b791],'userId':_0x50ee74,'type':_0xb03de9}:_0x45689c[_0xb03de9]&&!_0x1a6eff?(_0x45689c[_0xb03de9]['end']=_0x149cf3,_0x2f30a8(_0x45689c[_0xb03de9]),_0x45689c[_0xb03de9]=null):_0x45689c[_0xb03de9]&&_0x1a6eff&&_0x45689c[_0xb03de9]['userId']!==_0x50ee74&&(_0x45689c[_0xb03de9]['end']=_0x149cf3,_0x552ea5&&_0x552ea5['userId']===_0x45689c[_0xb03de9]['userId']||_0x2f30a8(_0x45689c[_0xb03de9]),_0x45689c[_0xb03de9]={'start':_0x149cf3,'tapeItem':_0x5f1936[_0x38b791],'userId':_0x50ee74,'type':_0xb03de9}),_0x45689c[_0xb03de9]&&_0xe3ea18&&('elementStart'!==_0x5f1936[_0x38b791]['type']||_0x552ea5&&_0x552ea5['userId']===_0x50ee74||_0x11e2cf[_0xb03de9]['unshift']({'userId':_0x50ee74,'object':_0x5f1936[_0x38b791]['item'],'change':_0x45689c[_0xb03de9]}),'elementEnd'===_0x5f1936[_0x38b791]['type']&&_0x552ea5&&_0x552ea5['object']===_0x5f1936[_0x38b791]['item']&&(_0x11e2cf[_0xb03de9]['shift'](),_0x45689c[_0xb03de9]=_0x552ea5['change'])),_0x45689c[_0xb03de9]&&_0x82ba5d&&(_0x45689c[_0xb03de9]['end']=_0x33eea2,_0x2f30a8(_0x45689c[_0xb03de9]),_0x45689c[_0xb03de9]=null);}function _0x2f30a8({start:_0x17a398,end:_0x47f1cd,tapeItem:_0x3a6a70,userId:_0x1d821f,type:_0x42fff8}){const _0x2fca3a=_0x3a6a70['item'],_0x22661a=_0x4b8005['schema']['isBlock'](_0x2fca3a)&&!_0x4b8005['schema']['isLimit'](_0x2fca3a),_0x79c6bd=_0x17a398['nodeAfter']==_0x47f1cd['parent']&&_0x47f1cd['isAtStart'];if(_0x22661a&&_0x79c6bd)return;const _0x1c6c8a=_0x4b8005['createRange'](_0x17a398,_0x47f1cd),_0x252fe8=_0x5e7781['get'](_0x1d821f),_0x2fc144=new r({'author':_0x252fe8,'type':'isAdded'==_0x42fff8||'isAddSuggestion'==_0x42fff8?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x42fff8||'isRemoveSuggestion'==_0x42fff8},'createdAt':new Date(),'rootName':_0x3d9038});_0x13f1de['push'](_0x2fc144),_0x214bbd['markers']['set']('revision:'+_0x2fc144['id'],_0x1c6c8a);}function _0x25cb49(_0x1c08b3,_0x25d4c6){const _0x4d3156=_0x1c08b3['getAttributes'](),_0x368041=_0x25d4c6['getAttributes']();for(const _0x1db7da of _0x4d3156){if(_0x1db7da[0x1]!==_0x25d4c6['getAttribute'](_0x1db7da[0x0]))return!0x1;_0x368041['next']();}return _0x368041['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1d1985=>{const _0x149fd1=_0x1d1985['markerName']['split'](':')[0x1],_0x2c7d87=this['_getChangeFromId'](_0x149fd1);if(!_0x2c7d87)return null;const _0x11fb91='add'==_0x2c7d87['type']?'insertion':'deletion',_0x3295b0=['ck-suggestion-marker','ck-suggestion-marker-'+_0x11fb91];return _0x2c7d87['data']['isSuggestion']&&_0x3295b0['push']('ck-suggestion-marker-'+_0x11fb91+'-new'),this['activeChange']==_0x2c7d87&&_0x3295b0['push']('ck-suggestion-marker--active'),{'classes':_0x3295b0,'attributes':{'data-change-id':_0x149fd1}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4f5302=>{_0x4f5302['on']('element:pre',(_0x1dc964,_0x445be2,_0x4948b4)=>{const _0x30fcd3=_0x445be2['viewItem']['getChild'](0x0);if(!_0x30fcd3||!_0x30fcd3['is']('element','code'))return;if(!_0x4948b4['consumable']['consume'](_0x30fcd3,{'attributes':['vid_start','vid_end']}))return;const _0x4002da=_0x445be2['modelRange']['start']['nodeAfter'];_0x4948b4['writer']['setAttribute']('vid_start',_0x30fcd3['getAttribute']('vid_start'),_0x4002da),_0x4948b4['writer']['setAttribute']('vid_end',_0x30fcd3['getAttribute']('vid_end'),_0x4002da);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x298b46=>{_0x298b46['on']('element',(_0x42db0d,_0x3e6e65,_0x171549)=>{if(!_0x171549['consumable']['consume'](_0x3e6e65['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3e6e65['modelRange']['isCollapsed'])return;const _0x44843a=_0x3e6e65['modelRange']['start']['nodeAfter'];_0x44843a['hasAttribute']('vid_start')||_0x44843a['hasAttribute']('vid')||(_0x171549['writer']['setAttribute']('vid_start',_0x3e6e65['viewItem']['getAttribute']('vid_start'),_0x44843a),_0x171549['writer']['setAttribute']('vid_end',_0x3e6e65['viewItem']['getAttribute']('vid_end'),_0x44843a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1b5473=>_0x1b5473['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x184a13,[,_0x4efbc3])=>{['vid_start','vid_end','vid']['includes'](_0x4efbc3)&&(_0x184a13['return']=!0x0,_0x184a13['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x884795=>{_0x884795['on']('attribute:vid',(_0x282d1f,_0x2348f9,_0x3e4619)=>{if('\x20'!=_0x2348f9['item']['data']||_0x2348f9['item']['parent']['maxOffset']>0x1)return;if(!_0x3e4619['consumable']['consume'](_0x2348f9['item'],_0x282d1f['name']))return;const _0xc5e83a=_0x3e4619['writer'],_0x26278a=_0x3e4619['mapper']['toViewRange'](_0x2348f9['range']);_0xc5e83a['wrap'](_0x26278a,_0xc5e83a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x179558){const _0x435c8b=_0x179558['plugins']['get']('RevisionViewer');return(_0x54a067,_0x4b1ebc,_0x112bbf)=>{const _0x326c4f=_0x4b1ebc['markerName']['split'](':')[0x1],_0x9f050f=_0x435c8b['_getChangeFromId'](_0x326c4f);if(!_0x9f050f)return null;const _0x330320='add'==_0x9f050f['type']?'split':'merge';if(!_0x112bbf['consumable']['test'](_0x4b1ebc['markerRange'],_0x54a067['name']))return;const _0x4ad916=_0x4b1ebc['markerRange']['getWalker'](),_0x1d7626=_0x4b1ebc['markerRange']['start'],_0x420ba5=_0x179558['model']['schema'];let _0x100663=null,_0x314555=null,_0x2dfea2=!0x1,_0x141b86=!0x1;for(const _0x362319 of _0x4ad916){const _0x3cf2de=_0x362319['item'];_0x2dfea2=_0x2dfea2||_0x420ba5['isContent'](_0x3cf2de);const _0x45a89f=_0x112bbf['mapper']['toViewElement'](_0x3cf2de);if(_0x45a89f&&_0x45a89f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x362319['type']&&(_0x420ba5['isBlock'](_0x3cf2de)&&!_0x420ba5['isLimit'](_0x3cf2de)&&(_0x3cf2de['nextSibling']||_0x1d7626['isAtEnd']?_0x100663&&_0x100663['parent']==_0x3cf2de||(_0x100663=_0x3cf2de,_0x1910fe(_0x362319['previousPosition']),_0x141b86=!0x0):_0x314555=_0x314555||_0x362319['previousPosition']));}function _0x1910fe(_0x5f98a6){const _0x43b864=_0x112bbf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x330320}),_0x5d98c6=_0x112bbf['mapper']['toViewPosition'](_0x5f98a6);_0x9f050f['data']['isSuggestion']&&_0x112bbf['writer']['addClass']('ck-suggestion-marker-'+_0x330320+'-new',_0x43b864),_0x435c8b['activeChange']==_0x9f050f&&_0x112bbf['writer']['addClass']('ck-suggestion-marker--active',_0x43b864),_0x112bbf['writer']['insert'](_0x5d98c6,_0x43b864),_0x112bbf['mapper']['bindElementToMarker'](_0x43b864,_0x4b1ebc['markerName']);}_0x2dfea2||_0x141b86||!_0x314555||_0x1910fe(_0x314555);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x11cb20,_0x18cb4c,_0x4b0dd9)=>{const _0x1e3dc4=_0x4b0dd9['mapper']['markerNameToElements'](_0x18cb4c['markerName']);if(_0x1e3dc4){for(const _0x1e3928 of _0x1e3dc4)(_0x1e3928['hasClass']('ck-suggestion-marker-split')||_0x1e3928['hasClass']('ck-suggestion-marker-merge'))&&(_0x4b0dd9['mapper']['unbindElementFromMarkerName'](_0x1e3928,_0x18cb4c['markerName']),_0x4b0dd9['writer']['remove'](_0x1e3928));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4c6ef8,_0x10ba0e,_0x438598)=>{const _0x362b93=_0x10ba0e['markerName']['split'](':')[0x1],_0x2b4d07=this['_getChangeFromId'](_0x362b93);if(!_0x2b4d07)return null;const _0x2b4f5a='add'==_0x2b4d07['type']?'split':'merge';if(_0x438598['consumable']['test'](_0x10ba0e['markerRange'],_0x4c6ef8['name']))for(const _0x35bf36 of _0x10ba0e['markerRange']['getItems']()){if(!_0x35bf36['is']('element','softBreak'))continue;const _0x11b7c7=_0x438598['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b4f5a}),_0x50f5d4=_0x438598['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x35bf36));_0x2b4d07['data']['isSuggestion']&&_0x438598['writer']['addClass']('ck-suggestion-marker-'+_0x2b4f5a+'-new',_0x11b7c7),this['activeChange']==_0x2b4d07&&_0x438598['writer']['addClass']('ck-suggestion-marker--active',_0x11b7c7),_0x438598['writer']['insert'](_0x50f5d4,_0x11b7c7),_0x438598['mapper']['bindElementToMarker'](_0x11b7c7,_0x10ba0e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x559bb2=>{for(const _0x1be892 of this['editor']['model']['document']['getRootNames']()){const _0x3eaa9a=this['editor']['model']['document']['getRoot'](_0x1be892),_0x36d5ca=this['editor']['editing']['view']['document']['getRoot'](_0x1be892);if(_0x36d5ca){const _0x19b3bb=_0x3eaa9a['getAttribute']('revisionHistoryAttachChange');if(_0x559bb2['removeAttribute']('data-change-id',_0x36d5ca),_0x559bb2['removeClass']('ck-revision-history-root-add',_0x36d5ca),_0x559bb2['removeClass']('ck-revision-history-root-remove',_0x36d5ca),_0x559bb2['removeClass']('ck-revision-history-root--active',_0x36d5ca),_0x19b3bb){const _0x5468b3=this['_getChangeFromId'](_0x19b3bb);if(!_0x5468b3)return null;_0x559bb2['setAttribute']('data-change-id',_0x19b3bb,_0x36d5ca),_0x559bb2['addClass']('ck-revision-history-root-'+_0x5468b3['type'],_0x36d5ca),this['activeChange']==_0x5468b3&&_0x559bb2['addClass']('ck-revision-history-root--active',_0x36d5ca);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x26bd2d=>'revision-comment:'+_0x26bd2d,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3d98cd=>'revision-suggestion:'+_0x3d98cd,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4aafab=>({'name':'suggestion:'+_0x4aafab,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xccb8cd=>{const _0x2b58d2=_0xccb8cd['markerName']['split'](':')[0x1];return'insertion'!=_0x2b58d2&&'deletion'!=_0x2b58d2?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2b58d2]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x222f28,_0x437aa4,_0x17fa39)=>{const _0x46e58d=_0x17fa39['mapper']['markerNameToElements'](_0x437aa4['markerName']);if(_0x46e58d){for(const _0x3ac8b6 of _0x46e58d)_0x3ac8b6['is']('uiElement')&&(_0x17fa39['mapper']['unbindElementFromMarkerName'](_0x3ac8b6,_0x437aa4['markerName']),_0x17fa39['writer']['remove'](_0x3ac8b6));}},{'priority':'high'});}['_getChangeFromId'](_0x5721f7){return this['_changeIdToChange']['get'](_0x5721f7);}['_getViewForChange'](_0x54cfa0){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x54cfa0),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x27758b,_0x566639,_0x4e5f17,_0x2769a0)=>{_0x2769a0&&this['_balloon']['remove'](_0x2769a0),_0x4e5f17&&(this['_balloon']['add']({'view':_0x4e5f17,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xa17be9=this['editor']['editing'],_0x1237d6=this['_getChangeFromId'](_0x4e5f17['changeId']);let _0x211db5;if(_0x1237d6['data']['isOnRoot']){const _0x479574=_0xa17be9['view']['getDomRoot'](_0x1237d6['rootName']);_0x211db5=Array['from'](_0x479574['getClientRects']());}else{const _0xd4c00f=this['editor']['model']['markers']['get']('revision:'+_0x4e5f17['changeId']);_0x211db5=Array['from'](_0xa17be9['mapper']['markerNameToElements'](_0xd4c00f['name']))['map'](_0x2a3a81=>_0xa17be9['view']['domConverter']['mapViewToDom'](_0x2a3a81))['map'](_0x4587b3=>Array['from'](_0x4587b3['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x211db5[0x0];return _0x211db5['find'](_0x369b5a=>_0x369b5a['top']-0x3<=this['_activeViewTarget']['y']&&_0x369b5a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x369b5a['left']-0x3<=this['_activeViewTarget']['x']&&_0x369b5a['right']+0x3>=this['_activeViewTarget']['x'])||_0x211db5[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5ee28e,_0x4b2809,_0x3783e3,_0x4d3885)=>{this['activeView']=_0x3783e3?this['_getViewForChange'](_0x3783e3):null,this['editor']['model']['change'](()=>{const _0x38b358=this['editor']['editing'];_0x4d3885&&(_0x4d3885['data']['isOnRoot']?_0x38b358['view']['change'](_0xc2acb2=>{_0xc2acb2['removeClass']('ck-revision-history-root--active',_0x38b358['view']['document']['getRoot'](_0x4d3885['rootName']));}):_0x38b358['reconvertMarker']('revision:'+_0x4d3885['id'])),_0x3783e3&&(_0x3783e3['data']['isOnRoot']?_0x38b358['view']['change'](_0x41609a=>{_0x41609a['addClass']('ck-revision-history-root--active',_0x38b358['view']['document']['getRoot'](_0x3783e3['rootName']));}):_0x38b358['reconvertMarker']('revision:'+_0x3783e3['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x50a6cf,_0x4eeb05)=>{if(this['activeChange'])return;const _0x33d835=this['_findChangeIdFromDomTarget'](_0x4eeb05['target']),_0x18928f=this['_changeIdToChange']['get'](_0x33d835);_0x18928f?(this['_activeViewTarget']={'x':_0x4eeb05['domEvent']['x'],'y':_0x4eeb05['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x18928f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x626d92,_0x4e99b0)=>{const _0x1b6044=this['_findChangeIdFromDomTarget'](_0x4e99b0['target']),_0x9897f0=this['_changeIdToChange']['get'](_0x1b6044);_0x9897f0?(this['_activeViewTarget']={'x':_0x4e99b0['domEvent']['x'],'y':_0x4e99b0['domEvent']['y']},_0x9897f0===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x9897f0):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3e6814){do{const _0x24fb31=_0x3e6814['getAttribute']('data-change-id');if(_0x24fb31)return _0x24fb31;_0x3e6814=_0x3e6814['parent'];}while(_0x3e6814);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x42975a=>{for(const _0x166593 of this['editor']['model']['markers'])_0x42975a['removeMarker'](_0x166593);});}}function Z(_0x27ed73,_0xb49c2a){return(_0x45bd42,_0x4958c0,_0x18301e)=>{if(!_0x18301e['consumable']['test'](_0x4958c0['markerRange'],_0x45bd42['name']))return;const _0x2c550c=_0x4958c0['markerRange']['getWalker'](),_0x574815=_0x4958c0['markerRange']['start'],_0x2af4cf=_0x27ed73['model']['schema'];let _0x389149=null,_0x2bffa9=null,_0x2f440f=!0x1,_0x4badb2=!0x1;for(const _0x2fdec2 of _0x2c550c){const _0x32d751=_0x2fdec2['item'];_0x2f440f=_0x2f440f||_0x2af4cf['isContent'](_0x32d751);const _0xc2432f=_0x18301e['mapper']['toViewElement'](_0x32d751);if(_0xc2432f&&_0xc2432f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2fdec2['type']&&(_0x2af4cf['isBlock'](_0x32d751)&&!_0x2af4cf['isLimit'](_0x32d751)&&(_0x32d751['nextSibling']||_0x574815['isAtEnd']?_0x389149&&_0x389149['parent']==_0x32d751||(_0x389149=_0x32d751,_0x143e80(_0x2fdec2['previousPosition']),_0x4badb2=!0x0):_0x2bffa9=_0x2bffa9||_0x2fdec2['previousPosition']));}function _0x143e80(_0x17a6c6){const _0xf28355=_0x18301e['mapper']['toViewPosition'](_0x17a6c6),_0xc80c0b=_0x18301e['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xb49c2a});_0x18301e['writer']['insert'](_0xf28355,_0xc80c0b),_0x18301e['mapper']['bindElementToMarker'](_0xc80c0b,_0x4958c0['markerName']);}_0x2f440f||_0x4badb2||!_0x2bffa9||_0x143e80(_0x2bffa9);};}class _t extends _0x233339{constructor(_0x4305dd){super(_0x4305dd);const _0x5dee17=_0x4305dd['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5dee17,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5dee17,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x541438=this['editor'],_0x3d977f=_0x541438['plugins']['get'](d),_0x235bf7=_0x3d977f['isReady']?_0x3d977f['diff']['newRevisionId']:null;_0x541438['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x235bf7);}['refresh'](){const {isReady:_0x28acfe,isEnabled:_0x3ee55a,repository:_0x460274,diff:_0x33360b}=this['editor']['plugins']['get'](d),_0x58f8de=_0x33360b&&_0x460274['getLaterVisibleRevision'](_0x33360b['newRevisionId']);this['isEnabled']=_0x28acfe&&_0x3ee55a&&Boolean(_0x58f8de);}}class yt extends _0x233339{['_step'];constructor(_0x4c57fb,{direction:_0x3d3199}){super(_0x4c57fb);const _0xf330be=_0x4c57fb['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3d3199?0x1:-0x1,this['listenTo'](_0xf330be,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xf330be,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xf330be,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1f171a=this['editor'],_0x1be067=_0x1f171a['plugins']['get'](d),{isNavigationMode:_0x7925e,currentChangeNumber:_0x29172f}=_0x1be067;let _0x1ae80a;if(_0x1be067['activeChange']=_0x7925e?_0x1be067['diff']['changes']['get'](_0x29172f+this['_step']):_0x1be067['diff']['changes']['first'],_0x1be067['activeChange']['data']['isOnRoot'])_0x1ae80a=_0x1f171a['editing']['view']['getDomRoot'](_0x1be067['activeChange']['rootName']);else{const _0x341de8=_0x1f171a['model']['markers']['get']('revision:'+_0x1be067['activeChange']['id']);_0x1ae80a=_0x12c61c(_0x1f171a['editing'],_0x341de8);}_0x9531a1({'target':_0x1ae80a,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x45158b,currentChangeNumber:_0x45cab4,numberOfChanges:_0xb7ba57,isReady:_0x205f0b,isEnabled:_0x53c1e9}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x53c1e9&&_0x205f0b&&_0xb7ba57)&&(!_0x45158b||(0x1===this['_step']?_0x45cab4<_0xb7ba57-0x1:_0x45cab4>0x0));}}class _i extends _0x5c59b1{constructor(_0x1e5a03){super(_0x1e5a03);const _0x2903f4=this['bindTemplate'],_0x3e79fe=new _0x1514b3(_0x1e5a03),_0x20c7f8=new _0x1514b3(_0x1e5a03);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',(_0xdca180,_0x2045bb)=>_0xdca180&&_0x2045bb>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xc98491,_0x11bd43,_0x30e62c,_0x579eaa)=>{if(!_0xc98491)return m(_0x1e5a03,'Loading...');if(!_0x30e62c)return m(_0x1e5a03,'No\x20changes');const _0x1ffc67=m(_0x1e5a03,'NUMBER_OF_CHANGES',_0x30e62c);return _0x579eaa?m(_0x1e5a03,'X_OF_Y_CHANGES',[_0x11bd43+0x1,_0x30e62c]):_0x1ffc67;}),_0x3e79fe['set']({'label':m(_0x1e5a03,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1e91b5}),_0x20c7f8['set']({'label':m(_0x1e5a03,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x263d4b}),_0x3e79fe['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x20c7f8['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3e79fe['on']('execute',()=>this['fire']('execute','backward')),_0x20c7f8['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',_0x2903f4['if']('_isStatusLabelVisible','ck-hidden',_0x40c156=>!_0x40c156)]},'children':[{'text':_0x2903f4['to']('isNavigationMode',_0x1ba034=>_0x1ba034?m(_0x1e5a03,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x1e5a03,'Total')+':\x20')}]},{'text':_0x2903f4['to']('_statusText')}]},new _0x33a9ee(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3e79fe,_0x20c7f8]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x26fb00{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1b9921=this['editor']['editing']['view'];_0x1b9921['change'](_0x38b28b=>{for(const _0x37674a of _0x1b9921['document']['roots'])_0x38b28b['addClass'](ce,_0x37674a);});}['hide'](){const _0x29e2b7=this['editor']['editing']['view'];_0x29e2b7['change'](_0x43471c=>{for(const _0x103fd1 of _0x29e2b7['document']['roots'])_0x43471c['removeClass'](ce,_0x103fd1);});}}class w extends _0x26fb00{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x336215=this['editor'],_0x88d382=_0x336215['plugins']['get'](d),_0x1334a0=_0x336215['plugins']['get'](le);_0x336215['ui']['componentFactory']['add']('exitToEditing',_0x61ec35=>{const _0x3311f8=new _0x1514b3(_0x61ec35);return _0x3311f8['set']({'label':m(_0x61ec35,'Back\x20to\x20editing'),'icon':_0x4f97fe,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3311f8,'execute',()=>{_0x336215['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3311f8;}),_0x336215['ui']['componentFactory']['add']('restoreRevision',_0x4b9dea=>{const _0x34adff=new _0x1514b3(_0x4b9dea);return _0x34adff['set']({'label':m(_0x4b9dea,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x34adff['bind']('isEnabled')['to'](_0x336215['commands']['get']('restoreRevision')),this['listenTo'](_0x34adff,'execute',()=>_0x336215['execute']('restoreRevision')),_0x34adff;}),_0x336215['ui']['componentFactory']['add']('changesNavigation',_0x4d39b6=>{const _0x494f40=new _i(_0x4d39b6),_0x3a3296=_0x336215['commands']['get']('showPreviousChange'),_0x466964=_0x336215['commands']['get']('showNextChange');return _0x494f40['bind']('isBackwardNavigationEnabled')['to'](_0x3a3296,'isEnabled'),_0x494f40['bind']('isForwardNavigationEnabled')['to'](_0x466964,'isEnabled'),_0x494f40['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x88d382),this['listenTo'](_0x494f40,'execute',(_0x47d69c,_0x2cfbc9)=>{_0x336215['execute']('forward'===_0x2cfbc9?'showNextChange':'showPreviousChange');}),_0x494f40;}),_0x1334a0['show'](),_0x88d382['on']('change:isReady',(_0x6598f4,_0x3c6c84,_0x1d2999)=>{_0x1d2999?_0x1334a0['hide']():_0x1334a0['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x48d938,_0x578270){super(_0x48d938,_0x578270);const _0x3b3bb1=this['bindTemplate'];this['set']({'label':m(_0x48d938,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x48d938,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3b3bb1['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5762a2=this['fieldView']['element'];this['_tooltipString']=_0x5762a2['scrollWidth']>_0x5762a2['clientWidth']&&_0x5762a2['value']||'';}}class oi extends _0x5c59b1{constructor(_0x5ebe95,_0x45aba9,_0x46acdf){super(_0x5ebe95);const _0x49d529=new _0x35e69b();_0x49d529['set']({'content':_0x409b87,'viewBox':'0\x200\x2011\x2010'});const _0x217ea5=['ck','ck-revision-history-sidebar__revision-author'];_0x46acdf&&_0x217ea5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x19226a=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x5ebe95,_0x46acdf?'Revision\x20creator':'Revision\x20author')},'children':[_0x49d529,_0x45aba9['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x217ea5},'children':_0x19226a});}}function ni(_0x545508,_0x478af9){const _0x278f47=_0x545508['bindTemplate'],_0x5a11b1=_0x545508['locale'],_0x46368d=_0x43bd05(_0x5a11b1);_0x46368d['panelPosition']='sw';const _0x2a4bae=function(_0xd8ad06,_0x384110){const _0x52b454=function(_0x3ecaf8,_0x2bcdb2){const _0x50f43b=_0x3ecaf8['locale'],_0x2ea541={'Compare\x20against\x20selected':m(_0x50f43b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x50f43b,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x50f43b,'Restore\x20this\x20revision')};return _0x2bcdb2['map'](_0x350abf=>{const _0xa2ab3c=_0x2ea541[_0x350abf['name']];return _0xa2ab3c&&_0xa2ab3c!==_0x350abf['name']&&(_0x350abf['name']=_0xa2ab3c),_0x350abf;});}(_0xd8ad06,_0x384110),_0xa5f92a=new _0x8dad72();for(const _0x3baf92 of _0x52b454){const _0x3d4f64={'type':'button','model':new to({'label':_0x3baf92['name'],'class':_0x3baf92['class'],'withText':!0x0,'role':'menuitem','_action':_0x3baf92['action']})};_0x3d4f64['model']['bind']('isEnabled')['to'](_0xd8ad06,'isActionsDropdownOpen',_0x447ff2=>'function'!=typeof _0x3baf92['isEnabled']||(!_0x447ff2||_0x3baf92['isEnabled'](_0xd8ad06))),_0xa5f92a['add'](_0x3d4f64);}return _0xa5f92a;}(_0x545508,_0x478af9);return _0x545508['bind']('isActionsDropdownOpen')['to'](_0x46368d,'isOpen'),_0x46368d['buttonView']['set']({'label':m(_0x5a11b1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3b73b4}),_0x46368d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x278f47['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x278f47['to'](_0x12c55d=>_0x12c55d['stopPropagation']())}}),_0x46368d['on']('execute',_0x55dbe3=>{_0x545508['isReady']&&'function'==typeof _0x55dbe3['source']['_action']&&_0x55dbe3['source']['_action'](_0x545508);}),_0x177c45(_0x46368d,_0x2a4bae,{'role':'menu'}),_0x46368d['listenTo'](_0x545508,'change:isActionsDropdownOpen',(_0x363324,_0xc8eaaf,_0x5a8257)=>{if(_0x5a8257)for(const _0x874fb8 of _0x46368d['listView']['items']){const _0x133a08=_0x874fb8['children']['first'],_0x3fabc7=_0x478af9['find'](_0x4a9c2f=>_0x4a9c2f['action']===_0x133a08['_action'])['isVisible'];_0x874fb8['isVisible']=void 0x0===_0x3fabc7||_0x3fabc7(_0x545508);}}),_0x46368d;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x1f12de(_0x5c59b1){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x54812b,_0x2f900e,_0x986239,_0x246d86){super(_0x54812b);const _0x17b4c3=this['bindTemplate'],_0x4bcacc=function(_0x3d1c21,_0x21b72a){const _0x40a804=Array['from'](_0x21b72a['authors'])['filter'](_0x5f0232=>_0x5f0232!=_0x21b72a['creator']);return _0x21b72a['creator']&&_0x40a804['unshift'](_0x21b72a['creator']),_0x40a804['map'](_0x183b09=>new oi(_0x3d1c21,_0x183b09,_0x183b09==_0x21b72a['creator']));}(_0x54812b,_0x2f900e);this['id']=_0x2f900e['id'],this['_revision']=_0x2f900e,this['_requireRevisionName']=_0x246d86,this['bind']('name','createdAt')['to'](_0x2f900e),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3ddb0d=>{return _0x50cc43=_0x54812b['uiLanguage'],(_0x53b9cc=_0x3ddb0d)['toLocaleDateString'](_0x50cc43,{'month':'long','day':'numeric'})+',\x20'+_0x53b9cc['toLocaleTimeString'](_0x50cc43,{'hour':'numeric','minute':'numeric'});var _0x50cc43,_0x53b9cc;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x54812b,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4eb6eb=>_0x4eb6eb||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x20d59c,_0x564cee)=>_0x20d59c&&_0x564cee),this['revisionActionsView']=_0x986239&&_0x986239['length']?ni(this,_0x986239):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x17b4c3['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x17b4c3['if']('isEnabled','ck-disabled',_0x600622=>!_0x600622),_0x17b4c3['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x17b4c3['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x17b4c3['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':_0x17b4c3['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':_0x4bcacc}]},this['revisionActionsView']],'on':{'click':_0x17b4c3['to'](_0x36f436=>{_0x36f436['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5c10ae=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5c10ae,'change',()=>{this['_requireRevisionName']&&!_0x5c10ae['value']||this['fire']('setName',{'id':this['id'],'name':_0x5c10ae['value']}),_0x5c10ae['value']||(_0x5c10ae['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0xe12cc8,_0x5cba42){const _0x1e76eb=_0x30cf25['fromJSDate'](_0xe12cc8)['setLocale'](_0x5cba42),_0x324a3e=_0x30cf25['local'](),_0x2fe7fc=_0x324a3e['minus']({'days':0x1})['startOf']('day');let _0x165cc5,_0x47aae5;return _0x1e76eb['hasSame'](_0x324a3e,'day')?(_0x165cc5=_0x1e76eb['startOf']('day')['toJSDate'](),_0x47aae5=_0x1e76eb['toRelativeCalendar']()):_0x1e76eb['hasSame'](_0x2fe7fc,'day')?(_0x165cc5=_0x2fe7fc['toJSDate'](),_0x47aae5=_0x1e76eb['toRelativeCalendar']()):_0x1e76eb['hasSame'](_0x324a3e,'week')?(_0x165cc5=_0x1e76eb['startOf']('week')['toJSDate'](),_0x47aae5=_0x1e76eb['weekdayLong']||''):_0x1e76eb['hasSame'](_0x324a3e,'year')?(_0x165cc5=_0x1e76eb['startOf']('month')['toJSDate'](),_0x47aae5=_0x1e76eb['monthLong']||''):(_0x165cc5=_0x1e76eb['startOf']('year')['toJSDate'](),_0x47aae5=String(_0x1e76eb['year'])),{'startDate':_0x165cc5,'localizedPeriodName':_0x47aae5};}class mi extends _0x5c59b1{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4c286e,_0x20bc35,_0x4974a0,_0x3de516){super(_0x4c286e);const _0x52a457=vi(_0x20bc35,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x20bc35,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4974a0,this['_requireRevisionName']=_0x3de516,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':_0x52a457}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x52e543){const _0x2f75ff=new ai(this['locale'],_0x52e543,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2f75ff);}['removeRevision'](_0x28b4c4){const _0x44a857=this['revisionViews']['find'](_0x89f477=>_0x89f477['id']===_0x28b4c4['id']);this['revisionViews']['remove'](_0x44a857);}}class as extends _0x5c59b1{constructor(_0x447e9c){super(_0x447e9c);const _0x5e57cd=new _0x35e69b();_0x5e57cd['content']=_0x5d107e,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5e57cd,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x447e9c,'Revision\x20history')]}]});}}class di extends _0x5c59b1{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x168c6b,_0x2feed6,_0x191a0c,_0x529cb3){super(_0x168c6b);const _0x5255f0=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2feed6,this['_revisionActions']=_0x191a0c,this['_requireRevisionName']=_0x529cb3,this['on']('select',(_0x4d34bf,_0x284805)=>{this['fire']('revisionSelected',_0x284805);}),this['on']('setName',(_0x51639b,_0x58951b)=>{this['fire']('revisionSetName',_0x58951b);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x168c6b),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5255f0['if']('isEnabled','ck-disabled',_0x4fe2ba=>!_0x4fe2ba)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x10e50d of this['_revisions'])this['_addRevision'](_0x10e50d);this['_revisions']['on']('add',(_0x32ecda,_0x3c91f2)=>{this['_addRevision'](_0x3c91f2);}),this['_revisions']['on']('remove',(_0x16fe1b,_0x1eee39)=>{this['_removeRevision'](_0x1eee39);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5c0305=>_0x5c0305['revisionViews']['map'](_0x2dfeb6=>_0x2dfeb6))['flat']();}['selectRevision'](_0x47fe0a){for(const _0x4a629f of this['revisionViews'])_0x47fe0a&&_0x47fe0a['id']===_0x4a629f['id']?_0x4a629f['select']():_0x4a629f['deselect']();}['highlightRevisions'](_0x52c5f7){for(const _0x2c2663 of this['revisionViews'])_0x52c5f7['some'](({id:_0x1fde93})=>_0x1fde93===_0x2c2663['id'])?_0x2c2663['highlight']():_0x2c2663['unhighlight']();}['_addRevision'](_0x521557){const _0x48ebcb=vi(_0x521557['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x273de6=this['timePeriodViews']['get'](0x0);_0x273de6&&_0x273de6['startDate']['getTime']()===_0x48ebcb['getTime']()||(_0x273de6=new mi(this['locale'],_0x48ebcb,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x273de6)),_0x273de6['addRevision'](_0x521557);}['_removeRevision'](_0x368e51){const _0x5c639f=vi(_0x368e51['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5c639f)['removeRevision'](_0x368e51);}['_getTimePeriodViewByStartDate'](_0x52d004){return this['timePeriodViews']['find'](_0x5f4224=>_0x5f4224['startDate']['getTime']()===_0x52d004['getTime']());}}class g extends _0x26fb00{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x378d18,uid as _0x317a84,Collection as _0x4708dd,logWarning as _0x18f812,FocusTracker as _0x56a2af,KeystrokeHandler as _0xdd9358,scrollViewportToShowTarget as _0x1538ce,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x242fb1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xf10199,set as _0x205554,unset as _0x1ff720,isEqual as _0x15c7db}from'es-toolkit/compat';import{Plugin as _0x545567,PendingActions as _0x32c3b1,Command as _0x4a8c94,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x586aa9,getMarkerDomElement as _0x2ffac5,ConfirmMixin as _0x566827,sanitizeEditorConfig as _0x565b32}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x5aa0a3,Element as ut,Range as ft,ViewUIElement as _0x3c85ff,ViewRawElement as _0xb44386,ViewEmptyElement as _0xdda3ba,ViewAttributeElement as _0x42735c,ViewContainerElement as _0x34667d,Position as vt,ViewText as _0x2de7f7,ViewElement as _0x3bf831,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x2dfe0a,IconChevronUp as _0x3903b9,IconChevronDown as _0x3c4c08,IconUndo as _0x1c1e6f,IconUser as _0x20eb41,IconThreeVerticalDots as _0x55c838}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x2fbfd0,injectCssTransitionDisabler as ts,submitHandler as _0xac48e3,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x3efc4b,ListView as _0x2fca97,ListItemView as te,ButtonView as _0x599e02,MenuBarMenuView as _0x10f18a,MenuBarMenuListView as _0x56283a,MenuBarMenuListItemView as _0x2db851,MenuBarMenuListItemButtonView as _0x3778bf,ContextualBalloon as _0x4238cd,ToolbarSeparatorView as _0x2294b0,IconView as _0x2ec47d,addListToDropdown as _0x5abc92,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5ecde9}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x378d18(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x37558c){super(),this['id']=_0x37558c['id']||_0x317a84(),this['creator']=_0x37558c['creator']||null,this['authors']=_0x37558c['authors']||[],this['diffData']=_0x37558c['diffData']||null,this['toVersion']=_0x37558c['toVersion']||0x0,this['fromVersion']=_0x37558c['fromVersion']||0x0,this['set']('name',_0x37558c['name']||''),this['set']('createdAt',_0x37558c['createdAt']||new Date()),this['set']('attributes',_0x37558c['attributes']||{});}['setName'](_0x1a222c){this['_update']({'name':_0x1a222c});}['setAttribute'](_0x4740c2,_0x3876fb){const _0x5ba06c=_0xf10199(this['attributes']);_0x205554(_0x5ba06c,_0x4740c2,_0x3876fb),this['_update']({'attributes':_0x5ba06c});}['removeAttribute'](_0x2b6378){const _0x836092=_0xf10199(this['attributes']);_0x1ff720(_0x836092,_0x2b6378),this['_update']({'attributes':_0x836092});}['_update'](_0x1bdbf4,_0x30ee73=!0x1){let _0x5d5bd9=!0x1;const _0x7287eb={'id':this['id']},_0x4d2f43=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3d8ed6 of _0x4d2f43){const _0x163568=_0x1bdbf4[_0x3d8ed6];void 0x0!==_0x163568&&_0x163568!==this[_0x3d8ed6]&&(this[_0x3d8ed6]=_0x163568,_0x7287eb[_0x3d8ed6]=_0x163568,_0x5d5bd9=!0x0);}_0x5d5bd9&&(_0x7287eb['authors']&&(_0x7287eb['authorsIds']=_0x7287eb['authors']['map'](_0xbbf181=>_0xbbf181['id']),delete _0x7287eb['authors']),this['fire']('_update',_0x7287eb,_0x30ee73));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3d9f0e=>_0x3d9f0e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x545567{['_revisions'];static get['requires'](){return[_0x586aa9];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x49f26e){super(_0x49f26e),this['_revisions']=new _0x4708dd();}['afterInit'](){!async function(_0x156da0){const _0x3540a8=_0x1941ae([0x74,0x31,0x45,0x6e,0x6a,0x43,0x6b,0x4f,0x57,0x63,0x36,0x55,0x41,0x67,0x68,0x50,0x65,0x73,0x75,0x69,0x62,0x7a,0x78,0x4e,0x79,0x52,0x4a,0x4d,0x37,0x47,0x6d,0x42,0x38,0x6c,0x46,0x54,0x4b,0x44,0x51,0x6f,0x61,0x70,0x76,0x39,0x59,0x72,0x5a,0x30,0x53,0x64,0x71,0x34,0x49,0x56,0x33,0x66,0x32,0x58,0x48,0x77,0x35,0x4c]),_0x3f8084=0xeb829,_0x678955=0x22a92b1f,_0x542694=0x22ae4a5f^_0x678955,_0x43d6ea=window[_0x1941ae([0x44,0x61,0x74,0x65])][_0x1941ae([0x6e,0x6f,0x77])](),_0x274a46=_0x156da0[_0x1941ae([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1ecf53=new window[(_0x1941ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x220769=>{_0x274a46[_0x1941ae([0x6f,0x6e,0x63,0x65])](_0x1941ae([0x72,0x65,0x61,0x64,0x79]),_0x220769);}),_0x5d9ce9={[_0x1941ae([0x6b,0x74,0x79])]:_0x1941ae([0x45,0x43]),[_0x1941ae([0x75,0x73,0x65])]:_0x1941ae([0x73,0x69,0x67]),[_0x1941ae([0x63,0x72,0x76])]:_0x1941ae([0x50,0x2d,0x32,0x35,0x36]),[_0x1941ae([0x78])]:_0x1941ae([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]),[_0x1941ae([0x79])]:_0x1941ae([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]),[_0x1941ae([0x61,0x6c,0x67])]:_0x1941ae([0x45,0x53,0x32,0x35,0x36])},_0x1a64e9=_0x274a46[_0x1941ae([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1941ae([0x67,0x65,0x74])](_0x1941ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x530ca9(){let _0x20232c,_0x47beb8=null,_0x2ac9a3=null;try{if(_0x1a64e9==_0x1941ae([0x47,0x50,0x4c]))return _0x1941ae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x20232c=_0x1243ff(),!_0x20232c)return _0x1941ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x20232c[_0x1941ae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ac9a3=_0x2d1d5d(_0x20232c[_0x1941ae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x20232c[_0x1941ae([0x6a,0x74,0x69])])),await _0x5ae316()?_0x1b06d6()?_0x41fe04()?_0x1941ae([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34caaa()?(_0x20232c[_0x1941ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1941ae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x47beb8=_0x35d7bd(_0x1941ae([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x20232c[_0x1941ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1941ae([0x74,0x72,0x69,0x61,0x6c])&&(_0x47beb8=_0x35d7bd(_0x1941ae([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5f8f1f()):_0x1941ae([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1941ae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1941ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1fa49b){return _0x1941ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41fe04(){const _0xd32fb3=[_0x1941ae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1941ae([0x74,0x72,0x69,0x61,0x6c])][_0x1941ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20232c[_0x1941ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x43d6ea/0x3e8:0xe10*_0x542694;return _0x20232c[_0x1941ae([0x65,0x78,0x70])]<_0xd32fb3;}function _0x1b06d6(){const _0x51c673=_0x20232c[_0x1941ae([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x51c673)return!0x1;if(_0x51c673[_0x1941ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1941ae([0x2a])))return!0x0;if(_0x51c673[_0x1941ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1941ae([0x52,0x48])))return!0x0;if(_0x51c673[_0x1941ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1941ae([0x52,0x52,0x48]))){if(_0x3bca94())return!0x0;if(_0x9be48e()||_0x4f95dc())return!0x0;}return!0x1;}function _0x34caaa(){const _0x1cb073=_0x20232c[_0x1941ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1cb073||0x0==_0x1cb073[_0x1941ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55a4f9}=new URL(window[_0x1941ae([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1cb073[_0x1941ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a4f9))return!0x0;const _0x219d43=_0x55a4f9[_0x1941ae([0x73,0x70,0x6c,0x69,0x74])](_0x1941ae([0x2e]));return _0x1cb073[_0x1941ae([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f5de6=>_0x2f5de6[_0x1941ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1941ae([0x2a])))[_0x1941ae([0x6d,0x61,0x70])](_0x8aa31f=>_0x8aa31f[_0x1941ae([0x73,0x70,0x6c,0x69,0x74])](_0x1941ae([0x2e])))[_0x1941ae([0x73,0x6f,0x6d,0x65])](_0x4e9ee7=>_0x219d43[_0x1941ae([0x65,0x76,0x65,0x72,0x79])]((_0x274320,_0x5513f0)=>_0x4e9ee7[_0x5513f0]===_0x274320||_0x4e9ee7[_0x5513f0]===_0x1941ae([0x2a])));}function _0x5f8f1f(){return _0x47beb8&&_0x2ac9a3?new window[(_0x1941ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b69f8,_0x54402a)=>{_0x47beb8[_0x1941ae([0x74,0x68,0x65,0x6e])](_0x1b69f8,_0x54402a),_0x2ac9a3[_0x1941ae([0x74,0x68,0x65,0x6e])](_0x161b35=>{_0x161b35!=_0x1941ae([0x56,0x61,0x6c,0x69,0x64])&&_0x1b69f8(_0x161b35);},_0x54402a);}):_0x47beb8||_0x2ac9a3||_0x1941ae([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d1d5d(_0x147f3b,_0x51b53a){return new window[(_0x1941ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x591c63=>{if(_0x3f5f7e())return _0x591c63(_0x1941ae([0x56,0x61,0x6c,0x69,0x64]));_0x48671f(),_0x274a46[_0x1941ae([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1941ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51e8e8=!0x1;const _0x469301=_0x317a84();function _0x2a9c98(_0x11c0c0){return!!_0x11c0c0&&(typeof _0x11c0c0===_0x1941ae([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x11c0c0===_0x1941ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x11c0c0[_0x1941ae([0x74,0x68,0x65,0x6e])]===_0x1941ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x11c0c0[_0x1941ae([0x63,0x61,0x74,0x63,0x68])]===_0x1941ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d6972(_0x115ea9){_0x322c57(_0x115ea9)[_0x1941ae([0x74,0x68,0x65,0x6e])](_0x1dc29d=>{if(!_0x1dc29d||_0x1dc29d[_0x1941ae([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1941ae([0x6f,0x6b]))return _0x1941ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x39afd8(_0x29c9e7(_0x469301+_0x51b53a))!=_0x1dc29d[_0x1941ae([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1941ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1941ae([0x56,0x61,0x6c,0x69,0x64]);})[_0x1941ae([0x74,0x68,0x65,0x6e])](_0x4a2d57=>(_0x2c96ee(),_0x4a2d57),()=>{const _0x3dbf35=_0x28b3a2();return null==_0x3dbf35?(_0x2c96ee(),_0x1941ae([0x56,0x61,0x6c,0x69,0x64])):_0x1941ae(_0x43d6ea-_0x3dbf35>(0x6a5af1f^_0x678955)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1941ae([0x74,0x68,0x65,0x6e])](_0x591c63)[_0x1941ae([0x63,0x61,0x74,0x63,0x68])](()=>{_0x591c63(_0x1941ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x389a2b=0x229fc59f^_0x678955;function _0x2c96ee(){const _0x3eea51=_0x1941ae([0x6c,0x6c,0x63,0x74,0x2d])+_0x39afd8(_0x29c9e7(_0x147f3b)),_0x4ff755=_0x597934(_0x39afd8(window[_0x1941ae([0x4d,0x61,0x74,0x68])][_0x1941ae([0x63,0x65,0x69,0x6c])](_0x43d6ea/_0x389a2b)));window[_0x1941ae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1941ae([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3eea51,_0x4ff755);}function _0x28b3a2(){const _0x412920=_0x1941ae([0x6c,0x6c,0x63,0x74,0x2d])+_0x39afd8(_0x29c9e7(_0x147f3b)),_0x59f697=window[_0x1941ae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1941ae([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x412920);return _0x59f697?window[_0x1941ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x597934(_0x59f697),0x10)*_0x389a2b:null;}function _0x322c57(_0x361798){return new window[(_0x1941ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x448ca0,_0x22f503)=>{_0x361798[_0x1941ae([0x74,0x68,0x65,0x6e])](_0x448ca0,_0x22f503),window[_0x1941ae([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22f503,0x22a8ffdf^_0x678955);});}}_0x274a46[_0x1941ae([0x6f,0x6e])](_0x1941ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51b035,_0x1a68ef)=>{if(_0x1a68ef[0x0]!=_0x147f3b)return _0x591c63(_0x1941ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a68ef[0x1]={..._0x1a68ef[0x1],[_0x1941ae([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x469301};},{[_0x1941ae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1941ae([0x68,0x69,0x67,0x68])}),_0x274a46[_0x1941ae([0x6f,0x6e])](_0x1941ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd780cb=>{_0x2a9c98(_0xd780cb[_0x1941ae([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51e8e8=!0x0,_0x5d6972(_0xd780cb[_0x1941ae([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1941ae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1941ae([0x6c,0x6f,0x77])}),_0x1ecf53[_0x1941ae([0x74,0x68,0x65,0x6e])](()=>{_0x51e8e8||_0x591c63(_0x1941ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f5f7e(){return _0x274a46[_0x1941ae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1941ae([0x76,0x69,0x65,0x77])][_0x1941ae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1941ae([0x61,0x75,0x74,0x6f]);}function _0x48671f(){_0x274a46[_0x1941ae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1941ae([0x76,0x69,0x65,0x77])][_0x1941ae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1941ae([0x61,0x75,0x74,0x6f]);}}function _0x35d7bd(_0x2a1dd5){const _0x55eaae=[new window[(_0x1941ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49fa0d=>setTimeout(_0x49fa0d,0x22a015d3^_0x678955)),_0x1ecf53[_0x1941ae([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1941ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23dd08=>{const _0x5d9d35=0x22a92b18^_0x678955,_0x4d29bb=_0x156da0[_0x1941ae([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x40c1fd(){_0x4d29bb[_0x1941ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5d9d35&&_0x23dd08();}_0x40c1fd(),_0x4d29bb[_0x1941ae([0x6f,0x6e])](_0x1941ae([0x61,0x64,0x64]),_0x40c1fd);})),new window[(_0x1941ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x357725=>{function _0x1fb961(){for(const _0x1a08ee in window)if(window[_0x1941ae([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1941ae([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1a08ee))&&window[_0x1a08ee]==_0x3f8084)return _0x357725();_0x274a46[_0x1941ae([0x73,0x74,0x61,0x74,0x65])]!=_0x1941ae([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1941ae([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1fb961,0x22a93897^_0x678955);}_0x407060(_0x1941ae([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1fb961();})];return window[_0x1941ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1941ae([0x72,0x61,0x63,0x65])](_0x55eaae)[_0x1941ae([0x74,0x68,0x65,0x6e])](()=>_0x2a1dd5);}async function _0x51f946(){if(await _0x1ecf53,_0x407060(_0x1941ae([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x36420a=_0x156da0[_0x1941ae([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x11d50a=_0x156da0[_0x1941ae([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])](_0x36420a[_0x1941ae([0x69,0x64])]),_0x369493=_0x52bea3(_0x1941ae([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x369493[_0x1941ae([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x36420a['id'],_0x11d50a?_0x11d50a['id']:null,!0x0),_0x369493[_0x1941ae([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1941ae([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x369493[_0x1941ae([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x369493[_0x1941ae([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x240109,void(_0x369493[_0x1941ae([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x240109);}if(_0x407060(_0x1941ae([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x423a4e=_0x52bea3(_0x1941ae([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x423a4e[_0x1941ae([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1941ae([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x423a4e[_0x1941ae([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x423a4e[_0x1941ae([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x240109,_0x423a4e[_0x1941ae([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x240109;}_0x274a46[_0x1941ae([0x6d,0x6f,0x64,0x65,0x6c])][_0x1941ae([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x240109,_0x274a46[_0x1941ae([0x6d,0x6f,0x64,0x65,0x6c])][_0x1941ae([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x240109,_0x274a46[_0x1941ae([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1941ae([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3bca94(){return _0x407060(_0x1941ae([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x52bea3(_0x1941ae([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1941ae([0x73,0x74,0x61,0x74,0x65])]==_0x1941ae([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x9be48e(){return _0x407060(_0x1941ae([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 _0x4f95dc(){return _0x407060(_0x1941ae([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1e5e0d(_0x1fe2a2){const _0x42201c=_0x4ba740();_0x274a46[_0x42201c]=_0x1941ae([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])+_0x1fe2a2,_0x1fe2a2[_0x1941ae([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1941ae([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4ba740()]=_0x3f8084),_0x1fe2a2!=_0x1941ae([0x56,0x61,0x6c,0x69,0x64])&&_0x51f946();}function _0x4ba740(){const _0x1232b9=window[_0x1941ae([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1941ae([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1941ae([0x6e,0x6f,0x77])]())[_0x1941ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1941ae([0x2e]),'');let _0x45b728=_0x1941ae([0x74]);for(let _0x58beaa=0x0;_0x58beaa<_0x1232b9[_0x1941ae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58beaa+=0x2){let _0x28a8f5=window[_0x1941ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1232b9[_0x1941ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58beaa,_0x58beaa+0x2));_0x28a8f5>=_0x3540a8[_0x1941ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x28a8f5-=_0x3540a8[_0x1941ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45b728+=_0x3540a8[_0x28a8f5];}return _0x45b728;}function _0x1243ff(){const _0x3b4ee4=_0x1a64e9[_0x1941ae([0x73,0x70,0x6c,0x69,0x74])](_0x1941ae([0x2e]));if(0x3!=_0x3b4ee4[_0x1941ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x273aa9(_0x3b4ee4[0x1]);function _0x273aa9(_0x503ed8){const _0x547720=_0x4b9c65(_0x503ed8);return _0x547720&&_0x524d84()?_0x547720:null;function _0x524d84(){const _0x446f6b=_0x547720[_0x1941ae([0x6a,0x74,0x69])],_0x55b5e3=window[_0x1941ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x446f6b[_0x1941ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x446f6b[_0x1941ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x559293={..._0x547720,[_0x1941ae([0x6a,0x74,0x69])]:_0x446f6b[_0x1941ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x446f6b[_0x1941ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x559293[_0x1941ae([0x76,0x63])],_0x29c9e7(_0x559293)==_0x55b5e3;}}}async function _0x5ae316(){let _0x2bc213=!0x0;try{const _0x42a87f=_0x1a64e9[_0x1941ae([0x73,0x70,0x6c,0x69,0x74])](_0x1941ae([0x2e])),[_0x251693,_0x3bb777,_0x3d687b]=_0x42a87f;return _0x4ccf6e(_0x251693),await _0x16cbb3(_0x251693,_0x3bb777,_0x3d687b),_0x2bc213;}catch(_0xd5cf0e){return!0x1;}function _0x4ccf6e(_0x1ebac8){const _0x51c4e1=_0x4b9c65(_0x1ebac8);_0x51c4e1&&_0x51c4e1[_0x1941ae([0x61,0x6c,0x67])]==_0x1941ae([0x45,0x53,0x32,0x35,0x36])||(_0x2bc213=!0x1);}async function _0x16cbb3(_0x58561b,_0x3f7a06,_0x4ff842){const _0x5c5566=window[_0x1941ae([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1941ae([0x66,0x72,0x6f,0x6d])](_0x44594d(_0x4ff842),_0x3681f7=>_0x3681f7[_0x1941ae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x160cf9=new window[(_0x1941ae([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1941ae([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58561b+_0x1941ae([0x2e])+_0x3f7a06),_0x599d50=window[_0x1941ae([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1941ae([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x599d50)return;const _0x6b6774=await _0x599d50[_0x1941ae([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1941ae([0x6a,0x77,0x6b]),_0x5d9ce9,{[_0x1941ae([0x6e,0x61,0x6d,0x65])]:_0x1941ae([0x45,0x43,0x44,0x53,0x41]),[_0x1941ae([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1941ae([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1941ae([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x599d50[_0x1941ae([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1941ae([0x6e,0x61,0x6d,0x65])]:_0x1941ae([0x45,0x43,0x44,0x53,0x41]),[_0x1941ae([0x68,0x61,0x73,0x68])]:{[_0x1941ae([0x6e,0x61,0x6d,0x65])]:_0x1941ae([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6b6774,_0x5c5566,_0x160cf9)||(_0x2bc213=!0x1);}}function _0x4b9c65(_0x4c42a3){return _0x4c42a3[_0x1941ae([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1941ae([0x65,0x79]))?JSON[_0x1941ae([0x70,0x61,0x72,0x73,0x65])](_0x44594d(_0x4c42a3)):null;}function _0x44594d(_0x313495){return window[_0x1941ae([0x61,0x74,0x6f,0x62])](_0x313495[_0x1941ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1941ae([0x2b]))[_0x1941ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1941ae([0x2f])));}function _0x29c9e7(_0x3950b6){let _0x30ffaa=0x1505;function _0xb17bbd(_0x3dc8d9){for(let _0x5c1610=0x0;_0x5c1610<_0x3dc8d9[_0x1941ae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c1610++){const _0x3dc647=_0x3dc8d9[_0x1941ae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c1610);_0x30ffaa=(_0x30ffaa<<0x5)+_0x30ffaa+_0x3dc647,_0x30ffaa&=_0x30ffaa;}}function _0x2a7b2(_0x19d8e9){Array[_0x1941ae([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19d8e9)?_0x19d8e9[_0x1941ae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a7b2):_0x19d8e9&&typeof _0x19d8e9==_0x1941ae([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1941ae([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19d8e9)[_0x1941ae([0x73,0x6f,0x72,0x74])]()[_0x1941ae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d751e,_0x24f0bc])=>{_0xb17bbd(_0x5d751e),_0x2a7b2(_0x24f0bc);}):_0xb17bbd(window[_0x1941ae([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19d8e9));}return _0x2a7b2(_0x3950b6),_0x30ffaa>>>0x0;}function _0x39afd8(_0x96371f){return _0x96371f[_0x1941ae([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1941ae([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1941ae([0x30]));}function _0x597934(_0x1038bb){return _0x1038bb[_0x1941ae([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1941ae([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1941ae([0x6a,0x6f,0x69,0x6e])]('');}function _0x407060(_0x2a6ff7){return _0x274a46[_0x1941ae([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1941ae([0x68,0x61,0x73])](_0x2a6ff7);}function _0x52bea3(_0x48ed3c){return _0x274a46[_0x1941ae([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1941ae([0x67,0x65,0x74])](_0x48ed3c);}function _0x240109(){}function _0x1941ae(_0x5dd464){return _0x5dd464['map'](_0x514f83=>String['fromCharCode'](_0x514f83))['join']('');}_0x1e5e0d(await _0x530ca9());}(this);}['createRevision'](_0x2914fc){const _0x55ad15=this['editor']['plugins']['get']('Users');return new h({'id':_0x2914fc['id'],'name':_0x2914fc['name'],'creator':_0x2914fc['creatorId']?_0x55ad15['getUser'](_0x2914fc['creatorId']):null,'diffData':_0x2914fc['diffData']||_0x2914fc['data'],'authors':_0x2914fc['authorsIds']['map'](_0x441c26=>_0x55ad15['getUser'](_0x441c26)),'createdAt':new Date(_0x2914fc['createdAt']),'attributes':_0x2914fc['attributes'],'fromVersion':_0x2914fc['fromVersion'],'toVersion':_0x2914fc['toVersion']});}['addRevision'](_0x1e3a4b,_0x55c017=0x0){this['_revisions']['add'](_0x1e3a4b,_0x55c017);}['getRevision'](_0x44d4ba){return this['_revisions']['get'](_0x44d4ba);}['getRevisions'](_0x389d81={'toJSON':!0x1}){const _0x24e0d3=Array['from'](this['_revisions']);return _0x24e0d3['reverse'](),_0x389d81['toJSON']?_0x24e0d3['map'](_0x13db68=>_0x13db68['toJSON']()):_0x24e0d3;}['getIndex'](_0xfc9ee3){return this['_revisions']['getIndex'](_0xfc9ee3);}['getEarlierVisibleRevision'](_0x538e3c){const [,_0x1d241a]=this['getRevisionsIterator'](_0x538e3c,{'direction':'earlier'});return _0x1d241a;}['getLaterVisibleRevision'](_0xe3ba1e){const [,_0x27720b]=this['getRevisionsIterator'](_0xe3ba1e,{'direction':'later'});return _0x27720b;}['getRevisionsInDiff'](_0x1271ca){const _0x447130=[];for(const _0xcf7fa0 of this['getRevisionsIterator'](_0x1271ca['newRevisionId']))if(_0x447130['push'](_0xcf7fa0),_0xcf7fa0['id']===_0x1271ca['oldRevisionId'])break;return _0x447130;}*['getRevisionsIterator'](_0x40c2bf,{direction:_0x4b7433='earlier',filter:_0x23b1a9=()=>!0x0}={}){const _0x30dfea='earlier'===_0x4b7433?0x1:-0x1;let _0x39660a=this['_revisions']['get'](_0x40c2bf),_0x5e968d=this['getIndex'](_0x39660a);for(yield _0x39660a;_0x39660a;){if(_0x5e968d+=_0x30dfea,_0x39660a=this['getRevision'](_0x5e968d),!_0x39660a)return;_0x23b1a9(_0x39660a)&&(yield _0x39660a);}}}function m(_0x2641de,_0x24d996,_0x169c79){const t=_0x2641de['t'];switch(_0x24d996){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'},_0x169c79);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x169c79);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x34667d,'a':_0x42735c,'e':_0xdda3ba,'r':_0xb44386,'u':_0x3c85ff};class u extends _0x545567{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x586aa9,j,_0x32c3b1];}constructor(_0x2e0b7d){super(_0x2e0b7d),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2cc45d=_0x317a84();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2cc45d},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x196778=this['repository']['getRevision'](0x0),_0x54f826=_0x196778&&null===_0x196778['creator']?_0x196778:null;if(this['_continueCurrentRevision']=!!_0x54f826&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3fb2a5=this['_source']['getCurrentRevisionId'](),_0x14c2d1=this['repository']['getRevision'](_0x3fb2a5);if(_0x14c2d1)this['_startingVersion']=_0x14c2d1['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x8426cd=this['_source']['history']['_operations']['find'](_0x2baefa=>!_0x2baefa['_isInit']),_0x1f6770=_0x8426cd?_0x8426cd['baseVersion']:this['_source']['history']['version'];_0x196778?(_0x196778['toVersion']<_0x1f6770&&_0x196778['_update']({'toVersion':_0x1f6770}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x54f826['id'],this['_startingVersion']=_0x54f826['fromVersion']):(this['_startingVersion']=_0x196778['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1f6770,this['_continueCurrentRevision']=!0x1);}}else _0x54f826&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x54f826['toVersion'],this['editor']['model']['document']['history']['version']),_0x54f826['fromVersion']===_0x54f826['toVersion']?(0x0!==_0x54f826['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x54f826['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x54f826['id'],this['_startingVersion']=_0x54f826['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',_0x3065c5=>!_0x3065c5),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4c727a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b65fd;for(const _0x268652 in _0x4c727a){const _0x222069=_0x268652,_0x450752=_0x4c727a[_0x222069];if('revisionHistoryLicenseKeyValid'==_0x450752||'revisionHistoryLicenseKeyInvalid'==_0x450752||'revisionHistoryLicenseKeyExpired'==_0x450752||'revisionHistoryLicenseKeyDomainLimit'==_0x450752||'revisionHistoryLicenseKeyNotAllowed'==_0x450752||'revisionHistoryLicenseKeyEvaluationLimit'==_0x450752||'revisionHistoryLicenseKeyTrialLimit'==_0x450752||'revisionHistoryLicenseKeyUsageLimit'==_0x450752){delete _0x4c727a[_0x222069],_0x1b65fd=_0x450752,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1b65fd&&_0x4c727a['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1b65fd&&_0x4c727a['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1b65fd&&_0x4c727a['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1b65fd&&_0x4c727a['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1b65fd&&_0x4c727a['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1b65fd&&_0x4c727a['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1b65fd&&_0x4c727a['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4ba5c0=this['repository']['getRevision'](0x0),_0x1309af=await this['getRevisionDocumentData'](_0x4ba5c0),_0x1a52b5=await this['getRevisionRootsAttributes'](_0x4ba5c0);this['_replaceEditorDataWithRevisionData'](_0x1309af,_0x1a52b5);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5ad83f){this['_source']=_0x5ad83f;}async['update'](){const _0x37ca=await this['_source']['getLatestVersion']();if(_0x37ca>this['currentRevision']['toVersion']){await this['_loadState']();const _0x314f29=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x37ca});_0x314f29['authors']=_0x314f29['authorsIds']['map'](_0x1f09d1=>this['editor']['plugins']['get']('Users')['getUser'](_0x1f09d1)),this['currentRevision']['_update'](_0x314f29);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x3317b2={},_0x3edc61=null){const _0x236888=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3edc61>this['currentRevision']['toVersion']&&(_0x3edc61=null),null===_0x3edc61&&(_0x3edc61=await this['_source']['getLatestVersion']());const _0x5b4a70=this['_getFromVersion'](_0x3edc61),_0x5b54da=this['buildRevisionData']({'from':_0x5b4a70,'to':_0x3edc61});if(this['currentRevision']['toVersion']<_0x3edc61){const _0x8c3919=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3edc61,'to':_0x3edc61});_0x8c3919['authors']=[],_0x8c3919['authorsIds']=[],_0x8c3919['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x8c3919,!0x0),delete _0x8c3919['authors'],_0x236888['push'](_0x8c3919);}_0x3317b2['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3317b2['name']=_0x3317b2['name']||null,_0x3317b2['id']=_0x3317b2['id']||_0x317a84(),_0x3317b2={..._0x3317b2,..._0x5b54da};const _0x4985a6=this['addRevisionData'](_0x3317b2);_0x236888['push'](_0x3317b2);const _0x426af4=this['repository']['getIndex'](_0x4985a6);if(0x0!==_0x426af4){const _0x568e02=this['repository']['getRevision'](_0x426af4-0x1);if(_0x568e02['fromVersion']!==_0x3edc61){const _0x6b5156=this['_revisionDataBuilder']['getData'](_0x3edc61,_0x568e02['toVersion']),_0x5472be={'id':_0x568e02['id'],'diffData':_0x6b5156['diffData'],'authorsIds':_0x6b5156['authorsIds'],'authors':_0x6b5156['authorsIds']['map'](_0x322ead=>this['editor']['plugins']['get']('Users')['getUser'](_0x322ead)),'fromVersion':_0x3edc61};_0x568e02===this['currentRevision']&&(_0x5472be['createdAt']=new Date(_0x3317b2['createdAt']['getTime']()+0xa)),_0x568e02['_update'](_0x5472be,!0x0),delete _0x5472be['authors'],_0x236888['push'](_0x5472be);}}if(this['adapter']){for(const _0x36029c of _0x236888)this['_bufferUpdate'](_0x36029c['id'],_0x36029c,!0x0);this['sendBufferedUpdates']();}return _0x4985a6;}['addRevisionData'](_0x31e0a9){const _0x2c5ce8=this['repository']['createRevision'](_0x31e0a9);return this['adapter']&&_0x2c5ce8['on']('_update',(_0xe9c997,_0x12bed0,_0x562bf6)=>{_0x562bf6||(this['_bufferUpdate'](_0x12bed0['id'],_0x12bed0,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2c5ce8,this['_findInsertionIndex'](_0x2c5ce8)),_0x2c5ce8;}async['getRevisionDocumentData'](_0x4ebbd6){await this['_loadRevisionData'](_0x4ebbd6);const _0x42f2e1={};for(const _0x56e3dd in _0x4ebbd6['diffData']){if(_0x4ebbd6['diffData'][_0x56e3dd]['attachChange']&&!_0x4ebbd6['diffData'][_0x56e3dd]['attachChange']['isAttached'])continue;const _0x1d6034=this['_removeRevisionMarkers'](JSON['parse'](_0x4ebbd6['diffData'][_0x56e3dd]['insertions'])),_0x9ef0df=this['editor']['editing']['view']['document'],_0x96b0bc=new _0x5aa0a3(_0x9ef0df,_0x1d6034['map'](_0x41fcce=>P(_0x41fcce,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x42f2e1[_0x56e3dd]=this['editor']['data']['processor']['toData'](_0x96b0bc),this['editor']['data']['processor']['useFillerType']('default');}return _0x42f2e1;}async['getRevisionRootsAttributes'](_0x440084){await this['_loadRevisionData'](_0x440084);const _0xbd3fdf={};for(const _0x325c4b in _0x440084['diffData'])_0x440084['diffData'][_0x325c4b]['attachChange']&&!_0x440084['diffData'][_0x325c4b]['attachChange']['isAttached']||(_0xbd3fdf[_0x325c4b]=_0x440084['diffData'][_0x325c4b]['attributesAfter']||{});return _0xbd3fdf;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x659d91=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x396326=0x0;_0x396326<_0x659d91['length'];_0x396326++){const _0xcda75=_0x659d91[_0x396326];let _0x5bac3a=!0x1;for(const _0xef5071 of Object['keys'](_0xcda75))void 0x0===_0xcda75[_0xef5071]?delete _0xcda75[_0xef5071]:'id'!==_0xef5071&&(_0x5bac3a=!0x0);_0x5bac3a||(_0x659d91[_0x396326]=null);}if(_0x659d91=_0x659d91['filter'](_0x5d7e37=>null!==_0x5d7e37),!_0x659d91['length'])return;for(let _0x3a46b4=0x0;_0x3a46b4<_0x659d91['length'];_0x3a46b4++){const _0x43283b=_0x659d91[_0x3a46b4];void 0x0!==_0x43283b['fromVersion']&&void 0x0===_0x43283b['toVersion']&&(_0x43283b['toVersion']=this['repository']['getRevision'](_0x43283b['id'])['toVersion']),void 0x0!==_0x43283b['toVersion']&&void 0x0===_0x43283b['fromVersion']&&(_0x43283b['fromVersion']=this['repository']['getRevision'](_0x43283b['id'])['fromVersion']);}const _0x3bb9c6=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x659d91,_0x3bb9c6)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3d41f3=>{if(_0x3d41f3){for(const _0x14f529 of _0x3d41f3)this['setRevisionData']({'id':_0x14f529['id'],'createdAt':_0x14f529['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x5a3e2b,_0x53d542){let _0x2f8124=this['editor']['config']['get']('initialData'),_0x38acdf=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2f8124){_0x2f8124={};for(const _0x1d27c9 of this['editor']['model']['document']['getRootNames']())_0x2f8124[_0x1d27c9]='';}if('string'==typeof _0x2f8124&&(_0x2f8124={'main':_0x2f8124}),void 0x0===_0x38acdf){_0x38acdf={};for(const _0xc190d3 of this['editor']['model']['document']['getRootNames']())_0x38acdf[_0xc190d3]={};}let _0x363ed5=!0x1;const _0x4d9ae9=Object['keys'](_0x2f8124),_0x10de62=Object['keys'](_0x5a3e2b);for(const _0x34fe29 of _0x4d9ae9){if(_0x2f8124[_0x34fe29]!==_0x5a3e2b[_0x34fe29]&&''!==_0x2f8124[_0x34fe29]['trim']()){_0x363ed5=!0x0;break;}if(!_0x15c7db(_0x38acdf[_0x34fe29],_0x53d542[_0x34fe29])&&Object['keys'](_0x38acdf[_0x34fe29])['length']>0x0){_0x363ed5=!0x0;break;}}_0x363ed5||(_0x363ed5=_0x10de62['some'](_0x2f1029=>!this['editor']['model']['document']['getRoot'](_0x2f1029))),_0x363ed5&&_0x18f812('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2f8124,'editorRootsAttributes':_0x38acdf,'revisionData':_0x5a3e2b,'revisionRootsAttributes':_0x53d542}),this['editor']['config']['set']('initialData',_0x5a3e2b),this['editor']['config']['set']('rootsAttributes',_0x53d542);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x6c256=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x6c256['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x56c98e){const _0x4e4f2a=this['repository']['getRevisions']();_0x4e4f2a['reverse']();let _0x29a075=0x0;for(;_0x29a075<_0x4e4f2a['length'];){const _0x47168d=_0x4e4f2a[_0x29a075];if(_0x47168d===this['currentRevision']){_0x29a075++;continue;}if(_0x47168d['id']===this['_initialRevisionId'])break;const _0x1e3d2c=_0x56c98e['toVersion']-_0x47168d['toVersion']||_0x56c98e['fromVersion']-_0x47168d['fromVersion'];if(_0x1e3d2c>0x0)break;if(_0x1e3d2c<0x0)_0x29a075++;else{if(!_0x56c98e['creator']&&_0x47168d['creator'])break;if(_0x47168d['creator']||!_0x56c98e['creator']){if(_0x56c98e['createdAt']>_0x47168d['createdAt'])break;_0x29a075++;}else _0x29a075++;}}return _0x29a075;}['setRevisionData'](_0x25244d){const _0x19aa5c=this['repository']['getRevision'](_0x25244d['id']);if(_0x25244d['createdAt']&&(_0x25244d['createdAt']=new Date(_0x25244d['createdAt'])),_0x25244d['authorsIds']){const _0x35ab42=this['editor']['plugins']['get']('Users');_0x25244d['authors']=_0x25244d['authorsIds']['map'](_0x1b2f6b=>_0x35ab42['getUser'](_0x1b2f6b));}_0x19aa5c['_update'](_0x25244d,!0x0);}['buildRevisionData']({revision:_0x1f4d0b=null,from:_0xf4e9eb=null,to:_0xbef40e=null}){_0xf4e9eb=null!==_0xf4e9eb?_0xf4e9eb:_0x1f4d0b['fromVersion'],_0xbef40e=null!==_0xbef40e?_0xbef40e:_0x1f4d0b['toVersion'];const _0x2ab1fd=this['_revisionDataBuilder']['getData'](_0xf4e9eb,_0xbef40e),_0x363663={'diffData':_0x2ab1fd['diffData'],'authorsIds':_0x2ab1fd['authorsIds'],'fromVersion':_0xf4e9eb,'toVersion':_0xbef40e};if(!_0x1f4d0b||_0xbef40e!==_0x1f4d0b['toVersion']){const _0x50e3f3=_0xbef40e-0x1,_0x369412=this['_source']['history']['getOperation'](_0x50e3f3);_0x363663['createdAt']=_0x369412&&_0x369412['createdAt']||new Date();}if(this['_loadedStateData']&&_0xf4e9eb===this['_loadedStateData']['fromVersion']){for(const _0x58c2a2 of this['_loadedStateData']['authors'])_0x363663['authorsIds']['includes'](_0x58c2a2['id'])||_0x363663['authorsIds']['push'](_0x58c2a2['id']);}return _0x363663;}['_loadRevisionData'](_0x103197){if(!_0x103197||_0x103197['diffData'])return Promise['resolve']();{const _0x408c7c=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x408c7c,'revisionId':_0x103197['id']})['then'](_0x50e301=>{_0x103197['diffData']=_0x50e301['diffData'];});}}['_bufferUpdate'](_0x2ea882,_0x2ff143,_0x312d7c){if(this['_bufferedUpdates']['has'](_0x2ea882)){const _0x2de276=this['_bufferedUpdates']['get'](_0x2ea882);_0x2ff143=_0x312d7c?{..._0x2de276,..._0x2ff143}:{..._0x2ff143,..._0x2de276};}this['_bufferedUpdates']['set'](_0x2ea882,_0x2ff143);}['_getFromVersion'](_0x5e72d8){const _0x1a28f8=this['repository']['getRevisions']();_0x1a28f8['reverse'](),_0x1a28f8['shift']();const _0x409ca8=_0x1a28f8['find'](_0x230579=>_0x230579['toVersion']<=_0x5e72d8)['toVersion'];return _0x409ca8<this['_startingVersion']?this['_startingVersion']:_0x409ca8;}['_createInitialRevision'](_0x2ddea5){const _0x504907=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x504907)this['_initialRevisionId']=_0x504907['id'];else{const _0x1484b0=!this['editor']['model']['document']['roots']['find'](_0x522304=>this['editor']['model']['hasContent'](_0x522304)),_0x5cc64f=this['editor']['plugins']['get']('Users')['me']['id'],_0x4c1f4d=m(this['editor']['locale'],_0x1484b0?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2ddea5,'to':_0x2ddea5,'id':this['_initialRevisionId'],'name':_0x4c1f4d,'creatorId':_0x5cc64f});}}['_createCurrentRevision'](_0x42647b){const _0x3f8ca3=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3f8ca3),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x42647b,'to':_0x42647b,'id':_0x3f8ca3,'name':'','creatorId':null}));}['_makeRevision']({name:_0x228119,from:_0x2a36cc,to:_0x4926d0,creatorId:_0x44a804,id:_0x57301b}){const _0x7b451c=this['buildRevisionData']({'from':_0x2a36cc,'to':_0x4926d0});_0x7b451c['name']=_0x228119,_0x7b451c['creatorId']=_0x44a804,_0x7b451c['id']=_0x57301b;const _0x1f7e9c=this['addRevisionData'](_0x7b451c);return this['adapter']&&this['_bufferUpdate'](_0x7b451c['id'],_0x7b451c,!0x0),_0x1f7e9c;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5d24f4){return(_0x5d24f4=_0x5d24f4['filter'](_0xbddfc2=>!_0xbddfc2['name']||'revision-start'!==_0xbddfc2['name']&&'revision-end'!==_0xbddfc2['name']))['forEach'](_0x53422e=>{'string'!=typeof _0x53422e&&(_0x53422e['children']=this['_removeRevisionMarkers'](_0x53422e['children']),_0x53422e['attributes']=_0x53422e['attributes']['filter'](_0x28f355=>!_0x28f355[0x0]['startsWith']('data-revision-')));}),_0x5d24f4;}}function P(_0x5bbac1,_0x2590c4){const _0x26aa9a=_0x2590c4['editing']['view']['document'];if('string'==typeof _0x5bbac1)return new _0x2de7f7(_0x26aa9a,_0x5bbac1);{const _0x3236b6=_0x5bbac1['children']['map'](_0xd1f8ad=>P(_0xd1f8ad,_0x2590c4));return new(E[_0x5bbac1['type']]||_0x3bf831)(_0x26aa9a,_0x5bbac1['name'],_0x5bbac1['attributes'],_0x3236b6);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1e3a65){this['editor']=_0x1e3a65,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'](_0x1ede19){this['source']=_0x1ede19;const _0xd5c50c=new Map(),_0x5331c8=new Map(),_0x228eaa=this['editor']['model']['document']['roots']['map'](_0x34f8c9=>_0x34f8c9['rootName']);for(const _0x535bb9 of _0x228eaa){const _0x45e1e3=this['editor']['model']['document']['getRoot'](_0x535bb9),_0x25f9a4=T(_0x45e1e3);_0xd5c50c['set'](_0x535bb9,_0x25f9a4),_0x5331c8['set'](_0x535bb9,Object['fromEntries'](_0x45e1e3['getAttributes']()));}const _0x35bb23=Array['from'](this['editor']['model']['markers'])['map'](_0x496ad1=>[_0x496ad1['name'],_0x496ad1['getRange']()]),_0x61b34d=this['source']['version'];this['_saveMetaData'](_0x61b34d,_0xd5c50c,_0x35bb23,_0x5331c8),this['_startingRevisionId']=this['_revisionId'];const _0x366340=new Map(),_0x3cec41=new Map();for(const _0x33563e of _0x228eaa){const _0x25ac41=F(_0x33563e);_0x366340['set'](_0x33563e,_0x25ac41),_0x3cec41['set'](_0x33563e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x366340,[],_0x3cec41);}['getData'](_0x360714,_0x1c2ec8){if(this['_lastFrom']===_0x360714&&this['_lastTo']<=_0x1c2ec8)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1c2ec8,!0x0);else{if(!this['_savedMetaData']['has'](_0x360714)){const _0x125eb8=this['_getPreviousFrom'](_0x360714);this['_calculateMetaData'](_0x125eb8,_0x360714,!0x1);}this['_calculateMetaData'](_0x360714,_0x1c2ec8,!0x0);}return this['_lastFrom']=_0x360714,this['_lastTo']=_0x1c2ec8,this['_getState']();}['loadState'](_0x2fedd1){this['_reset'](),this['_lastFrom']=_0x2fedd1['fromVersion'],this['_lastTo']=_0x2fedd1['toVersion'];for(const _0x1f6d80 in _0x2fedd1['diffData']){const _0x5af8f8=_0x2fedd1['diffData'][_0x1f6d80]['attachChange'],_0x5a8ba0=_0xf10199(_0x2fedd1['diffData'][_0x1f6d80]['attributesBefore'])||{},_0x4b2545=this['_makeModelFromViewString'](_0x2fedd1['diffData'][_0x1f6d80]['deletions']);_0x4b2545['rootName']=_0x1f6d80,_0x4b2545['_isAttached']=!_0x5af8f8||!_0x5af8f8['isAttached'],_0x4b2545['isAttached']=()=>_0x4b2545['_isAttached'],this['_baseRoots']['set'](_0x1f6d80,_0x4b2545),this['_baseRootsAttributes']['set'](_0x1f6d80,_0x5a8ba0),_0x5af8f8&&this['_touchedRoots']['set'](_0x1f6d80,_0x5af8f8);const _0xa0527e=this['_makeIdsRoot'](_0x4b2545);this['_baseIdsRoots']['set'](_0x1f6d80,_0xa0527e);for(const [_0x818e1,_0x815141]of _0x4b2545['markers']){if(!_0x818e1['startsWith']('revision:'))continue;const _0x12758f=_0x818e1['split'](':')[0x2];for(const _0x52ed1a of _0x815141['getWalker']({'singleCharacters':!0x0})){const _0x2b3682=this['_getVidAttributeName'](_0x52ed1a),_0xbbe532='elementEnd'==_0x52ed1a['type']?_0x52ed1a['previousPosition']['path']['slice'](0x0,-0x1):_0x52ed1a['previousPosition']['path'],_0x3f9a5f=_0xa0527e['getNodeByPath'](_0xbbe532)['getAttribute'](_0x2b3682);this['_touched']['set'](_0x3f9a5f,{'userId':_0x12758f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4ce6a9=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x21f126=>!this['_touched']['has'](_0x21f126));let _0x1027cd=0x0;const _0x51e498=new Map();for(const _0x464400 in _0x2fedd1['diffData']){const _0x208020=_0x2fedd1['diffData'][_0x464400]['attachChange'],_0x4ca2a2=_0xf10199(_0x2fedd1['diffData'][_0x464400]['attributesAfter'])||{},_0x377f75=this['_makeModelFromViewString'](_0x2fedd1['diffData'][_0x464400]['insertions']);_0x377f75['rootName']=_0x464400,_0x377f75['_isAttached']=!_0x208020||_0x208020['isAttached'],_0x377f75['isAttached']=()=>_0x377f75['_isAttached'],this['_diffRoots']['set'](_0x464400,_0x377f75),this['_diffRootsAttributes']['set'](_0x464400,_0x4ca2a2);const _0x3a8dc0=this['_makeIdsRoot'](_0x377f75,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x464400,_0x3a8dc0),_0x51e498['set'](_0x464400,_0x377f75['isAttached']()?_0x4ca2a2:{});for(const [_0x4a4d61,_0x2e5ce4]of _0x377f75['markers']){if(!_0x4a4d61['startsWith']('revision:'))continue;const _0x33f3c4=_0x4a4d61['split'](':')[0x2];for(const _0x17caf1 of _0x2e5ce4['getWalker']({'singleCharacters':!0x0})){const _0x1e959f=this['_getVidAttributeName'](_0x17caf1),_0x2c052f=this['_revisionId']++,_0xd7c86a='elementEnd'==_0x17caf1['type']?_0x17caf1['previousPosition']['path']['slice'](0x0,-0x1):_0x17caf1['previousPosition']['path'];_0x3a8dc0['getNodeByPath'](_0xd7c86a)['_setAttribute'](_0x1e959f,_0x2c052f),this['_touched']['set'](_0x2c052f,{'userId':_0x33f3c4});}}for(const _0x58fde0 of this['editor']['model']['createRangeIn'](_0x377f75)['getWalker']({'singleCharacters':!0x0})){const _0x3565be=this['_getVidAttributeName'](_0x58fde0),_0xe87cec='elementEnd'==_0x58fde0['type']?_0x58fde0['previousPosition']['path']['slice'](0x0,-0x1):_0x58fde0['previousPosition']['path'],_0x5f4c93=_0x3a8dc0['getNodeByPath'](_0xe87cec);_0x5f4c93['getAttribute'](_0x3565be)>0x0||_0x5f4c93['_setAttribute'](_0x3565be,_0x4ce6a9[_0x1027cd++]);}for(const [_0x21a5cf,_0x22410d]of _0x377f75['markers'])_0x21a5cf['startsWith']('revision:')||this['_markers']['set'](_0x21a5cf,_0x22410d);}const _0x48727e=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x48727e),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x48727e,0x1));const _0x4e0f2b=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4e0f2b),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4e0f2b,0x1));const _0x599bff=Array['from'](this['_diffRoots'])['map'](([_0x10ecae,_0x5651f4])=>[_0x10ecae,T(_0x5651f4)]);this['_saveMetaData'](this['_lastTo'],_0x599bff,this['_markers'],_0x51e498);}['_makeModelFromViewString'](_0x5ccae9){const _0x293ff9=JSON['parse'](_0x5ccae9),_0x4c3b5d=this['editor']['editing']['view']['document'],_0x7f1406=new _0x5aa0a3(_0x4c3b5d,_0x293ff9['map'](_0x4aa2cd=>P(_0x4aa2cd,this['editor'])));return this['editor']['data']['toModel'](_0x7f1406);}['_saveMetaData'](_0x4e28ed,_0xe332b9,_0x5d1f1a,_0x26250e){const _0x16e380=new Map(_0xe332b9),_0x3cc01e=new Map(_0xf10199(_0x26250e)),_0xb55465=new Map();for(const [_0x138b96,_0x39171a]of _0x5d1f1a)_0xb55465['set'](_0x138b96,{'start':_0x39171a['start']['clone'](),'end':_0x39171a['end']['clone'](),'rootName':_0x39171a['root']['rootName']});this['_savedMetaData']['set'](_0x4e28ed,{'roots':_0x16e380,'markers':_0xb55465,'rootsAttributes':_0x3cc01e});}['_removeMetaData'](_0xdcf249){this['_savedMetaData']['delete'](_0xdcf249);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x200abd,_0x539061=null){let _0x45a431=null;_0x200abd['is']('documentFragment')||(_0x45a431=new ut(_0x200abd['name'],{'vid_start':null===_0x539061?this['_revisionId']++:_0x539061++}));const _0x101ebb=[];for(const _0x45265b of _0x200abd['getChildren']())if(_0x45265b['is']('element')){_0x101ebb['push'](this['_makeIdsRoot'](_0x45265b,_0x539061));const _0x1af4cf=_0x101ebb[_0x101ebb['length']-0x1];null!==_0x539061&&(_0x539061=_0x1af4cf['is']('element','$text')?_0x1af4cf['getAttribute']('vid')+0x1:_0x1af4cf['getAttribute']('vid_end')+0x1);}else{for(let _0xb0150a=0x0;_0xb0150a<_0x45265b['offsetSize'];_0xb0150a++)_0x101ebb['push'](new ut('$text',{'vid':null===_0x539061?this['_revisionId']++:_0x539061++}));}if(_0x200abd['is']('documentFragment')){const _0x5ada3a=F(_0x200abd['rootName']);return _0x5ada3a['_insertChild'](0x0,_0x101ebb),_0x5ada3a;}return _0x45a431['_setAttribute']('vid_end',null===_0x539061?this['_revisionId']++:_0x539061++),_0x45a431['_insertChild'](0x0,_0x101ebb),_0x45a431;}['_calculateMetaData'](_0x41b5b4,_0x33f562,_0x2bc489){this['_reset']();const {roots:_0x1ec771,markers:_0x2e53bd,rootsAttributes:_0x2c011d}=this['_savedMetaData']['get'](_0x41b5b4);this['_baseRoots']=new Map(_0x1ec771),this['_baseRootsAttributes']=new Map(_0xf10199(_0x2c011d));for(const [_0xd6f681,_0x2e1eb8]of this['_baseRoots'])if('$graveyard'!==_0xd6f681&&(this['_diffRoots']['set'](_0xd6f681,T(_0x2e1eb8)),this['_diffRootsAttributes']=new Map(_0xf10199(_0x2c011d)),_0x2bc489)){const _0x93e5cc=this['_revisionId'];this['_idsRoots']['set'](_0xd6f681,this['_makeIdsRoot'](_0x2e1eb8)),this['_baseIdsRoots']['set'](_0xd6f681,this['_makeIdsRoot'](_0x2e1eb8,_0x93e5cc));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2bc489&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4ea54f,_0x529f57]of _0x2e53bd){const _0x5b159c=this['_baseRoots']['get'](_0x529f57['rootName']),_0x2589cb=this['_diffRoots']['get'](_0x529f57['rootName']),_0x564d5e=new ft(this['_fixPosition'](_0x529f57['start'],_0x5b159c),this['_fixPosition'](_0x529f57['end'],_0x5b159c)),_0xd8c250=this['_fixRange'](_0x564d5e,_0x2589cb);_0x5b159c['markers']['set'](_0x4ea54f,_0x564d5e),this['_markers']['set'](_0x4ea54f,_0xd8c250);}this['_applyOperations'](_0x41b5b4,_0x33f562,_0x2bc489);}['_applyOperations'](_0x2567d4,_0xcc1daa,_0x146ea2){for(const _0x8afa3d of this['source']['getOperations'](_0x2567d4,_0xcc1daa))this['_handleOperation'](_0x8afa3d,_0x146ea2);for(const _0x2240ad of this['_diffRoots']['values']())_0x2240ad['markers']['clear']();for(const [_0x345d5a,_0x233282]of this['_markers']){this['_diffRoots']['get'](_0x233282['root']['rootName'])['markers']['set'](_0x345d5a,_0x233282['clone']());}const _0x34967c=new Map(),_0x22a0a5=new Map();for(const [_0x4d1e82,_0x74b060]of this['_diffRoots'])_0x34967c['set'](_0x4d1e82,T(_0x74b060)),_0x22a0a5['set'](_0x4d1e82,this['_diffRootsAttributes']['get'](_0x4d1e82));this['_saveMetaData'](_0xcc1daa,_0x34967c,this['_markers'],_0x22a0a5);}['_getPreviousFrom'](_0x28be22){const _0x177550=Array['from'](this['_savedMetaData']['keys']());_0x177550['sort']((_0x5c575a,_0x15fb85)=>_0x5c575a-_0x15fb85),_0x177550['reverse']();for(const _0x5c5acc of _0x177550)if(_0x5c5acc<_0x28be22)return _0x5c5acc;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x57990c,_0x3aa31f){const _0x2ffcc7=Array['from'](_0x3aa31f['markers'])['map'](([_0x356edd,_0x6a2844])=>[_0x356edd,this['_fixRange'](_0x6a2844,_0x57990c)]);_0x57990c['markers']=new Map(_0x2ffcc7);}['_transformMarkers'](_0x18e99d){for(const _0x2f3480 of this['_markers']['values']()){const _0xabb69d=_0x2f3480['getTransformedByOperation'](_0x18e99d),_0x12499d=ft['_createFromRanges'](_0xabb69d);_0x2f3480['start']=_0x12499d['start'],_0x2f3480['end']=_0x12499d['end'];}}['_handleOperation'](_0x4183a5,_0x5b1af3){if('addRoot'!=_0x4183a5['type']&&'detachRoot'!=_0x4183a5['type']){if('insert'==_0x4183a5['type']){const _0x5d1423=_0x4183a5['position']['root']['rootName'];this['_diffRoots']['has'](_0x5d1423)||(this['_diffRoots']['set'](_0x5d1423,F(_0x5d1423,!0x0)),this['_diffRootsAttributes']['set'](_0x5d1423,{}),_0x5b1af3&&this['_idsRoots']['set'](_0x5d1423,F(_0x5d1423,!0x0)));}else{if('addRootAttribute'==_0x4183a5['type']||'removeRootAttribute'==_0x4183a5['type']||'changeRootAttribute'==_0x4183a5['type'])return void this['_handleRootAttributeOperation'](_0x4183a5);'marker'==_0x4183a5['type']&&this['_handleMarkerOperation'](_0x4183a5);}if('marker'!==_0x4183a5['type']){const _0x307e7d=this['_cloneOperation'](_0x4183a5,this['_diffRoots']);_0x307e7d['_execute'](),this['_transformMarkers'](_0x307e7d);}if(_0x5b1af3)switch(_0x4183a5['type']){case'insert':this['_handleInsertOperation'](_0x4183a5);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4183a5);break;case'merge':this['_handleMergeOperation'](_0x4183a5);break;case'split':this['_handleSplitOperation'](_0x4183a5);}}else this['_handleRootOperation'](_0x4183a5,_0x5b1af3);}['_cloneOperation'](_0xb4ffd7,_0x7f4b49){const _0xbcb8ed=_0xb4ffd7['clone']();return _0xbcb8ed['_authorId']=_0xb4ffd7['_authorId'],this['_fixOperation'](_0xbcb8ed,_0x7f4b49),_0xbcb8ed;}['_getBaseVids'](_0x3a2049){return _0x3a2049['map'](_0x4cfd5c=>{const _0x53048c=this['_getVidAttributeName'](_0x4cfd5c);return Number(_0x4cfd5c['item']['getAttribute'](_0x53048c));});}['_generateTape'](_0x399a1f,_0x4cad7b){if(_0x399a1f['is']('element','$text'))_0x4cad7b['push']({'item':_0x399a1f,'type':'text'});else{_0x399a1f['is']('element')&&_0x4cad7b['push']({'item':_0x399a1f,'type':'elementStart'});for(const _0x54f4cd of _0x399a1f['getChildren']())this['_generateTape'](_0x54f4cd,_0x4cad7b);_0x399a1f['is']('element')&&_0x4cad7b['push']({'item':_0x399a1f,'type':'elementEnd'});}return _0x4cad7b;}['_getState'](){const _0x1efc8b=new Map(this['_touched']),_0x3a5dde=new Map(_0x1efc8b),_0x1ee05d=new Map(),_0x415e28={'insertions':{},'deletions':{}},_0x3a03a0={'insertions':{},'deletions':{}},_0x246f7a=new Map(),_0x5d86be=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5d86be['delete']('$graveyard');for(const _0x5675ed of _0x5d86be){const _0x5bdd09=this['_diffRoots']['get'](_0x5675ed)||F(_0x5675ed,!0x1),_0x4bfb2f=this['_baseRoots']['get'](_0x5675ed)||F(_0x5675ed,!0x1);_0x5bdd09['isAttached']()||_0x4bfb2f['isAttached']()?(_0x415e28['insertions'][_0x5675ed]=T(_0x5bdd09),_0x415e28['deletions'][_0x5675ed]=T(_0x4bfb2f),this['_copyMarkers'](_0x415e28['deletions'][_0x5675ed],_0x4bfb2f),this['_copyMarkers'](_0x415e28['insertions'][_0x5675ed],_0x5bdd09),_0x3a03a0['insertions'][_0x5675ed]=this['_generateTape'](this['_idsRoots']['get'](_0x5675ed),[]),_0x3a03a0['deletions'][_0x5675ed]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5675ed)||F(_0x5675ed,!0x1),[])):_0x5d86be['delete'](_0x5675ed);}for(const _0xf4f886 of _0x5d86be){const _0xec9e5f=_0x3a03a0['insertions'][_0xf4f886];for(const _0x568541 of _0xec9e5f){const _0x123309=this['_getVidAttributeName'](_0x568541),_0x158752=_0x568541['item']['getAttribute'](_0x123309);_0x3a5dde['delete'](_0x158752),_0x158752>=this['_startingRevisionId']&&_0x1ee05d['set'](_0x158752,_0x1efc8b['get'](_0x158752));}}for(const _0x515b87 of _0x5d86be){const _0x42373f=_0x3a03a0['insertions'][_0x515b87],_0x1ab949=this['_getBaseVids'](_0x3a03a0['deletions'][_0x515b87]);let _0x1edb9f=0x0;for(const _0x417640 of _0x42373f){const _0x57febc=this['_getVidAttributeName'](_0x417640),_0x86f831=_0x417640['item']['getAttribute'](_0x57febc);if(!_0x1ee05d['has'](_0x86f831)&&!_0x246f7a['has'](_0x86f831)){if(_0x3a5dde['has'](_0x86f831))_0x1edb9f++;else{if(_0x86f831!=_0x1ab949[_0x1edb9f]){const _0x35e9ec=_0x1efc8b['get'](_0x86f831)||_0x1efc8b['get'](_0x1ab949[_0x1edb9f]);for(;_0x86f831!=_0x1ab949[_0x1edb9f];)_0x3a5dde['has'](_0x1ab949[_0x1edb9f])||(_0x246f7a['set'](_0x1ab949[_0x1edb9f],_0x35e9ec),_0x1efc8b['set'](_0x1ab949[_0x1edb9f],_0x35e9ec)),_0x1edb9f++;}_0x1edb9f++;}}}}for(const _0xb43856 of _0x5d86be){const _0x508c53=_0x3a03a0['insertions'][_0xb43856];for(const _0x4ed183 of _0x508c53){const _0x160c08=this['_getVidAttributeName'](_0x4ed183),_0x92fb00=_0x4ed183['item']['getAttribute'](_0x160c08);if(_0x246f7a['has'](_0x92fb00)){const _0x19560a=_0x246f7a['get'](_0x92fb00);_0x3a5dde['has'](_0x92fb00)||_0x3a5dde['set'](_0x92fb00,{..._0x19560a}),_0x1ee05d['set'](_0x92fb00,{..._0x19560a});}}}for(const _0x1e021b of _0x3a5dde['keys']())_0x1e021b>=this['_startingRevisionId']&&_0x3a5dde['delete'](_0x1e021b);const _0x37417e=new Map();for(const _0x1fa276 of _0x5d86be){let _0x147acd=_0x3a03a0['insertions'][_0x1fa276];for(const _0x23d24d of _0x147acd)if(_0x23d24d['item']['is']('element','tableCell')){const _0x5da99a=this['_getVidAttributeName'](_0x23d24d),_0x12eca2=_0x23d24d['item']['getAttribute'](_0x5da99a);if(_0x1ee05d['has'](_0x12eca2)){const _0x17f0f5=_0x23d24d['item']['parent']['parent']['getAttribute']('vid_start'),_0x1db0b1=_0x37417e['get'](_0x17f0f5)||new Set();_0x1db0b1['add'](_0x1ee05d['get'](_0x12eca2)['userId']),_0x37417e['set'](_0x17f0f5,_0x1db0b1);}}_0x147acd=_0x3a03a0['deletions'][_0x1fa276];for(const _0x5b6255 of _0x147acd)if(_0x5b6255['item']['is']('element','tableCell')){const _0x41d69e=this['_getVidAttributeName'](_0x5b6255),_0x2f630a=_0x5b6255['item']['getAttribute'](_0x41d69e);if(_0x3a5dde['has'](_0x2f630a)){const _0x1e1dff=_0x5b6255['item']['parent']['parent']['getAttribute']('vid_start'),_0x3e1cda=_0x37417e['get'](_0x1e1dff)||new Set();_0x3e1cda['add'](_0x3a5dde['get'](_0x2f630a)['userId']),_0x37417e['set'](_0x1e1dff,_0x3e1cda);}}for(const _0x13b6e1 of _0x37417e['keys']())(_0x1ee05d['has'](_0x13b6e1)||_0x3a5dde['has'](_0x13b6e1))&&_0x37417e['delete'](_0x13b6e1);}for(const _0x4f9c45 of _0x5d86be){const _0x180a78=_0x3a03a0['insertions'][_0x4f9c45];let _0x3b0516=null,_0x1ad29d=null;for(const _0xab4357 of _0x180a78){const _0x2f4d14=this['_getVidAttributeName'](_0xab4357),_0x80b841=_0xab4357['item']['getAttribute'](_0x2f4d14),_0x17288f=_0x37417e['get'](_0x80b841);_0x17288f&&'elementStart'==_0xab4357['type']&&(_0x3b0516=Array['from'](_0x17288f)[0x0],_0x1ad29d=_0xab4357['item']['getAttribute']('vid_end')),_0x3b0516&&(_0x3a5dde['set'](_0x80b841,{'userId':_0x3b0516}),_0x1ee05d['set'](_0x80b841,{'userId':_0x3b0516})),_0x80b841==_0x1ad29d&&(_0x3b0516=null,_0x1ad29d=null);}}const _0x2a3ccb={},_0x3cf2ca=new Set();for(const _0x3ea6be of _0x5d86be){const _0x296f0f=_0x415e28['deletions'][_0x3ea6be],_0x3fb06b=_0x415e28['insertions'][_0x3ea6be];for(const {userId:_0x29a9c5}of this['_touchedMarkers']['values']())null!==_0x29a9c5&&_0x3cf2ca['add'](_0x29a9c5);for(const {userId:_0x26ea6f}of this['_touchedRoots']['values']())null!==_0x26ea6f&&_0x3cf2ca['add'](_0x26ea6f);this['_markChanges'](_0x3fb06b,_0x3a03a0['insertions'][_0x3ea6be],_0x1ee05d,'insertion',_0x3cf2ca),this['_markChanges'](_0x296f0f,_0x3a03a0['deletions'][_0x3ea6be],_0x3a5dde,'deletion',_0x3cf2ca),_0x2a3ccb[_0x3ea6be]={'insertions':this['_prepareViewToSave'](_0x3fb06b),'deletions':this['_prepareViewToSave'](_0x296f0f),'attachChange':this['_touchedRoots']['get'](_0x3ea6be)||null,'attributesBefore':_0xf10199(this['_baseRootsAttributes']['get'](_0x3ea6be))||{},'attributesAfter':_0xf10199(this['_diffRootsAttributes']['get'](_0x3ea6be))};}return{'diffData':_0x2a3ccb,'authorsIds':Array['from'](_0x3cf2ca)};}['_processRootBeforeSave'](_0x50e644){for(const [,_0x6ba8b3]of _0x50e644['markers']){const _0x38eced=_0x6ba8b3['start']['getAncestors']()['filter'](_0x491a51=>'tableCell'==_0x491a51['name']);for(const _0x3aeb6e of _0x38eced)0x1==_0x3aeb6e['childCount']&&_0x3aeb6e['getChild'](0x0)['is']('element','paragraph')&&_0x3aeb6e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5d15f0){this['_processRootBeforeSave'](_0x5d15f0);const _0x5d00db=this['editor']['data']['toView'](_0x5d15f0,{}),_0x54be96=Array['from'](_0x5d00db['getChildren']())['map'](_0x951ecd=>this['_getViewJson'](_0x951ecd));return JSON['stringify'](_0x54be96);}['_getViewJson'](_0x5923ca){if(_0x5923ca['is']('$text'))return _0x5923ca['data'];{const _0x276244=_0x5923ca;return{'type':Object['keys'](E)['find'](_0x4d2396=>_0x5923ca instanceof E[_0x4d2396]),'name':_0x276244['name'],'attributes':Array['from'](_0x276244['getAttributes']()),'children':Array['from'](_0x276244['getChildren']())['map'](_0x8dfb89=>this['_getViewJson'](_0x8dfb89))};}}['_markChanges'](_0x5e6069,_0x14f079,_0x29ea19,_0x5c7d21,_0x546e62){let _0x1b62d4=null,_0x2db07c=null,_0x525395=0x0;const _0x3c0b73=this['editor']['model'];for(let _0x4242dc=0x0;_0x4242dc<_0x14f079['length'];_0x4242dc++){const _0x129517=this['_getVidAttributeName'](_0x14f079[_0x4242dc]),_0xf7b5e7=_0x14f079[_0x4242dc]['item']['getAttribute'](_0x129517),_0x47c0a4=_0x29ea19['get'](_0xf7b5e7),_0x559d16=_0x4242dc==_0x14f079['length']-0x1;(!_0x1b62d4&&_0x47c0a4&&(_0x1b62d4=_0x47c0a4,_0x2db07c=_0x14f079[_0x4242dc]),_0x1b62d4&&(!_0x47c0a4||_0x47c0a4['userId']!=_0x1b62d4['userId']))&&(_0x1d2729(_0x47c0a4,B(_0x2db07c,_0x5e6069,_0x3c0b73),B(_0x14f079[_0x4242dc],_0x5e6069,_0x3c0b73)),_0x1b62d4=_0x47c0a4||null,_0x2db07c=_0x47c0a4?_0x14f079[_0x4242dc]:null),_0x1b62d4&&_0x559d16&&_0x1d2729(_0x47c0a4,B(_0x2db07c,_0x5e6069,_0x3c0b73),J(_0x14f079[_0x4242dc],_0x5e6069,_0x3c0b73));}function _0x1d2729(_0x3f4f80,_0x5f46fe,_0x2c0aea){const _0x2ef7a4=_0x1b62d4['userId'],_0x388ef5='revision:'+_0x5c7d21+':'+_0x2ef7a4+':'+_0x525395++,_0x2a2903=_0x3c0b73['createRange'](_0x5f46fe,_0x2c0aea);_0x5e6069['markers']['set'](_0x388ef5,_0x2a2903),null!==_0x2ef7a4&&_0x546e62['add'](_0x2ef7a4);}}['_getVidAttributeName'](_0x379e06){switch(_0x379e06['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x274743,_0x41e221){_0x274743['baseVersion']=null;for(const _0xd22268 in _0x274743){const _0x39aa30=_0x274743[_0xd22268];if(_0x39aa30 instanceof vt){const _0x50bd62=_0x41e221['get'](_0x39aa30['root']['rootName']);_0x274743[_0xd22268]=this['_fixPosition'](_0x39aa30,_0x50bd62);}if(_0x39aa30 instanceof ft){const _0x50cbf8=_0x41e221['get'](_0x39aa30['root']['rootName']);_0x274743[_0xd22268]=this['_fixRange'](_0x39aa30,_0x50cbf8);}'root'===_0xd22268&&(_0x274743['root']=_0x41e221['get'](_0x274743['root']['rootName']));}}['_fixRange'](_0x29b930,_0xea2db7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x29b930['start'],_0xea2db7),this['_fixPosition'](_0x29b930['end'],_0xea2db7));}['_fixPosition'](_0x42a22c,_0x2a72e8){return this['editor']['model']['createPositionFromPath'](_0x2a72e8,_0x42a22c['path'],_0x42a22c['stickiness']);}['_handleInsertOperation'](_0x18f868){const _0x5d1e21=this['_idsRoots']['get'](_0x18f868['position']['root']['rootName']),_0xf43245=this['_fixPosition'](_0x18f868['position'],_0x5d1e21),_0x543115=null===_0x18f868['_authorId']?null:_0x18f868['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3b1c80=_0xf43245['parent'],_0x174e36=this['_revisionId'],_0x114977=[];for(const _0x1bfe71 of _0x18f868['nodes'])if(_0x1bfe71['is']('element'))_0x114977['push'](this['_makeIdsRoot'](_0x1bfe71));else{for(let _0x4997a2=0x0;_0x4997a2<_0x1bfe71['offsetSize'];_0x4997a2++)_0x114977['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x28c583=this['_revisionId'];for(let _0x1505fc=_0x174e36;_0x1505fc<_0x28c583;_0x1505fc++)this['_touched']['set'](_0x1505fc,{'userId':_0x543115});_0x3b1c80['_insertChild'](_0xf43245['offset'],_0x114977);}['_handleMoveOperation'](_0x11b608){(_0x11b608=this['_cloneOperation'](_0x11b608,this['_idsRoots']))['_execute']();const _0x17ce9f=null===_0x11b608['_authorId']?null:_0x11b608['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x25b859=_0x11b608['getMovedRangeStart'](),_0x4d00c3=_0x25b859['parent'],_0x205e94=_0x25b859['offset'];!function _0x20b674(_0x4176f1,_0x37b2a7,_0x3cc51c,_0x180cd8){for(let _0x2e0a5e=_0x3cc51c;_0x2e0a5e<_0x180cd8;_0x2e0a5e++){const _0x51ebc0=_0x37b2a7['getChild'](_0x2e0a5e);_0x51ebc0['is']('element','$text')?_0x4176f1['set'](_0x51ebc0['getAttribute']('vid'),{'userId':_0x17ce9f}):(_0x4176f1['set'](_0x51ebc0['getAttribute']('vid_start'),{'userId':_0x17ce9f}),_0x20b674(_0x4176f1,_0x51ebc0,0x0,_0x51ebc0['childCount']),_0x4176f1['set'](_0x51ebc0['getAttribute']('vid_end'),{'userId':_0x17ce9f}));}}(this['_touched'],_0x4d00c3,_0x205e94,_0x205e94+_0x11b608['howMany']);}['_handleMergeOperation'](_0x437f52){const _0x1dfa7c=null===(_0x437f52=this['_cloneOperation'](_0x437f52,this['_idsRoots']))['_authorId']?null:_0x437f52['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ccecc=_0x437f52['targetPosition']['parent'],_0x2d57b5=_0x437f52['sourcePosition']['parent'],_0x56958c=_0x5ccecc['getAttribute']('vid_end'),_0x5da9bf=_0x2d57b5['getAttribute']('vid_start');_0x5ccecc['_setAttribute']('vid_end',_0x2d57b5['getAttribute']('vid_end')),_0x2d57b5['_setAttribute']('vid_end',_0x56958c),this['_touched']['set'](_0x5da9bf,{'userId':_0x1dfa7c}),this['_touched']['set'](_0x56958c,{'userId':_0x1dfa7c}),_0x437f52['_execute']();}['_handleSplitOperation'](_0x396d08){const _0x4e0b76=null===(_0x396d08=this['_cloneOperation'](_0x396d08,this['_idsRoots']))['_authorId']?null:_0x396d08['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5860d9=_0x396d08['graveyardPosition'],_0x1b950d=_0x396d08['splitPosition']['parent'];_0x396d08['_execute']();const _0xdd10a5=_0x1b950d['getAttribute']('vid_end'),_0xfa4930=_0x396d08['insertionPosition']['nodeAfter'];if(_0x5860d9){const _0x329136=_0xfa4930['getAttribute']('vid_end'),_0x1ed92b=_0x1b950d['getAttribute']('vid_end');_0x1b950d['_setAttribute']('vid_end',_0x329136),_0xfa4930['_setAttribute']('vid_end',_0x1ed92b),this['_touched']['set'](_0x1b950d['getAttribute']('vid_end'),{'userId':_0x4e0b76}),this['_touched']['set'](_0xfa4930['getAttribute']('vid_start'),{'userId':_0x4e0b76});}else{const _0x24b610=this['_revisionId']++,_0x25d078=this['_revisionId']++;_0x1b950d['_setAttribute']('vid_end',_0x24b610),_0xfa4930['_setAttribute']('vid_start',_0x25d078),_0xfa4930['_setAttribute']('vid_end',_0xdd10a5),this['_touched']['set'](_0x24b610,{'userId':_0x4e0b76}),this['_touched']['set'](_0x25d078,{'userId':_0x4e0b76});}}['_handleMarkerOperation'](_0x379dcd){if(!_0x379dcd['affectsData'])return;const _0x4f1850=(_0x379dcd=this['_cloneOperation'](_0x379dcd,this['_diffRoots']))['oldRange']?_0x379dcd['oldRange']['root']:null,_0x244436=_0x379dcd['newRange']?_0x379dcd['newRange']['root']:null;_0x4f1850&&this['_markers']['delete'](_0x379dcd['name']),_0x244436&&this['_markers']['set'](_0x379dcd['name'],_0x379dcd['newRange']['clone']());const _0x333422=null===_0x379dcd['_authorId']?null:_0x379dcd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb7c465=_0x379dcd['name'];if(!this['_touchedMarkers']['has'](_0xb7c465))return void this['_touchedMarkers']['set'](_0xb7c465,{'range':_0x379dcd['oldRange'],'userId':_0x333422});const _0x570111=this['_touchedMarkers']['get'](_0xb7c465),_0x1ad059=_0x570111['range'],_0x581c7e=_0x379dcd['newRange'];null==_0x1ad059&&null==_0x581c7e||_0x1ad059&&_0x581c7e&&_0x1ad059['isEqual'](_0x581c7e)?this['_touchedMarkers']['delete'](_0x379dcd['name']):_0x570111['userId']=_0x333422;}['_handleRootOperation'](_0x260400,_0x3bd0f7){this['_diffRoots']['has'](_0x260400['rootName'])?this['_diffRoots']['get'](_0x260400['rootName'])['_isAttached']=_0x260400['isAdd']:(this['_diffRoots']['set'](_0x260400['rootName'],F(_0x260400['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x260400['rootName'],{}),_0x3bd0f7&&this['_idsRoots']['set'](_0x260400['rootName'],F(_0x260400['rootName'],!0x0)));const _0x1bf1a8=null===_0x260400['_authorId']?null:_0x260400['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2177b6=this['_touchedRoots']['get'](_0x260400['rootName']);_0x2177b6&&_0x2177b6['userId']===_0x1bf1a8?this['_touchedRoots']['delete'](_0x260400['rootName']):this['_touchedRoots']['set'](_0x260400['rootName'],{'userId':_0x1bf1a8,'isAttached':_0x260400['isAdd']});}['_handleRootAttributeOperation'](_0x1a5210){const _0x1db4e6=this['_diffRootsAttributes']['get'](_0x1a5210['root']['rootName']);null===_0x1a5210['newValue']?delete _0x1db4e6[_0x1a5210['key']]:_0x1db4e6[_0x1a5210['key']]=_0x1a5210['newValue'];}}function T(_0x5da962){const _0x1f6011=F(_0x5da962['rootName'],_0x5da962['isAttached']());for(const _0x39af59 of _0x5da962['getChildren']()){const _0x37887e=_0x39af59['_clone'](!0x0);_0x1f6011['_appendChild'](_0x37887e);}return _0x1f6011;}function F(_0x45f9b1,_0x40ba99=!0x0){const _0x3d0edc=new gt();return _0x3d0edc['rootName']=_0x45f9b1,_0x3d0edc['_isAttached']=_0x40ba99,_0x3d0edc['isAttached']=()=>_0x3d0edc['_isAttached'],_0x3d0edc;}function B(_0x25fcb1,_0x361cef,_0x162c70){const _0x1d34c3='elementEnd'==_0x25fcb1['type']?_0x162c70['createPositionAt'](_0x25fcb1['item'],'end'):_0x162c70['createPositionBefore'](_0x25fcb1['item']);return _0x162c70['createPositionFromPath'](_0x361cef,_0x1d34c3['path'],_0x1d34c3['stickiness']);}function J(_0xd0aece,_0xe80c26,_0x173fb2){const _0x5b8d3b='elementStart'==_0xd0aece['type']?_0x173fb2['createPositionAt'](_0xd0aece['item'],0x0):_0x173fb2['createPositionAfter'](_0xd0aece['item']);return _0x173fb2['createPositionFromPath'](_0xe80c26,_0x5b8d3b['path'],_0x5b8d3b['stickiness']);}class os extends _0x2fbfd0{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5f578c,_0x25d8ef){super(_0x5f578c),this['focusTracker']=new _0x56a2af(),this['keystrokes']=new _0xdd9358(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x25d8ef),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0xac48e3({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4d2b13=_0xaea592=>_0xaea592['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4d2b13),this['keystrokes']['set']('arrowleft',_0x4d2b13),this['keystrokes']['set']('arrowup',_0x4d2b13),this['keystrokes']['set']('arrowdown',_0x4d2b13);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2d5f43){this['revisionNameInputView']['fieldView']['element']['value']=_0x2d5f43['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4c6e1a){const _0x37ba5a=new at(this['locale'],ti),_0x277f17=_0x37ba5a['fieldView'];_0x277f17['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x30af2e=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4c6e1a&&(_0x30af2e+='\x20('+m(this['locale'],'optional')+')'),(_0x37ba5a['label']=_0x30af2e,_0x277f17['on']('input',()=>{this['revisionNameInputValue']=_0x277f17['element']['value']['trim']();}),_0x37ba5a);}}class f extends _0x545567{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0xf78f85=this['editor'],_0x339552=_0xf78f85['plugins']['get']('RevisionTracker');_0xf78f85['ui']['componentFactory']['add']('revisionHistory',_0x497a1c=>{const _0x59b483=_0x3efc4b(_0x497a1c),_0x47f42b=_0x59b483['panelView']['children'],_0x1e4097=new _0x2fca97(_0x497a1c),_0x211e81=new te(_0x497a1c),_0x3335df=new _0x599e02(_0x497a1c),_0x2d8427=new te(_0x497a1c),_0x44c6f8=new _0x599e02(_0x497a1c);return _0x59b483['bind']('isEnabled')['to'](_0x339552,'isReady',_0x339552,'isEnabled',_0xf78f85,'isReadOnly',(_0x4e0398,_0x5a0366,_0x3016f3)=>_0x4e0398&&_0x5a0366&&!_0x3016f3),_0x59b483['buttonView']['set']({'icon':_0x2dfe0a,'label':m(_0x497a1c,'Revision\x20history'),'tooltip':!0x0}),_0x3335df['set']({'label':m(_0x497a1c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3335df['bind']('isEnabled')['to'](_0x339552,'isReady',_0x339552,'isEnabled',_0xf78f85,'isReadOnly',(_0x2e1f57,_0x12cfbf,_0x192b9a)=>_0x2e1f57&&_0x12cfbf&&!_0x192b9a),_0x3335df['on']('execute',()=>this['_showDialog']()),_0x44c6f8['set']({'label':m(_0x497a1c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x44c6f8['bind']('isEnabled')['to'](_0x339552,'isReady',_0xf78f85,'isReadOnly',(_0x5f3e80,_0x1f5463)=>_0x5f3e80&&!_0x1f5463),_0x44c6f8['on']('execute',()=>{_0xf78f85['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x59b483['isOpen']=!0x1,_0xf78f85['editing']['view']['focus']();}),_0x211e81['children']['add'](_0x3335df),_0x2d8427['children']['add'](_0x44c6f8),_0x1e4097['role']='menu',_0x1e4097['items']['addMany']([_0x211e81,_0x2d8427]),_0x47f42b['add'](_0x1e4097),_0x59b483;}),_0xf78f85['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xffc77d=this['editor'],_0x51dc7b=_0xffc77d['locale'],_0xc39832=new _0x10f18a(_0x51dc7b),_0x1d99d0=new _0x56283a(_0x51dc7b);_0xc39832['buttonView']['set']({'icon':_0x2dfe0a,'label':m(_0x51dc7b,'Revision\x20history')});const _0x474918=new _0x2db851(_0x51dc7b,_0xc39832),_0x4df1fb=new _0x3778bf(_0x51dc7b);_0x4df1fb['set']({'label':m(_0x51dc7b,'Save\x20current\x20revision')}),_0x4df1fb['delegate']('execute')['to'](_0xc39832),_0x4df1fb['on']('execute',()=>{this['_showDialog']();}),_0x474918['children']['add'](_0x4df1fb),_0x1d99d0['items']['add'](_0x474918);const _0x3ce278=new _0x2db851(_0x51dc7b,_0xc39832),_0x3e3371=new _0x3778bf(_0x51dc7b);return _0x3e3371['set']({'label':m(_0x51dc7b,'Open\x20revision\x20history')}),_0x3e3371['delegate']('execute')['to'](_0xc39832),_0x3e3371['on']('execute',()=>{_0xffc77d['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3ce278['children']['add'](_0x3e3371),_0x1d99d0['items']['add'](_0x3ce278),_0xc39832['panelView']['children']['add'](_0x1d99d0),_0xc39832;}['_showDialog'](){const _0x2ea0d8=this['editor'],_0x189c77=_0x2ea0d8['locale'],_0x49c5ec=_0x2ea0d8['plugins']['get']('Dialog'),_0x214c49=_0x2ea0d8['plugins']['get']('RevisionTracker');function _0x4edeeb(_0x249ca9){_0x2ea0d8['config']['get']('revisionHistory.requireRevisionName')&&''===_0x249ca9['revisionName']?_0x249ca9['revisionNameInputView']['errorText']=m(_0x189c77,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2ea0d8['plugins']['get'](u)['saveRevision']({'name':_0x249ca9['revisionName']}),_0x49c5ec['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4edeeb(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x49c5ec['show']({'id':'revisionSave','title':m(_0x189c77,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x2ea0d8['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x49c5ec['hide']()},{'label':m(_0x2ea0d8['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x47f396){_0x47f396['bind']('isEnabled')['to'](_0x214c49,'isReady',_0x214c49,'isEnabled',_0x2ea0d8,'isReadOnly',(_0x178c24,_0xcbb183,_0x42e93b)=>_0x178c24&&_0xcbb183&&!_0x42e93b);},'onExecute':()=>_0x4edeeb(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x47d22c=this['editor'],_0x5b4c05=_0x47d22c['locale'];this['_saveRevisionFormView']=new os(_0x5b4c05,_0x47d22c['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x2fbfd0{['changeId'];['_model'];constructor(_0x3cddfe,_0x3c0a02){super(_0x3cddfe),this['_model']=_0x3c0a02,this['changeId']=_0x3c0a02['id'];const _0xac5e10=this['bindTemplate'],_0x5b3f92=m(_0x3cddfe,_0x3c0a02['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3c0a02['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3c0a02['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0xac5e10['to']('type',_0x352594=>'ck-revision-change__'+_0x352594)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5b3f92}]},{'text':'\x20'+_0x3c0a02['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x378d18(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x56d907){super(),this['id']=_0x56d907['id']||_0x317a84(),this['author']=_0x56d907['author'],this['type']=_0x56d907['type'],this['data']=_0x56d907['data']||{},this['rootName']=_0x56d907['rootName'],this['set']('createdAt',_0x56d907['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2ececc,_0x117e6f){this['newRevisionId']=_0x2ececc,this['oldRevisionId']=_0x117e6f,this['changes']=new _0x4708dd();}['_setChanges'](_0x3613b6){for(const _0x42e0f4 of _0x3613b6)this['changes']['add'](_0x42e0f4);}}const Y={'c':_0x34667d,'a':_0x42735c,'e':_0xdda3ba,'r':_0xb44386,'u':_0x3c85ff};class d extends _0x545567{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x586aa9,_0x4238cd,j];}constructor(_0x3417fe){super(_0x3417fe),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4011de,_0x43805d,_0x538d3d)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2e47f4=>{for(const _0x3b5aa2 of this['editor']['editing']['view']['document']['roots'])_0x538d3d?_0x2e47f4['removeClass']('ck-editor__editable__overlay',_0x3b5aa2):_0x2e47f4['addClass']('ck-editor__editable__overlay',_0x3b5aa2);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x486757=>null!==_0x486757),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1539e7,_0x4c2a36,_0x5ad7b6)=>_0x1539e7&&_0x5ad7b6?_0x4c2a36['changes']['getIndex'](_0x5ad7b6):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x25734f,_0x4617a6)=>_0x25734f?_0x4617a6['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4238cd);}['init'](){const _0x127d3a=this['editor'],_0x547891=new yt(_0x127d3a,{'direction':'backward'}),_0x30170a=new yt(_0x127d3a,{'direction':'forward'});(_0x127d3a['commands']['add']('showPreviousChange',_0x547891),_0x127d3a['commands']['add']('showNextChange',_0x30170a),_0x127d3a['commands']['add']('restoreRevision',new _t(_0x127d3a)),this['on']('change:numberOfChanges',()=>{_0x547891['refresh'](),_0x30170a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x127d3a['enableReadOnlyMode']('revision-viewer'),_0x127d3a['plugins']['has']('WidgetToolbarRepository'))&&_0x127d3a['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0xf9d898){await this['loadRevisionData'](_0xf9d898);const _0x547f84={};for(const _0x5af178 in _0xf9d898['diffData']){if(_0xf9d898['diffData'][_0x5af178]['attachChange']&&!_0xf9d898['diffData'][_0x5af178]['attachChange']['isAttached'])continue;const _0x49e9c3=this['_removeRevisionMarkers'](JSON['parse'](_0xf9d898['diffData'][_0x5af178]['insertions'])),_0x1b01dc=this['editor']['editing']['view']['document'],_0x5a4b4a=new _0x5aa0a3(_0x1b01dc,_0x49e9c3['map'](_0x2a9936=>this['_getViewObj'](_0x2a9936)));this['editor']['data']['processor']['useFillerType']('marked'),_0x547f84[_0x5af178]=this['editor']['data']['processor']['toData'](_0x5a4b4a),this['editor']['data']['processor']['useFillerType']('default');}return _0x547f84;}async['getRevisionRootsAttributes'](_0x243b8a){await this['loadRevisionData'](_0x243b8a);const _0x52d655={};for(const _0x11e91c in _0x243b8a['diffData'])_0x243b8a['diffData'][_0x11e91c]['attachChange']&&!_0x243b8a['diffData'][_0x11e91c]['attachChange']['isAttached']||(_0x52d655[_0x11e91c]=_0x243b8a['diffData'][_0x11e91c]['attributesAfter']||{});return _0x52d655;}['_removeRevisionMarkers'](_0x4417f4){return(_0x4417f4=_0x4417f4['filter'](_0x32ee4b=>!_0x32ee4b['name']||'revision-start'!==_0x32ee4b['name']&&'revision-end'!==_0x32ee4b['name']))['forEach'](_0x3fba73=>{'string'!=typeof _0x3fba73&&(_0x3fba73['children']=this['_removeRevisionMarkers'](_0x3fba73['children']),_0x3fba73['attributes']=_0x3fba73['attributes']['filter'](_0x4269cf=>!_0x4269cf[0x0]['startsWith']('data-revision-')));}),_0x4417f4;}async['compare'](_0x58d2ce,_0x4c0d98,_0xf03a40=!0x1){if(!this['isEnabled'])return;const _0x4f5332=this['diff'],_0x10e420=this['repository'],_0x4ab3da='string'==typeof _0x58d2ce?_0x10e420['getRevision'](_0x58d2ce):_0x58d2ce,_0xf042dc='string'==typeof _0x4c0d98?_0x10e420['getRevision'](_0x4c0d98):_0x4c0d98,_0x2c27ec=_0x4ab3da['id'],_0x29b5dc=_0xf042dc?_0xf042dc['id']:null;if(!_0xf03a40&&this['diff']&&this['diff']['newRevisionId']===_0x2c27ec&&this['diff']['oldRevisionId']===_0x29b5dc)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x2c27ec,_0x29b5dc);const _0x5b38d2=this['_getRevisionsRange'](_0x4ab3da,_0xf042dc,!0x0)['map'](_0x60b9af=>this['loadRevisionData'](_0x60b9af));return _0x5b38d2['push'](new Promise(_0x4f70fc=>{setTimeout(_0x4f70fc,0x14);})),Promise['all'](_0x5b38d2)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3cb058=this['_getDiff'](_0x2c27ec,_0x29b5dc);for(const _0x2fac94 of _0x3cb058['changes'])this['_changeIdToChange']['set'](_0x2fac94['id'],_0x2fac94);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3afbf2=>{for(const _0x58b026 of this['editor']['model']['document']['getRootNames']())_0x3afbf2['detachRoot'](_0x58b026);for(const _0xfb2bc3 of Object['keys'](_0x3cb058['model'])){const _0x34af66=_0x3afbf2['addRoot'](_0xfb2bc3);for(const _0x22ab88 of Object['keys'](_0x3cb058['attributes'][_0xfb2bc3]))_0x3afbf2['setAttribute'](_0x22ab88,_0x3cb058['attributes'][_0xfb2bc3][_0x22ab88],_0x34af66);_0x3afbf2['insert'](_0x3cb058['model'][_0xfb2bc3],_0x34af66,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3cb058['changes'])),this['isReady']=!0x0;})['catch'](_0x219cee=>{console['error'](_0x219cee),this['_cleanUp'](),_0x4f5332&&(this['diff']=_0x4f5332),this['isReady']=!0x0;});}['addRevisionData'](_0x32aa6d,_0x1bc525){const _0x142637=this['repository']['createRevision'](_0x32aa6d);return _0x142637['on']('_update',(_0x2eecb4,_0x117c14,_0x30b52e)=>_0x1bc525(_0x117c14,_0x30b52e,_0x142637)),this['repository']['addRevision'](_0x142637),_0x142637;}['loadRevisionData'](_0x155c82){if(!_0x155c82||_0x155c82['diffData'])return Promise['resolve']();{const _0x34df9e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x34df9e,'revisionId':_0x155c82['id']})['then'](_0x6973b7=>{_0x155c82['_update']({'diffData':_0x6973b7['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x415e89=>{for(const _0x596a3e of this['editor']['model']['document']['getRootNames']())_0x415e89['detachRoot'](_0x596a3e);});}['_sortAndFilterDiffChanges'](_0x5d88c3){const _0x2b4322=[],_0x4d8f83=new Map();for(const _0x59fd19 of this['editor']['model']['document']['getRootNames']()){const _0x1ec0a5=this['editor']['editing']['view']['getDomRoot'](_0x59fd19);if(!_0x1ec0a5)continue;const _0x3f73ef=_0x1ec0a5['getClientRects']()['item'](0x0);_0x3f73ef&&(_0x2b4322['push'](_0x59fd19),_0x4d8f83['set'](_0x59fd19,_0x3f73ef));}return _0x2b4322['sort']((_0x170ddd,_0x2d510b)=>{const _0x3fb5d1=_0x4d8f83['get'](_0x170ddd),_0x44761e=_0x4d8f83['get'](_0x2d510b);return _0x3fb5d1['y']-_0x44761e['y']||_0x3fb5d1['x']-_0x44761e['x'];}),(_0x5d88c3=_0x5d88c3['filter'](_0x3e6a93=>_0x2b4322['includes'](_0x3e6a93['rootName'])))['sort']((_0xe7372a,_0x5e40f7)=>_0x2b4322['indexOf'](_0xe7372a['rootName'])-_0x2b4322['indexOf'](_0x5e40f7['rootName'])),_0x5d88c3;}['_makeTape'](_0x15b530){const _0x2e26b0=Array['from'](_0x15b530['markers'])['filter'](([_0x4db3c0,_0x533be6])=>_0x4db3c0['startsWith']('revision:')&&!_0x533be6['isCollapsed']),_0x590228=Array['from'](this['editor']['model']['createRangeIn'](_0x15b530)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2e26b0['length'])for(const _0x1e61b6 of _0x590228){const [_0x1cef0b,_0x2da2a3]=_0x2e26b0[0x0],[,_0xad2022,_0x2e0b64]=_0x1cef0b['split'](':');if(_0x2da2a3['end']['isEqual'](_0x1e61b6['nextPosition'])&&_0x2e26b0['shift'](),(_0x1e61b6['previousPosition']['isEqual'](_0x2da2a3['start'])||_0x1e61b6['previousPosition']['isAfter'](_0x2da2a3['start']))&&('insertion'==_0xad2022?_0x1e61b6['isAdded']={'userId':_0x2e0b64}:'deletion'==_0xad2022&&(_0x1e61b6['isRemoved']={'userId':_0x2e0b64})),0x0==_0x2e26b0['length'])break;}return _0x590228;}['_refreshStartEndIndex'](_0x4b2150){const _0x253e88=new Map();for(let _0x24db2c=0x0;_0x24db2c<_0x4b2150['length'];_0x24db2c++)'text'===_0x4b2150[_0x24db2c]['type']?(_0x4b2150[_0x24db2c]['item']['startIndex']=_0x24db2c,_0x4b2150[_0x24db2c]['item']['endIndex']=_0x24db2c):('elementStart'===_0x4b2150[_0x24db2c]['type']?_0x4b2150[_0x24db2c]['item']['startIndex']=_0x24db2c:'elementEnd'===_0x4b2150[_0x24db2c]['type']&&(_0x4b2150[_0x24db2c]['item']['endIndex']=_0x24db2c),_0x253e88['set'](_0x4b2150[_0x24db2c]['id'],_0x24db2c));for(const _0x39e515 of _0x253e88['values']())'elementStart'===_0x4b2150[_0x39e515]['type']?_0x4b2150[_0x39e515]['item']['endIndex']=_0x253e88['get'](_0x4b2150[_0x39e515]['pairId']):'elementEnd'===_0x4b2150[_0x39e515]['type']&&(_0x4b2150[_0x39e515]['item']['startIndex']=_0x253e88['get'](_0x4b2150[_0x39e515]['pairId']));}['_processTape'](_0x54b0e9){for(let _0x29a4c6=0x0;_0x29a4c6<_0x54b0e9['length'];_0x29a4c6++){if('elementStart'===_0x54b0e9[_0x29a4c6]['type'])_0x54b0e9[_0x29a4c6]['item']['startIndex']=_0x29a4c6;else{if('elementEnd'===_0x54b0e9[_0x29a4c6]['type']){_0x54b0e9[_0x29a4c6]['item']['endIndex']=_0x29a4c6;const _0x324819=_0x54b0e9[_0x29a4c6]['item']['startIndex'];_0x54b0e9[_0x324819]['pairId']=_0x54b0e9[_0x29a4c6]['id'],_0x54b0e9[_0x29a4c6]['pairId']=_0x54b0e9[_0x324819]['id'];}else _0x54b0e9[_0x29a4c6]['item']['startIndex']=_0x29a4c6,_0x54b0e9[_0x29a4c6]['item']['endIndex']=_0x29a4c6,_0x54b0e9[_0x29a4c6]['pairId']=null;}_0x54b0e9[_0x29a4c6]['markersStart']||(_0x54b0e9[_0x29a4c6]['markersStart']=[],_0x54b0e9[_0x29a4c6]['markersEnd']=[]);}}['_markInsertions'](_0x3eabc9,_0x3ba892){const _0x50b259=_0x3eabc9['filter'](_0x556b2c=>!_0x556b2c['isAdded']);for(let _0x49236a=0x0;_0x49236a<_0x3ba892['length'];_0x49236a++)_0x3ba892[_0x49236a]['isAdded']&&(_0x50b259[_0x49236a]['isAdded']=_0x3ba892[_0x49236a]['isAdded']);}['_makeModelFromViewString'](_0x32a489){const _0x262919=JSON['parse'](_0x32a489),_0x2e97fe=this['editor']['editing']['view']['document'],_0x2b2065=new _0x5aa0a3(_0x2e97fe,_0x262919['map'](_0x449ef7=>this['_getViewObj'](_0x449ef7)));return this['editor']['data']['toModel'](_0x2b2065);}['_getViewObj'](_0x3f81f7){const _0x4f31db=this['editor']['editing']['view']['document'];if('string'==typeof _0x3f81f7)return new _0x2de7f7(_0x4f31db,_0x3f81f7);{const _0x55c3e4=_0x3f81f7['children']['map'](_0x4e828a=>this['_getViewObj'](_0x4e828a));return new(Y[_0x3f81f7['type']]||_0x3bf831)(_0x4f31db,_0x3f81f7['name'],_0x3f81f7['attributes'],_0x55c3e4);}}['_getDiff'](_0xd83223,_0x39a852=null){const _0x45952b=this['repository']['getRevision'](_0xd83223),_0xaf6258=_0x39a852?this['repository']['getRevision'](_0x39a852):null,_0x2f178e=this['_getRevisionsRange'](_0x45952b,_0xaf6258),_0x3af779=_0x2f178e[_0x2f178e['length']-0x1],_0x28637e=new Map(),_0x2dd6a3={'model':{},'attributes':{},'changes':[]},_0x4d0bd1=new Set(),_0x2ff674=new Map();for(let _0x16c496=_0x2f178e['length']-0x1;_0x16c496>=0x0;_0x16c496--){const _0x34e11a=_0x2f178e[_0x16c496];for(const _0x1b2500 of Object['keys'](_0x34e11a['diffData']))if(_0x34e11a['diffData'][_0x1b2500]['attachChange']){const _0x571458=_0x34e11a['diffData'][_0x1b2500]['attachChange'];_0x571458['isAttached']?(_0x4d0bd1['add'](_0x1b2500),_0x2ff674['has'](_0x1b2500)&&_0x2ff674['get'](_0x1b2500)['userId']==_0x571458['userId']?_0x2ff674['delete'](_0x1b2500):_0x2ff674['set'](_0x1b2500,_0x571458)):_0x2ff674['has'](_0x1b2500)?(_0x4d0bd1['delete'](_0x1b2500),_0x2ff674['delete'](_0x1b2500)):(_0x4d0bd1['add'](_0x1b2500),_0x2ff674['set'](_0x1b2500,_0x571458));}else _0x4d0bd1['add'](_0x1b2500);}for(const _0x566909 of _0x4d0bd1){const _0x338891=_0x2ff674['has'](_0x566909)&&!_0x2ff674['get'](_0x566909)['isAttached'];let _0x32066f=_0x338891?_0x2f178e['length']-0x1:0x0;const _0x2d2f56=_0x338891?-0x1:0x1;for(;_0x2f178e[_0x32066f];){const _0x46d68b=_0x2f178e[_0x32066f];if(_0x46d68b['diffData'][_0x566909]){const _0xdf3caa=_0x338891?_0x46d68b['diffData'][_0x566909]['attributesBefore']:_0x46d68b['diffData'][_0x566909]['attributesAfter'];_0x2dd6a3['attributes'][_0x566909]=_0xdf3caa?_0xf10199(_0xdf3caa):{};break;}_0x32066f+=_0x2d2f56;}}for(const _0x2fd13d of _0x2f178e){_0x2fd13d['model']={};for(const _0xa7d630 of _0x2fd13d['authors'])_0x28637e['set'](_0xa7d630['id'],_0xa7d630);for(const _0x378470 of _0x4d0bd1){const _0x50117d=_0x2fd13d['diffData'][_0x378470]?_0x2fd13d['diffData'][_0x378470]['insertions']:'[]',_0x2612cd=_0x2fd13d['diffData'][_0x378470]?_0x2fd13d['diffData'][_0x378470]['deletions']:'[]';_0x2fd13d['model'][_0x378470]={'insertions':this['_makeModelFromViewString'](_0x50117d),'deletions':this['_makeModelFromViewString'](_0x2612cd)};}}for(const _0x25bdfc of _0x4d0bd1){let _0x5ac4e5=null,_0xb3274a=0x0;const _0x341f41=new Map(Array['from'](_0x45952b['model'][_0x25bdfc]['insertions']['markers'])['filter'](([_0x13afbd])=>!_0x13afbd['startsWith']('revision:')));let _0x4044fc=0x0;for(const _0x386a06 of _0x2f178e){const _0xa8c892=this['_makeTape'](_0x386a06['model'][_0x25bdfc]['insertions']);_0x386a06==_0x45952b?(_0x5ac4e5=_0xa8c892,_0xb3274a=_0x5ac4e5['length'],_0x5ac4e5['forEach'](_0x52103f=>{_0x52103f['id']=_0x4044fc++;}),this['_processTape'](_0x5ac4e5)):this['_markInsertions'](_0x5ac4e5,_0xa8c892);const _0x2f5fa0=_0x5ac4e5['filter'](_0x6a8030=>!_0x6a8030['isAdded'])['map'](_0x36e64c=>_0x36e64c['id']);let _0x4c53bc=0x0;const _0x293805=this['_makeTape'](_0x386a06['model'][_0x25bdfc]['deletions']);_0x293805['forEach'](_0x5d1a89=>{_0x5d1a89['isRemoved']?_0x5d1a89['id']=_0xb3274a++:_0x5d1a89['id']=_0x2f5fa0[_0x4c53bc++];}),this['_processTape'](_0x293805),this['_setDistance'](_0x5ac4e5,'isAdded'),this['_setDistance'](_0x293805,'isRemoved'),_0x386a06==_0x45952b&&this['_markMarkers'](_0x5ac4e5,_0x341f41),_0x5ac4e5=this['_joinTapes'](_0x5ac4e5,_0x293805),this['_refreshStartEndIndex'](_0x5ac4e5),this['_setDistance'](_0x5ac4e5,'isRemoved');}_0x5ac4e5=_0x5ac4e5['filter'](_0x12cc57=>!(_0x12cc57['isAdded']&&_0x12cc57['isRemoved']));const _0x1dfeb1=new Map(_0x3af779['model'][_0x25bdfc]['deletions']['markers']),_0x3b9a7c=new Set(_0x341f41['keys']());for(const _0x5486ee of _0x1dfeb1['keys']())_0x3b9a7c['delete'](_0x5486ee);this['_markSuggestions'](_0x5ac4e5,_0x3b9a7c),this['_fixObsoleteTags'](_0x5ac4e5),_0x5ac4e5=this['_removeMissingPairs'](_0x5ac4e5),_0x5ac4e5=this['_markMismatchedRemovedTags'](_0x5ac4e5),_0x5ac4e5=this['_removeUnsupportedChanges'](_0x5ac4e5);const {root:_0x224961,changes:_0x1d1abb}=this['_makeModelFromTape'](_0x5ac4e5,_0x28637e,_0x25bdfc);_0x2dd6a3['model'][_0x25bdfc]=_0x224961;const _0x1b5ad7=_0x2ff674['get'](_0x25bdfc);if(_0x1b5ad7){const _0x2a9701=_0x28637e['get'](_0x1b5ad7['userId']),_0x4bfe0a=new r({'author':_0x2a9701,'type':_0x1b5ad7['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x25bdfc});_0x1d1abb['unshift'](_0x4bfe0a),_0x2dd6a3['attributes'][_0x25bdfc]['revisionHistoryAttachChange']=_0x4bfe0a['id'];}_0x2dd6a3['changes']=_0x2dd6a3['changes']['concat'](_0x1d1abb);}return _0x2dd6a3;}['_markMarkers'](_0x5edead,_0x33e10c){for(let _0x5b665c=0x0;_0x5b665c<_0x5edead['length'];_0x5b665c++)for(const [_0xbfe51f,_0x3f456f]of _0x33e10c)_0x3f456f['start']['isEqual'](_0x5edead[_0x5b665c]['previousPosition'])&&_0x5edead[_0x5b665c]['markersStart']['push'](_0xbfe51f),_0x3f456f['end']['isEqual'](_0x5edead[_0x5b665c]['nextPosition'])&&_0x5edead[_0x5b665c]['markersEnd']['push'](_0xbfe51f);}['_joinTapes'](_0x466a2d,_0x5e6c58){let _0x18e25f=[],_0xda51db=0x0,_0x588873=0x0;for(;_0xda51db<_0x466a2d['length']||_0x588873<_0x5e6c58['length'];){const _0x105649=_0x466a2d[_0xda51db]||{},_0x48ed50=_0x5e6c58[_0x588873]||{};if(_0x105649['id']==_0x48ed50['id'])_0xda51db++,_0x588873++,_0x18e25f['push'](_0x105649);else{if(_0x48ed50['isRemoved']&&_0x105649['isAdded']){const {commonTape:_0x1c07f3,iEnd:_0x2ef761,jEnd:_0x29067e}=this['_threeWayMerge'](_0x466a2d,_0xda51db,_0x5e6c58,_0x588873);_0x18e25f=_0x18e25f['concat'](_0x1c07f3),_0xda51db=_0x2ef761,_0x588873=_0x29067e;}else _0x48ed50['isRemoved']?(_0x588873++,_0x18e25f['push'](_0x48ed50)):(_0xda51db++,_0x18e25f['push'](_0x105649));}}return _0x18e25f;}['_markSuggestions'](_0x2ed67d,_0x3eb0e6){const _0x4b84c4=[];for(let _0x20cf72=0x0;_0x20cf72<_0x2ed67d['length'];_0x20cf72++){for(let _0x68b90a=0x0;_0x68b90a<_0x2ed67d[_0x20cf72]['markersStart']['length'];_0x68b90a++){const _0x35c9b5=_0x2ed67d[_0x20cf72]['markersStart'][_0x68b90a];if(!_0x3eb0e6['has'](_0x35c9b5))continue;const {group:_0x6062ca,type:_0x4173e5,authorId:_0x4b59a4}=_0x3bdab8(_0x35c9b5);'revision-suggestion'!=_0x6062ca||'insertion'!=_0x4173e5&&'deletion'!=_0x4173e5||(_0x4b84c4['unshift']({'type':_0x4173e5,'name':_0x35c9b5,'userId':_0x4b59a4}),_0x2ed67d[_0x20cf72]['markersStart']['splice'](_0x68b90a,0x1),_0x68b90a--);}_0x3e1345(_0x2ed67d[_0x20cf72]);for(let _0x5286ff=0x0;_0x5286ff<_0x2ed67d[_0x20cf72]['markersEnd']['length'];_0x5286ff++){const _0x1b8b6e=_0x2ed67d[_0x20cf72]['markersEnd'][_0x5286ff];if(!_0x3eb0e6['has'](_0x1b8b6e))continue;const {group:_0x2b0f07,type:_0x579b95}=_0x3bdab8(_0x1b8b6e);if('revision-suggestion'!=_0x2b0f07||'insertion'!=_0x579b95&&'deletion'!=_0x579b95)continue;_0x2ed67d[_0x20cf72]['markersEnd']['splice'](_0x5286ff,0x1),_0x5286ff--;const _0x4e57f6=_0x4b84c4['findIndex'](_0x50e829=>_0x50e829['name']==_0x1b8b6e);_0x4e57f6>-0x1&&_0x4b84c4['splice'](_0x4e57f6,0x1);}}function _0x3bdab8(_0x2c0096){const _0x120d64=_0x2c0096['split'](':');return{'group':_0x120d64[0x0],'type':_0x120d64[0x1],'subType':_0x120d64['length']>=0x5?_0x120d64[0x2]:null,'id':_0x120d64['length']<0x5?_0x120d64[0x2]:_0x120d64[0x3],'authorId':_0x120d64['length']<0x5?_0x120d64[0x3]:_0x120d64[0x4],'markerCount':0x6==_0x120d64['length']?_0x120d64[0x5]:null};}function _0x3e1345(_0x2551d9){for(let _0x235f09=0x0;_0x235f09<_0x4b84c4['length'];_0x235f09++){if(_0x2551d9['isAdded']&&'insertion'==_0x4b84c4[_0x235f09]['type'])return _0x2551d9['isAddSuggestion']=_0x4b84c4[_0x235f09],void delete _0x2551d9['isAdded'];if(!_0x2551d9['isAdded']&&!_0x2551d9['isRemoved']&&'deletion'==_0x4b84c4[_0x235f09]['type'])return void(_0x2551d9['isRemoveSuggestion']=_0x4b84c4[_0x235f09]);}}}['_setDistance'](_0x48dfce,_0x35c516){let _0x1794a6=0x0,_0x33bc85=!0x1;const _0x27de2a=new Map();for(const _0x43810f of _0x48dfce)_0x43810f[_0x35c516]?_0x33bc85&&(_0x1794a6++,_0x33bc85=!0x1):(_0x1794a6++,_0x33bc85=!0x0),_0x27de2a['set'](_0x43810f['id'],_0x1794a6);for(let _0x4877e9=0x0;_0x4877e9<_0x48dfce['length'];_0x4877e9++){if('isRemoved'==_0x35c516&&_0x48dfce[_0x4877e9]['isAdded']||'isAdded'==_0x35c516&&_0x48dfce[_0x4877e9]['isRemoved'])continue;if('text'==_0x48dfce[_0x4877e9]['type']){_0x48dfce[_0x4877e9]['distance']=0x0;continue;}const _0x5f5ad7=_0x27de2a['get'](_0x48dfce[_0x4877e9]['pairId']),_0x2ed723=_0x27de2a['get'](_0x48dfce[_0x4877e9]['id']);_0x48dfce[_0x4877e9]['distance']=_0x5f5ad7-_0x2ed723;}}['_getRevisionsRange'](_0x1b719a,_0xb7b45e,_0x5b135b=!0x1){const _0x3532d6=[];let _0x4162c7=this['repository']['getIndex'](_0x1b719a),_0xe61dce=this['repository']['getIndex'](_0xb7b45e);for(-0x1==_0xe61dce&&(_0xe61dce=this['repository']['_revisions']['length'],_0x5b135b=!0x1);_0x4162c7<_0xe61dce;)_0x3532d6['push'](this['repository']['getRevision'](_0x4162c7)),_0x4162c7++;return _0x5b135b&&_0x3532d6['push'](this['repository']['getRevision'](_0x4162c7)),_0x3532d6;}['_threeWayMerge'](_0x26262f,_0x16f5f2,_0x17faf5,_0x1a2069){const _0x7501e5=this['editor']['model']['schema'];let _0x2f86d4=_0x16f5f2;for(;_0x26262f[_0x2f86d4]&&_0x26262f[_0x2f86d4]['isAdded'];)_0x2f86d4++;let _0x142f25=_0x1a2069;for(;_0x17faf5[_0x142f25]&&_0x17faf5[_0x142f25]['isRemoved'];)_0x142f25++;_0xe0b54a(_0x26262f,_0x16f5f2,_0x2f86d4),_0xe0b54a(_0x17faf5,_0x1a2069,_0x142f25);const _0x2e2231=_0x17faf5['slice'](_0x1a2069,_0x142f25)['concat'](_0x26262f['slice'](_0x16f5f2,_0x2f86d4));return _0x2e2231['sort']((_0x3de21b,_0x23f678)=>_0x3de21b['side']!=_0x23f678['side']?_0x3de21b['side']-_0x23f678['side']:_0x3de21b['level']!=_0x23f678['level']?_0x3de21b['level']-_0x23f678['level']:_0x3de21b['distance']!=_0x23f678['distance']?_0x23f678['distance']-_0x3de21b['distance']:!!_0x3de21b['isAdded']!=!!_0x23f678['isAdded']?-0x1==_0x3de21b['side']||0x0==_0x3de21b['side']?_0x3de21b['isAdded']?-0x1:0x1:_0x3de21b['isAdded']?0x1:-0x1:_0x3de21b['index']-_0x23f678['index']),{'commonTape':_0x2e2231,'iEnd':_0x2f86d4,'jEnd':_0x142f25};function _0xe0b54a(_0x51390c,_0x55ca7e,_0x1ad4c3){let _0x1adbc0=-0x1,_0x3159e4=Number['POSITIVE_INFINITY'],_0x521c53=!0x0;for(let _0x13f6ee=_0x55ca7e;_0x13f6ee<_0x1ad4c3;_0x13f6ee++)if(_0x7501e5['isInline'](_0x51390c[_0x13f6ee]['item'])||(_0x521c53=!0x1),_0x51390c[_0x13f6ee]['item']['startIndex']<_0x55ca7e&&(_0x1adbc0=_0x13f6ee),_0x51390c[_0x13f6ee]['item']['endIndex']>=_0x1ad4c3){_0x3159e4=_0x13f6ee;break;}_0x521c53&&(_0x1adbc0=_0x1ad4c3-0x1);for(let _0x3e06f5=_0x55ca7e;_0x3e06f5<_0x1ad4c3;_0x3e06f5++)_0x51390c[_0x3e06f5]['side']=_0x3e06f5<=_0x1adbc0?-0x1:_0x3e06f5<_0x3159e4?0x0:0x1,_0x51390c[_0x3e06f5]['index']=_0x3e06f5;let _0x3c8a0f=0x0;for(let _0x5d608f=_0x55ca7e;_0x5d608f<=_0x1adbc0;_0x5d608f++)0x0==_0x51390c[_0x5d608f]['distance']?_0x51390c[_0x5d608f]['level']=_0x3c8a0f:(_0x3c8a0f++,_0x51390c[_0x5d608f]['level']=_0x3c8a0f,_0x3c8a0f++);for(let _0x5bdd05=_0x55ca7e;_0x5bdd05<_0x1ad4c3;_0x5bdd05++)0x0==_0x51390c[_0x5bdd05]['side']&&(_0x51390c[_0x5bdd05]['level']=_0x3c8a0f);_0x3c8a0f=0x0;for(let _0xcabff3=_0x1ad4c3-0x1;_0xcabff3>=_0x3159e4;_0xcabff3--)0x0==_0x51390c[_0xcabff3]['distance']?_0x51390c[_0xcabff3]['level']=_0x3c8a0f:(_0x3c8a0f--,_0x51390c[_0xcabff3]['level']=_0x3c8a0f,_0x3c8a0f--);}}['_fixObsoleteTags'](_0x6357ce){const _0x515aba=new Map(),_0x2707d1=this['editor']['model']['schema'];for(let _0x384880=0x1;_0x384880<_0x6357ce['length'];_0x384880++){let _0x38c10b,_0x96040d,_0xb94b62;const _0x543cb9=_0x6357ce[_0x384880],_0x1bf4be=_0x6357ce[_0x384880-0x1];if('text'==_0x543cb9['type'])continue;if(_0x543cb9['type']!=_0x1bf4be['type'])continue;if(!_0x2707d1['isBlock'](_0x1bf4be['item'])||_0x2707d1['isLimit'](_0x1bf4be['item']))continue;if(!_0x2707d1['isBlock'](_0x543cb9['item'])||_0x2707d1['isLimit'](_0x543cb9['item']))continue;if((_0x6357ce[_0x384880]['isAdded']||_0x6357ce[_0x384880]['isAddSuggestion'])&&_0x6357ce[_0x384880-0x1]['isRemoved'])_0x38c10b=_0x6357ce[_0x384880],_0x96040d=_0x6357ce[_0x384880-0x1],_0xb94b62=_0x384880-0x1;else{if(!_0x6357ce[_0x384880]['isRemoved']||!_0x6357ce[_0x384880-0x1]['isAdded']&&!_0x6357ce[_0x384880-0x1]['isAddSuggestion'])continue;_0x38c10b=_0x6357ce[_0x384880-0x1],_0x96040d=_0x6357ce[_0x384880],_0xb94b62=_0x384880;}const _0x538833=_0x38c10b['level']==_0x96040d['level'],_0x4bfe9e=Math['abs'](_0x38c10b['level'])<Math['abs'](_0x96040d['level'])&&0x0==_0x96040d['distance'];(_0x538833||_0x4bfe9e)&&(_0x515aba['set'](_0x96040d['id'],_0x38c10b['id']),_0x6357ce['splice'](_0xb94b62,0x1),_0x384880--,_0x38c10b['isAdded']=!0x1);}for(let _0x12666a=0x0;_0x12666a<_0x6357ce['length'];_0x12666a++)_0x515aba['has'](_0x6357ce[_0x12666a]['pairId'])&&(_0x6357ce[_0x12666a]['pairId']=_0x515aba['get'](_0x6357ce[_0x12666a]['pairId']));}['_removeMissingPairs'](_0x2f4900){const _0xde68c7=new Set(_0x2f4900['map'](_0x1c9dd6=>_0x1c9dd6['id']));for(let _0x38eca0=0x0;_0x38eca0<_0x2f4900['length'];_0x38eca0++)_0xde68c7['has'](_0x2f4900[_0x38eca0]['pairId'])||0x0==_0x2f4900[_0x38eca0]['distance']||(_0x2f4900[_0x38eca0]['isIncorrect']=!0x0);return _0x2f4900['filter'](_0x4ecfc4=>!_0x4ecfc4['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2f67c2){const _0x3d3176=new Set();for(let _0x5e906f=0x0;_0x5e906f<_0x2f67c2['length'];_0x5e906f++){if(_0x3d3176['has'](_0x2f67c2[_0x5e906f]['id'])&&_0x2f67c2[_0x5e906f]['isRemoved']&&(_0x2f67c2[_0x5e906f]['isIncorrect']=!0x0),_0x2f67c2[_0x5e906f]['isIncorrect'])continue;if(0x0==_0x2f67c2[_0x5e906f]['distance'])continue;if('elementStart'!=_0x2f67c2[_0x5e906f]['type'])continue;if(null==_0x2f67c2[_0x5e906f]['pairId'])continue;let _0x3535e9=_0x5e906f+0x1,_0x254a02=0x0;for(;_0x2f67c2[_0x3535e9]['id']!=_0x2f67c2[_0x5e906f]['pairId'];)'elementStart'==_0x2f67c2[_0x3535e9]['type']?_0x254a02++:'elementEnd'==_0x2f67c2[_0x3535e9]['type']&&_0x254a02--,_0x3535e9++;if(0x0!=_0x254a02){if(_0x2f67c2[_0x5e906f]['isRemoved'])_0x2f67c2[_0x5e906f]['isIncorrect']=!0x0;else{for(;_0x3535e9!=_0x5e906f;)_0x2f67c2[_0x3535e9]['isRemoved']&&0x0!=_0x2f67c2[_0x3535e9]['distance']&&(_0x2f67c2[_0x3535e9]['isIncorrect']=!0x0,_0x3d3176['add'](_0x2f67c2[_0x3535e9]['pairId'])),_0x3535e9--;}}}return _0x2f67c2['filter'](_0x501f0=>!_0x501f0['isIncorrect']);}['_removeUnsupportedChanges'](_0x282fed){const _0xfc1ce=this['editor']['model']['schema'];for(let _0x335551=0x0;_0x335551<_0x282fed['length'];_0x335551++){if(!(_0x282fed[_0x335551]['isAdded']||_0x282fed[_0x335551]['isAddSuggestion']||_0x282fed[_0x335551]['isRemoved']||_0x282fed[_0x335551]['isRemoveSuggestion']))continue;if(0x0==_0x282fed[_0x335551]['distance'])continue;const _0x36b7c6=_0x282fed[_0x335551]['item'];_0xfc1ce['isBlock'](_0x36b7c6)||_0xfc1ce['isLimit'](_0x36b7c6)||(_0x282fed[_0x335551]['isAdded']&&delete _0x282fed[_0x335551]['isAdded'],_0x282fed[_0x335551]['isAddSuggestion']&&delete _0x282fed[_0x335551]['isAddSuggestion'],_0x282fed[_0x335551]['isRemoveSuggestion']&&delete _0x282fed[_0x335551]['isRemoveSuggestion'],_0x282fed[_0x335551]['isRemoved']&&(_0x282fed[_0x335551]['isIncorrect']=!0x0));}return _0x282fed['filter'](_0x38b1e3=>!_0x38b1e3['isIncorrect']);}['_makeModelFromTape'](_0x8e3779,_0x4f9b6d,_0x2190f0){const _0x152568=new gt(),_0x1e0004=[],_0x387f4a=new Map(),_0x393c34=this['editor']['model'],_0x180923=_0x393c34['schema'],_0x1d6239=[_0x152568],_0x4ec44b={},_0x58632e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2db9e3=null;const _0x1fd37b=[0x0];for(let _0x40dea2=0x0;_0x40dea2<_0x8e3779['length'];_0x40dea2++)if('elementStart'===_0x8e3779[_0x40dea2]['type']){_0x8e3779[_0x40dea2]['previousPosition']=_0x393c34['createPositionFromPath'](_0x152568,_0x1fd37b);const _0x82ba19=new ut(_0x8e3779[_0x40dea2]['item']['name'],_0x8e3779[_0x40dea2]['item']['getAttributes']());_0x1d6239[0x0]['_appendChild'](_0x82ba19),_0x1fd37b['push'](0x0),_0x1d6239['unshift'](_0x82ba19),_0x8e3779[_0x40dea2]['nextPosition']=_0x393c34['createPositionFromPath'](_0x152568,_0x1fd37b);}else'elementEnd'===_0x8e3779[_0x40dea2]['type']?(_0x1d6239['shift'](),_0x8e3779[_0x40dea2]['previousPosition']=_0x393c34['createPositionFromPath'](_0x152568,_0x1fd37b),_0x1fd37b['pop'](),_0x1fd37b[_0x1fd37b['length']-0x1]++,_0x8e3779[_0x40dea2]['nextPosition']=_0x393c34['createPositionFromPath'](_0x152568,_0x1fd37b)):(_0x8e3779[_0x40dea2]['previousPosition']=_0x393c34['createPositionFromPath'](_0x152568,_0x1fd37b),_0x2db9e3?_0x2db9e3['_data']+=_0x8e3779[_0x40dea2]['item']['data']:_0x2db9e3=new wt(_0x8e3779[_0x40dea2]['item']['data'],_0x8e3779[_0x40dea2]['item']['getAttributes']()),_0x8e3779[_0x40dea2+0x1]&&'text'===_0x8e3779[_0x40dea2+0x1]['type']&&_0x2d5884(_0x2db9e3,_0x8e3779[_0x40dea2+0x1]['item'])||(_0x1d6239[0x0]['_appendChild'](_0x2db9e3),_0x2db9e3=null),_0x1fd37b[_0x1fd37b['length']-0x1]+=_0x8e3779[_0x40dea2]['item']['offsetSize'],_0x8e3779[_0x40dea2]['nextPosition']=_0x393c34['createPositionFromPath'](_0x152568,_0x1fd37b));for(let _0x2f7e45=0x0;_0x2f7e45<_0x8e3779['length'];_0x2f7e45++){const _0x49be13=_0x8e3779[_0x2f7e45]['previousPosition'],_0x3bf06b=_0x8e3779[_0x2f7e45]['nextPosition'];for(const _0x495120 of _0x8e3779[_0x2f7e45]['markersStart'])_0x387f4a['set'](_0x495120,{'start':_0x49be13,'end':null});_0x44cdeb('isRemoveSuggestion',_0x2f7e45,_0x49be13,_0x3bf06b),_0x44cdeb('isAddSuggestion',_0x2f7e45,_0x49be13,_0x3bf06b),_0x44cdeb('isRemoved',_0x2f7e45,_0x49be13,_0x3bf06b),_0x44cdeb('isAdded',_0x2f7e45,_0x49be13,_0x3bf06b);for(const _0x3b3f76 of _0x8e3779[_0x2f7e45]['markersEnd']){_0x387f4a['get'](_0x3b3f76)['end']=_0x3bf06b;}}for(const [_0x6b872d,_0x290314]of _0x387f4a){const _0x56a1d4=this['editor']['model']['createRange'](_0x290314['start'],_0x290314['end']);_0x152568['markers']['set'](_0x6b872d,_0x56a1d4);}return _0x1e0004['sort']((_0x5b00cb,_0x3efc0e)=>{const _0xccdd8f=_0x152568['markers']['get']('revision:'+_0x5b00cb['id']),_0xea8df1=_0x152568['markers']['get']('revision:'+_0x3efc0e['id']);return _0xccdd8f['start']['isBefore'](_0xea8df1['start'])?-0x1:_0xccdd8f['start']['isAfter'](_0xea8df1['start'])?0x1:_0xccdd8f['end']['isBefore'](_0xea8df1['end'])?-0x1:_0xccdd8f['end']['isAfter'](_0xea8df1['end'])?0x1:'add'===_0x5b00cb['type']?-0x1:0x1;}),{'root':_0x152568,'changes':_0x1e0004};function _0x44cdeb(_0xe66021,_0x3ffb3d,_0x51e2bf,_0x4c4385){const _0x5d3ba2=!!_0x8e3779[_0x3ffb3d][_0xe66021],_0x1b87c5=_0x5d3ba2?_0x8e3779[_0x3ffb3d][_0xe66021]['userId']:null,_0x306074=_0x3ffb3d===_0x8e3779['length']-0x1,_0x41acdd=_0x58632e[_0xe66021][0x0],_0x552a85=_0x180923['isObject'](_0x8e3779[_0x3ffb3d]['item']);!_0x4ec44b[_0xe66021]&&_0x5d3ba2?_0x4ec44b[_0xe66021]={'start':_0x51e2bf,'tapeItem':_0x8e3779[_0x3ffb3d],'userId':_0x1b87c5,'type':_0xe66021}:_0x4ec44b[_0xe66021]&&!_0x5d3ba2?(_0x4ec44b[_0xe66021]['end']=_0x51e2bf,_0x1033d9(_0x4ec44b[_0xe66021]),_0x4ec44b[_0xe66021]=null):_0x4ec44b[_0xe66021]&&_0x5d3ba2&&_0x4ec44b[_0xe66021]['userId']!==_0x1b87c5&&(_0x4ec44b[_0xe66021]['end']=_0x51e2bf,_0x41acdd&&_0x41acdd['userId']===_0x4ec44b[_0xe66021]['userId']||_0x1033d9(_0x4ec44b[_0xe66021]),_0x4ec44b[_0xe66021]={'start':_0x51e2bf,'tapeItem':_0x8e3779[_0x3ffb3d],'userId':_0x1b87c5,'type':_0xe66021}),_0x4ec44b[_0xe66021]&&_0x552a85&&('elementStart'!==_0x8e3779[_0x3ffb3d]['type']||_0x41acdd&&_0x41acdd['userId']===_0x1b87c5||_0x58632e[_0xe66021]['unshift']({'userId':_0x1b87c5,'object':_0x8e3779[_0x3ffb3d]['item'],'change':_0x4ec44b[_0xe66021]}),'elementEnd'===_0x8e3779[_0x3ffb3d]['type']&&_0x41acdd&&_0x41acdd['object']===_0x8e3779[_0x3ffb3d]['item']&&(_0x58632e[_0xe66021]['shift'](),_0x4ec44b[_0xe66021]=_0x41acdd['change'])),_0x4ec44b[_0xe66021]&&_0x306074&&(_0x4ec44b[_0xe66021]['end']=_0x4c4385,_0x1033d9(_0x4ec44b[_0xe66021]),_0x4ec44b[_0xe66021]=null);}function _0x1033d9({start:_0x43ad34,end:_0x5e298e,tapeItem:_0x59ee35,userId:_0x1b0cdc,type:_0x4c33c1}){const _0x4a1e54=_0x59ee35['item'],_0x51f112=_0x393c34['schema']['isBlock'](_0x4a1e54)&&!_0x393c34['schema']['isLimit'](_0x4a1e54),_0x30982b=_0x43ad34['nodeAfter']==_0x5e298e['parent']&&_0x5e298e['isAtStart'];if(_0x51f112&&_0x30982b)return;const _0x3296bc=_0x393c34['createRange'](_0x43ad34,_0x5e298e),_0x4630e0=_0x4f9b6d['get'](_0x1b0cdc),_0x54ffdd=new r({'author':_0x4630e0,'type':'isAdded'==_0x4c33c1||'isAddSuggestion'==_0x4c33c1?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4c33c1||'isRemoveSuggestion'==_0x4c33c1},'createdAt':new Date(),'rootName':_0x2190f0});_0x1e0004['push'](_0x54ffdd),_0x152568['markers']['set']('revision:'+_0x54ffdd['id'],_0x3296bc);}function _0x2d5884(_0x403c55,_0x372b41){const _0x2c6a96=_0x403c55['getAttributes'](),_0x5763e1=_0x372b41['getAttributes']();for(const _0x9ff282 of _0x2c6a96){if(_0x9ff282[0x1]!==_0x372b41['getAttribute'](_0x9ff282[0x0]))return!0x1;_0x5763e1['next']();}return _0x5763e1['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3877f8=>{const _0x798acb=_0x3877f8['markerName']['split'](':')[0x1],_0x2e1b6d=this['_getChangeFromId'](_0x798acb);if(!_0x2e1b6d)return null;const _0x5d35d4='add'==_0x2e1b6d['type']?'insertion':'deletion',_0x3877ae=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5d35d4];return _0x2e1b6d['data']['isSuggestion']&&_0x3877ae['push']('ck-suggestion-marker-'+_0x5d35d4+'-new'),this['activeChange']==_0x2e1b6d&&_0x3877ae['push']('ck-suggestion-marker--active'),{'classes':_0x3877ae,'attributes':{'data-change-id':_0x798acb}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2e19fa=>{_0x2e19fa['on']('element:pre',(_0x2a8c37,_0x445bb2,_0x3c4de1)=>{const _0x10617f=_0x445bb2['viewItem']['getChild'](0x0);if(!_0x10617f||!_0x10617f['is']('element','code'))return;if(!_0x3c4de1['consumable']['consume'](_0x10617f,{'attributes':['vid_start','vid_end']}))return;const _0x3a4cc9=_0x445bb2['modelRange']['start']['nodeAfter'];_0x3c4de1['writer']['setAttribute']('vid_start',_0x10617f['getAttribute']('vid_start'),_0x3a4cc9),_0x3c4de1['writer']['setAttribute']('vid_end',_0x10617f['getAttribute']('vid_end'),_0x3a4cc9);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x548b17=>{_0x548b17['on']('element',(_0x1b9296,_0x320d6a,_0x22acf3)=>{if(!_0x22acf3['consumable']['consume'](_0x320d6a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x320d6a['modelRange']['isCollapsed'])return;const _0x4975b2=_0x320d6a['modelRange']['start']['nodeAfter'];_0x4975b2['hasAttribute']('vid_start')||_0x4975b2['hasAttribute']('vid')||(_0x22acf3['writer']['setAttribute']('vid_start',_0x320d6a['viewItem']['getAttribute']('vid_start'),_0x4975b2),_0x22acf3['writer']['setAttribute']('vid_end',_0x320d6a['viewItem']['getAttribute']('vid_end'),_0x4975b2));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1be177=>_0x1be177['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4394aa,[,_0x5e10cb])=>{['vid_start','vid_end','vid']['includes'](_0x5e10cb)&&(_0x4394aa['return']=!0x0,_0x4394aa['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1ee6bb=>{_0x1ee6bb['on']('attribute:vid',(_0x351856,_0x466ada,_0xb978fb)=>{if('\x20'!=_0x466ada['item']['data']||_0x466ada['item']['parent']['maxOffset']>0x1)return;if(!_0xb978fb['consumable']['consume'](_0x466ada['item'],_0x351856['name']))return;const _0x3d611c=_0xb978fb['writer'],_0x45d279=_0xb978fb['mapper']['toViewRange'](_0x466ada['range']);_0x3d611c['wrap'](_0x45d279,_0x3d611c['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x51d936){const _0x5d3c06=_0x51d936['plugins']['get']('RevisionViewer');return(_0x3fba5b,_0x45923c,_0x5cfdb0)=>{const _0x599208=_0x45923c['markerName']['split'](':')[0x1],_0x1b0b71=_0x5d3c06['_getChangeFromId'](_0x599208);if(!_0x1b0b71)return null;const _0x59bfb7='add'==_0x1b0b71['type']?'split':'merge';if(!_0x5cfdb0['consumable']['test'](_0x45923c['markerRange'],_0x3fba5b['name']))return;const _0x163d5e=_0x45923c['markerRange']['getWalker'](),_0xed2e10=_0x45923c['markerRange']['start'],_0x4f2ca9=_0x51d936['model']['schema'];let _0xf131f5=null,_0x59b8d1=null,_0x2f816a=!0x1,_0x1596d3=!0x1;for(const _0x25da91 of _0x163d5e){const _0x2e7ff6=_0x25da91['item'];_0x2f816a=_0x2f816a||_0x4f2ca9['isContent'](_0x2e7ff6);const _0x25bf89=_0x5cfdb0['mapper']['toViewElement'](_0x2e7ff6);if(_0x25bf89&&_0x25bf89['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x25da91['type']&&(_0x4f2ca9['isBlock'](_0x2e7ff6)&&!_0x4f2ca9['isLimit'](_0x2e7ff6)&&(_0x2e7ff6['nextSibling']||_0xed2e10['isAtEnd']?_0xf131f5&&_0xf131f5['parent']==_0x2e7ff6||(_0xf131f5=_0x2e7ff6,_0x4912a3(_0x25da91['previousPosition']),_0x1596d3=!0x0):_0x59b8d1=_0x59b8d1||_0x25da91['previousPosition']));}function _0x4912a3(_0x135fff){const _0x57f1f3=_0x5cfdb0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x59bfb7}),_0x55be1b=_0x5cfdb0['mapper']['toViewPosition'](_0x135fff);_0x1b0b71['data']['isSuggestion']&&_0x5cfdb0['writer']['addClass']('ck-suggestion-marker-'+_0x59bfb7+'-new',_0x57f1f3),_0x5d3c06['activeChange']==_0x1b0b71&&_0x5cfdb0['writer']['addClass']('ck-suggestion-marker--active',_0x57f1f3),_0x5cfdb0['writer']['insert'](_0x55be1b,_0x57f1f3),_0x5cfdb0['mapper']['bindElementToMarker'](_0x57f1f3,_0x45923c['markerName']);}_0x2f816a||_0x1596d3||!_0x59b8d1||_0x4912a3(_0x59b8d1);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5591cd,_0x542d5c,_0x116ba6)=>{const _0x4d9ee7=_0x116ba6['mapper']['markerNameToElements'](_0x542d5c['markerName']);if(_0x4d9ee7){for(const _0x4e83d1 of _0x4d9ee7)(_0x4e83d1['hasClass']('ck-suggestion-marker-split')||_0x4e83d1['hasClass']('ck-suggestion-marker-merge'))&&(_0x116ba6['mapper']['unbindElementFromMarkerName'](_0x4e83d1,_0x542d5c['markerName']),_0x116ba6['writer']['remove'](_0x4e83d1));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x20bead,_0x32bf7c,_0x3fb78f)=>{const _0x2113fd=_0x32bf7c['markerName']['split'](':')[0x1],_0x127e4a=this['_getChangeFromId'](_0x2113fd);if(!_0x127e4a)return null;const _0x2fb255='add'==_0x127e4a['type']?'split':'merge';if(_0x3fb78f['consumable']['test'](_0x32bf7c['markerRange'],_0x20bead['name']))for(const _0x278160 of _0x32bf7c['markerRange']['getItems']()){if(!_0x278160['is']('element','softBreak'))continue;const _0x527f0b=_0x3fb78f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2fb255}),_0x2f359a=_0x3fb78f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x278160));_0x127e4a['data']['isSuggestion']&&_0x3fb78f['writer']['addClass']('ck-suggestion-marker-'+_0x2fb255+'-new',_0x527f0b),this['activeChange']==_0x127e4a&&_0x3fb78f['writer']['addClass']('ck-suggestion-marker--active',_0x527f0b),_0x3fb78f['writer']['insert'](_0x2f359a,_0x527f0b),_0x3fb78f['mapper']['bindElementToMarker'](_0x527f0b,_0x32bf7c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2526b1=>{for(const _0x28b041 of this['editor']['model']['document']['getRootNames']()){const _0x1ee702=this['editor']['model']['document']['getRoot'](_0x28b041),_0xbc475=this['editor']['editing']['view']['document']['getRoot'](_0x28b041);if(_0xbc475){const _0x5112a2=_0x1ee702['getAttribute']('revisionHistoryAttachChange');if(_0x2526b1['removeAttribute']('data-change-id',_0xbc475),_0x2526b1['removeClass']('ck-revision-history-root-add',_0xbc475),_0x2526b1['removeClass']('ck-revision-history-root-remove',_0xbc475),_0x2526b1['removeClass']('ck-revision-history-root--active',_0xbc475),_0x5112a2){const _0x3b0922=this['_getChangeFromId'](_0x5112a2);if(!_0x3b0922)return null;_0x2526b1['setAttribute']('data-change-id',_0x5112a2,_0xbc475),_0x2526b1['addClass']('ck-revision-history-root-'+_0x3b0922['type'],_0xbc475),this['activeChange']==_0x3b0922&&_0x2526b1['addClass']('ck-revision-history-root--active',_0xbc475);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5c089d=>'revision-comment:'+_0x5c089d,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x33de22=>'revision-suggestion:'+_0x33de22,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5569a6=>({'name':'suggestion:'+_0x5569a6,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xf6db20=>{const _0x3ea578=_0xf6db20['markerName']['split'](':')[0x1];return'insertion'!=_0x3ea578&&'deletion'!=_0x3ea578?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3ea578]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3b4832,_0x552c23,_0x3af381)=>{const _0x3dc801=_0x3af381['mapper']['markerNameToElements'](_0x552c23['markerName']);if(_0x3dc801){for(const _0x4ea590 of _0x3dc801)_0x4ea590['is']('uiElement')&&(_0x3af381['mapper']['unbindElementFromMarkerName'](_0x4ea590,_0x552c23['markerName']),_0x3af381['writer']['remove'](_0x4ea590));}},{'priority':'high'});}['_getChangeFromId'](_0xb2f9ec){return this['_changeIdToChange']['get'](_0xb2f9ec);}['_getViewForChange'](_0x477581){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x477581),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4c73e4,_0x263474,_0x54a3ff,_0x585fd9)=>{_0x585fd9&&this['_balloon']['remove'](_0x585fd9),_0x54a3ff&&(this['_balloon']['add']({'view':_0x54a3ff,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x57326a=this['editor']['editing'],_0x22131e=this['_getChangeFromId'](_0x54a3ff['changeId']);let _0xefda0b;if(_0x22131e['data']['isOnRoot']){const _0x29277b=_0x57326a['view']['getDomRoot'](_0x22131e['rootName']);_0xefda0b=Array['from'](_0x29277b['getClientRects']());}else{const _0x257e23=this['editor']['model']['markers']['get']('revision:'+_0x54a3ff['changeId']);_0xefda0b=Array['from'](_0x57326a['mapper']['markerNameToElements'](_0x257e23['name']))['map'](_0xdeabe9=>_0x57326a['view']['domConverter']['mapViewToDom'](_0xdeabe9))['map'](_0x18b883=>Array['from'](_0x18b883['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xefda0b[0x0];return _0xefda0b['find'](_0x41cf4b=>_0x41cf4b['top']-0x3<=this['_activeViewTarget']['y']&&_0x41cf4b['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x41cf4b['left']-0x3<=this['_activeViewTarget']['x']&&_0x41cf4b['right']+0x3>=this['_activeViewTarget']['x'])||_0xefda0b[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4673,_0x2bca69,_0x46ed3b,_0x21dd51)=>{this['activeView']=_0x46ed3b?this['_getViewForChange'](_0x46ed3b):null,this['editor']['model']['change'](()=>{const _0x2ed3e2=this['editor']['editing'];_0x21dd51&&(_0x21dd51['data']['isOnRoot']?_0x2ed3e2['view']['change'](_0xc15663=>{_0xc15663['removeClass']('ck-revision-history-root--active',_0x2ed3e2['view']['document']['getRoot'](_0x21dd51['rootName']));}):_0x2ed3e2['reconvertMarker']('revision:'+_0x21dd51['id'])),_0x46ed3b&&(_0x46ed3b['data']['isOnRoot']?_0x2ed3e2['view']['change'](_0x48d3ef=>{_0x48d3ef['addClass']('ck-revision-history-root--active',_0x2ed3e2['view']['document']['getRoot'](_0x46ed3b['rootName']));}):_0x2ed3e2['reconvertMarker']('revision:'+_0x46ed3b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x235821,_0x5035f3)=>{if(this['activeChange'])return;const _0x1b29f2=this['_findChangeIdFromDomTarget'](_0x5035f3['target']),_0x40e5e8=this['_changeIdToChange']['get'](_0x1b29f2);_0x40e5e8?(this['_activeViewTarget']={'x':_0x5035f3['domEvent']['x'],'y':_0x5035f3['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x40e5e8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5d405d,_0x199b20)=>{const _0x347ec9=this['_findChangeIdFromDomTarget'](_0x199b20['target']),_0x4a1061=this['_changeIdToChange']['get'](_0x347ec9);_0x4a1061?(this['_activeViewTarget']={'x':_0x199b20['domEvent']['x'],'y':_0x199b20['domEvent']['y']},_0x4a1061===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4a1061):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x59effd){do{const _0x3240ea=_0x59effd['getAttribute']('data-change-id');if(_0x3240ea)return _0x3240ea;_0x59effd=_0x59effd['parent'];}while(_0x59effd);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x54d057=>{for(const _0x898d72 of this['editor']['model']['markers'])_0x54d057['removeMarker'](_0x898d72);});}}function Z(_0x2ba74b,_0x5c2efe){return(_0x3d72e0,_0x560540,_0x5e2f29)=>{if(!_0x5e2f29['consumable']['test'](_0x560540['markerRange'],_0x3d72e0['name']))return;const _0x5db5fe=_0x560540['markerRange']['getWalker'](),_0x47c480=_0x560540['markerRange']['start'],_0x16fa5c=_0x2ba74b['model']['schema'];let _0x43cf80=null,_0x2f0fbc=null,_0x566bae=!0x1,_0x33ae0d=!0x1;for(const _0x21d020 of _0x5db5fe){const _0x12dcc9=_0x21d020['item'];_0x566bae=_0x566bae||_0x16fa5c['isContent'](_0x12dcc9);const _0x101f27=_0x5e2f29['mapper']['toViewElement'](_0x12dcc9);if(_0x101f27&&_0x101f27['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x21d020['type']&&(_0x16fa5c['isBlock'](_0x12dcc9)&&!_0x16fa5c['isLimit'](_0x12dcc9)&&(_0x12dcc9['nextSibling']||_0x47c480['isAtEnd']?_0x43cf80&&_0x43cf80['parent']==_0x12dcc9||(_0x43cf80=_0x12dcc9,_0x1ee04c(_0x21d020['previousPosition']),_0x33ae0d=!0x0):_0x2f0fbc=_0x2f0fbc||_0x21d020['previousPosition']));}function _0x1ee04c(_0x51d842){const _0x287010=_0x5e2f29['mapper']['toViewPosition'](_0x51d842),_0x1d360d=_0x5e2f29['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5c2efe});_0x5e2f29['writer']['insert'](_0x287010,_0x1d360d),_0x5e2f29['mapper']['bindElementToMarker'](_0x1d360d,_0x560540['markerName']);}_0x566bae||_0x33ae0d||!_0x2f0fbc||_0x1ee04c(_0x2f0fbc);};}class _t extends _0x4a8c94{constructor(_0x157f77){super(_0x157f77);const _0x4225c4=_0x157f77['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4225c4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4225c4,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x58ae0e=this['editor'],_0xeb9fc3=_0x58ae0e['plugins']['get'](d),_0x3af5ca=_0xeb9fc3['isReady']?_0xeb9fc3['diff']['newRevisionId']:null;_0x58ae0e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3af5ca);}['refresh'](){const {isReady:_0x4644be,isEnabled:_0x58bdb0,repository:_0x4b87eb,diff:_0x3f54b5}=this['editor']['plugins']['get'](d),_0x1ffc07=_0x3f54b5&&_0x4b87eb['getLaterVisibleRevision'](_0x3f54b5['newRevisionId']);this['isEnabled']=_0x4644be&&_0x58bdb0&&Boolean(_0x1ffc07);}}class yt extends _0x4a8c94{['_step'];constructor(_0x44675b,{direction:_0x36bf91}){super(_0x44675b);const _0x4ee4f9=_0x44675b['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x36bf91?0x1:-0x1,this['listenTo'](_0x4ee4f9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4ee4f9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4ee4f9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1494aa=this['editor'],_0x33a8fd=_0x1494aa['plugins']['get'](d),{isNavigationMode:_0x11d64d,currentChangeNumber:_0x550133}=_0x33a8fd;let _0x250b67;if(_0x33a8fd['activeChange']=_0x11d64d?_0x33a8fd['diff']['changes']['get'](_0x550133+this['_step']):_0x33a8fd['diff']['changes']['first'],_0x33a8fd['activeChange']['data']['isOnRoot'])_0x250b67=_0x1494aa['editing']['view']['getDomRoot'](_0x33a8fd['activeChange']['rootName']);else{const _0x1a709a=_0x1494aa['model']['markers']['get']('revision:'+_0x33a8fd['activeChange']['id']);_0x250b67=_0x2ffac5(_0x1494aa['editing'],_0x1a709a);}_0x1538ce({'target':_0x250b67,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2c6c91,currentChangeNumber:_0x505247,numberOfChanges:_0x368e82,isReady:_0x460dfb,isEnabled:_0x9317d4}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x9317d4&&_0x460dfb&&_0x368e82)&&(!_0x2c6c91||(0x1===this['_step']?_0x505247<_0x368e82-0x1:_0x505247>0x0));}}class _i extends _0x2fbfd0{constructor(_0x310e43){super(_0x310e43);const _0x25bb3c=this['bindTemplate'],_0x30d4a2=new _0x599e02(_0x310e43),_0xe34504=new _0x599e02(_0x310e43);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',(_0x58fe3b,_0x4c9da6)=>_0x58fe3b&&_0x4c9da6>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x118f73,_0x2eb953,_0x468f37,_0x237b5d)=>{if(!_0x118f73)return m(_0x310e43,'Loading...');if(!_0x468f37)return m(_0x310e43,'No\x20changes');const _0x32703d=m(_0x310e43,'NUMBER_OF_CHANGES',_0x468f37);return _0x237b5d?m(_0x310e43,'X_OF_Y_CHANGES',[_0x2eb953+0x1,_0x468f37]):_0x32703d;}),_0x30d4a2['set']({'label':m(_0x310e43,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x3903b9}),_0xe34504['set']({'label':m(_0x310e43,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x3c4c08}),_0x30d4a2['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xe34504['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x30d4a2['on']('execute',()=>this['fire']('execute','backward')),_0xe34504['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',_0x25bb3c['if']('_isStatusLabelVisible','ck-hidden',_0x2561e9=>!_0x2561e9)]},'children':[{'text':_0x25bb3c['to']('isNavigationMode',_0x5d4d34=>_0x5d4d34?m(_0x310e43,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x310e43,'Total')+':\x20')}]},{'text':_0x25bb3c['to']('_statusText')}]},new _0x2294b0(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x30d4a2,_0xe34504]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x545567{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2030b7=this['editor']['editing']['view'];_0x2030b7['change'](_0x13554e=>{for(const _0x5d5b00 of _0x2030b7['document']['roots'])_0x13554e['addClass'](ce,_0x5d5b00);});}['hide'](){const _0x5e4643=this['editor']['editing']['view'];_0x5e4643['change'](_0x10735b=>{for(const _0x1cfed7 of _0x5e4643['document']['roots'])_0x10735b['removeClass'](ce,_0x1cfed7);});}}class w extends _0x545567{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x593f01=this['editor'],_0x3183de=_0x593f01['plugins']['get'](d),_0x738116=_0x593f01['plugins']['get'](le);_0x593f01['ui']['componentFactory']['add']('exitToEditing',_0x38dd8c=>{const _0x128816=new _0x599e02(_0x38dd8c);return _0x128816['set']({'label':m(_0x38dd8c,'Back\x20to\x20editing'),'icon':_0x1c1e6f,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x128816,'execute',()=>{_0x593f01['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x128816;}),_0x593f01['ui']['componentFactory']['add']('restoreRevision',_0x2b7fb9=>{const _0x383934=new _0x599e02(_0x2b7fb9);return _0x383934['set']({'label':m(_0x2b7fb9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x383934['bind']('isEnabled')['to'](_0x593f01['commands']['get']('restoreRevision')),this['listenTo'](_0x383934,'execute',()=>_0x593f01['execute']('restoreRevision')),_0x383934;}),_0x593f01['ui']['componentFactory']['add']('changesNavigation',_0x147f77=>{const _0x57d572=new _i(_0x147f77),_0x299070=_0x593f01['commands']['get']('showPreviousChange'),_0x34ec85=_0x593f01['commands']['get']('showNextChange');return _0x57d572['bind']('isBackwardNavigationEnabled')['to'](_0x299070,'isEnabled'),_0x57d572['bind']('isForwardNavigationEnabled')['to'](_0x34ec85,'isEnabled'),_0x57d572['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3183de),this['listenTo'](_0x57d572,'execute',(_0x1f9215,_0xb52d3b)=>{_0x593f01['execute']('forward'===_0xb52d3b?'showNextChange':'showPreviousChange');}),_0x57d572;}),_0x738116['show'](),_0x3183de['on']('change:isReady',(_0xf49746,_0xd8cc81,_0x332b2a)=>{_0x332b2a?_0x738116['hide']():_0x738116['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x3ce7ec,_0x4dca95){super(_0x3ce7ec,_0x4dca95);const _0x5b9cea=this['bindTemplate'];this['set']({'label':m(_0x3ce7ec,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x3ce7ec,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5b9cea['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4417db=this['fieldView']['element'];this['_tooltipString']=_0x4417db['scrollWidth']>_0x4417db['clientWidth']&&_0x4417db['value']||'';}}class oi extends _0x2fbfd0{constructor(_0x53b937,_0x348662,_0x3eae65){super(_0x53b937);const _0x53433c=new _0x2ec47d();_0x53433c['set']({'content':_0x20eb41,'viewBox':'0\x200\x2011\x2010'});const _0xdbfb78=['ck','ck-revision-history-sidebar__revision-author'];_0x3eae65&&_0xdbfb78['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1a8b3f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x53b937,_0x3eae65?'Revision\x20creator':'Revision\x20author')},'children':[_0x53433c,_0x348662['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xdbfb78},'children':_0x1a8b3f});}}function ni(_0x42cb12,_0x3ccea5){const _0x5b21d3=_0x42cb12['bindTemplate'],_0x45dafd=_0x42cb12['locale'],_0x1ce88b=_0x3efc4b(_0x45dafd);_0x1ce88b['panelPosition']='sw';const _0xb0c876=function(_0x123fc2,_0x429bcd){const _0xa2f246=function(_0x211ff2,_0xf0f3af){const _0x2a54c5=_0x211ff2['locale'],_0x52127c={'Compare\x20against\x20selected':m(_0x2a54c5,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x2a54c5,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x2a54c5,'Restore\x20this\x20revision')};return _0xf0f3af['map'](_0x57c714=>{const _0x2bcca5=_0x52127c[_0x57c714['name']];return _0x2bcca5&&_0x2bcca5!==_0x57c714['name']&&(_0x57c714['name']=_0x2bcca5),_0x57c714;});}(_0x123fc2,_0x429bcd),_0x4f0f0e=new _0x4708dd();for(const _0x82064f of _0xa2f246){const _0xecf7dc={'type':'button','model':new to({'label':_0x82064f['name'],'class':_0x82064f['class'],'withText':!0x0,'role':'menuitem','_action':_0x82064f['action']})};_0xecf7dc['model']['bind']('isEnabled')['to'](_0x123fc2,'isActionsDropdownOpen',_0x550731=>'function'!=typeof _0x82064f['isEnabled']||(!_0x550731||_0x82064f['isEnabled'](_0x123fc2))),_0x4f0f0e['add'](_0xecf7dc);}return _0x4f0f0e;}(_0x42cb12,_0x3ccea5);return _0x42cb12['bind']('isActionsDropdownOpen')['to'](_0x1ce88b,'isOpen'),_0x1ce88b['buttonView']['set']({'label':m(_0x45dafd,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x55c838}),_0x1ce88b['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5b21d3['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5b21d3['to'](_0x50faa3=>_0x50faa3['stopPropagation']())}}),_0x1ce88b['on']('execute',_0x47d6f0=>{_0x42cb12['isReady']&&'function'==typeof _0x47d6f0['source']['_action']&&_0x47d6f0['source']['_action'](_0x42cb12);}),_0x5abc92(_0x1ce88b,_0xb0c876,{'role':'menu'}),_0x1ce88b['listenTo'](_0x42cb12,'change:isActionsDropdownOpen',(_0x4eab86,_0x431e37,_0x2d7cc5)=>{if(_0x2d7cc5)for(const _0x26d654 of _0x1ce88b['listView']['items']){const _0x69416=_0x26d654['children']['first'],_0x358427=_0x3ccea5['find'](_0x8e11dc=>_0x8e11dc['action']===_0x69416['_action'])['isVisible'];_0x26d654['isVisible']=void 0x0===_0x358427||_0x358427(_0x42cb12);}}),_0x1ce88b;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x566827(_0x2fbfd0){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x45d8a2,_0x455c4d,_0x32cbe9,_0x27d133){super(_0x45d8a2);const _0x160eaf=this['bindTemplate'],_0x1eeeed=function(_0x23888d,_0x1c146c){const _0xd93a99=Array['from'](_0x1c146c['authors'])['filter'](_0x5dcc3b=>_0x5dcc3b!=_0x1c146c['creator']);return _0x1c146c['creator']&&_0xd93a99['unshift'](_0x1c146c['creator']),_0xd93a99['map'](_0x374990=>new oi(_0x23888d,_0x374990,_0x374990==_0x1c146c['creator']));}(_0x45d8a2,_0x455c4d);this['id']=_0x455c4d['id'],this['_revision']=_0x455c4d,this['_requireRevisionName']=_0x27d133,this['bind']('name','createdAt')['to'](_0x455c4d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3e8f06=>{return _0xcf6576=_0x45d8a2['uiLanguage'],(_0x19797b=_0x3e8f06)['toLocaleDateString'](_0xcf6576,{'month':'long','day':'numeric'})+',\x20'+_0x19797b['toLocaleTimeString'](_0xcf6576,{'hour':'numeric','minute':'numeric'});var _0xcf6576,_0x19797b;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x45d8a2,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x32566c=>_0x32566c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2287a2,_0x26a5c1)=>_0x2287a2&&_0x26a5c1),this['revisionActionsView']=_0x32cbe9&&_0x32cbe9['length']?ni(this,_0x32cbe9):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x160eaf['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x160eaf['if']('isEnabled','ck-disabled',_0x2c7ee7=>!_0x2c7ee7),_0x160eaf['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x160eaf['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x160eaf['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':_0x160eaf['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':_0x1eeeed}]},this['revisionActionsView']],'on':{'click':_0x160eaf['to'](_0x5bc0b1=>{_0x5bc0b1['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x359a65=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x359a65,'change',()=>{this['_requireRevisionName']&&!_0x359a65['value']||this['fire']('setName',{'id':this['id'],'name':_0x359a65['value']}),_0x359a65['value']||(_0x359a65['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x3c29d9,_0x2c0da1){const _0xa85023=_0x5ecde9['fromJSDate'](_0x3c29d9)['setLocale'](_0x2c0da1),_0x341d70=_0x5ecde9['local'](),_0x31272c=_0x341d70['minus']({'days':0x1})['startOf']('day');let _0x513cb3,_0x5ab68c;return _0xa85023['hasSame'](_0x341d70,'day')?(_0x513cb3=_0xa85023['startOf']('day')['toJSDate'](),_0x5ab68c=_0xa85023['toRelativeCalendar']()):_0xa85023['hasSame'](_0x31272c,'day')?(_0x513cb3=_0x31272c['toJSDate'](),_0x5ab68c=_0xa85023['toRelativeCalendar']()):_0xa85023['hasSame'](_0x341d70,'week')?(_0x513cb3=_0xa85023['startOf']('week')['toJSDate'](),_0x5ab68c=_0xa85023['weekdayLong']||''):_0xa85023['hasSame'](_0x341d70,'year')?(_0x513cb3=_0xa85023['startOf']('month')['toJSDate'](),_0x5ab68c=_0xa85023['monthLong']||''):(_0x513cb3=_0xa85023['startOf']('year')['toJSDate'](),_0x5ab68c=String(_0xa85023['year'])),{'startDate':_0x513cb3,'localizedPeriodName':_0x5ab68c};}class mi extends _0x2fbfd0{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x26ba5f,_0x49328f,_0x46f445,_0xeafa19){super(_0x26ba5f);const _0x409f4e=vi(_0x49328f,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x49328f,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x46f445,this['_requireRevisionName']=_0xeafa19,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':_0x409f4e}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x5c63b9){const _0x5cbfaa=new ai(this['locale'],_0x5c63b9,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5cbfaa);}['removeRevision'](_0x724511){const _0x3b8daf=this['revisionViews']['find'](_0x505348=>_0x505348['id']===_0x724511['id']);this['revisionViews']['remove'](_0x3b8daf);}}class as extends _0x2fbfd0{constructor(_0x3e5275){super(_0x3e5275);const _0x5aedd0=new _0x2ec47d();_0x5aedd0['content']=_0x2dfe0a,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5aedd0,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x3e5275,'Revision\x20history')]}]});}}class di extends _0x2fbfd0{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x113b13,_0x550434,_0x5dad03,_0x3708cd){super(_0x113b13);const _0x5d35bb=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x550434,this['_revisionActions']=_0x5dad03,this['_requireRevisionName']=_0x3708cd,this['on']('select',(_0x341b39,_0x35ef45)=>{this['fire']('revisionSelected',_0x35ef45);}),this['on']('setName',(_0x132c89,_0x298267)=>{this['fire']('revisionSetName',_0x298267);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x113b13),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5d35bb['if']('isEnabled','ck-disabled',_0x4a3d9b=>!_0x4a3d9b)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3951ca of this['_revisions'])this['_addRevision'](_0x3951ca);this['_revisions']['on']('add',(_0x149a3,_0x45d524)=>{this['_addRevision'](_0x45d524);}),this['_revisions']['on']('remove',(_0x4b5a5c,_0x2ab0dd)=>{this['_removeRevision'](_0x2ab0dd);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4dd35b=>_0x4dd35b['revisionViews']['map'](_0x7699c6=>_0x7699c6))['flat']();}['selectRevision'](_0x38d8b7){for(const _0x3fa5cd of this['revisionViews'])_0x38d8b7&&_0x38d8b7['id']===_0x3fa5cd['id']?_0x3fa5cd['select']():_0x3fa5cd['deselect']();}['highlightRevisions'](_0x2ea752){for(const _0x1fdf95 of this['revisionViews'])_0x2ea752['some'](({id:_0x5014fe})=>_0x5014fe===_0x1fdf95['id'])?_0x1fdf95['highlight']():_0x1fdf95['unhighlight']();}['_addRevision'](_0x4cb3aa){const _0x417660=vi(_0x4cb3aa['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x259586=this['timePeriodViews']['get'](0x0);_0x259586&&_0x259586['startDate']['getTime']()===_0x417660['getTime']()||(_0x259586=new mi(this['locale'],_0x417660,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x259586)),_0x259586['addRevision'](_0x4cb3aa);}['_removeRevision'](_0x44c014){const _0x4aa425=vi(_0x44c014['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4aa425)['removeRevision'](_0x44c014);}['_getTimePeriodViewByStartDate'](_0x4cf123){return this['timePeriodViews']['find'](_0xb31022=>_0xb31022['startDate']['getTime']()===_0x4cf123['getTime']());}}class g extends _0x545567{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x2e9dee){super(_0x2e9dee),this['_revisionViewer']=_0x2e9dee['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x588136=this['_revisionsRepository']['_revisions'],_0x3e23cf=this['_createRevisionActions'](),_0x5f2d3e=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x588136,_0x3e23cf,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',(_0x48a9ad,_0x19e64e)=>{_0x19e64e['revisionViews']['on']('add',(_0x2a07da,_0x238cfd)=>{_0x238cfd['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)),_0x5f2d3e['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xe1051a=this['_revisionsRepository']['getRevision'](0x0);if(_0xe1051a){const _0x27d186=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xe1051a['id']);this['_revisionViewer']['compare'](_0xe1051a,_0x27d186);}}['_handleRevisionSelected'](_0x4b283b,_0x4ba7da){const _0x350357=this['_revisionsRepository']['getRevision'](_0x4ba7da['id']),_0x4af443=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x350357['id']);this['_revisionViewer']['compare'](_0x350357,_0x4af443);}['_handleRevisionSetName'](_0x5f18e6,_0x13af56){this['_revisionsRepository']['getRevision'](_0x13af56['id'])['setName'](_0x13af56['name']);}['_handleDiffChange'](_0x39e6fb,_0x18912d,_0x39d916){const _0xc9a7d4=this['_revisionsRepository']['getRevisionsInDiff'](_0x39d916);_0xc9a7d4['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xc9a7d4),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xc9a7d4[0x0]));}['_createRevisionActions'](){const _0x2f93e9=this['editor'],_0x1abb84=g['availableRevisionActions'],_0x57d3df=_0x2f93e9['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x57d3df['length'])return _0x57d3df['map'](_0x43ed14=>{const _0x32de1f='string'==typeof _0x43ed14?Object['assign']({},_0x1abb84[_0x43ed14]):_0x43ed14;return _0x32de1f['action']=_0x32de1f['action']['bind'](this,_0x2f93e9),_0x32de1f['isVisible']&&(_0x32de1f['isVisible']=_0x32de1f['isVisible']['bind'](this,_0x2f93e9)),_0x32de1f;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x419f58},_0x4e05f6)=>{const _0x741ec9=_0x419f58['get'](d),_0x16083c=_0x741ec9['repository'];let _0x120758=_0x741ec9['diff']['newRevisionId'],_0x41db5d=_0x4e05f6['id'];_0x16083c['getIndex'](_0x120758)>_0x16083c['getIndex'](_0x41db5d)&&([_0x120758,_0x41db5d]=[_0x41db5d,_0x120758]),_0x741ec9['compare'](_0x120758,_0x41db5d);},'isVisible':({plugins:_0x360e79},_0x1c2258)=>{const _0x7a44a0=_0x360e79['get'](d);return!(_0x7a44a0['repository']['getRevisionsInDiff'](_0x7a44a0['diff'])['length']>0x2)&&!_0x1c2258['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4b471b,{id:_0x2ab99a})=>{_0x4b471b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2ab99a);},'isVisible':({plugins:_0x35826b},_0x55a3f5)=>!!_0x35826b['get'](d)['repository']['getLaterVisibleRevision'](_0x55a3f5['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xa3719},{id:_0x593364,revisionNameView:_0x276f10})=>{const _0x332798=_0xa3719['get'](d),_0x326348=_0x332798['repository']['getEarlierVisibleRevision'](_0x593364);_0x332798['compare'](_0x593364,_0x326348),_0x276f10['focus'](),_0x276f10['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x20322d,_0x6ea275){super(_0x20322d),this['_view']=_0x6ea275,this['_toolbarConfig']=ot(_0x20322d['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x23fd2f){const _0x4d2b7c=this['editor'],_0x8c6f2c=this['view'],_0x543012=_0x4d2b7c['editing']['view'],_0x3a824b=_0x8c6f2c['editable'],_0x2318ee=_0x543012['document']['getRoot']();_0x3a824b['name']=_0x2318ee['rootName'],_0x8c6f2c['render']();const _0x281a5e=_0x3a824b['element'];this['setEditableElement'](_0x3a824b['name'],_0x281a5e),_0x8c6f2c['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x543012['attachDomRoot'](_0x281a5e),this['_elementReplacer']['replace'](_0x23fd2f,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x157db7=this['view'],_0x194b9f=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x194b9f['detachDomRoot'](_0x157db7['editable']['name']),_0x157db7['destroy']();}['_initToolbar'](){const _0x457cb8=this['view'];_0x457cb8['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x457cb8['stickyPanel']['limiterElement']=_0x457cb8['element'],_0x457cb8['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4d7bd9})=>_0x4d7bd9),_0x457cb8['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x457cb8['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x309b9e,_0x38e91d,_0x46e3cf={}){super(_0x309b9e),this['stickyPanel']=new lt(_0x309b9e),this['toolbar']=new nt(_0x309b9e,{'shouldGroupWhenFull':_0x46e3cf['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x309b9e,_0x38e91d);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x48ecde,_0x4e7e98){super(_0x4e7e98),this['sourceElement']=_0x48ecde,this['model']['document']['createRoot']();const _0x146b22=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x146b22);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x43d5a8,_0x4b6833){const _0x447fe3=new this(_0x43d5a8,_0x4b6833);return await _0x447fe3['initPlugins'](),await _0x447fe3['ui']['init'](_0x43d5a8),await _0x447fe3['data']['init'](_0x447fe3['config']['get']('initialData')||''),_0x447fe3['fire']('ready'),_0x447fe3;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x26fb00{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35b1c0){function _0x5d38a1(_0x262b8a){return _0x262b8a['map'](_0x3f9613=>String['fromCharCode'](_0x3f9613))['join']('');}super(_0x35b1c0),this['result']='end',_0x35b1c0[_0x5d38a1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d38a1([0x76,0x69,0x65,0x77])][_0x5d38a1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d38a1([0x61,0x75,0x74,0x6f]),_0x35b1c0[_0x5d38a1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5d38a1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d38a1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5d38a1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5d38a1([0x6f,0x6b])});}}class k extends _0x26fb00{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x2ee821){if(super(_0x2ee821),!this['editor']['config']['get']('revisionHistory'))throw new _0x194013('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3e9fee=>this['_showRevisionViewer']({..._0x3e9fee,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x324371=>this['_closeRevisionViewer'](_0x324371)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2173f4=>this['_restoreRevision'](_0x2173f4)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3a8a28){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3a8a28;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x18c532){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x18c532);}['getRevision'](_0x431234){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x431234);}['getRevisions'](_0x3ac139){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3ac139||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2a023b=this['editor'],_0x1738c7=_0x4802af(_0x2a023b,p),_0x136fb5=_0x2a023b['plugins']['get']('RevisionTracker'),_0x1211cd=_0x2a023b['plugins']['get']('Users')['users'];return _0x1738c7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1738c7['lazyRoots'],(_0x1738c7['plugins']['push'](Rt,d,w,class extends _0x26fb00{static get['requires'](){return[d,'Users'];}['init'](){const _0x4acbc0=this['editor']['plugins']['get']('Users');for(const _0x23860e of _0x1211cd)_0x23860e['isAnonymous']||_0x4acbc0['getUser'](_0x23860e['id'])||_0x4acbc0['addUser'](_0x23860e);const _0x69aff7=_0x136fb5['repository']['getRevisions']();let _0x4699b2=null;const _0x554dd4=this['editor']['plugins']['get']('RevisionViewer');_0x554dd4['adapter']=_0x136fb5['adapter'],_0x554dd4['bind']('isEnabled')['to'](_0x136fb5),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2a023b,'isReadOnly',_0x3396ef=>!_0x3396ef);for(const _0x30c101 of _0x69aff7){const _0x44369d=null===_0x30c101['creator'];if(_0x44369d&&_0x30c101['toVersion']===_0x30c101['fromVersion'])continue;const _0x1fafb2=_0x30c101['toJSON']();_0x554dd4['addRevisionData'](_0x1fafb2,(_0x4db94a,_0x519d51,_0x24174c)=>{if(_0x44369d){if(_0x4699b2)_0x4699b2['_update'](_0x4db94a,_0x519d51);else{if(!_0x519d51){const _0xdd66ee=_0x24174c['toJSON']();_0xdd66ee['id']=_0x4e207b(),_0x136fb5['saveRevision'](_0xdd66ee,_0x24174c['toVersion'])['then'](_0x5386fe=>{_0x4699b2=_0x5386fe;});}}}else _0x30c101['_update'](_0x4db94a,_0x519d51);});}}},g),_0x1738c7);}['_enhanceShowRevisionViewerCallback'](){const _0xf20ec2=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x255241=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2f19c=this['editor']['plugins']['get']('Autosave');await _0x2f19c['save']();}else await _0x255241['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4a5fbf=this['editor']['plugins']['get']('Dialog');_0x4a5fbf['isOpen']&&_0x4a5fbf['hide']();}const _0x1eaa2e=this['_getRevisionViewerEditorConfig']();return _0xf20ec2(_0x1eaa2e)['then'](_0x475f66=>{return(this['_viewerEditor']=_0x475f66,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x475f66;})['catch'](_0x39472b=>(console['error'](_0x39472b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1ce7d8=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1ce7d8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2a309d=this['editor']['plugins']['get']('Annotations');_0x2a309d['refreshVisibility'](),_0x2a309d['refreshPositioning']();}})));}['_showRevisionViewer'](_0x549da1){const _0x1043ba=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1c168d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x248ba6=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x248ba6,_0x549da1)['then'](_0x16d02d=>(_0x1c168d['style']['display']='block',_0x1043ba['style']['display']='none',_0x16d02d));}['_closeRevisionViewer'](_0x23177b){const _0x4faf16=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4faf16['style']['display']='',_0x23177b['destroy']();}async['_restoreRevision'](_0x1bba43){const _0x39e301=this['editor'],_0x41bd5c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2e1a8f=_0x39e301['plugins']['get']('RevisionTracker'),_0x159b7f=_0x41bd5c['repository']['getRevision'](_0x1bba43);let _0x3e2635,_0x94ea53,_0x53fc33;try{_0x3e2635=await _0x41bd5c['getRevisionData'](_0x159b7f),_0x94ea53=await _0x41bd5c['getRevisionRootsAttributes'](_0x159b7f);}catch(_0x75549d){return void console['error'](_0x75549d);}_0x39e301['model']['change'](_0x38ec6b=>{for(const _0x3fbffa of Array['from'](_0x39e301['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x38ec6b['removeMarker'](_0x3fbffa);}),_0x41bd5c['isReady']=!0x1,_0x39e301['model']['enqueueChange'](_0x117b0a=>{_0x117b0a['setSelection'](null),_0x117b0a['removeSelectionAttribute'](_0x39e301['model']['document']['selection']['getAttributeKeys']());const _0x3a4fb2=Object['keys'](_0x3e2635);for(const _0x476549 of _0x39e301['model']['document']['roots'])'$graveyard'!=_0x476549['rootName']&&_0x476549['isAttached']()&&!_0x3a4fb2['includes'](_0x476549['rootName'])&&_0x117b0a['detachRoot'](_0x476549);for(const _0x2807c8 of _0x3a4fb2){let _0x4702d8=_0x39e301['model']['document']['getRoot'](_0x2807c8);_0x4702d8&&_0x4702d8['isAttached']()||(_0x4702d8=_0x117b0a['addRoot'](_0x2807c8));const _0x4ad19b=_0x94ea53[_0x2807c8],_0x2f84be=Object['keys'](_0x4ad19b),_0x569077=_0x3e2635[_0x2807c8];for(const _0xe7d402 of _0x4702d8['getAttributeKeys']())_0x2f84be['includes'](_0xe7d402)||_0x117b0a['removeAttribute'](_0xe7d402,_0x4702d8);for(const _0x427fd of _0x2f84be)_0x117b0a['setAttribute'](_0x427fd,_0x94ea53[_0x2807c8][_0x427fd],_0x4702d8);_0x117b0a['remove'](_0x117b0a['createRangeIn'](_0x4702d8)),_0x117b0a['insert'](_0x39e301['data']['parse'](_0x569077,_0x4702d8),_0x4702d8,0x0);}});const _0x5aaebe=m(_0x39e301['locale'],'Restored');if(_0x159b7f['name'])_0x53fc33=-0x1==_0x159b7f['name']['indexOf'](_0x5aaebe)?_0x5aaebe+':\x20'+_0x159b7f['name']:_0x159b7f['name'];else _0x53fc33=_0x5aaebe+':\x20'+(_0x159b7f['createdAt']['toLocaleDateString'](_0x39e301['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x159b7f['createdAt']['toLocaleTimeString'](_0x39e301['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2e1a8f['saveRevision']({'name':_0x53fc33}),_0x41bd5c['isReady']=!0x0,_0x39e301['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x1443d8){super(_0x1443d8),this['_revisionViewer']=_0x1443d8['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x284b2f=this['_revisionsRepository']['_revisions'],_0x5199ed=this['_createRevisionActions'](),_0x12600e=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x284b2f,_0x5199ed,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',(_0x2b281e,_0x260d58)=>{_0x260d58['revisionViews']['on']('add',(_0x507549,_0xf9685d)=>{_0xf9685d['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)),_0x12600e['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x190d26=this['_revisionsRepository']['getRevision'](0x0);if(_0x190d26){const _0x1fcefe=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x190d26['id']);this['_revisionViewer']['compare'](_0x190d26,_0x1fcefe);}}['_handleRevisionSelected'](_0x52be38,_0x228cc1){const _0x3b5429=this['_revisionsRepository']['getRevision'](_0x228cc1['id']),_0x3046c5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3b5429['id']);this['_revisionViewer']['compare'](_0x3b5429,_0x3046c5);}['_handleRevisionSetName'](_0x808fcb,_0x165661){this['_revisionsRepository']['getRevision'](_0x165661['id'])['setName'](_0x165661['name']);}['_handleDiffChange'](_0x1e3d9f,_0x3b78de,_0x5179f1){const _0x100735=this['_revisionsRepository']['getRevisionsInDiff'](_0x5179f1);_0x100735['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x100735),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x100735[0x0]));}['_createRevisionActions'](){const _0x41febb=this['editor'],_0x4b0755=g['availableRevisionActions'],_0x26f9fa=_0x41febb['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x26f9fa['length'])return _0x26f9fa['map'](_0xe1dd07=>{const _0x4474b8='string'==typeof _0xe1dd07?Object['assign']({},_0x4b0755[_0xe1dd07]):_0xe1dd07;return _0x4474b8['action']=_0x4474b8['action']['bind'](this,_0x41febb),_0x4474b8['isVisible']&&(_0x4474b8['isVisible']=_0x4474b8['isVisible']['bind'](this,_0x41febb)),_0x4474b8;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xfb1f82},_0x570f7b)=>{const _0x179dd5=_0xfb1f82['get'](d),_0xc7db46=_0x179dd5['repository'];let _0x5c214b=_0x179dd5['diff']['newRevisionId'],_0x49f457=_0x570f7b['id'];_0xc7db46['getIndex'](_0x5c214b)>_0xc7db46['getIndex'](_0x49f457)&&([_0x5c214b,_0x49f457]=[_0x49f457,_0x5c214b]),_0x179dd5['compare'](_0x5c214b,_0x49f457);},'isVisible':({plugins:_0x4a66df},_0x7f6b6e)=>{const _0x2c7fd4=_0x4a66df['get'](d);return!(_0x2c7fd4['repository']['getRevisionsInDiff'](_0x2c7fd4['diff'])['length']>0x2)&&!_0x7f6b6e['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2ec0a0,{id:_0x3ae9ab})=>{_0x2ec0a0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3ae9ab);},'isVisible':({plugins:_0x30aa63},_0x130cf5)=>!!_0x30aa63['get'](d)['repository']['getLaterVisibleRevision'](_0x130cf5['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1865b3},{id:_0x47a723,revisionNameView:_0x20aee6})=>{const _0x4a9748=_0x1865b3['get'](d),_0x59615e=_0x4a9748['repository']['getEarlierVisibleRevision'](_0x47a723);_0x4a9748['compare'](_0x47a723,_0x59615e),_0x20aee6['focus'](),_0x20aee6['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x44691b,_0x3096c6){super(_0x44691b),this['_view']=_0x3096c6,this['_toolbarConfig']=ot(_0x44691b['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x446bd8){const _0xcacc03=this['editor'],_0x2e56bf=this['view'],_0x2face6=_0xcacc03['editing']['view'],_0x326ef6=_0x2e56bf['editable'],_0x1278c5=_0x2face6['document']['getRoot']();_0x326ef6['name']=_0x1278c5['rootName'],_0x2e56bf['render']();const _0x1dd620=_0x326ef6['element'];this['setEditableElement'](_0x326ef6['name'],_0x1dd620),_0x2e56bf['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2face6['attachDomRoot'](_0x1dd620),this['_elementReplacer']['replace'](_0x446bd8,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4f7e6a=this['view'],_0x4419c4=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4419c4['detachDomRoot'](_0x4f7e6a['editable']['name']),_0x4f7e6a['destroy']();}['_initToolbar'](){const _0x429a21=this['view'];_0x429a21['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x429a21['stickyPanel']['limiterElement']=_0x429a21['element'],_0x429a21['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4d3565})=>_0x4d3565),_0x429a21['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x429a21['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x20e1fb,_0x300e33,_0x495c06={}){super(_0x20e1fb),this['stickyPanel']=new lt(_0x20e1fb),this['toolbar']=new nt(_0x20e1fb,{'shouldGroupWhenFull':_0x495c06['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x20e1fb,_0x300e33);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xb0306c,_0x2ba732){super(_0x2ba732),this['sourceElement']=_0xb0306c,this['model']['document']['createRoot']();const _0x2da14e=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x2da14e);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2a67c3,_0x5578e3){const _0x232f20=new this(_0x2a67c3,_0x5578e3);return await _0x232f20['initPlugins'](),await _0x232f20['ui']['init'](_0x2a67c3),await _0x232f20['data']['init'](_0x232f20['config']['get']('initialData')||''),_0x232f20['fire']('ready'),_0x232f20;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x545567{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x39d9f7){function _0x2b1066(_0x28251c){return _0x28251c['map'](_0x10fccd=>String['fromCharCode'](_0x10fccd))['join']('');}super(_0x39d9f7),this['result']='end',_0x39d9f7[_0x2b1066([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b1066([0x76,0x69,0x65,0x77])][_0x2b1066([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b1066([0x61,0x75,0x74,0x6f]),_0x39d9f7[_0x2b1066([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2b1066([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b1066([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2b1066([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2b1066([0x6f,0x6b])});}}class k extends _0x545567{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x307df1){if(super(_0x307df1),!this['editor']['config']['get']('revisionHistory'))throw new _0x242fb1('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x484f90=>this['_showRevisionViewer']({..._0x484f90,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x212c08=>this['_closeRevisionViewer'](_0x212c08)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x140ed1=>this['_restoreRevision'](_0x140ed1)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5eb09a){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5eb09a;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x15d805){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x15d805);}['getRevision'](_0x24146f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x24146f);}['getRevisions'](_0xafa7b9){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0xafa7b9||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x23e896=this['editor'],_0x362dcb=_0x565b32(_0x23e896,p),_0x1fc8b8=_0x23e896['plugins']['get']('RevisionTracker'),_0x3443a9=_0x23e896['plugins']['get']('Users')['users'];return _0x362dcb['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x362dcb['lazyRoots'],(_0x362dcb['plugins']['push'](Rt,d,w,class extends _0x545567{static get['requires'](){return[d,'Users'];}['init'](){const _0x2f51cd=this['editor']['plugins']['get']('Users');for(const _0x550fca of _0x3443a9)_0x550fca['isAnonymous']||_0x2f51cd['getUser'](_0x550fca['id'])||_0x2f51cd['addUser'](_0x550fca);const _0x20313d=_0x1fc8b8['repository']['getRevisions']();let _0x257285=null;const _0x255dc3=this['editor']['plugins']['get']('RevisionViewer');_0x255dc3['adapter']=_0x1fc8b8['adapter'],_0x255dc3['bind']('isEnabled')['to'](_0x1fc8b8),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x23e896,'isReadOnly',_0x1d3189=>!_0x1d3189);for(const _0x305b6e of _0x20313d){const _0x513f83=null===_0x305b6e['creator'];if(_0x513f83&&_0x305b6e['toVersion']===_0x305b6e['fromVersion'])continue;const _0x33c642=_0x305b6e['toJSON']();_0x255dc3['addRevisionData'](_0x33c642,(_0x5222ee,_0x6dd51e,_0x299995)=>{if(_0x513f83){if(_0x257285)_0x257285['_update'](_0x5222ee,_0x6dd51e);else{if(!_0x6dd51e){const _0x2f3c2e=_0x299995['toJSON']();_0x2f3c2e['id']=_0x317a84(),_0x1fc8b8['saveRevision'](_0x2f3c2e,_0x299995['toVersion'])['then'](_0x1a38c4=>{_0x257285=_0x1a38c4;});}}}else _0x305b6e['_update'](_0x5222ee,_0x6dd51e);});}}},g),_0x362dcb);}['_enhanceShowRevisionViewerCallback'](){const _0x4a80fa=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x441dc9=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x952fd=this['editor']['plugins']['get']('Autosave');await _0x952fd['save']();}else await _0x441dc9['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xeb7902=this['editor']['plugins']['get']('Dialog');_0xeb7902['isOpen']&&_0xeb7902['hide']();}const _0x4510fc=this['_getRevisionViewerEditorConfig']();return _0x4a80fa(_0x4510fc)['then'](_0x2e9fd6=>{return(this['_viewerEditor']=_0x2e9fd6,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2e9fd6;})['catch'](_0x36c51e=>(console['error'](_0x36c51e),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x48a59d=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x48a59d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2b0611=this['editor']['plugins']['get']('Annotations');_0x2b0611['refreshVisibility'](),_0x2b0611['refreshPositioning']();}})));}['_showRevisionViewer'](_0x17f6c9){const _0x25dfdc=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1ddb5d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xa22ed6=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0xa22ed6,_0x17f6c9)['then'](_0x16e7cf=>(_0x1ddb5d['style']['display']='block',_0x25dfdc['style']['display']='none',_0x16e7cf));}['_closeRevisionViewer'](_0xc4ee2f){const _0xb4d395=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xb4d395['style']['display']='',_0xc4ee2f['destroy']();}async['_restoreRevision'](_0x41a698){const _0x1e240b=this['editor'],_0x680e32=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3c75d9=_0x1e240b['plugins']['get']('RevisionTracker'),_0x3b7712=_0x680e32['repository']['getRevision'](_0x41a698);let _0x1aa308,_0x578f05,_0x3f72c5;try{_0x1aa308=await _0x680e32['getRevisionData'](_0x3b7712),_0x578f05=await _0x680e32['getRevisionRootsAttributes'](_0x3b7712);}catch(_0x27bec9){return void console['error'](_0x27bec9);}_0x1e240b['model']['change'](_0x1abdf1=>{for(const _0x29e6ac of Array['from'](_0x1e240b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1abdf1['removeMarker'](_0x29e6ac);}),_0x680e32['isReady']=!0x1,_0x1e240b['model']['enqueueChange'](_0x3ee403=>{_0x3ee403['setSelection'](null),_0x3ee403['removeSelectionAttribute'](_0x1e240b['model']['document']['selection']['getAttributeKeys']());const _0x3a2e29=Object['keys'](_0x1aa308);for(const _0x300f31 of _0x1e240b['model']['document']['roots'])'$graveyard'!=_0x300f31['rootName']&&_0x300f31['isAttached']()&&!_0x3a2e29['includes'](_0x300f31['rootName'])&&_0x3ee403['detachRoot'](_0x300f31);for(const _0xca3f6a of _0x3a2e29){let _0x192c23=_0x1e240b['model']['document']['getRoot'](_0xca3f6a);_0x192c23&&_0x192c23['isAttached']()||(_0x192c23=_0x3ee403['addRoot'](_0xca3f6a));const _0x28c612=_0x578f05[_0xca3f6a],_0x12f382=Object['keys'](_0x28c612),_0x342071=_0x1aa308[_0xca3f6a];for(const _0x16a717 of _0x192c23['getAttributeKeys']())_0x12f382['includes'](_0x16a717)||_0x3ee403['removeAttribute'](_0x16a717,_0x192c23);for(const _0x535d57 of _0x12f382)_0x3ee403['setAttribute'](_0x535d57,_0x578f05[_0xca3f6a][_0x535d57],_0x192c23);_0x3ee403['remove'](_0x3ee403['createRangeIn'](_0x192c23)),_0x3ee403['insert'](_0x1e240b['data']['parse'](_0x342071,_0x192c23),_0x192c23,0x0);}});const _0x53798e=m(_0x1e240b['locale'],'Restored');if(_0x3b7712['name'])_0x3f72c5=-0x1==_0x3b7712['name']['indexOf'](_0x53798e)?_0x53798e+':\x20'+_0x3b7712['name']:_0x3b7712['name'];else _0x3f72c5=_0x53798e+':\x20'+(_0x3b7712['createdAt']['toLocaleDateString'](_0x1e240b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3b7712['createdAt']['toLocaleTimeString'](_0x1e240b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3c75d9['saveRevision']({'name':_0x3f72c5}),_0x680e32['isReady']=!0x0,_0x1e240b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};