@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250605.0 → 0.0.0-nightly-20250606.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index-editor.css +1 -1
- package/dist/index.css +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.d.ts +1 -1
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.d.ts +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.d.ts +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.d.ts +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.d.ts +11 -11
- package/src/index.js +1 -1
- package/src/revision.d.ts +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.d.ts +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.d.ts +4 -4
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.d.ts +2 -2
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.d.ts +2 -2
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.d.ts +4 -4
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.d.ts +7 -7
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.d.ts +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.d.ts +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.d.ts +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.d.ts +3 -3
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.d.ts +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.d.ts +2 -2
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.d.ts +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.d.ts +3 -3
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +3 -3
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.d.ts +4 -4
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.d.ts +2 -2
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.d.ts +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.d.ts +3 -3
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/theme/revisionviewerloadingoverlay.css +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x5f5b63(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x285855){super(),this['id']=_0x285855['id']||_0x235c9b(),this['creator']=_0x285855['creator']||null,this['authors']=_0x285855['authors']||[],this['diffData']=_0x285855['diffData']||null,this['toVersion']=_0x285855['toVersion']||0x0,this['fromVersion']=_0x285855['fromVersion']||0x0,this['set']('name',_0x285855['name']||''),this['set']('createdAt',_0x285855['createdAt']||new Date()),this['set']('attributes',_0x285855['attributes']||{});}['setName'](_0x35af1c){this['_update']({'name':_0x35af1c});}['setAttribute'](_0x2d6d77,_0x26b487){const _0x42a0b2=_0x3db99c(this['attributes']);_0x207ad7(_0x42a0b2,_0x2d6d77,_0x26b487),this['_update']({'attributes':_0x42a0b2});}['removeAttribute'](_0x142883){const _0x51602d=_0x3db99c(this['attributes']);_0x18f589(_0x51602d,_0x142883),this['_update']({'attributes':_0x51602d});}['_update'](_0x35e1a7,_0x5edd26=!0x1){let _0x402172=!0x1;const _0x4f425a={'id':this['id']},_0x3071de=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x29ff41 of _0x3071de){const _0x192349=_0x35e1a7[_0x29ff41];void 0x0!==_0x192349&&_0x192349!==this[_0x29ff41]&&(this[_0x29ff41]=_0x192349,_0x4f425a[_0x29ff41]=_0x192349,_0x402172=!0x0);}_0x402172&&(_0x4f425a['authors']&&(_0x4f425a['authorsIds']=_0x4f425a['authors']['map'](_0x497f78=>_0x497f78['id']),delete _0x4f425a['authors']),this['fire']('_update',_0x4f425a,_0x5edd26));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xfed070=>_0xfed070['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x4af0c1{['_revisions'];static get['requires'](){return[_0xdf44e4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x282b1c){super(_0x282b1c),this['_revisions']=new _0x481a5e();}['afterInit'](){!async function(_0x1a3058){const _0x50cb12=_0x55a13c([0x43,0x6f,0x38,0x4f,0x48,0x41,0x72,0x30,0x78,0x69,0x73,0x33,0x31,0x39,0x6d,0x66,0x77,0x4e,0x71,0x4a,0x6b,0x6a,0x32,0x46,0x4c,0x74,0x54,0x6e,0x57,0x49,0x62,0x35,0x42,0x7a,0x55,0x56,0x53,0x47,0x4d,0x67,0x37,0x61,0x70,0x59,0x64,0x5a,0x63,0x51,0x75,0x4b,0x76,0x52,0x50,0x79,0x6c,0x58,0x34,0x65,0x45,0x68,0x36,0x44]),_0x390c85=0xeb829,_0x2d7ef0=0x4ec3a0df,_0x417c96=0x4ec4c93f^_0x2d7ef0,_0x447011=window[_0x55a13c([0x44,0x61,0x74,0x65])][_0x55a13c([0x6e,0x6f,0x77])](),_0x2a79be=_0x1a3058[_0x55a13c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x22e032=new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x369f75=>{_0x2a79be[_0x55a13c([0x6f,0x6e,0x63,0x65])](_0x55a13c([0x72,0x65,0x61,0x64,0x79]),_0x369f75);}),_0x4ef082={[_0x55a13c([0x6b,0x74,0x79])]:_0x55a13c([0x45,0x43]),[_0x55a13c([0x75,0x73,0x65])]:_0x55a13c([0x73,0x69,0x67]),[_0x55a13c([0x63,0x72,0x76])]:_0x55a13c([0x50,0x2d,0x32,0x35,0x36]),[_0x55a13c([0x78])]:_0x55a13c([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]),[_0x55a13c([0x79])]:_0x55a13c([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]),[_0x55a13c([0x61,0x6c,0x67])]:_0x55a13c([0x45,0x53,0x32,0x35,0x36])},_0x1c1111=_0x2a79be[_0x55a13c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x55a13c([0x67,0x65,0x74])](_0x55a13c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x15576f(){let _0xa4efac,_0x4176a7=null,_0x9fa44a=null;try{if(_0x1c1111==_0x55a13c([0x47,0x50,0x4c]))return _0x55a13c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa4efac=_0x4fc377(),!_0xa4efac)return _0x55a13c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa4efac[_0x55a13c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9fa44a=_0x5edc2c(_0xa4efac[_0x55a13c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa4efac[_0x55a13c([0x6a,0x74,0x69])])),await _0x12126e()?_0x40ef2b()?_0x268619()?_0x55a13c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f80ad()?(_0xa4efac[_0x55a13c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55a13c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4176a7=_0x19e6de(_0x55a13c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa4efac[_0x55a13c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55a13c([0x74,0x72,0x69,0x61,0x6c])&&(_0x4176a7=_0x19e6de(_0x55a13c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x201c59()):_0x55a13c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x55a13c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x55a13c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x55a13c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x268619(){const _0x3550eb=[_0x55a13c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x55a13c([0x74,0x72,0x69,0x61,0x6c])][_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa4efac[_0x55a13c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x447011/0x3e8:0xe10*_0x417c96;return _0xa4efac[_0x55a13c([0x65,0x78,0x70])]<_0x3550eb;}function _0x40ef2b(){const _0x496e3b=_0xa4efac[_0x55a13c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x496e3b)return!0x1;if(_0x496e3b[_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a13c([0x2a])))return!0x0;if(_0x496e3b[_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a13c([0x52,0x48])))return!0x0;if(_0x496e3b[_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a13c([0x52,0x52,0x48]))){if(_0x23fc40())return!0x0;if(_0x34f05f()||_0x18aaec())return!0x0;}return!0x1;}function _0x4f80ad(){const _0x358bca=_0xa4efac[_0x55a13c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x358bca||0x0==_0x358bca[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ffb5d}=new URL(window[_0x55a13c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x358bca[_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ffb5d))return!0x0;const _0x31dae9=_0x4ffb5d[_0x55a13c([0x73,0x70,0x6c,0x69,0x74])](_0x55a13c([0x2e]));return _0x358bca[_0x55a13c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e4412=>_0x5e4412[_0x55a13c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a13c([0x2a])))[_0x55a13c([0x6d,0x61,0x70])](_0xf83aa3=>_0xf83aa3[_0x55a13c([0x73,0x70,0x6c,0x69,0x74])](_0x55a13c([0x2e])))[_0x55a13c([0x73,0x6f,0x6d,0x65])](_0x39a9b9=>_0x31dae9[_0x55a13c([0x65,0x76,0x65,0x72,0x79])]((_0xf44e26,_0x1ad7fa)=>_0x39a9b9[_0x1ad7fa]===_0xf44e26||_0x39a9b9[_0x1ad7fa]===_0x55a13c([0x2a])));}function _0x201c59(){return _0x4176a7&&_0x9fa44a?new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e3c06,_0x3503a6)=>{_0x4176a7[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x5e3c06,_0x3503a6),_0x9fa44a[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x5807c5=>{_0x5807c5!=_0x55a13c([0x56,0x61,0x6c,0x69,0x64])&&_0x5e3c06(_0x5807c5);},_0x3503a6);}):_0x4176a7||_0x9fa44a||_0x55a13c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5edc2c(_0x391361,_0x13b9b0){return new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ba085=>{if(_0x240290())return _0x4ba085(_0x55a13c([0x56,0x61,0x6c,0x69,0x64]));_0x2f9bd1(),_0x2a79be[_0x55a13c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x55a13c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3005d9=!0x1;const _0x2344b0=_0x235c9b();function _0x38fc6a(_0x1ff073){return!!_0x1ff073&&(typeof _0x1ff073===_0x55a13c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ff073===_0x55a13c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ff073[_0x55a13c([0x74,0x68,0x65,0x6e])]===_0x55a13c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ff073[_0x55a13c([0x63,0x61,0x74,0x63,0x68])]===_0x55a13c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x389226(_0x5c5271){_0x2a8f61(_0x5c5271)[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x49862d=>{if(!_0x49862d||_0x49862d[_0x55a13c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x55a13c([0x6f,0x6b]))return _0x55a13c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xaeddb0(_0x18db19(_0x2344b0+_0x13b9b0))!=_0x49862d[_0x55a13c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x55a13c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x55a13c([0x56,0x61,0x6c,0x69,0x64]);})[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x484ea6=>(_0x8f1c90(),_0x484ea6),()=>{const _0xb048b0=_0xce3001();return null==_0xb048b0?(_0x8f1c90(),_0x55a13c([0x56,0x61,0x6c,0x69,0x64])):_0x55a13c(_0x447011-_0xb048b0>(0x6acf24df^_0x2d7ef0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x4ba085)[_0x55a13c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ba085(_0x55a13c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2fade2=0x4ef54e5f^_0x2d7ef0;function _0x8f1c90(){const _0x3433c2=_0x55a13c([0x6c,0x6c,0x63,0x74,0x2d])+_0xaeddb0(_0x18db19(_0x391361)),_0x59f04e=_0x5719d1(_0xaeddb0(window[_0x55a13c([0x4d,0x61,0x74,0x68])][_0x55a13c([0x63,0x65,0x69,0x6c])](_0x447011/_0x2fade2)));window[_0x55a13c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55a13c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3433c2,_0x59f04e);}function _0xce3001(){const _0x567a1d=_0x55a13c([0x6c,0x6c,0x63,0x74,0x2d])+_0xaeddb0(_0x18db19(_0x391361)),_0x358062=window[_0x55a13c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55a13c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x567a1d);return _0x358062?window[_0x55a13c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5719d1(_0x358062),0x10)*_0x2fade2:null;}function _0x2a8f61(_0x2d9673){return new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10ff38,_0x3db6a8)=>{_0x2d9673[_0x55a13c([0x74,0x68,0x65,0x6e])](_0x10ff38,_0x3db6a8),window[_0x55a13c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3db6a8,0x4ec2741f^_0x2d7ef0);});}}_0x2a79be[_0x55a13c([0x6f,0x6e])](_0x55a13c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x39e29f,_0x54893e)=>{if(_0x54893e[0x0]!=_0x391361)return _0x4ba085(_0x55a13c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54893e[0x1]={..._0x54893e[0x1],[_0x55a13c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2344b0};},{[_0x55a13c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55a13c([0x68,0x69,0x67,0x68])}),_0x2a79be[_0x55a13c([0x6f,0x6e])](_0x55a13c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x381f13=>{_0x38fc6a(_0x381f13[_0x55a13c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3005d9=!0x0,_0x389226(_0x381f13[_0x55a13c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x55a13c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55a13c([0x6c,0x6f,0x77])}),_0x22e032[_0x55a13c([0x74,0x68,0x65,0x6e])](()=>{_0x3005d9||_0x4ba085(_0x55a13c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x240290(){return _0x2a79be[_0x55a13c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55a13c([0x76,0x69,0x65,0x77])][_0x55a13c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x55a13c([0x61,0x75,0x74,0x6f]);}function _0x2f9bd1(){_0x2a79be[_0x55a13c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55a13c([0x76,0x69,0x65,0x77])][_0x55a13c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x55a13c([0x61,0x75,0x74,0x6f]);}}function _0x19e6de(_0xe181c4){const _0x26ed59=[new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x367414=>setTimeout(_0x367414,0x4eca9e13^_0x2d7ef0)),_0x22e032[_0x55a13c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dd633=>{const _0x906345=0x4ec3a0d8^_0x2d7ef0,_0xf4c35f=_0x1a3058[_0x55a13c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x7fcd4d(){_0xf4c35f[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x906345&&_0x4dd633();}_0x7fcd4d(),_0xf4c35f[_0x55a13c([0x6f,0x6e])](_0x55a13c([0x61,0x64,0x64]),_0x7fcd4d);})),new window[(_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x119ba6=>{function _0x493aeb(){for(const _0x235c54 in window)if(window[_0x55a13c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x55a13c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x235c54))&&window[_0x235c54]==_0x390c85)return _0x119ba6();_0x2a79be[_0x55a13c([0x73,0x74,0x61,0x74,0x65])]!=_0x55a13c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x55a13c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x493aeb,0x4ec3b357^_0x2d7ef0);}_0x535ed4(_0x55a13c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x493aeb();})];return window[_0x55a13c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x55a13c([0x72,0x61,0x63,0x65])](_0x26ed59)[_0x55a13c([0x74,0x68,0x65,0x6e])](()=>_0xe181c4);}async function _0x15aeac(){if(await _0x22e032,_0x535ed4(_0x55a13c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1f5f1b=_0x1a3058[_0x55a13c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x574030=_0x1a3058[_0x55a13c([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])](_0x1f5f1b[_0x55a13c([0x69,0x64])]),_0x378e81=_0x8d4c1b(_0x55a13c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x378e81[_0x55a13c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1f5f1b['id'],_0x574030?_0x574030['id']:null,!0x0),_0x378e81[_0x55a13c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x55a13c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x378e81[_0x55a13c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x378e81[_0x55a13c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2efdb6,void(_0x378e81[_0x55a13c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2efdb6);}if(_0x535ed4(_0x55a13c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4b1809=_0x8d4c1b(_0x55a13c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4b1809[_0x55a13c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x55a13c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4b1809[_0x55a13c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4b1809[_0x55a13c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2efdb6,_0x4b1809[_0x55a13c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2efdb6;}_0x2a79be[_0x55a13c([0x6d,0x6f,0x64,0x65,0x6c])][_0x55a13c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2efdb6,_0x2a79be[_0x55a13c([0x6d,0x6f,0x64,0x65,0x6c])][_0x55a13c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2efdb6,_0x2a79be[_0x55a13c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x55a13c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x23fc40(){return _0x535ed4(_0x55a13c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x8d4c1b(_0x55a13c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x55a13c([0x73,0x74,0x61,0x74,0x65])]==_0x55a13c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x34f05f(){return _0x535ed4(_0x55a13c([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 _0x18aaec(){return _0x535ed4(_0x55a13c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xb2155b(_0x2720a2){const _0x54bcb0=_0xd7b369();_0x2a79be[_0x54bcb0]=_0x55a13c([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])+_0x2720a2,_0x2720a2[_0x55a13c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x55a13c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xd7b369()]=_0x390c85),_0x2720a2!=_0x55a13c([0x56,0x61,0x6c,0x69,0x64])&&_0x15aeac();}function _0xd7b369(){const _0x562d0a=window[_0x55a13c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x55a13c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x55a13c([0x6e,0x6f,0x77])]())[_0x55a13c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x55a13c([0x2e]),'');let _0x4ebbd8=_0x55a13c([0x43]);for(let _0x3a6a84=0x0;_0x3a6a84<_0x562d0a[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a6a84+=0x2){let _0xa18245=window[_0x55a13c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x562d0a[_0x55a13c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a6a84,_0x3a6a84+0x2));_0xa18245>=_0x50cb12[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xa18245-=_0x50cb12[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4ebbd8+=_0x50cb12[_0xa18245];}return _0x4ebbd8;}function _0x4fc377(){const _0x9326c1=_0x1c1111[_0x55a13c([0x73,0x70,0x6c,0x69,0x74])](_0x55a13c([0x2e]));if(0x3!=_0x9326c1[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x20f59e(_0x9326c1[0x1]);function _0x20f59e(_0x2857a7){const _0xea0f80=_0x290448(_0x2857a7);return _0xea0f80&&_0x139704()?_0xea0f80:null;function _0x139704(){const _0x2942a1=_0xea0f80[_0x55a13c([0x6a,0x74,0x69])],_0x17a86c=window[_0x55a13c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2942a1[_0x55a13c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2942a1[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e8516={..._0xea0f80,[_0x55a13c([0x6a,0x74,0x69])]:_0x2942a1[_0x55a13c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2942a1[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e8516[_0x55a13c([0x76,0x63])],_0x18db19(_0x4e8516)==_0x17a86c;}}}async function _0x12126e(){let _0x1ba445=!0x0;try{const _0x275689=_0x1c1111[_0x55a13c([0x73,0x70,0x6c,0x69,0x74])](_0x55a13c([0x2e])),[_0x38231c,_0x53282c,_0x547ddc]=_0x275689;return _0x383217(_0x38231c),await _0x5a28b6(_0x38231c,_0x53282c,_0x547ddc),_0x1ba445;}catch{return!0x1;}function _0x383217(_0x4c7467){const _0x2d74cb=_0x290448(_0x4c7467);_0x2d74cb&&_0x2d74cb[_0x55a13c([0x61,0x6c,0x67])]==_0x55a13c([0x45,0x53,0x32,0x35,0x36])||(_0x1ba445=!0x1);}async function _0x5a28b6(_0x420b80,_0xb36305,_0x49f972){const _0x117bf3=window[_0x55a13c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x55a13c([0x66,0x72,0x6f,0x6d])](_0x17c8bd(_0x49f972),_0xb2ddb6=>_0xb2ddb6[_0x55a13c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1afcce=new window[(_0x55a13c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x55a13c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x420b80+_0x55a13c([0x2e])+_0xb36305),_0x27e776=window[_0x55a13c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x55a13c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27e776)return;const _0x39d4e1=await _0x27e776[_0x55a13c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x55a13c([0x6a,0x77,0x6b]),_0x4ef082,{[_0x55a13c([0x6e,0x61,0x6d,0x65])]:_0x55a13c([0x45,0x43,0x44,0x53,0x41]),[_0x55a13c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x55a13c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x55a13c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27e776[_0x55a13c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x55a13c([0x6e,0x61,0x6d,0x65])]:_0x55a13c([0x45,0x43,0x44,0x53,0x41]),[_0x55a13c([0x68,0x61,0x73,0x68])]:{[_0x55a13c([0x6e,0x61,0x6d,0x65])]:_0x55a13c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39d4e1,_0x117bf3,_0x1afcce)||(_0x1ba445=!0x1);}}function _0x290448(_0x3bc61f){return _0x3bc61f[_0x55a13c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x55a13c([0x65,0x79]))?JSON[_0x55a13c([0x70,0x61,0x72,0x73,0x65])](_0x17c8bd(_0x3bc61f)):null;}function _0x17c8bd(_0x15b66e){return window[_0x55a13c([0x61,0x74,0x6f,0x62])](_0x15b66e[_0x55a13c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x55a13c([0x2b]))[_0x55a13c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x55a13c([0x2f])));}function _0x18db19(_0x182704){let _0x1703a5=0x1505;function _0x381d53(_0x18ef66){for(let _0x33dc68=0x0;_0x33dc68<_0x18ef66[_0x55a13c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33dc68++){const _0xf68cf1=_0x18ef66[_0x55a13c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33dc68);_0x1703a5=(_0x1703a5<<0x5)+_0x1703a5+_0xf68cf1,_0x1703a5&=_0x1703a5;}}function _0x566da4(_0x2e5965){Array[_0x55a13c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e5965)?_0x2e5965[_0x55a13c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x566da4):_0x2e5965&&typeof _0x2e5965==_0x55a13c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x55a13c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e5965)[_0x55a13c([0x73,0x6f,0x72,0x74])]()[_0x55a13c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1f447f,_0x1a9e2f])=>{_0x381d53(_0x1f447f),_0x566da4(_0x1a9e2f);}):_0x381d53(window[_0x55a13c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e5965));}return _0x566da4(_0x182704),_0x1703a5>>>0x0;}function _0xaeddb0(_0x450321){return _0x450321[_0x55a13c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x55a13c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x55a13c([0x30]));}function _0x5719d1(_0xe7e94c){return _0xe7e94c[_0x55a13c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x55a13c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x55a13c([0x6a,0x6f,0x69,0x6e])]('');}function _0x535ed4(_0xfc0bc){return _0x2a79be[_0x55a13c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x55a13c([0x68,0x61,0x73])](_0xfc0bc);}function _0x8d4c1b(_0x4db8fd){return _0x2a79be[_0x55a13c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x55a13c([0x67,0x65,0x74])](_0x4db8fd);}function _0x2efdb6(){}function _0x55a13c(_0x55b9a4){return _0x55b9a4['map'](_0x35bff9=>String['fromCharCode'](_0x35bff9))['join']('');}_0xb2155b(await _0x15576f());}(this);}['createRevision'](_0x499c16){const _0x4e242c=this['editor']['plugins']['get']('Users');return new h({'id':_0x499c16['id'],'name':_0x499c16['name'],'creator':_0x499c16['creatorId']?_0x4e242c['getUser'](_0x499c16['creatorId']):null,'diffData':_0x499c16['diffData']||_0x499c16['data'],'authors':_0x499c16['authorsIds']['map'](_0x4adb45=>_0x4e242c['getUser'](_0x4adb45)),'createdAt':new Date(_0x499c16['createdAt']),'attributes':_0x499c16['attributes'],'fromVersion':_0x499c16['fromVersion'],'toVersion':_0x499c16['toVersion']});}['addRevision'](_0x4aac11,_0x775920=0x0){this['_revisions']['add'](_0x4aac11,_0x775920);}['getRevision'](_0x4aa847){return this['_revisions']['get'](_0x4aa847);}['getRevisions'](_0x5bfa7c={'toJSON':!0x1}){const _0x26160d=Array['from'](this['_revisions']);return _0x26160d['reverse'](),_0x5bfa7c['toJSON']?_0x26160d['map'](_0x2c6c81=>_0x2c6c81['toJSON']()):_0x26160d;}['getIndex'](_0x1788c8){return this['_revisions']['getIndex'](_0x1788c8);}['getEarlierVisibleRevision'](_0x1639ac){const [,_0x18af0f]=this['getRevisionsIterator'](_0x1639ac,{'direction':'earlier'});return _0x18af0f;}['getLaterVisibleRevision'](_0x25f793){const [,_0xedbf82]=this['getRevisionsIterator'](_0x25f793,{'direction':'later'});return _0xedbf82;}['getRevisionsInDiff'](_0x24e55b){const _0x5d73f1=[];for(const _0x55cf7e of this['getRevisionsIterator'](_0x24e55b['newRevisionId']))if(_0x5d73f1['push'](_0x55cf7e),_0x55cf7e['id']===_0x24e55b['oldRevisionId'])break;return _0x5d73f1;}*['getRevisionsIterator'](_0x3b9c66,{direction:_0x13e69d='earlier',filter:_0x111365=()=>!0x0}={}){const _0x30b82d='earlier'===_0x13e69d?0x1:-0x1;let _0x28770b=this['_revisions']['get'](_0x3b9c66),_0x4cdb2d=this['getIndex'](_0x28770b);for(yield _0x28770b;_0x28770b;){if(_0x4cdb2d+=_0x30b82d,_0x28770b=this['getRevision'](_0x4cdb2d),!_0x28770b)return;_0x111365(_0x28770b)&&(yield _0x28770b);}}}class V extends _0x4af0c1{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x334b3e,'c'],[_0x1c4965,'a'],[_0x3be868,'e'],[_0x1bfa9d,'r'],[_0x526ec4,'u']]);['_typeCharToViewClass']=new Map([['c',_0x334b3e],['a',_0x1c4965],['e',_0x3be868],['r',_0x1bfa9d],['u',_0x526ec4]]);async['loadRevisionData'](_0x54ff67,_0x29608a){if(_0x54ff67['diffData']||!_0x29608a)return;const _0x54e5a9=this['editor']['config']['get']('collaboration.channelId'),_0x2f7d34=await _0x29608a['getRevision']({'channelId':_0x54e5a9,'revisionId':_0x54ff67['id']});_0x54ff67['diffData']=_0x2f7d34['diffData'];}['getRevisionDocumentData'](_0x415a79){const _0x1c020d={};for(const _0x1686e9 in _0x415a79['diffData']){if(_0x415a79['diffData'][_0x1686e9]['attachChange']&&!_0x415a79['diffData'][_0x1686e9]['attachChange']['isAttached'])continue;const _0x2ef989=this['_removeRevisionMarkers'](JSON['parse'](_0x415a79['diffData'][_0x1686e9]['insertions'])),_0x502ab4=this['editor']['editing']['view']['document'],_0x3cda25=new _0x305b6a(_0x502ab4,_0x2ef989['map'](_0x2a2e43=>this['_getViewFromDiffObj'](_0x2a2e43,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1c020d[_0x1686e9]=this['editor']['data']['processor']['toData'](_0x3cda25),this['editor']['data']['processor']['useFillerType']('default');}return _0x1c020d;}['getRevisionRootsAttributes'](_0x8f789d){const _0x21a5f2={};for(const _0x4f464a in _0x8f789d['diffData'])_0x8f789d['diffData'][_0x4f464a]['attachChange']&&!_0x8f789d['diffData'][_0x4f464a]['attachChange']['isAttached']||(_0x21a5f2[_0x4f464a]=_0x8f789d['diffData'][_0x4f464a]['attributesAfter']||{});return _0x21a5f2;}['_getTypeCharForViewElement'](_0x5915da){return this['_viewClassToTypeChar']['get'](_0x5915da['constructor']);}['_getViewFromDiffObj'](_0x58e751,_0x430f50){const _0x1cb61b=this['editor']['editing']['view']['document'];if('string'==typeof _0x58e751)return new _0x96c6bd(_0x1cb61b,_0x58e751);{let _0x312076,_0x48fa12;_0x48fa12='u'==_0x58e751['type']||'r'==_0x58e751['type']?[]:_0x58e751['children']['map'](_0x5d82d4=>this['_getViewFromDiffObj'](_0x5d82d4,_0x430f50));const _0x306ce9=this['_typeCharToViewClass']['get'](_0x58e751['type'])||_0x429408,_0xeb99e1=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x312076=new _0x306ce9(_0x1cb61b,_0x58e751['name'],_0x58e751['attributes'],_0x48fa12),'u'==_0x58e751['type']&&_0x58e751['children'][0x0]){const _0x419737=_0x58e751['children'][0x0];if(_0x312076['render']=function(_0x4b587e){const _0x37fbae=_0x4b587e['createElement']('div');return _0x37fbae['innerHTML']=_0x419737,_0x37fbae['childNodes'][0x0];},_0x430f50){const _0x5194af=new _0x305b6a(_0x1cb61b);_0x5194af['_appendChild'](_0x312076);const _0x14dcdb=Array['from'](_0xeb99e1['viewChildrenToDom'](_0x5194af,{'bind':!0x1})),_0x6f85a9=_0xeb99e1['domDocument']['createElement']('div');_0x6f85a9['append'](..._0x14dcdb),_0x312076=Array['from'](_0xeb99e1['domChildrenToView'](_0x6f85a9))[0x0];}}else{if('r'==_0x58e751['type']&&_0x58e751['children'][0x0]){const _0x388700=_0x58e751['children'][0x0];if(_0x312076['render']=function(_0x50c17a){_0x50c17a['innerHTML']=_0x388700;},_0x430f50){const _0x490d10=new _0x305b6a(_0x1cb61b);_0x490d10['_appendChild'](_0x312076);const _0x377d34=Array['from'](_0xeb99e1['viewChildrenToDom'](_0x490d10,{'bind':!0x1})),_0x151c37=_0xeb99e1['domDocument']['createElement']('div');_0x151c37['append'](..._0x377d34);const _0x5809a3=Array['from'](_0xeb99e1['domChildrenToView'](_0x151c37));_0x5809a3['length']>0x1?_0x312076['_appendChild'](_0x5809a3):_0x312076=_0x5809a3[0x0];}}}if(_0x58e751['customProperties']){for(const [_0x15e811,_0x2fb672]of _0x58e751['customProperties'])_0x312076['_setCustomProperty'](_0x15e811,_0x2fb672);}const _0x354e27=void 0x0===_0x58e751['fillerOffset']?null:_0x58e751['fillerOffset'];return null!==_0x354e27&&(_0x312076['getFillerOffset']=()=>_0x354e27),_0x312076;}}['_makeModelFromViewString'](_0x304126){const _0x118216=JSON['parse'](_0x304126),_0x19c696=this['editor']['editing']['view']['document'],_0x262e3a=new _0x305b6a(_0x19c696,_0x118216['map'](_0x270632=>this['_getViewFromDiffObj'](_0x270632,!0x0)));return this['editor']['data']['toModel'](_0x262e3a);}['_removeRevisionMarkers'](_0x414d2e){return(_0x414d2e=_0x414d2e['filter'](_0x1f1c12=>!_0x1f1c12['name']||'revision-start'!==_0x1f1c12['name']&&'revision-end'!==_0x1f1c12['name']))['forEach'](_0xf66190=>{'string'!=typeof _0xf66190&&(_0xf66190['children']=this['_removeRevisionMarkers'](_0xf66190['children']),_0xf66190['attributes']=_0xf66190['attributes']['filter'](_0x32d567=>!_0x32d567[0x0]['startsWith']('data-revision-')));}),_0x414d2e;}}function g(_0x3cbb08,_0x10fbcd,_0x303a11){const t=_0x3cbb08['t'];switch(_0x10fbcd){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'},_0x303a11);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x303a11);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 u extends _0x4af0c1{['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[_0xdf44e4,I,V,_0x471bff];}constructor(_0x22cc8d){super(_0x22cc8d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x521928=_0x235c9b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x521928},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 _0x19528a=this['repository']['getRevision'](0x0),_0x4cfe25=_0x19528a&&null===_0x19528a['creator']?_0x19528a:null;if(this['_continueCurrentRevision']=!!_0x4cfe25&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x518f74=this['_source']['getCurrentRevisionId'](),_0x3ad4cc=this['repository']['getRevision'](_0x518f74);if(_0x3ad4cc)this['_startingVersion']=_0x3ad4cc['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1afe41=this['_source']['history']['_operations']['find'](_0x312a7e=>!_0x312a7e['_isInit']),_0x469d65=_0x1afe41?_0x1afe41['baseVersion']:this['_source']['history']['version'];_0x19528a?(_0x19528a['toVersion']<_0x469d65&&_0x19528a['_update']({'toVersion':_0x469d65}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4cfe25['id'],this['_startingVersion']=_0x4cfe25['fromVersion']):(this['_startingVersion']=_0x19528a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x469d65,this['_continueCurrentRevision']=!0x1);}}else _0x4cfe25&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4cfe25['toVersion'],this['editor']['model']['document']['history']['version']),_0x4cfe25['fromVersion']===_0x4cfe25['toVersion']?(0x0!==_0x4cfe25['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4cfe25['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4cfe25['id'],this['_startingVersion']=_0x4cfe25['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',_0x253827=>!_0x253827),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2f0819=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2bab1a;for(const _0x5ac71d in _0x2f0819){const _0x219a26=_0x5ac71d,_0x4c709b=_0x2f0819[_0x219a26];if('revisionHistoryLicenseKeyValid'==_0x4c709b||'revisionHistoryLicenseKeyInvalid'==_0x4c709b||'revisionHistoryLicenseKeyExpired'==_0x4c709b||'revisionHistoryLicenseKeyDomainLimit'==_0x4c709b||'revisionHistoryLicenseKeyNotAllowed'==_0x4c709b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4c709b||'revisionHistoryLicenseKeyTrialLimit'==_0x4c709b||'revisionHistoryLicenseKeyUsageLimit'==_0x4c709b){delete _0x2f0819[_0x219a26],_0x2bab1a=_0x4c709b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2bab1a&&_0x2f0819['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2bab1a&&_0x2f0819['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2bab1a&&_0x2f0819['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2bab1a&&_0x2f0819['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2bab1a&&_0x2f0819['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2bab1a&&_0x2f0819['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2bab1a&&_0x2f0819['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x280abe=this['repository']['getRevision'](0x0),_0x18fb9a=await this['getRevisionDocumentData'](_0x280abe),_0x421d49=await this['getRevisionRootsAttributes'](_0x280abe);this['_replaceEditorDataWithRevisionData'](_0x18fb9a,_0x421d49);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5d87e3){this['_source']=_0x5d87e3;}async['update'](){const _0x2816f6=await this['_source']['getLatestVersion']();if(_0x2816f6>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3331c0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2816f6});_0x3331c0['authors']=_0x3331c0['authorsIds']['map'](_0x252c6e=>this['editor']['plugins']['get']('Users')['getUser'](_0x252c6e)),this['currentRevision']['_update'](_0x3331c0);}}async['saveRevision'](_0x197faf={},_0x31926c=null){const _0x5b2332=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x31926c>this['currentRevision']['toVersion']&&(_0x31926c=null),null===_0x31926c&&(_0x31926c=await this['_source']['getLatestVersion']());const _0x5f367d=this['_getFromVersion'](_0x31926c),_0x402432=this['buildRevisionData']({'from':_0x5f367d,'to':_0x31926c});if(this['currentRevision']['toVersion']<_0x31926c){const _0x544088=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x31926c,'to':_0x31926c});_0x544088['authors']=[],_0x544088['authorsIds']=[],_0x544088['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x544088,!0x0),delete _0x544088['authors'],_0x5b2332['push'](_0x544088);}_0x197faf['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x197faf['name']=_0x197faf['name']||null,_0x197faf['id']=_0x197faf['id']||_0x235c9b(),_0x197faf={..._0x197faf,..._0x402432};const _0xf2d06d=this['addRevisionData'](_0x197faf);_0x5b2332['push'](_0x197faf);const _0x1b0c40=this['repository']['getIndex'](_0xf2d06d);if(0x0!==_0x1b0c40){const _0x2483bb=this['repository']['getRevision'](_0x1b0c40-0x1);if(_0x2483bb['fromVersion']!==_0x31926c){const _0x21d23a=this['_revisionDataBuilder']['getData'](_0x31926c,_0x2483bb['toVersion']),_0x267ad3={'id':_0x2483bb['id'],'diffData':_0x21d23a['diffData'],'authorsIds':_0x21d23a['authorsIds'],'authors':_0x21d23a['authorsIds']['map'](_0x15e0c2=>this['editor']['plugins']['get']('Users')['getUser'](_0x15e0c2)),'fromVersion':_0x31926c};_0x2483bb===this['currentRevision']&&(_0x267ad3['createdAt']=new Date(_0x197faf['createdAt']['getTime']()+0xa)),_0x2483bb['_update'](_0x267ad3,!0x0),delete _0x267ad3['authors'],_0x5b2332['push'](_0x267ad3);}}if(this['adapter']){for(const _0x378b76 of _0x5b2332)this['_bufferUpdate'](_0x378b76['id'],_0x378b76,!0x0);this['sendBufferedUpdates']();}return _0xf2d06d;}['addRevisionData'](_0x864bdc){const _0x297f4d=this['repository']['createRevision'](_0x864bdc);return this['adapter']&&_0x297f4d['on']('_update',(_0xe3973e,_0x277c78,_0x3b5ee9)=>{_0x3b5ee9||(this['_bufferUpdate'](_0x277c78['id'],_0x277c78,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x297f4d,this['_findInsertionIndex'](_0x297f4d)),_0x297f4d;}async['getRevisionDocumentData'](_0x5fe603){return await this['_utils']['loadRevisionData'](_0x5fe603,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5fe603);}async['getRevisionRootsAttributes'](_0x18cb5f){return await this['_utils']['loadRevisionData'](_0x18cb5f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x18cb5f);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x190d4d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x439df3=0x0;_0x439df3<_0x190d4d['length'];_0x439df3++){const _0x3c48c7=_0x190d4d[_0x439df3];let _0x663548=!0x1;for(const _0x196f3c of Object['keys'](_0x3c48c7))void 0x0===_0x3c48c7[_0x196f3c]?delete _0x3c48c7[_0x196f3c]:'id'!==_0x196f3c&&(_0x663548=!0x0);_0x663548||(_0x190d4d[_0x439df3]=null);}if(_0x190d4d=_0x190d4d['filter'](_0x4f7c7b=>null!==_0x4f7c7b),!_0x190d4d['length'])return;for(let _0x178e16=0x0;_0x178e16<_0x190d4d['length'];_0x178e16++){const _0x3744fa=_0x190d4d[_0x178e16];void 0x0!==_0x3744fa['fromVersion']&&void 0x0===_0x3744fa['toVersion']&&(_0x3744fa['toVersion']=this['repository']['getRevision'](_0x3744fa['id'])['toVersion']),void 0x0!==_0x3744fa['toVersion']&&void 0x0===_0x3744fa['fromVersion']&&(_0x3744fa['fromVersion']=this['repository']['getRevision'](_0x3744fa['id'])['fromVersion']);}const _0x1b221f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x190d4d,_0x1b221f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3a5809=>{if(_0x3a5809){for(const _0x5e8cfe of _0x3a5809)this['setRevisionData']({'id':_0x5e8cfe['id'],'createdAt':_0x5e8cfe['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2e1e6a=null,from:_0x4c6b58=null,to:_0x52825c=null}){_0x4c6b58=null!==_0x4c6b58?_0x4c6b58:_0x2e1e6a['fromVersion'],_0x52825c=null!==_0x52825c?_0x52825c:_0x2e1e6a['toVersion'];const _0x2ac316=this['_revisionDataBuilder']['getData'](_0x4c6b58,_0x52825c),_0x1e3fe7={'diffData':_0x2ac316['diffData'],'authorsIds':_0x2ac316['authorsIds'],'fromVersion':_0x4c6b58,'toVersion':_0x52825c};if(!_0x2e1e6a||_0x52825c!==_0x2e1e6a['toVersion']){const _0x39cd87=_0x52825c-0x1,_0x1a2389=this['_source']['history']['getOperation'](_0x39cd87);_0x1e3fe7['createdAt']=_0x1a2389&&_0x1a2389['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4c6b58===this['_loadedStateData']['fromVersion']){for(const _0x29d0dc of this['_loadedStateData']['authors'])_0x1e3fe7['authorsIds']['includes'](_0x29d0dc['id'])||_0x1e3fe7['authorsIds']['push'](_0x29d0dc['id']);}return _0x1e3fe7;}['_bufferUpdate'](_0x563950,_0x40edf6,_0x27cc74){if(this['_bufferedUpdates']['has'](_0x563950)){const _0x1806bf=this['_bufferedUpdates']['get'](_0x563950);_0x40edf6=_0x27cc74?{..._0x1806bf,..._0x40edf6}:{..._0x40edf6,..._0x1806bf};}this['_bufferedUpdates']['set'](_0x563950,_0x40edf6);}['setRevisionData'](_0x244291){const _0x521ea7=this['repository']['getRevision'](_0x244291['id']);if(_0x244291['createdAt']&&(_0x244291['createdAt']=new Date(_0x244291['createdAt'])),_0x244291['authorsIds']){const _0x306021=this['editor']['plugins']['get']('Users');_0x244291['authors']=_0x244291['authorsIds']['map'](_0x54f6ba=>_0x306021['getUser'](_0x54f6ba));}_0x521ea7['_update'](_0x244291,!0x0);}['_createInitialRevision'](_0x2fc025){const _0x3a50b0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3a50b0)this['_initialRevisionId']=_0x3a50b0['id'];else{const _0x4df01b=!this['editor']['model']['document']['roots']['find'](_0x538224=>this['editor']['model']['hasContent'](_0x538224)),_0x396333=this['editor']['plugins']['get']('Users')['me']['id'],_0x4d1ae0=g(this['editor']['locale'],_0x4df01b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2fc025,'to':_0x2fc025,'id':this['_initialRevisionId'],'name':_0x4d1ae0,'creatorId':_0x396333});}}['_createCurrentRevision'](_0x5e1eb9){const _0x33896c=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x33896c),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5e1eb9,'to':_0x5e1eb9,'id':_0x33896c,'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'](_0x3441c,_0x96dac9){let _0x247649=this['editor']['config']['get']('initialData'),_0xf440fc=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x247649){_0x247649={};for(const _0x2d611d of this['editor']['model']['document']['getRootNames']())_0x247649[_0x2d611d]='';}if('string'==typeof _0x247649&&(_0x247649={'main':_0x247649}),void 0x0===_0xf440fc){_0xf440fc={};for(const _0x25bd7a of this['editor']['model']['document']['getRootNames']())_0xf440fc[_0x25bd7a]={};}let _0xcda8bf=!0x1;const _0xffde56=Object['keys'](_0x247649),_0x39ec22=Object['keys'](_0x3441c);for(const _0x47dd5e of _0xffde56){if(_0x247649[_0x47dd5e]!==_0x3441c[_0x47dd5e]&&''!==_0x247649[_0x47dd5e]['trim']()){_0xcda8bf=!0x0;break;}if(!_0x36a9f0(_0xf440fc[_0x47dd5e],_0x96dac9[_0x47dd5e])&&Object['keys'](_0xf440fc[_0x47dd5e])['length']>0x0){_0xcda8bf=!0x0;break;}}_0xcda8bf||(_0xcda8bf=_0x39ec22['some'](_0x71ea5d=>!this['editor']['model']['document']['getRoot'](_0x71ea5d))),_0xcda8bf&&_0x48800a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x247649,'editorRootsAttributes':_0xf440fc,'revisionData':_0x3441c,'revisionRootsAttributes':_0x96dac9}),this['editor']['config']['set']('initialData',_0x3441c),this['editor']['config']['set']('rootsAttributes',_0x96dac9);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1f74e7=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1f74e7['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x58285d){const _0x521a74=this['repository']['getRevisions']();_0x521a74['reverse']();let _0x4a3a0e=0x0;for(;_0x4a3a0e<_0x521a74['length'];){const _0x4936c8=_0x521a74[_0x4a3a0e];if(_0x4936c8===this['currentRevision']){_0x4a3a0e++;continue;}if(_0x4936c8['id']===this['_initialRevisionId'])break;const _0x186876=_0x58285d['toVersion']-_0x4936c8['toVersion']||_0x58285d['fromVersion']-_0x4936c8['fromVersion'];if(_0x186876>0x0)break;if(_0x186876<0x0)_0x4a3a0e++;else{if(!_0x58285d['creator']&&_0x4936c8['creator'])break;if(_0x4936c8['creator']||!_0x58285d['creator']){if(_0x58285d['createdAt']>_0x4936c8['createdAt'])break;_0x4a3a0e++;}else _0x4a3a0e++;}}return _0x4a3a0e;}['_getFromVersion'](_0x520cae){const _0x3d2a62=this['repository']['getRevisions']();_0x3d2a62['reverse'](),_0x3d2a62['shift']();const _0x40611a=_0x3d2a62['find'](_0x2449c7=>_0x2449c7['toVersion']<=_0x520cae)['toVersion'];return _0x40611a<this['_startingVersion']?this['_startingVersion']:_0x40611a;}['_makeRevision']({name:_0x3da033,from:_0xf74b0,to:_0x416ae7,creatorId:_0x46aa17,id:_0x3e79f9}){const _0x1246c6=this['buildRevisionData']({'from':_0xf74b0,'to':_0x416ae7});_0x1246c6['name']=_0x3da033,_0x1246c6['creatorId']=_0x46aa17,_0x1246c6['id']=_0x3e79f9;const _0x42923c=this['addRevisionData'](_0x1246c6);return this['adapter']&&this['_bufferUpdate'](_0x1246c6['id'],_0x1246c6,!0x0),_0x42923c;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x566f9b){this['editor']=_0x566f9b,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'](_0x44167c){this['source']=_0x44167c;const _0x55cb4d=new Map(),_0x1e0595=new Map(),_0x12e7e0=this['editor']['model']['document']['roots']['map'](_0xbeefeb=>_0xbeefeb['rootName']);for(const _0x310fc6 of _0x12e7e0){const _0x546537=this['editor']['model']['document']['getRoot'](_0x310fc6),_0x322e44=N(_0x546537);_0x55cb4d['set'](_0x310fc6,_0x322e44),_0x1e0595['set'](_0x310fc6,Object['fromEntries'](_0x546537['getAttributes']()));}const _0x336469=Array['from'](this['editor']['model']['markers'])['map'](_0x397929=>[_0x397929['name'],_0x397929['getRange']()]),_0xf8ea1a=this['source']['version'];this['_saveMetaData'](_0xf8ea1a,_0x55cb4d,_0x336469,_0x1e0595),this['_startingRevisionId']=this['_revisionId'];const _0xa38a5f=new Map(),_0x30a7e3=new Map();for(const _0x2eb911 of _0x12e7e0){const _0x3ed0b4=P(_0x2eb911);_0xa38a5f['set'](_0x2eb911,_0x3ed0b4),_0x30a7e3['set'](_0x2eb911,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xa38a5f,[],_0x30a7e3);}['getData'](_0x21eea1,_0x599c2d){if(this['_lastFrom']===_0x21eea1&&this['_lastTo']<=_0x599c2d)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x599c2d,!0x0);else{if(!this['_savedMetaData']['has'](_0x21eea1)){const _0x9bbab=this['_getPreviousFrom'](_0x21eea1);this['_calculateMetaData'](_0x9bbab,_0x21eea1,!0x1);}this['_calculateMetaData'](_0x21eea1,_0x599c2d,!0x0);}return this['_lastFrom']=_0x21eea1,this['_lastTo']=_0x599c2d,this['_getState']();}['loadState'](_0x2b91bf){const _0x35f29c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2b91bf['fromVersion'],this['_lastTo']=_0x2b91bf['toVersion'];for(const _0x40da55 in _0x2b91bf['diffData']){const _0x5045e1=_0x2b91bf['diffData'][_0x40da55]['attachChange'],_0x5e1698=_0x3db99c(_0x2b91bf['diffData'][_0x40da55]['attributesBefore'])||{},_0x1e6921=_0x35f29c['_makeModelFromViewString'](_0x2b91bf['diffData'][_0x40da55]['deletions']);_0x1e6921['rootName']=_0x40da55,_0x1e6921['_isAttached']=!_0x5045e1||!_0x5045e1['isAttached'],_0x1e6921['isAttached']=()=>_0x1e6921['_isAttached'],this['_baseRoots']['set'](_0x40da55,_0x1e6921),this['_baseRootsAttributes']['set'](_0x40da55,_0x5e1698),_0x5045e1&&this['_touchedRoots']['set'](_0x40da55,_0x5045e1);const _0x17429a=this['_makeIdsRoot'](_0x1e6921);this['_baseIdsRoots']['set'](_0x40da55,_0x17429a);for(const [_0x3af856,_0x314619]of _0x1e6921['markers']){if(!_0x3af856['startsWith']('revision:'))continue;const _0x838bef=_0x3af856['split'](':')[0x2];for(const _0x25d528 of _0x314619['getWalker']({'singleCharacters':!0x0})){const _0x163a13=this['_getVidAttributeName'](_0x25d528),_0x4e8835='elementEnd'==_0x25d528['type']?_0x25d528['previousPosition']['path']['slice'](0x0,-0x1):_0x25d528['previousPosition']['path'],_0x32fd93=_0x17429a['getNodeByPath'](_0x4e8835)['getAttribute'](_0x163a13);this['_touched']['set'](_0x32fd93,{'userId':_0x838bef});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1a3d2a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x12a397=>!this['_touched']['has'](_0x12a397));let _0x3717c2=0x0;const _0x13c563=new Map();for(const _0x20d047 in _0x2b91bf['diffData']){const _0x3f1d2a=_0x2b91bf['diffData'][_0x20d047]['attachChange'],_0xadf632=_0x3db99c(_0x2b91bf['diffData'][_0x20d047]['attributesAfter'])||{},_0x5585ca=_0x35f29c['_makeModelFromViewString'](_0x2b91bf['diffData'][_0x20d047]['insertions']);_0x5585ca['rootName']=_0x20d047,_0x5585ca['_isAttached']=!_0x3f1d2a||_0x3f1d2a['isAttached'],_0x5585ca['isAttached']=()=>_0x5585ca['_isAttached'],this['_diffRoots']['set'](_0x20d047,_0x5585ca),this['_diffRootsAttributes']['set'](_0x20d047,_0xadf632);const _0xac3910=this['_makeIdsRoot'](_0x5585ca,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x20d047,_0xac3910),_0x13c563['set'](_0x20d047,_0x5585ca['isAttached']()?_0xadf632:{});for(const [_0xd3c601,_0xea0377]of _0x5585ca['markers']){if(!_0xd3c601['startsWith']('revision:'))continue;const _0x79b46f=_0xd3c601['split'](':')[0x2];for(const _0x39d84a of _0xea0377['getWalker']({'singleCharacters':!0x0})){const _0x22b758=this['_getVidAttributeName'](_0x39d84a),_0x43199a=this['_revisionId']++,_0x6bdff3='elementEnd'==_0x39d84a['type']?_0x39d84a['previousPosition']['path']['slice'](0x0,-0x1):_0x39d84a['previousPosition']['path'];_0xac3910['getNodeByPath'](_0x6bdff3)['_setAttribute'](_0x22b758,_0x43199a),this['_touched']['set'](_0x43199a,{'userId':_0x79b46f});}}for(const _0x9adf28 of this['editor']['model']['createRangeIn'](_0x5585ca)['getWalker']({'singleCharacters':!0x0})){const _0x7f8b9d=this['_getVidAttributeName'](_0x9adf28),_0x13eeef='elementEnd'==_0x9adf28['type']?_0x9adf28['previousPosition']['path']['slice'](0x0,-0x1):_0x9adf28['previousPosition']['path'],_0x5307d2=_0xac3910['getNodeByPath'](_0x13eeef);_0x5307d2['getAttribute'](_0x7f8b9d)>0x0||_0x5307d2['_setAttribute'](_0x7f8b9d,_0x1a3d2a[_0x3717c2++]);}for(const [_0x10f4cb,_0x5dedc2]of _0x5585ca['markers'])_0x10f4cb['startsWith']('revision:')||this['_markers']['set'](_0x10f4cb,_0x5dedc2);}const _0xf63793=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xf63793),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf63793,0x1));const _0x43f990=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x43f990),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x43f990,0x1));const _0x4ac32b=Array['from'](this['_diffRoots'])['map'](([_0x241cf3,_0x47d181])=>[_0x241cf3,N(_0x47d181)]);this['_saveMetaData'](this['_lastTo'],_0x4ac32b,this['_markers'],_0x13c563);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x247e18,_0x4c2ace,_0x41d762,_0x44038a){const _0x52eff0=new Map(_0x4c2ace),_0x4a067d=new Map(_0x3db99c(_0x44038a)),_0x37e355=new Map();for(const [_0x655328,_0x3e485a]of _0x41d762)_0x37e355['set'](_0x655328,{'start':_0x3e485a['start']['clone'](),'end':_0x3e485a['end']['clone'](),'rootName':_0x3e485a['root']['rootName']});this['_savedMetaData']['set'](_0x247e18,{'roots':_0x52eff0,'markers':_0x37e355,'rootsAttributes':_0x4a067d});}['_removeMetaData'](_0x78196e){this['_savedMetaData']['delete'](_0x78196e);}['_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'](_0x21ce6c,_0x3751d8=null){let _0x49333d=null;_0x21ce6c['is']('documentFragment')||(_0x49333d=new ut(_0x21ce6c['name'],{'vid_start':null===_0x3751d8?this['_revisionId']++:_0x3751d8++}));const _0x65ea16=[];for(const _0x224086 of _0x21ce6c['getChildren']())if(_0x224086['is']('element')){_0x65ea16['push'](this['_makeIdsRoot'](_0x224086,_0x3751d8));const _0x45ad53=_0x65ea16[_0x65ea16['length']-0x1];null!==_0x3751d8&&(_0x3751d8=_0x45ad53['is']('element','$text')?_0x45ad53['getAttribute']('vid')+0x1:_0x45ad53['getAttribute']('vid_end')+0x1);}else{for(let _0x3fbabe=0x0;_0x3fbabe<_0x224086['offsetSize'];_0x3fbabe++)_0x65ea16['push'](new ut('$text',{'vid':null===_0x3751d8?this['_revisionId']++:_0x3751d8++}));}if(_0x21ce6c['is']('documentFragment')){const _0x7a3c7e=P(_0x21ce6c['rootName']);return _0x7a3c7e['_insertChild'](0x0,_0x65ea16),_0x7a3c7e;}return _0x49333d['_setAttribute']('vid_end',null===_0x3751d8?this['_revisionId']++:_0x3751d8++),_0x49333d['_insertChild'](0x0,_0x65ea16),_0x49333d;}['_calculateMetaData'](_0x79264e,_0x34642c,_0x39af04){this['_reset']();const {roots:_0x1d8a72,markers:_0x2cca77,rootsAttributes:_0x101216}=this['_savedMetaData']['get'](_0x79264e);this['_baseRoots']=new Map(_0x1d8a72),this['_baseRootsAttributes']=new Map(_0x3db99c(_0x101216));for(const [_0x4c7e45,_0x4ed4ef]of this['_baseRoots'])if('$graveyard'!==_0x4c7e45&&(this['_diffRoots']['set'](_0x4c7e45,N(_0x4ed4ef)),this['_diffRootsAttributes']=new Map(_0x3db99c(_0x101216)),_0x39af04)){const _0x3cf99d=this['_revisionId'];this['_idsRoots']['set'](_0x4c7e45,this['_makeIdsRoot'](_0x4ed4ef)),this['_baseIdsRoots']['set'](_0x4c7e45,this['_makeIdsRoot'](_0x4ed4ef,_0x3cf99d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x39af04&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x12e6bd,_0x14f209]of _0x2cca77){const _0x3e5267=this['_baseRoots']['get'](_0x14f209['rootName']),_0x399403=this['_diffRoots']['get'](_0x14f209['rootName']),_0x429003=new lt(this['_fixPosition'](_0x14f209['start'],_0x3e5267),this['_fixPosition'](_0x14f209['end'],_0x3e5267)),_0x1ac659=this['_fixRange'](_0x429003,_0x399403);_0x3e5267['markers']['set'](_0x12e6bd,_0x429003),this['_markers']['set'](_0x12e6bd,_0x1ac659);}this['_applyOperations'](_0x79264e,_0x34642c,_0x39af04);}['_applyOperations'](_0x40b8d2,_0x11b595,_0x132274){for(const _0x53b8e4 of this['source']['getOperations'](_0x40b8d2,_0x11b595))this['_handleOperation'](_0x53b8e4,_0x132274);for(const _0x3835e1 of this['_diffRoots']['values']())_0x3835e1['markers']['clear']();for(const [_0x384449,_0x504862]of this['_markers']){this['_diffRoots']['get'](_0x504862['root']['rootName'])['markers']['set'](_0x384449,_0x504862['clone']());}const _0x2df3e6=new Map(),_0x310c26=new Map();for(const [_0x43b371,_0x5ae875]of this['_diffRoots'])_0x2df3e6['set'](_0x43b371,N(_0x5ae875)),_0x310c26['set'](_0x43b371,this['_diffRootsAttributes']['get'](_0x43b371));this['_saveMetaData'](_0x11b595,_0x2df3e6,this['_markers'],_0x310c26);}['_getPreviousFrom'](_0x36a427){const _0x13385c=Array['from'](this['_savedMetaData']['keys']());_0x13385c['sort']((_0x3feda0,_0x241416)=>_0x3feda0-_0x241416),_0x13385c['reverse']();for(const _0x521350 of _0x13385c)if(_0x521350<_0x36a427)return _0x521350;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x528274,_0x3f8213){const _0xdca58f=Array['from'](_0x3f8213['markers'])['map'](([_0x5d3e24,_0x3f209c])=>[_0x5d3e24,this['_fixRange'](_0x3f209c,_0x528274)]);_0x528274['markers']=new Map(_0xdca58f);}['_transformMarkers'](_0x13f1b7){for(const _0x2df586 of this['_markers']['values']()){const _0x51d233=_0x2df586['getTransformedByOperation'](_0x13f1b7),_0x1aeec2=lt['_createFromRanges'](_0x51d233);_0x2df586['start']=_0x1aeec2['start'],_0x2df586['end']=_0x1aeec2['end'];}}['_handleOperation'](_0x10c968,_0x4078fb){if('addRoot'!=_0x10c968['type']&&'detachRoot'!=_0x10c968['type']){if('insert'==_0x10c968['type']){const _0x570728=_0x10c968['position']['root']['rootName'];this['_diffRoots']['has'](_0x570728)||(this['_diffRoots']['set'](_0x570728,P(_0x570728,!0x0)),this['_diffRootsAttributes']['set'](_0x570728,{}),_0x4078fb&&this['_idsRoots']['set'](_0x570728,P(_0x570728,!0x0)));}else{if('addRootAttribute'==_0x10c968['type']||'removeRootAttribute'==_0x10c968['type']||'changeRootAttribute'==_0x10c968['type'])return void this['_handleRootAttributeOperation'](_0x10c968);'marker'==_0x10c968['type']&&this['_handleMarkerOperation'](_0x10c968);}if('marker'!==_0x10c968['type']){const _0x2a27a1=this['_cloneOperation'](_0x10c968,this['_diffRoots']);_0x2a27a1['_execute'](),this['_transformMarkers'](_0x2a27a1);}if(_0x4078fb)switch(_0x10c968['type']){case'insert':this['_handleInsertOperation'](_0x10c968);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x10c968);break;case'merge':this['_handleMergeOperation'](_0x10c968);break;case'split':this['_handleSplitOperation'](_0x10c968);}}else this['_handleRootOperation'](_0x10c968,_0x4078fb);}['_cloneOperation'](_0x1ea183,_0x55dbef){const _0x363f40=_0x1ea183['clone']();return _0x363f40['_authorId']=_0x1ea183['_authorId'],this['_fixOperation'](_0x363f40,_0x55dbef),_0x363f40;}['_getBaseVids'](_0x2d6a33){return _0x2d6a33['map'](_0x295db7=>{const _0x549e79=this['_getVidAttributeName'](_0x295db7);return Number(_0x295db7['item']['getAttribute'](_0x549e79));});}['_generateTape'](_0x1dc84e,_0x359568){if(_0x1dc84e['is']('element','$text'))_0x359568['push']({'item':_0x1dc84e,'type':'text'});else{_0x1dc84e['is']('element')&&_0x359568['push']({'item':_0x1dc84e,'type':'elementStart'});for(const _0x587ae0 of _0x1dc84e['getChildren']())this['_generateTape'](_0x587ae0,_0x359568);_0x1dc84e['is']('element')&&_0x359568['push']({'item':_0x1dc84e,'type':'elementEnd'});}return _0x359568;}['_getState'](){const _0x9b7e2a=new Map(this['_touched']),_0x163c14=new Map(_0x9b7e2a),_0x4c6a6c=new Map(),_0x4e95cc={'insertions':{},'deletions':{}},_0x2b86e2={'insertions':{},'deletions':{}},_0x964347=new Map(),_0x2aa5bf=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2aa5bf['delete']('$graveyard');for(const _0x43da0 of _0x2aa5bf){const _0x55b922=this['_diffRoots']['get'](_0x43da0)||P(_0x43da0,!0x1),_0x58cdb5=this['_baseRoots']['get'](_0x43da0)||P(_0x43da0,!0x1);_0x55b922['isAttached']()||_0x58cdb5['isAttached']()?(_0x4e95cc['insertions'][_0x43da0]=N(_0x55b922),_0x4e95cc['deletions'][_0x43da0]=N(_0x58cdb5),this['_copyMarkers'](_0x4e95cc['deletions'][_0x43da0],_0x58cdb5),this['_copyMarkers'](_0x4e95cc['insertions'][_0x43da0],_0x55b922),_0x2b86e2['insertions'][_0x43da0]=this['_generateTape'](this['_idsRoots']['get'](_0x43da0),[]),_0x2b86e2['deletions'][_0x43da0]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x43da0)||P(_0x43da0,!0x1),[])):_0x2aa5bf['delete'](_0x43da0);}for(const _0x543fcd of _0x2aa5bf){const _0xa5a2a6=_0x2b86e2['insertions'][_0x543fcd];for(const _0x40401e of _0xa5a2a6){const _0x5f0070=this['_getVidAttributeName'](_0x40401e),_0x48756d=_0x40401e['item']['getAttribute'](_0x5f0070);_0x163c14['delete'](_0x48756d),_0x48756d>=this['_startingRevisionId']&&_0x4c6a6c['set'](_0x48756d,_0x9b7e2a['get'](_0x48756d));}}for(const _0x2aea3f of _0x2aa5bf){const _0x38ca3d=_0x2b86e2['insertions'][_0x2aea3f],_0x2855a6=this['_getBaseVids'](_0x2b86e2['deletions'][_0x2aea3f]);let _0x8eff21=0x0;for(const _0xe00e33 of _0x38ca3d){const _0x5f59d9=this['_getVidAttributeName'](_0xe00e33),_0x5ccceb=_0xe00e33['item']['getAttribute'](_0x5f59d9);if(!_0x4c6a6c['has'](_0x5ccceb)&&!_0x964347['has'](_0x5ccceb)){if(_0x163c14['has'](_0x5ccceb))_0x8eff21++;else{if(_0x5ccceb!=_0x2855a6[_0x8eff21]){const _0x3e49f4=_0x9b7e2a['get'](_0x5ccceb)||_0x9b7e2a['get'](_0x2855a6[_0x8eff21]);for(;_0x5ccceb!=_0x2855a6[_0x8eff21];)_0x163c14['has'](_0x2855a6[_0x8eff21])||(_0x964347['set'](_0x2855a6[_0x8eff21],_0x3e49f4),_0x9b7e2a['set'](_0x2855a6[_0x8eff21],_0x3e49f4)),_0x8eff21++;}_0x8eff21++;}}}}for(const _0x13f85a of _0x2aa5bf){const _0x5311c9=_0x2b86e2['insertions'][_0x13f85a];for(const _0x3d8bef of _0x5311c9){const _0x3a61b6=this['_getVidAttributeName'](_0x3d8bef),_0x4f2ed0=_0x3d8bef['item']['getAttribute'](_0x3a61b6);if(_0x964347['has'](_0x4f2ed0)){const _0x268913=_0x964347['get'](_0x4f2ed0);_0x163c14['has'](_0x4f2ed0)||_0x163c14['set'](_0x4f2ed0,{..._0x268913}),_0x4c6a6c['set'](_0x4f2ed0,{..._0x268913});}}}for(const _0x8341be of _0x163c14['keys']())_0x8341be>=this['_startingRevisionId']&&_0x163c14['delete'](_0x8341be);const _0x3781cb=new Map();for(const _0x5d6846 of _0x2aa5bf){let _0x5c12a1=_0x2b86e2['insertions'][_0x5d6846];for(const _0xb9f8fd of _0x5c12a1)if(_0xb9f8fd['item']['is']('element','tableCell')){const _0x16bd6f=this['_getVidAttributeName'](_0xb9f8fd),_0x42df57=_0xb9f8fd['item']['getAttribute'](_0x16bd6f);if(_0x4c6a6c['has'](_0x42df57)){const _0x39de6c=_0xb9f8fd['item']['parent']['parent']['getAttribute']('vid_start'),_0x4053ac=_0x3781cb['get'](_0x39de6c)||new Set();_0x4053ac['add'](_0x4c6a6c['get'](_0x42df57)['userId']),_0x3781cb['set'](_0x39de6c,_0x4053ac);}}_0x5c12a1=_0x2b86e2['deletions'][_0x5d6846];for(const _0x155352 of _0x5c12a1)if(_0x155352['item']['is']('element','tableCell')){const _0x2e0a74=this['_getVidAttributeName'](_0x155352),_0x3c9f25=_0x155352['item']['getAttribute'](_0x2e0a74);if(_0x163c14['has'](_0x3c9f25)){const _0x432055=_0x155352['item']['parent']['parent']['getAttribute']('vid_start'),_0xa49190=_0x3781cb['get'](_0x432055)||new Set();_0xa49190['add'](_0x163c14['get'](_0x3c9f25)['userId']),_0x3781cb['set'](_0x432055,_0xa49190);}}for(const _0x27dc43 of _0x3781cb['keys']())(_0x4c6a6c['has'](_0x27dc43)||_0x163c14['has'](_0x27dc43))&&_0x3781cb['delete'](_0x27dc43);}for(const _0x1fde69 of _0x2aa5bf){const _0x4d69e7=_0x2b86e2['insertions'][_0x1fde69];let _0x321780=null,_0x42d145=null;for(const _0x4c7e80 of _0x4d69e7){const _0x220b58=this['_getVidAttributeName'](_0x4c7e80),_0x2fa052=_0x4c7e80['item']['getAttribute'](_0x220b58),_0x1150e4=_0x3781cb['get'](_0x2fa052);_0x1150e4&&'elementStart'==_0x4c7e80['type']&&(_0x321780=Array['from'](_0x1150e4)[0x0],_0x42d145=_0x4c7e80['item']['getAttribute']('vid_end')),_0x321780&&(_0x163c14['set'](_0x2fa052,{'userId':_0x321780}),_0x4c6a6c['set'](_0x2fa052,{'userId':_0x321780})),_0x2fa052==_0x42d145&&(_0x321780=null,_0x42d145=null);}}const _0x10de4f={},_0x437081=new Set();for(const _0x4f5452 of _0x2aa5bf){const _0x11c400=_0x4e95cc['deletions'][_0x4f5452],_0x2aaabc=_0x4e95cc['insertions'][_0x4f5452];for(const {userId:_0x5816f4}of this['_touchedMarkers']['values']())null!==_0x5816f4&&_0x437081['add'](_0x5816f4);for(const {userId:_0x373a17}of this['_touchedRoots']['values']())null!==_0x373a17&&_0x437081['add'](_0x373a17);this['_markChanges'](_0x2aaabc,_0x2b86e2['insertions'][_0x4f5452],_0x4c6a6c,'insertion',_0x437081),this['_markChanges'](_0x11c400,_0x2b86e2['deletions'][_0x4f5452],_0x163c14,'deletion',_0x437081),_0x10de4f[_0x4f5452]={'insertions':this['_prepareViewToSave'](_0x2aaabc),'deletions':this['_prepareViewToSave'](_0x11c400),'attachChange':this['_touchedRoots']['get'](_0x4f5452)||null,'attributesBefore':_0x3db99c(this['_baseRootsAttributes']['get'](_0x4f5452))||{},'attributesAfter':_0x3db99c(this['_diffRootsAttributes']['get'](_0x4f5452))};}return{'diffData':_0x10de4f,'authorsIds':Array['from'](_0x437081)};}['_processRootBeforeSave'](_0x3daaec){for(const [,_0x10d996]of _0x3daaec['markers']){const _0x327629=_0x10d996['start']['getAncestors']()['filter'](_0x4e98a0=>'tableCell'==_0x4e98a0['name']);for(const _0x34f967 of _0x327629)0x1==_0x34f967['childCount']&&_0x34f967['getChild'](0x0)['is']('element','paragraph')&&_0x34f967['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3ec5fb){this['_processRootBeforeSave'](_0x3ec5fb);const _0x380785=this['editor']['data']['toView'](_0x3ec5fb,{}),_0x44d063=Array['from'](_0x380785['getChildren']())['map'](_0x40ea7c=>this['_getViewJson'](_0x40ea7c));return JSON['stringify'](_0x44d063);}['_getViewJson'](_0x454a32){if(_0x454a32['is']('$text'))return _0x454a32['data'];{const _0x5613dc=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x32fd49=_0x454a32,_0x40ea52=this['editor']['data']['htmlProcessor']['domConverter'],_0x16fa3b={'type':_0x5613dc['_getTypeCharForViewElement'](_0x32fd49),'name':_0x32fd49['name'],'attributes':Array['from'](_0x32fd49['getAttributes']()),'children':Array['from'](_0x32fd49['getChildren']())['map'](_0x531c5c=>this['_getViewJson'](_0x531c5c))};if(_0x454a32['is']('uiElement')&&'$comment'!=_0x454a32['name']){const _0xb1e417=_0x454a32['render'](_0x40ea52['domDocument'],_0x40ea52);_0x16fa3b['children']['push'](_0xb1e417['outerHTML']);}else{if(_0x454a32['is']('rawElement')){const _0x30516b=_0x40ea52['domDocument']['createElement'](_0x32fd49['name']);_0x454a32['render'](_0x30516b,_0x40ea52),_0x16fa3b['children']['push'](_0x30516b['innerHTML']);}}const _0xc11dad=Array['from'](_0x32fd49['getCustomProperties']());_0xc11dad['length']>0x0&&(_0x16fa3b['customProperties']=_0xc11dad);const _0x255800=_0x32fd49['getFillerOffset']();return null!==_0x255800&&(_0x16fa3b['fillerOffset']=_0x255800),_0x16fa3b;}}['_markChanges'](_0x556982,_0x2f6b4f,_0x49e398,_0x5a73a4,_0x36a610){let _0x722de6=null,_0x20b211=null,_0x123722=0x0;const _0x541ef1=this['editor']['model'];for(let _0x3bf955=0x0;_0x3bf955<_0x2f6b4f['length'];_0x3bf955++){const _0x1b80d6=this['_getVidAttributeName'](_0x2f6b4f[_0x3bf955]),_0x21cb11=_0x2f6b4f[_0x3bf955]['item']['getAttribute'](_0x1b80d6),_0xaec7b=_0x49e398['get'](_0x21cb11),_0x34ab5e=_0x3bf955==_0x2f6b4f['length']-0x1;(!_0x722de6&&_0xaec7b&&(_0x722de6=_0xaec7b,_0x20b211=_0x2f6b4f[_0x3bf955]),_0x722de6&&(!_0xaec7b||_0xaec7b['userId']!=_0x722de6['userId']))&&(_0x4aed80(_0xaec7b,F(_0x20b211,_0x556982,_0x541ef1),F(_0x2f6b4f[_0x3bf955],_0x556982,_0x541ef1)),_0x722de6=_0xaec7b||null,_0x20b211=_0xaec7b?_0x2f6b4f[_0x3bf955]:null),_0x722de6&&_0x34ab5e&&_0x4aed80(_0xaec7b,F(_0x20b211,_0x556982,_0x541ef1),B(_0x2f6b4f[_0x3bf955],_0x556982,_0x541ef1));}function _0x4aed80(_0x460d99,_0x47af46,_0x500ca1){const _0x9c5f3f=_0x722de6['userId'],_0x1a49e5='revision:'+_0x5a73a4+':'+_0x9c5f3f+':'+_0x123722++,_0x848fcb=_0x541ef1['createRange'](_0x47af46,_0x500ca1);_0x556982['markers']['set'](_0x1a49e5,_0x848fcb),null!==_0x9c5f3f&&_0x36a610['add'](_0x9c5f3f);}}['_getVidAttributeName'](_0x508b92){switch(_0x508b92['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x157542,_0x154975){_0x157542['baseVersion']=null;for(const _0x1d8600 in _0x157542){const _0x37f5ff=_0x157542[_0x1d8600];if(_0x37f5ff instanceof ft){const _0xedadf0=_0x154975['get'](_0x37f5ff['root']['rootName']);_0x157542[_0x1d8600]=this['_fixPosition'](_0x37f5ff,_0xedadf0);}if(_0x37f5ff instanceof lt){const _0x352382=_0x154975['get'](_0x37f5ff['root']['rootName']);_0x157542[_0x1d8600]=this['_fixRange'](_0x37f5ff,_0x352382);}'root'===_0x1d8600&&(_0x157542['root']=_0x154975['get'](_0x157542['root']['rootName']));}}['_fixRange'](_0x1d3c18,_0x5292ab){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1d3c18['start'],_0x5292ab),this['_fixPosition'](_0x1d3c18['end'],_0x5292ab));}['_fixPosition'](_0x2a470e,_0x383d52){return this['editor']['model']['createPositionFromPath'](_0x383d52,_0x2a470e['path'],_0x2a470e['stickiness']);}['_handleInsertOperation'](_0xd1f65e){const _0x4491f2=this['_idsRoots']['get'](_0xd1f65e['position']['root']['rootName']),_0x221da4=this['_fixPosition'](_0xd1f65e['position'],_0x4491f2),_0x3c2870=null===_0xd1f65e['_authorId']?null:_0xd1f65e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x545037=_0x221da4['parent'],_0x2538cb=this['_revisionId'],_0x3f330c=[];for(const _0x3332c8 of _0xd1f65e['nodes'])if(_0x3332c8['is']('element'))_0x3f330c['push'](this['_makeIdsRoot'](_0x3332c8));else{for(let _0x388ad1=0x0;_0x388ad1<_0x3332c8['offsetSize'];_0x388ad1++)_0x3f330c['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x517a0f=this['_revisionId'];for(let _0x3a36f3=_0x2538cb;_0x3a36f3<_0x517a0f;_0x3a36f3++)this['_touched']['set'](_0x3a36f3,{'userId':_0x3c2870});_0x545037['_insertChild'](_0x221da4['offset'],_0x3f330c);}['_handleMoveOperation'](_0x4eda44){(_0x4eda44=this['_cloneOperation'](_0x4eda44,this['_idsRoots']))['_execute']();const _0x5108aa=null===_0x4eda44['_authorId']?null:_0x4eda44['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24ee85=_0x4eda44['getMovedRangeStart'](),_0x8915a0=_0x24ee85['parent'],_0x160532=_0x24ee85['offset'];!function _0x536ce2(_0x58958a,_0x1f74c0,_0x53aa7c,_0x422837){for(let _0x3546e7=_0x53aa7c;_0x3546e7<_0x422837;_0x3546e7++){const _0x4e7de1=_0x1f74c0['getChild'](_0x3546e7);_0x4e7de1['is']('element','$text')?_0x58958a['set'](_0x4e7de1['getAttribute']('vid'),{'userId':_0x5108aa}):(_0x58958a['set'](_0x4e7de1['getAttribute']('vid_start'),{'userId':_0x5108aa}),_0x536ce2(_0x58958a,_0x4e7de1,0x0,_0x4e7de1['childCount']),_0x58958a['set'](_0x4e7de1['getAttribute']('vid_end'),{'userId':_0x5108aa}));}}(this['_touched'],_0x8915a0,_0x160532,_0x160532+_0x4eda44['howMany']);}['_handleMergeOperation'](_0x15f752){const _0x5ec3b3=null===(_0x15f752=this['_cloneOperation'](_0x15f752,this['_idsRoots']))['_authorId']?null:_0x15f752['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x18c081=_0x15f752['targetPosition']['parent'],_0x37d90c=_0x15f752['sourcePosition']['parent'],_0x3d334b=_0x18c081['getAttribute']('vid_end'),_0x2e0351=_0x37d90c['getAttribute']('vid_start');_0x18c081['_setAttribute']('vid_end',_0x37d90c['getAttribute']('vid_end')),_0x37d90c['_setAttribute']('vid_end',_0x3d334b),this['_touched']['set'](_0x2e0351,{'userId':_0x5ec3b3}),this['_touched']['set'](_0x3d334b,{'userId':_0x5ec3b3}),_0x15f752['_execute']();}['_handleSplitOperation'](_0x520efa){const _0x3a36d0=null===(_0x520efa=this['_cloneOperation'](_0x520efa,this['_idsRoots']))['_authorId']?null:_0x520efa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b1288=_0x520efa['graveyardPosition'],_0x23ad4c=_0x520efa['splitPosition']['parent'];_0x520efa['_execute']();const _0x317b43=_0x23ad4c['getAttribute']('vid_end'),_0x2fb790=_0x520efa['insertionPosition']['nodeAfter'];if(_0x1b1288){const _0x34ea24=_0x2fb790['getAttribute']('vid_end'),_0x485cd3=_0x23ad4c['getAttribute']('vid_end');_0x23ad4c['_setAttribute']('vid_end',_0x34ea24),_0x2fb790['_setAttribute']('vid_end',_0x485cd3),this['_touched']['set'](_0x23ad4c['getAttribute']('vid_end'),{'userId':_0x3a36d0}),this['_touched']['set'](_0x2fb790['getAttribute']('vid_start'),{'userId':_0x3a36d0});}else{const _0x7cfdaf=this['_revisionId']++,_0x44b026=this['_revisionId']++;_0x23ad4c['_setAttribute']('vid_end',_0x7cfdaf),_0x2fb790['_setAttribute']('vid_start',_0x44b026),_0x2fb790['_setAttribute']('vid_end',_0x317b43),this['_touched']['set'](_0x7cfdaf,{'userId':_0x3a36d0}),this['_touched']['set'](_0x44b026,{'userId':_0x3a36d0});}}['_handleMarkerOperation'](_0x47c54c){if(!_0x47c54c['affectsData'])return;const _0x2330db=(_0x47c54c=this['_cloneOperation'](_0x47c54c,this['_diffRoots']))['oldRange']?_0x47c54c['oldRange']['root']:null,_0x1beda5=_0x47c54c['newRange']?_0x47c54c['newRange']['root']:null;_0x2330db&&this['_markers']['delete'](_0x47c54c['name']),_0x1beda5&&this['_markers']['set'](_0x47c54c['name'],_0x47c54c['newRange']['clone']());const _0x419ad2=null===_0x47c54c['_authorId']?null:_0x47c54c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46ec62=_0x47c54c['name'];if(!this['_touchedMarkers']['has'](_0x46ec62))return void this['_touchedMarkers']['set'](_0x46ec62,{'range':_0x47c54c['oldRange'],'userId':_0x419ad2});const _0x36e17a=this['_touchedMarkers']['get'](_0x46ec62),_0x48c00a=_0x36e17a['range'],_0x573f16=_0x47c54c['newRange'];null==_0x48c00a&&null==_0x573f16||_0x48c00a&&_0x573f16&&_0x48c00a['isEqual'](_0x573f16)?this['_touchedMarkers']['delete'](_0x47c54c['name']):_0x36e17a['userId']=_0x419ad2;}['_handleRootOperation'](_0x1fe50f,_0x17a724){this['_diffRoots']['has'](_0x1fe50f['rootName'])?this['_diffRoots']['get'](_0x1fe50f['rootName'])['_isAttached']=_0x1fe50f['isAdd']:(this['_diffRoots']['set'](_0x1fe50f['rootName'],P(_0x1fe50f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1fe50f['rootName'],{}),_0x17a724&&this['_idsRoots']['set'](_0x1fe50f['rootName'],P(_0x1fe50f['rootName'],!0x0)));const _0x1bdc21=null===_0x1fe50f['_authorId']?null:_0x1fe50f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x247f2a=this['_touchedRoots']['get'](_0x1fe50f['rootName']);_0x247f2a&&_0x247f2a['userId']===_0x1bdc21?this['_touchedRoots']['delete'](_0x1fe50f['rootName']):this['_touchedRoots']['set'](_0x1fe50f['rootName'],{'userId':_0x1bdc21,'isAttached':_0x1fe50f['isAdd']});}['_handleRootAttributeOperation'](_0x4316f4){const _0x5d65a1=this['_diffRootsAttributes']['get'](_0x4316f4['root']['rootName']);null===_0x4316f4['newValue']?delete _0x5d65a1[_0x4316f4['key']]:_0x5d65a1[_0x4316f4['key']]=_0x4316f4['newValue'];}}function N(_0xa3b798){const _0x3e9491=P(_0xa3b798['rootName'],_0xa3b798['isAttached']());for(const _0x3edf48 of _0xa3b798['getChildren']()){const _0x332b26=_0x3edf48['_clone'](!0x0);_0x3e9491['_appendChild'](_0x332b26);}return _0x3e9491;}function P(_0x1ace43,_0x152a0c=!0x0){const _0x3f50c5=new vt();return _0x3f50c5['rootName']=_0x1ace43,_0x3f50c5['_isAttached']=_0x152a0c,_0x3f50c5['isAttached']=()=>_0x3f50c5['_isAttached'],_0x3f50c5;}function F(_0x57e918,_0xb996d1,_0x5a9552){const _0x36f68e='elementEnd'==_0x57e918['type']?_0x5a9552['createPositionAt'](_0x57e918['item'],'end'):_0x5a9552['createPositionBefore'](_0x57e918['item']);return _0x5a9552['createPositionFromPath'](_0xb996d1,_0x36f68e['path'],_0x36f68e['stickiness']);}function B(_0x418bb7,_0x469270,_0x2fc9b8){const _0x25c50a='elementStart'==_0x418bb7['type']?_0x2fc9b8['createPositionAt'](_0x418bb7['item'],0x0):_0x2fc9b8['createPositionAfter'](_0x418bb7['item']);return _0x2fc9b8['createPositionFromPath'](_0x469270,_0x25c50a['path'],_0x25c50a['stickiness']);}class hs extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x5f5b63(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5b3df2){super(),this['id']=_0x5b3df2['id']||_0x235c9b(),this['author']=_0x5b3df2['author'],this['type']=_0x5b3df2['type'],this['data']=_0x5b3df2['data']||{},this['rootName']=_0x5b3df2['rootName'],this['set']('createdAt',_0x5b3df2['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x490e36,_0x25f196){this['newRevisionId']=_0x490e36,this['oldRevisionId']=_0x25f196,this['changes']=new _0x481a5e();}['_setChanges'](_0x15440a){for(const _0x47883b of _0x15440a)this['changes']['add'](_0x47883b);}}class m extends _0x4af0c1{['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[_0xdf44e4,_0xa68a23,I,V];}constructor(_0x2a265c){super(_0x2a265c),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',(_0xc2571f,_0x166133,_0x1c12be)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1ce467=>{for(const _0x56fedf of this['editor']['editing']['view']['document']['roots'])_0x1c12be?_0x1ce467['removeClass']('ck-editor__editable__overlay',_0x56fedf):_0x1ce467['addClass']('ck-editor__editable__overlay',_0x56fedf);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3ce40d=>null!==_0x3ce40d),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x28e6ca,_0x2e1b60,_0x2c0253)=>_0x28e6ca&&_0x2c0253?_0x2e1b60['changes']['getIndex'](_0x2c0253):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2bd321,_0x4d513e)=>_0x2bd321?_0x4d513e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0xa68a23);}['init'](){const _0x2871f9=this['editor'],_0xf32896=new wt(_0x2871f9,{'direction':'backward'}),_0x5664e7=new wt(_0x2871f9,{'direction':'forward'});(_0x2871f9['commands']['add']('showPreviousChange',_0xf32896),_0x2871f9['commands']['add']('showNextChange',_0x5664e7),_0x2871f9['commands']['add']('restoreRevision',new mt(_0x2871f9)),this['on']('change:numberOfChanges',()=>{_0xf32896['refresh'](),_0x5664e7['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2871f9['enableReadOnlyMode']('revision-viewer'),_0x2871f9['plugins']['has']('WidgetToolbarRepository'))&&_0x2871f9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x434b81){return await this['_utils']['loadRevisionData'](_0x434b81,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x434b81);}async['getRevisionRootsAttributes'](_0x1fbe43){return await this['_utils']['loadRevisionData'](_0x1fbe43,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1fbe43);}async['compare'](_0xf24838,_0x5248e8,_0x57345b=!0x1){if(!this['isEnabled'])return;const _0x54b954=this['diff'],_0x2d2683=this['repository'],_0xe26b88='string'==typeof _0xf24838?_0x2d2683['getRevision'](_0xf24838):_0xf24838,_0x59499f='string'==typeof _0x5248e8?_0x2d2683['getRevision'](_0x5248e8):_0x5248e8,_0x4c981d=_0xe26b88['id'],_0x119521=_0x59499f?_0x59499f['id']:null;if(!_0x57345b&&this['diff']&&this['diff']['newRevisionId']===_0x4c981d&&this['diff']['oldRevisionId']===_0x119521)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x4c981d,_0x119521);const _0x66937b=this['_getRevisionsRange'](_0xe26b88,_0x59499f,!0x0)['map'](_0x2a26d9=>this['_utils']['loadRevisionData'](_0x2a26d9,this['adapter']));return _0x66937b['push'](new Promise(_0x747bda=>{setTimeout(_0x747bda,0x14);})),Promise['all'](_0x66937b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xdba11a=this['_getDiff'](_0x4c981d,_0x119521);for(const _0xe901be of _0xdba11a['changes'])this['_changeIdToChange']['set'](_0xe901be['id'],_0xe901be);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1d5ede=>{for(const _0x329af9 of this['editor']['model']['document']['getRootNames']())_0x1d5ede['detachRoot'](_0x329af9);for(const _0x4ae1a5 of Object['keys'](_0xdba11a['model'])){const _0x497b18=_0x1d5ede['addRoot'](_0x4ae1a5);for(const _0x500a04 of Object['keys'](_0xdba11a['attributes'][_0x4ae1a5]))_0x1d5ede['setAttribute'](_0x500a04,_0xdba11a['attributes'][_0x4ae1a5][_0x500a04],_0x497b18);_0x1d5ede['insert'](_0xdba11a['model'][_0x4ae1a5],_0x497b18,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xdba11a['changes'])),this['isReady']=!0x0;})['catch'](_0x506efd=>{console['error'](_0x506efd),this['_cleanUp'](),_0x54b954&&(this['diff']=_0x54b954),this['isReady']=!0x0;});}['addRevisionData'](_0x486a05,_0x5581f1){const _0x49efb5=this['repository']['createRevision'](_0x486a05);return _0x49efb5['on']('_update',(_0x21c28c,_0xb94871,_0xc3426d)=>_0x5581f1(_0xb94871,_0xc3426d,_0x49efb5)),this['repository']['addRevision'](_0x49efb5),_0x49efb5;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x20f17c=>{for(const _0x592b6 of this['editor']['model']['document']['getRootNames']())_0x20f17c['detachRoot'](_0x592b6);});}['_sortAndFilterDiffChanges'](_0xcd88d9){const _0x540ada=[],_0xc4b4e=new Map();for(const _0x289f6d of this['editor']['model']['document']['getRootNames']()){const _0x2117eb=this['editor']['editing']['view']['getDomRoot'](_0x289f6d);if(!_0x2117eb)continue;const _0x799caf=_0x2117eb['getClientRects']()['item'](0x0);_0x799caf&&(_0x540ada['push'](_0x289f6d),_0xc4b4e['set'](_0x289f6d,_0x799caf));}return _0x540ada['sort']((_0x3a0f0b,_0x58e64e)=>{const _0x1602b2=_0xc4b4e['get'](_0x3a0f0b),_0x489a91=_0xc4b4e['get'](_0x58e64e);return _0x1602b2['y']-_0x489a91['y']||_0x1602b2['x']-_0x489a91['x'];}),(_0xcd88d9=_0xcd88d9['filter'](_0xd720c4=>_0x540ada['includes'](_0xd720c4['rootName'])))['sort']((_0x32b752,_0x48a55d)=>_0x540ada['indexOf'](_0x32b752['rootName'])-_0x540ada['indexOf'](_0x48a55d['rootName'])),_0xcd88d9;}['_makeTape'](_0x348771){const _0x5b240a=Array['from'](_0x348771['markers'])['filter'](([_0x5c66c6,_0x3f4f24])=>_0x5c66c6['startsWith']('revision:')&&!_0x3f4f24['isCollapsed']),_0x836d36=Array['from'](this['editor']['model']['createRangeIn'](_0x348771)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5b240a['length'])for(const _0x1f150c of _0x836d36){const [_0x5aeb31,_0xd4b3c7]=_0x5b240a[0x0],[,_0xb4c5a,_0x29fcf8]=_0x5aeb31['split'](':');if(_0xd4b3c7['end']['isEqual'](_0x1f150c['nextPosition'])&&_0x5b240a['shift'](),(_0x1f150c['previousPosition']['isEqual'](_0xd4b3c7['start'])||_0x1f150c['previousPosition']['isAfter'](_0xd4b3c7['start']))&&('insertion'==_0xb4c5a?_0x1f150c['isAdded']={'userId':_0x29fcf8}:'deletion'==_0xb4c5a&&(_0x1f150c['isRemoved']={'userId':_0x29fcf8})),0x0==_0x5b240a['length'])break;}return _0x836d36;}['_refreshStartEndIndex'](_0x5ac800){const _0x2bd47d=new Map();for(let _0x351055=0x0;_0x351055<_0x5ac800['length'];_0x351055++)'text'===_0x5ac800[_0x351055]['type']?(_0x5ac800[_0x351055]['item']['startIndex']=_0x351055,_0x5ac800[_0x351055]['item']['endIndex']=_0x351055):('elementStart'===_0x5ac800[_0x351055]['type']?_0x5ac800[_0x351055]['item']['startIndex']=_0x351055:'elementEnd'===_0x5ac800[_0x351055]['type']&&(_0x5ac800[_0x351055]['item']['endIndex']=_0x351055),_0x2bd47d['set'](_0x5ac800[_0x351055]['id'],_0x351055));for(const _0x7bd30d of _0x2bd47d['values']())'elementStart'===_0x5ac800[_0x7bd30d]['type']?_0x5ac800[_0x7bd30d]['item']['endIndex']=_0x2bd47d['get'](_0x5ac800[_0x7bd30d]['pairId']):'elementEnd'===_0x5ac800[_0x7bd30d]['type']&&(_0x5ac800[_0x7bd30d]['item']['startIndex']=_0x2bd47d['get'](_0x5ac800[_0x7bd30d]['pairId']));}['_processTape'](_0x23324b){for(let _0x2f93a6=0x0;_0x2f93a6<_0x23324b['length'];_0x2f93a6++){if('elementStart'===_0x23324b[_0x2f93a6]['type'])_0x23324b[_0x2f93a6]['item']['startIndex']=_0x2f93a6;else{if('elementEnd'===_0x23324b[_0x2f93a6]['type']){_0x23324b[_0x2f93a6]['item']['endIndex']=_0x2f93a6;const _0x3a7f82=_0x23324b[_0x2f93a6]['item']['startIndex'];_0x23324b[_0x3a7f82]['pairId']=_0x23324b[_0x2f93a6]['id'],_0x23324b[_0x2f93a6]['pairId']=_0x23324b[_0x3a7f82]['id'];}else _0x23324b[_0x2f93a6]['item']['startIndex']=_0x2f93a6,_0x23324b[_0x2f93a6]['item']['endIndex']=_0x2f93a6,_0x23324b[_0x2f93a6]['pairId']=null;}_0x23324b[_0x2f93a6]['markersStart']||(_0x23324b[_0x2f93a6]['markersStart']=[],_0x23324b[_0x2f93a6]['markersEnd']=[]);}}['_markInsertions'](_0x310927,_0x4ae25f){const _0x33c941=_0x310927['filter'](_0x160454=>!_0x160454['isAdded']);for(let _0x3dd940=0x0;_0x3dd940<_0x4ae25f['length'];_0x3dd940++)_0x4ae25f[_0x3dd940]['isAdded']&&(_0x33c941[_0x3dd940]['isAdded']=_0x4ae25f[_0x3dd940]['isAdded']);}['_getDiff'](_0x3c913c,_0x1faad8=null){const _0x17fef6=this['repository']['getRevision'](_0x3c913c),_0xddbb4d=_0x1faad8?this['repository']['getRevision'](_0x1faad8):null,_0x12d9fa=this['_getRevisionsRange'](_0x17fef6,_0xddbb4d),_0x3f1d08=_0x12d9fa[_0x12d9fa['length']-0x1],_0x4212a4=new Map(),_0xe34932={'model':{},'attributes':{},'changes':[]},_0x25e394=new Set(),_0x1c7773=new Map();for(let _0x51da0f=_0x12d9fa['length']-0x1;_0x51da0f>=0x0;_0x51da0f--){const _0x24cb60=_0x12d9fa[_0x51da0f];for(const _0x3c689d of Object['keys'](_0x24cb60['diffData']))if(_0x24cb60['diffData'][_0x3c689d]['attachChange']){const _0x1bb070=_0x24cb60['diffData'][_0x3c689d]['attachChange'];_0x1bb070['isAttached']?(_0x25e394['add'](_0x3c689d),_0x1c7773['has'](_0x3c689d)&&_0x1c7773['get'](_0x3c689d)['userId']==_0x1bb070['userId']?_0x1c7773['delete'](_0x3c689d):_0x1c7773['set'](_0x3c689d,_0x1bb070)):_0x1c7773['has'](_0x3c689d)?(_0x25e394['delete'](_0x3c689d),_0x1c7773['delete'](_0x3c689d)):(_0x25e394['add'](_0x3c689d),_0x1c7773['set'](_0x3c689d,_0x1bb070));}else _0x25e394['add'](_0x3c689d);}for(const _0x173240 of _0x25e394){const _0x2c8645=_0x1c7773['has'](_0x173240)&&!_0x1c7773['get'](_0x173240)['isAttached'];let _0x4110b2=_0x2c8645?_0x12d9fa['length']-0x1:0x0;const _0x3632ea=_0x2c8645?-0x1:0x1;for(;_0x12d9fa[_0x4110b2];){const _0x5d20e5=_0x12d9fa[_0x4110b2];if(_0x5d20e5['diffData'][_0x173240]){const _0x42fce7=_0x2c8645?_0x5d20e5['diffData'][_0x173240]['attributesBefore']:_0x5d20e5['diffData'][_0x173240]['attributesAfter'];_0xe34932['attributes'][_0x173240]=_0x42fce7?_0x3db99c(_0x42fce7):{};break;}_0x4110b2+=_0x3632ea;}}for(const _0x59a96e of _0x12d9fa){_0x59a96e['model']={};for(const _0x1249ab of _0x59a96e['authors'])_0x4212a4['set'](_0x1249ab['id'],_0x1249ab);for(const _0x3b2554 of _0x25e394){const _0x12c348=_0x59a96e['diffData'][_0x3b2554]?_0x59a96e['diffData'][_0x3b2554]['insertions']:'[]',_0x42dda2=_0x59a96e['diffData'][_0x3b2554]?_0x59a96e['diffData'][_0x3b2554]['deletions']:'[]';_0x59a96e['model'][_0x3b2554]={'insertions':this['_utils']['_makeModelFromViewString'](_0x12c348),'deletions':this['_utils']['_makeModelFromViewString'](_0x42dda2)};}}for(const _0x17e139 of _0x25e394){let _0x1a8a1a=null,_0x1fe866=0x0;const _0x2eb517=new Map(Array['from'](_0x17fef6['model'][_0x17e139]['insertions']['markers'])['filter'](([_0x869b6c])=>!_0x869b6c['startsWith']('revision:')));let _0x192b18=0x0;for(const _0x38036e of _0x12d9fa){const _0x1e386b=this['_makeTape'](_0x38036e['model'][_0x17e139]['insertions']);_0x38036e==_0x17fef6?(_0x1a8a1a=_0x1e386b,_0x1fe866=_0x1a8a1a['length'],_0x1a8a1a['forEach'](_0x39c08d=>{_0x39c08d['id']=_0x192b18++;}),this['_processTape'](_0x1a8a1a)):this['_markInsertions'](_0x1a8a1a,_0x1e386b);const _0x564a8e=_0x1a8a1a['filter'](_0x476bf3=>!_0x476bf3['isAdded'])['map'](_0x1f4e4b=>_0x1f4e4b['id']);let _0x3d4b81=0x0;const _0x2ce42a=this['_makeTape'](_0x38036e['model'][_0x17e139]['deletions']);_0x2ce42a['forEach'](_0x145091=>{_0x145091['isRemoved']?_0x145091['id']=_0x1fe866++:_0x145091['id']=_0x564a8e[_0x3d4b81++];}),this['_processTape'](_0x2ce42a),this['_setDistance'](_0x1a8a1a,'isAdded'),this['_setDistance'](_0x2ce42a,'isRemoved'),_0x38036e==_0x17fef6&&this['_markMarkers'](_0x1a8a1a,_0x2eb517),_0x1a8a1a=this['_joinTapes'](_0x1a8a1a,_0x2ce42a),this['_refreshStartEndIndex'](_0x1a8a1a),this['_setDistance'](_0x1a8a1a,'isRemoved');}_0x1a8a1a=_0x1a8a1a['filter'](_0x16b6cf=>!(_0x16b6cf['isAdded']&&_0x16b6cf['isRemoved']));const _0x9769da=new Map(_0x3f1d08['model'][_0x17e139]['deletions']['markers']),_0x2f5b0b=new Set(_0x2eb517['keys']());for(const _0x1cf9b2 of _0x9769da['keys']())_0x2f5b0b['delete'](_0x1cf9b2);this['_markSuggestions'](_0x1a8a1a,_0x2f5b0b),this['_fixObsoleteTags'](_0x1a8a1a),_0x1a8a1a=this['_removeMissingPairs'](_0x1a8a1a),_0x1a8a1a=this['_markMismatchedRemovedTags'](_0x1a8a1a),_0x1a8a1a=this['_removeUnsupportedChanges'](_0x1a8a1a);const {root:_0x37b439,changes:_0x3bd18e}=this['_makeModelFromTape'](_0x1a8a1a,_0x4212a4,_0x17e139);_0xe34932['model'][_0x17e139]=_0x37b439;const _0x21fc85=_0x1c7773['get'](_0x17e139);if(_0x21fc85){const _0xfa5008=_0x4212a4['get'](_0x21fc85['userId']),_0x531f4d=new r({'author':_0xfa5008,'type':_0x21fc85['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x17e139});_0x3bd18e['unshift'](_0x531f4d),_0xe34932['attributes'][_0x17e139]['revisionHistoryAttachChange']=_0x531f4d['id'];}_0xe34932['changes']=_0xe34932['changes']['concat'](_0x3bd18e);}return _0xe34932;}['_markMarkers'](_0x3dbb5c,_0x3189fb){for(let _0x1956d8=0x0;_0x1956d8<_0x3dbb5c['length'];_0x1956d8++)for(const [_0x1b1693,_0x5ecfa9]of _0x3189fb)!_0x5ecfa9['isCollapsed']&&_0x5ecfa9['start']['isEqual'](_0x3dbb5c[_0x1956d8]['previousPosition'])&&_0x3dbb5c[_0x1956d8]['markersStart']['push'](_0x1b1693),_0x5ecfa9['end']['isEqual'](_0x3dbb5c[_0x1956d8]['nextPosition'])&&_0x3dbb5c[_0x1956d8]['markersEnd']['push'](_0x1b1693);}['_joinTapes'](_0x4092e7,_0xfd4fb2){let _0x5ed476=[],_0x36c9a6=0x0,_0x25889d=0x0;for(;_0x36c9a6<_0x4092e7['length']||_0x25889d<_0xfd4fb2['length'];){const _0x3e1f24=_0x4092e7[_0x36c9a6]||{},_0x4d5f3a=_0xfd4fb2[_0x25889d]||{};if(_0x3e1f24['id']==_0x4d5f3a['id'])_0x36c9a6++,_0x25889d++,_0x5ed476['push'](_0x3e1f24);else{if(_0x4d5f3a['isRemoved']&&_0x3e1f24['isAdded']){const {commonTape:_0x376e61,iEnd:_0x503b14,jEnd:_0x2761d6}=this['_threeWayMerge'](_0x4092e7,_0x36c9a6,_0xfd4fb2,_0x25889d);_0x5ed476=_0x5ed476['concat'](_0x376e61),_0x36c9a6=_0x503b14,_0x25889d=_0x2761d6;}else _0x4d5f3a['isRemoved']?(_0x25889d++,_0x5ed476['push'](_0x4d5f3a)):(_0x36c9a6++,_0x5ed476['push'](_0x3e1f24));}}return _0x5ed476;}['_markSuggestions'](_0x458e93,_0x17fc50){const _0x1a0f53=[];for(let _0x4b8408=0x0;_0x4b8408<_0x458e93['length'];_0x4b8408++){for(let _0x603bc8=0x0;_0x603bc8<_0x458e93[_0x4b8408]['markersStart']['length'];_0x603bc8++){const _0x2f9a76=_0x458e93[_0x4b8408]['markersStart'][_0x603bc8];if(!_0x17fc50['has'](_0x2f9a76))continue;const {group:_0x5eb075,type:_0xde84d5,authorId:_0x160666}=_0x27087e(_0x2f9a76);'revision-suggestion'!=_0x5eb075||'insertion'!=_0xde84d5&&'deletion'!=_0xde84d5||(_0x1a0f53['unshift']({'type':_0xde84d5,'name':_0x2f9a76,'userId':_0x160666}),_0x458e93[_0x4b8408]['markersStart']['splice'](_0x603bc8,0x1),_0x603bc8--);}_0x423a2f(_0x458e93[_0x4b8408]);for(let _0x11dce7=0x0;_0x11dce7<_0x458e93[_0x4b8408]['markersEnd']['length'];_0x11dce7++){const _0x2e5169=_0x458e93[_0x4b8408]['markersEnd'][_0x11dce7];if(!_0x17fc50['has'](_0x2e5169))continue;const {group:_0xade1f8,type:_0x43e0e5}=_0x27087e(_0x2e5169);if('revision-suggestion'!=_0xade1f8||'insertion'!=_0x43e0e5&&'deletion'!=_0x43e0e5)continue;_0x458e93[_0x4b8408]['markersEnd']['splice'](_0x11dce7,0x1),_0x11dce7--;const _0x310d5c=_0x1a0f53['findIndex'](_0x1248e1=>_0x1248e1['name']==_0x2e5169);_0x310d5c>-0x1&&_0x1a0f53['splice'](_0x310d5c,0x1);}}function _0x27087e(_0x1bc963){const _0xdee206=_0x1bc963['split'](':');return{'group':_0xdee206[0x0],'type':_0xdee206[0x1],'subType':_0xdee206['length']>=0x5?_0xdee206[0x2]:null,'id':_0xdee206['length']<0x5?_0xdee206[0x2]:_0xdee206[0x3],'authorId':_0xdee206['length']<0x5?_0xdee206[0x3]:_0xdee206[0x4],'markerCount':0x6==_0xdee206['length']?_0xdee206[0x5]:null};}function _0x423a2f(_0x3e4630){for(let _0x107769=0x0;_0x107769<_0x1a0f53['length'];_0x107769++){if(_0x3e4630['isAdded']&&'insertion'==_0x1a0f53[_0x107769]['type']&&_0x3e4630['isAdded']['userId']==_0x1a0f53[_0x107769]['userId'])return _0x3e4630['isAddSuggestion']=_0x1a0f53[_0x107769],void delete _0x3e4630['isAdded'];if(!_0x3e4630['isAdded']&&!_0x3e4630['isRemoved']&&'deletion'==_0x1a0f53[_0x107769]['type'])return void(_0x3e4630['isRemoveSuggestion']=_0x1a0f53[_0x107769]);}}}['_setDistance'](_0x382719,_0x34cc2c){let _0x3eba99=0x0,_0x2a8db6=!0x1;const _0xdb04a2=new Map();for(const _0x2fd7ec of _0x382719)_0x2fd7ec[_0x34cc2c]?_0x2a8db6&&(_0x3eba99++,_0x2a8db6=!0x1):(_0x3eba99++,_0x2a8db6=!0x0),_0xdb04a2['set'](_0x2fd7ec['id'],_0x3eba99);for(let _0x4bbc11=0x0;_0x4bbc11<_0x382719['length'];_0x4bbc11++){if('isRemoved'==_0x34cc2c&&_0x382719[_0x4bbc11]['isAdded']||'isAdded'==_0x34cc2c&&_0x382719[_0x4bbc11]['isRemoved'])continue;if('text'==_0x382719[_0x4bbc11]['type']){_0x382719[_0x4bbc11]['distance']=0x0;continue;}const _0x39b111=_0xdb04a2['get'](_0x382719[_0x4bbc11]['pairId']),_0x4a9cf8=_0xdb04a2['get'](_0x382719[_0x4bbc11]['id']);_0x382719[_0x4bbc11]['distance']=_0x39b111-_0x4a9cf8;}}['_getRevisionsRange'](_0x6b4d4b,_0x143c9e,_0x537f60=!0x1){const _0x5c4ed9=[];let _0x4058cd=this['repository']['getIndex'](_0x6b4d4b),_0x371545=this['repository']['getIndex'](_0x143c9e);for(-0x1==_0x371545&&(_0x371545=this['repository']['_revisions']['length'],_0x537f60=!0x1);_0x4058cd<_0x371545;)_0x5c4ed9['push'](this['repository']['getRevision'](_0x4058cd)),_0x4058cd++;return _0x537f60&&_0x5c4ed9['push'](this['repository']['getRevision'](_0x4058cd)),_0x5c4ed9;}['_threeWayMerge'](_0x3bd4a4,_0x39019d,_0x920428,_0x340515){const _0x297905=this['editor']['model']['schema'];let _0x203916=_0x39019d;for(;_0x3bd4a4[_0x203916]&&_0x3bd4a4[_0x203916]['isAdded'];)_0x203916++;let _0x10577f=_0x340515;for(;_0x920428[_0x10577f]&&_0x920428[_0x10577f]['isRemoved'];)_0x10577f++;_0x51f720(_0x3bd4a4,_0x39019d,_0x203916),_0x51f720(_0x920428,_0x340515,_0x10577f);const _0x290d8c=_0x920428['slice'](_0x340515,_0x10577f)['concat'](_0x3bd4a4['slice'](_0x39019d,_0x203916));return _0x290d8c['sort']((_0x38dc31,_0x3fbdb4)=>_0x38dc31['side']!=_0x3fbdb4['side']?_0x38dc31['side']-_0x3fbdb4['side']:_0x38dc31['level']!=_0x3fbdb4['level']?_0x38dc31['level']-_0x3fbdb4['level']:_0x38dc31['distance']!=_0x3fbdb4['distance']?_0x3fbdb4['distance']-_0x38dc31['distance']:!!_0x38dc31['isAdded']!=!!_0x3fbdb4['isAdded']?-0x1==_0x38dc31['side']||0x0==_0x38dc31['side']?_0x38dc31['isAdded']?-0x1:0x1:_0x38dc31['isAdded']?0x1:-0x1:_0x38dc31['index']-_0x3fbdb4['index']),{'commonTape':_0x290d8c,'iEnd':_0x203916,'jEnd':_0x10577f};function _0x51f720(_0x28eca5,_0x13335c,_0x3b1e67){let _0xbdb034=-0x1,_0x132bab=Number['POSITIVE_INFINITY'],_0x430ad8=!0x0;for(let _0x41cea1=_0x13335c;_0x41cea1<_0x3b1e67;_0x41cea1++)if(_0x297905['isInline'](_0x28eca5[_0x41cea1]['item'])||(_0x430ad8=!0x1),_0x28eca5[_0x41cea1]['item']['startIndex']<_0x13335c&&(_0xbdb034=_0x41cea1),_0x28eca5[_0x41cea1]['item']['endIndex']>=_0x3b1e67){_0x132bab=_0x41cea1;break;}_0x430ad8&&(_0xbdb034=_0x3b1e67-0x1);for(let _0x547ae6=_0x13335c;_0x547ae6<_0x3b1e67;_0x547ae6++)_0x28eca5[_0x547ae6]['side']=_0x547ae6<=_0xbdb034?-0x1:_0x547ae6<_0x132bab?0x0:0x1,_0x28eca5[_0x547ae6]['index']=_0x547ae6;let _0x4e56f2=0x0;for(let _0x11e6fe=_0x13335c;_0x11e6fe<=_0xbdb034;_0x11e6fe++)0x0==_0x28eca5[_0x11e6fe]['distance']?_0x28eca5[_0x11e6fe]['level']=_0x4e56f2:(_0x4e56f2++,_0x28eca5[_0x11e6fe]['level']=_0x4e56f2,_0x4e56f2++);for(let _0x35706d=_0x13335c;_0x35706d<_0x3b1e67;_0x35706d++)0x0==_0x28eca5[_0x35706d]['side']&&(_0x28eca5[_0x35706d]['level']=_0x4e56f2);_0x4e56f2=0x0;for(let _0x5671cf=_0x3b1e67-0x1;_0x5671cf>=_0x132bab;_0x5671cf--)0x0==_0x28eca5[_0x5671cf]['distance']?_0x28eca5[_0x5671cf]['level']=_0x4e56f2:(_0x4e56f2--,_0x28eca5[_0x5671cf]['level']=_0x4e56f2,_0x4e56f2--);}}['_fixObsoleteTags'](_0x5f3eec){const _0x21fa4a=new Map(),_0x2a7bc0=this['editor']['model']['schema'];for(let _0x77e8ba=0x1;_0x77e8ba<_0x5f3eec['length'];_0x77e8ba++){let _0xb288bd,_0x44b60d,_0x2e7785;const _0x1da8b2=_0x5f3eec[_0x77e8ba],_0x5097e9=_0x5f3eec[_0x77e8ba-0x1];if('text'==_0x1da8b2['type'])continue;if(_0x1da8b2['type']!=_0x5097e9['type'])continue;if(!_0x2a7bc0['isBlock'](_0x5097e9['item'])||_0x2a7bc0['isLimit'](_0x5097e9['item']))continue;if(!_0x2a7bc0['isBlock'](_0x1da8b2['item'])||_0x2a7bc0['isLimit'](_0x1da8b2['item']))continue;if((_0x5f3eec[_0x77e8ba]['isAdded']||_0x5f3eec[_0x77e8ba]['isAddSuggestion'])&&_0x5f3eec[_0x77e8ba-0x1]['isRemoved'])_0xb288bd=_0x5f3eec[_0x77e8ba],_0x44b60d=_0x5f3eec[_0x77e8ba-0x1],_0x2e7785=_0x77e8ba-0x1;else{if(!_0x5f3eec[_0x77e8ba]['isRemoved']||!_0x5f3eec[_0x77e8ba-0x1]['isAdded']&&!_0x5f3eec[_0x77e8ba-0x1]['isAddSuggestion'])continue;_0xb288bd=_0x5f3eec[_0x77e8ba-0x1],_0x44b60d=_0x5f3eec[_0x77e8ba],_0x2e7785=_0x77e8ba;}const _0x524460=_0xb288bd['level']==_0x44b60d['level'],_0x52a066=Math['abs'](_0xb288bd['level'])<Math['abs'](_0x44b60d['level'])&&0x0==_0x44b60d['distance'];(_0x524460||_0x52a066)&&(_0x21fa4a['set'](_0x44b60d['id'],_0xb288bd['id']),_0x5f3eec['splice'](_0x2e7785,0x1),_0x77e8ba--,_0xb288bd['isAdded']=!0x1);}for(let _0x5883b6=0x0;_0x5883b6<_0x5f3eec['length'];_0x5883b6++)_0x21fa4a['has'](_0x5f3eec[_0x5883b6]['pairId'])&&(_0x5f3eec[_0x5883b6]['pairId']=_0x21fa4a['get'](_0x5f3eec[_0x5883b6]['pairId']));}['_removeMissingPairs'](_0x43b8e8){const _0x31c5dd=new Set(_0x43b8e8['map'](_0x71b5ae=>_0x71b5ae['id']));for(let _0xfbc3fe=0x0;_0xfbc3fe<_0x43b8e8['length'];_0xfbc3fe++)_0x31c5dd['has'](_0x43b8e8[_0xfbc3fe]['pairId'])||0x0==_0x43b8e8[_0xfbc3fe]['distance']||(_0x43b8e8[_0xfbc3fe]['isIncorrect']=!0x0);return _0x43b8e8['filter'](_0x308527=>!_0x308527['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3c13d3){const _0xc66265=new Set();for(let _0x26a8ce=0x0;_0x26a8ce<_0x3c13d3['length'];_0x26a8ce++){if(_0xc66265['has'](_0x3c13d3[_0x26a8ce]['id'])&&_0x3c13d3[_0x26a8ce]['isRemoved']&&(_0x3c13d3[_0x26a8ce]['isIncorrect']=!0x0),_0x3c13d3[_0x26a8ce]['isIncorrect'])continue;if(0x0==_0x3c13d3[_0x26a8ce]['distance'])continue;if('elementStart'!=_0x3c13d3[_0x26a8ce]['type'])continue;if(null==_0x3c13d3[_0x26a8ce]['pairId'])continue;let _0x2d9e8c=_0x26a8ce+0x1,_0x4fb51c=0x0;for(;_0x3c13d3[_0x2d9e8c]['id']!=_0x3c13d3[_0x26a8ce]['pairId'];)'elementStart'==_0x3c13d3[_0x2d9e8c]['type']?_0x4fb51c++:'elementEnd'==_0x3c13d3[_0x2d9e8c]['type']&&_0x4fb51c--,_0x2d9e8c++;if(0x0!=_0x4fb51c){if(_0x3c13d3[_0x26a8ce]['isRemoved'])_0x3c13d3[_0x26a8ce]['isIncorrect']=!0x0;else{for(;_0x2d9e8c!=_0x26a8ce;)_0x3c13d3[_0x2d9e8c]['isRemoved']&&0x0!=_0x3c13d3[_0x2d9e8c]['distance']&&(_0x3c13d3[_0x2d9e8c]['isIncorrect']=!0x0,_0xc66265['add'](_0x3c13d3[_0x2d9e8c]['pairId'])),_0x2d9e8c--;}}}return _0x3c13d3['filter'](_0x211fbe=>!_0x211fbe['isIncorrect']);}['_removeUnsupportedChanges'](_0x1ccae1){const _0x2224a6=this['editor']['model']['schema'];for(let _0x5cc695=0x0;_0x5cc695<_0x1ccae1['length'];_0x5cc695++){if(!(_0x1ccae1[_0x5cc695]['isAdded']||_0x1ccae1[_0x5cc695]['isAddSuggestion']||_0x1ccae1[_0x5cc695]['isRemoved']||_0x1ccae1[_0x5cc695]['isRemoveSuggestion']))continue;if(0x0==_0x1ccae1[_0x5cc695]['distance'])continue;const _0x473c48=_0x1ccae1[_0x5cc695]['item'];_0x2224a6['isBlock'](_0x473c48)||_0x2224a6['isLimit'](_0x473c48)||(_0x1ccae1[_0x5cc695]['isAdded']&&delete _0x1ccae1[_0x5cc695]['isAdded'],_0x1ccae1[_0x5cc695]['isAddSuggestion']&&delete _0x1ccae1[_0x5cc695]['isAddSuggestion'],_0x1ccae1[_0x5cc695]['isRemoveSuggestion']&&delete _0x1ccae1[_0x5cc695]['isRemoveSuggestion'],_0x1ccae1[_0x5cc695]['isRemoved']&&(_0x1ccae1[_0x5cc695]['isIncorrect']=!0x0));}return _0x1ccae1['filter'](_0x193e6d=>!_0x193e6d['isIncorrect']);}['_makeModelFromTape'](_0x1160e6,_0x5e0ec,_0x59b859){const _0x6ecd7a=new vt(),_0x4e6fb3=[],_0x212937=new Map(),_0xfa6fe4=this['editor']['model'],_0x476a6f=_0xfa6fe4['schema'],_0x4335ab=[_0x6ecd7a],_0x2d047c={},_0x4bd58c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3e247a=null;const _0x58669d=[0x0];for(let _0x1767ba=0x0;_0x1767ba<_0x1160e6['length'];_0x1767ba++)if('elementStart'===_0x1160e6[_0x1767ba]['type']){_0x1160e6[_0x1767ba]['previousPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d);const _0x2d47c1=new ut(_0x1160e6[_0x1767ba]['item']['name'],_0x1160e6[_0x1767ba]['item']['getAttributes']());_0x4335ab[0x0]['_appendChild'](_0x2d47c1),_0x58669d['push'](0x0),_0x4335ab['unshift'](_0x2d47c1),_0x1160e6[_0x1767ba]['nextPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d);}else'elementEnd'===_0x1160e6[_0x1767ba]['type']?(_0x4335ab['shift'](),_0x1160e6[_0x1767ba]['previousPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d),_0x58669d['pop'](),_0x58669d[_0x58669d['length']-0x1]++,_0x1160e6[_0x1767ba]['nextPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d)):(_0x1160e6[_0x1767ba]['previousPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d),_0x3e247a?_0x3e247a['_data']+=_0x1160e6[_0x1767ba]['item']['data']:_0x3e247a=new gt(_0x1160e6[_0x1767ba]['item']['data'],_0x1160e6[_0x1767ba]['item']['getAttributes']()),_0x1160e6[_0x1767ba+0x1]&&'text'===_0x1160e6[_0x1767ba+0x1]['type']&&_0x33a112(_0x3e247a,_0x1160e6[_0x1767ba+0x1]['item'])||(_0x4335ab[0x0]['_appendChild'](_0x3e247a),_0x3e247a=null),_0x58669d[_0x58669d['length']-0x1]+=_0x1160e6[_0x1767ba]['item']['offsetSize'],_0x1160e6[_0x1767ba]['nextPosition']=_0xfa6fe4['createPositionFromPath'](_0x6ecd7a,_0x58669d));for(let _0x880c0f=0x0;_0x880c0f<_0x1160e6['length'];_0x880c0f++){const _0x316e5d=_0x1160e6[_0x880c0f]['previousPosition'],_0x47a1e6=_0x1160e6[_0x880c0f]['nextPosition'];for(const _0x4286f0 of _0x1160e6[_0x880c0f]['markersStart'])_0x212937['set'](_0x4286f0,{'start':_0x316e5d,'end':null});_0x5b50d5('isRemoveSuggestion',_0x880c0f,_0x316e5d,_0x47a1e6),_0x5b50d5('isAddSuggestion',_0x880c0f,_0x316e5d,_0x47a1e6),_0x5b50d5('isRemoved',_0x880c0f,_0x316e5d,_0x47a1e6),_0x5b50d5('isAdded',_0x880c0f,_0x316e5d,_0x47a1e6);for(const _0x3a09a0 of _0x1160e6[_0x880c0f]['markersEnd']){const _0x17ee6e=_0x212937['get'](_0x3a09a0);_0x17ee6e?_0x17ee6e['end']=_0x47a1e6:_0x212937['set'](_0x3a09a0,{'start':_0x47a1e6,'end':_0x47a1e6});}}for(const [_0x39dcd4,_0x3e4b12]of _0x212937){const _0x4e73f7=this['editor']['model']['createRange'](_0x3e4b12['start'],_0x3e4b12['end']);_0x6ecd7a['markers']['set'](_0x39dcd4,_0x4e73f7);}return _0x4e6fb3['sort']((_0x429cdf,_0x15002a)=>{const _0x1060dd=_0x6ecd7a['markers']['get']('revision:'+_0x429cdf['id']),_0x2c8c22=_0x6ecd7a['markers']['get']('revision:'+_0x15002a['id']);return _0x1060dd['start']['isBefore'](_0x2c8c22['start'])?-0x1:_0x1060dd['start']['isAfter'](_0x2c8c22['start'])?0x1:_0x1060dd['end']['isBefore'](_0x2c8c22['end'])?-0x1:_0x1060dd['end']['isAfter'](_0x2c8c22['end'])?0x1:'add'===_0x429cdf['type']?-0x1:0x1;}),{'root':_0x6ecd7a,'changes':_0x4e6fb3};function _0x5b50d5(_0x586438,_0x417917,_0x69dc10,_0x5bf8a5){const _0x536e49=!!_0x1160e6[_0x417917][_0x586438],_0x19a369=_0x536e49?_0x1160e6[_0x417917][_0x586438]['userId']:null,_0xd6b262=_0x417917===_0x1160e6['length']-0x1,_0x5f4cdd=_0x4bd58c[_0x586438][0x0],_0x42447d=_0x476a6f['isObject'](_0x1160e6[_0x417917]['item']);!_0x2d047c[_0x586438]&&_0x536e49?_0x2d047c[_0x586438]={'start':_0x69dc10,'tapeItem':_0x1160e6[_0x417917],'userId':_0x19a369,'type':_0x586438}:_0x2d047c[_0x586438]&&!_0x536e49?(_0x2d047c[_0x586438]['end']=_0x69dc10,_0x324c54(_0x2d047c[_0x586438]),_0x2d047c[_0x586438]=null):_0x2d047c[_0x586438]&&_0x536e49&&_0x2d047c[_0x586438]['userId']!==_0x19a369&&(_0x2d047c[_0x586438]['end']=_0x69dc10,_0x5f4cdd&&_0x5f4cdd['userId']===_0x2d047c[_0x586438]['userId']||_0x324c54(_0x2d047c[_0x586438]),_0x2d047c[_0x586438]={'start':_0x69dc10,'tapeItem':_0x1160e6[_0x417917],'userId':_0x19a369,'type':_0x586438}),_0x2d047c[_0x586438]&&_0x42447d&&('elementStart'!==_0x1160e6[_0x417917]['type']||_0x5f4cdd&&_0x5f4cdd['userId']===_0x19a369||_0x4bd58c[_0x586438]['unshift']({'userId':_0x19a369,'object':_0x1160e6[_0x417917]['item'],'change':_0x2d047c[_0x586438]}),'elementEnd'===_0x1160e6[_0x417917]['type']&&_0x5f4cdd&&_0x5f4cdd['object']===_0x1160e6[_0x417917]['item']&&(_0x4bd58c[_0x586438]['shift'](),_0x2d047c[_0x586438]=_0x5f4cdd['change'])),_0x2d047c[_0x586438]&&_0xd6b262&&(_0x2d047c[_0x586438]['end']=_0x5bf8a5,_0x324c54(_0x2d047c[_0x586438]),_0x2d047c[_0x586438]=null);}function _0x324c54({start:_0x50396f,end:_0xe470a2,tapeItem:_0x3a53e1,userId:_0x24631c,type:_0x333271}){const _0x17311d=_0x3a53e1['item'],_0x42468d=_0xfa6fe4['schema']['isBlock'](_0x17311d)&&!_0xfa6fe4['schema']['isLimit'](_0x17311d),_0x1143f0=_0x50396f['nodeAfter']==_0xe470a2['parent']&&_0xe470a2['isAtStart'];if(_0x42468d&&_0x1143f0)return;const _0x543bfe=_0xfa6fe4['createRange'](_0x50396f,_0xe470a2),_0xfe8940=_0x5e0ec['get'](_0x24631c),_0x5f42f1=new r({'author':_0xfe8940,'type':'isAdded'==_0x333271||'isAddSuggestion'==_0x333271?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x333271||'isRemoveSuggestion'==_0x333271},'createdAt':new Date(),'rootName':_0x59b859});_0x4e6fb3['push'](_0x5f42f1),_0x6ecd7a['markers']['set']('revision:'+_0x5f42f1['id'],_0x543bfe);}function _0x33a112(_0x4d157f,_0x207821){const _0x3ed32b=_0x4d157f['getAttributes'](),_0x30749c=_0x207821['getAttributes']();for(const _0x58630c of _0x3ed32b){if(_0x58630c[0x1]!==_0x207821['getAttribute'](_0x58630c[0x0]))return!0x1;_0x30749c['next']();}return _0x30749c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xbfc587=>{const _0xb427cf=_0xbfc587['markerName']['split'](':')[0x1],_0x360e31=this['_getChangeFromId'](_0xb427cf);if(!_0x360e31)return null;const _0x1f4ead='add'==_0x360e31['type']?'insertion':'deletion',_0x5b2127=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1f4ead];return _0x360e31['data']['isSuggestion']&&_0x5b2127['push']('ck-suggestion-marker-'+_0x1f4ead+'-new'),this['activeChange']==_0x360e31&&_0x5b2127['push']('ck-suggestion-marker--active'),{'classes':_0x5b2127,'attributes':{'data-change-id':_0xb427cf}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x52c16b=>{_0x52c16b['on']('element:pre',(_0x16eabd,_0x3ab43d,_0xc93295)=>{const _0x52a5df=_0x3ab43d['viewItem']['getChild'](0x0);if(!_0x52a5df||!_0x52a5df['is']('element','code'))return;if(!_0xc93295['consumable']['consume'](_0x52a5df,{'attributes':['vid_start','vid_end']}))return;const _0x4d113d=_0x3ab43d['modelRange']['start']['nodeAfter'];_0xc93295['writer']['setAttribute']('vid_start',_0x52a5df['getAttribute']('vid_start'),_0x4d113d),_0xc93295['writer']['setAttribute']('vid_end',_0x52a5df['getAttribute']('vid_end'),_0x4d113d);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3f2fd0=>{_0x3f2fd0['on']('element',(_0x17b8fc,_0x58042b,_0x3f49ab)=>{if(!_0x3f49ab['consumable']['consume'](_0x58042b['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x58042b['modelRange']['isCollapsed'])return;const _0x448b76=_0x58042b['modelRange']['start']['nodeAfter'];_0x448b76['hasAttribute']('vid_start')||_0x448b76['hasAttribute']('vid')||(_0x3f49ab['writer']['setAttribute']('vid_start',_0x58042b['viewItem']['getAttribute']('vid_start'),_0x448b76),_0x3f49ab['writer']['setAttribute']('vid_end',_0x58042b['viewItem']['getAttribute']('vid_end'),_0x448b76));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x16c60e=>_0x16c60e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x209aa7,[,_0x68b30e])=>{['vid_start','vid_end','vid']['includes'](_0x68b30e)&&(_0x209aa7['return']=!0x0,_0x209aa7['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5b1865=>{_0x5b1865['on']('attribute:vid',(_0x4576e0,_0x3db5a5,_0xbef01d)=>{if('\x20'!=_0x3db5a5['item']['data']||_0x3db5a5['item']['parent']['maxOffset']>0x1)return;if(!_0xbef01d['consumable']['consume'](_0x3db5a5['item'],_0x4576e0['name']))return;const _0x5c8aae=_0xbef01d['writer'],_0x53aed6=_0xbef01d['mapper']['toViewRange'](_0x3db5a5['range']);_0x5c8aae['wrap'](_0x53aed6,_0x5c8aae['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x26c606){const _0x613e=_0x26c606['plugins']['get']('RevisionViewer');return(_0x3ed73f,_0x4da218,_0xab0edc)=>{const _0x1bf1a9=_0x4da218['markerName']['split'](':')[0x1],_0x53f4aa=_0x613e['_getChangeFromId'](_0x1bf1a9);if(!_0x53f4aa)return null;const _0x249416='add'==_0x53f4aa['type']?'split':'merge';if(!_0xab0edc['consumable']['test'](_0x4da218['markerRange'],_0x3ed73f['name']))return;const _0x232eb8=_0x4da218['markerRange']['getWalker'](),_0x47a00f=_0x4da218['markerRange']['start'],_0xa6b129=_0x26c606['model']['schema'];let _0x3bc791=null,_0x4564a5=null,_0x420592=!0x1,_0x562d8d=!0x1;for(const _0x50642f of _0x232eb8){const _0x5186e0=_0x50642f['item'];_0x420592=_0x420592||_0xa6b129['isContent'](_0x5186e0);const _0x113bfe=_0xab0edc['mapper']['toViewElement'](_0x5186e0);if(_0x113bfe&&_0x113bfe['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x50642f['type']&&(_0xa6b129['isBlock'](_0x5186e0)&&!_0xa6b129['isLimit'](_0x5186e0)&&(_0x5186e0['nextSibling']||_0x47a00f['isAtEnd']?_0x3bc791&&_0x3bc791['parent']==_0x5186e0||(_0x3bc791=_0x5186e0,_0x194772(_0x50642f['previousPosition']),_0x562d8d=!0x0):_0x4564a5=_0x4564a5||_0x50642f['previousPosition']));}function _0x194772(_0x743ed7){const _0x1df054=_0xab0edc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x249416}),_0x4599c1=_0xab0edc['mapper']['toViewPosition'](_0x743ed7);_0x53f4aa['data']['isSuggestion']&&_0xab0edc['writer']['addClass']('ck-suggestion-marker-'+_0x249416+'-new',_0x1df054),_0x613e['activeChange']==_0x53f4aa&&_0xab0edc['writer']['addClass']('ck-suggestion-marker--active',_0x1df054),_0xab0edc['writer']['insert'](_0x4599c1,_0x1df054),_0xab0edc['mapper']['bindElementToMarker'](_0x1df054,_0x4da218['markerName']);}_0x420592||_0x562d8d||!_0x4564a5||_0x194772(_0x4564a5);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2796a6,_0x25459e,_0x2910c6)=>{const _0xb28491=_0x2910c6['mapper']['markerNameToElements'](_0x25459e['markerName']);if(_0xb28491){for(const _0x1aa3a3 of _0xb28491)(_0x1aa3a3['hasClass']('ck-suggestion-marker-split')||_0x1aa3a3['hasClass']('ck-suggestion-marker-merge'))&&(_0x2910c6['mapper']['unbindElementFromMarkerName'](_0x1aa3a3,_0x25459e['markerName']),_0x2910c6['writer']['remove'](_0x1aa3a3));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2a62b5,_0x23e0c9,_0xdb1653)=>{const _0x2a1b77=_0x23e0c9['markerName']['split'](':')[0x1],_0x16d8eb=this['_getChangeFromId'](_0x2a1b77);if(!_0x16d8eb)return null;const _0x32b1af='add'==_0x16d8eb['type']?'split':'merge';if(_0xdb1653['consumable']['test'](_0x23e0c9['markerRange'],_0x2a62b5['name']))for(const _0x1dabb3 of _0x23e0c9['markerRange']['getItems']()){if(!_0x1dabb3['is']('element','softBreak'))continue;const _0x3e6aa7=_0xdb1653['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x32b1af}),_0x9e350c=_0xdb1653['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1dabb3));_0x16d8eb['data']['isSuggestion']&&_0xdb1653['writer']['addClass']('ck-suggestion-marker-'+_0x32b1af+'-new',_0x3e6aa7),this['activeChange']==_0x16d8eb&&_0xdb1653['writer']['addClass']('ck-suggestion-marker--active',_0x3e6aa7),_0xdb1653['writer']['insert'](_0x9e350c,_0x3e6aa7),_0xdb1653['mapper']['bindElementToMarker'](_0x3e6aa7,_0x23e0c9['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3382c1=>{for(const _0xf57e5f of this['editor']['model']['document']['getRootNames']()){const _0x46cd19=this['editor']['model']['document']['getRoot'](_0xf57e5f),_0x123df5=this['editor']['editing']['view']['document']['getRoot'](_0xf57e5f);if(_0x123df5){const _0x31912f=_0x46cd19['getAttribute']('revisionHistoryAttachChange');if(_0x3382c1['removeAttribute']('data-change-id',_0x123df5),_0x3382c1['removeClass']('ck-revision-history-root-add',_0x123df5),_0x3382c1['removeClass']('ck-revision-history-root-remove',_0x123df5),_0x3382c1['removeClass']('ck-revision-history-root--active',_0x123df5),_0x31912f){const _0x46d4cb=this['_getChangeFromId'](_0x31912f);if(!_0x46d4cb)return null;_0x3382c1['setAttribute']('data-change-id',_0x31912f,_0x123df5),_0x3382c1['addClass']('ck-revision-history-root-'+_0x46d4cb['type'],_0x123df5),this['activeChange']==_0x46d4cb&&_0x3382c1['addClass']('ck-revision-history-root--active',_0x123df5);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x43a3f9=>'revision-comment:'+_0x43a3f9,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x374fde=>'revision-suggestion:'+_0x374fde,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x38f36a=>({'name':'suggestion:'+_0x38f36a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x408aca=>{const _0x57188e=_0x408aca['markerName']['split'](':')[0x1];return'insertion'!=_0x57188e&&'deletion'!=_0x57188e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x57188e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xea17f2,_0xa95624,_0x346893)=>{const _0x30d925=_0x346893['mapper']['markerNameToElements'](_0xa95624['markerName']);if(_0x30d925){for(const _0x253dea of _0x30d925)_0x253dea['is']('uiElement')&&(_0x346893['mapper']['unbindElementFromMarkerName'](_0x253dea,_0xa95624['markerName']),_0x346893['writer']['remove'](_0x253dea));}},{'priority':'high'});}['_getChangeFromId'](_0x4fdd33){return this['_changeIdToChange']['get'](_0x4fdd33);}['_getViewForChange'](_0x226e92){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x226e92),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x45c590,_0x55c0b7,_0x5901e7,_0x5e419e)=>{_0x5e419e&&this['_balloon']['remove'](_0x5e419e),_0x5901e7&&(this['_balloon']['add']({'view':_0x5901e7,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5dd109=this['editor']['editing'],_0x2bc750=this['_getChangeFromId'](_0x5901e7['changeId']);let _0x1ca8a5;if(_0x2bc750['data']['isOnRoot']){const _0x3dd40b=_0x5dd109['view']['getDomRoot'](_0x2bc750['rootName']);_0x1ca8a5=Array['from'](_0x3dd40b['getClientRects']());}else{const _0x4fb979=this['editor']['model']['markers']['get']('revision:'+_0x5901e7['changeId']);_0x1ca8a5=Array['from'](_0x5dd109['mapper']['markerNameToElements'](_0x4fb979['name']))['map'](_0x4b872e=>_0x5dd109['view']['domConverter']['mapViewToDom'](_0x4b872e))['map'](_0x1de8cc=>Array['from'](_0x1de8cc['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1ca8a5[0x0];return _0x1ca8a5['find'](_0x3a0797=>_0x3a0797['top']-0x3<=this['_activeViewTarget']['y']&&_0x3a0797['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3a0797['left']-0x3<=this['_activeViewTarget']['x']&&_0x3a0797['right']+0x3>=this['_activeViewTarget']['x'])||_0x1ca8a5[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x32c758,_0x3ba196,_0x42056e,_0x1c13ac)=>{this['activeView']=_0x42056e?this['_getViewForChange'](_0x42056e):null,this['editor']['model']['change'](()=>{const _0x180f45=this['editor']['editing'];_0x1c13ac&&(_0x1c13ac['data']['isOnRoot']?_0x180f45['view']['change'](_0x42d7cc=>{_0x42d7cc['removeClass']('ck-revision-history-root--active',_0x180f45['view']['document']['getRoot'](_0x1c13ac['rootName']));}):_0x180f45['reconvertMarker']('revision:'+_0x1c13ac['id'])),_0x42056e&&(_0x42056e['data']['isOnRoot']?_0x180f45['view']['change'](_0xf03b86=>{_0xf03b86['addClass']('ck-revision-history-root--active',_0x180f45['view']['document']['getRoot'](_0x42056e['rootName']));}):_0x180f45['reconvertMarker']('revision:'+_0x42056e['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x397d39,_0x54a7d5)=>{if(this['activeChange'])return;const _0x424556=this['_findChangeIdFromDomTarget'](_0x54a7d5['target']),_0x1028ac=this['_changeIdToChange']['get'](_0x424556);_0x1028ac?(this['_activeViewTarget']={'x':_0x54a7d5['domEvent']['x'],'y':_0x54a7d5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1028ac)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0xc4501d,_0x16d967)=>{const _0x308884=this['_findChangeIdFromDomTarget'](_0x16d967['target']),_0x494da6=this['_changeIdToChange']['get'](_0x308884);_0x494da6?(this['_activeViewTarget']={'x':_0x16d967['domEvent']['x'],'y':_0x16d967['domEvent']['y']},_0x494da6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x494da6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1fe335){do{const _0x3929d1=_0x1fe335['getAttribute']('data-change-id');if(_0x3929d1)return _0x3929d1;_0x1fe335=_0x1fe335['parent'];}while(_0x1fe335);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5c5bb5=>{for(const _0x580e86 of this['editor']['model']['markers'])_0x5c5bb5['removeMarker'](_0x580e86);});}}function X(_0x1adb24,_0x1cb4e3){return(_0x57a8aa,_0x5bbd7d,_0x1afe0e)=>{if(!_0x1afe0e['consumable']['test'](_0x5bbd7d['markerRange'],_0x57a8aa['name']))return;const _0x2378e=_0x5bbd7d['markerRange']['getWalker'](),_0x30ce8c=_0x5bbd7d['markerRange']['start'],_0x101aad=_0x1adb24['model']['schema'];let _0x2ba4c4=null,_0x59f851=null,_0x46a3e0=!0x1,_0x12fc6b=!0x1;for(const _0xb2af1d of _0x2378e){const _0x214234=_0xb2af1d['item'];_0x46a3e0=_0x46a3e0||_0x101aad['isContent'](_0x214234);const _0x115372=_0x1afe0e['mapper']['toViewElement'](_0x214234);if(_0x115372&&_0x115372['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xb2af1d['type']&&(_0x101aad['isBlock'](_0x214234)&&!_0x101aad['isLimit'](_0x214234)&&(_0x214234['nextSibling']||_0x30ce8c['isAtEnd']?_0x2ba4c4&&_0x2ba4c4['parent']==_0x214234||(_0x2ba4c4=_0x214234,_0x45322b(_0xb2af1d['previousPosition']),_0x12fc6b=!0x0):_0x59f851=_0x59f851||_0xb2af1d['previousPosition']));}function _0x45322b(_0x3a5cd1){const _0x2dae4c=_0x1afe0e['mapper']['toViewPosition'](_0x3a5cd1),_0x3c6a75=_0x1afe0e['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1cb4e3});_0x1afe0e['writer']['insert'](_0x2dae4c,_0x3c6a75),_0x1afe0e['mapper']['bindElementToMarker'](_0x3c6a75,_0x5bbd7d['markerName']);}_0x46a3e0||_0x12fc6b||!_0x59f851||_0x45322b(_0x59f851);};}class mt extends _0x1f8cb8{constructor(_0x4c5c7b){super(_0x4c5c7b);const _0x344992=_0x4c5c7b['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x344992,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x344992,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x8ae0e6=this['editor'],_0x161683=_0x8ae0e6['plugins']['get'](m),_0x83e91=_0x161683['isReady']?_0x161683['diff']['newRevisionId']:null;_0x8ae0e6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x83e91);}['refresh'](){const {isReady:_0x3b7f93,isEnabled:_0x98c7ee,repository:_0x403a59,diff:_0x5e5e4c}=this['editor']['plugins']['get'](m),_0x3b70f1=_0x5e5e4c&&_0x403a59['getLaterVisibleRevision'](_0x5e5e4c['newRevisionId']);this['isEnabled']=_0x3b7f93&&_0x98c7ee&&Boolean(_0x3b70f1);}}class wt extends _0x1f8cb8{['_step'];constructor(_0x2a7551,{direction:_0x36e20b}){super(_0x2a7551);const _0x5f3200=_0x2a7551['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x36e20b?0x1:-0x1,this['listenTo'](_0x5f3200,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5f3200,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5f3200,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x543c21=this['editor'],_0x8d4a13=_0x543c21['plugins']['get'](m),{isNavigationMode:_0x226c93,currentChangeNumber:_0x4d64cb}=_0x8d4a13;let _0x27fc55;if(_0x8d4a13['activeChange']=_0x226c93?_0x8d4a13['diff']['changes']['get'](_0x4d64cb+this['_step']):_0x8d4a13['diff']['changes']['first'],_0x8d4a13['activeChange']['data']['isOnRoot'])_0x27fc55=_0x543c21['editing']['view']['getDomRoot'](_0x8d4a13['activeChange']['rootName']);else{const _0x52c579=_0x543c21['model']['markers']['get']('revision:'+_0x8d4a13['activeChange']['id']);_0x27fc55=_0x4c8852(_0x543c21['editing'],_0x52c579);}_0x17044c({'target':_0x27fc55,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x251aba,currentChangeNumber:_0x3767b6,numberOfChanges:_0xbd5f16,isReady:_0x1f14b0,isEnabled:_0x21f4bc}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x21f4bc&&_0x1f14b0&&_0xbd5f16)&&(!_0x251aba||(0x1===this['_step']?_0x3767b6<_0xbd5f16-0x1:_0x3767b6>0x0));}}class _i extends _0x65ffd8{constructor(_0x40dd87){super(_0x40dd87);const _0x4ccb00=this['bindTemplate'],_0x11ad7b=new te(_0x40dd87),_0x484860=new te(_0x40dd87);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',(_0x594f7a,_0x37170e)=>_0x594f7a&&_0x37170e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5c81a2,_0x156481,_0x44d6ce,_0x203a39)=>{if(!_0x5c81a2)return g(_0x40dd87,'Loading...');if(!_0x44d6ce)return g(_0x40dd87,'No\x20changes');const _0x5c1dbb=g(_0x40dd87,'NUMBER_OF_CHANGES',_0x44d6ce);return _0x203a39?g(_0x40dd87,'X_OF_Y_CHANGES',[_0x156481+0x1,_0x44d6ce]):_0x5c1dbb;}),_0x11ad7b['set']({'label':g(_0x40dd87,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4716c}),_0x484860['set']({'label':g(_0x40dd87,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0xbcd431}),_0x11ad7b['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x484860['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x11ad7b['on']('execute',()=>this['fire']('execute','backward')),_0x484860['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',_0x4ccb00['if']('_isStatusLabelVisible','ck-hidden',_0x4b217f=>!_0x4b217f)]},'children':[{'text':_0x4ccb00['to']('isNavigationMode',_0x12b76a=>_0x12b76a?g(_0x40dd87,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x40dd87,'Total')+':\x20')}]},{'text':_0x4ccb00['to']('_statusText')}]},new _0x5f583d(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x11ad7b,_0x484860]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x4af0c1{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x300af=this['editor']['editing']['view'];_0x300af['change'](_0x8722e3=>{for(const _0x4cc1e7 of _0x300af['document']['roots'])_0x8722e3['addClass'](le,_0x4cc1e7);});}['hide'](){const _0x5b1c8a=this['editor']['editing']['view'];_0x5b1c8a['change'](_0x3c51ed=>{for(const _0x49d3c3 of _0x5b1c8a['document']['roots'])_0x3c51ed['removeClass'](le,_0x49d3c3);});}}class R extends _0x4af0c1{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x2db64b=this['editor'],_0xaa8fb9=_0x2db64b['plugins']['get'](m),_0x161241=_0x2db64b['plugins']['get'](ge);_0x2db64b['ui']['componentFactory']['add']('exitToEditing',_0x5ea903=>{const _0x545a95=new te(_0x5ea903);return _0x545a95['set']({'label':g(_0x5ea903,'Back\x20to\x20editing'),'icon':_0xf13ab6,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x545a95,'execute',()=>{_0x2db64b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x545a95;}),_0x2db64b['ui']['componentFactory']['add']('restoreRevision',_0xa1601f=>{const _0x2fc3f0=new te(_0xa1601f);return _0x2fc3f0['set']({'label':g(_0xa1601f,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2fc3f0['bind']('isEnabled')['to'](_0x2db64b['commands']['get']('restoreRevision')),this['listenTo'](_0x2fc3f0,'execute',()=>_0x2db64b['execute']('restoreRevision')),_0x2fc3f0;}),_0x2db64b['ui']['componentFactory']['add']('changesNavigation',_0x3b7fa9=>{const _0x329be5=new _i(_0x3b7fa9),_0x4811fb=_0x2db64b['commands']['get']('showPreviousChange'),_0x4d0dfc=_0x2db64b['commands']['get']('showNextChange');return _0x329be5['bind']('isBackwardNavigationEnabled')['to'](_0x4811fb,'isEnabled'),_0x329be5['bind']('isForwardNavigationEnabled')['to'](_0x4d0dfc,'isEnabled'),_0x329be5['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xaa8fb9),this['listenTo'](_0x329be5,'execute',(_0x419088,_0x446385)=>{_0x2db64b['execute']('forward'===_0x446385?'showNextChange':'showPreviousChange');}),_0x329be5;}),_0x161241['show'](),_0xaa8fb9['on']('change:isReady',(_0x1b39fb,_0x23e035,_0x537740)=>{_0x537740?_0x161241['hide']():_0x161241['show']();});}}class at extends ts{['_resizeObserver']=null;constructor(_0x17da4b,_0x5387c3){super(_0x17da4b,_0x5387c3);const _0x3436a2=this['bindTemplate'];this['set']({'label':g(_0x17da4b,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x17da4b,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3436a2['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x26beea=this['fieldView']['element'];this['_tooltipString']=_0x26beea['scrollWidth']>_0x26beea['clientWidth']&&_0x26beea['value']||'';}}class si extends _0x65ffd8{constructor(_0x3cac22,_0x4a69e2,_0x3291ae){super(_0x3cac22);const _0x2fe7be=new _0x4e1780();_0x2fe7be['set']({'content':_0x2044fd,'viewBox':'0\x200\x2011\x2010'});const _0x49234c=['ck','ck-revision-history-sidebar__revision-author'];_0x3291ae&&_0x49234c['push']('ck-revision-history-sidebar__revision-author_creator');const _0xd21fa8=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x3cac22,_0x3291ae?'Revision\x20creator':'Revision\x20author')},'children':[_0x2fe7be,_0x4a69e2['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x49234c},'children':_0xd21fa8});}}function oi(_0x105620,_0xe8473){const _0x2d6556=_0x105620['bindTemplate'],_0x5e502e=_0x105620['locale'],_0x49b700=_0x328c25(_0x5e502e);_0x49b700['panelPosition']='sw';const _0x30b163=function(_0x53237a,_0x35ec49){const _0x3b2fe8=function(_0x74bd20,_0x4ebd0a){const _0xd7ed7=_0x74bd20['locale'],_0x26f1df={'Compare\x20against\x20selected':g(_0xd7ed7,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0xd7ed7,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0xd7ed7,'Restore\x20this\x20revision')};return _0x4ebd0a['map'](_0x562abe=>{const _0x566e0b=_0x26f1df[_0x562abe['name']];return _0x566e0b&&_0x566e0b!==_0x562abe['name']&&(_0x562abe['name']=_0x566e0b),_0x562abe;});}(_0x53237a,_0x35ec49),_0x30705e=new _0x481a5e();for(const _0x21b0c5 of _0x3b2fe8){const _0x35533f={'type':'button','model':new to({'label':_0x21b0c5['name'],'class':_0x21b0c5['class'],'withText':!0x0,'role':'menuitem','_action':_0x21b0c5['action']})};_0x35533f['model']['bind']('isEnabled')['to'](_0x53237a,'isActionsDropdownOpen',_0x3a2624=>'function'!=typeof _0x21b0c5['isEnabled']||(!_0x3a2624||_0x21b0c5['isEnabled'](_0x53237a))),_0x30705e['add'](_0x35533f);}return _0x30705e;}(_0x105620,_0xe8473);return _0x105620['bind']('isActionsDropdownOpen')['to'](_0x49b700,'isOpen'),_0x49b700['buttonView']['set']({'label':g(_0x5e502e,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x8c16b}),_0x49b700['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2d6556['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2d6556['to'](_0x3e6903=>_0x3e6903['stopPropagation']())}}),_0x49b700['on']('execute',_0x3d05cd=>{_0x105620['isReady']&&'function'==typeof _0x3d05cd['source']['_action']&&_0x3d05cd['source']['_action'](_0x105620);}),_0x3b7d0a(_0x49b700,_0x30b163,{'role':'menu'}),_0x49b700['listenTo'](_0x105620,'change:isActionsDropdownOpen',(_0x455464,_0x1e8446,_0x4c5fd3)=>{if(_0x4c5fd3)for(const _0x465f1d of _0x49b700['listView']['items']){const _0xfe067e=_0x465f1d['children']['first'],_0x38e7d7=_0xe8473['find'](_0x4f90e7=>_0x4f90e7['action']===_0xfe067e['_action'])['isVisible'];_0x465f1d['isVisible']=void 0x0===_0x38e7d7||_0x38e7d7(_0x105620);}}),_0x49b700;}class hi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x4f8c6c,uid as _0x59b881,Collection as _0x13badc,logWarning as _0x32234d,FocusTracker as _0x16a0b5,KeystrokeHandler as _0x101c80,scrollViewportToShowTarget as _0x6f0fd2,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x16d21e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x552142,set as _0x2ce2ad,unset as _0x4aafd9,isEqual as _0x50dbe0}from'es-toolkit/compat';import{Plugin as _0xeb65ff,PendingActions as _0x147deb,Command as _0xfb97a,ElementApiMixin as _0x3a9ea6,Editor as _0x189213}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x44baaf,getMarkerDomElement as _0xd2782,ConfirmMixin as _0x362dd7,sanitizeEditorConfig as _0x1bdef3}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x46f69f,ViewAttributeElement as _0x4aa44d,ViewEmptyElement as _0x405688,ViewRawElement as _0x1b4259,ViewUIElement as _0xd2d7d3,ViewDocumentFragment as _0x3020ed,ViewText as _0x4c2b86,ViewElement as _0x2f2a00,Element as nt,Range as ot,Position as rt,DocumentFragment as at,Text as ht}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0xc3ea8a,IconChevronUp as _0x2c6058,IconChevronDown as _0x10407a,IconUndo as _0x5c2723,IconUser as _0x585d9d,IconThreeVerticalDots as _0x584c2b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x1e7bbb,View as _0x1de8a2,submitHandler as _0x3f0aff,LabeledFieldView as ti,createLabeledInputText as _0x1dc942,createDropdown as _0x4ecb9f,ListView as _0x529282,ListItemView as _0x3f505c,ButtonView as _0x5d1bb6,MenuBarMenuView as _0x710d5,MenuBarMenuListView as _0x537f61,MenuBarMenuListItemView as _0x210b19,MenuBarMenuListItemButtonView as _0x3c5823,ContextualBalloon as _0x253393,ToolbarSeparatorView as _0x48fb2e,IconView as _0x1de7d7,addListToDropdown as _0x1668ec,ViewModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x350c0b,StickyPanelView as _0x5e1489,ToolbarView as _0x5b1f48,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x54b875}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4f8c6c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x13f921){super(),this['id']=_0x13f921['id']||_0x59b881(),this['creator']=_0x13f921['creator']||null,this['authors']=_0x13f921['authors']||[],this['diffData']=_0x13f921['diffData']||null,this['toVersion']=_0x13f921['toVersion']||0x0,this['fromVersion']=_0x13f921['fromVersion']||0x0,this['set']('name',_0x13f921['name']||''),this['set']('createdAt',_0x13f921['createdAt']||new Date()),this['set']('attributes',_0x13f921['attributes']||{});}['setName'](_0x526c27){this['_update']({'name':_0x526c27});}['setAttribute'](_0xbbe9ea,_0x29a0a5){const _0x3daed2=_0x552142(this['attributes']);_0x2ce2ad(_0x3daed2,_0xbbe9ea,_0x29a0a5),this['_update']({'attributes':_0x3daed2});}['removeAttribute'](_0x14082f){const _0x13447f=_0x552142(this['attributes']);_0x4aafd9(_0x13447f,_0x14082f),this['_update']({'attributes':_0x13447f});}['_update'](_0x5f4551,_0x4a2507=!0x1){let _0x47e4b9=!0x1;const _0x3edf18={'id':this['id']},_0x510970=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x35b820 of _0x510970){const _0x95d30c=_0x5f4551[_0x35b820];void 0x0!==_0x95d30c&&_0x95d30c!==this[_0x35b820]&&(this[_0x35b820]=_0x95d30c,_0x3edf18[_0x35b820]=_0x95d30c,_0x47e4b9=!0x0);}_0x47e4b9&&(_0x3edf18['authors']&&(_0x3edf18['authorsIds']=_0x3edf18['authors']['map'](_0x2bc947=>_0x2bc947['id']),delete _0x3edf18['authors']),this['fire']('_update',_0x3edf18,_0x4a2507));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x171fda=>_0x171fda['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0xeb65ff{['_revisions'];static get['requires'](){return[_0x44baaf];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x52a2d2){super(_0x52a2d2),this['_revisions']=new _0x13badc();}['afterInit'](){!async function(_0x2c356d){const _0x3c3fbc=_0x283fd0([0x45,0x4e,0x41,0x4a,0x68,0x73,0x4b,0x57,0x6a,0x6b,0x77,0x64,0x30,0x62,0x75,0x35,0x65,0x6c,0x72,0x79,0x7a,0x58,0x74,0x4f,0x49,0x31,0x36,0x43,0x4d,0x61,0x37,0x5a,0x6e,0x71,0x32,0x51,0x42,0x59,0x33,0x38,0x63,0x52,0x78,0x39,0x69,0x67,0x56,0x50,0x6f,0x48,0x70,0x54,0x4c,0x53,0x34,0x55,0x76,0x46,0x66,0x6d,0x47,0x44]),_0x487d85=0xeb829,_0x770f62=0x6596b3e4,_0x1e59f0=0x6591da1c^_0x770f62,_0x2190b1=window[_0x283fd0([0x44,0x61,0x74,0x65])][_0x283fd0([0x6e,0x6f,0x77])](),_0x50d840=_0x2c356d[_0x283fd0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x291f7b=new window[(_0x283fd0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x207d77=>{_0x50d840[_0x283fd0([0x6f,0x6e,0x63,0x65])](_0x283fd0([0x72,0x65,0x61,0x64,0x79]),_0x207d77);}),_0x4a98eb={[_0x283fd0([0x6b,0x74,0x79])]:_0x283fd0([0x45,0x43]),[_0x283fd0([0x75,0x73,0x65])]:_0x283fd0([0x73,0x69,0x67]),[_0x283fd0([0x63,0x72,0x76])]:_0x283fd0([0x50,0x2d,0x32,0x35,0x36]),[_0x283fd0([0x78])]:_0x283fd0([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]),[_0x283fd0([0x79])]:_0x283fd0([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]),[_0x283fd0([0x61,0x6c,0x67])]:_0x283fd0([0x45,0x53,0x32,0x35,0x36])},_0x3a26c2=_0x50d840[_0x283fd0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x283fd0([0x67,0x65,0x74])](_0x283fd0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c0a6e(){let _0x42e790,_0x138aba=null,_0x2a9f8b=null;try{if(_0x3a26c2==_0x283fd0([0x47,0x50,0x4c]))return _0x283fd0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42e790=_0x4f3f30(),!_0x42e790)return _0x283fd0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42e790[_0x283fd0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a9f8b=_0xd139a5(_0x42e790[_0x283fd0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42e790[_0x283fd0([0x6a,0x74,0x69])])),await _0x5b5a3f()?_0x6b6102()?_0x1b477f()?_0x283fd0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3803fe()?(_0x42e790[_0x283fd0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x283fd0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x138aba=_0x134fb5(_0x283fd0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x42e790[_0x283fd0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x283fd0([0x74,0x72,0x69,0x61,0x6c])&&(_0x138aba=_0x134fb5(_0x283fd0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a00b5()):_0x283fd0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x283fd0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x283fd0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x283fd0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1b477f(){const _0x445043=[_0x283fd0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x283fd0([0x74,0x72,0x69,0x61,0x6c])][_0x283fd0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42e790[_0x283fd0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2190b1/0x3e8:0xe10*_0x1e59f0;return _0x42e790[_0x283fd0([0x65,0x78,0x70])]<_0x445043;}function _0x6b6102(){const _0x278309=_0x42e790[_0x283fd0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x278309)return!0x1;if(_0x278309[_0x283fd0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x283fd0([0x2a])))return!0x0;if(_0x278309[_0x283fd0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x283fd0([0x52,0x48])))return!0x0;if(_0x278309[_0x283fd0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x283fd0([0x52,0x52,0x48]))){if(_0x55ebaf())return!0x0;if(_0x24aa5a()||_0x30b51c())return!0x0;}return!0x1;}function _0x3803fe(){const _0x34e904=_0x42e790[_0x283fd0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34e904||0x0==_0x34e904[_0x283fd0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x293a2b}=new URL(window[_0x283fd0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x34e904[_0x283fd0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293a2b))return!0x0;const _0x19c6d7=_0x293a2b[_0x283fd0([0x73,0x70,0x6c,0x69,0x74])](_0x283fd0([0x2e]));return _0x34e904[_0x283fd0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1aa7f9=>_0x1aa7f9[_0x283fd0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x283fd0([0x2a])))[_0x283fd0([0x6d,0x61,0x70])](_0x446c09=>_0x446c09[_0x283fd0([0x73,0x70,0x6c,0x69,0x74])](_0x283fd0([0x2e])))[_0x283fd0([0x73,0x6f,0x6d,0x65])](_0x214daa=>_0x19c6d7[_0x283fd0([0x65,0x76,0x65,0x72,0x79])]((_0x51f68e,_0x1bc636)=>_0x214daa[_0x1bc636]===_0x51f68e||_0x214daa[_0x1bc636]===_0x283fd0([0x2a])));}function _0x3a00b5(){return _0x138aba&&_0x2a9f8b?new window[(_0x283fd0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x344668,_0x3e06e2)=>{_0x138aba[_0x283fd0([0x74,0x68,0x65,0x6e])](_0x344668,_0x3e06e2),_0x2a9f8b[_0x283fd0([0x74,0x68,0x65,0x6e])](_0xdf99aa=>{_0xdf99aa!=_0x283fd0([0x56,0x61,0x6c,0x69,0x64])&&_0x344668(_0xdf99aa);},_0x3e06e2);}):_0x138aba||_0x2a9f8b||_0x283fd0([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd139a5(_0xcfe618,_0x3121b8){return new window[(_0x283fd0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a3c4d=>{if(_0x48041c())return _0x2a3c4d(_0x283fd0([0x56,0x61,0x6c,0x69,0x64]));_0x13f4c7(),_0x50d840[_0x283fd0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x283fd0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3b4168=!0x1;const _0x4b9b54=_0x59b881();function _0x263234(_0x19bf11){return!!_0x19bf11&&(typeof _0x19bf11===_0x283fd0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19bf11===_0x283fd0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19bf11[_0x283fd0([0x74,0x68,0x65,0x6e])]===_0x283fd0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19bf11[_0x283fd0([0x63,0x61,0x74,0x63,0x68])]===_0x283fd0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3351b0(_0x23a185){_0x58da55(_0x23a185)[_0x283fd0([0x74,0x68,0x65,0x6e])](_0x3135c6=>{if(!_0x3135c6||_0x3135c6[_0x283fd0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x283fd0([0x6f,0x6b]))return _0x283fd0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5446a2(_0x28d810(_0x4b9b54+_0x3121b8))!=_0x3135c6[_0x283fd0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x283fd0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x283fd0([0x56,0x61,0x6c,0x69,0x64]);})[_0x283fd0([0x74,0x68,0x65,0x6e])](_0xa92910=>(_0x8ac71e(),_0xa92910),()=>{const _0x1a9422=_0x486766();return null==_0x1a9422?(_0x8ac71e(),_0x283fd0([0x56,0x61,0x6c,0x69,0x64])):_0x283fd0(_0x2190b1-_0x1a9422>(0x419a37e4^_0x770f62)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x283fd0([0x74,0x68,0x65,0x6e])](_0x2a3c4d)[_0x283fd0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2a3c4d(_0x283fd0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x51d2db=0x65a05d64^_0x770f62;function _0x8ac71e(){const _0x563962=_0x283fd0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5446a2(_0x28d810(_0xcfe618)),_0x3a7946=_0x5c3754(_0x5446a2(window[_0x283fd0([0x4d,0x61,0x74,0x68])][_0x283fd0([0x63,0x65,0x69,0x6c])](_0x2190b1/_0x51d2db)));window[_0x283fd0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x283fd0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x563962,_0x3a7946);}function _0x486766(){const _0x493469=_0x283fd0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5446a2(_0x28d810(_0xcfe618)),_0x4df3d2=window[_0x283fd0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x283fd0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x493469);return _0x4df3d2?window[_0x283fd0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c3754(_0x4df3d2),0x10)*_0x51d2db:null;}function _0x58da55(_0x9e5d4){return new window[(_0x283fd0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x108802,_0x9ac16d)=>{_0x9e5d4[_0x283fd0([0x74,0x68,0x65,0x6e])](_0x108802,_0x9ac16d),window[_0x283fd0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x9ac16d,0x65976724^_0x770f62);});}}_0x50d840[_0x283fd0([0x6f,0x6e])](_0x283fd0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x184e04,_0x269832)=>{if(_0x269832[0x0]!=_0xcfe618)return _0x2a3c4d(_0x283fd0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x269832[0x1]={..._0x269832[0x1],[_0x283fd0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b9b54};},{[_0x283fd0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x283fd0([0x68,0x69,0x67,0x68])}),_0x50d840[_0x283fd0([0x6f,0x6e])](_0x283fd0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10d51=>{_0x263234(_0x10d51[_0x283fd0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3b4168=!0x0,_0x3351b0(_0x10d51[_0x283fd0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x283fd0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x283fd0([0x6c,0x6f,0x77])}),_0x291f7b[_0x283fd0([0x74,0x68,0x65,0x6e])](()=>{_0x3b4168||_0x2a3c4d(_0x283fd0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x48041c(){return _0x50d840[_0x283fd0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x283fd0([0x76,0x69,0x65,0x77])][_0x283fd0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x283fd0([0x61,0x75,0x74,0x6f]);}function _0x13f4c7(){_0x50d840[_0x283fd0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x283fd0([0x76,0x69,0x65,0x77])][_0x283fd0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x283fd0([0x61,0x75,0x74,0x6f]);}}function _0x134fb5(_0x2629e7){const _0x14dfa8=[new window[(_0x283fd0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2840a8=>setTimeout(_0x2840a8,0x659f8d28^_0x770f62)),_0x291f7b[_0x283fd0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x283fd0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x526148=>{const _0x5e8872=0x6596b3e3^_0x770f62,_0x500fc3=_0x2c356d[_0x283fd0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x332600(){_0x500fc3[_0x283fd0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5e8872&&_0x526148();}_0x332600(),_0x500fc3[_0x283fd0([0x6f,0x6e])](_0x283fd0([0x61,0x64,0x64]),_0x332600);})),new window[(_0x283fd0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19cc3e=>{function _0x4b957f(){for(const _0x29d088 in window)if(window[_0x283fd0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x283fd0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x29d088))&&window[_0x29d088]==_0x487d85)return _0x19cc3e();_0x50d840[_0x283fd0([0x73,0x74,0x61,0x74,0x65])]!=_0x283fd0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x283fd0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b957f,0x6596a06c^_0x770f62);}_0x33a076(_0x283fd0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4b957f();})];return window[_0x283fd0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x283fd0([0x72,0x61,0x63,0x65])](_0x14dfa8)[_0x283fd0([0x74,0x68,0x65,0x6e])](()=>_0x2629e7);}async function _0x3b21d5(){if(await _0x291f7b,_0x33a076(_0x283fd0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1a8cb6=_0x2c356d[_0x283fd0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x38334f=_0x2c356d[_0x283fd0([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])](_0x1a8cb6[_0x283fd0([0x69,0x64])]),_0x49cb12=_0x255861(_0x283fd0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x49cb12[_0x283fd0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1a8cb6['id'],_0x38334f?_0x38334f['id']:null,!0x0),_0x49cb12[_0x283fd0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x283fd0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x49cb12[_0x283fd0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x49cb12[_0x283fd0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xc36aa6,void(_0x49cb12[_0x283fd0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xc36aa6);}if(_0x33a076(_0x283fd0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1232c3=_0x255861(_0x283fd0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1232c3[_0x283fd0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x283fd0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1232c3[_0x283fd0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1232c3[_0x283fd0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xc36aa6,_0x1232c3[_0x283fd0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xc36aa6;}_0x50d840[_0x283fd0([0x6d,0x6f,0x64,0x65,0x6c])][_0x283fd0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc36aa6,_0x50d840[_0x283fd0([0x6d,0x6f,0x64,0x65,0x6c])][_0x283fd0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc36aa6,_0x50d840[_0x283fd0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x283fd0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x55ebaf(){return _0x33a076(_0x283fd0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x255861(_0x283fd0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x283fd0([0x73,0x74,0x61,0x74,0x65])]==_0x283fd0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x24aa5a(){return _0x33a076(_0x283fd0([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 _0x30b51c(){return _0x33a076(_0x283fd0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1c6c0(_0x4376ea){const _0x53afdf=_0x3cf55e();_0x50d840[_0x53afdf]=_0x283fd0([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])+_0x4376ea,_0x4376ea[_0x283fd0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x283fd0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3cf55e()]=_0x487d85),_0x4376ea!=_0x283fd0([0x56,0x61,0x6c,0x69,0x64])&&_0x3b21d5();}function _0x3cf55e(){const _0x83ad54=window[_0x283fd0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x283fd0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x283fd0([0x6e,0x6f,0x77])]())[_0x283fd0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x283fd0([0x2e]),'');let _0x566a4c=_0x283fd0([0x45]);for(let _0x396bbb=0x0;_0x396bbb<_0x83ad54[_0x283fd0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x396bbb+=0x2){let _0x5a571a=window[_0x283fd0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x83ad54[_0x283fd0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x396bbb,_0x396bbb+0x2));_0x5a571a>=_0x3c3fbc[_0x283fd0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5a571a-=_0x3c3fbc[_0x283fd0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x566a4c+=_0x3c3fbc[_0x5a571a];}return _0x566a4c;}function _0x4f3f30(){const _0x5ce6e9=_0x3a26c2[_0x283fd0([0x73,0x70,0x6c,0x69,0x74])](_0x283fd0([0x2e]));if(0x3!=_0x5ce6e9[_0x283fd0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x595eac(_0x5ce6e9[0x1]);function _0x595eac(_0x201d9b){const _0x58a670=_0x9a920c(_0x201d9b);return _0x58a670&&_0x4750ab()?_0x58a670:null;function _0x4750ab(){const _0x2b126a=_0x58a670[_0x283fd0([0x6a,0x74,0x69])],_0x1ffd07=window[_0x283fd0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b126a[_0x283fd0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b126a[_0x283fd0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x613945={..._0x58a670,[_0x283fd0([0x6a,0x74,0x69])]:_0x2b126a[_0x283fd0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b126a[_0x283fd0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x613945[_0x283fd0([0x76,0x63])],_0x28d810(_0x613945)==_0x1ffd07;}}}async function _0x5b5a3f(){let _0x1981ad=!0x0;try{const _0x26cd66=_0x3a26c2[_0x283fd0([0x73,0x70,0x6c,0x69,0x74])](_0x283fd0([0x2e])),[_0x28d85c,_0x1f4c3b,_0x54a2c3]=_0x26cd66;return _0x4d2be1(_0x28d85c),await _0xf7432a(_0x28d85c,_0x1f4c3b,_0x54a2c3),_0x1981ad;}catch{return!0x1;}function _0x4d2be1(_0x3cef2d){const _0x509dc2=_0x9a920c(_0x3cef2d);_0x509dc2&&_0x509dc2[_0x283fd0([0x61,0x6c,0x67])]==_0x283fd0([0x45,0x53,0x32,0x35,0x36])||(_0x1981ad=!0x1);}async function _0xf7432a(_0x3c1f73,_0x3b885a,_0x319f66){const _0x1db835=window[_0x283fd0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x283fd0([0x66,0x72,0x6f,0x6d])](_0x157e18(_0x319f66),_0x2d4ca8=>_0x2d4ca8[_0x283fd0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3f41b4=new window[(_0x283fd0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x283fd0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3c1f73+_0x283fd0([0x2e])+_0x3b885a),_0x3da786=window[_0x283fd0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x283fd0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3da786)return;const _0x28eef3=await _0x3da786[_0x283fd0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x283fd0([0x6a,0x77,0x6b]),_0x4a98eb,{[_0x283fd0([0x6e,0x61,0x6d,0x65])]:_0x283fd0([0x45,0x43,0x44,0x53,0x41]),[_0x283fd0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x283fd0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x283fd0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3da786[_0x283fd0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x283fd0([0x6e,0x61,0x6d,0x65])]:_0x283fd0([0x45,0x43,0x44,0x53,0x41]),[_0x283fd0([0x68,0x61,0x73,0x68])]:{[_0x283fd0([0x6e,0x61,0x6d,0x65])]:_0x283fd0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x28eef3,_0x1db835,_0x3f41b4)||(_0x1981ad=!0x1);}}function _0x9a920c(_0x4cc58e){return _0x4cc58e[_0x283fd0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x283fd0([0x65,0x79]))?JSON[_0x283fd0([0x70,0x61,0x72,0x73,0x65])](_0x157e18(_0x4cc58e)):null;}function _0x157e18(_0x176527){return window[_0x283fd0([0x61,0x74,0x6f,0x62])](_0x176527[_0x283fd0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x283fd0([0x2b]))[_0x283fd0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x283fd0([0x2f])));}function _0x28d810(_0x3ad856){let _0xe0ca46=0x1505;function _0x261588(_0x1e49d8){for(let _0x28714a=0x0;_0x28714a<_0x1e49d8[_0x283fd0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28714a++){const _0x668130=_0x1e49d8[_0x283fd0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x28714a);_0xe0ca46=(_0xe0ca46<<0x5)+_0xe0ca46+_0x668130,_0xe0ca46&=_0xe0ca46;}}function _0xa06934(_0x22bbb2){Array[_0x283fd0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x22bbb2)?_0x22bbb2[_0x283fd0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa06934):_0x22bbb2&&typeof _0x22bbb2==_0x283fd0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x283fd0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x22bbb2)[_0x283fd0([0x73,0x6f,0x72,0x74])]()[_0x283fd0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2b42c4,_0x5b2e69])=>{_0x261588(_0x2b42c4),_0xa06934(_0x5b2e69);}):_0x261588(window[_0x283fd0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x22bbb2));}return _0xa06934(_0x3ad856),_0xe0ca46>>>0x0;}function _0x5446a2(_0x1088c5){return _0x1088c5[_0x283fd0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x283fd0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x283fd0([0x30]));}function _0x5c3754(_0x269314){return _0x269314[_0x283fd0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x283fd0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x283fd0([0x6a,0x6f,0x69,0x6e])]('');}function _0x33a076(_0x5bacd3){return _0x50d840[_0x283fd0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x283fd0([0x68,0x61,0x73])](_0x5bacd3);}function _0x255861(_0x265d7b){return _0x50d840[_0x283fd0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x283fd0([0x67,0x65,0x74])](_0x265d7b);}function _0xc36aa6(){}function _0x283fd0(_0x323970){return _0x323970['map'](_0x132869=>String['fromCharCode'](_0x132869))['join']('');}_0x1c6c0(await _0x3c0a6e());}(this);}['createRevision'](_0x4e4267){const _0x2f0228=this['editor']['plugins']['get']('Users');return new I({'id':_0x4e4267['id'],'name':_0x4e4267['name'],'creator':_0x4e4267['creatorId']?_0x2f0228['getUser'](_0x4e4267['creatorId']):null,'diffData':_0x4e4267['diffData']||_0x4e4267['data'],'authors':_0x4e4267['authorsIds']['map'](_0x1a3864=>_0x2f0228['getUser'](_0x1a3864)),'createdAt':new Date(_0x4e4267['createdAt']),'attributes':_0x4e4267['attributes'],'fromVersion':_0x4e4267['fromVersion'],'toVersion':_0x4e4267['toVersion']});}['addRevision'](_0x1c53ce,_0x2ef72a=0x0){this['_revisions']['add'](_0x1c53ce,_0x2ef72a);}['getRevision'](_0x533ebc){return this['_revisions']['get'](_0x533ebc);}['getRevisions'](_0x3067ff={'toJSON':!0x1}){const _0x44469d=Array['from'](this['_revisions']);return _0x44469d['reverse'](),_0x3067ff['toJSON']?_0x44469d['map'](_0x5e6eee=>_0x5e6eee['toJSON']()):_0x44469d;}['getIndex'](_0x55879e){return this['_revisions']['getIndex'](_0x55879e);}['getEarlierVisibleRevision'](_0x19a84b){const [,_0x47334a]=this['getRevisionsIterator'](_0x19a84b,{'direction':'earlier'});return _0x47334a;}['getLaterVisibleRevision'](_0x4025fd){const [,_0x325fcb]=this['getRevisionsIterator'](_0x4025fd,{'direction':'later'});return _0x325fcb;}['getRevisionsInDiff'](_0xfde17c){const _0x25d6f0=[];for(const _0x619b81 of this['getRevisionsIterator'](_0xfde17c['newRevisionId']))if(_0x25d6f0['push'](_0x619b81),_0x619b81['id']===_0xfde17c['oldRevisionId'])break;return _0x25d6f0;}*['getRevisionsIterator'](_0x5aeea3,{direction:_0x421053='earlier',filter:_0x25eb45=()=>!0x0}={}){const _0x4409f5='earlier'===_0x421053?0x1:-0x1;let _0x1c58b1=this['_revisions']['get'](_0x5aeea3),_0x3d0353=this['getIndex'](_0x1c58b1);for(yield _0x1c58b1;_0x1c58b1;){if(_0x3d0353+=_0x4409f5,_0x1c58b1=this['getRevision'](_0x3d0353),!_0x1c58b1)return;_0x25eb45(_0x1c58b1)&&(yield _0x1c58b1);}}}class $ extends _0xeb65ff{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x46f69f,'c'],[_0x4aa44d,'a'],[_0x405688,'e'],[_0x1b4259,'r'],[_0xd2d7d3,'u']]);['_typeCharToViewClass']=new Map([['c',_0x46f69f],['a',_0x4aa44d],['e',_0x405688],['r',_0x1b4259],['u',_0xd2d7d3]]);async['loadRevisionData'](_0x3b9800,_0x58c2f8){if(_0x3b9800['diffData']||!_0x58c2f8)return;const _0x12f2c5=this['editor']['config']['get']('collaboration.channelId'),_0x3f6208=await _0x58c2f8['getRevision']({'channelId':_0x12f2c5,'revisionId':_0x3b9800['id']});_0x3b9800['diffData']=_0x3f6208['diffData'];}['getRevisionDocumentData'](_0x2b1d71){const _0x268ff6={};for(const _0x53fb90 in _0x2b1d71['diffData']){if(_0x2b1d71['diffData'][_0x53fb90]['attachChange']&&!_0x2b1d71['diffData'][_0x53fb90]['attachChange']['isAttached'])continue;const _0x5afc9b=this['_removeRevisionMarkers'](JSON['parse'](_0x2b1d71['diffData'][_0x53fb90]['insertions'])),_0x2461f7=this['editor']['editing']['view']['document'],_0x364742=new _0x3020ed(_0x2461f7,_0x5afc9b['map'](_0x40ae55=>this['_getViewFromDiffObj'](_0x40ae55,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x268ff6[_0x53fb90]=this['editor']['data']['processor']['toData'](_0x364742),this['editor']['data']['processor']['useFillerType']('default');}return _0x268ff6;}['getRevisionRootsAttributes'](_0x4d790e){const _0xa6f2ee={};for(const _0x8da5c in _0x4d790e['diffData'])_0x4d790e['diffData'][_0x8da5c]['attachChange']&&!_0x4d790e['diffData'][_0x8da5c]['attachChange']['isAttached']||(_0xa6f2ee[_0x8da5c]=_0x4d790e['diffData'][_0x8da5c]['attributesAfter']||{});return _0xa6f2ee;}['_getTypeCharForViewElement'](_0x288c00){return this['_viewClassToTypeChar']['get'](_0x288c00['constructor']);}['_getViewFromDiffObj'](_0x45a039,_0x380b3f){const _0x8183d2=this['editor']['editing']['view']['document'];if('string'==typeof _0x45a039)return new _0x4c2b86(_0x8183d2,_0x45a039);{let _0x329b7e,_0x54b5c5;_0x54b5c5='u'==_0x45a039['type']||'r'==_0x45a039['type']?[]:_0x45a039['children']['map'](_0x2bab6f=>this['_getViewFromDiffObj'](_0x2bab6f,_0x380b3f));const _0x49eb83=this['_typeCharToViewClass']['get'](_0x45a039['type'])||_0x2f2a00,_0x3112d4=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x329b7e=new _0x49eb83(_0x8183d2,_0x45a039['name'],_0x45a039['attributes'],_0x54b5c5),'u'==_0x45a039['type']&&_0x45a039['children'][0x0]){const _0x38cf35=_0x45a039['children'][0x0];if(_0x329b7e['render']=function(_0xec9445){const _0x1011e4=_0xec9445['createElement']('div');return _0x1011e4['innerHTML']=_0x38cf35,_0x1011e4['childNodes'][0x0];},_0x380b3f){const _0x4868ec=new _0x3020ed(_0x8183d2);_0x4868ec['_appendChild'](_0x329b7e);const _0x789a0=Array['from'](_0x3112d4['viewChildrenToDom'](_0x4868ec,{'bind':!0x1})),_0x2b7556=_0x3112d4['domDocument']['createElement']('div');_0x2b7556['append'](..._0x789a0),_0x329b7e=Array['from'](_0x3112d4['domChildrenToView'](_0x2b7556))[0x0];}}else{if('r'==_0x45a039['type']&&_0x45a039['children'][0x0]){const _0x1d0249=_0x45a039['children'][0x0];if(_0x329b7e['render']=function(_0x90a43c){_0x90a43c['innerHTML']=_0x1d0249;},_0x380b3f){const _0x340880=new _0x3020ed(_0x8183d2);_0x340880['_appendChild'](_0x329b7e);const _0x14cc85=Array['from'](_0x3112d4['viewChildrenToDom'](_0x340880,{'bind':!0x1})),_0x389573=_0x3112d4['domDocument']['createElement']('div');_0x389573['append'](..._0x14cc85);const _0x2a168d=Array['from'](_0x3112d4['domChildrenToView'](_0x389573));_0x2a168d['length']>0x1?_0x329b7e['_appendChild'](_0x2a168d):_0x329b7e=_0x2a168d[0x0];}}}if(_0x45a039['customProperties']){for(const [_0x4dd68e,_0x1b9bd3]of _0x45a039['customProperties'])_0x329b7e['_setCustomProperty'](_0x4dd68e,_0x1b9bd3);}const _0x4b5f6f=void 0x0===_0x45a039['fillerOffset']?null:_0x45a039['fillerOffset'];return null!==_0x4b5f6f&&(_0x329b7e['getFillerOffset']=()=>_0x4b5f6f),_0x329b7e;}}['_makeModelFromViewString'](_0x3df96c){const _0x4cc76c=JSON['parse'](_0x3df96c),_0x54fe89=this['editor']['editing']['view']['document'],_0x143e14=new _0x3020ed(_0x54fe89,_0x4cc76c['map'](_0x51953f=>this['_getViewFromDiffObj'](_0x51953f,!0x0)));return this['editor']['data']['toModel'](_0x143e14);}['_removeRevisionMarkers'](_0x5d80de){return(_0x5d80de=_0x5d80de['filter'](_0x186810=>!_0x186810['name']||'revision-start'!==_0x186810['name']&&'revision-end'!==_0x186810['name']))['forEach'](_0x568995=>{'string'!=typeof _0x568995&&(_0x568995['children']=this['_removeRevisionMarkers'](_0x568995['children']),_0x568995['attributes']=_0x568995['attributes']['filter'](_0x1fa09f=>!_0x1fa09f[0x0]['startsWith']('data-revision-')));}),_0x5d80de;}}function R(_0x599489,_0x3ad1c9,_0x46d377){const t=_0x599489['t'];switch(_0x3ad1c9){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'},_0x46d377);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x46d377);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 _0xeb65ff{['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[_0x44baaf,S,$,_0x147deb];}constructor(_0x48d092){super(_0x48d092),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new K(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4a4a97=_0x59b881();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4a4a97},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 _0x5c7d16=this['repository']['getRevision'](0x0),_0x524d06=_0x5c7d16&&null===_0x5c7d16['creator']?_0x5c7d16:null;if(this['_continueCurrentRevision']=!!_0x524d06&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x36e16a=this['_source']['getCurrentRevisionId'](),_0x3d7cc5=this['repository']['getRevision'](_0x36e16a);if(_0x3d7cc5)this['_startingVersion']=_0x3d7cc5['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x242402=this['_source']['history']['_operations']['find'](_0x4c82a6=>!_0x4c82a6['_isInit']),_0x2609de=_0x242402?_0x242402['baseVersion']:this['_source']['history']['version'];_0x5c7d16?(_0x5c7d16['toVersion']<_0x2609de&&_0x5c7d16['_update']({'toVersion':_0x2609de}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x524d06['id'],this['_startingVersion']=_0x524d06['fromVersion']):(this['_startingVersion']=_0x5c7d16['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2609de,this['_continueCurrentRevision']=!0x1);}}else _0x524d06&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x524d06['toVersion'],this['editor']['model']['document']['history']['version']),_0x524d06['fromVersion']===_0x524d06['toVersion']?(0x0!==_0x524d06['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x524d06['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x524d06['id'],this['_startingVersion']=_0x524d06['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',_0x42948b=>!_0x42948b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xa18898=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8e93ff;for(const _0x798af8 in _0xa18898){const _0x3467fe=_0x798af8,_0x456cd6=_0xa18898[_0x3467fe];if('revisionHistoryLicenseKeyValid'==_0x456cd6||'revisionHistoryLicenseKeyInvalid'==_0x456cd6||'revisionHistoryLicenseKeyExpired'==_0x456cd6||'revisionHistoryLicenseKeyDomainLimit'==_0x456cd6||'revisionHistoryLicenseKeyNotAllowed'==_0x456cd6||'revisionHistoryLicenseKeyEvaluationLimit'==_0x456cd6||'revisionHistoryLicenseKeyTrialLimit'==_0x456cd6||'revisionHistoryLicenseKeyUsageLimit'==_0x456cd6){delete _0xa18898[_0x3467fe],_0x8e93ff=_0x456cd6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x8e93ff&&_0xa18898['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x8e93ff&&_0xa18898['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x8e93ff&&_0xa18898['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x8e93ff&&_0xa18898['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x8e93ff&&_0xa18898['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x8e93ff&&_0xa18898['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x8e93ff&&_0xa18898['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1ec965=this['repository']['getRevision'](0x0),_0x5a50bf=await this['getRevisionDocumentData'](_0x1ec965),_0x9a9980=await this['getRevisionRootsAttributes'](_0x1ec965);this['_replaceEditorDataWithRevisionData'](_0x5a50bf,_0x9a9980);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x72b342){this['_source']=_0x72b342;}async['update'](){const _0x4784c4=await this['_source']['getLatestVersion']();if(_0x4784c4>this['currentRevision']['toVersion']){await this['_loadState']();const _0x502f60=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4784c4});_0x502f60['authors']=_0x502f60['authorsIds']['map'](_0x523680=>this['editor']['plugins']['get']('Users')['getUser'](_0x523680)),this['currentRevision']['_update'](_0x502f60);}}async['saveRevision'](_0x23581b={},_0x529834=null){const _0x26573d=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x529834>this['currentRevision']['toVersion']&&(_0x529834=null),null===_0x529834&&(_0x529834=await this['_source']['getLatestVersion']());const _0x7f9af=this['_getFromVersion'](_0x529834),_0x1606e4=this['buildRevisionData']({'from':_0x7f9af,'to':_0x529834});if(this['currentRevision']['toVersion']<_0x529834){const _0x53a7dc=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x529834,'to':_0x529834});_0x53a7dc['authors']=[],_0x53a7dc['authorsIds']=[],_0x53a7dc['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x53a7dc,!0x0),delete _0x53a7dc['authors'],_0x26573d['push'](_0x53a7dc);}_0x23581b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x23581b['name']=_0x23581b['name']||null,_0x23581b['id']=_0x23581b['id']||_0x59b881(),_0x23581b={..._0x23581b,..._0x1606e4};const _0x5958cb=this['addRevisionData'](_0x23581b);_0x26573d['push'](_0x23581b);const _0x4af1c7=this['repository']['getIndex'](_0x5958cb);if(0x0!==_0x4af1c7){const _0x5348f6=this['repository']['getRevision'](_0x4af1c7-0x1);if(_0x5348f6['fromVersion']!==_0x529834){const _0x3a297a=this['_revisionDataBuilder']['getData'](_0x529834,_0x5348f6['toVersion']),_0x54260c={'id':_0x5348f6['id'],'diffData':_0x3a297a['diffData'],'authorsIds':_0x3a297a['authorsIds'],'authors':_0x3a297a['authorsIds']['map'](_0x182215=>this['editor']['plugins']['get']('Users')['getUser'](_0x182215)),'fromVersion':_0x529834};_0x5348f6===this['currentRevision']&&(_0x54260c['createdAt']=new Date(_0x23581b['createdAt']['getTime']()+0xa)),_0x5348f6['_update'](_0x54260c,!0x0),delete _0x54260c['authors'],_0x26573d['push'](_0x54260c);}}if(this['adapter']){for(const _0x31605d of _0x26573d)this['_bufferUpdate'](_0x31605d['id'],_0x31605d,!0x0);this['sendBufferedUpdates']();}return _0x5958cb;}['addRevisionData'](_0x51f504){const _0x57d085=this['repository']['createRevision'](_0x51f504);return this['adapter']&&_0x57d085['on']('_update',(_0x2f9d47,_0x28bd6d,_0x386997)=>{_0x386997||(this['_bufferUpdate'](_0x28bd6d['id'],_0x28bd6d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x57d085,this['_findInsertionIndex'](_0x57d085)),_0x57d085;}async['getRevisionDocumentData'](_0x2bb18b){return await this['_utils']['loadRevisionData'](_0x2bb18b,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2bb18b);}async['getRevisionRootsAttributes'](_0x3ac884){return await this['_utils']['loadRevisionData'](_0x3ac884,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3ac884);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x16abe5=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2c8080=0x0;_0x2c8080<_0x16abe5['length'];_0x2c8080++){const _0x1fa973=_0x16abe5[_0x2c8080];let _0x2c55f2=!0x1;for(const _0x203377 of Object['keys'](_0x1fa973))void 0x0===_0x1fa973[_0x203377]?delete _0x1fa973[_0x203377]:'id'!==_0x203377&&(_0x2c55f2=!0x0);_0x2c55f2||(_0x16abe5[_0x2c8080]=null);}if(_0x16abe5=_0x16abe5['filter'](_0x1bc62a=>null!==_0x1bc62a),!_0x16abe5['length'])return;for(let _0x138ca0=0x0;_0x138ca0<_0x16abe5['length'];_0x138ca0++){const _0x3fa076=_0x16abe5[_0x138ca0];void 0x0!==_0x3fa076['fromVersion']&&void 0x0===_0x3fa076['toVersion']&&(_0x3fa076['toVersion']=this['repository']['getRevision'](_0x3fa076['id'])['toVersion']),void 0x0!==_0x3fa076['toVersion']&&void 0x0===_0x3fa076['fromVersion']&&(_0x3fa076['fromVersion']=this['repository']['getRevision'](_0x3fa076['id'])['fromVersion']);}const _0x9e0c2f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x16abe5,_0x9e0c2f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4d535d=>{if(_0x4d535d){for(const _0x1d3260 of _0x4d535d)this['setRevisionData']({'id':_0x1d3260['id'],'createdAt':_0x1d3260['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x25696f=null,from:_0x1a4621=null,to:_0x577910=null}){_0x1a4621=null!==_0x1a4621?_0x1a4621:_0x25696f['fromVersion'],_0x577910=null!==_0x577910?_0x577910:_0x25696f['toVersion'];const _0x36e79e=this['_revisionDataBuilder']['getData'](_0x1a4621,_0x577910),_0x37cad0={'diffData':_0x36e79e['diffData'],'authorsIds':_0x36e79e['authorsIds'],'fromVersion':_0x1a4621,'toVersion':_0x577910};if(!_0x25696f||_0x577910!==_0x25696f['toVersion']){const _0x160d15=_0x577910-0x1,_0x42e481=this['_source']['history']['getOperation'](_0x160d15);_0x37cad0['createdAt']=_0x42e481&&_0x42e481['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1a4621===this['_loadedStateData']['fromVersion']){for(const _0x296d35 of this['_loadedStateData']['authors'])_0x37cad0['authorsIds']['includes'](_0x296d35['id'])||_0x37cad0['authorsIds']['push'](_0x296d35['id']);}return _0x37cad0;}['_bufferUpdate'](_0x1b3bd1,_0x637b88,_0x5c51c8){if(this['_bufferedUpdates']['has'](_0x1b3bd1)){const _0x408414=this['_bufferedUpdates']['get'](_0x1b3bd1);_0x637b88=_0x5c51c8?{..._0x408414,..._0x637b88}:{..._0x637b88,..._0x408414};}this['_bufferedUpdates']['set'](_0x1b3bd1,_0x637b88);}['setRevisionData'](_0x381d45){const _0x1d104f=this['repository']['getRevision'](_0x381d45['id']);if(_0x381d45['createdAt']&&(_0x381d45['createdAt']=new Date(_0x381d45['createdAt'])),_0x381d45['authorsIds']){const _0x49e8a7=this['editor']['plugins']['get']('Users');_0x381d45['authors']=_0x381d45['authorsIds']['map'](_0x30c92d=>_0x49e8a7['getUser'](_0x30c92d));}_0x1d104f['_update'](_0x381d45,!0x0);}['_createInitialRevision'](_0x59acb9){const _0x1e0673=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1e0673)this['_initialRevisionId']=_0x1e0673['id'];else{const _0x1eccb7=!this['editor']['model']['document']['roots']['find'](_0x1acb81=>this['editor']['model']['hasContent'](_0x1acb81)),_0x586427=this['editor']['plugins']['get']('Users')['me']['id'],_0xd2e0fb=R(this['editor']['locale'],_0x1eccb7?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x59acb9,'to':_0x59acb9,'id':this['_initialRevisionId'],'name':_0xd2e0fb,'creatorId':_0x586427});}}['_createCurrentRevision'](_0x193336){const _0x2c24ef=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2c24ef),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x193336,'to':_0x193336,'id':_0x2c24ef,'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'](_0x339194,_0x2da1db){let _0x2a3471=this['editor']['config']['get']('initialData'),_0x55f298=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2a3471){_0x2a3471={};for(const _0x56f62c of this['editor']['model']['document']['getRootNames']())_0x2a3471[_0x56f62c]='';}if('string'==typeof _0x2a3471&&(_0x2a3471={'main':_0x2a3471}),void 0x0===_0x55f298){_0x55f298={};for(const _0x396954 of this['editor']['model']['document']['getRootNames']())_0x55f298[_0x396954]={};}let _0x119225=!0x1;const _0x794a53=Object['keys'](_0x2a3471),_0x599155=Object['keys'](_0x339194);for(const _0x4af744 of _0x794a53){if(_0x2a3471[_0x4af744]!==_0x339194[_0x4af744]&&''!==_0x2a3471[_0x4af744]['trim']()){_0x119225=!0x0;break;}if(!_0x50dbe0(_0x55f298[_0x4af744],_0x2da1db[_0x4af744])&&Object['keys'](_0x55f298[_0x4af744])['length']>0x0){_0x119225=!0x0;break;}}_0x119225||(_0x119225=_0x599155['some'](_0x2a1d94=>!this['editor']['model']['document']['getRoot'](_0x2a1d94))),_0x119225&&_0x32234d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2a3471,'editorRootsAttributes':_0x55f298,'revisionData':_0x339194,'revisionRootsAttributes':_0x2da1db}),this['editor']['config']['set']('initialData',_0x339194),this['editor']['config']['set']('rootsAttributes',_0x2da1db);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1bd675=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1bd675['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x19d31e){const _0x38010e=this['repository']['getRevisions']();_0x38010e['reverse']();let _0x568450=0x0;for(;_0x568450<_0x38010e['length'];){const _0x1b6d74=_0x38010e[_0x568450];if(_0x1b6d74===this['currentRevision']){_0x568450++;continue;}if(_0x1b6d74['id']===this['_initialRevisionId'])break;const _0x2bc1de=_0x19d31e['toVersion']-_0x1b6d74['toVersion']||_0x19d31e['fromVersion']-_0x1b6d74['fromVersion'];if(_0x2bc1de>0x0)break;if(_0x2bc1de<0x0)_0x568450++;else{if(!_0x19d31e['creator']&&_0x1b6d74['creator'])break;if(_0x1b6d74['creator']||!_0x19d31e['creator']){if(_0x19d31e['createdAt']>_0x1b6d74['createdAt'])break;_0x568450++;}else _0x568450++;}}return _0x568450;}['_getFromVersion'](_0x39a377){const _0x91eef3=this['repository']['getRevisions']();_0x91eef3['reverse'](),_0x91eef3['shift']();const _0x8c3957=_0x91eef3['find'](_0x1d9b62=>_0x1d9b62['toVersion']<=_0x39a377)['toVersion'];return _0x8c3957<this['_startingVersion']?this['_startingVersion']:_0x8c3957;}['_makeRevision']({name:_0x59bd88,from:_0x394cab,to:_0x54dbe0,creatorId:_0x3220db,id:_0x1d44d5}){const _0x571766=this['buildRevisionData']({'from':_0x394cab,'to':_0x54dbe0});_0x571766['name']=_0x59bd88,_0x571766['creatorId']=_0x3220db,_0x571766['id']=_0x1d44d5;const _0x32627f=this['addRevisionData'](_0x571766);return this['adapter']&&this['_bufferUpdate'](_0x571766['id'],_0x571766,!0x0),_0x32627f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class K{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x11054f){this['editor']=_0x11054f,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'](_0x1e4099){this['source']=_0x1e4099;const _0x926973=new Map(),_0x19e921=new Map(),_0xcb4294=this['editor']['model']['document']['roots']['map'](_0x5aff61=>_0x5aff61['rootName']);for(const _0x47b313 of _0xcb4294){const _0x35fbd5=this['editor']['model']['document']['getRoot'](_0x47b313),_0x9a4752=x(_0x35fbd5);_0x926973['set'](_0x47b313,_0x9a4752),_0x19e921['set'](_0x47b313,Object['fromEntries'](_0x35fbd5['getAttributes']()));}const _0x1e1163=Array['from'](this['editor']['model']['markers'])['map'](_0x3956c8=>[_0x3956c8['name'],_0x3956c8['getRange']()]),_0x3fbd5e=this['source']['version'];this['_saveMetaData'](_0x3fbd5e,_0x926973,_0x1e1163,_0x19e921),this['_startingRevisionId']=this['_revisionId'];const _0x38e7d1=new Map(),_0x48515c=new Map();for(const _0x1ba1c8 of _0xcb4294){const _0x13472f=N(_0x1ba1c8);_0x38e7d1['set'](_0x1ba1c8,_0x13472f),_0x48515c['set'](_0x1ba1c8,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x38e7d1,[],_0x48515c);}['getData'](_0x3e98c0,_0x69478c){if(this['_lastFrom']===_0x3e98c0&&this['_lastTo']<=_0x69478c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x69478c,!0x0);else{if(!this['_savedMetaData']['has'](_0x3e98c0)){const _0xf1eae6=this['_getPreviousFrom'](_0x3e98c0);this['_calculateMetaData'](_0xf1eae6,_0x3e98c0,!0x1);}this['_calculateMetaData'](_0x3e98c0,_0x69478c,!0x0);}return this['_lastFrom']=_0x3e98c0,this['_lastTo']=_0x69478c,this['_getState']();}['loadState'](_0x3c8dfb){const _0x6b498f=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3c8dfb['fromVersion'],this['_lastTo']=_0x3c8dfb['toVersion'];for(const _0x5d92e6 in _0x3c8dfb['diffData']){const _0xb09d1=_0x3c8dfb['diffData'][_0x5d92e6]['attachChange'],_0x49cd55=_0x552142(_0x3c8dfb['diffData'][_0x5d92e6]['attributesBefore'])||{},_0x50b009=_0x6b498f['_makeModelFromViewString'](_0x3c8dfb['diffData'][_0x5d92e6]['deletions']);_0x50b009['rootName']=_0x5d92e6,_0x50b009['_isAttached']=!_0xb09d1||!_0xb09d1['isAttached'],_0x50b009['isAttached']=()=>_0x50b009['_isAttached'],this['_baseRoots']['set'](_0x5d92e6,_0x50b009),this['_baseRootsAttributes']['set'](_0x5d92e6,_0x49cd55),_0xb09d1&&this['_touchedRoots']['set'](_0x5d92e6,_0xb09d1);const _0x5eed97=this['_makeIdsRoot'](_0x50b009);this['_baseIdsRoots']['set'](_0x5d92e6,_0x5eed97);for(const [_0x2869ea,_0x1967ef]of _0x50b009['markers']){if(!_0x2869ea['startsWith']('revision:'))continue;const _0x4791ef=_0x2869ea['split'](':')[0x2];for(const _0x32e94e of _0x1967ef['getWalker']({'singleCharacters':!0x0})){const _0x3664db=this['_getVidAttributeName'](_0x32e94e),_0x35cdbe='elementEnd'==_0x32e94e['type']?_0x32e94e['previousPosition']['path']['slice'](0x0,-0x1):_0x32e94e['previousPosition']['path'],_0x2f5a28=_0x5eed97['getNodeByPath'](_0x35cdbe)['getAttribute'](_0x3664db);this['_touched']['set'](_0x2f5a28,{'userId':_0x4791ef});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2190ea=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x307619=>!this['_touched']['has'](_0x307619));let _0x14e7a9=0x0;const _0x170110=new Map();for(const _0x5564ae in _0x3c8dfb['diffData']){const _0x968be0=_0x3c8dfb['diffData'][_0x5564ae]['attachChange'],_0x3d2975=_0x552142(_0x3c8dfb['diffData'][_0x5564ae]['attributesAfter'])||{},_0x5a9df5=_0x6b498f['_makeModelFromViewString'](_0x3c8dfb['diffData'][_0x5564ae]['insertions']);_0x5a9df5['rootName']=_0x5564ae,_0x5a9df5['_isAttached']=!_0x968be0||_0x968be0['isAttached'],_0x5a9df5['isAttached']=()=>_0x5a9df5['_isAttached'],this['_diffRoots']['set'](_0x5564ae,_0x5a9df5),this['_diffRootsAttributes']['set'](_0x5564ae,_0x3d2975);const _0xedb292=this['_makeIdsRoot'](_0x5a9df5,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5564ae,_0xedb292),_0x170110['set'](_0x5564ae,_0x5a9df5['isAttached']()?_0x3d2975:{});for(const [_0x6e0cc4,_0x31624c]of _0x5a9df5['markers']){if(!_0x6e0cc4['startsWith']('revision:'))continue;const _0x417c11=_0x6e0cc4['split'](':')[0x2];for(const _0xa465f0 of _0x31624c['getWalker']({'singleCharacters':!0x0})){const _0xa87477=this['_getVidAttributeName'](_0xa465f0),_0x54cd4c=this['_revisionId']++,_0x538d97='elementEnd'==_0xa465f0['type']?_0xa465f0['previousPosition']['path']['slice'](0x0,-0x1):_0xa465f0['previousPosition']['path'];_0xedb292['getNodeByPath'](_0x538d97)['_setAttribute'](_0xa87477,_0x54cd4c),this['_touched']['set'](_0x54cd4c,{'userId':_0x417c11});}}for(const _0x92a1f8 of this['editor']['model']['createRangeIn'](_0x5a9df5)['getWalker']({'singleCharacters':!0x0})){const _0x268f67=this['_getVidAttributeName'](_0x92a1f8),_0x36cd7c='elementEnd'==_0x92a1f8['type']?_0x92a1f8['previousPosition']['path']['slice'](0x0,-0x1):_0x92a1f8['previousPosition']['path'],_0x376086=_0xedb292['getNodeByPath'](_0x36cd7c);_0x376086['getAttribute'](_0x268f67)>0x0||_0x376086['_setAttribute'](_0x268f67,_0x2190ea[_0x14e7a9++]);}for(const [_0x4c3b7c,_0x593594]of _0x5a9df5['markers'])_0x4c3b7c['startsWith']('revision:')||this['_markers']['set'](_0x4c3b7c,_0x593594);}const _0x9cceca=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x9cceca),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x9cceca,0x1));const _0x3b4466=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3b4466),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3b4466,0x1));const _0x4fc295=Array['from'](this['_diffRoots'])['map'](([_0x443d4a,_0x3bf7bd])=>[_0x443d4a,x(_0x3bf7bd)]);this['_saveMetaData'](this['_lastTo'],_0x4fc295,this['_markers'],_0x170110);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x2d579a,_0x5c5aa6,_0x34462d,_0x13c3aa){const _0x1801ee=new Map(_0x5c5aa6),_0x4140c0=new Map(_0x552142(_0x13c3aa)),_0x25d616=new Map();for(const [_0xf29dba,_0x4a6c25]of _0x34462d)_0x25d616['set'](_0xf29dba,{'start':_0x4a6c25['start']['clone'](),'end':_0x4a6c25['end']['clone'](),'rootName':_0x4a6c25['root']['rootName']});this['_savedMetaData']['set'](_0x2d579a,{'roots':_0x1801ee,'markers':_0x25d616,'rootsAttributes':_0x4140c0});}['_removeMetaData'](_0x7a0844){this['_savedMetaData']['delete'](_0x7a0844);}['_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'](_0x3c37ba,_0x25ab43=null){let _0x2d905b=null;_0x3c37ba['is']('documentFragment')||(_0x2d905b=new nt(_0x3c37ba['name'],{'vid_start':null===_0x25ab43?this['_revisionId']++:_0x25ab43++}));const _0x54b7f3=[];for(const _0x1b8b3a of _0x3c37ba['getChildren']())if(_0x1b8b3a['is']('element')){_0x54b7f3['push'](this['_makeIdsRoot'](_0x1b8b3a,_0x25ab43));const _0xc9dfe5=_0x54b7f3[_0x54b7f3['length']-0x1];null!==_0x25ab43&&(_0x25ab43=_0xc9dfe5['is']('element','$text')?_0xc9dfe5['getAttribute']('vid')+0x1:_0xc9dfe5['getAttribute']('vid_end')+0x1);}else{for(let _0x2dd478=0x0;_0x2dd478<_0x1b8b3a['offsetSize'];_0x2dd478++)_0x54b7f3['push'](new nt('$text',{'vid':null===_0x25ab43?this['_revisionId']++:_0x25ab43++}));}if(_0x3c37ba['is']('documentFragment')){const _0x387d10=N(_0x3c37ba['rootName']);return _0x387d10['_insertChild'](0x0,_0x54b7f3),_0x387d10;}return _0x2d905b['_setAttribute']('vid_end',null===_0x25ab43?this['_revisionId']++:_0x25ab43++),_0x2d905b['_insertChild'](0x0,_0x54b7f3),_0x2d905b;}['_calculateMetaData'](_0x3546c8,_0x1c0577,_0x335b6a){this['_reset']();const {roots:_0x19c2c8,markers:_0x188f44,rootsAttributes:_0x2822e3}=this['_savedMetaData']['get'](_0x3546c8);this['_baseRoots']=new Map(_0x19c2c8),this['_baseRootsAttributes']=new Map(_0x552142(_0x2822e3));for(const [_0x3fcd41,_0x301643]of this['_baseRoots'])if('$graveyard'!==_0x3fcd41&&(this['_diffRoots']['set'](_0x3fcd41,x(_0x301643)),this['_diffRootsAttributes']=new Map(_0x552142(_0x2822e3)),_0x335b6a)){const _0x461811=this['_revisionId'];this['_idsRoots']['set'](_0x3fcd41,this['_makeIdsRoot'](_0x301643)),this['_baseIdsRoots']['set'](_0x3fcd41,this['_makeIdsRoot'](_0x301643,_0x461811));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x335b6a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2a585a,_0x5b3d67]of _0x188f44){const _0x5cf4e7=this['_baseRoots']['get'](_0x5b3d67['rootName']),_0x914188=this['_diffRoots']['get'](_0x5b3d67['rootName']),_0x464aae=new ot(this['_fixPosition'](_0x5b3d67['start'],_0x5cf4e7),this['_fixPosition'](_0x5b3d67['end'],_0x5cf4e7)),_0x3f3805=this['_fixRange'](_0x464aae,_0x914188);_0x5cf4e7['markers']['set'](_0x2a585a,_0x464aae),this['_markers']['set'](_0x2a585a,_0x3f3805);}this['_applyOperations'](_0x3546c8,_0x1c0577,_0x335b6a);}['_applyOperations'](_0x3659c8,_0x41d090,_0x455c29){for(const _0x22167a of this['source']['getOperations'](_0x3659c8,_0x41d090))this['_handleOperation'](_0x22167a,_0x455c29);for(const _0x54b3df of this['_diffRoots']['values']())_0x54b3df['markers']['clear']();for(const [_0x1758a0,_0x6bc040]of this['_markers']){this['_diffRoots']['get'](_0x6bc040['root']['rootName'])['markers']['set'](_0x1758a0,_0x6bc040['clone']());}const _0x260cb5=new Map(),_0xd01c91=new Map();for(const [_0x43eb2e,_0x23c57e]of this['_diffRoots'])_0x260cb5['set'](_0x43eb2e,x(_0x23c57e)),_0xd01c91['set'](_0x43eb2e,this['_diffRootsAttributes']['get'](_0x43eb2e));this['_saveMetaData'](_0x41d090,_0x260cb5,this['_markers'],_0xd01c91);}['_getPreviousFrom'](_0x125fc7){const _0x5953eb=Array['from'](this['_savedMetaData']['keys']());_0x5953eb['sort']((_0x44846b,_0x3c79cb)=>_0x44846b-_0x3c79cb),_0x5953eb['reverse']();for(const _0x423b02 of _0x5953eb)if(_0x423b02<_0x125fc7)return _0x423b02;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3b9a9a,_0x178be4){const _0xa7b656=Array['from'](_0x178be4['markers'])['map'](([_0x53ddae,_0x29b6fe])=>[_0x53ddae,this['_fixRange'](_0x29b6fe,_0x3b9a9a)]);_0x3b9a9a['markers']=new Map(_0xa7b656);}['_transformMarkers'](_0x3754e2){for(const _0x4abed8 of this['_markers']['values']()){const _0x3c6d8c=_0x4abed8['getTransformedByOperation'](_0x3754e2),_0x568bbe=ot['_createFromRanges'](_0x3c6d8c);_0x4abed8['start']=_0x568bbe['start'],_0x4abed8['end']=_0x568bbe['end'];}}['_handleOperation'](_0x45d707,_0x4de270){if('addRoot'!=_0x45d707['type']&&'detachRoot'!=_0x45d707['type']){if('insert'==_0x45d707['type']){const _0x4af2b6=_0x45d707['position']['root']['rootName'];this['_diffRoots']['has'](_0x4af2b6)||(this['_diffRoots']['set'](_0x4af2b6,N(_0x4af2b6,!0x0)),this['_diffRootsAttributes']['set'](_0x4af2b6,{}),_0x4de270&&this['_idsRoots']['set'](_0x4af2b6,N(_0x4af2b6,!0x0)));}else{if('addRootAttribute'==_0x45d707['type']||'removeRootAttribute'==_0x45d707['type']||'changeRootAttribute'==_0x45d707['type'])return void this['_handleRootAttributeOperation'](_0x45d707);'marker'==_0x45d707['type']&&this['_handleMarkerOperation'](_0x45d707);}if('marker'!==_0x45d707['type']){const _0xf7ece4=this['_cloneOperation'](_0x45d707,this['_diffRoots']);_0xf7ece4['_execute'](),this['_transformMarkers'](_0xf7ece4);}if(_0x4de270)switch(_0x45d707['type']){case'insert':this['_handleInsertOperation'](_0x45d707);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x45d707);break;case'merge':this['_handleMergeOperation'](_0x45d707);break;case'split':this['_handleSplitOperation'](_0x45d707);}}else this['_handleRootOperation'](_0x45d707,_0x4de270);}['_cloneOperation'](_0x545bd8,_0x223281){const _0x23140c=_0x545bd8['clone']();return _0x23140c['_authorId']=_0x545bd8['_authorId'],this['_fixOperation'](_0x23140c,_0x223281),_0x23140c;}['_getBaseVids'](_0x51cf18){return _0x51cf18['map'](_0x19d15f=>{const _0x31efed=this['_getVidAttributeName'](_0x19d15f);return Number(_0x19d15f['item']['getAttribute'](_0x31efed));});}['_generateTape'](_0x4f68a7,_0x47fea1){if(_0x4f68a7['is']('element','$text'))_0x47fea1['push']({'item':_0x4f68a7,'type':'text'});else{_0x4f68a7['is']('element')&&_0x47fea1['push']({'item':_0x4f68a7,'type':'elementStart'});for(const _0x6bd6b5 of _0x4f68a7['getChildren']())this['_generateTape'](_0x6bd6b5,_0x47fea1);_0x4f68a7['is']('element')&&_0x47fea1['push']({'item':_0x4f68a7,'type':'elementEnd'});}return _0x47fea1;}['_getState'](){const _0x52faaf=new Map(this['_touched']),_0x2c0a59=new Map(_0x52faaf),_0x3ad46b=new Map(),_0x50fdda={'insertions':{},'deletions':{}},_0x4bea77={'insertions':{},'deletions':{}},_0x441332=new Map(),_0xe92091=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xe92091['delete']('$graveyard');for(const _0x4d1555 of _0xe92091){const _0xf8960e=this['_diffRoots']['get'](_0x4d1555)||N(_0x4d1555,!0x1),_0x1e35c4=this['_baseRoots']['get'](_0x4d1555)||N(_0x4d1555,!0x1);_0xf8960e['isAttached']()||_0x1e35c4['isAttached']()?(_0x50fdda['insertions'][_0x4d1555]=x(_0xf8960e),_0x50fdda['deletions'][_0x4d1555]=x(_0x1e35c4),this['_copyMarkers'](_0x50fdda['deletions'][_0x4d1555],_0x1e35c4),this['_copyMarkers'](_0x50fdda['insertions'][_0x4d1555],_0xf8960e),_0x4bea77['insertions'][_0x4d1555]=this['_generateTape'](this['_idsRoots']['get'](_0x4d1555),[]),_0x4bea77['deletions'][_0x4d1555]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4d1555)||N(_0x4d1555,!0x1),[])):_0xe92091['delete'](_0x4d1555);}for(const _0x5400fe of _0xe92091){const _0x4e833a=_0x4bea77['insertions'][_0x5400fe];for(const _0x47ca64 of _0x4e833a){const _0xdfb83f=this['_getVidAttributeName'](_0x47ca64),_0xeecd1c=_0x47ca64['item']['getAttribute'](_0xdfb83f);_0x2c0a59['delete'](_0xeecd1c),_0xeecd1c>=this['_startingRevisionId']&&_0x3ad46b['set'](_0xeecd1c,_0x52faaf['get'](_0xeecd1c));}}for(const _0x34e157 of _0xe92091){const _0x1f1aa0=_0x4bea77['insertions'][_0x34e157],_0x52d0cf=this['_getBaseVids'](_0x4bea77['deletions'][_0x34e157]);let _0x242713=0x0;for(const _0xda291c of _0x1f1aa0){const _0x5b5ac1=this['_getVidAttributeName'](_0xda291c),_0x1085b8=_0xda291c['item']['getAttribute'](_0x5b5ac1);if(!_0x3ad46b['has'](_0x1085b8)&&!_0x441332['has'](_0x1085b8)){if(_0x2c0a59['has'](_0x1085b8))_0x242713++;else{if(_0x1085b8!=_0x52d0cf[_0x242713]){const _0x28cd67=_0x52faaf['get'](_0x1085b8)||_0x52faaf['get'](_0x52d0cf[_0x242713]);for(;_0x1085b8!=_0x52d0cf[_0x242713];)_0x2c0a59['has'](_0x52d0cf[_0x242713])||(_0x441332['set'](_0x52d0cf[_0x242713],_0x28cd67),_0x52faaf['set'](_0x52d0cf[_0x242713],_0x28cd67)),_0x242713++;}_0x242713++;}}}}for(const _0x1a9abe of _0xe92091){const _0x1e88b7=_0x4bea77['insertions'][_0x1a9abe];for(const _0x2dfd64 of _0x1e88b7){const _0x29c357=this['_getVidAttributeName'](_0x2dfd64),_0x50896f=_0x2dfd64['item']['getAttribute'](_0x29c357);if(_0x441332['has'](_0x50896f)){const _0x52556b=_0x441332['get'](_0x50896f);_0x2c0a59['has'](_0x50896f)||_0x2c0a59['set'](_0x50896f,{..._0x52556b}),_0x3ad46b['set'](_0x50896f,{..._0x52556b});}}}for(const _0x583042 of _0x2c0a59['keys']())_0x583042>=this['_startingRevisionId']&&_0x2c0a59['delete'](_0x583042);const _0x56c7c3=new Map();for(const _0x5a6968 of _0xe92091){let _0x15f19a=_0x4bea77['insertions'][_0x5a6968];for(const _0x5953a3 of _0x15f19a)if(_0x5953a3['item']['is']('element','tableCell')){const _0x5bef6a=this['_getVidAttributeName'](_0x5953a3),_0xbfa477=_0x5953a3['item']['getAttribute'](_0x5bef6a);if(_0x3ad46b['has'](_0xbfa477)){const _0x36b9f0=_0x5953a3['item']['parent']['parent']['getAttribute']('vid_start'),_0x533438=_0x56c7c3['get'](_0x36b9f0)||new Set();_0x533438['add'](_0x3ad46b['get'](_0xbfa477)['userId']),_0x56c7c3['set'](_0x36b9f0,_0x533438);}}_0x15f19a=_0x4bea77['deletions'][_0x5a6968];for(const _0x525b1f of _0x15f19a)if(_0x525b1f['item']['is']('element','tableCell')){const _0xd52de0=this['_getVidAttributeName'](_0x525b1f),_0x5f29a4=_0x525b1f['item']['getAttribute'](_0xd52de0);if(_0x2c0a59['has'](_0x5f29a4)){const _0x45d9e7=_0x525b1f['item']['parent']['parent']['getAttribute']('vid_start'),_0x807c1b=_0x56c7c3['get'](_0x45d9e7)||new Set();_0x807c1b['add'](_0x2c0a59['get'](_0x5f29a4)['userId']),_0x56c7c3['set'](_0x45d9e7,_0x807c1b);}}for(const _0x2e124c of _0x56c7c3['keys']())(_0x3ad46b['has'](_0x2e124c)||_0x2c0a59['has'](_0x2e124c))&&_0x56c7c3['delete'](_0x2e124c);}for(const _0x313673 of _0xe92091){const _0x20db5e=_0x4bea77['insertions'][_0x313673];let _0x32361c=null,_0x2badfb=null;for(const _0x27186d of _0x20db5e){const _0x325586=this['_getVidAttributeName'](_0x27186d),_0x2222d4=_0x27186d['item']['getAttribute'](_0x325586),_0x3d4b5a=_0x56c7c3['get'](_0x2222d4);_0x3d4b5a&&'elementStart'==_0x27186d['type']&&(_0x32361c=Array['from'](_0x3d4b5a)[0x0],_0x2badfb=_0x27186d['item']['getAttribute']('vid_end')),_0x32361c&&(_0x2c0a59['set'](_0x2222d4,{'userId':_0x32361c}),_0x3ad46b['set'](_0x2222d4,{'userId':_0x32361c})),_0x2222d4==_0x2badfb&&(_0x32361c=null,_0x2badfb=null);}}const _0x593d6d={},_0x3c440c=new Set();for(const _0x22941b of _0xe92091){const _0x2c6fc=_0x50fdda['deletions'][_0x22941b],_0x451279=_0x50fdda['insertions'][_0x22941b];for(const {userId:_0x5d3bd8}of this['_touchedMarkers']['values']())null!==_0x5d3bd8&&_0x3c440c['add'](_0x5d3bd8);for(const {userId:_0x4f0a08}of this['_touchedRoots']['values']())null!==_0x4f0a08&&_0x3c440c['add'](_0x4f0a08);this['_markChanges'](_0x451279,_0x4bea77['insertions'][_0x22941b],_0x3ad46b,'insertion',_0x3c440c),this['_markChanges'](_0x2c6fc,_0x4bea77['deletions'][_0x22941b],_0x2c0a59,'deletion',_0x3c440c),_0x593d6d[_0x22941b]={'insertions':this['_prepareViewToSave'](_0x451279),'deletions':this['_prepareViewToSave'](_0x2c6fc),'attachChange':this['_touchedRoots']['get'](_0x22941b)||null,'attributesBefore':_0x552142(this['_baseRootsAttributes']['get'](_0x22941b))||{},'attributesAfter':_0x552142(this['_diffRootsAttributes']['get'](_0x22941b))};}return{'diffData':_0x593d6d,'authorsIds':Array['from'](_0x3c440c)};}['_processRootBeforeSave'](_0x433203){for(const [,_0x1d4a5b]of _0x433203['markers']){const _0x11f2e7=_0x1d4a5b['start']['getAncestors']()['filter'](_0x5648f9=>'tableCell'==_0x5648f9['name']);for(const _0x538755 of _0x11f2e7)0x1==_0x538755['childCount']&&_0x538755['getChild'](0x0)['is']('element','paragraph')&&_0x538755['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5d327a){this['_processRootBeforeSave'](_0x5d327a);const _0x5dfebb=this['editor']['data']['toView'](_0x5d327a,{}),_0x2b3a38=Array['from'](_0x5dfebb['getChildren']())['map'](_0x570837=>this['_getViewJson'](_0x570837));return JSON['stringify'](_0x2b3a38);}['_getViewJson'](_0x33f85d){if(_0x33f85d['is']('$text'))return _0x33f85d['data'];{const _0xf7cd5b=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x3b808e=_0x33f85d,_0x1dab2b=this['editor']['data']['htmlProcessor']['domConverter'],_0x529985={'type':_0xf7cd5b['_getTypeCharForViewElement'](_0x3b808e),'name':_0x3b808e['name'],'attributes':Array['from'](_0x3b808e['getAttributes']()),'children':Array['from'](_0x3b808e['getChildren']())['map'](_0x4f83be=>this['_getViewJson'](_0x4f83be))};if(_0x33f85d['is']('uiElement')&&'$comment'!=_0x33f85d['name']){const _0x3ed7e5=_0x33f85d['render'](_0x1dab2b['domDocument'],_0x1dab2b);_0x529985['children']['push'](_0x3ed7e5['outerHTML']);}else{if(_0x33f85d['is']('rawElement')){const _0x2fa17d=_0x1dab2b['domDocument']['createElement'](_0x3b808e['name']);_0x33f85d['render'](_0x2fa17d,_0x1dab2b),_0x529985['children']['push'](_0x2fa17d['innerHTML']);}}const _0x4723a2=Array['from'](_0x3b808e['getCustomProperties']());_0x4723a2['length']>0x0&&(_0x529985['customProperties']=_0x4723a2);const _0x9bcc28=_0x3b808e['getFillerOffset']();return null!==_0x9bcc28&&(_0x529985['fillerOffset']=_0x9bcc28),_0x529985;}}['_markChanges'](_0x3627cd,_0x591d37,_0x55bc86,_0x563fe3,_0x1c0ab2){let _0x4db308=null,_0x44b640=null,_0x260466=0x0;const _0x1a8b0b=this['editor']['model'];for(let _0x41f7fd=0x0;_0x41f7fd<_0x591d37['length'];_0x41f7fd++){const _0x2923e1=this['_getVidAttributeName'](_0x591d37[_0x41f7fd]),_0x121bbe=_0x591d37[_0x41f7fd]['item']['getAttribute'](_0x2923e1),_0x1afdf9=_0x55bc86['get'](_0x121bbe),_0xd0aea9=_0x41f7fd==_0x591d37['length']-0x1;(!_0x4db308&&_0x1afdf9&&(_0x4db308=_0x1afdf9,_0x44b640=_0x591d37[_0x41f7fd]),_0x4db308&&(!_0x1afdf9||_0x1afdf9['userId']!=_0x4db308['userId']))&&(_0x1212b5(_0x1afdf9,P(_0x44b640,_0x3627cd,_0x1a8b0b),P(_0x591d37[_0x41f7fd],_0x3627cd,_0x1a8b0b)),_0x4db308=_0x1afdf9||null,_0x44b640=_0x1afdf9?_0x591d37[_0x41f7fd]:null),_0x4db308&&_0xd0aea9&&_0x1212b5(_0x1afdf9,P(_0x44b640,_0x3627cd,_0x1a8b0b),V(_0x591d37[_0x41f7fd],_0x3627cd,_0x1a8b0b));}function _0x1212b5(_0x558c9b,_0x1b4acc,_0x1e5dfd){const _0x254aa2=_0x4db308['userId'],_0x4241c2='revision:'+_0x563fe3+':'+_0x254aa2+':'+_0x260466++,_0x254791=_0x1a8b0b['createRange'](_0x1b4acc,_0x1e5dfd);_0x3627cd['markers']['set'](_0x4241c2,_0x254791),null!==_0x254aa2&&_0x1c0ab2['add'](_0x254aa2);}}['_getVidAttributeName'](_0x178f6c){switch(_0x178f6c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x54669c,_0x207f81){_0x54669c['baseVersion']=null;for(const _0x47d92f in _0x54669c){const _0x658b08=_0x54669c[_0x47d92f];if(_0x658b08 instanceof rt){const _0x384fde=_0x207f81['get'](_0x658b08['root']['rootName']);_0x54669c[_0x47d92f]=this['_fixPosition'](_0x658b08,_0x384fde);}if(_0x658b08 instanceof ot){const _0x11dee1=_0x207f81['get'](_0x658b08['root']['rootName']);_0x54669c[_0x47d92f]=this['_fixRange'](_0x658b08,_0x11dee1);}'root'===_0x47d92f&&(_0x54669c['root']=_0x207f81['get'](_0x54669c['root']['rootName']));}}['_fixRange'](_0x4baab6,_0x4d17aa){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4baab6['start'],_0x4d17aa),this['_fixPosition'](_0x4baab6['end'],_0x4d17aa));}['_fixPosition'](_0x3940af,_0x2bf207){return this['editor']['model']['createPositionFromPath'](_0x2bf207,_0x3940af['path'],_0x3940af['stickiness']);}['_handleInsertOperation'](_0x219bd9){const _0x3791fb=this['_idsRoots']['get'](_0x219bd9['position']['root']['rootName']),_0xcbc4ea=this['_fixPosition'](_0x219bd9['position'],_0x3791fb),_0x1aef1f=null===_0x219bd9['_authorId']?null:_0x219bd9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ffe96=_0xcbc4ea['parent'],_0x327954=this['_revisionId'],_0xed872e=[];for(const _0x137914 of _0x219bd9['nodes'])if(_0x137914['is']('element'))_0xed872e['push'](this['_makeIdsRoot'](_0x137914));else{for(let _0xdb6783=0x0;_0xdb6783<_0x137914['offsetSize'];_0xdb6783++)_0xed872e['push'](new nt('$text',{'vid':this['_revisionId']++}));}const _0x276d80=this['_revisionId'];for(let _0x26e71a=_0x327954;_0x26e71a<_0x276d80;_0x26e71a++)this['_touched']['set'](_0x26e71a,{'userId':_0x1aef1f});_0x3ffe96['_insertChild'](_0xcbc4ea['offset'],_0xed872e);}['_handleMoveOperation'](_0x3d01b2){(_0x3d01b2=this['_cloneOperation'](_0x3d01b2,this['_idsRoots']))['_execute']();const _0x562397=null===_0x3d01b2['_authorId']?null:_0x3d01b2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e8918=_0x3d01b2['getMovedRangeStart'](),_0x207959=_0x1e8918['parent'],_0x23cc0f=_0x1e8918['offset'];!function _0x210b36(_0x5948a1,_0x3872d8,_0x158c47,_0x4be30e){for(let _0x468525=_0x158c47;_0x468525<_0x4be30e;_0x468525++){const _0x1e43d2=_0x3872d8['getChild'](_0x468525);_0x1e43d2['is']('element','$text')?_0x5948a1['set'](_0x1e43d2['getAttribute']('vid'),{'userId':_0x562397}):(_0x5948a1['set'](_0x1e43d2['getAttribute']('vid_start'),{'userId':_0x562397}),_0x210b36(_0x5948a1,_0x1e43d2,0x0,_0x1e43d2['childCount']),_0x5948a1['set'](_0x1e43d2['getAttribute']('vid_end'),{'userId':_0x562397}));}}(this['_touched'],_0x207959,_0x23cc0f,_0x23cc0f+_0x3d01b2['howMany']);}['_handleMergeOperation'](_0x5f0982){const _0x3fde8c=null===(_0x5f0982=this['_cloneOperation'](_0x5f0982,this['_idsRoots']))['_authorId']?null:_0x5f0982['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x219819=_0x5f0982['targetPosition']['parent'],_0x3776c3=_0x5f0982['sourcePosition']['parent'],_0x2d9222=_0x219819['getAttribute']('vid_end'),_0x351182=_0x3776c3['getAttribute']('vid_start');_0x219819['_setAttribute']('vid_end',_0x3776c3['getAttribute']('vid_end')),_0x3776c3['_setAttribute']('vid_end',_0x2d9222),this['_touched']['set'](_0x351182,{'userId':_0x3fde8c}),this['_touched']['set'](_0x2d9222,{'userId':_0x3fde8c}),_0x5f0982['_execute']();}['_handleSplitOperation'](_0x5da164){const _0x474ecd=null===(_0x5da164=this['_cloneOperation'](_0x5da164,this['_idsRoots']))['_authorId']?null:_0x5da164['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2b78db=_0x5da164['graveyardPosition'],_0x29d8c7=_0x5da164['splitPosition']['parent'];_0x5da164['_execute']();const _0x6879d4=_0x29d8c7['getAttribute']('vid_end'),_0x5a26df=_0x5da164['insertionPosition']['nodeAfter'];if(_0x2b78db){const _0x4c95ae=_0x5a26df['getAttribute']('vid_end'),_0x58c8b2=_0x29d8c7['getAttribute']('vid_end');_0x29d8c7['_setAttribute']('vid_end',_0x4c95ae),_0x5a26df['_setAttribute']('vid_end',_0x58c8b2),this['_touched']['set'](_0x29d8c7['getAttribute']('vid_end'),{'userId':_0x474ecd}),this['_touched']['set'](_0x5a26df['getAttribute']('vid_start'),{'userId':_0x474ecd});}else{const _0x4ddf68=this['_revisionId']++,_0x137dc4=this['_revisionId']++;_0x29d8c7['_setAttribute']('vid_end',_0x4ddf68),_0x5a26df['_setAttribute']('vid_start',_0x137dc4),_0x5a26df['_setAttribute']('vid_end',_0x6879d4),this['_touched']['set'](_0x4ddf68,{'userId':_0x474ecd}),this['_touched']['set'](_0x137dc4,{'userId':_0x474ecd});}}['_handleMarkerOperation'](_0x46ce37){if(!_0x46ce37['affectsData'])return;const _0x4c4cfa=(_0x46ce37=this['_cloneOperation'](_0x46ce37,this['_diffRoots']))['oldRange']?_0x46ce37['oldRange']['root']:null,_0x42ab4f=_0x46ce37['newRange']?_0x46ce37['newRange']['root']:null;_0x4c4cfa&&this['_markers']['delete'](_0x46ce37['name']),_0x42ab4f&&this['_markers']['set'](_0x46ce37['name'],_0x46ce37['newRange']['clone']());const _0x1fb581=null===_0x46ce37['_authorId']?null:_0x46ce37['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e3c3e=_0x46ce37['name'];if(!this['_touchedMarkers']['has'](_0x1e3c3e))return void this['_touchedMarkers']['set'](_0x1e3c3e,{'range':_0x46ce37['oldRange'],'userId':_0x1fb581});const _0x35561b=this['_touchedMarkers']['get'](_0x1e3c3e),_0x5badd6=_0x35561b['range'],_0x283f64=_0x46ce37['newRange'];null==_0x5badd6&&null==_0x283f64||_0x5badd6&&_0x283f64&&_0x5badd6['isEqual'](_0x283f64)?this['_touchedMarkers']['delete'](_0x46ce37['name']):_0x35561b['userId']=_0x1fb581;}['_handleRootOperation'](_0x1e2e8d,_0x555b05){this['_diffRoots']['has'](_0x1e2e8d['rootName'])?this['_diffRoots']['get'](_0x1e2e8d['rootName'])['_isAttached']=_0x1e2e8d['isAdd']:(this['_diffRoots']['set'](_0x1e2e8d['rootName'],N(_0x1e2e8d['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1e2e8d['rootName'],{}),_0x555b05&&this['_idsRoots']['set'](_0x1e2e8d['rootName'],N(_0x1e2e8d['rootName'],!0x0)));const _0x4b0f6a=null===_0x1e2e8d['_authorId']?null:_0x1e2e8d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7ae6f1=this['_touchedRoots']['get'](_0x1e2e8d['rootName']);_0x7ae6f1&&_0x7ae6f1['userId']===_0x4b0f6a?this['_touchedRoots']['delete'](_0x1e2e8d['rootName']):this['_touchedRoots']['set'](_0x1e2e8d['rootName'],{'userId':_0x4b0f6a,'isAttached':_0x1e2e8d['isAdd']});}['_handleRootAttributeOperation'](_0x27f049){const _0x43a0d4=this['_diffRootsAttributes']['get'](_0x27f049['root']['rootName']);null===_0x27f049['newValue']?delete _0x43a0d4[_0x27f049['key']]:_0x43a0d4[_0x27f049['key']]=_0x27f049['newValue'];}}function x(_0x4c0b81){const _0x46d98c=N(_0x4c0b81['rootName'],_0x4c0b81['isAttached']());for(const _0x470be2 of _0x4c0b81['getChildren']()){const _0x15658c=_0x470be2['_clone'](!0x0);_0x46d98c['_appendChild'](_0x15658c);}return _0x46d98c;}function N(_0x173dd5,_0x4f8d70=!0x0){const _0x419d71=new at();return _0x419d71['rootName']=_0x173dd5,_0x419d71['_isAttached']=_0x4f8d70,_0x419d71['isAttached']=()=>_0x419d71['_isAttached'],_0x419d71;}function P(_0x548cd8,_0x255605,_0x4365c0){const _0x450bdf='elementEnd'==_0x548cd8['type']?_0x4365c0['createPositionAt'](_0x548cd8['item'],'end'):_0x4365c0['createPositionBefore'](_0x548cd8['item']);return _0x4365c0['createPositionFromPath'](_0x255605,_0x450bdf['path'],_0x450bdf['stickiness']);}function V(_0x55a17e,_0x3cb3a9,_0x32a68e){const _0x1df6b2='elementStart'==_0x55a17e['type']?_0x32a68e['createPositionAt'](_0x55a17e['item'],0x0):_0x32a68e['createPositionAfter'](_0x55a17e['item']);return _0x32a68e['createPositionFromPath'](_0x3cb3a9,_0x1df6b2['path'],_0x1df6b2['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1e7bbb(_0x1de8a2){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x31a907,_0x4cfc4b){super(_0x31a907),this['focusTracker']=new _0x16a0b5(),this['keystrokes']=new _0x101c80(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4cfc4b),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'](),_0x3f0aff({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x50224c=_0x310725=>_0x310725['stopPropagation']();this['keystrokes']['set']('arrowright',_0x50224c),this['keystrokes']['set']('arrowleft',_0x50224c),this['keystrokes']['set']('arrowup',_0x50224c),this['keystrokes']['set']('arrowdown',_0x50224c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x51585a){this['revisionNameInputView']['fieldView']['element']['value']=_0x51585a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5bdde0){const _0x234100=new ti(this['locale'],_0x1dc942),_0x28da73=_0x234100['fieldView'];_0x28da73['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x120dec=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5bdde0&&(_0x120dec+='\x20('+R(this['locale'],'optional')+')'),(_0x234100['label']=_0x120dec,_0x28da73['on']('input',()=>{this['revisionNameInputValue']=_0x28da73['element']['value']['trim']();}),_0x234100);}}class v extends _0xeb65ff{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x6344f5=this['editor'],_0x5934fc=_0x6344f5['plugins']['get']('RevisionTracker');_0x6344f5['ui']['componentFactory']['add']('revisionHistory',_0xc421f8=>{const _0x2ac812=_0x4ecb9f(_0xc421f8),_0x2b801d=_0x2ac812['panelView']['children'],_0x36caf0=new _0x529282(_0xc421f8),_0x4bd02f=new _0x3f505c(_0xc421f8),_0x42b661=new _0x5d1bb6(_0xc421f8),_0x2e5730=new _0x3f505c(_0xc421f8),_0x2062a7=new _0x5d1bb6(_0xc421f8);return _0x2ac812['bind']('isEnabled')['to'](_0x5934fc,'isReady',_0x5934fc,'isEnabled',_0x6344f5,'isReadOnly',(_0x8ff884,_0x1c29f3,_0x3f0865)=>_0x8ff884&&_0x1c29f3&&!_0x3f0865),_0x2ac812['buttonView']['set']({'icon':_0xc3ea8a,'label':R(_0xc421f8,'Revision\x20history'),'tooltip':!0x0}),_0x42b661['set']({'label':R(_0xc421f8,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x42b661['bind']('isEnabled')['to'](_0x5934fc,'isReady',_0x5934fc,'isEnabled',_0x6344f5,'isReadOnly',(_0x353e4c,_0x51c376,_0x1ec76d)=>_0x353e4c&&_0x51c376&&!_0x1ec76d),_0x42b661['on']('execute',()=>this['_showDialog']()),_0x2062a7['set']({'label':R(_0xc421f8,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2062a7['bind']('isEnabled')['to'](_0x5934fc,'isReady',_0x6344f5,'isReadOnly',(_0x273c1f,_0x5db2d7)=>_0x273c1f&&!_0x5db2d7),_0x2062a7['on']('execute',()=>{_0x6344f5['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2ac812['isOpen']=!0x1,_0x6344f5['editing']['view']['focus']();}),_0x4bd02f['children']['add'](_0x42b661),_0x2e5730['children']['add'](_0x2062a7),_0x36caf0['role']='menu',_0x36caf0['items']['addMany']([_0x4bd02f,_0x2e5730]),_0x2b801d['add'](_0x36caf0),_0x2ac812;}),_0x6344f5['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5484b2=this['editor'],_0x3df490=_0x5484b2['locale'],_0x3c7921=new _0x710d5(_0x3df490),_0x19a1cf=new _0x537f61(_0x3df490);_0x3c7921['buttonView']['set']({'icon':_0xc3ea8a,'label':R(_0x3df490,'Revision\x20history')});const _0x47e80f=new _0x210b19(_0x3df490,_0x3c7921),_0x38c149=new _0x3c5823(_0x3df490);_0x38c149['set']({'label':R(_0x3df490,'Save\x20current\x20revision')}),_0x38c149['delegate']('execute')['to'](_0x3c7921),_0x38c149['on']('execute',()=>{this['_showDialog']();}),_0x47e80f['children']['add'](_0x38c149),_0x19a1cf['items']['add'](_0x47e80f);const _0x29055f=new _0x210b19(_0x3df490,_0x3c7921),_0x18780e=new _0x3c5823(_0x3df490);return _0x18780e['set']({'label':R(_0x3df490,'Open\x20revision\x20history')}),_0x18780e['delegate']('execute')['to'](_0x3c7921),_0x18780e['on']('execute',()=>{_0x5484b2['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x29055f['children']['add'](_0x18780e),_0x19a1cf['items']['add'](_0x29055f),_0x3c7921['panelView']['children']['add'](_0x19a1cf),_0x3c7921;}['_showDialog'](){const _0x56f98b=this['editor'],_0x3a0057=_0x56f98b['locale'],_0x380936=_0x56f98b['plugins']['get']('Dialog'),_0x5b3833=_0x56f98b['plugins']['get']('RevisionTracker');function _0x3a255f(_0x2bb82a){_0x56f98b['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2bb82a['revisionName']?_0x2bb82a['revisionNameInputView']['errorText']=R(_0x3a0057,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x56f98b['plugins']['get'](h)['saveRevision']({'name':_0x2bb82a['revisionName']}),_0x380936['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3a255f(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x380936['show']({'id':'revisionSave','title':R(_0x3a0057,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x56f98b['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x380936['hide']()},{'label':R(_0x56f98b['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x8361f8){_0x8361f8['bind']('isEnabled')['to'](_0x5b3833,'isReady',_0x5b3833,'isEnabled',_0x56f98b,'isReadOnly',(_0x1791c0,_0x1298cf,_0x203157)=>_0x1791c0&&_0x1298cf&&!_0x203157);},'onExecute':()=>_0x3a255f(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x92f91a=this['editor'],_0x54f16a=_0x92f91a['locale'];this['_saveRevisionFormView']=new he(_0x54f16a,_0x92f91a['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x1de8a2{['changeId'];['_model'];constructor(_0x1a81a3,_0x25c8d8){super(_0x1a81a3),this['_model']=_0x25c8d8,this['changeId']=_0x25c8d8['id'];const _0x5bd8d4=this['bindTemplate'],_0x433a4a=R(_0x1a81a3,_0x25c8d8['data']['isSuggestion']?'Suggested\x20by':'add'==_0x25c8d8['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x25c8d8['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5bd8d4['to']('type',_0x29cb77=>'ck-revision-change__'+_0x29cb77)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x433a4a}]},{'text':'\x20'+_0x25c8d8['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4f8c6c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x18e33c){super(),this['id']=_0x18e33c['id']||_0x59b881(),this['author']=_0x18e33c['author'],this['type']=_0x18e33c['type'],this['data']=_0x18e33c['data']||{},this['rootName']=_0x18e33c['rootName'],this['set']('createdAt',_0x18e33c['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(_0x5758cd,_0x274af0){this['newRevisionId']=_0x5758cd,this['oldRevisionId']=_0x274af0,this['changes']=new _0x13badc();}['_setChanges'](_0xe8da20){for(const _0xae100c of _0xe8da20)this['changes']['add'](_0xae100c);}}class l extends _0xeb65ff{['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[_0x44baaf,_0x253393,S,$];}constructor(_0x35def8){super(_0x35def8),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',(_0xdc69fb,_0x408b54,_0x1281e3)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x51b639=>{for(const _0x53805e of this['editor']['editing']['view']['document']['roots'])_0x1281e3?_0x51b639['removeClass']('ck-editor__editable__overlay',_0x53805e):_0x51b639['addClass']('ck-editor__editable__overlay',_0x53805e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1efccc=>null!==_0x1efccc),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x26f73f,_0x293163,_0x2c154c)=>_0x26f73f&&_0x2c154c?_0x293163['changes']['getIndex'](_0x2c154c):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1545f0,_0x358af8)=>_0x1545f0?_0x358af8['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x253393);}['init'](){const _0xdaaed1=this['editor'],_0x24ab95=new ut(_0xdaaed1,{'direction':'backward'}),_0x1ad21a=new ut(_0xdaaed1,{'direction':'forward'});(_0xdaaed1['commands']['add']('showPreviousChange',_0x24ab95),_0xdaaed1['commands']['add']('showNextChange',_0x1ad21a),_0xdaaed1['commands']['add']('restoreRevision',new ct(_0xdaaed1)),this['on']('change:numberOfChanges',()=>{_0x24ab95['refresh'](),_0x1ad21a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xdaaed1['enableReadOnlyMode']('revision-viewer'),_0xdaaed1['plugins']['has']('WidgetToolbarRepository'))&&_0xdaaed1['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x4c7a9f){return await this['_utils']['loadRevisionData'](_0x4c7a9f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4c7a9f);}async['getRevisionRootsAttributes'](_0x4547dc){return await this['_utils']['loadRevisionData'](_0x4547dc,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4547dc);}async['compare'](_0xf96df2,_0x21cdcf,_0x5bc655=!0x1){if(!this['isEnabled'])return;const _0x1d18d9=this['diff'],_0x6c620c=this['repository'],_0x1f4fe8='string'==typeof _0xf96df2?_0x6c620c['getRevision'](_0xf96df2):_0xf96df2,_0x2f87c6='string'==typeof _0x21cdcf?_0x6c620c['getRevision'](_0x21cdcf):_0x21cdcf,_0xfa1379=_0x1f4fe8['id'],_0x29fed1=_0x2f87c6?_0x2f87c6['id']:null;if(!_0x5bc655&&this['diff']&&this['diff']['newRevisionId']===_0xfa1379&&this['diff']['oldRevisionId']===_0x29fed1)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0xfa1379,_0x29fed1);const _0x1f5d1d=this['_getRevisionsRange'](_0x1f4fe8,_0x2f87c6,!0x0)['map'](_0x218e66=>this['_utils']['loadRevisionData'](_0x218e66,this['adapter']));return _0x1f5d1d['push'](new Promise(_0x2c1d49=>{setTimeout(_0x2c1d49,0x14);})),Promise['all'](_0x1f5d1d)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x180955=this['_getDiff'](_0xfa1379,_0x29fed1);for(const _0x5f416e of _0x180955['changes'])this['_changeIdToChange']['set'](_0x5f416e['id'],_0x5f416e);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x110a76=>{for(const _0x1bb657 of this['editor']['model']['document']['getRootNames']())_0x110a76['detachRoot'](_0x1bb657);for(const _0x56634c of Object['keys'](_0x180955['model'])){const _0x53977f=_0x110a76['addRoot'](_0x56634c);for(const _0x18098c of Object['keys'](_0x180955['attributes'][_0x56634c]))_0x110a76['setAttribute'](_0x18098c,_0x180955['attributes'][_0x56634c][_0x18098c],_0x53977f);_0x110a76['insert'](_0x180955['model'][_0x56634c],_0x53977f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x180955['changes'])),this['isReady']=!0x0;})['catch'](_0x5f3c94=>{console['error'](_0x5f3c94),this['_cleanUp'](),_0x1d18d9&&(this['diff']=_0x1d18d9),this['isReady']=!0x0;});}['addRevisionData'](_0x59244f,_0x5e4b5d){const _0x120b9e=this['repository']['createRevision'](_0x59244f);return _0x120b9e['on']('_update',(_0x11f4ee,_0x1a45d3,_0x567ae1)=>_0x5e4b5d(_0x1a45d3,_0x567ae1,_0x120b9e)),this['repository']['addRevision'](_0x120b9e),_0x120b9e;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x31bcde=>{for(const _0x2fe02c of this['editor']['model']['document']['getRootNames']())_0x31bcde['detachRoot'](_0x2fe02c);});}['_sortAndFilterDiffChanges'](_0x23dfc2){const _0x40f36d=[],_0x20b2d9=new Map();for(const _0x49c31b of this['editor']['model']['document']['getRootNames']()){const _0x1ddf2d=this['editor']['editing']['view']['getDomRoot'](_0x49c31b);if(!_0x1ddf2d)continue;const _0x1e9580=_0x1ddf2d['getClientRects']()['item'](0x0);_0x1e9580&&(_0x40f36d['push'](_0x49c31b),_0x20b2d9['set'](_0x49c31b,_0x1e9580));}return _0x40f36d['sort']((_0x545a43,_0x6759b)=>{const _0x403a87=_0x20b2d9['get'](_0x545a43),_0x2a083b=_0x20b2d9['get'](_0x6759b);return _0x403a87['y']-_0x2a083b['y']||_0x403a87['x']-_0x2a083b['x'];}),(_0x23dfc2=_0x23dfc2['filter'](_0x8ae1cf=>_0x40f36d['includes'](_0x8ae1cf['rootName'])))['sort']((_0x2fbe7f,_0x2a75d4)=>_0x40f36d['indexOf'](_0x2fbe7f['rootName'])-_0x40f36d['indexOf'](_0x2a75d4['rootName'])),_0x23dfc2;}['_makeTape'](_0x15917f){const _0x320f5e=Array['from'](_0x15917f['markers'])['filter'](([_0x4dab2f,_0x5a99bc])=>_0x4dab2f['startsWith']('revision:')&&!_0x5a99bc['isCollapsed']),_0x439890=Array['from'](this['editor']['model']['createRangeIn'](_0x15917f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x320f5e['length'])for(const _0x5983be of _0x439890){const [_0x31bc8f,_0x57231c]=_0x320f5e[0x0],[,_0x379f66,_0xe3043a]=_0x31bc8f['split'](':');if(_0x57231c['end']['isEqual'](_0x5983be['nextPosition'])&&_0x320f5e['shift'](),(_0x5983be['previousPosition']['isEqual'](_0x57231c['start'])||_0x5983be['previousPosition']['isAfter'](_0x57231c['start']))&&('insertion'==_0x379f66?_0x5983be['isAdded']={'userId':_0xe3043a}:'deletion'==_0x379f66&&(_0x5983be['isRemoved']={'userId':_0xe3043a})),0x0==_0x320f5e['length'])break;}return _0x439890;}['_refreshStartEndIndex'](_0x24bcf1){const _0x4cbe97=new Map();for(let _0xaacb9=0x0;_0xaacb9<_0x24bcf1['length'];_0xaacb9++)'text'===_0x24bcf1[_0xaacb9]['type']?(_0x24bcf1[_0xaacb9]['item']['startIndex']=_0xaacb9,_0x24bcf1[_0xaacb9]['item']['endIndex']=_0xaacb9):('elementStart'===_0x24bcf1[_0xaacb9]['type']?_0x24bcf1[_0xaacb9]['item']['startIndex']=_0xaacb9:'elementEnd'===_0x24bcf1[_0xaacb9]['type']&&(_0x24bcf1[_0xaacb9]['item']['endIndex']=_0xaacb9),_0x4cbe97['set'](_0x24bcf1[_0xaacb9]['id'],_0xaacb9));for(const _0x150396 of _0x4cbe97['values']())'elementStart'===_0x24bcf1[_0x150396]['type']?_0x24bcf1[_0x150396]['item']['endIndex']=_0x4cbe97['get'](_0x24bcf1[_0x150396]['pairId']):'elementEnd'===_0x24bcf1[_0x150396]['type']&&(_0x24bcf1[_0x150396]['item']['startIndex']=_0x4cbe97['get'](_0x24bcf1[_0x150396]['pairId']));}['_processTape'](_0x235eca){for(let _0x46dfa7=0x0;_0x46dfa7<_0x235eca['length'];_0x46dfa7++){if('elementStart'===_0x235eca[_0x46dfa7]['type'])_0x235eca[_0x46dfa7]['item']['startIndex']=_0x46dfa7;else{if('elementEnd'===_0x235eca[_0x46dfa7]['type']){_0x235eca[_0x46dfa7]['item']['endIndex']=_0x46dfa7;const _0x43e74a=_0x235eca[_0x46dfa7]['item']['startIndex'];_0x235eca[_0x43e74a]['pairId']=_0x235eca[_0x46dfa7]['id'],_0x235eca[_0x46dfa7]['pairId']=_0x235eca[_0x43e74a]['id'];}else _0x235eca[_0x46dfa7]['item']['startIndex']=_0x46dfa7,_0x235eca[_0x46dfa7]['item']['endIndex']=_0x46dfa7,_0x235eca[_0x46dfa7]['pairId']=null;}_0x235eca[_0x46dfa7]['markersStart']||(_0x235eca[_0x46dfa7]['markersStart']=[],_0x235eca[_0x46dfa7]['markersEnd']=[]);}}['_markInsertions'](_0x2df1bf,_0x568a22){const _0x2035a0=_0x2df1bf['filter'](_0x32b368=>!_0x32b368['isAdded']);for(let _0x526422=0x0;_0x526422<_0x568a22['length'];_0x526422++)_0x568a22[_0x526422]['isAdded']&&(_0x2035a0[_0x526422]['isAdded']=_0x568a22[_0x526422]['isAdded']);}['_getDiff'](_0xc718ae,_0x112f62=null){const _0x379197=this['repository']['getRevision'](_0xc718ae),_0x17189f=_0x112f62?this['repository']['getRevision'](_0x112f62):null,_0x4112aa=this['_getRevisionsRange'](_0x379197,_0x17189f),_0x523ef3=_0x4112aa[_0x4112aa['length']-0x1],_0x191fdf=new Map(),_0x548587={'model':{},'attributes':{},'changes':[]},_0x1a239c=new Set(),_0x75c1be=new Map();for(let _0x3a2c42=_0x4112aa['length']-0x1;_0x3a2c42>=0x0;_0x3a2c42--){const _0x453d4=_0x4112aa[_0x3a2c42];for(const _0x4c458d of Object['keys'](_0x453d4['diffData']))if(_0x453d4['diffData'][_0x4c458d]['attachChange']){const _0x3c668f=_0x453d4['diffData'][_0x4c458d]['attachChange'];_0x3c668f['isAttached']?(_0x1a239c['add'](_0x4c458d),_0x75c1be['has'](_0x4c458d)&&_0x75c1be['get'](_0x4c458d)['userId']==_0x3c668f['userId']?_0x75c1be['delete'](_0x4c458d):_0x75c1be['set'](_0x4c458d,_0x3c668f)):_0x75c1be['has'](_0x4c458d)?(_0x1a239c['delete'](_0x4c458d),_0x75c1be['delete'](_0x4c458d)):(_0x1a239c['add'](_0x4c458d),_0x75c1be['set'](_0x4c458d,_0x3c668f));}else _0x1a239c['add'](_0x4c458d);}for(const _0x4cbac8 of _0x1a239c){const _0x229723=_0x75c1be['has'](_0x4cbac8)&&!_0x75c1be['get'](_0x4cbac8)['isAttached'];let _0x3cd250=_0x229723?_0x4112aa['length']-0x1:0x0;const _0x2f4a65=_0x229723?-0x1:0x1;for(;_0x4112aa[_0x3cd250];){const _0x1752ac=_0x4112aa[_0x3cd250];if(_0x1752ac['diffData'][_0x4cbac8]){const _0x22d956=_0x229723?_0x1752ac['diffData'][_0x4cbac8]['attributesBefore']:_0x1752ac['diffData'][_0x4cbac8]['attributesAfter'];_0x548587['attributes'][_0x4cbac8]=_0x22d956?_0x552142(_0x22d956):{};break;}_0x3cd250+=_0x2f4a65;}}for(const _0x19ac4c of _0x4112aa){_0x19ac4c['model']={};for(const _0x1d8cf1 of _0x19ac4c['authors'])_0x191fdf['set'](_0x1d8cf1['id'],_0x1d8cf1);for(const _0x32eb91 of _0x1a239c){const _0x347608=_0x19ac4c['diffData'][_0x32eb91]?_0x19ac4c['diffData'][_0x32eb91]['insertions']:'[]',_0x1d2251=_0x19ac4c['diffData'][_0x32eb91]?_0x19ac4c['diffData'][_0x32eb91]['deletions']:'[]';_0x19ac4c['model'][_0x32eb91]={'insertions':this['_utils']['_makeModelFromViewString'](_0x347608),'deletions':this['_utils']['_makeModelFromViewString'](_0x1d2251)};}}for(const _0x19b528 of _0x1a239c){let _0x5b29a4=null,_0x3b4fae=0x0;const _0x42cd57=new Map(Array['from'](_0x379197['model'][_0x19b528]['insertions']['markers'])['filter'](([_0x8d6105])=>!_0x8d6105['startsWith']('revision:')));let _0x4ce6a3=0x0;for(const _0x524619 of _0x4112aa){const _0x54250f=this['_makeTape'](_0x524619['model'][_0x19b528]['insertions']);_0x524619==_0x379197?(_0x5b29a4=_0x54250f,_0x3b4fae=_0x5b29a4['length'],_0x5b29a4['forEach'](_0x39297b=>{_0x39297b['id']=_0x4ce6a3++;}),this['_processTape'](_0x5b29a4)):this['_markInsertions'](_0x5b29a4,_0x54250f);const _0x2b55ee=_0x5b29a4['filter'](_0x37851c=>!_0x37851c['isAdded'])['map'](_0x3c9f7d=>_0x3c9f7d['id']);let _0x24957f=0x0;const _0x3af3bf=this['_makeTape'](_0x524619['model'][_0x19b528]['deletions']);_0x3af3bf['forEach'](_0x20783d=>{_0x20783d['isRemoved']?_0x20783d['id']=_0x3b4fae++:_0x20783d['id']=_0x2b55ee[_0x24957f++];}),this['_processTape'](_0x3af3bf),this['_setDistance'](_0x5b29a4,'isAdded'),this['_setDistance'](_0x3af3bf,'isRemoved'),_0x524619==_0x379197&&this['_markMarkers'](_0x5b29a4,_0x42cd57),_0x5b29a4=this['_joinTapes'](_0x5b29a4,_0x3af3bf),this['_refreshStartEndIndex'](_0x5b29a4),this['_setDistance'](_0x5b29a4,'isRemoved');}_0x5b29a4=_0x5b29a4['filter'](_0x59bbb1=>!(_0x59bbb1['isAdded']&&_0x59bbb1['isRemoved']));const _0x17b845=new Map(_0x523ef3['model'][_0x19b528]['deletions']['markers']),_0x7426f3=new Set(_0x42cd57['keys']());for(const _0x349018 of _0x17b845['keys']())_0x7426f3['delete'](_0x349018);this['_markSuggestions'](_0x5b29a4,_0x7426f3),this['_fixObsoleteTags'](_0x5b29a4),_0x5b29a4=this['_removeMissingPairs'](_0x5b29a4),_0x5b29a4=this['_markMismatchedRemovedTags'](_0x5b29a4),_0x5b29a4=this['_removeUnsupportedChanges'](_0x5b29a4);const {root:_0x5bbd01,changes:_0x5a0d07}=this['_makeModelFromTape'](_0x5b29a4,_0x191fdf,_0x19b528);_0x548587['model'][_0x19b528]=_0x5bbd01;const _0x4a367d=_0x75c1be['get'](_0x19b528);if(_0x4a367d){const _0x1002bc=_0x191fdf['get'](_0x4a367d['userId']),_0x583434=new G({'author':_0x1002bc,'type':_0x4a367d['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x19b528});_0x5a0d07['unshift'](_0x583434),_0x548587['attributes'][_0x19b528]['revisionHistoryAttachChange']=_0x583434['id'];}_0x548587['changes']=_0x548587['changes']['concat'](_0x5a0d07);}return _0x548587;}['_markMarkers'](_0x7fbbca,_0x4f6732){for(let _0xdd3ac9=0x0;_0xdd3ac9<_0x7fbbca['length'];_0xdd3ac9++)for(const [_0x8a266d,_0x8fe588]of _0x4f6732)!_0x8fe588['isCollapsed']&&_0x8fe588['start']['isEqual'](_0x7fbbca[_0xdd3ac9]['previousPosition'])&&_0x7fbbca[_0xdd3ac9]['markersStart']['push'](_0x8a266d),_0x8fe588['end']['isEqual'](_0x7fbbca[_0xdd3ac9]['nextPosition'])&&_0x7fbbca[_0xdd3ac9]['markersEnd']['push'](_0x8a266d);}['_joinTapes'](_0x5d9879,_0x159a7d){let _0x182c65=[],_0x36879c=0x0,_0x10b1c2=0x0;for(;_0x36879c<_0x5d9879['length']||_0x10b1c2<_0x159a7d['length'];){const _0xa5fb6f=_0x5d9879[_0x36879c]||{},_0x356f83=_0x159a7d[_0x10b1c2]||{};if(_0xa5fb6f['id']==_0x356f83['id'])_0x36879c++,_0x10b1c2++,_0x182c65['push'](_0xa5fb6f);else{if(_0x356f83['isRemoved']&&_0xa5fb6f['isAdded']){const {commonTape:_0x40ded2,iEnd:_0x179a8f,jEnd:_0x5cc745}=this['_threeWayMerge'](_0x5d9879,_0x36879c,_0x159a7d,_0x10b1c2);_0x182c65=_0x182c65['concat'](_0x40ded2),_0x36879c=_0x179a8f,_0x10b1c2=_0x5cc745;}else _0x356f83['isRemoved']?(_0x10b1c2++,_0x182c65['push'](_0x356f83)):(_0x36879c++,_0x182c65['push'](_0xa5fb6f));}}return _0x182c65;}['_markSuggestions'](_0x31b139,_0x21c0ef){const _0x6b998a=[];for(let _0x214448=0x0;_0x214448<_0x31b139['length'];_0x214448++){for(let _0x29abfc=0x0;_0x29abfc<_0x31b139[_0x214448]['markersStart']['length'];_0x29abfc++){const _0x3661af=_0x31b139[_0x214448]['markersStart'][_0x29abfc];if(!_0x21c0ef['has'](_0x3661af))continue;const {group:_0xcce068,type:_0x495388,authorId:_0x32cc37}=_0x25a220(_0x3661af);'revision-suggestion'!=_0xcce068||'insertion'!=_0x495388&&'deletion'!=_0x495388||(_0x6b998a['unshift']({'type':_0x495388,'name':_0x3661af,'userId':_0x32cc37}),_0x31b139[_0x214448]['markersStart']['splice'](_0x29abfc,0x1),_0x29abfc--);}_0x567763(_0x31b139[_0x214448]);for(let _0xff3f36=0x0;_0xff3f36<_0x31b139[_0x214448]['markersEnd']['length'];_0xff3f36++){const _0xfbd704=_0x31b139[_0x214448]['markersEnd'][_0xff3f36];if(!_0x21c0ef['has'](_0xfbd704))continue;const {group:_0x50d53f,type:_0xf08e0f}=_0x25a220(_0xfbd704);if('revision-suggestion'!=_0x50d53f||'insertion'!=_0xf08e0f&&'deletion'!=_0xf08e0f)continue;_0x31b139[_0x214448]['markersEnd']['splice'](_0xff3f36,0x1),_0xff3f36--;const _0x1e7d8c=_0x6b998a['findIndex'](_0x1e1752=>_0x1e1752['name']==_0xfbd704);_0x1e7d8c>-0x1&&_0x6b998a['splice'](_0x1e7d8c,0x1);}}function _0x25a220(_0x50fc67){const _0x206a08=_0x50fc67['split'](':');return{'group':_0x206a08[0x0],'type':_0x206a08[0x1],'subType':_0x206a08['length']>=0x5?_0x206a08[0x2]:null,'id':_0x206a08['length']<0x5?_0x206a08[0x2]:_0x206a08[0x3],'authorId':_0x206a08['length']<0x5?_0x206a08[0x3]:_0x206a08[0x4],'markerCount':0x6==_0x206a08['length']?_0x206a08[0x5]:null};}function _0x567763(_0x145d2f){for(let _0x5bd391=0x0;_0x5bd391<_0x6b998a['length'];_0x5bd391++){if(_0x145d2f['isAdded']&&'insertion'==_0x6b998a[_0x5bd391]['type']&&_0x145d2f['isAdded']['userId']==_0x6b998a[_0x5bd391]['userId'])return _0x145d2f['isAddSuggestion']=_0x6b998a[_0x5bd391],void delete _0x145d2f['isAdded'];if(!_0x145d2f['isAdded']&&!_0x145d2f['isRemoved']&&'deletion'==_0x6b998a[_0x5bd391]['type'])return void(_0x145d2f['isRemoveSuggestion']=_0x6b998a[_0x5bd391]);}}}['_setDistance'](_0x560095,_0xd786dc){let _0x12f441=0x0,_0x17a436=!0x1;const _0x3e9671=new Map();for(const _0x27242c of _0x560095)_0x27242c[_0xd786dc]?_0x17a436&&(_0x12f441++,_0x17a436=!0x1):(_0x12f441++,_0x17a436=!0x0),_0x3e9671['set'](_0x27242c['id'],_0x12f441);for(let _0x58d3d6=0x0;_0x58d3d6<_0x560095['length'];_0x58d3d6++){if('isRemoved'==_0xd786dc&&_0x560095[_0x58d3d6]['isAdded']||'isAdded'==_0xd786dc&&_0x560095[_0x58d3d6]['isRemoved'])continue;if('text'==_0x560095[_0x58d3d6]['type']){_0x560095[_0x58d3d6]['distance']=0x0;continue;}const _0x1b664f=_0x3e9671['get'](_0x560095[_0x58d3d6]['pairId']),_0x184821=_0x3e9671['get'](_0x560095[_0x58d3d6]['id']);_0x560095[_0x58d3d6]['distance']=_0x1b664f-_0x184821;}}['_getRevisionsRange'](_0x8a43d,_0x318911,_0x184cac=!0x1){const _0x23c3f2=[];let _0x3a4b6e=this['repository']['getIndex'](_0x8a43d),_0x409e0b=this['repository']['getIndex'](_0x318911);for(-0x1==_0x409e0b&&(_0x409e0b=this['repository']['_revisions']['length'],_0x184cac=!0x1);_0x3a4b6e<_0x409e0b;)_0x23c3f2['push'](this['repository']['getRevision'](_0x3a4b6e)),_0x3a4b6e++;return _0x184cac&&_0x23c3f2['push'](this['repository']['getRevision'](_0x3a4b6e)),_0x23c3f2;}['_threeWayMerge'](_0x20fe16,_0x4c5334,_0x378155,_0x64f143){const _0x5df595=this['editor']['model']['schema'];let _0x589711=_0x4c5334;for(;_0x20fe16[_0x589711]&&_0x20fe16[_0x589711]['isAdded'];)_0x589711++;let _0x1a9a2b=_0x64f143;for(;_0x378155[_0x1a9a2b]&&_0x378155[_0x1a9a2b]['isRemoved'];)_0x1a9a2b++;_0x285321(_0x20fe16,_0x4c5334,_0x589711),_0x285321(_0x378155,_0x64f143,_0x1a9a2b);const _0x200479=_0x378155['slice'](_0x64f143,_0x1a9a2b)['concat'](_0x20fe16['slice'](_0x4c5334,_0x589711));return _0x200479['sort']((_0x5b93c1,_0x3d5fcf)=>_0x5b93c1['side']!=_0x3d5fcf['side']?_0x5b93c1['side']-_0x3d5fcf['side']:_0x5b93c1['level']!=_0x3d5fcf['level']?_0x5b93c1['level']-_0x3d5fcf['level']:_0x5b93c1['distance']!=_0x3d5fcf['distance']?_0x3d5fcf['distance']-_0x5b93c1['distance']:!!_0x5b93c1['isAdded']!=!!_0x3d5fcf['isAdded']?-0x1==_0x5b93c1['side']||0x0==_0x5b93c1['side']?_0x5b93c1['isAdded']?-0x1:0x1:_0x5b93c1['isAdded']?0x1:-0x1:_0x5b93c1['index']-_0x3d5fcf['index']),{'commonTape':_0x200479,'iEnd':_0x589711,'jEnd':_0x1a9a2b};function _0x285321(_0x4bb8b9,_0x203104,_0x5deb0a){let _0x3b46b0=-0x1,_0x55be97=Number['POSITIVE_INFINITY'],_0x2b57ed=!0x0;for(let _0x318f63=_0x203104;_0x318f63<_0x5deb0a;_0x318f63++)if(_0x5df595['isInline'](_0x4bb8b9[_0x318f63]['item'])||(_0x2b57ed=!0x1),_0x4bb8b9[_0x318f63]['item']['startIndex']<_0x203104&&(_0x3b46b0=_0x318f63),_0x4bb8b9[_0x318f63]['item']['endIndex']>=_0x5deb0a){_0x55be97=_0x318f63;break;}_0x2b57ed&&(_0x3b46b0=_0x5deb0a-0x1);for(let _0x4632c8=_0x203104;_0x4632c8<_0x5deb0a;_0x4632c8++)_0x4bb8b9[_0x4632c8]['side']=_0x4632c8<=_0x3b46b0?-0x1:_0x4632c8<_0x55be97?0x0:0x1,_0x4bb8b9[_0x4632c8]['index']=_0x4632c8;let _0x2a8b75=0x0;for(let _0x2c416c=_0x203104;_0x2c416c<=_0x3b46b0;_0x2c416c++)0x0==_0x4bb8b9[_0x2c416c]['distance']?_0x4bb8b9[_0x2c416c]['level']=_0x2a8b75:(_0x2a8b75++,_0x4bb8b9[_0x2c416c]['level']=_0x2a8b75,_0x2a8b75++);for(let _0x10197a=_0x203104;_0x10197a<_0x5deb0a;_0x10197a++)0x0==_0x4bb8b9[_0x10197a]['side']&&(_0x4bb8b9[_0x10197a]['level']=_0x2a8b75);_0x2a8b75=0x0;for(let _0x1caa74=_0x5deb0a-0x1;_0x1caa74>=_0x55be97;_0x1caa74--)0x0==_0x4bb8b9[_0x1caa74]['distance']?_0x4bb8b9[_0x1caa74]['level']=_0x2a8b75:(_0x2a8b75--,_0x4bb8b9[_0x1caa74]['level']=_0x2a8b75,_0x2a8b75--);}}['_fixObsoleteTags'](_0xc8e40f){const _0x52de6e=new Map(),_0x4e0483=this['editor']['model']['schema'];for(let _0x385ed0=0x1;_0x385ed0<_0xc8e40f['length'];_0x385ed0++){let _0x1f5634,_0x1dd046,_0x55fb1c;const _0x45fba3=_0xc8e40f[_0x385ed0],_0x2c7c5b=_0xc8e40f[_0x385ed0-0x1];if('text'==_0x45fba3['type'])continue;if(_0x45fba3['type']!=_0x2c7c5b['type'])continue;if(!_0x4e0483['isBlock'](_0x2c7c5b['item'])||_0x4e0483['isLimit'](_0x2c7c5b['item']))continue;if(!_0x4e0483['isBlock'](_0x45fba3['item'])||_0x4e0483['isLimit'](_0x45fba3['item']))continue;if((_0xc8e40f[_0x385ed0]['isAdded']||_0xc8e40f[_0x385ed0]['isAddSuggestion'])&&_0xc8e40f[_0x385ed0-0x1]['isRemoved'])_0x1f5634=_0xc8e40f[_0x385ed0],_0x1dd046=_0xc8e40f[_0x385ed0-0x1],_0x55fb1c=_0x385ed0-0x1;else{if(!_0xc8e40f[_0x385ed0]['isRemoved']||!_0xc8e40f[_0x385ed0-0x1]['isAdded']&&!_0xc8e40f[_0x385ed0-0x1]['isAddSuggestion'])continue;_0x1f5634=_0xc8e40f[_0x385ed0-0x1],_0x1dd046=_0xc8e40f[_0x385ed0],_0x55fb1c=_0x385ed0;}const _0x191ec4=_0x1f5634['level']==_0x1dd046['level'],_0x2ad19a=Math['abs'](_0x1f5634['level'])<Math['abs'](_0x1dd046['level'])&&0x0==_0x1dd046['distance'];(_0x191ec4||_0x2ad19a)&&(_0x52de6e['set'](_0x1dd046['id'],_0x1f5634['id']),_0xc8e40f['splice'](_0x55fb1c,0x1),_0x385ed0--,_0x1f5634['isAdded']=!0x1);}for(let _0xa226ec=0x0;_0xa226ec<_0xc8e40f['length'];_0xa226ec++)_0x52de6e['has'](_0xc8e40f[_0xa226ec]['pairId'])&&(_0xc8e40f[_0xa226ec]['pairId']=_0x52de6e['get'](_0xc8e40f[_0xa226ec]['pairId']));}['_removeMissingPairs'](_0x36bad1){const _0x4a1f34=new Set(_0x36bad1['map'](_0xfb0555=>_0xfb0555['id']));for(let _0xb8262e=0x0;_0xb8262e<_0x36bad1['length'];_0xb8262e++)_0x4a1f34['has'](_0x36bad1[_0xb8262e]['pairId'])||0x0==_0x36bad1[_0xb8262e]['distance']||(_0x36bad1[_0xb8262e]['isIncorrect']=!0x0);return _0x36bad1['filter'](_0x915b17=>!_0x915b17['isIncorrect']);}['_markMismatchedRemovedTags'](_0x276ae8){const _0x4495c1=new Set();for(let _0x20be27=0x0;_0x20be27<_0x276ae8['length'];_0x20be27++){if(_0x4495c1['has'](_0x276ae8[_0x20be27]['id'])&&_0x276ae8[_0x20be27]['isRemoved']&&(_0x276ae8[_0x20be27]['isIncorrect']=!0x0),_0x276ae8[_0x20be27]['isIncorrect'])continue;if(0x0==_0x276ae8[_0x20be27]['distance'])continue;if('elementStart'!=_0x276ae8[_0x20be27]['type'])continue;if(null==_0x276ae8[_0x20be27]['pairId'])continue;let _0x3bbfc4=_0x20be27+0x1,_0x40d159=0x0;for(;_0x276ae8[_0x3bbfc4]['id']!=_0x276ae8[_0x20be27]['pairId'];)'elementStart'==_0x276ae8[_0x3bbfc4]['type']?_0x40d159++:'elementEnd'==_0x276ae8[_0x3bbfc4]['type']&&_0x40d159--,_0x3bbfc4++;if(0x0!=_0x40d159){if(_0x276ae8[_0x20be27]['isRemoved'])_0x276ae8[_0x20be27]['isIncorrect']=!0x0;else{for(;_0x3bbfc4!=_0x20be27;)_0x276ae8[_0x3bbfc4]['isRemoved']&&0x0!=_0x276ae8[_0x3bbfc4]['distance']&&(_0x276ae8[_0x3bbfc4]['isIncorrect']=!0x0,_0x4495c1['add'](_0x276ae8[_0x3bbfc4]['pairId'])),_0x3bbfc4--;}}}return _0x276ae8['filter'](_0x4de881=>!_0x4de881['isIncorrect']);}['_removeUnsupportedChanges'](_0x13f2d2){const _0x108192=this['editor']['model']['schema'];for(let _0x10911a=0x0;_0x10911a<_0x13f2d2['length'];_0x10911a++){if(!(_0x13f2d2[_0x10911a]['isAdded']||_0x13f2d2[_0x10911a]['isAddSuggestion']||_0x13f2d2[_0x10911a]['isRemoved']||_0x13f2d2[_0x10911a]['isRemoveSuggestion']))continue;if(0x0==_0x13f2d2[_0x10911a]['distance'])continue;const _0x4ec141=_0x13f2d2[_0x10911a]['item'];_0x108192['isBlock'](_0x4ec141)||_0x108192['isLimit'](_0x4ec141)||(_0x13f2d2[_0x10911a]['isAdded']&&delete _0x13f2d2[_0x10911a]['isAdded'],_0x13f2d2[_0x10911a]['isAddSuggestion']&&delete _0x13f2d2[_0x10911a]['isAddSuggestion'],_0x13f2d2[_0x10911a]['isRemoveSuggestion']&&delete _0x13f2d2[_0x10911a]['isRemoveSuggestion'],_0x13f2d2[_0x10911a]['isRemoved']&&(_0x13f2d2[_0x10911a]['isIncorrect']=!0x0));}return _0x13f2d2['filter'](_0x391c04=>!_0x391c04['isIncorrect']);}['_makeModelFromTape'](_0x37d5d1,_0xf96e9a,_0x1b22a6){const _0x246d3d=new at(),_0x505eeb=[],_0x39e28c=new Map(),_0x30eb23=this['editor']['model'],_0x426421=_0x30eb23['schema'],_0x559605=[_0x246d3d],_0x60cacc={},_0x56a1af={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x579a06=null;const _0x4ac99=[0x0];for(let _0x573661=0x0;_0x573661<_0x37d5d1['length'];_0x573661++)if('elementStart'===_0x37d5d1[_0x573661]['type']){_0x37d5d1[_0x573661]['previousPosition']=_0x30eb23['createPositionFromPath'](_0x246d3d,_0x4ac99);const _0x4205c4=new nt(_0x37d5d1[_0x573661]['item']['name'],_0x37d5d1[_0x573661]['item']['getAttributes']());_0x559605[0x0]['_appendChild'](_0x4205c4),_0x4ac99['push'](0x0),_0x559605['unshift'](_0x4205c4),_0x37d5d1[_0x573661]['nextPosition']=_0x30eb23['createPositionFromPath'](_0x246d3d,_0x4ac99);}else'elementEnd'===_0x37d5d1[_0x573661]['type']?(_0x559605['shift'](),_0x37d5d1[_0x573661]['previousPosition']=_0x30eb23['createPositionFromPath'](_0x246d3d,_0x4ac99),_0x4ac99['pop'](),_0x4ac99[_0x4ac99['length']-0x1]++,_0x37d5d1[_0x573661]['nextPosition']=_0x30eb23['createPositionFromPath'](_0x246d3d,_0x4ac99)):(_0x37d5d1[_0x573661]['previousPosition']=_0x30eb23['createPositionFromPath'](_0x246d3d,_0x4ac99),_0x579a06?_0x579a06['_data']+=_0x37d5d1[_0x573661]['item']['data']:_0x579a06=new ht(_0x37d5d1[_0x573661]['item']['data'],_0x37d5d1[_0x573661]['item']['getAttributes']()),_0x37d5d1[_0x573661+0x1]&&'text'===_0x37d5d1[_0x573661+0x1]['type']&&_0x366523(_0x579a06,_0x37d5d1[_0x573661+0x1]['item'])||(_0x559605[0x0]['_appendChild'](_0x579a06),_0x579a06=null),_0x4ac99[_0x4ac99['length']-0x1]+=_0x37d5d1[_0x573661]['item']['offsetSize'],_0x37d5d1[_0x573661]['nextPosition']=_0x30eb23['createPositionFromPath'](_0x246d3d,_0x4ac99));for(let _0xafac5d=0x0;_0xafac5d<_0x37d5d1['length'];_0xafac5d++){const _0x112ee4=_0x37d5d1[_0xafac5d]['previousPosition'],_0x11fb4d=_0x37d5d1[_0xafac5d]['nextPosition'];for(const _0x55a178 of _0x37d5d1[_0xafac5d]['markersStart'])_0x39e28c['set'](_0x55a178,{'start':_0x112ee4,'end':null});_0x3cf9bc('isRemoveSuggestion',_0xafac5d,_0x112ee4,_0x11fb4d),_0x3cf9bc('isAddSuggestion',_0xafac5d,_0x112ee4,_0x11fb4d),_0x3cf9bc('isRemoved',_0xafac5d,_0x112ee4,_0x11fb4d),_0x3cf9bc('isAdded',_0xafac5d,_0x112ee4,_0x11fb4d);for(const _0x110725 of _0x37d5d1[_0xafac5d]['markersEnd']){const _0x5b4fff=_0x39e28c['get'](_0x110725);_0x5b4fff?_0x5b4fff['end']=_0x11fb4d:_0x39e28c['set'](_0x110725,{'start':_0x11fb4d,'end':_0x11fb4d});}}for(const [_0x17c237,_0x47ea01]of _0x39e28c){const _0x27f77d=this['editor']['model']['createRange'](_0x47ea01['start'],_0x47ea01['end']);_0x246d3d['markers']['set'](_0x17c237,_0x27f77d);}return _0x505eeb['sort']((_0x5afaad,_0x4805a6)=>{const _0x3d2e95=_0x246d3d['markers']['get']('revision:'+_0x5afaad['id']),_0x2fbee9=_0x246d3d['markers']['get']('revision:'+_0x4805a6['id']);return _0x3d2e95['start']['isBefore'](_0x2fbee9['start'])?-0x1:_0x3d2e95['start']['isAfter'](_0x2fbee9['start'])?0x1:_0x3d2e95['end']['isBefore'](_0x2fbee9['end'])?-0x1:_0x3d2e95['end']['isAfter'](_0x2fbee9['end'])?0x1:'add'===_0x5afaad['type']?-0x1:0x1;}),{'root':_0x246d3d,'changes':_0x505eeb};function _0x3cf9bc(_0x762768,_0x2b4094,_0x2afdbf,_0x420463){const _0x452f5b=!!_0x37d5d1[_0x2b4094][_0x762768],_0x2419e1=_0x452f5b?_0x37d5d1[_0x2b4094][_0x762768]['userId']:null,_0x350cd4=_0x2b4094===_0x37d5d1['length']-0x1,_0x1d7cd0=_0x56a1af[_0x762768][0x0],_0x4ec11c=_0x426421['isObject'](_0x37d5d1[_0x2b4094]['item']);!_0x60cacc[_0x762768]&&_0x452f5b?_0x60cacc[_0x762768]={'start':_0x2afdbf,'tapeItem':_0x37d5d1[_0x2b4094],'userId':_0x2419e1,'type':_0x762768}:_0x60cacc[_0x762768]&&!_0x452f5b?(_0x60cacc[_0x762768]['end']=_0x2afdbf,_0x14f604(_0x60cacc[_0x762768]),_0x60cacc[_0x762768]=null):_0x60cacc[_0x762768]&&_0x452f5b&&_0x60cacc[_0x762768]['userId']!==_0x2419e1&&(_0x60cacc[_0x762768]['end']=_0x2afdbf,_0x1d7cd0&&_0x1d7cd0['userId']===_0x60cacc[_0x762768]['userId']||_0x14f604(_0x60cacc[_0x762768]),_0x60cacc[_0x762768]={'start':_0x2afdbf,'tapeItem':_0x37d5d1[_0x2b4094],'userId':_0x2419e1,'type':_0x762768}),_0x60cacc[_0x762768]&&_0x4ec11c&&('elementStart'!==_0x37d5d1[_0x2b4094]['type']||_0x1d7cd0&&_0x1d7cd0['userId']===_0x2419e1||_0x56a1af[_0x762768]['unshift']({'userId':_0x2419e1,'object':_0x37d5d1[_0x2b4094]['item'],'change':_0x60cacc[_0x762768]}),'elementEnd'===_0x37d5d1[_0x2b4094]['type']&&_0x1d7cd0&&_0x1d7cd0['object']===_0x37d5d1[_0x2b4094]['item']&&(_0x56a1af[_0x762768]['shift'](),_0x60cacc[_0x762768]=_0x1d7cd0['change'])),_0x60cacc[_0x762768]&&_0x350cd4&&(_0x60cacc[_0x762768]['end']=_0x420463,_0x14f604(_0x60cacc[_0x762768]),_0x60cacc[_0x762768]=null);}function _0x14f604({start:_0x39cf45,end:_0x5c7515,tapeItem:_0x5752fe,userId:_0x28c275,type:_0x4a59e0}){const _0x350e9a=_0x5752fe['item'],_0x2a8b5b=_0x30eb23['schema']['isBlock'](_0x350e9a)&&!_0x30eb23['schema']['isLimit'](_0x350e9a),_0x13f6a8=_0x39cf45['nodeAfter']==_0x5c7515['parent']&&_0x5c7515['isAtStart'];if(_0x2a8b5b&&_0x13f6a8)return;const _0x156708=_0x30eb23['createRange'](_0x39cf45,_0x5c7515),_0x1bc71e=_0xf96e9a['get'](_0x28c275),_0x3faf04=new G({'author':_0x1bc71e,'type':'isAdded'==_0x4a59e0||'isAddSuggestion'==_0x4a59e0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4a59e0||'isRemoveSuggestion'==_0x4a59e0},'createdAt':new Date(),'rootName':_0x1b22a6});_0x505eeb['push'](_0x3faf04),_0x246d3d['markers']['set']('revision:'+_0x3faf04['id'],_0x156708);}function _0x366523(_0x39c518,_0x2db192){const _0x4fae5e=_0x39c518['getAttributes'](),_0x57872e=_0x2db192['getAttributes']();for(const _0x52978d of _0x4fae5e){if(_0x52978d[0x1]!==_0x2db192['getAttribute'](_0x52978d[0x0]))return!0x1;_0x57872e['next']();}return _0x57872e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x176e36=>{const _0x568b32=_0x176e36['markerName']['split'](':')[0x1],_0x2ca620=this['_getChangeFromId'](_0x568b32);if(!_0x2ca620)return null;const _0x7f152e='add'==_0x2ca620['type']?'insertion':'deletion',_0x530d5e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x7f152e];return _0x2ca620['data']['isSuggestion']&&_0x530d5e['push']('ck-suggestion-marker-'+_0x7f152e+'-new'),this['activeChange']==_0x2ca620&&_0x530d5e['push']('ck-suggestion-marker--active'),{'classes':_0x530d5e,'attributes':{'data-change-id':_0x568b32}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x39fe52=>{_0x39fe52['on']('element:pre',(_0x289d72,_0x5ae9ad,_0x4e40fa)=>{const _0x26af43=_0x5ae9ad['viewItem']['getChild'](0x0);if(!_0x26af43||!_0x26af43['is']('element','code'))return;if(!_0x4e40fa['consumable']['consume'](_0x26af43,{'attributes':['vid_start','vid_end']}))return;const _0x5cc43a=_0x5ae9ad['modelRange']['start']['nodeAfter'];_0x4e40fa['writer']['setAttribute']('vid_start',_0x26af43['getAttribute']('vid_start'),_0x5cc43a),_0x4e40fa['writer']['setAttribute']('vid_end',_0x26af43['getAttribute']('vid_end'),_0x5cc43a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5660ae=>{_0x5660ae['on']('element',(_0x9b11ff,_0x5bbf81,_0x22854f)=>{if(!_0x22854f['consumable']['consume'](_0x5bbf81['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5bbf81['modelRange']['isCollapsed'])return;const _0x45d775=_0x5bbf81['modelRange']['start']['nodeAfter'];_0x45d775['hasAttribute']('vid_start')||_0x45d775['hasAttribute']('vid')||(_0x22854f['writer']['setAttribute']('vid_start',_0x5bbf81['viewItem']['getAttribute']('vid_start'),_0x45d775),_0x22854f['writer']['setAttribute']('vid_end',_0x5bbf81['viewItem']['getAttribute']('vid_end'),_0x45d775));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x545115=>_0x545115['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xfb3b97,[,_0x3c9cc9])=>{['vid_start','vid_end','vid']['includes'](_0x3c9cc9)&&(_0xfb3b97['return']=!0x0,_0xfb3b97['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5e951c=>{_0x5e951c['on']('attribute:vid',(_0x3f249b,_0x27a130,_0x3a6100)=>{if('\x20'!=_0x27a130['item']['data']||_0x27a130['item']['parent']['maxOffset']>0x1)return;if(!_0x3a6100['consumable']['consume'](_0x27a130['item'],_0x3f249b['name']))return;const _0x3da556=_0x3a6100['writer'],_0x155564=_0x3a6100['mapper']['toViewRange'](_0x27a130['range']);_0x3da556['wrap'](_0x155564,_0x3da556['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x647369){const _0x3e5c17=_0x647369['plugins']['get']('RevisionViewer');return(_0x437143,_0x35d816,_0x37249e)=>{const _0x2f47c0=_0x35d816['markerName']['split'](':')[0x1],_0x265eef=_0x3e5c17['_getChangeFromId'](_0x2f47c0);if(!_0x265eef)return null;const _0x4f9b93='add'==_0x265eef['type']?'split':'merge';if(!_0x37249e['consumable']['test'](_0x35d816['markerRange'],_0x437143['name']))return;const _0x239a35=_0x35d816['markerRange']['getWalker'](),_0x213a95=_0x35d816['markerRange']['start'],_0x20b31e=_0x647369['model']['schema'];let _0x20b3cf=null,_0x40ac1d=null,_0x11dfef=!0x1,_0xd54101=!0x1;for(const _0x2c87cf of _0x239a35){const _0x35f323=_0x2c87cf['item'];_0x11dfef=_0x11dfef||_0x20b31e['isContent'](_0x35f323);const _0x183909=_0x37249e['mapper']['toViewElement'](_0x35f323);if(_0x183909&&_0x183909['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2c87cf['type']&&(_0x20b31e['isBlock'](_0x35f323)&&!_0x20b31e['isLimit'](_0x35f323)&&(_0x35f323['nextSibling']||_0x213a95['isAtEnd']?_0x20b3cf&&_0x20b3cf['parent']==_0x35f323||(_0x20b3cf=_0x35f323,_0x3ef081(_0x2c87cf['previousPosition']),_0xd54101=!0x0):_0x40ac1d=_0x40ac1d||_0x2c87cf['previousPosition']));}function _0x3ef081(_0x2fc9e5){const _0x1d70e4=_0x37249e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f9b93}),_0x3bc257=_0x37249e['mapper']['toViewPosition'](_0x2fc9e5);_0x265eef['data']['isSuggestion']&&_0x37249e['writer']['addClass']('ck-suggestion-marker-'+_0x4f9b93+'-new',_0x1d70e4),_0x3e5c17['activeChange']==_0x265eef&&_0x37249e['writer']['addClass']('ck-suggestion-marker--active',_0x1d70e4),_0x37249e['writer']['insert'](_0x3bc257,_0x1d70e4),_0x37249e['mapper']['bindElementToMarker'](_0x1d70e4,_0x35d816['markerName']);}_0x11dfef||_0xd54101||!_0x40ac1d||_0x3ef081(_0x40ac1d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x40ec2d,_0x20890d,_0x1b8df1)=>{const _0x3e88cd=_0x1b8df1['mapper']['markerNameToElements'](_0x20890d['markerName']);if(_0x3e88cd){for(const _0x2a7ff0 of _0x3e88cd)(_0x2a7ff0['hasClass']('ck-suggestion-marker-split')||_0x2a7ff0['hasClass']('ck-suggestion-marker-merge'))&&(_0x1b8df1['mapper']['unbindElementFromMarkerName'](_0x2a7ff0,_0x20890d['markerName']),_0x1b8df1['writer']['remove'](_0x2a7ff0));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x204d83,_0x418226,_0x2ea7e2)=>{const _0x266860=_0x418226['markerName']['split'](':')[0x1],_0x165a43=this['_getChangeFromId'](_0x266860);if(!_0x165a43)return null;const _0x403f96='add'==_0x165a43['type']?'split':'merge';if(_0x2ea7e2['consumable']['test'](_0x418226['markerRange'],_0x204d83['name']))for(const _0x33881b of _0x418226['markerRange']['getItems']()){if(!_0x33881b['is']('element','softBreak'))continue;const _0xbeb8d3=_0x2ea7e2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x403f96}),_0x3af3d2=_0x2ea7e2['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x33881b));_0x165a43['data']['isSuggestion']&&_0x2ea7e2['writer']['addClass']('ck-suggestion-marker-'+_0x403f96+'-new',_0xbeb8d3),this['activeChange']==_0x165a43&&_0x2ea7e2['writer']['addClass']('ck-suggestion-marker--active',_0xbeb8d3),_0x2ea7e2['writer']['insert'](_0x3af3d2,_0xbeb8d3),_0x2ea7e2['mapper']['bindElementToMarker'](_0xbeb8d3,_0x418226['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x18d045=>{for(const _0x2c16e7 of this['editor']['model']['document']['getRootNames']()){const _0x177593=this['editor']['model']['document']['getRoot'](_0x2c16e7),_0x4965e2=this['editor']['editing']['view']['document']['getRoot'](_0x2c16e7);if(_0x4965e2){const _0x450fbb=_0x177593['getAttribute']('revisionHistoryAttachChange');if(_0x18d045['removeAttribute']('data-change-id',_0x4965e2),_0x18d045['removeClass']('ck-revision-history-root-add',_0x4965e2),_0x18d045['removeClass']('ck-revision-history-root-remove',_0x4965e2),_0x18d045['removeClass']('ck-revision-history-root--active',_0x4965e2),_0x450fbb){const _0x76b539=this['_getChangeFromId'](_0x450fbb);if(!_0x76b539)return null;_0x18d045['setAttribute']('data-change-id',_0x450fbb,_0x4965e2),_0x18d045['addClass']('ck-revision-history-root-'+_0x76b539['type'],_0x4965e2),this['activeChange']==_0x76b539&&_0x18d045['addClass']('ck-revision-history-root--active',_0x4965e2);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4c803d=>'revision-comment:'+_0x4c803d,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4fe6ab=>'revision-suggestion:'+_0x4fe6ab,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x46d6a4=>({'name':'suggestion:'+_0x46d6a4,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x12b8ea=>{const _0x5cf555=_0x12b8ea['markerName']['split'](':')[0x1];return'insertion'!=_0x5cf555&&'deletion'!=_0x5cf555?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5cf555]};}}),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',(_0x4aab38,_0xb1c537,_0x339c5b)=>{const _0x577994=_0x339c5b['mapper']['markerNameToElements'](_0xb1c537['markerName']);if(_0x577994){for(const _0xd01865 of _0x577994)_0xd01865['is']('uiElement')&&(_0x339c5b['mapper']['unbindElementFromMarkerName'](_0xd01865,_0xb1c537['markerName']),_0x339c5b['writer']['remove'](_0xd01865));}},{'priority':'high'});}['_getChangeFromId'](_0x1167eb){return this['_changeIdToChange']['get'](_0x1167eb);}['_getViewForChange'](_0x4f1b52){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x4f1b52),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x8e7880,_0x3ad755,_0x50889a,_0xc9c9d8)=>{_0xc9c9d8&&this['_balloon']['remove'](_0xc9c9d8),_0x50889a&&(this['_balloon']['add']({'view':_0x50889a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x23cf41=this['editor']['editing'],_0x1a13e=this['_getChangeFromId'](_0x50889a['changeId']);let _0x582a42;if(_0x1a13e['data']['isOnRoot']){const _0x4275d0=_0x23cf41['view']['getDomRoot'](_0x1a13e['rootName']);_0x582a42=Array['from'](_0x4275d0['getClientRects']());}else{const _0x530177=this['editor']['model']['markers']['get']('revision:'+_0x50889a['changeId']);_0x582a42=Array['from'](_0x23cf41['mapper']['markerNameToElements'](_0x530177['name']))['map'](_0x355cae=>_0x23cf41['view']['domConverter']['mapViewToDom'](_0x355cae))['map'](_0x2a93e9=>Array['from'](_0x2a93e9['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x582a42[0x0];return _0x582a42['find'](_0x17afec=>_0x17afec['top']-0x3<=this['_activeViewTarget']['y']&&_0x17afec['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x17afec['left']-0x3<=this['_activeViewTarget']['x']&&_0x17afec['right']+0x3>=this['_activeViewTarget']['x'])||_0x582a42[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x451819,_0x560fc4,_0x2ef69c,_0x109b5e)=>{this['activeView']=_0x2ef69c?this['_getViewForChange'](_0x2ef69c):null,this['editor']['model']['change'](()=>{const _0x5c570c=this['editor']['editing'];_0x109b5e&&(_0x109b5e['data']['isOnRoot']?_0x5c570c['view']['change'](_0x599786=>{_0x599786['removeClass']('ck-revision-history-root--active',_0x5c570c['view']['document']['getRoot'](_0x109b5e['rootName']));}):_0x5c570c['reconvertMarker']('revision:'+_0x109b5e['id'])),_0x2ef69c&&(_0x2ef69c['data']['isOnRoot']?_0x5c570c['view']['change'](_0x41bc0b=>{_0x41bc0b['addClass']('ck-revision-history-root--active',_0x5c570c['view']['document']['getRoot'](_0x2ef69c['rootName']));}):_0x5c570c['reconvertMarker']('revision:'+_0x2ef69c['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x34bf1a,_0x197a50)=>{if(this['activeChange'])return;const _0x4a80d2=this['_findChangeIdFromDomTarget'](_0x197a50['target']),_0x2b6398=this['_changeIdToChange']['get'](_0x4a80d2);_0x2b6398?(this['_activeViewTarget']={'x':_0x197a50['domEvent']['x'],'y':_0x197a50['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2b6398)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5b6962,_0x566edc)=>{const _0x146578=this['_findChangeIdFromDomTarget'](_0x566edc['target']),_0x5ec94b=this['_changeIdToChange']['get'](_0x146578);_0x5ec94b?(this['_activeViewTarget']={'x':_0x566edc['domEvent']['x'],'y':_0x566edc['domEvent']['y']},_0x5ec94b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5ec94b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3ce7f6){do{const _0x19cad8=_0x3ce7f6['getAttribute']('data-change-id');if(_0x19cad8)return _0x19cad8;_0x3ce7f6=_0x3ce7f6['parent'];}while(_0x3ce7f6);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x564557=>{for(const _0x457be4 of this['editor']['model']['markers'])_0x564557['removeMarker'](_0x457be4);});}}function Q(_0x37684c,_0x5b7443){return(_0x2d0211,_0x33247c,_0x391b89)=>{if(!_0x391b89['consumable']['test'](_0x33247c['markerRange'],_0x2d0211['name']))return;const _0x3af805=_0x33247c['markerRange']['getWalker'](),_0x4f5382=_0x33247c['markerRange']['start'],_0x35ba5b=_0x37684c['model']['schema'];let _0x411991=null,_0x46b55a=null,_0x8bdbf9=!0x1,_0x4e41df=!0x1;for(const _0x10d91e of _0x3af805){const _0x4c5087=_0x10d91e['item'];_0x8bdbf9=_0x8bdbf9||_0x35ba5b['isContent'](_0x4c5087);const _0x13b9d6=_0x391b89['mapper']['toViewElement'](_0x4c5087);if(_0x13b9d6&&_0x13b9d6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x10d91e['type']&&(_0x35ba5b['isBlock'](_0x4c5087)&&!_0x35ba5b['isLimit'](_0x4c5087)&&(_0x4c5087['nextSibling']||_0x4f5382['isAtEnd']?_0x411991&&_0x411991['parent']==_0x4c5087||(_0x411991=_0x4c5087,_0x2d4c2b(_0x10d91e['previousPosition']),_0x4e41df=!0x0):_0x46b55a=_0x46b55a||_0x10d91e['previousPosition']));}function _0x2d4c2b(_0x224da3){const _0x3e4afd=_0x391b89['mapper']['toViewPosition'](_0x224da3),_0x3c99b9=_0x391b89['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5b7443});_0x391b89['writer']['insert'](_0x3e4afd,_0x3c99b9),_0x391b89['mapper']['bindElementToMarker'](_0x3c99b9,_0x33247c['markerName']);}_0x8bdbf9||_0x4e41df||!_0x46b55a||_0x2d4c2b(_0x46b55a);};}class ct extends _0xfb97a{constructor(_0xe1626f){super(_0xe1626f);const _0x38eb43=_0xe1626f['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x38eb43,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x38eb43,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x164a3a=this['editor'],_0x157b97=_0x164a3a['plugins']['get'](l),_0x27ee96=_0x157b97['isReady']?_0x157b97['diff']['newRevisionId']:null;_0x164a3a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x27ee96);}['refresh'](){const {isReady:_0x5e61fc,isEnabled:_0x17a2b4,repository:_0x5d6dbb,diff:_0xf78ce4}=this['editor']['plugins']['get'](l),_0x51d7e8=_0xf78ce4&&_0x5d6dbb['getLaterVisibleRevision'](_0xf78ce4['newRevisionId']);this['isEnabled']=_0x5e61fc&&_0x17a2b4&&Boolean(_0x51d7e8);}}class ut extends _0xfb97a{['_step'];constructor(_0x32c6b3,{direction:_0x3135d8}){super(_0x32c6b3);const _0x1a4701=_0x32c6b3['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x3135d8?0x1:-0x1,this['listenTo'](_0x1a4701,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1a4701,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1a4701,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x324882=this['editor'],_0x578fa3=_0x324882['plugins']['get'](l),{isNavigationMode:_0x341085,currentChangeNumber:_0x5088f7}=_0x578fa3;let _0x4f82b9;if(_0x578fa3['activeChange']=_0x341085?_0x578fa3['diff']['changes']['get'](_0x5088f7+this['_step']):_0x578fa3['diff']['changes']['first'],_0x578fa3['activeChange']['data']['isOnRoot'])_0x4f82b9=_0x324882['editing']['view']['getDomRoot'](_0x578fa3['activeChange']['rootName']);else{const _0x4191e4=_0x324882['model']['markers']['get']('revision:'+_0x578fa3['activeChange']['id']);_0x4f82b9=_0xd2782(_0x324882['editing'],_0x4191e4);}_0x6f0fd2({'target':_0x4f82b9,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1fe549,currentChangeNumber:_0x571704,numberOfChanges:_0x37f47c,isReady:_0x58253e,isEnabled:_0x4d0c0f}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x4d0c0f&&_0x58253e&&_0x37f47c)&&(!_0x1fe549||(0x1===this['_step']?_0x571704<_0x37f47c-0x1:_0x571704>0x0));}}class Ri extends _0x1de8a2{constructor(_0x322d63){super(_0x322d63);const _0x1d704=this['bindTemplate'],_0x318b2e=new _0x5d1bb6(_0x322d63),_0x53bf3a=new _0x5d1bb6(_0x322d63);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',(_0x1e9ae5,_0x240516)=>_0x1e9ae5&&_0x240516>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2938e7,_0x2e43d6,_0x35c968,_0x419030)=>{if(!_0x2938e7)return R(_0x322d63,'Loading...');if(!_0x35c968)return R(_0x322d63,'No\x20changes');const _0x2ff42f=R(_0x322d63,'NUMBER_OF_CHANGES',_0x35c968);return _0x419030?R(_0x322d63,'X_OF_Y_CHANGES',[_0x2e43d6+0x1,_0x35c968]):_0x2ff42f;}),_0x318b2e['set']({'label':R(_0x322d63,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2c6058}),_0x53bf3a['set']({'label':R(_0x322d63,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x10407a}),_0x318b2e['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x53bf3a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x318b2e['on']('execute',()=>this['fire']('execute','backward')),_0x53bf3a['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',_0x1d704['if']('_isStatusLabelVisible','ck-hidden',_0x1b22dc=>!_0x1b22dc)]},'children':[{'text':_0x1d704['to']('isNavigationMode',_0x488a13=>_0x488a13?R(_0x322d63,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x322d63,'Total')+':\x20')}]},{'text':_0x1d704['to']('_statusText')}]},new _0x48fb2e(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x318b2e,_0x53bf3a]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0xeb65ff{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5e98cc=this['editor']['editing']['view'];_0x5e98cc['change'](_0x10ac91=>{for(const _0x4d1185 of _0x5e98cc['document']['roots'])_0x10ac91['addClass'](ge,_0x4d1185);});}['hide'](){const _0xa65be6=this['editor']['editing']['view'];_0xa65be6['change'](_0x458f2d=>{for(const _0x44662e of _0xa65be6['document']['roots'])_0x458f2d['removeClass'](ge,_0x44662e);});}}class u extends _0xeb65ff{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x133295=this['editor'],_0x330d3f=_0x133295['plugins']['get'](l),_0x56883c=_0x133295['plugins']['get'](ji);_0x133295['ui']['componentFactory']['add']('exitToEditing',_0x205b2f=>{const _0x4a4dd6=new _0x5d1bb6(_0x205b2f);return _0x4a4dd6['set']({'label':R(_0x205b2f,'Back\x20to\x20editing'),'icon':_0x5c2723,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4a4dd6,'execute',()=>{_0x133295['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4a4dd6;}),_0x133295['ui']['componentFactory']['add']('restoreRevision',_0x284fc0=>{const _0x2f5c9e=new _0x5d1bb6(_0x284fc0);return _0x2f5c9e['set']({'label':R(_0x284fc0,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2f5c9e['bind']('isEnabled')['to'](_0x133295['commands']['get']('restoreRevision')),this['listenTo'](_0x2f5c9e,'execute',()=>_0x133295['execute']('restoreRevision')),_0x2f5c9e;}),_0x133295['ui']['componentFactory']['add']('changesNavigation',_0x69f1e3=>{const _0x54add1=new Ri(_0x69f1e3),_0x24a76b=_0x133295['commands']['get']('showPreviousChange'),_0x578ca7=_0x133295['commands']['get']('showNextChange');return _0x54add1['bind']('isBackwardNavigationEnabled')['to'](_0x24a76b,'isEnabled'),_0x54add1['bind']('isForwardNavigationEnabled')['to'](_0x578ca7,'isEnabled'),_0x54add1['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x330d3f),this['listenTo'](_0x54add1,'execute',(_0x4e9034,_0x35e849)=>{_0x133295['execute']('forward'===_0x35e849?'showNextChange':'showPreviousChange');}),_0x54add1;}),_0x56883c['show'](),_0x330d3f['on']('change:isReady',(_0x502456,_0x4a5747,_0x4f9a2c)=>{_0x4f9a2c?_0x56883c['hide']():_0x56883c['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x403b76,_0x4a073a){super(_0x403b76,_0x4a073a);const _0x13b4f6=this['bindTemplate'];this['set']({'label':R(_0x403b76,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x403b76,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x13b4f6['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 _0x128949=this['fieldView']['element'];this['_tooltipString']=_0x128949['scrollWidth']>_0x128949['clientWidth']&&_0x128949['value']||'';}}class vi extends _0x1de8a2{constructor(_0x18c8ab,_0x21cfc2,_0x10be3a){super(_0x18c8ab);const _0x23d8ec=new _0x1de7d7();_0x23d8ec['set']({'content':_0x585d9d,'viewBox':'0\x200\x2011\x2010'});const _0x519df6=['ck','ck-revision-history-sidebar__revision-author'];_0x10be3a&&_0x519df6['push']('ck-revision-history-sidebar__revision-author_creator');const _0xbfa05d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x18c8ab,_0x10be3a?'Revision\x20creator':'Revision\x20author')},'children':[_0x23d8ec,_0x21cfc2['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x519df6},'children':_0xbfa05d});}}function mi(_0x1137fc,_0x54814d){const _0x3ff80=_0x1137fc['bindTemplate'],_0x377770=_0x1137fc['locale'],_0x5adb57=_0x4ecb9f(_0x377770);_0x5adb57['panelPosition']='sw';const _0x258c52=function(_0x2a5261,_0x51331f){const _0x256c49=function(_0x248048,_0x3d12cc){const _0x47b5a8=_0x248048['locale'],_0x3756b4={'Compare\x20against\x20selected':R(_0x47b5a8,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x47b5a8,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x47b5a8,'Restore\x20this\x20revision')};return _0x3d12cc['map'](_0x59c868=>{const _0x3b5905=_0x3756b4[_0x59c868['name']];return _0x3b5905&&_0x3b5905!==_0x59c868['name']&&(_0x59c868['name']=_0x3b5905),_0x59c868;});}(_0x2a5261,_0x51331f),_0xedd86b=new _0x13badc();for(const _0x4c9afb of _0x256c49){const _0x59e674={'type':'button','model':new to({'label':_0x4c9afb['name'],'class':_0x4c9afb['class'],'withText':!0x0,'role':'menuitem','_action':_0x4c9afb['action']})};_0x59e674['model']['bind']('isEnabled')['to'](_0x2a5261,'isActionsDropdownOpen',_0x52e810=>'function'!=typeof _0x4c9afb['isEnabled']||(!_0x52e810||_0x4c9afb['isEnabled'](_0x2a5261))),_0xedd86b['add'](_0x59e674);}return _0xedd86b;}(_0x1137fc,_0x54814d);return _0x1137fc['bind']('isActionsDropdownOpen')['to'](_0x5adb57,'isOpen'),_0x5adb57['buttonView']['set']({'label':R(_0x377770,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x584c2b}),_0x5adb57['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3ff80['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3ff80['to'](_0x249e6f=>_0x249e6f['stopPropagation']())}}),_0x5adb57['on']('execute',_0x1ede3d=>{_0x1137fc['isReady']&&'function'==typeof _0x1ede3d['source']['_action']&&_0x1ede3d['source']['_action'](_0x1137fc);}),_0x1668ec(_0x5adb57,_0x258c52,{'role':'menu'}),_0x5adb57['listenTo'](_0x1137fc,'change:isActionsDropdownOpen',(_0xf15fb4,_0x759a5f,_0x3024bb)=>{if(_0x3024bb)for(const _0x4271a2 of _0x5adb57['listView']['items']){const _0x16fe15=_0x4271a2['children']['first'],_0x45d910=_0x54814d['find'](_0x3b1ce4=>_0x3b1ce4['action']===_0x16fe15['_action'])['isVisible'];_0x4271a2['isVisible']=void 0x0===_0x45d910||_0x45d910(_0x1137fc);}}),_0x5adb57;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x362dd7(_0x1de8a2){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x46c51e,_0x461945,_0x734a8b,_0x461504){super(_0x46c51e);const _0x2dcc99=this['bindTemplate'],_0x3f7fe7=function(_0xa6e168,_0x5b704e){const _0x291290=Array['from'](_0x5b704e['authors'])['filter'](_0x43ea72=>_0x43ea72!=_0x5b704e['creator']);return _0x5b704e['creator']&&_0x291290['unshift'](_0x5b704e['creator']),_0x291290['map'](_0x158a43=>new vi(_0xa6e168,_0x158a43,_0x158a43==_0x5b704e['creator']));}(_0x46c51e,_0x461945);this['id']=_0x461945['id'],this['_revision']=_0x461945,this['_requireRevisionName']=_0x461504,this['bind']('name','createdAt')['to'](_0x461945),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x7c0055=>{return _0x1809c0=_0x46c51e['uiLanguage'],(_0x2a5327=_0x7c0055)['toLocaleDateString'](_0x1809c0,{'month':'long','day':'numeric'})+',\x20'+_0x2a5327['toLocaleTimeString'](_0x1809c0,{'hour':'numeric','minute':'numeric'});var _0x1809c0,_0x2a5327;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x46c51e,_0x1dc942),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x172f6e=>_0x172f6e||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5e9181,_0x457d0f)=>_0x5e9181&&_0x457d0f),this['revisionActionsView']=_0x734a8b&&_0x734a8b['length']?mi(this,_0x734a8b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2dcc99['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2dcc99['if']('isEnabled','ck-disabled',_0x839749=>!_0x839749),_0x2dcc99['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2dcc99['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2dcc99['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':_0x2dcc99['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':_0x3f7fe7}]},this['revisionActionsView']],'on':{'click':_0x2dcc99['to'](_0xb1ff1a=>{_0xb1ff1a['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x26c19c=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x26c19c,'change',()=>{this['_requireRevisionName']&&!_0x26c19c['value']||this['fire']('setName',{'id':this['id'],'name':_0x26c19c['value']}),_0x26c19c['value']||(_0x26c19c['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(_0x160bc8,_0x35d3f3){const _0x2c8546=_0x54b875['fromJSDate'](_0x160bc8)['setLocale'](_0x35d3f3),_0x50c810=_0x54b875['local'](),_0x3bfbe4=_0x50c810['minus']({'days':0x1})['startOf']('day');let _0x26b772,_0x4a7ff4;return _0x2c8546['hasSame'](_0x50c810,'day')?(_0x26b772=_0x2c8546['startOf']('day')['toJSDate'](),_0x4a7ff4=_0x2c8546['toRelativeCalendar']()):_0x2c8546['hasSame'](_0x3bfbe4,'day')?(_0x26b772=_0x3bfbe4['toJSDate'](),_0x4a7ff4=_0x2c8546['toRelativeCalendar']()):_0x2c8546['hasSame'](_0x50c810,'week')?(_0x26b772=_0x2c8546['startOf']('week')['toJSDate'](),_0x4a7ff4=_0x2c8546['weekdayLong']||''):_0x2c8546['hasSame'](_0x50c810,'year')?(_0x26b772=_0x2c8546['startOf']('month')['toJSDate'](),_0x4a7ff4=_0x2c8546['monthLong']||''):(_0x26b772=_0x2c8546['startOf']('year')['toJSDate'](),_0x4a7ff4=String(_0x2c8546['year'])),{'startDate':_0x26b772,'localizedPeriodName':_0x4a7ff4};}class fi extends _0x1de8a2{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x8255a5,_0x1d1840,_0x32a57e,_0xd87789){super(_0x8255a5);const _0x20cd74=bi(_0x1d1840,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1d1840,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x32a57e,this['_requireRevisionName']=_0xd87789,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':_0x20cd74}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x282a7c){const _0x51662f=new pi(this['locale'],_0x282a7c,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x51662f);}['removeRevision'](_0x502316){const _0x5f02ef=this['revisionViews']['find'](_0xb02bed=>_0xb02bed['id']===_0x502316['id']);this['revisionViews']['remove'](_0x5f02ef);}}class ki extends _0x1de8a2{constructor(_0x4ef890){super(_0x4ef890);const _0xb3b686=new _0x1de7d7();_0xb3b686['content']=_0xc3ea8a,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xb3b686,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x4ef890,'Revision\x20history')]}]});}}class ui extends _0x1de8a2{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x357df5,_0x4cc4d3,_0x48774a,_0x3f8a5c){super(_0x357df5);const _0xbc1954=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4cc4d3,this['_revisionActions']=_0x48774a,this['_requireRevisionName']=_0x3f8a5c,this['on']('select',(_0x4bae18,_0x319678)=>{this['fire']('revisionSelected',_0x319678);}),this['on']('setName',(_0x2863a9,_0x2a0f4e)=>{this['fire']('revisionSetName',_0x2a0f4e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x357df5),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xbc1954['if']('isEnabled','ck-disabled',_0x1bcf95=>!_0x1bcf95)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2f3b44 of this['_revisions'])this['_addRevision'](_0x2f3b44);this['_revisions']['on']('add',(_0x5d8501,_0x526c6d)=>{this['_addRevision'](_0x526c6d);}),this['_revisions']['on']('remove',(_0x42b1f2,_0x4e565d)=>{this['_removeRevision'](_0x4e565d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x494cc3=>_0x494cc3['revisionViews']['map'](_0x1c83c8=>_0x1c83c8))['flat']();}['selectRevision'](_0x2951cc){for(const _0x20fbfb of this['revisionViews'])_0x2951cc&&_0x2951cc['id']===_0x20fbfb['id']?_0x20fbfb['select']():_0x20fbfb['deselect']();}['highlightRevisions'](_0x2a92eb){for(const _0x48ce6f of this['revisionViews'])_0x2a92eb['some'](({id:_0x524be1})=>_0x524be1===_0x48ce6f['id'])?_0x48ce6f['highlight']():_0x48ce6f['unhighlight']();}['_addRevision'](_0x40c6f6){const _0x21feb0=bi(_0x40c6f6['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xc16fb8=this['timePeriodViews']['get'](0x0);_0xc16fb8&&_0xc16fb8['startDate']['getTime']()===_0x21feb0['getTime']()||(_0xc16fb8=new fi(this['locale'],_0x21feb0,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xc16fb8)),_0xc16fb8['addRevision'](_0x40c6f6);}['_removeRevision'](_0x13a3fd){const _0x5e3589=bi(_0x13a3fd['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5e3589)['removeRevision'](_0x13a3fd);}['_getTimePeriodViewByStartDate'](_0x2d469b){return this['timePeriodViews']['find'](_0xb601d6=>_0xb601d6['startDate']['getTime']()===_0x2d469b['getTime']());}}class f extends _0xeb65ff{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x557801(_0x39acb8){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xb8414f,_0x33a912){super(_0x33a912),this['sourceElement']=_0xb8414f,this['model']['document']['createRoot']();const _0x2b29e3=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x2b29e3);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1b2dda,_0x3248a7){const _0x17f85f=new this(_0x1b2dda,_0x3248a7);return await _0x17f85f['initPlugins'](),await _0x17f85f['ui']['init'](_0x1b2dda),await _0x17f85f['data']['init'](_0x17f85f['config']['get']('initialData')||''),_0x17f85f['fire']('ready'),_0x17f85f;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x4af0c1{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3715c0){function _0x5de2dd(_0x597d09){return _0x597d09['map'](_0x38bd7b=>String['fromCharCode'](_0x38bd7b))['join']('');}super(_0x3715c0),this['result']='end',_0x3715c0[_0x5de2dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5de2dd([0x76,0x69,0x65,0x77])][_0x5de2dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5de2dd([0x61,0x75,0x74,0x6f]),_0x3715c0[_0x5de2dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5de2dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5de2dd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5de2dd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5de2dd([0x6f,0x6b])});}}class k extends _0x4af0c1{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x7e5090){if(super(_0x7e5090),!this['editor']['config']['get']('revisionHistory'))throw new _0x1ddba0('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x500640=>this['_showRevisionViewer']({..._0x500640,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x485652=>this['_closeRevisionViewer'](_0x485652)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1b33cf=>this['_restoreRevision'](_0x1b33cf)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x49e665){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x49e665;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x298cef){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x298cef);}['getRevision'](_0x19c1f6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x19c1f6);}['getRevisions'](_0x4dc175){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4dc175||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1d4a5b=this['editor'],_0x5a3594=_0x55ed1f(_0x1d4a5b,p),_0x41866b=_0x1d4a5b['plugins']['get']('RevisionTracker'),_0x499893=_0x1d4a5b['plugins']['get']('Users')['users'];return _0x5a3594['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5a3594['lazyRoots'],(_0x5a3594['plugins']['push'](_t,m,R,class extends _0x4af0c1{static get['requires'](){return[m,'Users'];}['init'](){const _0x35dd67=this['editor']['plugins']['get']('Users');for(const _0x4605a6 of _0x499893)_0x4605a6['isAnonymous']||_0x35dd67['getUser'](_0x4605a6['id'])||_0x35dd67['addUser'](_0x4605a6);const _0x1574a8=_0x41866b['repository']['getRevisions']();let _0x8ab097=null;const _0x4b9b3d=this['editor']['plugins']['get']('RevisionViewer');_0x4b9b3d['adapter']=_0x41866b['adapter'],_0x4b9b3d['bind']('isEnabled')['to'](_0x41866b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1d4a5b,'isReadOnly',_0x35481f=>!_0x35481f);for(const _0x3ef12e of _0x1574a8){const _0x51c6f0=null===_0x3ef12e['creator'];if(_0x51c6f0&&_0x3ef12e['toVersion']===_0x3ef12e['fromVersion'])continue;const _0x22bedf=_0x3ef12e['toJSON']();_0x4b9b3d['addRevisionData'](_0x22bedf,(_0x1a9910,_0x20a933,_0xdb7eba)=>{if(_0x51c6f0){if(_0x8ab097)_0x8ab097['_update'](_0x1a9910,_0x20a933);else{if(!_0x20a933){const _0x26a0b9=_0xdb7eba['toJSON']();_0x26a0b9['id']=_0x235c9b(),_0x41866b['saveRevision'](_0x26a0b9,_0xdb7eba['toVersion'])['then'](_0x227c9e=>{_0x8ab097=_0x227c9e;});}}}else _0x3ef12e['_update'](_0x1a9910,_0x20a933);});}}},d),_0x5a3594);}['_enhanceShowRevisionViewerCallback'](){const _0x4d6a51=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3f1fbc=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5a3dac=this['editor']['plugins']['get']('Autosave');await _0x5a3dac['save']();}else await _0x3f1fbc['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x31bc96=this['editor']['plugins']['get']('Dialog');_0x31bc96['isOpen']&&_0x31bc96['hide']();}const _0x1742fe=this['_getRevisionViewerEditorConfig']();return _0x4d6a51(_0x1742fe)['then'](_0x46337f=>{return(this['_viewerEditor']=_0x46337f,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'),_0x46337f);})['catch'](_0x3f9e10=>(console['error'](_0x3f9e10),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x131051=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'](),_0x131051(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1e00ec=this['editor']['plugins']['get']('Annotations');_0x1e00ec['refreshVisibility'](),_0x1e00ec['refreshPositioning']();}})));}['_showRevisionViewer'](_0xe3c7c8){const _0x2f6d80=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1474dd=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x265eae=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x265eae,_0xe3c7c8)['then'](_0x59d379=>(_0x1474dd['style']['display']='block',_0x2f6d80['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x59d379));}['_closeRevisionViewer'](_0x1d9156){const _0x2b14fb=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2b14fb['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1d9156['destroy']();}async['_restoreRevision'](_0x3b32e3){const _0x104e84=this['editor'],_0x122082=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x165344=_0x104e84['plugins']['get']('RevisionTracker'),_0xe6d6a6=_0x104e84['plugins']['get']('RevisionHistoryUtils'),_0x47ac8f=_0x122082['repository']['getRevision'](_0x3b32e3);let _0x1289ad,_0x64f3b3,_0x4295a2;try{await _0xe6d6a6['loadRevisionData'](_0x47ac8f,this['adapter']),_0x1289ad=_0xe6d6a6['getRevisionDocumentData'](_0x47ac8f),_0x64f3b3=_0xe6d6a6['getRevisionRootsAttributes'](_0x47ac8f);}catch(_0x2937cf){return void console['error'](_0x2937cf);}_0x104e84['model']['change'](_0x23d46b=>{for(const _0x366662 of Array['from'](_0x104e84['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x23d46b['removeMarker'](_0x366662);}),_0x122082['isReady']=!0x1,_0x104e84['model']['enqueueChange'](_0x533b62=>{_0x533b62['setSelection'](null),_0x533b62['removeSelectionAttribute'](_0x104e84['model']['document']['selection']['getAttributeKeys']());const _0x43817c=Object['keys'](_0x1289ad);for(const _0x5b970b of _0x104e84['model']['document']['roots'])'$graveyard'!=_0x5b970b['rootName']&&_0x5b970b['isAttached']()&&!_0x43817c['includes'](_0x5b970b['rootName'])&&_0x533b62['detachRoot'](_0x5b970b);for(const _0x3cf6e8 of _0x43817c){let _0x590afd=_0x104e84['model']['document']['getRoot'](_0x3cf6e8);_0x590afd&&_0x590afd['isAttached']()||(_0x590afd=_0x533b62['addRoot'](_0x3cf6e8));const _0x295a4a=_0x64f3b3[_0x3cf6e8],_0x3bd0f6=Object['keys'](_0x295a4a),_0xc4b27b=_0x1289ad[_0x3cf6e8];for(const _0x1b03d3 of _0x590afd['getAttributeKeys']())_0x3bd0f6['includes'](_0x1b03d3)||_0x533b62['removeAttribute'](_0x1b03d3,_0x590afd);for(const _0x3e865c of _0x3bd0f6)_0x533b62['setAttribute'](_0x3e865c,_0x64f3b3[_0x3cf6e8][_0x3e865c],_0x590afd);_0x533b62['remove'](_0x533b62['createRangeIn'](_0x590afd)),_0x533b62['insert'](_0x104e84['data']['parse'](_0xc4b27b,_0x590afd),_0x590afd,0x0);}});const _0x4e6782=g(_0x104e84['locale'],'Restored');if(_0x47ac8f['name'])_0x4295a2=-0x1==_0x47ac8f['name']['indexOf'](_0x4e6782)?_0x4e6782+':\x20'+_0x47ac8f['name']:_0x47ac8f['name'];else _0x4295a2=_0x4e6782+':\x20'+(_0x47ac8f['createdAt']['toLocaleDateString'](_0x104e84['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x47ac8f['createdAt']['toLocaleTimeString'](_0x104e84['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x165344['saveRevision']({'name':_0x4295a2}),_0x122082['isReady']=!0x0,_0x104e84['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
29
|
+
lt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x2c4aec){super(_0x2c4aec),this['_revisionViewer']=_0x2c4aec['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x210055=this['_revisionsRepository']['_revisions'],_0x744b7a=this['_createRevisionActions'](),_0x160a0c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ui(this['editor']['locale'],_0x210055,_0x744b7a,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',(_0x11fede,_0x3559eb)=>{_0x3559eb['revisionViews']['on']('add',(_0x1154bd,_0x537b02)=>{_0x537b02['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)),_0x160a0c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4349a8=this['_revisionsRepository']['getRevision'](0x0);if(_0x4349a8){const _0x18fd9c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4349a8['id']);this['_revisionViewer']['compare'](_0x4349a8,_0x18fd9c);}}['_handleRevisionSelected'](_0x4e7bd3,_0x4e90ad){const _0x253147=this['_revisionsRepository']['getRevision'](_0x4e90ad['id']),_0x4f299b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x253147['id']);this['_revisionViewer']['compare'](_0x253147,_0x4f299b);}['_handleRevisionSetName'](_0x1b8368,_0x4f2300){this['_revisionsRepository']['getRevision'](_0x4f2300['id'])['setName'](_0x4f2300['name']);}['_handleDiffChange'](_0x18ac0f,_0x5668dc,_0x221d40){const _0x4367b6=this['_revisionsRepository']['getRevisionsInDiff'](_0x221d40);_0x4367b6['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4367b6),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4367b6[0x0]));}['_createRevisionActions'](){const _0x30cdc9=this['editor'],_0x3d343b=f['availableRevisionActions'],_0x2bdde0=_0x30cdc9['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x2bdde0['length'])return _0x2bdde0['map'](_0x3632b1=>{const _0x2203a5='string'==typeof _0x3632b1?Object['assign']({},_0x3d343b[_0x3632b1]):_0x3632b1;return _0x2203a5['action']=_0x2203a5['action']['bind'](this,_0x30cdc9),_0x2203a5['isVisible']&&(_0x2203a5['isVisible']=_0x2203a5['isVisible']['bind'](this,_0x30cdc9)),_0x2203a5;});}}function lt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2e1eba},_0x5f3e23)=>{const _0x2ee0ac=_0x2e1eba['get'](l),_0xf4db30=_0x2ee0ac['repository'];let _0x39ef35=_0x2ee0ac['diff']['newRevisionId'],_0x39af7f=_0x5f3e23['id'];_0xf4db30['getIndex'](_0x39ef35)>_0xf4db30['getIndex'](_0x39af7f)&&([_0x39ef35,_0x39af7f]=[_0x39af7f,_0x39ef35]),_0x2ee0ac['compare'](_0x39ef35,_0x39af7f);},'isVisible':({plugins:_0xe201d6},_0x32241e)=>{const _0xdc5978=_0xe201d6['get'](l);return!(_0xdc5978['repository']['getRevisionsInDiff'](_0xdc5978['diff'])['length']>0x2)&&!_0x32241e['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5748eb,{id:_0x49cb3d})=>{_0x5748eb['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x49cb3d);},'isVisible':({plugins:_0x36e7d3},_0x28b153)=>!!_0x36e7d3['get'](l)['repository']['getLaterVisibleRevision'](_0x28b153['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x49a8a5},{id:_0x29fab4,revisionNameView:_0x34f870})=>{const _0x57f789=_0x49a8a5['get'](l),_0x590a69=_0x57f789['repository']['getEarlierVisibleRevision'](_0x29fab4);_0x57f789['compare'](_0x29fab4,_0x590a69),_0x34f870['focus'](),_0x34f870['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5c1a6e,_0x438f76){super(_0x5c1a6e),this['_view']=_0x438f76,this['_toolbarConfig']=st(_0x5c1a6e['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x36f353){const _0x344b25=this['editor'],_0x1bbf4b=this['view'],_0x2d1f72=_0x344b25['editing']['view'],_0x3ebe9a=_0x1bbf4b['editable'],_0x17cba9=_0x2d1f72['document']['getRoot']();_0x3ebe9a['name']=_0x17cba9['rootName'],_0x1bbf4b['render']();const _0x540de8=_0x3ebe9a['element'];this['setEditableElement'](_0x3ebe9a['name'],_0x540de8),_0x1bbf4b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2d1f72['attachDomRoot'](_0x540de8),this['_elementReplacer']['replace'](_0x36f353,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x13dde3=this['view'],_0x36dde1=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x36dde1['detachDomRoot'](_0x13dde3['editable']['name']),_0x13dde3['destroy']();}['_initToolbar'](){const _0x979e6e=this['view'];_0x979e6e['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x979e6e['stickyPanel']['limiterElement']=_0x979e6e['element'],_0x979e6e['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x337692})=>_0x337692),_0x979e6e['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x979e6e['toolbar']);}}class ii extends _0x350c0b{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2042ba,_0x26c626,_0x19e987={}){super(_0x2042ba),this['stickyPanel']=new _0x5e1489(_0x2042ba),this['toolbar']=new _0x5b1f48(_0x2042ba,{'shouldGroupWhenFull':_0x19e987['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x2042ba,_0x26c626);}['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
|
+
_0x3a9ea6(_0x189213){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x565f81,_0x427b37){super(_0x427b37),this['sourceElement']=_0x565f81,this['model']['document']['createRoot']();const _0xee291f=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0xee291f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4f6a07,_0x30ca0c){const _0x5a9b9d=new this(_0x4f6a07,_0x30ca0c);return await _0x5a9b9d['initPlugins'](),await _0x5a9b9d['ui']['init'](_0x4f6a07),await _0x5a9b9d['data']['init'](_0x5a9b9d['config']['get']('initialData')||''),_0x5a9b9d['fire']('ready'),_0x5a9b9d;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class dt extends _0xeb65ff{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29d41f){function _0x451a67(_0x5dce98){return _0x5dce98['map'](_0x42a680=>String['fromCharCode'](_0x42a680))['join']('');}super(_0x29d41f),this['result']='end',_0x29d41f[_0x451a67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x451a67([0x76,0x69,0x65,0x77])][_0x451a67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x451a67([0x61,0x75,0x74,0x6f]),_0x29d41f[_0x451a67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x451a67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x451a67([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x451a67([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x451a67([0x6f,0x6b])});}}class ft extends _0xeb65ff{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x45b724){if(super(_0x45b724),!this['editor']['config']['get']('revisionHistory'))throw new _0x16d21e('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4cc1b3=>this['_showRevisionViewer']({..._0x4cc1b3,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x589642=>this['_closeRevisionViewer'](_0x589642)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x30936f=>this['_restoreRevision'](_0x30936f)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4727d5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4727d5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4c6a0f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4c6a0f);}['getRevision'](_0x393691){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x393691);}['getRevisions'](_0x2460ec){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2460ec||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x40bbec=this['editor'],_0x4e97eb=_0x1bdef3(_0x40bbec,d),_0x27ca2e=_0x40bbec['plugins']['get']('RevisionTracker'),_0x5c680a=_0x40bbec['plugins']['get']('Users')['users'];return _0x4e97eb['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4e97eb['lazyRoots'],(_0x4e97eb['plugins']['push'](dt,l,u,class extends _0xeb65ff{static get['requires'](){return[l,'Users'];}['init'](){const _0x3c9264=this['editor']['plugins']['get']('Users');for(const _0x613677 of _0x5c680a)_0x613677['isAnonymous']||_0x3c9264['getUser'](_0x613677['id'])||_0x3c9264['addUser'](_0x613677);const _0x317281=_0x27ca2e['repository']['getRevisions']();let _0x1b5087=null;const _0x2cd7b2=this['editor']['plugins']['get']('RevisionViewer');_0x2cd7b2['adapter']=_0x27ca2e['adapter'],_0x2cd7b2['bind']('isEnabled')['to'](_0x27ca2e),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x40bbec,'isReadOnly',_0x53822c=>!_0x53822c);for(const _0x2a6c2c of _0x317281){const _0x1e5190=null===_0x2a6c2c['creator'];if(_0x1e5190&&_0x2a6c2c['toVersion']===_0x2a6c2c['fromVersion'])continue;const _0x406343=_0x2a6c2c['toJSON']();_0x2cd7b2['addRevisionData'](_0x406343,(_0xaae17b,_0x4747f4,_0x349718)=>{if(_0x1e5190){if(_0x1b5087)_0x1b5087['_update'](_0xaae17b,_0x4747f4);else{if(!_0x4747f4){const _0x2890e3=_0x349718['toJSON']();_0x2890e3['id']=_0x59b881(),_0x27ca2e['saveRevision'](_0x2890e3,_0x349718['toVersion'])['then'](_0xdeeda0=>{_0x1b5087=_0xdeeda0;});}}}else _0x2a6c2c['_update'](_0xaae17b,_0x4747f4);});}}},f),_0x4e97eb);}['_enhanceShowRevisionViewerCallback'](){const _0x2c000c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2663ea=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x117795=this['editor']['plugins']['get']('Autosave');await _0x117795['save']();}else await _0x2663ea['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x56e687=this['editor']['plugins']['get']('Dialog');_0x56e687['isOpen']&&_0x56e687['hide']();}const _0x3e004c=this['_getRevisionViewerEditorConfig']();return _0x2c000c(_0x3e004c)['then'](_0xc816f0=>{return(this['_viewerEditor']=_0xc816f0,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'),_0xc816f0);})['catch'](_0x78156f=>(console['error'](_0x78156f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3b249a=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'](),_0x3b249a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x523541=this['editor']['plugins']['get']('Annotations');_0x523541['refreshVisibility'](),_0x523541['refreshPositioning']();}})));}['_showRevisionViewer'](_0x270973){const _0x3447f2=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4047f5=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x196202=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x196202,_0x270973)['then'](_0x1b5cd6=>(_0x4047f5['style']['display']='block',_0x3447f2['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x1b5cd6));}['_closeRevisionViewer'](_0x5c7bb6){const _0x419992=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x419992['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5c7bb6['destroy']();}async['_restoreRevision'](_0x193022){const _0x5ecf3d=this['editor'],_0x85f87=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x43cb54=_0x5ecf3d['plugins']['get']('RevisionTracker'),_0x9b1999=_0x5ecf3d['plugins']['get']('RevisionHistoryUtils'),_0x2ea19b=_0x85f87['repository']['getRevision'](_0x193022);let _0xe6ba03,_0x2a5cea,_0x2052fa;try{await _0x9b1999['loadRevisionData'](_0x2ea19b,this['adapter']),_0xe6ba03=_0x9b1999['getRevisionDocumentData'](_0x2ea19b),_0x2a5cea=_0x9b1999['getRevisionRootsAttributes'](_0x2ea19b);}catch(_0x5a5469){return void console['error'](_0x5a5469);}_0x5ecf3d['model']['change'](_0x4504d2=>{for(const _0x5d1380 of Array['from'](_0x5ecf3d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4504d2['removeMarker'](_0x5d1380);}),_0x85f87['isReady']=!0x1,_0x5ecf3d['model']['enqueueChange'](_0x3a9af9=>{_0x3a9af9['setSelection'](null),_0x3a9af9['removeSelectionAttribute'](_0x5ecf3d['model']['document']['selection']['getAttributeKeys']());const _0x480ad9=Object['keys'](_0xe6ba03);for(const _0x7d6c8 of _0x5ecf3d['model']['document']['roots'])'$graveyard'!=_0x7d6c8['rootName']&&_0x7d6c8['isAttached']()&&!_0x480ad9['includes'](_0x7d6c8['rootName'])&&_0x3a9af9['detachRoot'](_0x7d6c8);for(const _0x34514f of _0x480ad9){let _0x2fe3d2=_0x5ecf3d['model']['document']['getRoot'](_0x34514f);_0x2fe3d2&&_0x2fe3d2['isAttached']()||(_0x2fe3d2=_0x3a9af9['addRoot'](_0x34514f));const _0x34de53=_0x2a5cea[_0x34514f],_0x41e579=Object['keys'](_0x34de53),_0x32b085=_0xe6ba03[_0x34514f];for(const _0xfc8e91 of _0x2fe3d2['getAttributeKeys']())_0x41e579['includes'](_0xfc8e91)||_0x3a9af9['removeAttribute'](_0xfc8e91,_0x2fe3d2);for(const _0x5048da of _0x41e579)_0x3a9af9['setAttribute'](_0x5048da,_0x2a5cea[_0x34514f][_0x5048da],_0x2fe3d2);_0x3a9af9['remove'](_0x3a9af9['createRangeIn'](_0x2fe3d2)),_0x3a9af9['insert'](_0x5ecf3d['data']['parse'](_0x32b085,_0x2fe3d2),_0x2fe3d2,0x0);}});const _0x2c9b3b=R(_0x5ecf3d['locale'],'Restored');if(_0x2ea19b['name'])_0x2052fa=-0x1==_0x2ea19b['name']['indexOf'](_0x2c9b3b)?_0x2c9b3b+':\x20'+_0x2ea19b['name']:_0x2ea19b['name'];else _0x2052fa=_0x2c9b3b+':\x20'+(_0x2ea19b['createdAt']['toLocaleDateString'](_0x5ecf3d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2ea19b['createdAt']['toLocaleTimeString'](_0x5ecf3d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x43cb54['saveRevision']({'name':_0x2052fa}),_0x85f87['isReady']=!0x0,_0x5ecf3d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{ct as RestoreRevisionCommand,I as Revision,ft as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ut as ShowChangeCommand};
|