@ckeditor/ckeditor5-revision-history 46.0.2-alpha.1 → 46.0.3
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.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x311e7a(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3575b3){super(),this['id']=_0x3575b3['id']||_0x4a9047(),this['creator']=_0x3575b3['creator']||null,this['authors']=_0x3575b3['authors']||[],this['diffData']=_0x3575b3['diffData']||null,this['toVersion']=_0x3575b3['toVersion']||0x0,this['fromVersion']=_0x3575b3['fromVersion']||0x0,this['set']('name',_0x3575b3['name']||''),this['set']('createdAt',_0x3575b3['createdAt']||new Date()),this['set']('attributes',_0x3575b3['attributes']||{});}['setName'](_0x4487aa){this['_update']({'name':_0x4487aa});}['setAttribute'](_0x3a4728,_0x4030b8){const _0x5ad0ea=_0x2f1e40(this['attributes']);_0x3cdb9d(_0x5ad0ea,_0x3a4728,_0x4030b8),this['_update']({'attributes':_0x5ad0ea});}['removeAttribute'](_0x5939be){const _0x410ffd=_0x2f1e40(this['attributes']);_0x56fa6e(_0x410ffd,_0x5939be),this['_update']({'attributes':_0x410ffd});}['_update'](_0x43a946,_0x5fbfc3=!0x1){let _0x5b1266=!0x1;const _0x25095b={'id':this['id']},_0x421b4b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3223e2 of _0x421b4b){const _0x155921=_0x43a946[_0x3223e2];void 0x0!==_0x155921&&_0x155921!==this[_0x3223e2]&&(this[_0x3223e2]=_0x155921,_0x25095b[_0x3223e2]=_0x155921,_0x5b1266=!0x0);}_0x5b1266&&(_0x25095b['authors']&&(_0x25095b['authorsIds']=_0x25095b['authors']['map'](_0x286e1c=>_0x286e1c['id']),delete _0x25095b['authors']),this['fire']('_update',_0x25095b,_0x5fbfc3));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x11b379=>_0x11b379['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x33730e{['_revisions'];static get['requires'](){return[_0x1653cb];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x359c1d){super(_0x359c1d),this['_revisions']=new _0x5dbcb5();}['afterInit'](){!async function(_0x3e93cd){const _0x342634=_0x195ece([0x52,0x72,0x58,0x71,0x34,0x42,0x51,0x68,0x64,0x36,0x37,0x4f,0x4d,0x76,0x6e,0x62,0x78,0x69,0x59,0x65,0x67,0x41,0x5a,0x47,0x45,0x33,0x77,0x6d,0x6f,0x32,0x66,0x31,0x46,0x7a,0x43,0x61,0x48,0x4e,0x38,0x57,0x73,0x75,0x6b,0x44,0x6c,0x35,0x6a,0x50,0x4c,0x70,0x53,0x74,0x56,0x4b,0x63,0x49,0x39,0x79,0x4a,0x55,0x54,0x30]),_0x4d28e4=0xeb829,_0x2bf26f=0x5267ebb4,_0xb9f662=0x52609b5c^_0x2bf26f,_0x3c3b8f=window[_0x195ece([0x44,0x61,0x74,0x65])][_0x195ece([0x6e,0x6f,0x77])](),_0x2939f6=_0x3e93cd[_0x195ece([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x23a2c0=new window[(_0x195ece([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45dea8=>{_0x2939f6[_0x195ece([0x6f,0x6e,0x63,0x65])](_0x195ece([0x72,0x65,0x61,0x64,0x79]),_0x45dea8);}),_0x5a201b={[_0x195ece([0x6b,0x74,0x79])]:_0x195ece([0x45,0x43]),[_0x195ece([0x75,0x73,0x65])]:_0x195ece([0x73,0x69,0x67]),[_0x195ece([0x63,0x72,0x76])]:_0x195ece([0x50,0x2d,0x32,0x35,0x36]),[_0x195ece([0x78])]:_0x195ece([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]),[_0x195ece([0x79])]:_0x195ece([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]),[_0x195ece([0x61,0x6c,0x67])]:_0x195ece([0x45,0x53,0x32,0x35,0x36])},_0x745db1=_0x2939f6[_0x195ece([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x195ece([0x67,0x65,0x74])](_0x195ece([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x32899a(){let _0x3f190e,_0x270f35=null,_0x569552=null;try{if(_0x745db1==_0x195ece([0x47,0x50,0x4c]))return _0x195ece([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3f190e=_0x287943(),!_0x3f190e)return _0x195ece([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3f190e[_0x195ece([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x569552=_0x258e15(_0x3f190e[_0x195ece([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3f190e[_0x195ece([0x6a,0x74,0x69])])),await _0x11ff43()?_0x5e0c22()?_0x2cdb93()?_0x195ece([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x283fba()?(_0x3f190e[_0x195ece([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x195ece([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x270f35=_0x535e80(_0x195ece([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3f190e[_0x195ece([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x195ece([0x74,0x72,0x69,0x61,0x6c])&&(_0x270f35=_0x535e80(_0x195ece([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5400da()):_0x195ece([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x195ece([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x195ece([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x195ece([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2cdb93(){const _0x369fa9=[_0x195ece([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x195ece([0x74,0x72,0x69,0x61,0x6c])][_0x195ece([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f190e[_0x195ece([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c3b8f/0x3e8:0xe10*_0xb9f662;return _0x3f190e[_0x195ece([0x65,0x78,0x70])]<_0x369fa9;}function _0x5e0c22(){const _0x3079da=_0x3f190e[_0x195ece([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3079da)return!0x1;if(_0x3079da[_0x195ece([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x195ece([0x2a])))return!0x0;if(_0x3079da[_0x195ece([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x195ece([0x52,0x48])))return!0x0;if(_0x3079da[_0x195ece([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x195ece([0x52,0x52,0x48]))){if(_0x3220ff())return!0x0;if(_0x42d7b6()||_0x49ba6b())return!0x0;}return!0x1;}function _0x283fba(){const _0x2a8aa5=_0x3f190e[_0x195ece([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2a8aa5||0x0==_0x2a8aa5[_0x195ece([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x43c69f}=new URL(window[_0x195ece([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2a8aa5[_0x195ece([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43c69f))return!0x0;const _0x309934=_0x43c69f[_0x195ece([0x73,0x70,0x6c,0x69,0x74])](_0x195ece([0x2e]));return _0x2a8aa5[_0x195ece([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x56c03e=>_0x56c03e[_0x195ece([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x195ece([0x2a])))[_0x195ece([0x6d,0x61,0x70])](_0x1dd67e=>_0x1dd67e[_0x195ece([0x73,0x70,0x6c,0x69,0x74])](_0x195ece([0x2e])))[_0x195ece([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x271f9e=>_0x271f9e[_0x195ece([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x309934[_0x195ece([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x195ece([0x6d,0x61,0x70])](_0x47e6a3=>Array(_0x309934[_0x195ece([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x47e6a3[_0x195ece([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x195ece([0x66,0x69,0x6c,0x6c])](_0x47e6a3[0x0]===_0x195ece([0x2a])?_0x195ece([0x2a]):'')[_0x195ece([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x47e6a3))[_0x195ece([0x73,0x6f,0x6d,0x65])](_0x5652ce=>_0x309934[_0x195ece([0x65,0x76,0x65,0x72,0x79])]((_0x24a092,_0x389cbb)=>_0x5652ce[_0x389cbb]===_0x24a092||_0x5652ce[_0x389cbb]===_0x195ece([0x2a])));}function _0x5400da(){return _0x270f35&&_0x569552?new window[(_0x195ece([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1830ce,_0xae4949)=>{_0x270f35[_0x195ece([0x74,0x68,0x65,0x6e])](_0x1830ce,_0xae4949),_0x569552[_0x195ece([0x74,0x68,0x65,0x6e])](_0x5b4b43=>{_0x5b4b43!=_0x195ece([0x56,0x61,0x6c,0x69,0x64])&&_0x1830ce(_0x5b4b43);},_0xae4949);}):_0x270f35||_0x569552||_0x195ece([0x56,0x61,0x6c,0x69,0x64]);}}function _0x258e15(_0xc33c8f,_0x1bd17b){return new window[(_0x195ece([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f4c6a=>{if(_0x4f40d0())return _0x4f4c6a(_0x195ece([0x56,0x61,0x6c,0x69,0x64]));_0x59493d(),_0x2939f6[_0x195ece([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x195ece([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2dea9f=!0x1;const _0x4ec180=_0x4a9047();function _0x4b3902(_0x17d8d2){return!!_0x17d8d2&&(typeof _0x17d8d2===_0x195ece([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x17d8d2===_0x195ece([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x17d8d2[_0x195ece([0x74,0x68,0x65,0x6e])]===_0x195ece([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x17d8d2[_0x195ece([0x63,0x61,0x74,0x63,0x68])]===_0x195ece([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3cde78(_0x5838d2){_0x337853(_0x5838d2)[_0x195ece([0x74,0x68,0x65,0x6e])](_0xd0bad9=>{if(!_0xd0bad9||_0xd0bad9[_0x195ece([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x195ece([0x6f,0x6b]))return _0x195ece([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x27fb20(_0x412c9d(_0x4ec180+_0x1bd17b))!=_0xd0bad9[_0x195ece([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x195ece([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x195ece([0x56,0x61,0x6c,0x69,0x64]);})[_0x195ece([0x74,0x68,0x65,0x6e])](_0x2f7846=>(_0x2c727e(),_0x2f7846),()=>{const _0x4f05b4=_0xf733ec();return null==_0x4f05b4?(_0x2c727e(),_0x195ece([0x56,0x61,0x6c,0x69,0x64])):_0x195ece(_0x3c3b8f-_0x4f05b4>(0x766b6fb4^_0x2bf26f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x195ece([0x74,0x68,0x65,0x6e])](_0x4f4c6a)[_0x195ece([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f4c6a(_0x195ece([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c2099=0x52510534^_0x2bf26f;function _0x2c727e(){const _0x59b3f6=_0x195ece([0x6c,0x6c,0x63,0x74,0x2d])+_0x27fb20(_0x412c9d(_0xc33c8f)),_0xa48026=_0x5d6628(_0x27fb20(window[_0x195ece([0x4d,0x61,0x74,0x68])][_0x195ece([0x63,0x65,0x69,0x6c])](_0x3c3b8f/_0x3c2099)));window[_0x195ece([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x195ece([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59b3f6,_0xa48026);}function _0xf733ec(){const _0x56444a=_0x195ece([0x6c,0x6c,0x63,0x74,0x2d])+_0x27fb20(_0x412c9d(_0xc33c8f)),_0x44a65b=window[_0x195ece([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x195ece([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56444a);return _0x44a65b?window[_0x195ece([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d6628(_0x44a65b),0x10)*_0x3c2099:null;}function _0x337853(_0x1a258e){return new window[(_0x195ece([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58fd61,_0x33870c)=>{_0x1a258e[_0x195ece([0x74,0x68,0x65,0x6e])](_0x58fd61,_0x33870c),window[_0x195ece([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x33870c,0x52663f74^_0x2bf26f);});}}_0x2939f6[_0x195ece([0x6f,0x6e])](_0x195ece([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19654d,_0x222177)=>{if(_0x222177[0x0]!=_0xc33c8f)return _0x4f4c6a(_0x195ece([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x222177[0x1]={..._0x222177[0x1],[_0x195ece([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ec180};},{[_0x195ece([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x195ece([0x68,0x69,0x67,0x68])}),_0x2939f6[_0x195ece([0x6f,0x6e])](_0x195ece([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1d8cf3=>{_0x4b3902(_0x1d8cf3[_0x195ece([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2dea9f=!0x0,_0x3cde78(_0x1d8cf3[_0x195ece([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x195ece([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x195ece([0x6c,0x6f,0x77])}),_0x23a2c0[_0x195ece([0x74,0x68,0x65,0x6e])](()=>{_0x2dea9f||_0x4f4c6a(_0x195ece([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f40d0(){return _0x2939f6[_0x195ece([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x195ece([0x76,0x69,0x65,0x77])][_0x195ece([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x195ece([0x61,0x75,0x74,0x6f]);}function _0x59493d(){_0x2939f6[_0x195ece([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x195ece([0x76,0x69,0x65,0x77])][_0x195ece([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x195ece([0x61,0x75,0x74,0x6f]);}}function _0x535e80(_0x2d1c34){const _0x146fa3=[new window[(_0x195ece([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58ae8c=>setTimeout(_0x58ae8c,0x526ed578^_0x2bf26f)),_0x23a2c0[_0x195ece([0x74,0x68,0x65,0x6e])](()=>new window[(_0x195ece([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x338667=>{const _0x2864bf=0x5267ebb3^_0x2bf26f,_0x540776=_0x3e93cd[_0x195ece([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x509d9d(){_0x540776[_0x195ece([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2864bf&&_0x338667();}_0x509d9d(),_0x540776[_0x195ece([0x6f,0x6e])](_0x195ece([0x61,0x64,0x64]),_0x509d9d);})),new window[(_0x195ece([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28a17e=>{function _0x5defbe(){for(const _0x1e5038 in window)if(window[_0x195ece([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x195ece([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1e5038))&&window[_0x1e5038]==_0x4d28e4)return _0x28a17e();_0x2939f6[_0x195ece([0x73,0x74,0x61,0x74,0x65])]!=_0x195ece([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x195ece([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5defbe,0x5267f83c^_0x2bf26f);}_0xb48662(_0x195ece([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5defbe();})];return window[_0x195ece([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x195ece([0x72,0x61,0x63,0x65])](_0x146fa3)[_0x195ece([0x74,0x68,0x65,0x6e])](()=>_0x2d1c34);}async function _0xd4a210(){if(await _0x23a2c0,_0xb48662(_0x195ece([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x38efc6=_0x3e93cd[_0x195ece([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x321d2a=_0x3e93cd[_0x195ece([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])](_0x38efc6[_0x195ece([0x69,0x64])]),_0x5e6548=_0x1ad746(_0x195ece([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5e6548[_0x195ece([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x38efc6['id'],_0x321d2a?_0x321d2a['id']:null,!0x0),_0x5e6548[_0x195ece([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x195ece([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5e6548[_0x195ece([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5e6548[_0x195ece([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x47092a,void(_0x5e6548[_0x195ece([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x47092a);}if(_0xb48662(_0x195ece([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x29872e=_0x1ad746(_0x195ece([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x29872e[_0x195ece([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x195ece([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x29872e[_0x195ece([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x29872e[_0x195ece([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x47092a,_0x29872e[_0x195ece([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x47092a;}_0x2939f6[_0x195ece([0x6d,0x6f,0x64,0x65,0x6c])][_0x195ece([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x47092a,_0x2939f6[_0x195ece([0x6d,0x6f,0x64,0x65,0x6c])][_0x195ece([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x47092a,_0x2939f6[_0x195ece([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x195ece([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3220ff(){return _0xb48662(_0x195ece([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1ad746(_0x195ece([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x195ece([0x73,0x74,0x61,0x74,0x65])]==_0x195ece([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x42d7b6(){return _0xb48662(_0x195ece([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 _0x49ba6b(){return _0xb48662(_0x195ece([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x9db8fb(_0x501f50){const _0x5c6e9c=_0x2f9b68();_0x2939f6[_0x5c6e9c]=_0x195ece([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])+_0x501f50,_0x501f50[_0x195ece([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x195ece([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2f9b68()]=_0x4d28e4),_0x501f50!=_0x195ece([0x56,0x61,0x6c,0x69,0x64])&&_0xd4a210();}function _0x2f9b68(){const _0x2da865=window[_0x195ece([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x195ece([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x195ece([0x6e,0x6f,0x77])]())[_0x195ece([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x195ece([0x2e]),'');let _0xdf7dd7=_0x195ece([0x52]);for(let _0xf128c7=0x0;_0xf128c7<_0x2da865[_0x195ece([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf128c7+=0x2){let _0x156255=window[_0x195ece([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2da865[_0x195ece([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf128c7,_0xf128c7+0x2));_0x156255>=_0x342634[_0x195ece([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x156255-=_0x342634[_0x195ece([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xdf7dd7+=_0x342634[_0x156255];}return _0xdf7dd7;}function _0x287943(){const _0x46253b=_0x745db1[_0x195ece([0x73,0x70,0x6c,0x69,0x74])](_0x195ece([0x2e]));if(0x3!=_0x46253b[_0x195ece([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x55b5c1(_0x46253b[0x1]);function _0x55b5c1(_0x111707){const _0x5682e5=_0xaaaf87(_0x111707);return _0x5682e5&&_0x2d99f2()?_0x5682e5:null;function _0x2d99f2(){const _0x10ff11=_0x5682e5[_0x195ece([0x6a,0x74,0x69])],_0x4bacdf=window[_0x195ece([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10ff11[_0x195ece([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10ff11[_0x195ece([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4bcadf={..._0x5682e5,[_0x195ece([0x6a,0x74,0x69])]:_0x10ff11[_0x195ece([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x10ff11[_0x195ece([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4bcadf[_0x195ece([0x76,0x63])],_0x412c9d(_0x4bcadf)==_0x4bacdf;}}}async function _0x11ff43(){let _0x359f10=!0x0;try{const _0x180c06=_0x745db1[_0x195ece([0x73,0x70,0x6c,0x69,0x74])](_0x195ece([0x2e])),[_0x40c1d9,_0x6edfaf,_0x58a292]=_0x180c06;return _0x2941f0(_0x40c1d9),await _0x3b3546(_0x40c1d9,_0x6edfaf,_0x58a292),_0x359f10;}catch{return!0x1;}function _0x2941f0(_0xba289d){const _0x177294=_0xaaaf87(_0xba289d);_0x177294&&_0x177294[_0x195ece([0x61,0x6c,0x67])]==_0x195ece([0x45,0x53,0x32,0x35,0x36])||(_0x359f10=!0x1);}async function _0x3b3546(_0x34ace0,_0x5f2a7f,_0x40df4e){const _0x24345a=window[_0x195ece([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x195ece([0x66,0x72,0x6f,0x6d])](_0x56b517(_0x40df4e),_0x50fd29=>_0x50fd29[_0x195ece([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x103db4=new window[(_0x195ece([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x195ece([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x34ace0+_0x195ece([0x2e])+_0x5f2a7f),_0x184939=window[_0x195ece([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x195ece([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x184939)return;const _0x5f35df=await _0x184939[_0x195ece([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x195ece([0x6a,0x77,0x6b]),_0x5a201b,{[_0x195ece([0x6e,0x61,0x6d,0x65])]:_0x195ece([0x45,0x43,0x44,0x53,0x41]),[_0x195ece([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x195ece([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x195ece([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x184939[_0x195ece([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x195ece([0x6e,0x61,0x6d,0x65])]:_0x195ece([0x45,0x43,0x44,0x53,0x41]),[_0x195ece([0x68,0x61,0x73,0x68])]:{[_0x195ece([0x6e,0x61,0x6d,0x65])]:_0x195ece([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5f35df,_0x24345a,_0x103db4)||(_0x359f10=!0x1);}}function _0xaaaf87(_0x5d03ba){return _0x5d03ba[_0x195ece([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x195ece([0x65,0x79]))?JSON[_0x195ece([0x70,0x61,0x72,0x73,0x65])](_0x56b517(_0x5d03ba)):null;}function _0x56b517(_0x4c1418){return window[_0x195ece([0x61,0x74,0x6f,0x62])](_0x4c1418[_0x195ece([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x195ece([0x2b]))[_0x195ece([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x195ece([0x2f])));}function _0x412c9d(_0x3236df){let _0x46c99f=0x1505;function _0x1af80a(_0x4c1946){for(let _0x4ca5c1=0x0;_0x4ca5c1<_0x4c1946[_0x195ece([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ca5c1++){const _0x5550bc=_0x4c1946[_0x195ece([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ca5c1);_0x46c99f=(_0x46c99f<<0x5)+_0x46c99f+_0x5550bc,_0x46c99f&=_0x46c99f;}}function _0x289db6(_0x1170e8){Array[_0x195ece([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1170e8)?_0x1170e8[_0x195ece([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x289db6):_0x1170e8&&typeof _0x1170e8==_0x195ece([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x195ece([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1170e8)[_0x195ece([0x73,0x6f,0x72,0x74])]()[_0x195ece([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30fdeb,_0xd17e80])=>{_0x1af80a(_0x30fdeb),_0x289db6(_0xd17e80);}):_0x1af80a(window[_0x195ece([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1170e8));}return _0x289db6(_0x3236df),_0x46c99f>>>0x0;}function _0x27fb20(_0x5334c2){return _0x5334c2[_0x195ece([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x195ece([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x195ece([0x30]));}function _0x5d6628(_0x40d0e7){return _0x40d0e7[_0x195ece([0x73,0x70,0x6c,0x69,0x74])]('')[_0x195ece([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x195ece([0x6a,0x6f,0x69,0x6e])]('');}function _0xb48662(_0x18887a){return _0x2939f6[_0x195ece([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x195ece([0x68,0x61,0x73])](_0x18887a);}function _0x1ad746(_0x5d2f62){return _0x2939f6[_0x195ece([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x195ece([0x67,0x65,0x74])](_0x5d2f62);}function _0x47092a(){}function _0x195ece(_0x45a552){return _0x45a552['map'](_0xf6a9a6=>String['fromCharCode'](_0xf6a9a6))['join']('');}_0x9db8fb(await _0x32899a());}(this);}['createRevision'](_0x3e277b){const _0x2b54a8=this['editor']['plugins']['get']('Users');return new I({'id':_0x3e277b['id'],'name':_0x3e277b['name'],'creator':_0x3e277b['creatorId']?_0x2b54a8['getUser'](_0x3e277b['creatorId']):null,'diffData':_0x3e277b['diffData']||_0x3e277b['data'],'authors':_0x3e277b['authorsIds']['map'](_0x15d5c1=>_0x2b54a8['getUser'](_0x15d5c1)),'createdAt':new Date(_0x3e277b['createdAt']),'attributes':_0x3e277b['attributes'],'fromVersion':_0x3e277b['fromVersion'],'toVersion':_0x3e277b['toVersion']});}['addRevision'](_0x2bd0df,_0x57f5fb=0x0){this['_revisions']['add'](_0x2bd0df,_0x57f5fb);}['getRevision'](_0x1afbd8){return this['_revisions']['get'](_0x1afbd8);}['getRevisions'](_0x29379b={'toJSON':!0x1}){const _0x3f151d=Array['from'](this['_revisions']);return _0x3f151d['reverse'](),_0x29379b['toJSON']?_0x3f151d['map'](_0x25ebb3=>_0x25ebb3['toJSON']()):_0x3f151d;}['getIndex'](_0x5dadf0){return this['_revisions']['getIndex'](_0x5dadf0);}['getEarlierVisibleRevision'](_0x309656){const [,_0x2edec1]=this['getRevisionsIterator'](_0x309656,{'direction':'earlier'});return _0x2edec1;}['getLaterVisibleRevision'](_0x466b7e){const [,_0x5ebba0]=this['getRevisionsIterator'](_0x466b7e,{'direction':'later'});return _0x5ebba0;}['getRevisionsInDiff'](_0x1b5886){const _0x1375b9=[];for(const _0x254377 of this['getRevisionsIterator'](_0x1b5886['newRevisionId']))if(_0x1375b9['push'](_0x254377),_0x254377['id']===_0x1b5886['oldRevisionId'])break;return _0x1375b9;}*['getRevisionsIterator'](_0x2667ad,{direction:_0x569fa7='earlier',filter:_0x344794=()=>!0x0}={}){const _0x34f95f='earlier'===_0x569fa7?0x1:-0x1;let _0x4227da=this['_revisions']['get'](_0x2667ad),_0x4cd362=this['getIndex'](_0x4227da);for(yield _0x4227da;_0x4227da;){if(_0x4cd362+=_0x34f95f,_0x4227da=this['getRevision'](_0x4cd362),!_0x4227da)return;_0x344794(_0x4227da)&&(yield _0x4227da);}}}class $ extends _0x33730e{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x50cabe,'c'],[_0xa8433c,'a'],[_0x585f9d,'e'],[_0x7f5ae,'r'],[_0x5013be,'u']]);['_typeCharToViewClass']=new Map([['c',_0x50cabe],['a',_0xa8433c],['e',_0x585f9d],['r',_0x7f5ae],['u',_0x5013be]]);async['loadRevisionData'](_0x947291,_0x460d0c){if(_0x947291['diffData']||!_0x460d0c)return;const _0x105d79=this['editor']['config']['get']('collaboration.channelId'),_0x373c15=await _0x460d0c['getRevision']({'channelId':_0x105d79,'revisionId':_0x947291['id']});_0x947291['diffData']=_0x373c15['diffData'];}['getRevisionDocumentData'](_0x1be950){const _0x52d7b8={};for(const _0xf9fce0 in _0x1be950['diffData']){if(_0x1be950['diffData'][_0xf9fce0]['attachChange']&&!_0x1be950['diffData'][_0xf9fce0]['attachChange']['isAttached'])continue;const _0x310f6c=this['_removeRevisionMarkers'](JSON['parse'](_0x1be950['diffData'][_0xf9fce0]['insertions'])),_0x4764d9=this['editor']['editing']['view']['document'],_0x11ce03=new _0x5b6a9b(_0x4764d9,_0x310f6c['map'](_0x112ab4=>this['_getViewFromDiffObj'](_0x112ab4,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x52d7b8[_0xf9fce0]=this['editor']['data']['processor']['toData'](_0x11ce03),this['editor']['data']['processor']['useFillerType']('default');}return _0x52d7b8;}['getRevisionRootsAttributes'](_0x443cce){const _0x3809bc={};for(const _0x41bcfc in _0x443cce['diffData'])_0x443cce['diffData'][_0x41bcfc]['attachChange']&&!_0x443cce['diffData'][_0x41bcfc]['attachChange']['isAttached']||(_0x3809bc[_0x41bcfc]=_0x443cce['diffData'][_0x41bcfc]['attributesAfter']||{});return _0x3809bc;}['_getTypeCharForViewElement'](_0x411328){return this['_viewClassToTypeChar']['get'](_0x411328['constructor']);}['_getViewFromDiffObj'](_0x1a5181,_0xb8db5){const _0x1b67f8=this['editor']['editing']['view']['document'];if('string'==typeof _0x1a5181)return new _0x382069(_0x1b67f8,_0x1a5181);{let _0x5ad3ec,_0xa94556;_0xa94556='u'==_0x1a5181['type']||'r'==_0x1a5181['type']?[]:_0x1a5181['children']['map'](_0x5b57a4=>this['_getViewFromDiffObj'](_0x5b57a4,_0xb8db5));const _0x56eea8=this['_typeCharToViewClass']['get'](_0x1a5181['type'])||_0x26000a,_0x53a6cb=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5ad3ec=new _0x56eea8(_0x1b67f8,_0x1a5181['name'],_0x1a5181['attributes'],_0xa94556),'u'==_0x1a5181['type']&&_0x1a5181['children'][0x0]){const _0x450773=_0x1a5181['children'][0x0];if(_0x5ad3ec['render']=function(_0x121f88){const _0x4e22c3=_0x121f88['createElement']('div');return _0x4e22c3['innerHTML']=_0x450773,_0x4e22c3['childNodes'][0x0];},_0xb8db5){const _0x32a9e0=new _0x5b6a9b(_0x1b67f8);_0x32a9e0['_appendChild'](_0x5ad3ec);const _0x1d0185=Array['from'](_0x53a6cb['viewChildrenToDom'](_0x32a9e0,{'bind':!0x1})),_0x2815f9=_0x53a6cb['domDocument']['createElement']('div');_0x2815f9['append'](..._0x1d0185),_0x5ad3ec=Array['from'](_0x53a6cb['domChildrenToView'](_0x2815f9))[0x0];}}else{if('r'==_0x1a5181['type']&&_0x1a5181['children'][0x0]){const _0x28e6e9=_0x1a5181['children'][0x0];if(_0x5ad3ec['render']=function(_0x16b6a2){_0x16b6a2['innerHTML']=_0x28e6e9;},_0xb8db5){const _0x57ae10=new _0x5b6a9b(_0x1b67f8);_0x57ae10['_appendChild'](_0x5ad3ec);const _0x324054=Array['from'](_0x53a6cb['viewChildrenToDom'](_0x57ae10,{'bind':!0x1})),_0x5edc87=_0x53a6cb['domDocument']['createElement']('div');_0x5edc87['append'](..._0x324054);const _0x4c9844=Array['from'](_0x53a6cb['domChildrenToView'](_0x5edc87));_0x4c9844['length']>0x1?_0x5ad3ec['_appendChild'](_0x4c9844):_0x5ad3ec=_0x4c9844[0x0];}}}if(_0x1a5181['customProperties']){for(const [_0x476138,_0x2af95c]of _0x1a5181['customProperties'])_0x5ad3ec['_setCustomProperty'](_0x476138,_0x2af95c);}const _0x4bede0=void 0x0===_0x1a5181['fillerOffset']?null:_0x1a5181['fillerOffset'];return null!==_0x4bede0&&(_0x5ad3ec['getFillerOffset']=()=>_0x4bede0),_0x5ad3ec;}}['_makeModelFromViewString'](_0xc9da12){const _0x25d546=JSON['parse'](_0xc9da12),_0x42cb03=this['editor']['editing']['view']['document'],_0x174c5e=new _0x5b6a9b(_0x42cb03,_0x25d546['map'](_0x84abcd=>this['_getViewFromDiffObj'](_0x84abcd,!0x0)));return this['editor']['data']['toModel'](_0x174c5e);}['_removeRevisionMarkers'](_0x693f0b){return(_0x693f0b=_0x693f0b['filter'](_0x2347bf=>!_0x2347bf['name']||'revision-start'!==_0x2347bf['name']&&'revision-end'!==_0x2347bf['name']))['forEach'](_0x25aa86=>{'string'!=typeof _0x25aa86&&(_0x25aa86['children']=this['_removeRevisionMarkers'](_0x25aa86['children']),_0x25aa86['attributes']=_0x25aa86['attributes']['filter'](_0x4af9ad=>!_0x4af9ad[0x0]['startsWith']('data-revision-')));}),_0x693f0b;}}function R(_0x57b90a,_0x332e5d,_0x2f5835){const t=_0x57b90a['t'];switch(_0x332e5d){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'},_0x2f5835);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2f5835);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x33730e{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1653cb,S,$,_0x4cde51];}constructor(_0x19c3a1){super(_0x19c3a1),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x205651=_0x4a9047();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x205651},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x19dca2=this['repository']['getRevision'](0x0),_0x4495bd=_0x19dca2&&null===_0x19dca2['creator']?_0x19dca2:null;if(this['_continueCurrentRevision']=!!_0x4495bd&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x214499=this['_source']['getCurrentRevisionId'](),_0x3959f4=this['repository']['getRevision'](_0x214499);if(_0x3959f4)this['_startingVersion']=_0x3959f4['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x46051f=this['_source']['history']['_operations']['find'](_0x204433=>!_0x204433['_isInit']),_0x4307fb=_0x46051f?_0x46051f['baseVersion']:this['_source']['history']['version'];_0x19dca2?(_0x19dca2['toVersion']<_0x4307fb&&_0x19dca2['_update']({'toVersion':_0x4307fb}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4495bd['id'],this['_startingVersion']=_0x4495bd['fromVersion']):(this['_startingVersion']=_0x19dca2['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4307fb,this['_continueCurrentRevision']=!0x1);}}else _0x4495bd&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4495bd['toVersion'],this['editor']['model']['document']['history']['version']),_0x4495bd['fromVersion']===_0x4495bd['toVersion']?(0x0!==_0x4495bd['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4495bd['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4495bd['id'],this['_startingVersion']=_0x4495bd['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',_0x3a74f7=>!_0x3a74f7),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c13fa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa80bbd;for(const _0x5ce260 in _0x1c13fa){const _0x45d1cc=_0x5ce260,_0x39d769=_0x1c13fa[_0x45d1cc];if('revisionHistoryLicenseKeyValid'==_0x39d769||'revisionHistoryLicenseKeyInvalid'==_0x39d769||'revisionHistoryLicenseKeyExpired'==_0x39d769||'revisionHistoryLicenseKeyDomainLimit'==_0x39d769||'revisionHistoryLicenseKeyNotAllowed'==_0x39d769||'revisionHistoryLicenseKeyEvaluationLimit'==_0x39d769||'revisionHistoryLicenseKeyTrialLimit'==_0x39d769||'revisionHistoryLicenseKeyUsageLimit'==_0x39d769){delete _0x1c13fa[_0x45d1cc],_0xa80bbd=_0x39d769,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xa80bbd&&_0x1c13fa['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xa80bbd&&_0x1c13fa['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xa80bbd&&_0x1c13fa['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xa80bbd&&_0x1c13fa['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xa80bbd&&_0x1c13fa['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xa80bbd&&_0x1c13fa['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xa80bbd&&_0x1c13fa['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x292696=this['repository']['getRevision'](0x0),_0x2356a4=await this['getRevisionDocumentData'](_0x292696),_0x5397b0=await this['getRevisionRootsAttributes'](_0x292696);this['_replaceEditorDataWithRevisionData'](_0x2356a4,_0x5397b0);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x39b207){this['_source']=_0x39b207;}async['update'](){const _0x3df629=await this['_source']['getLatestVersion']();if(_0x3df629>this['currentRevision']['toVersion']){await this['_loadState']();const _0x566023=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3df629});_0x566023['authors']=_0x566023['authorsIds']['map'](_0x4fab47=>this['editor']['plugins']['get']('Users')['getUser'](_0x4fab47)),this['currentRevision']['_update'](_0x566023);}}async['saveRevision'](_0x43ea68={},_0x1883fe=null){const _0xed2b6c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1883fe>this['currentRevision']['toVersion']&&(_0x1883fe=null),null===_0x1883fe&&(_0x1883fe=await this['_source']['getLatestVersion']());const _0x10f1b9=this['_getFromVersion'](_0x1883fe),_0x26461f=this['buildRevisionData']({'from':_0x10f1b9,'to':_0x1883fe});if(this['currentRevision']['toVersion']<_0x1883fe){const _0x401c4e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1883fe,'to':_0x1883fe});_0x401c4e['authors']=[],_0x401c4e['authorsIds']=[],_0x401c4e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x401c4e,!0x0),delete _0x401c4e['authors'],_0xed2b6c['push'](_0x401c4e);}_0x43ea68['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x43ea68['name']=_0x43ea68['name']||null,_0x43ea68['id']=_0x43ea68['id']||_0x4a9047(),_0x43ea68={..._0x43ea68,..._0x26461f};const _0x2f455e=this['addRevisionData'](_0x43ea68);_0xed2b6c['push'](_0x43ea68);const _0x3467c6=this['repository']['getIndex'](_0x2f455e);if(0x0!==_0x3467c6){const _0x4f2192=this['repository']['getRevision'](_0x3467c6-0x1);if(_0x4f2192['fromVersion']!==_0x1883fe){const _0x2c771c=this['_revisionDataBuilder']['getData'](_0x1883fe,_0x4f2192['toVersion']),_0x2f0532={'id':_0x4f2192['id'],'diffData':_0x2c771c['diffData'],'authorsIds':_0x2c771c['authorsIds'],'authors':_0x2c771c['authorsIds']['map'](_0x28c671=>this['editor']['plugins']['get']('Users')['getUser'](_0x28c671)),'fromVersion':_0x1883fe};_0x4f2192===this['currentRevision']&&(_0x2f0532['createdAt']=new Date(_0x43ea68['createdAt']['getTime']()+0xa)),_0x4f2192['_update'](_0x2f0532,!0x0),delete _0x2f0532['authors'],_0xed2b6c['push'](_0x2f0532);}}if(this['adapter']){for(const _0x2338e4 of _0xed2b6c)this['_bufferUpdate'](_0x2338e4['id'],_0x2338e4,!0x0);this['sendBufferedUpdates']();}return _0x2f455e;}['addRevisionData'](_0x5b0587){const _0x35c647=this['repository']['createRevision'](_0x5b0587);return this['adapter']&&_0x35c647['on']('_update',(_0x1c5e18,_0x30cf1a,_0x1c1f12)=>{_0x1c1f12||(this['_bufferUpdate'](_0x30cf1a['id'],_0x30cf1a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x35c647,this['_findInsertionIndex'](_0x35c647)),_0x35c647;}async['getRevisionDocumentData'](_0x52ea72){return await this['_utils']['loadRevisionData'](_0x52ea72,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x52ea72);}async['getRevisionRootsAttributes'](_0x117ff5){return await this['_utils']['loadRevisionData'](_0x117ff5,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x117ff5);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2f6f8c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x296e21=0x0;_0x296e21<_0x2f6f8c['length'];_0x296e21++){const _0x1697ff=_0x2f6f8c[_0x296e21];let _0x44c237=!0x1;for(const _0x239eab of Object['keys'](_0x1697ff))void 0x0===_0x1697ff[_0x239eab]?delete _0x1697ff[_0x239eab]:'id'!==_0x239eab&&(_0x44c237=!0x0);_0x44c237||(_0x2f6f8c[_0x296e21]=null);}if(_0x2f6f8c=_0x2f6f8c['filter'](_0x727326=>null!==_0x727326),!_0x2f6f8c['length'])return;for(let _0xc72c8c=0x0;_0xc72c8c<_0x2f6f8c['length'];_0xc72c8c++){const _0x535c8c=_0x2f6f8c[_0xc72c8c];void 0x0!==_0x535c8c['fromVersion']&&void 0x0===_0x535c8c['toVersion']&&(_0x535c8c['toVersion']=this['repository']['getRevision'](_0x535c8c['id'])['toVersion']),void 0x0!==_0x535c8c['toVersion']&&void 0x0===_0x535c8c['fromVersion']&&(_0x535c8c['fromVersion']=this['repository']['getRevision'](_0x535c8c['id'])['fromVersion']);}const _0x1d9d11=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2f6f8c,_0x1d9d11)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x434169=>{if(_0x434169){for(const _0x2ece2e of _0x434169)this['setRevisionData']({'id':_0x2ece2e['id'],'createdAt':_0x2ece2e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x3d2397=null,from:_0x28755a=null,to:_0x4fe784=null}){_0x28755a=null!==_0x28755a?_0x28755a:_0x3d2397['fromVersion'],_0x4fe784=null!==_0x4fe784?_0x4fe784:_0x3d2397['toVersion'];const _0x332f77=this['_revisionDataBuilder']['getData'](_0x28755a,_0x4fe784),_0x546b48={'diffData':_0x332f77['diffData'],'authorsIds':_0x332f77['authorsIds'],'fromVersion':_0x28755a,'toVersion':_0x4fe784};if(!_0x3d2397||_0x4fe784!==_0x3d2397['toVersion']){const _0x460414=_0x4fe784-0x1,_0x545b5a=this['_source']['history']['getOperation'](_0x460414);_0x546b48['createdAt']=_0x545b5a&&_0x545b5a['createdAt']||new Date();}if(this['_loadedStateData']&&_0x28755a===this['_loadedStateData']['fromVersion']){for(const _0x5b9cc3 of this['_loadedStateData']['authors'])_0x546b48['authorsIds']['includes'](_0x5b9cc3['id'])||_0x546b48['authorsIds']['push'](_0x5b9cc3['id']);}return _0x546b48;}['_bufferUpdate'](_0xb92a0b,_0x659e5e,_0xccd179){if(this['_bufferedUpdates']['has'](_0xb92a0b)){const _0x3120a7=this['_bufferedUpdates']['get'](_0xb92a0b);_0x659e5e=_0xccd179?{..._0x3120a7,..._0x659e5e}:{..._0x659e5e,..._0x3120a7};}this['_bufferedUpdates']['set'](_0xb92a0b,_0x659e5e);}['setRevisionData'](_0x5f81d){const _0xfc895e=this['repository']['getRevision'](_0x5f81d['id']);if(_0x5f81d['createdAt']&&(_0x5f81d['createdAt']=new Date(_0x5f81d['createdAt'])),_0x5f81d['authorsIds']){const _0x570154=this['editor']['plugins']['get']('Users');_0x5f81d['authors']=_0x5f81d['authorsIds']['map'](_0x4423e2=>_0x570154['getUser'](_0x4423e2));}_0xfc895e['_update'](_0x5f81d,!0x0);}['_createInitialRevision'](_0x3eef4e){const _0x27bafc=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x27bafc)this['_initialRevisionId']=_0x27bafc['id'];else{const _0x457be7=!this['editor']['model']['document']['roots']['find'](_0x346545=>this['editor']['model']['hasContent'](_0x346545)),_0x196d79=this['editor']['plugins']['get']('Users')['me']['id'],_0x1572ff=R(this['editor']['locale'],_0x457be7?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3eef4e,'to':_0x3eef4e,'id':this['_initialRevisionId'],'name':_0x1572ff,'creatorId':_0x196d79});}}['_createCurrentRevision'](_0x20861d){const _0x5a74ba=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5a74ba),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x20861d,'to':_0x20861d,'id':_0x5a74ba,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x1c2b20,_0x4fc474){let _0x40b344=this['editor']['config']['get']('initialData'),_0x3a729f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x40b344){_0x40b344={};for(const _0x5cb457 of this['editor']['model']['document']['getRootNames']())_0x40b344[_0x5cb457]='';}if('string'==typeof _0x40b344&&(_0x40b344={'main':_0x40b344}),void 0x0===_0x3a729f){_0x3a729f={};for(const _0x2ba47c of this['editor']['model']['document']['getRootNames']())_0x3a729f[_0x2ba47c]={};}let _0x5ac8ba=!0x1;const _0x283c17=Object['keys'](_0x40b344),_0x5d6447=Object['keys'](_0x1c2b20);for(const _0x1d8e21 of _0x283c17){if(_0x40b344[_0x1d8e21]!==_0x1c2b20[_0x1d8e21]&&''!==_0x40b344[_0x1d8e21]['trim']()){_0x5ac8ba=!0x0;break;}if(!_0x2679f7(_0x3a729f[_0x1d8e21],_0x4fc474[_0x1d8e21])&&Object['keys'](_0x3a729f[_0x1d8e21])['length']>0x0){_0x5ac8ba=!0x0;break;}}_0x5ac8ba||(_0x5ac8ba=_0x5d6447['some'](_0x143221=>!this['editor']['model']['document']['getRoot'](_0x143221))),_0x5ac8ba&&_0x6c038b('editor-initial-data-replaced-with-revision-data',{'editorData':_0x40b344,'editorRootsAttributes':_0x3a729f,'revisionData':_0x1c2b20,'revisionRootsAttributes':_0x4fc474}),this['editor']['config']['set']('initialData',_0x1c2b20),this['editor']['config']['set']('rootsAttributes',_0x4fc474);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3452b9=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3452b9['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3f7cd0){const _0x2d3312=this['repository']['getRevisions']();_0x2d3312['reverse']();let _0x22e20f=0x0;for(;_0x22e20f<_0x2d3312['length'];){const _0x55347a=_0x2d3312[_0x22e20f];if(_0x55347a===this['currentRevision']){_0x22e20f++;continue;}if(_0x55347a['id']===this['_initialRevisionId'])break;const _0x5f1d39=_0x3f7cd0['toVersion']-_0x55347a['toVersion']||_0x3f7cd0['fromVersion']-_0x55347a['fromVersion'];if(_0x5f1d39>0x0)break;if(_0x5f1d39<0x0)_0x22e20f++;else{if(!_0x3f7cd0['creator']&&_0x55347a['creator'])break;if(_0x55347a['creator']||!_0x3f7cd0['creator']){if(_0x3f7cd0['createdAt']>_0x55347a['createdAt'])break;_0x22e20f++;}else _0x22e20f++;}}return _0x22e20f;}['_getFromVersion'](_0x427e63){const _0x22f965=this['repository']['getRevisions']();_0x22f965['reverse'](),_0x22f965['shift']();const _0x25f928=_0x22f965['find'](_0xc65753=>_0xc65753['toVersion']<=_0x427e63)['toVersion'];return _0x25f928<this['_startingVersion']?this['_startingVersion']:_0x25f928;}['_makeRevision']({name:_0xe0f1d7,from:_0x5ccb96,to:_0x45225b,creatorId:_0xe586e9,id:_0x12a8cb}){const _0x3c2e0b=this['buildRevisionData']({'from':_0x5ccb96,'to':_0x45225b});_0x3c2e0b['name']=_0xe0f1d7,_0x3c2e0b['creatorId']=_0xe586e9,_0x3c2e0b['id']=_0x12a8cb;const _0x31f734=this['addRevisionData'](_0x3c2e0b);return this['adapter']&&this['_bufferUpdate'](_0x3c2e0b['id'],_0x3c2e0b,!0x0),_0x31f734;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xf789f8){this['editor']=_0xf789f8,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'](_0x1ba07a){this['source']=_0x1ba07a;const _0x5af86f=new Map(),_0x45b0c4=new Map(),_0x182633=this['editor']['model']['document']['roots']['map'](_0x10d040=>_0x10d040['rootName']);for(const _0x4600e1 of _0x182633){const _0x2e296d=this['editor']['model']['document']['getRoot'](_0x4600e1),_0x2861dd=x(_0x2e296d);_0x5af86f['set'](_0x4600e1,_0x2861dd),_0x45b0c4['set'](_0x4600e1,Object['fromEntries'](_0x2e296d['getAttributes']()));}const _0x165d92=Array['from'](this['editor']['model']['markers'])['map'](_0x5a019b=>[_0x5a019b['name'],_0x5a019b['getRange']()]),_0x1e1af3=this['source']['version'];this['_saveMetaData'](_0x1e1af3,_0x5af86f,_0x165d92,_0x45b0c4),this['_startingRevisionId']=this['_revisionId'];const _0x1eaee6=new Map(),_0x1c4c9a=new Map();for(const _0x4782a6 of _0x182633){const _0x15d147=N(_0x4782a6);_0x1eaee6['set'](_0x4782a6,_0x15d147),_0x1c4c9a['set'](_0x4782a6,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1eaee6,[],_0x1c4c9a);}['getData'](_0x3849ba,_0x1ef9e3){if(this['_lastFrom']===_0x3849ba&&this['_lastTo']<=_0x1ef9e3)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1ef9e3,!0x0);else{if(!this['_savedMetaData']['has'](_0x3849ba)){const _0x27607c=this['_getPreviousFrom'](_0x3849ba);this['_calculateMetaData'](_0x27607c,_0x3849ba,!0x1);}this['_calculateMetaData'](_0x3849ba,_0x1ef9e3,!0x0);}return this['_lastFrom']=_0x3849ba,this['_lastTo']=_0x1ef9e3,this['_getState']();}['loadState'](_0x4b67fe){const _0x1cedff=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4b67fe['fromVersion'],this['_lastTo']=_0x4b67fe['toVersion'];for(const _0x5e14f6 in _0x4b67fe['diffData']){const _0x18da1e=_0x4b67fe['diffData'][_0x5e14f6]['attachChange'],_0x344243=_0x2f1e40(_0x4b67fe['diffData'][_0x5e14f6]['attributesBefore'])||{},_0x57d6be=_0x1cedff['_makeModelFromViewString'](_0x4b67fe['diffData'][_0x5e14f6]['deletions']);_0x57d6be['rootName']=_0x5e14f6,_0x57d6be['_isAttached']=!_0x18da1e||!_0x18da1e['isAttached'],_0x57d6be['isAttached']=()=>_0x57d6be['_isAttached'],this['_baseRoots']['set'](_0x5e14f6,_0x57d6be),this['_baseRootsAttributes']['set'](_0x5e14f6,_0x344243),_0x18da1e&&this['_touchedRoots']['set'](_0x5e14f6,_0x18da1e);const _0xb4423a=this['_makeIdsRoot'](_0x57d6be);this['_baseIdsRoots']['set'](_0x5e14f6,_0xb4423a);for(const [_0x3f17f0,_0x4bbe09]of _0x57d6be['markers']){if(!_0x3f17f0['startsWith']('revision:'))continue;const _0x105278=_0x3f17f0['split'](':')[0x2];for(const _0xfbb924 of _0x4bbe09['getWalker']({'singleCharacters':!0x0})){const _0x2c6f1b=this['_getVidAttributeName'](_0xfbb924),_0x579171='elementEnd'==_0xfbb924['type']?_0xfbb924['previousPosition']['path']['slice'](0x0,-0x1):_0xfbb924['previousPosition']['path'],_0x3ce888=_0xb4423a['getNodeByPath'](_0x579171)['getAttribute'](_0x2c6f1b);this['_touched']['set'](_0x3ce888,{'userId':_0x105278});}}}this['_startingRevisionId']=this['_revisionId'];const _0xf73c2c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x246fe7=>!this['_touched']['has'](_0x246fe7));let _0x387d0b=0x0;const _0x3e67c4=new Map();for(const _0x5757c6 in _0x4b67fe['diffData']){const _0x41d239=_0x4b67fe['diffData'][_0x5757c6]['attachChange'],_0x49eb7e=_0x2f1e40(_0x4b67fe['diffData'][_0x5757c6]['attributesAfter'])||{},_0x33a41c=_0x1cedff['_makeModelFromViewString'](_0x4b67fe['diffData'][_0x5757c6]['insertions']);_0x33a41c['rootName']=_0x5757c6,_0x33a41c['_isAttached']=!_0x41d239||_0x41d239['isAttached'],_0x33a41c['isAttached']=()=>_0x33a41c['_isAttached'],this['_diffRoots']['set'](_0x5757c6,_0x33a41c),this['_diffRootsAttributes']['set'](_0x5757c6,_0x49eb7e);const _0x2bb283=this['_makeIdsRoot'](_0x33a41c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5757c6,_0x2bb283),_0x3e67c4['set'](_0x5757c6,_0x33a41c['isAttached']()?_0x49eb7e:{});for(const [_0x122972,_0x188d0f]of _0x33a41c['markers']){if(!_0x122972['startsWith']('revision:'))continue;const _0x5644ff=_0x122972['split'](':')[0x2];for(const _0xb8e9ff of _0x188d0f['getWalker']({'singleCharacters':!0x0})){const _0x95d331=this['_getVidAttributeName'](_0xb8e9ff),_0x547abc=this['_revisionId']++,_0x5a70c0='elementEnd'==_0xb8e9ff['type']?_0xb8e9ff['previousPosition']['path']['slice'](0x0,-0x1):_0xb8e9ff['previousPosition']['path'];_0x2bb283['getNodeByPath'](_0x5a70c0)['_setAttribute'](_0x95d331,_0x547abc),this['_touched']['set'](_0x547abc,{'userId':_0x5644ff});}}for(const _0x192e6a of this['editor']['model']['createRangeIn'](_0x33a41c)['getWalker']({'singleCharacters':!0x0})){const _0x4fe895=this['_getVidAttributeName'](_0x192e6a),_0x383374='elementEnd'==_0x192e6a['type']?_0x192e6a['previousPosition']['path']['slice'](0x0,-0x1):_0x192e6a['previousPosition']['path'],_0x40fbb6=_0x2bb283['getNodeByPath'](_0x383374);_0x40fbb6['getAttribute'](_0x4fe895)>0x0||_0x40fbb6['_setAttribute'](_0x4fe895,_0xf73c2c[_0x387d0b++]);}for(const [_0xfa7300,_0x64f165]of _0x33a41c['markers'])_0xfa7300['startsWith']('revision:')||this['_markers']['set'](_0xfa7300,_0x64f165);}const _0x59aa75=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x59aa75),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x59aa75,0x1));const _0x102066=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x102066),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x102066,0x1));const _0x45b6c9=Array['from'](this['_diffRoots'])['map'](([_0x21e8e8,_0x2d4a7a])=>[_0x21e8e8,x(_0x2d4a7a)]);this['_saveMetaData'](this['_lastTo'],_0x45b6c9,this['_markers'],_0x3e67c4);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x14abbb,_0x42dd89,_0x25ca28,_0x1b16d3){const _0x4a94fe=new Map(_0x42dd89),_0x1e6093=new Map(_0x2f1e40(_0x1b16d3)),_0x1dba31=new Map();for(const [_0x330705,_0x979f8b]of _0x25ca28)_0x1dba31['set'](_0x330705,{'start':_0x979f8b['start']['clone'](),'end':_0x979f8b['end']['clone'](),'rootName':_0x979f8b['root']['rootName']});this['_savedMetaData']['set'](_0x14abbb,{'roots':_0x4a94fe,'markers':_0x1dba31,'rootsAttributes':_0x1e6093});}['_removeMetaData'](_0x1b6f39){this['_savedMetaData']['delete'](_0x1b6f39);}['_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'](_0x39dd5a,_0x3a581a=null){let _0x400bc6=null;_0x39dd5a['is']('documentFragment')||(_0x400bc6=new _0x4b16e7(_0x39dd5a['name'],{'vid_start':null===_0x3a581a?this['_revisionId']++:_0x3a581a++}));const _0x29cb7a=[];for(const _0x11df3f of _0x39dd5a['getChildren']())if(_0x11df3f['is']('element')){_0x29cb7a['push'](this['_makeIdsRoot'](_0x11df3f,_0x3a581a));const _0x175474=_0x29cb7a[_0x29cb7a['length']-0x1];null!==_0x3a581a&&(_0x3a581a=_0x175474['is']('element','$text')?_0x175474['getAttribute']('vid')+0x1:_0x175474['getAttribute']('vid_end')+0x1);}else{for(let _0x3625f9=0x0;_0x3625f9<_0x11df3f['offsetSize'];_0x3625f9++)_0x29cb7a['push'](new _0x4b16e7('$text',{'vid':null===_0x3a581a?this['_revisionId']++:_0x3a581a++}));}if(_0x39dd5a['is']('documentFragment')){const _0x21064c=N(_0x39dd5a['rootName']);return _0x21064c['_insertChild'](0x0,_0x29cb7a),_0x21064c;}return _0x400bc6['_setAttribute']('vid_end',null===_0x3a581a?this['_revisionId']++:_0x3a581a++),_0x400bc6['_insertChild'](0x0,_0x29cb7a),_0x400bc6;}['_calculateMetaData'](_0x5ddd7a,_0x48afb9,_0x3b60d3){this['_reset']();const {roots:_0x12fee4,markers:_0x461356,rootsAttributes:_0x48a23d}=this['_savedMetaData']['get'](_0x5ddd7a);this['_baseRoots']=new Map(_0x12fee4),this['_baseRootsAttributes']=new Map(_0x2f1e40(_0x48a23d));for(const [_0x4316b1,_0x3b7cac]of this['_baseRoots'])if('$graveyard'!==_0x4316b1&&(this['_diffRoots']['set'](_0x4316b1,x(_0x3b7cac)),this['_diffRootsAttributes']=new Map(_0x2f1e40(_0x48a23d)),_0x3b60d3)){const _0x59224b=this['_revisionId'];this['_idsRoots']['set'](_0x4316b1,this['_makeIdsRoot'](_0x3b7cac)),this['_baseIdsRoots']['set'](_0x4316b1,this['_makeIdsRoot'](_0x3b7cac,_0x59224b));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x3b60d3&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x505bd3,_0x56c4d8]of _0x461356){const _0x13efe9=this['_baseRoots']['get'](_0x56c4d8['rootName']),_0x460809=this['_diffRoots']['get'](_0x56c4d8['rootName']),_0x1438c2=new _0x1511c4(this['_fixPosition'](_0x56c4d8['start'],_0x13efe9),this['_fixPosition'](_0x56c4d8['end'],_0x13efe9)),_0x214ace=this['_fixRange'](_0x1438c2,_0x460809);_0x13efe9['markers']['set'](_0x505bd3,_0x1438c2),this['_markers']['set'](_0x505bd3,_0x214ace);}this['_applyOperations'](_0x5ddd7a,_0x48afb9,_0x3b60d3);}['_applyOperations'](_0x589bca,_0x441fd9,_0x5cb498){for(const _0x38ab37 of this['source']['getOperations'](_0x589bca,_0x441fd9))this['_handleOperation'](_0x38ab37,_0x5cb498);for(const _0x249cc5 of this['_diffRoots']['values']())_0x249cc5['markers']['clear']();for(const [_0x470fb3,_0x1a3b7c]of this['_markers']){this['_diffRoots']['get'](_0x1a3b7c['root']['rootName'])['markers']['set'](_0x470fb3,_0x1a3b7c['clone']());}const _0x1fa64c=new Map(),_0x2a22d7=new Map();for(const [_0x4b77e5,_0x3697c3]of this['_diffRoots'])_0x1fa64c['set'](_0x4b77e5,x(_0x3697c3)),_0x2a22d7['set'](_0x4b77e5,this['_diffRootsAttributes']['get'](_0x4b77e5));this['_saveMetaData'](_0x441fd9,_0x1fa64c,this['_markers'],_0x2a22d7);}['_getPreviousFrom'](_0x1caa02){const _0xb8bce0=Array['from'](this['_savedMetaData']['keys']());_0xb8bce0['sort']((_0x56710f,_0x4e663e)=>_0x56710f-_0x4e663e),_0xb8bce0['reverse']();for(const _0x34e5ac of _0xb8bce0)if(_0x34e5ac<_0x1caa02)return _0x34e5ac;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1a1083,_0x31787c){const _0x209ca8=Array['from'](_0x31787c['markers'])['map'](([_0x205f54,_0x1f16e7])=>[_0x205f54,this['_fixRange'](_0x1f16e7,_0x1a1083)]);_0x1a1083['markers']=new Map(_0x209ca8);}['_transformMarkers'](_0x24688b){for(const _0x39bb8a of this['_markers']['values']()){const _0x521180=_0x39bb8a['getTransformedByOperation'](_0x24688b),_0x4c8aec=_0x1511c4['_createFromRanges'](_0x521180);_0x39bb8a['start']=_0x4c8aec['start'],_0x39bb8a['end']=_0x4c8aec['end'];}}['_handleOperation'](_0x5eb130,_0x57f34e){if('addRoot'!=_0x5eb130['type']&&'detachRoot'!=_0x5eb130['type']){if('insert'==_0x5eb130['type']){const _0x439399=_0x5eb130['position']['root']['rootName'];this['_diffRoots']['has'](_0x439399)||(this['_diffRoots']['set'](_0x439399,N(_0x439399,!0x0)),this['_diffRootsAttributes']['set'](_0x439399,{}),_0x57f34e&&this['_idsRoots']['set'](_0x439399,N(_0x439399,!0x0)));}else{if('addRootAttribute'==_0x5eb130['type']||'removeRootAttribute'==_0x5eb130['type']||'changeRootAttribute'==_0x5eb130['type'])return void this['_handleRootAttributeOperation'](_0x5eb130);'marker'==_0x5eb130['type']&&this['_handleMarkerOperation'](_0x5eb130);}if('marker'!==_0x5eb130['type']){const _0x5e23c1=this['_cloneOperation'](_0x5eb130,this['_diffRoots']);_0x5e23c1['_execute'](),this['_transformMarkers'](_0x5e23c1);}if(_0x57f34e)switch(_0x5eb130['type']){case'insert':this['_handleInsertOperation'](_0x5eb130);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5eb130);break;case'merge':this['_handleMergeOperation'](_0x5eb130);break;case'split':this['_handleSplitOperation'](_0x5eb130);}}else this['_handleRootOperation'](_0x5eb130,_0x57f34e);}['_cloneOperation'](_0x5993a6,_0x5887bb){const _0x1757f5=_0x5993a6['clone']();return _0x1757f5['_authorId']=_0x5993a6['_authorId'],this['_fixOperation'](_0x1757f5,_0x5887bb),_0x1757f5;}['_getBaseVids'](_0x33d4c0){return _0x33d4c0['map'](_0x50345=>{const _0xdee454=this['_getVidAttributeName'](_0x50345);return Number(_0x50345['item']['getAttribute'](_0xdee454));});}['_generateTape'](_0x564623,_0x55d7e6){if(_0x564623['is']('element','$text'))_0x55d7e6['push']({'item':_0x564623,'type':'text'});else{_0x564623['is']('element')&&_0x55d7e6['push']({'item':_0x564623,'type':'elementStart'});for(const _0x3705db of _0x564623['getChildren']())this['_generateTape'](_0x3705db,_0x55d7e6);_0x564623['is']('element')&&_0x55d7e6['push']({'item':_0x564623,'type':'elementEnd'});}return _0x55d7e6;}['_getState'](){const _0x4560fb=new Map(this['_touched']),_0x12bae4=new Map(_0x4560fb),_0x633877=new Map(),_0x18d888={'insertions':{},'deletions':{}},_0x172f9d={'insertions':{},'deletions':{}},_0x3c2eca=new Map(),_0x4f7eee=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4f7eee['delete']('$graveyard');for(const _0x1cd403 of _0x4f7eee){const _0x4d22d2=this['_diffRoots']['get'](_0x1cd403)||N(_0x1cd403,!0x1),_0x2da5b8=this['_baseRoots']['get'](_0x1cd403)||N(_0x1cd403,!0x1);_0x4d22d2['isAttached']()||_0x2da5b8['isAttached']()?(_0x18d888['insertions'][_0x1cd403]=x(_0x4d22d2),_0x18d888['deletions'][_0x1cd403]=x(_0x2da5b8),this['_copyMarkers'](_0x18d888['deletions'][_0x1cd403],_0x2da5b8),this['_copyMarkers'](_0x18d888['insertions'][_0x1cd403],_0x4d22d2),_0x172f9d['insertions'][_0x1cd403]=this['_generateTape'](this['_idsRoots']['get'](_0x1cd403),[]),_0x172f9d['deletions'][_0x1cd403]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1cd403)||N(_0x1cd403,!0x1),[])):_0x4f7eee['delete'](_0x1cd403);}for(const _0x3601e1 of _0x4f7eee){const _0xa4b671=_0x172f9d['insertions'][_0x3601e1];for(const _0x85ffcc of _0xa4b671){const _0xc5dd31=this['_getVidAttributeName'](_0x85ffcc),_0x16157a=_0x85ffcc['item']['getAttribute'](_0xc5dd31);_0x12bae4['delete'](_0x16157a),_0x16157a>=this['_startingRevisionId']&&_0x633877['set'](_0x16157a,_0x4560fb['get'](_0x16157a));}}for(const _0x41eb37 of _0x4f7eee){const _0x49aef1=_0x172f9d['insertions'][_0x41eb37],_0x2631e2=this['_getBaseVids'](_0x172f9d['deletions'][_0x41eb37]);let _0x513c48=0x0;for(const _0xdcda9 of _0x49aef1){const _0x1c8f09=this['_getVidAttributeName'](_0xdcda9),_0x38d72a=_0xdcda9['item']['getAttribute'](_0x1c8f09);if(!_0x633877['has'](_0x38d72a)&&!_0x3c2eca['has'](_0x38d72a)){if(_0x12bae4['has'](_0x38d72a))_0x513c48++;else{if(_0x38d72a!=_0x2631e2[_0x513c48]){const _0x4bf2eb=_0x4560fb['get'](_0x38d72a)||_0x4560fb['get'](_0x2631e2[_0x513c48]);for(;_0x38d72a!=_0x2631e2[_0x513c48];)_0x12bae4['has'](_0x2631e2[_0x513c48])||(_0x3c2eca['set'](_0x2631e2[_0x513c48],_0x4bf2eb),_0x4560fb['set'](_0x2631e2[_0x513c48],_0x4bf2eb)),_0x513c48++;}_0x513c48++;}}}}for(const _0x515f59 of _0x4f7eee){const _0xfd8e97=_0x172f9d['insertions'][_0x515f59];for(const _0x2f42c3 of _0xfd8e97){const _0x35edb3=this['_getVidAttributeName'](_0x2f42c3),_0x12081b=_0x2f42c3['item']['getAttribute'](_0x35edb3);if(_0x3c2eca['has'](_0x12081b)){const _0x2dc35f=_0x3c2eca['get'](_0x12081b);_0x12bae4['has'](_0x12081b)||_0x12bae4['set'](_0x12081b,{..._0x2dc35f}),_0x633877['set'](_0x12081b,{..._0x2dc35f});}}}for(const _0x36a0d3 of _0x12bae4['keys']())_0x36a0d3>=this['_startingRevisionId']&&_0x12bae4['delete'](_0x36a0d3);const _0x2a45fa=new Map();for(const _0x24acba of _0x4f7eee){let _0x570c9e=_0x172f9d['insertions'][_0x24acba];for(const _0x55d9c4 of _0x570c9e)if(_0x55d9c4['item']['is']('element','tableCell')){const _0x42867e=this['_getVidAttributeName'](_0x55d9c4),_0x1e1b83=_0x55d9c4['item']['getAttribute'](_0x42867e);if(_0x633877['has'](_0x1e1b83)){const _0xc550c5=_0x55d9c4['item']['parent']['parent']['getAttribute']('vid_start'),_0x3410d3=_0x2a45fa['get'](_0xc550c5)||new Set();_0x3410d3['add'](_0x633877['get'](_0x1e1b83)['userId']),_0x2a45fa['set'](_0xc550c5,_0x3410d3);}}_0x570c9e=_0x172f9d['deletions'][_0x24acba];for(const _0x2c580f of _0x570c9e)if(_0x2c580f['item']['is']('element','tableCell')){const _0xb37d76=this['_getVidAttributeName'](_0x2c580f),_0x50265a=_0x2c580f['item']['getAttribute'](_0xb37d76);if(_0x12bae4['has'](_0x50265a)){const _0x4da4df=_0x2c580f['item']['parent']['parent']['getAttribute']('vid_start'),_0x263485=_0x2a45fa['get'](_0x4da4df)||new Set();_0x263485['add'](_0x12bae4['get'](_0x50265a)['userId']),_0x2a45fa['set'](_0x4da4df,_0x263485);}}for(const _0x33b2a5 of _0x2a45fa['keys']())(_0x633877['has'](_0x33b2a5)||_0x12bae4['has'](_0x33b2a5))&&_0x2a45fa['delete'](_0x33b2a5);}for(const _0x1a1ab8 of _0x4f7eee){const _0x315e83=_0x172f9d['insertions'][_0x1a1ab8];let _0xa7761b=null,_0x429072=null;for(const _0x4032f4 of _0x315e83){const _0x33ac19=this['_getVidAttributeName'](_0x4032f4),_0x5f1baa=_0x4032f4['item']['getAttribute'](_0x33ac19),_0x59fac8=_0x2a45fa['get'](_0x5f1baa);_0x59fac8&&'elementStart'==_0x4032f4['type']&&(_0xa7761b=Array['from'](_0x59fac8)[0x0],_0x429072=_0x4032f4['item']['getAttribute']('vid_end')),_0xa7761b&&(_0x12bae4['set'](_0x5f1baa,{'userId':_0xa7761b}),_0x633877['set'](_0x5f1baa,{'userId':_0xa7761b})),_0x5f1baa==_0x429072&&(_0xa7761b=null,_0x429072=null);}}const _0x5d4307={},_0x1839b1=new Set();for(const _0x5dc43c of _0x4f7eee){const _0x31c450=_0x18d888['deletions'][_0x5dc43c],_0x26c055=_0x18d888['insertions'][_0x5dc43c];for(const {userId:_0x5ea1ef}of this['_touchedMarkers']['values']())null!==_0x5ea1ef&&_0x1839b1['add'](_0x5ea1ef);for(const {userId:_0x3ef6d4}of this['_touchedRoots']['values']())null!==_0x3ef6d4&&_0x1839b1['add'](_0x3ef6d4);this['_markChanges'](_0x26c055,_0x172f9d['insertions'][_0x5dc43c],_0x633877,'insertion',_0x1839b1),this['_markChanges'](_0x31c450,_0x172f9d['deletions'][_0x5dc43c],_0x12bae4,'deletion',_0x1839b1),_0x5d4307[_0x5dc43c]={'insertions':this['_prepareViewToSave'](_0x26c055),'deletions':this['_prepareViewToSave'](_0x31c450),'attachChange':this['_touchedRoots']['get'](_0x5dc43c)||null,'attributesBefore':_0x2f1e40(this['_baseRootsAttributes']['get'](_0x5dc43c))||{},'attributesAfter':_0x2f1e40(this['_diffRootsAttributes']['get'](_0x5dc43c))};}return{'diffData':_0x5d4307,'authorsIds':Array['from'](_0x1839b1)};}['_processRootBeforeSave'](_0x459002){for(const [,_0x2f44f5]of _0x459002['markers']){const _0x4f8a1b=_0x2f44f5['start']['getAncestors']()['filter'](_0x52443e=>'tableCell'==_0x52443e['name']);for(const _0x2c4a37 of _0x4f8a1b)0x1==_0x2c4a37['childCount']&&_0x2c4a37['getChild'](0x0)['is']('element','paragraph')&&_0x2c4a37['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x286c99){this['_processRootBeforeSave'](_0x286c99);const _0x37e547=this['editor']['data']['toView'](_0x286c99,{}),_0x536c1a=Array['from'](_0x37e547['getChildren']())['map'](_0x29b596=>this['_getViewJson'](_0x29b596));return JSON['stringify'](_0x536c1a);}['_getViewJson'](_0x3bd363){if(_0x3bd363['is']('$text'))return _0x3bd363['data'];{const _0x34fe7b=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x41e983=_0x3bd363,_0x331080=this['editor']['data']['htmlProcessor']['domConverter'],_0x56109a={'type':_0x34fe7b['_getTypeCharForViewElement'](_0x41e983),'name':_0x41e983['name'],'attributes':Array['from'](_0x41e983['getAttributes']()),'children':Array['from'](_0x41e983['getChildren']())['map'](_0x3f4d4a=>this['_getViewJson'](_0x3f4d4a))};if(_0x3bd363['is']('uiElement')&&'$comment'!=_0x3bd363['name']){const _0x4899de=_0x3bd363['render'](_0x331080['domDocument'],_0x331080);_0x56109a['children']['push'](_0x4899de['outerHTML']);}else{if(_0x3bd363['is']('rawElement')){const _0x2a743e=_0x331080['domDocument']['createElement'](_0x41e983['name']);_0x3bd363['render'](_0x2a743e,_0x331080),_0x56109a['children']['push'](_0x2a743e['innerHTML']);}}const _0x2dcbb7=Array['from'](_0x41e983['getCustomProperties']());_0x2dcbb7['length']>0x0&&(_0x56109a['customProperties']=_0x2dcbb7);const _0x1902d6=_0x41e983['getFillerOffset']();return null!==_0x1902d6&&(_0x56109a['fillerOffset']=_0x1902d6),_0x56109a;}}['_markChanges'](_0x38884b,_0x35e52d,_0x32ca08,_0x46896e,_0x5e7781){let _0x9088e=null,_0x452cbd=null,_0x15fd21=0x0;const _0x179c01=this['editor']['model'];for(let _0x592adf=0x0;_0x592adf<_0x35e52d['length'];_0x592adf++){const _0x5f43c0=this['_getVidAttributeName'](_0x35e52d[_0x592adf]),_0x2fb647=_0x35e52d[_0x592adf]['item']['getAttribute'](_0x5f43c0),_0x2a4337=_0x32ca08['get'](_0x2fb647),_0x419ec0=_0x592adf==_0x35e52d['length']-0x1;(!_0x9088e&&_0x2a4337&&(_0x9088e=_0x2a4337,_0x452cbd=_0x35e52d[_0x592adf]),_0x9088e&&(!_0x2a4337||_0x2a4337['userId']!=_0x9088e['userId']))&&(_0x47be97(_0x2a4337,P(_0x452cbd,_0x38884b,_0x179c01),P(_0x35e52d[_0x592adf],_0x38884b,_0x179c01)),_0x9088e=_0x2a4337||null,_0x452cbd=_0x2a4337?_0x35e52d[_0x592adf]:null),_0x9088e&&_0x419ec0&&_0x47be97(_0x2a4337,P(_0x452cbd,_0x38884b,_0x179c01),V(_0x35e52d[_0x592adf],_0x38884b,_0x179c01));}function _0x47be97(_0x443104,_0x3bb9b5,_0x12f963){const _0x4e1a9a=_0x9088e['userId'],_0x24860='revision:'+_0x46896e+':'+_0x4e1a9a+':'+_0x15fd21++,_0x585fe5=_0x179c01['createRange'](_0x3bb9b5,_0x12f963);_0x38884b['markers']['set'](_0x24860,_0x585fe5),null!==_0x4e1a9a&&_0x5e7781['add'](_0x4e1a9a);}}['_getVidAttributeName'](_0x4afe27){switch(_0x4afe27['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x21aeb8,_0x874517){_0x21aeb8['baseVersion']=null;for(const _0x4f10db in _0x21aeb8){const _0x25e171=_0x21aeb8[_0x4f10db];if(_0x25e171 instanceof _0x47b875){const _0x49df60=_0x874517['get'](_0x25e171['root']['rootName']);_0x21aeb8[_0x4f10db]=this['_fixPosition'](_0x25e171,_0x49df60);}if(_0x25e171 instanceof _0x1511c4){const _0xbadcc5=_0x874517['get'](_0x25e171['root']['rootName']);_0x21aeb8[_0x4f10db]=this['_fixRange'](_0x25e171,_0xbadcc5);}'root'===_0x4f10db&&(_0x21aeb8['root']=_0x874517['get'](_0x21aeb8['root']['rootName']));}}['_fixRange'](_0x2d77a9,_0x219b15){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2d77a9['start'],_0x219b15),this['_fixPosition'](_0x2d77a9['end'],_0x219b15));}['_fixPosition'](_0x592dd0,_0xd0fa2){return this['editor']['model']['createPositionFromPath'](_0xd0fa2,_0x592dd0['path'],_0x592dd0['stickiness']);}['_handleInsertOperation'](_0x36a685){const _0x132291=this['_idsRoots']['get'](_0x36a685['position']['root']['rootName']),_0x4b7a1c=this['_fixPosition'](_0x36a685['position'],_0x132291),_0x4f9311=null===_0x36a685['_authorId']?null:_0x36a685['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a4c7f=_0x4b7a1c['parent'],_0x58308b=this['_revisionId'],_0x382c18=[];for(const _0x2b18d8 of _0x36a685['nodes'])if(_0x2b18d8['is']('element'))_0x382c18['push'](this['_makeIdsRoot'](_0x2b18d8));else{for(let _0x58c8c5=0x0;_0x58c8c5<_0x2b18d8['offsetSize'];_0x58c8c5++)_0x382c18['push'](new _0x4b16e7('$text',{'vid':this['_revisionId']++}));}const _0x596d71=this['_revisionId'];for(let _0x561e59=_0x58308b;_0x561e59<_0x596d71;_0x561e59++)this['_touched']['set'](_0x561e59,{'userId':_0x4f9311});_0x5a4c7f['_insertChild'](_0x4b7a1c['offset'],_0x382c18);}['_handleMoveOperation'](_0x47d835){(_0x47d835=this['_cloneOperation'](_0x47d835,this['_idsRoots']))['_execute']();const _0x14c09d=null===_0x47d835['_authorId']?null:_0x47d835['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f01b2=_0x47d835['getMovedRangeStart'](),_0x249457=_0x1f01b2['parent'],_0x5f235d=_0x1f01b2['offset'];!function _0x4761f7(_0x11b194,_0x4799a0,_0x129682,_0x10b769){for(let _0x1058f4=_0x129682;_0x1058f4<_0x10b769;_0x1058f4++){const _0x5dec96=_0x4799a0['getChild'](_0x1058f4);_0x5dec96['is']('element','$text')?_0x11b194['set'](_0x5dec96['getAttribute']('vid'),{'userId':_0x14c09d}):(_0x11b194['set'](_0x5dec96['getAttribute']('vid_start'),{'userId':_0x14c09d}),_0x4761f7(_0x11b194,_0x5dec96,0x0,_0x5dec96['childCount']),_0x11b194['set'](_0x5dec96['getAttribute']('vid_end'),{'userId':_0x14c09d}));}}(this['_touched'],_0x249457,_0x5f235d,_0x5f235d+_0x47d835['howMany']);}['_handleMergeOperation'](_0x4d8f49){const _0x1892dc=null===(_0x4d8f49=this['_cloneOperation'](_0x4d8f49,this['_idsRoots']))['_authorId']?null:_0x4d8f49['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x133d8b=_0x4d8f49['targetPosition']['parent'],_0x25a08c=_0x4d8f49['sourcePosition']['parent'],_0x42f045=_0x133d8b['getAttribute']('vid_end'),_0x7ae6d4=_0x25a08c['getAttribute']('vid_start');_0x133d8b['_setAttribute']('vid_end',_0x25a08c['getAttribute']('vid_end')),_0x25a08c['_setAttribute']('vid_end',_0x42f045),this['_touched']['set'](_0x7ae6d4,{'userId':_0x1892dc}),this['_touched']['set'](_0x42f045,{'userId':_0x1892dc}),_0x4d8f49['_execute']();}['_handleSplitOperation'](_0x3299bb){const _0x50d401=null===(_0x3299bb=this['_cloneOperation'](_0x3299bb,this['_idsRoots']))['_authorId']?null:_0x3299bb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x26f145=_0x3299bb['graveyardPosition'],_0x114579=_0x3299bb['splitPosition']['parent'];_0x3299bb['_execute']();const _0xb6f08f=_0x114579['getAttribute']('vid_end'),_0x5070f2=_0x3299bb['insertionPosition']['nodeAfter'];if(_0x26f145){const _0x4fe5dd=_0x5070f2['getAttribute']('vid_end'),_0x3a7c92=_0x114579['getAttribute']('vid_end');_0x114579['_setAttribute']('vid_end',_0x4fe5dd),_0x5070f2['_setAttribute']('vid_end',_0x3a7c92),this['_touched']['set'](_0x114579['getAttribute']('vid_end'),{'userId':_0x50d401}),this['_touched']['set'](_0x5070f2['getAttribute']('vid_start'),{'userId':_0x50d401});}else{const _0x48ee25=this['_revisionId']++,_0x47f435=this['_revisionId']++;_0x114579['_setAttribute']('vid_end',_0x48ee25),_0x5070f2['_setAttribute']('vid_start',_0x47f435),_0x5070f2['_setAttribute']('vid_end',_0xb6f08f),this['_touched']['set'](_0x48ee25,{'userId':_0x50d401}),this['_touched']['set'](_0x47f435,{'userId':_0x50d401});}}['_handleMarkerOperation'](_0x663ccd){if(!_0x663ccd['affectsData'])return;const _0x326171=(_0x663ccd=this['_cloneOperation'](_0x663ccd,this['_diffRoots']))['oldRange']?_0x663ccd['oldRange']['root']:null,_0x340ea9=_0x663ccd['newRange']?_0x663ccd['newRange']['root']:null;_0x326171&&this['_markers']['delete'](_0x663ccd['name']),_0x340ea9&&this['_markers']['set'](_0x663ccd['name'],_0x663ccd['newRange']['clone']());const _0x45fa24=null===_0x663ccd['_authorId']?null:_0x663ccd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xeb5570=_0x663ccd['name'];if(!this['_touchedMarkers']['has'](_0xeb5570))return void this['_touchedMarkers']['set'](_0xeb5570,{'range':_0x663ccd['oldRange'],'userId':_0x45fa24});const _0xfe8ddd=this['_touchedMarkers']['get'](_0xeb5570),_0x175799=_0xfe8ddd['range'],_0x398e90=_0x663ccd['newRange'];null==_0x175799&&null==_0x398e90||_0x175799&&_0x398e90&&_0x175799['isEqual'](_0x398e90)?this['_touchedMarkers']['delete'](_0x663ccd['name']):_0xfe8ddd['userId']=_0x45fa24;}['_handleRootOperation'](_0x1c59b0,_0x225b23){this['_diffRoots']['has'](_0x1c59b0['rootName'])?this['_diffRoots']['get'](_0x1c59b0['rootName'])['_isAttached']=_0x1c59b0['isAdd']:(this['_diffRoots']['set'](_0x1c59b0['rootName'],N(_0x1c59b0['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1c59b0['rootName'],{}),_0x225b23&&this['_idsRoots']['set'](_0x1c59b0['rootName'],N(_0x1c59b0['rootName'],!0x0)));const _0x5334a4=null===_0x1c59b0['_authorId']?null:_0x1c59b0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x216b9f=this['_touchedRoots']['get'](_0x1c59b0['rootName']);_0x216b9f&&_0x216b9f['userId']===_0x5334a4?this['_touchedRoots']['delete'](_0x1c59b0['rootName']):this['_touchedRoots']['set'](_0x1c59b0['rootName'],{'userId':_0x5334a4,'isAttached':_0x1c59b0['isAdd']});}['_handleRootAttributeOperation'](_0x42544f){const _0x1cc231=this['_diffRootsAttributes']['get'](_0x42544f['root']['rootName']);null===_0x42544f['newValue']?delete _0x1cc231[_0x42544f['key']]:_0x1cc231[_0x42544f['key']]=_0x42544f['newValue'];}}function x(_0x467ac4){const _0x33c486=N(_0x467ac4['rootName'],_0x467ac4['isAttached']());for(const _0x1fde32 of _0x467ac4['getChildren']()){const _0x12a499=_0x1fde32['_clone'](!0x0);_0x33c486['_appendChild'](_0x12a499);}return _0x33c486;}function N(_0x44323d,_0x324396=!0x0){const _0x31c003=new _0x554554();return _0x31c003['rootName']=_0x44323d,_0x31c003['_isAttached']=_0x324396,_0x31c003['isAttached']=()=>_0x31c003['_isAttached'],_0x31c003;}function P(_0x4def22,_0x4ed1c4,_0x4e691a){const _0x2fd275='elementEnd'==_0x4def22['type']?_0x4e691a['createPositionAt'](_0x4def22['item'],'end'):_0x4e691a['createPositionBefore'](_0x4def22['item']);return _0x4e691a['createPositionFromPath'](_0x4ed1c4,_0x2fd275['path'],_0x2fd275['stickiness']);}function V(_0x3fb63a,_0x2daa4d,_0x281473){const _0x445ede='elementStart'==_0x3fb63a['type']?_0x281473['createPositionAt'](_0x3fb63a['item'],0x0):_0x281473['createPositionAfter'](_0x3fb63a['item']);return _0x281473['createPositionFromPath'](_0x2daa4d,_0x445ede['path'],_0x445ede['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x311e7a(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x25a5bb){super(),this['id']=_0x25a5bb['id']||_0x4a9047(),this['author']=_0x25a5bb['author'],this['type']=_0x25a5bb['type'],this['data']=_0x25a5bb['data']||{},this['rootName']=_0x25a5bb['rootName'],this['set']('createdAt',_0x25a5bb['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x44715f,_0x3ead86){this['newRevisionId']=_0x44715f,this['oldRevisionId']=_0x3ead86,this['changes']=new _0x5dbcb5();}['_setChanges'](_0x2ac959){for(const _0x19173d of _0x2ac959)this['changes']['add'](_0x19173d);}}class l extends _0x33730e{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1653cb,_0x4e7894,S,$];}constructor(_0x37e161){super(_0x37e161),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1f6994,_0x2ac593,_0x333b05)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x577dcf=>{for(const _0x4da962 of this['editor']['editing']['view']['document']['roots'])_0x333b05?_0x577dcf['removeClass']('ck-editor__editable__overlay',_0x4da962):_0x577dcf['addClass']('ck-editor__editable__overlay',_0x4da962);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5197ee=>null!==_0x5197ee),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x7ba18,_0x3dd3f1,_0x52e079)=>_0x7ba18&&_0x52e079?_0x3dd3f1['changes']['getIndex'](_0x52e079):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5a5d19,_0x197d93)=>_0x5a5d19?_0x197d93['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x4e7894);}['init'](){const _0x231cdf=this['editor'],_0x78c628=new rt(_0x231cdf,{'direction':'backward'}),_0x30fc3c=new rt(_0x231cdf,{'direction':'forward'});(_0x231cdf['commands']['add']('showPreviousChange',_0x78c628),_0x231cdf['commands']['add']('showNextChange',_0x30fc3c),_0x231cdf['commands']['add']('restoreRevision',new nt(_0x231cdf)),this['on']('change:numberOfChanges',()=>{_0x78c628['refresh'](),_0x30fc3c['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x231cdf['enableReadOnlyMode']('revision-viewer'),_0x231cdf['plugins']['has']('WidgetToolbarRepository'))&&_0x231cdf['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2b0c24){return await this['_utils']['loadRevisionData'](_0x2b0c24,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2b0c24);}async['getRevisionRootsAttributes'](_0x1516f2){return await this['_utils']['loadRevisionData'](_0x1516f2,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1516f2);}async['compare'](_0x53f992,_0x1b7a8c,_0x4ea3f0=!0x1){if(!this['isEnabled'])return;const _0x2d20f4=this['diff'],_0x18ab85=this['repository'],_0x3dec7c='string'==typeof _0x53f992?_0x18ab85['getRevision'](_0x53f992):_0x53f992,_0x171161='string'==typeof _0x1b7a8c?_0x18ab85['getRevision'](_0x1b7a8c):_0x1b7a8c,_0x624687=_0x3dec7c['id'],_0x482176=_0x171161?_0x171161['id']:null;if(!_0x4ea3f0&&this['diff']&&this['diff']['newRevisionId']===_0x624687&&this['diff']['oldRevisionId']===_0x482176)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x624687,_0x482176);const _0x5bf7c6=this['_getRevisionsRange'](_0x3dec7c,_0x171161,!0x0)['map'](_0x39c7d3=>this['_utils']['loadRevisionData'](_0x39c7d3,this['adapter']));return _0x5bf7c6['push'](new Promise(_0x5a0a37=>{setTimeout(_0x5a0a37,0x14);})),Promise['all'](_0x5bf7c6)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x104e7f=this['_getDiff'](_0x624687,_0x482176);for(const _0xd55a8f of _0x104e7f['changes'])this['_changeIdToChange']['set'](_0xd55a8f['id'],_0xd55a8f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xae8fc8=>{for(const _0x185c21 of this['editor']['model']['document']['getRootNames']())_0xae8fc8['detachRoot'](_0x185c21);for(const _0x215a71 of Object['keys'](_0x104e7f['model'])){const _0xf2afa2=_0xae8fc8['addRoot'](_0x215a71);for(const _0x185f52 of Object['keys'](_0x104e7f['attributes'][_0x215a71]))_0xae8fc8['setAttribute'](_0x185f52,_0x104e7f['attributes'][_0x215a71][_0x185f52],_0xf2afa2);_0xae8fc8['insert'](_0x104e7f['model'][_0x215a71],_0xf2afa2,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x104e7f['changes'])),this['isReady']=!0x0;})['catch'](_0x26aedf=>{console['error'](_0x26aedf),this['_cleanUp'](),_0x2d20f4&&(this['diff']=_0x2d20f4),this['isReady']=!0x0;});}['addRevisionData'](_0x586982,_0x5bb58a){const _0x38f06c=this['repository']['createRevision'](_0x586982);return _0x38f06c['on']('_update',(_0x373c33,_0x2d289b,_0x48e607)=>_0x5bb58a(_0x2d289b,_0x48e607,_0x38f06c)),this['repository']['addRevision'](_0x38f06c),_0x38f06c;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2998e8=>{for(const _0x474aaa of this['editor']['model']['document']['getRootNames']())_0x2998e8['detachRoot'](_0x474aaa);});}['_sortAndFilterDiffChanges'](_0x41c20e){const _0x36658d=[],_0xf94a42=new Map();for(const _0x3719e4 of this['editor']['model']['document']['getRootNames']()){const _0x377f3a=this['editor']['editing']['view']['getDomRoot'](_0x3719e4);if(!_0x377f3a)continue;const _0x475757=_0x377f3a['getClientRects']()['item'](0x0);_0x475757&&(_0x36658d['push'](_0x3719e4),_0xf94a42['set'](_0x3719e4,_0x475757));}return _0x36658d['sort']((_0x35bd11,_0x101664)=>{const _0x1dbaa8=_0xf94a42['get'](_0x35bd11),_0x384835=_0xf94a42['get'](_0x101664);return _0x1dbaa8['y']-_0x384835['y']||_0x1dbaa8['x']-_0x384835['x'];}),(_0x41c20e=_0x41c20e['filter'](_0x5c1cdd=>_0x36658d['includes'](_0x5c1cdd['rootName'])))['sort']((_0x2c18fc,_0x46aacb)=>_0x36658d['indexOf'](_0x2c18fc['rootName'])-_0x36658d['indexOf'](_0x46aacb['rootName'])),_0x41c20e;}['_makeTape'](_0x850fa1){const _0xf3daa7=Array['from'](_0x850fa1['markers'])['filter'](([_0x4ace85,_0x1f99cc])=>_0x4ace85['startsWith']('revision:')&&!_0x1f99cc['isCollapsed']),_0x40ed79=Array['from'](this['editor']['model']['createRangeIn'](_0x850fa1)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xf3daa7['length'])for(const _0x2dad60 of _0x40ed79){const [_0x901ce8,_0x5d3aaf]=_0xf3daa7[0x0],[,_0x3bca4f,_0x5d5fbb]=_0x901ce8['split'](':');if(_0x5d3aaf['end']['isEqual'](_0x2dad60['nextPosition'])&&_0xf3daa7['shift'](),(_0x2dad60['previousPosition']['isEqual'](_0x5d3aaf['start'])||_0x2dad60['previousPosition']['isAfter'](_0x5d3aaf['start']))&&('insertion'==_0x3bca4f?_0x2dad60['isAdded']={'userId':_0x5d5fbb}:'deletion'==_0x3bca4f&&(_0x2dad60['isRemoved']={'userId':_0x5d5fbb})),0x0==_0xf3daa7['length'])break;}return _0x40ed79;}['_refreshStartEndIndex'](_0x4e38a3){const _0x206e64=new Map();for(let _0xeb9ba9=0x0;_0xeb9ba9<_0x4e38a3['length'];_0xeb9ba9++)'text'===_0x4e38a3[_0xeb9ba9]['type']?(_0x4e38a3[_0xeb9ba9]['item']['startIndex']=_0xeb9ba9,_0x4e38a3[_0xeb9ba9]['item']['endIndex']=_0xeb9ba9):('elementStart'===_0x4e38a3[_0xeb9ba9]['type']?_0x4e38a3[_0xeb9ba9]['item']['startIndex']=_0xeb9ba9:'elementEnd'===_0x4e38a3[_0xeb9ba9]['type']&&(_0x4e38a3[_0xeb9ba9]['item']['endIndex']=_0xeb9ba9),_0x206e64['set'](_0x4e38a3[_0xeb9ba9]['id'],_0xeb9ba9));for(const _0x1ae3fc of _0x206e64['values']())'elementStart'===_0x4e38a3[_0x1ae3fc]['type']?_0x4e38a3[_0x1ae3fc]['item']['endIndex']=_0x206e64['get'](_0x4e38a3[_0x1ae3fc]['pairId']):'elementEnd'===_0x4e38a3[_0x1ae3fc]['type']&&(_0x4e38a3[_0x1ae3fc]['item']['startIndex']=_0x206e64['get'](_0x4e38a3[_0x1ae3fc]['pairId']));}['_processTape'](_0x3a9eb2){for(let _0x5185c9=0x0;_0x5185c9<_0x3a9eb2['length'];_0x5185c9++){if('elementStart'===_0x3a9eb2[_0x5185c9]['type'])_0x3a9eb2[_0x5185c9]['item']['startIndex']=_0x5185c9;else{if('elementEnd'===_0x3a9eb2[_0x5185c9]['type']){_0x3a9eb2[_0x5185c9]['item']['endIndex']=_0x5185c9;const _0x47cc1c=_0x3a9eb2[_0x5185c9]['item']['startIndex'];_0x3a9eb2[_0x47cc1c]['pairId']=_0x3a9eb2[_0x5185c9]['id'],_0x3a9eb2[_0x5185c9]['pairId']=_0x3a9eb2[_0x47cc1c]['id'];}else _0x3a9eb2[_0x5185c9]['item']['startIndex']=_0x5185c9,_0x3a9eb2[_0x5185c9]['item']['endIndex']=_0x5185c9,_0x3a9eb2[_0x5185c9]['pairId']=null;}_0x3a9eb2[_0x5185c9]['markersStart']||(_0x3a9eb2[_0x5185c9]['markersStart']=[],_0x3a9eb2[_0x5185c9]['markersEnd']=[]);}}['_markInsertions'](_0x50a0b9,_0x21f923){const _0x2641d0=_0x50a0b9['filter'](_0x52c551=>!_0x52c551['isAdded']);for(let _0x2aa0af=0x0;_0x2aa0af<_0x21f923['length'];_0x2aa0af++)_0x21f923[_0x2aa0af]['isAdded']&&(_0x2641d0[_0x2aa0af]['isAdded']=_0x21f923[_0x2aa0af]['isAdded']);}['_getDiff'](_0x2a54c6,_0x4b7492=null){const _0x293d82=this['repository']['getRevision'](_0x2a54c6),_0xfa41ae=_0x4b7492?this['repository']['getRevision'](_0x4b7492):null,_0x3bf543=this['_getRevisionsRange'](_0x293d82,_0xfa41ae),_0x148a62=_0x3bf543[_0x3bf543['length']-0x1],_0xc16551=new Map(),_0x1ad105={'model':{},'attributes':{},'changes':[]},_0x5aaecc=new Set(),_0x6b5599=new Map();for(let _0x49c109=_0x3bf543['length']-0x1;_0x49c109>=0x0;_0x49c109--){const _0x3bb39d=_0x3bf543[_0x49c109];for(const _0xb064d0 of Object['keys'](_0x3bb39d['diffData']))if(_0x3bb39d['diffData'][_0xb064d0]['attachChange']){const _0x2e9f01=_0x3bb39d['diffData'][_0xb064d0]['attachChange'];_0x2e9f01['isAttached']?(_0x5aaecc['add'](_0xb064d0),_0x6b5599['has'](_0xb064d0)&&_0x6b5599['get'](_0xb064d0)['userId']==_0x2e9f01['userId']?_0x6b5599['delete'](_0xb064d0):_0x6b5599['set'](_0xb064d0,_0x2e9f01)):_0x6b5599['has'](_0xb064d0)?(_0x5aaecc['delete'](_0xb064d0),_0x6b5599['delete'](_0xb064d0)):(_0x5aaecc['add'](_0xb064d0),_0x6b5599['set'](_0xb064d0,_0x2e9f01));}else _0x5aaecc['add'](_0xb064d0);}for(const _0x351dc1 of _0x5aaecc){const _0x20a82d=_0x6b5599['has'](_0x351dc1)&&!_0x6b5599['get'](_0x351dc1)['isAttached'];let _0x111022=_0x20a82d?_0x3bf543['length']-0x1:0x0;const _0x58bbc4=_0x20a82d?-0x1:0x1;for(;_0x3bf543[_0x111022];){const _0x5ed3a8=_0x3bf543[_0x111022];if(_0x5ed3a8['diffData'][_0x351dc1]){const _0xa0fa3d=_0x20a82d?_0x5ed3a8['diffData'][_0x351dc1]['attributesBefore']:_0x5ed3a8['diffData'][_0x351dc1]['attributesAfter'];_0x1ad105['attributes'][_0x351dc1]=_0xa0fa3d?_0x2f1e40(_0xa0fa3d):{};break;}_0x111022+=_0x58bbc4;}}for(const _0x34a978 of _0x3bf543){_0x34a978['model']={};for(const _0x235dad of _0x34a978['authors'])_0xc16551['set'](_0x235dad['id'],_0x235dad);for(const _0xaf770e of _0x5aaecc){const _0x1eb8f2=_0x34a978['diffData'][_0xaf770e]?_0x34a978['diffData'][_0xaf770e]['insertions']:'[]',_0x4456c7=_0x34a978['diffData'][_0xaf770e]?_0x34a978['diffData'][_0xaf770e]['deletions']:'[]';_0x34a978['model'][_0xaf770e]={'insertions':this['_utils']['_makeModelFromViewString'](_0x1eb8f2),'deletions':this['_utils']['_makeModelFromViewString'](_0x4456c7)};}}for(const _0x372ab8 of _0x5aaecc){let _0x104373=null,_0x57084=0x0;const _0x35f255=new Map(Array['from'](_0x293d82['model'][_0x372ab8]['insertions']['markers'])['filter'](([_0x2f11e3])=>!_0x2f11e3['startsWith']('revision:')));let _0x682689=0x0;for(const _0x5055de of _0x3bf543){const _0x44b37b=this['_makeTape'](_0x5055de['model'][_0x372ab8]['insertions']);_0x5055de==_0x293d82?(_0x104373=_0x44b37b,_0x57084=_0x104373['length'],_0x104373['forEach'](_0x400f34=>{_0x400f34['id']=_0x682689++;}),this['_processTape'](_0x104373)):this['_markInsertions'](_0x104373,_0x44b37b);const _0x38904b=_0x104373['filter'](_0x485020=>!_0x485020['isAdded'])['map'](_0x1087e5=>_0x1087e5['id']);let _0x294220=0x0;const _0x4ac6f8=this['_makeTape'](_0x5055de['model'][_0x372ab8]['deletions']);_0x4ac6f8['forEach'](_0x32bba1=>{_0x32bba1['isRemoved']?_0x32bba1['id']=_0x57084++:_0x32bba1['id']=_0x38904b[_0x294220++];}),this['_processTape'](_0x4ac6f8),this['_setDistance'](_0x104373,'isAdded'),this['_setDistance'](_0x4ac6f8,'isRemoved'),_0x5055de==_0x293d82&&this['_markMarkers'](_0x104373,_0x35f255),_0x104373=this['_joinTapes'](_0x104373,_0x4ac6f8),this['_refreshStartEndIndex'](_0x104373),this['_setDistance'](_0x104373,'isRemoved');}_0x104373=_0x104373['filter'](_0x2dc546=>!(_0x2dc546['isAdded']&&_0x2dc546['isRemoved']));const _0x4166ac=new Map(_0x148a62['model'][_0x372ab8]['deletions']['markers']),_0x48b463=new Set(_0x35f255['keys']());for(const _0x2305d9 of _0x4166ac['keys']())_0x48b463['delete'](_0x2305d9);this['_markSuggestions'](_0x104373,_0x48b463),this['_fixObsoleteTags'](_0x104373),_0x104373=this['_removeMissingPairs'](_0x104373),_0x104373=this['_markMismatchedRemovedTags'](_0x104373),_0x104373=this['_removeUnsupportedChanges'](_0x104373);const {root:_0x315a3a,changes:_0x587f56}=this['_makeModelFromTape'](_0x104373,_0xc16551,_0x372ab8);_0x1ad105['model'][_0x372ab8]=_0x315a3a;const _0x3e7bfe=_0x6b5599['get'](_0x372ab8);if(_0x3e7bfe){const _0x325b7a=_0xc16551['get'](_0x3e7bfe['userId']),_0x243e0b=new G({'author':_0x325b7a,'type':_0x3e7bfe['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x372ab8});_0x587f56['unshift'](_0x243e0b),_0x1ad105['attributes'][_0x372ab8]['revisionHistoryAttachChange']=_0x243e0b['id'];}_0x1ad105['changes']=_0x1ad105['changes']['concat'](_0x587f56);}return _0x1ad105;}['_markMarkers'](_0x2c8748,_0x3f645b){for(let _0x2afd87=0x0;_0x2afd87<_0x2c8748['length'];_0x2afd87++)for(const [_0x5c3b35,_0x743c84]of _0x3f645b)!_0x743c84['isCollapsed']&&_0x743c84['start']['isEqual'](_0x2c8748[_0x2afd87]['previousPosition'])&&_0x2c8748[_0x2afd87]['markersStart']['push'](_0x5c3b35),_0x743c84['end']['isEqual'](_0x2c8748[_0x2afd87]['nextPosition'])&&_0x2c8748[_0x2afd87]['markersEnd']['push'](_0x5c3b35);}['_joinTapes'](_0xbac21,_0x406de3){let _0x3fdf0f=[],_0x8921e4=0x0,_0x1d15f7=0x0;for(;_0x8921e4<_0xbac21['length']||_0x1d15f7<_0x406de3['length'];){const _0x307a1d=_0xbac21[_0x8921e4]||{},_0x56023e=_0x406de3[_0x1d15f7]||{};if(_0x307a1d['id']==_0x56023e['id'])_0x8921e4++,_0x1d15f7++,_0x3fdf0f['push'](_0x307a1d);else{if(_0x56023e['isRemoved']&&_0x307a1d['isAdded']){const {commonTape:_0x5923c5,iEnd:_0x190471,jEnd:_0x2b81b2}=this['_threeWayMerge'](_0xbac21,_0x8921e4,_0x406de3,_0x1d15f7);_0x3fdf0f=_0x3fdf0f['concat'](_0x5923c5),_0x8921e4=_0x190471,_0x1d15f7=_0x2b81b2;}else _0x56023e['isRemoved']?(_0x1d15f7++,_0x3fdf0f['push'](_0x56023e)):(_0x8921e4++,_0x3fdf0f['push'](_0x307a1d));}}return _0x3fdf0f;}['_markSuggestions'](_0x201a7d,_0x57e792){const _0x2f2826=[];for(let _0x4d61e8=0x0;_0x4d61e8<_0x201a7d['length'];_0x4d61e8++){for(let _0x1ddef9=0x0;_0x1ddef9<_0x201a7d[_0x4d61e8]['markersStart']['length'];_0x1ddef9++){const _0x3f5f6a=_0x201a7d[_0x4d61e8]['markersStart'][_0x1ddef9];if(!_0x57e792['has'](_0x3f5f6a))continue;const {group:_0x3de31f,type:_0x85a53c,authorId:_0x8c7f52}=_0x393555(_0x3f5f6a);'revision-suggestion'!=_0x3de31f||'insertion'!=_0x85a53c&&'deletion'!=_0x85a53c||(_0x2f2826['unshift']({'type':_0x85a53c,'name':_0x3f5f6a,'userId':_0x8c7f52}),_0x201a7d[_0x4d61e8]['markersStart']['splice'](_0x1ddef9,0x1),_0x1ddef9--);}_0x4c8610(_0x201a7d[_0x4d61e8]);for(let _0x36be3a=0x0;_0x36be3a<_0x201a7d[_0x4d61e8]['markersEnd']['length'];_0x36be3a++){const _0x14cbfd=_0x201a7d[_0x4d61e8]['markersEnd'][_0x36be3a];if(!_0x57e792['has'](_0x14cbfd))continue;const {group:_0x4c5040,type:_0x32904b}=_0x393555(_0x14cbfd);if('revision-suggestion'!=_0x4c5040||'insertion'!=_0x32904b&&'deletion'!=_0x32904b)continue;_0x201a7d[_0x4d61e8]['markersEnd']['splice'](_0x36be3a,0x1),_0x36be3a--;const _0x24c5e=_0x2f2826['findIndex'](_0xadd132=>_0xadd132['name']==_0x14cbfd);_0x24c5e>-0x1&&_0x2f2826['splice'](_0x24c5e,0x1);}}function _0x393555(_0x11ca49){const _0x508f36=_0x11ca49['split'](':');return{'group':_0x508f36[0x0],'type':_0x508f36[0x1],'subType':_0x508f36['length']>=0x5?_0x508f36[0x2]:null,'id':_0x508f36['length']<0x5?_0x508f36[0x2]:_0x508f36[0x3],'authorId':_0x508f36['length']<0x5?_0x508f36[0x3]:_0x508f36[0x4],'markerCount':0x6==_0x508f36['length']?_0x508f36[0x5]:null};}function _0x4c8610(_0x251dcd){for(let _0x410e52=0x0;_0x410e52<_0x2f2826['length'];_0x410e52++){if(_0x251dcd['isAdded']&&'insertion'==_0x2f2826[_0x410e52]['type']&&_0x251dcd['isAdded']['userId']==_0x2f2826[_0x410e52]['userId'])return _0x251dcd['isAddSuggestion']=_0x2f2826[_0x410e52],void delete _0x251dcd['isAdded'];if(!_0x251dcd['isAdded']&&!_0x251dcd['isRemoved']&&'deletion'==_0x2f2826[_0x410e52]['type'])return void(_0x251dcd['isRemoveSuggestion']=_0x2f2826[_0x410e52]);}}}['_setDistance'](_0x142a7f,_0x258866){let _0x136188=0x0,_0x5b7cee=!0x1;const _0x555dfc=new Map();for(const _0x5ec754 of _0x142a7f)_0x5ec754[_0x258866]?_0x5b7cee&&(_0x136188++,_0x5b7cee=!0x1):(_0x136188++,_0x5b7cee=!0x0),_0x555dfc['set'](_0x5ec754['id'],_0x136188);for(let _0x4674f0=0x0;_0x4674f0<_0x142a7f['length'];_0x4674f0++){if('isRemoved'==_0x258866&&_0x142a7f[_0x4674f0]['isAdded']||'isAdded'==_0x258866&&_0x142a7f[_0x4674f0]['isRemoved'])continue;if('text'==_0x142a7f[_0x4674f0]['type']){_0x142a7f[_0x4674f0]['distance']=0x0;continue;}const _0x4a7e11=_0x555dfc['get'](_0x142a7f[_0x4674f0]['pairId']),_0xcc5988=_0x555dfc['get'](_0x142a7f[_0x4674f0]['id']);_0x142a7f[_0x4674f0]['distance']=_0x4a7e11-_0xcc5988;}}['_getRevisionsRange'](_0x55135b,_0x55c460,_0x3feeef=!0x1){const _0x44b7c4=[];let _0x15f65f=this['repository']['getIndex'](_0x55135b),_0x5b0d25=this['repository']['getIndex'](_0x55c460);for(-0x1==_0x5b0d25&&(_0x5b0d25=this['repository']['_revisions']['length'],_0x3feeef=!0x1);_0x15f65f<_0x5b0d25;)_0x44b7c4['push'](this['repository']['getRevision'](_0x15f65f)),_0x15f65f++;return _0x3feeef&&_0x44b7c4['push'](this['repository']['getRevision'](_0x15f65f)),_0x44b7c4;}['_threeWayMerge'](_0x5a1d33,_0x116ffa,_0x2b639f,_0x44b27c){const _0x42e0e5=this['editor']['model']['schema'];let _0xc1ff8b=_0x116ffa;for(;_0x5a1d33[_0xc1ff8b]&&_0x5a1d33[_0xc1ff8b]['isAdded'];)_0xc1ff8b++;let _0x4b5929=_0x44b27c;for(;_0x2b639f[_0x4b5929]&&_0x2b639f[_0x4b5929]['isRemoved'];)_0x4b5929++;_0x3a3595(_0x5a1d33,_0x116ffa,_0xc1ff8b),_0x3a3595(_0x2b639f,_0x44b27c,_0x4b5929);const _0x5f53a0=_0x2b639f['slice'](_0x44b27c,_0x4b5929)['concat'](_0x5a1d33['slice'](_0x116ffa,_0xc1ff8b));return _0x5f53a0['sort']((_0x220e7c,_0x197302)=>_0x220e7c['side']!=_0x197302['side']?_0x220e7c['side']-_0x197302['side']:_0x220e7c['level']!=_0x197302['level']?_0x220e7c['level']-_0x197302['level']:_0x220e7c['distance']!=_0x197302['distance']?_0x197302['distance']-_0x220e7c['distance']:!!_0x220e7c['isAdded']!=!!_0x197302['isAdded']?-0x1==_0x220e7c['side']||0x0==_0x220e7c['side']?_0x220e7c['isAdded']?-0x1:0x1:_0x220e7c['isAdded']?0x1:-0x1:_0x220e7c['index']-_0x197302['index']),{'commonTape':_0x5f53a0,'iEnd':_0xc1ff8b,'jEnd':_0x4b5929};function _0x3a3595(_0x197e1f,_0x58fa0e,_0x349196){let _0x3c887e=-0x1,_0x495993=Number['POSITIVE_INFINITY'],_0x23fe90=!0x0;for(let _0x22de65=_0x58fa0e;_0x22de65<_0x349196;_0x22de65++)if(_0x42e0e5['isInline'](_0x197e1f[_0x22de65]['item'])||(_0x23fe90=!0x1),_0x197e1f[_0x22de65]['item']['startIndex']<_0x58fa0e&&(_0x3c887e=_0x22de65),_0x197e1f[_0x22de65]['item']['endIndex']>=_0x349196){_0x495993=_0x22de65;break;}_0x23fe90&&(_0x3c887e=_0x349196-0x1);for(let _0x521331=_0x58fa0e;_0x521331<_0x349196;_0x521331++)_0x197e1f[_0x521331]['side']=_0x521331<=_0x3c887e?-0x1:_0x521331<_0x495993?0x0:0x1,_0x197e1f[_0x521331]['index']=_0x521331;let _0xa8338f=0x0;for(let _0x5b0d4c=_0x58fa0e;_0x5b0d4c<=_0x3c887e;_0x5b0d4c++)0x0==_0x197e1f[_0x5b0d4c]['distance']?_0x197e1f[_0x5b0d4c]['level']=_0xa8338f:(_0xa8338f++,_0x197e1f[_0x5b0d4c]['level']=_0xa8338f,_0xa8338f++);for(let _0x5662ee=_0x58fa0e;_0x5662ee<_0x349196;_0x5662ee++)0x0==_0x197e1f[_0x5662ee]['side']&&(_0x197e1f[_0x5662ee]['level']=_0xa8338f);_0xa8338f=0x0;for(let _0x50d77b=_0x349196-0x1;_0x50d77b>=_0x495993;_0x50d77b--)0x0==_0x197e1f[_0x50d77b]['distance']?_0x197e1f[_0x50d77b]['level']=_0xa8338f:(_0xa8338f--,_0x197e1f[_0x50d77b]['level']=_0xa8338f,_0xa8338f--);}}['_fixObsoleteTags'](_0x248e8d){const _0x41b764=new Map(),_0x25d32f=this['editor']['model']['schema'];for(let _0x5bea31=0x1;_0x5bea31<_0x248e8d['length'];_0x5bea31++){let _0x3c85b3,_0x5c0453,_0x24e220;const _0x5a5f57=_0x248e8d[_0x5bea31],_0x4d38bb=_0x248e8d[_0x5bea31-0x1];if('text'==_0x5a5f57['type'])continue;if(_0x5a5f57['type']!=_0x4d38bb['type'])continue;if(!_0x25d32f['isBlock'](_0x4d38bb['item'])||_0x25d32f['isLimit'](_0x4d38bb['item']))continue;if(!_0x25d32f['isBlock'](_0x5a5f57['item'])||_0x25d32f['isLimit'](_0x5a5f57['item']))continue;if((_0x248e8d[_0x5bea31]['isAdded']||_0x248e8d[_0x5bea31]['isAddSuggestion'])&&_0x248e8d[_0x5bea31-0x1]['isRemoved'])_0x3c85b3=_0x248e8d[_0x5bea31],_0x5c0453=_0x248e8d[_0x5bea31-0x1],_0x24e220=_0x5bea31-0x1;else{if(!_0x248e8d[_0x5bea31]['isRemoved']||!_0x248e8d[_0x5bea31-0x1]['isAdded']&&!_0x248e8d[_0x5bea31-0x1]['isAddSuggestion'])continue;_0x3c85b3=_0x248e8d[_0x5bea31-0x1],_0x5c0453=_0x248e8d[_0x5bea31],_0x24e220=_0x5bea31;}const _0x156f8d=_0x3c85b3['level']==_0x5c0453['level'],_0x41f293=Math['abs'](_0x3c85b3['level'])<Math['abs'](_0x5c0453['level'])&&0x0==_0x5c0453['distance'];(_0x156f8d||_0x41f293)&&(_0x41b764['set'](_0x5c0453['id'],_0x3c85b3['id']),_0x248e8d['splice'](_0x24e220,0x1),_0x5bea31--,_0x3c85b3['isAdded']=!0x1);}for(let _0x59eaa6=0x0;_0x59eaa6<_0x248e8d['length'];_0x59eaa6++)_0x41b764['has'](_0x248e8d[_0x59eaa6]['pairId'])&&(_0x248e8d[_0x59eaa6]['pairId']=_0x41b764['get'](_0x248e8d[_0x59eaa6]['pairId']));}['_removeMissingPairs'](_0x37c407){const _0x31ed99=new Set(_0x37c407['map'](_0x1b455b=>_0x1b455b['id']));for(let _0x4c9169=0x0;_0x4c9169<_0x37c407['length'];_0x4c9169++)_0x31ed99['has'](_0x37c407[_0x4c9169]['pairId'])||0x0==_0x37c407[_0x4c9169]['distance']||(_0x37c407[_0x4c9169]['isIncorrect']=!0x0);return _0x37c407['filter'](_0x49737b=>!_0x49737b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4309be){const _0x1169d9=new Set();for(let _0x514f2f=0x0;_0x514f2f<_0x4309be['length'];_0x514f2f++){if(_0x1169d9['has'](_0x4309be[_0x514f2f]['id'])&&_0x4309be[_0x514f2f]['isRemoved']&&(_0x4309be[_0x514f2f]['isIncorrect']=!0x0),_0x4309be[_0x514f2f]['isIncorrect'])continue;if(0x0==_0x4309be[_0x514f2f]['distance'])continue;if('elementStart'!=_0x4309be[_0x514f2f]['type'])continue;if(null==_0x4309be[_0x514f2f]['pairId'])continue;let _0x5257a6=_0x514f2f+0x1,_0x122488=0x0;for(;_0x4309be[_0x5257a6]['id']!=_0x4309be[_0x514f2f]['pairId'];)'elementStart'==_0x4309be[_0x5257a6]['type']?_0x122488++:'elementEnd'==_0x4309be[_0x5257a6]['type']&&_0x122488--,_0x5257a6++;if(0x0!=_0x122488){if(_0x4309be[_0x514f2f]['isRemoved'])_0x4309be[_0x514f2f]['isIncorrect']=!0x0;else{for(;_0x5257a6!=_0x514f2f;)_0x4309be[_0x5257a6]['isRemoved']&&0x0!=_0x4309be[_0x5257a6]['distance']&&(_0x4309be[_0x5257a6]['isIncorrect']=!0x0,_0x1169d9['add'](_0x4309be[_0x5257a6]['pairId'])),_0x5257a6--;}}}return _0x4309be['filter'](_0x1abc84=>!_0x1abc84['isIncorrect']);}['_removeUnsupportedChanges'](_0x48852a){const _0x2bf8f2=this['editor']['model']['schema'];for(let _0x2d33fb=0x0;_0x2d33fb<_0x48852a['length'];_0x2d33fb++){if(!(_0x48852a[_0x2d33fb]['isAdded']||_0x48852a[_0x2d33fb]['isAddSuggestion']||_0x48852a[_0x2d33fb]['isRemoved']||_0x48852a[_0x2d33fb]['isRemoveSuggestion']))continue;if(0x0==_0x48852a[_0x2d33fb]['distance'])continue;const _0xc57fa6=_0x48852a[_0x2d33fb]['item'];_0x2bf8f2['isBlock'](_0xc57fa6)||_0x2bf8f2['isLimit'](_0xc57fa6)||(_0x48852a[_0x2d33fb]['isAdded']&&delete _0x48852a[_0x2d33fb]['isAdded'],_0x48852a[_0x2d33fb]['isAddSuggestion']&&delete _0x48852a[_0x2d33fb]['isAddSuggestion'],_0x48852a[_0x2d33fb]['isRemoveSuggestion']&&delete _0x48852a[_0x2d33fb]['isRemoveSuggestion'],_0x48852a[_0x2d33fb]['isRemoved']&&(_0x48852a[_0x2d33fb]['isIncorrect']=!0x0));}return _0x48852a['filter'](_0x49fb39=>!_0x49fb39['isIncorrect']);}['_makeModelFromTape'](_0x50b829,_0x4998ac,_0x17e422){const _0x422b0c=new _0x554554(),_0x5a8024=[],_0xbc7d1c=new Map(),_0x3924ae=this['editor']['model'],_0x545f5d=_0x3924ae['schema'],_0x8a0f61=[_0x422b0c],_0xe7e5df={},_0x2aa367={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x55bdbf=null;const _0x23fa56=[0x0];for(let _0x33f168=0x0;_0x33f168<_0x50b829['length'];_0x33f168++)if('elementStart'===_0x50b829[_0x33f168]['type']){_0x50b829[_0x33f168]['previousPosition']=_0x3924ae['createPositionFromPath'](_0x422b0c,_0x23fa56);const _0x3fedac=new _0x4b16e7(_0x50b829[_0x33f168]['item']['name'],_0x50b829[_0x33f168]['item']['getAttributes']());_0x8a0f61[0x0]['_appendChild'](_0x3fedac),_0x23fa56['push'](0x0),_0x8a0f61['unshift'](_0x3fedac),_0x50b829[_0x33f168]['nextPosition']=_0x3924ae['createPositionFromPath'](_0x422b0c,_0x23fa56);}else'elementEnd'===_0x50b829[_0x33f168]['type']?(_0x8a0f61['shift'](),_0x50b829[_0x33f168]['previousPosition']=_0x3924ae['createPositionFromPath'](_0x422b0c,_0x23fa56),_0x23fa56['pop'](),_0x23fa56[_0x23fa56['length']-0x1]++,_0x50b829[_0x33f168]['nextPosition']=_0x3924ae['createPositionFromPath'](_0x422b0c,_0x23fa56)):(_0x50b829[_0x33f168]['previousPosition']=_0x3924ae['createPositionFromPath'](_0x422b0c,_0x23fa56),_0x55bdbf?_0x55bdbf['_data']+=_0x50b829[_0x33f168]['item']['data']:_0x55bdbf=new _0x3247b0(_0x50b829[_0x33f168]['item']['data'],_0x50b829[_0x33f168]['item']['getAttributes']()),_0x50b829[_0x33f168+0x1]&&'text'===_0x50b829[_0x33f168+0x1]['type']&&_0x41beaa(_0x55bdbf,_0x50b829[_0x33f168+0x1]['item'])||(_0x8a0f61[0x0]['_appendChild'](_0x55bdbf),_0x55bdbf=null),_0x23fa56[_0x23fa56['length']-0x1]+=_0x50b829[_0x33f168]['item']['offsetSize'],_0x50b829[_0x33f168]['nextPosition']=_0x3924ae['createPositionFromPath'](_0x422b0c,_0x23fa56));for(let _0x38c2ab=0x0;_0x38c2ab<_0x50b829['length'];_0x38c2ab++){const _0x12443c=_0x50b829[_0x38c2ab]['previousPosition'],_0x4763ec=_0x50b829[_0x38c2ab]['nextPosition'];for(const _0xd433b2 of _0x50b829[_0x38c2ab]['markersStart'])_0xbc7d1c['set'](_0xd433b2,{'start':_0x12443c,'end':null});_0x343665('isRemoveSuggestion',_0x38c2ab,_0x12443c,_0x4763ec),_0x343665('isAddSuggestion',_0x38c2ab,_0x12443c,_0x4763ec),_0x343665('isRemoved',_0x38c2ab,_0x12443c,_0x4763ec),_0x343665('isAdded',_0x38c2ab,_0x12443c,_0x4763ec);for(const _0xd8eedd of _0x50b829[_0x38c2ab]['markersEnd']){const _0x15dbbc=_0xbc7d1c['get'](_0xd8eedd);_0x15dbbc?_0x15dbbc['end']=_0x4763ec:_0xbc7d1c['set'](_0xd8eedd,{'start':_0x4763ec,'end':_0x4763ec});}}for(const [_0x15a718,_0x2d3b0d]of _0xbc7d1c){const _0x5f490b=this['editor']['model']['createRange'](_0x2d3b0d['start'],_0x2d3b0d['end']);_0x422b0c['markers']['set'](_0x15a718,_0x5f490b);}return _0x5a8024['sort']((_0x8db193,_0x51ce54)=>{const _0x4c3bde=_0x422b0c['markers']['get']('revision:'+_0x8db193['id']),_0x40f4bb=_0x422b0c['markers']['get']('revision:'+_0x51ce54['id']);return _0x4c3bde['start']['isBefore'](_0x40f4bb['start'])?-0x1:_0x4c3bde['start']['isAfter'](_0x40f4bb['start'])?0x1:_0x4c3bde['end']['isBefore'](_0x40f4bb['end'])?-0x1:_0x4c3bde['end']['isAfter'](_0x40f4bb['end'])?0x1:'add'===_0x8db193['type']?-0x1:0x1;}),{'root':_0x422b0c,'changes':_0x5a8024};function _0x343665(_0x27722f,_0x5a491b,_0x36befa,_0x4195fd){const _0x55fcca=!!_0x50b829[_0x5a491b][_0x27722f],_0x2d86ba=_0x55fcca?_0x50b829[_0x5a491b][_0x27722f]['userId']:null,_0x2247a3=_0x5a491b===_0x50b829['length']-0x1,_0x435df4=_0x2aa367[_0x27722f][0x0],_0x45e8bf=_0x545f5d['isObject'](_0x50b829[_0x5a491b]['item']);!_0xe7e5df[_0x27722f]&&_0x55fcca?_0xe7e5df[_0x27722f]={'start':_0x36befa,'tapeItem':_0x50b829[_0x5a491b],'userId':_0x2d86ba,'type':_0x27722f}:_0xe7e5df[_0x27722f]&&!_0x55fcca?(_0xe7e5df[_0x27722f]['end']=_0x36befa,_0x34e740(_0xe7e5df[_0x27722f]),_0xe7e5df[_0x27722f]=null):_0xe7e5df[_0x27722f]&&_0x55fcca&&_0xe7e5df[_0x27722f]['userId']!==_0x2d86ba&&(_0xe7e5df[_0x27722f]['end']=_0x36befa,_0x435df4&&_0x435df4['userId']===_0xe7e5df[_0x27722f]['userId']||_0x34e740(_0xe7e5df[_0x27722f]),_0xe7e5df[_0x27722f]={'start':_0x36befa,'tapeItem':_0x50b829[_0x5a491b],'userId':_0x2d86ba,'type':_0x27722f}),_0xe7e5df[_0x27722f]&&_0x45e8bf&&('elementStart'!==_0x50b829[_0x5a491b]['type']||_0x435df4&&_0x435df4['userId']===_0x2d86ba||_0x2aa367[_0x27722f]['unshift']({'userId':_0x2d86ba,'object':_0x50b829[_0x5a491b]['item'],'change':_0xe7e5df[_0x27722f]}),'elementEnd'===_0x50b829[_0x5a491b]['type']&&_0x435df4&&_0x435df4['object']===_0x50b829[_0x5a491b]['item']&&(_0x2aa367[_0x27722f]['shift'](),_0xe7e5df[_0x27722f]=_0x435df4['change'])),_0xe7e5df[_0x27722f]&&_0x2247a3&&(_0xe7e5df[_0x27722f]['end']=_0x4195fd,_0x34e740(_0xe7e5df[_0x27722f]),_0xe7e5df[_0x27722f]=null);}function _0x34e740({start:_0x3e6e15,end:_0x2ae5a6,tapeItem:_0x4548c0,userId:_0x886e0d,type:_0x57967b}){const _0x275905=_0x4548c0['item'],_0x5b385d=_0x3924ae['schema']['isBlock'](_0x275905)&&!_0x3924ae['schema']['isLimit'](_0x275905),_0x550bb9=_0x3e6e15['nodeAfter']==_0x2ae5a6['parent']&&_0x2ae5a6['isAtStart'];if(_0x5b385d&&_0x550bb9)return;const _0x46675d=_0x3924ae['createRange'](_0x3e6e15,_0x2ae5a6),_0x103aee=_0x4998ac['get'](_0x886e0d),_0x352e27=new G({'author':_0x103aee,'type':'isAdded'==_0x57967b||'isAddSuggestion'==_0x57967b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x57967b||'isRemoveSuggestion'==_0x57967b},'createdAt':new Date(),'rootName':_0x17e422});_0x5a8024['push'](_0x352e27),_0x422b0c['markers']['set']('revision:'+_0x352e27['id'],_0x46675d);}function _0x41beaa(_0x104371,_0x11e903){const _0x10c330=_0x104371['getAttributes'](),_0x5f3bb0=_0x11e903['getAttributes']();for(const _0x1cf804 of _0x10c330){if(_0x1cf804[0x1]!==_0x11e903['getAttribute'](_0x1cf804[0x0]))return!0x1;_0x5f3bb0['next']();}return _0x5f3bb0['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4491d8=>{const _0x1be1e8=_0x4491d8['markerName']['split'](':')[0x1],_0x3bdb63=this['_getChangeFromId'](_0x1be1e8);if(!_0x3bdb63)return null;const _0x3f56d7='add'==_0x3bdb63['type']?'insertion':'deletion',_0x20d2af=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3f56d7];return _0x3bdb63['data']['isSuggestion']&&_0x20d2af['push']('ck-suggestion-marker-'+_0x3f56d7+'-new'),this['activeChange']==_0x3bdb63&&_0x20d2af['push']('ck-suggestion-marker--active'),{'classes':_0x20d2af,'attributes':{'data-change-id':_0x1be1e8}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x397f28=>{_0x397f28['on']('element:pre',(_0x3fe6bf,_0x37f8a8,_0x4694a9)=>{const _0x181fe0=_0x37f8a8['viewItem']['getChild'](0x0);if(!_0x181fe0||!_0x181fe0['is']('element','code'))return;if(!_0x4694a9['consumable']['consume'](_0x181fe0,{'attributes':['vid_start','vid_end']}))return;const _0x13d4d2=_0x37f8a8['modelRange']['start']['nodeAfter'];_0x4694a9['writer']['setAttribute']('vid_start',_0x181fe0['getAttribute']('vid_start'),_0x13d4d2),_0x4694a9['writer']['setAttribute']('vid_end',_0x181fe0['getAttribute']('vid_end'),_0x13d4d2);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xd85bc9=>{_0xd85bc9['on']('element',(_0xabb7a1,_0x48a3f7,_0x1592e2)=>{if(!_0x1592e2['consumable']['consume'](_0x48a3f7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x48a3f7['modelRange']['isCollapsed'])return;const _0x35450e=_0x48a3f7['modelRange']['start']['nodeAfter'];_0x35450e['hasAttribute']('vid_start')||_0x35450e['hasAttribute']('vid')||(_0x1592e2['writer']['setAttribute']('vid_start',_0x48a3f7['viewItem']['getAttribute']('vid_start'),_0x35450e),_0x1592e2['writer']['setAttribute']('vid_end',_0x48a3f7['viewItem']['getAttribute']('vid_end'),_0x35450e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2dd1ec=>_0x2dd1ec['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x52ec02,[,_0x224d43])=>{['vid_start','vid_end','vid']['includes'](_0x224d43)&&(_0x52ec02['return']=!0x0,_0x52ec02['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4ce388=>{_0x4ce388['on']('attribute:vid',(_0x7f6aa9,_0x3b290e,_0x152b52)=>{if('\x20'!=_0x3b290e['item']['data']||_0x3b290e['item']['parent']['maxOffset']>0x1)return;if(!_0x152b52['consumable']['consume'](_0x3b290e['item'],_0x7f6aa9['name']))return;const _0x112265=_0x152b52['writer'],_0x9c0ac8=_0x152b52['mapper']['toViewRange'](_0x3b290e['range']);_0x112265['wrap'](_0x9c0ac8,_0x112265['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x428b6b){const _0x5f24b9=_0x428b6b['plugins']['get']('RevisionViewer');return(_0x5dff8b,_0xfcffae,_0x539dbc)=>{const _0x157041=_0xfcffae['markerName']['split'](':')[0x1],_0x14adf6=_0x5f24b9['_getChangeFromId'](_0x157041);if(!_0x14adf6)return null;const _0xe1a3cf='add'==_0x14adf6['type']?'split':'merge';if(!_0x539dbc['consumable']['test'](_0xfcffae['markerRange'],_0x5dff8b['name']))return;const _0x1c3f06=_0xfcffae['markerRange']['getWalker'](),_0x5f1f49=_0xfcffae['markerRange']['start'],_0x1500b9=_0x428b6b['model']['schema'];let _0x4deefe=null,_0x3f3727=null,_0x49f358=!0x1,_0x2345e9=!0x1;for(const _0x35c4cf of _0x1c3f06){const _0x6c8c07=_0x35c4cf['item'];_0x49f358=_0x49f358||_0x1500b9['isContent'](_0x6c8c07);const _0x5e62b2=_0x539dbc['mapper']['toViewElement'](_0x6c8c07);if(_0x5e62b2&&_0x5e62b2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x35c4cf['type']&&(_0x1500b9['isBlock'](_0x6c8c07)&&!_0x1500b9['isLimit'](_0x6c8c07)&&(_0x6c8c07['nextSibling']||_0x5f1f49['isAtEnd']?_0x4deefe&&_0x4deefe['parent']==_0x6c8c07||(_0x4deefe=_0x6c8c07,_0x142ed6(_0x35c4cf['previousPosition']),_0x2345e9=!0x0):_0x3f3727=_0x3f3727||_0x35c4cf['previousPosition']));}function _0x142ed6(_0xa4b7e1){const _0x48c5c9=_0x539dbc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xe1a3cf}),_0x1e2bbc=_0x539dbc['mapper']['toViewPosition'](_0xa4b7e1);_0x14adf6['data']['isSuggestion']&&_0x539dbc['writer']['addClass']('ck-suggestion-marker-'+_0xe1a3cf+'-new',_0x48c5c9),_0x5f24b9['activeChange']==_0x14adf6&&_0x539dbc['writer']['addClass']('ck-suggestion-marker--active',_0x48c5c9),_0x539dbc['writer']['insert'](_0x1e2bbc,_0x48c5c9),_0x539dbc['mapper']['bindElementToMarker'](_0x48c5c9,_0xfcffae['markerName']);}_0x49f358||_0x2345e9||!_0x3f3727||_0x142ed6(_0x3f3727);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x9046ba,_0x5c6df0,_0x2bf278)=>{const _0x470bea=_0x2bf278['mapper']['markerNameToElements'](_0x5c6df0['markerName']);if(_0x470bea){for(const _0x416d62 of _0x470bea)(_0x416d62['hasClass']('ck-suggestion-marker-split')||_0x416d62['hasClass']('ck-suggestion-marker-merge'))&&(_0x2bf278['mapper']['unbindElementFromMarkerName'](_0x416d62,_0x5c6df0['markerName']),_0x2bf278['writer']['remove'](_0x416d62));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x49be28,_0x380ee2,_0x122d2c)=>{const _0x4fee8c=_0x380ee2['markerName']['split'](':')[0x1],_0x30c51d=this['_getChangeFromId'](_0x4fee8c);if(!_0x30c51d)return null;const _0x332d74='add'==_0x30c51d['type']?'split':'merge';if(_0x122d2c['consumable']['test'](_0x380ee2['markerRange'],_0x49be28['name']))for(const _0x45ae1c of _0x380ee2['markerRange']['getItems']()){if(!_0x45ae1c['is']('element','softBreak'))continue;const _0x1aba8e=_0x122d2c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x332d74}),_0x543000=_0x122d2c['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x45ae1c));_0x30c51d['data']['isSuggestion']&&_0x122d2c['writer']['addClass']('ck-suggestion-marker-'+_0x332d74+'-new',_0x1aba8e),this['activeChange']==_0x30c51d&&_0x122d2c['writer']['addClass']('ck-suggestion-marker--active',_0x1aba8e),_0x122d2c['writer']['insert'](_0x543000,_0x1aba8e),_0x122d2c['mapper']['bindElementToMarker'](_0x1aba8e,_0x380ee2['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x12f6e5=>{for(const _0x4044e4 of this['editor']['model']['document']['getRootNames']()){const _0x24af86=this['editor']['model']['document']['getRoot'](_0x4044e4),_0x1f8071=this['editor']['editing']['view']['document']['getRoot'](_0x4044e4);if(_0x1f8071){const _0x2a67db=_0x24af86['getAttribute']('revisionHistoryAttachChange');if(_0x12f6e5['removeAttribute']('data-change-id',_0x1f8071),_0x12f6e5['removeClass']('ck-revision-history-root-add',_0x1f8071),_0x12f6e5['removeClass']('ck-revision-history-root-remove',_0x1f8071),_0x12f6e5['removeClass']('ck-revision-history-root--active',_0x1f8071),_0x2a67db){const _0x366fe9=this['_getChangeFromId'](_0x2a67db);if(!_0x366fe9)return null;_0x12f6e5['setAttribute']('data-change-id',_0x2a67db,_0x1f8071),_0x12f6e5['addClass']('ck-revision-history-root-'+_0x366fe9['type'],_0x1f8071),this['activeChange']==_0x366fe9&&_0x12f6e5['addClass']('ck-revision-history-root--active',_0x1f8071);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x258286=>'revision-comment:'+_0x258286,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x7da00e=>'revision-suggestion:'+_0x7da00e,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x26906b=>({'name':'suggestion:'+_0x26906b,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x49896b=>{const _0x46b624=_0x49896b['markerName']['split'](':')[0x1];return'insertion'!=_0x46b624&&'deletion'!=_0x46b624?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x46b624]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x488258,_0x316ca4,_0x3081fc)=>{const _0x1fdc83=_0x3081fc['mapper']['markerNameToElements'](_0x316ca4['markerName']);if(_0x1fdc83){for(const _0x252494 of _0x1fdc83)_0x252494['is']('uiElement')&&(_0x3081fc['mapper']['unbindElementFromMarkerName'](_0x252494,_0x316ca4['markerName']),_0x3081fc['writer']['remove'](_0x252494));}},{'priority':'high'});}['_getChangeFromId'](_0xb17b61){return this['_changeIdToChange']['get'](_0xb17b61);}['_getViewForChange'](_0x36e42b){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x36e42b),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x22196a,_0x1404bb,_0x456ee0,_0x1bd7b8)=>{_0x1bd7b8&&this['_balloon']['remove'](_0x1bd7b8),_0x456ee0&&(this['_balloon']['add']({'view':_0x456ee0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2cc7ee=this['editor']['editing'],_0x322361=this['_getChangeFromId'](_0x456ee0['changeId']);let _0x2d4221;if(_0x322361['data']['isOnRoot']){const _0x11d7aa=_0x2cc7ee['view']['getDomRoot'](_0x322361['rootName']);_0x2d4221=Array['from'](_0x11d7aa['getClientRects']());}else{const _0x1e6454=this['editor']['model']['markers']['get']('revision:'+_0x456ee0['changeId']);_0x2d4221=Array['from'](_0x2cc7ee['mapper']['markerNameToElements'](_0x1e6454['name']))['map'](_0x320485=>_0x2cc7ee['view']['domConverter']['mapViewToDom'](_0x320485))['map'](_0x37fea2=>Array['from'](_0x37fea2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2d4221[0x0];return _0x2d4221['find'](_0x59bf22=>_0x59bf22['top']-0x3<=this['_activeViewTarget']['y']&&_0x59bf22['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x59bf22['left']-0x3<=this['_activeViewTarget']['x']&&_0x59bf22['right']+0x3>=this['_activeViewTarget']['x'])||_0x2d4221[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4adc0e,_0x646adc,_0x1cb36a,_0x516c68)=>{this['activeView']=_0x1cb36a?this['_getViewForChange'](_0x1cb36a):null,this['editor']['model']['change'](()=>{const _0x374238=this['editor']['editing'];_0x516c68&&(_0x516c68['data']['isOnRoot']?_0x374238['view']['change'](_0x2778af=>{_0x2778af['removeClass']('ck-revision-history-root--active',_0x374238['view']['document']['getRoot'](_0x516c68['rootName']));}):_0x374238['reconvertMarker']('revision:'+_0x516c68['id'])),_0x1cb36a&&(_0x1cb36a['data']['isOnRoot']?_0x374238['view']['change'](_0xd994dc=>{_0xd994dc['addClass']('ck-revision-history-root--active',_0x374238['view']['document']['getRoot'](_0x1cb36a['rootName']));}):_0x374238['reconvertMarker']('revision:'+_0x1cb36a['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xe00d3d,_0xeabf17)=>{if(this['activeChange'])return;const _0x195bb9=this['_findChangeIdFromDomTarget'](_0xeabf17['target']),_0x216c26=this['_changeIdToChange']['get'](_0x195bb9);_0x216c26?(this['_activeViewTarget']={'x':_0xeabf17['domEvent']['x'],'y':_0xeabf17['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x216c26)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0xa61517,_0x480b1b)=>{const _0x361877=this['_findChangeIdFromDomTarget'](_0x480b1b['target']),_0x488c64=this['_changeIdToChange']['get'](_0x361877);_0x488c64?(this['_activeViewTarget']={'x':_0x480b1b['domEvent']['x'],'y':_0x480b1b['domEvent']['y']},_0x488c64===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x488c64):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x418322){do{const _0x32208a=_0x418322['getAttribute']('data-change-id');if(_0x32208a)return _0x32208a;_0x418322=_0x418322['parent'];}while(_0x418322);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x102e15=>{for(const _0x6896da of this['editor']['model']['markers'])_0x102e15['removeMarker'](_0x6896da);});}}function Q(_0x493faf,_0x3beed5){return(_0x35befd,_0x158dae,_0x4b4a92)=>{if(!_0x4b4a92['consumable']['test'](_0x158dae['markerRange'],_0x35befd['name']))return;const _0x356d4a=_0x158dae['markerRange']['getWalker'](),_0x104b6e=_0x158dae['markerRange']['start'],_0x9ca963=_0x493faf['model']['schema'];let _0x353f10=null,_0x25944e=null,_0x544348=!0x1,_0x3c6727=!0x1;for(const _0x4f0b0b of _0x356d4a){const _0x542494=_0x4f0b0b['item'];_0x544348=_0x544348||_0x9ca963['isContent'](_0x542494);const _0xac222e=_0x4b4a92['mapper']['toViewElement'](_0x542494);if(_0xac222e&&_0xac222e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4f0b0b['type']&&(_0x9ca963['isBlock'](_0x542494)&&!_0x9ca963['isLimit'](_0x542494)&&(_0x542494['nextSibling']||_0x104b6e['isAtEnd']?_0x353f10&&_0x353f10['parent']==_0x542494||(_0x353f10=_0x542494,_0x13ba93(_0x4f0b0b['previousPosition']),_0x3c6727=!0x0):_0x25944e=_0x25944e||_0x4f0b0b['previousPosition']));}function _0x13ba93(_0x585291){const _0x18e03c=_0x4b4a92['mapper']['toViewPosition'](_0x585291),_0x301497=_0x4b4a92['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3beed5});_0x4b4a92['writer']['insert'](_0x18e03c,_0x301497),_0x4b4a92['mapper']['bindElementToMarker'](_0x301497,_0x158dae['markerName']);}_0x544348||_0x3c6727||!_0x25944e||_0x13ba93(_0x25944e);};}class nt extends _0x4a50ae{constructor(_0x30587a){super(_0x30587a);const _0x5b6070=_0x30587a['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x5b6070,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5b6070,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5f256d=this['editor'],_0x58661b=_0x5f256d['plugins']['get'](l),_0x32b8c7=_0x58661b['isReady']?_0x58661b['diff']['newRevisionId']:null;_0x5f256d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x32b8c7);}['refresh'](){const {isReady:_0x3787aa,isEnabled:_0x14dd38,repository:_0x3c555c,diff:_0x41fb97}=this['editor']['plugins']['get'](l),_0x523db0=_0x41fb97&&_0x3c555c['getLaterVisibleRevision'](_0x41fb97['newRevisionId']);this['isEnabled']=_0x3787aa&&_0x14dd38&&Boolean(_0x523db0);}}class rt extends _0x4a50ae{['_step'];constructor(_0x3d26f2,{direction:_0x517f35}){super(_0x3d26f2);const _0x1737c9=_0x3d26f2['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x517f35?0x1:-0x1,this['listenTo'](_0x1737c9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1737c9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1737c9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2c0140=this['editor'],_0x4f079d=_0x2c0140['plugins']['get'](l),{isNavigationMode:_0x49213b,currentChangeNumber:_0x241bdf}=_0x4f079d;let _0x4588e9;if(_0x4f079d['activeChange']=_0x49213b?_0x4f079d['diff']['changes']['get'](_0x241bdf+this['_step']):_0x4f079d['diff']['changes']['first'],_0x4f079d['activeChange']['data']['isOnRoot'])_0x4588e9=_0x2c0140['editing']['view']['getDomRoot'](_0x4f079d['activeChange']['rootName']);else{const _0x5cfbc=_0x2c0140['model']['markers']['get']('revision:'+_0x4f079d['activeChange']['id']);_0x4588e9=_0x32f8ae(_0x2c0140['editing'],_0x5cfbc);}_0x8db709({'target':_0x4588e9,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2d265f,currentChangeNumber:_0x399971,numberOfChanges:_0x4f1f10,isReady:_0x5327c1,isEnabled:_0x49186e}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x49186e&&_0x5327c1&&_0x4f1f10)&&(!_0x2d265f||(0x1===this['_step']?_0x399971<_0x4f1f10-0x1:_0x399971>0x0));}}class Ri extends _0x5dfb47{constructor(_0x2fac4a){super(_0x2fac4a);const _0x8f3613=this['bindTemplate'],_0x2ee4cb=new _0x64e21(_0x2fac4a),_0x574fef=new _0x64e21(_0x2fac4a);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',(_0x578636,_0x385a5b)=>_0x578636&&_0x385a5b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x263c4e,_0x3b25d4,_0x549142,_0x27b330)=>{if(!_0x263c4e)return R(_0x2fac4a,'Loading...');if(!_0x549142)return R(_0x2fac4a,'No\x20changes');const _0x1e482f=R(_0x2fac4a,'NUMBER_OF_CHANGES',_0x549142);return _0x27b330?R(_0x2fac4a,'X_OF_Y_CHANGES',[_0x3b25d4+0x1,_0x549142]):_0x1e482f;}),_0x2ee4cb['set']({'label':R(_0x2fac4a,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x56308f}),_0x574fef['set']({'label':R(_0x2fac4a,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x130ff6}),_0x2ee4cb['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x574fef['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2ee4cb['on']('execute',()=>this['fire']('execute','backward')),_0x574fef['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',_0x8f3613['if']('_isStatusLabelVisible','ck-hidden',_0x56613b=>!_0x56613b)]},'children':[{'text':_0x8f3613['to']('isNavigationMode',_0x34237d=>_0x34237d?R(_0x2fac4a,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x2fac4a,'Total')+':\x20')}]},{'text':_0x8f3613['to']('_statusText')}]},new _0x4d5781(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2ee4cb,_0x574fef]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x33730e{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4394a0=this['editor']['editing']['view'];_0x4394a0['change'](_0x116b2a=>{for(const _0x3ecdd9 of _0x4394a0['document']['roots'])_0x116b2a['addClass'](ge,_0x3ecdd9);});}['hide'](){const _0x4ec0fe=this['editor']['editing']['view'];_0x4ec0fe['change'](_0x4bb16c=>{for(const _0x220294 of _0x4ec0fe['document']['roots'])_0x4bb16c['removeClass'](ge,_0x220294);});}}class u extends _0x33730e{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0xdc841d=this['editor'],_0xd146ab=_0xdc841d['plugins']['get'](l),_0x4bb550=_0xdc841d['plugins']['get'](ji);_0xdc841d['ui']['componentFactory']['add']('exitToEditing',_0x189926=>{const _0x5268bb=new _0x64e21(_0x189926);return _0x5268bb['set']({'label':R(_0x189926,'Back\x20to\x20editing'),'icon':_0x1f7779,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5268bb,'execute',()=>{_0xdc841d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5268bb;}),_0xdc841d['ui']['componentFactory']['add']('restoreRevision',_0x35499=>{const _0x4537ce=new _0x64e21(_0x35499);return _0x4537ce['set']({'label':R(_0x35499,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4537ce['bind']('isEnabled')['to'](_0xdc841d['commands']['get']('restoreRevision')),this['listenTo'](_0x4537ce,'execute',()=>_0xdc841d['execute']('restoreRevision')),_0x4537ce;}),_0xdc841d['ui']['componentFactory']['add']('changesNavigation',_0x11d9b6=>{const _0x1159a2=new Ri(_0x11d9b6),_0x1c25b3=_0xdc841d['commands']['get']('showPreviousChange'),_0x4b9b65=_0xdc841d['commands']['get']('showNextChange');return _0x1159a2['bind']('isBackwardNavigationEnabled')['to'](_0x1c25b3,'isEnabled'),_0x1159a2['bind']('isForwardNavigationEnabled')['to'](_0x4b9b65,'isEnabled'),_0x1159a2['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xd146ab),this['listenTo'](_0x1159a2,'execute',(_0xd3fae7,_0x487115)=>{_0xdc841d['execute']('forward'===_0x487115?'showNextChange':'showPreviousChange');}),_0x1159a2;}),_0x4bb550['show'](),_0xd146ab['on']('change:isReady',(_0x287961,_0x1721ba,_0x598683)=>{_0x598683?_0x4bb550['hide']():_0x4bb550['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x11b930,_0x577245){super(_0x11b930,_0x577245);const _0x18b484=this['bindTemplate'];this['set']({'label':R(_0x11b930,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x11b930,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x18b484['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x184b28=this['fieldView']['element'];this['_tooltipString']=_0x184b28['scrollWidth']>_0x184b28['clientWidth']&&_0x184b28['value']||'';}}class ni extends _0x5dfb47{constructor(_0x452476,_0x27fb21,_0x267a6b){super(_0x452476);const _0x344ec3=new _0x206d6e();_0x344ec3['set']({'content':_0xc56336,'viewBox':'0\x200\x2011\x2010'});const _0x50a4f5=['ck','ck-revision-history-sidebar__revision-author'];_0x267a6b&&_0x50a4f5['push']('ck-revision-history-sidebar__revision-author_creator');const _0xfba0c1=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x452476,_0x267a6b?'Revision\x20creator':'Revision\x20author')},'children':[_0x344ec3,_0x27fb21['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x50a4f5},'children':_0xfba0c1});}}function ci(_0x1ce336,_0x47318b){const _0x47e2c0=_0x1ce336['bindTemplate'],_0x201245=_0x1ce336['locale'],_0x3c19d1=_0x2ae42e(_0x201245);_0x3c19d1['panelPosition']='sw';const _0x4a01b9=function(_0x37461d,_0x3c70f2){const _0x5c44db=function(_0x56d866,_0x243b3a){const _0x173d34=_0x56d866['locale'],_0x308e2e={'Compare\x20against\x20selected':R(_0x173d34,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x173d34,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x173d34,'Restore\x20this\x20revision')};return _0x243b3a['map'](_0x29913e=>{const _0x25bf98=_0x308e2e[_0x29913e['name']];return _0x25bf98&&_0x25bf98!==_0x29913e['name']&&(_0x29913e['name']=_0x25bf98),_0x29913e;});}(_0x37461d,_0x3c70f2),_0x167272=new _0x5dbcb5();for(const _0x2de7f9 of _0x5c44db){const _0x318d0b={'type':'button','model':new to({'label':_0x2de7f9['name'],'class':_0x2de7f9['class'],'withText':!0x0,'role':'menuitem','_action':_0x2de7f9['action']})};_0x318d0b['model']['bind']('isEnabled')['to'](_0x37461d,'isActionsDropdownOpen',_0x44ec39=>'function'!=typeof _0x2de7f9['isEnabled']||(!_0x44ec39||_0x2de7f9['isEnabled'](_0x37461d))),_0x167272['add'](_0x318d0b);}return _0x167272;}(_0x1ce336,_0x47318b);return _0x1ce336['bind']('isActionsDropdownOpen')['to'](_0x3c19d1,'isOpen'),_0x3c19d1['buttonView']['set']({'label':R(_0x201245,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x297eba}),_0x3c19d1['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x47e2c0['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x47e2c0['to'](_0x23aff9=>_0x23aff9['stopPropagation']())}}),_0x3c19d1['on']('execute',_0x6870af=>{_0x1ce336['isReady']&&'function'==typeof _0x6870af['source']['_action']&&_0x6870af['source']['_action'](_0x1ce336);}),_0x2d9ac8(_0x3c19d1,_0x4a01b9,{'role':'menu'}),_0x3c19d1['listenTo'](_0x1ce336,'change:isActionsDropdownOpen',(_0xd16740,_0x425f90,_0x202c2c)=>{if(_0x202c2c)for(const _0x2c5ca2 of _0x3c19d1['listView']['items']){const _0x37b0df=_0x2c5ca2['children']['first'],_0x2a2d3f=_0x47318b['find'](_0x2f1dd8=>_0x2f1dd8['action']===_0x37b0df['_action'])['isVisible'];_0x2c5ca2['isVisible']=void 0x0===_0x2a2d3f||_0x2a2d3f(_0x1ce336);}}),_0x3c19d1;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x5d4f77,uid as _0x5bd0bf,Collection as _0x50c032,logWarning as _0x1e7653,FocusTracker as _0x59744e,KeystrokeHandler as _0x52a663,scrollViewportToShowTarget as _0x1ccc11,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x31ce40}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x11d795,set as _0x303496,unset as _0x24ab7a,isEqual as _0x43b1a0}from'es-toolkit/compat';import{Plugin as _0x557a5e,PendingActions as _0x3e42dc,Command as _0x58b01,ElementApiMixin as _0x514d34,Editor as _0x2522a6}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2bd141,getMarkerDomElement as _0x11cd7f,ConfirmMixin as _0x1f6116,sanitizeEditorConfig as _0x3162bb}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x52b12d,ViewAttributeElement as _0x39091d,ViewEmptyElement as _0xebc74f,ViewRawElement as _0x1154bd,ViewUIElement as _0x59e506,ViewDocumentFragment as _0xed7494,ViewText as _0x10d0d7,ViewElement as _0x393af7,ModelElement as _0x599036,ModelRange as _0x573a12,ModelPosition as _0x1d67e9,ModelDocumentFragment as _0x4c0b22,ModelText as _0x58fa86}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x205745,IconChevronUp as _0xe92cb0,IconChevronDown as _0x57ae56,IconUndo as _0x3a38c,IconUser as _0x1309a4,IconThreeVerticalDots as _0x46a20b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x250264,View as _0x289a06,submitHandler as _0x324c76,LabeledFieldView as ti,createLabeledInputText as _0x104191,createDropdown as _0x10ddda,ListView as _0x1a06ac,ListItemView as _0x45ee3c,ButtonView as _0x42cd9a,MenuBarMenuView as _0x2fbdef,MenuBarMenuListView as _0x55a029,MenuBarMenuListItemView as _0x1da77a,MenuBarMenuListItemButtonView as _0x1eb01a,ContextualBalloon as _0x207472,ToolbarSeparatorView as _0x1c6dd3,IconView as _0x26bf56,addListToDropdown as _0x160d68,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x24ef8d,StickyPanelView as _0x6ddc23,ToolbarView as _0xad3739,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2b72ee}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d4f77(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x24304b){super(),this['id']=_0x24304b['id']||_0x5bd0bf(),this['creator']=_0x24304b['creator']||null,this['authors']=_0x24304b['authors']||[],this['diffData']=_0x24304b['diffData']||null,this['toVersion']=_0x24304b['toVersion']||0x0,this['fromVersion']=_0x24304b['fromVersion']||0x0,this['set']('name',_0x24304b['name']||''),this['set']('createdAt',_0x24304b['createdAt']||new Date()),this['set']('attributes',_0x24304b['attributes']||{});}['setName'](_0x15b527){this['_update']({'name':_0x15b527});}['setAttribute'](_0x34d176,_0x3ceb09){const _0x29edf3=_0x11d795(this['attributes']);_0x303496(_0x29edf3,_0x34d176,_0x3ceb09),this['_update']({'attributes':_0x29edf3});}['removeAttribute'](_0x364e1e){const _0x57a0ca=_0x11d795(this['attributes']);_0x24ab7a(_0x57a0ca,_0x364e1e),this['_update']({'attributes':_0x57a0ca});}['_update'](_0x579bb7,_0x37b28b=!0x1){let _0x290640=!0x1;const _0x358adc={'id':this['id']},_0x210739=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4f44b6 of _0x210739){const _0x7b9763=_0x579bb7[_0x4f44b6];void 0x0!==_0x7b9763&&_0x7b9763!==this[_0x4f44b6]&&(this[_0x4f44b6]=_0x7b9763,_0x358adc[_0x4f44b6]=_0x7b9763,_0x290640=!0x0);}_0x290640&&(_0x358adc['authors']&&(_0x358adc['authorsIds']=_0x358adc['authors']['map'](_0x469fa9=>_0x469fa9['id']),delete _0x358adc['authors']),this['fire']('_update',_0x358adc,_0x37b28b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4a4551=>_0x4a4551['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x557a5e{['_revisions'];static get['requires'](){return[_0x2bd141];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x25d88c){super(_0x25d88c),this['_revisions']=new _0x50c032();}['afterInit'](){!async function(_0x35eb9b){const _0x458497=_0x438540([0x53,0x63,0x69,0x66,0x4f,0x5a,0x54,0x31,0x4a,0x59,0x37,0x79,0x72,0x73,0x61,0x4c,0x47,0x4b,0x56,0x58,0x52,0x43,0x41,0x6f,0x64,0x77,0x7a,0x36,0x70,0x71,0x49,0x75,0x4e,0x46,0x48,0x55,0x65,0x34,0x38,0x62,0x68,0x6c,0x33,0x6e,0x4d,0x78,0x67,0x39,0x30,0x42,0x32,0x76,0x74,0x35,0x6b,0x6a,0x51,0x50,0x44,0x6d,0x45,0x57]),_0x3a1758=0xeb829,_0x25a956=0x71a6d713,_0x11713f=0x71a1a543^_0x25a956,_0x4ea1df=window[_0x438540([0x44,0x61,0x74,0x65])][_0x438540([0x6e,0x6f,0x77])](),_0x21dce9=_0x35eb9b[_0x438540([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5279b5=new window[(_0x438540([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x388ad0=>{_0x21dce9[_0x438540([0x6f,0x6e,0x63,0x65])](_0x438540([0x72,0x65,0x61,0x64,0x79]),_0x388ad0);}),_0x327eab={[_0x438540([0x6b,0x74,0x79])]:_0x438540([0x45,0x43]),[_0x438540([0x75,0x73,0x65])]:_0x438540([0x73,0x69,0x67]),[_0x438540([0x63,0x72,0x76])]:_0x438540([0x50,0x2d,0x32,0x35,0x36]),[_0x438540([0x78])]:_0x438540([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]),[_0x438540([0x79])]:_0x438540([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]),[_0x438540([0x61,0x6c,0x67])]:_0x438540([0x45,0x53,0x32,0x35,0x36])},_0x17a778=_0x21dce9[_0x438540([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x438540([0x67,0x65,0x74])](_0x438540([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4fcb7b(){let _0x5308c7,_0x4e244c=null,_0x4b65a3=null;try{if(_0x17a778==_0x438540([0x47,0x50,0x4c]))return _0x438540([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5308c7=_0x40c149(),!_0x5308c7)return _0x438540([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5308c7[_0x438540([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b65a3=_0xd6335a(_0x5308c7[_0x438540([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5308c7[_0x438540([0x6a,0x74,0x69])])),await _0x31ffae()?_0x5d03a3()?_0x2609ae()?_0x438540([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a301d()?(_0x5308c7[_0x438540([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x438540([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e244c=_0x1464b6(_0x438540([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5308c7[_0x438540([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x438540([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e244c=_0x1464b6(_0x438540([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x417980()):_0x438540([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x438540([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x438540([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x438540([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2609ae(){const _0x2e3f89=[_0x438540([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x438540([0x74,0x72,0x69,0x61,0x6c])][_0x438540([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5308c7[_0x438540([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4ea1df/0x3e8:0xe10*_0x11713f;return _0x5308c7[_0x438540([0x65,0x78,0x70])]<_0x2e3f89;}function _0x5d03a3(){const _0x151d51=_0x5308c7[_0x438540([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x151d51)return!0x1;if(_0x151d51[_0x438540([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x438540([0x2a])))return!0x0;if(_0x151d51[_0x438540([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x438540([0x52,0x48])))return!0x0;if(_0x151d51[_0x438540([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x438540([0x52,0x52,0x48]))){if(_0x32f5a8())return!0x0;if(_0x243c0c()||_0x254fbf())return!0x0;}return!0x1;}function _0x5a301d(){const _0x3c03f4=_0x5308c7[_0x438540([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c03f4||0x0==_0x3c03f4[_0x438540([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f42bf}=new URL(window[_0x438540([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c03f4[_0x438540([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f42bf))return!0x0;const _0x532ec0=_0x1f42bf[_0x438540([0x73,0x70,0x6c,0x69,0x74])](_0x438540([0x2e]));return _0x3c03f4[_0x438540([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x253eae=>_0x253eae[_0x438540([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x438540([0x2a])))[_0x438540([0x6d,0x61,0x70])](_0x1214ce=>_0x1214ce[_0x438540([0x73,0x70,0x6c,0x69,0x74])](_0x438540([0x2e])))[_0x438540([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d6dc7=>_0x1d6dc7[_0x438540([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x532ec0[_0x438540([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x438540([0x6d,0x61,0x70])](_0x219e50=>Array(_0x532ec0[_0x438540([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x219e50[_0x438540([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x438540([0x66,0x69,0x6c,0x6c])](_0x219e50[0x0]===_0x438540([0x2a])?_0x438540([0x2a]):'')[_0x438540([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x219e50))[_0x438540([0x73,0x6f,0x6d,0x65])](_0x3880f9=>_0x532ec0[_0x438540([0x65,0x76,0x65,0x72,0x79])]((_0x3e6b6c,_0x235809)=>_0x3880f9[_0x235809]===_0x3e6b6c||_0x3880f9[_0x235809]===_0x438540([0x2a])));}function _0x417980(){return _0x4e244c&&_0x4b65a3?new window[(_0x438540([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d36b7,_0x5b712a)=>{_0x4e244c[_0x438540([0x74,0x68,0x65,0x6e])](_0x4d36b7,_0x5b712a),_0x4b65a3[_0x438540([0x74,0x68,0x65,0x6e])](_0x142cb5=>{_0x142cb5!=_0x438540([0x56,0x61,0x6c,0x69,0x64])&&_0x4d36b7(_0x142cb5);},_0x5b712a);}):_0x4e244c||_0x4b65a3||_0x438540([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd6335a(_0x36a5ca,_0xbe789d){return new window[(_0x438540([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d8c25=>{if(_0x370a1d())return _0x1d8c25(_0x438540([0x56,0x61,0x6c,0x69,0x64]));_0x38f450(),_0x21dce9[_0x438540([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x438540([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c99dd=!0x1;const _0x194eaa=_0x5bd0bf();function _0x167776(_0x3560b6){return!!_0x3560b6&&(typeof _0x3560b6===_0x438540([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3560b6===_0x438540([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3560b6[_0x438540([0x74,0x68,0x65,0x6e])]===_0x438540([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3560b6[_0x438540([0x63,0x61,0x74,0x63,0x68])]===_0x438540([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53f09d(_0x147661){_0x3d5540(_0x147661)[_0x438540([0x74,0x68,0x65,0x6e])](_0x2fd315=>{if(!_0x2fd315||_0x2fd315[_0x438540([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x438540([0x6f,0x6b]))return _0x438540([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5744c9(_0x1667c3(_0x194eaa+_0xbe789d))!=_0x2fd315[_0x438540([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x438540([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x438540([0x56,0x61,0x6c,0x69,0x64]);})[_0x438540([0x74,0x68,0x65,0x6e])](_0x3db8c2=>(_0x403adc(),_0x3db8c2),()=>{const _0x5d850e=_0x289e72();return null==_0x5d850e?(_0x403adc(),_0x438540([0x56,0x61,0x6c,0x69,0x64])):_0x438540(_0x4ea1df-_0x5d850e>(0x55aa5313^_0x25a956)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x438540([0x74,0x68,0x65,0x6e])](_0x1d8c25)[_0x438540([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d8c25(_0x438540([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1fc6c3=0x71903993^_0x25a956;function _0x403adc(){const _0x44c964=_0x438540([0x6c,0x6c,0x63,0x74,0x2d])+_0x5744c9(_0x1667c3(_0x36a5ca)),_0x54ba96=_0x1df94d(_0x5744c9(window[_0x438540([0x4d,0x61,0x74,0x68])][_0x438540([0x63,0x65,0x69,0x6c])](_0x4ea1df/_0x1fc6c3)));window[_0x438540([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x438540([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44c964,_0x54ba96);}function _0x289e72(){const _0x37d5a=_0x438540([0x6c,0x6c,0x63,0x74,0x2d])+_0x5744c9(_0x1667c3(_0x36a5ca)),_0x64f993=window[_0x438540([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x438540([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37d5a);return _0x64f993?window[_0x438540([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1df94d(_0x64f993),0x10)*_0x1fc6c3:null;}function _0x3d5540(_0x1e2af5){return new window[(_0x438540([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x594b79,_0x3c9d35)=>{_0x1e2af5[_0x438540([0x74,0x68,0x65,0x6e])](_0x594b79,_0x3c9d35),window[_0x438540([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c9d35,0x71a703d3^_0x25a956);});}}_0x21dce9[_0x438540([0x6f,0x6e])](_0x438540([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14409c,_0xdb5870)=>{if(_0xdb5870[0x0]!=_0x36a5ca)return _0x1d8c25(_0x438540([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xdb5870[0x1]={..._0xdb5870[0x1],[_0x438540([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x194eaa};},{[_0x438540([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x438540([0x68,0x69,0x67,0x68])}),_0x21dce9[_0x438540([0x6f,0x6e])](_0x438540([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x18d7d2=>{_0x167776(_0x18d7d2[_0x438540([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c99dd=!0x0,_0x53f09d(_0x18d7d2[_0x438540([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x438540([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x438540([0x6c,0x6f,0x77])}),_0x5279b5[_0x438540([0x74,0x68,0x65,0x6e])](()=>{_0x2c99dd||_0x1d8c25(_0x438540([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x370a1d(){return _0x21dce9[_0x438540([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x438540([0x76,0x69,0x65,0x77])][_0x438540([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x438540([0x61,0x75,0x74,0x6f]);}function _0x38f450(){_0x21dce9[_0x438540([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x438540([0x76,0x69,0x65,0x77])][_0x438540([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x438540([0x61,0x75,0x74,0x6f]);}}function _0x1464b6(_0x1d62f3){const _0x442c3e=[new window[(_0x438540([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5542a5=>setTimeout(_0x5542a5,0x71afe9df^_0x25a956)),_0x5279b5[_0x438540([0x74,0x68,0x65,0x6e])](()=>new window[(_0x438540([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f4ce8=>{const _0x30d59b=0x71a6d714^_0x25a956,_0xf96906=_0x35eb9b[_0x438540([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5f5b5f(){_0xf96906[_0x438540([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x30d59b&&_0x4f4ce8();}_0x5f5b5f(),_0xf96906[_0x438540([0x6f,0x6e])](_0x438540([0x61,0x64,0x64]),_0x5f5b5f);})),new window[(_0x438540([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ffbb8=>{function _0x5c64d7(){for(const _0x9a2468 in window)if(window[_0x438540([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x438540([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x9a2468))&&window[_0x9a2468]==_0x3a1758)return _0x4ffbb8();_0x21dce9[_0x438540([0x73,0x74,0x61,0x74,0x65])]!=_0x438540([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x438540([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c64d7,0x71a6c49b^_0x25a956);}_0x5cfb78(_0x438540([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5c64d7();})];return window[_0x438540([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x438540([0x72,0x61,0x63,0x65])](_0x442c3e)[_0x438540([0x74,0x68,0x65,0x6e])](()=>_0x1d62f3);}async function _0x4fbd6a(){if(await _0x5279b5,_0x5cfb78(_0x438540([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5a48af=_0x35eb9b[_0x438540([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2776df=_0x35eb9b[_0x438540([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])](_0x5a48af[_0x438540([0x69,0x64])]),_0x35daf7=_0x1cf826(_0x438540([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x35daf7[_0x438540([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5a48af['id'],_0x2776df?_0x2776df['id']:null,!0x0),_0x35daf7[_0x438540([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x438540([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x35daf7[_0x438540([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x35daf7[_0x438540([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3bacca,void(_0x35daf7[_0x438540([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3bacca);}if(_0x5cfb78(_0x438540([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x426860=_0x1cf826(_0x438540([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x426860[_0x438540([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x438540([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x426860[_0x438540([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x426860[_0x438540([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3bacca,_0x426860[_0x438540([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3bacca;}_0x21dce9[_0x438540([0x6d,0x6f,0x64,0x65,0x6c])][_0x438540([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3bacca,_0x21dce9[_0x438540([0x6d,0x6f,0x64,0x65,0x6c])][_0x438540([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3bacca,_0x21dce9[_0x438540([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x438540([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x32f5a8(){return _0x5cfb78(_0x438540([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1cf826(_0x438540([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x438540([0x73,0x74,0x61,0x74,0x65])]==_0x438540([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x243c0c(){return _0x5cfb78(_0x438540([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 _0x254fbf(){return _0x5cfb78(_0x438540([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x395acb(_0x2b0c5a){const _0x56fe56=_0x165652();_0x21dce9[_0x56fe56]=_0x438540([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])+_0x2b0c5a,_0x2b0c5a[_0x438540([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x438540([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x165652()]=_0x3a1758),_0x2b0c5a!=_0x438540([0x56,0x61,0x6c,0x69,0x64])&&_0x4fbd6a();}function _0x165652(){const _0x1cb7c8=window[_0x438540([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x438540([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x438540([0x6e,0x6f,0x77])]())[_0x438540([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x438540([0x2e]),'');let _0x4816b1=_0x438540([0x53]);for(let _0x516133=0x0;_0x516133<_0x1cb7c8[_0x438540([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x516133+=0x2){let _0x17faba=window[_0x438540([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cb7c8[_0x438540([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x516133,_0x516133+0x2));_0x17faba>=_0x458497[_0x438540([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x17faba-=_0x458497[_0x438540([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4816b1+=_0x458497[_0x17faba];}return _0x4816b1;}function _0x40c149(){const _0x1dd7e6=_0x17a778[_0x438540([0x73,0x70,0x6c,0x69,0x74])](_0x438540([0x2e]));if(0x3!=_0x1dd7e6[_0x438540([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xfe465d(_0x1dd7e6[0x1]);function _0xfe465d(_0x5cbb6e){const _0x272f48=_0x5d9591(_0x5cbb6e);return _0x272f48&&_0x2d55da()?_0x272f48:null;function _0x2d55da(){const _0x16ef84=_0x272f48[_0x438540([0x6a,0x74,0x69])],_0xa9d9e0=window[_0x438540([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16ef84[_0x438540([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16ef84[_0x438540([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5defd0={..._0x272f48,[_0x438540([0x6a,0x74,0x69])]:_0x16ef84[_0x438540([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x16ef84[_0x438540([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5defd0[_0x438540([0x76,0x63])],_0x1667c3(_0x5defd0)==_0xa9d9e0;}}}async function _0x31ffae(){let _0x2dd29c=!0x0;try{const _0x5f26a9=_0x17a778[_0x438540([0x73,0x70,0x6c,0x69,0x74])](_0x438540([0x2e])),[_0x1fc46e,_0x300341,_0x49fdec]=_0x5f26a9;return _0xf2420d(_0x1fc46e),await _0x4c8982(_0x1fc46e,_0x300341,_0x49fdec),_0x2dd29c;}catch{return!0x1;}function _0xf2420d(_0x59c646){const _0x33159e=_0x5d9591(_0x59c646);_0x33159e&&_0x33159e[_0x438540([0x61,0x6c,0x67])]==_0x438540([0x45,0x53,0x32,0x35,0x36])||(_0x2dd29c=!0x1);}async function _0x4c8982(_0x27f9a6,_0x345a24,_0x287ad5){const _0x33c835=window[_0x438540([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x438540([0x66,0x72,0x6f,0x6d])](_0x43a9c3(_0x287ad5),_0xe52638=>_0xe52638[_0x438540([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1a54cc=new window[(_0x438540([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x438540([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27f9a6+_0x438540([0x2e])+_0x345a24),_0x2e58c7=window[_0x438540([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x438540([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e58c7)return;const _0x378c07=await _0x2e58c7[_0x438540([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x438540([0x6a,0x77,0x6b]),_0x327eab,{[_0x438540([0x6e,0x61,0x6d,0x65])]:_0x438540([0x45,0x43,0x44,0x53,0x41]),[_0x438540([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x438540([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x438540([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e58c7[_0x438540([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x438540([0x6e,0x61,0x6d,0x65])]:_0x438540([0x45,0x43,0x44,0x53,0x41]),[_0x438540([0x68,0x61,0x73,0x68])]:{[_0x438540([0x6e,0x61,0x6d,0x65])]:_0x438540([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x378c07,_0x33c835,_0x1a54cc)||(_0x2dd29c=!0x1);}}function _0x5d9591(_0x2aaf57){return _0x2aaf57[_0x438540([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x438540([0x65,0x79]))?JSON[_0x438540([0x70,0x61,0x72,0x73,0x65])](_0x43a9c3(_0x2aaf57)):null;}function _0x43a9c3(_0x293029){return window[_0x438540([0x61,0x74,0x6f,0x62])](_0x293029[_0x438540([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x438540([0x2b]))[_0x438540([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x438540([0x2f])));}function _0x1667c3(_0x51a405){let _0x150e74=0x1505;function _0x50fb6a(_0x3966fd){for(let _0xaacea9=0x0;_0xaacea9<_0x3966fd[_0x438540([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xaacea9++){const _0x5e3288=_0x3966fd[_0x438540([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xaacea9);_0x150e74=(_0x150e74<<0x5)+_0x150e74+_0x5e3288,_0x150e74&=_0x150e74;}}function _0x2ccad3(_0x2a52b1){Array[_0x438540([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a52b1)?_0x2a52b1[_0x438540([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ccad3):_0x2a52b1&&typeof _0x2a52b1==_0x438540([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x438540([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a52b1)[_0x438540([0x73,0x6f,0x72,0x74])]()[_0x438540([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5bdc17,_0x46a2e2])=>{_0x50fb6a(_0x5bdc17),_0x2ccad3(_0x46a2e2);}):_0x50fb6a(window[_0x438540([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a52b1));}return _0x2ccad3(_0x51a405),_0x150e74>>>0x0;}function _0x5744c9(_0xffd708){return _0xffd708[_0x438540([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x438540([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x438540([0x30]));}function _0x1df94d(_0x18c5ba){return _0x18c5ba[_0x438540([0x73,0x70,0x6c,0x69,0x74])]('')[_0x438540([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x438540([0x6a,0x6f,0x69,0x6e])]('');}function _0x5cfb78(_0x4751fc){return _0x21dce9[_0x438540([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x438540([0x68,0x61,0x73])](_0x4751fc);}function _0x1cf826(_0x2f7de4){return _0x21dce9[_0x438540([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x438540([0x67,0x65,0x74])](_0x2f7de4);}function _0x3bacca(){}function _0x438540(_0x3c47c1){return _0x3c47c1['map'](_0x5874df=>String['fromCharCode'](_0x5874df))['join']('');}_0x395acb(await _0x4fcb7b());}(this);}['createRevision'](_0x140b58){const _0x51cabf=this['editor']['plugins']['get']('Users');return new I({'id':_0x140b58['id'],'name':_0x140b58['name'],'creator':_0x140b58['creatorId']?_0x51cabf['getUser'](_0x140b58['creatorId']):null,'diffData':_0x140b58['diffData']||_0x140b58['data'],'authors':_0x140b58['authorsIds']['map'](_0x1d887f=>_0x51cabf['getUser'](_0x1d887f)),'createdAt':new Date(_0x140b58['createdAt']),'attributes':_0x140b58['attributes'],'fromVersion':_0x140b58['fromVersion'],'toVersion':_0x140b58['toVersion']});}['addRevision'](_0x22b9d8,_0x1d1fa4=0x0){this['_revisions']['add'](_0x22b9d8,_0x1d1fa4);}['getRevision'](_0x31f595){return this['_revisions']['get'](_0x31f595);}['getRevisions'](_0x2ffcb2={'toJSON':!0x1}){const _0x1658ed=Array['from'](this['_revisions']);return _0x1658ed['reverse'](),_0x2ffcb2['toJSON']?_0x1658ed['map'](_0x2febea=>_0x2febea['toJSON']()):_0x1658ed;}['getIndex'](_0x135956){return this['_revisions']['getIndex'](_0x135956);}['getEarlierVisibleRevision'](_0x1aac71){const [,_0x20cb9f]=this['getRevisionsIterator'](_0x1aac71,{'direction':'earlier'});return _0x20cb9f;}['getLaterVisibleRevision'](_0x4be50f){const [,_0x5cbfd1]=this['getRevisionsIterator'](_0x4be50f,{'direction':'later'});return _0x5cbfd1;}['getRevisionsInDiff'](_0x236b4c){const _0x240730=[];for(const _0x4b65f1 of this['getRevisionsIterator'](_0x236b4c['newRevisionId']))if(_0x240730['push'](_0x4b65f1),_0x4b65f1['id']===_0x236b4c['oldRevisionId'])break;return _0x240730;}*['getRevisionsIterator'](_0x257a61,{direction:_0x1ed3c2='earlier',filter:_0x5bbe52=()=>!0x0}={}){const _0x17f5aa='earlier'===_0x1ed3c2?0x1:-0x1;let _0x340062=this['_revisions']['get'](_0x257a61),_0x4b69eb=this['getIndex'](_0x340062);for(yield _0x340062;_0x340062;){if(_0x4b69eb+=_0x17f5aa,_0x340062=this['getRevision'](_0x4b69eb),!_0x340062)return;_0x5bbe52(_0x340062)&&(yield _0x340062);}}}class $ extends _0x557a5e{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x52b12d,'c'],[_0x39091d,'a'],[_0xebc74f,'e'],[_0x1154bd,'r'],[_0x59e506,'u']]);['_typeCharToViewClass']=new Map([['c',_0x52b12d],['a',_0x39091d],['e',_0xebc74f],['r',_0x1154bd],['u',_0x59e506]]);async['loadRevisionData'](_0x653fb5,_0xd8d945){if(_0x653fb5['diffData']||!_0xd8d945)return;const _0x19187e=this['editor']['config']['get']('collaboration.channelId'),_0x486d7d=await _0xd8d945['getRevision']({'channelId':_0x19187e,'revisionId':_0x653fb5['id']});_0x653fb5['diffData']=_0x486d7d['diffData'];}['getRevisionDocumentData'](_0x2c9339){const _0x314a44={};for(const _0x564660 in _0x2c9339['diffData']){if(_0x2c9339['diffData'][_0x564660]['attachChange']&&!_0x2c9339['diffData'][_0x564660]['attachChange']['isAttached'])continue;const _0x2f894a=this['_removeRevisionMarkers'](JSON['parse'](_0x2c9339['diffData'][_0x564660]['insertions'])),_0x496ffb=this['editor']['editing']['view']['document'],_0x4c878e=new _0xed7494(_0x496ffb,_0x2f894a['map'](_0x54d264=>this['_getViewFromDiffObj'](_0x54d264,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x314a44[_0x564660]=this['editor']['data']['processor']['toData'](_0x4c878e),this['editor']['data']['processor']['useFillerType']('default');}return _0x314a44;}['getRevisionRootsAttributes'](_0x1aa816){const _0x2b7d94={};for(const _0x11e1c4 in _0x1aa816['diffData'])_0x1aa816['diffData'][_0x11e1c4]['attachChange']&&!_0x1aa816['diffData'][_0x11e1c4]['attachChange']['isAttached']||(_0x2b7d94[_0x11e1c4]=_0x1aa816['diffData'][_0x11e1c4]['attributesAfter']||{});return _0x2b7d94;}['_getTypeCharForViewElement'](_0x2a7019){return this['_viewClassToTypeChar']['get'](_0x2a7019['constructor']);}['_getViewFromDiffObj'](_0x3cc65f,_0x2764f7){const _0x6cf6f8=this['editor']['editing']['view']['document'];if('string'==typeof _0x3cc65f)return new _0x10d0d7(_0x6cf6f8,_0x3cc65f);{let _0x342fc5,_0x4877c7;_0x4877c7='u'==_0x3cc65f['type']||'r'==_0x3cc65f['type']?[]:_0x3cc65f['children']['map'](_0xb946bb=>this['_getViewFromDiffObj'](_0xb946bb,_0x2764f7));const _0x3270f1=this['_typeCharToViewClass']['get'](_0x3cc65f['type'])||_0x393af7,_0x161a71=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x342fc5=new _0x3270f1(_0x6cf6f8,_0x3cc65f['name'],_0x3cc65f['attributes'],_0x4877c7),'u'==_0x3cc65f['type']&&_0x3cc65f['children'][0x0]){const _0xf3eef9=_0x3cc65f['children'][0x0];if(_0x342fc5['render']=function(_0x4ff645){const _0xf38694=_0x4ff645['createElement']('div');return _0xf38694['innerHTML']=_0xf3eef9,_0xf38694['childNodes'][0x0];},_0x2764f7){const _0x4a8b00=new _0xed7494(_0x6cf6f8);_0x4a8b00['_appendChild'](_0x342fc5);const _0x66479b=Array['from'](_0x161a71['viewChildrenToDom'](_0x4a8b00,{'bind':!0x1})),_0x5614db=_0x161a71['domDocument']['createElement']('div');_0x5614db['append'](..._0x66479b),_0x342fc5=Array['from'](_0x161a71['domChildrenToView'](_0x5614db))[0x0];}}else{if('r'==_0x3cc65f['type']&&_0x3cc65f['children'][0x0]){const _0x403122=_0x3cc65f['children'][0x0];if(_0x342fc5['render']=function(_0x9c9145){_0x9c9145['innerHTML']=_0x403122;},_0x2764f7){const _0xe8f3e5=new _0xed7494(_0x6cf6f8);_0xe8f3e5['_appendChild'](_0x342fc5);const _0x3b5038=Array['from'](_0x161a71['viewChildrenToDom'](_0xe8f3e5,{'bind':!0x1})),_0x32a24a=_0x161a71['domDocument']['createElement']('div');_0x32a24a['append'](..._0x3b5038);const _0x17dd49=Array['from'](_0x161a71['domChildrenToView'](_0x32a24a));_0x17dd49['length']>0x1?_0x342fc5['_appendChild'](_0x17dd49):_0x342fc5=_0x17dd49[0x0];}}}if(_0x3cc65f['customProperties']){for(const [_0x5603e4,_0x1eafc3]of _0x3cc65f['customProperties'])_0x342fc5['_setCustomProperty'](_0x5603e4,_0x1eafc3);}const _0x574102=void 0x0===_0x3cc65f['fillerOffset']?null:_0x3cc65f['fillerOffset'];return null!==_0x574102&&(_0x342fc5['getFillerOffset']=()=>_0x574102),_0x342fc5;}}['_makeModelFromViewString'](_0xe6ef66){const _0x19962f=JSON['parse'](_0xe6ef66),_0x6073aa=this['editor']['editing']['view']['document'],_0xdb83dd=new _0xed7494(_0x6073aa,_0x19962f['map'](_0x222d5d=>this['_getViewFromDiffObj'](_0x222d5d,!0x0)));return this['editor']['data']['toModel'](_0xdb83dd);}['_removeRevisionMarkers'](_0x52e007){return(_0x52e007=_0x52e007['filter'](_0x5f472c=>!_0x5f472c['name']||'revision-start'!==_0x5f472c['name']&&'revision-end'!==_0x5f472c['name']))['forEach'](_0x834d61=>{'string'!=typeof _0x834d61&&(_0x834d61['children']=this['_removeRevisionMarkers'](_0x834d61['children']),_0x834d61['attributes']=_0x834d61['attributes']['filter'](_0x1d8328=>!_0x1d8328[0x0]['startsWith']('data-revision-')));}),_0x52e007;}}function R(_0x37587d,_0x282097,_0x5d059a){const t=_0x37587d['t'];switch(_0x282097){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'},_0x5d059a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5d059a);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x557a5e{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2bd141,S,$,_0x3e42dc];}constructor(_0x5c8341){super(_0x5c8341),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4393e8=_0x5bd0bf();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4393e8},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x3b68c2=this['repository']['getRevision'](0x0),_0x3d842b=_0x3b68c2&&null===_0x3b68c2['creator']?_0x3b68c2:null;if(this['_continueCurrentRevision']=!!_0x3d842b&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1b2b8a=this['_source']['getCurrentRevisionId'](),_0x5946b8=this['repository']['getRevision'](_0x1b2b8a);if(_0x5946b8)this['_startingVersion']=_0x5946b8['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4bcc08=this['_source']['history']['_operations']['find'](_0x1ad77d=>!_0x1ad77d['_isInit']),_0x542d56=_0x4bcc08?_0x4bcc08['baseVersion']:this['_source']['history']['version'];_0x3b68c2?(_0x3b68c2['toVersion']<_0x542d56&&_0x3b68c2['_update']({'toVersion':_0x542d56}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3d842b['id'],this['_startingVersion']=_0x3d842b['fromVersion']):(this['_startingVersion']=_0x3b68c2['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x542d56,this['_continueCurrentRevision']=!0x1);}}else _0x3d842b&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3d842b['toVersion'],this['editor']['model']['document']['history']['version']),_0x3d842b['fromVersion']===_0x3d842b['toVersion']?(0x0!==_0x3d842b['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3d842b['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3d842b['id'],this['_startingVersion']=_0x3d842b['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',_0x410eea=>!_0x410eea),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3381cd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe5f258;for(const _0x3b7b6a in _0x3381cd){const _0x1e663c=_0x3b7b6a,_0x18107c=_0x3381cd[_0x1e663c];if('revisionHistoryLicenseKeyValid'==_0x18107c||'revisionHistoryLicenseKeyInvalid'==_0x18107c||'revisionHistoryLicenseKeyExpired'==_0x18107c||'revisionHistoryLicenseKeyDomainLimit'==_0x18107c||'revisionHistoryLicenseKeyNotAllowed'==_0x18107c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x18107c||'revisionHistoryLicenseKeyTrialLimit'==_0x18107c||'revisionHistoryLicenseKeyUsageLimit'==_0x18107c){delete _0x3381cd[_0x1e663c],_0xe5f258=_0x18107c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xe5f258&&_0x3381cd['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xe5f258&&_0x3381cd['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xe5f258&&_0x3381cd['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xe5f258&&_0x3381cd['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xe5f258&&_0x3381cd['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xe5f258&&_0x3381cd['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xe5f258&&_0x3381cd['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xc3b938=this['repository']['getRevision'](0x0),_0x554ed1=await this['getRevisionDocumentData'](_0xc3b938),_0x4bec2d=await this['getRevisionRootsAttributes'](_0xc3b938);this['_replaceEditorDataWithRevisionData'](_0x554ed1,_0x4bec2d);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x52ff69){this['_source']=_0x52ff69;}async['update'](){const _0x2e8e3e=await this['_source']['getLatestVersion']();if(_0x2e8e3e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4e27a5=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2e8e3e});_0x4e27a5['authors']=_0x4e27a5['authorsIds']['map'](_0x56c11e=>this['editor']['plugins']['get']('Users')['getUser'](_0x56c11e)),this['currentRevision']['_update'](_0x4e27a5);}}async['saveRevision'](_0x28c3c3={},_0x2e445f=null){const _0x4fa975=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2e445f>this['currentRevision']['toVersion']&&(_0x2e445f=null),null===_0x2e445f&&(_0x2e445f=await this['_source']['getLatestVersion']());const _0x129595=this['_getFromVersion'](_0x2e445f),_0x4f354b=this['buildRevisionData']({'from':_0x129595,'to':_0x2e445f});if(this['currentRevision']['toVersion']<_0x2e445f){const _0x1a0ffc=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2e445f,'to':_0x2e445f});_0x1a0ffc['authors']=[],_0x1a0ffc['authorsIds']=[],_0x1a0ffc['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1a0ffc,!0x0),delete _0x1a0ffc['authors'],_0x4fa975['push'](_0x1a0ffc);}_0x28c3c3['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x28c3c3['name']=_0x28c3c3['name']||null,_0x28c3c3['id']=_0x28c3c3['id']||_0x5bd0bf(),_0x28c3c3={..._0x28c3c3,..._0x4f354b};const _0x185e84=this['addRevisionData'](_0x28c3c3);_0x4fa975['push'](_0x28c3c3);const _0x3ac70c=this['repository']['getIndex'](_0x185e84);if(0x0!==_0x3ac70c){const _0x63f69b=this['repository']['getRevision'](_0x3ac70c-0x1);if(_0x63f69b['fromVersion']!==_0x2e445f){const _0x425686=this['_revisionDataBuilder']['getData'](_0x2e445f,_0x63f69b['toVersion']),_0x3fb98a={'id':_0x63f69b['id'],'diffData':_0x425686['diffData'],'authorsIds':_0x425686['authorsIds'],'authors':_0x425686['authorsIds']['map'](_0x41b064=>this['editor']['plugins']['get']('Users')['getUser'](_0x41b064)),'fromVersion':_0x2e445f};_0x63f69b===this['currentRevision']&&(_0x3fb98a['createdAt']=new Date(_0x28c3c3['createdAt']['getTime']()+0xa)),_0x63f69b['_update'](_0x3fb98a,!0x0),delete _0x3fb98a['authors'],_0x4fa975['push'](_0x3fb98a);}}if(this['adapter']){for(const _0x121db3 of _0x4fa975)this['_bufferUpdate'](_0x121db3['id'],_0x121db3,!0x0);this['sendBufferedUpdates']();}return _0x185e84;}['addRevisionData'](_0x32c8ae){const _0x3bbd84=this['repository']['createRevision'](_0x32c8ae);return this['adapter']&&_0x3bbd84['on']('_update',(_0x572ee2,_0x18e4f3,_0x35462c)=>{_0x35462c||(this['_bufferUpdate'](_0x18e4f3['id'],_0x18e4f3,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3bbd84,this['_findInsertionIndex'](_0x3bbd84)),_0x3bbd84;}async['getRevisionDocumentData'](_0x270234){return await this['_utils']['loadRevisionData'](_0x270234,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x270234);}async['getRevisionRootsAttributes'](_0x5f4eae){return await this['_utils']['loadRevisionData'](_0x5f4eae,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5f4eae);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x536137=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x426d40=0x0;_0x426d40<_0x536137['length'];_0x426d40++){const _0x5f44a2=_0x536137[_0x426d40];let _0x4c788f=!0x1;for(const _0x1dfa91 of Object['keys'](_0x5f44a2))void 0x0===_0x5f44a2[_0x1dfa91]?delete _0x5f44a2[_0x1dfa91]:'id'!==_0x1dfa91&&(_0x4c788f=!0x0);_0x4c788f||(_0x536137[_0x426d40]=null);}if(_0x536137=_0x536137['filter'](_0x4b1d70=>null!==_0x4b1d70),!_0x536137['length'])return;for(let _0x3fb4c4=0x0;_0x3fb4c4<_0x536137['length'];_0x3fb4c4++){const _0x3526e9=_0x536137[_0x3fb4c4];void 0x0!==_0x3526e9['fromVersion']&&void 0x0===_0x3526e9['toVersion']&&(_0x3526e9['toVersion']=this['repository']['getRevision'](_0x3526e9['id'])['toVersion']),void 0x0!==_0x3526e9['toVersion']&&void 0x0===_0x3526e9['fromVersion']&&(_0x3526e9['fromVersion']=this['repository']['getRevision'](_0x3526e9['id'])['fromVersion']);}const _0x9bd9ec=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x536137,_0x9bd9ec)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1fa97f=>{if(_0x1fa97f){for(const _0x2c3b86 of _0x1fa97f)this['setRevisionData']({'id':_0x2c3b86['id'],'createdAt':_0x2c3b86['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x427b43=null,from:_0x1bb546=null,to:_0x3e2dd6=null}){_0x1bb546=null!==_0x1bb546?_0x1bb546:_0x427b43['fromVersion'],_0x3e2dd6=null!==_0x3e2dd6?_0x3e2dd6:_0x427b43['toVersion'];const _0x4166bf=this['_revisionDataBuilder']['getData'](_0x1bb546,_0x3e2dd6),_0x2ba327={'diffData':_0x4166bf['diffData'],'authorsIds':_0x4166bf['authorsIds'],'fromVersion':_0x1bb546,'toVersion':_0x3e2dd6};if(!_0x427b43||_0x3e2dd6!==_0x427b43['toVersion']){const _0x5bd0a4=_0x3e2dd6-0x1,_0x2fa590=this['_source']['history']['getOperation'](_0x5bd0a4);_0x2ba327['createdAt']=_0x2fa590&&_0x2fa590['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1bb546===this['_loadedStateData']['fromVersion']){for(const _0x35cf5c of this['_loadedStateData']['authors'])_0x2ba327['authorsIds']['includes'](_0x35cf5c['id'])||_0x2ba327['authorsIds']['push'](_0x35cf5c['id']);}return _0x2ba327;}['_bufferUpdate'](_0x32a35d,_0x538118,_0x164b3a){if(this['_bufferedUpdates']['has'](_0x32a35d)){const _0x5ad32e=this['_bufferedUpdates']['get'](_0x32a35d);_0x538118=_0x164b3a?{..._0x5ad32e,..._0x538118}:{..._0x538118,..._0x5ad32e};}this['_bufferedUpdates']['set'](_0x32a35d,_0x538118);}['setRevisionData'](_0x41b8db){const _0x292a1d=this['repository']['getRevision'](_0x41b8db['id']);if(_0x41b8db['createdAt']&&(_0x41b8db['createdAt']=new Date(_0x41b8db['createdAt'])),_0x41b8db['authorsIds']){const _0x17829a=this['editor']['plugins']['get']('Users');_0x41b8db['authors']=_0x41b8db['authorsIds']['map'](_0x3ea51d=>_0x17829a['getUser'](_0x3ea51d));}_0x292a1d['_update'](_0x41b8db,!0x0);}['_createInitialRevision'](_0x2cfc98){const _0x5da7f6=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5da7f6)this['_initialRevisionId']=_0x5da7f6['id'];else{const _0x669b68=!this['editor']['model']['document']['roots']['find'](_0xe9225c=>this['editor']['model']['hasContent'](_0xe9225c)),_0x169339=this['editor']['plugins']['get']('Users')['me']['id'],_0x483122=R(this['editor']['locale'],_0x669b68?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2cfc98,'to':_0x2cfc98,'id':this['_initialRevisionId'],'name':_0x483122,'creatorId':_0x169339});}}['_createCurrentRevision'](_0xcdc7){const _0x27b36f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x27b36f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xcdc7,'to':_0xcdc7,'id':_0x27b36f,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x44b272,_0x16d00a){let _0x4cba19=this['editor']['config']['get']('initialData'),_0x4f2c00=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4cba19){_0x4cba19={};for(const _0x1ee04f of this['editor']['model']['document']['getRootNames']())_0x4cba19[_0x1ee04f]='';}if('string'==typeof _0x4cba19&&(_0x4cba19={'main':_0x4cba19}),void 0x0===_0x4f2c00){_0x4f2c00={};for(const _0x280be6 of this['editor']['model']['document']['getRootNames']())_0x4f2c00[_0x280be6]={};}let _0x499c99=!0x1;const _0xc6ece4=Object['keys'](_0x4cba19),_0x2e2a46=Object['keys'](_0x44b272);for(const _0x33b4f7 of _0xc6ece4){if(_0x4cba19[_0x33b4f7]!==_0x44b272[_0x33b4f7]&&''!==_0x4cba19[_0x33b4f7]['trim']()){_0x499c99=!0x0;break;}if(!_0x43b1a0(_0x4f2c00[_0x33b4f7],_0x16d00a[_0x33b4f7])&&Object['keys'](_0x4f2c00[_0x33b4f7])['length']>0x0){_0x499c99=!0x0;break;}}_0x499c99||(_0x499c99=_0x2e2a46['some'](_0x1875ba=>!this['editor']['model']['document']['getRoot'](_0x1875ba))),_0x499c99&&_0x1e7653('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4cba19,'editorRootsAttributes':_0x4f2c00,'revisionData':_0x44b272,'revisionRootsAttributes':_0x16d00a}),this['editor']['config']['set']('initialData',_0x44b272),this['editor']['config']['set']('rootsAttributes',_0x16d00a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2e9f12=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2e9f12['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5d41d0){const _0x379e02=this['repository']['getRevisions']();_0x379e02['reverse']();let _0x4be3f6=0x0;for(;_0x4be3f6<_0x379e02['length'];){const _0x338cef=_0x379e02[_0x4be3f6];if(_0x338cef===this['currentRevision']){_0x4be3f6++;continue;}if(_0x338cef['id']===this['_initialRevisionId'])break;const _0x584e71=_0x5d41d0['toVersion']-_0x338cef['toVersion']||_0x5d41d0['fromVersion']-_0x338cef['fromVersion'];if(_0x584e71>0x0)break;if(_0x584e71<0x0)_0x4be3f6++;else{if(!_0x5d41d0['creator']&&_0x338cef['creator'])break;if(_0x338cef['creator']||!_0x5d41d0['creator']){if(_0x5d41d0['createdAt']>_0x338cef['createdAt'])break;_0x4be3f6++;}else _0x4be3f6++;}}return _0x4be3f6;}['_getFromVersion'](_0xbc56f9){const _0x4e02d6=this['repository']['getRevisions']();_0x4e02d6['reverse'](),_0x4e02d6['shift']();const _0xc003a7=_0x4e02d6['find'](_0x40f1dd=>_0x40f1dd['toVersion']<=_0xbc56f9)['toVersion'];return _0xc003a7<this['_startingVersion']?this['_startingVersion']:_0xc003a7;}['_makeRevision']({name:_0x490146,from:_0x371251,to:_0x47dfce,creatorId:_0x2c70a8,id:_0x247911}){const _0x1615f5=this['buildRevisionData']({'from':_0x371251,'to':_0x47dfce});_0x1615f5['name']=_0x490146,_0x1615f5['creatorId']=_0x2c70a8,_0x1615f5['id']=_0x247911;const _0xe74fde=this['addRevisionData'](_0x1615f5);return this['adapter']&&this['_bufferUpdate'](_0x1615f5['id'],_0x1615f5,!0x0),_0xe74fde;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x31e860){this['editor']=_0x31e860,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'](_0xdbab20){this['source']=_0xdbab20;const _0x2076f2=new Map(),_0x563ce5=new Map(),_0xf7f016=this['editor']['model']['document']['roots']['map'](_0x324460=>_0x324460['rootName']);for(const _0x2fc582 of _0xf7f016){const _0x2a959f=this['editor']['model']['document']['getRoot'](_0x2fc582),_0x345546=x(_0x2a959f);_0x2076f2['set'](_0x2fc582,_0x345546),_0x563ce5['set'](_0x2fc582,Object['fromEntries'](_0x2a959f['getAttributes']()));}const _0x50f0f6=Array['from'](this['editor']['model']['markers'])['map'](_0xf151fa=>[_0xf151fa['name'],_0xf151fa['getRange']()]),_0x3a3c29=this['source']['version'];this['_saveMetaData'](_0x3a3c29,_0x2076f2,_0x50f0f6,_0x563ce5),this['_startingRevisionId']=this['_revisionId'];const _0x28a53b=new Map(),_0x570000=new Map();for(const _0x2a6a1b of _0xf7f016){const _0x3799dd=N(_0x2a6a1b);_0x28a53b['set'](_0x2a6a1b,_0x3799dd),_0x570000['set'](_0x2a6a1b,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x28a53b,[],_0x570000);}['getData'](_0x1f175b,_0x51390c){if(this['_lastFrom']===_0x1f175b&&this['_lastTo']<=_0x51390c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x51390c,!0x0);else{if(!this['_savedMetaData']['has'](_0x1f175b)){const _0x1af0b3=this['_getPreviousFrom'](_0x1f175b);this['_calculateMetaData'](_0x1af0b3,_0x1f175b,!0x1);}this['_calculateMetaData'](_0x1f175b,_0x51390c,!0x0);}return this['_lastFrom']=_0x1f175b,this['_lastTo']=_0x51390c,this['_getState']();}['loadState'](_0x229ad2){const _0x5a538b=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x229ad2['fromVersion'],this['_lastTo']=_0x229ad2['toVersion'];for(const _0x3d802e in _0x229ad2['diffData']){const _0x3e2b8f=_0x229ad2['diffData'][_0x3d802e]['attachChange'],_0xc71e6=_0x11d795(_0x229ad2['diffData'][_0x3d802e]['attributesBefore'])||{},_0x5ec7c7=_0x5a538b['_makeModelFromViewString'](_0x229ad2['diffData'][_0x3d802e]['deletions']);_0x5ec7c7['rootName']=_0x3d802e,_0x5ec7c7['_isAttached']=!_0x3e2b8f||!_0x3e2b8f['isAttached'],_0x5ec7c7['isAttached']=()=>_0x5ec7c7['_isAttached'],this['_baseRoots']['set'](_0x3d802e,_0x5ec7c7),this['_baseRootsAttributes']['set'](_0x3d802e,_0xc71e6),_0x3e2b8f&&this['_touchedRoots']['set'](_0x3d802e,_0x3e2b8f);const _0x366482=this['_makeIdsRoot'](_0x5ec7c7);this['_baseIdsRoots']['set'](_0x3d802e,_0x366482);for(const [_0x13cbd7,_0x29863b]of _0x5ec7c7['markers']){if(!_0x13cbd7['startsWith']('revision:'))continue;const _0x242318=_0x13cbd7['split'](':')[0x2];for(const _0x2c3060 of _0x29863b['getWalker']({'singleCharacters':!0x0})){const _0x4ad11a=this['_getVidAttributeName'](_0x2c3060),_0xe3f495='elementEnd'==_0x2c3060['type']?_0x2c3060['previousPosition']['path']['slice'](0x0,-0x1):_0x2c3060['previousPosition']['path'],_0x3e78f6=_0x366482['getNodeByPath'](_0xe3f495)['getAttribute'](_0x4ad11a);this['_touched']['set'](_0x3e78f6,{'userId':_0x242318});}}}this['_startingRevisionId']=this['_revisionId'];const _0x6f4d9d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4bc8c4=>!this['_touched']['has'](_0x4bc8c4));let _0x4f015e=0x0;const _0x76c5d0=new Map();for(const _0x5b493e in _0x229ad2['diffData']){const _0x388937=_0x229ad2['diffData'][_0x5b493e]['attachChange'],_0x59fabc=_0x11d795(_0x229ad2['diffData'][_0x5b493e]['attributesAfter'])||{},_0x59292d=_0x5a538b['_makeModelFromViewString'](_0x229ad2['diffData'][_0x5b493e]['insertions']);_0x59292d['rootName']=_0x5b493e,_0x59292d['_isAttached']=!_0x388937||_0x388937['isAttached'],_0x59292d['isAttached']=()=>_0x59292d['_isAttached'],this['_diffRoots']['set'](_0x5b493e,_0x59292d),this['_diffRootsAttributes']['set'](_0x5b493e,_0x59fabc);const _0x4bf370=this['_makeIdsRoot'](_0x59292d,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5b493e,_0x4bf370),_0x76c5d0['set'](_0x5b493e,_0x59292d['isAttached']()?_0x59fabc:{});for(const [_0x1eb844,_0x59cb0f]of _0x59292d['markers']){if(!_0x1eb844['startsWith']('revision:'))continue;const _0x509883=_0x1eb844['split'](':')[0x2];for(const _0xa24910 of _0x59cb0f['getWalker']({'singleCharacters':!0x0})){const _0x357be8=this['_getVidAttributeName'](_0xa24910),_0x394faf=this['_revisionId']++,_0x38d2f3='elementEnd'==_0xa24910['type']?_0xa24910['previousPosition']['path']['slice'](0x0,-0x1):_0xa24910['previousPosition']['path'];_0x4bf370['getNodeByPath'](_0x38d2f3)['_setAttribute'](_0x357be8,_0x394faf),this['_touched']['set'](_0x394faf,{'userId':_0x509883});}}for(const _0x3351a9 of this['editor']['model']['createRangeIn'](_0x59292d)['getWalker']({'singleCharacters':!0x0})){const _0x318293=this['_getVidAttributeName'](_0x3351a9),_0x4af798='elementEnd'==_0x3351a9['type']?_0x3351a9['previousPosition']['path']['slice'](0x0,-0x1):_0x3351a9['previousPosition']['path'],_0x5bf23d=_0x4bf370['getNodeByPath'](_0x4af798);_0x5bf23d['getAttribute'](_0x318293)>0x0||_0x5bf23d['_setAttribute'](_0x318293,_0x6f4d9d[_0x4f015e++]);}for(const [_0xf97322,_0x2ce8e7]of _0x59292d['markers'])_0xf97322['startsWith']('revision:')||this['_markers']['set'](_0xf97322,_0x2ce8e7);}const _0x59a6bf=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x59a6bf),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x59a6bf,0x1));const _0x5d3261=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5d3261),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5d3261,0x1));const _0x3b6791=Array['from'](this['_diffRoots'])['map'](([_0x48856c,_0xd45c76])=>[_0x48856c,x(_0xd45c76)]);this['_saveMetaData'](this['_lastTo'],_0x3b6791,this['_markers'],_0x76c5d0);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1bb5b2,_0x10a462,_0xa0ba93,_0x58d173){const _0x5f4b35=new Map(_0x10a462),_0x4e8561=new Map(_0x11d795(_0x58d173)),_0x19ab18=new Map();for(const [_0x5d81a8,_0x4cdf6b]of _0xa0ba93)_0x19ab18['set'](_0x5d81a8,{'start':_0x4cdf6b['start']['clone'](),'end':_0x4cdf6b['end']['clone'](),'rootName':_0x4cdf6b['root']['rootName']});this['_savedMetaData']['set'](_0x1bb5b2,{'roots':_0x5f4b35,'markers':_0x19ab18,'rootsAttributes':_0x4e8561});}['_removeMetaData'](_0x2121d1){this['_savedMetaData']['delete'](_0x2121d1);}['_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'](_0x1e7a88,_0x422cf1=null){let _0x177eef=null;_0x1e7a88['is']('documentFragment')||(_0x177eef=new _0x599036(_0x1e7a88['name'],{'vid_start':null===_0x422cf1?this['_revisionId']++:_0x422cf1++}));const _0xe70239=[];for(const _0x404aa1 of _0x1e7a88['getChildren']())if(_0x404aa1['is']('element')){_0xe70239['push'](this['_makeIdsRoot'](_0x404aa1,_0x422cf1));const _0x1a5839=_0xe70239[_0xe70239['length']-0x1];null!==_0x422cf1&&(_0x422cf1=_0x1a5839['is']('element','$text')?_0x1a5839['getAttribute']('vid')+0x1:_0x1a5839['getAttribute']('vid_end')+0x1);}else{for(let _0x757c5e=0x0;_0x757c5e<_0x404aa1['offsetSize'];_0x757c5e++)_0xe70239['push'](new _0x599036('$text',{'vid':null===_0x422cf1?this['_revisionId']++:_0x422cf1++}));}if(_0x1e7a88['is']('documentFragment')){const _0x1e56f=N(_0x1e7a88['rootName']);return _0x1e56f['_insertChild'](0x0,_0xe70239),_0x1e56f;}return _0x177eef['_setAttribute']('vid_end',null===_0x422cf1?this['_revisionId']++:_0x422cf1++),_0x177eef['_insertChild'](0x0,_0xe70239),_0x177eef;}['_calculateMetaData'](_0x17d8a9,_0x1673f8,_0x3cb71b){this['_reset']();const {roots:_0x560d1e,markers:_0x35859c,rootsAttributes:_0x548a9a}=this['_savedMetaData']['get'](_0x17d8a9);this['_baseRoots']=new Map(_0x560d1e),this['_baseRootsAttributes']=new Map(_0x11d795(_0x548a9a));for(const [_0x3c841b,_0x191a7b]of this['_baseRoots'])if('$graveyard'!==_0x3c841b&&(this['_diffRoots']['set'](_0x3c841b,x(_0x191a7b)),this['_diffRootsAttributes']=new Map(_0x11d795(_0x548a9a)),_0x3cb71b)){const _0x11ffd2=this['_revisionId'];this['_idsRoots']['set'](_0x3c841b,this['_makeIdsRoot'](_0x191a7b)),this['_baseIdsRoots']['set'](_0x3c841b,this['_makeIdsRoot'](_0x191a7b,_0x11ffd2));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x3cb71b&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x729a6e,_0x3a97f7]of _0x35859c){const _0x488d71=this['_baseRoots']['get'](_0x3a97f7['rootName']),_0x3fe458=this['_diffRoots']['get'](_0x3a97f7['rootName']),_0x238c4c=new _0x573a12(this['_fixPosition'](_0x3a97f7['start'],_0x488d71),this['_fixPosition'](_0x3a97f7['end'],_0x488d71)),_0x1be794=this['_fixRange'](_0x238c4c,_0x3fe458);_0x488d71['markers']['set'](_0x729a6e,_0x238c4c),this['_markers']['set'](_0x729a6e,_0x1be794);}this['_applyOperations'](_0x17d8a9,_0x1673f8,_0x3cb71b);}['_applyOperations'](_0x4399f7,_0x19a592,_0xf7b71a){for(const _0x412c0c of this['source']['getOperations'](_0x4399f7,_0x19a592))this['_handleOperation'](_0x412c0c,_0xf7b71a);for(const _0x24ea27 of this['_diffRoots']['values']())_0x24ea27['markers']['clear']();for(const [_0x55eb44,_0x558d0c]of this['_markers']){this['_diffRoots']['get'](_0x558d0c['root']['rootName'])['markers']['set'](_0x55eb44,_0x558d0c['clone']());}const _0x20854c=new Map(),_0x1d8ed9=new Map();for(const [_0x24cf15,_0x42e4b1]of this['_diffRoots'])_0x20854c['set'](_0x24cf15,x(_0x42e4b1)),_0x1d8ed9['set'](_0x24cf15,this['_diffRootsAttributes']['get'](_0x24cf15));this['_saveMetaData'](_0x19a592,_0x20854c,this['_markers'],_0x1d8ed9);}['_getPreviousFrom'](_0x12c916){const _0x6c9201=Array['from'](this['_savedMetaData']['keys']());_0x6c9201['sort']((_0x49e72a,_0x24d2cb)=>_0x49e72a-_0x24d2cb),_0x6c9201['reverse']();for(const _0x2c1b52 of _0x6c9201)if(_0x2c1b52<_0x12c916)return _0x2c1b52;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4d61ee,_0x19828a){const _0x1559b5=Array['from'](_0x19828a['markers'])['map'](([_0x5a121d,_0x183835])=>[_0x5a121d,this['_fixRange'](_0x183835,_0x4d61ee)]);_0x4d61ee['markers']=new Map(_0x1559b5);}['_transformMarkers'](_0x2138b6){for(const _0x5d42b4 of this['_markers']['values']()){const _0x537ed6=_0x5d42b4['getTransformedByOperation'](_0x2138b6),_0x57ea46=_0x573a12['_createFromRanges'](_0x537ed6);_0x5d42b4['start']=_0x57ea46['start'],_0x5d42b4['end']=_0x57ea46['end'];}}['_handleOperation'](_0x3a0d5d,_0x1e7c1e){if('addRoot'!=_0x3a0d5d['type']&&'detachRoot'!=_0x3a0d5d['type']){if('insert'==_0x3a0d5d['type']){const _0x596c72=_0x3a0d5d['position']['root']['rootName'];this['_diffRoots']['has'](_0x596c72)||(this['_diffRoots']['set'](_0x596c72,N(_0x596c72,!0x0)),this['_diffRootsAttributes']['set'](_0x596c72,{}),_0x1e7c1e&&this['_idsRoots']['set'](_0x596c72,N(_0x596c72,!0x0)));}else{if('addRootAttribute'==_0x3a0d5d['type']||'removeRootAttribute'==_0x3a0d5d['type']||'changeRootAttribute'==_0x3a0d5d['type'])return void this['_handleRootAttributeOperation'](_0x3a0d5d);'marker'==_0x3a0d5d['type']&&this['_handleMarkerOperation'](_0x3a0d5d);}if('marker'!==_0x3a0d5d['type']){const _0x33e752=this['_cloneOperation'](_0x3a0d5d,this['_diffRoots']);_0x33e752['_execute'](),this['_transformMarkers'](_0x33e752);}if(_0x1e7c1e)switch(_0x3a0d5d['type']){case'insert':this['_handleInsertOperation'](_0x3a0d5d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3a0d5d);break;case'merge':this['_handleMergeOperation'](_0x3a0d5d);break;case'split':this['_handleSplitOperation'](_0x3a0d5d);}}else this['_handleRootOperation'](_0x3a0d5d,_0x1e7c1e);}['_cloneOperation'](_0x290716,_0x53e127){const _0x5e4102=_0x290716['clone']();return _0x5e4102['_authorId']=_0x290716['_authorId'],this['_fixOperation'](_0x5e4102,_0x53e127),_0x5e4102;}['_getBaseVids'](_0x21f17f){return _0x21f17f['map'](_0x1f06ff=>{const _0xb01371=this['_getVidAttributeName'](_0x1f06ff);return Number(_0x1f06ff['item']['getAttribute'](_0xb01371));});}['_generateTape'](_0x1290fb,_0x1f40af){if(_0x1290fb['is']('element','$text'))_0x1f40af['push']({'item':_0x1290fb,'type':'text'});else{_0x1290fb['is']('element')&&_0x1f40af['push']({'item':_0x1290fb,'type':'elementStart'});for(const _0x17ef74 of _0x1290fb['getChildren']())this['_generateTape'](_0x17ef74,_0x1f40af);_0x1290fb['is']('element')&&_0x1f40af['push']({'item':_0x1290fb,'type':'elementEnd'});}return _0x1f40af;}['_getState'](){const _0x24aba0=new Map(this['_touched']),_0x488026=new Map(_0x24aba0),_0x133508=new Map(),_0x4e4f63={'insertions':{},'deletions':{}},_0x4f0dc3={'insertions':{},'deletions':{}},_0x17ddf5=new Map(),_0x595215=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x595215['delete']('$graveyard');for(const _0x2d6cf4 of _0x595215){const _0x4cdff0=this['_diffRoots']['get'](_0x2d6cf4)||N(_0x2d6cf4,!0x1),_0x11fb4d=this['_baseRoots']['get'](_0x2d6cf4)||N(_0x2d6cf4,!0x1);_0x4cdff0['isAttached']()||_0x11fb4d['isAttached']()?(_0x4e4f63['insertions'][_0x2d6cf4]=x(_0x4cdff0),_0x4e4f63['deletions'][_0x2d6cf4]=x(_0x11fb4d),this['_copyMarkers'](_0x4e4f63['deletions'][_0x2d6cf4],_0x11fb4d),this['_copyMarkers'](_0x4e4f63['insertions'][_0x2d6cf4],_0x4cdff0),_0x4f0dc3['insertions'][_0x2d6cf4]=this['_generateTape'](this['_idsRoots']['get'](_0x2d6cf4),[]),_0x4f0dc3['deletions'][_0x2d6cf4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2d6cf4)||N(_0x2d6cf4,!0x1),[])):_0x595215['delete'](_0x2d6cf4);}for(const _0x3fc995 of _0x595215){const _0x4a0184=_0x4f0dc3['insertions'][_0x3fc995];for(const _0x3ba28d of _0x4a0184){const _0x2a4809=this['_getVidAttributeName'](_0x3ba28d),_0x38e0be=_0x3ba28d['item']['getAttribute'](_0x2a4809);_0x488026['delete'](_0x38e0be),_0x38e0be>=this['_startingRevisionId']&&_0x133508['set'](_0x38e0be,_0x24aba0['get'](_0x38e0be));}}for(const _0x382f47 of _0x595215){const _0x107a41=_0x4f0dc3['insertions'][_0x382f47],_0x2176f2=this['_getBaseVids'](_0x4f0dc3['deletions'][_0x382f47]);let _0x3a91f4=0x0;for(const _0x104850 of _0x107a41){const _0x527acc=this['_getVidAttributeName'](_0x104850),_0x2df53a=_0x104850['item']['getAttribute'](_0x527acc);if(!_0x133508['has'](_0x2df53a)&&!_0x17ddf5['has'](_0x2df53a)){if(_0x488026['has'](_0x2df53a))_0x3a91f4++;else{if(_0x2df53a!=_0x2176f2[_0x3a91f4]){const _0x592daa=_0x24aba0['get'](_0x2df53a)||_0x24aba0['get'](_0x2176f2[_0x3a91f4]);for(;_0x2df53a!=_0x2176f2[_0x3a91f4];)_0x488026['has'](_0x2176f2[_0x3a91f4])||(_0x17ddf5['set'](_0x2176f2[_0x3a91f4],_0x592daa),_0x24aba0['set'](_0x2176f2[_0x3a91f4],_0x592daa)),_0x3a91f4++;}_0x3a91f4++;}}}}for(const _0x2d63e4 of _0x595215){const _0x3f15d7=_0x4f0dc3['insertions'][_0x2d63e4];for(const _0x3650bf of _0x3f15d7){const _0x3aa400=this['_getVidAttributeName'](_0x3650bf),_0x263770=_0x3650bf['item']['getAttribute'](_0x3aa400);if(_0x17ddf5['has'](_0x263770)){const _0x3a5b68=_0x17ddf5['get'](_0x263770);_0x488026['has'](_0x263770)||_0x488026['set'](_0x263770,{..._0x3a5b68}),_0x133508['set'](_0x263770,{..._0x3a5b68});}}}for(const _0x1f0f9f of _0x488026['keys']())_0x1f0f9f>=this['_startingRevisionId']&&_0x488026['delete'](_0x1f0f9f);const _0x26f2a3=new Map();for(const _0x240dba of _0x595215){let _0x335183=_0x4f0dc3['insertions'][_0x240dba];for(const _0x432879 of _0x335183)if(_0x432879['item']['is']('element','tableCell')){const _0x3f91f8=this['_getVidAttributeName'](_0x432879),_0xdecf80=_0x432879['item']['getAttribute'](_0x3f91f8);if(_0x133508['has'](_0xdecf80)){const _0x1b3e1f=_0x432879['item']['parent']['parent']['getAttribute']('vid_start'),_0x4649bb=_0x26f2a3['get'](_0x1b3e1f)||new Set();_0x4649bb['add'](_0x133508['get'](_0xdecf80)['userId']),_0x26f2a3['set'](_0x1b3e1f,_0x4649bb);}}_0x335183=_0x4f0dc3['deletions'][_0x240dba];for(const _0x5074df of _0x335183)if(_0x5074df['item']['is']('element','tableCell')){const _0x4ea901=this['_getVidAttributeName'](_0x5074df),_0x171c45=_0x5074df['item']['getAttribute'](_0x4ea901);if(_0x488026['has'](_0x171c45)){const _0xae7de5=_0x5074df['item']['parent']['parent']['getAttribute']('vid_start'),_0x331692=_0x26f2a3['get'](_0xae7de5)||new Set();_0x331692['add'](_0x488026['get'](_0x171c45)['userId']),_0x26f2a3['set'](_0xae7de5,_0x331692);}}for(const _0x380156 of _0x26f2a3['keys']())(_0x133508['has'](_0x380156)||_0x488026['has'](_0x380156))&&_0x26f2a3['delete'](_0x380156);}for(const _0x4c204e of _0x595215){const _0x41bfd5=_0x4f0dc3['insertions'][_0x4c204e];let _0x24463d=null,_0x588669=null;for(const _0x3c7124 of _0x41bfd5){const _0x29ecd6=this['_getVidAttributeName'](_0x3c7124),_0x3d935f=_0x3c7124['item']['getAttribute'](_0x29ecd6),_0x218a28=_0x26f2a3['get'](_0x3d935f);_0x218a28&&'elementStart'==_0x3c7124['type']&&(_0x24463d=Array['from'](_0x218a28)[0x0],_0x588669=_0x3c7124['item']['getAttribute']('vid_end')),_0x24463d&&(_0x488026['set'](_0x3d935f,{'userId':_0x24463d}),_0x133508['set'](_0x3d935f,{'userId':_0x24463d})),_0x3d935f==_0x588669&&(_0x24463d=null,_0x588669=null);}}const _0x1e7f05={},_0x2ed90b=new Set();for(const _0x4bd6d2 of _0x595215){const _0x4c8ef9=_0x4e4f63['deletions'][_0x4bd6d2],_0x1a68a9=_0x4e4f63['insertions'][_0x4bd6d2];for(const {userId:_0x5f2162}of this['_touchedMarkers']['values']())null!==_0x5f2162&&_0x2ed90b['add'](_0x5f2162);for(const {userId:_0x2df9b0}of this['_touchedRoots']['values']())null!==_0x2df9b0&&_0x2ed90b['add'](_0x2df9b0);this['_markChanges'](_0x1a68a9,_0x4f0dc3['insertions'][_0x4bd6d2],_0x133508,'insertion',_0x2ed90b),this['_markChanges'](_0x4c8ef9,_0x4f0dc3['deletions'][_0x4bd6d2],_0x488026,'deletion',_0x2ed90b),_0x1e7f05[_0x4bd6d2]={'insertions':this['_prepareViewToSave'](_0x1a68a9),'deletions':this['_prepareViewToSave'](_0x4c8ef9),'attachChange':this['_touchedRoots']['get'](_0x4bd6d2)||null,'attributesBefore':_0x11d795(this['_baseRootsAttributes']['get'](_0x4bd6d2))||{},'attributesAfter':_0x11d795(this['_diffRootsAttributes']['get'](_0x4bd6d2))};}return{'diffData':_0x1e7f05,'authorsIds':Array['from'](_0x2ed90b)};}['_processRootBeforeSave'](_0x4b6da4){for(const [,_0x2f343b]of _0x4b6da4['markers']){const _0x5aa4a9=_0x2f343b['start']['getAncestors']()['filter'](_0x25235a=>'tableCell'==_0x25235a['name']);for(const _0x2ee2bc of _0x5aa4a9)0x1==_0x2ee2bc['childCount']&&_0x2ee2bc['getChild'](0x0)['is']('element','paragraph')&&_0x2ee2bc['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1b0e64){this['_processRootBeforeSave'](_0x1b0e64);const _0x3bff22=this['editor']['data']['toView'](_0x1b0e64,{}),_0x290b9c=Array['from'](_0x3bff22['getChildren']())['map'](_0x801587=>this['_getViewJson'](_0x801587));return JSON['stringify'](_0x290b9c);}['_getViewJson'](_0x362e45){if(_0x362e45['is']('$text'))return _0x362e45['data'];{const _0x488400=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x270e93=_0x362e45,_0xb14e4a=this['editor']['data']['htmlProcessor']['domConverter'],_0x130bb2={'type':_0x488400['_getTypeCharForViewElement'](_0x270e93),'name':_0x270e93['name'],'attributes':Array['from'](_0x270e93['getAttributes']()),'children':Array['from'](_0x270e93['getChildren']())['map'](_0x2d149d=>this['_getViewJson'](_0x2d149d))};if(_0x362e45['is']('uiElement')&&'$comment'!=_0x362e45['name']){const _0x38260a=_0x362e45['render'](_0xb14e4a['domDocument'],_0xb14e4a);_0x130bb2['children']['push'](_0x38260a['outerHTML']);}else{if(_0x362e45['is']('rawElement')){const _0x49ad6b=_0xb14e4a['domDocument']['createElement'](_0x270e93['name']);_0x362e45['render'](_0x49ad6b,_0xb14e4a),_0x130bb2['children']['push'](_0x49ad6b['innerHTML']);}}const _0x40def8=Array['from'](_0x270e93['getCustomProperties']());_0x40def8['length']>0x0&&(_0x130bb2['customProperties']=_0x40def8);const _0x354bd6=_0x270e93['getFillerOffset']();return null!==_0x354bd6&&(_0x130bb2['fillerOffset']=_0x354bd6),_0x130bb2;}}['_markChanges'](_0x42f3ef,_0x2547aa,_0x3c3dbd,_0x4dddf4,_0x4730eb){let _0x1d8c53=null,_0x201ae1=null,_0x155966=0x0;const _0xb64bb5=this['editor']['model'];for(let _0x436f8c=0x0;_0x436f8c<_0x2547aa['length'];_0x436f8c++){const _0x2d2822=this['_getVidAttributeName'](_0x2547aa[_0x436f8c]),_0x75abbe=_0x2547aa[_0x436f8c]['item']['getAttribute'](_0x2d2822),_0x3dbd45=_0x3c3dbd['get'](_0x75abbe),_0x19e6de=_0x436f8c==_0x2547aa['length']-0x1;(!_0x1d8c53&&_0x3dbd45&&(_0x1d8c53=_0x3dbd45,_0x201ae1=_0x2547aa[_0x436f8c]),_0x1d8c53&&(!_0x3dbd45||_0x3dbd45['userId']!=_0x1d8c53['userId']))&&(_0x74b484(_0x3dbd45,P(_0x201ae1,_0x42f3ef,_0xb64bb5),P(_0x2547aa[_0x436f8c],_0x42f3ef,_0xb64bb5)),_0x1d8c53=_0x3dbd45||null,_0x201ae1=_0x3dbd45?_0x2547aa[_0x436f8c]:null),_0x1d8c53&&_0x19e6de&&_0x74b484(_0x3dbd45,P(_0x201ae1,_0x42f3ef,_0xb64bb5),V(_0x2547aa[_0x436f8c],_0x42f3ef,_0xb64bb5));}function _0x74b484(_0x44e8b9,_0x3cc9a3,_0x872b4c){const _0x5d9eb4=_0x1d8c53['userId'],_0x58ef60='revision:'+_0x4dddf4+':'+_0x5d9eb4+':'+_0x155966++,_0x2c1c5c=_0xb64bb5['createRange'](_0x3cc9a3,_0x872b4c);_0x42f3ef['markers']['set'](_0x58ef60,_0x2c1c5c),null!==_0x5d9eb4&&_0x4730eb['add'](_0x5d9eb4);}}['_getVidAttributeName'](_0x19477d){switch(_0x19477d['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5d624f,_0x15c090){_0x5d624f['baseVersion']=null;for(const _0x16e253 in _0x5d624f){const _0x1c22be=_0x5d624f[_0x16e253];if(_0x1c22be instanceof _0x1d67e9){const _0x288b82=_0x15c090['get'](_0x1c22be['root']['rootName']);_0x5d624f[_0x16e253]=this['_fixPosition'](_0x1c22be,_0x288b82);}if(_0x1c22be instanceof _0x573a12){const _0x2faea0=_0x15c090['get'](_0x1c22be['root']['rootName']);_0x5d624f[_0x16e253]=this['_fixRange'](_0x1c22be,_0x2faea0);}'root'===_0x16e253&&(_0x5d624f['root']=_0x15c090['get'](_0x5d624f['root']['rootName']));}}['_fixRange'](_0xe58975,_0x565f44){return this['editor']['model']['createRange'](this['_fixPosition'](_0xe58975['start'],_0x565f44),this['_fixPosition'](_0xe58975['end'],_0x565f44));}['_fixPosition'](_0x2f356a,_0x226d8d){return this['editor']['model']['createPositionFromPath'](_0x226d8d,_0x2f356a['path'],_0x2f356a['stickiness']);}['_handleInsertOperation'](_0x546552){const _0x4c3b01=this['_idsRoots']['get'](_0x546552['position']['root']['rootName']),_0x47e1de=this['_fixPosition'](_0x546552['position'],_0x4c3b01),_0x3ce08e=null===_0x546552['_authorId']?null:_0x546552['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xc8a5b2=_0x47e1de['parent'],_0xd9573a=this['_revisionId'],_0x5554c8=[];for(const _0xff19ef of _0x546552['nodes'])if(_0xff19ef['is']('element'))_0x5554c8['push'](this['_makeIdsRoot'](_0xff19ef));else{for(let _0x33b92f=0x0;_0x33b92f<_0xff19ef['offsetSize'];_0x33b92f++)_0x5554c8['push'](new _0x599036('$text',{'vid':this['_revisionId']++}));}const _0x169ee0=this['_revisionId'];for(let _0x20ce8b=_0xd9573a;_0x20ce8b<_0x169ee0;_0x20ce8b++)this['_touched']['set'](_0x20ce8b,{'userId':_0x3ce08e});_0xc8a5b2['_insertChild'](_0x47e1de['offset'],_0x5554c8);}['_handleMoveOperation'](_0x4c96e0){(_0x4c96e0=this['_cloneOperation'](_0x4c96e0,this['_idsRoots']))['_execute']();const _0x37aed2=null===_0x4c96e0['_authorId']?null:_0x4c96e0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x27be67=_0x4c96e0['getMovedRangeStart'](),_0x3bb17d=_0x27be67['parent'],_0x3b0796=_0x27be67['offset'];!function _0x59395e(_0x5697a6,_0xfd4c09,_0x5c101b,_0x4ed72d){for(let _0x337c7b=_0x5c101b;_0x337c7b<_0x4ed72d;_0x337c7b++){const _0x23d54c=_0xfd4c09['getChild'](_0x337c7b);_0x23d54c['is']('element','$text')?_0x5697a6['set'](_0x23d54c['getAttribute']('vid'),{'userId':_0x37aed2}):(_0x5697a6['set'](_0x23d54c['getAttribute']('vid_start'),{'userId':_0x37aed2}),_0x59395e(_0x5697a6,_0x23d54c,0x0,_0x23d54c['childCount']),_0x5697a6['set'](_0x23d54c['getAttribute']('vid_end'),{'userId':_0x37aed2}));}}(this['_touched'],_0x3bb17d,_0x3b0796,_0x3b0796+_0x4c96e0['howMany']);}['_handleMergeOperation'](_0x43fe06){const _0x4cb53e=null===(_0x43fe06=this['_cloneOperation'](_0x43fe06,this['_idsRoots']))['_authorId']?null:_0x43fe06['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a09ff=_0x43fe06['targetPosition']['parent'],_0x14a3bf=_0x43fe06['sourcePosition']['parent'],_0x9960e3=_0x4a09ff['getAttribute']('vid_end'),_0x1fcd03=_0x14a3bf['getAttribute']('vid_start');_0x4a09ff['_setAttribute']('vid_end',_0x14a3bf['getAttribute']('vid_end')),_0x14a3bf['_setAttribute']('vid_end',_0x9960e3),this['_touched']['set'](_0x1fcd03,{'userId':_0x4cb53e}),this['_touched']['set'](_0x9960e3,{'userId':_0x4cb53e}),_0x43fe06['_execute']();}['_handleSplitOperation'](_0x3a011c){const _0x5d7e50=null===(_0x3a011c=this['_cloneOperation'](_0x3a011c,this['_idsRoots']))['_authorId']?null:_0x3a011c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e2d72=_0x3a011c['graveyardPosition'],_0x3dca25=_0x3a011c['splitPosition']['parent'];_0x3a011c['_execute']();const _0x204fdc=_0x3dca25['getAttribute']('vid_end'),_0x473b2e=_0x3a011c['insertionPosition']['nodeAfter'];if(_0x2e2d72){const _0x1e3efa=_0x473b2e['getAttribute']('vid_end'),_0xf5081a=_0x3dca25['getAttribute']('vid_end');_0x3dca25['_setAttribute']('vid_end',_0x1e3efa),_0x473b2e['_setAttribute']('vid_end',_0xf5081a),this['_touched']['set'](_0x3dca25['getAttribute']('vid_end'),{'userId':_0x5d7e50}),this['_touched']['set'](_0x473b2e['getAttribute']('vid_start'),{'userId':_0x5d7e50});}else{const _0x327637=this['_revisionId']++,_0xe4463=this['_revisionId']++;_0x3dca25['_setAttribute']('vid_end',_0x327637),_0x473b2e['_setAttribute']('vid_start',_0xe4463),_0x473b2e['_setAttribute']('vid_end',_0x204fdc),this['_touched']['set'](_0x327637,{'userId':_0x5d7e50}),this['_touched']['set'](_0xe4463,{'userId':_0x5d7e50});}}['_handleMarkerOperation'](_0x4211aa){if(!_0x4211aa['affectsData'])return;const _0x5c8d3b=(_0x4211aa=this['_cloneOperation'](_0x4211aa,this['_diffRoots']))['oldRange']?_0x4211aa['oldRange']['root']:null,_0x388c42=_0x4211aa['newRange']?_0x4211aa['newRange']['root']:null;_0x5c8d3b&&this['_markers']['delete'](_0x4211aa['name']),_0x388c42&&this['_markers']['set'](_0x4211aa['name'],_0x4211aa['newRange']['clone']());const _0x233344=null===_0x4211aa['_authorId']?null:_0x4211aa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x524c93=_0x4211aa['name'];if(!this['_touchedMarkers']['has'](_0x524c93))return void this['_touchedMarkers']['set'](_0x524c93,{'range':_0x4211aa['oldRange'],'userId':_0x233344});const _0x1215e3=this['_touchedMarkers']['get'](_0x524c93),_0x4fd4ed=_0x1215e3['range'],_0x5c3a49=_0x4211aa['newRange'];null==_0x4fd4ed&&null==_0x5c3a49||_0x4fd4ed&&_0x5c3a49&&_0x4fd4ed['isEqual'](_0x5c3a49)?this['_touchedMarkers']['delete'](_0x4211aa['name']):_0x1215e3['userId']=_0x233344;}['_handleRootOperation'](_0x341ea5,_0x8e35b9){this['_diffRoots']['has'](_0x341ea5['rootName'])?this['_diffRoots']['get'](_0x341ea5['rootName'])['_isAttached']=_0x341ea5['isAdd']:(this['_diffRoots']['set'](_0x341ea5['rootName'],N(_0x341ea5['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x341ea5['rootName'],{}),_0x8e35b9&&this['_idsRoots']['set'](_0x341ea5['rootName'],N(_0x341ea5['rootName'],!0x0)));const _0x55f94c=null===_0x341ea5['_authorId']?null:_0x341ea5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a71c6=this['_touchedRoots']['get'](_0x341ea5['rootName']);_0x5a71c6&&_0x5a71c6['userId']===_0x55f94c?this['_touchedRoots']['delete'](_0x341ea5['rootName']):this['_touchedRoots']['set'](_0x341ea5['rootName'],{'userId':_0x55f94c,'isAttached':_0x341ea5['isAdd']});}['_handleRootAttributeOperation'](_0xcce43d){const _0x4bb411=this['_diffRootsAttributes']['get'](_0xcce43d['root']['rootName']);null===_0xcce43d['newValue']?delete _0x4bb411[_0xcce43d['key']]:_0x4bb411[_0xcce43d['key']]=_0xcce43d['newValue'];}}function x(_0x27b760){const _0x2b5a9c=N(_0x27b760['rootName'],_0x27b760['isAttached']());for(const _0x313c57 of _0x27b760['getChildren']()){const _0x3a95fa=_0x313c57['_clone'](!0x0);_0x2b5a9c['_appendChild'](_0x3a95fa);}return _0x2b5a9c;}function N(_0x3502a9,_0x4051b6=!0x0){const _0x3551fa=new _0x4c0b22();return _0x3551fa['rootName']=_0x3502a9,_0x3551fa['_isAttached']=_0x4051b6,_0x3551fa['isAttached']=()=>_0x3551fa['_isAttached'],_0x3551fa;}function P(_0x14cf74,_0x52b469,_0x48542f){const _0x5dd07b='elementEnd'==_0x14cf74['type']?_0x48542f['createPositionAt'](_0x14cf74['item'],'end'):_0x48542f['createPositionBefore'](_0x14cf74['item']);return _0x48542f['createPositionFromPath'](_0x52b469,_0x5dd07b['path'],_0x5dd07b['stickiness']);}function V(_0x5d6db6,_0x16e7d9,_0x904a4){const _0x239c6e='elementStart'==_0x5d6db6['type']?_0x904a4['createPositionAt'](_0x5d6db6['item'],0x0):_0x904a4['createPositionAfter'](_0x5d6db6['item']);return _0x904a4['createPositionFromPath'](_0x16e7d9,_0x239c6e['path'],_0x239c6e['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x250264(_0x289a06){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5d37f4,_0x236a05){super(_0x5d37f4),this['focusTracker']=new _0x59744e(),this['keystrokes']=new _0x52a663(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x236a05),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x324c76({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x6ea81b=_0x503398=>_0x503398['stopPropagation']();this['keystrokes']['set']('arrowright',_0x6ea81b),this['keystrokes']['set']('arrowleft',_0x6ea81b),this['keystrokes']['set']('arrowup',_0x6ea81b),this['keystrokes']['set']('arrowdown',_0x6ea81b);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2fd6c7){this['revisionNameInputView']['fieldView']['element']['value']=_0x2fd6c7['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x39b7ad){const _0x364686=new ti(this['locale'],_0x104191),_0x148051=_0x364686['fieldView'];_0x148051['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x39d9f3=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x39b7ad&&(_0x39d9f3+='\x20('+R(this['locale'],'optional')+')'),(_0x364686['label']=_0x39d9f3,_0x148051['on']('input',()=>{this['revisionNameInputValue']=_0x148051['element']['value']['trim']();}),_0x364686);}}class v extends _0x557a5e{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x4b1fb9=this['editor'],_0x324a7f=_0x4b1fb9['plugins']['get']('RevisionTracker');_0x4b1fb9['ui']['componentFactory']['add']('revisionHistory',_0x58ca88=>{const _0x336791=_0x10ddda(_0x58ca88),_0x317b15=_0x336791['panelView']['children'],_0x39373d=new _0x1a06ac(_0x58ca88),_0x142cff=new _0x45ee3c(_0x58ca88),_0xafafa0=new _0x42cd9a(_0x58ca88),_0x4b8f32=new _0x45ee3c(_0x58ca88),_0x4c41a5=new _0x42cd9a(_0x58ca88);return _0x336791['bind']('isEnabled')['to'](_0x324a7f,'isReady',_0x324a7f,'isEnabled',_0x4b1fb9,'isReadOnly',(_0x183803,_0x2d612b,_0x2ba70c)=>_0x183803&&_0x2d612b&&!_0x2ba70c),_0x336791['buttonView']['set']({'icon':_0x205745,'label':R(_0x58ca88,'Revision\x20history'),'tooltip':!0x0}),_0xafafa0['set']({'label':R(_0x58ca88,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xafafa0['bind']('isEnabled')['to'](_0x324a7f,'isReady',_0x324a7f,'isEnabled',_0x4b1fb9,'isReadOnly',(_0x2d281f,_0x5462e5,_0x39543c)=>_0x2d281f&&_0x5462e5&&!_0x39543c),_0xafafa0['on']('execute',()=>this['_showDialog']()),_0x4c41a5['set']({'label':R(_0x58ca88,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4c41a5['bind']('isEnabled')['to'](_0x324a7f,'isReady',_0x4b1fb9,'isReadOnly',(_0x385376,_0x42b111)=>_0x385376&&!_0x42b111),_0x4c41a5['on']('execute',()=>{_0x4b1fb9['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x336791['isOpen']=!0x1,_0x4b1fb9['editing']['view']['focus']();}),_0x142cff['children']['add'](_0xafafa0),_0x4b8f32['children']['add'](_0x4c41a5),_0x39373d['role']='menu',_0x39373d['items']['addMany']([_0x142cff,_0x4b8f32]),_0x317b15['add'](_0x39373d),_0x336791;}),_0x4b1fb9['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xbc52bc=this['editor'],_0x355944=_0xbc52bc['locale'],_0x44a078=new _0x2fbdef(_0x355944),_0x2e5b3f=new _0x55a029(_0x355944);_0x44a078['buttonView']['set']({'icon':_0x205745,'label':R(_0x355944,'Revision\x20history')});const _0x2c463d=new _0x1da77a(_0x355944,_0x44a078),_0x1d462a=new _0x1eb01a(_0x355944);_0x1d462a['set']({'label':R(_0x355944,'Save\x20current\x20revision')}),_0x1d462a['delegate']('execute')['to'](_0x44a078),_0x1d462a['on']('execute',()=>{this['_showDialog']();}),_0x2c463d['children']['add'](_0x1d462a),_0x2e5b3f['items']['add'](_0x2c463d);const _0x1883e1=new _0x1da77a(_0x355944,_0x44a078),_0x5b551c=new _0x1eb01a(_0x355944);return _0x5b551c['set']({'label':R(_0x355944,'Open\x20revision\x20history')}),_0x5b551c['delegate']('execute')['to'](_0x44a078),_0x5b551c['on']('execute',()=>{_0xbc52bc['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1883e1['children']['add'](_0x5b551c),_0x2e5b3f['items']['add'](_0x1883e1),_0x44a078['panelView']['children']['add'](_0x2e5b3f),_0x44a078;}['_showDialog'](){const _0x482595=this['editor'],_0x277d9f=_0x482595['locale'],_0x5be814=_0x482595['plugins']['get']('Dialog'),_0x4b1ee6=_0x482595['plugins']['get']('RevisionTracker');function _0x1e4ff0(_0x2c47a0){_0x482595['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2c47a0['revisionName']?_0x2c47a0['revisionNameInputView']['errorText']=R(_0x277d9f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x482595['plugins']['get'](h)['saveRevision']({'name':_0x2c47a0['revisionName']}),_0x5be814['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1e4ff0(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5be814['show']({'id':'revisionSave','title':R(_0x277d9f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x482595['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5be814['hide']()},{'label':R(_0x482595['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x34c0a3){_0x34c0a3['bind']('isEnabled')['to'](_0x4b1ee6,'isReady',_0x4b1ee6,'isEnabled',_0x482595,'isReadOnly',(_0x16a946,_0x1e8ef2,_0x30911b)=>_0x16a946&&_0x1e8ef2&&!_0x30911b);},'onExecute':()=>_0x1e4ff0(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x36c57d=this['editor'],_0x29f1ac=_0x36c57d['locale'];this['_saveRevisionFormView']=new he(_0x29f1ac,_0x36c57d['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x289a06{['changeId'];['_model'];constructor(_0x300b6b,_0x145ddd){super(_0x300b6b),this['_model']=_0x145ddd,this['changeId']=_0x145ddd['id'];const _0x50cb67=this['bindTemplate'],_0x4ae19c=R(_0x300b6b,_0x145ddd['data']['isSuggestion']?'Suggested\x20by':'add'==_0x145ddd['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x145ddd['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x50cb67['to']('type',_0x588616=>'ck-revision-change__'+_0x588616)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4ae19c}]},{'text':'\x20'+_0x145ddd['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x5d4f77(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x26fde4){super(),this['id']=_0x26fde4['id']||_0x5bd0bf(),this['author']=_0x26fde4['author'],this['type']=_0x26fde4['type'],this['data']=_0x26fde4['data']||{},this['rootName']=_0x26fde4['rootName'],this['set']('createdAt',_0x26fde4['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x46b438,_0x67d533){this['newRevisionId']=_0x46b438,this['oldRevisionId']=_0x67d533,this['changes']=new _0x50c032();}['_setChanges'](_0x2b3e1e){for(const _0x2edb9e of _0x2b3e1e)this['changes']['add'](_0x2edb9e);}}class l extends _0x557a5e{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2bd141,_0x207472,S,$];}constructor(_0x54390b){super(_0x54390b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x15fefa,_0x1e8b96,_0x2baf9d)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x92154=>{for(const _0x4510a0 of this['editor']['editing']['view']['document']['roots'])_0x2baf9d?_0x92154['removeClass']('ck-editor__editable__overlay',_0x4510a0):_0x92154['addClass']('ck-editor__editable__overlay',_0x4510a0);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x46bdd1=>null!==_0x46bdd1),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x480f0d,_0x3067f6,_0x5a82c2)=>_0x480f0d&&_0x5a82c2?_0x3067f6['changes']['getIndex'](_0x5a82c2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3255e6,_0x182742)=>_0x3255e6?_0x182742['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x207472);}['init'](){const _0x5d80ef=this['editor'],_0x3881f5=new ot(_0x5d80ef,{'direction':'backward'}),_0x49e0cc=new ot(_0x5d80ef,{'direction':'forward'});(_0x5d80ef['commands']['add']('showPreviousChange',_0x3881f5),_0x5d80ef['commands']['add']('showNextChange',_0x49e0cc),_0x5d80ef['commands']['add']('restoreRevision',new nt(_0x5d80ef)),this['on']('change:numberOfChanges',()=>{_0x3881f5['refresh'](),_0x49e0cc['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5d80ef['enableReadOnlyMode']('revision-viewer'),_0x5d80ef['plugins']['has']('WidgetToolbarRepository'))&&_0x5d80ef['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x350df6){return await this['_utils']['loadRevisionData'](_0x350df6,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x350df6);}async['getRevisionRootsAttributes'](_0x8793c1){return await this['_utils']['loadRevisionData'](_0x8793c1,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x8793c1);}async['compare'](_0x4874a5,_0x35be97,_0x3b43f6=!0x1){if(!this['isEnabled'])return;const _0x36864d=this['diff'],_0x1bd658=this['repository'],_0x11fdca='string'==typeof _0x4874a5?_0x1bd658['getRevision'](_0x4874a5):_0x4874a5,_0x74211b='string'==typeof _0x35be97?_0x1bd658['getRevision'](_0x35be97):_0x35be97,_0x3e5d65=_0x11fdca['id'],_0x489b10=_0x74211b?_0x74211b['id']:null;if(!_0x3b43f6&&this['diff']&&this['diff']['newRevisionId']===_0x3e5d65&&this['diff']['oldRevisionId']===_0x489b10)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x3e5d65,_0x489b10);const _0x161bac=this['_getRevisionsRange'](_0x11fdca,_0x74211b,!0x0)['map'](_0x57e901=>this['_utils']['loadRevisionData'](_0x57e901,this['adapter']));return _0x161bac['push'](new Promise(_0x2d06af=>{setTimeout(_0x2d06af,0x14);})),Promise['all'](_0x161bac)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3d4e1d=this['_getDiff'](_0x3e5d65,_0x489b10);for(const _0x2fc0bc of _0x3d4e1d['changes'])this['_changeIdToChange']['set'](_0x2fc0bc['id'],_0x2fc0bc);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5a8628=>{for(const _0x2c8a14 of this['editor']['model']['document']['getRootNames']())_0x5a8628['detachRoot'](_0x2c8a14);for(const _0x547763 of Object['keys'](_0x3d4e1d['model'])){const _0x2c0e3c=_0x5a8628['addRoot'](_0x547763);for(const _0x4bba41 of Object['keys'](_0x3d4e1d['attributes'][_0x547763]))_0x5a8628['setAttribute'](_0x4bba41,_0x3d4e1d['attributes'][_0x547763][_0x4bba41],_0x2c0e3c);_0x5a8628['insert'](_0x3d4e1d['model'][_0x547763],_0x2c0e3c,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3d4e1d['changes'])),this['isReady']=!0x0;})['catch'](_0x50dcaa=>{console['error'](_0x50dcaa),this['_cleanUp'](),_0x36864d&&(this['diff']=_0x36864d),this['isReady']=!0x0;});}['addRevisionData'](_0x3204dc,_0x4a4bb5){const _0x55efd1=this['repository']['createRevision'](_0x3204dc);return _0x55efd1['on']('_update',(_0x4125da,_0x5092a1,_0x47450f)=>_0x4a4bb5(_0x5092a1,_0x47450f,_0x55efd1)),this['repository']['addRevision'](_0x55efd1),_0x55efd1;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x441234=>{for(const _0x205e0d of this['editor']['model']['document']['getRootNames']())_0x441234['detachRoot'](_0x205e0d);});}['_sortAndFilterDiffChanges'](_0x240235){const _0x2919ff=[],_0x200ba7=new Map();for(const _0x5c7610 of this['editor']['model']['document']['getRootNames']()){const _0x2aa51f=this['editor']['editing']['view']['getDomRoot'](_0x5c7610);if(!_0x2aa51f)continue;const _0x442fb7=_0x2aa51f['getClientRects']()['item'](0x0);_0x442fb7&&(_0x2919ff['push'](_0x5c7610),_0x200ba7['set'](_0x5c7610,_0x442fb7));}return _0x2919ff['sort']((_0x26620a,_0x10e5e6)=>{const _0x300236=_0x200ba7['get'](_0x26620a),_0x322c6e=_0x200ba7['get'](_0x10e5e6);return _0x300236['y']-_0x322c6e['y']||_0x300236['x']-_0x322c6e['x'];}),(_0x240235=_0x240235['filter'](_0x56e4c7=>_0x2919ff['includes'](_0x56e4c7['rootName'])))['sort']((_0x250194,_0x5e8b31)=>_0x2919ff['indexOf'](_0x250194['rootName'])-_0x2919ff['indexOf'](_0x5e8b31['rootName'])),_0x240235;}['_makeTape'](_0x30e78d){const _0x364bda=Array['from'](_0x30e78d['markers'])['filter'](([_0x118c9,_0x134b6b])=>_0x118c9['startsWith']('revision:')&&!_0x134b6b['isCollapsed']),_0x4f80b7=Array['from'](this['editor']['model']['createRangeIn'](_0x30e78d)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x364bda['length'])for(const _0x116db7 of _0x4f80b7){const [_0x2d993a,_0x16d4d0]=_0x364bda[0x0],[,_0x4806c7,_0x1be99e]=_0x2d993a['split'](':');if(_0x16d4d0['end']['isEqual'](_0x116db7['nextPosition'])&&_0x364bda['shift'](),(_0x116db7['previousPosition']['isEqual'](_0x16d4d0['start'])||_0x116db7['previousPosition']['isAfter'](_0x16d4d0['start']))&&('insertion'==_0x4806c7?_0x116db7['isAdded']={'userId':_0x1be99e}:'deletion'==_0x4806c7&&(_0x116db7['isRemoved']={'userId':_0x1be99e})),0x0==_0x364bda['length'])break;}return _0x4f80b7;}['_refreshStartEndIndex'](_0xd9d703){const _0x561f34=new Map();for(let _0x4a83e1=0x0;_0x4a83e1<_0xd9d703['length'];_0x4a83e1++)'text'===_0xd9d703[_0x4a83e1]['type']?(_0xd9d703[_0x4a83e1]['item']['startIndex']=_0x4a83e1,_0xd9d703[_0x4a83e1]['item']['endIndex']=_0x4a83e1):('elementStart'===_0xd9d703[_0x4a83e1]['type']?_0xd9d703[_0x4a83e1]['item']['startIndex']=_0x4a83e1:'elementEnd'===_0xd9d703[_0x4a83e1]['type']&&(_0xd9d703[_0x4a83e1]['item']['endIndex']=_0x4a83e1),_0x561f34['set'](_0xd9d703[_0x4a83e1]['id'],_0x4a83e1));for(const _0x5d93aa of _0x561f34['values']())'elementStart'===_0xd9d703[_0x5d93aa]['type']?_0xd9d703[_0x5d93aa]['item']['endIndex']=_0x561f34['get'](_0xd9d703[_0x5d93aa]['pairId']):'elementEnd'===_0xd9d703[_0x5d93aa]['type']&&(_0xd9d703[_0x5d93aa]['item']['startIndex']=_0x561f34['get'](_0xd9d703[_0x5d93aa]['pairId']));}['_processTape'](_0x124d70){for(let _0x56a46e=0x0;_0x56a46e<_0x124d70['length'];_0x56a46e++){if('elementStart'===_0x124d70[_0x56a46e]['type'])_0x124d70[_0x56a46e]['item']['startIndex']=_0x56a46e;else{if('elementEnd'===_0x124d70[_0x56a46e]['type']){_0x124d70[_0x56a46e]['item']['endIndex']=_0x56a46e;const _0x30baa2=_0x124d70[_0x56a46e]['item']['startIndex'];_0x124d70[_0x30baa2]['pairId']=_0x124d70[_0x56a46e]['id'],_0x124d70[_0x56a46e]['pairId']=_0x124d70[_0x30baa2]['id'];}else _0x124d70[_0x56a46e]['item']['startIndex']=_0x56a46e,_0x124d70[_0x56a46e]['item']['endIndex']=_0x56a46e,_0x124d70[_0x56a46e]['pairId']=null;}_0x124d70[_0x56a46e]['markersStart']||(_0x124d70[_0x56a46e]['markersStart']=[],_0x124d70[_0x56a46e]['markersEnd']=[]);}}['_markInsertions'](_0x2d09a7,_0x846cf5){const _0x74c01=_0x2d09a7['filter'](_0x5becac=>!_0x5becac['isAdded']);for(let _0x144d70=0x0;_0x144d70<_0x846cf5['length'];_0x144d70++)_0x846cf5[_0x144d70]['isAdded']&&(_0x74c01[_0x144d70]['isAdded']=_0x846cf5[_0x144d70]['isAdded']);}['_getDiff'](_0x23f5b6,_0x2f310d=null){const _0x314d90=this['repository']['getRevision'](_0x23f5b6),_0x59ec85=_0x2f310d?this['repository']['getRevision'](_0x2f310d):null,_0x46787a=this['_getRevisionsRange'](_0x314d90,_0x59ec85),_0x5ee12d=_0x46787a[_0x46787a['length']-0x1],_0x15f827=new Map(),_0x595270={'model':{},'attributes':{},'changes':[]},_0x11d1c2=new Set(),_0x1f8849=new Map();for(let _0x3a9655=_0x46787a['length']-0x1;_0x3a9655>=0x0;_0x3a9655--){const _0x3e18a1=_0x46787a[_0x3a9655];for(const _0x2675b1 of Object['keys'](_0x3e18a1['diffData']))if(_0x3e18a1['diffData'][_0x2675b1]['attachChange']){const _0x4f20be=_0x3e18a1['diffData'][_0x2675b1]['attachChange'];_0x4f20be['isAttached']?(_0x11d1c2['add'](_0x2675b1),_0x1f8849['has'](_0x2675b1)&&_0x1f8849['get'](_0x2675b1)['userId']==_0x4f20be['userId']?_0x1f8849['delete'](_0x2675b1):_0x1f8849['set'](_0x2675b1,_0x4f20be)):_0x1f8849['has'](_0x2675b1)?(_0x11d1c2['delete'](_0x2675b1),_0x1f8849['delete'](_0x2675b1)):(_0x11d1c2['add'](_0x2675b1),_0x1f8849['set'](_0x2675b1,_0x4f20be));}else _0x11d1c2['add'](_0x2675b1);}for(const _0x38f384 of _0x11d1c2){const _0x124589=_0x1f8849['has'](_0x38f384)&&!_0x1f8849['get'](_0x38f384)['isAttached'];let _0x377636=_0x124589?_0x46787a['length']-0x1:0x0;const _0x55d235=_0x124589?-0x1:0x1;for(;_0x46787a[_0x377636];){const _0x37654d=_0x46787a[_0x377636];if(_0x37654d['diffData'][_0x38f384]){const _0x955ec9=_0x124589?_0x37654d['diffData'][_0x38f384]['attributesBefore']:_0x37654d['diffData'][_0x38f384]['attributesAfter'];_0x595270['attributes'][_0x38f384]=_0x955ec9?_0x11d795(_0x955ec9):{};break;}_0x377636+=_0x55d235;}}for(const _0x33630d of _0x46787a){_0x33630d['model']={};for(const _0x1f9af5 of _0x33630d['authors'])_0x15f827['set'](_0x1f9af5['id'],_0x1f9af5);for(const _0x4ff991 of _0x11d1c2){const _0x520d04=_0x33630d['diffData'][_0x4ff991]?_0x33630d['diffData'][_0x4ff991]['insertions']:'[]',_0x129932=_0x33630d['diffData'][_0x4ff991]?_0x33630d['diffData'][_0x4ff991]['deletions']:'[]';_0x33630d['model'][_0x4ff991]={'insertions':this['_utils']['_makeModelFromViewString'](_0x520d04),'deletions':this['_utils']['_makeModelFromViewString'](_0x129932)};}}for(const _0x28d17b of _0x11d1c2){let _0x541ea8=null,_0x2847a4=0x0;const _0x4279a8=new Map(Array['from'](_0x314d90['model'][_0x28d17b]['insertions']['markers'])['filter'](([_0x2bb986])=>!_0x2bb986['startsWith']('revision:')));let _0x3e1323=0x0;for(const _0x2dba86 of _0x46787a){const _0x10835c=this['_makeTape'](_0x2dba86['model'][_0x28d17b]['insertions']);_0x2dba86==_0x314d90?(_0x541ea8=_0x10835c,_0x2847a4=_0x541ea8['length'],_0x541ea8['forEach'](_0xc8cef2=>{_0xc8cef2['id']=_0x3e1323++;}),this['_processTape'](_0x541ea8)):this['_markInsertions'](_0x541ea8,_0x10835c);const _0x51a3cc=_0x541ea8['filter'](_0x29c2f8=>!_0x29c2f8['isAdded'])['map'](_0x27b3c4=>_0x27b3c4['id']);let _0x2db14e=0x0;const _0x567ac9=this['_makeTape'](_0x2dba86['model'][_0x28d17b]['deletions']);_0x567ac9['forEach'](_0x3b8004=>{_0x3b8004['isRemoved']?_0x3b8004['id']=_0x2847a4++:_0x3b8004['id']=_0x51a3cc[_0x2db14e++];}),this['_processTape'](_0x567ac9),this['_setDistance'](_0x541ea8,'isAdded'),this['_setDistance'](_0x567ac9,'isRemoved'),_0x2dba86==_0x314d90&&this['_markMarkers'](_0x541ea8,_0x4279a8),_0x541ea8=this['_joinTapes'](_0x541ea8,_0x567ac9),this['_refreshStartEndIndex'](_0x541ea8),this['_setDistance'](_0x541ea8,'isRemoved');}_0x541ea8=_0x541ea8['filter'](_0x5001df=>!(_0x5001df['isAdded']&&_0x5001df['isRemoved']));const _0x17978f=new Map(_0x5ee12d['model'][_0x28d17b]['deletions']['markers']),_0x813a8b=new Set(_0x4279a8['keys']());for(const _0x4cb0d0 of _0x17978f['keys']())_0x813a8b['delete'](_0x4cb0d0);this['_markSuggestions'](_0x541ea8,_0x813a8b),this['_fixObsoleteTags'](_0x541ea8),_0x541ea8=this['_removeMissingPairs'](_0x541ea8),_0x541ea8=this['_markMismatchedRemovedTags'](_0x541ea8),_0x541ea8=this['_removeUnsupportedChanges'](_0x541ea8);const {root:_0x2a8fee,changes:_0x9b5249}=this['_makeModelFromTape'](_0x541ea8,_0x15f827,_0x28d17b);_0x595270['model'][_0x28d17b]=_0x2a8fee;const _0x34aad8=_0x1f8849['get'](_0x28d17b);if(_0x34aad8){const _0x3981db=_0x15f827['get'](_0x34aad8['userId']),_0x1ce0ac=new G({'author':_0x3981db,'type':_0x34aad8['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x28d17b});_0x9b5249['unshift'](_0x1ce0ac),_0x595270['attributes'][_0x28d17b]['revisionHistoryAttachChange']=_0x1ce0ac['id'];}_0x595270['changes']=_0x595270['changes']['concat'](_0x9b5249);}return _0x595270;}['_markMarkers'](_0x55be07,_0x192e20){for(let _0x417981=0x0;_0x417981<_0x55be07['length'];_0x417981++)for(const [_0x359593,_0x5836fd]of _0x192e20)!_0x5836fd['isCollapsed']&&_0x5836fd['start']['isEqual'](_0x55be07[_0x417981]['previousPosition'])&&_0x55be07[_0x417981]['markersStart']['push'](_0x359593),_0x5836fd['end']['isEqual'](_0x55be07[_0x417981]['nextPosition'])&&_0x55be07[_0x417981]['markersEnd']['push'](_0x359593);}['_joinTapes'](_0x4dd43b,_0x34bd4c){let _0x17ec16=[],_0x182cec=0x0,_0x163769=0x0;for(;_0x182cec<_0x4dd43b['length']||_0x163769<_0x34bd4c['length'];){const _0x2dfd1a=_0x4dd43b[_0x182cec]||{},_0x5e0379=_0x34bd4c[_0x163769]||{};if(_0x2dfd1a['id']==_0x5e0379['id'])_0x182cec++,_0x163769++,_0x17ec16['push'](_0x2dfd1a);else{if(_0x5e0379['isRemoved']&&_0x2dfd1a['isAdded']){const {commonTape:_0x3cd945,iEnd:_0x5b3ade,jEnd:_0x5d5e05}=this['_threeWayMerge'](_0x4dd43b,_0x182cec,_0x34bd4c,_0x163769);_0x17ec16=_0x17ec16['concat'](_0x3cd945),_0x182cec=_0x5b3ade,_0x163769=_0x5d5e05;}else _0x5e0379['isRemoved']?(_0x163769++,_0x17ec16['push'](_0x5e0379)):(_0x182cec++,_0x17ec16['push'](_0x2dfd1a));}}return _0x17ec16;}['_markSuggestions'](_0x4b424c,_0x292b37){const _0x392e6c=[];for(let _0x24e6f0=0x0;_0x24e6f0<_0x4b424c['length'];_0x24e6f0++){for(let _0x266a5b=0x0;_0x266a5b<_0x4b424c[_0x24e6f0]['markersStart']['length'];_0x266a5b++){const _0x2f031f=_0x4b424c[_0x24e6f0]['markersStart'][_0x266a5b];if(!_0x292b37['has'](_0x2f031f))continue;const {group:_0x40de38,type:_0x458155,authorId:_0x23606d}=_0x2c6bb5(_0x2f031f);'revision-suggestion'!=_0x40de38||'insertion'!=_0x458155&&'deletion'!=_0x458155||(_0x392e6c['unshift']({'type':_0x458155,'name':_0x2f031f,'userId':_0x23606d}),_0x4b424c[_0x24e6f0]['markersStart']['splice'](_0x266a5b,0x1),_0x266a5b--);}_0x4b666e(_0x4b424c[_0x24e6f0]);for(let _0x17e805=0x0;_0x17e805<_0x4b424c[_0x24e6f0]['markersEnd']['length'];_0x17e805++){const _0x58d961=_0x4b424c[_0x24e6f0]['markersEnd'][_0x17e805];if(!_0x292b37['has'](_0x58d961))continue;const {group:_0x16c188,type:_0x4c3560}=_0x2c6bb5(_0x58d961);if('revision-suggestion'!=_0x16c188||'insertion'!=_0x4c3560&&'deletion'!=_0x4c3560)continue;_0x4b424c[_0x24e6f0]['markersEnd']['splice'](_0x17e805,0x1),_0x17e805--;const _0x19af8d=_0x392e6c['findIndex'](_0x651d7c=>_0x651d7c['name']==_0x58d961);_0x19af8d>-0x1&&_0x392e6c['splice'](_0x19af8d,0x1);}}function _0x2c6bb5(_0x582dc4){const _0x2d3da3=_0x582dc4['split'](':');return{'group':_0x2d3da3[0x0],'type':_0x2d3da3[0x1],'subType':_0x2d3da3['length']>=0x5?_0x2d3da3[0x2]:null,'id':_0x2d3da3['length']<0x5?_0x2d3da3[0x2]:_0x2d3da3[0x3],'authorId':_0x2d3da3['length']<0x5?_0x2d3da3[0x3]:_0x2d3da3[0x4],'markerCount':0x6==_0x2d3da3['length']?_0x2d3da3[0x5]:null};}function _0x4b666e(_0x369bd4){for(let _0x547cc7=0x0;_0x547cc7<_0x392e6c['length'];_0x547cc7++){if(_0x369bd4['isAdded']&&'insertion'==_0x392e6c[_0x547cc7]['type']&&_0x369bd4['isAdded']['userId']==_0x392e6c[_0x547cc7]['userId'])return _0x369bd4['isAddSuggestion']=_0x392e6c[_0x547cc7],void delete _0x369bd4['isAdded'];if(!_0x369bd4['isAdded']&&!_0x369bd4['isRemoved']&&'deletion'==_0x392e6c[_0x547cc7]['type'])return void(_0x369bd4['isRemoveSuggestion']=_0x392e6c[_0x547cc7]);}}}['_setDistance'](_0xb6f8c1,_0x2f7906){let _0x46f0a3=0x0,_0x2964f5=!0x1;const _0x2f8bd6=new Map();for(const _0x2993b4 of _0xb6f8c1)_0x2993b4[_0x2f7906]?_0x2964f5&&(_0x46f0a3++,_0x2964f5=!0x1):(_0x46f0a3++,_0x2964f5=!0x0),_0x2f8bd6['set'](_0x2993b4['id'],_0x46f0a3);for(let _0x5a05aa=0x0;_0x5a05aa<_0xb6f8c1['length'];_0x5a05aa++){if('isRemoved'==_0x2f7906&&_0xb6f8c1[_0x5a05aa]['isAdded']||'isAdded'==_0x2f7906&&_0xb6f8c1[_0x5a05aa]['isRemoved'])continue;if('text'==_0xb6f8c1[_0x5a05aa]['type']){_0xb6f8c1[_0x5a05aa]['distance']=0x0;continue;}const _0x1b6c86=_0x2f8bd6['get'](_0xb6f8c1[_0x5a05aa]['pairId']),_0x5a7b83=_0x2f8bd6['get'](_0xb6f8c1[_0x5a05aa]['id']);_0xb6f8c1[_0x5a05aa]['distance']=_0x1b6c86-_0x5a7b83;}}['_getRevisionsRange'](_0x2a36fb,_0x1d9db4,_0xec3ec6=!0x1){const _0x1f0e62=[];let _0x48eddb=this['repository']['getIndex'](_0x2a36fb),_0x469009=this['repository']['getIndex'](_0x1d9db4);for(-0x1==_0x469009&&(_0x469009=this['repository']['_revisions']['length'],_0xec3ec6=!0x1);_0x48eddb<_0x469009;)_0x1f0e62['push'](this['repository']['getRevision'](_0x48eddb)),_0x48eddb++;return _0xec3ec6&&_0x1f0e62['push'](this['repository']['getRevision'](_0x48eddb)),_0x1f0e62;}['_threeWayMerge'](_0x47bfac,_0x31bc79,_0x78b5db,_0x217218){const _0x57ad0e=this['editor']['model']['schema'];let _0x47713e=_0x31bc79;for(;_0x47bfac[_0x47713e]&&_0x47bfac[_0x47713e]['isAdded'];)_0x47713e++;let _0xb53815=_0x217218;for(;_0x78b5db[_0xb53815]&&_0x78b5db[_0xb53815]['isRemoved'];)_0xb53815++;_0x472484(_0x47bfac,_0x31bc79,_0x47713e),_0x472484(_0x78b5db,_0x217218,_0xb53815);const _0x10f143=_0x78b5db['slice'](_0x217218,_0xb53815)['concat'](_0x47bfac['slice'](_0x31bc79,_0x47713e));return _0x10f143['sort']((_0x330a3f,_0x4f4d97)=>_0x330a3f['side']!=_0x4f4d97['side']?_0x330a3f['side']-_0x4f4d97['side']:_0x330a3f['level']!=_0x4f4d97['level']?_0x330a3f['level']-_0x4f4d97['level']:_0x330a3f['distance']!=_0x4f4d97['distance']?_0x4f4d97['distance']-_0x330a3f['distance']:!!_0x330a3f['isAdded']!=!!_0x4f4d97['isAdded']?-0x1==_0x330a3f['side']||0x0==_0x330a3f['side']?_0x330a3f['isAdded']?-0x1:0x1:_0x330a3f['isAdded']?0x1:-0x1:_0x330a3f['index']-_0x4f4d97['index']),{'commonTape':_0x10f143,'iEnd':_0x47713e,'jEnd':_0xb53815};function _0x472484(_0x2e2abd,_0x5542c3,_0x3115f9){let _0x5d8c88=-0x1,_0x35fd6a=Number['POSITIVE_INFINITY'],_0x38f477=!0x0;for(let _0x54946d=_0x5542c3;_0x54946d<_0x3115f9;_0x54946d++)if(_0x57ad0e['isInline'](_0x2e2abd[_0x54946d]['item'])||(_0x38f477=!0x1),_0x2e2abd[_0x54946d]['item']['startIndex']<_0x5542c3&&(_0x5d8c88=_0x54946d),_0x2e2abd[_0x54946d]['item']['endIndex']>=_0x3115f9){_0x35fd6a=_0x54946d;break;}_0x38f477&&(_0x5d8c88=_0x3115f9-0x1);for(let _0x16683d=_0x5542c3;_0x16683d<_0x3115f9;_0x16683d++)_0x2e2abd[_0x16683d]['side']=_0x16683d<=_0x5d8c88?-0x1:_0x16683d<_0x35fd6a?0x0:0x1,_0x2e2abd[_0x16683d]['index']=_0x16683d;let _0x348a06=0x0;for(let _0x4d6a44=_0x5542c3;_0x4d6a44<=_0x5d8c88;_0x4d6a44++)0x0==_0x2e2abd[_0x4d6a44]['distance']?_0x2e2abd[_0x4d6a44]['level']=_0x348a06:(_0x348a06++,_0x2e2abd[_0x4d6a44]['level']=_0x348a06,_0x348a06++);for(let _0x5adfd5=_0x5542c3;_0x5adfd5<_0x3115f9;_0x5adfd5++)0x0==_0x2e2abd[_0x5adfd5]['side']&&(_0x2e2abd[_0x5adfd5]['level']=_0x348a06);_0x348a06=0x0;for(let _0x1a9d6b=_0x3115f9-0x1;_0x1a9d6b>=_0x35fd6a;_0x1a9d6b--)0x0==_0x2e2abd[_0x1a9d6b]['distance']?_0x2e2abd[_0x1a9d6b]['level']=_0x348a06:(_0x348a06--,_0x2e2abd[_0x1a9d6b]['level']=_0x348a06,_0x348a06--);}}['_fixObsoleteTags'](_0x540573){const _0x5cc938=new Map(),_0x15bb43=this['editor']['model']['schema'];for(let _0x5d2101=0x1;_0x5d2101<_0x540573['length'];_0x5d2101++){let _0x4a7499,_0xbd4f8d,_0x91c1ad;const _0x187300=_0x540573[_0x5d2101],_0x45e6a3=_0x540573[_0x5d2101-0x1];if('text'==_0x187300['type'])continue;if(_0x187300['type']!=_0x45e6a3['type'])continue;if(!_0x15bb43['isBlock'](_0x45e6a3['item'])||_0x15bb43['isLimit'](_0x45e6a3['item']))continue;if(!_0x15bb43['isBlock'](_0x187300['item'])||_0x15bb43['isLimit'](_0x187300['item']))continue;if((_0x540573[_0x5d2101]['isAdded']||_0x540573[_0x5d2101]['isAddSuggestion'])&&_0x540573[_0x5d2101-0x1]['isRemoved'])_0x4a7499=_0x540573[_0x5d2101],_0xbd4f8d=_0x540573[_0x5d2101-0x1],_0x91c1ad=_0x5d2101-0x1;else{if(!_0x540573[_0x5d2101]['isRemoved']||!_0x540573[_0x5d2101-0x1]['isAdded']&&!_0x540573[_0x5d2101-0x1]['isAddSuggestion'])continue;_0x4a7499=_0x540573[_0x5d2101-0x1],_0xbd4f8d=_0x540573[_0x5d2101],_0x91c1ad=_0x5d2101;}const _0x2f131e=_0x4a7499['level']==_0xbd4f8d['level'],_0x1f9a62=Math['abs'](_0x4a7499['level'])<Math['abs'](_0xbd4f8d['level'])&&0x0==_0xbd4f8d['distance'];(_0x2f131e||_0x1f9a62)&&(_0x5cc938['set'](_0xbd4f8d['id'],_0x4a7499['id']),_0x540573['splice'](_0x91c1ad,0x1),_0x5d2101--,_0x4a7499['isAdded']=!0x1);}for(let _0x1d14e4=0x0;_0x1d14e4<_0x540573['length'];_0x1d14e4++)_0x5cc938['has'](_0x540573[_0x1d14e4]['pairId'])&&(_0x540573[_0x1d14e4]['pairId']=_0x5cc938['get'](_0x540573[_0x1d14e4]['pairId']));}['_removeMissingPairs'](_0x56ce53){const _0x58f6d3=new Set(_0x56ce53['map'](_0x390ad3=>_0x390ad3['id']));for(let _0x3d4b66=0x0;_0x3d4b66<_0x56ce53['length'];_0x3d4b66++)_0x58f6d3['has'](_0x56ce53[_0x3d4b66]['pairId'])||0x0==_0x56ce53[_0x3d4b66]['distance']||(_0x56ce53[_0x3d4b66]['isIncorrect']=!0x0);return _0x56ce53['filter'](_0x2aca34=>!_0x2aca34['isIncorrect']);}['_markMismatchedRemovedTags'](_0x428885){const _0x221288=new Set();for(let _0x176ae8=0x0;_0x176ae8<_0x428885['length'];_0x176ae8++){if(_0x221288['has'](_0x428885[_0x176ae8]['id'])&&_0x428885[_0x176ae8]['isRemoved']&&(_0x428885[_0x176ae8]['isIncorrect']=!0x0),_0x428885[_0x176ae8]['isIncorrect'])continue;if(0x0==_0x428885[_0x176ae8]['distance'])continue;if('elementStart'!=_0x428885[_0x176ae8]['type'])continue;if(null==_0x428885[_0x176ae8]['pairId'])continue;let _0x38bd56=_0x176ae8+0x1,_0x20952a=0x0;for(;_0x428885[_0x38bd56]['id']!=_0x428885[_0x176ae8]['pairId'];)'elementStart'==_0x428885[_0x38bd56]['type']?_0x20952a++:'elementEnd'==_0x428885[_0x38bd56]['type']&&_0x20952a--,_0x38bd56++;if(0x0!=_0x20952a){if(_0x428885[_0x176ae8]['isRemoved'])_0x428885[_0x176ae8]['isIncorrect']=!0x0;else{for(;_0x38bd56!=_0x176ae8;)_0x428885[_0x38bd56]['isRemoved']&&0x0!=_0x428885[_0x38bd56]['distance']&&(_0x428885[_0x38bd56]['isIncorrect']=!0x0,_0x221288['add'](_0x428885[_0x38bd56]['pairId'])),_0x38bd56--;}}}return _0x428885['filter'](_0x773394=>!_0x773394['isIncorrect']);}['_removeUnsupportedChanges'](_0x46dd55){const _0xacb018=this['editor']['model']['schema'];for(let _0x75375=0x0;_0x75375<_0x46dd55['length'];_0x75375++){if(!(_0x46dd55[_0x75375]['isAdded']||_0x46dd55[_0x75375]['isAddSuggestion']||_0x46dd55[_0x75375]['isRemoved']||_0x46dd55[_0x75375]['isRemoveSuggestion']))continue;if(0x0==_0x46dd55[_0x75375]['distance'])continue;const _0x4c7a12=_0x46dd55[_0x75375]['item'];_0xacb018['isBlock'](_0x4c7a12)||_0xacb018['isLimit'](_0x4c7a12)||(_0x46dd55[_0x75375]['isAdded']&&delete _0x46dd55[_0x75375]['isAdded'],_0x46dd55[_0x75375]['isAddSuggestion']&&delete _0x46dd55[_0x75375]['isAddSuggestion'],_0x46dd55[_0x75375]['isRemoveSuggestion']&&delete _0x46dd55[_0x75375]['isRemoveSuggestion'],_0x46dd55[_0x75375]['isRemoved']&&(_0x46dd55[_0x75375]['isIncorrect']=!0x0));}return _0x46dd55['filter'](_0x4a0902=>!_0x4a0902['isIncorrect']);}['_makeModelFromTape'](_0x15c6fa,_0x262f5d,_0x4bbbcf){const _0x48c000=new _0x4c0b22(),_0x52ec83=[],_0x2245b=new Map(),_0x211f6b=this['editor']['model'],_0x478aff=_0x211f6b['schema'],_0x403f98=[_0x48c000],_0x141b75={},_0xe8216d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xea93f5=null;const _0x348ae1=[0x0];for(let _0x4ccc38=0x0;_0x4ccc38<_0x15c6fa['length'];_0x4ccc38++)if('elementStart'===_0x15c6fa[_0x4ccc38]['type']){_0x15c6fa[_0x4ccc38]['previousPosition']=_0x211f6b['createPositionFromPath'](_0x48c000,_0x348ae1);const _0x2eac7a=new _0x599036(_0x15c6fa[_0x4ccc38]['item']['name'],_0x15c6fa[_0x4ccc38]['item']['getAttributes']());_0x403f98[0x0]['_appendChild'](_0x2eac7a),_0x348ae1['push'](0x0),_0x403f98['unshift'](_0x2eac7a),_0x15c6fa[_0x4ccc38]['nextPosition']=_0x211f6b['createPositionFromPath'](_0x48c000,_0x348ae1);}else'elementEnd'===_0x15c6fa[_0x4ccc38]['type']?(_0x403f98['shift'](),_0x15c6fa[_0x4ccc38]['previousPosition']=_0x211f6b['createPositionFromPath'](_0x48c000,_0x348ae1),_0x348ae1['pop'](),_0x348ae1[_0x348ae1['length']-0x1]++,_0x15c6fa[_0x4ccc38]['nextPosition']=_0x211f6b['createPositionFromPath'](_0x48c000,_0x348ae1)):(_0x15c6fa[_0x4ccc38]['previousPosition']=_0x211f6b['createPositionFromPath'](_0x48c000,_0x348ae1),_0xea93f5?_0xea93f5['_data']+=_0x15c6fa[_0x4ccc38]['item']['data']:_0xea93f5=new _0x58fa86(_0x15c6fa[_0x4ccc38]['item']['data'],_0x15c6fa[_0x4ccc38]['item']['getAttributes']()),_0x15c6fa[_0x4ccc38+0x1]&&'text'===_0x15c6fa[_0x4ccc38+0x1]['type']&&_0x560fcd(_0xea93f5,_0x15c6fa[_0x4ccc38+0x1]['item'])||(_0x403f98[0x0]['_appendChild'](_0xea93f5),_0xea93f5=null),_0x348ae1[_0x348ae1['length']-0x1]+=_0x15c6fa[_0x4ccc38]['item']['offsetSize'],_0x15c6fa[_0x4ccc38]['nextPosition']=_0x211f6b['createPositionFromPath'](_0x48c000,_0x348ae1));for(let _0x967634=0x0;_0x967634<_0x15c6fa['length'];_0x967634++){const _0x50c235=_0x15c6fa[_0x967634]['previousPosition'],_0x13b544=_0x15c6fa[_0x967634]['nextPosition'];for(const _0x7f9a81 of _0x15c6fa[_0x967634]['markersStart'])_0x2245b['set'](_0x7f9a81,{'start':_0x50c235,'end':null});_0x64a5e8('isRemoveSuggestion',_0x967634,_0x50c235,_0x13b544),_0x64a5e8('isAddSuggestion',_0x967634,_0x50c235,_0x13b544),_0x64a5e8('isRemoved',_0x967634,_0x50c235,_0x13b544),_0x64a5e8('isAdded',_0x967634,_0x50c235,_0x13b544);for(const _0x14ff64 of _0x15c6fa[_0x967634]['markersEnd']){const _0x372d55=_0x2245b['get'](_0x14ff64);_0x372d55?_0x372d55['end']=_0x13b544:_0x2245b['set'](_0x14ff64,{'start':_0x13b544,'end':_0x13b544});}}for(const [_0x3486fb,_0x33c098]of _0x2245b){const _0x50db7e=this['editor']['model']['createRange'](_0x33c098['start'],_0x33c098['end']);_0x48c000['markers']['set'](_0x3486fb,_0x50db7e);}return _0x52ec83['sort']((_0x38308c,_0x9f4b7a)=>{const _0x305afe=_0x48c000['markers']['get']('revision:'+_0x38308c['id']),_0x2f1963=_0x48c000['markers']['get']('revision:'+_0x9f4b7a['id']);return _0x305afe['start']['isBefore'](_0x2f1963['start'])?-0x1:_0x305afe['start']['isAfter'](_0x2f1963['start'])?0x1:_0x305afe['end']['isBefore'](_0x2f1963['end'])?-0x1:_0x305afe['end']['isAfter'](_0x2f1963['end'])?0x1:'add'===_0x38308c['type']?-0x1:0x1;}),{'root':_0x48c000,'changes':_0x52ec83};function _0x64a5e8(_0x1a1d73,_0x176e47,_0x37bcc0,_0x46b961){const _0x43756d=!!_0x15c6fa[_0x176e47][_0x1a1d73],_0x2e9792=_0x43756d?_0x15c6fa[_0x176e47][_0x1a1d73]['userId']:null,_0x58e7ac=_0x176e47===_0x15c6fa['length']-0x1,_0x349718=_0xe8216d[_0x1a1d73][0x0],_0x2566c9=_0x478aff['isObject'](_0x15c6fa[_0x176e47]['item']);!_0x141b75[_0x1a1d73]&&_0x43756d?_0x141b75[_0x1a1d73]={'start':_0x37bcc0,'tapeItem':_0x15c6fa[_0x176e47],'userId':_0x2e9792,'type':_0x1a1d73}:_0x141b75[_0x1a1d73]&&!_0x43756d?(_0x141b75[_0x1a1d73]['end']=_0x37bcc0,_0x578dfe(_0x141b75[_0x1a1d73]),_0x141b75[_0x1a1d73]=null):_0x141b75[_0x1a1d73]&&_0x43756d&&_0x141b75[_0x1a1d73]['userId']!==_0x2e9792&&(_0x141b75[_0x1a1d73]['end']=_0x37bcc0,_0x349718&&_0x349718['userId']===_0x141b75[_0x1a1d73]['userId']||_0x578dfe(_0x141b75[_0x1a1d73]),_0x141b75[_0x1a1d73]={'start':_0x37bcc0,'tapeItem':_0x15c6fa[_0x176e47],'userId':_0x2e9792,'type':_0x1a1d73}),_0x141b75[_0x1a1d73]&&_0x2566c9&&('elementStart'!==_0x15c6fa[_0x176e47]['type']||_0x349718&&_0x349718['userId']===_0x2e9792||_0xe8216d[_0x1a1d73]['unshift']({'userId':_0x2e9792,'object':_0x15c6fa[_0x176e47]['item'],'change':_0x141b75[_0x1a1d73]}),'elementEnd'===_0x15c6fa[_0x176e47]['type']&&_0x349718&&_0x349718['object']===_0x15c6fa[_0x176e47]['item']&&(_0xe8216d[_0x1a1d73]['shift'](),_0x141b75[_0x1a1d73]=_0x349718['change'])),_0x141b75[_0x1a1d73]&&_0x58e7ac&&(_0x141b75[_0x1a1d73]['end']=_0x46b961,_0x578dfe(_0x141b75[_0x1a1d73]),_0x141b75[_0x1a1d73]=null);}function _0x578dfe({start:_0x389103,end:_0x57248f,tapeItem:_0x1f5b14,userId:_0x3a0d39,type:_0xddaa82}){const _0x4d5997=_0x1f5b14['item'],_0x4968f5=_0x211f6b['schema']['isBlock'](_0x4d5997)&&!_0x211f6b['schema']['isLimit'](_0x4d5997),_0x7c4e91=_0x389103['nodeAfter']==_0x57248f['parent']&&_0x57248f['isAtStart'];if(_0x4968f5&&_0x7c4e91)return;const _0x558318=_0x211f6b['createRange'](_0x389103,_0x57248f),_0x551eb2=_0x262f5d['get'](_0x3a0d39),_0x1fb665=new G({'author':_0x551eb2,'type':'isAdded'==_0xddaa82||'isAddSuggestion'==_0xddaa82?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xddaa82||'isRemoveSuggestion'==_0xddaa82},'createdAt':new Date(),'rootName':_0x4bbbcf});_0x52ec83['push'](_0x1fb665),_0x48c000['markers']['set']('revision:'+_0x1fb665['id'],_0x558318);}function _0x560fcd(_0x29f71f,_0x4bc5f5){const _0x558ab2=_0x29f71f['getAttributes'](),_0xde863a=_0x4bc5f5['getAttributes']();for(const _0x3a4024 of _0x558ab2){if(_0x3a4024[0x1]!==_0x4bc5f5['getAttribute'](_0x3a4024[0x0]))return!0x1;_0xde863a['next']();}return _0xde863a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3aad6c=>{const _0x44792e=_0x3aad6c['markerName']['split'](':')[0x1],_0x4566a5=this['_getChangeFromId'](_0x44792e);if(!_0x4566a5)return null;const _0x22c2c7='add'==_0x4566a5['type']?'insertion':'deletion',_0xb0f43=['ck-suggestion-marker','ck-suggestion-marker-'+_0x22c2c7];return _0x4566a5['data']['isSuggestion']&&_0xb0f43['push']('ck-suggestion-marker-'+_0x22c2c7+'-new'),this['activeChange']==_0x4566a5&&_0xb0f43['push']('ck-suggestion-marker--active'),{'classes':_0xb0f43,'attributes':{'data-change-id':_0x44792e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x19ef19=>{_0x19ef19['on']('element:pre',(_0x5afeff,_0x4a9665,_0x59f8ac)=>{const _0x29739a=_0x4a9665['viewItem']['getChild'](0x0);if(!_0x29739a||!_0x29739a['is']('element','code'))return;if(!_0x59f8ac['consumable']['consume'](_0x29739a,{'attributes':['vid_start','vid_end']}))return;const _0x37c3c6=_0x4a9665['modelRange']['start']['nodeAfter'];_0x59f8ac['writer']['setAttribute']('vid_start',_0x29739a['getAttribute']('vid_start'),_0x37c3c6),_0x59f8ac['writer']['setAttribute']('vid_end',_0x29739a['getAttribute']('vid_end'),_0x37c3c6);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x538d46=>{_0x538d46['on']('element',(_0xf57270,_0x1e4b30,_0x33a850)=>{if(!_0x33a850['consumable']['consume'](_0x1e4b30['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1e4b30['modelRange']['isCollapsed'])return;const _0x3d99c0=_0x1e4b30['modelRange']['start']['nodeAfter'];_0x3d99c0['hasAttribute']('vid_start')||_0x3d99c0['hasAttribute']('vid')||(_0x33a850['writer']['setAttribute']('vid_start',_0x1e4b30['viewItem']['getAttribute']('vid_start'),_0x3d99c0),_0x33a850['writer']['setAttribute']('vid_end',_0x1e4b30['viewItem']['getAttribute']('vid_end'),_0x3d99c0));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2ea981=>_0x2ea981['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x49643c,[,_0x5077fe])=>{['vid_start','vid_end','vid']['includes'](_0x5077fe)&&(_0x49643c['return']=!0x0,_0x49643c['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x406c84=>{_0x406c84['on']('attribute:vid',(_0x4e3f32,_0x3787e2,_0x46bc12)=>{if('\x20'!=_0x3787e2['item']['data']||_0x3787e2['item']['parent']['maxOffset']>0x1)return;if(!_0x46bc12['consumable']['consume'](_0x3787e2['item'],_0x4e3f32['name']))return;const _0x12a6ae=_0x46bc12['writer'],_0x4b484a=_0x46bc12['mapper']['toViewRange'](_0x3787e2['range']);_0x12a6ae['wrap'](_0x4b484a,_0x12a6ae['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x19c766){const _0x4c6722=_0x19c766['plugins']['get']('RevisionViewer');return(_0x15eeb8,_0x42ad2c,_0x5f3558)=>{const _0x3b6a6e=_0x42ad2c['markerName']['split'](':')[0x1],_0x18561b=_0x4c6722['_getChangeFromId'](_0x3b6a6e);if(!_0x18561b)return null;const _0x203f07='add'==_0x18561b['type']?'split':'merge';if(!_0x5f3558['consumable']['test'](_0x42ad2c['markerRange'],_0x15eeb8['name']))return;const _0x29413b=_0x42ad2c['markerRange']['getWalker'](),_0x192b06=_0x42ad2c['markerRange']['start'],_0x4c5c80=_0x19c766['model']['schema'];let _0x4f86d3=null,_0x31fa9e=null,_0x2b2810=!0x1,_0x3fcc7e=!0x1;for(const _0x5e02a6 of _0x29413b){const _0x235536=_0x5e02a6['item'];_0x2b2810=_0x2b2810||_0x4c5c80['isContent'](_0x235536);const _0x2f2951=_0x5f3558['mapper']['toViewElement'](_0x235536);if(_0x2f2951&&_0x2f2951['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5e02a6['type']&&(_0x4c5c80['isBlock'](_0x235536)&&!_0x4c5c80['isLimit'](_0x235536)&&(_0x235536['nextSibling']||_0x192b06['isAtEnd']?_0x4f86d3&&_0x4f86d3['parent']==_0x235536||(_0x4f86d3=_0x235536,_0x5a7744(_0x5e02a6['previousPosition']),_0x3fcc7e=!0x0):_0x31fa9e=_0x31fa9e||_0x5e02a6['previousPosition']));}function _0x5a7744(_0x2d6442){const _0x158b63=_0x5f3558['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x203f07}),_0x3a0c3=_0x5f3558['mapper']['toViewPosition'](_0x2d6442);_0x18561b['data']['isSuggestion']&&_0x5f3558['writer']['addClass']('ck-suggestion-marker-'+_0x203f07+'-new',_0x158b63),_0x4c6722['activeChange']==_0x18561b&&_0x5f3558['writer']['addClass']('ck-suggestion-marker--active',_0x158b63),_0x5f3558['writer']['insert'](_0x3a0c3,_0x158b63),_0x5f3558['mapper']['bindElementToMarker'](_0x158b63,_0x42ad2c['markerName']);}_0x2b2810||_0x3fcc7e||!_0x31fa9e||_0x5a7744(_0x31fa9e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x402b49,_0x4c00e0,_0x3276ce)=>{const _0x31a9e4=_0x3276ce['mapper']['markerNameToElements'](_0x4c00e0['markerName']);if(_0x31a9e4){for(const _0x4d66c4 of _0x31a9e4)(_0x4d66c4['hasClass']('ck-suggestion-marker-split')||_0x4d66c4['hasClass']('ck-suggestion-marker-merge'))&&(_0x3276ce['mapper']['unbindElementFromMarkerName'](_0x4d66c4,_0x4c00e0['markerName']),_0x3276ce['writer']['remove'](_0x4d66c4));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x462b2b,_0x5722c8,_0x1d1569)=>{const _0x2bd6aa=_0x5722c8['markerName']['split'](':')[0x1],_0x3d75a7=this['_getChangeFromId'](_0x2bd6aa);if(!_0x3d75a7)return null;const _0x4542ed='add'==_0x3d75a7['type']?'split':'merge';if(_0x1d1569['consumable']['test'](_0x5722c8['markerRange'],_0x462b2b['name']))for(const _0x6d56b9 of _0x5722c8['markerRange']['getItems']()){if(!_0x6d56b9['is']('element','softBreak'))continue;const _0x4ffc93=_0x1d1569['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4542ed}),_0x3fc8d2=_0x1d1569['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x6d56b9));_0x3d75a7['data']['isSuggestion']&&_0x1d1569['writer']['addClass']('ck-suggestion-marker-'+_0x4542ed+'-new',_0x4ffc93),this['activeChange']==_0x3d75a7&&_0x1d1569['writer']['addClass']('ck-suggestion-marker--active',_0x4ffc93),_0x1d1569['writer']['insert'](_0x3fc8d2,_0x4ffc93),_0x1d1569['mapper']['bindElementToMarker'](_0x4ffc93,_0x5722c8['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2b62b2=>{for(const _0x53de38 of this['editor']['model']['document']['getRootNames']()){const _0x431f2c=this['editor']['model']['document']['getRoot'](_0x53de38),_0x3f7c1d=this['editor']['editing']['view']['document']['getRoot'](_0x53de38);if(_0x3f7c1d){const _0x1d903e=_0x431f2c['getAttribute']('revisionHistoryAttachChange');if(_0x2b62b2['removeAttribute']('data-change-id',_0x3f7c1d),_0x2b62b2['removeClass']('ck-revision-history-root-add',_0x3f7c1d),_0x2b62b2['removeClass']('ck-revision-history-root-remove',_0x3f7c1d),_0x2b62b2['removeClass']('ck-revision-history-root--active',_0x3f7c1d),_0x1d903e){const _0xbf5283=this['_getChangeFromId'](_0x1d903e);if(!_0xbf5283)return null;_0x2b62b2['setAttribute']('data-change-id',_0x1d903e,_0x3f7c1d),_0x2b62b2['addClass']('ck-revision-history-root-'+_0xbf5283['type'],_0x3f7c1d),this['activeChange']==_0xbf5283&&_0x2b62b2['addClass']('ck-revision-history-root--active',_0x3f7c1d);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5db1cd=>'revision-comment:'+_0x5db1cd,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1605d7=>'revision-suggestion:'+_0x1605d7,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1d5920=>({'name':'suggestion:'+_0x1d5920,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x30654b=>{const _0xedca6e=_0x30654b['markerName']['split'](':')[0x1];return'insertion'!=_0xedca6e&&'deletion'!=_0xedca6e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xedca6e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x58e123,_0x60dc2a,_0x1d1715)=>{const _0x57b6bc=_0x1d1715['mapper']['markerNameToElements'](_0x60dc2a['markerName']);if(_0x57b6bc){for(const _0x54ce6f of _0x57b6bc)_0x54ce6f['is']('uiElement')&&(_0x1d1715['mapper']['unbindElementFromMarkerName'](_0x54ce6f,_0x60dc2a['markerName']),_0x1d1715['writer']['remove'](_0x54ce6f));}},{'priority':'high'});}['_getChangeFromId'](_0x130a2a){return this['_changeIdToChange']['get'](_0x130a2a);}['_getViewForChange'](_0x3944a4){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3944a4),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3971f,_0x157612,_0x34fc54,_0x2fcb79)=>{_0x2fcb79&&this['_balloon']['remove'](_0x2fcb79),_0x34fc54&&(this['_balloon']['add']({'view':_0x34fc54,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5ae55c=this['editor']['editing'],_0x10bebb=this['_getChangeFromId'](_0x34fc54['changeId']);let _0x3c58c6;if(_0x10bebb['data']['isOnRoot']){const _0x4e3468=_0x5ae55c['view']['getDomRoot'](_0x10bebb['rootName']);_0x3c58c6=Array['from'](_0x4e3468['getClientRects']());}else{const _0x5d6c62=this['editor']['model']['markers']['get']('revision:'+_0x34fc54['changeId']);_0x3c58c6=Array['from'](_0x5ae55c['mapper']['markerNameToElements'](_0x5d6c62['name']))['map'](_0x4a2395=>_0x5ae55c['view']['domConverter']['mapViewToDom'](_0x4a2395))['map'](_0x463511=>Array['from'](_0x463511['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3c58c6[0x0];return _0x3c58c6['find'](_0xe11ebc=>_0xe11ebc['top']-0x3<=this['_activeViewTarget']['y']&&_0xe11ebc['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xe11ebc['left']-0x3<=this['_activeViewTarget']['x']&&_0xe11ebc['right']+0x3>=this['_activeViewTarget']['x'])||_0x3c58c6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5a86c0,_0x1b6f1c,_0x3e5195,_0x2f8588)=>{this['activeView']=_0x3e5195?this['_getViewForChange'](_0x3e5195):null,this['editor']['model']['change'](()=>{const _0x5b8404=this['editor']['editing'];_0x2f8588&&(_0x2f8588['data']['isOnRoot']?_0x5b8404['view']['change'](_0x173385=>{_0x173385['removeClass']('ck-revision-history-root--active',_0x5b8404['view']['document']['getRoot'](_0x2f8588['rootName']));}):_0x5b8404['reconvertMarker']('revision:'+_0x2f8588['id'])),_0x3e5195&&(_0x3e5195['data']['isOnRoot']?_0x5b8404['view']['change'](_0x3451af=>{_0x3451af['addClass']('ck-revision-history-root--active',_0x5b8404['view']['document']['getRoot'](_0x3e5195['rootName']));}):_0x5b8404['reconvertMarker']('revision:'+_0x3e5195['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1c973c,_0x245b37)=>{if(this['activeChange'])return;const _0x497117=this['_findChangeIdFromDomTarget'](_0x245b37['target']),_0x226a7c=this['_changeIdToChange']['get'](_0x497117);_0x226a7c?(this['_activeViewTarget']={'x':_0x245b37['domEvent']['x'],'y':_0x245b37['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x226a7c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x23ab91,_0x2f65a8)=>{const _0x1fb323=this['_findChangeIdFromDomTarget'](_0x2f65a8['target']),_0x8ee044=this['_changeIdToChange']['get'](_0x1fb323);_0x8ee044?(this['_activeViewTarget']={'x':_0x2f65a8['domEvent']['x'],'y':_0x2f65a8['domEvent']['y']},_0x8ee044===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x8ee044):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x525ac3){do{const _0x3ad18b=_0x525ac3['getAttribute']('data-change-id');if(_0x3ad18b)return _0x3ad18b;_0x525ac3=_0x525ac3['parent'];}while(_0x525ac3);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xcdc972=>{for(const _0xcc4ecc of this['editor']['model']['markers'])_0xcdc972['removeMarker'](_0xcc4ecc);});}}function Q(_0x4eb63e,_0x4b78cd){return(_0x2244df,_0x3b4b0b,_0x1b4628)=>{if(!_0x1b4628['consumable']['test'](_0x3b4b0b['markerRange'],_0x2244df['name']))return;const _0xd9c8d=_0x3b4b0b['markerRange']['getWalker'](),_0x3e1e1a=_0x3b4b0b['markerRange']['start'],_0x4b9ba6=_0x4eb63e['model']['schema'];let _0x49e890=null,_0x577ef8=null,_0x3ff171=!0x1,_0x48573a=!0x1;for(const _0x1fae28 of _0xd9c8d){const _0xe5df83=_0x1fae28['item'];_0x3ff171=_0x3ff171||_0x4b9ba6['isContent'](_0xe5df83);const _0x503c77=_0x1b4628['mapper']['toViewElement'](_0xe5df83);if(_0x503c77&&_0x503c77['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1fae28['type']&&(_0x4b9ba6['isBlock'](_0xe5df83)&&!_0x4b9ba6['isLimit'](_0xe5df83)&&(_0xe5df83['nextSibling']||_0x3e1e1a['isAtEnd']?_0x49e890&&_0x49e890['parent']==_0xe5df83||(_0x49e890=_0xe5df83,_0x13c56a(_0x1fae28['previousPosition']),_0x48573a=!0x0):_0x577ef8=_0x577ef8||_0x1fae28['previousPosition']));}function _0x13c56a(_0x45023c){const _0x4fb371=_0x1b4628['mapper']['toViewPosition'](_0x45023c),_0x2eb410=_0x1b4628['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4b78cd});_0x1b4628['writer']['insert'](_0x4fb371,_0x2eb410),_0x1b4628['mapper']['bindElementToMarker'](_0x2eb410,_0x3b4b0b['markerName']);}_0x3ff171||_0x48573a||!_0x577ef8||_0x13c56a(_0x577ef8);};}class nt extends _0x58b01{constructor(_0x187234){super(_0x187234);const _0x276114=_0x187234['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x276114,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x276114,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4f9306=this['editor'],_0x39de81=_0x4f9306['plugins']['get'](l),_0xba8080=_0x39de81['isReady']?_0x39de81['diff']['newRevisionId']:null;_0x4f9306['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xba8080);}['refresh'](){const {isReady:_0x5d7f4e,isEnabled:_0x199b9c,repository:_0x5f138f,diff:_0x35caa2}=this['editor']['plugins']['get'](l),_0xf2ab40=_0x35caa2&&_0x5f138f['getLaterVisibleRevision'](_0x35caa2['newRevisionId']);this['isEnabled']=_0x5d7f4e&&_0x199b9c&&Boolean(_0xf2ab40);}}class ot extends _0x58b01{['_step'];constructor(_0x572a6c,{direction:_0x49779b}){super(_0x572a6c);const _0x1bcc2e=_0x572a6c['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x49779b?0x1:-0x1,this['listenTo'](_0x1bcc2e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1bcc2e,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1bcc2e,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x74b34=this['editor'],_0x51da7d=_0x74b34['plugins']['get'](l),{isNavigationMode:_0x509906,currentChangeNumber:_0x4efc5d}=_0x51da7d;let _0x5e2b69;if(_0x51da7d['activeChange']=_0x509906?_0x51da7d['diff']['changes']['get'](_0x4efc5d+this['_step']):_0x51da7d['diff']['changes']['first'],_0x51da7d['activeChange']['data']['isOnRoot'])_0x5e2b69=_0x74b34['editing']['view']['getDomRoot'](_0x51da7d['activeChange']['rootName']);else{const _0x5e97cf=_0x74b34['model']['markers']['get']('revision:'+_0x51da7d['activeChange']['id']);_0x5e2b69=_0x11cd7f(_0x74b34['editing'],_0x5e97cf);}_0x1ccc11({'target':_0x5e2b69,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x6b97b6,currentChangeNumber:_0xf2822b,numberOfChanges:_0x36a047,isReady:_0x439e12,isEnabled:_0x3fc227}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x3fc227&&_0x439e12&&_0x36a047)&&(!_0x6b97b6||(0x1===this['_step']?_0xf2822b<_0x36a047-0x1:_0xf2822b>0x0));}}class Ri extends _0x289a06{constructor(_0x127708){super(_0x127708);const _0x14916a=this['bindTemplate'],_0x2d3dc6=new _0x42cd9a(_0x127708),_0x5dd581=new _0x42cd9a(_0x127708);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',(_0x552670,_0x1055a5)=>_0x552670&&_0x1055a5>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x187890,_0xa16871,_0x162110,_0x527c0a)=>{if(!_0x187890)return R(_0x127708,'Loading...');if(!_0x162110)return R(_0x127708,'No\x20changes');const _0x124aa8=R(_0x127708,'NUMBER_OF_CHANGES',_0x162110);return _0x527c0a?R(_0x127708,'X_OF_Y_CHANGES',[_0xa16871+0x1,_0x162110]):_0x124aa8;}),_0x2d3dc6['set']({'label':R(_0x127708,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xe92cb0}),_0x5dd581['set']({'label':R(_0x127708,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x57ae56}),_0x2d3dc6['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5dd581['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2d3dc6['on']('execute',()=>this['fire']('execute','backward')),_0x5dd581['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',_0x14916a['if']('_isStatusLabelVisible','ck-hidden',_0x40a67f=>!_0x40a67f)]},'children':[{'text':_0x14916a['to']('isNavigationMode',_0x14dc5c=>_0x14dc5c?R(_0x127708,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x127708,'Total')+':\x20')}]},{'text':_0x14916a['to']('_statusText')}]},new _0x1c6dd3(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2d3dc6,_0x5dd581]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x557a5e{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x341508=this['editor']['editing']['view'];_0x341508['change'](_0x1e4497=>{for(const _0x3f62fd of _0x341508['document']['roots'])_0x1e4497['addClass'](ge,_0x3f62fd);});}['hide'](){const _0x540d74=this['editor']['editing']['view'];_0x540d74['change'](_0x12a80b=>{for(const _0x3a68b2 of _0x540d74['document']['roots'])_0x12a80b['removeClass'](ge,_0x3a68b2);});}}class u extends _0x557a5e{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x2f8d47=this['editor'],_0x26d2d3=_0x2f8d47['plugins']['get'](l),_0x198241=_0x2f8d47['plugins']['get'](ji);_0x2f8d47['ui']['componentFactory']['add']('exitToEditing',_0x25bee6=>{const _0xf1225d=new _0x42cd9a(_0x25bee6);return _0xf1225d['set']({'label':R(_0x25bee6,'Back\x20to\x20editing'),'icon':_0x3a38c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xf1225d,'execute',()=>{_0x2f8d47['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xf1225d;}),_0x2f8d47['ui']['componentFactory']['add']('restoreRevision',_0x3c8ac3=>{const _0x52714d=new _0x42cd9a(_0x3c8ac3);return _0x52714d['set']({'label':R(_0x3c8ac3,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x52714d['bind']('isEnabled')['to'](_0x2f8d47['commands']['get']('restoreRevision')),this['listenTo'](_0x52714d,'execute',()=>_0x2f8d47['execute']('restoreRevision')),_0x52714d;}),_0x2f8d47['ui']['componentFactory']['add']('changesNavigation',_0x7968f0=>{const _0x516892=new Ri(_0x7968f0),_0x307b43=_0x2f8d47['commands']['get']('showPreviousChange'),_0x36ed94=_0x2f8d47['commands']['get']('showNextChange');return _0x516892['bind']('isBackwardNavigationEnabled')['to'](_0x307b43,'isEnabled'),_0x516892['bind']('isForwardNavigationEnabled')['to'](_0x36ed94,'isEnabled'),_0x516892['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x26d2d3),this['listenTo'](_0x516892,'execute',(_0x562e29,_0xa0782d)=>{_0x2f8d47['execute']('forward'===_0xa0782d?'showNextChange':'showPreviousChange');}),_0x516892;}),_0x198241['show'](),_0x26d2d3['on']('change:isReady',(_0xad57f4,_0x4e6e49,_0x4d7943)=>{_0x4d7943?_0x198241['hide']():_0x198241['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x58a5f5,_0x422221){super(_0x58a5f5,_0x422221);const _0xfeec2c=this['bindTemplate'];this['set']({'label':R(_0x58a5f5,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x58a5f5,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xfeec2c['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x54aa1e=this['fieldView']['element'];this['_tooltipString']=_0x54aa1e['scrollWidth']>_0x54aa1e['clientWidth']&&_0x54aa1e['value']||'';}}class vi extends _0x289a06{constructor(_0x44a96f,_0x4aaa40,_0x283ee4){super(_0x44a96f);const _0x862aec=new _0x26bf56();_0x862aec['set']({'content':_0x1309a4,'viewBox':'0\x200\x2011\x2010'});const _0x1bb0d2=['ck','ck-revision-history-sidebar__revision-author'];_0x283ee4&&_0x1bb0d2['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4395d3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x44a96f,_0x283ee4?'Revision\x20creator':'Revision\x20author')},'children':[_0x862aec,_0x4aaa40['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1bb0d2},'children':_0x4395d3});}}function mi(_0x131e6e,_0x1999e6){const _0x2db48e=_0x131e6e['bindTemplate'],_0x5b88b8=_0x131e6e['locale'],_0x188e0d=_0x10ddda(_0x5b88b8);_0x188e0d['panelPosition']='sw';const _0x1db743=function(_0x5eb087,_0x6164f1){const _0x1ce5e4=function(_0x4d1e68,_0x18639c){const _0x3b81a0=_0x4d1e68['locale'],_0x1c6149={'Compare\x20against\x20selected':R(_0x3b81a0,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x3b81a0,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x3b81a0,'Restore\x20this\x20revision')};return _0x18639c['map'](_0x388d5c=>{const _0x5911a8=_0x1c6149[_0x388d5c['name']];return _0x5911a8&&_0x5911a8!==_0x388d5c['name']&&(_0x388d5c['name']=_0x5911a8),_0x388d5c;});}(_0x5eb087,_0x6164f1),_0x57a569=new _0x50c032();for(const _0x3ee4b9 of _0x1ce5e4){const _0x1e2b72={'type':'button','model':new to({'label':_0x3ee4b9['name'],'class':_0x3ee4b9['class'],'withText':!0x0,'role':'menuitem','_action':_0x3ee4b9['action']})};_0x1e2b72['model']['bind']('isEnabled')['to'](_0x5eb087,'isActionsDropdownOpen',_0x1cb45a=>'function'!=typeof _0x3ee4b9['isEnabled']||(!_0x1cb45a||_0x3ee4b9['isEnabled'](_0x5eb087))),_0x57a569['add'](_0x1e2b72);}return _0x57a569;}(_0x131e6e,_0x1999e6);return _0x131e6e['bind']('isActionsDropdownOpen')['to'](_0x188e0d,'isOpen'),_0x188e0d['buttonView']['set']({'label':R(_0x5b88b8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x46a20b}),_0x188e0d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2db48e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2db48e['to'](_0xc41a4e=>_0xc41a4e['stopPropagation']())}}),_0x188e0d['on']('execute',_0x3e85bd=>{_0x131e6e['isReady']&&'function'==typeof _0x3e85bd['source']['_action']&&_0x3e85bd['source']['_action'](_0x131e6e);}),_0x160d68(_0x188e0d,_0x1db743,{'role':'menu'}),_0x188e0d['listenTo'](_0x131e6e,'change:isActionsDropdownOpen',(_0x44f1e9,_0xc89fa,_0xa80979)=>{if(_0xa80979)for(const _0x518753 of _0x188e0d['listView']['items']){const _0x11e8a8=_0x518753['children']['first'],_0x4fae32=_0x1999e6['find'](_0x5acd09=>_0x5acd09['action']===_0x11e8a8['_action'])['isVisible'];_0x518753['isVisible']=void 0x0===_0x4fae32||_0x4fae32(_0x131e6e);}}),_0x188e0d;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x1f6116(_0x289a06){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x59a096,_0x1fad2f,_0x11e989,_0x733f0b){super(_0x59a096);const _0xb27bf=this['bindTemplate'],_0x5b7599=function(_0x3ceab8,_0x1d61c2){const _0x5baf5c=Array['from'](_0x1d61c2['authors'])['filter'](_0x5ef123=>_0x5ef123!=_0x1d61c2['creator']);return _0x1d61c2['creator']&&_0x5baf5c['unshift'](_0x1d61c2['creator']),_0x5baf5c['map'](_0x37850a=>new vi(_0x3ceab8,_0x37850a,_0x37850a==_0x1d61c2['creator']));}(_0x59a096,_0x1fad2f);this['id']=_0x1fad2f['id'],this['_revision']=_0x1fad2f,this['_requireRevisionName']=_0x733f0b,this['bind']('name','createdAt')['to'](_0x1fad2f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4c6381=>{return _0x4ec591=_0x59a096['uiLanguage'],(_0x1931de=_0x4c6381)['toLocaleDateString'](_0x4ec591,{'month':'long','day':'numeric'})+',\x20'+_0x1931de['toLocaleTimeString'](_0x4ec591,{'hour':'numeric','minute':'numeric'});var _0x4ec591,_0x1931de;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x59a096,_0x104191),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3ad397=>_0x3ad397||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x159daa,_0x3f8209)=>_0x159daa&&_0x3f8209),this['revisionActionsView']=_0x11e989&&_0x11e989['length']?mi(this,_0x11e989):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xb27bf['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xb27bf['if']('isEnabled','ck-disabled',_0x15fe59=>!_0x15fe59),_0xb27bf['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xb27bf['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xb27bf['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':_0xb27bf['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':_0x5b7599}]},this['revisionActionsView']],'on':{'click':_0xb27bf['to'](_0x188075=>{_0x188075['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5bf334=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5bf334,'change',()=>{this['_requireRevisionName']&&!_0x5bf334['value']||this['fire']('setName',{'id':this['id'],'name':_0x5bf334['value']}),_0x5bf334['value']||(_0x5bf334['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function bi(_0x27abb9,_0x1a76a2){const _0x239cae=_0x2b72ee['fromJSDate'](_0x27abb9)['setLocale'](_0x1a76a2),_0x685856=_0x2b72ee['local'](),_0x3443f1=_0x685856['minus']({'days':0x1})['startOf']('day');let _0x492ac5,_0x2699da;return _0x239cae['hasSame'](_0x685856,'day')?(_0x492ac5=_0x239cae['startOf']('day')['toJSDate'](),_0x2699da=_0x239cae['toRelativeCalendar']()):_0x239cae['hasSame'](_0x3443f1,'day')?(_0x492ac5=_0x3443f1['toJSDate'](),_0x2699da=_0x239cae['toRelativeCalendar']()):_0x239cae['hasSame'](_0x685856,'week')?(_0x492ac5=_0x239cae['startOf']('week')['toJSDate'](),_0x2699da=_0x239cae['weekdayLong']||''):_0x239cae['hasSame'](_0x685856,'year')?(_0x492ac5=_0x239cae['startOf']('month')['toJSDate'](),_0x2699da=_0x239cae['monthLong']||''):(_0x492ac5=_0x239cae['startOf']('year')['toJSDate'](),_0x2699da=String(_0x239cae['year'])),{'startDate':_0x492ac5,'localizedPeriodName':_0x2699da};}class fi extends _0x289a06{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0xf52830,_0xcd99c0,_0x5703fb,_0x33b7c9){super(_0xf52830);const _0x51e314=bi(_0xcd99c0,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xcd99c0,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5703fb,this['_requireRevisionName']=_0x33b7c9,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':_0x51e314}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x539da6){const _0x414315=new pi(this['locale'],_0x539da6,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x414315);}['removeRevision'](_0x5a46e5){const _0x1dbfea=this['revisionViews']['find'](_0x36d2f4=>_0x36d2f4['id']===_0x5a46e5['id']);this['revisionViews']['remove'](_0x1dbfea);}}class ki extends _0x289a06{constructor(_0x5e45d0){super(_0x5e45d0);const _0x1da1fc=new _0x26bf56();_0x1da1fc['content']=_0x205745,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1da1fc,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x5e45d0,'Revision\x20history')]}]});}}class ui extends _0x289a06{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x13d7e9,_0x51c6a4,_0x3477e3,_0x3243c5){super(_0x13d7e9);const _0x394640=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x51c6a4,this['_revisionActions']=_0x3477e3,this['_requireRevisionName']=_0x3243c5,this['on']('select',(_0x51c0ce,_0x3ba8d7)=>{this['fire']('revisionSelected',_0x3ba8d7);}),this['on']('setName',(_0x37fa67,_0x12368e)=>{this['fire']('revisionSetName',_0x12368e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x13d7e9),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x394640['if']('isEnabled','ck-disabled',_0x5539eb=>!_0x5539eb)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4fa123 of this['_revisions'])this['_addRevision'](_0x4fa123);this['_revisions']['on']('add',(_0x16b15e,_0x1b531b)=>{this['_addRevision'](_0x1b531b);}),this['_revisions']['on']('remove',(_0x27a611,_0x2fede1)=>{this['_removeRevision'](_0x2fede1);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x19f686=>_0x19f686['revisionViews']['map'](_0x42d879=>_0x42d879))['flat']();}['selectRevision'](_0x1bdc54){for(const _0x1bb0ae of this['revisionViews'])_0x1bdc54&&_0x1bdc54['id']===_0x1bb0ae['id']?_0x1bb0ae['select']():_0x1bb0ae['deselect']();}['highlightRevisions'](_0xa8c332){for(const _0x919ee3 of this['revisionViews'])_0xa8c332['some'](({id:_0x1ecd7d})=>_0x1ecd7d===_0x919ee3['id'])?_0x919ee3['highlight']():_0x919ee3['unhighlight']();}['_addRevision'](_0x2f38a6){const _0xa25227=bi(_0x2f38a6['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x6296f2=this['timePeriodViews']['get'](0x0);_0x6296f2&&_0x6296f2['startDate']['getTime']()===_0xa25227['getTime']()||(_0x6296f2=new fi(this['locale'],_0xa25227,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x6296f2)),_0x6296f2['addRevision'](_0x2f38a6);}['_removeRevision'](_0x306f78){const _0x5cb589=bi(_0x306f78['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5cb589)['removeRevision'](_0x306f78);}['_getTimePeriodViewByStartDate'](_0x5ed3e3){return this['timePeriodViews']['find'](_0x4623a9=>_0x4623a9['startDate']['getTime']()===_0x5ed3e3['getTime']());}}class f extends _0x557a5e{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x24566a(_0x17e096){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x340ec8,_0x5e2a3c){super(_0x5e2a3c),this['sourceElement']=_0x340ec8,this['model']['document']['createRoot']();const _0xd3a86=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0xd3a86);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xefafcb,_0x697319){const _0x1807c9=new this(_0xefafcb,_0x697319);return await _0x1807c9['initPlugins'](),await _0x1807c9['ui']['init'](_0xefafcb),await _0x1807c9['data']['init'](_0x1807c9['config']['get']('initialData')||''),_0x1807c9['fire']('ready'),_0x1807c9;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x33730e{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28e80f){function _0x211d4b(_0x1a8036){return _0x1a8036['map'](_0x120b88=>String['fromCharCode'](_0x120b88))['join']('');}super(_0x28e80f),this['result']='end',_0x28e80f[_0x211d4b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x211d4b([0x76,0x69,0x65,0x77])][_0x211d4b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x211d4b([0x61,0x75,0x74,0x6f]),_0x28e80f[_0x211d4b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x211d4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x211d4b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x211d4b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x211d4b([0x6f,0x6b])});}}class ct extends _0x33730e{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x16abd2){if(super(_0x16abd2),!this['editor']['config']['get']('revisionHistory'))throw new _0x29e59e('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x251904=>this['_showRevisionViewer']({..._0x251904,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x57035b=>this['_closeRevisionViewer'](_0x57035b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x505c0b=>this['_restoreRevision'](_0x505c0b)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xbcd595){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xbcd595;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x36b19f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x36b19f);}['getRevision'](_0x34c66){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x34c66);}['getRevisions'](_0x220ac0){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x220ac0||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x17097c=this['editor'],_0x5b6374=_0x544cca(_0x17097c,d),_0x3ef4a4=_0x17097c['plugins']['get']('RevisionTracker'),_0x33ff0b=_0x17097c['plugins']['get']('Users')['users'];return _0x5b6374['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5b6374['lazyRoots'],(_0x5b6374['plugins']['push'](ht,l,u,class extends _0x33730e{static get['requires'](){return[l,'Users'];}['init'](){const _0x34b4e8=this['editor']['plugins']['get']('Users');for(const _0xffbe3a of _0x33ff0b)_0xffbe3a['isAnonymous']||_0x34b4e8['getUser'](_0xffbe3a['id'])||_0x34b4e8['addUser'](_0xffbe3a);const _0x458212=_0x3ef4a4['repository']['getRevisions']();let _0x195111=null;const _0x53abf6=this['editor']['plugins']['get']('RevisionViewer');_0x53abf6['adapter']=_0x3ef4a4['adapter'],_0x53abf6['bind']('isEnabled')['to'](_0x3ef4a4),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x17097c,'isReadOnly',_0x1cb3f1=>!_0x1cb3f1);for(const _0x5e6ff4 of _0x458212){const _0x4c21a0=null===_0x5e6ff4['creator'];if(_0x4c21a0&&_0x5e6ff4['toVersion']===_0x5e6ff4['fromVersion'])continue;const _0x1ce47d=_0x5e6ff4['toJSON']();_0x53abf6['addRevisionData'](_0x1ce47d,(_0x4567b3,_0x379db5,_0x3d563a)=>{if(_0x4c21a0){if(_0x195111)_0x195111['_update'](_0x4567b3,_0x379db5);else{if(!_0x379db5){const _0x10c364=_0x3d563a['toJSON']();_0x10c364['id']=_0x4a9047(),_0x3ef4a4['saveRevision'](_0x10c364,_0x3d563a['toVersion'])['then'](_0x3de7d0=>{_0x195111=_0x3de7d0;});}}}else _0x5e6ff4['_update'](_0x4567b3,_0x379db5);});}}},f),_0x5b6374);}['_enhanceShowRevisionViewerCallback'](){const _0x3d9827=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xba5479=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x526292=this['editor']['plugins']['get']('Autosave');await _0x526292['save']();}else await _0xba5479['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x57b27a=this['editor']['plugins']['get']('Dialog');_0x57b27a['isOpen']&&_0x57b27a['hide']();}const _0x2f6042=this['_getRevisionViewerEditorConfig']();return _0x3d9827(_0x2f6042)['then'](_0x267e39=>{return(this['_viewerEditor']=_0x267e39,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x267e39);})['catch'](_0x3b98de=>(console['error'](_0x3b98de),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x568cc4=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x568cc4(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x477cf0=this['editor']['plugins']['get']('Annotations');_0x477cf0['refreshVisibility'](),_0x477cf0['refreshPositioning']();}})));}['_showRevisionViewer'](_0x57008b){const _0x495781=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x47a6a5=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x55e2e3=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x55e2e3,_0x57008b)['then'](_0x8942cf=>(_0x47a6a5['style']['display']='block',_0x495781['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x8942cf));}['_closeRevisionViewer'](_0x35a8d7){const _0x434c9d=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x434c9d['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x35a8d7['destroy']();}async['_restoreRevision'](_0x58cb0b){const _0x4e1bb6=this['editor'],_0x1dc902=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2efe3c=_0x4e1bb6['plugins']['get']('RevisionTracker'),_0x3d5f40=_0x4e1bb6['plugins']['get']('RevisionHistoryUtils'),_0x129b56=_0x1dc902['repository']['getRevision'](_0x58cb0b);let _0xac348e,_0x2437a6,_0x47df44;try{await _0x3d5f40['loadRevisionData'](_0x129b56,this['adapter']),_0xac348e=_0x3d5f40['getRevisionDocumentData'](_0x129b56),_0x2437a6=_0x3d5f40['getRevisionRootsAttributes'](_0x129b56);}catch(_0x4d1666){return void console['error'](_0x4d1666);}_0x4e1bb6['model']['change'](_0xed7c2b=>{for(const _0x2a762b of Array['from'](_0x4e1bb6['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xed7c2b['removeMarker'](_0x2a762b);}),_0x1dc902['isReady']=!0x1,_0x4e1bb6['model']['enqueueChange'](_0xeb9283=>{_0xeb9283['setSelection'](null),_0xeb9283['removeSelectionAttribute'](_0x4e1bb6['model']['document']['selection']['getAttributeKeys']());const _0x328389=Object['keys'](_0xac348e);for(const _0x331166 of _0x4e1bb6['model']['document']['roots'])'$graveyard'!=_0x331166['rootName']&&_0x331166['isAttached']()&&!_0x328389['includes'](_0x331166['rootName'])&&_0xeb9283['detachRoot'](_0x331166);for(const _0x6727a7 of _0x328389){let _0x4acdbb=_0x4e1bb6['model']['document']['getRoot'](_0x6727a7);_0x4acdbb&&_0x4acdbb['isAttached']()||(_0x4acdbb=_0xeb9283['addRoot'](_0x6727a7));const _0xce146c=_0x2437a6[_0x6727a7],_0x20ff22=Object['keys'](_0xce146c),_0x5e5e1b=_0xac348e[_0x6727a7];for(const _0x305fb3 of _0x4acdbb['getAttributeKeys']())_0x20ff22['includes'](_0x305fb3)||_0xeb9283['removeAttribute'](_0x305fb3,_0x4acdbb);for(const _0x8eae2 of _0x20ff22)_0xeb9283['setAttribute'](_0x8eae2,_0x2437a6[_0x6727a7][_0x8eae2],_0x4acdbb);_0xeb9283['remove'](_0xeb9283['createRangeIn'](_0x4acdbb)),_0xeb9283['insert'](_0x4e1bb6['data']['parse'](_0x5e5e1b,_0x4acdbb),_0x4acdbb,0x0);}});const _0x5b7833=R(_0x4e1bb6['locale'],'Restored');if(_0x129b56['name'])_0x47df44=-0x1==_0x129b56['name']['indexOf'](_0x5b7833)?_0x5b7833+':\x20'+_0x129b56['name']:_0x129b56['name'];else _0x47df44=_0x5b7833+':\x20'+(_0x129b56['createdAt']['toLocaleDateString'](_0x4e1bb6['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x129b56['createdAt']['toLocaleTimeString'](_0x4e1bb6['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2efe3c['saveRevision']({'name':_0x47df44}),_0x1dc902['isReady']=!0x0,_0x4e1bb6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x88fe8b){super(_0x88fe8b),this['_revisionViewer']=_0x88fe8b['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5ebf6a=this['_revisionsRepository']['_revisions'],_0x15259c=this['_createRevisionActions'](),_0x5939e6=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ui(this['editor']['locale'],_0x5ebf6a,_0x15259c,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',(_0x51d5e9,_0x2db3e8)=>{_0x2db3e8['revisionViews']['on']('add',(_0x45dd62,_0x51ddb4)=>{_0x51ddb4['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)),_0x5939e6['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x7ad659=this['_revisionsRepository']['getRevision'](0x0);if(_0x7ad659){const _0x5f20fb=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x7ad659['id']);this['_revisionViewer']['compare'](_0x7ad659,_0x5f20fb);}}['_handleRevisionSelected'](_0x34bc7e,_0x4e0431){const _0x37f99b=this['_revisionsRepository']['getRevision'](_0x4e0431['id']),_0x4d81d1=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x37f99b['id']);this['_revisionViewer']['compare'](_0x37f99b,_0x4d81d1);}['_handleRevisionSetName'](_0x387b74,_0xc76e16){this['_revisionsRepository']['getRevision'](_0xc76e16['id'])['setName'](_0xc76e16['name']);}['_handleDiffChange'](_0x2cb0af,_0xae2c80,_0x5026f9){const _0xc6835=this['_revisionsRepository']['getRevisionsInDiff'](_0x5026f9);_0xc6835['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xc6835),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xc6835[0x0]));}['_createRevisionActions'](){const _0x4aba52=this['editor'],_0x3caf0d=f['availableRevisionActions'],_0x19ef32=_0x4aba52['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x19ef32['length'])return _0x19ef32['map'](_0x3f57d3=>{const _0x331a65='string'==typeof _0x3f57d3?Object['assign']({},_0x3caf0d[_0x3f57d3]):_0x3f57d3;return _0x331a65['action']=_0x331a65['action']['bind'](this,_0x4aba52),_0x331a65['isVisible']&&(_0x331a65['isVisible']=_0x331a65['isVisible']['bind'](this,_0x4aba52)),_0x331a65;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5c76ae},_0x415e40)=>{const _0x13c687=_0x5c76ae['get'](l),_0x4cf802=_0x13c687['repository'];let _0x6ac2b4=_0x13c687['diff']['newRevisionId'],_0x511dc2=_0x415e40['id'];_0x4cf802['getIndex'](_0x6ac2b4)>_0x4cf802['getIndex'](_0x511dc2)&&([_0x6ac2b4,_0x511dc2]=[_0x511dc2,_0x6ac2b4]),_0x13c687['compare'](_0x6ac2b4,_0x511dc2);},'isVisible':({plugins:_0x1a15f8},_0x50e4b8)=>{const _0x2d8b47=_0x1a15f8['get'](l);return!(_0x2d8b47['repository']['getRevisionsInDiff'](_0x2d8b47['diff'])['length']>0x2)&&!_0x50e4b8['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5c4135,{id:_0x44e009})=>{_0x5c4135['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x44e009);},'isVisible':({plugins:_0x5bbbe9},_0xae1cf4)=>!!_0x5bbbe9['get'](l)['repository']['getLaterVisibleRevision'](_0xae1cf4['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4f5420},{id:_0x1056ce,revisionNameView:_0x5179de})=>{const _0x576ceb=_0x4f5420['get'](l),_0x2f7985=_0x576ceb['repository']['getEarlierVisibleRevision'](_0x1056ce);_0x576ceb['compare'](_0x1056ce,_0x2f7985),_0x5179de['focus'](),_0x5179de['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2519d0,_0x323816){super(_0x2519d0),this['_view']=_0x323816,this['_toolbarConfig']=st(_0x2519d0['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x361afe){const _0x47b63c=this['editor'],_0x19b043=this['view'],_0xdb45de=_0x47b63c['editing']['view'],_0x14d911=_0x19b043['editable'],_0x103fe6=_0xdb45de['document']['getRoot']();_0x14d911['name']=_0x103fe6['rootName'],_0x19b043['render']();const _0x403d0a=_0x14d911['element'];this['setEditableElement'](_0x14d911['name'],_0x403d0a),_0x19b043['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xdb45de['attachDomRoot'](_0x403d0a),this['_elementReplacer']['replace'](_0x361afe,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x6dfec0=this['view'],_0x4abd61=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4abd61['detachDomRoot'](_0x6dfec0['editable']['name']),_0x6dfec0['destroy']();}['_initToolbar'](){const _0x100375=this['view'];_0x100375['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x100375['stickyPanel']['limiterElement']=_0x100375['element'],_0x100375['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5607fa})=>_0x5607fa),_0x100375['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x100375['toolbar']);}}class ii extends _0x24ef8d{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x411517,_0x4d8f40,_0x476cf2={}){super(_0x411517),this['stickyPanel']=new _0x6ddc23(_0x411517),this['toolbar']=new _0xad3739(_0x411517,{'shouldGroupWhenFull':_0x476cf2['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x411517,_0x4d8f40);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x514d34(_0x2522a6){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4ce61f,_0x296977){super(_0x296977),this['sourceElement']=_0x4ce61f,this['model']['document']['createRoot']();const _0x50b349=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x50b349);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x241a31,_0x4797d6){const _0x5d1618=new this(_0x241a31,_0x4797d6);return await _0x5d1618['initPlugins'](),await _0x5d1618['ui']['init'](_0x241a31),await _0x5d1618['data']['init'](_0x5d1618['config']['get']('initialData')||''),_0x5d1618['fire']('ready'),_0x5d1618;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x557a5e{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37a095){function _0x1c5d53(_0xa81cef){return _0xa81cef['map'](_0x51feb4=>String['fromCharCode'](_0x51feb4))['join']('');}super(_0x37a095),this['result']='end',_0x37a095[_0x1c5d53([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c5d53([0x76,0x69,0x65,0x77])][_0x1c5d53([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c5d53([0x61,0x75,0x74,0x6f]),_0x37a095[_0x1c5d53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1c5d53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c5d53([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1c5d53([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1c5d53([0x6f,0x6b])});}}class ht extends _0x557a5e{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x17f0a1){if(super(_0x17f0a1),!this['editor']['config']['get']('revisionHistory'))throw new _0x31ce40('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4829d8=>this['_showRevisionViewer']({..._0x4829d8,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x11b211=>this['_closeRevisionViewer'](_0x11b211)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x228061=>this['_restoreRevision'](_0x228061)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xcb651){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xcb651;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x318c0a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x318c0a);}['getRevision'](_0x4f2c4f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4f2c4f);}['getRevisions'](_0x2d1f59){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2d1f59||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4fd20f=this['editor'],_0x4bc60c=_0x3162bb(_0x4fd20f,d),_0x2c738a=_0x4fd20f['plugins']['get']('RevisionTracker'),_0x1a6f9c=_0x4fd20f['plugins']['get']('Users')['users'];return _0x4bc60c['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4bc60c['lazyRoots'],(_0x4bc60c['plugins']['push'](at,l,u,class extends _0x557a5e{static get['requires'](){return[l,'Users'];}['init'](){const _0x1372d3=this['editor']['plugins']['get']('Users');for(const _0x4f45a9 of _0x1a6f9c)_0x4f45a9['isAnonymous']||_0x1372d3['getUser'](_0x4f45a9['id'])||_0x1372d3['addUser'](_0x4f45a9);const _0x16f13a=_0x2c738a['repository']['getRevisions']();let _0x2b29e0=null;const _0x22338f=this['editor']['plugins']['get']('RevisionViewer');_0x22338f['adapter']=_0x2c738a['adapter'],_0x22338f['bind']('isEnabled')['to'](_0x2c738a),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4fd20f,'isReadOnly',_0x4144b7=>!_0x4144b7);for(const _0x419cf4 of _0x16f13a){const _0x1d4b1d=null===_0x419cf4['creator'];if(_0x1d4b1d&&_0x419cf4['toVersion']===_0x419cf4['fromVersion'])continue;const _0x467c87=_0x419cf4['toJSON']();_0x22338f['addRevisionData'](_0x467c87,(_0x724c30,_0x14321f,_0x373496)=>{if(_0x1d4b1d){if(_0x2b29e0)_0x2b29e0['_update'](_0x724c30,_0x14321f);else{if(!_0x14321f){const _0x1fc5f5=_0x373496['toJSON']();_0x1fc5f5['id']=_0x5bd0bf(),_0x2c738a['saveRevision'](_0x1fc5f5,_0x373496['toVersion'])['then'](_0x266610=>{_0x2b29e0=_0x266610;});}}}else _0x419cf4['_update'](_0x724c30,_0x14321f);});}}},f),_0x4bc60c);}['_enhanceShowRevisionViewerCallback'](){const _0x19b334=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x47a271=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5c8484=this['editor']['plugins']['get']('Autosave');await _0x5c8484['save']();}else await _0x47a271['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x71df26=this['editor']['plugins']['get']('Dialog');_0x71df26['isOpen']&&_0x71df26['hide']();}const _0x48f6af=this['_getRevisionViewerEditorConfig']();return _0x19b334(_0x48f6af)['then'](_0x1650dc=>{return(this['_viewerEditor']=_0x1650dc,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x1650dc);})['catch'](_0x313046=>(console['error'](_0x313046),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x749f39=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x749f39(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x49612d=this['editor']['plugins']['get']('Annotations');_0x49612d['refreshVisibility'](),_0x49612d['refreshPositioning']();}})));}['_showRevisionViewer'](_0x46199f){const _0x51aab0=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x228232=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3c7f1d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x3c7f1d,_0x46199f)['then'](_0x30d5ef=>(_0x228232['style']['display']='block',_0x51aab0['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x30d5ef));}['_closeRevisionViewer'](_0x7ffe){const _0x18ce42=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x18ce42['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x7ffe['destroy']();}async['_restoreRevision'](_0x2b34cb){const _0xd3ee3f=this['editor'],_0x48d33c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x35a67c=_0xd3ee3f['plugins']['get']('RevisionTracker'),_0x466af3=_0xd3ee3f['plugins']['get']('RevisionHistoryUtils'),_0x3bcd19=_0x48d33c['repository']['getRevision'](_0x2b34cb);let _0x5dd730,_0x1bd1fa,_0x1c7b7e;try{await _0x466af3['loadRevisionData'](_0x3bcd19,this['adapter']),_0x5dd730=_0x466af3['getRevisionDocumentData'](_0x3bcd19),_0x1bd1fa=_0x466af3['getRevisionRootsAttributes'](_0x3bcd19);}catch(_0x551941){return void console['error'](_0x551941);}_0xd3ee3f['model']['change'](_0x146561=>{for(const _0x4ca141 of Array['from'](_0xd3ee3f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x146561['removeMarker'](_0x4ca141);}),_0x48d33c['isReady']=!0x1,_0xd3ee3f['model']['enqueueChange'](_0xafac5d=>{_0xafac5d['setSelection'](null),_0xafac5d['removeSelectionAttribute'](_0xd3ee3f['model']['document']['selection']['getAttributeKeys']());const _0x3529c5=Object['keys'](_0x5dd730);for(const _0x18405e of _0xd3ee3f['model']['document']['roots'])'$graveyard'!=_0x18405e['rootName']&&_0x18405e['isAttached']()&&!_0x3529c5['includes'](_0x18405e['rootName'])&&_0xafac5d['detachRoot'](_0x18405e);for(const _0x175cd6 of _0x3529c5){let _0x3cb486=_0xd3ee3f['model']['document']['getRoot'](_0x175cd6);_0x3cb486&&_0x3cb486['isAttached']()||(_0x3cb486=_0xafac5d['addRoot'](_0x175cd6));const _0x1bf9fd=_0x1bd1fa[_0x175cd6],_0x31b019=Object['keys'](_0x1bf9fd),_0x395e15=_0x5dd730[_0x175cd6];for(const _0xe4377a of _0x3cb486['getAttributeKeys']())_0x31b019['includes'](_0xe4377a)||_0xafac5d['removeAttribute'](_0xe4377a,_0x3cb486);for(const _0x58eef5 of _0x31b019)_0xafac5d['setAttribute'](_0x58eef5,_0x1bd1fa[_0x175cd6][_0x58eef5],_0x3cb486);_0xafac5d['remove'](_0xafac5d['createRangeIn'](_0x3cb486)),_0xafac5d['insert'](_0xd3ee3f['data']['parse'](_0x395e15,_0x3cb486),_0x3cb486,0x0);}});const _0x5e2467=R(_0xd3ee3f['locale'],'Restored');if(_0x3bcd19['name'])_0x1c7b7e=-0x1==_0x3bcd19['name']['indexOf'](_0x5e2467)?_0x5e2467+':\x20'+_0x3bcd19['name']:_0x3bcd19['name'];else _0x1c7b7e=_0x5e2467+':\x20'+(_0x3bcd19['createdAt']['toLocaleDateString'](_0xd3ee3f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3bcd19['createdAt']['toLocaleTimeString'](_0xd3ee3f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x35a67c['saveRevision']({'name':_0x1c7b7e}),_0x48d33c['isReady']=!0x0,_0xd3ee3f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,at as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|