@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250710.0 → 0.0.0-nightly-20250711.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
|
-
_0x5e85d7(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5f2ac4){super(),this['id']=_0x5f2ac4['id']||_0x4c943c(),this['creator']=_0x5f2ac4['creator']||null,this['authors']=_0x5f2ac4['authors']||[],this['diffData']=_0x5f2ac4['diffData']||null,this['toVersion']=_0x5f2ac4['toVersion']||0x0,this['fromVersion']=_0x5f2ac4['fromVersion']||0x0,this['set']('name',_0x5f2ac4['name']||''),this['set']('createdAt',_0x5f2ac4['createdAt']||new Date()),this['set']('attributes',_0x5f2ac4['attributes']||{});}['setName'](_0x25e5b5){this['_update']({'name':_0x25e5b5});}['setAttribute'](_0xe66297,_0x3a6d2f){const _0x51c99f=_0x291192(this['attributes']);_0x256410(_0x51c99f,_0xe66297,_0x3a6d2f),this['_update']({'attributes':_0x51c99f});}['removeAttribute'](_0xd1de5){const _0x4375ce=_0x291192(this['attributes']);_0x48b1d4(_0x4375ce,_0xd1de5),this['_update']({'attributes':_0x4375ce});}['_update'](_0x47a40f,_0x11d55e=!0x1){let _0xb89481=!0x1;const _0x530158={'id':this['id']},_0x9ee2f1=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5b0687 of _0x9ee2f1){const _0x37d0a9=_0x47a40f[_0x5b0687];void 0x0!==_0x37d0a9&&_0x37d0a9!==this[_0x5b0687]&&(this[_0x5b0687]=_0x37d0a9,_0x530158[_0x5b0687]=_0x37d0a9,_0xb89481=!0x0);}_0xb89481&&(_0x530158['authors']&&(_0x530158['authorsIds']=_0x530158['authors']['map'](_0x13b734=>_0x13b734['id']),delete _0x530158['authors']),this['fire']('_update',_0x530158,_0x11d55e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x56e658=>_0x56e658['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0xc698e3{['_revisions'];static get['requires'](){return[_0x58c107];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x866dd0){super(_0x866dd0),this['_revisions']=new _0x28ccb6();}['afterInit'](){!async function(_0x7b6525){const _0x42ca52=_0x332c81([0x57,0x4e,0x54,0x33,0x77,0x51,0x70,0x73,0x48,0x64,0x32,0x35,0x76,0x55,0x72,0x67,0x44,0x66,0x38,0x39,0x6c,0x61,0x7a,0x53,0x4d,0x42,0x56,0x6d,0x68,0x79,0x6a,0x63,0x78,0x41,0x4f,0x6e,0x65,0x4c,0x43,0x47,0x71,0x69,0x62,0x4a,0x36,0x4b,0x34,0x74,0x52,0x37,0x49,0x30,0x5a,0x6b,0x75,0x45,0x58,0x50,0x46,0x31,0x59,0x6f]),_0x5f5325=0xeb829,_0x373b85=0x49cff00b,_0x382922=0x49c89d23^_0x373b85,_0x408fef=window[_0x332c81([0x44,0x61,0x74,0x65])][_0x332c81([0x6e,0x6f,0x77])](),_0x5929ff=_0x7b6525[_0x332c81([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x235472=new window[(_0x332c81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d48a7=>{_0x5929ff[_0x332c81([0x6f,0x6e,0x63,0x65])](_0x332c81([0x72,0x65,0x61,0x64,0x79]),_0x4d48a7);}),_0x4ce763={[_0x332c81([0x6b,0x74,0x79])]:_0x332c81([0x45,0x43]),[_0x332c81([0x75,0x73,0x65])]:_0x332c81([0x73,0x69,0x67]),[_0x332c81([0x63,0x72,0x76])]:_0x332c81([0x50,0x2d,0x32,0x35,0x36]),[_0x332c81([0x78])]:_0x332c81([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]),[_0x332c81([0x79])]:_0x332c81([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]),[_0x332c81([0x61,0x6c,0x67])]:_0x332c81([0x45,0x53,0x32,0x35,0x36])},_0x76579=_0x5929ff[_0x332c81([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x332c81([0x67,0x65,0x74])](_0x332c81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x27c121(){let _0x4cbdc3,_0x33099d=null,_0x4f0380=null;try{if(_0x76579==_0x332c81([0x47,0x50,0x4c]))return _0x332c81([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4cbdc3=_0x115eae(),!_0x4cbdc3)return _0x332c81([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4cbdc3[_0x332c81([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f0380=_0xaff0df(_0x4cbdc3[_0x332c81([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4cbdc3[_0x332c81([0x6a,0x74,0x69])])),await _0x182dff()?_0x369ebb()?_0x344aa2()?_0x332c81([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3f6669()?(_0x4cbdc3[_0x332c81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x332c81([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x33099d=_0x1e9d65(_0x332c81([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4cbdc3[_0x332c81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x332c81([0x74,0x72,0x69,0x61,0x6c])&&(_0x33099d=_0x1e9d65(_0x332c81([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31ccce()):_0x332c81([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x332c81([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x332c81([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x332c81([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x344aa2(){const _0x11e3a1=[_0x332c81([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x332c81([0x74,0x72,0x69,0x61,0x6c])][_0x332c81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cbdc3[_0x332c81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x408fef/0x3e8:0xe10*_0x382922;return _0x4cbdc3[_0x332c81([0x65,0x78,0x70])]<_0x11e3a1;}function _0x369ebb(){const _0x47c1ed=_0x4cbdc3[_0x332c81([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x47c1ed)return!0x1;if(_0x47c1ed[_0x332c81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332c81([0x2a])))return!0x0;if(_0x47c1ed[_0x332c81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332c81([0x52,0x48])))return!0x0;if(_0x47c1ed[_0x332c81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332c81([0x52,0x52,0x48]))){if(_0x1ac1cf())return!0x0;if(_0x4efa9d()||_0x31a139())return!0x0;}return!0x1;}function _0x3f6669(){const _0x22e45a=_0x4cbdc3[_0x332c81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x22e45a||0x0==_0x22e45a[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x32f428}=new URL(window[_0x332c81([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x22e45a[_0x332c81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32f428))return!0x0;const _0x16cda9=_0x32f428[_0x332c81([0x73,0x70,0x6c,0x69,0x74])](_0x332c81([0x2e]));return _0x22e45a[_0x332c81([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40ccf4=>_0x40ccf4[_0x332c81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332c81([0x2a])))[_0x332c81([0x6d,0x61,0x70])](_0x3e885d=>_0x3e885d[_0x332c81([0x73,0x70,0x6c,0x69,0x74])](_0x332c81([0x2e])))[_0x332c81([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48f7c1=>_0x48f7c1[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x16cda9[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x332c81([0x6d,0x61,0x70])](_0x58f799=>Array(_0x16cda9[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x58f799[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x332c81([0x66,0x69,0x6c,0x6c])](_0x58f799[0x0]===_0x332c81([0x2a])?_0x332c81([0x2a]):'')[_0x332c81([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x58f799))[_0x332c81([0x73,0x6f,0x6d,0x65])](_0x134e22=>_0x16cda9[_0x332c81([0x65,0x76,0x65,0x72,0x79])]((_0x6db133,_0x39fa91)=>_0x134e22[_0x39fa91]===_0x6db133||_0x134e22[_0x39fa91]===_0x332c81([0x2a])));}function _0x31ccce(){return _0x33099d&&_0x4f0380?new window[(_0x332c81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48d528,_0x10031d)=>{_0x33099d[_0x332c81([0x74,0x68,0x65,0x6e])](_0x48d528,_0x10031d),_0x4f0380[_0x332c81([0x74,0x68,0x65,0x6e])](_0x4bb8df=>{_0x4bb8df!=_0x332c81([0x56,0x61,0x6c,0x69,0x64])&&_0x48d528(_0x4bb8df);},_0x10031d);}):_0x33099d||_0x4f0380||_0x332c81([0x56,0x61,0x6c,0x69,0x64]);}}function _0xaff0df(_0x3d3659,_0x297086){return new window[(_0x332c81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbf023b=>{if(_0x3283d9())return _0xbf023b(_0x332c81([0x56,0x61,0x6c,0x69,0x64]));_0x4b7a4c(),_0x5929ff[_0x332c81([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x332c81([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x258734=!0x1;const _0x4c1eec=_0x4c943c();function _0x5d0534(_0x480f0e){return!!_0x480f0e&&(typeof _0x480f0e===_0x332c81([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x480f0e===_0x332c81([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x480f0e[_0x332c81([0x74,0x68,0x65,0x6e])]===_0x332c81([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x480f0e[_0x332c81([0x63,0x61,0x74,0x63,0x68])]===_0x332c81([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x36cdfc(_0x58d34c){_0x5c9584(_0x58d34c)[_0x332c81([0x74,0x68,0x65,0x6e])](_0x3a07ae=>{if(!_0x3a07ae||_0x3a07ae[_0x332c81([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x332c81([0x6f,0x6b]))return _0x332c81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3cacc1(_0x9f7f7a(_0x4c1eec+_0x297086))!=_0x3a07ae[_0x332c81([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x332c81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x332c81([0x56,0x61,0x6c,0x69,0x64]);})[_0x332c81([0x74,0x68,0x65,0x6e])](_0x1c7b8e=>(_0x55a3b0(),_0x1c7b8e),()=>{const _0x409a2f=_0x5911ef();return null==_0x409a2f?(_0x55a3b0(),_0x332c81([0x56,0x61,0x6c,0x69,0x64])):_0x332c81(_0x408fef-_0x409a2f>(0x6dc3740b^_0x373b85)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x332c81([0x74,0x68,0x65,0x6e])](_0xbf023b)[_0x332c81([0x63,0x61,0x74,0x63,0x68])](()=>{_0xbf023b(_0x332c81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3684f9=0x49f91e8b^_0x373b85;function _0x55a3b0(){const _0x11035d=_0x332c81([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cacc1(_0x9f7f7a(_0x3d3659)),_0x38c93b=_0x13f17a(_0x3cacc1(window[_0x332c81([0x4d,0x61,0x74,0x68])][_0x332c81([0x63,0x65,0x69,0x6c])](_0x408fef/_0x3684f9)));window[_0x332c81([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x332c81([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11035d,_0x38c93b);}function _0x5911ef(){const _0x866d6b=_0x332c81([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cacc1(_0x9f7f7a(_0x3d3659)),_0x14d035=window[_0x332c81([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x332c81([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x866d6b);return _0x14d035?window[_0x332c81([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13f17a(_0x14d035),0x10)*_0x3684f9:null;}function _0x5c9584(_0x3be552){return new window[(_0x332c81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf6e4f5,_0x377478)=>{_0x3be552[_0x332c81([0x74,0x68,0x65,0x6e])](_0xf6e4f5,_0x377478),window[_0x332c81([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x377478,0x49ce24cb^_0x373b85);});}}_0x5929ff[_0x332c81([0x6f,0x6e])](_0x332c81([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x402e5c,_0x5de265)=>{if(_0x5de265[0x0]!=_0x3d3659)return _0xbf023b(_0x332c81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5de265[0x1]={..._0x5de265[0x1],[_0x332c81([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c1eec};},{[_0x332c81([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x332c81([0x68,0x69,0x67,0x68])}),_0x5929ff[_0x332c81([0x6f,0x6e])](_0x332c81([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c203f=>{_0x5d0534(_0x5c203f[_0x332c81([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x258734=!0x0,_0x36cdfc(_0x5c203f[_0x332c81([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x332c81([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x332c81([0x6c,0x6f,0x77])}),_0x235472[_0x332c81([0x74,0x68,0x65,0x6e])](()=>{_0x258734||_0xbf023b(_0x332c81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3283d9(){return _0x5929ff[_0x332c81([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x332c81([0x76,0x69,0x65,0x77])][_0x332c81([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x332c81([0x61,0x75,0x74,0x6f]);}function _0x4b7a4c(){_0x5929ff[_0x332c81([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x332c81([0x76,0x69,0x65,0x77])][_0x332c81([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x332c81([0x61,0x75,0x74,0x6f]);}}function _0x1e9d65(_0x41b9b8){const _0x496e74=[new window[(_0x332c81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5491dd=>setTimeout(_0x5491dd,0x49c6cec7^_0x373b85)),_0x235472[_0x332c81([0x74,0x68,0x65,0x6e])](()=>new window[(_0x332c81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2922d1=>{const _0x29bc64=0x49cff00c^_0x373b85,_0x326b51=_0x7b6525[_0x332c81([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4f3cd3(){_0x326b51[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x29bc64&&_0x2922d1();}_0x4f3cd3(),_0x326b51[_0x332c81([0x6f,0x6e])](_0x332c81([0x61,0x64,0x64]),_0x4f3cd3);})),new window[(_0x332c81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d4b7d=>{function _0x268ff1(){for(const _0x39408c in window)if(window[_0x332c81([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x332c81([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x39408c))&&window[_0x39408c]==_0x5f5325)return _0x1d4b7d();_0x5929ff[_0x332c81([0x73,0x74,0x61,0x74,0x65])]!=_0x332c81([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x332c81([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x268ff1,0x49cfe383^_0x373b85);}_0x34d80c(_0x332c81([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x268ff1();})];return window[_0x332c81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x332c81([0x72,0x61,0x63,0x65])](_0x496e74)[_0x332c81([0x74,0x68,0x65,0x6e])](()=>_0x41b9b8);}async function _0x49f87e(){if(await _0x235472,_0x34d80c(_0x332c81([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x56406b=_0x7b6525[_0x332c81([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3a3686=_0x7b6525[_0x332c81([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])](_0x56406b[_0x332c81([0x69,0x64])]),_0x5bbb1a=_0x243447(_0x332c81([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5bbb1a[_0x332c81([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x56406b['id'],_0x3a3686?_0x3a3686['id']:null,!0x0),_0x5bbb1a[_0x332c81([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x332c81([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5bbb1a[_0x332c81([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5bbb1a[_0x332c81([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x37b204,void(_0x5bbb1a[_0x332c81([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x37b204);}if(_0x34d80c(_0x332c81([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3a977f=_0x243447(_0x332c81([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3a977f[_0x332c81([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x332c81([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3a977f[_0x332c81([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3a977f[_0x332c81([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x37b204,_0x3a977f[_0x332c81([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x37b204;}_0x5929ff[_0x332c81([0x6d,0x6f,0x64,0x65,0x6c])][_0x332c81([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x37b204,_0x5929ff[_0x332c81([0x6d,0x6f,0x64,0x65,0x6c])][_0x332c81([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x37b204,_0x5929ff[_0x332c81([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x332c81([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ac1cf(){return _0x34d80c(_0x332c81([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x243447(_0x332c81([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x332c81([0x73,0x74,0x61,0x74,0x65])]==_0x332c81([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4efa9d(){return _0x34d80c(_0x332c81([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 _0x31a139(){return _0x34d80c(_0x332c81([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1759cb(_0x2e1aba){const _0x43ad44=_0x2b8b00();_0x5929ff[_0x43ad44]=_0x332c81([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])+_0x2e1aba,_0x2e1aba[_0x332c81([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x332c81([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2b8b00()]=_0x5f5325),_0x2e1aba!=_0x332c81([0x56,0x61,0x6c,0x69,0x64])&&_0x49f87e();}function _0x2b8b00(){const _0x5795a3=window[_0x332c81([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x332c81([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x332c81([0x6e,0x6f,0x77])]())[_0x332c81([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x332c81([0x2e]),'');let _0x1ebfd8=_0x332c81([0x57]);for(let _0x57026a=0x0;_0x57026a<_0x5795a3[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57026a+=0x2){let _0x5de2ef=window[_0x332c81([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5795a3[_0x332c81([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57026a,_0x57026a+0x2));_0x5de2ef>=_0x42ca52[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5de2ef-=_0x42ca52[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ebfd8+=_0x42ca52[_0x5de2ef];}return _0x1ebfd8;}function _0x115eae(){const _0x236b71=_0x76579[_0x332c81([0x73,0x70,0x6c,0x69,0x74])](_0x332c81([0x2e]));if(0x3!=_0x236b71[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x148e06(_0x236b71[0x1]);function _0x148e06(_0x31138d){const _0x2499ca=_0x39be4f(_0x31138d);return _0x2499ca&&_0x2c6348()?_0x2499ca:null;function _0x2c6348(){const _0x5bbbc0=_0x2499ca[_0x332c81([0x6a,0x74,0x69])],_0x1d228e=window[_0x332c81([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bbbc0[_0x332c81([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bbbc0[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31cc09={..._0x2499ca,[_0x332c81([0x6a,0x74,0x69])]:_0x5bbbc0[_0x332c81([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5bbbc0[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31cc09[_0x332c81([0x76,0x63])],_0x9f7f7a(_0x31cc09)==_0x1d228e;}}}async function _0x182dff(){let _0x4ee7b9=!0x0;try{const _0x7793cd=_0x76579[_0x332c81([0x73,0x70,0x6c,0x69,0x74])](_0x332c81([0x2e])),[_0x328551,_0x2fe1f0,_0x44df90]=_0x7793cd;return _0x5080ef(_0x328551),await _0x58c905(_0x328551,_0x2fe1f0,_0x44df90),_0x4ee7b9;}catch{return!0x1;}function _0x5080ef(_0x31c920){const _0x1dd660=_0x39be4f(_0x31c920);_0x1dd660&&_0x1dd660[_0x332c81([0x61,0x6c,0x67])]==_0x332c81([0x45,0x53,0x32,0x35,0x36])||(_0x4ee7b9=!0x1);}async function _0x58c905(_0x5db9a7,_0x3b0ef5,_0x48501d){const _0x316ae8=window[_0x332c81([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x332c81([0x66,0x72,0x6f,0x6d])](_0x5ecb52(_0x48501d),_0x5084e2=>_0x5084e2[_0x332c81([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1743b3=new window[(_0x332c81([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x332c81([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5db9a7+_0x332c81([0x2e])+_0x3b0ef5),_0x198241=window[_0x332c81([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x332c81([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x198241)return;const _0x2b1567=await _0x198241[_0x332c81([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x332c81([0x6a,0x77,0x6b]),_0x4ce763,{[_0x332c81([0x6e,0x61,0x6d,0x65])]:_0x332c81([0x45,0x43,0x44,0x53,0x41]),[_0x332c81([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x332c81([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x332c81([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x198241[_0x332c81([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x332c81([0x6e,0x61,0x6d,0x65])]:_0x332c81([0x45,0x43,0x44,0x53,0x41]),[_0x332c81([0x68,0x61,0x73,0x68])]:{[_0x332c81([0x6e,0x61,0x6d,0x65])]:_0x332c81([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b1567,_0x316ae8,_0x1743b3)||(_0x4ee7b9=!0x1);}}function _0x39be4f(_0xf9f919){return _0xf9f919[_0x332c81([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x332c81([0x65,0x79]))?JSON[_0x332c81([0x70,0x61,0x72,0x73,0x65])](_0x5ecb52(_0xf9f919)):null;}function _0x5ecb52(_0x52f1e7){return window[_0x332c81([0x61,0x74,0x6f,0x62])](_0x52f1e7[_0x332c81([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x332c81([0x2b]))[_0x332c81([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x332c81([0x2f])));}function _0x9f7f7a(_0x41fbca){let _0x1e2269=0x1505;function _0x3f5633(_0x1d3220){for(let _0x3edbee=0x0;_0x3edbee<_0x1d3220[_0x332c81([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3edbee++){const _0xf2ef45=_0x1d3220[_0x332c81([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3edbee);_0x1e2269=(_0x1e2269<<0x5)+_0x1e2269+_0xf2ef45,_0x1e2269&=_0x1e2269;}}function _0x4c2d13(_0x284fa0){Array[_0x332c81([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x284fa0)?_0x284fa0[_0x332c81([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c2d13):_0x284fa0&&typeof _0x284fa0==_0x332c81([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x332c81([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x284fa0)[_0x332c81([0x73,0x6f,0x72,0x74])]()[_0x332c81([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x32c643,_0x236526])=>{_0x3f5633(_0x32c643),_0x4c2d13(_0x236526);}):_0x3f5633(window[_0x332c81([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x284fa0));}return _0x4c2d13(_0x41fbca),_0x1e2269>>>0x0;}function _0x3cacc1(_0x5e74a1){return _0x5e74a1[_0x332c81([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x332c81([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x332c81([0x30]));}function _0x13f17a(_0xce63f8){return _0xce63f8[_0x332c81([0x73,0x70,0x6c,0x69,0x74])]('')[_0x332c81([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x332c81([0x6a,0x6f,0x69,0x6e])]('');}function _0x34d80c(_0x311a57){return _0x5929ff[_0x332c81([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x332c81([0x68,0x61,0x73])](_0x311a57);}function _0x243447(_0x9f151d){return _0x5929ff[_0x332c81([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x332c81([0x67,0x65,0x74])](_0x9f151d);}function _0x37b204(){}function _0x332c81(_0x571376){return _0x571376['map'](_0xc50428=>String['fromCharCode'](_0xc50428))['join']('');}_0x1759cb(await _0x27c121());}(this);}['createRevision'](_0x3724ca){const _0x2e93f8=this['editor']['plugins']['get']('Users');return new I({'id':_0x3724ca['id'],'name':_0x3724ca['name'],'creator':_0x3724ca['creatorId']?_0x2e93f8['getUser'](_0x3724ca['creatorId']):null,'diffData':_0x3724ca['diffData']||_0x3724ca['data'],'authors':_0x3724ca['authorsIds']['map'](_0x130f42=>_0x2e93f8['getUser'](_0x130f42)),'createdAt':new Date(_0x3724ca['createdAt']),'attributes':_0x3724ca['attributes'],'fromVersion':_0x3724ca['fromVersion'],'toVersion':_0x3724ca['toVersion']});}['addRevision'](_0x219570,_0x178016=0x0){this['_revisions']['add'](_0x219570,_0x178016);}['getRevision'](_0x4fda51){return this['_revisions']['get'](_0x4fda51);}['getRevisions'](_0x5d0e03={'toJSON':!0x1}){const _0x448bbf=Array['from'](this['_revisions']);return _0x448bbf['reverse'](),_0x5d0e03['toJSON']?_0x448bbf['map'](_0x3774ca=>_0x3774ca['toJSON']()):_0x448bbf;}['getIndex'](_0x4a9ded){return this['_revisions']['getIndex'](_0x4a9ded);}['getEarlierVisibleRevision'](_0x4534b0){const [,_0x2bbf6a]=this['getRevisionsIterator'](_0x4534b0,{'direction':'earlier'});return _0x2bbf6a;}['getLaterVisibleRevision'](_0x10937c){const [,_0x264c77]=this['getRevisionsIterator'](_0x10937c,{'direction':'later'});return _0x264c77;}['getRevisionsInDiff'](_0x1f6a41){const _0x38985b=[];for(const _0xec2e74 of this['getRevisionsIterator'](_0x1f6a41['newRevisionId']))if(_0x38985b['push'](_0xec2e74),_0xec2e74['id']===_0x1f6a41['oldRevisionId'])break;return _0x38985b;}*['getRevisionsIterator'](_0x5889ba,{direction:_0x37a740='earlier',filter:_0x511867=()=>!0x0}={}){const _0x2f0316='earlier'===_0x37a740?0x1:-0x1;let _0x54cf0e=this['_revisions']['get'](_0x5889ba),_0x54206c=this['getIndex'](_0x54cf0e);for(yield _0x54cf0e;_0x54cf0e;){if(_0x54206c+=_0x2f0316,_0x54cf0e=this['getRevision'](_0x54206c),!_0x54cf0e)return;_0x511867(_0x54cf0e)&&(yield _0x54cf0e);}}}class $ extends _0xc698e3{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4b2b6f,'c'],[_0x1ea676,'a'],[_0xd14834,'e'],[_0x528cc7,'r'],[_0x2efeb7,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4b2b6f],['a',_0x1ea676],['e',_0xd14834],['r',_0x528cc7],['u',_0x2efeb7]]);async['loadRevisionData'](_0x12e2cd,_0x2ddc97){if(_0x12e2cd['diffData']||!_0x2ddc97)return;const _0x543c73=this['editor']['config']['get']('collaboration.channelId'),_0x215de6=await _0x2ddc97['getRevision']({'channelId':_0x543c73,'revisionId':_0x12e2cd['id']});_0x12e2cd['diffData']=_0x215de6['diffData'];}['getRevisionDocumentData'](_0x56679c){const _0x3eecdf={};for(const _0x529123 in _0x56679c['diffData']){if(_0x56679c['diffData'][_0x529123]['attachChange']&&!_0x56679c['diffData'][_0x529123]['attachChange']['isAttached'])continue;const _0xe18a60=this['_removeRevisionMarkers'](JSON['parse'](_0x56679c['diffData'][_0x529123]['insertions'])),_0x33168e=this['editor']['editing']['view']['document'],_0x388b66=new _0x1998ea(_0x33168e,_0xe18a60['map'](_0x32fee9=>this['_getViewFromDiffObj'](_0x32fee9,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3eecdf[_0x529123]=this['editor']['data']['processor']['toData'](_0x388b66),this['editor']['data']['processor']['useFillerType']('default');}return _0x3eecdf;}['getRevisionRootsAttributes'](_0x145207){const _0x3ef08a={};for(const _0x4ffbd6 in _0x145207['diffData'])_0x145207['diffData'][_0x4ffbd6]['attachChange']&&!_0x145207['diffData'][_0x4ffbd6]['attachChange']['isAttached']||(_0x3ef08a[_0x4ffbd6]=_0x145207['diffData'][_0x4ffbd6]['attributesAfter']||{});return _0x3ef08a;}['_getTypeCharForViewElement'](_0x5726b4){return this['_viewClassToTypeChar']['get'](_0x5726b4['constructor']);}['_getViewFromDiffObj'](_0x487017,_0x293515){const _0x219ed4=this['editor']['editing']['view']['document'];if('string'==typeof _0x487017)return new _0xe13e67(_0x219ed4,_0x487017);{let _0x3fdb6e,_0x47a07a;_0x47a07a='u'==_0x487017['type']||'r'==_0x487017['type']?[]:_0x487017['children']['map'](_0x44a498=>this['_getViewFromDiffObj'](_0x44a498,_0x293515));const _0x5296a6=this['_typeCharToViewClass']['get'](_0x487017['type'])||_0x163ab2,_0x20da95=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x3fdb6e=new _0x5296a6(_0x219ed4,_0x487017['name'],_0x487017['attributes'],_0x47a07a),'u'==_0x487017['type']&&_0x487017['children'][0x0]){const _0xcfa1b0=_0x487017['children'][0x0];if(_0x3fdb6e['render']=function(_0x1b96fc){const _0x3e63e5=_0x1b96fc['createElement']('div');return _0x3e63e5['innerHTML']=_0xcfa1b0,_0x3e63e5['childNodes'][0x0];},_0x293515){const _0x36361a=new _0x1998ea(_0x219ed4);_0x36361a['_appendChild'](_0x3fdb6e);const _0x3ef496=Array['from'](_0x20da95['viewChildrenToDom'](_0x36361a,{'bind':!0x1})),_0x167e82=_0x20da95['domDocument']['createElement']('div');_0x167e82['append'](..._0x3ef496),_0x3fdb6e=Array['from'](_0x20da95['domChildrenToView'](_0x167e82))[0x0];}}else{if('r'==_0x487017['type']&&_0x487017['children'][0x0]){const _0x1107a0=_0x487017['children'][0x0];if(_0x3fdb6e['render']=function(_0x4ebadb){_0x4ebadb['innerHTML']=_0x1107a0;},_0x293515){const _0x4cc435=new _0x1998ea(_0x219ed4);_0x4cc435['_appendChild'](_0x3fdb6e);const _0x1588f8=Array['from'](_0x20da95['viewChildrenToDom'](_0x4cc435,{'bind':!0x1})),_0x48b852=_0x20da95['domDocument']['createElement']('div');_0x48b852['append'](..._0x1588f8);const _0x38408a=Array['from'](_0x20da95['domChildrenToView'](_0x48b852));_0x38408a['length']>0x1?_0x3fdb6e['_appendChild'](_0x38408a):_0x3fdb6e=_0x38408a[0x0];}}}if(_0x487017['customProperties']){for(const [_0x441630,_0x5ccaf0]of _0x487017['customProperties'])_0x3fdb6e['_setCustomProperty'](_0x441630,_0x5ccaf0);}const _0x115ecb=void 0x0===_0x487017['fillerOffset']?null:_0x487017['fillerOffset'];return null!==_0x115ecb&&(_0x3fdb6e['getFillerOffset']=()=>_0x115ecb),_0x3fdb6e;}}['_makeModelFromViewString'](_0x4af2d1){const _0x5b84d0=JSON['parse'](_0x4af2d1),_0x3f68b7=this['editor']['editing']['view']['document'],_0x4563f8=new _0x1998ea(_0x3f68b7,_0x5b84d0['map'](_0x506891=>this['_getViewFromDiffObj'](_0x506891,!0x0)));return this['editor']['data']['toModel'](_0x4563f8);}['_removeRevisionMarkers'](_0x319a6){return(_0x319a6=_0x319a6['filter'](_0xe7626c=>!_0xe7626c['name']||'revision-start'!==_0xe7626c['name']&&'revision-end'!==_0xe7626c['name']))['forEach'](_0x291b62=>{'string'!=typeof _0x291b62&&(_0x291b62['children']=this['_removeRevisionMarkers'](_0x291b62['children']),_0x291b62['attributes']=_0x291b62['attributes']['filter'](_0x1b9f8a=>!_0x1b9f8a[0x0]['startsWith']('data-revision-')));}),_0x319a6;}}function R(_0x34957b,_0x5d4e72,_0xfc893e){const t=_0x34957b['t'];switch(_0x5d4e72){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'},_0xfc893e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xfc893e);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 _0xc698e3{['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[_0x58c107,S,$,_0xe6dcfb];}constructor(_0x2b9d34){super(_0x2b9d34),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 _0x4dccfa=_0x4c943c();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4dccfa},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 _0x4a69f7=this['repository']['getRevision'](0x0),_0x2aec9a=_0x4a69f7&&null===_0x4a69f7['creator']?_0x4a69f7:null;if(this['_continueCurrentRevision']=!!_0x2aec9a&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x52cc57=this['_source']['getCurrentRevisionId'](),_0x34acb3=this['repository']['getRevision'](_0x52cc57);if(_0x34acb3)this['_startingVersion']=_0x34acb3['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xff183f=this['_source']['history']['_operations']['find'](_0x304a2f=>!_0x304a2f['_isInit']),_0x55ed2a=_0xff183f?_0xff183f['baseVersion']:this['_source']['history']['version'];_0x4a69f7?(_0x4a69f7['toVersion']<_0x55ed2a&&_0x4a69f7['_update']({'toVersion':_0x55ed2a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2aec9a['id'],this['_startingVersion']=_0x2aec9a['fromVersion']):(this['_startingVersion']=_0x4a69f7['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x55ed2a,this['_continueCurrentRevision']=!0x1);}}else _0x2aec9a&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2aec9a['toVersion'],this['editor']['model']['document']['history']['version']),_0x2aec9a['fromVersion']===_0x2aec9a['toVersion']?(0x0!==_0x2aec9a['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2aec9a['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2aec9a['id'],this['_startingVersion']=_0x2aec9a['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',_0x1abe02=>!_0x1abe02),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5e0c30=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x56bfa9;for(const _0x23627b in _0x5e0c30){const _0x3dbfb0=_0x23627b,_0x3eb91c=_0x5e0c30[_0x3dbfb0];if('revisionHistoryLicenseKeyValid'==_0x3eb91c||'revisionHistoryLicenseKeyInvalid'==_0x3eb91c||'revisionHistoryLicenseKeyExpired'==_0x3eb91c||'revisionHistoryLicenseKeyDomainLimit'==_0x3eb91c||'revisionHistoryLicenseKeyNotAllowed'==_0x3eb91c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3eb91c||'revisionHistoryLicenseKeyTrialLimit'==_0x3eb91c||'revisionHistoryLicenseKeyUsageLimit'==_0x3eb91c){delete _0x5e0c30[_0x3dbfb0],_0x56bfa9=_0x3eb91c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x56bfa9&&_0x5e0c30['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x56bfa9&&_0x5e0c30['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x56bfa9&&_0x5e0c30['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x56bfa9&&_0x5e0c30['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x56bfa9&&_0x5e0c30['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x56bfa9&&_0x5e0c30['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x56bfa9&&_0x5e0c30['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4675a5=this['repository']['getRevision'](0x0),_0x4de9a5=await this['getRevisionDocumentData'](_0x4675a5),_0x1beebd=await this['getRevisionRootsAttributes'](_0x4675a5);this['_replaceEditorDataWithRevisionData'](_0x4de9a5,_0x1beebd);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xf5b94e){this['_source']=_0xf5b94e;}async['update'](){const _0x3c0019=await this['_source']['getLatestVersion']();if(_0x3c0019>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2951c3=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3c0019});_0x2951c3['authors']=_0x2951c3['authorsIds']['map'](_0x13154d=>this['editor']['plugins']['get']('Users')['getUser'](_0x13154d)),this['currentRevision']['_update'](_0x2951c3);}}async['saveRevision'](_0x3febd6={},_0x217236=null){const _0x391e1a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x217236>this['currentRevision']['toVersion']&&(_0x217236=null),null===_0x217236&&(_0x217236=await this['_source']['getLatestVersion']());const _0x44d753=this['_getFromVersion'](_0x217236),_0x1d0d44=this['buildRevisionData']({'from':_0x44d753,'to':_0x217236});if(this['currentRevision']['toVersion']<_0x217236){const _0x1111a0=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x217236,'to':_0x217236});_0x1111a0['authors']=[],_0x1111a0['authorsIds']=[],_0x1111a0['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1111a0,!0x0),delete _0x1111a0['authors'],_0x391e1a['push'](_0x1111a0);}_0x3febd6['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3febd6['name']=_0x3febd6['name']||null,_0x3febd6['id']=_0x3febd6['id']||_0x4c943c(),_0x3febd6={..._0x3febd6,..._0x1d0d44};const _0x40da73=this['addRevisionData'](_0x3febd6);_0x391e1a['push'](_0x3febd6);const _0x3c2853=this['repository']['getIndex'](_0x40da73);if(0x0!==_0x3c2853){const _0x1297a6=this['repository']['getRevision'](_0x3c2853-0x1);if(_0x1297a6['fromVersion']!==_0x217236){const _0x334770=this['_revisionDataBuilder']['getData'](_0x217236,_0x1297a6['toVersion']),_0x5ce411={'id':_0x1297a6['id'],'diffData':_0x334770['diffData'],'authorsIds':_0x334770['authorsIds'],'authors':_0x334770['authorsIds']['map'](_0x22b2fb=>this['editor']['plugins']['get']('Users')['getUser'](_0x22b2fb)),'fromVersion':_0x217236};_0x1297a6===this['currentRevision']&&(_0x5ce411['createdAt']=new Date(_0x3febd6['createdAt']['getTime']()+0xa)),_0x1297a6['_update'](_0x5ce411,!0x0),delete _0x5ce411['authors'],_0x391e1a['push'](_0x5ce411);}}if(this['adapter']){for(const _0x45f746 of _0x391e1a)this['_bufferUpdate'](_0x45f746['id'],_0x45f746,!0x0);this['sendBufferedUpdates']();}return _0x40da73;}['addRevisionData'](_0x36e63c){const _0x34d434=this['repository']['createRevision'](_0x36e63c);return this['adapter']&&_0x34d434['on']('_update',(_0x380670,_0x144cd8,_0x59ae38)=>{_0x59ae38||(this['_bufferUpdate'](_0x144cd8['id'],_0x144cd8,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x34d434,this['_findInsertionIndex'](_0x34d434)),_0x34d434;}async['getRevisionDocumentData'](_0x1942b2){return await this['_utils']['loadRevisionData'](_0x1942b2,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1942b2);}async['getRevisionRootsAttributes'](_0x189dca){return await this['_utils']['loadRevisionData'](_0x189dca,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x189dca);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2f79a2=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x11d4fc=0x0;_0x11d4fc<_0x2f79a2['length'];_0x11d4fc++){const _0x483699=_0x2f79a2[_0x11d4fc];let _0x2bf7d7=!0x1;for(const _0x35ed3e of Object['keys'](_0x483699))void 0x0===_0x483699[_0x35ed3e]?delete _0x483699[_0x35ed3e]:'id'!==_0x35ed3e&&(_0x2bf7d7=!0x0);_0x2bf7d7||(_0x2f79a2[_0x11d4fc]=null);}if(_0x2f79a2=_0x2f79a2['filter'](_0x5acf24=>null!==_0x5acf24),!_0x2f79a2['length'])return;for(let _0x19ccff=0x0;_0x19ccff<_0x2f79a2['length'];_0x19ccff++){const _0x2bb110=_0x2f79a2[_0x19ccff];void 0x0!==_0x2bb110['fromVersion']&&void 0x0===_0x2bb110['toVersion']&&(_0x2bb110['toVersion']=this['repository']['getRevision'](_0x2bb110['id'])['toVersion']),void 0x0!==_0x2bb110['toVersion']&&void 0x0===_0x2bb110['fromVersion']&&(_0x2bb110['fromVersion']=this['repository']['getRevision'](_0x2bb110['id'])['fromVersion']);}const _0x3b2038=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2f79a2,_0x3b2038)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4b14f1=>{if(_0x4b14f1){for(const _0x30afe5 of _0x4b14f1)this['setRevisionData']({'id':_0x30afe5['id'],'createdAt':_0x30afe5['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x586f05=null,from:_0x409481=null,to:_0x1f9c1e=null}){_0x409481=null!==_0x409481?_0x409481:_0x586f05['fromVersion'],_0x1f9c1e=null!==_0x1f9c1e?_0x1f9c1e:_0x586f05['toVersion'];const _0xf6e81f=this['_revisionDataBuilder']['getData'](_0x409481,_0x1f9c1e),_0x33df93={'diffData':_0xf6e81f['diffData'],'authorsIds':_0xf6e81f['authorsIds'],'fromVersion':_0x409481,'toVersion':_0x1f9c1e};if(!_0x586f05||_0x1f9c1e!==_0x586f05['toVersion']){const _0x157eab=_0x1f9c1e-0x1,_0x2af6e1=this['_source']['history']['getOperation'](_0x157eab);_0x33df93['createdAt']=_0x2af6e1&&_0x2af6e1['createdAt']||new Date();}if(this['_loadedStateData']&&_0x409481===this['_loadedStateData']['fromVersion']){for(const _0x34ce3a of this['_loadedStateData']['authors'])_0x33df93['authorsIds']['includes'](_0x34ce3a['id'])||_0x33df93['authorsIds']['push'](_0x34ce3a['id']);}return _0x33df93;}['_bufferUpdate'](_0x4bc102,_0x4c572c,_0x52e4dc){if(this['_bufferedUpdates']['has'](_0x4bc102)){const _0x430330=this['_bufferedUpdates']['get'](_0x4bc102);_0x4c572c=_0x52e4dc?{..._0x430330,..._0x4c572c}:{..._0x4c572c,..._0x430330};}this['_bufferedUpdates']['set'](_0x4bc102,_0x4c572c);}['setRevisionData'](_0x50a842){const _0x4a99d8=this['repository']['getRevision'](_0x50a842['id']);if(_0x50a842['createdAt']&&(_0x50a842['createdAt']=new Date(_0x50a842['createdAt'])),_0x50a842['authorsIds']){const _0x20def4=this['editor']['plugins']['get']('Users');_0x50a842['authors']=_0x50a842['authorsIds']['map'](_0x4ca974=>_0x20def4['getUser'](_0x4ca974));}_0x4a99d8['_update'](_0x50a842,!0x0);}['_createInitialRevision'](_0xde9684){const _0x425fe2=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x425fe2)this['_initialRevisionId']=_0x425fe2['id'];else{const _0x59c17d=!this['editor']['model']['document']['roots']['find'](_0x207e29=>this['editor']['model']['hasContent'](_0x207e29)),_0x1ade9b=this['editor']['plugins']['get']('Users')['me']['id'],_0x1471a9=R(this['editor']['locale'],_0x59c17d?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xde9684,'to':_0xde9684,'id':this['_initialRevisionId'],'name':_0x1471a9,'creatorId':_0x1ade9b});}}['_createCurrentRevision'](_0x1fef71){const _0x442d7b=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x442d7b),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1fef71,'to':_0x1fef71,'id':_0x442d7b,'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'](_0x2294e4,_0x292fc0){let _0x52d064=this['editor']['config']['get']('initialData'),_0x37d610=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x52d064){_0x52d064={};for(const _0x276742 of this['editor']['model']['document']['getRootNames']())_0x52d064[_0x276742]='';}if('string'==typeof _0x52d064&&(_0x52d064={'main':_0x52d064}),void 0x0===_0x37d610){_0x37d610={};for(const _0x3ccd7b of this['editor']['model']['document']['getRootNames']())_0x37d610[_0x3ccd7b]={};}let _0x459bf6=!0x1;const _0x245f7f=Object['keys'](_0x52d064),_0x2d3047=Object['keys'](_0x2294e4);for(const _0xcb6f48 of _0x245f7f){if(_0x52d064[_0xcb6f48]!==_0x2294e4[_0xcb6f48]&&''!==_0x52d064[_0xcb6f48]['trim']()){_0x459bf6=!0x0;break;}if(!_0x845035(_0x37d610[_0xcb6f48],_0x292fc0[_0xcb6f48])&&Object['keys'](_0x37d610[_0xcb6f48])['length']>0x0){_0x459bf6=!0x0;break;}}_0x459bf6||(_0x459bf6=_0x2d3047['some'](_0x512a1a=>!this['editor']['model']['document']['getRoot'](_0x512a1a))),_0x459bf6&&_0x272f8a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x52d064,'editorRootsAttributes':_0x37d610,'revisionData':_0x2294e4,'revisionRootsAttributes':_0x292fc0}),this['editor']['config']['set']('initialData',_0x2294e4),this['editor']['config']['set']('rootsAttributes',_0x292fc0);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xc5e08c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xc5e08c['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x27b3a0){const _0x5cfa30=this['repository']['getRevisions']();_0x5cfa30['reverse']();let _0x45fd14=0x0;for(;_0x45fd14<_0x5cfa30['length'];){const _0x351887=_0x5cfa30[_0x45fd14];if(_0x351887===this['currentRevision']){_0x45fd14++;continue;}if(_0x351887['id']===this['_initialRevisionId'])break;const _0x85f551=_0x27b3a0['toVersion']-_0x351887['toVersion']||_0x27b3a0['fromVersion']-_0x351887['fromVersion'];if(_0x85f551>0x0)break;if(_0x85f551<0x0)_0x45fd14++;else{if(!_0x27b3a0['creator']&&_0x351887['creator'])break;if(_0x351887['creator']||!_0x27b3a0['creator']){if(_0x27b3a0['createdAt']>_0x351887['createdAt'])break;_0x45fd14++;}else _0x45fd14++;}}return _0x45fd14;}['_getFromVersion'](_0x15c582){const _0x19c4b2=this['repository']['getRevisions']();_0x19c4b2['reverse'](),_0x19c4b2['shift']();const _0x1e4dad=_0x19c4b2['find'](_0x4bba1d=>_0x4bba1d['toVersion']<=_0x15c582)['toVersion'];return _0x1e4dad<this['_startingVersion']?this['_startingVersion']:_0x1e4dad;}['_makeRevision']({name:_0x3d8301,from:_0x3a8178,to:_0x35414d,creatorId:_0x169412,id:_0x2ed36e}){const _0x25dab7=this['buildRevisionData']({'from':_0x3a8178,'to':_0x35414d});_0x25dab7['name']=_0x3d8301,_0x25dab7['creatorId']=_0x169412,_0x25dab7['id']=_0x2ed36e;const _0x3e583a=this['addRevisionData'](_0x25dab7);return this['adapter']&&this['_bufferUpdate'](_0x25dab7['id'],_0x25dab7,!0x0),_0x3e583a;}['_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(_0x1cce2d){this['editor']=_0x1cce2d,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'](_0x478354){this['source']=_0x478354;const _0x25d7a5=new Map(),_0x286aff=new Map(),_0x304240=this['editor']['model']['document']['roots']['map'](_0x5775ac=>_0x5775ac['rootName']);for(const _0x3a484c of _0x304240){const _0x3ab6d2=this['editor']['model']['document']['getRoot'](_0x3a484c),_0x45bf1d=x(_0x3ab6d2);_0x25d7a5['set'](_0x3a484c,_0x45bf1d),_0x286aff['set'](_0x3a484c,Object['fromEntries'](_0x3ab6d2['getAttributes']()));}const _0x293bd5=Array['from'](this['editor']['model']['markers'])['map'](_0x98ec23=>[_0x98ec23['name'],_0x98ec23['getRange']()]),_0x5a9725=this['source']['version'];this['_saveMetaData'](_0x5a9725,_0x25d7a5,_0x293bd5,_0x286aff),this['_startingRevisionId']=this['_revisionId'];const _0x1d05c2=new Map(),_0x3e34d9=new Map();for(const _0x412d69 of _0x304240){const _0x2237e1=N(_0x412d69);_0x1d05c2['set'](_0x412d69,_0x2237e1),_0x3e34d9['set'](_0x412d69,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1d05c2,[],_0x3e34d9);}['getData'](_0x1ec1dc,_0x57898c){if(this['_lastFrom']===_0x1ec1dc&&this['_lastTo']<=_0x57898c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x57898c,!0x0);else{if(!this['_savedMetaData']['has'](_0x1ec1dc)){const _0x144548=this['_getPreviousFrom'](_0x1ec1dc);this['_calculateMetaData'](_0x144548,_0x1ec1dc,!0x1);}this['_calculateMetaData'](_0x1ec1dc,_0x57898c,!0x0);}return this['_lastFrom']=_0x1ec1dc,this['_lastTo']=_0x57898c,this['_getState']();}['loadState'](_0x4946e2){const _0x3a8a09=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4946e2['fromVersion'],this['_lastTo']=_0x4946e2['toVersion'];for(const _0x3aefba in _0x4946e2['diffData']){const _0x16e928=_0x4946e2['diffData'][_0x3aefba]['attachChange'],_0x527c22=_0x291192(_0x4946e2['diffData'][_0x3aefba]['attributesBefore'])||{},_0x5c4bb5=_0x3a8a09['_makeModelFromViewString'](_0x4946e2['diffData'][_0x3aefba]['deletions']);_0x5c4bb5['rootName']=_0x3aefba,_0x5c4bb5['_isAttached']=!_0x16e928||!_0x16e928['isAttached'],_0x5c4bb5['isAttached']=()=>_0x5c4bb5['_isAttached'],this['_baseRoots']['set'](_0x3aefba,_0x5c4bb5),this['_baseRootsAttributes']['set'](_0x3aefba,_0x527c22),_0x16e928&&this['_touchedRoots']['set'](_0x3aefba,_0x16e928);const _0x3c210b=this['_makeIdsRoot'](_0x5c4bb5);this['_baseIdsRoots']['set'](_0x3aefba,_0x3c210b);for(const [_0x576648,_0x74793b]of _0x5c4bb5['markers']){if(!_0x576648['startsWith']('revision:'))continue;const _0x221101=_0x576648['split'](':')[0x2];for(const _0x4c939f of _0x74793b['getWalker']({'singleCharacters':!0x0})){const _0xacfe13=this['_getVidAttributeName'](_0x4c939f),_0x294af1='elementEnd'==_0x4c939f['type']?_0x4c939f['previousPosition']['path']['slice'](0x0,-0x1):_0x4c939f['previousPosition']['path'],_0x2b9c8d=_0x3c210b['getNodeByPath'](_0x294af1)['getAttribute'](_0xacfe13);this['_touched']['set'](_0x2b9c8d,{'userId':_0x221101});}}}this['_startingRevisionId']=this['_revisionId'];const _0x43c8fd=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2d5325=>!this['_touched']['has'](_0x2d5325));let _0x7c9556=0x0;const _0x4315e6=new Map();for(const _0x3d4c70 in _0x4946e2['diffData']){const _0x5434cb=_0x4946e2['diffData'][_0x3d4c70]['attachChange'],_0xdccaf0=_0x291192(_0x4946e2['diffData'][_0x3d4c70]['attributesAfter'])||{},_0xa86b4b=_0x3a8a09['_makeModelFromViewString'](_0x4946e2['diffData'][_0x3d4c70]['insertions']);_0xa86b4b['rootName']=_0x3d4c70,_0xa86b4b['_isAttached']=!_0x5434cb||_0x5434cb['isAttached'],_0xa86b4b['isAttached']=()=>_0xa86b4b['_isAttached'],this['_diffRoots']['set'](_0x3d4c70,_0xa86b4b),this['_diffRootsAttributes']['set'](_0x3d4c70,_0xdccaf0);const _0x15d1a7=this['_makeIdsRoot'](_0xa86b4b,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3d4c70,_0x15d1a7),_0x4315e6['set'](_0x3d4c70,_0xa86b4b['isAttached']()?_0xdccaf0:{});for(const [_0x36bd1a,_0x45a76d]of _0xa86b4b['markers']){if(!_0x36bd1a['startsWith']('revision:'))continue;const _0x2462b8=_0x36bd1a['split'](':')[0x2];for(const _0x259dde of _0x45a76d['getWalker']({'singleCharacters':!0x0})){const _0x3a8142=this['_getVidAttributeName'](_0x259dde),_0x1d77e1=this['_revisionId']++,_0x5a1e5c='elementEnd'==_0x259dde['type']?_0x259dde['previousPosition']['path']['slice'](0x0,-0x1):_0x259dde['previousPosition']['path'];_0x15d1a7['getNodeByPath'](_0x5a1e5c)['_setAttribute'](_0x3a8142,_0x1d77e1),this['_touched']['set'](_0x1d77e1,{'userId':_0x2462b8});}}for(const _0x4272bb of this['editor']['model']['createRangeIn'](_0xa86b4b)['getWalker']({'singleCharacters':!0x0})){const _0x41cfc9=this['_getVidAttributeName'](_0x4272bb),_0x899dac='elementEnd'==_0x4272bb['type']?_0x4272bb['previousPosition']['path']['slice'](0x0,-0x1):_0x4272bb['previousPosition']['path'],_0x57ea71=_0x15d1a7['getNodeByPath'](_0x899dac);_0x57ea71['getAttribute'](_0x41cfc9)>0x0||_0x57ea71['_setAttribute'](_0x41cfc9,_0x43c8fd[_0x7c9556++]);}for(const [_0x1603c1,_0x50416a]of _0xa86b4b['markers'])_0x1603c1['startsWith']('revision:')||this['_markers']['set'](_0x1603c1,_0x50416a);}const _0xf0850d=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0xf0850d),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf0850d,0x1));const _0x2b01c8=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2b01c8),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2b01c8,0x1));const _0x279e3d=Array['from'](this['_diffRoots'])['map'](([_0x37a841,_0x21d44f])=>[_0x37a841,x(_0x21d44f)]);this['_saveMetaData'](this['_lastTo'],_0x279e3d,this['_markers'],_0x4315e6);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x58e406,_0x535af5,_0x5b0b0c,_0x54d467){const _0x140d65=new Map(_0x535af5),_0x28a892=new Map(_0x291192(_0x54d467)),_0x3328d8=new Map();for(const [_0x436bdb,_0x1feed6]of _0x5b0b0c)_0x3328d8['set'](_0x436bdb,{'start':_0x1feed6['start']['clone'](),'end':_0x1feed6['end']['clone'](),'rootName':_0x1feed6['root']['rootName']});this['_savedMetaData']['set'](_0x58e406,{'roots':_0x140d65,'markers':_0x3328d8,'rootsAttributes':_0x28a892});}['_removeMetaData'](_0x5104ce){this['_savedMetaData']['delete'](_0x5104ce);}['_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'](_0xb5af51,_0x4dab85=null){let _0x14a3a5=null;_0xb5af51['is']('documentFragment')||(_0x14a3a5=new _0x99735e(_0xb5af51['name'],{'vid_start':null===_0x4dab85?this['_revisionId']++:_0x4dab85++}));const _0x131167=[];for(const _0x2c97ac of _0xb5af51['getChildren']())if(_0x2c97ac['is']('element')){_0x131167['push'](this['_makeIdsRoot'](_0x2c97ac,_0x4dab85));const _0x1488ff=_0x131167[_0x131167['length']-0x1];null!==_0x4dab85&&(_0x4dab85=_0x1488ff['is']('element','$text')?_0x1488ff['getAttribute']('vid')+0x1:_0x1488ff['getAttribute']('vid_end')+0x1);}else{for(let _0x5f17d2=0x0;_0x5f17d2<_0x2c97ac['offsetSize'];_0x5f17d2++)_0x131167['push'](new _0x99735e('$text',{'vid':null===_0x4dab85?this['_revisionId']++:_0x4dab85++}));}if(_0xb5af51['is']('documentFragment')){const _0xc0e1ab=N(_0xb5af51['rootName']);return _0xc0e1ab['_insertChild'](0x0,_0x131167),_0xc0e1ab;}return _0x14a3a5['_setAttribute']('vid_end',null===_0x4dab85?this['_revisionId']++:_0x4dab85++),_0x14a3a5['_insertChild'](0x0,_0x131167),_0x14a3a5;}['_calculateMetaData'](_0x435f48,_0x2bce86,_0x5f468f){this['_reset']();const {roots:_0x4c0fcf,markers:_0x5260dd,rootsAttributes:_0x6c3a4d}=this['_savedMetaData']['get'](_0x435f48);this['_baseRoots']=new Map(_0x4c0fcf),this['_baseRootsAttributes']=new Map(_0x291192(_0x6c3a4d));for(const [_0x12d6d0,_0x13dfbc]of this['_baseRoots'])if('$graveyard'!==_0x12d6d0&&(this['_diffRoots']['set'](_0x12d6d0,x(_0x13dfbc)),this['_diffRootsAttributes']=new Map(_0x291192(_0x6c3a4d)),_0x5f468f)){const _0xec353d=this['_revisionId'];this['_idsRoots']['set'](_0x12d6d0,this['_makeIdsRoot'](_0x13dfbc)),this['_baseIdsRoots']['set'](_0x12d6d0,this['_makeIdsRoot'](_0x13dfbc,_0xec353d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x5f468f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x540456,_0x2b9b01]of _0x5260dd){const _0x2d9eb6=this['_baseRoots']['get'](_0x2b9b01['rootName']),_0x4d2d7d=this['_diffRoots']['get'](_0x2b9b01['rootName']),_0x53fbb3=new _0x5671c9(this['_fixPosition'](_0x2b9b01['start'],_0x2d9eb6),this['_fixPosition'](_0x2b9b01['end'],_0x2d9eb6)),_0x4be3f5=this['_fixRange'](_0x53fbb3,_0x4d2d7d);_0x2d9eb6['markers']['set'](_0x540456,_0x53fbb3),this['_markers']['set'](_0x540456,_0x4be3f5);}this['_applyOperations'](_0x435f48,_0x2bce86,_0x5f468f);}['_applyOperations'](_0x56248d,_0x32f473,_0x471a58){for(const _0x2138cd of this['source']['getOperations'](_0x56248d,_0x32f473))this['_handleOperation'](_0x2138cd,_0x471a58);for(const _0xd30830 of this['_diffRoots']['values']())_0xd30830['markers']['clear']();for(const [_0x5d344d,_0x3e248b]of this['_markers']){this['_diffRoots']['get'](_0x3e248b['root']['rootName'])['markers']['set'](_0x5d344d,_0x3e248b['clone']());}const _0x2d205d=new Map(),_0x37ac77=new Map();for(const [_0x314025,_0x50b43b]of this['_diffRoots'])_0x2d205d['set'](_0x314025,x(_0x50b43b)),_0x37ac77['set'](_0x314025,this['_diffRootsAttributes']['get'](_0x314025));this['_saveMetaData'](_0x32f473,_0x2d205d,this['_markers'],_0x37ac77);}['_getPreviousFrom'](_0x4dc10a){const _0x5ce659=Array['from'](this['_savedMetaData']['keys']());_0x5ce659['sort']((_0x3ad648,_0x40a10c)=>_0x3ad648-_0x40a10c),_0x5ce659['reverse']();for(const _0xef43d6 of _0x5ce659)if(_0xef43d6<_0x4dc10a)return _0xef43d6;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3733b8,_0x5aa601){const _0x3ad549=Array['from'](_0x5aa601['markers'])['map'](([_0x17b025,_0x2de747])=>[_0x17b025,this['_fixRange'](_0x2de747,_0x3733b8)]);_0x3733b8['markers']=new Map(_0x3ad549);}['_transformMarkers'](_0x4a66c4){for(const _0x4d1a4d of this['_markers']['values']()){const _0x741dd5=_0x4d1a4d['getTransformedByOperation'](_0x4a66c4),_0x16339c=_0x5671c9['_createFromRanges'](_0x741dd5);_0x4d1a4d['start']=_0x16339c['start'],_0x4d1a4d['end']=_0x16339c['end'];}}['_handleOperation'](_0x87fa1a,_0x4cff27){if('addRoot'!=_0x87fa1a['type']&&'detachRoot'!=_0x87fa1a['type']){if('insert'==_0x87fa1a['type']){const _0x4a863b=_0x87fa1a['position']['root']['rootName'];this['_diffRoots']['has'](_0x4a863b)||(this['_diffRoots']['set'](_0x4a863b,N(_0x4a863b,!0x0)),this['_diffRootsAttributes']['set'](_0x4a863b,{}),_0x4cff27&&this['_idsRoots']['set'](_0x4a863b,N(_0x4a863b,!0x0)));}else{if('addRootAttribute'==_0x87fa1a['type']||'removeRootAttribute'==_0x87fa1a['type']||'changeRootAttribute'==_0x87fa1a['type'])return void this['_handleRootAttributeOperation'](_0x87fa1a);'marker'==_0x87fa1a['type']&&this['_handleMarkerOperation'](_0x87fa1a);}if('marker'!==_0x87fa1a['type']){const _0x59b9ff=this['_cloneOperation'](_0x87fa1a,this['_diffRoots']);_0x59b9ff['_execute'](),this['_transformMarkers'](_0x59b9ff);}if(_0x4cff27)switch(_0x87fa1a['type']){case'insert':this['_handleInsertOperation'](_0x87fa1a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x87fa1a);break;case'merge':this['_handleMergeOperation'](_0x87fa1a);break;case'split':this['_handleSplitOperation'](_0x87fa1a);}}else this['_handleRootOperation'](_0x87fa1a,_0x4cff27);}['_cloneOperation'](_0x5052dc,_0x44d8eb){const _0x109c57=_0x5052dc['clone']();return _0x109c57['_authorId']=_0x5052dc['_authorId'],this['_fixOperation'](_0x109c57,_0x44d8eb),_0x109c57;}['_getBaseVids'](_0x4be6b2){return _0x4be6b2['map'](_0x3bf5ac=>{const _0x39f91a=this['_getVidAttributeName'](_0x3bf5ac);return Number(_0x3bf5ac['item']['getAttribute'](_0x39f91a));});}['_generateTape'](_0x1bdc43,_0x177cfa){if(_0x1bdc43['is']('element','$text'))_0x177cfa['push']({'item':_0x1bdc43,'type':'text'});else{_0x1bdc43['is']('element')&&_0x177cfa['push']({'item':_0x1bdc43,'type':'elementStart'});for(const _0x5b2615 of _0x1bdc43['getChildren']())this['_generateTape'](_0x5b2615,_0x177cfa);_0x1bdc43['is']('element')&&_0x177cfa['push']({'item':_0x1bdc43,'type':'elementEnd'});}return _0x177cfa;}['_getState'](){const _0x26c51c=new Map(this['_touched']),_0x2791f2=new Map(_0x26c51c),_0x750db6=new Map(),_0x408c39={'insertions':{},'deletions':{}},_0x1177c2={'insertions':{},'deletions':{}},_0x125648=new Map(),_0x540f12=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x540f12['delete']('$graveyard');for(const _0x4b7d64 of _0x540f12){const _0x5f31db=this['_diffRoots']['get'](_0x4b7d64)||N(_0x4b7d64,!0x1),_0xf42baa=this['_baseRoots']['get'](_0x4b7d64)||N(_0x4b7d64,!0x1);_0x5f31db['isAttached']()||_0xf42baa['isAttached']()?(_0x408c39['insertions'][_0x4b7d64]=x(_0x5f31db),_0x408c39['deletions'][_0x4b7d64]=x(_0xf42baa),this['_copyMarkers'](_0x408c39['deletions'][_0x4b7d64],_0xf42baa),this['_copyMarkers'](_0x408c39['insertions'][_0x4b7d64],_0x5f31db),_0x1177c2['insertions'][_0x4b7d64]=this['_generateTape'](this['_idsRoots']['get'](_0x4b7d64),[]),_0x1177c2['deletions'][_0x4b7d64]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4b7d64)||N(_0x4b7d64,!0x1),[])):_0x540f12['delete'](_0x4b7d64);}for(const _0x2b11be of _0x540f12){const _0x2e510d=_0x1177c2['insertions'][_0x2b11be];for(const _0x2b48ce of _0x2e510d){const _0x1ce298=this['_getVidAttributeName'](_0x2b48ce),_0x499c53=_0x2b48ce['item']['getAttribute'](_0x1ce298);_0x2791f2['delete'](_0x499c53),_0x499c53>=this['_startingRevisionId']&&_0x750db6['set'](_0x499c53,_0x26c51c['get'](_0x499c53));}}for(const _0x5e66bd of _0x540f12){const _0x43774f=_0x1177c2['insertions'][_0x5e66bd],_0x49c93e=this['_getBaseVids'](_0x1177c2['deletions'][_0x5e66bd]);let _0xb50b5f=0x0;for(const _0xd1c38c of _0x43774f){const _0x1579af=this['_getVidAttributeName'](_0xd1c38c),_0x10fc9a=_0xd1c38c['item']['getAttribute'](_0x1579af);if(!_0x750db6['has'](_0x10fc9a)&&!_0x125648['has'](_0x10fc9a)){if(_0x2791f2['has'](_0x10fc9a))_0xb50b5f++;else{if(_0x10fc9a!=_0x49c93e[_0xb50b5f]){const _0x579525=_0x26c51c['get'](_0x10fc9a)||_0x26c51c['get'](_0x49c93e[_0xb50b5f]);for(;_0x10fc9a!=_0x49c93e[_0xb50b5f];)_0x2791f2['has'](_0x49c93e[_0xb50b5f])||(_0x125648['set'](_0x49c93e[_0xb50b5f],_0x579525),_0x26c51c['set'](_0x49c93e[_0xb50b5f],_0x579525)),_0xb50b5f++;}_0xb50b5f++;}}}}for(const _0x3c7a99 of _0x540f12){const _0x552eb6=_0x1177c2['insertions'][_0x3c7a99];for(const _0x2d5b11 of _0x552eb6){const _0x4661e1=this['_getVidAttributeName'](_0x2d5b11),_0x37284e=_0x2d5b11['item']['getAttribute'](_0x4661e1);if(_0x125648['has'](_0x37284e)){const _0x5939eb=_0x125648['get'](_0x37284e);_0x2791f2['has'](_0x37284e)||_0x2791f2['set'](_0x37284e,{..._0x5939eb}),_0x750db6['set'](_0x37284e,{..._0x5939eb});}}}for(const _0x4d0c55 of _0x2791f2['keys']())_0x4d0c55>=this['_startingRevisionId']&&_0x2791f2['delete'](_0x4d0c55);const _0x251cb2=new Map();for(const _0x29998b of _0x540f12){let _0x43c511=_0x1177c2['insertions'][_0x29998b];for(const _0x2ac3ce of _0x43c511)if(_0x2ac3ce['item']['is']('element','tableCell')){const _0x109a8e=this['_getVidAttributeName'](_0x2ac3ce),_0x3dec9e=_0x2ac3ce['item']['getAttribute'](_0x109a8e);if(_0x750db6['has'](_0x3dec9e)){const _0x2d6d6a=_0x2ac3ce['item']['parent']['parent']['getAttribute']('vid_start'),_0x2191d4=_0x251cb2['get'](_0x2d6d6a)||new Set();_0x2191d4['add'](_0x750db6['get'](_0x3dec9e)['userId']),_0x251cb2['set'](_0x2d6d6a,_0x2191d4);}}_0x43c511=_0x1177c2['deletions'][_0x29998b];for(const _0xcc223 of _0x43c511)if(_0xcc223['item']['is']('element','tableCell')){const _0x331969=this['_getVidAttributeName'](_0xcc223),_0x288d83=_0xcc223['item']['getAttribute'](_0x331969);if(_0x2791f2['has'](_0x288d83)){const _0x4daf62=_0xcc223['item']['parent']['parent']['getAttribute']('vid_start'),_0x3a9c11=_0x251cb2['get'](_0x4daf62)||new Set();_0x3a9c11['add'](_0x2791f2['get'](_0x288d83)['userId']),_0x251cb2['set'](_0x4daf62,_0x3a9c11);}}for(const _0x3a55a0 of _0x251cb2['keys']())(_0x750db6['has'](_0x3a55a0)||_0x2791f2['has'](_0x3a55a0))&&_0x251cb2['delete'](_0x3a55a0);}for(const _0x27e6d3 of _0x540f12){const _0x44f1c2=_0x1177c2['insertions'][_0x27e6d3];let _0x306e0c=null,_0xc12f8c=null;for(const _0x5817d8 of _0x44f1c2){const _0x25aae1=this['_getVidAttributeName'](_0x5817d8),_0x1d0d00=_0x5817d8['item']['getAttribute'](_0x25aae1),_0x25bd37=_0x251cb2['get'](_0x1d0d00);_0x25bd37&&'elementStart'==_0x5817d8['type']&&(_0x306e0c=Array['from'](_0x25bd37)[0x0],_0xc12f8c=_0x5817d8['item']['getAttribute']('vid_end')),_0x306e0c&&(_0x2791f2['set'](_0x1d0d00,{'userId':_0x306e0c}),_0x750db6['set'](_0x1d0d00,{'userId':_0x306e0c})),_0x1d0d00==_0xc12f8c&&(_0x306e0c=null,_0xc12f8c=null);}}const _0x508231={},_0x289faa=new Set();for(const _0x4552f6 of _0x540f12){const _0x2e2c3d=_0x408c39['deletions'][_0x4552f6],_0x93c1b7=_0x408c39['insertions'][_0x4552f6];for(const {userId:_0x25139a}of this['_touchedMarkers']['values']())null!==_0x25139a&&_0x289faa['add'](_0x25139a);for(const {userId:_0x3d1956}of this['_touchedRoots']['values']())null!==_0x3d1956&&_0x289faa['add'](_0x3d1956);this['_markChanges'](_0x93c1b7,_0x1177c2['insertions'][_0x4552f6],_0x750db6,'insertion',_0x289faa),this['_markChanges'](_0x2e2c3d,_0x1177c2['deletions'][_0x4552f6],_0x2791f2,'deletion',_0x289faa),_0x508231[_0x4552f6]={'insertions':this['_prepareViewToSave'](_0x93c1b7),'deletions':this['_prepareViewToSave'](_0x2e2c3d),'attachChange':this['_touchedRoots']['get'](_0x4552f6)||null,'attributesBefore':_0x291192(this['_baseRootsAttributes']['get'](_0x4552f6))||{},'attributesAfter':_0x291192(this['_diffRootsAttributes']['get'](_0x4552f6))};}return{'diffData':_0x508231,'authorsIds':Array['from'](_0x289faa)};}['_processRootBeforeSave'](_0x47d56c){for(const [,_0x31cbd4]of _0x47d56c['markers']){const _0x56bbdc=_0x31cbd4['start']['getAncestors']()['filter'](_0x1b647e=>'tableCell'==_0x1b647e['name']);for(const _0x2eccfb of _0x56bbdc)0x1==_0x2eccfb['childCount']&&_0x2eccfb['getChild'](0x0)['is']('element','paragraph')&&_0x2eccfb['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5cd1e2){this['_processRootBeforeSave'](_0x5cd1e2);const _0x439d2a=this['editor']['data']['toView'](_0x5cd1e2,{}),_0x2d257e=Array['from'](_0x439d2a['getChildren']())['map'](_0x41e627=>this['_getViewJson'](_0x41e627));return JSON['stringify'](_0x2d257e);}['_getViewJson'](_0x54f009){if(_0x54f009['is']('$text'))return _0x54f009['data'];{const _0x2524f6=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x575645=_0x54f009,_0x5f46d2=this['editor']['data']['htmlProcessor']['domConverter'],_0x1b7726={'type':_0x2524f6['_getTypeCharForViewElement'](_0x575645),'name':_0x575645['name'],'attributes':Array['from'](_0x575645['getAttributes']()),'children':Array['from'](_0x575645['getChildren']())['map'](_0x42a568=>this['_getViewJson'](_0x42a568))};if(_0x54f009['is']('uiElement')&&'$comment'!=_0x54f009['name']){const _0x430639=_0x54f009['render'](_0x5f46d2['domDocument'],_0x5f46d2);_0x1b7726['children']['push'](_0x430639['outerHTML']);}else{if(_0x54f009['is']('rawElement')){const _0x5ee5b2=_0x5f46d2['domDocument']['createElement'](_0x575645['name']);_0x54f009['render'](_0x5ee5b2,_0x5f46d2),_0x1b7726['children']['push'](_0x5ee5b2['innerHTML']);}}const _0x5f30a6=Array['from'](_0x575645['getCustomProperties']());_0x5f30a6['length']>0x0&&(_0x1b7726['customProperties']=_0x5f30a6);const _0x47cec5=_0x575645['getFillerOffset']();return null!==_0x47cec5&&(_0x1b7726['fillerOffset']=_0x47cec5),_0x1b7726;}}['_markChanges'](_0x52307a,_0x3c7bdb,_0x3b9459,_0x32248c,_0x4103e7){let _0x2acc28=null,_0x49c987=null,_0x5c14c9=0x0;const _0x1968da=this['editor']['model'];for(let _0x257fd9=0x0;_0x257fd9<_0x3c7bdb['length'];_0x257fd9++){const _0x59b3d0=this['_getVidAttributeName'](_0x3c7bdb[_0x257fd9]),_0x5d8794=_0x3c7bdb[_0x257fd9]['item']['getAttribute'](_0x59b3d0),_0x3ff451=_0x3b9459['get'](_0x5d8794),_0x3f4dd4=_0x257fd9==_0x3c7bdb['length']-0x1;(!_0x2acc28&&_0x3ff451&&(_0x2acc28=_0x3ff451,_0x49c987=_0x3c7bdb[_0x257fd9]),_0x2acc28&&(!_0x3ff451||_0x3ff451['userId']!=_0x2acc28['userId']))&&(_0x341a7d(_0x3ff451,P(_0x49c987,_0x52307a,_0x1968da),P(_0x3c7bdb[_0x257fd9],_0x52307a,_0x1968da)),_0x2acc28=_0x3ff451||null,_0x49c987=_0x3ff451?_0x3c7bdb[_0x257fd9]:null),_0x2acc28&&_0x3f4dd4&&_0x341a7d(_0x3ff451,P(_0x49c987,_0x52307a,_0x1968da),V(_0x3c7bdb[_0x257fd9],_0x52307a,_0x1968da));}function _0x341a7d(_0x3246c8,_0x26d683,_0x47b155){const _0x3272a0=_0x2acc28['userId'],_0xb21d03='revision:'+_0x32248c+':'+_0x3272a0+':'+_0x5c14c9++,_0x4bb63c=_0x1968da['createRange'](_0x26d683,_0x47b155);_0x52307a['markers']['set'](_0xb21d03,_0x4bb63c),null!==_0x3272a0&&_0x4103e7['add'](_0x3272a0);}}['_getVidAttributeName'](_0x45f3cc){switch(_0x45f3cc['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x54e51b,_0x45ad48){_0x54e51b['baseVersion']=null;for(const _0x8e7788 in _0x54e51b){const _0x43be72=_0x54e51b[_0x8e7788];if(_0x43be72 instanceof _0x4b2e20){const _0x2a761c=_0x45ad48['get'](_0x43be72['root']['rootName']);_0x54e51b[_0x8e7788]=this['_fixPosition'](_0x43be72,_0x2a761c);}if(_0x43be72 instanceof _0x5671c9){const _0x3b9d07=_0x45ad48['get'](_0x43be72['root']['rootName']);_0x54e51b[_0x8e7788]=this['_fixRange'](_0x43be72,_0x3b9d07);}'root'===_0x8e7788&&(_0x54e51b['root']=_0x45ad48['get'](_0x54e51b['root']['rootName']));}}['_fixRange'](_0x42d573,_0x2361d7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x42d573['start'],_0x2361d7),this['_fixPosition'](_0x42d573['end'],_0x2361d7));}['_fixPosition'](_0x2bcc79,_0x400957){return this['editor']['model']['createPositionFromPath'](_0x400957,_0x2bcc79['path'],_0x2bcc79['stickiness']);}['_handleInsertOperation'](_0x211082){const _0x582d6a=this['_idsRoots']['get'](_0x211082['position']['root']['rootName']),_0x4accf7=this['_fixPosition'](_0x211082['position'],_0x582d6a),_0x3df781=null===_0x211082['_authorId']?null:_0x211082['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e3732=_0x4accf7['parent'],_0x56528b=this['_revisionId'],_0x28d060=[];for(const _0x237a99 of _0x211082['nodes'])if(_0x237a99['is']('element'))_0x28d060['push'](this['_makeIdsRoot'](_0x237a99));else{for(let _0x5c152e=0x0;_0x5c152e<_0x237a99['offsetSize'];_0x5c152e++)_0x28d060['push'](new _0x99735e('$text',{'vid':this['_revisionId']++}));}const _0x2fcf8e=this['_revisionId'];for(let _0x4ad2c2=_0x56528b;_0x4ad2c2<_0x2fcf8e;_0x4ad2c2++)this['_touched']['set'](_0x4ad2c2,{'userId':_0x3df781});_0x4e3732['_insertChild'](_0x4accf7['offset'],_0x28d060);}['_handleMoveOperation'](_0x470a4f){(_0x470a4f=this['_cloneOperation'](_0x470a4f,this['_idsRoots']))['_execute']();const _0x2262c7=null===_0x470a4f['_authorId']?null:_0x470a4f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f2352=_0x470a4f['getMovedRangeStart'](),_0x4ce627=_0x3f2352['parent'],_0x1a7905=_0x3f2352['offset'];!function _0x40785c(_0x1050b3,_0x129d31,_0xc66c7b,_0x2d3540){for(let _0x11942f=_0xc66c7b;_0x11942f<_0x2d3540;_0x11942f++){const _0x4fdfcc=_0x129d31['getChild'](_0x11942f);_0x4fdfcc['is']('element','$text')?_0x1050b3['set'](_0x4fdfcc['getAttribute']('vid'),{'userId':_0x2262c7}):(_0x1050b3['set'](_0x4fdfcc['getAttribute']('vid_start'),{'userId':_0x2262c7}),_0x40785c(_0x1050b3,_0x4fdfcc,0x0,_0x4fdfcc['childCount']),_0x1050b3['set'](_0x4fdfcc['getAttribute']('vid_end'),{'userId':_0x2262c7}));}}(this['_touched'],_0x4ce627,_0x1a7905,_0x1a7905+_0x470a4f['howMany']);}['_handleMergeOperation'](_0x3c6b03){const _0xf55fd8=null===(_0x3c6b03=this['_cloneOperation'](_0x3c6b03,this['_idsRoots']))['_authorId']?null:_0x3c6b03['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3e9e12=_0x3c6b03['targetPosition']['parent'],_0x557a4d=_0x3c6b03['sourcePosition']['parent'],_0x9705a6=_0x3e9e12['getAttribute']('vid_end'),_0x184df1=_0x557a4d['getAttribute']('vid_start');_0x3e9e12['_setAttribute']('vid_end',_0x557a4d['getAttribute']('vid_end')),_0x557a4d['_setAttribute']('vid_end',_0x9705a6),this['_touched']['set'](_0x184df1,{'userId':_0xf55fd8}),this['_touched']['set'](_0x9705a6,{'userId':_0xf55fd8}),_0x3c6b03['_execute']();}['_handleSplitOperation'](_0x54ada9){const _0xcef8b5=null===(_0x54ada9=this['_cloneOperation'](_0x54ada9,this['_idsRoots']))['_authorId']?null:_0x54ada9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe3ac1c=_0x54ada9['graveyardPosition'],_0xbfce6=_0x54ada9['splitPosition']['parent'];_0x54ada9['_execute']();const _0x4188fa=_0xbfce6['getAttribute']('vid_end'),_0x49800e=_0x54ada9['insertionPosition']['nodeAfter'];if(_0xe3ac1c){const _0xe624a1=_0x49800e['getAttribute']('vid_end'),_0xb5d6e7=_0xbfce6['getAttribute']('vid_end');_0xbfce6['_setAttribute']('vid_end',_0xe624a1),_0x49800e['_setAttribute']('vid_end',_0xb5d6e7),this['_touched']['set'](_0xbfce6['getAttribute']('vid_end'),{'userId':_0xcef8b5}),this['_touched']['set'](_0x49800e['getAttribute']('vid_start'),{'userId':_0xcef8b5});}else{const _0x36ac88=this['_revisionId']++,_0x361707=this['_revisionId']++;_0xbfce6['_setAttribute']('vid_end',_0x36ac88),_0x49800e['_setAttribute']('vid_start',_0x361707),_0x49800e['_setAttribute']('vid_end',_0x4188fa),this['_touched']['set'](_0x36ac88,{'userId':_0xcef8b5}),this['_touched']['set'](_0x361707,{'userId':_0xcef8b5});}}['_handleMarkerOperation'](_0x59ee8a){if(!_0x59ee8a['affectsData'])return;const _0x3dbc9d=(_0x59ee8a=this['_cloneOperation'](_0x59ee8a,this['_diffRoots']))['oldRange']?_0x59ee8a['oldRange']['root']:null,_0x1e6e98=_0x59ee8a['newRange']?_0x59ee8a['newRange']['root']:null;_0x3dbc9d&&this['_markers']['delete'](_0x59ee8a['name']),_0x1e6e98&&this['_markers']['set'](_0x59ee8a['name'],_0x59ee8a['newRange']['clone']());const _0x338421=null===_0x59ee8a['_authorId']?null:_0x59ee8a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36b4b3=_0x59ee8a['name'];if(!this['_touchedMarkers']['has'](_0x36b4b3))return void this['_touchedMarkers']['set'](_0x36b4b3,{'range':_0x59ee8a['oldRange'],'userId':_0x338421});const _0x4f793b=this['_touchedMarkers']['get'](_0x36b4b3),_0x33142e=_0x4f793b['range'],_0x25e067=_0x59ee8a['newRange'];null==_0x33142e&&null==_0x25e067||_0x33142e&&_0x25e067&&_0x33142e['isEqual'](_0x25e067)?this['_touchedMarkers']['delete'](_0x59ee8a['name']):_0x4f793b['userId']=_0x338421;}['_handleRootOperation'](_0x1a1866,_0x79fbdf){this['_diffRoots']['has'](_0x1a1866['rootName'])?this['_diffRoots']['get'](_0x1a1866['rootName'])['_isAttached']=_0x1a1866['isAdd']:(this['_diffRoots']['set'](_0x1a1866['rootName'],N(_0x1a1866['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1a1866['rootName'],{}),_0x79fbdf&&this['_idsRoots']['set'](_0x1a1866['rootName'],N(_0x1a1866['rootName'],!0x0)));const _0x3842d7=null===_0x1a1866['_authorId']?null:_0x1a1866['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f8798=this['_touchedRoots']['get'](_0x1a1866['rootName']);_0x3f8798&&_0x3f8798['userId']===_0x3842d7?this['_touchedRoots']['delete'](_0x1a1866['rootName']):this['_touchedRoots']['set'](_0x1a1866['rootName'],{'userId':_0x3842d7,'isAttached':_0x1a1866['isAdd']});}['_handleRootAttributeOperation'](_0x469445){const _0x527715=this['_diffRootsAttributes']['get'](_0x469445['root']['rootName']);null===_0x469445['newValue']?delete _0x527715[_0x469445['key']]:_0x527715[_0x469445['key']]=_0x469445['newValue'];}}function x(_0x4b3a66){const _0x366eab=N(_0x4b3a66['rootName'],_0x4b3a66['isAttached']());for(const _0x4298e5 of _0x4b3a66['getChildren']()){const _0x5ee4ca=_0x4298e5['_clone'](!0x0);_0x366eab['_appendChild'](_0x5ee4ca);}return _0x366eab;}function N(_0x5641db,_0x384f12=!0x0){const _0x174da0=new _0xecbb41();return _0x174da0['rootName']=_0x5641db,_0x174da0['_isAttached']=_0x384f12,_0x174da0['isAttached']=()=>_0x174da0['_isAttached'],_0x174da0;}function P(_0x3e2967,_0x384bac,_0x4a5146){const _0x27952a='elementEnd'==_0x3e2967['type']?_0x4a5146['createPositionAt'](_0x3e2967['item'],'end'):_0x4a5146['createPositionBefore'](_0x3e2967['item']);return _0x4a5146['createPositionFromPath'](_0x384bac,_0x27952a['path'],_0x27952a['stickiness']);}function V(_0x408d4f,_0x2d5527,_0x1e4c16){const _0x39da20='elementStart'==_0x408d4f['type']?_0x1e4c16['createPositionAt'](_0x408d4f['item'],0x0):_0x1e4c16['createPositionAfter'](_0x408d4f['item']);return _0x1e4c16['createPositionFromPath'](_0x2d5527,_0x39da20['path'],_0x39da20['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x5e85d7(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3af5d6){super(),this['id']=_0x3af5d6['id']||_0x4c943c(),this['author']=_0x3af5d6['author'],this['type']=_0x3af5d6['type'],this['data']=_0x3af5d6['data']||{},this['rootName']=_0x3af5d6['rootName'],this['set']('createdAt',_0x3af5d6['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(_0x85d9e3,_0x4c86b4){this['newRevisionId']=_0x85d9e3,this['oldRevisionId']=_0x4c86b4,this['changes']=new _0x28ccb6();}['_setChanges'](_0x5e294d){for(const _0x2cbf9e of _0x5e294d)this['changes']['add'](_0x2cbf9e);}}class l extends _0xc698e3{['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[_0x58c107,_0x304943,S,$];}constructor(_0x5e1eb6){super(_0x5e1eb6),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',(_0x5029e9,_0xa4a5cc,_0x425695)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x144156=>{for(const _0x3fd770 of this['editor']['editing']['view']['document']['roots'])_0x425695?_0x144156['removeClass']('ck-editor__editable__overlay',_0x3fd770):_0x144156['addClass']('ck-editor__editable__overlay',_0x3fd770);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4bd055=>null!==_0x4bd055),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2b39d6,_0x3c4425,_0x5a7028)=>_0x2b39d6&&_0x5a7028?_0x3c4425['changes']['getIndex'](_0x5a7028):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2715cf,_0x1aa2da)=>_0x2715cf?_0x1aa2da['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x304943);}['init'](){const _0x395671=this['editor'],_0x5f01f2=new rt(_0x395671,{'direction':'backward'}),_0x29d2fb=new rt(_0x395671,{'direction':'forward'});(_0x395671['commands']['add']('showPreviousChange',_0x5f01f2),_0x395671['commands']['add']('showNextChange',_0x29d2fb),_0x395671['commands']['add']('restoreRevision',new nt(_0x395671)),this['on']('change:numberOfChanges',()=>{_0x5f01f2['refresh'](),_0x29d2fb['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x395671['enableReadOnlyMode']('revision-viewer'),_0x395671['plugins']['has']('WidgetToolbarRepository'))&&_0x395671['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x303103){return await this['_utils']['loadRevisionData'](_0x303103,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x303103);}async['getRevisionRootsAttributes'](_0x296674){return await this['_utils']['loadRevisionData'](_0x296674,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x296674);}async['compare'](_0x17c165,_0x351d64,_0x5bef7e=!0x1){if(!this['isEnabled'])return;const _0x34a3d1=this['diff'],_0x35e5b2=this['repository'],_0x4ab360='string'==typeof _0x17c165?_0x35e5b2['getRevision'](_0x17c165):_0x17c165,_0x505202='string'==typeof _0x351d64?_0x35e5b2['getRevision'](_0x351d64):_0x351d64,_0x5c55d7=_0x4ab360['id'],_0x11b4f6=_0x505202?_0x505202['id']:null;if(!_0x5bef7e&&this['diff']&&this['diff']['newRevisionId']===_0x5c55d7&&this['diff']['oldRevisionId']===_0x11b4f6)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x5c55d7,_0x11b4f6);const _0x322adb=this['_getRevisionsRange'](_0x4ab360,_0x505202,!0x0)['map'](_0x56430c=>this['_utils']['loadRevisionData'](_0x56430c,this['adapter']));return _0x322adb['push'](new Promise(_0xa780f8=>{setTimeout(_0xa780f8,0x14);})),Promise['all'](_0x322adb)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3603e3=this['_getDiff'](_0x5c55d7,_0x11b4f6);for(const _0x48bbf9 of _0x3603e3['changes'])this['_changeIdToChange']['set'](_0x48bbf9['id'],_0x48bbf9);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x554921=>{for(const _0x23eedd of this['editor']['model']['document']['getRootNames']())_0x554921['detachRoot'](_0x23eedd);for(const _0x5880b7 of Object['keys'](_0x3603e3['model'])){const _0x25890b=_0x554921['addRoot'](_0x5880b7);for(const _0x4ed3ae of Object['keys'](_0x3603e3['attributes'][_0x5880b7]))_0x554921['setAttribute'](_0x4ed3ae,_0x3603e3['attributes'][_0x5880b7][_0x4ed3ae],_0x25890b);_0x554921['insert'](_0x3603e3['model'][_0x5880b7],_0x25890b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3603e3['changes'])),this['isReady']=!0x0;})['catch'](_0x175024=>{console['error'](_0x175024),this['_cleanUp'](),_0x34a3d1&&(this['diff']=_0x34a3d1),this['isReady']=!0x0;});}['addRevisionData'](_0x5134c8,_0x22034f){const _0x1a0737=this['repository']['createRevision'](_0x5134c8);return _0x1a0737['on']('_update',(_0x4f3123,_0x29a240,_0x5b86d6)=>_0x22034f(_0x29a240,_0x5b86d6,_0x1a0737)),this['repository']['addRevision'](_0x1a0737),_0x1a0737;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1abb5d=>{for(const _0xd00b5b of this['editor']['model']['document']['getRootNames']())_0x1abb5d['detachRoot'](_0xd00b5b);});}['_sortAndFilterDiffChanges'](_0xe3dcad){const _0x337cf2=[],_0x36c27d=new Map();for(const _0x5bc0ac of this['editor']['model']['document']['getRootNames']()){const _0x258456=this['editor']['editing']['view']['getDomRoot'](_0x5bc0ac);if(!_0x258456)continue;const _0x11173c=_0x258456['getClientRects']()['item'](0x0);_0x11173c&&(_0x337cf2['push'](_0x5bc0ac),_0x36c27d['set'](_0x5bc0ac,_0x11173c));}return _0x337cf2['sort']((_0xe8257,_0x446344)=>{const _0x3a1783=_0x36c27d['get'](_0xe8257),_0x3b48d1=_0x36c27d['get'](_0x446344);return _0x3a1783['y']-_0x3b48d1['y']||_0x3a1783['x']-_0x3b48d1['x'];}),(_0xe3dcad=_0xe3dcad['filter'](_0x507755=>_0x337cf2['includes'](_0x507755['rootName'])))['sort']((_0x4b3ff3,_0x2f5bf6)=>_0x337cf2['indexOf'](_0x4b3ff3['rootName'])-_0x337cf2['indexOf'](_0x2f5bf6['rootName'])),_0xe3dcad;}['_makeTape'](_0x1b012d){const _0x39d444=Array['from'](_0x1b012d['markers'])['filter'](([_0x1d46dd,_0xc12d68])=>_0x1d46dd['startsWith']('revision:')&&!_0xc12d68['isCollapsed']),_0x5008b2=Array['from'](this['editor']['model']['createRangeIn'](_0x1b012d)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x39d444['length'])for(const _0x13654a of _0x5008b2){const [_0x15d69a,_0x34ab29]=_0x39d444[0x0],[,_0x24b6e2,_0x2dd47c]=_0x15d69a['split'](':');if(_0x34ab29['end']['isEqual'](_0x13654a['nextPosition'])&&_0x39d444['shift'](),(_0x13654a['previousPosition']['isEqual'](_0x34ab29['start'])||_0x13654a['previousPosition']['isAfter'](_0x34ab29['start']))&&('insertion'==_0x24b6e2?_0x13654a['isAdded']={'userId':_0x2dd47c}:'deletion'==_0x24b6e2&&(_0x13654a['isRemoved']={'userId':_0x2dd47c})),0x0==_0x39d444['length'])break;}return _0x5008b2;}['_refreshStartEndIndex'](_0x56f50d){const _0x5b9c35=new Map();for(let _0x3d0206=0x0;_0x3d0206<_0x56f50d['length'];_0x3d0206++)'text'===_0x56f50d[_0x3d0206]['type']?(_0x56f50d[_0x3d0206]['item']['startIndex']=_0x3d0206,_0x56f50d[_0x3d0206]['item']['endIndex']=_0x3d0206):('elementStart'===_0x56f50d[_0x3d0206]['type']?_0x56f50d[_0x3d0206]['item']['startIndex']=_0x3d0206:'elementEnd'===_0x56f50d[_0x3d0206]['type']&&(_0x56f50d[_0x3d0206]['item']['endIndex']=_0x3d0206),_0x5b9c35['set'](_0x56f50d[_0x3d0206]['id'],_0x3d0206));for(const _0x1070e0 of _0x5b9c35['values']())'elementStart'===_0x56f50d[_0x1070e0]['type']?_0x56f50d[_0x1070e0]['item']['endIndex']=_0x5b9c35['get'](_0x56f50d[_0x1070e0]['pairId']):'elementEnd'===_0x56f50d[_0x1070e0]['type']&&(_0x56f50d[_0x1070e0]['item']['startIndex']=_0x5b9c35['get'](_0x56f50d[_0x1070e0]['pairId']));}['_processTape'](_0x4df2cd){for(let _0x446444=0x0;_0x446444<_0x4df2cd['length'];_0x446444++){if('elementStart'===_0x4df2cd[_0x446444]['type'])_0x4df2cd[_0x446444]['item']['startIndex']=_0x446444;else{if('elementEnd'===_0x4df2cd[_0x446444]['type']){_0x4df2cd[_0x446444]['item']['endIndex']=_0x446444;const _0x4d9602=_0x4df2cd[_0x446444]['item']['startIndex'];_0x4df2cd[_0x4d9602]['pairId']=_0x4df2cd[_0x446444]['id'],_0x4df2cd[_0x446444]['pairId']=_0x4df2cd[_0x4d9602]['id'];}else _0x4df2cd[_0x446444]['item']['startIndex']=_0x446444,_0x4df2cd[_0x446444]['item']['endIndex']=_0x446444,_0x4df2cd[_0x446444]['pairId']=null;}_0x4df2cd[_0x446444]['markersStart']||(_0x4df2cd[_0x446444]['markersStart']=[],_0x4df2cd[_0x446444]['markersEnd']=[]);}}['_markInsertions'](_0x427c67,_0x185876){const _0x3e70e6=_0x427c67['filter'](_0x46a790=>!_0x46a790['isAdded']);for(let _0x569067=0x0;_0x569067<_0x185876['length'];_0x569067++)_0x185876[_0x569067]['isAdded']&&(_0x3e70e6[_0x569067]['isAdded']=_0x185876[_0x569067]['isAdded']);}['_getDiff'](_0x1b8aeb,_0x296bcb=null){const _0x531b9f=this['repository']['getRevision'](_0x1b8aeb),_0x4bce1f=_0x296bcb?this['repository']['getRevision'](_0x296bcb):null,_0x5a0941=this['_getRevisionsRange'](_0x531b9f,_0x4bce1f),_0xae6f80=_0x5a0941[_0x5a0941['length']-0x1],_0x259348=new Map(),_0x446c62={'model':{},'attributes':{},'changes':[]},_0x1436c2=new Set(),_0x44c4d3=new Map();for(let _0x5d81e2=_0x5a0941['length']-0x1;_0x5d81e2>=0x0;_0x5d81e2--){const _0x56e772=_0x5a0941[_0x5d81e2];for(const _0x12ff21 of Object['keys'](_0x56e772['diffData']))if(_0x56e772['diffData'][_0x12ff21]['attachChange']){const _0x541648=_0x56e772['diffData'][_0x12ff21]['attachChange'];_0x541648['isAttached']?(_0x1436c2['add'](_0x12ff21),_0x44c4d3['has'](_0x12ff21)&&_0x44c4d3['get'](_0x12ff21)['userId']==_0x541648['userId']?_0x44c4d3['delete'](_0x12ff21):_0x44c4d3['set'](_0x12ff21,_0x541648)):_0x44c4d3['has'](_0x12ff21)?(_0x1436c2['delete'](_0x12ff21),_0x44c4d3['delete'](_0x12ff21)):(_0x1436c2['add'](_0x12ff21),_0x44c4d3['set'](_0x12ff21,_0x541648));}else _0x1436c2['add'](_0x12ff21);}for(const _0x3d1845 of _0x1436c2){const _0x40345a=_0x44c4d3['has'](_0x3d1845)&&!_0x44c4d3['get'](_0x3d1845)['isAttached'];let _0x3b900f=_0x40345a?_0x5a0941['length']-0x1:0x0;const _0x2cd560=_0x40345a?-0x1:0x1;for(;_0x5a0941[_0x3b900f];){const _0x59fa08=_0x5a0941[_0x3b900f];if(_0x59fa08['diffData'][_0x3d1845]){const _0x1dbce2=_0x40345a?_0x59fa08['diffData'][_0x3d1845]['attributesBefore']:_0x59fa08['diffData'][_0x3d1845]['attributesAfter'];_0x446c62['attributes'][_0x3d1845]=_0x1dbce2?_0x291192(_0x1dbce2):{};break;}_0x3b900f+=_0x2cd560;}}for(const _0x5e336a of _0x5a0941){_0x5e336a['model']={};for(const _0x3084ed of _0x5e336a['authors'])_0x259348['set'](_0x3084ed['id'],_0x3084ed);for(const _0x22bcda of _0x1436c2){const _0x4b027a=_0x5e336a['diffData'][_0x22bcda]?_0x5e336a['diffData'][_0x22bcda]['insertions']:'[]',_0x273cf4=_0x5e336a['diffData'][_0x22bcda]?_0x5e336a['diffData'][_0x22bcda]['deletions']:'[]';_0x5e336a['model'][_0x22bcda]={'insertions':this['_utils']['_makeModelFromViewString'](_0x4b027a),'deletions':this['_utils']['_makeModelFromViewString'](_0x273cf4)};}}for(const _0x108d5f of _0x1436c2){let _0x18428b=null,_0x133f1e=0x0;const _0x383539=new Map(Array['from'](_0x531b9f['model'][_0x108d5f]['insertions']['markers'])['filter'](([_0x4426a1])=>!_0x4426a1['startsWith']('revision:')));let _0x1b5e0e=0x0;for(const _0x44f86d of _0x5a0941){const _0x5407ae=this['_makeTape'](_0x44f86d['model'][_0x108d5f]['insertions']);_0x44f86d==_0x531b9f?(_0x18428b=_0x5407ae,_0x133f1e=_0x18428b['length'],_0x18428b['forEach'](_0x299318=>{_0x299318['id']=_0x1b5e0e++;}),this['_processTape'](_0x18428b)):this['_markInsertions'](_0x18428b,_0x5407ae);const _0x20334e=_0x18428b['filter'](_0x9f0fba=>!_0x9f0fba['isAdded'])['map'](_0xa9f416=>_0xa9f416['id']);let _0x1339b5=0x0;const _0x58b8ef=this['_makeTape'](_0x44f86d['model'][_0x108d5f]['deletions']);_0x58b8ef['forEach'](_0x5a234f=>{_0x5a234f['isRemoved']?_0x5a234f['id']=_0x133f1e++:_0x5a234f['id']=_0x20334e[_0x1339b5++];}),this['_processTape'](_0x58b8ef),this['_setDistance'](_0x18428b,'isAdded'),this['_setDistance'](_0x58b8ef,'isRemoved'),_0x44f86d==_0x531b9f&&this['_markMarkers'](_0x18428b,_0x383539),_0x18428b=this['_joinTapes'](_0x18428b,_0x58b8ef),this['_refreshStartEndIndex'](_0x18428b),this['_setDistance'](_0x18428b,'isRemoved');}_0x18428b=_0x18428b['filter'](_0x34cbfd=>!(_0x34cbfd['isAdded']&&_0x34cbfd['isRemoved']));const _0x5b90a3=new Map(_0xae6f80['model'][_0x108d5f]['deletions']['markers']),_0x280398=new Set(_0x383539['keys']());for(const _0x2cdf7d of _0x5b90a3['keys']())_0x280398['delete'](_0x2cdf7d);this['_markSuggestions'](_0x18428b,_0x280398),this['_fixObsoleteTags'](_0x18428b),_0x18428b=this['_removeMissingPairs'](_0x18428b),_0x18428b=this['_markMismatchedRemovedTags'](_0x18428b),_0x18428b=this['_removeUnsupportedChanges'](_0x18428b);const {root:_0x393de2,changes:_0x50cd2a}=this['_makeModelFromTape'](_0x18428b,_0x259348,_0x108d5f);_0x446c62['model'][_0x108d5f]=_0x393de2;const _0x1653e9=_0x44c4d3['get'](_0x108d5f);if(_0x1653e9){const _0x515bfb=_0x259348['get'](_0x1653e9['userId']),_0xca3796=new G({'author':_0x515bfb,'type':_0x1653e9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x108d5f});_0x50cd2a['unshift'](_0xca3796),_0x446c62['attributes'][_0x108d5f]['revisionHistoryAttachChange']=_0xca3796['id'];}_0x446c62['changes']=_0x446c62['changes']['concat'](_0x50cd2a);}return _0x446c62;}['_markMarkers'](_0x56a4f6,_0x4df7dc){for(let _0x17abe9=0x0;_0x17abe9<_0x56a4f6['length'];_0x17abe9++)for(const [_0x149889,_0x8f254e]of _0x4df7dc)!_0x8f254e['isCollapsed']&&_0x8f254e['start']['isEqual'](_0x56a4f6[_0x17abe9]['previousPosition'])&&_0x56a4f6[_0x17abe9]['markersStart']['push'](_0x149889),_0x8f254e['end']['isEqual'](_0x56a4f6[_0x17abe9]['nextPosition'])&&_0x56a4f6[_0x17abe9]['markersEnd']['push'](_0x149889);}['_joinTapes'](_0x13faa5,_0x4cef7d){let _0xf30c8d=[],_0xdd10fe=0x0,_0x5e7253=0x0;for(;_0xdd10fe<_0x13faa5['length']||_0x5e7253<_0x4cef7d['length'];){const _0xbe01e=_0x13faa5[_0xdd10fe]||{},_0x2d3d0b=_0x4cef7d[_0x5e7253]||{};if(_0xbe01e['id']==_0x2d3d0b['id'])_0xdd10fe++,_0x5e7253++,_0xf30c8d['push'](_0xbe01e);else{if(_0x2d3d0b['isRemoved']&&_0xbe01e['isAdded']){const {commonTape:_0x297f09,iEnd:_0x9cac90,jEnd:_0x1d432a}=this['_threeWayMerge'](_0x13faa5,_0xdd10fe,_0x4cef7d,_0x5e7253);_0xf30c8d=_0xf30c8d['concat'](_0x297f09),_0xdd10fe=_0x9cac90,_0x5e7253=_0x1d432a;}else _0x2d3d0b['isRemoved']?(_0x5e7253++,_0xf30c8d['push'](_0x2d3d0b)):(_0xdd10fe++,_0xf30c8d['push'](_0xbe01e));}}return _0xf30c8d;}['_markSuggestions'](_0x5fd31e,_0x2c3fcd){const _0x5f3d0e=[];for(let _0x41c1b6=0x0;_0x41c1b6<_0x5fd31e['length'];_0x41c1b6++){for(let _0x879d2e=0x0;_0x879d2e<_0x5fd31e[_0x41c1b6]['markersStart']['length'];_0x879d2e++){const _0xc67875=_0x5fd31e[_0x41c1b6]['markersStart'][_0x879d2e];if(!_0x2c3fcd['has'](_0xc67875))continue;const {group:_0x37baa2,type:_0x11d04d,authorId:_0xee1d1e}=_0x526d32(_0xc67875);'revision-suggestion'!=_0x37baa2||'insertion'!=_0x11d04d&&'deletion'!=_0x11d04d||(_0x5f3d0e['unshift']({'type':_0x11d04d,'name':_0xc67875,'userId':_0xee1d1e}),_0x5fd31e[_0x41c1b6]['markersStart']['splice'](_0x879d2e,0x1),_0x879d2e--);}_0x469664(_0x5fd31e[_0x41c1b6]);for(let _0x5d7c9c=0x0;_0x5d7c9c<_0x5fd31e[_0x41c1b6]['markersEnd']['length'];_0x5d7c9c++){const _0x521cfe=_0x5fd31e[_0x41c1b6]['markersEnd'][_0x5d7c9c];if(!_0x2c3fcd['has'](_0x521cfe))continue;const {group:_0x1ce91a,type:_0x2069a1}=_0x526d32(_0x521cfe);if('revision-suggestion'!=_0x1ce91a||'insertion'!=_0x2069a1&&'deletion'!=_0x2069a1)continue;_0x5fd31e[_0x41c1b6]['markersEnd']['splice'](_0x5d7c9c,0x1),_0x5d7c9c--;const _0x4c39be=_0x5f3d0e['findIndex'](_0x1177cd=>_0x1177cd['name']==_0x521cfe);_0x4c39be>-0x1&&_0x5f3d0e['splice'](_0x4c39be,0x1);}}function _0x526d32(_0x5b963f){const _0xc3e11f=_0x5b963f['split'](':');return{'group':_0xc3e11f[0x0],'type':_0xc3e11f[0x1],'subType':_0xc3e11f['length']>=0x5?_0xc3e11f[0x2]:null,'id':_0xc3e11f['length']<0x5?_0xc3e11f[0x2]:_0xc3e11f[0x3],'authorId':_0xc3e11f['length']<0x5?_0xc3e11f[0x3]:_0xc3e11f[0x4],'markerCount':0x6==_0xc3e11f['length']?_0xc3e11f[0x5]:null};}function _0x469664(_0x531a17){for(let _0xd1c015=0x0;_0xd1c015<_0x5f3d0e['length'];_0xd1c015++){if(_0x531a17['isAdded']&&'insertion'==_0x5f3d0e[_0xd1c015]['type']&&_0x531a17['isAdded']['userId']==_0x5f3d0e[_0xd1c015]['userId'])return _0x531a17['isAddSuggestion']=_0x5f3d0e[_0xd1c015],void delete _0x531a17['isAdded'];if(!_0x531a17['isAdded']&&!_0x531a17['isRemoved']&&'deletion'==_0x5f3d0e[_0xd1c015]['type'])return void(_0x531a17['isRemoveSuggestion']=_0x5f3d0e[_0xd1c015]);}}}['_setDistance'](_0x1cf6ce,_0x1003f6){let _0x1f1765=0x0,_0x2ad832=!0x1;const _0x2e4d28=new Map();for(const _0x4e947c of _0x1cf6ce)_0x4e947c[_0x1003f6]?_0x2ad832&&(_0x1f1765++,_0x2ad832=!0x1):(_0x1f1765++,_0x2ad832=!0x0),_0x2e4d28['set'](_0x4e947c['id'],_0x1f1765);for(let _0x171d2d=0x0;_0x171d2d<_0x1cf6ce['length'];_0x171d2d++){if('isRemoved'==_0x1003f6&&_0x1cf6ce[_0x171d2d]['isAdded']||'isAdded'==_0x1003f6&&_0x1cf6ce[_0x171d2d]['isRemoved'])continue;if('text'==_0x1cf6ce[_0x171d2d]['type']){_0x1cf6ce[_0x171d2d]['distance']=0x0;continue;}const _0x539c58=_0x2e4d28['get'](_0x1cf6ce[_0x171d2d]['pairId']),_0x3137ad=_0x2e4d28['get'](_0x1cf6ce[_0x171d2d]['id']);_0x1cf6ce[_0x171d2d]['distance']=_0x539c58-_0x3137ad;}}['_getRevisionsRange'](_0x3573ce,_0x5d39bf,_0x5c9800=!0x1){const _0x5908bf=[];let _0x5d5594=this['repository']['getIndex'](_0x3573ce),_0x43ef21=this['repository']['getIndex'](_0x5d39bf);for(-0x1==_0x43ef21&&(_0x43ef21=this['repository']['_revisions']['length'],_0x5c9800=!0x1);_0x5d5594<_0x43ef21;)_0x5908bf['push'](this['repository']['getRevision'](_0x5d5594)),_0x5d5594++;return _0x5c9800&&_0x5908bf['push'](this['repository']['getRevision'](_0x5d5594)),_0x5908bf;}['_threeWayMerge'](_0x34c251,_0x202900,_0x29203d,_0x3bc039){const _0x51541c=this['editor']['model']['schema'];let _0x175b4c=_0x202900;for(;_0x34c251[_0x175b4c]&&_0x34c251[_0x175b4c]['isAdded'];)_0x175b4c++;let _0x157141=_0x3bc039;for(;_0x29203d[_0x157141]&&_0x29203d[_0x157141]['isRemoved'];)_0x157141++;_0x3a6259(_0x34c251,_0x202900,_0x175b4c),_0x3a6259(_0x29203d,_0x3bc039,_0x157141);const _0x46a541=_0x29203d['slice'](_0x3bc039,_0x157141)['concat'](_0x34c251['slice'](_0x202900,_0x175b4c));return _0x46a541['sort']((_0x13fb27,_0xb5f941)=>_0x13fb27['side']!=_0xb5f941['side']?_0x13fb27['side']-_0xb5f941['side']:_0x13fb27['level']!=_0xb5f941['level']?_0x13fb27['level']-_0xb5f941['level']:_0x13fb27['distance']!=_0xb5f941['distance']?_0xb5f941['distance']-_0x13fb27['distance']:!!_0x13fb27['isAdded']!=!!_0xb5f941['isAdded']?-0x1==_0x13fb27['side']||0x0==_0x13fb27['side']?_0x13fb27['isAdded']?-0x1:0x1:_0x13fb27['isAdded']?0x1:-0x1:_0x13fb27['index']-_0xb5f941['index']),{'commonTape':_0x46a541,'iEnd':_0x175b4c,'jEnd':_0x157141};function _0x3a6259(_0x1483ad,_0x4f72dc,_0x5555e3){let _0x30fe77=-0x1,_0x1f1d69=Number['POSITIVE_INFINITY'],_0x55df88=!0x0;for(let _0x2403b7=_0x4f72dc;_0x2403b7<_0x5555e3;_0x2403b7++)if(_0x51541c['isInline'](_0x1483ad[_0x2403b7]['item'])||(_0x55df88=!0x1),_0x1483ad[_0x2403b7]['item']['startIndex']<_0x4f72dc&&(_0x30fe77=_0x2403b7),_0x1483ad[_0x2403b7]['item']['endIndex']>=_0x5555e3){_0x1f1d69=_0x2403b7;break;}_0x55df88&&(_0x30fe77=_0x5555e3-0x1);for(let _0x14ffa3=_0x4f72dc;_0x14ffa3<_0x5555e3;_0x14ffa3++)_0x1483ad[_0x14ffa3]['side']=_0x14ffa3<=_0x30fe77?-0x1:_0x14ffa3<_0x1f1d69?0x0:0x1,_0x1483ad[_0x14ffa3]['index']=_0x14ffa3;let _0x35c520=0x0;for(let _0x50d174=_0x4f72dc;_0x50d174<=_0x30fe77;_0x50d174++)0x0==_0x1483ad[_0x50d174]['distance']?_0x1483ad[_0x50d174]['level']=_0x35c520:(_0x35c520++,_0x1483ad[_0x50d174]['level']=_0x35c520,_0x35c520++);for(let _0x50fc3d=_0x4f72dc;_0x50fc3d<_0x5555e3;_0x50fc3d++)0x0==_0x1483ad[_0x50fc3d]['side']&&(_0x1483ad[_0x50fc3d]['level']=_0x35c520);_0x35c520=0x0;for(let _0x475f34=_0x5555e3-0x1;_0x475f34>=_0x1f1d69;_0x475f34--)0x0==_0x1483ad[_0x475f34]['distance']?_0x1483ad[_0x475f34]['level']=_0x35c520:(_0x35c520--,_0x1483ad[_0x475f34]['level']=_0x35c520,_0x35c520--);}}['_fixObsoleteTags'](_0xe603ae){const _0x10ffd4=new Map(),_0x557bfa=this['editor']['model']['schema'];for(let _0x1bf42e=0x1;_0x1bf42e<_0xe603ae['length'];_0x1bf42e++){let _0x337889,_0x3419ea,_0x9372b3;const _0x3cab50=_0xe603ae[_0x1bf42e],_0x354298=_0xe603ae[_0x1bf42e-0x1];if('text'==_0x3cab50['type'])continue;if(_0x3cab50['type']!=_0x354298['type'])continue;if(!_0x557bfa['isBlock'](_0x354298['item'])||_0x557bfa['isLimit'](_0x354298['item']))continue;if(!_0x557bfa['isBlock'](_0x3cab50['item'])||_0x557bfa['isLimit'](_0x3cab50['item']))continue;if((_0xe603ae[_0x1bf42e]['isAdded']||_0xe603ae[_0x1bf42e]['isAddSuggestion'])&&_0xe603ae[_0x1bf42e-0x1]['isRemoved'])_0x337889=_0xe603ae[_0x1bf42e],_0x3419ea=_0xe603ae[_0x1bf42e-0x1],_0x9372b3=_0x1bf42e-0x1;else{if(!_0xe603ae[_0x1bf42e]['isRemoved']||!_0xe603ae[_0x1bf42e-0x1]['isAdded']&&!_0xe603ae[_0x1bf42e-0x1]['isAddSuggestion'])continue;_0x337889=_0xe603ae[_0x1bf42e-0x1],_0x3419ea=_0xe603ae[_0x1bf42e],_0x9372b3=_0x1bf42e;}const _0x305183=_0x337889['level']==_0x3419ea['level'],_0xdc729b=Math['abs'](_0x337889['level'])<Math['abs'](_0x3419ea['level'])&&0x0==_0x3419ea['distance'];(_0x305183||_0xdc729b)&&(_0x10ffd4['set'](_0x3419ea['id'],_0x337889['id']),_0xe603ae['splice'](_0x9372b3,0x1),_0x1bf42e--,_0x337889['isAdded']=!0x1);}for(let _0x3392d9=0x0;_0x3392d9<_0xe603ae['length'];_0x3392d9++)_0x10ffd4['has'](_0xe603ae[_0x3392d9]['pairId'])&&(_0xe603ae[_0x3392d9]['pairId']=_0x10ffd4['get'](_0xe603ae[_0x3392d9]['pairId']));}['_removeMissingPairs'](_0x10b20d){const _0x3511a4=new Set(_0x10b20d['map'](_0x10b6b9=>_0x10b6b9['id']));for(let _0x346286=0x0;_0x346286<_0x10b20d['length'];_0x346286++)_0x3511a4['has'](_0x10b20d[_0x346286]['pairId'])||0x0==_0x10b20d[_0x346286]['distance']||(_0x10b20d[_0x346286]['isIncorrect']=!0x0);return _0x10b20d['filter'](_0x4d0a6c=>!_0x4d0a6c['isIncorrect']);}['_markMismatchedRemovedTags'](_0x15cce6){const _0xaaf1b7=new Set();for(let _0x5be8fb=0x0;_0x5be8fb<_0x15cce6['length'];_0x5be8fb++){if(_0xaaf1b7['has'](_0x15cce6[_0x5be8fb]['id'])&&_0x15cce6[_0x5be8fb]['isRemoved']&&(_0x15cce6[_0x5be8fb]['isIncorrect']=!0x0),_0x15cce6[_0x5be8fb]['isIncorrect'])continue;if(0x0==_0x15cce6[_0x5be8fb]['distance'])continue;if('elementStart'!=_0x15cce6[_0x5be8fb]['type'])continue;if(null==_0x15cce6[_0x5be8fb]['pairId'])continue;let _0x1b6319=_0x5be8fb+0x1,_0x47eaac=0x0;for(;_0x15cce6[_0x1b6319]['id']!=_0x15cce6[_0x5be8fb]['pairId'];)'elementStart'==_0x15cce6[_0x1b6319]['type']?_0x47eaac++:'elementEnd'==_0x15cce6[_0x1b6319]['type']&&_0x47eaac--,_0x1b6319++;if(0x0!=_0x47eaac){if(_0x15cce6[_0x5be8fb]['isRemoved'])_0x15cce6[_0x5be8fb]['isIncorrect']=!0x0;else{for(;_0x1b6319!=_0x5be8fb;)_0x15cce6[_0x1b6319]['isRemoved']&&0x0!=_0x15cce6[_0x1b6319]['distance']&&(_0x15cce6[_0x1b6319]['isIncorrect']=!0x0,_0xaaf1b7['add'](_0x15cce6[_0x1b6319]['pairId'])),_0x1b6319--;}}}return _0x15cce6['filter'](_0x202c64=>!_0x202c64['isIncorrect']);}['_removeUnsupportedChanges'](_0xf1b975){const _0x167deb=this['editor']['model']['schema'];for(let _0x20bea8=0x0;_0x20bea8<_0xf1b975['length'];_0x20bea8++){if(!(_0xf1b975[_0x20bea8]['isAdded']||_0xf1b975[_0x20bea8]['isAddSuggestion']||_0xf1b975[_0x20bea8]['isRemoved']||_0xf1b975[_0x20bea8]['isRemoveSuggestion']))continue;if(0x0==_0xf1b975[_0x20bea8]['distance'])continue;const _0x1045a0=_0xf1b975[_0x20bea8]['item'];_0x167deb['isBlock'](_0x1045a0)||_0x167deb['isLimit'](_0x1045a0)||(_0xf1b975[_0x20bea8]['isAdded']&&delete _0xf1b975[_0x20bea8]['isAdded'],_0xf1b975[_0x20bea8]['isAddSuggestion']&&delete _0xf1b975[_0x20bea8]['isAddSuggestion'],_0xf1b975[_0x20bea8]['isRemoveSuggestion']&&delete _0xf1b975[_0x20bea8]['isRemoveSuggestion'],_0xf1b975[_0x20bea8]['isRemoved']&&(_0xf1b975[_0x20bea8]['isIncorrect']=!0x0));}return _0xf1b975['filter'](_0x5c56bf=>!_0x5c56bf['isIncorrect']);}['_makeModelFromTape'](_0x293859,_0x5d3d84,_0xb2ecef){const _0x2731fe=new _0xecbb41(),_0x3a72f2=[],_0x4b45cf=new Map(),_0xf6713f=this['editor']['model'],_0x4e5eb1=_0xf6713f['schema'],_0x360921=[_0x2731fe],_0x9f89d3={},_0x10ee8a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x587db2=null;const _0x27411e=[0x0];for(let _0x4091af=0x0;_0x4091af<_0x293859['length'];_0x4091af++)if('elementStart'===_0x293859[_0x4091af]['type']){_0x293859[_0x4091af]['previousPosition']=_0xf6713f['createPositionFromPath'](_0x2731fe,_0x27411e);const _0x54650b=new _0x99735e(_0x293859[_0x4091af]['item']['name'],_0x293859[_0x4091af]['item']['getAttributes']());_0x360921[0x0]['_appendChild'](_0x54650b),_0x27411e['push'](0x0),_0x360921['unshift'](_0x54650b),_0x293859[_0x4091af]['nextPosition']=_0xf6713f['createPositionFromPath'](_0x2731fe,_0x27411e);}else'elementEnd'===_0x293859[_0x4091af]['type']?(_0x360921['shift'](),_0x293859[_0x4091af]['previousPosition']=_0xf6713f['createPositionFromPath'](_0x2731fe,_0x27411e),_0x27411e['pop'](),_0x27411e[_0x27411e['length']-0x1]++,_0x293859[_0x4091af]['nextPosition']=_0xf6713f['createPositionFromPath'](_0x2731fe,_0x27411e)):(_0x293859[_0x4091af]['previousPosition']=_0xf6713f['createPositionFromPath'](_0x2731fe,_0x27411e),_0x587db2?_0x587db2['_data']+=_0x293859[_0x4091af]['item']['data']:_0x587db2=new _0x24c0ef(_0x293859[_0x4091af]['item']['data'],_0x293859[_0x4091af]['item']['getAttributes']()),_0x293859[_0x4091af+0x1]&&'text'===_0x293859[_0x4091af+0x1]['type']&&_0x3164df(_0x587db2,_0x293859[_0x4091af+0x1]['item'])||(_0x360921[0x0]['_appendChild'](_0x587db2),_0x587db2=null),_0x27411e[_0x27411e['length']-0x1]+=_0x293859[_0x4091af]['item']['offsetSize'],_0x293859[_0x4091af]['nextPosition']=_0xf6713f['createPositionFromPath'](_0x2731fe,_0x27411e));for(let _0x5cd766=0x0;_0x5cd766<_0x293859['length'];_0x5cd766++){const _0x301a4a=_0x293859[_0x5cd766]['previousPosition'],_0x1bc5be=_0x293859[_0x5cd766]['nextPosition'];for(const _0x3dd4fa of _0x293859[_0x5cd766]['markersStart'])_0x4b45cf['set'](_0x3dd4fa,{'start':_0x301a4a,'end':null});_0x599ab6('isRemoveSuggestion',_0x5cd766,_0x301a4a,_0x1bc5be),_0x599ab6('isAddSuggestion',_0x5cd766,_0x301a4a,_0x1bc5be),_0x599ab6('isRemoved',_0x5cd766,_0x301a4a,_0x1bc5be),_0x599ab6('isAdded',_0x5cd766,_0x301a4a,_0x1bc5be);for(const _0x3d593c of _0x293859[_0x5cd766]['markersEnd']){const _0x445a90=_0x4b45cf['get'](_0x3d593c);_0x445a90?_0x445a90['end']=_0x1bc5be:_0x4b45cf['set'](_0x3d593c,{'start':_0x1bc5be,'end':_0x1bc5be});}}for(const [_0x1831d4,_0x5dd3db]of _0x4b45cf){const _0x4ac3f0=this['editor']['model']['createRange'](_0x5dd3db['start'],_0x5dd3db['end']);_0x2731fe['markers']['set'](_0x1831d4,_0x4ac3f0);}return _0x3a72f2['sort']((_0x427937,_0x57980f)=>{const _0xdddad0=_0x2731fe['markers']['get']('revision:'+_0x427937['id']),_0x4cd9c9=_0x2731fe['markers']['get']('revision:'+_0x57980f['id']);return _0xdddad0['start']['isBefore'](_0x4cd9c9['start'])?-0x1:_0xdddad0['start']['isAfter'](_0x4cd9c9['start'])?0x1:_0xdddad0['end']['isBefore'](_0x4cd9c9['end'])?-0x1:_0xdddad0['end']['isAfter'](_0x4cd9c9['end'])?0x1:'add'===_0x427937['type']?-0x1:0x1;}),{'root':_0x2731fe,'changes':_0x3a72f2};function _0x599ab6(_0x4ee2fd,_0x49bb9c,_0x14c6da,_0x44bd42){const _0x7a4631=!!_0x293859[_0x49bb9c][_0x4ee2fd],_0x299c5f=_0x7a4631?_0x293859[_0x49bb9c][_0x4ee2fd]['userId']:null,_0x49c7e5=_0x49bb9c===_0x293859['length']-0x1,_0x251aa6=_0x10ee8a[_0x4ee2fd][0x0],_0x204c16=_0x4e5eb1['isObject'](_0x293859[_0x49bb9c]['item']);!_0x9f89d3[_0x4ee2fd]&&_0x7a4631?_0x9f89d3[_0x4ee2fd]={'start':_0x14c6da,'tapeItem':_0x293859[_0x49bb9c],'userId':_0x299c5f,'type':_0x4ee2fd}:_0x9f89d3[_0x4ee2fd]&&!_0x7a4631?(_0x9f89d3[_0x4ee2fd]['end']=_0x14c6da,_0x1381ad(_0x9f89d3[_0x4ee2fd]),_0x9f89d3[_0x4ee2fd]=null):_0x9f89d3[_0x4ee2fd]&&_0x7a4631&&_0x9f89d3[_0x4ee2fd]['userId']!==_0x299c5f&&(_0x9f89d3[_0x4ee2fd]['end']=_0x14c6da,_0x251aa6&&_0x251aa6['userId']===_0x9f89d3[_0x4ee2fd]['userId']||_0x1381ad(_0x9f89d3[_0x4ee2fd]),_0x9f89d3[_0x4ee2fd]={'start':_0x14c6da,'tapeItem':_0x293859[_0x49bb9c],'userId':_0x299c5f,'type':_0x4ee2fd}),_0x9f89d3[_0x4ee2fd]&&_0x204c16&&('elementStart'!==_0x293859[_0x49bb9c]['type']||_0x251aa6&&_0x251aa6['userId']===_0x299c5f||_0x10ee8a[_0x4ee2fd]['unshift']({'userId':_0x299c5f,'object':_0x293859[_0x49bb9c]['item'],'change':_0x9f89d3[_0x4ee2fd]}),'elementEnd'===_0x293859[_0x49bb9c]['type']&&_0x251aa6&&_0x251aa6['object']===_0x293859[_0x49bb9c]['item']&&(_0x10ee8a[_0x4ee2fd]['shift'](),_0x9f89d3[_0x4ee2fd]=_0x251aa6['change'])),_0x9f89d3[_0x4ee2fd]&&_0x49c7e5&&(_0x9f89d3[_0x4ee2fd]['end']=_0x44bd42,_0x1381ad(_0x9f89d3[_0x4ee2fd]),_0x9f89d3[_0x4ee2fd]=null);}function _0x1381ad({start:_0x3af9ce,end:_0x20b367,tapeItem:_0x380fbd,userId:_0x2a85cd,type:_0x462b9c}){const _0x16a4e7=_0x380fbd['item'],_0x437308=_0xf6713f['schema']['isBlock'](_0x16a4e7)&&!_0xf6713f['schema']['isLimit'](_0x16a4e7),_0xdb8561=_0x3af9ce['nodeAfter']==_0x20b367['parent']&&_0x20b367['isAtStart'];if(_0x437308&&_0xdb8561)return;const _0x594e80=_0xf6713f['createRange'](_0x3af9ce,_0x20b367),_0x3e5f60=_0x5d3d84['get'](_0x2a85cd),_0x5afa60=new G({'author':_0x3e5f60,'type':'isAdded'==_0x462b9c||'isAddSuggestion'==_0x462b9c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x462b9c||'isRemoveSuggestion'==_0x462b9c},'createdAt':new Date(),'rootName':_0xb2ecef});_0x3a72f2['push'](_0x5afa60),_0x2731fe['markers']['set']('revision:'+_0x5afa60['id'],_0x594e80);}function _0x3164df(_0x5de0a6,_0x3243a8){const _0x22a6d4=_0x5de0a6['getAttributes'](),_0x44a035=_0x3243a8['getAttributes']();for(const _0x59d363 of _0x22a6d4){if(_0x59d363[0x1]!==_0x3243a8['getAttribute'](_0x59d363[0x0]))return!0x1;_0x44a035['next']();}return _0x44a035['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1df867=>{const _0x13b861=_0x1df867['markerName']['split'](':')[0x1],_0xa2ea85=this['_getChangeFromId'](_0x13b861);if(!_0xa2ea85)return null;const _0x1f7022='add'==_0xa2ea85['type']?'insertion':'deletion',_0xbf964d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1f7022];return _0xa2ea85['data']['isSuggestion']&&_0xbf964d['push']('ck-suggestion-marker-'+_0x1f7022+'-new'),this['activeChange']==_0xa2ea85&&_0xbf964d['push']('ck-suggestion-marker--active'),{'classes':_0xbf964d,'attributes':{'data-change-id':_0x13b861}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x226aa7=>{_0x226aa7['on']('element:pre',(_0x5608a7,_0x27cdb9,_0x4635e9)=>{const _0x4bb1cc=_0x27cdb9['viewItem']['getChild'](0x0);if(!_0x4bb1cc||!_0x4bb1cc['is']('element','code'))return;if(!_0x4635e9['consumable']['consume'](_0x4bb1cc,{'attributes':['vid_start','vid_end']}))return;const _0xb8f9e5=_0x27cdb9['modelRange']['start']['nodeAfter'];_0x4635e9['writer']['setAttribute']('vid_start',_0x4bb1cc['getAttribute']('vid_start'),_0xb8f9e5),_0x4635e9['writer']['setAttribute']('vid_end',_0x4bb1cc['getAttribute']('vid_end'),_0xb8f9e5);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4a2969=>{_0x4a2969['on']('element',(_0x40bf25,_0x330105,_0x490741)=>{if(!_0x490741['consumable']['consume'](_0x330105['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x330105['modelRange']['isCollapsed'])return;const _0x4bc73e=_0x330105['modelRange']['start']['nodeAfter'];_0x4bc73e['hasAttribute']('vid_start')||_0x4bc73e['hasAttribute']('vid')||(_0x490741['writer']['setAttribute']('vid_start',_0x330105['viewItem']['getAttribute']('vid_start'),_0x4bc73e),_0x490741['writer']['setAttribute']('vid_end',_0x330105['viewItem']['getAttribute']('vid_end'),_0x4bc73e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xe60ffb=>_0xe60ffb['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x53cb4e,[,_0x46beba])=>{['vid_start','vid_end','vid']['includes'](_0x46beba)&&(_0x53cb4e['return']=!0x0,_0x53cb4e['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x31c15c=>{_0x31c15c['on']('attribute:vid',(_0x55d371,_0x425fd5,_0x3e931f)=>{if('\x20'!=_0x425fd5['item']['data']||_0x425fd5['item']['parent']['maxOffset']>0x1)return;if(!_0x3e931f['consumable']['consume'](_0x425fd5['item'],_0x55d371['name']))return;const _0x48007a=_0x3e931f['writer'],_0x349921=_0x3e931f['mapper']['toViewRange'](_0x425fd5['range']);_0x48007a['wrap'](_0x349921,_0x48007a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x48588e){const _0x5c8138=_0x48588e['plugins']['get']('RevisionViewer');return(_0x5383f7,_0x1df0d6,_0x27492c)=>{const _0x30ccfd=_0x1df0d6['markerName']['split'](':')[0x1],_0x597af1=_0x5c8138['_getChangeFromId'](_0x30ccfd);if(!_0x597af1)return null;const _0x405140='add'==_0x597af1['type']?'split':'merge';if(!_0x27492c['consumable']['test'](_0x1df0d6['markerRange'],_0x5383f7['name']))return;const _0x16281a=_0x1df0d6['markerRange']['getWalker'](),_0x5145cf=_0x1df0d6['markerRange']['start'],_0x2456cd=_0x48588e['model']['schema'];let _0x4d6208=null,_0xc5bc7c=null,_0xf683b9=!0x1,_0x576a8f=!0x1;for(const _0x3e19a4 of _0x16281a){const _0x4b3ca4=_0x3e19a4['item'];_0xf683b9=_0xf683b9||_0x2456cd['isContent'](_0x4b3ca4);const _0x5d38e2=_0x27492c['mapper']['toViewElement'](_0x4b3ca4);if(_0x5d38e2&&_0x5d38e2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3e19a4['type']&&(_0x2456cd['isBlock'](_0x4b3ca4)&&!_0x2456cd['isLimit'](_0x4b3ca4)&&(_0x4b3ca4['nextSibling']||_0x5145cf['isAtEnd']?_0x4d6208&&_0x4d6208['parent']==_0x4b3ca4||(_0x4d6208=_0x4b3ca4,_0x1fca91(_0x3e19a4['previousPosition']),_0x576a8f=!0x0):_0xc5bc7c=_0xc5bc7c||_0x3e19a4['previousPosition']));}function _0x1fca91(_0x3d6d00){const _0x36860e=_0x27492c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x405140}),_0x2c0a07=_0x27492c['mapper']['toViewPosition'](_0x3d6d00);_0x597af1['data']['isSuggestion']&&_0x27492c['writer']['addClass']('ck-suggestion-marker-'+_0x405140+'-new',_0x36860e),_0x5c8138['activeChange']==_0x597af1&&_0x27492c['writer']['addClass']('ck-suggestion-marker--active',_0x36860e),_0x27492c['writer']['insert'](_0x2c0a07,_0x36860e),_0x27492c['mapper']['bindElementToMarker'](_0x36860e,_0x1df0d6['markerName']);}_0xf683b9||_0x576a8f||!_0xc5bc7c||_0x1fca91(_0xc5bc7c);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5b8eb1,_0x116212,_0x355340)=>{const _0x5ded8d=_0x355340['mapper']['markerNameToElements'](_0x116212['markerName']);if(_0x5ded8d){for(const _0x51e427 of _0x5ded8d)(_0x51e427['hasClass']('ck-suggestion-marker-split')||_0x51e427['hasClass']('ck-suggestion-marker-merge'))&&(_0x355340['mapper']['unbindElementFromMarkerName'](_0x51e427,_0x116212['markerName']),_0x355340['writer']['remove'](_0x51e427));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x609ccc,_0x1e2813,_0x382dfd)=>{const _0x5a4967=_0x1e2813['markerName']['split'](':')[0x1],_0x5735c7=this['_getChangeFromId'](_0x5a4967);if(!_0x5735c7)return null;const _0x537bab='add'==_0x5735c7['type']?'split':'merge';if(_0x382dfd['consumable']['test'](_0x1e2813['markerRange'],_0x609ccc['name']))for(const _0x7875d0 of _0x1e2813['markerRange']['getItems']()){if(!_0x7875d0['is']('element','softBreak'))continue;const _0x493ba5=_0x382dfd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x537bab}),_0x277e77=_0x382dfd['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x7875d0));_0x5735c7['data']['isSuggestion']&&_0x382dfd['writer']['addClass']('ck-suggestion-marker-'+_0x537bab+'-new',_0x493ba5),this['activeChange']==_0x5735c7&&_0x382dfd['writer']['addClass']('ck-suggestion-marker--active',_0x493ba5),_0x382dfd['writer']['insert'](_0x277e77,_0x493ba5),_0x382dfd['mapper']['bindElementToMarker'](_0x493ba5,_0x1e2813['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x452ed4=>{for(const _0x347a60 of this['editor']['model']['document']['getRootNames']()){const _0x1b8b65=this['editor']['model']['document']['getRoot'](_0x347a60),_0x57dbe1=this['editor']['editing']['view']['document']['getRoot'](_0x347a60);if(_0x57dbe1){const _0x2c7bc6=_0x1b8b65['getAttribute']('revisionHistoryAttachChange');if(_0x452ed4['removeAttribute']('data-change-id',_0x57dbe1),_0x452ed4['removeClass']('ck-revision-history-root-add',_0x57dbe1),_0x452ed4['removeClass']('ck-revision-history-root-remove',_0x57dbe1),_0x452ed4['removeClass']('ck-revision-history-root--active',_0x57dbe1),_0x2c7bc6){const _0x1c9a82=this['_getChangeFromId'](_0x2c7bc6);if(!_0x1c9a82)return null;_0x452ed4['setAttribute']('data-change-id',_0x2c7bc6,_0x57dbe1),_0x452ed4['addClass']('ck-revision-history-root-'+_0x1c9a82['type'],_0x57dbe1),this['activeChange']==_0x1c9a82&&_0x452ed4['addClass']('ck-revision-history-root--active',_0x57dbe1);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x52c70b=>'revision-comment:'+_0x52c70b,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x30d719=>'revision-suggestion:'+_0x30d719,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3bbc47=>({'name':'suggestion:'+_0x3bbc47,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3ba8f0=>{const _0x2673c8=_0x3ba8f0['markerName']['split'](':')[0x1];return'insertion'!=_0x2673c8&&'deletion'!=_0x2673c8?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2673c8]};}}),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',(_0x205976,_0x442a34,_0x7b2901)=>{const _0x2b1c59=_0x7b2901['mapper']['markerNameToElements'](_0x442a34['markerName']);if(_0x2b1c59){for(const _0x291746 of _0x2b1c59)_0x291746['is']('uiElement')&&(_0x7b2901['mapper']['unbindElementFromMarkerName'](_0x291746,_0x442a34['markerName']),_0x7b2901['writer']['remove'](_0x291746));}},{'priority':'high'});}['_getChangeFromId'](_0x27e739){return this['_changeIdToChange']['get'](_0x27e739);}['_getViewForChange'](_0x3382df){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3382df),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x26cd1c,_0x38eedc,_0x4b8315,_0x4d2333)=>{_0x4d2333&&this['_balloon']['remove'](_0x4d2333),_0x4b8315&&(this['_balloon']['add']({'view':_0x4b8315,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4f3b21=this['editor']['editing'],_0x257580=this['_getChangeFromId'](_0x4b8315['changeId']);let _0x338671;if(_0x257580['data']['isOnRoot']){const _0x567784=_0x4f3b21['view']['getDomRoot'](_0x257580['rootName']);_0x338671=Array['from'](_0x567784['getClientRects']());}else{const _0x1ade38=this['editor']['model']['markers']['get']('revision:'+_0x4b8315['changeId']);_0x338671=Array['from'](_0x4f3b21['mapper']['markerNameToElements'](_0x1ade38['name']))['map'](_0x10745f=>_0x4f3b21['view']['domConverter']['mapViewToDom'](_0x10745f))['map'](_0x1d2da2=>Array['from'](_0x1d2da2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x338671[0x0];return _0x338671['find'](_0x21eff5=>_0x21eff5['top']-0x3<=this['_activeViewTarget']['y']&&_0x21eff5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x21eff5['left']-0x3<=this['_activeViewTarget']['x']&&_0x21eff5['right']+0x3>=this['_activeViewTarget']['x'])||_0x338671[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x467fc6,_0x276ecd,_0x5a87b4,_0x15a99e)=>{this['activeView']=_0x5a87b4?this['_getViewForChange'](_0x5a87b4):null,this['editor']['model']['change'](()=>{const _0x1b8e78=this['editor']['editing'];_0x15a99e&&(_0x15a99e['data']['isOnRoot']?_0x1b8e78['view']['change'](_0x44fce9=>{_0x44fce9['removeClass']('ck-revision-history-root--active',_0x1b8e78['view']['document']['getRoot'](_0x15a99e['rootName']));}):_0x1b8e78['reconvertMarker']('revision:'+_0x15a99e['id'])),_0x5a87b4&&(_0x5a87b4['data']['isOnRoot']?_0x1b8e78['view']['change'](_0x1c10a9=>{_0x1c10a9['addClass']('ck-revision-history-root--active',_0x1b8e78['view']['document']['getRoot'](_0x5a87b4['rootName']));}):_0x1b8e78['reconvertMarker']('revision:'+_0x5a87b4['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x81be3c,_0x2baff9)=>{if(this['activeChange'])return;const _0x2d1815=this['_findChangeIdFromDomTarget'](_0x2baff9['target']),_0x345ad9=this['_changeIdToChange']['get'](_0x2d1815);_0x345ad9?(this['_activeViewTarget']={'x':_0x2baff9['domEvent']['x'],'y':_0x2baff9['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x345ad9)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3f86d5,_0x409d8a)=>{const _0x4692ef=this['_findChangeIdFromDomTarget'](_0x409d8a['target']),_0x579eee=this['_changeIdToChange']['get'](_0x4692ef);_0x579eee?(this['_activeViewTarget']={'x':_0x409d8a['domEvent']['x'],'y':_0x409d8a['domEvent']['y']},_0x579eee===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x579eee):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3bcc5c){do{const _0x33602a=_0x3bcc5c['getAttribute']('data-change-id');if(_0x33602a)return _0x33602a;_0x3bcc5c=_0x3bcc5c['parent'];}while(_0x3bcc5c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x37721f=>{for(const _0x18704a of this['editor']['model']['markers'])_0x37721f['removeMarker'](_0x18704a);});}}function Q(_0x4736a8,_0x15d1a3){return(_0x3590cf,_0x4cc96a,_0x550d98)=>{if(!_0x550d98['consumable']['test'](_0x4cc96a['markerRange'],_0x3590cf['name']))return;const _0x4ab1ce=_0x4cc96a['markerRange']['getWalker'](),_0x3dca1a=_0x4cc96a['markerRange']['start'],_0x40f400=_0x4736a8['model']['schema'];let _0x1c88b9=null,_0xaf0e04=null,_0xfa7a9c=!0x1,_0xc30f5a=!0x1;for(const _0x1a4601 of _0x4ab1ce){const _0x1f9b77=_0x1a4601['item'];_0xfa7a9c=_0xfa7a9c||_0x40f400['isContent'](_0x1f9b77);const _0xcb515b=_0x550d98['mapper']['toViewElement'](_0x1f9b77);if(_0xcb515b&&_0xcb515b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1a4601['type']&&(_0x40f400['isBlock'](_0x1f9b77)&&!_0x40f400['isLimit'](_0x1f9b77)&&(_0x1f9b77['nextSibling']||_0x3dca1a['isAtEnd']?_0x1c88b9&&_0x1c88b9['parent']==_0x1f9b77||(_0x1c88b9=_0x1f9b77,_0x43c0d9(_0x1a4601['previousPosition']),_0xc30f5a=!0x0):_0xaf0e04=_0xaf0e04||_0x1a4601['previousPosition']));}function _0x43c0d9(_0x45de25){const _0x4a8044=_0x550d98['mapper']['toViewPosition'](_0x45de25),_0x348692=_0x550d98['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x15d1a3});_0x550d98['writer']['insert'](_0x4a8044,_0x348692),_0x550d98['mapper']['bindElementToMarker'](_0x348692,_0x4cc96a['markerName']);}_0xfa7a9c||_0xc30f5a||!_0xaf0e04||_0x43c0d9(_0xaf0e04);};}class nt extends _0x26a7b3{constructor(_0x4bfe6f){super(_0x4bfe6f);const _0x722369=_0x4bfe6f['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x722369,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x722369,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4e793e=this['editor'],_0x199fb9=_0x4e793e['plugins']['get'](l),_0xd11e92=_0x199fb9['isReady']?_0x199fb9['diff']['newRevisionId']:null;_0x4e793e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xd11e92);}['refresh'](){const {isReady:_0x143b22,isEnabled:_0xcfd153,repository:_0x5ac023,diff:_0x2866a9}=this['editor']['plugins']['get'](l),_0x2fd2a3=_0x2866a9&&_0x5ac023['getLaterVisibleRevision'](_0x2866a9['newRevisionId']);this['isEnabled']=_0x143b22&&_0xcfd153&&Boolean(_0x2fd2a3);}}class rt extends _0x26a7b3{['_step'];constructor(_0x6ce0a9,{direction:_0x5c1115}){super(_0x6ce0a9);const _0x2183a7=_0x6ce0a9['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x5c1115?0x1:-0x1,this['listenTo'](_0x2183a7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2183a7,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2183a7,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5adfe1=this['editor'],_0x46cc1f=_0x5adfe1['plugins']['get'](l),{isNavigationMode:_0x470ba4,currentChangeNumber:_0x2431e0}=_0x46cc1f;let _0x38613d;if(_0x46cc1f['activeChange']=_0x470ba4?_0x46cc1f['diff']['changes']['get'](_0x2431e0+this['_step']):_0x46cc1f['diff']['changes']['first'],_0x46cc1f['activeChange']['data']['isOnRoot'])_0x38613d=_0x5adfe1['editing']['view']['getDomRoot'](_0x46cc1f['activeChange']['rootName']);else{const _0x5769ca=_0x5adfe1['model']['markers']['get']('revision:'+_0x46cc1f['activeChange']['id']);_0x38613d=_0x339914(_0x5adfe1['editing'],_0x5769ca);}_0x2668d4({'target':_0x38613d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x266c25,currentChangeNumber:_0x5df9b7,numberOfChanges:_0x3b2d28,isReady:_0x3b3704,isEnabled:_0x2962a4}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x2962a4&&_0x3b3704&&_0x3b2d28)&&(!_0x266c25||(0x1===this['_step']?_0x5df9b7<_0x3b2d28-0x1:_0x5df9b7>0x0));}}class fi extends _0x1579ef{constructor(_0x17cd54){super(_0x17cd54);const _0x43747b=this['bindTemplate'],_0x3477b3=new _0x536736(_0x17cd54),_0x388745=new _0x536736(_0x17cd54);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',(_0x236f6f,_0x49a8b8)=>_0x236f6f&&_0x49a8b8>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x44e473,_0x379fe1,_0x3d05ff,_0x480081)=>{if(!_0x44e473)return R(_0x17cd54,'Loading...');if(!_0x3d05ff)return R(_0x17cd54,'No\x20changes');const _0x25c43c=R(_0x17cd54,'NUMBER_OF_CHANGES',_0x3d05ff);return _0x480081?R(_0x17cd54,'X_OF_Y_CHANGES',[_0x379fe1+0x1,_0x3d05ff]):_0x25c43c;}),_0x3477b3['set']({'label':R(_0x17cd54,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5ed9b3}),_0x388745['set']({'label':R(_0x17cd54,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x35f01a}),_0x3477b3['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x388745['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3477b3['on']('execute',()=>this['fire']('execute','backward')),_0x388745['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',_0x43747b['if']('_isStatusLabelVisible','ck-hidden',_0x2ff8a3=>!_0x2ff8a3)]},'children':[{'text':_0x43747b['to']('isNavigationMode',_0x1a3fb7=>_0x1a3fb7?R(_0x17cd54,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x17cd54,'Total')+':\x20')}]},{'text':_0x43747b['to']('_statusText')}]},new _0x150645(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3477b3,_0x388745]}]});}}const ge='ck-editor__editable__loading-overlay';class bi extends _0xc698e3{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x112d62=this['editor']['editing']['view'];_0x112d62['change'](_0x34a736=>{for(const _0x2427fc of _0x112d62['document']['roots'])_0x34a736['addClass'](ge,_0x2427fc);});}['hide'](){const _0x309c55=this['editor']['editing']['view'];_0x309c55['change'](_0x3f3cca=>{for(const _0x35af02 of _0x309c55['document']['roots'])_0x3f3cca['removeClass'](ge,_0x35af02);});}}class u extends _0xc698e3{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,bi];}['init'](){const _0xe7decc=this['editor'],_0x3b38c6=_0xe7decc['plugins']['get'](l),_0x1d6453=_0xe7decc['plugins']['get'](bi);_0xe7decc['ui']['componentFactory']['add']('exitToEditing',_0x1047d2=>{const _0x141685=new _0x536736(_0x1047d2);return _0x141685['set']({'label':R(_0x1047d2,'Back\x20to\x20editing'),'icon':_0x12b4c1,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x141685,'execute',()=>{_0xe7decc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x141685;}),_0xe7decc['ui']['componentFactory']['add']('restoreRevision',_0x241ebb=>{const _0x50a35a=new _0x536736(_0x241ebb);return _0x50a35a['set']({'label':R(_0x241ebb,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x50a35a['bind']('isEnabled')['to'](_0xe7decc['commands']['get']('restoreRevision')),this['listenTo'](_0x50a35a,'execute',()=>_0xe7decc['execute']('restoreRevision')),_0x50a35a;}),_0xe7decc['ui']['componentFactory']['add']('changesNavigation',_0x533b3d=>{const _0x54850c=new fi(_0x533b3d),_0x21e3a4=_0xe7decc['commands']['get']('showPreviousChange'),_0x257b8f=_0xe7decc['commands']['get']('showNextChange');return _0x54850c['bind']('isBackwardNavigationEnabled')['to'](_0x21e3a4,'isEnabled'),_0x54850c['bind']('isForwardNavigationEnabled')['to'](_0x257b8f,'isEnabled'),_0x54850c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3b38c6),this['listenTo'](_0x54850c,'execute',(_0x473edc,_0x879e88)=>{_0xe7decc['execute']('forward'===_0x879e88?'showNextChange':'showPreviousChange');}),_0x54850c;}),_0x1d6453['show'](),_0x3b38c6['on']('change:isReady',(_0x193980,_0x2a675e,_0x238f25)=>{_0x238f25?_0x1d6453['hide']():_0x1d6453['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x4401a4,_0x4a2919){super(_0x4401a4,_0x4a2919);const _0x94edcf=this['bindTemplate'];this['set']({'label':R(_0x4401a4,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4401a4,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x94edcf['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 _0x3bb0a6=this['fieldView']['element'];this['_tooltipString']=_0x3bb0a6['scrollWidth']>_0x3bb0a6['clientWidth']&&_0x3bb0a6['value']||'';}}class ni extends _0x1579ef{constructor(_0x333fe0,_0x1d6117,_0x2b4d65){super(_0x333fe0);const _0xbb4725=new _0x47ea2f();_0xbb4725['set']({'content':_0x4e06a0,'viewBox':'0\x200\x2011\x2010'});const _0x3b02cf=['ck','ck-revision-history-sidebar__revision-author'];_0x2b4d65&&_0x3b02cf['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2d66bd=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x333fe0,_0x2b4d65?'Revision\x20creator':'Revision\x20author')},'children':[_0xbb4725,_0x1d6117['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3b02cf},'children':_0x2d66bd});}}function ci(_0x3aa58c,_0x3e8bb7){const _0x499c3d=_0x3aa58c['bindTemplate'],_0xfeefa0=_0x3aa58c['locale'],_0x1b9fa3=_0x310321(_0xfeefa0);_0x1b9fa3['panelPosition']='sw';const _0x95c80b=function(_0x48a25f,_0x287079){const _0x4f3f5f=function(_0xbd829,_0x2b9cf6){const _0x5d7902=_0xbd829['locale'],_0x16d11e={'Compare\x20against\x20selected':R(_0x5d7902,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x5d7902,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x5d7902,'Restore\x20this\x20revision')};return _0x2b9cf6['map'](_0x16413c=>{const _0x193366=_0x16d11e[_0x16413c['name']];return _0x193366&&_0x193366!==_0x16413c['name']&&(_0x16413c['name']=_0x193366),_0x16413c;});}(_0x48a25f,_0x287079),_0xdf17ce=new _0x28ccb6();for(const _0x37048e of _0x4f3f5f){const _0x238cbc={'type':'button','model':new to({'label':_0x37048e['name'],'class':_0x37048e['class'],'withText':!0x0,'role':'menuitem','_action':_0x37048e['action']})};_0x238cbc['model']['bind']('isEnabled')['to'](_0x48a25f,'isActionsDropdownOpen',_0x477336=>'function'!=typeof _0x37048e['isEnabled']||(!_0x477336||_0x37048e['isEnabled'](_0x48a25f))),_0xdf17ce['add'](_0x238cbc);}return _0xdf17ce;}(_0x3aa58c,_0x3e8bb7);return _0x3aa58c['bind']('isActionsDropdownOpen')['to'](_0x1b9fa3,'isOpen'),_0x1b9fa3['buttonView']['set']({'label':R(_0xfeefa0,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2f8ce8}),_0x1b9fa3['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x499c3d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x499c3d['to'](_0x7f21e8=>_0x7f21e8['stopPropagation']())}}),_0x1b9fa3['on']('execute',_0x526fe7=>{_0x3aa58c['isReady']&&'function'==typeof _0x526fe7['source']['_action']&&_0x526fe7['source']['_action'](_0x3aa58c);}),_0x2716f0(_0x1b9fa3,_0x95c80b,{'role':'menu'}),_0x1b9fa3['listenTo'](_0x3aa58c,'change:isActionsDropdownOpen',(_0x4c6237,_0x58773e,_0x1e4121)=>{if(_0x1e4121)for(const _0x28a4d3 of _0x1b9fa3['listView']['items']){const _0x14dd9=_0x28a4d3['children']['first'],_0x5820e3=_0x3e8bb7['find'](_0x19d471=>_0x19d471['action']===_0x14dd9['_action'])['isVisible'];_0x28a4d3['isVisible']=void 0x0===_0x5820e3||_0x5820e3(_0x3aa58c);}}),_0x1b9fa3;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x3d9fdb,uid as _0x30afc6,Collection as _0x33c442,logWarning as _0x304754,FocusTracker as _0x576123,KeystrokeHandler as _0x2c1f9d,scrollViewportToShowTarget as _0x1d532f,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x204e23}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x32f284,set as _0x158259,unset as _0x3ec9b5,isEqual as _0x16fd70}from'es-toolkit/compat';import{Plugin as _0x1d82bd,PendingActions as _0x3c3834,Command as _0x2e7909,ElementApiMixin as _0x1264df,Editor as _0x1739b3}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2d82c4,getMarkerDomElement as _0x297621,ConfirmMixin as _0x3a5a4b,sanitizeEditorConfig as _0x520b83}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x21a697,ViewAttributeElement as _0xf07d2d,ViewEmptyElement as _0x478ea6,ViewRawElement as _0x1d5d02,ViewUIElement as _0x220822,ViewDocumentFragment as _0x2b8bd6,ViewText as _0x289cd1,ViewElement as _0x489b9a,ModelElement as _0x5b2de1,ModelRange as _0x45b9a5,ModelPosition as _0x2be10f,ModelDocumentFragment as _0x2b70b9,ModelText as _0x1ea3a8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x59245b,IconChevronUp as _0x389874,IconChevronDown as _0x715628,IconUndo as _0x2c7774,IconUser as _0x1d2f9d,IconThreeVerticalDots as _0x19cac3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x222912,View as _0x4d3a60,submitHandler as _0x49168b,LabeledFieldView as ti,createLabeledInputText as _0x128517,createDropdown as _0x403910,ListView as _0x120368,ListItemView as _0x5c71d3,ButtonView as _0x164f62,MenuBarMenuView as _0x67ee54,MenuBarMenuListView as _0x437570,MenuBarMenuListItemView as _0x67548c,MenuBarMenuListItemButtonView as _0x17957b,ContextualBalloon as _0x41b47d,ToolbarSeparatorView as _0x51fc4c,IconView as _0x389f13,addListToDropdown as _0x519f9e,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x536193,StickyPanelView as _0xfb8230,ToolbarView as _0x3814f7,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1970ec}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3d9fdb(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2aa412){super(),this['id']=_0x2aa412['id']||_0x30afc6(),this['creator']=_0x2aa412['creator']||null,this['authors']=_0x2aa412['authors']||[],this['diffData']=_0x2aa412['diffData']||null,this['toVersion']=_0x2aa412['toVersion']||0x0,this['fromVersion']=_0x2aa412['fromVersion']||0x0,this['set']('name',_0x2aa412['name']||''),this['set']('createdAt',_0x2aa412['createdAt']||new Date()),this['set']('attributes',_0x2aa412['attributes']||{});}['setName'](_0x1a08c1){this['_update']({'name':_0x1a08c1});}['setAttribute'](_0x35ca9b,_0x5856cf){const _0x29dd55=_0x32f284(this['attributes']);_0x158259(_0x29dd55,_0x35ca9b,_0x5856cf),this['_update']({'attributes':_0x29dd55});}['removeAttribute'](_0x1150cd){const _0x1627ac=_0x32f284(this['attributes']);_0x3ec9b5(_0x1627ac,_0x1150cd),this['_update']({'attributes':_0x1627ac});}['_update'](_0x34ea99,_0x1d4150=!0x1){let _0x2541af=!0x1;const _0x597006={'id':this['id']},_0x423b01=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x251d95 of _0x423b01){const _0x45300d=_0x34ea99[_0x251d95];void 0x0!==_0x45300d&&_0x45300d!==this[_0x251d95]&&(this[_0x251d95]=_0x45300d,_0x597006[_0x251d95]=_0x45300d,_0x2541af=!0x0);}_0x2541af&&(_0x597006['authors']&&(_0x597006['authorsIds']=_0x597006['authors']['map'](_0x49d306=>_0x49d306['id']),delete _0x597006['authors']),this['fire']('_update',_0x597006,_0x1d4150));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5776de=>_0x5776de['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x1d82bd{['_revisions'];static get['requires'](){return[_0x2d82c4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x193d8c){super(_0x193d8c),this['_revisions']=new _0x33c442();}['afterInit'](){!async function(_0x46a220){const _0x3a6e36=_0x2ed822([0x6c,0x53,0x4f,0x56,0x30,0x42,0x77,0x74,0x44,0x49,0x50,0x72,0x75,0x63,0x33,0x43,0x64,0x59,0x73,0x47,0x6b,0x32,0x4e,0x41,0x52,0x35,0x6d,0x7a,0x6e,0x76,0x46,0x5a,0x34,0x4d,0x58,0x51,0x6a,0x37,0x69,0x45,0x79,0x61,0x62,0x4c,0x39,0x4a,0x38,0x65,0x54,0x31,0x48,0x36,0x66,0x55,0x70,0x4b,0x67,0x78,0x71,0x6f,0x68,0x57]),_0x570bf8=0xeb829,_0x110ef6=0x733af7a6,_0x1ef509=0x733d9ae6^_0x110ef6,_0x2f1392=window[_0x2ed822([0x44,0x61,0x74,0x65])][_0x2ed822([0x6e,0x6f,0x77])](),_0x46ebe9=_0x46a220[_0x2ed822([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a6379=new window[(_0x2ed822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x492534=>{_0x46ebe9[_0x2ed822([0x6f,0x6e,0x63,0x65])](_0x2ed822([0x72,0x65,0x61,0x64,0x79]),_0x492534);}),_0x492c55={[_0x2ed822([0x6b,0x74,0x79])]:_0x2ed822([0x45,0x43]),[_0x2ed822([0x75,0x73,0x65])]:_0x2ed822([0x73,0x69,0x67]),[_0x2ed822([0x63,0x72,0x76])]:_0x2ed822([0x50,0x2d,0x32,0x35,0x36]),[_0x2ed822([0x78])]:_0x2ed822([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]),[_0x2ed822([0x79])]:_0x2ed822([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]),[_0x2ed822([0x61,0x6c,0x67])]:_0x2ed822([0x45,0x53,0x32,0x35,0x36])},_0x353faf=_0x46ebe9[_0x2ed822([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2ed822([0x67,0x65,0x74])](_0x2ed822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x297367(){let _0x8f1352,_0x175d23=null,_0x25260c=null;try{if(_0x353faf==_0x2ed822([0x47,0x50,0x4c]))return _0x2ed822([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8f1352=_0x3aebf7(),!_0x8f1352)return _0x2ed822([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8f1352[_0x2ed822([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25260c=_0x342385(_0x8f1352[_0x2ed822([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8f1352[_0x2ed822([0x6a,0x74,0x69])])),await _0x30bc0b()?_0x15d40a()?_0x167d3e()?_0x2ed822([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x158f1d()?(_0x8f1352[_0x2ed822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ed822([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x175d23=_0x44e587(_0x2ed822([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x8f1352[_0x2ed822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ed822([0x74,0x72,0x69,0x61,0x6c])&&(_0x175d23=_0x44e587(_0x2ed822([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x168b4c()):_0x2ed822([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2ed822([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2ed822([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2ed822([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x167d3e(){const _0x5b631e=[_0x2ed822([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2ed822([0x74,0x72,0x69,0x61,0x6c])][_0x2ed822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8f1352[_0x2ed822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f1392/0x3e8:0xe10*_0x1ef509;return _0x8f1352[_0x2ed822([0x65,0x78,0x70])]<_0x5b631e;}function _0x15d40a(){const _0x86ec45=_0x8f1352[_0x2ed822([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x86ec45)return!0x1;if(_0x86ec45[_0x2ed822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ed822([0x2a])))return!0x0;if(_0x86ec45[_0x2ed822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ed822([0x52,0x48])))return!0x0;if(_0x86ec45[_0x2ed822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ed822([0x52,0x52,0x48]))){if(_0x5db8ee())return!0x0;if(_0x305076()||_0x24d8f8())return!0x0;}return!0x1;}function _0x158f1d(){const _0x13017c=_0x8f1352[_0x2ed822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x13017c||0x0==_0x13017c[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d15f9}=new URL(window[_0x2ed822([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x13017c[_0x2ed822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d15f9))return!0x0;const _0xaff224=_0x1d15f9[_0x2ed822([0x73,0x70,0x6c,0x69,0x74])](_0x2ed822([0x2e]));return _0x13017c[_0x2ed822([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x181ba2=>_0x181ba2[_0x2ed822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ed822([0x2a])))[_0x2ed822([0x6d,0x61,0x70])](_0x5b9a4f=>_0x5b9a4f[_0x2ed822([0x73,0x70,0x6c,0x69,0x74])](_0x2ed822([0x2e])))[_0x2ed822([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c8f4a=>_0x4c8f4a[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xaff224[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ed822([0x6d,0x61,0x70])](_0xcaa4d0=>Array(_0xaff224[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xcaa4d0[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ed822([0x66,0x69,0x6c,0x6c])](_0xcaa4d0[0x0]===_0x2ed822([0x2a])?_0x2ed822([0x2a]):'')[_0x2ed822([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xcaa4d0))[_0x2ed822([0x73,0x6f,0x6d,0x65])](_0x32e878=>_0xaff224[_0x2ed822([0x65,0x76,0x65,0x72,0x79])]((_0x312e91,_0x56698d)=>_0x32e878[_0x56698d]===_0x312e91||_0x32e878[_0x56698d]===_0x2ed822([0x2a])));}function _0x168b4c(){return _0x175d23&&_0x25260c?new window[(_0x2ed822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3854c2,_0x54519b)=>{_0x175d23[_0x2ed822([0x74,0x68,0x65,0x6e])](_0x3854c2,_0x54519b),_0x25260c[_0x2ed822([0x74,0x68,0x65,0x6e])](_0x5e281f=>{_0x5e281f!=_0x2ed822([0x56,0x61,0x6c,0x69,0x64])&&_0x3854c2(_0x5e281f);},_0x54519b);}):_0x175d23||_0x25260c||_0x2ed822([0x56,0x61,0x6c,0x69,0x64]);}}function _0x342385(_0x147a87,_0x45d6f4){return new window[(_0x2ed822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x139759=>{if(_0xa48c7())return _0x139759(_0x2ed822([0x56,0x61,0x6c,0x69,0x64]));_0x47a4ce(),_0x46ebe9[_0x2ed822([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2ed822([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19a2da=!0x1;const _0x2384d9=_0x30afc6();function _0x4574d8(_0xb699e2){return!!_0xb699e2&&(typeof _0xb699e2===_0x2ed822([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb699e2===_0x2ed822([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb699e2[_0x2ed822([0x74,0x68,0x65,0x6e])]===_0x2ed822([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb699e2[_0x2ed822([0x63,0x61,0x74,0x63,0x68])]===_0x2ed822([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2125c1(_0x244385){_0x26ef1c(_0x244385)[_0x2ed822([0x74,0x68,0x65,0x6e])](_0x43a03b=>{if(!_0x43a03b||_0x43a03b[_0x2ed822([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2ed822([0x6f,0x6b]))return _0x2ed822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1629d1(_0x5e2abe(_0x2384d9+_0x45d6f4))!=_0x43a03b[_0x2ed822([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2ed822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2ed822([0x56,0x61,0x6c,0x69,0x64]);})[_0x2ed822([0x74,0x68,0x65,0x6e])](_0x1e6f78=>(_0x5e5bca(),_0x1e6f78),()=>{const _0x5a2675=_0x90e248();return null==_0x5a2675?(_0x5e5bca(),_0x2ed822([0x56,0x61,0x6c,0x69,0x64])):_0x2ed822(_0x2f1392-_0x5a2675>(0x573673a6^_0x110ef6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2ed822([0x74,0x68,0x65,0x6e])](_0x139759)[_0x2ed822([0x63,0x61,0x74,0x63,0x68])](()=>{_0x139759(_0x2ed822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4653a3=0x730c1926^_0x110ef6;function _0x5e5bca(){const _0x291d64=_0x2ed822([0x6c,0x6c,0x63,0x74,0x2d])+_0x1629d1(_0x5e2abe(_0x147a87)),_0x47e71d=_0x166228(_0x1629d1(window[_0x2ed822([0x4d,0x61,0x74,0x68])][_0x2ed822([0x63,0x65,0x69,0x6c])](_0x2f1392/_0x4653a3)));window[_0x2ed822([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ed822([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x291d64,_0x47e71d);}function _0x90e248(){const _0x296f91=_0x2ed822([0x6c,0x6c,0x63,0x74,0x2d])+_0x1629d1(_0x5e2abe(_0x147a87)),_0x1c9da0=window[_0x2ed822([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ed822([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x296f91);return _0x1c9da0?window[_0x2ed822([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x166228(_0x1c9da0),0x10)*_0x4653a3:null;}function _0x26ef1c(_0x470bd6){return new window[(_0x2ed822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54f796,_0x28b8ec)=>{_0x470bd6[_0x2ed822([0x74,0x68,0x65,0x6e])](_0x54f796,_0x28b8ec),window[_0x2ed822([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28b8ec,0x733b2366^_0x110ef6);});}}_0x46ebe9[_0x2ed822([0x6f,0x6e])](_0x2ed822([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x376843,_0x423bb4)=>{if(_0x423bb4[0x0]!=_0x147a87)return _0x139759(_0x2ed822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x423bb4[0x1]={..._0x423bb4[0x1],[_0x2ed822([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2384d9};},{[_0x2ed822([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ed822([0x68,0x69,0x67,0x68])}),_0x46ebe9[_0x2ed822([0x6f,0x6e])](_0x2ed822([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2566ae=>{_0x4574d8(_0x2566ae[_0x2ed822([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19a2da=!0x0,_0x2125c1(_0x2566ae[_0x2ed822([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2ed822([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ed822([0x6c,0x6f,0x77])}),_0x2a6379[_0x2ed822([0x74,0x68,0x65,0x6e])](()=>{_0x19a2da||_0x139759(_0x2ed822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa48c7(){return _0x46ebe9[_0x2ed822([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ed822([0x76,0x69,0x65,0x77])][_0x2ed822([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2ed822([0x61,0x75,0x74,0x6f]);}function _0x47a4ce(){_0x46ebe9[_0x2ed822([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ed822([0x76,0x69,0x65,0x77])][_0x2ed822([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ed822([0x61,0x75,0x74,0x6f]);}}function _0x44e587(_0x12cf30){const _0xd9a30b=[new window[(_0x2ed822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3129d1=>setTimeout(_0x3129d1,0x7333c96a^_0x110ef6)),_0x2a6379[_0x2ed822([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2ed822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x576da8=>{const _0x51d348=0x733af7a1^_0x110ef6,_0x3aaf58=_0x46a220[_0x2ed822([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2ca558(){_0x3aaf58[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x51d348&&_0x576da8();}_0x2ca558(),_0x3aaf58[_0x2ed822([0x6f,0x6e])](_0x2ed822([0x61,0x64,0x64]),_0x2ca558);})),new window[(_0x2ed822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb69ee0=>{function _0x35461d(){for(const _0x6696a4 in window)if(window[_0x2ed822([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2ed822([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x6696a4))&&window[_0x6696a4]==_0x570bf8)return _0xb69ee0();_0x46ebe9[_0x2ed822([0x73,0x74,0x61,0x74,0x65])]!=_0x2ed822([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2ed822([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35461d,0x733ae42e^_0x110ef6);}_0x423b2b(_0x2ed822([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x35461d();})];return window[_0x2ed822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ed822([0x72,0x61,0x63,0x65])](_0xd9a30b)[_0x2ed822([0x74,0x68,0x65,0x6e])](()=>_0x12cf30);}async function _0x224b4c(){if(await _0x2a6379,_0x423b2b(_0x2ed822([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x321d65=_0x46a220[_0x2ed822([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3003b1=_0x46a220[_0x2ed822([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])](_0x321d65[_0x2ed822([0x69,0x64])]),_0x51fa51=_0x4355f2(_0x2ed822([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x51fa51[_0x2ed822([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x321d65['id'],_0x3003b1?_0x3003b1['id']:null,!0x0),_0x51fa51[_0x2ed822([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2ed822([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x51fa51[_0x2ed822([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x51fa51[_0x2ed822([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x524b3b,void(_0x51fa51[_0x2ed822([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x524b3b);}if(_0x423b2b(_0x2ed822([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x20e6a4=_0x4355f2(_0x2ed822([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x20e6a4[_0x2ed822([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2ed822([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x20e6a4[_0x2ed822([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x20e6a4[_0x2ed822([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x524b3b,_0x20e6a4[_0x2ed822([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x524b3b;}_0x46ebe9[_0x2ed822([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ed822([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x524b3b,_0x46ebe9[_0x2ed822([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ed822([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x524b3b,_0x46ebe9[_0x2ed822([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2ed822([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5db8ee(){return _0x423b2b(_0x2ed822([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4355f2(_0x2ed822([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2ed822([0x73,0x74,0x61,0x74,0x65])]==_0x2ed822([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x305076(){return _0x423b2b(_0x2ed822([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 _0x24d8f8(){return _0x423b2b(_0x2ed822([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1dd665(_0x6d44a1){const _0x5803f0=_0x37724c();_0x46ebe9[_0x5803f0]=_0x2ed822([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])+_0x6d44a1,_0x6d44a1[_0x2ed822([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2ed822([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x37724c()]=_0x570bf8),_0x6d44a1!=_0x2ed822([0x56,0x61,0x6c,0x69,0x64])&&_0x224b4c();}function _0x37724c(){const _0x192228=window[_0x2ed822([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2ed822([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2ed822([0x6e,0x6f,0x77])]())[_0x2ed822([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2ed822([0x2e]),'');let _0xee30a6=_0x2ed822([0x6c]);for(let _0x4e5f69=0x0;_0x4e5f69<_0x192228[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e5f69+=0x2){let _0x55b3ed=window[_0x2ed822([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x192228[_0x2ed822([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e5f69,_0x4e5f69+0x2));_0x55b3ed>=_0x3a6e36[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55b3ed-=_0x3a6e36[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xee30a6+=_0x3a6e36[_0x55b3ed];}return _0xee30a6;}function _0x3aebf7(){const _0x127eea=_0x353faf[_0x2ed822([0x73,0x70,0x6c,0x69,0x74])](_0x2ed822([0x2e]));if(0x3!=_0x127eea[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x113c16(_0x127eea[0x1]);function _0x113c16(_0x534d1d){const _0x1458b9=_0x2ab058(_0x534d1d);return _0x1458b9&&_0x334b49()?_0x1458b9:null;function _0x334b49(){const _0x5455c7=_0x1458b9[_0x2ed822([0x6a,0x74,0x69])],_0x109be9=window[_0x2ed822([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5455c7[_0x2ed822([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5455c7[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x69d841={..._0x1458b9,[_0x2ed822([0x6a,0x74,0x69])]:_0x5455c7[_0x2ed822([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5455c7[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x69d841[_0x2ed822([0x76,0x63])],_0x5e2abe(_0x69d841)==_0x109be9;}}}async function _0x30bc0b(){let _0x1fa17b=!0x0;try{const _0xcf4650=_0x353faf[_0x2ed822([0x73,0x70,0x6c,0x69,0x74])](_0x2ed822([0x2e])),[_0x4cabaf,_0x53caf7,_0x581d2e]=_0xcf4650;return _0xd861a8(_0x4cabaf),await _0x52d0af(_0x4cabaf,_0x53caf7,_0x581d2e),_0x1fa17b;}catch{return!0x1;}function _0xd861a8(_0x3235e2){const _0x418c4e=_0x2ab058(_0x3235e2);_0x418c4e&&_0x418c4e[_0x2ed822([0x61,0x6c,0x67])]==_0x2ed822([0x45,0x53,0x32,0x35,0x36])||(_0x1fa17b=!0x1);}async function _0x52d0af(_0x31b744,_0x480234,_0x4d4671){const _0x58b708=window[_0x2ed822([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2ed822([0x66,0x72,0x6f,0x6d])](_0x1d4d4a(_0x4d4671),_0xea7966=>_0xea7966[_0x2ed822([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5bac32=new window[(_0x2ed822([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2ed822([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x31b744+_0x2ed822([0x2e])+_0x480234),_0x458e00=window[_0x2ed822([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2ed822([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x458e00)return;const _0x46373a=await _0x458e00[_0x2ed822([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2ed822([0x6a,0x77,0x6b]),_0x492c55,{[_0x2ed822([0x6e,0x61,0x6d,0x65])]:_0x2ed822([0x45,0x43,0x44,0x53,0x41]),[_0x2ed822([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2ed822([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2ed822([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x458e00[_0x2ed822([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2ed822([0x6e,0x61,0x6d,0x65])]:_0x2ed822([0x45,0x43,0x44,0x53,0x41]),[_0x2ed822([0x68,0x61,0x73,0x68])]:{[_0x2ed822([0x6e,0x61,0x6d,0x65])]:_0x2ed822([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46373a,_0x58b708,_0x5bac32)||(_0x1fa17b=!0x1);}}function _0x2ab058(_0x5792bb){return _0x5792bb[_0x2ed822([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2ed822([0x65,0x79]))?JSON[_0x2ed822([0x70,0x61,0x72,0x73,0x65])](_0x1d4d4a(_0x5792bb)):null;}function _0x1d4d4a(_0x425825){return window[_0x2ed822([0x61,0x74,0x6f,0x62])](_0x425825[_0x2ed822([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2ed822([0x2b]))[_0x2ed822([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2ed822([0x2f])));}function _0x5e2abe(_0x47abf3){let _0x13d0bf=0x1505;function _0x45120c(_0x1b15fc){for(let _0x15067c=0x0;_0x15067c<_0x1b15fc[_0x2ed822([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15067c++){const _0x1eb904=_0x1b15fc[_0x2ed822([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x15067c);_0x13d0bf=(_0x13d0bf<<0x5)+_0x13d0bf+_0x1eb904,_0x13d0bf&=_0x13d0bf;}}function _0x407024(_0x4599fe){Array[_0x2ed822([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4599fe)?_0x4599fe[_0x2ed822([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x407024):_0x4599fe&&typeof _0x4599fe==_0x2ed822([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2ed822([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4599fe)[_0x2ed822([0x73,0x6f,0x72,0x74])]()[_0x2ed822([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3d8bd2,_0x4c8661])=>{_0x45120c(_0x3d8bd2),_0x407024(_0x4c8661);}):_0x45120c(window[_0x2ed822([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4599fe));}return _0x407024(_0x47abf3),_0x13d0bf>>>0x0;}function _0x1629d1(_0x577dd0){return _0x577dd0[_0x2ed822([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2ed822([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2ed822([0x30]));}function _0x166228(_0x79cf3e){return _0x79cf3e[_0x2ed822([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2ed822([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2ed822([0x6a,0x6f,0x69,0x6e])]('');}function _0x423b2b(_0xfb86a6){return _0x46ebe9[_0x2ed822([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2ed822([0x68,0x61,0x73])](_0xfb86a6);}function _0x4355f2(_0x400ede){return _0x46ebe9[_0x2ed822([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2ed822([0x67,0x65,0x74])](_0x400ede);}function _0x524b3b(){}function _0x2ed822(_0x28c8c7){return _0x28c8c7['map'](_0x50d43d=>String['fromCharCode'](_0x50d43d))['join']('');}_0x1dd665(await _0x297367());}(this);}['createRevision'](_0x35ee48){const _0x41aa60=this['editor']['plugins']['get']('Users');return new I({'id':_0x35ee48['id'],'name':_0x35ee48['name'],'creator':_0x35ee48['creatorId']?_0x41aa60['getUser'](_0x35ee48['creatorId']):null,'diffData':_0x35ee48['diffData']||_0x35ee48['data'],'authors':_0x35ee48['authorsIds']['map'](_0x117d75=>_0x41aa60['getUser'](_0x117d75)),'createdAt':new Date(_0x35ee48['createdAt']),'attributes':_0x35ee48['attributes'],'fromVersion':_0x35ee48['fromVersion'],'toVersion':_0x35ee48['toVersion']});}['addRevision'](_0x4e3d0a,_0x3a551b=0x0){this['_revisions']['add'](_0x4e3d0a,_0x3a551b);}['getRevision'](_0x220f9b){return this['_revisions']['get'](_0x220f9b);}['getRevisions'](_0x1f6631={'toJSON':!0x1}){const _0x1e2bf3=Array['from'](this['_revisions']);return _0x1e2bf3['reverse'](),_0x1f6631['toJSON']?_0x1e2bf3['map'](_0x585f5d=>_0x585f5d['toJSON']()):_0x1e2bf3;}['getIndex'](_0x34ff0b){return this['_revisions']['getIndex'](_0x34ff0b);}['getEarlierVisibleRevision'](_0x428b57){const [,_0x16ded6]=this['getRevisionsIterator'](_0x428b57,{'direction':'earlier'});return _0x16ded6;}['getLaterVisibleRevision'](_0x232295){const [,_0x58356a]=this['getRevisionsIterator'](_0x232295,{'direction':'later'});return _0x58356a;}['getRevisionsInDiff'](_0xa043e5){const _0xf265cd=[];for(const _0x4727e2 of this['getRevisionsIterator'](_0xa043e5['newRevisionId']))if(_0xf265cd['push'](_0x4727e2),_0x4727e2['id']===_0xa043e5['oldRevisionId'])break;return _0xf265cd;}*['getRevisionsIterator'](_0x1c1640,{direction:_0x1ee5fa='earlier',filter:_0x37da0a=()=>!0x0}={}){const _0x39f186='earlier'===_0x1ee5fa?0x1:-0x1;let _0x23c78c=this['_revisions']['get'](_0x1c1640),_0x43c987=this['getIndex'](_0x23c78c);for(yield _0x23c78c;_0x23c78c;){if(_0x43c987+=_0x39f186,_0x23c78c=this['getRevision'](_0x43c987),!_0x23c78c)return;_0x37da0a(_0x23c78c)&&(yield _0x23c78c);}}}class $ extends _0x1d82bd{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x21a697,'c'],[_0xf07d2d,'a'],[_0x478ea6,'e'],[_0x1d5d02,'r'],[_0x220822,'u']]);['_typeCharToViewClass']=new Map([['c',_0x21a697],['a',_0xf07d2d],['e',_0x478ea6],['r',_0x1d5d02],['u',_0x220822]]);async['loadRevisionData'](_0x5e4f0b,_0x3fea48){if(_0x5e4f0b['diffData']||!_0x3fea48)return;const _0x2fe86d=this['editor']['config']['get']('collaboration.channelId'),_0x465109=await _0x3fea48['getRevision']({'channelId':_0x2fe86d,'revisionId':_0x5e4f0b['id']});_0x5e4f0b['diffData']=_0x465109['diffData'];}['getRevisionDocumentData'](_0x36a6bb){const _0x169549={};for(const _0x711ad3 in _0x36a6bb['diffData']){if(_0x36a6bb['diffData'][_0x711ad3]['attachChange']&&!_0x36a6bb['diffData'][_0x711ad3]['attachChange']['isAttached'])continue;const _0x436a28=this['_removeRevisionMarkers'](JSON['parse'](_0x36a6bb['diffData'][_0x711ad3]['insertions'])),_0x52dfae=this['editor']['editing']['view']['document'],_0x20d678=new _0x2b8bd6(_0x52dfae,_0x436a28['map'](_0x5d3c9c=>this['_getViewFromDiffObj'](_0x5d3c9c,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x169549[_0x711ad3]=this['editor']['data']['processor']['toData'](_0x20d678),this['editor']['data']['processor']['useFillerType']('default');}return _0x169549;}['getRevisionRootsAttributes'](_0x13a193){const _0x1cbac2={};for(const _0x4f2cb9 in _0x13a193['diffData'])_0x13a193['diffData'][_0x4f2cb9]['attachChange']&&!_0x13a193['diffData'][_0x4f2cb9]['attachChange']['isAttached']||(_0x1cbac2[_0x4f2cb9]=_0x13a193['diffData'][_0x4f2cb9]['attributesAfter']||{});return _0x1cbac2;}['_getTypeCharForViewElement'](_0x5c1586){return this['_viewClassToTypeChar']['get'](_0x5c1586['constructor']);}['_getViewFromDiffObj'](_0x5283b3,_0x4991fa){const _0x3848ad=this['editor']['editing']['view']['document'];if('string'==typeof _0x5283b3)return new _0x289cd1(_0x3848ad,_0x5283b3);{let _0x368070,_0x239f4d;_0x239f4d='u'==_0x5283b3['type']||'r'==_0x5283b3['type']?[]:_0x5283b3['children']['map'](_0x52cbe0=>this['_getViewFromDiffObj'](_0x52cbe0,_0x4991fa));const _0x1935bb=this['_typeCharToViewClass']['get'](_0x5283b3['type'])||_0x489b9a,_0x4dd3d9=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x368070=new _0x1935bb(_0x3848ad,_0x5283b3['name'],_0x5283b3['attributes'],_0x239f4d),'u'==_0x5283b3['type']&&_0x5283b3['children'][0x0]){const _0x25bdd1=_0x5283b3['children'][0x0];if(_0x368070['render']=function(_0x1ade46){const _0x748356=_0x1ade46['createElement']('div');return _0x748356['innerHTML']=_0x25bdd1,_0x748356['childNodes'][0x0];},_0x4991fa){const _0x55efbd=new _0x2b8bd6(_0x3848ad);_0x55efbd['_appendChild'](_0x368070);const _0x4d8562=Array['from'](_0x4dd3d9['viewChildrenToDom'](_0x55efbd,{'bind':!0x1})),_0x5a0814=_0x4dd3d9['domDocument']['createElement']('div');_0x5a0814['append'](..._0x4d8562),_0x368070=Array['from'](_0x4dd3d9['domChildrenToView'](_0x5a0814))[0x0];}}else{if('r'==_0x5283b3['type']&&_0x5283b3['children'][0x0]){const _0x5ca1e1=_0x5283b3['children'][0x0];if(_0x368070['render']=function(_0x449d24){_0x449d24['innerHTML']=_0x5ca1e1;},_0x4991fa){const _0x50dbc6=new _0x2b8bd6(_0x3848ad);_0x50dbc6['_appendChild'](_0x368070);const _0x361573=Array['from'](_0x4dd3d9['viewChildrenToDom'](_0x50dbc6,{'bind':!0x1})),_0x13f7f0=_0x4dd3d9['domDocument']['createElement']('div');_0x13f7f0['append'](..._0x361573);const _0x4d5c22=Array['from'](_0x4dd3d9['domChildrenToView'](_0x13f7f0));_0x4d5c22['length']>0x1?_0x368070['_appendChild'](_0x4d5c22):_0x368070=_0x4d5c22[0x0];}}}if(_0x5283b3['customProperties']){for(const [_0xbaf223,_0x473cbd]of _0x5283b3['customProperties'])_0x368070['_setCustomProperty'](_0xbaf223,_0x473cbd);}const _0x3dc738=void 0x0===_0x5283b3['fillerOffset']?null:_0x5283b3['fillerOffset'];return null!==_0x3dc738&&(_0x368070['getFillerOffset']=()=>_0x3dc738),_0x368070;}}['_makeModelFromViewString'](_0x2f5784){const _0x8a6eda=JSON['parse'](_0x2f5784),_0x27912a=this['editor']['editing']['view']['document'],_0x16d8e0=new _0x2b8bd6(_0x27912a,_0x8a6eda['map'](_0x39e7cd=>this['_getViewFromDiffObj'](_0x39e7cd,!0x0)));return this['editor']['data']['toModel'](_0x16d8e0);}['_removeRevisionMarkers'](_0x4b9552){return(_0x4b9552=_0x4b9552['filter'](_0x8887fa=>!_0x8887fa['name']||'revision-start'!==_0x8887fa['name']&&'revision-end'!==_0x8887fa['name']))['forEach'](_0x18d350=>{'string'!=typeof _0x18d350&&(_0x18d350['children']=this['_removeRevisionMarkers'](_0x18d350['children']),_0x18d350['attributes']=_0x18d350['attributes']['filter'](_0x56dc89=>!_0x56dc89[0x0]['startsWith']('data-revision-')));}),_0x4b9552;}}function R(_0x4b817d,_0x59044c,_0x5bc8e2){const t=_0x4b817d['t'];switch(_0x59044c){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'},_0x5bc8e2);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5bc8e2);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 _0x1d82bd{['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[_0x2d82c4,S,$,_0x3c3834];}constructor(_0x5b54a9){super(_0x5b54a9),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 _0x9c8877=_0x30afc6();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x9c8877},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 _0x2c1e82=this['repository']['getRevision'](0x0),_0x5aa181=_0x2c1e82&&null===_0x2c1e82['creator']?_0x2c1e82:null;if(this['_continueCurrentRevision']=!!_0x5aa181&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x27b31a=this['_source']['getCurrentRevisionId'](),_0x32afa6=this['repository']['getRevision'](_0x27b31a);if(_0x32afa6)this['_startingVersion']=_0x32afa6['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4f574f=this['_source']['history']['_operations']['find'](_0x3e1be9=>!_0x3e1be9['_isInit']),_0x462d45=_0x4f574f?_0x4f574f['baseVersion']:this['_source']['history']['version'];_0x2c1e82?(_0x2c1e82['toVersion']<_0x462d45&&_0x2c1e82['_update']({'toVersion':_0x462d45}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5aa181['id'],this['_startingVersion']=_0x5aa181['fromVersion']):(this['_startingVersion']=_0x2c1e82['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x462d45,this['_continueCurrentRevision']=!0x1);}}else _0x5aa181&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5aa181['toVersion'],this['editor']['model']['document']['history']['version']),_0x5aa181['fromVersion']===_0x5aa181['toVersion']?(0x0!==_0x5aa181['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5aa181['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5aa181['id'],this['_startingVersion']=_0x5aa181['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',_0x2b6d08=>!_0x2b6d08),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4f3d5c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x375f31;for(const _0x421acf in _0x4f3d5c){const _0x44d35e=_0x421acf,_0x4f075b=_0x4f3d5c[_0x44d35e];if('revisionHistoryLicenseKeyValid'==_0x4f075b||'revisionHistoryLicenseKeyInvalid'==_0x4f075b||'revisionHistoryLicenseKeyExpired'==_0x4f075b||'revisionHistoryLicenseKeyDomainLimit'==_0x4f075b||'revisionHistoryLicenseKeyNotAllowed'==_0x4f075b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4f075b||'revisionHistoryLicenseKeyTrialLimit'==_0x4f075b||'revisionHistoryLicenseKeyUsageLimit'==_0x4f075b){delete _0x4f3d5c[_0x44d35e],_0x375f31=_0x4f075b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x375f31&&_0x4f3d5c['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x375f31&&_0x4f3d5c['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x375f31&&_0x4f3d5c['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x375f31&&_0x4f3d5c['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x375f31&&_0x4f3d5c['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x375f31&&_0x4f3d5c['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x375f31&&_0x4f3d5c['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3bff0e=this['repository']['getRevision'](0x0),_0x3d0233=await this['getRevisionDocumentData'](_0x3bff0e),_0x1a8917=await this['getRevisionRootsAttributes'](_0x3bff0e);this['_replaceEditorDataWithRevisionData'](_0x3d0233,_0x1a8917);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x23b9f7){this['_source']=_0x23b9f7;}async['update'](){const _0xc51786=await this['_source']['getLatestVersion']();if(_0xc51786>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1f9ec7=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xc51786});_0x1f9ec7['authors']=_0x1f9ec7['authorsIds']['map'](_0x32119e=>this['editor']['plugins']['get']('Users')['getUser'](_0x32119e)),this['currentRevision']['_update'](_0x1f9ec7);}}async['saveRevision'](_0x579139={},_0x1e8daa=null){const _0x1a5838=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1e8daa>this['currentRevision']['toVersion']&&(_0x1e8daa=null),null===_0x1e8daa&&(_0x1e8daa=await this['_source']['getLatestVersion']());const _0x1e1ed=this['_getFromVersion'](_0x1e8daa),_0x493578=this['buildRevisionData']({'from':_0x1e1ed,'to':_0x1e8daa});if(this['currentRevision']['toVersion']<_0x1e8daa){const _0x125c93=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1e8daa,'to':_0x1e8daa});_0x125c93['authors']=[],_0x125c93['authorsIds']=[],_0x125c93['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x125c93,!0x0),delete _0x125c93['authors'],_0x1a5838['push'](_0x125c93);}_0x579139['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x579139['name']=_0x579139['name']||null,_0x579139['id']=_0x579139['id']||_0x30afc6(),_0x579139={..._0x579139,..._0x493578};const _0x20b979=this['addRevisionData'](_0x579139);_0x1a5838['push'](_0x579139);const _0x581375=this['repository']['getIndex'](_0x20b979);if(0x0!==_0x581375){const _0xfc7faa=this['repository']['getRevision'](_0x581375-0x1);if(_0xfc7faa['fromVersion']!==_0x1e8daa){const _0x33acc7=this['_revisionDataBuilder']['getData'](_0x1e8daa,_0xfc7faa['toVersion']),_0x11a6b5={'id':_0xfc7faa['id'],'diffData':_0x33acc7['diffData'],'authorsIds':_0x33acc7['authorsIds'],'authors':_0x33acc7['authorsIds']['map'](_0x5c5e50=>this['editor']['plugins']['get']('Users')['getUser'](_0x5c5e50)),'fromVersion':_0x1e8daa};_0xfc7faa===this['currentRevision']&&(_0x11a6b5['createdAt']=new Date(_0x579139['createdAt']['getTime']()+0xa)),_0xfc7faa['_update'](_0x11a6b5,!0x0),delete _0x11a6b5['authors'],_0x1a5838['push'](_0x11a6b5);}}if(this['adapter']){for(const _0x1684f7 of _0x1a5838)this['_bufferUpdate'](_0x1684f7['id'],_0x1684f7,!0x0);this['sendBufferedUpdates']();}return _0x20b979;}['addRevisionData'](_0x3e36a7){const _0x9b1d84=this['repository']['createRevision'](_0x3e36a7);return this['adapter']&&_0x9b1d84['on']('_update',(_0x4073db,_0x10a836,_0x44be83)=>{_0x44be83||(this['_bufferUpdate'](_0x10a836['id'],_0x10a836,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x9b1d84,this['_findInsertionIndex'](_0x9b1d84)),_0x9b1d84;}async['getRevisionDocumentData'](_0x444746){return await this['_utils']['loadRevisionData'](_0x444746,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x444746);}async['getRevisionRootsAttributes'](_0x5cdb86){return await this['_utils']['loadRevisionData'](_0x5cdb86,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5cdb86);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1864d5=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x31345f=0x0;_0x31345f<_0x1864d5['length'];_0x31345f++){const _0x327c75=_0x1864d5[_0x31345f];let _0x243f58=!0x1;for(const _0x493aa9 of Object['keys'](_0x327c75))void 0x0===_0x327c75[_0x493aa9]?delete _0x327c75[_0x493aa9]:'id'!==_0x493aa9&&(_0x243f58=!0x0);_0x243f58||(_0x1864d5[_0x31345f]=null);}if(_0x1864d5=_0x1864d5['filter'](_0x14d60c=>null!==_0x14d60c),!_0x1864d5['length'])return;for(let _0x8a1070=0x0;_0x8a1070<_0x1864d5['length'];_0x8a1070++){const _0x55825b=_0x1864d5[_0x8a1070];void 0x0!==_0x55825b['fromVersion']&&void 0x0===_0x55825b['toVersion']&&(_0x55825b['toVersion']=this['repository']['getRevision'](_0x55825b['id'])['toVersion']),void 0x0!==_0x55825b['toVersion']&&void 0x0===_0x55825b['fromVersion']&&(_0x55825b['fromVersion']=this['repository']['getRevision'](_0x55825b['id'])['fromVersion']);}const _0xd19a37=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1864d5,_0xd19a37)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xda07b1=>{if(_0xda07b1){for(const _0x128592 of _0xda07b1)this['setRevisionData']({'id':_0x128592['id'],'createdAt':_0x128592['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x5c4750=null,from:_0x260334=null,to:_0x53e659=null}){_0x260334=null!==_0x260334?_0x260334:_0x5c4750['fromVersion'],_0x53e659=null!==_0x53e659?_0x53e659:_0x5c4750['toVersion'];const _0x3b0a57=this['_revisionDataBuilder']['getData'](_0x260334,_0x53e659),_0x179c01={'diffData':_0x3b0a57['diffData'],'authorsIds':_0x3b0a57['authorsIds'],'fromVersion':_0x260334,'toVersion':_0x53e659};if(!_0x5c4750||_0x53e659!==_0x5c4750['toVersion']){const _0x5eb134=_0x53e659-0x1,_0x2590fc=this['_source']['history']['getOperation'](_0x5eb134);_0x179c01['createdAt']=_0x2590fc&&_0x2590fc['createdAt']||new Date();}if(this['_loadedStateData']&&_0x260334===this['_loadedStateData']['fromVersion']){for(const _0x3029ca of this['_loadedStateData']['authors'])_0x179c01['authorsIds']['includes'](_0x3029ca['id'])||_0x179c01['authorsIds']['push'](_0x3029ca['id']);}return _0x179c01;}['_bufferUpdate'](_0x19e808,_0xd440f,_0x482c91){if(this['_bufferedUpdates']['has'](_0x19e808)){const _0x59a77c=this['_bufferedUpdates']['get'](_0x19e808);_0xd440f=_0x482c91?{..._0x59a77c,..._0xd440f}:{..._0xd440f,..._0x59a77c};}this['_bufferedUpdates']['set'](_0x19e808,_0xd440f);}['setRevisionData'](_0x46ab01){const _0x4a0ee1=this['repository']['getRevision'](_0x46ab01['id']);if(_0x46ab01['createdAt']&&(_0x46ab01['createdAt']=new Date(_0x46ab01['createdAt'])),_0x46ab01['authorsIds']){const _0x25bc95=this['editor']['plugins']['get']('Users');_0x46ab01['authors']=_0x46ab01['authorsIds']['map'](_0x548b52=>_0x25bc95['getUser'](_0x548b52));}_0x4a0ee1['_update'](_0x46ab01,!0x0);}['_createInitialRevision'](_0x51b0c3){const _0x332c2e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x332c2e)this['_initialRevisionId']=_0x332c2e['id'];else{const _0x316ad6=!this['editor']['model']['document']['roots']['find'](_0x3197cb=>this['editor']['model']['hasContent'](_0x3197cb)),_0x53496f=this['editor']['plugins']['get']('Users')['me']['id'],_0x359008=R(this['editor']['locale'],_0x316ad6?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x51b0c3,'to':_0x51b0c3,'id':this['_initialRevisionId'],'name':_0x359008,'creatorId':_0x53496f});}}['_createCurrentRevision'](_0x277757){const _0x4cf654=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4cf654),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x277757,'to':_0x277757,'id':_0x4cf654,'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'](_0x168cfe,_0x4ce379){let _0x4862f3=this['editor']['config']['get']('initialData'),_0x28cf54=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4862f3){_0x4862f3={};for(const _0x1b4061 of this['editor']['model']['document']['getRootNames']())_0x4862f3[_0x1b4061]='';}if('string'==typeof _0x4862f3&&(_0x4862f3={'main':_0x4862f3}),void 0x0===_0x28cf54){_0x28cf54={};for(const _0x37daeb of this['editor']['model']['document']['getRootNames']())_0x28cf54[_0x37daeb]={};}let _0x20d4fd=!0x1;const _0x1b0add=Object['keys'](_0x4862f3),_0x2ef1c4=Object['keys'](_0x168cfe);for(const _0x3e5b32 of _0x1b0add){if(_0x4862f3[_0x3e5b32]!==_0x168cfe[_0x3e5b32]&&''!==_0x4862f3[_0x3e5b32]['trim']()){_0x20d4fd=!0x0;break;}if(!_0x16fd70(_0x28cf54[_0x3e5b32],_0x4ce379[_0x3e5b32])&&Object['keys'](_0x28cf54[_0x3e5b32])['length']>0x0){_0x20d4fd=!0x0;break;}}_0x20d4fd||(_0x20d4fd=_0x2ef1c4['some'](_0x4a0422=>!this['editor']['model']['document']['getRoot'](_0x4a0422))),_0x20d4fd&&_0x304754('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4862f3,'editorRootsAttributes':_0x28cf54,'revisionData':_0x168cfe,'revisionRootsAttributes':_0x4ce379}),this['editor']['config']['set']('initialData',_0x168cfe),this['editor']['config']['set']('rootsAttributes',_0x4ce379);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x33cafa=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x33cafa['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2778be){const _0x861ad7=this['repository']['getRevisions']();_0x861ad7['reverse']();let _0x1bfdd5=0x0;for(;_0x1bfdd5<_0x861ad7['length'];){const _0x4f9537=_0x861ad7[_0x1bfdd5];if(_0x4f9537===this['currentRevision']){_0x1bfdd5++;continue;}if(_0x4f9537['id']===this['_initialRevisionId'])break;const _0x385d85=_0x2778be['toVersion']-_0x4f9537['toVersion']||_0x2778be['fromVersion']-_0x4f9537['fromVersion'];if(_0x385d85>0x0)break;if(_0x385d85<0x0)_0x1bfdd5++;else{if(!_0x2778be['creator']&&_0x4f9537['creator'])break;if(_0x4f9537['creator']||!_0x2778be['creator']){if(_0x2778be['createdAt']>_0x4f9537['createdAt'])break;_0x1bfdd5++;}else _0x1bfdd5++;}}return _0x1bfdd5;}['_getFromVersion'](_0x4ecf37){const _0x13ef4b=this['repository']['getRevisions']();_0x13ef4b['reverse'](),_0x13ef4b['shift']();const _0x7d1b49=_0x13ef4b['find'](_0x379987=>_0x379987['toVersion']<=_0x4ecf37)['toVersion'];return _0x7d1b49<this['_startingVersion']?this['_startingVersion']:_0x7d1b49;}['_makeRevision']({name:_0x32416d,from:_0x1ffbf4,to:_0x5ced68,creatorId:_0x395714,id:_0x28be01}){const _0x51e12e=this['buildRevisionData']({'from':_0x1ffbf4,'to':_0x5ced68});_0x51e12e['name']=_0x32416d,_0x51e12e['creatorId']=_0x395714,_0x51e12e['id']=_0x28be01;const _0x5925fa=this['addRevisionData'](_0x51e12e);return this['adapter']&&this['_bufferUpdate'](_0x51e12e['id'],_0x51e12e,!0x0),_0x5925fa;}['_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(_0x2e30af){this['editor']=_0x2e30af,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'](_0x291bc4){this['source']=_0x291bc4;const _0x3dfbd1=new Map(),_0x2d9ef9=new Map(),_0x2d600a=this['editor']['model']['document']['roots']['map'](_0x4bf59d=>_0x4bf59d['rootName']);for(const _0x114d6c of _0x2d600a){const _0xb9360d=this['editor']['model']['document']['getRoot'](_0x114d6c),_0x220ee7=x(_0xb9360d);_0x3dfbd1['set'](_0x114d6c,_0x220ee7),_0x2d9ef9['set'](_0x114d6c,Object['fromEntries'](_0xb9360d['getAttributes']()));}const _0x1a7216=Array['from'](this['editor']['model']['markers'])['map'](_0x5e5098=>[_0x5e5098['name'],_0x5e5098['getRange']()]),_0x478747=this['source']['version'];this['_saveMetaData'](_0x478747,_0x3dfbd1,_0x1a7216,_0x2d9ef9),this['_startingRevisionId']=this['_revisionId'];const _0x3d6323=new Map(),_0x3668f2=new Map();for(const _0x4a2486 of _0x2d600a){const _0x3daa6f=N(_0x4a2486);_0x3d6323['set'](_0x4a2486,_0x3daa6f),_0x3668f2['set'](_0x4a2486,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3d6323,[],_0x3668f2);}['getData'](_0x5d132b,_0x4a11a9){if(this['_lastFrom']===_0x5d132b&&this['_lastTo']<=_0x4a11a9)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4a11a9,!0x0);else{if(!this['_savedMetaData']['has'](_0x5d132b)){const _0x2efb32=this['_getPreviousFrom'](_0x5d132b);this['_calculateMetaData'](_0x2efb32,_0x5d132b,!0x1);}this['_calculateMetaData'](_0x5d132b,_0x4a11a9,!0x0);}return this['_lastFrom']=_0x5d132b,this['_lastTo']=_0x4a11a9,this['_getState']();}['loadState'](_0x532457){const _0x3d5d69=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x532457['fromVersion'],this['_lastTo']=_0x532457['toVersion'];for(const _0x5121dc in _0x532457['diffData']){const _0x1cd427=_0x532457['diffData'][_0x5121dc]['attachChange'],_0x35098e=_0x32f284(_0x532457['diffData'][_0x5121dc]['attributesBefore'])||{},_0x1f7ccc=_0x3d5d69['_makeModelFromViewString'](_0x532457['diffData'][_0x5121dc]['deletions']);_0x1f7ccc['rootName']=_0x5121dc,_0x1f7ccc['_isAttached']=!_0x1cd427||!_0x1cd427['isAttached'],_0x1f7ccc['isAttached']=()=>_0x1f7ccc['_isAttached'],this['_baseRoots']['set'](_0x5121dc,_0x1f7ccc),this['_baseRootsAttributes']['set'](_0x5121dc,_0x35098e),_0x1cd427&&this['_touchedRoots']['set'](_0x5121dc,_0x1cd427);const _0xbbacc4=this['_makeIdsRoot'](_0x1f7ccc);this['_baseIdsRoots']['set'](_0x5121dc,_0xbbacc4);for(const [_0x1930d0,_0x4218e9]of _0x1f7ccc['markers']){if(!_0x1930d0['startsWith']('revision:'))continue;const _0x386e9d=_0x1930d0['split'](':')[0x2];for(const _0x4f344a of _0x4218e9['getWalker']({'singleCharacters':!0x0})){const _0x12b41c=this['_getVidAttributeName'](_0x4f344a),_0x359a57='elementEnd'==_0x4f344a['type']?_0x4f344a['previousPosition']['path']['slice'](0x0,-0x1):_0x4f344a['previousPosition']['path'],_0x6eb562=_0xbbacc4['getNodeByPath'](_0x359a57)['getAttribute'](_0x12b41c);this['_touched']['set'](_0x6eb562,{'userId':_0x386e9d});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2fbbe9=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x50ac48=>!this['_touched']['has'](_0x50ac48));let _0x505793=0x0;const _0x4fa426=new Map();for(const _0x54b51a in _0x532457['diffData']){const _0x364b64=_0x532457['diffData'][_0x54b51a]['attachChange'],_0x55a697=_0x32f284(_0x532457['diffData'][_0x54b51a]['attributesAfter'])||{},_0x354ea9=_0x3d5d69['_makeModelFromViewString'](_0x532457['diffData'][_0x54b51a]['insertions']);_0x354ea9['rootName']=_0x54b51a,_0x354ea9['_isAttached']=!_0x364b64||_0x364b64['isAttached'],_0x354ea9['isAttached']=()=>_0x354ea9['_isAttached'],this['_diffRoots']['set'](_0x54b51a,_0x354ea9),this['_diffRootsAttributes']['set'](_0x54b51a,_0x55a697);const _0x1a836e=this['_makeIdsRoot'](_0x354ea9,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x54b51a,_0x1a836e),_0x4fa426['set'](_0x54b51a,_0x354ea9['isAttached']()?_0x55a697:{});for(const [_0x47a82a,_0x542f04]of _0x354ea9['markers']){if(!_0x47a82a['startsWith']('revision:'))continue;const _0x573df5=_0x47a82a['split'](':')[0x2];for(const _0x3fcdc9 of _0x542f04['getWalker']({'singleCharacters':!0x0})){const _0x13c25c=this['_getVidAttributeName'](_0x3fcdc9),_0x5d750e=this['_revisionId']++,_0x5ab55f='elementEnd'==_0x3fcdc9['type']?_0x3fcdc9['previousPosition']['path']['slice'](0x0,-0x1):_0x3fcdc9['previousPosition']['path'];_0x1a836e['getNodeByPath'](_0x5ab55f)['_setAttribute'](_0x13c25c,_0x5d750e),this['_touched']['set'](_0x5d750e,{'userId':_0x573df5});}}for(const _0x519022 of this['editor']['model']['createRangeIn'](_0x354ea9)['getWalker']({'singleCharacters':!0x0})){const _0x43d7d7=this['_getVidAttributeName'](_0x519022),_0x4d9a10='elementEnd'==_0x519022['type']?_0x519022['previousPosition']['path']['slice'](0x0,-0x1):_0x519022['previousPosition']['path'],_0x3a7b26=_0x1a836e['getNodeByPath'](_0x4d9a10);_0x3a7b26['getAttribute'](_0x43d7d7)>0x0||_0x3a7b26['_setAttribute'](_0x43d7d7,_0x2fbbe9[_0x505793++]);}for(const [_0x205d1f,_0x819d1f]of _0x354ea9['markers'])_0x205d1f['startsWith']('revision:')||this['_markers']['set'](_0x205d1f,_0x819d1f);}const _0x2f55c5=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2f55c5),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2f55c5,0x1));const _0x815f4c=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x815f4c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x815f4c,0x1));const _0x2d26cf=Array['from'](this['_diffRoots'])['map'](([_0x5a553e,_0x4ce6e2])=>[_0x5a553e,x(_0x4ce6e2)]);this['_saveMetaData'](this['_lastTo'],_0x2d26cf,this['_markers'],_0x4fa426);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x18e0b1,_0x437a40,_0x5789eb,_0x451c2a){const _0x4846dd=new Map(_0x437a40),_0x5d8200=new Map(_0x32f284(_0x451c2a)),_0x198426=new Map();for(const [_0x410138,_0x37fc18]of _0x5789eb)_0x198426['set'](_0x410138,{'start':_0x37fc18['start']['clone'](),'end':_0x37fc18['end']['clone'](),'rootName':_0x37fc18['root']['rootName']});this['_savedMetaData']['set'](_0x18e0b1,{'roots':_0x4846dd,'markers':_0x198426,'rootsAttributes':_0x5d8200});}['_removeMetaData'](_0x50f9d4){this['_savedMetaData']['delete'](_0x50f9d4);}['_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'](_0x206886,_0x544e4a=null){let _0x369843=null;_0x206886['is']('documentFragment')||(_0x369843=new _0x5b2de1(_0x206886['name'],{'vid_start':null===_0x544e4a?this['_revisionId']++:_0x544e4a++}));const _0x491245=[];for(const _0x2e6a79 of _0x206886['getChildren']())if(_0x2e6a79['is']('element')){_0x491245['push'](this['_makeIdsRoot'](_0x2e6a79,_0x544e4a));const _0x3197e9=_0x491245[_0x491245['length']-0x1];null!==_0x544e4a&&(_0x544e4a=_0x3197e9['is']('element','$text')?_0x3197e9['getAttribute']('vid')+0x1:_0x3197e9['getAttribute']('vid_end')+0x1);}else{for(let _0x294030=0x0;_0x294030<_0x2e6a79['offsetSize'];_0x294030++)_0x491245['push'](new _0x5b2de1('$text',{'vid':null===_0x544e4a?this['_revisionId']++:_0x544e4a++}));}if(_0x206886['is']('documentFragment')){const _0x5d88ad=N(_0x206886['rootName']);return _0x5d88ad['_insertChild'](0x0,_0x491245),_0x5d88ad;}return _0x369843['_setAttribute']('vid_end',null===_0x544e4a?this['_revisionId']++:_0x544e4a++),_0x369843['_insertChild'](0x0,_0x491245),_0x369843;}['_calculateMetaData'](_0x2a8d29,_0x23726c,_0x78ba44){this['_reset']();const {roots:_0x2c1e3f,markers:_0x2e11f1,rootsAttributes:_0x298ef6}=this['_savedMetaData']['get'](_0x2a8d29);this['_baseRoots']=new Map(_0x2c1e3f),this['_baseRootsAttributes']=new Map(_0x32f284(_0x298ef6));for(const [_0x5a173,_0x388eb7]of this['_baseRoots'])if('$graveyard'!==_0x5a173&&(this['_diffRoots']['set'](_0x5a173,x(_0x388eb7)),this['_diffRootsAttributes']=new Map(_0x32f284(_0x298ef6)),_0x78ba44)){const _0x5a2f1e=this['_revisionId'];this['_idsRoots']['set'](_0x5a173,this['_makeIdsRoot'](_0x388eb7)),this['_baseIdsRoots']['set'](_0x5a173,this['_makeIdsRoot'](_0x388eb7,_0x5a2f1e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x78ba44&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1d2a04,_0x4b1afd]of _0x2e11f1){const _0x3a433d=this['_baseRoots']['get'](_0x4b1afd['rootName']),_0x335fff=this['_diffRoots']['get'](_0x4b1afd['rootName']),_0x3d7d76=new _0x45b9a5(this['_fixPosition'](_0x4b1afd['start'],_0x3a433d),this['_fixPosition'](_0x4b1afd['end'],_0x3a433d)),_0x33c43d=this['_fixRange'](_0x3d7d76,_0x335fff);_0x3a433d['markers']['set'](_0x1d2a04,_0x3d7d76),this['_markers']['set'](_0x1d2a04,_0x33c43d);}this['_applyOperations'](_0x2a8d29,_0x23726c,_0x78ba44);}['_applyOperations'](_0x2a424c,_0x15ed5e,_0x45d7ee){for(const _0x542699 of this['source']['getOperations'](_0x2a424c,_0x15ed5e))this['_handleOperation'](_0x542699,_0x45d7ee);for(const _0x3aed92 of this['_diffRoots']['values']())_0x3aed92['markers']['clear']();for(const [_0x2eb740,_0x3c879c]of this['_markers']){this['_diffRoots']['get'](_0x3c879c['root']['rootName'])['markers']['set'](_0x2eb740,_0x3c879c['clone']());}const _0x55fbdc=new Map(),_0x41c6ea=new Map();for(const [_0x4a2053,_0x3c6946]of this['_diffRoots'])_0x55fbdc['set'](_0x4a2053,x(_0x3c6946)),_0x41c6ea['set'](_0x4a2053,this['_diffRootsAttributes']['get'](_0x4a2053));this['_saveMetaData'](_0x15ed5e,_0x55fbdc,this['_markers'],_0x41c6ea);}['_getPreviousFrom'](_0x3d6b45){const _0x48616b=Array['from'](this['_savedMetaData']['keys']());_0x48616b['sort']((_0x3684e0,_0xda8ce9)=>_0x3684e0-_0xda8ce9),_0x48616b['reverse']();for(const _0x4d3c63 of _0x48616b)if(_0x4d3c63<_0x3d6b45)return _0x4d3c63;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4381e0,_0x20a014){const _0x4e433a=Array['from'](_0x20a014['markers'])['map'](([_0x42c11a,_0x308da4])=>[_0x42c11a,this['_fixRange'](_0x308da4,_0x4381e0)]);_0x4381e0['markers']=new Map(_0x4e433a);}['_transformMarkers'](_0x4099d9){for(const _0x5b357c of this['_markers']['values']()){const _0x5780e8=_0x5b357c['getTransformedByOperation'](_0x4099d9),_0x3705cb=_0x45b9a5['_createFromRanges'](_0x5780e8);_0x5b357c['start']=_0x3705cb['start'],_0x5b357c['end']=_0x3705cb['end'];}}['_handleOperation'](_0x448e29,_0x21c6fa){if('addRoot'!=_0x448e29['type']&&'detachRoot'!=_0x448e29['type']){if('insert'==_0x448e29['type']){const _0x3dbecf=_0x448e29['position']['root']['rootName'];this['_diffRoots']['has'](_0x3dbecf)||(this['_diffRoots']['set'](_0x3dbecf,N(_0x3dbecf,!0x0)),this['_diffRootsAttributes']['set'](_0x3dbecf,{}),_0x21c6fa&&this['_idsRoots']['set'](_0x3dbecf,N(_0x3dbecf,!0x0)));}else{if('addRootAttribute'==_0x448e29['type']||'removeRootAttribute'==_0x448e29['type']||'changeRootAttribute'==_0x448e29['type'])return void this['_handleRootAttributeOperation'](_0x448e29);'marker'==_0x448e29['type']&&this['_handleMarkerOperation'](_0x448e29);}if('marker'!==_0x448e29['type']){const _0x55db81=this['_cloneOperation'](_0x448e29,this['_diffRoots']);_0x55db81['_execute'](),this['_transformMarkers'](_0x55db81);}if(_0x21c6fa)switch(_0x448e29['type']){case'insert':this['_handleInsertOperation'](_0x448e29);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x448e29);break;case'merge':this['_handleMergeOperation'](_0x448e29);break;case'split':this['_handleSplitOperation'](_0x448e29);}}else this['_handleRootOperation'](_0x448e29,_0x21c6fa);}['_cloneOperation'](_0x569736,_0xdca2df){const _0x289bf6=_0x569736['clone']();return _0x289bf6['_authorId']=_0x569736['_authorId'],this['_fixOperation'](_0x289bf6,_0xdca2df),_0x289bf6;}['_getBaseVids'](_0x48ef37){return _0x48ef37['map'](_0x13be7d=>{const _0x38d612=this['_getVidAttributeName'](_0x13be7d);return Number(_0x13be7d['item']['getAttribute'](_0x38d612));});}['_generateTape'](_0x2bd78e,_0x4751c6){if(_0x2bd78e['is']('element','$text'))_0x4751c6['push']({'item':_0x2bd78e,'type':'text'});else{_0x2bd78e['is']('element')&&_0x4751c6['push']({'item':_0x2bd78e,'type':'elementStart'});for(const _0x401621 of _0x2bd78e['getChildren']())this['_generateTape'](_0x401621,_0x4751c6);_0x2bd78e['is']('element')&&_0x4751c6['push']({'item':_0x2bd78e,'type':'elementEnd'});}return _0x4751c6;}['_getState'](){const _0x580ac0=new Map(this['_touched']),_0x182457=new Map(_0x580ac0),_0x31bd1e=new Map(),_0x3b8ddc={'insertions':{},'deletions':{}},_0x4a03ad={'insertions':{},'deletions':{}},_0x552a5a=new Map(),_0xe2c37=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xe2c37['delete']('$graveyard');for(const _0x1eed16 of _0xe2c37){const _0xb782bb=this['_diffRoots']['get'](_0x1eed16)||N(_0x1eed16,!0x1),_0x3fed7e=this['_baseRoots']['get'](_0x1eed16)||N(_0x1eed16,!0x1);_0xb782bb['isAttached']()||_0x3fed7e['isAttached']()?(_0x3b8ddc['insertions'][_0x1eed16]=x(_0xb782bb),_0x3b8ddc['deletions'][_0x1eed16]=x(_0x3fed7e),this['_copyMarkers'](_0x3b8ddc['deletions'][_0x1eed16],_0x3fed7e),this['_copyMarkers'](_0x3b8ddc['insertions'][_0x1eed16],_0xb782bb),_0x4a03ad['insertions'][_0x1eed16]=this['_generateTape'](this['_idsRoots']['get'](_0x1eed16),[]),_0x4a03ad['deletions'][_0x1eed16]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1eed16)||N(_0x1eed16,!0x1),[])):_0xe2c37['delete'](_0x1eed16);}for(const _0x2bc29d of _0xe2c37){const _0x51a03f=_0x4a03ad['insertions'][_0x2bc29d];for(const _0x4a6fa7 of _0x51a03f){const _0x239e4b=this['_getVidAttributeName'](_0x4a6fa7),_0x5ee873=_0x4a6fa7['item']['getAttribute'](_0x239e4b);_0x182457['delete'](_0x5ee873),_0x5ee873>=this['_startingRevisionId']&&_0x31bd1e['set'](_0x5ee873,_0x580ac0['get'](_0x5ee873));}}for(const _0x316b42 of _0xe2c37){const _0x53f741=_0x4a03ad['insertions'][_0x316b42],_0xd18763=this['_getBaseVids'](_0x4a03ad['deletions'][_0x316b42]);let _0x2d4c8e=0x0;for(const _0x20957e of _0x53f741){const _0x1f97f8=this['_getVidAttributeName'](_0x20957e),_0x5e5b19=_0x20957e['item']['getAttribute'](_0x1f97f8);if(!_0x31bd1e['has'](_0x5e5b19)&&!_0x552a5a['has'](_0x5e5b19)){if(_0x182457['has'](_0x5e5b19))_0x2d4c8e++;else{if(_0x5e5b19!=_0xd18763[_0x2d4c8e]){const _0x37d87a=_0x580ac0['get'](_0x5e5b19)||_0x580ac0['get'](_0xd18763[_0x2d4c8e]);for(;_0x5e5b19!=_0xd18763[_0x2d4c8e];)_0x182457['has'](_0xd18763[_0x2d4c8e])||(_0x552a5a['set'](_0xd18763[_0x2d4c8e],_0x37d87a),_0x580ac0['set'](_0xd18763[_0x2d4c8e],_0x37d87a)),_0x2d4c8e++;}_0x2d4c8e++;}}}}for(const _0x28c20c of _0xe2c37){const _0x4aa19f=_0x4a03ad['insertions'][_0x28c20c];for(const _0x7b33e6 of _0x4aa19f){const _0x3f5c9a=this['_getVidAttributeName'](_0x7b33e6),_0x5c6a89=_0x7b33e6['item']['getAttribute'](_0x3f5c9a);if(_0x552a5a['has'](_0x5c6a89)){const _0x5b2ec9=_0x552a5a['get'](_0x5c6a89);_0x182457['has'](_0x5c6a89)||_0x182457['set'](_0x5c6a89,{..._0x5b2ec9}),_0x31bd1e['set'](_0x5c6a89,{..._0x5b2ec9});}}}for(const _0x3c8358 of _0x182457['keys']())_0x3c8358>=this['_startingRevisionId']&&_0x182457['delete'](_0x3c8358);const _0x1f5d81=new Map();for(const _0x5ee648 of _0xe2c37){let _0x12d716=_0x4a03ad['insertions'][_0x5ee648];for(const _0x48642b of _0x12d716)if(_0x48642b['item']['is']('element','tableCell')){const _0x223028=this['_getVidAttributeName'](_0x48642b),_0xbfd83e=_0x48642b['item']['getAttribute'](_0x223028);if(_0x31bd1e['has'](_0xbfd83e)){const _0x34c9f9=_0x48642b['item']['parent']['parent']['getAttribute']('vid_start'),_0x38cea0=_0x1f5d81['get'](_0x34c9f9)||new Set();_0x38cea0['add'](_0x31bd1e['get'](_0xbfd83e)['userId']),_0x1f5d81['set'](_0x34c9f9,_0x38cea0);}}_0x12d716=_0x4a03ad['deletions'][_0x5ee648];for(const _0x669785 of _0x12d716)if(_0x669785['item']['is']('element','tableCell')){const _0x3665a1=this['_getVidAttributeName'](_0x669785),_0x361ba6=_0x669785['item']['getAttribute'](_0x3665a1);if(_0x182457['has'](_0x361ba6)){const _0x57b1cd=_0x669785['item']['parent']['parent']['getAttribute']('vid_start'),_0x158860=_0x1f5d81['get'](_0x57b1cd)||new Set();_0x158860['add'](_0x182457['get'](_0x361ba6)['userId']),_0x1f5d81['set'](_0x57b1cd,_0x158860);}}for(const _0x6bf6ba of _0x1f5d81['keys']())(_0x31bd1e['has'](_0x6bf6ba)||_0x182457['has'](_0x6bf6ba))&&_0x1f5d81['delete'](_0x6bf6ba);}for(const _0x1e8c00 of _0xe2c37){const _0x2df00d=_0x4a03ad['insertions'][_0x1e8c00];let _0x4cae2f=null,_0x4937e7=null;for(const _0x8a7c54 of _0x2df00d){const _0x52a947=this['_getVidAttributeName'](_0x8a7c54),_0x275bac=_0x8a7c54['item']['getAttribute'](_0x52a947),_0x5d076a=_0x1f5d81['get'](_0x275bac);_0x5d076a&&'elementStart'==_0x8a7c54['type']&&(_0x4cae2f=Array['from'](_0x5d076a)[0x0],_0x4937e7=_0x8a7c54['item']['getAttribute']('vid_end')),_0x4cae2f&&(_0x182457['set'](_0x275bac,{'userId':_0x4cae2f}),_0x31bd1e['set'](_0x275bac,{'userId':_0x4cae2f})),_0x275bac==_0x4937e7&&(_0x4cae2f=null,_0x4937e7=null);}}const _0x3c899a={},_0x3dcdc9=new Set();for(const _0x11e885 of _0xe2c37){const _0xd4afae=_0x3b8ddc['deletions'][_0x11e885],_0x5a8c83=_0x3b8ddc['insertions'][_0x11e885];for(const {userId:_0xc0448}of this['_touchedMarkers']['values']())null!==_0xc0448&&_0x3dcdc9['add'](_0xc0448);for(const {userId:_0x691b85}of this['_touchedRoots']['values']())null!==_0x691b85&&_0x3dcdc9['add'](_0x691b85);this['_markChanges'](_0x5a8c83,_0x4a03ad['insertions'][_0x11e885],_0x31bd1e,'insertion',_0x3dcdc9),this['_markChanges'](_0xd4afae,_0x4a03ad['deletions'][_0x11e885],_0x182457,'deletion',_0x3dcdc9),_0x3c899a[_0x11e885]={'insertions':this['_prepareViewToSave'](_0x5a8c83),'deletions':this['_prepareViewToSave'](_0xd4afae),'attachChange':this['_touchedRoots']['get'](_0x11e885)||null,'attributesBefore':_0x32f284(this['_baseRootsAttributes']['get'](_0x11e885))||{},'attributesAfter':_0x32f284(this['_diffRootsAttributes']['get'](_0x11e885))};}return{'diffData':_0x3c899a,'authorsIds':Array['from'](_0x3dcdc9)};}['_processRootBeforeSave'](_0x2837ba){for(const [,_0x3bc8c7]of _0x2837ba['markers']){const _0x2d650d=_0x3bc8c7['start']['getAncestors']()['filter'](_0x598070=>'tableCell'==_0x598070['name']);for(const _0x1f3aee of _0x2d650d)0x1==_0x1f3aee['childCount']&&_0x1f3aee['getChild'](0x0)['is']('element','paragraph')&&_0x1f3aee['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3e0f41){this['_processRootBeforeSave'](_0x3e0f41);const _0x21b5b6=this['editor']['data']['toView'](_0x3e0f41,{}),_0x1e8bc6=Array['from'](_0x21b5b6['getChildren']())['map'](_0x3f931c=>this['_getViewJson'](_0x3f931c));return JSON['stringify'](_0x1e8bc6);}['_getViewJson'](_0x35833c){if(_0x35833c['is']('$text'))return _0x35833c['data'];{const _0x4312a7=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x308dd7=_0x35833c,_0x1d1488=this['editor']['data']['htmlProcessor']['domConverter'],_0x4c302e={'type':_0x4312a7['_getTypeCharForViewElement'](_0x308dd7),'name':_0x308dd7['name'],'attributes':Array['from'](_0x308dd7['getAttributes']()),'children':Array['from'](_0x308dd7['getChildren']())['map'](_0x1bcb36=>this['_getViewJson'](_0x1bcb36))};if(_0x35833c['is']('uiElement')&&'$comment'!=_0x35833c['name']){const _0x308418=_0x35833c['render'](_0x1d1488['domDocument'],_0x1d1488);_0x4c302e['children']['push'](_0x308418['outerHTML']);}else{if(_0x35833c['is']('rawElement')){const _0x2b4012=_0x1d1488['domDocument']['createElement'](_0x308dd7['name']);_0x35833c['render'](_0x2b4012,_0x1d1488),_0x4c302e['children']['push'](_0x2b4012['innerHTML']);}}const _0x2fa363=Array['from'](_0x308dd7['getCustomProperties']());_0x2fa363['length']>0x0&&(_0x4c302e['customProperties']=_0x2fa363);const _0x271624=_0x308dd7['getFillerOffset']();return null!==_0x271624&&(_0x4c302e['fillerOffset']=_0x271624),_0x4c302e;}}['_markChanges'](_0x75bbe5,_0x4c52c5,_0x2d23dd,_0xb5a9,_0xe9a1e4){let _0x2b1a50=null,_0x2a7a16=null,_0x398f61=0x0;const _0x43e745=this['editor']['model'];for(let _0x59acb4=0x0;_0x59acb4<_0x4c52c5['length'];_0x59acb4++){const _0x5c6a88=this['_getVidAttributeName'](_0x4c52c5[_0x59acb4]),_0x118dd1=_0x4c52c5[_0x59acb4]['item']['getAttribute'](_0x5c6a88),_0x3420a9=_0x2d23dd['get'](_0x118dd1),_0x15a0d0=_0x59acb4==_0x4c52c5['length']-0x1;(!_0x2b1a50&&_0x3420a9&&(_0x2b1a50=_0x3420a9,_0x2a7a16=_0x4c52c5[_0x59acb4]),_0x2b1a50&&(!_0x3420a9||_0x3420a9['userId']!=_0x2b1a50['userId']))&&(_0x2b92df(_0x3420a9,P(_0x2a7a16,_0x75bbe5,_0x43e745),P(_0x4c52c5[_0x59acb4],_0x75bbe5,_0x43e745)),_0x2b1a50=_0x3420a9||null,_0x2a7a16=_0x3420a9?_0x4c52c5[_0x59acb4]:null),_0x2b1a50&&_0x15a0d0&&_0x2b92df(_0x3420a9,P(_0x2a7a16,_0x75bbe5,_0x43e745),V(_0x4c52c5[_0x59acb4],_0x75bbe5,_0x43e745));}function _0x2b92df(_0x46ac0f,_0xe07c1,_0x4e2110){const _0x973dab=_0x2b1a50['userId'],_0x1b2b55='revision:'+_0xb5a9+':'+_0x973dab+':'+_0x398f61++,_0x588d93=_0x43e745['createRange'](_0xe07c1,_0x4e2110);_0x75bbe5['markers']['set'](_0x1b2b55,_0x588d93),null!==_0x973dab&&_0xe9a1e4['add'](_0x973dab);}}['_getVidAttributeName'](_0x21a00a){switch(_0x21a00a['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x22728d,_0x36ad0e){_0x22728d['baseVersion']=null;for(const _0x4c0cbf in _0x22728d){const _0x230dd3=_0x22728d[_0x4c0cbf];if(_0x230dd3 instanceof _0x2be10f){const _0x38b08e=_0x36ad0e['get'](_0x230dd3['root']['rootName']);_0x22728d[_0x4c0cbf]=this['_fixPosition'](_0x230dd3,_0x38b08e);}if(_0x230dd3 instanceof _0x45b9a5){const _0x516444=_0x36ad0e['get'](_0x230dd3['root']['rootName']);_0x22728d[_0x4c0cbf]=this['_fixRange'](_0x230dd3,_0x516444);}'root'===_0x4c0cbf&&(_0x22728d['root']=_0x36ad0e['get'](_0x22728d['root']['rootName']));}}['_fixRange'](_0x280733,_0x4a54ac){return this['editor']['model']['createRange'](this['_fixPosition'](_0x280733['start'],_0x4a54ac),this['_fixPosition'](_0x280733['end'],_0x4a54ac));}['_fixPosition'](_0x3d4d46,_0x36b83a){return this['editor']['model']['createPositionFromPath'](_0x36b83a,_0x3d4d46['path'],_0x3d4d46['stickiness']);}['_handleInsertOperation'](_0x5d6000){const _0x4d23ef=this['_idsRoots']['get'](_0x5d6000['position']['root']['rootName']),_0x3c96c3=this['_fixPosition'](_0x5d6000['position'],_0x4d23ef),_0x146db4=null===_0x5d6000['_authorId']?null:_0x5d6000['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ecc3c=_0x3c96c3['parent'],_0x4c72fe=this['_revisionId'],_0x29afbd=[];for(const _0x733e2b of _0x5d6000['nodes'])if(_0x733e2b['is']('element'))_0x29afbd['push'](this['_makeIdsRoot'](_0x733e2b));else{for(let _0x395e22=0x0;_0x395e22<_0x733e2b['offsetSize'];_0x395e22++)_0x29afbd['push'](new _0x5b2de1('$text',{'vid':this['_revisionId']++}));}const _0x1a743c=this['_revisionId'];for(let _0x2e78ef=_0x4c72fe;_0x2e78ef<_0x1a743c;_0x2e78ef++)this['_touched']['set'](_0x2e78ef,{'userId':_0x146db4});_0x5ecc3c['_insertChild'](_0x3c96c3['offset'],_0x29afbd);}['_handleMoveOperation'](_0xa5e148){(_0xa5e148=this['_cloneOperation'](_0xa5e148,this['_idsRoots']))['_execute']();const _0x515bf5=null===_0xa5e148['_authorId']?null:_0xa5e148['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4397ab=_0xa5e148['getMovedRangeStart'](),_0x483689=_0x4397ab['parent'],_0x1019e3=_0x4397ab['offset'];!function _0x2fc902(_0x5f0a11,_0x569bf8,_0x26aa5d,_0x1e8693){for(let _0x589461=_0x26aa5d;_0x589461<_0x1e8693;_0x589461++){const _0x1d5942=_0x569bf8['getChild'](_0x589461);_0x1d5942['is']('element','$text')?_0x5f0a11['set'](_0x1d5942['getAttribute']('vid'),{'userId':_0x515bf5}):(_0x5f0a11['set'](_0x1d5942['getAttribute']('vid_start'),{'userId':_0x515bf5}),_0x2fc902(_0x5f0a11,_0x1d5942,0x0,_0x1d5942['childCount']),_0x5f0a11['set'](_0x1d5942['getAttribute']('vid_end'),{'userId':_0x515bf5}));}}(this['_touched'],_0x483689,_0x1019e3,_0x1019e3+_0xa5e148['howMany']);}['_handleMergeOperation'](_0x5e3929){const _0x5b2e5b=null===(_0x5e3929=this['_cloneOperation'](_0x5e3929,this['_idsRoots']))['_authorId']?null:_0x5e3929['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46f628=_0x5e3929['targetPosition']['parent'],_0xc51523=_0x5e3929['sourcePosition']['parent'],_0x1416f4=_0x46f628['getAttribute']('vid_end'),_0x750499=_0xc51523['getAttribute']('vid_start');_0x46f628['_setAttribute']('vid_end',_0xc51523['getAttribute']('vid_end')),_0xc51523['_setAttribute']('vid_end',_0x1416f4),this['_touched']['set'](_0x750499,{'userId':_0x5b2e5b}),this['_touched']['set'](_0x1416f4,{'userId':_0x5b2e5b}),_0x5e3929['_execute']();}['_handleSplitOperation'](_0x13b60e){const _0x24a8f0=null===(_0x13b60e=this['_cloneOperation'](_0x13b60e,this['_idsRoots']))['_authorId']?null:_0x13b60e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x38711b=_0x13b60e['graveyardPosition'],_0x573577=_0x13b60e['splitPosition']['parent'];_0x13b60e['_execute']();const _0x55d786=_0x573577['getAttribute']('vid_end'),_0x23b2ee=_0x13b60e['insertionPosition']['nodeAfter'];if(_0x38711b){const _0x39a681=_0x23b2ee['getAttribute']('vid_end'),_0x3761ad=_0x573577['getAttribute']('vid_end');_0x573577['_setAttribute']('vid_end',_0x39a681),_0x23b2ee['_setAttribute']('vid_end',_0x3761ad),this['_touched']['set'](_0x573577['getAttribute']('vid_end'),{'userId':_0x24a8f0}),this['_touched']['set'](_0x23b2ee['getAttribute']('vid_start'),{'userId':_0x24a8f0});}else{const _0x2871a5=this['_revisionId']++,_0x398b41=this['_revisionId']++;_0x573577['_setAttribute']('vid_end',_0x2871a5),_0x23b2ee['_setAttribute']('vid_start',_0x398b41),_0x23b2ee['_setAttribute']('vid_end',_0x55d786),this['_touched']['set'](_0x2871a5,{'userId':_0x24a8f0}),this['_touched']['set'](_0x398b41,{'userId':_0x24a8f0});}}['_handleMarkerOperation'](_0x425a29){if(!_0x425a29['affectsData'])return;const _0x430b77=(_0x425a29=this['_cloneOperation'](_0x425a29,this['_diffRoots']))['oldRange']?_0x425a29['oldRange']['root']:null,_0x141094=_0x425a29['newRange']?_0x425a29['newRange']['root']:null;_0x430b77&&this['_markers']['delete'](_0x425a29['name']),_0x141094&&this['_markers']['set'](_0x425a29['name'],_0x425a29['newRange']['clone']());const _0x5e37f1=null===_0x425a29['_authorId']?null:_0x425a29['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x11e430=_0x425a29['name'];if(!this['_touchedMarkers']['has'](_0x11e430))return void this['_touchedMarkers']['set'](_0x11e430,{'range':_0x425a29['oldRange'],'userId':_0x5e37f1});const _0x34a1a0=this['_touchedMarkers']['get'](_0x11e430),_0x6bde1f=_0x34a1a0['range'],_0x9dee46=_0x425a29['newRange'];null==_0x6bde1f&&null==_0x9dee46||_0x6bde1f&&_0x9dee46&&_0x6bde1f['isEqual'](_0x9dee46)?this['_touchedMarkers']['delete'](_0x425a29['name']):_0x34a1a0['userId']=_0x5e37f1;}['_handleRootOperation'](_0x8497f6,_0x46eb4f){this['_diffRoots']['has'](_0x8497f6['rootName'])?this['_diffRoots']['get'](_0x8497f6['rootName'])['_isAttached']=_0x8497f6['isAdd']:(this['_diffRoots']['set'](_0x8497f6['rootName'],N(_0x8497f6['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x8497f6['rootName'],{}),_0x46eb4f&&this['_idsRoots']['set'](_0x8497f6['rootName'],N(_0x8497f6['rootName'],!0x0)));const _0x43c4f4=null===_0x8497f6['_authorId']?null:_0x8497f6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x25ffd8=this['_touchedRoots']['get'](_0x8497f6['rootName']);_0x25ffd8&&_0x25ffd8['userId']===_0x43c4f4?this['_touchedRoots']['delete'](_0x8497f6['rootName']):this['_touchedRoots']['set'](_0x8497f6['rootName'],{'userId':_0x43c4f4,'isAttached':_0x8497f6['isAdd']});}['_handleRootAttributeOperation'](_0x13a1e7){const _0x42344b=this['_diffRootsAttributes']['get'](_0x13a1e7['root']['rootName']);null===_0x13a1e7['newValue']?delete _0x42344b[_0x13a1e7['key']]:_0x42344b[_0x13a1e7['key']]=_0x13a1e7['newValue'];}}function x(_0x4508a9){const _0xa9c7d9=N(_0x4508a9['rootName'],_0x4508a9['isAttached']());for(const _0x52ede7 of _0x4508a9['getChildren']()){const _0x2ef808=_0x52ede7['_clone'](!0x0);_0xa9c7d9['_appendChild'](_0x2ef808);}return _0xa9c7d9;}function N(_0x47bd14,_0x1c4b5a=!0x0){const _0x4987e0=new _0x2b70b9();return _0x4987e0['rootName']=_0x47bd14,_0x4987e0['_isAttached']=_0x1c4b5a,_0x4987e0['isAttached']=()=>_0x4987e0['_isAttached'],_0x4987e0;}function P(_0x126522,_0x86a712,_0x57b848){const _0x1e0f38='elementEnd'==_0x126522['type']?_0x57b848['createPositionAt'](_0x126522['item'],'end'):_0x57b848['createPositionBefore'](_0x126522['item']);return _0x57b848['createPositionFromPath'](_0x86a712,_0x1e0f38['path'],_0x1e0f38['stickiness']);}function V(_0x4bc815,_0x4310a5,_0x515e47){const _0x414283='elementStart'==_0x4bc815['type']?_0x515e47['createPositionAt'](_0x4bc815['item'],0x0):_0x515e47['createPositionAfter'](_0x4bc815['item']);return _0x515e47['createPositionFromPath'](_0x4310a5,_0x414283['path'],_0x414283['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x222912(_0x4d3a60){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x553a8b,_0xe869bd){super(_0x553a8b),this['focusTracker']=new _0x576123(),this['keystrokes']=new _0x2c1f9d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xe869bd),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'](),_0x49168b({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x45de44=_0x34d038=>_0x34d038['stopPropagation']();this['keystrokes']['set']('arrowright',_0x45de44),this['keystrokes']['set']('arrowleft',_0x45de44),this['keystrokes']['set']('arrowup',_0x45de44),this['keystrokes']['set']('arrowdown',_0x45de44);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x27beee){this['revisionNameInputView']['fieldView']['element']['value']=_0x27beee['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x43015b){const _0x57c828=new ti(this['locale'],_0x128517),_0xc6710=_0x57c828['fieldView'];_0xc6710['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4ff285=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x43015b&&(_0x4ff285+='\x20('+R(this['locale'],'optional')+')'),(_0x57c828['label']=_0x4ff285,_0xc6710['on']('input',()=>{this['revisionNameInputValue']=_0xc6710['element']['value']['trim']();}),_0x57c828);}}class v extends _0x1d82bd{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x26951b=this['editor'],_0x50b7cc=_0x26951b['plugins']['get']('RevisionTracker');_0x26951b['ui']['componentFactory']['add']('revisionHistory',_0x3e3203=>{const _0x333bdf=_0x403910(_0x3e3203),_0x5c786=_0x333bdf['panelView']['children'],_0x205065=new _0x120368(_0x3e3203),_0x5890ae=new _0x5c71d3(_0x3e3203),_0x3e6620=new _0x164f62(_0x3e3203),_0xb4b19a=new _0x5c71d3(_0x3e3203),_0x3d7079=new _0x164f62(_0x3e3203);return _0x333bdf['bind']('isEnabled')['to'](_0x50b7cc,'isReady',_0x50b7cc,'isEnabled',_0x26951b,'isReadOnly',(_0x91564,_0x372a9f,_0x9fded4)=>_0x91564&&_0x372a9f&&!_0x9fded4),_0x333bdf['buttonView']['set']({'icon':_0x59245b,'label':R(_0x3e3203,'Revision\x20history'),'tooltip':!0x0}),_0x3e6620['set']({'label':R(_0x3e3203,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3e6620['bind']('isEnabled')['to'](_0x50b7cc,'isReady',_0x50b7cc,'isEnabled',_0x26951b,'isReadOnly',(_0x49d8a8,_0x1fde6d,_0x451f92)=>_0x49d8a8&&_0x1fde6d&&!_0x451f92),_0x3e6620['on']('execute',()=>this['_showDialog']()),_0x3d7079['set']({'label':R(_0x3e3203,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3d7079['bind']('isEnabled')['to'](_0x50b7cc,'isReady',_0x26951b,'isReadOnly',(_0x55e3a2,_0x546fe3)=>_0x55e3a2&&!_0x546fe3),_0x3d7079['on']('execute',()=>{_0x26951b['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x333bdf['isOpen']=!0x1,_0x26951b['editing']['view']['focus']();}),_0x5890ae['children']['add'](_0x3e6620),_0xb4b19a['children']['add'](_0x3d7079),_0x205065['role']='menu',_0x205065['items']['addMany']([_0x5890ae,_0xb4b19a]),_0x5c786['add'](_0x205065),_0x333bdf;}),_0x26951b['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x36fb36=this['editor'],_0xf351a6=_0x36fb36['locale'],_0x55246e=new _0x67ee54(_0xf351a6),_0x555e28=new _0x437570(_0xf351a6);_0x55246e['buttonView']['set']({'icon':_0x59245b,'label':R(_0xf351a6,'Revision\x20history')});const _0x52de5d=new _0x67548c(_0xf351a6,_0x55246e),_0x5bb55b=new _0x17957b(_0xf351a6);_0x5bb55b['set']({'label':R(_0xf351a6,'Save\x20current\x20revision')}),_0x5bb55b['delegate']('execute')['to'](_0x55246e),_0x5bb55b['on']('execute',()=>{this['_showDialog']();}),_0x52de5d['children']['add'](_0x5bb55b),_0x555e28['items']['add'](_0x52de5d);const _0x83f63b=new _0x67548c(_0xf351a6,_0x55246e),_0x4a1bcf=new _0x17957b(_0xf351a6);return _0x4a1bcf['set']({'label':R(_0xf351a6,'Open\x20revision\x20history')}),_0x4a1bcf['delegate']('execute')['to'](_0x55246e),_0x4a1bcf['on']('execute',()=>{_0x36fb36['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x83f63b['children']['add'](_0x4a1bcf),_0x555e28['items']['add'](_0x83f63b),_0x55246e['panelView']['children']['add'](_0x555e28),_0x55246e;}['_showDialog'](){const _0x51588b=this['editor'],_0x2ae7c5=_0x51588b['locale'],_0x58d474=_0x51588b['plugins']['get']('Dialog'),_0x564e13=_0x51588b['plugins']['get']('RevisionTracker');function _0x57a928(_0x4ad234){_0x51588b['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4ad234['revisionName']?_0x4ad234['revisionNameInputView']['errorText']=R(_0x2ae7c5,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x51588b['plugins']['get'](h)['saveRevision']({'name':_0x4ad234['revisionName']}),_0x58d474['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x57a928(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x58d474['show']({'id':'revisionSave','title':R(_0x2ae7c5,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x51588b['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x58d474['hide']()},{'label':R(_0x51588b['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1b6907){_0x1b6907['bind']('isEnabled')['to'](_0x564e13,'isReady',_0x564e13,'isEnabled',_0x51588b,'isReadOnly',(_0xad59c8,_0x17cb5f,_0x591fcd)=>_0xad59c8&&_0x17cb5f&&!_0x591fcd);},'onExecute':()=>_0x57a928(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xe619d=this['editor'],_0x3ee43e=_0xe619d['locale'];this['_saveRevisionFormView']=new he(_0x3ee43e,_0xe619d['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x4d3a60{['changeId'];['_model'];constructor(_0x2c7bb2,_0x1ff383){super(_0x2c7bb2),this['_model']=_0x1ff383,this['changeId']=_0x1ff383['id'];const _0x3416cd=this['bindTemplate'],_0x31fe1b=R(_0x2c7bb2,_0x1ff383['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1ff383['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1ff383['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3416cd['to']('type',_0x33b213=>'ck-revision-change__'+_0x33b213)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x31fe1b}]},{'text':'\x20'+_0x1ff383['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3d9fdb(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xa77660){super(),this['id']=_0xa77660['id']||_0x30afc6(),this['author']=_0xa77660['author'],this['type']=_0xa77660['type'],this['data']=_0xa77660['data']||{},this['rootName']=_0xa77660['rootName'],this['set']('createdAt',_0xa77660['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(_0x3aa788,_0x4de0c1){this['newRevisionId']=_0x3aa788,this['oldRevisionId']=_0x4de0c1,this['changes']=new _0x33c442();}['_setChanges'](_0x3a307a){for(const _0x13c25f of _0x3a307a)this['changes']['add'](_0x13c25f);}}class l extends _0x1d82bd{['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[_0x2d82c4,_0x41b47d,S,$];}constructor(_0x17717d){super(_0x17717d),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',(_0x5390f5,_0x24a712,_0x419f4a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3a36eb=>{for(const _0x1d1d74 of this['editor']['editing']['view']['document']['roots'])_0x419f4a?_0x3a36eb['removeClass']('ck-editor__editable__overlay',_0x1d1d74):_0x3a36eb['addClass']('ck-editor__editable__overlay',_0x1d1d74);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4368fd=>null!==_0x4368fd),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x50d6fa,_0x292068,_0x44111a)=>_0x50d6fa&&_0x44111a?_0x292068['changes']['getIndex'](_0x44111a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5d2b0a,_0x47f3f7)=>_0x5d2b0a?_0x47f3f7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x41b47d);}['init'](){const _0x2c1a98=this['editor'],_0x2736e8=new ot(_0x2c1a98,{'direction':'backward'}),_0x5db50a=new ot(_0x2c1a98,{'direction':'forward'});(_0x2c1a98['commands']['add']('showPreviousChange',_0x2736e8),_0x2c1a98['commands']['add']('showNextChange',_0x5db50a),_0x2c1a98['commands']['add']('restoreRevision',new nt(_0x2c1a98)),this['on']('change:numberOfChanges',()=>{_0x2736e8['refresh'](),_0x5db50a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2c1a98['enableReadOnlyMode']('revision-viewer'),_0x2c1a98['plugins']['has']('WidgetToolbarRepository'))&&_0x2c1a98['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x249809){return await this['_utils']['loadRevisionData'](_0x249809,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x249809);}async['getRevisionRootsAttributes'](_0x383f52){return await this['_utils']['loadRevisionData'](_0x383f52,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x383f52);}async['compare'](_0x299b16,_0x49fcee,_0x4b97a9=!0x1){if(!this['isEnabled'])return;const _0x5a5e5d=this['diff'],_0x4261e2=this['repository'],_0x20ea7f='string'==typeof _0x299b16?_0x4261e2['getRevision'](_0x299b16):_0x299b16,_0x1adbd7='string'==typeof _0x49fcee?_0x4261e2['getRevision'](_0x49fcee):_0x49fcee,_0x5d3ea1=_0x20ea7f['id'],_0xde3bca=_0x1adbd7?_0x1adbd7['id']:null;if(!_0x4b97a9&&this['diff']&&this['diff']['newRevisionId']===_0x5d3ea1&&this['diff']['oldRevisionId']===_0xde3bca)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x5d3ea1,_0xde3bca);const _0x13d335=this['_getRevisionsRange'](_0x20ea7f,_0x1adbd7,!0x0)['map'](_0x1375e9=>this['_utils']['loadRevisionData'](_0x1375e9,this['adapter']));return _0x13d335['push'](new Promise(_0x36ebc9=>{setTimeout(_0x36ebc9,0x14);})),Promise['all'](_0x13d335)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3bc69f=this['_getDiff'](_0x5d3ea1,_0xde3bca);for(const _0x4f3df7 of _0x3bc69f['changes'])this['_changeIdToChange']['set'](_0x4f3df7['id'],_0x4f3df7);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5047e2=>{for(const _0x21a2ca of this['editor']['model']['document']['getRootNames']())_0x5047e2['detachRoot'](_0x21a2ca);for(const _0x461c6e of Object['keys'](_0x3bc69f['model'])){const _0x5d9243=_0x5047e2['addRoot'](_0x461c6e);for(const _0x2bbed2 of Object['keys'](_0x3bc69f['attributes'][_0x461c6e]))_0x5047e2['setAttribute'](_0x2bbed2,_0x3bc69f['attributes'][_0x461c6e][_0x2bbed2],_0x5d9243);_0x5047e2['insert'](_0x3bc69f['model'][_0x461c6e],_0x5d9243,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3bc69f['changes'])),this['isReady']=!0x0;})['catch'](_0x5dc9e2=>{console['error'](_0x5dc9e2),this['_cleanUp'](),_0x5a5e5d&&(this['diff']=_0x5a5e5d),this['isReady']=!0x0;});}['addRevisionData'](_0x492b21,_0x1fd142){const _0x205c87=this['repository']['createRevision'](_0x492b21);return _0x205c87['on']('_update',(_0x38e209,_0x48435e,_0x19835)=>_0x1fd142(_0x48435e,_0x19835,_0x205c87)),this['repository']['addRevision'](_0x205c87),_0x205c87;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xe8428=>{for(const _0x1a534e of this['editor']['model']['document']['getRootNames']())_0xe8428['detachRoot'](_0x1a534e);});}['_sortAndFilterDiffChanges'](_0x569449){const _0x23e342=[],_0x9e5991=new Map();for(const _0x3678fd of this['editor']['model']['document']['getRootNames']()){const _0x38957a=this['editor']['editing']['view']['getDomRoot'](_0x3678fd);if(!_0x38957a)continue;const _0x4f42d2=_0x38957a['getClientRects']()['item'](0x0);_0x4f42d2&&(_0x23e342['push'](_0x3678fd),_0x9e5991['set'](_0x3678fd,_0x4f42d2));}return _0x23e342['sort']((_0x5b9f55,_0x45d48a)=>{const _0x3ba4b0=_0x9e5991['get'](_0x5b9f55),_0x16df56=_0x9e5991['get'](_0x45d48a);return _0x3ba4b0['y']-_0x16df56['y']||_0x3ba4b0['x']-_0x16df56['x'];}),(_0x569449=_0x569449['filter'](_0x32c198=>_0x23e342['includes'](_0x32c198['rootName'])))['sort']((_0x2da1ae,_0x419dcc)=>_0x23e342['indexOf'](_0x2da1ae['rootName'])-_0x23e342['indexOf'](_0x419dcc['rootName'])),_0x569449;}['_makeTape'](_0x291180){const _0x5dee6f=Array['from'](_0x291180['markers'])['filter'](([_0x427254,_0x16cc19])=>_0x427254['startsWith']('revision:')&&!_0x16cc19['isCollapsed']),_0x6e4616=Array['from'](this['editor']['model']['createRangeIn'](_0x291180)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5dee6f['length'])for(const _0x4fd1cf of _0x6e4616){const [_0x24627e,_0x339163]=_0x5dee6f[0x0],[,_0x532bfd,_0x43b885]=_0x24627e['split'](':');if(_0x339163['end']['isEqual'](_0x4fd1cf['nextPosition'])&&_0x5dee6f['shift'](),(_0x4fd1cf['previousPosition']['isEqual'](_0x339163['start'])||_0x4fd1cf['previousPosition']['isAfter'](_0x339163['start']))&&('insertion'==_0x532bfd?_0x4fd1cf['isAdded']={'userId':_0x43b885}:'deletion'==_0x532bfd&&(_0x4fd1cf['isRemoved']={'userId':_0x43b885})),0x0==_0x5dee6f['length'])break;}return _0x6e4616;}['_refreshStartEndIndex'](_0x1bf079){const _0x18f126=new Map();for(let _0x5e10f8=0x0;_0x5e10f8<_0x1bf079['length'];_0x5e10f8++)'text'===_0x1bf079[_0x5e10f8]['type']?(_0x1bf079[_0x5e10f8]['item']['startIndex']=_0x5e10f8,_0x1bf079[_0x5e10f8]['item']['endIndex']=_0x5e10f8):('elementStart'===_0x1bf079[_0x5e10f8]['type']?_0x1bf079[_0x5e10f8]['item']['startIndex']=_0x5e10f8:'elementEnd'===_0x1bf079[_0x5e10f8]['type']&&(_0x1bf079[_0x5e10f8]['item']['endIndex']=_0x5e10f8),_0x18f126['set'](_0x1bf079[_0x5e10f8]['id'],_0x5e10f8));for(const _0x27e035 of _0x18f126['values']())'elementStart'===_0x1bf079[_0x27e035]['type']?_0x1bf079[_0x27e035]['item']['endIndex']=_0x18f126['get'](_0x1bf079[_0x27e035]['pairId']):'elementEnd'===_0x1bf079[_0x27e035]['type']&&(_0x1bf079[_0x27e035]['item']['startIndex']=_0x18f126['get'](_0x1bf079[_0x27e035]['pairId']));}['_processTape'](_0x646181){for(let _0x381828=0x0;_0x381828<_0x646181['length'];_0x381828++){if('elementStart'===_0x646181[_0x381828]['type'])_0x646181[_0x381828]['item']['startIndex']=_0x381828;else{if('elementEnd'===_0x646181[_0x381828]['type']){_0x646181[_0x381828]['item']['endIndex']=_0x381828;const _0xe81772=_0x646181[_0x381828]['item']['startIndex'];_0x646181[_0xe81772]['pairId']=_0x646181[_0x381828]['id'],_0x646181[_0x381828]['pairId']=_0x646181[_0xe81772]['id'];}else _0x646181[_0x381828]['item']['startIndex']=_0x381828,_0x646181[_0x381828]['item']['endIndex']=_0x381828,_0x646181[_0x381828]['pairId']=null;}_0x646181[_0x381828]['markersStart']||(_0x646181[_0x381828]['markersStart']=[],_0x646181[_0x381828]['markersEnd']=[]);}}['_markInsertions'](_0x27ce67,_0x241490){const _0x1c2cfb=_0x27ce67['filter'](_0x118725=>!_0x118725['isAdded']);for(let _0x26de3f=0x0;_0x26de3f<_0x241490['length'];_0x26de3f++)_0x241490[_0x26de3f]['isAdded']&&(_0x1c2cfb[_0x26de3f]['isAdded']=_0x241490[_0x26de3f]['isAdded']);}['_getDiff'](_0x467312,_0xc28c22=null){const _0x57ba5c=this['repository']['getRevision'](_0x467312),_0x20cb37=_0xc28c22?this['repository']['getRevision'](_0xc28c22):null,_0x8590d1=this['_getRevisionsRange'](_0x57ba5c,_0x20cb37),_0x45cc72=_0x8590d1[_0x8590d1['length']-0x1],_0x3c2269=new Map(),_0x3d7fd5={'model':{},'attributes':{},'changes':[]},_0x105be2=new Set(),_0x285dd0=new Map();for(let _0x45fd83=_0x8590d1['length']-0x1;_0x45fd83>=0x0;_0x45fd83--){const _0x12bbf1=_0x8590d1[_0x45fd83];for(const _0x8127e2 of Object['keys'](_0x12bbf1['diffData']))if(_0x12bbf1['diffData'][_0x8127e2]['attachChange']){const _0xcfb6f5=_0x12bbf1['diffData'][_0x8127e2]['attachChange'];_0xcfb6f5['isAttached']?(_0x105be2['add'](_0x8127e2),_0x285dd0['has'](_0x8127e2)&&_0x285dd0['get'](_0x8127e2)['userId']==_0xcfb6f5['userId']?_0x285dd0['delete'](_0x8127e2):_0x285dd0['set'](_0x8127e2,_0xcfb6f5)):_0x285dd0['has'](_0x8127e2)?(_0x105be2['delete'](_0x8127e2),_0x285dd0['delete'](_0x8127e2)):(_0x105be2['add'](_0x8127e2),_0x285dd0['set'](_0x8127e2,_0xcfb6f5));}else _0x105be2['add'](_0x8127e2);}for(const _0x395a29 of _0x105be2){const _0x4f9eeb=_0x285dd0['has'](_0x395a29)&&!_0x285dd0['get'](_0x395a29)['isAttached'];let _0xa4d6ab=_0x4f9eeb?_0x8590d1['length']-0x1:0x0;const _0x25b991=_0x4f9eeb?-0x1:0x1;for(;_0x8590d1[_0xa4d6ab];){const _0xae0abf=_0x8590d1[_0xa4d6ab];if(_0xae0abf['diffData'][_0x395a29]){const _0x479680=_0x4f9eeb?_0xae0abf['diffData'][_0x395a29]['attributesBefore']:_0xae0abf['diffData'][_0x395a29]['attributesAfter'];_0x3d7fd5['attributes'][_0x395a29]=_0x479680?_0x32f284(_0x479680):{};break;}_0xa4d6ab+=_0x25b991;}}for(const _0x50a146 of _0x8590d1){_0x50a146['model']={};for(const _0x3fc715 of _0x50a146['authors'])_0x3c2269['set'](_0x3fc715['id'],_0x3fc715);for(const _0x3d56c8 of _0x105be2){const _0x4ee7b5=_0x50a146['diffData'][_0x3d56c8]?_0x50a146['diffData'][_0x3d56c8]['insertions']:'[]',_0x3b951c=_0x50a146['diffData'][_0x3d56c8]?_0x50a146['diffData'][_0x3d56c8]['deletions']:'[]';_0x50a146['model'][_0x3d56c8]={'insertions':this['_utils']['_makeModelFromViewString'](_0x4ee7b5),'deletions':this['_utils']['_makeModelFromViewString'](_0x3b951c)};}}for(const _0x272fa5 of _0x105be2){let _0x3c6b99=null,_0x5e3431=0x0;const _0x30cb02=new Map(Array['from'](_0x57ba5c['model'][_0x272fa5]['insertions']['markers'])['filter'](([_0x59faa7])=>!_0x59faa7['startsWith']('revision:')));let _0x303d39=0x0;for(const _0xdb1136 of _0x8590d1){const _0x168f2c=this['_makeTape'](_0xdb1136['model'][_0x272fa5]['insertions']);_0xdb1136==_0x57ba5c?(_0x3c6b99=_0x168f2c,_0x5e3431=_0x3c6b99['length'],_0x3c6b99['forEach'](_0x1d0d30=>{_0x1d0d30['id']=_0x303d39++;}),this['_processTape'](_0x3c6b99)):this['_markInsertions'](_0x3c6b99,_0x168f2c);const _0x419c03=_0x3c6b99['filter'](_0x34e5de=>!_0x34e5de['isAdded'])['map'](_0x36afa9=>_0x36afa9['id']);let _0x4a1a04=0x0;const _0x18c8b6=this['_makeTape'](_0xdb1136['model'][_0x272fa5]['deletions']);_0x18c8b6['forEach'](_0x4f98ff=>{_0x4f98ff['isRemoved']?_0x4f98ff['id']=_0x5e3431++:_0x4f98ff['id']=_0x419c03[_0x4a1a04++];}),this['_processTape'](_0x18c8b6),this['_setDistance'](_0x3c6b99,'isAdded'),this['_setDistance'](_0x18c8b6,'isRemoved'),_0xdb1136==_0x57ba5c&&this['_markMarkers'](_0x3c6b99,_0x30cb02),_0x3c6b99=this['_joinTapes'](_0x3c6b99,_0x18c8b6),this['_refreshStartEndIndex'](_0x3c6b99),this['_setDistance'](_0x3c6b99,'isRemoved');}_0x3c6b99=_0x3c6b99['filter'](_0x4a175d=>!(_0x4a175d['isAdded']&&_0x4a175d['isRemoved']));const _0x2c477f=new Map(_0x45cc72['model'][_0x272fa5]['deletions']['markers']),_0x2d9aa2=new Set(_0x30cb02['keys']());for(const _0x5edfea of _0x2c477f['keys']())_0x2d9aa2['delete'](_0x5edfea);this['_markSuggestions'](_0x3c6b99,_0x2d9aa2),this['_fixObsoleteTags'](_0x3c6b99),_0x3c6b99=this['_removeMissingPairs'](_0x3c6b99),_0x3c6b99=this['_markMismatchedRemovedTags'](_0x3c6b99),_0x3c6b99=this['_removeUnsupportedChanges'](_0x3c6b99);const {root:_0x3e8b09,changes:_0xa7c386}=this['_makeModelFromTape'](_0x3c6b99,_0x3c2269,_0x272fa5);_0x3d7fd5['model'][_0x272fa5]=_0x3e8b09;const _0x482655=_0x285dd0['get'](_0x272fa5);if(_0x482655){const _0x3a24d5=_0x3c2269['get'](_0x482655['userId']),_0x4feaff=new G({'author':_0x3a24d5,'type':_0x482655['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x272fa5});_0xa7c386['unshift'](_0x4feaff),_0x3d7fd5['attributes'][_0x272fa5]['revisionHistoryAttachChange']=_0x4feaff['id'];}_0x3d7fd5['changes']=_0x3d7fd5['changes']['concat'](_0xa7c386);}return _0x3d7fd5;}['_markMarkers'](_0x43fab9,_0x37866c){for(let _0x325b8e=0x0;_0x325b8e<_0x43fab9['length'];_0x325b8e++)for(const [_0x503a64,_0x177085]of _0x37866c)!_0x177085['isCollapsed']&&_0x177085['start']['isEqual'](_0x43fab9[_0x325b8e]['previousPosition'])&&_0x43fab9[_0x325b8e]['markersStart']['push'](_0x503a64),_0x177085['end']['isEqual'](_0x43fab9[_0x325b8e]['nextPosition'])&&_0x43fab9[_0x325b8e]['markersEnd']['push'](_0x503a64);}['_joinTapes'](_0x38d414,_0x41a0a3){let _0x469b24=[],_0x41e033=0x0,_0x205a87=0x0;for(;_0x41e033<_0x38d414['length']||_0x205a87<_0x41a0a3['length'];){const _0x612627=_0x38d414[_0x41e033]||{},_0x5b0aa6=_0x41a0a3[_0x205a87]||{};if(_0x612627['id']==_0x5b0aa6['id'])_0x41e033++,_0x205a87++,_0x469b24['push'](_0x612627);else{if(_0x5b0aa6['isRemoved']&&_0x612627['isAdded']){const {commonTape:_0x24fd52,iEnd:_0x2679d9,jEnd:_0x37152d}=this['_threeWayMerge'](_0x38d414,_0x41e033,_0x41a0a3,_0x205a87);_0x469b24=_0x469b24['concat'](_0x24fd52),_0x41e033=_0x2679d9,_0x205a87=_0x37152d;}else _0x5b0aa6['isRemoved']?(_0x205a87++,_0x469b24['push'](_0x5b0aa6)):(_0x41e033++,_0x469b24['push'](_0x612627));}}return _0x469b24;}['_markSuggestions'](_0x1ea2ee,_0x5546f3){const _0x1fae5a=[];for(let _0x500bb0=0x0;_0x500bb0<_0x1ea2ee['length'];_0x500bb0++){for(let _0x26412d=0x0;_0x26412d<_0x1ea2ee[_0x500bb0]['markersStart']['length'];_0x26412d++){const _0x13b972=_0x1ea2ee[_0x500bb0]['markersStart'][_0x26412d];if(!_0x5546f3['has'](_0x13b972))continue;const {group:_0xc84c1f,type:_0x1e103c,authorId:_0x475c5d}=_0x23b7c3(_0x13b972);'revision-suggestion'!=_0xc84c1f||'insertion'!=_0x1e103c&&'deletion'!=_0x1e103c||(_0x1fae5a['unshift']({'type':_0x1e103c,'name':_0x13b972,'userId':_0x475c5d}),_0x1ea2ee[_0x500bb0]['markersStart']['splice'](_0x26412d,0x1),_0x26412d--);}_0x3c67d6(_0x1ea2ee[_0x500bb0]);for(let _0x4649bb=0x0;_0x4649bb<_0x1ea2ee[_0x500bb0]['markersEnd']['length'];_0x4649bb++){const _0x407f91=_0x1ea2ee[_0x500bb0]['markersEnd'][_0x4649bb];if(!_0x5546f3['has'](_0x407f91))continue;const {group:_0x512628,type:_0x1c0312}=_0x23b7c3(_0x407f91);if('revision-suggestion'!=_0x512628||'insertion'!=_0x1c0312&&'deletion'!=_0x1c0312)continue;_0x1ea2ee[_0x500bb0]['markersEnd']['splice'](_0x4649bb,0x1),_0x4649bb--;const _0xcb8cf=_0x1fae5a['findIndex'](_0x39b83e=>_0x39b83e['name']==_0x407f91);_0xcb8cf>-0x1&&_0x1fae5a['splice'](_0xcb8cf,0x1);}}function _0x23b7c3(_0x3b6828){const _0x2877d1=_0x3b6828['split'](':');return{'group':_0x2877d1[0x0],'type':_0x2877d1[0x1],'subType':_0x2877d1['length']>=0x5?_0x2877d1[0x2]:null,'id':_0x2877d1['length']<0x5?_0x2877d1[0x2]:_0x2877d1[0x3],'authorId':_0x2877d1['length']<0x5?_0x2877d1[0x3]:_0x2877d1[0x4],'markerCount':0x6==_0x2877d1['length']?_0x2877d1[0x5]:null};}function _0x3c67d6(_0x947b19){for(let _0x42cce3=0x0;_0x42cce3<_0x1fae5a['length'];_0x42cce3++){if(_0x947b19['isAdded']&&'insertion'==_0x1fae5a[_0x42cce3]['type']&&_0x947b19['isAdded']['userId']==_0x1fae5a[_0x42cce3]['userId'])return _0x947b19['isAddSuggestion']=_0x1fae5a[_0x42cce3],void delete _0x947b19['isAdded'];if(!_0x947b19['isAdded']&&!_0x947b19['isRemoved']&&'deletion'==_0x1fae5a[_0x42cce3]['type'])return void(_0x947b19['isRemoveSuggestion']=_0x1fae5a[_0x42cce3]);}}}['_setDistance'](_0x28c578,_0x5452a9){let _0x5ce347=0x0,_0x27812e=!0x1;const _0x4a3fb8=new Map();for(const _0x41931d of _0x28c578)_0x41931d[_0x5452a9]?_0x27812e&&(_0x5ce347++,_0x27812e=!0x1):(_0x5ce347++,_0x27812e=!0x0),_0x4a3fb8['set'](_0x41931d['id'],_0x5ce347);for(let _0x41a55d=0x0;_0x41a55d<_0x28c578['length'];_0x41a55d++){if('isRemoved'==_0x5452a9&&_0x28c578[_0x41a55d]['isAdded']||'isAdded'==_0x5452a9&&_0x28c578[_0x41a55d]['isRemoved'])continue;if('text'==_0x28c578[_0x41a55d]['type']){_0x28c578[_0x41a55d]['distance']=0x0;continue;}const _0x15518d=_0x4a3fb8['get'](_0x28c578[_0x41a55d]['pairId']),_0x1c92f4=_0x4a3fb8['get'](_0x28c578[_0x41a55d]['id']);_0x28c578[_0x41a55d]['distance']=_0x15518d-_0x1c92f4;}}['_getRevisionsRange'](_0x1052aa,_0x20492f,_0x3f8e8e=!0x1){const _0x555963=[];let _0x21218a=this['repository']['getIndex'](_0x1052aa),_0x196bd9=this['repository']['getIndex'](_0x20492f);for(-0x1==_0x196bd9&&(_0x196bd9=this['repository']['_revisions']['length'],_0x3f8e8e=!0x1);_0x21218a<_0x196bd9;)_0x555963['push'](this['repository']['getRevision'](_0x21218a)),_0x21218a++;return _0x3f8e8e&&_0x555963['push'](this['repository']['getRevision'](_0x21218a)),_0x555963;}['_threeWayMerge'](_0x3f3c34,_0x1ee6b2,_0x141254,_0x53dc16){const _0x1e4151=this['editor']['model']['schema'];let _0x39554d=_0x1ee6b2;for(;_0x3f3c34[_0x39554d]&&_0x3f3c34[_0x39554d]['isAdded'];)_0x39554d++;let _0x186d14=_0x53dc16;for(;_0x141254[_0x186d14]&&_0x141254[_0x186d14]['isRemoved'];)_0x186d14++;_0x5c0d7a(_0x3f3c34,_0x1ee6b2,_0x39554d),_0x5c0d7a(_0x141254,_0x53dc16,_0x186d14);const _0x56f765=_0x141254['slice'](_0x53dc16,_0x186d14)['concat'](_0x3f3c34['slice'](_0x1ee6b2,_0x39554d));return _0x56f765['sort']((_0x157342,_0x1fadb2)=>_0x157342['side']!=_0x1fadb2['side']?_0x157342['side']-_0x1fadb2['side']:_0x157342['level']!=_0x1fadb2['level']?_0x157342['level']-_0x1fadb2['level']:_0x157342['distance']!=_0x1fadb2['distance']?_0x1fadb2['distance']-_0x157342['distance']:!!_0x157342['isAdded']!=!!_0x1fadb2['isAdded']?-0x1==_0x157342['side']||0x0==_0x157342['side']?_0x157342['isAdded']?-0x1:0x1:_0x157342['isAdded']?0x1:-0x1:_0x157342['index']-_0x1fadb2['index']),{'commonTape':_0x56f765,'iEnd':_0x39554d,'jEnd':_0x186d14};function _0x5c0d7a(_0x485f8d,_0x252675,_0x3feb84){let _0x5a241f=-0x1,_0x2bdff9=Number['POSITIVE_INFINITY'],_0x1744f0=!0x0;for(let _0x212b69=_0x252675;_0x212b69<_0x3feb84;_0x212b69++)if(_0x1e4151['isInline'](_0x485f8d[_0x212b69]['item'])||(_0x1744f0=!0x1),_0x485f8d[_0x212b69]['item']['startIndex']<_0x252675&&(_0x5a241f=_0x212b69),_0x485f8d[_0x212b69]['item']['endIndex']>=_0x3feb84){_0x2bdff9=_0x212b69;break;}_0x1744f0&&(_0x5a241f=_0x3feb84-0x1);for(let _0x540874=_0x252675;_0x540874<_0x3feb84;_0x540874++)_0x485f8d[_0x540874]['side']=_0x540874<=_0x5a241f?-0x1:_0x540874<_0x2bdff9?0x0:0x1,_0x485f8d[_0x540874]['index']=_0x540874;let _0x316143=0x0;for(let _0x32b4c3=_0x252675;_0x32b4c3<=_0x5a241f;_0x32b4c3++)0x0==_0x485f8d[_0x32b4c3]['distance']?_0x485f8d[_0x32b4c3]['level']=_0x316143:(_0x316143++,_0x485f8d[_0x32b4c3]['level']=_0x316143,_0x316143++);for(let _0x243c87=_0x252675;_0x243c87<_0x3feb84;_0x243c87++)0x0==_0x485f8d[_0x243c87]['side']&&(_0x485f8d[_0x243c87]['level']=_0x316143);_0x316143=0x0;for(let _0x2f6441=_0x3feb84-0x1;_0x2f6441>=_0x2bdff9;_0x2f6441--)0x0==_0x485f8d[_0x2f6441]['distance']?_0x485f8d[_0x2f6441]['level']=_0x316143:(_0x316143--,_0x485f8d[_0x2f6441]['level']=_0x316143,_0x316143--);}}['_fixObsoleteTags'](_0x52890b){const _0xefaa39=new Map(),_0x3964d5=this['editor']['model']['schema'];for(let _0x111d14=0x1;_0x111d14<_0x52890b['length'];_0x111d14++){let _0x4e9867,_0x227dcb,_0xa27b95;const _0x70bee3=_0x52890b[_0x111d14],_0x119669=_0x52890b[_0x111d14-0x1];if('text'==_0x70bee3['type'])continue;if(_0x70bee3['type']!=_0x119669['type'])continue;if(!_0x3964d5['isBlock'](_0x119669['item'])||_0x3964d5['isLimit'](_0x119669['item']))continue;if(!_0x3964d5['isBlock'](_0x70bee3['item'])||_0x3964d5['isLimit'](_0x70bee3['item']))continue;if((_0x52890b[_0x111d14]['isAdded']||_0x52890b[_0x111d14]['isAddSuggestion'])&&_0x52890b[_0x111d14-0x1]['isRemoved'])_0x4e9867=_0x52890b[_0x111d14],_0x227dcb=_0x52890b[_0x111d14-0x1],_0xa27b95=_0x111d14-0x1;else{if(!_0x52890b[_0x111d14]['isRemoved']||!_0x52890b[_0x111d14-0x1]['isAdded']&&!_0x52890b[_0x111d14-0x1]['isAddSuggestion'])continue;_0x4e9867=_0x52890b[_0x111d14-0x1],_0x227dcb=_0x52890b[_0x111d14],_0xa27b95=_0x111d14;}const _0x2e492a=_0x4e9867['level']==_0x227dcb['level'],_0x10b01c=Math['abs'](_0x4e9867['level'])<Math['abs'](_0x227dcb['level'])&&0x0==_0x227dcb['distance'];(_0x2e492a||_0x10b01c)&&(_0xefaa39['set'](_0x227dcb['id'],_0x4e9867['id']),_0x52890b['splice'](_0xa27b95,0x1),_0x111d14--,_0x4e9867['isAdded']=!0x1);}for(let _0xc3d29d=0x0;_0xc3d29d<_0x52890b['length'];_0xc3d29d++)_0xefaa39['has'](_0x52890b[_0xc3d29d]['pairId'])&&(_0x52890b[_0xc3d29d]['pairId']=_0xefaa39['get'](_0x52890b[_0xc3d29d]['pairId']));}['_removeMissingPairs'](_0x1e41bd){const _0x339387=new Set(_0x1e41bd['map'](_0xea6c23=>_0xea6c23['id']));for(let _0x10b035=0x0;_0x10b035<_0x1e41bd['length'];_0x10b035++)_0x339387['has'](_0x1e41bd[_0x10b035]['pairId'])||0x0==_0x1e41bd[_0x10b035]['distance']||(_0x1e41bd[_0x10b035]['isIncorrect']=!0x0);return _0x1e41bd['filter'](_0x583083=>!_0x583083['isIncorrect']);}['_markMismatchedRemovedTags'](_0x50ee02){const _0x4b164c=new Set();for(let _0x58ff71=0x0;_0x58ff71<_0x50ee02['length'];_0x58ff71++){if(_0x4b164c['has'](_0x50ee02[_0x58ff71]['id'])&&_0x50ee02[_0x58ff71]['isRemoved']&&(_0x50ee02[_0x58ff71]['isIncorrect']=!0x0),_0x50ee02[_0x58ff71]['isIncorrect'])continue;if(0x0==_0x50ee02[_0x58ff71]['distance'])continue;if('elementStart'!=_0x50ee02[_0x58ff71]['type'])continue;if(null==_0x50ee02[_0x58ff71]['pairId'])continue;let _0x3bb9ff=_0x58ff71+0x1,_0x15def4=0x0;for(;_0x50ee02[_0x3bb9ff]['id']!=_0x50ee02[_0x58ff71]['pairId'];)'elementStart'==_0x50ee02[_0x3bb9ff]['type']?_0x15def4++:'elementEnd'==_0x50ee02[_0x3bb9ff]['type']&&_0x15def4--,_0x3bb9ff++;if(0x0!=_0x15def4){if(_0x50ee02[_0x58ff71]['isRemoved'])_0x50ee02[_0x58ff71]['isIncorrect']=!0x0;else{for(;_0x3bb9ff!=_0x58ff71;)_0x50ee02[_0x3bb9ff]['isRemoved']&&0x0!=_0x50ee02[_0x3bb9ff]['distance']&&(_0x50ee02[_0x3bb9ff]['isIncorrect']=!0x0,_0x4b164c['add'](_0x50ee02[_0x3bb9ff]['pairId'])),_0x3bb9ff--;}}}return _0x50ee02['filter'](_0x34997d=>!_0x34997d['isIncorrect']);}['_removeUnsupportedChanges'](_0x1bd19a){const _0x2eae0a=this['editor']['model']['schema'];for(let _0x1b7ef4=0x0;_0x1b7ef4<_0x1bd19a['length'];_0x1b7ef4++){if(!(_0x1bd19a[_0x1b7ef4]['isAdded']||_0x1bd19a[_0x1b7ef4]['isAddSuggestion']||_0x1bd19a[_0x1b7ef4]['isRemoved']||_0x1bd19a[_0x1b7ef4]['isRemoveSuggestion']))continue;if(0x0==_0x1bd19a[_0x1b7ef4]['distance'])continue;const _0x3ef386=_0x1bd19a[_0x1b7ef4]['item'];_0x2eae0a['isBlock'](_0x3ef386)||_0x2eae0a['isLimit'](_0x3ef386)||(_0x1bd19a[_0x1b7ef4]['isAdded']&&delete _0x1bd19a[_0x1b7ef4]['isAdded'],_0x1bd19a[_0x1b7ef4]['isAddSuggestion']&&delete _0x1bd19a[_0x1b7ef4]['isAddSuggestion'],_0x1bd19a[_0x1b7ef4]['isRemoveSuggestion']&&delete _0x1bd19a[_0x1b7ef4]['isRemoveSuggestion'],_0x1bd19a[_0x1b7ef4]['isRemoved']&&(_0x1bd19a[_0x1b7ef4]['isIncorrect']=!0x0));}return _0x1bd19a['filter'](_0x4f89f9=>!_0x4f89f9['isIncorrect']);}['_makeModelFromTape'](_0x55a6ae,_0x2fa714,_0xc6a9ae){const _0x35f3a9=new _0x2b70b9(),_0xe5bf13=[],_0x441b1d=new Map(),_0x2b9b22=this['editor']['model'],_0x3caf66=_0x2b9b22['schema'],_0x39d9af=[_0x35f3a9],_0xf262f={},_0x9420e5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xaefb8f=null;const _0x1717d8=[0x0];for(let _0x2a61d4=0x0;_0x2a61d4<_0x55a6ae['length'];_0x2a61d4++)if('elementStart'===_0x55a6ae[_0x2a61d4]['type']){_0x55a6ae[_0x2a61d4]['previousPosition']=_0x2b9b22['createPositionFromPath'](_0x35f3a9,_0x1717d8);const _0x452332=new _0x5b2de1(_0x55a6ae[_0x2a61d4]['item']['name'],_0x55a6ae[_0x2a61d4]['item']['getAttributes']());_0x39d9af[0x0]['_appendChild'](_0x452332),_0x1717d8['push'](0x0),_0x39d9af['unshift'](_0x452332),_0x55a6ae[_0x2a61d4]['nextPosition']=_0x2b9b22['createPositionFromPath'](_0x35f3a9,_0x1717d8);}else'elementEnd'===_0x55a6ae[_0x2a61d4]['type']?(_0x39d9af['shift'](),_0x55a6ae[_0x2a61d4]['previousPosition']=_0x2b9b22['createPositionFromPath'](_0x35f3a9,_0x1717d8),_0x1717d8['pop'](),_0x1717d8[_0x1717d8['length']-0x1]++,_0x55a6ae[_0x2a61d4]['nextPosition']=_0x2b9b22['createPositionFromPath'](_0x35f3a9,_0x1717d8)):(_0x55a6ae[_0x2a61d4]['previousPosition']=_0x2b9b22['createPositionFromPath'](_0x35f3a9,_0x1717d8),_0xaefb8f?_0xaefb8f['_data']+=_0x55a6ae[_0x2a61d4]['item']['data']:_0xaefb8f=new _0x1ea3a8(_0x55a6ae[_0x2a61d4]['item']['data'],_0x55a6ae[_0x2a61d4]['item']['getAttributes']()),_0x55a6ae[_0x2a61d4+0x1]&&'text'===_0x55a6ae[_0x2a61d4+0x1]['type']&&_0x588bc7(_0xaefb8f,_0x55a6ae[_0x2a61d4+0x1]['item'])||(_0x39d9af[0x0]['_appendChild'](_0xaefb8f),_0xaefb8f=null),_0x1717d8[_0x1717d8['length']-0x1]+=_0x55a6ae[_0x2a61d4]['item']['offsetSize'],_0x55a6ae[_0x2a61d4]['nextPosition']=_0x2b9b22['createPositionFromPath'](_0x35f3a9,_0x1717d8));for(let _0x1211e4=0x0;_0x1211e4<_0x55a6ae['length'];_0x1211e4++){const _0x489ecc=_0x55a6ae[_0x1211e4]['previousPosition'],_0x5276ab=_0x55a6ae[_0x1211e4]['nextPosition'];for(const _0x1170e7 of _0x55a6ae[_0x1211e4]['markersStart'])_0x441b1d['set'](_0x1170e7,{'start':_0x489ecc,'end':null});_0x261c05('isRemoveSuggestion',_0x1211e4,_0x489ecc,_0x5276ab),_0x261c05('isAddSuggestion',_0x1211e4,_0x489ecc,_0x5276ab),_0x261c05('isRemoved',_0x1211e4,_0x489ecc,_0x5276ab),_0x261c05('isAdded',_0x1211e4,_0x489ecc,_0x5276ab);for(const _0x3d066e of _0x55a6ae[_0x1211e4]['markersEnd']){const _0x8b595e=_0x441b1d['get'](_0x3d066e);_0x8b595e?_0x8b595e['end']=_0x5276ab:_0x441b1d['set'](_0x3d066e,{'start':_0x5276ab,'end':_0x5276ab});}}for(const [_0x46a927,_0x109293]of _0x441b1d){const _0x13a3f3=this['editor']['model']['createRange'](_0x109293['start'],_0x109293['end']);_0x35f3a9['markers']['set'](_0x46a927,_0x13a3f3);}return _0xe5bf13['sort']((_0x4e9a76,_0x25722e)=>{const _0x1bcc3f=_0x35f3a9['markers']['get']('revision:'+_0x4e9a76['id']),_0x4ef2f1=_0x35f3a9['markers']['get']('revision:'+_0x25722e['id']);return _0x1bcc3f['start']['isBefore'](_0x4ef2f1['start'])?-0x1:_0x1bcc3f['start']['isAfter'](_0x4ef2f1['start'])?0x1:_0x1bcc3f['end']['isBefore'](_0x4ef2f1['end'])?-0x1:_0x1bcc3f['end']['isAfter'](_0x4ef2f1['end'])?0x1:'add'===_0x4e9a76['type']?-0x1:0x1;}),{'root':_0x35f3a9,'changes':_0xe5bf13};function _0x261c05(_0x2af2ba,_0x2e2fbe,_0x3b8bbb,_0x154cc4){const _0x1a6975=!!_0x55a6ae[_0x2e2fbe][_0x2af2ba],_0x37ce8d=_0x1a6975?_0x55a6ae[_0x2e2fbe][_0x2af2ba]['userId']:null,_0xff7dd3=_0x2e2fbe===_0x55a6ae['length']-0x1,_0x110116=_0x9420e5[_0x2af2ba][0x0],_0x1e6169=_0x3caf66['isObject'](_0x55a6ae[_0x2e2fbe]['item']);!_0xf262f[_0x2af2ba]&&_0x1a6975?_0xf262f[_0x2af2ba]={'start':_0x3b8bbb,'tapeItem':_0x55a6ae[_0x2e2fbe],'userId':_0x37ce8d,'type':_0x2af2ba}:_0xf262f[_0x2af2ba]&&!_0x1a6975?(_0xf262f[_0x2af2ba]['end']=_0x3b8bbb,_0xfee5c4(_0xf262f[_0x2af2ba]),_0xf262f[_0x2af2ba]=null):_0xf262f[_0x2af2ba]&&_0x1a6975&&_0xf262f[_0x2af2ba]['userId']!==_0x37ce8d&&(_0xf262f[_0x2af2ba]['end']=_0x3b8bbb,_0x110116&&_0x110116['userId']===_0xf262f[_0x2af2ba]['userId']||_0xfee5c4(_0xf262f[_0x2af2ba]),_0xf262f[_0x2af2ba]={'start':_0x3b8bbb,'tapeItem':_0x55a6ae[_0x2e2fbe],'userId':_0x37ce8d,'type':_0x2af2ba}),_0xf262f[_0x2af2ba]&&_0x1e6169&&('elementStart'!==_0x55a6ae[_0x2e2fbe]['type']||_0x110116&&_0x110116['userId']===_0x37ce8d||_0x9420e5[_0x2af2ba]['unshift']({'userId':_0x37ce8d,'object':_0x55a6ae[_0x2e2fbe]['item'],'change':_0xf262f[_0x2af2ba]}),'elementEnd'===_0x55a6ae[_0x2e2fbe]['type']&&_0x110116&&_0x110116['object']===_0x55a6ae[_0x2e2fbe]['item']&&(_0x9420e5[_0x2af2ba]['shift'](),_0xf262f[_0x2af2ba]=_0x110116['change'])),_0xf262f[_0x2af2ba]&&_0xff7dd3&&(_0xf262f[_0x2af2ba]['end']=_0x154cc4,_0xfee5c4(_0xf262f[_0x2af2ba]),_0xf262f[_0x2af2ba]=null);}function _0xfee5c4({start:_0x454dbe,end:_0x369006,tapeItem:_0x31c364,userId:_0x4dcbca,type:_0x675fbf}){const _0x49ed72=_0x31c364['item'],_0x186b99=_0x2b9b22['schema']['isBlock'](_0x49ed72)&&!_0x2b9b22['schema']['isLimit'](_0x49ed72),_0x29dc42=_0x454dbe['nodeAfter']==_0x369006['parent']&&_0x369006['isAtStart'];if(_0x186b99&&_0x29dc42)return;const _0x7a91b=_0x2b9b22['createRange'](_0x454dbe,_0x369006),_0x274248=_0x2fa714['get'](_0x4dcbca),_0x3c5dfb=new G({'author':_0x274248,'type':'isAdded'==_0x675fbf||'isAddSuggestion'==_0x675fbf?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x675fbf||'isRemoveSuggestion'==_0x675fbf},'createdAt':new Date(),'rootName':_0xc6a9ae});_0xe5bf13['push'](_0x3c5dfb),_0x35f3a9['markers']['set']('revision:'+_0x3c5dfb['id'],_0x7a91b);}function _0x588bc7(_0xdab3ce,_0x21e2f0){const _0x15510c=_0xdab3ce['getAttributes'](),_0xf52b0c=_0x21e2f0['getAttributes']();for(const _0xbba765 of _0x15510c){if(_0xbba765[0x1]!==_0x21e2f0['getAttribute'](_0xbba765[0x0]))return!0x1;_0xf52b0c['next']();}return _0xf52b0c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x426f5f=>{const _0x34bd51=_0x426f5f['markerName']['split'](':')[0x1],_0x3e4f30=this['_getChangeFromId'](_0x34bd51);if(!_0x3e4f30)return null;const _0x27cea9='add'==_0x3e4f30['type']?'insertion':'deletion',_0x35af2d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x27cea9];return _0x3e4f30['data']['isSuggestion']&&_0x35af2d['push']('ck-suggestion-marker-'+_0x27cea9+'-new'),this['activeChange']==_0x3e4f30&&_0x35af2d['push']('ck-suggestion-marker--active'),{'classes':_0x35af2d,'attributes':{'data-change-id':_0x34bd51}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xf0d0cf=>{_0xf0d0cf['on']('element:pre',(_0x239b85,_0x20d2a2,_0x54e42e)=>{const _0x1990b8=_0x20d2a2['viewItem']['getChild'](0x0);if(!_0x1990b8||!_0x1990b8['is']('element','code'))return;if(!_0x54e42e['consumable']['consume'](_0x1990b8,{'attributes':['vid_start','vid_end']}))return;const _0x1f95c7=_0x20d2a2['modelRange']['start']['nodeAfter'];_0x54e42e['writer']['setAttribute']('vid_start',_0x1990b8['getAttribute']('vid_start'),_0x1f95c7),_0x54e42e['writer']['setAttribute']('vid_end',_0x1990b8['getAttribute']('vid_end'),_0x1f95c7);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3b9787=>{_0x3b9787['on']('element',(_0x5cb7c9,_0x4df28a,_0x15edd1)=>{if(!_0x15edd1['consumable']['consume'](_0x4df28a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4df28a['modelRange']['isCollapsed'])return;const _0x2a08aa=_0x4df28a['modelRange']['start']['nodeAfter'];_0x2a08aa['hasAttribute']('vid_start')||_0x2a08aa['hasAttribute']('vid')||(_0x15edd1['writer']['setAttribute']('vid_start',_0x4df28a['viewItem']['getAttribute']('vid_start'),_0x2a08aa),_0x15edd1['writer']['setAttribute']('vid_end',_0x4df28a['viewItem']['getAttribute']('vid_end'),_0x2a08aa));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x40fbe5=>_0x40fbe5['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x567390,[,_0x761aee])=>{['vid_start','vid_end','vid']['includes'](_0x761aee)&&(_0x567390['return']=!0x0,_0x567390['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x272a40=>{_0x272a40['on']('attribute:vid',(_0x1ff14d,_0x414d2c,_0x52e82b)=>{if('\x20'!=_0x414d2c['item']['data']||_0x414d2c['item']['parent']['maxOffset']>0x1)return;if(!_0x52e82b['consumable']['consume'](_0x414d2c['item'],_0x1ff14d['name']))return;const _0x243c1e=_0x52e82b['writer'],_0x4b6a4e=_0x52e82b['mapper']['toViewRange'](_0x414d2c['range']);_0x243c1e['wrap'](_0x4b6a4e,_0x243c1e['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1140c1){const _0x2e5e9d=_0x1140c1['plugins']['get']('RevisionViewer');return(_0x34b14a,_0x33359a,_0x598393)=>{const _0x460467=_0x33359a['markerName']['split'](':')[0x1],_0x3b29b7=_0x2e5e9d['_getChangeFromId'](_0x460467);if(!_0x3b29b7)return null;const _0x4a7f56='add'==_0x3b29b7['type']?'split':'merge';if(!_0x598393['consumable']['test'](_0x33359a['markerRange'],_0x34b14a['name']))return;const _0x25e47b=_0x33359a['markerRange']['getWalker'](),_0x532f17=_0x33359a['markerRange']['start'],_0x53ad4d=_0x1140c1['model']['schema'];let _0x3a82c2=null,_0x538540=null,_0x305c83=!0x1,_0x17c392=!0x1;for(const _0x42e1a4 of _0x25e47b){const _0x3a6ea0=_0x42e1a4['item'];_0x305c83=_0x305c83||_0x53ad4d['isContent'](_0x3a6ea0);const _0x284962=_0x598393['mapper']['toViewElement'](_0x3a6ea0);if(_0x284962&&_0x284962['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x42e1a4['type']&&(_0x53ad4d['isBlock'](_0x3a6ea0)&&!_0x53ad4d['isLimit'](_0x3a6ea0)&&(_0x3a6ea0['nextSibling']||_0x532f17['isAtEnd']?_0x3a82c2&&_0x3a82c2['parent']==_0x3a6ea0||(_0x3a82c2=_0x3a6ea0,_0x2952c2(_0x42e1a4['previousPosition']),_0x17c392=!0x0):_0x538540=_0x538540||_0x42e1a4['previousPosition']));}function _0x2952c2(_0x143e75){const _0x47345e=_0x598393['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a7f56}),_0x20d962=_0x598393['mapper']['toViewPosition'](_0x143e75);_0x3b29b7['data']['isSuggestion']&&_0x598393['writer']['addClass']('ck-suggestion-marker-'+_0x4a7f56+'-new',_0x47345e),_0x2e5e9d['activeChange']==_0x3b29b7&&_0x598393['writer']['addClass']('ck-suggestion-marker--active',_0x47345e),_0x598393['writer']['insert'](_0x20d962,_0x47345e),_0x598393['mapper']['bindElementToMarker'](_0x47345e,_0x33359a['markerName']);}_0x305c83||_0x17c392||!_0x538540||_0x2952c2(_0x538540);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x54a8b5,_0x1d1a30,_0x137946)=>{const _0x5a2fc5=_0x137946['mapper']['markerNameToElements'](_0x1d1a30['markerName']);if(_0x5a2fc5){for(const _0x2be290 of _0x5a2fc5)(_0x2be290['hasClass']('ck-suggestion-marker-split')||_0x2be290['hasClass']('ck-suggestion-marker-merge'))&&(_0x137946['mapper']['unbindElementFromMarkerName'](_0x2be290,_0x1d1a30['markerName']),_0x137946['writer']['remove'](_0x2be290));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x40f20e,_0x66f1b0,_0x1a17a9)=>{const _0x218f55=_0x66f1b0['markerName']['split'](':')[0x1],_0x3188d6=this['_getChangeFromId'](_0x218f55);if(!_0x3188d6)return null;const _0x275bed='add'==_0x3188d6['type']?'split':'merge';if(_0x1a17a9['consumable']['test'](_0x66f1b0['markerRange'],_0x40f20e['name']))for(const _0x503fe7 of _0x66f1b0['markerRange']['getItems']()){if(!_0x503fe7['is']('element','softBreak'))continue;const _0x564703=_0x1a17a9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x275bed}),_0xa90a12=_0x1a17a9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x503fe7));_0x3188d6['data']['isSuggestion']&&_0x1a17a9['writer']['addClass']('ck-suggestion-marker-'+_0x275bed+'-new',_0x564703),this['activeChange']==_0x3188d6&&_0x1a17a9['writer']['addClass']('ck-suggestion-marker--active',_0x564703),_0x1a17a9['writer']['insert'](_0xa90a12,_0x564703),_0x1a17a9['mapper']['bindElementToMarker'](_0x564703,_0x66f1b0['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3dc966=>{for(const _0x50a18d of this['editor']['model']['document']['getRootNames']()){const _0x2cd69d=this['editor']['model']['document']['getRoot'](_0x50a18d),_0x329cfb=this['editor']['editing']['view']['document']['getRoot'](_0x50a18d);if(_0x329cfb){const _0x46b384=_0x2cd69d['getAttribute']('revisionHistoryAttachChange');if(_0x3dc966['removeAttribute']('data-change-id',_0x329cfb),_0x3dc966['removeClass']('ck-revision-history-root-add',_0x329cfb),_0x3dc966['removeClass']('ck-revision-history-root-remove',_0x329cfb),_0x3dc966['removeClass']('ck-revision-history-root--active',_0x329cfb),_0x46b384){const _0x5edbae=this['_getChangeFromId'](_0x46b384);if(!_0x5edbae)return null;_0x3dc966['setAttribute']('data-change-id',_0x46b384,_0x329cfb),_0x3dc966['addClass']('ck-revision-history-root-'+_0x5edbae['type'],_0x329cfb),this['activeChange']==_0x5edbae&&_0x3dc966['addClass']('ck-revision-history-root--active',_0x329cfb);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x15c36f=>'revision-comment:'+_0x15c36f,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3c6e94=>'revision-suggestion:'+_0x3c6e94,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1c00d3=>({'name':'suggestion:'+_0x1c00d3,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x40ddee=>{const _0x4d2366=_0x40ddee['markerName']['split'](':')[0x1];return'insertion'!=_0x4d2366&&'deletion'!=_0x4d2366?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4d2366]};}}),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',(_0x9834ba,_0x309df8,_0x445d34)=>{const _0x283416=_0x445d34['mapper']['markerNameToElements'](_0x309df8['markerName']);if(_0x283416){for(const _0x494305 of _0x283416)_0x494305['is']('uiElement')&&(_0x445d34['mapper']['unbindElementFromMarkerName'](_0x494305,_0x309df8['markerName']),_0x445d34['writer']['remove'](_0x494305));}},{'priority':'high'});}['_getChangeFromId'](_0x5d67ad){return this['_changeIdToChange']['get'](_0x5d67ad);}['_getViewForChange'](_0x11fd05){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x11fd05),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x470fb2,_0x50ef99,_0x3a74eb,_0x107c2a)=>{_0x107c2a&&this['_balloon']['remove'](_0x107c2a),_0x3a74eb&&(this['_balloon']['add']({'view':_0x3a74eb,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x330328=this['editor']['editing'],_0x3174d3=this['_getChangeFromId'](_0x3a74eb['changeId']);let _0x39acfe;if(_0x3174d3['data']['isOnRoot']){const _0x226f90=_0x330328['view']['getDomRoot'](_0x3174d3['rootName']);_0x39acfe=Array['from'](_0x226f90['getClientRects']());}else{const _0x2217f4=this['editor']['model']['markers']['get']('revision:'+_0x3a74eb['changeId']);_0x39acfe=Array['from'](_0x330328['mapper']['markerNameToElements'](_0x2217f4['name']))['map'](_0x4323fa=>_0x330328['view']['domConverter']['mapViewToDom'](_0x4323fa))['map'](_0x2c22ce=>Array['from'](_0x2c22ce['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x39acfe[0x0];return _0x39acfe['find'](_0xd50560=>_0xd50560['top']-0x3<=this['_activeViewTarget']['y']&&_0xd50560['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xd50560['left']-0x3<=this['_activeViewTarget']['x']&&_0xd50560['right']+0x3>=this['_activeViewTarget']['x'])||_0x39acfe[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4bfdbf,_0x47a656,_0x145a5b,_0x4dc5c3)=>{this['activeView']=_0x145a5b?this['_getViewForChange'](_0x145a5b):null,this['editor']['model']['change'](()=>{const _0x1c4b2f=this['editor']['editing'];_0x4dc5c3&&(_0x4dc5c3['data']['isOnRoot']?_0x1c4b2f['view']['change'](_0x1ef3fd=>{_0x1ef3fd['removeClass']('ck-revision-history-root--active',_0x1c4b2f['view']['document']['getRoot'](_0x4dc5c3['rootName']));}):_0x1c4b2f['reconvertMarker']('revision:'+_0x4dc5c3['id'])),_0x145a5b&&(_0x145a5b['data']['isOnRoot']?_0x1c4b2f['view']['change'](_0x54dcf0=>{_0x54dcf0['addClass']('ck-revision-history-root--active',_0x1c4b2f['view']['document']['getRoot'](_0x145a5b['rootName']));}):_0x1c4b2f['reconvertMarker']('revision:'+_0x145a5b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x101129,_0x1ecb7b)=>{if(this['activeChange'])return;const _0x18a9b2=this['_findChangeIdFromDomTarget'](_0x1ecb7b['target']),_0x1955f7=this['_changeIdToChange']['get'](_0x18a9b2);_0x1955f7?(this['_activeViewTarget']={'x':_0x1ecb7b['domEvent']['x'],'y':_0x1ecb7b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1955f7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x48ff06,_0x1169fb)=>{const _0x57fb32=this['_findChangeIdFromDomTarget'](_0x1169fb['target']),_0x30cb98=this['_changeIdToChange']['get'](_0x57fb32);_0x30cb98?(this['_activeViewTarget']={'x':_0x1169fb['domEvent']['x'],'y':_0x1169fb['domEvent']['y']},_0x30cb98===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x30cb98):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x37d070){do{const _0x122c1e=_0x37d070['getAttribute']('data-change-id');if(_0x122c1e)return _0x122c1e;_0x37d070=_0x37d070['parent'];}while(_0x37d070);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3ae615=>{for(const _0x12af95 of this['editor']['model']['markers'])_0x3ae615['removeMarker'](_0x12af95);});}}function Q(_0x65ddec,_0x311f55){return(_0x40a907,_0x5d2cd6,_0x1c0351)=>{if(!_0x1c0351['consumable']['test'](_0x5d2cd6['markerRange'],_0x40a907['name']))return;const _0x11915b=_0x5d2cd6['markerRange']['getWalker'](),_0x8684e8=_0x5d2cd6['markerRange']['start'],_0x7a13a2=_0x65ddec['model']['schema'];let _0x3feb14=null,_0x14b1bf=null,_0x5b5808=!0x1,_0x1b5423=!0x1;for(const _0x1b1924 of _0x11915b){const _0x3b6b59=_0x1b1924['item'];_0x5b5808=_0x5b5808||_0x7a13a2['isContent'](_0x3b6b59);const _0x3db15f=_0x1c0351['mapper']['toViewElement'](_0x3b6b59);if(_0x3db15f&&_0x3db15f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1b1924['type']&&(_0x7a13a2['isBlock'](_0x3b6b59)&&!_0x7a13a2['isLimit'](_0x3b6b59)&&(_0x3b6b59['nextSibling']||_0x8684e8['isAtEnd']?_0x3feb14&&_0x3feb14['parent']==_0x3b6b59||(_0x3feb14=_0x3b6b59,_0x146f0d(_0x1b1924['previousPosition']),_0x1b5423=!0x0):_0x14b1bf=_0x14b1bf||_0x1b1924['previousPosition']));}function _0x146f0d(_0x44882f){const _0x30a204=_0x1c0351['mapper']['toViewPosition'](_0x44882f),_0x2acd9a=_0x1c0351['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x311f55});_0x1c0351['writer']['insert'](_0x30a204,_0x2acd9a),_0x1c0351['mapper']['bindElementToMarker'](_0x2acd9a,_0x5d2cd6['markerName']);}_0x5b5808||_0x1b5423||!_0x14b1bf||_0x146f0d(_0x14b1bf);};}class nt extends _0x2e7909{constructor(_0x1dc008){super(_0x1dc008);const _0x157456=_0x1dc008['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x157456,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x157456,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5e8550=this['editor'],_0x447682=_0x5e8550['plugins']['get'](l),_0x20b56f=_0x447682['isReady']?_0x447682['diff']['newRevisionId']:null;_0x5e8550['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x20b56f);}['refresh'](){const {isReady:_0x26c49a,isEnabled:_0x3382ca,repository:_0x39de47,diff:_0xa92ba6}=this['editor']['plugins']['get'](l),_0x1edae0=_0xa92ba6&&_0x39de47['getLaterVisibleRevision'](_0xa92ba6['newRevisionId']);this['isEnabled']=_0x26c49a&&_0x3382ca&&Boolean(_0x1edae0);}}class ot extends _0x2e7909{['_step'];constructor(_0x277181,{direction:_0x4ab045}){super(_0x277181);const _0x22875a=_0x277181['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x4ab045?0x1:-0x1,this['listenTo'](_0x22875a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x22875a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x22875a,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x411899=this['editor'],_0x39af81=_0x411899['plugins']['get'](l),{isNavigationMode:_0x3af6da,currentChangeNumber:_0x38bb27}=_0x39af81;let _0x1ba2ee;if(_0x39af81['activeChange']=_0x3af6da?_0x39af81['diff']['changes']['get'](_0x38bb27+this['_step']):_0x39af81['diff']['changes']['first'],_0x39af81['activeChange']['data']['isOnRoot'])_0x1ba2ee=_0x411899['editing']['view']['getDomRoot'](_0x39af81['activeChange']['rootName']);else{const _0x47bd7e=_0x411899['model']['markers']['get']('revision:'+_0x39af81['activeChange']['id']);_0x1ba2ee=_0x297621(_0x411899['editing'],_0x47bd7e);}_0x1d532f({'target':_0x1ba2ee,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xb9e6f,currentChangeNumber:_0x51383c,numberOfChanges:_0x182904,isReady:_0x211e05,isEnabled:_0x3def76}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x3def76&&_0x211e05&&_0x182904)&&(!_0xb9e6f||(0x1===this['_step']?_0x51383c<_0x182904-0x1:_0x51383c>0x0));}}class Ri extends _0x4d3a60{constructor(_0x2524f9){super(_0x2524f9);const _0xfe26c0=this['bindTemplate'],_0x1f2ae4=new _0x164f62(_0x2524f9),_0x3938a2=new _0x164f62(_0x2524f9);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',(_0x4eb65d,_0x5505c7)=>_0x4eb65d&&_0x5505c7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x49d209,_0x1fde09,_0x5245dc,_0x167023)=>{if(!_0x49d209)return R(_0x2524f9,'Loading...');if(!_0x5245dc)return R(_0x2524f9,'No\x20changes');const _0x2aefb2=R(_0x2524f9,'NUMBER_OF_CHANGES',_0x5245dc);return _0x167023?R(_0x2524f9,'X_OF_Y_CHANGES',[_0x1fde09+0x1,_0x5245dc]):_0x2aefb2;}),_0x1f2ae4['set']({'label':R(_0x2524f9,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x389874}),_0x3938a2['set']({'label':R(_0x2524f9,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x715628}),_0x1f2ae4['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3938a2['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1f2ae4['on']('execute',()=>this['fire']('execute','backward')),_0x3938a2['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',_0xfe26c0['if']('_isStatusLabelVisible','ck-hidden',_0x193e5e=>!_0x193e5e)]},'children':[{'text':_0xfe26c0['to']('isNavigationMode',_0x446b7e=>_0x446b7e?R(_0x2524f9,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x2524f9,'Total')+':\x20')}]},{'text':_0xfe26c0['to']('_statusText')}]},new _0x51fc4c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1f2ae4,_0x3938a2]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x1d82bd{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x47decd=this['editor']['editing']['view'];_0x47decd['change'](_0x394e6d=>{for(const _0x39a58a of _0x47decd['document']['roots'])_0x394e6d['addClass'](ge,_0x39a58a);});}['hide'](){const _0x426e15=this['editor']['editing']['view'];_0x426e15['change'](_0x2cc19b=>{for(const _0x422d00 of _0x426e15['document']['roots'])_0x2cc19b['removeClass'](ge,_0x422d00);});}}class u extends _0x1d82bd{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x2b73fd=this['editor'],_0x3a8589=_0x2b73fd['plugins']['get'](l),_0x3c0770=_0x2b73fd['plugins']['get'](ji);_0x2b73fd['ui']['componentFactory']['add']('exitToEditing',_0x5e29ea=>{const _0x147765=new _0x164f62(_0x5e29ea);return _0x147765['set']({'label':R(_0x5e29ea,'Back\x20to\x20editing'),'icon':_0x2c7774,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x147765,'execute',()=>{_0x2b73fd['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x147765;}),_0x2b73fd['ui']['componentFactory']['add']('restoreRevision',_0x14b805=>{const _0x180329=new _0x164f62(_0x14b805);return _0x180329['set']({'label':R(_0x14b805,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x180329['bind']('isEnabled')['to'](_0x2b73fd['commands']['get']('restoreRevision')),this['listenTo'](_0x180329,'execute',()=>_0x2b73fd['execute']('restoreRevision')),_0x180329;}),_0x2b73fd['ui']['componentFactory']['add']('changesNavigation',_0x2a9c53=>{const _0x32dd1c=new Ri(_0x2a9c53),_0x196c6c=_0x2b73fd['commands']['get']('showPreviousChange'),_0x8c16d5=_0x2b73fd['commands']['get']('showNextChange');return _0x32dd1c['bind']('isBackwardNavigationEnabled')['to'](_0x196c6c,'isEnabled'),_0x32dd1c['bind']('isForwardNavigationEnabled')['to'](_0x8c16d5,'isEnabled'),_0x32dd1c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3a8589),this['listenTo'](_0x32dd1c,'execute',(_0x48b460,_0x12a341)=>{_0x2b73fd['execute']('forward'===_0x12a341?'showNextChange':'showPreviousChange');}),_0x32dd1c;}),_0x3c0770['show'](),_0x3a8589['on']('change:isReady',(_0x531302,_0x5ce263,_0x5ef3a1)=>{_0x5ef3a1?_0x3c0770['hide']():_0x3c0770['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x2c73c0,_0x4935b3){super(_0x2c73c0,_0x4935b3);const _0x10c7b6=this['bindTemplate'];this['set']({'label':R(_0x2c73c0,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x2c73c0,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x10c7b6['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 _0x12af34=this['fieldView']['element'];this['_tooltipString']=_0x12af34['scrollWidth']>_0x12af34['clientWidth']&&_0x12af34['value']||'';}}class vi extends _0x4d3a60{constructor(_0x11bcfe,_0x9b177d,_0x4c067a){super(_0x11bcfe);const _0x2bead0=new _0x389f13();_0x2bead0['set']({'content':_0x1d2f9d,'viewBox':'0\x200\x2011\x2010'});const _0x12551a=['ck','ck-revision-history-sidebar__revision-author'];_0x4c067a&&_0x12551a['push']('ck-revision-history-sidebar__revision-author_creator');const _0xc9baf=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x11bcfe,_0x4c067a?'Revision\x20creator':'Revision\x20author')},'children':[_0x2bead0,_0x9b177d['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x12551a},'children':_0xc9baf});}}function mi(_0x2bb3f8,_0x31a833){const _0x1ed806=_0x2bb3f8['bindTemplate'],_0x2036a3=_0x2bb3f8['locale'],_0x20c1e8=_0x403910(_0x2036a3);_0x20c1e8['panelPosition']='sw';const _0x42cb1b=function(_0x3d9942,_0x56935d){const _0x462560=function(_0x6809d1,_0x5401eb){const _0x3bc813=_0x6809d1['locale'],_0x12361f={'Compare\x20against\x20selected':R(_0x3bc813,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x3bc813,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x3bc813,'Restore\x20this\x20revision')};return _0x5401eb['map'](_0x4b1064=>{const _0x47f0d7=_0x12361f[_0x4b1064['name']];return _0x47f0d7&&_0x47f0d7!==_0x4b1064['name']&&(_0x4b1064['name']=_0x47f0d7),_0x4b1064;});}(_0x3d9942,_0x56935d),_0x7ab24f=new _0x33c442();for(const _0x38f58d of _0x462560){const _0xb4b66a={'type':'button','model':new to({'label':_0x38f58d['name'],'class':_0x38f58d['class'],'withText':!0x0,'role':'menuitem','_action':_0x38f58d['action']})};_0xb4b66a['model']['bind']('isEnabled')['to'](_0x3d9942,'isActionsDropdownOpen',_0x559ddf=>'function'!=typeof _0x38f58d['isEnabled']||(!_0x559ddf||_0x38f58d['isEnabled'](_0x3d9942))),_0x7ab24f['add'](_0xb4b66a);}return _0x7ab24f;}(_0x2bb3f8,_0x31a833);return _0x2bb3f8['bind']('isActionsDropdownOpen')['to'](_0x20c1e8,'isOpen'),_0x20c1e8['buttonView']['set']({'label':R(_0x2036a3,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x19cac3}),_0x20c1e8['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1ed806['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1ed806['to'](_0xffcc78=>_0xffcc78['stopPropagation']())}}),_0x20c1e8['on']('execute',_0x3e6f65=>{_0x2bb3f8['isReady']&&'function'==typeof _0x3e6f65['source']['_action']&&_0x3e6f65['source']['_action'](_0x2bb3f8);}),_0x519f9e(_0x20c1e8,_0x42cb1b,{'role':'menu'}),_0x20c1e8['listenTo'](_0x2bb3f8,'change:isActionsDropdownOpen',(_0x1078be,_0x1417d4,_0x3a3e85)=>{if(_0x3a3e85)for(const _0x5ee194 of _0x20c1e8['listView']['items']){const _0x4128c4=_0x5ee194['children']['first'],_0x488c3b=_0x31a833['find'](_0x53ddac=>_0x53ddac['action']===_0x4128c4['_action'])['isVisible'];_0x5ee194['isVisible']=void 0x0===_0x488c3b||_0x488c3b(_0x2bb3f8);}}),_0x20c1e8;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x3a5a4b(_0x4d3a60){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2cb575,_0x7809e8,_0x568175,_0x33b544){super(_0x2cb575);const _0xd6e52b=this['bindTemplate'],_0x2050c7=function(_0x3e9be4,_0x4afaf2){const _0x3fe06e=Array['from'](_0x4afaf2['authors'])['filter'](_0x845ce2=>_0x845ce2!=_0x4afaf2['creator']);return _0x4afaf2['creator']&&_0x3fe06e['unshift'](_0x4afaf2['creator']),_0x3fe06e['map'](_0x4d1993=>new vi(_0x3e9be4,_0x4d1993,_0x4d1993==_0x4afaf2['creator']));}(_0x2cb575,_0x7809e8);this['id']=_0x7809e8['id'],this['_revision']=_0x7809e8,this['_requireRevisionName']=_0x33b544,this['bind']('name','createdAt')['to'](_0x7809e8),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5d2a1d=>{return _0x4e745b=_0x2cb575['uiLanguage'],(_0x38a852=_0x5d2a1d)['toLocaleDateString'](_0x4e745b,{'month':'long','day':'numeric'})+',\x20'+_0x38a852['toLocaleTimeString'](_0x4e745b,{'hour':'numeric','minute':'numeric'});var _0x4e745b,_0x38a852;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x2cb575,_0x128517),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2569f8=>_0x2569f8||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4bf8e3,_0x3fb1b0)=>_0x4bf8e3&&_0x3fb1b0),this['revisionActionsView']=_0x568175&&_0x568175['length']?mi(this,_0x568175):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xd6e52b['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xd6e52b['if']('isEnabled','ck-disabled',_0x34e4c2=>!_0x34e4c2),_0xd6e52b['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xd6e52b['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xd6e52b['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':_0xd6e52b['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':_0x2050c7}]},this['revisionActionsView']],'on':{'click':_0xd6e52b['to'](_0x1b2e87=>{_0x1b2e87['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4b18ac=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4b18ac,'change',()=>{this['_requireRevisionName']&&!_0x4b18ac['value']||this['fire']('setName',{'id':this['id'],'name':_0x4b18ac['value']}),_0x4b18ac['value']||(_0x4b18ac['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function bi(_0x39cd0b,_0x5770bb){const _0x29c379=_0x1970ec['fromJSDate'](_0x39cd0b)['setLocale'](_0x5770bb),_0x238534=_0x1970ec['local'](),_0x11c21b=_0x238534['minus']({'days':0x1})['startOf']('day');let _0x33570a,_0x347885;return _0x29c379['hasSame'](_0x238534,'day')?(_0x33570a=_0x29c379['startOf']('day')['toJSDate'](),_0x347885=_0x29c379['toRelativeCalendar']()):_0x29c379['hasSame'](_0x11c21b,'day')?(_0x33570a=_0x11c21b['toJSDate'](),_0x347885=_0x29c379['toRelativeCalendar']()):_0x29c379['hasSame'](_0x238534,'week')?(_0x33570a=_0x29c379['startOf']('week')['toJSDate'](),_0x347885=_0x29c379['weekdayLong']||''):_0x29c379['hasSame'](_0x238534,'year')?(_0x33570a=_0x29c379['startOf']('month')['toJSDate'](),_0x347885=_0x29c379['monthLong']||''):(_0x33570a=_0x29c379['startOf']('year')['toJSDate'](),_0x347885=String(_0x29c379['year'])),{'startDate':_0x33570a,'localizedPeriodName':_0x347885};}class fi extends _0x4d3a60{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x57ffe7,_0x4004bf,_0x10403b,_0x2a4a6f){super(_0x57ffe7);const _0x54e304=bi(_0x4004bf,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4004bf,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x10403b,this['_requireRevisionName']=_0x2a4a6f,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':_0x54e304}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x42dc53){const _0x40b338=new pi(this['locale'],_0x42dc53,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x40b338);}['removeRevision'](_0x3169ae){const _0x136261=this['revisionViews']['find'](_0x29a495=>_0x29a495['id']===_0x3169ae['id']);this['revisionViews']['remove'](_0x136261);}}class ki extends _0x4d3a60{constructor(_0x3922d4){super(_0x3922d4);const _0x5f3eba=new _0x389f13();_0x5f3eba['content']=_0x59245b,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5f3eba,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x3922d4,'Revision\x20history')]}]});}}class ui extends _0x4d3a60{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x8a2bbf,_0x18ba20,_0x43575b,_0x3b06d2){super(_0x8a2bbf);const _0xf3e772=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x18ba20,this['_revisionActions']=_0x43575b,this['_requireRevisionName']=_0x3b06d2,this['on']('select',(_0x4167ea,_0xf4fd37)=>{this['fire']('revisionSelected',_0xf4fd37);}),this['on']('setName',(_0x472d15,_0x9e2ee2)=>{this['fire']('revisionSetName',_0x9e2ee2);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x8a2bbf),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xf3e772['if']('isEnabled','ck-disabled',_0x176a34=>!_0x176a34)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x983f4 of this['_revisions'])this['_addRevision'](_0x983f4);this['_revisions']['on']('add',(_0x176866,_0x223225)=>{this['_addRevision'](_0x223225);}),this['_revisions']['on']('remove',(_0x422236,_0x5de8fd)=>{this['_removeRevision'](_0x5de8fd);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3c75c5=>_0x3c75c5['revisionViews']['map'](_0x3a6aee=>_0x3a6aee))['flat']();}['selectRevision'](_0x31fa87){for(const _0x11c702 of this['revisionViews'])_0x31fa87&&_0x31fa87['id']===_0x11c702['id']?_0x11c702['select']():_0x11c702['deselect']();}['highlightRevisions'](_0x2b29f4){for(const _0x518908 of this['revisionViews'])_0x2b29f4['some'](({id:_0x1f736})=>_0x1f736===_0x518908['id'])?_0x518908['highlight']():_0x518908['unhighlight']();}['_addRevision'](_0x8f0158){const _0x23c31e=bi(_0x8f0158['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x32c24a=this['timePeriodViews']['get'](0x0);_0x32c24a&&_0x32c24a['startDate']['getTime']()===_0x23c31e['getTime']()||(_0x32c24a=new fi(this['locale'],_0x23c31e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x32c24a)),_0x32c24a['addRevision'](_0x8f0158);}['_removeRevision'](_0x179c1e){const _0xe4e8bb=bi(_0x179c1e['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xe4e8bb)['removeRevision'](_0x179c1e);}['_getTimePeriodViewByStartDate'](_0x113592){return this['timePeriodViews']['find'](_0x548ae3=>_0x548ae3['startDate']['getTime']()===_0x113592['getTime']());}}class f extends _0x1d82bd{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x3a0d4e(_0x758c60){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3eecf9,_0x1f4d0a){super(_0x1f4d0a),this['sourceElement']=_0x3eecf9,this['model']['document']['createRoot']();const _0xe7a224=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0xe7a224);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x41a21d,_0xc057f5){const _0x562962=new this(_0x41a21d,_0xc057f5);return await _0x562962['initPlugins'](),await _0x562962['ui']['init'](_0x41a21d),await _0x562962['data']['init'](_0x562962['config']['get']('initialData')||''),_0x562962['fire']('ready'),_0x562962;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0xc698e3{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48e1e7){function _0x1a5293(_0x1b3f6f){return _0x1b3f6f['map'](_0x28cb56=>String['fromCharCode'](_0x28cb56))['join']('');}super(_0x48e1e7),this['result']='end',_0x48e1e7[_0x1a5293([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a5293([0x76,0x69,0x65,0x77])][_0x1a5293([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a5293([0x61,0x75,0x74,0x6f]),_0x48e1e7[_0x1a5293([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1a5293([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a5293([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1a5293([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1a5293([0x6f,0x6b])});}}class ct extends _0xc698e3{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x4c96a8){if(super(_0x4c96a8),!this['editor']['config']['get']('revisionHistory'))throw new _0x4a7f12('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3a6e27=>this['_showRevisionViewer']({..._0x3a6e27,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4ea6fe=>this['_closeRevisionViewer'](_0x4ea6fe)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x49b463=>this['_restoreRevision'](_0x49b463)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x10c6a1){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x10c6a1;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x14cb0d){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x14cb0d);}['getRevision'](_0x8a1a84){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x8a1a84);}['getRevisions'](_0x5074bc){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5074bc||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x389ca7=this['editor'],_0x7ecba5=_0x114a78(_0x389ca7,d),_0x28e12b=_0x389ca7['plugins']['get']('RevisionTracker'),_0x496e4d=_0x389ca7['plugins']['get']('Users')['users'];return _0x7ecba5['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x7ecba5['lazyRoots'],(_0x7ecba5['plugins']['push'](ht,l,u,class extends _0xc698e3{static get['requires'](){return[l,'Users'];}['init'](){const _0x1ea522=this['editor']['plugins']['get']('Users');for(const _0x4f9a80 of _0x496e4d)_0x4f9a80['isAnonymous']||_0x1ea522['getUser'](_0x4f9a80['id'])||_0x1ea522['addUser'](_0x4f9a80);const _0xdc7e50=_0x28e12b['repository']['getRevisions']();let _0x754133=null;const _0x508b71=this['editor']['plugins']['get']('RevisionViewer');_0x508b71['adapter']=_0x28e12b['adapter'],_0x508b71['bind']('isEnabled')['to'](_0x28e12b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x389ca7,'isReadOnly',_0x3bedcc=>!_0x3bedcc);for(const _0x66cc55 of _0xdc7e50){const _0x915aa9=null===_0x66cc55['creator'];if(_0x915aa9&&_0x66cc55['toVersion']===_0x66cc55['fromVersion'])continue;const _0x467d14=_0x66cc55['toJSON']();_0x508b71['addRevisionData'](_0x467d14,(_0x54abc4,_0x1d2f94,_0x1e33fe)=>{if(_0x915aa9){if(_0x754133)_0x754133['_update'](_0x54abc4,_0x1d2f94);else{if(!_0x1d2f94){const _0xeabb05=_0x1e33fe['toJSON']();_0xeabb05['id']=_0x4c943c(),_0x28e12b['saveRevision'](_0xeabb05,_0x1e33fe['toVersion'])['then'](_0x797de6=>{_0x754133=_0x797de6;});}}}else _0x66cc55['_update'](_0x54abc4,_0x1d2f94);});}}},f),_0x7ecba5);}['_enhanceShowRevisionViewerCallback'](){const _0x5ac58a=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x205846=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4bf4ff=this['editor']['plugins']['get']('Autosave');await _0x4bf4ff['save']();}else await _0x205846['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x258f82=this['editor']['plugins']['get']('Dialog');_0x258f82['isOpen']&&_0x258f82['hide']();}const _0xa334fc=this['_getRevisionViewerEditorConfig']();return _0x5ac58a(_0xa334fc)['then'](_0x320f6f=>{return(this['_viewerEditor']=_0x320f6f,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'),_0x320f6f);})['catch'](_0x1daf4a=>(console['error'](_0x1daf4a),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x25da66=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'](),_0x25da66(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x37fd4a=this['editor']['plugins']['get']('Annotations');_0x37fd4a['refreshVisibility'](),_0x37fd4a['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5076fc){const _0x5cb88f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x23aaae=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1559c7=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x1559c7,_0x5076fc)['then'](_0x26135d=>(_0x23aaae['style']['display']='block',_0x5cb88f['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x26135d));}['_closeRevisionViewer'](_0x1609cc){const _0x113627=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x113627['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1609cc['destroy']();}async['_restoreRevision'](_0x5976a9){const _0x3619dc=this['editor'],_0xb5d243=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xaea5f6=_0x3619dc['plugins']['get']('RevisionTracker'),_0xf6a452=_0x3619dc['plugins']['get']('RevisionHistoryUtils'),_0x1f185a=_0xb5d243['repository']['getRevision'](_0x5976a9);let _0x180eb0,_0x60e6ad,_0x343a9d;try{await _0xf6a452['loadRevisionData'](_0x1f185a,this['adapter']),_0x180eb0=_0xf6a452['getRevisionDocumentData'](_0x1f185a),_0x60e6ad=_0xf6a452['getRevisionRootsAttributes'](_0x1f185a);}catch(_0x43f63c){return void console['error'](_0x43f63c);}_0x3619dc['model']['change'](_0x1e728d=>{for(const _0x15ee24 of Array['from'](_0x3619dc['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1e728d['removeMarker'](_0x15ee24);}),_0xb5d243['isReady']=!0x1,_0x3619dc['model']['enqueueChange'](_0x74d3dc=>{_0x74d3dc['setSelection'](null),_0x74d3dc['removeSelectionAttribute'](_0x3619dc['model']['document']['selection']['getAttributeKeys']());const _0x485f52=Object['keys'](_0x180eb0);for(const _0x38fd58 of _0x3619dc['model']['document']['roots'])'$graveyard'!=_0x38fd58['rootName']&&_0x38fd58['isAttached']()&&!_0x485f52['includes'](_0x38fd58['rootName'])&&_0x74d3dc['detachRoot'](_0x38fd58);for(const _0x31cd34 of _0x485f52){let _0x47ef8f=_0x3619dc['model']['document']['getRoot'](_0x31cd34);_0x47ef8f&&_0x47ef8f['isAttached']()||(_0x47ef8f=_0x74d3dc['addRoot'](_0x31cd34));const _0x5cf9d3=_0x60e6ad[_0x31cd34],_0x6dab5e=Object['keys'](_0x5cf9d3),_0x3791c8=_0x180eb0[_0x31cd34];for(const _0x21471c of _0x47ef8f['getAttributeKeys']())_0x6dab5e['includes'](_0x21471c)||_0x74d3dc['removeAttribute'](_0x21471c,_0x47ef8f);for(const _0x31c2a6 of _0x6dab5e)_0x74d3dc['setAttribute'](_0x31c2a6,_0x60e6ad[_0x31cd34][_0x31c2a6],_0x47ef8f);_0x74d3dc['remove'](_0x74d3dc['createRangeIn'](_0x47ef8f)),_0x74d3dc['insert'](_0x3619dc['data']['parse'](_0x3791c8,_0x47ef8f),_0x47ef8f,0x0);}});const _0x33bff3=R(_0x3619dc['locale'],'Restored');if(_0x1f185a['name'])_0x343a9d=-0x1==_0x1f185a['name']['indexOf'](_0x33bff3)?_0x33bff3+':\x20'+_0x1f185a['name']:_0x1f185a['name'];else _0x343a9d=_0x33bff3+':\x20'+(_0x1f185a['createdAt']['toLocaleDateString'](_0x3619dc['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1f185a['createdAt']['toLocaleTimeString'](_0x3619dc['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xaea5f6['saveRevision']({'name':_0x343a9d}),_0xb5d243['isReady']=!0x0,_0x3619dc['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,bi as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x1a8098){super(_0x1a8098),this['_revisionViewer']=_0x1a8098['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xe54502=this['_revisionsRepository']['_revisions'],_0x2b606b=this['_createRevisionActions'](),_0x229f93=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ui(this['editor']['locale'],_0xe54502,_0x2b606b,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',(_0x5973a0,_0x35501e)=>{_0x35501e['revisionViews']['on']('add',(_0x2aa069,_0xa058fa)=>{_0xa058fa['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)),_0x229f93['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x260d03=this['_revisionsRepository']['getRevision'](0x0);if(_0x260d03){const _0x14ca29=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x260d03['id']);this['_revisionViewer']['compare'](_0x260d03,_0x14ca29);}}['_handleRevisionSelected'](_0x3f18bb,_0xff9aae){const _0x120f59=this['_revisionsRepository']['getRevision'](_0xff9aae['id']),_0x19537e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x120f59['id']);this['_revisionViewer']['compare'](_0x120f59,_0x19537e);}['_handleRevisionSetName'](_0x22fe03,_0x15d999){this['_revisionsRepository']['getRevision'](_0x15d999['id'])['setName'](_0x15d999['name']);}['_handleDiffChange'](_0x3fd8ed,_0x213df9,_0x345f58){const _0x46ebdf=this['_revisionsRepository']['getRevisionsInDiff'](_0x345f58);_0x46ebdf['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x46ebdf),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x46ebdf[0x0]));}['_createRevisionActions'](){const _0xf8a51e=this['editor'],_0x399b82=f['availableRevisionActions'],_0x3b02e2=_0xf8a51e['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x3b02e2['length'])return _0x3b02e2['map'](_0x29d238=>{const _0x58546d='string'==typeof _0x29d238?Object['assign']({},_0x399b82[_0x29d238]):_0x29d238;return _0x58546d['action']=_0x58546d['action']['bind'](this,_0xf8a51e),_0x58546d['isVisible']&&(_0x58546d['isVisible']=_0x58546d['isVisible']['bind'](this,_0xf8a51e)),_0x58546d;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3d14ba},_0x3ccc21)=>{const _0x1e8ae9=_0x3d14ba['get'](l),_0x378ec3=_0x1e8ae9['repository'];let _0x2ac34c=_0x1e8ae9['diff']['newRevisionId'],_0x7510dd=_0x3ccc21['id'];_0x378ec3['getIndex'](_0x2ac34c)>_0x378ec3['getIndex'](_0x7510dd)&&([_0x2ac34c,_0x7510dd]=[_0x7510dd,_0x2ac34c]),_0x1e8ae9['compare'](_0x2ac34c,_0x7510dd);},'isVisible':({plugins:_0x2c3ebd},_0x103844)=>{const _0x5baee0=_0x2c3ebd['get'](l);return!(_0x5baee0['repository']['getRevisionsInDiff'](_0x5baee0['diff'])['length']>0x2)&&!_0x103844['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2d44d0,{id:_0x2e0bc5})=>{_0x2d44d0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2e0bc5);},'isVisible':({plugins:_0x1b3752},_0x216f8e)=>!!_0x1b3752['get'](l)['repository']['getLaterVisibleRevision'](_0x216f8e['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2e7404},{id:_0x5778f7,revisionNameView:_0xd60d5b})=>{const _0x98d2d4=_0x2e7404['get'](l),_0x7db665=_0x98d2d4['repository']['getEarlierVisibleRevision'](_0x5778f7);_0x98d2d4['compare'](_0x5778f7,_0x7db665),_0xd60d5b['focus'](),_0xd60d5b['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xddc324,_0x31909b){super(_0xddc324),this['_view']=_0x31909b,this['_toolbarConfig']=st(_0xddc324['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x504471){const _0x227c3d=this['editor'],_0x344405=this['view'],_0x2cc4f4=_0x227c3d['editing']['view'],_0x4cc9c7=_0x344405['editable'],_0x44af2e=_0x2cc4f4['document']['getRoot']();_0x4cc9c7['name']=_0x44af2e['rootName'],_0x344405['render']();const _0x136821=_0x4cc9c7['element'];this['setEditableElement'](_0x4cc9c7['name'],_0x136821),_0x344405['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2cc4f4['attachDomRoot'](_0x136821),this['_elementReplacer']['replace'](_0x504471,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x363e39=this['view'],_0x87b682=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x87b682['detachDomRoot'](_0x363e39['editable']['name']),_0x363e39['destroy']();}['_initToolbar'](){const _0x2acb2c=this['view'];_0x2acb2c['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2acb2c['stickyPanel']['limiterElement']=_0x2acb2c['element'],_0x2acb2c['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5afbfd})=>_0x5afbfd),_0x2acb2c['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2acb2c['toolbar']);}}class ii extends _0x536193{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x254f8d,_0x27164d,_0xa03744={}){super(_0x254f8d),this['stickyPanel']=new _0xfb8230(_0x254f8d),this['toolbar']=new _0x3814f7(_0x254f8d,{'shouldGroupWhenFull':_0xa03744['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x254f8d,_0x27164d);}['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
|
+
_0x1264df(_0x1739b3){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x44aa00,_0x19dcf6){super(_0x19dcf6),this['sourceElement']=_0x44aa00,this['model']['document']['createRoot']();const _0x3126f2=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x3126f2);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x16bc13,_0x1ee6fc){const _0x3b1a7b=new this(_0x16bc13,_0x1ee6fc);return await _0x3b1a7b['initPlugins'](),await _0x3b1a7b['ui']['init'](_0x16bc13),await _0x3b1a7b['data']['init'](_0x3b1a7b['config']['get']('initialData')||''),_0x3b1a7b['fire']('ready'),_0x3b1a7b;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x1d82bd{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22c1a6){function _0x3c0818(_0x3d75a7){return _0x3d75a7['map'](_0x1d7737=>String['fromCharCode'](_0x1d7737))['join']('');}super(_0x22c1a6),this['result']='end',_0x22c1a6[_0x3c0818([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c0818([0x76,0x69,0x65,0x77])][_0x3c0818([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c0818([0x61,0x75,0x74,0x6f]),_0x22c1a6[_0x3c0818([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3c0818([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c0818([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3c0818([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3c0818([0x6f,0x6b])});}}class ht extends _0x1d82bd{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x10ac83){if(super(_0x10ac83),!this['editor']['config']['get']('revisionHistory'))throw new _0x204e23('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x261df6=>this['_showRevisionViewer']({..._0x261df6,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x457e42=>this['_closeRevisionViewer'](_0x457e42)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3878dc=>this['_restoreRevision'](_0x3878dc)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x883b16){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x883b16;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4f8345){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4f8345);}['getRevision'](_0x412aae){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x412aae);}['getRevisions'](_0x21eb01){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x21eb01||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x44f98d=this['editor'],_0x4a7e61=_0x520b83(_0x44f98d,d),_0x54a041=_0x44f98d['plugins']['get']('RevisionTracker'),_0xf8fbe8=_0x44f98d['plugins']['get']('Users')['users'];return _0x4a7e61['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4a7e61['lazyRoots'],(_0x4a7e61['plugins']['push'](at,l,u,class extends _0x1d82bd{static get['requires'](){return[l,'Users'];}['init'](){const _0x25ad02=this['editor']['plugins']['get']('Users');for(const _0x5d0699 of _0xf8fbe8)_0x5d0699['isAnonymous']||_0x25ad02['getUser'](_0x5d0699['id'])||_0x25ad02['addUser'](_0x5d0699);const _0x3b2fc9=_0x54a041['repository']['getRevisions']();let _0x561c03=null;const _0x1796e8=this['editor']['plugins']['get']('RevisionViewer');_0x1796e8['adapter']=_0x54a041['adapter'],_0x1796e8['bind']('isEnabled')['to'](_0x54a041),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x44f98d,'isReadOnly',_0x2c08ba=>!_0x2c08ba);for(const _0x13e58a of _0x3b2fc9){const _0x2a8b4f=null===_0x13e58a['creator'];if(_0x2a8b4f&&_0x13e58a['toVersion']===_0x13e58a['fromVersion'])continue;const _0x4ae004=_0x13e58a['toJSON']();_0x1796e8['addRevisionData'](_0x4ae004,(_0x343e20,_0x4b7014,_0x128a4a)=>{if(_0x2a8b4f){if(_0x561c03)_0x561c03['_update'](_0x343e20,_0x4b7014);else{if(!_0x4b7014){const _0x20e66d=_0x128a4a['toJSON']();_0x20e66d['id']=_0x30afc6(),_0x54a041['saveRevision'](_0x20e66d,_0x128a4a['toVersion'])['then'](_0x29e0b2=>{_0x561c03=_0x29e0b2;});}}}else _0x13e58a['_update'](_0x343e20,_0x4b7014);});}}},f),_0x4a7e61);}['_enhanceShowRevisionViewerCallback'](){const _0x5bc629=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5d5aa1=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1746cd=this['editor']['plugins']['get']('Autosave');await _0x1746cd['save']();}else await _0x5d5aa1['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5d5f9c=this['editor']['plugins']['get']('Dialog');_0x5d5f9c['isOpen']&&_0x5d5f9c['hide']();}const _0x4ef41e=this['_getRevisionViewerEditorConfig']();return _0x5bc629(_0x4ef41e)['then'](_0x73cca4=>{return(this['_viewerEditor']=_0x73cca4,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'),_0x73cca4);})['catch'](_0x1eb681=>(console['error'](_0x1eb681),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4a29f5=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'](),_0x4a29f5(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1a7cf6=this['editor']['plugins']['get']('Annotations');_0x1a7cf6['refreshVisibility'](),_0x1a7cf6['refreshPositioning']();}})));}['_showRevisionViewer'](_0x36a98c){const _0x133cc3=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x202e95=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4ee590=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x4ee590,_0x36a98c)['then'](_0x511c95=>(_0x202e95['style']['display']='block',_0x133cc3['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x511c95));}['_closeRevisionViewer'](_0x4b6723){const _0x47b2c9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x47b2c9['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4b6723['destroy']();}async['_restoreRevision'](_0x30df8c){const _0x21efe2=this['editor'],_0x2a2325=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x84eaa6=_0x21efe2['plugins']['get']('RevisionTracker'),_0xbb74f8=_0x21efe2['plugins']['get']('RevisionHistoryUtils'),_0x574be1=_0x2a2325['repository']['getRevision'](_0x30df8c);let _0x1acd5c,_0x4edea1,_0x3b8241;try{await _0xbb74f8['loadRevisionData'](_0x574be1,this['adapter']),_0x1acd5c=_0xbb74f8['getRevisionDocumentData'](_0x574be1),_0x4edea1=_0xbb74f8['getRevisionRootsAttributes'](_0x574be1);}catch(_0x2f341a){return void console['error'](_0x2f341a);}_0x21efe2['model']['change'](_0x42c0d1=>{for(const _0x1f230d of Array['from'](_0x21efe2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x42c0d1['removeMarker'](_0x1f230d);}),_0x2a2325['isReady']=!0x1,_0x21efe2['model']['enqueueChange'](_0x1a5d2c=>{_0x1a5d2c['setSelection'](null),_0x1a5d2c['removeSelectionAttribute'](_0x21efe2['model']['document']['selection']['getAttributeKeys']());const _0x4b11f7=Object['keys'](_0x1acd5c);for(const _0x3ca358 of _0x21efe2['model']['document']['roots'])'$graveyard'!=_0x3ca358['rootName']&&_0x3ca358['isAttached']()&&!_0x4b11f7['includes'](_0x3ca358['rootName'])&&_0x1a5d2c['detachRoot'](_0x3ca358);for(const _0x86367c of _0x4b11f7){let _0x445b0e=_0x21efe2['model']['document']['getRoot'](_0x86367c);_0x445b0e&&_0x445b0e['isAttached']()||(_0x445b0e=_0x1a5d2c['addRoot'](_0x86367c));const _0x39889c=_0x4edea1[_0x86367c],_0x4e3ae6=Object['keys'](_0x39889c),_0x1c8139=_0x1acd5c[_0x86367c];for(const _0x5d6055 of _0x445b0e['getAttributeKeys']())_0x4e3ae6['includes'](_0x5d6055)||_0x1a5d2c['removeAttribute'](_0x5d6055,_0x445b0e);for(const _0x284890 of _0x4e3ae6)_0x1a5d2c['setAttribute'](_0x284890,_0x4edea1[_0x86367c][_0x284890],_0x445b0e);_0x1a5d2c['remove'](_0x1a5d2c['createRangeIn'](_0x445b0e)),_0x1a5d2c['insert'](_0x21efe2['data']['parse'](_0x1c8139,_0x445b0e),_0x445b0e,0x0);}});const _0x2fe4b0=R(_0x21efe2['locale'],'Restored');if(_0x574be1['name'])_0x3b8241=-0x1==_0x574be1['name']['indexOf'](_0x2fe4b0)?_0x2fe4b0+':\x20'+_0x574be1['name']:_0x574be1['name'];else _0x3b8241=_0x2fe4b0+':\x20'+(_0x574be1['createdAt']['toLocaleDateString'](_0x21efe2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x574be1['createdAt']['toLocaleTimeString'](_0x21efe2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x84eaa6['saveRevision']({'name':_0x3b8241}),_0x2a2325['isReady']=!0x0,_0x21efe2['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};
|