@ckeditor/ckeditor5-revision-history 46.0.1-alpha.1 → 46.0.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x56035f(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x40b967){super(),this['id']=_0x40b967['id']||_0x1d7c29(),this['creator']=_0x40b967['creator']||null,this['authors']=_0x40b967['authors']||[],this['diffData']=_0x40b967['diffData']||null,this['toVersion']=_0x40b967['toVersion']||0x0,this['fromVersion']=_0x40b967['fromVersion']||0x0,this['set']('name',_0x40b967['name']||''),this['set']('createdAt',_0x40b967['createdAt']||new Date()),this['set']('attributes',_0x40b967['attributes']||{});}['setName'](_0x1205f6){this['_update']({'name':_0x1205f6});}['setAttribute'](_0x2bfeaf,_0x58cb01){const _0x3da0fd=_0x452048(this['attributes']);_0x2e1dc0(_0x3da0fd,_0x2bfeaf,_0x58cb01),this['_update']({'attributes':_0x3da0fd});}['removeAttribute'](_0x425254){const _0x5ea7f4=_0x452048(this['attributes']);_0x5545ec(_0x5ea7f4,_0x425254),this['_update']({'attributes':_0x5ea7f4});}['_update'](_0x504d72,_0x2be42c=!0x1){let _0x4bf498=!0x1;const _0x316a69={'id':this['id']},_0x3dbd03=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x57d955 of _0x3dbd03){const _0x1d47af=_0x504d72[_0x57d955];void 0x0!==_0x1d47af&&_0x1d47af!==this[_0x57d955]&&(this[_0x57d955]=_0x1d47af,_0x316a69[_0x57d955]=_0x1d47af,_0x4bf498=!0x0);}_0x4bf498&&(_0x316a69['authors']&&(_0x316a69['authorsIds']=_0x316a69['authors']['map'](_0x400769=>_0x400769['id']),delete _0x316a69['authors']),this['fire']('_update',_0x316a69,_0x2be42c));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x233c2c=>_0x233c2c['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x5c2b79{['_revisions'];static get['requires'](){return[_0x35979b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x346bd3){super(_0x346bd3),this['_revisions']=new _0x638e22();}['afterInit'](){!async function(_0x313ae9){const _0xe89814=_0x50420d([0x57,0x50,0x71,0x38,0x58,0x31,0x55,0x59,0x68,0x5a,0x67,0x53,0x48,0x70,0x6f,0x72,0x52,0x77,0x7a,0x47,0x6e,0x37,0x56,0x4c,0x75,0x33,0x6d,0x36,0x78,0x74,0x34,0x51,0x61,0x64,0x65,0x43,0x4e,0x69,0x49,0x4a,0x6c,0x6a,0x79,0x44,0x32,0x42,0x62,0x73,0x35,0x45,0x76,0x63,0x54,0x66,0x41,0x4b,0x6b,0x30,0x4d,0x39,0x4f,0x46]),_0x3d5db5=0xeb829,_0x8dc97f=0xcda5424,_0x30e8e9=0xcdd3b04^_0x8dc97f,_0x25c2d4=window[_0x50420d([0x44,0x61,0x74,0x65])][_0x50420d([0x6e,0x6f,0x77])](),_0x5f3333=_0x313ae9[_0x50420d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12e5f8=new window[(_0x50420d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2179c8=>{_0x5f3333[_0x50420d([0x6f,0x6e,0x63,0x65])](_0x50420d([0x72,0x65,0x61,0x64,0x79]),_0x2179c8);}),_0x400873={[_0x50420d([0x6b,0x74,0x79])]:_0x50420d([0x45,0x43]),[_0x50420d([0x75,0x73,0x65])]:_0x50420d([0x73,0x69,0x67]),[_0x50420d([0x63,0x72,0x76])]:_0x50420d([0x50,0x2d,0x32,0x35,0x36]),[_0x50420d([0x78])]:_0x50420d([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]),[_0x50420d([0x79])]:_0x50420d([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]),[_0x50420d([0x61,0x6c,0x67])]:_0x50420d([0x45,0x53,0x32,0x35,0x36])},_0x3151f4=_0x5f3333[_0x50420d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x50420d([0x67,0x65,0x74])](_0x50420d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x131aef(){let _0x3c360e,_0x4d5b21=null,_0xaf52b=null;try{if(_0x3151f4==_0x50420d([0x47,0x50,0x4c]))return _0x50420d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3c360e=_0x54696e(),!_0x3c360e)return _0x50420d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3c360e[_0x50420d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xaf52b=_0x1cab99(_0x3c360e[_0x50420d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3c360e[_0x50420d([0x6a,0x74,0x69])])),await _0x10bcef()?_0x2d03fb()?_0x20feb3()?_0x50420d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3054cb()?(_0x3c360e[_0x50420d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x50420d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d5b21=_0x28b59b(_0x50420d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3c360e[_0x50420d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x50420d([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d5b21=_0x28b59b(_0x50420d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x13e423()):_0x50420d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x50420d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x50420d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x50420d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x20feb3(){const _0x45a27a=[_0x50420d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x50420d([0x74,0x72,0x69,0x61,0x6c])][_0x50420d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c360e[_0x50420d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x25c2d4/0x3e8:0xe10*_0x30e8e9;return _0x3c360e[_0x50420d([0x65,0x78,0x70])]<_0x45a27a;}function _0x2d03fb(){const _0x700cd1=_0x3c360e[_0x50420d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x700cd1)return!0x1;if(_0x700cd1[_0x50420d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50420d([0x2a])))return!0x0;if(_0x700cd1[_0x50420d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50420d([0x52,0x48])))return!0x0;if(_0x700cd1[_0x50420d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50420d([0x52,0x52,0x48]))){if(_0x5f4ff3())return!0x0;if(_0x2eb773()||_0x2b0983())return!0x0;}return!0x1;}function _0x3054cb(){const _0x54e566=_0x3c360e[_0x50420d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x54e566||0x0==_0x54e566[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x974c10}=new URL(window[_0x50420d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x54e566[_0x50420d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x974c10))return!0x0;const _0x1bf75c=_0x974c10[_0x50420d([0x73,0x70,0x6c,0x69,0x74])](_0x50420d([0x2e]));return _0x54e566[_0x50420d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d6453=>_0x1d6453[_0x50420d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50420d([0x2a])))[_0x50420d([0x6d,0x61,0x70])](_0x3f127a=>_0x3f127a[_0x50420d([0x73,0x70,0x6c,0x69,0x74])](_0x50420d([0x2e])))[_0x50420d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd6b64b=>_0xd6b64b[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1bf75c[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x50420d([0x6d,0x61,0x70])](_0xd925b0=>Array(_0x1bf75c[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xd925b0[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x50420d([0x66,0x69,0x6c,0x6c])](_0xd925b0[0x0]===_0x50420d([0x2a])?_0x50420d([0x2a]):'')[_0x50420d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xd925b0))[_0x50420d([0x73,0x6f,0x6d,0x65])](_0x52604=>_0x1bf75c[_0x50420d([0x65,0x76,0x65,0x72,0x79])]((_0x2bec5f,_0x1c2a17)=>_0x52604[_0x1c2a17]===_0x2bec5f||_0x52604[_0x1c2a17]===_0x50420d([0x2a])));}function _0x13e423(){return _0x4d5b21&&_0xaf52b?new window[(_0x50420d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c1073,_0x5ad2b8)=>{_0x4d5b21[_0x50420d([0x74,0x68,0x65,0x6e])](_0x2c1073,_0x5ad2b8),_0xaf52b[_0x50420d([0x74,0x68,0x65,0x6e])](_0x4f6445=>{_0x4f6445!=_0x50420d([0x56,0x61,0x6c,0x69,0x64])&&_0x2c1073(_0x4f6445);},_0x5ad2b8);}):_0x4d5b21||_0xaf52b||_0x50420d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1cab99(_0x3269b7,_0x2e2a2f){return new window[(_0x50420d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10befa=>{if(_0x584986())return _0x10befa(_0x50420d([0x56,0x61,0x6c,0x69,0x64]));_0x16906f(),_0x5f3333[_0x50420d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x50420d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e7b1a=!0x1;const _0x28e7de=_0x1d7c29();function _0x228352(_0x48ad45){return!!_0x48ad45&&(typeof _0x48ad45===_0x50420d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48ad45===_0x50420d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48ad45[_0x50420d([0x74,0x68,0x65,0x6e])]===_0x50420d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48ad45[_0x50420d([0x63,0x61,0x74,0x63,0x68])]===_0x50420d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25bd95(_0x138ee3){_0x226aa6(_0x138ee3)[_0x50420d([0x74,0x68,0x65,0x6e])](_0x1a79fe=>{if(!_0x1a79fe||_0x1a79fe[_0x50420d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x50420d([0x6f,0x6b]))return _0x50420d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x235aac(_0x112c81(_0x28e7de+_0x2e2a2f))!=_0x1a79fe[_0x50420d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x50420d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x50420d([0x56,0x61,0x6c,0x69,0x64]);})[_0x50420d([0x74,0x68,0x65,0x6e])](_0x3c9629=>(_0x4e54f4(),_0x3c9629),()=>{const _0x49196e=_0x36853e();return null==_0x49196e?(_0x4e54f4(),_0x50420d([0x56,0x61,0x6c,0x69,0x64])):_0x50420d(_0x25c2d4-_0x49196e>(0x28d6d024^_0x8dc97f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x50420d([0x74,0x68,0x65,0x6e])](_0x10befa)[_0x50420d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x10befa(_0x50420d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59bdd7=0xcecbaa4^_0x8dc97f;function _0x4e54f4(){const _0x511225=_0x50420d([0x6c,0x6c,0x63,0x74,0x2d])+_0x235aac(_0x112c81(_0x3269b7)),_0x8dd64b=_0x528b13(_0x235aac(window[_0x50420d([0x4d,0x61,0x74,0x68])][_0x50420d([0x63,0x65,0x69,0x6c])](_0x25c2d4/_0x59bdd7)));window[_0x50420d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50420d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x511225,_0x8dd64b);}function _0x36853e(){const _0x285b71=_0x50420d([0x6c,0x6c,0x63,0x74,0x2d])+_0x235aac(_0x112c81(_0x3269b7)),_0x5bd4b9=window[_0x50420d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50420d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x285b71);return _0x5bd4b9?window[_0x50420d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x528b13(_0x5bd4b9),0x10)*_0x59bdd7:null;}function _0x226aa6(_0x377e36){return new window[(_0x50420d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x572418,_0x46de05)=>{_0x377e36[_0x50420d([0x74,0x68,0x65,0x6e])](_0x572418,_0x46de05),window[_0x50420d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46de05,0xcdb80e4^_0x8dc97f);});}}_0x5f3333[_0x50420d([0x6f,0x6e])](_0x50420d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f81d4,_0x545873)=>{if(_0x545873[0x0]!=_0x3269b7)return _0x10befa(_0x50420d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x545873[0x1]={..._0x545873[0x1],[_0x50420d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28e7de};},{[_0x50420d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50420d([0x68,0x69,0x67,0x68])}),_0x5f3333[_0x50420d([0x6f,0x6e])](_0x50420d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x54f5ca=>{_0x228352(_0x54f5ca[_0x50420d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e7b1a=!0x0,_0x25bd95(_0x54f5ca[_0x50420d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x50420d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50420d([0x6c,0x6f,0x77])}),_0x12e5f8[_0x50420d([0x74,0x68,0x65,0x6e])](()=>{_0x3e7b1a||_0x10befa(_0x50420d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x584986(){return _0x5f3333[_0x50420d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50420d([0x76,0x69,0x65,0x77])][_0x50420d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x50420d([0x61,0x75,0x74,0x6f]);}function _0x16906f(){_0x5f3333[_0x50420d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50420d([0x76,0x69,0x65,0x77])][_0x50420d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x50420d([0x61,0x75,0x74,0x6f]);}}function _0x28b59b(_0xcd8d01){const _0x59efac=[new window[(_0x50420d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ee1b6=>setTimeout(_0x4ee1b6,0xcd36ae8^_0x8dc97f)),_0x12e5f8[_0x50420d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x50420d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3710aa=>{const _0x3d641c=0xcda5423^_0x8dc97f,_0x93f44a=_0x313ae9[_0x50420d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3d9912(){_0x93f44a[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3d641c&&_0x3710aa();}_0x3d9912(),_0x93f44a[_0x50420d([0x6f,0x6e])](_0x50420d([0x61,0x64,0x64]),_0x3d9912);})),new window[(_0x50420d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44ff2c=>{function _0x48178e(){for(const _0x2457f0 in window)if(window[_0x50420d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x50420d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2457f0))&&window[_0x2457f0]==_0x3d5db5)return _0x44ff2c();_0x5f3333[_0x50420d([0x73,0x74,0x61,0x74,0x65])]!=_0x50420d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x50420d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48178e,0xcda47ac^_0x8dc97f);}_0x43ba17(_0x50420d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x48178e();})];return window[_0x50420d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x50420d([0x72,0x61,0x63,0x65])](_0x59efac)[_0x50420d([0x74,0x68,0x65,0x6e])](()=>_0xcd8d01);}async function _0x117415(){if(await _0x12e5f8,_0x43ba17(_0x50420d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2099fb=_0x313ae9[_0x50420d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x49b5f0=_0x313ae9[_0x50420d([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])](_0x2099fb[_0x50420d([0x69,0x64])]),_0x440438=_0x1ec07e(_0x50420d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x440438[_0x50420d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2099fb['id'],_0x49b5f0?_0x49b5f0['id']:null,!0x0),_0x440438[_0x50420d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x50420d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x440438[_0x50420d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x440438[_0x50420d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5cbf47,void(_0x440438[_0x50420d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5cbf47);}if(_0x43ba17(_0x50420d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x259baa=_0x1ec07e(_0x50420d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x259baa[_0x50420d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x50420d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x259baa[_0x50420d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x259baa[_0x50420d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5cbf47,_0x259baa[_0x50420d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5cbf47;}_0x5f3333[_0x50420d([0x6d,0x6f,0x64,0x65,0x6c])][_0x50420d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5cbf47,_0x5f3333[_0x50420d([0x6d,0x6f,0x64,0x65,0x6c])][_0x50420d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5cbf47,_0x5f3333[_0x50420d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x50420d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f4ff3(){return _0x43ba17(_0x50420d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1ec07e(_0x50420d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x50420d([0x73,0x74,0x61,0x74,0x65])]==_0x50420d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2eb773(){return _0x43ba17(_0x50420d([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 _0x2b0983(){return _0x43ba17(_0x50420d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x518949(_0x463525){const _0x400c16=_0x42ee18();_0x5f3333[_0x400c16]=_0x50420d([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])+_0x463525,_0x463525[_0x50420d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x50420d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x42ee18()]=_0x3d5db5),_0x463525!=_0x50420d([0x56,0x61,0x6c,0x69,0x64])&&_0x117415();}function _0x42ee18(){const _0x3745a=window[_0x50420d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x50420d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x50420d([0x6e,0x6f,0x77])]())[_0x50420d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x50420d([0x2e]),'');let _0x293b6a=_0x50420d([0x57]);for(let _0x169d0a=0x0;_0x169d0a<_0x3745a[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x169d0a+=0x2){let _0x2dbf1f=window[_0x50420d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3745a[_0x50420d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x169d0a,_0x169d0a+0x2));_0x2dbf1f>=_0xe89814[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2dbf1f-=_0xe89814[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x293b6a+=_0xe89814[_0x2dbf1f];}return _0x293b6a;}function _0x54696e(){const _0x128f7c=_0x3151f4[_0x50420d([0x73,0x70,0x6c,0x69,0x74])](_0x50420d([0x2e]));if(0x3!=_0x128f7c[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x380917(_0x128f7c[0x1]);function _0x380917(_0x1a6405){const _0x883ce6=_0x23556a(_0x1a6405);return _0x883ce6&&_0xdd7c79()?_0x883ce6:null;function _0xdd7c79(){const _0x336698=_0x883ce6[_0x50420d([0x6a,0x74,0x69])],_0x112aec=window[_0x50420d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x336698[_0x50420d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x336698[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x493178={..._0x883ce6,[_0x50420d([0x6a,0x74,0x69])]:_0x336698[_0x50420d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x336698[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x493178[_0x50420d([0x76,0x63])],_0x112c81(_0x493178)==_0x112aec;}}}async function _0x10bcef(){let _0x3dd861=!0x0;try{const _0x3545b5=_0x3151f4[_0x50420d([0x73,0x70,0x6c,0x69,0x74])](_0x50420d([0x2e])),[_0x3aeef1,_0x29e701,_0x515910]=_0x3545b5;return _0x42d6cb(_0x3aeef1),await _0xc581ad(_0x3aeef1,_0x29e701,_0x515910),_0x3dd861;}catch{return!0x1;}function _0x42d6cb(_0x2fe2de){const _0x4424eb=_0x23556a(_0x2fe2de);_0x4424eb&&_0x4424eb[_0x50420d([0x61,0x6c,0x67])]==_0x50420d([0x45,0x53,0x32,0x35,0x36])||(_0x3dd861=!0x1);}async function _0xc581ad(_0x5334c5,_0x2553d9,_0x47eff9){const _0x48801e=window[_0x50420d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x50420d([0x66,0x72,0x6f,0x6d])](_0x324ef6(_0x47eff9),_0x4f7d43=>_0x4f7d43[_0x50420d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35bd82=new window[(_0x50420d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x50420d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5334c5+_0x50420d([0x2e])+_0x2553d9),_0x3c72d2=window[_0x50420d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x50420d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c72d2)return;const _0x6dd9c=await _0x3c72d2[_0x50420d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x50420d([0x6a,0x77,0x6b]),_0x400873,{[_0x50420d([0x6e,0x61,0x6d,0x65])]:_0x50420d([0x45,0x43,0x44,0x53,0x41]),[_0x50420d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x50420d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x50420d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c72d2[_0x50420d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x50420d([0x6e,0x61,0x6d,0x65])]:_0x50420d([0x45,0x43,0x44,0x53,0x41]),[_0x50420d([0x68,0x61,0x73,0x68])]:{[_0x50420d([0x6e,0x61,0x6d,0x65])]:_0x50420d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6dd9c,_0x48801e,_0x35bd82)||(_0x3dd861=!0x1);}}function _0x23556a(_0x23dbbd){return _0x23dbbd[_0x50420d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x50420d([0x65,0x79]))?JSON[_0x50420d([0x70,0x61,0x72,0x73,0x65])](_0x324ef6(_0x23dbbd)):null;}function _0x324ef6(_0x34df65){return window[_0x50420d([0x61,0x74,0x6f,0x62])](_0x34df65[_0x50420d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x50420d([0x2b]))[_0x50420d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x50420d([0x2f])));}function _0x112c81(_0x3ee6bf){let _0xd034a=0x1505;function _0x548bb0(_0x414adf){for(let _0x3d0d95=0x0;_0x3d0d95<_0x414adf[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d0d95++){const _0x3a000c=_0x414adf[_0x50420d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d0d95);_0xd034a=(_0xd034a<<0x5)+_0xd034a+_0x3a000c,_0xd034a&=_0xd034a;}}function _0x2683c8(_0x41318e){Array[_0x50420d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41318e)?_0x41318e[_0x50420d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2683c8):_0x41318e&&typeof _0x41318e==_0x50420d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x50420d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41318e)[_0x50420d([0x73,0x6f,0x72,0x74])]()[_0x50420d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3dc679,_0x9128b9])=>{_0x548bb0(_0x3dc679),_0x2683c8(_0x9128b9);}):_0x548bb0(window[_0x50420d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41318e));}return _0x2683c8(_0x3ee6bf),_0xd034a>>>0x0;}function _0x235aac(_0x819fd7){return _0x819fd7[_0x50420d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x50420d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x50420d([0x30]));}function _0x528b13(_0x3ef6be){return _0x3ef6be[_0x50420d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x50420d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x50420d([0x6a,0x6f,0x69,0x6e])]('');}function _0x43ba17(_0xbabf9d){return _0x5f3333[_0x50420d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x50420d([0x68,0x61,0x73])](_0xbabf9d);}function _0x1ec07e(_0x274803){return _0x5f3333[_0x50420d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x50420d([0x67,0x65,0x74])](_0x274803);}function _0x5cbf47(){}function _0x50420d(_0x5563ba){return _0x5563ba['map'](_0x1d958a=>String['fromCharCode'](_0x1d958a))['join']('');}_0x518949(await _0x131aef());}(this);}['createRevision'](_0x54b121){const _0x345adc=this['editor']['plugins']['get']('Users');return new I({'id':_0x54b121['id'],'name':_0x54b121['name'],'creator':_0x54b121['creatorId']?_0x345adc['getUser'](_0x54b121['creatorId']):null,'diffData':_0x54b121['diffData']||_0x54b121['data'],'authors':_0x54b121['authorsIds']['map'](_0x3292eb=>_0x345adc['getUser'](_0x3292eb)),'createdAt':new Date(_0x54b121['createdAt']),'attributes':_0x54b121['attributes'],'fromVersion':_0x54b121['fromVersion'],'toVersion':_0x54b121['toVersion']});}['addRevision'](_0x65805c,_0x405b4f=0x0){this['_revisions']['add'](_0x65805c,_0x405b4f);}['getRevision'](_0xeb169d){return this['_revisions']['get'](_0xeb169d);}['getRevisions'](_0x34bdf7={'toJSON':!0x1}){const _0x30b1bb=Array['from'](this['_revisions']);return _0x30b1bb['reverse'](),_0x34bdf7['toJSON']?_0x30b1bb['map'](_0x11ea40=>_0x11ea40['toJSON']()):_0x30b1bb;}['getIndex'](_0x10652a){return this['_revisions']['getIndex'](_0x10652a);}['getEarlierVisibleRevision'](_0x560093){const [,_0x59aa6e]=this['getRevisionsIterator'](_0x560093,{'direction':'earlier'});return _0x59aa6e;}['getLaterVisibleRevision'](_0x36459b){const [,_0x12fbaa]=this['getRevisionsIterator'](_0x36459b,{'direction':'later'});return _0x12fbaa;}['getRevisionsInDiff'](_0x143887){const _0x20bb1b=[];for(const _0x105a09 of this['getRevisionsIterator'](_0x143887['newRevisionId']))if(_0x20bb1b['push'](_0x105a09),_0x105a09['id']===_0x143887['oldRevisionId'])break;return _0x20bb1b;}*['getRevisionsIterator'](_0x453318,{direction:_0x14d67e='earlier',filter:_0x85bb9f=()=>!0x0}={}){const _0x4d3b0c='earlier'===_0x14d67e?0x1:-0x1;let _0x3e1fba=this['_revisions']['get'](_0x453318),_0x4892fa=this['getIndex'](_0x3e1fba);for(yield _0x3e1fba;_0x3e1fba;){if(_0x4892fa+=_0x4d3b0c,_0x3e1fba=this['getRevision'](_0x4892fa),!_0x3e1fba)return;_0x85bb9f(_0x3e1fba)&&(yield _0x3e1fba);}}}class $ extends _0x5c2b79{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x1a2fdd,'c'],[_0x26a260,'a'],[_0x1c444e,'e'],[_0x35e6c8,'r'],[_0x2551aa,'u']]);['_typeCharToViewClass']=new Map([['c',_0x1a2fdd],['a',_0x26a260],['e',_0x1c444e],['r',_0x35e6c8],['u',_0x2551aa]]);async['loadRevisionData'](_0x270af7,_0xf6f49d){if(_0x270af7['diffData']||!_0xf6f49d)return;const _0x373b77=this['editor']['config']['get']('collaboration.channelId'),_0x3a42a4=await _0xf6f49d['getRevision']({'channelId':_0x373b77,'revisionId':_0x270af7['id']});_0x270af7['diffData']=_0x3a42a4['diffData'];}['getRevisionDocumentData'](_0x5c9c21){const _0x38b087={};for(const _0x4ae3f8 in _0x5c9c21['diffData']){if(_0x5c9c21['diffData'][_0x4ae3f8]['attachChange']&&!_0x5c9c21['diffData'][_0x4ae3f8]['attachChange']['isAttached'])continue;const _0x2906b7=this['_removeRevisionMarkers'](JSON['parse'](_0x5c9c21['diffData'][_0x4ae3f8]['insertions'])),_0x294260=this['editor']['editing']['view']['document'],_0x145907=new _0x135a1e(_0x294260,_0x2906b7['map'](_0x1899d2=>this['_getViewFromDiffObj'](_0x1899d2,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x38b087[_0x4ae3f8]=this['editor']['data']['processor']['toData'](_0x145907),this['editor']['data']['processor']['useFillerType']('default');}return _0x38b087;}['getRevisionRootsAttributes'](_0x6e1216){const _0x4125e5={};for(const _0x59371e in _0x6e1216['diffData'])_0x6e1216['diffData'][_0x59371e]['attachChange']&&!_0x6e1216['diffData'][_0x59371e]['attachChange']['isAttached']||(_0x4125e5[_0x59371e]=_0x6e1216['diffData'][_0x59371e]['attributesAfter']||{});return _0x4125e5;}['_getTypeCharForViewElement'](_0x3cce1c){return this['_viewClassToTypeChar']['get'](_0x3cce1c['constructor']);}['_getViewFromDiffObj'](_0x1c1d70,_0x2322fe){const _0x1c2b9f=this['editor']['editing']['view']['document'];if('string'==typeof _0x1c1d70)return new _0x62e9bb(_0x1c2b9f,_0x1c1d70);{let _0x26128e,_0x222bc6;_0x222bc6='u'==_0x1c1d70['type']||'r'==_0x1c1d70['type']?[]:_0x1c1d70['children']['map'](_0x976c16=>this['_getViewFromDiffObj'](_0x976c16,_0x2322fe));const _0x143960=this['_typeCharToViewClass']['get'](_0x1c1d70['type'])||_0x1b767c,_0x4811aa=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x26128e=new _0x143960(_0x1c2b9f,_0x1c1d70['name'],_0x1c1d70['attributes'],_0x222bc6),'u'==_0x1c1d70['type']&&_0x1c1d70['children'][0x0]){const _0x135520=_0x1c1d70['children'][0x0];if(_0x26128e['render']=function(_0x55c151){const _0x3a7d72=_0x55c151['createElement']('div');return _0x3a7d72['innerHTML']=_0x135520,_0x3a7d72['childNodes'][0x0];},_0x2322fe){const _0x2c5af1=new _0x135a1e(_0x1c2b9f);_0x2c5af1['_appendChild'](_0x26128e);const _0x15aebe=Array['from'](_0x4811aa['viewChildrenToDom'](_0x2c5af1,{'bind':!0x1})),_0x36938e=_0x4811aa['domDocument']['createElement']('div');_0x36938e['append'](..._0x15aebe),_0x26128e=Array['from'](_0x4811aa['domChildrenToView'](_0x36938e))[0x0];}}else{if('r'==_0x1c1d70['type']&&_0x1c1d70['children'][0x0]){const _0x4f2117=_0x1c1d70['children'][0x0];if(_0x26128e['render']=function(_0x5660ab){_0x5660ab['innerHTML']=_0x4f2117;},_0x2322fe){const _0x52f973=new _0x135a1e(_0x1c2b9f);_0x52f973['_appendChild'](_0x26128e);const _0x3ce521=Array['from'](_0x4811aa['viewChildrenToDom'](_0x52f973,{'bind':!0x1})),_0x519562=_0x4811aa['domDocument']['createElement']('div');_0x519562['append'](..._0x3ce521);const _0x5dadcc=Array['from'](_0x4811aa['domChildrenToView'](_0x519562));_0x5dadcc['length']>0x1?_0x26128e['_appendChild'](_0x5dadcc):_0x26128e=_0x5dadcc[0x0];}}}if(_0x1c1d70['customProperties']){for(const [_0x53b1e0,_0x41e075]of _0x1c1d70['customProperties'])_0x26128e['_setCustomProperty'](_0x53b1e0,_0x41e075);}const _0x5af673=void 0x0===_0x1c1d70['fillerOffset']?null:_0x1c1d70['fillerOffset'];return null!==_0x5af673&&(_0x26128e['getFillerOffset']=()=>_0x5af673),_0x26128e;}}['_makeModelFromViewString'](_0x3d91ea){const _0x45471f=JSON['parse'](_0x3d91ea),_0x44c5a6=this['editor']['editing']['view']['document'],_0x2e6eba=new _0x135a1e(_0x44c5a6,_0x45471f['map'](_0x5a23b6=>this['_getViewFromDiffObj'](_0x5a23b6,!0x0)));return this['editor']['data']['toModel'](_0x2e6eba);}['_removeRevisionMarkers'](_0x14f8ce){return(_0x14f8ce=_0x14f8ce['filter'](_0x330901=>!_0x330901['name']||'revision-start'!==_0x330901['name']&&'revision-end'!==_0x330901['name']))['forEach'](_0x12aeaa=>{'string'!=typeof _0x12aeaa&&(_0x12aeaa['children']=this['_removeRevisionMarkers'](_0x12aeaa['children']),_0x12aeaa['attributes']=_0x12aeaa['attributes']['filter'](_0xe4885a=>!_0xe4885a[0x0]['startsWith']('data-revision-')));}),_0x14f8ce;}}function R(_0x1451e4,_0x3ff4fe,_0x24383b){const t=_0x1451e4['t'];switch(_0x3ff4fe){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'},_0x24383b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x24383b);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 _0x5c2b79{['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[_0x35979b,S,$,_0x15c55a];}constructor(_0x308d79){super(_0x308d79),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1b7b01=_0x1d7c29();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1b7b01},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 _0x24a4fb=this['repository']['getRevision'](0x0),_0x301a06=_0x24a4fb&&null===_0x24a4fb['creator']?_0x24a4fb:null;if(this['_continueCurrentRevision']=!!_0x301a06&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x394add=this['_source']['getCurrentRevisionId'](),_0x38aadd=this['repository']['getRevision'](_0x394add);if(_0x38aadd)this['_startingVersion']=_0x38aadd['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2b6ed2=this['_source']['history']['_operations']['find'](_0xa9af2c=>!_0xa9af2c['_isInit']),_0x53f78d=_0x2b6ed2?_0x2b6ed2['baseVersion']:this['_source']['history']['version'];_0x24a4fb?(_0x24a4fb['toVersion']<_0x53f78d&&_0x24a4fb['_update']({'toVersion':_0x53f78d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x301a06['id'],this['_startingVersion']=_0x301a06['fromVersion']):(this['_startingVersion']=_0x24a4fb['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x53f78d,this['_continueCurrentRevision']=!0x1);}}else _0x301a06&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x301a06['toVersion'],this['editor']['model']['document']['history']['version']),_0x301a06['fromVersion']===_0x301a06['toVersion']?(0x0!==_0x301a06['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x301a06['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x301a06['id'],this['_startingVersion']=_0x301a06['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',_0x3651c7=>!_0x3651c7),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4e3498=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf6f97c;for(const _0x40d7a1 in _0x4e3498){const _0x563f1f=_0x40d7a1,_0x32c3bb=_0x4e3498[_0x563f1f];if('revisionHistoryLicenseKeyValid'==_0x32c3bb||'revisionHistoryLicenseKeyInvalid'==_0x32c3bb||'revisionHistoryLicenseKeyExpired'==_0x32c3bb||'revisionHistoryLicenseKeyDomainLimit'==_0x32c3bb||'revisionHistoryLicenseKeyNotAllowed'==_0x32c3bb||'revisionHistoryLicenseKeyEvaluationLimit'==_0x32c3bb||'revisionHistoryLicenseKeyTrialLimit'==_0x32c3bb||'revisionHistoryLicenseKeyUsageLimit'==_0x32c3bb){delete _0x4e3498[_0x563f1f],_0xf6f97c=_0x32c3bb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xf6f97c&&_0x4e3498['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xf6f97c&&_0x4e3498['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xf6f97c&&_0x4e3498['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xf6f97c&&_0x4e3498['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xf6f97c&&_0x4e3498['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xf6f97c&&_0x4e3498['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xf6f97c&&_0x4e3498['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5d7898=this['repository']['getRevision'](0x0),_0x522a2f=await this['getRevisionDocumentData'](_0x5d7898),_0x220dd3=await this['getRevisionRootsAttributes'](_0x5d7898);this['_replaceEditorDataWithRevisionData'](_0x522a2f,_0x220dd3);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1a1317){this['_source']=_0x1a1317;}async['update'](){const _0xff3685=await this['_source']['getLatestVersion']();if(_0xff3685>this['currentRevision']['toVersion']){await this['_loadState']();const _0x360e96=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xff3685});_0x360e96['authors']=_0x360e96['authorsIds']['map'](_0x1957e9=>this['editor']['plugins']['get']('Users')['getUser'](_0x1957e9)),this['currentRevision']['_update'](_0x360e96);}}async['saveRevision'](_0x4c0b57={},_0x26ea50=null){const _0x110af0=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x26ea50>this['currentRevision']['toVersion']&&(_0x26ea50=null),null===_0x26ea50&&(_0x26ea50=await this['_source']['getLatestVersion']());const _0x389f0b=this['_getFromVersion'](_0x26ea50),_0x1a7a7b=this['buildRevisionData']({'from':_0x389f0b,'to':_0x26ea50});if(this['currentRevision']['toVersion']<_0x26ea50){const _0x179a81=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x26ea50,'to':_0x26ea50});_0x179a81['authors']=[],_0x179a81['authorsIds']=[],_0x179a81['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x179a81,!0x0),delete _0x179a81['authors'],_0x110af0['push'](_0x179a81);}_0x4c0b57['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4c0b57['name']=_0x4c0b57['name']||null,_0x4c0b57['id']=_0x4c0b57['id']||_0x1d7c29(),_0x4c0b57={..._0x4c0b57,..._0x1a7a7b};const _0x541b33=this['addRevisionData'](_0x4c0b57);_0x110af0['push'](_0x4c0b57);const _0x4c90fa=this['repository']['getIndex'](_0x541b33);if(0x0!==_0x4c90fa){const _0x4a462b=this['repository']['getRevision'](_0x4c90fa-0x1);if(_0x4a462b['fromVersion']!==_0x26ea50){const _0xf1673=this['_revisionDataBuilder']['getData'](_0x26ea50,_0x4a462b['toVersion']),_0x48eba2={'id':_0x4a462b['id'],'diffData':_0xf1673['diffData'],'authorsIds':_0xf1673['authorsIds'],'authors':_0xf1673['authorsIds']['map'](_0x1b86cd=>this['editor']['plugins']['get']('Users')['getUser'](_0x1b86cd)),'fromVersion':_0x26ea50};_0x4a462b===this['currentRevision']&&(_0x48eba2['createdAt']=new Date(_0x4c0b57['createdAt']['getTime']()+0xa)),_0x4a462b['_update'](_0x48eba2,!0x0),delete _0x48eba2['authors'],_0x110af0['push'](_0x48eba2);}}if(this['adapter']){for(const _0x11bb01 of _0x110af0)this['_bufferUpdate'](_0x11bb01['id'],_0x11bb01,!0x0);this['sendBufferedUpdates']();}return _0x541b33;}['addRevisionData'](_0x1b8a29){const _0x139080=this['repository']['createRevision'](_0x1b8a29);return this['adapter']&&_0x139080['on']('_update',(_0xcf9d4f,_0xd34865,_0x57bcd7)=>{_0x57bcd7||(this['_bufferUpdate'](_0xd34865['id'],_0xd34865,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x139080,this['_findInsertionIndex'](_0x139080)),_0x139080;}async['getRevisionDocumentData'](_0x11f08e){return await this['_utils']['loadRevisionData'](_0x11f08e,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x11f08e);}async['getRevisionRootsAttributes'](_0xf8c957){return await this['_utils']['loadRevisionData'](_0xf8c957,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xf8c957);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x477c53=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xfa9cd0=0x0;_0xfa9cd0<_0x477c53['length'];_0xfa9cd0++){const _0x1020e2=_0x477c53[_0xfa9cd0];let _0x364e8e=!0x1;for(const _0x2e29b1 of Object['keys'](_0x1020e2))void 0x0===_0x1020e2[_0x2e29b1]?delete _0x1020e2[_0x2e29b1]:'id'!==_0x2e29b1&&(_0x364e8e=!0x0);_0x364e8e||(_0x477c53[_0xfa9cd0]=null);}if(_0x477c53=_0x477c53['filter'](_0x551351=>null!==_0x551351),!_0x477c53['length'])return;for(let _0x4b7d98=0x0;_0x4b7d98<_0x477c53['length'];_0x4b7d98++){const _0x203873=_0x477c53[_0x4b7d98];void 0x0!==_0x203873['fromVersion']&&void 0x0===_0x203873['toVersion']&&(_0x203873['toVersion']=this['repository']['getRevision'](_0x203873['id'])['toVersion']),void 0x0!==_0x203873['toVersion']&&void 0x0===_0x203873['fromVersion']&&(_0x203873['fromVersion']=this['repository']['getRevision'](_0x203873['id'])['fromVersion']);}const _0x272c66=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x477c53,_0x272c66)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x107ef6=>{if(_0x107ef6){for(const _0x245e96 of _0x107ef6)this['setRevisionData']({'id':_0x245e96['id'],'createdAt':_0x245e96['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x319354=null,from:_0xd9994b=null,to:_0x304d32=null}){_0xd9994b=null!==_0xd9994b?_0xd9994b:_0x319354['fromVersion'],_0x304d32=null!==_0x304d32?_0x304d32:_0x319354['toVersion'];const _0x225e09=this['_revisionDataBuilder']['getData'](_0xd9994b,_0x304d32),_0x6309c8={'diffData':_0x225e09['diffData'],'authorsIds':_0x225e09['authorsIds'],'fromVersion':_0xd9994b,'toVersion':_0x304d32};if(!_0x319354||_0x304d32!==_0x319354['toVersion']){const _0x415547=_0x304d32-0x1,_0x462bb4=this['_source']['history']['getOperation'](_0x415547);_0x6309c8['createdAt']=_0x462bb4&&_0x462bb4['createdAt']||new Date();}if(this['_loadedStateData']&&_0xd9994b===this['_loadedStateData']['fromVersion']){for(const _0x489948 of this['_loadedStateData']['authors'])_0x6309c8['authorsIds']['includes'](_0x489948['id'])||_0x6309c8['authorsIds']['push'](_0x489948['id']);}return _0x6309c8;}['_bufferUpdate'](_0x24c1d7,_0x4f1e58,_0x37ade0){if(this['_bufferedUpdates']['has'](_0x24c1d7)){const _0x4e39a5=this['_bufferedUpdates']['get'](_0x24c1d7);_0x4f1e58=_0x37ade0?{..._0x4e39a5,..._0x4f1e58}:{..._0x4f1e58,..._0x4e39a5};}this['_bufferedUpdates']['set'](_0x24c1d7,_0x4f1e58);}['setRevisionData'](_0x194727){const _0x49fe8b=this['repository']['getRevision'](_0x194727['id']);if(_0x194727['createdAt']&&(_0x194727['createdAt']=new Date(_0x194727['createdAt'])),_0x194727['authorsIds']){const _0x3b472e=this['editor']['plugins']['get']('Users');_0x194727['authors']=_0x194727['authorsIds']['map'](_0xf98316=>_0x3b472e['getUser'](_0xf98316));}_0x49fe8b['_update'](_0x194727,!0x0);}['_createInitialRevision'](_0x2799b3){const _0x15128d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x15128d)this['_initialRevisionId']=_0x15128d['id'];else{const _0x45c000=!this['editor']['model']['document']['roots']['find'](_0x113566=>this['editor']['model']['hasContent'](_0x113566)),_0x4761c0=this['editor']['plugins']['get']('Users')['me']['id'],_0x384e64=R(this['editor']['locale'],_0x45c000?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2799b3,'to':_0x2799b3,'id':this['_initialRevisionId'],'name':_0x384e64,'creatorId':_0x4761c0});}}['_createCurrentRevision'](_0x453558){const _0x453aa0=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x453aa0),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x453558,'to':_0x453558,'id':_0x453aa0,'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'](_0x355697,_0x4c4542){let _0x2197cf=this['editor']['config']['get']('initialData'),_0x7e0f3d=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2197cf){_0x2197cf={};for(const _0x42b509 of this['editor']['model']['document']['getRootNames']())_0x2197cf[_0x42b509]='';}if('string'==typeof _0x2197cf&&(_0x2197cf={'main':_0x2197cf}),void 0x0===_0x7e0f3d){_0x7e0f3d={};for(const _0x2916bf of this['editor']['model']['document']['getRootNames']())_0x7e0f3d[_0x2916bf]={};}let _0x484df9=!0x1;const _0x1eb22a=Object['keys'](_0x2197cf),_0x3319ea=Object['keys'](_0x355697);for(const _0x2167e5 of _0x1eb22a){if(_0x2197cf[_0x2167e5]!==_0x355697[_0x2167e5]&&''!==_0x2197cf[_0x2167e5]['trim']()){_0x484df9=!0x0;break;}if(!_0xa2c9de(_0x7e0f3d[_0x2167e5],_0x4c4542[_0x2167e5])&&Object['keys'](_0x7e0f3d[_0x2167e5])['length']>0x0){_0x484df9=!0x0;break;}}_0x484df9||(_0x484df9=_0x3319ea['some'](_0x582911=>!this['editor']['model']['document']['getRoot'](_0x582911))),_0x484df9&&_0x3c46a5('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2197cf,'editorRootsAttributes':_0x7e0f3d,'revisionData':_0x355697,'revisionRootsAttributes':_0x4c4542}),this['editor']['config']['set']('initialData',_0x355697),this['editor']['config']['set']('rootsAttributes',_0x4c4542);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x21354f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x21354f['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x52e067){const _0x179a5f=this['repository']['getRevisions']();_0x179a5f['reverse']();let _0x12f661=0x0;for(;_0x12f661<_0x179a5f['length'];){const _0x5a953e=_0x179a5f[_0x12f661];if(_0x5a953e===this['currentRevision']){_0x12f661++;continue;}if(_0x5a953e['id']===this['_initialRevisionId'])break;const _0x39f4af=_0x52e067['toVersion']-_0x5a953e['toVersion']||_0x52e067['fromVersion']-_0x5a953e['fromVersion'];if(_0x39f4af>0x0)break;if(_0x39f4af<0x0)_0x12f661++;else{if(!_0x52e067['creator']&&_0x5a953e['creator'])break;if(_0x5a953e['creator']||!_0x52e067['creator']){if(_0x52e067['createdAt']>_0x5a953e['createdAt'])break;_0x12f661++;}else _0x12f661++;}}return _0x12f661;}['_getFromVersion'](_0x3013c4){const _0x32b515=this['repository']['getRevisions']();_0x32b515['reverse'](),_0x32b515['shift']();const _0x5087c8=_0x32b515['find'](_0x5a078c=>_0x5a078c['toVersion']<=_0x3013c4)['toVersion'];return _0x5087c8<this['_startingVersion']?this['_startingVersion']:_0x5087c8;}['_makeRevision']({name:_0x1945fb,from:_0x271584,to:_0xb118a2,creatorId:_0x3e95bf,id:_0x5d9746}){const _0x7c9978=this['buildRevisionData']({'from':_0x271584,'to':_0xb118a2});_0x7c9978['name']=_0x1945fb,_0x7c9978['creatorId']=_0x3e95bf,_0x7c9978['id']=_0x5d9746;const _0x2c03c2=this['addRevisionData'](_0x7c9978);return this['adapter']&&this['_bufferUpdate'](_0x7c9978['id'],_0x7c9978,!0x0),_0x2c03c2;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x44bd9e){this['editor']=_0x44bd9e,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'](_0x58767b){this['source']=_0x58767b;const _0x20b32f=new Map(),_0x388c58=new Map(),_0x2a0e98=this['editor']['model']['document']['roots']['map'](_0x3141d1=>_0x3141d1['rootName']);for(const _0x3dc9c3 of _0x2a0e98){const _0x3274b9=this['editor']['model']['document']['getRoot'](_0x3dc9c3),_0x40bd81=x(_0x3274b9);_0x20b32f['set'](_0x3dc9c3,_0x40bd81),_0x388c58['set'](_0x3dc9c3,Object['fromEntries'](_0x3274b9['getAttributes']()));}const _0x4b395c=Array['from'](this['editor']['model']['markers'])['map'](_0x7b3adf=>[_0x7b3adf['name'],_0x7b3adf['getRange']()]),_0x120966=this['source']['version'];this['_saveMetaData'](_0x120966,_0x20b32f,_0x4b395c,_0x388c58),this['_startingRevisionId']=this['_revisionId'];const _0x29f83c=new Map(),_0x5c15ec=new Map();for(const _0x7a65c9 of _0x2a0e98){const _0x4d94c8=N(_0x7a65c9);_0x29f83c['set'](_0x7a65c9,_0x4d94c8),_0x5c15ec['set'](_0x7a65c9,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x29f83c,[],_0x5c15ec);}['getData'](_0x4bce0e,_0x15ad4b){if(this['_lastFrom']===_0x4bce0e&&this['_lastTo']<=_0x15ad4b)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x15ad4b,!0x0);else{if(!this['_savedMetaData']['has'](_0x4bce0e)){const _0x576ff2=this['_getPreviousFrom'](_0x4bce0e);this['_calculateMetaData'](_0x576ff2,_0x4bce0e,!0x1);}this['_calculateMetaData'](_0x4bce0e,_0x15ad4b,!0x0);}return this['_lastFrom']=_0x4bce0e,this['_lastTo']=_0x15ad4b,this['_getState']();}['loadState'](_0x345d79){const _0x31514c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x345d79['fromVersion'],this['_lastTo']=_0x345d79['toVersion'];for(const _0x1224eb in _0x345d79['diffData']){const _0xf46d13=_0x345d79['diffData'][_0x1224eb]['attachChange'],_0x39a391=_0x452048(_0x345d79['diffData'][_0x1224eb]['attributesBefore'])||{},_0x148605=_0x31514c['_makeModelFromViewString'](_0x345d79['diffData'][_0x1224eb]['deletions']);_0x148605['rootName']=_0x1224eb,_0x148605['_isAttached']=!_0xf46d13||!_0xf46d13['isAttached'],_0x148605['isAttached']=()=>_0x148605['_isAttached'],this['_baseRoots']['set'](_0x1224eb,_0x148605),this['_baseRootsAttributes']['set'](_0x1224eb,_0x39a391),_0xf46d13&&this['_touchedRoots']['set'](_0x1224eb,_0xf46d13);const _0x24e161=this['_makeIdsRoot'](_0x148605);this['_baseIdsRoots']['set'](_0x1224eb,_0x24e161);for(const [_0x4c5613,_0xd28de9]of _0x148605['markers']){if(!_0x4c5613['startsWith']('revision:'))continue;const _0xf7c69b=_0x4c5613['split'](':')[0x2];for(const _0x357082 of _0xd28de9['getWalker']({'singleCharacters':!0x0})){const _0x86cf8=this['_getVidAttributeName'](_0x357082),_0x1f59c0='elementEnd'==_0x357082['type']?_0x357082['previousPosition']['path']['slice'](0x0,-0x1):_0x357082['previousPosition']['path'],_0x9be06f=_0x24e161['getNodeByPath'](_0x1f59c0)['getAttribute'](_0x86cf8);this['_touched']['set'](_0x9be06f,{'userId':_0xf7c69b});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3269af=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xe00e62=>!this['_touched']['has'](_0xe00e62));let _0x3dd439=0x0;const _0xbe2d99=new Map();for(const _0x4f4f88 in _0x345d79['diffData']){const _0x5d4b71=_0x345d79['diffData'][_0x4f4f88]['attachChange'],_0x58f543=_0x452048(_0x345d79['diffData'][_0x4f4f88]['attributesAfter'])||{},_0x4b13d9=_0x31514c['_makeModelFromViewString'](_0x345d79['diffData'][_0x4f4f88]['insertions']);_0x4b13d9['rootName']=_0x4f4f88,_0x4b13d9['_isAttached']=!_0x5d4b71||_0x5d4b71['isAttached'],_0x4b13d9['isAttached']=()=>_0x4b13d9['_isAttached'],this['_diffRoots']['set'](_0x4f4f88,_0x4b13d9),this['_diffRootsAttributes']['set'](_0x4f4f88,_0x58f543);const _0x7f18c8=this['_makeIdsRoot'](_0x4b13d9,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4f4f88,_0x7f18c8),_0xbe2d99['set'](_0x4f4f88,_0x4b13d9['isAttached']()?_0x58f543:{});for(const [_0x3c67b8,_0x3ffb03]of _0x4b13d9['markers']){if(!_0x3c67b8['startsWith']('revision:'))continue;const _0x2b3eca=_0x3c67b8['split'](':')[0x2];for(const _0x3805a5 of _0x3ffb03['getWalker']({'singleCharacters':!0x0})){const _0x2867e7=this['_getVidAttributeName'](_0x3805a5),_0x398de6=this['_revisionId']++,_0x5b726a='elementEnd'==_0x3805a5['type']?_0x3805a5['previousPosition']['path']['slice'](0x0,-0x1):_0x3805a5['previousPosition']['path'];_0x7f18c8['getNodeByPath'](_0x5b726a)['_setAttribute'](_0x2867e7,_0x398de6),this['_touched']['set'](_0x398de6,{'userId':_0x2b3eca});}}for(const _0x4ffa4b of this['editor']['model']['createRangeIn'](_0x4b13d9)['getWalker']({'singleCharacters':!0x0})){const _0x59bf7e=this['_getVidAttributeName'](_0x4ffa4b),_0x57dddc='elementEnd'==_0x4ffa4b['type']?_0x4ffa4b['previousPosition']['path']['slice'](0x0,-0x1):_0x4ffa4b['previousPosition']['path'],_0x86c2ec=_0x7f18c8['getNodeByPath'](_0x57dddc);_0x86c2ec['getAttribute'](_0x59bf7e)>0x0||_0x86c2ec['_setAttribute'](_0x59bf7e,_0x3269af[_0x3dd439++]);}for(const [_0xc0e756,_0x49b821]of _0x4b13d9['markers'])_0xc0e756['startsWith']('revision:')||this['_markers']['set'](_0xc0e756,_0x49b821);}const _0x3067cb=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3067cb),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3067cb,0x1));const _0x11b8eb=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x11b8eb),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x11b8eb,0x1));const _0x43857f=Array['from'](this['_diffRoots'])['map'](([_0x8f795e,_0x3311b0])=>[_0x8f795e,x(_0x3311b0)]);this['_saveMetaData'](this['_lastTo'],_0x43857f,this['_markers'],_0xbe2d99);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x291a70,_0x491be9,_0x23be7f,_0x208acf){const _0x52db72=new Map(_0x491be9),_0x442341=new Map(_0x452048(_0x208acf)),_0x153f01=new Map();for(const [_0x137dec,_0x102cfb]of _0x23be7f)_0x153f01['set'](_0x137dec,{'start':_0x102cfb['start']['clone'](),'end':_0x102cfb['end']['clone'](),'rootName':_0x102cfb['root']['rootName']});this['_savedMetaData']['set'](_0x291a70,{'roots':_0x52db72,'markers':_0x153f01,'rootsAttributes':_0x442341});}['_removeMetaData'](_0x15266e){this['_savedMetaData']['delete'](_0x15266e);}['_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'](_0x2d89d5,_0x1da025=null){let _0x38c04d=null;_0x2d89d5['is']('documentFragment')||(_0x38c04d=new _0x1e48aa(_0x2d89d5['name'],{'vid_start':null===_0x1da025?this['_revisionId']++:_0x1da025++}));const _0x3307b6=[];for(const _0x32c297 of _0x2d89d5['getChildren']())if(_0x32c297['is']('element')){_0x3307b6['push'](this['_makeIdsRoot'](_0x32c297,_0x1da025));const _0xd80be3=_0x3307b6[_0x3307b6['length']-0x1];null!==_0x1da025&&(_0x1da025=_0xd80be3['is']('element','$text')?_0xd80be3['getAttribute']('vid')+0x1:_0xd80be3['getAttribute']('vid_end')+0x1);}else{for(let _0x3fc260=0x0;_0x3fc260<_0x32c297['offsetSize'];_0x3fc260++)_0x3307b6['push'](new _0x1e48aa('$text',{'vid':null===_0x1da025?this['_revisionId']++:_0x1da025++}));}if(_0x2d89d5['is']('documentFragment')){const _0x3a9b2d=N(_0x2d89d5['rootName']);return _0x3a9b2d['_insertChild'](0x0,_0x3307b6),_0x3a9b2d;}return _0x38c04d['_setAttribute']('vid_end',null===_0x1da025?this['_revisionId']++:_0x1da025++),_0x38c04d['_insertChild'](0x0,_0x3307b6),_0x38c04d;}['_calculateMetaData'](_0x194437,_0x3190f9,_0x512287){this['_reset']();const {roots:_0x52f239,markers:_0xcfb00a,rootsAttributes:_0x54c181}=this['_savedMetaData']['get'](_0x194437);this['_baseRoots']=new Map(_0x52f239),this['_baseRootsAttributes']=new Map(_0x452048(_0x54c181));for(const [_0x5cb87f,_0x497ddc]of this['_baseRoots'])if('$graveyard'!==_0x5cb87f&&(this['_diffRoots']['set'](_0x5cb87f,x(_0x497ddc)),this['_diffRootsAttributes']=new Map(_0x452048(_0x54c181)),_0x512287)){const _0x41e68c=this['_revisionId'];this['_idsRoots']['set'](_0x5cb87f,this['_makeIdsRoot'](_0x497ddc)),this['_baseIdsRoots']['set'](_0x5cb87f,this['_makeIdsRoot'](_0x497ddc,_0x41e68c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x512287&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x24c0d3,_0x3b1d42]of _0xcfb00a){const _0x95f306=this['_baseRoots']['get'](_0x3b1d42['rootName']),_0x1f06d1=this['_diffRoots']['get'](_0x3b1d42['rootName']),_0x474ced=new _0x18a03a(this['_fixPosition'](_0x3b1d42['start'],_0x95f306),this['_fixPosition'](_0x3b1d42['end'],_0x95f306)),_0x19054d=this['_fixRange'](_0x474ced,_0x1f06d1);_0x95f306['markers']['set'](_0x24c0d3,_0x474ced),this['_markers']['set'](_0x24c0d3,_0x19054d);}this['_applyOperations'](_0x194437,_0x3190f9,_0x512287);}['_applyOperations'](_0x541133,_0x218a31,_0x33c863){for(const _0x5c8a02 of this['source']['getOperations'](_0x541133,_0x218a31))this['_handleOperation'](_0x5c8a02,_0x33c863);for(const _0x12ac8f of this['_diffRoots']['values']())_0x12ac8f['markers']['clear']();for(const [_0x50485d,_0x1578f4]of this['_markers']){this['_diffRoots']['get'](_0x1578f4['root']['rootName'])['markers']['set'](_0x50485d,_0x1578f4['clone']());}const _0x59eb53=new Map(),_0x1b1417=new Map();for(const [_0x439493,_0x55ae5c]of this['_diffRoots'])_0x59eb53['set'](_0x439493,x(_0x55ae5c)),_0x1b1417['set'](_0x439493,this['_diffRootsAttributes']['get'](_0x439493));this['_saveMetaData'](_0x218a31,_0x59eb53,this['_markers'],_0x1b1417);}['_getPreviousFrom'](_0x13b4ad){const _0x2b2518=Array['from'](this['_savedMetaData']['keys']());_0x2b2518['sort']((_0x224b12,_0x588c7c)=>_0x224b12-_0x588c7c),_0x2b2518['reverse']();for(const _0x4afca6 of _0x2b2518)if(_0x4afca6<_0x13b4ad)return _0x4afca6;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x566690,_0x148dd5){const _0x2b3dfb=Array['from'](_0x148dd5['markers'])['map'](([_0x44c22b,_0x1cfb7f])=>[_0x44c22b,this['_fixRange'](_0x1cfb7f,_0x566690)]);_0x566690['markers']=new Map(_0x2b3dfb);}['_transformMarkers'](_0x404593){for(const _0x332fc4 of this['_markers']['values']()){const _0x3a5263=_0x332fc4['getTransformedByOperation'](_0x404593),_0x2ecbe2=_0x18a03a['_createFromRanges'](_0x3a5263);_0x332fc4['start']=_0x2ecbe2['start'],_0x332fc4['end']=_0x2ecbe2['end'];}}['_handleOperation'](_0x52d0f2,_0x302c4e){if('addRoot'!=_0x52d0f2['type']&&'detachRoot'!=_0x52d0f2['type']){if('insert'==_0x52d0f2['type']){const _0x8cd3d0=_0x52d0f2['position']['root']['rootName'];this['_diffRoots']['has'](_0x8cd3d0)||(this['_diffRoots']['set'](_0x8cd3d0,N(_0x8cd3d0,!0x0)),this['_diffRootsAttributes']['set'](_0x8cd3d0,{}),_0x302c4e&&this['_idsRoots']['set'](_0x8cd3d0,N(_0x8cd3d0,!0x0)));}else{if('addRootAttribute'==_0x52d0f2['type']||'removeRootAttribute'==_0x52d0f2['type']||'changeRootAttribute'==_0x52d0f2['type'])return void this['_handleRootAttributeOperation'](_0x52d0f2);'marker'==_0x52d0f2['type']&&this['_handleMarkerOperation'](_0x52d0f2);}if('marker'!==_0x52d0f2['type']){const _0x5351eb=this['_cloneOperation'](_0x52d0f2,this['_diffRoots']);_0x5351eb['_execute'](),this['_transformMarkers'](_0x5351eb);}if(_0x302c4e)switch(_0x52d0f2['type']){case'insert':this['_handleInsertOperation'](_0x52d0f2);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x52d0f2);break;case'merge':this['_handleMergeOperation'](_0x52d0f2);break;case'split':this['_handleSplitOperation'](_0x52d0f2);}}else this['_handleRootOperation'](_0x52d0f2,_0x302c4e);}['_cloneOperation'](_0x44e82f,_0x16d13e){const _0xbb773=_0x44e82f['clone']();return _0xbb773['_authorId']=_0x44e82f['_authorId'],this['_fixOperation'](_0xbb773,_0x16d13e),_0xbb773;}['_getBaseVids'](_0x4dc19f){return _0x4dc19f['map'](_0x35a13a=>{const _0x1e73d3=this['_getVidAttributeName'](_0x35a13a);return Number(_0x35a13a['item']['getAttribute'](_0x1e73d3));});}['_generateTape'](_0x10837e,_0x5acecd){if(_0x10837e['is']('element','$text'))_0x5acecd['push']({'item':_0x10837e,'type':'text'});else{_0x10837e['is']('element')&&_0x5acecd['push']({'item':_0x10837e,'type':'elementStart'});for(const _0x4542d1 of _0x10837e['getChildren']())this['_generateTape'](_0x4542d1,_0x5acecd);_0x10837e['is']('element')&&_0x5acecd['push']({'item':_0x10837e,'type':'elementEnd'});}return _0x5acecd;}['_getState'](){const _0x11deae=new Map(this['_touched']),_0x1b8d55=new Map(_0x11deae),_0x438462=new Map(),_0x342f45={'insertions':{},'deletions':{}},_0xf51b62={'insertions':{},'deletions':{}},_0x229ddf=new Map(),_0xbe6f15=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xbe6f15['delete']('$graveyard');for(const _0x543ac5 of _0xbe6f15){const _0x1c2326=this['_diffRoots']['get'](_0x543ac5)||N(_0x543ac5,!0x1),_0x4a17eb=this['_baseRoots']['get'](_0x543ac5)||N(_0x543ac5,!0x1);_0x1c2326['isAttached']()||_0x4a17eb['isAttached']()?(_0x342f45['insertions'][_0x543ac5]=x(_0x1c2326),_0x342f45['deletions'][_0x543ac5]=x(_0x4a17eb),this['_copyMarkers'](_0x342f45['deletions'][_0x543ac5],_0x4a17eb),this['_copyMarkers'](_0x342f45['insertions'][_0x543ac5],_0x1c2326),_0xf51b62['insertions'][_0x543ac5]=this['_generateTape'](this['_idsRoots']['get'](_0x543ac5),[]),_0xf51b62['deletions'][_0x543ac5]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x543ac5)||N(_0x543ac5,!0x1),[])):_0xbe6f15['delete'](_0x543ac5);}for(const _0x2505d0 of _0xbe6f15){const _0x137dca=_0xf51b62['insertions'][_0x2505d0];for(const _0x38c1d1 of _0x137dca){const _0x4cfe0b=this['_getVidAttributeName'](_0x38c1d1),_0x46f17c=_0x38c1d1['item']['getAttribute'](_0x4cfe0b);_0x1b8d55['delete'](_0x46f17c),_0x46f17c>=this['_startingRevisionId']&&_0x438462['set'](_0x46f17c,_0x11deae['get'](_0x46f17c));}}for(const _0x1d31fc of _0xbe6f15){const _0x3160bf=_0xf51b62['insertions'][_0x1d31fc],_0x19e945=this['_getBaseVids'](_0xf51b62['deletions'][_0x1d31fc]);let _0x327561=0x0;for(const _0x7d0605 of _0x3160bf){const _0x5dfef1=this['_getVidAttributeName'](_0x7d0605),_0x572e54=_0x7d0605['item']['getAttribute'](_0x5dfef1);if(!_0x438462['has'](_0x572e54)&&!_0x229ddf['has'](_0x572e54)){if(_0x1b8d55['has'](_0x572e54))_0x327561++;else{if(_0x572e54!=_0x19e945[_0x327561]){const _0x1f2c8e=_0x11deae['get'](_0x572e54)||_0x11deae['get'](_0x19e945[_0x327561]);for(;_0x572e54!=_0x19e945[_0x327561];)_0x1b8d55['has'](_0x19e945[_0x327561])||(_0x229ddf['set'](_0x19e945[_0x327561],_0x1f2c8e),_0x11deae['set'](_0x19e945[_0x327561],_0x1f2c8e)),_0x327561++;}_0x327561++;}}}}for(const _0x4774cc of _0xbe6f15){const _0x449ef0=_0xf51b62['insertions'][_0x4774cc];for(const _0x33e9c3 of _0x449ef0){const _0xf4a420=this['_getVidAttributeName'](_0x33e9c3),_0x1dfce1=_0x33e9c3['item']['getAttribute'](_0xf4a420);if(_0x229ddf['has'](_0x1dfce1)){const _0x844498=_0x229ddf['get'](_0x1dfce1);_0x1b8d55['has'](_0x1dfce1)||_0x1b8d55['set'](_0x1dfce1,{..._0x844498}),_0x438462['set'](_0x1dfce1,{..._0x844498});}}}for(const _0x3718a5 of _0x1b8d55['keys']())_0x3718a5>=this['_startingRevisionId']&&_0x1b8d55['delete'](_0x3718a5);const _0xd75771=new Map();for(const _0x3b57fb of _0xbe6f15){let _0x1b44f8=_0xf51b62['insertions'][_0x3b57fb];for(const _0x8e23a7 of _0x1b44f8)if(_0x8e23a7['item']['is']('element','tableCell')){const _0x5bd5a6=this['_getVidAttributeName'](_0x8e23a7),_0xd42f16=_0x8e23a7['item']['getAttribute'](_0x5bd5a6);if(_0x438462['has'](_0xd42f16)){const _0x23894d=_0x8e23a7['item']['parent']['parent']['getAttribute']('vid_start'),_0x17930b=_0xd75771['get'](_0x23894d)||new Set();_0x17930b['add'](_0x438462['get'](_0xd42f16)['userId']),_0xd75771['set'](_0x23894d,_0x17930b);}}_0x1b44f8=_0xf51b62['deletions'][_0x3b57fb];for(const _0x2c64cd of _0x1b44f8)if(_0x2c64cd['item']['is']('element','tableCell')){const _0x2a5665=this['_getVidAttributeName'](_0x2c64cd),_0x1fac44=_0x2c64cd['item']['getAttribute'](_0x2a5665);if(_0x1b8d55['has'](_0x1fac44)){const _0x260084=_0x2c64cd['item']['parent']['parent']['getAttribute']('vid_start'),_0x47b2dd=_0xd75771['get'](_0x260084)||new Set();_0x47b2dd['add'](_0x1b8d55['get'](_0x1fac44)['userId']),_0xd75771['set'](_0x260084,_0x47b2dd);}}for(const _0x3393a5 of _0xd75771['keys']())(_0x438462['has'](_0x3393a5)||_0x1b8d55['has'](_0x3393a5))&&_0xd75771['delete'](_0x3393a5);}for(const _0x183ea2 of _0xbe6f15){const _0x28990b=_0xf51b62['insertions'][_0x183ea2];let _0x1823cf=null,_0x179bcb=null;for(const _0x4fe9b9 of _0x28990b){const _0x502cc3=this['_getVidAttributeName'](_0x4fe9b9),_0x3a7b6e=_0x4fe9b9['item']['getAttribute'](_0x502cc3),_0x324d0c=_0xd75771['get'](_0x3a7b6e);_0x324d0c&&'elementStart'==_0x4fe9b9['type']&&(_0x1823cf=Array['from'](_0x324d0c)[0x0],_0x179bcb=_0x4fe9b9['item']['getAttribute']('vid_end')),_0x1823cf&&(_0x1b8d55['set'](_0x3a7b6e,{'userId':_0x1823cf}),_0x438462['set'](_0x3a7b6e,{'userId':_0x1823cf})),_0x3a7b6e==_0x179bcb&&(_0x1823cf=null,_0x179bcb=null);}}const _0x10c227={},_0xcfba64=new Set();for(const _0xa17629 of _0xbe6f15){const _0x20c5bb=_0x342f45['deletions'][_0xa17629],_0x422696=_0x342f45['insertions'][_0xa17629];for(const {userId:_0x2099de}of this['_touchedMarkers']['values']())null!==_0x2099de&&_0xcfba64['add'](_0x2099de);for(const {userId:_0x4c98fc}of this['_touchedRoots']['values']())null!==_0x4c98fc&&_0xcfba64['add'](_0x4c98fc);this['_markChanges'](_0x422696,_0xf51b62['insertions'][_0xa17629],_0x438462,'insertion',_0xcfba64),this['_markChanges'](_0x20c5bb,_0xf51b62['deletions'][_0xa17629],_0x1b8d55,'deletion',_0xcfba64),_0x10c227[_0xa17629]={'insertions':this['_prepareViewToSave'](_0x422696),'deletions':this['_prepareViewToSave'](_0x20c5bb),'attachChange':this['_touchedRoots']['get'](_0xa17629)||null,'attributesBefore':_0x452048(this['_baseRootsAttributes']['get'](_0xa17629))||{},'attributesAfter':_0x452048(this['_diffRootsAttributes']['get'](_0xa17629))};}return{'diffData':_0x10c227,'authorsIds':Array['from'](_0xcfba64)};}['_processRootBeforeSave'](_0x16166d){for(const [,_0x8670dd]of _0x16166d['markers']){const _0x5ce896=_0x8670dd['start']['getAncestors']()['filter'](_0x1e8cb1=>'tableCell'==_0x1e8cb1['name']);for(const _0x2736b1 of _0x5ce896)0x1==_0x2736b1['childCount']&&_0x2736b1['getChild'](0x0)['is']('element','paragraph')&&_0x2736b1['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4621ad){this['_processRootBeforeSave'](_0x4621ad);const _0x1f8038=this['editor']['data']['toView'](_0x4621ad,{}),_0x82ad07=Array['from'](_0x1f8038['getChildren']())['map'](_0x103d8e=>this['_getViewJson'](_0x103d8e));return JSON['stringify'](_0x82ad07);}['_getViewJson'](_0x1ad26a){if(_0x1ad26a['is']('$text'))return _0x1ad26a['data'];{const _0x45367a=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x28ffd9=_0x1ad26a,_0x71647c=this['editor']['data']['htmlProcessor']['domConverter'],_0x55ad26={'type':_0x45367a['_getTypeCharForViewElement'](_0x28ffd9),'name':_0x28ffd9['name'],'attributes':Array['from'](_0x28ffd9['getAttributes']()),'children':Array['from'](_0x28ffd9['getChildren']())['map'](_0x447642=>this['_getViewJson'](_0x447642))};if(_0x1ad26a['is']('uiElement')&&'$comment'!=_0x1ad26a['name']){const _0x3b845d=_0x1ad26a['render'](_0x71647c['domDocument'],_0x71647c);_0x55ad26['children']['push'](_0x3b845d['outerHTML']);}else{if(_0x1ad26a['is']('rawElement')){const _0x2a2024=_0x71647c['domDocument']['createElement'](_0x28ffd9['name']);_0x1ad26a['render'](_0x2a2024,_0x71647c),_0x55ad26['children']['push'](_0x2a2024['innerHTML']);}}const _0x1a4cb1=Array['from'](_0x28ffd9['getCustomProperties']());_0x1a4cb1['length']>0x0&&(_0x55ad26['customProperties']=_0x1a4cb1);const _0x30a900=_0x28ffd9['getFillerOffset']();return null!==_0x30a900&&(_0x55ad26['fillerOffset']=_0x30a900),_0x55ad26;}}['_markChanges'](_0x16df2f,_0x164e3a,_0x8dbfdb,_0x33601c,_0x397d50){let _0x30ad63=null,_0x49772d=null,_0x58477f=0x0;const _0x384872=this['editor']['model'];for(let _0x5925de=0x0;_0x5925de<_0x164e3a['length'];_0x5925de++){const _0x159199=this['_getVidAttributeName'](_0x164e3a[_0x5925de]),_0x410074=_0x164e3a[_0x5925de]['item']['getAttribute'](_0x159199),_0x594340=_0x8dbfdb['get'](_0x410074),_0x8520d6=_0x5925de==_0x164e3a['length']-0x1;(!_0x30ad63&&_0x594340&&(_0x30ad63=_0x594340,_0x49772d=_0x164e3a[_0x5925de]),_0x30ad63&&(!_0x594340||_0x594340['userId']!=_0x30ad63['userId']))&&(_0x1cdeda(_0x594340,P(_0x49772d,_0x16df2f,_0x384872),P(_0x164e3a[_0x5925de],_0x16df2f,_0x384872)),_0x30ad63=_0x594340||null,_0x49772d=_0x594340?_0x164e3a[_0x5925de]:null),_0x30ad63&&_0x8520d6&&_0x1cdeda(_0x594340,P(_0x49772d,_0x16df2f,_0x384872),V(_0x164e3a[_0x5925de],_0x16df2f,_0x384872));}function _0x1cdeda(_0x23cf4e,_0x597130,_0x262a9c){const _0x466cff=_0x30ad63['userId'],_0x228db0='revision:'+_0x33601c+':'+_0x466cff+':'+_0x58477f++,_0xa99aeb=_0x384872['createRange'](_0x597130,_0x262a9c);_0x16df2f['markers']['set'](_0x228db0,_0xa99aeb),null!==_0x466cff&&_0x397d50['add'](_0x466cff);}}['_getVidAttributeName'](_0xd4f2f){switch(_0xd4f2f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x568046,_0x14dbfc){_0x568046['baseVersion']=null;for(const _0x5dafba in _0x568046){const _0xd4c1fc=_0x568046[_0x5dafba];if(_0xd4c1fc instanceof _0x31921d){const _0x225f73=_0x14dbfc['get'](_0xd4c1fc['root']['rootName']);_0x568046[_0x5dafba]=this['_fixPosition'](_0xd4c1fc,_0x225f73);}if(_0xd4c1fc instanceof _0x18a03a){const _0x3c6e3d=_0x14dbfc['get'](_0xd4c1fc['root']['rootName']);_0x568046[_0x5dafba]=this['_fixRange'](_0xd4c1fc,_0x3c6e3d);}'root'===_0x5dafba&&(_0x568046['root']=_0x14dbfc['get'](_0x568046['root']['rootName']));}}['_fixRange'](_0x48ca5a,_0x539e1f){return this['editor']['model']['createRange'](this['_fixPosition'](_0x48ca5a['start'],_0x539e1f),this['_fixPosition'](_0x48ca5a['end'],_0x539e1f));}['_fixPosition'](_0x59e325,_0x52bfb7){return this['editor']['model']['createPositionFromPath'](_0x52bfb7,_0x59e325['path'],_0x59e325['stickiness']);}['_handleInsertOperation'](_0x3fbe08){const _0xd35c17=this['_idsRoots']['get'](_0x3fbe08['position']['root']['rootName']),_0xe1010b=this['_fixPosition'](_0x3fbe08['position'],_0xd35c17),_0x4cbb87=null===_0x3fbe08['_authorId']?null:_0x3fbe08['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x57521a=_0xe1010b['parent'],_0x57f172=this['_revisionId'],_0xf56b15=[];for(const _0x5e29d7 of _0x3fbe08['nodes'])if(_0x5e29d7['is']('element'))_0xf56b15['push'](this['_makeIdsRoot'](_0x5e29d7));else{for(let _0x4b7fde=0x0;_0x4b7fde<_0x5e29d7['offsetSize'];_0x4b7fde++)_0xf56b15['push'](new _0x1e48aa('$text',{'vid':this['_revisionId']++}));}const _0x32292d=this['_revisionId'];for(let _0x5636b7=_0x57f172;_0x5636b7<_0x32292d;_0x5636b7++)this['_touched']['set'](_0x5636b7,{'userId':_0x4cbb87});_0x57521a['_insertChild'](_0xe1010b['offset'],_0xf56b15);}['_handleMoveOperation'](_0x3a0e84){(_0x3a0e84=this['_cloneOperation'](_0x3a0e84,this['_idsRoots']))['_execute']();const _0x536706=null===_0x3a0e84['_authorId']?null:_0x3a0e84['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x8b00b8=_0x3a0e84['getMovedRangeStart'](),_0x46b8b8=_0x8b00b8['parent'],_0x2255c4=_0x8b00b8['offset'];!function _0x10180e(_0x8e1513,_0x1d0efb,_0xc53085,_0x3e4bb9){for(let _0x28e347=_0xc53085;_0x28e347<_0x3e4bb9;_0x28e347++){const _0x5ae5f6=_0x1d0efb['getChild'](_0x28e347);_0x5ae5f6['is']('element','$text')?_0x8e1513['set'](_0x5ae5f6['getAttribute']('vid'),{'userId':_0x536706}):(_0x8e1513['set'](_0x5ae5f6['getAttribute']('vid_start'),{'userId':_0x536706}),_0x10180e(_0x8e1513,_0x5ae5f6,0x0,_0x5ae5f6['childCount']),_0x8e1513['set'](_0x5ae5f6['getAttribute']('vid_end'),{'userId':_0x536706}));}}(this['_touched'],_0x46b8b8,_0x2255c4,_0x2255c4+_0x3a0e84['howMany']);}['_handleMergeOperation'](_0x16f194){const _0x554cdf=null===(_0x16f194=this['_cloneOperation'](_0x16f194,this['_idsRoots']))['_authorId']?null:_0x16f194['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2910c4=_0x16f194['targetPosition']['parent'],_0x10ef97=_0x16f194['sourcePosition']['parent'],_0x59ea32=_0x2910c4['getAttribute']('vid_end'),_0x228bb0=_0x10ef97['getAttribute']('vid_start');_0x2910c4['_setAttribute']('vid_end',_0x10ef97['getAttribute']('vid_end')),_0x10ef97['_setAttribute']('vid_end',_0x59ea32),this['_touched']['set'](_0x228bb0,{'userId':_0x554cdf}),this['_touched']['set'](_0x59ea32,{'userId':_0x554cdf}),_0x16f194['_execute']();}['_handleSplitOperation'](_0xb7263b){const _0x3c90c1=null===(_0xb7263b=this['_cloneOperation'](_0xb7263b,this['_idsRoots']))['_authorId']?null:_0xb7263b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x181b19=_0xb7263b['graveyardPosition'],_0x2b7a46=_0xb7263b['splitPosition']['parent'];_0xb7263b['_execute']();const _0x1643b1=_0x2b7a46['getAttribute']('vid_end'),_0x2bdc39=_0xb7263b['insertionPosition']['nodeAfter'];if(_0x181b19){const _0x2ed033=_0x2bdc39['getAttribute']('vid_end'),_0x2621cf=_0x2b7a46['getAttribute']('vid_end');_0x2b7a46['_setAttribute']('vid_end',_0x2ed033),_0x2bdc39['_setAttribute']('vid_end',_0x2621cf),this['_touched']['set'](_0x2b7a46['getAttribute']('vid_end'),{'userId':_0x3c90c1}),this['_touched']['set'](_0x2bdc39['getAttribute']('vid_start'),{'userId':_0x3c90c1});}else{const _0x3d5c9d=this['_revisionId']++,_0x3de9db=this['_revisionId']++;_0x2b7a46['_setAttribute']('vid_end',_0x3d5c9d),_0x2bdc39['_setAttribute']('vid_start',_0x3de9db),_0x2bdc39['_setAttribute']('vid_end',_0x1643b1),this['_touched']['set'](_0x3d5c9d,{'userId':_0x3c90c1}),this['_touched']['set'](_0x3de9db,{'userId':_0x3c90c1});}}['_handleMarkerOperation'](_0x335358){if(!_0x335358['affectsData'])return;const _0x2c79c3=(_0x335358=this['_cloneOperation'](_0x335358,this['_diffRoots']))['oldRange']?_0x335358['oldRange']['root']:null,_0x37137f=_0x335358['newRange']?_0x335358['newRange']['root']:null;_0x2c79c3&&this['_markers']['delete'](_0x335358['name']),_0x37137f&&this['_markers']['set'](_0x335358['name'],_0x335358['newRange']['clone']());const _0x153961=null===_0x335358['_authorId']?null:_0x335358['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1a960e=_0x335358['name'];if(!this['_touchedMarkers']['has'](_0x1a960e))return void this['_touchedMarkers']['set'](_0x1a960e,{'range':_0x335358['oldRange'],'userId':_0x153961});const _0x2ff157=this['_touchedMarkers']['get'](_0x1a960e),_0x141e41=_0x2ff157['range'],_0x2957dc=_0x335358['newRange'];null==_0x141e41&&null==_0x2957dc||_0x141e41&&_0x2957dc&&_0x141e41['isEqual'](_0x2957dc)?this['_touchedMarkers']['delete'](_0x335358['name']):_0x2ff157['userId']=_0x153961;}['_handleRootOperation'](_0x703f55,_0x2ee1c3){this['_diffRoots']['has'](_0x703f55['rootName'])?this['_diffRoots']['get'](_0x703f55['rootName'])['_isAttached']=_0x703f55['isAdd']:(this['_diffRoots']['set'](_0x703f55['rootName'],N(_0x703f55['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x703f55['rootName'],{}),_0x2ee1c3&&this['_idsRoots']['set'](_0x703f55['rootName'],N(_0x703f55['rootName'],!0x0)));const _0x445025=null===_0x703f55['_authorId']?null:_0x703f55['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3a1962=this['_touchedRoots']['get'](_0x703f55['rootName']);_0x3a1962&&_0x3a1962['userId']===_0x445025?this['_touchedRoots']['delete'](_0x703f55['rootName']):this['_touchedRoots']['set'](_0x703f55['rootName'],{'userId':_0x445025,'isAttached':_0x703f55['isAdd']});}['_handleRootAttributeOperation'](_0x6d9c8e){const _0x32d379=this['_diffRootsAttributes']['get'](_0x6d9c8e['root']['rootName']);null===_0x6d9c8e['newValue']?delete _0x32d379[_0x6d9c8e['key']]:_0x32d379[_0x6d9c8e['key']]=_0x6d9c8e['newValue'];}}function x(_0xd814b6){const _0x5f2b07=N(_0xd814b6['rootName'],_0xd814b6['isAttached']());for(const _0x435e0e of _0xd814b6['getChildren']()){const _0x42d423=_0x435e0e['_clone'](!0x0);_0x5f2b07['_appendChild'](_0x42d423);}return _0x5f2b07;}function N(_0x291872,_0x4a11ec=!0x0){const _0x22eb90=new _0x571bbc();return _0x22eb90['rootName']=_0x291872,_0x22eb90['_isAttached']=_0x4a11ec,_0x22eb90['isAttached']=()=>_0x22eb90['_isAttached'],_0x22eb90;}function P(_0x7cd1ec,_0x5c2d7a,_0x56638a){const _0x5198a4='elementEnd'==_0x7cd1ec['type']?_0x56638a['createPositionAt'](_0x7cd1ec['item'],'end'):_0x56638a['createPositionBefore'](_0x7cd1ec['item']);return _0x56638a['createPositionFromPath'](_0x5c2d7a,_0x5198a4['path'],_0x5198a4['stickiness']);}function V(_0x482aeb,_0x32a7f0,_0x4a2510){const _0x5f5517='elementStart'==_0x482aeb['type']?_0x4a2510['createPositionAt'](_0x482aeb['item'],0x0):_0x4a2510['createPositionAfter'](_0x482aeb['item']);return _0x4a2510['createPositionFromPath'](_0x32a7f0,_0x5f5517['path'],_0x5f5517['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x56035f(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x37121a){super(),this['id']=_0x37121a['id']||_0x1d7c29(),this['author']=_0x37121a['author'],this['type']=_0x37121a['type'],this['data']=_0x37121a['data']||{},this['rootName']=_0x37121a['rootName'],this['set']('createdAt',_0x37121a['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(_0x52d771,_0x147651){this['newRevisionId']=_0x52d771,this['oldRevisionId']=_0x147651,this['changes']=new _0x638e22();}['_setChanges'](_0xa72a7e){for(const _0x12a1ee of _0xa72a7e)this['changes']['add'](_0x12a1ee);}}class l extends _0x5c2b79{['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[_0x35979b,_0x15036,S,$];}constructor(_0x19ba06){super(_0x19ba06),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',(_0x1f6fe0,_0x5cfcc9,_0x3b9e3c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x233c22=>{for(const _0x3c914e of this['editor']['editing']['view']['document']['roots'])_0x3b9e3c?_0x233c22['removeClass']('ck-editor__editable__overlay',_0x3c914e):_0x233c22['addClass']('ck-editor__editable__overlay',_0x3c914e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x48fc5c=>null!==_0x48fc5c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1208bf,_0x469eb1,_0x52df65)=>_0x1208bf&&_0x52df65?_0x469eb1['changes']['getIndex'](_0x52df65):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xed6729,_0x4542df)=>_0xed6729?_0x4542df['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x15036);}['init'](){const _0x1e1857=this['editor'],_0x2ab8e0=new ot(_0x1e1857,{'direction':'backward'}),_0x4033da=new ot(_0x1e1857,{'direction':'forward'});(_0x1e1857['commands']['add']('showPreviousChange',_0x2ab8e0),_0x1e1857['commands']['add']('showNextChange',_0x4033da),_0x1e1857['commands']['add']('restoreRevision',new nt(_0x1e1857)),this['on']('change:numberOfChanges',()=>{_0x2ab8e0['refresh'](),_0x4033da['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1e1857['enableReadOnlyMode']('revision-viewer'),_0x1e1857['plugins']['has']('WidgetToolbarRepository'))&&_0x1e1857['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0xc0a951){return await this['_utils']['loadRevisionData'](_0xc0a951,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xc0a951);}async['getRevisionRootsAttributes'](_0x138fa1){return await this['_utils']['loadRevisionData'](_0x138fa1,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x138fa1);}async['compare'](_0x4a3444,_0x49f40e,_0xe0ecfd=!0x1){if(!this['isEnabled'])return;const _0x398882=this['diff'],_0xed1b74=this['repository'],_0x43f69c='string'==typeof _0x4a3444?_0xed1b74['getRevision'](_0x4a3444):_0x4a3444,_0x21210a='string'==typeof _0x49f40e?_0xed1b74['getRevision'](_0x49f40e):_0x49f40e,_0x34a6d2=_0x43f69c['id'],_0x2d8995=_0x21210a?_0x21210a['id']:null;if(!_0xe0ecfd&&this['diff']&&this['diff']['newRevisionId']===_0x34a6d2&&this['diff']['oldRevisionId']===_0x2d8995)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x34a6d2,_0x2d8995);const _0x3a948f=this['_getRevisionsRange'](_0x43f69c,_0x21210a,!0x0)['map'](_0x5aa544=>this['_utils']['loadRevisionData'](_0x5aa544,this['adapter']));return _0x3a948f['push'](new Promise(_0x374660=>{setTimeout(_0x374660,0x14);})),Promise['all'](_0x3a948f)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x22ddc0=this['_getDiff'](_0x34a6d2,_0x2d8995);for(const _0x5a3d8f of _0x22ddc0['changes'])this['_changeIdToChange']['set'](_0x5a3d8f['id'],_0x5a3d8f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4096d=>{for(const _0x4443d2 of this['editor']['model']['document']['getRootNames']())_0x4096d['detachRoot'](_0x4443d2);for(const _0x5ee1fc of Object['keys'](_0x22ddc0['model'])){const _0x2d8902=_0x4096d['addRoot'](_0x5ee1fc);for(const _0x33bede of Object['keys'](_0x22ddc0['attributes'][_0x5ee1fc]))_0x4096d['setAttribute'](_0x33bede,_0x22ddc0['attributes'][_0x5ee1fc][_0x33bede],_0x2d8902);_0x4096d['insert'](_0x22ddc0['model'][_0x5ee1fc],_0x2d8902,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x22ddc0['changes'])),this['isReady']=!0x0;})['catch'](_0x5610bb=>{console['error'](_0x5610bb),this['_cleanUp'](),_0x398882&&(this['diff']=_0x398882),this['isReady']=!0x0;});}['addRevisionData'](_0x5b0be2,_0x27d03){const _0x4b6e62=this['repository']['createRevision'](_0x5b0be2);return _0x4b6e62['on']('_update',(_0xd8c8,_0x16c74c,_0x5d784b)=>_0x27d03(_0x16c74c,_0x5d784b,_0x4b6e62)),this['repository']['addRevision'](_0x4b6e62),_0x4b6e62;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x293c33=>{for(const _0x422f55 of this['editor']['model']['document']['getRootNames']())_0x293c33['detachRoot'](_0x422f55);});}['_sortAndFilterDiffChanges'](_0x4dd93d){const _0x11a8fa=[],_0x1f72cf=new Map();for(const _0x31ca35 of this['editor']['model']['document']['getRootNames']()){const _0x56ffa0=this['editor']['editing']['view']['getDomRoot'](_0x31ca35);if(!_0x56ffa0)continue;const _0x15673a=_0x56ffa0['getClientRects']()['item'](0x0);_0x15673a&&(_0x11a8fa['push'](_0x31ca35),_0x1f72cf['set'](_0x31ca35,_0x15673a));}return _0x11a8fa['sort']((_0x17513e,_0x56e22d)=>{const _0x11b1c7=_0x1f72cf['get'](_0x17513e),_0x3a0c8a=_0x1f72cf['get'](_0x56e22d);return _0x11b1c7['y']-_0x3a0c8a['y']||_0x11b1c7['x']-_0x3a0c8a['x'];}),(_0x4dd93d=_0x4dd93d['filter'](_0x5e40b0=>_0x11a8fa['includes'](_0x5e40b0['rootName'])))['sort']((_0x2401b6,_0x16bc15)=>_0x11a8fa['indexOf'](_0x2401b6['rootName'])-_0x11a8fa['indexOf'](_0x16bc15['rootName'])),_0x4dd93d;}['_makeTape'](_0x79015a){const _0xb6d088=Array['from'](_0x79015a['markers'])['filter'](([_0xa1f18,_0x17afac])=>_0xa1f18['startsWith']('revision:')&&!_0x17afac['isCollapsed']),_0x42b89d=Array['from'](this['editor']['model']['createRangeIn'](_0x79015a)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xb6d088['length'])for(const _0x11c4f9 of _0x42b89d){const [_0xd47189,_0x3936cc]=_0xb6d088[0x0],[,_0x2f3c24,_0xe0c240]=_0xd47189['split'](':');if(_0x3936cc['end']['isEqual'](_0x11c4f9['nextPosition'])&&_0xb6d088['shift'](),(_0x11c4f9['previousPosition']['isEqual'](_0x3936cc['start'])||_0x11c4f9['previousPosition']['isAfter'](_0x3936cc['start']))&&('insertion'==_0x2f3c24?_0x11c4f9['isAdded']={'userId':_0xe0c240}:'deletion'==_0x2f3c24&&(_0x11c4f9['isRemoved']={'userId':_0xe0c240})),0x0==_0xb6d088['length'])break;}return _0x42b89d;}['_refreshStartEndIndex'](_0x27da4e){const _0x4b0757=new Map();for(let _0x2b8f21=0x0;_0x2b8f21<_0x27da4e['length'];_0x2b8f21++)'text'===_0x27da4e[_0x2b8f21]['type']?(_0x27da4e[_0x2b8f21]['item']['startIndex']=_0x2b8f21,_0x27da4e[_0x2b8f21]['item']['endIndex']=_0x2b8f21):('elementStart'===_0x27da4e[_0x2b8f21]['type']?_0x27da4e[_0x2b8f21]['item']['startIndex']=_0x2b8f21:'elementEnd'===_0x27da4e[_0x2b8f21]['type']&&(_0x27da4e[_0x2b8f21]['item']['endIndex']=_0x2b8f21),_0x4b0757['set'](_0x27da4e[_0x2b8f21]['id'],_0x2b8f21));for(const _0x5d8b51 of _0x4b0757['values']())'elementStart'===_0x27da4e[_0x5d8b51]['type']?_0x27da4e[_0x5d8b51]['item']['endIndex']=_0x4b0757['get'](_0x27da4e[_0x5d8b51]['pairId']):'elementEnd'===_0x27da4e[_0x5d8b51]['type']&&(_0x27da4e[_0x5d8b51]['item']['startIndex']=_0x4b0757['get'](_0x27da4e[_0x5d8b51]['pairId']));}['_processTape'](_0x370500){for(let _0x196ab8=0x0;_0x196ab8<_0x370500['length'];_0x196ab8++){if('elementStart'===_0x370500[_0x196ab8]['type'])_0x370500[_0x196ab8]['item']['startIndex']=_0x196ab8;else{if('elementEnd'===_0x370500[_0x196ab8]['type']){_0x370500[_0x196ab8]['item']['endIndex']=_0x196ab8;const _0x4fa9ea=_0x370500[_0x196ab8]['item']['startIndex'];_0x370500[_0x4fa9ea]['pairId']=_0x370500[_0x196ab8]['id'],_0x370500[_0x196ab8]['pairId']=_0x370500[_0x4fa9ea]['id'];}else _0x370500[_0x196ab8]['item']['startIndex']=_0x196ab8,_0x370500[_0x196ab8]['item']['endIndex']=_0x196ab8,_0x370500[_0x196ab8]['pairId']=null;}_0x370500[_0x196ab8]['markersStart']||(_0x370500[_0x196ab8]['markersStart']=[],_0x370500[_0x196ab8]['markersEnd']=[]);}}['_markInsertions'](_0x45dcc7,_0x241f55){const _0x242fc0=_0x45dcc7['filter'](_0x454177=>!_0x454177['isAdded']);for(let _0xb61925=0x0;_0xb61925<_0x241f55['length'];_0xb61925++)_0x241f55[_0xb61925]['isAdded']&&(_0x242fc0[_0xb61925]['isAdded']=_0x241f55[_0xb61925]['isAdded']);}['_getDiff'](_0x2dd40c,_0x4c475b=null){const _0x4326fd=this['repository']['getRevision'](_0x2dd40c),_0x566dd7=_0x4c475b?this['repository']['getRevision'](_0x4c475b):null,_0x13e256=this['_getRevisionsRange'](_0x4326fd,_0x566dd7),_0x36a975=_0x13e256[_0x13e256['length']-0x1],_0xbf4f68=new Map(),_0x4325fd={'model':{},'attributes':{},'changes':[]},_0x5c890d=new Set(),_0x943dc0=new Map();for(let _0x5b1280=_0x13e256['length']-0x1;_0x5b1280>=0x0;_0x5b1280--){const _0x568517=_0x13e256[_0x5b1280];for(const _0x44726a of Object['keys'](_0x568517['diffData']))if(_0x568517['diffData'][_0x44726a]['attachChange']){const _0x5ab1c6=_0x568517['diffData'][_0x44726a]['attachChange'];_0x5ab1c6['isAttached']?(_0x5c890d['add'](_0x44726a),_0x943dc0['has'](_0x44726a)&&_0x943dc0['get'](_0x44726a)['userId']==_0x5ab1c6['userId']?_0x943dc0['delete'](_0x44726a):_0x943dc0['set'](_0x44726a,_0x5ab1c6)):_0x943dc0['has'](_0x44726a)?(_0x5c890d['delete'](_0x44726a),_0x943dc0['delete'](_0x44726a)):(_0x5c890d['add'](_0x44726a),_0x943dc0['set'](_0x44726a,_0x5ab1c6));}else _0x5c890d['add'](_0x44726a);}for(const _0xb12566 of _0x5c890d){const _0x3eb81b=_0x943dc0['has'](_0xb12566)&&!_0x943dc0['get'](_0xb12566)['isAttached'];let _0x1122b3=_0x3eb81b?_0x13e256['length']-0x1:0x0;const _0x3c0e86=_0x3eb81b?-0x1:0x1;for(;_0x13e256[_0x1122b3];){const _0x135a2=_0x13e256[_0x1122b3];if(_0x135a2['diffData'][_0xb12566]){const _0x309722=_0x3eb81b?_0x135a2['diffData'][_0xb12566]['attributesBefore']:_0x135a2['diffData'][_0xb12566]['attributesAfter'];_0x4325fd['attributes'][_0xb12566]=_0x309722?_0x452048(_0x309722):{};break;}_0x1122b3+=_0x3c0e86;}}for(const _0x2027f7 of _0x13e256){_0x2027f7['model']={};for(const _0x4a2611 of _0x2027f7['authors'])_0xbf4f68['set'](_0x4a2611['id'],_0x4a2611);for(const _0x5ed0fe of _0x5c890d){const _0x1eaf7c=_0x2027f7['diffData'][_0x5ed0fe]?_0x2027f7['diffData'][_0x5ed0fe]['insertions']:'[]',_0x5659bc=_0x2027f7['diffData'][_0x5ed0fe]?_0x2027f7['diffData'][_0x5ed0fe]['deletions']:'[]';_0x2027f7['model'][_0x5ed0fe]={'insertions':this['_utils']['_makeModelFromViewString'](_0x1eaf7c),'deletions':this['_utils']['_makeModelFromViewString'](_0x5659bc)};}}for(const _0x525ffb of _0x5c890d){let _0x1bb152=null,_0x5541de=0x0;const _0x30fa13=new Map(Array['from'](_0x4326fd['model'][_0x525ffb]['insertions']['markers'])['filter'](([_0x40f133])=>!_0x40f133['startsWith']('revision:')));let _0x59f8c0=0x0;for(const _0x532ada of _0x13e256){const _0x8c455c=this['_makeTape'](_0x532ada['model'][_0x525ffb]['insertions']);_0x532ada==_0x4326fd?(_0x1bb152=_0x8c455c,_0x5541de=_0x1bb152['length'],_0x1bb152['forEach'](_0x2c9e1f=>{_0x2c9e1f['id']=_0x59f8c0++;}),this['_processTape'](_0x1bb152)):this['_markInsertions'](_0x1bb152,_0x8c455c);const _0x28a251=_0x1bb152['filter'](_0x4afedf=>!_0x4afedf['isAdded'])['map'](_0x35df4c=>_0x35df4c['id']);let _0x3660c4=0x0;const _0x20ab7a=this['_makeTape'](_0x532ada['model'][_0x525ffb]['deletions']);_0x20ab7a['forEach'](_0x134dbf=>{_0x134dbf['isRemoved']?_0x134dbf['id']=_0x5541de++:_0x134dbf['id']=_0x28a251[_0x3660c4++];}),this['_processTape'](_0x20ab7a),this['_setDistance'](_0x1bb152,'isAdded'),this['_setDistance'](_0x20ab7a,'isRemoved'),_0x532ada==_0x4326fd&&this['_markMarkers'](_0x1bb152,_0x30fa13),_0x1bb152=this['_joinTapes'](_0x1bb152,_0x20ab7a),this['_refreshStartEndIndex'](_0x1bb152),this['_setDistance'](_0x1bb152,'isRemoved');}_0x1bb152=_0x1bb152['filter'](_0x40d120=>!(_0x40d120['isAdded']&&_0x40d120['isRemoved']));const _0x5cfd22=new Map(_0x36a975['model'][_0x525ffb]['deletions']['markers']),_0x1334a7=new Set(_0x30fa13['keys']());for(const _0x57a0e9 of _0x5cfd22['keys']())_0x1334a7['delete'](_0x57a0e9);this['_markSuggestions'](_0x1bb152,_0x1334a7),this['_fixObsoleteTags'](_0x1bb152),_0x1bb152=this['_removeMissingPairs'](_0x1bb152),_0x1bb152=this['_markMismatchedRemovedTags'](_0x1bb152),_0x1bb152=this['_removeUnsupportedChanges'](_0x1bb152);const {root:_0x389024,changes:_0x1fa9ad}=this['_makeModelFromTape'](_0x1bb152,_0xbf4f68,_0x525ffb);_0x4325fd['model'][_0x525ffb]=_0x389024;const _0x3694aa=_0x943dc0['get'](_0x525ffb);if(_0x3694aa){const _0x7f699=_0xbf4f68['get'](_0x3694aa['userId']),_0x4bdb15=new G({'author':_0x7f699,'type':_0x3694aa['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x525ffb});_0x1fa9ad['unshift'](_0x4bdb15),_0x4325fd['attributes'][_0x525ffb]['revisionHistoryAttachChange']=_0x4bdb15['id'];}_0x4325fd['changes']=_0x4325fd['changes']['concat'](_0x1fa9ad);}return _0x4325fd;}['_markMarkers'](_0x414afe,_0x4cb35){for(let _0x105975=0x0;_0x105975<_0x414afe['length'];_0x105975++)for(const [_0x43c29a,_0x147f1c]of _0x4cb35)!_0x147f1c['isCollapsed']&&_0x147f1c['start']['isEqual'](_0x414afe[_0x105975]['previousPosition'])&&_0x414afe[_0x105975]['markersStart']['push'](_0x43c29a),_0x147f1c['end']['isEqual'](_0x414afe[_0x105975]['nextPosition'])&&_0x414afe[_0x105975]['markersEnd']['push'](_0x43c29a);}['_joinTapes'](_0x3c6dca,_0x37ea3e){let _0x1a0b73=[],_0xdb469f=0x0,_0x50152c=0x0;for(;_0xdb469f<_0x3c6dca['length']||_0x50152c<_0x37ea3e['length'];){const _0x5dfa38=_0x3c6dca[_0xdb469f]||{},_0x547d1a=_0x37ea3e[_0x50152c]||{};if(_0x5dfa38['id']==_0x547d1a['id'])_0xdb469f++,_0x50152c++,_0x1a0b73['push'](_0x5dfa38);else{if(_0x547d1a['isRemoved']&&_0x5dfa38['isAdded']){const {commonTape:_0x3f970f,iEnd:_0x33ca7b,jEnd:_0x13b6cf}=this['_threeWayMerge'](_0x3c6dca,_0xdb469f,_0x37ea3e,_0x50152c);_0x1a0b73=_0x1a0b73['concat'](_0x3f970f),_0xdb469f=_0x33ca7b,_0x50152c=_0x13b6cf;}else _0x547d1a['isRemoved']?(_0x50152c++,_0x1a0b73['push'](_0x547d1a)):(_0xdb469f++,_0x1a0b73['push'](_0x5dfa38));}}return _0x1a0b73;}['_markSuggestions'](_0x9084a9,_0x1355e4){const _0x12c755=[];for(let _0x27cd86=0x0;_0x27cd86<_0x9084a9['length'];_0x27cd86++){for(let _0x1e0107=0x0;_0x1e0107<_0x9084a9[_0x27cd86]['markersStart']['length'];_0x1e0107++){const _0x718662=_0x9084a9[_0x27cd86]['markersStart'][_0x1e0107];if(!_0x1355e4['has'](_0x718662))continue;const {group:_0x224df8,type:_0x41e8f7,authorId:_0x6451f8}=_0x36d330(_0x718662);'revision-suggestion'!=_0x224df8||'insertion'!=_0x41e8f7&&'deletion'!=_0x41e8f7||(_0x12c755['unshift']({'type':_0x41e8f7,'name':_0x718662,'userId':_0x6451f8}),_0x9084a9[_0x27cd86]['markersStart']['splice'](_0x1e0107,0x1),_0x1e0107--);}_0x317869(_0x9084a9[_0x27cd86]);for(let _0x5c82d9=0x0;_0x5c82d9<_0x9084a9[_0x27cd86]['markersEnd']['length'];_0x5c82d9++){const _0x59b07a=_0x9084a9[_0x27cd86]['markersEnd'][_0x5c82d9];if(!_0x1355e4['has'](_0x59b07a))continue;const {group:_0x41c9bd,type:_0x288442}=_0x36d330(_0x59b07a);if('revision-suggestion'!=_0x41c9bd||'insertion'!=_0x288442&&'deletion'!=_0x288442)continue;_0x9084a9[_0x27cd86]['markersEnd']['splice'](_0x5c82d9,0x1),_0x5c82d9--;const _0x4e81c7=_0x12c755['findIndex'](_0x1701eb=>_0x1701eb['name']==_0x59b07a);_0x4e81c7>-0x1&&_0x12c755['splice'](_0x4e81c7,0x1);}}function _0x36d330(_0x185313){const _0x22d039=_0x185313['split'](':');return{'group':_0x22d039[0x0],'type':_0x22d039[0x1],'subType':_0x22d039['length']>=0x5?_0x22d039[0x2]:null,'id':_0x22d039['length']<0x5?_0x22d039[0x2]:_0x22d039[0x3],'authorId':_0x22d039['length']<0x5?_0x22d039[0x3]:_0x22d039[0x4],'markerCount':0x6==_0x22d039['length']?_0x22d039[0x5]:null};}function _0x317869(_0x36b36a){for(let _0x1aea3b=0x0;_0x1aea3b<_0x12c755['length'];_0x1aea3b++){if(_0x36b36a['isAdded']&&'insertion'==_0x12c755[_0x1aea3b]['type']&&_0x36b36a['isAdded']['userId']==_0x12c755[_0x1aea3b]['userId'])return _0x36b36a['isAddSuggestion']=_0x12c755[_0x1aea3b],void delete _0x36b36a['isAdded'];if(!_0x36b36a['isAdded']&&!_0x36b36a['isRemoved']&&'deletion'==_0x12c755[_0x1aea3b]['type'])return void(_0x36b36a['isRemoveSuggestion']=_0x12c755[_0x1aea3b]);}}}['_setDistance'](_0x1ba6b4,_0x3b31fc){let _0x1186c2=0x0,_0x140da7=!0x1;const _0x3719fb=new Map();for(const _0x4637c8 of _0x1ba6b4)_0x4637c8[_0x3b31fc]?_0x140da7&&(_0x1186c2++,_0x140da7=!0x1):(_0x1186c2++,_0x140da7=!0x0),_0x3719fb['set'](_0x4637c8['id'],_0x1186c2);for(let _0x304e54=0x0;_0x304e54<_0x1ba6b4['length'];_0x304e54++){if('isRemoved'==_0x3b31fc&&_0x1ba6b4[_0x304e54]['isAdded']||'isAdded'==_0x3b31fc&&_0x1ba6b4[_0x304e54]['isRemoved'])continue;if('text'==_0x1ba6b4[_0x304e54]['type']){_0x1ba6b4[_0x304e54]['distance']=0x0;continue;}const _0x24b3e9=_0x3719fb['get'](_0x1ba6b4[_0x304e54]['pairId']),_0x1ab782=_0x3719fb['get'](_0x1ba6b4[_0x304e54]['id']);_0x1ba6b4[_0x304e54]['distance']=_0x24b3e9-_0x1ab782;}}['_getRevisionsRange'](_0x35de55,_0x5b04a9,_0x2e2d05=!0x1){const _0x5c2dbe=[];let _0x46ac89=this['repository']['getIndex'](_0x35de55),_0x3f7cc3=this['repository']['getIndex'](_0x5b04a9);for(-0x1==_0x3f7cc3&&(_0x3f7cc3=this['repository']['_revisions']['length'],_0x2e2d05=!0x1);_0x46ac89<_0x3f7cc3;)_0x5c2dbe['push'](this['repository']['getRevision'](_0x46ac89)),_0x46ac89++;return _0x2e2d05&&_0x5c2dbe['push'](this['repository']['getRevision'](_0x46ac89)),_0x5c2dbe;}['_threeWayMerge'](_0x3146fb,_0x46921a,_0x28b3b1,_0x4419cc){const _0x39fff1=this['editor']['model']['schema'];let _0xa1b95b=_0x46921a;for(;_0x3146fb[_0xa1b95b]&&_0x3146fb[_0xa1b95b]['isAdded'];)_0xa1b95b++;let _0x5db542=_0x4419cc;for(;_0x28b3b1[_0x5db542]&&_0x28b3b1[_0x5db542]['isRemoved'];)_0x5db542++;_0x52b39b(_0x3146fb,_0x46921a,_0xa1b95b),_0x52b39b(_0x28b3b1,_0x4419cc,_0x5db542);const _0x195491=_0x28b3b1['slice'](_0x4419cc,_0x5db542)['concat'](_0x3146fb['slice'](_0x46921a,_0xa1b95b));return _0x195491['sort']((_0x59d296,_0x50c9f1)=>_0x59d296['side']!=_0x50c9f1['side']?_0x59d296['side']-_0x50c9f1['side']:_0x59d296['level']!=_0x50c9f1['level']?_0x59d296['level']-_0x50c9f1['level']:_0x59d296['distance']!=_0x50c9f1['distance']?_0x50c9f1['distance']-_0x59d296['distance']:!!_0x59d296['isAdded']!=!!_0x50c9f1['isAdded']?-0x1==_0x59d296['side']||0x0==_0x59d296['side']?_0x59d296['isAdded']?-0x1:0x1:_0x59d296['isAdded']?0x1:-0x1:_0x59d296['index']-_0x50c9f1['index']),{'commonTape':_0x195491,'iEnd':_0xa1b95b,'jEnd':_0x5db542};function _0x52b39b(_0x1e114f,_0x18e811,_0x51d7ba){let _0x3771c6=-0x1,_0x428a8d=Number['POSITIVE_INFINITY'],_0x40bb9c=!0x0;for(let _0x37744a=_0x18e811;_0x37744a<_0x51d7ba;_0x37744a++)if(_0x39fff1['isInline'](_0x1e114f[_0x37744a]['item'])||(_0x40bb9c=!0x1),_0x1e114f[_0x37744a]['item']['startIndex']<_0x18e811&&(_0x3771c6=_0x37744a),_0x1e114f[_0x37744a]['item']['endIndex']>=_0x51d7ba){_0x428a8d=_0x37744a;break;}_0x40bb9c&&(_0x3771c6=_0x51d7ba-0x1);for(let _0x578578=_0x18e811;_0x578578<_0x51d7ba;_0x578578++)_0x1e114f[_0x578578]['side']=_0x578578<=_0x3771c6?-0x1:_0x578578<_0x428a8d?0x0:0x1,_0x1e114f[_0x578578]['index']=_0x578578;let _0x15cc81=0x0;for(let _0x200ac0=_0x18e811;_0x200ac0<=_0x3771c6;_0x200ac0++)0x0==_0x1e114f[_0x200ac0]['distance']?_0x1e114f[_0x200ac0]['level']=_0x15cc81:(_0x15cc81++,_0x1e114f[_0x200ac0]['level']=_0x15cc81,_0x15cc81++);for(let _0x5c6616=_0x18e811;_0x5c6616<_0x51d7ba;_0x5c6616++)0x0==_0x1e114f[_0x5c6616]['side']&&(_0x1e114f[_0x5c6616]['level']=_0x15cc81);_0x15cc81=0x0;for(let _0x57ea3f=_0x51d7ba-0x1;_0x57ea3f>=_0x428a8d;_0x57ea3f--)0x0==_0x1e114f[_0x57ea3f]['distance']?_0x1e114f[_0x57ea3f]['level']=_0x15cc81:(_0x15cc81--,_0x1e114f[_0x57ea3f]['level']=_0x15cc81,_0x15cc81--);}}['_fixObsoleteTags'](_0x1185ce){const _0x468e1d=new Map(),_0x41a2ab=this['editor']['model']['schema'];for(let _0x356c4c=0x1;_0x356c4c<_0x1185ce['length'];_0x356c4c++){let _0x19c699,_0x530aa1,_0x1220a1;const _0x198431=_0x1185ce[_0x356c4c],_0x1efa50=_0x1185ce[_0x356c4c-0x1];if('text'==_0x198431['type'])continue;if(_0x198431['type']!=_0x1efa50['type'])continue;if(!_0x41a2ab['isBlock'](_0x1efa50['item'])||_0x41a2ab['isLimit'](_0x1efa50['item']))continue;if(!_0x41a2ab['isBlock'](_0x198431['item'])||_0x41a2ab['isLimit'](_0x198431['item']))continue;if((_0x1185ce[_0x356c4c]['isAdded']||_0x1185ce[_0x356c4c]['isAddSuggestion'])&&_0x1185ce[_0x356c4c-0x1]['isRemoved'])_0x19c699=_0x1185ce[_0x356c4c],_0x530aa1=_0x1185ce[_0x356c4c-0x1],_0x1220a1=_0x356c4c-0x1;else{if(!_0x1185ce[_0x356c4c]['isRemoved']||!_0x1185ce[_0x356c4c-0x1]['isAdded']&&!_0x1185ce[_0x356c4c-0x1]['isAddSuggestion'])continue;_0x19c699=_0x1185ce[_0x356c4c-0x1],_0x530aa1=_0x1185ce[_0x356c4c],_0x1220a1=_0x356c4c;}const _0x59d3e3=_0x19c699['level']==_0x530aa1['level'],_0x55a51c=Math['abs'](_0x19c699['level'])<Math['abs'](_0x530aa1['level'])&&0x0==_0x530aa1['distance'];(_0x59d3e3||_0x55a51c)&&(_0x468e1d['set'](_0x530aa1['id'],_0x19c699['id']),_0x1185ce['splice'](_0x1220a1,0x1),_0x356c4c--,_0x19c699['isAdded']=!0x1);}for(let _0x556212=0x0;_0x556212<_0x1185ce['length'];_0x556212++)_0x468e1d['has'](_0x1185ce[_0x556212]['pairId'])&&(_0x1185ce[_0x556212]['pairId']=_0x468e1d['get'](_0x1185ce[_0x556212]['pairId']));}['_removeMissingPairs'](_0xcb523f){const _0x2bd201=new Set(_0xcb523f['map'](_0x16e764=>_0x16e764['id']));for(let _0x1f6bc8=0x0;_0x1f6bc8<_0xcb523f['length'];_0x1f6bc8++)_0x2bd201['has'](_0xcb523f[_0x1f6bc8]['pairId'])||0x0==_0xcb523f[_0x1f6bc8]['distance']||(_0xcb523f[_0x1f6bc8]['isIncorrect']=!0x0);return _0xcb523f['filter'](_0x3b046d=>!_0x3b046d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3d0735){const _0xec6162=new Set();for(let _0x210163=0x0;_0x210163<_0x3d0735['length'];_0x210163++){if(_0xec6162['has'](_0x3d0735[_0x210163]['id'])&&_0x3d0735[_0x210163]['isRemoved']&&(_0x3d0735[_0x210163]['isIncorrect']=!0x0),_0x3d0735[_0x210163]['isIncorrect'])continue;if(0x0==_0x3d0735[_0x210163]['distance'])continue;if('elementStart'!=_0x3d0735[_0x210163]['type'])continue;if(null==_0x3d0735[_0x210163]['pairId'])continue;let _0xf0b1b6=_0x210163+0x1,_0x1f52f5=0x0;for(;_0x3d0735[_0xf0b1b6]['id']!=_0x3d0735[_0x210163]['pairId'];)'elementStart'==_0x3d0735[_0xf0b1b6]['type']?_0x1f52f5++:'elementEnd'==_0x3d0735[_0xf0b1b6]['type']&&_0x1f52f5--,_0xf0b1b6++;if(0x0!=_0x1f52f5){if(_0x3d0735[_0x210163]['isRemoved'])_0x3d0735[_0x210163]['isIncorrect']=!0x0;else{for(;_0xf0b1b6!=_0x210163;)_0x3d0735[_0xf0b1b6]['isRemoved']&&0x0!=_0x3d0735[_0xf0b1b6]['distance']&&(_0x3d0735[_0xf0b1b6]['isIncorrect']=!0x0,_0xec6162['add'](_0x3d0735[_0xf0b1b6]['pairId'])),_0xf0b1b6--;}}}return _0x3d0735['filter'](_0x289a53=>!_0x289a53['isIncorrect']);}['_removeUnsupportedChanges'](_0x306b02){const _0x5a5437=this['editor']['model']['schema'];for(let _0x3e26ac=0x0;_0x3e26ac<_0x306b02['length'];_0x3e26ac++){if(!(_0x306b02[_0x3e26ac]['isAdded']||_0x306b02[_0x3e26ac]['isAddSuggestion']||_0x306b02[_0x3e26ac]['isRemoved']||_0x306b02[_0x3e26ac]['isRemoveSuggestion']))continue;if(0x0==_0x306b02[_0x3e26ac]['distance'])continue;const _0x5bf6db=_0x306b02[_0x3e26ac]['item'];_0x5a5437['isBlock'](_0x5bf6db)||_0x5a5437['isLimit'](_0x5bf6db)||(_0x306b02[_0x3e26ac]['isAdded']&&delete _0x306b02[_0x3e26ac]['isAdded'],_0x306b02[_0x3e26ac]['isAddSuggestion']&&delete _0x306b02[_0x3e26ac]['isAddSuggestion'],_0x306b02[_0x3e26ac]['isRemoveSuggestion']&&delete _0x306b02[_0x3e26ac]['isRemoveSuggestion'],_0x306b02[_0x3e26ac]['isRemoved']&&(_0x306b02[_0x3e26ac]['isIncorrect']=!0x0));}return _0x306b02['filter'](_0x439589=>!_0x439589['isIncorrect']);}['_makeModelFromTape'](_0xf10f98,_0x41b60d,_0x3a8804){const _0x230c97=new _0x571bbc(),_0x599859=[],_0x4711fc=new Map(),_0x3af508=this['editor']['model'],_0x3ef788=_0x3af508['schema'],_0x30787d=[_0x230c97],_0x1f096e={},_0x41bc2d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1058b4=null;const _0x2f3c97=[0x0];for(let _0x446f26=0x0;_0x446f26<_0xf10f98['length'];_0x446f26++)if('elementStart'===_0xf10f98[_0x446f26]['type']){_0xf10f98[_0x446f26]['previousPosition']=_0x3af508['createPositionFromPath'](_0x230c97,_0x2f3c97);const _0x599db3=new _0x1e48aa(_0xf10f98[_0x446f26]['item']['name'],_0xf10f98[_0x446f26]['item']['getAttributes']());_0x30787d[0x0]['_appendChild'](_0x599db3),_0x2f3c97['push'](0x0),_0x30787d['unshift'](_0x599db3),_0xf10f98[_0x446f26]['nextPosition']=_0x3af508['createPositionFromPath'](_0x230c97,_0x2f3c97);}else'elementEnd'===_0xf10f98[_0x446f26]['type']?(_0x30787d['shift'](),_0xf10f98[_0x446f26]['previousPosition']=_0x3af508['createPositionFromPath'](_0x230c97,_0x2f3c97),_0x2f3c97['pop'](),_0x2f3c97[_0x2f3c97['length']-0x1]++,_0xf10f98[_0x446f26]['nextPosition']=_0x3af508['createPositionFromPath'](_0x230c97,_0x2f3c97)):(_0xf10f98[_0x446f26]['previousPosition']=_0x3af508['createPositionFromPath'](_0x230c97,_0x2f3c97),_0x1058b4?_0x1058b4['_data']+=_0xf10f98[_0x446f26]['item']['data']:_0x1058b4=new _0x34272e(_0xf10f98[_0x446f26]['item']['data'],_0xf10f98[_0x446f26]['item']['getAttributes']()),_0xf10f98[_0x446f26+0x1]&&'text'===_0xf10f98[_0x446f26+0x1]['type']&&_0x59f7ee(_0x1058b4,_0xf10f98[_0x446f26+0x1]['item'])||(_0x30787d[0x0]['_appendChild'](_0x1058b4),_0x1058b4=null),_0x2f3c97[_0x2f3c97['length']-0x1]+=_0xf10f98[_0x446f26]['item']['offsetSize'],_0xf10f98[_0x446f26]['nextPosition']=_0x3af508['createPositionFromPath'](_0x230c97,_0x2f3c97));for(let _0x2e063c=0x0;_0x2e063c<_0xf10f98['length'];_0x2e063c++){const _0x182c5f=_0xf10f98[_0x2e063c]['previousPosition'],_0x31d92a=_0xf10f98[_0x2e063c]['nextPosition'];for(const _0x1be954 of _0xf10f98[_0x2e063c]['markersStart'])_0x4711fc['set'](_0x1be954,{'start':_0x182c5f,'end':null});_0x27c172('isRemoveSuggestion',_0x2e063c,_0x182c5f,_0x31d92a),_0x27c172('isAddSuggestion',_0x2e063c,_0x182c5f,_0x31d92a),_0x27c172('isRemoved',_0x2e063c,_0x182c5f,_0x31d92a),_0x27c172('isAdded',_0x2e063c,_0x182c5f,_0x31d92a);for(const _0x87cc05 of _0xf10f98[_0x2e063c]['markersEnd']){const _0x2fa140=_0x4711fc['get'](_0x87cc05);_0x2fa140?_0x2fa140['end']=_0x31d92a:_0x4711fc['set'](_0x87cc05,{'start':_0x31d92a,'end':_0x31d92a});}}for(const [_0x56f048,_0x3656d3]of _0x4711fc){const _0x126c19=this['editor']['model']['createRange'](_0x3656d3['start'],_0x3656d3['end']);_0x230c97['markers']['set'](_0x56f048,_0x126c19);}return _0x599859['sort']((_0x5f51a7,_0x3d0f0b)=>{const _0x4136bc=_0x230c97['markers']['get']('revision:'+_0x5f51a7['id']),_0x42c937=_0x230c97['markers']['get']('revision:'+_0x3d0f0b['id']);return _0x4136bc['start']['isBefore'](_0x42c937['start'])?-0x1:_0x4136bc['start']['isAfter'](_0x42c937['start'])?0x1:_0x4136bc['end']['isBefore'](_0x42c937['end'])?-0x1:_0x4136bc['end']['isAfter'](_0x42c937['end'])?0x1:'add'===_0x5f51a7['type']?-0x1:0x1;}),{'root':_0x230c97,'changes':_0x599859};function _0x27c172(_0x191692,_0x153017,_0x383248,_0x18a09e){const _0xca251=!!_0xf10f98[_0x153017][_0x191692],_0x3ebf5c=_0xca251?_0xf10f98[_0x153017][_0x191692]['userId']:null,_0xa653df=_0x153017===_0xf10f98['length']-0x1,_0xa9d045=_0x41bc2d[_0x191692][0x0],_0x24e67f=_0x3ef788['isObject'](_0xf10f98[_0x153017]['item']);!_0x1f096e[_0x191692]&&_0xca251?_0x1f096e[_0x191692]={'start':_0x383248,'tapeItem':_0xf10f98[_0x153017],'userId':_0x3ebf5c,'type':_0x191692}:_0x1f096e[_0x191692]&&!_0xca251?(_0x1f096e[_0x191692]['end']=_0x383248,_0x4badd8(_0x1f096e[_0x191692]),_0x1f096e[_0x191692]=null):_0x1f096e[_0x191692]&&_0xca251&&_0x1f096e[_0x191692]['userId']!==_0x3ebf5c&&(_0x1f096e[_0x191692]['end']=_0x383248,_0xa9d045&&_0xa9d045['userId']===_0x1f096e[_0x191692]['userId']||_0x4badd8(_0x1f096e[_0x191692]),_0x1f096e[_0x191692]={'start':_0x383248,'tapeItem':_0xf10f98[_0x153017],'userId':_0x3ebf5c,'type':_0x191692}),_0x1f096e[_0x191692]&&_0x24e67f&&('elementStart'!==_0xf10f98[_0x153017]['type']||_0xa9d045&&_0xa9d045['userId']===_0x3ebf5c||_0x41bc2d[_0x191692]['unshift']({'userId':_0x3ebf5c,'object':_0xf10f98[_0x153017]['item'],'change':_0x1f096e[_0x191692]}),'elementEnd'===_0xf10f98[_0x153017]['type']&&_0xa9d045&&_0xa9d045['object']===_0xf10f98[_0x153017]['item']&&(_0x41bc2d[_0x191692]['shift'](),_0x1f096e[_0x191692]=_0xa9d045['change'])),_0x1f096e[_0x191692]&&_0xa653df&&(_0x1f096e[_0x191692]['end']=_0x18a09e,_0x4badd8(_0x1f096e[_0x191692]),_0x1f096e[_0x191692]=null);}function _0x4badd8({start:_0xf2a02e,end:_0x479b46,tapeItem:_0x53b4dc,userId:_0x128c72,type:_0x3a6014}){const _0x1bf796=_0x53b4dc['item'],_0x2194a3=_0x3af508['schema']['isBlock'](_0x1bf796)&&!_0x3af508['schema']['isLimit'](_0x1bf796),_0x2f23d7=_0xf2a02e['nodeAfter']==_0x479b46['parent']&&_0x479b46['isAtStart'];if(_0x2194a3&&_0x2f23d7)return;const _0x10fca7=_0x3af508['createRange'](_0xf2a02e,_0x479b46),_0x24ea52=_0x41b60d['get'](_0x128c72),_0x32640a=new G({'author':_0x24ea52,'type':'isAdded'==_0x3a6014||'isAddSuggestion'==_0x3a6014?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3a6014||'isRemoveSuggestion'==_0x3a6014},'createdAt':new Date(),'rootName':_0x3a8804});_0x599859['push'](_0x32640a),_0x230c97['markers']['set']('revision:'+_0x32640a['id'],_0x10fca7);}function _0x59f7ee(_0x1841db,_0x5da8d1){const _0x527c7d=_0x1841db['getAttributes'](),_0x299292=_0x5da8d1['getAttributes']();for(const _0x4237c4 of _0x527c7d){if(_0x4237c4[0x1]!==_0x5da8d1['getAttribute'](_0x4237c4[0x0]))return!0x1;_0x299292['next']();}return _0x299292['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x16bf71=>{const _0x5c5411=_0x16bf71['markerName']['split'](':')[0x1],_0x10a05c=this['_getChangeFromId'](_0x5c5411);if(!_0x10a05c)return null;const _0x39212='add'==_0x10a05c['type']?'insertion':'deletion',_0x118d14=['ck-suggestion-marker','ck-suggestion-marker-'+_0x39212];return _0x10a05c['data']['isSuggestion']&&_0x118d14['push']('ck-suggestion-marker-'+_0x39212+'-new'),this['activeChange']==_0x10a05c&&_0x118d14['push']('ck-suggestion-marker--active'),{'classes':_0x118d14,'attributes':{'data-change-id':_0x5c5411}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x28f05c=>{_0x28f05c['on']('element:pre',(_0x23fa6f,_0x2e66d8,_0x4e4bbb)=>{const _0x5ed22a=_0x2e66d8['viewItem']['getChild'](0x0);if(!_0x5ed22a||!_0x5ed22a['is']('element','code'))return;if(!_0x4e4bbb['consumable']['consume'](_0x5ed22a,{'attributes':['vid_start','vid_end']}))return;const _0xe1ca45=_0x2e66d8['modelRange']['start']['nodeAfter'];_0x4e4bbb['writer']['setAttribute']('vid_start',_0x5ed22a['getAttribute']('vid_start'),_0xe1ca45),_0x4e4bbb['writer']['setAttribute']('vid_end',_0x5ed22a['getAttribute']('vid_end'),_0xe1ca45);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x53eb23=>{_0x53eb23['on']('element',(_0xc167a5,_0x210527,_0x1204df)=>{if(!_0x1204df['consumable']['consume'](_0x210527['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x210527['modelRange']['isCollapsed'])return;const _0x575091=_0x210527['modelRange']['start']['nodeAfter'];_0x575091['hasAttribute']('vid_start')||_0x575091['hasAttribute']('vid')||(_0x1204df['writer']['setAttribute']('vid_start',_0x210527['viewItem']['getAttribute']('vid_start'),_0x575091),_0x1204df['writer']['setAttribute']('vid_end',_0x210527['viewItem']['getAttribute']('vid_end'),_0x575091));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x139c36=>_0x139c36['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x108a4d,[,_0x440fab])=>{['vid_start','vid_end','vid']['includes'](_0x440fab)&&(_0x108a4d['return']=!0x0,_0x108a4d['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2e2134=>{_0x2e2134['on']('attribute:vid',(_0x33e9f1,_0x3d815f,_0x193b5b)=>{if('\x20'!=_0x3d815f['item']['data']||_0x3d815f['item']['parent']['maxOffset']>0x1)return;if(!_0x193b5b['consumable']['consume'](_0x3d815f['item'],_0x33e9f1['name']))return;const _0xde0066=_0x193b5b['writer'],_0xefe99d=_0x193b5b['mapper']['toViewRange'](_0x3d815f['range']);_0xde0066['wrap'](_0xefe99d,_0xde0066['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x11edde){const _0x59ae75=_0x11edde['plugins']['get']('RevisionViewer');return(_0x4b0477,_0x59f1ac,_0x754f4)=>{const _0x30d41c=_0x59f1ac['markerName']['split'](':')[0x1],_0x286910=_0x59ae75['_getChangeFromId'](_0x30d41c);if(!_0x286910)return null;const _0xdbd681='add'==_0x286910['type']?'split':'merge';if(!_0x754f4['consumable']['test'](_0x59f1ac['markerRange'],_0x4b0477['name']))return;const _0x275377=_0x59f1ac['markerRange']['getWalker'](),_0x5c6f60=_0x59f1ac['markerRange']['start'],_0xfc2e4e=_0x11edde['model']['schema'];let _0x4211f7=null,_0x576865=null,_0x9717d6=!0x1,_0x2d9ae8=!0x1;for(const _0x556aa8 of _0x275377){const _0x4f51dc=_0x556aa8['item'];_0x9717d6=_0x9717d6||_0xfc2e4e['isContent'](_0x4f51dc);const _0x520959=_0x754f4['mapper']['toViewElement'](_0x4f51dc);if(_0x520959&&_0x520959['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x556aa8['type']&&(_0xfc2e4e['isBlock'](_0x4f51dc)&&!_0xfc2e4e['isLimit'](_0x4f51dc)&&(_0x4f51dc['nextSibling']||_0x5c6f60['isAtEnd']?_0x4211f7&&_0x4211f7['parent']==_0x4f51dc||(_0x4211f7=_0x4f51dc,_0x3b41b4(_0x556aa8['previousPosition']),_0x2d9ae8=!0x0):_0x576865=_0x576865||_0x556aa8['previousPosition']));}function _0x3b41b4(_0x19d623){const _0x3a255d=_0x754f4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xdbd681}),_0x2ec0c3=_0x754f4['mapper']['toViewPosition'](_0x19d623);_0x286910['data']['isSuggestion']&&_0x754f4['writer']['addClass']('ck-suggestion-marker-'+_0xdbd681+'-new',_0x3a255d),_0x59ae75['activeChange']==_0x286910&&_0x754f4['writer']['addClass']('ck-suggestion-marker--active',_0x3a255d),_0x754f4['writer']['insert'](_0x2ec0c3,_0x3a255d),_0x754f4['mapper']['bindElementToMarker'](_0x3a255d,_0x59f1ac['markerName']);}_0x9717d6||_0x2d9ae8||!_0x576865||_0x3b41b4(_0x576865);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2dad1d,_0x101bcb,_0x113579)=>{const _0x360a1f=_0x113579['mapper']['markerNameToElements'](_0x101bcb['markerName']);if(_0x360a1f){for(const _0x2721b4 of _0x360a1f)(_0x2721b4['hasClass']('ck-suggestion-marker-split')||_0x2721b4['hasClass']('ck-suggestion-marker-merge'))&&(_0x113579['mapper']['unbindElementFromMarkerName'](_0x2721b4,_0x101bcb['markerName']),_0x113579['writer']['remove'](_0x2721b4));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4ea934,_0x18306b,_0x4cd1b4)=>{const _0x1f964a=_0x18306b['markerName']['split'](':')[0x1],_0x1fdf1e=this['_getChangeFromId'](_0x1f964a);if(!_0x1fdf1e)return null;const _0xfecc0a='add'==_0x1fdf1e['type']?'split':'merge';if(_0x4cd1b4['consumable']['test'](_0x18306b['markerRange'],_0x4ea934['name']))for(const _0x42cb68 of _0x18306b['markerRange']['getItems']()){if(!_0x42cb68['is']('element','softBreak'))continue;const _0x3d55e6=_0x4cd1b4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xfecc0a}),_0x207d34=_0x4cd1b4['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x42cb68));_0x1fdf1e['data']['isSuggestion']&&_0x4cd1b4['writer']['addClass']('ck-suggestion-marker-'+_0xfecc0a+'-new',_0x3d55e6),this['activeChange']==_0x1fdf1e&&_0x4cd1b4['writer']['addClass']('ck-suggestion-marker--active',_0x3d55e6),_0x4cd1b4['writer']['insert'](_0x207d34,_0x3d55e6),_0x4cd1b4['mapper']['bindElementToMarker'](_0x3d55e6,_0x18306b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x448bd6=>{for(const _0x240227 of this['editor']['model']['document']['getRootNames']()){const _0x400ba5=this['editor']['model']['document']['getRoot'](_0x240227),_0x489b8b=this['editor']['editing']['view']['document']['getRoot'](_0x240227);if(_0x489b8b){const _0x2d9e7a=_0x400ba5['getAttribute']('revisionHistoryAttachChange');if(_0x448bd6['removeAttribute']('data-change-id',_0x489b8b),_0x448bd6['removeClass']('ck-revision-history-root-add',_0x489b8b),_0x448bd6['removeClass']('ck-revision-history-root-remove',_0x489b8b),_0x448bd6['removeClass']('ck-revision-history-root--active',_0x489b8b),_0x2d9e7a){const _0x41afe3=this['_getChangeFromId'](_0x2d9e7a);if(!_0x41afe3)return null;_0x448bd6['setAttribute']('data-change-id',_0x2d9e7a,_0x489b8b),_0x448bd6['addClass']('ck-revision-history-root-'+_0x41afe3['type'],_0x489b8b),this['activeChange']==_0x41afe3&&_0x448bd6['addClass']('ck-revision-history-root--active',_0x489b8b);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x426358=>'revision-comment:'+_0x426358,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5b76cc=>'revision-suggestion:'+_0x5b76cc,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x21ec59=>({'name':'suggestion:'+_0x21ec59,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x535dab=>{const _0x1c9987=_0x535dab['markerName']['split'](':')[0x1];return'insertion'!=_0x1c9987&&'deletion'!=_0x1c9987?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1c9987]};}}),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',(_0x42fc96,_0x5dc97a,_0xac596e)=>{const _0x5499f8=_0xac596e['mapper']['markerNameToElements'](_0x5dc97a['markerName']);if(_0x5499f8){for(const _0x50434d of _0x5499f8)_0x50434d['is']('uiElement')&&(_0xac596e['mapper']['unbindElementFromMarkerName'](_0x50434d,_0x5dc97a['markerName']),_0xac596e['writer']['remove'](_0x50434d));}},{'priority':'high'});}['_getChangeFromId'](_0x16786c){return this['_changeIdToChange']['get'](_0x16786c);}['_getViewForChange'](_0x3aa3e2){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3aa3e2),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x25bd6f,_0x390580,_0x27f257,_0x1fe5c9)=>{_0x1fe5c9&&this['_balloon']['remove'](_0x1fe5c9),_0x27f257&&(this['_balloon']['add']({'view':_0x27f257,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3d8be3=this['editor']['editing'],_0x357454=this['_getChangeFromId'](_0x27f257['changeId']);let _0x233f69;if(_0x357454['data']['isOnRoot']){const _0x4312f5=_0x3d8be3['view']['getDomRoot'](_0x357454['rootName']);_0x233f69=Array['from'](_0x4312f5['getClientRects']());}else{const _0x376924=this['editor']['model']['markers']['get']('revision:'+_0x27f257['changeId']);_0x233f69=Array['from'](_0x3d8be3['mapper']['markerNameToElements'](_0x376924['name']))['map'](_0x38e754=>_0x3d8be3['view']['domConverter']['mapViewToDom'](_0x38e754))['map'](_0x1514fa=>Array['from'](_0x1514fa['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x233f69[0x0];return _0x233f69['find'](_0x33df7f=>_0x33df7f['top']-0x3<=this['_activeViewTarget']['y']&&_0x33df7f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x33df7f['left']-0x3<=this['_activeViewTarget']['x']&&_0x33df7f['right']+0x3>=this['_activeViewTarget']['x'])||_0x233f69[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5ed3d3,_0x48012d,_0x5e04cf,_0x1b9da9)=>{this['activeView']=_0x5e04cf?this['_getViewForChange'](_0x5e04cf):null,this['editor']['model']['change'](()=>{const _0x106ec1=this['editor']['editing'];_0x1b9da9&&(_0x1b9da9['data']['isOnRoot']?_0x106ec1['view']['change'](_0x40325d=>{_0x40325d['removeClass']('ck-revision-history-root--active',_0x106ec1['view']['document']['getRoot'](_0x1b9da9['rootName']));}):_0x106ec1['reconvertMarker']('revision:'+_0x1b9da9['id'])),_0x5e04cf&&(_0x5e04cf['data']['isOnRoot']?_0x106ec1['view']['change'](_0x15945c=>{_0x15945c['addClass']('ck-revision-history-root--active',_0x106ec1['view']['document']['getRoot'](_0x5e04cf['rootName']));}):_0x106ec1['reconvertMarker']('revision:'+_0x5e04cf['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x42472b,_0x22eba3)=>{if(this['activeChange'])return;const _0x4d12ec=this['_findChangeIdFromDomTarget'](_0x22eba3['target']),_0x38ebc6=this['_changeIdToChange']['get'](_0x4d12ec);_0x38ebc6?(this['_activeViewTarget']={'x':_0x22eba3['domEvent']['x'],'y':_0x22eba3['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x38ebc6)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x121f3b,_0x2f70f1)=>{const _0xb04005=this['_findChangeIdFromDomTarget'](_0x2f70f1['target']),_0x594417=this['_changeIdToChange']['get'](_0xb04005);_0x594417?(this['_activeViewTarget']={'x':_0x2f70f1['domEvent']['x'],'y':_0x2f70f1['domEvent']['y']},_0x594417===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x594417):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x53ade8){do{const _0x597caf=_0x53ade8['getAttribute']('data-change-id');if(_0x597caf)return _0x597caf;_0x53ade8=_0x53ade8['parent'];}while(_0x53ade8);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x25df33=>{for(const _0x24cb0d of this['editor']['model']['markers'])_0x25df33['removeMarker'](_0x24cb0d);});}}function Q(_0x2e2ecc,_0x4aecfd){return(_0x30e082,_0x1823b2,_0x2847c2)=>{if(!_0x2847c2['consumable']['test'](_0x1823b2['markerRange'],_0x30e082['name']))return;const _0x22e28=_0x1823b2['markerRange']['getWalker'](),_0x173a63=_0x1823b2['markerRange']['start'],_0x2cc4ba=_0x2e2ecc['model']['schema'];let _0x31c2ff=null,_0x1ecb2e=null,_0x2716b5=!0x1,_0xef80ee=!0x1;for(const _0x26f7ac of _0x22e28){const _0x48479f=_0x26f7ac['item'];_0x2716b5=_0x2716b5||_0x2cc4ba['isContent'](_0x48479f);const _0x48b106=_0x2847c2['mapper']['toViewElement'](_0x48479f);if(_0x48b106&&_0x48b106['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x26f7ac['type']&&(_0x2cc4ba['isBlock'](_0x48479f)&&!_0x2cc4ba['isLimit'](_0x48479f)&&(_0x48479f['nextSibling']||_0x173a63['isAtEnd']?_0x31c2ff&&_0x31c2ff['parent']==_0x48479f||(_0x31c2ff=_0x48479f,_0x2aaa6f(_0x26f7ac['previousPosition']),_0xef80ee=!0x0):_0x1ecb2e=_0x1ecb2e||_0x26f7ac['previousPosition']));}function _0x2aaa6f(_0x783d45){const _0x161208=_0x2847c2['mapper']['toViewPosition'](_0x783d45),_0x3458d0=_0x2847c2['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4aecfd});_0x2847c2['writer']['insert'](_0x161208,_0x3458d0),_0x2847c2['mapper']['bindElementToMarker'](_0x3458d0,_0x1823b2['markerName']);}_0x2716b5||_0xef80ee||!_0x1ecb2e||_0x2aaa6f(_0x1ecb2e);};}class nt extends _0x116006{constructor(_0x3528e2){super(_0x3528e2);const _0x47a81b=_0x3528e2['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x47a81b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x47a81b,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4382ec=this['editor'],_0x194d83=_0x4382ec['plugins']['get'](l),_0x63682b=_0x194d83['isReady']?_0x194d83['diff']['newRevisionId']:null;_0x4382ec['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x63682b);}['refresh'](){const {isReady:_0x4df39b,isEnabled:_0x5183c9,repository:_0x21063a,diff:_0x35d710}=this['editor']['plugins']['get'](l),_0x120a60=_0x35d710&&_0x21063a['getLaterVisibleRevision'](_0x35d710['newRevisionId']);this['isEnabled']=_0x4df39b&&_0x5183c9&&Boolean(_0x120a60);}}class ot extends _0x116006{['_step'];constructor(_0x53b749,{direction:_0x41aab3}){super(_0x53b749);const _0x28d156=_0x53b749['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x41aab3?0x1:-0x1,this['listenTo'](_0x28d156,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x28d156,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x28d156,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x396c73=this['editor'],_0xcbddc4=_0x396c73['plugins']['get'](l),{isNavigationMode:_0x470b6b,currentChangeNumber:_0x1bad43}=_0xcbddc4;let _0x49aaec;if(_0xcbddc4['activeChange']=_0x470b6b?_0xcbddc4['diff']['changes']['get'](_0x1bad43+this['_step']):_0xcbddc4['diff']['changes']['first'],_0xcbddc4['activeChange']['data']['isOnRoot'])_0x49aaec=_0x396c73['editing']['view']['getDomRoot'](_0xcbddc4['activeChange']['rootName']);else{const _0x2d16f3=_0x396c73['model']['markers']['get']('revision:'+_0xcbddc4['activeChange']['id']);_0x49aaec=_0x2a3d09(_0x396c73['editing'],_0x2d16f3);}_0x5d87c2({'target':_0x49aaec,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x124ecc,currentChangeNumber:_0x486770,numberOfChanges:_0xe21a2a,isReady:_0x12318c,isEnabled:_0x3c048f}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x3c048f&&_0x12318c&&_0xe21a2a)&&(!_0x124ecc||(0x1===this['_step']?_0x486770<_0xe21a2a-0x1:_0x486770>0x0));}}class Ri extends _0x3d1ec0{constructor(_0x15e2ab){super(_0x15e2ab);const _0x3522fc=this['bindTemplate'],_0x65ebbe=new _0x213261(_0x15e2ab),_0x34e1d8=new _0x213261(_0x15e2ab);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',(_0x85d09,_0x2c5645)=>_0x85d09&&_0x2c5645>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x11bc1a,_0x32495a,_0x437bcb,_0x41b3d9)=>{if(!_0x11bc1a)return R(_0x15e2ab,'Loading...');if(!_0x437bcb)return R(_0x15e2ab,'No\x20changes');const _0x5e363c=R(_0x15e2ab,'NUMBER_OF_CHANGES',_0x437bcb);return _0x41b3d9?R(_0x15e2ab,'X_OF_Y_CHANGES',[_0x32495a+0x1,_0x437bcb]):_0x5e363c;}),_0x65ebbe['set']({'label':R(_0x15e2ab,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2cca1b}),_0x34e1d8['set']({'label':R(_0x15e2ab,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2065f8}),_0x65ebbe['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x34e1d8['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x65ebbe['on']('execute',()=>this['fire']('execute','backward')),_0x34e1d8['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',_0x3522fc['if']('_isStatusLabelVisible','ck-hidden',_0x5a1e86=>!_0x5a1e86)]},'children':[{'text':_0x3522fc['to']('isNavigationMode',_0x37ae8f=>_0x37ae8f?R(_0x15e2ab,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x15e2ab,'Total')+':\x20')}]},{'text':_0x3522fc['to']('_statusText')}]},new _0x5ce28f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x65ebbe,_0x34e1d8]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x5c2b79{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xc758eb=this['editor']['editing']['view'];_0xc758eb['change'](_0x2b7d99=>{for(const _0x4deca2 of _0xc758eb['document']['roots'])_0x2b7d99['addClass'](ge,_0x4deca2);});}['hide'](){const _0x332911=this['editor']['editing']['view'];_0x332911['change'](_0xe12244=>{for(const _0x55dd70 of _0x332911['document']['roots'])_0xe12244['removeClass'](ge,_0x55dd70);});}}class u extends _0x5c2b79{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x452ed9=this['editor'],_0x3ac102=_0x452ed9['plugins']['get'](l),_0x3a1be6=_0x452ed9['plugins']['get'](ji);_0x452ed9['ui']['componentFactory']['add']('exitToEditing',_0x1b5834=>{const _0x21b2e7=new _0x213261(_0x1b5834);return _0x21b2e7['set']({'label':R(_0x1b5834,'Back\x20to\x20editing'),'icon':_0x5e33ba,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x21b2e7,'execute',()=>{_0x452ed9['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x21b2e7;}),_0x452ed9['ui']['componentFactory']['add']('restoreRevision',_0x59ccfb=>{const _0x10e7c9=new _0x213261(_0x59ccfb);return _0x10e7c9['set']({'label':R(_0x59ccfb,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x10e7c9['bind']('isEnabled')['to'](_0x452ed9['commands']['get']('restoreRevision')),this['listenTo'](_0x10e7c9,'execute',()=>_0x452ed9['execute']('restoreRevision')),_0x10e7c9;}),_0x452ed9['ui']['componentFactory']['add']('changesNavigation',_0x583736=>{const _0x52f979=new Ri(_0x583736),_0x58650f=_0x452ed9['commands']['get']('showPreviousChange'),_0x2af621=_0x452ed9['commands']['get']('showNextChange');return _0x52f979['bind']('isBackwardNavigationEnabled')['to'](_0x58650f,'isEnabled'),_0x52f979['bind']('isForwardNavigationEnabled')['to'](_0x2af621,'isEnabled'),_0x52f979['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3ac102),this['listenTo'](_0x52f979,'execute',(_0x15a191,_0x49bbe5)=>{_0x452ed9['execute']('forward'===_0x49bbe5?'showNextChange':'showPreviousChange');}),_0x52f979;}),_0x3a1be6['show'](),_0x3ac102['on']('change:isReady',(_0x415172,_0x29e619,_0x2c2f89)=>{_0x2c2f89?_0x3a1be6['hide']():_0x3a1be6['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x320b7c,_0x2ef3b1){super(_0x320b7c,_0x2ef3b1);const _0x1bc718=this['bindTemplate'];this['set']({'label':R(_0x320b7c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x320b7c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1bc718['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 _0x4af525=this['fieldView']['element'];this['_tooltipString']=_0x4af525['scrollWidth']>_0x4af525['clientWidth']&&_0x4af525['value']||'';}}class vi extends _0x3d1ec0{constructor(_0x40be5f,_0x45feb7,_0x1ca752){super(_0x40be5f);const _0x5af988=new _0x19ba2e();_0x5af988['set']({'content':_0x2613d4,'viewBox':'0\x200\x2011\x2010'});const _0x4f8f4c=['ck','ck-revision-history-sidebar__revision-author'];_0x1ca752&&_0x4f8f4c['push']('ck-revision-history-sidebar__revision-author_creator');const _0xac260d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x40be5f,_0x1ca752?'Revision\x20creator':'Revision\x20author')},'children':[_0x5af988,_0x45feb7['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4f8f4c},'children':_0xac260d});}}function mi(_0x20b79d,_0x1af54f){const _0x49a638=_0x20b79d['bindTemplate'],_0x1c6a79=_0x20b79d['locale'],_0x1bb3c6=_0x17dba5(_0x1c6a79);_0x1bb3c6['panelPosition']='sw';const _0x5d0339=function(_0x53229b,_0x349d10){const _0x5a862a=function(_0x230de2,_0x77c8f8){const _0x21fdfa=_0x230de2['locale'],_0x354e6a={'Compare\x20against\x20selected':R(_0x21fdfa,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x21fdfa,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x21fdfa,'Restore\x20this\x20revision')};return _0x77c8f8['map'](_0x16fe0c=>{const _0x18afee=_0x354e6a[_0x16fe0c['name']];return _0x18afee&&_0x18afee!==_0x16fe0c['name']&&(_0x16fe0c['name']=_0x18afee),_0x16fe0c;});}(_0x53229b,_0x349d10),_0x4d3dad=new _0x638e22();for(const _0x5d02d8 of _0x5a862a){const _0x241d58={'type':'button','model':new to({'label':_0x5d02d8['name'],'class':_0x5d02d8['class'],'withText':!0x0,'role':'menuitem','_action':_0x5d02d8['action']})};_0x241d58['model']['bind']('isEnabled')['to'](_0x53229b,'isActionsDropdownOpen',_0xe8ade7=>'function'!=typeof _0x5d02d8['isEnabled']||(!_0xe8ade7||_0x5d02d8['isEnabled'](_0x53229b))),_0x4d3dad['add'](_0x241d58);}return _0x4d3dad;}(_0x20b79d,_0x1af54f);return _0x20b79d['bind']('isActionsDropdownOpen')['to'](_0x1bb3c6,'isOpen'),_0x1bb3c6['buttonView']['set']({'label':R(_0x1c6a79,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5754ff}),_0x1bb3c6['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x49a638['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x49a638['to'](_0x513b8b=>_0x513b8b['stopPropagation']())}}),_0x1bb3c6['on']('execute',_0x59e020=>{_0x20b79d['isReady']&&'function'==typeof _0x59e020['source']['_action']&&_0x59e020['source']['_action'](_0x20b79d);}),_0x3670ff(_0x1bb3c6,_0x5d0339,{'role':'menu'}),_0x1bb3c6['listenTo'](_0x20b79d,'change:isActionsDropdownOpen',(_0x36ddd3,_0x153210,_0x2ee4ff)=>{if(_0x2ee4ff)for(const _0x17c6c8 of _0x1bb3c6['listView']['items']){const _0x3b9880=_0x17c6c8['children']['first'],_0x41596f=_0x1af54f['find'](_0x1d3dda=>_0x1d3dda['action']===_0x3b9880['_action'])['isVisible'];_0x17c6c8['isVisible']=void 0x0===_0x41596f||_0x41596f(_0x20b79d);}}),_0x1bb3c6;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x4cb812,uid as _0x53fb10,Collection as _0x4ce31f,logWarning as _0x519833,FocusTracker as _0x1a890c,KeystrokeHandler as _0x1ced13,scrollViewportToShowTarget as _0x48212b,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x5da8f4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x57968f,set as _0x5ae9ff,unset as _0x4d638f,isEqual as _0x43a6ba}from'es-toolkit/compat';import{Plugin as _0x2f9caa,PendingActions as _0x39fb16,Command as _0x26d787,ElementApiMixin as _0x153f0e,Editor as _0x26df53}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x154fb1,getMarkerDomElement as _0x534665,ConfirmMixin as _0x5b0c86,sanitizeEditorConfig as _0x5184eb}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x58b202,ViewAttributeElement as _0x2ef722,ViewEmptyElement as _0xeabc4b,ViewRawElement as _0xdff431,ViewUIElement as _0x28d5ad,ViewDocumentFragment as _0x23c825,ViewText as _0x13fe57,ViewElement as _0x5076e4,ModelElement as _0xdf7a4,ModelRange as _0x35df6a,ModelPosition as _0x537ba5,ModelDocumentFragment as _0x283d24,ModelText as _0x46b5c0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x24259c,IconChevronUp as _0x2554b1,IconChevronDown as _0x21dc72,IconUndo as _0x339843,IconUser as _0x1329a4,IconThreeVerticalDots as _0x2b4e13}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x53316a,View as _0x5890cf,submitHandler as _0x37195b,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x757e0c,ListView as _0x51e78a,ListItemView as _0x540c37,ButtonView as _0x5a3d97,MenuBarMenuView as _0x476bb2,MenuBarMenuListView as _0x349caf,MenuBarMenuListItemView as _0x3eccce,MenuBarMenuListItemButtonView as _0x3d8064,ContextualBalloon as _0x1c454d,ToolbarSeparatorView as _0x1022a1,IconView as _0x224c84,addListToDropdown as _0x4cdc1d,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x5ea3c8,StickyPanelView as _0x4f8df3,ToolbarView as _0x5f1e36,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x86c939}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4cb812(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x868a29){super(),this['id']=_0x868a29['id']||_0x53fb10(),this['creator']=_0x868a29['creator']||null,this['authors']=_0x868a29['authors']||[],this['diffData']=_0x868a29['diffData']||null,this['toVersion']=_0x868a29['toVersion']||0x0,this['fromVersion']=_0x868a29['fromVersion']||0x0,this['set']('name',_0x868a29['name']||''),this['set']('createdAt',_0x868a29['createdAt']||new Date()),this['set']('attributes',_0x868a29['attributes']||{});}['setName'](_0xd79ec1){this['_update']({'name':_0xd79ec1});}['setAttribute'](_0x5387ac,_0x209b26){const _0x2221f4=_0x57968f(this['attributes']);_0x5ae9ff(_0x2221f4,_0x5387ac,_0x209b26),this['_update']({'attributes':_0x2221f4});}['removeAttribute'](_0x4a7b6f){const _0x520b8b=_0x57968f(this['attributes']);_0x4d638f(_0x520b8b,_0x4a7b6f),this['_update']({'attributes':_0x520b8b});}['_update'](_0x49eec5,_0x3a327c=!0x1){let _0x6dd87d=!0x1;const _0x46a981={'id':this['id']},_0x4c3471=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x42a71c of _0x4c3471){const _0x558aab=_0x49eec5[_0x42a71c];void 0x0!==_0x558aab&&_0x558aab!==this[_0x42a71c]&&(this[_0x42a71c]=_0x558aab,_0x46a981[_0x42a71c]=_0x558aab,_0x6dd87d=!0x0);}_0x6dd87d&&(_0x46a981['authors']&&(_0x46a981['authorsIds']=_0x46a981['authors']['map'](_0x363723=>_0x363723['id']),delete _0x46a981['authors']),this['fire']('_update',_0x46a981,_0x3a327c));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4efc7b=>_0x4efc7b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x2f9caa{['_revisions'];static get['requires'](){return[_0x154fb1];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x44198b){super(_0x44198b),this['_revisions']=new _0x4ce31f();}['afterInit'](){!async function(_0x10f997){const _0x2f5132=_0x22cbe3([0x74,0x35,0x57,0x52,0x4d,0x33,0x54,0x62,0x31,0x58,0x6e,0x4b,0x6b,0x6a,0x5a,0x44,0x34,0x55,0x46,0x64,0x65,0x36,0x7a,0x67,0x76,0x30,0x72,0x39,0x48,0x37,0x71,0x4a,0x4c,0x79,0x32,0x45,0x6c,0x38,0x70,0x4e,0x78,0x73,0x51,0x4f,0x41,0x43,0x63,0x66,0x56,0x59,0x47,0x68,0x50,0x49,0x42,0x53,0x75,0x6d,0x61,0x69,0x6f,0x77]),_0x5dde5b=0xeb829,_0x2c4d93=0x32be043b,_0x1a64fc=0x32b96b6b^_0x2c4d93,_0x47ae60=window[_0x22cbe3([0x44,0x61,0x74,0x65])][_0x22cbe3([0x6e,0x6f,0x77])](),_0x574ce9=_0x10f997[_0x22cbe3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x52d7ae=new window[(_0x22cbe3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x222acb=>{_0x574ce9[_0x22cbe3([0x6f,0x6e,0x63,0x65])](_0x22cbe3([0x72,0x65,0x61,0x64,0x79]),_0x222acb);}),_0x5ea1f3={[_0x22cbe3([0x6b,0x74,0x79])]:_0x22cbe3([0x45,0x43]),[_0x22cbe3([0x75,0x73,0x65])]:_0x22cbe3([0x73,0x69,0x67]),[_0x22cbe3([0x63,0x72,0x76])]:_0x22cbe3([0x50,0x2d,0x32,0x35,0x36]),[_0x22cbe3([0x78])]:_0x22cbe3([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]),[_0x22cbe3([0x79])]:_0x22cbe3([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]),[_0x22cbe3([0x61,0x6c,0x67])]:_0x22cbe3([0x45,0x53,0x32,0x35,0x36])},_0x53bae6=_0x574ce9[_0x22cbe3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22cbe3([0x67,0x65,0x74])](_0x22cbe3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xbf0cc5(){let _0x1744cf,_0x2b9fae=null,_0x2e9ba1=null;try{if(_0x53bae6==_0x22cbe3([0x47,0x50,0x4c]))return _0x22cbe3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1744cf=_0x1ac5e5(),!_0x1744cf)return _0x22cbe3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1744cf[_0x22cbe3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e9ba1=_0x25f1d0(_0x1744cf[_0x22cbe3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1744cf[_0x22cbe3([0x6a,0x74,0x69])])),await _0x340dad()?_0x27462f()?_0xd02419()?_0x22cbe3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x30b4c9()?(_0x1744cf[_0x22cbe3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22cbe3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2b9fae=_0x57cdda(_0x22cbe3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1744cf[_0x22cbe3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22cbe3([0x74,0x72,0x69,0x61,0x6c])&&(_0x2b9fae=_0x57cdda(_0x22cbe3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xbb082d()):_0x22cbe3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22cbe3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22cbe3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x22cbe3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd02419(){const _0x5d1d3f=[_0x22cbe3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22cbe3([0x74,0x72,0x69,0x61,0x6c])][_0x22cbe3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1744cf[_0x22cbe3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47ae60/0x3e8:0xe10*_0x1a64fc;return _0x1744cf[_0x22cbe3([0x65,0x78,0x70])]<_0x5d1d3f;}function _0x27462f(){const _0x1b014a=_0x1744cf[_0x22cbe3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1b014a)return!0x1;if(_0x1b014a[_0x22cbe3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22cbe3([0x2a])))return!0x0;if(_0x1b014a[_0x22cbe3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22cbe3([0x52,0x48])))return!0x0;if(_0x1b014a[_0x22cbe3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22cbe3([0x52,0x52,0x48]))){if(_0xa05979())return!0x0;if(_0x1acb86()||_0x53245b())return!0x0;}return!0x1;}function _0x30b4c9(){const _0x4fb1cd=_0x1744cf[_0x22cbe3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4fb1cd||0x0==_0x4fb1cd[_0x22cbe3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16ceea}=new URL(window[_0x22cbe3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4fb1cd[_0x22cbe3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16ceea))return!0x0;const _0x114f21=_0x16ceea[_0x22cbe3([0x73,0x70,0x6c,0x69,0x74])](_0x22cbe3([0x2e]));return _0x4fb1cd[_0x22cbe3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24ed13=>_0x24ed13[_0x22cbe3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22cbe3([0x2a])))[_0x22cbe3([0x6d,0x61,0x70])](_0x552842=>_0x552842[_0x22cbe3([0x73,0x70,0x6c,0x69,0x74])](_0x22cbe3([0x2e])))[_0x22cbe3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x486b29=>_0x486b29[_0x22cbe3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x114f21[_0x22cbe3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22cbe3([0x6d,0x61,0x70])](_0x4cf206=>Array(_0x114f21[_0x22cbe3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4cf206[_0x22cbe3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22cbe3([0x66,0x69,0x6c,0x6c])](_0x4cf206[0x0]===_0x22cbe3([0x2a])?_0x22cbe3([0x2a]):'')[_0x22cbe3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4cf206))[_0x22cbe3([0x73,0x6f,0x6d,0x65])](_0x17152c=>_0x114f21[_0x22cbe3([0x65,0x76,0x65,0x72,0x79])]((_0x11222b,_0x29faaa)=>_0x17152c[_0x29faaa]===_0x11222b||_0x17152c[_0x29faaa]===_0x22cbe3([0x2a])));}function _0xbb082d(){return _0x2b9fae&&_0x2e9ba1?new window[(_0x22cbe3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x494018,_0x175ef4)=>{_0x2b9fae[_0x22cbe3([0x74,0x68,0x65,0x6e])](_0x494018,_0x175ef4),_0x2e9ba1[_0x22cbe3([0x74,0x68,0x65,0x6e])](_0x1e3481=>{_0x1e3481!=_0x22cbe3([0x56,0x61,0x6c,0x69,0x64])&&_0x494018(_0x1e3481);},_0x175ef4);}):_0x2b9fae||_0x2e9ba1||_0x22cbe3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x25f1d0(_0x4f8450,_0x531a97){return new window[(_0x22cbe3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33151c=>{if(_0x58613a())return _0x33151c(_0x22cbe3([0x56,0x61,0x6c,0x69,0x64]));_0x49fd81(),_0x574ce9[_0x22cbe3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22cbe3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3734ce=!0x1;const _0x4ab174=_0x53fb10();function _0x56e557(_0x4d0a06){return!!_0x4d0a06&&(typeof _0x4d0a06===_0x22cbe3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d0a06===_0x22cbe3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d0a06[_0x22cbe3([0x74,0x68,0x65,0x6e])]===_0x22cbe3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d0a06[_0x22cbe3([0x63,0x61,0x74,0x63,0x68])]===_0x22cbe3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4a4130(_0x2b3bf8){_0x5f457d(_0x2b3bf8)[_0x22cbe3([0x74,0x68,0x65,0x6e])](_0x52e28a=>{if(!_0x52e28a||_0x52e28a[_0x22cbe3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22cbe3([0x6f,0x6b]))return _0x22cbe3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x42dcd4(_0x2b1c67(_0x4ab174+_0x531a97))!=_0x52e28a[_0x22cbe3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22cbe3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22cbe3([0x56,0x61,0x6c,0x69,0x64]);})[_0x22cbe3([0x74,0x68,0x65,0x6e])](_0x39726c=>(_0x43a93e(),_0x39726c),()=>{const _0x488643=_0x42acdc();return null==_0x488643?(_0x43a93e(),_0x22cbe3([0x56,0x61,0x6c,0x69,0x64])):_0x22cbe3(_0x47ae60-_0x488643>(0x16b2803b^_0x2c4d93)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22cbe3([0x74,0x68,0x65,0x6e])](_0x33151c)[_0x22cbe3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x33151c(_0x22cbe3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d448f=0x3288eabb^_0x2c4d93;function _0x43a93e(){const _0x19e8aa=_0x22cbe3([0x6c,0x6c,0x63,0x74,0x2d])+_0x42dcd4(_0x2b1c67(_0x4f8450)),_0x35961b=_0x8010cd(_0x42dcd4(window[_0x22cbe3([0x4d,0x61,0x74,0x68])][_0x22cbe3([0x63,0x65,0x69,0x6c])](_0x47ae60/_0x5d448f)));window[_0x22cbe3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22cbe3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19e8aa,_0x35961b);}function _0x42acdc(){const _0x52aba9=_0x22cbe3([0x6c,0x6c,0x63,0x74,0x2d])+_0x42dcd4(_0x2b1c67(_0x4f8450)),_0x1da9cd=window[_0x22cbe3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22cbe3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52aba9);return _0x1da9cd?window[_0x22cbe3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8010cd(_0x1da9cd),0x10)*_0x5d448f:null;}function _0x5f457d(_0x467d32){return new window[(_0x22cbe3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d90aa,_0xd7de16)=>{_0x467d32[_0x22cbe3([0x74,0x68,0x65,0x6e])](_0x5d90aa,_0xd7de16),window[_0x22cbe3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xd7de16,0x32bfd0fb^_0x2c4d93);});}}_0x574ce9[_0x22cbe3([0x6f,0x6e])](_0x22cbe3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x38ed7e,_0x8dea53)=>{if(_0x8dea53[0x0]!=_0x4f8450)return _0x33151c(_0x22cbe3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x8dea53[0x1]={..._0x8dea53[0x1],[_0x22cbe3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ab174};},{[_0x22cbe3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22cbe3([0x68,0x69,0x67,0x68])}),_0x574ce9[_0x22cbe3([0x6f,0x6e])](_0x22cbe3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2832fa=>{_0x56e557(_0x2832fa[_0x22cbe3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3734ce=!0x0,_0x4a4130(_0x2832fa[_0x22cbe3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22cbe3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22cbe3([0x6c,0x6f,0x77])}),_0x52d7ae[_0x22cbe3([0x74,0x68,0x65,0x6e])](()=>{_0x3734ce||_0x33151c(_0x22cbe3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x58613a(){return _0x574ce9[_0x22cbe3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22cbe3([0x76,0x69,0x65,0x77])][_0x22cbe3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22cbe3([0x61,0x75,0x74,0x6f]);}function _0x49fd81(){_0x574ce9[_0x22cbe3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22cbe3([0x76,0x69,0x65,0x77])][_0x22cbe3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22cbe3([0x61,0x75,0x74,0x6f]);}}function _0x57cdda(_0x52ab05){const _0x3bbf59=[new window[(_0x22cbe3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26930d=>setTimeout(_0x26930d,0x32b73af7^_0x2c4d93)),_0x52d7ae[_0x22cbe3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22cbe3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d2223=>{const _0x120fa0=0x32be043c^_0x2c4d93,_0x600370=_0x10f997[_0x22cbe3([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3ce1ef(){_0x600370[_0x22cbe3([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x120fa0&&_0x2d2223();}_0x3ce1ef(),_0x600370[_0x22cbe3([0x6f,0x6e])](_0x22cbe3([0x61,0x64,0x64]),_0x3ce1ef);})),new window[(_0x22cbe3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c0e2a=>{function _0x4a145a(){for(const _0x526453 in window)if(window[_0x22cbe3([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x22cbe3([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x526453))&&window[_0x526453]==_0x5dde5b)return _0x1c0e2a();_0x574ce9[_0x22cbe3([0x73,0x74,0x61,0x74,0x65])]!=_0x22cbe3([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x22cbe3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a145a,0x32be17b3^_0x2c4d93);}_0x52ff43(_0x22cbe3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4a145a();})];return window[_0x22cbe3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22cbe3([0x72,0x61,0x63,0x65])](_0x3bbf59)[_0x22cbe3([0x74,0x68,0x65,0x6e])](()=>_0x52ab05);}async function _0x2597f4(){if(await _0x52d7ae,_0x52ff43(_0x22cbe3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x348a0c=_0x10f997[_0x22cbe3([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xfafdb1=_0x10f997[_0x22cbe3([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])](_0x348a0c[_0x22cbe3([0x69,0x64])]),_0x17fee6=_0x494c20(_0x22cbe3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x17fee6[_0x22cbe3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x348a0c['id'],_0xfafdb1?_0xfafdb1['id']:null,!0x0),_0x17fee6[_0x22cbe3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x22cbe3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x17fee6[_0x22cbe3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x17fee6[_0x22cbe3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5dc120,void(_0x17fee6[_0x22cbe3([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5dc120);}if(_0x52ff43(_0x22cbe3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2f3546=_0x494c20(_0x22cbe3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2f3546[_0x22cbe3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x22cbe3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2f3546[_0x22cbe3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2f3546[_0x22cbe3([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5dc120,_0x2f3546[_0x22cbe3([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5dc120;}_0x574ce9[_0x22cbe3([0x6d,0x6f,0x64,0x65,0x6c])][_0x22cbe3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5dc120,_0x574ce9[_0x22cbe3([0x6d,0x6f,0x64,0x65,0x6c])][_0x22cbe3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5dc120,_0x574ce9[_0x22cbe3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22cbe3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa05979(){return _0x52ff43(_0x22cbe3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x494c20(_0x22cbe3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x22cbe3([0x73,0x74,0x61,0x74,0x65])]==_0x22cbe3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1acb86(){return _0x52ff43(_0x22cbe3([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 _0x53245b(){return _0x52ff43(_0x22cbe3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5cca7d(_0x5456dc){const _0x3d576e=_0x2a7244();_0x574ce9[_0x3d576e]=_0x22cbe3([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])+_0x5456dc,_0x5456dc[_0x22cbe3([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x22cbe3([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2a7244()]=_0x5dde5b),_0x5456dc!=_0x22cbe3([0x56,0x61,0x6c,0x69,0x64])&&_0x2597f4();}function _0x2a7244(){const _0x168ec4=window[_0x22cbe3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22cbe3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22cbe3([0x6e,0x6f,0x77])]())[_0x22cbe3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22cbe3([0x2e]),'');let _0x3011cb=_0x22cbe3([0x74]);for(let _0x3f7bfb=0x0;_0x3f7bfb<_0x168ec4[_0x22cbe3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f7bfb+=0x2){let _0x4621ad=window[_0x22cbe3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x168ec4[_0x22cbe3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f7bfb,_0x3f7bfb+0x2));_0x4621ad>=_0x2f5132[_0x22cbe3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4621ad-=_0x2f5132[_0x22cbe3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3011cb+=_0x2f5132[_0x4621ad];}return _0x3011cb;}function _0x1ac5e5(){const _0x20dc4b=_0x53bae6[_0x22cbe3([0x73,0x70,0x6c,0x69,0x74])](_0x22cbe3([0x2e]));if(0x3!=_0x20dc4b[_0x22cbe3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x427d59(_0x20dc4b[0x1]);function _0x427d59(_0xd5c46f){const _0x2f0539=_0x4ee285(_0xd5c46f);return _0x2f0539&&_0x495aa7()?_0x2f0539:null;function _0x495aa7(){const _0x12374a=_0x2f0539[_0x22cbe3([0x6a,0x74,0x69])],_0x313a11=window[_0x22cbe3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12374a[_0x22cbe3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12374a[_0x22cbe3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39650a={..._0x2f0539,[_0x22cbe3([0x6a,0x74,0x69])]:_0x12374a[_0x22cbe3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x12374a[_0x22cbe3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39650a[_0x22cbe3([0x76,0x63])],_0x2b1c67(_0x39650a)==_0x313a11;}}}async function _0x340dad(){let _0x13437d=!0x0;try{const _0x105e1a=_0x53bae6[_0x22cbe3([0x73,0x70,0x6c,0x69,0x74])](_0x22cbe3([0x2e])),[_0xf94f8d,_0x4f0ec4,_0x2e6b7b]=_0x105e1a;return _0xf9eecc(_0xf94f8d),await _0x433414(_0xf94f8d,_0x4f0ec4,_0x2e6b7b),_0x13437d;}catch{return!0x1;}function _0xf9eecc(_0xa64981){const _0x53d111=_0x4ee285(_0xa64981);_0x53d111&&_0x53d111[_0x22cbe3([0x61,0x6c,0x67])]==_0x22cbe3([0x45,0x53,0x32,0x35,0x36])||(_0x13437d=!0x1);}async function _0x433414(_0x1804c1,_0x2daa3c,_0x138f98){const _0x1e60a2=window[_0x22cbe3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22cbe3([0x66,0x72,0x6f,0x6d])](_0x21432a(_0x138f98),_0x53edb2=>_0x53edb2[_0x22cbe3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xb6cd24=new window[(_0x22cbe3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22cbe3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1804c1+_0x22cbe3([0x2e])+_0x2daa3c),_0x45b38d=window[_0x22cbe3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22cbe3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x45b38d)return;const _0x16edd4=await _0x45b38d[_0x22cbe3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22cbe3([0x6a,0x77,0x6b]),_0x5ea1f3,{[_0x22cbe3([0x6e,0x61,0x6d,0x65])]:_0x22cbe3([0x45,0x43,0x44,0x53,0x41]),[_0x22cbe3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22cbe3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22cbe3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x45b38d[_0x22cbe3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22cbe3([0x6e,0x61,0x6d,0x65])]:_0x22cbe3([0x45,0x43,0x44,0x53,0x41]),[_0x22cbe3([0x68,0x61,0x73,0x68])]:{[_0x22cbe3([0x6e,0x61,0x6d,0x65])]:_0x22cbe3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x16edd4,_0x1e60a2,_0xb6cd24)||(_0x13437d=!0x1);}}function _0x4ee285(_0xb06ac1){return _0xb06ac1[_0x22cbe3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22cbe3([0x65,0x79]))?JSON[_0x22cbe3([0x70,0x61,0x72,0x73,0x65])](_0x21432a(_0xb06ac1)):null;}function _0x21432a(_0x38931a){return window[_0x22cbe3([0x61,0x74,0x6f,0x62])](_0x38931a[_0x22cbe3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22cbe3([0x2b]))[_0x22cbe3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22cbe3([0x2f])));}function _0x2b1c67(_0x41f1a0){let _0xe27cdf=0x1505;function _0x2f86ce(_0x3ac87b){for(let _0x295c89=0x0;_0x295c89<_0x3ac87b[_0x22cbe3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x295c89++){const _0x4e1cfe=_0x3ac87b[_0x22cbe3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x295c89);_0xe27cdf=(_0xe27cdf<<0x5)+_0xe27cdf+_0x4e1cfe,_0xe27cdf&=_0xe27cdf;}}function _0xc0ded5(_0x74050){Array[_0x22cbe3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x74050)?_0x74050[_0x22cbe3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xc0ded5):_0x74050&&typeof _0x74050==_0x22cbe3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22cbe3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x74050)[_0x22cbe3([0x73,0x6f,0x72,0x74])]()[_0x22cbe3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x18acc3,_0x454c2c])=>{_0x2f86ce(_0x18acc3),_0xc0ded5(_0x454c2c);}):_0x2f86ce(window[_0x22cbe3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x74050));}return _0xc0ded5(_0x41f1a0),_0xe27cdf>>>0x0;}function _0x42dcd4(_0x12e338){return _0x12e338[_0x22cbe3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22cbe3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22cbe3([0x30]));}function _0x8010cd(_0x46fd6e){return _0x46fd6e[_0x22cbe3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22cbe3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22cbe3([0x6a,0x6f,0x69,0x6e])]('');}function _0x52ff43(_0x225b2a){return _0x574ce9[_0x22cbe3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x22cbe3([0x68,0x61,0x73])](_0x225b2a);}function _0x494c20(_0x43ac6f){return _0x574ce9[_0x22cbe3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x22cbe3([0x67,0x65,0x74])](_0x43ac6f);}function _0x5dc120(){}function _0x22cbe3(_0x21efae){return _0x21efae['map'](_0x2d2c3b=>String['fromCharCode'](_0x2d2c3b))['join']('');}_0x5cca7d(await _0xbf0cc5());}(this);}['createRevision'](_0x127800){const _0xce92a7=this['editor']['plugins']['get']('Users');return new I({'id':_0x127800['id'],'name':_0x127800['name'],'creator':_0x127800['creatorId']?_0xce92a7['getUser'](_0x127800['creatorId']):null,'diffData':_0x127800['diffData']||_0x127800['data'],'authors':_0x127800['authorsIds']['map'](_0x13a820=>_0xce92a7['getUser'](_0x13a820)),'createdAt':new Date(_0x127800['createdAt']),'attributes':_0x127800['attributes'],'fromVersion':_0x127800['fromVersion'],'toVersion':_0x127800['toVersion']});}['addRevision'](_0x5b9dd9,_0x16c13=0x0){this['_revisions']['add'](_0x5b9dd9,_0x16c13);}['getRevision'](_0x36d92b){return this['_revisions']['get'](_0x36d92b);}['getRevisions'](_0x576238={'toJSON':!0x1}){const _0x30e1d7=Array['from'](this['_revisions']);return _0x30e1d7['reverse'](),_0x576238['toJSON']?_0x30e1d7['map'](_0x531ed5=>_0x531ed5['toJSON']()):_0x30e1d7;}['getIndex'](_0x126a17){return this['_revisions']['getIndex'](_0x126a17);}['getEarlierVisibleRevision'](_0x7ccb3e){const [,_0x917a65]=this['getRevisionsIterator'](_0x7ccb3e,{'direction':'earlier'});return _0x917a65;}['getLaterVisibleRevision'](_0x5dac46){const [,_0x38bc08]=this['getRevisionsIterator'](_0x5dac46,{'direction':'later'});return _0x38bc08;}['getRevisionsInDiff'](_0x1890d3){const _0x1beddb=[];for(const _0x5a7986 of this['getRevisionsIterator'](_0x1890d3['newRevisionId']))if(_0x1beddb['push'](_0x5a7986),_0x5a7986['id']===_0x1890d3['oldRevisionId'])break;return _0x1beddb;}*['getRevisionsIterator'](_0x1d426a,{direction:_0xd7f77e='earlier',filter:_0x4df955=()=>!0x0}={}){const _0x445b2b='earlier'===_0xd7f77e?0x1:-0x1;let _0x3703bd=this['_revisions']['get'](_0x1d426a),_0x3b6287=this['getIndex'](_0x3703bd);for(yield _0x3703bd;_0x3703bd;){if(_0x3b6287+=_0x445b2b,_0x3703bd=this['getRevision'](_0x3b6287),!_0x3703bd)return;_0x4df955(_0x3703bd)&&(yield _0x3703bd);}}}class $ extends _0x2f9caa{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x58b202,'c'],[_0x2ef722,'a'],[_0xeabc4b,'e'],[_0xdff431,'r'],[_0x28d5ad,'u']]);['_typeCharToViewClass']=new Map([['c',_0x58b202],['a',_0x2ef722],['e',_0xeabc4b],['r',_0xdff431],['u',_0x28d5ad]]);async['loadRevisionData'](_0x499483,_0x332dd1){if(_0x499483['diffData']||!_0x332dd1)return;const _0x3392c4=this['editor']['config']['get']('collaboration.channelId'),_0x716334=await _0x332dd1['getRevision']({'channelId':_0x3392c4,'revisionId':_0x499483['id']});_0x499483['diffData']=_0x716334['diffData'];}['getRevisionDocumentData'](_0x41c4e1){const _0x19ff1d={};for(const _0x35e13a in _0x41c4e1['diffData']){if(_0x41c4e1['diffData'][_0x35e13a]['attachChange']&&!_0x41c4e1['diffData'][_0x35e13a]['attachChange']['isAttached'])continue;const _0x57b6ae=this['_removeRevisionMarkers'](JSON['parse'](_0x41c4e1['diffData'][_0x35e13a]['insertions'])),_0x1bf220=this['editor']['editing']['view']['document'],_0x7bab5f=new _0x23c825(_0x1bf220,_0x57b6ae['map'](_0x231127=>this['_getViewFromDiffObj'](_0x231127,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x19ff1d[_0x35e13a]=this['editor']['data']['processor']['toData'](_0x7bab5f),this['editor']['data']['processor']['useFillerType']('default');}return _0x19ff1d;}['getRevisionRootsAttributes'](_0xc3fc08){const _0x157c8f={};for(const _0x534d21 in _0xc3fc08['diffData'])_0xc3fc08['diffData'][_0x534d21]['attachChange']&&!_0xc3fc08['diffData'][_0x534d21]['attachChange']['isAttached']||(_0x157c8f[_0x534d21]=_0xc3fc08['diffData'][_0x534d21]['attributesAfter']||{});return _0x157c8f;}['_getTypeCharForViewElement'](_0x3b76e4){return this['_viewClassToTypeChar']['get'](_0x3b76e4['constructor']);}['_getViewFromDiffObj'](_0x31efb0,_0x2e64f9){const _0x3af288=this['editor']['editing']['view']['document'];if('string'==typeof _0x31efb0)return new _0x13fe57(_0x3af288,_0x31efb0);{let _0x501007,_0x58cc4d;_0x58cc4d='u'==_0x31efb0['type']||'r'==_0x31efb0['type']?[]:_0x31efb0['children']['map'](_0x210ecd=>this['_getViewFromDiffObj'](_0x210ecd,_0x2e64f9));const _0x3a9f7b=this['_typeCharToViewClass']['get'](_0x31efb0['type'])||_0x5076e4,_0x52da70=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x501007=new _0x3a9f7b(_0x3af288,_0x31efb0['name'],_0x31efb0['attributes'],_0x58cc4d),'u'==_0x31efb0['type']&&_0x31efb0['children'][0x0]){const _0x4b99e5=_0x31efb0['children'][0x0];if(_0x501007['render']=function(_0x788fe){const _0x316b3b=_0x788fe['createElement']('div');return _0x316b3b['innerHTML']=_0x4b99e5,_0x316b3b['childNodes'][0x0];},_0x2e64f9){const _0x266a10=new _0x23c825(_0x3af288);_0x266a10['_appendChild'](_0x501007);const _0x3e435b=Array['from'](_0x52da70['viewChildrenToDom'](_0x266a10,{'bind':!0x1})),_0x140ac0=_0x52da70['domDocument']['createElement']('div');_0x140ac0['append'](..._0x3e435b),_0x501007=Array['from'](_0x52da70['domChildrenToView'](_0x140ac0))[0x0];}}else{if('r'==_0x31efb0['type']&&_0x31efb0['children'][0x0]){const _0x483134=_0x31efb0['children'][0x0];if(_0x501007['render']=function(_0x4f7371){_0x4f7371['innerHTML']=_0x483134;},_0x2e64f9){const _0x2316a2=new _0x23c825(_0x3af288);_0x2316a2['_appendChild'](_0x501007);const _0x333c67=Array['from'](_0x52da70['viewChildrenToDom'](_0x2316a2,{'bind':!0x1})),_0x48dbfc=_0x52da70['domDocument']['createElement']('div');_0x48dbfc['append'](..._0x333c67);const _0x574316=Array['from'](_0x52da70['domChildrenToView'](_0x48dbfc));_0x574316['length']>0x1?_0x501007['_appendChild'](_0x574316):_0x501007=_0x574316[0x0];}}}if(_0x31efb0['customProperties']){for(const [_0x1a0aff,_0x47e5c5]of _0x31efb0['customProperties'])_0x501007['_setCustomProperty'](_0x1a0aff,_0x47e5c5);}const _0x39db3a=void 0x0===_0x31efb0['fillerOffset']?null:_0x31efb0['fillerOffset'];return null!==_0x39db3a&&(_0x501007['getFillerOffset']=()=>_0x39db3a),_0x501007;}}['_makeModelFromViewString'](_0x2851fd){const _0x127386=JSON['parse'](_0x2851fd),_0x556a19=this['editor']['editing']['view']['document'],_0x50f932=new _0x23c825(_0x556a19,_0x127386['map'](_0x3bc59c=>this['_getViewFromDiffObj'](_0x3bc59c,!0x0)));return this['editor']['data']['toModel'](_0x50f932);}['_removeRevisionMarkers'](_0x49d1d0){return(_0x49d1d0=_0x49d1d0['filter'](_0x43ce38=>!_0x43ce38['name']||'revision-start'!==_0x43ce38['name']&&'revision-end'!==_0x43ce38['name']))['forEach'](_0x2dd729=>{'string'!=typeof _0x2dd729&&(_0x2dd729['children']=this['_removeRevisionMarkers'](_0x2dd729['children']),_0x2dd729['attributes']=_0x2dd729['attributes']['filter'](_0x35719d=>!_0x35719d[0x0]['startsWith']('data-revision-')));}),_0x49d1d0;}}function R(_0x22354c,_0x138b28,_0x43405d){const t=_0x22354c['t'];switch(_0x138b28){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'},_0x43405d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x43405d);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 _0x2f9caa{['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[_0x154fb1,S,$,_0x39fb16];}constructor(_0x45f2b8){super(_0x45f2b8),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3c3fd3=_0x53fb10();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3c3fd3},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 _0x4c823b=this['repository']['getRevision'](0x0),_0x5aed0a=_0x4c823b&&null===_0x4c823b['creator']?_0x4c823b:null;if(this['_continueCurrentRevision']=!!_0x5aed0a&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x53b59f=this['_source']['getCurrentRevisionId'](),_0x1c4e34=this['repository']['getRevision'](_0x53b59f);if(_0x1c4e34)this['_startingVersion']=_0x1c4e34['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5087f5=this['_source']['history']['_operations']['find'](_0x35034f=>!_0x35034f['_isInit']),_0x36fdd6=_0x5087f5?_0x5087f5['baseVersion']:this['_source']['history']['version'];_0x4c823b?(_0x4c823b['toVersion']<_0x36fdd6&&_0x4c823b['_update']({'toVersion':_0x36fdd6}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5aed0a['id'],this['_startingVersion']=_0x5aed0a['fromVersion']):(this['_startingVersion']=_0x4c823b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x36fdd6,this['_continueCurrentRevision']=!0x1);}}else _0x5aed0a&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5aed0a['toVersion'],this['editor']['model']['document']['history']['version']),_0x5aed0a['fromVersion']===_0x5aed0a['toVersion']?(0x0!==_0x5aed0a['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5aed0a['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5aed0a['id'],this['_startingVersion']=_0x5aed0a['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',_0x731a80=>!_0x731a80),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x9de6be=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x518ede;for(const _0x1875d8 in _0x9de6be){const _0x3a349d=_0x1875d8,_0x57cac6=_0x9de6be[_0x3a349d];if('revisionHistoryLicenseKeyValid'==_0x57cac6||'revisionHistoryLicenseKeyInvalid'==_0x57cac6||'revisionHistoryLicenseKeyExpired'==_0x57cac6||'revisionHistoryLicenseKeyDomainLimit'==_0x57cac6||'revisionHistoryLicenseKeyNotAllowed'==_0x57cac6||'revisionHistoryLicenseKeyEvaluationLimit'==_0x57cac6||'revisionHistoryLicenseKeyTrialLimit'==_0x57cac6||'revisionHistoryLicenseKeyUsageLimit'==_0x57cac6){delete _0x9de6be[_0x3a349d],_0x518ede=_0x57cac6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x518ede&&_0x9de6be['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x518ede&&_0x9de6be['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x518ede&&_0x9de6be['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x518ede&&_0x9de6be['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x518ede&&_0x9de6be['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x518ede&&_0x9de6be['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x518ede&&_0x9de6be['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2964ff=this['repository']['getRevision'](0x0),_0x41c733=await this['getRevisionDocumentData'](_0x2964ff),_0x4204b9=await this['getRevisionRootsAttributes'](_0x2964ff);this['_replaceEditorDataWithRevisionData'](_0x41c733,_0x4204b9);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5690bc){this['_source']=_0x5690bc;}async['update'](){const _0x20ced=await this['_source']['getLatestVersion']();if(_0x20ced>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2afcef=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x20ced});_0x2afcef['authors']=_0x2afcef['authorsIds']['map'](_0x35cfa2=>this['editor']['plugins']['get']('Users')['getUser'](_0x35cfa2)),this['currentRevision']['_update'](_0x2afcef);}}async['saveRevision'](_0x5187e4={},_0x36fb28=null){const _0xd31531=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x36fb28>this['currentRevision']['toVersion']&&(_0x36fb28=null),null===_0x36fb28&&(_0x36fb28=await this['_source']['getLatestVersion']());const _0x3705e8=this['_getFromVersion'](_0x36fb28),_0x186d6f=this['buildRevisionData']({'from':_0x3705e8,'to':_0x36fb28});if(this['currentRevision']['toVersion']<_0x36fb28){const _0x10084c=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x36fb28,'to':_0x36fb28});_0x10084c['authors']=[],_0x10084c['authorsIds']=[],_0x10084c['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x10084c,!0x0),delete _0x10084c['authors'],_0xd31531['push'](_0x10084c);}_0x5187e4['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5187e4['name']=_0x5187e4['name']||null,_0x5187e4['id']=_0x5187e4['id']||_0x53fb10(),_0x5187e4={..._0x5187e4,..._0x186d6f};const _0x255799=this['addRevisionData'](_0x5187e4);_0xd31531['push'](_0x5187e4);const _0x4423d2=this['repository']['getIndex'](_0x255799);if(0x0!==_0x4423d2){const _0x5c57fe=this['repository']['getRevision'](_0x4423d2-0x1);if(_0x5c57fe['fromVersion']!==_0x36fb28){const _0x3be420=this['_revisionDataBuilder']['getData'](_0x36fb28,_0x5c57fe['toVersion']),_0x3ed585={'id':_0x5c57fe['id'],'diffData':_0x3be420['diffData'],'authorsIds':_0x3be420['authorsIds'],'authors':_0x3be420['authorsIds']['map'](_0x5ef06b=>this['editor']['plugins']['get']('Users')['getUser'](_0x5ef06b)),'fromVersion':_0x36fb28};_0x5c57fe===this['currentRevision']&&(_0x3ed585['createdAt']=new Date(_0x5187e4['createdAt']['getTime']()+0xa)),_0x5c57fe['_update'](_0x3ed585,!0x0),delete _0x3ed585['authors'],_0xd31531['push'](_0x3ed585);}}if(this['adapter']){for(const _0x31a377 of _0xd31531)this['_bufferUpdate'](_0x31a377['id'],_0x31a377,!0x0);this['sendBufferedUpdates']();}return _0x255799;}['addRevisionData'](_0x347d74){const _0x1c3aa4=this['repository']['createRevision'](_0x347d74);return this['adapter']&&_0x1c3aa4['on']('_update',(_0x29c7e8,_0x18c064,_0x1dcd0c)=>{_0x1dcd0c||(this['_bufferUpdate'](_0x18c064['id'],_0x18c064,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1c3aa4,this['_findInsertionIndex'](_0x1c3aa4)),_0x1c3aa4;}async['getRevisionDocumentData'](_0x59082e){return await this['_utils']['loadRevisionData'](_0x59082e,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x59082e);}async['getRevisionRootsAttributes'](_0x1ab932){return await this['_utils']['loadRevisionData'](_0x1ab932,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1ab932);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x10c89c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x54e147=0x0;_0x54e147<_0x10c89c['length'];_0x54e147++){const _0x1a2983=_0x10c89c[_0x54e147];let _0x56b278=!0x1;for(const _0x29df3f of Object['keys'](_0x1a2983))void 0x0===_0x1a2983[_0x29df3f]?delete _0x1a2983[_0x29df3f]:'id'!==_0x29df3f&&(_0x56b278=!0x0);_0x56b278||(_0x10c89c[_0x54e147]=null);}if(_0x10c89c=_0x10c89c['filter'](_0x27a27e=>null!==_0x27a27e),!_0x10c89c['length'])return;for(let _0x15b004=0x0;_0x15b004<_0x10c89c['length'];_0x15b004++){const _0x1836fa=_0x10c89c[_0x15b004];void 0x0!==_0x1836fa['fromVersion']&&void 0x0===_0x1836fa['toVersion']&&(_0x1836fa['toVersion']=this['repository']['getRevision'](_0x1836fa['id'])['toVersion']),void 0x0!==_0x1836fa['toVersion']&&void 0x0===_0x1836fa['fromVersion']&&(_0x1836fa['fromVersion']=this['repository']['getRevision'](_0x1836fa['id'])['fromVersion']);}const _0x1f8fc9=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x10c89c,_0x1f8fc9)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x37533d=>{if(_0x37533d){for(const _0x2112a1 of _0x37533d)this['setRevisionData']({'id':_0x2112a1['id'],'createdAt':_0x2112a1['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x3bdcb7=null,from:_0x5b898a=null,to:_0xd66a1d=null}){_0x5b898a=null!==_0x5b898a?_0x5b898a:_0x3bdcb7['fromVersion'],_0xd66a1d=null!==_0xd66a1d?_0xd66a1d:_0x3bdcb7['toVersion'];const _0x4ec96a=this['_revisionDataBuilder']['getData'](_0x5b898a,_0xd66a1d),_0x371f37={'diffData':_0x4ec96a['diffData'],'authorsIds':_0x4ec96a['authorsIds'],'fromVersion':_0x5b898a,'toVersion':_0xd66a1d};if(!_0x3bdcb7||_0xd66a1d!==_0x3bdcb7['toVersion']){const _0x41124a=_0xd66a1d-0x1,_0xdec853=this['_source']['history']['getOperation'](_0x41124a);_0x371f37['createdAt']=_0xdec853&&_0xdec853['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5b898a===this['_loadedStateData']['fromVersion']){for(const _0x1b7bfd of this['_loadedStateData']['authors'])_0x371f37['authorsIds']['includes'](_0x1b7bfd['id'])||_0x371f37['authorsIds']['push'](_0x1b7bfd['id']);}return _0x371f37;}['_bufferUpdate'](_0xf1c103,_0x2a73ec,_0x27a97e){if(this['_bufferedUpdates']['has'](_0xf1c103)){const _0x46949b=this['_bufferedUpdates']['get'](_0xf1c103);_0x2a73ec=_0x27a97e?{..._0x46949b,..._0x2a73ec}:{..._0x2a73ec,..._0x46949b};}this['_bufferedUpdates']['set'](_0xf1c103,_0x2a73ec);}['setRevisionData'](_0x2563ca){const _0x310613=this['repository']['getRevision'](_0x2563ca['id']);if(_0x2563ca['createdAt']&&(_0x2563ca['createdAt']=new Date(_0x2563ca['createdAt'])),_0x2563ca['authorsIds']){const _0x36a3ec=this['editor']['plugins']['get']('Users');_0x2563ca['authors']=_0x2563ca['authorsIds']['map'](_0x274704=>_0x36a3ec['getUser'](_0x274704));}_0x310613['_update'](_0x2563ca,!0x0);}['_createInitialRevision'](_0x5a6369){const _0x1e3539=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1e3539)this['_initialRevisionId']=_0x1e3539['id'];else{const _0x27f725=!this['editor']['model']['document']['roots']['find'](_0x1eda1e=>this['editor']['model']['hasContent'](_0x1eda1e)),_0x48bdd5=this['editor']['plugins']['get']('Users')['me']['id'],_0x17e9b4=R(this['editor']['locale'],_0x27f725?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5a6369,'to':_0x5a6369,'id':this['_initialRevisionId'],'name':_0x17e9b4,'creatorId':_0x48bdd5});}}['_createCurrentRevision'](_0x4c0e66){const _0x48e177=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x48e177),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4c0e66,'to':_0x4c0e66,'id':_0x48e177,'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'](_0x400545,_0x25e732){let _0x2157af=this['editor']['config']['get']('initialData'),_0x3b07a8=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2157af){_0x2157af={};for(const _0x58830c of this['editor']['model']['document']['getRootNames']())_0x2157af[_0x58830c]='';}if('string'==typeof _0x2157af&&(_0x2157af={'main':_0x2157af}),void 0x0===_0x3b07a8){_0x3b07a8={};for(const _0x387a32 of this['editor']['model']['document']['getRootNames']())_0x3b07a8[_0x387a32]={};}let _0x4ecc68=!0x1;const _0x43d550=Object['keys'](_0x2157af),_0x54e5c0=Object['keys'](_0x400545);for(const _0x1665a9 of _0x43d550){if(_0x2157af[_0x1665a9]!==_0x400545[_0x1665a9]&&''!==_0x2157af[_0x1665a9]['trim']()){_0x4ecc68=!0x0;break;}if(!_0x43a6ba(_0x3b07a8[_0x1665a9],_0x25e732[_0x1665a9])&&Object['keys'](_0x3b07a8[_0x1665a9])['length']>0x0){_0x4ecc68=!0x0;break;}}_0x4ecc68||(_0x4ecc68=_0x54e5c0['some'](_0x2a0700=>!this['editor']['model']['document']['getRoot'](_0x2a0700))),_0x4ecc68&&_0x519833('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2157af,'editorRootsAttributes':_0x3b07a8,'revisionData':_0x400545,'revisionRootsAttributes':_0x25e732}),this['editor']['config']['set']('initialData',_0x400545),this['editor']['config']['set']('rootsAttributes',_0x25e732);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3eb49a=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3eb49a['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3e016a){const _0x5c20f0=this['repository']['getRevisions']();_0x5c20f0['reverse']();let _0x4cd431=0x0;for(;_0x4cd431<_0x5c20f0['length'];){const _0x20668d=_0x5c20f0[_0x4cd431];if(_0x20668d===this['currentRevision']){_0x4cd431++;continue;}if(_0x20668d['id']===this['_initialRevisionId'])break;const _0x3e9e95=_0x3e016a['toVersion']-_0x20668d['toVersion']||_0x3e016a['fromVersion']-_0x20668d['fromVersion'];if(_0x3e9e95>0x0)break;if(_0x3e9e95<0x0)_0x4cd431++;else{if(!_0x3e016a['creator']&&_0x20668d['creator'])break;if(_0x20668d['creator']||!_0x3e016a['creator']){if(_0x3e016a['createdAt']>_0x20668d['createdAt'])break;_0x4cd431++;}else _0x4cd431++;}}return _0x4cd431;}['_getFromVersion'](_0x360f5b){const _0x5aafba=this['repository']['getRevisions']();_0x5aafba['reverse'](),_0x5aafba['shift']();const _0x102ee5=_0x5aafba['find'](_0x3e3284=>_0x3e3284['toVersion']<=_0x360f5b)['toVersion'];return _0x102ee5<this['_startingVersion']?this['_startingVersion']:_0x102ee5;}['_makeRevision']({name:_0x1f0a69,from:_0x428a1d,to:_0x5e3f04,creatorId:_0x129180,id:_0x1cb2d1}){const _0x3650e0=this['buildRevisionData']({'from':_0x428a1d,'to':_0x5e3f04});_0x3650e0['name']=_0x1f0a69,_0x3650e0['creatorId']=_0x129180,_0x3650e0['id']=_0x1cb2d1;const _0x47c0fe=this['addRevisionData'](_0x3650e0);return this['adapter']&&this['_bufferUpdate'](_0x3650e0['id'],_0x3650e0,!0x0),_0x47c0fe;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x22ab47){this['editor']=_0x22ab47,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'](_0x436b0f){this['source']=_0x436b0f;const _0x429185=new Map(),_0xf4a70d=new Map(),_0x3dad8f=this['editor']['model']['document']['roots']['map'](_0x30405f=>_0x30405f['rootName']);for(const _0x4cabd2 of _0x3dad8f){const _0x91099f=this['editor']['model']['document']['getRoot'](_0x4cabd2),_0x51f3c3=x(_0x91099f);_0x429185['set'](_0x4cabd2,_0x51f3c3),_0xf4a70d['set'](_0x4cabd2,Object['fromEntries'](_0x91099f['getAttributes']()));}const _0xea63=Array['from'](this['editor']['model']['markers'])['map'](_0x3e15f5=>[_0x3e15f5['name'],_0x3e15f5['getRange']()]),_0x31785e=this['source']['version'];this['_saveMetaData'](_0x31785e,_0x429185,_0xea63,_0xf4a70d),this['_startingRevisionId']=this['_revisionId'];const _0x52bab2=new Map(),_0x3a782d=new Map();for(const _0x1c00fd of _0x3dad8f){const _0x4f48d3=N(_0x1c00fd);_0x52bab2['set'](_0x1c00fd,_0x4f48d3),_0x3a782d['set'](_0x1c00fd,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x52bab2,[],_0x3a782d);}['getData'](_0x2cba21,_0x4aa37c){if(this['_lastFrom']===_0x2cba21&&this['_lastTo']<=_0x4aa37c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4aa37c,!0x0);else{if(!this['_savedMetaData']['has'](_0x2cba21)){const _0x34ef6e=this['_getPreviousFrom'](_0x2cba21);this['_calculateMetaData'](_0x34ef6e,_0x2cba21,!0x1);}this['_calculateMetaData'](_0x2cba21,_0x4aa37c,!0x0);}return this['_lastFrom']=_0x2cba21,this['_lastTo']=_0x4aa37c,this['_getState']();}['loadState'](_0x6f5b76){const _0x3fb862=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x6f5b76['fromVersion'],this['_lastTo']=_0x6f5b76['toVersion'];for(const _0x13420f in _0x6f5b76['diffData']){const _0x594d89=_0x6f5b76['diffData'][_0x13420f]['attachChange'],_0x36e6c5=_0x57968f(_0x6f5b76['diffData'][_0x13420f]['attributesBefore'])||{},_0x159ae8=_0x3fb862['_makeModelFromViewString'](_0x6f5b76['diffData'][_0x13420f]['deletions']);_0x159ae8['rootName']=_0x13420f,_0x159ae8['_isAttached']=!_0x594d89||!_0x594d89['isAttached'],_0x159ae8['isAttached']=()=>_0x159ae8['_isAttached'],this['_baseRoots']['set'](_0x13420f,_0x159ae8),this['_baseRootsAttributes']['set'](_0x13420f,_0x36e6c5),_0x594d89&&this['_touchedRoots']['set'](_0x13420f,_0x594d89);const _0x3c6ae6=this['_makeIdsRoot'](_0x159ae8);this['_baseIdsRoots']['set'](_0x13420f,_0x3c6ae6);for(const [_0x49f08b,_0xfb57a6]of _0x159ae8['markers']){if(!_0x49f08b['startsWith']('revision:'))continue;const _0x2ede4d=_0x49f08b['split'](':')[0x2];for(const _0x354ad7 of _0xfb57a6['getWalker']({'singleCharacters':!0x0})){const _0x26f5bc=this['_getVidAttributeName'](_0x354ad7),_0x21f97d='elementEnd'==_0x354ad7['type']?_0x354ad7['previousPosition']['path']['slice'](0x0,-0x1):_0x354ad7['previousPosition']['path'],_0x2ecb31=_0x3c6ae6['getNodeByPath'](_0x21f97d)['getAttribute'](_0x26f5bc);this['_touched']['set'](_0x2ecb31,{'userId':_0x2ede4d});}}}this['_startingRevisionId']=this['_revisionId'];const _0x34604c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3e99e3=>!this['_touched']['has'](_0x3e99e3));let _0x307c35=0x0;const _0xb8a5b7=new Map();for(const _0x5e8ce0 in _0x6f5b76['diffData']){const _0x1b461b=_0x6f5b76['diffData'][_0x5e8ce0]['attachChange'],_0x505cc1=_0x57968f(_0x6f5b76['diffData'][_0x5e8ce0]['attributesAfter'])||{},_0x59677f=_0x3fb862['_makeModelFromViewString'](_0x6f5b76['diffData'][_0x5e8ce0]['insertions']);_0x59677f['rootName']=_0x5e8ce0,_0x59677f['_isAttached']=!_0x1b461b||_0x1b461b['isAttached'],_0x59677f['isAttached']=()=>_0x59677f['_isAttached'],this['_diffRoots']['set'](_0x5e8ce0,_0x59677f),this['_diffRootsAttributes']['set'](_0x5e8ce0,_0x505cc1);const _0x2b6c18=this['_makeIdsRoot'](_0x59677f,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5e8ce0,_0x2b6c18),_0xb8a5b7['set'](_0x5e8ce0,_0x59677f['isAttached']()?_0x505cc1:{});for(const [_0x50e7c2,_0x2b0052]of _0x59677f['markers']){if(!_0x50e7c2['startsWith']('revision:'))continue;const _0x1bf317=_0x50e7c2['split'](':')[0x2];for(const _0xb914f2 of _0x2b0052['getWalker']({'singleCharacters':!0x0})){const _0x5bc56a=this['_getVidAttributeName'](_0xb914f2),_0x59bc74=this['_revisionId']++,_0x1b49ab='elementEnd'==_0xb914f2['type']?_0xb914f2['previousPosition']['path']['slice'](0x0,-0x1):_0xb914f2['previousPosition']['path'];_0x2b6c18['getNodeByPath'](_0x1b49ab)['_setAttribute'](_0x5bc56a,_0x59bc74),this['_touched']['set'](_0x59bc74,{'userId':_0x1bf317});}}for(const _0x26600d of this['editor']['model']['createRangeIn'](_0x59677f)['getWalker']({'singleCharacters':!0x0})){const _0x2e7a34=this['_getVidAttributeName'](_0x26600d),_0x34e943='elementEnd'==_0x26600d['type']?_0x26600d['previousPosition']['path']['slice'](0x0,-0x1):_0x26600d['previousPosition']['path'],_0x20c2f0=_0x2b6c18['getNodeByPath'](_0x34e943);_0x20c2f0['getAttribute'](_0x2e7a34)>0x0||_0x20c2f0['_setAttribute'](_0x2e7a34,_0x34604c[_0x307c35++]);}for(const [_0x4d70cc,_0x4ce7bb]of _0x59677f['markers'])_0x4d70cc['startsWith']('revision:')||this['_markers']['set'](_0x4d70cc,_0x4ce7bb);}const _0x2c9b88=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2c9b88),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2c9b88,0x1));const _0xcfbf79=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0xcfbf79),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xcfbf79,0x1));const _0x5cf8b0=Array['from'](this['_diffRoots'])['map'](([_0x334e26,_0x57dcbb])=>[_0x334e26,x(_0x57dcbb)]);this['_saveMetaData'](this['_lastTo'],_0x5cf8b0,this['_markers'],_0xb8a5b7);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x2b76fd,_0x2fc65f,_0x43580a,_0x522b06){const _0x5a3807=new Map(_0x2fc65f),_0x3de83b=new Map(_0x57968f(_0x522b06)),_0x1e48bb=new Map();for(const [_0xd91ddb,_0x20ef40]of _0x43580a)_0x1e48bb['set'](_0xd91ddb,{'start':_0x20ef40['start']['clone'](),'end':_0x20ef40['end']['clone'](),'rootName':_0x20ef40['root']['rootName']});this['_savedMetaData']['set'](_0x2b76fd,{'roots':_0x5a3807,'markers':_0x1e48bb,'rootsAttributes':_0x3de83b});}['_removeMetaData'](_0x1b91e1){this['_savedMetaData']['delete'](_0x1b91e1);}['_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'](_0x34a022,_0x35ee02=null){let _0x31c044=null;_0x34a022['is']('documentFragment')||(_0x31c044=new _0xdf7a4(_0x34a022['name'],{'vid_start':null===_0x35ee02?this['_revisionId']++:_0x35ee02++}));const _0x1e9ba9=[];for(const _0x5d6f5f of _0x34a022['getChildren']())if(_0x5d6f5f['is']('element')){_0x1e9ba9['push'](this['_makeIdsRoot'](_0x5d6f5f,_0x35ee02));const _0x1eb781=_0x1e9ba9[_0x1e9ba9['length']-0x1];null!==_0x35ee02&&(_0x35ee02=_0x1eb781['is']('element','$text')?_0x1eb781['getAttribute']('vid')+0x1:_0x1eb781['getAttribute']('vid_end')+0x1);}else{for(let _0x58af02=0x0;_0x58af02<_0x5d6f5f['offsetSize'];_0x58af02++)_0x1e9ba9['push'](new _0xdf7a4('$text',{'vid':null===_0x35ee02?this['_revisionId']++:_0x35ee02++}));}if(_0x34a022['is']('documentFragment')){const _0x3c8dd3=N(_0x34a022['rootName']);return _0x3c8dd3['_insertChild'](0x0,_0x1e9ba9),_0x3c8dd3;}return _0x31c044['_setAttribute']('vid_end',null===_0x35ee02?this['_revisionId']++:_0x35ee02++),_0x31c044['_insertChild'](0x0,_0x1e9ba9),_0x31c044;}['_calculateMetaData'](_0x57d746,_0x54111a,_0x2c2b34){this['_reset']();const {roots:_0x2a19a8,markers:_0x319b41,rootsAttributes:_0x2d9c0e}=this['_savedMetaData']['get'](_0x57d746);this['_baseRoots']=new Map(_0x2a19a8),this['_baseRootsAttributes']=new Map(_0x57968f(_0x2d9c0e));for(const [_0x1bc489,_0x3ab022]of this['_baseRoots'])if('$graveyard'!==_0x1bc489&&(this['_diffRoots']['set'](_0x1bc489,x(_0x3ab022)),this['_diffRootsAttributes']=new Map(_0x57968f(_0x2d9c0e)),_0x2c2b34)){const _0x5e4b12=this['_revisionId'];this['_idsRoots']['set'](_0x1bc489,this['_makeIdsRoot'](_0x3ab022)),this['_baseIdsRoots']['set'](_0x1bc489,this['_makeIdsRoot'](_0x3ab022,_0x5e4b12));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x2c2b34&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1d3bb9,_0x162f13]of _0x319b41){const _0x4a35df=this['_baseRoots']['get'](_0x162f13['rootName']),_0x55fd5f=this['_diffRoots']['get'](_0x162f13['rootName']),_0x52b7bf=new _0x35df6a(this['_fixPosition'](_0x162f13['start'],_0x4a35df),this['_fixPosition'](_0x162f13['end'],_0x4a35df)),_0x41a079=this['_fixRange'](_0x52b7bf,_0x55fd5f);_0x4a35df['markers']['set'](_0x1d3bb9,_0x52b7bf),this['_markers']['set'](_0x1d3bb9,_0x41a079);}this['_applyOperations'](_0x57d746,_0x54111a,_0x2c2b34);}['_applyOperations'](_0x2bfdd3,_0x3865ad,_0x21214a){for(const _0x31ab1c of this['source']['getOperations'](_0x2bfdd3,_0x3865ad))this['_handleOperation'](_0x31ab1c,_0x21214a);for(const _0x430dd4 of this['_diffRoots']['values']())_0x430dd4['markers']['clear']();for(const [_0x5cdfab,_0x30a9e9]of this['_markers']){this['_diffRoots']['get'](_0x30a9e9['root']['rootName'])['markers']['set'](_0x5cdfab,_0x30a9e9['clone']());}const _0x21ffc8=new Map(),_0x3d4e0c=new Map();for(const [_0x271da2,_0x22ab15]of this['_diffRoots'])_0x21ffc8['set'](_0x271da2,x(_0x22ab15)),_0x3d4e0c['set'](_0x271da2,this['_diffRootsAttributes']['get'](_0x271da2));this['_saveMetaData'](_0x3865ad,_0x21ffc8,this['_markers'],_0x3d4e0c);}['_getPreviousFrom'](_0x1caef5){const _0xdcd292=Array['from'](this['_savedMetaData']['keys']());_0xdcd292['sort']((_0x2ff81b,_0x6dc2cb)=>_0x2ff81b-_0x6dc2cb),_0xdcd292['reverse']();for(const _0xa660b0 of _0xdcd292)if(_0xa660b0<_0x1caef5)return _0xa660b0;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xc3f0a5,_0x475f63){const _0x21f5bf=Array['from'](_0x475f63['markers'])['map'](([_0x3ebe3e,_0x38275c])=>[_0x3ebe3e,this['_fixRange'](_0x38275c,_0xc3f0a5)]);_0xc3f0a5['markers']=new Map(_0x21f5bf);}['_transformMarkers'](_0x5e0912){for(const _0x2a17f7 of this['_markers']['values']()){const _0x4c51ea=_0x2a17f7['getTransformedByOperation'](_0x5e0912),_0x3e330b=_0x35df6a['_createFromRanges'](_0x4c51ea);_0x2a17f7['start']=_0x3e330b['start'],_0x2a17f7['end']=_0x3e330b['end'];}}['_handleOperation'](_0x1861e8,_0x505534){if('addRoot'!=_0x1861e8['type']&&'detachRoot'!=_0x1861e8['type']){if('insert'==_0x1861e8['type']){const _0x4e782a=_0x1861e8['position']['root']['rootName'];this['_diffRoots']['has'](_0x4e782a)||(this['_diffRoots']['set'](_0x4e782a,N(_0x4e782a,!0x0)),this['_diffRootsAttributes']['set'](_0x4e782a,{}),_0x505534&&this['_idsRoots']['set'](_0x4e782a,N(_0x4e782a,!0x0)));}else{if('addRootAttribute'==_0x1861e8['type']||'removeRootAttribute'==_0x1861e8['type']||'changeRootAttribute'==_0x1861e8['type'])return void this['_handleRootAttributeOperation'](_0x1861e8);'marker'==_0x1861e8['type']&&this['_handleMarkerOperation'](_0x1861e8);}if('marker'!==_0x1861e8['type']){const _0x2afea8=this['_cloneOperation'](_0x1861e8,this['_diffRoots']);_0x2afea8['_execute'](),this['_transformMarkers'](_0x2afea8);}if(_0x505534)switch(_0x1861e8['type']){case'insert':this['_handleInsertOperation'](_0x1861e8);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1861e8);break;case'merge':this['_handleMergeOperation'](_0x1861e8);break;case'split':this['_handleSplitOperation'](_0x1861e8);}}else this['_handleRootOperation'](_0x1861e8,_0x505534);}['_cloneOperation'](_0x50f57b,_0x35c3a0){const _0x470794=_0x50f57b['clone']();return _0x470794['_authorId']=_0x50f57b['_authorId'],this['_fixOperation'](_0x470794,_0x35c3a0),_0x470794;}['_getBaseVids'](_0x425b97){return _0x425b97['map'](_0x1ab85=>{const _0x564f10=this['_getVidAttributeName'](_0x1ab85);return Number(_0x1ab85['item']['getAttribute'](_0x564f10));});}['_generateTape'](_0x14169c,_0x496a51){if(_0x14169c['is']('element','$text'))_0x496a51['push']({'item':_0x14169c,'type':'text'});else{_0x14169c['is']('element')&&_0x496a51['push']({'item':_0x14169c,'type':'elementStart'});for(const _0x2dd868 of _0x14169c['getChildren']())this['_generateTape'](_0x2dd868,_0x496a51);_0x14169c['is']('element')&&_0x496a51['push']({'item':_0x14169c,'type':'elementEnd'});}return _0x496a51;}['_getState'](){const _0x4c81e5=new Map(this['_touched']),_0x4e7819=new Map(_0x4c81e5),_0x1c02a1=new Map(),_0x839685={'insertions':{},'deletions':{}},_0x139c1a={'insertions':{},'deletions':{}},_0x1d64d4=new Map(),_0x2a6760=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2a6760['delete']('$graveyard');for(const _0x57b96f of _0x2a6760){const _0x190176=this['_diffRoots']['get'](_0x57b96f)||N(_0x57b96f,!0x1),_0x25655e=this['_baseRoots']['get'](_0x57b96f)||N(_0x57b96f,!0x1);_0x190176['isAttached']()||_0x25655e['isAttached']()?(_0x839685['insertions'][_0x57b96f]=x(_0x190176),_0x839685['deletions'][_0x57b96f]=x(_0x25655e),this['_copyMarkers'](_0x839685['deletions'][_0x57b96f],_0x25655e),this['_copyMarkers'](_0x839685['insertions'][_0x57b96f],_0x190176),_0x139c1a['insertions'][_0x57b96f]=this['_generateTape'](this['_idsRoots']['get'](_0x57b96f),[]),_0x139c1a['deletions'][_0x57b96f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x57b96f)||N(_0x57b96f,!0x1),[])):_0x2a6760['delete'](_0x57b96f);}for(const _0x5d7a73 of _0x2a6760){const _0x1befd3=_0x139c1a['insertions'][_0x5d7a73];for(const _0x45d510 of _0x1befd3){const _0x47c643=this['_getVidAttributeName'](_0x45d510),_0x15b944=_0x45d510['item']['getAttribute'](_0x47c643);_0x4e7819['delete'](_0x15b944),_0x15b944>=this['_startingRevisionId']&&_0x1c02a1['set'](_0x15b944,_0x4c81e5['get'](_0x15b944));}}for(const _0x187a46 of _0x2a6760){const _0x135229=_0x139c1a['insertions'][_0x187a46],_0x2be2a4=this['_getBaseVids'](_0x139c1a['deletions'][_0x187a46]);let _0x559a1e=0x0;for(const _0x5c714d of _0x135229){const _0x424287=this['_getVidAttributeName'](_0x5c714d),_0x45304b=_0x5c714d['item']['getAttribute'](_0x424287);if(!_0x1c02a1['has'](_0x45304b)&&!_0x1d64d4['has'](_0x45304b)){if(_0x4e7819['has'](_0x45304b))_0x559a1e++;else{if(_0x45304b!=_0x2be2a4[_0x559a1e]){const _0x455f57=_0x4c81e5['get'](_0x45304b)||_0x4c81e5['get'](_0x2be2a4[_0x559a1e]);for(;_0x45304b!=_0x2be2a4[_0x559a1e];)_0x4e7819['has'](_0x2be2a4[_0x559a1e])||(_0x1d64d4['set'](_0x2be2a4[_0x559a1e],_0x455f57),_0x4c81e5['set'](_0x2be2a4[_0x559a1e],_0x455f57)),_0x559a1e++;}_0x559a1e++;}}}}for(const _0x31539d of _0x2a6760){const _0xdae008=_0x139c1a['insertions'][_0x31539d];for(const _0x4c5df8 of _0xdae008){const _0x4a6757=this['_getVidAttributeName'](_0x4c5df8),_0x16d6b8=_0x4c5df8['item']['getAttribute'](_0x4a6757);if(_0x1d64d4['has'](_0x16d6b8)){const _0x33b24d=_0x1d64d4['get'](_0x16d6b8);_0x4e7819['has'](_0x16d6b8)||_0x4e7819['set'](_0x16d6b8,{..._0x33b24d}),_0x1c02a1['set'](_0x16d6b8,{..._0x33b24d});}}}for(const _0x9b24ae of _0x4e7819['keys']())_0x9b24ae>=this['_startingRevisionId']&&_0x4e7819['delete'](_0x9b24ae);const _0x1a8442=new Map();for(const _0x3d7ca7 of _0x2a6760){let _0x46bcf0=_0x139c1a['insertions'][_0x3d7ca7];for(const _0x53ae3c of _0x46bcf0)if(_0x53ae3c['item']['is']('element','tableCell')){const _0x1f9c6b=this['_getVidAttributeName'](_0x53ae3c),_0x4e9794=_0x53ae3c['item']['getAttribute'](_0x1f9c6b);if(_0x1c02a1['has'](_0x4e9794)){const _0x8f245b=_0x53ae3c['item']['parent']['parent']['getAttribute']('vid_start'),_0x34b8a4=_0x1a8442['get'](_0x8f245b)||new Set();_0x34b8a4['add'](_0x1c02a1['get'](_0x4e9794)['userId']),_0x1a8442['set'](_0x8f245b,_0x34b8a4);}}_0x46bcf0=_0x139c1a['deletions'][_0x3d7ca7];for(const _0x3e13a9 of _0x46bcf0)if(_0x3e13a9['item']['is']('element','tableCell')){const _0x579a8b=this['_getVidAttributeName'](_0x3e13a9),_0x59eadd=_0x3e13a9['item']['getAttribute'](_0x579a8b);if(_0x4e7819['has'](_0x59eadd)){const _0x7fc8a=_0x3e13a9['item']['parent']['parent']['getAttribute']('vid_start'),_0x1d9d5f=_0x1a8442['get'](_0x7fc8a)||new Set();_0x1d9d5f['add'](_0x4e7819['get'](_0x59eadd)['userId']),_0x1a8442['set'](_0x7fc8a,_0x1d9d5f);}}for(const _0x16dabc of _0x1a8442['keys']())(_0x1c02a1['has'](_0x16dabc)||_0x4e7819['has'](_0x16dabc))&&_0x1a8442['delete'](_0x16dabc);}for(const _0x2c0590 of _0x2a6760){const _0x3afc4d=_0x139c1a['insertions'][_0x2c0590];let _0x306710=null,_0x1e55d0=null;for(const _0x279af3 of _0x3afc4d){const _0x5521ef=this['_getVidAttributeName'](_0x279af3),_0x1f63c0=_0x279af3['item']['getAttribute'](_0x5521ef),_0x57b91=_0x1a8442['get'](_0x1f63c0);_0x57b91&&'elementStart'==_0x279af3['type']&&(_0x306710=Array['from'](_0x57b91)[0x0],_0x1e55d0=_0x279af3['item']['getAttribute']('vid_end')),_0x306710&&(_0x4e7819['set'](_0x1f63c0,{'userId':_0x306710}),_0x1c02a1['set'](_0x1f63c0,{'userId':_0x306710})),_0x1f63c0==_0x1e55d0&&(_0x306710=null,_0x1e55d0=null);}}const _0x37ce49={},_0x37ec86=new Set();for(const _0x516c1c of _0x2a6760){const _0x560c21=_0x839685['deletions'][_0x516c1c],_0xe67d03=_0x839685['insertions'][_0x516c1c];for(const {userId:_0x18e46b}of this['_touchedMarkers']['values']())null!==_0x18e46b&&_0x37ec86['add'](_0x18e46b);for(const {userId:_0x3eb3d7}of this['_touchedRoots']['values']())null!==_0x3eb3d7&&_0x37ec86['add'](_0x3eb3d7);this['_markChanges'](_0xe67d03,_0x139c1a['insertions'][_0x516c1c],_0x1c02a1,'insertion',_0x37ec86),this['_markChanges'](_0x560c21,_0x139c1a['deletions'][_0x516c1c],_0x4e7819,'deletion',_0x37ec86),_0x37ce49[_0x516c1c]={'insertions':this['_prepareViewToSave'](_0xe67d03),'deletions':this['_prepareViewToSave'](_0x560c21),'attachChange':this['_touchedRoots']['get'](_0x516c1c)||null,'attributesBefore':_0x57968f(this['_baseRootsAttributes']['get'](_0x516c1c))||{},'attributesAfter':_0x57968f(this['_diffRootsAttributes']['get'](_0x516c1c))};}return{'diffData':_0x37ce49,'authorsIds':Array['from'](_0x37ec86)};}['_processRootBeforeSave'](_0x535658){for(const [,_0xda40a9]of _0x535658['markers']){const _0x1ff3ec=_0xda40a9['start']['getAncestors']()['filter'](_0x443c5e=>'tableCell'==_0x443c5e['name']);for(const _0x57a907 of _0x1ff3ec)0x1==_0x57a907['childCount']&&_0x57a907['getChild'](0x0)['is']('element','paragraph')&&_0x57a907['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x386f87){this['_processRootBeforeSave'](_0x386f87);const _0x5c7c97=this['editor']['data']['toView'](_0x386f87,{}),_0xc37601=Array['from'](_0x5c7c97['getChildren']())['map'](_0x137e67=>this['_getViewJson'](_0x137e67));return JSON['stringify'](_0xc37601);}['_getViewJson'](_0x16eff0){if(_0x16eff0['is']('$text'))return _0x16eff0['data'];{const _0x463221=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2f7e19=_0x16eff0,_0x33a383=this['editor']['data']['htmlProcessor']['domConverter'],_0x287388={'type':_0x463221['_getTypeCharForViewElement'](_0x2f7e19),'name':_0x2f7e19['name'],'attributes':Array['from'](_0x2f7e19['getAttributes']()),'children':Array['from'](_0x2f7e19['getChildren']())['map'](_0xded433=>this['_getViewJson'](_0xded433))};if(_0x16eff0['is']('uiElement')&&'$comment'!=_0x16eff0['name']){const _0x391c76=_0x16eff0['render'](_0x33a383['domDocument'],_0x33a383);_0x287388['children']['push'](_0x391c76['outerHTML']);}else{if(_0x16eff0['is']('rawElement')){const _0x54b42a=_0x33a383['domDocument']['createElement'](_0x2f7e19['name']);_0x16eff0['render'](_0x54b42a,_0x33a383),_0x287388['children']['push'](_0x54b42a['innerHTML']);}}const _0x45ea52=Array['from'](_0x2f7e19['getCustomProperties']());_0x45ea52['length']>0x0&&(_0x287388['customProperties']=_0x45ea52);const _0x298564=_0x2f7e19['getFillerOffset']();return null!==_0x298564&&(_0x287388['fillerOffset']=_0x298564),_0x287388;}}['_markChanges'](_0x4ef663,_0x4e652d,_0x53ed2b,_0x3cbd1d,_0x57dff3){let _0x56aa12=null,_0x39375a=null,_0x20189f=0x0;const _0x5cda3a=this['editor']['model'];for(let _0x179dd4=0x0;_0x179dd4<_0x4e652d['length'];_0x179dd4++){const _0x122296=this['_getVidAttributeName'](_0x4e652d[_0x179dd4]),_0x50b4cc=_0x4e652d[_0x179dd4]['item']['getAttribute'](_0x122296),_0x3fa5c0=_0x53ed2b['get'](_0x50b4cc),_0x40a061=_0x179dd4==_0x4e652d['length']-0x1;(!_0x56aa12&&_0x3fa5c0&&(_0x56aa12=_0x3fa5c0,_0x39375a=_0x4e652d[_0x179dd4]),_0x56aa12&&(!_0x3fa5c0||_0x3fa5c0['userId']!=_0x56aa12['userId']))&&(_0x15d3d2(_0x3fa5c0,P(_0x39375a,_0x4ef663,_0x5cda3a),P(_0x4e652d[_0x179dd4],_0x4ef663,_0x5cda3a)),_0x56aa12=_0x3fa5c0||null,_0x39375a=_0x3fa5c0?_0x4e652d[_0x179dd4]:null),_0x56aa12&&_0x40a061&&_0x15d3d2(_0x3fa5c0,P(_0x39375a,_0x4ef663,_0x5cda3a),V(_0x4e652d[_0x179dd4],_0x4ef663,_0x5cda3a));}function _0x15d3d2(_0x52000d,_0x261139,_0x418071){const _0x5e8824=_0x56aa12['userId'],_0x46f873='revision:'+_0x3cbd1d+':'+_0x5e8824+':'+_0x20189f++,_0x538745=_0x5cda3a['createRange'](_0x261139,_0x418071);_0x4ef663['markers']['set'](_0x46f873,_0x538745),null!==_0x5e8824&&_0x57dff3['add'](_0x5e8824);}}['_getVidAttributeName'](_0x347ff7){switch(_0x347ff7['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2ef499,_0x4c71cb){_0x2ef499['baseVersion']=null;for(const _0x539272 in _0x2ef499){const _0xc07654=_0x2ef499[_0x539272];if(_0xc07654 instanceof _0x537ba5){const _0x2173fc=_0x4c71cb['get'](_0xc07654['root']['rootName']);_0x2ef499[_0x539272]=this['_fixPosition'](_0xc07654,_0x2173fc);}if(_0xc07654 instanceof _0x35df6a){const _0x4d9aea=_0x4c71cb['get'](_0xc07654['root']['rootName']);_0x2ef499[_0x539272]=this['_fixRange'](_0xc07654,_0x4d9aea);}'root'===_0x539272&&(_0x2ef499['root']=_0x4c71cb['get'](_0x2ef499['root']['rootName']));}}['_fixRange'](_0x3041ab,_0x55396a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3041ab['start'],_0x55396a),this['_fixPosition'](_0x3041ab['end'],_0x55396a));}['_fixPosition'](_0x35b9ab,_0x409c96){return this['editor']['model']['createPositionFromPath'](_0x409c96,_0x35b9ab['path'],_0x35b9ab['stickiness']);}['_handleInsertOperation'](_0x24d8ea){const _0x35acdf=this['_idsRoots']['get'](_0x24d8ea['position']['root']['rootName']),_0xc1ed79=this['_fixPosition'](_0x24d8ea['position'],_0x35acdf),_0x4ea488=null===_0x24d8ea['_authorId']?null:_0x24d8ea['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1445c3=_0xc1ed79['parent'],_0x31ccee=this['_revisionId'],_0x4ba96d=[];for(const _0x363534 of _0x24d8ea['nodes'])if(_0x363534['is']('element'))_0x4ba96d['push'](this['_makeIdsRoot'](_0x363534));else{for(let _0x2e1b32=0x0;_0x2e1b32<_0x363534['offsetSize'];_0x2e1b32++)_0x4ba96d['push'](new _0xdf7a4('$text',{'vid':this['_revisionId']++}));}const _0x5af553=this['_revisionId'];for(let _0x2b4f17=_0x31ccee;_0x2b4f17<_0x5af553;_0x2b4f17++)this['_touched']['set'](_0x2b4f17,{'userId':_0x4ea488});_0x1445c3['_insertChild'](_0xc1ed79['offset'],_0x4ba96d);}['_handleMoveOperation'](_0x240dd3){(_0x240dd3=this['_cloneOperation'](_0x240dd3,this['_idsRoots']))['_execute']();const _0x306a83=null===_0x240dd3['_authorId']?null:_0x240dd3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x8413a9=_0x240dd3['getMovedRangeStart'](),_0x57b5b8=_0x8413a9['parent'],_0xc77c2a=_0x8413a9['offset'];!function _0x53b226(_0x95922f,_0x1b75a8,_0x29801a,_0x4c12a1){for(let _0x339286=_0x29801a;_0x339286<_0x4c12a1;_0x339286++){const _0x46f4ca=_0x1b75a8['getChild'](_0x339286);_0x46f4ca['is']('element','$text')?_0x95922f['set'](_0x46f4ca['getAttribute']('vid'),{'userId':_0x306a83}):(_0x95922f['set'](_0x46f4ca['getAttribute']('vid_start'),{'userId':_0x306a83}),_0x53b226(_0x95922f,_0x46f4ca,0x0,_0x46f4ca['childCount']),_0x95922f['set'](_0x46f4ca['getAttribute']('vid_end'),{'userId':_0x306a83}));}}(this['_touched'],_0x57b5b8,_0xc77c2a,_0xc77c2a+_0x240dd3['howMany']);}['_handleMergeOperation'](_0x472370){const _0x55c9a3=null===(_0x472370=this['_cloneOperation'](_0x472370,this['_idsRoots']))['_authorId']?null:_0x472370['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe790b4=_0x472370['targetPosition']['parent'],_0x3777ae=_0x472370['sourcePosition']['parent'],_0x38915a=_0xe790b4['getAttribute']('vid_end'),_0x4659db=_0x3777ae['getAttribute']('vid_start');_0xe790b4['_setAttribute']('vid_end',_0x3777ae['getAttribute']('vid_end')),_0x3777ae['_setAttribute']('vid_end',_0x38915a),this['_touched']['set'](_0x4659db,{'userId':_0x55c9a3}),this['_touched']['set'](_0x38915a,{'userId':_0x55c9a3}),_0x472370['_execute']();}['_handleSplitOperation'](_0x50b671){const _0x41c533=null===(_0x50b671=this['_cloneOperation'](_0x50b671,this['_idsRoots']))['_authorId']?null:_0x50b671['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x20fcf8=_0x50b671['graveyardPosition'],_0x2ebe4e=_0x50b671['splitPosition']['parent'];_0x50b671['_execute']();const _0x38c8a2=_0x2ebe4e['getAttribute']('vid_end'),_0x22c924=_0x50b671['insertionPosition']['nodeAfter'];if(_0x20fcf8){const _0xcbd8d9=_0x22c924['getAttribute']('vid_end'),_0x3d88f2=_0x2ebe4e['getAttribute']('vid_end');_0x2ebe4e['_setAttribute']('vid_end',_0xcbd8d9),_0x22c924['_setAttribute']('vid_end',_0x3d88f2),this['_touched']['set'](_0x2ebe4e['getAttribute']('vid_end'),{'userId':_0x41c533}),this['_touched']['set'](_0x22c924['getAttribute']('vid_start'),{'userId':_0x41c533});}else{const _0x35f479=this['_revisionId']++,_0x3bee72=this['_revisionId']++;_0x2ebe4e['_setAttribute']('vid_end',_0x35f479),_0x22c924['_setAttribute']('vid_start',_0x3bee72),_0x22c924['_setAttribute']('vid_end',_0x38c8a2),this['_touched']['set'](_0x35f479,{'userId':_0x41c533}),this['_touched']['set'](_0x3bee72,{'userId':_0x41c533});}}['_handleMarkerOperation'](_0x3980cd){if(!_0x3980cd['affectsData'])return;const _0x393161=(_0x3980cd=this['_cloneOperation'](_0x3980cd,this['_diffRoots']))['oldRange']?_0x3980cd['oldRange']['root']:null,_0x319ace=_0x3980cd['newRange']?_0x3980cd['newRange']['root']:null;_0x393161&&this['_markers']['delete'](_0x3980cd['name']),_0x319ace&&this['_markers']['set'](_0x3980cd['name'],_0x3980cd['newRange']['clone']());const _0x306522=null===_0x3980cd['_authorId']?null:_0x3980cd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xae6c2c=_0x3980cd['name'];if(!this['_touchedMarkers']['has'](_0xae6c2c))return void this['_touchedMarkers']['set'](_0xae6c2c,{'range':_0x3980cd['oldRange'],'userId':_0x306522});const _0x128b3a=this['_touchedMarkers']['get'](_0xae6c2c),_0x45e6ab=_0x128b3a['range'],_0x57e580=_0x3980cd['newRange'];null==_0x45e6ab&&null==_0x57e580||_0x45e6ab&&_0x57e580&&_0x45e6ab['isEqual'](_0x57e580)?this['_touchedMarkers']['delete'](_0x3980cd['name']):_0x128b3a['userId']=_0x306522;}['_handleRootOperation'](_0x578ebd,_0x1602c5){this['_diffRoots']['has'](_0x578ebd['rootName'])?this['_diffRoots']['get'](_0x578ebd['rootName'])['_isAttached']=_0x578ebd['isAdd']:(this['_diffRoots']['set'](_0x578ebd['rootName'],N(_0x578ebd['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x578ebd['rootName'],{}),_0x1602c5&&this['_idsRoots']['set'](_0x578ebd['rootName'],N(_0x578ebd['rootName'],!0x0)));const _0x45c1d8=null===_0x578ebd['_authorId']?null:_0x578ebd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c23f7=this['_touchedRoots']['get'](_0x578ebd['rootName']);_0x1c23f7&&_0x1c23f7['userId']===_0x45c1d8?this['_touchedRoots']['delete'](_0x578ebd['rootName']):this['_touchedRoots']['set'](_0x578ebd['rootName'],{'userId':_0x45c1d8,'isAttached':_0x578ebd['isAdd']});}['_handleRootAttributeOperation'](_0x499436){const _0x56d896=this['_diffRootsAttributes']['get'](_0x499436['root']['rootName']);null===_0x499436['newValue']?delete _0x56d896[_0x499436['key']]:_0x56d896[_0x499436['key']]=_0x499436['newValue'];}}function x(_0x2933bd){const _0x106579=N(_0x2933bd['rootName'],_0x2933bd['isAttached']());for(const _0xcb5b62 of _0x2933bd['getChildren']()){const _0x3cc829=_0xcb5b62['_clone'](!0x0);_0x106579['_appendChild'](_0x3cc829);}return _0x106579;}function N(_0x5841d5,_0x456d90=!0x0){const _0x55936d=new _0x283d24();return _0x55936d['rootName']=_0x5841d5,_0x55936d['_isAttached']=_0x456d90,_0x55936d['isAttached']=()=>_0x55936d['_isAttached'],_0x55936d;}function P(_0x5cb231,_0x1de0af,_0x463043){const _0x273285='elementEnd'==_0x5cb231['type']?_0x463043['createPositionAt'](_0x5cb231['item'],'end'):_0x463043['createPositionBefore'](_0x5cb231['item']);return _0x463043['createPositionFromPath'](_0x1de0af,_0x273285['path'],_0x273285['stickiness']);}function V(_0x254d1c,_0xb6d5e1,_0x1aa679){const _0x30263e='elementStart'==_0x254d1c['type']?_0x1aa679['createPositionAt'](_0x254d1c['item'],0x0):_0x1aa679['createPositionAfter'](_0x254d1c['item']);return _0x1aa679['createPositionFromPath'](_0xb6d5e1,_0x30263e['path'],_0x30263e['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x53316a(_0x5890cf){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x16038c,_0x15e998){super(_0x16038c),this['focusTracker']=new _0x1a890c(),this['keystrokes']=new _0x1ced13(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x15e998),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'](),_0x37195b({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x42fd08=_0x3d1a21=>_0x3d1a21['stopPropagation']();this['keystrokes']['set']('arrowright',_0x42fd08),this['keystrokes']['set']('arrowleft',_0x42fd08),this['keystrokes']['set']('arrowup',_0x42fd08),this['keystrokes']['set']('arrowdown',_0x42fd08);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x10e924){this['revisionNameInputView']['fieldView']['element']['value']=_0x10e924['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5cec47){const _0x42bc01=new et(this['locale'],ti),_0x5717fe=_0x42bc01['fieldView'];_0x5717fe['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x217c31=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5cec47&&(_0x217c31+='\x20('+R(this['locale'],'optional')+')'),(_0x42bc01['label']=_0x217c31,_0x5717fe['on']('input',()=>{this['revisionNameInputValue']=_0x5717fe['element']['value']['trim']();}),_0x42bc01);}}class v extends _0x2f9caa{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x42dd6a=this['editor'],_0x32761a=_0x42dd6a['plugins']['get']('RevisionTracker');_0x42dd6a['ui']['componentFactory']['add']('revisionHistory',_0x2af4fc=>{const _0x406e8e=_0x757e0c(_0x2af4fc),_0x20772b=_0x406e8e['panelView']['children'],_0x59718c=new _0x51e78a(_0x2af4fc),_0x39e637=new _0x540c37(_0x2af4fc),_0x2416d4=new _0x5a3d97(_0x2af4fc),_0x4775af=new _0x540c37(_0x2af4fc),_0xfcd0f5=new _0x5a3d97(_0x2af4fc);return _0x406e8e['bind']('isEnabled')['to'](_0x32761a,'isReady',_0x32761a,'isEnabled',_0x42dd6a,'isReadOnly',(_0x699342,_0x5eb388,_0x6b1812)=>_0x699342&&_0x5eb388&&!_0x6b1812),_0x406e8e['buttonView']['set']({'icon':_0x24259c,'label':R(_0x2af4fc,'Revision\x20history'),'tooltip':!0x0}),_0x2416d4['set']({'label':R(_0x2af4fc,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2416d4['bind']('isEnabled')['to'](_0x32761a,'isReady',_0x32761a,'isEnabled',_0x42dd6a,'isReadOnly',(_0x40600a,_0x4b115f,_0x4e316c)=>_0x40600a&&_0x4b115f&&!_0x4e316c),_0x2416d4['on']('execute',()=>this['_showDialog']()),_0xfcd0f5['set']({'label':R(_0x2af4fc,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xfcd0f5['bind']('isEnabled')['to'](_0x32761a,'isReady',_0x42dd6a,'isReadOnly',(_0x1a39cf,_0x52225e)=>_0x1a39cf&&!_0x52225e),_0xfcd0f5['on']('execute',()=>{_0x42dd6a['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x406e8e['isOpen']=!0x1,_0x42dd6a['editing']['view']['focus']();}),_0x39e637['children']['add'](_0x2416d4),_0x4775af['children']['add'](_0xfcd0f5),_0x59718c['role']='menu',_0x59718c['items']['addMany']([_0x39e637,_0x4775af]),_0x20772b['add'](_0x59718c),_0x406e8e;}),_0x42dd6a['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x9b5955=this['editor'],_0x2f7e34=_0x9b5955['locale'],_0x599ee8=new _0x476bb2(_0x2f7e34),_0xe46951=new _0x349caf(_0x2f7e34);_0x599ee8['buttonView']['set']({'icon':_0x24259c,'label':R(_0x2f7e34,'Revision\x20history')});const _0x58bf8a=new _0x3eccce(_0x2f7e34,_0x599ee8),_0x4c586f=new _0x3d8064(_0x2f7e34);_0x4c586f['set']({'label':R(_0x2f7e34,'Save\x20current\x20revision')}),_0x4c586f['delegate']('execute')['to'](_0x599ee8),_0x4c586f['on']('execute',()=>{this['_showDialog']();}),_0x58bf8a['children']['add'](_0x4c586f),_0xe46951['items']['add'](_0x58bf8a);const _0x3d9394=new _0x3eccce(_0x2f7e34,_0x599ee8),_0x177f4a=new _0x3d8064(_0x2f7e34);return _0x177f4a['set']({'label':R(_0x2f7e34,'Open\x20revision\x20history')}),_0x177f4a['delegate']('execute')['to'](_0x599ee8),_0x177f4a['on']('execute',()=>{_0x9b5955['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3d9394['children']['add'](_0x177f4a),_0xe46951['items']['add'](_0x3d9394),_0x599ee8['panelView']['children']['add'](_0xe46951),_0x599ee8;}['_showDialog'](){const _0x5b8c43=this['editor'],_0x499e46=_0x5b8c43['locale'],_0x13442d=_0x5b8c43['plugins']['get']('Dialog'),_0x5ad835=_0x5b8c43['plugins']['get']('RevisionTracker');function _0x35c568(_0x37f835){_0x5b8c43['config']['get']('revisionHistory.requireRevisionName')&&''===_0x37f835['revisionName']?_0x37f835['revisionNameInputView']['errorText']=R(_0x499e46,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5b8c43['plugins']['get'](h)['saveRevision']({'name':_0x37f835['revisionName']}),_0x13442d['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x35c568(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x13442d['show']({'id':'revisionSave','title':R(_0x499e46,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x5b8c43['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x13442d['hide']()},{'label':R(_0x5b8c43['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x599019){_0x599019['bind']('isEnabled')['to'](_0x5ad835,'isReady',_0x5ad835,'isEnabled',_0x5b8c43,'isReadOnly',(_0x1649bf,_0x4841e7,_0x1e17dd)=>_0x1649bf&&_0x4841e7&&!_0x1e17dd);},'onExecute':()=>_0x35c568(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5fac2a=this['editor'],_0x4d7548=_0x5fac2a['locale'];this['_saveRevisionFormView']=new me(_0x4d7548,_0x5fac2a['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x5890cf{['changeId'];['_model'];constructor(_0x54fdfd,_0x29a0a8){super(_0x54fdfd),this['_model']=_0x29a0a8,this['changeId']=_0x29a0a8['id'];const _0x259972=this['bindTemplate'],_0x328255=R(_0x54fdfd,_0x29a0a8['data']['isSuggestion']?'Suggested\x20by':'add'==_0x29a0a8['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x29a0a8['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x259972['to']('type',_0x479a6e=>'ck-revision-change__'+_0x479a6e)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x328255}]},{'text':'\x20'+_0x29a0a8['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4cb812(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1dec56){super(),this['id']=_0x1dec56['id']||_0x53fb10(),this['author']=_0x1dec56['author'],this['type']=_0x1dec56['type'],this['data']=_0x1dec56['data']||{},this['rootName']=_0x1dec56['rootName'],this['set']('createdAt',_0x1dec56['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(_0x4531e5,_0x54fb9f){this['newRevisionId']=_0x4531e5,this['oldRevisionId']=_0x54fb9f,this['changes']=new _0x4ce31f();}['_setChanges'](_0x358bd7){for(const _0x196f2e of _0x358bd7)this['changes']['add'](_0x196f2e);}}class l extends _0x2f9caa{['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[_0x154fb1,_0x1c454d,S,$];}constructor(_0x40688b){super(_0x40688b),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',(_0x4d793b,_0x4c062b,_0x5cc147)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2ce7b3=>{for(const _0xbb03c9 of this['editor']['editing']['view']['document']['roots'])_0x5cc147?_0x2ce7b3['removeClass']('ck-editor__editable__overlay',_0xbb03c9):_0x2ce7b3['addClass']('ck-editor__editable__overlay',_0xbb03c9);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x14fc51=>null!==_0x14fc51),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2ce1fd,_0x3334eb,_0x53c21f)=>_0x2ce1fd&&_0x53c21f?_0x3334eb['changes']['getIndex'](_0x53c21f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x439c3e,_0x13b50c)=>_0x439c3e?_0x13b50c['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1c454d);}['init'](){const _0x3825be=this['editor'],_0x4feb87=new rt(_0x3825be,{'direction':'backward'}),_0x15268d=new rt(_0x3825be,{'direction':'forward'});(_0x3825be['commands']['add']('showPreviousChange',_0x4feb87),_0x3825be['commands']['add']('showNextChange',_0x15268d),_0x3825be['commands']['add']('restoreRevision',new nt(_0x3825be)),this['on']('change:numberOfChanges',()=>{_0x4feb87['refresh'](),_0x15268d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3825be['enableReadOnlyMode']('revision-viewer'),_0x3825be['plugins']['has']('WidgetToolbarRepository'))&&_0x3825be['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x34a148){return await this['_utils']['loadRevisionData'](_0x34a148,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x34a148);}async['getRevisionRootsAttributes'](_0x5088fb){return await this['_utils']['loadRevisionData'](_0x5088fb,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5088fb);}async['compare'](_0x4c296d,_0x40a52e,_0x399b7c=!0x1){if(!this['isEnabled'])return;const _0x243e2a=this['diff'],_0x217ff5=this['repository'],_0x147328='string'==typeof _0x4c296d?_0x217ff5['getRevision'](_0x4c296d):_0x4c296d,_0x384a11='string'==typeof _0x40a52e?_0x217ff5['getRevision'](_0x40a52e):_0x40a52e,_0x17496b=_0x147328['id'],_0x11e783=_0x384a11?_0x384a11['id']:null;if(!_0x399b7c&&this['diff']&&this['diff']['newRevisionId']===_0x17496b&&this['diff']['oldRevisionId']===_0x11e783)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x17496b,_0x11e783);const _0x28a4f2=this['_getRevisionsRange'](_0x147328,_0x384a11,!0x0)['map'](_0x2cb205=>this['_utils']['loadRevisionData'](_0x2cb205,this['adapter']));return _0x28a4f2['push'](new Promise(_0x5c343a=>{setTimeout(_0x5c343a,0x14);})),Promise['all'](_0x28a4f2)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x21b544=this['_getDiff'](_0x17496b,_0x11e783);for(const _0x60e50e of _0x21b544['changes'])this['_changeIdToChange']['set'](_0x60e50e['id'],_0x60e50e);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x36c10b=>{for(const _0x4f836f of this['editor']['model']['document']['getRootNames']())_0x36c10b['detachRoot'](_0x4f836f);for(const _0x4cd8c3 of Object['keys'](_0x21b544['model'])){const _0x5ccd13=_0x36c10b['addRoot'](_0x4cd8c3);for(const _0x28f845 of Object['keys'](_0x21b544['attributes'][_0x4cd8c3]))_0x36c10b['setAttribute'](_0x28f845,_0x21b544['attributes'][_0x4cd8c3][_0x28f845],_0x5ccd13);_0x36c10b['insert'](_0x21b544['model'][_0x4cd8c3],_0x5ccd13,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x21b544['changes'])),this['isReady']=!0x0;})['catch'](_0x471269=>{console['error'](_0x471269),this['_cleanUp'](),_0x243e2a&&(this['diff']=_0x243e2a),this['isReady']=!0x0;});}['addRevisionData'](_0x5715a3,_0x1ea441){const _0x40d185=this['repository']['createRevision'](_0x5715a3);return _0x40d185['on']('_update',(_0x4880a1,_0x121778,_0x35560b)=>_0x1ea441(_0x121778,_0x35560b,_0x40d185)),this['repository']['addRevision'](_0x40d185),_0x40d185;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x44af22=>{for(const _0x5cbe9d of this['editor']['model']['document']['getRootNames']())_0x44af22['detachRoot'](_0x5cbe9d);});}['_sortAndFilterDiffChanges'](_0x3c5bfd){const _0x1cb454=[],_0x5e14aa=new Map();for(const _0x551215 of this['editor']['model']['document']['getRootNames']()){const _0x12b233=this['editor']['editing']['view']['getDomRoot'](_0x551215);if(!_0x12b233)continue;const _0x3c6bdb=_0x12b233['getClientRects']()['item'](0x0);_0x3c6bdb&&(_0x1cb454['push'](_0x551215),_0x5e14aa['set'](_0x551215,_0x3c6bdb));}return _0x1cb454['sort']((_0x15698e,_0xdefb37)=>{const _0x4815cf=_0x5e14aa['get'](_0x15698e),_0x4c488c=_0x5e14aa['get'](_0xdefb37);return _0x4815cf['y']-_0x4c488c['y']||_0x4815cf['x']-_0x4c488c['x'];}),(_0x3c5bfd=_0x3c5bfd['filter'](_0x5d0359=>_0x1cb454['includes'](_0x5d0359['rootName'])))['sort']((_0x3cb38e,_0x2cc8f8)=>_0x1cb454['indexOf'](_0x3cb38e['rootName'])-_0x1cb454['indexOf'](_0x2cc8f8['rootName'])),_0x3c5bfd;}['_makeTape'](_0x271dc0){const _0x22abb4=Array['from'](_0x271dc0['markers'])['filter'](([_0x5c81b1,_0xa834cb])=>_0x5c81b1['startsWith']('revision:')&&!_0xa834cb['isCollapsed']),_0x34ed85=Array['from'](this['editor']['model']['createRangeIn'](_0x271dc0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x22abb4['length'])for(const _0x523769 of _0x34ed85){const [_0x13571a,_0x2ae753]=_0x22abb4[0x0],[,_0x571346,_0x5ae30f]=_0x13571a['split'](':');if(_0x2ae753['end']['isEqual'](_0x523769['nextPosition'])&&_0x22abb4['shift'](),(_0x523769['previousPosition']['isEqual'](_0x2ae753['start'])||_0x523769['previousPosition']['isAfter'](_0x2ae753['start']))&&('insertion'==_0x571346?_0x523769['isAdded']={'userId':_0x5ae30f}:'deletion'==_0x571346&&(_0x523769['isRemoved']={'userId':_0x5ae30f})),0x0==_0x22abb4['length'])break;}return _0x34ed85;}['_refreshStartEndIndex'](_0x9ca6df){const _0x4ee021=new Map();for(let _0x158733=0x0;_0x158733<_0x9ca6df['length'];_0x158733++)'text'===_0x9ca6df[_0x158733]['type']?(_0x9ca6df[_0x158733]['item']['startIndex']=_0x158733,_0x9ca6df[_0x158733]['item']['endIndex']=_0x158733):('elementStart'===_0x9ca6df[_0x158733]['type']?_0x9ca6df[_0x158733]['item']['startIndex']=_0x158733:'elementEnd'===_0x9ca6df[_0x158733]['type']&&(_0x9ca6df[_0x158733]['item']['endIndex']=_0x158733),_0x4ee021['set'](_0x9ca6df[_0x158733]['id'],_0x158733));for(const _0x1ebcf5 of _0x4ee021['values']())'elementStart'===_0x9ca6df[_0x1ebcf5]['type']?_0x9ca6df[_0x1ebcf5]['item']['endIndex']=_0x4ee021['get'](_0x9ca6df[_0x1ebcf5]['pairId']):'elementEnd'===_0x9ca6df[_0x1ebcf5]['type']&&(_0x9ca6df[_0x1ebcf5]['item']['startIndex']=_0x4ee021['get'](_0x9ca6df[_0x1ebcf5]['pairId']));}['_processTape'](_0x4b9e8f){for(let _0x96c14b=0x0;_0x96c14b<_0x4b9e8f['length'];_0x96c14b++){if('elementStart'===_0x4b9e8f[_0x96c14b]['type'])_0x4b9e8f[_0x96c14b]['item']['startIndex']=_0x96c14b;else{if('elementEnd'===_0x4b9e8f[_0x96c14b]['type']){_0x4b9e8f[_0x96c14b]['item']['endIndex']=_0x96c14b;const _0x3419d7=_0x4b9e8f[_0x96c14b]['item']['startIndex'];_0x4b9e8f[_0x3419d7]['pairId']=_0x4b9e8f[_0x96c14b]['id'],_0x4b9e8f[_0x96c14b]['pairId']=_0x4b9e8f[_0x3419d7]['id'];}else _0x4b9e8f[_0x96c14b]['item']['startIndex']=_0x96c14b,_0x4b9e8f[_0x96c14b]['item']['endIndex']=_0x96c14b,_0x4b9e8f[_0x96c14b]['pairId']=null;}_0x4b9e8f[_0x96c14b]['markersStart']||(_0x4b9e8f[_0x96c14b]['markersStart']=[],_0x4b9e8f[_0x96c14b]['markersEnd']=[]);}}['_markInsertions'](_0x54152b,_0x359754){const _0x75f9c0=_0x54152b['filter'](_0x587cea=>!_0x587cea['isAdded']);for(let _0x4a2504=0x0;_0x4a2504<_0x359754['length'];_0x4a2504++)_0x359754[_0x4a2504]['isAdded']&&(_0x75f9c0[_0x4a2504]['isAdded']=_0x359754[_0x4a2504]['isAdded']);}['_getDiff'](_0x31bd87,_0x24d215=null){const _0x1bd5d0=this['repository']['getRevision'](_0x31bd87),_0x17240b=_0x24d215?this['repository']['getRevision'](_0x24d215):null,_0x9b7849=this['_getRevisionsRange'](_0x1bd5d0,_0x17240b),_0x3a48b6=_0x9b7849[_0x9b7849['length']-0x1],_0x31be8e=new Map(),_0x4f0187={'model':{},'attributes':{},'changes':[]},_0x2d8b93=new Set(),_0x12cd6c=new Map();for(let _0x2ad5c3=_0x9b7849['length']-0x1;_0x2ad5c3>=0x0;_0x2ad5c3--){const _0x2e5c62=_0x9b7849[_0x2ad5c3];for(const _0x1e33e0 of Object['keys'](_0x2e5c62['diffData']))if(_0x2e5c62['diffData'][_0x1e33e0]['attachChange']){const _0x54094a=_0x2e5c62['diffData'][_0x1e33e0]['attachChange'];_0x54094a['isAttached']?(_0x2d8b93['add'](_0x1e33e0),_0x12cd6c['has'](_0x1e33e0)&&_0x12cd6c['get'](_0x1e33e0)['userId']==_0x54094a['userId']?_0x12cd6c['delete'](_0x1e33e0):_0x12cd6c['set'](_0x1e33e0,_0x54094a)):_0x12cd6c['has'](_0x1e33e0)?(_0x2d8b93['delete'](_0x1e33e0),_0x12cd6c['delete'](_0x1e33e0)):(_0x2d8b93['add'](_0x1e33e0),_0x12cd6c['set'](_0x1e33e0,_0x54094a));}else _0x2d8b93['add'](_0x1e33e0);}for(const _0x14cc1c of _0x2d8b93){const _0x110a32=_0x12cd6c['has'](_0x14cc1c)&&!_0x12cd6c['get'](_0x14cc1c)['isAttached'];let _0x2ac9bd=_0x110a32?_0x9b7849['length']-0x1:0x0;const _0x4b7696=_0x110a32?-0x1:0x1;for(;_0x9b7849[_0x2ac9bd];){const _0x5bde56=_0x9b7849[_0x2ac9bd];if(_0x5bde56['diffData'][_0x14cc1c]){const _0x3d2978=_0x110a32?_0x5bde56['diffData'][_0x14cc1c]['attributesBefore']:_0x5bde56['diffData'][_0x14cc1c]['attributesAfter'];_0x4f0187['attributes'][_0x14cc1c]=_0x3d2978?_0x57968f(_0x3d2978):{};break;}_0x2ac9bd+=_0x4b7696;}}for(const _0x136fea of _0x9b7849){_0x136fea['model']={};for(const _0x12b079 of _0x136fea['authors'])_0x31be8e['set'](_0x12b079['id'],_0x12b079);for(const _0x48f5cb of _0x2d8b93){const _0x2557bb=_0x136fea['diffData'][_0x48f5cb]?_0x136fea['diffData'][_0x48f5cb]['insertions']:'[]',_0x2ef205=_0x136fea['diffData'][_0x48f5cb]?_0x136fea['diffData'][_0x48f5cb]['deletions']:'[]';_0x136fea['model'][_0x48f5cb]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2557bb),'deletions':this['_utils']['_makeModelFromViewString'](_0x2ef205)};}}for(const _0x191412 of _0x2d8b93){let _0x209a2d=null,_0x1a09c9=0x0;const _0x5aeedd=new Map(Array['from'](_0x1bd5d0['model'][_0x191412]['insertions']['markers'])['filter'](([_0x3f67a5])=>!_0x3f67a5['startsWith']('revision:')));let _0x315acb=0x0;for(const _0x3d6e42 of _0x9b7849){const _0x2a3598=this['_makeTape'](_0x3d6e42['model'][_0x191412]['insertions']);_0x3d6e42==_0x1bd5d0?(_0x209a2d=_0x2a3598,_0x1a09c9=_0x209a2d['length'],_0x209a2d['forEach'](_0x2f7b45=>{_0x2f7b45['id']=_0x315acb++;}),this['_processTape'](_0x209a2d)):this['_markInsertions'](_0x209a2d,_0x2a3598);const _0x20c481=_0x209a2d['filter'](_0x5847bd=>!_0x5847bd['isAdded'])['map'](_0x28e8b2=>_0x28e8b2['id']);let _0x2cb44b=0x0;const _0x2fe2da=this['_makeTape'](_0x3d6e42['model'][_0x191412]['deletions']);_0x2fe2da['forEach'](_0x38986f=>{_0x38986f['isRemoved']?_0x38986f['id']=_0x1a09c9++:_0x38986f['id']=_0x20c481[_0x2cb44b++];}),this['_processTape'](_0x2fe2da),this['_setDistance'](_0x209a2d,'isAdded'),this['_setDistance'](_0x2fe2da,'isRemoved'),_0x3d6e42==_0x1bd5d0&&this['_markMarkers'](_0x209a2d,_0x5aeedd),_0x209a2d=this['_joinTapes'](_0x209a2d,_0x2fe2da),this['_refreshStartEndIndex'](_0x209a2d),this['_setDistance'](_0x209a2d,'isRemoved');}_0x209a2d=_0x209a2d['filter'](_0x5a316b=>!(_0x5a316b['isAdded']&&_0x5a316b['isRemoved']));const _0xaa5418=new Map(_0x3a48b6['model'][_0x191412]['deletions']['markers']),_0x10541c=new Set(_0x5aeedd['keys']());for(const _0x2ac58f of _0xaa5418['keys']())_0x10541c['delete'](_0x2ac58f);this['_markSuggestions'](_0x209a2d,_0x10541c),this['_fixObsoleteTags'](_0x209a2d),_0x209a2d=this['_removeMissingPairs'](_0x209a2d),_0x209a2d=this['_markMismatchedRemovedTags'](_0x209a2d),_0x209a2d=this['_removeUnsupportedChanges'](_0x209a2d);const {root:_0x251b2e,changes:_0x5af01c}=this['_makeModelFromTape'](_0x209a2d,_0x31be8e,_0x191412);_0x4f0187['model'][_0x191412]=_0x251b2e;const _0x280c6e=_0x12cd6c['get'](_0x191412);if(_0x280c6e){const _0x27e457=_0x31be8e['get'](_0x280c6e['userId']),_0x2862d5=new G({'author':_0x27e457,'type':_0x280c6e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x191412});_0x5af01c['unshift'](_0x2862d5),_0x4f0187['attributes'][_0x191412]['revisionHistoryAttachChange']=_0x2862d5['id'];}_0x4f0187['changes']=_0x4f0187['changes']['concat'](_0x5af01c);}return _0x4f0187;}['_markMarkers'](_0x13c175,_0x23ecd6){for(let _0x17334f=0x0;_0x17334f<_0x13c175['length'];_0x17334f++)for(const [_0x2422c4,_0x4873fa]of _0x23ecd6)!_0x4873fa['isCollapsed']&&_0x4873fa['start']['isEqual'](_0x13c175[_0x17334f]['previousPosition'])&&_0x13c175[_0x17334f]['markersStart']['push'](_0x2422c4),_0x4873fa['end']['isEqual'](_0x13c175[_0x17334f]['nextPosition'])&&_0x13c175[_0x17334f]['markersEnd']['push'](_0x2422c4);}['_joinTapes'](_0x41f18e,_0x2dc322){let _0x4530d3=[],_0x42c8b8=0x0,_0x132190=0x0;for(;_0x42c8b8<_0x41f18e['length']||_0x132190<_0x2dc322['length'];){const _0xad67f4=_0x41f18e[_0x42c8b8]||{},_0x1f5c0d=_0x2dc322[_0x132190]||{};if(_0xad67f4['id']==_0x1f5c0d['id'])_0x42c8b8++,_0x132190++,_0x4530d3['push'](_0xad67f4);else{if(_0x1f5c0d['isRemoved']&&_0xad67f4['isAdded']){const {commonTape:_0x382404,iEnd:_0x17a852,jEnd:_0x2b32e9}=this['_threeWayMerge'](_0x41f18e,_0x42c8b8,_0x2dc322,_0x132190);_0x4530d3=_0x4530d3['concat'](_0x382404),_0x42c8b8=_0x17a852,_0x132190=_0x2b32e9;}else _0x1f5c0d['isRemoved']?(_0x132190++,_0x4530d3['push'](_0x1f5c0d)):(_0x42c8b8++,_0x4530d3['push'](_0xad67f4));}}return _0x4530d3;}['_markSuggestions'](_0x42a370,_0x55406e){const _0xa3ac26=[];for(let _0x3bae1b=0x0;_0x3bae1b<_0x42a370['length'];_0x3bae1b++){for(let _0x5cef52=0x0;_0x5cef52<_0x42a370[_0x3bae1b]['markersStart']['length'];_0x5cef52++){const _0x368698=_0x42a370[_0x3bae1b]['markersStart'][_0x5cef52];if(!_0x55406e['has'](_0x368698))continue;const {group:_0x590569,type:_0x15773d,authorId:_0x113781}=_0x3c1183(_0x368698);'revision-suggestion'!=_0x590569||'insertion'!=_0x15773d&&'deletion'!=_0x15773d||(_0xa3ac26['unshift']({'type':_0x15773d,'name':_0x368698,'userId':_0x113781}),_0x42a370[_0x3bae1b]['markersStart']['splice'](_0x5cef52,0x1),_0x5cef52--);}_0x5d058e(_0x42a370[_0x3bae1b]);for(let _0x196ba9=0x0;_0x196ba9<_0x42a370[_0x3bae1b]['markersEnd']['length'];_0x196ba9++){const _0x1558e8=_0x42a370[_0x3bae1b]['markersEnd'][_0x196ba9];if(!_0x55406e['has'](_0x1558e8))continue;const {group:_0x117e4a,type:_0x182c87}=_0x3c1183(_0x1558e8);if('revision-suggestion'!=_0x117e4a||'insertion'!=_0x182c87&&'deletion'!=_0x182c87)continue;_0x42a370[_0x3bae1b]['markersEnd']['splice'](_0x196ba9,0x1),_0x196ba9--;const _0x36311e=_0xa3ac26['findIndex'](_0x4f62a7=>_0x4f62a7['name']==_0x1558e8);_0x36311e>-0x1&&_0xa3ac26['splice'](_0x36311e,0x1);}}function _0x3c1183(_0x4d2334){const _0x1181c6=_0x4d2334['split'](':');return{'group':_0x1181c6[0x0],'type':_0x1181c6[0x1],'subType':_0x1181c6['length']>=0x5?_0x1181c6[0x2]:null,'id':_0x1181c6['length']<0x5?_0x1181c6[0x2]:_0x1181c6[0x3],'authorId':_0x1181c6['length']<0x5?_0x1181c6[0x3]:_0x1181c6[0x4],'markerCount':0x6==_0x1181c6['length']?_0x1181c6[0x5]:null};}function _0x5d058e(_0x2dac7a){for(let _0x1cc8cf=0x0;_0x1cc8cf<_0xa3ac26['length'];_0x1cc8cf++){if(_0x2dac7a['isAdded']&&'insertion'==_0xa3ac26[_0x1cc8cf]['type']&&_0x2dac7a['isAdded']['userId']==_0xa3ac26[_0x1cc8cf]['userId'])return _0x2dac7a['isAddSuggestion']=_0xa3ac26[_0x1cc8cf],void delete _0x2dac7a['isAdded'];if(!_0x2dac7a['isAdded']&&!_0x2dac7a['isRemoved']&&'deletion'==_0xa3ac26[_0x1cc8cf]['type'])return void(_0x2dac7a['isRemoveSuggestion']=_0xa3ac26[_0x1cc8cf]);}}}['_setDistance'](_0x2545ac,_0x176eb3){let _0x1e86fa=0x0,_0x3bc9d5=!0x1;const _0xaa978c=new Map();for(const _0x50601b of _0x2545ac)_0x50601b[_0x176eb3]?_0x3bc9d5&&(_0x1e86fa++,_0x3bc9d5=!0x1):(_0x1e86fa++,_0x3bc9d5=!0x0),_0xaa978c['set'](_0x50601b['id'],_0x1e86fa);for(let _0x4f5748=0x0;_0x4f5748<_0x2545ac['length'];_0x4f5748++){if('isRemoved'==_0x176eb3&&_0x2545ac[_0x4f5748]['isAdded']||'isAdded'==_0x176eb3&&_0x2545ac[_0x4f5748]['isRemoved'])continue;if('text'==_0x2545ac[_0x4f5748]['type']){_0x2545ac[_0x4f5748]['distance']=0x0;continue;}const _0x31ec26=_0xaa978c['get'](_0x2545ac[_0x4f5748]['pairId']),_0x192d72=_0xaa978c['get'](_0x2545ac[_0x4f5748]['id']);_0x2545ac[_0x4f5748]['distance']=_0x31ec26-_0x192d72;}}['_getRevisionsRange'](_0x4e730f,_0x275d67,_0x5cbf07=!0x1){const _0xf68c1c=[];let _0x727ce0=this['repository']['getIndex'](_0x4e730f),_0x514aea=this['repository']['getIndex'](_0x275d67);for(-0x1==_0x514aea&&(_0x514aea=this['repository']['_revisions']['length'],_0x5cbf07=!0x1);_0x727ce0<_0x514aea;)_0xf68c1c['push'](this['repository']['getRevision'](_0x727ce0)),_0x727ce0++;return _0x5cbf07&&_0xf68c1c['push'](this['repository']['getRevision'](_0x727ce0)),_0xf68c1c;}['_threeWayMerge'](_0x461695,_0xc482f9,_0x594508,_0x465f43){const _0x2192e0=this['editor']['model']['schema'];let _0x515df6=_0xc482f9;for(;_0x461695[_0x515df6]&&_0x461695[_0x515df6]['isAdded'];)_0x515df6++;let _0x50bff9=_0x465f43;for(;_0x594508[_0x50bff9]&&_0x594508[_0x50bff9]['isRemoved'];)_0x50bff9++;_0x17da0e(_0x461695,_0xc482f9,_0x515df6),_0x17da0e(_0x594508,_0x465f43,_0x50bff9);const _0x19ffed=_0x594508['slice'](_0x465f43,_0x50bff9)['concat'](_0x461695['slice'](_0xc482f9,_0x515df6));return _0x19ffed['sort']((_0xc17de1,_0x1c60f5)=>_0xc17de1['side']!=_0x1c60f5['side']?_0xc17de1['side']-_0x1c60f5['side']:_0xc17de1['level']!=_0x1c60f5['level']?_0xc17de1['level']-_0x1c60f5['level']:_0xc17de1['distance']!=_0x1c60f5['distance']?_0x1c60f5['distance']-_0xc17de1['distance']:!!_0xc17de1['isAdded']!=!!_0x1c60f5['isAdded']?-0x1==_0xc17de1['side']||0x0==_0xc17de1['side']?_0xc17de1['isAdded']?-0x1:0x1:_0xc17de1['isAdded']?0x1:-0x1:_0xc17de1['index']-_0x1c60f5['index']),{'commonTape':_0x19ffed,'iEnd':_0x515df6,'jEnd':_0x50bff9};function _0x17da0e(_0x53b656,_0x43fc2c,_0x2a4502){let _0x261083=-0x1,_0x469f54=Number['POSITIVE_INFINITY'],_0x161fdd=!0x0;for(let _0x2fbf29=_0x43fc2c;_0x2fbf29<_0x2a4502;_0x2fbf29++)if(_0x2192e0['isInline'](_0x53b656[_0x2fbf29]['item'])||(_0x161fdd=!0x1),_0x53b656[_0x2fbf29]['item']['startIndex']<_0x43fc2c&&(_0x261083=_0x2fbf29),_0x53b656[_0x2fbf29]['item']['endIndex']>=_0x2a4502){_0x469f54=_0x2fbf29;break;}_0x161fdd&&(_0x261083=_0x2a4502-0x1);for(let _0x1f70f4=_0x43fc2c;_0x1f70f4<_0x2a4502;_0x1f70f4++)_0x53b656[_0x1f70f4]['side']=_0x1f70f4<=_0x261083?-0x1:_0x1f70f4<_0x469f54?0x0:0x1,_0x53b656[_0x1f70f4]['index']=_0x1f70f4;let _0x30ae16=0x0;for(let _0xfcf336=_0x43fc2c;_0xfcf336<=_0x261083;_0xfcf336++)0x0==_0x53b656[_0xfcf336]['distance']?_0x53b656[_0xfcf336]['level']=_0x30ae16:(_0x30ae16++,_0x53b656[_0xfcf336]['level']=_0x30ae16,_0x30ae16++);for(let _0x1eb9e8=_0x43fc2c;_0x1eb9e8<_0x2a4502;_0x1eb9e8++)0x0==_0x53b656[_0x1eb9e8]['side']&&(_0x53b656[_0x1eb9e8]['level']=_0x30ae16);_0x30ae16=0x0;for(let _0x3bf217=_0x2a4502-0x1;_0x3bf217>=_0x469f54;_0x3bf217--)0x0==_0x53b656[_0x3bf217]['distance']?_0x53b656[_0x3bf217]['level']=_0x30ae16:(_0x30ae16--,_0x53b656[_0x3bf217]['level']=_0x30ae16,_0x30ae16--);}}['_fixObsoleteTags'](_0x212d4f){const _0x3cb2a6=new Map(),_0x4a3736=this['editor']['model']['schema'];for(let _0x4c499f=0x1;_0x4c499f<_0x212d4f['length'];_0x4c499f++){let _0x1924e9,_0x353fb2,_0x36e08a;const _0x4acc27=_0x212d4f[_0x4c499f],_0x201171=_0x212d4f[_0x4c499f-0x1];if('text'==_0x4acc27['type'])continue;if(_0x4acc27['type']!=_0x201171['type'])continue;if(!_0x4a3736['isBlock'](_0x201171['item'])||_0x4a3736['isLimit'](_0x201171['item']))continue;if(!_0x4a3736['isBlock'](_0x4acc27['item'])||_0x4a3736['isLimit'](_0x4acc27['item']))continue;if((_0x212d4f[_0x4c499f]['isAdded']||_0x212d4f[_0x4c499f]['isAddSuggestion'])&&_0x212d4f[_0x4c499f-0x1]['isRemoved'])_0x1924e9=_0x212d4f[_0x4c499f],_0x353fb2=_0x212d4f[_0x4c499f-0x1],_0x36e08a=_0x4c499f-0x1;else{if(!_0x212d4f[_0x4c499f]['isRemoved']||!_0x212d4f[_0x4c499f-0x1]['isAdded']&&!_0x212d4f[_0x4c499f-0x1]['isAddSuggestion'])continue;_0x1924e9=_0x212d4f[_0x4c499f-0x1],_0x353fb2=_0x212d4f[_0x4c499f],_0x36e08a=_0x4c499f;}const _0x1465e8=_0x1924e9['level']==_0x353fb2['level'],_0x47e53c=Math['abs'](_0x1924e9['level'])<Math['abs'](_0x353fb2['level'])&&0x0==_0x353fb2['distance'];(_0x1465e8||_0x47e53c)&&(_0x3cb2a6['set'](_0x353fb2['id'],_0x1924e9['id']),_0x212d4f['splice'](_0x36e08a,0x1),_0x4c499f--,_0x1924e9['isAdded']=!0x1);}for(let _0x3c25b6=0x0;_0x3c25b6<_0x212d4f['length'];_0x3c25b6++)_0x3cb2a6['has'](_0x212d4f[_0x3c25b6]['pairId'])&&(_0x212d4f[_0x3c25b6]['pairId']=_0x3cb2a6['get'](_0x212d4f[_0x3c25b6]['pairId']));}['_removeMissingPairs'](_0x17f483){const _0xfff73d=new Set(_0x17f483['map'](_0x5648a1=>_0x5648a1['id']));for(let _0x845e19=0x0;_0x845e19<_0x17f483['length'];_0x845e19++)_0xfff73d['has'](_0x17f483[_0x845e19]['pairId'])||0x0==_0x17f483[_0x845e19]['distance']||(_0x17f483[_0x845e19]['isIncorrect']=!0x0);return _0x17f483['filter'](_0x3cc807=>!_0x3cc807['isIncorrect']);}['_markMismatchedRemovedTags'](_0x218627){const _0xcd4e94=new Set();for(let _0x45a536=0x0;_0x45a536<_0x218627['length'];_0x45a536++){if(_0xcd4e94['has'](_0x218627[_0x45a536]['id'])&&_0x218627[_0x45a536]['isRemoved']&&(_0x218627[_0x45a536]['isIncorrect']=!0x0),_0x218627[_0x45a536]['isIncorrect'])continue;if(0x0==_0x218627[_0x45a536]['distance'])continue;if('elementStart'!=_0x218627[_0x45a536]['type'])continue;if(null==_0x218627[_0x45a536]['pairId'])continue;let _0xfde5a5=_0x45a536+0x1,_0x2c9134=0x0;for(;_0x218627[_0xfde5a5]['id']!=_0x218627[_0x45a536]['pairId'];)'elementStart'==_0x218627[_0xfde5a5]['type']?_0x2c9134++:'elementEnd'==_0x218627[_0xfde5a5]['type']&&_0x2c9134--,_0xfde5a5++;if(0x0!=_0x2c9134){if(_0x218627[_0x45a536]['isRemoved'])_0x218627[_0x45a536]['isIncorrect']=!0x0;else{for(;_0xfde5a5!=_0x45a536;)_0x218627[_0xfde5a5]['isRemoved']&&0x0!=_0x218627[_0xfde5a5]['distance']&&(_0x218627[_0xfde5a5]['isIncorrect']=!0x0,_0xcd4e94['add'](_0x218627[_0xfde5a5]['pairId'])),_0xfde5a5--;}}}return _0x218627['filter'](_0xcddf7d=>!_0xcddf7d['isIncorrect']);}['_removeUnsupportedChanges'](_0x3a3798){const _0xb6aba2=this['editor']['model']['schema'];for(let _0x52da27=0x0;_0x52da27<_0x3a3798['length'];_0x52da27++){if(!(_0x3a3798[_0x52da27]['isAdded']||_0x3a3798[_0x52da27]['isAddSuggestion']||_0x3a3798[_0x52da27]['isRemoved']||_0x3a3798[_0x52da27]['isRemoveSuggestion']))continue;if(0x0==_0x3a3798[_0x52da27]['distance'])continue;const _0x11b8e8=_0x3a3798[_0x52da27]['item'];_0xb6aba2['isBlock'](_0x11b8e8)||_0xb6aba2['isLimit'](_0x11b8e8)||(_0x3a3798[_0x52da27]['isAdded']&&delete _0x3a3798[_0x52da27]['isAdded'],_0x3a3798[_0x52da27]['isAddSuggestion']&&delete _0x3a3798[_0x52da27]['isAddSuggestion'],_0x3a3798[_0x52da27]['isRemoveSuggestion']&&delete _0x3a3798[_0x52da27]['isRemoveSuggestion'],_0x3a3798[_0x52da27]['isRemoved']&&(_0x3a3798[_0x52da27]['isIncorrect']=!0x0));}return _0x3a3798['filter'](_0x4634e4=>!_0x4634e4['isIncorrect']);}['_makeModelFromTape'](_0x48310c,_0xcdcd74,_0x43dd20){const _0x437711=new _0x283d24(),_0x419dd4=[],_0x58b538=new Map(),_0x24e5eb=this['editor']['model'],_0x1a019b=_0x24e5eb['schema'],_0x57b5ea=[_0x437711],_0xf279c6={},_0x38aa18={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x147c56=null;const _0x1e297b=[0x0];for(let _0x4089ac=0x0;_0x4089ac<_0x48310c['length'];_0x4089ac++)if('elementStart'===_0x48310c[_0x4089ac]['type']){_0x48310c[_0x4089ac]['previousPosition']=_0x24e5eb['createPositionFromPath'](_0x437711,_0x1e297b);const _0x1fc4d0=new _0xdf7a4(_0x48310c[_0x4089ac]['item']['name'],_0x48310c[_0x4089ac]['item']['getAttributes']());_0x57b5ea[0x0]['_appendChild'](_0x1fc4d0),_0x1e297b['push'](0x0),_0x57b5ea['unshift'](_0x1fc4d0),_0x48310c[_0x4089ac]['nextPosition']=_0x24e5eb['createPositionFromPath'](_0x437711,_0x1e297b);}else'elementEnd'===_0x48310c[_0x4089ac]['type']?(_0x57b5ea['shift'](),_0x48310c[_0x4089ac]['previousPosition']=_0x24e5eb['createPositionFromPath'](_0x437711,_0x1e297b),_0x1e297b['pop'](),_0x1e297b[_0x1e297b['length']-0x1]++,_0x48310c[_0x4089ac]['nextPosition']=_0x24e5eb['createPositionFromPath'](_0x437711,_0x1e297b)):(_0x48310c[_0x4089ac]['previousPosition']=_0x24e5eb['createPositionFromPath'](_0x437711,_0x1e297b),_0x147c56?_0x147c56['_data']+=_0x48310c[_0x4089ac]['item']['data']:_0x147c56=new _0x46b5c0(_0x48310c[_0x4089ac]['item']['data'],_0x48310c[_0x4089ac]['item']['getAttributes']()),_0x48310c[_0x4089ac+0x1]&&'text'===_0x48310c[_0x4089ac+0x1]['type']&&_0x4abc52(_0x147c56,_0x48310c[_0x4089ac+0x1]['item'])||(_0x57b5ea[0x0]['_appendChild'](_0x147c56),_0x147c56=null),_0x1e297b[_0x1e297b['length']-0x1]+=_0x48310c[_0x4089ac]['item']['offsetSize'],_0x48310c[_0x4089ac]['nextPosition']=_0x24e5eb['createPositionFromPath'](_0x437711,_0x1e297b));for(let _0x39dfb4=0x0;_0x39dfb4<_0x48310c['length'];_0x39dfb4++){const _0x3a8e73=_0x48310c[_0x39dfb4]['previousPosition'],_0x557c03=_0x48310c[_0x39dfb4]['nextPosition'];for(const _0x1b1329 of _0x48310c[_0x39dfb4]['markersStart'])_0x58b538['set'](_0x1b1329,{'start':_0x3a8e73,'end':null});_0x202ec1('isRemoveSuggestion',_0x39dfb4,_0x3a8e73,_0x557c03),_0x202ec1('isAddSuggestion',_0x39dfb4,_0x3a8e73,_0x557c03),_0x202ec1('isRemoved',_0x39dfb4,_0x3a8e73,_0x557c03),_0x202ec1('isAdded',_0x39dfb4,_0x3a8e73,_0x557c03);for(const _0x5f1f5f of _0x48310c[_0x39dfb4]['markersEnd']){const _0x37f1a5=_0x58b538['get'](_0x5f1f5f);_0x37f1a5?_0x37f1a5['end']=_0x557c03:_0x58b538['set'](_0x5f1f5f,{'start':_0x557c03,'end':_0x557c03});}}for(const [_0x27e594,_0x36ad5a]of _0x58b538){const _0x2c11dd=this['editor']['model']['createRange'](_0x36ad5a['start'],_0x36ad5a['end']);_0x437711['markers']['set'](_0x27e594,_0x2c11dd);}return _0x419dd4['sort']((_0x324f90,_0x20156d)=>{const _0x3ec8b2=_0x437711['markers']['get']('revision:'+_0x324f90['id']),_0x228e82=_0x437711['markers']['get']('revision:'+_0x20156d['id']);return _0x3ec8b2['start']['isBefore'](_0x228e82['start'])?-0x1:_0x3ec8b2['start']['isAfter'](_0x228e82['start'])?0x1:_0x3ec8b2['end']['isBefore'](_0x228e82['end'])?-0x1:_0x3ec8b2['end']['isAfter'](_0x228e82['end'])?0x1:'add'===_0x324f90['type']?-0x1:0x1;}),{'root':_0x437711,'changes':_0x419dd4};function _0x202ec1(_0x5d32b,_0x155c31,_0x1eac83,_0x5779c1){const _0x1db5b9=!!_0x48310c[_0x155c31][_0x5d32b],_0x1bfc66=_0x1db5b9?_0x48310c[_0x155c31][_0x5d32b]['userId']:null,_0x50064f=_0x155c31===_0x48310c['length']-0x1,_0x1850c2=_0x38aa18[_0x5d32b][0x0],_0x1b1468=_0x1a019b['isObject'](_0x48310c[_0x155c31]['item']);!_0xf279c6[_0x5d32b]&&_0x1db5b9?_0xf279c6[_0x5d32b]={'start':_0x1eac83,'tapeItem':_0x48310c[_0x155c31],'userId':_0x1bfc66,'type':_0x5d32b}:_0xf279c6[_0x5d32b]&&!_0x1db5b9?(_0xf279c6[_0x5d32b]['end']=_0x1eac83,_0x414960(_0xf279c6[_0x5d32b]),_0xf279c6[_0x5d32b]=null):_0xf279c6[_0x5d32b]&&_0x1db5b9&&_0xf279c6[_0x5d32b]['userId']!==_0x1bfc66&&(_0xf279c6[_0x5d32b]['end']=_0x1eac83,_0x1850c2&&_0x1850c2['userId']===_0xf279c6[_0x5d32b]['userId']||_0x414960(_0xf279c6[_0x5d32b]),_0xf279c6[_0x5d32b]={'start':_0x1eac83,'tapeItem':_0x48310c[_0x155c31],'userId':_0x1bfc66,'type':_0x5d32b}),_0xf279c6[_0x5d32b]&&_0x1b1468&&('elementStart'!==_0x48310c[_0x155c31]['type']||_0x1850c2&&_0x1850c2['userId']===_0x1bfc66||_0x38aa18[_0x5d32b]['unshift']({'userId':_0x1bfc66,'object':_0x48310c[_0x155c31]['item'],'change':_0xf279c6[_0x5d32b]}),'elementEnd'===_0x48310c[_0x155c31]['type']&&_0x1850c2&&_0x1850c2['object']===_0x48310c[_0x155c31]['item']&&(_0x38aa18[_0x5d32b]['shift'](),_0xf279c6[_0x5d32b]=_0x1850c2['change'])),_0xf279c6[_0x5d32b]&&_0x50064f&&(_0xf279c6[_0x5d32b]['end']=_0x5779c1,_0x414960(_0xf279c6[_0x5d32b]),_0xf279c6[_0x5d32b]=null);}function _0x414960({start:_0x25bc1e,end:_0x5d608d,tapeItem:_0x50fbe4,userId:_0x1a2e08,type:_0x5ab5f7}){const _0x171cda=_0x50fbe4['item'],_0x43491f=_0x24e5eb['schema']['isBlock'](_0x171cda)&&!_0x24e5eb['schema']['isLimit'](_0x171cda),_0x272fa7=_0x25bc1e['nodeAfter']==_0x5d608d['parent']&&_0x5d608d['isAtStart'];if(_0x43491f&&_0x272fa7)return;const _0x2513fd=_0x24e5eb['createRange'](_0x25bc1e,_0x5d608d),_0x19a621=_0xcdcd74['get'](_0x1a2e08),_0x3f2b54=new G({'author':_0x19a621,'type':'isAdded'==_0x5ab5f7||'isAddSuggestion'==_0x5ab5f7?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5ab5f7||'isRemoveSuggestion'==_0x5ab5f7},'createdAt':new Date(),'rootName':_0x43dd20});_0x419dd4['push'](_0x3f2b54),_0x437711['markers']['set']('revision:'+_0x3f2b54['id'],_0x2513fd);}function _0x4abc52(_0x1aba91,_0x4c863b){const _0x144e71=_0x1aba91['getAttributes'](),_0x55fc41=_0x4c863b['getAttributes']();for(const _0x41a3c0 of _0x144e71){if(_0x41a3c0[0x1]!==_0x4c863b['getAttribute'](_0x41a3c0[0x0]))return!0x1;_0x55fc41['next']();}return _0x55fc41['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3cf5d8=>{const _0x15e7ca=_0x3cf5d8['markerName']['split'](':')[0x1],_0x44ef74=this['_getChangeFromId'](_0x15e7ca);if(!_0x44ef74)return null;const _0x2e2cab='add'==_0x44ef74['type']?'insertion':'deletion',_0x47c608=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2e2cab];return _0x44ef74['data']['isSuggestion']&&_0x47c608['push']('ck-suggestion-marker-'+_0x2e2cab+'-new'),this['activeChange']==_0x44ef74&&_0x47c608['push']('ck-suggestion-marker--active'),{'classes':_0x47c608,'attributes':{'data-change-id':_0x15e7ca}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x30bcce=>{_0x30bcce['on']('element:pre',(_0x3ad913,_0x37db68,_0x8cd2ce)=>{const _0x2ae847=_0x37db68['viewItem']['getChild'](0x0);if(!_0x2ae847||!_0x2ae847['is']('element','code'))return;if(!_0x8cd2ce['consumable']['consume'](_0x2ae847,{'attributes':['vid_start','vid_end']}))return;const _0x20fb18=_0x37db68['modelRange']['start']['nodeAfter'];_0x8cd2ce['writer']['setAttribute']('vid_start',_0x2ae847['getAttribute']('vid_start'),_0x20fb18),_0x8cd2ce['writer']['setAttribute']('vid_end',_0x2ae847['getAttribute']('vid_end'),_0x20fb18);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xdca8a=>{_0xdca8a['on']('element',(_0x55c2bf,_0x5b5dee,_0x5538fe)=>{if(!_0x5538fe['consumable']['consume'](_0x5b5dee['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5b5dee['modelRange']['isCollapsed'])return;const _0x3b4d90=_0x5b5dee['modelRange']['start']['nodeAfter'];_0x3b4d90['hasAttribute']('vid_start')||_0x3b4d90['hasAttribute']('vid')||(_0x5538fe['writer']['setAttribute']('vid_start',_0x5b5dee['viewItem']['getAttribute']('vid_start'),_0x3b4d90),_0x5538fe['writer']['setAttribute']('vid_end',_0x5b5dee['viewItem']['getAttribute']('vid_end'),_0x3b4d90));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5034ba=>_0x5034ba['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x276320,[,_0x4a2cfd])=>{['vid_start','vid_end','vid']['includes'](_0x4a2cfd)&&(_0x276320['return']=!0x0,_0x276320['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3592cf=>{_0x3592cf['on']('attribute:vid',(_0x7c05dc,_0x2584e9,_0xa77512)=>{if('\x20'!=_0x2584e9['item']['data']||_0x2584e9['item']['parent']['maxOffset']>0x1)return;if(!_0xa77512['consumable']['consume'](_0x2584e9['item'],_0x7c05dc['name']))return;const _0x50a3c0=_0xa77512['writer'],_0x2d9938=_0xa77512['mapper']['toViewRange'](_0x2584e9['range']);_0x50a3c0['wrap'](_0x2d9938,_0x50a3c0['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4e1b46){const _0x21b8cd=_0x4e1b46['plugins']['get']('RevisionViewer');return(_0x5f074b,_0x13ebbb,_0x3b1b54)=>{const _0x10a3ed=_0x13ebbb['markerName']['split'](':')[0x1],_0x54f049=_0x21b8cd['_getChangeFromId'](_0x10a3ed);if(!_0x54f049)return null;const _0x31c323='add'==_0x54f049['type']?'split':'merge';if(!_0x3b1b54['consumable']['test'](_0x13ebbb['markerRange'],_0x5f074b['name']))return;const _0x13acdb=_0x13ebbb['markerRange']['getWalker'](),_0x435696=_0x13ebbb['markerRange']['start'],_0x575992=_0x4e1b46['model']['schema'];let _0x39a323=null,_0x53d068=null,_0x5f3402=!0x1,_0x21b07f=!0x1;for(const _0x36bdf9 of _0x13acdb){const _0x4b562f=_0x36bdf9['item'];_0x5f3402=_0x5f3402||_0x575992['isContent'](_0x4b562f);const _0x44991a=_0x3b1b54['mapper']['toViewElement'](_0x4b562f);if(_0x44991a&&_0x44991a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x36bdf9['type']&&(_0x575992['isBlock'](_0x4b562f)&&!_0x575992['isLimit'](_0x4b562f)&&(_0x4b562f['nextSibling']||_0x435696['isAtEnd']?_0x39a323&&_0x39a323['parent']==_0x4b562f||(_0x39a323=_0x4b562f,_0x2f69c7(_0x36bdf9['previousPosition']),_0x21b07f=!0x0):_0x53d068=_0x53d068||_0x36bdf9['previousPosition']));}function _0x2f69c7(_0x3218a3){const _0x538279=_0x3b1b54['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31c323}),_0x2d74f8=_0x3b1b54['mapper']['toViewPosition'](_0x3218a3);_0x54f049['data']['isSuggestion']&&_0x3b1b54['writer']['addClass']('ck-suggestion-marker-'+_0x31c323+'-new',_0x538279),_0x21b8cd['activeChange']==_0x54f049&&_0x3b1b54['writer']['addClass']('ck-suggestion-marker--active',_0x538279),_0x3b1b54['writer']['insert'](_0x2d74f8,_0x538279),_0x3b1b54['mapper']['bindElementToMarker'](_0x538279,_0x13ebbb['markerName']);}_0x5f3402||_0x21b07f||!_0x53d068||_0x2f69c7(_0x53d068);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1060b9,_0x24adcd,_0x25064e)=>{const _0x1ce7bb=_0x25064e['mapper']['markerNameToElements'](_0x24adcd['markerName']);if(_0x1ce7bb){for(const _0x47f20a of _0x1ce7bb)(_0x47f20a['hasClass']('ck-suggestion-marker-split')||_0x47f20a['hasClass']('ck-suggestion-marker-merge'))&&(_0x25064e['mapper']['unbindElementFromMarkerName'](_0x47f20a,_0x24adcd['markerName']),_0x25064e['writer']['remove'](_0x47f20a));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1c77f1,_0x4385e3,_0x2f695d)=>{const _0x3a2057=_0x4385e3['markerName']['split'](':')[0x1],_0x254247=this['_getChangeFromId'](_0x3a2057);if(!_0x254247)return null;const _0x47d389='add'==_0x254247['type']?'split':'merge';if(_0x2f695d['consumable']['test'](_0x4385e3['markerRange'],_0x1c77f1['name']))for(const _0x155874 of _0x4385e3['markerRange']['getItems']()){if(!_0x155874['is']('element','softBreak'))continue;const _0x3a6680=_0x2f695d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x47d389}),_0x3b520d=_0x2f695d['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x155874));_0x254247['data']['isSuggestion']&&_0x2f695d['writer']['addClass']('ck-suggestion-marker-'+_0x47d389+'-new',_0x3a6680),this['activeChange']==_0x254247&&_0x2f695d['writer']['addClass']('ck-suggestion-marker--active',_0x3a6680),_0x2f695d['writer']['insert'](_0x3b520d,_0x3a6680),_0x2f695d['mapper']['bindElementToMarker'](_0x3a6680,_0x4385e3['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x74201a=>{for(const _0x58713b of this['editor']['model']['document']['getRootNames']()){const _0x13486d=this['editor']['model']['document']['getRoot'](_0x58713b),_0x41513e=this['editor']['editing']['view']['document']['getRoot'](_0x58713b);if(_0x41513e){const _0x5cbdb4=_0x13486d['getAttribute']('revisionHistoryAttachChange');if(_0x74201a['removeAttribute']('data-change-id',_0x41513e),_0x74201a['removeClass']('ck-revision-history-root-add',_0x41513e),_0x74201a['removeClass']('ck-revision-history-root-remove',_0x41513e),_0x74201a['removeClass']('ck-revision-history-root--active',_0x41513e),_0x5cbdb4){const _0x5e88c4=this['_getChangeFromId'](_0x5cbdb4);if(!_0x5e88c4)return null;_0x74201a['setAttribute']('data-change-id',_0x5cbdb4,_0x41513e),_0x74201a['addClass']('ck-revision-history-root-'+_0x5e88c4['type'],_0x41513e),this['activeChange']==_0x5e88c4&&_0x74201a['addClass']('ck-revision-history-root--active',_0x41513e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x43a9aa=>'revision-comment:'+_0x43a9aa,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x32fb14=>'revision-suggestion:'+_0x32fb14,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x59bdbc=>({'name':'suggestion:'+_0x59bdbc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x50aed0=>{const _0x7ad8fe=_0x50aed0['markerName']['split'](':')[0x1];return'insertion'!=_0x7ad8fe&&'deletion'!=_0x7ad8fe?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x7ad8fe]};}}),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',(_0x294615,_0x3e7ddc,_0x18a8d0)=>{const _0x234dfa=_0x18a8d0['mapper']['markerNameToElements'](_0x3e7ddc['markerName']);if(_0x234dfa){for(const _0x269292 of _0x234dfa)_0x269292['is']('uiElement')&&(_0x18a8d0['mapper']['unbindElementFromMarkerName'](_0x269292,_0x3e7ddc['markerName']),_0x18a8d0['writer']['remove'](_0x269292));}},{'priority':'high'});}['_getChangeFromId'](_0x224665){return this['_changeIdToChange']['get'](_0x224665);}['_getViewForChange'](_0x1ffee7){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x1ffee7),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1e423a,_0x3df1eb,_0x2565df,_0xa163d7)=>{_0xa163d7&&this['_balloon']['remove'](_0xa163d7),_0x2565df&&(this['_balloon']['add']({'view':_0x2565df,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1cd8fc=this['editor']['editing'],_0x59b54a=this['_getChangeFromId'](_0x2565df['changeId']);let _0x50ba7a;if(_0x59b54a['data']['isOnRoot']){const _0x26321c=_0x1cd8fc['view']['getDomRoot'](_0x59b54a['rootName']);_0x50ba7a=Array['from'](_0x26321c['getClientRects']());}else{const _0x42293d=this['editor']['model']['markers']['get']('revision:'+_0x2565df['changeId']);_0x50ba7a=Array['from'](_0x1cd8fc['mapper']['markerNameToElements'](_0x42293d['name']))['map'](_0x3549a9=>_0x1cd8fc['view']['domConverter']['mapViewToDom'](_0x3549a9))['map'](_0x14f3f5=>Array['from'](_0x14f3f5['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x50ba7a[0x0];return _0x50ba7a['find'](_0x21b30f=>_0x21b30f['top']-0x3<=this['_activeViewTarget']['y']&&_0x21b30f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x21b30f['left']-0x3<=this['_activeViewTarget']['x']&&_0x21b30f['right']+0x3>=this['_activeViewTarget']['x'])||_0x50ba7a[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1d8da4,_0x227628,_0x16f2ec,_0x876e16)=>{this['activeView']=_0x16f2ec?this['_getViewForChange'](_0x16f2ec):null,this['editor']['model']['change'](()=>{const _0x13d706=this['editor']['editing'];_0x876e16&&(_0x876e16['data']['isOnRoot']?_0x13d706['view']['change'](_0x564102=>{_0x564102['removeClass']('ck-revision-history-root--active',_0x13d706['view']['document']['getRoot'](_0x876e16['rootName']));}):_0x13d706['reconvertMarker']('revision:'+_0x876e16['id'])),_0x16f2ec&&(_0x16f2ec['data']['isOnRoot']?_0x13d706['view']['change'](_0x3f49a3=>{_0x3f49a3['addClass']('ck-revision-history-root--active',_0x13d706['view']['document']['getRoot'](_0x16f2ec['rootName']));}):_0x13d706['reconvertMarker']('revision:'+_0x16f2ec['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x32809f,_0x436672)=>{if(this['activeChange'])return;const _0x1b3f39=this['_findChangeIdFromDomTarget'](_0x436672['target']),_0x5ef07d=this['_changeIdToChange']['get'](_0x1b3f39);_0x5ef07d?(this['_activeViewTarget']={'x':_0x436672['domEvent']['x'],'y':_0x436672['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5ef07d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2e62c5,_0x5ed7e6)=>{const _0x1a3c6c=this['_findChangeIdFromDomTarget'](_0x5ed7e6['target']),_0x5d71ae=this['_changeIdToChange']['get'](_0x1a3c6c);_0x5d71ae?(this['_activeViewTarget']={'x':_0x5ed7e6['domEvent']['x'],'y':_0x5ed7e6['domEvent']['y']},_0x5d71ae===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5d71ae):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x215cbd){do{const _0x37a08c=_0x215cbd['getAttribute']('data-change-id');if(_0x37a08c)return _0x37a08c;_0x215cbd=_0x215cbd['parent'];}while(_0x215cbd);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1cc810=>{for(const _0x2a6f6a of this['editor']['model']['markers'])_0x1cc810['removeMarker'](_0x2a6f6a);});}}function Q(_0x3a46dd,_0x80fe50){return(_0x5c2af9,_0x3b6f92,_0x6ae438)=>{if(!_0x6ae438['consumable']['test'](_0x3b6f92['markerRange'],_0x5c2af9['name']))return;const _0x15f15a=_0x3b6f92['markerRange']['getWalker'](),_0x442518=_0x3b6f92['markerRange']['start'],_0x16399b=_0x3a46dd['model']['schema'];let _0x21cdcb=null,_0x4a3ec4=null,_0x2d16de=!0x1,_0x21e31c=!0x1;for(const _0x56b8ae of _0x15f15a){const _0x561f2d=_0x56b8ae['item'];_0x2d16de=_0x2d16de||_0x16399b['isContent'](_0x561f2d);const _0x309d73=_0x6ae438['mapper']['toViewElement'](_0x561f2d);if(_0x309d73&&_0x309d73['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x56b8ae['type']&&(_0x16399b['isBlock'](_0x561f2d)&&!_0x16399b['isLimit'](_0x561f2d)&&(_0x561f2d['nextSibling']||_0x442518['isAtEnd']?_0x21cdcb&&_0x21cdcb['parent']==_0x561f2d||(_0x21cdcb=_0x561f2d,_0x5a0fff(_0x56b8ae['previousPosition']),_0x21e31c=!0x0):_0x4a3ec4=_0x4a3ec4||_0x56b8ae['previousPosition']));}function _0x5a0fff(_0x4b8e8d){const _0x471538=_0x6ae438['mapper']['toViewPosition'](_0x4b8e8d),_0x4c1bdc=_0x6ae438['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x80fe50});_0x6ae438['writer']['insert'](_0x471538,_0x4c1bdc),_0x6ae438['mapper']['bindElementToMarker'](_0x4c1bdc,_0x3b6f92['markerName']);}_0x2d16de||_0x21e31c||!_0x4a3ec4||_0x5a0fff(_0x4a3ec4);};}class nt extends _0x26d787{constructor(_0x11a8f5){super(_0x11a8f5);const _0x1a493a=_0x11a8f5['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x1a493a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1a493a,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x17c378=this['editor'],_0x37fc94=_0x17c378['plugins']['get'](l),_0x9ff181=_0x37fc94['isReady']?_0x37fc94['diff']['newRevisionId']:null;_0x17c378['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x9ff181);}['refresh'](){const {isReady:_0x3a4cf8,isEnabled:_0x5e53f3,repository:_0x1b4d61,diff:_0x125003}=this['editor']['plugins']['get'](l),_0x1eb57d=_0x125003&&_0x1b4d61['getLaterVisibleRevision'](_0x125003['newRevisionId']);this['isEnabled']=_0x3a4cf8&&_0x5e53f3&&Boolean(_0x1eb57d);}}class rt extends _0x26d787{['_step'];constructor(_0xa57927,{direction:_0x5f3977}){super(_0xa57927);const _0x1922f1=_0xa57927['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x5f3977?0x1:-0x1,this['listenTo'](_0x1922f1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1922f1,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1922f1,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5f0208=this['editor'],_0x41c90f=_0x5f0208['plugins']['get'](l),{isNavigationMode:_0x4e0b31,currentChangeNumber:_0xbc4069}=_0x41c90f;let _0x3394b4;if(_0x41c90f['activeChange']=_0x4e0b31?_0x41c90f['diff']['changes']['get'](_0xbc4069+this['_step']):_0x41c90f['diff']['changes']['first'],_0x41c90f['activeChange']['data']['isOnRoot'])_0x3394b4=_0x5f0208['editing']['view']['getDomRoot'](_0x41c90f['activeChange']['rootName']);else{const _0x287f77=_0x5f0208['model']['markers']['get']('revision:'+_0x41c90f['activeChange']['id']);_0x3394b4=_0x534665(_0x5f0208['editing'],_0x287f77);}_0x48212b({'target':_0x3394b4,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x173b45,currentChangeNumber:_0x970d05,numberOfChanges:_0xd985af,isReady:_0x1b9b30,isEnabled:_0x387a3c}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x387a3c&&_0x1b9b30&&_0xd985af)&&(!_0x173b45||(0x1===this['_step']?_0x970d05<_0xd985af-0x1:_0x970d05>0x0));}}class Ri extends _0x5890cf{constructor(_0x4b8dc6){super(_0x4b8dc6);const _0x176365=this['bindTemplate'],_0x40bbd7=new _0x5a3d97(_0x4b8dc6),_0x54886d=new _0x5a3d97(_0x4b8dc6);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',(_0x1b3c24,_0x4ee3b7)=>_0x1b3c24&&_0x4ee3b7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2378e2,_0x4045c7,_0x58e3d6,_0x170fd3)=>{if(!_0x2378e2)return R(_0x4b8dc6,'Loading...');if(!_0x58e3d6)return R(_0x4b8dc6,'No\x20changes');const _0x251155=R(_0x4b8dc6,'NUMBER_OF_CHANGES',_0x58e3d6);return _0x170fd3?R(_0x4b8dc6,'X_OF_Y_CHANGES',[_0x4045c7+0x1,_0x58e3d6]):_0x251155;}),_0x40bbd7['set']({'label':R(_0x4b8dc6,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2554b1}),_0x54886d['set']({'label':R(_0x4b8dc6,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x21dc72}),_0x40bbd7['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x54886d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x40bbd7['on']('execute',()=>this['fire']('execute','backward')),_0x54886d['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',_0x176365['if']('_isStatusLabelVisible','ck-hidden',_0x584835=>!_0x584835)]},'children':[{'text':_0x176365['to']('isNavigationMode',_0x65b8e5=>_0x65b8e5?R(_0x4b8dc6,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x4b8dc6,'Total')+':\x20')}]},{'text':_0x176365['to']('_statusText')}]},new _0x1022a1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x40bbd7,_0x54886d]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x2f9caa{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3ff460=this['editor']['editing']['view'];_0x3ff460['change'](_0x394c8a=>{for(const _0x48bd51 of _0x3ff460['document']['roots'])_0x394c8a['addClass'](ge,_0x48bd51);});}['hide'](){const _0x3b4cfe=this['editor']['editing']['view'];_0x3b4cfe['change'](_0x2381d7=>{for(const _0x2ea365 of _0x3b4cfe['document']['roots'])_0x2381d7['removeClass'](ge,_0x2ea365);});}}class u extends _0x2f9caa{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x121abd=this['editor'],_0xfd2b37=_0x121abd['plugins']['get'](l),_0x5bab45=_0x121abd['plugins']['get'](ji);_0x121abd['ui']['componentFactory']['add']('exitToEditing',_0x42d693=>{const _0x3cf941=new _0x5a3d97(_0x42d693);return _0x3cf941['set']({'label':R(_0x42d693,'Back\x20to\x20editing'),'icon':_0x339843,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3cf941,'execute',()=>{_0x121abd['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3cf941;}),_0x121abd['ui']['componentFactory']['add']('restoreRevision',_0x299376=>{const _0x381e84=new _0x5a3d97(_0x299376);return _0x381e84['set']({'label':R(_0x299376,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x381e84['bind']('isEnabled')['to'](_0x121abd['commands']['get']('restoreRevision')),this['listenTo'](_0x381e84,'execute',()=>_0x121abd['execute']('restoreRevision')),_0x381e84;}),_0x121abd['ui']['componentFactory']['add']('changesNavigation',_0x336e15=>{const _0x1d99a1=new Ri(_0x336e15),_0x33521c=_0x121abd['commands']['get']('showPreviousChange'),_0x3cf378=_0x121abd['commands']['get']('showNextChange');return _0x1d99a1['bind']('isBackwardNavigationEnabled')['to'](_0x33521c,'isEnabled'),_0x1d99a1['bind']('isForwardNavigationEnabled')['to'](_0x3cf378,'isEnabled'),_0x1d99a1['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xfd2b37),this['listenTo'](_0x1d99a1,'execute',(_0x399280,_0x3fb23e)=>{_0x121abd['execute']('forward'===_0x3fb23e?'showNextChange':'showPreviousChange');}),_0x1d99a1;}),_0x5bab45['show'](),_0xfd2b37['on']('change:isReady',(_0xd2813e,_0x39d8b1,_0x3df781)=>{_0x3df781?_0x5bab45['hide']():_0x5bab45['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x392074,_0x5dc529){super(_0x392074,_0x5dc529);const _0x533f05=this['bindTemplate'];this['set']({'label':R(_0x392074,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x392074,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x533f05['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x47a433=this['fieldView']['element'];this['_tooltipString']=_0x47a433['scrollWidth']>_0x47a433['clientWidth']&&_0x47a433['value']||'';}}class ni extends _0x5890cf{constructor(_0x28c566,_0x369928,_0x281758){super(_0x28c566);const _0x253de0=new _0x224c84();_0x253de0['set']({'content':_0x1329a4,'viewBox':'0\x200\x2011\x2010'});const _0x3a66e9=['ck','ck-revision-history-sidebar__revision-author'];_0x281758&&_0x3a66e9['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2eaa05=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x28c566,_0x281758?'Revision\x20creator':'Revision\x20author')},'children':[_0x253de0,_0x369928['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3a66e9},'children':_0x2eaa05});}}function ci(_0x3a5240,_0x2ef2f1){const _0x140b1e=_0x3a5240['bindTemplate'],_0x490c70=_0x3a5240['locale'],_0xd8f4a5=_0x757e0c(_0x490c70);_0xd8f4a5['panelPosition']='sw';const _0x47ad54=function(_0x2db401,_0x2f2f90){const _0x24a946=function(_0x1bfd06,_0x18a081){const _0x40ed25=_0x1bfd06['locale'],_0x165113={'Compare\x20against\x20selected':R(_0x40ed25,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x40ed25,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x40ed25,'Restore\x20this\x20revision')};return _0x18a081['map'](_0x3d2cb1=>{const _0x2b4657=_0x165113[_0x3d2cb1['name']];return _0x2b4657&&_0x2b4657!==_0x3d2cb1['name']&&(_0x3d2cb1['name']=_0x2b4657),_0x3d2cb1;});}(_0x2db401,_0x2f2f90),_0x375f87=new _0x4ce31f();for(const _0x2f0080 of _0x24a946){const _0x434485={'type':'button','model':new to({'label':_0x2f0080['name'],'class':_0x2f0080['class'],'withText':!0x0,'role':'menuitem','_action':_0x2f0080['action']})};_0x434485['model']['bind']('isEnabled')['to'](_0x2db401,'isActionsDropdownOpen',_0x12c481=>'function'!=typeof _0x2f0080['isEnabled']||(!_0x12c481||_0x2f0080['isEnabled'](_0x2db401))),_0x375f87['add'](_0x434485);}return _0x375f87;}(_0x3a5240,_0x2ef2f1);return _0x3a5240['bind']('isActionsDropdownOpen')['to'](_0xd8f4a5,'isOpen'),_0xd8f4a5['buttonView']['set']({'label':R(_0x490c70,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2b4e13}),_0xd8f4a5['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x140b1e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x140b1e['to'](_0x41cc2e=>_0x41cc2e['stopPropagation']())}}),_0xd8f4a5['on']('execute',_0x930443=>{_0x3a5240['isReady']&&'function'==typeof _0x930443['source']['_action']&&_0x930443['source']['_action'](_0x3a5240);}),_0x4cdc1d(_0xd8f4a5,_0x47ad54,{'role':'menu'}),_0xd8f4a5['listenTo'](_0x3a5240,'change:isActionsDropdownOpen',(_0x2881f7,_0x2a5e3e,_0x53a730)=>{if(_0x53a730)for(const _0x162708 of _0xd8f4a5['listView']['items']){const _0xa281f1=_0x162708['children']['first'],_0x3395a9=_0x2ef2f1['find'](_0x46ec1c=>_0x46ec1c['action']===_0xa281f1['_action'])['isVisible'];_0x162708['isVisible']=void 0x0===_0x3395a9||_0x3395a9(_0x3a5240);}}),_0xd8f4a5;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x5b0c86(_0x5890cf){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xbe3b9c,_0x5a9a84,_0x3c885a,_0xfe4057){super(_0xbe3b9c);const _0x47612c=this['bindTemplate'],_0x24f320=function(_0x3e867a,_0x1118d2){const _0xf92647=Array['from'](_0x1118d2['authors'])['filter'](_0x1379a8=>_0x1379a8!=_0x1118d2['creator']);return _0x1118d2['creator']&&_0xf92647['unshift'](_0x1118d2['creator']),_0xf92647['map'](_0xc04db0=>new ni(_0x3e867a,_0xc04db0,_0xc04db0==_0x1118d2['creator']));}(_0xbe3b9c,_0x5a9a84);this['id']=_0x5a9a84['id'],this['_revision']=_0x5a9a84,this['_requireRevisionName']=_0xfe4057,this['bind']('name','createdAt')['to'](_0x5a9a84),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x77f3f8=>{return _0x30daf4=_0xbe3b9c['uiLanguage'],(_0x156844=_0x77f3f8)['toLocaleDateString'](_0x30daf4,{'month':'long','day':'numeric'})+',\x20'+_0x156844['toLocaleTimeString'](_0x30daf4,{'hour':'numeric','minute':'numeric'});var _0x30daf4,_0x156844;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0xbe3b9c,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x485bd2=>_0x485bd2||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x30158d,_0x3f0d67)=>_0x30158d&&_0x3f0d67),this['revisionActionsView']=_0x3c885a&&_0x3c885a['length']?ci(this,_0x3c885a):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x47612c['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x47612c['if']('isEnabled','ck-disabled',_0xba7cee=>!_0xba7cee),_0x47612c['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x47612c['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x47612c['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':_0x47612c['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':_0x24f320}]},this['revisionActionsView']],'on':{'click':_0x47612c['to'](_0x4ac452=>{_0x4ac452['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xb09edf=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xb09edf,'change',()=>{this['_requireRevisionName']&&!_0xb09edf['value']||this['fire']('setName',{'id':this['id'],'name':_0xb09edf['value']}),_0xb09edf['value']||(_0xb09edf['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function li(_0x48ac82,_0x1dfa4f){const _0x450d0f=_0x86c939['fromJSDate'](_0x48ac82)['setLocale'](_0x1dfa4f),_0x423572=_0x86c939['local'](),_0x372cd7=_0x423572['minus']({'days':0x1})['startOf']('day');let _0x1616fe,_0x3f5b9c;return _0x450d0f['hasSame'](_0x423572,'day')?(_0x1616fe=_0x450d0f['startOf']('day')['toJSDate'](),_0x3f5b9c=_0x450d0f['toRelativeCalendar']()):_0x450d0f['hasSame'](_0x372cd7,'day')?(_0x1616fe=_0x372cd7['toJSDate'](),_0x3f5b9c=_0x450d0f['toRelativeCalendar']()):_0x450d0f['hasSame'](_0x423572,'week')?(_0x1616fe=_0x450d0f['startOf']('week')['toJSDate'](),_0x3f5b9c=_0x450d0f['weekdayLong']||''):_0x450d0f['hasSame'](_0x423572,'year')?(_0x1616fe=_0x450d0f['startOf']('month')['toJSDate'](),_0x3f5b9c=_0x450d0f['monthLong']||''):(_0x1616fe=_0x450d0f['startOf']('year')['toJSDate'](),_0x3f5b9c=String(_0x450d0f['year'])),{'startDate':_0x1616fe,'localizedPeriodName':_0x3f5b9c};}class bi extends _0x5890cf{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2344ed,_0x2efef8,_0x56ec1a,_0x54a5ad){super(_0x2344ed);const _0x2cb364=li(_0x2efef8,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2efef8,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x56ec1a,this['_requireRevisionName']=_0x54a5ad,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':_0x2cb364}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3f74a6){const _0x6d7a7c=new _i(this['locale'],_0x3f74a6,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x6d7a7c);}['removeRevision'](_0x176bee){const _0x303c32=this['revisionViews']['find'](_0x11564f=>_0x11564f['id']===_0x176bee['id']);this['revisionViews']['remove'](_0x303c32);}}class fi extends _0x5890cf{constructor(_0x46d5bb){super(_0x46d5bb);const _0x29ffe0=new _0x224c84();_0x29ffe0['content']=_0x24259c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x29ffe0,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x46d5bb,'Revision\x20history')]}]});}}class di extends _0x5890cf{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1e1e31,_0x38873e,_0x270e46,_0x532101){super(_0x1e1e31);const _0x40a6e4=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x38873e,this['_revisionActions']=_0x270e46,this['_requireRevisionName']=_0x532101,this['on']('select',(_0x4801c7,_0x2558df)=>{this['fire']('revisionSelected',_0x2558df);}),this['on']('setName',(_0x1230b1,_0xdbadbe)=>{this['fire']('revisionSetName',_0xdbadbe);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x1e1e31),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x40a6e4['if']('isEnabled','ck-disabled',_0x1b1241=>!_0x1b1241)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x136b13 of this['_revisions'])this['_addRevision'](_0x136b13);this['_revisions']['on']('add',(_0x477b3b,_0x569d77)=>{this['_addRevision'](_0x569d77);}),this['_revisions']['on']('remove',(_0x4a2768,_0x31bfa1)=>{this['_removeRevision'](_0x31bfa1);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x36ceb1=>_0x36ceb1['revisionViews']['map'](_0x59738c=>_0x59738c))['flat']();}['selectRevision'](_0x5201b0){for(const _0x485a1b of this['revisionViews'])_0x5201b0&&_0x5201b0['id']===_0x485a1b['id']?_0x485a1b['select']():_0x485a1b['deselect']();}['highlightRevisions'](_0xe88ee0){for(const _0x5cf68c of this['revisionViews'])_0xe88ee0['some'](({id:_0x32e419})=>_0x32e419===_0x5cf68c['id'])?_0x5cf68c['highlight']():_0x5cf68c['unhighlight']();}['_addRevision'](_0x48056d){const _0x5b085f=li(_0x48056d['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x383fca=this['timePeriodViews']['get'](0x0);_0x383fca&&_0x383fca['startDate']['getTime']()===_0x5b085f['getTime']()||(_0x383fca=new bi(this['locale'],_0x5b085f,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x383fca)),_0x383fca['addRevision'](_0x48056d);}['_removeRevision'](_0x2f8a54){const _0x925341=li(_0x2f8a54['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x925341)['removeRevision'](_0x2f8a54);}['_getTimePeriodViewByStartDate'](_0x3f3c73){return this['timePeriodViews']['find'](_0x3e1a10=>_0x3e1a10['startDate']['getTime']()===_0x3f3c73['getTime']());}}class f extends _0x2f9caa{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x4ef962(_0x5f47fe){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3cebbb,_0x331a99){super(_0x331a99),this['sourceElement']=_0x3cebbb,this['model']['document']['createRoot']();const _0x57ceca=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x57ceca);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4d209d,_0x38e2b8){const _0x35445d=new this(_0x4d209d,_0x38e2b8);return await _0x35445d['initPlugins'](),await _0x35445d['ui']['init'](_0x4d209d),await _0x35445d['data']['init'](_0x35445d['config']['get']('initialData')||''),_0x35445d['fire']('ready'),_0x35445d;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x5c2b79{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56acc4){function _0x282c9b(_0x5929d2){return _0x5929d2['map'](_0x4c021a=>String['fromCharCode'](_0x4c021a))['join']('');}super(_0x56acc4),this['result']='end',_0x56acc4[_0x282c9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x282c9b([0x76,0x69,0x65,0x77])][_0x282c9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x282c9b([0x61,0x75,0x74,0x6f]),_0x56acc4[_0x282c9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x282c9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x282c9b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x282c9b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x282c9b([0x6f,0x6b])});}}class ht extends _0x5c2b79{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x66c7e7){if(super(_0x66c7e7),!this['editor']['config']['get']('revisionHistory'))throw new _0x78950f('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4e6a5c=>this['_showRevisionViewer']({..._0x4e6a5c,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x17d3c5=>this['_closeRevisionViewer'](_0x17d3c5)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x279df1=>this['_restoreRevision'](_0x279df1)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x39eaa7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x39eaa7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x810638){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x810638);}['getRevision'](_0xee4a31){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xee4a31);}['getRevisions'](_0x36a325){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x36a325||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4adc70=this['editor'],_0x53608e=_0x2907ef(_0x4adc70,d),_0x18e735=_0x4adc70['plugins']['get']('RevisionTracker'),_0x1b309c=_0x4adc70['plugins']['get']('Users')['users'];return _0x53608e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x53608e['lazyRoots'],(_0x53608e['plugins']['push'](at,l,u,class extends _0x5c2b79{static get['requires'](){return[l,'Users'];}['init'](){const _0x3ede47=this['editor']['plugins']['get']('Users');for(const _0x4c8e74 of _0x1b309c)_0x4c8e74['isAnonymous']||_0x3ede47['getUser'](_0x4c8e74['id'])||_0x3ede47['addUser'](_0x4c8e74);const _0x56e4ec=_0x18e735['repository']['getRevisions']();let _0x3a5fa7=null;const _0x2bc081=this['editor']['plugins']['get']('RevisionViewer');_0x2bc081['adapter']=_0x18e735['adapter'],_0x2bc081['bind']('isEnabled')['to'](_0x18e735),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4adc70,'isReadOnly',_0x2d23fd=>!_0x2d23fd);for(const _0x3b5e86 of _0x56e4ec){const _0x31d766=null===_0x3b5e86['creator'];if(_0x31d766&&_0x3b5e86['toVersion']===_0x3b5e86['fromVersion'])continue;const _0x50e91e=_0x3b5e86['toJSON']();_0x2bc081['addRevisionData'](_0x50e91e,(_0x3a0ed3,_0x392da5,_0x3d3a95)=>{if(_0x31d766){if(_0x3a5fa7)_0x3a5fa7['_update'](_0x3a0ed3,_0x392da5);else{if(!_0x392da5){const _0x41092a=_0x3d3a95['toJSON']();_0x41092a['id']=_0x1d7c29(),_0x18e735['saveRevision'](_0x41092a,_0x3d3a95['toVersion'])['then'](_0x3ad4b3=>{_0x3a5fa7=_0x3ad4b3;});}}}else _0x3b5e86['_update'](_0x3a0ed3,_0x392da5);});}}},f),_0x53608e);}['_enhanceShowRevisionViewerCallback'](){const _0x1ff522=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x16beff=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1a81b4=this['editor']['plugins']['get']('Autosave');await _0x1a81b4['save']();}else await _0x16beff['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x406a52=this['editor']['plugins']['get']('Dialog');_0x406a52['isOpen']&&_0x406a52['hide']();}const _0x33b5f9=this['_getRevisionViewerEditorConfig']();return _0x1ff522(_0x33b5f9)['then'](_0x470163=>{return(this['_viewerEditor']=_0x470163,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'),_0x470163);})['catch'](_0x4bad56=>(console['error'](_0x4bad56),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x180593=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'](),_0x180593(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2204e8=this['editor']['plugins']['get']('Annotations');_0x2204e8['refreshVisibility'](),_0x2204e8['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1c8399){const _0x248331=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5e9180=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x14b9cd=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x14b9cd,_0x1c8399)['then'](_0x573dd9=>(_0x5e9180['style']['display']='block',_0x248331['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x573dd9));}['_closeRevisionViewer'](_0x477681){const _0x182873=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x182873['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x477681['destroy']();}async['_restoreRevision'](_0x186f17){const _0x50b972=this['editor'],_0x496139=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3da4c7=_0x50b972['plugins']['get']('RevisionTracker'),_0x1f9467=_0x50b972['plugins']['get']('RevisionHistoryUtils'),_0x399862=_0x496139['repository']['getRevision'](_0x186f17);let _0x120b3c,_0x46f7ee,_0x51d2d2;try{await _0x1f9467['loadRevisionData'](_0x399862,this['adapter']),_0x120b3c=_0x1f9467['getRevisionDocumentData'](_0x399862),_0x46f7ee=_0x1f9467['getRevisionRootsAttributes'](_0x399862);}catch(_0x268128){return void console['error'](_0x268128);}_0x50b972['model']['change'](_0x4a2a59=>{for(const _0x27a52c of Array['from'](_0x50b972['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4a2a59['removeMarker'](_0x27a52c);}),_0x496139['isReady']=!0x1,_0x50b972['model']['enqueueChange'](_0x26a0a5=>{_0x26a0a5['setSelection'](null),_0x26a0a5['removeSelectionAttribute'](_0x50b972['model']['document']['selection']['getAttributeKeys']());const _0x277a76=Object['keys'](_0x120b3c);for(const _0x3fb9f3 of _0x50b972['model']['document']['roots'])'$graveyard'!=_0x3fb9f3['rootName']&&_0x3fb9f3['isAttached']()&&!_0x277a76['includes'](_0x3fb9f3['rootName'])&&_0x26a0a5['detachRoot'](_0x3fb9f3);for(const _0x23dce5 of _0x277a76){let _0x121666=_0x50b972['model']['document']['getRoot'](_0x23dce5);_0x121666&&_0x121666['isAttached']()||(_0x121666=_0x26a0a5['addRoot'](_0x23dce5));const _0xd49176=_0x46f7ee[_0x23dce5],_0x1e5b1d=Object['keys'](_0xd49176),_0x5c192=_0x120b3c[_0x23dce5];for(const _0x890522 of _0x121666['getAttributeKeys']())_0x1e5b1d['includes'](_0x890522)||_0x26a0a5['removeAttribute'](_0x890522,_0x121666);for(const _0x52a15b of _0x1e5b1d)_0x26a0a5['setAttribute'](_0x52a15b,_0x46f7ee[_0x23dce5][_0x52a15b],_0x121666);_0x26a0a5['remove'](_0x26a0a5['createRangeIn'](_0x121666)),_0x26a0a5['insert'](_0x50b972['data']['parse'](_0x5c192,_0x121666),_0x121666,0x0);}});const _0x4e2a16=R(_0x50b972['locale'],'Restored');if(_0x399862['name'])_0x51d2d2=-0x1==_0x399862['name']['indexOf'](_0x4e2a16)?_0x4e2a16+':\x20'+_0x399862['name']:_0x399862['name'];else _0x51d2d2=_0x4e2a16+':\x20'+(_0x399862['createdAt']['toLocaleDateString'](_0x50b972['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x399862['createdAt']['toLocaleTimeString'](_0x50b972['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3da4c7['saveRevision']({'name':_0x51d2d2}),_0x496139['isReady']=!0x0,_0x50b972['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,at as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x116877){super(_0x116877),this['_revisionViewer']=_0x116877['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x161da6=this['_revisionsRepository']['_revisions'],_0x7cca82=this['_createRevisionActions'](),_0x1a38e8=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x161da6,_0x7cca82,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',(_0x36371d,_0x53235a)=>{_0x53235a['revisionViews']['on']('add',(_0x3df161,_0x4c75cc)=>{_0x4c75cc['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)),_0x1a38e8['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x305f07=this['_revisionsRepository']['getRevision'](0x0);if(_0x305f07){const _0x13afee=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x305f07['id']);this['_revisionViewer']['compare'](_0x305f07,_0x13afee);}}['_handleRevisionSelected'](_0x3c8af3,_0x322f15){const _0x4cd1be=this['_revisionsRepository']['getRevision'](_0x322f15['id']),_0x3b9082=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4cd1be['id']);this['_revisionViewer']['compare'](_0x4cd1be,_0x3b9082);}['_handleRevisionSetName'](_0x48df9e,_0x20141e){this['_revisionsRepository']['getRevision'](_0x20141e['id'])['setName'](_0x20141e['name']);}['_handleDiffChange'](_0x41d842,_0x3cbdf5,_0x2a8601){const _0xcdcfd0=this['_revisionsRepository']['getRevisionsInDiff'](_0x2a8601);_0xcdcfd0['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xcdcfd0),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xcdcfd0[0x0]));}['_createRevisionActions'](){const _0x27009a=this['editor'],_0x5b12bb=f['availableRevisionActions'],_0x160820=_0x27009a['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x160820['length'])return _0x160820['map'](_0x46add5=>{const _0x1ad64f='string'==typeof _0x46add5?Object['assign']({},_0x5b12bb[_0x46add5]):_0x46add5;return _0x1ad64f['action']=_0x1ad64f['action']['bind'](this,_0x27009a),_0x1ad64f['isVisible']&&(_0x1ad64f['isVisible']=_0x1ad64f['isVisible']['bind'](this,_0x27009a)),_0x1ad64f;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x251010},_0x2aa90e)=>{const _0x480311=_0x251010['get'](l),_0x184ec1=_0x480311['repository'];let _0x75103=_0x480311['diff']['newRevisionId'],_0x201dd7=_0x2aa90e['id'];_0x184ec1['getIndex'](_0x75103)>_0x184ec1['getIndex'](_0x201dd7)&&([_0x75103,_0x201dd7]=[_0x201dd7,_0x75103]),_0x480311['compare'](_0x75103,_0x201dd7);},'isVisible':({plugins:_0x3ed0ab},_0x58860e)=>{const _0x30339e=_0x3ed0ab['get'](l);return!(_0x30339e['repository']['getRevisionsInDiff'](_0x30339e['diff'])['length']>0x2)&&!_0x58860e['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1fa1ac,{id:_0x423366})=>{_0x1fa1ac['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x423366);},'isVisible':({plugins:_0x361895},_0x30e88f)=>!!_0x361895['get'](l)['repository']['getLaterVisibleRevision'](_0x30e88f['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x39cc53},{id:_0x5a9cb9,revisionNameView:_0x39e97e})=>{const _0x45683a=_0x39cc53['get'](l),_0x3f0561=_0x45683a['repository']['getEarlierVisibleRevision'](_0x5a9cb9);_0x45683a['compare'](_0x5a9cb9,_0x3f0561),_0x39e97e['focus'](),_0x39e97e['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4125b6,_0x46f8fd){super(_0x4125b6),this['_view']=_0x46f8fd,this['_toolbarConfig']=st(_0x4125b6['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0xde9bf2){const _0x26e8e9=this['editor'],_0x2700ae=this['view'],_0x3cb29c=_0x26e8e9['editing']['view'],_0x467da0=_0x2700ae['editable'],_0x4125d6=_0x3cb29c['document']['getRoot']();_0x467da0['name']=_0x4125d6['rootName'],_0x2700ae['render']();const _0xddf6fc=_0x467da0['element'];this['setEditableElement'](_0x467da0['name'],_0xddf6fc),_0x2700ae['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3cb29c['attachDomRoot'](_0xddf6fc),this['_elementReplacer']['replace'](_0xde9bf2,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x594de9=this['view'],_0x4d88e3=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4d88e3['detachDomRoot'](_0x594de9['editable']['name']),_0x594de9['destroy']();}['_initToolbar'](){const _0x122628=this['view'];_0x122628['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x122628['stickyPanel']['limiterElement']=_0x122628['element'],_0x122628['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5f0b13})=>_0x5f0b13),_0x122628['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x122628['toolbar']);}}class ii extends _0x5ea3c8{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5c17ac,_0x525682,_0x279ec4={}){super(_0x5c17ac),this['stickyPanel']=new _0x4f8df3(_0x5c17ac),this['toolbar']=new _0x5f1e36(_0x5c17ac,{'shouldGroupWhenFull':_0x279ec4['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x5c17ac,_0x525682);}['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
|
+
_0x153f0e(_0x26df53){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x31a1f3,_0x520454){super(_0x520454),this['sourceElement']=_0x31a1f3,this['model']['document']['createRoot']();const _0x4c2115=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x4c2115);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2a8360,_0x553d21){const _0x1a35ee=new this(_0x2a8360,_0x553d21);return await _0x1a35ee['initPlugins'](),await _0x1a35ee['ui']['init'](_0x2a8360),await _0x1a35ee['data']['init'](_0x1a35ee['config']['get']('initialData')||''),_0x1a35ee['fire']('ready'),_0x1a35ee;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x2f9caa{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x229f16){function _0x32e06(_0x43ab84){return _0x43ab84['map'](_0x4955ec=>String['fromCharCode'](_0x4955ec))['join']('');}super(_0x229f16),this['result']='end',_0x229f16[_0x32e06([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32e06([0x76,0x69,0x65,0x77])][_0x32e06([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32e06([0x61,0x75,0x74,0x6f]),_0x229f16[_0x32e06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x32e06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32e06([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x32e06([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x32e06([0x6f,0x6b])});}}class ct extends _0x2f9caa{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x59f051){if(super(_0x59f051),!this['editor']['config']['get']('revisionHistory'))throw new _0x5da8f4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5b6583=>this['_showRevisionViewer']({..._0x5b6583,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1959f6=>this['_closeRevisionViewer'](_0x1959f6)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x116a45=>this['_restoreRevision'](_0x116a45)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x35fecf){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x35fecf;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1d9e23){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1d9e23);}['getRevision'](_0x2434ff){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2434ff);}['getRevisions'](_0x9f9519){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x9f9519||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x29c235=this['editor'],_0x4bc7b0=_0x5184eb(_0x29c235,d),_0x102623=_0x29c235['plugins']['get']('RevisionTracker'),_0x36e7d2=_0x29c235['plugins']['get']('Users')['users'];return _0x4bc7b0['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4bc7b0['lazyRoots'],(_0x4bc7b0['plugins']['push'](ht,l,u,class extends _0x2f9caa{static get['requires'](){return[l,'Users'];}['init'](){const _0x23b0ab=this['editor']['plugins']['get']('Users');for(const _0x3688e4 of _0x36e7d2)_0x3688e4['isAnonymous']||_0x23b0ab['getUser'](_0x3688e4['id'])||_0x23b0ab['addUser'](_0x3688e4);const _0x2ff8f3=_0x102623['repository']['getRevisions']();let _0x1d590d=null;const _0x2c6be2=this['editor']['plugins']['get']('RevisionViewer');_0x2c6be2['adapter']=_0x102623['adapter'],_0x2c6be2['bind']('isEnabled')['to'](_0x102623),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x29c235,'isReadOnly',_0x2e6cc9=>!_0x2e6cc9);for(const _0x2bf2e2 of _0x2ff8f3){const _0x5d115f=null===_0x2bf2e2['creator'];if(_0x5d115f&&_0x2bf2e2['toVersion']===_0x2bf2e2['fromVersion'])continue;const _0x460757=_0x2bf2e2['toJSON']();_0x2c6be2['addRevisionData'](_0x460757,(_0x3d369e,_0x38559e,_0x5573b4)=>{if(_0x5d115f){if(_0x1d590d)_0x1d590d['_update'](_0x3d369e,_0x38559e);else{if(!_0x38559e){const _0x2e9265=_0x5573b4['toJSON']();_0x2e9265['id']=_0x53fb10(),_0x102623['saveRevision'](_0x2e9265,_0x5573b4['toVersion'])['then'](_0x16c432=>{_0x1d590d=_0x16c432;});}}}else _0x2bf2e2['_update'](_0x3d369e,_0x38559e);});}}},f),_0x4bc7b0);}['_enhanceShowRevisionViewerCallback'](){const _0x573b28=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4a56e8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2c3727=this['editor']['plugins']['get']('Autosave');await _0x2c3727['save']();}else await _0x4a56e8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1f270e=this['editor']['plugins']['get']('Dialog');_0x1f270e['isOpen']&&_0x1f270e['hide']();}const _0x82c91c=this['_getRevisionViewerEditorConfig']();return _0x573b28(_0x82c91c)['then'](_0x388cf4=>{return(this['_viewerEditor']=_0x388cf4,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'),_0x388cf4);})['catch'](_0x26649c=>(console['error'](_0x26649c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xd940de=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'](),_0xd940de(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4cd29c=this['editor']['plugins']['get']('Annotations');_0x4cd29c['refreshVisibility'](),_0x4cd29c['refreshPositioning']();}})));}['_showRevisionViewer'](_0x463aec){const _0x1b3fea=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5ebfe8=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x56feb7=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x56feb7,_0x463aec)['then'](_0x4eee99=>(_0x5ebfe8['style']['display']='block',_0x1b3fea['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x4eee99));}['_closeRevisionViewer'](_0x1b988e){const _0x2b99cc=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2b99cc['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1b988e['destroy']();}async['_restoreRevision'](_0xaf2f9a){const _0x50a170=this['editor'],_0x4b432e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x26df11=_0x50a170['plugins']['get']('RevisionTracker'),_0x5e1dc6=_0x50a170['plugins']['get']('RevisionHistoryUtils'),_0x3ee0fa=_0x4b432e['repository']['getRevision'](_0xaf2f9a);let _0x8bfdf8,_0x54a276,_0x1a70ca;try{await _0x5e1dc6['loadRevisionData'](_0x3ee0fa,this['adapter']),_0x8bfdf8=_0x5e1dc6['getRevisionDocumentData'](_0x3ee0fa),_0x54a276=_0x5e1dc6['getRevisionRootsAttributes'](_0x3ee0fa);}catch(_0x391cc5){return void console['error'](_0x391cc5);}_0x50a170['model']['change'](_0xaeed3f=>{for(const _0x54cc67 of Array['from'](_0x50a170['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xaeed3f['removeMarker'](_0x54cc67);}),_0x4b432e['isReady']=!0x1,_0x50a170['model']['enqueueChange'](_0xc09dca=>{_0xc09dca['setSelection'](null),_0xc09dca['removeSelectionAttribute'](_0x50a170['model']['document']['selection']['getAttributeKeys']());const _0x333733=Object['keys'](_0x8bfdf8);for(const _0x156ec5 of _0x50a170['model']['document']['roots'])'$graveyard'!=_0x156ec5['rootName']&&_0x156ec5['isAttached']()&&!_0x333733['includes'](_0x156ec5['rootName'])&&_0xc09dca['detachRoot'](_0x156ec5);for(const _0x4d043e of _0x333733){let _0x3483eb=_0x50a170['model']['document']['getRoot'](_0x4d043e);_0x3483eb&&_0x3483eb['isAttached']()||(_0x3483eb=_0xc09dca['addRoot'](_0x4d043e));const _0x1b12f0=_0x54a276[_0x4d043e],_0x4ee30a=Object['keys'](_0x1b12f0),_0x10227b=_0x8bfdf8[_0x4d043e];for(const _0xa2810e of _0x3483eb['getAttributeKeys']())_0x4ee30a['includes'](_0xa2810e)||_0xc09dca['removeAttribute'](_0xa2810e,_0x3483eb);for(const _0x1ae86c of _0x4ee30a)_0xc09dca['setAttribute'](_0x1ae86c,_0x54a276[_0x4d043e][_0x1ae86c],_0x3483eb);_0xc09dca['remove'](_0xc09dca['createRangeIn'](_0x3483eb)),_0xc09dca['insert'](_0x50a170['data']['parse'](_0x10227b,_0x3483eb),_0x3483eb,0x0);}});const _0x50dd5d=R(_0x50a170['locale'],'Restored');if(_0x3ee0fa['name'])_0x1a70ca=-0x1==_0x3ee0fa['name']['indexOf'](_0x50dd5d)?_0x50dd5d+':\x20'+_0x3ee0fa['name']:_0x3ee0fa['name'];else _0x1a70ca=_0x50dd5d+':\x20'+(_0x3ee0fa['createdAt']['toLocaleDateString'](_0x50a170['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3ee0fa['createdAt']['toLocaleTimeString'](_0x50a170['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x26df11['saveRevision']({'name':_0x1a70ca}),_0x4b432e['isReady']=!0x0,_0x50a170['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|