@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250617.0 → 0.0.0-nightly-20250618.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x208a0d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x68770){super(),this['id']=_0x68770['id']||_0x17ccda(),this['creator']=_0x68770['creator']||null,this['authors']=_0x68770['authors']||[],this['diffData']=_0x68770['diffData']||null,this['toVersion']=_0x68770['toVersion']||0x0,this['fromVersion']=_0x68770['fromVersion']||0x0,this['set']('name',_0x68770['name']||''),this['set']('createdAt',_0x68770['createdAt']||new Date()),this['set']('attributes',_0x68770['attributes']||{});}['setName'](_0xa91b71){this['_update']({'name':_0xa91b71});}['setAttribute'](_0x197852,_0x12ac02){const _0x28d124=_0x5d7334(this['attributes']);_0x59cccf(_0x28d124,_0x197852,_0x12ac02),this['_update']({'attributes':_0x28d124});}['removeAttribute'](_0x5a44f9){const _0x2c3ff3=_0x5d7334(this['attributes']);_0x4f119a(_0x2c3ff3,_0x5a44f9),this['_update']({'attributes':_0x2c3ff3});}['_update'](_0x26106d,_0x5b0ab8=!0x1){let _0xc62403=!0x1;const _0x563390={'id':this['id']},_0x3936b1=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1ee875 of _0x3936b1){const _0x569a4a=_0x26106d[_0x1ee875];void 0x0!==_0x569a4a&&_0x569a4a!==this[_0x1ee875]&&(this[_0x1ee875]=_0x569a4a,_0x563390[_0x1ee875]=_0x569a4a,_0xc62403=!0x0);}_0xc62403&&(_0x563390['authors']&&(_0x563390['authorsIds']=_0x563390['authors']['map'](_0x238f2c=>_0x238f2c['id']),delete _0x563390['authors']),this['fire']('_update',_0x563390,_0x5b0ab8));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1a2b8c=>_0x1a2b8c['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x3a7117{['_revisions'];static get['requires'](){return[_0x315441];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x41f56e){super(_0x41f56e),this['_revisions']=new _0x2e7af1();}['afterInit'](){!async function(_0x5a9e24){const _0x3e8904=_0xc8919f([0x6b,0x34,0x43,0x35,0x65,0x74,0x32,0x33,0x37,0x78,0x63,0x4b,0x77,0x75,0x4a,0x30,0x61,0x6d,0x39,0x50,0x55,0x6a,0x72,0x4f,0x45,0x31,0x69,0x57,0x4c,0x44,0x49,0x66,0x38,0x36,0x53,0x67,0x58,0x6f,0x59,0x68,0x54,0x79,0x7a,0x52,0x70,0x6e,0x76,0x4d,0x41,0x73,0x6c,0x5a,0x48,0x42,0x46,0x64,0x71,0x4e,0x56,0x47,0x51,0x62]),_0x286a8c=0xeb829,_0x518166=0x42cd85c4,_0x4427b7=0x42caeec4^_0x518166,_0x73577c=window[_0xc8919f([0x44,0x61,0x74,0x65])][_0xc8919f([0x6e,0x6f,0x77])](),_0x4eb92e=_0x5a9e24[_0xc8919f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x488430=new window[(_0xc8919f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ed85c=>{_0x4eb92e[_0xc8919f([0x6f,0x6e,0x63,0x65])](_0xc8919f([0x72,0x65,0x61,0x64,0x79]),_0x1ed85c);}),_0x69dfd3={[_0xc8919f([0x6b,0x74,0x79])]:_0xc8919f([0x45,0x43]),[_0xc8919f([0x75,0x73,0x65])]:_0xc8919f([0x73,0x69,0x67]),[_0xc8919f([0x63,0x72,0x76])]:_0xc8919f([0x50,0x2d,0x32,0x35,0x36]),[_0xc8919f([0x78])]:_0xc8919f([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]),[_0xc8919f([0x79])]:_0xc8919f([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]),[_0xc8919f([0x61,0x6c,0x67])]:_0xc8919f([0x45,0x53,0x32,0x35,0x36])},_0x48a99c=_0x4eb92e[_0xc8919f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xc8919f([0x67,0x65,0x74])](_0xc8919f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x18f863(){let _0x155d0a,_0x452420=null,_0x2d1b9e=null;try{if(_0x48a99c==_0xc8919f([0x47,0x50,0x4c]))return _0xc8919f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x155d0a=_0x2ff459(),!_0x155d0a)return _0xc8919f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x155d0a[_0xc8919f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d1b9e=_0x498ed4(_0x155d0a[_0xc8919f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x155d0a[_0xc8919f([0x6a,0x74,0x69])])),await _0x262125()?_0x422269()?_0x5936a6()?_0xc8919f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c318a()?(_0x155d0a[_0xc8919f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc8919f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x452420=_0x5b3f23(_0xc8919f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x155d0a[_0xc8919f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc8919f([0x74,0x72,0x69,0x61,0x6c])&&(_0x452420=_0x5b3f23(_0xc8919f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x25f13d()):_0xc8919f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xc8919f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xc8919f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xc8919f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5936a6(){const _0x5b3ccd=[_0xc8919f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xc8919f([0x74,0x72,0x69,0x61,0x6c])][_0xc8919f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x155d0a[_0xc8919f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x73577c/0x3e8:0xe10*_0x4427b7;return _0x155d0a[_0xc8919f([0x65,0x78,0x70])]<_0x5b3ccd;}function _0x422269(){const _0x2b5635=_0x155d0a[_0xc8919f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2b5635)return!0x1;if(_0x2b5635[_0xc8919f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc8919f([0x2a])))return!0x0;if(_0x2b5635[_0xc8919f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc8919f([0x52,0x48])))return!0x0;if(_0x2b5635[_0xc8919f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc8919f([0x52,0x52,0x48]))){if(_0x2a581d())return!0x0;if(_0x3bb71c()||_0x24ee12())return!0x0;}return!0x1;}function _0x4c318a(){const _0x133170=_0x155d0a[_0xc8919f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x133170||0x0==_0x133170[_0xc8919f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21c312}=new URL(window[_0xc8919f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x133170[_0xc8919f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c312))return!0x0;const _0x17590b=_0x21c312[_0xc8919f([0x73,0x70,0x6c,0x69,0x74])](_0xc8919f([0x2e]));return _0x133170[_0xc8919f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43a6f0=>_0x43a6f0[_0xc8919f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc8919f([0x2a])))[_0xc8919f([0x6d,0x61,0x70])](_0x983880=>_0x983880[_0xc8919f([0x73,0x70,0x6c,0x69,0x74])](_0xc8919f([0x2e])))[_0xc8919f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25e3bc=>_0x25e3bc[_0xc8919f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x17590b[_0xc8919f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc8919f([0x6d,0x61,0x70])](_0x3803f1=>Array(_0x17590b[_0xc8919f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3803f1[_0xc8919f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc8919f([0x66,0x69,0x6c,0x6c])](_0x3803f1[0x0]===_0xc8919f([0x2a])?_0xc8919f([0x2a]):'')[_0xc8919f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3803f1))[_0xc8919f([0x73,0x6f,0x6d,0x65])](_0x4ee425=>_0x17590b[_0xc8919f([0x65,0x76,0x65,0x72,0x79])]((_0x53e574,_0x21c95f)=>_0x4ee425[_0x21c95f]===_0x53e574||_0x4ee425[_0x21c95f]===_0xc8919f([0x2a])));}function _0x25f13d(){return _0x452420&&_0x2d1b9e?new window[(_0xc8919f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26168b,_0x178ab4)=>{_0x452420[_0xc8919f([0x74,0x68,0x65,0x6e])](_0x26168b,_0x178ab4),_0x2d1b9e[_0xc8919f([0x74,0x68,0x65,0x6e])](_0xd5c8a8=>{_0xd5c8a8!=_0xc8919f([0x56,0x61,0x6c,0x69,0x64])&&_0x26168b(_0xd5c8a8);},_0x178ab4);}):_0x452420||_0x2d1b9e||_0xc8919f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x498ed4(_0x19e678,_0x55f17b){return new window[(_0xc8919f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x255e25=>{if(_0x1232b9())return _0x255e25(_0xc8919f([0x56,0x61,0x6c,0x69,0x64]));_0x1e0ca0(),_0x4eb92e[_0xc8919f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xc8919f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1970fd=!0x1;const _0x113bf7=_0x17ccda();function _0x2c0190(_0x129dcf){return!!_0x129dcf&&(typeof _0x129dcf===_0xc8919f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x129dcf===_0xc8919f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x129dcf[_0xc8919f([0x74,0x68,0x65,0x6e])]===_0xc8919f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x129dcf[_0xc8919f([0x63,0x61,0x74,0x63,0x68])]===_0xc8919f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xbe8315(_0x555d88){_0xb41ba1(_0x555d88)[_0xc8919f([0x74,0x68,0x65,0x6e])](_0x509cb8=>{if(!_0x509cb8||_0x509cb8[_0xc8919f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xc8919f([0x6f,0x6b]))return _0xc8919f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x53a2e7(_0x36ca41(_0x113bf7+_0x55f17b))!=_0x509cb8[_0xc8919f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xc8919f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xc8919f([0x56,0x61,0x6c,0x69,0x64]);})[_0xc8919f([0x74,0x68,0x65,0x6e])](_0x295bd0=>(_0x35e1eb(),_0x295bd0),()=>{const _0x1d7b73=_0x5804e6();return null==_0x1d7b73?(_0x35e1eb(),_0xc8919f([0x56,0x61,0x6c,0x69,0x64])):_0xc8919f(_0x73577c-_0x1d7b73>(0x66c101c4^_0x518166)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xc8919f([0x74,0x68,0x65,0x6e])](_0x255e25)[_0xc8919f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x255e25(_0xc8919f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d02bb=0x42fb6b44^_0x518166;function _0x35e1eb(){const _0x1419c3=_0xc8919f([0x6c,0x6c,0x63,0x74,0x2d])+_0x53a2e7(_0x36ca41(_0x19e678)),_0x99c667=_0x562460(_0x53a2e7(window[_0xc8919f([0x4d,0x61,0x74,0x68])][_0xc8919f([0x63,0x65,0x69,0x6c])](_0x73577c/_0x4d02bb)));window[_0xc8919f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc8919f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1419c3,_0x99c667);}function _0x5804e6(){const _0x104c37=_0xc8919f([0x6c,0x6c,0x63,0x74,0x2d])+_0x53a2e7(_0x36ca41(_0x19e678)),_0x7a6a0b=window[_0xc8919f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc8919f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x104c37);return _0x7a6a0b?window[_0xc8919f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x562460(_0x7a6a0b),0x10)*_0x4d02bb:null;}function _0xb41ba1(_0x517230){return new window[(_0xc8919f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c99a4,_0x3276a8)=>{_0x517230[_0xc8919f([0x74,0x68,0x65,0x6e])](_0x2c99a4,_0x3276a8),window[_0xc8919f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3276a8,0x42cc5104^_0x518166);});}}_0x4eb92e[_0xc8919f([0x6f,0x6e])](_0xc8919f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1517de,_0x119119)=>{if(_0x119119[0x0]!=_0x19e678)return _0x255e25(_0xc8919f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x119119[0x1]={..._0x119119[0x1],[_0xc8919f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x113bf7};},{[_0xc8919f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc8919f([0x68,0x69,0x67,0x68])}),_0x4eb92e[_0xc8919f([0x6f,0x6e])](_0xc8919f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x26c6f9=>{_0x2c0190(_0x26c6f9[_0xc8919f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1970fd=!0x0,_0xbe8315(_0x26c6f9[_0xc8919f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xc8919f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc8919f([0x6c,0x6f,0x77])}),_0x488430[_0xc8919f([0x74,0x68,0x65,0x6e])](()=>{_0x1970fd||_0x255e25(_0xc8919f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1232b9(){return _0x4eb92e[_0xc8919f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc8919f([0x76,0x69,0x65,0x77])][_0xc8919f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xc8919f([0x61,0x75,0x74,0x6f]);}function _0x1e0ca0(){_0x4eb92e[_0xc8919f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc8919f([0x76,0x69,0x65,0x77])][_0xc8919f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc8919f([0x61,0x75,0x74,0x6f]);}}function _0x5b3f23(_0x1fad05){const _0x3bfaba=[new window[(_0xc8919f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ebc86=>setTimeout(_0x2ebc86,0x42c4bb08^_0x518166)),_0x488430[_0xc8919f([0x74,0x68,0x65,0x6e])](()=>new window[(_0xc8919f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f2976=>{const _0x1ec9a0=0x42cd85c3^_0x518166,_0x1040d7=_0x5a9e24[_0xc8919f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xa9ac92(){_0x1040d7[_0xc8919f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1ec9a0&&_0x5f2976();}_0xa9ac92(),_0x1040d7[_0xc8919f([0x6f,0x6e])](_0xc8919f([0x61,0x64,0x64]),_0xa9ac92);})),new window[(_0xc8919f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x290e35=>{function _0x44ff2e(){for(const _0x6b0b56 in window)if(window[_0xc8919f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xc8919f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x6b0b56))&&window[_0x6b0b56]==_0x286a8c)return _0x290e35();_0x4eb92e[_0xc8919f([0x73,0x74,0x61,0x74,0x65])]!=_0xc8919f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xc8919f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x44ff2e,0x42cd964c^_0x518166);}_0x2b7e36(_0xc8919f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x44ff2e();})];return window[_0xc8919f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc8919f([0x72,0x61,0x63,0x65])](_0x3bfaba)[_0xc8919f([0x74,0x68,0x65,0x6e])](()=>_0x1fad05);}async function _0x4507e7(){if(await _0x488430,_0x2b7e36(_0xc8919f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x350730=_0x5a9e24[_0xc8919f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x32cf20=_0x5a9e24[_0xc8919f([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])](_0x350730[_0xc8919f([0x69,0x64])]),_0x3df525=_0x85de41(_0xc8919f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3df525[_0xc8919f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x350730['id'],_0x32cf20?_0x32cf20['id']:null,!0x0),_0x3df525[_0xc8919f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xc8919f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3df525[_0xc8919f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3df525[_0xc8919f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5f3a66,void(_0x3df525[_0xc8919f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5f3a66);}if(_0x2b7e36(_0xc8919f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x189e30=_0x85de41(_0xc8919f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x189e30[_0xc8919f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xc8919f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x189e30[_0xc8919f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x189e30[_0xc8919f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5f3a66,_0x189e30[_0xc8919f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5f3a66;}_0x4eb92e[_0xc8919f([0x6d,0x6f,0x64,0x65,0x6c])][_0xc8919f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5f3a66,_0x4eb92e[_0xc8919f([0x6d,0x6f,0x64,0x65,0x6c])][_0xc8919f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5f3a66,_0x4eb92e[_0xc8919f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xc8919f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a581d(){return _0x2b7e36(_0xc8919f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x85de41(_0xc8919f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xc8919f([0x73,0x74,0x61,0x74,0x65])]==_0xc8919f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3bb71c(){return _0x2b7e36(_0xc8919f([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 _0x24ee12(){return _0x2b7e36(_0xc8919f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x261f00(_0x40af74){const _0x67480f=_0x11ef18();_0x4eb92e[_0x67480f]=_0xc8919f([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])+_0x40af74,_0x40af74[_0xc8919f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xc8919f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x11ef18()]=_0x286a8c),_0x40af74!=_0xc8919f([0x56,0x61,0x6c,0x69,0x64])&&_0x4507e7();}function _0x11ef18(){const _0x1a087b=window[_0xc8919f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xc8919f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xc8919f([0x6e,0x6f,0x77])]())[_0xc8919f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xc8919f([0x2e]),'');let _0x30460a=_0xc8919f([0x6b]);for(let _0x309c85=0x0;_0x309c85<_0x1a087b[_0xc8919f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x309c85+=0x2){let _0x5118ab=window[_0xc8919f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a087b[_0xc8919f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x309c85,_0x309c85+0x2));_0x5118ab>=_0x3e8904[_0xc8919f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5118ab-=_0x3e8904[_0xc8919f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30460a+=_0x3e8904[_0x5118ab];}return _0x30460a;}function _0x2ff459(){const _0x2b4938=_0x48a99c[_0xc8919f([0x73,0x70,0x6c,0x69,0x74])](_0xc8919f([0x2e]));if(0x3!=_0x2b4938[_0xc8919f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1423b6(_0x2b4938[0x1]);function _0x1423b6(_0x2c4cf9){const _0x2a7114=_0x395502(_0x2c4cf9);return _0x2a7114&&_0x1ce50f()?_0x2a7114:null;function _0x1ce50f(){const _0x564a77=_0x2a7114[_0xc8919f([0x6a,0x74,0x69])],_0x4d8d87=window[_0xc8919f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x564a77[_0xc8919f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x564a77[_0xc8919f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa23e6a={..._0x2a7114,[_0xc8919f([0x6a,0x74,0x69])]:_0x564a77[_0xc8919f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x564a77[_0xc8919f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa23e6a[_0xc8919f([0x76,0x63])],_0x36ca41(_0xa23e6a)==_0x4d8d87;}}}async function _0x262125(){let _0x3a46e3=!0x0;try{const _0x54b483=_0x48a99c[_0xc8919f([0x73,0x70,0x6c,0x69,0x74])](_0xc8919f([0x2e])),[_0x262d11,_0x5e2673,_0x4ef650]=_0x54b483;return _0x5d3e7b(_0x262d11),await _0x23f6c3(_0x262d11,_0x5e2673,_0x4ef650),_0x3a46e3;}catch{return!0x1;}function _0x5d3e7b(_0x3c6f33){const _0x42b7c1=_0x395502(_0x3c6f33);_0x42b7c1&&_0x42b7c1[_0xc8919f([0x61,0x6c,0x67])]==_0xc8919f([0x45,0x53,0x32,0x35,0x36])||(_0x3a46e3=!0x1);}async function _0x23f6c3(_0x28b88c,_0xf2b7a2,_0x2a18e8){const _0x54ed28=window[_0xc8919f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xc8919f([0x66,0x72,0x6f,0x6d])](_0x5ca73a(_0x2a18e8),_0x4ff104=>_0x4ff104[_0xc8919f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2739ad=new window[(_0xc8919f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xc8919f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x28b88c+_0xc8919f([0x2e])+_0xf2b7a2),_0x46cd3e=window[_0xc8919f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xc8919f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x46cd3e)return;const _0x599773=await _0x46cd3e[_0xc8919f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xc8919f([0x6a,0x77,0x6b]),_0x69dfd3,{[_0xc8919f([0x6e,0x61,0x6d,0x65])]:_0xc8919f([0x45,0x43,0x44,0x53,0x41]),[_0xc8919f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xc8919f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xc8919f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x46cd3e[_0xc8919f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xc8919f([0x6e,0x61,0x6d,0x65])]:_0xc8919f([0x45,0x43,0x44,0x53,0x41]),[_0xc8919f([0x68,0x61,0x73,0x68])]:{[_0xc8919f([0x6e,0x61,0x6d,0x65])]:_0xc8919f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x599773,_0x54ed28,_0x2739ad)||(_0x3a46e3=!0x1);}}function _0x395502(_0x35de65){return _0x35de65[_0xc8919f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xc8919f([0x65,0x79]))?JSON[_0xc8919f([0x70,0x61,0x72,0x73,0x65])](_0x5ca73a(_0x35de65)):null;}function _0x5ca73a(_0x2a64a4){return window[_0xc8919f([0x61,0x74,0x6f,0x62])](_0x2a64a4[_0xc8919f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xc8919f([0x2b]))[_0xc8919f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xc8919f([0x2f])));}function _0x36ca41(_0x382049){let _0x315666=0x1505;function _0xba9ff7(_0x475a4e){for(let _0x537272=0x0;_0x537272<_0x475a4e[_0xc8919f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x537272++){const _0x4c6dcc=_0x475a4e[_0xc8919f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x537272);_0x315666=(_0x315666<<0x5)+_0x315666+_0x4c6dcc,_0x315666&=_0x315666;}}function _0x4bed39(_0x3c231f){Array[_0xc8919f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c231f)?_0x3c231f[_0xc8919f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bed39):_0x3c231f&&typeof _0x3c231f==_0xc8919f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xc8919f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c231f)[_0xc8919f([0x73,0x6f,0x72,0x74])]()[_0xc8919f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x629fb7,_0x4b231c])=>{_0xba9ff7(_0x629fb7),_0x4bed39(_0x4b231c);}):_0xba9ff7(window[_0xc8919f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c231f));}return _0x4bed39(_0x382049),_0x315666>>>0x0;}function _0x53a2e7(_0x4976fd){return _0x4976fd[_0xc8919f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xc8919f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xc8919f([0x30]));}function _0x562460(_0x176f25){return _0x176f25[_0xc8919f([0x73,0x70,0x6c,0x69,0x74])]('')[_0xc8919f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xc8919f([0x6a,0x6f,0x69,0x6e])]('');}function _0x2b7e36(_0x1064a3){return _0x4eb92e[_0xc8919f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xc8919f([0x68,0x61,0x73])](_0x1064a3);}function _0x85de41(_0x4272a5){return _0x4eb92e[_0xc8919f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xc8919f([0x67,0x65,0x74])](_0x4272a5);}function _0x5f3a66(){}function _0xc8919f(_0x48e4e8){return _0x48e4e8['map'](_0x17dcbe=>String['fromCharCode'](_0x17dcbe))['join']('');}_0x261f00(await _0x18f863());}(this);}['createRevision'](_0x91b987){const _0x3e4afb=this['editor']['plugins']['get']('Users');return new I({'id':_0x91b987['id'],'name':_0x91b987['name'],'creator':_0x91b987['creatorId']?_0x3e4afb['getUser'](_0x91b987['creatorId']):null,'diffData':_0x91b987['diffData']||_0x91b987['data'],'authors':_0x91b987['authorsIds']['map'](_0x1679f3=>_0x3e4afb['getUser'](_0x1679f3)),'createdAt':new Date(_0x91b987['createdAt']),'attributes':_0x91b987['attributes'],'fromVersion':_0x91b987['fromVersion'],'toVersion':_0x91b987['toVersion']});}['addRevision'](_0x2d6c69,_0x346cb3=0x0){this['_revisions']['add'](_0x2d6c69,_0x346cb3);}['getRevision'](_0x47b8b8){return this['_revisions']['get'](_0x47b8b8);}['getRevisions'](_0x3be38a={'toJSON':!0x1}){const _0x4d26ed=Array['from'](this['_revisions']);return _0x4d26ed['reverse'](),_0x3be38a['toJSON']?_0x4d26ed['map'](_0x552c78=>_0x552c78['toJSON']()):_0x4d26ed;}['getIndex'](_0x4639d1){return this['_revisions']['getIndex'](_0x4639d1);}['getEarlierVisibleRevision'](_0x5cc8dd){const [,_0x591c98]=this['getRevisionsIterator'](_0x5cc8dd,{'direction':'earlier'});return _0x591c98;}['getLaterVisibleRevision'](_0x43cf4c){const [,_0x31deac]=this['getRevisionsIterator'](_0x43cf4c,{'direction':'later'});return _0x31deac;}['getRevisionsInDiff'](_0x419e0c){const _0x5bd21e=[];for(const _0x184623 of this['getRevisionsIterator'](_0x419e0c['newRevisionId']))if(_0x5bd21e['push'](_0x184623),_0x184623['id']===_0x419e0c['oldRevisionId'])break;return _0x5bd21e;}*['getRevisionsIterator'](_0x2ee11e,{direction:_0x358dc6='earlier',filter:_0x562415=()=>!0x0}={}){const _0x48fb9a='earlier'===_0x358dc6?0x1:-0x1;let _0x11ce02=this['_revisions']['get'](_0x2ee11e),_0x10b34b=this['getIndex'](_0x11ce02);for(yield _0x11ce02;_0x11ce02;){if(_0x10b34b+=_0x48fb9a,_0x11ce02=this['getRevision'](_0x10b34b),!_0x11ce02)return;_0x562415(_0x11ce02)&&(yield _0x11ce02);}}}class $ extends _0x3a7117{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x49f7fb,'c'],[_0x319301,'a'],[_0x56653d,'e'],[_0x4b14f6,'r'],[_0x3dc868,'u']]);['_typeCharToViewClass']=new Map([['c',_0x49f7fb],['a',_0x319301],['e',_0x56653d],['r',_0x4b14f6],['u',_0x3dc868]]);async['loadRevisionData'](_0x5e6b59,_0x352b22){if(_0x5e6b59['diffData']||!_0x352b22)return;const _0x49f9b4=this['editor']['config']['get']('collaboration.channelId'),_0x2fd645=await _0x352b22['getRevision']({'channelId':_0x49f9b4,'revisionId':_0x5e6b59['id']});_0x5e6b59['diffData']=_0x2fd645['diffData'];}['getRevisionDocumentData'](_0x21b703){const _0x1ee87d={};for(const _0x492974 in _0x21b703['diffData']){if(_0x21b703['diffData'][_0x492974]['attachChange']&&!_0x21b703['diffData'][_0x492974]['attachChange']['isAttached'])continue;const _0x19664c=this['_removeRevisionMarkers'](JSON['parse'](_0x21b703['diffData'][_0x492974]['insertions'])),_0x4faff0=this['editor']['editing']['view']['document'],_0x2b3b32=new _0x5c6a22(_0x4faff0,_0x19664c['map'](_0x47da3b=>this['_getViewFromDiffObj'](_0x47da3b,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1ee87d[_0x492974]=this['editor']['data']['processor']['toData'](_0x2b3b32),this['editor']['data']['processor']['useFillerType']('default');}return _0x1ee87d;}['getRevisionRootsAttributes'](_0x405ca2){const _0x1f2591={};for(const _0x5090c1 in _0x405ca2['diffData'])_0x405ca2['diffData'][_0x5090c1]['attachChange']&&!_0x405ca2['diffData'][_0x5090c1]['attachChange']['isAttached']||(_0x1f2591[_0x5090c1]=_0x405ca2['diffData'][_0x5090c1]['attributesAfter']||{});return _0x1f2591;}['_getTypeCharForViewElement'](_0x51d776){return this['_viewClassToTypeChar']['get'](_0x51d776['constructor']);}['_getViewFromDiffObj'](_0x5f2b99,_0x130032){const _0x474034=this['editor']['editing']['view']['document'];if('string'==typeof _0x5f2b99)return new _0x14b7d4(_0x474034,_0x5f2b99);{let _0x2ce231,_0x4417ad;_0x4417ad='u'==_0x5f2b99['type']||'r'==_0x5f2b99['type']?[]:_0x5f2b99['children']['map'](_0x387331=>this['_getViewFromDiffObj'](_0x387331,_0x130032));const _0x22c51d=this['_typeCharToViewClass']['get'](_0x5f2b99['type'])||_0x3421ca,_0x47fc1e=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2ce231=new _0x22c51d(_0x474034,_0x5f2b99['name'],_0x5f2b99['attributes'],_0x4417ad),'u'==_0x5f2b99['type']&&_0x5f2b99['children'][0x0]){const _0x52912f=_0x5f2b99['children'][0x0];if(_0x2ce231['render']=function(_0x288fed){const _0x532af0=_0x288fed['createElement']('div');return _0x532af0['innerHTML']=_0x52912f,_0x532af0['childNodes'][0x0];},_0x130032){const _0x57e37a=new _0x5c6a22(_0x474034);_0x57e37a['_appendChild'](_0x2ce231);const _0x906f44=Array['from'](_0x47fc1e['viewChildrenToDom'](_0x57e37a,{'bind':!0x1})),_0x1b1297=_0x47fc1e['domDocument']['createElement']('div');_0x1b1297['append'](..._0x906f44),_0x2ce231=Array['from'](_0x47fc1e['domChildrenToView'](_0x1b1297))[0x0];}}else{if('r'==_0x5f2b99['type']&&_0x5f2b99['children'][0x0]){const _0x508164=_0x5f2b99['children'][0x0];if(_0x2ce231['render']=function(_0x11fee5){_0x11fee5['innerHTML']=_0x508164;},_0x130032){const _0x27d0e0=new _0x5c6a22(_0x474034);_0x27d0e0['_appendChild'](_0x2ce231);const _0xd224b6=Array['from'](_0x47fc1e['viewChildrenToDom'](_0x27d0e0,{'bind':!0x1})),_0x33584f=_0x47fc1e['domDocument']['createElement']('div');_0x33584f['append'](..._0xd224b6);const _0x1f17fb=Array['from'](_0x47fc1e['domChildrenToView'](_0x33584f));_0x1f17fb['length']>0x1?_0x2ce231['_appendChild'](_0x1f17fb):_0x2ce231=_0x1f17fb[0x0];}}}if(_0x5f2b99['customProperties']){for(const [_0xa3fee6,_0x45401b]of _0x5f2b99['customProperties'])_0x2ce231['_setCustomProperty'](_0xa3fee6,_0x45401b);}const _0x28337c=void 0x0===_0x5f2b99['fillerOffset']?null:_0x5f2b99['fillerOffset'];return null!==_0x28337c&&(_0x2ce231['getFillerOffset']=()=>_0x28337c),_0x2ce231;}}['_makeModelFromViewString'](_0x178985){const _0x5a3980=JSON['parse'](_0x178985),_0x808bf=this['editor']['editing']['view']['document'],_0x38196e=new _0x5c6a22(_0x808bf,_0x5a3980['map'](_0x189fa2=>this['_getViewFromDiffObj'](_0x189fa2,!0x0)));return this['editor']['data']['toModel'](_0x38196e);}['_removeRevisionMarkers'](_0x2a372b){return(_0x2a372b=_0x2a372b['filter'](_0x31be9b=>!_0x31be9b['name']||'revision-start'!==_0x31be9b['name']&&'revision-end'!==_0x31be9b['name']))['forEach'](_0x162a09=>{'string'!=typeof _0x162a09&&(_0x162a09['children']=this['_removeRevisionMarkers'](_0x162a09['children']),_0x162a09['attributes']=_0x162a09['attributes']['filter'](_0x3dc56e=>!_0x3dc56e[0x0]['startsWith']('data-revision-')));}),_0x2a372b;}}function R(_0x3f83d1,_0x276ce2,_0x248964){const t=_0x3f83d1['t'];switch(_0x276ce2){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'},_0x248964);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x248964);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x3a7117{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x315441,S,$,_0x178404];}constructor(_0x42d3ae){super(_0x42d3ae),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2a0199=_0x17ccda();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2a0199},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x1d42c9=this['repository']['getRevision'](0x0),_0x2c5180=_0x1d42c9&&null===_0x1d42c9['creator']?_0x1d42c9:null;if(this['_continueCurrentRevision']=!!_0x2c5180&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x509fc7=this['_source']['getCurrentRevisionId'](),_0x25a1e7=this['repository']['getRevision'](_0x509fc7);if(_0x25a1e7)this['_startingVersion']=_0x25a1e7['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x608af4=this['_source']['history']['_operations']['find'](_0x5933b6=>!_0x5933b6['_isInit']),_0x1480be=_0x608af4?_0x608af4['baseVersion']:this['_source']['history']['version'];_0x1d42c9?(_0x1d42c9['toVersion']<_0x1480be&&_0x1d42c9['_update']({'toVersion':_0x1480be}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2c5180['id'],this['_startingVersion']=_0x2c5180['fromVersion']):(this['_startingVersion']=_0x1d42c9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1480be,this['_continueCurrentRevision']=!0x1);}}else _0x2c5180&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2c5180['toVersion'],this['editor']['model']['document']['history']['version']),_0x2c5180['fromVersion']===_0x2c5180['toVersion']?(0x0!==_0x2c5180['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2c5180['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2c5180['id'],this['_startingVersion']=_0x2c5180['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',_0x347a08=>!_0x347a08),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x299867=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x33c005;for(const _0x11d034 in _0x299867){const _0x17741f=_0x11d034,_0x4d943a=_0x299867[_0x17741f];if('revisionHistoryLicenseKeyValid'==_0x4d943a||'revisionHistoryLicenseKeyInvalid'==_0x4d943a||'revisionHistoryLicenseKeyExpired'==_0x4d943a||'revisionHistoryLicenseKeyDomainLimit'==_0x4d943a||'revisionHistoryLicenseKeyNotAllowed'==_0x4d943a||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4d943a||'revisionHistoryLicenseKeyTrialLimit'==_0x4d943a||'revisionHistoryLicenseKeyUsageLimit'==_0x4d943a){delete _0x299867[_0x17741f],_0x33c005=_0x4d943a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x33c005&&_0x299867['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x33c005&&_0x299867['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x33c005&&_0x299867['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x33c005&&_0x299867['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x33c005&&_0x299867['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x33c005&&_0x299867['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x33c005&&_0x299867['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4d33a0=this['repository']['getRevision'](0x0),_0x28040c=await this['getRevisionDocumentData'](_0x4d33a0),_0x110eee=await this['getRevisionRootsAttributes'](_0x4d33a0);this['_replaceEditorDataWithRevisionData'](_0x28040c,_0x110eee);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4ab248){this['_source']=_0x4ab248;}async['update'](){const _0x360961=await this['_source']['getLatestVersion']();if(_0x360961>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1212c8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x360961});_0x1212c8['authors']=_0x1212c8['authorsIds']['map'](_0x286abf=>this['editor']['plugins']['get']('Users')['getUser'](_0x286abf)),this['currentRevision']['_update'](_0x1212c8);}}async['saveRevision'](_0x44b267={},_0x186cb9=null){const _0x2a9224=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x186cb9>this['currentRevision']['toVersion']&&(_0x186cb9=null),null===_0x186cb9&&(_0x186cb9=await this['_source']['getLatestVersion']());const _0x1363d3=this['_getFromVersion'](_0x186cb9),_0x68994c=this['buildRevisionData']({'from':_0x1363d3,'to':_0x186cb9});if(this['currentRevision']['toVersion']<_0x186cb9){const _0x1c138f=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x186cb9,'to':_0x186cb9});_0x1c138f['authors']=[],_0x1c138f['authorsIds']=[],_0x1c138f['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1c138f,!0x0),delete _0x1c138f['authors'],_0x2a9224['push'](_0x1c138f);}_0x44b267['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x44b267['name']=_0x44b267['name']||null,_0x44b267['id']=_0x44b267['id']||_0x17ccda(),_0x44b267={..._0x44b267,..._0x68994c};const _0x48610d=this['addRevisionData'](_0x44b267);_0x2a9224['push'](_0x44b267);const _0xaaa6e8=this['repository']['getIndex'](_0x48610d);if(0x0!==_0xaaa6e8){const _0x3ab849=this['repository']['getRevision'](_0xaaa6e8-0x1);if(_0x3ab849['fromVersion']!==_0x186cb9){const _0x48e8ee=this['_revisionDataBuilder']['getData'](_0x186cb9,_0x3ab849['toVersion']),_0x8192ff={'id':_0x3ab849['id'],'diffData':_0x48e8ee['diffData'],'authorsIds':_0x48e8ee['authorsIds'],'authors':_0x48e8ee['authorsIds']['map'](_0x69c2e3=>this['editor']['plugins']['get']('Users')['getUser'](_0x69c2e3)),'fromVersion':_0x186cb9};_0x3ab849===this['currentRevision']&&(_0x8192ff['createdAt']=new Date(_0x44b267['createdAt']['getTime']()+0xa)),_0x3ab849['_update'](_0x8192ff,!0x0),delete _0x8192ff['authors'],_0x2a9224['push'](_0x8192ff);}}if(this['adapter']){for(const _0x3eb121 of _0x2a9224)this['_bufferUpdate'](_0x3eb121['id'],_0x3eb121,!0x0);this['sendBufferedUpdates']();}return _0x48610d;}['addRevisionData'](_0x771495){const _0x5b1043=this['repository']['createRevision'](_0x771495);return this['adapter']&&_0x5b1043['on']('_update',(_0xa86546,_0x2e6eb1,_0x655235)=>{_0x655235||(this['_bufferUpdate'](_0x2e6eb1['id'],_0x2e6eb1,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5b1043,this['_findInsertionIndex'](_0x5b1043)),_0x5b1043;}async['getRevisionDocumentData'](_0xe781a4){return await this['_utils']['loadRevisionData'](_0xe781a4,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xe781a4);}async['getRevisionRootsAttributes'](_0x10726c){return await this['_utils']['loadRevisionData'](_0x10726c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x10726c);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5e8988=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x26f7df=0x0;_0x26f7df<_0x5e8988['length'];_0x26f7df++){const _0x3819c2=_0x5e8988[_0x26f7df];let _0x379af5=!0x1;for(const _0x4da3ad of Object['keys'](_0x3819c2))void 0x0===_0x3819c2[_0x4da3ad]?delete _0x3819c2[_0x4da3ad]:'id'!==_0x4da3ad&&(_0x379af5=!0x0);_0x379af5||(_0x5e8988[_0x26f7df]=null);}if(_0x5e8988=_0x5e8988['filter'](_0x1ca9e8=>null!==_0x1ca9e8),!_0x5e8988['length'])return;for(let _0x50bbd3=0x0;_0x50bbd3<_0x5e8988['length'];_0x50bbd3++){const _0x3bfdaf=_0x5e8988[_0x50bbd3];void 0x0!==_0x3bfdaf['fromVersion']&&void 0x0===_0x3bfdaf['toVersion']&&(_0x3bfdaf['toVersion']=this['repository']['getRevision'](_0x3bfdaf['id'])['toVersion']),void 0x0!==_0x3bfdaf['toVersion']&&void 0x0===_0x3bfdaf['fromVersion']&&(_0x3bfdaf['fromVersion']=this['repository']['getRevision'](_0x3bfdaf['id'])['fromVersion']);}const _0x5744eb=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5e8988,_0x5744eb)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x13cc87=>{if(_0x13cc87){for(const _0x23f761 of _0x13cc87)this['setRevisionData']({'id':_0x23f761['id'],'createdAt':_0x23f761['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x1f96c4=null,from:_0x6dbad7=null,to:_0x52806c=null}){_0x6dbad7=null!==_0x6dbad7?_0x6dbad7:_0x1f96c4['fromVersion'],_0x52806c=null!==_0x52806c?_0x52806c:_0x1f96c4['toVersion'];const _0x512523=this['_revisionDataBuilder']['getData'](_0x6dbad7,_0x52806c),_0x260b35={'diffData':_0x512523['diffData'],'authorsIds':_0x512523['authorsIds'],'fromVersion':_0x6dbad7,'toVersion':_0x52806c};if(!_0x1f96c4||_0x52806c!==_0x1f96c4['toVersion']){const _0x4b9125=_0x52806c-0x1,_0x39746e=this['_source']['history']['getOperation'](_0x4b9125);_0x260b35['createdAt']=_0x39746e&&_0x39746e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x6dbad7===this['_loadedStateData']['fromVersion']){for(const _0x4501fb of this['_loadedStateData']['authors'])_0x260b35['authorsIds']['includes'](_0x4501fb['id'])||_0x260b35['authorsIds']['push'](_0x4501fb['id']);}return _0x260b35;}['_bufferUpdate'](_0x166b61,_0x502c5b,_0x4d212c){if(this['_bufferedUpdates']['has'](_0x166b61)){const _0x2ca2fd=this['_bufferedUpdates']['get'](_0x166b61);_0x502c5b=_0x4d212c?{..._0x2ca2fd,..._0x502c5b}:{..._0x502c5b,..._0x2ca2fd};}this['_bufferedUpdates']['set'](_0x166b61,_0x502c5b);}['setRevisionData'](_0x1396fd){const _0x474da8=this['repository']['getRevision'](_0x1396fd['id']);if(_0x1396fd['createdAt']&&(_0x1396fd['createdAt']=new Date(_0x1396fd['createdAt'])),_0x1396fd['authorsIds']){const _0x28aac7=this['editor']['plugins']['get']('Users');_0x1396fd['authors']=_0x1396fd['authorsIds']['map'](_0x4d2b3d=>_0x28aac7['getUser'](_0x4d2b3d));}_0x474da8['_update'](_0x1396fd,!0x0);}['_createInitialRevision'](_0x25a46c){const _0x2cad4b=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2cad4b)this['_initialRevisionId']=_0x2cad4b['id'];else{const _0x2a349a=!this['editor']['model']['document']['roots']['find'](_0x446b38=>this['editor']['model']['hasContent'](_0x446b38)),_0x8d43bd=this['editor']['plugins']['get']('Users')['me']['id'],_0x20de04=R(this['editor']['locale'],_0x2a349a?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x25a46c,'to':_0x25a46c,'id':this['_initialRevisionId'],'name':_0x20de04,'creatorId':_0x8d43bd});}}['_createCurrentRevision'](_0x25332b){const _0x1f88e2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1f88e2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x25332b,'to':_0x25332b,'id':_0x1f88e2,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x2dccb6,_0x497247){let _0x15c8c2=this['editor']['config']['get']('initialData'),_0x34ff63=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x15c8c2){_0x15c8c2={};for(const _0x5aaed3 of this['editor']['model']['document']['getRootNames']())_0x15c8c2[_0x5aaed3]='';}if('string'==typeof _0x15c8c2&&(_0x15c8c2={'main':_0x15c8c2}),void 0x0===_0x34ff63){_0x34ff63={};for(const _0x482051 of this['editor']['model']['document']['getRootNames']())_0x34ff63[_0x482051]={};}let _0x5788fb=!0x1;const _0x3ccf8b=Object['keys'](_0x15c8c2),_0x23de0f=Object['keys'](_0x2dccb6);for(const _0x20be7e of _0x3ccf8b){if(_0x15c8c2[_0x20be7e]!==_0x2dccb6[_0x20be7e]&&''!==_0x15c8c2[_0x20be7e]['trim']()){_0x5788fb=!0x0;break;}if(!_0x2dbdeb(_0x34ff63[_0x20be7e],_0x497247[_0x20be7e])&&Object['keys'](_0x34ff63[_0x20be7e])['length']>0x0){_0x5788fb=!0x0;break;}}_0x5788fb||(_0x5788fb=_0x23de0f['some'](_0x336cd5=>!this['editor']['model']['document']['getRoot'](_0x336cd5))),_0x5788fb&&_0x10c5ab('editor-initial-data-replaced-with-revision-data',{'editorData':_0x15c8c2,'editorRootsAttributes':_0x34ff63,'revisionData':_0x2dccb6,'revisionRootsAttributes':_0x497247}),this['editor']['config']['set']('initialData',_0x2dccb6),this['editor']['config']['set']('rootsAttributes',_0x497247);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x28c594=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x28c594['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x550e2e){const _0x230c53=this['repository']['getRevisions']();_0x230c53['reverse']();let _0x277508=0x0;for(;_0x277508<_0x230c53['length'];){const _0x7f9824=_0x230c53[_0x277508];if(_0x7f9824===this['currentRevision']){_0x277508++;continue;}if(_0x7f9824['id']===this['_initialRevisionId'])break;const _0x1ba5dc=_0x550e2e['toVersion']-_0x7f9824['toVersion']||_0x550e2e['fromVersion']-_0x7f9824['fromVersion'];if(_0x1ba5dc>0x0)break;if(_0x1ba5dc<0x0)_0x277508++;else{if(!_0x550e2e['creator']&&_0x7f9824['creator'])break;if(_0x7f9824['creator']||!_0x550e2e['creator']){if(_0x550e2e['createdAt']>_0x7f9824['createdAt'])break;_0x277508++;}else _0x277508++;}}return _0x277508;}['_getFromVersion'](_0x2e4e59){const _0x122eb4=this['repository']['getRevisions']();_0x122eb4['reverse'](),_0x122eb4['shift']();const _0x256b66=_0x122eb4['find'](_0x5ba383=>_0x5ba383['toVersion']<=_0x2e4e59)['toVersion'];return _0x256b66<this['_startingVersion']?this['_startingVersion']:_0x256b66;}['_makeRevision']({name:_0x87a477,from:_0x32ee11,to:_0x3a5d83,creatorId:_0x38bc9a,id:_0x5aab01}){const _0x2cc7cc=this['buildRevisionData']({'from':_0x32ee11,'to':_0x3a5d83});_0x2cc7cc['name']=_0x87a477,_0x2cc7cc['creatorId']=_0x38bc9a,_0x2cc7cc['id']=_0x5aab01;const _0x3485f2=this['addRevisionData'](_0x2cc7cc);return this['adapter']&&this['_bufferUpdate'](_0x2cc7cc['id'],_0x2cc7cc,!0x0),_0x3485f2;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5e6008){this['editor']=_0x5e6008,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'](_0x12d16d){this['source']=_0x12d16d;const _0x1bd085=new Map(),_0x2546e2=new Map(),_0x52821c=this['editor']['model']['document']['roots']['map'](_0xbfe9db=>_0xbfe9db['rootName']);for(const _0x38706c of _0x52821c){const _0x486e0f=this['editor']['model']['document']['getRoot'](_0x38706c),_0x3a4ad4=x(_0x486e0f);_0x1bd085['set'](_0x38706c,_0x3a4ad4),_0x2546e2['set'](_0x38706c,Object['fromEntries'](_0x486e0f['getAttributes']()));}const _0x1e1590=Array['from'](this['editor']['model']['markers'])['map'](_0x23ed7c=>[_0x23ed7c['name'],_0x23ed7c['getRange']()]),_0x5c83f0=this['source']['version'];this['_saveMetaData'](_0x5c83f0,_0x1bd085,_0x1e1590,_0x2546e2),this['_startingRevisionId']=this['_revisionId'];const _0x25e057=new Map(),_0x5c1c50=new Map();for(const _0x2c1b58 of _0x52821c){const _0x1dd70a=N(_0x2c1b58);_0x25e057['set'](_0x2c1b58,_0x1dd70a),_0x5c1c50['set'](_0x2c1b58,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x25e057,[],_0x5c1c50);}['getData'](_0x1e27c8,_0x95fc05){if(this['_lastFrom']===_0x1e27c8&&this['_lastTo']<=_0x95fc05)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x95fc05,!0x0);else{if(!this['_savedMetaData']['has'](_0x1e27c8)){const _0x407a67=this['_getPreviousFrom'](_0x1e27c8);this['_calculateMetaData'](_0x407a67,_0x1e27c8,!0x1);}this['_calculateMetaData'](_0x1e27c8,_0x95fc05,!0x0);}return this['_lastFrom']=_0x1e27c8,this['_lastTo']=_0x95fc05,this['_getState']();}['loadState'](_0x32c47d){const _0x5388d4=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x32c47d['fromVersion'],this['_lastTo']=_0x32c47d['toVersion'];for(const _0x3521ed in _0x32c47d['diffData']){const _0x84039e=_0x32c47d['diffData'][_0x3521ed]['attachChange'],_0x336d96=_0x5d7334(_0x32c47d['diffData'][_0x3521ed]['attributesBefore'])||{},_0x20978a=_0x5388d4['_makeModelFromViewString'](_0x32c47d['diffData'][_0x3521ed]['deletions']);_0x20978a['rootName']=_0x3521ed,_0x20978a['_isAttached']=!_0x84039e||!_0x84039e['isAttached'],_0x20978a['isAttached']=()=>_0x20978a['_isAttached'],this['_baseRoots']['set'](_0x3521ed,_0x20978a),this['_baseRootsAttributes']['set'](_0x3521ed,_0x336d96),_0x84039e&&this['_touchedRoots']['set'](_0x3521ed,_0x84039e);const _0x5be4dd=this['_makeIdsRoot'](_0x20978a);this['_baseIdsRoots']['set'](_0x3521ed,_0x5be4dd);for(const [_0x27f8e4,_0x21bfa1]of _0x20978a['markers']){if(!_0x27f8e4['startsWith']('revision:'))continue;const _0x48c819=_0x27f8e4['split'](':')[0x2];for(const _0x1b1866 of _0x21bfa1['getWalker']({'singleCharacters':!0x0})){const _0x10ebe0=this['_getVidAttributeName'](_0x1b1866),_0x4349bc='elementEnd'==_0x1b1866['type']?_0x1b1866['previousPosition']['path']['slice'](0x0,-0x1):_0x1b1866['previousPosition']['path'],_0xfa569a=_0x5be4dd['getNodeByPath'](_0x4349bc)['getAttribute'](_0x10ebe0);this['_touched']['set'](_0xfa569a,{'userId':_0x48c819});}}}this['_startingRevisionId']=this['_revisionId'];const _0xf13447=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2a5c5b=>!this['_touched']['has'](_0x2a5c5b));let _0x584616=0x0;const _0x43f16c=new Map();for(const _0x4b605b in _0x32c47d['diffData']){const _0x294d81=_0x32c47d['diffData'][_0x4b605b]['attachChange'],_0x2db036=_0x5d7334(_0x32c47d['diffData'][_0x4b605b]['attributesAfter'])||{},_0x2e86b6=_0x5388d4['_makeModelFromViewString'](_0x32c47d['diffData'][_0x4b605b]['insertions']);_0x2e86b6['rootName']=_0x4b605b,_0x2e86b6['_isAttached']=!_0x294d81||_0x294d81['isAttached'],_0x2e86b6['isAttached']=()=>_0x2e86b6['_isAttached'],this['_diffRoots']['set'](_0x4b605b,_0x2e86b6),this['_diffRootsAttributes']['set'](_0x4b605b,_0x2db036);const _0x1f9e36=this['_makeIdsRoot'](_0x2e86b6,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4b605b,_0x1f9e36),_0x43f16c['set'](_0x4b605b,_0x2e86b6['isAttached']()?_0x2db036:{});for(const [_0x4e5cd3,_0x4492da]of _0x2e86b6['markers']){if(!_0x4e5cd3['startsWith']('revision:'))continue;const _0x39db4f=_0x4e5cd3['split'](':')[0x2];for(const _0x179ecc of _0x4492da['getWalker']({'singleCharacters':!0x0})){const _0x42e116=this['_getVidAttributeName'](_0x179ecc),_0x11bbc5=this['_revisionId']++,_0x511922='elementEnd'==_0x179ecc['type']?_0x179ecc['previousPosition']['path']['slice'](0x0,-0x1):_0x179ecc['previousPosition']['path'];_0x1f9e36['getNodeByPath'](_0x511922)['_setAttribute'](_0x42e116,_0x11bbc5),this['_touched']['set'](_0x11bbc5,{'userId':_0x39db4f});}}for(const _0x2ef586 of this['editor']['model']['createRangeIn'](_0x2e86b6)['getWalker']({'singleCharacters':!0x0})){const _0x5e4652=this['_getVidAttributeName'](_0x2ef586),_0x7e3c06='elementEnd'==_0x2ef586['type']?_0x2ef586['previousPosition']['path']['slice'](0x0,-0x1):_0x2ef586['previousPosition']['path'],_0x256f99=_0x1f9e36['getNodeByPath'](_0x7e3c06);_0x256f99['getAttribute'](_0x5e4652)>0x0||_0x256f99['_setAttribute'](_0x5e4652,_0xf13447[_0x584616++]);}for(const [_0x391d7d,_0x4d14be]of _0x2e86b6['markers'])_0x391d7d['startsWith']('revision:')||this['_markers']['set'](_0x391d7d,_0x4d14be);}const _0x5588f0=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5588f0),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5588f0,0x1));const _0x60a79e=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x60a79e),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x60a79e,0x1));const _0x2cc97f=Array['from'](this['_diffRoots'])['map'](([_0x3b34fd,_0x384b93])=>[_0x3b34fd,x(_0x384b93)]);this['_saveMetaData'](this['_lastTo'],_0x2cc97f,this['_markers'],_0x43f16c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x17cfa9,_0x16e4fb,_0x71766,_0xeb1aa){const _0x31baff=new Map(_0x16e4fb),_0x11f0e8=new Map(_0x5d7334(_0xeb1aa)),_0x17002c=new Map();for(const [_0x154cbf,_0x2cccb8]of _0x71766)_0x17002c['set'](_0x154cbf,{'start':_0x2cccb8['start']['clone'](),'end':_0x2cccb8['end']['clone'](),'rootName':_0x2cccb8['root']['rootName']});this['_savedMetaData']['set'](_0x17cfa9,{'roots':_0x31baff,'markers':_0x17002c,'rootsAttributes':_0x11f0e8});}['_removeMetaData'](_0x1bf9c2){this['_savedMetaData']['delete'](_0x1bf9c2);}['_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'](_0x2c34e2,_0x5cc363=null){let _0x2dcd65=null;_0x2c34e2['is']('documentFragment')||(_0x2dcd65=new _0x17ffdc(_0x2c34e2['name'],{'vid_start':null===_0x5cc363?this['_revisionId']++:_0x5cc363++}));const _0x4a6182=[];for(const _0x3c2e87 of _0x2c34e2['getChildren']())if(_0x3c2e87['is']('element')){_0x4a6182['push'](this['_makeIdsRoot'](_0x3c2e87,_0x5cc363));const _0x3b3679=_0x4a6182[_0x4a6182['length']-0x1];null!==_0x5cc363&&(_0x5cc363=_0x3b3679['is']('element','$text')?_0x3b3679['getAttribute']('vid')+0x1:_0x3b3679['getAttribute']('vid_end')+0x1);}else{for(let _0x3fc53b=0x0;_0x3fc53b<_0x3c2e87['offsetSize'];_0x3fc53b++)_0x4a6182['push'](new _0x17ffdc('$text',{'vid':null===_0x5cc363?this['_revisionId']++:_0x5cc363++}));}if(_0x2c34e2['is']('documentFragment')){const _0x2d1aa5=N(_0x2c34e2['rootName']);return _0x2d1aa5['_insertChild'](0x0,_0x4a6182),_0x2d1aa5;}return _0x2dcd65['_setAttribute']('vid_end',null===_0x5cc363?this['_revisionId']++:_0x5cc363++),_0x2dcd65['_insertChild'](0x0,_0x4a6182),_0x2dcd65;}['_calculateMetaData'](_0x5bfd2a,_0x482e51,_0x1e64c0){this['_reset']();const {roots:_0x37ae8f,markers:_0x572c63,rootsAttributes:_0x4d4021}=this['_savedMetaData']['get'](_0x5bfd2a);this['_baseRoots']=new Map(_0x37ae8f),this['_baseRootsAttributes']=new Map(_0x5d7334(_0x4d4021));for(const [_0x2b2c64,_0x11b695]of this['_baseRoots'])if('$graveyard'!==_0x2b2c64&&(this['_diffRoots']['set'](_0x2b2c64,x(_0x11b695)),this['_diffRootsAttributes']=new Map(_0x5d7334(_0x4d4021)),_0x1e64c0)){const _0x36c7ae=this['_revisionId'];this['_idsRoots']['set'](_0x2b2c64,this['_makeIdsRoot'](_0x11b695)),this['_baseIdsRoots']['set'](_0x2b2c64,this['_makeIdsRoot'](_0x11b695,_0x36c7ae));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x1e64c0&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x21406b,_0x5e688a]of _0x572c63){const _0x3c09fd=this['_baseRoots']['get'](_0x5e688a['rootName']),_0x3e6080=this['_diffRoots']['get'](_0x5e688a['rootName']),_0x50cb3c=new _0x4fa97a(this['_fixPosition'](_0x5e688a['start'],_0x3c09fd),this['_fixPosition'](_0x5e688a['end'],_0x3c09fd)),_0xa39d3c=this['_fixRange'](_0x50cb3c,_0x3e6080);_0x3c09fd['markers']['set'](_0x21406b,_0x50cb3c),this['_markers']['set'](_0x21406b,_0xa39d3c);}this['_applyOperations'](_0x5bfd2a,_0x482e51,_0x1e64c0);}['_applyOperations'](_0x1807a7,_0x1bf03d,_0x107c04){for(const _0x455b8b of this['source']['getOperations'](_0x1807a7,_0x1bf03d))this['_handleOperation'](_0x455b8b,_0x107c04);for(const _0x26f689 of this['_diffRoots']['values']())_0x26f689['markers']['clear']();for(const [_0x529855,_0xc31ba0]of this['_markers']){this['_diffRoots']['get'](_0xc31ba0['root']['rootName'])['markers']['set'](_0x529855,_0xc31ba0['clone']());}const _0x3d952d=new Map(),_0x57f1ab=new Map();for(const [_0x3d1471,_0x5ad74c]of this['_diffRoots'])_0x3d952d['set'](_0x3d1471,x(_0x5ad74c)),_0x57f1ab['set'](_0x3d1471,this['_diffRootsAttributes']['get'](_0x3d1471));this['_saveMetaData'](_0x1bf03d,_0x3d952d,this['_markers'],_0x57f1ab);}['_getPreviousFrom'](_0x1d2c5b){const _0x383fe5=Array['from'](this['_savedMetaData']['keys']());_0x383fe5['sort']((_0x3b6108,_0x40da9e)=>_0x3b6108-_0x40da9e),_0x383fe5['reverse']();for(const _0x1a337b of _0x383fe5)if(_0x1a337b<_0x1d2c5b)return _0x1a337b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1ab6c1,_0x4879c1){const _0x1a4358=Array['from'](_0x4879c1['markers'])['map'](([_0x153f4b,_0x1f6958])=>[_0x153f4b,this['_fixRange'](_0x1f6958,_0x1ab6c1)]);_0x1ab6c1['markers']=new Map(_0x1a4358);}['_transformMarkers'](_0x2f72b9){for(const _0x5d6fe8 of this['_markers']['values']()){const _0x1626b1=_0x5d6fe8['getTransformedByOperation'](_0x2f72b9),_0x57371b=_0x4fa97a['_createFromRanges'](_0x1626b1);_0x5d6fe8['start']=_0x57371b['start'],_0x5d6fe8['end']=_0x57371b['end'];}}['_handleOperation'](_0x24c033,_0x3c9a5a){if('addRoot'!=_0x24c033['type']&&'detachRoot'!=_0x24c033['type']){if('insert'==_0x24c033['type']){const _0x2b14a6=_0x24c033['position']['root']['rootName'];this['_diffRoots']['has'](_0x2b14a6)||(this['_diffRoots']['set'](_0x2b14a6,N(_0x2b14a6,!0x0)),this['_diffRootsAttributes']['set'](_0x2b14a6,{}),_0x3c9a5a&&this['_idsRoots']['set'](_0x2b14a6,N(_0x2b14a6,!0x0)));}else{if('addRootAttribute'==_0x24c033['type']||'removeRootAttribute'==_0x24c033['type']||'changeRootAttribute'==_0x24c033['type'])return void this['_handleRootAttributeOperation'](_0x24c033);'marker'==_0x24c033['type']&&this['_handleMarkerOperation'](_0x24c033);}if('marker'!==_0x24c033['type']){const _0x2cedfc=this['_cloneOperation'](_0x24c033,this['_diffRoots']);_0x2cedfc['_execute'](),this['_transformMarkers'](_0x2cedfc);}if(_0x3c9a5a)switch(_0x24c033['type']){case'insert':this['_handleInsertOperation'](_0x24c033);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x24c033);break;case'merge':this['_handleMergeOperation'](_0x24c033);break;case'split':this['_handleSplitOperation'](_0x24c033);}}else this['_handleRootOperation'](_0x24c033,_0x3c9a5a);}['_cloneOperation'](_0x33e9c5,_0x4065c7){const _0x1848a0=_0x33e9c5['clone']();return _0x1848a0['_authorId']=_0x33e9c5['_authorId'],this['_fixOperation'](_0x1848a0,_0x4065c7),_0x1848a0;}['_getBaseVids'](_0x1cb37a){return _0x1cb37a['map'](_0x40e3cb=>{const _0x49a359=this['_getVidAttributeName'](_0x40e3cb);return Number(_0x40e3cb['item']['getAttribute'](_0x49a359));});}['_generateTape'](_0x12309a,_0x30c018){if(_0x12309a['is']('element','$text'))_0x30c018['push']({'item':_0x12309a,'type':'text'});else{_0x12309a['is']('element')&&_0x30c018['push']({'item':_0x12309a,'type':'elementStart'});for(const _0x4b8b33 of _0x12309a['getChildren']())this['_generateTape'](_0x4b8b33,_0x30c018);_0x12309a['is']('element')&&_0x30c018['push']({'item':_0x12309a,'type':'elementEnd'});}return _0x30c018;}['_getState'](){const _0x226370=new Map(this['_touched']),_0x2dde7e=new Map(_0x226370),_0x5f37cf=new Map(),_0x41bc66={'insertions':{},'deletions':{}},_0xfdc9b7={'insertions':{},'deletions':{}},_0x33dcb4=new Map(),_0x3f43d7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3f43d7['delete']('$graveyard');for(const _0x5856ee of _0x3f43d7){const _0x9dfdac=this['_diffRoots']['get'](_0x5856ee)||N(_0x5856ee,!0x1),_0x2b1253=this['_baseRoots']['get'](_0x5856ee)||N(_0x5856ee,!0x1);_0x9dfdac['isAttached']()||_0x2b1253['isAttached']()?(_0x41bc66['insertions'][_0x5856ee]=x(_0x9dfdac),_0x41bc66['deletions'][_0x5856ee]=x(_0x2b1253),this['_copyMarkers'](_0x41bc66['deletions'][_0x5856ee],_0x2b1253),this['_copyMarkers'](_0x41bc66['insertions'][_0x5856ee],_0x9dfdac),_0xfdc9b7['insertions'][_0x5856ee]=this['_generateTape'](this['_idsRoots']['get'](_0x5856ee),[]),_0xfdc9b7['deletions'][_0x5856ee]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5856ee)||N(_0x5856ee,!0x1),[])):_0x3f43d7['delete'](_0x5856ee);}for(const _0x1e9688 of _0x3f43d7){const _0x33f166=_0xfdc9b7['insertions'][_0x1e9688];for(const _0x103253 of _0x33f166){const _0x5d9ad4=this['_getVidAttributeName'](_0x103253),_0x42b2c4=_0x103253['item']['getAttribute'](_0x5d9ad4);_0x2dde7e['delete'](_0x42b2c4),_0x42b2c4>=this['_startingRevisionId']&&_0x5f37cf['set'](_0x42b2c4,_0x226370['get'](_0x42b2c4));}}for(const _0x3d04c4 of _0x3f43d7){const _0x5d0196=_0xfdc9b7['insertions'][_0x3d04c4],_0x424e50=this['_getBaseVids'](_0xfdc9b7['deletions'][_0x3d04c4]);let _0x1425c0=0x0;for(const _0x1d8408 of _0x5d0196){const _0x1cd86a=this['_getVidAttributeName'](_0x1d8408),_0x573c6a=_0x1d8408['item']['getAttribute'](_0x1cd86a);if(!_0x5f37cf['has'](_0x573c6a)&&!_0x33dcb4['has'](_0x573c6a)){if(_0x2dde7e['has'](_0x573c6a))_0x1425c0++;else{if(_0x573c6a!=_0x424e50[_0x1425c0]){const _0x3cb0b1=_0x226370['get'](_0x573c6a)||_0x226370['get'](_0x424e50[_0x1425c0]);for(;_0x573c6a!=_0x424e50[_0x1425c0];)_0x2dde7e['has'](_0x424e50[_0x1425c0])||(_0x33dcb4['set'](_0x424e50[_0x1425c0],_0x3cb0b1),_0x226370['set'](_0x424e50[_0x1425c0],_0x3cb0b1)),_0x1425c0++;}_0x1425c0++;}}}}for(const _0x485c2b of _0x3f43d7){const _0x31538f=_0xfdc9b7['insertions'][_0x485c2b];for(const _0x1e4dda of _0x31538f){const _0x292b59=this['_getVidAttributeName'](_0x1e4dda),_0x23aa16=_0x1e4dda['item']['getAttribute'](_0x292b59);if(_0x33dcb4['has'](_0x23aa16)){const _0x2cb763=_0x33dcb4['get'](_0x23aa16);_0x2dde7e['has'](_0x23aa16)||_0x2dde7e['set'](_0x23aa16,{..._0x2cb763}),_0x5f37cf['set'](_0x23aa16,{..._0x2cb763});}}}for(const _0x2bd52d of _0x2dde7e['keys']())_0x2bd52d>=this['_startingRevisionId']&&_0x2dde7e['delete'](_0x2bd52d);const _0x1d7eb3=new Map();for(const _0xebf462 of _0x3f43d7){let _0x3a4bcb=_0xfdc9b7['insertions'][_0xebf462];for(const _0x38e722 of _0x3a4bcb)if(_0x38e722['item']['is']('element','tableCell')){const _0xdc8c8=this['_getVidAttributeName'](_0x38e722),_0x58ebf2=_0x38e722['item']['getAttribute'](_0xdc8c8);if(_0x5f37cf['has'](_0x58ebf2)){const _0xcd6923=_0x38e722['item']['parent']['parent']['getAttribute']('vid_start'),_0x4420a1=_0x1d7eb3['get'](_0xcd6923)||new Set();_0x4420a1['add'](_0x5f37cf['get'](_0x58ebf2)['userId']),_0x1d7eb3['set'](_0xcd6923,_0x4420a1);}}_0x3a4bcb=_0xfdc9b7['deletions'][_0xebf462];for(const _0x5bd3f1 of _0x3a4bcb)if(_0x5bd3f1['item']['is']('element','tableCell')){const _0x2dc4b8=this['_getVidAttributeName'](_0x5bd3f1),_0x5ab705=_0x5bd3f1['item']['getAttribute'](_0x2dc4b8);if(_0x2dde7e['has'](_0x5ab705)){const _0x1815b1=_0x5bd3f1['item']['parent']['parent']['getAttribute']('vid_start'),_0x35feda=_0x1d7eb3['get'](_0x1815b1)||new Set();_0x35feda['add'](_0x2dde7e['get'](_0x5ab705)['userId']),_0x1d7eb3['set'](_0x1815b1,_0x35feda);}}for(const _0x4347f9 of _0x1d7eb3['keys']())(_0x5f37cf['has'](_0x4347f9)||_0x2dde7e['has'](_0x4347f9))&&_0x1d7eb3['delete'](_0x4347f9);}for(const _0x444470 of _0x3f43d7){const _0x452d85=_0xfdc9b7['insertions'][_0x444470];let _0x7c5392=null,_0x5bfae4=null;for(const _0x30abbb of _0x452d85){const _0x2201b2=this['_getVidAttributeName'](_0x30abbb),_0x7b7218=_0x30abbb['item']['getAttribute'](_0x2201b2),_0x126235=_0x1d7eb3['get'](_0x7b7218);_0x126235&&'elementStart'==_0x30abbb['type']&&(_0x7c5392=Array['from'](_0x126235)[0x0],_0x5bfae4=_0x30abbb['item']['getAttribute']('vid_end')),_0x7c5392&&(_0x2dde7e['set'](_0x7b7218,{'userId':_0x7c5392}),_0x5f37cf['set'](_0x7b7218,{'userId':_0x7c5392})),_0x7b7218==_0x5bfae4&&(_0x7c5392=null,_0x5bfae4=null);}}const _0x524cc4={},_0x5cf0fb=new Set();for(const _0xeb92c7 of _0x3f43d7){const _0x433482=_0x41bc66['deletions'][_0xeb92c7],_0x41885c=_0x41bc66['insertions'][_0xeb92c7];for(const {userId:_0x1a7682}of this['_touchedMarkers']['values']())null!==_0x1a7682&&_0x5cf0fb['add'](_0x1a7682);for(const {userId:_0x21c2f2}of this['_touchedRoots']['values']())null!==_0x21c2f2&&_0x5cf0fb['add'](_0x21c2f2);this['_markChanges'](_0x41885c,_0xfdc9b7['insertions'][_0xeb92c7],_0x5f37cf,'insertion',_0x5cf0fb),this['_markChanges'](_0x433482,_0xfdc9b7['deletions'][_0xeb92c7],_0x2dde7e,'deletion',_0x5cf0fb),_0x524cc4[_0xeb92c7]={'insertions':this['_prepareViewToSave'](_0x41885c),'deletions':this['_prepareViewToSave'](_0x433482),'attachChange':this['_touchedRoots']['get'](_0xeb92c7)||null,'attributesBefore':_0x5d7334(this['_baseRootsAttributes']['get'](_0xeb92c7))||{},'attributesAfter':_0x5d7334(this['_diffRootsAttributes']['get'](_0xeb92c7))};}return{'diffData':_0x524cc4,'authorsIds':Array['from'](_0x5cf0fb)};}['_processRootBeforeSave'](_0x1f2fb8){for(const [,_0x37322d]of _0x1f2fb8['markers']){const _0x152cac=_0x37322d['start']['getAncestors']()['filter'](_0x5236ef=>'tableCell'==_0x5236ef['name']);for(const _0x22322a of _0x152cac)0x1==_0x22322a['childCount']&&_0x22322a['getChild'](0x0)['is']('element','paragraph')&&_0x22322a['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x7b2648){this['_processRootBeforeSave'](_0x7b2648);const _0x22065d=this['editor']['data']['toView'](_0x7b2648,{}),_0x5aa7ab=Array['from'](_0x22065d['getChildren']())['map'](_0xe1459a=>this['_getViewJson'](_0xe1459a));return JSON['stringify'](_0x5aa7ab);}['_getViewJson'](_0x14d7cc){if(_0x14d7cc['is']('$text'))return _0x14d7cc['data'];{const _0x190cbd=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xa39848=_0x14d7cc,_0xa2ed6f=this['editor']['data']['htmlProcessor']['domConverter'],_0x4b50bf={'type':_0x190cbd['_getTypeCharForViewElement'](_0xa39848),'name':_0xa39848['name'],'attributes':Array['from'](_0xa39848['getAttributes']()),'children':Array['from'](_0xa39848['getChildren']())['map'](_0x3b1021=>this['_getViewJson'](_0x3b1021))};if(_0x14d7cc['is']('uiElement')&&'$comment'!=_0x14d7cc['name']){const _0x250b43=_0x14d7cc['render'](_0xa2ed6f['domDocument'],_0xa2ed6f);_0x4b50bf['children']['push'](_0x250b43['outerHTML']);}else{if(_0x14d7cc['is']('rawElement')){const _0x10be4b=_0xa2ed6f['domDocument']['createElement'](_0xa39848['name']);_0x14d7cc['render'](_0x10be4b,_0xa2ed6f),_0x4b50bf['children']['push'](_0x10be4b['innerHTML']);}}const _0x12e60e=Array['from'](_0xa39848['getCustomProperties']());_0x12e60e['length']>0x0&&(_0x4b50bf['customProperties']=_0x12e60e);const _0x420443=_0xa39848['getFillerOffset']();return null!==_0x420443&&(_0x4b50bf['fillerOffset']=_0x420443),_0x4b50bf;}}['_markChanges'](_0x467163,_0x51dac4,_0x535ba3,_0x596d80,_0x73d203){let _0x54eded=null,_0x37e2ef=null,_0x540eff=0x0;const _0x3a7611=this['editor']['model'];for(let _0x38a656=0x0;_0x38a656<_0x51dac4['length'];_0x38a656++){const _0x52fc51=this['_getVidAttributeName'](_0x51dac4[_0x38a656]),_0x21a424=_0x51dac4[_0x38a656]['item']['getAttribute'](_0x52fc51),_0x1ecb45=_0x535ba3['get'](_0x21a424),_0x579dbf=_0x38a656==_0x51dac4['length']-0x1;(!_0x54eded&&_0x1ecb45&&(_0x54eded=_0x1ecb45,_0x37e2ef=_0x51dac4[_0x38a656]),_0x54eded&&(!_0x1ecb45||_0x1ecb45['userId']!=_0x54eded['userId']))&&(_0x4baa3e(_0x1ecb45,P(_0x37e2ef,_0x467163,_0x3a7611),P(_0x51dac4[_0x38a656],_0x467163,_0x3a7611)),_0x54eded=_0x1ecb45||null,_0x37e2ef=_0x1ecb45?_0x51dac4[_0x38a656]:null),_0x54eded&&_0x579dbf&&_0x4baa3e(_0x1ecb45,P(_0x37e2ef,_0x467163,_0x3a7611),V(_0x51dac4[_0x38a656],_0x467163,_0x3a7611));}function _0x4baa3e(_0x41e028,_0x33243a,_0x5cce14){const _0x11e0b8=_0x54eded['userId'],_0x44dc29='revision:'+_0x596d80+':'+_0x11e0b8+':'+_0x540eff++,_0x1ed623=_0x3a7611['createRange'](_0x33243a,_0x5cce14);_0x467163['markers']['set'](_0x44dc29,_0x1ed623),null!==_0x11e0b8&&_0x73d203['add'](_0x11e0b8);}}['_getVidAttributeName'](_0x6bef37){switch(_0x6bef37['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3d44dd,_0x558ccf){_0x3d44dd['baseVersion']=null;for(const _0x55a952 in _0x3d44dd){const _0x1ec816=_0x3d44dd[_0x55a952];if(_0x1ec816 instanceof _0x3b6bf5){const _0xfd4afa=_0x558ccf['get'](_0x1ec816['root']['rootName']);_0x3d44dd[_0x55a952]=this['_fixPosition'](_0x1ec816,_0xfd4afa);}if(_0x1ec816 instanceof _0x4fa97a){const _0x50d790=_0x558ccf['get'](_0x1ec816['root']['rootName']);_0x3d44dd[_0x55a952]=this['_fixRange'](_0x1ec816,_0x50d790);}'root'===_0x55a952&&(_0x3d44dd['root']=_0x558ccf['get'](_0x3d44dd['root']['rootName']));}}['_fixRange'](_0x5f0fbe,_0x439bab){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5f0fbe['start'],_0x439bab),this['_fixPosition'](_0x5f0fbe['end'],_0x439bab));}['_fixPosition'](_0x3a90d0,_0x1cc79b){return this['editor']['model']['createPositionFromPath'](_0x1cc79b,_0x3a90d0['path'],_0x3a90d0['stickiness']);}['_handleInsertOperation'](_0x31126a){const _0x4b1205=this['_idsRoots']['get'](_0x31126a['position']['root']['rootName']),_0x588ad2=this['_fixPosition'](_0x31126a['position'],_0x4b1205),_0x258bd4=null===_0x31126a['_authorId']?null:_0x31126a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x43ef90=_0x588ad2['parent'],_0x1fc98b=this['_revisionId'],_0x24bdaf=[];for(const _0x384d82 of _0x31126a['nodes'])if(_0x384d82['is']('element'))_0x24bdaf['push'](this['_makeIdsRoot'](_0x384d82));else{for(let _0x3b1bbd=0x0;_0x3b1bbd<_0x384d82['offsetSize'];_0x3b1bbd++)_0x24bdaf['push'](new _0x17ffdc('$text',{'vid':this['_revisionId']++}));}const _0x2f6638=this['_revisionId'];for(let _0x5efcd5=_0x1fc98b;_0x5efcd5<_0x2f6638;_0x5efcd5++)this['_touched']['set'](_0x5efcd5,{'userId':_0x258bd4});_0x43ef90['_insertChild'](_0x588ad2['offset'],_0x24bdaf);}['_handleMoveOperation'](_0x243bb3){(_0x243bb3=this['_cloneOperation'](_0x243bb3,this['_idsRoots']))['_execute']();const _0x4ad82f=null===_0x243bb3['_authorId']?null:_0x243bb3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x25d0d9=_0x243bb3['getMovedRangeStart'](),_0x2c4b88=_0x25d0d9['parent'],_0x3b2b40=_0x25d0d9['offset'];!function _0x246ebf(_0x421561,_0x53fc9d,_0x81434a,_0x5c91e0){for(let _0x207784=_0x81434a;_0x207784<_0x5c91e0;_0x207784++){const _0x2c0bc9=_0x53fc9d['getChild'](_0x207784);_0x2c0bc9['is']('element','$text')?_0x421561['set'](_0x2c0bc9['getAttribute']('vid'),{'userId':_0x4ad82f}):(_0x421561['set'](_0x2c0bc9['getAttribute']('vid_start'),{'userId':_0x4ad82f}),_0x246ebf(_0x421561,_0x2c0bc9,0x0,_0x2c0bc9['childCount']),_0x421561['set'](_0x2c0bc9['getAttribute']('vid_end'),{'userId':_0x4ad82f}));}}(this['_touched'],_0x2c4b88,_0x3b2b40,_0x3b2b40+_0x243bb3['howMany']);}['_handleMergeOperation'](_0x41d6cc){const _0x60dd73=null===(_0x41d6cc=this['_cloneOperation'](_0x41d6cc,this['_idsRoots']))['_authorId']?null:_0x41d6cc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5d5e99=_0x41d6cc['targetPosition']['parent'],_0x2eeac2=_0x41d6cc['sourcePosition']['parent'],_0x40563a=_0x5d5e99['getAttribute']('vid_end'),_0x25c222=_0x2eeac2['getAttribute']('vid_start');_0x5d5e99['_setAttribute']('vid_end',_0x2eeac2['getAttribute']('vid_end')),_0x2eeac2['_setAttribute']('vid_end',_0x40563a),this['_touched']['set'](_0x25c222,{'userId':_0x60dd73}),this['_touched']['set'](_0x40563a,{'userId':_0x60dd73}),_0x41d6cc['_execute']();}['_handleSplitOperation'](_0x205b9a){const _0x4bfecd=null===(_0x205b9a=this['_cloneOperation'](_0x205b9a,this['_idsRoots']))['_authorId']?null:_0x205b9a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52c995=_0x205b9a['graveyardPosition'],_0x2c1bbb=_0x205b9a['splitPosition']['parent'];_0x205b9a['_execute']();const _0x1d1770=_0x2c1bbb['getAttribute']('vid_end'),_0x313705=_0x205b9a['insertionPosition']['nodeAfter'];if(_0x52c995){const _0x262da1=_0x313705['getAttribute']('vid_end'),_0x882c1=_0x2c1bbb['getAttribute']('vid_end');_0x2c1bbb['_setAttribute']('vid_end',_0x262da1),_0x313705['_setAttribute']('vid_end',_0x882c1),this['_touched']['set'](_0x2c1bbb['getAttribute']('vid_end'),{'userId':_0x4bfecd}),this['_touched']['set'](_0x313705['getAttribute']('vid_start'),{'userId':_0x4bfecd});}else{const _0x273a80=this['_revisionId']++,_0x19ae3e=this['_revisionId']++;_0x2c1bbb['_setAttribute']('vid_end',_0x273a80),_0x313705['_setAttribute']('vid_start',_0x19ae3e),_0x313705['_setAttribute']('vid_end',_0x1d1770),this['_touched']['set'](_0x273a80,{'userId':_0x4bfecd}),this['_touched']['set'](_0x19ae3e,{'userId':_0x4bfecd});}}['_handleMarkerOperation'](_0xe99de7){if(!_0xe99de7['affectsData'])return;const _0x104869=(_0xe99de7=this['_cloneOperation'](_0xe99de7,this['_diffRoots']))['oldRange']?_0xe99de7['oldRange']['root']:null,_0x15518c=_0xe99de7['newRange']?_0xe99de7['newRange']['root']:null;_0x104869&&this['_markers']['delete'](_0xe99de7['name']),_0x15518c&&this['_markers']['set'](_0xe99de7['name'],_0xe99de7['newRange']['clone']());const _0x26c401=null===_0xe99de7['_authorId']?null:_0xe99de7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb4814=_0xe99de7['name'];if(!this['_touchedMarkers']['has'](_0xb4814))return void this['_touchedMarkers']['set'](_0xb4814,{'range':_0xe99de7['oldRange'],'userId':_0x26c401});const _0x25465c=this['_touchedMarkers']['get'](_0xb4814),_0x20f811=_0x25465c['range'],_0x510360=_0xe99de7['newRange'];null==_0x20f811&&null==_0x510360||_0x20f811&&_0x510360&&_0x20f811['isEqual'](_0x510360)?this['_touchedMarkers']['delete'](_0xe99de7['name']):_0x25465c['userId']=_0x26c401;}['_handleRootOperation'](_0x2debdd,_0x22c4b4){this['_diffRoots']['has'](_0x2debdd['rootName'])?this['_diffRoots']['get'](_0x2debdd['rootName'])['_isAttached']=_0x2debdd['isAdd']:(this['_diffRoots']['set'](_0x2debdd['rootName'],N(_0x2debdd['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2debdd['rootName'],{}),_0x22c4b4&&this['_idsRoots']['set'](_0x2debdd['rootName'],N(_0x2debdd['rootName'],!0x0)));const _0x38444c=null===_0x2debdd['_authorId']?null:_0x2debdd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f8848=this['_touchedRoots']['get'](_0x2debdd['rootName']);_0x1f8848&&_0x1f8848['userId']===_0x38444c?this['_touchedRoots']['delete'](_0x2debdd['rootName']):this['_touchedRoots']['set'](_0x2debdd['rootName'],{'userId':_0x38444c,'isAttached':_0x2debdd['isAdd']});}['_handleRootAttributeOperation'](_0x247f91){const _0x34ed7e=this['_diffRootsAttributes']['get'](_0x247f91['root']['rootName']);null===_0x247f91['newValue']?delete _0x34ed7e[_0x247f91['key']]:_0x34ed7e[_0x247f91['key']]=_0x247f91['newValue'];}}function x(_0x51b27d){const _0x15a7e1=N(_0x51b27d['rootName'],_0x51b27d['isAttached']());for(const _0x27c568 of _0x51b27d['getChildren']()){const _0x10d759=_0x27c568['_clone'](!0x0);_0x15a7e1['_appendChild'](_0x10d759);}return _0x15a7e1;}function N(_0x2860d9,_0x59ff27=!0x0){const _0x3c23a5=new _0x3dd9df();return _0x3c23a5['rootName']=_0x2860d9,_0x3c23a5['_isAttached']=_0x59ff27,_0x3c23a5['isAttached']=()=>_0x3c23a5['_isAttached'],_0x3c23a5;}function P(_0x4e9ff2,_0x466e64,_0x894de0){const _0x129a62='elementEnd'==_0x4e9ff2['type']?_0x894de0['createPositionAt'](_0x4e9ff2['item'],'end'):_0x894de0['createPositionBefore'](_0x4e9ff2['item']);return _0x894de0['createPositionFromPath'](_0x466e64,_0x129a62['path'],_0x129a62['stickiness']);}function V(_0x48e81c,_0x1c82df,_0x38a139){const _0x2137c2='elementStart'==_0x48e81c['type']?_0x38a139['createPositionAt'](_0x48e81c['item'],0x0):_0x38a139['createPositionAfter'](_0x48e81c['item']);return _0x38a139['createPositionFromPath'](_0x1c82df,_0x2137c2['path'],_0x2137c2['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x208a0d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xed8031){super(),this['id']=_0xed8031['id']||_0x17ccda(),this['author']=_0xed8031['author'],this['type']=_0xed8031['type'],this['data']=_0xed8031['data']||{},this['rootName']=_0xed8031['rootName'],this['set']('createdAt',_0xed8031['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1c815f,_0x4a60e6){this['newRevisionId']=_0x1c815f,this['oldRevisionId']=_0x4a60e6,this['changes']=new _0x2e7af1();}['_setChanges'](_0xf1db79){for(const _0x2b7dcd of _0xf1db79)this['changes']['add'](_0x2b7dcd);}}class l extends _0x3a7117{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x315441,_0x46b4da,S,$];}constructor(_0x2a3c09){super(_0x2a3c09),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1ddabc,_0x4a5c18,_0x326841)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x284fe0=>{for(const _0xf4a196 of this['editor']['editing']['view']['document']['roots'])_0x326841?_0x284fe0['removeClass']('ck-editor__editable__overlay',_0xf4a196):_0x284fe0['addClass']('ck-editor__editable__overlay',_0xf4a196);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x301061=>null!==_0x301061),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3d6f9a,_0x19a934,_0x10ff48)=>_0x3d6f9a&&_0x10ff48?_0x19a934['changes']['getIndex'](_0x10ff48):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x535f62,_0x54cd7a)=>_0x535f62?_0x54cd7a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x46b4da);}['init'](){const _0x2dc82d=this['editor'],_0xff7f56=new ot(_0x2dc82d,{'direction':'backward'}),_0x169b6b=new ot(_0x2dc82d,{'direction':'forward'});(_0x2dc82d['commands']['add']('showPreviousChange',_0xff7f56),_0x2dc82d['commands']['add']('showNextChange',_0x169b6b),_0x2dc82d['commands']['add']('restoreRevision',new nt(_0x2dc82d)),this['on']('change:numberOfChanges',()=>{_0xff7f56['refresh'](),_0x169b6b['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2dc82d['enableReadOnlyMode']('revision-viewer'),_0x2dc82d['plugins']['has']('WidgetToolbarRepository'))&&_0x2dc82d['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x19c13b){return await this['_utils']['loadRevisionData'](_0x19c13b,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x19c13b);}async['getRevisionRootsAttributes'](_0x37a517){return await this['_utils']['loadRevisionData'](_0x37a517,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x37a517);}async['compare'](_0x423e1b,_0x1cf020,_0x3cac5d=!0x1){if(!this['isEnabled'])return;const _0x4fe04c=this['diff'],_0x157fc=this['repository'],_0x47deef='string'==typeof _0x423e1b?_0x157fc['getRevision'](_0x423e1b):_0x423e1b,_0x5a2295='string'==typeof _0x1cf020?_0x157fc['getRevision'](_0x1cf020):_0x1cf020,_0x1b4b94=_0x47deef['id'],_0x3be0b3=_0x5a2295?_0x5a2295['id']:null;if(!_0x3cac5d&&this['diff']&&this['diff']['newRevisionId']===_0x1b4b94&&this['diff']['oldRevisionId']===_0x3be0b3)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x1b4b94,_0x3be0b3);const _0x95795c=this['_getRevisionsRange'](_0x47deef,_0x5a2295,!0x0)['map'](_0x2f19d0=>this['_utils']['loadRevisionData'](_0x2f19d0,this['adapter']));return _0x95795c['push'](new Promise(_0x48cb5d=>{setTimeout(_0x48cb5d,0x14);})),Promise['all'](_0x95795c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x498cc2=this['_getDiff'](_0x1b4b94,_0x3be0b3);for(const _0x5bf397 of _0x498cc2['changes'])this['_changeIdToChange']['set'](_0x5bf397['id'],_0x5bf397);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x477d5d=>{for(const _0x34acf1 of this['editor']['model']['document']['getRootNames']())_0x477d5d['detachRoot'](_0x34acf1);for(const _0x54b2f1 of Object['keys'](_0x498cc2['model'])){const _0x1f58b5=_0x477d5d['addRoot'](_0x54b2f1);for(const _0x1d9ec0 of Object['keys'](_0x498cc2['attributes'][_0x54b2f1]))_0x477d5d['setAttribute'](_0x1d9ec0,_0x498cc2['attributes'][_0x54b2f1][_0x1d9ec0],_0x1f58b5);_0x477d5d['insert'](_0x498cc2['model'][_0x54b2f1],_0x1f58b5,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x498cc2['changes'])),this['isReady']=!0x0;})['catch'](_0x226b6b=>{console['error'](_0x226b6b),this['_cleanUp'](),_0x4fe04c&&(this['diff']=_0x4fe04c),this['isReady']=!0x0;});}['addRevisionData'](_0x362815,_0x529ae4){const _0x5eec4b=this['repository']['createRevision'](_0x362815);return _0x5eec4b['on']('_update',(_0x15ad0e,_0x29e090,_0x3a9740)=>_0x529ae4(_0x29e090,_0x3a9740,_0x5eec4b)),this['repository']['addRevision'](_0x5eec4b),_0x5eec4b;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2879e0=>{for(const _0x109f9b of this['editor']['model']['document']['getRootNames']())_0x2879e0['detachRoot'](_0x109f9b);});}['_sortAndFilterDiffChanges'](_0x4cf3cf){const _0x473c69=[],_0x49bf98=new Map();for(const _0x422e0d of this['editor']['model']['document']['getRootNames']()){const _0x4bf183=this['editor']['editing']['view']['getDomRoot'](_0x422e0d);if(!_0x4bf183)continue;const _0x55b4a6=_0x4bf183['getClientRects']()['item'](0x0);_0x55b4a6&&(_0x473c69['push'](_0x422e0d),_0x49bf98['set'](_0x422e0d,_0x55b4a6));}return _0x473c69['sort']((_0x3fee38,_0x4dada6)=>{const _0x5bdef7=_0x49bf98['get'](_0x3fee38),_0x2c95ab=_0x49bf98['get'](_0x4dada6);return _0x5bdef7['y']-_0x2c95ab['y']||_0x5bdef7['x']-_0x2c95ab['x'];}),(_0x4cf3cf=_0x4cf3cf['filter'](_0x29c67b=>_0x473c69['includes'](_0x29c67b['rootName'])))['sort']((_0x142bb7,_0x200679)=>_0x473c69['indexOf'](_0x142bb7['rootName'])-_0x473c69['indexOf'](_0x200679['rootName'])),_0x4cf3cf;}['_makeTape'](_0x522578){const _0x340e36=Array['from'](_0x522578['markers'])['filter'](([_0x492cd4,_0x5d43dc])=>_0x492cd4['startsWith']('revision:')&&!_0x5d43dc['isCollapsed']),_0x46ade3=Array['from'](this['editor']['model']['createRangeIn'](_0x522578)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x340e36['length'])for(const _0x5b4bf7 of _0x46ade3){const [_0x41106a,_0x1c407d]=_0x340e36[0x0],[,_0x310d60,_0x558c6b]=_0x41106a['split'](':');if(_0x1c407d['end']['isEqual'](_0x5b4bf7['nextPosition'])&&_0x340e36['shift'](),(_0x5b4bf7['previousPosition']['isEqual'](_0x1c407d['start'])||_0x5b4bf7['previousPosition']['isAfter'](_0x1c407d['start']))&&('insertion'==_0x310d60?_0x5b4bf7['isAdded']={'userId':_0x558c6b}:'deletion'==_0x310d60&&(_0x5b4bf7['isRemoved']={'userId':_0x558c6b})),0x0==_0x340e36['length'])break;}return _0x46ade3;}['_refreshStartEndIndex'](_0x4fa494){const _0x171f12=new Map();for(let _0x390053=0x0;_0x390053<_0x4fa494['length'];_0x390053++)'text'===_0x4fa494[_0x390053]['type']?(_0x4fa494[_0x390053]['item']['startIndex']=_0x390053,_0x4fa494[_0x390053]['item']['endIndex']=_0x390053):('elementStart'===_0x4fa494[_0x390053]['type']?_0x4fa494[_0x390053]['item']['startIndex']=_0x390053:'elementEnd'===_0x4fa494[_0x390053]['type']&&(_0x4fa494[_0x390053]['item']['endIndex']=_0x390053),_0x171f12['set'](_0x4fa494[_0x390053]['id'],_0x390053));for(const _0x3d106e of _0x171f12['values']())'elementStart'===_0x4fa494[_0x3d106e]['type']?_0x4fa494[_0x3d106e]['item']['endIndex']=_0x171f12['get'](_0x4fa494[_0x3d106e]['pairId']):'elementEnd'===_0x4fa494[_0x3d106e]['type']&&(_0x4fa494[_0x3d106e]['item']['startIndex']=_0x171f12['get'](_0x4fa494[_0x3d106e]['pairId']));}['_processTape'](_0x2f8af2){for(let _0x428d6f=0x0;_0x428d6f<_0x2f8af2['length'];_0x428d6f++){if('elementStart'===_0x2f8af2[_0x428d6f]['type'])_0x2f8af2[_0x428d6f]['item']['startIndex']=_0x428d6f;else{if('elementEnd'===_0x2f8af2[_0x428d6f]['type']){_0x2f8af2[_0x428d6f]['item']['endIndex']=_0x428d6f;const _0x36b180=_0x2f8af2[_0x428d6f]['item']['startIndex'];_0x2f8af2[_0x36b180]['pairId']=_0x2f8af2[_0x428d6f]['id'],_0x2f8af2[_0x428d6f]['pairId']=_0x2f8af2[_0x36b180]['id'];}else _0x2f8af2[_0x428d6f]['item']['startIndex']=_0x428d6f,_0x2f8af2[_0x428d6f]['item']['endIndex']=_0x428d6f,_0x2f8af2[_0x428d6f]['pairId']=null;}_0x2f8af2[_0x428d6f]['markersStart']||(_0x2f8af2[_0x428d6f]['markersStart']=[],_0x2f8af2[_0x428d6f]['markersEnd']=[]);}}['_markInsertions'](_0x40a0d6,_0x1ce931){const _0x1abeeb=_0x40a0d6['filter'](_0x2c174f=>!_0x2c174f['isAdded']);for(let _0x50fb62=0x0;_0x50fb62<_0x1ce931['length'];_0x50fb62++)_0x1ce931[_0x50fb62]['isAdded']&&(_0x1abeeb[_0x50fb62]['isAdded']=_0x1ce931[_0x50fb62]['isAdded']);}['_getDiff'](_0xd18861,_0x471013=null){const _0x3d51af=this['repository']['getRevision'](_0xd18861),_0xffb1bc=_0x471013?this['repository']['getRevision'](_0x471013):null,_0x1c2045=this['_getRevisionsRange'](_0x3d51af,_0xffb1bc),_0x180fe1=_0x1c2045[_0x1c2045['length']-0x1],_0x224581=new Map(),_0x4f3b7f={'model':{},'attributes':{},'changes':[]},_0x1249ba=new Set(),_0x4dc627=new Map();for(let _0x493cb9=_0x1c2045['length']-0x1;_0x493cb9>=0x0;_0x493cb9--){const _0x148797=_0x1c2045[_0x493cb9];for(const _0xfb59c1 of Object['keys'](_0x148797['diffData']))if(_0x148797['diffData'][_0xfb59c1]['attachChange']){const _0x76d278=_0x148797['diffData'][_0xfb59c1]['attachChange'];_0x76d278['isAttached']?(_0x1249ba['add'](_0xfb59c1),_0x4dc627['has'](_0xfb59c1)&&_0x4dc627['get'](_0xfb59c1)['userId']==_0x76d278['userId']?_0x4dc627['delete'](_0xfb59c1):_0x4dc627['set'](_0xfb59c1,_0x76d278)):_0x4dc627['has'](_0xfb59c1)?(_0x1249ba['delete'](_0xfb59c1),_0x4dc627['delete'](_0xfb59c1)):(_0x1249ba['add'](_0xfb59c1),_0x4dc627['set'](_0xfb59c1,_0x76d278));}else _0x1249ba['add'](_0xfb59c1);}for(const _0xc1de74 of _0x1249ba){const _0x5ad2ae=_0x4dc627['has'](_0xc1de74)&&!_0x4dc627['get'](_0xc1de74)['isAttached'];let _0x317307=_0x5ad2ae?_0x1c2045['length']-0x1:0x0;const _0x52f756=_0x5ad2ae?-0x1:0x1;for(;_0x1c2045[_0x317307];){const _0x25c8ee=_0x1c2045[_0x317307];if(_0x25c8ee['diffData'][_0xc1de74]){const _0x2045e3=_0x5ad2ae?_0x25c8ee['diffData'][_0xc1de74]['attributesBefore']:_0x25c8ee['diffData'][_0xc1de74]['attributesAfter'];_0x4f3b7f['attributes'][_0xc1de74]=_0x2045e3?_0x5d7334(_0x2045e3):{};break;}_0x317307+=_0x52f756;}}for(const _0x622b01 of _0x1c2045){_0x622b01['model']={};for(const _0x4f19c2 of _0x622b01['authors'])_0x224581['set'](_0x4f19c2['id'],_0x4f19c2);for(const _0x17706b of _0x1249ba){const _0x11c886=_0x622b01['diffData'][_0x17706b]?_0x622b01['diffData'][_0x17706b]['insertions']:'[]',_0x2b291a=_0x622b01['diffData'][_0x17706b]?_0x622b01['diffData'][_0x17706b]['deletions']:'[]';_0x622b01['model'][_0x17706b]={'insertions':this['_utils']['_makeModelFromViewString'](_0x11c886),'deletions':this['_utils']['_makeModelFromViewString'](_0x2b291a)};}}for(const _0x4dedb1 of _0x1249ba){let _0xe99f86=null,_0x2e8aba=0x0;const _0x2a941f=new Map(Array['from'](_0x3d51af['model'][_0x4dedb1]['insertions']['markers'])['filter'](([_0x4fc545])=>!_0x4fc545['startsWith']('revision:')));let _0x424bd6=0x0;for(const _0x6c685d of _0x1c2045){const _0x28492f=this['_makeTape'](_0x6c685d['model'][_0x4dedb1]['insertions']);_0x6c685d==_0x3d51af?(_0xe99f86=_0x28492f,_0x2e8aba=_0xe99f86['length'],_0xe99f86['forEach'](_0x22fd39=>{_0x22fd39['id']=_0x424bd6++;}),this['_processTape'](_0xe99f86)):this['_markInsertions'](_0xe99f86,_0x28492f);const _0x400361=_0xe99f86['filter'](_0x497e6d=>!_0x497e6d['isAdded'])['map'](_0x2b62b2=>_0x2b62b2['id']);let _0x3333d9=0x0;const _0x52bf5b=this['_makeTape'](_0x6c685d['model'][_0x4dedb1]['deletions']);_0x52bf5b['forEach'](_0x105230=>{_0x105230['isRemoved']?_0x105230['id']=_0x2e8aba++:_0x105230['id']=_0x400361[_0x3333d9++];}),this['_processTape'](_0x52bf5b),this['_setDistance'](_0xe99f86,'isAdded'),this['_setDistance'](_0x52bf5b,'isRemoved'),_0x6c685d==_0x3d51af&&this['_markMarkers'](_0xe99f86,_0x2a941f),_0xe99f86=this['_joinTapes'](_0xe99f86,_0x52bf5b),this['_refreshStartEndIndex'](_0xe99f86),this['_setDistance'](_0xe99f86,'isRemoved');}_0xe99f86=_0xe99f86['filter'](_0xe98ec1=>!(_0xe98ec1['isAdded']&&_0xe98ec1['isRemoved']));const _0x2554f7=new Map(_0x180fe1['model'][_0x4dedb1]['deletions']['markers']),_0x28eac2=new Set(_0x2a941f['keys']());for(const _0xa044e3 of _0x2554f7['keys']())_0x28eac2['delete'](_0xa044e3);this['_markSuggestions'](_0xe99f86,_0x28eac2),this['_fixObsoleteTags'](_0xe99f86),_0xe99f86=this['_removeMissingPairs'](_0xe99f86),_0xe99f86=this['_markMismatchedRemovedTags'](_0xe99f86),_0xe99f86=this['_removeUnsupportedChanges'](_0xe99f86);const {root:_0x642397,changes:_0x8524f7}=this['_makeModelFromTape'](_0xe99f86,_0x224581,_0x4dedb1);_0x4f3b7f['model'][_0x4dedb1]=_0x642397;const _0x505d2f=_0x4dc627['get'](_0x4dedb1);if(_0x505d2f){const _0x1587aa=_0x224581['get'](_0x505d2f['userId']),_0x45be6b=new G({'author':_0x1587aa,'type':_0x505d2f['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4dedb1});_0x8524f7['unshift'](_0x45be6b),_0x4f3b7f['attributes'][_0x4dedb1]['revisionHistoryAttachChange']=_0x45be6b['id'];}_0x4f3b7f['changes']=_0x4f3b7f['changes']['concat'](_0x8524f7);}return _0x4f3b7f;}['_markMarkers'](_0x4396ab,_0xcd348f){for(let _0x3bb5f5=0x0;_0x3bb5f5<_0x4396ab['length'];_0x3bb5f5++)for(const [_0x3b6333,_0x65a022]of _0xcd348f)!_0x65a022['isCollapsed']&&_0x65a022['start']['isEqual'](_0x4396ab[_0x3bb5f5]['previousPosition'])&&_0x4396ab[_0x3bb5f5]['markersStart']['push'](_0x3b6333),_0x65a022['end']['isEqual'](_0x4396ab[_0x3bb5f5]['nextPosition'])&&_0x4396ab[_0x3bb5f5]['markersEnd']['push'](_0x3b6333);}['_joinTapes'](_0x1994ba,_0x372420){let _0x4cd127=[],_0x5acb27=0x0,_0x15fecd=0x0;for(;_0x5acb27<_0x1994ba['length']||_0x15fecd<_0x372420['length'];){const _0x3aafb1=_0x1994ba[_0x5acb27]||{},_0x4fbde3=_0x372420[_0x15fecd]||{};if(_0x3aafb1['id']==_0x4fbde3['id'])_0x5acb27++,_0x15fecd++,_0x4cd127['push'](_0x3aafb1);else{if(_0x4fbde3['isRemoved']&&_0x3aafb1['isAdded']){const {commonTape:_0x24f498,iEnd:_0x159e7a,jEnd:_0x27b4dd}=this['_threeWayMerge'](_0x1994ba,_0x5acb27,_0x372420,_0x15fecd);_0x4cd127=_0x4cd127['concat'](_0x24f498),_0x5acb27=_0x159e7a,_0x15fecd=_0x27b4dd;}else _0x4fbde3['isRemoved']?(_0x15fecd++,_0x4cd127['push'](_0x4fbde3)):(_0x5acb27++,_0x4cd127['push'](_0x3aafb1));}}return _0x4cd127;}['_markSuggestions'](_0x28d2fc,_0x37e4fd){const _0x168b52=[];for(let _0x23cdab=0x0;_0x23cdab<_0x28d2fc['length'];_0x23cdab++){for(let _0x2f1e2f=0x0;_0x2f1e2f<_0x28d2fc[_0x23cdab]['markersStart']['length'];_0x2f1e2f++){const _0x3a5047=_0x28d2fc[_0x23cdab]['markersStart'][_0x2f1e2f];if(!_0x37e4fd['has'](_0x3a5047))continue;const {group:_0x51962b,type:_0xd5137b,authorId:_0x36bb70}=_0x236cda(_0x3a5047);'revision-suggestion'!=_0x51962b||'insertion'!=_0xd5137b&&'deletion'!=_0xd5137b||(_0x168b52['unshift']({'type':_0xd5137b,'name':_0x3a5047,'userId':_0x36bb70}),_0x28d2fc[_0x23cdab]['markersStart']['splice'](_0x2f1e2f,0x1),_0x2f1e2f--);}_0x24ff76(_0x28d2fc[_0x23cdab]);for(let _0xffa4f2=0x0;_0xffa4f2<_0x28d2fc[_0x23cdab]['markersEnd']['length'];_0xffa4f2++){const _0x4307cb=_0x28d2fc[_0x23cdab]['markersEnd'][_0xffa4f2];if(!_0x37e4fd['has'](_0x4307cb))continue;const {group:_0x12124d,type:_0x3b3bcc}=_0x236cda(_0x4307cb);if('revision-suggestion'!=_0x12124d||'insertion'!=_0x3b3bcc&&'deletion'!=_0x3b3bcc)continue;_0x28d2fc[_0x23cdab]['markersEnd']['splice'](_0xffa4f2,0x1),_0xffa4f2--;const _0x22c694=_0x168b52['findIndex'](_0x149b68=>_0x149b68['name']==_0x4307cb);_0x22c694>-0x1&&_0x168b52['splice'](_0x22c694,0x1);}}function _0x236cda(_0x3d25bb){const _0x13e6c4=_0x3d25bb['split'](':');return{'group':_0x13e6c4[0x0],'type':_0x13e6c4[0x1],'subType':_0x13e6c4['length']>=0x5?_0x13e6c4[0x2]:null,'id':_0x13e6c4['length']<0x5?_0x13e6c4[0x2]:_0x13e6c4[0x3],'authorId':_0x13e6c4['length']<0x5?_0x13e6c4[0x3]:_0x13e6c4[0x4],'markerCount':0x6==_0x13e6c4['length']?_0x13e6c4[0x5]:null};}function _0x24ff76(_0x1597d2){for(let _0x4ba59d=0x0;_0x4ba59d<_0x168b52['length'];_0x4ba59d++){if(_0x1597d2['isAdded']&&'insertion'==_0x168b52[_0x4ba59d]['type']&&_0x1597d2['isAdded']['userId']==_0x168b52[_0x4ba59d]['userId'])return _0x1597d2['isAddSuggestion']=_0x168b52[_0x4ba59d],void delete _0x1597d2['isAdded'];if(!_0x1597d2['isAdded']&&!_0x1597d2['isRemoved']&&'deletion'==_0x168b52[_0x4ba59d]['type'])return void(_0x1597d2['isRemoveSuggestion']=_0x168b52[_0x4ba59d]);}}}['_setDistance'](_0x13665a,_0x5929bb){let _0x20fe60=0x0,_0x113098=!0x1;const _0xbd8623=new Map();for(const _0x39cd8c of _0x13665a)_0x39cd8c[_0x5929bb]?_0x113098&&(_0x20fe60++,_0x113098=!0x1):(_0x20fe60++,_0x113098=!0x0),_0xbd8623['set'](_0x39cd8c['id'],_0x20fe60);for(let _0x1e57d8=0x0;_0x1e57d8<_0x13665a['length'];_0x1e57d8++){if('isRemoved'==_0x5929bb&&_0x13665a[_0x1e57d8]['isAdded']||'isAdded'==_0x5929bb&&_0x13665a[_0x1e57d8]['isRemoved'])continue;if('text'==_0x13665a[_0x1e57d8]['type']){_0x13665a[_0x1e57d8]['distance']=0x0;continue;}const _0x2637b4=_0xbd8623['get'](_0x13665a[_0x1e57d8]['pairId']),_0x4ae732=_0xbd8623['get'](_0x13665a[_0x1e57d8]['id']);_0x13665a[_0x1e57d8]['distance']=_0x2637b4-_0x4ae732;}}['_getRevisionsRange'](_0x5ab780,_0x169853,_0x2c9001=!0x1){const _0x8c427d=[];let _0x1dec20=this['repository']['getIndex'](_0x5ab780),_0x3f8c89=this['repository']['getIndex'](_0x169853);for(-0x1==_0x3f8c89&&(_0x3f8c89=this['repository']['_revisions']['length'],_0x2c9001=!0x1);_0x1dec20<_0x3f8c89;)_0x8c427d['push'](this['repository']['getRevision'](_0x1dec20)),_0x1dec20++;return _0x2c9001&&_0x8c427d['push'](this['repository']['getRevision'](_0x1dec20)),_0x8c427d;}['_threeWayMerge'](_0x314fe0,_0x1a6f02,_0x30bc34,_0x5a0455){const _0x1a656a=this['editor']['model']['schema'];let _0x2cc467=_0x1a6f02;for(;_0x314fe0[_0x2cc467]&&_0x314fe0[_0x2cc467]['isAdded'];)_0x2cc467++;let _0x7dc418=_0x5a0455;for(;_0x30bc34[_0x7dc418]&&_0x30bc34[_0x7dc418]['isRemoved'];)_0x7dc418++;_0x4e5ebd(_0x314fe0,_0x1a6f02,_0x2cc467),_0x4e5ebd(_0x30bc34,_0x5a0455,_0x7dc418);const _0x55cbc1=_0x30bc34['slice'](_0x5a0455,_0x7dc418)['concat'](_0x314fe0['slice'](_0x1a6f02,_0x2cc467));return _0x55cbc1['sort']((_0x138b39,_0x33f610)=>_0x138b39['side']!=_0x33f610['side']?_0x138b39['side']-_0x33f610['side']:_0x138b39['level']!=_0x33f610['level']?_0x138b39['level']-_0x33f610['level']:_0x138b39['distance']!=_0x33f610['distance']?_0x33f610['distance']-_0x138b39['distance']:!!_0x138b39['isAdded']!=!!_0x33f610['isAdded']?-0x1==_0x138b39['side']||0x0==_0x138b39['side']?_0x138b39['isAdded']?-0x1:0x1:_0x138b39['isAdded']?0x1:-0x1:_0x138b39['index']-_0x33f610['index']),{'commonTape':_0x55cbc1,'iEnd':_0x2cc467,'jEnd':_0x7dc418};function _0x4e5ebd(_0x1161a7,_0x1210a1,_0x5b2482){let _0x36df28=-0x1,_0x3297e1=Number['POSITIVE_INFINITY'],_0xd6911f=!0x0;for(let _0x2c22e5=_0x1210a1;_0x2c22e5<_0x5b2482;_0x2c22e5++)if(_0x1a656a['isInline'](_0x1161a7[_0x2c22e5]['item'])||(_0xd6911f=!0x1),_0x1161a7[_0x2c22e5]['item']['startIndex']<_0x1210a1&&(_0x36df28=_0x2c22e5),_0x1161a7[_0x2c22e5]['item']['endIndex']>=_0x5b2482){_0x3297e1=_0x2c22e5;break;}_0xd6911f&&(_0x36df28=_0x5b2482-0x1);for(let _0x38370b=_0x1210a1;_0x38370b<_0x5b2482;_0x38370b++)_0x1161a7[_0x38370b]['side']=_0x38370b<=_0x36df28?-0x1:_0x38370b<_0x3297e1?0x0:0x1,_0x1161a7[_0x38370b]['index']=_0x38370b;let _0x224c26=0x0;for(let _0xd9cc9f=_0x1210a1;_0xd9cc9f<=_0x36df28;_0xd9cc9f++)0x0==_0x1161a7[_0xd9cc9f]['distance']?_0x1161a7[_0xd9cc9f]['level']=_0x224c26:(_0x224c26++,_0x1161a7[_0xd9cc9f]['level']=_0x224c26,_0x224c26++);for(let _0x12c519=_0x1210a1;_0x12c519<_0x5b2482;_0x12c519++)0x0==_0x1161a7[_0x12c519]['side']&&(_0x1161a7[_0x12c519]['level']=_0x224c26);_0x224c26=0x0;for(let _0x1ab84c=_0x5b2482-0x1;_0x1ab84c>=_0x3297e1;_0x1ab84c--)0x0==_0x1161a7[_0x1ab84c]['distance']?_0x1161a7[_0x1ab84c]['level']=_0x224c26:(_0x224c26--,_0x1161a7[_0x1ab84c]['level']=_0x224c26,_0x224c26--);}}['_fixObsoleteTags'](_0x3b9975){const _0x257d5e=new Map(),_0x2a9209=this['editor']['model']['schema'];for(let _0x46d17f=0x1;_0x46d17f<_0x3b9975['length'];_0x46d17f++){let _0x169467,_0x105e2f,_0x20bf42;const _0x383483=_0x3b9975[_0x46d17f],_0x348687=_0x3b9975[_0x46d17f-0x1];if('text'==_0x383483['type'])continue;if(_0x383483['type']!=_0x348687['type'])continue;if(!_0x2a9209['isBlock'](_0x348687['item'])||_0x2a9209['isLimit'](_0x348687['item']))continue;if(!_0x2a9209['isBlock'](_0x383483['item'])||_0x2a9209['isLimit'](_0x383483['item']))continue;if((_0x3b9975[_0x46d17f]['isAdded']||_0x3b9975[_0x46d17f]['isAddSuggestion'])&&_0x3b9975[_0x46d17f-0x1]['isRemoved'])_0x169467=_0x3b9975[_0x46d17f],_0x105e2f=_0x3b9975[_0x46d17f-0x1],_0x20bf42=_0x46d17f-0x1;else{if(!_0x3b9975[_0x46d17f]['isRemoved']||!_0x3b9975[_0x46d17f-0x1]['isAdded']&&!_0x3b9975[_0x46d17f-0x1]['isAddSuggestion'])continue;_0x169467=_0x3b9975[_0x46d17f-0x1],_0x105e2f=_0x3b9975[_0x46d17f],_0x20bf42=_0x46d17f;}const _0x2794f5=_0x169467['level']==_0x105e2f['level'],_0x7eacb9=Math['abs'](_0x169467['level'])<Math['abs'](_0x105e2f['level'])&&0x0==_0x105e2f['distance'];(_0x2794f5||_0x7eacb9)&&(_0x257d5e['set'](_0x105e2f['id'],_0x169467['id']),_0x3b9975['splice'](_0x20bf42,0x1),_0x46d17f--,_0x169467['isAdded']=!0x1);}for(let _0x5514d0=0x0;_0x5514d0<_0x3b9975['length'];_0x5514d0++)_0x257d5e['has'](_0x3b9975[_0x5514d0]['pairId'])&&(_0x3b9975[_0x5514d0]['pairId']=_0x257d5e['get'](_0x3b9975[_0x5514d0]['pairId']));}['_removeMissingPairs'](_0x5bf95a){const _0x25e849=new Set(_0x5bf95a['map'](_0x590c6f=>_0x590c6f['id']));for(let _0x41257f=0x0;_0x41257f<_0x5bf95a['length'];_0x41257f++)_0x25e849['has'](_0x5bf95a[_0x41257f]['pairId'])||0x0==_0x5bf95a[_0x41257f]['distance']||(_0x5bf95a[_0x41257f]['isIncorrect']=!0x0);return _0x5bf95a['filter'](_0x2ffb2a=>!_0x2ffb2a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2d6145){const _0xf16770=new Set();for(let _0x169f1b=0x0;_0x169f1b<_0x2d6145['length'];_0x169f1b++){if(_0xf16770['has'](_0x2d6145[_0x169f1b]['id'])&&_0x2d6145[_0x169f1b]['isRemoved']&&(_0x2d6145[_0x169f1b]['isIncorrect']=!0x0),_0x2d6145[_0x169f1b]['isIncorrect'])continue;if(0x0==_0x2d6145[_0x169f1b]['distance'])continue;if('elementStart'!=_0x2d6145[_0x169f1b]['type'])continue;if(null==_0x2d6145[_0x169f1b]['pairId'])continue;let _0x15a7a3=_0x169f1b+0x1,_0x1e1bdc=0x0;for(;_0x2d6145[_0x15a7a3]['id']!=_0x2d6145[_0x169f1b]['pairId'];)'elementStart'==_0x2d6145[_0x15a7a3]['type']?_0x1e1bdc++:'elementEnd'==_0x2d6145[_0x15a7a3]['type']&&_0x1e1bdc--,_0x15a7a3++;if(0x0!=_0x1e1bdc){if(_0x2d6145[_0x169f1b]['isRemoved'])_0x2d6145[_0x169f1b]['isIncorrect']=!0x0;else{for(;_0x15a7a3!=_0x169f1b;)_0x2d6145[_0x15a7a3]['isRemoved']&&0x0!=_0x2d6145[_0x15a7a3]['distance']&&(_0x2d6145[_0x15a7a3]['isIncorrect']=!0x0,_0xf16770['add'](_0x2d6145[_0x15a7a3]['pairId'])),_0x15a7a3--;}}}return _0x2d6145['filter'](_0x29706b=>!_0x29706b['isIncorrect']);}['_removeUnsupportedChanges'](_0x234114){const _0x59cabd=this['editor']['model']['schema'];for(let _0x21daad=0x0;_0x21daad<_0x234114['length'];_0x21daad++){if(!(_0x234114[_0x21daad]['isAdded']||_0x234114[_0x21daad]['isAddSuggestion']||_0x234114[_0x21daad]['isRemoved']||_0x234114[_0x21daad]['isRemoveSuggestion']))continue;if(0x0==_0x234114[_0x21daad]['distance'])continue;const _0x27fc02=_0x234114[_0x21daad]['item'];_0x59cabd['isBlock'](_0x27fc02)||_0x59cabd['isLimit'](_0x27fc02)||(_0x234114[_0x21daad]['isAdded']&&delete _0x234114[_0x21daad]['isAdded'],_0x234114[_0x21daad]['isAddSuggestion']&&delete _0x234114[_0x21daad]['isAddSuggestion'],_0x234114[_0x21daad]['isRemoveSuggestion']&&delete _0x234114[_0x21daad]['isRemoveSuggestion'],_0x234114[_0x21daad]['isRemoved']&&(_0x234114[_0x21daad]['isIncorrect']=!0x0));}return _0x234114['filter'](_0x5d7d98=>!_0x5d7d98['isIncorrect']);}['_makeModelFromTape'](_0x4be3d3,_0x579813,_0x240cc1){const _0x316954=new _0x3dd9df(),_0x310129=[],_0x29193e=new Map(),_0x164ca1=this['editor']['model'],_0x418693=_0x164ca1['schema'],_0x25ead6=[_0x316954],_0x96d7b4={},_0x5c744c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x55a6a4=null;const _0x4cb274=[0x0];for(let _0x42d5d7=0x0;_0x42d5d7<_0x4be3d3['length'];_0x42d5d7++)if('elementStart'===_0x4be3d3[_0x42d5d7]['type']){_0x4be3d3[_0x42d5d7]['previousPosition']=_0x164ca1['createPositionFromPath'](_0x316954,_0x4cb274);const _0xbb580e=new _0x17ffdc(_0x4be3d3[_0x42d5d7]['item']['name'],_0x4be3d3[_0x42d5d7]['item']['getAttributes']());_0x25ead6[0x0]['_appendChild'](_0xbb580e),_0x4cb274['push'](0x0),_0x25ead6['unshift'](_0xbb580e),_0x4be3d3[_0x42d5d7]['nextPosition']=_0x164ca1['createPositionFromPath'](_0x316954,_0x4cb274);}else'elementEnd'===_0x4be3d3[_0x42d5d7]['type']?(_0x25ead6['shift'](),_0x4be3d3[_0x42d5d7]['previousPosition']=_0x164ca1['createPositionFromPath'](_0x316954,_0x4cb274),_0x4cb274['pop'](),_0x4cb274[_0x4cb274['length']-0x1]++,_0x4be3d3[_0x42d5d7]['nextPosition']=_0x164ca1['createPositionFromPath'](_0x316954,_0x4cb274)):(_0x4be3d3[_0x42d5d7]['previousPosition']=_0x164ca1['createPositionFromPath'](_0x316954,_0x4cb274),_0x55a6a4?_0x55a6a4['_data']+=_0x4be3d3[_0x42d5d7]['item']['data']:_0x55a6a4=new _0xedef05(_0x4be3d3[_0x42d5d7]['item']['data'],_0x4be3d3[_0x42d5d7]['item']['getAttributes']()),_0x4be3d3[_0x42d5d7+0x1]&&'text'===_0x4be3d3[_0x42d5d7+0x1]['type']&&_0x4f0c18(_0x55a6a4,_0x4be3d3[_0x42d5d7+0x1]['item'])||(_0x25ead6[0x0]['_appendChild'](_0x55a6a4),_0x55a6a4=null),_0x4cb274[_0x4cb274['length']-0x1]+=_0x4be3d3[_0x42d5d7]['item']['offsetSize'],_0x4be3d3[_0x42d5d7]['nextPosition']=_0x164ca1['createPositionFromPath'](_0x316954,_0x4cb274));for(let _0x489134=0x0;_0x489134<_0x4be3d3['length'];_0x489134++){const _0x4ed15e=_0x4be3d3[_0x489134]['previousPosition'],_0x246425=_0x4be3d3[_0x489134]['nextPosition'];for(const _0x4daac8 of _0x4be3d3[_0x489134]['markersStart'])_0x29193e['set'](_0x4daac8,{'start':_0x4ed15e,'end':null});_0x3a6861('isRemoveSuggestion',_0x489134,_0x4ed15e,_0x246425),_0x3a6861('isAddSuggestion',_0x489134,_0x4ed15e,_0x246425),_0x3a6861('isRemoved',_0x489134,_0x4ed15e,_0x246425),_0x3a6861('isAdded',_0x489134,_0x4ed15e,_0x246425);for(const _0xd45477 of _0x4be3d3[_0x489134]['markersEnd']){const _0x84c8ed=_0x29193e['get'](_0xd45477);_0x84c8ed?_0x84c8ed['end']=_0x246425:_0x29193e['set'](_0xd45477,{'start':_0x246425,'end':_0x246425});}}for(const [_0x301c8b,_0x5ad4dd]of _0x29193e){const _0x511be1=this['editor']['model']['createRange'](_0x5ad4dd['start'],_0x5ad4dd['end']);_0x316954['markers']['set'](_0x301c8b,_0x511be1);}return _0x310129['sort']((_0x424326,_0x27e7bc)=>{const _0x3a2d7b=_0x316954['markers']['get']('revision:'+_0x424326['id']),_0x18017a=_0x316954['markers']['get']('revision:'+_0x27e7bc['id']);return _0x3a2d7b['start']['isBefore'](_0x18017a['start'])?-0x1:_0x3a2d7b['start']['isAfter'](_0x18017a['start'])?0x1:_0x3a2d7b['end']['isBefore'](_0x18017a['end'])?-0x1:_0x3a2d7b['end']['isAfter'](_0x18017a['end'])?0x1:'add'===_0x424326['type']?-0x1:0x1;}),{'root':_0x316954,'changes':_0x310129};function _0x3a6861(_0x1ba05e,_0xb5ce88,_0x12510e,_0x9e50cf){const _0x321690=!!_0x4be3d3[_0xb5ce88][_0x1ba05e],_0x11f80f=_0x321690?_0x4be3d3[_0xb5ce88][_0x1ba05e]['userId']:null,_0x4d543d=_0xb5ce88===_0x4be3d3['length']-0x1,_0x5238c2=_0x5c744c[_0x1ba05e][0x0],_0x357692=_0x418693['isObject'](_0x4be3d3[_0xb5ce88]['item']);!_0x96d7b4[_0x1ba05e]&&_0x321690?_0x96d7b4[_0x1ba05e]={'start':_0x12510e,'tapeItem':_0x4be3d3[_0xb5ce88],'userId':_0x11f80f,'type':_0x1ba05e}:_0x96d7b4[_0x1ba05e]&&!_0x321690?(_0x96d7b4[_0x1ba05e]['end']=_0x12510e,_0x2d3177(_0x96d7b4[_0x1ba05e]),_0x96d7b4[_0x1ba05e]=null):_0x96d7b4[_0x1ba05e]&&_0x321690&&_0x96d7b4[_0x1ba05e]['userId']!==_0x11f80f&&(_0x96d7b4[_0x1ba05e]['end']=_0x12510e,_0x5238c2&&_0x5238c2['userId']===_0x96d7b4[_0x1ba05e]['userId']||_0x2d3177(_0x96d7b4[_0x1ba05e]),_0x96d7b4[_0x1ba05e]={'start':_0x12510e,'tapeItem':_0x4be3d3[_0xb5ce88],'userId':_0x11f80f,'type':_0x1ba05e}),_0x96d7b4[_0x1ba05e]&&_0x357692&&('elementStart'!==_0x4be3d3[_0xb5ce88]['type']||_0x5238c2&&_0x5238c2['userId']===_0x11f80f||_0x5c744c[_0x1ba05e]['unshift']({'userId':_0x11f80f,'object':_0x4be3d3[_0xb5ce88]['item'],'change':_0x96d7b4[_0x1ba05e]}),'elementEnd'===_0x4be3d3[_0xb5ce88]['type']&&_0x5238c2&&_0x5238c2['object']===_0x4be3d3[_0xb5ce88]['item']&&(_0x5c744c[_0x1ba05e]['shift'](),_0x96d7b4[_0x1ba05e]=_0x5238c2['change'])),_0x96d7b4[_0x1ba05e]&&_0x4d543d&&(_0x96d7b4[_0x1ba05e]['end']=_0x9e50cf,_0x2d3177(_0x96d7b4[_0x1ba05e]),_0x96d7b4[_0x1ba05e]=null);}function _0x2d3177({start:_0x272575,end:_0x3a4520,tapeItem:_0xe04d61,userId:_0x21ada4,type:_0x57332a}){const _0x3410f3=_0xe04d61['item'],_0x453f41=_0x164ca1['schema']['isBlock'](_0x3410f3)&&!_0x164ca1['schema']['isLimit'](_0x3410f3),_0x3b5e9c=_0x272575['nodeAfter']==_0x3a4520['parent']&&_0x3a4520['isAtStart'];if(_0x453f41&&_0x3b5e9c)return;const _0x3341f1=_0x164ca1['createRange'](_0x272575,_0x3a4520),_0x5debff=_0x579813['get'](_0x21ada4),_0x453076=new G({'author':_0x5debff,'type':'isAdded'==_0x57332a||'isAddSuggestion'==_0x57332a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x57332a||'isRemoveSuggestion'==_0x57332a},'createdAt':new Date(),'rootName':_0x240cc1});_0x310129['push'](_0x453076),_0x316954['markers']['set']('revision:'+_0x453076['id'],_0x3341f1);}function _0x4f0c18(_0x3c061f,_0x23f483){const _0x3f13bb=_0x3c061f['getAttributes'](),_0xcd32b=_0x23f483['getAttributes']();for(const _0x4a9164 of _0x3f13bb){if(_0x4a9164[0x1]!==_0x23f483['getAttribute'](_0x4a9164[0x0]))return!0x1;_0xcd32b['next']();}return _0xcd32b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x26eca3=>{const _0x59684b=_0x26eca3['markerName']['split'](':')[0x1],_0x343770=this['_getChangeFromId'](_0x59684b);if(!_0x343770)return null;const _0x350a5c='add'==_0x343770['type']?'insertion':'deletion',_0x40140b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x350a5c];return _0x343770['data']['isSuggestion']&&_0x40140b['push']('ck-suggestion-marker-'+_0x350a5c+'-new'),this['activeChange']==_0x343770&&_0x40140b['push']('ck-suggestion-marker--active'),{'classes':_0x40140b,'attributes':{'data-change-id':_0x59684b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1d8a3e=>{_0x1d8a3e['on']('element:pre',(_0x11b769,_0x5ed34a,_0x306f29)=>{const _0x334322=_0x5ed34a['viewItem']['getChild'](0x0);if(!_0x334322||!_0x334322['is']('element','code'))return;if(!_0x306f29['consumable']['consume'](_0x334322,{'attributes':['vid_start','vid_end']}))return;const _0x1f3e49=_0x5ed34a['modelRange']['start']['nodeAfter'];_0x306f29['writer']['setAttribute']('vid_start',_0x334322['getAttribute']('vid_start'),_0x1f3e49),_0x306f29['writer']['setAttribute']('vid_end',_0x334322['getAttribute']('vid_end'),_0x1f3e49);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x276cc8=>{_0x276cc8['on']('element',(_0x4a81c7,_0x4a3bcf,_0x28ba7c)=>{if(!_0x28ba7c['consumable']['consume'](_0x4a3bcf['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4a3bcf['modelRange']['isCollapsed'])return;const _0x13406f=_0x4a3bcf['modelRange']['start']['nodeAfter'];_0x13406f['hasAttribute']('vid_start')||_0x13406f['hasAttribute']('vid')||(_0x28ba7c['writer']['setAttribute']('vid_start',_0x4a3bcf['viewItem']['getAttribute']('vid_start'),_0x13406f),_0x28ba7c['writer']['setAttribute']('vid_end',_0x4a3bcf['viewItem']['getAttribute']('vid_end'),_0x13406f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3499ff=>_0x3499ff['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x47c338,[,_0x5dcfae])=>{['vid_start','vid_end','vid']['includes'](_0x5dcfae)&&(_0x47c338['return']=!0x0,_0x47c338['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x919355=>{_0x919355['on']('attribute:vid',(_0x5bc4b5,_0x51443a,_0x17682e)=>{if('\x20'!=_0x51443a['item']['data']||_0x51443a['item']['parent']['maxOffset']>0x1)return;if(!_0x17682e['consumable']['consume'](_0x51443a['item'],_0x5bc4b5['name']))return;const _0x3c9d29=_0x17682e['writer'],_0x59026d=_0x17682e['mapper']['toViewRange'](_0x51443a['range']);_0x3c9d29['wrap'](_0x59026d,_0x3c9d29['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x52e79c){const _0x412801=_0x52e79c['plugins']['get']('RevisionViewer');return(_0x2e64b4,_0x27ddc2,_0x3a5924)=>{const _0x430446=_0x27ddc2['markerName']['split'](':')[0x1],_0x3ac925=_0x412801['_getChangeFromId'](_0x430446);if(!_0x3ac925)return null;const _0x4bd026='add'==_0x3ac925['type']?'split':'merge';if(!_0x3a5924['consumable']['test'](_0x27ddc2['markerRange'],_0x2e64b4['name']))return;const _0x32929d=_0x27ddc2['markerRange']['getWalker'](),_0x54b46f=_0x27ddc2['markerRange']['start'],_0x4a4c7f=_0x52e79c['model']['schema'];let _0x3e31e2=null,_0x23f43b=null,_0x375548=!0x1,_0x2370ae=!0x1;for(const _0x510257 of _0x32929d){const _0x4a7c19=_0x510257['item'];_0x375548=_0x375548||_0x4a4c7f['isContent'](_0x4a7c19);const _0x138ded=_0x3a5924['mapper']['toViewElement'](_0x4a7c19);if(_0x138ded&&_0x138ded['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x510257['type']&&(_0x4a4c7f['isBlock'](_0x4a7c19)&&!_0x4a4c7f['isLimit'](_0x4a7c19)&&(_0x4a7c19['nextSibling']||_0x54b46f['isAtEnd']?_0x3e31e2&&_0x3e31e2['parent']==_0x4a7c19||(_0x3e31e2=_0x4a7c19,_0x17e527(_0x510257['previousPosition']),_0x2370ae=!0x0):_0x23f43b=_0x23f43b||_0x510257['previousPosition']));}function _0x17e527(_0x508de6){const _0x213b89=_0x3a5924['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4bd026}),_0x510428=_0x3a5924['mapper']['toViewPosition'](_0x508de6);_0x3ac925['data']['isSuggestion']&&_0x3a5924['writer']['addClass']('ck-suggestion-marker-'+_0x4bd026+'-new',_0x213b89),_0x412801['activeChange']==_0x3ac925&&_0x3a5924['writer']['addClass']('ck-suggestion-marker--active',_0x213b89),_0x3a5924['writer']['insert'](_0x510428,_0x213b89),_0x3a5924['mapper']['bindElementToMarker'](_0x213b89,_0x27ddc2['markerName']);}_0x375548||_0x2370ae||!_0x23f43b||_0x17e527(_0x23f43b);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xd88761,_0x3502ad,_0x5eda7c)=>{const _0x4ac11f=_0x5eda7c['mapper']['markerNameToElements'](_0x3502ad['markerName']);if(_0x4ac11f){for(const _0x3cabbb of _0x4ac11f)(_0x3cabbb['hasClass']('ck-suggestion-marker-split')||_0x3cabbb['hasClass']('ck-suggestion-marker-merge'))&&(_0x5eda7c['mapper']['unbindElementFromMarkerName'](_0x3cabbb,_0x3502ad['markerName']),_0x5eda7c['writer']['remove'](_0x3cabbb));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x503dbe,_0x33cf90,_0x2c795f)=>{const _0x4fd9fa=_0x33cf90['markerName']['split'](':')[0x1],_0x3328dc=this['_getChangeFromId'](_0x4fd9fa);if(!_0x3328dc)return null;const _0x499b6a='add'==_0x3328dc['type']?'split':'merge';if(_0x2c795f['consumable']['test'](_0x33cf90['markerRange'],_0x503dbe['name']))for(const _0x56a413 of _0x33cf90['markerRange']['getItems']()){if(!_0x56a413['is']('element','softBreak'))continue;const _0x53e0d1=_0x2c795f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x499b6a}),_0x23dd86=_0x2c795f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x56a413));_0x3328dc['data']['isSuggestion']&&_0x2c795f['writer']['addClass']('ck-suggestion-marker-'+_0x499b6a+'-new',_0x53e0d1),this['activeChange']==_0x3328dc&&_0x2c795f['writer']['addClass']('ck-suggestion-marker--active',_0x53e0d1),_0x2c795f['writer']['insert'](_0x23dd86,_0x53e0d1),_0x2c795f['mapper']['bindElementToMarker'](_0x53e0d1,_0x33cf90['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x301f89=>{for(const _0x479147 of this['editor']['model']['document']['getRootNames']()){const _0x8f7c66=this['editor']['model']['document']['getRoot'](_0x479147),_0x26e636=this['editor']['editing']['view']['document']['getRoot'](_0x479147);if(_0x26e636){const _0x6d5de=_0x8f7c66['getAttribute']('revisionHistoryAttachChange');if(_0x301f89['removeAttribute']('data-change-id',_0x26e636),_0x301f89['removeClass']('ck-revision-history-root-add',_0x26e636),_0x301f89['removeClass']('ck-revision-history-root-remove',_0x26e636),_0x301f89['removeClass']('ck-revision-history-root--active',_0x26e636),_0x6d5de){const _0x21b74c=this['_getChangeFromId'](_0x6d5de);if(!_0x21b74c)return null;_0x301f89['setAttribute']('data-change-id',_0x6d5de,_0x26e636),_0x301f89['addClass']('ck-revision-history-root-'+_0x21b74c['type'],_0x26e636),this['activeChange']==_0x21b74c&&_0x301f89['addClass']('ck-revision-history-root--active',_0x26e636);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xa5a55a=>'revision-comment:'+_0xa5a55a,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4573e6=>'revision-suggestion:'+_0x4573e6,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0xff03fc=>({'name':'suggestion:'+_0xff03fc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4ebdf4=>{const _0x1e5983=_0x4ebdf4['markerName']['split'](':')[0x1];return'insertion'!=_0x1e5983&&'deletion'!=_0x1e5983?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1e5983]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x5709f1,_0x15ddb2,_0x35310a)=>{const _0x2e2f99=_0x35310a['mapper']['markerNameToElements'](_0x15ddb2['markerName']);if(_0x2e2f99){for(const _0x1ffbb3 of _0x2e2f99)_0x1ffbb3['is']('uiElement')&&(_0x35310a['mapper']['unbindElementFromMarkerName'](_0x1ffbb3,_0x15ddb2['markerName']),_0x35310a['writer']['remove'](_0x1ffbb3));}},{'priority':'high'});}['_getChangeFromId'](_0xdeef5){return this['_changeIdToChange']['get'](_0xdeef5);}['_getViewForChange'](_0xf68929){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0xf68929),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5de827,_0x1da559,_0x52eb91,_0x3072c8)=>{_0x3072c8&&this['_balloon']['remove'](_0x3072c8),_0x52eb91&&(this['_balloon']['add']({'view':_0x52eb91,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5ed05e=this['editor']['editing'],_0x21d330=this['_getChangeFromId'](_0x52eb91['changeId']);let _0x274d42;if(_0x21d330['data']['isOnRoot']){const _0x37bfd6=_0x5ed05e['view']['getDomRoot'](_0x21d330['rootName']);_0x274d42=Array['from'](_0x37bfd6['getClientRects']());}else{const _0x4d297f=this['editor']['model']['markers']['get']('revision:'+_0x52eb91['changeId']);_0x274d42=Array['from'](_0x5ed05e['mapper']['markerNameToElements'](_0x4d297f['name']))['map'](_0x2780bb=>_0x5ed05e['view']['domConverter']['mapViewToDom'](_0x2780bb))['map'](_0x57d968=>Array['from'](_0x57d968['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x274d42[0x0];return _0x274d42['find'](_0x58f00a=>_0x58f00a['top']-0x3<=this['_activeViewTarget']['y']&&_0x58f00a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x58f00a['left']-0x3<=this['_activeViewTarget']['x']&&_0x58f00a['right']+0x3>=this['_activeViewTarget']['x'])||_0x274d42[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xb49dec,_0x5d4f07,_0xbfa34d,_0x5da6f3)=>{this['activeView']=_0xbfa34d?this['_getViewForChange'](_0xbfa34d):null,this['editor']['model']['change'](()=>{const _0x4171e9=this['editor']['editing'];_0x5da6f3&&(_0x5da6f3['data']['isOnRoot']?_0x4171e9['view']['change'](_0x163223=>{_0x163223['removeClass']('ck-revision-history-root--active',_0x4171e9['view']['document']['getRoot'](_0x5da6f3['rootName']));}):_0x4171e9['reconvertMarker']('revision:'+_0x5da6f3['id'])),_0xbfa34d&&(_0xbfa34d['data']['isOnRoot']?_0x4171e9['view']['change'](_0x1df5de=>{_0x1df5de['addClass']('ck-revision-history-root--active',_0x4171e9['view']['document']['getRoot'](_0xbfa34d['rootName']));}):_0x4171e9['reconvertMarker']('revision:'+_0xbfa34d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1bf2f3,_0x2a1f30)=>{if(this['activeChange'])return;const _0x3cc363=this['_findChangeIdFromDomTarget'](_0x2a1f30['target']),_0x27b940=this['_changeIdToChange']['get'](_0x3cc363);_0x27b940?(this['_activeViewTarget']={'x':_0x2a1f30['domEvent']['x'],'y':_0x2a1f30['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x27b940)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x91ea9,_0x4cc18e)=>{const _0x11afb2=this['_findChangeIdFromDomTarget'](_0x4cc18e['target']),_0xb22845=this['_changeIdToChange']['get'](_0x11afb2);_0xb22845?(this['_activeViewTarget']={'x':_0x4cc18e['domEvent']['x'],'y':_0x4cc18e['domEvent']['y']},_0xb22845===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xb22845):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1d7ae6){do{const _0x1fd79d=_0x1d7ae6['getAttribute']('data-change-id');if(_0x1fd79d)return _0x1fd79d;_0x1d7ae6=_0x1d7ae6['parent'];}while(_0x1d7ae6);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x55fe28=>{for(const _0x1abfc0 of this['editor']['model']['markers'])_0x55fe28['removeMarker'](_0x1abfc0);});}}function Q(_0x4181d0,_0x1247dc){return(_0x19997b,_0x5c382f,_0x52fc1e)=>{if(!_0x52fc1e['consumable']['test'](_0x5c382f['markerRange'],_0x19997b['name']))return;const _0x10f2bb=_0x5c382f['markerRange']['getWalker'](),_0x1089dd=_0x5c382f['markerRange']['start'],_0x1d48dc=_0x4181d0['model']['schema'];let _0x370515=null,_0x412824=null,_0x4ba8e3=!0x1,_0x3d02af=!0x1;for(const _0x221a25 of _0x10f2bb){const _0x2903b2=_0x221a25['item'];_0x4ba8e3=_0x4ba8e3||_0x1d48dc['isContent'](_0x2903b2);const _0x2577da=_0x52fc1e['mapper']['toViewElement'](_0x2903b2);if(_0x2577da&&_0x2577da['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x221a25['type']&&(_0x1d48dc['isBlock'](_0x2903b2)&&!_0x1d48dc['isLimit'](_0x2903b2)&&(_0x2903b2['nextSibling']||_0x1089dd['isAtEnd']?_0x370515&&_0x370515['parent']==_0x2903b2||(_0x370515=_0x2903b2,_0x43a5c5(_0x221a25['previousPosition']),_0x3d02af=!0x0):_0x412824=_0x412824||_0x221a25['previousPosition']));}function _0x43a5c5(_0x2dc621){const _0x298827=_0x52fc1e['mapper']['toViewPosition'](_0x2dc621),_0x4633f8=_0x52fc1e['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1247dc});_0x52fc1e['writer']['insert'](_0x298827,_0x4633f8),_0x52fc1e['mapper']['bindElementToMarker'](_0x4633f8,_0x5c382f['markerName']);}_0x4ba8e3||_0x3d02af||!_0x412824||_0x43a5c5(_0x412824);};}class nt extends _0x2a2d7a{constructor(_0x1f1665){super(_0x1f1665);const _0x18183e=_0x1f1665['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x18183e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x18183e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xc0c317=this['editor'],_0x19af00=_0xc0c317['plugins']['get'](l),_0x412923=_0x19af00['isReady']?_0x19af00['diff']['newRevisionId']:null;_0xc0c317['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x412923);}['refresh'](){const {isReady:_0x5a01cb,isEnabled:_0x24e4c5,repository:_0x41f550,diff:_0x4bf6ba}=this['editor']['plugins']['get'](l),_0x2116e7=_0x4bf6ba&&_0x41f550['getLaterVisibleRevision'](_0x4bf6ba['newRevisionId']);this['isEnabled']=_0x5a01cb&&_0x24e4c5&&Boolean(_0x2116e7);}}class ot extends _0x2a2d7a{['_step'];constructor(_0x212806,{direction:_0x576425}){super(_0x212806);const _0x23735d=_0x212806['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x576425?0x1:-0x1,this['listenTo'](_0x23735d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x23735d,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x23735d,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x42285d=this['editor'],_0x18d670=_0x42285d['plugins']['get'](l),{isNavigationMode:_0x13cec6,currentChangeNumber:_0x40a02b}=_0x18d670;let _0x109eef;if(_0x18d670['activeChange']=_0x13cec6?_0x18d670['diff']['changes']['get'](_0x40a02b+this['_step']):_0x18d670['diff']['changes']['first'],_0x18d670['activeChange']['data']['isOnRoot'])_0x109eef=_0x42285d['editing']['view']['getDomRoot'](_0x18d670['activeChange']['rootName']);else{const _0x4ed9a9=_0x42285d['model']['markers']['get']('revision:'+_0x18d670['activeChange']['id']);_0x109eef=_0x56f66f(_0x42285d['editing'],_0x4ed9a9);}_0x5c62f({'target':_0x109eef,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2baafe,currentChangeNumber:_0xf30925,numberOfChanges:_0x2b233e,isReady:_0x2122b8,isEnabled:_0x1354f5}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x1354f5&&_0x2122b8&&_0x2b233e)&&(!_0x2baafe||(0x1===this['_step']?_0xf30925<_0x2b233e-0x1:_0xf30925>0x0));}}class Ri extends _0x49001e{constructor(_0x108a25){super(_0x108a25);const _0x14c3ae=this['bindTemplate'],_0x5da553=new _0x356661(_0x108a25),_0x37c049=new _0x356661(_0x108a25);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',(_0x409636,_0x5f83cb)=>_0x409636&&_0x5f83cb>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2f0042,_0x28c561,_0x3bafd6,_0x46440c)=>{if(!_0x2f0042)return R(_0x108a25,'Loading...');if(!_0x3bafd6)return R(_0x108a25,'No\x20changes');const _0x1f6225=R(_0x108a25,'NUMBER_OF_CHANGES',_0x3bafd6);return _0x46440c?R(_0x108a25,'X_OF_Y_CHANGES',[_0x28c561+0x1,_0x3bafd6]):_0x1f6225;}),_0x5da553['set']({'label':R(_0x108a25,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x24bb4f}),_0x37c049['set']({'label':R(_0x108a25,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x3a97a7}),_0x5da553['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x37c049['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5da553['on']('execute',()=>this['fire']('execute','backward')),_0x37c049['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',_0x14c3ae['if']('_isStatusLabelVisible','ck-hidden',_0x4cc972=>!_0x4cc972)]},'children':[{'text':_0x14c3ae['to']('isNavigationMode',_0x2031bb=>_0x2031bb?R(_0x108a25,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x108a25,'Total')+':\x20')}]},{'text':_0x14c3ae['to']('_statusText')}]},new _0x4da8fb(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5da553,_0x37c049]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x3a7117{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3205fc=this['editor']['editing']['view'];_0x3205fc['change'](_0x3b7453=>{for(const _0x59747f of _0x3205fc['document']['roots'])_0x3b7453['addClass'](ge,_0x59747f);});}['hide'](){const _0x11d385=this['editor']['editing']['view'];_0x11d385['change'](_0x40f0d5=>{for(const _0x508cf1 of _0x11d385['document']['roots'])_0x40f0d5['removeClass'](ge,_0x508cf1);});}}class u extends _0x3a7117{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x564b4e=this['editor'],_0xe4ba47=_0x564b4e['plugins']['get'](l),_0x2dd81a=_0x564b4e['plugins']['get'](ji);_0x564b4e['ui']['componentFactory']['add']('exitToEditing',_0x22ee87=>{const _0x3e0d29=new _0x356661(_0x22ee87);return _0x3e0d29['set']({'label':R(_0x22ee87,'Back\x20to\x20editing'),'icon':_0x3772c5,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3e0d29,'execute',()=>{_0x564b4e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3e0d29;}),_0x564b4e['ui']['componentFactory']['add']('restoreRevision',_0x15b847=>{const _0x280006=new _0x356661(_0x15b847);return _0x280006['set']({'label':R(_0x15b847,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x280006['bind']('isEnabled')['to'](_0x564b4e['commands']['get']('restoreRevision')),this['listenTo'](_0x280006,'execute',()=>_0x564b4e['execute']('restoreRevision')),_0x280006;}),_0x564b4e['ui']['componentFactory']['add']('changesNavigation',_0x1fe85b=>{const _0x558daa=new Ri(_0x1fe85b),_0x235f46=_0x564b4e['commands']['get']('showPreviousChange'),_0x24537c=_0x564b4e['commands']['get']('showNextChange');return _0x558daa['bind']('isBackwardNavigationEnabled')['to'](_0x235f46,'isEnabled'),_0x558daa['bind']('isForwardNavigationEnabled')['to'](_0x24537c,'isEnabled'),_0x558daa['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xe4ba47),this['listenTo'](_0x558daa,'execute',(_0x3e9cce,_0x32288e)=>{_0x564b4e['execute']('forward'===_0x32288e?'showNextChange':'showPreviousChange');}),_0x558daa;}),_0x2dd81a['show'](),_0xe4ba47['on']('change:isReady',(_0x36d940,_0x3863cd,_0x1d8b11)=>{_0x1d8b11?_0x2dd81a['hide']():_0x2dd81a['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x33af1b,_0x156a80){super(_0x33af1b,_0x156a80);const _0x25bc6c=this['bindTemplate'];this['set']({'label':R(_0x33af1b,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x33af1b,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x25bc6c['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4fa5b8=this['fieldView']['element'];this['_tooltipString']=_0x4fa5b8['scrollWidth']>_0x4fa5b8['clientWidth']&&_0x4fa5b8['value']||'';}}class vi extends _0x49001e{constructor(_0x3b4f42,_0x3ed192,_0x57a796){super(_0x3b4f42);const _0x18d9ab=new _0x3d47ac();_0x18d9ab['set']({'content':_0xb4cbd9,'viewBox':'0\x200\x2011\x2010'});const _0x5e7ed2=['ck','ck-revision-history-sidebar__revision-author'];_0x57a796&&_0x5e7ed2['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4cf9b2=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x3b4f42,_0x57a796?'Revision\x20creator':'Revision\x20author')},'children':[_0x18d9ab,_0x3ed192['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5e7ed2},'children':_0x4cf9b2});}}function mi(_0x1bc0e3,_0x3628d2){const _0x1f3047=_0x1bc0e3['bindTemplate'],_0x1884f8=_0x1bc0e3['locale'],_0x32f8d6=_0x546af5(_0x1884f8);_0x32f8d6['panelPosition']='sw';const _0x479525=function(_0x5df991,_0x2e635a){const _0x16ec54=function(_0x20f376,_0x2c0421){const _0x46c716=_0x20f376['locale'],_0x49081d={'Compare\x20against\x20selected':R(_0x46c716,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x46c716,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x46c716,'Restore\x20this\x20revision')};return _0x2c0421['map'](_0x4423e2=>{const _0x4ac044=_0x49081d[_0x4423e2['name']];return _0x4ac044&&_0x4ac044!==_0x4423e2['name']&&(_0x4423e2['name']=_0x4ac044),_0x4423e2;});}(_0x5df991,_0x2e635a),_0x3c4433=new _0x2e7af1();for(const _0x5da960 of _0x16ec54){const _0x243db4={'type':'button','model':new to({'label':_0x5da960['name'],'class':_0x5da960['class'],'withText':!0x0,'role':'menuitem','_action':_0x5da960['action']})};_0x243db4['model']['bind']('isEnabled')['to'](_0x5df991,'isActionsDropdownOpen',_0x18b5be=>'function'!=typeof _0x5da960['isEnabled']||(!_0x18b5be||_0x5da960['isEnabled'](_0x5df991))),_0x3c4433['add'](_0x243db4);}return _0x3c4433;}(_0x1bc0e3,_0x3628d2);return _0x1bc0e3['bind']('isActionsDropdownOpen')['to'](_0x32f8d6,'isOpen'),_0x32f8d6['buttonView']['set']({'label':R(_0x1884f8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x357701}),_0x32f8d6['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1f3047['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1f3047['to'](_0x281e8f=>_0x281e8f['stopPropagation']())}}),_0x32f8d6['on']('execute',_0x244138=>{_0x1bc0e3['isReady']&&'function'==typeof _0x244138['source']['_action']&&_0x244138['source']['_action'](_0x1bc0e3);}),_0x58c2ad(_0x32f8d6,_0x479525,{'role':'menu'}),_0x32f8d6['listenTo'](_0x1bc0e3,'change:isActionsDropdownOpen',(_0x3455fd,_0x284583,_0x190581)=>{if(_0x190581)for(const _0x15bd05 of _0x32f8d6['listView']['items']){const _0x38a82f=_0x15bd05['children']['first'],_0x5b051c=_0x3628d2['find'](_0x33536b=>_0x33536b['action']===_0x38a82f['_action'])['isVisible'];_0x15bd05['isVisible']=void 0x0===_0x5b051c||_0x5b051c(_0x1bc0e3);}}),_0x32f8d6;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x389b52,uid as _0x280b09,Collection as _0x44d325,logWarning as _0x1d6023,FocusTracker as _0x417d49,KeystrokeHandler as _0x3e616c,scrollViewportToShowTarget as _0x100974,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x490905}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x55a8fc,set as _0x3dc319,unset as _0x2dd7b4,isEqual as _0x15acd1}from'es-toolkit/compat';import{Plugin as _0x2613d1,PendingActions as _0x29745e,Command as _0x22d940,ElementApiMixin as _0x43bbf9,Editor as _0x3807fb}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x25b15e,getMarkerDomElement as _0x201b04,ConfirmMixin as _0x4fe092,sanitizeEditorConfig as _0x443e12}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x396dfb,ViewAttributeElement as _0x450d8b,ViewEmptyElement as _0x3c3b3a,ViewRawElement as _0x2769aa,ViewUIElement as _0x2be263,ViewDocumentFragment as _0x534e16,ViewText as _0x149209,ViewElement as _0x3ca579,ModelElement as _0x1b3786,ModelRange as _0x54a9c4,ModelPosition as _0x2a9a1e,ModelDocumentFragment as _0x3dd335,ModelText as _0x6ac09e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x20563f,IconChevronUp as _0x3373fb,IconChevronDown as _0x282b42,IconUndo as _0x5ecd83,IconUser as _0x3e744d,IconThreeVerticalDots as _0x384d3b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x433e06,View as _0x515a02,submitHandler as _0x65533b,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x1d18c2,ListView as _0x417f09,ListItemView as _0x57ea70,ButtonView as _0x5f0d38,MenuBarMenuView as _0x365e4e,MenuBarMenuListView as _0x4e642d,MenuBarMenuListItemView as _0x2c2d4b,MenuBarMenuListItemButtonView as _0x5cfcd5,ContextualBalloon as _0x45a7c2,ToolbarSeparatorView as _0x10326d,IconView as _0x753fee,addListToDropdown as _0x27a0f2,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x947711,StickyPanelView as _0x1388c3,ToolbarView as _0x573054,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x11f08a}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x389b52(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x473b65){super(),this['id']=_0x473b65['id']||_0x280b09(),this['creator']=_0x473b65['creator']||null,this['authors']=_0x473b65['authors']||[],this['diffData']=_0x473b65['diffData']||null,this['toVersion']=_0x473b65['toVersion']||0x0,this['fromVersion']=_0x473b65['fromVersion']||0x0,this['set']('name',_0x473b65['name']||''),this['set']('createdAt',_0x473b65['createdAt']||new Date()),this['set']('attributes',_0x473b65['attributes']||{});}['setName'](_0x44b1ff){this['_update']({'name':_0x44b1ff});}['setAttribute'](_0x40b2b7,_0x1332de){const _0x169cf0=_0x55a8fc(this['attributes']);_0x3dc319(_0x169cf0,_0x40b2b7,_0x1332de),this['_update']({'attributes':_0x169cf0});}['removeAttribute'](_0x171ede){const _0x32445b=_0x55a8fc(this['attributes']);_0x2dd7b4(_0x32445b,_0x171ede),this['_update']({'attributes':_0x32445b});}['_update'](_0x268abd,_0x4cdfff=!0x1){let _0x4abbd7=!0x1;const _0x530756={'id':this['id']},_0x3b9ee7=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2de086 of _0x3b9ee7){const _0x3f7673=_0x268abd[_0x2de086];void 0x0!==_0x3f7673&&_0x3f7673!==this[_0x2de086]&&(this[_0x2de086]=_0x3f7673,_0x530756[_0x2de086]=_0x3f7673,_0x4abbd7=!0x0);}_0x4abbd7&&(_0x530756['authors']&&(_0x530756['authorsIds']=_0x530756['authors']['map'](_0x548154=>_0x548154['id']),delete _0x530756['authors']),this['fire']('_update',_0x530756,_0x4cdfff));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1e81c0=>_0x1e81c0['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x2613d1{['_revisions'];static get['requires'](){return[_0x25b15e];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x224d3b){super(_0x224d3b),this['_revisions']=new _0x44d325();}['afterInit'](){!async function(_0x1fcb17){const _0x474322=_0x350d8a([0x73,0x6f,0x67,0x77,0x55,0x42,0x61,0x62,0x59,0x58,0x39,0x41,0x5a,0x47,0x78,0x65,0x7a,0x75,0x35,0x4a,0x52,0x43,0x6d,0x34,0x44,0x72,0x4e,0x79,0x74,0x37,0x48,0x76,0x63,0x32,0x31,0x6c,0x33,0x4d,0x36,0x57,0x30,0x69,0x71,0x46,0x50,0x54,0x68,0x4f,0x4b,0x66,0x64,0x70,0x4c,0x49,0x6e,0x38,0x51,0x6a,0x6b,0x53,0x45,0x56]),_0x34776e=0xeb829,_0x5dfb0d=0x1eeb658f,_0x3e2e9d=0x1eec0e97^_0x5dfb0d,_0x468119=window[_0x350d8a([0x44,0x61,0x74,0x65])][_0x350d8a([0x6e,0x6f,0x77])](),_0x4cbee4=_0x1fcb17[_0x350d8a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x206f20=new window[(_0x350d8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23b262=>{_0x4cbee4[_0x350d8a([0x6f,0x6e,0x63,0x65])](_0x350d8a([0x72,0x65,0x61,0x64,0x79]),_0x23b262);}),_0x159f07={[_0x350d8a([0x6b,0x74,0x79])]:_0x350d8a([0x45,0x43]),[_0x350d8a([0x75,0x73,0x65])]:_0x350d8a([0x73,0x69,0x67]),[_0x350d8a([0x63,0x72,0x76])]:_0x350d8a([0x50,0x2d,0x32,0x35,0x36]),[_0x350d8a([0x78])]:_0x350d8a([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]),[_0x350d8a([0x79])]:_0x350d8a([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]),[_0x350d8a([0x61,0x6c,0x67])]:_0x350d8a([0x45,0x53,0x32,0x35,0x36])},_0x74960d=_0x4cbee4[_0x350d8a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x350d8a([0x67,0x65,0x74])](_0x350d8a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c11ef(){let _0x9d90bf,_0x541cae=null,_0xfd62bb=null;try{if(_0x74960d==_0x350d8a([0x47,0x50,0x4c]))return _0x350d8a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9d90bf=_0x28d4f5(),!_0x9d90bf)return _0x350d8a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9d90bf[_0x350d8a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xfd62bb=_0x48f5c1(_0x9d90bf[_0x350d8a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9d90bf[_0x350d8a([0x6a,0x74,0x69])])),await _0x46bc6d()?_0x2d02a3()?_0x36da9a()?_0x350d8a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x35af8d()?(_0x9d90bf[_0x350d8a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x350d8a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x541cae=_0x55e9ee(_0x350d8a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9d90bf[_0x350d8a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x350d8a([0x74,0x72,0x69,0x61,0x6c])&&(_0x541cae=_0x55e9ee(_0x350d8a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x7efbd0()):_0x350d8a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x350d8a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x350d8a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x350d8a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x36da9a(){const _0x212320=[_0x350d8a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x350d8a([0x74,0x72,0x69,0x61,0x6c])][_0x350d8a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9d90bf[_0x350d8a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x468119/0x3e8:0xe10*_0x3e2e9d;return _0x9d90bf[_0x350d8a([0x65,0x78,0x70])]<_0x212320;}function _0x2d02a3(){const _0x492fb7=_0x9d90bf[_0x350d8a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x492fb7)return!0x1;if(_0x492fb7[_0x350d8a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x350d8a([0x2a])))return!0x0;if(_0x492fb7[_0x350d8a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x350d8a([0x52,0x48])))return!0x0;if(_0x492fb7[_0x350d8a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x350d8a([0x52,0x52,0x48]))){if(_0x5448ed())return!0x0;if(_0x4ba60()||_0x3b40fb())return!0x0;}return!0x1;}function _0x35af8d(){const _0x2f33d8=_0x9d90bf[_0x350d8a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2f33d8||0x0==_0x2f33d8[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x363884}=new URL(window[_0x350d8a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2f33d8[_0x350d8a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x363884))return!0x0;const _0x2dfed5=_0x363884[_0x350d8a([0x73,0x70,0x6c,0x69,0x74])](_0x350d8a([0x2e]));return _0x2f33d8[_0x350d8a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x476dd2=>_0x476dd2[_0x350d8a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x350d8a([0x2a])))[_0x350d8a([0x6d,0x61,0x70])](_0x39d468=>_0x39d468[_0x350d8a([0x73,0x70,0x6c,0x69,0x74])](_0x350d8a([0x2e])))[_0x350d8a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a44b7=>_0x1a44b7[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2dfed5[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x350d8a([0x6d,0x61,0x70])](_0x56f168=>Array(_0x2dfed5[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x56f168[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x350d8a([0x66,0x69,0x6c,0x6c])](_0x56f168[0x0]===_0x350d8a([0x2a])?_0x350d8a([0x2a]):'')[_0x350d8a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x56f168))[_0x350d8a([0x73,0x6f,0x6d,0x65])](_0x57cf08=>_0x2dfed5[_0x350d8a([0x65,0x76,0x65,0x72,0x79])]((_0x411bd3,_0x6456ac)=>_0x57cf08[_0x6456ac]===_0x411bd3||_0x57cf08[_0x6456ac]===_0x350d8a([0x2a])));}function _0x7efbd0(){return _0x541cae&&_0xfd62bb?new window[(_0x350d8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ceb3f,_0x1829ee)=>{_0x541cae[_0x350d8a([0x74,0x68,0x65,0x6e])](_0x4ceb3f,_0x1829ee),_0xfd62bb[_0x350d8a([0x74,0x68,0x65,0x6e])](_0x3b3d7b=>{_0x3b3d7b!=_0x350d8a([0x56,0x61,0x6c,0x69,0x64])&&_0x4ceb3f(_0x3b3d7b);},_0x1829ee);}):_0x541cae||_0xfd62bb||_0x350d8a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x48f5c1(_0x108eab,_0x5e732a){return new window[(_0x350d8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5017a7=>{if(_0x5bdca0())return _0x5017a7(_0x350d8a([0x56,0x61,0x6c,0x69,0x64]));_0x5dfca0(),_0x4cbee4[_0x350d8a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x350d8a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x32ca6a=!0x1;const _0x3f2610=_0x280b09();function _0x22c3ea(_0x4388bc){return!!_0x4388bc&&(typeof _0x4388bc===_0x350d8a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4388bc===_0x350d8a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4388bc[_0x350d8a([0x74,0x68,0x65,0x6e])]===_0x350d8a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4388bc[_0x350d8a([0x63,0x61,0x74,0x63,0x68])]===_0x350d8a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x63fcff(_0x140d9e){_0x2cab30(_0x140d9e)[_0x350d8a([0x74,0x68,0x65,0x6e])](_0x883db5=>{if(!_0x883db5||_0x883db5[_0x350d8a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x350d8a([0x6f,0x6b]))return _0x350d8a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e6e5(_0x52f9d5(_0x3f2610+_0x5e732a))!=_0x883db5[_0x350d8a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x350d8a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x350d8a([0x56,0x61,0x6c,0x69,0x64]);})[_0x350d8a([0x74,0x68,0x65,0x6e])](_0x3dcd80=>(_0x1cbe7f(),_0x3dcd80),()=>{const _0x2e1260=_0x55f96c();return null==_0x2e1260?(_0x1cbe7f(),_0x350d8a([0x56,0x61,0x6c,0x69,0x64])):_0x350d8a(_0x468119-_0x2e1260>(0x3ae7e18f^_0x5dfb0d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x350d8a([0x74,0x68,0x65,0x6e])](_0x5017a7)[_0x350d8a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5017a7(_0x350d8a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5724c6=0x1edd8b0f^_0x5dfb0d;function _0x1cbe7f(){const _0x530705=_0x350d8a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e6e5(_0x52f9d5(_0x108eab)),_0x468298=_0x328b63(_0x5e6e5(window[_0x350d8a([0x4d,0x61,0x74,0x68])][_0x350d8a([0x63,0x65,0x69,0x6c])](_0x468119/_0x5724c6)));window[_0x350d8a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x350d8a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x530705,_0x468298);}function _0x55f96c(){const _0x56f0ed=_0x350d8a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e6e5(_0x52f9d5(_0x108eab)),_0xc30844=window[_0x350d8a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x350d8a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56f0ed);return _0xc30844?window[_0x350d8a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x328b63(_0xc30844),0x10)*_0x5724c6:null;}function _0x2cab30(_0x1997aa){return new window[(_0x350d8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xed6934,_0x5b0420)=>{_0x1997aa[_0x350d8a([0x74,0x68,0x65,0x6e])](_0xed6934,_0x5b0420),window[_0x350d8a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b0420,0x1eeab14f^_0x5dfb0d);});}}_0x4cbee4[_0x350d8a([0x6f,0x6e])](_0x350d8a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x358e8f,_0x356dba)=>{if(_0x356dba[0x0]!=_0x108eab)return _0x5017a7(_0x350d8a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x356dba[0x1]={..._0x356dba[0x1],[_0x350d8a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f2610};},{[_0x350d8a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x350d8a([0x68,0x69,0x67,0x68])}),_0x4cbee4[_0x350d8a([0x6f,0x6e])](_0x350d8a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2416d9=>{_0x22c3ea(_0x2416d9[_0x350d8a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x32ca6a=!0x0,_0x63fcff(_0x2416d9[_0x350d8a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x350d8a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x350d8a([0x6c,0x6f,0x77])}),_0x206f20[_0x350d8a([0x74,0x68,0x65,0x6e])](()=>{_0x32ca6a||_0x5017a7(_0x350d8a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5bdca0(){return _0x4cbee4[_0x350d8a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x350d8a([0x76,0x69,0x65,0x77])][_0x350d8a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x350d8a([0x61,0x75,0x74,0x6f]);}function _0x5dfca0(){_0x4cbee4[_0x350d8a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x350d8a([0x76,0x69,0x65,0x77])][_0x350d8a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x350d8a([0x61,0x75,0x74,0x6f]);}}function _0x55e9ee(_0x1c7fe5){const _0x5ea16e=[new window[(_0x350d8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbea9f=>setTimeout(_0xbea9f,0x1ee25b43^_0x5dfb0d)),_0x206f20[_0x350d8a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x350d8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20f466=>{const _0x4ca1b9=0x1eeb6588^_0x5dfb0d,_0x4c1765=_0x1fcb17[_0x350d8a([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x12f5eb(){_0x4c1765[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4ca1b9&&_0x20f466();}_0x12f5eb(),_0x4c1765[_0x350d8a([0x6f,0x6e])](_0x350d8a([0x61,0x64,0x64]),_0x12f5eb);})),new window[(_0x350d8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d3b04=>{function _0x34249b(){for(const _0x39a409 in window)if(window[_0x350d8a([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x350d8a([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x39a409))&&window[_0x39a409]==_0x34776e)return _0x4d3b04();_0x4cbee4[_0x350d8a([0x73,0x74,0x61,0x74,0x65])]!=_0x350d8a([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x350d8a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34249b,0x1eeb7607^_0x5dfb0d);}_0x1239aa(_0x350d8a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x34249b();})];return window[_0x350d8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x350d8a([0x72,0x61,0x63,0x65])](_0x5ea16e)[_0x350d8a([0x74,0x68,0x65,0x6e])](()=>_0x1c7fe5);}async function _0x47b659(){if(await _0x206f20,_0x1239aa(_0x350d8a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x10b00a=_0x1fcb17[_0x350d8a([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x690e68=_0x1fcb17[_0x350d8a([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])](_0x10b00a[_0x350d8a([0x69,0x64])]),_0x53e767=_0x1304ed(_0x350d8a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x53e767[_0x350d8a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x10b00a['id'],_0x690e68?_0x690e68['id']:null,!0x0),_0x53e767[_0x350d8a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x350d8a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x53e767[_0x350d8a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x53e767[_0x350d8a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x48d5dd,void(_0x53e767[_0x350d8a([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x48d5dd);}if(_0x1239aa(_0x350d8a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2ef7cf=_0x1304ed(_0x350d8a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2ef7cf[_0x350d8a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x350d8a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2ef7cf[_0x350d8a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2ef7cf[_0x350d8a([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x48d5dd,_0x2ef7cf[_0x350d8a([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x48d5dd;}_0x4cbee4[_0x350d8a([0x6d,0x6f,0x64,0x65,0x6c])][_0x350d8a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x48d5dd,_0x4cbee4[_0x350d8a([0x6d,0x6f,0x64,0x65,0x6c])][_0x350d8a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x48d5dd,_0x4cbee4[_0x350d8a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x350d8a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5448ed(){return _0x1239aa(_0x350d8a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1304ed(_0x350d8a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x350d8a([0x73,0x74,0x61,0x74,0x65])]==_0x350d8a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4ba60(){return _0x1239aa(_0x350d8a([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 _0x3b40fb(){return _0x1239aa(_0x350d8a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x735423(_0xdcbac){const _0x473612=_0x359bcd();_0x4cbee4[_0x473612]=_0x350d8a([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])+_0xdcbac,_0xdcbac[_0x350d8a([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x350d8a([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x359bcd()]=_0x34776e),_0xdcbac!=_0x350d8a([0x56,0x61,0x6c,0x69,0x64])&&_0x47b659();}function _0x359bcd(){const _0x459420=window[_0x350d8a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x350d8a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x350d8a([0x6e,0x6f,0x77])]())[_0x350d8a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x350d8a([0x2e]),'');let _0x342284=_0x350d8a([0x73]);for(let _0x550205=0x0;_0x550205<_0x459420[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x550205+=0x2){let _0x36eb4b=window[_0x350d8a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x459420[_0x350d8a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x550205,_0x550205+0x2));_0x36eb4b>=_0x474322[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36eb4b-=_0x474322[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x342284+=_0x474322[_0x36eb4b];}return _0x342284;}function _0x28d4f5(){const _0xc52dcd=_0x74960d[_0x350d8a([0x73,0x70,0x6c,0x69,0x74])](_0x350d8a([0x2e]));if(0x3!=_0xc52dcd[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5154d1(_0xc52dcd[0x1]);function _0x5154d1(_0x279c69){const _0x388ec5=_0x4f0c67(_0x279c69);return _0x388ec5&&_0x1680ae()?_0x388ec5:null;function _0x1680ae(){const _0x2cac26=_0x388ec5[_0x350d8a([0x6a,0x74,0x69])],_0x3a7600=window[_0x350d8a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cac26[_0x350d8a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2cac26[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x520e82={..._0x388ec5,[_0x350d8a([0x6a,0x74,0x69])]:_0x2cac26[_0x350d8a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2cac26[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x520e82[_0x350d8a([0x76,0x63])],_0x52f9d5(_0x520e82)==_0x3a7600;}}}async function _0x46bc6d(){let _0x1b42f3=!0x0;try{const _0x42cbdb=_0x74960d[_0x350d8a([0x73,0x70,0x6c,0x69,0x74])](_0x350d8a([0x2e])),[_0x77b92e,_0x194eb8,_0xc2d5db]=_0x42cbdb;return _0x22ff1e(_0x77b92e),await _0x1ad357(_0x77b92e,_0x194eb8,_0xc2d5db),_0x1b42f3;}catch{return!0x1;}function _0x22ff1e(_0x1364d7){const _0xef4c41=_0x4f0c67(_0x1364d7);_0xef4c41&&_0xef4c41[_0x350d8a([0x61,0x6c,0x67])]==_0x350d8a([0x45,0x53,0x32,0x35,0x36])||(_0x1b42f3=!0x1);}async function _0x1ad357(_0x1d6648,_0x44aa88,_0x133c81){const _0x292dab=window[_0x350d8a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x350d8a([0x66,0x72,0x6f,0x6d])](_0x1cb052(_0x133c81),_0x2a3f5a=>_0x2a3f5a[_0x350d8a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ccda4=new window[(_0x350d8a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x350d8a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d6648+_0x350d8a([0x2e])+_0x44aa88),_0xfa6e7f=window[_0x350d8a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x350d8a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xfa6e7f)return;const _0x27c934=await _0xfa6e7f[_0x350d8a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x350d8a([0x6a,0x77,0x6b]),_0x159f07,{[_0x350d8a([0x6e,0x61,0x6d,0x65])]:_0x350d8a([0x45,0x43,0x44,0x53,0x41]),[_0x350d8a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x350d8a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x350d8a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xfa6e7f[_0x350d8a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x350d8a([0x6e,0x61,0x6d,0x65])]:_0x350d8a([0x45,0x43,0x44,0x53,0x41]),[_0x350d8a([0x68,0x61,0x73,0x68])]:{[_0x350d8a([0x6e,0x61,0x6d,0x65])]:_0x350d8a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x27c934,_0x292dab,_0x5ccda4)||(_0x1b42f3=!0x1);}}function _0x4f0c67(_0x325f4f){return _0x325f4f[_0x350d8a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x350d8a([0x65,0x79]))?JSON[_0x350d8a([0x70,0x61,0x72,0x73,0x65])](_0x1cb052(_0x325f4f)):null;}function _0x1cb052(_0xecf722){return window[_0x350d8a([0x61,0x74,0x6f,0x62])](_0xecf722[_0x350d8a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x350d8a([0x2b]))[_0x350d8a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x350d8a([0x2f])));}function _0x52f9d5(_0x484d89){let _0x18cfa2=0x1505;function _0x23de6e(_0x236f29){for(let _0x324ddf=0x0;_0x324ddf<_0x236f29[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x324ddf++){const _0x275930=_0x236f29[_0x350d8a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x324ddf);_0x18cfa2=(_0x18cfa2<<0x5)+_0x18cfa2+_0x275930,_0x18cfa2&=_0x18cfa2;}}function _0x59be58(_0x209757){Array[_0x350d8a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x209757)?_0x209757[_0x350d8a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59be58):_0x209757&&typeof _0x209757==_0x350d8a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x350d8a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x209757)[_0x350d8a([0x73,0x6f,0x72,0x74])]()[_0x350d8a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x508556,_0x15a70a])=>{_0x23de6e(_0x508556),_0x59be58(_0x15a70a);}):_0x23de6e(window[_0x350d8a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x209757));}return _0x59be58(_0x484d89),_0x18cfa2>>>0x0;}function _0x5e6e5(_0x590c7d){return _0x590c7d[_0x350d8a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x350d8a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x350d8a([0x30]));}function _0x328b63(_0x504f7d){return _0x504f7d[_0x350d8a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x350d8a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x350d8a([0x6a,0x6f,0x69,0x6e])]('');}function _0x1239aa(_0x1ebd34){return _0x4cbee4[_0x350d8a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x350d8a([0x68,0x61,0x73])](_0x1ebd34);}function _0x1304ed(_0xdbe23d){return _0x4cbee4[_0x350d8a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x350d8a([0x67,0x65,0x74])](_0xdbe23d);}function _0x48d5dd(){}function _0x350d8a(_0x196eb0){return _0x196eb0['map'](_0x3db5a0=>String['fromCharCode'](_0x3db5a0))['join']('');}_0x735423(await _0x2c11ef());}(this);}['createRevision'](_0x253d55){const _0x10327d=this['editor']['plugins']['get']('Users');return new I({'id':_0x253d55['id'],'name':_0x253d55['name'],'creator':_0x253d55['creatorId']?_0x10327d['getUser'](_0x253d55['creatorId']):null,'diffData':_0x253d55['diffData']||_0x253d55['data'],'authors':_0x253d55['authorsIds']['map'](_0xb9eb15=>_0x10327d['getUser'](_0xb9eb15)),'createdAt':new Date(_0x253d55['createdAt']),'attributes':_0x253d55['attributes'],'fromVersion':_0x253d55['fromVersion'],'toVersion':_0x253d55['toVersion']});}['addRevision'](_0x1d040d,_0x13c2ea=0x0){this['_revisions']['add'](_0x1d040d,_0x13c2ea);}['getRevision'](_0x30cdda){return this['_revisions']['get'](_0x30cdda);}['getRevisions'](_0x251657={'toJSON':!0x1}){const _0x3315ab=Array['from'](this['_revisions']);return _0x3315ab['reverse'](),_0x251657['toJSON']?_0x3315ab['map'](_0x3a8f06=>_0x3a8f06['toJSON']()):_0x3315ab;}['getIndex'](_0x2c5add){return this['_revisions']['getIndex'](_0x2c5add);}['getEarlierVisibleRevision'](_0x39a243){const [,_0x32cae0]=this['getRevisionsIterator'](_0x39a243,{'direction':'earlier'});return _0x32cae0;}['getLaterVisibleRevision'](_0x326678){const [,_0x46af7b]=this['getRevisionsIterator'](_0x326678,{'direction':'later'});return _0x46af7b;}['getRevisionsInDiff'](_0x4cbd29){const _0x2dc43b=[];for(const _0x5c1e09 of this['getRevisionsIterator'](_0x4cbd29['newRevisionId']))if(_0x2dc43b['push'](_0x5c1e09),_0x5c1e09['id']===_0x4cbd29['oldRevisionId'])break;return _0x2dc43b;}*['getRevisionsIterator'](_0x13d4f9,{direction:_0x39e2d9='earlier',filter:_0x4e99e9=()=>!0x0}={}){const _0x30dba9='earlier'===_0x39e2d9?0x1:-0x1;let _0x345311=this['_revisions']['get'](_0x13d4f9),_0x45d211=this['getIndex'](_0x345311);for(yield _0x345311;_0x345311;){if(_0x45d211+=_0x30dba9,_0x345311=this['getRevision'](_0x45d211),!_0x345311)return;_0x4e99e9(_0x345311)&&(yield _0x345311);}}}class $ extends _0x2613d1{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x396dfb,'c'],[_0x450d8b,'a'],[_0x3c3b3a,'e'],[_0x2769aa,'r'],[_0x2be263,'u']]);['_typeCharToViewClass']=new Map([['c',_0x396dfb],['a',_0x450d8b],['e',_0x3c3b3a],['r',_0x2769aa],['u',_0x2be263]]);async['loadRevisionData'](_0x458c6e,_0x2ff016){if(_0x458c6e['diffData']||!_0x2ff016)return;const _0x1f44c0=this['editor']['config']['get']('collaboration.channelId'),_0x5bf99e=await _0x2ff016['getRevision']({'channelId':_0x1f44c0,'revisionId':_0x458c6e['id']});_0x458c6e['diffData']=_0x5bf99e['diffData'];}['getRevisionDocumentData'](_0x1f84cc){const _0x51dc94={};for(const _0x205f34 in _0x1f84cc['diffData']){if(_0x1f84cc['diffData'][_0x205f34]['attachChange']&&!_0x1f84cc['diffData'][_0x205f34]['attachChange']['isAttached'])continue;const _0x12359a=this['_removeRevisionMarkers'](JSON['parse'](_0x1f84cc['diffData'][_0x205f34]['insertions'])),_0x5d15f4=this['editor']['editing']['view']['document'],_0x4d00d0=new _0x534e16(_0x5d15f4,_0x12359a['map'](_0x5072f8=>this['_getViewFromDiffObj'](_0x5072f8,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x51dc94[_0x205f34]=this['editor']['data']['processor']['toData'](_0x4d00d0),this['editor']['data']['processor']['useFillerType']('default');}return _0x51dc94;}['getRevisionRootsAttributes'](_0x45f8b8){const _0x3b0c97={};for(const _0x41cb84 in _0x45f8b8['diffData'])_0x45f8b8['diffData'][_0x41cb84]['attachChange']&&!_0x45f8b8['diffData'][_0x41cb84]['attachChange']['isAttached']||(_0x3b0c97[_0x41cb84]=_0x45f8b8['diffData'][_0x41cb84]['attributesAfter']||{});return _0x3b0c97;}['_getTypeCharForViewElement'](_0x44c440){return this['_viewClassToTypeChar']['get'](_0x44c440['constructor']);}['_getViewFromDiffObj'](_0xab991c,_0x400881){const _0x18206a=this['editor']['editing']['view']['document'];if('string'==typeof _0xab991c)return new _0x149209(_0x18206a,_0xab991c);{let _0x1cfce8,_0x52e375;_0x52e375='u'==_0xab991c['type']||'r'==_0xab991c['type']?[]:_0xab991c['children']['map'](_0x48f27d=>this['_getViewFromDiffObj'](_0x48f27d,_0x400881));const _0x9611f7=this['_typeCharToViewClass']['get'](_0xab991c['type'])||_0x3ca579,_0x5498fe=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1cfce8=new _0x9611f7(_0x18206a,_0xab991c['name'],_0xab991c['attributes'],_0x52e375),'u'==_0xab991c['type']&&_0xab991c['children'][0x0]){const _0x4eccb4=_0xab991c['children'][0x0];if(_0x1cfce8['render']=function(_0x14ff6f){const _0x3e356a=_0x14ff6f['createElement']('div');return _0x3e356a['innerHTML']=_0x4eccb4,_0x3e356a['childNodes'][0x0];},_0x400881){const _0x2485fe=new _0x534e16(_0x18206a);_0x2485fe['_appendChild'](_0x1cfce8);const _0x2f0011=Array['from'](_0x5498fe['viewChildrenToDom'](_0x2485fe,{'bind':!0x1})),_0x14efe2=_0x5498fe['domDocument']['createElement']('div');_0x14efe2['append'](..._0x2f0011),_0x1cfce8=Array['from'](_0x5498fe['domChildrenToView'](_0x14efe2))[0x0];}}else{if('r'==_0xab991c['type']&&_0xab991c['children'][0x0]){const _0x284769=_0xab991c['children'][0x0];if(_0x1cfce8['render']=function(_0x132fd9){_0x132fd9['innerHTML']=_0x284769;},_0x400881){const _0x412c33=new _0x534e16(_0x18206a);_0x412c33['_appendChild'](_0x1cfce8);const _0x2a1273=Array['from'](_0x5498fe['viewChildrenToDom'](_0x412c33,{'bind':!0x1})),_0xdf02d4=_0x5498fe['domDocument']['createElement']('div');_0xdf02d4['append'](..._0x2a1273);const _0xcd0fe0=Array['from'](_0x5498fe['domChildrenToView'](_0xdf02d4));_0xcd0fe0['length']>0x1?_0x1cfce8['_appendChild'](_0xcd0fe0):_0x1cfce8=_0xcd0fe0[0x0];}}}if(_0xab991c['customProperties']){for(const [_0x1db9c6,_0x4cbe83]of _0xab991c['customProperties'])_0x1cfce8['_setCustomProperty'](_0x1db9c6,_0x4cbe83);}const _0x543906=void 0x0===_0xab991c['fillerOffset']?null:_0xab991c['fillerOffset'];return null!==_0x543906&&(_0x1cfce8['getFillerOffset']=()=>_0x543906),_0x1cfce8;}}['_makeModelFromViewString'](_0x5f5be9){const _0x3a98ef=JSON['parse'](_0x5f5be9),_0x574d21=this['editor']['editing']['view']['document'],_0x10ca3f=new _0x534e16(_0x574d21,_0x3a98ef['map'](_0x518483=>this['_getViewFromDiffObj'](_0x518483,!0x0)));return this['editor']['data']['toModel'](_0x10ca3f);}['_removeRevisionMarkers'](_0x47234c){return(_0x47234c=_0x47234c['filter'](_0x4e290a=>!_0x4e290a['name']||'revision-start'!==_0x4e290a['name']&&'revision-end'!==_0x4e290a['name']))['forEach'](_0x54adc1=>{'string'!=typeof _0x54adc1&&(_0x54adc1['children']=this['_removeRevisionMarkers'](_0x54adc1['children']),_0x54adc1['attributes']=_0x54adc1['attributes']['filter'](_0x47117a=>!_0x47117a[0x0]['startsWith']('data-revision-')));}),_0x47234c;}}function R(_0x40fa81,_0x56a676,_0x36db43){const t=_0x40fa81['t'];switch(_0x56a676){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'},_0x36db43);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x36db43);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x2613d1{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x25b15e,S,$,_0x29745e];}constructor(_0x208d7a){super(_0x208d7a),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x12b52a=_0x280b09();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x12b52a},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x58150a=this['repository']['getRevision'](0x0),_0x341fa6=_0x58150a&&null===_0x58150a['creator']?_0x58150a:null;if(this['_continueCurrentRevision']=!!_0x341fa6&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4cf16e=this['_source']['getCurrentRevisionId'](),_0x2f22fb=this['repository']['getRevision'](_0x4cf16e);if(_0x2f22fb)this['_startingVersion']=_0x2f22fb['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5561ae=this['_source']['history']['_operations']['find'](_0x1a8271=>!_0x1a8271['_isInit']),_0x310dcf=_0x5561ae?_0x5561ae['baseVersion']:this['_source']['history']['version'];_0x58150a?(_0x58150a['toVersion']<_0x310dcf&&_0x58150a['_update']({'toVersion':_0x310dcf}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x341fa6['id'],this['_startingVersion']=_0x341fa6['fromVersion']):(this['_startingVersion']=_0x58150a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x310dcf,this['_continueCurrentRevision']=!0x1);}}else _0x341fa6&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x341fa6['toVersion'],this['editor']['model']['document']['history']['version']),_0x341fa6['fromVersion']===_0x341fa6['toVersion']?(0x0!==_0x341fa6['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x341fa6['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x341fa6['id'],this['_startingVersion']=_0x341fa6['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',_0x483228=>!_0x483228),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5bddcf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x504032;for(const _0x27cba1 in _0x5bddcf){const _0x1cc2a4=_0x27cba1,_0x10c840=_0x5bddcf[_0x1cc2a4];if('revisionHistoryLicenseKeyValid'==_0x10c840||'revisionHistoryLicenseKeyInvalid'==_0x10c840||'revisionHistoryLicenseKeyExpired'==_0x10c840||'revisionHistoryLicenseKeyDomainLimit'==_0x10c840||'revisionHistoryLicenseKeyNotAllowed'==_0x10c840||'revisionHistoryLicenseKeyEvaluationLimit'==_0x10c840||'revisionHistoryLicenseKeyTrialLimit'==_0x10c840||'revisionHistoryLicenseKeyUsageLimit'==_0x10c840){delete _0x5bddcf[_0x1cc2a4],_0x504032=_0x10c840,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x504032&&_0x5bddcf['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x504032&&_0x5bddcf['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x504032&&_0x5bddcf['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x504032&&_0x5bddcf['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x504032&&_0x5bddcf['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x504032&&_0x5bddcf['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x504032&&_0x5bddcf['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x492804=this['repository']['getRevision'](0x0),_0xaa107f=await this['getRevisionDocumentData'](_0x492804),_0x40baa7=await this['getRevisionRootsAttributes'](_0x492804);this['_replaceEditorDataWithRevisionData'](_0xaa107f,_0x40baa7);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x22fd64){this['_source']=_0x22fd64;}async['update'](){const _0x37aa8e=await this['_source']['getLatestVersion']();if(_0x37aa8e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x25cd59=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x37aa8e});_0x25cd59['authors']=_0x25cd59['authorsIds']['map'](_0x188db7=>this['editor']['plugins']['get']('Users')['getUser'](_0x188db7)),this['currentRevision']['_update'](_0x25cd59);}}async['saveRevision'](_0x4dab9f={},_0x1712ba=null){const _0x31c474=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1712ba>this['currentRevision']['toVersion']&&(_0x1712ba=null),null===_0x1712ba&&(_0x1712ba=await this['_source']['getLatestVersion']());const _0x278d53=this['_getFromVersion'](_0x1712ba),_0x37026f=this['buildRevisionData']({'from':_0x278d53,'to':_0x1712ba});if(this['currentRevision']['toVersion']<_0x1712ba){const _0x121714=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1712ba,'to':_0x1712ba});_0x121714['authors']=[],_0x121714['authorsIds']=[],_0x121714['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x121714,!0x0),delete _0x121714['authors'],_0x31c474['push'](_0x121714);}_0x4dab9f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4dab9f['name']=_0x4dab9f['name']||null,_0x4dab9f['id']=_0x4dab9f['id']||_0x280b09(),_0x4dab9f={..._0x4dab9f,..._0x37026f};const _0x455f3e=this['addRevisionData'](_0x4dab9f);_0x31c474['push'](_0x4dab9f);const _0x23b0f6=this['repository']['getIndex'](_0x455f3e);if(0x0!==_0x23b0f6){const _0x28f2ac=this['repository']['getRevision'](_0x23b0f6-0x1);if(_0x28f2ac['fromVersion']!==_0x1712ba){const _0x4fb2c6=this['_revisionDataBuilder']['getData'](_0x1712ba,_0x28f2ac['toVersion']),_0x48983d={'id':_0x28f2ac['id'],'diffData':_0x4fb2c6['diffData'],'authorsIds':_0x4fb2c6['authorsIds'],'authors':_0x4fb2c6['authorsIds']['map'](_0x8b83f7=>this['editor']['plugins']['get']('Users')['getUser'](_0x8b83f7)),'fromVersion':_0x1712ba};_0x28f2ac===this['currentRevision']&&(_0x48983d['createdAt']=new Date(_0x4dab9f['createdAt']['getTime']()+0xa)),_0x28f2ac['_update'](_0x48983d,!0x0),delete _0x48983d['authors'],_0x31c474['push'](_0x48983d);}}if(this['adapter']){for(const _0x1cd17f of _0x31c474)this['_bufferUpdate'](_0x1cd17f['id'],_0x1cd17f,!0x0);this['sendBufferedUpdates']();}return _0x455f3e;}['addRevisionData'](_0x4c0668){const _0x19661b=this['repository']['createRevision'](_0x4c0668);return this['adapter']&&_0x19661b['on']('_update',(_0x430121,_0x24be04,_0x532e8d)=>{_0x532e8d||(this['_bufferUpdate'](_0x24be04['id'],_0x24be04,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x19661b,this['_findInsertionIndex'](_0x19661b)),_0x19661b;}async['getRevisionDocumentData'](_0x1bcc53){return await this['_utils']['loadRevisionData'](_0x1bcc53,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1bcc53);}async['getRevisionRootsAttributes'](_0x55b9e4){return await this['_utils']['loadRevisionData'](_0x55b9e4,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x55b9e4);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1ef210=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xe0492b=0x0;_0xe0492b<_0x1ef210['length'];_0xe0492b++){const _0x575b67=_0x1ef210[_0xe0492b];let _0x1e40dd=!0x1;for(const _0x5586df of Object['keys'](_0x575b67))void 0x0===_0x575b67[_0x5586df]?delete _0x575b67[_0x5586df]:'id'!==_0x5586df&&(_0x1e40dd=!0x0);_0x1e40dd||(_0x1ef210[_0xe0492b]=null);}if(_0x1ef210=_0x1ef210['filter'](_0xc4044c=>null!==_0xc4044c),!_0x1ef210['length'])return;for(let _0x2d6168=0x0;_0x2d6168<_0x1ef210['length'];_0x2d6168++){const _0x95f478=_0x1ef210[_0x2d6168];void 0x0!==_0x95f478['fromVersion']&&void 0x0===_0x95f478['toVersion']&&(_0x95f478['toVersion']=this['repository']['getRevision'](_0x95f478['id'])['toVersion']),void 0x0!==_0x95f478['toVersion']&&void 0x0===_0x95f478['fromVersion']&&(_0x95f478['fromVersion']=this['repository']['getRevision'](_0x95f478['id'])['fromVersion']);}const _0x3f94e9=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1ef210,_0x3f94e9)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x448088=>{if(_0x448088){for(const _0x590a41 of _0x448088)this['setRevisionData']({'id':_0x590a41['id'],'createdAt':_0x590a41['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x7613ae=null,from:_0x12b191=null,to:_0x1531f5=null}){_0x12b191=null!==_0x12b191?_0x12b191:_0x7613ae['fromVersion'],_0x1531f5=null!==_0x1531f5?_0x1531f5:_0x7613ae['toVersion'];const _0x3e1142=this['_revisionDataBuilder']['getData'](_0x12b191,_0x1531f5),_0x33dfd2={'diffData':_0x3e1142['diffData'],'authorsIds':_0x3e1142['authorsIds'],'fromVersion':_0x12b191,'toVersion':_0x1531f5};if(!_0x7613ae||_0x1531f5!==_0x7613ae['toVersion']){const _0x172cb0=_0x1531f5-0x1,_0x1852ac=this['_source']['history']['getOperation'](_0x172cb0);_0x33dfd2['createdAt']=_0x1852ac&&_0x1852ac['createdAt']||new Date();}if(this['_loadedStateData']&&_0x12b191===this['_loadedStateData']['fromVersion']){for(const _0x286a25 of this['_loadedStateData']['authors'])_0x33dfd2['authorsIds']['includes'](_0x286a25['id'])||_0x33dfd2['authorsIds']['push'](_0x286a25['id']);}return _0x33dfd2;}['_bufferUpdate'](_0x4bd4d8,_0x65e431,_0x5d97b5){if(this['_bufferedUpdates']['has'](_0x4bd4d8)){const _0x5a0a10=this['_bufferedUpdates']['get'](_0x4bd4d8);_0x65e431=_0x5d97b5?{..._0x5a0a10,..._0x65e431}:{..._0x65e431,..._0x5a0a10};}this['_bufferedUpdates']['set'](_0x4bd4d8,_0x65e431);}['setRevisionData'](_0x2afb43){const _0x4d5716=this['repository']['getRevision'](_0x2afb43['id']);if(_0x2afb43['createdAt']&&(_0x2afb43['createdAt']=new Date(_0x2afb43['createdAt'])),_0x2afb43['authorsIds']){const _0x19704a=this['editor']['plugins']['get']('Users');_0x2afb43['authors']=_0x2afb43['authorsIds']['map'](_0x35a539=>_0x19704a['getUser'](_0x35a539));}_0x4d5716['_update'](_0x2afb43,!0x0);}['_createInitialRevision'](_0x191be3){const _0x1fc28f=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1fc28f)this['_initialRevisionId']=_0x1fc28f['id'];else{const _0x4bff8e=!this['editor']['model']['document']['roots']['find'](_0x35d117=>this['editor']['model']['hasContent'](_0x35d117)),_0x49567e=this['editor']['plugins']['get']('Users')['me']['id'],_0x193e8a=R(this['editor']['locale'],_0x4bff8e?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x191be3,'to':_0x191be3,'id':this['_initialRevisionId'],'name':_0x193e8a,'creatorId':_0x49567e});}}['_createCurrentRevision'](_0x2d51b3){const _0xafa5ea=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xafa5ea),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2d51b3,'to':_0x2d51b3,'id':_0xafa5ea,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x32da16,_0x11a24a){let _0x5ced8a=this['editor']['config']['get']('initialData'),_0x1db02d=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5ced8a){_0x5ced8a={};for(const _0x469339 of this['editor']['model']['document']['getRootNames']())_0x5ced8a[_0x469339]='';}if('string'==typeof _0x5ced8a&&(_0x5ced8a={'main':_0x5ced8a}),void 0x0===_0x1db02d){_0x1db02d={};for(const _0x3cd446 of this['editor']['model']['document']['getRootNames']())_0x1db02d[_0x3cd446]={};}let _0x2b8a42=!0x1;const _0x35154b=Object['keys'](_0x5ced8a),_0x5717aa=Object['keys'](_0x32da16);for(const _0x1b732c of _0x35154b){if(_0x5ced8a[_0x1b732c]!==_0x32da16[_0x1b732c]&&''!==_0x5ced8a[_0x1b732c]['trim']()){_0x2b8a42=!0x0;break;}if(!_0x15acd1(_0x1db02d[_0x1b732c],_0x11a24a[_0x1b732c])&&Object['keys'](_0x1db02d[_0x1b732c])['length']>0x0){_0x2b8a42=!0x0;break;}}_0x2b8a42||(_0x2b8a42=_0x5717aa['some'](_0x336172=>!this['editor']['model']['document']['getRoot'](_0x336172))),_0x2b8a42&&_0x1d6023('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5ced8a,'editorRootsAttributes':_0x1db02d,'revisionData':_0x32da16,'revisionRootsAttributes':_0x11a24a}),this['editor']['config']['set']('initialData',_0x32da16),this['editor']['config']['set']('rootsAttributes',_0x11a24a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2c3de1=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2c3de1['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x58ac07){const _0x139fac=this['repository']['getRevisions']();_0x139fac['reverse']();let _0x3b82cc=0x0;for(;_0x3b82cc<_0x139fac['length'];){const _0x459db3=_0x139fac[_0x3b82cc];if(_0x459db3===this['currentRevision']){_0x3b82cc++;continue;}if(_0x459db3['id']===this['_initialRevisionId'])break;const _0x4eb0ad=_0x58ac07['toVersion']-_0x459db3['toVersion']||_0x58ac07['fromVersion']-_0x459db3['fromVersion'];if(_0x4eb0ad>0x0)break;if(_0x4eb0ad<0x0)_0x3b82cc++;else{if(!_0x58ac07['creator']&&_0x459db3['creator'])break;if(_0x459db3['creator']||!_0x58ac07['creator']){if(_0x58ac07['createdAt']>_0x459db3['createdAt'])break;_0x3b82cc++;}else _0x3b82cc++;}}return _0x3b82cc;}['_getFromVersion'](_0x30bb8d){const _0x114f19=this['repository']['getRevisions']();_0x114f19['reverse'](),_0x114f19['shift']();const _0x586f6b=_0x114f19['find'](_0x541a27=>_0x541a27['toVersion']<=_0x30bb8d)['toVersion'];return _0x586f6b<this['_startingVersion']?this['_startingVersion']:_0x586f6b;}['_makeRevision']({name:_0x4b89c0,from:_0x5b4817,to:_0x14a7fe,creatorId:_0x13a7ac,id:_0x4e5ead}){const _0x45f9b2=this['buildRevisionData']({'from':_0x5b4817,'to':_0x14a7fe});_0x45f9b2['name']=_0x4b89c0,_0x45f9b2['creatorId']=_0x13a7ac,_0x45f9b2['id']=_0x4e5ead;const _0x413a41=this['addRevisionData'](_0x45f9b2);return this['adapter']&&this['_bufferUpdate'](_0x45f9b2['id'],_0x45f9b2,!0x0),_0x413a41;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2c2a41){this['editor']=_0x2c2a41,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'](_0x44eb87){this['source']=_0x44eb87;const _0x39f7aa=new Map(),_0x319c82=new Map(),_0x1930b8=this['editor']['model']['document']['roots']['map'](_0x1858de=>_0x1858de['rootName']);for(const _0x3729b7 of _0x1930b8){const _0x3bd409=this['editor']['model']['document']['getRoot'](_0x3729b7),_0x216065=x(_0x3bd409);_0x39f7aa['set'](_0x3729b7,_0x216065),_0x319c82['set'](_0x3729b7,Object['fromEntries'](_0x3bd409['getAttributes']()));}const _0x25a4ba=Array['from'](this['editor']['model']['markers'])['map'](_0x4e1e69=>[_0x4e1e69['name'],_0x4e1e69['getRange']()]),_0x1b7a86=this['source']['version'];this['_saveMetaData'](_0x1b7a86,_0x39f7aa,_0x25a4ba,_0x319c82),this['_startingRevisionId']=this['_revisionId'];const _0x29c1db=new Map(),_0x183edf=new Map();for(const _0x57686f of _0x1930b8){const _0x412973=N(_0x57686f);_0x29c1db['set'](_0x57686f,_0x412973),_0x183edf['set'](_0x57686f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x29c1db,[],_0x183edf);}['getData'](_0x1fa72f,_0x209e27){if(this['_lastFrom']===_0x1fa72f&&this['_lastTo']<=_0x209e27)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x209e27,!0x0);else{if(!this['_savedMetaData']['has'](_0x1fa72f)){const _0x39eece=this['_getPreviousFrom'](_0x1fa72f);this['_calculateMetaData'](_0x39eece,_0x1fa72f,!0x1);}this['_calculateMetaData'](_0x1fa72f,_0x209e27,!0x0);}return this['_lastFrom']=_0x1fa72f,this['_lastTo']=_0x209e27,this['_getState']();}['loadState'](_0x57df7a){const _0x4c6dd1=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x57df7a['fromVersion'],this['_lastTo']=_0x57df7a['toVersion'];for(const _0x2abfe1 in _0x57df7a['diffData']){const _0xaaf31e=_0x57df7a['diffData'][_0x2abfe1]['attachChange'],_0x903019=_0x55a8fc(_0x57df7a['diffData'][_0x2abfe1]['attributesBefore'])||{},_0x4731a2=_0x4c6dd1['_makeModelFromViewString'](_0x57df7a['diffData'][_0x2abfe1]['deletions']);_0x4731a2['rootName']=_0x2abfe1,_0x4731a2['_isAttached']=!_0xaaf31e||!_0xaaf31e['isAttached'],_0x4731a2['isAttached']=()=>_0x4731a2['_isAttached'],this['_baseRoots']['set'](_0x2abfe1,_0x4731a2),this['_baseRootsAttributes']['set'](_0x2abfe1,_0x903019),_0xaaf31e&&this['_touchedRoots']['set'](_0x2abfe1,_0xaaf31e);const _0x4c9dfa=this['_makeIdsRoot'](_0x4731a2);this['_baseIdsRoots']['set'](_0x2abfe1,_0x4c9dfa);for(const [_0x41147f,_0x9b6281]of _0x4731a2['markers']){if(!_0x41147f['startsWith']('revision:'))continue;const _0x345e26=_0x41147f['split'](':')[0x2];for(const _0x1f83af of _0x9b6281['getWalker']({'singleCharacters':!0x0})){const _0x44c08f=this['_getVidAttributeName'](_0x1f83af),_0xa7ba36='elementEnd'==_0x1f83af['type']?_0x1f83af['previousPosition']['path']['slice'](0x0,-0x1):_0x1f83af['previousPosition']['path'],_0x24bb19=_0x4c9dfa['getNodeByPath'](_0xa7ba36)['getAttribute'](_0x44c08f);this['_touched']['set'](_0x24bb19,{'userId':_0x345e26});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4e1ee8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x164218=>!this['_touched']['has'](_0x164218));let _0x23e10a=0x0;const _0x49e1a3=new Map();for(const _0x420fd5 in _0x57df7a['diffData']){const _0x30cf72=_0x57df7a['diffData'][_0x420fd5]['attachChange'],_0x1bb8e1=_0x55a8fc(_0x57df7a['diffData'][_0x420fd5]['attributesAfter'])||{},_0x22bcb4=_0x4c6dd1['_makeModelFromViewString'](_0x57df7a['diffData'][_0x420fd5]['insertions']);_0x22bcb4['rootName']=_0x420fd5,_0x22bcb4['_isAttached']=!_0x30cf72||_0x30cf72['isAttached'],_0x22bcb4['isAttached']=()=>_0x22bcb4['_isAttached'],this['_diffRoots']['set'](_0x420fd5,_0x22bcb4),this['_diffRootsAttributes']['set'](_0x420fd5,_0x1bb8e1);const _0x35b542=this['_makeIdsRoot'](_0x22bcb4,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x420fd5,_0x35b542),_0x49e1a3['set'](_0x420fd5,_0x22bcb4['isAttached']()?_0x1bb8e1:{});for(const [_0x41fda9,_0x607ff1]of _0x22bcb4['markers']){if(!_0x41fda9['startsWith']('revision:'))continue;const _0xa5d053=_0x41fda9['split'](':')[0x2];for(const _0x220962 of _0x607ff1['getWalker']({'singleCharacters':!0x0})){const _0x291b65=this['_getVidAttributeName'](_0x220962),_0x476673=this['_revisionId']++,_0x4a8d63='elementEnd'==_0x220962['type']?_0x220962['previousPosition']['path']['slice'](0x0,-0x1):_0x220962['previousPosition']['path'];_0x35b542['getNodeByPath'](_0x4a8d63)['_setAttribute'](_0x291b65,_0x476673),this['_touched']['set'](_0x476673,{'userId':_0xa5d053});}}for(const _0x353194 of this['editor']['model']['createRangeIn'](_0x22bcb4)['getWalker']({'singleCharacters':!0x0})){const _0x16c636=this['_getVidAttributeName'](_0x353194),_0x12e49c='elementEnd'==_0x353194['type']?_0x353194['previousPosition']['path']['slice'](0x0,-0x1):_0x353194['previousPosition']['path'],_0x833e2a=_0x35b542['getNodeByPath'](_0x12e49c);_0x833e2a['getAttribute'](_0x16c636)>0x0||_0x833e2a['_setAttribute'](_0x16c636,_0x4e1ee8[_0x23e10a++]);}for(const [_0x32684c,_0x3a9fab]of _0x22bcb4['markers'])_0x32684c['startsWith']('revision:')||this['_markers']['set'](_0x32684c,_0x3a9fab);}const _0x206e1c=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x206e1c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x206e1c,0x1));const _0x127d1b=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x127d1b),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x127d1b,0x1));const _0x31ffb1=Array['from'](this['_diffRoots'])['map'](([_0x2acf24,_0x1857af])=>[_0x2acf24,x(_0x1857af)]);this['_saveMetaData'](this['_lastTo'],_0x31ffb1,this['_markers'],_0x49e1a3);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x291035,_0x54c243,_0x41e952,_0x4db6e7){const _0x53f42e=new Map(_0x54c243),_0x408854=new Map(_0x55a8fc(_0x4db6e7)),_0x37f941=new Map();for(const [_0x54dae8,_0xebdf08]of _0x41e952)_0x37f941['set'](_0x54dae8,{'start':_0xebdf08['start']['clone'](),'end':_0xebdf08['end']['clone'](),'rootName':_0xebdf08['root']['rootName']});this['_savedMetaData']['set'](_0x291035,{'roots':_0x53f42e,'markers':_0x37f941,'rootsAttributes':_0x408854});}['_removeMetaData'](_0x5c3dab){this['_savedMetaData']['delete'](_0x5c3dab);}['_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'](_0x293f1e,_0x1a829c=null){let _0xf01a8e=null;_0x293f1e['is']('documentFragment')||(_0xf01a8e=new _0x1b3786(_0x293f1e['name'],{'vid_start':null===_0x1a829c?this['_revisionId']++:_0x1a829c++}));const _0x1f4644=[];for(const _0x2f822f of _0x293f1e['getChildren']())if(_0x2f822f['is']('element')){_0x1f4644['push'](this['_makeIdsRoot'](_0x2f822f,_0x1a829c));const _0x2cccdb=_0x1f4644[_0x1f4644['length']-0x1];null!==_0x1a829c&&(_0x1a829c=_0x2cccdb['is']('element','$text')?_0x2cccdb['getAttribute']('vid')+0x1:_0x2cccdb['getAttribute']('vid_end')+0x1);}else{for(let _0x4c3643=0x0;_0x4c3643<_0x2f822f['offsetSize'];_0x4c3643++)_0x1f4644['push'](new _0x1b3786('$text',{'vid':null===_0x1a829c?this['_revisionId']++:_0x1a829c++}));}if(_0x293f1e['is']('documentFragment')){const _0x4359e4=N(_0x293f1e['rootName']);return _0x4359e4['_insertChild'](0x0,_0x1f4644),_0x4359e4;}return _0xf01a8e['_setAttribute']('vid_end',null===_0x1a829c?this['_revisionId']++:_0x1a829c++),_0xf01a8e['_insertChild'](0x0,_0x1f4644),_0xf01a8e;}['_calculateMetaData'](_0x2d2a9b,_0x48b28b,_0xf3ac8){this['_reset']();const {roots:_0x143f71,markers:_0x451f65,rootsAttributes:_0xd0c544}=this['_savedMetaData']['get'](_0x2d2a9b);this['_baseRoots']=new Map(_0x143f71),this['_baseRootsAttributes']=new Map(_0x55a8fc(_0xd0c544));for(const [_0x5b1256,_0x2610de]of this['_baseRoots'])if('$graveyard'!==_0x5b1256&&(this['_diffRoots']['set'](_0x5b1256,x(_0x2610de)),this['_diffRootsAttributes']=new Map(_0x55a8fc(_0xd0c544)),_0xf3ac8)){const _0x2a98d9=this['_revisionId'];this['_idsRoots']['set'](_0x5b1256,this['_makeIdsRoot'](_0x2610de)),this['_baseIdsRoots']['set'](_0x5b1256,this['_makeIdsRoot'](_0x2610de,_0x2a98d9));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0xf3ac8&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x57890e,_0x4efada]of _0x451f65){const _0x48eff0=this['_baseRoots']['get'](_0x4efada['rootName']),_0x42cad9=this['_diffRoots']['get'](_0x4efada['rootName']),_0xffc4a8=new _0x54a9c4(this['_fixPosition'](_0x4efada['start'],_0x48eff0),this['_fixPosition'](_0x4efada['end'],_0x48eff0)),_0x59e4c7=this['_fixRange'](_0xffc4a8,_0x42cad9);_0x48eff0['markers']['set'](_0x57890e,_0xffc4a8),this['_markers']['set'](_0x57890e,_0x59e4c7);}this['_applyOperations'](_0x2d2a9b,_0x48b28b,_0xf3ac8);}['_applyOperations'](_0xe7a294,_0x510b49,_0x5c5486){for(const _0x42e622 of this['source']['getOperations'](_0xe7a294,_0x510b49))this['_handleOperation'](_0x42e622,_0x5c5486);for(const _0x4cd6eb of this['_diffRoots']['values']())_0x4cd6eb['markers']['clear']();for(const [_0x97d9d9,_0x2ac6b8]of this['_markers']){this['_diffRoots']['get'](_0x2ac6b8['root']['rootName'])['markers']['set'](_0x97d9d9,_0x2ac6b8['clone']());}const _0x47917c=new Map(),_0x4e34c5=new Map();for(const [_0x541521,_0x4ca773]of this['_diffRoots'])_0x47917c['set'](_0x541521,x(_0x4ca773)),_0x4e34c5['set'](_0x541521,this['_diffRootsAttributes']['get'](_0x541521));this['_saveMetaData'](_0x510b49,_0x47917c,this['_markers'],_0x4e34c5);}['_getPreviousFrom'](_0xf3b370){const _0x56461f=Array['from'](this['_savedMetaData']['keys']());_0x56461f['sort']((_0x51d9ce,_0x2fcffa)=>_0x51d9ce-_0x2fcffa),_0x56461f['reverse']();for(const _0x28316c of _0x56461f)if(_0x28316c<_0xf3b370)return _0x28316c;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x13fa16,_0x40bbd2){const _0x46dd18=Array['from'](_0x40bbd2['markers'])['map'](([_0x23c93c,_0x84ad16])=>[_0x23c93c,this['_fixRange'](_0x84ad16,_0x13fa16)]);_0x13fa16['markers']=new Map(_0x46dd18);}['_transformMarkers'](_0x1d489c){for(const _0x4e6132 of this['_markers']['values']()){const _0xc453fb=_0x4e6132['getTransformedByOperation'](_0x1d489c),_0x18755b=_0x54a9c4['_createFromRanges'](_0xc453fb);_0x4e6132['start']=_0x18755b['start'],_0x4e6132['end']=_0x18755b['end'];}}['_handleOperation'](_0x15567d,_0x158a8a){if('addRoot'!=_0x15567d['type']&&'detachRoot'!=_0x15567d['type']){if('insert'==_0x15567d['type']){const _0x411923=_0x15567d['position']['root']['rootName'];this['_diffRoots']['has'](_0x411923)||(this['_diffRoots']['set'](_0x411923,N(_0x411923,!0x0)),this['_diffRootsAttributes']['set'](_0x411923,{}),_0x158a8a&&this['_idsRoots']['set'](_0x411923,N(_0x411923,!0x0)));}else{if('addRootAttribute'==_0x15567d['type']||'removeRootAttribute'==_0x15567d['type']||'changeRootAttribute'==_0x15567d['type'])return void this['_handleRootAttributeOperation'](_0x15567d);'marker'==_0x15567d['type']&&this['_handleMarkerOperation'](_0x15567d);}if('marker'!==_0x15567d['type']){const _0x1bc985=this['_cloneOperation'](_0x15567d,this['_diffRoots']);_0x1bc985['_execute'](),this['_transformMarkers'](_0x1bc985);}if(_0x158a8a)switch(_0x15567d['type']){case'insert':this['_handleInsertOperation'](_0x15567d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x15567d);break;case'merge':this['_handleMergeOperation'](_0x15567d);break;case'split':this['_handleSplitOperation'](_0x15567d);}}else this['_handleRootOperation'](_0x15567d,_0x158a8a);}['_cloneOperation'](_0xb3e62c,_0x122b94){const _0x167fdc=_0xb3e62c['clone']();return _0x167fdc['_authorId']=_0xb3e62c['_authorId'],this['_fixOperation'](_0x167fdc,_0x122b94),_0x167fdc;}['_getBaseVids'](_0x317b3b){return _0x317b3b['map'](_0x35991e=>{const _0x438c89=this['_getVidAttributeName'](_0x35991e);return Number(_0x35991e['item']['getAttribute'](_0x438c89));});}['_generateTape'](_0x50e265,_0x17f0d0){if(_0x50e265['is']('element','$text'))_0x17f0d0['push']({'item':_0x50e265,'type':'text'});else{_0x50e265['is']('element')&&_0x17f0d0['push']({'item':_0x50e265,'type':'elementStart'});for(const _0x5d8576 of _0x50e265['getChildren']())this['_generateTape'](_0x5d8576,_0x17f0d0);_0x50e265['is']('element')&&_0x17f0d0['push']({'item':_0x50e265,'type':'elementEnd'});}return _0x17f0d0;}['_getState'](){const _0x5d89d4=new Map(this['_touched']),_0x2a2204=new Map(_0x5d89d4),_0xb0f064=new Map(),_0x1993f0={'insertions':{},'deletions':{}},_0x5a1fb5={'insertions':{},'deletions':{}},_0x2a0185=new Map(),_0x7e8216=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x7e8216['delete']('$graveyard');for(const _0x1a4e55 of _0x7e8216){const _0x5b1903=this['_diffRoots']['get'](_0x1a4e55)||N(_0x1a4e55,!0x1),_0xbea32e=this['_baseRoots']['get'](_0x1a4e55)||N(_0x1a4e55,!0x1);_0x5b1903['isAttached']()||_0xbea32e['isAttached']()?(_0x1993f0['insertions'][_0x1a4e55]=x(_0x5b1903),_0x1993f0['deletions'][_0x1a4e55]=x(_0xbea32e),this['_copyMarkers'](_0x1993f0['deletions'][_0x1a4e55],_0xbea32e),this['_copyMarkers'](_0x1993f0['insertions'][_0x1a4e55],_0x5b1903),_0x5a1fb5['insertions'][_0x1a4e55]=this['_generateTape'](this['_idsRoots']['get'](_0x1a4e55),[]),_0x5a1fb5['deletions'][_0x1a4e55]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1a4e55)||N(_0x1a4e55,!0x1),[])):_0x7e8216['delete'](_0x1a4e55);}for(const _0xad63e6 of _0x7e8216){const _0x579625=_0x5a1fb5['insertions'][_0xad63e6];for(const _0x554593 of _0x579625){const _0x3c3e04=this['_getVidAttributeName'](_0x554593),_0x2294c8=_0x554593['item']['getAttribute'](_0x3c3e04);_0x2a2204['delete'](_0x2294c8),_0x2294c8>=this['_startingRevisionId']&&_0xb0f064['set'](_0x2294c8,_0x5d89d4['get'](_0x2294c8));}}for(const _0x5ea7de of _0x7e8216){const _0x5e9fea=_0x5a1fb5['insertions'][_0x5ea7de],_0x1b7713=this['_getBaseVids'](_0x5a1fb5['deletions'][_0x5ea7de]);let _0x46e259=0x0;for(const _0x1abf54 of _0x5e9fea){const _0x318a24=this['_getVidAttributeName'](_0x1abf54),_0x5cd86e=_0x1abf54['item']['getAttribute'](_0x318a24);if(!_0xb0f064['has'](_0x5cd86e)&&!_0x2a0185['has'](_0x5cd86e)){if(_0x2a2204['has'](_0x5cd86e))_0x46e259++;else{if(_0x5cd86e!=_0x1b7713[_0x46e259]){const _0x548e47=_0x5d89d4['get'](_0x5cd86e)||_0x5d89d4['get'](_0x1b7713[_0x46e259]);for(;_0x5cd86e!=_0x1b7713[_0x46e259];)_0x2a2204['has'](_0x1b7713[_0x46e259])||(_0x2a0185['set'](_0x1b7713[_0x46e259],_0x548e47),_0x5d89d4['set'](_0x1b7713[_0x46e259],_0x548e47)),_0x46e259++;}_0x46e259++;}}}}for(const _0x299c20 of _0x7e8216){const _0x341acd=_0x5a1fb5['insertions'][_0x299c20];for(const _0x4fe45a of _0x341acd){const _0x52f682=this['_getVidAttributeName'](_0x4fe45a),_0x11419f=_0x4fe45a['item']['getAttribute'](_0x52f682);if(_0x2a0185['has'](_0x11419f)){const _0x309e9f=_0x2a0185['get'](_0x11419f);_0x2a2204['has'](_0x11419f)||_0x2a2204['set'](_0x11419f,{..._0x309e9f}),_0xb0f064['set'](_0x11419f,{..._0x309e9f});}}}for(const _0xdd327 of _0x2a2204['keys']())_0xdd327>=this['_startingRevisionId']&&_0x2a2204['delete'](_0xdd327);const _0x5b9331=new Map();for(const _0x3692a4 of _0x7e8216){let _0x43f77d=_0x5a1fb5['insertions'][_0x3692a4];for(const _0x5959e4 of _0x43f77d)if(_0x5959e4['item']['is']('element','tableCell')){const _0x5dbabc=this['_getVidAttributeName'](_0x5959e4),_0x4f1d61=_0x5959e4['item']['getAttribute'](_0x5dbabc);if(_0xb0f064['has'](_0x4f1d61)){const _0x4da683=_0x5959e4['item']['parent']['parent']['getAttribute']('vid_start'),_0x9998d7=_0x5b9331['get'](_0x4da683)||new Set();_0x9998d7['add'](_0xb0f064['get'](_0x4f1d61)['userId']),_0x5b9331['set'](_0x4da683,_0x9998d7);}}_0x43f77d=_0x5a1fb5['deletions'][_0x3692a4];for(const _0x1a74c8 of _0x43f77d)if(_0x1a74c8['item']['is']('element','tableCell')){const _0x5ada45=this['_getVidAttributeName'](_0x1a74c8),_0x2d9edd=_0x1a74c8['item']['getAttribute'](_0x5ada45);if(_0x2a2204['has'](_0x2d9edd)){const _0x5c05e6=_0x1a74c8['item']['parent']['parent']['getAttribute']('vid_start'),_0x55b5c8=_0x5b9331['get'](_0x5c05e6)||new Set();_0x55b5c8['add'](_0x2a2204['get'](_0x2d9edd)['userId']),_0x5b9331['set'](_0x5c05e6,_0x55b5c8);}}for(const _0xbaff83 of _0x5b9331['keys']())(_0xb0f064['has'](_0xbaff83)||_0x2a2204['has'](_0xbaff83))&&_0x5b9331['delete'](_0xbaff83);}for(const _0x3c2599 of _0x7e8216){const _0xc9439b=_0x5a1fb5['insertions'][_0x3c2599];let _0x5903d5=null,_0x5765ca=null;for(const _0x121770 of _0xc9439b){const _0xad69cb=this['_getVidAttributeName'](_0x121770),_0x18eb77=_0x121770['item']['getAttribute'](_0xad69cb),_0x55e249=_0x5b9331['get'](_0x18eb77);_0x55e249&&'elementStart'==_0x121770['type']&&(_0x5903d5=Array['from'](_0x55e249)[0x0],_0x5765ca=_0x121770['item']['getAttribute']('vid_end')),_0x5903d5&&(_0x2a2204['set'](_0x18eb77,{'userId':_0x5903d5}),_0xb0f064['set'](_0x18eb77,{'userId':_0x5903d5})),_0x18eb77==_0x5765ca&&(_0x5903d5=null,_0x5765ca=null);}}const _0xe5a428={},_0x3aabd1=new Set();for(const _0x1318a3 of _0x7e8216){const _0x474587=_0x1993f0['deletions'][_0x1318a3],_0x1cf729=_0x1993f0['insertions'][_0x1318a3];for(const {userId:_0x5d9397}of this['_touchedMarkers']['values']())null!==_0x5d9397&&_0x3aabd1['add'](_0x5d9397);for(const {userId:_0x47a0d9}of this['_touchedRoots']['values']())null!==_0x47a0d9&&_0x3aabd1['add'](_0x47a0d9);this['_markChanges'](_0x1cf729,_0x5a1fb5['insertions'][_0x1318a3],_0xb0f064,'insertion',_0x3aabd1),this['_markChanges'](_0x474587,_0x5a1fb5['deletions'][_0x1318a3],_0x2a2204,'deletion',_0x3aabd1),_0xe5a428[_0x1318a3]={'insertions':this['_prepareViewToSave'](_0x1cf729),'deletions':this['_prepareViewToSave'](_0x474587),'attachChange':this['_touchedRoots']['get'](_0x1318a3)||null,'attributesBefore':_0x55a8fc(this['_baseRootsAttributes']['get'](_0x1318a3))||{},'attributesAfter':_0x55a8fc(this['_diffRootsAttributes']['get'](_0x1318a3))};}return{'diffData':_0xe5a428,'authorsIds':Array['from'](_0x3aabd1)};}['_processRootBeforeSave'](_0x1ea6f7){for(const [,_0x44c6b8]of _0x1ea6f7['markers']){const _0x356239=_0x44c6b8['start']['getAncestors']()['filter'](_0xbadfa3=>'tableCell'==_0xbadfa3['name']);for(const _0x2043af of _0x356239)0x1==_0x2043af['childCount']&&_0x2043af['getChild'](0x0)['is']('element','paragraph')&&_0x2043af['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x36e71c){this['_processRootBeforeSave'](_0x36e71c);const _0xa574c1=this['editor']['data']['toView'](_0x36e71c,{}),_0x4489a8=Array['from'](_0xa574c1['getChildren']())['map'](_0x258e7c=>this['_getViewJson'](_0x258e7c));return JSON['stringify'](_0x4489a8);}['_getViewJson'](_0x10dad5){if(_0x10dad5['is']('$text'))return _0x10dad5['data'];{const _0x530b47=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x3e1784=_0x10dad5,_0x2cf59a=this['editor']['data']['htmlProcessor']['domConverter'],_0x442c01={'type':_0x530b47['_getTypeCharForViewElement'](_0x3e1784),'name':_0x3e1784['name'],'attributes':Array['from'](_0x3e1784['getAttributes']()),'children':Array['from'](_0x3e1784['getChildren']())['map'](_0x29c53d=>this['_getViewJson'](_0x29c53d))};if(_0x10dad5['is']('uiElement')&&'$comment'!=_0x10dad5['name']){const _0xbbfd7e=_0x10dad5['render'](_0x2cf59a['domDocument'],_0x2cf59a);_0x442c01['children']['push'](_0xbbfd7e['outerHTML']);}else{if(_0x10dad5['is']('rawElement')){const _0x37e138=_0x2cf59a['domDocument']['createElement'](_0x3e1784['name']);_0x10dad5['render'](_0x37e138,_0x2cf59a),_0x442c01['children']['push'](_0x37e138['innerHTML']);}}const _0x2185bd=Array['from'](_0x3e1784['getCustomProperties']());_0x2185bd['length']>0x0&&(_0x442c01['customProperties']=_0x2185bd);const _0x59f49a=_0x3e1784['getFillerOffset']();return null!==_0x59f49a&&(_0x442c01['fillerOffset']=_0x59f49a),_0x442c01;}}['_markChanges'](_0x4fdaf7,_0x26d459,_0x28af8c,_0x127c93,_0x311353){let _0x19e278=null,_0x2d1d59=null,_0x19a419=0x0;const _0x43a38a=this['editor']['model'];for(let _0x59dcd1=0x0;_0x59dcd1<_0x26d459['length'];_0x59dcd1++){const _0x7e2358=this['_getVidAttributeName'](_0x26d459[_0x59dcd1]),_0x5b3a3a=_0x26d459[_0x59dcd1]['item']['getAttribute'](_0x7e2358),_0x8f67ad=_0x28af8c['get'](_0x5b3a3a),_0x4a93a6=_0x59dcd1==_0x26d459['length']-0x1;(!_0x19e278&&_0x8f67ad&&(_0x19e278=_0x8f67ad,_0x2d1d59=_0x26d459[_0x59dcd1]),_0x19e278&&(!_0x8f67ad||_0x8f67ad['userId']!=_0x19e278['userId']))&&(_0x438723(_0x8f67ad,P(_0x2d1d59,_0x4fdaf7,_0x43a38a),P(_0x26d459[_0x59dcd1],_0x4fdaf7,_0x43a38a)),_0x19e278=_0x8f67ad||null,_0x2d1d59=_0x8f67ad?_0x26d459[_0x59dcd1]:null),_0x19e278&&_0x4a93a6&&_0x438723(_0x8f67ad,P(_0x2d1d59,_0x4fdaf7,_0x43a38a),V(_0x26d459[_0x59dcd1],_0x4fdaf7,_0x43a38a));}function _0x438723(_0x5af942,_0x3afa7a,_0x1b62b0){const _0x8e2cb3=_0x19e278['userId'],_0xee2f67='revision:'+_0x127c93+':'+_0x8e2cb3+':'+_0x19a419++,_0x108538=_0x43a38a['createRange'](_0x3afa7a,_0x1b62b0);_0x4fdaf7['markers']['set'](_0xee2f67,_0x108538),null!==_0x8e2cb3&&_0x311353['add'](_0x8e2cb3);}}['_getVidAttributeName'](_0x1a56b8){switch(_0x1a56b8['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x32a907,_0x177926){_0x32a907['baseVersion']=null;for(const _0x430454 in _0x32a907){const _0x471b54=_0x32a907[_0x430454];if(_0x471b54 instanceof _0x2a9a1e){const _0x159006=_0x177926['get'](_0x471b54['root']['rootName']);_0x32a907[_0x430454]=this['_fixPosition'](_0x471b54,_0x159006);}if(_0x471b54 instanceof _0x54a9c4){const _0x1c7cbd=_0x177926['get'](_0x471b54['root']['rootName']);_0x32a907[_0x430454]=this['_fixRange'](_0x471b54,_0x1c7cbd);}'root'===_0x430454&&(_0x32a907['root']=_0x177926['get'](_0x32a907['root']['rootName']));}}['_fixRange'](_0x59090c,_0x28aa42){return this['editor']['model']['createRange'](this['_fixPosition'](_0x59090c['start'],_0x28aa42),this['_fixPosition'](_0x59090c['end'],_0x28aa42));}['_fixPosition'](_0x51b4bb,_0x3cd230){return this['editor']['model']['createPositionFromPath'](_0x3cd230,_0x51b4bb['path'],_0x51b4bb['stickiness']);}['_handleInsertOperation'](_0x5259a1){const _0x54708a=this['_idsRoots']['get'](_0x5259a1['position']['root']['rootName']),_0x29fa81=this['_fixPosition'](_0x5259a1['position'],_0x54708a),_0x546b64=null===_0x5259a1['_authorId']?null:_0x5259a1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e7771=_0x29fa81['parent'],_0x26c127=this['_revisionId'],_0x423de3=[];for(const _0x3adab4 of _0x5259a1['nodes'])if(_0x3adab4['is']('element'))_0x423de3['push'](this['_makeIdsRoot'](_0x3adab4));else{for(let _0x274569=0x0;_0x274569<_0x3adab4['offsetSize'];_0x274569++)_0x423de3['push'](new _0x1b3786('$text',{'vid':this['_revisionId']++}));}const _0x3c5fdf=this['_revisionId'];for(let _0x545399=_0x26c127;_0x545399<_0x3c5fdf;_0x545399++)this['_touched']['set'](_0x545399,{'userId':_0x546b64});_0x4e7771['_insertChild'](_0x29fa81['offset'],_0x423de3);}['_handleMoveOperation'](_0x1929b6){(_0x1929b6=this['_cloneOperation'](_0x1929b6,this['_idsRoots']))['_execute']();const _0xd3af60=null===_0x1929b6['_authorId']?null:_0x1929b6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ce7cc=_0x1929b6['getMovedRangeStart'](),_0x3cf0e5=_0x2ce7cc['parent'],_0x2ba9e2=_0x2ce7cc['offset'];!function _0x44f707(_0x26080d,_0x1fc5d0,_0x3cfb58,_0x2c77e6){for(let _0x5cf8ac=_0x3cfb58;_0x5cf8ac<_0x2c77e6;_0x5cf8ac++){const _0x556947=_0x1fc5d0['getChild'](_0x5cf8ac);_0x556947['is']('element','$text')?_0x26080d['set'](_0x556947['getAttribute']('vid'),{'userId':_0xd3af60}):(_0x26080d['set'](_0x556947['getAttribute']('vid_start'),{'userId':_0xd3af60}),_0x44f707(_0x26080d,_0x556947,0x0,_0x556947['childCount']),_0x26080d['set'](_0x556947['getAttribute']('vid_end'),{'userId':_0xd3af60}));}}(this['_touched'],_0x3cf0e5,_0x2ba9e2,_0x2ba9e2+_0x1929b6['howMany']);}['_handleMergeOperation'](_0x4feabc){const _0x21fe04=null===(_0x4feabc=this['_cloneOperation'](_0x4feabc,this['_idsRoots']))['_authorId']?null:_0x4feabc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47420a=_0x4feabc['targetPosition']['parent'],_0x5580a6=_0x4feabc['sourcePosition']['parent'],_0x16330f=_0x47420a['getAttribute']('vid_end'),_0x3203bd=_0x5580a6['getAttribute']('vid_start');_0x47420a['_setAttribute']('vid_end',_0x5580a6['getAttribute']('vid_end')),_0x5580a6['_setAttribute']('vid_end',_0x16330f),this['_touched']['set'](_0x3203bd,{'userId':_0x21fe04}),this['_touched']['set'](_0x16330f,{'userId':_0x21fe04}),_0x4feabc['_execute']();}['_handleSplitOperation'](_0x431907){const _0x296f14=null===(_0x431907=this['_cloneOperation'](_0x431907,this['_idsRoots']))['_authorId']?null:_0x431907['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d7c9d=_0x431907['graveyardPosition'],_0x57df2f=_0x431907['splitPosition']['parent'];_0x431907['_execute']();const _0x214be6=_0x57df2f['getAttribute']('vid_end'),_0x4c06a2=_0x431907['insertionPosition']['nodeAfter'];if(_0x3d7c9d){const _0x36c765=_0x4c06a2['getAttribute']('vid_end'),_0x355573=_0x57df2f['getAttribute']('vid_end');_0x57df2f['_setAttribute']('vid_end',_0x36c765),_0x4c06a2['_setAttribute']('vid_end',_0x355573),this['_touched']['set'](_0x57df2f['getAttribute']('vid_end'),{'userId':_0x296f14}),this['_touched']['set'](_0x4c06a2['getAttribute']('vid_start'),{'userId':_0x296f14});}else{const _0xd4a484=this['_revisionId']++,_0x4da34f=this['_revisionId']++;_0x57df2f['_setAttribute']('vid_end',_0xd4a484),_0x4c06a2['_setAttribute']('vid_start',_0x4da34f),_0x4c06a2['_setAttribute']('vid_end',_0x214be6),this['_touched']['set'](_0xd4a484,{'userId':_0x296f14}),this['_touched']['set'](_0x4da34f,{'userId':_0x296f14});}}['_handleMarkerOperation'](_0x2bd883){if(!_0x2bd883['affectsData'])return;const _0x2d420b=(_0x2bd883=this['_cloneOperation'](_0x2bd883,this['_diffRoots']))['oldRange']?_0x2bd883['oldRange']['root']:null,_0x5f08ec=_0x2bd883['newRange']?_0x2bd883['newRange']['root']:null;_0x2d420b&&this['_markers']['delete'](_0x2bd883['name']),_0x5f08ec&&this['_markers']['set'](_0x2bd883['name'],_0x2bd883['newRange']['clone']());const _0x4506e9=null===_0x2bd883['_authorId']?null:_0x2bd883['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5686b7=_0x2bd883['name'];if(!this['_touchedMarkers']['has'](_0x5686b7))return void this['_touchedMarkers']['set'](_0x5686b7,{'range':_0x2bd883['oldRange'],'userId':_0x4506e9});const _0x4d7838=this['_touchedMarkers']['get'](_0x5686b7),_0x5583e1=_0x4d7838['range'],_0x31be10=_0x2bd883['newRange'];null==_0x5583e1&&null==_0x31be10||_0x5583e1&&_0x31be10&&_0x5583e1['isEqual'](_0x31be10)?this['_touchedMarkers']['delete'](_0x2bd883['name']):_0x4d7838['userId']=_0x4506e9;}['_handleRootOperation'](_0x22e10b,_0x1de504){this['_diffRoots']['has'](_0x22e10b['rootName'])?this['_diffRoots']['get'](_0x22e10b['rootName'])['_isAttached']=_0x22e10b['isAdd']:(this['_diffRoots']['set'](_0x22e10b['rootName'],N(_0x22e10b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x22e10b['rootName'],{}),_0x1de504&&this['_idsRoots']['set'](_0x22e10b['rootName'],N(_0x22e10b['rootName'],!0x0)));const _0x4fa8f9=null===_0x22e10b['_authorId']?null:_0x22e10b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5b0dc8=this['_touchedRoots']['get'](_0x22e10b['rootName']);_0x5b0dc8&&_0x5b0dc8['userId']===_0x4fa8f9?this['_touchedRoots']['delete'](_0x22e10b['rootName']):this['_touchedRoots']['set'](_0x22e10b['rootName'],{'userId':_0x4fa8f9,'isAttached':_0x22e10b['isAdd']});}['_handleRootAttributeOperation'](_0x5f6bee){const _0x148350=this['_diffRootsAttributes']['get'](_0x5f6bee['root']['rootName']);null===_0x5f6bee['newValue']?delete _0x148350[_0x5f6bee['key']]:_0x148350[_0x5f6bee['key']]=_0x5f6bee['newValue'];}}function x(_0x50f0bb){const _0x4004dd=N(_0x50f0bb['rootName'],_0x50f0bb['isAttached']());for(const _0x3e8561 of _0x50f0bb['getChildren']()){const _0x216567=_0x3e8561['_clone'](!0x0);_0x4004dd['_appendChild'](_0x216567);}return _0x4004dd;}function N(_0x5e0405,_0x47f51b=!0x0){const _0x49b19a=new _0x3dd335();return _0x49b19a['rootName']=_0x5e0405,_0x49b19a['_isAttached']=_0x47f51b,_0x49b19a['isAttached']=()=>_0x49b19a['_isAttached'],_0x49b19a;}function P(_0x24e6c3,_0x3ecaec,_0x22f7b5){const _0x5919c6='elementEnd'==_0x24e6c3['type']?_0x22f7b5['createPositionAt'](_0x24e6c3['item'],'end'):_0x22f7b5['createPositionBefore'](_0x24e6c3['item']);return _0x22f7b5['createPositionFromPath'](_0x3ecaec,_0x5919c6['path'],_0x5919c6['stickiness']);}function V(_0x252efb,_0x441634,_0x2c5f42){const _0xbdfbe9='elementStart'==_0x252efb['type']?_0x2c5f42['createPositionAt'](_0x252efb['item'],0x0):_0x2c5f42['createPositionAfter'](_0x252efb['item']);return _0x2c5f42['createPositionFromPath'](_0x441634,_0xbdfbe9['path'],_0xbdfbe9['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x433e06(_0x515a02){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3ad028,_0x33e32a){super(_0x3ad028),this['focusTracker']=new _0x417d49(),this['keystrokes']=new _0x3e616c(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x33e32a),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x65533b({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xd20f04=_0xfa9d3e=>_0xfa9d3e['stopPropagation']();this['keystrokes']['set']('arrowright',_0xd20f04),this['keystrokes']['set']('arrowleft',_0xd20f04),this['keystrokes']['set']('arrowup',_0xd20f04),this['keystrokes']['set']('arrowdown',_0xd20f04);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x90ae8f){this['revisionNameInputView']['fieldView']['element']['value']=_0x90ae8f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x38eee0){const _0x3415c6=new et(this['locale'],ti),_0x2d8128=_0x3415c6['fieldView'];_0x2d8128['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x48bab5=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x38eee0&&(_0x48bab5+='\x20('+R(this['locale'],'optional')+')'),(_0x3415c6['label']=_0x48bab5,_0x2d8128['on']('input',()=>{this['revisionNameInputValue']=_0x2d8128['element']['value']['trim']();}),_0x3415c6);}}class v extends _0x2613d1{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x235a71=this['editor'],_0x3707dc=_0x235a71['plugins']['get']('RevisionTracker');_0x235a71['ui']['componentFactory']['add']('revisionHistory',_0xd0918=>{const _0x4bfc10=_0x1d18c2(_0xd0918),_0x56247c=_0x4bfc10['panelView']['children'],_0x4fbc25=new _0x417f09(_0xd0918),_0x394d91=new _0x57ea70(_0xd0918),_0x22c1be=new _0x5f0d38(_0xd0918),_0x2de0ac=new _0x57ea70(_0xd0918),_0x5e083a=new _0x5f0d38(_0xd0918);return _0x4bfc10['bind']('isEnabled')['to'](_0x3707dc,'isReady',_0x3707dc,'isEnabled',_0x235a71,'isReadOnly',(_0x2c14f7,_0x54bbdc,_0x5afb08)=>_0x2c14f7&&_0x54bbdc&&!_0x5afb08),_0x4bfc10['buttonView']['set']({'icon':_0x20563f,'label':R(_0xd0918,'Revision\x20history'),'tooltip':!0x0}),_0x22c1be['set']({'label':R(_0xd0918,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x22c1be['bind']('isEnabled')['to'](_0x3707dc,'isReady',_0x3707dc,'isEnabled',_0x235a71,'isReadOnly',(_0x2254d5,_0xbca0c4,_0x4d00e9)=>_0x2254d5&&_0xbca0c4&&!_0x4d00e9),_0x22c1be['on']('execute',()=>this['_showDialog']()),_0x5e083a['set']({'label':R(_0xd0918,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5e083a['bind']('isEnabled')['to'](_0x3707dc,'isReady',_0x235a71,'isReadOnly',(_0x29df59,_0x2f2224)=>_0x29df59&&!_0x2f2224),_0x5e083a['on']('execute',()=>{_0x235a71['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4bfc10['isOpen']=!0x1,_0x235a71['editing']['view']['focus']();}),_0x394d91['children']['add'](_0x22c1be),_0x2de0ac['children']['add'](_0x5e083a),_0x4fbc25['role']='menu',_0x4fbc25['items']['addMany']([_0x394d91,_0x2de0ac]),_0x56247c['add'](_0x4fbc25),_0x4bfc10;}),_0x235a71['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x26efe7=this['editor'],_0x347cc3=_0x26efe7['locale'],_0x3da3d5=new _0x365e4e(_0x347cc3),_0xe5438a=new _0x4e642d(_0x347cc3);_0x3da3d5['buttonView']['set']({'icon':_0x20563f,'label':R(_0x347cc3,'Revision\x20history')});const _0x1deb22=new _0x2c2d4b(_0x347cc3,_0x3da3d5),_0x3fcafe=new _0x5cfcd5(_0x347cc3);_0x3fcafe['set']({'label':R(_0x347cc3,'Save\x20current\x20revision')}),_0x3fcafe['delegate']('execute')['to'](_0x3da3d5),_0x3fcafe['on']('execute',()=>{this['_showDialog']();}),_0x1deb22['children']['add'](_0x3fcafe),_0xe5438a['items']['add'](_0x1deb22);const _0x55ba66=new _0x2c2d4b(_0x347cc3,_0x3da3d5),_0x5efe13=new _0x5cfcd5(_0x347cc3);return _0x5efe13['set']({'label':R(_0x347cc3,'Open\x20revision\x20history')}),_0x5efe13['delegate']('execute')['to'](_0x3da3d5),_0x5efe13['on']('execute',()=>{_0x26efe7['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x55ba66['children']['add'](_0x5efe13),_0xe5438a['items']['add'](_0x55ba66),_0x3da3d5['panelView']['children']['add'](_0xe5438a),_0x3da3d5;}['_showDialog'](){const _0x59c9e5=this['editor'],_0x5a8fe3=_0x59c9e5['locale'],_0xfdf156=_0x59c9e5['plugins']['get']('Dialog'),_0x57d8c0=_0x59c9e5['plugins']['get']('RevisionTracker');function _0x5f1b75(_0x4aec7a){_0x59c9e5['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4aec7a['revisionName']?_0x4aec7a['revisionNameInputView']['errorText']=R(_0x5a8fe3,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x59c9e5['plugins']['get'](h)['saveRevision']({'name':_0x4aec7a['revisionName']}),_0xfdf156['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5f1b75(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xfdf156['show']({'id':'revisionSave','title':R(_0x5a8fe3,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x59c9e5['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xfdf156['hide']()},{'label':R(_0x59c9e5['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3b0d32){_0x3b0d32['bind']('isEnabled')['to'](_0x57d8c0,'isReady',_0x57d8c0,'isEnabled',_0x59c9e5,'isReadOnly',(_0x59478e,_0x54e660,_0x5adf42)=>_0x59478e&&_0x54e660&&!_0x5adf42);},'onExecute':()=>_0x5f1b75(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x20127b=this['editor'],_0x5f11e0=_0x20127b['locale'];this['_saveRevisionFormView']=new me(_0x5f11e0,_0x20127b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x515a02{['changeId'];['_model'];constructor(_0x13394f,_0x547fdc){super(_0x13394f),this['_model']=_0x547fdc,this['changeId']=_0x547fdc['id'];const _0x4e8cbc=this['bindTemplate'],_0x4e8265=R(_0x13394f,_0x547fdc['data']['isSuggestion']?'Suggested\x20by':'add'==_0x547fdc['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x547fdc['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4e8cbc['to']('type',_0x26253c=>'ck-revision-change__'+_0x26253c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4e8265}]},{'text':'\x20'+_0x547fdc['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x389b52(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x279144){super(),this['id']=_0x279144['id']||_0x280b09(),this['author']=_0x279144['author'],this['type']=_0x279144['type'],this['data']=_0x279144['data']||{},this['rootName']=_0x279144['rootName'],this['set']('createdAt',_0x279144['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4e61dc,_0x27fc2b){this['newRevisionId']=_0x4e61dc,this['oldRevisionId']=_0x27fc2b,this['changes']=new _0x44d325();}['_setChanges'](_0x1acbd3){for(const _0x387bfb of _0x1acbd3)this['changes']['add'](_0x387bfb);}}class l extends _0x2613d1{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x25b15e,_0x45a7c2,S,$];}constructor(_0x58e691){super(_0x58e691),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x31240d,_0x5c2e9a,_0x530c33)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x114b65=>{for(const _0x1d9532 of this['editor']['editing']['view']['document']['roots'])_0x530c33?_0x114b65['removeClass']('ck-editor__editable__overlay',_0x1d9532):_0x114b65['addClass']('ck-editor__editable__overlay',_0x1d9532);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4144b9=>null!==_0x4144b9),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x15a2a2,_0x2fcddf,_0x4d710a)=>_0x15a2a2&&_0x4d710a?_0x2fcddf['changes']['getIndex'](_0x4d710a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2a434f,_0x457d2f)=>_0x2a434f?_0x457d2f['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x45a7c2);}['init'](){const _0x522146=this['editor'],_0x52e326=new rt(_0x522146,{'direction':'backward'}),_0xf9e560=new rt(_0x522146,{'direction':'forward'});(_0x522146['commands']['add']('showPreviousChange',_0x52e326),_0x522146['commands']['add']('showNextChange',_0xf9e560),_0x522146['commands']['add']('restoreRevision',new nt(_0x522146)),this['on']('change:numberOfChanges',()=>{_0x52e326['refresh'](),_0xf9e560['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x522146['enableReadOnlyMode']('revision-viewer'),_0x522146['plugins']['has']('WidgetToolbarRepository'))&&_0x522146['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x40b0d6){return await this['_utils']['loadRevisionData'](_0x40b0d6,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x40b0d6);}async['getRevisionRootsAttributes'](_0x5b0c7a){return await this['_utils']['loadRevisionData'](_0x5b0c7a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5b0c7a);}async['compare'](_0xc5368e,_0x7606f5,_0x53f38e=!0x1){if(!this['isEnabled'])return;const _0x396038=this['diff'],_0x580814=this['repository'],_0x122fd2='string'==typeof _0xc5368e?_0x580814['getRevision'](_0xc5368e):_0xc5368e,_0x250eec='string'==typeof _0x7606f5?_0x580814['getRevision'](_0x7606f5):_0x7606f5,_0x480182=_0x122fd2['id'],_0x16da5d=_0x250eec?_0x250eec['id']:null;if(!_0x53f38e&&this['diff']&&this['diff']['newRevisionId']===_0x480182&&this['diff']['oldRevisionId']===_0x16da5d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x480182,_0x16da5d);const _0xe51f68=this['_getRevisionsRange'](_0x122fd2,_0x250eec,!0x0)['map'](_0x535552=>this['_utils']['loadRevisionData'](_0x535552,this['adapter']));return _0xe51f68['push'](new Promise(_0x232039=>{setTimeout(_0x232039,0x14);})),Promise['all'](_0xe51f68)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1efbbf=this['_getDiff'](_0x480182,_0x16da5d);for(const _0x48d1ba of _0x1efbbf['changes'])this['_changeIdToChange']['set'](_0x48d1ba['id'],_0x48d1ba);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1d9710=>{for(const _0x4c0ac1 of this['editor']['model']['document']['getRootNames']())_0x1d9710['detachRoot'](_0x4c0ac1);for(const _0x165a56 of Object['keys'](_0x1efbbf['model'])){const _0x47723a=_0x1d9710['addRoot'](_0x165a56);for(const _0x3cef17 of Object['keys'](_0x1efbbf['attributes'][_0x165a56]))_0x1d9710['setAttribute'](_0x3cef17,_0x1efbbf['attributes'][_0x165a56][_0x3cef17],_0x47723a);_0x1d9710['insert'](_0x1efbbf['model'][_0x165a56],_0x47723a,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1efbbf['changes'])),this['isReady']=!0x0;})['catch'](_0x2fda5c=>{console['error'](_0x2fda5c),this['_cleanUp'](),_0x396038&&(this['diff']=_0x396038),this['isReady']=!0x0;});}['addRevisionData'](_0x49651a,_0x40678d){const _0x438acb=this['repository']['createRevision'](_0x49651a);return _0x438acb['on']('_update',(_0x695996,_0x348cf0,_0x33acb1)=>_0x40678d(_0x348cf0,_0x33acb1,_0x438acb)),this['repository']['addRevision'](_0x438acb),_0x438acb;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5a7cef=>{for(const _0x12847c of this['editor']['model']['document']['getRootNames']())_0x5a7cef['detachRoot'](_0x12847c);});}['_sortAndFilterDiffChanges'](_0x593236){const _0x2b47d7=[],_0xa3490e=new Map();for(const _0x246272 of this['editor']['model']['document']['getRootNames']()){const _0xb88089=this['editor']['editing']['view']['getDomRoot'](_0x246272);if(!_0xb88089)continue;const _0x1b8214=_0xb88089['getClientRects']()['item'](0x0);_0x1b8214&&(_0x2b47d7['push'](_0x246272),_0xa3490e['set'](_0x246272,_0x1b8214));}return _0x2b47d7['sort']((_0x598048,_0x5d262b)=>{const _0x3a4b3d=_0xa3490e['get'](_0x598048),_0x15e82b=_0xa3490e['get'](_0x5d262b);return _0x3a4b3d['y']-_0x15e82b['y']||_0x3a4b3d['x']-_0x15e82b['x'];}),(_0x593236=_0x593236['filter'](_0x3acce6=>_0x2b47d7['includes'](_0x3acce6['rootName'])))['sort']((_0x372ff5,_0x4a3651)=>_0x2b47d7['indexOf'](_0x372ff5['rootName'])-_0x2b47d7['indexOf'](_0x4a3651['rootName'])),_0x593236;}['_makeTape'](_0x8b06b2){const _0x11d744=Array['from'](_0x8b06b2['markers'])['filter'](([_0x13e2a9,_0x3aac18])=>_0x13e2a9['startsWith']('revision:')&&!_0x3aac18['isCollapsed']),_0x54cf4c=Array['from'](this['editor']['model']['createRangeIn'](_0x8b06b2)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x11d744['length'])for(const _0x56e7fe of _0x54cf4c){const [_0x48cd4e,_0x18fb68]=_0x11d744[0x0],[,_0x3e7902,_0x5160bc]=_0x48cd4e['split'](':');if(_0x18fb68['end']['isEqual'](_0x56e7fe['nextPosition'])&&_0x11d744['shift'](),(_0x56e7fe['previousPosition']['isEqual'](_0x18fb68['start'])||_0x56e7fe['previousPosition']['isAfter'](_0x18fb68['start']))&&('insertion'==_0x3e7902?_0x56e7fe['isAdded']={'userId':_0x5160bc}:'deletion'==_0x3e7902&&(_0x56e7fe['isRemoved']={'userId':_0x5160bc})),0x0==_0x11d744['length'])break;}return _0x54cf4c;}['_refreshStartEndIndex'](_0x5f91c){const _0x5f08fc=new Map();for(let _0x1603cf=0x0;_0x1603cf<_0x5f91c['length'];_0x1603cf++)'text'===_0x5f91c[_0x1603cf]['type']?(_0x5f91c[_0x1603cf]['item']['startIndex']=_0x1603cf,_0x5f91c[_0x1603cf]['item']['endIndex']=_0x1603cf):('elementStart'===_0x5f91c[_0x1603cf]['type']?_0x5f91c[_0x1603cf]['item']['startIndex']=_0x1603cf:'elementEnd'===_0x5f91c[_0x1603cf]['type']&&(_0x5f91c[_0x1603cf]['item']['endIndex']=_0x1603cf),_0x5f08fc['set'](_0x5f91c[_0x1603cf]['id'],_0x1603cf));for(const _0x3f6fb1 of _0x5f08fc['values']())'elementStart'===_0x5f91c[_0x3f6fb1]['type']?_0x5f91c[_0x3f6fb1]['item']['endIndex']=_0x5f08fc['get'](_0x5f91c[_0x3f6fb1]['pairId']):'elementEnd'===_0x5f91c[_0x3f6fb1]['type']&&(_0x5f91c[_0x3f6fb1]['item']['startIndex']=_0x5f08fc['get'](_0x5f91c[_0x3f6fb1]['pairId']));}['_processTape'](_0x1a768c){for(let _0x3622d3=0x0;_0x3622d3<_0x1a768c['length'];_0x3622d3++){if('elementStart'===_0x1a768c[_0x3622d3]['type'])_0x1a768c[_0x3622d3]['item']['startIndex']=_0x3622d3;else{if('elementEnd'===_0x1a768c[_0x3622d3]['type']){_0x1a768c[_0x3622d3]['item']['endIndex']=_0x3622d3;const _0x26e277=_0x1a768c[_0x3622d3]['item']['startIndex'];_0x1a768c[_0x26e277]['pairId']=_0x1a768c[_0x3622d3]['id'],_0x1a768c[_0x3622d3]['pairId']=_0x1a768c[_0x26e277]['id'];}else _0x1a768c[_0x3622d3]['item']['startIndex']=_0x3622d3,_0x1a768c[_0x3622d3]['item']['endIndex']=_0x3622d3,_0x1a768c[_0x3622d3]['pairId']=null;}_0x1a768c[_0x3622d3]['markersStart']||(_0x1a768c[_0x3622d3]['markersStart']=[],_0x1a768c[_0x3622d3]['markersEnd']=[]);}}['_markInsertions'](_0x5e4a7a,_0xa39fcf){const _0x6d824f=_0x5e4a7a['filter'](_0x44dc3c=>!_0x44dc3c['isAdded']);for(let _0x29e54c=0x0;_0x29e54c<_0xa39fcf['length'];_0x29e54c++)_0xa39fcf[_0x29e54c]['isAdded']&&(_0x6d824f[_0x29e54c]['isAdded']=_0xa39fcf[_0x29e54c]['isAdded']);}['_getDiff'](_0x2cda80,_0x2c5429=null){const _0x5782e9=this['repository']['getRevision'](_0x2cda80),_0x4252e7=_0x2c5429?this['repository']['getRevision'](_0x2c5429):null,_0x5efe14=this['_getRevisionsRange'](_0x5782e9,_0x4252e7),_0x1368ec=_0x5efe14[_0x5efe14['length']-0x1],_0x309976=new Map(),_0x3aeaba={'model':{},'attributes':{},'changes':[]},_0x3e9939=new Set(),_0x2fbc5b=new Map();for(let _0x4432d9=_0x5efe14['length']-0x1;_0x4432d9>=0x0;_0x4432d9--){const _0x36e2c1=_0x5efe14[_0x4432d9];for(const _0x455cfd of Object['keys'](_0x36e2c1['diffData']))if(_0x36e2c1['diffData'][_0x455cfd]['attachChange']){const _0x5d4498=_0x36e2c1['diffData'][_0x455cfd]['attachChange'];_0x5d4498['isAttached']?(_0x3e9939['add'](_0x455cfd),_0x2fbc5b['has'](_0x455cfd)&&_0x2fbc5b['get'](_0x455cfd)['userId']==_0x5d4498['userId']?_0x2fbc5b['delete'](_0x455cfd):_0x2fbc5b['set'](_0x455cfd,_0x5d4498)):_0x2fbc5b['has'](_0x455cfd)?(_0x3e9939['delete'](_0x455cfd),_0x2fbc5b['delete'](_0x455cfd)):(_0x3e9939['add'](_0x455cfd),_0x2fbc5b['set'](_0x455cfd,_0x5d4498));}else _0x3e9939['add'](_0x455cfd);}for(const _0x18203c of _0x3e9939){const _0x2b8385=_0x2fbc5b['has'](_0x18203c)&&!_0x2fbc5b['get'](_0x18203c)['isAttached'];let _0x1ff088=_0x2b8385?_0x5efe14['length']-0x1:0x0;const _0x228df9=_0x2b8385?-0x1:0x1;for(;_0x5efe14[_0x1ff088];){const _0x4b214c=_0x5efe14[_0x1ff088];if(_0x4b214c['diffData'][_0x18203c]){const _0x14c13a=_0x2b8385?_0x4b214c['diffData'][_0x18203c]['attributesBefore']:_0x4b214c['diffData'][_0x18203c]['attributesAfter'];_0x3aeaba['attributes'][_0x18203c]=_0x14c13a?_0x55a8fc(_0x14c13a):{};break;}_0x1ff088+=_0x228df9;}}for(const _0x3df797 of _0x5efe14){_0x3df797['model']={};for(const _0x46bb30 of _0x3df797['authors'])_0x309976['set'](_0x46bb30['id'],_0x46bb30);for(const _0x1d87ab of _0x3e9939){const _0x392ad4=_0x3df797['diffData'][_0x1d87ab]?_0x3df797['diffData'][_0x1d87ab]['insertions']:'[]',_0x365e15=_0x3df797['diffData'][_0x1d87ab]?_0x3df797['diffData'][_0x1d87ab]['deletions']:'[]';_0x3df797['model'][_0x1d87ab]={'insertions':this['_utils']['_makeModelFromViewString'](_0x392ad4),'deletions':this['_utils']['_makeModelFromViewString'](_0x365e15)};}}for(const _0x3d66e6 of _0x3e9939){let _0x2a2815=null,_0x4ab5ba=0x0;const _0x46c52b=new Map(Array['from'](_0x5782e9['model'][_0x3d66e6]['insertions']['markers'])['filter'](([_0x1ceefc])=>!_0x1ceefc['startsWith']('revision:')));let _0x4a9612=0x0;for(const _0x3e8885 of _0x5efe14){const _0x4fb4f1=this['_makeTape'](_0x3e8885['model'][_0x3d66e6]['insertions']);_0x3e8885==_0x5782e9?(_0x2a2815=_0x4fb4f1,_0x4ab5ba=_0x2a2815['length'],_0x2a2815['forEach'](_0x2473ed=>{_0x2473ed['id']=_0x4a9612++;}),this['_processTape'](_0x2a2815)):this['_markInsertions'](_0x2a2815,_0x4fb4f1);const _0xd53f37=_0x2a2815['filter'](_0x3b9687=>!_0x3b9687['isAdded'])['map'](_0x305ef3=>_0x305ef3['id']);let _0x3d25a2=0x0;const _0x579f52=this['_makeTape'](_0x3e8885['model'][_0x3d66e6]['deletions']);_0x579f52['forEach'](_0x2724b6=>{_0x2724b6['isRemoved']?_0x2724b6['id']=_0x4ab5ba++:_0x2724b6['id']=_0xd53f37[_0x3d25a2++];}),this['_processTape'](_0x579f52),this['_setDistance'](_0x2a2815,'isAdded'),this['_setDistance'](_0x579f52,'isRemoved'),_0x3e8885==_0x5782e9&&this['_markMarkers'](_0x2a2815,_0x46c52b),_0x2a2815=this['_joinTapes'](_0x2a2815,_0x579f52),this['_refreshStartEndIndex'](_0x2a2815),this['_setDistance'](_0x2a2815,'isRemoved');}_0x2a2815=_0x2a2815['filter'](_0x19e0fe=>!(_0x19e0fe['isAdded']&&_0x19e0fe['isRemoved']));const _0x5b53d9=new Map(_0x1368ec['model'][_0x3d66e6]['deletions']['markers']),_0x48c5f0=new Set(_0x46c52b['keys']());for(const _0x53d402 of _0x5b53d9['keys']())_0x48c5f0['delete'](_0x53d402);this['_markSuggestions'](_0x2a2815,_0x48c5f0),this['_fixObsoleteTags'](_0x2a2815),_0x2a2815=this['_removeMissingPairs'](_0x2a2815),_0x2a2815=this['_markMismatchedRemovedTags'](_0x2a2815),_0x2a2815=this['_removeUnsupportedChanges'](_0x2a2815);const {root:_0x46796b,changes:_0x4b06d5}=this['_makeModelFromTape'](_0x2a2815,_0x309976,_0x3d66e6);_0x3aeaba['model'][_0x3d66e6]=_0x46796b;const _0x47a559=_0x2fbc5b['get'](_0x3d66e6);if(_0x47a559){const _0x27cec6=_0x309976['get'](_0x47a559['userId']),_0xd7ad8c=new G({'author':_0x27cec6,'type':_0x47a559['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3d66e6});_0x4b06d5['unshift'](_0xd7ad8c),_0x3aeaba['attributes'][_0x3d66e6]['revisionHistoryAttachChange']=_0xd7ad8c['id'];}_0x3aeaba['changes']=_0x3aeaba['changes']['concat'](_0x4b06d5);}return _0x3aeaba;}['_markMarkers'](_0x30855d,_0x5ca704){for(let _0xcb5d09=0x0;_0xcb5d09<_0x30855d['length'];_0xcb5d09++)for(const [_0x3584b1,_0x329756]of _0x5ca704)!_0x329756['isCollapsed']&&_0x329756['start']['isEqual'](_0x30855d[_0xcb5d09]['previousPosition'])&&_0x30855d[_0xcb5d09]['markersStart']['push'](_0x3584b1),_0x329756['end']['isEqual'](_0x30855d[_0xcb5d09]['nextPosition'])&&_0x30855d[_0xcb5d09]['markersEnd']['push'](_0x3584b1);}['_joinTapes'](_0x54c51b,_0x68d40a){let _0x37643a=[],_0x30f220=0x0,_0x556003=0x0;for(;_0x30f220<_0x54c51b['length']||_0x556003<_0x68d40a['length'];){const _0xbc01d9=_0x54c51b[_0x30f220]||{},_0x579a14=_0x68d40a[_0x556003]||{};if(_0xbc01d9['id']==_0x579a14['id'])_0x30f220++,_0x556003++,_0x37643a['push'](_0xbc01d9);else{if(_0x579a14['isRemoved']&&_0xbc01d9['isAdded']){const {commonTape:_0x16b67a,iEnd:_0x5ad4ba,jEnd:_0x3bdd55}=this['_threeWayMerge'](_0x54c51b,_0x30f220,_0x68d40a,_0x556003);_0x37643a=_0x37643a['concat'](_0x16b67a),_0x30f220=_0x5ad4ba,_0x556003=_0x3bdd55;}else _0x579a14['isRemoved']?(_0x556003++,_0x37643a['push'](_0x579a14)):(_0x30f220++,_0x37643a['push'](_0xbc01d9));}}return _0x37643a;}['_markSuggestions'](_0x1e9ac4,_0x576ee5){const _0x1f3fdd=[];for(let _0x59b5e1=0x0;_0x59b5e1<_0x1e9ac4['length'];_0x59b5e1++){for(let _0x471e29=0x0;_0x471e29<_0x1e9ac4[_0x59b5e1]['markersStart']['length'];_0x471e29++){const _0x432fb2=_0x1e9ac4[_0x59b5e1]['markersStart'][_0x471e29];if(!_0x576ee5['has'](_0x432fb2))continue;const {group:_0x57f314,type:_0xaf314,authorId:_0x5a368a}=_0x14cf1d(_0x432fb2);'revision-suggestion'!=_0x57f314||'insertion'!=_0xaf314&&'deletion'!=_0xaf314||(_0x1f3fdd['unshift']({'type':_0xaf314,'name':_0x432fb2,'userId':_0x5a368a}),_0x1e9ac4[_0x59b5e1]['markersStart']['splice'](_0x471e29,0x1),_0x471e29--);}_0x844b58(_0x1e9ac4[_0x59b5e1]);for(let _0x249b7d=0x0;_0x249b7d<_0x1e9ac4[_0x59b5e1]['markersEnd']['length'];_0x249b7d++){const _0x688246=_0x1e9ac4[_0x59b5e1]['markersEnd'][_0x249b7d];if(!_0x576ee5['has'](_0x688246))continue;const {group:_0x36f1c5,type:_0x260d1f}=_0x14cf1d(_0x688246);if('revision-suggestion'!=_0x36f1c5||'insertion'!=_0x260d1f&&'deletion'!=_0x260d1f)continue;_0x1e9ac4[_0x59b5e1]['markersEnd']['splice'](_0x249b7d,0x1),_0x249b7d--;const _0x3ac270=_0x1f3fdd['findIndex'](_0x537c14=>_0x537c14['name']==_0x688246);_0x3ac270>-0x1&&_0x1f3fdd['splice'](_0x3ac270,0x1);}}function _0x14cf1d(_0x301e90){const _0x40cfc6=_0x301e90['split'](':');return{'group':_0x40cfc6[0x0],'type':_0x40cfc6[0x1],'subType':_0x40cfc6['length']>=0x5?_0x40cfc6[0x2]:null,'id':_0x40cfc6['length']<0x5?_0x40cfc6[0x2]:_0x40cfc6[0x3],'authorId':_0x40cfc6['length']<0x5?_0x40cfc6[0x3]:_0x40cfc6[0x4],'markerCount':0x6==_0x40cfc6['length']?_0x40cfc6[0x5]:null};}function _0x844b58(_0x4481bb){for(let _0x1439c1=0x0;_0x1439c1<_0x1f3fdd['length'];_0x1439c1++){if(_0x4481bb['isAdded']&&'insertion'==_0x1f3fdd[_0x1439c1]['type']&&_0x4481bb['isAdded']['userId']==_0x1f3fdd[_0x1439c1]['userId'])return _0x4481bb['isAddSuggestion']=_0x1f3fdd[_0x1439c1],void delete _0x4481bb['isAdded'];if(!_0x4481bb['isAdded']&&!_0x4481bb['isRemoved']&&'deletion'==_0x1f3fdd[_0x1439c1]['type'])return void(_0x4481bb['isRemoveSuggestion']=_0x1f3fdd[_0x1439c1]);}}}['_setDistance'](_0x367038,_0x3058df){let _0x2c5920=0x0,_0x360920=!0x1;const _0x4e02fc=new Map();for(const _0x46760d of _0x367038)_0x46760d[_0x3058df]?_0x360920&&(_0x2c5920++,_0x360920=!0x1):(_0x2c5920++,_0x360920=!0x0),_0x4e02fc['set'](_0x46760d['id'],_0x2c5920);for(let _0x409169=0x0;_0x409169<_0x367038['length'];_0x409169++){if('isRemoved'==_0x3058df&&_0x367038[_0x409169]['isAdded']||'isAdded'==_0x3058df&&_0x367038[_0x409169]['isRemoved'])continue;if('text'==_0x367038[_0x409169]['type']){_0x367038[_0x409169]['distance']=0x0;continue;}const _0x47a3f7=_0x4e02fc['get'](_0x367038[_0x409169]['pairId']),_0x1c2d40=_0x4e02fc['get'](_0x367038[_0x409169]['id']);_0x367038[_0x409169]['distance']=_0x47a3f7-_0x1c2d40;}}['_getRevisionsRange'](_0x320788,_0x4b7235,_0x279efb=!0x1){const _0x22c19b=[];let _0x41b6b4=this['repository']['getIndex'](_0x320788),_0x407bf4=this['repository']['getIndex'](_0x4b7235);for(-0x1==_0x407bf4&&(_0x407bf4=this['repository']['_revisions']['length'],_0x279efb=!0x1);_0x41b6b4<_0x407bf4;)_0x22c19b['push'](this['repository']['getRevision'](_0x41b6b4)),_0x41b6b4++;return _0x279efb&&_0x22c19b['push'](this['repository']['getRevision'](_0x41b6b4)),_0x22c19b;}['_threeWayMerge'](_0x2f89ae,_0x46cea8,_0x73e567,_0xcfd9a7){const _0xbd02e3=this['editor']['model']['schema'];let _0x25fa92=_0x46cea8;for(;_0x2f89ae[_0x25fa92]&&_0x2f89ae[_0x25fa92]['isAdded'];)_0x25fa92++;let _0x1e26f7=_0xcfd9a7;for(;_0x73e567[_0x1e26f7]&&_0x73e567[_0x1e26f7]['isRemoved'];)_0x1e26f7++;_0x176825(_0x2f89ae,_0x46cea8,_0x25fa92),_0x176825(_0x73e567,_0xcfd9a7,_0x1e26f7);const _0x2a099b=_0x73e567['slice'](_0xcfd9a7,_0x1e26f7)['concat'](_0x2f89ae['slice'](_0x46cea8,_0x25fa92));return _0x2a099b['sort']((_0x35a007,_0x1083fe)=>_0x35a007['side']!=_0x1083fe['side']?_0x35a007['side']-_0x1083fe['side']:_0x35a007['level']!=_0x1083fe['level']?_0x35a007['level']-_0x1083fe['level']:_0x35a007['distance']!=_0x1083fe['distance']?_0x1083fe['distance']-_0x35a007['distance']:!!_0x35a007['isAdded']!=!!_0x1083fe['isAdded']?-0x1==_0x35a007['side']||0x0==_0x35a007['side']?_0x35a007['isAdded']?-0x1:0x1:_0x35a007['isAdded']?0x1:-0x1:_0x35a007['index']-_0x1083fe['index']),{'commonTape':_0x2a099b,'iEnd':_0x25fa92,'jEnd':_0x1e26f7};function _0x176825(_0x58e6b0,_0x145bf4,_0x45475a){let _0x3b1f68=-0x1,_0x3b0795=Number['POSITIVE_INFINITY'],_0x422dfe=!0x0;for(let _0x38dbd9=_0x145bf4;_0x38dbd9<_0x45475a;_0x38dbd9++)if(_0xbd02e3['isInline'](_0x58e6b0[_0x38dbd9]['item'])||(_0x422dfe=!0x1),_0x58e6b0[_0x38dbd9]['item']['startIndex']<_0x145bf4&&(_0x3b1f68=_0x38dbd9),_0x58e6b0[_0x38dbd9]['item']['endIndex']>=_0x45475a){_0x3b0795=_0x38dbd9;break;}_0x422dfe&&(_0x3b1f68=_0x45475a-0x1);for(let _0x465a18=_0x145bf4;_0x465a18<_0x45475a;_0x465a18++)_0x58e6b0[_0x465a18]['side']=_0x465a18<=_0x3b1f68?-0x1:_0x465a18<_0x3b0795?0x0:0x1,_0x58e6b0[_0x465a18]['index']=_0x465a18;let _0x1feccb=0x0;for(let _0x3328f1=_0x145bf4;_0x3328f1<=_0x3b1f68;_0x3328f1++)0x0==_0x58e6b0[_0x3328f1]['distance']?_0x58e6b0[_0x3328f1]['level']=_0x1feccb:(_0x1feccb++,_0x58e6b0[_0x3328f1]['level']=_0x1feccb,_0x1feccb++);for(let _0x3a3875=_0x145bf4;_0x3a3875<_0x45475a;_0x3a3875++)0x0==_0x58e6b0[_0x3a3875]['side']&&(_0x58e6b0[_0x3a3875]['level']=_0x1feccb);_0x1feccb=0x0;for(let _0x499517=_0x45475a-0x1;_0x499517>=_0x3b0795;_0x499517--)0x0==_0x58e6b0[_0x499517]['distance']?_0x58e6b0[_0x499517]['level']=_0x1feccb:(_0x1feccb--,_0x58e6b0[_0x499517]['level']=_0x1feccb,_0x1feccb--);}}['_fixObsoleteTags'](_0x36a3d5){const _0x31bdd1=new Map(),_0x31b21f=this['editor']['model']['schema'];for(let _0x47c784=0x1;_0x47c784<_0x36a3d5['length'];_0x47c784++){let _0x354587,_0xa8d9c0,_0x4a2346;const _0x22b8ee=_0x36a3d5[_0x47c784],_0x148e3e=_0x36a3d5[_0x47c784-0x1];if('text'==_0x22b8ee['type'])continue;if(_0x22b8ee['type']!=_0x148e3e['type'])continue;if(!_0x31b21f['isBlock'](_0x148e3e['item'])||_0x31b21f['isLimit'](_0x148e3e['item']))continue;if(!_0x31b21f['isBlock'](_0x22b8ee['item'])||_0x31b21f['isLimit'](_0x22b8ee['item']))continue;if((_0x36a3d5[_0x47c784]['isAdded']||_0x36a3d5[_0x47c784]['isAddSuggestion'])&&_0x36a3d5[_0x47c784-0x1]['isRemoved'])_0x354587=_0x36a3d5[_0x47c784],_0xa8d9c0=_0x36a3d5[_0x47c784-0x1],_0x4a2346=_0x47c784-0x1;else{if(!_0x36a3d5[_0x47c784]['isRemoved']||!_0x36a3d5[_0x47c784-0x1]['isAdded']&&!_0x36a3d5[_0x47c784-0x1]['isAddSuggestion'])continue;_0x354587=_0x36a3d5[_0x47c784-0x1],_0xa8d9c0=_0x36a3d5[_0x47c784],_0x4a2346=_0x47c784;}const _0x383922=_0x354587['level']==_0xa8d9c0['level'],_0x11fb4d=Math['abs'](_0x354587['level'])<Math['abs'](_0xa8d9c0['level'])&&0x0==_0xa8d9c0['distance'];(_0x383922||_0x11fb4d)&&(_0x31bdd1['set'](_0xa8d9c0['id'],_0x354587['id']),_0x36a3d5['splice'](_0x4a2346,0x1),_0x47c784--,_0x354587['isAdded']=!0x1);}for(let _0x1b1eae=0x0;_0x1b1eae<_0x36a3d5['length'];_0x1b1eae++)_0x31bdd1['has'](_0x36a3d5[_0x1b1eae]['pairId'])&&(_0x36a3d5[_0x1b1eae]['pairId']=_0x31bdd1['get'](_0x36a3d5[_0x1b1eae]['pairId']));}['_removeMissingPairs'](_0x4a3491){const _0x2896c7=new Set(_0x4a3491['map'](_0x3f548a=>_0x3f548a['id']));for(let _0x41a66f=0x0;_0x41a66f<_0x4a3491['length'];_0x41a66f++)_0x2896c7['has'](_0x4a3491[_0x41a66f]['pairId'])||0x0==_0x4a3491[_0x41a66f]['distance']||(_0x4a3491[_0x41a66f]['isIncorrect']=!0x0);return _0x4a3491['filter'](_0x372b2=>!_0x372b2['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2ee135){const _0x5f2473=new Set();for(let _0x453601=0x0;_0x453601<_0x2ee135['length'];_0x453601++){if(_0x5f2473['has'](_0x2ee135[_0x453601]['id'])&&_0x2ee135[_0x453601]['isRemoved']&&(_0x2ee135[_0x453601]['isIncorrect']=!0x0),_0x2ee135[_0x453601]['isIncorrect'])continue;if(0x0==_0x2ee135[_0x453601]['distance'])continue;if('elementStart'!=_0x2ee135[_0x453601]['type'])continue;if(null==_0x2ee135[_0x453601]['pairId'])continue;let _0x541d41=_0x453601+0x1,_0x15bc51=0x0;for(;_0x2ee135[_0x541d41]['id']!=_0x2ee135[_0x453601]['pairId'];)'elementStart'==_0x2ee135[_0x541d41]['type']?_0x15bc51++:'elementEnd'==_0x2ee135[_0x541d41]['type']&&_0x15bc51--,_0x541d41++;if(0x0!=_0x15bc51){if(_0x2ee135[_0x453601]['isRemoved'])_0x2ee135[_0x453601]['isIncorrect']=!0x0;else{for(;_0x541d41!=_0x453601;)_0x2ee135[_0x541d41]['isRemoved']&&0x0!=_0x2ee135[_0x541d41]['distance']&&(_0x2ee135[_0x541d41]['isIncorrect']=!0x0,_0x5f2473['add'](_0x2ee135[_0x541d41]['pairId'])),_0x541d41--;}}}return _0x2ee135['filter'](_0x38576d=>!_0x38576d['isIncorrect']);}['_removeUnsupportedChanges'](_0x11c2db){const _0x3c1434=this['editor']['model']['schema'];for(let _0x1fc038=0x0;_0x1fc038<_0x11c2db['length'];_0x1fc038++){if(!(_0x11c2db[_0x1fc038]['isAdded']||_0x11c2db[_0x1fc038]['isAddSuggestion']||_0x11c2db[_0x1fc038]['isRemoved']||_0x11c2db[_0x1fc038]['isRemoveSuggestion']))continue;if(0x0==_0x11c2db[_0x1fc038]['distance'])continue;const _0xdd7183=_0x11c2db[_0x1fc038]['item'];_0x3c1434['isBlock'](_0xdd7183)||_0x3c1434['isLimit'](_0xdd7183)||(_0x11c2db[_0x1fc038]['isAdded']&&delete _0x11c2db[_0x1fc038]['isAdded'],_0x11c2db[_0x1fc038]['isAddSuggestion']&&delete _0x11c2db[_0x1fc038]['isAddSuggestion'],_0x11c2db[_0x1fc038]['isRemoveSuggestion']&&delete _0x11c2db[_0x1fc038]['isRemoveSuggestion'],_0x11c2db[_0x1fc038]['isRemoved']&&(_0x11c2db[_0x1fc038]['isIncorrect']=!0x0));}return _0x11c2db['filter'](_0x74cfbd=>!_0x74cfbd['isIncorrect']);}['_makeModelFromTape'](_0x28abfd,_0x2090db,_0xf63ae7){const _0x1bb742=new _0x3dd335(),_0x4790e1=[],_0x5ea791=new Map(),_0x2c3549=this['editor']['model'],_0x1cb17c=_0x2c3549['schema'],_0x4775e1=[_0x1bb742],_0x2dfd1a={},_0x3ba9dd={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2e39b9=null;const _0x2d7ca3=[0x0];for(let _0x56af83=0x0;_0x56af83<_0x28abfd['length'];_0x56af83++)if('elementStart'===_0x28abfd[_0x56af83]['type']){_0x28abfd[_0x56af83]['previousPosition']=_0x2c3549['createPositionFromPath'](_0x1bb742,_0x2d7ca3);const _0x5df8d4=new _0x1b3786(_0x28abfd[_0x56af83]['item']['name'],_0x28abfd[_0x56af83]['item']['getAttributes']());_0x4775e1[0x0]['_appendChild'](_0x5df8d4),_0x2d7ca3['push'](0x0),_0x4775e1['unshift'](_0x5df8d4),_0x28abfd[_0x56af83]['nextPosition']=_0x2c3549['createPositionFromPath'](_0x1bb742,_0x2d7ca3);}else'elementEnd'===_0x28abfd[_0x56af83]['type']?(_0x4775e1['shift'](),_0x28abfd[_0x56af83]['previousPosition']=_0x2c3549['createPositionFromPath'](_0x1bb742,_0x2d7ca3),_0x2d7ca3['pop'](),_0x2d7ca3[_0x2d7ca3['length']-0x1]++,_0x28abfd[_0x56af83]['nextPosition']=_0x2c3549['createPositionFromPath'](_0x1bb742,_0x2d7ca3)):(_0x28abfd[_0x56af83]['previousPosition']=_0x2c3549['createPositionFromPath'](_0x1bb742,_0x2d7ca3),_0x2e39b9?_0x2e39b9['_data']+=_0x28abfd[_0x56af83]['item']['data']:_0x2e39b9=new _0x6ac09e(_0x28abfd[_0x56af83]['item']['data'],_0x28abfd[_0x56af83]['item']['getAttributes']()),_0x28abfd[_0x56af83+0x1]&&'text'===_0x28abfd[_0x56af83+0x1]['type']&&_0x5d6577(_0x2e39b9,_0x28abfd[_0x56af83+0x1]['item'])||(_0x4775e1[0x0]['_appendChild'](_0x2e39b9),_0x2e39b9=null),_0x2d7ca3[_0x2d7ca3['length']-0x1]+=_0x28abfd[_0x56af83]['item']['offsetSize'],_0x28abfd[_0x56af83]['nextPosition']=_0x2c3549['createPositionFromPath'](_0x1bb742,_0x2d7ca3));for(let _0x336b78=0x0;_0x336b78<_0x28abfd['length'];_0x336b78++){const _0x218242=_0x28abfd[_0x336b78]['previousPosition'],_0x5f0373=_0x28abfd[_0x336b78]['nextPosition'];for(const _0x1a8fc6 of _0x28abfd[_0x336b78]['markersStart'])_0x5ea791['set'](_0x1a8fc6,{'start':_0x218242,'end':null});_0x326173('isRemoveSuggestion',_0x336b78,_0x218242,_0x5f0373),_0x326173('isAddSuggestion',_0x336b78,_0x218242,_0x5f0373),_0x326173('isRemoved',_0x336b78,_0x218242,_0x5f0373),_0x326173('isAdded',_0x336b78,_0x218242,_0x5f0373);for(const _0x3c0818 of _0x28abfd[_0x336b78]['markersEnd']){const _0x1e7e62=_0x5ea791['get'](_0x3c0818);_0x1e7e62?_0x1e7e62['end']=_0x5f0373:_0x5ea791['set'](_0x3c0818,{'start':_0x5f0373,'end':_0x5f0373});}}for(const [_0x2e10a1,_0x5caba6]of _0x5ea791){const _0x1b1519=this['editor']['model']['createRange'](_0x5caba6['start'],_0x5caba6['end']);_0x1bb742['markers']['set'](_0x2e10a1,_0x1b1519);}return _0x4790e1['sort']((_0x3a4eda,_0x30777d)=>{const _0x512e36=_0x1bb742['markers']['get']('revision:'+_0x3a4eda['id']),_0x48ca6e=_0x1bb742['markers']['get']('revision:'+_0x30777d['id']);return _0x512e36['start']['isBefore'](_0x48ca6e['start'])?-0x1:_0x512e36['start']['isAfter'](_0x48ca6e['start'])?0x1:_0x512e36['end']['isBefore'](_0x48ca6e['end'])?-0x1:_0x512e36['end']['isAfter'](_0x48ca6e['end'])?0x1:'add'===_0x3a4eda['type']?-0x1:0x1;}),{'root':_0x1bb742,'changes':_0x4790e1};function _0x326173(_0x221462,_0x36361a,_0x1942e6,_0x5dce60){const _0x45bf84=!!_0x28abfd[_0x36361a][_0x221462],_0x5e839d=_0x45bf84?_0x28abfd[_0x36361a][_0x221462]['userId']:null,_0x219648=_0x36361a===_0x28abfd['length']-0x1,_0x39ac89=_0x3ba9dd[_0x221462][0x0],_0x1b8333=_0x1cb17c['isObject'](_0x28abfd[_0x36361a]['item']);!_0x2dfd1a[_0x221462]&&_0x45bf84?_0x2dfd1a[_0x221462]={'start':_0x1942e6,'tapeItem':_0x28abfd[_0x36361a],'userId':_0x5e839d,'type':_0x221462}:_0x2dfd1a[_0x221462]&&!_0x45bf84?(_0x2dfd1a[_0x221462]['end']=_0x1942e6,_0x3ce239(_0x2dfd1a[_0x221462]),_0x2dfd1a[_0x221462]=null):_0x2dfd1a[_0x221462]&&_0x45bf84&&_0x2dfd1a[_0x221462]['userId']!==_0x5e839d&&(_0x2dfd1a[_0x221462]['end']=_0x1942e6,_0x39ac89&&_0x39ac89['userId']===_0x2dfd1a[_0x221462]['userId']||_0x3ce239(_0x2dfd1a[_0x221462]),_0x2dfd1a[_0x221462]={'start':_0x1942e6,'tapeItem':_0x28abfd[_0x36361a],'userId':_0x5e839d,'type':_0x221462}),_0x2dfd1a[_0x221462]&&_0x1b8333&&('elementStart'!==_0x28abfd[_0x36361a]['type']||_0x39ac89&&_0x39ac89['userId']===_0x5e839d||_0x3ba9dd[_0x221462]['unshift']({'userId':_0x5e839d,'object':_0x28abfd[_0x36361a]['item'],'change':_0x2dfd1a[_0x221462]}),'elementEnd'===_0x28abfd[_0x36361a]['type']&&_0x39ac89&&_0x39ac89['object']===_0x28abfd[_0x36361a]['item']&&(_0x3ba9dd[_0x221462]['shift'](),_0x2dfd1a[_0x221462]=_0x39ac89['change'])),_0x2dfd1a[_0x221462]&&_0x219648&&(_0x2dfd1a[_0x221462]['end']=_0x5dce60,_0x3ce239(_0x2dfd1a[_0x221462]),_0x2dfd1a[_0x221462]=null);}function _0x3ce239({start:_0x556310,end:_0x4e5052,tapeItem:_0xe6fd77,userId:_0x20b6e9,type:_0x2c2881}){const _0x5cead4=_0xe6fd77['item'],_0x313d36=_0x2c3549['schema']['isBlock'](_0x5cead4)&&!_0x2c3549['schema']['isLimit'](_0x5cead4),_0x2c5061=_0x556310['nodeAfter']==_0x4e5052['parent']&&_0x4e5052['isAtStart'];if(_0x313d36&&_0x2c5061)return;const _0x32fda7=_0x2c3549['createRange'](_0x556310,_0x4e5052),_0x4d87de=_0x2090db['get'](_0x20b6e9),_0x3748e2=new G({'author':_0x4d87de,'type':'isAdded'==_0x2c2881||'isAddSuggestion'==_0x2c2881?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2c2881||'isRemoveSuggestion'==_0x2c2881},'createdAt':new Date(),'rootName':_0xf63ae7});_0x4790e1['push'](_0x3748e2),_0x1bb742['markers']['set']('revision:'+_0x3748e2['id'],_0x32fda7);}function _0x5d6577(_0x1730df,_0x4f3e3f){const _0x23d45b=_0x1730df['getAttributes'](),_0x27c339=_0x4f3e3f['getAttributes']();for(const _0x3120bd of _0x23d45b){if(_0x3120bd[0x1]!==_0x4f3e3f['getAttribute'](_0x3120bd[0x0]))return!0x1;_0x27c339['next']();}return _0x27c339['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x41ee0=>{const _0x20a9f7=_0x41ee0['markerName']['split'](':')[0x1],_0x5685ed=this['_getChangeFromId'](_0x20a9f7);if(!_0x5685ed)return null;const _0x46af7c='add'==_0x5685ed['type']?'insertion':'deletion',_0x599602=['ck-suggestion-marker','ck-suggestion-marker-'+_0x46af7c];return _0x5685ed['data']['isSuggestion']&&_0x599602['push']('ck-suggestion-marker-'+_0x46af7c+'-new'),this['activeChange']==_0x5685ed&&_0x599602['push']('ck-suggestion-marker--active'),{'classes':_0x599602,'attributes':{'data-change-id':_0x20a9f7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x12d2c9=>{_0x12d2c9['on']('element:pre',(_0x57ea0f,_0x21494a,_0x55ff7a)=>{const _0x20e324=_0x21494a['viewItem']['getChild'](0x0);if(!_0x20e324||!_0x20e324['is']('element','code'))return;if(!_0x55ff7a['consumable']['consume'](_0x20e324,{'attributes':['vid_start','vid_end']}))return;const _0x5ac751=_0x21494a['modelRange']['start']['nodeAfter'];_0x55ff7a['writer']['setAttribute']('vid_start',_0x20e324['getAttribute']('vid_start'),_0x5ac751),_0x55ff7a['writer']['setAttribute']('vid_end',_0x20e324['getAttribute']('vid_end'),_0x5ac751);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x411339=>{_0x411339['on']('element',(_0x1a9366,_0x5620fd,_0x5b2c2f)=>{if(!_0x5b2c2f['consumable']['consume'](_0x5620fd['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5620fd['modelRange']['isCollapsed'])return;const _0x33546b=_0x5620fd['modelRange']['start']['nodeAfter'];_0x33546b['hasAttribute']('vid_start')||_0x33546b['hasAttribute']('vid')||(_0x5b2c2f['writer']['setAttribute']('vid_start',_0x5620fd['viewItem']['getAttribute']('vid_start'),_0x33546b),_0x5b2c2f['writer']['setAttribute']('vid_end',_0x5620fd['viewItem']['getAttribute']('vid_end'),_0x33546b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x267e8c=>_0x267e8c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x17ff96,[,_0x25e6d8])=>{['vid_start','vid_end','vid']['includes'](_0x25e6d8)&&(_0x17ff96['return']=!0x0,_0x17ff96['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xedabec=>{_0xedabec['on']('attribute:vid',(_0x57c768,_0x16e2d8,_0x597ce2)=>{if('\x20'!=_0x16e2d8['item']['data']||_0x16e2d8['item']['parent']['maxOffset']>0x1)return;if(!_0x597ce2['consumable']['consume'](_0x16e2d8['item'],_0x57c768['name']))return;const _0x279d0a=_0x597ce2['writer'],_0x586810=_0x597ce2['mapper']['toViewRange'](_0x16e2d8['range']);_0x279d0a['wrap'](_0x586810,_0x279d0a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x153d70){const _0x65a1fb=_0x153d70['plugins']['get']('RevisionViewer');return(_0x524e7d,_0x30aa6c,_0x430fff)=>{const _0x378d97=_0x30aa6c['markerName']['split'](':')[0x1],_0x384b90=_0x65a1fb['_getChangeFromId'](_0x378d97);if(!_0x384b90)return null;const _0x50079f='add'==_0x384b90['type']?'split':'merge';if(!_0x430fff['consumable']['test'](_0x30aa6c['markerRange'],_0x524e7d['name']))return;const _0x39892e=_0x30aa6c['markerRange']['getWalker'](),_0x1739fb=_0x30aa6c['markerRange']['start'],_0x4c6ea8=_0x153d70['model']['schema'];let _0x2d8790=null,_0x182289=null,_0x1703d4=!0x1,_0x572b45=!0x1;for(const _0x56e2f0 of _0x39892e){const _0x1b8704=_0x56e2f0['item'];_0x1703d4=_0x1703d4||_0x4c6ea8['isContent'](_0x1b8704);const _0x55bdfc=_0x430fff['mapper']['toViewElement'](_0x1b8704);if(_0x55bdfc&&_0x55bdfc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x56e2f0['type']&&(_0x4c6ea8['isBlock'](_0x1b8704)&&!_0x4c6ea8['isLimit'](_0x1b8704)&&(_0x1b8704['nextSibling']||_0x1739fb['isAtEnd']?_0x2d8790&&_0x2d8790['parent']==_0x1b8704||(_0x2d8790=_0x1b8704,_0x456161(_0x56e2f0['previousPosition']),_0x572b45=!0x0):_0x182289=_0x182289||_0x56e2f0['previousPosition']));}function _0x456161(_0x33bd85){const _0x352148=_0x430fff['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50079f}),_0x57b0e7=_0x430fff['mapper']['toViewPosition'](_0x33bd85);_0x384b90['data']['isSuggestion']&&_0x430fff['writer']['addClass']('ck-suggestion-marker-'+_0x50079f+'-new',_0x352148),_0x65a1fb['activeChange']==_0x384b90&&_0x430fff['writer']['addClass']('ck-suggestion-marker--active',_0x352148),_0x430fff['writer']['insert'](_0x57b0e7,_0x352148),_0x430fff['mapper']['bindElementToMarker'](_0x352148,_0x30aa6c['markerName']);}_0x1703d4||_0x572b45||!_0x182289||_0x456161(_0x182289);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x349431,_0x256ab3,_0x5454c3)=>{const _0x412edc=_0x5454c3['mapper']['markerNameToElements'](_0x256ab3['markerName']);if(_0x412edc){for(const _0xd32b51 of _0x412edc)(_0xd32b51['hasClass']('ck-suggestion-marker-split')||_0xd32b51['hasClass']('ck-suggestion-marker-merge'))&&(_0x5454c3['mapper']['unbindElementFromMarkerName'](_0xd32b51,_0x256ab3['markerName']),_0x5454c3['writer']['remove'](_0xd32b51));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x37a1a9,_0x36a6f8,_0x2d2d71)=>{const _0x546c11=_0x36a6f8['markerName']['split'](':')[0x1],_0x1f858f=this['_getChangeFromId'](_0x546c11);if(!_0x1f858f)return null;const _0x569bb2='add'==_0x1f858f['type']?'split':'merge';if(_0x2d2d71['consumable']['test'](_0x36a6f8['markerRange'],_0x37a1a9['name']))for(const _0x26fe0a of _0x36a6f8['markerRange']['getItems']()){if(!_0x26fe0a['is']('element','softBreak'))continue;const _0x5c029f=_0x2d2d71['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x569bb2}),_0x3a4949=_0x2d2d71['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x26fe0a));_0x1f858f['data']['isSuggestion']&&_0x2d2d71['writer']['addClass']('ck-suggestion-marker-'+_0x569bb2+'-new',_0x5c029f),this['activeChange']==_0x1f858f&&_0x2d2d71['writer']['addClass']('ck-suggestion-marker--active',_0x5c029f),_0x2d2d71['writer']['insert'](_0x3a4949,_0x5c029f),_0x2d2d71['mapper']['bindElementToMarker'](_0x5c029f,_0x36a6f8['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2a9ed5=>{for(const _0x9f50c2 of this['editor']['model']['document']['getRootNames']()){const _0xe1d7b2=this['editor']['model']['document']['getRoot'](_0x9f50c2),_0x517536=this['editor']['editing']['view']['document']['getRoot'](_0x9f50c2);if(_0x517536){const _0x150f6b=_0xe1d7b2['getAttribute']('revisionHistoryAttachChange');if(_0x2a9ed5['removeAttribute']('data-change-id',_0x517536),_0x2a9ed5['removeClass']('ck-revision-history-root-add',_0x517536),_0x2a9ed5['removeClass']('ck-revision-history-root-remove',_0x517536),_0x2a9ed5['removeClass']('ck-revision-history-root--active',_0x517536),_0x150f6b){const _0x42628e=this['_getChangeFromId'](_0x150f6b);if(!_0x42628e)return null;_0x2a9ed5['setAttribute']('data-change-id',_0x150f6b,_0x517536),_0x2a9ed5['addClass']('ck-revision-history-root-'+_0x42628e['type'],_0x517536),this['activeChange']==_0x42628e&&_0x2a9ed5['addClass']('ck-revision-history-root--active',_0x517536);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x403909=>'revision-comment:'+_0x403909,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4c90d1=>'revision-suggestion:'+_0x4c90d1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x38fd65=>({'name':'suggestion:'+_0x38fd65,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x927df7=>{const _0x553e11=_0x927df7['markerName']['split'](':')[0x1];return'insertion'!=_0x553e11&&'deletion'!=_0x553e11?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x553e11]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x57bc6b,_0x43d3e2,_0x43c452)=>{const _0x8c5b4d=_0x43c452['mapper']['markerNameToElements'](_0x43d3e2['markerName']);if(_0x8c5b4d){for(const _0x1cd2bf of _0x8c5b4d)_0x1cd2bf['is']('uiElement')&&(_0x43c452['mapper']['unbindElementFromMarkerName'](_0x1cd2bf,_0x43d3e2['markerName']),_0x43c452['writer']['remove'](_0x1cd2bf));}},{'priority':'high'});}['_getChangeFromId'](_0x3e23a2){return this['_changeIdToChange']['get'](_0x3e23a2);}['_getViewForChange'](_0x281c85){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x281c85),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x541ec1,_0x4f9ecb,_0x2125bb,_0x2f98f4)=>{_0x2f98f4&&this['_balloon']['remove'](_0x2f98f4),_0x2125bb&&(this['_balloon']['add']({'view':_0x2125bb,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x366736=this['editor']['editing'],_0x3c0864=this['_getChangeFromId'](_0x2125bb['changeId']);let _0x4ee771;if(_0x3c0864['data']['isOnRoot']){const _0x114bac=_0x366736['view']['getDomRoot'](_0x3c0864['rootName']);_0x4ee771=Array['from'](_0x114bac['getClientRects']());}else{const _0x4f48de=this['editor']['model']['markers']['get']('revision:'+_0x2125bb['changeId']);_0x4ee771=Array['from'](_0x366736['mapper']['markerNameToElements'](_0x4f48de['name']))['map'](_0x1581ea=>_0x366736['view']['domConverter']['mapViewToDom'](_0x1581ea))['map'](_0x58c8df=>Array['from'](_0x58c8df['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4ee771[0x0];return _0x4ee771['find'](_0x113e4e=>_0x113e4e['top']-0x3<=this['_activeViewTarget']['y']&&_0x113e4e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x113e4e['left']-0x3<=this['_activeViewTarget']['x']&&_0x113e4e['right']+0x3>=this['_activeViewTarget']['x'])||_0x4ee771[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x28cba3,_0x4325c9,_0x54d777,_0x4dcd67)=>{this['activeView']=_0x54d777?this['_getViewForChange'](_0x54d777):null,this['editor']['model']['change'](()=>{const _0xe4c76c=this['editor']['editing'];_0x4dcd67&&(_0x4dcd67['data']['isOnRoot']?_0xe4c76c['view']['change'](_0x4207fd=>{_0x4207fd['removeClass']('ck-revision-history-root--active',_0xe4c76c['view']['document']['getRoot'](_0x4dcd67['rootName']));}):_0xe4c76c['reconvertMarker']('revision:'+_0x4dcd67['id'])),_0x54d777&&(_0x54d777['data']['isOnRoot']?_0xe4c76c['view']['change'](_0x2b50d9=>{_0x2b50d9['addClass']('ck-revision-history-root--active',_0xe4c76c['view']['document']['getRoot'](_0x54d777['rootName']));}):_0xe4c76c['reconvertMarker']('revision:'+_0x54d777['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x120c33,_0x23ddc8)=>{if(this['activeChange'])return;const _0x2c9bc2=this['_findChangeIdFromDomTarget'](_0x23ddc8['target']),_0x1b32ab=this['_changeIdToChange']['get'](_0x2c9bc2);_0x1b32ab?(this['_activeViewTarget']={'x':_0x23ddc8['domEvent']['x'],'y':_0x23ddc8['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1b32ab)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x18f5aa,_0xa079f4)=>{const _0x5b0494=this['_findChangeIdFromDomTarget'](_0xa079f4['target']),_0x9246dc=this['_changeIdToChange']['get'](_0x5b0494);_0x9246dc?(this['_activeViewTarget']={'x':_0xa079f4['domEvent']['x'],'y':_0xa079f4['domEvent']['y']},_0x9246dc===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x9246dc):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1d537a){do{const _0x24df98=_0x1d537a['getAttribute']('data-change-id');if(_0x24df98)return _0x24df98;_0x1d537a=_0x1d537a['parent'];}while(_0x1d537a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1f2060=>{for(const _0x142ccd of this['editor']['model']['markers'])_0x1f2060['removeMarker'](_0x142ccd);});}}function Q(_0xca215b,_0x323476){return(_0x25e393,_0x9123d0,_0x14f69f)=>{if(!_0x14f69f['consumable']['test'](_0x9123d0['markerRange'],_0x25e393['name']))return;const _0x12d33f=_0x9123d0['markerRange']['getWalker'](),_0x5b6b34=_0x9123d0['markerRange']['start'],_0x3c4005=_0xca215b['model']['schema'];let _0x6f7ebd=null,_0x2e613d=null,_0x18f95e=!0x1,_0xc6c171=!0x1;for(const _0x412618 of _0x12d33f){const _0x501905=_0x412618['item'];_0x18f95e=_0x18f95e||_0x3c4005['isContent'](_0x501905);const _0x15306e=_0x14f69f['mapper']['toViewElement'](_0x501905);if(_0x15306e&&_0x15306e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x412618['type']&&(_0x3c4005['isBlock'](_0x501905)&&!_0x3c4005['isLimit'](_0x501905)&&(_0x501905['nextSibling']||_0x5b6b34['isAtEnd']?_0x6f7ebd&&_0x6f7ebd['parent']==_0x501905||(_0x6f7ebd=_0x501905,_0x4850d2(_0x412618['previousPosition']),_0xc6c171=!0x0):_0x2e613d=_0x2e613d||_0x412618['previousPosition']));}function _0x4850d2(_0x22a70e){const _0x29cc46=_0x14f69f['mapper']['toViewPosition'](_0x22a70e),_0x1915c3=_0x14f69f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x323476});_0x14f69f['writer']['insert'](_0x29cc46,_0x1915c3),_0x14f69f['mapper']['bindElementToMarker'](_0x1915c3,_0x9123d0['markerName']);}_0x18f95e||_0xc6c171||!_0x2e613d||_0x4850d2(_0x2e613d);};}class nt extends _0x22d940{constructor(_0x35aed5){super(_0x35aed5);const _0x4a1264=_0x35aed5['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x4a1264,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4a1264,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2126c5=this['editor'],_0x471815=_0x2126c5['plugins']['get'](l),_0x11ec69=_0x471815['isReady']?_0x471815['diff']['newRevisionId']:null;_0x2126c5['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x11ec69);}['refresh'](){const {isReady:_0xbb0026,isEnabled:_0x4a641a,repository:_0x2f5e05,diff:_0x4a6bbc}=this['editor']['plugins']['get'](l),_0x49881f=_0x4a6bbc&&_0x2f5e05['getLaterVisibleRevision'](_0x4a6bbc['newRevisionId']);this['isEnabled']=_0xbb0026&&_0x4a641a&&Boolean(_0x49881f);}}class rt extends _0x22d940{['_step'];constructor(_0x399cc0,{direction:_0x5c9ba6}){super(_0x399cc0);const _0x354f58=_0x399cc0['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x5c9ba6?0x1:-0x1,this['listenTo'](_0x354f58,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x354f58,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x354f58,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2de549=this['editor'],_0x484099=_0x2de549['plugins']['get'](l),{isNavigationMode:_0x4eaf94,currentChangeNumber:_0x27725e}=_0x484099;let _0x264479;if(_0x484099['activeChange']=_0x4eaf94?_0x484099['diff']['changes']['get'](_0x27725e+this['_step']):_0x484099['diff']['changes']['first'],_0x484099['activeChange']['data']['isOnRoot'])_0x264479=_0x2de549['editing']['view']['getDomRoot'](_0x484099['activeChange']['rootName']);else{const _0x7cb558=_0x2de549['model']['markers']['get']('revision:'+_0x484099['activeChange']['id']);_0x264479=_0x201b04(_0x2de549['editing'],_0x7cb558);}_0x100974({'target':_0x264479,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4257fb,currentChangeNumber:_0x49a694,numberOfChanges:_0xaae9fe,isReady:_0x3f6e75,isEnabled:_0x18e9de}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x18e9de&&_0x3f6e75&&_0xaae9fe)&&(!_0x4257fb||(0x1===this['_step']?_0x49a694<_0xaae9fe-0x1:_0x49a694>0x0));}}class Ri extends _0x515a02{constructor(_0x4aa680){super(_0x4aa680);const _0x39a964=this['bindTemplate'],_0xf49fe1=new _0x5f0d38(_0x4aa680),_0x1b8831=new _0x5f0d38(_0x4aa680);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',(_0xd0ce61,_0x10f89d)=>_0xd0ce61&&_0x10f89d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x48950d,_0x3cbb88,_0x53e62b,_0x30c2b5)=>{if(!_0x48950d)return R(_0x4aa680,'Loading...');if(!_0x53e62b)return R(_0x4aa680,'No\x20changes');const _0x3861b2=R(_0x4aa680,'NUMBER_OF_CHANGES',_0x53e62b);return _0x30c2b5?R(_0x4aa680,'X_OF_Y_CHANGES',[_0x3cbb88+0x1,_0x53e62b]):_0x3861b2;}),_0xf49fe1['set']({'label':R(_0x4aa680,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x3373fb}),_0x1b8831['set']({'label':R(_0x4aa680,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x282b42}),_0xf49fe1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1b8831['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xf49fe1['on']('execute',()=>this['fire']('execute','backward')),_0x1b8831['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',_0x39a964['if']('_isStatusLabelVisible','ck-hidden',_0x54e318=>!_0x54e318)]},'children':[{'text':_0x39a964['to']('isNavigationMode',_0x51e843=>_0x51e843?R(_0x4aa680,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x4aa680,'Total')+':\x20')}]},{'text':_0x39a964['to']('_statusText')}]},new _0x10326d(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xf49fe1,_0x1b8831]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x2613d1{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x16cc7f=this['editor']['editing']['view'];_0x16cc7f['change'](_0x3e7a32=>{for(const _0x58e7f5 of _0x16cc7f['document']['roots'])_0x3e7a32['addClass'](ge,_0x58e7f5);});}['hide'](){const _0x5cb98c=this['editor']['editing']['view'];_0x5cb98c['change'](_0x126b71=>{for(const _0x4dbc13 of _0x5cb98c['document']['roots'])_0x126b71['removeClass'](ge,_0x4dbc13);});}}class u extends _0x2613d1{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x56795a=this['editor'],_0x2ebfec=_0x56795a['plugins']['get'](l),_0x421f00=_0x56795a['plugins']['get'](ji);_0x56795a['ui']['componentFactory']['add']('exitToEditing',_0x268db9=>{const _0x4a95b9=new _0x5f0d38(_0x268db9);return _0x4a95b9['set']({'label':R(_0x268db9,'Back\x20to\x20editing'),'icon':_0x5ecd83,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4a95b9,'execute',()=>{_0x56795a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4a95b9;}),_0x56795a['ui']['componentFactory']['add']('restoreRevision',_0x59df95=>{const _0x2e043d=new _0x5f0d38(_0x59df95);return _0x2e043d['set']({'label':R(_0x59df95,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2e043d['bind']('isEnabled')['to'](_0x56795a['commands']['get']('restoreRevision')),this['listenTo'](_0x2e043d,'execute',()=>_0x56795a['execute']('restoreRevision')),_0x2e043d;}),_0x56795a['ui']['componentFactory']['add']('changesNavigation',_0x15a8e6=>{const _0xf7e425=new Ri(_0x15a8e6),_0x153d3b=_0x56795a['commands']['get']('showPreviousChange'),_0x46703f=_0x56795a['commands']['get']('showNextChange');return _0xf7e425['bind']('isBackwardNavigationEnabled')['to'](_0x153d3b,'isEnabled'),_0xf7e425['bind']('isForwardNavigationEnabled')['to'](_0x46703f,'isEnabled'),_0xf7e425['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2ebfec),this['listenTo'](_0xf7e425,'execute',(_0x3f78fe,_0x14d92b)=>{_0x56795a['execute']('forward'===_0x14d92b?'showNextChange':'showPreviousChange');}),_0xf7e425;}),_0x421f00['show'](),_0x2ebfec['on']('change:isReady',(_0x5b5249,_0x3e531e,_0x5b7030)=>{_0x5b7030?_0x421f00['hide']():_0x421f00['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x44a39c,_0x41e71b){super(_0x44a39c,_0x41e71b);const _0x4b400d=this['bindTemplate'];this['set']({'label':R(_0x44a39c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x44a39c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4b400d['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2aa88d=this['fieldView']['element'];this['_tooltipString']=_0x2aa88d['scrollWidth']>_0x2aa88d['clientWidth']&&_0x2aa88d['value']||'';}}class ni extends _0x515a02{constructor(_0x20891b,_0x95666b,_0x48e3bf){super(_0x20891b);const _0x3928c0=new _0x753fee();_0x3928c0['set']({'content':_0x3e744d,'viewBox':'0\x200\x2011\x2010'});const _0xfdc364=['ck','ck-revision-history-sidebar__revision-author'];_0x48e3bf&&_0xfdc364['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4ff3b9=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x20891b,_0x48e3bf?'Revision\x20creator':'Revision\x20author')},'children':[_0x3928c0,_0x95666b['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xfdc364},'children':_0x4ff3b9});}}function ci(_0x1d7d4c,_0x1ef548){const _0x59d47f=_0x1d7d4c['bindTemplate'],_0x14cc9f=_0x1d7d4c['locale'],_0x4cbb8d=_0x1d18c2(_0x14cc9f);_0x4cbb8d['panelPosition']='sw';const _0x55cb65=function(_0x2257b7,_0xe5b45f){const _0x2baf1e=function(_0x261b38,_0x14b815){const _0x39c343=_0x261b38['locale'],_0x3d86ee={'Compare\x20against\x20selected':R(_0x39c343,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x39c343,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x39c343,'Restore\x20this\x20revision')};return _0x14b815['map'](_0x3ad0f1=>{const _0x1f5a28=_0x3d86ee[_0x3ad0f1['name']];return _0x1f5a28&&_0x1f5a28!==_0x3ad0f1['name']&&(_0x3ad0f1['name']=_0x1f5a28),_0x3ad0f1;});}(_0x2257b7,_0xe5b45f),_0x34f8a9=new _0x44d325();for(const _0x25a5bd of _0x2baf1e){const _0x51ebb2={'type':'button','model':new to({'label':_0x25a5bd['name'],'class':_0x25a5bd['class'],'withText':!0x0,'role':'menuitem','_action':_0x25a5bd['action']})};_0x51ebb2['model']['bind']('isEnabled')['to'](_0x2257b7,'isActionsDropdownOpen',_0x14c3a4=>'function'!=typeof _0x25a5bd['isEnabled']||(!_0x14c3a4||_0x25a5bd['isEnabled'](_0x2257b7))),_0x34f8a9['add'](_0x51ebb2);}return _0x34f8a9;}(_0x1d7d4c,_0x1ef548);return _0x1d7d4c['bind']('isActionsDropdownOpen')['to'](_0x4cbb8d,'isOpen'),_0x4cbb8d['buttonView']['set']({'label':R(_0x14cc9f,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x384d3b}),_0x4cbb8d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x59d47f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x59d47f['to'](_0x1043f9=>_0x1043f9['stopPropagation']())}}),_0x4cbb8d['on']('execute',_0x4cbe76=>{_0x1d7d4c['isReady']&&'function'==typeof _0x4cbe76['source']['_action']&&_0x4cbe76['source']['_action'](_0x1d7d4c);}),_0x27a0f2(_0x4cbb8d,_0x55cb65,{'role':'menu'}),_0x4cbb8d['listenTo'](_0x1d7d4c,'change:isActionsDropdownOpen',(_0x2ec122,_0x4d5eb8,_0x1f8bee)=>{if(_0x1f8bee)for(const _0x53ce9a of _0x4cbb8d['listView']['items']){const _0xccb61d=_0x53ce9a['children']['first'],_0x58d62f=_0x1ef548['find'](_0x512aab=>_0x512aab['action']===_0xccb61d['_action'])['isVisible'];_0x53ce9a['isVisible']=void 0x0===_0x58d62f||_0x58d62f(_0x1d7d4c);}}),_0x4cbb8d;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x4fe092(_0x515a02){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x22eae8,_0x1621bd,_0x4374d1,_0xc2b63a){super(_0x22eae8);const _0x119314=this['bindTemplate'],_0x1203ee=function(_0x1479a2,_0x172171){const _0x641d3d=Array['from'](_0x172171['authors'])['filter'](_0x674db9=>_0x674db9!=_0x172171['creator']);return _0x172171['creator']&&_0x641d3d['unshift'](_0x172171['creator']),_0x641d3d['map'](_0x513244=>new ni(_0x1479a2,_0x513244,_0x513244==_0x172171['creator']));}(_0x22eae8,_0x1621bd);this['id']=_0x1621bd['id'],this['_revision']=_0x1621bd,this['_requireRevisionName']=_0xc2b63a,this['bind']('name','createdAt')['to'](_0x1621bd),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x49b107=>{return _0x215cf2=_0x22eae8['uiLanguage'],(_0xc90028=_0x49b107)['toLocaleDateString'](_0x215cf2,{'month':'long','day':'numeric'})+',\x20'+_0xc90028['toLocaleTimeString'](_0x215cf2,{'hour':'numeric','minute':'numeric'});var _0x215cf2,_0xc90028;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x22eae8,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4050c0=>_0x4050c0||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5ff2f1,_0x12bbed)=>_0x5ff2f1&&_0x12bbed),this['revisionActionsView']=_0x4374d1&&_0x4374d1['length']?ci(this,_0x4374d1):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x119314['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x119314['if']('isEnabled','ck-disabled',_0x269650=>!_0x269650),_0x119314['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x119314['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x119314['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':_0x119314['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':_0x1203ee}]},this['revisionActionsView']],'on':{'click':_0x119314['to'](_0x139114=>{_0x139114['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4ba141=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4ba141,'change',()=>{this['_requireRevisionName']&&!_0x4ba141['value']||this['fire']('setName',{'id':this['id'],'name':_0x4ba141['value']}),_0x4ba141['value']||(_0x4ba141['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function li(_0x5ec978,_0xb90d8){const _0x578d4a=_0x11f08a['fromJSDate'](_0x5ec978)['setLocale'](_0xb90d8),_0x48f0bc=_0x11f08a['local'](),_0x1e0bf7=_0x48f0bc['minus']({'days':0x1})['startOf']('day');let _0x377d2b,_0x46638a;return _0x578d4a['hasSame'](_0x48f0bc,'day')?(_0x377d2b=_0x578d4a['startOf']('day')['toJSDate'](),_0x46638a=_0x578d4a['toRelativeCalendar']()):_0x578d4a['hasSame'](_0x1e0bf7,'day')?(_0x377d2b=_0x1e0bf7['toJSDate'](),_0x46638a=_0x578d4a['toRelativeCalendar']()):_0x578d4a['hasSame'](_0x48f0bc,'week')?(_0x377d2b=_0x578d4a['startOf']('week')['toJSDate'](),_0x46638a=_0x578d4a['weekdayLong']||''):_0x578d4a['hasSame'](_0x48f0bc,'year')?(_0x377d2b=_0x578d4a['startOf']('month')['toJSDate'](),_0x46638a=_0x578d4a['monthLong']||''):(_0x377d2b=_0x578d4a['startOf']('year')['toJSDate'](),_0x46638a=String(_0x578d4a['year'])),{'startDate':_0x377d2b,'localizedPeriodName':_0x46638a};}class bi extends _0x515a02{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x10fef4,_0x282c94,_0x760321,_0x2f90a7){super(_0x10fef4);const _0x566e74=li(_0x282c94,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x282c94,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x760321,this['_requireRevisionName']=_0x2f90a7,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':_0x566e74}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3fed5f){const _0x1193e5=new _i(this['locale'],_0x3fed5f,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1193e5);}['removeRevision'](_0x697c35){const _0x3843f3=this['revisionViews']['find'](_0x170bb8=>_0x170bb8['id']===_0x697c35['id']);this['revisionViews']['remove'](_0x3843f3);}}class fi extends _0x515a02{constructor(_0x1f4ac4){super(_0x1f4ac4);const _0x4bc16d=new _0x753fee();_0x4bc16d['content']=_0x20563f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4bc16d,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x1f4ac4,'Revision\x20history')]}]});}}class di extends _0x515a02{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1a5295,_0x980aaf,_0x3d1949,_0x1f3329){super(_0x1a5295);const _0x21747f=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x980aaf,this['_revisionActions']=_0x3d1949,this['_requireRevisionName']=_0x1f3329,this['on']('select',(_0x2db70c,_0xe08bb1)=>{this['fire']('revisionSelected',_0xe08bb1);}),this['on']('setName',(_0x50d458,_0x1c652c)=>{this['fire']('revisionSetName',_0x1c652c);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x1a5295),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x21747f['if']('isEnabled','ck-disabled',_0x4033a4=>!_0x4033a4)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x17f84f of this['_revisions'])this['_addRevision'](_0x17f84f);this['_revisions']['on']('add',(_0x3d821a,_0x41500a)=>{this['_addRevision'](_0x41500a);}),this['_revisions']['on']('remove',(_0x5bc5a7,_0x1f4b71)=>{this['_removeRevision'](_0x1f4b71);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x48f587=>_0x48f587['revisionViews']['map'](_0x1336bf=>_0x1336bf))['flat']();}['selectRevision'](_0x4a7ced){for(const _0x3989e8 of this['revisionViews'])_0x4a7ced&&_0x4a7ced['id']===_0x3989e8['id']?_0x3989e8['select']():_0x3989e8['deselect']();}['highlightRevisions'](_0x5e0518){for(const _0x4a1a3f of this['revisionViews'])_0x5e0518['some'](({id:_0x2b15b})=>_0x2b15b===_0x4a1a3f['id'])?_0x4a1a3f['highlight']():_0x4a1a3f['unhighlight']();}['_addRevision'](_0x5363fd){const _0x10e06f=li(_0x5363fd['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x458ec8=this['timePeriodViews']['get'](0x0);_0x458ec8&&_0x458ec8['startDate']['getTime']()===_0x10e06f['getTime']()||(_0x458ec8=new bi(this['locale'],_0x10e06f,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x458ec8)),_0x458ec8['addRevision'](_0x5363fd);}['_removeRevision'](_0x4eccc1){const _0x5f1cbc=li(_0x4eccc1['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5f1cbc)['removeRevision'](_0x4eccc1);}['_getTimePeriodViewByStartDate'](_0x563067){return this['timePeriodViews']['find'](_0x179a69=>_0x179a69['startDate']['getTime']()===_0x563067['getTime']());}}class f extends _0x2613d1{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x28a0f5(_0x5c66f2){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x587e18,_0x16a77a){super(_0x16a77a),this['sourceElement']=_0x587e18,this['model']['document']['createRoot']();const _0x4d2b1a=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x4d2b1a);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x472bee,_0x10e0e2){const _0x39d28a=new this(_0x472bee,_0x10e0e2);return await _0x39d28a['initPlugins'](),await _0x39d28a['ui']['init'](_0x472bee),await _0x39d28a['data']['init'](_0x39d28a['config']['get']('initialData')||''),_0x39d28a['fire']('ready'),_0x39d28a;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x3a7117{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5dcd3f){function _0x137ab5(_0x3f0ccb){return _0x3f0ccb['map'](_0x267e97=>String['fromCharCode'](_0x267e97))['join']('');}super(_0x5dcd3f),this['result']='end',_0x5dcd3f[_0x137ab5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x137ab5([0x76,0x69,0x65,0x77])][_0x137ab5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x137ab5([0x61,0x75,0x74,0x6f]),_0x5dcd3f[_0x137ab5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x137ab5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x137ab5([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x137ab5([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x137ab5([0x6f,0x6b])});}}class ht extends _0x3a7117{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x2a32e4){if(super(_0x2a32e4),!this['editor']['config']['get']('revisionHistory'))throw new _0x3a46b6('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x104802=>this['_showRevisionViewer']({..._0x104802,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x38b652=>this['_closeRevisionViewer'](_0x38b652)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x245fec=>this['_restoreRevision'](_0x245fec)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x15fd87){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x15fd87;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x18737a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x18737a);}['getRevision'](_0x19a433){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x19a433);}['getRevisions'](_0x4f7994){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4f7994||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x303d7c=this['editor'],_0x39ffc7=_0x4cde83(_0x303d7c,d),_0x28b80f=_0x303d7c['plugins']['get']('RevisionTracker'),_0x3b8004=_0x303d7c['plugins']['get']('Users')['users'];return _0x39ffc7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x39ffc7['lazyRoots'],(_0x39ffc7['plugins']['push'](at,l,u,class extends _0x3a7117{static get['requires'](){return[l,'Users'];}['init'](){const _0x138748=this['editor']['plugins']['get']('Users');for(const _0x2b972f of _0x3b8004)_0x2b972f['isAnonymous']||_0x138748['getUser'](_0x2b972f['id'])||_0x138748['addUser'](_0x2b972f);const _0x24413d=_0x28b80f['repository']['getRevisions']();let _0xa7c4f4=null;const _0x3cbb0d=this['editor']['plugins']['get']('RevisionViewer');_0x3cbb0d['adapter']=_0x28b80f['adapter'],_0x3cbb0d['bind']('isEnabled')['to'](_0x28b80f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x303d7c,'isReadOnly',_0x2d1da4=>!_0x2d1da4);for(const _0x2f080f of _0x24413d){const _0x46ac98=null===_0x2f080f['creator'];if(_0x46ac98&&_0x2f080f['toVersion']===_0x2f080f['fromVersion'])continue;const _0x35fa19=_0x2f080f['toJSON']();_0x3cbb0d['addRevisionData'](_0x35fa19,(_0x2c82dc,_0x18b1bd,_0x450bf3)=>{if(_0x46ac98){if(_0xa7c4f4)_0xa7c4f4['_update'](_0x2c82dc,_0x18b1bd);else{if(!_0x18b1bd){const _0xe0dd17=_0x450bf3['toJSON']();_0xe0dd17['id']=_0x17ccda(),_0x28b80f['saveRevision'](_0xe0dd17,_0x450bf3['toVersion'])['then'](_0x3863fa=>{_0xa7c4f4=_0x3863fa;});}}}else _0x2f080f['_update'](_0x2c82dc,_0x18b1bd);});}}},f),_0x39ffc7);}['_enhanceShowRevisionViewerCallback'](){const _0x45ee20=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4491ff=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4f1ba4=this['editor']['plugins']['get']('Autosave');await _0x4f1ba4['save']();}else await _0x4491ff['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x493cc9=this['editor']['plugins']['get']('Dialog');_0x493cc9['isOpen']&&_0x493cc9['hide']();}const _0x396494=this['_getRevisionViewerEditorConfig']();return _0x45ee20(_0x396494)['then'](_0x55d139=>{return(this['_viewerEditor']=_0x55d139,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x55d139);})['catch'](_0x334c92=>(console['error'](_0x334c92),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x25211f=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x25211f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x413b4b=this['editor']['plugins']['get']('Annotations');_0x413b4b['refreshVisibility'](),_0x413b4b['refreshPositioning']();}})));}['_showRevisionViewer'](_0x369af9){const _0x475deb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2399de=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x127515=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x127515,_0x369af9)['then'](_0x299d01=>(_0x2399de['style']['display']='block',_0x475deb['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x299d01));}['_closeRevisionViewer'](_0xd88538){const _0x234e3b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x234e3b['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0xd88538['destroy']();}async['_restoreRevision'](_0x2fdfb8){const _0x3d8c0a=this['editor'],_0x2043ca=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2fd70c=_0x3d8c0a['plugins']['get']('RevisionTracker'),_0x3116d4=_0x3d8c0a['plugins']['get']('RevisionHistoryUtils'),_0x4e9f16=_0x2043ca['repository']['getRevision'](_0x2fdfb8);let _0xbdceec,_0x353971,_0xa2f989;try{await _0x3116d4['loadRevisionData'](_0x4e9f16,this['adapter']),_0xbdceec=_0x3116d4['getRevisionDocumentData'](_0x4e9f16),_0x353971=_0x3116d4['getRevisionRootsAttributes'](_0x4e9f16);}catch(_0x27949d){return void console['error'](_0x27949d);}_0x3d8c0a['model']['change'](_0x2c45db=>{for(const _0x3c55a2 of Array['from'](_0x3d8c0a['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2c45db['removeMarker'](_0x3c55a2);}),_0x2043ca['isReady']=!0x1,_0x3d8c0a['model']['enqueueChange'](_0x5df158=>{_0x5df158['setSelection'](null),_0x5df158['removeSelectionAttribute'](_0x3d8c0a['model']['document']['selection']['getAttributeKeys']());const _0x5e8885=Object['keys'](_0xbdceec);for(const _0x18a040 of _0x3d8c0a['model']['document']['roots'])'$graveyard'!=_0x18a040['rootName']&&_0x18a040['isAttached']()&&!_0x5e8885['includes'](_0x18a040['rootName'])&&_0x5df158['detachRoot'](_0x18a040);for(const _0x1b16e6 of _0x5e8885){let _0x3485cb=_0x3d8c0a['model']['document']['getRoot'](_0x1b16e6);_0x3485cb&&_0x3485cb['isAttached']()||(_0x3485cb=_0x5df158['addRoot'](_0x1b16e6));const _0x4db3f2=_0x353971[_0x1b16e6],_0x1838d0=Object['keys'](_0x4db3f2),_0x5a25f6=_0xbdceec[_0x1b16e6];for(const _0x391eed of _0x3485cb['getAttributeKeys']())_0x1838d0['includes'](_0x391eed)||_0x5df158['removeAttribute'](_0x391eed,_0x3485cb);for(const _0x405a0d of _0x1838d0)_0x5df158['setAttribute'](_0x405a0d,_0x353971[_0x1b16e6][_0x405a0d],_0x3485cb);_0x5df158['remove'](_0x5df158['createRangeIn'](_0x3485cb)),_0x5df158['insert'](_0x3d8c0a['data']['parse'](_0x5a25f6,_0x3485cb),_0x3485cb,0x0);}});const _0x1b2ba1=R(_0x3d8c0a['locale'],'Restored');if(_0x4e9f16['name'])_0xa2f989=-0x1==_0x4e9f16['name']['indexOf'](_0x1b2ba1)?_0x1b2ba1+':\x20'+_0x4e9f16['name']:_0x4e9f16['name'];else _0xa2f989=_0x1b2ba1+':\x20'+(_0x4e9f16['createdAt']['toLocaleDateString'](_0x3d8c0a['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4e9f16['createdAt']['toLocaleTimeString'](_0x3d8c0a['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2fd70c['saveRevision']({'name':_0xa2f989}),_0x2043ca['isReady']=!0x0,_0x3d8c0a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x46f437){super(_0x46f437),this['_revisionViewer']=_0x46f437['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x115b8=this['_revisionsRepository']['_revisions'],_0x3ea2f4=this['_createRevisionActions'](),_0x558a5e=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x115b8,_0x3ea2f4,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',(_0x147f88,_0x4e4f12)=>{_0x4e4f12['revisionViews']['on']('add',(_0x15cc91,_0x437f5f)=>{_0x437f5f['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)),_0x558a5e['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2fd1d8=this['_revisionsRepository']['getRevision'](0x0);if(_0x2fd1d8){const _0x23da9c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2fd1d8['id']);this['_revisionViewer']['compare'](_0x2fd1d8,_0x23da9c);}}['_handleRevisionSelected'](_0x14c163,_0x38fb08){const _0x4cebcc=this['_revisionsRepository']['getRevision'](_0x38fb08['id']),_0x20222c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4cebcc['id']);this['_revisionViewer']['compare'](_0x4cebcc,_0x20222c);}['_handleRevisionSetName'](_0x36e847,_0x51176e){this['_revisionsRepository']['getRevision'](_0x51176e['id'])['setName'](_0x51176e['name']);}['_handleDiffChange'](_0x524ae4,_0x522f52,_0x5ca6bc){const _0x4d8ea0=this['_revisionsRepository']['getRevisionsInDiff'](_0x5ca6bc);_0x4d8ea0['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4d8ea0),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4d8ea0[0x0]));}['_createRevisionActions'](){const _0x47dd90=this['editor'],_0xbc845b=f['availableRevisionActions'],_0xb53657=_0x47dd90['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0xb53657['length'])return _0xb53657['map'](_0x50afff=>{const _0x2eb1c6='string'==typeof _0x50afff?Object['assign']({},_0xbc845b[_0x50afff]):_0x50afff;return _0x2eb1c6['action']=_0x2eb1c6['action']['bind'](this,_0x47dd90),_0x2eb1c6['isVisible']&&(_0x2eb1c6['isVisible']=_0x2eb1c6['isVisible']['bind'](this,_0x47dd90)),_0x2eb1c6;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4930e6},_0x292b21)=>{const _0x171a97=_0x4930e6['get'](l),_0x345688=_0x171a97['repository'];let _0x1b9ac8=_0x171a97['diff']['newRevisionId'],_0x13d9a5=_0x292b21['id'];_0x345688['getIndex'](_0x1b9ac8)>_0x345688['getIndex'](_0x13d9a5)&&([_0x1b9ac8,_0x13d9a5]=[_0x13d9a5,_0x1b9ac8]),_0x171a97['compare'](_0x1b9ac8,_0x13d9a5);},'isVisible':({plugins:_0x2997c2},_0x1a4cf7)=>{const _0x29d5c2=_0x2997c2['get'](l);return!(_0x29d5c2['repository']['getRevisionsInDiff'](_0x29d5c2['diff'])['length']>0x2)&&!_0x1a4cf7['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xabfd77,{id:_0x5405b1})=>{_0xabfd77['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5405b1);},'isVisible':({plugins:_0xec328e},_0x1d7862)=>!!_0xec328e['get'](l)['repository']['getLaterVisibleRevision'](_0x1d7862['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2489c1},{id:_0x6b3ef4,revisionNameView:_0x361775})=>{const _0x141dd0=_0x2489c1['get'](l),_0x33a511=_0x141dd0['repository']['getEarlierVisibleRevision'](_0x6b3ef4);_0x141dd0['compare'](_0x6b3ef4,_0x33a511),_0x361775['focus'](),_0x361775['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x41b8f3,_0x5af89d){super(_0x41b8f3),this['_view']=_0x5af89d,this['_toolbarConfig']=st(_0x41b8f3['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x35c85b){const _0xc94c0=this['editor'],_0x520f67=this['view'],_0x5e7f0c=_0xc94c0['editing']['view'],_0x14a03a=_0x520f67['editable'],_0x2c2857=_0x5e7f0c['document']['getRoot']();_0x14a03a['name']=_0x2c2857['rootName'],_0x520f67['render']();const _0x29e243=_0x14a03a['element'];this['setEditableElement'](_0x14a03a['name'],_0x29e243),_0x520f67['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5e7f0c['attachDomRoot'](_0x29e243),this['_elementReplacer']['replace'](_0x35c85b,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x31d5e2=this['view'],_0x4fc184=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4fc184['detachDomRoot'](_0x31d5e2['editable']['name']),_0x31d5e2['destroy']();}['_initToolbar'](){const _0x223330=this['view'];_0x223330['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x223330['stickyPanel']['limiterElement']=_0x223330['element'],_0x223330['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x10b41c})=>_0x10b41c),_0x223330['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x223330['toolbar']);}}class ii extends _0x947711{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3cbe50,_0x67a6c5,_0x4617={}){super(_0x3cbe50),this['stickyPanel']=new _0x1388c3(_0x3cbe50),this['toolbar']=new _0x573054(_0x3cbe50,{'shouldGroupWhenFull':_0x4617['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x3cbe50,_0x67a6c5);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x43bbf9(_0x3807fb){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x160dd4,_0x4d71ad){super(_0x4d71ad),this['sourceElement']=_0x160dd4,this['model']['document']['createRoot']();const _0x1dd0f6=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x1dd0f6);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1dc2a3,_0xdadfb){const _0x167aab=new this(_0x1dc2a3,_0xdadfb);return await _0x167aab['initPlugins'](),await _0x167aab['ui']['init'](_0x1dc2a3),await _0x167aab['data']['init'](_0x167aab['config']['get']('initialData')||''),_0x167aab['fire']('ready'),_0x167aab;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x2613d1{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52ece1){function _0x3e605b(_0x5d29d0){return _0x5d29d0['map'](_0x29608f=>String['fromCharCode'](_0x29608f))['join']('');}super(_0x52ece1),this['result']='end',_0x52ece1[_0x3e605b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e605b([0x76,0x69,0x65,0x77])][_0x3e605b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e605b([0x61,0x75,0x74,0x6f]),_0x52ece1[_0x3e605b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3e605b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e605b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3e605b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3e605b([0x6f,0x6b])});}}class ct extends _0x2613d1{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x47a200){if(super(_0x47a200),!this['editor']['config']['get']('revisionHistory'))throw new _0x490905('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4e4c88=>this['_showRevisionViewer']({..._0x4e4c88,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x8ca1e=>this['_closeRevisionViewer'](_0x8ca1e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4581b1=>this['_restoreRevision'](_0x4581b1)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x20a0f5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x20a0f5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x9c6dbc){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x9c6dbc);}['getRevision'](_0x269148){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x269148);}['getRevisions'](_0x26abcf){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x26abcf||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1a806f=this['editor'],_0xfcc540=_0x443e12(_0x1a806f,d),_0x39a439=_0x1a806f['plugins']['get']('RevisionTracker'),_0x52d669=_0x1a806f['plugins']['get']('Users')['users'];return _0xfcc540['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xfcc540['lazyRoots'],(_0xfcc540['plugins']['push'](ht,l,u,class extends _0x2613d1{static get['requires'](){return[l,'Users'];}['init'](){const _0x121de7=this['editor']['plugins']['get']('Users');for(const _0x50a20c of _0x52d669)_0x50a20c['isAnonymous']||_0x121de7['getUser'](_0x50a20c['id'])||_0x121de7['addUser'](_0x50a20c);const _0x59173f=_0x39a439['repository']['getRevisions']();let _0x3b78f0=null;const _0x542938=this['editor']['plugins']['get']('RevisionViewer');_0x542938['adapter']=_0x39a439['adapter'],_0x542938['bind']('isEnabled')['to'](_0x39a439),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1a806f,'isReadOnly',_0x535fda=>!_0x535fda);for(const _0x1313e9 of _0x59173f){const _0x14e20f=null===_0x1313e9['creator'];if(_0x14e20f&&_0x1313e9['toVersion']===_0x1313e9['fromVersion'])continue;const _0x7e8007=_0x1313e9['toJSON']();_0x542938['addRevisionData'](_0x7e8007,(_0x15a4e3,_0x3c24f1,_0x5445fe)=>{if(_0x14e20f){if(_0x3b78f0)_0x3b78f0['_update'](_0x15a4e3,_0x3c24f1);else{if(!_0x3c24f1){const _0x1c2eac=_0x5445fe['toJSON']();_0x1c2eac['id']=_0x280b09(),_0x39a439['saveRevision'](_0x1c2eac,_0x5445fe['toVersion'])['then'](_0x19935f=>{_0x3b78f0=_0x19935f;});}}}else _0x1313e9['_update'](_0x15a4e3,_0x3c24f1);});}}},f),_0xfcc540);}['_enhanceShowRevisionViewerCallback'](){const _0x374325=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4d72c6=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1abe80=this['editor']['plugins']['get']('Autosave');await _0x1abe80['save']();}else await _0x4d72c6['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x539c2b=this['editor']['plugins']['get']('Dialog');_0x539c2b['isOpen']&&_0x539c2b['hide']();}const _0x4f6738=this['_getRevisionViewerEditorConfig']();return _0x374325(_0x4f6738)['then'](_0x2bb900=>{return(this['_viewerEditor']=_0x2bb900,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x2bb900);})['catch'](_0x41aec0=>(console['error'](_0x41aec0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1e3a53=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1e3a53(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x382741=this['editor']['plugins']['get']('Annotations');_0x382741['refreshVisibility'](),_0x382741['refreshPositioning']();}})));}['_showRevisionViewer'](_0x94d5ba){const _0x350694=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1cf0af=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2cd69f=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x2cd69f,_0x94d5ba)['then'](_0x234024=>(_0x1cf0af['style']['display']='block',_0x350694['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x234024));}['_closeRevisionViewer'](_0x27d954){const _0x6fef2c=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x6fef2c['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x27d954['destroy']();}async['_restoreRevision'](_0x1f1418){const _0x54641b=this['editor'],_0x41673c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x46e186=_0x54641b['plugins']['get']('RevisionTracker'),_0xb0f5ab=_0x54641b['plugins']['get']('RevisionHistoryUtils'),_0x2e8319=_0x41673c['repository']['getRevision'](_0x1f1418);let _0x1eb074,_0x4fb538,_0x3c50a1;try{await _0xb0f5ab['loadRevisionData'](_0x2e8319,this['adapter']),_0x1eb074=_0xb0f5ab['getRevisionDocumentData'](_0x2e8319),_0x4fb538=_0xb0f5ab['getRevisionRootsAttributes'](_0x2e8319);}catch(_0x2845bd){return void console['error'](_0x2845bd);}_0x54641b['model']['change'](_0xf2e0f1=>{for(const _0x2dfced of Array['from'](_0x54641b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xf2e0f1['removeMarker'](_0x2dfced);}),_0x41673c['isReady']=!0x1,_0x54641b['model']['enqueueChange'](_0x481233=>{_0x481233['setSelection'](null),_0x481233['removeSelectionAttribute'](_0x54641b['model']['document']['selection']['getAttributeKeys']());const _0x163bd9=Object['keys'](_0x1eb074);for(const _0xdc452c of _0x54641b['model']['document']['roots'])'$graveyard'!=_0xdc452c['rootName']&&_0xdc452c['isAttached']()&&!_0x163bd9['includes'](_0xdc452c['rootName'])&&_0x481233['detachRoot'](_0xdc452c);for(const _0x515613 of _0x163bd9){let _0x1b40c0=_0x54641b['model']['document']['getRoot'](_0x515613);_0x1b40c0&&_0x1b40c0['isAttached']()||(_0x1b40c0=_0x481233['addRoot'](_0x515613));const _0x38a55f=_0x4fb538[_0x515613],_0x5bb3ec=Object['keys'](_0x38a55f),_0x5478d1=_0x1eb074[_0x515613];for(const _0x47ef85 of _0x1b40c0['getAttributeKeys']())_0x5bb3ec['includes'](_0x47ef85)||_0x481233['removeAttribute'](_0x47ef85,_0x1b40c0);for(const _0x26b2f3 of _0x5bb3ec)_0x481233['setAttribute'](_0x26b2f3,_0x4fb538[_0x515613][_0x26b2f3],_0x1b40c0);_0x481233['remove'](_0x481233['createRangeIn'](_0x1b40c0)),_0x481233['insert'](_0x54641b['data']['parse'](_0x5478d1,_0x1b40c0),_0x1b40c0,0x0);}});const _0x2aab1a=R(_0x54641b['locale'],'Restored');if(_0x2e8319['name'])_0x3c50a1=-0x1==_0x2e8319['name']['indexOf'](_0x2aab1a)?_0x2aab1a+':\x20'+_0x2e8319['name']:_0x2e8319['name'];else _0x3c50a1=_0x2aab1a+':\x20'+(_0x2e8319['createdAt']['toLocaleDateString'](_0x54641b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2e8319['createdAt']['toLocaleTimeString'](_0x54641b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x46e186['saveRevision']({'name':_0x3c50a1}),_0x41673c['isReady']=!0x0,_0x54641b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|