@ckeditor/ckeditor5-revision-history 46.0.0-alpha.2 → 46.0.0-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
|
-
_0x4962d1(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x290f61){super(),this['id']=_0x290f61['id']||_0xd8dd1b(),this['creator']=_0x290f61['creator']||null,this['authors']=_0x290f61['authors']||[],this['diffData']=_0x290f61['diffData']||null,this['toVersion']=_0x290f61['toVersion']||0x0,this['fromVersion']=_0x290f61['fromVersion']||0x0,this['set']('name',_0x290f61['name']||''),this['set']('createdAt',_0x290f61['createdAt']||new Date()),this['set']('attributes',_0x290f61['attributes']||{});}['setName'](_0x208e0f){this['_update']({'name':_0x208e0f});}['setAttribute'](_0x189357,_0x2f5694){const _0x4a997a=_0x42d2a8(this['attributes']);_0x5bec5c(_0x4a997a,_0x189357,_0x2f5694),this['_update']({'attributes':_0x4a997a});}['removeAttribute'](_0x38e2cf){const _0x4fe962=_0x42d2a8(this['attributes']);_0x2d0ab1(_0x4fe962,_0x38e2cf),this['_update']({'attributes':_0x4fe962});}['_update'](_0x40fb47,_0x92907e=!0x1){let _0x388f80=!0x1;const _0x4c9108={'id':this['id']},_0x4b43c8=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x28c255 of _0x4b43c8){const _0x7167f9=_0x40fb47[_0x28c255];void 0x0!==_0x7167f9&&_0x7167f9!==this[_0x28c255]&&(this[_0x28c255]=_0x7167f9,_0x4c9108[_0x28c255]=_0x7167f9,_0x388f80=!0x0);}_0x388f80&&(_0x4c9108['authors']&&(_0x4c9108['authorsIds']=_0x4c9108['authors']['map'](_0x1029eb=>_0x1029eb['id']),delete _0x4c9108['authors']),this['fire']('_update',_0x4c9108,_0x92907e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x12f4b3=>_0x12f4b3['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x58c668{['_revisions'];static get['requires'](){return[_0x55c9a7];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4794d2){super(_0x4794d2),this['_revisions']=new _0xb3ffaf();}['afterInit'](){!async function(_0x5b668b){const _0x2f7125=_0x40ff6a([0x73,0x6c,0x67,0x43,0x4e,0x30,0x6f,0x53,0x46,0x64,0x68,0x57,0x69,0x4a,0x42,0x70,0x56,0x6a,0x72,0x51,0x4b,0x47,0x65,0x6e,0x71,0x59,0x74,0x52,0x7a,0x66,0x49,0x44,0x50,0x36,0x63,0x4c,0x55,0x41,0x37,0x4d,0x6d,0x38,0x62,0x33,0x58,0x34,0x45,0x54,0x31,0x78,0x39,0x76,0x32,0x35,0x6b,0x61,0x48,0x4f,0x79,0x5a,0x75,0x77]),_0x27a6a2=0xeb829,_0x59c65f=0x102f2e9e,_0x3af5fd=0x1028421e^_0x59c65f,_0x2f395e=window[_0x40ff6a([0x44,0x61,0x74,0x65])][_0x40ff6a([0x6e,0x6f,0x77])](),_0x763a72=_0x5b668b[_0x40ff6a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b542e=new window[(_0x40ff6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c2dc3=>{_0x763a72[_0x40ff6a([0x6f,0x6e,0x63,0x65])](_0x40ff6a([0x72,0x65,0x61,0x64,0x79]),_0x5c2dc3);}),_0x725cec={[_0x40ff6a([0x6b,0x74,0x79])]:_0x40ff6a([0x45,0x43]),[_0x40ff6a([0x75,0x73,0x65])]:_0x40ff6a([0x73,0x69,0x67]),[_0x40ff6a([0x63,0x72,0x76])]:_0x40ff6a([0x50,0x2d,0x32,0x35,0x36]),[_0x40ff6a([0x78])]:_0x40ff6a([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]),[_0x40ff6a([0x79])]:_0x40ff6a([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]),[_0x40ff6a([0x61,0x6c,0x67])]:_0x40ff6a([0x45,0x53,0x32,0x35,0x36])},_0x5d0506=_0x763a72[_0x40ff6a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40ff6a([0x67,0x65,0x74])](_0x40ff6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5c0178(){let _0x2b25ed,_0x573a8e=null,_0xba5933=null;try{if(_0x5d0506==_0x40ff6a([0x47,0x50,0x4c]))return _0x40ff6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b25ed=_0x3e8a01(),!_0x2b25ed)return _0x40ff6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b25ed[_0x40ff6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xba5933=_0x15b2d0(_0x2b25ed[_0x40ff6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b25ed[_0x40ff6a([0x6a,0x74,0x69])])),await _0x5f3f61()?_0x4c5cab()?_0x632a59()?_0x40ff6a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x57b2dd()?(_0x2b25ed[_0x40ff6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40ff6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x573a8e=_0x8c5f0e(_0x40ff6a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b25ed[_0x40ff6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40ff6a([0x74,0x72,0x69,0x61,0x6c])&&(_0x573a8e=_0x8c5f0e(_0x40ff6a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56cc22()):_0x40ff6a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40ff6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40ff6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x40ff6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x632a59(){const _0x1fd76c=[_0x40ff6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40ff6a([0x74,0x72,0x69,0x61,0x6c])][_0x40ff6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b25ed[_0x40ff6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f395e/0x3e8:0xe10*_0x3af5fd;return _0x2b25ed[_0x40ff6a([0x65,0x78,0x70])]<_0x1fd76c;}function _0x4c5cab(){const _0x40ab5b=_0x2b25ed[_0x40ff6a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x40ab5b)return!0x1;if(_0x40ab5b[_0x40ff6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ff6a([0x2a])))return!0x0;if(_0x40ab5b[_0x40ff6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ff6a([0x52,0x48])))return!0x0;if(_0x40ab5b[_0x40ff6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ff6a([0x52,0x52,0x48]))){if(_0x4c704c())return!0x0;if(_0x297284()||_0x5285fb())return!0x0;}return!0x1;}function _0x57b2dd(){const _0x1593c4=_0x2b25ed[_0x40ff6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1593c4||0x0==_0x1593c4[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x24cd92}=new URL(window[_0x40ff6a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1593c4[_0x40ff6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24cd92))return!0x0;const _0x104ab7=_0x24cd92[_0x40ff6a([0x73,0x70,0x6c,0x69,0x74])](_0x40ff6a([0x2e]));return _0x1593c4[_0x40ff6a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fd945=>_0x4fd945[_0x40ff6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ff6a([0x2a])))[_0x40ff6a([0x6d,0x61,0x70])](_0x4027be=>_0x4027be[_0x40ff6a([0x73,0x70,0x6c,0x69,0x74])](_0x40ff6a([0x2e])))[_0x40ff6a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ab815=>_0x1ab815[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x104ab7[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40ff6a([0x6d,0x61,0x70])](_0xb915ab=>Array(_0x104ab7[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xb915ab[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40ff6a([0x66,0x69,0x6c,0x6c])](_0xb915ab[0x0]===_0x40ff6a([0x2a])?_0x40ff6a([0x2a]):'')[_0x40ff6a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xb915ab))[_0x40ff6a([0x73,0x6f,0x6d,0x65])](_0x5cbd75=>_0x104ab7[_0x40ff6a([0x65,0x76,0x65,0x72,0x79])]((_0x564f9b,_0x2b2eb0)=>_0x5cbd75[_0x2b2eb0]===_0x564f9b||_0x5cbd75[_0x2b2eb0]===_0x40ff6a([0x2a])));}function _0x56cc22(){return _0x573a8e&&_0xba5933?new window[(_0x40ff6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c48c7,_0x168d80)=>{_0x573a8e[_0x40ff6a([0x74,0x68,0x65,0x6e])](_0x2c48c7,_0x168d80),_0xba5933[_0x40ff6a([0x74,0x68,0x65,0x6e])](_0x2578ce=>{_0x2578ce!=_0x40ff6a([0x56,0x61,0x6c,0x69,0x64])&&_0x2c48c7(_0x2578ce);},_0x168d80);}):_0x573a8e||_0xba5933||_0x40ff6a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15b2d0(_0x457e5a,_0x4a6c04){return new window[(_0x40ff6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d9d80=>{if(_0xd8a4ec())return _0x1d9d80(_0x40ff6a([0x56,0x61,0x6c,0x69,0x64]));_0x10c1d0(),_0x763a72[_0x40ff6a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40ff6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c6f01=!0x1;const _0x11dada=_0xd8dd1b();function _0x7ee15a(_0x383333){return!!_0x383333&&(typeof _0x383333===_0x40ff6a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x383333===_0x40ff6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x383333[_0x40ff6a([0x74,0x68,0x65,0x6e])]===_0x40ff6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x383333[_0x40ff6a([0x63,0x61,0x74,0x63,0x68])]===_0x40ff6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe9319f(_0x28acd5){_0x49d526(_0x28acd5)[_0x40ff6a([0x74,0x68,0x65,0x6e])](_0xd2d0b3=>{if(!_0xd2d0b3||_0xd2d0b3[_0x40ff6a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40ff6a([0x6f,0x6b]))return _0x40ff6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1227e1(_0x19577d(_0x11dada+_0x4a6c04))!=_0xd2d0b3[_0x40ff6a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40ff6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40ff6a([0x56,0x61,0x6c,0x69,0x64]);})[_0x40ff6a([0x74,0x68,0x65,0x6e])](_0x388816=>(_0x51ba49(),_0x388816),()=>{const _0x5e9e70=_0x2b05e8();return null==_0x5e9e70?(_0x51ba49(),_0x40ff6a([0x56,0x61,0x6c,0x69,0x64])):_0x40ff6a(_0x2f395e-_0x5e9e70>(0x3423aa9e^_0x59c65f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40ff6a([0x74,0x68,0x65,0x6e])](_0x1d9d80)[_0x40ff6a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d9d80(_0x40ff6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x56e1ec=0x1019c01e^_0x59c65f;function _0x51ba49(){const _0x3854a7=_0x40ff6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x1227e1(_0x19577d(_0x457e5a)),_0x27421f=_0x2e9cd7(_0x1227e1(window[_0x40ff6a([0x4d,0x61,0x74,0x68])][_0x40ff6a([0x63,0x65,0x69,0x6c])](_0x2f395e/_0x56e1ec)));window[_0x40ff6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40ff6a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3854a7,_0x27421f);}function _0x2b05e8(){const _0x35119d=_0x40ff6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x1227e1(_0x19577d(_0x457e5a)),_0x5ad11f=window[_0x40ff6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40ff6a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35119d);return _0x5ad11f?window[_0x40ff6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e9cd7(_0x5ad11f),0x10)*_0x56e1ec:null;}function _0x49d526(_0x4c4bdb){return new window[(_0x40ff6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3edfb7,_0x3dfa33)=>{_0x4c4bdb[_0x40ff6a([0x74,0x68,0x65,0x6e])](_0x3edfb7,_0x3dfa33),window[_0x40ff6a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3dfa33,0x102efa5e^_0x59c65f);});}}_0x763a72[_0x40ff6a([0x6f,0x6e])](_0x40ff6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x9d964b,_0x29abe8)=>{if(_0x29abe8[0x0]!=_0x457e5a)return _0x1d9d80(_0x40ff6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x29abe8[0x1]={..._0x29abe8[0x1],[_0x40ff6a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x11dada};},{[_0x40ff6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40ff6a([0x68,0x69,0x67,0x68])}),_0x763a72[_0x40ff6a([0x6f,0x6e])](_0x40ff6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x425dc0=>{_0x7ee15a(_0x425dc0[_0x40ff6a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c6f01=!0x0,_0xe9319f(_0x425dc0[_0x40ff6a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40ff6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40ff6a([0x6c,0x6f,0x77])}),_0x5b542e[_0x40ff6a([0x74,0x68,0x65,0x6e])](()=>{_0x4c6f01||_0x1d9d80(_0x40ff6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd8a4ec(){return _0x763a72[_0x40ff6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40ff6a([0x76,0x69,0x65,0x77])][_0x40ff6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40ff6a([0x61,0x75,0x74,0x6f]);}function _0x10c1d0(){_0x763a72[_0x40ff6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40ff6a([0x76,0x69,0x65,0x77])][_0x40ff6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40ff6a([0x61,0x75,0x74,0x6f]);}}function _0x8c5f0e(_0x5a60c8){const _0x263bcb=[new window[(_0x40ff6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c5f06=>setTimeout(_0x5c5f06,0x10261052^_0x59c65f)),_0x5b542e[_0x40ff6a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40ff6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x108ecc=>{const _0x5c08f4=0x102f2e99^_0x59c65f,_0x4792dc=_0x5b668b[_0x40ff6a([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2a74ef(){_0x4792dc[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5c08f4&&_0x108ecc();}_0x2a74ef(),_0x4792dc[_0x40ff6a([0x6f,0x6e])](_0x40ff6a([0x61,0x64,0x64]),_0x2a74ef);})),new window[(_0x40ff6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f6f29=>{function _0xb8199e(){for(const _0x171343 in window)if(window[_0x40ff6a([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x40ff6a([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x171343))&&window[_0x171343]==_0x27a6a2)return _0x4f6f29();_0x763a72[_0x40ff6a([0x73,0x74,0x61,0x74,0x65])]!=_0x40ff6a([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x40ff6a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb8199e,0x102f3d16^_0x59c65f);}_0x5d7331(_0x40ff6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xb8199e();})];return window[_0x40ff6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40ff6a([0x72,0x61,0x63,0x65])](_0x263bcb)[_0x40ff6a([0x74,0x68,0x65,0x6e])](()=>_0x5a60c8);}async function _0x5105fa(){if(await _0x5b542e,_0x5d7331(_0x40ff6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x53dc23=_0x5b668b[_0x40ff6a([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x534216=_0x5b668b[_0x40ff6a([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])](_0x53dc23[_0x40ff6a([0x69,0x64])]),_0x269f9c=_0x3ec3b8(_0x40ff6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x269f9c[_0x40ff6a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x53dc23['id'],_0x534216?_0x534216['id']:null,!0x0),_0x269f9c[_0x40ff6a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x40ff6a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x269f9c[_0x40ff6a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x269f9c[_0x40ff6a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3a1d2a,void(_0x269f9c[_0x40ff6a([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3a1d2a);}if(_0x5d7331(_0x40ff6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1fc2c6=_0x3ec3b8(_0x40ff6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1fc2c6[_0x40ff6a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x40ff6a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1fc2c6[_0x40ff6a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1fc2c6[_0x40ff6a([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3a1d2a,_0x1fc2c6[_0x40ff6a([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3a1d2a;}_0x763a72[_0x40ff6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ff6a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a1d2a,_0x763a72[_0x40ff6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ff6a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a1d2a,_0x763a72[_0x40ff6a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40ff6a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4c704c(){return _0x5d7331(_0x40ff6a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3ec3b8(_0x40ff6a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x40ff6a([0x73,0x74,0x61,0x74,0x65])]==_0x40ff6a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x297284(){return _0x5d7331(_0x40ff6a([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 _0x5285fb(){return _0x5d7331(_0x40ff6a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x425869(_0x5e11c4){const _0x24185b=_0xa1c831();_0x763a72[_0x24185b]=_0x40ff6a([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])+_0x5e11c4,_0x5e11c4[_0x40ff6a([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x40ff6a([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xa1c831()]=_0x27a6a2),_0x5e11c4!=_0x40ff6a([0x56,0x61,0x6c,0x69,0x64])&&_0x5105fa();}function _0xa1c831(){const _0x9ee902=window[_0x40ff6a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40ff6a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40ff6a([0x6e,0x6f,0x77])]())[_0x40ff6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40ff6a([0x2e]),'');let _0x14ebd1=_0x40ff6a([0x73]);for(let _0x1029d9=0x0;_0x1029d9<_0x9ee902[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1029d9+=0x2){let _0x2484c1=window[_0x40ff6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9ee902[_0x40ff6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1029d9,_0x1029d9+0x2));_0x2484c1>=_0x2f7125[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2484c1-=_0x2f7125[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14ebd1+=_0x2f7125[_0x2484c1];}return _0x14ebd1;}function _0x3e8a01(){const _0x47ec75=_0x5d0506[_0x40ff6a([0x73,0x70,0x6c,0x69,0x74])](_0x40ff6a([0x2e]));if(0x3!=_0x47ec75[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3af46e(_0x47ec75[0x1]);function _0x3af46e(_0x120672){const _0x4105ba=_0x57265c(_0x120672);return _0x4105ba&&_0x5b79fa()?_0x4105ba:null;function _0x5b79fa(){const _0xfcf385=_0x4105ba[_0x40ff6a([0x6a,0x74,0x69])],_0x1c57c7=window[_0x40ff6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfcf385[_0x40ff6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xfcf385[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d934a={..._0x4105ba,[_0x40ff6a([0x6a,0x74,0x69])]:_0xfcf385[_0x40ff6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xfcf385[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d934a[_0x40ff6a([0x76,0x63])],_0x19577d(_0x1d934a)==_0x1c57c7;}}}async function _0x5f3f61(){let _0x277f69=!0x0;try{const _0x3a7f64=_0x5d0506[_0x40ff6a([0x73,0x70,0x6c,0x69,0x74])](_0x40ff6a([0x2e])),[_0x27133b,_0x1ccf92,_0x9bdeb5]=_0x3a7f64;return _0x49c14d(_0x27133b),await _0x4c0e15(_0x27133b,_0x1ccf92,_0x9bdeb5),_0x277f69;}catch{return!0x1;}function _0x49c14d(_0x582957){const _0x46fbb3=_0x57265c(_0x582957);_0x46fbb3&&_0x46fbb3[_0x40ff6a([0x61,0x6c,0x67])]==_0x40ff6a([0x45,0x53,0x32,0x35,0x36])||(_0x277f69=!0x1);}async function _0x4c0e15(_0x25e3de,_0x36ccd7,_0x190641){const _0x806dbc=window[_0x40ff6a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40ff6a([0x66,0x72,0x6f,0x6d])](_0x1de6e1(_0x190641),_0x1bacee=>_0x1bacee[_0x40ff6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12984a=new window[(_0x40ff6a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40ff6a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25e3de+_0x40ff6a([0x2e])+_0x36ccd7),_0x19b2e5=window[_0x40ff6a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40ff6a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x19b2e5)return;const _0x40ca05=await _0x19b2e5[_0x40ff6a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40ff6a([0x6a,0x77,0x6b]),_0x725cec,{[_0x40ff6a([0x6e,0x61,0x6d,0x65])]:_0x40ff6a([0x45,0x43,0x44,0x53,0x41]),[_0x40ff6a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40ff6a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40ff6a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x19b2e5[_0x40ff6a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40ff6a([0x6e,0x61,0x6d,0x65])]:_0x40ff6a([0x45,0x43,0x44,0x53,0x41]),[_0x40ff6a([0x68,0x61,0x73,0x68])]:{[_0x40ff6a([0x6e,0x61,0x6d,0x65])]:_0x40ff6a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40ca05,_0x806dbc,_0x12984a)||(_0x277f69=!0x1);}}function _0x57265c(_0x4d9772){return _0x4d9772[_0x40ff6a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40ff6a([0x65,0x79]))?JSON[_0x40ff6a([0x70,0x61,0x72,0x73,0x65])](_0x1de6e1(_0x4d9772)):null;}function _0x1de6e1(_0x246e22){return window[_0x40ff6a([0x61,0x74,0x6f,0x62])](_0x246e22[_0x40ff6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40ff6a([0x2b]))[_0x40ff6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40ff6a([0x2f])));}function _0x19577d(_0x3fcc67){let _0x50575c=0x1505;function _0x11cfc8(_0x37c7c1){for(let _0x3a67f4=0x0;_0x3a67f4<_0x37c7c1[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a67f4++){const _0x5d87d7=_0x37c7c1[_0x40ff6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a67f4);_0x50575c=(_0x50575c<<0x5)+_0x50575c+_0x5d87d7,_0x50575c&=_0x50575c;}}function _0x57322a(_0x2a8ea2){Array[_0x40ff6a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a8ea2)?_0x2a8ea2[_0x40ff6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57322a):_0x2a8ea2&&typeof _0x2a8ea2==_0x40ff6a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40ff6a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a8ea2)[_0x40ff6a([0x73,0x6f,0x72,0x74])]()[_0x40ff6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x158d38,_0x2000b9])=>{_0x11cfc8(_0x158d38),_0x57322a(_0x2000b9);}):_0x11cfc8(window[_0x40ff6a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a8ea2));}return _0x57322a(_0x3fcc67),_0x50575c>>>0x0;}function _0x1227e1(_0x2be0a5){return _0x2be0a5[_0x40ff6a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40ff6a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40ff6a([0x30]));}function _0x2e9cd7(_0x79b4f9){return _0x79b4f9[_0x40ff6a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40ff6a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40ff6a([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d7331(_0x2fdafc){return _0x763a72[_0x40ff6a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x40ff6a([0x68,0x61,0x73])](_0x2fdafc);}function _0x3ec3b8(_0x3870ad){return _0x763a72[_0x40ff6a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x40ff6a([0x67,0x65,0x74])](_0x3870ad);}function _0x3a1d2a(){}function _0x40ff6a(_0x4fe0c7){return _0x4fe0c7['map'](_0xb118e3=>String['fromCharCode'](_0xb118e3))['join']('');}_0x425869(await _0x5c0178());}(this);}['createRevision'](_0x4bdc97){const _0x36df5b=this['editor']['plugins']['get']('Users');return new I({'id':_0x4bdc97['id'],'name':_0x4bdc97['name'],'creator':_0x4bdc97['creatorId']?_0x36df5b['getUser'](_0x4bdc97['creatorId']):null,'diffData':_0x4bdc97['diffData']||_0x4bdc97['data'],'authors':_0x4bdc97['authorsIds']['map'](_0x1f1407=>_0x36df5b['getUser'](_0x1f1407)),'createdAt':new Date(_0x4bdc97['createdAt']),'attributes':_0x4bdc97['attributes'],'fromVersion':_0x4bdc97['fromVersion'],'toVersion':_0x4bdc97['toVersion']});}['addRevision'](_0x26dd9f,_0x2f64c3=0x0){this['_revisions']['add'](_0x26dd9f,_0x2f64c3);}['getRevision'](_0xbfc4b){return this['_revisions']['get'](_0xbfc4b);}['getRevisions'](_0x22b0d0={'toJSON':!0x1}){const _0x4f2bf9=Array['from'](this['_revisions']);return _0x4f2bf9['reverse'](),_0x22b0d0['toJSON']?_0x4f2bf9['map'](_0x372a54=>_0x372a54['toJSON']()):_0x4f2bf9;}['getIndex'](_0x35a526){return this['_revisions']['getIndex'](_0x35a526);}['getEarlierVisibleRevision'](_0x4d383f){const [,_0xaff405]=this['getRevisionsIterator'](_0x4d383f,{'direction':'earlier'});return _0xaff405;}['getLaterVisibleRevision'](_0x480e62){const [,_0x29e014]=this['getRevisionsIterator'](_0x480e62,{'direction':'later'});return _0x29e014;}['getRevisionsInDiff'](_0x55efe8){const _0x1c4143=[];for(const _0x50d2e7 of this['getRevisionsIterator'](_0x55efe8['newRevisionId']))if(_0x1c4143['push'](_0x50d2e7),_0x50d2e7['id']===_0x55efe8['oldRevisionId'])break;return _0x1c4143;}*['getRevisionsIterator'](_0x47433c,{direction:_0x1aa66e='earlier',filter:_0x25dbd8=()=>!0x0}={}){const _0x339ca8='earlier'===_0x1aa66e?0x1:-0x1;let _0xb7f7e2=this['_revisions']['get'](_0x47433c),_0x4f3a34=this['getIndex'](_0xb7f7e2);for(yield _0xb7f7e2;_0xb7f7e2;){if(_0x4f3a34+=_0x339ca8,_0xb7f7e2=this['getRevision'](_0x4f3a34),!_0xb7f7e2)return;_0x25dbd8(_0xb7f7e2)&&(yield _0xb7f7e2);}}}class $ extends _0x58c668{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x213265,'c'],[_0x5c1e01,'a'],[_0x12de80,'e'],[_0x4cd107,'r'],[_0xb2e6b8,'u']]);['_typeCharToViewClass']=new Map([['c',_0x213265],['a',_0x5c1e01],['e',_0x12de80],['r',_0x4cd107],['u',_0xb2e6b8]]);async['loadRevisionData'](_0x522852,_0x4472f9){if(_0x522852['diffData']||!_0x4472f9)return;const _0x2f151d=this['editor']['config']['get']('collaboration.channelId'),_0xf7504f=await _0x4472f9['getRevision']({'channelId':_0x2f151d,'revisionId':_0x522852['id']});_0x522852['diffData']=_0xf7504f['diffData'];}['getRevisionDocumentData'](_0x26ab3e){const _0x226d39={};for(const _0x33f51d in _0x26ab3e['diffData']){if(_0x26ab3e['diffData'][_0x33f51d]['attachChange']&&!_0x26ab3e['diffData'][_0x33f51d]['attachChange']['isAttached'])continue;const _0x1dc74c=this['_removeRevisionMarkers'](JSON['parse'](_0x26ab3e['diffData'][_0x33f51d]['insertions'])),_0x1c919b=this['editor']['editing']['view']['document'],_0x27fd20=new _0x5d7884(_0x1c919b,_0x1dc74c['map'](_0x32e74d=>this['_getViewFromDiffObj'](_0x32e74d,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x226d39[_0x33f51d]=this['editor']['data']['processor']['toData'](_0x27fd20),this['editor']['data']['processor']['useFillerType']('default');}return _0x226d39;}['getRevisionRootsAttributes'](_0x32ae0a){const _0x1af2d6={};for(const _0x472c6c in _0x32ae0a['diffData'])_0x32ae0a['diffData'][_0x472c6c]['attachChange']&&!_0x32ae0a['diffData'][_0x472c6c]['attachChange']['isAttached']||(_0x1af2d6[_0x472c6c]=_0x32ae0a['diffData'][_0x472c6c]['attributesAfter']||{});return _0x1af2d6;}['_getTypeCharForViewElement'](_0x31d89c){return this['_viewClassToTypeChar']['get'](_0x31d89c['constructor']);}['_getViewFromDiffObj'](_0xf3672f,_0x2ea848){const _0x55ba08=this['editor']['editing']['view']['document'];if('string'==typeof _0xf3672f)return new _0x328d97(_0x55ba08,_0xf3672f);{let _0x1d7ac6,_0x2b6c44;_0x2b6c44='u'==_0xf3672f['type']||'r'==_0xf3672f['type']?[]:_0xf3672f['children']['map'](_0x7058f0=>this['_getViewFromDiffObj'](_0x7058f0,_0x2ea848));const _0x2824e4=this['_typeCharToViewClass']['get'](_0xf3672f['type'])||_0x3568f2,_0x1f3e01=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1d7ac6=new _0x2824e4(_0x55ba08,_0xf3672f['name'],_0xf3672f['attributes'],_0x2b6c44),'u'==_0xf3672f['type']&&_0xf3672f['children'][0x0]){const _0x4d6021=_0xf3672f['children'][0x0];if(_0x1d7ac6['render']=function(_0x408151){const _0x1e5669=_0x408151['createElement']('div');return _0x1e5669['innerHTML']=_0x4d6021,_0x1e5669['childNodes'][0x0];},_0x2ea848){const _0x2530cc=new _0x5d7884(_0x55ba08);_0x2530cc['_appendChild'](_0x1d7ac6);const _0x9f854c=Array['from'](_0x1f3e01['viewChildrenToDom'](_0x2530cc,{'bind':!0x1})),_0x56d5c4=_0x1f3e01['domDocument']['createElement']('div');_0x56d5c4['append'](..._0x9f854c),_0x1d7ac6=Array['from'](_0x1f3e01['domChildrenToView'](_0x56d5c4))[0x0];}}else{if('r'==_0xf3672f['type']&&_0xf3672f['children'][0x0]){const _0x242705=_0xf3672f['children'][0x0];if(_0x1d7ac6['render']=function(_0x34012f){_0x34012f['innerHTML']=_0x242705;},_0x2ea848){const _0x3e8187=new _0x5d7884(_0x55ba08);_0x3e8187['_appendChild'](_0x1d7ac6);const _0x5191f0=Array['from'](_0x1f3e01['viewChildrenToDom'](_0x3e8187,{'bind':!0x1})),_0xb830cc=_0x1f3e01['domDocument']['createElement']('div');_0xb830cc['append'](..._0x5191f0);const _0x18855b=Array['from'](_0x1f3e01['domChildrenToView'](_0xb830cc));_0x18855b['length']>0x1?_0x1d7ac6['_appendChild'](_0x18855b):_0x1d7ac6=_0x18855b[0x0];}}}if(_0xf3672f['customProperties']){for(const [_0xb79ffd,_0x48bccc]of _0xf3672f['customProperties'])_0x1d7ac6['_setCustomProperty'](_0xb79ffd,_0x48bccc);}const _0x1930e5=void 0x0===_0xf3672f['fillerOffset']?null:_0xf3672f['fillerOffset'];return null!==_0x1930e5&&(_0x1d7ac6['getFillerOffset']=()=>_0x1930e5),_0x1d7ac6;}}['_makeModelFromViewString'](_0x4b6c62){const _0x5ed21d=JSON['parse'](_0x4b6c62),_0xf9d876=this['editor']['editing']['view']['document'],_0x3aad90=new _0x5d7884(_0xf9d876,_0x5ed21d['map'](_0x1b7477=>this['_getViewFromDiffObj'](_0x1b7477,!0x0)));return this['editor']['data']['toModel'](_0x3aad90);}['_removeRevisionMarkers'](_0x825877){return(_0x825877=_0x825877['filter'](_0x4ef8b0=>!_0x4ef8b0['name']||'revision-start'!==_0x4ef8b0['name']&&'revision-end'!==_0x4ef8b0['name']))['forEach'](_0xad5c33=>{'string'!=typeof _0xad5c33&&(_0xad5c33['children']=this['_removeRevisionMarkers'](_0xad5c33['children']),_0xad5c33['attributes']=_0xad5c33['attributes']['filter'](_0x1a09f5=>!_0x1a09f5[0x0]['startsWith']('data-revision-')));}),_0x825877;}}function R(_0x4a431c,_0x2857ff,_0x46890e){const t=_0x4a431c['t'];switch(_0x2857ff){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'},_0x46890e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x46890e);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 _0x58c668{['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[_0x55c9a7,S,$,_0x1038b0];}constructor(_0x1601dc){super(_0x1601dc),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 _0x546aa1=_0xd8dd1b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x546aa1},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 _0x505010=this['repository']['getRevision'](0x0),_0x7ea900=_0x505010&&null===_0x505010['creator']?_0x505010:null;if(this['_continueCurrentRevision']=!!_0x7ea900&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x472b32=this['_source']['getCurrentRevisionId'](),_0x45c8c8=this['repository']['getRevision'](_0x472b32);if(_0x45c8c8)this['_startingVersion']=_0x45c8c8['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3a34fd=this['_source']['history']['_operations']['find'](_0x444225=>!_0x444225['_isInit']),_0x526464=_0x3a34fd?_0x3a34fd['baseVersion']:this['_source']['history']['version'];_0x505010?(_0x505010['toVersion']<_0x526464&&_0x505010['_update']({'toVersion':_0x526464}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x7ea900['id'],this['_startingVersion']=_0x7ea900['fromVersion']):(this['_startingVersion']=_0x505010['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x526464,this['_continueCurrentRevision']=!0x1);}}else _0x7ea900&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x7ea900['toVersion'],this['editor']['model']['document']['history']['version']),_0x7ea900['fromVersion']===_0x7ea900['toVersion']?(0x0!==_0x7ea900['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x7ea900['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x7ea900['id'],this['_startingVersion']=_0x7ea900['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',_0x36dab2=>!_0x36dab2),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c741e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x14461e;for(const _0x247bc0 in _0x3c741e){const _0x3d94f0=_0x247bc0,_0x1e7400=_0x3c741e[_0x3d94f0];if('revisionHistoryLicenseKeyValid'==_0x1e7400||'revisionHistoryLicenseKeyInvalid'==_0x1e7400||'revisionHistoryLicenseKeyExpired'==_0x1e7400||'revisionHistoryLicenseKeyDomainLimit'==_0x1e7400||'revisionHistoryLicenseKeyNotAllowed'==_0x1e7400||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1e7400||'revisionHistoryLicenseKeyTrialLimit'==_0x1e7400||'revisionHistoryLicenseKeyUsageLimit'==_0x1e7400){delete _0x3c741e[_0x3d94f0],_0x14461e=_0x1e7400,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x14461e&&_0x3c741e['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x14461e&&_0x3c741e['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x14461e&&_0x3c741e['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x14461e&&_0x3c741e['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x14461e&&_0x3c741e['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x14461e&&_0x3c741e['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x14461e&&_0x3c741e['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x9c3d85=this['repository']['getRevision'](0x0),_0x39f66a=await this['getRevisionDocumentData'](_0x9c3d85),_0x45c71b=await this['getRevisionRootsAttributes'](_0x9c3d85);this['_replaceEditorDataWithRevisionData'](_0x39f66a,_0x45c71b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5c114f){this['_source']=_0x5c114f;}async['update'](){const _0x11abbf=await this['_source']['getLatestVersion']();if(_0x11abbf>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4f5e44=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x11abbf});_0x4f5e44['authors']=_0x4f5e44['authorsIds']['map'](_0x2dd2f6=>this['editor']['plugins']['get']('Users')['getUser'](_0x2dd2f6)),this['currentRevision']['_update'](_0x4f5e44);}}async['saveRevision'](_0x4e1343={},_0x53aa55=null){const _0x2ea249=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x53aa55>this['currentRevision']['toVersion']&&(_0x53aa55=null),null===_0x53aa55&&(_0x53aa55=await this['_source']['getLatestVersion']());const _0x2949e9=this['_getFromVersion'](_0x53aa55),_0x4bd026=this['buildRevisionData']({'from':_0x2949e9,'to':_0x53aa55});if(this['currentRevision']['toVersion']<_0x53aa55){const _0x1da17d=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x53aa55,'to':_0x53aa55});_0x1da17d['authors']=[],_0x1da17d['authorsIds']=[],_0x1da17d['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1da17d,!0x0),delete _0x1da17d['authors'],_0x2ea249['push'](_0x1da17d);}_0x4e1343['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4e1343['name']=_0x4e1343['name']||null,_0x4e1343['id']=_0x4e1343['id']||_0xd8dd1b(),_0x4e1343={..._0x4e1343,..._0x4bd026};const _0x2a2503=this['addRevisionData'](_0x4e1343);_0x2ea249['push'](_0x4e1343);const _0x485f8c=this['repository']['getIndex'](_0x2a2503);if(0x0!==_0x485f8c){const _0x1e305c=this['repository']['getRevision'](_0x485f8c-0x1);if(_0x1e305c['fromVersion']!==_0x53aa55){const _0x19c6b9=this['_revisionDataBuilder']['getData'](_0x53aa55,_0x1e305c['toVersion']),_0x49454d={'id':_0x1e305c['id'],'diffData':_0x19c6b9['diffData'],'authorsIds':_0x19c6b9['authorsIds'],'authors':_0x19c6b9['authorsIds']['map'](_0x18e904=>this['editor']['plugins']['get']('Users')['getUser'](_0x18e904)),'fromVersion':_0x53aa55};_0x1e305c===this['currentRevision']&&(_0x49454d['createdAt']=new Date(_0x4e1343['createdAt']['getTime']()+0xa)),_0x1e305c['_update'](_0x49454d,!0x0),delete _0x49454d['authors'],_0x2ea249['push'](_0x49454d);}}if(this['adapter']){for(const _0x2e59ea of _0x2ea249)this['_bufferUpdate'](_0x2e59ea['id'],_0x2e59ea,!0x0);this['sendBufferedUpdates']();}return _0x2a2503;}['addRevisionData'](_0x44247e){const _0x4ca123=this['repository']['createRevision'](_0x44247e);return this['adapter']&&_0x4ca123['on']('_update',(_0x574ba8,_0xab276b,_0x3e6f76)=>{_0x3e6f76||(this['_bufferUpdate'](_0xab276b['id'],_0xab276b,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4ca123,this['_findInsertionIndex'](_0x4ca123)),_0x4ca123;}async['getRevisionDocumentData'](_0x30ec6f){return await this['_utils']['loadRevisionData'](_0x30ec6f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x30ec6f);}async['getRevisionRootsAttributes'](_0x4f6760){return await this['_utils']['loadRevisionData'](_0x4f6760,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4f6760);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1faa52=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5b2482=0x0;_0x5b2482<_0x1faa52['length'];_0x5b2482++){const _0x124a72=_0x1faa52[_0x5b2482];let _0x3ec036=!0x1;for(const _0xa4c587 of Object['keys'](_0x124a72))void 0x0===_0x124a72[_0xa4c587]?delete _0x124a72[_0xa4c587]:'id'!==_0xa4c587&&(_0x3ec036=!0x0);_0x3ec036||(_0x1faa52[_0x5b2482]=null);}if(_0x1faa52=_0x1faa52['filter'](_0x391609=>null!==_0x391609),!_0x1faa52['length'])return;for(let _0x1f549b=0x0;_0x1f549b<_0x1faa52['length'];_0x1f549b++){const _0xafac77=_0x1faa52[_0x1f549b];void 0x0!==_0xafac77['fromVersion']&&void 0x0===_0xafac77['toVersion']&&(_0xafac77['toVersion']=this['repository']['getRevision'](_0xafac77['id'])['toVersion']),void 0x0!==_0xafac77['toVersion']&&void 0x0===_0xafac77['fromVersion']&&(_0xafac77['fromVersion']=this['repository']['getRevision'](_0xafac77['id'])['fromVersion']);}const _0x58d556=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1faa52,_0x58d556)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x6f5f46=>{if(_0x6f5f46){for(const _0x5a67fb of _0x6f5f46)this['setRevisionData']({'id':_0x5a67fb['id'],'createdAt':_0x5a67fb['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x52f7ad=null,from:_0xc07b42=null,to:_0x57c567=null}){_0xc07b42=null!==_0xc07b42?_0xc07b42:_0x52f7ad['fromVersion'],_0x57c567=null!==_0x57c567?_0x57c567:_0x52f7ad['toVersion'];const _0x2cc62c=this['_revisionDataBuilder']['getData'](_0xc07b42,_0x57c567),_0x5280c6={'diffData':_0x2cc62c['diffData'],'authorsIds':_0x2cc62c['authorsIds'],'fromVersion':_0xc07b42,'toVersion':_0x57c567};if(!_0x52f7ad||_0x57c567!==_0x52f7ad['toVersion']){const _0x51028a=_0x57c567-0x1,_0x100b22=this['_source']['history']['getOperation'](_0x51028a);_0x5280c6['createdAt']=_0x100b22&&_0x100b22['createdAt']||new Date();}if(this['_loadedStateData']&&_0xc07b42===this['_loadedStateData']['fromVersion']){for(const _0x4db9c8 of this['_loadedStateData']['authors'])_0x5280c6['authorsIds']['includes'](_0x4db9c8['id'])||_0x5280c6['authorsIds']['push'](_0x4db9c8['id']);}return _0x5280c6;}['_bufferUpdate'](_0x377708,_0x969e6c,_0x50355e){if(this['_bufferedUpdates']['has'](_0x377708)){const _0xda3240=this['_bufferedUpdates']['get'](_0x377708);_0x969e6c=_0x50355e?{..._0xda3240,..._0x969e6c}:{..._0x969e6c,..._0xda3240};}this['_bufferedUpdates']['set'](_0x377708,_0x969e6c);}['setRevisionData'](_0x5019b9){const _0x11028a=this['repository']['getRevision'](_0x5019b9['id']);if(_0x5019b9['createdAt']&&(_0x5019b9['createdAt']=new Date(_0x5019b9['createdAt'])),_0x5019b9['authorsIds']){const _0x322e86=this['editor']['plugins']['get']('Users');_0x5019b9['authors']=_0x5019b9['authorsIds']['map'](_0x3afc54=>_0x322e86['getUser'](_0x3afc54));}_0x11028a['_update'](_0x5019b9,!0x0);}['_createInitialRevision'](_0x398b90){const _0x40413e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x40413e)this['_initialRevisionId']=_0x40413e['id'];else{const _0x2c9250=!this['editor']['model']['document']['roots']['find'](_0x23894c=>this['editor']['model']['hasContent'](_0x23894c)),_0x8a2451=this['editor']['plugins']['get']('Users')['me']['id'],_0x25d011=R(this['editor']['locale'],_0x2c9250?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x398b90,'to':_0x398b90,'id':this['_initialRevisionId'],'name':_0x25d011,'creatorId':_0x8a2451});}}['_createCurrentRevision'](_0x171dd6){const _0x4e19ad=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4e19ad),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x171dd6,'to':_0x171dd6,'id':_0x4e19ad,'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'](_0x1a12c7,_0x12e7a3){let _0xae837a=this['editor']['config']['get']('initialData'),_0x310331=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xae837a){_0xae837a={};for(const _0x232f39 of this['editor']['model']['document']['getRootNames']())_0xae837a[_0x232f39]='';}if('string'==typeof _0xae837a&&(_0xae837a={'main':_0xae837a}),void 0x0===_0x310331){_0x310331={};for(const _0x36ea90 of this['editor']['model']['document']['getRootNames']())_0x310331[_0x36ea90]={};}let _0x1dce41=!0x1;const _0x5799f1=Object['keys'](_0xae837a),_0x3abd12=Object['keys'](_0x1a12c7);for(const _0x787360 of _0x5799f1){if(_0xae837a[_0x787360]!==_0x1a12c7[_0x787360]&&''!==_0xae837a[_0x787360]['trim']()){_0x1dce41=!0x0;break;}if(!_0x555e19(_0x310331[_0x787360],_0x12e7a3[_0x787360])&&Object['keys'](_0x310331[_0x787360])['length']>0x0){_0x1dce41=!0x0;break;}}_0x1dce41||(_0x1dce41=_0x3abd12['some'](_0x1d6e28=>!this['editor']['model']['document']['getRoot'](_0x1d6e28))),_0x1dce41&&_0x23c396('editor-initial-data-replaced-with-revision-data',{'editorData':_0xae837a,'editorRootsAttributes':_0x310331,'revisionData':_0x1a12c7,'revisionRootsAttributes':_0x12e7a3}),this['editor']['config']['set']('initialData',_0x1a12c7),this['editor']['config']['set']('rootsAttributes',_0x12e7a3);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x34167c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x34167c['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x346d94){const _0x41e272=this['repository']['getRevisions']();_0x41e272['reverse']();let _0x3b290d=0x0;for(;_0x3b290d<_0x41e272['length'];){const _0x54ad44=_0x41e272[_0x3b290d];if(_0x54ad44===this['currentRevision']){_0x3b290d++;continue;}if(_0x54ad44['id']===this['_initialRevisionId'])break;const _0x6c00c3=_0x346d94['toVersion']-_0x54ad44['toVersion']||_0x346d94['fromVersion']-_0x54ad44['fromVersion'];if(_0x6c00c3>0x0)break;if(_0x6c00c3<0x0)_0x3b290d++;else{if(!_0x346d94['creator']&&_0x54ad44['creator'])break;if(_0x54ad44['creator']||!_0x346d94['creator']){if(_0x346d94['createdAt']>_0x54ad44['createdAt'])break;_0x3b290d++;}else _0x3b290d++;}}return _0x3b290d;}['_getFromVersion'](_0x372300){const _0x44ec06=this['repository']['getRevisions']();_0x44ec06['reverse'](),_0x44ec06['shift']();const _0x16d723=_0x44ec06['find'](_0x17adc7=>_0x17adc7['toVersion']<=_0x372300)['toVersion'];return _0x16d723<this['_startingVersion']?this['_startingVersion']:_0x16d723;}['_makeRevision']({name:_0x280c93,from:_0x305380,to:_0x5393a9,creatorId:_0x47beac,id:_0x200d03}){const _0x3ab68e=this['buildRevisionData']({'from':_0x305380,'to':_0x5393a9});_0x3ab68e['name']=_0x280c93,_0x3ab68e['creatorId']=_0x47beac,_0x3ab68e['id']=_0x200d03;const _0x30e4f7=this['addRevisionData'](_0x3ab68e);return this['adapter']&&this['_bufferUpdate'](_0x3ab68e['id'],_0x3ab68e,!0x0),_0x30e4f7;}['_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(_0x333329){this['editor']=_0x333329,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'](_0xfd809b){this['source']=_0xfd809b;const _0x3c8a2d=new Map(),_0x1c0ea5=new Map(),_0x5a548b=this['editor']['model']['document']['roots']['map'](_0x5b8e60=>_0x5b8e60['rootName']);for(const _0x1cd647 of _0x5a548b){const _0x31ebc8=this['editor']['model']['document']['getRoot'](_0x1cd647),_0x155fea=x(_0x31ebc8);_0x3c8a2d['set'](_0x1cd647,_0x155fea),_0x1c0ea5['set'](_0x1cd647,Object['fromEntries'](_0x31ebc8['getAttributes']()));}const _0x1df894=Array['from'](this['editor']['model']['markers'])['map'](_0x47d625=>[_0x47d625['name'],_0x47d625['getRange']()]),_0x179722=this['source']['version'];this['_saveMetaData'](_0x179722,_0x3c8a2d,_0x1df894,_0x1c0ea5),this['_startingRevisionId']=this['_revisionId'];const _0x31b181=new Map(),_0x5bf74e=new Map();for(const _0x21abf0 of _0x5a548b){const _0x18d6c0=N(_0x21abf0);_0x31b181['set'](_0x21abf0,_0x18d6c0),_0x5bf74e['set'](_0x21abf0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x31b181,[],_0x5bf74e);}['getData'](_0xe74941,_0x170a1f){if(this['_lastFrom']===_0xe74941&&this['_lastTo']<=_0x170a1f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x170a1f,!0x0);else{if(!this['_savedMetaData']['has'](_0xe74941)){const _0x4d084e=this['_getPreviousFrom'](_0xe74941);this['_calculateMetaData'](_0x4d084e,_0xe74941,!0x1);}this['_calculateMetaData'](_0xe74941,_0x170a1f,!0x0);}return this['_lastFrom']=_0xe74941,this['_lastTo']=_0x170a1f,this['_getState']();}['loadState'](_0x20a14d){const _0x514230=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x20a14d['fromVersion'],this['_lastTo']=_0x20a14d['toVersion'];for(const _0x4e4c9a in _0x20a14d['diffData']){const _0x12fbce=_0x20a14d['diffData'][_0x4e4c9a]['attachChange'],_0x32406f=_0x42d2a8(_0x20a14d['diffData'][_0x4e4c9a]['attributesBefore'])||{},_0x256a38=_0x514230['_makeModelFromViewString'](_0x20a14d['diffData'][_0x4e4c9a]['deletions']);_0x256a38['rootName']=_0x4e4c9a,_0x256a38['_isAttached']=!_0x12fbce||!_0x12fbce['isAttached'],_0x256a38['isAttached']=()=>_0x256a38['_isAttached'],this['_baseRoots']['set'](_0x4e4c9a,_0x256a38),this['_baseRootsAttributes']['set'](_0x4e4c9a,_0x32406f),_0x12fbce&&this['_touchedRoots']['set'](_0x4e4c9a,_0x12fbce);const _0x3b6171=this['_makeIdsRoot'](_0x256a38);this['_baseIdsRoots']['set'](_0x4e4c9a,_0x3b6171);for(const [_0x37ef52,_0x46f18b]of _0x256a38['markers']){if(!_0x37ef52['startsWith']('revision:'))continue;const _0x551181=_0x37ef52['split'](':')[0x2];for(const _0x7e2c1e of _0x46f18b['getWalker']({'singleCharacters':!0x0})){const _0xfc03d0=this['_getVidAttributeName'](_0x7e2c1e),_0x45322c='elementEnd'==_0x7e2c1e['type']?_0x7e2c1e['previousPosition']['path']['slice'](0x0,-0x1):_0x7e2c1e['previousPosition']['path'],_0xa66a55=_0x3b6171['getNodeByPath'](_0x45322c)['getAttribute'](_0xfc03d0);this['_touched']['set'](_0xa66a55,{'userId':_0x551181});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5ba3bb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x32b592=>!this['_touched']['has'](_0x32b592));let _0x295a18=0x0;const _0x2464f7=new Map();for(const _0x57f69c in _0x20a14d['diffData']){const _0x583e4e=_0x20a14d['diffData'][_0x57f69c]['attachChange'],_0x5e6ffa=_0x42d2a8(_0x20a14d['diffData'][_0x57f69c]['attributesAfter'])||{},_0x175871=_0x514230['_makeModelFromViewString'](_0x20a14d['diffData'][_0x57f69c]['insertions']);_0x175871['rootName']=_0x57f69c,_0x175871['_isAttached']=!_0x583e4e||_0x583e4e['isAttached'],_0x175871['isAttached']=()=>_0x175871['_isAttached'],this['_diffRoots']['set'](_0x57f69c,_0x175871),this['_diffRootsAttributes']['set'](_0x57f69c,_0x5e6ffa);const _0x4495a3=this['_makeIdsRoot'](_0x175871,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x57f69c,_0x4495a3),_0x2464f7['set'](_0x57f69c,_0x175871['isAttached']()?_0x5e6ffa:{});for(const [_0x1f1908,_0x2e856e]of _0x175871['markers']){if(!_0x1f1908['startsWith']('revision:'))continue;const _0x31998b=_0x1f1908['split'](':')[0x2];for(const _0x275008 of _0x2e856e['getWalker']({'singleCharacters':!0x0})){const _0x438828=this['_getVidAttributeName'](_0x275008),_0x22960d=this['_revisionId']++,_0x3eaf83='elementEnd'==_0x275008['type']?_0x275008['previousPosition']['path']['slice'](0x0,-0x1):_0x275008['previousPosition']['path'];_0x4495a3['getNodeByPath'](_0x3eaf83)['_setAttribute'](_0x438828,_0x22960d),this['_touched']['set'](_0x22960d,{'userId':_0x31998b});}}for(const _0xb25ede of this['editor']['model']['createRangeIn'](_0x175871)['getWalker']({'singleCharacters':!0x0})){const _0x31ccd8=this['_getVidAttributeName'](_0xb25ede),_0x25dda5='elementEnd'==_0xb25ede['type']?_0xb25ede['previousPosition']['path']['slice'](0x0,-0x1):_0xb25ede['previousPosition']['path'],_0x7507a7=_0x4495a3['getNodeByPath'](_0x25dda5);_0x7507a7['getAttribute'](_0x31ccd8)>0x0||_0x7507a7['_setAttribute'](_0x31ccd8,_0x5ba3bb[_0x295a18++]);}for(const [_0x24c318,_0x2f8a1c]of _0x175871['markers'])_0x24c318['startsWith']('revision:')||this['_markers']['set'](_0x24c318,_0x2f8a1c);}const _0x7bc2a6=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x7bc2a6),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x7bc2a6,0x1));const _0x1a0178=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1a0178),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1a0178,0x1));const _0x3f1286=Array['from'](this['_diffRoots'])['map'](([_0x267e88,_0xd4668b])=>[_0x267e88,x(_0xd4668b)]);this['_saveMetaData'](this['_lastTo'],_0x3f1286,this['_markers'],_0x2464f7);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5bd5db,_0x550f61,_0x389fab,_0xb9d1ba){const _0x3f598b=new Map(_0x550f61),_0x34c7c7=new Map(_0x42d2a8(_0xb9d1ba)),_0x198a5f=new Map();for(const [_0x371551,_0x6911ff]of _0x389fab)_0x198a5f['set'](_0x371551,{'start':_0x6911ff['start']['clone'](),'end':_0x6911ff['end']['clone'](),'rootName':_0x6911ff['root']['rootName']});this['_savedMetaData']['set'](_0x5bd5db,{'roots':_0x3f598b,'markers':_0x198a5f,'rootsAttributes':_0x34c7c7});}['_removeMetaData'](_0x5e9cce){this['_savedMetaData']['delete'](_0x5e9cce);}['_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'](_0x2534fe,_0x2ef6a6=null){let _0xf3bf6b=null;_0x2534fe['is']('documentFragment')||(_0xf3bf6b=new _0x7cb355(_0x2534fe['name'],{'vid_start':null===_0x2ef6a6?this['_revisionId']++:_0x2ef6a6++}));const _0x2528ce=[];for(const _0x154c44 of _0x2534fe['getChildren']())if(_0x154c44['is']('element')){_0x2528ce['push'](this['_makeIdsRoot'](_0x154c44,_0x2ef6a6));const _0x58e22a=_0x2528ce[_0x2528ce['length']-0x1];null!==_0x2ef6a6&&(_0x2ef6a6=_0x58e22a['is']('element','$text')?_0x58e22a['getAttribute']('vid')+0x1:_0x58e22a['getAttribute']('vid_end')+0x1);}else{for(let _0x5e3c94=0x0;_0x5e3c94<_0x154c44['offsetSize'];_0x5e3c94++)_0x2528ce['push'](new _0x7cb355('$text',{'vid':null===_0x2ef6a6?this['_revisionId']++:_0x2ef6a6++}));}if(_0x2534fe['is']('documentFragment')){const _0x49aa45=N(_0x2534fe['rootName']);return _0x49aa45['_insertChild'](0x0,_0x2528ce),_0x49aa45;}return _0xf3bf6b['_setAttribute']('vid_end',null===_0x2ef6a6?this['_revisionId']++:_0x2ef6a6++),_0xf3bf6b['_insertChild'](0x0,_0x2528ce),_0xf3bf6b;}['_calculateMetaData'](_0x3fecd8,_0x592cf9,_0x9ff81e){this['_reset']();const {roots:_0x5de57d,markers:_0x12aae5,rootsAttributes:_0x2e3593}=this['_savedMetaData']['get'](_0x3fecd8);this['_baseRoots']=new Map(_0x5de57d),this['_baseRootsAttributes']=new Map(_0x42d2a8(_0x2e3593));for(const [_0xce7c16,_0x4f51b4]of this['_baseRoots'])if('$graveyard'!==_0xce7c16&&(this['_diffRoots']['set'](_0xce7c16,x(_0x4f51b4)),this['_diffRootsAttributes']=new Map(_0x42d2a8(_0x2e3593)),_0x9ff81e)){const _0x2d8892=this['_revisionId'];this['_idsRoots']['set'](_0xce7c16,this['_makeIdsRoot'](_0x4f51b4)),this['_baseIdsRoots']['set'](_0xce7c16,this['_makeIdsRoot'](_0x4f51b4,_0x2d8892));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x9ff81e&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3adf53,_0x43b105]of _0x12aae5){const _0x2b77cf=this['_baseRoots']['get'](_0x43b105['rootName']),_0x5e84f6=this['_diffRoots']['get'](_0x43b105['rootName']),_0x3a8bb6=new _0x550e8b(this['_fixPosition'](_0x43b105['start'],_0x2b77cf),this['_fixPosition'](_0x43b105['end'],_0x2b77cf)),_0x4da459=this['_fixRange'](_0x3a8bb6,_0x5e84f6);_0x2b77cf['markers']['set'](_0x3adf53,_0x3a8bb6),this['_markers']['set'](_0x3adf53,_0x4da459);}this['_applyOperations'](_0x3fecd8,_0x592cf9,_0x9ff81e);}['_applyOperations'](_0x205307,_0x3fd12b,_0x3b37fc){for(const _0x35fb19 of this['source']['getOperations'](_0x205307,_0x3fd12b))this['_handleOperation'](_0x35fb19,_0x3b37fc);for(const _0x243e9b of this['_diffRoots']['values']())_0x243e9b['markers']['clear']();for(const [_0x435140,_0x7261f2]of this['_markers']){this['_diffRoots']['get'](_0x7261f2['root']['rootName'])['markers']['set'](_0x435140,_0x7261f2['clone']());}const _0x5e462e=new Map(),_0xa2bc83=new Map();for(const [_0x1d35f3,_0x5e1599]of this['_diffRoots'])_0x5e462e['set'](_0x1d35f3,x(_0x5e1599)),_0xa2bc83['set'](_0x1d35f3,this['_diffRootsAttributes']['get'](_0x1d35f3));this['_saveMetaData'](_0x3fd12b,_0x5e462e,this['_markers'],_0xa2bc83);}['_getPreviousFrom'](_0x25879f){const _0x28cdcf=Array['from'](this['_savedMetaData']['keys']());_0x28cdcf['sort']((_0x39d91c,_0x42fe6a)=>_0x39d91c-_0x42fe6a),_0x28cdcf['reverse']();for(const _0x15571e of _0x28cdcf)if(_0x15571e<_0x25879f)return _0x15571e;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x494003,_0x14e8c2){const _0x20cd3c=Array['from'](_0x14e8c2['markers'])['map'](([_0x49832f,_0x4a1425])=>[_0x49832f,this['_fixRange'](_0x4a1425,_0x494003)]);_0x494003['markers']=new Map(_0x20cd3c);}['_transformMarkers'](_0x2e8f4d){for(const _0x2ab0ee of this['_markers']['values']()){const _0x355271=_0x2ab0ee['getTransformedByOperation'](_0x2e8f4d),_0xf3607c=_0x550e8b['_createFromRanges'](_0x355271);_0x2ab0ee['start']=_0xf3607c['start'],_0x2ab0ee['end']=_0xf3607c['end'];}}['_handleOperation'](_0x32c8da,_0x408aa7){if('addRoot'!=_0x32c8da['type']&&'detachRoot'!=_0x32c8da['type']){if('insert'==_0x32c8da['type']){const _0x36f2bc=_0x32c8da['position']['root']['rootName'];this['_diffRoots']['has'](_0x36f2bc)||(this['_diffRoots']['set'](_0x36f2bc,N(_0x36f2bc,!0x0)),this['_diffRootsAttributes']['set'](_0x36f2bc,{}),_0x408aa7&&this['_idsRoots']['set'](_0x36f2bc,N(_0x36f2bc,!0x0)));}else{if('addRootAttribute'==_0x32c8da['type']||'removeRootAttribute'==_0x32c8da['type']||'changeRootAttribute'==_0x32c8da['type'])return void this['_handleRootAttributeOperation'](_0x32c8da);'marker'==_0x32c8da['type']&&this['_handleMarkerOperation'](_0x32c8da);}if('marker'!==_0x32c8da['type']){const _0x41c0ac=this['_cloneOperation'](_0x32c8da,this['_diffRoots']);_0x41c0ac['_execute'](),this['_transformMarkers'](_0x41c0ac);}if(_0x408aa7)switch(_0x32c8da['type']){case'insert':this['_handleInsertOperation'](_0x32c8da);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x32c8da);break;case'merge':this['_handleMergeOperation'](_0x32c8da);break;case'split':this['_handleSplitOperation'](_0x32c8da);}}else this['_handleRootOperation'](_0x32c8da,_0x408aa7);}['_cloneOperation'](_0x3f7b88,_0x167097){const _0x42f9f=_0x3f7b88['clone']();return _0x42f9f['_authorId']=_0x3f7b88['_authorId'],this['_fixOperation'](_0x42f9f,_0x167097),_0x42f9f;}['_getBaseVids'](_0x3df7f1){return _0x3df7f1['map'](_0x12a572=>{const _0x152d5b=this['_getVidAttributeName'](_0x12a572);return Number(_0x12a572['item']['getAttribute'](_0x152d5b));});}['_generateTape'](_0x1c0a3b,_0x2c544c){if(_0x1c0a3b['is']('element','$text'))_0x2c544c['push']({'item':_0x1c0a3b,'type':'text'});else{_0x1c0a3b['is']('element')&&_0x2c544c['push']({'item':_0x1c0a3b,'type':'elementStart'});for(const _0x30f46b of _0x1c0a3b['getChildren']())this['_generateTape'](_0x30f46b,_0x2c544c);_0x1c0a3b['is']('element')&&_0x2c544c['push']({'item':_0x1c0a3b,'type':'elementEnd'});}return _0x2c544c;}['_getState'](){const _0x1514f2=new Map(this['_touched']),_0x1d353c=new Map(_0x1514f2),_0x57e8a0=new Map(),_0x544346={'insertions':{},'deletions':{}},_0x5e7071={'insertions':{},'deletions':{}},_0x585b37=new Map(),_0x3ea48f=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3ea48f['delete']('$graveyard');for(const _0x34b8cd of _0x3ea48f){const _0x4e460c=this['_diffRoots']['get'](_0x34b8cd)||N(_0x34b8cd,!0x1),_0x40c3ce=this['_baseRoots']['get'](_0x34b8cd)||N(_0x34b8cd,!0x1);_0x4e460c['isAttached']()||_0x40c3ce['isAttached']()?(_0x544346['insertions'][_0x34b8cd]=x(_0x4e460c),_0x544346['deletions'][_0x34b8cd]=x(_0x40c3ce),this['_copyMarkers'](_0x544346['deletions'][_0x34b8cd],_0x40c3ce),this['_copyMarkers'](_0x544346['insertions'][_0x34b8cd],_0x4e460c),_0x5e7071['insertions'][_0x34b8cd]=this['_generateTape'](this['_idsRoots']['get'](_0x34b8cd),[]),_0x5e7071['deletions'][_0x34b8cd]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x34b8cd)||N(_0x34b8cd,!0x1),[])):_0x3ea48f['delete'](_0x34b8cd);}for(const _0x47cdca of _0x3ea48f){const _0x12380b=_0x5e7071['insertions'][_0x47cdca];for(const _0x50ac4d of _0x12380b){const _0x5c62e6=this['_getVidAttributeName'](_0x50ac4d),_0x2a1198=_0x50ac4d['item']['getAttribute'](_0x5c62e6);_0x1d353c['delete'](_0x2a1198),_0x2a1198>=this['_startingRevisionId']&&_0x57e8a0['set'](_0x2a1198,_0x1514f2['get'](_0x2a1198));}}for(const _0x2985c4 of _0x3ea48f){const _0xd2b355=_0x5e7071['insertions'][_0x2985c4],_0x5b1191=this['_getBaseVids'](_0x5e7071['deletions'][_0x2985c4]);let _0x409e9e=0x0;for(const _0x5ad9df of _0xd2b355){const _0x5c1818=this['_getVidAttributeName'](_0x5ad9df),_0x20a5f7=_0x5ad9df['item']['getAttribute'](_0x5c1818);if(!_0x57e8a0['has'](_0x20a5f7)&&!_0x585b37['has'](_0x20a5f7)){if(_0x1d353c['has'](_0x20a5f7))_0x409e9e++;else{if(_0x20a5f7!=_0x5b1191[_0x409e9e]){const _0x32b1db=_0x1514f2['get'](_0x20a5f7)||_0x1514f2['get'](_0x5b1191[_0x409e9e]);for(;_0x20a5f7!=_0x5b1191[_0x409e9e];)_0x1d353c['has'](_0x5b1191[_0x409e9e])||(_0x585b37['set'](_0x5b1191[_0x409e9e],_0x32b1db),_0x1514f2['set'](_0x5b1191[_0x409e9e],_0x32b1db)),_0x409e9e++;}_0x409e9e++;}}}}for(const _0x12b33c of _0x3ea48f){const _0x30ee6b=_0x5e7071['insertions'][_0x12b33c];for(const _0x24141d of _0x30ee6b){const _0x4105da=this['_getVidAttributeName'](_0x24141d),_0x2d52f7=_0x24141d['item']['getAttribute'](_0x4105da);if(_0x585b37['has'](_0x2d52f7)){const _0x2242ed=_0x585b37['get'](_0x2d52f7);_0x1d353c['has'](_0x2d52f7)||_0x1d353c['set'](_0x2d52f7,{..._0x2242ed}),_0x57e8a0['set'](_0x2d52f7,{..._0x2242ed});}}}for(const _0x3f1f06 of _0x1d353c['keys']())_0x3f1f06>=this['_startingRevisionId']&&_0x1d353c['delete'](_0x3f1f06);const _0x504aae=new Map();for(const _0x381585 of _0x3ea48f){let _0x392934=_0x5e7071['insertions'][_0x381585];for(const _0x4396ca of _0x392934)if(_0x4396ca['item']['is']('element','tableCell')){const _0x12eb23=this['_getVidAttributeName'](_0x4396ca),_0xc95eb=_0x4396ca['item']['getAttribute'](_0x12eb23);if(_0x57e8a0['has'](_0xc95eb)){const _0x8e0e61=_0x4396ca['item']['parent']['parent']['getAttribute']('vid_start'),_0x5af844=_0x504aae['get'](_0x8e0e61)||new Set();_0x5af844['add'](_0x57e8a0['get'](_0xc95eb)['userId']),_0x504aae['set'](_0x8e0e61,_0x5af844);}}_0x392934=_0x5e7071['deletions'][_0x381585];for(const _0x355da3 of _0x392934)if(_0x355da3['item']['is']('element','tableCell')){const _0x485081=this['_getVidAttributeName'](_0x355da3),_0x29f759=_0x355da3['item']['getAttribute'](_0x485081);if(_0x1d353c['has'](_0x29f759)){const _0x4ef60c=_0x355da3['item']['parent']['parent']['getAttribute']('vid_start'),_0x4bae6b=_0x504aae['get'](_0x4ef60c)||new Set();_0x4bae6b['add'](_0x1d353c['get'](_0x29f759)['userId']),_0x504aae['set'](_0x4ef60c,_0x4bae6b);}}for(const _0x163f18 of _0x504aae['keys']())(_0x57e8a0['has'](_0x163f18)||_0x1d353c['has'](_0x163f18))&&_0x504aae['delete'](_0x163f18);}for(const _0x51eff9 of _0x3ea48f){const _0x14edc3=_0x5e7071['insertions'][_0x51eff9];let _0xa21832=null,_0x3ce33e=null;for(const _0x16eaf2 of _0x14edc3){const _0x23f49d=this['_getVidAttributeName'](_0x16eaf2),_0x448a17=_0x16eaf2['item']['getAttribute'](_0x23f49d),_0x3ce0ee=_0x504aae['get'](_0x448a17);_0x3ce0ee&&'elementStart'==_0x16eaf2['type']&&(_0xa21832=Array['from'](_0x3ce0ee)[0x0],_0x3ce33e=_0x16eaf2['item']['getAttribute']('vid_end')),_0xa21832&&(_0x1d353c['set'](_0x448a17,{'userId':_0xa21832}),_0x57e8a0['set'](_0x448a17,{'userId':_0xa21832})),_0x448a17==_0x3ce33e&&(_0xa21832=null,_0x3ce33e=null);}}const _0x513ed5={},_0x188a7d=new Set();for(const _0x40d273 of _0x3ea48f){const _0x455464=_0x544346['deletions'][_0x40d273],_0x4e542c=_0x544346['insertions'][_0x40d273];for(const {userId:_0x428e34}of this['_touchedMarkers']['values']())null!==_0x428e34&&_0x188a7d['add'](_0x428e34);for(const {userId:_0x2d81e5}of this['_touchedRoots']['values']())null!==_0x2d81e5&&_0x188a7d['add'](_0x2d81e5);this['_markChanges'](_0x4e542c,_0x5e7071['insertions'][_0x40d273],_0x57e8a0,'insertion',_0x188a7d),this['_markChanges'](_0x455464,_0x5e7071['deletions'][_0x40d273],_0x1d353c,'deletion',_0x188a7d),_0x513ed5[_0x40d273]={'insertions':this['_prepareViewToSave'](_0x4e542c),'deletions':this['_prepareViewToSave'](_0x455464),'attachChange':this['_touchedRoots']['get'](_0x40d273)||null,'attributesBefore':_0x42d2a8(this['_baseRootsAttributes']['get'](_0x40d273))||{},'attributesAfter':_0x42d2a8(this['_diffRootsAttributes']['get'](_0x40d273))};}return{'diffData':_0x513ed5,'authorsIds':Array['from'](_0x188a7d)};}['_processRootBeforeSave'](_0x126d2c){for(const [,_0x49e1a3]of _0x126d2c['markers']){const _0x306ac1=_0x49e1a3['start']['getAncestors']()['filter'](_0x4e509b=>'tableCell'==_0x4e509b['name']);for(const _0x32ae3f of _0x306ac1)0x1==_0x32ae3f['childCount']&&_0x32ae3f['getChild'](0x0)['is']('element','paragraph')&&_0x32ae3f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x43e037){this['_processRootBeforeSave'](_0x43e037);const _0x69424d=this['editor']['data']['toView'](_0x43e037,{}),_0x119fd1=Array['from'](_0x69424d['getChildren']())['map'](_0x3886a5=>this['_getViewJson'](_0x3886a5));return JSON['stringify'](_0x119fd1);}['_getViewJson'](_0x1cf8c3){if(_0x1cf8c3['is']('$text'))return _0x1cf8c3['data'];{const _0x47f250=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x100321=_0x1cf8c3,_0x38c1da=this['editor']['data']['htmlProcessor']['domConverter'],_0x37b43d={'type':_0x47f250['_getTypeCharForViewElement'](_0x100321),'name':_0x100321['name'],'attributes':Array['from'](_0x100321['getAttributes']()),'children':Array['from'](_0x100321['getChildren']())['map'](_0x34f0ec=>this['_getViewJson'](_0x34f0ec))};if(_0x1cf8c3['is']('uiElement')&&'$comment'!=_0x1cf8c3['name']){const _0x2ddf0a=_0x1cf8c3['render'](_0x38c1da['domDocument'],_0x38c1da);_0x37b43d['children']['push'](_0x2ddf0a['outerHTML']);}else{if(_0x1cf8c3['is']('rawElement')){const _0x286be3=_0x38c1da['domDocument']['createElement'](_0x100321['name']);_0x1cf8c3['render'](_0x286be3,_0x38c1da),_0x37b43d['children']['push'](_0x286be3['innerHTML']);}}const _0x2ff5bc=Array['from'](_0x100321['getCustomProperties']());_0x2ff5bc['length']>0x0&&(_0x37b43d['customProperties']=_0x2ff5bc);const _0x524381=_0x100321['getFillerOffset']();return null!==_0x524381&&(_0x37b43d['fillerOffset']=_0x524381),_0x37b43d;}}['_markChanges'](_0x1f7d4d,_0x37c001,_0x209c47,_0x5f5d47,_0xe3ecbe){let _0x2ff26c=null,_0x46db49=null,_0x216491=0x0;const _0x1dad22=this['editor']['model'];for(let _0x511b3c=0x0;_0x511b3c<_0x37c001['length'];_0x511b3c++){const _0x61a5d3=this['_getVidAttributeName'](_0x37c001[_0x511b3c]),_0x10a66e=_0x37c001[_0x511b3c]['item']['getAttribute'](_0x61a5d3),_0x7d395b=_0x209c47['get'](_0x10a66e),_0x225043=_0x511b3c==_0x37c001['length']-0x1;(!_0x2ff26c&&_0x7d395b&&(_0x2ff26c=_0x7d395b,_0x46db49=_0x37c001[_0x511b3c]),_0x2ff26c&&(!_0x7d395b||_0x7d395b['userId']!=_0x2ff26c['userId']))&&(_0x258f9f(_0x7d395b,P(_0x46db49,_0x1f7d4d,_0x1dad22),P(_0x37c001[_0x511b3c],_0x1f7d4d,_0x1dad22)),_0x2ff26c=_0x7d395b||null,_0x46db49=_0x7d395b?_0x37c001[_0x511b3c]:null),_0x2ff26c&&_0x225043&&_0x258f9f(_0x7d395b,P(_0x46db49,_0x1f7d4d,_0x1dad22),V(_0x37c001[_0x511b3c],_0x1f7d4d,_0x1dad22));}function _0x258f9f(_0x37e447,_0x18b353,_0x29952d){const _0x55fc63=_0x2ff26c['userId'],_0x536567='revision:'+_0x5f5d47+':'+_0x55fc63+':'+_0x216491++,_0x42d36b=_0x1dad22['createRange'](_0x18b353,_0x29952d);_0x1f7d4d['markers']['set'](_0x536567,_0x42d36b),null!==_0x55fc63&&_0xe3ecbe['add'](_0x55fc63);}}['_getVidAttributeName'](_0x4fab24){switch(_0x4fab24['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x49712b,_0x412c55){_0x49712b['baseVersion']=null;for(const _0x5b8966 in _0x49712b){const _0x24e157=_0x49712b[_0x5b8966];if(_0x24e157 instanceof _0x5e3e53){const _0x4e0503=_0x412c55['get'](_0x24e157['root']['rootName']);_0x49712b[_0x5b8966]=this['_fixPosition'](_0x24e157,_0x4e0503);}if(_0x24e157 instanceof _0x550e8b){const _0x4715b0=_0x412c55['get'](_0x24e157['root']['rootName']);_0x49712b[_0x5b8966]=this['_fixRange'](_0x24e157,_0x4715b0);}'root'===_0x5b8966&&(_0x49712b['root']=_0x412c55['get'](_0x49712b['root']['rootName']));}}['_fixRange'](_0x4f1844,_0x3c9513){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4f1844['start'],_0x3c9513),this['_fixPosition'](_0x4f1844['end'],_0x3c9513));}['_fixPosition'](_0x1ee90e,_0x322658){return this['editor']['model']['createPositionFromPath'](_0x322658,_0x1ee90e['path'],_0x1ee90e['stickiness']);}['_handleInsertOperation'](_0x5b5a8e){const _0x226062=this['_idsRoots']['get'](_0x5b5a8e['position']['root']['rootName']),_0x525596=this['_fixPosition'](_0x5b5a8e['position'],_0x226062),_0x3ed8a3=null===_0x5b5a8e['_authorId']?null:_0x5b5a8e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x410a0a=_0x525596['parent'],_0x11321f=this['_revisionId'],_0x325f55=[];for(const _0x24b538 of _0x5b5a8e['nodes'])if(_0x24b538['is']('element'))_0x325f55['push'](this['_makeIdsRoot'](_0x24b538));else{for(let _0x13facb=0x0;_0x13facb<_0x24b538['offsetSize'];_0x13facb++)_0x325f55['push'](new _0x7cb355('$text',{'vid':this['_revisionId']++}));}const _0x270cea=this['_revisionId'];for(let _0x4182d1=_0x11321f;_0x4182d1<_0x270cea;_0x4182d1++)this['_touched']['set'](_0x4182d1,{'userId':_0x3ed8a3});_0x410a0a['_insertChild'](_0x525596['offset'],_0x325f55);}['_handleMoveOperation'](_0x14dcb6){(_0x14dcb6=this['_cloneOperation'](_0x14dcb6,this['_idsRoots']))['_execute']();const _0x19c05e=null===_0x14dcb6['_authorId']?null:_0x14dcb6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29ffb9=_0x14dcb6['getMovedRangeStart'](),_0x1e0ed5=_0x29ffb9['parent'],_0x4b7c12=_0x29ffb9['offset'];!function _0x98404e(_0xa87ffa,_0x168086,_0x3723e4,_0x37bf4a){for(let _0x444d48=_0x3723e4;_0x444d48<_0x37bf4a;_0x444d48++){const _0x292a46=_0x168086['getChild'](_0x444d48);_0x292a46['is']('element','$text')?_0xa87ffa['set'](_0x292a46['getAttribute']('vid'),{'userId':_0x19c05e}):(_0xa87ffa['set'](_0x292a46['getAttribute']('vid_start'),{'userId':_0x19c05e}),_0x98404e(_0xa87ffa,_0x292a46,0x0,_0x292a46['childCount']),_0xa87ffa['set'](_0x292a46['getAttribute']('vid_end'),{'userId':_0x19c05e}));}}(this['_touched'],_0x1e0ed5,_0x4b7c12,_0x4b7c12+_0x14dcb6['howMany']);}['_handleMergeOperation'](_0x474602){const _0x5b72b4=null===(_0x474602=this['_cloneOperation'](_0x474602,this['_idsRoots']))['_authorId']?null:_0x474602['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b480e=_0x474602['targetPosition']['parent'],_0x232f9d=_0x474602['sourcePosition']['parent'],_0x30dc1d=_0x1b480e['getAttribute']('vid_end'),_0x3b28e2=_0x232f9d['getAttribute']('vid_start');_0x1b480e['_setAttribute']('vid_end',_0x232f9d['getAttribute']('vid_end')),_0x232f9d['_setAttribute']('vid_end',_0x30dc1d),this['_touched']['set'](_0x3b28e2,{'userId':_0x5b72b4}),this['_touched']['set'](_0x30dc1d,{'userId':_0x5b72b4}),_0x474602['_execute']();}['_handleSplitOperation'](_0xa38594){const _0x5972d1=null===(_0xa38594=this['_cloneOperation'](_0xa38594,this['_idsRoots']))['_authorId']?null:_0xa38594['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1beda9=_0xa38594['graveyardPosition'],_0x55ab21=_0xa38594['splitPosition']['parent'];_0xa38594['_execute']();const _0xb7c529=_0x55ab21['getAttribute']('vid_end'),_0x1d28ee=_0xa38594['insertionPosition']['nodeAfter'];if(_0x1beda9){const _0x22f50e=_0x1d28ee['getAttribute']('vid_end'),_0xfdc613=_0x55ab21['getAttribute']('vid_end');_0x55ab21['_setAttribute']('vid_end',_0x22f50e),_0x1d28ee['_setAttribute']('vid_end',_0xfdc613),this['_touched']['set'](_0x55ab21['getAttribute']('vid_end'),{'userId':_0x5972d1}),this['_touched']['set'](_0x1d28ee['getAttribute']('vid_start'),{'userId':_0x5972d1});}else{const _0x12e0fe=this['_revisionId']++,_0x1aecb5=this['_revisionId']++;_0x55ab21['_setAttribute']('vid_end',_0x12e0fe),_0x1d28ee['_setAttribute']('vid_start',_0x1aecb5),_0x1d28ee['_setAttribute']('vid_end',_0xb7c529),this['_touched']['set'](_0x12e0fe,{'userId':_0x5972d1}),this['_touched']['set'](_0x1aecb5,{'userId':_0x5972d1});}}['_handleMarkerOperation'](_0x5bbfc8){if(!_0x5bbfc8['affectsData'])return;const _0x529da1=(_0x5bbfc8=this['_cloneOperation'](_0x5bbfc8,this['_diffRoots']))['oldRange']?_0x5bbfc8['oldRange']['root']:null,_0x9c300a=_0x5bbfc8['newRange']?_0x5bbfc8['newRange']['root']:null;_0x529da1&&this['_markers']['delete'](_0x5bbfc8['name']),_0x9c300a&&this['_markers']['set'](_0x5bbfc8['name'],_0x5bbfc8['newRange']['clone']());const _0x6bf86=null===_0x5bbfc8['_authorId']?null:_0x5bbfc8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xbedfbb=_0x5bbfc8['name'];if(!this['_touchedMarkers']['has'](_0xbedfbb))return void this['_touchedMarkers']['set'](_0xbedfbb,{'range':_0x5bbfc8['oldRange'],'userId':_0x6bf86});const _0x50d5aa=this['_touchedMarkers']['get'](_0xbedfbb),_0x113f33=_0x50d5aa['range'],_0x322801=_0x5bbfc8['newRange'];null==_0x113f33&&null==_0x322801||_0x113f33&&_0x322801&&_0x113f33['isEqual'](_0x322801)?this['_touchedMarkers']['delete'](_0x5bbfc8['name']):_0x50d5aa['userId']=_0x6bf86;}['_handleRootOperation'](_0x2a0e5a,_0x3caa8d){this['_diffRoots']['has'](_0x2a0e5a['rootName'])?this['_diffRoots']['get'](_0x2a0e5a['rootName'])['_isAttached']=_0x2a0e5a['isAdd']:(this['_diffRoots']['set'](_0x2a0e5a['rootName'],N(_0x2a0e5a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2a0e5a['rootName'],{}),_0x3caa8d&&this['_idsRoots']['set'](_0x2a0e5a['rootName'],N(_0x2a0e5a['rootName'],!0x0)));const _0x3b28a0=null===_0x2a0e5a['_authorId']?null:_0x2a0e5a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x217e81=this['_touchedRoots']['get'](_0x2a0e5a['rootName']);_0x217e81&&_0x217e81['userId']===_0x3b28a0?this['_touchedRoots']['delete'](_0x2a0e5a['rootName']):this['_touchedRoots']['set'](_0x2a0e5a['rootName'],{'userId':_0x3b28a0,'isAttached':_0x2a0e5a['isAdd']});}['_handleRootAttributeOperation'](_0x3d45dc){const _0x59a8d9=this['_diffRootsAttributes']['get'](_0x3d45dc['root']['rootName']);null===_0x3d45dc['newValue']?delete _0x59a8d9[_0x3d45dc['key']]:_0x59a8d9[_0x3d45dc['key']]=_0x3d45dc['newValue'];}}function x(_0x14312f){const _0x586637=N(_0x14312f['rootName'],_0x14312f['isAttached']());for(const _0xaf85cf of _0x14312f['getChildren']()){const _0x40a1f0=_0xaf85cf['_clone'](!0x0);_0x586637['_appendChild'](_0x40a1f0);}return _0x586637;}function N(_0x1e939d,_0x3635a1=!0x0){const _0x24bd55=new _0x5c4cfd();return _0x24bd55['rootName']=_0x1e939d,_0x24bd55['_isAttached']=_0x3635a1,_0x24bd55['isAttached']=()=>_0x24bd55['_isAttached'],_0x24bd55;}function P(_0x3a829c,_0x563977,_0x108102){const _0x579733='elementEnd'==_0x3a829c['type']?_0x108102['createPositionAt'](_0x3a829c['item'],'end'):_0x108102['createPositionBefore'](_0x3a829c['item']);return _0x108102['createPositionFromPath'](_0x563977,_0x579733['path'],_0x579733['stickiness']);}function V(_0x5a52ce,_0x3b6777,_0x3351b2){const _0x2b2096='elementStart'==_0x5a52ce['type']?_0x3351b2['createPositionAt'](_0x5a52ce['item'],0x0):_0x3351b2['createPositionAfter'](_0x5a52ce['item']);return _0x3351b2['createPositionFromPath'](_0x3b6777,_0x2b2096['path'],_0x2b2096['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x4962d1(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x28a5fa){super(),this['id']=_0x28a5fa['id']||_0xd8dd1b(),this['author']=_0x28a5fa['author'],this['type']=_0x28a5fa['type'],this['data']=_0x28a5fa['data']||{},this['rootName']=_0x28a5fa['rootName'],this['set']('createdAt',_0x28a5fa['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(_0x10374f,_0x42c18f){this['newRevisionId']=_0x10374f,this['oldRevisionId']=_0x42c18f,this['changes']=new _0xb3ffaf();}['_setChanges'](_0x9861f8){for(const _0x1d8021 of _0x9861f8)this['changes']['add'](_0x1d8021);}}class l extends _0x58c668{['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[_0x55c9a7,_0x58fe65,S,$];}constructor(_0x5e4c49){super(_0x5e4c49),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',(_0x13bbed,_0x43a6e9,_0x25b4c6)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x16c20a=>{for(const _0xb3f3f of this['editor']['editing']['view']['document']['roots'])_0x25b4c6?_0x16c20a['removeClass']('ck-editor__editable__overlay',_0xb3f3f):_0x16c20a['addClass']('ck-editor__editable__overlay',_0xb3f3f);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xd6e503=>null!==_0xd6e503),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x530fb4,_0x2a6d4c,_0x6fee8c)=>_0x530fb4&&_0x6fee8c?_0x2a6d4c['changes']['getIndex'](_0x6fee8c):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x251beb,_0x467903)=>_0x251beb?_0x467903['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x58fe65);}['init'](){const _0x41f8d0=this['editor'],_0xc022d4=new ot(_0x41f8d0,{'direction':'backward'}),_0x1aa661=new ot(_0x41f8d0,{'direction':'forward'});(_0x41f8d0['commands']['add']('showPreviousChange',_0xc022d4),_0x41f8d0['commands']['add']('showNextChange',_0x1aa661),_0x41f8d0['commands']['add']('restoreRevision',new nt(_0x41f8d0)),this['on']('change:numberOfChanges',()=>{_0xc022d4['refresh'](),_0x1aa661['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x41f8d0['enableReadOnlyMode']('revision-viewer'),_0x41f8d0['plugins']['has']('WidgetToolbarRepository'))&&_0x41f8d0['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x124b74){return await this['_utils']['loadRevisionData'](_0x124b74,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x124b74);}async['getRevisionRootsAttributes'](_0x478661){return await this['_utils']['loadRevisionData'](_0x478661,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x478661);}async['compare'](_0x519a87,_0x314eaa,_0x2d51fb=!0x1){if(!this['isEnabled'])return;const _0x4aa56c=this['diff'],_0x933f00=this['repository'],_0x462eb2='string'==typeof _0x519a87?_0x933f00['getRevision'](_0x519a87):_0x519a87,_0x5c821a='string'==typeof _0x314eaa?_0x933f00['getRevision'](_0x314eaa):_0x314eaa,_0xdc1209=_0x462eb2['id'],_0x4db93d=_0x5c821a?_0x5c821a['id']:null;if(!_0x2d51fb&&this['diff']&&this['diff']['newRevisionId']===_0xdc1209&&this['diff']['oldRevisionId']===_0x4db93d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0xdc1209,_0x4db93d);const _0x5513b3=this['_getRevisionsRange'](_0x462eb2,_0x5c821a,!0x0)['map'](_0x1c951b=>this['_utils']['loadRevisionData'](_0x1c951b,this['adapter']));return _0x5513b3['push'](new Promise(_0x1b9da0=>{setTimeout(_0x1b9da0,0x14);})),Promise['all'](_0x5513b3)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x264030=this['_getDiff'](_0xdc1209,_0x4db93d);for(const _0x4114bb of _0x264030['changes'])this['_changeIdToChange']['set'](_0x4114bb['id'],_0x4114bb);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x582ffe=>{for(const _0x21e702 of this['editor']['model']['document']['getRootNames']())_0x582ffe['detachRoot'](_0x21e702);for(const _0x4702fe of Object['keys'](_0x264030['model'])){const _0x455c12=_0x582ffe['addRoot'](_0x4702fe);for(const _0x39b130 of Object['keys'](_0x264030['attributes'][_0x4702fe]))_0x582ffe['setAttribute'](_0x39b130,_0x264030['attributes'][_0x4702fe][_0x39b130],_0x455c12);_0x582ffe['insert'](_0x264030['model'][_0x4702fe],_0x455c12,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x264030['changes'])),this['isReady']=!0x0;})['catch'](_0x12610b=>{console['error'](_0x12610b),this['_cleanUp'](),_0x4aa56c&&(this['diff']=_0x4aa56c),this['isReady']=!0x0;});}['addRevisionData'](_0x4be039,_0x3af389){const _0xac89e4=this['repository']['createRevision'](_0x4be039);return _0xac89e4['on']('_update',(_0x387344,_0xdae75c,_0x3deb6e)=>_0x3af389(_0xdae75c,_0x3deb6e,_0xac89e4)),this['repository']['addRevision'](_0xac89e4),_0xac89e4;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3b5149=>{for(const _0x27952f of this['editor']['model']['document']['getRootNames']())_0x3b5149['detachRoot'](_0x27952f);});}['_sortAndFilterDiffChanges'](_0x369dad){const _0x55ae71=[],_0x33998c=new Map();for(const _0x128d34 of this['editor']['model']['document']['getRootNames']()){const _0x42ba6d=this['editor']['editing']['view']['getDomRoot'](_0x128d34);if(!_0x42ba6d)continue;const _0x3f8a24=_0x42ba6d['getClientRects']()['item'](0x0);_0x3f8a24&&(_0x55ae71['push'](_0x128d34),_0x33998c['set'](_0x128d34,_0x3f8a24));}return _0x55ae71['sort']((_0xb39482,_0x50e99c)=>{const _0x5d4c20=_0x33998c['get'](_0xb39482),_0x30cda8=_0x33998c['get'](_0x50e99c);return _0x5d4c20['y']-_0x30cda8['y']||_0x5d4c20['x']-_0x30cda8['x'];}),(_0x369dad=_0x369dad['filter'](_0x36960a=>_0x55ae71['includes'](_0x36960a['rootName'])))['sort']((_0x3d0621,_0x4bee2f)=>_0x55ae71['indexOf'](_0x3d0621['rootName'])-_0x55ae71['indexOf'](_0x4bee2f['rootName'])),_0x369dad;}['_makeTape'](_0x203311){const _0xfca00a=Array['from'](_0x203311['markers'])['filter'](([_0x50c92d,_0x67dcf8])=>_0x50c92d['startsWith']('revision:')&&!_0x67dcf8['isCollapsed']),_0x3ec71b=Array['from'](this['editor']['model']['createRangeIn'](_0x203311)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xfca00a['length'])for(const _0x31955e of _0x3ec71b){const [_0x5cc6d1,_0x5e66be]=_0xfca00a[0x0],[,_0x1ce2a0,_0x28ab06]=_0x5cc6d1['split'](':');if(_0x5e66be['end']['isEqual'](_0x31955e['nextPosition'])&&_0xfca00a['shift'](),(_0x31955e['previousPosition']['isEqual'](_0x5e66be['start'])||_0x31955e['previousPosition']['isAfter'](_0x5e66be['start']))&&('insertion'==_0x1ce2a0?_0x31955e['isAdded']={'userId':_0x28ab06}:'deletion'==_0x1ce2a0&&(_0x31955e['isRemoved']={'userId':_0x28ab06})),0x0==_0xfca00a['length'])break;}return _0x3ec71b;}['_refreshStartEndIndex'](_0x58304f){const _0x252826=new Map();for(let _0x4a6428=0x0;_0x4a6428<_0x58304f['length'];_0x4a6428++)'text'===_0x58304f[_0x4a6428]['type']?(_0x58304f[_0x4a6428]['item']['startIndex']=_0x4a6428,_0x58304f[_0x4a6428]['item']['endIndex']=_0x4a6428):('elementStart'===_0x58304f[_0x4a6428]['type']?_0x58304f[_0x4a6428]['item']['startIndex']=_0x4a6428:'elementEnd'===_0x58304f[_0x4a6428]['type']&&(_0x58304f[_0x4a6428]['item']['endIndex']=_0x4a6428),_0x252826['set'](_0x58304f[_0x4a6428]['id'],_0x4a6428));for(const _0x3002bc of _0x252826['values']())'elementStart'===_0x58304f[_0x3002bc]['type']?_0x58304f[_0x3002bc]['item']['endIndex']=_0x252826['get'](_0x58304f[_0x3002bc]['pairId']):'elementEnd'===_0x58304f[_0x3002bc]['type']&&(_0x58304f[_0x3002bc]['item']['startIndex']=_0x252826['get'](_0x58304f[_0x3002bc]['pairId']));}['_processTape'](_0x3dd3f1){for(let _0x41d37e=0x0;_0x41d37e<_0x3dd3f1['length'];_0x41d37e++){if('elementStart'===_0x3dd3f1[_0x41d37e]['type'])_0x3dd3f1[_0x41d37e]['item']['startIndex']=_0x41d37e;else{if('elementEnd'===_0x3dd3f1[_0x41d37e]['type']){_0x3dd3f1[_0x41d37e]['item']['endIndex']=_0x41d37e;const _0x3d3f26=_0x3dd3f1[_0x41d37e]['item']['startIndex'];_0x3dd3f1[_0x3d3f26]['pairId']=_0x3dd3f1[_0x41d37e]['id'],_0x3dd3f1[_0x41d37e]['pairId']=_0x3dd3f1[_0x3d3f26]['id'];}else _0x3dd3f1[_0x41d37e]['item']['startIndex']=_0x41d37e,_0x3dd3f1[_0x41d37e]['item']['endIndex']=_0x41d37e,_0x3dd3f1[_0x41d37e]['pairId']=null;}_0x3dd3f1[_0x41d37e]['markersStart']||(_0x3dd3f1[_0x41d37e]['markersStart']=[],_0x3dd3f1[_0x41d37e]['markersEnd']=[]);}}['_markInsertions'](_0x3dd934,_0x2130f7){const _0x3f3827=_0x3dd934['filter'](_0x3b6b94=>!_0x3b6b94['isAdded']);for(let _0x28e2b1=0x0;_0x28e2b1<_0x2130f7['length'];_0x28e2b1++)_0x2130f7[_0x28e2b1]['isAdded']&&(_0x3f3827[_0x28e2b1]['isAdded']=_0x2130f7[_0x28e2b1]['isAdded']);}['_getDiff'](_0x5b1b4f,_0x5d3fc5=null){const _0x286af7=this['repository']['getRevision'](_0x5b1b4f),_0x4e6c0f=_0x5d3fc5?this['repository']['getRevision'](_0x5d3fc5):null,_0x23829c=this['_getRevisionsRange'](_0x286af7,_0x4e6c0f),_0x39186a=_0x23829c[_0x23829c['length']-0x1],_0x529b12=new Map(),_0x679a9b={'model':{},'attributes':{},'changes':[]},_0x6893f9=new Set(),_0x10674c=new Map();for(let _0x544447=_0x23829c['length']-0x1;_0x544447>=0x0;_0x544447--){const _0x1819e7=_0x23829c[_0x544447];for(const _0x2cdd53 of Object['keys'](_0x1819e7['diffData']))if(_0x1819e7['diffData'][_0x2cdd53]['attachChange']){const _0x8df62d=_0x1819e7['diffData'][_0x2cdd53]['attachChange'];_0x8df62d['isAttached']?(_0x6893f9['add'](_0x2cdd53),_0x10674c['has'](_0x2cdd53)&&_0x10674c['get'](_0x2cdd53)['userId']==_0x8df62d['userId']?_0x10674c['delete'](_0x2cdd53):_0x10674c['set'](_0x2cdd53,_0x8df62d)):_0x10674c['has'](_0x2cdd53)?(_0x6893f9['delete'](_0x2cdd53),_0x10674c['delete'](_0x2cdd53)):(_0x6893f9['add'](_0x2cdd53),_0x10674c['set'](_0x2cdd53,_0x8df62d));}else _0x6893f9['add'](_0x2cdd53);}for(const _0x286604 of _0x6893f9){const _0x3498c1=_0x10674c['has'](_0x286604)&&!_0x10674c['get'](_0x286604)['isAttached'];let _0x3fc523=_0x3498c1?_0x23829c['length']-0x1:0x0;const _0xaef10a=_0x3498c1?-0x1:0x1;for(;_0x23829c[_0x3fc523];){const _0x301b61=_0x23829c[_0x3fc523];if(_0x301b61['diffData'][_0x286604]){const _0x5b74ea=_0x3498c1?_0x301b61['diffData'][_0x286604]['attributesBefore']:_0x301b61['diffData'][_0x286604]['attributesAfter'];_0x679a9b['attributes'][_0x286604]=_0x5b74ea?_0x42d2a8(_0x5b74ea):{};break;}_0x3fc523+=_0xaef10a;}}for(const _0x553ea9 of _0x23829c){_0x553ea9['model']={};for(const _0x20e216 of _0x553ea9['authors'])_0x529b12['set'](_0x20e216['id'],_0x20e216);for(const _0x501491 of _0x6893f9){const _0x47b802=_0x553ea9['diffData'][_0x501491]?_0x553ea9['diffData'][_0x501491]['insertions']:'[]',_0x2bf043=_0x553ea9['diffData'][_0x501491]?_0x553ea9['diffData'][_0x501491]['deletions']:'[]';_0x553ea9['model'][_0x501491]={'insertions':this['_utils']['_makeModelFromViewString'](_0x47b802),'deletions':this['_utils']['_makeModelFromViewString'](_0x2bf043)};}}for(const _0x135ea9 of _0x6893f9){let _0x129962=null,_0x5e1c02=0x0;const _0x18b8d4=new Map(Array['from'](_0x286af7['model'][_0x135ea9]['insertions']['markers'])['filter'](([_0x23e11a])=>!_0x23e11a['startsWith']('revision:')));let _0x304534=0x0;for(const _0x19a28a of _0x23829c){const _0x4ede6a=this['_makeTape'](_0x19a28a['model'][_0x135ea9]['insertions']);_0x19a28a==_0x286af7?(_0x129962=_0x4ede6a,_0x5e1c02=_0x129962['length'],_0x129962['forEach'](_0x4c3a29=>{_0x4c3a29['id']=_0x304534++;}),this['_processTape'](_0x129962)):this['_markInsertions'](_0x129962,_0x4ede6a);const _0x463316=_0x129962['filter'](_0x402bfa=>!_0x402bfa['isAdded'])['map'](_0xfe5b64=>_0xfe5b64['id']);let _0x5f0965=0x0;const _0x19aaca=this['_makeTape'](_0x19a28a['model'][_0x135ea9]['deletions']);_0x19aaca['forEach'](_0x35df0b=>{_0x35df0b['isRemoved']?_0x35df0b['id']=_0x5e1c02++:_0x35df0b['id']=_0x463316[_0x5f0965++];}),this['_processTape'](_0x19aaca),this['_setDistance'](_0x129962,'isAdded'),this['_setDistance'](_0x19aaca,'isRemoved'),_0x19a28a==_0x286af7&&this['_markMarkers'](_0x129962,_0x18b8d4),_0x129962=this['_joinTapes'](_0x129962,_0x19aaca),this['_refreshStartEndIndex'](_0x129962),this['_setDistance'](_0x129962,'isRemoved');}_0x129962=_0x129962['filter'](_0x1e3b9e=>!(_0x1e3b9e['isAdded']&&_0x1e3b9e['isRemoved']));const _0x4fbd06=new Map(_0x39186a['model'][_0x135ea9]['deletions']['markers']),_0x4de152=new Set(_0x18b8d4['keys']());for(const _0x439ab2 of _0x4fbd06['keys']())_0x4de152['delete'](_0x439ab2);this['_markSuggestions'](_0x129962,_0x4de152),this['_fixObsoleteTags'](_0x129962),_0x129962=this['_removeMissingPairs'](_0x129962),_0x129962=this['_markMismatchedRemovedTags'](_0x129962),_0x129962=this['_removeUnsupportedChanges'](_0x129962);const {root:_0x119e8a,changes:_0x19d6c8}=this['_makeModelFromTape'](_0x129962,_0x529b12,_0x135ea9);_0x679a9b['model'][_0x135ea9]=_0x119e8a;const _0x4c5167=_0x10674c['get'](_0x135ea9);if(_0x4c5167){const _0x100494=_0x529b12['get'](_0x4c5167['userId']),_0x937fcf=new G({'author':_0x100494,'type':_0x4c5167['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x135ea9});_0x19d6c8['unshift'](_0x937fcf),_0x679a9b['attributes'][_0x135ea9]['revisionHistoryAttachChange']=_0x937fcf['id'];}_0x679a9b['changes']=_0x679a9b['changes']['concat'](_0x19d6c8);}return _0x679a9b;}['_markMarkers'](_0x15db4f,_0x25cd65){for(let _0x37657c=0x0;_0x37657c<_0x15db4f['length'];_0x37657c++)for(const [_0x3a1e8f,_0x24b48b]of _0x25cd65)!_0x24b48b['isCollapsed']&&_0x24b48b['start']['isEqual'](_0x15db4f[_0x37657c]['previousPosition'])&&_0x15db4f[_0x37657c]['markersStart']['push'](_0x3a1e8f),_0x24b48b['end']['isEqual'](_0x15db4f[_0x37657c]['nextPosition'])&&_0x15db4f[_0x37657c]['markersEnd']['push'](_0x3a1e8f);}['_joinTapes'](_0x4fe640,_0x246efb){let _0x28988e=[],_0x42aec2=0x0,_0x40c274=0x0;for(;_0x42aec2<_0x4fe640['length']||_0x40c274<_0x246efb['length'];){const _0x549423=_0x4fe640[_0x42aec2]||{},_0x5b572f=_0x246efb[_0x40c274]||{};if(_0x549423['id']==_0x5b572f['id'])_0x42aec2++,_0x40c274++,_0x28988e['push'](_0x549423);else{if(_0x5b572f['isRemoved']&&_0x549423['isAdded']){const {commonTape:_0x430bb5,iEnd:_0x161fdf,jEnd:_0x5a00c7}=this['_threeWayMerge'](_0x4fe640,_0x42aec2,_0x246efb,_0x40c274);_0x28988e=_0x28988e['concat'](_0x430bb5),_0x42aec2=_0x161fdf,_0x40c274=_0x5a00c7;}else _0x5b572f['isRemoved']?(_0x40c274++,_0x28988e['push'](_0x5b572f)):(_0x42aec2++,_0x28988e['push'](_0x549423));}}return _0x28988e;}['_markSuggestions'](_0x3304c9,_0x47ce77){const _0x4b857e=[];for(let _0xce170b=0x0;_0xce170b<_0x3304c9['length'];_0xce170b++){for(let _0x42d576=0x0;_0x42d576<_0x3304c9[_0xce170b]['markersStart']['length'];_0x42d576++){const _0x57ac30=_0x3304c9[_0xce170b]['markersStart'][_0x42d576];if(!_0x47ce77['has'](_0x57ac30))continue;const {group:_0x1cc965,type:_0x2742af,authorId:_0x4f3ae6}=_0x37d2c2(_0x57ac30);'revision-suggestion'!=_0x1cc965||'insertion'!=_0x2742af&&'deletion'!=_0x2742af||(_0x4b857e['unshift']({'type':_0x2742af,'name':_0x57ac30,'userId':_0x4f3ae6}),_0x3304c9[_0xce170b]['markersStart']['splice'](_0x42d576,0x1),_0x42d576--);}_0x4554e9(_0x3304c9[_0xce170b]);for(let _0x5a9947=0x0;_0x5a9947<_0x3304c9[_0xce170b]['markersEnd']['length'];_0x5a9947++){const _0x3b538c=_0x3304c9[_0xce170b]['markersEnd'][_0x5a9947];if(!_0x47ce77['has'](_0x3b538c))continue;const {group:_0x5db80d,type:_0x29ad70}=_0x37d2c2(_0x3b538c);if('revision-suggestion'!=_0x5db80d||'insertion'!=_0x29ad70&&'deletion'!=_0x29ad70)continue;_0x3304c9[_0xce170b]['markersEnd']['splice'](_0x5a9947,0x1),_0x5a9947--;const _0x3afdb6=_0x4b857e['findIndex'](_0x49fc29=>_0x49fc29['name']==_0x3b538c);_0x3afdb6>-0x1&&_0x4b857e['splice'](_0x3afdb6,0x1);}}function _0x37d2c2(_0xcbd8ee){const _0x2ea6f9=_0xcbd8ee['split'](':');return{'group':_0x2ea6f9[0x0],'type':_0x2ea6f9[0x1],'subType':_0x2ea6f9['length']>=0x5?_0x2ea6f9[0x2]:null,'id':_0x2ea6f9['length']<0x5?_0x2ea6f9[0x2]:_0x2ea6f9[0x3],'authorId':_0x2ea6f9['length']<0x5?_0x2ea6f9[0x3]:_0x2ea6f9[0x4],'markerCount':0x6==_0x2ea6f9['length']?_0x2ea6f9[0x5]:null};}function _0x4554e9(_0x57fe26){for(let _0x53a1e3=0x0;_0x53a1e3<_0x4b857e['length'];_0x53a1e3++){if(_0x57fe26['isAdded']&&'insertion'==_0x4b857e[_0x53a1e3]['type']&&_0x57fe26['isAdded']['userId']==_0x4b857e[_0x53a1e3]['userId'])return _0x57fe26['isAddSuggestion']=_0x4b857e[_0x53a1e3],void delete _0x57fe26['isAdded'];if(!_0x57fe26['isAdded']&&!_0x57fe26['isRemoved']&&'deletion'==_0x4b857e[_0x53a1e3]['type'])return void(_0x57fe26['isRemoveSuggestion']=_0x4b857e[_0x53a1e3]);}}}['_setDistance'](_0x15e24a,_0x4300f6){let _0x5add01=0x0,_0x4d0bf4=!0x1;const _0x1a0edf=new Map();for(const _0x32eec6 of _0x15e24a)_0x32eec6[_0x4300f6]?_0x4d0bf4&&(_0x5add01++,_0x4d0bf4=!0x1):(_0x5add01++,_0x4d0bf4=!0x0),_0x1a0edf['set'](_0x32eec6['id'],_0x5add01);for(let _0x447143=0x0;_0x447143<_0x15e24a['length'];_0x447143++){if('isRemoved'==_0x4300f6&&_0x15e24a[_0x447143]['isAdded']||'isAdded'==_0x4300f6&&_0x15e24a[_0x447143]['isRemoved'])continue;if('text'==_0x15e24a[_0x447143]['type']){_0x15e24a[_0x447143]['distance']=0x0;continue;}const _0x5973e9=_0x1a0edf['get'](_0x15e24a[_0x447143]['pairId']),_0x156a59=_0x1a0edf['get'](_0x15e24a[_0x447143]['id']);_0x15e24a[_0x447143]['distance']=_0x5973e9-_0x156a59;}}['_getRevisionsRange'](_0x331b64,_0x41be61,_0x165181=!0x1){const _0x281112=[];let _0x5d0d5e=this['repository']['getIndex'](_0x331b64),_0x5464e3=this['repository']['getIndex'](_0x41be61);for(-0x1==_0x5464e3&&(_0x5464e3=this['repository']['_revisions']['length'],_0x165181=!0x1);_0x5d0d5e<_0x5464e3;)_0x281112['push'](this['repository']['getRevision'](_0x5d0d5e)),_0x5d0d5e++;return _0x165181&&_0x281112['push'](this['repository']['getRevision'](_0x5d0d5e)),_0x281112;}['_threeWayMerge'](_0x10cdd7,_0x11c554,_0x3ba66a,_0x23a0bf){const _0x385ce6=this['editor']['model']['schema'];let _0x5da83e=_0x11c554;for(;_0x10cdd7[_0x5da83e]&&_0x10cdd7[_0x5da83e]['isAdded'];)_0x5da83e++;let _0x2784d0=_0x23a0bf;for(;_0x3ba66a[_0x2784d0]&&_0x3ba66a[_0x2784d0]['isRemoved'];)_0x2784d0++;_0xccdece(_0x10cdd7,_0x11c554,_0x5da83e),_0xccdece(_0x3ba66a,_0x23a0bf,_0x2784d0);const _0x3fdbcd=_0x3ba66a['slice'](_0x23a0bf,_0x2784d0)['concat'](_0x10cdd7['slice'](_0x11c554,_0x5da83e));return _0x3fdbcd['sort']((_0x202bcf,_0x46a2c6)=>_0x202bcf['side']!=_0x46a2c6['side']?_0x202bcf['side']-_0x46a2c6['side']:_0x202bcf['level']!=_0x46a2c6['level']?_0x202bcf['level']-_0x46a2c6['level']:_0x202bcf['distance']!=_0x46a2c6['distance']?_0x46a2c6['distance']-_0x202bcf['distance']:!!_0x202bcf['isAdded']!=!!_0x46a2c6['isAdded']?-0x1==_0x202bcf['side']||0x0==_0x202bcf['side']?_0x202bcf['isAdded']?-0x1:0x1:_0x202bcf['isAdded']?0x1:-0x1:_0x202bcf['index']-_0x46a2c6['index']),{'commonTape':_0x3fdbcd,'iEnd':_0x5da83e,'jEnd':_0x2784d0};function _0xccdece(_0x4ece48,_0x207cc5,_0x844795){let _0x1d38f3=-0x1,_0x25d023=Number['POSITIVE_INFINITY'],_0x1f4de4=!0x0;for(let _0x120816=_0x207cc5;_0x120816<_0x844795;_0x120816++)if(_0x385ce6['isInline'](_0x4ece48[_0x120816]['item'])||(_0x1f4de4=!0x1),_0x4ece48[_0x120816]['item']['startIndex']<_0x207cc5&&(_0x1d38f3=_0x120816),_0x4ece48[_0x120816]['item']['endIndex']>=_0x844795){_0x25d023=_0x120816;break;}_0x1f4de4&&(_0x1d38f3=_0x844795-0x1);for(let _0x1d57ed=_0x207cc5;_0x1d57ed<_0x844795;_0x1d57ed++)_0x4ece48[_0x1d57ed]['side']=_0x1d57ed<=_0x1d38f3?-0x1:_0x1d57ed<_0x25d023?0x0:0x1,_0x4ece48[_0x1d57ed]['index']=_0x1d57ed;let _0x5c20f8=0x0;for(let _0x560d52=_0x207cc5;_0x560d52<=_0x1d38f3;_0x560d52++)0x0==_0x4ece48[_0x560d52]['distance']?_0x4ece48[_0x560d52]['level']=_0x5c20f8:(_0x5c20f8++,_0x4ece48[_0x560d52]['level']=_0x5c20f8,_0x5c20f8++);for(let _0xb28b47=_0x207cc5;_0xb28b47<_0x844795;_0xb28b47++)0x0==_0x4ece48[_0xb28b47]['side']&&(_0x4ece48[_0xb28b47]['level']=_0x5c20f8);_0x5c20f8=0x0;for(let _0x2f3e84=_0x844795-0x1;_0x2f3e84>=_0x25d023;_0x2f3e84--)0x0==_0x4ece48[_0x2f3e84]['distance']?_0x4ece48[_0x2f3e84]['level']=_0x5c20f8:(_0x5c20f8--,_0x4ece48[_0x2f3e84]['level']=_0x5c20f8,_0x5c20f8--);}}['_fixObsoleteTags'](_0x27a226){const _0x3311a7=new Map(),_0x540c9d=this['editor']['model']['schema'];for(let _0x5f563d=0x1;_0x5f563d<_0x27a226['length'];_0x5f563d++){let _0x23a2b1,_0x569304,_0x107288;const _0x15bff1=_0x27a226[_0x5f563d],_0x2a192c=_0x27a226[_0x5f563d-0x1];if('text'==_0x15bff1['type'])continue;if(_0x15bff1['type']!=_0x2a192c['type'])continue;if(!_0x540c9d['isBlock'](_0x2a192c['item'])||_0x540c9d['isLimit'](_0x2a192c['item']))continue;if(!_0x540c9d['isBlock'](_0x15bff1['item'])||_0x540c9d['isLimit'](_0x15bff1['item']))continue;if((_0x27a226[_0x5f563d]['isAdded']||_0x27a226[_0x5f563d]['isAddSuggestion'])&&_0x27a226[_0x5f563d-0x1]['isRemoved'])_0x23a2b1=_0x27a226[_0x5f563d],_0x569304=_0x27a226[_0x5f563d-0x1],_0x107288=_0x5f563d-0x1;else{if(!_0x27a226[_0x5f563d]['isRemoved']||!_0x27a226[_0x5f563d-0x1]['isAdded']&&!_0x27a226[_0x5f563d-0x1]['isAddSuggestion'])continue;_0x23a2b1=_0x27a226[_0x5f563d-0x1],_0x569304=_0x27a226[_0x5f563d],_0x107288=_0x5f563d;}const _0x2801a0=_0x23a2b1['level']==_0x569304['level'],_0x3758c5=Math['abs'](_0x23a2b1['level'])<Math['abs'](_0x569304['level'])&&0x0==_0x569304['distance'];(_0x2801a0||_0x3758c5)&&(_0x3311a7['set'](_0x569304['id'],_0x23a2b1['id']),_0x27a226['splice'](_0x107288,0x1),_0x5f563d--,_0x23a2b1['isAdded']=!0x1);}for(let _0x3e9e83=0x0;_0x3e9e83<_0x27a226['length'];_0x3e9e83++)_0x3311a7['has'](_0x27a226[_0x3e9e83]['pairId'])&&(_0x27a226[_0x3e9e83]['pairId']=_0x3311a7['get'](_0x27a226[_0x3e9e83]['pairId']));}['_removeMissingPairs'](_0x117c9e){const _0x18bb7a=new Set(_0x117c9e['map'](_0x435b39=>_0x435b39['id']));for(let _0x4e037b=0x0;_0x4e037b<_0x117c9e['length'];_0x4e037b++)_0x18bb7a['has'](_0x117c9e[_0x4e037b]['pairId'])||0x0==_0x117c9e[_0x4e037b]['distance']||(_0x117c9e[_0x4e037b]['isIncorrect']=!0x0);return _0x117c9e['filter'](_0x2d2ad5=>!_0x2d2ad5['isIncorrect']);}['_markMismatchedRemovedTags'](_0xdd02d7){const _0x21002c=new Set();for(let _0x4b3e7a=0x0;_0x4b3e7a<_0xdd02d7['length'];_0x4b3e7a++){if(_0x21002c['has'](_0xdd02d7[_0x4b3e7a]['id'])&&_0xdd02d7[_0x4b3e7a]['isRemoved']&&(_0xdd02d7[_0x4b3e7a]['isIncorrect']=!0x0),_0xdd02d7[_0x4b3e7a]['isIncorrect'])continue;if(0x0==_0xdd02d7[_0x4b3e7a]['distance'])continue;if('elementStart'!=_0xdd02d7[_0x4b3e7a]['type'])continue;if(null==_0xdd02d7[_0x4b3e7a]['pairId'])continue;let _0x31b88a=_0x4b3e7a+0x1,_0x4ac93b=0x0;for(;_0xdd02d7[_0x31b88a]['id']!=_0xdd02d7[_0x4b3e7a]['pairId'];)'elementStart'==_0xdd02d7[_0x31b88a]['type']?_0x4ac93b++:'elementEnd'==_0xdd02d7[_0x31b88a]['type']&&_0x4ac93b--,_0x31b88a++;if(0x0!=_0x4ac93b){if(_0xdd02d7[_0x4b3e7a]['isRemoved'])_0xdd02d7[_0x4b3e7a]['isIncorrect']=!0x0;else{for(;_0x31b88a!=_0x4b3e7a;)_0xdd02d7[_0x31b88a]['isRemoved']&&0x0!=_0xdd02d7[_0x31b88a]['distance']&&(_0xdd02d7[_0x31b88a]['isIncorrect']=!0x0,_0x21002c['add'](_0xdd02d7[_0x31b88a]['pairId'])),_0x31b88a--;}}}return _0xdd02d7['filter'](_0x3f51ff=>!_0x3f51ff['isIncorrect']);}['_removeUnsupportedChanges'](_0x36a664){const _0x5a4c6a=this['editor']['model']['schema'];for(let _0x1343b9=0x0;_0x1343b9<_0x36a664['length'];_0x1343b9++){if(!(_0x36a664[_0x1343b9]['isAdded']||_0x36a664[_0x1343b9]['isAddSuggestion']||_0x36a664[_0x1343b9]['isRemoved']||_0x36a664[_0x1343b9]['isRemoveSuggestion']))continue;if(0x0==_0x36a664[_0x1343b9]['distance'])continue;const _0x4ba68e=_0x36a664[_0x1343b9]['item'];_0x5a4c6a['isBlock'](_0x4ba68e)||_0x5a4c6a['isLimit'](_0x4ba68e)||(_0x36a664[_0x1343b9]['isAdded']&&delete _0x36a664[_0x1343b9]['isAdded'],_0x36a664[_0x1343b9]['isAddSuggestion']&&delete _0x36a664[_0x1343b9]['isAddSuggestion'],_0x36a664[_0x1343b9]['isRemoveSuggestion']&&delete _0x36a664[_0x1343b9]['isRemoveSuggestion'],_0x36a664[_0x1343b9]['isRemoved']&&(_0x36a664[_0x1343b9]['isIncorrect']=!0x0));}return _0x36a664['filter'](_0x5c454b=>!_0x5c454b['isIncorrect']);}['_makeModelFromTape'](_0x489105,_0x1688a7,_0x3940f6){const _0x2fc6f3=new _0x5c4cfd(),_0x12e7f0=[],_0x5652fa=new Map(),_0x58aca7=this['editor']['model'],_0x2e7ad1=_0x58aca7['schema'],_0x3b8874=[_0x2fc6f3],_0x1891e4={},_0x215dea={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x453f64=null;const _0x596d5c=[0x0];for(let _0x148dd4=0x0;_0x148dd4<_0x489105['length'];_0x148dd4++)if('elementStart'===_0x489105[_0x148dd4]['type']){_0x489105[_0x148dd4]['previousPosition']=_0x58aca7['createPositionFromPath'](_0x2fc6f3,_0x596d5c);const _0xf634d5=new _0x7cb355(_0x489105[_0x148dd4]['item']['name'],_0x489105[_0x148dd4]['item']['getAttributes']());_0x3b8874[0x0]['_appendChild'](_0xf634d5),_0x596d5c['push'](0x0),_0x3b8874['unshift'](_0xf634d5),_0x489105[_0x148dd4]['nextPosition']=_0x58aca7['createPositionFromPath'](_0x2fc6f3,_0x596d5c);}else'elementEnd'===_0x489105[_0x148dd4]['type']?(_0x3b8874['shift'](),_0x489105[_0x148dd4]['previousPosition']=_0x58aca7['createPositionFromPath'](_0x2fc6f3,_0x596d5c),_0x596d5c['pop'](),_0x596d5c[_0x596d5c['length']-0x1]++,_0x489105[_0x148dd4]['nextPosition']=_0x58aca7['createPositionFromPath'](_0x2fc6f3,_0x596d5c)):(_0x489105[_0x148dd4]['previousPosition']=_0x58aca7['createPositionFromPath'](_0x2fc6f3,_0x596d5c),_0x453f64?_0x453f64['_data']+=_0x489105[_0x148dd4]['item']['data']:_0x453f64=new _0x56fb43(_0x489105[_0x148dd4]['item']['data'],_0x489105[_0x148dd4]['item']['getAttributes']()),_0x489105[_0x148dd4+0x1]&&'text'===_0x489105[_0x148dd4+0x1]['type']&&_0x212d5f(_0x453f64,_0x489105[_0x148dd4+0x1]['item'])||(_0x3b8874[0x0]['_appendChild'](_0x453f64),_0x453f64=null),_0x596d5c[_0x596d5c['length']-0x1]+=_0x489105[_0x148dd4]['item']['offsetSize'],_0x489105[_0x148dd4]['nextPosition']=_0x58aca7['createPositionFromPath'](_0x2fc6f3,_0x596d5c));for(let _0x3609a0=0x0;_0x3609a0<_0x489105['length'];_0x3609a0++){const _0x35dd23=_0x489105[_0x3609a0]['previousPosition'],_0x4bb17f=_0x489105[_0x3609a0]['nextPosition'];for(const _0x563163 of _0x489105[_0x3609a0]['markersStart'])_0x5652fa['set'](_0x563163,{'start':_0x35dd23,'end':null});_0x2c8ea3('isRemoveSuggestion',_0x3609a0,_0x35dd23,_0x4bb17f),_0x2c8ea3('isAddSuggestion',_0x3609a0,_0x35dd23,_0x4bb17f),_0x2c8ea3('isRemoved',_0x3609a0,_0x35dd23,_0x4bb17f),_0x2c8ea3('isAdded',_0x3609a0,_0x35dd23,_0x4bb17f);for(const _0x39f3b6 of _0x489105[_0x3609a0]['markersEnd']){const _0x1106ea=_0x5652fa['get'](_0x39f3b6);_0x1106ea?_0x1106ea['end']=_0x4bb17f:_0x5652fa['set'](_0x39f3b6,{'start':_0x4bb17f,'end':_0x4bb17f});}}for(const [_0x1a622a,_0x4f5f2e]of _0x5652fa){const _0x5d8481=this['editor']['model']['createRange'](_0x4f5f2e['start'],_0x4f5f2e['end']);_0x2fc6f3['markers']['set'](_0x1a622a,_0x5d8481);}return _0x12e7f0['sort']((_0x3f0d29,_0x36d04e)=>{const _0x49161e=_0x2fc6f3['markers']['get']('revision:'+_0x3f0d29['id']),_0x3acc88=_0x2fc6f3['markers']['get']('revision:'+_0x36d04e['id']);return _0x49161e['start']['isBefore'](_0x3acc88['start'])?-0x1:_0x49161e['start']['isAfter'](_0x3acc88['start'])?0x1:_0x49161e['end']['isBefore'](_0x3acc88['end'])?-0x1:_0x49161e['end']['isAfter'](_0x3acc88['end'])?0x1:'add'===_0x3f0d29['type']?-0x1:0x1;}),{'root':_0x2fc6f3,'changes':_0x12e7f0};function _0x2c8ea3(_0x2b064d,_0x62b5b8,_0x202e2c,_0x4ba717){const _0x1dc862=!!_0x489105[_0x62b5b8][_0x2b064d],_0x42b54a=_0x1dc862?_0x489105[_0x62b5b8][_0x2b064d]['userId']:null,_0x206930=_0x62b5b8===_0x489105['length']-0x1,_0x14046b=_0x215dea[_0x2b064d][0x0],_0x401be7=_0x2e7ad1['isObject'](_0x489105[_0x62b5b8]['item']);!_0x1891e4[_0x2b064d]&&_0x1dc862?_0x1891e4[_0x2b064d]={'start':_0x202e2c,'tapeItem':_0x489105[_0x62b5b8],'userId':_0x42b54a,'type':_0x2b064d}:_0x1891e4[_0x2b064d]&&!_0x1dc862?(_0x1891e4[_0x2b064d]['end']=_0x202e2c,_0x5090b1(_0x1891e4[_0x2b064d]),_0x1891e4[_0x2b064d]=null):_0x1891e4[_0x2b064d]&&_0x1dc862&&_0x1891e4[_0x2b064d]['userId']!==_0x42b54a&&(_0x1891e4[_0x2b064d]['end']=_0x202e2c,_0x14046b&&_0x14046b['userId']===_0x1891e4[_0x2b064d]['userId']||_0x5090b1(_0x1891e4[_0x2b064d]),_0x1891e4[_0x2b064d]={'start':_0x202e2c,'tapeItem':_0x489105[_0x62b5b8],'userId':_0x42b54a,'type':_0x2b064d}),_0x1891e4[_0x2b064d]&&_0x401be7&&('elementStart'!==_0x489105[_0x62b5b8]['type']||_0x14046b&&_0x14046b['userId']===_0x42b54a||_0x215dea[_0x2b064d]['unshift']({'userId':_0x42b54a,'object':_0x489105[_0x62b5b8]['item'],'change':_0x1891e4[_0x2b064d]}),'elementEnd'===_0x489105[_0x62b5b8]['type']&&_0x14046b&&_0x14046b['object']===_0x489105[_0x62b5b8]['item']&&(_0x215dea[_0x2b064d]['shift'](),_0x1891e4[_0x2b064d]=_0x14046b['change'])),_0x1891e4[_0x2b064d]&&_0x206930&&(_0x1891e4[_0x2b064d]['end']=_0x4ba717,_0x5090b1(_0x1891e4[_0x2b064d]),_0x1891e4[_0x2b064d]=null);}function _0x5090b1({start:_0x639de5,end:_0x2434b0,tapeItem:_0x40e0b0,userId:_0x5b4ed0,type:_0x357b47}){const _0x37a62c=_0x40e0b0['item'],_0x452cb1=_0x58aca7['schema']['isBlock'](_0x37a62c)&&!_0x58aca7['schema']['isLimit'](_0x37a62c),_0x537fc0=_0x639de5['nodeAfter']==_0x2434b0['parent']&&_0x2434b0['isAtStart'];if(_0x452cb1&&_0x537fc0)return;const _0x21497c=_0x58aca7['createRange'](_0x639de5,_0x2434b0),_0x10649c=_0x1688a7['get'](_0x5b4ed0),_0x1b982b=new G({'author':_0x10649c,'type':'isAdded'==_0x357b47||'isAddSuggestion'==_0x357b47?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x357b47||'isRemoveSuggestion'==_0x357b47},'createdAt':new Date(),'rootName':_0x3940f6});_0x12e7f0['push'](_0x1b982b),_0x2fc6f3['markers']['set']('revision:'+_0x1b982b['id'],_0x21497c);}function _0x212d5f(_0x21bf5a,_0xa17679){const _0x2722b9=_0x21bf5a['getAttributes'](),_0x114edc=_0xa17679['getAttributes']();for(const _0x3642ab of _0x2722b9){if(_0x3642ab[0x1]!==_0xa17679['getAttribute'](_0x3642ab[0x0]))return!0x1;_0x114edc['next']();}return _0x114edc['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1219a6=>{const _0x4dff33=_0x1219a6['markerName']['split'](':')[0x1],_0x4b01bb=this['_getChangeFromId'](_0x4dff33);if(!_0x4b01bb)return null;const _0x4d05c9='add'==_0x4b01bb['type']?'insertion':'deletion',_0x18963c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4d05c9];return _0x4b01bb['data']['isSuggestion']&&_0x18963c['push']('ck-suggestion-marker-'+_0x4d05c9+'-new'),this['activeChange']==_0x4b01bb&&_0x18963c['push']('ck-suggestion-marker--active'),{'classes':_0x18963c,'attributes':{'data-change-id':_0x4dff33}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x7b1e51=>{_0x7b1e51['on']('element:pre',(_0x1a3897,_0x2c307a,_0x12f514)=>{const _0x3e3ecd=_0x2c307a['viewItem']['getChild'](0x0);if(!_0x3e3ecd||!_0x3e3ecd['is']('element','code'))return;if(!_0x12f514['consumable']['consume'](_0x3e3ecd,{'attributes':['vid_start','vid_end']}))return;const _0x4b0b29=_0x2c307a['modelRange']['start']['nodeAfter'];_0x12f514['writer']['setAttribute']('vid_start',_0x3e3ecd['getAttribute']('vid_start'),_0x4b0b29),_0x12f514['writer']['setAttribute']('vid_end',_0x3e3ecd['getAttribute']('vid_end'),_0x4b0b29);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xb55095=>{_0xb55095['on']('element',(_0x2838a8,_0x16a6ad,_0x2ab010)=>{if(!_0x2ab010['consumable']['consume'](_0x16a6ad['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x16a6ad['modelRange']['isCollapsed'])return;const _0x30b9f0=_0x16a6ad['modelRange']['start']['nodeAfter'];_0x30b9f0['hasAttribute']('vid_start')||_0x30b9f0['hasAttribute']('vid')||(_0x2ab010['writer']['setAttribute']('vid_start',_0x16a6ad['viewItem']['getAttribute']('vid_start'),_0x30b9f0),_0x2ab010['writer']['setAttribute']('vid_end',_0x16a6ad['viewItem']['getAttribute']('vid_end'),_0x30b9f0));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4d7250=>_0x4d7250['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2e1eed,[,_0x5607fa])=>{['vid_start','vid_end','vid']['includes'](_0x5607fa)&&(_0x2e1eed['return']=!0x0,_0x2e1eed['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3a60ce=>{_0x3a60ce['on']('attribute:vid',(_0x301ef4,_0x2b1307,_0xbfdcf5)=>{if('\x20'!=_0x2b1307['item']['data']||_0x2b1307['item']['parent']['maxOffset']>0x1)return;if(!_0xbfdcf5['consumable']['consume'](_0x2b1307['item'],_0x301ef4['name']))return;const _0x12c2d7=_0xbfdcf5['writer'],_0x773902=_0xbfdcf5['mapper']['toViewRange'](_0x2b1307['range']);_0x12c2d7['wrap'](_0x773902,_0x12c2d7['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3cc726){const _0x1917ed=_0x3cc726['plugins']['get']('RevisionViewer');return(_0x3af09c,_0x4e4875,_0x4e4b0e)=>{const _0x902f8=_0x4e4875['markerName']['split'](':')[0x1],_0x20cb4b=_0x1917ed['_getChangeFromId'](_0x902f8);if(!_0x20cb4b)return null;const _0x3638b='add'==_0x20cb4b['type']?'split':'merge';if(!_0x4e4b0e['consumable']['test'](_0x4e4875['markerRange'],_0x3af09c['name']))return;const _0x1d11f8=_0x4e4875['markerRange']['getWalker'](),_0x347d29=_0x4e4875['markerRange']['start'],_0x4464af=_0x3cc726['model']['schema'];let _0x2d6e8a=null,_0x343e16=null,_0x42b961=!0x1,_0x3d1960=!0x1;for(const _0x218dfa of _0x1d11f8){const _0x1e9b49=_0x218dfa['item'];_0x42b961=_0x42b961||_0x4464af['isContent'](_0x1e9b49);const _0x5a6b8e=_0x4e4b0e['mapper']['toViewElement'](_0x1e9b49);if(_0x5a6b8e&&_0x5a6b8e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x218dfa['type']&&(_0x4464af['isBlock'](_0x1e9b49)&&!_0x4464af['isLimit'](_0x1e9b49)&&(_0x1e9b49['nextSibling']||_0x347d29['isAtEnd']?_0x2d6e8a&&_0x2d6e8a['parent']==_0x1e9b49||(_0x2d6e8a=_0x1e9b49,_0x5ee789(_0x218dfa['previousPosition']),_0x3d1960=!0x0):_0x343e16=_0x343e16||_0x218dfa['previousPosition']));}function _0x5ee789(_0x1f6b9a){const _0x3041e3=_0x4e4b0e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3638b}),_0x30816a=_0x4e4b0e['mapper']['toViewPosition'](_0x1f6b9a);_0x20cb4b['data']['isSuggestion']&&_0x4e4b0e['writer']['addClass']('ck-suggestion-marker-'+_0x3638b+'-new',_0x3041e3),_0x1917ed['activeChange']==_0x20cb4b&&_0x4e4b0e['writer']['addClass']('ck-suggestion-marker--active',_0x3041e3),_0x4e4b0e['writer']['insert'](_0x30816a,_0x3041e3),_0x4e4b0e['mapper']['bindElementToMarker'](_0x3041e3,_0x4e4875['markerName']);}_0x42b961||_0x3d1960||!_0x343e16||_0x5ee789(_0x343e16);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4aeff4,_0x32176c,_0x247ec2)=>{const _0x2a5a61=_0x247ec2['mapper']['markerNameToElements'](_0x32176c['markerName']);if(_0x2a5a61){for(const _0x39cebd of _0x2a5a61)(_0x39cebd['hasClass']('ck-suggestion-marker-split')||_0x39cebd['hasClass']('ck-suggestion-marker-merge'))&&(_0x247ec2['mapper']['unbindElementFromMarkerName'](_0x39cebd,_0x32176c['markerName']),_0x247ec2['writer']['remove'](_0x39cebd));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2ca3dc,_0x2fc67d,_0x54ab9b)=>{const _0x482a20=_0x2fc67d['markerName']['split'](':')[0x1],_0x519ca3=this['_getChangeFromId'](_0x482a20);if(!_0x519ca3)return null;const _0x4a5701='add'==_0x519ca3['type']?'split':'merge';if(_0x54ab9b['consumable']['test'](_0x2fc67d['markerRange'],_0x2ca3dc['name']))for(const _0x19cdc0 of _0x2fc67d['markerRange']['getItems']()){if(!_0x19cdc0['is']('element','softBreak'))continue;const _0x26cb20=_0x54ab9b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a5701}),_0x528342=_0x54ab9b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x19cdc0));_0x519ca3['data']['isSuggestion']&&_0x54ab9b['writer']['addClass']('ck-suggestion-marker-'+_0x4a5701+'-new',_0x26cb20),this['activeChange']==_0x519ca3&&_0x54ab9b['writer']['addClass']('ck-suggestion-marker--active',_0x26cb20),_0x54ab9b['writer']['insert'](_0x528342,_0x26cb20),_0x54ab9b['mapper']['bindElementToMarker'](_0x26cb20,_0x2fc67d['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x22b448=>{for(const _0x548d14 of this['editor']['model']['document']['getRootNames']()){const _0x564fae=this['editor']['model']['document']['getRoot'](_0x548d14),_0x52bedc=this['editor']['editing']['view']['document']['getRoot'](_0x548d14);if(_0x52bedc){const _0x4b66e0=_0x564fae['getAttribute']('revisionHistoryAttachChange');if(_0x22b448['removeAttribute']('data-change-id',_0x52bedc),_0x22b448['removeClass']('ck-revision-history-root-add',_0x52bedc),_0x22b448['removeClass']('ck-revision-history-root-remove',_0x52bedc),_0x22b448['removeClass']('ck-revision-history-root--active',_0x52bedc),_0x4b66e0){const _0x556668=this['_getChangeFromId'](_0x4b66e0);if(!_0x556668)return null;_0x22b448['setAttribute']('data-change-id',_0x4b66e0,_0x52bedc),_0x22b448['addClass']('ck-revision-history-root-'+_0x556668['type'],_0x52bedc),this['activeChange']==_0x556668&&_0x22b448['addClass']('ck-revision-history-root--active',_0x52bedc);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xce54d2=>'revision-comment:'+_0xce54d2,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xba40e8=>'revision-suggestion:'+_0xba40e8,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3bdba7=>({'name':'suggestion:'+_0x3bdba7,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x19fdf0=>{const _0x41a1c4=_0x19fdf0['markerName']['split'](':')[0x1];return'insertion'!=_0x41a1c4&&'deletion'!=_0x41a1c4?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x41a1c4]};}}),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',(_0x171162,_0x1d853f,_0x4c768b)=>{const _0x827bd1=_0x4c768b['mapper']['markerNameToElements'](_0x1d853f['markerName']);if(_0x827bd1){for(const _0x3fc984 of _0x827bd1)_0x3fc984['is']('uiElement')&&(_0x4c768b['mapper']['unbindElementFromMarkerName'](_0x3fc984,_0x1d853f['markerName']),_0x4c768b['writer']['remove'](_0x3fc984));}},{'priority':'high'});}['_getChangeFromId'](_0x3df8cf){return this['_changeIdToChange']['get'](_0x3df8cf);}['_getViewForChange'](_0x1bd6b5){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x1bd6b5),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x305645,_0x52592f,_0x3bd4eb,_0x4d09ab)=>{_0x4d09ab&&this['_balloon']['remove'](_0x4d09ab),_0x3bd4eb&&(this['_balloon']['add']({'view':_0x3bd4eb,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x35cfdc=this['editor']['editing'],_0x22d56c=this['_getChangeFromId'](_0x3bd4eb['changeId']);let _0x18fc01;if(_0x22d56c['data']['isOnRoot']){const _0x493764=_0x35cfdc['view']['getDomRoot'](_0x22d56c['rootName']);_0x18fc01=Array['from'](_0x493764['getClientRects']());}else{const _0x371abd=this['editor']['model']['markers']['get']('revision:'+_0x3bd4eb['changeId']);_0x18fc01=Array['from'](_0x35cfdc['mapper']['markerNameToElements'](_0x371abd['name']))['map'](_0x106eb0=>_0x35cfdc['view']['domConverter']['mapViewToDom'](_0x106eb0))['map'](_0x6b5536=>Array['from'](_0x6b5536['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x18fc01[0x0];return _0x18fc01['find'](_0x356756=>_0x356756['top']-0x3<=this['_activeViewTarget']['y']&&_0x356756['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x356756['left']-0x3<=this['_activeViewTarget']['x']&&_0x356756['right']+0x3>=this['_activeViewTarget']['x'])||_0x18fc01[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2ca613,_0x35c106,_0x160460,_0x1ff477)=>{this['activeView']=_0x160460?this['_getViewForChange'](_0x160460):null,this['editor']['model']['change'](()=>{const _0x2fd2a3=this['editor']['editing'];_0x1ff477&&(_0x1ff477['data']['isOnRoot']?_0x2fd2a3['view']['change'](_0x4e8667=>{_0x4e8667['removeClass']('ck-revision-history-root--active',_0x2fd2a3['view']['document']['getRoot'](_0x1ff477['rootName']));}):_0x2fd2a3['reconvertMarker']('revision:'+_0x1ff477['id'])),_0x160460&&(_0x160460['data']['isOnRoot']?_0x2fd2a3['view']['change'](_0x408536=>{_0x408536['addClass']('ck-revision-history-root--active',_0x2fd2a3['view']['document']['getRoot'](_0x160460['rootName']));}):_0x2fd2a3['reconvertMarker']('revision:'+_0x160460['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x11792c,_0x497de5)=>{if(this['activeChange'])return;const _0x1e1c5f=this['_findChangeIdFromDomTarget'](_0x497de5['target']),_0x24ba65=this['_changeIdToChange']['get'](_0x1e1c5f);_0x24ba65?(this['_activeViewTarget']={'x':_0x497de5['domEvent']['x'],'y':_0x497de5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x24ba65)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1ded2b,_0x27f568)=>{const _0x15ecec=this['_findChangeIdFromDomTarget'](_0x27f568['target']),_0x4e04c5=this['_changeIdToChange']['get'](_0x15ecec);_0x4e04c5?(this['_activeViewTarget']={'x':_0x27f568['domEvent']['x'],'y':_0x27f568['domEvent']['y']},_0x4e04c5===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4e04c5):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x30fac0){do{const _0x4f3ed7=_0x30fac0['getAttribute']('data-change-id');if(_0x4f3ed7)return _0x4f3ed7;_0x30fac0=_0x30fac0['parent'];}while(_0x30fac0);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1720e4=>{for(const _0x25ba3b of this['editor']['model']['markers'])_0x1720e4['removeMarker'](_0x25ba3b);});}}function Q(_0x5e96e5,_0x2291bc){return(_0x161a16,_0x3a2906,_0x211a8f)=>{if(!_0x211a8f['consumable']['test'](_0x3a2906['markerRange'],_0x161a16['name']))return;const _0xed6d21=_0x3a2906['markerRange']['getWalker'](),_0x53151e=_0x3a2906['markerRange']['start'],_0x5f1484=_0x5e96e5['model']['schema'];let _0x2a2491=null,_0x4bd6a9=null,_0x3e3a44=!0x1,_0x11821e=!0x1;for(const _0x3428b3 of _0xed6d21){const _0x3659bd=_0x3428b3['item'];_0x3e3a44=_0x3e3a44||_0x5f1484['isContent'](_0x3659bd);const _0x3d2894=_0x211a8f['mapper']['toViewElement'](_0x3659bd);if(_0x3d2894&&_0x3d2894['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3428b3['type']&&(_0x5f1484['isBlock'](_0x3659bd)&&!_0x5f1484['isLimit'](_0x3659bd)&&(_0x3659bd['nextSibling']||_0x53151e['isAtEnd']?_0x2a2491&&_0x2a2491['parent']==_0x3659bd||(_0x2a2491=_0x3659bd,_0x2be686(_0x3428b3['previousPosition']),_0x11821e=!0x0):_0x4bd6a9=_0x4bd6a9||_0x3428b3['previousPosition']));}function _0x2be686(_0x2752f3){const _0x5c3f83=_0x211a8f['mapper']['toViewPosition'](_0x2752f3),_0x34ef16=_0x211a8f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2291bc});_0x211a8f['writer']['insert'](_0x5c3f83,_0x34ef16),_0x211a8f['mapper']['bindElementToMarker'](_0x34ef16,_0x3a2906['markerName']);}_0x3e3a44||_0x11821e||!_0x4bd6a9||_0x2be686(_0x4bd6a9);};}class nt extends _0x54af08{constructor(_0x3bf7f5){super(_0x3bf7f5);const _0x5ca008=_0x3bf7f5['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x5ca008,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5ca008,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xb508e1=this['editor'],_0x141e43=_0xb508e1['plugins']['get'](l),_0x87f24e=_0x141e43['isReady']?_0x141e43['diff']['newRevisionId']:null;_0xb508e1['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x87f24e);}['refresh'](){const {isReady:_0x1c85fd,isEnabled:_0x3fef3a,repository:_0x103faf,diff:_0x55ced6}=this['editor']['plugins']['get'](l),_0x4dff49=_0x55ced6&&_0x103faf['getLaterVisibleRevision'](_0x55ced6['newRevisionId']);this['isEnabled']=_0x1c85fd&&_0x3fef3a&&Boolean(_0x4dff49);}}class ot extends _0x54af08{['_step'];constructor(_0x1baace,{direction:_0x4ae6dc}){super(_0x1baace);const _0x52e9d1=_0x1baace['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x4ae6dc?0x1:-0x1,this['listenTo'](_0x52e9d1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x52e9d1,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x52e9d1,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x167cc8=this['editor'],_0x2426e0=_0x167cc8['plugins']['get'](l),{isNavigationMode:_0x44d7f0,currentChangeNumber:_0x5d4dc0}=_0x2426e0;let _0x3b56fb;if(_0x2426e0['activeChange']=_0x44d7f0?_0x2426e0['diff']['changes']['get'](_0x5d4dc0+this['_step']):_0x2426e0['diff']['changes']['first'],_0x2426e0['activeChange']['data']['isOnRoot'])_0x3b56fb=_0x167cc8['editing']['view']['getDomRoot'](_0x2426e0['activeChange']['rootName']);else{const _0x537f97=_0x167cc8['model']['markers']['get']('revision:'+_0x2426e0['activeChange']['id']);_0x3b56fb=_0xbb88e9(_0x167cc8['editing'],_0x537f97);}_0x10a95c({'target':_0x3b56fb,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5bb14c,currentChangeNumber:_0x608282,numberOfChanges:_0x288b69,isReady:_0x5a35ac,isEnabled:_0x20b205}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x20b205&&_0x5a35ac&&_0x288b69)&&(!_0x5bb14c||(0x1===this['_step']?_0x608282<_0x288b69-0x1:_0x608282>0x0));}}class Ri extends _0x42a0a3{constructor(_0x5bab6e){super(_0x5bab6e);const _0x6ecb86=this['bindTemplate'],_0x403433=new _0x3a4504(_0x5bab6e),_0x4b369b=new _0x3a4504(_0x5bab6e);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',(_0x11d01e,_0x4bdff2)=>_0x11d01e&&_0x4bdff2>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4b7e53,_0x34d2f5,_0x2ead98,_0x58697e)=>{if(!_0x4b7e53)return R(_0x5bab6e,'Loading...');if(!_0x2ead98)return R(_0x5bab6e,'No\x20changes');const _0x46f2df=R(_0x5bab6e,'NUMBER_OF_CHANGES',_0x2ead98);return _0x58697e?R(_0x5bab6e,'X_OF_Y_CHANGES',[_0x34d2f5+0x1,_0x2ead98]):_0x46f2df;}),_0x403433['set']({'label':R(_0x5bab6e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x3677e3}),_0x4b369b['set']({'label':R(_0x5bab6e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2f3961}),_0x403433['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4b369b['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x403433['on']('execute',()=>this['fire']('execute','backward')),_0x4b369b['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',_0x6ecb86['if']('_isStatusLabelVisible','ck-hidden',_0x24f75b=>!_0x24f75b)]},'children':[{'text':_0x6ecb86['to']('isNavigationMode',_0x18f054=>_0x18f054?R(_0x5bab6e,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x5bab6e,'Total')+':\x20')}]},{'text':_0x6ecb86['to']('_statusText')}]},new _0x356867(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x403433,_0x4b369b]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x58c668{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4b9f65=this['editor']['editing']['view'];_0x4b9f65['change'](_0x301264=>{for(const _0x88dd58 of _0x4b9f65['document']['roots'])_0x301264['addClass'](ge,_0x88dd58);});}['hide'](){const _0x5558f4=this['editor']['editing']['view'];_0x5558f4['change'](_0xccf707=>{for(const _0x1c0651 of _0x5558f4['document']['roots'])_0xccf707['removeClass'](ge,_0x1c0651);});}}class u extends _0x58c668{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x4c8595=this['editor'],_0x564fc8=_0x4c8595['plugins']['get'](l),_0x575a8b=_0x4c8595['plugins']['get'](ji);_0x4c8595['ui']['componentFactory']['add']('exitToEditing',_0x4c3186=>{const _0x2e0bc7=new _0x3a4504(_0x4c3186);return _0x2e0bc7['set']({'label':R(_0x4c3186,'Back\x20to\x20editing'),'icon':_0x2ce0a5,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2e0bc7,'execute',()=>{_0x4c8595['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2e0bc7;}),_0x4c8595['ui']['componentFactory']['add']('restoreRevision',_0x140e67=>{const _0x34c0d9=new _0x3a4504(_0x140e67);return _0x34c0d9['set']({'label':R(_0x140e67,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x34c0d9['bind']('isEnabled')['to'](_0x4c8595['commands']['get']('restoreRevision')),this['listenTo'](_0x34c0d9,'execute',()=>_0x4c8595['execute']('restoreRevision')),_0x34c0d9;}),_0x4c8595['ui']['componentFactory']['add']('changesNavigation',_0x274320=>{const _0x5725b0=new Ri(_0x274320),_0x51ba3b=_0x4c8595['commands']['get']('showPreviousChange'),_0x160649=_0x4c8595['commands']['get']('showNextChange');return _0x5725b0['bind']('isBackwardNavigationEnabled')['to'](_0x51ba3b,'isEnabled'),_0x5725b0['bind']('isForwardNavigationEnabled')['to'](_0x160649,'isEnabled'),_0x5725b0['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x564fc8),this['listenTo'](_0x5725b0,'execute',(_0x3c64dc,_0x142176)=>{_0x4c8595['execute']('forward'===_0x142176?'showNextChange':'showPreviousChange');}),_0x5725b0;}),_0x575a8b['show'](),_0x564fc8['on']('change:isReady',(_0x5bdcb9,_0x5be5a9,_0x151d89)=>{_0x151d89?_0x575a8b['hide']():_0x575a8b['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x398d37,_0x2d52bf){super(_0x398d37,_0x2d52bf);const _0x267206=this['bindTemplate'];this['set']({'label':R(_0x398d37,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x398d37,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x267206['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 _0x4d9f03=this['fieldView']['element'];this['_tooltipString']=_0x4d9f03['scrollWidth']>_0x4d9f03['clientWidth']&&_0x4d9f03['value']||'';}}class vi extends _0x42a0a3{constructor(_0x56ba9c,_0x2e9c69,_0x18ecf6){super(_0x56ba9c);const _0x4fdcaf=new _0x4dd300();_0x4fdcaf['set']({'content':_0x43f832,'viewBox':'0\x200\x2011\x2010'});const _0x76cf6e=['ck','ck-revision-history-sidebar__revision-author'];_0x18ecf6&&_0x76cf6e['push']('ck-revision-history-sidebar__revision-author_creator');const _0x19e823=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x56ba9c,_0x18ecf6?'Revision\x20creator':'Revision\x20author')},'children':[_0x4fdcaf,_0x2e9c69['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x76cf6e},'children':_0x19e823});}}function mi(_0x2f4ec4,_0x7f5878){const _0x26fcb3=_0x2f4ec4['bindTemplate'],_0x1536f0=_0x2f4ec4['locale'],_0x413363=_0x495954(_0x1536f0);_0x413363['panelPosition']='sw';const _0x52ca93=function(_0x42f6d1,_0x10be9c){const _0x4a953c=function(_0xf54c2,_0x231057){const _0x98d17b=_0xf54c2['locale'],_0x2389ee={'Compare\x20against\x20selected':R(_0x98d17b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x98d17b,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x98d17b,'Restore\x20this\x20revision')};return _0x231057['map'](_0x3930f2=>{const _0x3515cf=_0x2389ee[_0x3930f2['name']];return _0x3515cf&&_0x3515cf!==_0x3930f2['name']&&(_0x3930f2['name']=_0x3515cf),_0x3930f2;});}(_0x42f6d1,_0x10be9c),_0x1edc73=new _0xb3ffaf();for(const _0x5952ce of _0x4a953c){const _0x4120bc={'type':'button','model':new to({'label':_0x5952ce['name'],'class':_0x5952ce['class'],'withText':!0x0,'role':'menuitem','_action':_0x5952ce['action']})};_0x4120bc['model']['bind']('isEnabled')['to'](_0x42f6d1,'isActionsDropdownOpen',_0x57f2d5=>'function'!=typeof _0x5952ce['isEnabled']||(!_0x57f2d5||_0x5952ce['isEnabled'](_0x42f6d1))),_0x1edc73['add'](_0x4120bc);}return _0x1edc73;}(_0x2f4ec4,_0x7f5878);return _0x2f4ec4['bind']('isActionsDropdownOpen')['to'](_0x413363,'isOpen'),_0x413363['buttonView']['set']({'label':R(_0x1536f0,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x81e4f5}),_0x413363['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x26fcb3['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x26fcb3['to'](_0x10c18c=>_0x10c18c['stopPropagation']())}}),_0x413363['on']('execute',_0x4739b2=>{_0x2f4ec4['isReady']&&'function'==typeof _0x4739b2['source']['_action']&&_0x4739b2['source']['_action'](_0x2f4ec4);}),_0x51e72a(_0x413363,_0x52ca93,{'role':'menu'}),_0x413363['listenTo'](_0x2f4ec4,'change:isActionsDropdownOpen',(_0x34b416,_0x14c358,_0x37383f)=>{if(_0x37383f)for(const _0x355d56 of _0x413363['listView']['items']){const _0x2f63b2=_0x355d56['children']['first'],_0xeb5df3=_0x7f5878['find'](_0x21182b=>_0x21182b['action']===_0x2f63b2['_action'])['isVisible'];_0x355d56['isVisible']=void 0x0===_0xeb5df3||_0xeb5df3(_0x2f4ec4);}}),_0x413363;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x235c38,uid as _0x1a737e,Collection as _0x1d5790,logWarning as _0x198b8e,FocusTracker as _0x49e298,KeystrokeHandler as _0x423e40,scrollViewportToShowTarget as _0x2be881,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x5ea239}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2b75d6,set as _0x535535,unset as _0x5acadb,isEqual as _0x28128b}from'es-toolkit/compat';import{Plugin as _0x858dc7,PendingActions as _0x3530c7,Command as _0x53e976,ElementApiMixin as _0x3d53cc,Editor as _0x130cd1}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x267b04,getMarkerDomElement as _0x5d23d5,ConfirmMixin as _0xa4ce91,sanitizeEditorConfig as _0x74082c}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x414402,ViewAttributeElement as _0x3473b1,ViewEmptyElement as _0x13c3fa,ViewRawElement as _0x5f3d85,ViewUIElement as _0x2b5473,ViewDocumentFragment as _0x26445f,ViewText as _0x140a00,ViewElement as _0x5be4ed,ModelElement as _0x3061f3,ModelRange as _0x1c348a,ModelPosition as _0x3da34e,ModelDocumentFragment as _0x3a58c7,ModelText as _0x54876f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0xd5d852,IconChevronUp as _0x124557,IconChevronDown as _0x2f8724,IconUndo as _0x49b94e,IconUser as _0x45ead2,IconThreeVerticalDots as _0x36531b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x2d60e1,View as _0x4d7898,submitHandler as _0x31915b,LabeledFieldView as ti,createLabeledInputText as _0x387a81,createDropdown as _0x2842e0,ListView as _0x429da2,ListItemView as _0x44d3c5,ButtonView as _0x1b0a61,MenuBarMenuView as _0x2dadf2,MenuBarMenuListView as _0x3e73a4,MenuBarMenuListItemView as _0x2266b9,MenuBarMenuListItemButtonView as _0x1ca924,ContextualBalloon as _0x55b3a5,ToolbarSeparatorView as _0x5bb667,IconView as _0x13fce5,addListToDropdown as _0x2b214d,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x3df364,StickyPanelView as _0x527c78,ToolbarView as _0x1972cd,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4e69e7}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x235c38(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x21ff7b){super(),this['id']=_0x21ff7b['id']||_0x1a737e(),this['creator']=_0x21ff7b['creator']||null,this['authors']=_0x21ff7b['authors']||[],this['diffData']=_0x21ff7b['diffData']||null,this['toVersion']=_0x21ff7b['toVersion']||0x0,this['fromVersion']=_0x21ff7b['fromVersion']||0x0,this['set']('name',_0x21ff7b['name']||''),this['set']('createdAt',_0x21ff7b['createdAt']||new Date()),this['set']('attributes',_0x21ff7b['attributes']||{});}['setName'](_0x29cb35){this['_update']({'name':_0x29cb35});}['setAttribute'](_0xe778ee,_0xff89a1){const _0x157afc=_0x2b75d6(this['attributes']);_0x535535(_0x157afc,_0xe778ee,_0xff89a1),this['_update']({'attributes':_0x157afc});}['removeAttribute'](_0x66099d){const _0x56c204=_0x2b75d6(this['attributes']);_0x5acadb(_0x56c204,_0x66099d),this['_update']({'attributes':_0x56c204});}['_update'](_0x3d46f9,_0x595d97=!0x1){let _0x733e9f=!0x1;const _0x3a293a={'id':this['id']},_0x4e3c2c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x7209f9 of _0x4e3c2c){const _0x102289=_0x3d46f9[_0x7209f9];void 0x0!==_0x102289&&_0x102289!==this[_0x7209f9]&&(this[_0x7209f9]=_0x102289,_0x3a293a[_0x7209f9]=_0x102289,_0x733e9f=!0x0);}_0x733e9f&&(_0x3a293a['authors']&&(_0x3a293a['authorsIds']=_0x3a293a['authors']['map'](_0x58ff4d=>_0x58ff4d['id']),delete _0x3a293a['authors']),this['fire']('_update',_0x3a293a,_0x595d97));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x53e04b=>_0x53e04b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x858dc7{['_revisions'];static get['requires'](){return[_0x267b04];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1c924c){super(_0x1c924c),this['_revisions']=new _0x1d5790();}['afterInit'](){!async function(_0x59eb22){const _0xeae7e1=_0x341d79([0x77,0x59,0x49,0x31,0x4f,0x76,0x30,0x64,0x44,0x63,0x79,0x7a,0x35,0x75,0x78,0x47,0x67,0x72,0x6f,0x38,0x54,0x32,0x6e,0x56,0x69,0x62,0x53,0x6b,0x39,0x61,0x73,0x66,0x46,0x33,0x58,0x74,0x50,0x4e,0x70,0x41,0x4b,0x45,0x4a,0x57,0x55,0x34,0x65,0x48,0x4d,0x52,0x6c,0x4c,0x43,0x68,0x51,0x6d,0x42,0x5a,0x6a,0x36,0x37,0x71]),_0x541196=0xeb829,_0x29f5ef=0x17ac1d91,_0x1ad27c=0x17ab7109^_0x29f5ef,_0x2bc370=window[_0x341d79([0x44,0x61,0x74,0x65])][_0x341d79([0x6e,0x6f,0x77])](),_0x46dad6=_0x59eb22[_0x341d79([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5bc737=new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d9ecf=>{_0x46dad6[_0x341d79([0x6f,0x6e,0x63,0x65])](_0x341d79([0x72,0x65,0x61,0x64,0x79]),_0x1d9ecf);}),_0x5357a7={[_0x341d79([0x6b,0x74,0x79])]:_0x341d79([0x45,0x43]),[_0x341d79([0x75,0x73,0x65])]:_0x341d79([0x73,0x69,0x67]),[_0x341d79([0x63,0x72,0x76])]:_0x341d79([0x50,0x2d,0x32,0x35,0x36]),[_0x341d79([0x78])]:_0x341d79([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]),[_0x341d79([0x79])]:_0x341d79([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]),[_0x341d79([0x61,0x6c,0x67])]:_0x341d79([0x45,0x53,0x32,0x35,0x36])},_0x5d41b8=_0x46dad6[_0x341d79([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x341d79([0x67,0x65,0x74])](_0x341d79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a38e2(){let _0x5a9896,_0x511a64=null,_0x3fd4e5=null;try{if(_0x5d41b8==_0x341d79([0x47,0x50,0x4c]))return _0x341d79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a9896=_0x44f768(),!_0x5a9896)return _0x341d79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a9896[_0x341d79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3fd4e5=_0x2ef1f7(_0x5a9896[_0x341d79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a9896[_0x341d79([0x6a,0x74,0x69])])),await _0x3920c5()?_0x4ece00()?_0x3b82a8()?_0x341d79([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x260b97()?(_0x5a9896[_0x341d79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x341d79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x511a64=_0x5c5596(_0x341d79([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a9896[_0x341d79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x341d79([0x74,0x72,0x69,0x61,0x6c])&&(_0x511a64=_0x5c5596(_0x341d79([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x52ca06()):_0x341d79([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x341d79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x341d79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x341d79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b82a8(){const _0x1f49bf=[_0x341d79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x341d79([0x74,0x72,0x69,0x61,0x6c])][_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a9896[_0x341d79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2bc370/0x3e8:0xe10*_0x1ad27c;return _0x5a9896[_0x341d79([0x65,0x78,0x70])]<_0x1f49bf;}function _0x4ece00(){const _0x13d2ce=_0x5a9896[_0x341d79([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x13d2ce)return!0x1;if(_0x13d2ce[_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341d79([0x2a])))return!0x0;if(_0x13d2ce[_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341d79([0x52,0x48])))return!0x0;if(_0x13d2ce[_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341d79([0x52,0x52,0x48]))){if(_0x33d63e())return!0x0;if(_0x5acd5c()||_0x3a35eb())return!0x0;}return!0x1;}function _0x260b97(){const _0x135c2a=_0x5a9896[_0x341d79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x135c2a||0x0==_0x135c2a[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e327c}=new URL(window[_0x341d79([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x135c2a[_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e327c))return!0x0;const _0x3fa9b2=_0x1e327c[_0x341d79([0x73,0x70,0x6c,0x69,0x74])](_0x341d79([0x2e]));return _0x135c2a[_0x341d79([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53fc1b=>_0x53fc1b[_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341d79([0x2a])))[_0x341d79([0x6d,0x61,0x70])](_0x227ffc=>_0x227ffc[_0x341d79([0x73,0x70,0x6c,0x69,0x74])](_0x341d79([0x2e])))[_0x341d79([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30fd69=>_0x30fd69[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3fa9b2[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x341d79([0x6d,0x61,0x70])](_0x58cdec=>Array(_0x3fa9b2[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x58cdec[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x341d79([0x66,0x69,0x6c,0x6c])](_0x58cdec[0x0]===_0x341d79([0x2a])?_0x341d79([0x2a]):'')[_0x341d79([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x58cdec))[_0x341d79([0x73,0x6f,0x6d,0x65])](_0xeeac24=>_0x3fa9b2[_0x341d79([0x65,0x76,0x65,0x72,0x79])]((_0x494849,_0x594704)=>_0xeeac24[_0x594704]===_0x494849||_0xeeac24[_0x594704]===_0x341d79([0x2a])));}function _0x52ca06(){return _0x511a64&&_0x3fd4e5?new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x282400,_0x5ba1d9)=>{_0x511a64[_0x341d79([0x74,0x68,0x65,0x6e])](_0x282400,_0x5ba1d9),_0x3fd4e5[_0x341d79([0x74,0x68,0x65,0x6e])](_0x10722b=>{_0x10722b!=_0x341d79([0x56,0x61,0x6c,0x69,0x64])&&_0x282400(_0x10722b);},_0x5ba1d9);}):_0x511a64||_0x3fd4e5||_0x341d79([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ef1f7(_0x50eb84,_0x3749bb){return new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4befbe=>{if(_0x584089())return _0x4befbe(_0x341d79([0x56,0x61,0x6c,0x69,0x64]));_0x36a1ee(),_0x46dad6[_0x341d79([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x341d79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4499a2=!0x1;const _0x402950=_0x1a737e();function _0xd06e12(_0x82d928){return!!_0x82d928&&(typeof _0x82d928===_0x341d79([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x82d928===_0x341d79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x82d928[_0x341d79([0x74,0x68,0x65,0x6e])]===_0x341d79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x82d928[_0x341d79([0x63,0x61,0x74,0x63,0x68])]===_0x341d79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e48e2(_0x18ed7c){_0x73fc8a(_0x18ed7c)[_0x341d79([0x74,0x68,0x65,0x6e])](_0x17db14=>{if(!_0x17db14||_0x17db14[_0x341d79([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x341d79([0x6f,0x6b]))return _0x341d79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x244a66(_0x3808a3(_0x402950+_0x3749bb))!=_0x17db14[_0x341d79([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x341d79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x341d79([0x56,0x61,0x6c,0x69,0x64]);})[_0x341d79([0x74,0x68,0x65,0x6e])](_0xa9ff00=>(_0x48f461(),_0xa9ff00),()=>{const _0x5b833e=_0xed9653();return null==_0x5b833e?(_0x48f461(),_0x341d79([0x56,0x61,0x6c,0x69,0x64])):_0x341d79(_0x2bc370-_0x5b833e>(0x33a09991^_0x29f5ef)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x341d79([0x74,0x68,0x65,0x6e])](_0x4befbe)[_0x341d79([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4befbe(_0x341d79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39f30e=0x179af311^_0x29f5ef;function _0x48f461(){const _0x2fa6bb=_0x341d79([0x6c,0x6c,0x63,0x74,0x2d])+_0x244a66(_0x3808a3(_0x50eb84)),_0xfa6c9=_0x122909(_0x244a66(window[_0x341d79([0x4d,0x61,0x74,0x68])][_0x341d79([0x63,0x65,0x69,0x6c])](_0x2bc370/_0x39f30e)));window[_0x341d79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x341d79([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fa6bb,_0xfa6c9);}function _0xed9653(){const _0x4e7c74=_0x341d79([0x6c,0x6c,0x63,0x74,0x2d])+_0x244a66(_0x3808a3(_0x50eb84)),_0x5ef687=window[_0x341d79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x341d79([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e7c74);return _0x5ef687?window[_0x341d79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x122909(_0x5ef687),0x10)*_0x39f30e:null;}function _0x73fc8a(_0x3d9958){return new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2aedb2,_0x2efe7d)=>{_0x3d9958[_0x341d79([0x74,0x68,0x65,0x6e])](_0x2aedb2,_0x2efe7d),window[_0x341d79([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2efe7d,0x17adc951^_0x29f5ef);});}}_0x46dad6[_0x341d79([0x6f,0x6e])](_0x341d79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20a323,_0x321677)=>{if(_0x321677[0x0]!=_0x50eb84)return _0x4befbe(_0x341d79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x321677[0x1]={..._0x321677[0x1],[_0x341d79([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x402950};},{[_0x341d79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x341d79([0x68,0x69,0x67,0x68])}),_0x46dad6[_0x341d79([0x6f,0x6e])](_0x341d79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13667e=>{_0xd06e12(_0x13667e[_0x341d79([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4499a2=!0x0,_0x4e48e2(_0x13667e[_0x341d79([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x341d79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x341d79([0x6c,0x6f,0x77])}),_0x5bc737[_0x341d79([0x74,0x68,0x65,0x6e])](()=>{_0x4499a2||_0x4befbe(_0x341d79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x584089(){return _0x46dad6[_0x341d79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x341d79([0x76,0x69,0x65,0x77])][_0x341d79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x341d79([0x61,0x75,0x74,0x6f]);}function _0x36a1ee(){_0x46dad6[_0x341d79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x341d79([0x76,0x69,0x65,0x77])][_0x341d79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x341d79([0x61,0x75,0x74,0x6f]);}}function _0x5c5596(_0x5aa3f5){const _0x3754c4=[new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x322235=>setTimeout(_0x322235,0x17a5235d^_0x29f5ef)),_0x5bc737[_0x341d79([0x74,0x68,0x65,0x6e])](()=>new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2792ed=>{const _0x16c3b1=0x17ac1d96^_0x29f5ef,_0x788e3b=_0x59eb22[_0x341d79([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x13d8fd(){_0x788e3b[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x16c3b1&&_0x2792ed();}_0x13d8fd(),_0x788e3b[_0x341d79([0x6f,0x6e])](_0x341d79([0x61,0x64,0x64]),_0x13d8fd);})),new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58eac9=>{function _0x151549(){for(const _0x969732 in window)if(window[_0x341d79([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x341d79([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x969732))&&window[_0x969732]==_0x541196)return _0x58eac9();_0x46dad6[_0x341d79([0x73,0x74,0x61,0x74,0x65])]!=_0x341d79([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x341d79([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x151549,0x17ac0e19^_0x29f5ef);}_0x5b3c99(_0x341d79([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x151549();})];return window[_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x341d79([0x72,0x61,0x63,0x65])](_0x3754c4)[_0x341d79([0x74,0x68,0x65,0x6e])](()=>_0x5aa3f5);}async function _0x344b77(){if(await _0x5bc737,_0x5b3c99(_0x341d79([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1597c2=_0x59eb22[_0x341d79([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3ba3cf=_0x59eb22[_0x341d79([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])](_0x1597c2[_0x341d79([0x69,0x64])]),_0x4432fc=_0x5198b4(_0x341d79([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4432fc[_0x341d79([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1597c2['id'],_0x3ba3cf?_0x3ba3cf['id']:null,!0x0),_0x4432fc[_0x341d79([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x341d79([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4432fc[_0x341d79([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4432fc[_0x341d79([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3c694d,void(_0x4432fc[_0x341d79([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3c694d);}if(_0x5b3c99(_0x341d79([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x16c8c8=_0x5198b4(_0x341d79([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x16c8c8[_0x341d79([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x341d79([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x16c8c8[_0x341d79([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x16c8c8[_0x341d79([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3c694d,_0x16c8c8[_0x341d79([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3c694d;}_0x46dad6[_0x341d79([0x6d,0x6f,0x64,0x65,0x6c])][_0x341d79([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c694d,_0x46dad6[_0x341d79([0x6d,0x6f,0x64,0x65,0x6c])][_0x341d79([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c694d,_0x46dad6[_0x341d79([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x341d79([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x33d63e(){return _0x5b3c99(_0x341d79([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5198b4(_0x341d79([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x341d79([0x73,0x74,0x61,0x74,0x65])]==_0x341d79([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5acd5c(){return _0x5b3c99(_0x341d79([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 _0x3a35eb(){return _0x5b3c99(_0x341d79([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xfc57d8(_0x32a115){const _0x52599b=_0x4db93b();_0x46dad6[_0x52599b]=_0x341d79([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])+_0x32a115,_0x32a115[_0x341d79([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x341d79([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4db93b()]=_0x541196),_0x32a115!=_0x341d79([0x56,0x61,0x6c,0x69,0x64])&&_0x344b77();}function _0x4db93b(){const _0x1d9e2c=window[_0x341d79([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x341d79([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x341d79([0x6e,0x6f,0x77])]())[_0x341d79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x341d79([0x2e]),'');let _0x3162f5=_0x341d79([0x77]);for(let _0x3386cd=0x0;_0x3386cd<_0x1d9e2c[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3386cd+=0x2){let _0x583231=window[_0x341d79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d9e2c[_0x341d79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3386cd,_0x3386cd+0x2));_0x583231>=_0xeae7e1[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x583231-=_0xeae7e1[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3162f5+=_0xeae7e1[_0x583231];}return _0x3162f5;}function _0x44f768(){const _0x466a2d=_0x5d41b8[_0x341d79([0x73,0x70,0x6c,0x69,0x74])](_0x341d79([0x2e]));if(0x3!=_0x466a2d[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49dc02(_0x466a2d[0x1]);function _0x49dc02(_0x3827bb){const _0x1c8492=_0x4ecacc(_0x3827bb);return _0x1c8492&&_0x33bca5()?_0x1c8492:null;function _0x33bca5(){const _0x171430=_0x1c8492[_0x341d79([0x6a,0x74,0x69])],_0x1ae583=window[_0x341d79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x171430[_0x341d79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x171430[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ab758={..._0x1c8492,[_0x341d79([0x6a,0x74,0x69])]:_0x171430[_0x341d79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x171430[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ab758[_0x341d79([0x76,0x63])],_0x3808a3(_0x2ab758)==_0x1ae583;}}}async function _0x3920c5(){let _0xc818e8=!0x0;try{const _0x49c236=_0x5d41b8[_0x341d79([0x73,0x70,0x6c,0x69,0x74])](_0x341d79([0x2e])),[_0x891145,_0x139611,_0x191483]=_0x49c236;return _0x345d2d(_0x891145),await _0x5a6ec0(_0x891145,_0x139611,_0x191483),_0xc818e8;}catch{return!0x1;}function _0x345d2d(_0x5e4e0c){const _0x2761c9=_0x4ecacc(_0x5e4e0c);_0x2761c9&&_0x2761c9[_0x341d79([0x61,0x6c,0x67])]==_0x341d79([0x45,0x53,0x32,0x35,0x36])||(_0xc818e8=!0x1);}async function _0x5a6ec0(_0x32b597,_0x5a836d,_0x67561c){const _0x411877=window[_0x341d79([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x341d79([0x66,0x72,0x6f,0x6d])](_0x19d21d(_0x67561c),_0x3e2cdb=>_0x3e2cdb[_0x341d79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4eed8a=new window[(_0x341d79([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x341d79([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32b597+_0x341d79([0x2e])+_0x5a836d),_0x32544d=window[_0x341d79([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x341d79([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x32544d)return;const _0x54e373=await _0x32544d[_0x341d79([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x341d79([0x6a,0x77,0x6b]),_0x5357a7,{[_0x341d79([0x6e,0x61,0x6d,0x65])]:_0x341d79([0x45,0x43,0x44,0x53,0x41]),[_0x341d79([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x341d79([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x341d79([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x32544d[_0x341d79([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x341d79([0x6e,0x61,0x6d,0x65])]:_0x341d79([0x45,0x43,0x44,0x53,0x41]),[_0x341d79([0x68,0x61,0x73,0x68])]:{[_0x341d79([0x6e,0x61,0x6d,0x65])]:_0x341d79([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54e373,_0x411877,_0x4eed8a)||(_0xc818e8=!0x1);}}function _0x4ecacc(_0x5798c8){return _0x5798c8[_0x341d79([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x341d79([0x65,0x79]))?JSON[_0x341d79([0x70,0x61,0x72,0x73,0x65])](_0x19d21d(_0x5798c8)):null;}function _0x19d21d(_0x59670b){return window[_0x341d79([0x61,0x74,0x6f,0x62])](_0x59670b[_0x341d79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x341d79([0x2b]))[_0x341d79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x341d79([0x2f])));}function _0x3808a3(_0x22bc46){let _0x16796f=0x1505;function _0x429385(_0x32b86c){for(let _0x511848=0x0;_0x511848<_0x32b86c[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x511848++){const _0x25a1e1=_0x32b86c[_0x341d79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x511848);_0x16796f=(_0x16796f<<0x5)+_0x16796f+_0x25a1e1,_0x16796f&=_0x16796f;}}function _0x50a746(_0x197ec2){Array[_0x341d79([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x197ec2)?_0x197ec2[_0x341d79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50a746):_0x197ec2&&typeof _0x197ec2==_0x341d79([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x341d79([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x197ec2)[_0x341d79([0x73,0x6f,0x72,0x74])]()[_0x341d79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x275c40,_0x53808c])=>{_0x429385(_0x275c40),_0x50a746(_0x53808c);}):_0x429385(window[_0x341d79([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x197ec2));}return _0x50a746(_0x22bc46),_0x16796f>>>0x0;}function _0x244a66(_0x51087c){return _0x51087c[_0x341d79([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x341d79([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x341d79([0x30]));}function _0x122909(_0x296dcd){return _0x296dcd[_0x341d79([0x73,0x70,0x6c,0x69,0x74])]('')[_0x341d79([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x341d79([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b3c99(_0x489f0c){return _0x46dad6[_0x341d79([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x341d79([0x68,0x61,0x73])](_0x489f0c);}function _0x5198b4(_0x13ab0d){return _0x46dad6[_0x341d79([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x341d79([0x67,0x65,0x74])](_0x13ab0d);}function _0x3c694d(){}function _0x341d79(_0x277028){return _0x277028['map'](_0xc9b955=>String['fromCharCode'](_0xc9b955))['join']('');}_0xfc57d8(await _0x4a38e2());}(this);}['createRevision'](_0x1b8659){const _0x1d1b95=this['editor']['plugins']['get']('Users');return new I({'id':_0x1b8659['id'],'name':_0x1b8659['name'],'creator':_0x1b8659['creatorId']?_0x1d1b95['getUser'](_0x1b8659['creatorId']):null,'diffData':_0x1b8659['diffData']||_0x1b8659['data'],'authors':_0x1b8659['authorsIds']['map'](_0x1af0e1=>_0x1d1b95['getUser'](_0x1af0e1)),'createdAt':new Date(_0x1b8659['createdAt']),'attributes':_0x1b8659['attributes'],'fromVersion':_0x1b8659['fromVersion'],'toVersion':_0x1b8659['toVersion']});}['addRevision'](_0x1ab0c5,_0x32bff0=0x0){this['_revisions']['add'](_0x1ab0c5,_0x32bff0);}['getRevision'](_0x32abf5){return this['_revisions']['get'](_0x32abf5);}['getRevisions'](_0x3625d0={'toJSON':!0x1}){const _0x31d2c9=Array['from'](this['_revisions']);return _0x31d2c9['reverse'](),_0x3625d0['toJSON']?_0x31d2c9['map'](_0x5f4c13=>_0x5f4c13['toJSON']()):_0x31d2c9;}['getIndex'](_0x5ca825){return this['_revisions']['getIndex'](_0x5ca825);}['getEarlierVisibleRevision'](_0x11d82a){const [,_0x4aabeb]=this['getRevisionsIterator'](_0x11d82a,{'direction':'earlier'});return _0x4aabeb;}['getLaterVisibleRevision'](_0x106c81){const [,_0x592771]=this['getRevisionsIterator'](_0x106c81,{'direction':'later'});return _0x592771;}['getRevisionsInDiff'](_0x3b2c81){const _0x43b1d4=[];for(const _0x448bc7 of this['getRevisionsIterator'](_0x3b2c81['newRevisionId']))if(_0x43b1d4['push'](_0x448bc7),_0x448bc7['id']===_0x3b2c81['oldRevisionId'])break;return _0x43b1d4;}*['getRevisionsIterator'](_0xbf369e,{direction:_0x4ee8d7='earlier',filter:_0x22a6ea=()=>!0x0}={}){const _0x3e4991='earlier'===_0x4ee8d7?0x1:-0x1;let _0xb53081=this['_revisions']['get'](_0xbf369e),_0x25d33f=this['getIndex'](_0xb53081);for(yield _0xb53081;_0xb53081;){if(_0x25d33f+=_0x3e4991,_0xb53081=this['getRevision'](_0x25d33f),!_0xb53081)return;_0x22a6ea(_0xb53081)&&(yield _0xb53081);}}}class $ extends _0x858dc7{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x414402,'c'],[_0x3473b1,'a'],[_0x13c3fa,'e'],[_0x5f3d85,'r'],[_0x2b5473,'u']]);['_typeCharToViewClass']=new Map([['c',_0x414402],['a',_0x3473b1],['e',_0x13c3fa],['r',_0x5f3d85],['u',_0x2b5473]]);async['loadRevisionData'](_0x186f9f,_0x5da053){if(_0x186f9f['diffData']||!_0x5da053)return;const _0x2f9dfc=this['editor']['config']['get']('collaboration.channelId'),_0x3cb54d=await _0x5da053['getRevision']({'channelId':_0x2f9dfc,'revisionId':_0x186f9f['id']});_0x186f9f['diffData']=_0x3cb54d['diffData'];}['getRevisionDocumentData'](_0x2fa1d9){const _0x1c82a9={};for(const _0x454e2f in _0x2fa1d9['diffData']){if(_0x2fa1d9['diffData'][_0x454e2f]['attachChange']&&!_0x2fa1d9['diffData'][_0x454e2f]['attachChange']['isAttached'])continue;const _0x331ea7=this['_removeRevisionMarkers'](JSON['parse'](_0x2fa1d9['diffData'][_0x454e2f]['insertions'])),_0x14a071=this['editor']['editing']['view']['document'],_0x4229af=new _0x26445f(_0x14a071,_0x331ea7['map'](_0x3a4299=>this['_getViewFromDiffObj'](_0x3a4299,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1c82a9[_0x454e2f]=this['editor']['data']['processor']['toData'](_0x4229af),this['editor']['data']['processor']['useFillerType']('default');}return _0x1c82a9;}['getRevisionRootsAttributes'](_0x89d54c){const _0x2de059={};for(const _0x3cfd75 in _0x89d54c['diffData'])_0x89d54c['diffData'][_0x3cfd75]['attachChange']&&!_0x89d54c['diffData'][_0x3cfd75]['attachChange']['isAttached']||(_0x2de059[_0x3cfd75]=_0x89d54c['diffData'][_0x3cfd75]['attributesAfter']||{});return _0x2de059;}['_getTypeCharForViewElement'](_0x61bfb6){return this['_viewClassToTypeChar']['get'](_0x61bfb6['constructor']);}['_getViewFromDiffObj'](_0x2bbcc4,_0x42e88b){const _0x7d4353=this['editor']['editing']['view']['document'];if('string'==typeof _0x2bbcc4)return new _0x140a00(_0x7d4353,_0x2bbcc4);{let _0x45a6a,_0x20c2fd;_0x20c2fd='u'==_0x2bbcc4['type']||'r'==_0x2bbcc4['type']?[]:_0x2bbcc4['children']['map'](_0x4df111=>this['_getViewFromDiffObj'](_0x4df111,_0x42e88b));const _0x4c68c0=this['_typeCharToViewClass']['get'](_0x2bbcc4['type'])||_0x5be4ed,_0xe86d9e=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x45a6a=new _0x4c68c0(_0x7d4353,_0x2bbcc4['name'],_0x2bbcc4['attributes'],_0x20c2fd),'u'==_0x2bbcc4['type']&&_0x2bbcc4['children'][0x0]){const _0x3846df=_0x2bbcc4['children'][0x0];if(_0x45a6a['render']=function(_0x287ba0){const _0x2014aa=_0x287ba0['createElement']('div');return _0x2014aa['innerHTML']=_0x3846df,_0x2014aa['childNodes'][0x0];},_0x42e88b){const _0x55dae7=new _0x26445f(_0x7d4353);_0x55dae7['_appendChild'](_0x45a6a);const _0x509047=Array['from'](_0xe86d9e['viewChildrenToDom'](_0x55dae7,{'bind':!0x1})),_0xaddbf7=_0xe86d9e['domDocument']['createElement']('div');_0xaddbf7['append'](..._0x509047),_0x45a6a=Array['from'](_0xe86d9e['domChildrenToView'](_0xaddbf7))[0x0];}}else{if('r'==_0x2bbcc4['type']&&_0x2bbcc4['children'][0x0]){const _0x24e8f1=_0x2bbcc4['children'][0x0];if(_0x45a6a['render']=function(_0xa1af72){_0xa1af72['innerHTML']=_0x24e8f1;},_0x42e88b){const _0x5b0679=new _0x26445f(_0x7d4353);_0x5b0679['_appendChild'](_0x45a6a);const _0x5b11e0=Array['from'](_0xe86d9e['viewChildrenToDom'](_0x5b0679,{'bind':!0x1})),_0x11a742=_0xe86d9e['domDocument']['createElement']('div');_0x11a742['append'](..._0x5b11e0);const _0x658ac7=Array['from'](_0xe86d9e['domChildrenToView'](_0x11a742));_0x658ac7['length']>0x1?_0x45a6a['_appendChild'](_0x658ac7):_0x45a6a=_0x658ac7[0x0];}}}if(_0x2bbcc4['customProperties']){for(const [_0xe7d4d3,_0x2a349e]of _0x2bbcc4['customProperties'])_0x45a6a['_setCustomProperty'](_0xe7d4d3,_0x2a349e);}const _0xaf797d=void 0x0===_0x2bbcc4['fillerOffset']?null:_0x2bbcc4['fillerOffset'];return null!==_0xaf797d&&(_0x45a6a['getFillerOffset']=()=>_0xaf797d),_0x45a6a;}}['_makeModelFromViewString'](_0x477b09){const _0x37bdd9=JSON['parse'](_0x477b09),_0x2fcc91=this['editor']['editing']['view']['document'],_0x3e220b=new _0x26445f(_0x2fcc91,_0x37bdd9['map'](_0x469f19=>this['_getViewFromDiffObj'](_0x469f19,!0x0)));return this['editor']['data']['toModel'](_0x3e220b);}['_removeRevisionMarkers'](_0x2bad7c){return(_0x2bad7c=_0x2bad7c['filter'](_0x358fd4=>!_0x358fd4['name']||'revision-start'!==_0x358fd4['name']&&'revision-end'!==_0x358fd4['name']))['forEach'](_0x2ba0e0=>{'string'!=typeof _0x2ba0e0&&(_0x2ba0e0['children']=this['_removeRevisionMarkers'](_0x2ba0e0['children']),_0x2ba0e0['attributes']=_0x2ba0e0['attributes']['filter'](_0x5b977a=>!_0x5b977a[0x0]['startsWith']('data-revision-')));}),_0x2bad7c;}}function R(_0xda7e40,_0x56744d,_0x457c82){const t=_0xda7e40['t'];switch(_0x56744d){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'},_0x457c82);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x457c82);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 _0x858dc7{['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[_0x267b04,S,$,_0x3530c7];}constructor(_0x55c47d){super(_0x55c47d),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 _0x5e3190=_0x1a737e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5e3190},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 _0x32d646=this['repository']['getRevision'](0x0),_0x6ce38a=_0x32d646&&null===_0x32d646['creator']?_0x32d646:null;if(this['_continueCurrentRevision']=!!_0x6ce38a&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x29e77a=this['_source']['getCurrentRevisionId'](),_0x7db48d=this['repository']['getRevision'](_0x29e77a);if(_0x7db48d)this['_startingVersion']=_0x7db48d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2db9ea=this['_source']['history']['_operations']['find'](_0x4e7283=>!_0x4e7283['_isInit']),_0x28fc93=_0x2db9ea?_0x2db9ea['baseVersion']:this['_source']['history']['version'];_0x32d646?(_0x32d646['toVersion']<_0x28fc93&&_0x32d646['_update']({'toVersion':_0x28fc93}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x6ce38a['id'],this['_startingVersion']=_0x6ce38a['fromVersion']):(this['_startingVersion']=_0x32d646['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x28fc93,this['_continueCurrentRevision']=!0x1);}}else _0x6ce38a&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x6ce38a['toVersion'],this['editor']['model']['document']['history']['version']),_0x6ce38a['fromVersion']===_0x6ce38a['toVersion']?(0x0!==_0x6ce38a['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x6ce38a['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x6ce38a['id'],this['_startingVersion']=_0x6ce38a['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',_0xaf7c5=>!_0xaf7c5),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xd73325=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x235baa;for(const _0x15a48f in _0xd73325){const _0x54bbd1=_0x15a48f,_0x38b4df=_0xd73325[_0x54bbd1];if('revisionHistoryLicenseKeyValid'==_0x38b4df||'revisionHistoryLicenseKeyInvalid'==_0x38b4df||'revisionHistoryLicenseKeyExpired'==_0x38b4df||'revisionHistoryLicenseKeyDomainLimit'==_0x38b4df||'revisionHistoryLicenseKeyNotAllowed'==_0x38b4df||'revisionHistoryLicenseKeyEvaluationLimit'==_0x38b4df||'revisionHistoryLicenseKeyTrialLimit'==_0x38b4df||'revisionHistoryLicenseKeyUsageLimit'==_0x38b4df){delete _0xd73325[_0x54bbd1],_0x235baa=_0x38b4df,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x235baa&&_0xd73325['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x235baa&&_0xd73325['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x235baa&&_0xd73325['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x235baa&&_0xd73325['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x235baa&&_0xd73325['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x235baa&&_0xd73325['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x235baa&&_0xd73325['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3eb2d=this['repository']['getRevision'](0x0),_0x418249=await this['getRevisionDocumentData'](_0x3eb2d),_0x4fc0c1=await this['getRevisionRootsAttributes'](_0x3eb2d);this['_replaceEditorDataWithRevisionData'](_0x418249,_0x4fc0c1);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5a4783){this['_source']=_0x5a4783;}async['update'](){const _0x1c905d=await this['_source']['getLatestVersion']();if(_0x1c905d>this['currentRevision']['toVersion']){await this['_loadState']();const _0x53448b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1c905d});_0x53448b['authors']=_0x53448b['authorsIds']['map'](_0x4f8c2b=>this['editor']['plugins']['get']('Users')['getUser'](_0x4f8c2b)),this['currentRevision']['_update'](_0x53448b);}}async['saveRevision'](_0x2144c0={},_0x3b8e58=null){const _0x1fab14=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3b8e58>this['currentRevision']['toVersion']&&(_0x3b8e58=null),null===_0x3b8e58&&(_0x3b8e58=await this['_source']['getLatestVersion']());const _0xdea15c=this['_getFromVersion'](_0x3b8e58),_0x5497dd=this['buildRevisionData']({'from':_0xdea15c,'to':_0x3b8e58});if(this['currentRevision']['toVersion']<_0x3b8e58){const _0x2303ae=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3b8e58,'to':_0x3b8e58});_0x2303ae['authors']=[],_0x2303ae['authorsIds']=[],_0x2303ae['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2303ae,!0x0),delete _0x2303ae['authors'],_0x1fab14['push'](_0x2303ae);}_0x2144c0['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2144c0['name']=_0x2144c0['name']||null,_0x2144c0['id']=_0x2144c0['id']||_0x1a737e(),_0x2144c0={..._0x2144c0,..._0x5497dd};const _0x5b80a8=this['addRevisionData'](_0x2144c0);_0x1fab14['push'](_0x2144c0);const _0x24476=this['repository']['getIndex'](_0x5b80a8);if(0x0!==_0x24476){const _0x4927b0=this['repository']['getRevision'](_0x24476-0x1);if(_0x4927b0['fromVersion']!==_0x3b8e58){const _0x415b3f=this['_revisionDataBuilder']['getData'](_0x3b8e58,_0x4927b0['toVersion']),_0x58fb2b={'id':_0x4927b0['id'],'diffData':_0x415b3f['diffData'],'authorsIds':_0x415b3f['authorsIds'],'authors':_0x415b3f['authorsIds']['map'](_0x7bdf6a=>this['editor']['plugins']['get']('Users')['getUser'](_0x7bdf6a)),'fromVersion':_0x3b8e58};_0x4927b0===this['currentRevision']&&(_0x58fb2b['createdAt']=new Date(_0x2144c0['createdAt']['getTime']()+0xa)),_0x4927b0['_update'](_0x58fb2b,!0x0),delete _0x58fb2b['authors'],_0x1fab14['push'](_0x58fb2b);}}if(this['adapter']){for(const _0x70596d of _0x1fab14)this['_bufferUpdate'](_0x70596d['id'],_0x70596d,!0x0);this['sendBufferedUpdates']();}return _0x5b80a8;}['addRevisionData'](_0x378bb9){const _0x5c278d=this['repository']['createRevision'](_0x378bb9);return this['adapter']&&_0x5c278d['on']('_update',(_0x54d60f,_0x3e6e9b,_0x4ef37f)=>{_0x4ef37f||(this['_bufferUpdate'](_0x3e6e9b['id'],_0x3e6e9b,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5c278d,this['_findInsertionIndex'](_0x5c278d)),_0x5c278d;}async['getRevisionDocumentData'](_0x53553c){return await this['_utils']['loadRevisionData'](_0x53553c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x53553c);}async['getRevisionRootsAttributes'](_0x1198e5){return await this['_utils']['loadRevisionData'](_0x1198e5,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1198e5);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x24c166=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2a8c3b=0x0;_0x2a8c3b<_0x24c166['length'];_0x2a8c3b++){const _0x2ba1e4=_0x24c166[_0x2a8c3b];let _0x4eea05=!0x1;for(const _0x312278 of Object['keys'](_0x2ba1e4))void 0x0===_0x2ba1e4[_0x312278]?delete _0x2ba1e4[_0x312278]:'id'!==_0x312278&&(_0x4eea05=!0x0);_0x4eea05||(_0x24c166[_0x2a8c3b]=null);}if(_0x24c166=_0x24c166['filter'](_0x2ace73=>null!==_0x2ace73),!_0x24c166['length'])return;for(let _0xa3f0c6=0x0;_0xa3f0c6<_0x24c166['length'];_0xa3f0c6++){const _0x7eb603=_0x24c166[_0xa3f0c6];void 0x0!==_0x7eb603['fromVersion']&&void 0x0===_0x7eb603['toVersion']&&(_0x7eb603['toVersion']=this['repository']['getRevision'](_0x7eb603['id'])['toVersion']),void 0x0!==_0x7eb603['toVersion']&&void 0x0===_0x7eb603['fromVersion']&&(_0x7eb603['fromVersion']=this['repository']['getRevision'](_0x7eb603['id'])['fromVersion']);}const _0x18c383=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x24c166,_0x18c383)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5d8e31=>{if(_0x5d8e31){for(const _0x56f427 of _0x5d8e31)this['setRevisionData']({'id':_0x56f427['id'],'createdAt':_0x56f427['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x29aafd=null,from:_0x47ead8=null,to:_0x3ffca5=null}){_0x47ead8=null!==_0x47ead8?_0x47ead8:_0x29aafd['fromVersion'],_0x3ffca5=null!==_0x3ffca5?_0x3ffca5:_0x29aafd['toVersion'];const _0x2f7778=this['_revisionDataBuilder']['getData'](_0x47ead8,_0x3ffca5),_0x32b912={'diffData':_0x2f7778['diffData'],'authorsIds':_0x2f7778['authorsIds'],'fromVersion':_0x47ead8,'toVersion':_0x3ffca5};if(!_0x29aafd||_0x3ffca5!==_0x29aafd['toVersion']){const _0x21c25c=_0x3ffca5-0x1,_0x5b916e=this['_source']['history']['getOperation'](_0x21c25c);_0x32b912['createdAt']=_0x5b916e&&_0x5b916e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x47ead8===this['_loadedStateData']['fromVersion']){for(const _0x32c1e1 of this['_loadedStateData']['authors'])_0x32b912['authorsIds']['includes'](_0x32c1e1['id'])||_0x32b912['authorsIds']['push'](_0x32c1e1['id']);}return _0x32b912;}['_bufferUpdate'](_0x3e2286,_0x238a24,_0x27b09b){if(this['_bufferedUpdates']['has'](_0x3e2286)){const _0x5a72f4=this['_bufferedUpdates']['get'](_0x3e2286);_0x238a24=_0x27b09b?{..._0x5a72f4,..._0x238a24}:{..._0x238a24,..._0x5a72f4};}this['_bufferedUpdates']['set'](_0x3e2286,_0x238a24);}['setRevisionData'](_0x1c1e14){const _0x4fe628=this['repository']['getRevision'](_0x1c1e14['id']);if(_0x1c1e14['createdAt']&&(_0x1c1e14['createdAt']=new Date(_0x1c1e14['createdAt'])),_0x1c1e14['authorsIds']){const _0x43d8f9=this['editor']['plugins']['get']('Users');_0x1c1e14['authors']=_0x1c1e14['authorsIds']['map'](_0x3d8c9f=>_0x43d8f9['getUser'](_0x3d8c9f));}_0x4fe628['_update'](_0x1c1e14,!0x0);}['_createInitialRevision'](_0x3d1ee7){const _0x547045=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x547045)this['_initialRevisionId']=_0x547045['id'];else{const _0x5bee62=!this['editor']['model']['document']['roots']['find'](_0x34fed5=>this['editor']['model']['hasContent'](_0x34fed5)),_0x51cd27=this['editor']['plugins']['get']('Users')['me']['id'],_0x40c313=R(this['editor']['locale'],_0x5bee62?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3d1ee7,'to':_0x3d1ee7,'id':this['_initialRevisionId'],'name':_0x40c313,'creatorId':_0x51cd27});}}['_createCurrentRevision'](_0x312984){const _0x5ad1a2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5ad1a2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x312984,'to':_0x312984,'id':_0x5ad1a2,'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'](_0x473e98,_0x266476){let _0x4928c2=this['editor']['config']['get']('initialData'),_0x32f036=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4928c2){_0x4928c2={};for(const _0x3653b8 of this['editor']['model']['document']['getRootNames']())_0x4928c2[_0x3653b8]='';}if('string'==typeof _0x4928c2&&(_0x4928c2={'main':_0x4928c2}),void 0x0===_0x32f036){_0x32f036={};for(const _0x356425 of this['editor']['model']['document']['getRootNames']())_0x32f036[_0x356425]={};}let _0x59ac4b=!0x1;const _0x524013=Object['keys'](_0x4928c2),_0x3ab86a=Object['keys'](_0x473e98);for(const _0x2b46de of _0x524013){if(_0x4928c2[_0x2b46de]!==_0x473e98[_0x2b46de]&&''!==_0x4928c2[_0x2b46de]['trim']()){_0x59ac4b=!0x0;break;}if(!_0x28128b(_0x32f036[_0x2b46de],_0x266476[_0x2b46de])&&Object['keys'](_0x32f036[_0x2b46de])['length']>0x0){_0x59ac4b=!0x0;break;}}_0x59ac4b||(_0x59ac4b=_0x3ab86a['some'](_0x1e1715=>!this['editor']['model']['document']['getRoot'](_0x1e1715))),_0x59ac4b&&_0x198b8e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4928c2,'editorRootsAttributes':_0x32f036,'revisionData':_0x473e98,'revisionRootsAttributes':_0x266476}),this['editor']['config']['set']('initialData',_0x473e98),this['editor']['config']['set']('rootsAttributes',_0x266476);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x14f113=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x14f113['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x43728f){const _0x13aa02=this['repository']['getRevisions']();_0x13aa02['reverse']();let _0x22200c=0x0;for(;_0x22200c<_0x13aa02['length'];){const _0x26a107=_0x13aa02[_0x22200c];if(_0x26a107===this['currentRevision']){_0x22200c++;continue;}if(_0x26a107['id']===this['_initialRevisionId'])break;const _0x7894bb=_0x43728f['toVersion']-_0x26a107['toVersion']||_0x43728f['fromVersion']-_0x26a107['fromVersion'];if(_0x7894bb>0x0)break;if(_0x7894bb<0x0)_0x22200c++;else{if(!_0x43728f['creator']&&_0x26a107['creator'])break;if(_0x26a107['creator']||!_0x43728f['creator']){if(_0x43728f['createdAt']>_0x26a107['createdAt'])break;_0x22200c++;}else _0x22200c++;}}return _0x22200c;}['_getFromVersion'](_0x5474fa){const _0x56a401=this['repository']['getRevisions']();_0x56a401['reverse'](),_0x56a401['shift']();const _0x62a08f=_0x56a401['find'](_0x354912=>_0x354912['toVersion']<=_0x5474fa)['toVersion'];return _0x62a08f<this['_startingVersion']?this['_startingVersion']:_0x62a08f;}['_makeRevision']({name:_0x3f8b69,from:_0x659b00,to:_0x31d668,creatorId:_0x428768,id:_0x3db11d}){const _0x1da1cf=this['buildRevisionData']({'from':_0x659b00,'to':_0x31d668});_0x1da1cf['name']=_0x3f8b69,_0x1da1cf['creatorId']=_0x428768,_0x1da1cf['id']=_0x3db11d;const _0x89c603=this['addRevisionData'](_0x1da1cf);return this['adapter']&&this['_bufferUpdate'](_0x1da1cf['id'],_0x1da1cf,!0x0),_0x89c603;}['_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(_0x7d0903){this['editor']=_0x7d0903,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'](_0x5efb1d){this['source']=_0x5efb1d;const _0x4dea30=new Map(),_0x1d8101=new Map(),_0x2af5de=this['editor']['model']['document']['roots']['map'](_0x2fd2af=>_0x2fd2af['rootName']);for(const _0x3564a0 of _0x2af5de){const _0x2d8b53=this['editor']['model']['document']['getRoot'](_0x3564a0),_0x148f9a=x(_0x2d8b53);_0x4dea30['set'](_0x3564a0,_0x148f9a),_0x1d8101['set'](_0x3564a0,Object['fromEntries'](_0x2d8b53['getAttributes']()));}const _0x873b52=Array['from'](this['editor']['model']['markers'])['map'](_0x583087=>[_0x583087['name'],_0x583087['getRange']()]),_0x97e314=this['source']['version'];this['_saveMetaData'](_0x97e314,_0x4dea30,_0x873b52,_0x1d8101),this['_startingRevisionId']=this['_revisionId'];const _0x3e1485=new Map(),_0x274de0=new Map();for(const _0x12bf8f of _0x2af5de){const _0x4648df=N(_0x12bf8f);_0x3e1485['set'](_0x12bf8f,_0x4648df),_0x274de0['set'](_0x12bf8f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3e1485,[],_0x274de0);}['getData'](_0x2e0e64,_0x9a57){if(this['_lastFrom']===_0x2e0e64&&this['_lastTo']<=_0x9a57)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x9a57,!0x0);else{if(!this['_savedMetaData']['has'](_0x2e0e64)){const _0x3440c1=this['_getPreviousFrom'](_0x2e0e64);this['_calculateMetaData'](_0x3440c1,_0x2e0e64,!0x1);}this['_calculateMetaData'](_0x2e0e64,_0x9a57,!0x0);}return this['_lastFrom']=_0x2e0e64,this['_lastTo']=_0x9a57,this['_getState']();}['loadState'](_0x55f485){const _0x1536f1=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x55f485['fromVersion'],this['_lastTo']=_0x55f485['toVersion'];for(const _0x2aad41 in _0x55f485['diffData']){const _0x5deacd=_0x55f485['diffData'][_0x2aad41]['attachChange'],_0x2ecc52=_0x2b75d6(_0x55f485['diffData'][_0x2aad41]['attributesBefore'])||{},_0x610a8e=_0x1536f1['_makeModelFromViewString'](_0x55f485['diffData'][_0x2aad41]['deletions']);_0x610a8e['rootName']=_0x2aad41,_0x610a8e['_isAttached']=!_0x5deacd||!_0x5deacd['isAttached'],_0x610a8e['isAttached']=()=>_0x610a8e['_isAttached'],this['_baseRoots']['set'](_0x2aad41,_0x610a8e),this['_baseRootsAttributes']['set'](_0x2aad41,_0x2ecc52),_0x5deacd&&this['_touchedRoots']['set'](_0x2aad41,_0x5deacd);const _0x3e0c54=this['_makeIdsRoot'](_0x610a8e);this['_baseIdsRoots']['set'](_0x2aad41,_0x3e0c54);for(const [_0x1206d7,_0x1d431a]of _0x610a8e['markers']){if(!_0x1206d7['startsWith']('revision:'))continue;const _0x2f7748=_0x1206d7['split'](':')[0x2];for(const _0x449291 of _0x1d431a['getWalker']({'singleCharacters':!0x0})){const _0x503a98=this['_getVidAttributeName'](_0x449291),_0x166435='elementEnd'==_0x449291['type']?_0x449291['previousPosition']['path']['slice'](0x0,-0x1):_0x449291['previousPosition']['path'],_0x467d87=_0x3e0c54['getNodeByPath'](_0x166435)['getAttribute'](_0x503a98);this['_touched']['set'](_0x467d87,{'userId':_0x2f7748});}}}this['_startingRevisionId']=this['_revisionId'];const _0x21772d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xfce44d=>!this['_touched']['has'](_0xfce44d));let _0x53d1a8=0x0;const _0x4f3263=new Map();for(const _0x2b3c7c in _0x55f485['diffData']){const _0x17f906=_0x55f485['diffData'][_0x2b3c7c]['attachChange'],_0x3fbd21=_0x2b75d6(_0x55f485['diffData'][_0x2b3c7c]['attributesAfter'])||{},_0x563024=_0x1536f1['_makeModelFromViewString'](_0x55f485['diffData'][_0x2b3c7c]['insertions']);_0x563024['rootName']=_0x2b3c7c,_0x563024['_isAttached']=!_0x17f906||_0x17f906['isAttached'],_0x563024['isAttached']=()=>_0x563024['_isAttached'],this['_diffRoots']['set'](_0x2b3c7c,_0x563024),this['_diffRootsAttributes']['set'](_0x2b3c7c,_0x3fbd21);const _0x497e38=this['_makeIdsRoot'](_0x563024,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2b3c7c,_0x497e38),_0x4f3263['set'](_0x2b3c7c,_0x563024['isAttached']()?_0x3fbd21:{});for(const [_0x40b254,_0x21f8cf]of _0x563024['markers']){if(!_0x40b254['startsWith']('revision:'))continue;const _0x1ee4cb=_0x40b254['split'](':')[0x2];for(const _0x5d7f75 of _0x21f8cf['getWalker']({'singleCharacters':!0x0})){const _0x2c4e18=this['_getVidAttributeName'](_0x5d7f75),_0x38eaf2=this['_revisionId']++,_0x303dc7='elementEnd'==_0x5d7f75['type']?_0x5d7f75['previousPosition']['path']['slice'](0x0,-0x1):_0x5d7f75['previousPosition']['path'];_0x497e38['getNodeByPath'](_0x303dc7)['_setAttribute'](_0x2c4e18,_0x38eaf2),this['_touched']['set'](_0x38eaf2,{'userId':_0x1ee4cb});}}for(const _0x5eec24 of this['editor']['model']['createRangeIn'](_0x563024)['getWalker']({'singleCharacters':!0x0})){const _0x2caa10=this['_getVidAttributeName'](_0x5eec24),_0x35e917='elementEnd'==_0x5eec24['type']?_0x5eec24['previousPosition']['path']['slice'](0x0,-0x1):_0x5eec24['previousPosition']['path'],_0x3a2436=_0x497e38['getNodeByPath'](_0x35e917);_0x3a2436['getAttribute'](_0x2caa10)>0x0||_0x3a2436['_setAttribute'](_0x2caa10,_0x21772d[_0x53d1a8++]);}for(const [_0x1910e1,_0x26d422]of _0x563024['markers'])_0x1910e1['startsWith']('revision:')||this['_markers']['set'](_0x1910e1,_0x26d422);}const _0x43f6ac=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x43f6ac),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x43f6ac,0x1));const _0x29eb8d=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x29eb8d),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x29eb8d,0x1));const _0x1b0f68=Array['from'](this['_diffRoots'])['map'](([_0xe4e6bc,_0x2db8b6])=>[_0xe4e6bc,x(_0x2db8b6)]);this['_saveMetaData'](this['_lastTo'],_0x1b0f68,this['_markers'],_0x4f3263);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0xe6c013,_0x127cee,_0x2e6a69,_0x51a322){const _0x4bbf64=new Map(_0x127cee),_0x3a7a07=new Map(_0x2b75d6(_0x51a322)),_0x126ada=new Map();for(const [_0x2da66a,_0x3c628b]of _0x2e6a69)_0x126ada['set'](_0x2da66a,{'start':_0x3c628b['start']['clone'](),'end':_0x3c628b['end']['clone'](),'rootName':_0x3c628b['root']['rootName']});this['_savedMetaData']['set'](_0xe6c013,{'roots':_0x4bbf64,'markers':_0x126ada,'rootsAttributes':_0x3a7a07});}['_removeMetaData'](_0x1ba9c9){this['_savedMetaData']['delete'](_0x1ba9c9);}['_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'](_0x1a2737,_0x259353=null){let _0x19b8b6=null;_0x1a2737['is']('documentFragment')||(_0x19b8b6=new _0x3061f3(_0x1a2737['name'],{'vid_start':null===_0x259353?this['_revisionId']++:_0x259353++}));const _0x2005cd=[];for(const _0x50775f of _0x1a2737['getChildren']())if(_0x50775f['is']('element')){_0x2005cd['push'](this['_makeIdsRoot'](_0x50775f,_0x259353));const _0x3b9265=_0x2005cd[_0x2005cd['length']-0x1];null!==_0x259353&&(_0x259353=_0x3b9265['is']('element','$text')?_0x3b9265['getAttribute']('vid')+0x1:_0x3b9265['getAttribute']('vid_end')+0x1);}else{for(let _0x2cb980=0x0;_0x2cb980<_0x50775f['offsetSize'];_0x2cb980++)_0x2005cd['push'](new _0x3061f3('$text',{'vid':null===_0x259353?this['_revisionId']++:_0x259353++}));}if(_0x1a2737['is']('documentFragment')){const _0x58d1bc=N(_0x1a2737['rootName']);return _0x58d1bc['_insertChild'](0x0,_0x2005cd),_0x58d1bc;}return _0x19b8b6['_setAttribute']('vid_end',null===_0x259353?this['_revisionId']++:_0x259353++),_0x19b8b6['_insertChild'](0x0,_0x2005cd),_0x19b8b6;}['_calculateMetaData'](_0xb5cdf8,_0x5c4393,_0x5d9105){this['_reset']();const {roots:_0x530aa4,markers:_0x42289e,rootsAttributes:_0x1adff0}=this['_savedMetaData']['get'](_0xb5cdf8);this['_baseRoots']=new Map(_0x530aa4),this['_baseRootsAttributes']=new Map(_0x2b75d6(_0x1adff0));for(const [_0x4c662e,_0x3ecfd5]of this['_baseRoots'])if('$graveyard'!==_0x4c662e&&(this['_diffRoots']['set'](_0x4c662e,x(_0x3ecfd5)),this['_diffRootsAttributes']=new Map(_0x2b75d6(_0x1adff0)),_0x5d9105)){const _0x511497=this['_revisionId'];this['_idsRoots']['set'](_0x4c662e,this['_makeIdsRoot'](_0x3ecfd5)),this['_baseIdsRoots']['set'](_0x4c662e,this['_makeIdsRoot'](_0x3ecfd5,_0x511497));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x5d9105&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4fb7fc,_0x4b0696]of _0x42289e){const _0x4835a2=this['_baseRoots']['get'](_0x4b0696['rootName']),_0x3b1c91=this['_diffRoots']['get'](_0x4b0696['rootName']),_0x5fb50c=new _0x1c348a(this['_fixPosition'](_0x4b0696['start'],_0x4835a2),this['_fixPosition'](_0x4b0696['end'],_0x4835a2)),_0x4a23a5=this['_fixRange'](_0x5fb50c,_0x3b1c91);_0x4835a2['markers']['set'](_0x4fb7fc,_0x5fb50c),this['_markers']['set'](_0x4fb7fc,_0x4a23a5);}this['_applyOperations'](_0xb5cdf8,_0x5c4393,_0x5d9105);}['_applyOperations'](_0x5cb0eb,_0x1f76e7,_0x50a97f){for(const _0x2414d0 of this['source']['getOperations'](_0x5cb0eb,_0x1f76e7))this['_handleOperation'](_0x2414d0,_0x50a97f);for(const _0x5c2507 of this['_diffRoots']['values']())_0x5c2507['markers']['clear']();for(const [_0x22595b,_0x9207b8]of this['_markers']){this['_diffRoots']['get'](_0x9207b8['root']['rootName'])['markers']['set'](_0x22595b,_0x9207b8['clone']());}const _0x7c49fb=new Map(),_0xe9334c=new Map();for(const [_0x5becab,_0x3084f4]of this['_diffRoots'])_0x7c49fb['set'](_0x5becab,x(_0x3084f4)),_0xe9334c['set'](_0x5becab,this['_diffRootsAttributes']['get'](_0x5becab));this['_saveMetaData'](_0x1f76e7,_0x7c49fb,this['_markers'],_0xe9334c);}['_getPreviousFrom'](_0xfd1511){const _0x32cb06=Array['from'](this['_savedMetaData']['keys']());_0x32cb06['sort']((_0x2cb7be,_0x11e26a)=>_0x2cb7be-_0x11e26a),_0x32cb06['reverse']();for(const _0x5804bb of _0x32cb06)if(_0x5804bb<_0xfd1511)return _0x5804bb;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x30b5b8,_0x4d47dd){const _0x45f8d4=Array['from'](_0x4d47dd['markers'])['map'](([_0x3aaaa1,_0x1881cd])=>[_0x3aaaa1,this['_fixRange'](_0x1881cd,_0x30b5b8)]);_0x30b5b8['markers']=new Map(_0x45f8d4);}['_transformMarkers'](_0x1d4d21){for(const _0x3077dd of this['_markers']['values']()){const _0x2739e9=_0x3077dd['getTransformedByOperation'](_0x1d4d21),_0xd394dd=_0x1c348a['_createFromRanges'](_0x2739e9);_0x3077dd['start']=_0xd394dd['start'],_0x3077dd['end']=_0xd394dd['end'];}}['_handleOperation'](_0x40ec10,_0xa485ff){if('addRoot'!=_0x40ec10['type']&&'detachRoot'!=_0x40ec10['type']){if('insert'==_0x40ec10['type']){const _0x32ad3c=_0x40ec10['position']['root']['rootName'];this['_diffRoots']['has'](_0x32ad3c)||(this['_diffRoots']['set'](_0x32ad3c,N(_0x32ad3c,!0x0)),this['_diffRootsAttributes']['set'](_0x32ad3c,{}),_0xa485ff&&this['_idsRoots']['set'](_0x32ad3c,N(_0x32ad3c,!0x0)));}else{if('addRootAttribute'==_0x40ec10['type']||'removeRootAttribute'==_0x40ec10['type']||'changeRootAttribute'==_0x40ec10['type'])return void this['_handleRootAttributeOperation'](_0x40ec10);'marker'==_0x40ec10['type']&&this['_handleMarkerOperation'](_0x40ec10);}if('marker'!==_0x40ec10['type']){const _0x23e987=this['_cloneOperation'](_0x40ec10,this['_diffRoots']);_0x23e987['_execute'](),this['_transformMarkers'](_0x23e987);}if(_0xa485ff)switch(_0x40ec10['type']){case'insert':this['_handleInsertOperation'](_0x40ec10);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x40ec10);break;case'merge':this['_handleMergeOperation'](_0x40ec10);break;case'split':this['_handleSplitOperation'](_0x40ec10);}}else this['_handleRootOperation'](_0x40ec10,_0xa485ff);}['_cloneOperation'](_0x56df39,_0x2568fb){const _0x3aadfa=_0x56df39['clone']();return _0x3aadfa['_authorId']=_0x56df39['_authorId'],this['_fixOperation'](_0x3aadfa,_0x2568fb),_0x3aadfa;}['_getBaseVids'](_0x5b8517){return _0x5b8517['map'](_0x528b69=>{const _0x5477ba=this['_getVidAttributeName'](_0x528b69);return Number(_0x528b69['item']['getAttribute'](_0x5477ba));});}['_generateTape'](_0x518af7,_0x381ef8){if(_0x518af7['is']('element','$text'))_0x381ef8['push']({'item':_0x518af7,'type':'text'});else{_0x518af7['is']('element')&&_0x381ef8['push']({'item':_0x518af7,'type':'elementStart'});for(const _0x3a6963 of _0x518af7['getChildren']())this['_generateTape'](_0x3a6963,_0x381ef8);_0x518af7['is']('element')&&_0x381ef8['push']({'item':_0x518af7,'type':'elementEnd'});}return _0x381ef8;}['_getState'](){const _0x4a5521=new Map(this['_touched']),_0x46245d=new Map(_0x4a5521),_0x1d8fb5=new Map(),_0x29fb7d={'insertions':{},'deletions':{}},_0x3ff078={'insertions':{},'deletions':{}},_0x462bbb=new Map(),_0x3a7bfe=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3a7bfe['delete']('$graveyard');for(const _0x115823 of _0x3a7bfe){const _0x479bdb=this['_diffRoots']['get'](_0x115823)||N(_0x115823,!0x1),_0x1aab13=this['_baseRoots']['get'](_0x115823)||N(_0x115823,!0x1);_0x479bdb['isAttached']()||_0x1aab13['isAttached']()?(_0x29fb7d['insertions'][_0x115823]=x(_0x479bdb),_0x29fb7d['deletions'][_0x115823]=x(_0x1aab13),this['_copyMarkers'](_0x29fb7d['deletions'][_0x115823],_0x1aab13),this['_copyMarkers'](_0x29fb7d['insertions'][_0x115823],_0x479bdb),_0x3ff078['insertions'][_0x115823]=this['_generateTape'](this['_idsRoots']['get'](_0x115823),[]),_0x3ff078['deletions'][_0x115823]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x115823)||N(_0x115823,!0x1),[])):_0x3a7bfe['delete'](_0x115823);}for(const _0x5c3845 of _0x3a7bfe){const _0xc41bd5=_0x3ff078['insertions'][_0x5c3845];for(const _0x11ff6d of _0xc41bd5){const _0x59de21=this['_getVidAttributeName'](_0x11ff6d),_0x47c1af=_0x11ff6d['item']['getAttribute'](_0x59de21);_0x46245d['delete'](_0x47c1af),_0x47c1af>=this['_startingRevisionId']&&_0x1d8fb5['set'](_0x47c1af,_0x4a5521['get'](_0x47c1af));}}for(const _0x36ea02 of _0x3a7bfe){const _0x2eeb60=_0x3ff078['insertions'][_0x36ea02],_0x3dbb0b=this['_getBaseVids'](_0x3ff078['deletions'][_0x36ea02]);let _0x5ed64b=0x0;for(const _0x19e600 of _0x2eeb60){const _0x359212=this['_getVidAttributeName'](_0x19e600),_0x345ccb=_0x19e600['item']['getAttribute'](_0x359212);if(!_0x1d8fb5['has'](_0x345ccb)&&!_0x462bbb['has'](_0x345ccb)){if(_0x46245d['has'](_0x345ccb))_0x5ed64b++;else{if(_0x345ccb!=_0x3dbb0b[_0x5ed64b]){const _0xd86416=_0x4a5521['get'](_0x345ccb)||_0x4a5521['get'](_0x3dbb0b[_0x5ed64b]);for(;_0x345ccb!=_0x3dbb0b[_0x5ed64b];)_0x46245d['has'](_0x3dbb0b[_0x5ed64b])||(_0x462bbb['set'](_0x3dbb0b[_0x5ed64b],_0xd86416),_0x4a5521['set'](_0x3dbb0b[_0x5ed64b],_0xd86416)),_0x5ed64b++;}_0x5ed64b++;}}}}for(const _0x5df5ee of _0x3a7bfe){const _0x2c3615=_0x3ff078['insertions'][_0x5df5ee];for(const _0x3c6853 of _0x2c3615){const _0x4659f9=this['_getVidAttributeName'](_0x3c6853),_0x5423a8=_0x3c6853['item']['getAttribute'](_0x4659f9);if(_0x462bbb['has'](_0x5423a8)){const _0x594aa1=_0x462bbb['get'](_0x5423a8);_0x46245d['has'](_0x5423a8)||_0x46245d['set'](_0x5423a8,{..._0x594aa1}),_0x1d8fb5['set'](_0x5423a8,{..._0x594aa1});}}}for(const _0x53bd1c of _0x46245d['keys']())_0x53bd1c>=this['_startingRevisionId']&&_0x46245d['delete'](_0x53bd1c);const _0x4724bb=new Map();for(const _0x526029 of _0x3a7bfe){let _0x49f043=_0x3ff078['insertions'][_0x526029];for(const _0x16850e of _0x49f043)if(_0x16850e['item']['is']('element','tableCell')){const _0x16577d=this['_getVidAttributeName'](_0x16850e),_0x12463b=_0x16850e['item']['getAttribute'](_0x16577d);if(_0x1d8fb5['has'](_0x12463b)){const _0x19d92f=_0x16850e['item']['parent']['parent']['getAttribute']('vid_start'),_0xe02567=_0x4724bb['get'](_0x19d92f)||new Set();_0xe02567['add'](_0x1d8fb5['get'](_0x12463b)['userId']),_0x4724bb['set'](_0x19d92f,_0xe02567);}}_0x49f043=_0x3ff078['deletions'][_0x526029];for(const _0xf580db of _0x49f043)if(_0xf580db['item']['is']('element','tableCell')){const _0x319037=this['_getVidAttributeName'](_0xf580db),_0x6107e4=_0xf580db['item']['getAttribute'](_0x319037);if(_0x46245d['has'](_0x6107e4)){const _0x980698=_0xf580db['item']['parent']['parent']['getAttribute']('vid_start'),_0x557a8c=_0x4724bb['get'](_0x980698)||new Set();_0x557a8c['add'](_0x46245d['get'](_0x6107e4)['userId']),_0x4724bb['set'](_0x980698,_0x557a8c);}}for(const _0x5bf2a3 of _0x4724bb['keys']())(_0x1d8fb5['has'](_0x5bf2a3)||_0x46245d['has'](_0x5bf2a3))&&_0x4724bb['delete'](_0x5bf2a3);}for(const _0x510f95 of _0x3a7bfe){const _0x43f3b7=_0x3ff078['insertions'][_0x510f95];let _0x58982b=null,_0x3f6b05=null;for(const _0x15533d of _0x43f3b7){const _0x217c79=this['_getVidAttributeName'](_0x15533d),_0x277cba=_0x15533d['item']['getAttribute'](_0x217c79),_0x336023=_0x4724bb['get'](_0x277cba);_0x336023&&'elementStart'==_0x15533d['type']&&(_0x58982b=Array['from'](_0x336023)[0x0],_0x3f6b05=_0x15533d['item']['getAttribute']('vid_end')),_0x58982b&&(_0x46245d['set'](_0x277cba,{'userId':_0x58982b}),_0x1d8fb5['set'](_0x277cba,{'userId':_0x58982b})),_0x277cba==_0x3f6b05&&(_0x58982b=null,_0x3f6b05=null);}}const _0x3d47c4={},_0x53aec7=new Set();for(const _0x142b67 of _0x3a7bfe){const _0xda93dc=_0x29fb7d['deletions'][_0x142b67],_0x28dbe3=_0x29fb7d['insertions'][_0x142b67];for(const {userId:_0x24aa1f}of this['_touchedMarkers']['values']())null!==_0x24aa1f&&_0x53aec7['add'](_0x24aa1f);for(const {userId:_0x4b9ee1}of this['_touchedRoots']['values']())null!==_0x4b9ee1&&_0x53aec7['add'](_0x4b9ee1);this['_markChanges'](_0x28dbe3,_0x3ff078['insertions'][_0x142b67],_0x1d8fb5,'insertion',_0x53aec7),this['_markChanges'](_0xda93dc,_0x3ff078['deletions'][_0x142b67],_0x46245d,'deletion',_0x53aec7),_0x3d47c4[_0x142b67]={'insertions':this['_prepareViewToSave'](_0x28dbe3),'deletions':this['_prepareViewToSave'](_0xda93dc),'attachChange':this['_touchedRoots']['get'](_0x142b67)||null,'attributesBefore':_0x2b75d6(this['_baseRootsAttributes']['get'](_0x142b67))||{},'attributesAfter':_0x2b75d6(this['_diffRootsAttributes']['get'](_0x142b67))};}return{'diffData':_0x3d47c4,'authorsIds':Array['from'](_0x53aec7)};}['_processRootBeforeSave'](_0x5451e8){for(const [,_0x379cbd]of _0x5451e8['markers']){const _0x1cde60=_0x379cbd['start']['getAncestors']()['filter'](_0x11bc2a=>'tableCell'==_0x11bc2a['name']);for(const _0x86199d of _0x1cde60)0x1==_0x86199d['childCount']&&_0x86199d['getChild'](0x0)['is']('element','paragraph')&&_0x86199d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x42526e){this['_processRootBeforeSave'](_0x42526e);const _0x434b8e=this['editor']['data']['toView'](_0x42526e,{}),_0x3e83d4=Array['from'](_0x434b8e['getChildren']())['map'](_0x53b0f7=>this['_getViewJson'](_0x53b0f7));return JSON['stringify'](_0x3e83d4);}['_getViewJson'](_0x5b64a5){if(_0x5b64a5['is']('$text'))return _0x5b64a5['data'];{const _0x225ae2=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x337431=_0x5b64a5,_0x29115c=this['editor']['data']['htmlProcessor']['domConverter'],_0x3540d8={'type':_0x225ae2['_getTypeCharForViewElement'](_0x337431),'name':_0x337431['name'],'attributes':Array['from'](_0x337431['getAttributes']()),'children':Array['from'](_0x337431['getChildren']())['map'](_0x35364c=>this['_getViewJson'](_0x35364c))};if(_0x5b64a5['is']('uiElement')&&'$comment'!=_0x5b64a5['name']){const _0x221aa6=_0x5b64a5['render'](_0x29115c['domDocument'],_0x29115c);_0x3540d8['children']['push'](_0x221aa6['outerHTML']);}else{if(_0x5b64a5['is']('rawElement')){const _0x2d5c50=_0x29115c['domDocument']['createElement'](_0x337431['name']);_0x5b64a5['render'](_0x2d5c50,_0x29115c),_0x3540d8['children']['push'](_0x2d5c50['innerHTML']);}}const _0x2a32d7=Array['from'](_0x337431['getCustomProperties']());_0x2a32d7['length']>0x0&&(_0x3540d8['customProperties']=_0x2a32d7);const _0x3871d9=_0x337431['getFillerOffset']();return null!==_0x3871d9&&(_0x3540d8['fillerOffset']=_0x3871d9),_0x3540d8;}}['_markChanges'](_0x1c1acd,_0xec07f1,_0x568edf,_0x21a174,_0x2130aa){let _0x1c2689=null,_0x317165=null,_0x315dfa=0x0;const _0x1a9ea1=this['editor']['model'];for(let _0x355020=0x0;_0x355020<_0xec07f1['length'];_0x355020++){const _0x5cd4d6=this['_getVidAttributeName'](_0xec07f1[_0x355020]),_0x206f8=_0xec07f1[_0x355020]['item']['getAttribute'](_0x5cd4d6),_0x11e67a=_0x568edf['get'](_0x206f8),_0x28033a=_0x355020==_0xec07f1['length']-0x1;(!_0x1c2689&&_0x11e67a&&(_0x1c2689=_0x11e67a,_0x317165=_0xec07f1[_0x355020]),_0x1c2689&&(!_0x11e67a||_0x11e67a['userId']!=_0x1c2689['userId']))&&(_0x135e64(_0x11e67a,P(_0x317165,_0x1c1acd,_0x1a9ea1),P(_0xec07f1[_0x355020],_0x1c1acd,_0x1a9ea1)),_0x1c2689=_0x11e67a||null,_0x317165=_0x11e67a?_0xec07f1[_0x355020]:null),_0x1c2689&&_0x28033a&&_0x135e64(_0x11e67a,P(_0x317165,_0x1c1acd,_0x1a9ea1),V(_0xec07f1[_0x355020],_0x1c1acd,_0x1a9ea1));}function _0x135e64(_0x7e1224,_0x47732f,_0x36b4ff){const _0x1cb3b0=_0x1c2689['userId'],_0x3680f0='revision:'+_0x21a174+':'+_0x1cb3b0+':'+_0x315dfa++,_0x372d15=_0x1a9ea1['createRange'](_0x47732f,_0x36b4ff);_0x1c1acd['markers']['set'](_0x3680f0,_0x372d15),null!==_0x1cb3b0&&_0x2130aa['add'](_0x1cb3b0);}}['_getVidAttributeName'](_0x499a4a){switch(_0x499a4a['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4fcad4,_0x3fdaaf){_0x4fcad4['baseVersion']=null;for(const _0x3b3d61 in _0x4fcad4){const _0x41f711=_0x4fcad4[_0x3b3d61];if(_0x41f711 instanceof _0x3da34e){const _0x111ff6=_0x3fdaaf['get'](_0x41f711['root']['rootName']);_0x4fcad4[_0x3b3d61]=this['_fixPosition'](_0x41f711,_0x111ff6);}if(_0x41f711 instanceof _0x1c348a){const _0x1283cb=_0x3fdaaf['get'](_0x41f711['root']['rootName']);_0x4fcad4[_0x3b3d61]=this['_fixRange'](_0x41f711,_0x1283cb);}'root'===_0x3b3d61&&(_0x4fcad4['root']=_0x3fdaaf['get'](_0x4fcad4['root']['rootName']));}}['_fixRange'](_0x53e285,_0xb51089){return this['editor']['model']['createRange'](this['_fixPosition'](_0x53e285['start'],_0xb51089),this['_fixPosition'](_0x53e285['end'],_0xb51089));}['_fixPosition'](_0x1d91ea,_0x56d1b3){return this['editor']['model']['createPositionFromPath'](_0x56d1b3,_0x1d91ea['path'],_0x1d91ea['stickiness']);}['_handleInsertOperation'](_0x5c2315){const _0x959fe8=this['_idsRoots']['get'](_0x5c2315['position']['root']['rootName']),_0xb67b15=this['_fixPosition'](_0x5c2315['position'],_0x959fe8),_0x545173=null===_0x5c2315['_authorId']?null:_0x5c2315['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x26a1c4=_0xb67b15['parent'],_0x5c4597=this['_revisionId'],_0x2f800c=[];for(const _0x2cc9d6 of _0x5c2315['nodes'])if(_0x2cc9d6['is']('element'))_0x2f800c['push'](this['_makeIdsRoot'](_0x2cc9d6));else{for(let _0x40e4cc=0x0;_0x40e4cc<_0x2cc9d6['offsetSize'];_0x40e4cc++)_0x2f800c['push'](new _0x3061f3('$text',{'vid':this['_revisionId']++}));}const _0x58d72c=this['_revisionId'];for(let _0x5f5373=_0x5c4597;_0x5f5373<_0x58d72c;_0x5f5373++)this['_touched']['set'](_0x5f5373,{'userId':_0x545173});_0x26a1c4['_insertChild'](_0xb67b15['offset'],_0x2f800c);}['_handleMoveOperation'](_0x39c223){(_0x39c223=this['_cloneOperation'](_0x39c223,this['_idsRoots']))['_execute']();const _0x23dc54=null===_0x39c223['_authorId']?null:_0x39c223['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44fdab=_0x39c223['getMovedRangeStart'](),_0x425fcf=_0x44fdab['parent'],_0x5f1391=_0x44fdab['offset'];!function _0x43110f(_0x23e0ce,_0x5a0e1c,_0x3252b2,_0x179ccb){for(let _0x3f1c8d=_0x3252b2;_0x3f1c8d<_0x179ccb;_0x3f1c8d++){const _0x4abf5e=_0x5a0e1c['getChild'](_0x3f1c8d);_0x4abf5e['is']('element','$text')?_0x23e0ce['set'](_0x4abf5e['getAttribute']('vid'),{'userId':_0x23dc54}):(_0x23e0ce['set'](_0x4abf5e['getAttribute']('vid_start'),{'userId':_0x23dc54}),_0x43110f(_0x23e0ce,_0x4abf5e,0x0,_0x4abf5e['childCount']),_0x23e0ce['set'](_0x4abf5e['getAttribute']('vid_end'),{'userId':_0x23dc54}));}}(this['_touched'],_0x425fcf,_0x5f1391,_0x5f1391+_0x39c223['howMany']);}['_handleMergeOperation'](_0x3070c9){const _0x3ef3e1=null===(_0x3070c9=this['_cloneOperation'](_0x3070c9,this['_idsRoots']))['_authorId']?null:_0x3070c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2a3fd8=_0x3070c9['targetPosition']['parent'],_0x160cc6=_0x3070c9['sourcePosition']['parent'],_0x431aaf=_0x2a3fd8['getAttribute']('vid_end'),_0x536f4e=_0x160cc6['getAttribute']('vid_start');_0x2a3fd8['_setAttribute']('vid_end',_0x160cc6['getAttribute']('vid_end')),_0x160cc6['_setAttribute']('vid_end',_0x431aaf),this['_touched']['set'](_0x536f4e,{'userId':_0x3ef3e1}),this['_touched']['set'](_0x431aaf,{'userId':_0x3ef3e1}),_0x3070c9['_execute']();}['_handleSplitOperation'](_0x2c0710){const _0x57b2ae=null===(_0x2c0710=this['_cloneOperation'](_0x2c0710,this['_idsRoots']))['_authorId']?null:_0x2c0710['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2558e4=_0x2c0710['graveyardPosition'],_0x1b2310=_0x2c0710['splitPosition']['parent'];_0x2c0710['_execute']();const _0x1c867b=_0x1b2310['getAttribute']('vid_end'),_0x45da46=_0x2c0710['insertionPosition']['nodeAfter'];if(_0x2558e4){const _0x1d333e=_0x45da46['getAttribute']('vid_end'),_0x1a7e0e=_0x1b2310['getAttribute']('vid_end');_0x1b2310['_setAttribute']('vid_end',_0x1d333e),_0x45da46['_setAttribute']('vid_end',_0x1a7e0e),this['_touched']['set'](_0x1b2310['getAttribute']('vid_end'),{'userId':_0x57b2ae}),this['_touched']['set'](_0x45da46['getAttribute']('vid_start'),{'userId':_0x57b2ae});}else{const _0x15dcfb=this['_revisionId']++,_0x3a1b1c=this['_revisionId']++;_0x1b2310['_setAttribute']('vid_end',_0x15dcfb),_0x45da46['_setAttribute']('vid_start',_0x3a1b1c),_0x45da46['_setAttribute']('vid_end',_0x1c867b),this['_touched']['set'](_0x15dcfb,{'userId':_0x57b2ae}),this['_touched']['set'](_0x3a1b1c,{'userId':_0x57b2ae});}}['_handleMarkerOperation'](_0x3e2cf0){if(!_0x3e2cf0['affectsData'])return;const _0x23fe06=(_0x3e2cf0=this['_cloneOperation'](_0x3e2cf0,this['_diffRoots']))['oldRange']?_0x3e2cf0['oldRange']['root']:null,_0x1b3908=_0x3e2cf0['newRange']?_0x3e2cf0['newRange']['root']:null;_0x23fe06&&this['_markers']['delete'](_0x3e2cf0['name']),_0x1b3908&&this['_markers']['set'](_0x3e2cf0['name'],_0x3e2cf0['newRange']['clone']());const _0x53fcf2=null===_0x3e2cf0['_authorId']?null:_0x3e2cf0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x49520e=_0x3e2cf0['name'];if(!this['_touchedMarkers']['has'](_0x49520e))return void this['_touchedMarkers']['set'](_0x49520e,{'range':_0x3e2cf0['oldRange'],'userId':_0x53fcf2});const _0x246449=this['_touchedMarkers']['get'](_0x49520e),_0x30c294=_0x246449['range'],_0x16b775=_0x3e2cf0['newRange'];null==_0x30c294&&null==_0x16b775||_0x30c294&&_0x16b775&&_0x30c294['isEqual'](_0x16b775)?this['_touchedMarkers']['delete'](_0x3e2cf0['name']):_0x246449['userId']=_0x53fcf2;}['_handleRootOperation'](_0x20b88b,_0x4b625d){this['_diffRoots']['has'](_0x20b88b['rootName'])?this['_diffRoots']['get'](_0x20b88b['rootName'])['_isAttached']=_0x20b88b['isAdd']:(this['_diffRoots']['set'](_0x20b88b['rootName'],N(_0x20b88b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x20b88b['rootName'],{}),_0x4b625d&&this['_idsRoots']['set'](_0x20b88b['rootName'],N(_0x20b88b['rootName'],!0x0)));const _0x217c36=null===_0x20b88b['_authorId']?null:_0x20b88b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2d6404=this['_touchedRoots']['get'](_0x20b88b['rootName']);_0x2d6404&&_0x2d6404['userId']===_0x217c36?this['_touchedRoots']['delete'](_0x20b88b['rootName']):this['_touchedRoots']['set'](_0x20b88b['rootName'],{'userId':_0x217c36,'isAttached':_0x20b88b['isAdd']});}['_handleRootAttributeOperation'](_0x592631){const _0x250987=this['_diffRootsAttributes']['get'](_0x592631['root']['rootName']);null===_0x592631['newValue']?delete _0x250987[_0x592631['key']]:_0x250987[_0x592631['key']]=_0x592631['newValue'];}}function x(_0x5d8326){const _0x57bc18=N(_0x5d8326['rootName'],_0x5d8326['isAttached']());for(const _0x56e19e of _0x5d8326['getChildren']()){const _0x49b29f=_0x56e19e['_clone'](!0x0);_0x57bc18['_appendChild'](_0x49b29f);}return _0x57bc18;}function N(_0x21ec95,_0x429dcb=!0x0){const _0x48b4f9=new _0x3a58c7();return _0x48b4f9['rootName']=_0x21ec95,_0x48b4f9['_isAttached']=_0x429dcb,_0x48b4f9['isAttached']=()=>_0x48b4f9['_isAttached'],_0x48b4f9;}function P(_0x1cb70e,_0x15347,_0x475c37){const _0x5f4fa1='elementEnd'==_0x1cb70e['type']?_0x475c37['createPositionAt'](_0x1cb70e['item'],'end'):_0x475c37['createPositionBefore'](_0x1cb70e['item']);return _0x475c37['createPositionFromPath'](_0x15347,_0x5f4fa1['path'],_0x5f4fa1['stickiness']);}function V(_0x1321c3,_0x159223,_0x51d15b){const _0x32b62c='elementStart'==_0x1321c3['type']?_0x51d15b['createPositionAt'](_0x1321c3['item'],0x0):_0x51d15b['createPositionAfter'](_0x1321c3['item']);return _0x51d15b['createPositionFromPath'](_0x159223,_0x32b62c['path'],_0x32b62c['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2d60e1(_0x4d7898){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xf70b13,_0x259934){super(_0xf70b13),this['focusTracker']=new _0x49e298(),this['keystrokes']=new _0x423e40(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x259934),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'](),_0x31915b({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xe01afb=_0x483c32=>_0x483c32['stopPropagation']();this['keystrokes']['set']('arrowright',_0xe01afb),this['keystrokes']['set']('arrowleft',_0xe01afb),this['keystrokes']['set']('arrowup',_0xe01afb),this['keystrokes']['set']('arrowdown',_0xe01afb);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x33a094){this['revisionNameInputView']['fieldView']['element']['value']=_0x33a094['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xd2def4){const _0x191e56=new ti(this['locale'],_0x387a81),_0x935c8a=_0x191e56['fieldView'];_0x935c8a['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4ebe6d=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0xd2def4&&(_0x4ebe6d+='\x20('+R(this['locale'],'optional')+')'),(_0x191e56['label']=_0x4ebe6d,_0x935c8a['on']('input',()=>{this['revisionNameInputValue']=_0x935c8a['element']['value']['trim']();}),_0x191e56);}}class v extends _0x858dc7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x1b4406=this['editor'],_0x593ffb=_0x1b4406['plugins']['get']('RevisionTracker');_0x1b4406['ui']['componentFactory']['add']('revisionHistory',_0xf669fc=>{const _0x5b0639=_0x2842e0(_0xf669fc),_0x1c6dec=_0x5b0639['panelView']['children'],_0x1e4549=new _0x429da2(_0xf669fc),_0x33be72=new _0x44d3c5(_0xf669fc),_0x54bd2f=new _0x1b0a61(_0xf669fc),_0x801a2e=new _0x44d3c5(_0xf669fc),_0x26376e=new _0x1b0a61(_0xf669fc);return _0x5b0639['bind']('isEnabled')['to'](_0x593ffb,'isReady',_0x593ffb,'isEnabled',_0x1b4406,'isReadOnly',(_0x5cb846,_0x59087e,_0x578405)=>_0x5cb846&&_0x59087e&&!_0x578405),_0x5b0639['buttonView']['set']({'icon':_0xd5d852,'label':R(_0xf669fc,'Revision\x20history'),'tooltip':!0x0}),_0x54bd2f['set']({'label':R(_0xf669fc,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x54bd2f['bind']('isEnabled')['to'](_0x593ffb,'isReady',_0x593ffb,'isEnabled',_0x1b4406,'isReadOnly',(_0x2a0bf0,_0x1c4f49,_0x372e5c)=>_0x2a0bf0&&_0x1c4f49&&!_0x372e5c),_0x54bd2f['on']('execute',()=>this['_showDialog']()),_0x26376e['set']({'label':R(_0xf669fc,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x26376e['bind']('isEnabled')['to'](_0x593ffb,'isReady',_0x1b4406,'isReadOnly',(_0x514706,_0x9faae6)=>_0x514706&&!_0x9faae6),_0x26376e['on']('execute',()=>{_0x1b4406['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5b0639['isOpen']=!0x1,_0x1b4406['editing']['view']['focus']();}),_0x33be72['children']['add'](_0x54bd2f),_0x801a2e['children']['add'](_0x26376e),_0x1e4549['role']='menu',_0x1e4549['items']['addMany']([_0x33be72,_0x801a2e]),_0x1c6dec['add'](_0x1e4549),_0x5b0639;}),_0x1b4406['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5930ef=this['editor'],_0x1b1e57=_0x5930ef['locale'],_0xa3396=new _0x2dadf2(_0x1b1e57),_0x5432e4=new _0x3e73a4(_0x1b1e57);_0xa3396['buttonView']['set']({'icon':_0xd5d852,'label':R(_0x1b1e57,'Revision\x20history')});const _0x4a1e9f=new _0x2266b9(_0x1b1e57,_0xa3396),_0x432bdf=new _0x1ca924(_0x1b1e57);_0x432bdf['set']({'label':R(_0x1b1e57,'Save\x20current\x20revision')}),_0x432bdf['delegate']('execute')['to'](_0xa3396),_0x432bdf['on']('execute',()=>{this['_showDialog']();}),_0x4a1e9f['children']['add'](_0x432bdf),_0x5432e4['items']['add'](_0x4a1e9f);const _0x1a09ac=new _0x2266b9(_0x1b1e57,_0xa3396),_0x4d441f=new _0x1ca924(_0x1b1e57);return _0x4d441f['set']({'label':R(_0x1b1e57,'Open\x20revision\x20history')}),_0x4d441f['delegate']('execute')['to'](_0xa3396),_0x4d441f['on']('execute',()=>{_0x5930ef['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1a09ac['children']['add'](_0x4d441f),_0x5432e4['items']['add'](_0x1a09ac),_0xa3396['panelView']['children']['add'](_0x5432e4),_0xa3396;}['_showDialog'](){const _0x14169f=this['editor'],_0x30b6c5=_0x14169f['locale'],_0x23aa7c=_0x14169f['plugins']['get']('Dialog'),_0x2717c3=_0x14169f['plugins']['get']('RevisionTracker');function _0x39c7fb(_0x2f2072){_0x14169f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2f2072['revisionName']?_0x2f2072['revisionNameInputView']['errorText']=R(_0x30b6c5,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x14169f['plugins']['get'](h)['saveRevision']({'name':_0x2f2072['revisionName']}),_0x23aa7c['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x39c7fb(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x23aa7c['show']({'id':'revisionSave','title':R(_0x30b6c5,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x14169f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x23aa7c['hide']()},{'label':R(_0x14169f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4fb832){_0x4fb832['bind']('isEnabled')['to'](_0x2717c3,'isReady',_0x2717c3,'isEnabled',_0x14169f,'isReadOnly',(_0x13c51a,_0xdf9d8c,_0x49afad)=>_0x13c51a&&_0xdf9d8c&&!_0x49afad);},'onExecute':()=>_0x39c7fb(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x534784=this['editor'],_0xd06dc0=_0x534784['locale'];this['_saveRevisionFormView']=new he(_0xd06dc0,_0x534784['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x4d7898{['changeId'];['_model'];constructor(_0x3c5dcf,_0x350c98){super(_0x3c5dcf),this['_model']=_0x350c98,this['changeId']=_0x350c98['id'];const _0x556756=this['bindTemplate'],_0x4cd57f=R(_0x3c5dcf,_0x350c98['data']['isSuggestion']?'Suggested\x20by':'add'==_0x350c98['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x350c98['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x556756['to']('type',_0x10f810=>'ck-revision-change__'+_0x10f810)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4cd57f}]},{'text':'\x20'+_0x350c98['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x235c38(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1eb48c){super(),this['id']=_0x1eb48c['id']||_0x1a737e(),this['author']=_0x1eb48c['author'],this['type']=_0x1eb48c['type'],this['data']=_0x1eb48c['data']||{},this['rootName']=_0x1eb48c['rootName'],this['set']('createdAt',_0x1eb48c['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(_0x4d14e3,_0x40ed3e){this['newRevisionId']=_0x4d14e3,this['oldRevisionId']=_0x40ed3e,this['changes']=new _0x1d5790();}['_setChanges'](_0xf036dc){for(const _0x51ff94 of _0xf036dc)this['changes']['add'](_0x51ff94);}}class l extends _0x858dc7{['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[_0x267b04,_0x55b3a5,S,$];}constructor(_0x8c1f2){super(_0x8c1f2),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',(_0x1603c8,_0x162d28,_0x2426b6)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xd55567=>{for(const _0x4aac89 of this['editor']['editing']['view']['document']['roots'])_0x2426b6?_0xd55567['removeClass']('ck-editor__editable__overlay',_0x4aac89):_0xd55567['addClass']('ck-editor__editable__overlay',_0x4aac89);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x209c30=>null!==_0x209c30),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x587d4e,_0xedb61,_0x5758f9)=>_0x587d4e&&_0x5758f9?_0xedb61['changes']['getIndex'](_0x5758f9):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1f3a34,_0x133c2d)=>_0x1f3a34?_0x133c2d['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x55b3a5);}['init'](){const _0x3bf345=this['editor'],_0x3586d8=new ot(_0x3bf345,{'direction':'backward'}),_0x258f16=new ot(_0x3bf345,{'direction':'forward'});(_0x3bf345['commands']['add']('showPreviousChange',_0x3586d8),_0x3bf345['commands']['add']('showNextChange',_0x258f16),_0x3bf345['commands']['add']('restoreRevision',new nt(_0x3bf345)),this['on']('change:numberOfChanges',()=>{_0x3586d8['refresh'](),_0x258f16['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3bf345['enableReadOnlyMode']('revision-viewer'),_0x3bf345['plugins']['has']('WidgetToolbarRepository'))&&_0x3bf345['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x5be6d2){return await this['_utils']['loadRevisionData'](_0x5be6d2,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5be6d2);}async['getRevisionRootsAttributes'](_0x5ddc7d){return await this['_utils']['loadRevisionData'](_0x5ddc7d,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5ddc7d);}async['compare'](_0x1c272d,_0x4729af,_0x429414=!0x1){if(!this['isEnabled'])return;const _0x35c324=this['diff'],_0x579aad=this['repository'],_0x28e9ef='string'==typeof _0x1c272d?_0x579aad['getRevision'](_0x1c272d):_0x1c272d,_0x55af43='string'==typeof _0x4729af?_0x579aad['getRevision'](_0x4729af):_0x4729af,_0x43d4e7=_0x28e9ef['id'],_0x3bb687=_0x55af43?_0x55af43['id']:null;if(!_0x429414&&this['diff']&&this['diff']['newRevisionId']===_0x43d4e7&&this['diff']['oldRevisionId']===_0x3bb687)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x43d4e7,_0x3bb687);const _0x48ea86=this['_getRevisionsRange'](_0x28e9ef,_0x55af43,!0x0)['map'](_0x2c5c5f=>this['_utils']['loadRevisionData'](_0x2c5c5f,this['adapter']));return _0x48ea86['push'](new Promise(_0x11316b=>{setTimeout(_0x11316b,0x14);})),Promise['all'](_0x48ea86)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x47da56=this['_getDiff'](_0x43d4e7,_0x3bb687);for(const _0x3cd108 of _0x47da56['changes'])this['_changeIdToChange']['set'](_0x3cd108['id'],_0x3cd108);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x29e249=>{for(const _0x49d530 of this['editor']['model']['document']['getRootNames']())_0x29e249['detachRoot'](_0x49d530);for(const _0x2eaec8 of Object['keys'](_0x47da56['model'])){const _0x48b3a7=_0x29e249['addRoot'](_0x2eaec8);for(const _0x2a9330 of Object['keys'](_0x47da56['attributes'][_0x2eaec8]))_0x29e249['setAttribute'](_0x2a9330,_0x47da56['attributes'][_0x2eaec8][_0x2a9330],_0x48b3a7);_0x29e249['insert'](_0x47da56['model'][_0x2eaec8],_0x48b3a7,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x47da56['changes'])),this['isReady']=!0x0;})['catch'](_0x3a92c6=>{console['error'](_0x3a92c6),this['_cleanUp'](),_0x35c324&&(this['diff']=_0x35c324),this['isReady']=!0x0;});}['addRevisionData'](_0x3bf8e1,_0x321cf8){const _0x28d7f7=this['repository']['createRevision'](_0x3bf8e1);return _0x28d7f7['on']('_update',(_0x40ac30,_0x16b463,_0x49c991)=>_0x321cf8(_0x16b463,_0x49c991,_0x28d7f7)),this['repository']['addRevision'](_0x28d7f7),_0x28d7f7;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2a95f2=>{for(const _0x2c943f of this['editor']['model']['document']['getRootNames']())_0x2a95f2['detachRoot'](_0x2c943f);});}['_sortAndFilterDiffChanges'](_0x290a33){const _0x25d78d=[],_0xb255f1=new Map();for(const _0x28f7a7 of this['editor']['model']['document']['getRootNames']()){const _0x12781b=this['editor']['editing']['view']['getDomRoot'](_0x28f7a7);if(!_0x12781b)continue;const _0xc705b6=_0x12781b['getClientRects']()['item'](0x0);_0xc705b6&&(_0x25d78d['push'](_0x28f7a7),_0xb255f1['set'](_0x28f7a7,_0xc705b6));}return _0x25d78d['sort']((_0x4d2c17,_0x2015a3)=>{const _0x105936=_0xb255f1['get'](_0x4d2c17),_0x18e0d7=_0xb255f1['get'](_0x2015a3);return _0x105936['y']-_0x18e0d7['y']||_0x105936['x']-_0x18e0d7['x'];}),(_0x290a33=_0x290a33['filter'](_0x410430=>_0x25d78d['includes'](_0x410430['rootName'])))['sort']((_0x5a3e8e,_0x55c59a)=>_0x25d78d['indexOf'](_0x5a3e8e['rootName'])-_0x25d78d['indexOf'](_0x55c59a['rootName'])),_0x290a33;}['_makeTape'](_0x5d88e8){const _0x39bf33=Array['from'](_0x5d88e8['markers'])['filter'](([_0xd1274b,_0x44e8f1])=>_0xd1274b['startsWith']('revision:')&&!_0x44e8f1['isCollapsed']),_0x66fce=Array['from'](this['editor']['model']['createRangeIn'](_0x5d88e8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x39bf33['length'])for(const _0x295d00 of _0x66fce){const [_0x22ced1,_0x440385]=_0x39bf33[0x0],[,_0x59989a,_0x288df5]=_0x22ced1['split'](':');if(_0x440385['end']['isEqual'](_0x295d00['nextPosition'])&&_0x39bf33['shift'](),(_0x295d00['previousPosition']['isEqual'](_0x440385['start'])||_0x295d00['previousPosition']['isAfter'](_0x440385['start']))&&('insertion'==_0x59989a?_0x295d00['isAdded']={'userId':_0x288df5}:'deletion'==_0x59989a&&(_0x295d00['isRemoved']={'userId':_0x288df5})),0x0==_0x39bf33['length'])break;}return _0x66fce;}['_refreshStartEndIndex'](_0x5c5426){const _0x479fdc=new Map();for(let _0x20736c=0x0;_0x20736c<_0x5c5426['length'];_0x20736c++)'text'===_0x5c5426[_0x20736c]['type']?(_0x5c5426[_0x20736c]['item']['startIndex']=_0x20736c,_0x5c5426[_0x20736c]['item']['endIndex']=_0x20736c):('elementStart'===_0x5c5426[_0x20736c]['type']?_0x5c5426[_0x20736c]['item']['startIndex']=_0x20736c:'elementEnd'===_0x5c5426[_0x20736c]['type']&&(_0x5c5426[_0x20736c]['item']['endIndex']=_0x20736c),_0x479fdc['set'](_0x5c5426[_0x20736c]['id'],_0x20736c));for(const _0x2e9f73 of _0x479fdc['values']())'elementStart'===_0x5c5426[_0x2e9f73]['type']?_0x5c5426[_0x2e9f73]['item']['endIndex']=_0x479fdc['get'](_0x5c5426[_0x2e9f73]['pairId']):'elementEnd'===_0x5c5426[_0x2e9f73]['type']&&(_0x5c5426[_0x2e9f73]['item']['startIndex']=_0x479fdc['get'](_0x5c5426[_0x2e9f73]['pairId']));}['_processTape'](_0x2160a0){for(let _0xa51c4f=0x0;_0xa51c4f<_0x2160a0['length'];_0xa51c4f++){if('elementStart'===_0x2160a0[_0xa51c4f]['type'])_0x2160a0[_0xa51c4f]['item']['startIndex']=_0xa51c4f;else{if('elementEnd'===_0x2160a0[_0xa51c4f]['type']){_0x2160a0[_0xa51c4f]['item']['endIndex']=_0xa51c4f;const _0xe948cc=_0x2160a0[_0xa51c4f]['item']['startIndex'];_0x2160a0[_0xe948cc]['pairId']=_0x2160a0[_0xa51c4f]['id'],_0x2160a0[_0xa51c4f]['pairId']=_0x2160a0[_0xe948cc]['id'];}else _0x2160a0[_0xa51c4f]['item']['startIndex']=_0xa51c4f,_0x2160a0[_0xa51c4f]['item']['endIndex']=_0xa51c4f,_0x2160a0[_0xa51c4f]['pairId']=null;}_0x2160a0[_0xa51c4f]['markersStart']||(_0x2160a0[_0xa51c4f]['markersStart']=[],_0x2160a0[_0xa51c4f]['markersEnd']=[]);}}['_markInsertions'](_0xe184de,_0x31fdce){const _0x3de0fd=_0xe184de['filter'](_0x4f1880=>!_0x4f1880['isAdded']);for(let _0x2ad7ac=0x0;_0x2ad7ac<_0x31fdce['length'];_0x2ad7ac++)_0x31fdce[_0x2ad7ac]['isAdded']&&(_0x3de0fd[_0x2ad7ac]['isAdded']=_0x31fdce[_0x2ad7ac]['isAdded']);}['_getDiff'](_0x27cebd,_0x3b7068=null){const _0x19c3fe=this['repository']['getRevision'](_0x27cebd),_0x1ed555=_0x3b7068?this['repository']['getRevision'](_0x3b7068):null,_0xf9aaa0=this['_getRevisionsRange'](_0x19c3fe,_0x1ed555),_0x18f517=_0xf9aaa0[_0xf9aaa0['length']-0x1],_0x40533c=new Map(),_0x5d7339={'model':{},'attributes':{},'changes':[]},_0x55a3dc=new Set(),_0x12ba6e=new Map();for(let _0x528a43=_0xf9aaa0['length']-0x1;_0x528a43>=0x0;_0x528a43--){const _0x3c266a=_0xf9aaa0[_0x528a43];for(const _0x5c6f60 of Object['keys'](_0x3c266a['diffData']))if(_0x3c266a['diffData'][_0x5c6f60]['attachChange']){const _0x4f3020=_0x3c266a['diffData'][_0x5c6f60]['attachChange'];_0x4f3020['isAttached']?(_0x55a3dc['add'](_0x5c6f60),_0x12ba6e['has'](_0x5c6f60)&&_0x12ba6e['get'](_0x5c6f60)['userId']==_0x4f3020['userId']?_0x12ba6e['delete'](_0x5c6f60):_0x12ba6e['set'](_0x5c6f60,_0x4f3020)):_0x12ba6e['has'](_0x5c6f60)?(_0x55a3dc['delete'](_0x5c6f60),_0x12ba6e['delete'](_0x5c6f60)):(_0x55a3dc['add'](_0x5c6f60),_0x12ba6e['set'](_0x5c6f60,_0x4f3020));}else _0x55a3dc['add'](_0x5c6f60);}for(const _0x1c3319 of _0x55a3dc){const _0x4ab1a8=_0x12ba6e['has'](_0x1c3319)&&!_0x12ba6e['get'](_0x1c3319)['isAttached'];let _0x4e2353=_0x4ab1a8?_0xf9aaa0['length']-0x1:0x0;const _0x1576f2=_0x4ab1a8?-0x1:0x1;for(;_0xf9aaa0[_0x4e2353];){const _0x44a593=_0xf9aaa0[_0x4e2353];if(_0x44a593['diffData'][_0x1c3319]){const _0x567057=_0x4ab1a8?_0x44a593['diffData'][_0x1c3319]['attributesBefore']:_0x44a593['diffData'][_0x1c3319]['attributesAfter'];_0x5d7339['attributes'][_0x1c3319]=_0x567057?_0x2b75d6(_0x567057):{};break;}_0x4e2353+=_0x1576f2;}}for(const _0x23d38b of _0xf9aaa0){_0x23d38b['model']={};for(const _0x2e8b17 of _0x23d38b['authors'])_0x40533c['set'](_0x2e8b17['id'],_0x2e8b17);for(const _0x3dbc81 of _0x55a3dc){const _0x3142ba=_0x23d38b['diffData'][_0x3dbc81]?_0x23d38b['diffData'][_0x3dbc81]['insertions']:'[]',_0x13a0b2=_0x23d38b['diffData'][_0x3dbc81]?_0x23d38b['diffData'][_0x3dbc81]['deletions']:'[]';_0x23d38b['model'][_0x3dbc81]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3142ba),'deletions':this['_utils']['_makeModelFromViewString'](_0x13a0b2)};}}for(const _0x477545 of _0x55a3dc){let _0x3ac2ad=null,_0x275251=0x0;const _0x4ad93b=new Map(Array['from'](_0x19c3fe['model'][_0x477545]['insertions']['markers'])['filter'](([_0x43969d])=>!_0x43969d['startsWith']('revision:')));let _0x1eb0d8=0x0;for(const _0x3aa24b of _0xf9aaa0){const _0x2994f2=this['_makeTape'](_0x3aa24b['model'][_0x477545]['insertions']);_0x3aa24b==_0x19c3fe?(_0x3ac2ad=_0x2994f2,_0x275251=_0x3ac2ad['length'],_0x3ac2ad['forEach'](_0x2c8e56=>{_0x2c8e56['id']=_0x1eb0d8++;}),this['_processTape'](_0x3ac2ad)):this['_markInsertions'](_0x3ac2ad,_0x2994f2);const _0x19041=_0x3ac2ad['filter'](_0x1c9602=>!_0x1c9602['isAdded'])['map'](_0x174c63=>_0x174c63['id']);let _0x221b21=0x0;const _0x5d549c=this['_makeTape'](_0x3aa24b['model'][_0x477545]['deletions']);_0x5d549c['forEach'](_0x3b66f2=>{_0x3b66f2['isRemoved']?_0x3b66f2['id']=_0x275251++:_0x3b66f2['id']=_0x19041[_0x221b21++];}),this['_processTape'](_0x5d549c),this['_setDistance'](_0x3ac2ad,'isAdded'),this['_setDistance'](_0x5d549c,'isRemoved'),_0x3aa24b==_0x19c3fe&&this['_markMarkers'](_0x3ac2ad,_0x4ad93b),_0x3ac2ad=this['_joinTapes'](_0x3ac2ad,_0x5d549c),this['_refreshStartEndIndex'](_0x3ac2ad),this['_setDistance'](_0x3ac2ad,'isRemoved');}_0x3ac2ad=_0x3ac2ad['filter'](_0x2d9f59=>!(_0x2d9f59['isAdded']&&_0x2d9f59['isRemoved']));const _0x1b1d3e=new Map(_0x18f517['model'][_0x477545]['deletions']['markers']),_0x28d626=new Set(_0x4ad93b['keys']());for(const _0x5b90a6 of _0x1b1d3e['keys']())_0x28d626['delete'](_0x5b90a6);this['_markSuggestions'](_0x3ac2ad,_0x28d626),this['_fixObsoleteTags'](_0x3ac2ad),_0x3ac2ad=this['_removeMissingPairs'](_0x3ac2ad),_0x3ac2ad=this['_markMismatchedRemovedTags'](_0x3ac2ad),_0x3ac2ad=this['_removeUnsupportedChanges'](_0x3ac2ad);const {root:_0x5ee7fe,changes:_0x5e65cd}=this['_makeModelFromTape'](_0x3ac2ad,_0x40533c,_0x477545);_0x5d7339['model'][_0x477545]=_0x5ee7fe;const _0x3f929f=_0x12ba6e['get'](_0x477545);if(_0x3f929f){const _0x8ab5c4=_0x40533c['get'](_0x3f929f['userId']),_0x24f5a9=new G({'author':_0x8ab5c4,'type':_0x3f929f['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x477545});_0x5e65cd['unshift'](_0x24f5a9),_0x5d7339['attributes'][_0x477545]['revisionHistoryAttachChange']=_0x24f5a9['id'];}_0x5d7339['changes']=_0x5d7339['changes']['concat'](_0x5e65cd);}return _0x5d7339;}['_markMarkers'](_0x537776,_0x2b9a05){for(let _0x599bf8=0x0;_0x599bf8<_0x537776['length'];_0x599bf8++)for(const [_0xaa003a,_0x32b568]of _0x2b9a05)!_0x32b568['isCollapsed']&&_0x32b568['start']['isEqual'](_0x537776[_0x599bf8]['previousPosition'])&&_0x537776[_0x599bf8]['markersStart']['push'](_0xaa003a),_0x32b568['end']['isEqual'](_0x537776[_0x599bf8]['nextPosition'])&&_0x537776[_0x599bf8]['markersEnd']['push'](_0xaa003a);}['_joinTapes'](_0x38e666,_0x2fa61e){let _0x4cbdff=[],_0x37ac86=0x0,_0x16c52f=0x0;for(;_0x37ac86<_0x38e666['length']||_0x16c52f<_0x2fa61e['length'];){const _0x36d78c=_0x38e666[_0x37ac86]||{},_0x5981fb=_0x2fa61e[_0x16c52f]||{};if(_0x36d78c['id']==_0x5981fb['id'])_0x37ac86++,_0x16c52f++,_0x4cbdff['push'](_0x36d78c);else{if(_0x5981fb['isRemoved']&&_0x36d78c['isAdded']){const {commonTape:_0x4c7527,iEnd:_0x185e18,jEnd:_0x3f1526}=this['_threeWayMerge'](_0x38e666,_0x37ac86,_0x2fa61e,_0x16c52f);_0x4cbdff=_0x4cbdff['concat'](_0x4c7527),_0x37ac86=_0x185e18,_0x16c52f=_0x3f1526;}else _0x5981fb['isRemoved']?(_0x16c52f++,_0x4cbdff['push'](_0x5981fb)):(_0x37ac86++,_0x4cbdff['push'](_0x36d78c));}}return _0x4cbdff;}['_markSuggestions'](_0x39b513,_0x5c6615){const _0x1b4ed5=[];for(let _0xc75f28=0x0;_0xc75f28<_0x39b513['length'];_0xc75f28++){for(let _0x5c4762=0x0;_0x5c4762<_0x39b513[_0xc75f28]['markersStart']['length'];_0x5c4762++){const _0x278409=_0x39b513[_0xc75f28]['markersStart'][_0x5c4762];if(!_0x5c6615['has'](_0x278409))continue;const {group:_0x11eea8,type:_0x2706da,authorId:_0x1c35ef}=_0x55df35(_0x278409);'revision-suggestion'!=_0x11eea8||'insertion'!=_0x2706da&&'deletion'!=_0x2706da||(_0x1b4ed5['unshift']({'type':_0x2706da,'name':_0x278409,'userId':_0x1c35ef}),_0x39b513[_0xc75f28]['markersStart']['splice'](_0x5c4762,0x1),_0x5c4762--);}_0x77c0b7(_0x39b513[_0xc75f28]);for(let _0x310c65=0x0;_0x310c65<_0x39b513[_0xc75f28]['markersEnd']['length'];_0x310c65++){const _0x3e72af=_0x39b513[_0xc75f28]['markersEnd'][_0x310c65];if(!_0x5c6615['has'](_0x3e72af))continue;const {group:_0x155cb5,type:_0x13d6cc}=_0x55df35(_0x3e72af);if('revision-suggestion'!=_0x155cb5||'insertion'!=_0x13d6cc&&'deletion'!=_0x13d6cc)continue;_0x39b513[_0xc75f28]['markersEnd']['splice'](_0x310c65,0x1),_0x310c65--;const _0x87f172=_0x1b4ed5['findIndex'](_0x4cbdbb=>_0x4cbdbb['name']==_0x3e72af);_0x87f172>-0x1&&_0x1b4ed5['splice'](_0x87f172,0x1);}}function _0x55df35(_0x460f1e){const _0x59a35d=_0x460f1e['split'](':');return{'group':_0x59a35d[0x0],'type':_0x59a35d[0x1],'subType':_0x59a35d['length']>=0x5?_0x59a35d[0x2]:null,'id':_0x59a35d['length']<0x5?_0x59a35d[0x2]:_0x59a35d[0x3],'authorId':_0x59a35d['length']<0x5?_0x59a35d[0x3]:_0x59a35d[0x4],'markerCount':0x6==_0x59a35d['length']?_0x59a35d[0x5]:null};}function _0x77c0b7(_0x4eb7fe){for(let _0x2c9fc1=0x0;_0x2c9fc1<_0x1b4ed5['length'];_0x2c9fc1++){if(_0x4eb7fe['isAdded']&&'insertion'==_0x1b4ed5[_0x2c9fc1]['type']&&_0x4eb7fe['isAdded']['userId']==_0x1b4ed5[_0x2c9fc1]['userId'])return _0x4eb7fe['isAddSuggestion']=_0x1b4ed5[_0x2c9fc1],void delete _0x4eb7fe['isAdded'];if(!_0x4eb7fe['isAdded']&&!_0x4eb7fe['isRemoved']&&'deletion'==_0x1b4ed5[_0x2c9fc1]['type'])return void(_0x4eb7fe['isRemoveSuggestion']=_0x1b4ed5[_0x2c9fc1]);}}}['_setDistance'](_0x524c28,_0xcbe678){let _0x31f9fb=0x0,_0x3bdd4b=!0x1;const _0x40018a=new Map();for(const _0x4a0af2 of _0x524c28)_0x4a0af2[_0xcbe678]?_0x3bdd4b&&(_0x31f9fb++,_0x3bdd4b=!0x1):(_0x31f9fb++,_0x3bdd4b=!0x0),_0x40018a['set'](_0x4a0af2['id'],_0x31f9fb);for(let _0x29449a=0x0;_0x29449a<_0x524c28['length'];_0x29449a++){if('isRemoved'==_0xcbe678&&_0x524c28[_0x29449a]['isAdded']||'isAdded'==_0xcbe678&&_0x524c28[_0x29449a]['isRemoved'])continue;if('text'==_0x524c28[_0x29449a]['type']){_0x524c28[_0x29449a]['distance']=0x0;continue;}const _0x2945bc=_0x40018a['get'](_0x524c28[_0x29449a]['pairId']),_0xe9628b=_0x40018a['get'](_0x524c28[_0x29449a]['id']);_0x524c28[_0x29449a]['distance']=_0x2945bc-_0xe9628b;}}['_getRevisionsRange'](_0x49888d,_0x8705b,_0xe4de7f=!0x1){const _0x47010a=[];let _0x38c3d7=this['repository']['getIndex'](_0x49888d),_0x3aecd9=this['repository']['getIndex'](_0x8705b);for(-0x1==_0x3aecd9&&(_0x3aecd9=this['repository']['_revisions']['length'],_0xe4de7f=!0x1);_0x38c3d7<_0x3aecd9;)_0x47010a['push'](this['repository']['getRevision'](_0x38c3d7)),_0x38c3d7++;return _0xe4de7f&&_0x47010a['push'](this['repository']['getRevision'](_0x38c3d7)),_0x47010a;}['_threeWayMerge'](_0x4776e4,_0x24e38d,_0x24df9e,_0x55eb98){const _0x42d8f2=this['editor']['model']['schema'];let _0x13ad62=_0x24e38d;for(;_0x4776e4[_0x13ad62]&&_0x4776e4[_0x13ad62]['isAdded'];)_0x13ad62++;let _0x29bfd6=_0x55eb98;for(;_0x24df9e[_0x29bfd6]&&_0x24df9e[_0x29bfd6]['isRemoved'];)_0x29bfd6++;_0x1b528b(_0x4776e4,_0x24e38d,_0x13ad62),_0x1b528b(_0x24df9e,_0x55eb98,_0x29bfd6);const _0x5090ce=_0x24df9e['slice'](_0x55eb98,_0x29bfd6)['concat'](_0x4776e4['slice'](_0x24e38d,_0x13ad62));return _0x5090ce['sort']((_0x288205,_0x5c2551)=>_0x288205['side']!=_0x5c2551['side']?_0x288205['side']-_0x5c2551['side']:_0x288205['level']!=_0x5c2551['level']?_0x288205['level']-_0x5c2551['level']:_0x288205['distance']!=_0x5c2551['distance']?_0x5c2551['distance']-_0x288205['distance']:!!_0x288205['isAdded']!=!!_0x5c2551['isAdded']?-0x1==_0x288205['side']||0x0==_0x288205['side']?_0x288205['isAdded']?-0x1:0x1:_0x288205['isAdded']?0x1:-0x1:_0x288205['index']-_0x5c2551['index']),{'commonTape':_0x5090ce,'iEnd':_0x13ad62,'jEnd':_0x29bfd6};function _0x1b528b(_0x1e7a9c,_0x169b34,_0x17c683){let _0x442aef=-0x1,_0xf6d0a9=Number['POSITIVE_INFINITY'],_0x2400ce=!0x0;for(let _0xcba6bf=_0x169b34;_0xcba6bf<_0x17c683;_0xcba6bf++)if(_0x42d8f2['isInline'](_0x1e7a9c[_0xcba6bf]['item'])||(_0x2400ce=!0x1),_0x1e7a9c[_0xcba6bf]['item']['startIndex']<_0x169b34&&(_0x442aef=_0xcba6bf),_0x1e7a9c[_0xcba6bf]['item']['endIndex']>=_0x17c683){_0xf6d0a9=_0xcba6bf;break;}_0x2400ce&&(_0x442aef=_0x17c683-0x1);for(let _0x33f6c0=_0x169b34;_0x33f6c0<_0x17c683;_0x33f6c0++)_0x1e7a9c[_0x33f6c0]['side']=_0x33f6c0<=_0x442aef?-0x1:_0x33f6c0<_0xf6d0a9?0x0:0x1,_0x1e7a9c[_0x33f6c0]['index']=_0x33f6c0;let _0x2ac190=0x0;for(let _0x440f2f=_0x169b34;_0x440f2f<=_0x442aef;_0x440f2f++)0x0==_0x1e7a9c[_0x440f2f]['distance']?_0x1e7a9c[_0x440f2f]['level']=_0x2ac190:(_0x2ac190++,_0x1e7a9c[_0x440f2f]['level']=_0x2ac190,_0x2ac190++);for(let _0x52123c=_0x169b34;_0x52123c<_0x17c683;_0x52123c++)0x0==_0x1e7a9c[_0x52123c]['side']&&(_0x1e7a9c[_0x52123c]['level']=_0x2ac190);_0x2ac190=0x0;for(let _0x40b297=_0x17c683-0x1;_0x40b297>=_0xf6d0a9;_0x40b297--)0x0==_0x1e7a9c[_0x40b297]['distance']?_0x1e7a9c[_0x40b297]['level']=_0x2ac190:(_0x2ac190--,_0x1e7a9c[_0x40b297]['level']=_0x2ac190,_0x2ac190--);}}['_fixObsoleteTags'](_0x35b594){const _0x91db2f=new Map(),_0x5aa413=this['editor']['model']['schema'];for(let _0x2f2c65=0x1;_0x2f2c65<_0x35b594['length'];_0x2f2c65++){let _0x48453d,_0x369398,_0x30549f;const _0x1dc2ab=_0x35b594[_0x2f2c65],_0x54a386=_0x35b594[_0x2f2c65-0x1];if('text'==_0x1dc2ab['type'])continue;if(_0x1dc2ab['type']!=_0x54a386['type'])continue;if(!_0x5aa413['isBlock'](_0x54a386['item'])||_0x5aa413['isLimit'](_0x54a386['item']))continue;if(!_0x5aa413['isBlock'](_0x1dc2ab['item'])||_0x5aa413['isLimit'](_0x1dc2ab['item']))continue;if((_0x35b594[_0x2f2c65]['isAdded']||_0x35b594[_0x2f2c65]['isAddSuggestion'])&&_0x35b594[_0x2f2c65-0x1]['isRemoved'])_0x48453d=_0x35b594[_0x2f2c65],_0x369398=_0x35b594[_0x2f2c65-0x1],_0x30549f=_0x2f2c65-0x1;else{if(!_0x35b594[_0x2f2c65]['isRemoved']||!_0x35b594[_0x2f2c65-0x1]['isAdded']&&!_0x35b594[_0x2f2c65-0x1]['isAddSuggestion'])continue;_0x48453d=_0x35b594[_0x2f2c65-0x1],_0x369398=_0x35b594[_0x2f2c65],_0x30549f=_0x2f2c65;}const _0x545519=_0x48453d['level']==_0x369398['level'],_0x5dfd86=Math['abs'](_0x48453d['level'])<Math['abs'](_0x369398['level'])&&0x0==_0x369398['distance'];(_0x545519||_0x5dfd86)&&(_0x91db2f['set'](_0x369398['id'],_0x48453d['id']),_0x35b594['splice'](_0x30549f,0x1),_0x2f2c65--,_0x48453d['isAdded']=!0x1);}for(let _0x2bc37a=0x0;_0x2bc37a<_0x35b594['length'];_0x2bc37a++)_0x91db2f['has'](_0x35b594[_0x2bc37a]['pairId'])&&(_0x35b594[_0x2bc37a]['pairId']=_0x91db2f['get'](_0x35b594[_0x2bc37a]['pairId']));}['_removeMissingPairs'](_0x469b3d){const _0xc09700=new Set(_0x469b3d['map'](_0x30873f=>_0x30873f['id']));for(let _0x192c6a=0x0;_0x192c6a<_0x469b3d['length'];_0x192c6a++)_0xc09700['has'](_0x469b3d[_0x192c6a]['pairId'])||0x0==_0x469b3d[_0x192c6a]['distance']||(_0x469b3d[_0x192c6a]['isIncorrect']=!0x0);return _0x469b3d['filter'](_0x20c8ad=>!_0x20c8ad['isIncorrect']);}['_markMismatchedRemovedTags'](_0x546f48){const _0xa6422=new Set();for(let _0x226129=0x0;_0x226129<_0x546f48['length'];_0x226129++){if(_0xa6422['has'](_0x546f48[_0x226129]['id'])&&_0x546f48[_0x226129]['isRemoved']&&(_0x546f48[_0x226129]['isIncorrect']=!0x0),_0x546f48[_0x226129]['isIncorrect'])continue;if(0x0==_0x546f48[_0x226129]['distance'])continue;if('elementStart'!=_0x546f48[_0x226129]['type'])continue;if(null==_0x546f48[_0x226129]['pairId'])continue;let _0x8fab52=_0x226129+0x1,_0x3a11b9=0x0;for(;_0x546f48[_0x8fab52]['id']!=_0x546f48[_0x226129]['pairId'];)'elementStart'==_0x546f48[_0x8fab52]['type']?_0x3a11b9++:'elementEnd'==_0x546f48[_0x8fab52]['type']&&_0x3a11b9--,_0x8fab52++;if(0x0!=_0x3a11b9){if(_0x546f48[_0x226129]['isRemoved'])_0x546f48[_0x226129]['isIncorrect']=!0x0;else{for(;_0x8fab52!=_0x226129;)_0x546f48[_0x8fab52]['isRemoved']&&0x0!=_0x546f48[_0x8fab52]['distance']&&(_0x546f48[_0x8fab52]['isIncorrect']=!0x0,_0xa6422['add'](_0x546f48[_0x8fab52]['pairId'])),_0x8fab52--;}}}return _0x546f48['filter'](_0xcde37a=>!_0xcde37a['isIncorrect']);}['_removeUnsupportedChanges'](_0x23fefa){const _0x402db6=this['editor']['model']['schema'];for(let _0x157d1d=0x0;_0x157d1d<_0x23fefa['length'];_0x157d1d++){if(!(_0x23fefa[_0x157d1d]['isAdded']||_0x23fefa[_0x157d1d]['isAddSuggestion']||_0x23fefa[_0x157d1d]['isRemoved']||_0x23fefa[_0x157d1d]['isRemoveSuggestion']))continue;if(0x0==_0x23fefa[_0x157d1d]['distance'])continue;const _0x922c24=_0x23fefa[_0x157d1d]['item'];_0x402db6['isBlock'](_0x922c24)||_0x402db6['isLimit'](_0x922c24)||(_0x23fefa[_0x157d1d]['isAdded']&&delete _0x23fefa[_0x157d1d]['isAdded'],_0x23fefa[_0x157d1d]['isAddSuggestion']&&delete _0x23fefa[_0x157d1d]['isAddSuggestion'],_0x23fefa[_0x157d1d]['isRemoveSuggestion']&&delete _0x23fefa[_0x157d1d]['isRemoveSuggestion'],_0x23fefa[_0x157d1d]['isRemoved']&&(_0x23fefa[_0x157d1d]['isIncorrect']=!0x0));}return _0x23fefa['filter'](_0x47651e=>!_0x47651e['isIncorrect']);}['_makeModelFromTape'](_0x2bdb2a,_0x6a452e,_0xe58510){const _0x4028d9=new _0x3a58c7(),_0x2ac552=[],_0xd119cd=new Map(),_0x585720=this['editor']['model'],_0x129807=_0x585720['schema'],_0x57da44=[_0x4028d9],_0x491330={},_0x3e6d71={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x21917c=null;const _0x25bcc9=[0x0];for(let _0x3089a6=0x0;_0x3089a6<_0x2bdb2a['length'];_0x3089a6++)if('elementStart'===_0x2bdb2a[_0x3089a6]['type']){_0x2bdb2a[_0x3089a6]['previousPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9);const _0x1bbb8d=new _0x3061f3(_0x2bdb2a[_0x3089a6]['item']['name'],_0x2bdb2a[_0x3089a6]['item']['getAttributes']());_0x57da44[0x0]['_appendChild'](_0x1bbb8d),_0x25bcc9['push'](0x0),_0x57da44['unshift'](_0x1bbb8d),_0x2bdb2a[_0x3089a6]['nextPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9);}else'elementEnd'===_0x2bdb2a[_0x3089a6]['type']?(_0x57da44['shift'](),_0x2bdb2a[_0x3089a6]['previousPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9),_0x25bcc9['pop'](),_0x25bcc9[_0x25bcc9['length']-0x1]++,_0x2bdb2a[_0x3089a6]['nextPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9)):(_0x2bdb2a[_0x3089a6]['previousPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9),_0x21917c?_0x21917c['_data']+=_0x2bdb2a[_0x3089a6]['item']['data']:_0x21917c=new _0x54876f(_0x2bdb2a[_0x3089a6]['item']['data'],_0x2bdb2a[_0x3089a6]['item']['getAttributes']()),_0x2bdb2a[_0x3089a6+0x1]&&'text'===_0x2bdb2a[_0x3089a6+0x1]['type']&&_0x3e673b(_0x21917c,_0x2bdb2a[_0x3089a6+0x1]['item'])||(_0x57da44[0x0]['_appendChild'](_0x21917c),_0x21917c=null),_0x25bcc9[_0x25bcc9['length']-0x1]+=_0x2bdb2a[_0x3089a6]['item']['offsetSize'],_0x2bdb2a[_0x3089a6]['nextPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9));for(let _0x348324=0x0;_0x348324<_0x2bdb2a['length'];_0x348324++){const _0x38c591=_0x2bdb2a[_0x348324]['previousPosition'],_0xe31d98=_0x2bdb2a[_0x348324]['nextPosition'];for(const _0x236a1a of _0x2bdb2a[_0x348324]['markersStart'])_0xd119cd['set'](_0x236a1a,{'start':_0x38c591,'end':null});_0x10dbf3('isRemoveSuggestion',_0x348324,_0x38c591,_0xe31d98),_0x10dbf3('isAddSuggestion',_0x348324,_0x38c591,_0xe31d98),_0x10dbf3('isRemoved',_0x348324,_0x38c591,_0xe31d98),_0x10dbf3('isAdded',_0x348324,_0x38c591,_0xe31d98);for(const _0x461892 of _0x2bdb2a[_0x348324]['markersEnd']){const _0x402705=_0xd119cd['get'](_0x461892);_0x402705?_0x402705['end']=_0xe31d98:_0xd119cd['set'](_0x461892,{'start':_0xe31d98,'end':_0xe31d98});}}for(const [_0x4d8f30,_0x5d94b2]of _0xd119cd){const _0x36ce85=this['editor']['model']['createRange'](_0x5d94b2['start'],_0x5d94b2['end']);_0x4028d9['markers']['set'](_0x4d8f30,_0x36ce85);}return _0x2ac552['sort']((_0x19a4e0,_0x3bfa6f)=>{const _0x3def93=_0x4028d9['markers']['get']('revision:'+_0x19a4e0['id']),_0x26d11d=_0x4028d9['markers']['get']('revision:'+_0x3bfa6f['id']);return _0x3def93['start']['isBefore'](_0x26d11d['start'])?-0x1:_0x3def93['start']['isAfter'](_0x26d11d['start'])?0x1:_0x3def93['end']['isBefore'](_0x26d11d['end'])?-0x1:_0x3def93['end']['isAfter'](_0x26d11d['end'])?0x1:'add'===_0x19a4e0['type']?-0x1:0x1;}),{'root':_0x4028d9,'changes':_0x2ac552};function _0x10dbf3(_0x4f6619,_0x21147c,_0x2ea131,_0x52b1c6){const _0x21b686=!!_0x2bdb2a[_0x21147c][_0x4f6619],_0xb36863=_0x21b686?_0x2bdb2a[_0x21147c][_0x4f6619]['userId']:null,_0x411583=_0x21147c===_0x2bdb2a['length']-0x1,_0x18f901=_0x3e6d71[_0x4f6619][0x0],_0x15ff5a=_0x129807['isObject'](_0x2bdb2a[_0x21147c]['item']);!_0x491330[_0x4f6619]&&_0x21b686?_0x491330[_0x4f6619]={'start':_0x2ea131,'tapeItem':_0x2bdb2a[_0x21147c],'userId':_0xb36863,'type':_0x4f6619}:_0x491330[_0x4f6619]&&!_0x21b686?(_0x491330[_0x4f6619]['end']=_0x2ea131,_0x252f93(_0x491330[_0x4f6619]),_0x491330[_0x4f6619]=null):_0x491330[_0x4f6619]&&_0x21b686&&_0x491330[_0x4f6619]['userId']!==_0xb36863&&(_0x491330[_0x4f6619]['end']=_0x2ea131,_0x18f901&&_0x18f901['userId']===_0x491330[_0x4f6619]['userId']||_0x252f93(_0x491330[_0x4f6619]),_0x491330[_0x4f6619]={'start':_0x2ea131,'tapeItem':_0x2bdb2a[_0x21147c],'userId':_0xb36863,'type':_0x4f6619}),_0x491330[_0x4f6619]&&_0x15ff5a&&('elementStart'!==_0x2bdb2a[_0x21147c]['type']||_0x18f901&&_0x18f901['userId']===_0xb36863||_0x3e6d71[_0x4f6619]['unshift']({'userId':_0xb36863,'object':_0x2bdb2a[_0x21147c]['item'],'change':_0x491330[_0x4f6619]}),'elementEnd'===_0x2bdb2a[_0x21147c]['type']&&_0x18f901&&_0x18f901['object']===_0x2bdb2a[_0x21147c]['item']&&(_0x3e6d71[_0x4f6619]['shift'](),_0x491330[_0x4f6619]=_0x18f901['change'])),_0x491330[_0x4f6619]&&_0x411583&&(_0x491330[_0x4f6619]['end']=_0x52b1c6,_0x252f93(_0x491330[_0x4f6619]),_0x491330[_0x4f6619]=null);}function _0x252f93({start:_0x189f4f,end:_0x3764d2,tapeItem:_0x56e6f9,userId:_0x18e689,type:_0x431c57}){const _0x5632cd=_0x56e6f9['item'],_0x35b3ac=_0x585720['schema']['isBlock'](_0x5632cd)&&!_0x585720['schema']['isLimit'](_0x5632cd),_0x12cf18=_0x189f4f['nodeAfter']==_0x3764d2['parent']&&_0x3764d2['isAtStart'];if(_0x35b3ac&&_0x12cf18)return;const _0x2cf88d=_0x585720['createRange'](_0x189f4f,_0x3764d2),_0x9706e=_0x6a452e['get'](_0x18e689),_0x724dd4=new G({'author':_0x9706e,'type':'isAdded'==_0x431c57||'isAddSuggestion'==_0x431c57?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x431c57||'isRemoveSuggestion'==_0x431c57},'createdAt':new Date(),'rootName':_0xe58510});_0x2ac552['push'](_0x724dd4),_0x4028d9['markers']['set']('revision:'+_0x724dd4['id'],_0x2cf88d);}function _0x3e673b(_0x1fbcae,_0x10a17d){const _0x4f462f=_0x1fbcae['getAttributes'](),_0x4fe22e=_0x10a17d['getAttributes']();for(const _0x547d3f of _0x4f462f){if(_0x547d3f[0x1]!==_0x10a17d['getAttribute'](_0x547d3f[0x0]))return!0x1;_0x4fe22e['next']();}return _0x4fe22e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x26b7c0=>{const _0x1b5d6d=_0x26b7c0['markerName']['split'](':')[0x1],_0x4170cb=this['_getChangeFromId'](_0x1b5d6d);if(!_0x4170cb)return null;const _0x3c5657='add'==_0x4170cb['type']?'insertion':'deletion',_0x4df617=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3c5657];return _0x4170cb['data']['isSuggestion']&&_0x4df617['push']('ck-suggestion-marker-'+_0x3c5657+'-new'),this['activeChange']==_0x4170cb&&_0x4df617['push']('ck-suggestion-marker--active'),{'classes':_0x4df617,'attributes':{'data-change-id':_0x1b5d6d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x447ec3=>{_0x447ec3['on']('element:pre',(_0x228f6d,_0x24240c,_0x192b10)=>{const _0x19828a=_0x24240c['viewItem']['getChild'](0x0);if(!_0x19828a||!_0x19828a['is']('element','code'))return;if(!_0x192b10['consumable']['consume'](_0x19828a,{'attributes':['vid_start','vid_end']}))return;const _0x536502=_0x24240c['modelRange']['start']['nodeAfter'];_0x192b10['writer']['setAttribute']('vid_start',_0x19828a['getAttribute']('vid_start'),_0x536502),_0x192b10['writer']['setAttribute']('vid_end',_0x19828a['getAttribute']('vid_end'),_0x536502);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3ff276=>{_0x3ff276['on']('element',(_0x2acf8e,_0x4aca0e,_0x3a1c1b)=>{if(!_0x3a1c1b['consumable']['consume'](_0x4aca0e['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4aca0e['modelRange']['isCollapsed'])return;const _0x347779=_0x4aca0e['modelRange']['start']['nodeAfter'];_0x347779['hasAttribute']('vid_start')||_0x347779['hasAttribute']('vid')||(_0x3a1c1b['writer']['setAttribute']('vid_start',_0x4aca0e['viewItem']['getAttribute']('vid_start'),_0x347779),_0x3a1c1b['writer']['setAttribute']('vid_end',_0x4aca0e['viewItem']['getAttribute']('vid_end'),_0x347779));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x39901a=>_0x39901a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1ba4ef,[,_0x281165])=>{['vid_start','vid_end','vid']['includes'](_0x281165)&&(_0x1ba4ef['return']=!0x0,_0x1ba4ef['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1c493a=>{_0x1c493a['on']('attribute:vid',(_0x482aa8,_0x19fcf6,_0x2cc074)=>{if('\x20'!=_0x19fcf6['item']['data']||_0x19fcf6['item']['parent']['maxOffset']>0x1)return;if(!_0x2cc074['consumable']['consume'](_0x19fcf6['item'],_0x482aa8['name']))return;const _0x2bd83a=_0x2cc074['writer'],_0x2c3a56=_0x2cc074['mapper']['toViewRange'](_0x19fcf6['range']);_0x2bd83a['wrap'](_0x2c3a56,_0x2bd83a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4e592d){const _0x381b9e=_0x4e592d['plugins']['get']('RevisionViewer');return(_0x4c9e01,_0x4ee834,_0x1a1678)=>{const _0x2f9869=_0x4ee834['markerName']['split'](':')[0x1],_0x45743e=_0x381b9e['_getChangeFromId'](_0x2f9869);if(!_0x45743e)return null;const _0x14756a='add'==_0x45743e['type']?'split':'merge';if(!_0x1a1678['consumable']['test'](_0x4ee834['markerRange'],_0x4c9e01['name']))return;const _0x1965ad=_0x4ee834['markerRange']['getWalker'](),_0x493347=_0x4ee834['markerRange']['start'],_0x1da131=_0x4e592d['model']['schema'];let _0x373a6f=null,_0x516709=null,_0xb456ef=!0x1,_0x151b7e=!0x1;for(const _0xd943dc of _0x1965ad){const _0x50c7c5=_0xd943dc['item'];_0xb456ef=_0xb456ef||_0x1da131['isContent'](_0x50c7c5);const _0xdaefdd=_0x1a1678['mapper']['toViewElement'](_0x50c7c5);if(_0xdaefdd&&_0xdaefdd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xd943dc['type']&&(_0x1da131['isBlock'](_0x50c7c5)&&!_0x1da131['isLimit'](_0x50c7c5)&&(_0x50c7c5['nextSibling']||_0x493347['isAtEnd']?_0x373a6f&&_0x373a6f['parent']==_0x50c7c5||(_0x373a6f=_0x50c7c5,_0x3f6883(_0xd943dc['previousPosition']),_0x151b7e=!0x0):_0x516709=_0x516709||_0xd943dc['previousPosition']));}function _0x3f6883(_0x17d1fa){const _0x5f2866=_0x1a1678['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14756a}),_0x501e89=_0x1a1678['mapper']['toViewPosition'](_0x17d1fa);_0x45743e['data']['isSuggestion']&&_0x1a1678['writer']['addClass']('ck-suggestion-marker-'+_0x14756a+'-new',_0x5f2866),_0x381b9e['activeChange']==_0x45743e&&_0x1a1678['writer']['addClass']('ck-suggestion-marker--active',_0x5f2866),_0x1a1678['writer']['insert'](_0x501e89,_0x5f2866),_0x1a1678['mapper']['bindElementToMarker'](_0x5f2866,_0x4ee834['markerName']);}_0xb456ef||_0x151b7e||!_0x516709||_0x3f6883(_0x516709);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x447b0b,_0x5f1406,_0x1dab7d)=>{const _0x15faa7=_0x1dab7d['mapper']['markerNameToElements'](_0x5f1406['markerName']);if(_0x15faa7){for(const _0x48dab1 of _0x15faa7)(_0x48dab1['hasClass']('ck-suggestion-marker-split')||_0x48dab1['hasClass']('ck-suggestion-marker-merge'))&&(_0x1dab7d['mapper']['unbindElementFromMarkerName'](_0x48dab1,_0x5f1406['markerName']),_0x1dab7d['writer']['remove'](_0x48dab1));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1a16eb,_0x13d0ba,_0x5b3291)=>{const _0x46789a=_0x13d0ba['markerName']['split'](':')[0x1],_0x797306=this['_getChangeFromId'](_0x46789a);if(!_0x797306)return null;const _0x54e0e0='add'==_0x797306['type']?'split':'merge';if(_0x5b3291['consumable']['test'](_0x13d0ba['markerRange'],_0x1a16eb['name']))for(const _0x1fe8cf of _0x13d0ba['markerRange']['getItems']()){if(!_0x1fe8cf['is']('element','softBreak'))continue;const _0x20356b=_0x5b3291['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54e0e0}),_0x5b5551=_0x5b3291['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1fe8cf));_0x797306['data']['isSuggestion']&&_0x5b3291['writer']['addClass']('ck-suggestion-marker-'+_0x54e0e0+'-new',_0x20356b),this['activeChange']==_0x797306&&_0x5b3291['writer']['addClass']('ck-suggestion-marker--active',_0x20356b),_0x5b3291['writer']['insert'](_0x5b5551,_0x20356b),_0x5b3291['mapper']['bindElementToMarker'](_0x20356b,_0x13d0ba['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4c8fc1=>{for(const _0x3e8626 of this['editor']['model']['document']['getRootNames']()){const _0xc1b30=this['editor']['model']['document']['getRoot'](_0x3e8626),_0x51a44a=this['editor']['editing']['view']['document']['getRoot'](_0x3e8626);if(_0x51a44a){const _0x508343=_0xc1b30['getAttribute']('revisionHistoryAttachChange');if(_0x4c8fc1['removeAttribute']('data-change-id',_0x51a44a),_0x4c8fc1['removeClass']('ck-revision-history-root-add',_0x51a44a),_0x4c8fc1['removeClass']('ck-revision-history-root-remove',_0x51a44a),_0x4c8fc1['removeClass']('ck-revision-history-root--active',_0x51a44a),_0x508343){const _0x387a58=this['_getChangeFromId'](_0x508343);if(!_0x387a58)return null;_0x4c8fc1['setAttribute']('data-change-id',_0x508343,_0x51a44a),_0x4c8fc1['addClass']('ck-revision-history-root-'+_0x387a58['type'],_0x51a44a),this['activeChange']==_0x387a58&&_0x4c8fc1['addClass']('ck-revision-history-root--active',_0x51a44a);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1004c1=>'revision-comment:'+_0x1004c1,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x17153a=>'revision-suggestion:'+_0x17153a,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x127be0=>({'name':'suggestion:'+_0x127be0,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3b7489=>{const _0x48c88f=_0x3b7489['markerName']['split'](':')[0x1];return'insertion'!=_0x48c88f&&'deletion'!=_0x48c88f?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x48c88f]};}}),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',(_0x519e66,_0x4b8975,_0x56a366)=>{const _0x59207f=_0x56a366['mapper']['markerNameToElements'](_0x4b8975['markerName']);if(_0x59207f){for(const _0x53fca3 of _0x59207f)_0x53fca3['is']('uiElement')&&(_0x56a366['mapper']['unbindElementFromMarkerName'](_0x53fca3,_0x4b8975['markerName']),_0x56a366['writer']['remove'](_0x53fca3));}},{'priority':'high'});}['_getChangeFromId'](_0x421e74){return this['_changeIdToChange']['get'](_0x421e74);}['_getViewForChange'](_0x12a39d){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x12a39d),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x13ee28,_0x46891a,_0x497792,_0xdcc80e)=>{_0xdcc80e&&this['_balloon']['remove'](_0xdcc80e),_0x497792&&(this['_balloon']['add']({'view':_0x497792,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5de825=this['editor']['editing'],_0x39ceba=this['_getChangeFromId'](_0x497792['changeId']);let _0x24760f;if(_0x39ceba['data']['isOnRoot']){const _0x2b851c=_0x5de825['view']['getDomRoot'](_0x39ceba['rootName']);_0x24760f=Array['from'](_0x2b851c['getClientRects']());}else{const _0x5af7f8=this['editor']['model']['markers']['get']('revision:'+_0x497792['changeId']);_0x24760f=Array['from'](_0x5de825['mapper']['markerNameToElements'](_0x5af7f8['name']))['map'](_0x3ab224=>_0x5de825['view']['domConverter']['mapViewToDom'](_0x3ab224))['map'](_0x124e18=>Array['from'](_0x124e18['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x24760f[0x0];return _0x24760f['find'](_0x30d64f=>_0x30d64f['top']-0x3<=this['_activeViewTarget']['y']&&_0x30d64f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x30d64f['left']-0x3<=this['_activeViewTarget']['x']&&_0x30d64f['right']+0x3>=this['_activeViewTarget']['x'])||_0x24760f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x57f1d1,_0x1566c1,_0x3f8ec0,_0x39a2eb)=>{this['activeView']=_0x3f8ec0?this['_getViewForChange'](_0x3f8ec0):null,this['editor']['model']['change'](()=>{const _0x8abf=this['editor']['editing'];_0x39a2eb&&(_0x39a2eb['data']['isOnRoot']?_0x8abf['view']['change'](_0xbf014d=>{_0xbf014d['removeClass']('ck-revision-history-root--active',_0x8abf['view']['document']['getRoot'](_0x39a2eb['rootName']));}):_0x8abf['reconvertMarker']('revision:'+_0x39a2eb['id'])),_0x3f8ec0&&(_0x3f8ec0['data']['isOnRoot']?_0x8abf['view']['change'](_0x2e83db=>{_0x2e83db['addClass']('ck-revision-history-root--active',_0x8abf['view']['document']['getRoot'](_0x3f8ec0['rootName']));}):_0x8abf['reconvertMarker']('revision:'+_0x3f8ec0['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5c2660,_0x195108)=>{if(this['activeChange'])return;const _0x5ae04d=this['_findChangeIdFromDomTarget'](_0x195108['target']),_0x491f06=this['_changeIdToChange']['get'](_0x5ae04d);_0x491f06?(this['_activeViewTarget']={'x':_0x195108['domEvent']['x'],'y':_0x195108['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x491f06)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x539f30,_0x7fde43)=>{const _0x1f4946=this['_findChangeIdFromDomTarget'](_0x7fde43['target']),_0x3dd60f=this['_changeIdToChange']['get'](_0x1f4946);_0x3dd60f?(this['_activeViewTarget']={'x':_0x7fde43['domEvent']['x'],'y':_0x7fde43['domEvent']['y']},_0x3dd60f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3dd60f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2e4096){do{const _0x3512e3=_0x2e4096['getAttribute']('data-change-id');if(_0x3512e3)return _0x3512e3;_0x2e4096=_0x2e4096['parent'];}while(_0x2e4096);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3a592a=>{for(const _0x3a6a9c of this['editor']['model']['markers'])_0x3a592a['removeMarker'](_0x3a6a9c);});}}function Q(_0xac6705,_0x11e51d){return(_0x38dce,_0x37da2e,_0x2c7172)=>{if(!_0x2c7172['consumable']['test'](_0x37da2e['markerRange'],_0x38dce['name']))return;const _0x49c04e=_0x37da2e['markerRange']['getWalker'](),_0x120023=_0x37da2e['markerRange']['start'],_0x23c9d8=_0xac6705['model']['schema'];let _0x379c1b=null,_0x1261bd=null,_0x43c8fd=!0x1,_0x5b5743=!0x1;for(const _0x47e6a6 of _0x49c04e){const _0x227729=_0x47e6a6['item'];_0x43c8fd=_0x43c8fd||_0x23c9d8['isContent'](_0x227729);const _0x1ac3ad=_0x2c7172['mapper']['toViewElement'](_0x227729);if(_0x1ac3ad&&_0x1ac3ad['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x47e6a6['type']&&(_0x23c9d8['isBlock'](_0x227729)&&!_0x23c9d8['isLimit'](_0x227729)&&(_0x227729['nextSibling']||_0x120023['isAtEnd']?_0x379c1b&&_0x379c1b['parent']==_0x227729||(_0x379c1b=_0x227729,_0x4231c0(_0x47e6a6['previousPosition']),_0x5b5743=!0x0):_0x1261bd=_0x1261bd||_0x47e6a6['previousPosition']));}function _0x4231c0(_0x483310){const _0x2683a5=_0x2c7172['mapper']['toViewPosition'](_0x483310),_0x537637=_0x2c7172['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x11e51d});_0x2c7172['writer']['insert'](_0x2683a5,_0x537637),_0x2c7172['mapper']['bindElementToMarker'](_0x537637,_0x37da2e['markerName']);}_0x43c8fd||_0x5b5743||!_0x1261bd||_0x4231c0(_0x1261bd);};}class nt extends _0x53e976{constructor(_0x42614d){super(_0x42614d);const _0x1fd5d9=_0x42614d['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x1fd5d9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1fd5d9,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x47ff66=this['editor'],_0x3d151d=_0x47ff66['plugins']['get'](l),_0x486e79=_0x3d151d['isReady']?_0x3d151d['diff']['newRevisionId']:null;_0x47ff66['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x486e79);}['refresh'](){const {isReady:_0x3344a3,isEnabled:_0x119cdb,repository:_0x53a63f,diff:_0x45d131}=this['editor']['plugins']['get'](l),_0x30caf7=_0x45d131&&_0x53a63f['getLaterVisibleRevision'](_0x45d131['newRevisionId']);this['isEnabled']=_0x3344a3&&_0x119cdb&&Boolean(_0x30caf7);}}class ot extends _0x53e976{['_step'];constructor(_0x22e7cb,{direction:_0x41a144}){super(_0x22e7cb);const _0x272025=_0x22e7cb['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x41a144?0x1:-0x1,this['listenTo'](_0x272025,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x272025,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x272025,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5ceb01=this['editor'],_0x3bd1fc=_0x5ceb01['plugins']['get'](l),{isNavigationMode:_0x32d3e2,currentChangeNumber:_0xda8453}=_0x3bd1fc;let _0x3c2cd2;if(_0x3bd1fc['activeChange']=_0x32d3e2?_0x3bd1fc['diff']['changes']['get'](_0xda8453+this['_step']):_0x3bd1fc['diff']['changes']['first'],_0x3bd1fc['activeChange']['data']['isOnRoot'])_0x3c2cd2=_0x5ceb01['editing']['view']['getDomRoot'](_0x3bd1fc['activeChange']['rootName']);else{const _0xc168ae=_0x5ceb01['model']['markers']['get']('revision:'+_0x3bd1fc['activeChange']['id']);_0x3c2cd2=_0x5d23d5(_0x5ceb01['editing'],_0xc168ae);}_0x2be881({'target':_0x3c2cd2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x600804,currentChangeNumber:_0x6ee66e,numberOfChanges:_0x20f917,isReady:_0x254629,isEnabled:_0x5daccf}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x5daccf&&_0x254629&&_0x20f917)&&(!_0x600804||(0x1===this['_step']?_0x6ee66e<_0x20f917-0x1:_0x6ee66e>0x0));}}class Ri extends _0x4d7898{constructor(_0x5be6a8){super(_0x5be6a8);const _0x52d54b=this['bindTemplate'],_0x41e7a7=new _0x1b0a61(_0x5be6a8),_0x573251=new _0x1b0a61(_0x5be6a8);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',(_0x3253d9,_0x1399c1)=>_0x3253d9&&_0x1399c1>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3fcdbd,_0x2001a9,_0x1934de,_0x458567)=>{if(!_0x3fcdbd)return R(_0x5be6a8,'Loading...');if(!_0x1934de)return R(_0x5be6a8,'No\x20changes');const _0x528861=R(_0x5be6a8,'NUMBER_OF_CHANGES',_0x1934de);return _0x458567?R(_0x5be6a8,'X_OF_Y_CHANGES',[_0x2001a9+0x1,_0x1934de]):_0x528861;}),_0x41e7a7['set']({'label':R(_0x5be6a8,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x124557}),_0x573251['set']({'label':R(_0x5be6a8,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2f8724}),_0x41e7a7['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x573251['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x41e7a7['on']('execute',()=>this['fire']('execute','backward')),_0x573251['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',_0x52d54b['if']('_isStatusLabelVisible','ck-hidden',_0xe55c8c=>!_0xe55c8c)]},'children':[{'text':_0x52d54b['to']('isNavigationMode',_0x507445=>_0x507445?R(_0x5be6a8,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x5be6a8,'Total')+':\x20')}]},{'text':_0x52d54b['to']('_statusText')}]},new _0x5bb667(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x41e7a7,_0x573251]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x858dc7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x39da7c=this['editor']['editing']['view'];_0x39da7c['change'](_0x47f4bb=>{for(const _0x281e62 of _0x39da7c['document']['roots'])_0x47f4bb['addClass'](ge,_0x281e62);});}['hide'](){const _0x2e5175=this['editor']['editing']['view'];_0x2e5175['change'](_0x445bdf=>{for(const _0xc5327b of _0x2e5175['document']['roots'])_0x445bdf['removeClass'](ge,_0xc5327b);});}}class u extends _0x858dc7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x4d45c6=this['editor'],_0x392b32=_0x4d45c6['plugins']['get'](l),_0x1f907d=_0x4d45c6['plugins']['get'](ji);_0x4d45c6['ui']['componentFactory']['add']('exitToEditing',_0x370662=>{const _0x1d2979=new _0x1b0a61(_0x370662);return _0x1d2979['set']({'label':R(_0x370662,'Back\x20to\x20editing'),'icon':_0x49b94e,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1d2979,'execute',()=>{_0x4d45c6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1d2979;}),_0x4d45c6['ui']['componentFactory']['add']('restoreRevision',_0x1cdfb3=>{const _0x3be4e8=new _0x1b0a61(_0x1cdfb3);return _0x3be4e8['set']({'label':R(_0x1cdfb3,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3be4e8['bind']('isEnabled')['to'](_0x4d45c6['commands']['get']('restoreRevision')),this['listenTo'](_0x3be4e8,'execute',()=>_0x4d45c6['execute']('restoreRevision')),_0x3be4e8;}),_0x4d45c6['ui']['componentFactory']['add']('changesNavigation',_0x5cd1f6=>{const _0x597cf5=new Ri(_0x5cd1f6),_0x3a212b=_0x4d45c6['commands']['get']('showPreviousChange'),_0x17709b=_0x4d45c6['commands']['get']('showNextChange');return _0x597cf5['bind']('isBackwardNavigationEnabled')['to'](_0x3a212b,'isEnabled'),_0x597cf5['bind']('isForwardNavigationEnabled')['to'](_0x17709b,'isEnabled'),_0x597cf5['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x392b32),this['listenTo'](_0x597cf5,'execute',(_0x23df18,_0x4e1f4d)=>{_0x4d45c6['execute']('forward'===_0x4e1f4d?'showNextChange':'showPreviousChange');}),_0x597cf5;}),_0x1f907d['show'](),_0x392b32['on']('change:isReady',(_0x17d849,_0x167643,_0x5ee0ba)=>{_0x5ee0ba?_0x1f907d['hide']():_0x1f907d['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x45b328,_0x1633c1){super(_0x45b328,_0x1633c1);const _0xee9bd1=this['bindTemplate'];this['set']({'label':R(_0x45b328,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x45b328,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xee9bd1['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 _0x50001a=this['fieldView']['element'];this['_tooltipString']=_0x50001a['scrollWidth']>_0x50001a['clientWidth']&&_0x50001a['value']||'';}}class vi extends _0x4d7898{constructor(_0x13cf95,_0xe63be9,_0x383acd){super(_0x13cf95);const _0x5f23b1=new _0x13fce5();_0x5f23b1['set']({'content':_0x45ead2,'viewBox':'0\x200\x2011\x2010'});const _0x41071b=['ck','ck-revision-history-sidebar__revision-author'];_0x383acd&&_0x41071b['push']('ck-revision-history-sidebar__revision-author_creator');const _0xf93cc3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x13cf95,_0x383acd?'Revision\x20creator':'Revision\x20author')},'children':[_0x5f23b1,_0xe63be9['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x41071b},'children':_0xf93cc3});}}function mi(_0x5d33cf,_0x90a406){const _0x1477b9=_0x5d33cf['bindTemplate'],_0xab86ea=_0x5d33cf['locale'],_0x23eef7=_0x2842e0(_0xab86ea);_0x23eef7['panelPosition']='sw';const _0x100e29=function(_0x233f41,_0x5c7f87){const _0x1137a2=function(_0x33a02c,_0x31e2d6){const _0x4e98bb=_0x33a02c['locale'],_0x3e005b={'Compare\x20against\x20selected':R(_0x4e98bb,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4e98bb,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4e98bb,'Restore\x20this\x20revision')};return _0x31e2d6['map'](_0x3f075e=>{const _0x363bec=_0x3e005b[_0x3f075e['name']];return _0x363bec&&_0x363bec!==_0x3f075e['name']&&(_0x3f075e['name']=_0x363bec),_0x3f075e;});}(_0x233f41,_0x5c7f87),_0x2ea7d9=new _0x1d5790();for(const _0x459f90 of _0x1137a2){const _0x2bd2d6={'type':'button','model':new to({'label':_0x459f90['name'],'class':_0x459f90['class'],'withText':!0x0,'role':'menuitem','_action':_0x459f90['action']})};_0x2bd2d6['model']['bind']('isEnabled')['to'](_0x233f41,'isActionsDropdownOpen',_0x1fc848=>'function'!=typeof _0x459f90['isEnabled']||(!_0x1fc848||_0x459f90['isEnabled'](_0x233f41))),_0x2ea7d9['add'](_0x2bd2d6);}return _0x2ea7d9;}(_0x5d33cf,_0x90a406);return _0x5d33cf['bind']('isActionsDropdownOpen')['to'](_0x23eef7,'isOpen'),_0x23eef7['buttonView']['set']({'label':R(_0xab86ea,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x36531b}),_0x23eef7['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1477b9['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1477b9['to'](_0x1fd402=>_0x1fd402['stopPropagation']())}}),_0x23eef7['on']('execute',_0x1248d8=>{_0x5d33cf['isReady']&&'function'==typeof _0x1248d8['source']['_action']&&_0x1248d8['source']['_action'](_0x5d33cf);}),_0x2b214d(_0x23eef7,_0x100e29,{'role':'menu'}),_0x23eef7['listenTo'](_0x5d33cf,'change:isActionsDropdownOpen',(_0x59c1a7,_0xd5d800,_0x4866fd)=>{if(_0x4866fd)for(const _0x500585 of _0x23eef7['listView']['items']){const _0x2df8e0=_0x500585['children']['first'],_0x1288a9=_0x90a406['find'](_0x2549ec=>_0x2549ec['action']===_0x2df8e0['_action'])['isVisible'];_0x500585['isVisible']=void 0x0===_0x1288a9||_0x1288a9(_0x5d33cf);}}),_0x23eef7;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0xa4ce91(_0x4d7898){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1c83ba,_0x51fa4e,_0x1d8612,_0x4fe43b){super(_0x1c83ba);const _0x3f8314=this['bindTemplate'],_0x2b6f59=function(_0x4fc589,_0xf5d8c1){const _0x334b31=Array['from'](_0xf5d8c1['authors'])['filter'](_0x3cc057=>_0x3cc057!=_0xf5d8c1['creator']);return _0xf5d8c1['creator']&&_0x334b31['unshift'](_0xf5d8c1['creator']),_0x334b31['map'](_0x191b49=>new vi(_0x4fc589,_0x191b49,_0x191b49==_0xf5d8c1['creator']));}(_0x1c83ba,_0x51fa4e);this['id']=_0x51fa4e['id'],this['_revision']=_0x51fa4e,this['_requireRevisionName']=_0x4fe43b,this['bind']('name','createdAt')['to'](_0x51fa4e),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x9c2365=>{return _0xf57c80=_0x1c83ba['uiLanguage'],(_0x595522=_0x9c2365)['toLocaleDateString'](_0xf57c80,{'month':'long','day':'numeric'})+',\x20'+_0x595522['toLocaleTimeString'](_0xf57c80,{'hour':'numeric','minute':'numeric'});var _0xf57c80,_0x595522;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x1c83ba,_0x387a81),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3d10b4=>_0x3d10b4||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x353184,_0x2d26f4)=>_0x353184&&_0x2d26f4),this['revisionActionsView']=_0x1d8612&&_0x1d8612['length']?mi(this,_0x1d8612):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3f8314['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3f8314['if']('isEnabled','ck-disabled',_0x25dcaf=>!_0x25dcaf),_0x3f8314['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3f8314['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3f8314['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':_0x3f8314['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':_0x2b6f59}]},this['revisionActionsView']],'on':{'click':_0x3f8314['to'](_0x3767b2=>{_0x3767b2['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5227ec=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5227ec,'change',()=>{this['_requireRevisionName']&&!_0x5227ec['value']||this['fire']('setName',{'id':this['id'],'name':_0x5227ec['value']}),_0x5227ec['value']||(_0x5227ec['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function bi(_0x5019ad,_0x138da5){const _0x544d96=_0x4e69e7['fromJSDate'](_0x5019ad)['setLocale'](_0x138da5),_0x187f60=_0x4e69e7['local'](),_0xd1ef6c=_0x187f60['minus']({'days':0x1})['startOf']('day');let _0x2c4b3e,_0x84bf5c;return _0x544d96['hasSame'](_0x187f60,'day')?(_0x2c4b3e=_0x544d96['startOf']('day')['toJSDate'](),_0x84bf5c=_0x544d96['toRelativeCalendar']()):_0x544d96['hasSame'](_0xd1ef6c,'day')?(_0x2c4b3e=_0xd1ef6c['toJSDate'](),_0x84bf5c=_0x544d96['toRelativeCalendar']()):_0x544d96['hasSame'](_0x187f60,'week')?(_0x2c4b3e=_0x544d96['startOf']('week')['toJSDate'](),_0x84bf5c=_0x544d96['weekdayLong']||''):_0x544d96['hasSame'](_0x187f60,'year')?(_0x2c4b3e=_0x544d96['startOf']('month')['toJSDate'](),_0x84bf5c=_0x544d96['monthLong']||''):(_0x2c4b3e=_0x544d96['startOf']('year')['toJSDate'](),_0x84bf5c=String(_0x544d96['year'])),{'startDate':_0x2c4b3e,'localizedPeriodName':_0x84bf5c};}class fi extends _0x4d7898{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x36922a,_0x4b0cfa,_0x19bc1a,_0x17109a){super(_0x36922a);const _0x128506=bi(_0x4b0cfa,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4b0cfa,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x19bc1a,this['_requireRevisionName']=_0x17109a,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':_0x128506}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x1d2d4e){const _0x4b744b=new pi(this['locale'],_0x1d2d4e,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4b744b);}['removeRevision'](_0x477ab9){const _0x3fc722=this['revisionViews']['find'](_0x222612=>_0x222612['id']===_0x477ab9['id']);this['revisionViews']['remove'](_0x3fc722);}}class ki extends _0x4d7898{constructor(_0x52247e){super(_0x52247e);const _0x4eaa1a=new _0x13fce5();_0x4eaa1a['content']=_0xd5d852,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4eaa1a,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x52247e,'Revision\x20history')]}]});}}class ui extends _0x4d7898{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x31731e,_0xd2d792,_0x323b56,_0x128882){super(_0x31731e);const _0x43f27a=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xd2d792,this['_revisionActions']=_0x323b56,this['_requireRevisionName']=_0x128882,this['on']('select',(_0x487ec0,_0x485b31)=>{this['fire']('revisionSelected',_0x485b31);}),this['on']('setName',(_0x45d967,_0x5a9b59)=>{this['fire']('revisionSetName',_0x5a9b59);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x31731e),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x43f27a['if']('isEnabled','ck-disabled',_0x538144=>!_0x538144)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x43ca0f of this['_revisions'])this['_addRevision'](_0x43ca0f);this['_revisions']['on']('add',(_0x156889,_0x5ac6a7)=>{this['_addRevision'](_0x5ac6a7);}),this['_revisions']['on']('remove',(_0x197842,_0x47a796)=>{this['_removeRevision'](_0x47a796);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x465c46=>_0x465c46['revisionViews']['map'](_0x3d44bf=>_0x3d44bf))['flat']();}['selectRevision'](_0x22d6cd){for(const _0x4b611d of this['revisionViews'])_0x22d6cd&&_0x22d6cd['id']===_0x4b611d['id']?_0x4b611d['select']():_0x4b611d['deselect']();}['highlightRevisions'](_0x46a37a){for(const _0x8f3504 of this['revisionViews'])_0x46a37a['some'](({id:_0x5a872e})=>_0x5a872e===_0x8f3504['id'])?_0x8f3504['highlight']():_0x8f3504['unhighlight']();}['_addRevision'](_0x27728c){const _0x3e9ce3=bi(_0x27728c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x270e5f=this['timePeriodViews']['get'](0x0);_0x270e5f&&_0x270e5f['startDate']['getTime']()===_0x3e9ce3['getTime']()||(_0x270e5f=new fi(this['locale'],_0x3e9ce3,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x270e5f)),_0x270e5f['addRevision'](_0x27728c);}['_removeRevision'](_0x532707){const _0x1a54e8=bi(_0x532707['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1a54e8)['removeRevision'](_0x532707);}['_getTimePeriodViewByStartDate'](_0x125156){return this['timePeriodViews']['find'](_0x2b25f4=>_0x2b25f4['startDate']['getTime']()===_0x125156['getTime']());}}class f extends _0x858dc7{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(
|
|
30
|
-
_0x2a9622(_0x31cec4){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4c6b22,_0x53ea7d){super(_0x53ea7d),this['sourceElement']=_0x4c6b22,this['model']['document']['createRoot']();const _0x258ccf=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x258ccf);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x32d905,_0x53df8f){const _0x4e8d2f=new this(_0x32d905,_0x53df8f);return await _0x4e8d2f['initPlugins'](),await _0x4e8d2f['ui']['init'](_0x32d905),await _0x4e8d2f['data']['init'](_0x4e8d2f['config']['get']('initialData')||''),_0x4e8d2f['fire']('ready'),_0x4e8d2f;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x58c668{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1af88b){function _0x58028f(_0x419679){return _0x419679['map'](_0x701d70=>String['fromCharCode'](_0x701d70))['join']('');}super(_0x1af88b),this['result']='end',_0x1af88b[_0x58028f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58028f([0x76,0x69,0x65,0x77])][_0x58028f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58028f([0x61,0x75,0x74,0x6f]),_0x1af88b[_0x58028f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x58028f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58028f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x58028f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x58028f([0x6f,0x6b])});}}class ht extends _0x58c668{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x937f42){if(super(_0x937f42),!this['editor']['config']['get']('revisionHistory'))throw new _0x87a7b4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2e4cfc=>this['_showRevisionViewer']({..._0x2e4cfc,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x20b63b=>this['_closeRevisionViewer'](_0x20b63b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xb4f0b5=>this['_restoreRevision'](_0xb4f0b5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2b615b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2b615b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x36622b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x36622b);}['getRevision'](_0x55af60){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x55af60);}['getRevisions'](_0x2ab71a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2ab71a||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x143adc=this['editor'],_0x5dd504=_0x5dd42b(_0x143adc,d),_0x3a66df=_0x143adc['plugins']['get']('RevisionTracker'),_0x5ce5c3=_0x143adc['plugins']['get']('Users')['users'];return _0x5dd504['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5dd504['lazyRoots'],(_0x5dd504['plugins']['push'](at,l,u,class extends _0x58c668{static get['requires'](){return[l,'Users'];}['init'](){const _0x42e23a=this['editor']['plugins']['get']('Users');for(const _0x5db153 of _0x5ce5c3)_0x5db153['isAnonymous']||_0x42e23a['getUser'](_0x5db153['id'])||_0x42e23a['addUser'](_0x5db153);const _0x185b0a=_0x3a66df['repository']['getRevisions']();let _0x5b2dd7=null;const _0x37bcdc=this['editor']['plugins']['get']('RevisionViewer');_0x37bcdc['adapter']=_0x3a66df['adapter'],_0x37bcdc['bind']('isEnabled')['to'](_0x3a66df),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x143adc,'isReadOnly',_0x22ca82=>!_0x22ca82);for(const _0x4d0431 of _0x185b0a){const _0xfc4696=null===_0x4d0431['creator'];if(_0xfc4696&&_0x4d0431['toVersion']===_0x4d0431['fromVersion'])continue;const _0x409ac3=_0x4d0431['toJSON']();_0x37bcdc['addRevisionData'](_0x409ac3,(_0x59c40b,_0x12f759,_0x31bd52)=>{if(_0xfc4696){if(_0x5b2dd7)_0x5b2dd7['_update'](_0x59c40b,_0x12f759);else{if(!_0x12f759){const _0x4b493c=_0x31bd52['toJSON']();_0x4b493c['id']=_0xd8dd1b(),_0x3a66df['saveRevision'](_0x4b493c,_0x31bd52['toVersion'])['then'](_0x404476=>{_0x5b2dd7=_0x404476;});}}}else _0x4d0431['_update'](_0x59c40b,_0x12f759);});}}},f),_0x5dd504);}['_enhanceShowRevisionViewerCallback'](){const _0x4842d6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x305d74=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x13120a=this['editor']['plugins']['get']('Autosave');await _0x13120a['save']();}else await _0x305d74['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2c0877=this['editor']['plugins']['get']('Dialog');_0x2c0877['isOpen']&&_0x2c0877['hide']();}const _0xbbabb9=this['_getRevisionViewerEditorConfig']();return _0x4842d6(_0xbbabb9)['then'](_0x370022=>{return(this['_viewerEditor']=_0x370022,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'),_0x370022);})['catch'](_0x4026e9=>(console['error'](_0x4026e9),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x17bdf8=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'](),_0x17bdf8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2118d9=this['editor']['plugins']['get']('Annotations');_0x2118d9['refreshVisibility'](),_0x2118d9['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2a93f9){const _0x28403c=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5085ff=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x212676=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x212676,_0x2a93f9)['then'](_0xd6b55c=>(_0x5085ff['style']['display']='block',_0x28403c['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0xd6b55c));}['_closeRevisionViewer'](_0x29085a){const _0x4bc92a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4bc92a['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x29085a['destroy']();}async['_restoreRevision'](_0x3b2179){const _0x3296db=this['editor'],_0x51ec55=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2c1871=_0x3296db['plugins']['get']('RevisionTracker'),_0x541f7e=_0x3296db['plugins']['get']('RevisionHistoryUtils'),_0x106578=_0x51ec55['repository']['getRevision'](_0x3b2179);let _0x1fc2cd,_0x23755c,_0x286e75;try{await _0x541f7e['loadRevisionData'](_0x106578,this['adapter']),_0x1fc2cd=_0x541f7e['getRevisionDocumentData'](_0x106578),_0x23755c=_0x541f7e['getRevisionRootsAttributes'](_0x106578);}catch(_0x4eba47){return void console['error'](_0x4eba47);}_0x3296db['model']['change'](_0x419e00=>{for(const _0xf89166 of Array['from'](_0x3296db['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x419e00['removeMarker'](_0xf89166);}),_0x51ec55['isReady']=!0x1,_0x3296db['model']['enqueueChange'](_0x350f08=>{_0x350f08['setSelection'](null),_0x350f08['removeSelectionAttribute'](_0x3296db['model']['document']['selection']['getAttributeKeys']());const _0x4079e0=Object['keys'](_0x1fc2cd);for(const _0x461b52 of _0x3296db['model']['document']['roots'])'$graveyard'!=_0x461b52['rootName']&&_0x461b52['isAttached']()&&!_0x4079e0['includes'](_0x461b52['rootName'])&&_0x350f08['detachRoot'](_0x461b52);for(const _0x42ab9d of _0x4079e0){let _0x41ea2c=_0x3296db['model']['document']['getRoot'](_0x42ab9d);_0x41ea2c&&_0x41ea2c['isAttached']()||(_0x41ea2c=_0x350f08['addRoot'](_0x42ab9d));const _0x9c4972=_0x23755c[_0x42ab9d],_0x1ae123=Object['keys'](_0x9c4972),_0x638899=_0x1fc2cd[_0x42ab9d];for(const _0x444924 of _0x41ea2c['getAttributeKeys']())_0x1ae123['includes'](_0x444924)||_0x350f08['removeAttribute'](_0x444924,_0x41ea2c);for(const _0x2c32b3 of _0x1ae123)_0x350f08['setAttribute'](_0x2c32b3,_0x23755c[_0x42ab9d][_0x2c32b3],_0x41ea2c);_0x350f08['remove'](_0x350f08['createRangeIn'](_0x41ea2c)),_0x350f08['insert'](_0x3296db['data']['parse'](_0x638899,_0x41ea2c),_0x41ea2c,0x0);}});const _0x54793d=R(_0x3296db['locale'],'Restored');if(_0x106578['name'])_0x286e75=-0x1==_0x106578['name']['indexOf'](_0x54793d)?_0x54793d+':\x20'+_0x106578['name']:_0x106578['name'];else _0x286e75=_0x54793d+':\x20'+(_0x106578['createdAt']['toLocaleDateString'](_0x3296db['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x106578['createdAt']['toLocaleTimeString'](_0x3296db['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2c1871['saveRevision']({'name':_0x286e75}),_0x51ec55['isReady']=!0x0,_0x3296db['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,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|
|
29
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x333f6b){super(_0x333f6b),this['_revisionViewer']=_0x333f6b['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x575eae=this['_revisionsRepository']['_revisions'],_0x2840b8=this['_createRevisionActions'](),_0x3c3314=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ui(this['editor']['locale'],_0x575eae,_0x2840b8,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',(_0x200133,_0x4d223c)=>{_0x4d223c['revisionViews']['on']('add',(_0x33afa1,_0x3b2f60)=>{_0x3b2f60['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)),_0x3c3314['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x322143=this['_revisionsRepository']['getRevision'](0x0);if(_0x322143){const _0x5bedd4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x322143['id']);this['_revisionViewer']['compare'](_0x322143,_0x5bedd4);}}['_handleRevisionSelected'](_0x25d63b,_0x457a52){const _0x132cfe=this['_revisionsRepository']['getRevision'](_0x457a52['id']),_0x220c6f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x132cfe['id']);this['_revisionViewer']['compare'](_0x132cfe,_0x220c6f);}['_handleRevisionSetName'](_0x49222f,_0x22ae78){this['_revisionsRepository']['getRevision'](_0x22ae78['id'])['setName'](_0x22ae78['name']);}['_handleDiffChange'](_0x3b3195,_0x255531,_0x8ff777){const _0x461438=this['_revisionsRepository']['getRevisionsInDiff'](_0x8ff777);_0x461438['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x461438),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x461438[0x0]));}['_createRevisionActions'](){const _0x5068ae=this['editor'],_0x10677c=f['availableRevisionActions'],_0x43c2d3=_0x5068ae['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x43c2d3['length'])return _0x43c2d3['map'](_0x13ae67=>{const _0x34ee1f='string'==typeof _0x13ae67?Object['assign']({},_0x10677c[_0x13ae67]):_0x13ae67;return _0x34ee1f['action']=_0x34ee1f['action']['bind'](this,_0x5068ae),_0x34ee1f['isVisible']&&(_0x34ee1f['isVisible']=_0x34ee1f['isVisible']['bind'](this,_0x5068ae)),_0x34ee1f;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x55032e},_0x112544)=>{const _0x3d8162=_0x55032e['get'](l),_0x55349a=_0x3d8162['repository'];let _0x3ece50=_0x3d8162['diff']['newRevisionId'],_0x48fa37=_0x112544['id'];_0x55349a['getIndex'](_0x3ece50)>_0x55349a['getIndex'](_0x48fa37)&&([_0x3ece50,_0x48fa37]=[_0x48fa37,_0x3ece50]),_0x3d8162['compare'](_0x3ece50,_0x48fa37);},'isVisible':({plugins:_0x57ef02},_0x3e87d2)=>{const _0x49374a=_0x57ef02['get'](l);return!(_0x49374a['repository']['getRevisionsInDiff'](_0x49374a['diff'])['length']>0x2)&&!_0x3e87d2['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4f24d1,{id:_0x4f1480})=>{_0x4f24d1['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4f1480);},'isVisible':({plugins:_0xbd9418},_0x14f769)=>!!_0xbd9418['get'](l)['repository']['getLaterVisibleRevision'](_0x14f769['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xb796ee},{id:_0x3c51f8,revisionNameView:_0x31ca18})=>{const _0x5482ae=_0xb796ee['get'](l),_0x1ebcc4=_0x5482ae['repository']['getEarlierVisibleRevision'](_0x3c51f8);_0x5482ae['compare'](_0x3c51f8,_0x1ebcc4),_0x31ca18['focus'](),_0x31ca18['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x157ccb,_0x5074b8){super(_0x157ccb),this['_view']=_0x5074b8,this['_toolbarConfig']=st(_0x157ccb['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x3bd536){const _0x49ec46=this['editor'],_0xf4a7b9=this['view'],_0x5646a9=_0x49ec46['editing']['view'],_0x29bd1d=_0xf4a7b9['editable'],_0x596704=_0x5646a9['document']['getRoot']();_0x29bd1d['name']=_0x596704['rootName'],_0xf4a7b9['render']();const _0x473843=_0x29bd1d['element'];this['setEditableElement'](_0x29bd1d['name'],_0x473843),_0xf4a7b9['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5646a9['attachDomRoot'](_0x473843),this['_elementReplacer']['replace'](_0x3bd536,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xcbce08=this['view'],_0x1cfd50=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1cfd50['detachDomRoot'](_0xcbce08['editable']['name']),_0xcbce08['destroy']();}['_initToolbar'](){const _0x3b016d=this['view'];_0x3b016d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3b016d['stickyPanel']['limiterElement']=_0x3b016d['element'],_0x3b016d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x59c565})=>_0x59c565),_0x3b016d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3b016d['toolbar']);}}class ii extends _0x3df364{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4c39fe,_0x2d0093,_0x47fad6={}){super(_0x4c39fe),this['stickyPanel']=new _0x527c78(_0x4c39fe),this['toolbar']=new _0x1972cd(_0x4c39fe,{'shouldGroupWhenFull':_0x47fad6['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x4c39fe,_0x2d0093);}['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
|
+
_0x3d53cc(_0x130cd1){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x49e000,_0x20f0ea){super(_0x20f0ea),this['sourceElement']=_0x49e000,this['model']['document']['createRoot']();const _0x4f1dd5=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x4f1dd5);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5555ef,_0x302182){const _0x1d6887=new this(_0x5555ef,_0x302182);return await _0x1d6887['initPlugins'](),await _0x1d6887['ui']['init'](_0x5555ef),await _0x1d6887['data']['init'](_0x1d6887['config']['get']('initialData')||''),_0x1d6887['fire']('ready'),_0x1d6887;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x858dc7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12cbd0){function _0x26663c(_0x41bbd5){return _0x41bbd5['map'](_0x3ff85c=>String['fromCharCode'](_0x3ff85c))['join']('');}super(_0x12cbd0),this['result']='end',_0x12cbd0[_0x26663c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26663c([0x76,0x69,0x65,0x77])][_0x26663c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26663c([0x61,0x75,0x74,0x6f]),_0x12cbd0[_0x26663c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x26663c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26663c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x26663c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x26663c([0x6f,0x6b])});}}class ht extends _0x858dc7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x452965){if(super(_0x452965),!this['editor']['config']['get']('revisionHistory'))throw new _0x5ea239('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4b66bf=>this['_showRevisionViewer']({..._0x4b66bf,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3391cb=>this['_closeRevisionViewer'](_0x3391cb)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x142228=>this['_restoreRevision'](_0x142228)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x21ed07){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x21ed07;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3137cb){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3137cb);}['getRevision'](_0x227823){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x227823);}['getRevisions'](_0x5e2fd1){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5e2fd1||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5c60a8=this['editor'],_0x350d7d=_0x74082c(_0x5c60a8,d),_0x230518=_0x5c60a8['plugins']['get']('RevisionTracker'),_0x3bd461=_0x5c60a8['plugins']['get']('Users')['users'];return _0x350d7d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x350d7d['lazyRoots'],(_0x350d7d['plugins']['push'](at,l,u,class extends _0x858dc7{static get['requires'](){return[l,'Users'];}['init'](){const _0x448dd=this['editor']['plugins']['get']('Users');for(const _0x4aca47 of _0x3bd461)_0x4aca47['isAnonymous']||_0x448dd['getUser'](_0x4aca47['id'])||_0x448dd['addUser'](_0x4aca47);const _0x52ce10=_0x230518['repository']['getRevisions']();let _0x5c8c9a=null;const _0x144c5c=this['editor']['plugins']['get']('RevisionViewer');_0x144c5c['adapter']=_0x230518['adapter'],_0x144c5c['bind']('isEnabled')['to'](_0x230518),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5c60a8,'isReadOnly',_0x116b78=>!_0x116b78);for(const _0x561975 of _0x52ce10){const _0x4b6415=null===_0x561975['creator'];if(_0x4b6415&&_0x561975['toVersion']===_0x561975['fromVersion'])continue;const _0x203b93=_0x561975['toJSON']();_0x144c5c['addRevisionData'](_0x203b93,(_0x53d3ed,_0x572368,_0x3bb22b)=>{if(_0x4b6415){if(_0x5c8c9a)_0x5c8c9a['_update'](_0x53d3ed,_0x572368);else{if(!_0x572368){const _0x4503ac=_0x3bb22b['toJSON']();_0x4503ac['id']=_0x1a737e(),_0x230518['saveRevision'](_0x4503ac,_0x3bb22b['toVersion'])['then'](_0x38a870=>{_0x5c8c9a=_0x38a870;});}}}else _0x561975['_update'](_0x53d3ed,_0x572368);});}}},f),_0x350d7d);}['_enhanceShowRevisionViewerCallback'](){const _0x3fa965=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x16448a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x44a740=this['editor']['plugins']['get']('Autosave');await _0x44a740['save']();}else await _0x16448a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3766a2=this['editor']['plugins']['get']('Dialog');_0x3766a2['isOpen']&&_0x3766a2['hide']();}const _0x5d4c04=this['_getRevisionViewerEditorConfig']();return _0x3fa965(_0x5d4c04)['then'](_0x4a41f3=>{return(this['_viewerEditor']=_0x4a41f3,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'),_0x4a41f3);})['catch'](_0x416899=>(console['error'](_0x416899),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x57a95d=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'](),_0x57a95d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4f762=this['editor']['plugins']['get']('Annotations');_0x4f762['refreshVisibility'](),_0x4f762['refreshPositioning']();}})));}['_showRevisionViewer'](_0x74784b){const _0x40c22f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4a734e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x38ec65=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x38ec65,_0x74784b)['then'](_0x4e34c7=>(_0x4a734e['style']['display']='block',_0x40c22f['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x4e34c7));}['_closeRevisionViewer'](_0x547d20){const _0x27090f=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x27090f['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x547d20['destroy']();}async['_restoreRevision'](_0x58b5d2){const _0x1cec46=this['editor'],_0x380de2=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x292a6d=_0x1cec46['plugins']['get']('RevisionTracker'),_0x3ced14=_0x1cec46['plugins']['get']('RevisionHistoryUtils'),_0x30d5a6=_0x380de2['repository']['getRevision'](_0x58b5d2);let _0x251f30,_0x49d59f,_0x49fa19;try{await _0x3ced14['loadRevisionData'](_0x30d5a6,this['adapter']),_0x251f30=_0x3ced14['getRevisionDocumentData'](_0x30d5a6),_0x49d59f=_0x3ced14['getRevisionRootsAttributes'](_0x30d5a6);}catch(_0xb85e5e){return void console['error'](_0xb85e5e);}_0x1cec46['model']['change'](_0x268684=>{for(const _0x2a45f7 of Array['from'](_0x1cec46['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x268684['removeMarker'](_0x2a45f7);}),_0x380de2['isReady']=!0x1,_0x1cec46['model']['enqueueChange'](_0x369d03=>{_0x369d03['setSelection'](null),_0x369d03['removeSelectionAttribute'](_0x1cec46['model']['document']['selection']['getAttributeKeys']());const _0x2acc1e=Object['keys'](_0x251f30);for(const _0x347d0d of _0x1cec46['model']['document']['roots'])'$graveyard'!=_0x347d0d['rootName']&&_0x347d0d['isAttached']()&&!_0x2acc1e['includes'](_0x347d0d['rootName'])&&_0x369d03['detachRoot'](_0x347d0d);for(const _0x21c069 of _0x2acc1e){let _0x122650=_0x1cec46['model']['document']['getRoot'](_0x21c069);_0x122650&&_0x122650['isAttached']()||(_0x122650=_0x369d03['addRoot'](_0x21c069));const _0x40213f=_0x49d59f[_0x21c069],_0x22b895=Object['keys'](_0x40213f),_0x162c01=_0x251f30[_0x21c069];for(const _0x5760d9 of _0x122650['getAttributeKeys']())_0x22b895['includes'](_0x5760d9)||_0x369d03['removeAttribute'](_0x5760d9,_0x122650);for(const _0x1c3a80 of _0x22b895)_0x369d03['setAttribute'](_0x1c3a80,_0x49d59f[_0x21c069][_0x1c3a80],_0x122650);_0x369d03['remove'](_0x369d03['createRangeIn'](_0x122650)),_0x369d03['insert'](_0x1cec46['data']['parse'](_0x162c01,_0x122650),_0x122650,0x0);}});const _0x1bbc7e=R(_0x1cec46['locale'],'Restored');if(_0x30d5a6['name'])_0x49fa19=-0x1==_0x30d5a6['name']['indexOf'](_0x1bbc7e)?_0x1bbc7e+':\x20'+_0x30d5a6['name']:_0x30d5a6['name'];else _0x49fa19=_0x1bbc7e+':\x20'+(_0x30d5a6['createdAt']['toLocaleDateString'](_0x1cec46['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x30d5a6['createdAt']['toLocaleTimeString'](_0x1cec46['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x292a6d['saveRevision']({'name':_0x49fa19}),_0x380de2['isReady']=!0x0,_0x1cec46['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,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|