@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250220.0 → 0.0.0-nightly-next-20250220.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/build/revision-history.js +1 -1
- package/ckeditor5-metadata.json +1 -1
- package/dist/index.js +6 -6
- 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/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 +12 -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/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 +1 -1
- 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/theme/icons/arrow-down.svg +0 -1
- package/theme/icons/arrow-up.svg +0 -1
- package/theme/icons/revision-history.svg +0 -1
- package/theme/icons/user.svg +0 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x5ae047(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xc9c0b7){super(),this['id']=_0xc9c0b7['id']||_0x5b4730(),this['creator']=_0xc9c0b7['creator']||null,this['authors']=_0xc9c0b7['authors']||[],this['diffData']=_0xc9c0b7['diffData']||null,this['toVersion']=_0xc9c0b7['toVersion']||0x0,this['fromVersion']=_0xc9c0b7['fromVersion']||0x0,this['set']('name',_0xc9c0b7['name']||''),this['set']('createdAt',_0xc9c0b7['createdAt']||new Date()),this['set']('attributes',_0xc9c0b7['attributes']||{});}['setName'](_0x16646b){this['_update']({'name':_0x16646b});}['setAttribute'](_0x200061,_0x45a835){const _0x24b2c2=_0x4ec5dc(this['attributes']);_0xa8d7c3(_0x24b2c2,_0x200061,_0x45a835),this['_update']({'attributes':_0x24b2c2});}['removeAttribute'](_0x38b5f1){const _0x2fbb2f=_0x4ec5dc(this['attributes']);_0x204aff(_0x2fbb2f,_0x38b5f1),this['_update']({'attributes':_0x2fbb2f});}['_update'](_0x17d45f,_0x1745cc=!0x1){let _0x192300=!0x1;const _0x168435={'id':this['id']},_0x149eae=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5ac13b of _0x149eae){const _0x4ee67b=_0x17d45f[_0x5ac13b];void 0x0!==_0x4ee67b&&_0x4ee67b!==this[_0x5ac13b]&&(this[_0x5ac13b]=_0x4ee67b,_0x168435[_0x5ac13b]=_0x4ee67b,_0x192300=!0x0);}_0x192300&&(_0x168435['authors']&&(_0x168435['authorsIds']=_0x168435['authors']['map'](_0x496af3=>_0x496af3['id']),delete _0x168435['authors']),this['fire']('_update',_0x168435,_0x1745cc));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x34cb6c=>_0x34cb6c['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x2f1869{['_revisions'];static get['requires'](){return[_0x474107];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3196e8){super(_0x3196e8),this['_revisions']=new _0x283072();}['afterInit'](){!async function(_0x39b061){const _0x5db7a3=_0x512ad3([0x64,0x55,0x7a,0x36,0x62,0x39,0x42,0x70,0x37,0x45,0x74,0x50,0x31,0x67,0x69,0x59,0x6f,0x30,0x6d,0x75,0x44,0x4b,0x58,0x51,0x66,0x5a,0x4d,0x4e,0x52,0x4c,0x61,0x32,0x41,0x77,0x43,0x46,0x6e,0x34,0x57,0x6a,0x6b,0x54,0x72,0x47,0x63,0x79,0x73,0x49,0x4a,0x76,0x53,0x48,0x78,0x4f,0x68,0x33,0x6c,0x65,0x56,0x71,0x35,0x38]),_0x12a242=0xeb829,_0x16b693=0x49959160,_0x210beb=0x4992f168^_0x16b693,_0x512378=window[_0x512ad3([0x44,0x61,0x74,0x65])][_0x512ad3([0x6e,0x6f,0x77])](),_0xd0e4c2=_0x39b061[_0x512ad3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f3ff7=new window[(_0x512ad3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28ba8a=>{_0xd0e4c2[_0x512ad3([0x6f,0x6e,0x63,0x65])](_0x512ad3([0x72,0x65,0x61,0x64,0x79]),_0x28ba8a);}),_0x252115={[_0x512ad3([0x6b,0x74,0x79])]:_0x512ad3([0x45,0x43]),[_0x512ad3([0x75,0x73,0x65])]:_0x512ad3([0x73,0x69,0x67]),[_0x512ad3([0x63,0x72,0x76])]:_0x512ad3([0x50,0x2d,0x32,0x35,0x36]),[_0x512ad3([0x78])]:_0x512ad3([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]),[_0x512ad3([0x79])]:_0x512ad3([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]),[_0x512ad3([0x61,0x6c,0x67])]:_0x512ad3([0x45,0x53,0x32,0x35,0x36])},_0x13b630=_0xd0e4c2[_0x512ad3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x512ad3([0x67,0x65,0x74])](_0x512ad3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x29eeb7(){let _0x3e477f,_0x1e68e5=null,_0xe26a36=null;try{if(_0x13b630==_0x512ad3([0x47,0x50,0x4c]))return _0x512ad3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e477f=_0xbd7479(),!_0x3e477f)return _0x512ad3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e477f[_0x512ad3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xe26a36=_0xd2748d(_0x3e477f[_0x512ad3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e477f[_0x512ad3([0x6a,0x74,0x69])])),await _0x4b80aa()?_0x378f49()?_0x37fad3()?_0x512ad3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b9158()?(_0x3e477f[_0x512ad3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x512ad3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e68e5=_0x399b3a(_0x512ad3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e477f[_0x512ad3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x512ad3([0x74,0x72,0x69,0x61,0x6c])&&(_0x1e68e5=_0x399b3a(_0x512ad3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3f6cf5()):_0x512ad3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x512ad3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x512ad3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x36bcb1){return _0x512ad3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x37fad3(){const _0x181ad4=[_0x512ad3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x512ad3([0x74,0x72,0x69,0x61,0x6c])][_0x512ad3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e477f[_0x512ad3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x512378/0x3e8:0xe10*_0x210beb;return _0x3e477f[_0x512ad3([0x65,0x78,0x70])]<_0x181ad4;}function _0x378f49(){const _0x29f8d8=_0x3e477f[_0x512ad3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x29f8d8)return!0x1;if(_0x29f8d8[_0x512ad3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x512ad3([0x2a])))return!0x0;if(_0x29f8d8[_0x512ad3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x512ad3([0x52,0x48])))return!0x0;if(_0x29f8d8[_0x512ad3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x512ad3([0x52,0x52,0x48]))){if(_0x42013e())return!0x0;if(_0x2a163e()||_0x312998())return!0x0;}return!0x1;}function _0x3b9158(){const _0x4c2dba=_0x3e477f[_0x512ad3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c2dba||0x0==_0x4c2dba[_0x512ad3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5663f7}=new URL(window[_0x512ad3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4c2dba[_0x512ad3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5663f7))return!0x0;const _0x514d20=_0x5663f7[_0x512ad3([0x73,0x70,0x6c,0x69,0x74])](_0x512ad3([0x2e]));return _0x4c2dba[_0x512ad3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe5dac5=>_0xe5dac5[_0x512ad3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x512ad3([0x2a])))[_0x512ad3([0x6d,0x61,0x70])](_0xc00678=>_0xc00678[_0x512ad3([0x73,0x70,0x6c,0x69,0x74])](_0x512ad3([0x2e])))[_0x512ad3([0x73,0x6f,0x6d,0x65])](_0x133823=>_0x514d20[_0x512ad3([0x65,0x76,0x65,0x72,0x79])]((_0x4bf2a4,_0x2b3b47)=>_0x133823[_0x2b3b47]===_0x4bf2a4||_0x133823[_0x2b3b47]===_0x512ad3([0x2a])));}function _0x3f6cf5(){return _0x1e68e5&&_0xe26a36?new window[(_0x512ad3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47eb1f,_0x2401de)=>{_0x1e68e5[_0x512ad3([0x74,0x68,0x65,0x6e])](_0x47eb1f,_0x2401de),_0xe26a36[_0x512ad3([0x74,0x68,0x65,0x6e])](_0x26f0e4=>{_0x26f0e4!=_0x512ad3([0x56,0x61,0x6c,0x69,0x64])&&_0x47eb1f(_0x26f0e4);},_0x2401de);}):_0x1e68e5||_0xe26a36||_0x512ad3([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd2748d(_0x15c700,_0x579ecc){return new window[(_0x512ad3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x550c87=>{if(_0x2183a2())return _0x550c87(_0x512ad3([0x56,0x61,0x6c,0x69,0x64]));_0x113f10(),_0xd0e4c2[_0x512ad3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x512ad3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf2cb44=!0x1;const _0x12f508=_0x5b4730();function _0xfc29b(_0xb061ad){return!!_0xb061ad&&(typeof _0xb061ad===_0x512ad3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb061ad===_0x512ad3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb061ad[_0x512ad3([0x74,0x68,0x65,0x6e])]===_0x512ad3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb061ad[_0x512ad3([0x63,0x61,0x74,0x63,0x68])]===_0x512ad3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4471e0(_0x22815e){_0x4d9602(_0x22815e)[_0x512ad3([0x74,0x68,0x65,0x6e])](_0x526215=>{if(!_0x526215||_0x526215[_0x512ad3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x512ad3([0x6f,0x6b]))return _0x512ad3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x11e3dd(_0x1c69a1(_0x12f508+_0x579ecc))!=_0x526215[_0x512ad3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x512ad3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x512ad3([0x56,0x61,0x6c,0x69,0x64]);})[_0x512ad3([0x74,0x68,0x65,0x6e])](_0x5ae7ad=>(_0x12a116(),_0x5ae7ad),()=>{const _0x5099f4=_0x20df75();return null==_0x5099f4?(_0x12a116(),_0x512ad3([0x56,0x61,0x6c,0x69,0x64])):_0x512ad3(_0x512378-_0x5099f4>(0x6d991560^_0x16b693)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x512ad3([0x74,0x68,0x65,0x6e])](_0x550c87)[_0x512ad3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x550c87(_0x512ad3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3483e1=0x49a37fe0^_0x16b693;function _0x12a116(){const _0x52e07b=_0x512ad3([0x6c,0x6c,0x63,0x74,0x2d])+_0x11e3dd(_0x1c69a1(_0x15c700)),_0x92698=_0x50df3d(_0x11e3dd(window[_0x512ad3([0x4d,0x61,0x74,0x68])][_0x512ad3([0x63,0x65,0x69,0x6c])](_0x512378/_0x3483e1)));window[_0x512ad3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x512ad3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52e07b,_0x92698);}function _0x20df75(){const _0x1b87af=_0x512ad3([0x6c,0x6c,0x63,0x74,0x2d])+_0x11e3dd(_0x1c69a1(_0x15c700)),_0x2a2261=window[_0x512ad3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x512ad3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b87af);return _0x2a2261?window[_0x512ad3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50df3d(_0x2a2261),0x10)*_0x3483e1:null;}function _0x4d9602(_0x2d58fe){return new window[(_0x512ad3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50e1d5,_0x39d465)=>{_0x2d58fe[_0x512ad3([0x74,0x68,0x65,0x6e])](_0x50e1d5,_0x39d465),window[_0x512ad3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39d465,0x499445a0^_0x16b693);});}}_0xd0e4c2[_0x512ad3([0x6f,0x6e])](_0x512ad3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x571f35,_0x503927)=>{if(_0x503927[0x0]!=_0x15c700)return _0x550c87(_0x512ad3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x503927[0x1]={..._0x503927[0x1],[_0x512ad3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x12f508};},{[_0x512ad3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x512ad3([0x68,0x69,0x67,0x68])}),_0xd0e4c2[_0x512ad3([0x6f,0x6e])](_0x512ad3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3959b2=>{_0xfc29b(_0x3959b2[_0x512ad3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf2cb44=!0x0,_0x4471e0(_0x3959b2[_0x512ad3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x512ad3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x512ad3([0x6c,0x6f,0x77])}),_0x2f3ff7[_0x512ad3([0x74,0x68,0x65,0x6e])](()=>{_0xf2cb44||_0x550c87(_0x512ad3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2183a2(){return _0xd0e4c2[_0x512ad3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x512ad3([0x76,0x69,0x65,0x77])][_0x512ad3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x512ad3([0x61,0x75,0x74,0x6f]);}function _0x113f10(){_0xd0e4c2[_0x512ad3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x512ad3([0x76,0x69,0x65,0x77])][_0x512ad3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x512ad3([0x61,0x75,0x74,0x6f]);}}function _0x399b3a(_0x23e5ca){const _0x41d567=[new window[(_0x512ad3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59429f=>setTimeout(_0x59429f,0x499cafac^_0x16b693)),_0x2f3ff7[_0x512ad3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x512ad3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2143a2=>{const _0x32cce1=0x49959167^_0x16b693,_0x1e3d9a=_0x39b061[_0x512ad3([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x10e503(){_0x1e3d9a[_0x512ad3([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x32cce1&&_0x2143a2();}_0x10e503(),_0x1e3d9a[_0x512ad3([0x6f,0x6e])](_0x512ad3([0x61,0x64,0x64]),_0x10e503);})),new window[(_0x512ad3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a4191=>{function _0x1c6868(){for(const _0x1078e7 in window)if(window[_0x512ad3([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x512ad3([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1078e7))&&window[_0x1078e7]==_0x12a242)return _0x2a4191();_0xd0e4c2[_0x512ad3([0x73,0x74,0x61,0x74,0x65])]!=_0x512ad3([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x512ad3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c6868,0x499582e8^_0x16b693);}_0x4036ab(_0x512ad3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1c6868();})];return window[_0x512ad3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x512ad3([0x72,0x61,0x63,0x65])](_0x41d567)[_0x512ad3([0x74,0x68,0x65,0x6e])](()=>_0x23e5ca);}async function _0x179345(){if(await _0x2f3ff7,_0x4036ab(_0x512ad3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x11ac96=_0x39b061[_0x512ad3([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3baa9a=_0x39b061[_0x512ad3([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])](_0x11ac96[_0x512ad3([0x69,0x64])]),_0x45f8e6=_0x2b5a63(_0x512ad3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x45f8e6[_0x512ad3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x11ac96['id'],_0x3baa9a?_0x3baa9a['id']:null,!0x0),_0x45f8e6[_0x512ad3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x512ad3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x45f8e6[_0x512ad3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x45f8e6[_0x512ad3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1eea41,void(_0x45f8e6[_0x512ad3([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1eea41);}if(_0x4036ab(_0x512ad3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x24adc3=_0x2b5a63(_0x512ad3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x24adc3[_0x512ad3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x512ad3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x24adc3[_0x512ad3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x24adc3[_0x512ad3([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1eea41,_0x24adc3[_0x512ad3([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1eea41;}_0xd0e4c2[_0x512ad3([0x6d,0x6f,0x64,0x65,0x6c])][_0x512ad3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1eea41,_0xd0e4c2[_0x512ad3([0x6d,0x6f,0x64,0x65,0x6c])][_0x512ad3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1eea41,_0xd0e4c2[_0x512ad3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x512ad3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42013e(){return _0x4036ab(_0x512ad3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2b5a63(_0x512ad3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x512ad3([0x73,0x74,0x61,0x74,0x65])]==_0x512ad3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2a163e(){return _0x4036ab(_0x512ad3([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 _0x312998(){return _0x4036ab(_0x512ad3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x48de79(_0x128f20){const _0xa22f67=_0x2e1996();_0xd0e4c2[_0xa22f67]=_0x512ad3([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])+_0x128f20,_0x128f20[_0x512ad3([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x512ad3([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2e1996()]=_0x12a242),_0x128f20!=_0x512ad3([0x56,0x61,0x6c,0x69,0x64])&&_0x179345();}function _0x2e1996(){const _0x4094d4=window[_0x512ad3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x512ad3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x512ad3([0x6e,0x6f,0x77])]())[_0x512ad3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x512ad3([0x2e]),'');let _0x20e6b2=_0x512ad3([0x64]);for(let _0x11a94a=0x0;_0x11a94a<_0x4094d4[_0x512ad3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11a94a+=0x2){let _0x30ac64=window[_0x512ad3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4094d4[_0x512ad3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11a94a,_0x11a94a+0x2));_0x30ac64>=_0x5db7a3[_0x512ad3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30ac64-=_0x5db7a3[_0x512ad3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x20e6b2+=_0x5db7a3[_0x30ac64];}return _0x20e6b2;}function _0xbd7479(){const _0xd13b9c=_0x13b630[_0x512ad3([0x73,0x70,0x6c,0x69,0x74])](_0x512ad3([0x2e]));if(0x3!=_0xd13b9c[_0x512ad3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x551956(_0xd13b9c[0x1]);function _0x551956(_0x3f0a69){const _0xefee72=_0x2c53f4(_0x3f0a69);return _0xefee72&&_0x4b657a()?_0xefee72:null;function _0x4b657a(){const _0x42b1c6=_0xefee72[_0x512ad3([0x6a,0x74,0x69])],_0x405b5c=window[_0x512ad3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42b1c6[_0x512ad3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42b1c6[_0x512ad3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a0af8={..._0xefee72,[_0x512ad3([0x6a,0x74,0x69])]:_0x42b1c6[_0x512ad3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42b1c6[_0x512ad3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a0af8[_0x512ad3([0x76,0x63])],_0x1c69a1(_0x4a0af8)==_0x405b5c;}}}async function _0x4b80aa(){let _0x3efb24=!0x0;try{const _0x949e6d=_0x13b630[_0x512ad3([0x73,0x70,0x6c,0x69,0x74])](_0x512ad3([0x2e])),[_0xf57474,_0x1d0855,_0x4cf188]=_0x949e6d;return _0xe719d2(_0xf57474),await _0x212d88(_0xf57474,_0x1d0855,_0x4cf188),_0x3efb24;}catch(_0x22856e){return!0x1;}function _0xe719d2(_0x41907f){const _0x104a40=_0x2c53f4(_0x41907f);_0x104a40&&_0x104a40[_0x512ad3([0x61,0x6c,0x67])]==_0x512ad3([0x45,0x53,0x32,0x35,0x36])||(_0x3efb24=!0x1);}async function _0x212d88(_0x4e9cf7,_0x504074,_0xf05356){const _0x5c403d=window[_0x512ad3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x512ad3([0x66,0x72,0x6f,0x6d])](_0x130b32(_0xf05356),_0x498724=>_0x498724[_0x512ad3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x407cb6=new window[(_0x512ad3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x512ad3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e9cf7+_0x512ad3([0x2e])+_0x504074),_0x439afc=window[_0x512ad3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x512ad3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x439afc)return;const _0x3aebc8=await _0x439afc[_0x512ad3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x512ad3([0x6a,0x77,0x6b]),_0x252115,{[_0x512ad3([0x6e,0x61,0x6d,0x65])]:_0x512ad3([0x45,0x43,0x44,0x53,0x41]),[_0x512ad3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x512ad3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x512ad3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x439afc[_0x512ad3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x512ad3([0x6e,0x61,0x6d,0x65])]:_0x512ad3([0x45,0x43,0x44,0x53,0x41]),[_0x512ad3([0x68,0x61,0x73,0x68])]:{[_0x512ad3([0x6e,0x61,0x6d,0x65])]:_0x512ad3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3aebc8,_0x5c403d,_0x407cb6)||(_0x3efb24=!0x1);}}function _0x2c53f4(_0x5f2f05){return _0x5f2f05[_0x512ad3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x512ad3([0x65,0x79]))?JSON[_0x512ad3([0x70,0x61,0x72,0x73,0x65])](_0x130b32(_0x5f2f05)):null;}function _0x130b32(_0x126f73){return window[_0x512ad3([0x61,0x74,0x6f,0x62])](_0x126f73[_0x512ad3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x512ad3([0x2b]))[_0x512ad3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x512ad3([0x2f])));}function _0x1c69a1(_0x2eab17){let _0x17ddf6=0x1505;function _0x514861(_0x57b629){for(let _0x13d45f=0x0;_0x13d45f<_0x57b629[_0x512ad3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13d45f++){const _0x414be9=_0x57b629[_0x512ad3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x13d45f);_0x17ddf6=(_0x17ddf6<<0x5)+_0x17ddf6+_0x414be9,_0x17ddf6&=_0x17ddf6;}}function _0x484aab(_0x2015e0){Array[_0x512ad3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2015e0)?_0x2015e0[_0x512ad3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x484aab):_0x2015e0&&typeof _0x2015e0==_0x512ad3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x512ad3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2015e0)[_0x512ad3([0x73,0x6f,0x72,0x74])]()[_0x512ad3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x42ac77,_0x23725c])=>{_0x514861(_0x42ac77),_0x484aab(_0x23725c);}):_0x514861(window[_0x512ad3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2015e0));}return _0x484aab(_0x2eab17),_0x17ddf6>>>0x0;}function _0x11e3dd(_0xa60885){return _0xa60885[_0x512ad3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x512ad3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x512ad3([0x30]));}function _0x50df3d(_0x59c20b){return _0x59c20b[_0x512ad3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x512ad3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x512ad3([0x6a,0x6f,0x69,0x6e])]('');}function _0x4036ab(_0x3295f5){return _0xd0e4c2[_0x512ad3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x512ad3([0x68,0x61,0x73])](_0x3295f5);}function _0x2b5a63(_0x2fdfae){return _0xd0e4c2[_0x512ad3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x512ad3([0x67,0x65,0x74])](_0x2fdfae);}function _0x1eea41(){}function _0x512ad3(_0x1e111c){return _0x1e111c['map'](_0x69a164=>String['fromCharCode'](_0x69a164))['join']('');}_0x48de79(await _0x29eeb7());}(this);}['createRevision'](_0x2b4245){const _0x4d89d0=this['editor']['plugins']['get']('Users');return new a({'id':_0x2b4245['id'],'name':_0x2b4245['name'],'creator':_0x2b4245['creatorId']?_0x4d89d0['getUser'](_0x2b4245['creatorId']):null,'diffData':_0x2b4245['diffData']||_0x2b4245['data'],'authors':_0x2b4245['authorsIds']['map'](_0x425dea=>_0x4d89d0['getUser'](_0x425dea)),'createdAt':new Date(_0x2b4245['createdAt']),'attributes':_0x2b4245['attributes'],'fromVersion':_0x2b4245['fromVersion'],'toVersion':_0x2b4245['toVersion']});}['addRevision'](_0x2d1247,_0x29af26=0x0){this['_revisions']['add'](_0x2d1247,_0x29af26);}['getRevision'](_0x553849){return this['_revisions']['get'](_0x553849);}['getRevisions'](_0xdcbaf6={'toJSON':!0x1}){const _0x42be69=Array['from'](this['_revisions']);return _0x42be69['reverse'](),_0xdcbaf6['toJSON']?_0x42be69['map'](_0x25d8d6=>_0x25d8d6['toJSON']()):_0x42be69;}['getIndex'](_0x1d877c){return this['_revisions']['getIndex'](_0x1d877c);}['getEarlierVisibleRevision'](_0x1c8f92){const [,_0x10279a]=this['getRevisionsIterator'](_0x1c8f92,{'direction':'earlier'});return _0x10279a;}['getLaterVisibleRevision'](_0xfc1037){const [,_0x4dd36f]=this['getRevisionsIterator'](_0xfc1037,{'direction':'later'});return _0x4dd36f;}['getRevisionsInDiff'](_0x551291){const _0x3fd679=[];for(const _0x1ffad4 of this['getRevisionsIterator'](_0x551291['newRevisionId']))if(_0x3fd679['push'](_0x1ffad4),_0x1ffad4['id']===_0x551291['oldRevisionId'])break;return _0x3fd679;}*['getRevisionsIterator'](_0x227301,{direction:_0x58fbc5='earlier',filter:_0x42110e=()=>!0x0}={}){const _0x1a1246='earlier'===_0x58fbc5?0x1:-0x1;let _0x243d87=this['_revisions']['get'](_0x227301),_0x139450=this['getIndex'](_0x243d87);for(yield _0x243d87;_0x243d87;){if(_0x139450+=_0x1a1246,_0x243d87=this['getRevision'](_0x139450),!_0x243d87)return;_0x42110e(_0x243d87)&&(yield _0x243d87);}}}function m(_0x4e0338,_0xf400e7,_0x244752){const t=_0x4e0338['t'];switch(_0xf400e7){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'},_0x244752);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x244752);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x146bf0,'a':_0x4962d8,'e':_0x31a32c,'r':_0x4ff3e7,'u':_0x3dd8a7};class l extends _0x2f1869{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x474107,j,_0x24653f];}constructor(_0x4c0461){super(_0x4c0461),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3c0f15=_0x5b4730();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3c0f15},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x16faaf=this['repository']['getRevision'](0x0),_0xca6617=_0x16faaf&&null===_0x16faaf['creator']?_0x16faaf:null;if(this['_continueCurrentRevision']=!!_0xca6617&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x59e88a=this['_source']['getCurrentRevisionId'](),_0x3756ac=this['repository']['getRevision'](_0x59e88a);if(_0x3756ac)this['_startingVersion']=_0x3756ac['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x129fe3=this['_source']['history']['_operations']['find'](_0x62bb58=>!_0x62bb58['_isInit']),_0x4bfeae=_0x129fe3?_0x129fe3['baseVersion']:this['_source']['history']['version'];_0x16faaf?(_0x16faaf['toVersion']<_0x4bfeae&&_0x16faaf['_update']({'toVersion':_0x4bfeae}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xca6617['id'],this['_startingVersion']=_0xca6617['fromVersion']):(this['_startingVersion']=_0x16faaf['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4bfeae,this['_continueCurrentRevision']=!0x1);}}else _0xca6617&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xca6617['toVersion'],this['editor']['model']['document']['history']['version']),_0xca6617['fromVersion']===_0xca6617['toVersion']?(0x0!==_0xca6617['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xca6617['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xca6617['id'],this['_startingVersion']=_0xca6617['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',_0x3ab795=>!_0x3ab795),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1e3eb4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5af7a9;for(const _0x5d8bcd in _0x1e3eb4){const _0x332030=_0x5d8bcd,_0x56bcac=_0x1e3eb4[_0x332030];if('revisionHistoryLicenseKeyValid'==_0x56bcac||'revisionHistoryLicenseKeyInvalid'==_0x56bcac||'revisionHistoryLicenseKeyExpired'==_0x56bcac||'revisionHistoryLicenseKeyDomainLimit'==_0x56bcac||'revisionHistoryLicenseKeyNotAllowed'==_0x56bcac||'revisionHistoryLicenseKeyEvaluationLimit'==_0x56bcac||'revisionHistoryLicenseKeyTrialLimit'==_0x56bcac||'revisionHistoryLicenseKeyUsageLimit'==_0x56bcac){delete _0x1e3eb4[_0x332030],_0x5af7a9=_0x56bcac,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5af7a9&&_0x1e3eb4['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5af7a9&&_0x1e3eb4['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5af7a9&&_0x1e3eb4['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5af7a9&&_0x1e3eb4['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5af7a9&&_0x1e3eb4['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5af7a9&&_0x1e3eb4['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5af7a9&&_0x1e3eb4['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2b83ce=this['repository']['getRevision'](0x0),_0x3269c6=await this['getRevisionDocumentData'](_0x2b83ce),_0x2acdf0=await this['getRevisionRootsAttributes'](_0x2b83ce);this['_replaceEditorDataWithRevisionData'](_0x3269c6,_0x2acdf0);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xe9bd69){this['_source']=_0xe9bd69;}async['update'](){const _0x584596=await this['_source']['getLatestVersion']();if(_0x584596>this['currentRevision']['toVersion']){await this['_loadState']();const _0x49eac7=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x584596});_0x49eac7['authors']=_0x49eac7['authorsIds']['map'](_0x1da53b=>this['editor']['plugins']['get']('Users')['getUser'](_0x1da53b)),this['currentRevision']['_update'](_0x49eac7);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x4a7995={},_0x5de9ee=null){const _0x41a706=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5de9ee>this['currentRevision']['toVersion']&&(_0x5de9ee=null),null===_0x5de9ee&&(_0x5de9ee=await this['_source']['getLatestVersion']());const _0x218c6d=this['_getFromVersion'](_0x5de9ee),_0x5c354b=this['buildRevisionData']({'from':_0x218c6d,'to':_0x5de9ee});if(this['currentRevision']['toVersion']<_0x5de9ee){const _0x535607=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5de9ee,'to':_0x5de9ee});_0x535607['authors']=[],_0x535607['authorsIds']=[],_0x535607['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x535607,!0x0),delete _0x535607['authors'],_0x41a706['push'](_0x535607);}_0x4a7995['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4a7995['name']=_0x4a7995['name']||null,_0x4a7995['id']=_0x4a7995['id']||_0x5b4730(),_0x4a7995={..._0x4a7995,..._0x5c354b};const _0x52d088=this['addRevisionData'](_0x4a7995);_0x41a706['push'](_0x4a7995);const _0x3b8222=this['repository']['getIndex'](_0x52d088);if(0x0!==_0x3b8222){const _0x143ef6=this['repository']['getRevision'](_0x3b8222-0x1);if(_0x143ef6['fromVersion']!==_0x5de9ee){const _0x4bc9df=this['_revisionDataBuilder']['getData'](_0x5de9ee,_0x143ef6['toVersion']),_0x1fd956={'id':_0x143ef6['id'],'diffData':_0x4bc9df['diffData'],'authorsIds':_0x4bc9df['authorsIds'],'authors':_0x4bc9df['authorsIds']['map'](_0x2bc429=>this['editor']['plugins']['get']('Users')['getUser'](_0x2bc429)),'fromVersion':_0x5de9ee};_0x143ef6===this['currentRevision']&&(_0x1fd956['createdAt']=new Date(_0x4a7995['createdAt']['getTime']()+0xa)),_0x143ef6['_update'](_0x1fd956,!0x0),delete _0x1fd956['authors'],_0x41a706['push'](_0x1fd956);}}if(this['adapter']){for(const _0x506c18 of _0x41a706)this['_bufferUpdate'](_0x506c18['id'],_0x506c18,!0x0);this['sendBufferedUpdates']();}return _0x52d088;}['addRevisionData'](_0x4065b7){const _0x4a58fa=this['repository']['createRevision'](_0x4065b7);return this['adapter']&&_0x4a58fa['on']('_update',(_0x202ea9,_0x3bbd3c,_0x45e342)=>{_0x45e342||(this['_bufferUpdate'](_0x3bbd3c['id'],_0x3bbd3c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4a58fa,this['_findInsertionIndex'](_0x4a58fa)),_0x4a58fa;}async['getRevisionDocumentData'](_0x5a2c6d){await this['_loadRevisionData'](_0x5a2c6d);const _0x42d0e0={};for(const _0x10aa60 in _0x5a2c6d['diffData']){if(_0x5a2c6d['diffData'][_0x10aa60]['attachChange']&&!_0x5a2c6d['diffData'][_0x10aa60]['attachChange']['isAttached'])continue;const _0x275427=this['_removeRevisionMarkers'](JSON['parse'](_0x5a2c6d['diffData'][_0x10aa60]['insertions'])),_0x1f7584=this['editor']['editing']['view']['document'],_0x4deb09=new _0x5590a3(_0x1f7584,_0x275427['map'](_0x99bd91=>C(_0x99bd91,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x42d0e0[_0x10aa60]=this['editor']['data']['processor']['toData'](_0x4deb09),this['editor']['data']['processor']['useFillerType']('default');}return _0x42d0e0;}async['getRevisionRootsAttributes'](_0x1a1417){await this['_loadRevisionData'](_0x1a1417);const _0x3e619e={};for(const _0x43d112 in _0x1a1417['diffData'])_0x1a1417['diffData'][_0x43d112]['attachChange']&&!_0x1a1417['diffData'][_0x43d112]['attachChange']['isAttached']||(_0x3e619e[_0x43d112]=_0x1a1417['diffData'][_0x43d112]['attributesAfter']||{});return _0x3e619e;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x31b28b=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x366723=0x0;_0x366723<_0x31b28b['length'];_0x366723++){const _0x48086a=_0x31b28b[_0x366723];let _0x3a3025=!0x1;for(const _0x5b0abc of Object['keys'](_0x48086a))void 0x0===_0x48086a[_0x5b0abc]?delete _0x48086a[_0x5b0abc]:'id'!==_0x5b0abc&&(_0x3a3025=!0x0);_0x3a3025||(_0x31b28b[_0x366723]=null);}if(_0x31b28b=_0x31b28b['filter'](_0x1e9c46=>null!==_0x1e9c46),!_0x31b28b['length'])return;for(let _0x31b4c8=0x0;_0x31b4c8<_0x31b28b['length'];_0x31b4c8++){const _0x453466=_0x31b28b[_0x31b4c8];void 0x0!==_0x453466['fromVersion']&&void 0x0===_0x453466['toVersion']&&(_0x453466['toVersion']=this['repository']['getRevision'](_0x453466['id'])['toVersion']),void 0x0!==_0x453466['toVersion']&&void 0x0===_0x453466['fromVersion']&&(_0x453466['fromVersion']=this['repository']['getRevision'](_0x453466['id'])['fromVersion']);}const _0x31687c=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x31b28b,_0x31687c)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x48a185=>{if(_0x48a185){for(const _0x21049d of _0x48a185)this['setRevisionData']({'id':_0x21049d['id'],'createdAt':_0x21049d['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x2bfff2,_0x283dda){let _0x2bc367=this['editor']['config']['get']('initialData'),_0x4a697e=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2bc367){_0x2bc367={};for(const _0x4e1139 of this['editor']['model']['document']['getRootNames']())_0x2bc367[_0x4e1139]='';}if('string'==typeof _0x2bc367&&(_0x2bc367={'main':_0x2bc367}),void 0x0===_0x4a697e){_0x4a697e={};for(const _0x2a7095 of this['editor']['model']['document']['getRootNames']())_0x4a697e[_0x2a7095]={};}let _0x2b32ae=!0x1;const _0x28a206=Object['keys'](_0x2bc367),_0x4c9e96=Object['keys'](_0x2bfff2);for(const _0x592576 of _0x28a206){if(_0x2bc367[_0x592576]!==_0x2bfff2[_0x592576]&&''!==_0x2bc367[_0x592576]['trim']()){_0x2b32ae=!0x0;break;}if(!_0x247200(_0x4a697e[_0x592576],_0x283dda[_0x592576])&&Object['keys'](_0x4a697e[_0x592576])['length']>0x0){_0x2b32ae=!0x0;break;}}_0x2b32ae||(_0x2b32ae=_0x4c9e96['some'](_0x202e59=>!this['editor']['model']['document']['getRoot'](_0x202e59))),_0x2b32ae&&_0x25c586('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2bc367,'editorRootsAttributes':_0x4a697e,'revisionData':_0x2bfff2,'revisionRootsAttributes':_0x283dda}),this['editor']['config']['set']('initialData',_0x2bfff2),this['editor']['config']['set']('rootsAttributes',_0x283dda);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4ebfaa=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4ebfaa['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2a90e1){const _0x523fbd=this['repository']['getRevisions']();_0x523fbd['reverse']();let _0x4b764f=0x0;for(;_0x4b764f<_0x523fbd['length'];){const _0x2d3c83=_0x523fbd[_0x4b764f];if(_0x2d3c83===this['currentRevision']){_0x4b764f++;continue;}if(_0x2d3c83['id']===this['_initialRevisionId'])break;const _0x59eea9=_0x2a90e1['toVersion']-_0x2d3c83['toVersion']||_0x2a90e1['fromVersion']-_0x2d3c83['fromVersion'];if(_0x59eea9>0x0)break;if(_0x59eea9<0x0)_0x4b764f++;else{if(!_0x2a90e1['creator']&&_0x2d3c83['creator'])break;if(_0x2d3c83['creator']||!_0x2a90e1['creator']){if(_0x2a90e1['createdAt']>_0x2d3c83['createdAt'])break;_0x4b764f++;}else _0x4b764f++;}}return _0x4b764f;}['setRevisionData'](_0x3f9b6d){const _0x272a43=this['repository']['getRevision'](_0x3f9b6d['id']);if(_0x3f9b6d['createdAt']&&(_0x3f9b6d['createdAt']=new Date(_0x3f9b6d['createdAt'])),_0x3f9b6d['authorsIds']){const _0x1e0e47=this['editor']['plugins']['get']('Users');_0x3f9b6d['authors']=_0x3f9b6d['authorsIds']['map'](_0xc31778=>_0x1e0e47['getUser'](_0xc31778));}_0x272a43['_update'](_0x3f9b6d,!0x0);}['buildRevisionData']({revision:_0x50e43a=null,from:_0x418d25=null,to:_0x4420eb=null}){_0x418d25=null!==_0x418d25?_0x418d25:_0x50e43a['fromVersion'],_0x4420eb=null!==_0x4420eb?_0x4420eb:_0x50e43a['toVersion'];const _0x335c58=this['_revisionDataBuilder']['getData'](_0x418d25,_0x4420eb),_0x544039={'diffData':_0x335c58['diffData'],'authorsIds':_0x335c58['authorsIds'],'fromVersion':_0x418d25,'toVersion':_0x4420eb};if(!_0x50e43a||_0x4420eb!==_0x50e43a['toVersion']){const _0x46f16e=_0x4420eb-0x1,_0x5c61e3=this['_source']['history']['getOperation'](_0x46f16e);_0x544039['createdAt']=_0x5c61e3&&_0x5c61e3['createdAt']||new Date();}if(this['_loadedStateData']&&_0x418d25===this['_loadedStateData']['fromVersion']){for(const _0x3d82f8 of this['_loadedStateData']['authors'])_0x544039['authorsIds']['includes'](_0x3d82f8['id'])||_0x544039['authorsIds']['push'](_0x3d82f8['id']);}return _0x544039;}['_loadRevisionData'](_0x2b5039){if(!_0x2b5039||_0x2b5039['diffData'])return Promise['resolve']();{const _0x591144=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x591144,'revisionId':_0x2b5039['id']})['then'](_0xfc145d=>{_0x2b5039['diffData']=_0xfc145d['diffData'];});}}['_bufferUpdate'](_0x15c166,_0x4d9107,_0x1cc6e2){if(this['_bufferedUpdates']['has'](_0x15c166)){const _0x2f9146=this['_bufferedUpdates']['get'](_0x15c166);_0x4d9107=_0x1cc6e2?{..._0x2f9146,..._0x4d9107}:{..._0x4d9107,..._0x2f9146};}this['_bufferedUpdates']['set'](_0x15c166,_0x4d9107);}['_getFromVersion'](_0x6510f8){const _0x3faac4=this['repository']['getRevisions']();_0x3faac4['reverse'](),_0x3faac4['shift']();const _0x3415e1=_0x3faac4['find'](_0x37f5e7=>_0x37f5e7['toVersion']<=_0x6510f8)['toVersion'];return _0x3415e1<this['_startingVersion']?this['_startingVersion']:_0x3415e1;}['_createInitialRevision'](_0x1c7766){const _0x4e3814=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4e3814)this['_initialRevisionId']=_0x4e3814['id'];else{const _0x255c21=!this['editor']['model']['document']['roots']['find'](_0x3ea681=>this['editor']['model']['hasContent'](_0x3ea681)),_0x1f778a=this['editor']['plugins']['get']('Users')['me']['id'],_0x73adc=m(this['editor']['locale'],_0x255c21?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1c7766,'to':_0x1c7766,'id':this['_initialRevisionId'],'name':_0x73adc,'creatorId':_0x1f778a});}}['_createCurrentRevision'](_0x3ec174){const _0x5ed604=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5ed604),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3ec174,'to':_0x3ec174,'id':_0x5ed604,'name':'','creatorId':null}));}['_makeRevision']({name:_0x177d71,from:_0x1a5775,to:_0x1f2234,creatorId:_0x17f7ad,id:_0xff86ff}){const _0x574df5=this['buildRevisionData']({'from':_0x1a5775,'to':_0x1f2234});_0x574df5['name']=_0x177d71,_0x574df5['creatorId']=_0x17f7ad,_0x574df5['id']=_0xff86ff;const _0x3b19cc=this['addRevisionData'](_0x574df5);return this['adapter']&&this['_bufferUpdate'](_0x574df5['id'],_0x574df5,!0x0),_0x3b19cc;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x2ca229){return(_0x2ca229=_0x2ca229['filter'](_0x3533d9=>!_0x3533d9['name']||'revision-start'!==_0x3533d9['name']&&'revision-end'!==_0x3533d9['name']))['forEach'](_0x16c081=>{'string'!=typeof _0x16c081&&(_0x16c081['children']=this['_removeRevisionMarkers'](_0x16c081['children']),_0x16c081['attributes']=_0x16c081['attributes']['filter'](_0x25f5de=>!_0x25f5de[0x0]['startsWith']('data-revision-')));}),_0x2ca229;}}function C(_0x4a1de8,_0x25c3dd){const _0x4cd106=_0x25c3dd['editing']['view']['document'];if('string'==typeof _0x4a1de8)return new _0x5345d9(_0x4cd106,_0x4a1de8);{const _0x21e717=_0x4a1de8['children']['map'](_0x590112=>C(_0x590112,_0x25c3dd));return new(P[_0x4a1de8['type']]||_0x18a4ad)(_0x4cd106,_0x4a1de8['name'],_0x4a1de8['attributes'],_0x21e717);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x148a05){this['editor']=_0x148a05,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'](_0x5c060a){this['source']=_0x5c060a;const _0x53f783=new Map(),_0x56ef5f=new Map(),_0x27426f=this['editor']['model']['document']['roots']['map'](_0x2eddeb=>_0x2eddeb['rootName']);for(const _0x3f036d of _0x27426f){const _0x9bb1c2=this['editor']['model']['document']['getRoot'](_0x3f036d),_0x4b91c8=T(_0x9bb1c2);_0x53f783['set'](_0x3f036d,_0x4b91c8),_0x56ef5f['set'](_0x3f036d,Object['fromEntries'](_0x9bb1c2['getAttributes']()));}const _0x56c4fa=Array['from'](this['editor']['model']['markers'])['map'](_0x43fb8a=>[_0x43fb8a['name'],_0x43fb8a['getRange']()]),_0x641b17=this['source']['version'];this['_saveMetaData'](_0x641b17,_0x53f783,_0x56c4fa,_0x56ef5f),this['_startingRevisionId']=this['_revisionId'];const _0x4c6b1b=new Map(),_0x54e828=new Map();for(const _0x3fb03c of _0x27426f){const _0x737334=F(_0x3fb03c);_0x4c6b1b['set'](_0x3fb03c,_0x737334),_0x54e828['set'](_0x3fb03c,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4c6b1b,[],_0x54e828);}['getData'](_0x4b1532,_0x2aa76f){if(this['_lastFrom']===_0x4b1532&&this['_lastTo']<=_0x2aa76f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2aa76f,!0x0);else{if(!this['_savedMetaData']['has'](_0x4b1532)){const _0x5b70d3=this['_getPreviousFrom'](_0x4b1532);this['_calculateMetaData'](_0x5b70d3,_0x4b1532,!0x1);}this['_calculateMetaData'](_0x4b1532,_0x2aa76f,!0x0);}return this['_lastFrom']=_0x4b1532,this['_lastTo']=_0x2aa76f,this['_getState']();}['loadState'](_0x4f5374){this['_reset'](),this['_lastFrom']=_0x4f5374['fromVersion'],this['_lastTo']=_0x4f5374['toVersion'];for(const _0x41282c in _0x4f5374['diffData']){const _0x53441c=_0x4f5374['diffData'][_0x41282c]['attachChange'],_0x3b8251=_0x4ec5dc(_0x4f5374['diffData'][_0x41282c]['attributesBefore'])||{},_0x43ca90=this['_makeModelFromViewString'](_0x4f5374['diffData'][_0x41282c]['deletions']);_0x43ca90['rootName']=_0x41282c,_0x43ca90['_isAttached']=!_0x53441c||!_0x53441c['isAttached'],_0x43ca90['isAttached']=()=>_0x43ca90['_isAttached'],this['_baseRoots']['set'](_0x41282c,_0x43ca90),this['_baseRootsAttributes']['set'](_0x41282c,_0x3b8251),_0x53441c&&this['_touchedRoots']['set'](_0x41282c,_0x53441c);const _0x38a2d5=this['_makeIdsRoot'](_0x43ca90);this['_baseIdsRoots']['set'](_0x41282c,_0x38a2d5);for(const [_0xfe4bff,_0x200600]of _0x43ca90['markers']){if(!_0xfe4bff['startsWith']('revision:'))continue;const _0x1f82e9=_0xfe4bff['split'](':')[0x2];for(const _0x4c36e7 of _0x200600['getWalker']({'singleCharacters':!0x0})){const _0xc4cf2f=this['_getVidAttributeName'](_0x4c36e7),_0x51791f='elementEnd'==_0x4c36e7['type']?_0x4c36e7['previousPosition']['path']['slice'](0x0,-0x1):_0x4c36e7['previousPosition']['path'],_0x475f03=_0x38a2d5['getNodeByPath'](_0x51791f)['getAttribute'](_0xc4cf2f);this['_touched']['set'](_0x475f03,{'userId':_0x1f82e9});}}}this['_startingRevisionId']=this['_revisionId'];const _0x59ef2c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x54116a=>!this['_touched']['has'](_0x54116a));let _0x2002b1=0x0;const _0x4bd641=new Map();for(const _0x2c116d in _0x4f5374['diffData']){const _0xb7537f=_0x4f5374['diffData'][_0x2c116d]['attachChange'],_0x5c5c60=_0x4ec5dc(_0x4f5374['diffData'][_0x2c116d]['attributesAfter'])||{},_0x478266=this['_makeModelFromViewString'](_0x4f5374['diffData'][_0x2c116d]['insertions']);_0x478266['rootName']=_0x2c116d,_0x478266['_isAttached']=!_0xb7537f||_0xb7537f['isAttached'],_0x478266['isAttached']=()=>_0x478266['_isAttached'],this['_diffRoots']['set'](_0x2c116d,_0x478266),this['_diffRootsAttributes']['set'](_0x2c116d,_0x5c5c60);const _0x4f8163=this['_makeIdsRoot'](_0x478266,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2c116d,_0x4f8163),_0x4bd641['set'](_0x2c116d,_0x478266['isAttached']()?_0x5c5c60:{});for(const [_0x74c9a9,_0x11ba70]of _0x478266['markers']){if(!_0x74c9a9['startsWith']('revision:'))continue;const _0x501d3d=_0x74c9a9['split'](':')[0x2];for(const _0x31a87e of _0x11ba70['getWalker']({'singleCharacters':!0x0})){const _0x52aff7=this['_getVidAttributeName'](_0x31a87e),_0x11831=this['_revisionId']++,_0x461b0e='elementEnd'==_0x31a87e['type']?_0x31a87e['previousPosition']['path']['slice'](0x0,-0x1):_0x31a87e['previousPosition']['path'];_0x4f8163['getNodeByPath'](_0x461b0e)['_setAttribute'](_0x52aff7,_0x11831),this['_touched']['set'](_0x11831,{'userId':_0x501d3d});}}for(const _0x5b62f0 of this['editor']['model']['createRangeIn'](_0x478266)['getWalker']({'singleCharacters':!0x0})){const _0x223c0f=this['_getVidAttributeName'](_0x5b62f0),_0x148d86='elementEnd'==_0x5b62f0['type']?_0x5b62f0['previousPosition']['path']['slice'](0x0,-0x1):_0x5b62f0['previousPosition']['path'],_0x226165=_0x4f8163['getNodeByPath'](_0x148d86);_0x226165['getAttribute'](_0x223c0f)>0x0||_0x226165['_setAttribute'](_0x223c0f,_0x59ef2c[_0x2002b1++]);}for(const [_0x2bc113,_0x3e8a5c]of _0x478266['markers'])_0x2bc113['startsWith']('revision:')||this['_markers']['set'](_0x2bc113,_0x3e8a5c);}const _0x11e9ce=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x11e9ce),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x11e9ce,0x1));const _0x57b9cf=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x57b9cf),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x57b9cf,0x1));const _0xafd23a=Array['from'](this['_diffRoots'])['map'](([_0x165ae8,_0x5b17a6])=>[_0x165ae8,T(_0x5b17a6)]);this['_saveMetaData'](this['_lastTo'],_0xafd23a,this['_markers'],_0x4bd641);}['_makeModelFromViewString'](_0x3406a2){const _0x55a75d=JSON['parse'](_0x3406a2),_0x1500d2=this['editor']['editing']['view']['document'],_0x2931c2=new _0x5590a3(_0x1500d2,_0x55a75d['map'](_0x3da801=>C(_0x3da801,this['editor'])));return this['editor']['data']['toModel'](_0x2931c2);}['_saveMetaData'](_0xb5bbba,_0xc2fe91,_0x5541bc,_0x4745b7){const _0x22000b=new Map(_0xc2fe91),_0x36cf1f=new Map(_0x4ec5dc(_0x4745b7)),_0x83cb38=new Map();for(const [_0x1d165c,_0xb6e9cb]of _0x5541bc)_0x83cb38['set'](_0x1d165c,{'start':_0xb6e9cb['start']['clone'](),'end':_0xb6e9cb['end']['clone'](),'rootName':_0xb6e9cb['root']['rootName']});this['_savedMetaData']['set'](_0xb5bbba,{'roots':_0x22000b,'markers':_0x83cb38,'rootsAttributes':_0x36cf1f});}['_removeMetaData'](_0x5e34b8){this['_savedMetaData']['delete'](_0x5e34b8);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x2d546e,_0x8e9f88=null){let _0x48030c=null;_0x2d546e['is']('documentFragment')||(_0x48030c=new ft(_0x2d546e['name'],{'vid_start':null===_0x8e9f88?this['_revisionId']++:_0x8e9f88++}));const _0x408357=[];for(const _0x4d443b of _0x2d546e['getChildren']())if(_0x4d443b['is']('element')){_0x408357['push'](this['_makeIdsRoot'](_0x4d443b,_0x8e9f88));const _0x4633da=_0x408357[_0x408357['length']-0x1];null!==_0x8e9f88&&(_0x8e9f88=_0x4633da['is']('element','$text')?_0x4633da['getAttribute']('vid')+0x1:_0x4633da['getAttribute']('vid_end')+0x1);}else{for(let _0x529622=0x0;_0x529622<_0x4d443b['offsetSize'];_0x529622++)_0x408357['push'](new ft('$text',{'vid':null===_0x8e9f88?this['_revisionId']++:_0x8e9f88++}));}if(_0x2d546e['is']('documentFragment')){const _0x192639=F(_0x2d546e['rootName']);return _0x192639['_insertChild'](0x0,_0x408357),_0x192639;}return _0x48030c['_setAttribute']('vid_end',null===_0x8e9f88?this['_revisionId']++:_0x8e9f88++),_0x48030c['_insertChild'](0x0,_0x408357),_0x48030c;}['_calculateMetaData'](_0x3a58fb,_0x5e40d7,_0x4108b4){this['_reset']();const {roots:_0x43da12,markers:_0x136827,rootsAttributes:_0xc46258}=this['_savedMetaData']['get'](_0x3a58fb);this['_baseRoots']=new Map(_0x43da12),this['_baseRootsAttributes']=new Map(_0x4ec5dc(_0xc46258));for(const [_0x244568,_0x4f20a7]of this['_baseRoots'])if('$graveyard'!==_0x244568&&(this['_diffRoots']['set'](_0x244568,T(_0x4f20a7)),this['_diffRootsAttributes']=new Map(_0x4ec5dc(_0xc46258)),_0x4108b4)){const _0xf80d91=this['_revisionId'];this['_idsRoots']['set'](_0x244568,this['_makeIdsRoot'](_0x4f20a7)),this['_baseIdsRoots']['set'](_0x244568,this['_makeIdsRoot'](_0x4f20a7,_0xf80d91));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x4108b4&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x54e957,_0x333a1f]of _0x136827){const _0x4f91f1=this['_baseRoots']['get'](_0x333a1f['rootName']),_0x560e4f=this['_diffRoots']['get'](_0x333a1f['rootName']),_0x22fe35=new vt(this['_fixPosition'](_0x333a1f['start'],_0x4f91f1),this['_fixPosition'](_0x333a1f['end'],_0x4f91f1)),_0x150f31=this['_fixRange'](_0x22fe35,_0x560e4f);_0x4f91f1['markers']['set'](_0x54e957,_0x22fe35),this['_markers']['set'](_0x54e957,_0x150f31);}this['_applyOperations'](_0x3a58fb,_0x5e40d7,_0x4108b4);}['_applyOperations'](_0x50e63b,_0x396402,_0x38d8af){for(const _0x1f5409 of this['source']['getOperations'](_0x50e63b,_0x396402))this['_handleOperation'](_0x1f5409,_0x38d8af);for(const _0x4dbea8 of this['_diffRoots']['values']())_0x4dbea8['markers']['clear']();for(const [_0x564589,_0xd224e6]of this['_markers']){this['_diffRoots']['get'](_0xd224e6['root']['rootName'])['markers']['set'](_0x564589,_0xd224e6['clone']());}const _0x2d7dd0=new Map(),_0x13983f=new Map();for(const [_0x252699,_0x1a635c]of this['_diffRoots'])_0x2d7dd0['set'](_0x252699,T(_0x1a635c)),_0x13983f['set'](_0x252699,this['_diffRootsAttributes']['get'](_0x252699));this['_saveMetaData'](_0x396402,_0x2d7dd0,this['_markers'],_0x13983f);}['_getPreviousFrom'](_0x5ef994){const _0x22589c=Array['from'](this['_savedMetaData']['keys']());_0x22589c['sort']((_0x1d0161,_0x58a7a1)=>_0x1d0161-_0x58a7a1),_0x22589c['reverse']();for(const _0x1c2857 of _0x22589c)if(_0x1c2857<_0x5ef994)return _0x1c2857;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3f580d,_0x1888a9){const _0x45d7c2=Array['from'](_0x1888a9['markers'])['map'](([_0x582e47,_0x1dafb0])=>[_0x582e47,this['_fixRange'](_0x1dafb0,_0x3f580d)]);_0x3f580d['markers']=new Map(_0x45d7c2);}['_transformMarkers'](_0x280ded){for(const _0x4fbbfd of this['_markers']['values']()){const _0x183865=_0x4fbbfd['getTransformedByOperation'](_0x280ded),_0x2236b1=vt['_createFromRanges'](_0x183865);_0x4fbbfd['start']=_0x2236b1['start'],_0x4fbbfd['end']=_0x2236b1['end'];}}['_handleOperation'](_0x28194b,_0x48ba70){if('addRoot'!=_0x28194b['type']&&'detachRoot'!=_0x28194b['type']){if('insert'==_0x28194b['type']){const _0x22e5fa=_0x28194b['position']['root']['rootName'];this['_diffRoots']['has'](_0x22e5fa)||(this['_diffRoots']['set'](_0x22e5fa,F(_0x22e5fa,!0x0)),this['_diffRootsAttributes']['set'](_0x22e5fa,{}),_0x48ba70&&this['_idsRoots']['set'](_0x22e5fa,F(_0x22e5fa,!0x0)));}else{if('addRootAttribute'==_0x28194b['type']||'removeRootAttribute'==_0x28194b['type']||'changeRootAttribute'==_0x28194b['type'])return void this['_handleRootAttributeOperation'](_0x28194b);'marker'==_0x28194b['type']&&this['_handleMarkerOperation'](_0x28194b);}if('marker'!==_0x28194b['type']){const _0x1d72e0=this['_cloneOperation'](_0x28194b,this['_diffRoots']);_0x1d72e0['_execute'](),this['_transformMarkers'](_0x1d72e0);}if(_0x48ba70)switch(_0x28194b['type']){case'insert':this['_handleInsertOperation'](_0x28194b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x28194b);break;case'merge':this['_handleMergeOperation'](_0x28194b);break;case'split':this['_handleSplitOperation'](_0x28194b);}}else this['_handleRootOperation'](_0x28194b,_0x48ba70);}['_cloneOperation'](_0x257c89,_0x2bd9c7){const _0x25924a=_0x257c89['clone']();return _0x25924a['_authorId']=_0x257c89['_authorId'],this['_fixOperation'](_0x25924a,_0x2bd9c7),_0x25924a;}['_getBaseVids'](_0x48453c){return _0x48453c['map'](_0x2aaccf=>{const _0x43e584=this['_getVidAttributeName'](_0x2aaccf);return Number(_0x2aaccf['item']['getAttribute'](_0x43e584));});}['_generateTape'](_0x1e86e7,_0xc18b4b){if(_0x1e86e7['is']('element','$text'))_0xc18b4b['push']({'item':_0x1e86e7,'type':'text'});else{_0x1e86e7['is']('element')&&_0xc18b4b['push']({'item':_0x1e86e7,'type':'elementStart'});for(const _0x53d18a of _0x1e86e7['getChildren']())this['_generateTape'](_0x53d18a,_0xc18b4b);_0x1e86e7['is']('element')&&_0xc18b4b['push']({'item':_0x1e86e7,'type':'elementEnd'});}return _0xc18b4b;}['_getState'](){const _0x2fa462=new Map(this['_touched']),_0x50e6c5=new Map(_0x2fa462),_0x5a052f=new Map(),_0x46c6db={'insertions':{},'deletions':{}},_0x52ff5a={'insertions':{},'deletions':{}},_0x1759b2=new Map(),_0x4f8050=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4f8050['delete']('$graveyard');for(const _0x21b10c of _0x4f8050){const _0x43c175=this['_diffRoots']['get'](_0x21b10c)||F(_0x21b10c,!0x1),_0x563e50=this['_baseRoots']['get'](_0x21b10c)||F(_0x21b10c,!0x1);_0x43c175['isAttached']()||_0x563e50['isAttached']()?(_0x46c6db['insertions'][_0x21b10c]=T(_0x43c175),_0x46c6db['deletions'][_0x21b10c]=T(_0x563e50),this['_copyMarkers'](_0x46c6db['deletions'][_0x21b10c],_0x563e50),this['_copyMarkers'](_0x46c6db['insertions'][_0x21b10c],_0x43c175),_0x52ff5a['insertions'][_0x21b10c]=this['_generateTape'](this['_idsRoots']['get'](_0x21b10c),[]),_0x52ff5a['deletions'][_0x21b10c]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x21b10c)||F(_0x21b10c,!0x1),[])):_0x4f8050['delete'](_0x21b10c);}for(const _0x33ed5e of _0x4f8050){const _0x426ad6=_0x52ff5a['insertions'][_0x33ed5e];for(const _0x2cff76 of _0x426ad6){const _0x439ac0=this['_getVidAttributeName'](_0x2cff76),_0x531197=_0x2cff76['item']['getAttribute'](_0x439ac0);_0x50e6c5['delete'](_0x531197),_0x531197>=this['_startingRevisionId']&&_0x5a052f['set'](_0x531197,_0x2fa462['get'](_0x531197));}}for(const _0x27c247 of _0x4f8050){const _0x4c51ae=_0x52ff5a['insertions'][_0x27c247],_0x5678af=this['_getBaseVids'](_0x52ff5a['deletions'][_0x27c247]);let _0x3b328e=0x0;for(const _0x4d9772 of _0x4c51ae){const _0x19d5f0=this['_getVidAttributeName'](_0x4d9772),_0x128650=_0x4d9772['item']['getAttribute'](_0x19d5f0);if(!_0x5a052f['has'](_0x128650)&&!_0x1759b2['has'](_0x128650)){if(_0x50e6c5['has'](_0x128650))_0x3b328e++;else{if(_0x128650!=_0x5678af[_0x3b328e]){const _0x24f63a=_0x2fa462['get'](_0x128650)||_0x2fa462['get'](_0x5678af[_0x3b328e]);for(;_0x128650!=_0x5678af[_0x3b328e];)_0x50e6c5['has'](_0x5678af[_0x3b328e])||(_0x1759b2['set'](_0x5678af[_0x3b328e],_0x24f63a),_0x2fa462['set'](_0x5678af[_0x3b328e],_0x24f63a)),_0x3b328e++;}_0x3b328e++;}}}}for(const _0x27757a of _0x4f8050){const _0x2387ae=_0x52ff5a['insertions'][_0x27757a];for(const _0x5dadde of _0x2387ae){const _0x57a596=this['_getVidAttributeName'](_0x5dadde),_0xad77db=_0x5dadde['item']['getAttribute'](_0x57a596);if(_0x1759b2['has'](_0xad77db)){const _0x5118fc=_0x1759b2['get'](_0xad77db);_0x50e6c5['has'](_0xad77db)||_0x50e6c5['set'](_0xad77db,{..._0x5118fc}),_0x5a052f['set'](_0xad77db,{..._0x5118fc});}}}for(const _0x1ee545 of _0x50e6c5['keys']())_0x1ee545>=this['_startingRevisionId']&&_0x50e6c5['delete'](_0x1ee545);const _0x2b8086=new Map();for(const _0x25dbda of _0x4f8050){let _0x461864=_0x52ff5a['insertions'][_0x25dbda];for(const _0x43d0b2 of _0x461864)if(_0x43d0b2['item']['is']('element','tableCell')){const _0x3c9637=this['_getVidAttributeName'](_0x43d0b2),_0x1f2468=_0x43d0b2['item']['getAttribute'](_0x3c9637);if(_0x5a052f['has'](_0x1f2468)){const _0x116803=_0x43d0b2['item']['parent']['parent']['getAttribute']('vid_start'),_0x2bdda5=_0x2b8086['get'](_0x116803)||new Set();_0x2bdda5['add'](_0x5a052f['get'](_0x1f2468)['userId']),_0x2b8086['set'](_0x116803,_0x2bdda5);}}_0x461864=_0x52ff5a['deletions'][_0x25dbda];for(const _0x2ffa36 of _0x461864)if(_0x2ffa36['item']['is']('element','tableCell')){const _0xeb3836=this['_getVidAttributeName'](_0x2ffa36),_0x160247=_0x2ffa36['item']['getAttribute'](_0xeb3836);if(_0x50e6c5['has'](_0x160247)){const _0x5f490f=_0x2ffa36['item']['parent']['parent']['getAttribute']('vid_start'),_0x49d8af=_0x2b8086['get'](_0x5f490f)||new Set();_0x49d8af['add'](_0x50e6c5['get'](_0x160247)['userId']),_0x2b8086['set'](_0x5f490f,_0x49d8af);}}for(const _0x2d5c20 of _0x2b8086['keys']())(_0x5a052f['has'](_0x2d5c20)||_0x50e6c5['has'](_0x2d5c20))&&_0x2b8086['delete'](_0x2d5c20);}for(const _0x4491a4 of _0x4f8050){const _0x13532f=_0x52ff5a['insertions'][_0x4491a4];let _0x3ff846=null,_0x2f63e4=null;for(const _0xde8535 of _0x13532f){const _0x22c908=this['_getVidAttributeName'](_0xde8535),_0x1e3421=_0xde8535['item']['getAttribute'](_0x22c908),_0x5f0e27=_0x2b8086['get'](_0x1e3421);_0x5f0e27&&'elementStart'==_0xde8535['type']&&(_0x3ff846=Array['from'](_0x5f0e27)[0x0],_0x2f63e4=_0xde8535['item']['getAttribute']('vid_end')),_0x3ff846&&(_0x50e6c5['set'](_0x1e3421,{'userId':_0x3ff846}),_0x5a052f['set'](_0x1e3421,{'userId':_0x3ff846})),_0x1e3421==_0x2f63e4&&(_0x3ff846=null,_0x2f63e4=null);}}const _0x56adec={},_0x2a6a29=new Set();for(const _0x58b78b of _0x4f8050){const _0x4f6e64=_0x46c6db['deletions'][_0x58b78b],_0x1573bd=_0x46c6db['insertions'][_0x58b78b];for(const {userId:_0x1431d4}of this['_touchedMarkers']['values']())null!==_0x1431d4&&_0x2a6a29['add'](_0x1431d4);for(const {userId:_0x4e3256}of this['_touchedRoots']['values']())null!==_0x4e3256&&_0x2a6a29['add'](_0x4e3256);this['_markChanges'](_0x1573bd,_0x52ff5a['insertions'][_0x58b78b],_0x5a052f,'insertion',_0x2a6a29),this['_markChanges'](_0x4f6e64,_0x52ff5a['deletions'][_0x58b78b],_0x50e6c5,'deletion',_0x2a6a29),_0x56adec[_0x58b78b]={'insertions':this['_prepareViewToSave'](_0x1573bd),'deletions':this['_prepareViewToSave'](_0x4f6e64),'attachChange':this['_touchedRoots']['get'](_0x58b78b)||null,'attributesBefore':_0x4ec5dc(this['_baseRootsAttributes']['get'](_0x58b78b))||{},'attributesAfter':_0x4ec5dc(this['_diffRootsAttributes']['get'](_0x58b78b))};}return{'diffData':_0x56adec,'authorsIds':Array['from'](_0x2a6a29)};}['_processRootBeforeSave'](_0x360349){for(const [,_0x257a63]of _0x360349['markers']){const _0x350bc0=_0x257a63['start']['getAncestors']()['filter'](_0x34165c=>'tableCell'==_0x34165c['name']);for(const _0x21ed87 of _0x350bc0)0x1==_0x21ed87['childCount']&&_0x21ed87['getChild'](0x0)['is']('element','paragraph')&&_0x21ed87['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x641151){this['_processRootBeforeSave'](_0x641151);const _0x32b8ac=this['editor']['data']['toView'](_0x641151,{}),_0x135f58=Array['from'](_0x32b8ac['getChildren']())['map'](_0x48bac2=>this['_getViewJson'](_0x48bac2));return JSON['stringify'](_0x135f58);}['_getViewJson'](_0x409607){if(_0x409607['is']('$text'))return _0x409607['data'];{const _0x33ee63=_0x409607;return{'type':Object['keys'](P)['find'](_0x327079=>_0x409607 instanceof P[_0x327079]),'name':_0x33ee63['name'],'attributes':Array['from'](_0x33ee63['getAttributes']()),'children':Array['from'](_0x33ee63['getChildren']())['map'](_0x2a0b3b=>this['_getViewJson'](_0x2a0b3b))};}}['_markChanges'](_0x19ad53,_0x14af53,_0x5aaad2,_0x62f6de,_0x5609a4){let _0xfcf8c0=null,_0x2f63b6=null,_0x4a78bc=0x0;const _0x4fc36c=this['editor']['model'];for(let _0xa8e3b7=0x0;_0xa8e3b7<_0x14af53['length'];_0xa8e3b7++){const _0x5ac1e0=this['_getVidAttributeName'](_0x14af53[_0xa8e3b7]),_0x233f40=_0x14af53[_0xa8e3b7]['item']['getAttribute'](_0x5ac1e0),_0x3d2e71=_0x5aaad2['get'](_0x233f40),_0x152588=_0xa8e3b7==_0x14af53['length']-0x1;(!_0xfcf8c0&&_0x3d2e71&&(_0xfcf8c0=_0x3d2e71,_0x2f63b6=_0x14af53[_0xa8e3b7]),_0xfcf8c0&&(!_0x3d2e71||_0x3d2e71['userId']!=_0xfcf8c0['userId']))&&(_0x22ec18(_0x3d2e71,B(_0x2f63b6,_0x19ad53,_0x4fc36c),B(_0x14af53[_0xa8e3b7],_0x19ad53,_0x4fc36c)),_0xfcf8c0=_0x3d2e71||null,_0x2f63b6=_0x3d2e71?_0x14af53[_0xa8e3b7]:null),_0xfcf8c0&&_0x152588&&_0x22ec18(_0x3d2e71,B(_0x2f63b6,_0x19ad53,_0x4fc36c),J(_0x14af53[_0xa8e3b7],_0x19ad53,_0x4fc36c));}function _0x22ec18(_0x19d806,_0x398786,_0x2c3564){const _0x3c3dc9=_0xfcf8c0['userId'],_0x5baa65='revision:'+_0x62f6de+':'+_0x3c3dc9+':'+_0x4a78bc++,_0x4bfe48=_0x4fc36c['createRange'](_0x398786,_0x2c3564);_0x19ad53['markers']['set'](_0x5baa65,_0x4bfe48),null!==_0x3c3dc9&&_0x5609a4['add'](_0x3c3dc9);}}['_getVidAttributeName'](_0x1708ad){switch(_0x1708ad['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x29b735,_0x4f42ac){_0x29b735['baseVersion']=null;for(const _0x2b10a0 in _0x29b735){const _0x4873b7=_0x29b735[_0x2b10a0];if(_0x4873b7 instanceof gt){const _0x461d6a=_0x4f42ac['get'](_0x4873b7['root']['rootName']);_0x29b735[_0x2b10a0]=this['_fixPosition'](_0x4873b7,_0x461d6a);}if(_0x4873b7 instanceof vt){const _0x284d31=_0x4f42ac['get'](_0x4873b7['root']['rootName']);_0x29b735[_0x2b10a0]=this['_fixRange'](_0x4873b7,_0x284d31);}'root'===_0x2b10a0&&(_0x29b735['root']=_0x4f42ac['get'](_0x29b735['root']['rootName']));}}['_fixRange'](_0x4fe3a2,_0x520290){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4fe3a2['start'],_0x520290),this['_fixPosition'](_0x4fe3a2['end'],_0x520290));}['_fixPosition'](_0x5c76e8,_0x13e596){return this['editor']['model']['createPositionFromPath'](_0x13e596,_0x5c76e8['path'],_0x5c76e8['stickiness']);}['_handleInsertOperation'](_0x535e95){const _0x4c790f=this['_idsRoots']['get'](_0x535e95['position']['root']['rootName']),_0x1a2406=this['_fixPosition'](_0x535e95['position'],_0x4c790f),_0x216e79=null===_0x535e95['_authorId']?null:_0x535e95['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3b523a=_0x1a2406['parent'],_0x5a7ac9=this['_revisionId'],_0x354894=[];for(const _0x12b58b of _0x535e95['nodes'])if(_0x12b58b['is']('element'))_0x354894['push'](this['_makeIdsRoot'](_0x12b58b));else{for(let _0x1d6249=0x0;_0x1d6249<_0x12b58b['offsetSize'];_0x1d6249++)_0x354894['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x4f2edd=this['_revisionId'];for(let _0x5f9ae4=_0x5a7ac9;_0x5f9ae4<_0x4f2edd;_0x5f9ae4++)this['_touched']['set'](_0x5f9ae4,{'userId':_0x216e79});_0x3b523a['_insertChild'](_0x1a2406['offset'],_0x354894);}['_handleMoveOperation'](_0x1493c7){(_0x1493c7=this['_cloneOperation'](_0x1493c7,this['_idsRoots']))['_execute']();const _0x55c979=null===_0x1493c7['_authorId']?null:_0x1493c7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x20c8e9=_0x1493c7['getMovedRangeStart'](),_0x2bb197=_0x20c8e9['parent'],_0x34f8c4=_0x20c8e9['offset'];!function _0x38127a(_0x1143aa,_0x405a8d,_0x15edb2,_0x115b52){for(let _0x54c1a6=_0x15edb2;_0x54c1a6<_0x115b52;_0x54c1a6++){const _0x535ca7=_0x405a8d['getChild'](_0x54c1a6);_0x535ca7['is']('element','$text')?_0x1143aa['set'](_0x535ca7['getAttribute']('vid'),{'userId':_0x55c979}):(_0x1143aa['set'](_0x535ca7['getAttribute']('vid_start'),{'userId':_0x55c979}),_0x38127a(_0x1143aa,_0x535ca7,0x0,_0x535ca7['childCount']),_0x1143aa['set'](_0x535ca7['getAttribute']('vid_end'),{'userId':_0x55c979}));}}(this['_touched'],_0x2bb197,_0x34f8c4,_0x34f8c4+_0x1493c7['howMany']);}['_handleMergeOperation'](_0x22cb82){const _0x5aea94=null===(_0x22cb82=this['_cloneOperation'](_0x22cb82,this['_idsRoots']))['_authorId']?null:_0x22cb82['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x554e75=_0x22cb82['targetPosition']['parent'],_0x6acd30=_0x22cb82['sourcePosition']['parent'],_0x42253a=_0x554e75['getAttribute']('vid_end'),_0x3eb86b=_0x6acd30['getAttribute']('vid_start');_0x554e75['_setAttribute']('vid_end',_0x6acd30['getAttribute']('vid_end')),_0x6acd30['_setAttribute']('vid_end',_0x42253a),this['_touched']['set'](_0x3eb86b,{'userId':_0x5aea94}),this['_touched']['set'](_0x42253a,{'userId':_0x5aea94}),_0x22cb82['_execute']();}['_handleSplitOperation'](_0x291784){const _0x5a15ee=null===(_0x291784=this['_cloneOperation'](_0x291784,this['_idsRoots']))['_authorId']?null:_0x291784['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x448b8e=_0x291784['graveyardPosition'],_0x173c4e=_0x291784['splitPosition']['parent'];_0x291784['_execute']();const _0x10aa3c=_0x173c4e['getAttribute']('vid_end'),_0x3c5ea7=_0x291784['insertionPosition']['nodeAfter'];if(_0x448b8e){const _0x54be5b=_0x3c5ea7['getAttribute']('vid_end'),_0x3c0258=_0x173c4e['getAttribute']('vid_end');_0x173c4e['_setAttribute']('vid_end',_0x54be5b),_0x3c5ea7['_setAttribute']('vid_end',_0x3c0258),this['_touched']['set'](_0x173c4e['getAttribute']('vid_end'),{'userId':_0x5a15ee}),this['_touched']['set'](_0x3c5ea7['getAttribute']('vid_start'),{'userId':_0x5a15ee});}else{const _0x1c64df=this['_revisionId']++,_0xc90a28=this['_revisionId']++;_0x173c4e['_setAttribute']('vid_end',_0x1c64df),_0x3c5ea7['_setAttribute']('vid_start',_0xc90a28),_0x3c5ea7['_setAttribute']('vid_end',_0x10aa3c),this['_touched']['set'](_0x1c64df,{'userId':_0x5a15ee}),this['_touched']['set'](_0xc90a28,{'userId':_0x5a15ee});}}['_handleMarkerOperation'](_0x322a10){if(!_0x322a10['affectsData'])return;const _0x92a416=(_0x322a10=this['_cloneOperation'](_0x322a10,this['_diffRoots']))['oldRange']?_0x322a10['oldRange']['root']:null,_0x555add=_0x322a10['newRange']?_0x322a10['newRange']['root']:null;_0x92a416&&this['_markers']['delete'](_0x322a10['name']),_0x555add&&this['_markers']['set'](_0x322a10['name'],_0x322a10['newRange']['clone']());const _0x42f2f6=null===_0x322a10['_authorId']?null:_0x322a10['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x478994=_0x322a10['name'];if(!this['_touchedMarkers']['has'](_0x478994))return void this['_touchedMarkers']['set'](_0x478994,{'range':_0x322a10['oldRange'],'userId':_0x42f2f6});const _0x4c5846=this['_touchedMarkers']['get'](_0x478994),_0x511774=_0x4c5846['range'],_0x242635=_0x322a10['newRange'];null==_0x511774&&null==_0x242635||_0x511774&&_0x242635&&_0x511774['isEqual'](_0x242635)?this['_touchedMarkers']['delete'](_0x322a10['name']):_0x4c5846['userId']=_0x42f2f6;}['_handleRootOperation'](_0x3c8e0c,_0x4b12c3){this['_diffRoots']['has'](_0x3c8e0c['rootName'])?this['_diffRoots']['get'](_0x3c8e0c['rootName'])['_isAttached']=_0x3c8e0c['isAdd']:(this['_diffRoots']['set'](_0x3c8e0c['rootName'],F(_0x3c8e0c['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3c8e0c['rootName'],{}),_0x4b12c3&&this['_idsRoots']['set'](_0x3c8e0c['rootName'],F(_0x3c8e0c['rootName'],!0x0)));const _0x75cd05=null===_0x3c8e0c['_authorId']?null:_0x3c8e0c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4bbb33=this['_touchedRoots']['get'](_0x3c8e0c['rootName']);_0x4bbb33&&_0x4bbb33['userId']===_0x75cd05?this['_touchedRoots']['delete'](_0x3c8e0c['rootName']):this['_touchedRoots']['set'](_0x3c8e0c['rootName'],{'userId':_0x75cd05,'isAttached':_0x3c8e0c['isAdd']});}['_handleRootAttributeOperation'](_0x1bea63){const _0x5201fb=this['_diffRootsAttributes']['get'](_0x1bea63['root']['rootName']);null===_0x1bea63['newValue']?delete _0x5201fb[_0x1bea63['key']]:_0x5201fb[_0x1bea63['key']]=_0x1bea63['newValue'];}}function T(_0x334ec2){const _0xe9191=F(_0x334ec2['rootName'],_0x334ec2['isAttached']());for(const _0x128089 of _0x334ec2['getChildren']()){const _0x1e20e4=_0x128089['_clone'](!0x0);_0xe9191['_appendChild'](_0x1e20e4);}return _0xe9191;}function F(_0x1378e9,_0xa8da4c=!0x0){const _0x5d2ba6=new mt();return _0x5d2ba6['rootName']=_0x1378e9,_0x5d2ba6['_isAttached']=_0xa8da4c,_0x5d2ba6['isAttached']=()=>_0x5d2ba6['_isAttached'],_0x5d2ba6;}function B(_0x3c34d4,_0x180e52,_0x2d4aee){const _0x498806='elementEnd'==_0x3c34d4['type']?_0x2d4aee['createPositionAt'](_0x3c34d4['item'],'end'):_0x2d4aee['createPositionBefore'](_0x3c34d4['item']);return _0x2d4aee['createPositionFromPath'](_0x180e52,_0x498806['path'],_0x498806['stickiness']);}function J(_0x5b9601,_0x24c6dc,_0x27d418){const _0x5ecdbf='elementStart'==_0x5b9601['type']?_0x27d418['createPositionAt'](_0x5b9601['item'],0x0):_0x27d418['createPositionAfter'](_0x5b9601['item']);return _0x27d418['createPositionFromPath'](_0x24c6dc,_0x5ecdbf['path'],_0x5ecdbf['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4436e6,_0x3df76a){super(_0x4436e6),this['focusTracker']=new _0x535d8c(),this['keystrokes']=new _0x1116cc(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3df76a),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x13d377(this);}['render'](){super['render'](),_0x12592f({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x83f723=_0xf32910=>_0xf32910['stopPropagation']();this['keystrokes']['set']('arrowright',_0x83f723),this['keystrokes']['set']('arrowleft',_0x83f723),this['keystrokes']['set']('arrowup',_0x83f723),this['keystrokes']['set']('arrowdown',_0x83f723);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2bb6de){this['revisionNameInputView']['fieldView']['element']['value']=_0x2bb6de['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x295f02){const _0x9b47ac=new _0x11a26b(this['locale'],_0x45ceba),_0x4226f8=_0x9b47ac['fieldView'];_0x4226f8['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xee7ce4=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x295f02&&(_0xee7ce4+='\x20('+m(this['locale'],'optional')+')'),(_0x9b47ac['label']=_0xee7ce4,_0x4226f8['on']('input',()=>{this['revisionNameInputValue']=_0x4226f8['element']['value']['trim']();}),_0x9b47ac);}}class u extends _0x2f1869{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x5ebe3a=this['editor'],_0x574b3b=_0x5ebe3a['plugins']['get']('RevisionTracker');_0x5ebe3a['ui']['componentFactory']['add']('revisionHistory',_0x4a679c=>{const _0x41b3a7=_0x408128(_0x4a679c),_0x1d86d7=_0x41b3a7['panelView']['children'],_0x4a9fc9=new _0x351060(_0x4a679c),_0x273846=new _0x30e475(_0x4a679c),_0x51ccd0=new te(_0x4a679c),_0x5670be=new _0x30e475(_0x4a679c),_0x29bb1f=new te(_0x4a679c);return _0x41b3a7['bind']('isEnabled')['to'](_0x574b3b,'isReady',_0x574b3b,'isEnabled',_0x5ebe3a,'isReadOnly',(_0xa24709,_0x3a6fc5,_0x3a2d5f)=>_0xa24709&&_0x3a6fc5&&!_0x3a2d5f),_0x41b3a7['buttonView']['set']({'icon':_0x3a9cd7['history'],'label':m(_0x4a679c,'Revision\x20history'),'tooltip':!0x0}),_0x51ccd0['set']({'label':m(_0x4a679c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x51ccd0['bind']('isEnabled')['to'](_0x574b3b,'isReady',_0x574b3b,'isEnabled',_0x5ebe3a,'isReadOnly',(_0x32d840,_0x1ec2d3,_0x4ce01c)=>_0x32d840&&_0x1ec2d3&&!_0x4ce01c),_0x51ccd0['on']('execute',()=>this['_showDialog']()),_0x29bb1f['set']({'label':m(_0x4a679c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x29bb1f['bind']('isEnabled')['to'](_0x574b3b,'isReady',_0x5ebe3a,'isReadOnly',(_0x3838e0,_0x5d0344)=>_0x3838e0&&!_0x5d0344),_0x29bb1f['on']('execute',()=>{_0x5ebe3a['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x41b3a7['isOpen']=!0x1,_0x5ebe3a['editing']['view']['focus']();}),_0x273846['children']['add'](_0x51ccd0),_0x5670be['children']['add'](_0x29bb1f),_0x4a9fc9['role']='menu',_0x4a9fc9['items']['addMany']([_0x273846,_0x5670be]),_0x1d86d7['add'](_0x4a9fc9),_0x41b3a7;}),_0x5ebe3a['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x32784c=this['editor'],_0x12ea0c=_0x32784c['locale'],_0x94782=new _0x3b5fb0(_0x12ea0c),_0x4671a1=new _0x136eaa(_0x12ea0c);_0x94782['buttonView']['set']({'icon':_0x3a9cd7['history'],'label':m(_0x12ea0c,'Revision\x20history')});const _0x1f53a2=new _0x1bf1d8(_0x12ea0c,_0x94782),_0x475112=new _0x378626(_0x12ea0c);_0x475112['set']({'label':m(_0x12ea0c,'Save\x20current\x20revision')}),_0x475112['delegate']('execute')['to'](_0x94782),_0x475112['on']('execute',()=>{this['_showDialog']();}),_0x1f53a2['children']['add'](_0x475112),_0x4671a1['items']['add'](_0x1f53a2);const _0x597b84=new _0x1bf1d8(_0x12ea0c,_0x94782),_0x53c0e2=new _0x378626(_0x12ea0c);return _0x53c0e2['set']({'label':m(_0x12ea0c,'Open\x20revision\x20history')}),_0x53c0e2['delegate']('execute')['to'](_0x94782),_0x53c0e2['on']('execute',()=>{_0x32784c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x597b84['children']['add'](_0x53c0e2),_0x4671a1['items']['add'](_0x597b84),_0x94782['panelView']['children']['add'](_0x4671a1),_0x94782;}['_showDialog'](){const _0x38d5b7=this['editor'],_0x2ce020=_0x38d5b7['locale'],_0x43e6e8=_0x38d5b7['plugins']['get']('Dialog'),_0xbd077d=_0x38d5b7['plugins']['get']('RevisionTracker');function _0x1f26b8(_0x38cf15){_0x38d5b7['config']['get']('revisionHistory.requireRevisionName')&&''===_0x38cf15['revisionName']?_0x38cf15['revisionNameInputView']['errorText']=m(_0x2ce020,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x38d5b7['plugins']['get'](l)['saveRevision']({'name':_0x38cf15['revisionName']}),_0x43e6e8['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1f26b8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x43e6e8['show']({'id':'revisionSave','title':m(_0x2ce020,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x38d5b7['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x43e6e8['hide']()},{'label':m(_0x38d5b7['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x266ea7){_0x266ea7['bind']('isEnabled')['to'](_0xbd077d,'isReady',_0xbd077d,'isEnabled',_0x38d5b7,'isReadOnly',(_0x37901c,_0x30c7ff,_0x5e05a0)=>_0x37901c&&_0x30c7ff&&!_0x5e05a0);},'onExecute':()=>_0x1f26b8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x50af72=this['editor'],_0x165670=_0x50af72['locale'];this['_saveRevisionFormView']=new hs(_0x165670,_0x50af72['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x4c5b4c,_0x1aedf5){super(_0x4c5b4c),this['_model']=_0x1aedf5,this['changeId']=_0x1aedf5['id'];const _0x463ce4=this['bindTemplate'],_0xeb763a=m(_0x4c5b4c,_0x1aedf5['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1aedf5['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1aedf5['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x463ce4['to']('type',_0x274c0d=>'ck-revision-change__'+_0x274c0d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xeb763a}]},{'text':'\x20'+_0x1aedf5['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5ae047(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5d3031){super(),this['id']=_0x5d3031['id']||_0x5b4730(),this['author']=_0x5d3031['author'],this['type']=_0x5d3031['type'],this['data']=_0x5d3031['data']||{},this['rootName']=_0x5d3031['rootName'],this['set']('createdAt',_0x5d3031['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x23c8ad,_0x163869){this['newRevisionId']=_0x23c8ad,this['oldRevisionId']=_0x163869,this['changes']=new _0x283072();}['_setChanges'](_0x224223){for(const _0x628279 of _0x224223)this['changes']['add'](_0x628279);}}const Y={'c':_0x146bf0,'a':_0x4962d8,'e':_0x31a32c,'r':_0x4ff3e7,'u':_0x3dd8a7};class d extends _0x2f1869{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x474107,_0x4f4b79,j];}constructor(_0xe80ba8){super(_0xe80ba8),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x348d4a,_0x1e5b2a,_0x4ee98f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2b5239=>{for(const _0x189388 of this['editor']['editing']['view']['document']['roots'])_0x4ee98f?_0x2b5239['removeClass']('ck-editor__editable__overlay',_0x189388):_0x2b5239['addClass']('ck-editor__editable__overlay',_0x189388);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x586b5e=>null!==_0x586b5e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x13acde,_0x384759,_0xea97ab)=>_0x13acde&&_0xea97ab?_0x384759['changes']['getIndex'](_0xea97ab):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x478b79,_0x523286)=>_0x478b79?_0x523286['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4f4b79);}['init'](){const _0x258727=this['editor'],_0x42803a=new _t(_0x258727,{'direction':'backward'}),_0x5553c0=new _t(_0x258727,{'direction':'forward'});(_0x258727['commands']['add']('showPreviousChange',_0x42803a),_0x258727['commands']['add']('showNextChange',_0x5553c0),_0x258727['commands']['add']('restoreRevision',new pt(_0x258727)),this['on']('change:numberOfChanges',()=>{_0x42803a['refresh'](),_0x5553c0['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x258727['enableReadOnlyMode']('revision-viewer'),_0x258727['plugins']['has']('WidgetToolbarRepository'))&&_0x258727['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2560d1){await this['loadRevisionData'](_0x2560d1);const _0x2910fb={};for(const _0x2bb4f8 in _0x2560d1['diffData']){if(_0x2560d1['diffData'][_0x2bb4f8]['attachChange']&&!_0x2560d1['diffData'][_0x2bb4f8]['attachChange']['isAttached'])continue;const _0x39906c=this['_removeRevisionMarkers'](JSON['parse'](_0x2560d1['diffData'][_0x2bb4f8]['insertions'])),_0x1959fa=this['editor']['editing']['view']['document'],_0x1c0140=new _0x5590a3(_0x1959fa,_0x39906c['map'](_0x5214c7=>this['_getViewObj'](_0x5214c7)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2910fb[_0x2bb4f8]=this['editor']['data']['processor']['toData'](_0x1c0140),this['editor']['data']['processor']['useFillerType']('default');}return _0x2910fb;}async['getRevisionRootsAttributes'](_0x4c903a){await this['loadRevisionData'](_0x4c903a);const _0x54df97={};for(const _0x1372ce in _0x4c903a['diffData'])_0x4c903a['diffData'][_0x1372ce]['attachChange']&&!_0x4c903a['diffData'][_0x1372ce]['attachChange']['isAttached']||(_0x54df97[_0x1372ce]=_0x4c903a['diffData'][_0x1372ce]['attributesAfter']||{});return _0x54df97;}['_removeRevisionMarkers'](_0x2a7ec9){return(_0x2a7ec9=_0x2a7ec9['filter'](_0x2ba974=>!_0x2ba974['name']||'revision-start'!==_0x2ba974['name']&&'revision-end'!==_0x2ba974['name']))['forEach'](_0x21b884=>{'string'!=typeof _0x21b884&&(_0x21b884['children']=this['_removeRevisionMarkers'](_0x21b884['children']),_0x21b884['attributes']=_0x21b884['attributes']['filter'](_0xa3a3d7=>!_0xa3a3d7[0x0]['startsWith']('data-revision-')));}),_0x2a7ec9;}async['compare'](_0x38e410,_0x405c30,_0x4d2330=!0x1){if(!this['isEnabled'])return;const _0x327696=this['diff'],_0x5df1e3=this['repository'],_0x3cd450='string'==typeof _0x38e410?_0x5df1e3['getRevision'](_0x38e410):_0x38e410,_0x5480d6='string'==typeof _0x405c30?_0x5df1e3['getRevision'](_0x405c30):_0x405c30,_0x480f68=_0x3cd450['id'],_0x2ae61d=_0x5480d6?_0x5480d6['id']:null;if(!_0x4d2330&&this['diff']&&this['diff']['newRevisionId']===_0x480f68&&this['diff']['oldRevisionId']===_0x2ae61d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x480f68,_0x2ae61d);const _0x4c06e1=this['_getRevisionsRange'](_0x3cd450,_0x5480d6,!0x0)['map'](_0x4ca205=>this['loadRevisionData'](_0x4ca205));return _0x4c06e1['push'](new Promise(_0x471f6b=>{setTimeout(_0x471f6b,0x14);})),Promise['all'](_0x4c06e1)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3fbbe0=this['_getDiff'](_0x480f68,_0x2ae61d);for(const _0x431a47 of _0x3fbbe0['changes'])this['_changeIdToChange']['set'](_0x431a47['id'],_0x431a47);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x501112=>{for(const _0x56f3aa of this['editor']['model']['document']['getRootNames']())_0x501112['detachRoot'](_0x56f3aa);for(const _0x1e723d of Object['keys'](_0x3fbbe0['model'])){const _0x1aeb09=_0x501112['addRoot'](_0x1e723d);for(const _0x466c13 of Object['keys'](_0x3fbbe0['attributes'][_0x1e723d]))_0x501112['setAttribute'](_0x466c13,_0x3fbbe0['attributes'][_0x1e723d][_0x466c13],_0x1aeb09);_0x501112['insert'](_0x3fbbe0['model'][_0x1e723d],_0x1aeb09,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3fbbe0['changes'])),this['isReady']=!0x0;})['catch'](_0x500ad0=>{console['error'](_0x500ad0),this['_cleanUp'](),_0x327696&&(this['diff']=_0x327696),this['isReady']=!0x0;});}['addRevisionData'](_0x2c5577,_0x451e5b){const _0x29e5ee=this['repository']['createRevision'](_0x2c5577);return _0x29e5ee['on']('_update',(_0x42ca82,_0x5b32d2,_0x377da5)=>_0x451e5b(_0x5b32d2,_0x377da5,_0x29e5ee)),this['repository']['addRevision'](_0x29e5ee),_0x29e5ee;}['loadRevisionData'](_0x2bc2f5){if(!_0x2bc2f5||_0x2bc2f5['diffData'])return Promise['resolve']();{const _0x19c083=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x19c083,'revisionId':_0x2bc2f5['id']})['then'](_0x2bb9de=>{_0x2bc2f5['_update']({'diffData':_0x2bb9de['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x33ad35=>{for(const _0x108ad5 of this['editor']['model']['document']['getRootNames']())_0x33ad35['detachRoot'](_0x108ad5);});}['_sortAndFilterDiffChanges'](_0x14d424){const _0x513ada=[],_0x2fbb55=new Map();for(const _0x45c310 of this['editor']['model']['document']['getRootNames']()){const _0x570611=this['editor']['editing']['view']['getDomRoot'](_0x45c310);if(!_0x570611)continue;const _0x40a6f2=_0x570611['getClientRects']()['item'](0x0);_0x40a6f2&&(_0x513ada['push'](_0x45c310),_0x2fbb55['set'](_0x45c310,_0x40a6f2));}return _0x513ada['sort']((_0x34fe70,_0x2cc895)=>{const _0x10edef=_0x2fbb55['get'](_0x34fe70),_0x337dbd=_0x2fbb55['get'](_0x2cc895);return _0x10edef['y']-_0x337dbd['y']||_0x10edef['x']-_0x337dbd['x'];}),(_0x14d424=_0x14d424['filter'](_0x90e7cf=>_0x513ada['includes'](_0x90e7cf['rootName'])))['sort']((_0x2dadf6,_0x2b4ebb)=>_0x513ada['indexOf'](_0x2dadf6['rootName'])-_0x513ada['indexOf'](_0x2b4ebb['rootName'])),_0x14d424;}['_makeTape'](_0x43d422){const _0x284c94=Array['from'](_0x43d422['markers'])['filter'](([_0x328314,_0x45513f])=>_0x328314['startsWith']('revision:')&&!_0x45513f['isCollapsed']),_0x21edc3=Array['from'](this['editor']['model']['createRangeIn'](_0x43d422)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x284c94['length'])for(const _0x557746 of _0x21edc3){const [_0x51b544,_0x496c78]=_0x284c94[0x0],[,_0x2cf7a6,_0x18b258]=_0x51b544['split'](':');if(_0x496c78['end']['isEqual'](_0x557746['nextPosition'])&&_0x284c94['shift'](),(_0x557746['previousPosition']['isEqual'](_0x496c78['start'])||_0x557746['previousPosition']['isAfter'](_0x496c78['start']))&&('insertion'==_0x2cf7a6?_0x557746['isAdded']={'userId':_0x18b258}:'deletion'==_0x2cf7a6&&(_0x557746['isRemoved']={'userId':_0x18b258})),0x0==_0x284c94['length'])break;}return _0x21edc3;}['_refreshStartEndIndex'](_0x52dbb9){const _0xf0f931=new Map();for(let _0x31641a=0x0;_0x31641a<_0x52dbb9['length'];_0x31641a++)'text'===_0x52dbb9[_0x31641a]['type']?(_0x52dbb9[_0x31641a]['item']['startIndex']=_0x31641a,_0x52dbb9[_0x31641a]['item']['endIndex']=_0x31641a):('elementStart'===_0x52dbb9[_0x31641a]['type']?_0x52dbb9[_0x31641a]['item']['startIndex']=_0x31641a:'elementEnd'===_0x52dbb9[_0x31641a]['type']&&(_0x52dbb9[_0x31641a]['item']['endIndex']=_0x31641a),_0xf0f931['set'](_0x52dbb9[_0x31641a]['id'],_0x31641a));for(const _0x580452 of _0xf0f931['values']())'elementStart'===_0x52dbb9[_0x580452]['type']?_0x52dbb9[_0x580452]['item']['endIndex']=_0xf0f931['get'](_0x52dbb9[_0x580452]['pairId']):'elementEnd'===_0x52dbb9[_0x580452]['type']&&(_0x52dbb9[_0x580452]['item']['startIndex']=_0xf0f931['get'](_0x52dbb9[_0x580452]['pairId']));}['_processTape'](_0x36cce1){for(let _0x2bbbbe=0x0;_0x2bbbbe<_0x36cce1['length'];_0x2bbbbe++){if('elementStart'===_0x36cce1[_0x2bbbbe]['type'])_0x36cce1[_0x2bbbbe]['item']['startIndex']=_0x2bbbbe;else{if('elementEnd'===_0x36cce1[_0x2bbbbe]['type']){_0x36cce1[_0x2bbbbe]['item']['endIndex']=_0x2bbbbe;const _0x1a941c=_0x36cce1[_0x2bbbbe]['item']['startIndex'];_0x36cce1[_0x1a941c]['pairId']=_0x36cce1[_0x2bbbbe]['id'],_0x36cce1[_0x2bbbbe]['pairId']=_0x36cce1[_0x1a941c]['id'];}else _0x36cce1[_0x2bbbbe]['item']['startIndex']=_0x2bbbbe,_0x36cce1[_0x2bbbbe]['item']['endIndex']=_0x2bbbbe,_0x36cce1[_0x2bbbbe]['pairId']=null;}_0x36cce1[_0x2bbbbe]['markersStart']||(_0x36cce1[_0x2bbbbe]['markersStart']=[],_0x36cce1[_0x2bbbbe]['markersEnd']=[]);}}['_markInsertions'](_0x2f49b2,_0x120809){const _0x21a481=_0x2f49b2['filter'](_0x545d94=>!_0x545d94['isAdded']);for(let _0x325322=0x0;_0x325322<_0x120809['length'];_0x325322++)_0x120809[_0x325322]['isAdded']&&(_0x21a481[_0x325322]['isAdded']=_0x120809[_0x325322]['isAdded']);}['_makeModelFromViewString'](_0x39fcf9){const _0x3b69d2=JSON['parse'](_0x39fcf9),_0xbc76c0=this['editor']['editing']['view']['document'],_0x50b9a8=new _0x5590a3(_0xbc76c0,_0x3b69d2['map'](_0x440acb=>this['_getViewObj'](_0x440acb)));return this['editor']['data']['toModel'](_0x50b9a8);}['_getViewObj'](_0x52653b){const _0x4bc8eb=this['editor']['editing']['view']['document'];if('string'==typeof _0x52653b)return new _0x5345d9(_0x4bc8eb,_0x52653b);{const _0x585746=_0x52653b['children']['map'](_0x5b46a4=>this['_getViewObj'](_0x5b46a4));return new(Y[_0x52653b['type']]||_0x18a4ad)(_0x4bc8eb,_0x52653b['name'],_0x52653b['attributes'],_0x585746);}}['_getDiff'](_0x57c577,_0x39dca4=null){const _0x1be2be=this['repository']['getRevision'](_0x57c577),_0xd89dfa=_0x39dca4?this['repository']['getRevision'](_0x39dca4):null,_0x444dbb=this['_getRevisionsRange'](_0x1be2be,_0xd89dfa),_0x24caa4=_0x444dbb[_0x444dbb['length']-0x1],_0xf90a1f=new Map(),_0x4d0516={'model':{},'attributes':{},'changes':[]},_0x306f7b=new Set(),_0x7d70c0=new Map();for(let _0xb41525=_0x444dbb['length']-0x1;_0xb41525>=0x0;_0xb41525--){const _0x5b04d4=_0x444dbb[_0xb41525];for(const _0x17ff30 of Object['keys'](_0x5b04d4['diffData']))if(_0x5b04d4['diffData'][_0x17ff30]['attachChange']){const _0xb9032a=_0x5b04d4['diffData'][_0x17ff30]['attachChange'];_0xb9032a['isAttached']?(_0x306f7b['add'](_0x17ff30),_0x7d70c0['has'](_0x17ff30)&&_0x7d70c0['get'](_0x17ff30)['userId']==_0xb9032a['userId']?_0x7d70c0['delete'](_0x17ff30):_0x7d70c0['set'](_0x17ff30,_0xb9032a)):_0x7d70c0['has'](_0x17ff30)?(_0x306f7b['delete'](_0x17ff30),_0x7d70c0['delete'](_0x17ff30)):(_0x306f7b['add'](_0x17ff30),_0x7d70c0['set'](_0x17ff30,_0xb9032a));}else _0x306f7b['add'](_0x17ff30);}for(const _0x2aa286 of _0x306f7b){const _0x33440e=_0x7d70c0['has'](_0x2aa286)&&!_0x7d70c0['get'](_0x2aa286)['isAttached'];let _0x534a8e=_0x33440e?_0x444dbb['length']-0x1:0x0;const _0x509db3=_0x33440e?-0x1:0x1;for(;_0x444dbb[_0x534a8e];){const _0xb4ed13=_0x444dbb[_0x534a8e];if(_0xb4ed13['diffData'][_0x2aa286]){const _0x4e8dac=_0x33440e?_0xb4ed13['diffData'][_0x2aa286]['attributesBefore']:_0xb4ed13['diffData'][_0x2aa286]['attributesAfter'];_0x4d0516['attributes'][_0x2aa286]=_0x4e8dac?_0x4ec5dc(_0x4e8dac):{};break;}_0x534a8e+=_0x509db3;}}for(const _0x2cb18b of _0x444dbb){_0x2cb18b['model']={};for(const _0x4e42ae of _0x2cb18b['authors'])_0xf90a1f['set'](_0x4e42ae['id'],_0x4e42ae);for(const _0x581eb7 of _0x306f7b){const _0x401916=_0x2cb18b['diffData'][_0x581eb7]?_0x2cb18b['diffData'][_0x581eb7]['insertions']:'[]',_0x91c3cf=_0x2cb18b['diffData'][_0x581eb7]?_0x2cb18b['diffData'][_0x581eb7]['deletions']:'[]';_0x2cb18b['model'][_0x581eb7]={'insertions':this['_makeModelFromViewString'](_0x401916),'deletions':this['_makeModelFromViewString'](_0x91c3cf)};}}for(const _0x54d2a7 of _0x306f7b){let _0x4d7bad=null,_0x1354db=0x0;const _0x292eaf=new Map(Array['from'](_0x1be2be['model'][_0x54d2a7]['insertions']['markers'])['filter'](([_0x2acdfb])=>!_0x2acdfb['startsWith']('revision:')));let _0x94fdf6=0x0;for(const _0xbe872f of _0x444dbb){const _0x493d11=this['_makeTape'](_0xbe872f['model'][_0x54d2a7]['insertions']);_0xbe872f==_0x1be2be?(_0x4d7bad=_0x493d11,_0x1354db=_0x4d7bad['length'],_0x4d7bad['forEach'](_0x49b4f2=>{_0x49b4f2['id']=_0x94fdf6++;}),this['_processTape'](_0x4d7bad)):this['_markInsertions'](_0x4d7bad,_0x493d11);const _0x24b9e9=_0x4d7bad['filter'](_0x4d1559=>!_0x4d1559['isAdded'])['map'](_0x35d03a=>_0x35d03a['id']);let _0x380fa3=0x0;const _0xdec4fd=this['_makeTape'](_0xbe872f['model'][_0x54d2a7]['deletions']);_0xdec4fd['forEach'](_0x3f97e1=>{_0x3f97e1['isRemoved']?_0x3f97e1['id']=_0x1354db++:_0x3f97e1['id']=_0x24b9e9[_0x380fa3++];}),this['_processTape'](_0xdec4fd),this['_setDistance'](_0x4d7bad,'isAdded'),this['_setDistance'](_0xdec4fd,'isRemoved'),_0xbe872f==_0x1be2be&&this['_markMarkers'](_0x4d7bad,_0x292eaf),_0x4d7bad=this['_joinTapes'](_0x4d7bad,_0xdec4fd),this['_refreshStartEndIndex'](_0x4d7bad),this['_setDistance'](_0x4d7bad,'isRemoved');}_0x4d7bad=_0x4d7bad['filter'](_0x590adc=>!(_0x590adc['isAdded']&&_0x590adc['isRemoved']));const _0x2e3d24=new Map(_0x24caa4['model'][_0x54d2a7]['deletions']['markers']),_0x2779fe=new Set(_0x292eaf['keys']());for(const _0x147ed5 of _0x2e3d24['keys']())_0x2779fe['delete'](_0x147ed5);this['_markSuggestions'](_0x4d7bad,_0x2779fe),this['_fixObsoleteTags'](_0x4d7bad),_0x4d7bad=this['_removeMissingPairs'](_0x4d7bad),_0x4d7bad=this['_markMismatchedRemovedTags'](_0x4d7bad),_0x4d7bad=this['_removeUnsupportedChanges'](_0x4d7bad);const {root:_0x3277eb,changes:_0x37a914}=this['_makeModelFromTape'](_0x4d7bad,_0xf90a1f,_0x54d2a7);_0x4d0516['model'][_0x54d2a7]=_0x3277eb;const _0x211b18=_0x7d70c0['get'](_0x54d2a7);if(_0x211b18){const _0x41da54=_0xf90a1f['get'](_0x211b18['userId']),_0x202650=new r({'author':_0x41da54,'type':_0x211b18['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x54d2a7});_0x37a914['unshift'](_0x202650),_0x4d0516['attributes'][_0x54d2a7]['revisionHistoryAttachChange']=_0x202650['id'];}_0x4d0516['changes']=_0x4d0516['changes']['concat'](_0x37a914);}return _0x4d0516;}['_markMarkers'](_0x627032,_0xe7fb7d){for(let _0x1d9875=0x0;_0x1d9875<_0x627032['length'];_0x1d9875++)for(const [_0x18bcb4,_0x4396c3]of _0xe7fb7d)_0x4396c3['start']['isEqual'](_0x627032[_0x1d9875]['previousPosition'])&&_0x627032[_0x1d9875]['markersStart']['push'](_0x18bcb4),_0x4396c3['end']['isEqual'](_0x627032[_0x1d9875]['nextPosition'])&&_0x627032[_0x1d9875]['markersEnd']['push'](_0x18bcb4);}['_joinTapes'](_0x23aad5,_0x185306){let _0x7d9ca8=[],_0x2eb4db=0x0,_0x3eb297=0x0;for(;_0x2eb4db<_0x23aad5['length']||_0x3eb297<_0x185306['length'];){const _0x1c0da6=_0x23aad5[_0x2eb4db]||{},_0x182c63=_0x185306[_0x3eb297]||{};if(_0x1c0da6['id']==_0x182c63['id'])_0x2eb4db++,_0x3eb297++,_0x7d9ca8['push'](_0x1c0da6);else{if(_0x182c63['isRemoved']&&_0x1c0da6['isAdded']){const {commonTape:_0x4463fd,iEnd:_0x566801,jEnd:_0x54bebb}=this['_threeWayMerge'](_0x23aad5,_0x2eb4db,_0x185306,_0x3eb297);_0x7d9ca8=_0x7d9ca8['concat'](_0x4463fd),_0x2eb4db=_0x566801,_0x3eb297=_0x54bebb;}else _0x182c63['isRemoved']?(_0x3eb297++,_0x7d9ca8['push'](_0x182c63)):(_0x2eb4db++,_0x7d9ca8['push'](_0x1c0da6));}}return _0x7d9ca8;}['_markSuggestions'](_0x13180d,_0x1758da){const _0x59f882=[];for(let _0x3c38da=0x0;_0x3c38da<_0x13180d['length'];_0x3c38da++){for(let _0x23d2e7=0x0;_0x23d2e7<_0x13180d[_0x3c38da]['markersStart']['length'];_0x23d2e7++){const _0x38aa52=_0x13180d[_0x3c38da]['markersStart'][_0x23d2e7];if(!_0x1758da['has'](_0x38aa52))continue;const {group:_0x49788d,type:_0xa5d871,authorId:_0x10174e}=_0x54b6a8(_0x38aa52);'revision-suggestion'!=_0x49788d||'insertion'!=_0xa5d871&&'deletion'!=_0xa5d871||(_0x59f882['unshift']({'type':_0xa5d871,'name':_0x38aa52,'userId':_0x10174e}),_0x13180d[_0x3c38da]['markersStart']['splice'](_0x23d2e7,0x1),_0x23d2e7--);}_0x5541d7(_0x13180d[_0x3c38da]);for(let _0x126bb2=0x0;_0x126bb2<_0x13180d[_0x3c38da]['markersEnd']['length'];_0x126bb2++){const _0x143b78=_0x13180d[_0x3c38da]['markersEnd'][_0x126bb2];if(!_0x1758da['has'](_0x143b78))continue;const {group:_0x286e14,type:_0x719eee}=_0x54b6a8(_0x143b78);if('revision-suggestion'!=_0x286e14||'insertion'!=_0x719eee&&'deletion'!=_0x719eee)continue;_0x13180d[_0x3c38da]['markersEnd']['splice'](_0x126bb2,0x1),_0x126bb2--;const _0x27b665=_0x59f882['findIndex'](_0x33ac64=>_0x33ac64['name']==_0x143b78);_0x27b665>-0x1&&_0x59f882['splice'](_0x27b665,0x1);}}function _0x54b6a8(_0x265621){const _0x32a256=_0x265621['split'](':');return{'group':_0x32a256[0x0],'type':_0x32a256[0x1],'subType':_0x32a256['length']>=0x5?_0x32a256[0x2]:null,'id':_0x32a256['length']<0x5?_0x32a256[0x2]:_0x32a256[0x3],'authorId':_0x32a256['length']<0x5?_0x32a256[0x3]:_0x32a256[0x4],'markerCount':0x6==_0x32a256['length']?_0x32a256[0x5]:null};}function _0x5541d7(_0xccc475){for(let _0xdecefc=0x0;_0xdecefc<_0x59f882['length'];_0xdecefc++){if(_0xccc475['isAdded']&&'insertion'==_0x59f882[_0xdecefc]['type'])return _0xccc475['isAddSuggestion']=_0x59f882[_0xdecefc],void delete _0xccc475['isAdded'];if(!_0xccc475['isAdded']&&!_0xccc475['isRemoved']&&'deletion'==_0x59f882[_0xdecefc]['type'])return void(_0xccc475['isRemoveSuggestion']=_0x59f882[_0xdecefc]);}}}['_setDistance'](_0x9dc188,_0x3b0000){let _0x430832=0x0,_0x251aea=!0x1;const _0x332195=new Map();for(const _0xd4289a of _0x9dc188)_0xd4289a[_0x3b0000]?_0x251aea&&(_0x430832++,_0x251aea=!0x1):(_0x430832++,_0x251aea=!0x0),_0x332195['set'](_0xd4289a['id'],_0x430832);for(let _0x5a5c90=0x0;_0x5a5c90<_0x9dc188['length'];_0x5a5c90++){if('isRemoved'==_0x3b0000&&_0x9dc188[_0x5a5c90]['isAdded']||'isAdded'==_0x3b0000&&_0x9dc188[_0x5a5c90]['isRemoved'])continue;if('text'==_0x9dc188[_0x5a5c90]['type']){_0x9dc188[_0x5a5c90]['distance']=0x0;continue;}const _0x19e81e=_0x332195['get'](_0x9dc188[_0x5a5c90]['pairId']),_0x589472=_0x332195['get'](_0x9dc188[_0x5a5c90]['id']);_0x9dc188[_0x5a5c90]['distance']=_0x19e81e-_0x589472;}}['_getRevisionsRange'](_0x1c3178,_0x4ab4bf,_0x5b9614=!0x1){const _0x15582a=[];let _0x5ee211=this['repository']['getIndex'](_0x1c3178),_0x13f69a=this['repository']['getIndex'](_0x4ab4bf);for(-0x1==_0x13f69a&&(_0x13f69a=this['repository']['_revisions']['length'],_0x5b9614=!0x1);_0x5ee211<_0x13f69a;)_0x15582a['push'](this['repository']['getRevision'](_0x5ee211)),_0x5ee211++;return _0x5b9614&&_0x15582a['push'](this['repository']['getRevision'](_0x5ee211)),_0x15582a;}['_threeWayMerge'](_0x6b9801,_0x5c8eb7,_0x52f361,_0x352ae4){const _0x4c9556=this['editor']['model']['schema'];let _0x28aa07=_0x5c8eb7;for(;_0x6b9801[_0x28aa07]&&_0x6b9801[_0x28aa07]['isAdded'];)_0x28aa07++;let _0x536096=_0x352ae4;for(;_0x52f361[_0x536096]&&_0x52f361[_0x536096]['isRemoved'];)_0x536096++;_0x26dc31(_0x6b9801,_0x5c8eb7,_0x28aa07),_0x26dc31(_0x52f361,_0x352ae4,_0x536096);const _0x5f2fb3=_0x52f361['slice'](_0x352ae4,_0x536096)['concat'](_0x6b9801['slice'](_0x5c8eb7,_0x28aa07));return _0x5f2fb3['sort']((_0x346dee,_0x9249e)=>_0x346dee['side']!=_0x9249e['side']?_0x346dee['side']-_0x9249e['side']:_0x346dee['level']!=_0x9249e['level']?_0x346dee['level']-_0x9249e['level']:_0x346dee['distance']!=_0x9249e['distance']?_0x9249e['distance']-_0x346dee['distance']:!!_0x346dee['isAdded']!=!!_0x9249e['isAdded']?-0x1==_0x346dee['side']||0x0==_0x346dee['side']?_0x346dee['isAdded']?-0x1:0x1:_0x346dee['isAdded']?0x1:-0x1:_0x346dee['index']-_0x9249e['index']),{'commonTape':_0x5f2fb3,'iEnd':_0x28aa07,'jEnd':_0x536096};function _0x26dc31(_0x3a716b,_0x3942d1,_0x46e612){let _0xe1aa46=-0x1,_0x823762=Number['POSITIVE_INFINITY'],_0x303a1a=!0x0;for(let _0x259665=_0x3942d1;_0x259665<_0x46e612;_0x259665++)if(_0x4c9556['isInline'](_0x3a716b[_0x259665]['item'])||(_0x303a1a=!0x1),_0x3a716b[_0x259665]['item']['startIndex']<_0x3942d1&&(_0xe1aa46=_0x259665),_0x3a716b[_0x259665]['item']['endIndex']>=_0x46e612){_0x823762=_0x259665;break;}_0x303a1a&&(_0xe1aa46=_0x46e612-0x1);for(let _0x1dc696=_0x3942d1;_0x1dc696<_0x46e612;_0x1dc696++)_0x3a716b[_0x1dc696]['side']=_0x1dc696<=_0xe1aa46?-0x1:_0x1dc696<_0x823762?0x0:0x1,_0x3a716b[_0x1dc696]['index']=_0x1dc696;let _0x2570f1=0x0;for(let _0x5b1829=_0x3942d1;_0x5b1829<=_0xe1aa46;_0x5b1829++)0x0==_0x3a716b[_0x5b1829]['distance']?_0x3a716b[_0x5b1829]['level']=_0x2570f1:(_0x2570f1++,_0x3a716b[_0x5b1829]['level']=_0x2570f1,_0x2570f1++);for(let _0x280853=_0x3942d1;_0x280853<_0x46e612;_0x280853++)0x0==_0x3a716b[_0x280853]['side']&&(_0x3a716b[_0x280853]['level']=_0x2570f1);_0x2570f1=0x0;for(let _0x184010=_0x46e612-0x1;_0x184010>=_0x823762;_0x184010--)0x0==_0x3a716b[_0x184010]['distance']?_0x3a716b[_0x184010]['level']=_0x2570f1:(_0x2570f1--,_0x3a716b[_0x184010]['level']=_0x2570f1,_0x2570f1--);}}['_fixObsoleteTags'](_0x4dfdc2){const _0x5023c3=new Map(),_0x23c8a6=this['editor']['model']['schema'];for(let _0x437f73=0x1;_0x437f73<_0x4dfdc2['length'];_0x437f73++){let _0x5cb8c8,_0x374832,_0x312afd;const _0x45e36b=_0x4dfdc2[_0x437f73],_0x4ee2d2=_0x4dfdc2[_0x437f73-0x1];if('text'==_0x45e36b['type'])continue;if(_0x45e36b['type']!=_0x4ee2d2['type'])continue;if(!_0x23c8a6['isBlock'](_0x4ee2d2['item'])||_0x23c8a6['isLimit'](_0x4ee2d2['item']))continue;if(!_0x23c8a6['isBlock'](_0x45e36b['item'])||_0x23c8a6['isLimit'](_0x45e36b['item']))continue;if((_0x4dfdc2[_0x437f73]['isAdded']||_0x4dfdc2[_0x437f73]['isAddSuggestion'])&&_0x4dfdc2[_0x437f73-0x1]['isRemoved'])_0x5cb8c8=_0x4dfdc2[_0x437f73],_0x374832=_0x4dfdc2[_0x437f73-0x1],_0x312afd=_0x437f73-0x1;else{if(!_0x4dfdc2[_0x437f73]['isRemoved']||!_0x4dfdc2[_0x437f73-0x1]['isAdded']&&!_0x4dfdc2[_0x437f73-0x1]['isAddSuggestion'])continue;_0x5cb8c8=_0x4dfdc2[_0x437f73-0x1],_0x374832=_0x4dfdc2[_0x437f73],_0x312afd=_0x437f73;}const _0x10d3b9=_0x5cb8c8['level']==_0x374832['level'],_0x5bf7dc=Math['abs'](_0x5cb8c8['level'])<Math['abs'](_0x374832['level'])&&0x0==_0x374832['distance'];(_0x10d3b9||_0x5bf7dc)&&(_0x5023c3['set'](_0x374832['id'],_0x5cb8c8['id']),_0x4dfdc2['splice'](_0x312afd,0x1),_0x437f73--,_0x5cb8c8['isAdded']=!0x1);}for(let _0x27ddaf=0x0;_0x27ddaf<_0x4dfdc2['length'];_0x27ddaf++)_0x5023c3['has'](_0x4dfdc2[_0x27ddaf]['pairId'])&&(_0x4dfdc2[_0x27ddaf]['pairId']=_0x5023c3['get'](_0x4dfdc2[_0x27ddaf]['pairId']));}['_removeMissingPairs'](_0x4abe3f){const _0xc89f79=new Set(_0x4abe3f['map'](_0x1de38b=>_0x1de38b['id']));for(let _0x2a0862=0x0;_0x2a0862<_0x4abe3f['length'];_0x2a0862++)_0xc89f79['has'](_0x4abe3f[_0x2a0862]['pairId'])||0x0==_0x4abe3f[_0x2a0862]['distance']||(_0x4abe3f[_0x2a0862]['isIncorrect']=!0x0);return _0x4abe3f['filter'](_0xc33a65=>!_0xc33a65['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2db958){const _0x42e52d=new Set();for(let _0x230248=0x0;_0x230248<_0x2db958['length'];_0x230248++){if(_0x42e52d['has'](_0x2db958[_0x230248]['id'])&&_0x2db958[_0x230248]['isRemoved']&&(_0x2db958[_0x230248]['isIncorrect']=!0x0),_0x2db958[_0x230248]['isIncorrect'])continue;if(0x0==_0x2db958[_0x230248]['distance'])continue;if('elementStart'!=_0x2db958[_0x230248]['type'])continue;if(null==_0x2db958[_0x230248]['pairId'])continue;let _0x5a9e8f=_0x230248+0x1,_0x5f239f=0x0;for(;_0x2db958[_0x5a9e8f]['id']!=_0x2db958[_0x230248]['pairId'];)'elementStart'==_0x2db958[_0x5a9e8f]['type']?_0x5f239f++:'elementEnd'==_0x2db958[_0x5a9e8f]['type']&&_0x5f239f--,_0x5a9e8f++;if(0x0!=_0x5f239f){if(_0x2db958[_0x230248]['isRemoved'])_0x2db958[_0x230248]['isIncorrect']=!0x0;else{for(;_0x5a9e8f!=_0x230248;)_0x2db958[_0x5a9e8f]['isRemoved']&&0x0!=_0x2db958[_0x5a9e8f]['distance']&&(_0x2db958[_0x5a9e8f]['isIncorrect']=!0x0,_0x42e52d['add'](_0x2db958[_0x5a9e8f]['pairId'])),_0x5a9e8f--;}}}return _0x2db958['filter'](_0x5e6237=>!_0x5e6237['isIncorrect']);}['_removeUnsupportedChanges'](_0x2fedd4){const _0x3c6c0a=this['editor']['model']['schema'];for(let _0x255ee5=0x0;_0x255ee5<_0x2fedd4['length'];_0x255ee5++){if(!(_0x2fedd4[_0x255ee5]['isAdded']||_0x2fedd4[_0x255ee5]['isAddSuggestion']||_0x2fedd4[_0x255ee5]['isRemoved']||_0x2fedd4[_0x255ee5]['isRemoveSuggestion']))continue;if(0x0==_0x2fedd4[_0x255ee5]['distance'])continue;const _0x486986=_0x2fedd4[_0x255ee5]['item'];_0x3c6c0a['isBlock'](_0x486986)||_0x3c6c0a['isLimit'](_0x486986)||(_0x2fedd4[_0x255ee5]['isAdded']&&delete _0x2fedd4[_0x255ee5]['isAdded'],_0x2fedd4[_0x255ee5]['isAddSuggestion']&&delete _0x2fedd4[_0x255ee5]['isAddSuggestion'],_0x2fedd4[_0x255ee5]['isRemoveSuggestion']&&delete _0x2fedd4[_0x255ee5]['isRemoveSuggestion'],_0x2fedd4[_0x255ee5]['isRemoved']&&(_0x2fedd4[_0x255ee5]['isIncorrect']=!0x0));}return _0x2fedd4['filter'](_0xab5bac=>!_0xab5bac['isIncorrect']);}['_makeModelFromTape'](_0x247d53,_0x5191ad,_0x512972){const _0x55ef4c=new mt(),_0x2fd0b2=[],_0x1387e2=new Map(),_0x9e102e=this['editor']['model'],_0x3f5802=_0x9e102e['schema'],_0x21b94c=[_0x55ef4c],_0x3f181f={},_0x556458={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x42ec56=null;const _0x3db6f4=[0x0];for(let _0xbbd533=0x0;_0xbbd533<_0x247d53['length'];_0xbbd533++)if('elementStart'===_0x247d53[_0xbbd533]['type']){_0x247d53[_0xbbd533]['previousPosition']=_0x9e102e['createPositionFromPath'](_0x55ef4c,_0x3db6f4);const _0x2482e7=new ft(_0x247d53[_0xbbd533]['item']['name'],_0x247d53[_0xbbd533]['item']['getAttributes']());_0x21b94c[0x0]['_appendChild'](_0x2482e7),_0x3db6f4['push'](0x0),_0x21b94c['unshift'](_0x2482e7),_0x247d53[_0xbbd533]['nextPosition']=_0x9e102e['createPositionFromPath'](_0x55ef4c,_0x3db6f4);}else'elementEnd'===_0x247d53[_0xbbd533]['type']?(_0x21b94c['shift'](),_0x247d53[_0xbbd533]['previousPosition']=_0x9e102e['createPositionFromPath'](_0x55ef4c,_0x3db6f4),_0x3db6f4['pop'](),_0x3db6f4[_0x3db6f4['length']-0x1]++,_0x247d53[_0xbbd533]['nextPosition']=_0x9e102e['createPositionFromPath'](_0x55ef4c,_0x3db6f4)):(_0x247d53[_0xbbd533]['previousPosition']=_0x9e102e['createPositionFromPath'](_0x55ef4c,_0x3db6f4),_0x42ec56?_0x42ec56['_data']+=_0x247d53[_0xbbd533]['item']['data']:_0x42ec56=new wt(_0x247d53[_0xbbd533]['item']['data'],_0x247d53[_0xbbd533]['item']['getAttributes']()),_0x247d53[_0xbbd533+0x1]&&'text'===_0x247d53[_0xbbd533+0x1]['type']&&_0x5210ec(_0x42ec56,_0x247d53[_0xbbd533+0x1]['item'])||(_0x21b94c[0x0]['_appendChild'](_0x42ec56),_0x42ec56=null),_0x3db6f4[_0x3db6f4['length']-0x1]+=_0x247d53[_0xbbd533]['item']['offsetSize'],_0x247d53[_0xbbd533]['nextPosition']=_0x9e102e['createPositionFromPath'](_0x55ef4c,_0x3db6f4));for(let _0xc3302c=0x0;_0xc3302c<_0x247d53['length'];_0xc3302c++){const _0x43f00d=_0x247d53[_0xc3302c]['previousPosition'],_0x3d6cc9=_0x247d53[_0xc3302c]['nextPosition'];for(const _0x81c410 of _0x247d53[_0xc3302c]['markersStart'])_0x1387e2['set'](_0x81c410,{'start':_0x43f00d,'end':null});_0x1e5586('isRemoveSuggestion',_0xc3302c,_0x43f00d,_0x3d6cc9),_0x1e5586('isAddSuggestion',_0xc3302c,_0x43f00d,_0x3d6cc9),_0x1e5586('isRemoved',_0xc3302c,_0x43f00d,_0x3d6cc9),_0x1e5586('isAdded',_0xc3302c,_0x43f00d,_0x3d6cc9);for(const _0xb93445 of _0x247d53[_0xc3302c]['markersEnd']){_0x1387e2['get'](_0xb93445)['end']=_0x3d6cc9;}}for(const [_0xd647a8,_0x3d69a1]of _0x1387e2){const _0x2d3717=this['editor']['model']['createRange'](_0x3d69a1['start'],_0x3d69a1['end']);_0x55ef4c['markers']['set'](_0xd647a8,_0x2d3717);}return _0x2fd0b2['sort']((_0x507476,_0x31d46d)=>{const _0x3fa7=_0x55ef4c['markers']['get']('revision:'+_0x507476['id']),_0x59dfbf=_0x55ef4c['markers']['get']('revision:'+_0x31d46d['id']);return _0x3fa7['start']['isBefore'](_0x59dfbf['start'])?-0x1:_0x3fa7['start']['isAfter'](_0x59dfbf['start'])?0x1:_0x3fa7['end']['isBefore'](_0x59dfbf['end'])?-0x1:_0x3fa7['end']['isAfter'](_0x59dfbf['end'])?0x1:'add'===_0x507476['type']?-0x1:0x1;}),{'root':_0x55ef4c,'changes':_0x2fd0b2};function _0x1e5586(_0x48c1d5,_0x55c145,_0x2fdbe2,_0x2f8571){const _0x5caa42=!!_0x247d53[_0x55c145][_0x48c1d5],_0x7914b9=_0x5caa42?_0x247d53[_0x55c145][_0x48c1d5]['userId']:null,_0x434999=_0x55c145===_0x247d53['length']-0x1,_0x365042=_0x556458[_0x48c1d5][0x0],_0x29ff6a=_0x3f5802['isObject'](_0x247d53[_0x55c145]['item']);!_0x3f181f[_0x48c1d5]&&_0x5caa42?_0x3f181f[_0x48c1d5]={'start':_0x2fdbe2,'tapeItem':_0x247d53[_0x55c145],'userId':_0x7914b9,'type':_0x48c1d5}:_0x3f181f[_0x48c1d5]&&!_0x5caa42?(_0x3f181f[_0x48c1d5]['end']=_0x2fdbe2,_0x5e58c6(_0x3f181f[_0x48c1d5]),_0x3f181f[_0x48c1d5]=null):_0x3f181f[_0x48c1d5]&&_0x5caa42&&_0x3f181f[_0x48c1d5]['userId']!==_0x7914b9&&(_0x3f181f[_0x48c1d5]['end']=_0x2fdbe2,_0x365042&&_0x365042['userId']===_0x3f181f[_0x48c1d5]['userId']||_0x5e58c6(_0x3f181f[_0x48c1d5]),_0x3f181f[_0x48c1d5]={'start':_0x2fdbe2,'tapeItem':_0x247d53[_0x55c145],'userId':_0x7914b9,'type':_0x48c1d5}),_0x3f181f[_0x48c1d5]&&_0x29ff6a&&('elementStart'!==_0x247d53[_0x55c145]['type']||_0x365042&&_0x365042['userId']===_0x7914b9||_0x556458[_0x48c1d5]['unshift']({'userId':_0x7914b9,'object':_0x247d53[_0x55c145]['item'],'change':_0x3f181f[_0x48c1d5]}),'elementEnd'===_0x247d53[_0x55c145]['type']&&_0x365042&&_0x365042['object']===_0x247d53[_0x55c145]['item']&&(_0x556458[_0x48c1d5]['shift'](),_0x3f181f[_0x48c1d5]=_0x365042['change'])),_0x3f181f[_0x48c1d5]&&_0x434999&&(_0x3f181f[_0x48c1d5]['end']=_0x2f8571,_0x5e58c6(_0x3f181f[_0x48c1d5]),_0x3f181f[_0x48c1d5]=null);}function _0x5e58c6({start:_0x536a3f,end:_0x154fb6,tapeItem:_0x5443c9,userId:_0x37657d,type:_0x2cb5b2}){const _0x31b9c8=_0x5443c9['item'],_0x231a27=_0x9e102e['schema']['isBlock'](_0x31b9c8)&&!_0x9e102e['schema']['isLimit'](_0x31b9c8),_0x533709=_0x536a3f['nodeAfter']==_0x154fb6['parent']&&_0x154fb6['isAtStart'];if(_0x231a27&&_0x533709)return;const _0x33c74d=_0x9e102e['createRange'](_0x536a3f,_0x154fb6),_0x3d7b8f=_0x5191ad['get'](_0x37657d),_0x3ea01c=new r({'author':_0x3d7b8f,'type':'isAdded'==_0x2cb5b2||'isAddSuggestion'==_0x2cb5b2?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2cb5b2||'isRemoveSuggestion'==_0x2cb5b2},'createdAt':new Date(),'rootName':_0x512972});_0x2fd0b2['push'](_0x3ea01c),_0x55ef4c['markers']['set']('revision:'+_0x3ea01c['id'],_0x33c74d);}function _0x5210ec(_0x51e202,_0x3c8be3){const _0x4ba2e4=_0x51e202['getAttributes'](),_0x5855ec=_0x3c8be3['getAttributes']();for(const _0x12881c of _0x4ba2e4){if(_0x12881c[0x1]!==_0x3c8be3['getAttribute'](_0x12881c[0x0]))return!0x1;_0x5855ec['next']();}return _0x5855ec['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1cd1d1=>{const _0x42690e=_0x1cd1d1['markerName']['split'](':')[0x1],_0xab75ad=this['_getChangeFromId'](_0x42690e);if(!_0xab75ad)return null;const _0x55f2a3='add'==_0xab75ad['type']?'insertion':'deletion',_0x268b8c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x55f2a3];return _0xab75ad['data']['isSuggestion']&&_0x268b8c['push']('ck-suggestion-marker-'+_0x55f2a3+'-new'),this['activeChange']==_0xab75ad&&_0x268b8c['push']('ck-suggestion-marker--active'),{'classes':_0x268b8c,'attributes':{'data-change-id':_0x42690e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3343b8=>{_0x3343b8['on']('element:pre',(_0x5c43f3,_0xdd1476,_0x3abbc5)=>{const _0x4b2fd5=_0xdd1476['viewItem']['getChild'](0x0);if(!_0x4b2fd5||!_0x4b2fd5['is']('element','code'))return;if(!_0x3abbc5['consumable']['consume'](_0x4b2fd5,{'attributes':['vid_start','vid_end']}))return;const _0x5db34c=_0xdd1476['modelRange']['start']['nodeAfter'];_0x3abbc5['writer']['setAttribute']('vid_start',_0x4b2fd5['getAttribute']('vid_start'),_0x5db34c),_0x3abbc5['writer']['setAttribute']('vid_end',_0x4b2fd5['getAttribute']('vid_end'),_0x5db34c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1aa1e6=>{_0x1aa1e6['on']('element',(_0x2cd30e,_0x2eb7c7,_0x25cae2)=>{if(!_0x25cae2['consumable']['consume'](_0x2eb7c7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2eb7c7['modelRange']['isCollapsed'])return;const _0x370d56=_0x2eb7c7['modelRange']['start']['nodeAfter'];_0x370d56['hasAttribute']('vid_start')||_0x370d56['hasAttribute']('vid')||(_0x25cae2['writer']['setAttribute']('vid_start',_0x2eb7c7['viewItem']['getAttribute']('vid_start'),_0x370d56),_0x25cae2['writer']['setAttribute']('vid_end',_0x2eb7c7['viewItem']['getAttribute']('vid_end'),_0x370d56));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1b9cff=>_0x1b9cff['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x42c3fe,[,_0x56b73e])=>{['vid_start','vid_end','vid']['includes'](_0x56b73e)&&(_0x42c3fe['return']=!0x0,_0x42c3fe['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x21a4c0=>{_0x21a4c0['on']('attribute:vid',(_0x444d1f,_0x5c6830,_0x36f7c1)=>{if('\x20'!=_0x5c6830['item']['data']||_0x5c6830['item']['parent']['maxOffset']>0x1)return;if(!_0x36f7c1['consumable']['consume'](_0x5c6830['item'],_0x444d1f['name']))return;const _0x363591=_0x36f7c1['writer'],_0x9f0c1f=_0x36f7c1['mapper']['toViewRange'](_0x5c6830['range']);_0x363591['wrap'](_0x9f0c1f,_0x363591['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x311ee3){const _0x7d481d=_0x311ee3['plugins']['get']('RevisionViewer');return(_0x2629c9,_0x135c1c,_0x541bd1)=>{const _0x4367a2=_0x135c1c['markerName']['split'](':')[0x1],_0x16f957=_0x7d481d['_getChangeFromId'](_0x4367a2);if(!_0x16f957)return null;const _0x22a7fc='add'==_0x16f957['type']?'split':'merge';if(!_0x541bd1['consumable']['test'](_0x135c1c['markerRange'],_0x2629c9['name']))return;const _0x47681b=_0x135c1c['markerRange']['getWalker'](),_0x9140e1=_0x135c1c['markerRange']['start'],_0x132cd5=_0x311ee3['model']['schema'];let _0x125123=null,_0xb6f413=null,_0x5977c3=!0x1,_0x2f5095=!0x1;for(const _0xd5885 of _0x47681b){const _0x26dd53=_0xd5885['item'];_0x5977c3=_0x5977c3||_0x132cd5['isContent'](_0x26dd53);const _0x18abd2=_0x541bd1['mapper']['toViewElement'](_0x26dd53);if(_0x18abd2&&_0x18abd2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xd5885['type']&&(_0x132cd5['isBlock'](_0x26dd53)&&!_0x132cd5['isLimit'](_0x26dd53)&&(_0x26dd53['nextSibling']||_0x9140e1['isAtEnd']?_0x125123&&_0x125123['parent']==_0x26dd53||(_0x125123=_0x26dd53,_0x3ec044(_0xd5885['previousPosition']),_0x2f5095=!0x0):_0xb6f413=_0xb6f413||_0xd5885['previousPosition']));}function _0x3ec044(_0xf62725){const _0x172755=_0x541bd1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x22a7fc}),_0x300ecd=_0x541bd1['mapper']['toViewPosition'](_0xf62725);_0x16f957['data']['isSuggestion']&&_0x541bd1['writer']['addClass']('ck-suggestion-marker-'+_0x22a7fc+'-new',_0x172755),_0x7d481d['activeChange']==_0x16f957&&_0x541bd1['writer']['addClass']('ck-suggestion-marker--active',_0x172755),_0x541bd1['writer']['insert'](_0x300ecd,_0x172755),_0x541bd1['mapper']['bindElementToMarker'](_0x172755,_0x135c1c['markerName']);}_0x5977c3||_0x2f5095||!_0xb6f413||_0x3ec044(_0xb6f413);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2e2c7b,_0x2fd302,_0xfd2497)=>{const _0x3018ce=_0xfd2497['mapper']['markerNameToElements'](_0x2fd302['markerName']);if(_0x3018ce){for(const _0x491bb5 of _0x3018ce)(_0x491bb5['hasClass']('ck-suggestion-marker-split')||_0x491bb5['hasClass']('ck-suggestion-marker-merge'))&&(_0xfd2497['mapper']['unbindElementFromMarkerName'](_0x491bb5,_0x2fd302['markerName']),_0xfd2497['writer']['remove'](_0x491bb5));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1b5d31,_0x202859,_0x32d18a)=>{const _0x19cfa6=_0x202859['markerName']['split'](':')[0x1],_0x6cfbb0=this['_getChangeFromId'](_0x19cfa6);if(!_0x6cfbb0)return null;const _0x20d6fa='add'==_0x6cfbb0['type']?'split':'merge';if(_0x32d18a['consumable']['test'](_0x202859['markerRange'],_0x1b5d31['name']))for(const _0x321c31 of _0x202859['markerRange']['getItems']()){if(!_0x321c31['is']('element','softBreak'))continue;const _0x427131=_0x32d18a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x20d6fa}),_0x3976b1=_0x32d18a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x321c31));_0x6cfbb0['data']['isSuggestion']&&_0x32d18a['writer']['addClass']('ck-suggestion-marker-'+_0x20d6fa+'-new',_0x427131),this['activeChange']==_0x6cfbb0&&_0x32d18a['writer']['addClass']('ck-suggestion-marker--active',_0x427131),_0x32d18a['writer']['insert'](_0x3976b1,_0x427131),_0x32d18a['mapper']['bindElementToMarker'](_0x427131,_0x202859['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4ce62a=>{for(const _0x194df9 of this['editor']['model']['document']['getRootNames']()){const _0x8f51f9=this['editor']['model']['document']['getRoot'](_0x194df9),_0x3dce29=this['editor']['editing']['view']['document']['getRoot'](_0x194df9);if(_0x3dce29){const _0x438937=_0x8f51f9['getAttribute']('revisionHistoryAttachChange');if(_0x4ce62a['removeAttribute']('data-change-id',_0x3dce29),_0x4ce62a['removeClass']('ck-revision-history-root-add',_0x3dce29),_0x4ce62a['removeClass']('ck-revision-history-root-remove',_0x3dce29),_0x4ce62a['removeClass']('ck-revision-history-root--active',_0x3dce29),_0x438937){const _0x36ad0d=this['_getChangeFromId'](_0x438937);if(!_0x36ad0d)return null;_0x4ce62a['setAttribute']('data-change-id',_0x438937,_0x3dce29),_0x4ce62a['addClass']('ck-revision-history-root-'+_0x36ad0d['type'],_0x3dce29),this['activeChange']==_0x36ad0d&&_0x4ce62a['addClass']('ck-revision-history-root--active',_0x3dce29);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4c9bf1=>'revision-comment:'+_0x4c9bf1,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x476f37=>'revision-suggestion:'+_0x476f37,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1cf494=>({'name':'suggestion:'+_0x1cf494,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3834ad=>{const _0x3c99c2=_0x3834ad['markerName']['split'](':')[0x1];return'insertion'!=_0x3c99c2&&'deletion'!=_0x3c99c2?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3c99c2]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x21da62,_0x1ab4df,_0x469b2f)=>{const _0x31fac1=_0x469b2f['mapper']['markerNameToElements'](_0x1ab4df['markerName']);if(_0x31fac1){for(const _0x3ac8a2 of _0x31fac1)_0x3ac8a2['is']('uiElement')&&(_0x469b2f['mapper']['unbindElementFromMarkerName'](_0x3ac8a2,_0x1ab4df['markerName']),_0x469b2f['writer']['remove'](_0x3ac8a2));}},{'priority':'high'});}['_getChangeFromId'](_0xbe8666){return this['_changeIdToChange']['get'](_0xbe8666);}['_getViewForChange'](_0x68ffca){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x68ffca),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x466a7e,_0x42c40d,_0xa5d3cb,_0x348a73)=>{_0x348a73&&this['_balloon']['remove'](_0x348a73),_0xa5d3cb&&(this['_balloon']['add']({'view':_0xa5d3cb,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x556b78=this['editor']['editing'],_0x593100=this['_getChangeFromId'](_0xa5d3cb['changeId']);let _0x5b934d;if(_0x593100['data']['isOnRoot']){const _0x31d4fc=_0x556b78['view']['getDomRoot'](_0x593100['rootName']);_0x5b934d=Array['from'](_0x31d4fc['getClientRects']());}else{const _0x393ab3=this['editor']['model']['markers']['get']('revision:'+_0xa5d3cb['changeId']);_0x5b934d=Array['from'](_0x556b78['mapper']['markerNameToElements'](_0x393ab3['name']))['map'](_0x279419=>_0x556b78['view']['domConverter']['mapViewToDom'](_0x279419))['map'](_0x42ba27=>Array['from'](_0x42ba27['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5b934d[0x0];return _0x5b934d['find'](_0x256d06=>_0x256d06['top']-0x3<=this['_activeViewTarget']['y']&&_0x256d06['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x256d06['left']-0x3<=this['_activeViewTarget']['x']&&_0x256d06['right']+0x3>=this['_activeViewTarget']['x'])||_0x5b934d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5e748e,_0x56b168,_0x11bb65,_0x376a49)=>{this['activeView']=_0x11bb65?this['_getViewForChange'](_0x11bb65):null,this['editor']['model']['change'](()=>{const _0x241492=this['editor']['editing'];_0x376a49&&(_0x376a49['data']['isOnRoot']?_0x241492['view']['change'](_0x5eba34=>{_0x5eba34['removeClass']('ck-revision-history-root--active',_0x241492['view']['document']['getRoot'](_0x376a49['rootName']));}):_0x241492['reconvertMarker']('revision:'+_0x376a49['id'])),_0x11bb65&&(_0x11bb65['data']['isOnRoot']?_0x241492['view']['change'](_0x5f258a=>{_0x5f258a['addClass']('ck-revision-history-root--active',_0x241492['view']['document']['getRoot'](_0x11bb65['rootName']));}):_0x241492['reconvertMarker']('revision:'+_0x11bb65['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1b3756,_0x393fce)=>{if(this['activeChange'])return;const _0x455c65=this['_findChangeIdFromDomTarget'](_0x393fce['target']),_0x2fdad6=this['_changeIdToChange']['get'](_0x455c65);_0x2fdad6?(this['_activeViewTarget']={'x':_0x393fce['domEvent']['x'],'y':_0x393fce['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2fdad6)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x234515,_0x1c817)=>{const _0xde6082=this['_findChangeIdFromDomTarget'](_0x1c817['target']),_0x20c515=this['_changeIdToChange']['get'](_0xde6082);_0x20c515?(this['_activeViewTarget']={'x':_0x1c817['domEvent']['x'],'y':_0x1c817['domEvent']['y']},_0x20c515===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x20c515):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x401a92){do{const _0x36a8e9=_0x401a92['getAttribute']('data-change-id');if(_0x36a8e9)return _0x36a8e9;_0x401a92=_0x401a92['parent'];}while(_0x401a92);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4dd80c=>{for(const _0x39484f of this['editor']['model']['markers'])_0x4dd80c['removeMarker'](_0x39484f);});}}function Z(_0x39a205,_0x4fbccb){return(_0x2ba5af,_0x47d273,_0x141fe3)=>{if(!_0x141fe3['consumable']['test'](_0x47d273['markerRange'],_0x2ba5af['name']))return;const _0x3ed0d5=_0x47d273['markerRange']['getWalker'](),_0x35da5f=_0x47d273['markerRange']['start'],_0x2b9994=_0x39a205['model']['schema'];let _0x5c8848=null,_0x192d3d=null,_0x1f11f2=!0x1,_0x2af10b=!0x1;for(const _0x370946 of _0x3ed0d5){const _0x4657ff=_0x370946['item'];_0x1f11f2=_0x1f11f2||_0x2b9994['isContent'](_0x4657ff);const _0x55e8f0=_0x141fe3['mapper']['toViewElement'](_0x4657ff);if(_0x55e8f0&&_0x55e8f0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x370946['type']&&(_0x2b9994['isBlock'](_0x4657ff)&&!_0x2b9994['isLimit'](_0x4657ff)&&(_0x4657ff['nextSibling']||_0x35da5f['isAtEnd']?_0x5c8848&&_0x5c8848['parent']==_0x4657ff||(_0x5c8848=_0x4657ff,_0x5b3cb3(_0x370946['previousPosition']),_0x2af10b=!0x0):_0x192d3d=_0x192d3d||_0x370946['previousPosition']));}function _0x5b3cb3(_0x33f6e7){const _0xdeb6a8=_0x141fe3['mapper']['toViewPosition'](_0x33f6e7),_0x2945ac=_0x141fe3['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4fbccb});_0x141fe3['writer']['insert'](_0xdeb6a8,_0x2945ac),_0x141fe3['mapper']['bindElementToMarker'](_0x2945ac,_0x47d273['markerName']);}_0x1f11f2||_0x2af10b||!_0x192d3d||_0x5b3cb3(_0x192d3d);};}class pt extends _0x3f578c{constructor(_0x3bbf23){super(_0x3bbf23);const _0x25c1a0=_0x3bbf23['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x25c1a0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x25c1a0,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x22758c=this['editor'],_0x3a1b78=_0x22758c['plugins']['get'](d),_0x4a1cc2=_0x3a1b78['isReady']?_0x3a1b78['diff']['newRevisionId']:null;_0x22758c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4a1cc2);}['refresh'](){const {isReady:_0xf0d682,isEnabled:_0x56af36,repository:_0x214a55,diff:_0x5b1f65}=this['editor']['plugins']['get'](d),_0x8d31e0=_0x5b1f65&&_0x214a55['getLaterVisibleRevision'](_0x5b1f65['newRevisionId']);this['isEnabled']=_0xf0d682&&_0x56af36&&Boolean(_0x8d31e0);}}class _t extends _0x3f578c{['_step'];constructor(_0x188514,{direction:_0x44eac1}){super(_0x188514);const _0x1dc8bf=_0x188514['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x44eac1?0x1:-0x1,this['listenTo'](_0x1dc8bf,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1dc8bf,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1dc8bf,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x7d0366=this['editor'],_0x765e99=_0x7d0366['plugins']['get'](d),{isNavigationMode:_0x2d0efd,currentChangeNumber:_0x1feb19}=_0x765e99;let _0x72b5ac;if(_0x765e99['activeChange']=_0x2d0efd?_0x765e99['diff']['changes']['get'](_0x1feb19+this['_step']):_0x765e99['diff']['changes']['first'],_0x765e99['activeChange']['data']['isOnRoot'])_0x72b5ac=_0x7d0366['editing']['view']['getDomRoot'](_0x765e99['activeChange']['rootName']);else{const _0x553718=_0x7d0366['model']['markers']['get']('revision:'+_0x765e99['activeChange']['id']);_0x72b5ac=_0x3ceecb(_0x7d0366['editing'],_0x553718);}_0x5331f4({'target':_0x72b5ac,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3b408d,currentChangeNumber:_0x137c12,numberOfChanges:_0x5c129b,isReady:_0x2ade01,isEnabled:_0x54cd9a}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x54cd9a&&_0x2ade01&&_0x5c129b)&&(!_0x3b408d||(0x1===this['_step']?_0x137c12<_0x5c129b-0x1:_0x137c12>0x0));}}class li extends ts{constructor(_0x206c53){super(_0x206c53);const _0xf22b8b=this['bindTemplate'],_0x32ae8c=new te(_0x206c53),_0xe99d2d=new te(_0x206c53);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',(_0x54dfe6,_0x5e8dea)=>_0x54dfe6&&_0x5e8dea>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x19a75f,_0x15e6c2,_0x5c961b,_0x3024c9)=>{if(!_0x19a75f)return m(_0x206c53,'Loading...');if(!_0x5c961b)return m(_0x206c53,'No\x20changes');const _0x164084=m(_0x206c53,'NUMBER_OF_CHANGES',_0x5c961b);return _0x3024c9?m(_0x206c53,'X_OF_Y_CHANGES',[_0x15e6c2+0x1,_0x5c961b]):_0x164084;}),_0x32ae8c['set']({'label':m(_0x206c53,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0xe99d2d['set']({'label':m(_0x206c53,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x32ae8c['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xe99d2d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x32ae8c['on']('execute',()=>this['fire']('execute','backward')),_0xe99d2d['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',_0xf22b8b['if']('_isStatusLabelVisible','ck-hidden',_0x1ffc55=>!_0x1ffc55)]},'children':[{'text':_0xf22b8b['to']('isNavigationMode',_0x13d736=>_0x13d736?m(_0x206c53,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x206c53,'Total')+':\x20')}]},{'text':_0xf22b8b['to']('_statusText')}]},new _0x30f72a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x32ae8c,_0xe99d2d]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x2f1869{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xfe8b7d=this['editor']['editing']['view'];_0xfe8b7d['change'](_0x2de345=>{for(const _0x534438 of _0xfe8b7d['document']['roots'])_0x2de345['addClass'](le,_0x534438);});}['hide'](){const _0x39193f=this['editor']['editing']['view'];_0x39193f['change'](_0x1d5b2d=>{for(const _0x333cbe of _0x39193f['document']['roots'])_0x1d5b2d['removeClass'](le,_0x333cbe);});}}class g extends _0x2f1869{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x5ec3ce=this['editor'],_0x243097=_0x5ec3ce['plugins']['get'](d),_0x40a783=_0x5ec3ce['plugins']['get'](ge);_0x5ec3ce['ui']['componentFactory']['add']('exitToEditing',_0x1a0ed5=>{const _0x4c36e9=new te(_0x1a0ed5);return _0x4c36e9['set']({'label':m(_0x1a0ed5,'Back\x20to\x20editing'),'icon':_0x3a9cd7['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4c36e9,'execute',()=>{_0x5ec3ce['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4c36e9;}),_0x5ec3ce['ui']['componentFactory']['add']('restoreRevision',_0x37e810=>{const _0x529b85=new te(_0x37e810);return _0x529b85['set']({'label':m(_0x37e810,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x529b85['bind']('isEnabled')['to'](_0x5ec3ce['commands']['get']('restoreRevision')),this['listenTo'](_0x529b85,'execute',()=>_0x5ec3ce['execute']('restoreRevision')),_0x529b85;}),_0x5ec3ce['ui']['componentFactory']['add']('changesNavigation',_0x4e4ad6=>{const _0x4680a0=new li(_0x4e4ad6),_0x2d1afa=_0x5ec3ce['commands']['get']('showPreviousChange'),_0x9ea8ff=_0x5ec3ce['commands']['get']('showNextChange');return _0x4680a0['bind']('isBackwardNavigationEnabled')['to'](_0x2d1afa,'isEnabled'),_0x4680a0['bind']('isForwardNavigationEnabled')['to'](_0x9ea8ff,'isEnabled'),_0x4680a0['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x243097),this['listenTo'](_0x4680a0,'execute',(_0x5b07db,_0x5654a3)=>{_0x5ec3ce['execute']('forward'===_0x5654a3?'showNextChange':'showPreviousChange');}),_0x4680a0;}),_0x40a783['show'](),_0x243097['on']('change:isReady',(_0x17971e,_0x95e972,_0x1f8417)=>{_0x1f8417?_0x40a783['hide']():_0x40a783['show']();});}}class at extends _0x11a26b{['_resizeObserver']=null;constructor(_0x1f1963,_0x25165a){super(_0x1f1963,_0x25165a);const _0x539aa3=this['bindTemplate'];this['set']({'label':m(_0x1f1963,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x1f1963,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x539aa3['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4e934d=this['fieldView']['element'];this['_tooltipString']=_0x4e934d['scrollWidth']>_0x4e934d['clientWidth']&&_0x4e934d['value']||'';}}class ri extends ts{constructor(_0x4d72e6,_0x43442c,_0x29d90d){super(_0x4d72e6);const _0x413ff3=new _0x1c23db();_0x413ff3['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x553630=['ck','ck-revision-history-sidebar__revision-author'];_0x29d90d&&_0x553630['push']('ck-revision-history-sidebar__revision-author_creator');const _0x29bcde=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4d72e6,_0x29d90d?'Revision\x20creator':'Revision\x20author')},'children':[_0x413ff3,_0x43442c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x553630},'children':_0x29bcde});}}function oi(_0x5210a1,_0xfaaca2){const _0x2c39a7=_0x5210a1['bindTemplate'],_0x2318f0=_0x5210a1['locale'],_0x5c796c=_0x408128(_0x2318f0);_0x5c796c['panelPosition']='sw';const _0x3cf0f4=function(_0x2c4c50,_0x27b369){const _0x43bf14=function(_0x369a4b,_0x12dc4a){const _0x40b371=_0x369a4b['locale'],_0x161c24={'Compare\x20against\x20selected':m(_0x40b371,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x40b371,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x40b371,'Restore\x20this\x20revision')};return _0x12dc4a['map'](_0x5a2cbf=>{const _0x46a328=_0x161c24[_0x5a2cbf['name']];return _0x46a328&&_0x46a328!==_0x5a2cbf['name']&&(_0x5a2cbf['name']=_0x46a328),_0x5a2cbf;});}(_0x2c4c50,_0x27b369),_0x53b966=new _0x283072();for(const _0x1b45ef of _0x43bf14){const _0x35dae1={'type':'button','model':new _0x54db50({'label':_0x1b45ef['name'],'class':_0x1b45ef['class'],'withText':!0x0,'role':'menuitem','_action':_0x1b45ef['action']})};_0x35dae1['model']['bind']('isEnabled')['to'](_0x2c4c50,'isActionsDropdownOpen',_0x3c0772=>'function'!=typeof _0x1b45ef['isEnabled']||(!_0x3c0772||_0x1b45ef['isEnabled'](_0x2c4c50))),_0x53b966['add'](_0x35dae1);}return _0x53b966;}(_0x5210a1,_0xfaaca2);return _0x5210a1['bind']('isActionsDropdownOpen')['to'](_0x5c796c,'isOpen'),_0x5c796c['buttonView']['set']({'label':m(_0x2318f0,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3a9cd7['threeVerticalDots']}),_0x5c796c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2c39a7['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2c39a7['to'](_0x5dc73e=>_0x5dc73e['stopPropagation']())}}),_0x5c796c['on']('execute',_0x3e5b5e=>{_0x5210a1['isReady']&&'function'==typeof _0x3e5b5e['source']['_action']&&_0x3e5b5e['source']['_action'](_0x5210a1);}),to(_0x5c796c,_0x3cf0f4,{'role':'menu'}),_0x5c796c['listenTo'](_0x5210a1,'change:isActionsDropdownOpen',(_0x4dfdc3,_0x491212,_0x87bb75)=>{if(_0x87bb75)for(const _0x286af3 of _0x5c796c['listView']['items']){const _0x2f9a7a=_0x286af3['children']['first'],_0x3d57a1=_0xfaaca2['find'](_0x442243=>_0x442243['action']===_0x2f9a7a['_action'])['isVisible'];_0x286af3['isVisible']=void 0x0===_0x3d57a1||_0x3d57a1(_0x5210a1);}}),_0x5c796c;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x54bf85,uid as _0x16b583,Collection as _0x4f201e,logWarning as _0x21988e,FocusTracker as _0x17acf7,KeystrokeHandler as _0x18933e,scrollViewportToShowTarget as _0x3fe1e4,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x4ea387}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2ce503,set as _0x422d75,unset as _0x33005b,isEqual as _0x4a3260}from'es-toolkit/compat';import{Plugin as _0x5842cf,PendingActions as _0x5f24e2,Command as _0x5b5bd8,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x541130,getMarkerDomElement as _0x437ff3,ConfirmMixin as _0x2f840e,sanitizeEditorConfig as _0x5a0792}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x5706e6,Element as ut,Range as ft,ViewUIElement as _0x53c8a2,ViewRawElement as _0x4788b1,ViewEmptyElement as _0x5c769b,ViewAttributeElement as _0x4fd1c3,ViewContainerElement as _0x5bdcfb,Position as vt,ViewText as _0x5da6d8,ViewElement as _0x4ef47b,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x582502,IconChevronUp as _0x599e2d,IconChevronDown as _0x1252dd,IconUndo as _0x516331,IconUser as _0x325b2e,IconThreeVerticalDots as _0xf07bba}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x26db05,injectCssTransitionDisabler as ts,submitHandler as _0x2b4ea3,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x37a4b1,ListView as _0x4ea422,ListItemView as te,ButtonView as _0x3471d7,MenuBarMenuView as _0x5a78ec,MenuBarMenuListView as _0x2d08e1,MenuBarMenuListItemView as _0x190d73,MenuBarMenuListItemButtonView as _0x2470d3,ContextualBalloon as _0x561ee1,ToolbarSeparatorView as _0x189078,IconView as _0x1d07ef,addListToDropdown as _0x454c84,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x28f262}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x54bf85(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2fe931){super(),this['id']=_0x2fe931['id']||_0x16b583(),this['creator']=_0x2fe931['creator']||null,this['authors']=_0x2fe931['authors']||[],this['diffData']=_0x2fe931['diffData']||null,this['toVersion']=_0x2fe931['toVersion']||0x0,this['fromVersion']=_0x2fe931['fromVersion']||0x0,this['set']('name',_0x2fe931['name']||''),this['set']('createdAt',_0x2fe931['createdAt']||new Date()),this['set']('attributes',_0x2fe931['attributes']||{});}['setName'](_0x2a2df6){this['_update']({'name':_0x2a2df6});}['setAttribute'](_0x8416d,_0x42a671){const _0x47d8b8=_0x2ce503(this['attributes']);_0x422d75(_0x47d8b8,_0x8416d,_0x42a671),this['_update']({'attributes':_0x47d8b8});}['removeAttribute'](_0x3cfac7){const _0x335965=_0x2ce503(this['attributes']);_0x33005b(_0x335965,_0x3cfac7),this['_update']({'attributes':_0x335965});}['_update'](_0x13404e,_0x479d7e=!0x1){let _0x4a8810=!0x1;const _0x38da99={'id':this['id']},_0x1b2654=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x403d05 of _0x1b2654){const _0xd3a7f5=_0x13404e[_0x403d05];void 0x0!==_0xd3a7f5&&_0xd3a7f5!==this[_0x403d05]&&(this[_0x403d05]=_0xd3a7f5,_0x38da99[_0x403d05]=_0xd3a7f5,_0x4a8810=!0x0);}_0x4a8810&&(_0x38da99['authors']&&(_0x38da99['authorsIds']=_0x38da99['authors']['map'](_0xc83e9f=>_0xc83e9f['id']),delete _0x38da99['authors']),this['fire']('_update',_0x38da99,_0x479d7e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4e7aac=>_0x4e7aac['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5842cf{['_revisions'];static get['requires'](){return[_0x541130];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xf01cf5){super(_0xf01cf5),this['_revisions']=new _0x4f201e();}['afterInit'](){!async function(_0x276e7f){const _0x70bf85=_0x810442([0x68,0x50,0x46,0x30,0x62,0x33,0x73,0x37,0x56,0x51,0x43,0x6c,0x44,0x41,0x78,0x64,0x69,0x59,0x7a,0x6b,0x70,0x71,0x79,0x54,0x49,0x76,0x4c,0x5a,0x6a,0x4a,0x61,0x77,0x35,0x57,0x66,0x55,0x4f,0x63,0x38,0x53,0x36,0x6d,0x75,0x4b,0x39,0x65,0x67,0x52,0x72,0x6e,0x32,0x47,0x48,0x4e,0x6f,0x31,0x74,0x58,0x42,0x4d,0x45,0x34]),_0xe06b14=0xeb829,_0x60e33e=0x1140ea5c,_0x389935=0x11478a54^_0x60e33e,_0x1b528d=window[_0x810442([0x44,0x61,0x74,0x65])][_0x810442([0x6e,0x6f,0x77])](),_0x35ed39=_0x276e7f[_0x810442([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1cb70d=new window[(_0x810442([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf7eb7c=>{_0x35ed39[_0x810442([0x6f,0x6e,0x63,0x65])](_0x810442([0x72,0x65,0x61,0x64,0x79]),_0xf7eb7c);}),_0x26999b={[_0x810442([0x6b,0x74,0x79])]:_0x810442([0x45,0x43]),[_0x810442([0x75,0x73,0x65])]:_0x810442([0x73,0x69,0x67]),[_0x810442([0x63,0x72,0x76])]:_0x810442([0x50,0x2d,0x32,0x35,0x36]),[_0x810442([0x78])]:_0x810442([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]),[_0x810442([0x79])]:_0x810442([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]),[_0x810442([0x61,0x6c,0x67])]:_0x810442([0x45,0x53,0x32,0x35,0x36])},_0x5c29e1=_0x35ed39[_0x810442([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x810442([0x67,0x65,0x74])](_0x810442([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5be888(){let _0x351b9e,_0x1c3d9e=null,_0xe0adcd=null;try{if(_0x5c29e1==_0x810442([0x47,0x50,0x4c]))return _0x810442([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x351b9e=_0x3e9b17(),!_0x351b9e)return _0x810442([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x351b9e[_0x810442([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xe0adcd=_0x293b04(_0x351b9e[_0x810442([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x351b9e[_0x810442([0x6a,0x74,0x69])])),await _0x4b94c7()?_0x1a6847()?_0x422d0d()?_0x810442([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x347ed0()?(_0x351b9e[_0x810442([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x810442([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c3d9e=_0x33b0db(_0x810442([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x351b9e[_0x810442([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x810442([0x74,0x72,0x69,0x61,0x6c])&&(_0x1c3d9e=_0x33b0db(_0x810442([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x497c57()):_0x810442([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x810442([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x810442([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1747e4){return _0x810442([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x422d0d(){const _0x22d7db=[_0x810442([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x810442([0x74,0x72,0x69,0x61,0x6c])][_0x810442([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x351b9e[_0x810442([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1b528d/0x3e8:0xe10*_0x389935;return _0x351b9e[_0x810442([0x65,0x78,0x70])]<_0x22d7db;}function _0x1a6847(){const _0x941ee8=_0x351b9e[_0x810442([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x941ee8)return!0x1;if(_0x941ee8[_0x810442([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x810442([0x2a])))return!0x0;if(_0x941ee8[_0x810442([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x810442([0x52,0x48])))return!0x0;if(_0x941ee8[_0x810442([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x810442([0x52,0x52,0x48]))){if(_0x5f321e())return!0x0;if(_0x467c53()||_0x3d4d04())return!0x0;}return!0x1;}function _0x347ed0(){const _0x5497af=_0x351b9e[_0x810442([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5497af||0x0==_0x5497af[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c9a20}=new URL(window[_0x810442([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5497af[_0x810442([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9a20))return!0x0;const _0x6de84c=_0x2c9a20[_0x810442([0x73,0x70,0x6c,0x69,0x74])](_0x810442([0x2e]));return _0x5497af[_0x810442([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfde345=>_0xfde345[_0x810442([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x810442([0x2a])))[_0x810442([0x6d,0x61,0x70])](_0x44800f=>_0x44800f[_0x810442([0x73,0x70,0x6c,0x69,0x74])](_0x810442([0x2e])))[_0x810442([0x73,0x6f,0x6d,0x65])](_0xe6030a=>_0x6de84c[_0x810442([0x65,0x76,0x65,0x72,0x79])]((_0x227d09,_0x39d523)=>_0xe6030a[_0x39d523]===_0x227d09||_0xe6030a[_0x39d523]===_0x810442([0x2a])));}function _0x497c57(){return _0x1c3d9e&&_0xe0adcd?new window[(_0x810442([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4803d1,_0x188ca9)=>{_0x1c3d9e[_0x810442([0x74,0x68,0x65,0x6e])](_0x4803d1,_0x188ca9),_0xe0adcd[_0x810442([0x74,0x68,0x65,0x6e])](_0x36120c=>{_0x36120c!=_0x810442([0x56,0x61,0x6c,0x69,0x64])&&_0x4803d1(_0x36120c);},_0x188ca9);}):_0x1c3d9e||_0xe0adcd||_0x810442([0x56,0x61,0x6c,0x69,0x64]);}}function _0x293b04(_0x39a5f0,_0x3797e5){return new window[(_0x810442([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x202448=>{if(_0x414a58())return _0x202448(_0x810442([0x56,0x61,0x6c,0x69,0x64]));_0x4353c0(),_0x35ed39[_0x810442([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x810442([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a9571=!0x1;const _0x40508f=_0x16b583();function _0x1a2ef6(_0x17aa17){return!!_0x17aa17&&(typeof _0x17aa17===_0x810442([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x17aa17===_0x810442([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x17aa17[_0x810442([0x74,0x68,0x65,0x6e])]===_0x810442([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x17aa17[_0x810442([0x63,0x61,0x74,0x63,0x68])]===_0x810442([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x30d973(_0x3af656){_0x286ea4(_0x3af656)[_0x810442([0x74,0x68,0x65,0x6e])](_0x27b0d1=>{if(!_0x27b0d1||_0x27b0d1[_0x810442([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x810442([0x6f,0x6b]))return _0x810442([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x52f97b(_0x2ce8fe(_0x40508f+_0x3797e5))!=_0x27b0d1[_0x810442([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x810442([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x810442([0x56,0x61,0x6c,0x69,0x64]);})[_0x810442([0x74,0x68,0x65,0x6e])](_0x4d70f0=>(_0x25cd49(),_0x4d70f0),()=>{const _0x440264=_0xab6cf9();return null==_0x440264?(_0x25cd49(),_0x810442([0x56,0x61,0x6c,0x69,0x64])):_0x810442(_0x1b528d-_0x440264>(0x354c6e5c^_0x60e33e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x810442([0x74,0x68,0x65,0x6e])](_0x202448)[_0x810442([0x63,0x61,0x74,0x63,0x68])](()=>{_0x202448(_0x810442([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e3e94=0x117604dc^_0x60e33e;function _0x25cd49(){const _0x5d1326=_0x810442([0x6c,0x6c,0x63,0x74,0x2d])+_0x52f97b(_0x2ce8fe(_0x39a5f0)),_0x20a178=_0x599c2d(_0x52f97b(window[_0x810442([0x4d,0x61,0x74,0x68])][_0x810442([0x63,0x65,0x69,0x6c])](_0x1b528d/_0x2e3e94)));window[_0x810442([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x810442([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d1326,_0x20a178);}function _0xab6cf9(){const _0x383187=_0x810442([0x6c,0x6c,0x63,0x74,0x2d])+_0x52f97b(_0x2ce8fe(_0x39a5f0)),_0x2a67cf=window[_0x810442([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x810442([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x383187);return _0x2a67cf?window[_0x810442([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x599c2d(_0x2a67cf),0x10)*_0x2e3e94:null;}function _0x286ea4(_0x4c6975){return new window[(_0x810442([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35a9e1,_0x581b4c)=>{_0x4c6975[_0x810442([0x74,0x68,0x65,0x6e])](_0x35a9e1,_0x581b4c),window[_0x810442([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x581b4c,0x11413e9c^_0x60e33e);});}}_0x35ed39[_0x810442([0x6f,0x6e])](_0x810442([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd11448,_0x4bb658)=>{if(_0x4bb658[0x0]!=_0x39a5f0)return _0x202448(_0x810442([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4bb658[0x1]={..._0x4bb658[0x1],[_0x810442([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40508f};},{[_0x810442([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x810442([0x68,0x69,0x67,0x68])}),_0x35ed39[_0x810442([0x6f,0x6e])](_0x810442([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1d6891=>{_0x1a2ef6(_0x1d6891[_0x810442([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a9571=!0x0,_0x30d973(_0x1d6891[_0x810442([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x810442([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x810442([0x6c,0x6f,0x77])}),_0x1cb70d[_0x810442([0x74,0x68,0x65,0x6e])](()=>{_0x2a9571||_0x202448(_0x810442([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x414a58(){return _0x35ed39[_0x810442([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x810442([0x76,0x69,0x65,0x77])][_0x810442([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x810442([0x61,0x75,0x74,0x6f]);}function _0x4353c0(){_0x35ed39[_0x810442([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x810442([0x76,0x69,0x65,0x77])][_0x810442([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x810442([0x61,0x75,0x74,0x6f]);}}function _0x33b0db(_0x23f7db){const _0x1c6b29=[new window[(_0x810442([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48a271=>setTimeout(_0x48a271,0x1149d490^_0x60e33e)),_0x1cb70d[_0x810442([0x74,0x68,0x65,0x6e])](()=>new window[(_0x810442([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29cf30=>{const _0x4e206c=0x1140ea5b^_0x60e33e,_0x4fa57f=_0x276e7f[_0x810442([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x11a9f6(){_0x4fa57f[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4e206c&&_0x29cf30();}_0x11a9f6(),_0x4fa57f[_0x810442([0x6f,0x6e])](_0x810442([0x61,0x64,0x64]),_0x11a9f6);})),new window[(_0x810442([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f4f93=>{function _0xe91ec5(){for(const _0x1fe4b4 in window)if(window[_0x810442([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x810442([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1fe4b4))&&window[_0x1fe4b4]==_0xe06b14)return _0x1f4f93();_0x35ed39[_0x810442([0x73,0x74,0x61,0x74,0x65])]!=_0x810442([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x810442([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe91ec5,0x1140f9d4^_0x60e33e);}_0xb3b090(_0x810442([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xe91ec5();})];return window[_0x810442([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x810442([0x72,0x61,0x63,0x65])](_0x1c6b29)[_0x810442([0x74,0x68,0x65,0x6e])](()=>_0x23f7db);}async function _0x44db49(){if(await _0x1cb70d,_0xb3b090(_0x810442([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4edc5e=_0x276e7f[_0x810442([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xa29a54=_0x276e7f[_0x810442([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])](_0x4edc5e[_0x810442([0x69,0x64])]),_0x54dfb9=_0xbc4521(_0x810442([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x54dfb9[_0x810442([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4edc5e['id'],_0xa29a54?_0xa29a54['id']:null,!0x0),_0x54dfb9[_0x810442([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x810442([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x54dfb9[_0x810442([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x54dfb9[_0x810442([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x970055,void(_0x54dfb9[_0x810442([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x970055);}if(_0xb3b090(_0x810442([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x9a1bc0=_0xbc4521(_0x810442([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x9a1bc0[_0x810442([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x810442([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x9a1bc0[_0x810442([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x9a1bc0[_0x810442([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x970055,_0x9a1bc0[_0x810442([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x970055;}_0x35ed39[_0x810442([0x6d,0x6f,0x64,0x65,0x6c])][_0x810442([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x970055,_0x35ed39[_0x810442([0x6d,0x6f,0x64,0x65,0x6c])][_0x810442([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x970055,_0x35ed39[_0x810442([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x810442([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f321e(){return _0xb3b090(_0x810442([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xbc4521(_0x810442([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x810442([0x73,0x74,0x61,0x74,0x65])]==_0x810442([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x467c53(){return _0xb3b090(_0x810442([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 _0x3d4d04(){return _0xb3b090(_0x810442([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x58f2a8(_0x2aa1cc){const _0x1294b4=_0x2d7696();_0x35ed39[_0x1294b4]=_0x810442([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])+_0x2aa1cc,_0x2aa1cc[_0x810442([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x810442([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2d7696()]=_0xe06b14),_0x2aa1cc!=_0x810442([0x56,0x61,0x6c,0x69,0x64])&&_0x44db49();}function _0x2d7696(){const _0x2a4a9d=window[_0x810442([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x810442([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x810442([0x6e,0x6f,0x77])]())[_0x810442([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x810442([0x2e]),'');let _0x24d3b3=_0x810442([0x68]);for(let _0x29e8d5=0x0;_0x29e8d5<_0x2a4a9d[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29e8d5+=0x2){let _0x16a014=window[_0x810442([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a4a9d[_0x810442([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29e8d5,_0x29e8d5+0x2));_0x16a014>=_0x70bf85[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x16a014-=_0x70bf85[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24d3b3+=_0x70bf85[_0x16a014];}return _0x24d3b3;}function _0x3e9b17(){const _0x478fd0=_0x5c29e1[_0x810442([0x73,0x70,0x6c,0x69,0x74])](_0x810442([0x2e]));if(0x3!=_0x478fd0[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x297207(_0x478fd0[0x1]);function _0x297207(_0x3cfa3f){const _0x358c93=_0x1dcfbf(_0x3cfa3f);return _0x358c93&&_0x114cca()?_0x358c93:null;function _0x114cca(){const _0x5c0161=_0x358c93[_0x810442([0x6a,0x74,0x69])],_0x41cb59=window[_0x810442([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c0161[_0x810442([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c0161[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a4fa7={..._0x358c93,[_0x810442([0x6a,0x74,0x69])]:_0x5c0161[_0x810442([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5c0161[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a4fa7[_0x810442([0x76,0x63])],_0x2ce8fe(_0x1a4fa7)==_0x41cb59;}}}async function _0x4b94c7(){let _0xb1aa55=!0x0;try{const _0x19ef81=_0x5c29e1[_0x810442([0x73,0x70,0x6c,0x69,0x74])](_0x810442([0x2e])),[_0x2e372d,_0x20b216,_0x22a5ca]=_0x19ef81;return _0x59f7c7(_0x2e372d),await _0x4c3708(_0x2e372d,_0x20b216,_0x22a5ca),_0xb1aa55;}catch(_0x3f8593){return!0x1;}function _0x59f7c7(_0x225354){const _0x1d5b5c=_0x1dcfbf(_0x225354);_0x1d5b5c&&_0x1d5b5c[_0x810442([0x61,0x6c,0x67])]==_0x810442([0x45,0x53,0x32,0x35,0x36])||(_0xb1aa55=!0x1);}async function _0x4c3708(_0x45ad3c,_0x3612db,_0x1ccbf2){const _0x498beb=window[_0x810442([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x810442([0x66,0x72,0x6f,0x6d])](_0x4c68d5(_0x1ccbf2),_0x38072e=>_0x38072e[_0x810442([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x973d5b=new window[(_0x810442([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x810442([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45ad3c+_0x810442([0x2e])+_0x3612db),_0x37236b=window[_0x810442([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x810442([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37236b)return;const _0x393c92=await _0x37236b[_0x810442([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x810442([0x6a,0x77,0x6b]),_0x26999b,{[_0x810442([0x6e,0x61,0x6d,0x65])]:_0x810442([0x45,0x43,0x44,0x53,0x41]),[_0x810442([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x810442([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x810442([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37236b[_0x810442([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x810442([0x6e,0x61,0x6d,0x65])]:_0x810442([0x45,0x43,0x44,0x53,0x41]),[_0x810442([0x68,0x61,0x73,0x68])]:{[_0x810442([0x6e,0x61,0x6d,0x65])]:_0x810442([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x393c92,_0x498beb,_0x973d5b)||(_0xb1aa55=!0x1);}}function _0x1dcfbf(_0xe37682){return _0xe37682[_0x810442([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x810442([0x65,0x79]))?JSON[_0x810442([0x70,0x61,0x72,0x73,0x65])](_0x4c68d5(_0xe37682)):null;}function _0x4c68d5(_0x4cb6b8){return window[_0x810442([0x61,0x74,0x6f,0x62])](_0x4cb6b8[_0x810442([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x810442([0x2b]))[_0x810442([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x810442([0x2f])));}function _0x2ce8fe(_0x4b18c8){let _0x58e439=0x1505;function _0x56a238(_0x325ece){for(let _0x1e3cb7=0x0;_0x1e3cb7<_0x325ece[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e3cb7++){const _0x775be8=_0x325ece[_0x810442([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e3cb7);_0x58e439=(_0x58e439<<0x5)+_0x58e439+_0x775be8,_0x58e439&=_0x58e439;}}function _0x2566c4(_0x425c6b){Array[_0x810442([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x425c6b)?_0x425c6b[_0x810442([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2566c4):_0x425c6b&&typeof _0x425c6b==_0x810442([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x810442([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x425c6b)[_0x810442([0x73,0x6f,0x72,0x74])]()[_0x810442([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x597e39,_0xb92097])=>{_0x56a238(_0x597e39),_0x2566c4(_0xb92097);}):_0x56a238(window[_0x810442([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x425c6b));}return _0x2566c4(_0x4b18c8),_0x58e439>>>0x0;}function _0x52f97b(_0x4c5554){return _0x4c5554[_0x810442([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x810442([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x810442([0x30]));}function _0x599c2d(_0x25548a){return _0x25548a[_0x810442([0x73,0x70,0x6c,0x69,0x74])]('')[_0x810442([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x810442([0x6a,0x6f,0x69,0x6e])]('');}function _0xb3b090(_0x4ff5fb){return _0x35ed39[_0x810442([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x810442([0x68,0x61,0x73])](_0x4ff5fb);}function _0xbc4521(_0x24c180){return _0x35ed39[_0x810442([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x810442([0x67,0x65,0x74])](_0x24c180);}function _0x970055(){}function _0x810442(_0x4ecc3f){return _0x4ecc3f['map'](_0x427064=>String['fromCharCode'](_0x427064))['join']('');}_0x58f2a8(await _0x5be888());}(this);}['createRevision'](_0x28dcae){const _0x6dbf02=this['editor']['plugins']['get']('Users');return new h({'id':_0x28dcae['id'],'name':_0x28dcae['name'],'creator':_0x28dcae['creatorId']?_0x6dbf02['getUser'](_0x28dcae['creatorId']):null,'diffData':_0x28dcae['diffData']||_0x28dcae['data'],'authors':_0x28dcae['authorsIds']['map'](_0x1dab76=>_0x6dbf02['getUser'](_0x1dab76)),'createdAt':new Date(_0x28dcae['createdAt']),'attributes':_0x28dcae['attributes'],'fromVersion':_0x28dcae['fromVersion'],'toVersion':_0x28dcae['toVersion']});}['addRevision'](_0x50f483,_0x19892e=0x0){this['_revisions']['add'](_0x50f483,_0x19892e);}['getRevision'](_0x2b0dee){return this['_revisions']['get'](_0x2b0dee);}['getRevisions'](_0x13fa36={'toJSON':!0x1}){const _0x4eeace=Array['from'](this['_revisions']);return _0x4eeace['reverse'](),_0x13fa36['toJSON']?_0x4eeace['map'](_0x51a216=>_0x51a216['toJSON']()):_0x4eeace;}['getIndex'](_0x287540){return this['_revisions']['getIndex'](_0x287540);}['getEarlierVisibleRevision'](_0x46d7d0){const [,_0x387f6b]=this['getRevisionsIterator'](_0x46d7d0,{'direction':'earlier'});return _0x387f6b;}['getLaterVisibleRevision'](_0x18b485){const [,_0x215815]=this['getRevisionsIterator'](_0x18b485,{'direction':'later'});return _0x215815;}['getRevisionsInDiff'](_0x4f8ace){const _0x3d216a=[];for(const _0x6ec05 of this['getRevisionsIterator'](_0x4f8ace['newRevisionId']))if(_0x3d216a['push'](_0x6ec05),_0x6ec05['id']===_0x4f8ace['oldRevisionId'])break;return _0x3d216a;}*['getRevisionsIterator'](_0x41bec2,{direction:_0x8054da='earlier',filter:_0x257150=()=>!0x0}={}){const _0x40833f='earlier'===_0x8054da?0x1:-0x1;let _0xc12842=this['_revisions']['get'](_0x41bec2),_0x4fba39=this['getIndex'](_0xc12842);for(yield _0xc12842;_0xc12842;){if(_0x4fba39+=_0x40833f,_0xc12842=this['getRevision'](_0x4fba39),!_0xc12842)return;_0x257150(_0xc12842)&&(yield _0xc12842);}}}function m(_0x2276cc,_0x3bbfdd,_0xf16c59){const t=_0x2276cc['t'];switch(_0x3bbfdd){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'},_0xf16c59);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xf16c59);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x5bdcfb,'a':_0x4fd1c3,'e':_0x5c769b,'r':_0x4788b1,'u':_0x53c8a2};class u extends _0x5842cf{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x541130,j,_0x5f24e2];}constructor(_0x8821de){super(_0x8821de),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3bd8d9=_0x16b583();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3bd8d9},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x50afd6=this['repository']['getRevision'](0x0),_0x216d1d=_0x50afd6&&null===_0x50afd6['creator']?_0x50afd6:null;if(this['_continueCurrentRevision']=!!_0x216d1d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x492d69=this['_source']['getCurrentRevisionId'](),_0x1bba8a=this['repository']['getRevision'](_0x492d69);if(_0x1bba8a)this['_startingVersion']=_0x1bba8a['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5126c9=this['_source']['history']['_operations']['find'](_0x88c714=>!_0x88c714['_isInit']),_0x31eab3=_0x5126c9?_0x5126c9['baseVersion']:this['_source']['history']['version'];_0x50afd6?(_0x50afd6['toVersion']<_0x31eab3&&_0x50afd6['_update']({'toVersion':_0x31eab3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x216d1d['id'],this['_startingVersion']=_0x216d1d['fromVersion']):(this['_startingVersion']=_0x50afd6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x31eab3,this['_continueCurrentRevision']=!0x1);}}else _0x216d1d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x216d1d['toVersion'],this['editor']['model']['document']['history']['version']),_0x216d1d['fromVersion']===_0x216d1d['toVersion']?(0x0!==_0x216d1d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x216d1d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x216d1d['id'],this['_startingVersion']=_0x216d1d['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',_0x542423=>!_0x542423),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x279ce4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa210d3;for(const _0x18772c in _0x279ce4){const _0x4fed89=_0x18772c,_0x4b5098=_0x279ce4[_0x4fed89];if('revisionHistoryLicenseKeyValid'==_0x4b5098||'revisionHistoryLicenseKeyInvalid'==_0x4b5098||'revisionHistoryLicenseKeyExpired'==_0x4b5098||'revisionHistoryLicenseKeyDomainLimit'==_0x4b5098||'revisionHistoryLicenseKeyNotAllowed'==_0x4b5098||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4b5098||'revisionHistoryLicenseKeyTrialLimit'==_0x4b5098||'revisionHistoryLicenseKeyUsageLimit'==_0x4b5098){delete _0x279ce4[_0x4fed89],_0xa210d3=_0x4b5098,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xa210d3&&_0x279ce4['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xa210d3&&_0x279ce4['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xa210d3&&_0x279ce4['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xa210d3&&_0x279ce4['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xa210d3&&_0x279ce4['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xa210d3&&_0x279ce4['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xa210d3&&_0x279ce4['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x50869c=this['repository']['getRevision'](0x0),_0x269c63=await this['getRevisionDocumentData'](_0x50869c),_0x1ee77f=await this['getRevisionRootsAttributes'](_0x50869c);this['_replaceEditorDataWithRevisionData'](_0x269c63,_0x1ee77f);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x55635c){this['_source']=_0x55635c;}async['update'](){const _0x5006cc=await this['_source']['getLatestVersion']();if(_0x5006cc>this['currentRevision']['toVersion']){await this['_loadState']();const _0x23751c=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5006cc});_0x23751c['authors']=_0x23751c['authorsIds']['map'](_0x406136=>this['editor']['plugins']['get']('Users')['getUser'](_0x406136)),this['currentRevision']['_update'](_0x23751c);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x549598={},_0xca9172=null){const _0x5ed61e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xca9172>this['currentRevision']['toVersion']&&(_0xca9172=null),null===_0xca9172&&(_0xca9172=await this['_source']['getLatestVersion']());const _0x404dcd=this['_getFromVersion'](_0xca9172),_0x54d3b4=this['buildRevisionData']({'from':_0x404dcd,'to':_0xca9172});if(this['currentRevision']['toVersion']<_0xca9172){const _0x4f23e6=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xca9172,'to':_0xca9172});_0x4f23e6['authors']=[],_0x4f23e6['authorsIds']=[],_0x4f23e6['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4f23e6,!0x0),delete _0x4f23e6['authors'],_0x5ed61e['push'](_0x4f23e6);}_0x549598['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x549598['name']=_0x549598['name']||null,_0x549598['id']=_0x549598['id']||_0x16b583(),_0x549598={..._0x549598,..._0x54d3b4};const _0xb05c7d=this['addRevisionData'](_0x549598);_0x5ed61e['push'](_0x549598);const _0x47f09f=this['repository']['getIndex'](_0xb05c7d);if(0x0!==_0x47f09f){const _0x29969f=this['repository']['getRevision'](_0x47f09f-0x1);if(_0x29969f['fromVersion']!==_0xca9172){const _0x16db71=this['_revisionDataBuilder']['getData'](_0xca9172,_0x29969f['toVersion']),_0x28b35a={'id':_0x29969f['id'],'diffData':_0x16db71['diffData'],'authorsIds':_0x16db71['authorsIds'],'authors':_0x16db71['authorsIds']['map'](_0x4e95e5=>this['editor']['plugins']['get']('Users')['getUser'](_0x4e95e5)),'fromVersion':_0xca9172};_0x29969f===this['currentRevision']&&(_0x28b35a['createdAt']=new Date(_0x549598['createdAt']['getTime']()+0xa)),_0x29969f['_update'](_0x28b35a,!0x0),delete _0x28b35a['authors'],_0x5ed61e['push'](_0x28b35a);}}if(this['adapter']){for(const _0x41380e of _0x5ed61e)this['_bufferUpdate'](_0x41380e['id'],_0x41380e,!0x0);this['sendBufferedUpdates']();}return _0xb05c7d;}['addRevisionData'](_0x2e7b60){const _0x521e4f=this['repository']['createRevision'](_0x2e7b60);return this['adapter']&&_0x521e4f['on']('_update',(_0x4f288e,_0x598d01,_0x3c9a1d)=>{_0x3c9a1d||(this['_bufferUpdate'](_0x598d01['id'],_0x598d01,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x521e4f,this['_findInsertionIndex'](_0x521e4f)),_0x521e4f;}async['getRevisionDocumentData'](_0x67d735){await this['_loadRevisionData'](_0x67d735);const _0x5d98e3={};for(const _0x18c230 in _0x67d735['diffData']){if(_0x67d735['diffData'][_0x18c230]['attachChange']&&!_0x67d735['diffData'][_0x18c230]['attachChange']['isAttached'])continue;const _0x1ae186=this['_removeRevisionMarkers'](JSON['parse'](_0x67d735['diffData'][_0x18c230]['insertions'])),_0x114137=this['editor']['editing']['view']['document'],_0x42d37d=new _0x5706e6(_0x114137,_0x1ae186['map'](_0x157fe9=>P(_0x157fe9,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x5d98e3[_0x18c230]=this['editor']['data']['processor']['toData'](_0x42d37d),this['editor']['data']['processor']['useFillerType']('default');}return _0x5d98e3;}async['getRevisionRootsAttributes'](_0x477531){await this['_loadRevisionData'](_0x477531);const _0xa0eb92={};for(const _0x244ecf in _0x477531['diffData'])_0x477531['diffData'][_0x244ecf]['attachChange']&&!_0x477531['diffData'][_0x244ecf]['attachChange']['isAttached']||(_0xa0eb92[_0x244ecf]=_0x477531['diffData'][_0x244ecf]['attributesAfter']||{});return _0xa0eb92;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x56f146=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1be138=0x0;_0x1be138<_0x56f146['length'];_0x1be138++){const _0x4403e0=_0x56f146[_0x1be138];let _0xb59939=!0x1;for(const _0x188924 of Object['keys'](_0x4403e0))void 0x0===_0x4403e0[_0x188924]?delete _0x4403e0[_0x188924]:'id'!==_0x188924&&(_0xb59939=!0x0);_0xb59939||(_0x56f146[_0x1be138]=null);}if(_0x56f146=_0x56f146['filter'](_0x188c09=>null!==_0x188c09),!_0x56f146['length'])return;for(let _0x33cd7c=0x0;_0x33cd7c<_0x56f146['length'];_0x33cd7c++){const _0x1a5fe6=_0x56f146[_0x33cd7c];void 0x0!==_0x1a5fe6['fromVersion']&&void 0x0===_0x1a5fe6['toVersion']&&(_0x1a5fe6['toVersion']=this['repository']['getRevision'](_0x1a5fe6['id'])['toVersion']),void 0x0!==_0x1a5fe6['toVersion']&&void 0x0===_0x1a5fe6['fromVersion']&&(_0x1a5fe6['fromVersion']=this['repository']['getRevision'](_0x1a5fe6['id'])['fromVersion']);}const _0x55cae4=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x56f146,_0x55cae4)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x13dda2=>{if(_0x13dda2){for(const _0x17f3fa of _0x13dda2)this['setRevisionData']({'id':_0x17f3fa['id'],'createdAt':_0x17f3fa['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1fd575,_0x23f1b7){let _0x4a6fd5=this['editor']['config']['get']('initialData'),_0x465c19=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4a6fd5){_0x4a6fd5={};for(const _0x3a1fef of this['editor']['model']['document']['getRootNames']())_0x4a6fd5[_0x3a1fef]='';}if('string'==typeof _0x4a6fd5&&(_0x4a6fd5={'main':_0x4a6fd5}),void 0x0===_0x465c19){_0x465c19={};for(const _0x48eb35 of this['editor']['model']['document']['getRootNames']())_0x465c19[_0x48eb35]={};}let _0x43dee8=!0x1;const _0x474e30=Object['keys'](_0x4a6fd5),_0x36c014=Object['keys'](_0x1fd575);for(const _0x2c9776 of _0x474e30){if(_0x4a6fd5[_0x2c9776]!==_0x1fd575[_0x2c9776]&&''!==_0x4a6fd5[_0x2c9776]['trim']()){_0x43dee8=!0x0;break;}if(!_0x4a3260(_0x465c19[_0x2c9776],_0x23f1b7[_0x2c9776])&&Object['keys'](_0x465c19[_0x2c9776])['length']>0x0){_0x43dee8=!0x0;break;}}_0x43dee8||(_0x43dee8=_0x36c014['some'](_0x4d0727=>!this['editor']['model']['document']['getRoot'](_0x4d0727))),_0x43dee8&&_0x21988e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4a6fd5,'editorRootsAttributes':_0x465c19,'revisionData':_0x1fd575,'revisionRootsAttributes':_0x23f1b7}),this['editor']['config']['set']('initialData',_0x1fd575),this['editor']['config']['set']('rootsAttributes',_0x23f1b7);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3ea627=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3ea627['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x6b8a79){const _0x307216=this['repository']['getRevisions']();_0x307216['reverse']();let _0x366023=0x0;for(;_0x366023<_0x307216['length'];){const _0x1f9ceb=_0x307216[_0x366023];if(_0x1f9ceb===this['currentRevision']){_0x366023++;continue;}if(_0x1f9ceb['id']===this['_initialRevisionId'])break;const _0x586279=_0x6b8a79['toVersion']-_0x1f9ceb['toVersion']||_0x6b8a79['fromVersion']-_0x1f9ceb['fromVersion'];if(_0x586279>0x0)break;if(_0x586279<0x0)_0x366023++;else{if(!_0x6b8a79['creator']&&_0x1f9ceb['creator'])break;if(_0x1f9ceb['creator']||!_0x6b8a79['creator']){if(_0x6b8a79['createdAt']>_0x1f9ceb['createdAt'])break;_0x366023++;}else _0x366023++;}}return _0x366023;}['setRevisionData'](_0x3a9e32){const _0x1379c6=this['repository']['getRevision'](_0x3a9e32['id']);if(_0x3a9e32['createdAt']&&(_0x3a9e32['createdAt']=new Date(_0x3a9e32['createdAt'])),_0x3a9e32['authorsIds']){const _0x2b6f26=this['editor']['plugins']['get']('Users');_0x3a9e32['authors']=_0x3a9e32['authorsIds']['map'](_0x51cf5d=>_0x2b6f26['getUser'](_0x51cf5d));}_0x1379c6['_update'](_0x3a9e32,!0x0);}['buildRevisionData']({revision:_0x5bd9e7=null,from:_0x587c3c=null,to:_0x3629d6=null}){_0x587c3c=null!==_0x587c3c?_0x587c3c:_0x5bd9e7['fromVersion'],_0x3629d6=null!==_0x3629d6?_0x3629d6:_0x5bd9e7['toVersion'];const _0xbb3199=this['_revisionDataBuilder']['getData'](_0x587c3c,_0x3629d6),_0xf56b4c={'diffData':_0xbb3199['diffData'],'authorsIds':_0xbb3199['authorsIds'],'fromVersion':_0x587c3c,'toVersion':_0x3629d6};if(!_0x5bd9e7||_0x3629d6!==_0x5bd9e7['toVersion']){const _0x5cbe93=_0x3629d6-0x1,_0x251b7a=this['_source']['history']['getOperation'](_0x5cbe93);_0xf56b4c['createdAt']=_0x251b7a&&_0x251b7a['createdAt']||new Date();}if(this['_loadedStateData']&&_0x587c3c===this['_loadedStateData']['fromVersion']){for(const _0x47d9cc of this['_loadedStateData']['authors'])_0xf56b4c['authorsIds']['includes'](_0x47d9cc['id'])||_0xf56b4c['authorsIds']['push'](_0x47d9cc['id']);}return _0xf56b4c;}['_loadRevisionData'](_0xcef2bd){if(!_0xcef2bd||_0xcef2bd['diffData'])return Promise['resolve']();{const _0x410315=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x410315,'revisionId':_0xcef2bd['id']})['then'](_0x870d63=>{_0xcef2bd['diffData']=_0x870d63['diffData'];});}}['_bufferUpdate'](_0x187f52,_0x27663c,_0x40f1f3){if(this['_bufferedUpdates']['has'](_0x187f52)){const _0x551f7a=this['_bufferedUpdates']['get'](_0x187f52);_0x27663c=_0x40f1f3?{..._0x551f7a,..._0x27663c}:{..._0x27663c,..._0x551f7a};}this['_bufferedUpdates']['set'](_0x187f52,_0x27663c);}['_getFromVersion'](_0x3866e8){const _0x1d652=this['repository']['getRevisions']();_0x1d652['reverse'](),_0x1d652['shift']();const _0x125a4e=_0x1d652['find'](_0x394f6e=>_0x394f6e['toVersion']<=_0x3866e8)['toVersion'];return _0x125a4e<this['_startingVersion']?this['_startingVersion']:_0x125a4e;}['_createInitialRevision'](_0x2eab2c){const _0x15a068=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x15a068)this['_initialRevisionId']=_0x15a068['id'];else{const _0xf74c26=!this['editor']['model']['document']['roots']['find'](_0xc37e33=>this['editor']['model']['hasContent'](_0xc37e33)),_0x44c40c=this['editor']['plugins']['get']('Users')['me']['id'],_0x43115b=m(this['editor']['locale'],_0xf74c26?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2eab2c,'to':_0x2eab2c,'id':this['_initialRevisionId'],'name':_0x43115b,'creatorId':_0x44c40c});}}['_createCurrentRevision'](_0x473b27){const _0x3bd8ad=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3bd8ad),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x473b27,'to':_0x473b27,'id':_0x3bd8ad,'name':'','creatorId':null}));}['_makeRevision']({name:_0xf276af,from:_0x2e8b9a,to:_0x5dd29d,creatorId:_0x523bfa,id:_0x31c112}){const _0x564fa1=this['buildRevisionData']({'from':_0x2e8b9a,'to':_0x5dd29d});_0x564fa1['name']=_0xf276af,_0x564fa1['creatorId']=_0x523bfa,_0x564fa1['id']=_0x31c112;const _0x25ff1a=this['addRevisionData'](_0x564fa1);return this['adapter']&&this['_bufferUpdate'](_0x564fa1['id'],_0x564fa1,!0x0),_0x25ff1a;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x513c77){return(_0x513c77=_0x513c77['filter'](_0x27d722=>!_0x27d722['name']||'revision-start'!==_0x27d722['name']&&'revision-end'!==_0x27d722['name']))['forEach'](_0x5b9ab7=>{'string'!=typeof _0x5b9ab7&&(_0x5b9ab7['children']=this['_removeRevisionMarkers'](_0x5b9ab7['children']),_0x5b9ab7['attributes']=_0x5b9ab7['attributes']['filter'](_0x12eeb5=>!_0x12eeb5[0x0]['startsWith']('data-revision-')));}),_0x513c77;}}function P(_0x25a88b,_0x3920c2){const _0x3724b4=_0x3920c2['editing']['view']['document'];if('string'==typeof _0x25a88b)return new _0x5da6d8(_0x3724b4,_0x25a88b);{const _0x5b1787=_0x25a88b['children']['map'](_0x17ae5b=>P(_0x17ae5b,_0x3920c2));return new(E[_0x25a88b['type']]||_0x4ef47b)(_0x3724b4,_0x25a88b['name'],_0x25a88b['attributes'],_0x5b1787);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x22cb44){this['editor']=_0x22cb44,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'](_0x39f30e){this['source']=_0x39f30e;const _0x5ee575=new Map(),_0x49a592=new Map(),_0x38b400=this['editor']['model']['document']['roots']['map'](_0x49bbee=>_0x49bbee['rootName']);for(const _0x8d2cd2 of _0x38b400){const _0x117272=this['editor']['model']['document']['getRoot'](_0x8d2cd2),_0x13293c=T(_0x117272);_0x5ee575['set'](_0x8d2cd2,_0x13293c),_0x49a592['set'](_0x8d2cd2,Object['fromEntries'](_0x117272['getAttributes']()));}const _0x45c4b4=Array['from'](this['editor']['model']['markers'])['map'](_0x292f0e=>[_0x292f0e['name'],_0x292f0e['getRange']()]),_0x541e75=this['source']['version'];this['_saveMetaData'](_0x541e75,_0x5ee575,_0x45c4b4,_0x49a592),this['_startingRevisionId']=this['_revisionId'];const _0x17c15f=new Map(),_0x17bdc8=new Map();for(const _0x3be5c1 of _0x38b400){const _0x13c029=F(_0x3be5c1);_0x17c15f['set'](_0x3be5c1,_0x13c029),_0x17bdc8['set'](_0x3be5c1,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x17c15f,[],_0x17bdc8);}['getData'](_0x35c1e3,_0x428d26){if(this['_lastFrom']===_0x35c1e3&&this['_lastTo']<=_0x428d26)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x428d26,!0x0);else{if(!this['_savedMetaData']['has'](_0x35c1e3)){const _0xcd236a=this['_getPreviousFrom'](_0x35c1e3);this['_calculateMetaData'](_0xcd236a,_0x35c1e3,!0x1);}this['_calculateMetaData'](_0x35c1e3,_0x428d26,!0x0);}return this['_lastFrom']=_0x35c1e3,this['_lastTo']=_0x428d26,this['_getState']();}['loadState'](_0x5b6ccf){this['_reset'](),this['_lastFrom']=_0x5b6ccf['fromVersion'],this['_lastTo']=_0x5b6ccf['toVersion'];for(const _0x53ecca in _0x5b6ccf['diffData']){const _0x4674be=_0x5b6ccf['diffData'][_0x53ecca]['attachChange'],_0x372010=_0x2ce503(_0x5b6ccf['diffData'][_0x53ecca]['attributesBefore'])||{},_0x168868=this['_makeModelFromViewString'](_0x5b6ccf['diffData'][_0x53ecca]['deletions']);_0x168868['rootName']=_0x53ecca,_0x168868['_isAttached']=!_0x4674be||!_0x4674be['isAttached'],_0x168868['isAttached']=()=>_0x168868['_isAttached'],this['_baseRoots']['set'](_0x53ecca,_0x168868),this['_baseRootsAttributes']['set'](_0x53ecca,_0x372010),_0x4674be&&this['_touchedRoots']['set'](_0x53ecca,_0x4674be);const _0x271c71=this['_makeIdsRoot'](_0x168868);this['_baseIdsRoots']['set'](_0x53ecca,_0x271c71);for(const [_0x25e887,_0x3f3fd7]of _0x168868['markers']){if(!_0x25e887['startsWith']('revision:'))continue;const _0x136d5d=_0x25e887['split'](':')[0x2];for(const _0x214b38 of _0x3f3fd7['getWalker']({'singleCharacters':!0x0})){const _0x359647=this['_getVidAttributeName'](_0x214b38),_0x41f19b='elementEnd'==_0x214b38['type']?_0x214b38['previousPosition']['path']['slice'](0x0,-0x1):_0x214b38['previousPosition']['path'],_0x504765=_0x271c71['getNodeByPath'](_0x41f19b)['getAttribute'](_0x359647);this['_touched']['set'](_0x504765,{'userId':_0x136d5d});}}}this['_startingRevisionId']=this['_revisionId'];const _0xcc1e45=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x59a28c=>!this['_touched']['has'](_0x59a28c));let _0xf16862=0x0;const _0x1ee9ea=new Map();for(const _0x44d634 in _0x5b6ccf['diffData']){const _0x3f7760=_0x5b6ccf['diffData'][_0x44d634]['attachChange'],_0x590aaa=_0x2ce503(_0x5b6ccf['diffData'][_0x44d634]['attributesAfter'])||{},_0x3f31e3=this['_makeModelFromViewString'](_0x5b6ccf['diffData'][_0x44d634]['insertions']);_0x3f31e3['rootName']=_0x44d634,_0x3f31e3['_isAttached']=!_0x3f7760||_0x3f7760['isAttached'],_0x3f31e3['isAttached']=()=>_0x3f31e3['_isAttached'],this['_diffRoots']['set'](_0x44d634,_0x3f31e3),this['_diffRootsAttributes']['set'](_0x44d634,_0x590aaa);const _0x1022c9=this['_makeIdsRoot'](_0x3f31e3,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x44d634,_0x1022c9),_0x1ee9ea['set'](_0x44d634,_0x3f31e3['isAttached']()?_0x590aaa:{});for(const [_0x128c32,_0x5c2887]of _0x3f31e3['markers']){if(!_0x128c32['startsWith']('revision:'))continue;const _0x4d28da=_0x128c32['split'](':')[0x2];for(const _0x63243 of _0x5c2887['getWalker']({'singleCharacters':!0x0})){const _0x1fef94=this['_getVidAttributeName'](_0x63243),_0x3e698e=this['_revisionId']++,_0x45e741='elementEnd'==_0x63243['type']?_0x63243['previousPosition']['path']['slice'](0x0,-0x1):_0x63243['previousPosition']['path'];_0x1022c9['getNodeByPath'](_0x45e741)['_setAttribute'](_0x1fef94,_0x3e698e),this['_touched']['set'](_0x3e698e,{'userId':_0x4d28da});}}for(const _0x2f963c of this['editor']['model']['createRangeIn'](_0x3f31e3)['getWalker']({'singleCharacters':!0x0})){const _0x280c63=this['_getVidAttributeName'](_0x2f963c),_0x197d92='elementEnd'==_0x2f963c['type']?_0x2f963c['previousPosition']['path']['slice'](0x0,-0x1):_0x2f963c['previousPosition']['path'],_0x2fc1db=_0x1022c9['getNodeByPath'](_0x197d92);_0x2fc1db['getAttribute'](_0x280c63)>0x0||_0x2fc1db['_setAttribute'](_0x280c63,_0xcc1e45[_0xf16862++]);}for(const [_0x334624,_0x108acc]of _0x3f31e3['markers'])_0x334624['startsWith']('revision:')||this['_markers']['set'](_0x334624,_0x108acc);}const _0x341818=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x341818),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x341818,0x1));const _0x1612b4=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1612b4),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1612b4,0x1));const _0x584f1c=Array['from'](this['_diffRoots'])['map'](([_0xe4a7b2,_0x35ebd8])=>[_0xe4a7b2,T(_0x35ebd8)]);this['_saveMetaData'](this['_lastTo'],_0x584f1c,this['_markers'],_0x1ee9ea);}['_makeModelFromViewString'](_0x2fd916){const _0x4a2ecc=JSON['parse'](_0x2fd916),_0x47cc52=this['editor']['editing']['view']['document'],_0xe56bb8=new _0x5706e6(_0x47cc52,_0x4a2ecc['map'](_0x558951=>P(_0x558951,this['editor'])));return this['editor']['data']['toModel'](_0xe56bb8);}['_saveMetaData'](_0x1efd9d,_0x265483,_0x51e5eb,_0x34de31){const _0x539824=new Map(_0x265483),_0x16f87d=new Map(_0x2ce503(_0x34de31)),_0x3c7141=new Map();for(const [_0x1ddf43,_0x367f74]of _0x51e5eb)_0x3c7141['set'](_0x1ddf43,{'start':_0x367f74['start']['clone'](),'end':_0x367f74['end']['clone'](),'rootName':_0x367f74['root']['rootName']});this['_savedMetaData']['set'](_0x1efd9d,{'roots':_0x539824,'markers':_0x3c7141,'rootsAttributes':_0x16f87d});}['_removeMetaData'](_0xece554){this['_savedMetaData']['delete'](_0xece554);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x45caab,_0x3bdfad=null){let _0x276687=null;_0x45caab['is']('documentFragment')||(_0x276687=new ut(_0x45caab['name'],{'vid_start':null===_0x3bdfad?this['_revisionId']++:_0x3bdfad++}));const _0x4e5ee5=[];for(const _0xcfa53a of _0x45caab['getChildren']())if(_0xcfa53a['is']('element')){_0x4e5ee5['push'](this['_makeIdsRoot'](_0xcfa53a,_0x3bdfad));const _0x5c4334=_0x4e5ee5[_0x4e5ee5['length']-0x1];null!==_0x3bdfad&&(_0x3bdfad=_0x5c4334['is']('element','$text')?_0x5c4334['getAttribute']('vid')+0x1:_0x5c4334['getAttribute']('vid_end')+0x1);}else{for(let _0x4840da=0x0;_0x4840da<_0xcfa53a['offsetSize'];_0x4840da++)_0x4e5ee5['push'](new ut('$text',{'vid':null===_0x3bdfad?this['_revisionId']++:_0x3bdfad++}));}if(_0x45caab['is']('documentFragment')){const _0x4018ac=F(_0x45caab['rootName']);return _0x4018ac['_insertChild'](0x0,_0x4e5ee5),_0x4018ac;}return _0x276687['_setAttribute']('vid_end',null===_0x3bdfad?this['_revisionId']++:_0x3bdfad++),_0x276687['_insertChild'](0x0,_0x4e5ee5),_0x276687;}['_calculateMetaData'](_0x3dc01c,_0x1fcf8c,_0x350529){this['_reset']();const {roots:_0xcd3f0f,markers:_0x14ea93,rootsAttributes:_0x166d66}=this['_savedMetaData']['get'](_0x3dc01c);this['_baseRoots']=new Map(_0xcd3f0f),this['_baseRootsAttributes']=new Map(_0x2ce503(_0x166d66));for(const [_0x530de4,_0x5f9c86]of this['_baseRoots'])if('$graveyard'!==_0x530de4&&(this['_diffRoots']['set'](_0x530de4,T(_0x5f9c86)),this['_diffRootsAttributes']=new Map(_0x2ce503(_0x166d66)),_0x350529)){const _0x34c249=this['_revisionId'];this['_idsRoots']['set'](_0x530de4,this['_makeIdsRoot'](_0x5f9c86)),this['_baseIdsRoots']['set'](_0x530de4,this['_makeIdsRoot'](_0x5f9c86,_0x34c249));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x350529&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3b1049,_0x214591]of _0x14ea93){const _0x19712=this['_baseRoots']['get'](_0x214591['rootName']),_0x11a4f0=this['_diffRoots']['get'](_0x214591['rootName']),_0x45b470=new ft(this['_fixPosition'](_0x214591['start'],_0x19712),this['_fixPosition'](_0x214591['end'],_0x19712)),_0x25f99a=this['_fixRange'](_0x45b470,_0x11a4f0);_0x19712['markers']['set'](_0x3b1049,_0x45b470),this['_markers']['set'](_0x3b1049,_0x25f99a);}this['_applyOperations'](_0x3dc01c,_0x1fcf8c,_0x350529);}['_applyOperations'](_0x5b9981,_0x163a84,_0x5cddba){for(const _0xaf72c of this['source']['getOperations'](_0x5b9981,_0x163a84))this['_handleOperation'](_0xaf72c,_0x5cddba);for(const _0x2b3964 of this['_diffRoots']['values']())_0x2b3964['markers']['clear']();for(const [_0x182fb0,_0x39c955]of this['_markers']){this['_diffRoots']['get'](_0x39c955['root']['rootName'])['markers']['set'](_0x182fb0,_0x39c955['clone']());}const _0x35797e=new Map(),_0x14fcdc=new Map();for(const [_0x269e00,_0xba0936]of this['_diffRoots'])_0x35797e['set'](_0x269e00,T(_0xba0936)),_0x14fcdc['set'](_0x269e00,this['_diffRootsAttributes']['get'](_0x269e00));this['_saveMetaData'](_0x163a84,_0x35797e,this['_markers'],_0x14fcdc);}['_getPreviousFrom'](_0x20d3e2){const _0xdefaed=Array['from'](this['_savedMetaData']['keys']());_0xdefaed['sort']((_0x330eec,_0x500591)=>_0x330eec-_0x500591),_0xdefaed['reverse']();for(const _0x1a1f19 of _0xdefaed)if(_0x1a1f19<_0x20d3e2)return _0x1a1f19;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2bbf41,_0x48e90d){const _0x58f8ea=Array['from'](_0x48e90d['markers'])['map'](([_0xbc3421,_0x2f17d0])=>[_0xbc3421,this['_fixRange'](_0x2f17d0,_0x2bbf41)]);_0x2bbf41['markers']=new Map(_0x58f8ea);}['_transformMarkers'](_0x3c9144){for(const _0x436e5c of this['_markers']['values']()){const _0x3d74f0=_0x436e5c['getTransformedByOperation'](_0x3c9144),_0x1b59de=ft['_createFromRanges'](_0x3d74f0);_0x436e5c['start']=_0x1b59de['start'],_0x436e5c['end']=_0x1b59de['end'];}}['_handleOperation'](_0x11be14,_0x51ffb8){if('addRoot'!=_0x11be14['type']&&'detachRoot'!=_0x11be14['type']){if('insert'==_0x11be14['type']){const _0x5295f9=_0x11be14['position']['root']['rootName'];this['_diffRoots']['has'](_0x5295f9)||(this['_diffRoots']['set'](_0x5295f9,F(_0x5295f9,!0x0)),this['_diffRootsAttributes']['set'](_0x5295f9,{}),_0x51ffb8&&this['_idsRoots']['set'](_0x5295f9,F(_0x5295f9,!0x0)));}else{if('addRootAttribute'==_0x11be14['type']||'removeRootAttribute'==_0x11be14['type']||'changeRootAttribute'==_0x11be14['type'])return void this['_handleRootAttributeOperation'](_0x11be14);'marker'==_0x11be14['type']&&this['_handleMarkerOperation'](_0x11be14);}if('marker'!==_0x11be14['type']){const _0xc56c50=this['_cloneOperation'](_0x11be14,this['_diffRoots']);_0xc56c50['_execute'](),this['_transformMarkers'](_0xc56c50);}if(_0x51ffb8)switch(_0x11be14['type']){case'insert':this['_handleInsertOperation'](_0x11be14);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x11be14);break;case'merge':this['_handleMergeOperation'](_0x11be14);break;case'split':this['_handleSplitOperation'](_0x11be14);}}else this['_handleRootOperation'](_0x11be14,_0x51ffb8);}['_cloneOperation'](_0x3bdc2b,_0xf93be8){const _0x350cd9=_0x3bdc2b['clone']();return _0x350cd9['_authorId']=_0x3bdc2b['_authorId'],this['_fixOperation'](_0x350cd9,_0xf93be8),_0x350cd9;}['_getBaseVids'](_0x304bc7){return _0x304bc7['map'](_0x5ea095=>{const _0x125143=this['_getVidAttributeName'](_0x5ea095);return Number(_0x5ea095['item']['getAttribute'](_0x125143));});}['_generateTape'](_0x58f5c0,_0x2e355c){if(_0x58f5c0['is']('element','$text'))_0x2e355c['push']({'item':_0x58f5c0,'type':'text'});else{_0x58f5c0['is']('element')&&_0x2e355c['push']({'item':_0x58f5c0,'type':'elementStart'});for(const _0x42d2e6 of _0x58f5c0['getChildren']())this['_generateTape'](_0x42d2e6,_0x2e355c);_0x58f5c0['is']('element')&&_0x2e355c['push']({'item':_0x58f5c0,'type':'elementEnd'});}return _0x2e355c;}['_getState'](){const _0x566bd5=new Map(this['_touched']),_0x4aaead=new Map(_0x566bd5),_0x585fb8=new Map(),_0xe0c338={'insertions':{},'deletions':{}},_0x42c9ab={'insertions':{},'deletions':{}},_0x35fa8a=new Map(),_0x2567c8=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2567c8['delete']('$graveyard');for(const _0x545095 of _0x2567c8){const _0x3c8ab6=this['_diffRoots']['get'](_0x545095)||F(_0x545095,!0x1),_0x52c31b=this['_baseRoots']['get'](_0x545095)||F(_0x545095,!0x1);_0x3c8ab6['isAttached']()||_0x52c31b['isAttached']()?(_0xe0c338['insertions'][_0x545095]=T(_0x3c8ab6),_0xe0c338['deletions'][_0x545095]=T(_0x52c31b),this['_copyMarkers'](_0xe0c338['deletions'][_0x545095],_0x52c31b),this['_copyMarkers'](_0xe0c338['insertions'][_0x545095],_0x3c8ab6),_0x42c9ab['insertions'][_0x545095]=this['_generateTape'](this['_idsRoots']['get'](_0x545095),[]),_0x42c9ab['deletions'][_0x545095]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x545095)||F(_0x545095,!0x1),[])):_0x2567c8['delete'](_0x545095);}for(const _0x527469 of _0x2567c8){const _0x4d3fd5=_0x42c9ab['insertions'][_0x527469];for(const _0x325985 of _0x4d3fd5){const _0x3460dd=this['_getVidAttributeName'](_0x325985),_0x5f1d8c=_0x325985['item']['getAttribute'](_0x3460dd);_0x4aaead['delete'](_0x5f1d8c),_0x5f1d8c>=this['_startingRevisionId']&&_0x585fb8['set'](_0x5f1d8c,_0x566bd5['get'](_0x5f1d8c));}}for(const _0x465630 of _0x2567c8){const _0x1d8241=_0x42c9ab['insertions'][_0x465630],_0x494a25=this['_getBaseVids'](_0x42c9ab['deletions'][_0x465630]);let _0xb1fba4=0x0;for(const _0x456758 of _0x1d8241){const _0x2a315b=this['_getVidAttributeName'](_0x456758),_0x305283=_0x456758['item']['getAttribute'](_0x2a315b);if(!_0x585fb8['has'](_0x305283)&&!_0x35fa8a['has'](_0x305283)){if(_0x4aaead['has'](_0x305283))_0xb1fba4++;else{if(_0x305283!=_0x494a25[_0xb1fba4]){const _0x5c4b4b=_0x566bd5['get'](_0x305283)||_0x566bd5['get'](_0x494a25[_0xb1fba4]);for(;_0x305283!=_0x494a25[_0xb1fba4];)_0x4aaead['has'](_0x494a25[_0xb1fba4])||(_0x35fa8a['set'](_0x494a25[_0xb1fba4],_0x5c4b4b),_0x566bd5['set'](_0x494a25[_0xb1fba4],_0x5c4b4b)),_0xb1fba4++;}_0xb1fba4++;}}}}for(const _0x4ce5c4 of _0x2567c8){const _0x10dbd6=_0x42c9ab['insertions'][_0x4ce5c4];for(const _0x1bccac of _0x10dbd6){const _0x12e5a5=this['_getVidAttributeName'](_0x1bccac),_0x1fcb28=_0x1bccac['item']['getAttribute'](_0x12e5a5);if(_0x35fa8a['has'](_0x1fcb28)){const _0x5d803e=_0x35fa8a['get'](_0x1fcb28);_0x4aaead['has'](_0x1fcb28)||_0x4aaead['set'](_0x1fcb28,{..._0x5d803e}),_0x585fb8['set'](_0x1fcb28,{..._0x5d803e});}}}for(const _0x3f4cfa of _0x4aaead['keys']())_0x3f4cfa>=this['_startingRevisionId']&&_0x4aaead['delete'](_0x3f4cfa);const _0x4be531=new Map();for(const _0x293afd of _0x2567c8){let _0x774433=_0x42c9ab['insertions'][_0x293afd];for(const _0x47790f of _0x774433)if(_0x47790f['item']['is']('element','tableCell')){const _0x570ecd=this['_getVidAttributeName'](_0x47790f),_0xdeab8a=_0x47790f['item']['getAttribute'](_0x570ecd);if(_0x585fb8['has'](_0xdeab8a)){const _0x41aac5=_0x47790f['item']['parent']['parent']['getAttribute']('vid_start'),_0x56f3a5=_0x4be531['get'](_0x41aac5)||new Set();_0x56f3a5['add'](_0x585fb8['get'](_0xdeab8a)['userId']),_0x4be531['set'](_0x41aac5,_0x56f3a5);}}_0x774433=_0x42c9ab['deletions'][_0x293afd];for(const _0x1fe897 of _0x774433)if(_0x1fe897['item']['is']('element','tableCell')){const _0x2c601b=this['_getVidAttributeName'](_0x1fe897),_0x389474=_0x1fe897['item']['getAttribute'](_0x2c601b);if(_0x4aaead['has'](_0x389474)){const _0x1b7f57=_0x1fe897['item']['parent']['parent']['getAttribute']('vid_start'),_0x462e8f=_0x4be531['get'](_0x1b7f57)||new Set();_0x462e8f['add'](_0x4aaead['get'](_0x389474)['userId']),_0x4be531['set'](_0x1b7f57,_0x462e8f);}}for(const _0x407ed3 of _0x4be531['keys']())(_0x585fb8['has'](_0x407ed3)||_0x4aaead['has'](_0x407ed3))&&_0x4be531['delete'](_0x407ed3);}for(const _0x2376f1 of _0x2567c8){const _0x4b80bb=_0x42c9ab['insertions'][_0x2376f1];let _0x1dd9fb=null,_0x190cc1=null;for(const _0x2325c2 of _0x4b80bb){const _0x362505=this['_getVidAttributeName'](_0x2325c2),_0x5aec82=_0x2325c2['item']['getAttribute'](_0x362505),_0x8ccba3=_0x4be531['get'](_0x5aec82);_0x8ccba3&&'elementStart'==_0x2325c2['type']&&(_0x1dd9fb=Array['from'](_0x8ccba3)[0x0],_0x190cc1=_0x2325c2['item']['getAttribute']('vid_end')),_0x1dd9fb&&(_0x4aaead['set'](_0x5aec82,{'userId':_0x1dd9fb}),_0x585fb8['set'](_0x5aec82,{'userId':_0x1dd9fb})),_0x5aec82==_0x190cc1&&(_0x1dd9fb=null,_0x190cc1=null);}}const _0x3fc807={},_0x3be2bd=new Set();for(const _0x473230 of _0x2567c8){const _0x311e01=_0xe0c338['deletions'][_0x473230],_0x5e822c=_0xe0c338['insertions'][_0x473230];for(const {userId:_0x4e900f}of this['_touchedMarkers']['values']())null!==_0x4e900f&&_0x3be2bd['add'](_0x4e900f);for(const {userId:_0x205a7c}of this['_touchedRoots']['values']())null!==_0x205a7c&&_0x3be2bd['add'](_0x205a7c);this['_markChanges'](_0x5e822c,_0x42c9ab['insertions'][_0x473230],_0x585fb8,'insertion',_0x3be2bd),this['_markChanges'](_0x311e01,_0x42c9ab['deletions'][_0x473230],_0x4aaead,'deletion',_0x3be2bd),_0x3fc807[_0x473230]={'insertions':this['_prepareViewToSave'](_0x5e822c),'deletions':this['_prepareViewToSave'](_0x311e01),'attachChange':this['_touchedRoots']['get'](_0x473230)||null,'attributesBefore':_0x2ce503(this['_baseRootsAttributes']['get'](_0x473230))||{},'attributesAfter':_0x2ce503(this['_diffRootsAttributes']['get'](_0x473230))};}return{'diffData':_0x3fc807,'authorsIds':Array['from'](_0x3be2bd)};}['_processRootBeforeSave'](_0x2cc081){for(const [,_0x3f9f38]of _0x2cc081['markers']){const _0x3a53e1=_0x3f9f38['start']['getAncestors']()['filter'](_0x2d10d0=>'tableCell'==_0x2d10d0['name']);for(const _0xa26539 of _0x3a53e1)0x1==_0xa26539['childCount']&&_0xa26539['getChild'](0x0)['is']('element','paragraph')&&_0xa26539['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5eccee){this['_processRootBeforeSave'](_0x5eccee);const _0x2af276=this['editor']['data']['toView'](_0x5eccee,{}),_0x41bf6b=Array['from'](_0x2af276['getChildren']())['map'](_0x4c858d=>this['_getViewJson'](_0x4c858d));return JSON['stringify'](_0x41bf6b);}['_getViewJson'](_0x137a79){if(_0x137a79['is']('$text'))return _0x137a79['data'];{const _0x253186=_0x137a79;return{'type':Object['keys'](E)['find'](_0x3e1a3c=>_0x137a79 instanceof E[_0x3e1a3c]),'name':_0x253186['name'],'attributes':Array['from'](_0x253186['getAttributes']()),'children':Array['from'](_0x253186['getChildren']())['map'](_0x51e21d=>this['_getViewJson'](_0x51e21d))};}}['_markChanges'](_0x4fb247,_0x4f929f,_0x3c2e10,_0x4b9438,_0x1f3876){let _0x29ff77=null,_0xc820cf=null,_0x34e680=0x0;const _0x28c279=this['editor']['model'];for(let _0x307084=0x0;_0x307084<_0x4f929f['length'];_0x307084++){const _0x266e67=this['_getVidAttributeName'](_0x4f929f[_0x307084]),_0x329e65=_0x4f929f[_0x307084]['item']['getAttribute'](_0x266e67),_0xc79675=_0x3c2e10['get'](_0x329e65),_0x171916=_0x307084==_0x4f929f['length']-0x1;(!_0x29ff77&&_0xc79675&&(_0x29ff77=_0xc79675,_0xc820cf=_0x4f929f[_0x307084]),_0x29ff77&&(!_0xc79675||_0xc79675['userId']!=_0x29ff77['userId']))&&(_0x3e202c(_0xc79675,B(_0xc820cf,_0x4fb247,_0x28c279),B(_0x4f929f[_0x307084],_0x4fb247,_0x28c279)),_0x29ff77=_0xc79675||null,_0xc820cf=_0xc79675?_0x4f929f[_0x307084]:null),_0x29ff77&&_0x171916&&_0x3e202c(_0xc79675,B(_0xc820cf,_0x4fb247,_0x28c279),J(_0x4f929f[_0x307084],_0x4fb247,_0x28c279));}function _0x3e202c(_0x479cb6,_0x1504e9,_0x2742e0){const _0x1fa28a=_0x29ff77['userId'],_0x3a593c='revision:'+_0x4b9438+':'+_0x1fa28a+':'+_0x34e680++,_0x510144=_0x28c279['createRange'](_0x1504e9,_0x2742e0);_0x4fb247['markers']['set'](_0x3a593c,_0x510144),null!==_0x1fa28a&&_0x1f3876['add'](_0x1fa28a);}}['_getVidAttributeName'](_0x308f22){switch(_0x308f22['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x29a530,_0x427403){_0x29a530['baseVersion']=null;for(const _0x4eb272 in _0x29a530){const _0x47515a=_0x29a530[_0x4eb272];if(_0x47515a instanceof vt){const _0x393834=_0x427403['get'](_0x47515a['root']['rootName']);_0x29a530[_0x4eb272]=this['_fixPosition'](_0x47515a,_0x393834);}if(_0x47515a instanceof ft){const _0x525a15=_0x427403['get'](_0x47515a['root']['rootName']);_0x29a530[_0x4eb272]=this['_fixRange'](_0x47515a,_0x525a15);}'root'===_0x4eb272&&(_0x29a530['root']=_0x427403['get'](_0x29a530['root']['rootName']));}}['_fixRange'](_0x290007,_0x9be59d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x290007['start'],_0x9be59d),this['_fixPosition'](_0x290007['end'],_0x9be59d));}['_fixPosition'](_0x396a4d,_0x369e4a){return this['editor']['model']['createPositionFromPath'](_0x369e4a,_0x396a4d['path'],_0x396a4d['stickiness']);}['_handleInsertOperation'](_0x224282){const _0x3b32a3=this['_idsRoots']['get'](_0x224282['position']['root']['rootName']),_0x590428=this['_fixPosition'](_0x224282['position'],_0x3b32a3),_0x140d2a=null===_0x224282['_authorId']?null:_0x224282['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x56e516=_0x590428['parent'],_0x3c799d=this['_revisionId'],_0xb486d1=[];for(const _0x16aa49 of _0x224282['nodes'])if(_0x16aa49['is']('element'))_0xb486d1['push'](this['_makeIdsRoot'](_0x16aa49));else{for(let _0x1f38ba=0x0;_0x1f38ba<_0x16aa49['offsetSize'];_0x1f38ba++)_0xb486d1['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x264b7e=this['_revisionId'];for(let _0x4a007f=_0x3c799d;_0x4a007f<_0x264b7e;_0x4a007f++)this['_touched']['set'](_0x4a007f,{'userId':_0x140d2a});_0x56e516['_insertChild'](_0x590428['offset'],_0xb486d1);}['_handleMoveOperation'](_0xb46c6c){(_0xb46c6c=this['_cloneOperation'](_0xb46c6c,this['_idsRoots']))['_execute']();const _0x4643f5=null===_0xb46c6c['_authorId']?null:_0xb46c6c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x250c6a=_0xb46c6c['getMovedRangeStart'](),_0x39cabe=_0x250c6a['parent'],_0x1b668b=_0x250c6a['offset'];!function _0x37fa99(_0x469281,_0x59a3b2,_0x2e7c13,_0x54b12f){for(let _0xe7fb11=_0x2e7c13;_0xe7fb11<_0x54b12f;_0xe7fb11++){const _0x1c020a=_0x59a3b2['getChild'](_0xe7fb11);_0x1c020a['is']('element','$text')?_0x469281['set'](_0x1c020a['getAttribute']('vid'),{'userId':_0x4643f5}):(_0x469281['set'](_0x1c020a['getAttribute']('vid_start'),{'userId':_0x4643f5}),_0x37fa99(_0x469281,_0x1c020a,0x0,_0x1c020a['childCount']),_0x469281['set'](_0x1c020a['getAttribute']('vid_end'),{'userId':_0x4643f5}));}}(this['_touched'],_0x39cabe,_0x1b668b,_0x1b668b+_0xb46c6c['howMany']);}['_handleMergeOperation'](_0x530a7d){const _0x17b55d=null===(_0x530a7d=this['_cloneOperation'](_0x530a7d,this['_idsRoots']))['_authorId']?null:_0x530a7d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x35170f=_0x530a7d['targetPosition']['parent'],_0x494b27=_0x530a7d['sourcePosition']['parent'],_0x1fc8ad=_0x35170f['getAttribute']('vid_end'),_0x562901=_0x494b27['getAttribute']('vid_start');_0x35170f['_setAttribute']('vid_end',_0x494b27['getAttribute']('vid_end')),_0x494b27['_setAttribute']('vid_end',_0x1fc8ad),this['_touched']['set'](_0x562901,{'userId':_0x17b55d}),this['_touched']['set'](_0x1fc8ad,{'userId':_0x17b55d}),_0x530a7d['_execute']();}['_handleSplitOperation'](_0x440392){const _0x1f1006=null===(_0x440392=this['_cloneOperation'](_0x440392,this['_idsRoots']))['_authorId']?null:_0x440392['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x187078=_0x440392['graveyardPosition'],_0x4475b8=_0x440392['splitPosition']['parent'];_0x440392['_execute']();const _0x4aa745=_0x4475b8['getAttribute']('vid_end'),_0x104f6e=_0x440392['insertionPosition']['nodeAfter'];if(_0x187078){const _0x336518=_0x104f6e['getAttribute']('vid_end'),_0x2e90ad=_0x4475b8['getAttribute']('vid_end');_0x4475b8['_setAttribute']('vid_end',_0x336518),_0x104f6e['_setAttribute']('vid_end',_0x2e90ad),this['_touched']['set'](_0x4475b8['getAttribute']('vid_end'),{'userId':_0x1f1006}),this['_touched']['set'](_0x104f6e['getAttribute']('vid_start'),{'userId':_0x1f1006});}else{const _0x14e8c1=this['_revisionId']++,_0xe00b90=this['_revisionId']++;_0x4475b8['_setAttribute']('vid_end',_0x14e8c1),_0x104f6e['_setAttribute']('vid_start',_0xe00b90),_0x104f6e['_setAttribute']('vid_end',_0x4aa745),this['_touched']['set'](_0x14e8c1,{'userId':_0x1f1006}),this['_touched']['set'](_0xe00b90,{'userId':_0x1f1006});}}['_handleMarkerOperation'](_0x1d2558){if(!_0x1d2558['affectsData'])return;const _0x182efc=(_0x1d2558=this['_cloneOperation'](_0x1d2558,this['_diffRoots']))['oldRange']?_0x1d2558['oldRange']['root']:null,_0x525034=_0x1d2558['newRange']?_0x1d2558['newRange']['root']:null;_0x182efc&&this['_markers']['delete'](_0x1d2558['name']),_0x525034&&this['_markers']['set'](_0x1d2558['name'],_0x1d2558['newRange']['clone']());const _0x965d2e=null===_0x1d2558['_authorId']?null:_0x1d2558['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x56d0a4=_0x1d2558['name'];if(!this['_touchedMarkers']['has'](_0x56d0a4))return void this['_touchedMarkers']['set'](_0x56d0a4,{'range':_0x1d2558['oldRange'],'userId':_0x965d2e});const _0x15ce24=this['_touchedMarkers']['get'](_0x56d0a4),_0x3194d8=_0x15ce24['range'],_0x24cf52=_0x1d2558['newRange'];null==_0x3194d8&&null==_0x24cf52||_0x3194d8&&_0x24cf52&&_0x3194d8['isEqual'](_0x24cf52)?this['_touchedMarkers']['delete'](_0x1d2558['name']):_0x15ce24['userId']=_0x965d2e;}['_handleRootOperation'](_0x326c27,_0x49e9d0){this['_diffRoots']['has'](_0x326c27['rootName'])?this['_diffRoots']['get'](_0x326c27['rootName'])['_isAttached']=_0x326c27['isAdd']:(this['_diffRoots']['set'](_0x326c27['rootName'],F(_0x326c27['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x326c27['rootName'],{}),_0x49e9d0&&this['_idsRoots']['set'](_0x326c27['rootName'],F(_0x326c27['rootName'],!0x0)));const _0x202ea4=null===_0x326c27['_authorId']?null:_0x326c27['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e4b87=this['_touchedRoots']['get'](_0x326c27['rootName']);_0x1e4b87&&_0x1e4b87['userId']===_0x202ea4?this['_touchedRoots']['delete'](_0x326c27['rootName']):this['_touchedRoots']['set'](_0x326c27['rootName'],{'userId':_0x202ea4,'isAttached':_0x326c27['isAdd']});}['_handleRootAttributeOperation'](_0x5b48e9){const _0x4c062b=this['_diffRootsAttributes']['get'](_0x5b48e9['root']['rootName']);null===_0x5b48e9['newValue']?delete _0x4c062b[_0x5b48e9['key']]:_0x4c062b[_0x5b48e9['key']]=_0x5b48e9['newValue'];}}function T(_0x851ba6){const _0x5282ac=F(_0x851ba6['rootName'],_0x851ba6['isAttached']());for(const _0x551ca3 of _0x851ba6['getChildren']()){const _0x2b93c0=_0x551ca3['_clone'](!0x0);_0x5282ac['_appendChild'](_0x2b93c0);}return _0x5282ac;}function F(_0x3c26ec,_0x4ace7e=!0x0){const _0x529bb2=new gt();return _0x529bb2['rootName']=_0x3c26ec,_0x529bb2['_isAttached']=_0x4ace7e,_0x529bb2['isAttached']=()=>_0x529bb2['_isAttached'],_0x529bb2;}function B(_0x241466,_0x4641cd,_0x2f0b44){const _0x3aa9d9='elementEnd'==_0x241466['type']?_0x2f0b44['createPositionAt'](_0x241466['item'],'end'):_0x2f0b44['createPositionBefore'](_0x241466['item']);return _0x2f0b44['createPositionFromPath'](_0x4641cd,_0x3aa9d9['path'],_0x3aa9d9['stickiness']);}function J(_0xe12cf8,_0x4c257b,_0x1098bb){const _0x2a5725='elementStart'==_0xe12cf8['type']?_0x1098bb['createPositionAt'](_0xe12cf8['item'],0x0):_0x1098bb['createPositionAfter'](_0xe12cf8['item']);return _0x1098bb['createPositionFromPath'](_0x4c257b,_0x2a5725['path'],_0x2a5725['stickiness']);}class hs extends _0x26db05{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x754e6f,_0x2c6dcc){super(_0x754e6f),this['focusTracker']=new _0x17acf7(),this['keystrokes']=new _0x18933e(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2c6dcc),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x2b4ea3({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1d87c4=_0x5f53a9=>_0x5f53a9['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1d87c4),this['keystrokes']['set']('arrowleft',_0x1d87c4),this['keystrokes']['set']('arrowup',_0x1d87c4),this['keystrokes']['set']('arrowdown',_0x1d87c4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3051d1){this['revisionNameInputView']['fieldView']['element']['value']=_0x3051d1['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x297f1f){const _0x4e9d76=new at(this['locale'],ti),_0x40a319=_0x4e9d76['fieldView'];_0x40a319['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x23ce74=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x297f1f&&(_0x23ce74+='\x20('+m(this['locale'],'optional')+')'),(_0x4e9d76['label']=_0x23ce74,_0x40a319['on']('input',()=>{this['revisionNameInputValue']=_0x40a319['element']['value']['trim']();}),_0x4e9d76);}}class f extends _0x5842cf{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2aa50d=this['editor'],_0x4c7338=_0x2aa50d['plugins']['get']('RevisionTracker');_0x2aa50d['ui']['componentFactory']['add']('revisionHistory',_0x20f3e1=>{const _0x46556c=_0x37a4b1(_0x20f3e1),_0x5ae9bd=_0x46556c['panelView']['children'],_0x49ae98=new _0x4ea422(_0x20f3e1),_0x4cdef8=new te(_0x20f3e1),_0x3de155=new _0x3471d7(_0x20f3e1),_0x461056=new te(_0x20f3e1),_0x1b7dca=new _0x3471d7(_0x20f3e1);return _0x46556c['bind']('isEnabled')['to'](_0x4c7338,'isReady',_0x4c7338,'isEnabled',_0x2aa50d,'isReadOnly',(_0x2ffbb7,_0xac30cb,_0x2280c3)=>_0x2ffbb7&&_0xac30cb&&!_0x2280c3),_0x46556c['buttonView']['set']({'icon':_0x582502,'label':m(_0x20f3e1,'Revision\x20history'),'tooltip':!0x0}),_0x3de155['set']({'label':m(_0x20f3e1,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3de155['bind']('isEnabled')['to'](_0x4c7338,'isReady',_0x4c7338,'isEnabled',_0x2aa50d,'isReadOnly',(_0x358b56,_0x2b9f81,_0x1a682a)=>_0x358b56&&_0x2b9f81&&!_0x1a682a),_0x3de155['on']('execute',()=>this['_showDialog']()),_0x1b7dca['set']({'label':m(_0x20f3e1,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1b7dca['bind']('isEnabled')['to'](_0x4c7338,'isReady',_0x2aa50d,'isReadOnly',(_0x18824e,_0x2b092e)=>_0x18824e&&!_0x2b092e),_0x1b7dca['on']('execute',()=>{_0x2aa50d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x46556c['isOpen']=!0x1,_0x2aa50d['editing']['view']['focus']();}),_0x4cdef8['children']['add'](_0x3de155),_0x461056['children']['add'](_0x1b7dca),_0x49ae98['role']='menu',_0x49ae98['items']['addMany']([_0x4cdef8,_0x461056]),_0x5ae9bd['add'](_0x49ae98),_0x46556c;}),_0x2aa50d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x516520=this['editor'],_0x521eab=_0x516520['locale'],_0x4f9582=new _0x5a78ec(_0x521eab),_0x2f0b97=new _0x2d08e1(_0x521eab);_0x4f9582['buttonView']['set']({'icon':_0x582502,'label':m(_0x521eab,'Revision\x20history')});const _0x199f54=new _0x190d73(_0x521eab,_0x4f9582),_0x27f5fe=new _0x2470d3(_0x521eab);_0x27f5fe['set']({'label':m(_0x521eab,'Save\x20current\x20revision')}),_0x27f5fe['delegate']('execute')['to'](_0x4f9582),_0x27f5fe['on']('execute',()=>{this['_showDialog']();}),_0x199f54['children']['add'](_0x27f5fe),_0x2f0b97['items']['add'](_0x199f54);const _0x1d1273=new _0x190d73(_0x521eab,_0x4f9582),_0x5d8c71=new _0x2470d3(_0x521eab);return _0x5d8c71['set']({'label':m(_0x521eab,'Open\x20revision\x20history')}),_0x5d8c71['delegate']('execute')['to'](_0x4f9582),_0x5d8c71['on']('execute',()=>{_0x516520['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1d1273['children']['add'](_0x5d8c71),_0x2f0b97['items']['add'](_0x1d1273),_0x4f9582['panelView']['children']['add'](_0x2f0b97),_0x4f9582;}['_showDialog'](){const _0x283b2f=this['editor'],_0x561567=_0x283b2f['locale'],_0x28cc9b=_0x283b2f['plugins']['get']('Dialog'),_0x25ac5a=_0x283b2f['plugins']['get']('RevisionTracker');function _0x41d0f2(_0x5d633b){_0x283b2f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5d633b['revisionName']?_0x5d633b['revisionNameInputView']['errorText']=m(_0x561567,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x283b2f['plugins']['get'](u)['saveRevision']({'name':_0x5d633b['revisionName']}),_0x28cc9b['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x41d0f2(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x28cc9b['show']({'id':'revisionSave','title':m(_0x561567,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x283b2f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x28cc9b['hide']()},{'label':m(_0x283b2f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x744900){_0x744900['bind']('isEnabled')['to'](_0x25ac5a,'isReady',_0x25ac5a,'isEnabled',_0x283b2f,'isReadOnly',(_0x8fbb2e,_0xd9703e,_0x3e7b9)=>_0x8fbb2e&&_0xd9703e&&!_0x3e7b9);},'onExecute':()=>_0x41d0f2(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x179d60=this['editor'],_0x21baf0=_0x179d60['locale'];this['_saveRevisionFormView']=new hs(_0x21baf0,_0x179d60['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x26db05{['changeId'];['_model'];constructor(_0x5148e7,_0x3becb8){super(_0x5148e7),this['_model']=_0x3becb8,this['changeId']=_0x3becb8['id'];const _0x5a2b66=this['bindTemplate'],_0x4c4cf2=m(_0x5148e7,_0x3becb8['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3becb8['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3becb8['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5a2b66['to']('type',_0xd74b72=>'ck-revision-change__'+_0xd74b72)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4c4cf2}]},{'text':'\x20'+_0x3becb8['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x54bf85(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2f8876){super(),this['id']=_0x2f8876['id']||_0x16b583(),this['author']=_0x2f8876['author'],this['type']=_0x2f8876['type'],this['data']=_0x2f8876['data']||{},this['rootName']=_0x2f8876['rootName'],this['set']('createdAt',_0x2f8876['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1af846,_0x55aabc){this['newRevisionId']=_0x1af846,this['oldRevisionId']=_0x55aabc,this['changes']=new _0x4f201e();}['_setChanges'](_0x95c5e6){for(const _0x520bea of _0x95c5e6)this['changes']['add'](_0x520bea);}}const Y={'c':_0x5bdcfb,'a':_0x4fd1c3,'e':_0x5c769b,'r':_0x4788b1,'u':_0x53c8a2};class d extends _0x5842cf{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x541130,_0x561ee1,j];}constructor(_0x1356c9){super(_0x1356c9),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4a8883,_0x355bbf,_0x230a84)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x151daf=>{for(const _0x16b424 of this['editor']['editing']['view']['document']['roots'])_0x230a84?_0x151daf['removeClass']('ck-editor__editable__overlay',_0x16b424):_0x151daf['addClass']('ck-editor__editable__overlay',_0x16b424);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x394a4f=>null!==_0x394a4f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x336b51,_0x2659d6,_0x2adca2)=>_0x336b51&&_0x2adca2?_0x2659d6['changes']['getIndex'](_0x2adca2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1bb79a,_0x40a1c2)=>_0x1bb79a?_0x40a1c2['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x561ee1);}['init'](){const _0x2556f1=this['editor'],_0x134a68=new yt(_0x2556f1,{'direction':'backward'}),_0x3fdae4=new yt(_0x2556f1,{'direction':'forward'});(_0x2556f1['commands']['add']('showPreviousChange',_0x134a68),_0x2556f1['commands']['add']('showNextChange',_0x3fdae4),_0x2556f1['commands']['add']('restoreRevision',new _t(_0x2556f1)),this['on']('change:numberOfChanges',()=>{_0x134a68['refresh'](),_0x3fdae4['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2556f1['enableReadOnlyMode']('revision-viewer'),_0x2556f1['plugins']['has']('WidgetToolbarRepository'))&&_0x2556f1['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x31164a){await this['loadRevisionData'](_0x31164a);const _0x279af1={};for(const _0xd1e189 in _0x31164a['diffData']){if(_0x31164a['diffData'][_0xd1e189]['attachChange']&&!_0x31164a['diffData'][_0xd1e189]['attachChange']['isAttached'])continue;const _0x32055f=this['_removeRevisionMarkers'](JSON['parse'](_0x31164a['diffData'][_0xd1e189]['insertions'])),_0x12a67b=this['editor']['editing']['view']['document'],_0x34152b=new _0x5706e6(_0x12a67b,_0x32055f['map'](_0x39a64e=>this['_getViewObj'](_0x39a64e)));this['editor']['data']['processor']['useFillerType']('marked'),_0x279af1[_0xd1e189]=this['editor']['data']['processor']['toData'](_0x34152b),this['editor']['data']['processor']['useFillerType']('default');}return _0x279af1;}async['getRevisionRootsAttributes'](_0x51fe79){await this['loadRevisionData'](_0x51fe79);const _0x2eb8fa={};for(const _0x4db202 in _0x51fe79['diffData'])_0x51fe79['diffData'][_0x4db202]['attachChange']&&!_0x51fe79['diffData'][_0x4db202]['attachChange']['isAttached']||(_0x2eb8fa[_0x4db202]=_0x51fe79['diffData'][_0x4db202]['attributesAfter']||{});return _0x2eb8fa;}['_removeRevisionMarkers'](_0x6ae655){return(_0x6ae655=_0x6ae655['filter'](_0x4f9c69=>!_0x4f9c69['name']||'revision-start'!==_0x4f9c69['name']&&'revision-end'!==_0x4f9c69['name']))['forEach'](_0x513272=>{'string'!=typeof _0x513272&&(_0x513272['children']=this['_removeRevisionMarkers'](_0x513272['children']),_0x513272['attributes']=_0x513272['attributes']['filter'](_0xf69a7b=>!_0xf69a7b[0x0]['startsWith']('data-revision-')));}),_0x6ae655;}async['compare'](_0x191e0e,_0x190f1a,_0x1c65d4=!0x1){if(!this['isEnabled'])return;const _0x37da97=this['diff'],_0x593a6d=this['repository'],_0x383c84='string'==typeof _0x191e0e?_0x593a6d['getRevision'](_0x191e0e):_0x191e0e,_0x557af4='string'==typeof _0x190f1a?_0x593a6d['getRevision'](_0x190f1a):_0x190f1a,_0x258d7a=_0x383c84['id'],_0x5b8231=_0x557af4?_0x557af4['id']:null;if(!_0x1c65d4&&this['diff']&&this['diff']['newRevisionId']===_0x258d7a&&this['diff']['oldRevisionId']===_0x5b8231)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x258d7a,_0x5b8231);const _0x4709eb=this['_getRevisionsRange'](_0x383c84,_0x557af4,!0x0)['map'](_0x52605d=>this['loadRevisionData'](_0x52605d));return _0x4709eb['push'](new Promise(_0x1cd10d=>{setTimeout(_0x1cd10d,0x14);})),Promise['all'](_0x4709eb)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3ab247=this['_getDiff'](_0x258d7a,_0x5b8231);for(const _0x39fd00 of _0x3ab247['changes'])this['_changeIdToChange']['set'](_0x39fd00['id'],_0x39fd00);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x49e21a=>{for(const _0x3bae21 of this['editor']['model']['document']['getRootNames']())_0x49e21a['detachRoot'](_0x3bae21);for(const _0x3b20c8 of Object['keys'](_0x3ab247['model'])){const _0x2fd3cb=_0x49e21a['addRoot'](_0x3b20c8);for(const _0x121a54 of Object['keys'](_0x3ab247['attributes'][_0x3b20c8]))_0x49e21a['setAttribute'](_0x121a54,_0x3ab247['attributes'][_0x3b20c8][_0x121a54],_0x2fd3cb);_0x49e21a['insert'](_0x3ab247['model'][_0x3b20c8],_0x2fd3cb,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3ab247['changes'])),this['isReady']=!0x0;})['catch'](_0x40ed2b=>{console['error'](_0x40ed2b),this['_cleanUp'](),_0x37da97&&(this['diff']=_0x37da97),this['isReady']=!0x0;});}['addRevisionData'](_0x2786eb,_0x210878){const _0x5e66f0=this['repository']['createRevision'](_0x2786eb);return _0x5e66f0['on']('_update',(_0x14d00a,_0x1b40f6,_0x312b35)=>_0x210878(_0x1b40f6,_0x312b35,_0x5e66f0)),this['repository']['addRevision'](_0x5e66f0),_0x5e66f0;}['loadRevisionData'](_0x2ca2a2){if(!_0x2ca2a2||_0x2ca2a2['diffData'])return Promise['resolve']();{const _0x475fc6=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x475fc6,'revisionId':_0x2ca2a2['id']})['then'](_0x150589=>{_0x2ca2a2['_update']({'diffData':_0x150589['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x25a241=>{for(const _0x2563fa of this['editor']['model']['document']['getRootNames']())_0x25a241['detachRoot'](_0x2563fa);});}['_sortAndFilterDiffChanges'](_0x3a0ea5){const _0x47686b=[],_0x146ef6=new Map();for(const _0x1905f0 of this['editor']['model']['document']['getRootNames']()){const _0x2d78fa=this['editor']['editing']['view']['getDomRoot'](_0x1905f0);if(!_0x2d78fa)continue;const _0x4bbb03=_0x2d78fa['getClientRects']()['item'](0x0);_0x4bbb03&&(_0x47686b['push'](_0x1905f0),_0x146ef6['set'](_0x1905f0,_0x4bbb03));}return _0x47686b['sort']((_0xfda7b6,_0xcfb88)=>{const _0x39881d=_0x146ef6['get'](_0xfda7b6),_0x4a3c97=_0x146ef6['get'](_0xcfb88);return _0x39881d['y']-_0x4a3c97['y']||_0x39881d['x']-_0x4a3c97['x'];}),(_0x3a0ea5=_0x3a0ea5['filter'](_0x26a754=>_0x47686b['includes'](_0x26a754['rootName'])))['sort']((_0x3830fc,_0x8b7bcb)=>_0x47686b['indexOf'](_0x3830fc['rootName'])-_0x47686b['indexOf'](_0x8b7bcb['rootName'])),_0x3a0ea5;}['_makeTape'](_0xd742a5){const _0x19be91=Array['from'](_0xd742a5['markers'])['filter'](([_0x25e665,_0x396ce5])=>_0x25e665['startsWith']('revision:')&&!_0x396ce5['isCollapsed']),_0xf5e165=Array['from'](this['editor']['model']['createRangeIn'](_0xd742a5)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x19be91['length'])for(const _0x56735a of _0xf5e165){const [_0x49fc25,_0x48600d]=_0x19be91[0x0],[,_0x94dc5e,_0x1e865d]=_0x49fc25['split'](':');if(_0x48600d['end']['isEqual'](_0x56735a['nextPosition'])&&_0x19be91['shift'](),(_0x56735a['previousPosition']['isEqual'](_0x48600d['start'])||_0x56735a['previousPosition']['isAfter'](_0x48600d['start']))&&('insertion'==_0x94dc5e?_0x56735a['isAdded']={'userId':_0x1e865d}:'deletion'==_0x94dc5e&&(_0x56735a['isRemoved']={'userId':_0x1e865d})),0x0==_0x19be91['length'])break;}return _0xf5e165;}['_refreshStartEndIndex'](_0x4ce56a){const _0x1e0d67=new Map();for(let _0x515a9c=0x0;_0x515a9c<_0x4ce56a['length'];_0x515a9c++)'text'===_0x4ce56a[_0x515a9c]['type']?(_0x4ce56a[_0x515a9c]['item']['startIndex']=_0x515a9c,_0x4ce56a[_0x515a9c]['item']['endIndex']=_0x515a9c):('elementStart'===_0x4ce56a[_0x515a9c]['type']?_0x4ce56a[_0x515a9c]['item']['startIndex']=_0x515a9c:'elementEnd'===_0x4ce56a[_0x515a9c]['type']&&(_0x4ce56a[_0x515a9c]['item']['endIndex']=_0x515a9c),_0x1e0d67['set'](_0x4ce56a[_0x515a9c]['id'],_0x515a9c));for(const _0x41ed08 of _0x1e0d67['values']())'elementStart'===_0x4ce56a[_0x41ed08]['type']?_0x4ce56a[_0x41ed08]['item']['endIndex']=_0x1e0d67['get'](_0x4ce56a[_0x41ed08]['pairId']):'elementEnd'===_0x4ce56a[_0x41ed08]['type']&&(_0x4ce56a[_0x41ed08]['item']['startIndex']=_0x1e0d67['get'](_0x4ce56a[_0x41ed08]['pairId']));}['_processTape'](_0x2e7f66){for(let _0x389dcb=0x0;_0x389dcb<_0x2e7f66['length'];_0x389dcb++){if('elementStart'===_0x2e7f66[_0x389dcb]['type'])_0x2e7f66[_0x389dcb]['item']['startIndex']=_0x389dcb;else{if('elementEnd'===_0x2e7f66[_0x389dcb]['type']){_0x2e7f66[_0x389dcb]['item']['endIndex']=_0x389dcb;const _0x36836b=_0x2e7f66[_0x389dcb]['item']['startIndex'];_0x2e7f66[_0x36836b]['pairId']=_0x2e7f66[_0x389dcb]['id'],_0x2e7f66[_0x389dcb]['pairId']=_0x2e7f66[_0x36836b]['id'];}else _0x2e7f66[_0x389dcb]['item']['startIndex']=_0x389dcb,_0x2e7f66[_0x389dcb]['item']['endIndex']=_0x389dcb,_0x2e7f66[_0x389dcb]['pairId']=null;}_0x2e7f66[_0x389dcb]['markersStart']||(_0x2e7f66[_0x389dcb]['markersStart']=[],_0x2e7f66[_0x389dcb]['markersEnd']=[]);}}['_markInsertions'](_0x4dc57d,_0x2ba330){const _0x585d26=_0x4dc57d['filter'](_0x4e2928=>!_0x4e2928['isAdded']);for(let _0x2821a3=0x0;_0x2821a3<_0x2ba330['length'];_0x2821a3++)_0x2ba330[_0x2821a3]['isAdded']&&(_0x585d26[_0x2821a3]['isAdded']=_0x2ba330[_0x2821a3]['isAdded']);}['_makeModelFromViewString'](_0x537975){const _0x2de2c1=JSON['parse'](_0x537975),_0x536120=this['editor']['editing']['view']['document'],_0x2927e9=new _0x5706e6(_0x536120,_0x2de2c1['map'](_0x182a3f=>this['_getViewObj'](_0x182a3f)));return this['editor']['data']['toModel'](_0x2927e9);}['_getViewObj'](_0x356c67){const _0x485ee9=this['editor']['editing']['view']['document'];if('string'==typeof _0x356c67)return new _0x5da6d8(_0x485ee9,_0x356c67);{const _0x2eab68=_0x356c67['children']['map'](_0x508861=>this['_getViewObj'](_0x508861));return new(Y[_0x356c67['type']]||_0x4ef47b)(_0x485ee9,_0x356c67['name'],_0x356c67['attributes'],_0x2eab68);}}['_getDiff'](_0x34a2aa,_0x47d426=null){const _0x184368=this['repository']['getRevision'](_0x34a2aa),_0x5d0591=_0x47d426?this['repository']['getRevision'](_0x47d426):null,_0x114091=this['_getRevisionsRange'](_0x184368,_0x5d0591),_0x36a56f=_0x114091[_0x114091['length']-0x1],_0x34e4ef=new Map(),_0x46f9d4={'model':{},'attributes':{},'changes':[]},_0x55498d=new Set(),_0xcfb043=new Map();for(let _0x3ccc94=_0x114091['length']-0x1;_0x3ccc94>=0x0;_0x3ccc94--){const _0x78ceed=_0x114091[_0x3ccc94];for(const _0x160c99 of Object['keys'](_0x78ceed['diffData']))if(_0x78ceed['diffData'][_0x160c99]['attachChange']){const _0x2b7637=_0x78ceed['diffData'][_0x160c99]['attachChange'];_0x2b7637['isAttached']?(_0x55498d['add'](_0x160c99),_0xcfb043['has'](_0x160c99)&&_0xcfb043['get'](_0x160c99)['userId']==_0x2b7637['userId']?_0xcfb043['delete'](_0x160c99):_0xcfb043['set'](_0x160c99,_0x2b7637)):_0xcfb043['has'](_0x160c99)?(_0x55498d['delete'](_0x160c99),_0xcfb043['delete'](_0x160c99)):(_0x55498d['add'](_0x160c99),_0xcfb043['set'](_0x160c99,_0x2b7637));}else _0x55498d['add'](_0x160c99);}for(const _0x25d972 of _0x55498d){const _0x565b16=_0xcfb043['has'](_0x25d972)&&!_0xcfb043['get'](_0x25d972)['isAttached'];let _0x454574=_0x565b16?_0x114091['length']-0x1:0x0;const _0x32f11b=_0x565b16?-0x1:0x1;for(;_0x114091[_0x454574];){const _0x1fd215=_0x114091[_0x454574];if(_0x1fd215['diffData'][_0x25d972]){const _0x7bd842=_0x565b16?_0x1fd215['diffData'][_0x25d972]['attributesBefore']:_0x1fd215['diffData'][_0x25d972]['attributesAfter'];_0x46f9d4['attributes'][_0x25d972]=_0x7bd842?_0x2ce503(_0x7bd842):{};break;}_0x454574+=_0x32f11b;}}for(const _0x5cdb40 of _0x114091){_0x5cdb40['model']={};for(const _0x38a4a4 of _0x5cdb40['authors'])_0x34e4ef['set'](_0x38a4a4['id'],_0x38a4a4);for(const _0x3d52ee of _0x55498d){const _0x402f5e=_0x5cdb40['diffData'][_0x3d52ee]?_0x5cdb40['diffData'][_0x3d52ee]['insertions']:'[]',_0x3dd0ec=_0x5cdb40['diffData'][_0x3d52ee]?_0x5cdb40['diffData'][_0x3d52ee]['deletions']:'[]';_0x5cdb40['model'][_0x3d52ee]={'insertions':this['_makeModelFromViewString'](_0x402f5e),'deletions':this['_makeModelFromViewString'](_0x3dd0ec)};}}for(const _0xc2aadc of _0x55498d){let _0x3b782f=null,_0xde821b=0x0;const _0x18b115=new Map(Array['from'](_0x184368['model'][_0xc2aadc]['insertions']['markers'])['filter'](([_0x5c572e])=>!_0x5c572e['startsWith']('revision:')));let _0x18fde0=0x0;for(const _0x5cc04e of _0x114091){const _0x4cfa11=this['_makeTape'](_0x5cc04e['model'][_0xc2aadc]['insertions']);_0x5cc04e==_0x184368?(_0x3b782f=_0x4cfa11,_0xde821b=_0x3b782f['length'],_0x3b782f['forEach'](_0x58ef90=>{_0x58ef90['id']=_0x18fde0++;}),this['_processTape'](_0x3b782f)):this['_markInsertions'](_0x3b782f,_0x4cfa11);const _0xd7e885=_0x3b782f['filter'](_0x550330=>!_0x550330['isAdded'])['map'](_0x3eb13b=>_0x3eb13b['id']);let _0x7fee41=0x0;const _0x4165fd=this['_makeTape'](_0x5cc04e['model'][_0xc2aadc]['deletions']);_0x4165fd['forEach'](_0x141eba=>{_0x141eba['isRemoved']?_0x141eba['id']=_0xde821b++:_0x141eba['id']=_0xd7e885[_0x7fee41++];}),this['_processTape'](_0x4165fd),this['_setDistance'](_0x3b782f,'isAdded'),this['_setDistance'](_0x4165fd,'isRemoved'),_0x5cc04e==_0x184368&&this['_markMarkers'](_0x3b782f,_0x18b115),_0x3b782f=this['_joinTapes'](_0x3b782f,_0x4165fd),this['_refreshStartEndIndex'](_0x3b782f),this['_setDistance'](_0x3b782f,'isRemoved');}_0x3b782f=_0x3b782f['filter'](_0x3a7776=>!(_0x3a7776['isAdded']&&_0x3a7776['isRemoved']));const _0x2e4901=new Map(_0x36a56f['model'][_0xc2aadc]['deletions']['markers']),_0x5a4b5d=new Set(_0x18b115['keys']());for(const _0x26dc19 of _0x2e4901['keys']())_0x5a4b5d['delete'](_0x26dc19);this['_markSuggestions'](_0x3b782f,_0x5a4b5d),this['_fixObsoleteTags'](_0x3b782f),_0x3b782f=this['_removeMissingPairs'](_0x3b782f),_0x3b782f=this['_markMismatchedRemovedTags'](_0x3b782f),_0x3b782f=this['_removeUnsupportedChanges'](_0x3b782f);const {root:_0x143076,changes:_0x29642b}=this['_makeModelFromTape'](_0x3b782f,_0x34e4ef,_0xc2aadc);_0x46f9d4['model'][_0xc2aadc]=_0x143076;const _0x589552=_0xcfb043['get'](_0xc2aadc);if(_0x589552){const _0x3d3e32=_0x34e4ef['get'](_0x589552['userId']),_0x48e76d=new r({'author':_0x3d3e32,'type':_0x589552['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xc2aadc});_0x29642b['unshift'](_0x48e76d),_0x46f9d4['attributes'][_0xc2aadc]['revisionHistoryAttachChange']=_0x48e76d['id'];}_0x46f9d4['changes']=_0x46f9d4['changes']['concat'](_0x29642b);}return _0x46f9d4;}['_markMarkers'](_0x417baa,_0x25993a){for(let _0x3df58b=0x0;_0x3df58b<_0x417baa['length'];_0x3df58b++)for(const [_0x2ac4f8,_0x57913a]of _0x25993a)_0x57913a['start']['isEqual'](_0x417baa[_0x3df58b]['previousPosition'])&&_0x417baa[_0x3df58b]['markersStart']['push'](_0x2ac4f8),_0x57913a['end']['isEqual'](_0x417baa[_0x3df58b]['nextPosition'])&&_0x417baa[_0x3df58b]['markersEnd']['push'](_0x2ac4f8);}['_joinTapes'](_0x123d08,_0x5132af){let _0x25dee4=[],_0x3a0c6d=0x0,_0x429648=0x0;for(;_0x3a0c6d<_0x123d08['length']||_0x429648<_0x5132af['length'];){const _0x3a1318=_0x123d08[_0x3a0c6d]||{},_0xd98e2c=_0x5132af[_0x429648]||{};if(_0x3a1318['id']==_0xd98e2c['id'])_0x3a0c6d++,_0x429648++,_0x25dee4['push'](_0x3a1318);else{if(_0xd98e2c['isRemoved']&&_0x3a1318['isAdded']){const {commonTape:_0x2f206b,iEnd:_0x51234c,jEnd:_0xf703d6}=this['_threeWayMerge'](_0x123d08,_0x3a0c6d,_0x5132af,_0x429648);_0x25dee4=_0x25dee4['concat'](_0x2f206b),_0x3a0c6d=_0x51234c,_0x429648=_0xf703d6;}else _0xd98e2c['isRemoved']?(_0x429648++,_0x25dee4['push'](_0xd98e2c)):(_0x3a0c6d++,_0x25dee4['push'](_0x3a1318));}}return _0x25dee4;}['_markSuggestions'](_0xf1431f,_0x52578e){const _0x2e32d3=[];for(let _0x128f19=0x0;_0x128f19<_0xf1431f['length'];_0x128f19++){for(let _0x1bb7e7=0x0;_0x1bb7e7<_0xf1431f[_0x128f19]['markersStart']['length'];_0x1bb7e7++){const _0x32d663=_0xf1431f[_0x128f19]['markersStart'][_0x1bb7e7];if(!_0x52578e['has'](_0x32d663))continue;const {group:_0x2eb477,type:_0x379c08,authorId:_0xedc35a}=_0xdc6fa6(_0x32d663);'revision-suggestion'!=_0x2eb477||'insertion'!=_0x379c08&&'deletion'!=_0x379c08||(_0x2e32d3['unshift']({'type':_0x379c08,'name':_0x32d663,'userId':_0xedc35a}),_0xf1431f[_0x128f19]['markersStart']['splice'](_0x1bb7e7,0x1),_0x1bb7e7--);}_0x536c34(_0xf1431f[_0x128f19]);for(let _0xa5a3ff=0x0;_0xa5a3ff<_0xf1431f[_0x128f19]['markersEnd']['length'];_0xa5a3ff++){const _0x5d585f=_0xf1431f[_0x128f19]['markersEnd'][_0xa5a3ff];if(!_0x52578e['has'](_0x5d585f))continue;const {group:_0x4c4b07,type:_0xd8118b}=_0xdc6fa6(_0x5d585f);if('revision-suggestion'!=_0x4c4b07||'insertion'!=_0xd8118b&&'deletion'!=_0xd8118b)continue;_0xf1431f[_0x128f19]['markersEnd']['splice'](_0xa5a3ff,0x1),_0xa5a3ff--;const _0x71e5f4=_0x2e32d3['findIndex'](_0x151d15=>_0x151d15['name']==_0x5d585f);_0x71e5f4>-0x1&&_0x2e32d3['splice'](_0x71e5f4,0x1);}}function _0xdc6fa6(_0x17107c){const _0x48ca14=_0x17107c['split'](':');return{'group':_0x48ca14[0x0],'type':_0x48ca14[0x1],'subType':_0x48ca14['length']>=0x5?_0x48ca14[0x2]:null,'id':_0x48ca14['length']<0x5?_0x48ca14[0x2]:_0x48ca14[0x3],'authorId':_0x48ca14['length']<0x5?_0x48ca14[0x3]:_0x48ca14[0x4],'markerCount':0x6==_0x48ca14['length']?_0x48ca14[0x5]:null};}function _0x536c34(_0x5dbba0){for(let _0xf80a43=0x0;_0xf80a43<_0x2e32d3['length'];_0xf80a43++){if(_0x5dbba0['isAdded']&&'insertion'==_0x2e32d3[_0xf80a43]['type'])return _0x5dbba0['isAddSuggestion']=_0x2e32d3[_0xf80a43],void delete _0x5dbba0['isAdded'];if(!_0x5dbba0['isAdded']&&!_0x5dbba0['isRemoved']&&'deletion'==_0x2e32d3[_0xf80a43]['type'])return void(_0x5dbba0['isRemoveSuggestion']=_0x2e32d3[_0xf80a43]);}}}['_setDistance'](_0x46a4c9,_0x48edf0){let _0x4ab201=0x0,_0x193d3f=!0x1;const _0x139f6d=new Map();for(const _0x2d8482 of _0x46a4c9)_0x2d8482[_0x48edf0]?_0x193d3f&&(_0x4ab201++,_0x193d3f=!0x1):(_0x4ab201++,_0x193d3f=!0x0),_0x139f6d['set'](_0x2d8482['id'],_0x4ab201);for(let _0xa666db=0x0;_0xa666db<_0x46a4c9['length'];_0xa666db++){if('isRemoved'==_0x48edf0&&_0x46a4c9[_0xa666db]['isAdded']||'isAdded'==_0x48edf0&&_0x46a4c9[_0xa666db]['isRemoved'])continue;if('text'==_0x46a4c9[_0xa666db]['type']){_0x46a4c9[_0xa666db]['distance']=0x0;continue;}const _0x5f2a1e=_0x139f6d['get'](_0x46a4c9[_0xa666db]['pairId']),_0x4f937e=_0x139f6d['get'](_0x46a4c9[_0xa666db]['id']);_0x46a4c9[_0xa666db]['distance']=_0x5f2a1e-_0x4f937e;}}['_getRevisionsRange'](_0x5bf96d,_0x3cf98b,_0x4c57f0=!0x1){const _0x42267d=[];let _0x383ed7=this['repository']['getIndex'](_0x5bf96d),_0x2096fb=this['repository']['getIndex'](_0x3cf98b);for(-0x1==_0x2096fb&&(_0x2096fb=this['repository']['_revisions']['length'],_0x4c57f0=!0x1);_0x383ed7<_0x2096fb;)_0x42267d['push'](this['repository']['getRevision'](_0x383ed7)),_0x383ed7++;return _0x4c57f0&&_0x42267d['push'](this['repository']['getRevision'](_0x383ed7)),_0x42267d;}['_threeWayMerge'](_0x4d9a61,_0x1d4810,_0x44ce8b,_0x42cf10){const _0x36a40e=this['editor']['model']['schema'];let _0x160449=_0x1d4810;for(;_0x4d9a61[_0x160449]&&_0x4d9a61[_0x160449]['isAdded'];)_0x160449++;let _0x4f6a46=_0x42cf10;for(;_0x44ce8b[_0x4f6a46]&&_0x44ce8b[_0x4f6a46]['isRemoved'];)_0x4f6a46++;_0x5288d6(_0x4d9a61,_0x1d4810,_0x160449),_0x5288d6(_0x44ce8b,_0x42cf10,_0x4f6a46);const _0x3f5f28=_0x44ce8b['slice'](_0x42cf10,_0x4f6a46)['concat'](_0x4d9a61['slice'](_0x1d4810,_0x160449));return _0x3f5f28['sort']((_0x4e6de3,_0x56a6ac)=>_0x4e6de3['side']!=_0x56a6ac['side']?_0x4e6de3['side']-_0x56a6ac['side']:_0x4e6de3['level']!=_0x56a6ac['level']?_0x4e6de3['level']-_0x56a6ac['level']:_0x4e6de3['distance']!=_0x56a6ac['distance']?_0x56a6ac['distance']-_0x4e6de3['distance']:!!_0x4e6de3['isAdded']!=!!_0x56a6ac['isAdded']?-0x1==_0x4e6de3['side']||0x0==_0x4e6de3['side']?_0x4e6de3['isAdded']?-0x1:0x1:_0x4e6de3['isAdded']?0x1:-0x1:_0x4e6de3['index']-_0x56a6ac['index']),{'commonTape':_0x3f5f28,'iEnd':_0x160449,'jEnd':_0x4f6a46};function _0x5288d6(_0x85e0b6,_0x48365e,_0x13beee){let _0x33eb24=-0x1,_0x199050=Number['POSITIVE_INFINITY'],_0x531f38=!0x0;for(let _0x2ada2d=_0x48365e;_0x2ada2d<_0x13beee;_0x2ada2d++)if(_0x36a40e['isInline'](_0x85e0b6[_0x2ada2d]['item'])||(_0x531f38=!0x1),_0x85e0b6[_0x2ada2d]['item']['startIndex']<_0x48365e&&(_0x33eb24=_0x2ada2d),_0x85e0b6[_0x2ada2d]['item']['endIndex']>=_0x13beee){_0x199050=_0x2ada2d;break;}_0x531f38&&(_0x33eb24=_0x13beee-0x1);for(let _0x4b7bf2=_0x48365e;_0x4b7bf2<_0x13beee;_0x4b7bf2++)_0x85e0b6[_0x4b7bf2]['side']=_0x4b7bf2<=_0x33eb24?-0x1:_0x4b7bf2<_0x199050?0x0:0x1,_0x85e0b6[_0x4b7bf2]['index']=_0x4b7bf2;let _0x4e8330=0x0;for(let _0x38a8f5=_0x48365e;_0x38a8f5<=_0x33eb24;_0x38a8f5++)0x0==_0x85e0b6[_0x38a8f5]['distance']?_0x85e0b6[_0x38a8f5]['level']=_0x4e8330:(_0x4e8330++,_0x85e0b6[_0x38a8f5]['level']=_0x4e8330,_0x4e8330++);for(let _0x4eba42=_0x48365e;_0x4eba42<_0x13beee;_0x4eba42++)0x0==_0x85e0b6[_0x4eba42]['side']&&(_0x85e0b6[_0x4eba42]['level']=_0x4e8330);_0x4e8330=0x0;for(let _0x318537=_0x13beee-0x1;_0x318537>=_0x199050;_0x318537--)0x0==_0x85e0b6[_0x318537]['distance']?_0x85e0b6[_0x318537]['level']=_0x4e8330:(_0x4e8330--,_0x85e0b6[_0x318537]['level']=_0x4e8330,_0x4e8330--);}}['_fixObsoleteTags'](_0x22ea2d){const _0x5cb83c=new Map(),_0x33e0f6=this['editor']['model']['schema'];for(let _0x4f6a97=0x1;_0x4f6a97<_0x22ea2d['length'];_0x4f6a97++){let _0x298c08,_0x4811ab,_0x434955;const _0x5db0c3=_0x22ea2d[_0x4f6a97],_0x26ed12=_0x22ea2d[_0x4f6a97-0x1];if('text'==_0x5db0c3['type'])continue;if(_0x5db0c3['type']!=_0x26ed12['type'])continue;if(!_0x33e0f6['isBlock'](_0x26ed12['item'])||_0x33e0f6['isLimit'](_0x26ed12['item']))continue;if(!_0x33e0f6['isBlock'](_0x5db0c3['item'])||_0x33e0f6['isLimit'](_0x5db0c3['item']))continue;if((_0x22ea2d[_0x4f6a97]['isAdded']||_0x22ea2d[_0x4f6a97]['isAddSuggestion'])&&_0x22ea2d[_0x4f6a97-0x1]['isRemoved'])_0x298c08=_0x22ea2d[_0x4f6a97],_0x4811ab=_0x22ea2d[_0x4f6a97-0x1],_0x434955=_0x4f6a97-0x1;else{if(!_0x22ea2d[_0x4f6a97]['isRemoved']||!_0x22ea2d[_0x4f6a97-0x1]['isAdded']&&!_0x22ea2d[_0x4f6a97-0x1]['isAddSuggestion'])continue;_0x298c08=_0x22ea2d[_0x4f6a97-0x1],_0x4811ab=_0x22ea2d[_0x4f6a97],_0x434955=_0x4f6a97;}const _0x38df84=_0x298c08['level']==_0x4811ab['level'],_0xa3e0ab=Math['abs'](_0x298c08['level'])<Math['abs'](_0x4811ab['level'])&&0x0==_0x4811ab['distance'];(_0x38df84||_0xa3e0ab)&&(_0x5cb83c['set'](_0x4811ab['id'],_0x298c08['id']),_0x22ea2d['splice'](_0x434955,0x1),_0x4f6a97--,_0x298c08['isAdded']=!0x1);}for(let _0xf23856=0x0;_0xf23856<_0x22ea2d['length'];_0xf23856++)_0x5cb83c['has'](_0x22ea2d[_0xf23856]['pairId'])&&(_0x22ea2d[_0xf23856]['pairId']=_0x5cb83c['get'](_0x22ea2d[_0xf23856]['pairId']));}['_removeMissingPairs'](_0x213839){const _0x3afa6c=new Set(_0x213839['map'](_0x4a8ce9=>_0x4a8ce9['id']));for(let _0x8ca994=0x0;_0x8ca994<_0x213839['length'];_0x8ca994++)_0x3afa6c['has'](_0x213839[_0x8ca994]['pairId'])||0x0==_0x213839[_0x8ca994]['distance']||(_0x213839[_0x8ca994]['isIncorrect']=!0x0);return _0x213839['filter'](_0x5ebdb5=>!_0x5ebdb5['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1332d7){const _0x535b24=new Set();for(let _0x766c7d=0x0;_0x766c7d<_0x1332d7['length'];_0x766c7d++){if(_0x535b24['has'](_0x1332d7[_0x766c7d]['id'])&&_0x1332d7[_0x766c7d]['isRemoved']&&(_0x1332d7[_0x766c7d]['isIncorrect']=!0x0),_0x1332d7[_0x766c7d]['isIncorrect'])continue;if(0x0==_0x1332d7[_0x766c7d]['distance'])continue;if('elementStart'!=_0x1332d7[_0x766c7d]['type'])continue;if(null==_0x1332d7[_0x766c7d]['pairId'])continue;let _0x4f8f5b=_0x766c7d+0x1,_0x3993e1=0x0;for(;_0x1332d7[_0x4f8f5b]['id']!=_0x1332d7[_0x766c7d]['pairId'];)'elementStart'==_0x1332d7[_0x4f8f5b]['type']?_0x3993e1++:'elementEnd'==_0x1332d7[_0x4f8f5b]['type']&&_0x3993e1--,_0x4f8f5b++;if(0x0!=_0x3993e1){if(_0x1332d7[_0x766c7d]['isRemoved'])_0x1332d7[_0x766c7d]['isIncorrect']=!0x0;else{for(;_0x4f8f5b!=_0x766c7d;)_0x1332d7[_0x4f8f5b]['isRemoved']&&0x0!=_0x1332d7[_0x4f8f5b]['distance']&&(_0x1332d7[_0x4f8f5b]['isIncorrect']=!0x0,_0x535b24['add'](_0x1332d7[_0x4f8f5b]['pairId'])),_0x4f8f5b--;}}}return _0x1332d7['filter'](_0x393ba8=>!_0x393ba8['isIncorrect']);}['_removeUnsupportedChanges'](_0x5675d7){const _0x22837b=this['editor']['model']['schema'];for(let _0x549ff4=0x0;_0x549ff4<_0x5675d7['length'];_0x549ff4++){if(!(_0x5675d7[_0x549ff4]['isAdded']||_0x5675d7[_0x549ff4]['isAddSuggestion']||_0x5675d7[_0x549ff4]['isRemoved']||_0x5675d7[_0x549ff4]['isRemoveSuggestion']))continue;if(0x0==_0x5675d7[_0x549ff4]['distance'])continue;const _0x3a4638=_0x5675d7[_0x549ff4]['item'];_0x22837b['isBlock'](_0x3a4638)||_0x22837b['isLimit'](_0x3a4638)||(_0x5675d7[_0x549ff4]['isAdded']&&delete _0x5675d7[_0x549ff4]['isAdded'],_0x5675d7[_0x549ff4]['isAddSuggestion']&&delete _0x5675d7[_0x549ff4]['isAddSuggestion'],_0x5675d7[_0x549ff4]['isRemoveSuggestion']&&delete _0x5675d7[_0x549ff4]['isRemoveSuggestion'],_0x5675d7[_0x549ff4]['isRemoved']&&(_0x5675d7[_0x549ff4]['isIncorrect']=!0x0));}return _0x5675d7['filter'](_0x34b58d=>!_0x34b58d['isIncorrect']);}['_makeModelFromTape'](_0x3fc186,_0x40f96d,_0x1a3beb){const _0xd4d2b7=new gt(),_0x5e4d6b=[],_0x39ffd8=new Map(),_0x5e1091=this['editor']['model'],_0x49000b=_0x5e1091['schema'],_0x43b563=[_0xd4d2b7],_0x41f54b={},_0x4ee6ea={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x113921=null;const _0x3bbf67=[0x0];for(let _0x22deca=0x0;_0x22deca<_0x3fc186['length'];_0x22deca++)if('elementStart'===_0x3fc186[_0x22deca]['type']){_0x3fc186[_0x22deca]['previousPosition']=_0x5e1091['createPositionFromPath'](_0xd4d2b7,_0x3bbf67);const _0x5d3bde=new ut(_0x3fc186[_0x22deca]['item']['name'],_0x3fc186[_0x22deca]['item']['getAttributes']());_0x43b563[0x0]['_appendChild'](_0x5d3bde),_0x3bbf67['push'](0x0),_0x43b563['unshift'](_0x5d3bde),_0x3fc186[_0x22deca]['nextPosition']=_0x5e1091['createPositionFromPath'](_0xd4d2b7,_0x3bbf67);}else'elementEnd'===_0x3fc186[_0x22deca]['type']?(_0x43b563['shift'](),_0x3fc186[_0x22deca]['previousPosition']=_0x5e1091['createPositionFromPath'](_0xd4d2b7,_0x3bbf67),_0x3bbf67['pop'](),_0x3bbf67[_0x3bbf67['length']-0x1]++,_0x3fc186[_0x22deca]['nextPosition']=_0x5e1091['createPositionFromPath'](_0xd4d2b7,_0x3bbf67)):(_0x3fc186[_0x22deca]['previousPosition']=_0x5e1091['createPositionFromPath'](_0xd4d2b7,_0x3bbf67),_0x113921?_0x113921['_data']+=_0x3fc186[_0x22deca]['item']['data']:_0x113921=new wt(_0x3fc186[_0x22deca]['item']['data'],_0x3fc186[_0x22deca]['item']['getAttributes']()),_0x3fc186[_0x22deca+0x1]&&'text'===_0x3fc186[_0x22deca+0x1]['type']&&_0x54dcd1(_0x113921,_0x3fc186[_0x22deca+0x1]['item'])||(_0x43b563[0x0]['_appendChild'](_0x113921),_0x113921=null),_0x3bbf67[_0x3bbf67['length']-0x1]+=_0x3fc186[_0x22deca]['item']['offsetSize'],_0x3fc186[_0x22deca]['nextPosition']=_0x5e1091['createPositionFromPath'](_0xd4d2b7,_0x3bbf67));for(let _0x2a473f=0x0;_0x2a473f<_0x3fc186['length'];_0x2a473f++){const _0x772e37=_0x3fc186[_0x2a473f]['previousPosition'],_0x28f26b=_0x3fc186[_0x2a473f]['nextPosition'];for(const _0x2a6351 of _0x3fc186[_0x2a473f]['markersStart'])_0x39ffd8['set'](_0x2a6351,{'start':_0x772e37,'end':null});_0x3f0ce2('isRemoveSuggestion',_0x2a473f,_0x772e37,_0x28f26b),_0x3f0ce2('isAddSuggestion',_0x2a473f,_0x772e37,_0x28f26b),_0x3f0ce2('isRemoved',_0x2a473f,_0x772e37,_0x28f26b),_0x3f0ce2('isAdded',_0x2a473f,_0x772e37,_0x28f26b);for(const _0xb53026 of _0x3fc186[_0x2a473f]['markersEnd']){_0x39ffd8['get'](_0xb53026)['end']=_0x28f26b;}}for(const [_0x5ad20e,_0x2bf1a5]of _0x39ffd8){const _0xe1945c=this['editor']['model']['createRange'](_0x2bf1a5['start'],_0x2bf1a5['end']);_0xd4d2b7['markers']['set'](_0x5ad20e,_0xe1945c);}return _0x5e4d6b['sort']((_0x46fd24,_0x500506)=>{const _0x322b8b=_0xd4d2b7['markers']['get']('revision:'+_0x46fd24['id']),_0xe30ef0=_0xd4d2b7['markers']['get']('revision:'+_0x500506['id']);return _0x322b8b['start']['isBefore'](_0xe30ef0['start'])?-0x1:_0x322b8b['start']['isAfter'](_0xe30ef0['start'])?0x1:_0x322b8b['end']['isBefore'](_0xe30ef0['end'])?-0x1:_0x322b8b['end']['isAfter'](_0xe30ef0['end'])?0x1:'add'===_0x46fd24['type']?-0x1:0x1;}),{'root':_0xd4d2b7,'changes':_0x5e4d6b};function _0x3f0ce2(_0x1b7218,_0x5b5467,_0x195f08,_0x1f20ed){const _0x434b62=!!_0x3fc186[_0x5b5467][_0x1b7218],_0x4664c8=_0x434b62?_0x3fc186[_0x5b5467][_0x1b7218]['userId']:null,_0x10530e=_0x5b5467===_0x3fc186['length']-0x1,_0x42ba2a=_0x4ee6ea[_0x1b7218][0x0],_0x4a1150=_0x49000b['isObject'](_0x3fc186[_0x5b5467]['item']);!_0x41f54b[_0x1b7218]&&_0x434b62?_0x41f54b[_0x1b7218]={'start':_0x195f08,'tapeItem':_0x3fc186[_0x5b5467],'userId':_0x4664c8,'type':_0x1b7218}:_0x41f54b[_0x1b7218]&&!_0x434b62?(_0x41f54b[_0x1b7218]['end']=_0x195f08,_0x5a0ec7(_0x41f54b[_0x1b7218]),_0x41f54b[_0x1b7218]=null):_0x41f54b[_0x1b7218]&&_0x434b62&&_0x41f54b[_0x1b7218]['userId']!==_0x4664c8&&(_0x41f54b[_0x1b7218]['end']=_0x195f08,_0x42ba2a&&_0x42ba2a['userId']===_0x41f54b[_0x1b7218]['userId']||_0x5a0ec7(_0x41f54b[_0x1b7218]),_0x41f54b[_0x1b7218]={'start':_0x195f08,'tapeItem':_0x3fc186[_0x5b5467],'userId':_0x4664c8,'type':_0x1b7218}),_0x41f54b[_0x1b7218]&&_0x4a1150&&('elementStart'!==_0x3fc186[_0x5b5467]['type']||_0x42ba2a&&_0x42ba2a['userId']===_0x4664c8||_0x4ee6ea[_0x1b7218]['unshift']({'userId':_0x4664c8,'object':_0x3fc186[_0x5b5467]['item'],'change':_0x41f54b[_0x1b7218]}),'elementEnd'===_0x3fc186[_0x5b5467]['type']&&_0x42ba2a&&_0x42ba2a['object']===_0x3fc186[_0x5b5467]['item']&&(_0x4ee6ea[_0x1b7218]['shift'](),_0x41f54b[_0x1b7218]=_0x42ba2a['change'])),_0x41f54b[_0x1b7218]&&_0x10530e&&(_0x41f54b[_0x1b7218]['end']=_0x1f20ed,_0x5a0ec7(_0x41f54b[_0x1b7218]),_0x41f54b[_0x1b7218]=null);}function _0x5a0ec7({start:_0x1d5482,end:_0x36fa5b,tapeItem:_0x50057f,userId:_0x3ffc1c,type:_0x304662}){const _0x596d7a=_0x50057f['item'],_0x23ea79=_0x5e1091['schema']['isBlock'](_0x596d7a)&&!_0x5e1091['schema']['isLimit'](_0x596d7a),_0x3ad62e=_0x1d5482['nodeAfter']==_0x36fa5b['parent']&&_0x36fa5b['isAtStart'];if(_0x23ea79&&_0x3ad62e)return;const _0x44f1a5=_0x5e1091['createRange'](_0x1d5482,_0x36fa5b),_0x12266d=_0x40f96d['get'](_0x3ffc1c),_0x287115=new r({'author':_0x12266d,'type':'isAdded'==_0x304662||'isAddSuggestion'==_0x304662?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x304662||'isRemoveSuggestion'==_0x304662},'createdAt':new Date(),'rootName':_0x1a3beb});_0x5e4d6b['push'](_0x287115),_0xd4d2b7['markers']['set']('revision:'+_0x287115['id'],_0x44f1a5);}function _0x54dcd1(_0xfb7c1b,_0x2e5733){const _0x2b3779=_0xfb7c1b['getAttributes'](),_0x42fd7e=_0x2e5733['getAttributes']();for(const _0x245fae of _0x2b3779){if(_0x245fae[0x1]!==_0x2e5733['getAttribute'](_0x245fae[0x0]))return!0x1;_0x42fd7e['next']();}return _0x42fd7e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5cb51c=>{const _0x1c19a1=_0x5cb51c['markerName']['split'](':')[0x1],_0x5432e2=this['_getChangeFromId'](_0x1c19a1);if(!_0x5432e2)return null;const _0x1ff27b='add'==_0x5432e2['type']?'insertion':'deletion',_0x24e9e7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1ff27b];return _0x5432e2['data']['isSuggestion']&&_0x24e9e7['push']('ck-suggestion-marker-'+_0x1ff27b+'-new'),this['activeChange']==_0x5432e2&&_0x24e9e7['push']('ck-suggestion-marker--active'),{'classes':_0x24e9e7,'attributes':{'data-change-id':_0x1c19a1}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x55b30d=>{_0x55b30d['on']('element:pre',(_0x337bcf,_0x5f1356,_0x248e54)=>{const _0x309fc2=_0x5f1356['viewItem']['getChild'](0x0);if(!_0x309fc2||!_0x309fc2['is']('element','code'))return;if(!_0x248e54['consumable']['consume'](_0x309fc2,{'attributes':['vid_start','vid_end']}))return;const _0x2e92ef=_0x5f1356['modelRange']['start']['nodeAfter'];_0x248e54['writer']['setAttribute']('vid_start',_0x309fc2['getAttribute']('vid_start'),_0x2e92ef),_0x248e54['writer']['setAttribute']('vid_end',_0x309fc2['getAttribute']('vid_end'),_0x2e92ef);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x57cc5d=>{_0x57cc5d['on']('element',(_0x5ce7a8,_0x2b491a,_0x38803d)=>{if(!_0x38803d['consumable']['consume'](_0x2b491a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2b491a['modelRange']['isCollapsed'])return;const _0x4d9d93=_0x2b491a['modelRange']['start']['nodeAfter'];_0x4d9d93['hasAttribute']('vid_start')||_0x4d9d93['hasAttribute']('vid')||(_0x38803d['writer']['setAttribute']('vid_start',_0x2b491a['viewItem']['getAttribute']('vid_start'),_0x4d9d93),_0x38803d['writer']['setAttribute']('vid_end',_0x2b491a['viewItem']['getAttribute']('vid_end'),_0x4d9d93));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xccd77b=>_0xccd77b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xa5b286,[,_0x206562])=>{['vid_start','vid_end','vid']['includes'](_0x206562)&&(_0xa5b286['return']=!0x0,_0xa5b286['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x200240=>{_0x200240['on']('attribute:vid',(_0x1e587d,_0x4bf1bf,_0x971568)=>{if('\x20'!=_0x4bf1bf['item']['data']||_0x4bf1bf['item']['parent']['maxOffset']>0x1)return;if(!_0x971568['consumable']['consume'](_0x4bf1bf['item'],_0x1e587d['name']))return;const _0x4ba194=_0x971568['writer'],_0x242ad8=_0x971568['mapper']['toViewRange'](_0x4bf1bf['range']);_0x4ba194['wrap'](_0x242ad8,_0x4ba194['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x292ddb){const _0x3c7694=_0x292ddb['plugins']['get']('RevisionViewer');return(_0x28bed7,_0xe6362a,_0x3da81b)=>{const _0xf74a2d=_0xe6362a['markerName']['split'](':')[0x1],_0x5e67d5=_0x3c7694['_getChangeFromId'](_0xf74a2d);if(!_0x5e67d5)return null;const _0x573075='add'==_0x5e67d5['type']?'split':'merge';if(!_0x3da81b['consumable']['test'](_0xe6362a['markerRange'],_0x28bed7['name']))return;const _0x28637a=_0xe6362a['markerRange']['getWalker'](),_0x306049=_0xe6362a['markerRange']['start'],_0x48ca87=_0x292ddb['model']['schema'];let _0x49f2de=null,_0x2a292b=null,_0x1dd2ef=!0x1,_0x48e9b6=!0x1;for(const _0x46aed8 of _0x28637a){const _0x194f73=_0x46aed8['item'];_0x1dd2ef=_0x1dd2ef||_0x48ca87['isContent'](_0x194f73);const _0x56cbd6=_0x3da81b['mapper']['toViewElement'](_0x194f73);if(_0x56cbd6&&_0x56cbd6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x46aed8['type']&&(_0x48ca87['isBlock'](_0x194f73)&&!_0x48ca87['isLimit'](_0x194f73)&&(_0x194f73['nextSibling']||_0x306049['isAtEnd']?_0x49f2de&&_0x49f2de['parent']==_0x194f73||(_0x49f2de=_0x194f73,_0x169d29(_0x46aed8['previousPosition']),_0x48e9b6=!0x0):_0x2a292b=_0x2a292b||_0x46aed8['previousPosition']));}function _0x169d29(_0x33da2f){const _0x12fef5=_0x3da81b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x573075}),_0x3b0c43=_0x3da81b['mapper']['toViewPosition'](_0x33da2f);_0x5e67d5['data']['isSuggestion']&&_0x3da81b['writer']['addClass']('ck-suggestion-marker-'+_0x573075+'-new',_0x12fef5),_0x3c7694['activeChange']==_0x5e67d5&&_0x3da81b['writer']['addClass']('ck-suggestion-marker--active',_0x12fef5),_0x3da81b['writer']['insert'](_0x3b0c43,_0x12fef5),_0x3da81b['mapper']['bindElementToMarker'](_0x12fef5,_0xe6362a['markerName']);}_0x1dd2ef||_0x48e9b6||!_0x2a292b||_0x169d29(_0x2a292b);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5ba0c2,_0x4d04b5,_0x4f09ee)=>{const _0x30ace2=_0x4f09ee['mapper']['markerNameToElements'](_0x4d04b5['markerName']);if(_0x30ace2){for(const _0x4f3168 of _0x30ace2)(_0x4f3168['hasClass']('ck-suggestion-marker-split')||_0x4f3168['hasClass']('ck-suggestion-marker-merge'))&&(_0x4f09ee['mapper']['unbindElementFromMarkerName'](_0x4f3168,_0x4d04b5['markerName']),_0x4f09ee['writer']['remove'](_0x4f3168));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x168b50,_0x511439,_0x545205)=>{const _0x52013d=_0x511439['markerName']['split'](':')[0x1],_0x3b0115=this['_getChangeFromId'](_0x52013d);if(!_0x3b0115)return null;const _0x2bc3d5='add'==_0x3b0115['type']?'split':'merge';if(_0x545205['consumable']['test'](_0x511439['markerRange'],_0x168b50['name']))for(const _0x150ef0 of _0x511439['markerRange']['getItems']()){if(!_0x150ef0['is']('element','softBreak'))continue;const _0x284ec7=_0x545205['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2bc3d5}),_0x34ada5=_0x545205['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x150ef0));_0x3b0115['data']['isSuggestion']&&_0x545205['writer']['addClass']('ck-suggestion-marker-'+_0x2bc3d5+'-new',_0x284ec7),this['activeChange']==_0x3b0115&&_0x545205['writer']['addClass']('ck-suggestion-marker--active',_0x284ec7),_0x545205['writer']['insert'](_0x34ada5,_0x284ec7),_0x545205['mapper']['bindElementToMarker'](_0x284ec7,_0x511439['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4d80a1=>{for(const _0x424dfd of this['editor']['model']['document']['getRootNames']()){const _0x2411c6=this['editor']['model']['document']['getRoot'](_0x424dfd),_0x432da5=this['editor']['editing']['view']['document']['getRoot'](_0x424dfd);if(_0x432da5){const _0x180a3c=_0x2411c6['getAttribute']('revisionHistoryAttachChange');if(_0x4d80a1['removeAttribute']('data-change-id',_0x432da5),_0x4d80a1['removeClass']('ck-revision-history-root-add',_0x432da5),_0x4d80a1['removeClass']('ck-revision-history-root-remove',_0x432da5),_0x4d80a1['removeClass']('ck-revision-history-root--active',_0x432da5),_0x180a3c){const _0x1e8521=this['_getChangeFromId'](_0x180a3c);if(!_0x1e8521)return null;_0x4d80a1['setAttribute']('data-change-id',_0x180a3c,_0x432da5),_0x4d80a1['addClass']('ck-revision-history-root-'+_0x1e8521['type'],_0x432da5),this['activeChange']==_0x1e8521&&_0x4d80a1['addClass']('ck-revision-history-root--active',_0x432da5);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xab9aac=>'revision-comment:'+_0xab9aac,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x26fe15=>'revision-suggestion:'+_0x26fe15,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x54cbb8=>({'name':'suggestion:'+_0x54cbb8,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x43eec9=>{const _0xe74935=_0x43eec9['markerName']['split'](':')[0x1];return'insertion'!=_0xe74935&&'deletion'!=_0xe74935?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xe74935]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x264d1e,_0xda0ed9,_0x296a74)=>{const _0xb652e5=_0x296a74['mapper']['markerNameToElements'](_0xda0ed9['markerName']);if(_0xb652e5){for(const _0x263eb6 of _0xb652e5)_0x263eb6['is']('uiElement')&&(_0x296a74['mapper']['unbindElementFromMarkerName'](_0x263eb6,_0xda0ed9['markerName']),_0x296a74['writer']['remove'](_0x263eb6));}},{'priority':'high'});}['_getChangeFromId'](_0xd08887){return this['_changeIdToChange']['get'](_0xd08887);}['_getViewForChange'](_0x12b704){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x12b704),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x74c5e9,_0x80de1f,_0x4e3c77,_0x52a41d)=>{_0x52a41d&&this['_balloon']['remove'](_0x52a41d),_0x4e3c77&&(this['_balloon']['add']({'view':_0x4e3c77,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x301fe4=this['editor']['editing'],_0x39e37d=this['_getChangeFromId'](_0x4e3c77['changeId']);let _0x4fdef8;if(_0x39e37d['data']['isOnRoot']){const _0x537cd2=_0x301fe4['view']['getDomRoot'](_0x39e37d['rootName']);_0x4fdef8=Array['from'](_0x537cd2['getClientRects']());}else{const _0x541469=this['editor']['model']['markers']['get']('revision:'+_0x4e3c77['changeId']);_0x4fdef8=Array['from'](_0x301fe4['mapper']['markerNameToElements'](_0x541469['name']))['map'](_0x39dad0=>_0x301fe4['view']['domConverter']['mapViewToDom'](_0x39dad0))['map'](_0x2a6202=>Array['from'](_0x2a6202['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4fdef8[0x0];return _0x4fdef8['find'](_0x267a59=>_0x267a59['top']-0x3<=this['_activeViewTarget']['y']&&_0x267a59['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x267a59['left']-0x3<=this['_activeViewTarget']['x']&&_0x267a59['right']+0x3>=this['_activeViewTarget']['x'])||_0x4fdef8[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4c7426,_0xa88e86,_0x4c135f,_0x4f9a99)=>{this['activeView']=_0x4c135f?this['_getViewForChange'](_0x4c135f):null,this['editor']['model']['change'](()=>{const _0x71935=this['editor']['editing'];_0x4f9a99&&(_0x4f9a99['data']['isOnRoot']?_0x71935['view']['change'](_0x4b9b99=>{_0x4b9b99['removeClass']('ck-revision-history-root--active',_0x71935['view']['document']['getRoot'](_0x4f9a99['rootName']));}):_0x71935['reconvertMarker']('revision:'+_0x4f9a99['id'])),_0x4c135f&&(_0x4c135f['data']['isOnRoot']?_0x71935['view']['change'](_0x3f6d5a=>{_0x3f6d5a['addClass']('ck-revision-history-root--active',_0x71935['view']['document']['getRoot'](_0x4c135f['rootName']));}):_0x71935['reconvertMarker']('revision:'+_0x4c135f['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x300710,_0x2501a7)=>{if(this['activeChange'])return;const _0x533ec6=this['_findChangeIdFromDomTarget'](_0x2501a7['target']),_0xf24c1b=this['_changeIdToChange']['get'](_0x533ec6);_0xf24c1b?(this['_activeViewTarget']={'x':_0x2501a7['domEvent']['x'],'y':_0x2501a7['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xf24c1b)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x124024,_0xe8a009)=>{const _0x29814b=this['_findChangeIdFromDomTarget'](_0xe8a009['target']),_0x1d1312=this['_changeIdToChange']['get'](_0x29814b);_0x1d1312?(this['_activeViewTarget']={'x':_0xe8a009['domEvent']['x'],'y':_0xe8a009['domEvent']['y']},_0x1d1312===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1d1312):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1c4924){do{const _0x16222e=_0x1c4924['getAttribute']('data-change-id');if(_0x16222e)return _0x16222e;_0x1c4924=_0x1c4924['parent'];}while(_0x1c4924);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x50ff90=>{for(const _0x46231c of this['editor']['model']['markers'])_0x50ff90['removeMarker'](_0x46231c);});}}function Z(_0x43d220,_0x1205ce){return(_0x1edce0,_0xa6734,_0x119337)=>{if(!_0x119337['consumable']['test'](_0xa6734['markerRange'],_0x1edce0['name']))return;const _0x203387=_0xa6734['markerRange']['getWalker'](),_0x15f7e4=_0xa6734['markerRange']['start'],_0xcb516c=_0x43d220['model']['schema'];let _0x5c9b57=null,_0x3b77eb=null,_0x39cb62=!0x1,_0x443e99=!0x1;for(const _0x5aeb92 of _0x203387){const _0x56850b=_0x5aeb92['item'];_0x39cb62=_0x39cb62||_0xcb516c['isContent'](_0x56850b);const _0x24e465=_0x119337['mapper']['toViewElement'](_0x56850b);if(_0x24e465&&_0x24e465['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5aeb92['type']&&(_0xcb516c['isBlock'](_0x56850b)&&!_0xcb516c['isLimit'](_0x56850b)&&(_0x56850b['nextSibling']||_0x15f7e4['isAtEnd']?_0x5c9b57&&_0x5c9b57['parent']==_0x56850b||(_0x5c9b57=_0x56850b,_0xef179d(_0x5aeb92['previousPosition']),_0x443e99=!0x0):_0x3b77eb=_0x3b77eb||_0x5aeb92['previousPosition']));}function _0xef179d(_0xcac4b4){const _0x4a39f0=_0x119337['mapper']['toViewPosition'](_0xcac4b4),_0x881fbd=_0x119337['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1205ce});_0x119337['writer']['insert'](_0x4a39f0,_0x881fbd),_0x119337['mapper']['bindElementToMarker'](_0x881fbd,_0xa6734['markerName']);}_0x39cb62||_0x443e99||!_0x3b77eb||_0xef179d(_0x3b77eb);};}class _t extends _0x5b5bd8{constructor(_0x545ce3){super(_0x545ce3);const _0x59ffb2=_0x545ce3['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x59ffb2,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x59ffb2,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x42dde2=this['editor'],_0x1153a9=_0x42dde2['plugins']['get'](d),_0x2c5eed=_0x1153a9['isReady']?_0x1153a9['diff']['newRevisionId']:null;_0x42dde2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2c5eed);}['refresh'](){const {isReady:_0x1206cf,isEnabled:_0x1d7cc2,repository:_0x9809c,diff:_0x4c360d}=this['editor']['plugins']['get'](d),_0x2e88b6=_0x4c360d&&_0x9809c['getLaterVisibleRevision'](_0x4c360d['newRevisionId']);this['isEnabled']=_0x1206cf&&_0x1d7cc2&&Boolean(_0x2e88b6);}}class yt extends _0x5b5bd8{['_step'];constructor(_0x2215e5,{direction:_0x4e6d16}){super(_0x2215e5);const _0x50f053=_0x2215e5['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4e6d16?0x1:-0x1,this['listenTo'](_0x50f053,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x50f053,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x50f053,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x21c898=this['editor'],_0x404310=_0x21c898['plugins']['get'](d),{isNavigationMode:_0x5dad65,currentChangeNumber:_0x4c9eab}=_0x404310;let _0x5074f9;if(_0x404310['activeChange']=_0x5dad65?_0x404310['diff']['changes']['get'](_0x4c9eab+this['_step']):_0x404310['diff']['changes']['first'],_0x404310['activeChange']['data']['isOnRoot'])_0x5074f9=_0x21c898['editing']['view']['getDomRoot'](_0x404310['activeChange']['rootName']);else{const _0x165b4e=_0x21c898['model']['markers']['get']('revision:'+_0x404310['activeChange']['id']);_0x5074f9=_0x437ff3(_0x21c898['editing'],_0x165b4e);}_0x3fe1e4({'target':_0x5074f9,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x23b153,currentChangeNumber:_0x16efc7,numberOfChanges:_0x77cbe4,isReady:_0x2e9b56,isEnabled:_0x2f5136}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2f5136&&_0x2e9b56&&_0x77cbe4)&&(!_0x23b153||(0x1===this['_step']?_0x16efc7<_0x77cbe4-0x1:_0x16efc7>0x0));}}class _i extends _0x26db05{constructor(_0x3408b5){super(_0x3408b5);const _0x583eaa=this['bindTemplate'],_0x21fe30=new _0x3471d7(_0x3408b5),_0x232327=new _0x3471d7(_0x3408b5);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',(_0x11a743,_0x1e049d)=>_0x11a743&&_0x1e049d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x392bf8,_0x49385e,_0x2125cc,_0x3c2e6b)=>{if(!_0x392bf8)return m(_0x3408b5,'Loading...');if(!_0x2125cc)return m(_0x3408b5,'No\x20changes');const _0x5dd4c8=m(_0x3408b5,'NUMBER_OF_CHANGES',_0x2125cc);return _0x3c2e6b?m(_0x3408b5,'X_OF_Y_CHANGES',[_0x49385e+0x1,_0x2125cc]):_0x5dd4c8;}),_0x21fe30['set']({'label':m(_0x3408b5,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x599e2d}),_0x232327['set']({'label':m(_0x3408b5,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1252dd}),_0x21fe30['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x232327['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x21fe30['on']('execute',()=>this['fire']('execute','backward')),_0x232327['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',_0x583eaa['if']('_isStatusLabelVisible','ck-hidden',_0x2f5232=>!_0x2f5232)]},'children':[{'text':_0x583eaa['to']('isNavigationMode',_0x52d88d=>_0x52d88d?m(_0x3408b5,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x3408b5,'Total')+':\x20')}]},{'text':_0x583eaa['to']('_statusText')}]},new _0x189078(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x21fe30,_0x232327]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x5842cf{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2d22aa=this['editor']['editing']['view'];_0x2d22aa['change'](_0x1bef90=>{for(const _0x582f2d of _0x2d22aa['document']['roots'])_0x1bef90['addClass'](ce,_0x582f2d);});}['hide'](){const _0x406421=this['editor']['editing']['view'];_0x406421['change'](_0x1863d4=>{for(const _0x26cbbf of _0x406421['document']['roots'])_0x1863d4['removeClass'](ce,_0x26cbbf);});}}class w extends _0x5842cf{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x23e98d=this['editor'],_0x2ae83f=_0x23e98d['plugins']['get'](d),_0x555312=_0x23e98d['plugins']['get'](le);_0x23e98d['ui']['componentFactory']['add']('exitToEditing',_0x1f5946=>{const _0x311975=new _0x3471d7(_0x1f5946);return _0x311975['set']({'label':m(_0x1f5946,'Back\x20to\x20editing'),'icon':_0x516331,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x311975,'execute',()=>{_0x23e98d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x311975;}),_0x23e98d['ui']['componentFactory']['add']('restoreRevision',_0x1871a9=>{const _0x4f2bd2=new _0x3471d7(_0x1871a9);return _0x4f2bd2['set']({'label':m(_0x1871a9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4f2bd2['bind']('isEnabled')['to'](_0x23e98d['commands']['get']('restoreRevision')),this['listenTo'](_0x4f2bd2,'execute',()=>_0x23e98d['execute']('restoreRevision')),_0x4f2bd2;}),_0x23e98d['ui']['componentFactory']['add']('changesNavigation',_0x1602f9=>{const _0x250a76=new _i(_0x1602f9),_0x37a073=_0x23e98d['commands']['get']('showPreviousChange'),_0x38a3f2=_0x23e98d['commands']['get']('showNextChange');return _0x250a76['bind']('isBackwardNavigationEnabled')['to'](_0x37a073,'isEnabled'),_0x250a76['bind']('isForwardNavigationEnabled')['to'](_0x38a3f2,'isEnabled'),_0x250a76['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2ae83f),this['listenTo'](_0x250a76,'execute',(_0x2b180,_0x250de9)=>{_0x23e98d['execute']('forward'===_0x250de9?'showNextChange':'showPreviousChange');}),_0x250a76;}),_0x555312['show'](),_0x2ae83f['on']('change:isReady',(_0x431330,_0x493e3e,_0x21927a)=>{_0x21927a?_0x555312['hide']():_0x555312['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x2fdbda,_0x3457e7){super(_0x2fdbda,_0x3457e7);const _0x281a1e=this['bindTemplate'];this['set']({'label':m(_0x2fdbda,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2fdbda,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x281a1e['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x52dc82=this['fieldView']['element'];this['_tooltipString']=_0x52dc82['scrollWidth']>_0x52dc82['clientWidth']&&_0x52dc82['value']||'';}}class oi extends _0x26db05{constructor(_0x10e785,_0xd3a45,_0x550139){super(_0x10e785);const _0x99d3fd=new _0x1d07ef();_0x99d3fd['set']({'content':_0x325b2e,'viewBox':'0\x200\x2011\x2010'});const _0x196ef8=['ck','ck-revision-history-sidebar__revision-author'];_0x550139&&_0x196ef8['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2310e4=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x10e785,_0x550139?'Revision\x20creator':'Revision\x20author')},'children':[_0x99d3fd,_0xd3a45['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x196ef8},'children':_0x2310e4});}}function ni(_0x153b42,_0x59925d){const _0x2f8568=_0x153b42['bindTemplate'],_0x3fcdab=_0x153b42['locale'],_0x3255b1=_0x37a4b1(_0x3fcdab);_0x3255b1['panelPosition']='sw';const _0x1dbb20=function(_0x4dd36e,_0x2d710a){const _0x3d7652=function(_0x34613a,_0x289c13){const _0x1bea22=_0x34613a['locale'],_0x521718={'Compare\x20against\x20selected':m(_0x1bea22,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x1bea22,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x1bea22,'Restore\x20this\x20revision')};return _0x289c13['map'](_0x158178=>{const _0x218331=_0x521718[_0x158178['name']];return _0x218331&&_0x218331!==_0x158178['name']&&(_0x158178['name']=_0x218331),_0x158178;});}(_0x4dd36e,_0x2d710a),_0x218207=new _0x4f201e();for(const _0x23628e of _0x3d7652){const _0x4084bb={'type':'button','model':new to({'label':_0x23628e['name'],'class':_0x23628e['class'],'withText':!0x0,'role':'menuitem','_action':_0x23628e['action']})};_0x4084bb['model']['bind']('isEnabled')['to'](_0x4dd36e,'isActionsDropdownOpen',_0x55e0df=>'function'!=typeof _0x23628e['isEnabled']||(!_0x55e0df||_0x23628e['isEnabled'](_0x4dd36e))),_0x218207['add'](_0x4084bb);}return _0x218207;}(_0x153b42,_0x59925d);return _0x153b42['bind']('isActionsDropdownOpen')['to'](_0x3255b1,'isOpen'),_0x3255b1['buttonView']['set']({'label':m(_0x3fcdab,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xf07bba}),_0x3255b1['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2f8568['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2f8568['to'](_0x1acbdc=>_0x1acbdc['stopPropagation']())}}),_0x3255b1['on']('execute',_0x2d581a=>{_0x153b42['isReady']&&'function'==typeof _0x2d581a['source']['_action']&&_0x2d581a['source']['_action'](_0x153b42);}),_0x454c84(_0x3255b1,_0x1dbb20,{'role':'menu'}),_0x3255b1['listenTo'](_0x153b42,'change:isActionsDropdownOpen',(_0x18d1cb,_0x1697de,_0x5383e7)=>{if(_0x5383e7)for(const _0x506357 of _0x3255b1['listView']['items']){const _0x573be2=_0x506357['children']['first'],_0x5703d1=_0x59925d['find'](_0x16185b=>_0x16185b['action']===_0x573be2['_action'])['isVisible'];_0x506357['isVisible']=void 0x0===_0x5703d1||_0x5703d1(_0x153b42);}}),_0x3255b1;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x2f840e(_0x26db05){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x32dbc6,_0x870958,_0xbe653f,_0x2ddd44){super(_0x32dbc6);const _0x459dd8=this['bindTemplate'],_0x2012a3=function(_0x2b541a,_0x37efc1){const _0x32fd52=Array['from'](_0x37efc1['authors'])['filter'](_0x13e5d5=>_0x13e5d5!=_0x37efc1['creator']);return _0x37efc1['creator']&&_0x32fd52['unshift'](_0x37efc1['creator']),_0x32fd52['map'](_0x450b79=>new oi(_0x2b541a,_0x450b79,_0x450b79==_0x37efc1['creator']));}(_0x32dbc6,_0x870958);this['id']=_0x870958['id'],this['_revision']=_0x870958,this['_requireRevisionName']=_0x2ddd44,this['bind']('name','createdAt')['to'](_0x870958),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x49bd8c=>{return _0x4d5ce1=_0x32dbc6['uiLanguage'],(_0x32dc5c=_0x49bd8c)['toLocaleDateString'](_0x4d5ce1,{'month':'long','day':'numeric'})+',\x20'+_0x32dc5c['toLocaleTimeString'](_0x4d5ce1,{'hour':'numeric','minute':'numeric'});var _0x4d5ce1,_0x32dc5c;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x32dbc6,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5434af=>_0x5434af||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x118999,_0x55c410)=>_0x118999&&_0x55c410),this['revisionActionsView']=_0xbe653f&&_0xbe653f['length']?ni(this,_0xbe653f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x459dd8['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x459dd8['if']('isEnabled','ck-disabled',_0x4874ba=>!_0x4874ba),_0x459dd8['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x459dd8['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x459dd8['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':_0x459dd8['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':_0x2012a3}]},this['revisionActionsView']],'on':{'click':_0x459dd8['to'](_0x437660=>{_0x437660['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1e123c=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1e123c,'change',()=>{this['_requireRevisionName']&&!_0x1e123c['value']||this['fire']('setName',{'id':this['id'],'name':_0x1e123c['value']}),_0x1e123c['value']||(_0x1e123c['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x21b41f,_0x1484b4){const _0x378d99=_0x28f262['fromJSDate'](_0x21b41f)['setLocale'](_0x1484b4),_0x16869e=_0x28f262['local'](),_0x3f5820=_0x16869e['minus']({'days':0x1})['startOf']('day');let _0x4dc186,_0x48bdc7;return _0x378d99['hasSame'](_0x16869e,'day')?(_0x4dc186=_0x378d99['startOf']('day')['toJSDate'](),_0x48bdc7=_0x378d99['toRelativeCalendar']()):_0x378d99['hasSame'](_0x3f5820,'day')?(_0x4dc186=_0x3f5820['toJSDate'](),_0x48bdc7=_0x378d99['toRelativeCalendar']()):_0x378d99['hasSame'](_0x16869e,'week')?(_0x4dc186=_0x378d99['startOf']('week')['toJSDate'](),_0x48bdc7=_0x378d99['weekdayLong']||''):_0x378d99['hasSame'](_0x16869e,'year')?(_0x4dc186=_0x378d99['startOf']('month')['toJSDate'](),_0x48bdc7=_0x378d99['monthLong']||''):(_0x4dc186=_0x378d99['startOf']('year')['toJSDate'](),_0x48bdc7=String(_0x378d99['year'])),{'startDate':_0x4dc186,'localizedPeriodName':_0x48bdc7};}class mi extends _0x26db05{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1715c1,_0x2eadc6,_0x56262c,_0x5c3bb5){super(_0x1715c1);const _0x3691dd=vi(_0x2eadc6,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2eadc6,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x56262c,this['_requireRevisionName']=_0x5c3bb5,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':_0x3691dd}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x28a703){const _0x3b7640=new ai(this['locale'],_0x28a703,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3b7640);}['removeRevision'](_0x32f33a){const _0x346434=this['revisionViews']['find'](_0x4f8667=>_0x4f8667['id']===_0x32f33a['id']);this['revisionViews']['remove'](_0x346434);}}class is extends _0x26db05{constructor(_0x59899a){super(_0x59899a);const _0x3fa3ed=new _0x1d07ef();_0x3fa3ed['content']=_0x582502,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3fa3ed,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x59899a,'Revision\x20history')]}]});}}class di extends _0x26db05{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x490b0a,_0x558c56,_0x31e907,_0x4e992b){super(_0x490b0a);const _0x179531=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x558c56,this['_revisionActions']=_0x31e907,this['_requireRevisionName']=_0x4e992b,this['on']('select',(_0x15f464,_0x8daf3c)=>{this['fire']('revisionSelected',_0x8daf3c);}),this['on']('setName',(_0x26130b,_0xc63b26)=>{this['fire']('revisionSetName',_0xc63b26);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new is(_0x490b0a),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x179531['if']('isEnabled','ck-disabled',_0x473bc1=>!_0x473bc1)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x425dbb of this['_revisions'])this['_addRevision'](_0x425dbb);this['_revisions']['on']('add',(_0x1a8909,_0x360936)=>{this['_addRevision'](_0x360936);}),this['_revisions']['on']('remove',(_0x54f04b,_0x219a2b)=>{this['_removeRevision'](_0x219a2b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x896b2f=>_0x896b2f['revisionViews']['map'](_0x16678f=>_0x16678f))['flat']();}['selectRevision'](_0x3bbcfe){for(const _0x378b63 of this['revisionViews'])_0x3bbcfe&&_0x3bbcfe['id']===_0x378b63['id']?_0x378b63['select']():_0x378b63['deselect']();}['highlightRevisions'](_0x2c27f6){for(const _0x20e189 of this['revisionViews'])_0x2c27f6['some'](({id:_0xa9e7f4})=>_0xa9e7f4===_0x20e189['id'])?_0x20e189['highlight']():_0x20e189['unhighlight']();}['_addRevision'](_0x48e3f2){const _0x2e9d11=vi(_0x48e3f2['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x293f16=this['timePeriodViews']['get'](0x0);_0x293f16&&_0x293f16['startDate']['getTime']()===_0x2e9d11['getTime']()||(_0x293f16=new mi(this['locale'],_0x2e9d11,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x293f16)),_0x293f16['addRevision'](_0x48e3f2);}['_removeRevision'](_0x568215){const _0x4d90f0=vi(_0x568215['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4d90f0)['removeRevision'](_0x568215);}['_getTimePeriodViewByStartDate'](_0x5f4277){return this['timePeriodViews']['find'](_0x110824=>_0x110824['startDate']['getTime']()===_0x5f4277['getTime']());}}class g extends _0x5842cf{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x34a3ec,_0x4a64ec){super(_0x4a64ec),this['sourceElement']=_0x34a3ec,this['model']['document']['createRoot']();const _0x1a6508=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x1a6508);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x32daaa,_0x381b20){const _0x52035a=new this(_0x32daaa,_0x381b20);return await _0x52035a['initPlugins'](),await _0x52035a['ui']['init'](_0x32daaa),await _0x52035a['data']['init'](_0x52035a['config']['get']('initialData')||''),_0x52035a['fire']('ready'),_0x52035a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x2f1869{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a1c81){function _0x26e7a1(_0x513bd4){return _0x513bd4['map'](_0x8e86e4=>String['fromCharCode'](_0x8e86e4))['join']('');}super(_0x5a1c81),this['result']='end',_0x5a1c81[_0x26e7a1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26e7a1([0x76,0x69,0x65,0x77])][_0x26e7a1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26e7a1([0x61,0x75,0x74,0x6f]),_0x5a1c81[_0x26e7a1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x26e7a1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26e7a1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x26e7a1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x26e7a1([0x6f,0x6b])});}}class k extends _0x2f1869{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x107bd4){if(super(_0x107bd4),!this['editor']['config']['get']('revisionHistory'))throw new _0x37bac1('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x110240=>this['_showRevisionViewer']({..._0x110240,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1da2fa=>this['_closeRevisionViewer'](_0x1da2fa)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x716fbb=>this['_restoreRevision'](_0x716fbb)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5ee994){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5ee994;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x142aff){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x142aff);}['getRevision'](_0x4d5a5c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4d5a5c);}['getRevisions'](_0x370809){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x370809||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x168d7a=this['editor'],_0x2d437c=_0x4327fa(_0x168d7a,p),_0x16fdd0=_0x168d7a['plugins']['get']('RevisionTracker'),_0x522c59=_0x168d7a['plugins']['get']('Users')['users'];return _0x2d437c['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2d437c['lazyRoots'],(_0x2d437c['plugins']['push'](bt,d,g,class extends _0x2f1869{static get['requires'](){return[d,'Users'];}['init'](){const _0x53f5fb=this['editor']['plugins']['get']('Users');for(const _0x2f07d2 of _0x522c59)_0x2f07d2['isAnonymous']||_0x53f5fb['getUser'](_0x2f07d2['id'])||_0x53f5fb['addUser'](_0x2f07d2);const _0x33206b=_0x16fdd0['repository']['getRevisions']();let _0x36e56d=null;const _0x25d002=this['editor']['plugins']['get']('RevisionViewer');_0x25d002['adapter']=_0x16fdd0['adapter'],_0x25d002['bind']('isEnabled')['to'](_0x16fdd0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x168d7a,'isReadOnly',_0x332783=>!_0x332783);for(const _0x1db919 of _0x33206b){const _0x174632=null===_0x1db919['creator'];if(_0x174632&&_0x1db919['toVersion']===_0x1db919['fromVersion'])continue;const _0x44c41a=_0x1db919['toJSON']();_0x25d002['addRevisionData'](_0x44c41a,(_0x1f5638,_0x4abcc5,_0x3b1724)=>{if(_0x174632){if(_0x36e56d)_0x36e56d['_update'](_0x1f5638,_0x4abcc5);else{if(!_0x4abcc5){const _0x27b9c9=_0x3b1724['toJSON']();_0x27b9c9['id']=_0x5b4730(),_0x16fdd0['saveRevision'](_0x27b9c9,_0x3b1724['toVersion'])['then'](_0x31de74=>{_0x36e56d=_0x31de74;});}}}else _0x1db919['_update'](_0x1f5638,_0x4abcc5);});}}},w),_0x2d437c);}['_enhanceShowRevisionViewerCallback'](){const _0x521654=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2df564=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x43bd47=this['editor']['plugins']['get']('Autosave');await _0x43bd47['save']();}else await _0x2df564['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2a16a5=this['editor']['plugins']['get']('Dialog');_0x2a16a5['isOpen']&&_0x2a16a5['hide']();}const _0x293bfd=this['_getRevisionViewerEditorConfig']();return _0x521654(_0x293bfd)['then'](_0x15549f=>{return(this['_viewerEditor']=_0x15549f,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x15549f;})['catch'](_0x4e61d4=>(console['error'](_0x4e61d4),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5e321b=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x5e321b(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x400b75=this['editor']['plugins']['get']('Annotations');_0x400b75['refreshVisibility'](),_0x400b75['refreshPositioning']();}})));}['_showRevisionViewer'](_0x18042e){const _0x56649e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1a3b81=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x10656c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x10656c,_0x18042e)['then'](_0x5ee6b8=>(_0x1a3b81['style']['display']='block',_0x56649e['style']['display']='none',_0x5ee6b8));}['_closeRevisionViewer'](_0x469eb5){const _0x1dac33=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1dac33['style']['display']='',_0x469eb5['destroy']();}async['_restoreRevision'](_0x484eed){const _0x302e06=this['editor'],_0x51a852=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2704e2=_0x302e06['plugins']['get']('RevisionTracker'),_0x1a27c9=_0x51a852['repository']['getRevision'](_0x484eed);let _0x2b8768,_0x53717a,_0x3c235b;try{_0x2b8768=await _0x51a852['getRevisionData'](_0x1a27c9),_0x53717a=await _0x51a852['getRevisionRootsAttributes'](_0x1a27c9);}catch(_0x27598a){return void console['error'](_0x27598a);}_0x302e06['model']['change'](_0x1113b9=>{for(const _0x4a15cf of Array['from'](_0x302e06['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1113b9['removeMarker'](_0x4a15cf);}),_0x51a852['isReady']=!0x1,_0x302e06['model']['enqueueChange'](_0x4fb6ff=>{_0x4fb6ff['setSelection'](null),_0x4fb6ff['removeSelectionAttribute'](_0x302e06['model']['document']['selection']['getAttributeKeys']());const _0x4f0f46=Object['keys'](_0x2b8768);for(const _0x5d0b77 of _0x302e06['model']['document']['roots'])'$graveyard'!=_0x5d0b77['rootName']&&_0x5d0b77['isAttached']()&&!_0x4f0f46['includes'](_0x5d0b77['rootName'])&&_0x4fb6ff['detachRoot'](_0x5d0b77);for(const _0x5bf9c2 of _0x4f0f46){let _0x16ba51=_0x302e06['model']['document']['getRoot'](_0x5bf9c2);_0x16ba51&&_0x16ba51['isAttached']()||(_0x16ba51=_0x4fb6ff['addRoot'](_0x5bf9c2));const _0x1b50f6=_0x53717a[_0x5bf9c2],_0x517290=Object['keys'](_0x1b50f6),_0x9a4279=_0x2b8768[_0x5bf9c2];for(const _0x5c77e3 of _0x16ba51['getAttributeKeys']())_0x517290['includes'](_0x5c77e3)||_0x4fb6ff['removeAttribute'](_0x5c77e3,_0x16ba51);for(const _0x2879a7 of _0x517290)_0x4fb6ff['setAttribute'](_0x2879a7,_0x53717a[_0x5bf9c2][_0x2879a7],_0x16ba51);_0x4fb6ff['remove'](_0x4fb6ff['createRangeIn'](_0x16ba51)),_0x4fb6ff['insert'](_0x302e06['data']['parse'](_0x9a4279,_0x16ba51),_0x16ba51,0x0);}});const _0x284069=m(_0x302e06['locale'],'Restored');if(_0x1a27c9['name'])_0x3c235b=-0x1==_0x1a27c9['name']['indexOf'](_0x284069)?_0x284069+':\x20'+_0x1a27c9['name']:_0x1a27c9['name'];else _0x3c235b=_0x284069+':\x20'+(_0x1a27c9['createdAt']['toLocaleDateString'](_0x302e06['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1a27c9['createdAt']['toLocaleTimeString'](_0x302e06['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2704e2['saveRevision']({'name':_0x3c235b}),_0x51a852['isReady']=!0x0,_0x302e06['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x243a4c){super(_0x243a4c),this['_revisionViewer']=_0x243a4c['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xfb718a=this['_revisionsRepository']['_revisions'],_0x357eb9=this['_createRevisionActions'](),_0x910aa=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0xfb718a,_0x357eb9,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',(_0x50f94d,_0x52f6c3)=>{_0x52f6c3['revisionViews']['on']('add',(_0xc3e20e,_0x4a86dc)=>{_0x4a86dc['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)),_0x910aa['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x17d6a5=this['_revisionsRepository']['getRevision'](0x0);if(_0x17d6a5){const _0x28d297=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x17d6a5['id']);this['_revisionViewer']['compare'](_0x17d6a5,_0x28d297);}}['_handleRevisionSelected'](_0x40b6de,_0x109c93){const _0x3d1fc9=this['_revisionsRepository']['getRevision'](_0x109c93['id']),_0x2d792a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3d1fc9['id']);this['_revisionViewer']['compare'](_0x3d1fc9,_0x2d792a);}['_handleRevisionSetName'](_0x1bc5dc,_0x1e01f5){this['_revisionsRepository']['getRevision'](_0x1e01f5['id'])['setName'](_0x1e01f5['name']);}['_handleDiffChange'](_0x4af393,_0x4e0203,_0x374a9a){const _0x208d10=this['_revisionsRepository']['getRevisionsInDiff'](_0x374a9a);_0x208d10['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x208d10),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x208d10[0x0]));}['_createRevisionActions'](){const _0x493118=this['editor'],_0xf75587=g['availableRevisionActions'],_0xa8ba8a=_0x493118['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0xa8ba8a['length'])return _0xa8ba8a['map'](_0x16135e=>{const _0x4ebf79='string'==typeof _0x16135e?Object['assign']({},_0xf75587[_0x16135e]):_0x16135e;return _0x4ebf79['action']=_0x4ebf79['action']['bind'](this,_0x493118),_0x4ebf79['isVisible']&&(_0x4ebf79['isVisible']=_0x4ebf79['isVisible']['bind'](this,_0x493118)),_0x4ebf79;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x212db7},_0x476de5)=>{const _0xe6dac5=_0x212db7['get'](d),_0x29aff8=_0xe6dac5['repository'];let _0xd29511=_0xe6dac5['diff']['newRevisionId'],_0x50970e=_0x476de5['id'];_0x29aff8['getIndex'](_0xd29511)>_0x29aff8['getIndex'](_0x50970e)&&([_0xd29511,_0x50970e]=[_0x50970e,_0xd29511]),_0xe6dac5['compare'](_0xd29511,_0x50970e);},'isVisible':({plugins:_0x503903},_0x1f9276)=>{const _0xa4309b=_0x503903['get'](d);return!(_0xa4309b['repository']['getRevisionsInDiff'](_0xa4309b['diff'])['length']>0x2)&&!_0x1f9276['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xce47dc,{id:_0x513708})=>{_0xce47dc['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x513708);},'isVisible':({plugins:_0x1778c8},_0xcc0ed2)=>!!_0x1778c8['get'](d)['repository']['getLaterVisibleRevision'](_0xcc0ed2['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x41e39b},{id:_0x54fade,revisionNameView:_0x5c8af6})=>{const _0x2d41bb=_0x41e39b['get'](d),_0x28e717=_0x2d41bb['repository']['getEarlierVisibleRevision'](_0x54fade);_0x2d41bb['compare'](_0x54fade,_0x28e717),_0x5c8af6['focus'](),_0x5c8af6['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x916b9e,_0x356922){super(_0x916b9e),this['_view']=_0x356922,this['_toolbarConfig']=ot(_0x916b9e['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x120dd4){const _0x2bb44a=this['editor'],_0x2f7c23=this['view'],_0x4722c1=_0x2bb44a['editing']['view'],_0x5e4ccd=_0x2f7c23['editable'],_0x266e8b=_0x4722c1['document']['getRoot']();_0x5e4ccd['name']=_0x266e8b['rootName'],_0x2f7c23['render']();const _0x4d2354=_0x5e4ccd['element'];this['setEditableElement'](_0x5e4ccd['name'],_0x4d2354),_0x2f7c23['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4722c1['attachDomRoot'](_0x4d2354),this['_elementReplacer']['replace'](_0x120dd4,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4b3de0=this['view'],_0x557dbd=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x557dbd['detachDomRoot'](_0x4b3de0['editable']['name']),_0x4b3de0['destroy']();}['_initToolbar'](){const _0x3ff661=this['view'];_0x3ff661['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3ff661['stickyPanel']['limiterElement']=_0x3ff661['element'],_0x3ff661['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x26c6f7})=>_0x26c6f7),_0x3ff661['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3ff661['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xe34ec6,_0x596f6e,_0x401ae9={}){super(_0xe34ec6),this['stickyPanel']=new lt(_0xe34ec6),this['toolbar']=new nt(_0xe34ec6,{'shouldGroupWhenFull':_0x401ae9['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0xe34ec6,_0x596f6e);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x54607a,_0x2d6d4a){super(_0x2d6d4a),this['sourceElement']=_0x54607a,this['model']['document']['createRoot']();const _0x4c2b93=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x4c2b93);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3c6f5f,_0x15e514){const _0x1bd0f8=new this(_0x3c6f5f,_0x15e514);return await _0x1bd0f8['initPlugins'](),await _0x1bd0f8['ui']['init'](_0x3c6f5f),await _0x1bd0f8['data']['init'](_0x1bd0f8['config']['get']('initialData')||''),_0x1bd0f8['fire']('ready'),_0x1bd0f8;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x5842cf{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23bd9d){function _0xf5ac5f(_0x32f370){return _0x32f370['map'](_0x276d05=>String['fromCharCode'](_0x276d05))['join']('');}super(_0x23bd9d),this['result']='end',_0x23bd9d[_0xf5ac5f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf5ac5f([0x76,0x69,0x65,0x77])][_0xf5ac5f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf5ac5f([0x61,0x75,0x74,0x6f]),_0x23bd9d[_0xf5ac5f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xf5ac5f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf5ac5f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xf5ac5f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xf5ac5f([0x6f,0x6b])});}}class k extends _0x5842cf{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x2843f1){if(super(_0x2843f1),!this['editor']['config']['get']('revisionHistory'))throw new _0x4ea387('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1b893d=>this['_showRevisionViewer']({..._0x1b893d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x662d81=>this['_closeRevisionViewer'](_0x662d81)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4ce1cb=>this['_restoreRevision'](_0x4ce1cb)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5ad001){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5ad001;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2da1d7){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2da1d7);}['getRevision'](_0x1f2cb6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1f2cb6);}['getRevisions'](_0x81949){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x81949||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5d0b22=this['editor'],_0x916317=_0x5a0792(_0x5d0b22,p),_0xe18ac1=_0x5d0b22['plugins']['get']('RevisionTracker'),_0x53d03e=_0x5d0b22['plugins']['get']('Users')['users'];return _0x916317['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x916317['lazyRoots'],(_0x916317['plugins']['push'](Rt,d,w,class extends _0x5842cf{static get['requires'](){return[d,'Users'];}['init'](){const _0x2d2a66=this['editor']['plugins']['get']('Users');for(const _0x1d50fa of _0x53d03e)_0x1d50fa['isAnonymous']||_0x2d2a66['getUser'](_0x1d50fa['id'])||_0x2d2a66['addUser'](_0x1d50fa);const _0xecba90=_0xe18ac1['repository']['getRevisions']();let _0x4ba312=null;const _0x1e732c=this['editor']['plugins']['get']('RevisionViewer');_0x1e732c['adapter']=_0xe18ac1['adapter'],_0x1e732c['bind']('isEnabled')['to'](_0xe18ac1),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5d0b22,'isReadOnly',_0x468231=>!_0x468231);for(const _0x19b4a0 of _0xecba90){const _0x1a700a=null===_0x19b4a0['creator'];if(_0x1a700a&&_0x19b4a0['toVersion']===_0x19b4a0['fromVersion'])continue;const _0xa8fcb0=_0x19b4a0['toJSON']();_0x1e732c['addRevisionData'](_0xa8fcb0,(_0x4016cd,_0x5d432d,_0x335571)=>{if(_0x1a700a){if(_0x4ba312)_0x4ba312['_update'](_0x4016cd,_0x5d432d);else{if(!_0x5d432d){const _0x47f4db=_0x335571['toJSON']();_0x47f4db['id']=_0x16b583(),_0xe18ac1['saveRevision'](_0x47f4db,_0x335571['toVersion'])['then'](_0x37b5cf=>{_0x4ba312=_0x37b5cf;});}}}else _0x19b4a0['_update'](_0x4016cd,_0x5d432d);});}}},g),_0x916317);}['_enhanceShowRevisionViewerCallback'](){const _0x112fab=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x6ce2a8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x32c07b=this['editor']['plugins']['get']('Autosave');await _0x32c07b['save']();}else await _0x6ce2a8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x53b080=this['editor']['plugins']['get']('Dialog');_0x53b080['isOpen']&&_0x53b080['hide']();}const _0x389c77=this['_getRevisionViewerEditorConfig']();return _0x112fab(_0x389c77)['then'](_0x3697ae=>{return(this['_viewerEditor']=_0x3697ae,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3697ae;})['catch'](_0x224f4e=>(console['error'](_0x224f4e),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x522b6e=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x522b6e(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3d8b77=this['editor']['plugins']['get']('Annotations');_0x3d8b77['refreshVisibility'](),_0x3d8b77['refreshPositioning']();}})));}['_showRevisionViewer'](_0x58618e){const _0x441c21=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xe78966=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x40f1a5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x40f1a5,_0x58618e)['then'](_0x52deb1=>(_0xe78966['style']['display']='block',_0x441c21['style']['display']='none',_0x52deb1));}['_closeRevisionViewer'](_0x530647){const _0x1337c2=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1337c2['style']['display']='',_0x530647['destroy']();}async['_restoreRevision'](_0x99df8a){const _0x3ec23e=this['editor'],_0x3836aa=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x51bdc9=_0x3ec23e['plugins']['get']('RevisionTracker'),_0x5e6210=_0x3836aa['repository']['getRevision'](_0x99df8a);let _0xbc4d7c,_0x4e73aa,_0x26f9b9;try{_0xbc4d7c=await _0x3836aa['getRevisionData'](_0x5e6210),_0x4e73aa=await _0x3836aa['getRevisionRootsAttributes'](_0x5e6210);}catch(_0x49ba40){return void console['error'](_0x49ba40);}_0x3ec23e['model']['change'](_0x1004c2=>{for(const _0x1e3b4e of Array['from'](_0x3ec23e['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1004c2['removeMarker'](_0x1e3b4e);}),_0x3836aa['isReady']=!0x1,_0x3ec23e['model']['enqueueChange'](_0x533c40=>{_0x533c40['setSelection'](null),_0x533c40['removeSelectionAttribute'](_0x3ec23e['model']['document']['selection']['getAttributeKeys']());const _0x356681=Object['keys'](_0xbc4d7c);for(const _0x5cafff of _0x3ec23e['model']['document']['roots'])'$graveyard'!=_0x5cafff['rootName']&&_0x5cafff['isAttached']()&&!_0x356681['includes'](_0x5cafff['rootName'])&&_0x533c40['detachRoot'](_0x5cafff);for(const _0x11a1d3 of _0x356681){let _0x3b2d8b=_0x3ec23e['model']['document']['getRoot'](_0x11a1d3);_0x3b2d8b&&_0x3b2d8b['isAttached']()||(_0x3b2d8b=_0x533c40['addRoot'](_0x11a1d3));const _0xf8eaae=_0x4e73aa[_0x11a1d3],_0x2b59c9=Object['keys'](_0xf8eaae),_0x593d06=_0xbc4d7c[_0x11a1d3];for(const _0x56c26f of _0x3b2d8b['getAttributeKeys']())_0x2b59c9['includes'](_0x56c26f)||_0x533c40['removeAttribute'](_0x56c26f,_0x3b2d8b);for(const _0x489390 of _0x2b59c9)_0x533c40['setAttribute'](_0x489390,_0x4e73aa[_0x11a1d3][_0x489390],_0x3b2d8b);_0x533c40['remove'](_0x533c40['createRangeIn'](_0x3b2d8b)),_0x533c40['insert'](_0x3ec23e['data']['parse'](_0x593d06,_0x3b2d8b),_0x3b2d8b,0x0);}});const _0x52d716=m(_0x3ec23e['locale'],'Restored');if(_0x5e6210['name'])_0x26f9b9=-0x1==_0x5e6210['name']['indexOf'](_0x52d716)?_0x52d716+':\x20'+_0x5e6210['name']:_0x5e6210['name'];else _0x26f9b9=_0x52d716+':\x20'+(_0x5e6210['createdAt']['toLocaleDateString'](_0x3ec23e['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5e6210['createdAt']['toLocaleTimeString'](_0x3ec23e['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x51bdc9['saveRevision']({'name':_0x26f9b9}),_0x3836aa['isReady']=!0x0,_0x3ec23e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|